@antcde/component-library 0.1.14-rc.6f1c392 → 0.1.14-rc.77e4e54

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 (107) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +40068 -35097
  3. package/dist/types/src/components/AntTourZone/_TourInfoCard.vue.d.ts +18 -0
  4. package/dist/types/src/components/AntTourZone/_TourRing.vue.d.ts +15 -0
  5. package/dist/types/src/components/AntTourZone/index.vue.d.ts +49 -0
  6. package/dist/types/{components → src/components}/BaseAntDatePicker.vue.d.ts +2 -0
  7. package/dist/types/{components → src/components}/BaseDeleteDialog.vue.d.ts +8 -1
  8. package/dist/types/src/components/DmsFilePicker/composables/usePickerNavigation.d.ts +196 -0
  9. package/dist/types/src/components/DmsFilePicker/composables/usePickerUpload.d.ts +22 -0
  10. package/dist/types/src/components/DmsFilePicker/index.vue.d.ts +28 -0
  11. package/dist/types/src/components/DmsFilePicker/utils/fileFormatting.d.ts +6 -0
  12. package/dist/types/src/components/FilePreviewContent/index.vue.d.ts +31 -0
  13. package/dist/types/src/components/FlowWindowContent/index.vue.d.ts +51 -0
  14. package/dist/types/src/components/RichTextEditor/index.vue.d.ts +51 -0
  15. package/dist/types/{components → src/components}/StackedLabels/_LabelsMenuCard.vue.d.ts +1 -1
  16. package/dist/types/src/components/TasksFlow/components/_FlowBreadcrumb.vue.d.ts +17 -0
  17. package/dist/types/src/components/TasksFlow/components/_FlowEdgeConditionsDialog.vue.d.ts +10 -0
  18. package/dist/types/{components/TasksFlow/components/nodes/_triggerNode.vue.d.ts → src/components/TasksFlow/components/_FlowSearch.vue.d.ts} +4 -3
  19. package/dist/types/src/components/TasksFlow/components/_FlowStats.vue.d.ts +5 -0
  20. package/dist/types/src/components/TasksFlow/components/_FlowToolbar.vue.d.ts +26 -0
  21. package/dist/types/src/components/TasksFlow/components/_FlowTriggerMenu.vue.d.ts +17 -0
  22. package/dist/types/src/components/TasksFlow/components/_FlowVersionBar.vue.d.ts +12 -0
  23. package/dist/types/src/components/TasksFlow/components/_InsertTemplateDialog.vue.d.ts +17 -0
  24. package/dist/types/src/components/TasksFlow/components/_SubflowPanel.vue.d.ts +33 -0
  25. package/dist/types/src/components/TasksFlow/components/_VersionDiffView.vue.d.ts +14 -0
  26. package/dist/types/src/components/TasksFlow/components/_VersionPublishDialog.vue.d.ts +14 -0
  27. package/dist/types/src/components/TasksFlow/components/_flowEditor.vue.d.ts +13 -0
  28. package/dist/types/src/components/TasksFlow/components/nodes/_DurationEditor.vue.d.ts +33 -0
  29. package/dist/types/src/components/TasksFlow/components/nodes/_NodeContextMenu.vue.d.ts +35 -0
  30. package/dist/types/src/components/TasksFlow/components/nodes/_NodeMeta.vue.d.ts +14 -0
  31. package/dist/types/src/components/TasksFlow/components/nodes/_UserPicker.vue.d.ts +32 -0
  32. package/dist/types/{components → src/components}/TasksFlow/components/nodes/_taskNode.vue.d.ts +2 -2
  33. package/dist/types/src/components/TasksFlow/components/nodes/_triggerNode.vue.d.ts +10 -0
  34. package/dist/types/src/components/TasksFlow/components/nodes/useTaskNodeState.d.ts +86 -0
  35. package/dist/types/src/components/TasksFlow/composables/useAutoLayout.d.ts +22 -0
  36. package/dist/types/src/components/TasksFlow/composables/useCriticalPath.d.ts +8 -0
  37. package/dist/types/src/components/TasksFlow/composables/useFlowAutoLayout.d.ts +12 -0
  38. package/dist/types/src/components/TasksFlow/composables/useFlowCache.d.ts +17 -0
  39. package/dist/types/src/components/TasksFlow/composables/useFlowCrud.d.ts +21 -0
  40. package/dist/types/src/components/TasksFlow/composables/useFlowEditor.d.ts +54 -0
  41. package/dist/types/src/components/TasksFlow/composables/useFlowFetch.d.ts +33 -0
  42. package/dist/types/src/components/TasksFlow/composables/useFlowKeyboard.d.ts +15 -0
  43. package/dist/types/src/components/TasksFlow/composables/useFlowNotifications.d.ts +15 -0
  44. package/dist/types/src/components/TasksFlow/composables/useFlowOperations.d.ts +8 -0
  45. package/dist/types/src/components/TasksFlow/composables/useFlowRealtime.d.ts +23 -0
  46. package/dist/types/src/components/TasksFlow/composables/useFlowSearch.d.ts +14 -0
  47. package/dist/types/src/components/TasksFlow/composables/useFlowSubflows.d.ts +22 -0
  48. package/dist/types/src/components/TasksFlow/composables/useFlowUsers.d.ts +27 -0
  49. package/dist/types/src/components/TasksFlow/composables/useFlowViewport.d.ts +28 -0
  50. package/dist/types/src/components/TasksFlow/composables/useTaskFlow.d.ts +321 -0
  51. package/dist/types/{components → src/components}/TasksFlow/composables/useTaskFlowDragDrop.d.ts +0 -1
  52. package/dist/types/src/components/TasksFlow/composables/useTaskFlowEdgeConditions.d.ts +10 -0
  53. package/dist/types/src/components/TasksFlow/composables/useTaskFlowEdges.d.ts +18 -0
  54. package/dist/types/src/components/TasksFlow/composables/useTaskFlowMappers.d.ts +4 -0
  55. package/dist/types/src/components/TasksFlow/composables/useTaskFlowTypes.d.ts +76 -0
  56. package/dist/types/src/components/TasksFlow/composables/useTemplateVersioning.d.ts +188 -0
  57. package/dist/types/src/components/TasksFlow/composables/useTemplateVersioningState.d.ts +176 -0
  58. package/dist/types/src/components/TasksFlow/composables/useTriggerExecution.d.ts +21 -0
  59. package/dist/types/src/components/TasksFlow/index.vue.d.ts +39 -0
  60. package/dist/types/src/components/UnifiedWindow/index.vue.d.ts +67 -0
  61. package/dist/types/src/components/UnifiedWindow/useWindowDrag.d.ts +28 -0
  62. package/dist/types/src/components/VersionPublishDialog.vue.d.ts +24 -0
  63. package/dist/types/{index.d.ts → src/index.d.ts} +12 -1
  64. package/lib/GisViewer/GisViewer.vue +3 -2
  65. package/lib/build/layer-order.css +33 -0
  66. package/lib/build/uno.ts +117 -0
  67. package/lib/build/vite.ts +117 -0
  68. package/lib/build/vuetify-overrides.css +14 -0
  69. package/lib/build/vuetify.ts +230 -0
  70. package/lib/test/TESTING.claude.md +225 -0
  71. package/lib/test/createMockAppContext.ts +211 -0
  72. package/lib/test/createTestPinia.ts +31 -0
  73. package/lib/test/createTestRouter.ts +31 -0
  74. package/lib/test/index.ts +41 -0
  75. package/lib/test/mockVueRouter.ts +93 -0
  76. package/lib/test/mocks/createMockApi.ts +43 -0
  77. package/lib/test/mocks/createMockContext.ts +109 -0
  78. package/lib/test/mocks/createMockSignal.ts +30 -0
  79. package/lib/test/mocks/createMockUser.ts +87 -0
  80. package/lib/test/mocks/index.ts +11 -0
  81. package/lib/test/mountApp.ts +47 -0
  82. package/lib/test/mountWithContext.ts +94 -0
  83. package/lib/test/setup.ts +151 -0
  84. package/lib/test/testAppSetup.ts +110 -0
  85. package/lib/test/vitest.ts +69 -0
  86. package/package.json +135 -37
  87. package/dist/types/components/TasksFlow/components/_flowEditor.vue.d.ts +0 -16
  88. package/dist/types/components/TasksFlow/composables/useTaskFlow.d.ts +0 -103
  89. package/dist/types/components/TasksFlow/index.vue.d.ts +0 -51
  90. /package/dist/types/{components → src/components}/BaseAntButton.vue.d.ts +0 -0
  91. /package/dist/types/{components → src/components}/BaseAntCard.vue.d.ts +0 -0
  92. /package/dist/types/{components → src/components}/BaseAntCreateCard.vue.d.ts +0 -0
  93. /package/dist/types/{components → src/components}/BaseAntInput.vue.d.ts +0 -0
  94. /package/dist/types/{components → src/components}/BaseAntLoading.vue.d.ts +0 -0
  95. /package/dist/types/{components → src/components}/BaseAppCard.vue.d.ts +0 -0
  96. /package/dist/types/{components → src/components}/BaseAppCardSkeleton.vue.d.ts +0 -0
  97. /package/dist/types/{components → src/components}/BaseClickableIcon.vue.d.ts +0 -0
  98. /package/dist/types/{components → src/components}/BaseConfirmDialog.vue.d.ts +0 -0
  99. /package/dist/types/{components → src/components}/BaseDialog.vue.d.ts +0 -0
  100. /package/dist/types/{components → src/components}/BaseLimitedButton.vue.d.ts +0 -0
  101. /package/dist/types/{components → src/components}/BaseResizePanel.vue.d.ts +0 -0
  102. /package/dist/types/{components → src/components}/BulkLabelsMenu.vue.d.ts +0 -0
  103. /package/dist/types/{components → src/components}/GlobalLabelBadge.vue.d.ts +0 -0
  104. /package/dist/types/{components → src/components}/RBAC/Permissions/PermissionCard.vue.d.ts +0 -0
  105. /package/dist/types/{components → src/components}/StackedLabels/index.vue.d.ts +0 -0
  106. /package/dist/types/{components → src/components}/TasksFlow/components/_dropzoneBackground.vue.d.ts +0 -0
  107. /package/dist/types/{components → src/components}/TasksFlow/components/_flowEdge.vue.d.ts +0 -0
