import { NamedNode } from 'rdflib'; import { DataBrowserContext } from 'pane-registry'; import { WebComponent } from 'solid-ui'; import { default as PeopleList } from '../people-list'; /** The pane's context, extended with the people list other modules reach * for when they need to refresh it after a mutation. */ type PaneContext = DataBrowserContext & { ulPeople?: PeopleList; }; type Node = NamedNode; /** * The whole address-book view: the group column, the title bar, the people * column, and the details column, with the wiring between them. * * Renders into the light DOM: the pane's stylesheet lays the grid out through * the same class names the hand-built version carried, and the details column * hosts legacy pane content that a shadow root would cut off from it. */ export default class AddressBook extends WebComponent { accessor book: Node | null; /** Extra render options; `foreignGroup` shows a group with no book. */ accessor options: { foreignGroup?: Node; }; accessor dataBrowserContext: PaneContext | null; accessor paneOptions: { solo?: boolean; }; /** The book's name, shown atop the group column. ("title" would collide * with HTMLElement's own property.) */ private accessor heading; private accessor ready; private accessor error; /** Name of the single group in view, mirrored into the header. */ private accessor selectedGroupName; /** Whose sharing the header's badge reports: that group, or the book. */ private accessor aclSubject; private accessor searchOpen; /** Shared with the group bar and people list, which mutate it in place. */ private selectedGroups; private me; private wired; private accessor groupBar; private accessor header; private accessor search; private accessor peopleList; private accessor details; /** The pane hands the context in before connecting the element; anything * running later may rely on it. */ private get context(); /** The grid is laid out by the pane's global stylesheet. */ protected createRenderRoot(): this; connectedCallback(): void; /** Load the book, name the view, and note who owns it when testing * offline on localhost with no WebID. */ private load; protected updated(changedProperties: Map): void; private wireUp; protected render(): import('lit-html').TemplateResult<1>; /** The one group in view, or null when showing all of them (or none). */ private soleSelectedGroup; /** Keep the header's title and its Delete Group button in step. */ private syncHeaderToSelection; private onSelectionChanged; private onSearchToggled; private onNewGroupRequested; /** Reveal a freshly created group. */ private showNewGroup; private deleteSelectedGroup; /** Reveal a freshly created contact. */ private showNewContact; private showSharing; private showTools; } export {}; //# sourceMappingURL=AddressBook.d.ts.map