@knime/kds-components 13.5.0 → 13.6.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 (32) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{KdsIcon-DWTHABhA.js → KdsIcon-C6QibTIl.js} +1 -4
  3. package/dist/{KdsIcon-DWTHABhA.js.map → KdsIcon-C6QibTIl.js.map} +1 -1
  4. package/dist/index.css +201 -49
  5. package/dist/index.js +764 -387
  6. package/dist/index.js.map +1 -1
  7. package/dist/src/components/forms/Dropzone/KdsDropzone.vue.d.ts +95 -0
  8. package/dist/src/components/forms/Dropzone/KdsDropzone.vue.d.ts.map +1 -0
  9. package/dist/src/components/forms/Dropzone/index.d.ts +3 -0
  10. package/dist/src/components/forms/Dropzone/index.d.ts.map +1 -0
  11. package/dist/src/components/forms/Dropzone/types.d.ts +54 -0
  12. package/dist/src/components/forms/Dropzone/types.d.ts.map +1 -0
  13. package/dist/src/components/forms/FileSelector/KdsFileSelector.vue.d.ts +2 -3
  14. package/dist/src/components/forms/FileSelector/KdsFileSelector.vue.d.ts.map +1 -1
  15. package/dist/src/components/forms/FileSelector/types.d.ts +3 -5
  16. package/dist/src/components/forms/FileSelector/types.d.ts.map +1 -1
  17. package/dist/src/components/forms/_helper/BaseFormFieldWrapper.vue.d.ts +4 -0
  18. package/dist/src/components/forms/_helper/BaseFormFieldWrapper.vue.d.ts.map +1 -1
  19. package/dist/src/components/forms/_helper/KdsSubText.vue.d.ts +13 -1
  20. package/dist/src/components/forms/_helper/KdsSubText.vue.d.ts.map +1 -1
  21. package/dist/src/components/forms/_helper/useFileValidation.d.ts +49 -0
  22. package/dist/src/components/forms/_helper/useFileValidation.d.ts.map +1 -0
  23. package/dist/src/components/forms/index.d.ts +2 -0
  24. package/dist/src/components/forms/index.d.ts.map +1 -1
  25. package/dist/src/layouts/explorer/FileExplorer/FileExplorerRenameModal.vue.d.ts.map +1 -1
  26. package/package.json +5 -5
  27. package/dist/speed-class-light-B2zxgRSl.js +0 -21
  28. package/dist/speed-class-light-B2zxgRSl.js.map +0 -1
  29. package/dist/speed-class-performant-DeJT7y4C.js +0 -21
  30. package/dist/speed-class-performant-DeJT7y4C.js.map +0 -1
  31. package/dist/speed-class-standard-OVM3_p1U.js +0 -21
  32. package/dist/speed-class-standard-OVM3_p1U.js.map +0 -1
@@ -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":"AAihBA,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"}
@@ -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"}
@@ -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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/kds-components",
3
- "version": "13.5.0",
3
+ "version": "13.6.0",
4
4
  "description": "Package containing basic Vue components of the KNIME Design System",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,15 +35,15 @@
35
35
  "vue": "~3.5.0"
36
36
  },
