@knime/kds-components 13.5.0 → 14.0.0

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/CHANGELOG.md +46 -0
  2. package/dist/{KdsIcon-DWTHABhA.js → KdsIcon-Tvw8bbUN.js} +118 -94
  3. package/dist/KdsIcon-Tvw8bbUN.js.map +1 -0
  4. package/dist/index.css +309 -124
  5. package/dist/index.js +821 -440
  6. package/dist/index.js.map +1 -1
  7. package/dist/src/components/feedback/ProgressBar/types.d.ts +1 -1
  8. package/dist/src/components/forms/Dropzone/KdsDropzone.vue.d.ts +95 -0
  9. package/dist/src/components/forms/Dropzone/KdsDropzone.vue.d.ts.map +1 -0
  10. package/dist/src/components/forms/Dropzone/index.d.ts +3 -0
  11. package/dist/src/components/forms/Dropzone/index.d.ts.map +1 -0
  12. package/dist/src/components/forms/Dropzone/types.d.ts +54 -0
  13. package/dist/src/components/forms/Dropzone/types.d.ts.map +1 -0
  14. package/dist/src/components/forms/FileSelector/KdsFileSelector.vue.d.ts +2 -3
  15. package/dist/src/components/forms/FileSelector/KdsFileSelector.vue.d.ts.map +1 -1
  16. package/dist/src/components/forms/FileSelector/types.d.ts +3 -5
  17. package/dist/src/components/forms/FileSelector/types.d.ts.map +1 -1
  18. package/dist/src/components/forms/RadioButton/KdsRadioButton.vue.d.ts.map +1 -1
  19. package/dist/src/components/forms/_helper/BaseFormFieldWrapper.vue.d.ts +4 -0
  20. package/dist/src/components/forms/_helper/BaseFormFieldWrapper.vue.d.ts.map +1 -1
  21. package/dist/src/components/forms/_helper/KdsSubText.vue.d.ts +13 -1
  22. package/dist/src/components/forms/_helper/KdsSubText.vue.d.ts.map +1 -1
  23. package/dist/src/components/forms/_helper/useFileValidation.d.ts +49 -0
  24. package/dist/src/components/forms/_helper/useFileValidation.d.ts.map +1 -0
  25. package/dist/src/components/forms/index.d.ts +2 -0
  26. package/dist/src/components/forms/index.d.ts.map +1 -1
  27. package/dist/src/components/forms/inputs/BaseInput.vue.d.ts +2 -2
  28. package/dist/src/components/forms/inputs/SearchInput/KdsSearchInput.vue.d.ts +2 -2
  29. package/dist/src/components/forms/selects/Dropdown/BaseDropdown.vue.d.ts +2 -2
  30. package/dist/src/components/lists/MenuContainer/KdsMenuItem.vue.d.ts +2 -2
  31. package/dist/src/layouts/explorer/FileExplorer/FileExplorerRenameModal.vue.d.ts.map +1 -1
  32. package/dist/src/layouts/overlays/Tooltip/vKdsTooltip.d.ts.map +1 -1
  33. package/dist/src/layouts/panels/{Collapsable/KdsCollapsable.vue.d.ts → Collapsible/KdsCollapsible.vue.d.ts} +79 -17
  34. package/dist/src/layouts/panels/Collapsible/KdsCollapsible.vue.d.ts.map +1 -0
  35. package/dist/src/layouts/panels/Collapsible/enums.d.ts +15 -0
  36. package/dist/src/layouts/panels/Collapsible/enums.d.ts.map +1 -0
  37. package/dist/src/layouts/panels/Collapsible/index.d.ts +4 -0
  38. package/dist/src/layouts/panels/Collapsible/index.d.ts.map +1 -0
  39. package/dist/src/layouts/panels/Collapsible/types.d.ts +92 -0
  40. package/dist/src/layouts/panels/Collapsible/types.d.ts.map +1 -0
  41. package/dist/src/layouts/panels/Panel/enums.d.ts +1 -1
  42. package/dist/src/layouts/panels/index.d.ts +2 -2
  43. package/package.json +6 -6
  44. package/dist/KdsIcon-DWTHABhA.js.map +0 -1
  45. package/dist/speed-class-light-B2zxgRSl.js +0 -21
  46. package/dist/speed-class-light-B2zxgRSl.js.map +0 -1
  47. package/dist/speed-class-performant-DeJT7y4C.js +0 -21
  48. package/dist/speed-class-performant-DeJT7y4C.js.map +0 -1
  49. package/dist/speed-class-standard-OVM3_p1U.js +0 -21
  50. package/dist/speed-class-standard-OVM3_p1U.js.map +0 -1
  51. package/dist/src/layouts/panels/Collapsable/KdsCollapsable.vue.d.ts.map +0 -1
  52. package/dist/src/layouts/panels/Collapsable/enums.d.ts +0 -13
  53. package/dist/src/layouts/panels/Collapsable/enums.d.ts.map +0 -1
  54. package/dist/src/layouts/panels/Collapsable/index.d.ts +0 -4
  55. package/dist/src/layouts/panels/Collapsable/index.d.ts.map +0 -1
  56. package/dist/src/layouts/panels/Collapsable/types.d.ts +0 -69
  57. package/dist/src/layouts/panels/Collapsable/types.d.ts.map +0 -1
