@antcde/component-library 0.1.12 → 0.1.14-rc.00a441c

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 (109) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +41317 -33581
  3. package/dist/types/src/components/BaseAntCard.vue.d.ts +30 -0
  4. package/dist/types/{components → src/components}/BaseAntInput.vue.d.ts +13 -5
  5. package/dist/types/{components → src/components}/BaseAppCard.vue.d.ts +18 -1
  6. package/dist/types/{components → src/components}/BaseClickableIcon.vue.d.ts +1 -1
  7. package/dist/types/{components → src/components}/BaseConfirmDialog.vue.d.ts +16 -7
  8. package/dist/types/{components → src/components}/BaseDeleteDialog.vue.d.ts +24 -9
  9. package/dist/types/{components → src/components}/BaseDialog.vue.d.ts +12 -4
  10. package/dist/types/src/components/BaseLimitedButton.vue.d.ts +45 -0
  11. package/dist/types/{components → src/components}/BaseResizePanel.vue.d.ts +12 -12
  12. package/dist/types/src/components/BulkLabelsMenu.vue.d.ts +33 -0
  13. package/dist/types/src/components/DmsFilePicker/composables/usePickerNavigation.d.ts +196 -0
  14. package/dist/types/src/components/DmsFilePicker/composables/usePickerUpload.d.ts +22 -0
  15. package/dist/types/src/components/DmsFilePicker/index.vue.d.ts +28 -0
  16. package/dist/types/src/components/DmsFilePicker/utils/fileFormatting.d.ts +6 -0
  17. package/dist/types/src/components/FilePreviewContent/index.vue.d.ts +31 -0
  18. package/dist/types/src/components/FlowWindowContent/index.vue.d.ts +113 -0
  19. package/dist/types/src/components/RichTextEditor/index.vue.d.ts +51 -0
  20. package/dist/types/src/components/StackedLabels/_LabelsMenuCard.vue.d.ts +15 -0
  21. package/dist/types/src/components/StackedLabels/index.vue.d.ts +26 -0
  22. package/dist/types/src/components/TasksFlow/components/_FlowBreadcrumb.vue.d.ts +17 -0
  23. package/dist/types/src/components/TasksFlow/components/_FlowEdgeConditionsDialog.vue.d.ts +10 -0
  24. package/dist/types/{components/TasksFlow/components/nodes/_triggerNode.vue.d.ts → src/components/TasksFlow/components/_FlowSearch.vue.d.ts} +4 -3
  25. package/dist/types/src/components/TasksFlow/components/_FlowStats.vue.d.ts +5 -0
  26. package/dist/types/src/components/TasksFlow/components/_InsertTemplateDialog.vue.d.ts +17 -0
  27. package/dist/types/src/components/TasksFlow/components/_SubflowPanel.vue.d.ts +125 -0
  28. package/dist/types/src/components/TasksFlow/components/_VersionDiffView.vue.d.ts +14 -0
  29. package/dist/types/src/components/TasksFlow/components/_VersionPublishDialog.vue.d.ts +14 -0
  30. package/dist/types/src/components/TasksFlow/components/_dropzoneBackground.vue.d.ts +17 -0
  31. package/dist/types/src/components/TasksFlow/components/_flowEditor.vue.d.ts +13 -0
  32. package/dist/types/src/components/TasksFlow/components/nodes/_DurationEditor.vue.d.ts +33 -0
  33. package/dist/types/src/components/TasksFlow/components/nodes/_NodeContextMenu.vue.d.ts +35 -0
  34. package/dist/types/src/components/TasksFlow/components/nodes/_UserPicker.vue.d.ts +32 -0
  35. package/dist/types/{components → src/components}/TasksFlow/components/nodes/_taskNode.vue.d.ts +2 -2
  36. package/dist/types/src/components/TasksFlow/components/nodes/_triggerNode.vue.d.ts +10 -0
  37. package/dist/types/src/components/TasksFlow/composables/useAutoLayout.d.ts +22 -0
  38. package/dist/types/src/components/TasksFlow/composables/useCriticalPath.d.ts +8 -0
  39. package/dist/types/src/components/TasksFlow/composables/useFlowCache.d.ts +17 -0
  40. package/dist/types/src/components/TasksFlow/composables/useFlowCrud.d.ts +21 -0
  41. package/dist/types/src/components/TasksFlow/composables/useFlowEditor.d.ts +54 -0
  42. package/dist/types/src/components/TasksFlow/composables/useFlowFetch.d.ts +33 -0
  43. package/dist/types/src/components/TasksFlow/composables/useFlowKeyboard.d.ts +15 -0
  44. package/dist/types/src/components/TasksFlow/composables/useFlowNotifications.d.ts +15 -0
  45. package/dist/types/src/components/TasksFlow/composables/useFlowOperations.d.ts +8 -0
  46. package/dist/types/src/components/TasksFlow/composables/useFlowRealtime.d.ts +23 -0
  47. package/dist/types/src/components/TasksFlow/composables/useFlowSearch.d.ts +14 -0
  48. package/dist/types/src/components/TasksFlow/composables/useFlowSubflows.d.ts +22 -0
  49. package/dist/types/src/components/TasksFlow/composables/useFlowUsers.d.ts +27 -0
  50. package/dist/types/src/components/TasksFlow/composables/useFlowViewport.d.ts +28 -0
  51. package/dist/types/src/components/TasksFlow/composables/useTaskFlow.d.ts +321 -0
  52. package/dist/types/{components → src/components}/TasksFlow/composables/useTaskFlowDragDrop.d.ts +3 -4
  53. package/dist/types/src/components/TasksFlow/composables/useTaskFlowEdgeConditions.d.ts +10 -0
  54. package/dist/types/src/components/TasksFlow/composables/useTaskFlowEdges.d.ts +18 -0
  55. package/dist/types/src/components/TasksFlow/composables/useTaskFlowMappers.d.ts +4 -0
  56. package/dist/types/src/components/TasksFlow/composables/useTaskFlowTypes.d.ts +76 -0
  57. package/dist/types/src/components/TasksFlow/composables/useTemplateVersioning.d.ts +188 -0
  58. package/dist/types/src/components/TasksFlow/composables/useTemplateVersioningState.d.ts +176 -0
  59. package/dist/types/src/components/TasksFlow/composables/useTriggerExecution.d.ts +21 -0
  60. package/dist/types/src/components/TasksFlow/index.vue.d.ts +39 -0
  61. package/dist/types/src/components/UnifiedWindow/index.vue.d.ts +67 -0
  62. package/dist/types/src/components/UnifiedWindow/useWindowDrag.d.ts +28 -0
  63. package/dist/types/src/components/VersionPublishDialog.vue.d.ts +24 -0
  64. package/dist/types/{index.d.ts → src/index.d.ts} +15 -1
  65. package/lib/GisViewer/GisViewer.vue +3 -2
  66. package/lib/build/layer-order.css +33 -0
  67. package/lib/build/uno.ts +117 -0
  68. package/lib/build/vite.ts +104 -0
  69. package/lib/build/vuetify-overrides.css +14 -0
  70. package/lib/build/vuetify.ts +230 -0
  71. package/lib/test/TESTING.claude.md +225 -0
  72. package/lib/test/createMockAppContext.ts +211 -0
  73. package/lib/test/createTestPinia.ts +31 -0
  74. package/lib/test/createTestRouter.ts +31 -0
  75. package/lib/test/index.ts +41 -0
  76. package/lib/test/mockVueRouter.ts +93 -0
  77. package/lib/test/mocks/createMockApi.ts +43 -0
  78. package/lib/test/mocks/createMockContext.ts +109 -0
  79. package/lib/test/mocks/createMockSignal.ts +30 -0
  80. package/lib/test/mocks/createMockUser.ts +87 -0
  81. package/lib/test/mocks/index.ts +11 -0
  82. package/lib/test/mountApp.ts +47 -0
  83. package/lib/test/mountWithContext.ts +94 -0
  84. package/lib/test/setup.ts +151 -0
  85. package/lib/test/testAppSetup.ts +110 -0
  86. package/lib/test/vitest.ts +69 -0
  87. package/package.json +147 -61
  88. package/dist/component-library.css +0 -1
  89. package/dist/types/components/BaseAntCard.vue.d.ts +0 -22
  90. package/dist/types/components/TasksFlow/components/_dropzoneBackground.vue.d.ts +0 -9
  91. package/dist/types/components/TasksFlow/components/_flowEditor.vue.d.ts +0 -16
  92. package/dist/types/components/TasksFlow/composables/useTaskFlow.d.ts +0 -103
  93. package/dist/types/components/TasksFlow/index.vue.d.ts +0 -51
  94. package/lib/DocumentManager/DocumentDrop.vue +0 -74
  95. package/lib/DocumentManager/DocumentManager.vue +0 -571
  96. package/lib/DocumentManager/hooks/useDms.ts +0 -172
  97. package/lib/DocumentManager/index.ts +0 -3
  98. package/lib/DocumentManager/lang/translations/de.json +0 -36
  99. package/lib/DocumentManager/lang/translations/en.json +0 -38
  100. package/lib/DocumentManager/lang/translations/nl.json +0 -36
  101. package/lib/DocumentManager/utils.ts +0 -16
  102. /package/dist/types/{components → src/components}/BaseAntButton.vue.d.ts +0 -0
  103. /package/dist/types/{components → src/components}/BaseAntCreateCard.vue.d.ts +0 -0
  104. /package/dist/types/{components → src/components}/BaseAntDatePicker.vue.d.ts +0 -0
  105. /package/dist/types/{components → src/components}/BaseAntLoading.vue.d.ts +0 -0
  106. /package/dist/types/{components → src/components}/BaseAppCardSkeleton.vue.d.ts +0 -0
  107. /package/dist/types/{components → src/components}/GlobalLabelBadge.vue.d.ts +0 -0
  108. /package/dist/types/{components → src/components}/RBAC/Permissions/PermissionCard.vue.d.ts +0 -0
  109. /package/dist/types/{components → src/components}/TasksFlow/components/_flowEdge.vue.d.ts +0 -0
