@knime/kds-components 13.4.0 → 13.5.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,87 @@
1
+ type __VLS_Slots = {
2
+ /**
3
+ * Overrides the leading header content. In the default `header` toggle mode
4
+ * it renders inside the header `<button>`, so clicks here also toggle the
5
+ * row; it should hold only phrasing, non-interactive content. In `chevron`
6
+ * toggle mode it may hold interactive content such as links.
7
+ */
8
+ leading?(): unknown;
9
+ /**
10
+ * Trailing header content, e.g. detail info or add-ons such as a badge. In
11
+ * the default `header` toggle mode it renders inside the header `<button>`,
12
+ * so clicks here also toggle the row; it should hold only phrasing,
13
+ * non-interactive content. In `chevron` toggle mode it may hold interactive
14
+ * content.
15
+ */
16
+ trailing?(): unknown;
17
+ /**
18
+ * Content revealed when the collapsable is expanded.
19
+ */
20
+ default(): unknown;
21
+ };
22
+ type __VLS_ModelProps = {
23
+ /** Whether the collapsable is expanded. */
24
+ modelValue?: boolean;
25
+ };
26
+ declare const __VLS_base: import('vue').DefineComponent<({
27
+ size?: import('./types').KdsCollapsableSize;
28
+ topBorder?: boolean;
29
+ bottomBorder?: boolean;
30
+ description?: string;
31
+ subText?: string;
32
+ leadingIcon?: import('../../..').KdsIconName;
33
+ expandable?: boolean;
34
+ toggle?: import('./types').KdsCollapsableToggle;
35
+ } & {
36
+ headline: string;
37
+ ariaLabel?: never;
38
+ } & __VLS_ModelProps) | ({
39
+ size?: import('./types').KdsCollapsableSize;
40
+ topBorder?: boolean;
41
+ bottomBorder?: boolean;
42
+ description?: string;
43
+ subText?: string;
44
+ leadingIcon?: import('../../..').KdsIconName;
45
+ expandable?: boolean;
46
+ toggle?: import('./types').KdsCollapsableToggle;
47
+ } & {
48
+ headline?: never;
49
+ ariaLabel: string;
50
+ } & __VLS_ModelProps), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
51
+ "update:modelValue": (value: boolean) => any;
52
+ }, string, import('vue').PublicProps, Readonly<({
53
+ size?: import('./types').KdsCollapsableSize;
54
+ topBorder?: boolean;
55
+ bottomBorder?: boolean;
56
+ description?: string;
57
+ subText?: string;
58
+ leadingIcon?: import('../../..').KdsIconName;
59
+ expandable?: boolean;
60
+ toggle?: import('./types').KdsCollapsableToggle;
61
+ } & {
62
+ headline: string;
63
+ ariaLabel?: never;
64
+ } & __VLS_ModelProps) | ({
65
+ size?: import('./types').KdsCollapsableSize;
66
+ topBorder?: boolean;
67
+ bottomBorder?: boolean;
68
+ description?: string;
69
+ subText?: string;
70
+ leadingIcon?: import('../../..').KdsIconName;
71
+ expandable?: boolean;
72
+ toggle?: import('./types').KdsCollapsableToggle;
73
+ } & {
74
+ headline?: never;
75
+ ariaLabel: string;
76
+ } & __VLS_ModelProps)> & Readonly<{
77
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
78
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
79
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
80
+ declare const _default: typeof __VLS_export;
81
+ export default _default;
82
+ type __VLS_WithSlots<T, S> = T & {
83
+ new (): {
84
+ $slots: S;
85
+ };
86
+ };
87
+ //# sourceMappingURL=KdsCollapsable.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KdsCollapsable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Collapsable/KdsCollapsable.vue"],"names":[],"mappings":"AAwSA,KAAK,WAAW,GAAG;IACjB;;;;;OAKG;IACH,OAAO,CAAC,IAAI,OAAO,CAAC;IACpB;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,OAAO,CAAC;IACrB;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC;CACpB,CAAC;AAOF,KAAK,gBAAgB,GAAG;IACxB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AA4MF,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,13 @@
1
+ export declare const kdsCollapsableSize: {
2
+ readonly LARGE: "large";
3
+ readonly SMALL: "small";
4
+ };
5
+ export declare const kdsCollapsableSizes: ("small" | "large")[];
6
+ export declare const kdsCollapsableToggle: {
7
+ /** The whole header toggles the content. */
8
+ readonly HEADER: "header";
9
+ /** Only a chevron button toggles the content; the rest of the header does not. */
10
+ readonly CHEVRON: "chevron";
11
+ };
12
+ export declare const kdsCollapsableToggles: ("header" | "chevron")[];
13
+ //# sourceMappingURL=enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Collapsable/enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AAEX,eAAO,MAAM,mBAAmB,uBAAoC,CAAC;AAErE,eAAO,MAAM,oBAAoB;IAC/B,4CAA4C;;IAE5C,kFAAkF;;CAE1E,CAAC;AAEX,eAAO,MAAM,qBAAqB,0BAAsC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { default as KdsCollapsable } from './KdsCollapsable.vue';
2
+ export type * from './types';
3
+ export { kdsCollapsableSize, kdsCollapsableSizes, kdsCollapsableToggle, kdsCollapsableToggles, } from './enums';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Collapsable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACjE,mBAAmB,SAAS,CAAC;AAE7B,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,69 @@
1
+ import { KdsIconName } from '../../../components/accessories/Icon/types';
2
+ import { kdsCollapsableSize, kdsCollapsableToggle } from './enums';
3
+ export type KdsCollapsableSize = (typeof kdsCollapsableSize)[keyof typeof kdsCollapsableSize];
4
+ export type KdsCollapsableToggle = (typeof kdsCollapsableToggle)[keyof typeof kdsCollapsableToggle];
5
+ type KdsCollapsableCommonProps = {
6
+ /**
7
+ * Visual size of the collapsable.
8
+ *
9
+ * `large` stacks a styled headline, description and subtext and wraps.
10
+ * `small` is intended for compact, inline use cases and keeps its header
11
+ * content on a single line, truncating overflow.
12
+ */
13
+ size?: KdsCollapsableSize;
14
+ /**
15
+ * Renders a divider above the header.
16
+ */
17
+ topBorder?: boolean;
18
+ /**
19
+ * Renders a divider below the component.
20
+ */
21
+ bottomBorder?: boolean;
22
+ /**
23
+ * Secondary text shown below the headline. Intended for `large` size.
24
+ */
25
+ description?: string;
26
+ /**
27
+ * Tertiary subtext shown below the description. Intended for `large` size.
28
+ */
29
+ subText?: string;
30
+ /**
31
+ * Icon shown before the headline.
32
+ */
33
+ leadingIcon?: KdsIconName;
34
+ /**
35
+ * Whether the row can be expanded. When `false`, the chevron is hidden and
36
+ * the header renders as a static, non-interactive row with nothing to
37
+ * expand.
38
+ */
39
+ expandable?: boolean;
40
+ /**
41
+ * Which control toggles the disclosure.
42
+ *
43
+ * `header` (default) makes the whole header a toggle button — use it when
44
+ * the header has no interactive content. `chevron` moves the toggle to a
45
+ * dedicated chevron button, leaving the rest of the header free for
46
+ * interactive content such as links.
47
+ */
48
+ toggle?: KdsCollapsableToggle;
49
+ };
50
+ type WithHeadline = {
51
+ /**
52
+ * Headline shown on the leading side. Rendered as a bold title in `large`
53
+ * and as body text in `small`. Also names the toggle for assistive
54
+ * technology.
55
+ */
56
+ headline: string;
57
+ ariaLabel?: never;
58
+ };
59
+ type WithoutHeadline = {
60
+ headline?: never;
61
+ /**
62
+ * Accessible name of the toggle, used as is in both toggle modes. Required
63
+ * when no `headline` is present.
64
+ */
65
+ ariaLabel: string;
66
+ };
67
+ export type KdsCollapsableProps = KdsCollapsableCommonProps & (WithHeadline | WithoutHeadline);
68
+ export {};
69
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/panels/Collapsable/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAE9E,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE/D,MAAM,MAAM,oBAAoB,GAC9B,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEnE,KAAK,yBAAyB,GAAG;IAC/B;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,KAAK,CAAC;CACnB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,GACzD,CAAC,YAAY,GAAG,eAAe,CAAC,CAAC"}
@@ -1,5 +1,7 @@
1
1
  export * from './Accordion';
2
2
  export type * from './Accordion';
3
+ export * from './Collapsable';
4
+ export type * from './Collapsable';
3
5
  export * from './Panel';
4
6
  export type * from './Panel';
5
7
  export * from './SplitPanel';
@@ -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;AAElC,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,eAAe,CAAC;AAC9B,mBAAmB,eAAe,CAAC;AAEnC,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": "13.4.0",
3
+ "version": "13.5.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.4.0",
38
+ "@knime/kds-styles": "^13.5.0",
39
39
  "@knime/utils": "^2.0.4",
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.4.0",
46
- "@knime/kds-table": "^13.4.0",
45
+ "@knime/kds-code-editor": "^13.5.0",
46
+ "@knime/kds-table": "^13.5.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",