@@ -6,7 +6,7 @@ type KdsProgressBarBase = {
6
6
  */
7
7
  size?: KdsProgressBarSize;
8
8
  /**
9
- * Tooltip text shown on hover. Accessible via aria-describedby.
9
+ * Tooltip text shown on hover. Exposed as the bar's accessible description.
10
10
  * If omitted, a default text is used ("Loading" for indeterminate,
11
11
  * otherwise "Progress: <percentage>%").
12
12
  */
@@ -0,0 +1,95 @@
1
+ import { KdsFormFieldExpose } from '../types';
2
+ import { KdsDropzoneRejectedFile } from './types';
3
+ type __VLS_ModelProps = {
4
+ modelValue?: File[];
5
+ };
6
+ declare const __VLS_export: import('vue').DefineComponent<({
7
+ description?: string;
8
+ } & {
9
+ label: string;
10
+ ariaLabel?: never;
11
+ } & {
12
+ id?: string;
13
+ } & {
14
+ error?: boolean | undefined;
15
+ subText?: string | undefined;
16
+ validating?: boolean | undefined;
17
+ preserveSubTextSpace?: boolean | undefined;
18
+ } & {
19
+ disabled?: boolean;
20
+ accept?: string;
21
+ maxSizeBytes?: number;
22
+ selectLabel?: string;
23
+ dropText?: string;
24
+ removeLabel?: string;
25
+ } & __VLS_ModelProps) | ({
26
+ description?: string;
27
+ } & {
28
+ label?: never;
29
+ ariaLabel: string;
30
+ } & {
31
+ id?: string;
32
+ } & {
33
+ error?: boolean | undefined;
34
+ subText?: string | undefined;
35
+ validating?: boolean | undefined;
36
+ preserveSubTextSpace?: boolean | undefined;
37
+ } & {
38
+ disabled?: boolean;
39
+ accept?: string;
40
+ maxSizeBytes?: number;
41
+ selectLabel?: string;
42
+ dropText?: string;
43
+ removeLabel?: string;
44
+ } & __VLS_ModelProps), KdsFormFieldExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
45
+ "update:modelValue": (value: File[]) => any;
46
+ "validation-error": (payload: {
47
+ files: KdsDropzoneRejectedFile[];
48
+ }) => any;
49
+ }, string, import('vue').PublicProps, Readonly<({
50
+ description?: string;
51
+ } & {
52
+ label: string;
53
+ ariaLabel?: never;
54
+ } & {
55
+ id?: string;
56
+ } & {
57
+ error?: boolean | undefined;
58
+ subText?: string | undefined;
59
+ validating?: boolean | undefined;
60
+ preserveSubTextSpace?: boolean | undefined;
61
+ } & {
62
+ disabled?: boolean;
63
+ accept?: string;
64
+ maxSizeBytes?: number;
65
+ selectLabel?: string;
66
+ dropText?: string;
67
+ removeLabel?: string;
68
+ } & __VLS_ModelProps) | ({
69
+ description?: string;
70
+ } & {
71
+ label?: never;
72
+ ariaLabel: string;
73
+ } & {
74
+ id?: string;
75
+ } & {
76
+ error?: boolean | undefined;
77
+ subText?: string | undefined;
78
+ validating?: boolean | undefined;
79
+ preserveSubTextSpace?: boolean | undefined;
80
+ } & {
81
+ disabled?: boolean;
82
+ accept?: string;
83
+ maxSizeBytes?: number;
84
+ selectLabel?: string;
85
+ dropText?: string;
86
+ removeLabel?: string;
87
+ } & __VLS_ModelProps)> & Readonly<{
88
+ "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
89
+ "onValidation-error"?: ((payload: {
90
+ files: KdsDropzoneRejectedFile[];
91
+ }) => any) | undefined;
92
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
93
+ declare const _default: typeof __VLS_export;
94
+ export default _default;
95
+ //# sourceMappingURL=KdsDropzone.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KdsDropzone.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/Dropzone/KdsDropzone.vue"],"names":[],"mappings":"AAkiBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,OAAO,KAAK,EAGV,uBAAuB,EACxB,MAAM,SAAS,CAAC;AA2OjB,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC;CACnB,CAAC;AAgTF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,3 @@
1
+ export { default as KdsDropzone } from './KdsDropzone.vue';
2
+ export type { KdsDropzoneEmits, KdsDropzoneProps, KdsDropzoneRejectedFile, KdsDropzoneValidationReason, } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/Dropzone/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC3D,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,SAAS,CAAC"}
@@ -0,0 +1,54 @@
1
+ import { FileValidationReason } from '../_helper/useFileValidation';
2
+ import { KdsFormFieldProps } from '../types';
3
+ /**
4
+ * Reason why a file picked or dropped into the dropzone was not added.
5
+ */
6
+ export type KdsDropzoneValidationReason = FileValidationReason | "duplicate";
7
+ export type KdsDropzoneRejectedFile = {
8
+ file: File;
9
+ reason: KdsDropzoneValidationReason;
10
+ };
11
+ export type KdsDropzoneEmits = {
12
+ /**
13
+ * Fired once per pick or drop, lists files that were rejected with the reason.
14
+ */
15
+ "validation-error": [payload: {
16
+ files: KdsDropzoneRejectedFile[];
17
+ }];
18
+ };
19
+ export type KdsDropzoneProps = KdsFormFieldProps & {
20
+ /**
21
+ * Whether the dropzone is disabled and non-interactive.
22
+ */
23
+ disabled?: boolean;
24
+ /**
25
+ * File types the user can pick or drop, passed to the underlying
26
+ * `<input type="file">`. Accepts MIME types (`image/*`) or extensions
27
+ * (`.csv,.xlsx`). The value is also used to derive the requirements hint and
28
+ * to validate the selected files in js.
29
+ */
30
+ accept?: string;
31
+ /**
32
+ * Maximum file size, in bytes. Files larger than this are rejected and the
33
+ * limit is included in the requirements hint.
34
+ */
35
+ maxSizeBytes?: number;
36
+ /**
37
+ * Text for the button that opens the file dialog.
38
+ * @default "Select files"
39
+ */
40
+ selectLabel?: string;
41
+ /**
42
+ * Prompt shown in the empty dropzone, next to the file icon.
43
+ * @default "Select files or drop here"
44
+ */
45
+ dropText?: string;
46
+ /**
47
+ * Accessible label prefix for the per-file remove (trash) button. The file
48
+ * name is appended so each button has a distinct accessible name, e.g.
49
+ * `"Remove file: report.csv"`.
50
+ * @default "Remove file"
51
+ */
52
+ removeLabel?: string;
53
+ };
54
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/Dropzone/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,oBAAoB,GAAG,WAAW,CAAC;AAE7E,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,2BAA2B,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,kBAAkB,EAAE,CAAC,OAAO,EAAE;QAAE,KAAK,EAAE,uBAAuB,EAAE,CAAA;KAAE,CAAC,CAAC;CACrE,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAG;IACjD;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { KdsFormFieldExpose } from '../types';
2
- import { KdsFileSelectorRejectedFile } from './types';
3
2
  type __VLS_ModelProps = {
4
3
  modelValue?: File[];
5
4
  };
@@ -50,7 +49,7 @@ declare const __VLS_export: import('vue').DefineComponent<({
50
49
  } & __VLS_ModelProps), KdsFormFieldExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
51
50
  "update:modelValue": (value: File[]) => any;
52
51
  "validation-error": (payload: {
53
- files: KdsFileSelectorRejectedFile[];
52
+ files: import('./types').KdsFileSelectorRejectedFile[];
54
53
  }) => any;
55
54
  }, string, import('vue').PublicProps, Readonly<({
56
55
  description?: string;
@@ -99,7 +98,7 @@ declare const __VLS_export: import('vue').DefineComponent<({
99
98
  } & __VLS_ModelProps)> & Readonly<{
100
99
  "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
101
100
  "onValidation-error"?: ((payload: {
102
- files: KdsFileSelectorRejectedFile[];
101
+ files: import('./types').KdsFileSelectorRejectedFile[];
103
102
  }) => any) | undefined;
104
103
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
105
104
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- {"version":3,"file":"KdsFileSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/FileSelector/KdsFileSelector.vue"],"names":[],"mappings":"AAySA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,OAAO,KAAK,EAGV,2BAA2B,EAE5B,MAAM,SAAS,CAAC;AAwLjB,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC;CACnB,CAAC;AAqLF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"KdsFileSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/FileSelector/KdsFileSelector.vue"],"names":[],"mappings":"AA0MA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAkGnD,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,IAAI,EAAE,CAAC;CACnB,CAAC;AAqLF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,9 +1,7 @@
1
+ import { FileValidationReason, RejectedFile } from '../_helper/useFileValidation';
1
2
  import { KdsFormFieldProps } from '../types';
2
- export type KdsFileSelectorValidationReason = "type" | "size";
3
- export type KdsFileSelectorRejectedFile = {
4
- file: File;
5
- reason: KdsFileSelectorValidationReason;
6
- };
3
+ export type KdsFileSelectorValidationReason = FileValidationReason;
4
+ export type KdsFileSelectorRejectedFile = RejectedFile;
7
5
  export type KdsFileSelectorEmits = {
8
6
  /**
9
7
  * Fired once per pick when the picked files fail validation. The whole
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/FileSelector/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,MAAM,+BAA+B,GAAG,MAAM,GAAG,MAAM,CAAC;AAE9D,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,+BAA+B,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;OAIG;IACH,kBAAkB,EAAE,CAAC,OAAO,EAAE;QAAE,KAAK,EAAE,2BAA2B,EAAE,CAAA;KAAE,CAAC,CAAC;CACzE,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG;IACrD;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/FileSelector/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,YAAY,EACb,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAAC;AAEnE,MAAM,MAAM,2BAA2B,GAAG,YAAY,CAAC;AAEvD,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;OAIG;IACH,kBAAkB,EAAE,CAAC,OAAO,EAAE;QAAE,KAAK,EAAE,2BAA2B,EAAE,CAAA;KAAE,CAAC,CAAC;CACzE,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG;IACrD;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"KdsRadioButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/RadioButton/KdsRadioButton.vue"],"names":[],"mappings":"AAgLA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,KAAK,WAAW,GAAG,mBAAmB,CAAC;AA2BvC,KAAK,gBAAgB,GAAG;IACxB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAiGxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"KdsRadioButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/RadioButton/KdsRadioButton.vue"],"names":[],"mappings":"AAgLA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,KAAK,WAAW,GAAG,mBAAmB,CAAC;AA2BvC,KAAK,gBAAgB,GAAG;IACxB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAmGxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -29,6 +29,10 @@ type __VLS_Slots = {
29
29
  ariaLabel: string | undefined;
30
30
  ariaInvalid: boolean | undefined;
31
31
  }): unknown;
32
+ /**
33
+ * Trailing content after subtext.
34
+ */
35
+ "sub-text-trailing"?(): unknown;
32
36
  };
33
37
  declare const __VLS_base: import('vue').DefineComponent<KdsFormFieldProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<KdsFormFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
34
38
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1 +1 @@
1
- {"version":3,"file":"BaseFormFieldWrapper.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/_helper/BaseFormFieldWrapper.vue"],"names":[],"mappings":"AA+FA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAKhD,KAAK,iBAAiB,GAAG;IACvB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CAGtB,GAAG,IAAI,CAAC,eAAe,EAAE,IAAI,GAAG,SAAS,CAAC,CAAC;AAY5C,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,OAAO,CAAC,KAAK,EAAE;QACb,EAAE,EAAE,MAAM,CAAC;QACX,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;QACnC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;QACpC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;QAC9B,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;KAClC,GAAG,OAAO,CAAC;CACb,CAAC;AAoFF,QAAA,MAAM,UAAU,8SAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"BaseFormFieldWrapper.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/_helper/BaseFormFieldWrapper.vue"],"names":[],"mappings":"AAuGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAKhD,KAAK,iBAAiB,GAAG;IACvB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CAGtB,GAAG,IAAI,CAAC,eAAe,EAAE,IAAI,GAAG,SAAS,CAAC,CAAC;AAY5C,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,OAAO,CAAC,KAAK,EAAE;QACb,EAAE,EAAE,MAAM,CAAC;QACX,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;QACnC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;QACpC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;QAC9B,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;KAClC,GAAG,OAAO,CAAC;IACZ;;OAEG;IACH,mBAAmB,CAAC,IAAI,OAAO,CAAC;CACjC,CAAC;AAiGF,QAAA,MAAM,UAAU,8SAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,5 +1,17 @@
1
1
  import { KdsSubTextProps } from '../types';
2
- declare const __VLS_export: import('vue').DefineComponent<KdsSubTextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<KdsSubTextProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
2
+ type __VLS_Slots = {
3
+ /**
4
+ * Trailing content after subtext.
5
+ */
6
+ trailing?(): unknown;
7
+ };
8
+ declare const __VLS_base: import('vue').DefineComponent<KdsSubTextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<KdsSubTextProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
3
10
  declare const _default: typeof __VLS_export;
4
11
  export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
5
17
  //# sourceMappingURL=KdsSubText.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KdsSubText.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/_helper/KdsSubText.vue"],"names":[],"mappings":"AAgEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AA4FhD,QAAA,MAAM,YAAY,0SAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"KdsSubText.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/_helper/KdsSubText.vue"],"names":[],"mappings":"AA8EA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAYhD,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,QAAQ,CAAC,IAAI,OAAO,CAAC;CACtB,CAAC;AA4FF,QAAA,MAAM,UAAU,0SAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { MaybeRefOrGetter } from 'vue';
2
+ export type FileValidationReason = "type" | "size";
3
+ export type RejectedFile = {
4
+ file: File;
5
+ reason: FileValidationReason;
6
+ };
7
+ type UseFileValidationOptions = {
8
+ /**
9
+ * File types the user may pick, in the `<input type="file">` `accept` format
10
+ * (MIME types like `image/*` or extensions like `.csv,.xlsx`). Drives both the
11
+ * requirements hint and type validation.
12
+ */
13
+ accept?: MaybeRefOrGetter<string | undefined>;
14
+ /**
15
+ * Maximum file size in bytes. Larger files fail validation with reason `size`.
16
+ */
17
+ maxSizeBytes?: MaybeRefOrGetter<number | undefined>;
18
+ /**
19
+ * Error message for a file whose type is not in `accept`.
20
+ */
21
+ invalidTypeMessage?: MaybeRefOrGetter<string | undefined>;
22
+ /**
23
+ * Error message for a file exceeding `maxSizeBytes`. When omitted, a default
24
+ * is synthesized from `maxSizeBytes`.
25
+ */
26
+ invalidSizeMessage?: MaybeRefOrGetter<string | undefined>;
27
+ };
28
+ /**
29
+ * Turns a single `accept` entry (e.g. `.csv` or `image/*`) into a short human
30
+ * label (`"csv"`, `"image"`) for the requirements hint, or `null` when it has
31
+ * no meaningful label.
32
+ */
33
+ export declare const deriveFileTypeLabel: (entry: string) => string | null;
34
+ /**
35
+ * Shared file-validation logic for file-picking form fields.
36
+ * Derives the requirements hint from `accept`/`maxSizeBytes` and
37
+ * validates picked or dropped files against the same two rules.
38
+ */
39
+ export declare const useFileValidation: (options?: UseFileValidationOptions) => {
40
+ fileTypeLabels: import('vue').ComputedRef<string[]>;
41
+ requirementsText: import('vue').ComputedRef<string>;
42
+ validate: (file: File) => FileValidationReason | null;
43
+ validateAll: (files: File[]) => {
44
+ rejected: RejectedFile[];
45
+ message: string | null;
46
+ };
47
+ };
48
+ export {};
49
+ //# sourceMappingURL=useFileValidation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFileValidation.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/_helper/useFileValidation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAqB,MAAM,KAAK,CAAC;AAI/D,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,EAAE,oBAAoB,CAAC;CAC9B,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B;;;;OAIG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,YAAY,CAAC,EAAE,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACpD;;OAEG;IACH,kBAAkB,CAAC,EAAE,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1D;;;OAGG;IACH,kBAAkB,CAAC,EAAE,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC3D,CAAC;AAIF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,KAAG,MAAM,GAAG,IAY5D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAS,wBAA6B;;;qBA8D9C,IAAI,KAAG,oBAAoB,GAAG,IAAI;yBAsBjD,IAAI,EAAE,KACZ;QAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;QAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE;CAaxD,CAAC"}
@@ -25,6 +25,8 @@ export * from './inputs';
25
25
  export type * from './inputs';
26
26
  export * from './FileSelector';
27
27
  export type * from './FileSelector';
28
+ export * from './Dropzone';
29
+ export type * from './Dropzone';
28
30
  export * from './selects';
29
31
  export type * from './selects';
30
32
  export * from './_helper/InfoPopover';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC7D;;;;;GAKG;AACH,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAGjE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C;;;;;GAKG;AACH,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,cAAc,YAAY,CAAC;AAC3B,mBAAmB,YAAY,CAAC;AAEhC,cAAc,gBAAgB,CAAC;AAC/B,mBAAmB,gBAAgB,CAAC;AAEpC,cAAc,eAAe,CAAC;AAC9B,mBAAmB,eAAe,CAAC;AAEnC,cAAc,UAAU,CAAC;AACzB,mBAAmB,UAAU,CAAC;AAE9B,cAAc,gBAAgB,CAAC;AAC/B,mBAAmB,gBAAgB,CAAC;AAEpC,cAAc,WAAW,CAAC;AAC1B,mBAAmB,WAAW,CAAC;AAE/B,cAAc,uBAAuB,CAAC;AACtC,mBAAmB,uBAAuB,CAAC;AAE3C,cAAc,2BAA2B,CAAC;AAC1C,mBAAmB,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC7D;;;;;GAKG;AACH,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAGjE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C;;;;;GAKG;AACH,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,cAAc,YAAY,CAAC;AAC3B,mBAAmB,YAAY,CAAC;AAEhC,cAAc,gBAAgB,CAAC;AAC/B,mBAAmB,gBAAgB,CAAC;AAEpC,cAAc,eAAe,CAAC;AAC9B,mBAAmB,eAAe,CAAC;AAEnC,cAAc,UAAU,CAAC;AACzB,mBAAmB,UAAU,CAAC;AAE9B,cAAc,gBAAgB,CAAC;AAC/B,mBAAmB,gBAAgB,CAAC;AAEpC,cAAc,YAAY,CAAC;AAC3B,mBAAmB,YAAY,CAAC;AAEhC,cAAc,WAAW,CAAC;AAC1B,mBAAmB,WAAW,CAAC;AAE/B,cAAc,uBAAuB,CAAC;AACtC,mBAAmB,uBAAuB,CAAC;AAE3C,cAAc,2BAA2B,CAAC;AAC1C,mBAAmB,2BAA2B,CAAC"}
@@ -156,18 +156,18 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
156
156
  focus: (options?: FocusOptions) => void;
157
157
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
158
158
  input: (event: Event) => any;
159
+ keydown: (event: KeyboardEvent) => any;
159
160
  blur: (event: FocusEvent) => any;
160
161
  click: (event: MouseEvent) => any;
161
162
  focus: (event: FocusEvent) => any;
162
- keydown: (event: KeyboardEvent) => any;
163
163
  paste: (event: ClipboardEvent) => any;
164
164
  "update:modelValue": (value: string) => any;
165
165
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
166
166
  onInput?: ((event: Event) => any) | undefined;
167
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
167
168
  onBlur?: ((event: FocusEvent) => any) | undefined;
168
169
  onClick?: ((event: MouseEvent) => any) | undefined;
169
170
  onFocus?: ((event: FocusEvent) => any) | undefined;
170
- onKeydown?: ((event: KeyboardEvent) => any) | undefined;
171
171
  onPaste?: ((event: ClipboardEvent) => any) | undefined;
172
172
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
173
173
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -46,9 +46,9 @@ declare const __VLS_export: import('vue').DefineComponent<({
46
46
  resultsMaxHeight?: string;
47
47
  leadingIcon?: import('../../..').KdsIconName;
48
48
  } & __VLS_ModelProps), KdsFormFieldExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
49
+ keydown: (event: KeyboardEvent) => any;
49
50
  blur: (event: FocusEvent) => any;
50
51
  focus: (event: FocusEvent) => any;
51
- keydown: (event: KeyboardEvent) => any;
52
52
  "update:modelValue": (value: string) => any;
53
53
  resultClick: (id?: string | undefined) => any;
54
54
  }, string, import('vue').PublicProps, Readonly<({
@@ -94,9 +94,9 @@ declare const __VLS_export: import('vue').DefineComponent<({
94
94
  resultsMaxHeight?: string;
95
95
  leadingIcon?: import('../../..').KdsIconName;
96
96
  } & __VLS_ModelProps)> & Readonly<{
97
+ onKeydown?: ((event: KeyboardEvent) => any) | undefined;
97
98
  onBlur?: ((event: FocusEvent) => any) | undefined;
98
99
  onFocus?: ((event: FocusEvent) => any) | undefined;
99
- onKeydown?: ((event: KeyboardEvent) => any) | undefined;
100
100
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
101
101
  onResultClick?: ((id?: string | undefined) => any) | undefined;
102
102
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -6,12 +6,12 @@ type __VLS_ModelProps = {
6
6
  };
7
7
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
8
  declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, KdsFormFieldExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
- click: () => any;
10
9
  keydown: (event: KeyboardEvent) => any;
10
+ click: () => any;
11
11
  "update:open": (value: boolean) => any;
12
12
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
- onClick?: (() => any) | undefined;
14
13
  onKeydown?: ((event: KeyboardEvent) => any) | undefined;
14
+ onClick?: (() => any) | undefined;
15
15
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
16
16
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
17
  declare const _default: typeof __VLS_export;
@@ -12,11 +12,11 @@ type __VLS_Slots = {
12
12
  children(): unknown;
13
13
  };
14
14
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, KdsMenuItemExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
- mouseenter: (event: MouseEvent) => any;
16
15
  click: (event: MouseEvent) => any;
16
+ mouseenter: (event: MouseEvent) => any;
17
17
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
- onMouseenter?: ((event: MouseEvent) => any) | undefined;
19
18
  onClick?: ((event: MouseEvent) => any) | undefined;
19
+ onMouseenter?: ((event: MouseEvent) => any) | undefined;
20
20
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
21
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
22
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- {"version":3,"file":"FileExplorerRenameModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/explorer/FileExplorer/FileExplorerRenameModal.vue"],"names":[],"mappings":"AAqGA,OAAO,KAAK,EAEV,4BAA4B,EAE7B,MAAM,SAAS,CAAC;AA2LjB,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"FileExplorerRenameModal.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/explorer/FileExplorer/FileExplorerRenameModal.vue"],"names":[],"mappings":"AAsGA,OAAO,KAAK,EAEV,4BAA4B,EAE7B,MAAM,SAAS,CAAC;AA6LjB,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"vKdsTooltip.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/overlays/Tooltip/vKdsTooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAsC,MAAM,KAAK,CAAC;AAOzE,OAAO,mBAAmB,CAAC;AAqB3B,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAK/D;AAqOD,eAAO,MAAM,WAAW,EAAE,SAAS,CAAC,WAAW,CA2B9C,CAAC;AAEF,mDAAmD;AACnD,wBAAgB,kBAAkB,SAGjC"}
1
+ {"version":3,"file":"vKdsTooltip.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/overlays/Tooltip/vKdsTooltip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAoB,MAAM,KAAK,CAAC;AAMvD,OAAO,mBAAmB,CAAC;AAkC3B,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAK/D;AA4QD,eAAO,MAAM,WAAW,EAAE,SAAS,CAAC,WAAW,CAgC9C,CAAC;AAEF,mDAAmD;AACnD,wBAAgB,kBAAkB,SAGjC"}
@@ -15,64 +15,126 @@ type __VLS_Slots = {
15
15
  */
16
16
  trailing?(): unknown;
17
17
  /**
18
- * Content revealed when the collapsable is expanded.
18
+ * Content revealed when the collapsible is expanded. It is not indented, so
19
+ * it starts at the header's left edge, also when a `leadingIcon` is set. To
20
+ * align it with the headline, add the indentation in the content itself.
19
21
  */
20
22
  default(): unknown;
21
23
  };
22
24
  type __VLS_ModelProps = {
23
- /** Whether the collapsable is expanded. */
25
+ /** Whether the collapsible is expanded. */
24
26
  modelValue?: boolean;
25
27
  };
26
28
  declare const __VLS_base: import('vue').DefineComponent<({
27
- size?: import('./types').KdsCollapsableSize;
29
+ variant?: import('./types').KdsCollapsibleVariant;
28
30
  topBorder?: boolean;
29
31
  bottomBorder?: boolean;
30
- description?: string;
31
- subText?: string;
32
+ expandable?: boolean;
33
+ toggle?: import('./types').KdsCollapsibleToggle;
34
+ } & {
35
+ headline: string;
32
36
  leadingIcon?: import('../../..').KdsIconName;
37
+ ariaLabel?: never;
38
+ } & {
39
+ description: string;
40
+ subText?: string;
41
+ } & __VLS_ModelProps) | ({
42
+ variant?: import('./types').KdsCollapsibleVariant;
43
+ topBorder?: boolean;
44
+ bottomBorder?: boolean;
33
45
  expandable?: boolean;
34
- toggle?: import('./types').KdsCollapsableToggle;
46
+ toggle?: import('./types').KdsCollapsibleToggle;
35
47
  } & {
36
48
  headline: string;
49
+ leadingIcon?: import('../../..').KdsIconName;
37
50
  ariaLabel?: never;
51
+ } & {
52
+ description?: never;
53
+ subText?: never;
38
54
  } & __VLS_ModelProps) | ({
39
- size?: import('./types').KdsCollapsableSize;
55
+ variant?: import('./types').KdsCollapsibleVariant;
40
56
  topBorder?: boolean;
41
57
  bottomBorder?: boolean;
42
- description?: string;
58
+ expandable?: boolean;
59
+ toggle?: import('./types').KdsCollapsibleToggle;
60
+ } & {
61
+ headline?: never;
62
+ ariaLabel: string;
63
+ } & {
64
+ description: string;
43
65
  subText?: string;
66
+ } & {
44
67
  leadingIcon?: import('../../..').KdsIconName;
68
+ } & __VLS_ModelProps) | ({
69
+ variant?: import('./types').KdsCollapsibleVariant;
70
+ topBorder?: boolean;
71
+ bottomBorder?: boolean;
45
72
  expandable?: boolean;
46
- toggle?: import('./types').KdsCollapsableToggle;
73
+ toggle?: import('./types').KdsCollapsibleToggle;
47
74
  } & {
48
75
  headline?: never;
49
76
  ariaLabel: string;
77
+ } & {
78
+ description?: never;
79
+ subText?: never;
80
+ } & {
81
+ leadingIcon?: never;
50
82
  } & __VLS_ModelProps), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
51
83
  "update:modelValue": (value: boolean) => any;
52
84
  }, string, import('vue').PublicProps, Readonly<({
53
- size?: import('./types').KdsCollapsableSize;
85
+ variant?: import('./types').KdsCollapsibleVariant;
54
86
  topBorder?: boolean;
55
87
  bottomBorder?: boolean;
56
- description?: string;
57
- subText?: string;
88
+ expandable?: boolean;
89
+ toggle?: import('./types').KdsCollapsibleToggle;
90
+ } & {
91
+ headline: string;
58
92
  leadingIcon?: import('../../..').KdsIconName;
93
+ ariaLabel?: never;
94
+ } & {
95
+ description: string;
96
+ subText?: string;
97
+ } & __VLS_ModelProps) | ({
98
+ variant?: import('./types').KdsCollapsibleVariant;
99
+ topBorder?: boolean;
100
+ bottomBorder?: boolean;
59
101
  expandable?: boolean;
60
- toggle?: import('./types').KdsCollapsableToggle;
102
+ toggle?: import('./types').KdsCollapsibleToggle;
61
103
  } & {
62
104
  headline: string;
105
+ leadingIcon?: import('../../..').KdsIconName;
63
106
  ariaLabel?: never;
107
+ } & {
108
+ description?: never;
109
+ subText?: never;
64
110
  } & __VLS_ModelProps) | ({
65
- size?: import('./types').KdsCollapsableSize;
111
+ variant?: import('./types').KdsCollapsibleVariant;
66
112
  topBorder?: boolean;
67
113
  bottomBorder?: boolean;
68
- description?: string;
114
+ expandable?: boolean;
115
+ toggle?: import('./types').KdsCollapsibleToggle;
116
+ } & {
117
+ headline?: never;
118
+ ariaLabel: string;
119
+ } & {
120
+ description: string;
69
121
  subText?: string;
122
+ } & {
70
123
  leadingIcon?: import('../../..').KdsIconName;
124
+ } & __VLS_ModelProps) | ({
125
+ variant?: import('./types').KdsCollapsibleVariant;
126
+ topBorder?: boolean;
127
+ bottomBorder?: boolean;
71
128
  expandable?: boolean;
72
- toggle?: import('./types').KdsCollapsableToggle;
129
+ toggle?: import('./types').KdsCollapsibleToggle;
73
130
  } & {
74
131
  headline?: never;
75
132
  ariaLabel: string;
133
+ } & {
134
+ description?: never;
135
+ subText?: never;
136
+ } & {
137
+ leadingIcon?: never;
76
138
  } & __VLS_ModelProps)> & Readonly<{
77
139
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
78
140
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -84,4 +146,4 @@ type __VLS_WithSlots<T, S> = T & {
84
146
  $slots: S;
85
147
  };
86
148
  };
87
- //# sourceMappingURL=KdsCollapsable.vue.d.ts.map
149
+ //# sourceMappingURL=KdsCollapsible.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KdsCollapsible.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Collapsible/KdsCollapsible.vue"],"names":[],"mappings":"AAkVA,KAAK,WAAW,GAAG;IACjB;;;;;OAKG;IACH,OAAO,CAAC,IAAI,OAAO,CAAC;IACpB;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,OAAO,CAAC;IACrB;;;;OAIG;IACH,OAAO,IAAI,OAAO,CAAC;CACpB,CAAC;AAOF,KAAK,gBAAgB,GAAG;IACxB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AA6NF,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const kdsCollapsibleVariant: {
2
+ /** A standalone section with a bold headline, description and subtext. */
3
+ readonly SECTION: "section";
4
+ /** A compact row with non-wrapping texts for inline text bodies, e.g. AI tool calls. */
5
+ readonly INLINE: "inline";
6
+ };
7
+ export declare const kdsCollapsibleVariants: ("section" | "inline")[];
8
+ export declare const kdsCollapsibleToggle: {
9
+ /** The whole header toggles the content. */
10
+ readonly HEADER: "header";
11
+ /** Only a chevron button toggles the content; the rest of the header does not. */
12
+ readonly CHEVRON: "chevron";
13
+ };
14
+ export declare const kdsCollapsibleToggles: ("header" | "chevron")[];
15
+ //# sourceMappingURL=enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Collapsible/enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;IAChC,0EAA0E;;IAE1E,wFAAwF;;CAEhF,CAAC;AAEX,eAAO,MAAM,sBAAsB,0BAAuC,CAAC;AAE3E,eAAO,MAAM,oBAAoB;IAC/B,4CAA4C;;IAE5C,kFAAkF;;CAE1E,CAAC;AAEX,eAAO,MAAM,qBAAqB,0BAAsC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { default as KdsCollapsible } from './KdsCollapsible.vue';
2
+ export type { KdsCollapsibleProps, KdsCollapsibleToggle, KdsCollapsibleVariant, } from './types';
3
+ export { kdsCollapsibleToggle, kdsCollapsibleToggles, kdsCollapsibleVariant, kdsCollapsibleVariants, } from './enums';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Collapsible/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACjE,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,SAAS,CAAC"}