@antcde/component-library 0.1.37 → 0.1.38-rc.2

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 (44) hide show
  1. package/dist/build/uno.safelist.d.ts +1 -1
  2. package/dist/build/uno.safelist.js +20 -20
  3. package/dist/index.js +8172 -7915
  4. package/dist/types/components/AntBottomSheet/index.vue.d.ts +9 -7
  5. package/dist/types/components/AntNoticeAlert.vue.d.ts +5 -3
  6. package/dist/types/components/AntTourZone/index.vue.d.ts +5 -3
  7. package/dist/types/components/BaseAntCard.vue.d.ts +9 -7
  8. package/dist/types/components/BaseAntInput.vue.d.ts +7 -5
  9. package/dist/types/components/BaseAppCard/_BaseAppCardMedia.vue.d.ts +7 -5
  10. package/dist/types/components/BaseAppCard/index.vue.d.ts +7 -5
  11. package/dist/types/components/BaseConfirmDialog.vue.d.ts +5 -3
  12. package/dist/types/components/BaseDeleteDialog.vue.d.ts +11 -9
  13. package/dist/types/components/BaseDialog.vue.d.ts +5 -3
  14. package/dist/types/components/BaseLimitedButton.vue.d.ts +6 -4
  15. package/dist/types/components/BaseResizePanel.vue.d.ts +5 -3
  16. package/dist/types/components/BulkLabelsMenu.vue.d.ts +8 -6
  17. package/dist/types/components/DmsFilePicker/composables/usePickerNavigation.d.ts +92 -0
  18. package/dist/types/components/FilePreviewContent/index.vue.d.ts +8 -6
  19. package/dist/types/components/ProjectNumber/AntProjectNumberHelp.vue.d.ts +22 -0
  20. package/dist/types/components/ProjectNumber/__tests__/useProjectNumber.spec.d.ts +1 -0
  21. package/dist/types/components/ProjectNumber/useProjectNumber.d.ts +48 -0
  22. package/dist/types/components/ScriptTrigger/composables/useTableSelection.d.ts +8 -0
  23. package/dist/types/components/TasksFlow/components/_dropzoneBackground.vue.d.ts +5 -3
  24. package/dist/types/components/TasksFlow/components/nodes/_DurationEditor.vue.d.ts +8 -6
  25. package/dist/types/components/TasksFlow/components/nodes/_UserPicker.vue.d.ts +7 -5
  26. package/dist/types/components/TasksFlow/composables/useEdgeConditionTables.d.ts +8 -0
  27. package/dist/types/components/UnifiedWindow/index.vue.d.ts +9 -7
  28. package/dist/types/components/Usage/_UsageClassRow.vue.d.ts +5 -3
  29. package/dist/types/components/_BaseAntInputField.vue.d.ts +5 -3
  30. package/dist/types/components/_BaseAntInputLabel.vue.d.ts +5 -3
  31. package/dist/types/components/form/AntDialogShell.vue.d.ts +21 -13
  32. package/dist/types/components/form/AntField.vue.d.ts +7 -5
  33. package/dist/types/components/form/AntHintBanner.vue.d.ts +5 -3
  34. package/dist/types/components/form/AntInput.vue.d.ts +5 -3
  35. package/dist/types/components/form/AntPanelSection.vue.d.ts +7 -5
  36. package/dist/types/components/form/AntScopePanel.vue.d.ts +7 -5
  37. package/dist/types/components/form/AntSectionCard.vue.d.ts +11 -9
  38. package/dist/types/components/form/AntStatusPill.vue.d.ts +5 -3
  39. package/dist/types/deprecated.d.ts +3 -3
  40. package/dist/types/index.d.ts +4 -1
  41. package/lib/build/uno.safelist.ts +20 -20
  42. package/lib/test/createMockAppContext.ts +16 -0
  43. package/lib/test/mountWithContext.ts +1 -1
  44. package/package.json +19 -19
@@ -24,14 +24,16 @@ type __VLS_ModelProps = {
24
24
  'detent'?: SheetDetent | undefined;
25
25
  };
