@knime/kds-components 0.18.3 → 0.19.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/db-browse-BJj19qUq.js +23 -0
- package/dist/db-browse-BJj19qUq.js.map +1 -0
- package/dist/db-fetch-CJMHzQp5.js +23 -0
- package/dist/db-fetch-CJMHzQp5.js.map +1 -0
- package/dist/index.css +119 -0
- package/dist/index.js +540 -222
- package/dist/index.js.map +1 -1
- package/dist/layouts/TabBar/KdsTabBar.vue.d.ts +18 -0
- package/dist/layouts/TabBar/KdsTabBar.vue.d.ts.map +1 -0
- package/dist/layouts/TabBar/TabBarItemAccessory.vue.d.ts +10 -0
- package/dist/layouts/TabBar/TabBarItemAccessory.vue.d.ts.map +1 -0
- package/dist/layouts/TabBar/enums.d.ts +6 -0
- package/dist/layouts/TabBar/enums.d.ts.map +1 -0
- package/dist/layouts/TabBar/index.d.ts +4 -0
- package/dist/layouts/TabBar/index.d.ts.map +1 -0
- package/dist/layouts/TabBar/types.d.ts +40 -0
- package/dist/layouts/TabBar/types.d.ts.map +1 -0
- package/dist/layouts/TabBar/useTabBarAdaptiveLayout.d.ts +37 -0
- package/dist/layouts/TabBar/useTabBarAdaptiveLayout.d.ts.map +1 -0
- package/dist/layouts/index.d.ts +2 -0
- package/dist/layouts/index.d.ts.map +1 -1
- package/dist/overlays/Modal/KdsModal.vue.d.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { KdsTabBarProps } from './types';
|
|
2
|
+
type __VLS_Props = KdsTabBarProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: string | number;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: string | number) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
size: import('./types').KdsTabBarSize;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
fullWidth: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
15
|
+
availableWidthContainer: HTMLDivElement;
|
|
16
|
+
}, HTMLDivElement>;
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=KdsTabBar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdsTabBar.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/TabBar/KdsTabBar.vue"],"names":[],"mappings":"AA0UA,OAAO,KAAK,EAAiB,cAAc,EAAE,MAAM,SAAS,CAAC;AAG7D,KAAK,WAAW,GAAG,cAAc,CAAC;AAoJlC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B,GAAG,WAAW,CAAC;;;;;;;;;;;;AAoIhB,wBAUG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { KdsIconSize } from '../../accessories/Icon/types';
|
|
2
|
+
import { KdsTabBarItemAccessory } from './types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
accessory: KdsTabBarItemAccessory;
|
|
5
|
+
iconSize?: KdsIconSize;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=TabBarItemAccessory.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabBarItemAccessory.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/TabBar/TabBarItemAccessory.vue"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGhE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,sBAAsB,CAAC;IAClC,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;;AAqEF,wBAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/layouts/TabBar/enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;CAGhB,CAAC;AAEX,eAAO,MAAM,cAAc,uBAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layouts/TabBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGvD,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGxD,mBAAmB,SAAS,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { KdsIconName } from '../../accessories/Icon/types';
|
|
2
|
+
import { KdsLiveStatusStatus } from '../../accessories/LiveStatus/types';
|
|
3
|
+
import { kdsTabBarSize } from './enums';
|
|
4
|
+
export type KdsTabBarSize = (typeof kdsTabBarSize)[keyof typeof kdsTabBarSize];
|
|
5
|
+
export type KdsTabBarIconAccessory = {
|
|
6
|
+
type: "icon";
|
|
7
|
+
name: KdsIconName;
|
|
8
|
+
};
|
|
9
|
+
export type KdsTabBarLiveStatusAccessory = {
|
|
10
|
+
type: "liveStatus";
|
|
11
|
+
status: KdsLiveStatusStatus;
|
|
12
|
+
};
|
|
13
|
+
export type KdsTabBarItemAccessory = KdsTabBarIconAccessory | KdsTabBarLiveStatusAccessory;
|
|
14
|
+
export type KdsTabBarItem = {
|
|
15
|
+
/** Unique HTML id attribute for the tab button element that should be linked to the panel by `aria-labelledby`. */
|
|
16
|
+
id: string;
|
|
17
|
+
/** Unique value used to identify the tab and to track the selected tab via v-model. */
|
|
18
|
+
value: string | number;
|
|
19
|
+
/** Visible text label displayed inside the tab. */
|
|
20
|
+
label: string;
|
|
21
|
+
/** The id of the associated tab panel element, used for `aria-controls`. */
|
|
22
|
+
panelId: string;
|
|
23
|
+
/** Optional accessory (icon or live status) displayed before the label. Icon accessories are hidden automatically when the container is too narrow. */
|
|
24
|
+
accessory?: KdsTabBarItemAccessory;
|
|
25
|
+
/** Optional tooltip text. Falls back to `label` when not provided. */
|
|
26
|
+
title?: string;
|
|
27
|
+
/** Whether this individual tab is disabled. */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
};
|
|
30
|
+
export type KdsTabBarProps = {
|
|
31
|
+
/** The list of tabs to render. */
|
|
32
|
+
tabs: KdsTabBarItem[];
|
|
33
|
+
/** The size variant of the tab bar. @default "small" */
|
|
34
|
+
size?: KdsTabBarSize;
|
|
35
|
+
/** Whether tabs should stretch to fill the full available width. @default false */
|
|
36
|
+
fullWidth?: boolean;
|
|
37
|
+
/** Whether the entire tab bar is disabled. Overrides individual tab `disabled` states. @default false */
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/layouts/TabBar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE/E,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,WAAW,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,mBAAmB,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAC9B,sBAAsB,GACtB,4BAA4B,CAAC;AAEjC,MAAM,MAAM,aAAa,GAAG;IAC1B,mHAAmH;IACnH,EAAE,EAAE,MAAM,CAAC;IACX,uFAAuF;IACvF,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,OAAO,EAAE,MAAM,CAAC;IAChB,uJAAuJ;IACvJ,SAAS,CAAC,EAAE,sBAAsB,CAAC;IACnC,sEAAsE;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,kCAAkC;IAClC,IAAI,EAAE,aAAa,EAAE,CAAC;IACtB,wDAAwD;IACxD,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,mFAAmF;IACnF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yGAAyG;IACzG,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { KdsTabBarItem } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Adapts the tab bar layout when space is constrained:
|
|
5
|
+
*
|
|
6
|
+
* 1. **Icon hiding**: icons are removed first to free up space for labels.
|
|
7
|
+
* 2. **Ellipsis**: labels shrink down to `min(natural label width, minTabWidth)`,
|
|
8
|
+
* showing an ellipsis when they are larger.
|
|
9
|
+
*/
|
|
10
|
+
export declare const useTabBarAdaptiveLayout: ({ width, tabs, containerEl, fullWidth, minTabWidth, }: {
|
|
11
|
+
/**
|
|
12
|
+
* Potentially available width to render tabs
|
|
13
|
+
*/
|
|
14
|
+
width: Ref<number>;
|
|
15
|
+
tabs: Ref<readonly KdsTabBarItem[]>;
|
|
16
|
+
/**
|
|
17
|
+
* Container element that holds the tab items.
|
|
18
|
+
* Used to determine whether the tab bar overflows horizontally.
|
|
19
|
+
*/
|
|
20
|
+
containerEl: Ref<HTMLElement | null>;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the tab bar is in full-width mode.
|
|
23
|
+
* When true, per-tab min-width adjustments are skipped.
|
|
24
|
+
*/
|
|
25
|
+
fullWidth?: Ref<boolean>;
|
|
26
|
+
/**
|
|
27
|
+
* CSS custom property name for the minimum tab width (e.g. "--kds-dimension-component-width-4x").
|
|
28
|
+
* Used both for CSS min-width (via v-bind) and as the measurement floor.
|
|
29
|
+
* When omitted, per-tab min-width adjustments are skipped.
|
|
30
|
+
*/
|
|
31
|
+
minTabWidth?: string;
|
|
32
|
+
}) => {
|
|
33
|
+
shouldHideIcons: import('vue').ComputedRef<boolean>;
|
|
34
|
+
setItemEl: (key: string | number, el: unknown) => void;
|
|
35
|
+
minTabWidth: string | undefined;
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=useTabBarAdaptiveLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTabBarAdaptiveLayout.d.ts","sourceRoot":"","sources":["../../../src/layouts/TabBar/useTabBarAdaptiveLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAY/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,GAAI,uDAMrC;IACD;;OAEG;IACH,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACnB,IAAI,EAAE,GAAG,CAAC,SAAS,aAAa,EAAE,CAAC,CAAC;IACpC;;;OAGG;IACH,WAAW,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACrC;;;OAGG;IACH,SAAS,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;;qBASyB,MAAM,GAAG,MAAM,MAAM,OAAO;;CAmIrD,CAAC"}
|
package/dist/layouts/index.d.ts
CHANGED
|
@@ -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,oBAAoB,CAAC;AACnC,mBAAmB,oBAAoB,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,oBAAoB,CAAC;AACnC,mBAAmB,oBAAoB,CAAC;AAExC,cAAc,UAAU,CAAC;AACzB,mBAAmB,UAAU,CAAC"}
|
|
@@ -4,7 +4,7 @@ declare function __VLS_template(): {
|
|
|
4
4
|
slots: {
|
|
5
5
|
default?(_: {
|
|
6
6
|
headline: string;
|
|
7
|
-
leadingIcon: "replace" | "search" | "bold" | "link" | "filter" | "time" | "stop" | "text" | "add-user" | "ai-general" | "annotation-mode" | "arrow-down" | "arrow-up" | "arrows-expand" | "arrows-move" | "arrows-order" | "back" | "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" | "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-database" | "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-workflow" | "folder" | "forum" | "function-catalog" | "home" | "import" | "info" | "interval" | "italic" | "key" | "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" | "placeholder" | "plus" | "quote" | "re-execution" | "redo" | "regex" | "reload" | "rename" | "reset-all" | "resume-execution" | "right-aligned" | "rocket" | "save-as" | "save" | "schedule" | "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" | "team" | "textstyles" | "thumbs-down" | "thumbs-up" | "to-bottom" | "to-top" | "trash" | "trigger" | "underline" | "undo" | "unlink" | "user" | "version" | "view-cards" | "warning" | "workflow" | "x-close";
|
|
7
|
+
leadingIcon: "replace" | "search" | "bold" | "link" | "filter" | "time" | "stop" | "text" | "add-user" | "ai-general" | "annotation-mode" | "arrow-down" | "arrow-up" | "arrows-expand" | "arrows-move" | "arrows-order" | "back" | "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" | "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-workflow" | "folder" | "forum" | "function-catalog" | "home" | "import" | "info" | "interval" | "italic" | "key" | "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" | "placeholder" | "plus" | "quote" | "re-execution" | "redo" | "regex" | "reload" | "rename" | "reset-all" | "resume-execution" | "right-aligned" | "rocket" | "save-as" | "save" | "schedule" | "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" | "team" | "textstyles" | "thumbs-down" | "thumbs-up" | "to-bottom" | "to-top" | "trash" | "trigger" | "underline" | "undo" | "unlink" | "user" | "version" | "view-cards" | "warning" | "workflow" | "x-close";
|
|
8
8
|
variant: import('./types').KdsModalVariant;
|
|
9
9
|
overflow: "auto" | "hidden" | "visible";
|
|
10
10
|
onClose: (event?: Event) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/kds-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Package containing basic Vue components of the KNIME Design System",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@knime/utils": "^1.9.2",
|
|
38
38
|
"consola": "^3.4.2",
|
|
39
|
-
"@knime/kds-styles": "^0.
|
|
39
|
+
"@knime/kds-styles": "^0.19.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@storybook/vue3-vite": "^10.3.1",
|