@antcde/component-library 0.1.24-rc.5 → 0.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/build/uno.js +1 -9
  2. package/dist/index.js +34219 -34069
  3. package/dist/types/src/components/BaseAntInput.vue.d.ts +0 -6
  4. package/dist/types/src/components/{BaseAppCard/index.vue.d.ts → BaseAppCard.vue.d.ts} +7 -22
  5. package/dist/types/src/components/DmsFilePicker/composables/usePickerNavigation.d.ts +0 -8
  6. package/dist/types/src/components/DmsFilePicker/composables/usePickerUpload.d.ts +0 -2
  7. package/dist/types/src/components/DmsFilePicker/utils/fileFormatting.d.ts +0 -1
  8. package/dist/types/src/components/FlowWindowContent/index.vue.d.ts +1 -5
  9. package/dist/types/src/components/RichTextEditor/index.vue.d.ts +6 -20
  10. package/dist/types/src/components/TasksFlow/components/_FlowBreadcrumb.vue.d.ts +1 -11
  11. package/dist/types/src/components/TasksFlow/components/_FlowToolbar.vue.d.ts +2 -5
  12. package/dist/types/src/components/TasksFlow/components/_FlowVersionBar.vue.d.ts +0 -2
  13. package/dist/types/src/components/TasksFlow/components/_flowEdge.vue.d.ts +1 -4
  14. package/dist/types/src/components/TasksFlow/components/nodes/useTaskNodeState.d.ts +5 -5
  15. package/dist/types/src/components/TasksFlow/composables/useAutoLayout.d.ts +10 -6
  16. package/dist/types/src/components/TasksFlow/composables/useFlowRealtime.d.ts +1 -3
  17. package/dist/types/src/components/TasksFlow/composables/useFlowViewport.d.ts +4 -1
  18. package/dist/types/src/components/TasksFlow/composables/useTaskFlow.d.ts +4 -58
  19. package/dist/types/src/components/TasksFlow/composables/useTaskFlowTypes.d.ts +0 -4
  20. package/dist/types/src/components/TasksFlow/composables/useTemplateVersioning.d.ts +4 -53
  21. package/dist/types/src/components/TasksFlow/composables/useTemplateVersioningState.d.ts +4 -52
  22. package/dist/types/src/components/TasksFlow/index.vue.d.ts +0 -10
  23. package/dist/types/src/index.d.ts +2 -2
  24. package/lib/build/uno.ts +1 -10
  25. package/lib/test/setup.ts +0 -8
  26. package/package.json +25 -29
  27. package/dist/types/src/components/BaseAppCard/_BaseAppCardHint.vue.d.ts +0 -17
  28. package/dist/types/src/components/BaseAppCard/_BaseAppCardMedia.vue.d.ts +0 -27
  29. package/dist/types/src/components/BaseAppCard/_BaseAppCardTitle.vue.d.ts +0 -5
  30. package/dist/types/src/components/BaseAppCard/_BaseAppCardToolbar.vue.d.ts +0 -18
  31. package/dist/types/src/components/BaseAppCard/_BaseAppCardUpdate.vue.d.ts +0 -8
  32. package/dist/types/src/components/RichTextEditor/_MentionPanel.vue.d.ts +0 -18
  33. package/dist/types/src/components/RichTextEditor/_Toolbar.vue.d.ts +0 -6
  34. package/dist/types/src/components/RichTextEditor/_useInlineEdit.d.ts +0 -28
  35. package/dist/types/src/components/RichTextEditor/_useMentionPicker.d.ts +0 -47
  36. package/dist/types/src/components/TasksFlow/components/_FlowEdgeDeleteDialog.vue.d.ts +0 -11
  37. package/dist/types/src/components/TasksFlow/components/_FlowEdgeLagMenu.vue.d.ts +0 -14
  38. package/dist/types/src/components/TasksFlow/components/_FlowLifecycleBar.vue.d.ts +0 -16
  39. package/dist/types/src/components/TasksFlow/components/_FlowStructureTree.vue.d.ts +0 -14
  40. package/dist/types/src/components/TasksFlow/components/nodes/_endpointNode.vue.d.ts +0 -10
  41. package/dist/types/src/components/TasksFlow/components/nodes/_swimlaneNode.vue.d.ts +0 -6
  42. package/dist/types/src/components/TasksFlow/composables/_layoutEngine.d.ts +0 -19
  43. package/dist/types/src/components/TasksFlow/composables/useFlowDisplayElements.d.ts +0 -15
  44. package/dist/types/src/components/TasksFlow/composables/useFlowEndpoints.d.ts +0 -10
  45. package/dist/types/src/components/TasksFlow/composables/useFlowLifecycle.d.ts +0 -18
  46. package/dist/types/src/components/TasksFlow/composables/useFlowStructureTree.d.ts +0 -19
  47. package/dist/types/src/components/TasksFlow/composables/useFlowToolbarDrag.d.ts +0 -6
  48. package/dist/types/src/components/TasksFlow/composables/useSwimlaneLayout.d.ts +0 -23
  49. package/dist/types/src/components/_BaseAntInputLabel.vue.d.ts +0 -27