26
26
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
27
- declare var __VLS_13: {}, __VLS_15: {}, __VLS_17: {};
28
- type __VLS_Slots = {} & {
29
- header?: (props: typeof __VLS_13) => any;
30
- } & {
31
- default?: (props: typeof __VLS_15) => any;
32
- } & {
33
- footer?: (props: typeof __VLS_17) => any;
27
+ declare const __VLS_template: () => {
28
+ __VLS_Slots: {
29
+ header?: (props: {}) => any;
30
+ } & {
31
+ default?: (props: {}) => any;
32
+ } & {
33
+ footer?: (props: {}) => any;
34
+ };
34
35
  };
36
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
35
37
  declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
36
38
  snapTo: (d: SheetDetent) => void;
37
39
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -4,10 +4,12 @@ type __VLS_Props = {
4
4
  body?: string | null;
5
5
  icon?: string | false;
6
6
  };
7
- declare var __VLS_7: {};
8
- type __VLS_Slots = {} & {
9
- action?: (props: typeof __VLS_7) => any;
7
+ declare const __VLS_template: () => {
8
+ __VLS_Slots: {
9
+ action?: (props: {}) => any;
10
+ };
10
11
  };
12
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
11
13
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
14
  type: "error" | "warning" | "info" | "success";
13
15
  body: string | null;
@@ -21,10 +21,12 @@ type __VLS_Props = {
21
21
  */
22
22
  enabled?: boolean;
23
23
  };
24
- declare var __VLS_1: {};
25
- type __VLS_Slots = {} & {
26
- default?: (props: typeof __VLS_1) => any;
24
+ declare const __VLS_template: () => {
25
+ __VLS_Slots: {
26
+ default?: (props: {}) => any;
27
+ };
27
28
  };
29
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
28
30
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
29
31
  placement: "top" | "bottom" | "left" | "right";
30
32
  radius: string;
@@ -4,14 +4,16 @@ type __VLS_Props = {
4
4
  header?: boolean;
5
5
  footer?: boolean;
6
6
  };
7
- declare var __VLS_1: {}, __VLS_8: {}, __VLS_15: {};
8
- type __VLS_Slots = {} & {
9
- title?: (props: typeof __VLS_1) => any;
10
- } & {
11
- content?: (props: typeof __VLS_8) => any;
12
- } & {
13
- actions?: (props: typeof __VLS_15) => any;
7
+ declare const __VLS_template: () => {
8
+ __VLS_Slots: {
9
+ title?: (props: {}) => any;
10
+ } & {
11
+ content?: (props: {}) => any;
12
+ } & {
13
+ actions?: (props: {}) => any;
14
+ };
14
15
  };
16
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
15
17
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
16
18
  width: number;
17
19
  transparent: boolean;
@@ -4,12 +4,14 @@ type __VLS_ModelProps = {
4
4
  modelValue?: any;
5
5
  };
6
6
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
- declare var __VLS_8: {}, __VLS_23: {};
8
- type __VLS_Slots = {} & {
9
- 'label-append'?: (props: typeof __VLS_8) => any;
10
- } & {
11
- input?: (props: typeof __VLS_23) => any;
7
+ declare const __VLS_template: () => {
8
+ __VLS_Slots: {
9
+ 'label-append'?: (props: {}) => any;
10
+ } & {
11
+ input?: (props: {}) => any;
12
+ };
12
13
  };
14
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
13
15
  declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
16
  "update:modelValue": (value: any) => any;
15
17
  } & {
@@ -6,12 +6,14 @@ type __VLS_Props = {
6
6
  showLoadingIndicator?: boolean;
7
7
  isLoading?: boolean;
8
8
  };
9
- declare var __VLS_16: {
10
- foregroundColor: string;
11
- };
12
- type __VLS_Slots = {} & {
13
- 'bottom-right'?: (props: typeof __VLS_16) => any;
9
+ declare const __VLS_template: () => {
10
+ __VLS_Slots: {
11
+ 'bottom-right'?: (props: {
12
+ foregroundColor: string;
13
+ }) => any;
14
+ };
14
15
  };
16
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
15
17
  declare const __VLS_base: 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>;
16
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
19
  declare const _default: typeof __VLS_export;
@@ -50,12 +50,14 @@ type __VLS_Props = {
50
50
  */
51
51
  updatable?: boolean;
52
52
  };
53
- declare var __VLS_23: {
54
- foregroundColor: string;
55
- };
56
- type __VLS_Slots = {} & {
57
- 'bottom-right'?: (props: typeof __VLS_23) => any;
53
+ declare const __VLS_template: () => {
54
+ __VLS_Slots: {
55
+ 'bottom-right'?: (props: {
56
+ foregroundColor: string;
57
+ }) => any;
58
+ };
58
59
  };
60
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
59
61
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
60
62
  update: (app: AppLike) => any;
61
63
  clicked: (app: AppLike) => any;
@@ -5,10 +5,12 @@ type __VLS_Props = {
5
5
  icon?: string;
6
6
  confirmTitle?: string | null;
7
7
  };
8
- declare var __VLS_27: {};
9
- type __VLS_Slots = {} & {
10
- content?: (props: typeof __VLS_27) => any;
8
+ declare const __VLS_template: () => {
9
+ __VLS_Slots: {
10
+ content?: (props: {}) => any;
11
+ };
11
12
  };
13
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
12
14
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
15
  close: () => any;
14
16
  action: () => any;
@@ -14,16 +14,18 @@ type __VLS_ModelProps = {
14
14
  modelValue: boolean;
15
15
  };
16
16
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
17
- declare var __VLS_11: {
18
- props: any;
19
- }, __VLS_41: {}, __VLS_43: {};
20
- type __VLS_Slots = {} & {
21
- activator?: (props: typeof __VLS_11) => any;
22
- } & {
23
- title?: (props: typeof __VLS_41) => any;
24
- } & {
25
- content?: (props: typeof __VLS_43) => any;
17
+ declare const __VLS_template: () => {
18
+ __VLS_Slots: {
19
+ activator?: (props: {
20
+ props: any;
21
+ }) => any;
22
+ } & {
23
+ title?: (props: {}) => any;
24
+ } & {
25
+ content?: (props: {}) => any;
26
+ };
26
27
  };
28
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
27
29
  declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
30
  "update:modelValue": (value: boolean) => any;
29
31
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
@@ -9,10 +9,12 @@ export interface Props {
9
9
  cancelText?: string;
10
10
  confirmText?: string;
11
11
  }
12
- declare var __VLS_27: {};
13
- type __VLS_Slots = {} & {
14
- content?: (props: typeof __VLS_27) => any;
12
+ declare const __VLS_template: () => {
13
+ __VLS_Slots: {
14
+ content?: (props: {}) => any;
15
+ };
15
16
  };
17
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
16
18
  declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
19
  close: () => any;
18
20
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
@@ -14,10 +14,12 @@ type __VLS_Props = {
14
14
  /** Icon to show before button text */
15
15
  prependIcon?: string;
16
16
  };
17
- declare var __VLS_16: {};
18
- type __VLS_Slots = {} & {
19
- default?: (props: typeof __VLS_16) => any;
17
+ declare const __VLS_template: () => {
18
+ __VLS_Slots: {
19
+ default?: (props: {}) => any;
20
+ };
20
21
  };
22
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
21
23
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
24
  click: (event: MouseEvent) => any;
23
25
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
@@ -26,7 +28,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
26
28
  size: "default" | "small" | "x-large" | "large" | "x-small";
27
29
  color: string;
28
30
  prependIcon: string;
29
- variant: "text" | "flat" | "plain" | "tonal" | "elevated" | "outlined";
31
+ variant: "text" | "flat" | "plain" | "tonal" | "outlined" | "elevated";
30
32
  limited: boolean;
31
33
  tooltip: string;
32
34
  tooltipMaxWidth: string | number;
@@ -9,10 +9,12 @@ type __VLS_Props = {
9
9
  side?: ResizePanelSide;
10
10
  collapsible?: boolean;
11
11
  };
12
- declare var __VLS_19: {};
13
- type __VLS_Slots = {} & {
14
- default?: (props: typeof __VLS_19) => any;
12
+ declare const __VLS_template: () => {
13
+ __VLS_Slots: {
14
+ default?: (props: {}) => any;
15
+ };
15
16
  };
17
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
16
18
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
19
  resize: (...args: any[]) => void;
18
20
  "resize-end": (...args: any[]) => void;
@@ -5,13 +5,15 @@ type __VLS_Props = {
5
5
  isAttaching?: boolean;
6
6
  isRemoving?: boolean;
7
7
  };
8
- declare var __VLS_8: {
9
- props: any;
10
- isOpen: boolean;
11
- };
12
- type __VLS_Slots = {} & {
13
- activator?: (props: typeof __VLS_8) => any;
8
+ declare const __VLS_template: () => {
9
+ __VLS_Slots: {
10
+ activator?: (props: {
11
+ props: any;
12
+ isOpen: boolean;
13
+ }) => any;
14
+ };
14
15
  };
16
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
15
17
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
18
  attachLabel: (labelId: string) => any;
17
19
  removeAll: () => any;
@@ -47,6 +47,11 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
47
47
  created_at?: string | undefined;
48
48
  updated_at?: string | undefined;
49
49
  is_direct_permission?: boolean | undefined;
50
+ pivot?: {
51
+ role_id: string;
52
+ permission_id: string;
53
+ conditions: import('@antcde/connect-ts').RowRuleBranch[] | null;
54
+ } | undefined;
50
55
  }[] | undefined;
51
56
  users?: {
52
57
  id: string;
@@ -66,6 +71,7 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
66
71
  reseller?: {
67
72
  license_id: string;
68
73
  name: string;
74
+ contact_email?: string | null | undefined;
69
75
  } | null | undefined;
70
76
  is_reseller?: boolean | undefined;
71
77
  access_revoked_at?: string | null | undefined;
@@ -132,6 +138,23 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
132
138
  };
133
139
  };
134
140
  } | null | undefined;
141
+ legal?: {
142
+ required: {
143
+ id: string;
144
+ key: string;
145
+ version: string;
146
+ locale: string;
147
+ title: string;
148
+ context: import('@antcde/connect-ts').LegalContext;
149
+ plans: string[];
150
+ audience: import('@antcde/connect-ts').LegalAudience;
151
+ needs_acceptance: boolean;
152
+ effective_at: string | null;
153
+ published_at: string | null;
154
+ pdf_url: string;
155
+ }[];
156
+ license_id: string | null;
157
+ } | null | undefined;
135
158
  }[] | undefined;
136
159
  description?: string | null | undefined;
137
160
  resource_type?: string | undefined;
@@ -211,6 +234,11 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
211
234
  created_at?: string | undefined;
212
235
  updated_at?: string | undefined;
213
236
  is_direct_permission?: boolean | undefined;
237
+ pivot?: {
238
+ role_id: string;
239
+ permission_id: string;
240
+ conditions: import('@antcde/connect-ts').RowRuleBranch[] | null;
241
+ } | undefined;
214
242
  }[] | undefined;
215
243
  users?: {
216
244
  id: string;
@@ -230,6 +258,7 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
230
258
  reseller?: {
231
259
  license_id: string;
232
260
  name: string;
261
+ contact_email?: string | null | undefined;
233
262
  } | null | undefined;
234
263
  is_reseller?: boolean | undefined;
235
264
  access_revoked_at?: string | null | undefined;
@@ -296,6 +325,23 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
296
325
  };
297
326
  };
298
327
  } | null | undefined;
328
+ legal?: {
329
+ required: {
330
+ id: string;
331
+ key: string;
332
+ version: string;
333
+ locale: string;
334
+ title: string;
335
+ context: import('@antcde/connect-ts').LegalContext;
336
+ plans: string[];
337
+ audience: import('@antcde/connect-ts').LegalAudience;
338
+ needs_acceptance: boolean;
339
+ effective_at: string | null;
340
+ published_at: string | null;
341
+ pdf_url: string;
342
+ }[];
343
+ license_id: string | null;
344
+ } | null | undefined;
299
345
  }[] | undefined;
300
346
  description?: string | null | undefined;
301
347
  resource_type?: string | undefined;
@@ -376,6 +422,11 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
376
422
  created_at?: string | undefined;
377
423
  updated_at?: string | undefined;
378
424
  is_direct_permission?: boolean | undefined;
425
+ pivot?: {
426
+ role_id: string;
427
+ permission_id: string;
428
+ conditions: import('@antcde/connect-ts').RowRuleBranch[] | null;
429
+ } | undefined;
379
430
  }[] | undefined;
380
431
  users?: {
381
432
  id: string;
@@ -395,6 +446,7 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
395
446
  reseller?: {
396
447
  license_id: string;
397
448
  name: string;
449
+ contact_email?: string | null | undefined;
398
450
  } | null | undefined;
399
451
  is_reseller?: boolean | undefined;
400
452
  access_revoked_at?: string | null | undefined;
@@ -461,6 +513,23 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
461
513
  };
462
514
  };
463
515
  } | null | undefined;
516
+ legal?: {
517
+ required: {
518
+ id: string;
519
+ key: string;
520
+ version: string;
521
+ locale: string;
522
+ title: string;
523
+ context: import('@antcde/connect-ts').LegalContext;
524
+ plans: string[];
525
+ audience: import('@antcde/connect-ts').LegalAudience;
526
+ needs_acceptance: boolean;
527
+ effective_at: string | null;
528
+ published_at: string | null;
529
+ pdf_url: string;
530
+ }[];
531
+ license_id: string | null;
532
+ } | null | undefined;
464
533
  }[] | undefined;
465
534
  description?: string | null | undefined;
466
535
  resource_type?: string | undefined;
@@ -540,6 +609,11 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
540
609
  created_at?: string | undefined;
541
610
  updated_at?: string | undefined;
542
611
  is_direct_permission?: boolean | undefined;
612
+ pivot?: {
613
+ role_id: string;
614
+ permission_id: string;
615
+ conditions: import('@antcde/connect-ts').RowRuleBranch[] | null;
616
+ } | undefined;
543
617
  }[] | undefined;
