@knime/kds-components 8.2.2 → 9.1.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 (29) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/index.css +68 -15
  3. package/dist/index.js +693 -457
  4. package/dist/index.js.map +1 -1
  5. package/dist/src/components/buttons/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue.d.ts.map +1 -1
  6. package/dist/src/components/buttons/ResponsiveButtonGroup/types.d.ts +11 -0
  7. package/dist/src/components/buttons/ResponsiveButtonGroup/types.d.ts.map +1 -1
  8. package/dist/src/layouts/explorer/FileExplorer/FileExplorerItem.vue.d.ts.map +1 -1
  9. package/dist/src/layouts/panels/Pagination/KdsPagination.vue.d.ts +31 -0
  10. package/dist/src/layouts/panels/Pagination/KdsPagination.vue.d.ts.map +1 -0
  11. package/dist/src/layouts/panels/Pagination/PageNavigation.vue.d.ts +9 -0
  12. package/dist/src/layouts/panels/Pagination/PageNavigation.vue.d.ts.map +1 -0
  13. package/dist/src/layouts/panels/Pagination/PageRowRange.vue.d.ts +5 -0
  14. package/dist/src/layouts/panels/Pagination/PageRowRange.vue.d.ts.map +1 -0
  15. package/dist/src/layouts/panels/Pagination/index.d.ts +3 -0
  16. package/dist/src/layouts/panels/Pagination/index.d.ts.map +1 -0
  17. package/dist/src/layouts/panels/Pagination/types.d.ts +53 -0
  18. package/dist/src/layouts/panels/Pagination/types.d.ts.map +1 -0
  19. package/dist/src/layouts/panels/index.d.ts +2 -0
  20. package/dist/src/layouts/panels/index.d.ts.map +1 -1
  21. package/dist/src/util/index.d.ts +2 -0
  22. package/dist/src/util/index.d.ts.map +1 -1
  23. package/dist/src/util/useKdsNameValidator.d.ts +41 -0
  24. package/dist/src/util/useKdsNameValidator.d.ts.map +1 -0
  25. package/package.json +5 -5
  26. package/dist/src/layouts/explorer/FileExplorer/useNameValidator/index.d.ts +0 -2
  27. package/dist/src/layouts/explorer/FileExplorer/useNameValidator/index.d.ts.map +0 -1
  28. package/dist/src/layouts/explorer/FileExplorer/useNameValidator/useNameValidator.d.ts +0 -13
  29. package/dist/src/layouts/explorer/FileExplorer/useNameValidator/useNameValidator.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"KdsResponsiveButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue"],"names":[],"mappings":"AAmWA,OAAO,KAAK,EAEV,6BAA6B,EAC9B,MAAM,SAAS,CAAC;AAsWjB,QAAA,MAAM,YAAY,sUAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
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,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,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;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AE,GACzC;IAAE,OAAO,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;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;CAC/C,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,sB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AE,SAAS,CAAC,CAAC,CAAC,CAAC;CACpB,GACD,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,GACjC,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe,GACxC;IAAE,OAAO,CAAC,EAAE,KAAK,CAAA;CAAE,GACnB,CAAC,SAAS,iBAAiB,GACzB;IAAE,OAAO,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;CAAE,GACzC;IAAE,OAAO,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;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;AA4SA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAGnD,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
+ {"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"}
@@ -0,0 +1,31 @@
1
+ import { KdsPaginationProps } from './types';
2
+ type __VLS_Props = KdsPaginationProps;
3
+ type __VLS_Slots = {
4
+ /**
5
+ * Trailing actions rendered to the right of the page-size menu, e.g. a settings button.
6
+ */
7
+ actions?(): unknown;
8
+ };
9
+ type __VLS_ModelProps = {
10
+ /** Index of the currently displayed page (1-based). */
11
+ "currentPage"?: number;
12
+ /** Number of rows shown per page. */
13
+ "pageSize": number;
14
+ };
15
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
16
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ "update:currentPage": (value: number) => any;
18
+ "update:pageSize": (value: number) => any;
19
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
+ "onUpdate:currentPage"?: ((value: number) => any) | undefined;
21
+ "onUpdate:pageSize"?: ((value: number) => any) | undefined;
22
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
23
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
+ declare const _default: typeof __VLS_export;
25
+ export default _default;
26
+ type __VLS_WithSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
31
+ //# sourceMappingURL=KdsPagination.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KdsPagination.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Pagination/KdsPagination.vue"],"names":[],"mappings":"AA6HA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,KAAK,WAAW,GAAG,kBAAkB,CAAC;AAetC,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,OAAO,CAAC,IAAI,OAAO,CAAC;CACrB,CAAC;AAkCF,KAAK,gBAAgB,GAAG;IACxB,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qCAAqC;IACrC,UAAU,EAAE,MAAM,CAAC;CAClB,CAAC;AAMF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA+HxD,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,9 @@
1
+ import { PageNavigationProps } from './types';
2
+ declare const __VLS_export: import('vue').DefineComponent<PageNavigationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
+ pageChange: (newPageNumber: number) => any;
4
+ }, string, import('vue').PublicProps, Readonly<PageNavigationProps> & Readonly<{
5
+ onPageChange?: ((newPageNumber: number) => any) | undefined;
6
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ //# sourceMappingURL=PageNavigation.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageNavigation.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Pagination/PageNavigation.vue"],"names":[],"mappings":"AAuFA,OAAO,KAAK,EAAuB,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAqLxE,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,5 @@
1
+ import { PageRowRangeProps } from './types';
2
+ declare const __VLS_export: import('vue').DefineComponent<PageRowRangeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PageRowRangeProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
5
+ //# sourceMappingURL=PageRowRange.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageRowRange.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Pagination/PageRowRange.vue"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAiFjD,QAAA,MAAM,YAAY,8SAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,3 @@
1
+ export { default as KdsPagination } from './KdsPagination.vue';
2
+ export type { KdsPaginationProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Pagination/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC/D,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,53 @@
1
+ export type KdsPaginationProps = {
2
+ /** Total number of rows across all pages. */
3
+ totalRows: number;
4
+ /**
5
+ * Page sizes the user can choose from. When omitted (or empty), the
6
+ * page-size selection is hidden and the page size stays fixed.
7
+ */
8
+ possiblePageSizes?: number[];
9
+ /**
10
+ * Shows a "No data" message instead of a zero row range when there are no
11
+ * rows. It does not hide the total row count.
12
+ */
13
+ showTableSize?: boolean;
14
+ /** Label used for the rows (e.g. "Rows", "Tiles"). */
15
+ rowLabel?: string;
16
+ /**
17
+ * Accessible label for the pagination landmark. Set it when a page holds
18
+ * more than one pagination, so the landmarks stay distinguishable.
19
+ */
20
+ ariaLabel?: string;
21
+ };
22
+ /** Props of the internal row-range label. Not part of the public API. */
23
+ export type PageRowRangeProps = {
24
+ /** Total number of rows across all pages. */
25
+ totalRows?: number;
26
+ /** Number of rows shown per page. */
27
+ pageSize?: number;
28
+ /** Index of the currently displayed page (1-based). */
29
+ currentPage?: number;
30
+ /** Total number of pages, as derived by `KdsPagination`. */
31
+ totalPages?: number;
32
+ /** Shows a "No data" message instead of a zero row range when there are no rows. */
33
+ showTableSize?: boolean;
34
+ /** Label used for the rows (e.g. "Rows", "Tiles"). */
35
+ rowLabel?: string;
36
+ };
37
+ /** Props of the internal page navigation. Not part of the public API. */
38
+ export type PageNavigationProps = {
39
+ /** Index of the currently displayed page (1-based). */
40
+ currentPage?: number;
41
+ /** Total number of pages. */
42
+ totalPages?: number;
43
+ /** Whether a page follows the current one. */
44
+ hasNextPage?: boolean;
45
+ /** Whether a page precedes the current one. */
46
+ hasPreviousPage?: boolean;
47
+ };
48
+ /** Emits of the internal page navigation. Not part of the public API. */
49
+ export type PageNavigationEmits = {
50
+ /** Emitted when navigating to a different page. */
51
+ pageChange: [newPageNumber: number];
52
+ };
53
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Pagination/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,yEAAyE;AACzE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oFAAoF;IACpF,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,yEAAyE;AACzE,MAAM,MAAM,mBAAmB,GAAG;IAChC,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6BAA6B;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,+CAA+C;IAC/C,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,yEAAyE;AACzE,MAAM,MAAM,mBAAmB,GAAG;IAChC,mDAAmD;IACnD,UAAU,EAAE,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;CACrC,CAAC"}
@@ -8,4 +8,6 @@ export * from './TabPanel';
8
8
  export type * from './TabPanel';
9
9
  export * from './Navigation';
10
10
  export type * from './Navigation';
11
+ export * from './Pagination';
12
+ export type * from './Pagination';
11
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/layouts/panels/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,mBAAmB,aAAa,CAAC;AAEjC,cAAc,SAAS,CAAC;AACxB,mBAAmB,SAAS,CAAC;AAE7B,cAAc,cAAc,CAAC;AAC7B,mBAAmB,cAAc,CAAC;AAElC,cAAc,YAAY,CAAC;AAC3B,mBAAmB,YAAY,CAAC;AAEhC,cAAc,cAAc,CAAC;AAC7B,mBAAmB,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/layouts/panels/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,mBAAmB,aAAa,CAAC;AAEjC,cAAc,SAAS,CAAC;AACxB,mBAAmB,SAAS,CAAC;AAE7B,cAAc,cAAc,CAAC;AAC7B,mBAAmB,cAAc,CAAC;AAElC,cAAc,YAAY,CAAC;AAC3B,mBAAmB,YAAY,CAAC;AAEhC,cAAc,cAAc,CAAC;AAC7B,mBAAmB,cAAc,CAAC;AAElC,cAAc,cAAc,CAAC;AAC7B,mBAAmB,cAAc,CAAC"}
@@ -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;AAE7E,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"}
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": "8.2.2",
3
+ "version": "9.1.0",
4
4
  "description": "Package containing basic Vue components of the KNIME Design System",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,19 +31,19 @@
31
31
  "CHANGELOG.md"
32
32
  ],
33
33
  "peerDependencies": {
34
- "@vueuse/core": "~13.8.0",
34
+ "@vueuse/core": "^14.0.0",
35
35
  "vue": "~3.5.0"
36
36
  },
37
37
  "dependencies": {
38
- "@knime/kds-styles": "^8.2.2",
38
+ "@knime/kds-styles": "^9.1.0",
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": "^8.2.2",
46
- "@knime/kds-table": "^8.2.2",
45
+ "@knime/kds-code-editor": "^9.1.0",
46
+ "@knime/kds-table": "^9.1.0",
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,2 +0,0 @@
1
- export * from './useNameValidator';
2
- //# sourceMappingURL=index.d.ts.map
@@ -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"}