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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +41317 -33581
  3. package/dist/types/src/components/BaseAntCard.vue.d.ts +30 -0
  4. package/dist/types/{components → src/components}/BaseAntInput.vue.d.ts +13 -5
  5. package/dist/types/{components → src/components}/BaseAppCard.vue.d.ts +18 -1
  6. package/dist/types/{components → src/components}/BaseClickableIcon.vue.d.ts +1 -1
  7. package/dist/types/{components → src/components}/BaseConfirmDialog.vue.d.ts +16 -7
  8. package/dist/types/{components → src/components}/BaseDeleteDialog.vue.d.ts +24 -9
  9. package/dist/types/{components → src/components}/BaseDialog.vue.d.ts +12 -4
  10. package/dist/types/src/components/BaseLimitedButton.vue.d.ts +45 -0
  11. package/dist/types/{components → src/components}/BaseResizePanel.vue.d.ts +12 -12
  12. package/dist/types/src/components/BulkLabelsMenu.vue.d.ts +33 -0
  13. package/dist/types/src/components/DmsFilePicker/composables/usePickerNavigation.d.ts +196 -0
  14. package/dist/types/src/components/DmsFilePicker/composables/usePickerUpload.d.ts +22 -0
  15. package/dist/types/src/components/DmsFilePicker/index.vue.d.ts +28 -0
  16. package/dist/types/src/components/DmsFilePicker/utils/fileFormatting.d.ts +6 -0
  17. package/dist/types/src/components/FilePreviewContent/index.vue.d.ts +31 -0
  18. package/dist/types/src/components/FlowWindowContent/index.vue.d.ts +113 -0
  19. package/dist/types/src/components/RichTextEditor/index.vue.d.ts +51 -0
  20. package/dist/types/src/components/StackedLabels/_LabelsMenuCard.vue.d.ts +15 -0
  21. package/dist/types/src/components/StackedLabels/index.vue.d.ts +26 -0
  22. package/dist/types/src/components/TasksFlow/components/_FlowBreadcrumb.vue.d.ts +17 -0
  23. package/dist/types/src/components/TasksFlow/components/_FlowEdgeConditionsDialog.vue.d.ts +10 -0
  24. package/dist/types/{components/TasksFlow/components/nodes/_triggerNode.vue.d.ts → src/components/TasksFlow/components/_FlowSearch.vue.d.ts} +4 -3
  25. package/dist/types/src/components/TasksFlow/components/_FlowStats.vue.d.ts +5 -0
  26. package/dist/types/src/components/TasksFlow/components/_InsertTemplateDialog.vue.d.ts +17 -0
  27. package/dist/types/src/components/TasksFlow/components/_SubflowPanel.vue.d.ts +125 -0
  28. package/dist/types/src/components/TasksFlow/components/_VersionDiffView.vue.d.ts +14 -0
  29. package/dist/types/src/components/TasksFlow/components/_VersionPublishDialog.vue.d.ts +14 -0
  30. package/dist/types/src/components/TasksFlow/components/_dropzoneBackground.vue.d.ts +17 -0
  31. package/dist/types/src/components/TasksFlow/components/_flowEditor.vue.d.ts +13 -0
  32. package/dist/types/src/components/TasksFlow/components/nodes/_DurationEditor.vue.d.ts +33 -0
  33. package/dist/types/src/components/TasksFlow/components/nodes/_NodeContextMenu.vue.d.ts +35 -0
  34. package/dist/types/src/components/TasksFlow/components/nodes/_UserPicker.vue.d.ts +32 -0
  35. package/dist/types/{components → src/components}/TasksFlow/components/nodes/_taskNode.vue.d.ts +2 -2
  36. package/dist/types/src/components/TasksFlow/components/nodes/_triggerNode.vue.d.ts +10 -0
  37. package/dist/types/src/components/TasksFlow/composables/useAutoLayout.d.ts +22 -0
  38. package/dist/types/src/components/TasksFlow/composables/useCriticalPath.d.ts +8 -0
  39. package/dist/types/src/components/TasksFlow/composables/useFlowCache.d.ts +17 -0
  40. package/dist/types/src/components/TasksFlow/composables/useFlowCrud.d.ts +21 -0
  41. package/dist/types/src/components/TasksFlow/composables/useFlowEditor.d.ts +54 -0
  42. package/dist/types/src/components/TasksFlow/composables/useFlowFetch.d.ts +33 -0
  43. package/dist/types/src/components/TasksFlow/composables/useFlowKeyboard.d.ts +15 -0
  44. package/dist/types/src/components/TasksFlow/composables/useFlowNotifications.d.ts +15 -0
  45. package/dist/types/src/components/TasksFlow/composables/useFlowOperations.d.ts +8 -0
  46. package/dist/types/src/components/TasksFlow/composables/useFlowRealtime.d.ts +23 -0
  47. package/dist/types/src/components/TasksFlow/composables/useFlowSearch.d.ts +14 -0
  48. package/dist/types/src/components/TasksFlow/composables/useFlowSubflows.d.ts +22 -0
  49. package/dist/types/src/components/TasksFlow/composables/useFlowUsers.d.ts +27 -0
  50. package/dist/types/src/components/TasksFlow/composables/useFlowViewport.d.ts +28 -0
  51. package/dist/types/src/components/TasksFlow/composables/useTaskFlow.d.ts +321 -0
  52. package/dist/types/{components → src/components}/TasksFlow/composables/useTaskFlowDragDrop.d.ts +3 -4
  53. package/dist/types/src/components/TasksFlow/composables/useTaskFlowEdgeConditions.d.ts +10 -0
  54. package/dist/types/src/components/TasksFlow/composables/useTaskFlowEdges.d.ts +18 -0
  55. package/dist/types/src/components/TasksFlow/composables/useTaskFlowMappers.d.ts +4 -0
  56. package/dist/types/src/components/TasksFlow/composables/useTaskFlowTypes.d.ts +76 -0
  57. package/dist/types/src/components/TasksFlow/composables/useTemplateVersioning.d.ts +188 -0
  58. package/dist/types/src/components/TasksFlow/composables/useTemplateVersioningState.d.ts +176 -0
  59. package/dist/types/src/components/TasksFlow/composables/useTriggerExecution.d.ts +21 -0
  60. package/dist/types/src/components/TasksFlow/index.vue.d.ts +39 -0
  61. package/dist/types/src/components/UnifiedWindow/index.vue.d.ts +67 -0
  62. package/dist/types/src/components/UnifiedWindow/useWindowDrag.d.ts +28 -0
  63. package/dist/types/src/components/VersionPublishDialog.vue.d.ts +24 -0
  64. package/dist/types/{index.d.ts → src/index.d.ts} +15 -1
  65. package/lib/GisViewer/GisViewer.vue +3 -2
  66. package/lib/build/layer-order.css +33 -0
  67. package/lib/build/uno.ts +117 -0
  68. package/lib/build/vite.ts +104 -0
  69. package/lib/build/vuetify-overrides.css +14 -0
  70. package/lib/build/vuetify.ts +230 -0
  71. package/lib/test/TESTING.claude.md +225 -0
  72. package/lib/test/createMockAppContext.ts +211 -0
  73. package/lib/test/createTestPinia.ts +31 -0
  74. package/lib/test/createTestRouter.ts +31 -0
  75. package/lib/test/index.ts +41 -0
  76. package/lib/test/mockVueRouter.ts +93 -0
  77. package/lib/test/mocks/createMockApi.ts +43 -0
  78. package/lib/test/mocks/createMockContext.ts +109 -0
  79. package/lib/test/mocks/createMockSignal.ts +30 -0
  80. package/lib/test/mocks/createMockUser.ts +87 -0
  81. package/lib/test/mocks/index.ts +11 -0
  82. package/lib/test/mountApp.ts +47 -0
  83. package/lib/test/mountWithContext.ts +94 -0
  84. package/lib/test/setup.ts +151 -0
  85. package/lib/test/testAppSetup.ts +110 -0
  86. package/lib/test/vitest.ts +69 -0
  87. package/package.json +147 -61
  88. package/dist/component-library.css +0 -1
  89. package/dist/types/components/BaseAntCard.vue.d.ts +0 -22
  90. package/dist/types/components/TasksFlow/components/_dropzoneBackground.vue.d.ts +0 -9
  91. package/dist/types/components/TasksFlow/components/_flowEditor.vue.d.ts +0 -16
  92. package/dist/types/components/TasksFlow/composables/useTaskFlow.d.ts +0 -103
  93. package/dist/types/components/TasksFlow/index.vue.d.ts +0 -51
  94. package/lib/DocumentManager/DocumentDrop.vue +0 -74
  95. package/lib/DocumentManager/DocumentManager.vue +0 -571
  96. package/lib/DocumentManager/hooks/useDms.ts +0 -172
  97. package/lib/DocumentManager/index.ts +0 -3
  98. package/lib/DocumentManager/lang/translations/de.json +0 -36
  99. package/lib/DocumentManager/lang/translations/en.json +0 -38
  100. package/lib/DocumentManager/lang/translations/nl.json +0 -36
  101. package/lib/DocumentManager/utils.ts +0 -16
  102. /package/dist/types/{components → src/components}/BaseAntButton.vue.d.ts +0 -0
  103. /package/dist/types/{components → src/components}/BaseAntCreateCard.vue.d.ts +0 -0
  104. /package/dist/types/{components → src/components}/BaseAntDatePicker.vue.d.ts +0 -0
  105. /package/dist/types/{components → src/components}/BaseAntLoading.vue.d.ts +0 -0
  106. /package/dist/types/{components → src/components}/BaseAppCardSkeleton.vue.d.ts +0 -0
  107. /package/dist/types/{components → src/components}/GlobalLabelBadge.vue.d.ts +0 -0
  108. /package/dist/types/{components → src/components}/RBAC/Permissions/PermissionCard.vue.d.ts +0 -0
  109. /package/dist/types/{components → src/components}/TasksFlow/components/_flowEdge.vue.d.ts +0 -0
