@antcde/component-library 0.1.31-rc.1 → 0.1.31-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 (31) hide show
  1. package/dist/build/uno.safelist.d.ts +1 -1
  2. package/dist/build/uno.safelist.js +54 -49
  3. package/dist/build/uno.shortcuts.js +0 -3
  4. package/dist/index.js +8861 -7603
  5. package/dist/test/vitest.js +2 -0
  6. package/dist/types/components/BaseAppCard/_BaseAppCardHint.vue.d.ts +1 -0
  7. package/dist/types/components/BaseAppCard/index.vue.d.ts +1 -0
  8. package/dist/types/components/BaseConfirmDialog.vue.d.ts +4 -4
  9. package/dist/types/components/BaseDialog.vue.d.ts +3 -3
  10. package/dist/types/components/ScriptTrigger/composables/useTableSelection.d.ts +6 -0
  11. package/dist/types/components/TasksFlow/composables/useEdgeConditionTables.d.ts +6 -0
  12. package/dist/types/components/Usage/ResourceTrash.vue.d.ts +8 -0
  13. package/dist/types/components/Usage/UsageActions.vue.d.ts +21 -0
  14. package/dist/types/components/Usage/UsagePanel.vue.d.ts +8 -0
  15. package/dist/types/components/Usage/_EmptyTrashBar.vue.d.ts +8 -0
  16. package/dist/types/components/Usage/_PurgeConfirmDialog.vue.d.ts +25 -0
  17. package/dist/types/components/Usage/_UsageCarbon.vue.d.ts +9 -0
  18. package/dist/types/components/Usage/_UsageClassRow.vue.d.ts +22 -0
  19. package/dist/types/components/Usage/formatBytes.d.ts +2 -0
  20. package/dist/types/components/Usage/usageMessages.d.ts +188 -0
  21. package/dist/types/components/Usage/useResourceTrash.d.ts +39 -0
  22. package/dist/types/components/Usage/useResourceUsage.d.ts +34 -0
  23. package/dist/types/components/Usage/useShowUsageSizes.d.ts +1 -0
  24. package/dist/types/components/Usage/useUsageJob.d.ts +4 -0
  25. package/dist/types/components/form/AntRadioCards.vue.d.ts +1 -0
  26. package/dist/types/index.d.ts +290 -17
  27. package/lib/build/uno.safelist.ts +54 -49
  28. package/lib/build/uno.shortcuts.ts +0 -3
  29. package/lib/test/createMockAppContext.ts +9 -0
  30. package/lib/test/vitest.ts +2 -0
  31. package/package.json +3 -3
@@ -1,18 +1,10 @@
1
1
  import { App } from 'vue';
2
- import { default as BaseAntButton } from './components/BaseAntButton.vue';
3
- import { default as BaseAntCard } from './components/BaseAntCard.vue';
4
- import { default as BaseAntCreateCard } from './components/BaseAntCreateCard.vue';
5
- import { default as BaseAntDatePicker } from './components/BaseAntDatePicker.vue';
6
2
  import { default as BaseAntInput } from './components/BaseAntInput.vue';
7
- import { default as BaseAntLoading } from './components/BaseAntLoading.vue';
8
3
  import { default as BaseAppCard } from './components/BaseAppCard/index.vue';
9
4
  import { default as BaseAppCardSkeleton } from './components/BaseAppCardSkeleton.vue';
10
5
  import { default as BaseClickableIcon } from './components/BaseClickableIcon.vue';
11
- import { default as BaseConfirmDialog } from './components/BaseConfirmDialog.vue';
12
6
  import { default as BaseDeleteDialog } from './components/BaseDeleteDialog.vue';
13
- import { default as BaseDialog } from './components/BaseDialog.vue';
14
7
  import { default as BaseLimitedButton } from './components/BaseLimitedButton.vue';
15
- import { default as BaseResizePanel } from './components/BaseResizePanel.vue';
16
8
  import { default as BulkLabelsMenu } from './components/BulkLabelsMenu.vue';
17
9
  import { default as DmsFilePicker } from './components/DmsFilePicker/index.vue';
18
10
  import { default as GlobalLabelBadge } from './components/GlobalLabelBadge.vue';
@@ -26,6 +18,9 @@ import { default as UnifiedWindow } from './components/UnifiedWindow/index.vue';
26
18
  import { default as TaskFlow } from './components/TasksFlow/index.vue';
27
19
  import { default as VersionPublishDialog } from './components/VersionPublishDialog.vue';
28
20
  import { default as AntTourZone } from './components/AntTourZone/index.vue';
21
+ import { default as ResourceTrash } from './components/Usage/ResourceTrash.vue';
22
+ import { default as UsageActions } from './components/Usage/UsageActions.vue';
23
+ import { default as UsagePanel } from './components/Usage/UsagePanel.vue';
29
24
  import { default as AntNoticeAlert } from './components/AntNoticeAlert.vue';
30
25
  import { default as AntDatasetFileSource } from './components/ScriptTrigger/AntDatasetFileSource.vue';
31
26
  import { default as AntDatasetTableSource } from './components/ScriptTrigger/AntDatasetTableSource.vue';
