UNPKG

@microsoft/mgt

Version:
74 lines (73 loc) 2.65 kB
/** * ------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. * See License in the project root for license information. * ------------------------------------------------------------------------------------------- */ import * as MicrosoftGraph from '@microsoft/microsoft-graph-types'; import '../../styles/fabric-icon-font'; import '../mgt-person/mgt-person'; import { MgtTemplatedComponent } from '../templatedComponent'; import { PersonCardInteraction } from './../PersonCardInteraction'; /** * web component to display a group of people or contacts by using their photos or initials. * * @export * @class MgtPeople * @extends {MgtTemplatedComponent} */ export declare class MgtPeople extends MgtTemplatedComponent { /** * Array of styles to apply to the element. The styles should be defined * using the `css` tag function. */ static get styles(): import("lit-element").CSSResult[]; /** * containing array of people used in the component. * @type {Array<MgtPersonDetails>} */ people: Array<MicrosoftGraph.User | MicrosoftGraph.Person | MicrosoftGraph.Contact>; /** * developer determined max people shown in component * @type {number} */ showMax: number; /** * determines if agenda events come from specific group * @type {string} */ groupId: string; /** * user id array * * @memberof MgtPeople */ userIds: string[]; /** * Sets how the person-card is invoked * Set to PersonCardInteraction.none to not show the card * * @type {PersonCardInteraction} * @memberof MgtPerson */ personCardInteraction: PersonCardInteraction; private _firstUpdated; /** * Invoked when the element is first updated. Implement to perform one time * work on the element after update. * * Setting properties inside this method will trigger the element to update * again after this update cycle completes. * * * @param _changedProperties Map of changed properties with old values */ protected firstUpdated(): void; /** * Invoked on each update to perform rendering tasks. This method must return * a lit-html TemplateResult. Setting properties inside this method will *not* * trigger the element to update. */ protected render(): import("lit-element").TemplateResult; private loadPeople; private renderPerson; }