@@ -0,0 +1,30 @@
1
+ type __VLS_Props = {
2
+ width?: number;
3
+ transparent?: boolean;
4
+ header?: boolean;
5
+ footer?: boolean;
6
+ };
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ title?(_: {}): any;
11
+ content?(_: {}): any;
12
+ actions?(_: {}): any;
13
+ };
14
+ refs: {};
15
+ rootEl: HTMLDivElement;
16
+ };
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
19
+ width: number;
20
+ transparent: boolean;
21
+ header: boolean;
22
+ footer: boolean;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
24
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
+ export default _default;
26
+ type __VLS_WithTemplateSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -74,7 +74,17 @@ interface Props {
74
74
  type __VLS_PublicProps = {
75
75
  modelValue?: any;
76
76
  } & __VLS_Props;
77
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
77
+ declare function __VLS_template(): {
78
+ attrs: Partial<{}>;
79
+ slots: {
80
+ 'label-append'?(_: {}): any;
81
+ input?(_: {}): any;
82
+ };
83
+ refs: {};
84
+ rootEl: HTMLDivElement;
85
+ };
86
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
87
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
78
88
  "update:modelValue": (value: any) => any;
79
89
  } & {
80
90
  "click:append-inner": (value: any) => any;
@@ -98,10 +108,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
98
108
  disabled: boolean;
99
109
  density: "default" | "comfortable" | "compact";
100
110
  clearable: boolean;
101
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
102
- 'label-append'?(_: {}): any;
103
- input?(_: {}): any;
104
- }>;
111
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
112
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
105
113
  export default _default;
