@antcde/component-library 0.1.24 → 0.1.25-rc.10

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 (77) hide show
  1. package/dist/build/uno.js +9 -1
  2. package/dist/index.js +20683 -20066
  3. package/dist/types/src/components/BaseAntInput.types.d.ts +111 -0
  4. package/dist/types/src/components/BaseAntInput.vue.d.ts +2 -74
  5. package/dist/types/src/components/BaseAppCard/_BaseAppCardHint.vue.d.ts +17 -0
  6. package/dist/types/src/components/BaseAppCard/_BaseAppCardMedia.vue.d.ts +27 -0
  7. package/dist/types/src/components/BaseAppCard/_BaseAppCardTitle.vue.d.ts +5 -0
  8. package/dist/types/src/components/BaseAppCard/_BaseAppCardToolbar.vue.d.ts +18 -0
  9. package/dist/types/src/components/BaseAppCard/_BaseAppCardUpdate.vue.d.ts +8 -0
  10. package/dist/types/src/components/{BaseAppCard.vue.d.ts → BaseAppCard/index.vue.d.ts} +22 -7
  11. package/dist/types/src/components/BaseAppCardSkeleton.vue.d.ts +6 -0
  12. package/dist/types/src/components/BaseResizePanel.vue.d.ts +19 -18
  13. package/dist/types/src/components/DmsFilePicker/composables/usePickerNavigation.d.ts +8 -0
  14. package/dist/types/src/components/DmsFilePicker/composables/usePickerUpload.d.ts +2 -0
  15. package/dist/types/src/components/DmsFilePicker/utils/fileFormatting.d.ts +1 -0
  16. package/dist/types/src/components/FilePreviewContent/_PreviewDetails.vue.d.ts +18 -0
  17. package/dist/types/src/components/FilePreviewContent/_PreviewMeta.vue.d.ts +13 -0
  18. package/dist/types/src/components/FilePreviewContent/_PreviewUsages.vue.d.ts +13 -0
  19. package/dist/types/src/components/FilePreviewContent/fileFormat.d.ts +7 -0
  20. package/dist/types/src/components/FilePreviewContent/index.vue.d.ts +20 -14
  21. package/dist/types/src/components/FilePreviewContent/types.d.ts +27 -0
  22. package/dist/types/src/components/FilePreviewContent/usePreviewDetails.d.ts +49 -0
  23. package/dist/types/src/components/FlowWindowContent/index.vue.d.ts +5 -1
  24. package/dist/types/src/components/RichTextEditor/_MentionPanel.vue.d.ts +18 -0
  25. package/dist/types/src/components/RichTextEditor/_Toolbar.vue.d.ts +6 -0
  26. package/dist/types/src/components/RichTextEditor/_useInlineEdit.d.ts +28 -0
  27. package/dist/types/src/components/RichTextEditor/_useMentionPicker.d.ts +47 -0
  28. package/dist/types/src/components/RichTextEditor/index.vue.d.ts +20 -6
  29. package/dist/types/src/components/TasksFlow/components/_FlowBreadcrumb.vue.d.ts +11 -1
  30. package/dist/types/src/components/TasksFlow/components/_FlowEdgeDeleteDialog.vue.d.ts +11 -0
  31. package/dist/types/src/components/TasksFlow/components/_FlowEdgeLagMenu.vue.d.ts +14 -0
  32. package/dist/types/src/components/TasksFlow/components/_FlowLifecycleBar.vue.d.ts +16 -0
  33. package/dist/types/src/components/TasksFlow/components/_FlowStructureTree.vue.d.ts +14 -0
  34. package/dist/types/src/components/TasksFlow/components/_FlowToolbar.vue.d.ts +5 -2
  35. package/dist/types/src/components/TasksFlow/components/_FlowVersionBar.vue.d.ts +2 -0
  36. package/dist/types/src/components/TasksFlow/components/_flowEdge.vue.d.ts +4 -1
  37. package/dist/types/src/components/TasksFlow/components/nodes/_endpointNode.vue.d.ts +10 -0
  38. package/dist/types/src/components/TasksFlow/components/nodes/_swimlaneNode.vue.d.ts +6 -0
  39. package/dist/types/src/components/TasksFlow/components/nodes/useTaskNodeState.d.ts +5 -5
  40. package/dist/types/src/components/TasksFlow/composables/_layoutEngine.d.ts +19 -0
  41. package/dist/types/src/components/TasksFlow/composables/useAutoLayout.d.ts +6 -10
  42. package/dist/types/src/components/TasksFlow/composables/useFlowDisplayElements.d.ts +15 -0
  43. package/dist/types/src/components/TasksFlow/composables/useFlowEndpoints.d.ts +10 -0
  44. package/dist/types/src/components/TasksFlow/composables/useFlowLifecycle.d.ts +18 -0
  45. package/dist/types/src/components/TasksFlow/composables/useFlowRealtime.d.ts +3 -1
  46. package/dist/types/src/components/TasksFlow/composables/useFlowStructureTree.d.ts +19 -0
  47. package/dist/types/src/components/TasksFlow/composables/useFlowToolbarDrag.d.ts +6 -0
  48. package/dist/types/src/components/TasksFlow/composables/useFlowViewport.d.ts +1 -4
  49. package/dist/types/src/components/TasksFlow/composables/useSwimlaneLayout.d.ts +23 -0
  50. package/dist/types/src/components/TasksFlow/composables/useTaskFlow.d.ts +58 -4
  51. package/dist/types/src/components/TasksFlow/composables/useTaskFlowTypes.d.ts +4 -0
  52. package/dist/types/src/components/TasksFlow/composables/useTemplateVersioning.d.ts +53 -4
  53. package/dist/types/src/components/TasksFlow/composables/useTemplateVersioningState.d.ts +52 -4
  54. package/dist/types/src/components/TasksFlow/index.vue.d.ts +10 -0
  55. package/dist/types/src/components/UnifiedWindow/_WindowPresetMenu.vue.d.ts +11 -0
  56. package/dist/types/src/components/UnifiedWindow/_WindowTabs.vue.d.ts +16 -0
  57. package/dist/types/src/components/UnifiedWindow/index.vue.d.ts +3 -9
  58. package/dist/types/src/components/UnifiedWindow/types.d.ts +11 -0
  59. package/dist/types/src/components/UnifiedWindow/useNativeFullscreen.d.ts +18 -0
  60. package/dist/types/src/components/UnifiedWindow/useWindowDrag.d.ts +8 -0
  61. package/dist/types/src/components/_BaseAntInputField.vue.d.ts +36 -0
  62. package/dist/types/src/components/_BaseAntInputLabel.vue.d.ts +33 -0
  63. package/dist/types/src/components/useResizePanel.d.ts +38 -0
  64. package/dist/types/src/index.d.ts +3 -3
  65. package/lib/PdfViewer/PdfViewer.vue +245 -0
  66. package/lib/PdfViewer/_PdfToolbar.vue +196 -0
  67. package/lib/PdfViewer/canvasBudget.ts +57 -0
  68. package/lib/PdfViewer/index.ts +5 -0
  69. package/lib/PdfViewer/labels.ts +52 -0
  70. package/lib/PdfViewer/usePdfDocument.ts +239 -0
  71. package/lib/PdfViewer/usePdfKeyboard.ts +38 -0
  72. package/lib/PdfViewer/usePdfRaster.ts +85 -0
  73. package/lib/PdfViewer/usePdfTransform.ts +238 -0
  74. package/lib/build/uno.ts +10 -1
  75. package/lib/test/mocks/createMockContext.ts +2 -0
  76. package/lib/test/setup.ts +8 -0
  77. package/package.json +39 -28
