@antcde/component-library 0.1.30 → 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 (57) hide show
  1. package/dist/build/uno.safelist.d.ts +1 -1
  2. package/dist/build/uno.safelist.js +58 -43
  3. package/dist/build/uno.shortcuts.js +0 -3
  4. package/dist/index.js +12145 -9159
  5. package/dist/test/vitest.js +2 -0
  6. package/dist/types/components/AntNoticeAlert.vue.d.ts +24 -0
  7. package/dist/types/components/BaseAppCard/_BaseAppCardHint.vue.d.ts +1 -0
  8. package/dist/types/components/BaseAppCard/index.vue.d.ts +1 -0
  9. package/dist/types/components/BaseConfirmDialog.vue.d.ts +4 -4
  10. package/dist/types/components/BaseDialog.vue.d.ts +3 -3
  11. package/dist/types/components/ScriptTrigger/AntDatasetFileSource.vue.d.ts +21 -0
  12. package/dist/types/components/ScriptTrigger/AntDatasetTableSource.vue.d.ts +16 -0
  13. package/dist/types/components/ScriptTrigger/AntPayloadFieldsEditor.vue.d.ts +13 -0
  14. package/dist/types/components/ScriptTrigger/AntRunScriptFields.vue.d.ts +32 -0
  15. package/dist/types/components/ScriptTrigger/AntTransformScriptFields.vue.d.ts +19 -0
  16. package/dist/types/components/ScriptTrigger/AntTriggerExecutionUser.vue.d.ts +10 -0
  17. package/dist/types/components/ScriptTrigger/_DatasetFileColumnList.vue.d.ts +8 -0
  18. package/dist/types/components/ScriptTrigger/_ScriptVersionPicker.vue.d.ts +10 -0
  19. package/dist/types/components/ScriptTrigger/composables/useDatasetColumnMapping.d.ts +43 -0
  20. package/dist/types/components/ScriptTrigger/composables/useDatasetFileColumns.d.ts +51 -0
  21. package/dist/types/components/ScriptTrigger/composables/useDatasetFileProposal.d.ts +96 -0
  22. package/dist/types/components/ScriptTrigger/composables/useFieldIssue.d.ts +16 -0
  23. package/dist/types/components/ScriptTrigger/composables/useScriptSelection.d.ts +68 -0
  24. package/dist/types/components/ScriptTrigger/composables/useTableColumns.d.ts +30 -0
  25. package/dist/types/components/ScriptTrigger/composables/useTableSelection.d.ts +227 -0
  26. package/dist/types/components/ScriptTrigger/context.d.ts +459 -0
  27. package/dist/types/components/ScriptTrigger/messages/de.json.d.ts +151 -0
  28. package/dist/types/components/ScriptTrigger/messages/en.json.d.ts +151 -0
  29. package/dist/types/components/ScriptTrigger/messages/nl.json.d.ts +151 -0
  30. package/dist/types/components/ScriptTrigger/utils/payloadFields.d.ts +6 -0
  31. package/dist/types/components/ScriptTrigger/utils/triggerDataset.d.ts +4 -0
  32. package/dist/types/components/ScriptTrigger/utils/withSavedOption.d.ts +7 -0
  33. package/dist/types/components/TasksFlow/composables/useEdgeConditionTables.d.ts +6 -0
  34. package/dist/types/components/Usage/ResourceTrash.vue.d.ts +8 -0
  35. package/dist/types/components/Usage/UsageActions.vue.d.ts +21 -0
  36. package/dist/types/components/Usage/UsagePanel.vue.d.ts +8 -0
  37. package/dist/types/components/Usage/_EmptyTrashBar.vue.d.ts +8 -0
  38. package/dist/types/components/Usage/_PurgeConfirmDialog.vue.d.ts +25 -0
  39. package/dist/types/components/Usage/_UsageCarbon.vue.d.ts +9 -0
  40. package/dist/types/components/Usage/_UsageClassRow.vue.d.ts +22 -0
  41. package/dist/types/components/Usage/formatBytes.d.ts +2 -0
  42. package/dist/types/components/Usage/usageMessages.d.ts +188 -0
  43. package/dist/types/components/Usage/useResourceTrash.d.ts +39 -0
  44. package/dist/types/components/Usage/useResourceUsage.d.ts +34 -0
  45. package/dist/types/components/Usage/useShowUsageSizes.d.ts +1 -0
  46. package/dist/types/components/Usage/useUsageJob.d.ts +4 -0
  47. package/dist/types/components/form/AntFilterSelect.vue.d.ts +2 -0
  48. package/dist/types/components/form/AntRadioCards.vue.d.ts +1 -0
  49. package/dist/types/components/form/AntSelect.vue.d.ts +4 -0
  50. package/dist/types/components/form/useMenuSearch.d.ts +12 -0
  51. package/dist/types/index.d.ts +308 -17
  52. package/lib/build/genSafelist.mjs +9 -2
  53. package/lib/build/uno.safelist.ts +58 -43
  54. package/lib/build/uno.shortcuts.ts +0 -3
  55. package/lib/test/createMockAppContext.ts +9 -0
  56. package/lib/test/vitest.ts +2 -0
  57. package/package.json +3 -3