@@ -0,0 +1,18 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ description: string;
4
+ tip?: string;
5
+ icon?: string;
6
+ placement: 'top' | 'bottom' | 'left' | 'right';
7
+ large?: boolean;
8
+ anchorTop: number;
9
+ anchorLeft: number;
10
+ anchorWidth: number;
11
+ anchorHeight: number;
12
+ };
13
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ close: () => any;
15
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ onClose?: (() => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
18
+ export default _default;
@@ -0,0 +1,15 @@
1
+ type __VLS_Props = {
2
+ top: number;
3
+ left: number;
4
+ width: number;
5
+ height: number;
6
+ /** Numeric border-radius string (e.g. "12" or "24px") */
7
+ radius: string;
8
+ /** z-index for this ring — caller sets per stacking layer */
9
+ z: number;
10
+ near: boolean;
11
+ hovered: boolean;
12
+ dimmed: boolean;
13
+ };
14
+ 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>;
15
+ export default _default;
@@ -0,0 +1,49 @@
1
+ type __VLS_Props = {
2
+ /** Zone title shown in the info card */
3
+ title: string;
4
+ /** Zone description shown in the info card */
5
+ description: string;
6
+ /** Optional tip shown below description */
7
+ tip?: string;
8
+ /** Icon for the info card header */
9
+ icon?: string;
10
+ /** Where to anchor the info card relative to this zone */
11
+ placement?: 'top' | 'bottom' | 'left' | 'right';
12
+ /** Large zones anchor the card to viewport center-bottom */
13
+ large?: boolean;
14
+ /** Match wrapped element's border-radius so the ring follows its shape (numeric, e.g. "12") */
15
+ radius?: string;
16
+ /** Ring z-index — set per stacking layer of the wrapped element. */
17
+ z?: number;
18
+ /**
19
+ * Set to false to suppress the ring/card for this zone even when tour mode is active.
20
+ * Defaults to true.
21
+ */
22
+ enabled?: boolean;
23
+ };
24
+ declare function __VLS_template(): {
25
+ attrs: Partial<{}>;
26
+ slots: {
27
+ default?(_: {}): any;
28
+ };
29
+ refs: {
30
+ zoneRef: HTMLDivElement;
31
+ };
32
+ rootEl: HTMLDivElement;
33
+ };
34
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
35
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
36
+ enabled: boolean;
37
+ placement: "top" | "bottom" | "left" | "right";
38
+ radius: string;
39
+ z: number;
40
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
41
+ zoneRef: HTMLDivElement;
42
+ }, HTMLDivElement>;
43
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
44
+ export default _default;
45
+ type __VLS_WithTemplateSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
@@ -4,6 +4,7 @@ type __VLS_Props = {
4
4
  required?: boolean;
5
5
  placeholder: string;
6
6
  rules?: string[];
7
+ locale?: string;
7
8
  };