@@ -0,0 +1,113 @@
1
+ import { AntConnect, Notepad, Task } from '@antcde/connect-ts';
2
+ import { FlowChannelSubscriber } from '../TasksFlow/composables/useTaskFlow';
3
+ type __VLS_Props = {
4
+ flowId: string;
5
+ title?: string;
6
+ antConnect: AntConnect;
7
+ notepad: Notepad;
8
+ isDark: boolean;
9
+ userId?: string;
10
+ readonly?: boolean;
11
+ channelSubscriber?: FlowChannelSubscriber;
12
+ /** Current window width — controls compact vs full mode */
13
+ windowWidth?: number;
14
+ canManageTemplates?: boolean;
15
+ isAdmin?: boolean;
16
+ };
17
+ declare function updateFlowTask(task: Task): void;
18
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
19
+ updateFlowTask: typeof updateFlowTask;
20
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
21
+ fullFlowRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
22
+ flowId: string;
23
+ highlightId: string | null;
24
+ userId: string;
25
+ antConnect: AntConnect;
26
+ notepad: Notepad;
27
+ isDark: boolean;
28
+ channelSubscriber?: FlowChannelSubscriber;
29
+ canManageTemplates?: boolean;
30
+ isAdmin?: boolean;
31
+ fallbackProjectId?: string | null;
32
+ }> & Readonly<{
33
+ onUpdated?: (() => any) | undefined;
34
+ onParentTaskNotFound?: (() => any) | undefined;
35
+ onDeletedFlowId?: ((id: string) => any) | undefined;
36
+ onShare?: ((task: Task) => any) | undefined;
37
+ }>, {
38
+ reloadFlow: () => void;
39
+ updateFlowTask: (task: Task) => void;
40
+ refreshFromExternal: () => void;
41
+ handleTaskEvent: (payload: {
42
+ id: string;
43
+ action: string;
44
+ data?: any;
45
+ }) => void;
46
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
47
+ updated: () => any;
48
+ parentTaskNotFound: () => any;
49
+ deletedFlowId: (id: string) => any;
50
+ share: (task: Task) => any;
51
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
52
+ P: {};
53
+ B: {};
54
+ D: {};
55
+ C: {};
56
+ M: {};
57
+ Defaults: {};
58
+ }, Readonly<{
59
+ flowId: string;
60
+ highlightId: string | null;
61
+ userId: string;
62
+ antConnect: AntConnect;
63
+ notepad: Notepad;
64
+ isDark: boolean;
65
+ channelSubscriber?: FlowChannelSubscriber;
66
+ canManageTemplates?: boolean;
67
+ isAdmin?: boolean;
68
+ fallbackProjectId?: string | null;
69
+ }> & Readonly<{
70
+ onUpdated?: (() => any) | undefined;
71
+ onParentTaskNotFound?: (() => any) | undefined;
72
+ onDeletedFlowId?: ((id: string) => any) | undefined;
73
+ onShare?: ((task: Task) => any) | undefined;
74
+ }>, {
75
+ reloadFlow: () => void;
76
+ updateFlowTask: (task: Task) => void;
77
+ refreshFromExternal: () => void;
78
+ handleTaskEvent: (payload: {
79
+ id: string;
80
+ action: string;
81
+ data?: any;
82
+ }) => void;
83
+ }, {}, {}, {}, {}> | null;
84
+ editorRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
85
+ isDark: boolean;
86
+ isAutoLayouting?: boolean;
87
+ isNavigating?: boolean;
88
+ isInSubflow?: boolean;
89
+ flowInstanceId?: string;
90
+ }> & Readonly<{}>, {
91
+ createTaskAtViewportCenter: () => Promise<void>;
92
+ createTriggerAtViewportCenter: (triggerId: string) => Promise<void>;
93
+ fitViewAnimated: () => void;
94
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
95
+ P: {};
96
+ B: {};
97
+ D: {};
98
+ C: {};
99
+ M: {};
100
+ Defaults: {};
101
+ }, Readonly<{
102
+ isDark: boolean;
103
+ isAutoLayouting?: boolean;
104
+ isNavigating?: boolean;
105
+ isInSubflow?: boolean;
106
+ flowInstanceId?: string;
107
+ }> & Readonly<{}>, {
108
+ createTaskAtViewportCenter: () => Promise<void>;
109
+ createTriggerAtViewportCenter: (triggerId: string) => Promise<void>;
110
+ fitViewAnimated: () => void;
111
+ }, {}, {}, {}, {}> | null;
112
+ }, any>;
113
+ export default _default;
@@ -0,0 +1,51 @@
1
+ export interface MentionItem {
2
+ id: string;
3
+ label: string;
4
+ }
5
+ type __VLS_Props = {
6
+ isDark?: boolean;
7
+ placeholder?: string;
8
+ minHeight?: string;
9
+ disabled?: boolean;
10
+ /**
11
+ * Soft visible-character cap. The editor doesn't block typing past this
12
+ * limit, but a small counter shows progress and turns red when exceeded
13
+ * so the host can surface validation. If unset, no counter is shown.
14
+ */
15
+ maxLength?: number;
16
+ /**
17
+ * 'inline' (default) — click to edit, click outside to save (description
18
+ * use case). 'composer' — always editable, Cmd/Ctrl+Enter emits `submit`
19
+ * (message use case).
20
+ */
21
+ mode?: 'inline' | 'composer';
22
+ /**
23
+ * Source of mention suggestions. When set, typing `@` opens an inline
24
+ * picker that calls this function with the current query and renders
25
+ * the returned items. When unset, mentions are disabled.
26
+ */
27
+ mentionItems?: (query: string) => Promise<MentionItem[]>;
28
+ };
29
+ declare function clear(): void;
30
+ type __VLS_PublicProps = {
31
+ modelValue?: string;
32
+ } & __VLS_Props;
33
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
34
+ focus: () => boolean | undefined;
35
+ clear: typeof clear;
36
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
37
+ submit: () => any;
38
+ "update:modelValue": (value: string) => any;
39
+ blur: () => any;
40
+ focus: () => any;
41
+ "over-limit": (over: boolean) => any;
42
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
43
+ onSubmit?: (() => any) | undefined;
44
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
45
+ onBlur?: (() => any) | undefined;
46
+ onFocus?: (() => any) | undefined;
47
+ "onOver-limit"?: ((over: boolean) => any) | undefined;
48
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
49
+ wrapperRef: HTMLDivElement;
50
+ }, HTMLDivElement>;
51
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { Label } from '@antcde/connect-ts';
2
+ type __VLS_Props = {
3
+ labels: Label[];
4
+ selectedIds: string[];
5
+ isLoading: boolean;
6
+ saving: boolean;
7
+ };
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ cancel: () => any;
10
+ save: (labelIds: string[]) => any;
11
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ onCancel?: (() => any) | undefined;
13
+ onSave?: ((labelIds: string[]) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
15
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { Label } from '@antcde/connect-ts';
2
+ export interface StackedLabel {
3
+ id: string;
4
+ name: string;
5
+ color?: string | null;
6
+ icon?: string | null;
7
+ }
8
+ type __VLS_Props = {
9
+ labels: StackedLabel[];
10
+ maxVisible?: number;
11
+ size?: number;
12
+ display?: 'stacked' | 'inline';
13
+ menuEnabled?: boolean;
14
+ showIcon?: boolean;
15
+ fetchLabels?: () => Promise<Label[]>;
16
+ saveLabels?: (labelIds: string[]) => Promise<void>;
17
+ fetchSelectedLabelIds?: () => Promise<string[]>;
18
+ };
19
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
20
+ size: number;
21
+ display: "stacked" | "inline";
22
+ maxVisible: number;
23
+ menuEnabled: boolean;
24
+ showIcon: boolean;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
26
+ export default _default;
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ isDark: boolean;
3
+ isLocked: boolean;
4
+ isTemplate: boolean;
5
+ stack: {
6
+ id: string;
7
+ title: string;
8
+ }[];
9
+ currentTitle: string | undefined;
10
+ nodeCount: number;
11
+ };
12
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ navigateBack: (index: number) => any;
14
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onNavigateBack?: ((index: number) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
17
+ export default _default;
@@ -0,0 +1,10 @@
1
+ type __VLS_Props = {
2
+ modelValue: boolean;
3
+ edgeId: string;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ "update:modelValue": (value: boolean) => any;
7
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ export default _default;
@@ -1,6 +1,7 @@
1
- import { NodeProps } from '@vue-flow/core';
2
- type __VLS_Props = NodeProps & {
1
+ type __VLS_Props = {
3
2
  isDark: boolean;
4
3
  };
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, {}, HTMLDivElement>;
4
+ 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, {
5
+ inputRef: HTMLInputElement;
6
+ }, any>;
6
7
  export default _default;
@@ -0,0 +1,5 @@
1
+ type __VLS_Props = {
2
+ isDark: boolean;
3
+ };
4
+ 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>;
5
+ export default _default;
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ isDark: boolean;
3
+ };
4
+ type __VLS_PublicProps = {
5
+ modelValue: boolean;
6
+ 'targetNodeId'?: string | null;
7
+ } & __VLS_Props;
8
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ "update:modelValue": (value: boolean) => any;
10
+ inserted: (taskId: string) => any;
11
+ "update:targetNodeId": (value: string | null) => any;
12
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
+ onInserted?: ((taskId: string) => any) | undefined;
15
+ "onUpdate:targetNodeId"?: ((value: string | null) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
@@ -0,0 +1,125 @@
1
+ import { AntConnect, Notepad, Task } from '@antcde/connect-ts';
2
+ import { FlowChannelSubscriber } from '../composables/useTaskFlow';
3
+ type __VLS_Props = {
4
+ flowId: string;
5
+ flowTitle: string;
6
+ antConnect: AntConnect;
7
+ notepad: Notepad;
8
+ isDark: boolean;
9
+ userId?: string;
10
+ channelSubscriber?: FlowChannelSubscriber;
11
+ x: number;
12
+ y: number;
13
+ w: number;
14
+ h: number;
15
+ zIndex: number;
16
+ };
17
+ declare function updateFlowTask(task: Task): void;
18
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
19
+ updateFlowTask: typeof updateFlowTask;
20
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ close: () => any;
22
+ resize: (w: number, h: number) => any;
23
+ focus: () => any;
24
+ move: (x: number, y: number) => any;
25
+ openInMain: (id: string) => any;
26
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
27
+ onClose?: (() => any) | undefined;
28
+ onResize?: ((w: number, h: number) => any) | undefined;
29
+ onFocus?: (() => any) | undefined;
30
+ onMove?: ((x: number, y: number) => any) | undefined;
31
+ onOpenInMain?: ((id: string) => any) | undefined;
32
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
33
+ fullFlowRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
34
+ flowId: string;
35
+ highlightId: string | null;
36
+ userId: string;
37
+ antConnect: AntConnect;
38
+ notepad: Notepad;
39
+ isDark: boolean;
40
+ channelSubscriber?: FlowChannelSubscriber;
41
+ canManageTemplates?: boolean;
42
+ isAdmin?: boolean;
43
+ fallbackProjectId?: string | null;
44
+ }> & Readonly<{
45
+ onUpdated?: (() => any) | undefined;
46
+ onParentTaskNotFound?: (() => any) | undefined;
47
+ onDeletedFlowId?: ((id: string) => any) | undefined;
48
+ onShare?: ((task: Task) => any) | undefined;
49
+ }>, {
50
+ reloadFlow: () => void;
51
+ updateFlowTask: (task: Task) => void;
52
+ refreshFromExternal: () => void;
53
+ handleTaskEvent: (payload: {
54
+ id: string;
55
+ action: string;
56
+ data?: any;
57
+ }) => void;
58
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
59
+ updated: () => any;
60
+ parentTaskNotFound: () => any;
61
+ deletedFlowId: (id: string) => any;
62
+ share: (task: Task) => any;
63
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
64
+ P: {};
65
+ B: {};
66
+ D: {};
67
+ C: {};
68
+ M: {};
69
+ Defaults: {};
70
+ }, Readonly<{
71
+ flowId: string;
72
+ highlightId: string | null;
73
+ userId: string;
74
+ antConnect: AntConnect;
75
+ notepad: Notepad;
76
+ isDark: boolean;
77
+ channelSubscriber?: FlowChannelSubscriber;
78
+ canManageTemplates?: boolean;
79
+ isAdmin?: boolean;
80
+ fallbackProjectId?: string | null;
81
+ }> & Readonly<{
82
+ onUpdated?: (() => any) | undefined;
83
+ onParentTaskNotFound?: (() => any) | undefined;
84
+ onDeletedFlowId?: ((id: string) => any) | undefined;
85
+ onShare?: ((task: Task) => any) | undefined;
86
+ }>, {
87
+ reloadFlow: () => void;
88
+ updateFlowTask: (task: Task) => void;
89
+ refreshFromExternal: () => void;
90
+ handleTaskEvent: (payload: {
91
+ id: string;
92
+ action: string;
93
+ data?: any;
94
+ }) => void;
95
+ }, {}, {}, {}, {}> | null;
96
+ editorRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
97
+ isDark: boolean;
98
+ isAutoLayouting?: boolean;
99
+ isNavigating?: boolean;
100
+ isInSubflow?: boolean;
101
+ flowInstanceId?: string;
102
+ }> & Readonly<{}>, {
103
+ createTaskAtViewportCenter: () => Promise<void>;
104
+ createTriggerAtViewportCenter: (triggerId: string) => Promise<void>;
105
+ fitViewAnimated: () => void;
106
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
107
+ P: {};
108
+ B: {};
109
+ D: {};
110
+ C: {};
111
+ M: {};
112
+ Defaults: {};
113
+ }, Readonly<{
114
+ isDark: boolean;
115
+ isAutoLayouting?: boolean;
116
+ isNavigating?: boolean;
117
+ isInSubflow?: boolean;
118
+ flowInstanceId?: string;
119
+ }> & Readonly<{}>, {
120
+ createTaskAtViewportCenter: () => Promise<void>;
121
+ createTriggerAtViewportCenter: (triggerId: string) => Promise<void>;
122
+ fitViewAnimated: () => void;
123
+ }, {}, {}, {}, {}> | null;
124
+ }, HTMLDivElement>;
125
+ export default _default;
@@ -0,0 +1,14 @@
1
+ type __VLS_Props = {
2
+ isDark: boolean;
3
+ };
4
+ type __VLS_PublicProps = {
5
+ modelValue: boolean;
6
+ } & __VLS_Props;
7
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ "update:modelValue": (value: boolean) => any;
9
+ sync: () => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
12
+ onSync?: (() => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ export default _default;
@@ -0,0 +1,14 @@
1
+ type __VLS_Props = {
2
+ isDark: boolean;
3
+ };
4
+ type __VLS_PublicProps = {
5
+ modelValue: boolean;
6
+ } & __VLS_Props;
7
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ "update:modelValue": (value: boolean) => any;
9
+ published: () => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
12
+ onPublished?: (() => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ export default _default;
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,13 @@
1
+ type __VLS_Props = {
2
+ isDark: boolean;
3
+ isAutoLayouting?: boolean;
4
+ isNavigating?: boolean;
5
+ isInSubflow?: boolean;
6
+ flowInstanceId?: string;
7
+ };
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
9
+ createTaskAtViewportCenter: () => Promise<void>;
10
+ createTriggerAtViewportCenter: (triggerId: string) => Promise<void>;
11
+ fitViewAnimated: () => void;
12
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
13
+ export default _default;
@@ -0,0 +1,33 @@
1
+ type __VLS_Props = {
2
+ durationDays: number | null;
3
+ durationActiveDays: number[];
4
+ };
5
+ type __VLS_PublicProps = {
6
+ modelValue: boolean;
7
+ } & __VLS_Props;
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {
12
+ menuProps: any;
13
+ isDefaultWorkdays: (days: number[]) => boolean;
14
+ }): any;
15
+ };
16
+ refs: {};
17
+ rootEl: any;
18
+ };
19
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ "update:modelValue": (value: boolean) => any;
22
+ save: (days: number | null, activeDays: number[]) => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
25
+ onSave?: ((days: number | null, activeDays: number[]) => any) | undefined;
26
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,35 @@
1
+ type __VLS_Props = {
2
+ nodeId: string;
3
+ nodeTitle: string;
4
+ hasChildren: boolean;
5
+ isLocked: boolean;
6
+ contextMenuPos: {
7
+ x: number;
8
+ y: number;
9
+ };
10
+ };
11
+ type __VLS_PublicProps = {
12
+ modelValue: boolean;
13
+ } & __VLS_Props;
14
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ "update:modelValue": (value: boolean) => any;
16
+ delete: () => any;
17
+ openNotepad: () => any;
18
+ drillDown: () => any;
19
+ manageSubflow: () => any;
20
+ insertTemplate: () => any;
21
+ insertBefore: () => any;
22
+ insertAfter: () => any;
23
+ duplicateBranch: () => any;
24
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
25
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
26
+ onDelete?: (() => any) | undefined;
27
+ onOpenNotepad?: (() => any) | undefined;
28
+ onDrillDown?: (() => any) | undefined;
29
+ onManageSubflow?: (() => any) | undefined;
30
+ onInsertTemplate?: (() => any) | undefined;
31
+ onInsertBefore?: (() => any) | undefined;
32
+ onInsertAfter?: (() => any) | undefined;
33
+ onDuplicateBranch?: (() => any) | undefined;
34
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
35
+ export default _default;
@@ -0,0 +1,32 @@
1
+ type __VLS_Props = {
2
+ taskId: string;
3
+ isDark: boolean;
4
+ };
5
+ type __VLS_PublicProps = {
6
+ modelValue: boolean;
7
+ } & __VLS_Props;
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {
12
+ menuProps: any;
13
+ }): any;
14
+ };
15
+ refs: {};
16
+ rootEl: any;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ "update:modelValue": (value: boolean) => any;
21
+ assigned: (userId: string | null) => any;
22
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
24
+ onAssigned?: ((userId: string | null) => any) | undefined;
25
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -4,8 +4,8 @@ type __VLS_Props = NodeProps & {
4
4
  isDark: boolean;
5
5
  };
