@antcde/component-library 0.1.14-rc.44f7de3 → 0.1.14-rc.528dd66

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 (99) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +43188 -35133
  3. package/dist/types/{components → src/components}/BaseDeleteDialog.vue.d.ts +8 -1
  4. package/dist/types/src/components/DmsFilePicker/composables/usePickerNavigation.d.ts +196 -0
  5. package/dist/types/src/components/DmsFilePicker/composables/usePickerUpload.d.ts +22 -0
  6. package/dist/types/src/components/DmsFilePicker/index.vue.d.ts +28 -0
  7. package/dist/types/src/components/DmsFilePicker/utils/fileFormatting.d.ts +6 -0
  8. package/dist/types/src/components/FilePreviewContent/index.vue.d.ts +31 -0
  9. package/dist/types/src/components/FlowWindowContent/index.vue.d.ts +113 -0
  10. package/dist/types/src/components/RichTextEditor/index.vue.d.ts +51 -0
  11. package/dist/types/{components → src/components}/StackedLabels/_LabelsMenuCard.vue.d.ts +1 -1
  12. package/dist/types/src/components/TasksFlow/components/_FlowBreadcrumb.vue.d.ts +17 -0
  13. package/dist/types/src/components/TasksFlow/components/_FlowEdgeConditionsDialog.vue.d.ts +10 -0
  14. package/dist/types/{components/TasksFlow/components/nodes/_triggerNode.vue.d.ts → src/components/TasksFlow/components/_FlowSearch.vue.d.ts} +4 -3
  15. package/dist/types/src/components/TasksFlow/components/_FlowStats.vue.d.ts +5 -0
  16. package/dist/types/src/components/TasksFlow/components/_InsertTemplateDialog.vue.d.ts +17 -0
  17. package/dist/types/src/components/TasksFlow/components/_SubflowPanel.vue.d.ts +125 -0
  18. package/dist/types/src/components/TasksFlow/components/_VersionDiffView.vue.d.ts +14 -0
  19. package/dist/types/src/components/TasksFlow/components/_VersionPublishDialog.vue.d.ts +14 -0
  20. package/dist/types/src/components/TasksFlow/components/_flowEditor.vue.d.ts +13 -0
  21. package/dist/types/src/components/TasksFlow/components/nodes/_DurationEditor.vue.d.ts +33 -0
  22. package/dist/types/src/components/TasksFlow/components/nodes/_NodeContextMenu.vue.d.ts +35 -0
  23. package/dist/types/src/components/TasksFlow/components/nodes/_UserPicker.vue.d.ts +32 -0
  24. package/dist/types/{components → src/components}/TasksFlow/components/nodes/_taskNode.vue.d.ts +2 -2
  25. package/dist/types/src/components/TasksFlow/components/nodes/_triggerNode.vue.d.ts +10 -0
  26. package/dist/types/src/components/TasksFlow/components/nodes/useTaskNodeState.d.ts +86 -0
  27. package/dist/types/src/components/TasksFlow/composables/useAutoLayout.d.ts +22 -0
  28. package/dist/types/src/components/TasksFlow/composables/useCriticalPath.d.ts +8 -0
  29. package/dist/types/src/components/TasksFlow/composables/useFlowCache.d.ts +17 -0
  30. package/dist/types/src/components/TasksFlow/composables/useFlowCrud.d.ts +21 -0
  31. package/dist/types/src/components/TasksFlow/composables/useFlowEditor.d.ts +54 -0
  32. package/dist/types/src/components/TasksFlow/composables/useFlowFetch.d.ts +33 -0
  33. package/dist/types/src/components/TasksFlow/composables/useFlowKeyboard.d.ts +15 -0
  34. package/dist/types/src/components/TasksFlow/composables/useFlowNotifications.d.ts +15 -0
  35. package/dist/types/src/components/TasksFlow/composables/useFlowOperations.d.ts +8 -0
  36. package/dist/types/src/components/TasksFlow/composables/useFlowRealtime.d.ts +23 -0
  37. package/dist/types/src/components/TasksFlow/composables/useFlowSearch.d.ts +14 -0
  38. package/dist/types/src/components/TasksFlow/composables/useFlowSubflows.d.ts +22 -0
  39. package/dist/types/src/components/TasksFlow/composables/useFlowUsers.d.ts +27 -0
  40. package/dist/types/src/components/TasksFlow/composables/useFlowViewport.d.ts +28 -0
  41. package/dist/types/src/components/TasksFlow/composables/useTaskFlow.d.ts +321 -0
  42. package/dist/types/{components → src/components}/TasksFlow/composables/useTaskFlowDragDrop.d.ts +0 -1
  43. package/dist/types/src/components/TasksFlow/composables/useTaskFlowEdgeConditions.d.ts +10 -0
  44. package/dist/types/src/components/TasksFlow/composables/useTaskFlowEdges.d.ts +18 -0
  45. package/dist/types/src/components/TasksFlow/composables/useTaskFlowMappers.d.ts +4 -0
  46. package/dist/types/src/components/TasksFlow/composables/useTaskFlowTypes.d.ts +76 -0
  47. package/dist/types/src/components/TasksFlow/composables/useTemplateVersioning.d.ts +188 -0
  48. package/dist/types/src/components/TasksFlow/composables/useTemplateVersioningState.d.ts +176 -0
  49. package/dist/types/src/components/TasksFlow/composables/useTriggerExecution.d.ts +21 -0
  50. package/dist/types/src/components/TasksFlow/index.vue.d.ts +39 -0
  51. package/dist/types/src/components/UnifiedWindow/index.vue.d.ts +67 -0
  52. package/dist/types/src/components/UnifiedWindow/useWindowDrag.d.ts +28 -0
  53. package/dist/types/src/components/VersionPublishDialog.vue.d.ts +24 -0
  54. package/dist/types/{index.d.ts → src/index.d.ts} +11 -1
  55. package/lib/GisViewer/GisViewer.vue +3 -2
  56. package/lib/build/layer-order.css +33 -0
  57. package/lib/build/uno.ts +117 -0
  58. package/lib/build/vite.ts +104 -0
  59. package/lib/build/vuetify-overrides.css +14 -0
  60. package/lib/build/vuetify.ts +230 -0
  61. package/lib/test/TESTING.claude.md +225 -0
  62. package/lib/test/createMockAppContext.ts +211 -0
  63. package/lib/test/createTestPinia.ts +31 -0
  64. package/lib/test/createTestRouter.ts +31 -0
  65. package/lib/test/index.ts +41 -0
  66. package/lib/test/mockVueRouter.ts +93 -0
  67. package/lib/test/mocks/createMockApi.ts +43 -0
  68. package/lib/test/mocks/createMockContext.ts +109 -0
  69. package/lib/test/mocks/createMockSignal.ts +30 -0
  70. package/lib/test/mocks/createMockUser.ts +87 -0
  71. package/lib/test/mocks/index.ts +11 -0
  72. package/lib/test/mountApp.ts +47 -0
  73. package/lib/test/mountWithContext.ts +94 -0
  74. package/lib/test/setup.ts +151 -0
  75. package/lib/test/testAppSetup.ts +110 -0
  76. package/lib/test/vitest.ts +69 -0
  77. package/package.json +127 -30
  78. package/dist/types/components/TasksFlow/components/_flowEditor.vue.d.ts +0 -16
  79. package/dist/types/components/TasksFlow/composables/useTaskFlow.d.ts +0 -103
  80. package/dist/types/components/TasksFlow/index.vue.d.ts +0 -51
  81. /package/dist/types/{components → src/components}/BaseAntButton.vue.d.ts +0 -0
  82. /package/dist/types/{components → src/components}/BaseAntCard.vue.d.ts +0 -0
  83. /package/dist/types/{components → src/components}/BaseAntCreateCard.vue.d.ts +0 -0
  84. /package/dist/types/{components → src/components}/BaseAntDatePicker.vue.d.ts +0 -0
  85. /package/dist/types/{components → src/components}/BaseAntInput.vue.d.ts +0 -0
  86. /package/dist/types/{components → src/components}/BaseAntLoading.vue.d.ts +0 -0
  87. /package/dist/types/{components → src/components}/BaseAppCard.vue.d.ts +0 -0
  88. /package/dist/types/{components → src/components}/BaseAppCardSkeleton.vue.d.ts +0 -0
  89. /package/dist/types/{components → src/components}/BaseClickableIcon.vue.d.ts +0 -0
  90. /package/dist/types/{components → src/components}/BaseConfirmDialog.vue.d.ts +0 -0
  91. /package/dist/types/{components → src/components}/BaseDialog.vue.d.ts +0 -0
  92. /package/dist/types/{components → src/components}/BaseLimitedButton.vue.d.ts +0 -0
  93. /package/dist/types/{components → src/components}/BaseResizePanel.vue.d.ts +0 -0
  94. /package/dist/types/{components → src/components}/BulkLabelsMenu.vue.d.ts +0 -0
  95. /package/dist/types/{components → src/components}/GlobalLabelBadge.vue.d.ts +0 -0
  96. /package/dist/types/{components → src/components}/RBAC/Permissions/PermissionCard.vue.d.ts +0 -0
  97. /package/dist/types/{components → src/components}/StackedLabels/index.vue.d.ts +0 -0
  98. /package/dist/types/{components → src/components}/TasksFlow/components/_dropzoneBackground.vue.d.ts +0 -0
  99. /package/dist/types/{components → src/components}/TasksFlow/components/_flowEdge.vue.d.ts +0 -0