@@ -0,0 +1,111 @@
1
+ export declare enum InputTypes {
2
+ text = "text",
3
+ autocomplete = "autocomplete",
4
+ password = "password",
5
+ email = "email",
6
+ number = "number",
7
+ url = "url",
8
+ tel = "tel",
9
+ date = "date",
10
+ time = "time",
11
+ datetime_local = "datetime-local",
12
+ week = "week",
13
+ month = "month",
14
+ color = "color",
15
+ checkbox = "checkbox",
16
+ radio = "radio",
17
+ file = "file",
18
+ range = "range",
19
+ search = "search",
20
+ hidden = "hidden",
21
+ image = "image",
22
+ button = "button",
23
+ submit = "submit",
24
+ reset = "reset",
25
+ select = "select",
26
+ textarea = "textarea",
27
+ textfield = "text-field",
28
+ datepicker = "datepicker",
29
+ timepicker = "timepicker",
30
+ datetimepicker = "datetimepicker",
31
+ switch = "switch",
32
+ slider = "slider",
33
+ rate = "rate",
34
+ upload = "upload",
35
+ cascader = "cascader",
36
+ combobox = "combobox",
37
+ custom = "custom"
38
+ }
39
+ /** These render one identical v-text-field, differing only in the html type. */
40
+ export declare const TEXT_FIELD_TYPES: string[];
41
+ export interface SelectItem {
42
+ id: string;
43
+ title: string;
44
+ value: string;
45
+ }
46
+ export interface BaseAntInputProps {
47
+ topMargin?: string;
48
+ required?: boolean;
49
+ /**
50
+ * Text for the required marker's tooltip and screen-reader label. Pass this to
51
+ * keep the component off the host's translation keys; when omitted it falls
52
+ * back to `common.requiredField`, and to English if the host lacks that key.
53
+ */
54
+ requiredLabel?: string;
55
+ readonly?: boolean;
56
+ label?: string;
57
+ /**
58
+ * Accessible name for usages with no visible `label`. Ignored when `label` is
59
+ * set — the visible text is the name in that case.
60
+ */
61
+ ariaLabel?: string;
62
+ /**
63
+ * HTML autofill token (`username`, `current-password`, `given-name`, …).
64
+ * Needed as an explicit prop because the field branches bind props one by one
65
+ * rather than spreading `$attrs`, so a bare attribute never reached the input.
66
+ */
67
+ autocomplete?: string;
68
+ /**
69
+ * One of `InputTypes`' VALUES, not its keys. The field renderer compares this
70
+ * against `InputTypes.x` directly, and two members disagree between the two
71
+ * (`textfield` -> `text-field`, `datetime_local` -> `datetime-local`), so
72
+ * key-based typing let a caller write a `type` no branch could ever match.
73
+ */
74
+ type?: `${InputTypes}`;
75
+ id?: string;
76
+ /**
77
+ * Native form-control name. Consumers already passed this, but it was not a
78
+ * declared prop and the branches bind props one by one, so it landed on the
79
+ * wrapper div and never reached the input.
80
+ */
81
+ name?: string;
82
+ rows?: number;
83
+ options?: string[];
84
+ hideDetails?: boolean;
85
+ defaultValue?: string;
86
+ disabled?: boolean;
87
+ placeholder?: string;
88
+ rules?: any[];
89
+ color?: string;
90
+ density?: 'default' | 'comfortable' | 'compact';
91
+ hint?: string;
92
+ prefix?: string;
93
+ suffix?: string;
94
+ /** `null` clears it; normalised to `undefined` before Vuetify sees it. */
95
+ prependIcon?: null | string;
96
+ appendIcon?: string;
97
+ prependInnerIcon?: string;
98
+ appendInnerIcon?: string;
99
+ clearable?: boolean;
100
+ errorMessages?: string[];
101
+ persistentHint?: boolean;
102
+ items?: SelectItem[];
103
+ autofocus?: boolean;
104
+ }
105
+ /** Props the field renderer needs on top of the public ones. */
106
+ export interface BaseAntInputFieldProps extends BaseAntInputProps {
107
+ /** Resolved id — the `<label for>` in the parent points at this. */
108
+ inputId: string;
109
+ /** Resolved accessible name, or undefined when a visible label supplies it. */
110
+ fieldAriaLabel?: string;
111
+ }
@@ -1,76 +1,5 @@
1
- type __VLS_Props = Props;
2
- declare enum InputTypes {
3
- text = "text",
4
- autocomplete = "autocomplete",
5
- password = "password",
6
- email = "email",
7
- number = "number",
8
- url = "url",
9
- tel = "tel",
10
- date = "date",
11
- time = "time",
12
- datetime_local = "datetime-local",
13
- week = "week",
14
- month = "month",
15
- color = "color",
16
- checkbox = "checkbox",
17
- radio = "radio",
18
- file = "file",
19
- range = "range",
20
- search = "search",
21
- hidden = "hidden",
22
- image = "image",
23
- button = "button",
24
- submit = "submit",
25
- reset = "reset",
26
- select = "select",
27
- textarea = "textarea",
28
- textfield = "text-field",
29
- datepicker = "datepicker",
30
- timepicker = "timepicker",
31
- datetimepicker = "datetimepicker",
32
- switch = "switch",
33
- slider = "slider",
34
- rate = "rate",
35
- upload = "upload",
36
- cascader = "cascader",
37
- combobox = "combobox",
38
- custom = "custom"
39
- }
40
- interface Props {
41
- topMargin?: string;
42
- required?: boolean;
43
- readonly?: boolean;
44
- label?: string;
45
- type?: keyof typeof InputTypes;
46
- id?: string;
47
- rows?: number;
48
- options?: string[];
49
- hideDetails?: boolean;
50
- defaultValue?: string;
51
- disabled?: boolean;
52
- placeholder?: string;
53
- rules?: any[];
54
- color?: string;
55
- density?: 'default' | 'comfortable' | 'compact';
56
- hint?: string;
57
- prefix?: string;
58
- suffix?: string;
59
- prependIcon?: null | string;
60
- appendIcon?: string;
61
- prependInnerIcon?: string;
62
- appendInnerIcon?: string;
63
- clearable?: boolean;
64
- errorMessages?: string[];
65
- persistentHint?: boolean;
66
- items?: {
67
- id: string;
68
- title: string;
69
- value: string;
70
- }[];
71
- style?: CSSStyleDeclaration;
72
- autofocus?: boolean;
73
- }
1
+ import { BaseAntInputProps } from './BaseAntInput.types';
2
+ type __VLS_Props = BaseAntInputProps;
74
3
  type __VLS_PublicProps = {
75
4
  modelValue?: any;
76
5
  } & __VLS_Props;
