@antcde/component-library 0.1.11 → 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 (107) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +41293 -32254
  3. package/dist/types/{components → src/components}/BaseAppCard.vue.d.ts +18 -1
  4. package/dist/types/{components → src/components}/BaseConfirmDialog.vue.d.ts +4 -3
  5. package/dist/types/{components → src/components}/BaseDeleteDialog.vue.d.ts +9 -2
  6. package/dist/types/src/components/BaseLimitedButton.vue.d.ts +45 -0
  7. package/dist/types/src/components/BulkLabelsMenu.vue.d.ts +33 -0
  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 +113 -0
  14. package/dist/types/src/components/GlobalLabelBadge.vue.d.ts +11 -0
  15. package/dist/types/src/components/RichTextEditor/index.vue.d.ts +51 -0
  16. package/dist/types/src/components/StackedLabels/_LabelsMenuCard.vue.d.ts +15 -0
  17. package/dist/types/src/components/StackedLabels/index.vue.d.ts +26 -0
  18. package/dist/types/src/components/TasksFlow/components/_FlowBreadcrumb.vue.d.ts +17 -0
  19. package/dist/types/src/components/TasksFlow/components/_FlowEdgeConditionsDialog.vue.d.ts +10 -0
  20. package/dist/types/{components/TasksFlow/components/nodes/_triggerNode.vue.d.ts → src/components/TasksFlow/components/_FlowSearch.vue.d.ts} +4 -3
  21. package/dist/types/src/components/TasksFlow/components/_FlowStats.vue.d.ts +5 -0
  22. package/dist/types/src/components/TasksFlow/components/_InsertTemplateDialog.vue.d.ts +17 -0
  23. package/dist/types/src/components/TasksFlow/components/_SubflowPanel.vue.d.ts +125 -0
  24. package/dist/types/src/components/TasksFlow/components/_VersionDiffView.vue.d.ts +14 -0
  25. package/dist/types/src/components/TasksFlow/components/_VersionPublishDialog.vue.d.ts +14 -0
  26. package/dist/types/src/components/TasksFlow/components/_flowEditor.vue.d.ts +13 -0
  27. package/dist/types/src/components/TasksFlow/components/nodes/_DurationEditor.vue.d.ts +33 -0
  28. package/dist/types/src/components/TasksFlow/components/nodes/_NodeContextMenu.vue.d.ts +35 -0
  29. package/dist/types/src/components/TasksFlow/components/nodes/_UserPicker.vue.d.ts +32 -0
  30. package/dist/types/{components → src/components}/TasksFlow/components/nodes/_taskNode.vue.d.ts +2 -2
  31. package/dist/types/src/components/TasksFlow/components/nodes/_triggerNode.vue.d.ts +10 -0
  32. package/dist/types/src/components/TasksFlow/composables/useAutoLayout.d.ts +22 -0
  33. package/dist/types/src/components/TasksFlow/composables/useCriticalPath.d.ts +8 -0
  34. package/dist/types/src/components/TasksFlow/composables/useFlowCache.d.ts +17 -0
  35. package/dist/types/src/components/TasksFlow/composables/useFlowCrud.d.ts +21 -0
  36. package/dist/types/src/components/TasksFlow/composables/useFlowEditor.d.ts +54 -0
  37. package/dist/types/src/components/TasksFlow/composables/useFlowFetch.d.ts +33 -0
  38. package/dist/types/src/components/TasksFlow/composables/useFlowKeyboard.d.ts +15 -0
  39. package/dist/types/src/components/TasksFlow/composables/useFlowNotifications.d.ts +15 -0
  40. package/dist/types/src/components/TasksFlow/composables/useFlowOperations.d.ts +8 -0
  41. package/dist/types/src/components/TasksFlow/composables/useFlowRealtime.d.ts +23 -0
  42. package/dist/types/src/components/TasksFlow/composables/useFlowSearch.d.ts +14 -0
  43. package/dist/types/src/components/TasksFlow/composables/useFlowSubflows.d.ts +22 -0
  44. package/dist/types/src/components/TasksFlow/composables/useFlowUsers.d.ts +27 -0
  45. package/dist/types/src/components/TasksFlow/composables/useFlowViewport.d.ts +28 -0
  46. package/dist/types/src/components/TasksFlow/composables/useTaskFlow.d.ts +321 -0
  47. package/dist/types/{components → src/components}/TasksFlow/composables/useTaskFlowDragDrop.d.ts +0 -1
  48. package/dist/types/src/components/TasksFlow/composables/useTaskFlowEdgeConditions.d.ts +10 -0
  49. package/dist/types/src/components/TasksFlow/composables/useTaskFlowEdges.d.ts +18 -0
  50. package/dist/types/src/components/TasksFlow/composables/useTaskFlowMappers.d.ts +4 -0
  51. package/dist/types/src/components/TasksFlow/composables/useTaskFlowTypes.d.ts +76 -0
  52. package/dist/types/src/components/TasksFlow/composables/useTemplateVersioning.d.ts +188 -0
  53. package/dist/types/src/components/TasksFlow/composables/useTemplateVersioningState.d.ts +176 -0
  54. package/dist/types/src/components/TasksFlow/composables/useTriggerExecution.d.ts +21 -0
  55. package/dist/types/src/components/TasksFlow/index.vue.d.ts +39 -0
  56. package/dist/types/src/components/UnifiedWindow/index.vue.d.ts +67 -0
  57. package/dist/types/src/components/UnifiedWindow/useWindowDrag.d.ts +28 -0
  58. package/dist/types/src/components/VersionPublishDialog.vue.d.ts +24 -0
  59. package/dist/types/{index.d.ts → src/index.d.ts} +16 -1
  60. package/lib/GisViewer/GisViewer.vue +3 -2
  61. package/lib/build/layer-order.css +33 -0
  62. package/lib/build/uno.ts +117 -0
  63. package/lib/build/vite.ts +104 -0
  64. package/lib/build/vuetify-overrides.css +14 -0
  65. package/lib/build/vuetify.ts +230 -0
  66. package/lib/test/TESTING.claude.md +225 -0
  67. package/lib/test/createMockAppContext.ts +211 -0
  68. package/lib/test/createTestPinia.ts +31 -0
  69. package/lib/test/createTestRouter.ts +31 -0
  70. package/lib/test/index.ts +41 -0
  71. package/lib/test/mockVueRouter.ts +93 -0
  72. package/lib/test/mocks/createMockApi.ts +43 -0
  73. package/lib/test/mocks/createMockContext.ts +109 -0
  74. package/lib/test/mocks/createMockSignal.ts +30 -0
  75. package/lib/test/mocks/createMockUser.ts +87 -0
  76. package/lib/test/mocks/index.ts +11 -0
  77. package/lib/test/mountApp.ts +47 -0
  78. package/lib/test/mountWithContext.ts +94 -0
  79. package/lib/test/setup.ts +151 -0
  80. package/lib/test/testAppSetup.ts +110 -0
  81. package/lib/test/vitest.ts +69 -0
  82. package/package.json +147 -58
  83. package/dist/component-library.css +0 -1
  84. package/dist/types/components/TasksFlow/components/_flowEditor.vue.d.ts +0 -16
  85. package/dist/types/components/TasksFlow/composables/useTaskFlow.d.ts +0 -103
  86. package/dist/types/components/TasksFlow/index.vue.d.ts +0 -51
  87. package/lib/DocumentManager/DocumentDrop.vue +0 -74
  88. package/lib/DocumentManager/DocumentManager.vue +0 -590
  89. package/lib/DocumentManager/hooks/useDms.ts +0 -180
  90. package/lib/DocumentManager/index.ts +0 -3
  91. package/lib/DocumentManager/lang/translations/de.json +0 -36
  92. package/lib/DocumentManager/lang/translations/en.json +0 -38
  93. package/lib/DocumentManager/lang/translations/nl.json +0 -36
  94. package/lib/DocumentManager/utils.ts +0 -16
  95. /package/dist/types/{components → src/components}/BaseAntButton.vue.d.ts +0 -0
  96. /package/dist/types/{components → src/components}/BaseAntCard.vue.d.ts +0 -0
  97. /package/dist/types/{components → src/components}/BaseAntCreateCard.vue.d.ts +0 -0
  98. /package/dist/types/{components → src/components}/BaseAntDatePicker.vue.d.ts +0 -0
  99. /package/dist/types/{components → src/components}/BaseAntInput.vue.d.ts +0 -0
  100. /package/dist/types/{components → src/components}/BaseAntLoading.vue.d.ts +0 -0
  101. /package/dist/types/{components → src/components}/BaseAppCardSkeleton.vue.d.ts +0 -0
  102. /package/dist/types/{components → src/components}/BaseClickableIcon.vue.d.ts +0 -0
  103. /package/dist/types/{components → src/components}/BaseDialog.vue.d.ts +0 -0
  104. /package/dist/types/{components → src/components}/BaseResizePanel.vue.d.ts +0 -0
  105. /package/dist/types/{components → src/components}/RBAC/Permissions/PermissionCard.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