544
618
  users?: {
545
619
  id: string;
@@ -559,6 +633,7 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
559
633
  reseller?: {
560
634
  license_id: string;
561
635
  name: string;
636
+ contact_email?: string | null | undefined;
562
637
  } | null | undefined;
563
638
  is_reseller?: boolean | undefined;
564
639
  access_revoked_at?: string | null | undefined;
@@ -625,6 +700,23 @@ export declare function usePickerNavigation(antConnect: AntConnect, projectId: (
625
700
  };
626
701
  };
627
702
  } | null | undefined;
703
+ legal?: {
704
+ required: {
705
+ id: string;
706
+ key: string;
707
+ version: string;
708
+ locale: string;
709
+ title: string;
710
+ context: import('@antcde/connect-ts').LegalContext;
711
+ plans: string[];
712
+ audience: import('@antcde/connect-ts').LegalAudience;
713
+ needs_acceptance: boolean;
714
+ effective_at: string | null;
715
+ published_at: string | null;
716
+ pdf_url: string;
717
+ }[];
718
+ license_id: string | null;
719
+ } | null | undefined;
628
720
  }[] | undefined;
629
721
  description?: string | null | undefined;
630
722
  resource_type?: string | undefined;
@@ -7,13 +7,15 @@ type __VLS_Props = {
7
7
  showDetails?: boolean;
8
8
  };
