@knime/kds-components 8.2.2 → 9.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.
@@ -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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/kds-components",
3
- "version": "8.2.2",
3
+ "version": "9.0.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.0.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.0.0",
46
+ "@knime/kds-table": "^9.0.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",