@@ -104,7 +33,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
104
33
  color: string;
105
34
  topMargin: string;
106
35
  readonly: boolean;
107
- id: string;
108
36
  disabled: boolean;
109
37
  density: "default" | "comfortable" | "compact";
110
38
  clearable: boolean;
@@ -0,0 +1,17 @@
1
+ type SplitPane = 'L' | 'R' | 'T' | 'B';
2
+ type __VLS_Props = {
3
+ title: string;
4
+ splitPane?: SplitPane | null;
5
+ /** App is connected to the selected task. */
6
+ highlighted?: boolean;
7
+ highlightLabel?: string;
8
+ /** App belongs to a project scope (vs license-wide). */
9
+ projectApp?: boolean;
10
+ scopeLabel?: string;
11
+ enabled?: boolean;
12
+ isFavorite?: boolean;
13
+ updateAvailable?: boolean;
14
+ nextVersion?: string;
15
+ };
16
+ 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>;
17
+ export default _default;
@@ -0,0 +1,27 @@
1
+ type __VLS_Props = {
2
+ icon?: string | null;
3
+ color?: string | null;
4
+ image?: string | null;
5
+ iconSize: number;
6
+ showLoadingIndicator?: boolean;
7
+ isLoading?: boolean;
8
+ };
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: {
12
+ 'bottom-right'?(_: {
13
+ foregroundColor: string;
14
+ }): any;
15
+ };
16
+ refs: {};
17
+ rootEl: HTMLDivElement;
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, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
+ export default _default;
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
@@ -0,0 +1,5 @@
1
+ type __VLS_Props = {
2
+ title: string;
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,18 @@
1
+ type __VLS_Props = {
2
+ app: {
3
+ title: string;
4
+ icon?: string | null;
5
+ color?: string | null;
6
+ image?: string | null;
7
+ };
8
+ iconSize: number;
9
+ cardClasses?: Record<string, boolean>;
10
+ showLoadingIndicator?: boolean;
11
+ titleless?: boolean;
12
+ };
13
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ clicked: () => any;
15
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ onClicked?: (() => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
18
+ export default _default;
@@ -0,0 +1,8 @@
1
+ export type UpdateState = 'idle' | 'updating' | 'done' | 'failed' | 'cleared';
2
+ type __VLS_Props = {
3
+ state?: UpdateState;
4
+ updateAvailable?: boolean;
5
+ nextVersion?: string;
6
+ };
7
+ 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>;
8
+ export default _default;
@@ -1,13 +1,15 @@
1
+ import { UpdateState } from './_BaseAppCardUpdate.vue';
1
2
  export interface AppLike {
2
3
  title: string;
3
- icon: string;
4
+ icon?: string | null;
4
5
  id: string;
5
- color?: string;
6
+ color?: string | null;
6
7
  isFavorite?: boolean;
7
- image?: string;
8
+ image?: string | null;
8
9
  update_available?: boolean;
9
- activated?: boolean;
10
+ can_open?: boolean;
10
11
  }
12
+ type SplitPane = 'L' | 'R' | 'T' | 'B';
11
13
  type __VLS_Props = {
12
14
  app: AppLike;
13
15
  smallerVariant?: boolean;
@@ -15,10 +17,23 @@ type __VLS_Props = {
15
17
  titleless?: boolean;
16
18
  isToolbarSize?: boolean;
17
19
  showLoadingIndicator?: boolean;
18
- toggleFavorite?: () => void;
19
- favoriteVisibility?: 'always' | 'hover' | 'never';
20
20
  shadow?: boolean;
21
21
  size?: 's' | 'xs' | 'toolbar';
22
+ updateState?: UpdateState;
23
+ splitPane?: SplitPane | null;
24
+ menuOpen?: boolean;
25
+ nextVersion?: string;
26
+ fluid?: boolean;
27
+ /** Ring the icon when this app is connected to the selected task. */
28
+ highlighted?: boolean;
29
+ /** Tooltip text shown while highlighted (e.g. "Connected to task X"). */
30
+ highlightLabel?: string;
31
+ /** App belongs to a project scope — shows the project context badge + hint. */
32
+ projectApp?: boolean;
33
+ /** Scope description for the hint (e.g. "Project app · North Tower"). */
34
+ scopeLabel?: string;
35
+ /** Host-derived update affordance; falls back to the app's own flags. */
36
+ updateAvailable?: boolean;
22
37
  };
23
38
  declare function __VLS_template(): {
24
39
  attrs: Partial<{}>;
@@ -31,7 +46,7 @@ declare function __VLS_template(): {
31
46
  rootEl: any;
32
47
  };
33
48
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
34
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
49
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
35
50
  clicked: (app: AppLike) => any;
36
51
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
37
52
  onClicked?: ((app: AppLike) => any) | undefined;
@@ -1,7 +1,13 @@
1
1
  type __VLS_Props = {
2
2
  small?: boolean;
3
+ /** Mirror BaseAppCard's `fluid`: fill the grid cell instead of the fixed 128px tile. */
4
+ fluid?: boolean;
5
+ /** Grid position — varies the title-bar width so a row doesn't read as identical bars. */
6
+ index?: number;
3
7
  };
4
8
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
5
9
  small: boolean;
10
+ fluid: boolean;
11
+ index: number;
6
12
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
7
13
  export default _default;
@@ -1,26 +1,28 @@
1
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
1
+ import { ResizePanelSide } from './useResizePanel';
2
+ type __VLS_Props = {
2
3
  minWidth?: number;
3
4
  maxWidth?: number | null;
4
- defaultWidth: number;
5
+ defaultWidth?: number;
5
6
  minHeight?: number;
6
7
  maxHeight?: number | null;
7
8
  defaultHeight?: number;
8
- side: string;
9
+ side?: ResizePanelSide;
9
10
  collapsible?: boolean;
10
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ };
12
+ declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
14
+ slots: {
15
+ default?(_: {}): any;
16
+ };
17
+ refs: {};
18
+ rootEl: HTMLDivElement;
19
+ };
20
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
22
  resize: (...args: any[]) => void;
12
23
  "resize-end": (...args: any[]) => void;
13
24
  collapse: (...args: any[]) => void;
14
- }, string, import('vue').PublicProps, Readonly<{
15
- minWidth?: number;
16
- maxWidth?: number | null;
17
- defaultWidth: number;
18
- minHeight?: number;
19
- maxHeight?: number | null;
20
- defaultHeight?: number;
21
- side: string;
22
- collapsible?: boolean;
23
- }> & Readonly<{
25
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
24
26
  onResize?: ((...args: any[]) => any) | undefined;
25
27
  "onResize-end"?: ((...args: any[]) => any) | undefined;
26
28
  onCollapse?: ((...args: any[]) => any) | undefined;
@@ -31,11 +33,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
31
33
  defaultWidth: number;
32
34
  minHeight: number;
33
35
  defaultHeight: number;
34
- side: string;
36
+ side: ResizePanelSide;
35
37
  collapsible: boolean;
36
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
37
- default?(_: {}): any;
38
- }>;
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
39
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
39
40
  export default _default;
40
41
  type __VLS_WithTemplateSlots<T, S> = T & {
41
42
  new (): {
@@ -10,6 +10,8 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
10
10
  extension: string | null;
11
11
  size: number | null;
12
12
  is_folder: boolean;
13
+ source_type: string;
14
+ source_url: string | null;
13
15
  is_system?: boolean | undefined;
14
16
  visibility?: string | null | undefined;
15
17
  display_name?: string | null | undefined;
@@ -55,6 +57,8 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
55
57
  extension: string | null;
56
58
  size: number | null;
57
59
  is_folder: boolean;
60
+ source_type: string;
61
+ source_url: string | null;
58
62
  is_system?: boolean | undefined;
59
63
  visibility?: string | null | undefined;
60
64
  display_name?: string | null | undefined;
@@ -101,6 +105,8 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
101
105
  extension: string | null;
102
106
  size: number | null;
103
107
  is_folder: boolean;
108
+ source_type: string;
109
+ source_url: string | null;
104
110
  is_system?: boolean | undefined;
105
111
  visibility?: string | null | undefined;
106
112
  display_name?: string | null | undefined;
@@ -146,6 +152,8 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
146
152
  extension: string | null;
147
153
  size: number | null;
148
154
  is_folder: boolean;
155
+ source_type: string;
156
+ source_url: string | null;
149
157
  is_system?: boolean | undefined;
150
158
  visibility?: string | null | undefined;
151
159
  display_name?: string | null | undefined;
@@ -15,8 +15,10 @@ export declare function usePickerUpload(antConnect: AntConnect, options: UsePick
15
15
  isUploading: Ref<boolean, boolean>;
16
16
  uploadProgress: Ref<number, number>;
17
17
  isDragOver: Ref<boolean, boolean>;
18
+ isAddingLink: Ref<boolean, boolean>;
18
19
  onFileInput: (event: Event, modeOverride?: UploadMode) => void;
19
20
  onDrop: (event: DragEvent) => void;
20
21
  handleFileUpload: (file: File) => Promise<void>;
22
+ addExternalLink: (name: string, url: string) => Promise<DmsFile | null>;
21
23
  };
22
24
  export {};
@@ -1,5 +1,6 @@
1
1
  import { DmsFile } from '@antcde/connect-ts';
2
2
  export declare function isSystemItem(file: DmsFile): boolean;
3
+ export declare function isExternalLinkItem(file: DmsFile): boolean;
3
4
  export declare function getItemIcon(file: DmsFile): string;
4
5
  export declare function getItemColor(file: DmsFile): string | undefined;
5
6
  export declare function getItemName(file: DmsFile): string;
@@ -0,0 +1,18 @@
1
+ import { AntConnect } from '@antcde/connect-ts';
2
+ import { PreviewTabData } from './types';
3
+ type __VLS_Props = {
4
+ tab: PreviewTabData;
5
+ antConnect: AntConnect;
6
+ isDark: boolean;
7
+ displayTitle: string;
8
+ /** Drives the lazy fetch; the parent owns the open/closed transition. */
9
+ open: boolean;
10
+ };
11
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ close: () => any;
13
+ navigate: (taskId: string) => any;
14
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onClose?: (() => any) | undefined;
16
+ onNavigate?: ((taskId: string) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
18
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { PreviewFileMeta } from './types';
2
+ type __VLS_Props = {
3
+ meta: Pick<PreviewFileMeta, 'fileSize' | 'fileExtension' | 'ownerName' | 'ownerAvatar' | 'createdAt' | 'updatedAt'>;
4
+ fileScope: 'project' | 'license';
5
+ breadcrumbs: {
6
+ name: string;
7
+ is_folder: boolean;
8
+ }[];
9
+ hasMeta: boolean;
10
+ isLoading: boolean;
11
+ };
12
+ 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>;
13
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { DmsFileUsage } from '@antcde/connect-ts';
2
+ type __VLS_Props = {
3
+ taskUsages: DmsFileUsage[];
4
+ tableUsages: DmsFileUsage[];
5
+ hasUsages: boolean;
6
+ isLoading: boolean;
7
+ };
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ navigate: (taskId: string) => any;
10
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
11
+ onNavigate?: ((taskId: string) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export declare function getMime(ext: string): string;
2
+ export declare function getExtension(name: string): string;
3
+ export declare function iconForExtension(ext: string | undefined): string;
4
+ export declare function colorForExtension(ext: string | undefined): string | undefined;
5
+ export declare function formatFileSize(bytes: number | null | undefined): string;
6
+ export declare function formatDate(dateStr: string | undefined): string;
7
+ export declare function getOwnerInitials(name: string): string;
@@ -1,17 +1,5 @@
1
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
- }
2
+ import { PreviewTabData } from './types';
15
3
  type __VLS_Props = {
16
4
  tab: PreviewTabData;
17
5
  antConnect: AntConnect;
@@ -19,7 +7,19 @@ type __VLS_Props = {
19
7
  showDetails?: boolean;
20
8
  };
21
9
  declare function download(): Promise<void>;
22
- declare const _default: import('vue').DefineComponent<__VLS_Props, {
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ pdf?(_: {
14
+ src: string;
15
+ title: string;
16
+ }): any;
17
+ };
18
+ refs: {};
19
+ rootEl: HTMLDivElement;
20
+ };
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
23
23
  download: typeof download;
24
24
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
25
  "update:showDetails": (value: boolean) => any;
@@ -28,4 +28,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
28
28
  "onUpdate:showDetails"?: ((value: boolean) => any) | undefined;
29
29
  "onNavigate:task"?: ((taskId: string) => any) | undefined;
30
30
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
31
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
32
  export default _default;
33
+ type __VLS_WithTemplateSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -0,0 +1,27 @@
1
+ export interface PreviewTabData {
2
+ fileToken: string;
3
+ fileName?: string;
4
+ projectId?: string;
5
+ licenseId?: string;
6
+ contentUrl?: string;
7
+ fileSize?: number;
8
+ fileExtension?: string;
9
+ ownerName?: string;
10
+ ownerAvatar?: string;
11
+ createdAt?: string;
12
+ updatedAt?: string;
13
+ }
14
+ export interface PreviewFileMeta {
15
+ fileSize?: number;
16
+ fileExtension?: string;
17
+ ownerName?: string;
18
+ ownerAvatar?: string;
19
+ createdAt?: string;
20
+ updatedAt?: string;
21
+ breadcrumbs?: {
22
+ name: string;
23
+ is_folder: boolean;
24
+ }[];
25
+ projectId?: string | null;
26
+ licenseId?: string;
27
+ }
@@ -0,0 +1,49 @@
1
+ import { AntConnect } from '@antcde/connect-ts';
2
+ import { PreviewTabData } from './types';
3
+ /**
4
+ * Metadata and usage lists for the details sidebar. Both are fetched lazily —
5
+ * the sidebar is closed by default and neither is needed to show the file.
6
+ */
7
+ export declare function usePreviewDetails(tab: () => PreviewTabData, antConnect: () => AntConnect): {
8
+ meta: import('vue').ComputedRef<{
9
+ fileSize: number | undefined;
10
+ fileExtension: string;
11
+ ownerName: string | undefined;
12
+ ownerAvatar: string | undefined;
13
+ createdAt: string | undefined;
14
+ updatedAt: string | undefined;
15
+ }>;
16
+ fileScope: import('vue').ComputedRef<"project" | "license">;
17
+ breadcrumbs: import('vue').ComputedRef<{
18
+ name: string;
19
+ is_folder: boolean;
20
+ }[]>;
21
+ metaIcon: import('vue').ComputedRef<string>;
22
+ metaIconColor: import('vue').ComputedRef<string | undefined>;
23
+ hasMeta: import('vue').ComputedRef<boolean>;
24
+ isLoadingMeta: import('vue').Ref<boolean, boolean>;
25
+ taskUsages: import('vue').ComputedRef<{
26
+ id: string;
27
+ type: "task" | "record_cell";
28
+ linkable_id: string;
29
+ mode: "owned" | "referenced";
30
+ created_at: string | null;
31
+ task_title?: string | null | undefined;
32
+ task_number?: number | null | undefined;
33
+ table_name?: string | null | undefined;
34
+ }[]>;
35
+ tableUsages: import('vue').ComputedRef<{
36
+ id: string;
37
+ type: "task" | "record_cell";
38
+ linkable_id: string;
39
+ mode: "owned" | "referenced";
40
+ created_at: string | null;
41
+ task_title?: string | null | undefined;
42
+ task_number?: number | null | undefined;
43
+ table_name?: string | null | undefined;
44
+ }[]>;
45
+ hasUsages: import('vue').ComputedRef<boolean>;
46
+ isLoadingUsages: import('vue').Ref<boolean, boolean>;
47
+ fetchMeta: () => Promise<void>;
48
+ fetchUsages: () => Promise<void>;
49
+ };
@@ -17,7 +17,11 @@ type __VLS_Props = {
17
17
  declare function updateFlowTask(task: Task): void;
18
18
  declare const _default: import('vue').DefineComponent<__VLS_Props, {
19
19
  updateFlowTask: typeof updateFlowTask;
20
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
20
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ versionPublished: (version: number) => any;
22
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
23
+ onVersionPublished?: ((version: number) => any) | undefined;
24
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
21
25
  fullFlowRef: unknown;
22
26
  editorRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
23
27
  isDark: boolean;