@@ -20,7 +20,18 @@ type __VLS_Props = {
20
20
  shadow?: boolean;
21
21
  size?: 's' | 'xs' | 'toolbar';
22
22
  };
23
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
23
+ declare function __VLS_template(): {
24
+ attrs: Partial<{}>;
25
+ slots: {
26
+ 'bottom-right'?(_: {
27
+ foregroundColor: string;
28
+ }): any;
29
+ };
30
+ refs: {};
31
+ rootEl: any;
32
+ };
33
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
34
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
24
35
  clicked: (app: AppLike) => any;
25
36
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
26
37
  onClicked?: ((app: AppLike) => any) | undefined;
@@ -28,4 +39,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
28
39
  showLoadingIndicator: boolean;
29
40
  shadow: boolean;
30
41
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
42
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
43
  export default _default;
44
+ type __VLS_WithTemplateSlots<T, S> = T & {
45
+ new (): {
46
+ $slots: S;
47
+ };
48
+ };
@@ -1,9 +1,9 @@
1
1
  type __VLS_Props = {
2
2
  displayed: boolean;
3
3
  title: string;
4
- isLoading: boolean;
5
- icon: string;
6
- confirmTitle: string | null;
4
+ isLoading?: boolean;
5
+ icon?: string;
6
+ confirmTitle?: string | null;
7
7
  };
