mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-12 12:47:45 +02:00
Port export changes to develop (#8329)
Signed-off-by: Anna Khismatullina <anna.khismatullina@gmail.com>
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user