mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-09 09:20:54 +00:00
Fix console tools accessing model (#4020)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
db27efca58
commit
273f3de0a3
@ -25,7 +25,7 @@ import core, { DOMAIN_MODEL, type Class, type Doc, type DocumentQuery, type Ref,
|
|||||||
import { Mixin, Model, type Builder } from '@hcengineering/model'
|
import { Mixin, Model, type Builder } from '@hcengineering/model'
|
||||||
import { TClass, TDoc } from '@hcengineering/model-core'
|
import { TClass, TDoc } from '@hcengineering/model-core'
|
||||||
import type { Asset, IntlString, Resource } from '@hcengineering/platform'
|
import type { Asset, IntlString, Resource } from '@hcengineering/platform'
|
||||||
import { type AnyComponent } from '@hcengineering/ui'
|
import { type AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
|
|
||||||
import activity from './plugin'
|
import activity from './plugin'
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ import attachment from '@hcengineering/attachment-resources/src/plugin'
|
|||||||
import type { Ref, Doc } from '@hcengineering/core'
|
import type { Ref, Doc } from '@hcengineering/core'
|
||||||
import type { IntlString, Resource } from '@hcengineering/platform'
|
import type { IntlString, Resource } from '@hcengineering/platform'
|
||||||
import { mergeIds } from '@hcengineering/platform'
|
import { mergeIds } from '@hcengineering/platform'
|
||||||
import type { AnyComponent } from '@hcengineering/ui'
|
import type { AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import type { ActionCategory } from '@hcengineering/view'
|
import type { ActionCategory } from '@hcengineering/view'
|
||||||
|
|
||||||
export default mergeIds(attachmentId, attachment, {
|
export default mergeIds(attachmentId, attachment, {
|
||||||
|
@ -20,7 +20,7 @@ import { type IntlString, mergeIds } from '@hcengineering/platform'
|
|||||||
import { type Action } from '@hcengineering/view'
|
import { type Action } from '@hcengineering/view'
|
||||||
|
|
||||||
import { type Ref } from '@hcengineering/core'
|
import { type Ref } from '@hcengineering/core'
|
||||||
import type { AnyComponent } from '@hcengineering/ui'
|
import type { AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
|
|
||||||
export default mergeIds(bitrixId, bitrix, {
|
export default mergeIds(bitrixId, bitrix, {
|
||||||
component: {
|
component: {
|
||||||
|
@ -53,7 +53,7 @@ import task, { actionTemplates as taskActionTemplates, TProject, TTask } from '@
|
|||||||
import view, { actionTemplates, createAction, actionTemplates as viewTemplates } from '@hcengineering/model-view'
|
import view, { actionTemplates, createAction, actionTemplates as viewTemplates } from '@hcengineering/model-view'
|
||||||
import workbench, { type Application } from '@hcengineering/model-workbench'
|
import workbench, { type Application } from '@hcengineering/model-workbench'
|
||||||
import { type IntlString } from '@hcengineering/platform'
|
import { type IntlString } from '@hcengineering/platform'
|
||||||
import type { AnyComponent } from '@hcengineering/ui'
|
import type { AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import board from './plugin'
|
import board from './plugin'
|
||||||
|
|
||||||
export { boardId } from '@hcengineering/board'
|
export { boardId } from '@hcengineering/board'
|
||||||
|
@ -22,7 +22,7 @@ import {
|
|||||||
} from '@hcengineering/model'
|
} from '@hcengineering/model'
|
||||||
import core from '@hcengineering/model-core'
|
import core from '@hcengineering/model-core'
|
||||||
import { createProjectType, createSequence } from '@hcengineering/model-task'
|
import { createProjectType, createSequence } from '@hcengineering/model-task'
|
||||||
import tags from '@hcengineering/tags'
|
import tags from '@hcengineering/model-tags'
|
||||||
import task, { type ProjectType } from '@hcengineering/task'
|
import task, { type ProjectType } from '@hcengineering/task'
|
||||||
import board from './plugin'
|
import board from './plugin'
|
||||||
import { PaletteColorIndexes } from '@hcengineering/ui/src/colors'
|
import { PaletteColorIndexes } from '@hcengineering/ui/src/colors'
|
||||||
|
@ -19,7 +19,7 @@ import board from '@hcengineering/board-resources/src/plugin'
|
|||||||
import type { Ref } from '@hcengineering/core'
|
import type { Ref } from '@hcengineering/core'
|
||||||
import { type IntlString, mergeIds } from '@hcengineering/platform'
|
import { type IntlString, mergeIds } from '@hcengineering/platform'
|
||||||
import { type ProjectType, type Sequence } from '@hcengineering/task'
|
import { type ProjectType, type Sequence } from '@hcengineering/task'
|
||||||
import type { AnyComponent } from '@hcengineering/ui'
|
import type { AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import { type Action, type ViewAction, type Viewlet, type ViewletDescriptor } from '@hcengineering/view'
|
import { type Action, type ViewAction, type Viewlet, type ViewletDescriptor } from '@hcengineering/view'
|
||||||
|
|
||||||
export default mergeIds(boardId, board, {
|
export default mergeIds(boardId, board, {
|
||||||
|
@ -50,7 +50,7 @@ import { TProject } from '@hcengineering/model-task'
|
|||||||
import view, { createAction } from '@hcengineering/model-view'
|
import view, { createAction } from '@hcengineering/model-view'
|
||||||
import notification from '@hcengineering/notification'
|
import notification from '@hcengineering/notification'
|
||||||
import setting from '@hcengineering/setting'
|
import setting from '@hcengineering/setting'
|
||||||
import { type AnyComponent } from '@hcengineering/ui'
|
import { type AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import calendar from './plugin'
|
import calendar from './plugin'
|
||||||
|
|
||||||
export * from '@hcengineering/calendar'
|
export * from '@hcengineering/calendar'
|
||||||
|
@ -20,7 +20,7 @@ import { type Ref } from '@hcengineering/core'
|
|||||||
import { type NotificationGroup } from '@hcengineering/notification'
|
import { type NotificationGroup } from '@hcengineering/notification'
|
||||||
import type { IntlString } from '@hcengineering/platform'
|
import type { IntlString } from '@hcengineering/platform'
|
||||||
import { mergeIds } from '@hcengineering/platform'
|
import { mergeIds } from '@hcengineering/platform'
|
||||||
import { type AnyComponent } from '@hcengineering/ui'
|
import { type AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import {
|
import {
|
||||||
type Action,
|
type Action,
|
||||||
type ActionCategory,
|
type ActionCategory,
|
||||||
|
@ -54,7 +54,7 @@ import preference, { TPreference } from '@hcengineering/model-preference'
|
|||||||
import view, { createAction, actionTemplates as viewTemplates } from '@hcengineering/model-view'
|
import view, { createAction, actionTemplates as viewTemplates } from '@hcengineering/model-view'
|
||||||
import workbench from '@hcengineering/model-workbench'
|
import workbench from '@hcengineering/model-workbench'
|
||||||
import chunter from './plugin'
|
import chunter from './plugin'
|
||||||
import { type AnyComponent } from '@hcengineering/ui'
|
import { type AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
export { chunterId } from '@hcengineering/chunter'
|
export { chunterId } from '@hcengineering/chunter'
|
||||||
export { chunterOperation } from './migration'
|
export { chunterOperation } from './migration'
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ import type { Doc, Ref, Space } from '@hcengineering/core'
|
|||||||
import { type NotificationGroup } from '@hcengineering/notification'
|
import { type NotificationGroup } from '@hcengineering/notification'
|
||||||
import type { IntlString, Resource } from '@hcengineering/platform'
|
import type { IntlString, Resource } from '@hcengineering/platform'
|
||||||
import { mergeIds } from '@hcengineering/platform'
|
import { mergeIds } from '@hcengineering/platform'
|
||||||
import type { AnyComponent, Location } from '@hcengineering/ui'
|
import type { AnyComponent, Location } from '@hcengineering/ui/src/types'
|
||||||
import type { Action, ActionCategory, ViewAction, ViewletDescriptor } from '@hcengineering/view'
|
import type { Action, ActionCategory, ViewAction, ViewletDescriptor } from '@hcengineering/view'
|
||||||
|
|
||||||
export default mergeIds(chunterId, chunter, {
|
export default mergeIds(chunterId, chunter, {
|
||||||
|
@ -70,7 +70,7 @@ import notification from '@hcengineering/notification'
|
|||||||
import type { Asset, IntlString, Resource } from '@hcengineering/platform'
|
import type { Asset, IntlString, Resource } from '@hcengineering/platform'
|
||||||
import setting from '@hcengineering/setting'
|
import setting from '@hcengineering/setting'
|
||||||
import templates from '@hcengineering/templates'
|
import templates from '@hcengineering/templates'
|
||||||
import { type AnyComponent } from '@hcengineering/ui'
|
import { type AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import contact from './plugin'
|
import contact from './plugin'
|
||||||
|
|
||||||
export { contactId } from '@hcengineering/contact'
|
export { contactId } from '@hcengineering/contact'
|
||||||
|
@ -22,7 +22,7 @@ import { type ObjectSearchCategory, type ObjectSearchFactory } from '@hcengineer
|
|||||||
import { type NotificationGroup } from '@hcengineering/notification'
|
import { type NotificationGroup } from '@hcengineering/notification'
|
||||||
import { type IntlString, mergeIds, type Resource } from '@hcengineering/platform'
|
import { type IntlString, mergeIds, type Resource } from '@hcengineering/platform'
|
||||||
import { type TemplateFieldFunc } from '@hcengineering/templates'
|
import { type TemplateFieldFunc } from '@hcengineering/templates'
|
||||||
import type { AnyComponent } from '@hcengineering/ui'
|
import type { AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import { type Action, type ActionCategory, type ViewAction } from '@hcengineering/view'
|
import { type Action, type ActionCategory, type ViewAction } from '@hcengineering/view'
|
||||||
import { type ActivityExtension } from '@hcengineering/activity'
|
import { type ActivityExtension } from '@hcengineering/activity'
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ import { type Doc, type Ref } from '@hcengineering/core'
|
|||||||
import { type IntlString, mergeIds, type Resource } from '@hcengineering/platform'
|
import { type IntlString, mergeIds, type Resource } from '@hcengineering/platform'
|
||||||
import { gmailId } from '@hcengineering/gmail'
|
import { gmailId } from '@hcengineering/gmail'
|
||||||
import gmail from '@hcengineering/gmail-resources/src/plugin'
|
import gmail from '@hcengineering/gmail-resources/src/plugin'
|
||||||
import type { AnyComponent } from '@hcengineering/ui'
|
import type { AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import type { TxViewlet } from '@hcengineering/activity'
|
import type { TxViewlet } from '@hcengineering/activity'
|
||||||
import { type Action } from '@hcengineering/view'
|
import { type Action } from '@hcengineering/view'
|
||||||
import { type NotificationGroup } from '@hcengineering/notification'
|
import { type NotificationGroup } from '@hcengineering/notification'
|
||||||
|
@ -18,7 +18,7 @@ import { hrId } from '@hcengineering/hr'
|
|||||||
import hr from '@hcengineering/hr-resources/src/plugin'
|
import hr from '@hcengineering/hr-resources/src/plugin'
|
||||||
import { type NotificationGroup } from '@hcengineering/notification'
|
import { type NotificationGroup } from '@hcengineering/notification'
|
||||||
import { type IntlString, mergeIds } from '@hcengineering/platform'
|
import { type IntlString, mergeIds } from '@hcengineering/platform'
|
||||||
import { type AnyComponent } from '@hcengineering/ui'
|
import { type AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import { type Action, type ActionCategory, type ViewAction } from '@hcengineering/view'
|
import { type Action, type ActionCategory, type ViewAction } from '@hcengineering/view'
|
||||||
|
|
||||||
export default mergeIds(hrId, hr, {
|
export default mergeIds(hrId, hr, {
|
||||||
|
@ -18,7 +18,7 @@ import type { Ref } from '@hcengineering/core'
|
|||||||
import { inventoryId } from '@hcengineering/inventory'
|
import { inventoryId } from '@hcengineering/inventory'
|
||||||
import inventory from '@hcengineering/inventory-resources/src/plugin'
|
import inventory from '@hcengineering/inventory-resources/src/plugin'
|
||||||
import { type IntlString, mergeIds } from '@hcengineering/platform'
|
import { type IntlString, mergeIds } from '@hcengineering/platform'
|
||||||
import type { AnyComponent } from '@hcengineering/ui'
|
import type { AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import { type Action, type ActionCategory, type ViewAction, type Viewlet } from '@hcengineering/view'
|
import { type Action, type ActionCategory, type ViewAction, type Viewlet } from '@hcengineering/view'
|
||||||
import { type ActivityExtension } from '@hcengineering/activity'
|
import { type ActivityExtension } from '@hcengineering/activity'
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ import { type NotificationGroup, type NotificationType } from '@hcengineering/no
|
|||||||
import type { IntlString } from '@hcengineering/platform'
|
import type { IntlString } from '@hcengineering/platform'
|
||||||
import { mergeIds } from '@hcengineering/platform'
|
import { mergeIds } from '@hcengineering/platform'
|
||||||
import { type ProjectType } from '@hcengineering/task'
|
import { type ProjectType } from '@hcengineering/task'
|
||||||
import type { AnyComponent } from '@hcengineering/ui'
|
import type { AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import { type Action, type ActionCategory, type Viewlet } from '@hcengineering/view'
|
import { type Action, type ActionCategory, type Viewlet } from '@hcengineering/view'
|
||||||
import { type ActivityExtension } from '@hcengineering/activity'
|
import { type ActivityExtension } from '@hcengineering/activity'
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ import {
|
|||||||
} from '@hcengineering/notification'
|
} from '@hcengineering/notification'
|
||||||
import type { Asset, IntlString } from '@hcengineering/platform'
|
import type { Asset, IntlString } from '@hcengineering/platform'
|
||||||
import setting from '@hcengineering/setting'
|
import setting from '@hcengineering/setting'
|
||||||
import { type AnyComponent } from '@hcengineering/ui'
|
import { type AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import notification from './plugin'
|
import notification from './plugin'
|
||||||
export { notificationId } from '@hcengineering/notification'
|
export { notificationId } from '@hcengineering/notification'
|
||||||
export { notificationOperation } from './migration'
|
export { notificationOperation } from './migration'
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
import { type Doc, type Ref } from '@hcengineering/core'
|
import { type Doc, type Ref } from '@hcengineering/core'
|
||||||
import notification, { notificationId } from '@hcengineering/notification'
|
import notification, { notificationId } from '@hcengineering/notification'
|
||||||
import { type IntlString, type Resource, mergeIds } from '@hcengineering/platform'
|
import { type IntlString, type Resource, mergeIds } from '@hcengineering/platform'
|
||||||
import { type AnyComponent } from '@hcengineering/ui'
|
import { type AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import { type Action, type ActionCategory, type ViewAction } from '@hcengineering/view'
|
import { type Action, type ActionCategory, type ViewAction } from '@hcengineering/view'
|
||||||
import { type Application } from '@hcengineering/workbench'
|
import { type Application } from '@hcengineering/workbench'
|
||||||
import { type TxViewlet } from '@hcengineering/activity'
|
import { type TxViewlet } from '@hcengineering/activity'
|
||||||
|
@ -18,7 +18,10 @@ import { type Builder, Model, Prop, TypeRef } from '@hcengineering/model'
|
|||||||
import core, { TDoc } from '@hcengineering/model-core'
|
import core, { TDoc } from '@hcengineering/model-core'
|
||||||
import { type Asset, type IntlString, type Resource } from '@hcengineering/platform'
|
import { type Asset, type IntlString, type Resource } from '@hcengineering/platform'
|
||||||
// Import types to prevent .svelte components to being exposed to type typescript.
|
// Import types to prevent .svelte components to being exposed to type typescript.
|
||||||
import { type PresentationMiddlewareCreator, type PresentationMiddlewareFactory } from '@hcengineering/presentation'
|
import {
|
||||||
|
type PresentationMiddlewareCreator,
|
||||||
|
type PresentationMiddlewareFactory
|
||||||
|
} from '@hcengineering/presentation/src/pipeline'
|
||||||
import {
|
import {
|
||||||
type ComponentPointExtension,
|
type ComponentPointExtension,
|
||||||
type CreateExtensionKind,
|
type CreateExtensionKind,
|
||||||
@ -30,7 +33,7 @@ import {
|
|||||||
type ObjectSearchCategory,
|
type ObjectSearchCategory,
|
||||||
type ObjectSearchFactory
|
type ObjectSearchFactory
|
||||||
} from '@hcengineering/presentation/src/types'
|
} from '@hcengineering/presentation/src/types'
|
||||||
import { type AnyComponent, type ComponentExtensionId } from '@hcengineering/ui'
|
import { type AnyComponent, type ComponentExtensionId } from '@hcengineering/ui/src/types'
|
||||||
import presentation from './plugin'
|
import presentation from './plugin'
|
||||||
|
|
||||||
export { presentationId } from '@hcengineering/presentation/src/plugin'
|
export { presentationId } from '@hcengineering/presentation/src/plugin'
|
||||||
|
@ -20,7 +20,7 @@ import { mergeIds } from '@hcengineering/platform'
|
|||||||
import { recruitId } from '@hcengineering/recruit'
|
import { recruitId } from '@hcengineering/recruit'
|
||||||
import recruit from '@hcengineering/recruit-resources/src/plugin'
|
import recruit from '@hcengineering/recruit-resources/src/plugin'
|
||||||
import { type ProjectType } from '@hcengineering/task'
|
import { type ProjectType } from '@hcengineering/task'
|
||||||
import type { AnyComponent, Location } from '@hcengineering/ui'
|
import type { AnyComponent, Location } from '@hcengineering/ui/src/types'
|
||||||
import type { Action, ActionCategory, ViewAction, ViewQueryAction, Viewlet } from '@hcengineering/view'
|
import type { Action, ActionCategory, ViewAction, ViewQueryAction, Viewlet } from '@hcengineering/view'
|
||||||
import { type ActivityExtension } from '@hcengineering/activity'
|
import { type ActivityExtension } from '@hcengineering/activity'
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ import {
|
|||||||
type RequestPresenter,
|
type RequestPresenter,
|
||||||
type RequestStatus
|
type RequestStatus
|
||||||
} from '@hcengineering/request'
|
} from '@hcengineering/request'
|
||||||
import { type AnyComponent } from '@hcengineering/ui'
|
import { type AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import request from './plugin'
|
import request from './plugin'
|
||||||
|
|
||||||
export { requestId } from '@hcengineering/request'
|
export { requestId } from '@hcengineering/request'
|
||||||
|
@ -18,7 +18,7 @@ import type { IntlString } from '@hcengineering/platform'
|
|||||||
import { mergeIds } from '@hcengineering/platform'
|
import { mergeIds } from '@hcengineering/platform'
|
||||||
import { requestId } from '@hcengineering/request'
|
import { requestId } from '@hcengineering/request'
|
||||||
import request from '@hcengineering/request-resources/src/plugin'
|
import request from '@hcengineering/request-resources/src/plugin'
|
||||||
import { type AnyComponent } from '@hcengineering/ui'
|
import { type AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import type { TxViewlet } from '@hcengineering/activity'
|
import type { TxViewlet } from '@hcengineering/activity'
|
||||||
import type { NotificationGroup, NotificationType } from '@hcengineering/notification'
|
import type { NotificationGroup, NotificationType } from '@hcengineering/notification'
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ import templates from '@hcengineering/templates'
|
|||||||
import setting from './plugin'
|
import setting from './plugin'
|
||||||
|
|
||||||
import workbench from '@hcengineering/model-workbench'
|
import workbench from '@hcengineering/model-workbench'
|
||||||
import { type AnyComponent } from '@hcengineering/ui'
|
import { type AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
|
|
||||||
export { settingId } from '@hcengineering/setting'
|
export { settingId } from '@hcengineering/setting'
|
||||||
export { default } from './plugin'
|
export { default } from './plugin'
|
||||||
|
@ -18,7 +18,7 @@ import { type Doc, type Ref } from '@hcengineering/core'
|
|||||||
import { type IntlString, mergeIds, type Resource } from '@hcengineering/platform'
|
import { type IntlString, mergeIds, type Resource } from '@hcengineering/platform'
|
||||||
import { settingId } from '@hcengineering/setting'
|
import { settingId } from '@hcengineering/setting'
|
||||||
import setting from '@hcengineering/setting-resources/src/plugin'
|
import setting from '@hcengineering/setting-resources/src/plugin'
|
||||||
import { type AnyComponent } from '@hcengineering/ui'
|
import { type AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import { type Action, type ActionCategory, type ViewAction } from '@hcengineering/view'
|
import { type Action, type ActionCategory, type ViewAction } from '@hcengineering/view'
|
||||||
import { type TemplateFieldFunc } from '@hcengineering/templates'
|
import { type TemplateFieldFunc } from '@hcengineering/templates'
|
||||||
import { type NotificationGroup, type NotificationType } from '@hcengineering/notification'
|
import { type NotificationGroup, type NotificationType } from '@hcengineering/notification'
|
||||||
|
@ -16,7 +16,7 @@ import { type Ref } from '@hcengineering/core'
|
|||||||
import { type IntlString, mergeIds } from '@hcengineering/platform'
|
import { type IntlString, mergeIds } from '@hcengineering/platform'
|
||||||
import { type TagCategory, tagsId } from '@hcengineering/tags'
|
import { type TagCategory, tagsId } from '@hcengineering/tags'
|
||||||
import tags from '@hcengineering/tags-resources/src/plugin'
|
import tags from '@hcengineering/tags-resources/src/plugin'
|
||||||
import type { AnyComponent } from '@hcengineering/ui'
|
import type { AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import { type ViewAction } from '@hcengineering/model-view'
|
import { type ViewAction } from '@hcengineering/model-view'
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
import view from '@hcengineering/view'
|
import view from '@hcengineering/view'
|
||||||
|
@ -58,7 +58,7 @@ import {
|
|||||||
type Task,
|
type Task,
|
||||||
type TodoItem
|
type TodoItem
|
||||||
} from '@hcengineering/task'
|
} from '@hcengineering/task'
|
||||||
import type { AnyComponent } from '@hcengineering/ui'
|
import type { AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import { type ViewAction } from '@hcengineering/view'
|
import { type ViewAction } from '@hcengineering/view'
|
||||||
import task from './plugin'
|
import task from './plugin'
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ import { mergeIds } from '@hcengineering/platform'
|
|||||||
import { type TagCategory } from '@hcengineering/tags'
|
import { type TagCategory } from '@hcengineering/tags'
|
||||||
import { taskId } from '@hcengineering/task'
|
import { taskId } from '@hcengineering/task'
|
||||||
import task from '@hcengineering/task-resources/src/plugin'
|
import task from '@hcengineering/task-resources/src/plugin'
|
||||||
import type { AnyComponent } from '@hcengineering/ui'
|
import type { AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import type { Action, ActionCategory, ViewAction, Viewlet } from '@hcengineering/view'
|
import type { Action, ActionCategory, ViewAction, Viewlet } from '@hcengineering/view'
|
||||||
import {} from '@hcengineering/notification'
|
import {} from '@hcengineering/notification'
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ import { type Ref } from '@hcengineering/core'
|
|||||||
import { type IntlString, type Resource, mergeIds } from '@hcengineering/platform'
|
import { type IntlString, type Resource, mergeIds } from '@hcengineering/platform'
|
||||||
import { telegramId } from '@hcengineering/telegram'
|
import { telegramId } from '@hcengineering/telegram'
|
||||||
import telegram from '@hcengineering/telegram-resources/src/plugin'
|
import telegram from '@hcengineering/telegram-resources/src/plugin'
|
||||||
import type { AnyComponent } from '@hcengineering/ui'
|
import type { AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import type { TxViewlet } from '@hcengineering/activity'
|
import type { TxViewlet } from '@hcengineering/activity'
|
||||||
import { type TemplateFieldFunc } from '@hcengineering/templates'
|
import { type TemplateFieldFunc } from '@hcengineering/templates'
|
||||||
import { type NotificationGroup } from '@hcengineering/notification'
|
import { type NotificationGroup } from '@hcengineering/notification'
|
||||||
|
@ -21,7 +21,7 @@ import { templatesId } from '@hcengineering/templates'
|
|||||||
import templates from '@hcengineering/templates-resources/src/plugin'
|
import templates from '@hcengineering/templates-resources/src/plugin'
|
||||||
|
|
||||||
import { type RefInputAction, type RefInputActionItem } from '@hcengineering/model-text-editor'
|
import { type RefInputAction, type RefInputActionItem } from '@hcengineering/model-text-editor'
|
||||||
import type { AnyComponent } from '@hcengineering/ui'
|
import type { AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import { type Action, type ActionCategory } from '@hcengineering/view'
|
import { type Action, type ActionCategory } from '@hcengineering/view'
|
||||||
|
|
||||||
export default mergeIds(templatesId, templates, {
|
export default mergeIds(templatesId, templates, {
|
||||||
|
@ -30,7 +30,7 @@ import core, { TClass, TDoc } from '@hcengineering/model-core'
|
|||||||
import preference, { TPreference } from '@hcengineering/model-preference'
|
import preference, { TPreference } from '@hcengineering/model-preference'
|
||||||
import presentation from '@hcengineering/model-presentation'
|
import presentation from '@hcengineering/model-presentation'
|
||||||
import { type Asset, type IntlString, type Resource, type Status } from '@hcengineering/platform'
|
import { type Asset, type IntlString, type Resource, type Status } from '@hcengineering/platform'
|
||||||
import { type AnyComponent, type Location } from '@hcengineering/ui'
|
import { type AnyComponent, type Location } from '@hcengineering/ui/src/types'
|
||||||
import {
|
import {
|
||||||
type Action,
|
type Action,
|
||||||
type ActionCategory,
|
type ActionCategory,
|
||||||
|
@ -15,9 +15,9 @@
|
|||||||
|
|
||||||
import { type Ref } from '@hcengineering/core'
|
import { type Ref } from '@hcengineering/core'
|
||||||
import { type IntlString, mergeIds } from '@hcengineering/platform'
|
import { type IntlString, mergeIds } from '@hcengineering/platform'
|
||||||
import { type AnyComponent } from '@hcengineering/ui'
|
import { type AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import { type FilterFunction, type ViewAction, type ViewCategoryAction, viewId } from '@hcengineering/view'
|
import { type FilterFunction, type ViewAction, type ViewCategoryAction, viewId } from '@hcengineering/view'
|
||||||
import { type PresentationMiddlewareFactory } from '@hcengineering/presentation'
|
import { type PresentationMiddlewareFactory } from '@hcengineering/presentation/src/pipeline'
|
||||||
import view from '@hcengineering/view-resources/src/plugin'
|
import view from '@hcengineering/view-resources/src/plugin'
|
||||||
|
|
||||||
export default mergeIds(viewId, view, {
|
export default mergeIds(viewId, view, {
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
import { type Doc, type Space } from '@hcengineering/core'
|
import { type Doc, type Space } from '@hcengineering/core'
|
||||||
import { type IntlString, type Resource, mergeIds } from '@hcengineering/platform'
|
import { type IntlString, type Resource, mergeIds } from '@hcengineering/platform'
|
||||||
import { type AnyComponent } from '@hcengineering/ui'
|
import { type AnyComponent } from '@hcengineering/ui/src/types'
|
||||||
import { workbenchId } from '@hcengineering/workbench'
|
import { workbenchId } from '@hcengineering/workbench'
|
||||||
import workbench from '@hcengineering/workbench-resources/src/plugin'
|
import workbench from '@hcengineering/workbench-resources/src/plugin'
|
||||||
|
|
||||||
|
@ -59,6 +59,7 @@
|
|||||||
"@hcengineering/rekoni": "^0.6.0",
|
"@hcengineering/rekoni": "^0.6.0",
|
||||||
"@hcengineering/notification": "^0.6.15",
|
"@hcengineering/notification": "^0.6.15",
|
||||||
"@hcengineering/tags": "^0.6.11",
|
"@hcengineering/tags": "^0.6.11",
|
||||||
|
"@hcengineering/tags-resources": "^0.6.0",
|
||||||
"@hcengineering/calendar": "^0.6.16",
|
"@hcengineering/calendar": "^0.6.16",
|
||||||
"@hcengineering/tracker": "^0.6.12"
|
"@hcengineering/tracker": "^0.6.12"
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import tags, { selectedTagElements, TagElement } from '@hcengineering/tags'
|
import tags, { TagElement } from '@hcengineering/tags'
|
||||||
import { Button, Component, getCurrentResolvedLocation, navigate, showPopup } from '@hcengineering/ui'
|
import { Button, Component, getCurrentResolvedLocation, navigate, showPopup } from '@hcengineering/ui'
|
||||||
import recruit from '../plugin'
|
import recruit from '../plugin'
|
||||||
import { buildFilterKey, setFilters } from '@hcengineering/view-resources'
|
import { buildFilterKey, setFilters } from '@hcengineering/view-resources'
|
||||||
@ -7,6 +7,7 @@
|
|||||||
import { Filter } from '@hcengineering/view'
|
import { Filter } from '@hcengineering/view'
|
||||||
import { getEmbeddedLabel } from '@hcengineering/platform'
|
import { getEmbeddedLabel } from '@hcengineering/platform'
|
||||||
import OptimizeSkills from './OptimizeSkills.svelte'
|
import OptimizeSkills from './OptimizeSkills.svelte'
|
||||||
|
import { selectedTagElements } from '@hcengineering/tags-resources'
|
||||||
|
|
||||||
function setFilterTag (tag: TagElement) {
|
function setFilterTag (tag: TagElement) {
|
||||||
const client = getClient()
|
const client = getClient()
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
import { TagElement, TagReference } from '@hcengineering/tags'
|
import { TagElement, TagReference } from '@hcengineering/tags'
|
||||||
import tags from '../plugin'
|
import tags from '../plugin'
|
||||||
import TagItem from './TagItem.svelte'
|
import TagItem from './TagItem.svelte'
|
||||||
import { selectedTagElements } from '@hcengineering/tags'
|
import { selectedTagElements } from '../utils'
|
||||||
import { Label } from '@hcengineering/ui'
|
import { Label } from '@hcengineering/ui'
|
||||||
|
|
||||||
export let object: Doc
|
export let object: Doc
|
||||||
|
@ -34,14 +34,14 @@ import CreateTagElement from './components/CreateTagElement.svelte'
|
|||||||
import ObjectsTagsEditorPopup from './components/ObjectsTagsEditorPopup.svelte'
|
import ObjectsTagsEditorPopup from './components/ObjectsTagsEditorPopup.svelte'
|
||||||
import TagElement from './components/TagElement.svelte'
|
import TagElement from './components/TagElement.svelte'
|
||||||
import { type ObjQueryType } from '@hcengineering/core'
|
import { type ObjQueryType } from '@hcengineering/core'
|
||||||
import { getRefs } from './utils'
|
import { getRefs, selectedTagElements } from './utils'
|
||||||
import { type Filter } from '@hcengineering/view'
|
import { type Filter } from '@hcengineering/view'
|
||||||
import WeightPopup from './components/WeightPopup.svelte'
|
import WeightPopup from './components/WeightPopup.svelte'
|
||||||
import DraftTagsEditor from './components/DraftTagsEditor.svelte'
|
import DraftTagsEditor from './components/DraftTagsEditor.svelte'
|
||||||
import TagsFilterPresenter from './components/TagsFilterPresenter.svelte'
|
import TagsFilterPresenter from './components/TagsFilterPresenter.svelte'
|
||||||
import DocTagsEditor from './components/DocTagsEditor.svelte'
|
import DocTagsEditor from './components/DocTagsEditor.svelte'
|
||||||
|
|
||||||
export { WeightPopup, TagElement }
|
export { WeightPopup, TagElement, selectedTagElements }
|
||||||
export async function tagsInResult (filter: Filter, onUpdate: () => void): Promise<ObjQueryType<any>> {
|
export async function tagsInResult (filter: Filter, onUpdate: () => void): Promise<ObjQueryType<any>> {
|
||||||
const result = await getRefs(filter, onUpdate)
|
const result = await getRefs(filter, onUpdate)
|
||||||
return { $in: result }
|
return { $in: result }
|
||||||
|
@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
import { type Doc, type DocumentQuery, type FindResult, type Ref } from '@hcengineering/core'
|
import { type Doc, type DocumentQuery, type FindResult, type Ref } from '@hcengineering/core'
|
||||||
import { type Asset } from '@hcengineering/platform'
|
import { type Asset } from '@hcengineering/platform'
|
||||||
import { type InitialKnowledge, type TagReference } from '@hcengineering/tags'
|
import { type TagElement, type InitialKnowledge, type TagReference } from '@hcengineering/tags'
|
||||||
import { type ColorDefinition } from '@hcengineering/ui'
|
import { type ColorDefinition } from '@hcengineering/ui'
|
||||||
import { type Filter } from '@hcengineering/view'
|
import { type Filter } from '@hcengineering/view'
|
||||||
import { FilterQuery } from '@hcengineering/view-resources'
|
import { FilterQuery } from '@hcengineering/view-resources'
|
||||||
import tags from './plugin'
|
import tags from './plugin'
|
||||||
|
import { writable } from 'svelte/store'
|
||||||
|
|
||||||
export function getTagStyle (color: ColorDefinition, selected = false): string {
|
export function getTagStyle (color: ColorDefinition, selected = false): string {
|
||||||
return `
|
return `
|
||||||
@ -54,3 +55,8 @@ export interface TagElementInfo {
|
|||||||
count: number
|
count: number
|
||||||
modifiedOn: number
|
modifiedOn: number
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @public
|
||||||
|
*/
|
||||||
|
export const selectedTagElements = writable<Array<Ref<TagElement>>>([])
|
||||||
|
@ -17,7 +17,6 @@ import type { AttachedDoc, Class, Doc, Ref, Space } from '@hcengineering/core'
|
|||||||
import type { Asset, IntlString, Plugin } from '@hcengineering/platform'
|
import type { Asset, IntlString, Plugin } from '@hcengineering/platform'
|
||||||
import { plugin } from '@hcengineering/platform'
|
import { plugin } from '@hcengineering/platform'
|
||||||
import { AnyComponent } from '@hcengineering/ui'
|
import { AnyComponent } from '@hcengineering/ui'
|
||||||
import { writable } from 'svelte/store'
|
|
||||||
import { FilterMode } from '@hcengineering/view'
|
import { FilterMode } from '@hcengineering/view'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -150,8 +149,3 @@ export function findTagCategory (title: string, categories: TagCategory[]): Ref<
|
|||||||
}
|
}
|
||||||
return defaultCategory._id
|
return defaultCategory._id
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @public
|
|
||||||
*/
|
|
||||||
export const selectedTagElements = writable<Ref<TagElement>[]>([])
|
|
||||||
|
@ -54,6 +54,7 @@
|
|||||||
"@hcengineering/workbench": "^0.6.8",
|
"@hcengineering/workbench": "^0.6.8",
|
||||||
"@hcengineering/notification": "^0.6.15",
|
"@hcengineering/notification": "^0.6.15",
|
||||||
"@hcengineering/tags": "^0.6.11",
|
"@hcengineering/tags": "^0.6.11",
|
||||||
|
"@hcengineering/tags-resources": "^0.6.0",
|
||||||
"@hcengineering/kanban": "^0.6.0",
|
"@hcengineering/kanban": "^0.6.0",
|
||||||
"@hcengineering/contact-resources": "^0.6.0"
|
"@hcengineering/contact-resources": "^0.6.0"
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,8 @@
|
|||||||
import { Class, Doc, DocumentQuery, getCurrentAccount, Ref, Status } from '@hcengineering/core'
|
import { Class, Doc, DocumentQuery, getCurrentAccount, Ref, Status } from '@hcengineering/core'
|
||||||
import { IntlString } from '@hcengineering/platform'
|
import { IntlString } from '@hcengineering/platform'
|
||||||
import { createQuery, getClient } from '@hcengineering/presentation'
|
import { createQuery, getClient } from '@hcengineering/presentation'
|
||||||
import tags, { selectedTagElements, TagCategory, TagElement } from '@hcengineering/tags'
|
import tags, { TagCategory, TagElement } from '@hcengineering/tags'
|
||||||
|
import { selectedTagElements } from '@hcengineering/tags-resources'
|
||||||
import { Task } from '@hcengineering/task'
|
import { Task } from '@hcengineering/task'
|
||||||
import {
|
import {
|
||||||
Component,
|
Component,
|
||||||
|
Loading…
Reference in New Issue
Block a user