@knime/kds-components 14.2.0 → 14.3.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.
- package/CHANGELOG.md +11 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/src/components/buttons/ActionButton/ActionButton.vue.d.ts +16 -0
- package/dist/src/components/buttons/ActionButton/ActionButton.vue.d.ts.map +1 -1
- package/dist/src/components/buttons/ActionButton/enums.d.ts +2 -1
- package/dist/src/components/buttons/ActionButton/enums.d.ts.map +1 -1
- package/dist/src/components/buttons/ActionButton/types.d.ts +11 -0
- package/dist/src/components/buttons/ActionButton/types.d.ts.map +1 -1
- package/dist/src/components/feedback/EmptyState/types.d.ts +4 -2
- package/dist/src/components/feedback/EmptyState/types.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -25,6 +25,14 @@ declare const __VLS_export: import('vue').DefineComponent<({
|
|
|
25
25
|
} & {
|
|
26
26
|
size?: KdsButtonSize;
|
|
27
27
|
onClick?: (event: MouseEvent) => void;
|
|
28
|
+
}) | ({
|
|
29
|
+
type: "menuButton";
|
|
30
|
+
props: import('..').KdsMenuButtonProps & {
|
|
31
|
+
size?: never;
|
|
32
|
+
};
|
|
33
|
+
} & {
|
|
34
|
+
size?: KdsButtonSize;
|
|
35
|
+
onClick?: (event: MouseEvent) => void;
|
|
28
36
|
}), {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<({
|
|
29
37
|
type: "button";
|
|
30
38
|
props: import('..').KdsButtonProps & {
|
|
@@ -51,6 +59,14 @@ declare const __VLS_export: import('vue').DefineComponent<({
|
|
|
51
59
|
} & {
|
|
52
60
|
size?: KdsButtonSize;
|
|
53
61
|
onClick?: (event: MouseEvent) => void;
|
|
62
|
+
}) | ({
|
|
63
|
+
type: "menuButton";
|
|
64
|
+
props: import('..').KdsMenuButtonProps & {
|
|
65
|
+
size?: never;
|
|
66
|
+
};
|
|
67
|
+
} & {
|
|
68
|
+
size?: KdsButtonSize;
|
|
69
|
+
onClick?: (event: MouseEvent) => void;
|
|
54
70
|
})> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
55
71
|
declare const _default: typeof __VLS_export;
|
|
56
72
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/ActionButton/ActionButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActionButton.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/ActionButton/ActionButton.vue"],"names":[],"mappings":"AAiDA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AA8G9C,QAAA,MAAM,YAAY;;;YAlHlB,CA3BI;;;;WAqCO,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;;;YAXzC,CAtB+C;;;WAgCpC,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;;;YAXzC,CAbQ;;;;WAuBG,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;;;YAbxB,CAAC;;;WAYP,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;;;YAXzC,CA3BI;;;;WAqCO,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;;;YAXzC,CAtB+C;;;WAgCpC,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;;;YAXzC,CAbQ;;;;WAuBG,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;;;;YAbxB,CAAC;;;WAYP,aAAa;cACV,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI;kGAyGvC,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -2,6 +2,7 @@ export declare const kdsActionButtonType: {
|
|
|
2
2
|
readonly BUTTON: "button";
|
|
3
3
|
readonly LINK_BUTTON: "linkButton";
|
|
4
4
|
readonly SPLIT_BUTTON: "splitButton";
|
|
5
|
+
readonly MENU_BUTTON: "menuButton";
|
|
5
6
|
};
|
|
6
|
-
export declare const kdsActionButtonTypes: ("button" | "linkButton" | "splitButton")[];
|
|
7
|
+
export declare const kdsActionButtonTypes: ("button" | "linkButton" | "splitButton" | "menuButton")[];
|
|
7
8
|
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/ActionButton/enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/ActionButton/enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;CAKtB,CAAC;AAEX,eAAO,MAAM,oBAAoB,4DAAqC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { KdsButtonProps } from '../KdsButton';
|
|
2
|
+
import { KdsMenuButtonProps } from '../KdsMenuButton/types';
|
|
2
3
|
import { KdsSplitButtonProps } from '../KdsSplitButton/types';
|
|
3
4
|
import { KdsLinkButtonProps } from '../links/KdsLinkButton';
|
|
4
5
|
import { kdsActionButtonType } from './enums';
|
|
@@ -26,5 +27,15 @@ export type KdsActionButtonProps = {
|
|
|
26
27
|
};
|
|
27
28
|
/** Click callback for the primary button */
|
|
28
29
|
onClick: (event: MouseEvent) => void;
|
|
30
|
+
} | {
|
|
31
|
+
/**
|
|
32
|
+
* Type of the action button: a button that opens a menu. Menu items
|
|
33
|
+
* act through the `handler` of each `KdsMenuItem`.
|
|
34
|
+
*/
|
|
35
|
+
type: "menuButton";
|
|
36
|
+
/** Properties of the corresponding menu button */
|
|
37
|
+
props: KdsMenuButtonProps & {
|
|
38
|
+
size?: never;
|
|
39
|
+
};
|
|
29
40
|
};
|
|
30
41
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/ActionButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,MAAM,mBAAmB,GAC7B,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE,MAAM,MAAM,oBAAoB,GAC5B;IACE,gCAAgC;IAChC,IAAI,EAAE,QAAQ,CAAC;IACf,kDAAkD;IAClD,KAAK,EAAE,cAAc,GAAG;QAAE,IAAI,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC;IACzC,qBAAqB;IACrB,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACtC,GACD;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,kBAAkB,GAAG;QAAE,IAAI,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC;CAC9C,GACD;IACE,qEAAqE;IACrE,IAAI,EAAE,aAAa,CAAC;IACpB,mDAAmD;IACnD,KAAK,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,KAAK,CAAA;KAAE,CAAC;IAC9C,4CAA4C;IAC5C,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACtC,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/buttons/ActionButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,c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
|
/**
|
|
18
18
|
* Primary action button. Set `type: "button"` to render an action button
|
|
19
|
-
* (with an `onClick` callback)
|
|
20
|
-
* button (with `to`)
|
|
19
|
+
* (with an `onClick` callback), `type: "linkButton"` to render a link
|
|
20
|
+
* button (with `to`), `type: "splitButton"` to render a split button or
|
|
21
|
+
* `type: "menuButton"` to render a button that opens a menu (its items act
|
|
22
|
+
* through their `handler`).
|
|
21
23
|
*/
|
|
22
24
|
primaryAction: KdsActionButtonProps;
|
|
23
25
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/EmptyState/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAExE,KAAK,sBAAsB,GAAG;IAC5B,uDAAuD;IACvD,QAAQ,EAAE,MAAM,CAAC;IACjB,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4EAA4E;IAC5E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gGAAgG;IAChG,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,gCAAgC,GAAG,sBAAsB,GAAG;IAC/D,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB,CAAC;AAEF,KAAK,6BAA6B,GAAG,sBAAsB,GAAG;IAC5D
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/feedback/EmptyState/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAExE,KAAK,sBAAsB,GAAG;IAC5B,uDAAuD;IACvD,QAAQ,EAAE,MAAM,CAAC;IACjB,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4EAA4E;IAC5E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gGAAgG;IAChG,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,gCAAgC,GAAG,sBAAsB,GAAG;IAC/D,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB,CAAC;AAEF,KAAK,6BAA6B,GAAG,sBAAsB,GAAG;IAC5D;;;;;;OAMG;IACH,aAAa,EAAE,oBAAoB,CAAC;IACpC;;;OAGG;IACH,eAAe,CAAC,EAAE,oBAAoB,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC5B,gCAAgC,GAAG,6BAA6B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/kds-components",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.3.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": "^14.
|
|
38
|
+
"@knime/kds-styles": "^14.3.0",
|
|
39
39
|
"@knime/utils": "^4.0.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": "^14.
|
|
46
|
-
"@knime/kds-table": "^14.
|
|
45
|
+
"@knime/kds-code-editor": "^14.3.0",
|
|
46
|
+
"@knime/kds-table": "^14.3.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",
|