Port export changes to develop (#8329)

Signed-off-by: Anna Khismatullina <anna.khismatullina@gmail.com>
This commit is contained in:
Anna Khismatullina
2025-03-25 21:10:51 +05:00
committed by GitHub
parent 163f6785c9
commit 6beddd3b16
80 changed files with 1557 additions and 987 deletions
@@ -15,7 +15,7 @@
<script lang="ts">
import { Class, Doc, DocumentQuery, FindOptions, Ref, Space, WithLookup, mergeQueries } from '@hcengineering/core'
import { Asset, getResource, IntlString, Resource } from '@hcengineering/platform'
import { getClient } from '@hcengineering/presentation'
import { getClient, ComponentExtensions } from '@hcengineering/presentation'
import {
AnyComponent,
Breadcrumb,
@@ -38,8 +38,7 @@
ViewletSelector,
ViewletSettingButton
} from '@hcengineering/view-resources'
import { ParentsNavigationModel } from '@hcengineering/workbench'
import workbench, { ParentsNavigationModel } from '@hcengineering/workbench'
import ComponentNavigator from './ComponentNavigator.svelte'
export let _class: Ref<Class<Doc>>
@@ -57,6 +56,8 @@
export let modes: IModeSelector<any> | undefined = undefined
export let navigationModel: ParentsNavigationModel | undefined = undefined
export let queryBuilder: Resource<() => Promise<DocumentQuery<Doc>>> | undefined = undefined
export let actionConfig: Record<string, any> = {}
export let actionVisible: boolean = false
const client = getClient()
const hierarchy = client.getHierarchy()
@@ -64,7 +65,6 @@
let search = ''
let viewlet: WithLookup<Viewlet> | undefined
let filterVisible: boolean = false
let preference: ViewletPreference | undefined
let viewlets: Array<WithLookup<Viewlet>> = []
let viewOptions: ViewOptions | undefined
@@ -147,6 +147,10 @@
<FilterButton {_class} bind:visible={filterVisible} />
</svelte:fragment>
<svelte:fragment slot="actions">
<ComponentExtensions
extension={workbench.extensions.SpecialViewAction}
props={{ _class, visible: actionVisible, query: resultQuery, config: actionConfig }}
/>
{#if createLabel && createComponent}
<Button
icon={IconAdd}