import { NamedNode } from 'rdflib'; import { WebComponent } from 'solid-ui'; type Person = NamedNode; type SelectedGroups = Record; /** * The list of contacts in the selected groups: avatar, name, and a per-row * menu with the actions that used to sit in the contact detail's toolbar. * * `selectedGroups` is shared with the pane -- the group bar mutates it in * place -- so rows are recomputed by `refresh()` rather than reactively. * The row actions only raise intents (`person-selected`, * `open-contact-requested`, `delete-contact-requested`); rendering the card * and deleting the data are the pane's business. */ export default class PeopleList extends WebComponent { static styles: import('lit').CSSResult; accessor selectedGroups: SelectedGroups; private accessor rows; private accessor filter; private accessor selectedUri; private accessor loggedIn; private accessor revision; connectedCallback(): void; /** Re-read the members of the selected groups from the store. Call after * anything that changes who should be listed. */ refresh(autoSelect?: boolean): void; /** Narrow the list; called by the pane when the search box changes. */ applyFilter(text: string): void; /** Mark a row as the current one without announcing it -- for callers that * are already rendering the person themselves. */ markSelected(person: Person | null): void; clearSelection(): void; private get visibleRows(); /** Every space-separated word of the filter must appear somewhere in the * contact's name, email addresses, WebIDs or profile URLs. */ private matchesFilter; /** When exactly one contact is in view, showing it is what the user meant. */ private autoSelectSingleMatch; private select; /** Hand a freshly rendered row to solid-ui's drag widgets. */ private wireDrag; protected render(): import('lit-html').TemplateResult<1>; /** The person's email addresses, once their card has loaded. Read at * render time like the avatar, so they appear when the background load * finishes. */ private emailsFor; private emailFor; /** The person's WebIDs and profile URLs: every vcard:url, whatever its * type, and any owl:sameAs. Like vcard:hasEmail, vcard:url usually nests * the address under vcard:value. */ private urlsFor; private renderRow; /** * The row's own actions. Clicks inside must not bubble into the row, which * would read as "show this contact". * * solid-ui-menu assigns each child a slot when it first sees it, so an item * appearing later (Delete, once the user is known) would land on top of the * first one; keying the menu on `loggedIn` rebuilds it with a complete set. */ private renderRowMenu; private onRowKeydown; private request; } export {}; //# sourceMappingURL=PeopleList.d.ts.map