9
9
  declare function download(): Promise<void>;
10
- declare var __VLS_16: {
11
- src: string;
12
- title: string;
13
- };
14
- type __VLS_Slots = {} & {
15
- pdf?: (props: typeof __VLS_16) => any;
10
+ declare const __VLS_template: () => {
11
+ __VLS_Slots: {
12
+ pdf?: (props: {
13
+ src: string;
14
+ title: string;
15
+ }) => any;
16
+ };
16
17
  };
18
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
17
19
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {
18
20
  download: typeof download;
19
21
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -0,0 +1,22 @@
1
+ import { UseProjectNumber } from './useProjectNumber';
2
+ /**
3
+ * The line under a project number input (AAD-1230): the expected format, the backend's reason
4
+ * when the number is refused, a one-click suggestion for a taken number, and Generate.
5
+ *
6
+ * Renders nothing extra while the license has no formats and the number is fine, so a form keeps
7
+ * looking as it did. Owns no copy — every label arrives as a prop.
8
+ */
9
+ type __VLS_Props = {
10
+ /** The result of `useProjectNumber`. */
11
+ field: UseProjectNumber;
12
+ /** Precedes the examples, e.g. "Format". */
13
+ formatLabel: string;
14
+ generateLabel: string;
15
+ /** Precedes the suggested number, e.g. "Use". */
16
+ useSuggestionLabel: string;
17
+ checkingLabel?: string;
18
+ disabled?: boolean;
19
+ };
20
+ declare const __VLS_export: 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>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
@@ -0,0 +1,48 @@
1
+ import { ProjectNumberCheck, ProjectNumberFormat, ProjectNumberService } from '@antcde/connect-ts';
2
+ import { ComputedRef, MaybeRefOrGetter, Ref } from 'vue';
3
+ export type ProjectNumberStatus = 'idle' | 'checking' | 'valid' | 'invalid' | 'taken';
4
+ export interface UseProjectNumberOptions {
5
+ antConnect: {
6
+ projectNumbers: Pick<ProjectNumberService, 'listFormats' | 'checkNumber' | 'nextNumber'>;
7
+ };
8
+ licenseId: MaybeRefOrGetter<string | null | undefined>;
9
+ /** The field's v-model; generate and the suggestion write into it. */
10
+ number: Ref<string | null | undefined>;
11
+ /** Project type key: its pinned format applies. */
12
+ typeKey?: MaybeRefOrGetter<string | null | undefined>;
13
+ /** The project being edited: its own number does not count as taken. */
14
+ projectId?: MaybeRefOrGetter<string | null | undefined>;
15
+ /** The stored number when editing. Left unchanged it is never checked, so a legacy number keeps saving. */
16
+ originalNumber?: MaybeRefOrGetter<string | null | undefined>;
17
+ /** Shown when Generate fails without a reason from the backend; pass it translated. */
18
+ generateFailedMessage?: MaybeRefOrGetter<string>;
19
+ debounceMs?: number;
20
+ }
21
+ export interface UseProjectNumber {
22
+ /** The formats that apply; empty when the license has none. */
23
+ formats: Readonly<Ref<ProjectNumberFormat[]>>;
24
+ status: Readonly<Ref<ProjectNumberStatus>>;
25
+ /** The backend's reason when the number does not follow a format or is taken. */
26
+ message: ComputedRef<string | null>;
27
+ /** A free suffixed number to offer when the typed one is taken. */
28
+ suggestion: ComputedRef<string | null>;
29
+ /** True while the number would be refused on save. */
30
+ blocking: ComputedRef<boolean>;
31
+ canGenerate: ComputedRef<boolean>;
32
+ /** Options of the generating format's `{A|B}` part. */
33
+ choices: ComputedRef<string[]>;
34
+ choice: Ref<string | null>;
35
+ generating: Readonly<Ref<boolean>>;
36
+ generateError: Readonly<Ref<string | null>>;
37
+ generate: () => Promise<void>;
38
+ applySuggestion: () => void;
39
+ /** Check now instead of after the debounce, e.g. on blur or before save. */
40
+ check: () => Promise<ProjectNumberCheck | null>;
41
+ reload: () => Promise<void>;
42
+ }
43
+ /**
44
+ * The project number field's behaviour (AAD-1230), without its markup: every app renders its own
45
+ * input and puts `AntProjectNumberHelp` under it. The backend decides validity; a failed request
46
+ * leaves the field `idle` so saving behaves as it did before formats existed.
47
+ */
48
+ export declare function useProjectNumber(options: UseProjectNumberOptions): UseProjectNumber;
@@ -40,6 +40,7 @@ export declare function useTableSelection(context: MaybeRefOrGetter<TableScope>)
40
40
  readonly profile_picture: string | null;
41
41
  } | null;
42
42
  } | null;