@@ -6,6 +6,9 @@ type __VLS_Props = {
6
6
  title?: string;
7
7
  loading?: boolean;
8
8
  disabled?: boolean;
9
+ headerTitle?: string;
10
+ cancelLabel?: string;
11
+ deleteLabel?: string;
9
12
  };
10
13
  type __VLS_PublicProps = {
11
14
  modelValue: boolean;
@@ -31,7 +34,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
31
34
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
32
35
  onClose?: ((...args: any[]) => any) | undefined;
33
36
  onDelete?: ((...args: any[]) => any) | undefined;
34
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
37
+ }>, {
38
+ headerTitle: string;
39
+ cancelLabel: string;
40
+ deleteLabel: string;
41
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
35
42
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
36
43
  export default _default;
37
44
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -0,0 +1,196 @@
1
+ import { AntConnect, DmsFile } from '@antcde/connect-ts';
2
+ import { Ref } from 'vue';
3
+ export declare const LICENSE_TOKEN = "__license__";
4
+ export declare function usePickerNavigation(antConnect: AntConnect, projectId: () => string | undefined, licenseId: () => string | undefined): {
5
+ items: Ref<{
6
+ id: string;
7
+ token: string;
8
+ path: string | null;
9
+ name: string;
10
+ extension: string | null;
11
+ size: number | null;
12
+ is_folder: boolean;
13
+ is_system?: boolean | undefined;
14
+ visibility?: string | null | undefined;
15
+ display_name?: string | null | undefined;
16
+ license_id: string;
17
+ project_id: string | null;
18
+ owner_id: string;
19
+ parent_id: string | null;
20
+ owner: {
21
+ id: string;
22
+ email: string;
23
+ firstname: string;
24
+ lastname: string;
25
+ name: string;
26
+ status?: "invited" | "active" | "inactive" | undefined;
27
+ profile_picture: string;
28
+ mfa_required?: boolean | undefined;
29
+ };
30
+ labels: {
31
+ id: string;
32
+ license_id: string;
33
+ project_id: string | null;
34
+ parent_id: string | null;
35
+ name: string;
36
+ description: string;
37
+ color: string | null;
38
+ icon: string | null;
39
+ children?: /*elided*/ any[] | undefined;
40
+ depth: number;
41
+ }[];
42
+ permissions: {
43
+ 'dms.read': boolean;
44
+ 'dms.upload'?: boolean | undefined;
45
+ 'dms.delete': boolean;
46
+ 'dms.configure': boolean;
47
+ };
48
+ created_at: string;
49
+ updated_at: string;
50
+ }[], DmsFile[] | {
51
+ id: string;
52
+ token: string;
53
+ path: string | null;
54
+ name: string;
55
+ extension: string | null;
56
+ size: number | null;
57
+ is_folder: boolean;
58
+ is_system?: boolean | undefined;
59
+ visibility?: string | null | undefined;
60
+ display_name?: string | null | undefined;
61
+ license_id: string;
62
+ project_id: string | null;
63
+ owner_id: string;
64
+ parent_id: string | null;
65
+ owner: {
66
+ id: string;
67
+ email: string;
68
+ firstname: string;
69
+ lastname: string;
70
+ name: string;
71
+ status?: "invited" | "active" | "inactive" | undefined;
72
+ profile_picture: string;
73
+ mfa_required?: boolean | undefined;
74
+ };
75
+ labels: {
76
+ id: string;
77
+ license_id: string;
78
+ project_id: string | null;
79
+ parent_id: string | null;
80
+ name: string;
81
+ description: string;
82
+ color: string | null;
83
+ icon: string | null;
84
+ children?: /*elided*/ any[] | undefined;
85
+ depth: number;
86
+ }[];
87
+ permissions: {
88
+ 'dms.read': boolean;
89
+ 'dms.upload'?: boolean | undefined;
90
+ 'dms.delete': boolean;
91
+ 'dms.configure': boolean;
92
+ };
93
+ created_at: string;
94
+ updated_at: string;
95
+ }[]>;
96
+ currentPath: Ref<{
97
+ id: string;
98
+ token: string;
99
+ path: string | null;
100
+ name: string;
101
+ extension: string | null;
102
+ size: number | null;
103
+ is_folder: boolean;
104
+ is_system?: boolean | undefined;
105
+ visibility?: string | null | undefined;
106
+ display_name?: string | null | undefined;
107
+ license_id: string;
108
+ project_id: string | null;
109
+ owner_id: string;
110
+ parent_id: string | null;
111
+ owner: {
112
+ id: string;
113
+ email: string;
114
+ firstname: string;
115
+ lastname: string;
116
+ name: string;
117
+ status?: "invited" | "active" | "inactive" | undefined;
118
+ profile_picture: string;
119
+ mfa_required?: boolean | undefined;
120
+ };
121
+ labels: {
122
+ id: string;
123
+ license_id: string;
124
+ project_id: string | null;
125
+ parent_id: string | null;
126
+ name: string;
127
+ description: string;
128
+ color: string | null;
129
+ icon: string | null;
130
+ children?: /*elided*/ any[] | undefined;
131
+ depth: number;
132
+ }[];
133
+ permissions: {
134
+ 'dms.read': boolean;
135
+ 'dms.upload'?: boolean | undefined;
136
+ 'dms.delete': boolean;
137
+ 'dms.configure': boolean;
138
+ };
139
+ created_at: string;
140
+ updated_at: string;
141
+ }[], DmsFile[] | {
142
+ id: string;
143
+ token: string;
144
+ path: string | null;
145
+ name: string;
146
+ extension: string | null;
147
+ size: number | null;
148
+ is_folder: boolean;
149
+ is_system?: boolean | undefined;
150
+ visibility?: string | null | undefined;
151
+ display_name?: string | null | undefined;
152
+ license_id: string;
153
+ project_id: string | null;
154
+ owner_id: string;
155
+ parent_id: string | null;
156
+ owner: {
157
+ id: string;
158
+ email: string;
159
+ firstname: string;
160
+ lastname: string;
161
+ name: string;
162
+ status?: "invited" | "active" | "inactive" | undefined;
163
+ profile_picture: string;
164
+ mfa_required?: boolean | undefined;
165
+ };
166
+ labels: {
167
+ id: string;
168
+ license_id: string;
169
+ project_id: string | null;
170
+ parent_id: string | null;
171
+ name: string;
172
+ description: string;
173
+ color: string | null;
174
+ icon: string | null;
175
+ children?: /*elided*/ any[] | undefined;
176
+ depth: number;
177
+ }[];
178
+ permissions: {
179
+ 'dms.read': boolean;
180
+ 'dms.upload'?: boolean | undefined;
181
+ 'dms.delete': boolean;
182
+ 'dms.configure': boolean;
183
+ };
184
+ created_at: string;
185
+ updated_at: string;
186
+ }[]>;
187
+ selectedFile: Ref<DmsFile | null, DmsFile | null>;
188
+ isInLicenseFolder: Ref<boolean, boolean>;
189
+ showSystemFiles: Ref<boolean, boolean>;
190
+ browsingLoading: import('vue').ComputedRef<boolean>;
191
+ isLicenseScope: import('vue').ComputedRef<boolean>;
192
+ scopeId: import('vue').ComputedRef<string | undefined>;
193
+ loadRoot: () => void;
194
+ openFolder: (folder: DmsFile) => Promise<void>;
195
+ navigateToCrumb: (index: number) => Promise<void>;
196
+ };
@@ -0,0 +1,22 @@
1
+ import { AntConnect, DmsFile, FileInRequest } from '@antcde/connect-ts';
2
+ import { ComputedRef, Ref } from 'vue';
3
+ type UploadMode = 'dms' | 'hidden';
4
+ interface UsePickerUploadOptions {
5
+ scopeId: ComputedRef<string | undefined>;
6
+ isLicenseScope: ComputedRef<boolean>;
7
+ currentPath: Ref<DmsFile[]>;
8
+ items: Ref<DmsFile[]>;
9
+ selectedFile: Ref<DmsFile | null>;
10
+ onUpload: (file: FileInRequest) => void;
11
+ onPick: (dmsFileId: string) => void;
12
+ }
13
+ export declare function usePickerUpload(antConnect: AntConnect, options: UsePickerUploadOptions): {
14
+ uploadMode: Ref<UploadMode, UploadMode>;
15
+ isUploading: Ref<boolean, boolean>;
16
+ uploadProgress: Ref<number, number>;
17
+ isDragOver: Ref<boolean, boolean>;
18
+ onFileInput: (event: Event, modeOverride?: UploadMode) => void;
19
+ onDrop: (event: DragEvent) => void;
20
+ handleFileUpload: (file: File) => Promise<void>;
21
+ };
22
+ export {};
@@ -0,0 +1,28 @@
1
+ import { AntConnect, FileInRequest } from '@antcde/connect-ts';
2
+ type __VLS_Props = {
3
+ antConnect: AntConnect;
4
+ projectId?: string;
5
+ licenseId?: string;
6
+ isAdmin?: boolean;
7
+ disablePickFromDms?: boolean;
8
+ uploadLoading?: boolean;
9
+ linkLoading?: boolean;
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
+ upload: (file: FileInRequest) => any;
16
+ "update:modelValue": (value: boolean) => any;
17
+ cancel: () => any;
18
+ pick: (dmsFileId: string) => any;
19
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
+ onUpload?: ((file: FileInRequest) => any) | undefined;
21
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
22
+ onCancel?: (() => any) | undefined;
23
+ onPick?: ((dmsFileId: string) => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
25
+ dmsFileInput: HTMLInputElement;
26
+ hiddenFileInput: HTMLInputElement;
27
+ }, any>;
28
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { DmsFile } from '@antcde/connect-ts';
2
+ export declare function isSystemItem(file: DmsFile): boolean;
3
+ export declare function getItemIcon(file: DmsFile): string;
4
+ export declare function getItemColor(file: DmsFile): string | undefined;
5
+ export declare function getItemName(file: DmsFile): string;
6
+ export declare function formatSize(bytes: number | null): string;
@@ -0,0 +1,31 @@
1
+ import { AntConnect } from '@antcde/connect-ts';
2
+ export interface PreviewTabData {
3
+ fileToken: string;
4
+ fileName?: string;
5
+ projectId?: string;
6
+ licenseId?: string;
7
+ contentUrl?: string;
8
+ fileSize?: number;
9
+ fileExtension?: string;
10
+ ownerName?: string;
11
+ ownerAvatar?: string;
12
+ createdAt?: string;
13
+ updatedAt?: string;
14
+ }
15
+ type __VLS_Props = {
16
+ tab: PreviewTabData;
17
+ antConnect: AntConnect;
18
+ isDark: boolean;
19
+ showDetails?: boolean;
20
+ };
21
+ declare function download(): Promise<void>;
22
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
23
+ download: typeof download;
24
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
+ "update:showDetails": (value: boolean) => any;
26
+ "navigate:task": (taskId: string) => any;
27
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
28
+ "onUpdate:showDetails"?: ((value: boolean) => any) | undefined;
29
+ "onNavigate:task"?: ((taskId: string) => any) | undefined;
30
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
31
+ export default _default;
@@ -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;
@@ -11,5 +11,5 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
11
11
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
12
  onCancel?: (() => any) | undefined;
13
13
  onSave?: ((labelIds: string[]) => any) | undefined;
14
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
15
15
  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;