37
37
  "dependencies": {
38
- "@knime/kds-styles": "^13.5.0",
39
- "@knime/utils": "^2.0.4",
38
+ "@knime/kds-styles": "^13.6.0",
39
+ "@knime/utils": "^2.1.0",
40
40
  "consola": "^3.4.2",
41
41
  "motion": "^12.42.2",
42
42
  "temporal-polyfill": "^1.0.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@knime/kds-code-editor": "^13.5.0",
46
- "@knime/kds-table": "^13.5.0",
45
+ "@knime/kds-code-editor": "^13.6.0",
46
+ "@knime/kds-table": "^13.6.0",
47
47
  "@storybook/vue3-vite": "^10.6.2",
48
48
  "@vitejs/plugin-vue": "^6.0.8",
49
49
  "@vue/test-utils": "^2.4.11",
@@ -1,21 +0,0 @@
1
- import { createElementBlock, createElementVNode, openBlock } from "vue";
2
- //#region ../styles/dist/img/icons/speed-class-light.svg
3
- var _hoisted_1 = {
4
- xmlns: "http://www.w3.org/2000/svg",
5
- fill: "none",
6
- stroke: "currentColor",
7
- "stroke-linecap": "round",
8
- "stroke-linejoin": "round",
9
- viewBox: "0 0 12 12"
10
- };
11
- function render(_ctx, _cache) {
12
- return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
13
- d: "M1.5 7.25a4.5 4.5 0 0 1 9 0m-5.396.296-1.052-.7-.526-.35m3.536 1.638a1.062 1.062 0 1 1-2.124 0 1.062 1.062 0 0 1 2.124 0",
14
- "vector-effect": "non-scaling-stroke"
15
- }, null, -1)])]);
16
- }
17
- var speed_class_light_default = { render };
18
- //#endregion
19
- export { speed_class_light_default as default, render };
20
-
21
- //# sourceMappingURL=speed-class-light-B2zxgRSl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"speed-class-light-B2zxgRSl.js","names":["_openBlock","_createElementBlock","_createElementVNode"],"sources":["../../styles/dist/img/icons/speed-class-light.svg"],"sourcesContent":["import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"none\",\n stroke: \"currentColor\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n viewBox: \"0 0 12 12\"\n}\n\nexport function render(_ctx, _cache) {\n return (_openBlock(), _createElementBlock(\"svg\", _hoisted_1, [...(_cache[0] || (_cache[0] = [\n _createElementVNode(\"path\", {\n d: \"M1.5 7.25a4.5 4.5 0 0 1 9 0m-5.396.296-1.052-.7-.526-.35m3.536 1.638a1.062 1.062 0 1 1-2.124 0 1.062 1.062 0 0 1 2.124 0\",\n \"vector-effect\": \"non-scaling-stroke\"\n }, null, -1)\n ]))]))\n}\nexport default { render: render }"],"mappings":";;AAEA,IAAM,aAAa;CACjB,OAAO;CACP,MAAM;CACN,QAAQ;CACR,kBAAkB;CAClB,mBAAmB;CACnB,SAAS;AACX;AAEA,SAAgB,OAAO,MAAM,QAAQ;CACnC,OAAQA,UAAW,GAAGC,mBAAoB,OAAO,YAAY,CAAC,GAAI,OAAO,OAAO,OAAO,KAAK,CAC1FC,mBAAoB,QAAQ;EAC1B,GAAG;EACH,iBAAiB;CACnB,GAAG,MAAM,EAAE,CACb,EAAG,CAAC;AACN;AACA,IAAA,4BAAe,EAAU,OAAO"}
@@ -1,21 +0,0 @@
1
- import { createElementBlock, createElementVNode, openBlock } from "vue";
2
- //#region ../styles/dist/img/icons/speed-class-performant.svg
3
- var _hoisted_1 = {
4
- xmlns: "http://www.w3.org/2000/svg",
5
- fill: "none",
6
- stroke: "currentColor",
7
- "stroke-linecap": "round",
8
- "stroke-linejoin": "round",
9
- viewBox: "0 0 12 12"
10
- };
11
- function render(_ctx, _cache) {
12
- return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
13
- d: "m6.884 7.546 1.052-.7.526-.35M1.5 7.25a4.5 4.5 0 1 1 9 0m-3.438.884a1.062 1.062 0 1 1-2.124 0 1.062 1.062 0 0 1 2.124 0",
14
- "vector-effect": "non-scaling-stroke"
15
- }, null, -1)])]);
16
- }
17
- var speed_class_performant_default = { render };
18
- //#endregion
19
- export { speed_class_performant_default as default, render };
20
-
21
- //# sourceMappingURL=speed-class-performant-DeJT7y4C.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"speed-class-performant-DeJT7y4C.js","names":["_openBlock","_createElementBlock","_createElementVNode"],"sources":["../../styles/dist/img/icons/speed-class-performant.svg"],"sourcesContent":["import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"none\",\n stroke: \"currentColor\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n viewBox: \"0 0 12 12\"\n}\n\nexport function render(_ctx, _cache) {\n return (_openBlock(), _createElementBlock(\"svg\", _hoisted_1, [...(_cache[0] || (_cache[0] = [\n _createElementVNode(\"path\", {\n d: \"m6.884 7.546 1.052-.7.526-.35M1.5 7.25a4.5 4.5 0 1 1 9 0m-3.438.884a1.062 1.062 0 1 1-2.124 0 1.062 1.062 0 0 1 2.124 0\",\n \"vector-effect\": \"non-scaling-stroke\"\n }, null, -1)\n ]))]))\n}\nexport default { render: render }"],"mappings":";;AAEA,IAAM,aAAa;CACjB,OAAO;CACP,MAAM;CACN,QAAQ;CACR,kBAAkB;CAClB,mBAAmB;CACnB,SAAS;AACX;AAEA,SAAgB,OAAO,MAAM,QAAQ;CACnC,OAAQA,UAAW,GAAGC,mBAAoB,OAAO,YAAY,CAAC,GAAI,OAAO,OAAO,OAAO,KAAK,CAC1FC,mBAAoB,QAAQ;EAC1B,GAAG;EACH,iBAAiB;CACnB,GAAG,MAAM,EAAE,CACb,EAAG,CAAC;AACN;AACA,IAAA,iCAAe,EAAU,OAAO"}
@@ -1,21 +0,0 @@
1
- import { createElementBlock, createElementVNode, openBlock } from "vue";
2
- //#region ../styles/dist/img/icons/speed-class-standard.svg
3
- var _hoisted_1 = {
4
- xmlns: "http://www.w3.org/2000/svg",
5
- fill: "none",
6
- stroke: "currentColor",
7
- "stroke-linecap": "round",
8
- "stroke-linejoin": "round",
9
- viewBox: "0 0 12 12"
10
- };
11
- function render(_ctx, _cache) {
12
- return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
13
- d: "M1.5 7.25a4.5 4.5 0 1 1 9 0M6 7.072a1.062 1.062 0 1 0 0 2.125 1.062 1.062 0 0 0 0-2.125m0 0V5",
14
- "vector-effect": "non-scaling-stroke"
15
- }, null, -1)])]);
16
- }
17
- var speed_class_standard_default = { render };
18
- //#endregion
19
- export { speed_class_standard_default as default, render };
20
-
21
- //# sourceMappingURL=speed-class-standard-OVM3_p1U.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"speed-class-standard-OVM3_p1U.js","names":["_openBlock","_createElementBlock","_createElementVNode"],"sources":["../../styles/dist/img/icons/speed-class-standard.svg"],"sourcesContent":["import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"none\",\n stroke: \"currentColor\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n viewBox: \"0 0 12 12\"\n}\n\nexport function render(_ctx, _cache) {\n return (_openBlock(), _createElementBlock(\"svg\", _hoisted_1, [...(_cache[0] || (_cache[0] = [\n _createElementVNode(\"path\", {\n d: \"M1.5 7.25a4.5 4.5 0 1 1 9 0M6 7.072a1.062 1.062 0 1 0 0 2.125 1.062 1.062 0 0 0 0-2.125m0 0V5\",\n \"vector-effect\": \"non-scaling-stroke\"\n }, null, -1)\n ]))]))\n}\nexport default { render: render }"],"mappings":";;AAEA,IAAM,aAAa;CACjB,OAAO;CACP,MAAM;CACN,QAAQ;CACR,kBAAkB;CAClB,mBAAmB;CACnB,SAAS;AACX;AAEA,SAAgB,OAAO,MAAM,QAAQ;CACnC,OAAQA,UAAW,GAAGC,mBAAoB,OAAO,YAAY,CAAC,GAAI,OAAO,OAAO,OAAO,KAAK,CAC1FC,mBAAoB,QAAQ;EAC1B,GAAG;EACH,iBAAiB;CACnB,GAAG,MAAM,EAAE,CACb,EAAG,CAAC;AACN;AACA,IAAA,+BAAe,EAAU,OAAO"}