@@ -4,7 +4,7 @@
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
- * 265 classes, from 974 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 declare const libraryClassSafelist: string[];
@@ -4,53 +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
- * 265 classes, from 974 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 = [
11
11
  'absolute', 'align-middle', 'align-start', 'ant-cat-chip', 'ant-check', 'ant-check--on',
12
- 'ant-field-label', 'ant-hint-banner', 'ant-icon-button', 'ant-option-row', 'ant-option-row--on', 'ant-pill',
13
- 'ant-pill--sm', 'ant-pill-input', 'ant-pill-input--button', 'ant-pill-menu', 'ant-pill-menu__item', 'ant-pill-menu__item--active',
14
- 'ant-radio', 'ant-radio--on', 'ant-radio__dot', 'ant-save-bar', 'ant-section__header', 'basis-full',
15
- 'bg-ant-inset', 'bg-ant-panel', 'bg-ant-surface', 'bg-error', 'bg-primary', 'bg-primary/4',
16
- 'bg-primary/5', 'bg-success', 'bg-transparent', 'bg-warning', 'bg-white', 'bg-white/12',
17
- 'block', 'border', 'border-0', 'border-2', 'border-ant', 'border-b',
18
- 'border-error', 'border-none', 'border-opacity-50', 'border-primary', 'border-t', 'border-white/20',
19
- 'bottom-0', 'capitalize', 'cursor-help', 'cursor-not-allowed', 'cursor-pointer', 'disabled:cursor-not-allowed',
20
- 'disabled:hover:bg-transparent', 'disabled:opacity-50', 'duration-150', 'duration-200', 'ease-in', 'ease-out',
21
- 'flex', 'flex-1', 'flex-col', 'flex-grow-1', 'flex-shrink-0', 'flex-wrap',
22
- 'focus-visible:border-primary', 'focus-visible:opacity-100', 'focus-visible:outline-2', 'focus-visible:outline-offset-2', 'focus-visible:outline-primary', 'focus-within:border-primary',
23
- 'focus:border-error', 'focus:border-primary', 'focus:outline-none', 'focus:ring-error/10', 'focus:ring-primary/10', 'font-[inherit]',
24
- 'font-medium', 'font-mono', 'font-normal', 'font-semibold', 'gap-0.5', 'gap-1',
25
- 'gap-1.5', 'gap-2', 'gap-3', 'gap-8', 'gap-[5px]', 'gap-[6px]',
26
- 'gap-x-2', 'gap-y-1', 'grid', 'group-hover:bg-primary/4', 'group-hover:border-primary/60', 'h-11',
27
- 'h-2', 'h-4', 'h-7', 'h-8', 'h-[18px]', 'h-[22px]',
28
- 'h-full', 'hover:bg-ant-hover', 'hover:bg-primary/6', 'hover:bg-primary/8', 'hover:bg-white/10', 'hover:opacity-100',
29
- 'inline-block', 'inline-flex', 'items-baseline', 'items-center', 'items-start', 'justify-between',
30
- 'justify-center', 'justify-end', 'justify-start', 'last:border-b-0', 'leading-none', 'leading-relaxed',
31
- 'leading-snug', 'leading-tight', 'left-0.5', 'lg:flex-initial', 'lg:min-w-[220px]', 'm-0',
32
- 'max-h-[88vh]', 'max-w-[180px]', 'max-w-[240px]', 'mb-1', 'mb-2', 'mb-2.5',
33
- 'mb-3', 'mb-4', 'md:basis-auto', 'md:flex-1', 'md:max-w-[420px]', 'md:min-w-[260px]',
34
- 'min-h-11', 'min-w-0', 'min-w-[140px]', 'min-w-[168px]', 'min-w-[180px]', 'min-w-[200px]',
35
- 'min-w-[240px]', 'ml-1', 'ml-2', 'mr-1', 'mr-2', 'mr-2.5',
36
- 'ms-auto', 'mt-0.5', 'mt-1', 'mt-1.5', 'mt-2', 'mt-3',
37
- 'mt-px', 'my-1', 'object-cover', 'opacity-0', 'opacity-20', 'opacity-30',
38
- 'opacity-40', 'opacity-45', 'opacity-50', 'opacity-55', 'opacity-60', 'opacity-70',
39
- 'outline-none', 'overflow-hidden', 'overflow-y-auto', 'p-0', 'p-3.5', 'pa-2',
40
- 'pa-3', 'pb-0', 'pb-1', 'pb-2', 'pb-5', 'pl-1',
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',
20
+ 'bg-warning/8', 'bg-white', 'bg-white/12', 'block', 'blur', 'border',
21
+ 'border-0', 'border-2', 'border-ant', 'border-b', 'border-dashed', 'border-error',
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]',
45
+ 'min-w-[160px]', 'min-w-[168px]', 'min-w-[180px]', 'min-w-[200px]', 'min-w-[240px]', 'ml-1',
46
+ 'ml-2', 'mr-1', 'mr-2', 'mr-2.5', 'ms', 'ms-auto',
47
+ 'mt-0', 'mt-0.5', 'mt-1', 'mt-1.5', 'mt-2', 'mt-3',
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',
41
53
  'pointer-events-none', 'position-relative', 'pr-1', 'pr-1.5', 'pt-1', 'pt-1.5',
