@knime/kds-components 1.1.4 → 1.2.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.
Files changed (81) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/index.css +840 -719
  3. package/dist/index.js +2663 -2011
  4. package/dist/index.js.map +1 -1
  5. package/dist/src/accessories/Avatar/types.d.ts +1 -1
  6. package/dist/src/accessories/Avatar/types.d.ts.map +1 -1
  7. package/dist/src/accessories/ColorSwatch/types.d.ts +1 -1
  8. package/dist/src/accessories/ColorSwatch/types.d.ts.map +1 -1
  9. package/dist/src/accessories/DonutChart/types.d.ts +3 -3
  10. package/dist/src/accessories/Icon/KdsDataType.vue.d.ts.map +1 -1
  11. package/dist/src/accessories/Icon/KdsIcon.vue.d.ts.map +1 -1
  12. package/dist/src/accessories/Icon/aliases.d.ts +18 -0
  13. package/dist/src/accessories/Icon/aliases.d.ts.map +1 -0
  14. package/dist/src/accessories/Icon/useIcon.d.ts +5 -0
  15. package/dist/src/accessories/Icon/useIcon.d.ts.map +1 -1
  16. package/dist/src/accessories/LiveStatus/types.d.ts +1 -1
  17. package/dist/src/accessories/LiveStatus/types.d.ts.map +1 -1
  18. package/dist/src/accessories/ProgressBar/KdsProgressBar.vue.d.ts +4 -4
  19. package/dist/src/accessories/ProgressBar/KdsProgressBar.vue.d.ts.map +1 -1
  20. package/dist/src/accessories/ProgressBar/types.d.ts +2 -2
  21. package/dist/src/accessories/ProgressBar/types.d.ts.map +1 -1
  22. package/dist/src/buttons/ActionButton/ActionButton.vue.d.ts +8 -4
  23. package/dist/src/buttons/ActionButton/ActionButton.vue.d.ts.map +1 -1
  24. package/dist/src/buttons/BaseButton.vue.d.ts +4 -4
  25. package/dist/src/buttons/KdsButton/KdsButton.vue.d.ts +4 -4
  26. package/dist/src/buttons/KdsMenuButton/KdsMenuButton.vue.d.ts +12 -12
  27. package/dist/src/buttons/KdsProgressButton/KdsProgressButton.vue.d.ts +4 -4
  28. package/dist/src/buttons/KdsProgressButton/KdsProgressButton.vue.d.ts.map +1 -1
  29. package/dist/src/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts +4 -4
  30. package/dist/src/buttons/KdsToggleButton/KdsToggleButton.vue.d.ts +4 -4
  31. package/dist/src/buttons/KdsToggleButton/enums.d.ts +1 -1
  32. package/dist/src/buttons/ResponsiveButtonGroup/KdsResponsiveButtonGroup.vue.d.ts +16 -16
  33. package/dist/src/buttons/ResponsiveButtonGroup/mapping.d.ts +14 -14
  34. package/dist/src/buttons/ResponsiveButtonGroup/types.d.ts +1 -1
  35. package/dist/src/buttons/enums.d.ts +1 -1
  36. package/dist/src/buttons/links/KdsLinkButton/KdsLinkButton.vue.d.ts +4 -4
  37. package/dist/src/buttons/types.d.ts +1 -1
  38. package/dist/src/buttons/types.d.ts.map +1 -1
  39. package/dist/src/containers/FileExplorer/KdsFileExplorer.vue.d.ts.map +1 -1
  40. package/dist/src/containers/ListItem/ListItemAccessory/types.d.ts +3 -3
  41. package/dist/src/containers/ListItem/ListItemAccessory/types.d.ts.map +1 -1
  42. package/dist/src/forms/Checkbox/BaseCheckbox.vue.d.ts +4 -4
  43. package/dist/src/forms/Checkbox/KdsCheckbox.vue.d.ts +4 -4
  44. package/dist/src/forms/Checkbox/types.d.ts +2 -2
  45. package/dist/src/forms/Checkbox/types.d.ts.map +1 -1
  46. package/dist/src/forms/RadioButton/ValueSwitchItem.vue.d.ts +4 -4
  47. package/dist/src/forms/RadioButton/types.d.ts +2 -2
  48. package/dist/src/forms/RadioButton/types.d.ts.map +1 -1
  49. package/dist/src/forms/inputs/ColorInput/KdsColorInput.vue.d.ts.map +1 -1
  50. package/dist/src/forms/inputs/DateInput/KdsDateInput.vue.d.ts.map +1 -1
  51. package/dist/src/forms/inputs/DateTimeFormatInput/KdsDateTimeFormatInput.vue.d.ts.map +1 -1
  52. package/dist/src/forms/inputs/IntervalInput/KdsIntervalInput.vue.d.ts.map +1 -1
  53. package/dist/src/forms/inputs/PasswordInput/KdsPasswordInput.vue.d.ts.map +1 -1
  54. package/dist/src/forms/inputs/PatternInput/KdsPatternInput.vue.d.ts.map +1 -1
  55. package/dist/src/forms/inputs/TimeInput/KdsTimeInput.vue.d.ts.map +1 -1
  56. package/dist/src/forms/inputs/TimeInput/TimePicker.vue.d.ts.map +1 -1
  57. package/dist/src/layouts/Card/enums.d.ts +1 -1
  58. package/dist/src/layouts/Tree/BaseTree/BaseTree.vue.d.ts +33 -0
  59. package/dist/src/layouts/Tree/BaseTree/BaseTree.vue.d.ts.map +1 -0
  60. package/dist/src/layouts/Tree/BaseTree/TreeNode.vue.d.ts +17 -0
  61. package/dist/src/layouts/Tree/BaseTree/TreeNode.vue.d.ts.map +1 -0
  62. package/dist/src/layouts/Tree/BaseTree/context.d.ts +4 -0
  63. package/dist/src/layouts/Tree/BaseTree/context.d.ts.map +1 -0
  64. package/dist/src/layouts/Tree/BaseTree/renderNode.d.ts +35 -0
  65. package/dist/src/layouts/Tree/BaseTree/renderNode.d.ts.map +1 -0
  66. package/dist/src/layouts/Tree/BaseTree/useTreeData.d.ts +11 -0
  67. package/dist/src/layouts/Tree/BaseTree/useTreeData.d.ts.map +1 -0
  68. package/dist/src/layouts/Tree/KdsTree.vue.d.ts +159 -0
  69. package/dist/src/layouts/Tree/KdsTree.vue.d.ts.map +1 -0
  70. package/dist/src/layouts/Tree/index.d.ts +3 -0
  71. package/dist/src/layouts/Tree/index.d.ts.map +1 -0
  72. package/dist/src/layouts/Tree/types.d.ts +100 -0
  73. package/dist/src/layouts/Tree/types.d.ts.map +1 -0
  74. package/dist/src/layouts/index.d.ts +2 -0
  75. package/dist/src/layouts/index.d.ts.map +1 -1
  76. package/dist/src/overlays/Modal/enums.d.ts +2 -2
  77. package/dist/src/overlays/Modal/useKdsDynamicModal.d.ts +6 -6
  78. package/dist/src/{containers/FileExplorer/useKeyPressedUntilMouseClick/index.d.ts → util/useKeyPressedUntilMouseClick.d.ts} +1 -1
  79. package/dist/src/util/useKeyPressedUntilMouseClick.d.ts.map +1 -0
  80. package/package.json +2 -2
  81. package/dist/src/containers/FileExplorer/useKeyPressedUntilMouseClick/index.d.ts.map +0 -1