43
+ readonly row_security?: boolean | undefined;
43
44
  readonly permissions: {
44
45
  readonly create: boolean;
45
46
  readonly read: boolean;
@@ -69,6 +70,9 @@ export declare function useTableSelection(context: MaybeRefOrGetter<TableScope>)
69
70
  readonly remaining: number | null;
70
71
  };
71
72
  } | undefined;
73
+ readonly data_bytes?: number | null | undefined;
74
+ readonly history_bytes?: number | null | undefined;
75
+ readonly mostly_history?: boolean | undefined;
72
76
  } | null;
73
77
  readonly related_column: /*elided*/ any | null;
74
78
  };
@@ -155,6 +159,7 @@ export declare function useTableSelection(context: MaybeRefOrGetter<TableScope>)
155
159
  readonly profile_picture: string | null;
156
160
  } | null;
157
161
  } | null;
162
+ readonly row_security?: boolean | undefined;
158
163
  readonly permissions: {
159
164
  readonly create: boolean;
160
165
  readonly read: boolean;
@@ -184,6 +189,9 @@ export declare function useTableSelection(context: MaybeRefOrGetter<TableScope>)
184
189
  readonly remaining: number | null;
185
190
  };
186
191
  } | undefined;
192
+ readonly data_bytes?: number | null | undefined;
193
+ readonly history_bytes?: number | null | undefined;
194
+ readonly mostly_history?: boolean | undefined;
187
195
  } | null;
