2022-06-08 14:03:26 +00:00
|
|
|
<script lang="ts">
|
|
|
|
import type { Ref, WithLookup } from '@anticrm/core'
|
|
|
|
import { Component } from '@anticrm/ui'
|
|
|
|
import { BuildModelKey, Viewlet } from '@anticrm/view'
|
2022-06-10 09:44:46 +00:00
|
|
|
import { Team, ViewOptions } from '@anticrm/tracker'
|
2022-06-08 14:03:26 +00:00
|
|
|
|
|
|
|
export let currentSpace: Ref<Team>
|
|
|
|
export let viewlet: WithLookup<Viewlet> | undefined
|
|
|
|
export let config: (string | BuildModelKey)[] | undefined = undefined
|
|
|
|
export let query = {}
|
2022-06-10 09:44:46 +00:00
|
|
|
export let viewOptions: ViewOptions
|
2022-06-08 14:03:26 +00:00
|
|
|
</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}
|