mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-20 15:20:18 +00:00
UBER-784: updated WorkItemPresenter (#3710)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
parent
50660dfecc
commit
d47ef1b74d
@ -60,6 +60,7 @@
|
|||||||
export let avatarSize: IconSize = kind === 'regular' ? 'small' : 'card'
|
export let avatarSize: IconSize = kind === 'regular' ? 'small' : 'card'
|
||||||
export let justify: 'left' | 'center' = 'center'
|
export let justify: 'left' | 'center' = 'center'
|
||||||
export let width: string | undefined = undefined
|
export let width: string | undefined = undefined
|
||||||
|
export let shrink: number = 0
|
||||||
export let focusIndex = -1
|
export let focusIndex = -1
|
||||||
export let showTooltip: LabelAndProps | PersonLabelTooltip | undefined = undefined
|
export let showTooltip: LabelAndProps | PersonLabelTooltip | undefined = undefined
|
||||||
export let showNavigate = true
|
export let showNavigate = true
|
||||||
@ -129,7 +130,14 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
||||||
<div {id} bind:this={container} class="min-w-0" class:w-full={width === '100%'} class:h-full={$$slots.content}>
|
<div
|
||||||
|
{id}
|
||||||
|
bind:this={container}
|
||||||
|
class="min-w-0"
|
||||||
|
class:w-full={width === '100%'}
|
||||||
|
class:h-full={$$slots.content}
|
||||||
|
style:flex-shrink={shrink}
|
||||||
|
>
|
||||||
{#if $$slots.content}
|
{#if $$slots.content}
|
||||||
<div
|
<div
|
||||||
class="w-full h-full flex-streatch"
|
class="w-full h-full flex-streatch"
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
export let focusIndex: number | undefined = undefined
|
export let focusIndex: number | undefined = undefined
|
||||||
export let short: boolean = false
|
export let short: boolean = false
|
||||||
export let shouldShowName = true
|
export let shouldShowName = true
|
||||||
|
export let shrink: number = 0
|
||||||
|
|
||||||
const client = getClient()
|
const client = getClient()
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
@ -102,6 +103,7 @@
|
|||||||
{avatarSize}
|
{avatarSize}
|
||||||
{width}
|
{width}
|
||||||
{short}
|
{short}
|
||||||
|
{shrink}
|
||||||
{shouldShowName}
|
{shouldShowName}
|
||||||
showNavigate={false}
|
showNavigate={false}
|
||||||
justify={'left'}
|
justify={'left'}
|
||||||
|
@ -142,6 +142,8 @@ import { get } from 'svelte/store'
|
|||||||
|
|
||||||
export { default as SubIssueList } from './components/issues/edit/SubIssueList.svelte'
|
export { default as SubIssueList } from './components/issues/edit/SubIssueList.svelte'
|
||||||
export { default as IssueStatusIcon } from './components/issues/IssueStatusIcon.svelte'
|
export { default as IssueStatusIcon } from './components/issues/IssueStatusIcon.svelte'
|
||||||
|
export { default as StatusPresenter } from './components/issues/StatusPresenter.svelte'
|
||||||
|
export { default as AssigneeEditor } from './components/issues/AssigneeEditor.svelte'
|
||||||
|
|
||||||
export { CreateProject, IssuePresenter, TitlePresenter }
|
export { CreateProject, IssuePresenter, TitlePresenter }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user