6
6
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- updateNodeInternals: (...args: any[]) => void;
7
+ updateNodeInternals: () => any;
8
8
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
- onUpdateNodeInternals?: ((...args: any[]) => any) | undefined;
9
+ onUpdateNodeInternals?: (() => any) | undefined;
10
10
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
11
  export default _default;
@@ -0,0 +1,10 @@
1
+ import { NodeProps } from '@vue-flow/core';
2
+ type __VLS_Props = NodeProps & {
3
+ isDark: boolean;
4
+ };
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ updateNodeInternals: () => any;
7
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
8
+ onUpdateNodeInternals?: (() => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ export default _default;
@@ -0,0 +1,22 @@
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
+ }
9
+ /**
10
+ * Lightweight directed graph layout using a layered (Sugiyama-style) approach.
11
+ * Handles disconnected components by laying them out separately then stacking.
12
+ *
13
+ * Algorithm:
14
+ * 1. Find connected components
15
+ * 2. For each component: assign layers, order with barycenter, compute positions
16
+ * 3. Stack components vertically with spacing
17
+ */
18
+ export declare function computeAutoLayout(nodes: TaskFlowNode[], edges: TaskFlowEdge[], options?: LayoutOptions): Map<string, {
19
+ x: number;
20
+ y: number;
21
+ }>;
22
+ export {};
@@ -0,0 +1,8 @@
1
+ import { Ref } from 'vue';
2
+ import { TaskFlowEdge, TaskFlowNode } from './useTaskFlowTypes';
3
+ export declare function useCriticalPath(flowNodes: Ref<TaskFlowNode[]>, flowEdges: Ref<TaskFlowEdge[]>): {
4
+ isCriticalPathActive: Ref<boolean, boolean>;
5
+ toggleCriticalPath: () => void;
6
+ criticalNodeIds: import('vue').ComputedRef<Set<string>>;
7
+ criticalEdgeIds: import('vue').ComputedRef<Set<string>>;
8
+ };
@@ -0,0 +1,17 @@
1
+ import { TableQueryShort, Task } from '@antcde/connect-ts';
2
+ import { TaskFlowEdge, TaskFlowNode } from './useTaskFlowTypes';
3
+ interface FlowCacheEntry {
4
+ parent: Task;
5
+ nodes: TaskFlowNode[];
6
+ edges: TaskFlowEdge[];
7
+ queries: TableQueryShort[];
8
+ timestamp: number;
9
+ }
10
+ export declare function useFlowCache(): {
11
+ get: (taskId: string) => FlowCacheEntry | null;
12
+ set: (taskId: string, data: Omit<FlowCacheEntry, "timestamp">) => void;
13
+ invalidate: (taskId: string) => void;
14
+ updateNodesAndEdges: (taskId: string, nodes: TaskFlowNode[], edges: TaskFlowEdge[]) => void;
15
+ clear: () => void;
16
+ };
17
+ export {};