8
9
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
10
  input: (...args: any[]) => void;
@@ -11,5 +12,6 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
11
12
  onInput?: ((...args: any[]) => any) | undefined;
12
13
  }>, {
13
14
  required: boolean;
15
+ locale: string;
14
16
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
15
17
  export default _default;
@@ -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,51 @@
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: unknown;
22
+ editorRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
23
+ isDark: boolean;
24
+ isAutoLayouting?: boolean;
25
+ isNavigating?: boolean;
26
+ isInSubflow?: boolean;
27
+ flowInstanceId?: string;
28
+ }> & Readonly<{}>, {
29
+ createTaskAtViewportCenter: () => Promise<void>;
30
+ createTriggerAtViewportCenter: (triggerId: string) => Promise<void>;
31
+ fitViewAnimated: () => void;
32
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
33
+ P: {};
34
+ B: {};
35
+ D: {};
36
+ C: {};
37
+ M: {};
38
+ Defaults: {};
39
+ }, Readonly<{
40
+ isDark: boolean;
41
+ isAutoLayouting?: boolean;
42
+ isNavigating?: boolean;
43
+ isInSubflow?: boolean;
44
+ flowInstanceId?: string;
45
+ }> & Readonly<{}>, {
46
+ createTaskAtViewportCenter: () => Promise<void>;
47
+ createTriggerAtViewportCenter: (triggerId: string) => Promise<void>;
48
+ fitViewAnimated: () => void;
49
+ }, {}, {}, {}, {}> | null;
50
+ }, any>;
51
+ 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,26 @@
1
+ import { AntConnect, Task } from '@antcde/connect-ts';
2
+ import { FlowEditorExposed } from '../composables/useFlowAutoLayout';
3
+ type __VLS_Props = {
4
+ isDark: boolean;
5
+ isNotepadOpen: boolean;
6
+ isAutoLayouting: boolean;
7
+ userId: string;
8
+ isAdmin?: boolean;
9
+ canManageTemplates?: boolean;
10
+ antConnect: AntConnect;
11
+ editorRef: FlowEditorExposed | null;
12
+ };
13
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ "toggle-notepad": () => any;
15
+ "auto-layout": () => any;
16
+ "open-insert-template": () => any;
17
+ "publish-version": () => any;
18
+ share: (task: Task) => any;
19
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ "onToggle-notepad"?: (() => any) | undefined;
21
+ "onAuto-layout"?: (() => any) | undefined;
22
+ "onOpen-insert-template"?: (() => any) | undefined;
23
+ "onPublish-version"?: (() => any) | undefined;
24
+ onShare?: ((task: Task) => any) | undefined;
25
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
26
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { AntConnect } from '@antcde/connect-ts';
2
+ type __VLS_Props = {
3
+ isDark: boolean;
4
+ antConnect: AntConnect;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
7
+ menuOpen: import('vue').Ref<boolean, boolean>;
8
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ select: (id: string) => any;
10
+ dragStart: (e: DragEvent, id: string, name: string) => any;
11
+ dragEnd: () => any;
12
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ onSelect?: ((id: string) => any) | undefined;
14
+ onDragStart?: ((e: DragEvent, id: string, name: string) => any) | undefined;
15
+ onDragEnd?: (() => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ isDark: boolean;
3
+ };
4
+ declare function openPublishDialog(): void;
5
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
6
+ openPublishDialog: typeof openPublishDialog;
7
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ updated: () => any;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onUpdated?: (() => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ 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;