@@ -0,0 +1,33 @@
1
+ import { BaseTreeNode, EventParams, FocusEventParams, KeydownEvent, LoadDataFunc, NodeKey, RenderNodeFunc, SelectEventParams, TreeNodeOptions } from '../types';
2
+ type Props = {
3
+ source?: TreeNodeOptions[];
4
+ defaultSelectedKey?: string | number;
5
+ defaultExpandedKeys?: NodeKey[];
6
+ selectable?: boolean;
7
+ virtual?: boolean;
8
+ idPrefix?: string;
9
+ loadData?: LoadDataFunc;
10
+ renderNode?: RenderNodeFunc;
11
+ };
12
+ declare const _default: import('vue').DefineComponent<Props, {
13
+ renderNode: RenderNodeFunc | undefined;
14
+ slots: {};
15
+ expandedKeys: Set<NodeKey> & Omit<Set<NodeKey>, keyof Set<any>>;
16
+ getExpandedKeys: () => NodeKey[];
17
+ getSelectedNode: () => BaseTreeNode;
18
+ toggleExpand: (nodeKey: NodeKey, state?: boolean) => void;
19
+ loadChildren: (nodeKey: NodeKey) => void;
20
+ clearChildren: (nodeKey: NodeKey) => void;
21
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
+ keydown: (value: KeydownEvent) => any;
23
+ selectChange: (value: SelectEventParams) => any;
24
+ expandChange: (value: EventParams) => any;
25
+ focusChange: (value: FocusEventParams) => any;
26
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
27
+ onKeydown?: ((value: KeydownEvent) => any) | undefined;
28
+ onSelectChange?: ((value: SelectEventParams) => any) | undefined;
29
+ onExpandChange?: ((value: EventParams) => any) | undefined;
30
+ onFocusChange?: ((value: FocusEventParams) => any) | undefined;
31
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
32
+ export default _default;
33
+ //# sourceMappingURL=BaseTree.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseTree.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/Tree/BaseTree/BaseTree.vue"],"names":[],"mappings":"AACA;AA4XA,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,gBAAgB,EAEhB,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,eAAe,EAChB,MAAM,UAAU,CAAC;AAclB,KAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrC,mBAAmB,CAAC,EAAE,OAAO,EAAE,CAAC;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B,CAAC;;;;;;;4BAsRwB,OAAO,UAAU,OAAO;4BAMxB,OAAO;6BACN,OAAO;;;;;;;;;;;;AAkJlC,wBASG"}
@@ -0,0 +1,17 @@
1
+ import { BaseTreeNode, EventParams, NodeKey } from '../types';
2
+ type Props = {
3
+ node: BaseTreeNode;
4
+ selectedKeys: Set<NodeKey>;
5
+ expandedKeys: Set<NodeKey>;
6
+ focusKey?: NodeKey;
7
+ idPrefix?: string;
8
+ };
9
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ toggleExpand: (value: EventParams) => any;
11
+ selectChange: (value: BaseTreeNode) => any;
12
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
13
+ onToggleExpand?: ((value: EventParams) => any) | undefined;
14
+ onSelectChange?: ((value: BaseTreeNode) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ export default _default;
17
+ //# sourceMappingURL=TreeNode.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TreeNode.vue.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/Tree/BaseTree/TreeNode.vue"],"names":[],"mappings":"AACA;AAqIA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAKnE,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,YAAY,CAAC;IACnB,YAAY,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAC3B,YAAY,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;;;;;;;;AA6LF,wBAQG"}
@@ -0,0 +1,4 @@
1
+ import { InjectionKey } from 'vue';
2
+ import { TreeContext } from '../types';
3
+ export declare const TreeInjectionKey: InjectionKey<TreeContext>;
4
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/Tree/BaseTree/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AAExC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,eAAO,MAAM,gBAAgB,EAAE,YAAY,CAAC,WAAW,CAC3B,CAAC"}
@@ -0,0 +1,35 @@
1
+ import { PropType } from 'vue';
2
+ import { BaseTreeNode, TreeContext } from '../types';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ titleClasses: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ node: {
9
+ type: PropType<BaseTreeNode>;
10
+ required: true;
11
+ };
12
+ context: {
13
+ type: PropType<TreeContext>;
14
+ required: true;
15
+ };
16
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
17
+ [key: string]: any;
18
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
19
+ titleClasses: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ node: {
24
+ type: PropType<BaseTreeNode>;
25
+ required: true;
26
+ };
27
+ context: {
28
+ type: PropType<TreeContext>;
29
+ required: true;
30
+ };
31
+ }>> & Readonly<{}>, {
32
+ titleClasses: string;
33
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
34
+ export default _default;
35
+ //# sourceMappingURL=renderNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderNode.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/Tree/BaseTree/renderNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAA0C,MAAM,KAAK,CAAC;AAE5E,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;;;;;;;cAUpC,QAAQ,CAAC,YAAY,CAAC;;;;cAItB,QAAQ,CAAC,WAAW,CAAC;;;;;;;;;;;cAJrB,QAAQ,CAAC,YAAY,CAAC;;;;cAItB,QAAQ,CAAC,WAAW,CAAC;;;;;;AAZ3C,wBA4BG"}
@@ -0,0 +1,11 @@
1
+ import { BaseTreeNode, KeyNodeMap, TreeNodeOptions } from '../types';
2
+ declare function coerceTreeNodes(source: TreeNodeOptions[], parent?: BaseTreeNode): BaseTreeNode[];
3
+ declare function getFlattenTreeData(tree: BaseTreeNode[]): BaseTreeNode[];
4
+ declare function getKey2TreeNode(flattenTreeData: BaseTreeNode[]): KeyNodeMap;
5
+ declare function useTreeData(source: TreeNodeOptions[]): {
6
+ treeData: BaseTreeNode[];
7
+ flattenTreeData: BaseTreeNode[];
8
+ key2TreeNode: KeyNodeMap;
9
+ };
10
+ export { useTreeData, coerceTreeNodes, getFlattenTreeData, getKey2TreeNode };
11
+ //# sourceMappingURL=useTreeData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTreeData.d.ts","sourceRoot":"","sources":["../../../../../src/layouts/Tree/BaseTree/useTreeData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAE/E,iBAAS,eAAe,CACtB,MAAM,EAAE,eAAe,EAAE,EACzB,MAAM,CAAC,EAAE,YAAY,GACpB,YAAY,EAAE,CAkBhB;AAED,iBAAS,kBAAkB,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,YAAY,EAAE,CAUhE;AAED,iBAAS,eAAe,CAAC,eAAe,EAAE,YAAY,EAAE,cAMvD;AAED,iBAAS,WAAW,CAAC,MAAM,EAAE,eAAe,EAAE;;;;EAK7C;AAED,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,kBAAkB,EAAE,eAAe,EAAE,CAAC"}
@@ -0,0 +1,159 @@
1
+ import { BaseTreeNode, KdsTreeProps, KeydownEvent, NodeKey, SelectEventParams } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Partial<Record<string, (_: {
5
+ treeNode: BaseTreeNode;
6
+ }) => any>> & Partial<Record<string, (_: {
7
+ treeNode: BaseTreeNode;
8
+ }) => any>>;
9
+ refs: {
10
+ baseTree: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
11
+ source?: import('./types').TreeNodeOptions[];
12
+ defaultSelectedKey?: string | number;
13
+ defaultExpandedKeys?: NodeKey[];
14
+ selectable?: boolean;
15
+ virtual?: boolean;
16
+ idPrefix?: string;
17
+ loadData?: import('./types').LoadDataFunc;
18
+ renderNode?: import('./types').RenderNodeFunc;
19
+ }> & Readonly<{
20
+ onKeydown?: ((value: KeydownEvent) => any) | undefined;
21
+ onSelectChange?: ((value: SelectEventParams) => any) | undefined;
22
+ onExpandChange?: ((value: import('./types').EventParams) => any) | undefined;
23
+ onFocusChange?: ((value: import('./types').FocusEventParams) => any) | undefined;
24
+ }>, {
25
+ renderNode: import('./types').RenderNodeFunc | undefined;
26
+ slots: {};
27
+ expandedKeys: Set<NodeKey> & Omit<Set<NodeKey>, keyof Set<any>>;
28
+ getExpandedKeys: () => NodeKey[];
29
+ getSelectedNode: () => BaseTreeNode;
30
+ toggleExpand: (nodeKey: NodeKey, state?: boolean) => void;
31
+ loadChildren: (nodeKey: NodeKey) => void;
32
+ clearChildren: (nodeKey: NodeKey) => void;
33
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
+ keydown: (value: KeydownEvent) => any;
35
+ selectChange: (value: SelectEventParams) => any;
36
+ expandChange: (value: import('./types').EventParams) => any;
37
+ focusChange: (value: import('./types').FocusEventParams) => any;
38
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
39
+ P: {};
40
+ B: {};
41
+ D: {};
42
+ C: {};
43
+ M: {};
44
+ Defaults: {};
45
+ }, Readonly<{
46
+ source?: import('./types').TreeNodeOptions[];
47
+ defaultSelectedKey?: string | number;
48
+ defaultExpandedKeys?: NodeKey[];
49
+ selectable?: boolean;
50
+ virtual?: boolean;
51
+ idPrefix?: string;
52
+ loadData?: import('./types').LoadDataFunc;
53
+ renderNode?: import('./types').RenderNodeFunc;
54
+ }> & Readonly<{
55
+ onKeydown?: ((value: KeydownEvent) => any) | undefined;
56
+ onSelectChange?: ((value: SelectEventParams) => any) | undefined;
57
+ onExpandChange?: ((value: import('./types').EventParams) => any) | undefined;
58
+ onFocusChange?: ((value: import('./types').FocusEventParams) => any) | undefined;
59
+ }>, {
60
+ renderNode: import('./types').RenderNodeFunc | undefined;
61
+ slots: {};
62
+ expandedKeys: Set<NodeKey> & Omit<Set<NodeKey>, keyof Set<any>>;
63
+ getExpandedKeys: () => NodeKey[];
64
+ getSelectedNode: () => BaseTreeNode;
65
+ toggleExpand: (nodeKey: NodeKey, state?: boolean) => void;
66
+ loadChildren: (nodeKey: NodeKey) => void;
67
+ clearChildren: (nodeKey: NodeKey) => void;
68
+ }, {}, {}, {}, {}> | null;
69
+ };
70
+ rootEl: HTMLDivElement;
71
+ };
72
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
73
+ declare const __VLS_component: import('vue').DefineComponent<KdsTreeProps, {
74
+ getExpandedKeys: () => NodeKey[] | undefined;
75
+ toggleExpand: (nodeKey: NodeKey, state
76
+ /**
77
+ * Thin wrapper around the tree library with added KNIME styles and UX.
78
+ */
79
+ ?: boolean) => void;
80
+ getSelectedTreeNode: () => BaseTreeNode | undefined;
81
+ loadChildren: (nodeKey: NodeKey) => void;
82
+ clearChildren: (nodeKey: NodeKey) => void;
83
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
84
+ keydown: (value: KeydownEvent) => any;
85
+ selectChange: (value: SelectEventParams) => any;
86
+ expandChange: (value: import('./types').EventParams) => any;
87
+ }, string, import('vue').PublicProps, Readonly<KdsTreeProps> & Readonly<{
88
+ onKeydown?: ((value: KeydownEvent) => any) | undefined;
89
+ onSelectChange?: ((value: SelectEventParams) => any) | undefined;
90
+ onExpandChange?: ((value: import('./types').EventParams) => any) | undefined;
91
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
92
+ baseTree: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
93
+ source?: import('./types').TreeNodeOptions[];
94
+ defaultSelectedKey?: string | number;
95
+ defaultExpandedKeys?: NodeKey[];
96
+ selectable?: boolean;
97
+ virtual?: boolean;
98
+ idPrefix?: string;
99
+ loadData?: import('./types').LoadDataFunc;
100
+ renderNode?: import('./types').RenderNodeFunc;
101
+ }> & Readonly<{
102
+ onKeydown?: ((value: KeydownEvent) => any) | undefined;
103
+ onSelectChange?: ((value: SelectEventParams) => any) | undefined;
104
+ onExpandChange?: ((value: import('./types').EventParams) => any) | undefined;
105
+ onFocusChange?: ((value: import('./types').FocusEventParams) => any) | undefined;
106
+ }>, {
107
+ renderNode: import('./types').RenderNodeFunc | undefined;
108
+ slots: {};
109
+ expandedKeys: Set<NodeKey> & Omit<Set<NodeKey>, keyof Set<any>>;
110
+ getExpandedKeys: () => NodeKey[];
111
+ getSelectedNode: () => BaseTreeNode;
112
+ toggleExpand: (nodeKey: NodeKey, state?: boolean) => void;
113
+ loadChildren: (nodeKey: NodeKey) => void;
114
+ clearChildren: (nodeKey: NodeKey) => void;
115
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
116
+ keydown: (value: KeydownEvent) => any;
117
+ selectChange: (value: SelectEventParams) => any;
118
+ expandChange: (value: import('./types').EventParams) => any;
119
+ focusChange: (value: import('./types').FocusEventParams) => any;
120
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
121
+ P: {};
122
+ B: {};
123
+ D: {};
124
+ C: {};
125
+ M: {};
126
+ Defaults: {};
127
+ }, Readonly<{
128
+ source?: import('./types').TreeNodeOptions[];
129
+ defaultSelectedKey?: string | number;
130
+ defaultExpandedKeys?: NodeKey[];
131
+ selectable?: boolean;
132
+ virtual?: boolean;
133
+ idPrefix?: string;
134
+ loadData?: import('./types').LoadDataFunc;
135
+ renderNode?: import('./types').RenderNodeFunc;
136
+ }> & Readonly<{
137
+ onKeydown?: ((value: KeydownEvent) => any) | undefined;
138
+ onSelectChange?: ((value: SelectEventParams) => any) | undefined;
139
+ onExpandChange?: ((value: import('./types').EventParams) => any) | undefined;
140
+ onFocusChange?: ((value: import('./types').FocusEventParams) => any) | undefined;
141
+ }>, {
142
+ renderNode: import('./types').RenderNodeFunc | undefined;
143
+ slots: {};
144
+ expandedKeys: Set<NodeKey> & Omit<Set<NodeKey>, keyof Set<any>>;
145
+ getExpandedKeys: () => NodeKey[];
146
+ getSelectedNode: () => BaseTreeNode;
147
+ toggleExpand: (nodeKey: NodeKey, state?: boolean) => void;
148
+ loadChildren: (nodeKey: NodeKey) => void;
149
+ clearChildren: (nodeKey: NodeKey) => void;
150
+ }, {}, {}, {}, {}> | null;
151
+ }, HTMLDivElement>;
152
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
153
+ export default _default;
154
+ type __VLS_WithTemplateSlots<T, S> = T & {
155
+ new (): {
156
+ $slots: S;
157
+ };
158
+ };
159
+ //# sourceMappingURL=KdsTree.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KdsTree.vue.d.ts","sourceRoot":"","sources":["../../../../src/layouts/Tree/KdsTree.vue"],"names":[],"mappings":"AAkUA,OAAO,KAAK,EACV,YAAY,EAGZ,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAkGjB,iBAAS,cAAc;WAkJT,OAAO,IAA6B;;;UAbqC,GAAG;;UACrB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBvE;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;IApSrB;;OAEG;IACH,CAzKI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAodF,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"}
@@ -0,0 +1,3 @@
1
+ export { default as KdsTree } from './KdsTree.vue';
2
+ export type * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/layouts/Tree/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAC;AAEnD,mBAAmB,SAAS,CAAC"}
@@ -0,0 +1,100 @@
1
+ import { Slots, VNode } from 'vue';
2
+ import { KdsDataTypeAccessory, KdsIconAccessory } from '../../containers/ListItem/ListItemAccessory/types';
3
+ type TypeWithUndefined<T> = T | undefined;
4
+ type TypeWithNull<T> = T | null;
5
+ type KdsTreeAccessory = KdsIconAccessory | KdsDataTypeAccessory;
6
+ declare class BaseTreeNode {
7
+ readonly key: NodeKey;
8
+ readonly name: string;
9
+ readonly level: number;
10
+ readonly accessory?: KdsTreeAccessory;
11
+ readonly customSlot?: string;
12
+ readonly disabled: boolean;
13
+ loading: boolean;
14
+ hasChildren: boolean;
15
+ children: BaseTreeNode[];
16
+ parentKey: TypeWithUndefined<NodeKey>;
17
+ parentKeys: NodeKey[];
18
+ origin: TreeNodeOptions;
19
+ constructor(options: TreeNodeOptions, parent?: BaseTreeNode);
20
+ }
21
+ type NodeKey = string | number;
22
+ /** source tree data, requires name and key */
23
+ type TreeNodeOptions = {
24
+ nodeKey: NodeKey;
25
+ name: string;
26
+ hasChildren?: boolean;
27
+ customSlot?: string;
28
+ accessory?: KdsTreeAccessory;
29
+ disabled?: boolean;
30
+ children?: TreeNodeOptions[];
31
+ [key: string]: unknown;
32
+ };
33
+ type TreeNodeInstance = {
34
+ rawNode: TreeNodeOptions;
35
+ };
36
+ type KeyNodeMap = Record<NodeKey, BaseTreeNode>;
37
+ type EventParams = {
38
+ state: boolean;
39
+ node: BaseTreeNode;
40
+ source?: "api" | "click" | "key";
41
+ };
42
+ type SelectEventParams = {
43
+ preSelectedNode: TypeWithUndefined<BaseTreeNode>;
44
+ node: TypeWithUndefined<BaseTreeNode>;
45
+ };
46
+ type FocusEventParams = {
47
+ node: TypeWithNull<BaseTreeNode>;
48
+ };
49
+ type KeydownEvent = {
50
+ event: KeyboardEvent;
51
+ node: BaseTreeNode;
52
+ };
53
+ type RenderNodeFunc = (node: BaseTreeNode) => VNode;
54
+ type LoadDataFunc = (node: BaseTreeNode, callback: (children: TreeNodeOptions[]) => void) => void;
55
+ type TreeContext = Readonly<{
56
+ renderNode: TypeWithUndefined<RenderNodeFunc>;
57
+ slots: Slots;
58
+ expandedKeys: Set<NodeKey>;
59
+ getSelectedNode: () => TypeWithUndefined<BaseTreeNode>;
60
+ getExpandedKeys: () => NodeKey[];
61
+ toggleExpand: (nodeKey: NodeKey, state?: boolean) => void;
62
+ loadChildren: (nodeKey: NodeKey) => void;
63
+ clearChildren: (nodeKey: NodeKey) => void;
64
+ }>;
65
+ type KdsTreeProps = {
66
+ /** Hierarchical tree data. Each node requires a `nodeKey` and `name`; children may be nested directly or loaded lazily via `loadData`. */
67
+ source: TreeNodeOptions[];
68
+ /** Async loader invoked when an expandable node has `hasChildren: true` but no `children` yet. While pending the chevron is replaced by a loading spinner. */
69
+ loadData?: LoadDataFunc;
70
+ /** When `false`, clicks and keyboard navigation still focus nodes but no selection state is tracked and `selectChange` is not emitted. Defaults to `true`. */
71
+ selectable?: boolean;
72
+ /** Keys of branches that should be expanded on mount. Subsequent expand/collapse is managed internally. Defaults to `[]`. */
73
+ expandedKeys?: string[];
74
+ /** Prefix used to build the DOM id of each rendered node (`${idPrefix}_${nodeKey}`). Set this to keep ids unique when multiple trees are on the same page. Defaults to `"tree"`. */
75
+ idPrefix?: string;
76
+ /** When `true`, only the visible rows are rendered. The tree must be wrapped in a fixed-height, scrollable container. Defaults to `false`. */
77
+ virtual?: boolean;
78
+ };
79
+ type KdsTreeEmits = {
80
+ /** Emitted on every keydown over a focused tree node, after the tree's own keyboard handling has run. */
81
+ keydown: [value: KeydownEvent];
82
+ /** Emitted when the selected node changes. Not emitted when `selectable` is `false`. */
83
+ selectChange: [value: SelectEventParams];
84
+ /** Emitted when a node is expanded or collapsed. `source` indicates whether the change came from `"click"`, `"key"`, or `"api"`. */
85
+ expandChange: [value: EventParams];
86
+ };
87
+ type KdsTreeExpose = {
88
+ /** Returns the keys of all currently expanded nodes. */
89
+ getExpandedKeys: () => NodeKey[] | undefined;
90
+ /** Expand or collapse a node. When `state` is omitted, the current state is toggled. */
91
+ toggleExpand: (nodeKey: NodeKey, state?: boolean) => void;
92
+ /** Returns the currently selected node, or `undefined` if nothing is selected or the tree is not `selectable`. */
93
+ getSelectedTreeNode: () => BaseTreeNode | undefined;
94
+ /** Trigger the `loadData` prop to load the children of the given nodeKey. Does not remove current children. */
95
+ loadChildren: (nodeKey: NodeKey) => void;
96
+ /** Remove all children of a given nodeKey. */
97
+ clearChildren: (nodeKey: NodeKey) => void;
98
+ };
99
+ export { BaseTreeNode, type TreeNodeOptions, type NodeKey, type TreeNodeInstance, type KeyNodeMap, type EventParams, type FocusEventParams, type SelectEventParams, type RenderNodeFunc, type LoadDataFunc, type KeydownEvent, type TreeContext, type KdsTreeProps, type KdsTreeEmits, type KdsTreeExpose, type KdsTreeAccessory, };
100
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/layouts/Tree/types.ts"],"names":[],"mappings":"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"}
@@ -16,4 +16,6 @@ export * from './Breadcrumb';
16
16
  export type * from './Breadcrumb';
