@knime/kds-components 0.25.2 → 0.26.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/dist/collection-BBXRVj4b.js +23 -0
- package/dist/collection-BBXRVj4b.js.map +1 -0
- package/dist/index.css +394 -138
- package/dist/index.js +843 -493
- package/dist/index.js.map +1 -1
- package/dist/src/accessories/Avatar/KdsAvatar.vue.d.ts.map +1 -1
- package/dist/src/accessories/Avatar/KdsAvatarCounter.vue.d.ts +4 -0
- package/dist/src/accessories/Avatar/KdsAvatarCounter.vue.d.ts.map +1 -0
- package/dist/src/accessories/Avatar/demo-user.d.ts +1 -1
- package/dist/src/accessories/Avatar/demo-user.d.ts.map +1 -1
- package/dist/src/accessories/Avatar/index.d.ts +1 -0
- package/dist/src/accessories/Avatar/index.d.ts.map +1 -1
- package/dist/src/accessories/Avatar/types.d.ts +18 -0
- package/dist/src/accessories/Avatar/types.d.ts.map +1 -1
- package/dist/src/accessories/LiveStatus/enums.d.ts +1 -1
- package/dist/src/buttons/links/KdsLink/types.d.ts +1 -1
- package/dist/src/buttons/links/KdsLink/types.d.ts.map +1 -1
- package/dist/src/buttons/links/KdsLinkButton/KdsLinkButton.vue.d.ts +4 -4
- package/dist/src/buttons/links/KdsLinkButton/types.d.ts +1 -1
- package/dist/src/buttons/links/KdsLinkButton/types.d.ts.map +1 -1
- package/dist/src/containers/ListItem/KdsListItem/enums.d.ts +2 -1
- package/dist/src/containers/ListItem/KdsListItem/enums.d.ts.map +1 -1
- package/dist/src/containers/ListItem/KdsListItem/types.d.ts +1 -1
- package/dist/src/containers/ListItem/KdsListItem/types.d.ts.map +1 -1
- package/dist/src/containers/PreviewList/KdsPreviewList/KdsPreviewList.vue.d.ts +12 -0
- package/dist/src/containers/PreviewList/KdsPreviewList/KdsPreviewList.vue.d.ts.map +1 -0
- package/dist/src/containers/PreviewList/KdsPreviewList/index.d.ts +3 -0
- package/dist/src/containers/PreviewList/KdsPreviewList/index.d.ts.map +1 -0
- package/dist/src/containers/PreviewList/KdsPreviewList/types.d.ts +48 -0
- package/dist/src/containers/PreviewList/KdsPreviewList/types.d.ts.map +1 -0
- package/dist/src/containers/PreviewList/index.d.ts +3 -0
- package/dist/src/containers/PreviewList/index.d.ts.map +1 -0
- package/dist/src/containers/index.d.ts +2 -0
- package/dist/src/containers/index.d.ts.map +1 -1
- package/dist/src/forms/inputs/Textarea/KdsTextarea.vue.d.ts.map +1 -1
- package/dist/src/layouts/Card/BaseCard.vue.d.ts +33 -0
- package/dist/src/layouts/Card/BaseCard.vue.d.ts.map +1 -0
- package/dist/src/layouts/Card/KdsCard.vue.d.ts +22 -0
- package/dist/src/layouts/Card/KdsCard.vue.d.ts.map +1 -0
- package/dist/src/layouts/Card/KdsClickableCard.vue.d.ts +50 -0
- package/dist/src/layouts/Card/KdsClickableCard.vue.d.ts.map +1 -0
- package/dist/src/layouts/Card/KdsLinkCard.vue.d.ts +46 -0
- package/dist/src/layouts/Card/KdsLinkCard.vue.d.ts.map +1 -0
- package/dist/src/layouts/{KdsCardClickable/KdsCardClickable.vue.d.ts → Card/KdsSelectableCard.vue.d.ts} +7 -9
- package/dist/src/layouts/Card/KdsSelectableCard.vue.d.ts.map +1 -0
- package/dist/src/layouts/Card/enums.d.ts.map +1 -0
- package/dist/src/layouts/Card/index.d.ts +7 -0
- package/dist/src/layouts/Card/index.d.ts.map +1 -0
- package/dist/src/layouts/Card/types.d.ts +36 -0
- package/dist/src/layouts/Card/types.d.ts.map +1 -0
- package/dist/src/layouts/ContainerHeader/KdsContainerHeader.vue.d.ts +20 -0
- package/dist/src/layouts/ContainerHeader/KdsContainerHeader.vue.d.ts.map +1 -0
- package/dist/src/layouts/ContainerHeader/index.d.ts +3 -0
- package/dist/src/layouts/ContainerHeader/index.d.ts.map +1 -0
- package/dist/src/layouts/ContainerHeader/types.d.ts +7 -0
- package/dist/src/layouts/ContainerHeader/types.d.ts.map +1 -0
- package/dist/src/layouts/TabBar/KdsTabBar.vue.d.ts.map +1 -1
- package/dist/src/layouts/index.d.ts +4 -2
- package/dist/src/layouts/index.d.ts.map +1 -1
- package/dist/src/overlays/Modal/KdsModal.vue.d.ts +1 -1
- package/dist/src/types/linkTypes.d.ts.map +1 -0
- package/package.json +2 -2
- package/dist/src/buttons/links/linkTypes.d.ts.map +0 -1
- package/dist/src/layouts/KdsCardClickable/KdsCardClickable.vue.d.ts.map +0 -1
- package/dist/src/layouts/KdsCardClickable/enums.d.ts.map +0 -1
- package/dist/src/layouts/KdsCardClickable/index.d.ts +0 -4
- package/dist/src/layouts/KdsCardClickable/index.d.ts.map +0 -1
- package/dist/src/layouts/KdsCardClickable/types.d.ts +0 -69
- package/dist/src/layouts/KdsCardClickable/types.d.ts.map +0 -1
- /package/dist/src/layouts/{KdsCardClickable → Card}/enums.d.ts +0 -0
- /package/dist/src/{buttons/links → types}/linkTypes.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './EmptyState';
|
|
2
2
|
export type * from './EmptyState';
|
|
3
|
-
export * from './
|
|
4
|
-
export type * from './
|
|
3
|
+
export * from './Card';
|
|
4
|
+
export type * from './Card';
|
|
5
5
|
export * from './PanelHeader';
|
|
6
6
|
export type * from './PanelHeader';
|
|
7
7
|
export * from './TabBar';
|
|
@@ -12,4 +12,6 @@ export * from './PanelButtonBar';
|
|
|
12
12
|
export type * from './PanelButtonBar';
|
|
13
13
|
export * from './Navigation';
|
|
14
14
|
export type * from './Navigation';
|
|
15
|
+
export * from './ContainerHeader';
|
|
16
|
+
export type * from './ContainerHeader';
|
|
15
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layouts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,mBAAmB,cAAc,CAAC;AAElC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layouts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,mBAAmB,cAAc,CAAC;AAElC,cAAc,QAAQ,CAAC;AACvB,mBAAmB,QAAQ,CAAC;AAE5B,cAAc,eAAe,CAAC;AAC9B,mBAAmB,eAAe,CAAC;AAEnC,cAAc,UAAU,CAAC;AACzB,mBAAmB,UAAU,CAAC;AAE9B,cAAc,mBAAmB,CAAC;AAClC,mBAAmB,mBAAmB,CAAC;AAEvC,cAAc,kBAAkB,CAAC;AACjC,mBAAmB,kBAAkB,CAAC;AAEtC,cAAc,cAAc,CAAC;AAC7B,mBAAmB,cAAc,CAAC;AAElC,cAAc,mBAAmB,CAAC;AAClC,mBAAmB,mBAAmB,CAAC"}
|
|
@@ -4,7 +4,7 @@ declare function __VLS_template(): {
|
|
|
4
4
|
slots: {
|
|
5
5
|
default?(_: {
|
|
6
6
|
headline: string;
|
|
7
|
-
leadingIcon: "filter" | "link" | "menu" | "time" | "stop" | "text" | "add-user" | "ai-general" | "annotation-mode" | "arrow-down" | "arrow-up" | "arrows-expand" | "arrows-move" | "arrows-order" | "back" | "bold" | "calendar" | "case-sensitive" | "center-aligned" | "checkmark" | "chevron-down" | "chevron-left-double" | "chevron-left" | "chevron-right-double" | "chevron-right" | "chevron-up" | "circle-error" | "circle-info" | "circle-question" | "circle-success" | "circle-unchecked" | "cloud-download" | "cloud-knime" | "cloud-pending-changes" | "cloud-synced" | "cloud-upload" | "cloud-workflow" | "code-block" | "color-picker" | "comment" | "component" | "connection" | "copy" | "cursor" | "data-app" | "data-value-view" | "date-time" | "db-browse" | "db-database" | "db-fetch" | "db-schema" | "db-table-view" | "db-table" | "deploy" | "detect" | "divider" | "duration" | "edit" | "education" | "error-panel" | "execute-all" | "execute" | "expand-panel" | "extension-community" | "extension" | "external-link" | "eye" | "file-export" | "file-text" | "file" | "flow-variable-default" | "flow-variable-in-out" | "flow-variable-in" | "flow-variable-out" | "folder-plus" | "folder-search" | "folder-workflow" | "folder" | "forum" | "function-catalog" | "hide-eye" | "home" | "import" | "info" | "interval" | "italic" | "
|
|
7
|
+
leadingIcon: "filter" | "link" | "menu" | "time" | "stop" | "text" | "key" | "add-user" | "ai-general" | "annotation-mode" | "arrow-down" | "arrow-up" | "arrows-expand" | "arrows-move" | "arrows-order" | "back" | "bold" | "calendar" | "case-sensitive" | "center-aligned" | "checkmark" | "chevron-down" | "chevron-left-double" | "chevron-left" | "chevron-right-double" | "chevron-right" | "chevron-up" | "circle-error" | "circle-info" | "circle-question" | "circle-success" | "circle-unchecked" | "cloud-download" | "cloud-knime" | "cloud-pending-changes" | "cloud-synced" | "cloud-upload" | "cloud-workflow" | "code-block" | "collection" | "color-picker" | "comment" | "component" | "connection" | "copy" | "cursor" | "data-app" | "data-value-view" | "date-time" | "db-browse" | "db-database" | "db-fetch" | "db-schema" | "db-table-view" | "db-table" | "deploy" | "detect" | "divider" | "duration" | "edit" | "education" | "error-panel" | "execute-all" | "execute" | "expand-panel" | "extension-community" | "extension" | "external-link" | "eye" | "file-export" | "file-text" | "file" | "flow-variable-default" | "flow-variable-in-out" | "flow-variable-in" | "flow-variable-out" | "folder-plus" | "folder-search" | "folder-workflow" | "folder" | "forum" | "function-catalog" | "hide-eye" | "home" | "import" | "info" | "interval" | "italic" | "layout-editor" | "left-aligned" | "like" | "limit" | "linked-metanode" | "list-bulletpoint" | "list-number" | "list-thumbs" | "list" | "local-filesystem" | "lock" | "metanode" | "mini-map" | "minimize-dialog" | "minimize-side-panel" | "minus" | "more-actions" | "node-stack" | "nodes-align-horiz" | "nodes-align-vert" | "open-in-new-window" | "pan-mode" | "parameter" | "pending-changes" | "pin" | "placeholder" | "plus" | "python" | "quote" | "re-execution" | "redo" | "regex" | "reload" | "rename" | "replace" | "reset-all" | "resume-execution" | "right-aligned" | "rocket" | "save-as" | "save" | "schedule" | "search" | "secret-store" | "selected-cancel" | "selected-execution" | "selected-reset" | "send" | "server-rack-workflow" | "service" | "settings" | "share" | "shortcuts" | "sort-ascending" | "sort-descending" | "space-local" | "space-private" | "space" | "stepwise-execution" | "strikethrough" | "tag" | "team" | "template-gallery" | "textstyles" | "thumbs-down" | "thumbs-up" | "to-bottom" | "to-top" | "trash" | "trigger" | "underline" | "undo" | "unlink" | "usage" | "user" | "version" | "view-cards" | "warning" | "workflow" | "x-close" | undefined;
|
|
8
8
|
variant: import('./types').KdsModalVariant;
|
|
9
9
|
overflow: "auto" | "hidden" | "visible";
|
|
10
10
|
onClose: (event?: Event) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkTypes.d.ts","sourceRoot":"","sources":["../../../src/types/linkTypes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAE/D,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;;OAKG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC;IACtE;;OAEG;IACH,GAAG,CAAC,EAAE,YAAY,CAChB,UAAU,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,KAAK,CAC7D,GAAG,IAAI,CAAC;CACV,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/kds-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "Package containing basic Vue components of the KNIME Design System",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"consola": "^3.4.2",
|
|
39
39
|
"pretty-bytes": "^7.1.0",
|
|
40
40
|
"temporal-polyfill": "^0.3.2",
|
|
41
|
-
"@knime/kds-styles": "^0.
|
|
41
|
+
"@knime/kds-styles": "^0.26.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@storybook/vue3-vite": "^10.3.4",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"linkTypes.d.ts","sourceRoot":"","sources":["../../../../src/buttons/links/linkTypes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAE/D,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;;;OAKG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC;IACtE;;OAEG;IACH,GAAG,CAAC,EAAE,YAAY,CAChB,UAAU,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,GAAG,KAAK,CAC7D,GAAG,IAAI,CAAC;CACV,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KdsCardClickable.vue.d.ts","sourceRoot":"","sources":["../../../../src/layouts/KdsCardClickable/KdsCardClickable.vue"],"names":[],"mappings":"AAuOA,iBAAS,cAAc;WAuCT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;iBA/DR,OAAO;;;;;;;;;iBAAP,OAAO;;;;;;;;;;;;iBAAP,OAAO;;;;;;;;;iBAAP,OAAO;;;;;;;;;;;gGAuElB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/layouts/KdsCardClickable/enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;CAIjB,CAAC;AAEX,eAAO,MAAM,eAAe,2CAAgC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/layouts/KdsCardClickable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACrE,mBAAmB,SAAS,CAAC;AAE7B,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { kdsCardVariant } from './enums';
|
|
2
|
-
export type KdsCardVariant = (typeof kdsCardVariant)[keyof typeof kdsCardVariant];
|
|
3
|
-
export type KdsCardAriaProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Accessible label for the card. Use this when providing a simple text label.
|
|
6
|
-
* Either ariaLabel or ariaLabelledby must be provided, but not both.
|
|
7
|
-
*/
|
|
8
|
-
ariaLabel: string;
|
|
9
|
-
/**
|
|
10
|
-
* ID of an element that labels the card. Use this when the label already exists elsewhere in the DOM.
|
|
11
|
-
* Either ariaLabel or ariaLabelledby must be provided, but not both.
|
|
12
|
-
*/
|
|
13
|
-
ariaLabelledby?: never;
|
|
14
|
-
} | {
|
|
15
|
-
ariaLabel?: never;
|
|
16
|
-
ariaLabelledby: string;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Props for KdsCardClickable component.
|
|
20
|
-
*
|
|
21
|
-
* **Important Usage Note**: Due to TypeScript limitations with discriminated unions in Vue templates,
|
|
22
|
-
* you must use `v-bind` with a properly typed object. Direct prop binding (even with hardcoded values)
|
|
23
|
-
* will cause type errors because Vue's template compiler cannot narrow discriminated unions.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* // ✅ Correct: Use v-bind with a typed object
|
|
27
|
-
* const cardProps: KdsCardProps = {
|
|
28
|
-
* variant: "filled",
|
|
29
|
-
* ariaLabel: "My card"
|
|
30
|
-
* };
|
|
31
|
-
* <KdsCardClickable v-bind="cardProps">
|
|
32
|
-
* <div>Content</div>
|
|
33
|
-
* </KdsCardClickable>
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* // ✅ Correct: In wrapper components, use computed with typed object
|
|
37
|
-
* const cardProps = computed(() => {
|
|
38
|
-
* const base = { variant: props.variant, selectable: props.selectable };
|
|
39
|
-
* return props.ariaLabel
|
|
40
|
-
* ? { ...base, ariaLabel: props.ariaLabel } as KdsCardProps
|
|
41
|
-
* : { ...base, ariaLabelledby: props.ariaLabelledby! } as KdsCardProps;
|
|
42
|
-
* });
|
|
43
|
-
* <KdsCardClickable v-bind="cardProps" />
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* // ❌ Incorrect: Direct prop binding causes type errors
|
|
47
|
-
* <KdsCardClickable aria-label="My card" variant="filled">
|
|
48
|
-
* <div>Content</div>
|
|
49
|
-
* </KdsCardClickable>
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* // ❌ Incorrect: Even forwarding individual props causes type errors
|
|
53
|
-
* <KdsCardClickable :aria-label="ariaLabel" :aria-labelledby="ariaLabelledby" />
|
|
54
|
-
*/
|
|
55
|
-
export type KdsCardProps = {
|
|
56
|
-
/**
|
|
57
|
-
* The visual style of the card container
|
|
58
|
-
*/
|
|
59
|
-
variant?: KdsCardVariant;
|
|
60
|
-
/**
|
|
61
|
-
* Whether the card can be selected
|
|
62
|
-
*/
|
|
63
|
-
selectable?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Whether the card is disabled. When disabled, the card cannot be clicked or focused.
|
|
66
|
-
*/
|
|
67
|
-
disabled?: boolean;
|
|
68
|
-
} & KdsCardAriaProps;
|
|
69
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/layouts/KdsCardClickable/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,cAAc,GACxB,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEvD,MAAM,MAAM,gBAAgB,GACxB;IACE;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC;CACxB,GACD;IACE,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,gBAAgB,CAAC"}
|
|
File without changes
|
|
File without changes
|