8
8
  declare function __VLS_template(): {
9
9
  attrs: Partial<{}>;
@@ -23,6 +23,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
23
23
  }>, {
24
24
  icon: string;
25
25
  isLoading: boolean;
26
+ confirmTitle: string | null;
26
27
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
28
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
29
  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;
@@ -28,10 +31,14 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
28
31
  delete: (...args: any[]) => void;
29
32
  "update:modelValue": (value: boolean) => void;
30
33
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
31
- onClose?: ((...args: any[]) => any) | undefined;
32
34
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
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,45 @@
1
+ type __VLS_Props = {
2
+ /** Whether the limit has been reached (shows crown badge and disables button) */
3
+ limited?: boolean;
4
+ /** Tooltip text shown when limited */
5
+ tooltip?: string;
6
+ /** Tooltip max width */
7
+ tooltipMaxWidth?: number | string;
8
+ /** Button variant */
9
+ variant?: 'flat' | 'text' | 'elevated' | 'tonal' | 'outlined' | 'plain';
10
+ /** Button size */
11
+ size?: 'x-small' | 'small' | 'default' | 'large' | 'x-large';
12
+ /** Button color */
13
+ color?: string;
14
+ /** Icon to show before button text */
15
+ prependIcon?: string;
16
+ };
17
+ declare function __VLS_template(): {
18
+ attrs: Partial<{}>;
19
+ slots: {
20
+ default?(_: {}): any;
21
+ };
22
+ refs: {};
23
+ rootEl: any;
24
+ };
25
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
26
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
+ click: (event: MouseEvent) => any;
28
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
29
+ onClick?: ((event: MouseEvent) => any) | undefined;
30
+ }>, {
31
+ size: "x-small" | "small" | "default" | "large" | "x-large";
32
+ color: string;
33
+ prependIcon: string;
34
+ variant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
35
+ limited: boolean;
36
+ tooltip: string;
37
+ tooltipMaxWidth: number | string;
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
39
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
40
+ export default _default;
41
+ type __VLS_WithTemplateSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -0,0 +1,33 @@
1
+ import { Label } from '@antcde/connect-ts';
2
+ type __VLS_Props = {
3
+ selectedCount: number;
4
+ fetchLabels: () => Promise<Label[]>;
5
+ isAttaching?: boolean;
6
+ isRemoving?: boolean;
7
+ };
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ activator?(_: {
12
+ props: any;
13
+ isOpen: 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_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ attachLabel: (labelId: string) => any;
22
+ removeAll: () => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
24
+ onAttachLabel?: ((labelId: string) => any) | undefined;
25
+ onRemoveAll?: (() => 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,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,11 @@
1
+ type __VLS_Props = {
2
+ name: string;
3
+ color?: string | null;
4
+ icon?: string | null;
5
+ selected?: boolean;
6
+ showCheck?: boolean;
7
+ size?: 'x-small' | 'small' | 'default' | 'large' | 'x-large';
8
+ disableOpacity?: boolean;
9
+ };
10
+ 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>;
11
+ 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;