You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Updated with new sections
* Added comment headers to methods/classes
* Removed unused functions
* Import updates
* Fixed paths
* Added loading state and styles to person card
* Reintegrated presence icon color
* Bug fixes
* Handle message click in person card
* Fix presence
* Integrated mgt-element
* Added wip docs
* Stripped out unused svgs in svgHelper
* Using SvgHelper in person card
* Migrated person card svgs to SvgHelper
* Removed erroneous div
* PR fixes
* Moved thumbnail code into graph file and migrated ANOTHER svg
Co-authored-by: Nikola Metulev <[email protected]>
The Person Card has been heavily redesigned to pack in even more Graph features. In V2, the MgtPersonCard includes sections for:
4
+
5
+
* Section Overview with a Teams quick messenger and compact views for each other section.
6
+
* Contact details - email, phone, office, etc.
7
+
* Organization - Managers and coworkers
8
+
* Emails - where both users are participants
9
+
* Shared files *(work in progress)*
10
+
* Personal profile - languages, education, interests, birthday, etc.
11
+
12
+
## Additional Details (work in progress)
13
+
14
+
The V1 Person Card provided an additional details area below the contact details to show custom third-party content. Going forward, we've expanded this small area into an entire custom section. The custom section tab will be hidden by default, but when the additional details templates are provided a new section will appear.
15
+
16
+
Specify the following templates to light up a custom section:
17
+
18
+
| Data type | Data context | Description |
19
+
| - | - | - |
20
+
| additional-details-compact |`person`: The person details object | The template used to specify the compact view of the custom section in the overview section. |
21
+
| additional-details-full |`person`: The person details object | The template used to specify the full view of the custom section. |
22
+
| additional-details-icon |`person`: The person details object | The template used to specify the tab icon of the custom section. |
23
+
24
+
## Templates (work in progress)
25
+
26
+
The Person-Card component uses [templates](../templates.md) that allow you to add or replace portions of the component. To specify a template, include a `<template>` element inside of a component and set the `data-type` value to one of the following.
27
+
28
+
| Data type | Data context | Description |
29
+
| - | - | - |
30
+
| no-data | null | The template used when no data is available.
31
+
| default |`person`: The person details object <br> `personImage`: The URL of the image | The default template replaces the entire component with your own. |
32
+
| person-details |`person`: The person details object <br> `personImage`: The URL of the image | The template used to render the top part of the person card. |
33
+
| contact-section |`person`: The person details object | The template used to override the contact details section. |
34
+
| organization-section |`person`: The person details object | The template used to override the organization section. |
35
+
| messages-section |`person`: The person details object | The template used to override the email messages section. |
36
+
| files-section |`person`: The person details object | The template used to override the files section. |
37
+
| profile-section |`person`: The person details object | The template used to override the profile section. |
0 commit comments