@knime/kds-components 0.22.2 → 0.23.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/index.css +189 -50
- package/dist/index.js +1495 -876
- package/dist/index.js.map +1 -1
- package/dist/src/accessories/ColorSwatch/KdsColorSwatch.vue.d.ts.map +1 -1
- package/dist/src/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts +87 -2
- package/dist/src/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts.map +1 -1
- package/dist/src/buttons/KdsMenuButton/types.d.ts +7 -0
- package/dist/src/buttons/KdsMenuButton/types.d.ts.map +1 -1
- package/dist/src/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts +6 -6
- package/dist/src/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts.map +1 -1
- package/dist/src/buttons/KdsSplitButton/types.d.ts +4 -4
- package/dist/src/buttons/KdsSplitButton/types.d.ts.map +1 -1
- package/dist/src/forms/inputs/ColorInput/{ColorPicker.vue.d.ts → ColorPicker/ColorPicker.vue.d.ts} +0 -1
- package/dist/src/forms/inputs/ColorInput/ColorPicker/ColorPicker.vue.d.ts.map +1 -0
- package/dist/src/forms/inputs/ColorInput/ColorPicker/ColorPickerSlider.vue.d.ts +14 -0
- package/dist/src/forms/inputs/ColorInput/ColorPicker/ColorPickerSlider.vue.d.ts.map +1 -0
- package/dist/src/forms/inputs/ColorInput/ColorPicker/types.d.ts +12 -0
- package/dist/src/forms/inputs/ColorInput/ColorPicker/types.d.ts.map +1 -0
- package/dist/src/forms/inputs/ColorInput/KdsColorInput.vue.d.ts.map +1 -1
- package/dist/src/forms/inputs/ColorInput/colorUtils.d.ts +7 -0
- package/dist/src/forms/inputs/ColorInput/colorUtils.d.ts.map +1 -1
- package/dist/src/forms/inputs/ColorInput/useColorInputValidationOnFocusOut.d.ts.map +1 -1
- package/dist/src/forms/selects/MultiSelectListBox/KdsMultiSelectListBox.vue.d.ts.map +1 -1
- package/dist/src/forms/selects/MultiSelectListBox/types.d.ts +3 -1
- package/dist/src/forms/selects/MultiSelectListBox/types.d.ts.map +1 -1
- package/dist/src/forms/selects/SortableListBox/KdsSortableListBox.vue.d.ts +196 -0
- package/dist/src/forms/selects/SortableListBox/KdsSortableListBox.vue.d.ts.map +1 -0
- package/dist/src/forms/selects/SortableListBox/index.d.ts +3 -0
- package/dist/src/forms/selects/SortableListBox/index.d.ts.map +1 -0
- package/dist/src/forms/selects/SortableListBox/types.d.ts +10 -0
- package/dist/src/forms/selects/SortableListBox/types.d.ts.map +1 -0
- package/dist/src/forms/selects/SortableListBox/useSortableListBoxReorder.d.ts +16 -0
- package/dist/src/forms/selects/SortableListBox/useSortableListBoxReorder.d.ts.map +1 -0
- package/dist/src/forms/selects/TwinList/KdsTwinList.vue.d.ts.map +1 -1
- package/dist/src/forms/selects/TwinList/TwinListBody.vue.d.ts.map +1 -1
- package/dist/src/forms/selects/TwinList/types.d.ts +2 -0
- package/dist/src/forms/selects/TwinList/types.d.ts.map +1 -1
- package/dist/src/forms/selects/index.d.ts +2 -2
- package/dist/src/forms/selects/index.d.ts.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/layouts/PanelButtonBar/KdsPanelButtonBar.vue.d.ts +10 -0
- package/dist/src/layouts/PanelButtonBar/KdsPanelButtonBar.vue.d.ts.map +1 -0
- package/dist/src/layouts/PanelButtonBar/index.d.ts +3 -0
- package/dist/src/layouts/PanelButtonBar/index.d.ts.map +1 -0
- package/dist/src/layouts/PanelButtonBar/types.d.ts +15 -0
- package/dist/src/layouts/PanelButtonBar/types.d.ts.map +1 -0
- package/dist/src/layouts/PanelHeader/KdsPanelHeader.vue.d.ts +8 -0
- package/dist/src/layouts/PanelHeader/KdsPanelHeader.vue.d.ts.map +1 -0
- package/dist/src/layouts/PanelHeader/index.d.ts +3 -0
- package/dist/src/layouts/PanelHeader/index.d.ts.map +1 -0
- package/dist/src/layouts/PanelHeader/types.d.ts +7 -0
- package/dist/src/layouts/PanelHeader/types.d.ts.map +1 -0
- package/dist/src/layouts/index.d.ts +4 -0
- package/dist/src/layouts/index.d.ts.map +1 -1
- package/dist/src/patterns/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue.d.ts +336 -0
- package/dist/src/patterns/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue.d.ts.map +1 -0
- package/dist/src/patterns/ResponsiveButtonGroup/enums.d.ts +7 -0
- package/dist/src/patterns/ResponsiveButtonGroup/enums.d.ts.map +1 -0
- package/dist/src/patterns/ResponsiveButtonGroup/index.d.ts +4 -0
- package/dist/src/patterns/ResponsiveButtonGroup/index.d.ts.map +1 -0
- package/dist/src/patterns/ResponsiveButtonGroup/types.d.ts +23 -0
- package/dist/src/patterns/ResponsiveButtonGroup/types.d.ts.map +1 -0
- package/dist/src/patterns/index.d.ts +3 -0
- package/dist/src/patterns/index.d.ts.map +1 -0
- package/package.json +2 -2
- package/dist/src/forms/inputs/ColorInput/ColorPicker.vue.d.ts.map +0 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export * from './layouts';
|
|
|
8
8
|
export type * from './layouts';
|
|
9
9
|
export * from './overlays';
|
|
10
10
|
export type * from './overlays';
|
|
11
|
+
export * from './patterns';
|
|
12
|
+
export type * from './patterns';
|
|
11
13
|
export * from './util';
|
|
12
14
|
export type * from './util';
|
|
13
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,eAAe,CAAC;AAC9B,mBAAmB,eAAe,CAAC;AAGnC,cAAc,WAAW,CAAC;AAC1B,mBAAmB,WAAW,CAAC;AAG/B,cAAc,SAAS,CAAC;AACxB,mBAAmB,SAAS,CAAC;AAG7B,cAAc,WAAW,CAAC;AAC1B,mBAAmB,WAAW,CAAC;AAG/B,cAAc,YAAY,CAAC;AAC3B,mBAAmB,YAAY,CAAC;AAGhC,cAAc,QAAQ,CAAC;AACvB,mBAAmB,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,eAAe,CAAC;AAC9B,mBAAmB,eAAe,CAAC;AAGnC,cAAc,WAAW,CAAC;AAC1B,mBAAmB,WAAW,CAAC;AAG/B,cAAc,SAAS,CAAC;AACxB,mBAAmB,SAAS,CAAC;AAG7B,cAAc,WAAW,CAAC;AAC1B,mBAAmB,WAAW,CAAC;AAG/B,cAAc,YAAY,CAAC;AAC3B,mBAAmB,YAAY,CAAC;AAGhC,cAAc,YAAY,CAAC;AAC3B,mBAAmB,YAAY,CAAC;AAGhC,cAAc,QAAQ,CAAC;AACvB,mBAAmB,QAAQ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { KdsPanelButtonBarProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<KdsPanelButtonBarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
cancel: (event: MouseEvent) => any;
|
|
4
|
+
apply: (event: MouseEvent) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<KdsPanelButtonBarProps> & Readonly<{
|
|
6
|
+
onCancel?: ((event: MouseEvent) => any) | undefined;
|
|
7
|
+
onApply?: ((event: MouseEvent) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=KdsPanelButtonBar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdsPanelButtonBar.vue.d.ts","sourceRoot":"","sources":["../../../../src/layouts/PanelButtonBar/KdsPanelButtonBar.vue"],"names":[],"mappings":"AA4DA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;;;;;;;;AAmHtD,wBAQG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/layouts/PanelButtonBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACvE,mBAAmB,SAAS,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type KdsPanelButtonBarProps = {
|
|
2
|
+
/**
|
|
3
|
+
* The label for the apply button.
|
|
4
|
+
*/
|
|
5
|
+
applyLabel?: string;
|
|
6
|
+
/**
|
|
7
|
+
* The label for the cancel button.
|
|
8
|
+
*/
|
|
9
|
+
cancelLabel?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Whether the buttons are disabled.
|
|
12
|
+
*/
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/layouts/PanelButtonBar/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { KdsPanelHeaderProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<KdsPanelHeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
close: (event: MouseEvent) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<KdsPanelHeaderProps> & Readonly<{
|
|
5
|
+
onClose?: ((event: MouseEvent) => any) | undefined;
|
|
6
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=KdsPanelHeader.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdsPanelHeader.vue.d.ts","sourceRoot":"","sources":["../../../../src/layouts/PanelHeader/KdsPanelHeader.vue"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;;;;;;AA0FnD,wBAQG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/layouts/PanelHeader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACjE,mBAAmB,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/layouts/PanelHeader/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -2,8 +2,12 @@ export * from './EmptyState';
|
|
|
2
2
|
export type * from './EmptyState';
|
|
3
3
|
export * from './KdsCardClickable';
|
|
4
4
|
export type * from './KdsCardClickable';
|
|
5
|
+
export * from './PanelHeader';
|
|
6
|
+
export type * from './PanelHeader';
|
|
5
7
|
export * from './TabBar';
|
|
6
8
|
export type * from './TabBar';
|
|
7
9
|
export * from './LoadingSkeleton';
|
|
8
10
|
export type * from './LoadingSkeleton';
|
|
11
|
+
export * from './PanelButtonBar';
|
|
12
|
+
export type * from './PanelButtonBar';
|
|
9
13
|
//# 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,oBAAoB,CAAC;AACnC,mBAAmB,oBAAoB,CAAC;AAExC,cAAc,UAAU,CAAC;AACzB,mBAAmB,UAAU,CAAC;AAE9B,cAAc,mBAAmB,CAAC;AAClC,mBAAmB,mBAAmB,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,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"}
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import { nextTick } from 'vue';
|
|
2
|
+
import { KdsResponsiveButtonGroupProps } from './types';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<KdsResponsiveButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
buttonClick: (id: string) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<KdsResponsiveButtonGroupProps> & Readonly<{
|
|
6
|
+
onButtonClick?: ((id: string) => any) | undefined;
|
|
7
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
8
|
+
measureContainer: HTMLDivElement;
|
|
9
|
+
measureButton: (import('vue').CreateComponentPublicInstanceWithMixins<Readonly<(import('../../buttons/types').KdsButtonCommonProps & {
|
|
10
|
+
label: string;
|
|
11
|
+
leadingIcon?: import('../..').KdsIconName;
|
|
12
|
+
trailingIcon?: import('../..').KdsIconName;
|
|
13
|
+
ariaLabel?: never;
|
|
14
|
+
} & import('../../buttons/types').WithDestructive) | (import('../../buttons/types').KdsButtonCommonProps & {
|
|
15
|
+
label?: never;
|
|
16
|
+
leadingIcon: import('../..').KdsIconName;
|
|
17
|
+
trailingIcon?: never;
|
|
18
|
+
ariaLabel: string;
|
|
19
|
+
} & import('../../buttons/types').WithDestructive)> & Readonly<{
|
|
20
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
click: (event: MouseEvent) => any;
|
|
23
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
24
|
+
P: {};
|
|
25
|
+
B: {};
|
|
26
|
+
D: {};
|
|
27
|
+
C: {};
|
|
28
|
+
M: {};
|
|
29
|
+
Defaults: {};
|
|
30
|
+
}, {} & (Readonly<(import('../../buttons/types').KdsButtonCommonProps & {
|
|
31
|
+
label: string;
|
|
32
|
+
leadingIcon?: import('../..').KdsIconName;
|
|
33
|
+
trailingIcon?: import('../..').KdsIconName;
|
|
34
|
+
ariaLabel?: never;
|
|
35
|
+
} & import('../../buttons/types').WithDestructive) | (import('../../buttons/types').KdsButtonCommonProps & {
|
|
36
|
+
label?: never;
|
|
37
|
+
leadingIcon: import('../..').KdsIconName;
|
|
38
|
+
trailingIcon?: never;
|
|
39
|
+
ariaLabel: string;
|
|
40
|
+
} & import('../../buttons/types').WithDestructive)> & Readonly<{
|
|
41
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
42
|
+
}>), {}, {}, {}, {}, {}> | null)[];
|
|
43
|
+
measureMenuButton: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<(import('../../buttons/types').KdsButtonCommonProps<import('../..').KdsToggleButtonVariant> & {
|
|
44
|
+
label: string;
|
|
45
|
+
leadingIcon?: import('../..').KdsIconName;
|
|
46
|
+
trailingIcon?: import('../..').KdsIconName;
|
|
47
|
+
ariaLabel?: never;
|
|
48
|
+
} & {
|
|
49
|
+
items: import('../..').KdsMenuItem[];
|
|
50
|
+
menuMaxHeight?: string;
|
|
51
|
+
}) | (import('../../buttons/types').KdsButtonCommonProps<import('../..').KdsToggleButtonVariant> & {
|
|
52
|
+
label?: never;
|
|
53
|
+
leadingIcon: import('../..').KdsIconName;
|
|
54
|
+
trailingIcon?: never;
|
|
55
|
+
ariaLabel: string;
|
|
56
|
+
} & {
|
|
57
|
+
items: import('../..').KdsMenuItem[];
|
|
58
|
+
menuMaxHeight?: string;
|
|
59
|
+
})> & Readonly<{
|
|
60
|
+
onItemClick?: ((id: string) => any) | undefined;
|
|
61
|
+
}>, {
|
|
62
|
+
menuButtonEl: Readonly<import('vue').ShallowRef<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<({
|
|
63
|
+
modelValue?: boolean;
|
|
64
|
+
} & import('../../buttons/types').KdsButtonCommonProps<import('../..').KdsToggleButtonVariant> & {
|
|
65
|
+
label: string;
|
|
66
|
+
leadingIcon?: import('../..').KdsIconName;
|
|
67
|
+
trailingIcon?: import('../..').KdsIconName;
|
|
68
|
+
ariaLabel?: never;
|
|
69
|
+
}) | ({
|
|
70
|
+
modelValue?: boolean;
|
|
71
|
+
} & import('../../buttons/types').KdsButtonCommonProps<import('../..').KdsToggleButtonVariant> & {
|
|
72
|
+
label?: never;
|
|
73
|
+
leadingIcon: import('../..').KdsIconName;
|
|
74
|
+
trailingIcon?: never;
|
|
75
|
+
ariaLabel: string;
|
|
76
|
+
})> & Readonly<{
|
|
77
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
78
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
79
|
+
"update:modelValue": (value: boolean) => any;
|
|
80
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
81
|
+
P: {};
|
|
82
|
+
B: {};
|
|
83
|
+
D: {};
|
|
84
|
+
C: {};
|
|
85
|
+
M: {};
|
|
86
|
+
Defaults: {};
|
|
87
|
+
}, {} & (Readonly<({
|
|
88
|
+
modelValue?: boolean;
|
|
89
|
+
} & import('../../buttons/types').KdsButtonCommonProps<import('../..').KdsToggleButtonVariant> & {
|
|
90
|
+
label: string;
|
|
91
|
+
leadingIcon?: import('../..').KdsIconName;
|
|
92
|
+
trailingIcon?: import('../..').KdsIconName;
|
|
93
|
+
ariaLabel?: never;
|
|
94
|
+
}) | ({
|
|
95
|
+
modelValue?: boolean;
|
|
96
|
+
} & import('../../buttons/types').KdsButtonCommonProps<import('../..').KdsToggleButtonVariant> & {
|
|
97
|
+
label?: never;
|
|
98
|
+
leadingIcon: import('../..').KdsIconName;
|
|
99
|
+
trailingIcon?: never;
|
|
100
|
+
ariaLabel: string;
|
|
101
|
+
})> & Readonly<{
|
|
102
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
103
|
+
}>), {}, {}, {}, {}, {}> | null>>;
|
|
104
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
105
|
+
itemClick: (id: string) => any;
|
|
106
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
107
|
+
menuButton: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<({
|
|
108
|
+
modelValue?: boolean;
|
|
109
|
+
} & import('../../buttons/types').KdsButtonCommonProps<import('../..').KdsToggleButtonVariant> & {
|
|
110
|
+
label: string;
|
|
111
|
+
leadingIcon?: import('../..').KdsIconName;
|
|
112
|
+
trailingIcon?: import('../..').KdsIconName;
|
|
113
|
+
ariaLabel?: never;
|
|
114
|
+
}) | ({
|
|
115
|
+
modelValue?: boolean;
|
|
116
|
+
} & import('../../buttons/types').KdsButtonCommonProps<import('../..').KdsToggleButtonVariant> & {
|
|
117
|
+
label?: never;
|
|
118
|
+
leadingIcon: import('../..').KdsIconName;
|
|
119
|
+
trailingIcon?: never;
|
|
120
|
+
ariaLabel: string;
|
|
121
|
+
})> & Readonly<{
|
|
122
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
123
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
124
|
+
"update:modelValue": (value: boolean) => any;
|
|
125
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
126
|
+
P: {};
|
|
127
|
+
B: {};
|
|
128
|
+
D: {};
|
|
129
|
+
C: {};
|
|
130
|
+
M: {};
|
|
131
|
+
Defaults: {};
|
|
132
|
+
}, {} & (Readonly<({
|
|
133
|
+
modelValue?: boolean;
|
|
134
|
+
} & import('../../buttons/types').KdsButtonCommonProps<import('../..').KdsToggleButtonVariant> & {
|
|
135
|
+
label: string;
|
|
136
|
+
leadingIcon?: import('../..').KdsIconName;
|
|
137
|
+
trailingIcon?: import('../..').KdsIconName;
|
|
138
|
+
ariaLabel?: never;
|
|
139
|
+
}) | ({
|
|
140
|
+
modelValue?: boolean;
|
|
141
|
+
} & import('../../buttons/types').KdsButtonCommonProps<import('../..').KdsToggleButtonVariant> & {
|
|
142
|
+
label?: never;
|
|
143
|
+
leadingIcon: import('../..').KdsIconName;
|
|
144
|
+
trailingIcon?: never;
|
|
145
|
+
ariaLabel: string;
|
|
146
|
+
})> & Readonly<{
|
|
147
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
148
|
+
}>), {}, {}, {}, {}, {}> | null;
|
|
149
|
+
popover: ({
|
|
150
|
+
$: import('vue').ComponentInternalInstance;
|
|
151
|
+
$data: {};
|
|
152
|
+
$props: {
|
|
153
|
+
readonly modelValue?: boolean | undefined;
|
|
154
|
+
readonly placement?: import('../../overlays/Popover').KdsPopoverPlacement | undefined;
|
|
155
|
+
readonly role?: import('../../overlays/Popover').KdsPopoverRole | undefined;
|
|
156
|
+
readonly popoverType?: import('../../overlays/Popover').KdsPopoverType | undefined;
|
|
157
|
+
readonly fullWidth?: boolean | undefined;
|
|
158
|
+
readonly maxInlineSize?: string | undefined;
|
|
159
|
+
readonly content?: string | undefined;
|
|
160
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
161
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
162
|
+
$attrs: import('vue').Attrs;
|
|
163
|
+
$refs: {
|
|
164
|
+
[x: string]: unknown;
|
|
165
|
+
} & {
|
|
166
|
+
popoverEl: HTMLDivElement;
|
|
167
|
+
};
|
|
168
|
+
$slots: Readonly<{
|
|
169
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
170
|
+
}>;
|
|
171
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
172
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
173
|
+
$host: Element | null;
|
|
174
|
+
$emit: (event: "update:modelValue", value: boolean) => void;
|
|
175
|
+
$el: HTMLDivElement;
|
|
176
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
177
|
+
modelValue?: boolean;
|
|
178
|
+
} & import('../../overlays/Popover').KdsPopoverProps> & Readonly<{
|
|
179
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
180
|
+
}>, {
|
|
181
|
+
anchorStyle: Record<string, string>;
|
|
182
|
+
popoverId: string;
|
|
183
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
184
|
+
"update:modelValue": (value: boolean) => any;
|
|
185
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
186
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
187
|
+
created?: (() => void) | (() => void)[];
|
|
188
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
189
|
+
mounted?: (() => void) | (() => void)[];
|
|
190
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
191
|
+
updated?: (() => void) | (() => void)[];
|
|
192
|
+
activated?: (() => void) | (() => void)[];
|
|
193
|
+
deactivated?: (() => void) | (() => void)[];
|
|
194
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
195
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
196
|
+
destroyed?: (() => void) | (() => void)[];
|
|
197
|
+
unmounted?: (() => void) | (() => void)[];
|
|
198
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
199
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
200
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
201
|
+
};
|
|
202
|
+
$forceUpdate: () => void;
|
|
203
|
+
$nextTick: typeof nextTick;
|
|
204
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
205
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
206
|
+
modelValue?: boolean;
|
|
207
|
+
} & import('../../overlays/Popover').KdsPopoverProps> & Readonly<{
|
|
208
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
209
|
+
}>, "anchorStyle" | "popoverId"> & import('vue').ShallowUnwrapRef<{
|
|
210
|
+
anchorStyle: Record<string, string>;
|
|
211
|
+
popoverId: string;
|
|
212
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
213
|
+
$slots: {
|
|
214
|
+
default?(_: {}): any;
|
|
215
|
+
};
|
|
216
|
+
}) | null;
|
|
217
|
+
menuContainer: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../forms/_helper/MenuContainer/types').KdsMenuContainerProps> & Readonly<{
|
|
218
|
+
onItemClick?: ((id: string) => any) | undefined;
|
|
219
|
+
}>, {
|
|
220
|
+
focus: () => void;
|
|
221
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
222
|
+
itemClick: (id: string) => any;
|
|
223
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
224
|
+
listContainerEl: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('../../forms/_helper/List/ListContainer').KdsListContainerProps> & Readonly<{
|
|
225
|
+
onItemClick?: ((id?: string | undefined) => any) | undefined;
|
|
226
|
+
}>, {
|
|
227
|
+
handleKeydown: (event: KeyboardEvent) => void;
|
|
228
|
+
handleFocus: () => void;
|
|
229
|
+
handleBlur: () => void;
|
|
230
|
+
activeDescendant: Readonly<import('vue').Ref<string | undefined>>;
|
|
231
|
+
focus: () => void;
|
|
232
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
233
|
+
itemClick: (id?: string | undefined) => any;
|
|
234
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
235
|
+
containerEl: HTMLDivElement;
|
|
236
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
237
|
+
P: {};
|
|
238
|
+
B: {};
|
|
239
|
+
D: {};
|
|
240
|
+
C: {};
|
|
241
|
+
M: {};
|
|
242
|
+
Defaults: {};
|
|
243
|
+
}, Readonly<import('../../forms/_helper/List/ListContainer').KdsListContainerProps> & Readonly<{
|
|
244
|
+
onItemClick?: ((id?: string | undefined) => any) | undefined;
|
|
245
|
+
}>, {
|
|
246
|
+
handleKeydown: (event: KeyboardEvent) => void;
|
|
247
|
+
handleFocus: () => void;
|
|
248
|
+
handleBlur: () => void;
|
|
249
|
+
activeDescendant: Readonly<import('vue').Ref<string | undefined>>;
|
|
250
|
+
focus: () => void;
|
|
251
|
+
}, {}, {}, {}, {}> | null;
|
|
252
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
253
|
+
P: {};
|
|
254
|
+
B: {};
|
|
255
|
+
D: {};
|
|
256
|
+
C: {};
|
|
257
|
+
M: {};
|
|
258
|
+
Defaults: {};
|
|
259
|
+
}, Readonly<import('../../forms/_helper/MenuContainer/types').KdsMenuContainerProps> & Readonly<{
|
|
260
|
+
onItemClick?: ((id: string) => any) | undefined;
|
|
261
|
+
}>, {
|
|
262
|
+
focus: () => void;
|
|
263
|
+
}, {}, {}, {}, {}> | null;
|
|
264
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
265
|
+
P: {};
|
|
266
|
+
B: {};
|
|
267
|
+
D: {};
|
|
268
|
+
C: {};
|
|
269
|
+
M: {};
|
|
270
|
+
Defaults: {};
|
|
271
|
+
}, {} & (Readonly<(import('../../buttons/types').KdsButtonCommonProps<import('../..').KdsToggleButtonVariant> & {
|
|
272
|
+
label: string;
|
|
273
|
+
leadingIcon?: import('../..').KdsIconName;
|
|
274
|
+
trailingIcon?: import('../..').KdsIconName;
|
|
275
|
+
ariaLabel?: never;
|
|
276
|
+
} & {
|
|
277
|
+
items: import('../..').KdsMenuItem[];
|
|
278
|
+
menuMaxHeight?: string;
|
|
279
|
+
}) | (import('../../buttons/types').KdsButtonCommonProps<import('../..').KdsToggleButtonVariant> & {
|
|
280
|
+
label?: never;
|
|
281
|
+
leadingIcon: import('../..').KdsIconName;
|
|
282
|
+
trailingIcon?: never;
|
|
283
|
+
ariaLabel: string;
|
|
284
|
+
} & {
|
|
285
|
+
items: import('../..').KdsMenuItem[];
|
|
286
|
+
menuMaxHeight?: string;
|
|
287
|
+
})> & Readonly<{
|
|
288
|
+
onItemClick?: ((id: string) => any) | undefined;
|
|
289
|
+
}>), {
|
|
290
|
+
menuButtonEl: Readonly<import('vue').ShallowRef<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<({
|
|
291
|
+
modelValue?: boolean;
|
|
292
|
+
} & import('../../buttons/types').KdsButtonCommonProps<import('../..').KdsToggleButtonVariant> & {
|
|
293
|
+
label: string;
|
|
294
|
+
leadingIcon?: import('../..').KdsIconName;
|
|
295
|
+
trailingIcon?: import('../..').KdsIconName;
|
|
296
|
+
ariaLabel?: never;
|
|
297
|
+
}) | ({
|
|
298
|
+
modelValue?: boolean;
|
|
299
|
+
} & import('../../buttons/types').KdsButtonCommonProps<import('../..').KdsToggleButtonVariant> & {
|
|
300
|
+
label?: never;
|
|
301
|
+
leadingIcon: import('../..').KdsIconName;
|
|
302
|
+
trailingIcon?: never;
|
|
303
|
+
ariaLabel: string;
|
|
304
|
+
})> & Readonly<{
|
|
305
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
306
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
307
|
+
"update:modelValue": (value: boolean) => any;
|
|
308
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
309
|
+
P: {};
|
|
310
|
+
B: {};
|
|
311
|
+
D: {};
|
|
312
|
+
C: {};
|
|
313
|
+
M: {};
|
|
314
|
+
Defaults: {};
|
|
315
|
+
}, {} & (Readonly<({
|
|
316
|
+
modelValue?: boolean;
|
|
317
|
+
} & import('../../buttons/types').KdsButtonCommonProps<import('../..').KdsToggleButtonVariant> & {
|
|
318
|
+
label: string;
|
|
319
|
+
leadingIcon?: import('../..').KdsIconName;
|
|
320
|
+
trailingIcon?: import('../..').KdsIconName;
|
|
321
|
+
ariaLabel?: never;
|
|
322
|
+
}) | ({
|
|
323
|
+
modelValue?: boolean;
|
|
324
|
+
} & import('../../buttons/types').KdsButtonCommonProps<import('../..').KdsToggleButtonVariant> & {
|
|
325
|
+
label?: never;
|
|
326
|
+
leadingIcon: import('../..').KdsIconName;
|
|
327
|
+
trailingIcon?: never;
|
|
328
|
+
ariaLabel: string;
|
|
329
|
+
})> & Readonly<{
|
|
330
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
331
|
+
}>), {}, {}, {}, {}, {}> | null>>;
|
|
332
|
+
}, {}, {}, {}, {}> | null;
|
|
333
|
+
buttonsContainer: HTMLDivElement;
|
|
334
|
+
}, any>;
|
|
335
|
+
export default _default;
|
|
336
|
+
//# sourceMappingURL=KdsResponsiveButtonGroup.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdsResponsiveButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../../src/patterns/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue"],"names":[],"mappings":"AAqMA,OAAO,EAAY,QAAQ,EAAyC,MAAM,KAAK,CAAC;AAMhF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAsSk4W,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAhBrjX,wBAQG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const kdsResponsiveButtonGroupAlignment: {
|
|
2
|
+
readonly LEFT: "left";
|
|
3
|
+
readonly RIGHT: "right";
|
|
4
|
+
readonly MIDDLE: "middle";
|
|
5
|
+
};
|
|
6
|
+
export declare const kdsResponsiveButtonGroupAlignments: ("left" | "right" | "middle")[];
|
|
7
|
+
//# sourceMappingURL=enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/patterns/ResponsiveButtonGroup/enums.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC;;;;CAIpC,CAAC;AAEX,eAAO,MAAM,kCAAkC,iCAE9C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/patterns/ResponsiveButtonGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AACrF,OAAO,EACL,iCAAiC,EACjC,kCAAkC,GACnC,MAAM,SAAS,CAAC;AACjB,mBAAmB,SAAS,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { KdsButtonProps } from '../../buttons';
|
|
2
|
+
import { kdsResponsiveButtonGroupAlignment } from './enums';
|
|
3
|
+
export type KdsResponsiveButtonGroupAlignment = (typeof kdsResponsiveButtonGroupAlignment)[keyof typeof kdsResponsiveButtonGroupAlignment];
|
|
4
|
+
type MakeRequired<T, K extends keyof T> = T & Required<Pick<T, K>>;
|
|
5
|
+
export type KdsResponsiveButtonGroupButton = Pick<MakeRequired<KdsButtonProps, "label">, "variant" | "label" | "disabled" | "leadingIcon" | "destructive" | "title"> & {
|
|
6
|
+
/** will be emitted when the button is clicked in the `buttonClick` event */
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
9
|
+
export type KdsResponsiveButtonGroupProps = {
|
|
10
|
+
/**
|
|
11
|
+
* Array of button objects, each requires `id` and `label`.
|
|
12
|
+
*
|
|
13
|
+
* Optional: `variant` (defaults to `outlined`), `disabled`, `leadingIcon`, `destructive`, `title`.
|
|
14
|
+
*/
|
|
15
|
+
buttons: KdsResponsiveButtonGroupButton[];
|
|
16
|
+
/**
|
|
17
|
+
* Horizontal alignment of the button group.
|
|
18
|
+
* @default "left"
|
|
19
|
+
*/
|
|
20
|
+
alignment?: KdsResponsiveButtonGroupAlignment;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/patterns/ResponsiveButtonGroup/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,EAAE,iCAAiC,EAAE,MAAM,SAAS,CAAC;AAE5D,MAAM,MAAM,iCAAiC,GAC3C,CAAC,OAAO,iCAAiC,CAAC,CAAC,MAAM,OAAO,iCAAiC,CAAC,CAAC;AAE7F,KAAK,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAEnE,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAC/C,YAAY,CAAC,cAAc,EAAE,OAAO,CAAC,EACrC,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,aAAa,GAAG,aAAa,GAAG,OAAO,CAC3E,GAAG;IACF,4EAA4E;IAC5E,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;;;OAIG;IACH,OAAO,EAAE,8BAA8B,EAAE,CAAC;IAE1C;;;OAGG;IACH,SAAS,CAAC,EAAE,iCAAiC,CAAC;CAC/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,mBAAmB,yBAAyB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/kds-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "Package containing basic Vue components of the KNIME Design System",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@knime/utils": "^1.9.2",
|
|
38
38
|
"consola": "^3.4.2",
|
|
39
39
|
"pretty-bytes": "^7.1.0",
|
|
40
|
-
"@knime/kds-styles": "^0.
|
|
40
|
+
"@knime/kds-styles": "^0.23.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@storybook/vue3-vite": "^10.3.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ColorPicker.vue.d.ts","sourceRoot":"","sources":["../../../../../src/forms/inputs/ColorInput/ColorPicker.vue"],"names":[],"mappings":"AAyiBA,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;;;;;;;;;AAsIF,wBASG"}
|