42
- 'pt-2', 'pt-3', 'pt-5', 'px-0', 'px-1.5', 'px-15',
43
- 'px-2', 'px-3', 'px-3.5', 'px-4', 'px-5', 'px-5.5',
44
- 'py-0', 'py-0.5', 'py-1', 'py-1.5', 'py-2', 'py-2.5',
45
- 'py-3', 'py-4', 'py-5', 'py-6', 'relative', 'resize-y',
46
- 'right-0', 'rounded', 'rounded-2xl', 'rounded-[12px]', 'rounded-[20px]', 'rounded-full',
47
- 'rounded-xl', 'select-none', 'shadow', 'shadow-sm', 'shrink-0', 'sm:grid-cols-[auto_minmax(0,1fr)_minmax(0,1fr)_auto]',
48
- 'tabular-nums', 'text-[10px]', 'text-[11.5px]', 'text-[11px]', 'text-[12.5px]', 'text-[13.5px]',
49
- 'text-[13px]', 'text-black', 'text-body', 'text-center', 'text-error', 'text-heading',
50
- 'text-left', 'text-lg', 'text-muted', 'text-primary', 'text-sm', 'text-truncate',
51
- 'text-warning', 'text-warning-emphasis', 'text-white', 'text-white/45', 'text-wrap', 'text-xs',
52
- 'top-0.5', 'tracking-[0.16em]', 'transition-[border-color]', 'transition-all', 'transition-colors', 'transition-opacity',
53
- 'transition-transform', 'translate-x-0', 'translate-x-4', 'translate-y-4', 'truncate', 'uppercase',
54
- 'w-2', 'w-4', 'w-[18px]', 'w-[38px]', 'w-full', 'whitespace-normal',
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',
61
+ 'shrink-0', 'sm:grid-cols-2', 'sm:grid-cols-[auto_minmax(0,1fr)_minmax(0,1fr)_auto]', 'table', 'tabular-nums', 'text-[10px]',
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',
55
70
  'whitespace-nowrap',
56
71
  ];
@@ -107,7 +107,6 @@ export const antShortcuts = [
107
107
  // variant is unreadable everywhere it links.
108
108
  ['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]'],
109
109
  ['ant-cta--flat', 'bg-primary !text-white hover:brightness-[0.96]'],
110
- ['ant-cta--outlined', 'bg-transparent !text-primary border border-[rgba(18,92,255,0.5)] hover:bg-[rgba(18,92,255,0.06)]'],
111
110
  ['ant-cta--tonal', 'bg-[rgba(18,92,255,0.10)] !text-primary hover:bg-[rgba(18,92,255,0.14)]'],
112
111
  ['ant-cta--ghost', 'bg-transparent !text-primary hover:bg-[rgba(18,92,255,0.08)]'],
113
112
  // Neutral secondary button — same 34px geometry as a CTA, no colour claim.
@@ -175,14 +174,12 @@ export const antShortcuts = [
175
174
  ['ant-tab-tray', 'inline-flex items-center p-1 rounded-[10px] bg-ant-inset border border-ant'],
176
175
  ['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'],
177
176
  ['ant-tab-pill--active', 'bg-ant-surface !text-heading font-medium shadow-[0_1px_2px_rgba(0,0,0,0.05)]'],
178
- ['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'],
179
177
  // Two more CTA variants. Neutral is the secondary action that makes no colour
180
178
  // claim; danger states its consequence without filling, because a filled red
181
179
  // button reads as the primary path.
182
180
  //
183
181
  // ⚠️ `!border-solid` and the explicit width beat `ant-cta`'s own `border-0` for the
184
182
  // same source-order reason as the active tab pill.
185
- ['ant-cta--neutral', 'bg-transparent !text-heading !border-1 !border-solid border-ant hover:bg-ant-hover'],
186
183
  ['ant-cta--danger', 'bg-transparent !text-error !border-1 !border-solid !border-error/40 hover:bg-error/6'],
187
184
  // ── The lens rail (AAD-980) ─────────────────────────────────────────────
188
185
  //