@@ -80,19 +75,297 @@ export { withSavedOption } from './components/ScriptTrigger/utils/withSavedOptio
80
75
  export type { StackedLabel } from './components/StackedLabels/index.vue';
81
76
  export type { FlowChannelSubscriber } from './components/TasksFlow/composables/useTaskFlow';
82
77
  export type { WindowSizePreset, WindowTab } from './components/UnifiedWindow/types';
78
+ export { formatBytes } from './components/Usage/formatBytes';
79
+ export { type UseResourceTrash, useResourceTrash } from './components/Usage/useResourceTrash';
80
+ export { type UseResourceUsage, useResourceUsage, type UseResourceUsageOptions } from './components/Usage/useResourceUsage';
81
+ export { useShowUsageSizes } from './components/Usage/useShowUsageSizes';
83
82
  export * from '@antcde/vue-utils';
84
- export { AntActionMenu, AntCheckboxCards, AntColumnMapRow, AntDatasetFileSource, AntDatasetTableSource, AntDialogShell, AntField, AntFilterChips, AntFilterSelect, AntHintBanner, AntHintTip, AntInput, AntMultiSelect, AntNoticeAlert, AntNumberField, AntOptionPicker, AntPanelSection, AntPayloadFieldsEditor, AntRadioCards, AntResourceTile, AntRunScriptFields, AntSaveBar, AntScopePanel, AntSearchField, AntSectionCard, AntSelect, AntStatusPill, AntToggle, AntTourZone, AntTransformScriptFields, AntTriggerExecutionUser, BaseAntButton, BaseAntCard, BaseAntCreateCard, BaseAntDatePicker, BaseAntInput, BaseAntLoading, BaseAppCard, BaseAppCardSkeleton, BaseClickableIcon, BaseConfirmDialog, BaseDeleteDialog, BaseDialog, BaseLimitedButton, BaseResizePanel, BulkLabelsMenu, DmsFilePicker, FilePreviewContent, FlowWindowContent, GlobalLabelBadge, LabelsMenuCard, PermissionCard, RichTextEditor, StackedLabels, TaskFlow, UnifiedWindow, VersionPublishDialog, };
83
+ /** @deprecated Unused on the platform; removed in the next minor. Use the `Ant*` components instead. */
84
+ export declare const BaseAntButton: import('vue').DefineComponent<{
85
+ text: string;
86
+ size?: string;
87
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
88
+ text: string;
89
+ size?: string;
90
+ }> & Readonly<{}>, {
91
+ size: string;
92
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
93
+ /** @deprecated Unused on the platform; removed in the next minor. Use the `Ant*` components instead. */
94
+ export declare const BaseAntCard: {
95
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
96
+ width?: number;
97
+ transparent?: boolean;
98
+ header?: boolean;
99
+ footer?: boolean;
100
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
101
+ width: number;
102
+ transparent: boolean;
103
+ header: boolean;
104
+ footer: boolean;
105
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
106
+ P: {};
107
+ B: {};
108
+ D: {};
109
+ C: {};
110
+ M: {};
111
+ Defaults: {};
112
+ }, Readonly<{
113
+ width?: number;
114
+ transparent?: boolean;
115
+ header?: boolean;
116
+ footer?: boolean;
117
+ }> & Readonly<{}>, {}, {}, {}, {}, {
118
+ width: number;
119
+ transparent: boolean;
120
+ header: boolean;
121
+ footer: boolean;
122
+ }>;
123
+ __isFragment?: never;
124
+ __isTeleport?: never;
125
+ __isSuspense?: never;
126
+ } & import('vue').ComponentOptionsBase<Readonly<{
127
+ width?: number;
128
+ transparent?: boolean;
129
+ header?: boolean;
130
+ footer?: boolean;
131
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
132
+ width: number;
133
+ transparent: boolean;
134
+ header: boolean;
135
+ footer: boolean;
136
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
137
+ $slots: {
138
+ title?: (props: {}) => any;
139
+ } & {
140
+ content?: (props: {}) => any;
141
+ } & {
142
+ actions?: (props: {}) => any;
143
+ };
144
+ });
145
+ /** @deprecated Unused on the platform; removed in the next minor. Use the `Ant*` components instead. */
146
+ export declare const BaseAntCreateCard: import('vue').DefineComponent<{
147
+ width?: string;
148
+ height?: string;
149
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
150
+ width?: string;
151
+ height?: string;
152
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
153
+ /** @deprecated Unused on the platform; removed in the next minor. Use the `Ant*` components instead. */
154
+ export declare const BaseAntDatePicker: import('vue').DefineComponent<{
155
+ value?: string;
156
+ label?: string;
157
+ required?: boolean;
158
+ placeholder: string;
159
+ rules?: string[];
160
+ locale?: string;
161
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
162
+ input: (...args: any[]) => void;
163
+ }, string, import('vue').PublicProps, Readonly<{
164
+ value?: string;
165
+ label?: string;
166
+ required?: boolean;
167
+ placeholder: string;
168
+ rules?: string[];
169
+ locale?: string;
170
+ }> & Readonly<{
171
+ onInput?: ((...args: any[]) => any) | undefined;
172
+ }>, {
173
+ required: boolean;
174
+ locale: string;
175
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
176
+ /** @deprecated Unused on the platform; removed in the next minor. Use the `Ant*` components instead. */
177
+ export declare const BaseAntLoading: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
178
+ /** @deprecated Unused on the platform; removed in the next minor. Use the `Ant*` components instead. */
179
+ export declare const BaseConfirmDialog: {
180
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
181
+ displayed: boolean;
182
+ title: string;
183
+ isLoading?: boolean;
184
+ icon?: string;
185
+ confirmTitle?: string | null;
186
+ }> & Readonly<{
187
+ onClose?: (() => any) | undefined;
188
+ onAction?: (() => any) | undefined;
189
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
190
+ close: () => any;
191
+ action: () => any;
192
+ }, import('vue').PublicProps, {
193
+ icon: string;
194
+ isLoading: boolean;
195
+ confirmTitle: string | null;
196
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
197
+ P: {};
198
+ B: {};
199
+ D: {};
200
+ C: {};
201
+ M: {};
202
+ Defaults: {};
203
+ }, Readonly<{
204
+ displayed: boolean;
205
+ title: string;
206
+ isLoading?: boolean;
207
+ icon?: string;
208
+ confirmTitle?: string | null;
209
+ }> & Readonly<{
210
+ onClose?: (() => any) | undefined;
211
+ onAction?: (() => any) | undefined;
212
+ }>, {}, {}, {}, {}, {
213
+ icon: string;
214
+ isLoading: boolean;
215
+ confirmTitle: string | null;
216
+ }>;
217
+ __isFragment?: never;
218
+ __isTeleport?: never;
219
+ __isSuspense?: never;
220
+ } & import('vue').ComponentOptionsBase<Readonly<{
221
+ displayed: boolean;
222
+ title: string;
223
+ isLoading?: boolean;
224
+ icon?: string;
225
+ confirmTitle?: string | null;
226
+ }> & Readonly<{
227
+ onClose?: (() => any) | undefined;
228
+ onAction?: (() => any) | undefined;
229
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
230
+ close: () => any;
231
+ action: () => any;
232
+ }, string, {
233
+ icon: string;
234
+ isLoading: boolean;
235
+ confirmTitle: string | null;
236
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
237
+ $slots: {
238
+ content?: (props: {}) => any;
239
+ };
240
+ });
241
+ /** @deprecated Unused on the platform; removed in the next minor. Use the `Ant*` components instead. */
242
+ export declare const BaseDialog: {
243
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./components/BaseDialog.vue').Props> & Readonly<{
244
+ onClose?: (() => any) | undefined;
245
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
246
+ close: () => any;
247
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
248
+ P: {};
249
+ B: {};
250
+ D: {};
251
+ C: {};
252
+ M: {};
253
+ Defaults: {};
254
+ }, Readonly<import('./components/BaseDialog.vue').Props> & Readonly<{
255
+ onClose?: (() => any) | undefined;
256
+ }>, {}, {}, {}, {}, {}>;
257
+ __isFragment?: never;
258
+ __isTeleport?: never;
259
+ __isSuspense?: never;
260
+ } & import('vue').ComponentOptionsBase<Readonly<import('./components/BaseDialog.vue').Props> & Readonly<{
261
+ onClose?: (() => any) | undefined;
262
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
263
+ close: () => any;
264
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
265
+ $slots: {
266
+ content?: (props: {}) => any;
267
+ };
268
+ });
269
+ /** @deprecated Unused on the platform; removed in the next minor. Use the `Ant*` components instead. */
270
+ export declare const BaseResizePanel: {
271
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
272
+ minWidth?: number;
273
+ maxWidth?: number | null;
274
+ defaultWidth?: number;
275
+ minHeight?: number;
276
+ maxHeight?: number | null;
277
+ defaultHeight?: number;
278
+ side?: import('./components/useResizePanel').ResizePanelSide;
279
+ collapsible?: boolean;
280
+ }> & Readonly<{
281
+ onResize?: ((...args: any[]) => any) | undefined;
282
+ "onResize-end"?: ((...args: any[]) => any) | undefined;
283
+ onCollapse?: ((...args: any[]) => any) | undefined;
284
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
285
+ resize: (...args: any[]) => void;
286
+ "resize-end": (...args: any[]) => void;
287
+ collapse: (...args: any[]) => void;
288
+ }, import('vue').PublicProps, {
289
+ maxHeight: number | null;
290
+ minWidth: number;
291
+ maxWidth: number | null;
292
+ defaultWidth: number;
293
+ minHeight: number;
294
+ defaultHeight: number;
295
+ side: import('./components/useResizePanel').ResizePanelSide;
296
+ collapsible: boolean;
297
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
298
+ P: {};
299
+ B: {};
300
+ D: {};
301
+ C: {};
302
+ M: {};
303
+ Defaults: {};
304
+ }, Readonly<{
305
+ minWidth?: number;
306
+ maxWidth?: number | null;
307
+ defaultWidth?: number;
308
+ minHeight?: number;
309
+ maxHeight?: number | null;
310
+ defaultHeight?: number;
311
+ side?: import('./components/useResizePanel').ResizePanelSide;
312
+ collapsible?: boolean;
313
+ }> & Readonly<{
314
+ onResize?: ((...args: any[]) => any) | undefined;
315
+ "onResize-end"?: ((...args: any[]) => any) | undefined;
316
+ onCollapse?: ((...args: any[]) => any) | undefined;
317
+ }>, {}, {}, {}, {}, {
318
+ maxHeight: number | null;
319
+ minWidth: number;
320
+ maxWidth: number | null;
321
+ defaultWidth: number;
322
+ minHeight: number;
323
+ defaultHeight: number;
324
+ side: import('./components/useResizePanel').ResizePanelSide;
325
+ collapsible: boolean;
326
+ }>;
327
+ __isFragment?: never;
328
+ __isTeleport?: never;
329
+ __isSuspense?: never;
330
+ } & import('vue').ComponentOptionsBase<Readonly<{
331
+ minWidth?: number;
332
+ maxWidth?: number | null;
333
+ defaultWidth?: number;
334
+ minHeight?: number;
335
+ maxHeight?: number | null;
336
+ defaultHeight?: number;
337
+ side?: import('./components/useResizePanel').ResizePanelSide;
338
+ collapsible?: boolean;
339
+ }> & Readonly<{
340
+ onResize?: ((...args: any[]) => any) | undefined;
341
+ "onResize-end"?: ((...args: any[]) => any) | undefined;
342
+ onCollapse?: ((...args: any[]) => any) | undefined;
343
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
344
+ resize: (...args: any[]) => void;
345
+ "resize-end": (...args: any[]) => void;
346
+ collapse: (...args: any[]) => void;
347
+ }, string, {
348
+ maxHeight: number | null;
349
+ minWidth: number;
350
+ maxWidth: number | null;
351
+ defaultWidth: number;
352
+ minHeight: number;
353
+ defaultHeight: number;
354
+ side: import('./components/useResizePanel').ResizePanelSide;
355
+ collapsible: boolean;
356
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
357
+ $slots: {
358
+ default?: (props: {}) => any;
359
+ };
360
+ });
361
+ export { AntActionMenu, AntCheckboxCards, AntColumnMapRow, AntDatasetFileSource, AntDatasetTableSource, AntDialogShell, AntField, AntFilterChips, AntFilterSelect, AntHintBanner, AntHintTip, AntInput, AntMultiSelect, AntNoticeAlert, AntNumberField, AntOptionPicker, AntPanelSection, AntPayloadFieldsEditor, AntRadioCards, AntResourceTile, AntRunScriptFields, AntSaveBar, AntScopePanel, AntSearchField, AntSectionCard, AntSelect, AntStatusPill, AntToggle, AntTourZone, AntTransformScriptFields, AntTriggerExecutionUser, BaseAntInput, BaseAppCard, BaseAppCardSkeleton, BaseClickableIcon, BaseDeleteDialog, BaseLimitedButton, BulkLabelsMenu, DmsFilePicker, FilePreviewContent, FlowWindowContent, GlobalLabelBadge, LabelsMenuCard, PermissionCard, ResourceTrash, RichTextEditor, StackedLabels, TaskFlow, UnifiedWindow, UsageActions, UsagePanel, VersionPublishDialog, };
85
362
  /**
86
- * ⚠️ `BaseAntInput` and `BaseAntDatePicker` are the SUPERSEDED field idiom —
87
- * wrappers around Vuetify fields, whose border weight and floating notched label
88
- * are the reason forms built on them read as "raw Vuetify".
89
- *
90
- * For new work use the `Ant*` form primitives above (`AntInput`, `AntSelect`,
91
- * `AntToggle`, `AntRadioCards`, …). They are left in place because rewriting
92
- * `BaseAntInput` — 289 lines fanning a 30-member enum out to nine Vuetify
93
- * components — is its own piece of work, not a side effect of anyone else's.
363
+ * ⚠️ `BaseAntInput` and `BaseAntDatePicker` are the SUPERSEDED field idiom: Vuetify-field
364
+ * wrappers whose border weight and floating notched label make forms read as "raw Vuetify".
365
+ * New work uses the `Ant*` form primitives (`AntInput`, `AntSelect`, `AntToggle`, …).
94
366
  *
95
367
  * @deprecated for new code. Do not mix the two idioms in one form.
368
+ * comment-budget: allow (deprecation notice on a public library export)
96
369
  */