106
114
  type __VLS_WithTemplateSlots<T, S> = T & {
107
115
  new (): {
@@ -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
+ };
@@ -10,7 +10,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
10
10
  size: string;
11
11
  icon: string;
12
12
  tooltipText: string;
13
- tooltipLocation: "end" | "bottom" | "top" | "start";
13
+ tooltipLocation: "top" | "bottom" | "start" | "end";
14
14
  loading: boolean;
15
15
  active: boolean;
16
16
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1,11 +1,20 @@
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
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ content?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: any;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
18
  close: (...args: any[]) => void;
10
19
  action: (...args: any[]) => void;
11
20
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -14,9 +23,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
14
23
  }>, {
15
24
  icon: string;
16
25
  isLoading: boolean;
17
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
18
- content?(_: {}): any;
19
- }>;
26
+ confirmTitle: string | null;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
28
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
29
  export default _default;
21
30
  type __VLS_WithTemplateSlots<T, S> = T & {
22
31
  new (): {
@@ -6,25 +6,40 @@ 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;
12
15
  } & __VLS_Props;
13
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ declare function __VLS_template(): {
17
+ attrs: Partial<{}>;
18
+ slots: {
19
+ activator?(_: {
20
+ props: any;
21
+ }): any;
22
+ title?(_: {}): any;
23
+ content?(_: {}): any;
24
+ };
25
+ refs: {};
26
+ rootEl: any;
27
+ };
28
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
29
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
30
  close: (...args: any[]) => void;
15
31
  delete: (...args: any[]) => void;
16
32
  "update:modelValue": (value: boolean) => void;
17
33
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
18
- onClose?: ((...args: any[]) => any) | undefined;
19
34
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
35
+ onClose?: ((...args: any[]) => any) | undefined;
20
36
  onDelete?: ((...args: any[]) => any) | undefined;
21
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
22
- activator?(_: {
23
- props: any;
24
- }): any;
25
- title?(_: {}): any;
26
- content?(_: {}): any;
27
- }>;
37
+ }>, {
38
+ headerTitle: string;
39
+ cancelLabel: string;
40
+ deleteLabel: string;
41
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
42
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
43
  export default _default;
29
44
  type __VLS_WithTemplateSlots<T, S> = T & {
30
45
  new (): {
@@ -9,13 +9,21 @@ interface Props {
9
9
  cancelText?: string;
10
10
  confirmText?: string;
11
11
  }
12
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
14
+ slots: {
15
+ content?(_: {}): any;
16
+ };
17
+ refs: {};
18
+ rootEl: any;
19
+ };
20
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
22
  close: (...args: any[]) => void;
14
23
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
15
24
  onClose?: ((...args: any[]) => any) | undefined;
16
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
17
- content?(_: {}): any;
18
- }>;
25
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
27
  export default _default;
20
28
  type __VLS_WithTemplateSlots<T, S> = T & {
21
29
  new (): {
@@ -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
+ };
@@ -1,25 +1,25 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
2
- minWidth?: number | undefined;
3
- maxWidth?: number | null | undefined;
2
+ minWidth?: number;
3
+ maxWidth?: number | null;
4
4
  defaultWidth: number;
5
- minHeight?: number | undefined;
6
- maxHeight?: number | null | undefined;
7
- defaultHeight?: number | undefined;
5
+ minHeight?: number;
6
+ maxHeight?: number | null;
7
+ defaultHeight?: number;
8
8
  side: string;
9
- collapsible?: boolean | undefined;
9
+ collapsible?: boolean;
10
10
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
11
  resize: (...args: any[]) => void;
12
12
  "resize-end": (...args: any[]) => void;
13
13
  collapse: (...args: any[]) => void;
14
14
  }, string, import('vue').PublicProps, Readonly<{
15
- minWidth?: number | undefined;
16
- maxWidth?: number | null | undefined;
15
+ minWidth?: number;
16
+ maxWidth?: number | null;
17
17
  defaultWidth: number;
18
- minHeight?: number | undefined;
19
- maxHeight?: number | null | undefined;
20
- defaultHeight?: number | undefined;
18
+ minHeight?: number;
19
+ maxHeight?: number | null;
20
+ defaultHeight?: number;
21
21
  side: string;
22
- collapsible?: boolean | undefined;
22
+ collapsible?: boolean;
23
23
  }> & Readonly<{
24
24
  onResize?: ((...args: any[]) => any) | undefined;
25
25
  "onResize-end"?: ((...args: any[]) => any) | undefined;
@@ -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;