17
17
  export * from './InlineMessage';
18
18
  export type * from './InlineMessage';
19
+ export * from './Tree';
20
+ export type * from './Tree';
19
21
  //# 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,aAAa,CAAC;AAC5B,mBAAmB,aAAa,CAAC;AAEjC,cAAc,QAAQ,CAAC;AACvB,mBAAmB,QAAQ,CAAC;AAE5B,cAAc,SAAS,CAAC;AACxB,mBAAmB,SAAS,CAAC;AAE7B,cAAc,UAAU,CAAC;AACzB,mBAAmB,UAAU,CAAC;AAE9B,cAAc,mBAAmB,CAAC;AAClC,mBAAmB,mBAAmB,CAAC;AAEvC,cAAc,cAAc,CAAC;AAC7B,mBAAmB,cAAc,CAAC;AAElC,cAAc,cAAc,CAAC;AAC7B,mBAAmB,cAAc,CAAC;AAElC,cAAc,iBAAiB,CAAC;AAChC,mBAAmB,iBAAiB,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,aAAa,CAAC;AAC5B,mBAAmB,aAAa,CAAC;AAEjC,cAAc,QAAQ,CAAC;AACvB,mBAAmB,QAAQ,CAAC;AAE5B,cAAc,SAAS,CAAC;AACxB,mBAAmB,SAAS,CAAC;AAE7B,cAAc,UAAU,CAAC;AACzB,mBAAmB,UAAU,CAAC;AAE9B,cAAc,mBAAmB,CAAC;AAClC,mBAAmB,mBAAmB,CAAC;AAEvC,cAAc,cAAc,CAAC;AAC7B,mBAAmB,cAAc,CAAC;AAElC,cAAc,cAAc,CAAC;AAC7B,mBAAmB,cAAc,CAAC;AAElC,cAAc,iBAAiB,CAAC;AAChC,mBAAmB,iBAAiB,CAAC;AAErC,cAAc,QAAQ,CAAC;AACvB,mBAAmB,QAAQ,CAAC"}
