@knime/kds-components 6.5.0 → 6.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/{KdsIcon-BEh81Opy.js → KdsIcon-C8DqnncR.js} +2 -1
- package/dist/{KdsIcon-BEh81Opy.js.map → KdsIcon-C8DqnncR.js.map} +1 -1
- package/dist/index.css +51 -51
- package/dist/index.js +97 -13
- package/dist/index.js.map +1 -1
- package/dist/pause-execution-7lwlWtVK.js +21 -0
- package/dist/pause-execution-7lwlWtVK.js.map +1 -0
- package/dist/src/layouts/explorer/Tree/BaseTree/BaseTree.vue.d.ts +6 -0
- package/dist/src/layouts/explorer/Tree/BaseTree/BaseTree.vue.d.ts.map +1 -1
- package/dist/src/layouts/explorer/Tree/BaseTree/TreeNode.vue.d.ts +1 -0
- package/dist/src/layouts/explorer/Tree/BaseTree/TreeNode.vue.d.ts.map +1 -1
- package/dist/src/layouts/explorer/Tree/KdsTree.vue.d.ts +2 -0
- package/dist/src/layouts/explorer/Tree/KdsTree.vue.d.ts.map +1 -1
- package/dist/src/layouts/explorer/Tree/types.d.ts +11 -0
- package/dist/src/layouts/explorer/Tree/types.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as kdsPopoverRole, c as kdsPopoverTypes, i as kdsPopoverPlacements, l as _plugin_vue_export_helper_default, o as kdsPopoverRoles, r as kdsPopoverPlacement, s as kdsPopoverType, t as KdsPopover_default, u as __exportAll$1 } from "./KdsPopover-DBU9xVEK.js";
|
|
2
|
-
import { a as useKdsIsTruncated, i as elementOverflowsHorizontally, n as useIcon, r as vKdsTooltip, t as KdsIcon_default } from "./KdsIcon-
|
|
2
|
+
import { a as useKdsIsTruncated, i as elementOverflowsHorizontally, n as useIcon, r as vKdsTooltip, t as KdsIcon_default } from "./KdsIcon-C8DqnncR.js";
|
|
3
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createPropsRestProxy, createSlots, createTextVNode, createVNode, defineAsyncComponent, defineComponent, getCurrentInstance, guardReactiveProps, h, inject, isRef, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onBeforeUpdate, onMounted, onUnmounted, openBlock, provide, readonly, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, toRef, toRefs, unref, useAttrs, useCssVars, useId, useModel, useSlots, useTemplateRef, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
4
4
|
import { onClickOutside, useDark, useElementSize, useLocalStorage, useMousePressed, usePreferredDark, useResizeObserver, useTemplateRefsList, useVirtualList } from "@vueuse/core";
|
|
5
5
|
import './index.css';//#region src/components/accessories/Avatar/enums.ts
|
|
@@ -342,6 +342,7 @@ var iconNames = [
|
|
|
342
342
|
"pan-mode",
|
|
343
343
|
"parameter",
|
|
344
344
|
"path-separator",
|
|
345
|
+
"pause-execution",
|
|
345
346
|
"pending-changes",
|
|
346
347
|
"pin",
|
|
347
348
|
"placeholder",
|
|
@@ -3989,17 +3990,17 @@ var color$1 = {
|
|
|
3989
3990
|
light: {
|
|
3990
3991
|
h: 0,
|
|
3991
3992
|
s: 0,
|
|
3992
|
-
l:
|
|
3993
|
+
l: 43,
|
|
3993
3994
|
alpha: 1
|
|
3994
3995
|
},
|
|
3995
3996
|
dark: {
|
|
3996
3997
|
h: 0,
|
|
3997
3998
|
s: 0,
|
|
3998
|
-
l:
|
|
3999
|
+
l: 48.2,
|
|
3999
4000
|
alpha: 1
|
|
4000
4001
|
},
|
|
4001
4002
|
css: {
|
|
4002
|
-
value: "light-dark(hsl(0, 0%,
|
|
4003
|
+
value: "light-dark(hsl(0, 0%, 43%), hsl(0, 0%, 48.2%))",
|
|
4003
4004
|
variable: "var(--kds-color-connector-data)"
|
|
4004
4005
|
}
|
|
4005
4006
|
},
|
|
@@ -4020,6 +4021,60 @@ var color$1 = {
|
|
|
4020
4021
|
value: "hsl(359.6, 84.3%, 62.5%)",
|
|
4021
4022
|
variable: "var(--kds-color-connector-flow-variable)"
|
|
4022
4023
|
}
|
|
4024
|
+
},
|
|
4025
|
+
selected: {
|
|
4026
|
+
light: {
|
|
4027
|
+
h: 209.4,
|
|
4028
|
+
s: 57.3,
|
|
4029
|
+
l: 49.6,
|
|
4030
|
+
alpha: 1
|
|
4031
|
+
},
|
|
4032
|
+
dark: {
|
|
4033
|
+
h: 213.6,
|
|
4034
|
+
s: 91.6,
|
|
4035
|
+
l: 76.7,
|
|
4036
|
+
alpha: 1
|
|
4037
|
+
},
|
|
4038
|
+
css: {
|
|
4039
|
+
value: "light-dark(hsl(209.4, 57.3%, 49.6%), hsl(213.6, 91.6%, 76.7%))",
|
|
4040
|
+
variable: "var(--kds-color-connector-selected)"
|
|
4041
|
+
}
|
|
4042
|
+
},
|
|
4043
|
+
highlighted: {
|
|
4044
|
+
light: {
|
|
4045
|
+
h: 0,
|
|
4046
|
+
s: 0,
|
|
4047
|
+
l: 15.7,
|
|
4048
|
+
alpha: 1
|
|
4049
|
+
},
|
|
4050
|
+
dark: {
|
|
4051
|
+
h: 0,
|
|
4052
|
+
s: 0,
|
|
4053
|
+
l: 94.1,
|
|
4054
|
+
alpha: 1
|
|
4055
|
+
},
|
|
4056
|
+
css: {
|
|
4057
|
+
value: "light-dark(hsl(0, 0%, 15.7%), hsl(0, 0%, 94.1%))",
|
|
4058
|
+
variable: "var(--kds-color-connector-highlighted)"
|
|
4059
|
+
}
|
|
4060
|
+
},
|
|
4061
|
+
insertable: {
|
|
4062
|
+
light: {
|
|
4063
|
+
h: 116.1,
|
|
4064
|
+
s: 46.6,
|
|
4065
|
+
l: 25.7,
|
|
4066
|
+
alpha: 1
|
|
4067
|
+
},
|
|
4068
|
+
dark: {
|
|
4069
|
+
h: 106.5,
|
|
4070
|
+
s: 42.6,
|
|
4071
|
+
l: 54.9,
|
|
4072
|
+
alpha: 1
|
|
4073
|
+
},
|
|
4074
|
+
css: {
|
|
4075
|
+
value: "light-dark(hsl(116.1, 46.6%, 25.7%), hsl(106.5, 42.6%, 54.9%))",
|
|
4076
|
+
variable: "var(--kds-color-connector-insertable)"
|
|
4077
|
+
}
|
|
4023
4078
|
}
|
|
4024
4079
|
},
|
|
4025
4080
|
elevation: {
|
|
@@ -5094,6 +5149,22 @@ var dimension = {
|
|
|
5094
5149
|
variable: "var(--kds-dimension-component-width-4x)"
|
|
5095
5150
|
}
|
|
5096
5151
|
},
|
|
5152
|
+
"6x": {
|
|
5153
|
+
value: 96,
|
|
5154
|
+
unit: "px",
|
|
5155
|
+
css: {
|
|
5156
|
+
value: "96px",
|
|
5157
|
+
variable: "var(--kds-dimension-component-width-6x)"
|
|
5158
|
+
}
|
|
5159
|
+
},
|
|
5160
|
+
"8x": {
|
|
5161
|
+
value: 128,
|
|
5162
|
+
unit: "px",
|
|
5163
|
+
css: {
|
|
5164
|
+
value: "128px",
|
|
5165
|
+
variable: "var(--kds-dimension-component-width-8x)"
|
|
5166
|
+
}
|
|
5167
|
+
},
|
|
5097
5168
|
"12x": {
|
|
5098
5169
|
value: 192,
|
|
5099
5170
|
unit: "px",
|
|
@@ -33165,6 +33236,7 @@ var TreeNode_default = /* @__PURE__ */ defineComponent({
|
|
|
33165
33236
|
props: {
|
|
33166
33237
|
node: {},
|
|
33167
33238
|
selectedKeys: {},
|
|
33239
|
+
programmaticallySelectedKeys: { default: () => void 0 },
|
|
33168
33240
|
expandedKeys: {},
|
|
33169
33241
|
focusKey: { default: () => void 0 },
|
|
33170
33242
|
idPrefix: { default: "tree" }
|
|
@@ -33176,19 +33248,21 @@ var TreeNode_default = /* @__PURE__ */ defineComponent({
|
|
|
33176
33248
|
const isExpanded = computed(() => __props.expandedKeys.has(__props.node.key));
|
|
33177
33249
|
const isSelected = computed(() => __props.selectedKeys.has(__props.node.key));
|
|
33178
33250
|
const isDisabled = computed(() => __props.node.disabled);
|
|
33251
|
+
const isProgrammaticallySelected = computed(() => !isDisabled.value && (__props.programmaticallySelectedKeys?.has(__props.node.key) ?? false));
|
|
33179
33252
|
const isFocused = computed(() => __props.focusKey === __props.node.key);
|
|
33253
|
+
const showSelectedStyling = computed(() => isSelected.value && __props.programmaticallySelectedKeys === void 0 || isProgrammaticallySelected.value);
|
|
33180
33254
|
const emit = __emit;
|
|
33181
33255
|
const treeContext = inject(TreeInjectionKey);
|
|
33182
33256
|
const treeNodeStyle = computed(() => ({ "--virtual-tree-level": __props.node.level }));
|
|
33183
33257
|
const nodeClasses = computed(() => ["virtual-tree-node", {
|
|
33184
|
-
selected:
|
|
33258
|
+
selected: showSelectedStyling.value,
|
|
33185
33259
|
focused: isFocused.value,
|
|
33186
33260
|
disabled: isDisabled.value
|
|
33187
33261
|
}]);
|
|
33188
33262
|
const titleClasses = computed(() => {
|
|
33189
33263
|
let result = "node-title";
|
|
33190
33264
|
if (isFocused.value) result += " focused";
|
|
33191
|
-
if (
|
|
33265
|
+
if (showSelectedStyling.value) result += " selected";
|
|
33192
33266
|
if (isDisabled.value) result += " disabled";
|
|
33193
33267
|
return result;
|
|
33194
33268
|
});
|
|
@@ -33356,7 +33430,8 @@ var BaseTree_default = /* @__PURE__ */ defineComponent({
|
|
|
33356
33430
|
default: void 0
|
|
33357
33431
|
},
|
|
33358
33432
|
filterKeys: { default: () => void 0 },
|
|
33359
|
-
searchExpandedKeys: { default: () => void 0 }
|
|
33433
|
+
searchExpandedKeys: { default: () => void 0 },
|
|
33434
|
+
programmaticallySelectedKeys: { default: () => void 0 }
|
|
33360
33435
|
},
|
|
33361
33436
|
emits: [
|
|
33362
33437
|
"selectChange",
|
|
@@ -33610,6 +33685,7 @@ var BaseTree_default = /* @__PURE__ */ defineComponent({
|
|
|
33610
33685
|
node: item,
|
|
33611
33686
|
"id-prefix": __props.idPrefix,
|
|
33612
33687
|
"selected-keys": selectedKeys.value,
|
|
33688
|
+
"programmatically-selected-keys": __props.programmaticallySelectedKeys,
|
|
33613
33689
|
"expanded-keys": expandedKeys.value,
|
|
33614
33690
|
"focus-key": focusKey.value,
|
|
33615
33691
|
onToggleExpand: toggleExpand,
|
|
@@ -33619,6 +33695,7 @@ var BaseTree_default = /* @__PURE__ */ defineComponent({
|
|
|
33619
33695
|
"node",
|
|
33620
33696
|
"id-prefix",
|
|
33621
33697
|
"selected-keys",
|
|
33698
|
+
"programmatically-selected-keys",
|
|
33622
33699
|
"expanded-keys",
|
|
33623
33700
|
"focus-key"
|
|
33624
33701
|
]);
|
|
@@ -33628,6 +33705,7 @@ var BaseTree_default = /* @__PURE__ */ defineComponent({
|
|
|
33628
33705
|
node: item,
|
|
33629
33706
|
"id-prefix": __props.idPrefix,
|
|
33630
33707
|
"selected-keys": selectedKeys.value,
|
|
33708
|
+
"programmatically-selected-keys": __props.programmaticallySelectedKeys,
|
|
33631
33709
|
"expanded-keys": expandedKeys.value,
|
|
33632
33710
|
"focus-key": focusKey.value,
|
|
33633
33711
|
onToggleExpand: toggleExpand,
|
|
@@ -33636,6 +33714,7 @@ var BaseTree_default = /* @__PURE__ */ defineComponent({
|
|
|
33636
33714
|
"node",
|
|
33637
33715
|
"id-prefix",
|
|
33638
33716
|
"selected-keys",
|
|
33717
|
+
"programmatically-selected-keys",
|
|
33639
33718
|
"expanded-keys",
|
|
33640
33719
|
"focus-key"
|
|
33641
33720
|
]);
|
|
@@ -33766,7 +33845,8 @@ var KdsTree_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
33766
33845
|
type: Boolean,
|
|
33767
33846
|
default: false
|
|
33768
33847
|
},
|
|
33769
|
-
searchPlaceholder: { default: "Search" }
|
|
33848
|
+
searchPlaceholder: { default: "Search" },
|
|
33849
|
+
programmaticallySelectedKeys: { default: () => void 0 }
|
|
33770
33850
|
}, {
|
|
33771
33851
|
"searchTerm": { default: "" },
|
|
33772
33852
|
"searchTermModifiers": {}
|
|
@@ -33906,6 +33986,7 @@ var KdsTree_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
33906
33986
|
source: __props.source,
|
|
33907
33987
|
"load-data": __props.loadData,
|
|
33908
33988
|
selectable: __props.selectable,
|
|
33989
|
+
"programmatically-selected-keys": __props.programmaticallySelectedKeys,
|
|
33909
33990
|
"default-selected-key": selectedKey.value,
|
|
33910
33991
|
"default-expanded-keys": __props.expandedKeys,
|
|
33911
33992
|
"search-expanded-keys": activeSearchExpandedKeys.value,
|
|
@@ -33927,7 +34008,8 @@ var KdsTree_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
33927
34008
|
onClick: () => onExpandableClick(node)
|
|
33928
34009
|
}, [renderSlot(_ctx.$slots, node.customSlot ?? "expandable", {
|
|
33929
34010
|
treeNode: node,
|
|
33930
|
-
searchTerm: searchTerm.value
|
|
34011
|
+
searchTerm: searchTerm.value,
|
|
34012
|
+
isFocused: node.key === focusedNodeKey.value
|
|
33931
34013
|
}, () => [node.accessory ? (openBlock(), createBlock(_Accessory_default, {
|
|
33932
34014
|
key: 0,
|
|
33933
34015
|
accessory: node.accessory,
|
|
@@ -33941,7 +34023,8 @@ var KdsTree_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
33941
34023
|
"truncated"
|
|
33942
34024
|
]])], true)], 8, _hoisted_2$7)) : (openBlock(), createElementBlock("span", _hoisted_4$5, [renderSlot(_ctx.$slots, node.customSlot ?? "leaf", {
|
|
33943
34025
|
treeNode: node,
|
|
33944
|
-
searchTerm: searchTerm.value
|
|
34026
|
+
searchTerm: searchTerm.value,
|
|
34027
|
+
isFocused: node.key === focusedNodeKey.value
|
|
33945
34028
|
}, () => [node.accessory ? (openBlock(), createBlock(_Accessory_default, {
|
|
33946
34029
|
key: 0,
|
|
33947
34030
|
accessory: node.accessory,
|
|
@@ -33960,6 +34043,7 @@ var KdsTree_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
33960
34043
|
"source",
|
|
33961
34044
|
"load-data",
|
|
33962
34045
|
"selectable",
|
|
34046
|
+
"programmatically-selected-keys",
|
|
33963
34047
|
"default-selected-key",
|
|
33964
34048
|
"default-expanded-keys",
|
|
33965
34049
|
"search-expanded-keys",
|
|
@@ -33976,7 +34060,7 @@ var KdsTree_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE
|
|
|
33976
34060
|
], 2);
|
|
33977
34061
|
};
|
|
33978
34062
|
}
|
|
33979
|
-
}), [["__scopeId", "data-v-
|
|
34063
|
+
}), [["__scopeId", "data-v-f8b3a29c"]]);
|
|
33980
34064
|
//#endregion
|
|
33981
34065
|
//#region src/layouts/explorer/PreviewList/KdsPreviewList.vue?vue&type=script&setup=true&lang.ts
|
|
33982
34066
|
var _hoisted_1$8 = { class: "kds-preview-list" };
|
|
@@ -34416,7 +34500,7 @@ var _Splitter_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
34416
34500
|
"splitterClick"
|
|
34417
34501
|
],
|
|
34418
34502
|
setup(__props, { emit: __emit }) {
|
|
34419
|
-
useCssVars((_ctx) => ({ "
|
|
34503
|
+
useCssVars((_ctx) => ({ "v59690216": _ctx.splitterSize }));
|
|
34420
34504
|
const GROW_KEY = {
|
|
34421
34505
|
left: "ArrowRight",
|
|
34422
34506
|
right: "ArrowLeft",
|
|
@@ -34548,7 +34632,7 @@ var _Splitter_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
34548
34632
|
], 14, _hoisted_1$5);
|
|
34549
34633
|
};
|
|
34550
34634
|
}
|
|
34551
|
-
}), [["__scopeId", "data-v-
|
|
34635
|
+
}), [["__scopeId", "data-v-bcb0fc7b"]]);
|
|
34552
34636
|
//#endregion
|
|
34553
34637
|
//#region src/layouts/panels/SplitPanel/enums.ts
|
|
34554
34638
|
var kdsSplitPanelDirection = {
|