97
370
  export declare const SUPERSEDED_FIELD_COMPONENTS: readonly ["BaseAntInput", "BaseAntDatePicker"];
98
371
  declare const _default: {
@@ -4,63 +4,68 @@
4
4
  * Every utility class this library's own components use, so a consuming app emits
5
5
  * them even though UnoCSS never scans `dist/index.js`. See the generator for why.
6
6
  *
7
- * 326 classes, from 1625 candidates, filtered by asking Uno
7
+ * 355 classes, from 1676 candidates, filtered by asking Uno
8
8
  * which ones actually resolve.
9
9
  */
10
10
  export const libraryClassSafelist: string[] = [
11
11
  'absolute', 'align-middle', 'align-start', 'ant-cat-chip', 'ant-check', 'ant-check--on',
12
- 'ant-cta', 'ant-cta--tonal', 'ant-empty-icon', 'ant-field-label', 'ant-hint-banner', 'ant-icon-button',
13
- 'ant-info-box', 'ant-install-another-btn', 'ant-option-row', 'ant-option-row--on', 'ant-pill', 'ant-pill--sm',
14
- 'ant-pill-input', 'ant-pill-input--button', 'ant-pill-menu', 'ant-pill-menu__item', 'ant-pill-menu__item--active', 'ant-radio',
15
- 'ant-radio--on', 'ant-radio__dot', 'ant-save-bar', 'ant-section', 'ant-section__header', 'ant-section__row',
16
- 'ant-warning-box', 'b', 'basis-full', 'bg-ant-inset', 'bg-ant-panel', 'bg-ant-surface',
17
- 'bg-error', 'bg-error/10', 'bg-info', 'bg-primary', 'bg-primary/10', 'bg-primary/4',
18
- 'bg-primary/5', 'bg-success', 'bg-success/10', 'bg-transparent', 'bg-warning', 'bg-warning/10',
12
+ 'ant-cta', 'ant-cta--danger', 'ant-cta--ghost', 'ant-cta--tonal', 'ant-empty-icon', 'ant-field-label',
13
+ 'ant-fine', 'ant-hint-banner', 'ant-hover-transition', 'ant-icon-button', 'ant-info-box', 'ant-install-another-btn',
14
+ 'ant-option-row', 'ant-option-row--on', 'ant-pill', 'ant-pill--sm', 'ant-pill-input', 'ant-pill-input--button',
15
+ 'ant-pill-menu', 'ant-pill-menu__item', 'ant-pill-menu__item--active', 'ant-radio', 'ant-radio--on', 'ant-radio__dot',
16
+ 'ant-save-bar', 'ant-section', 'ant-section__header', 'ant-section__row', 'ant-warning-box', 'b',
17
+ 'basis-full', 'bg-ant-inset', 'bg-ant-panel', 'bg-ant-surface', 'bg-error', 'bg-error/10',
18
+ 'bg-error/6', 'bg-info', 'bg-primary', 'bg-primary/10', 'bg-primary/4', 'bg-primary/5',
19
+ 'bg-primary/6', 'bg-success', 'bg-success/10', 'bg-transparent', 'bg-warning', 'bg-warning/10',
19
20
  'bg-warning/8', 'bg-white', 'bg-white/12', 'block', 'blur', 'border',
20
21
  'border-0', 'border-2', 'border-ant', 'border-b', 'border-dashed', 'border-error',
21
- 'border-none', 'border-opacity-50', 'border-primary', 'border-t', 'border-transparent', 'border-warning/40',
22
- 'border-white/20', 'bottom-0', 'capitalize', 'collapse', 'cursor-help', 'cursor-not-allowed',
23
- 'cursor-pointer', 'disabled:cursor-not-allowed', 'disabled:hover:bg-transparent', 'disabled:opacity-50', 'duration-150', 'duration-200',
24
- 'ease', 'ease-in', 'ease-out', 'fixed', 'flex', 'flex-1',
25
- 'flex-col', 'flex-grow-1', 'flex-shrink-0', 'flex-wrap', 'focus-visible:border-primary', 'focus-visible:opacity-100',
26
- 'focus-visible:outline-2', 'focus-visible:outline-offset-2', 'focus-visible:outline-primary', 'focus-within:border-primary', 'focus-within:ring-3', 'focus:border-error',
27
- 'focus:border-primary', 'focus:outline-none', 'focus:ring-error/10', 'focus:ring-primary/10', 'font-[inherit]', 'font-medium',
28
- 'font-mono', 'font-normal', 'font-semibold', 'gap-0.5', 'gap-1', 'gap-1.5',
29
- 'gap-2', 'gap-3', 'gap-3.5', 'gap-4', 'gap-5', 'gap-8',
30
- 'gap-[5px]', 'gap-[6px]', 'gap-x-2', 'gap-y-1', 'grayscale', 'grid',
31
- 'grid-cols-1', 'grid-cols-2', 'grid-cols-3', 'grid-cols-4', 'group-hover:bg-primary/4', 'group-hover:border-primary/60',
32
- 'h-11', 'h-2', 'h-4', 'h-7', 'h-8', 'h-9',
33
- 'h-9.5', 'h-[18px]', 'h-[22px]', 'h-full', 'hidden', 'hover:bg-ant-hover',
34
- 'hover:bg-primary/6', 'hover:bg-primary/8', 'hover:bg-warning/10', 'hover:bg-white/10', 'hover:opacity-100', 'inline',
35
- 'inline-block', 'inline-flex', 'inset-0', 'italic', 'items-baseline', 'items-center',
36
- 'items-start', 'items-stretch', 'justify-between', 'justify-center', 'justify-end', 'justify-start',
37
- 'last:border-b-0', 'leading-none', 'leading-relaxed', 'leading-snug', 'leading-tight', 'left-0.5',
38
- 'lg:flex-initial', 'lg:min-w-[180px]', 'lg:min-w-[220px]', 'm-0', 'max-h-[88vh]', 'max-w-[180px]',
39
- 'max-w-[240px]', 'max-w-[280px]', 'max-w-[320px]', 'max-w-[340px]', 'max-w-[380px]', 'mb-1',
40
- 'mb-2', 'mb-2.5', 'mb-3', 'mb-4', 'md:basis-auto', 'md:flex-1',
41
- 'md:max-w-[420px]', 'md:min-w-[260px]', 'min-h-0', 'min-h-11', 'min-w-0', 'min-w-[140px]',
22
+ 'border-error/20', 'border-none', 'border-opacity-50', 'border-primary', 'border-t', 'border-transparent',
23
+ 'border-warning/40', 'border-white/20', 'bottom-0', 'capitalize', 'collapse', 'cursor-help',
24
+ 'cursor-not-allowed', 'cursor-pointer', 'disabled:cursor-default', 'disabled:cursor-not-allowed', 'disabled:hover:bg-transparent', 'disabled:opacity-40',
25
+ 'disabled:opacity-50', 'duration-150', 'duration-200', 'ease', 'ease-in', 'ease-out',
26
+ 'fixed', 'flex', 'flex-1', 'flex-col', 'flex-grow-1', 'flex-shrink-0',
27
+ 'flex-wrap', 'focus-visible:border-primary', 'focus-visible:opacity-100', 'focus-visible:outline-2', 'focus-visible:outline-offset-2', 'focus-visible:outline-primary',
28
+ 'focus-within:border-primary', 'focus-within:ring-3', 'focus:border-error', 'focus:border-primary', 'focus:outline-none', 'focus:ring-error/10',
29
+ 'focus:ring-primary/10', 'font-[inherit]', 'font-medium', 'font-mono', 'font-normal', 'font-semibold',
30
+ 'gap-0.5', 'gap-1', 'gap-1.5', 'gap-2', 'gap-2.5', 'gap-3',
31
+ 'gap-3.5', 'gap-4', 'gap-5', 'gap-8', 'gap-[5px]', 'gap-[6px]',
32
+ 'gap-x-2', 'gap-x-3', 'gap-y-1', 'grayscale', 'grid', 'grid-cols-1',
33
+ 'grid-cols-2', 'grid-cols-3', 'grid-cols-4', 'group-hover:bg-primary/4', 'group-hover:border-primary/60', 'h-11',
34
+ 'h-2', 'h-4', 'h-7', 'h-8', 'h-9', 'h-9.5',
35
+ 'h-[18px]', 'h-[22px]', 'h-[30px]', 'h-[60px]', 'h-full', 'hidden',
36
+ 'hover:!text-error', 'hover:bg-ant-hover', 'hover:bg-primary/6', 'hover:bg-primary/8', 'hover:bg-warning/10', 'hover:bg-white/10',
37
+ 'hover:opacity-100', 'inline', 'inline-block', 'inline-flex', 'inset-0', 'italic',
38
+ 'items-baseline', 'items-center', 'items-start', 'items-stretch', 'justify-between', 'justify-center',
39
+ 'justify-end', 'justify-start', 'last:border-b-0', 'leading-none', 'leading-relaxed', 'leading-snug',
40
+ 'leading-tight', 'left-0.5', 'lg:flex-initial', 'lg:min-w-[180px]', 'lg:min-w-[220px]', 'line-clamp-2',
41
+ 'line-clamp-3', 'list-none', 'm-0', 'max-h-[88vh]', 'max-w-[180px]', 'max-w-[240px]',
42
+ 'max-w-[280px]', 'max-w-[320px]', 'max-w-[340px]', 'max-w-[380px]', 'mb-1', 'mb-2',
43
+ 'mb-2.5', 'mb-3', 'mb-4', 'md:basis-auto', 'md:flex-1', 'md:max-w-[420px]',
44
+ 'md:min-w-[260px]', 'min-h-0', 'min-h-11', 'min-h-[34px]', 'min-w-0', 'min-w-[140px]',
42
45
  'min-w-[160px]', 'min-w-[168px]', 'min-w-[180px]', 'min-w-[200px]', 'min-w-[240px]', 'ml-1',
43
46
  'ml-2', 'mr-1', 'mr-2', 'mr-2.5', 'ms', 'ms-auto',
44
47
  'mt-0', 'mt-0.5', 'mt-1', 'mt-1.5', 'mt-2', 'mt-3',
45
- 'mt-px', 'my-1', 'object-cover', 'opacity-0', 'opacity-20', 'opacity-30',
46
- 'opacity-40', 'opacity-45', 'opacity-50', 'opacity-55', 'opacity-60', 'opacity-70',
47
- 'outline-none', 'overflow-hidden', 'overflow-y-auto', 'p-0', 'p-3.5', 'p-5',
48
- 'pa-2', 'pa-3', 'pb-0', 'pb-1', 'pb-10', 'pb-2',
49
- 'pb-5', 'pb-6', 'pl-1', 'pointer-events-none', 'position-relative', 'pr-1',
50
- 'pr-1.5', 'pt-1', 'pt-1.5', 'pt-2', 'pt-3', 'pt-5',
51
- 'px', 'px-0', 'px-1.5', 'px-15', 'px-2', 'px-3',
52
- 'px-3.5', 'px-4', 'px-5', 'px-5.5', 'px-6', 'py-0',
53
- 'py-0.5', 'py-1', 'py-1.5', 'py-2', 'py-2.5', 'py-3',
54
- 'py-4', 'py-5', 'py-6', 'py-7', 'relative', 'resize',
55
- 'resize-y', 'right-0', 'rounded', 'rounded-2xl', 'rounded-[10px]', 'rounded-[12px]',
56
- 'rounded-[20px]', 'rounded-full', 'rounded-xl', 'select-none', 'shadow', 'shadow-sm',
48
+ 'mt-px', 'my-1', 'my-1.5', 'object-cover', 'opacity-0', 'opacity-20',
49
+ 'opacity-30', 'opacity-40', 'opacity-45', 'opacity-50', 'opacity-55', 'opacity-60',
50
+ 'opacity-70', 'opacity-80', 'outline-none', 'overflow-hidden', 'overflow-y-auto', 'p-0',
51
+ 'p-3.5', 'p-5', 'pa-2', 'pa-3', 'pa-4', 'pb-0',
52
+ 'pb-1', 'pb-10', 'pb-2', 'pb-5', 'pb-6', 'pl-1',
53
+ 'pointer-events-none', 'position-relative', 'pr-1', 'pr-1.5', 'pt-1', 'pt-1.5',
54
+ 'pt-2', 'pt-3', 'pt-5', 'px', 'px-0', 'px-1.5',
55
+ 'px-15', 'px-2', 'px-2.5', 'px-3', 'px-3.5', 'px-4',
56
+ 'px-5', 'px-5.5', 'px-6', 'py-0', 'py-0.5', 'py-1',
57
+ 'py-1.5', 'py-2', 'py-2.5', 'py-3', 'py-4', 'py-5',
58
+ 'py-6', 'py-7', 'py-8', 'relative', 'resize', 'resize-y',
59
+ 'right-0', 'rounded', 'rounded-2xl', 'rounded-[10px]', 'rounded-[12px]', 'rounded-[20px]',
60
+ 'rounded-full', 'rounded-lg', 'rounded-xl', 'select-none', 'shadow', 'shadow-sm',
57
61
  'shrink-0', 'sm:grid-cols-2', 'sm:grid-cols-[auto_minmax(0,1fr)_minmax(0,1fr)_auto]', 'table', 'tabular-nums', 'text-[10px]',
58
- 'text-[11.5px]', 'text-[11px]', 'text-[12.5px]', 'text-[13.5px]', 'text-[13px]', 'text-black',
59
- 'text-body', 'text-center', 'text-error', 'text-heading', 'text-left', 'text-lg',
60
- 'text-muted', 'text-primary', 'text-sm', 'text-success', 'text-truncate', 'text-warning',
61
- 'text-warning-emphasis', 'text-white', 'text-white/45', 'text-wrap', 'text-xs', 'top-0.5',
62
- 'tracking-[0.16em]', 'transform', 'transition-[border-color]', 'transition-all', 'transition-colors', 'transition-opacity',
63
- 'transition-transform', 'translate-x-0', 'translate-x-4', 'translate-y-4', 'truncate', 'uppercase',
64
- 'w-2', 'w-4', 'w-[18px]', 'w-[34%]', 'w-[38px]', 'w-full',
65
- 'whitespace-normal', 'whitespace-nowrap',
62
+ 'text-[11.5px]', 'text-[11px]', 'text-[12.5px]', 'text-[12px]', 'text-[13.5px]', 'text-[13px]',
63
+ 'text-black', 'text-body', 'text-center', 'text-error', 'text-heading', 'text-info',
64
+ 'text-left', 'text-lg', 'text-muted', 'text-primary', 'text-sm', 'text-success',
65
+ 'text-truncate', 'text-warning', 'text-warning-emphasis', 'text-white', 'text-white/45', 'text-wrap',
66
+ 'text-xs', 'top-0.5', 'tracking-[0.16em]', 'transform', 'transition-[border-color]', 'transition-all',
67
+ 'transition-colors', 'transition-opacity', 'transition-transform', 'translate-x-0', 'translate-x-4', 'translate-y-4',
68
+ 'truncate', 'uppercase', 'w-2', 'w-4', 'w-8', 'w-9',
69
+ 'w-[18px]', 'w-[34%]', 'w-[38px]', 'w-[60px]', 'w-full', 'whitespace-normal',
70
+ 'whitespace-nowrap',
66
71
  ]
@@ -115,7 +115,6 @@ export const antShortcuts: [string, string][] = [
115
115
  // variant is unreadable everywhere it links.
116
116
  ['ant-cta', 'h-[34px] px-3.5 inline-flex items-center gap-1.5 rounded-lg text-[14px] font-medium whitespace-nowrap cursor-pointer border-0 no-underline [font-family:inherit]'],
117
117
  ['ant-cta--flat', 'bg-primary !text-white hover:brightness-[0.96]'],
118
- ['ant-cta--outlined', 'bg-transparent !text-primary border border-[rgba(18,92,255,0.5)] hover:bg-[rgba(18,92,255,0.06)]'],
119
118
  ['ant-cta--tonal', 'bg-[rgba(18,92,255,0.10)] !text-primary hover:bg-[rgba(18,92,255,0.14)]'],
120
119
  ['ant-cta--ghost', 'bg-transparent !text-primary hover:bg-[rgba(18,92,255,0.08)]'],
121
120
 
@@ -196,7 +195,6 @@ export const antShortcuts: [string, string][] = [
196
195
  ['ant-tab-tray', 'inline-flex items-center p-1 rounded-[10px] bg-ant-inset border border-ant'],
197
196
  ['ant-tab-pill', 'h-9 px-3.5 mx-0.5 inline-flex items-center gap-2 rounded-lg bg-transparent border-0 [font-family:inherit] text-sm text-muted cursor-pointer ant-hover-transition hover:text-body'],
198
197
  ['ant-tab-pill--active', 'bg-ant-surface !text-heading font-medium shadow-[0_1px_2px_rgba(0,0,0,0.05)]'],
199
- ['ant-tab-badge', 'min-w-5 h-5 px-1.5 rounded-[10px] bg-[rgba(var(--v-theme-on-surface),0.10)] text-body font-mono text-xs font-semibold leading-none inline-flex items-center justify-center'],
200
198
 
201
199
  // Two more CTA variants. Neutral is the secondary action that makes no colour
202
200
  // claim; danger states its consequence without filling, because a filled red
@@ -204,7 +202,6 @@ export const antShortcuts: [string, string][] = [
204
202
  //
205
203
  // ⚠️ `!border-solid` and the explicit width beat `ant-cta`'s own `border-0` for the
206
204
  // same source-order reason as the active tab pill.
207
- ['ant-cta--neutral', 'bg-transparent !text-heading !border-1 !border-solid border-ant hover:bg-ant-hover'],
208
205
  ['ant-cta--danger', 'bg-transparent !text-error !border-1 !border-solid !border-error/40 hover:bg-error/6'],
209
206
 
210
207
  // ── The lens rail (AAD-980) ─────────────────────────────────────────────
@@ -47,6 +47,9 @@ export interface MockAppContext {
47
47
  }
48
48
  connect: Record<string, any>
49
49
  request: MockFn
50
+ deprecatedRequest: MockFn
51
+ /** Resolves every file as `done` at once; override per test for errors or cancels. */
52
+ uploadDmsFiles: MockFn
50
53
  appState: Ref<string>
51
54
  unsubscribe: () => void
52
55
  }
@@ -170,6 +173,12 @@ export function createMockAppContext(overrides?: {
170
173
  },
171
174
  connect: createMockConnect(overrides?.connect),
172
175
  request: vi.fn().mockResolvedValue(undefined),
176
+ deprecatedRequest: vi.fn().mockResolvedValue(undefined),
177
+ uploadDmsFiles: vi.fn((files: File[]) => ({
178
+ done: Promise.resolve(files.map((file, index) => ({ index, filename: file.name, status: 'done' }))),
179
+ mode: Promise.resolve('host'),
180
+ cancel: vi.fn(),
181
+ })),
173
182
  appState: ref(''),
174
183
  unsubscribe: () => {},
175
184
  }
@@ -43,6 +43,8 @@ export function createAntVitestConfig(appRoot: string | URL, overrides: Record<s
43
43
  test: {
44
44
  globals: true,
45
45
  environment: 'happy-dom',
46
+ // Reuse transformed modules across runs — transform is most of a cold run.
47
+ fsModuleCache: true,
46
48
  environmentOptions: {
47
49
  happyDOM: {
48
50
  settings: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@antcde/component-library",
3
3
  "type": "module",
4
- "version": "0.1.31-rc.1",
4
+ "version": "0.1.31-rc.10",
5
5
  "description": "Helper to use ant components in Vue 3",
6
6
  "author": "CollaborAll",
7
7
  "exports": {
@@ -208,8 +208,8 @@
208
208
  "vue-i18n": "^11.4.12"
209
209
  },
210
210
  "devDependencies": {
211
- "@antcde/connect-ts": "0.4.33-rc.1",
212
- "@antcde/vue-utils": "0.2.28-rc.1",
211
+ "@antcde/connect-ts": "0.4.33-rc.10",
212
+ "@antcde/vue-utils": "0.2.28-rc.10",
213
213
  "@iconify-json/mdi": "^1.2.3",
214
214
  "@iconify/vue": "^5.0.3",
215
215
  "@intlify/unplugin-vue-i18n": "^11.2.5",