@@ -3,7 +3,7 @@ export declare const kdsModalClosedBy: {
3
3
  readonly CLOSEREQUEST: "closerequest";
4
4
  readonly NONE: "none";
5
5
  };
6
- export declare const kdsModalClosedByOptions: ("none" | "any" | "closerequest")[];
6
+ export declare const kdsModalClosedByOptions: ("any" | "closerequest" | "none")[];
7
7
  export declare const kdsModalWidth: {
8
8
  readonly SMALL: "small";
9
9
  readonly MEDIUM: "medium";
@@ -16,7 +16,7 @@ export declare const kdsModalHeight: {
16
16
  readonly AUTO: "auto";
17
17
  readonly FULL: "full";
18
18
  };
19
- export declare const kdsModalHeightSizes: ("auto" | "full")[];
19
+ export declare const kdsModalHeightSizes: ("full" | "auto")[];
20
20
  export declare const kdsModalVariant: {
21
21
  readonly PADDED: "padded";
22
22
  readonly PLAIN: "plain";
@@ -89,10 +89,10 @@ export declare const useKdsDynamicModal: () => {
89
89
  value: {
90
90
  variant?: import('./types').KdsModalVariant | undefined;
91
91
  leadingIcon?: import('../..').KdsIconName | undefined;
92
- height?: import('./types').KdsModalHeight | undefined;
93
- width?: import('./types').KdsModalWidth | undefined;
94
92
  headline?: string | undefined;
95
93
  overflow?: "hidden" | "auto" | "visible" | undefined;
94
+ width?: import('./types').KdsModalWidth | undefined;
95
+ height?: import('./types').KdsModalHeight | undefined;
96
96
  closedby?: import('./types').KdsModalClosedBy | undefined;
97
97
  message: string;
98
98
  doNotAskAgain?: {
@@ -123,10 +123,10 @@ export declare const useKdsDynamicModal: () => {
123
123
  } | {
124
124
  variant?: import('./types').KdsModalVariant | undefined;
125
125
  leadingIcon?: import('../..').KdsIconName | undefined;
126
- height?: import('./types').KdsModalHeight | undefined;
127
- width?: import('./types').KdsModalWidth | undefined;
128
126
  headline?: string | undefined;
129
127
  overflow?: "hidden" | "auto" | "visible" | undefined;
128
+ width?: import('./types').KdsModalWidth | undefined;
129
+ height?: import('./types').KdsModalHeight | undefined;
130
130
  closedby?: import('./types').KdsModalClosedBy | undefined;
131
131
  component: FunctionalComponent | ComponentPublicInstance | VNode;
132
132
  buttons?: ({
@@ -156,10 +156,10 @@ export declare const useKdsDynamicModal: () => {
156
156
  value: {
157
157
  variant?: import('./types').KdsModalVariant | undefined;
158
158
  leadingIcon?: import('../..').KdsIconName | undefined;
159
- height?: import('./types').KdsModalHeight | undefined;
160
- width?: import('./types').KdsModalWidth | undefined;
161
159
  headline?: string | undefined;
162
160
  overflow?: "hidden" | "auto" | "visible" | undefined;
161
+ width?: import('./types').KdsModalWidth | undefined;
162
+ height?: import('./types').KdsModalHeight | undefined;
163
163
  closedby?: import('./types').KdsModalClosedBy | undefined;
164
164
  component: DynamicModalComponent<any> | FunctionalComponent<KdsDynamicModalPropsAPI<any>, {}, any, {}>;
165
165
  context?: any;
@@ -1,2 +1,2 @@
1
1
  export declare const useKeyPressedUntilMouseClick: (keys?: Array<string>) => import('vue').Ref<boolean, boolean>;
2
- //# sourceMappingURL=index.d.ts.map
2
+ //# sourceMappingURL=useKeyPressedUntilMouseClick.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useKeyPressedUntilMouseClick.d.ts","sourceRoot":"","sources":["../../../src/util/useKeyPressedUntilMouseClick.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,4BAA4B,GACvC,OAAM,KAAK,CAAC,MAAM,CAAe,wCAgClC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/kds-components",
3
- "version": "1.1.4",
3
+ "version": "1.2.0",
4
4
  "description": "Package containing basic Vue components of the KNIME Design System",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,7 +40,7 @@
40
40
  "motion": "^12.40.0",
41
41
  "pretty-bytes": "^7.1.0",
42
42
  "temporal-polyfill": "^0.3.2",
43
- "@knime/kds-styles": "^1.1.4"
43
+ "@knime/kds-styles": "^1.2.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@storybook/vue3-vite": "^10.4.6",
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/FileExplorer/useKeyPressedUntilMouseClick/index.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,4BAA4B,GACvC,OAAM,KAAK,CAAC,MAAM,CAAe,wCAgClC,CAAC"}