@knime/kds-components 9.0.0 → 9.1.1
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.
- package/CHANGELOG.md +20 -0
- package/dist/index.css +31 -31
- package/dist/index.js +73 -44
- package/dist/index.js.map +1 -1
- package/dist/src/components/buttons/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue.d.ts.map +1 -1
- package/dist/src/components/buttons/ResponsiveButtonGroup/types.d.ts +11 -0
- package/dist/src/components/buttons/ResponsiveButtonGroup/types.d.ts.map +1 -1
- package/dist/src/layouts/explorer/FileExplorer/FileExplorerItem.vue.d.ts.map +1 -1
- package/dist/src/layouts/explorer/FileExplorer/FileExplorerItemBack.vue.d.ts.map +1 -1
- package/dist/src/layouts/explorer/FileExplorer/FileExplorerItemBase.vue.d.ts.map +1 -1
- package/dist/src/util/index.d.ts +2 -0
- package/dist/src/util/index.d.ts.map +1 -1
- package/dist/src/util/useKdsNameValidator.d.ts +41 -0
- package/dist/src/util/useKdsNameValidator.d.ts.map +1 -0
- package/package.json +4 -4
- package/dist/src/layouts/explorer/FileExplorer/useNameValidator/index.d.ts +0 -2
- package/dist/src/layouts/explorer/FileExplorer/useNameValidator/index.d.ts.map +0 -1
- package/dist/src/layouts/explorer/FileExplorer/useNameValidator/useNameValidator.d.ts +0 -13
- package/dist/src/layouts/explorer/FileExplorer/useNameValidator/useNameValidator.d.ts.map +0 -1
package/dist/src/components/buttons/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdsResponsiveButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KdsResponsiveButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue"],"names":[],"mappings":"AA+WA,OAAO,KAAK,EAEV,6BAA6B,EAC9B,MAAM,SAAS,CAAC;AAkXjB,QAAA,MAAM,YAAY,sUAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { KdsIconName } from '../../../components/accessories';
|
|
2
2
|
import { KdsButtonProps, KdsLinkButtonProps, KdsMenuButtonProps, KdsProgressButtonProps, KdsSplitButtonProps, KdsToggleButtonProps } from '../../../components/buttons';
|
|
3
|
+
import { KdsMenuItem } from '../../../components/lists';
|
|
3
4
|
import { KdsProgressButtonState } from '../KdsProgressButton';
|
|
4
5
|
import { kdsResponsiveButtonGroupAlignment } from './enums';
|
|
5
6
|
export type KdsResponsiveButtonGroupAlignment = (typeof kdsResponsiveButtonGroupAlignment)[keyof typeof kdsResponsiveButtonGroupAlignment];
|
|
@@ -99,6 +100,16 @@ export type KdsResponsiveButtonGroupProps = {
|
|
|
99
100
|
* Horizontal alignment of the button group.
|
|
100
101
|
*/
|
|
101
102
|
alignment?: KdsResponsiveButtonGroupAlignment;
|
|
103
|
+
/**
|
|
104
|
+
* Menu items that live in the overflow menu from the start, regardless of
|
|
105
|
+
* available space. Whenever this is non-empty, the overflow menu button
|
|
106
|
+
* always renders (and its width is always reserved), even if every entry
|
|
107
|
+
* in `buttons` currently fits in the row. Buttons that overflow out of the
|
|
108
|
+
* row are prepended to this list, separated from it by a divider.
|
|
109
|
+
* Ids must be unique across `buttons` and `menuActions`, since both end up
|
|
110
|
+
* in the same menu.
|
|
111
|
+
*/
|
|
112
|
+
menuActions?: KdsMenuItem[];
|
|
102
113
|
};
|
|
103
114
|
export {};
|
|
104
115
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/ResponsiveButtonGroup/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE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;;;;OAIG;IACH,OAAO,EAAE,8BAA8B,EAAE,CAAC;IAE1C;;OAEG;IACH,SAAS,CAAC,EAAE,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/ResponsiveButtonGroup/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAEnE,OAAO,EAAE,iCAAiC,EAAE,MAAM,SAAS,CAAC;AAE5D,MAAM,MAAM,iCAAiC,GAC3C,CAAC,OAAO,iCAAiC,CAAC,CAAC,MAAM,OAAO,iCAAiC,CAAC,CAAC;AAa7F,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,cAAc,CAAC;IAC1B,aAAa,EAAE,kBAAkB,CAAC;IAClC,cAAc,EAAE,mBAAmB,CAAC;IACpC,aAAa,EAAE,kBAAkB,CAAC;IAClC,iBAAiB,EAAE,sBAAsB,GAAG;QAC1C,KAAK,CAAC,EAAE,sBAAsB,CAAC;KAChC,CAAC;IACF,eAAe,EAAE,oBAAoB,GAAG;QACtC,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB,CAAC;CACH,CAAC;AAEF,KAAK,SAAS,GAAG,MAAM,aAAa,CAAC;AAErC,KAAK,SAAS,CAAC,CAAC,SAAS,SAAS,IAAI,IAAI,CACxC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,EAC5C,MAAM,CACP,CAAC;AAEF;;;;;;;;GAQG;AACH,KAAK,gBAAgB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;CAAE,CAAC,CAAC;AAE7C,MAAM,MAAM,8BAA8B,GACtC,KAAK,CAAC,WAAW,CAAC,GAClB,KAAK,CAAC,eAAe,CAAC,GACtB,KAAK,CAAC,gBAAgB,CAAC,GACvB,KAAK,CAAC,eAAe,CAAC,GACtB,KAAK,CAAC,mBAAmB,CAAC,GAC1B,KAAK,CAAC,iBAAiB,CAAC,CAAC;AAE7B,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;;;OAIG;IACH,OAAO,EAAE,8BAA8B,EAAE,CAAC;IAE1C;;OAEG;IACH,SAAS,CAAC,EAAE,iCAAiC,CAAC;IAE9C;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;CAC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileExplorerItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/explorer/FileExplorer/FileExplorerItem.vue"],"names":[],"mappings":"AACA;
|
|
1
|
+
{"version":3,"file":"FileExplorerItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/explorer/FileExplorer/FileExplorerItem.vue"],"names":[],"mappings":"AACA;AA6SA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,KAAK,KAAK,GAAG;IACX,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAmGF,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,WAAW,CAAC,IAAI,OAAO,CAAC;IACxB;;OAEG;IACH,CAAC,IAAI,EAAE,MAAM,GACT,CAAC,CAAC,KAAK,EAAE;QAAE,cAAc,EAAE,OAAO,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,CAAC,GACtE,SAAS,CAAC;CACf,CAAC;AAmTF,QAAA,MAAM,UAAU;;;;;;;;;;;;gBA7YuB,MAAM;iBAAW,MAAM;;;;;;;;;;;;;;;gBAAvB,MAAM;iBAAW,MAAM;;;;uBAtBxC,OAAO;6EAua3B,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileExplorerItemBack.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/explorer/FileExplorer/FileExplorerItemBack.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FileExplorerItemBack.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/explorer/FileExplorer/FileExplorerItemBack.vue"],"names":[],"mappings":"AAgDA,KAAK,KAAK,GAAG;IACX,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAiEF,QAAA,MAAM,YAAY,sRAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileExplorerItemBase.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/explorer/FileExplorer/FileExplorerItemBase.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FileExplorerItemBase.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/explorer/FileExplorer/FileExplorerItemBase.vue"],"names":[],"mappings":"wBAwHqB,OAAO,YAAY;AAAxC,wBAAyC;AA4CzC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAkBhB,CAAC"}
|
package/dist/src/util/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export { useKdsDarkMode } from './useKdsDarkMode';
|
|
2
2
|
export { useKdsIsTruncated } from './useKdsIsTruncated';
|
|
3
3
|
export { useKdsMultiSelection } from './multiSelection/useKdsMultiSelection';
|
|
4
|
+
export { useKdsNameValidator } from './useKdsNameValidator';
|
|
4
5
|
export { kdsDarkModeType, kdsDarkModeTypes } from './enums';
|
|
5
6
|
export type * from './useKdsDarkMode';
|
|
6
7
|
export type { KdsMultiSelectionOptions, KdsMultiSelectionReturn, } from './multiSelection/useKdsMultiSelection';
|
|
7
8
|
export type { KdsMultiSelectionState } from './multiSelection/multiSelectionStateService';
|
|
9
|
+
export type { KdsNameValidatorOptions, KdsNameValidatorReturn, } from './useKdsNameValidator';
|
|
8
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/util/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/util/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG5D,mBAAmB,kBAAkB,CAAC;AACtC,YAAY,EACV,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,YAAY,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAC1F,YAAY,EACV,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
export type KdsNameValidatorOptions = {
|
|
3
|
+
/** The name to validate. Leading and trailing spaces are removed first. */
|
|
4
|
+
name: Ref<string>;
|
|
5
|
+
/** Names that are already taken. The comparison is exact and case-sensitive. */
|
|
6
|
+
blacklistedNames: Ref<Array<string>>;
|
|
7
|
+
/** Replaces the default message for a name that is already taken. */
|
|
8
|
+
unavailableNameMessage?: string;
|
|
9
|
+
};
|
|
10
|
+
export type KdsNameValidatorReturn = {
|
|
11
|
+
isValid: ComputedRef<boolean>;
|
|
12
|
+
errorMessage: ComputedRef<string>;
|
|
13
|
+
cleanedName: ComputedRef<string>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Validates a name for use as a file or folder name.
|
|
17
|
+
*
|
|
18
|
+
* A name is valid when it obeys all of these rules:
|
|
19
|
+
* - It does not start with a dot (`.`).
|
|
20
|
+
* - It does not end with a dot (`.`).
|
|
21
|
+
* - It contains none of the characters `*?#:";<>%~|/\`.
|
|
22
|
+
* - It is 255 characters long or shorter.
|
|
23
|
+
* - It is not one of `blacklistedNames`.
|
|
24
|
+
*
|
|
25
|
+
* No rule requires a non-empty name. An empty name is valid. A name of only
|
|
26
|
+
* whitespace is valid too, and gives an empty `cleanedName`. Reject these in
|
|
27
|
+
* the caller when your use case needs a name.
|
|
28
|
+
*
|
|
29
|
+
* Every rule applies to the name after the leading and trailing spaces are
|
|
30
|
+
* removed. Use `cleanedName` as the value to store.
|
|
31
|
+
*
|
|
32
|
+
* The messages are in English and cannot be translated. Use
|
|
33
|
+
* `unavailableNameMessage` to replace the message for a name that is already
|
|
34
|
+
* taken.
|
|
35
|
+
*
|
|
36
|
+
* @param options - The name to validate and the names that are already taken.
|
|
37
|
+
* @returns The validity, the message for the first broken rule, and the name
|
|
38
|
+
* without the leading and trailing spaces.
|
|
39
|
+
*/
|
|
40
|
+
export declare const useKdsNameValidator: (options: KdsNameValidatorOptions) => KdsNameValidatorReturn;
|
|
41
|
+
//# sourceMappingURL=useKdsNameValidator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKdsNameValidator.d.ts","sourceRoot":"","sources":["../../../src/util/useKdsNameValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,GAAG,EAAY,MAAM,KAAK,CAAC;AAQ3D,MAAM,MAAM,uBAAuB,GAAG;IACpC,2EAA2E;IAC3E,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAClB,gFAAgF;IAChF,gBAAgB,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IACrC,qEAAqE;IACrE,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC9B,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAClC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,mBAAmB,GAC9B,SAAS,uBAAuB,KAC/B,sBA+CF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/kds-components",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.1.1",
|
|
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": "^9.
|
|
38
|
+
"@knime/kds-styles": "^9.1.1",
|
|
39
39
|
"@knime/utils": "^2.0.2",
|
|
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": "^9.
|
|
46
|
-
"@knime/kds-table": "^9.
|
|
45
|
+
"@knime/kds-code-editor": "^9.1.1",
|
|
46
|
+
"@knime/kds-table": "^9.1.1",
|
|
47
47
|
"@storybook/vue3-vite": "^10.4.6",
|
|
48
48
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
49
49
|
"@vue/test-utils": "^2.4.11",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/layouts/explorer/FileExplorer/useNameValidator/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
type UseNameValidatorOptions = {
|
|
3
|
-
name: Ref<string>;
|
|
4
|
-
blacklistedNames: Ref<Array<string>>;
|
|
5
|
-
unavailableNameMessage?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const useNameValidator: (options: UseNameValidatorOptions) => {
|
|
8
|
-
isValid: import('vue').ComputedRef<boolean>;
|
|
9
|
-
errorMessage: import('vue').ComputedRef<string>;
|
|
10
|
-
cleanedName: import('vue').ComputedRef<string>;
|
|
11
|
-
};
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=useNameValidator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useNameValidator.d.ts","sourceRoot":"","sources":["../../../../../../src/layouts/explorer/FileExplorer/useNameValidator/useNameValidator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAY,MAAM,KAAK,CAAC;AAQzC,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAClB,gBAAgB,EAAE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IACrC,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,SAAS,uBAAuB;;;;CA+ChE,CAAC"}
|