@@ -40,12 +40,6 @@ declare enum InputTypes {
40
40
  interface Props {
41
41
  topMargin?: string;
42
42
  required?: boolean;
43
- /**
44
- * Text for the required marker's tooltip and screen-reader label. Pass this to
45
- * keep the component off the host's translation keys; when omitted it falls
46
- * back to `common.requiredField`, and to English if the host lacks that key.
47
- */
48
- requiredLabel?: string;
49
43
  readonly?: boolean;
50
44
  label?: string;
51
45
  type?: keyof typeof InputTypes;
@@ -1,15 +1,13 @@
1
- import { UpdateState } from './_BaseAppCardUpdate.vue';
2
1
  export interface AppLike {
3
2
  title: string;
4
- icon?: string | null;
3
+ icon: string;
5
4
  id: string;
6
- color?: string | null;
5
+ color?: string;
7
6
  isFavorite?: boolean;
8
- image?: string | null;
7
+ image?: string;
9
8
  update_available?: boolean;
10
- can_open?: boolean;
9
+ activated?: boolean;
11
10
  }
12
- type SplitPane = 'L' | 'R' | 'T' | 'B';
13
11
  type __VLS_Props = {
14
12
  app: AppLike;
15
13
  smallerVariant?: boolean;
@@ -17,23 +15,10 @@ type __VLS_Props = {
17
15
  titleless?: boolean;
18
16
  isToolbarSize?: boolean;
19
17
  showLoadingIndicator?: boolean;
18
+ toggleFavorite?: () => void;
19
+ favoriteVisibility?: 'always' | 'hover' | 'never';
20
20
  shadow?: boolean;
21
21
  size?: 's' | 'xs' | 'toolbar';
22
- updateState?: UpdateState;
23
- splitPane?: SplitPane | null;
24
- menuOpen?: boolean;
25
- nextVersion?: string;
26
- fluid?: boolean;
27
- /** Ring the icon when this app is connected to the selected task. */
28
- highlighted?: boolean;
29
- /** Tooltip text shown while highlighted (e.g. "Connected to task X"). */
30
- highlightLabel?: string;
31
- /** App belongs to a project scope — shows the project context badge + hint. */
32
- projectApp?: boolean;
33
- /** Scope description for the hint (e.g. "Project app · North Tower"). */
34
- scopeLabel?: string;
35
- /** Host-derived update affordance; falls back to the app's own flags. */
36
- updateAvailable?: boolean;
37
22
  };
38
23
  declare function __VLS_template(): {
39
24
  attrs: Partial<{}>;
@@ -46,7 +31,7 @@ declare function __VLS_template(): {
46
31
  rootEl: any;
47
32
  };
48
33
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
49
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
50
35
  clicked: (app: AppLike) => any;
51
36
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
52
37
  onClicked?: ((app: AppLike) => any) | undefined;
@@ -10,8 +10,6 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
10
10
  extension: string | null;
11
11
  size: number | null;
12
12
  is_folder: boolean;
13
- source_type: string;
14
- source_url: string | null;
15
13
  is_system?: boolean | undefined;
16
14
  visibility?: string | null | undefined;
17
15
  display_name?: string | null | undefined;
@@ -57,8 +55,6 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
57
55
  extension: string | null;
58
56
  size: number | null;
59
57
  is_folder: boolean;
60
- source_type: string;
61
- source_url: string | null;
62
58
  is_system?: boolean | undefined;
63
59
  visibility?: string | null | undefined;
64
60
  display_name?: string | null | undefined;
@@ -105,8 +101,6 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
105
101
  extension: string | null;
106
102
  size: number | null;
107
103
  is_folder: boolean;
108
- source_type: string;
109
- source_url: string | null;
110
104
  is_system?: boolean | undefined;
111
105
  visibility?: string | null | undefined;
112
106
  display_name?: string | null | undefined;
@@ -152,8 +146,6 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
152
146
  extension: string | null;
153
147
  size: number | null;
154
148
  is_folder: boolean;
155
- source_type: string;
156
- source_url: string | null;
157
149
  is_system?: boolean | undefined;
158
150
  visibility?: string | null | undefined;
159
151
  display_name?: string | null | undefined;
@@ -15,10 +15,8 @@ export declare function usePickerUpload(antConnect: AntConnect, options: UsePick
15
15
  isUploading: Ref<boolean, boolean>;
16
16
  uploadProgress: Ref<number, number>;
17
17
  isDragOver: Ref<boolean, boolean>;
18
- isAddingLink: Ref<boolean, boolean>;
19
18
  onFileInput: (event: Event, modeOverride?: UploadMode) => void;
20
19
  onDrop: (event: DragEvent) => void;
21
20
  handleFileUpload: (file: File) => Promise<void>;
22
- addExternalLink: (name: string, url: string) => Promise<DmsFile | null>;
23
21
  };
24
22
  export {};
@@ -1,6 +1,5 @@
1
1
  import { DmsFile } from '@antcde/connect-ts';
2
2
  export declare function isSystemItem(file: DmsFile): boolean;
3
- export declare function isExternalLinkItem(file: DmsFile): boolean;
4
3
  export declare function getItemIcon(file: DmsFile): string;
5
4
  export declare function getItemColor(file: DmsFile): string | undefined;
6
5
  export declare function getItemName(file: DmsFile): string;
@@ -17,11 +17,7 @@ type __VLS_Props = {
17
17
  declare function updateFlowTask(task: Task): void;
18
18
  declare const _default: import('vue').DefineComponent<__VLS_Props, {
19
19
  updateFlowTask: typeof updateFlowTask;
20
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
- versionPublished: (version: number) => any;
22
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
23
- onVersionPublished?: ((version: number) => any) | undefined;
24
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
20
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
25
21
  fullFlowRef: unknown;
26
22
  editorRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
27
23
  isDark: boolean;
@@ -1,5 +1,7 @@
1
- import { MentionItem } from './_useMentionPicker';
2
- export type { MentionItem };
1
+ export interface MentionItem {
2
+ id: string;
3
+ label: string;
4
+ }
3
5
  type __VLS_Props = {
4
6
  isDark?: boolean;
5
7
  placeholder?: string;
@@ -17,36 +19,20 @@ type __VLS_Props = {
17
19
  * (message use case).
18
20
  */
19
21
  mode?: 'inline' | 'composer';
20
- /**
21
- * Visual chrome. 'subtle' (default) is the soft tinted look for inline
22
- * descriptions and chat composers. 'form' matches ANT form-field chrome
23
- * (solid surface, ant border, rounded-lg, primary focus ring) so the
24
- * editor sits next to other Inputs without looking like a different
25
- * control.
26
- */
27
- variant?: 'subtle' | 'form';
28
22
  /**
29
23
  * Source of mention suggestions. When set, typing `@` opens an inline
30
24
  * picker that calls this function with the current query and renders
31
25
  * the returned items. When unset, mentions are disabled.
32
26
  */
33
27
  mentionItems?: (query: string) => Promise<MentionItem[]>;
34
- /**
35
- * Inline mode only. By default clicking outside leaves edit mode and emits
36
- * `blur`, which hosts treat as "commit". Set this when the host owns the
37
- * commit point (a Save button): clicking away keeps the editor open and
38
- * editable, and the host closes it via the exposed `exitEdit` / `cancelEdit`.
39
- */
40
- explicitCommit?: boolean;
41
28
  };
29
+ declare function clear(): void;
42
30
  type __VLS_PublicProps = {
43
31
  modelValue?: string;
44
32
  } & __VLS_Props;
45
33
  declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
46
34
  focus: () => boolean | undefined;
47
- clear: () => void;
48
- exitEdit: () => void;
49
- cancelEdit: () => void;
35
+ clear: typeof clear;
50
36
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
51
37
  submit: () => any;
52
38
  "update:modelValue": (value: string) => any;
@@ -1,27 +1,17 @@
1
- import { LifecycleAction } from '../composables/useFlowLifecycle';
2
1
  type __VLS_Props = {
3
2
  isDark: boolean;
4
3
  isLocked: boolean;
5
4
  isTemplate: boolean;
6
- isInstance?: boolean;
7
- canManage?: boolean;
8
- canShareLicense?: boolean;
9
5
  stack: {
10
6
  id: string;
11
7
  title: string;
12
8
  }[];
13
9
  currentTitle: string | undefined;
14
10
  nodeCount: number;
15
- showSidebarToggle?: boolean;
16
- isSidebarCollapsed?: boolean;
17
11
  };
18
12
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
- "toggle-sidebar": () => any;
20
- lifecycle: (key: LifecycleAction) => any;
21
13
  navigateBack: (index: number) => any;
22
14
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
23
- "onToggle-sidebar"?: (() => any) | undefined;
24
- onLifecycle?: ((key: LifecycleAction) => any) | undefined;
25
15
  onNavigateBack?: ((index: number) => any) | undefined;
26
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
27
17
  export default _default;
@@ -4,7 +4,6 @@ type __VLS_Props = {
4
4
  isDark: boolean;
5
5
  isNotepadOpen: boolean;
6
6
  isAutoLayouting: boolean;
7
- isStructureOpen?: boolean;
8
7
  userId: string;
9
8
  isAdmin?: boolean;
10
9
  canManageTemplates?: boolean;
@@ -12,18 +11,16 @@ type __VLS_Props = {
12
11
  editorRef: FlowEditorExposed | null;
13
12
  };
14
13
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
- share: (task: Task) => any;
16
14
  "toggle-notepad": () => any;
17
- "toggle-structure": () => any;
18
15
  "auto-layout": () => any;
19
16
  "open-insert-template": () => any;
20
17
  "publish-version": () => any;
18
+ share: (task: Task) => any;
21
19
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
22
- onShare?: ((task: Task) => any) | undefined;
23
20
  "onToggle-notepad"?: (() => any) | undefined;
24
- "onToggle-structure"?: (() => any) | undefined;
25
21
  "onAuto-layout"?: (() => any) | undefined;
26
22
  "onOpen-insert-template"?: (() => any) | undefined;
27
23
  "onPublish-version"?: (() => any) | undefined;
24
+ onShare?: ((task: Task) => any) | undefined;
28
25
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
29
26
  export default _default;
@@ -6,9 +6,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
6
6
  openPublishDialog: typeof openPublishDialog;
7
7
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
8
  updated: () => any;
9
- published: (version: number) => any;
10
9
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
10
  onUpdated?: (() => any) | undefined;
12
- onPublished?: ((version: number) => any) | undefined;
13
11
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
12
  export default _default;
@@ -2,8 +2,5 @@ import { EdgeProps } from '@vue-flow/core';
2
2
  type __VLS_Props = EdgeProps & {
3
3
  isDark: boolean;
4
4
  };
5
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
6
- interactionPathRef: SVGPathElement;
7
- labelContainerRef: HTMLDivElement;
8
- }, any>;
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
6
  export default _default;
@@ -61,17 +61,17 @@ export declare function useTaskNodeState(props: TaskNodeProps, flowStore: FlowSt
61
61
  isCompareActive: import('vue').ComputedRef<boolean>;
62
62
  diffClass: import('vue').ComputedRef<string>;
63
63
  nodeLabels: import('vue').ComputedRef<NodeLabel[]>;
64
- nodeRoles: import('vue').ComputedRef<{
65
- id: string;
66
- name: string;
67
- }[]>;
68
64
  labelRingColor: import('vue').ComputedRef<string | null>;
69
65
  labelRingStyle: import('vue').ComputedRef<{
70
66
  '--label-ring-color': string;
71
67
  } | undefined>;
72
68
  assignedUser: import('vue').ComputedRef<any>;
73
- userInitials: import('vue').ComputedRef<any>;
69
+ userInitials: import('vue').ComputedRef<string>;
74
70
  descriptionPlain: import('vue').ComputedRef<string>;
71
+ isEditingTitle: import('vue').Ref<boolean, boolean>;
72
+ editTitle: import('vue').Ref<string, string>;
73
+ startTitleEdit: () => void;
74
+ saveTitleEdit: () => Promise<void>;
75
75
  showUserPicker: import('vue').Ref<boolean, boolean>;
76
76
  onNodeClick: (e: MouseEvent) => void;
77
77
  onNodeDblClick: (e: MouseEvent) => void;
@@ -1,5 +1,11 @@
1
- import { LayoutEdge, LayoutNode, LayoutOptions } from './_layoutEngine';
2
- export declare const LAYOUT_DEFAULTS: Required<LayoutOptions>;
1
+ import { TaskFlowEdge, TaskFlowNode } from './useTaskFlow';
2
+ interface LayoutOptions {
3
+ nodeWidth?: number;
4
+ nodeHeight?: number;
5
+ horizontalGap?: number;
6
+ verticalGap?: number;
7
+ direction?: 'LR' | 'TB';
8
+ }
3
9
  /**
4
10
  * Lightweight directed graph layout using a layered (Sugiyama-style) approach.
5
11
  * Handles disconnected components by laying them out separately then stacking.
@@ -8,11 +14,9 @@ export declare const LAYOUT_DEFAULTS: Required<LayoutOptions>;
8
14
  * 1. Find connected components
9
15
  * 2. For each component: assign layers, order with barycenter, compute positions
10
16
  * 3. Stack components vertically with spacing
11
- *
12
- * Reads only ids and edge endpoints, so callers may pass real flow nodes/edges
13
- * or lightweight virtual ones (see useFlowAutoLayout's Start/End injection).
14
17
  */
15
- export declare function computeAutoLayout(nodes: LayoutNode[], edges: LayoutEdge[], options?: LayoutOptions): Map<string, {
18
+ export declare function computeAutoLayout(nodes: TaskFlowNode[], edges: TaskFlowEdge[], options?: LayoutOptions): Map<string, {
16
19
  x: number;
17
20
  y: number;
18
21
  }>;
22
+ export {};
@@ -12,10 +12,8 @@ interface FlowRealtimeOptions {
12
12
  notifications: ReturnType<typeof useFlowNotifications>;
13
13
  channelSubscriber?: FlowChannelSubscriber;
14
14
  refreshFromExternal: () => Promise<void>;
15
- onParentUpdated?: () => void;
16
- onParentDeleted?: () => void;
17
15
  }
18
- export declare function useFlowRealtime({ flowParent, flowNodes, flowEdges, flowCache, notifications, channelSubscriber, refreshFromExternal, onParentUpdated, onParentDeleted, }: FlowRealtimeOptions): {
16
+ export declare function useFlowRealtime({ flowParent, flowNodes, flowEdges, flowCache, notifications, channelSubscriber, refreshFromExternal, }: FlowRealtimeOptions): {
19
17
  handleTaskEvent: (payload: {
20
18
  id: string;
21
19
  action: string;
@@ -14,7 +14,10 @@ export declare function useFlowViewport(flowNodes: Ref<TaskFlowNode[]>, isMounte
14
14
  x: number;
15
15
  y: number;
16
16
  };
17
- getViewportCenterFlowPosition: () => import('@vue-flow/core').XYPosition;
17
+ getViewportCenterFlowPosition: () => {
18
+ x: number;
19
+ y: number;
20
+ };
18
21
  centerAndPersistNode: (createdId: string, centerPos: {
19
22
  x: number;
20
23
  y: number;
@@ -9,7 +9,6 @@ export type { TaskFlowEdge, TaskFlowNode, TaskFlowQuery } from './useTaskFlowTyp
9
9
  export declare function useTaskFlow(antConnect: AntConnect, notepad: Notepad, channelSubscriber?: FlowChannelSubscriber): {
10
10
  fetchVersions: () => Promise<void>;
11
11
  publishVersion: (changeSummary?: string) => Promise<import('@antcde/connect-ts').TaskTemplateVersion | null>;
12
- checkDraftChanges: () => Promise<void>;
13
12
  checkUpdates: () => Promise<void>;
14
13
  fetchDiff: (targetVersionId?: string) => Promise<void>;
15
14
  syncToVersion: (targetVersionId?: string) => Promise<import('@antcde/connect-ts').VersionSyncResult | null>;
@@ -49,13 +48,11 @@ export declare function useTaskFlow(antConnect: AntConnect, notepad: Notepad, ch
49
48
  }[]>;
50
49
  versionCheck: Ref<{
51
50
  has_update: boolean;
52
- has_changes?: boolean | undefined;
53
51
  current_version: number;
54
52
  latest_version: number;
55
53
  template_id: string;
56
54
  } | null, import('@antcde/connect-ts').VersionCheck | {
57
55
  has_update: boolean;
58
- has_changes?: boolean | undefined;
59
56
  current_version: number;
60
57
  latest_version: number;
61
58
  template_id: string;
@@ -65,30 +62,22 @@ export declare function useTaskFlow(antConnect: AntConnect, notepad: Notepad, ch
65
62
  source_id: string;
66
63
  title: string;
67
64
  change_type: "added" | "removed";
68
- status?: string | undefined;
69
65
  duration_days?: number | null | undefined;
70
- duration_active_days?: number[] | null | undefined;
71
66
  position_x?: number | undefined;
72
67
  position_y?: number | undefined;
73
- parent_ref?: string | null | undefined;
74
- trigger_id?: string | null | undefined;
75
68
  checks?: {
76
- name: string | null;
69
+ name: string;
77
70
  }[] | undefined;
78
71
  }[];
79
72
  removed: {
80
73
  source_id: string;
81
74
  title: string;
82
75
  change_type: "added" | "removed";
83
- status?: string | undefined;
84
76
  duration_days?: number | null | undefined;
85
- duration_active_days?: number[] | null | undefined;
86
77
  position_x?: number | undefined;
87
78
  position_y?: number | undefined;
88
- parent_ref?: string | null | undefined;
89
- trigger_id?: string | null | undefined;
90
79
  checks?: {
91
- name: string | null;
80
+ name: string;
92
81
  }[] | undefined;
93
82
  }[];
94
83
  modified: {
@@ -105,26 +94,13 @@ export declare function useTaskFlow(antConnect: AntConnect, notepad: Notepad, ch
105
94
  target_ref: string;
106
95
  type: string;
107
96
  lag_days: number;
108
- lag_active_days?: number[] | undefined;
109
97
  }[];
110
98
  relations_removed: {
111
99
  source_ref: string;
112
100
  target_ref: string;
113
101
  type: string;
114
102
  lag_days: number;
115
- lag_active_days?: number[] | undefined;
116
103
  }[];
117
- relations_modified?: {
118
- source_ref: string;
119
- target_ref: string;
120
- type: string | null;
121
- change_type: "modified";
122
- changes: Record<string, {
123
- old: any;
124
- new: any;
125
- }>;
126
- }[] | undefined;
127
- has_changes?: boolean | undefined;
128
104
  from_version: number;
129
105
  to_version: number;
130
106
  task_mapping?: Record<string, string> | undefined;
@@ -135,30 +111,22 @@ export declare function useTaskFlow(antConnect: AntConnect, notepad: Notepad, ch
135
111
  source_id: string;
136
112
  title: string;
137
113
  change_type: "added" | "removed";
138
- status?: string | undefined;
139
114
  duration_days?: number | null | undefined;
140
- duration_active_days?: number[] | null | undefined;
141
115
  position_x?: number | undefined;
142
116
  position_y?: number | undefined;
143
- parent_ref?: string | null | undefined;
144
- trigger_id?: string | null | undefined;
145
117
  checks?: {
146
- name: string | null;
118
+ name: string;
147
119
  }[] | undefined;
148
120
  }[];
149
121
  removed: {
150
122
  source_id: string;
151
123
  title: string;
152
124
  change_type: "added" | "removed";
153
- status?: string | undefined;
154
125
  duration_days?: number | null | undefined;
155
- duration_active_days?: number[] | null | undefined;
156
126
  position_x?: number | undefined;
157
127
  position_y?: number | undefined;
158
- parent_ref?: string | null | undefined;
159
- trigger_id?: string | null | undefined;
160
128
  checks?: {
161
- name: string | null;
129
+ name: string;
162
130
  }[] | undefined;
163
131
  }[];
164
132
  modified: {
@@ -175,26 +143,13 @@ export declare function useTaskFlow(antConnect: AntConnect, notepad: Notepad, ch
175
143
  target_ref: string;
176
144
  type: string;
177
145
  lag_days: number;
178
- lag_active_days?: number[] | undefined;
179
146
  }[];
180
147
  relations_removed: {
181
148
  source_ref: string;
182
149
  target_ref: string;
183
150
  type: string;
184
151
  lag_days: number;
185
- lag_active_days?: number[] | undefined;
186
152
  }[];
187
- relations_modified?: {
188
- source_ref: string;
189
- target_ref: string;
190
- type: string | null;
191
- change_type: "modified";
192
- changes: Record<string, {
193
- old: any;
194
- new: any;
195
- }>;
196
- }[] | undefined;
197
- has_changes?: boolean | undefined;
198
153
  from_version: number;
199
154
  to_version: number;
200
155
  task_mapping?: Record<string, string> | undefined;
@@ -204,20 +159,16 @@ export declare function useTaskFlow(antConnect: AntConnect, notepad: Notepad, ch
204
159
  isPublishing: Ref<boolean, boolean>;
205
160
  isSyncing: Ref<boolean, boolean>;
206
161
  isDiffLoading: Ref<boolean, boolean>;
207
- isVersionStateLoading: Ref<boolean, boolean>;
208
162
  isCompareMode: Ref<boolean, boolean>;
209
163
  isCompareOriginal: Ref<boolean, boolean>;
210
164
  isCompareTwoVersions: Ref<boolean, boolean>;
211
165
  selectedTargetVersionId: Ref<string | null, string | null>;
212
166
  selectedFromVersionId: Ref<string | null, string | null>;
213
- draftChangeCount: Ref<number, number>;
214
167
  isTemplate: import('vue').ComputedRef<boolean>;
215
168
  hasUpdate: import('vue').ComputedRef<boolean>;
216
169
  currentVersion: import('vue').ComputedRef<number>;
217
170
  latestVersion: import('vue').ComputedRef<number>;
218
171
  hasVersions: import('vue').ComputedRef<boolean>;
219
- publishedVersion: import('vue').ComputedRef<number>;
220
- hasUnpublishedChanges: import('vue').ComputedRef<boolean>;
221
172
  availableVersions: import('vue').ComputedRef<{
222
173
  id: string;
223
174
  template_id: string;
@@ -257,10 +208,6 @@ export declare function useTaskFlow(antConnect: AntConnect, notepad: Notepad, ch
257
208
  }[]>;
258
209
  isNavigating: Ref<boolean, boolean>;
259
210
  navigateToChild: (childId: string, _childTitle: string) => Promise<void>;
260
- navigateToNode: (targetId: string, path: {
261
- id: string;
262
- title: string;
263
- }[]) => Promise<void>;
264
211
  navigateBack: (index?: number) => Promise<void>;
265
212
  handleTaskEvent: (payload: {
266
213
  id: string;
@@ -363,7 +310,6 @@ export declare function useTaskFlow(antConnect: AntConnect, notepad: Notepad, ch
363
310
  highlightedNodeId: Ref<string | null, string | null>;
364
311
  hoveredNodeId: Ref<string | null, string | null>;
365
312
  layoutDirection: Ref<"TB" | "LR", "TB" | "LR">;
366
- viewMode: Ref<"free" | "swimlane", "free" | "swimlane">;
367
313
  editingConditionsEdgeId: Ref<string | null, string | null>;
368
314
  openConditionsEditor: (edgeId: string) => void;
369
315
  closeConditionsEditor: () => void;
@@ -37,10 +37,6 @@ export interface TaskFlowNode {
37
37
  plannedStart?: string | null;
38
38
  plannedEnd?: string | null;
39
39
  labels?: ResourceLabel[];
40
- roles?: {
41
- id: string;
42
- name: string;
43
- }[];
44
40
  };
45
41
  draggable: boolean;
46
42
  position: {