mirror of
https://github.com/hcengineering/platform.git
synced 2025-02-08 11:57:43 +00:00
32 lines
931 B
Svelte
32 lines
931 B
Svelte
![]() |
<script lang="ts">
|
||
|
import type { Ref, WithLookup } from '@anticrm/core'
|
||
|
import { Component } from '@anticrm/ui'
|
||
|
import { BuildModelKey, Viewlet } from '@anticrm/view'
|
||
|
import { IssuesDateModificationPeriod, IssuesGrouping, IssuesOrdering, Team } from '@anticrm/tracker'
|
||
|
|
||
|
export let currentSpace: Ref<Team>
|
||
|
export let viewlet: WithLookup<Viewlet> | undefined
|
||
|
export let config: (string | BuildModelKey)[] | undefined = undefined
|
||
|
export let query = {}
|
||
|
export let viewOptions: {
|
||
|
groupBy: IssuesGrouping
|
||
|
orderBy: IssuesOrdering
|
||
|
completedIssuesPeriod: IssuesDateModificationPeriod
|
||
|
shouldShowEmptyGroups: boolean
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
{#if viewlet?.$lookup?.descriptor?.component}
|
||
|
<Component
|
||
|
is={viewlet.$lookup?.descriptor?.component}
|
||
|
props={{
|
||
|
currentSpace,
|
||
|
config: config ?? viewlet.config,
|
||
|
options: viewlet.options,
|
||
|
viewlet,
|
||
|
query,
|
||
|
viewOptions
|
||
|
}}
|
||
|
/>
|
||
|
{/if}
|