188
196
  readonly related_column: /*elided*/ any | null;
189
197
  };
@@ -1,7 +1,9 @@
1
- declare var __VLS_1: {};
2
- type __VLS_Slots = {} & {
3
- default?: (props: typeof __VLS_1) => any;
1
+ declare const __VLS_template: () => {
2
+ __VLS_Slots: {
3
+ default?: (props: {}) => any;
4
+ };
4
5
  };
6
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
5
7
  declare const __VLS_base: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
6
8
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
9
  declare const _default: typeof __VLS_export;
@@ -6,13 +6,15 @@ type __VLS_ModelProps = {
6
6
  modelValue: boolean;
7
7
  };
8
8
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
- declare var __VLS_10: {
10
- menuProps: any;
11
- isDefaultWorkdays: (days: number[]) => boolean;
12
- };
13
- type __VLS_Slots = {} & {
14
- default?: (props: typeof __VLS_10) => any;
9
+ declare const __VLS_template: () => {
10
+ __VLS_Slots: {
11
+ default?: (props: {
12
+ menuProps: any;
13
+ isDefaultWorkdays: (days: number[]) => boolean;
14
+ }) => any;
15
+ };
15
16
  };
17
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
16
18
  declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
19
  "update:modelValue": (value: boolean) => any;
18
20
  save: (days: number | null, activeDays: number[]) => any;
@@ -6,12 +6,14 @@ type __VLS_ModelProps = {
6
6
  modelValue: boolean;
7
7
  };
8
8
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
- declare var __VLS_8: {
10
- menuProps: any;
11
- };
12
- type __VLS_Slots = {} & {
13
- default?: (props: typeof __VLS_8) => any;
9
+ declare const __VLS_template: () => {
10
+ __VLS_Slots: {
11
+ default?: (props: {
12
+ menuProps: any;
13
+ }) => any;
14
+ };
14
15
  };
16
+ type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
15
17
  declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
18
  "update:modelValue": (value: boolean) => any;
17
19
  assigned: (userId: string | null) => any;