TSK-1469,-1470: added SelectAvatars, UserBoxItems components (#3176)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov
2023-05-15 11:12:16 +07:00
committed by GitHub
parent ee0a120450
commit 6423d1beeb
9 changed files with 354 additions and 11 deletions
@@ -16,7 +16,8 @@
import contact, { Employee } from '@hcengineering/contact'
import type { Class, DocumentQuery, Ref } from '@hcengineering/core'
import type { IntlString } from '@hcengineering/platform'
import { Button, ButtonKind, ButtonSize, Label, showPopup, TooltipAlignment } from '@hcengineering/ui'
import { Button, Label, showPopup } from '@hcengineering/ui'
import type { ButtonKind, ButtonSize, TooltipAlignment } from '@hcengineering/ui'
import { createEventDispatcher } from 'svelte'
import plugin from '../plugin'
import { employeeByIdStore } from '../utils'
@@ -86,7 +87,7 @@
{#if persons.length === 1}
<UserInfo value={persons[0]} size={'inline'} />
{:else}
<CombineAvatars {_class} bind:items size={'inline'} />
<CombineAvatars {_class} bind:items size={'inline'} hideLimit />
<span class="overflow-label ml-1-5">
<Label label={plugin.string.NumberMembers} params={{ count: persons.length }} />
</span>