@knime/kds-components 2.2.0 → 2.4.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/CHANGELOG.md +20 -0
- package/dist/index.css +91 -91
- package/dist/index.js +275 -90
- package/dist/index.js.map +1 -1
- package/dist/src/accessories/ColorSwatch/KdsColorSwatch.vue.d.ts.map +1 -1
- package/dist/src/containers/FileExplorer/KdsFileExplorer.vue.d.ts +2 -2
- package/dist/src/containers/FileExplorer/KdsFileExplorer.vue.d.ts.map +1 -1
- package/dist/src/containers/FileExplorer/types.d.ts +1 -1
- package/dist/src/containers/FileExplorer/types.d.ts.map +1 -1
- package/dist/src/containers/FileExplorer/useItemDragging/index.d.ts +22 -14
- package/dist/src/containers/FileExplorer/useItemDragging/index.d.ts.map +1 -1
- package/dist/src/containers/FileExplorer/utils/dragGhostHelpers.d.ts.map +1 -1
- package/dist/src/forms/selects/MultiSelectListBox/KdsMultiSelectListBox.vue.d.ts.map +1 -1
- package/dist/src/forms/selects/TwinList/TwinListBody.vue.d.ts.map +1 -1
- package/dist/src/layouts/LoadingSkeleton/KdsLoadingSkeleton.vue.d.ts.map +1 -1
- package/dist/src/layouts/LoadingSkeleton/types.d.ts +3 -2
- package/dist/src/layouts/LoadingSkeleton/types.d.ts.map +1 -1
- package/dist/src/layouts/Navigation/KdsNavItem/KdsNavItem.vue.d.ts.map +1 -1
- package/dist/src/layouts/TabBar/KdsTabBar.vue.d.ts.map +1 -1
- package/dist/src/layouts/TabBar/useTabBarAdaptiveLayout.d.ts +3 -4
- package/dist/src/layouts/TabBar/useTabBarAdaptiveLayout.d.ts.map +1 -1
- package/dist/src/layouts/Tree/BaseTree/BaseTree.vue.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4569,6 +4569,182 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
4569
4569
|
|
|
4570
4570
|
const KdsProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["__scopeId", "data-v-a8563140"]]);
|
|
4571
4571
|
|
|
4572
|
+
/**
|
|
4573
|
+
* Do not edit directly, this file was auto-generated
|
|
4574
|
+
* from the design token sources in src/tokens.
|
|
4575
|
+
*/
|
|
4576
|
+
const borderRadius = {
|
|
4577
|
+
container: {
|
|
4578
|
+
"0.12x": {
|
|
4579
|
+
css: {
|
|
4580
|
+
variable: "var(--kds-border-radius-container-0-12x)",
|
|
4581
|
+
},
|
|
4582
|
+
},
|
|
4583
|
+
"0.31x": {
|
|
4584
|
+
css: {
|
|
4585
|
+
variable: "var(--kds-border-radius-container-0-31x)",
|
|
4586
|
+
},
|
|
4587
|
+
}},
|
|
4588
|
+
};
|
|
4589
|
+
|
|
4590
|
+
/**
|
|
4591
|
+
* Do not edit directly, this file was auto-generated
|
|
4592
|
+
* from the design token sources in src/tokens.
|
|
4593
|
+
*/
|
|
4594
|
+
const color$1 = {
|
|
4595
|
+
background: {
|
|
4596
|
+
selected: {
|
|
4597
|
+
initial: {
|
|
4598
|
+
css: {
|
|
4599
|
+
variable: "var(--kds-color-background-selected-initial)",
|
|
4600
|
+
},
|
|
4601
|
+
},
|
|
4602
|
+
hover: {
|
|
4603
|
+
css: {
|
|
4604
|
+
variable: "var(--kds-color-background-selected-hover)",
|
|
4605
|
+
},
|
|
4606
|
+
}},
|
|
4607
|
+
"selected-bold": {
|
|
4608
|
+
initial: {
|
|
4609
|
+
css: {
|
|
4610
|
+
variable: "var(--kds-color-background-selected-bold-initial)",
|
|
4611
|
+
},
|
|
4612
|
+
}}},
|
|
4613
|
+
"text-and-icon": {
|
|
4614
|
+
neutral: {
|
|
4615
|
+
css: {
|
|
4616
|
+
variable: "var(--kds-color-text-and-icon-neutral)",
|
|
4617
|
+
},
|
|
4618
|
+
},
|
|
4619
|
+
selected: {
|
|
4620
|
+
css: {
|
|
4621
|
+
variable: "var(--kds-color-text-and-icon-selected)",
|
|
4622
|
+
},
|
|
4623
|
+
}},
|
|
4624
|
+
"nodes-and-variables": {
|
|
4625
|
+
manipulator: {
|
|
4626
|
+
css: {
|
|
4627
|
+
variable: "var(--kds-color-nodes-and-variables-manipulator)",
|
|
4628
|
+
},
|
|
4629
|
+
},
|
|
4630
|
+
predictor: {
|
|
4631
|
+
css: {
|
|
4632
|
+
variable: "var(--kds-color-nodes-and-variables-predictor)",
|
|
4633
|
+
},
|
|
4634
|
+
},
|
|
4635
|
+
source: {
|
|
4636
|
+
css: {
|
|
4637
|
+
variable: "var(--kds-color-nodes-and-variables-source)",
|
|
4638
|
+
},
|
|
4639
|
+
},
|
|
4640
|
+
visualizer: {
|
|
4641
|
+
css: {
|
|
4642
|
+
variable: "var(--kds-color-nodes-and-variables-visualizer)",
|
|
4643
|
+
},
|
|
4644
|
+
},
|
|
4645
|
+
learner: {
|
|
4646
|
+
css: {
|
|
4647
|
+
variable: "var(--kds-color-nodes-and-variables-learner)",
|
|
4648
|
+
},
|
|
4649
|
+
},
|
|
4650
|
+
sink: {
|
|
4651
|
+
css: {
|
|
4652
|
+
variable: "var(--kds-color-nodes-and-variables-sink)",
|
|
4653
|
+
},
|
|
4654
|
+
},
|
|
4655
|
+
other: {
|
|
4656
|
+
css: {
|
|
4657
|
+
variable: "var(--kds-color-nodes-and-variables-other)",
|
|
4658
|
+
},
|
|
4659
|
+
},
|
|
4660
|
+
component: {
|
|
4661
|
+
css: {
|
|
4662
|
+
variable: "var(--kds-color-nodes-and-variables-component)",
|
|
4663
|
+
},
|
|
4664
|
+
}}};
|
|
4665
|
+
|
|
4666
|
+
/**
|
|
4667
|
+
* Do not edit directly, this file was auto-generated
|
|
4668
|
+
* from the design token sources in src/tokens.
|
|
4669
|
+
*/
|
|
4670
|
+
const dimension = {
|
|
4671
|
+
component: {
|
|
4672
|
+
height: {
|
|
4673
|
+
"1.25x": {
|
|
4674
|
+
css: {
|
|
4675
|
+
variable: "var(--kds-dimension-component-height-1-25x)",
|
|
4676
|
+
},
|
|
4677
|
+
},
|
|
4678
|
+
"1.5x": {
|
|
4679
|
+
value: 24},
|
|
4680
|
+
"2.25x": {
|
|
4681
|
+
value: 36},
|
|
4682
|
+
"12.5x": {
|
|
4683
|
+
value: 200},
|
|
4684
|
+
"20x": {
|
|
4685
|
+
value: 320}},
|
|
4686
|
+
width: {
|
|
4687
|
+
"0.125x": {
|
|
4688
|
+
css: {
|
|
4689
|
+
variable: "var(--kds-dimension-component-width-0-125x)",
|
|
4690
|
+
},
|
|
4691
|
+
},
|
|
4692
|
+
"4x": {
|
|
4693
|
+
value: 64,
|
|
4694
|
+
css: {
|
|
4695
|
+
variable: "var(--kds-dimension-component-width-4x)",
|
|
4696
|
+
},
|
|
4697
|
+
}},
|
|
4698
|
+
}};
|
|
4699
|
+
|
|
4700
|
+
/**
|
|
4701
|
+
* Do not edit directly, this file was auto-generated
|
|
4702
|
+
* from the design token sources in src/tokens.
|
|
4703
|
+
*/
|
|
4704
|
+
const elevation = {
|
|
4705
|
+
level: {
|
|
4706
|
+
"1": {
|
|
4707
|
+
css: {
|
|
4708
|
+
variable: "var(--kds-elevation-level-1)",
|
|
4709
|
+
},
|
|
4710
|
+
}},
|
|
4711
|
+
};
|
|
4712
|
+
|
|
4713
|
+
/**
|
|
4714
|
+
* Do not edit directly, this file was auto-generated
|
|
4715
|
+
* from the design token sources in src/tokens.
|
|
4716
|
+
*/
|
|
4717
|
+
const font = {
|
|
4718
|
+
base: {
|
|
4719
|
+
title: {
|
|
4720
|
+
small: {
|
|
4721
|
+
css: {
|
|
4722
|
+
variable: "var(--kds-font-base-title-small)",
|
|
4723
|
+
},
|
|
4724
|
+
}}}};
|
|
4725
|
+
|
|
4726
|
+
/**
|
|
4727
|
+
* Do not edit directly, this file was auto-generated
|
|
4728
|
+
* from the design token sources in src/tokens.
|
|
4729
|
+
*/
|
|
4730
|
+
const spacing = {
|
|
4731
|
+
container: {
|
|
4732
|
+
"0.10x": {
|
|
4733
|
+
value: 1},
|
|
4734
|
+
"0.12x": {
|
|
4735
|
+
css: { variable: "var(--kds-spacing-container-0-12x)" },
|
|
4736
|
+
},
|
|
4737
|
+
"0.25x": {
|
|
4738
|
+
value: 4,
|
|
4739
|
+
css: { variable: "var(--kds-spacing-container-0-25x)" },
|
|
4740
|
+
},
|
|
4741
|
+
"0.75x": {
|
|
4742
|
+
css: { variable: "var(--kds-spacing-container-0-75x)" },
|
|
4743
|
+
},
|
|
4744
|
+
"1x": {
|
|
4745
|
+
css: { variable: "var(--kds-spacing-container-1x)" },
|
|
4746
|
+
}}};
|
|
4747
|
+
|
|
4572
4748
|
const kdsColorSwatchType = {
|
|
4573
4749
|
COMPONENT: "component",
|
|
4574
4750
|
LEARNER: "learner",
|
|
@@ -4603,15 +4779,16 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
4603
4779
|
},
|
|
4604
4780
|
setup(__props) {
|
|
4605
4781
|
const props = createPropsRestProxy(__props, ["size"]);
|
|
4782
|
+
const nodeColors = color$1["nodes-and-variables"];
|
|
4606
4783
|
const typeToTokenColor = {
|
|
4607
|
-
component:
|
|
4608
|
-
learner:
|
|
4609
|
-
manipulator:
|
|
4610
|
-
predictor:
|
|
4611
|
-
sink:
|
|
4612
|
-
source:
|
|
4613
|
-
visualizer:
|
|
4614
|
-
other:
|
|
4784
|
+
component: nodeColors.component.css.variable,
|
|
4785
|
+
learner: nodeColors.learner.css.variable,
|
|
4786
|
+
manipulator: nodeColors.manipulator.css.variable,
|
|
4787
|
+
predictor: nodeColors.predictor.css.variable,
|
|
4788
|
+
sink: nodeColors.sink.css.variable,
|
|
4789
|
+
source: nodeColors.source.css.variable,
|
|
4790
|
+
visualizer: nodeColors.visualizer.css.variable,
|
|
4791
|
+
other: nodeColors.other.css.variable
|
|
4615
4792
|
};
|
|
4616
4793
|
const isKdsColorSwatchType = (value) => Object.hasOwn(typeToTokenColor, value);
|
|
4617
4794
|
const isTransparentAlphaHexColor = (value) => {
|
|
@@ -4676,7 +4853,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
4676
4853
|
}
|
|
4677
4854
|
});
|
|
4678
4855
|
|
|
4679
|
-
const KdsColorSwatch = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-
|
|
4856
|
+
const KdsColorSwatch = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-8c817f3d"]]);
|
|
4680
4857
|
|
|
4681
4858
|
const kdsKeyboardShortcutSize = {
|
|
4682
4859
|
SMALL: "small",
|
|
@@ -7058,13 +7235,6 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
7058
7235
|
}
|
|
7059
7236
|
});
|
|
7060
7237
|
|
|
7061
|
-
const kdsDimensionComponentHeight12p5x = 200;
|
|
7062
|
-
const kdsDimensionComponentHeight1p5x = 24;
|
|
7063
|
-
const kdsDimensionComponentHeight20x = 320;
|
|
7064
|
-
const kdsDimensionComponentHeight2p25x = 36;
|
|
7065
|
-
const kdsSpacingContainer0p10x = 1;
|
|
7066
|
-
const kdsSpacingContainer0p25x = 4;
|
|
7067
|
-
|
|
7068
7238
|
const defaultKeys = [
|
|
7069
7239
|
"Tab",
|
|
7070
7240
|
"ArrowUp",
|
|
@@ -14984,21 +15154,20 @@ function createScopedAnimate(options = {}) {
|
|
|
14984
15154
|
const animate = createScopedAnimate();
|
|
14985
15155
|
|
|
14986
15156
|
const STYLES = {
|
|
14987
|
-
// TODO: KDS-873 use token references once they are available
|
|
14988
15157
|
container: {
|
|
14989
|
-
background:
|
|
14990
|
-
color: "
|
|
15158
|
+
background: color$1.background.selected.initial.css.variable,
|
|
15159
|
+
color: color$1["text-and-icon"].selected.css.variable},
|
|
14991
15160
|
badge: {
|
|
14992
|
-
background:
|
|
14993
|
-
color: "
|
|
14994
|
-
font:
|
|
14995
|
-
dimension:
|
|
14996
|
-
padding:
|
|
15161
|
+
background: color$1.background.selected.hover.css.variable,
|
|
15162
|
+
color: color$1["text-and-icon"].neutral.css.variable,
|
|
15163
|
+
font: font.base.title.small.css.variable,
|
|
15164
|
+
dimension: dimension.component.height["1.25x"].css.variable,
|
|
15165
|
+
padding: spacing.container["0.12x"].css.variable
|
|
14997
15166
|
},
|
|
14998
15167
|
marker: {
|
|
14999
|
-
background:
|
|
15000
|
-
width:
|
|
15001
|
-
borderRadius:
|
|
15168
|
+
background: color$1.background["selected-bold"].initial.css.variable,
|
|
15169
|
+
width: dimension.component.width["0.125x"].css.variable,
|
|
15170
|
+
borderRadius: `0 ${borderRadius.container["0.12x"].css.variable} ${borderRadius.container["0.12x"].css.variable} 0`
|
|
15002
15171
|
}
|
|
15003
15172
|
};
|
|
15004
15173
|
const toKebabCase = (str) => {
|
|
@@ -15104,11 +15273,11 @@ const createGhostElement = ({
|
|
|
15104
15273
|
display: "flex",
|
|
15105
15274
|
justifyContent: "flex-start",
|
|
15106
15275
|
alignItems: "center",
|
|
15107
|
-
padding:
|
|
15108
|
-
gap:
|
|
15109
|
-
borderRadius: "
|
|
15276
|
+
padding: `0 ${spacing.container["0.75x"].css.variable}`,
|
|
15277
|
+
gap: spacing.container["0.25x"].css.variable,
|
|
15278
|
+
borderRadius: borderRadius.container["0.31x"].css.variable,
|
|
15110
15279
|
opacity: "1",
|
|
15111
|
-
boxShadow: addShadow ?
|
|
15280
|
+
boxShadow: addShadow ? elevation.level["1"].css.variable : "initial"
|
|
15112
15281
|
};
|
|
15113
15282
|
applyStyles(ghost, ghostStyles);
|
|
15114
15283
|
const iconEl = createGhostIcon(target);
|
|
@@ -15366,10 +15535,12 @@ const useItemDragging = (options) => {
|
|
|
15366
15535
|
event.preventDefault();
|
|
15367
15536
|
}
|
|
15368
15537
|
};
|
|
15369
|
-
const onDrag = (event, item) =>
|
|
15370
|
-
|
|
15371
|
-
|
|
15372
|
-
|
|
15538
|
+
const onDrag = (event, item) => {
|
|
15539
|
+
options.emitter.onDrag({
|
|
15540
|
+
event: updateClientXY(event),
|
|
15541
|
+
item
|
|
15542
|
+
});
|
|
15543
|
+
};
|
|
15373
15544
|
watch(options.draggingAnimationMode, (next, prev) => {
|
|
15374
15545
|
if (next !== prev && prev === "disabled") {
|
|
15375
15546
|
__removeGhosts?.();
|
|
@@ -15406,33 +15577,47 @@ const useItemDragging = (options) => {
|
|
|
15406
15577
|
};
|
|
15407
15578
|
if (!isGoBackItem && !isDirectory(items.value[index])) {
|
|
15408
15579
|
doRemoveGhosts(true);
|
|
15409
|
-
|
|
15580
|
+
options.emitter.onDrop(null);
|
|
15581
|
+
return;
|
|
15410
15582
|
}
|
|
15411
15583
|
const targetItem = isGoBackItem ? ".." : items.value[index].id;
|
|
15412
15584
|
const isTargetSelected = sourceItems.includes(targetItem);
|
|
15413
15585
|
if (isTargetSelected) {
|
|
15414
15586
|
doRemoveGhosts(true);
|
|
15415
|
-
|
|
15587
|
+
options.emitter.onDrop(null);
|
|
15588
|
+
return;
|
|
15416
15589
|
}
|
|
15417
15590
|
if (options.draggingAnimationMode.value === "auto") {
|
|
15418
15591
|
onComplete(true);
|
|
15419
15592
|
}
|
|
15420
|
-
|
|
15593
|
+
options.emitter.onDrop({
|
|
15421
15594
|
sourceItems,
|
|
15422
15595
|
targetItem,
|
|
15423
15596
|
onComplete
|
|
15424
|
-
};
|
|
15597
|
+
});
|
|
15425
15598
|
};
|
|
15426
15599
|
const onDragEnd = (event, item) => {
|
|
15427
15600
|
isDragging.value = false;
|
|
15428
15601
|
stopTrack();
|
|
15429
15602
|
if (event.dataTransfer?.dropEffect === "none") {
|
|
15430
15603
|
doRemoveGhosts(true);
|
|
15431
|
-
|
|
15604
|
+
options.emitter.onDragEnd({
|
|
15605
|
+
event,
|
|
15606
|
+
sourceItem: null,
|
|
15607
|
+
onComplete: () => {
|
|
15608
|
+
}
|
|
15609
|
+
});
|
|
15610
|
+
return;
|
|
15432
15611
|
}
|
|
15433
15612
|
if (hasDroppedInside.value) {
|
|
15434
15613
|
hasDroppedInside.value = false;
|
|
15435
|
-
|
|
15614
|
+
options.emitter.onDragEnd({
|
|
15615
|
+
event,
|
|
15616
|
+
sourceItem: null,
|
|
15617
|
+
onComplete: () => {
|
|
15618
|
+
}
|
|
15619
|
+
});
|
|
15620
|
+
return;
|
|
15436
15621
|
}
|
|
15437
15622
|
const onComplete = (isSuccessfulDrop) => {
|
|
15438
15623
|
if (isSuccessfulDrop) {
|
|
@@ -15443,7 +15628,7 @@ const useItemDragging = (options) => {
|
|
|
15443
15628
|
if (options.draggingAnimationMode.value === "auto") {
|
|
15444
15629
|
onComplete(true);
|
|
15445
15630
|
}
|
|
15446
|
-
|
|
15631
|
+
options.emitter.onDragEnd({ event, sourceItem: item, onComplete });
|
|
15447
15632
|
};
|
|
15448
15633
|
return {
|
|
15449
15634
|
isDragging,
|
|
@@ -15510,13 +15695,13 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
15510
15695
|
emits: /* @__PURE__ */ mergeModels(["update:selectedItemIds", "changeDirectory", "openFile", "moveItems", "dragend", "drag", "renameFile"], ["update:activeRenamedItemId"]),
|
|
15511
15696
|
setup(__props, { emit: __emit }) {
|
|
15512
15697
|
useCssVars((_ctx) => ({
|
|
15513
|
-
"
|
|
15698
|
+
"v32d29b82": itemHeight.value + "px"
|
|
15514
15699
|
}));
|
|
15515
15700
|
const props = __props;
|
|
15516
15701
|
const activeRenamedItemId = useModel(__props, "activeRenamedItemId");
|
|
15517
15702
|
const emit = __emit;
|
|
15518
15703
|
const itemHeight = computed(() => {
|
|
15519
|
-
return props.size === "small" ?
|
|
15704
|
+
return props.size === "small" ? dimension.component.height["1.5x"].value : dimension.component.height["2.25x"].value;
|
|
15520
15705
|
});
|
|
15521
15706
|
const isDirectory = (item) => item.isDirectory;
|
|
15522
15707
|
const changeDirectory = (pathId) => {
|
|
@@ -15631,14 +15816,19 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
15631
15816
|
() => !customDragPreviewPlaceholder.value && props.draggingAnimationMode !== "disabled"
|
|
15632
15817
|
),
|
|
15633
15818
|
// we then can obtain the element by using the container
|
|
15634
|
-
getCustomPreviewEl: () => document.querySelector(".custom-preview")
|
|
15635
|
-
|
|
15636
|
-
|
|
15637
|
-
|
|
15638
|
-
|
|
15819
|
+
getCustomPreviewEl: () => document.querySelector(".custom-preview"),
|
|
15820
|
+
emitter: {
|
|
15821
|
+
onDrag: (payload) => emit("drag", payload),
|
|
15822
|
+
onDrop: (payload) => {
|
|
15823
|
+
if (payload) {
|
|
15824
|
+
emit("moveItems", payload);
|
|
15825
|
+
}
|
|
15826
|
+
},
|
|
15827
|
+
onDragEnd: (payload) => {
|
|
15828
|
+
emit("dragend", payload);
|
|
15829
|
+
}
|
|
15639
15830
|
}
|
|
15640
|
-
|
|
15641
|
-
};
|
|
15831
|
+
});
|
|
15642
15832
|
const keyPressedUntilMouseClick = useKeyPressedUntilMouseClick([
|
|
15643
15833
|
"Tab",
|
|
15644
15834
|
" ",
|
|
@@ -15835,7 +16025,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
15835
16025
|
onDragenter: _cache[0] || (_cache[0] = ($event) => unref(onDragEnter)($event, -1, true)),
|
|
15836
16026
|
onDragleave: _cache[1] || (_cache[1] = ($event) => unref(onDragLeave)($event, -1, true)),
|
|
15837
16027
|
onDragover: unref(onDragOver),
|
|
15838
|
-
onDrop: _cache[2] || (_cache[2] = withModifiers(($event) =>
|
|
16028
|
+
onDrop: _cache[2] || (_cache[2] = withModifiers(($event) => unref(onDrop)($event, -1, true), ["prevent"])),
|
|
15839
16029
|
onKeydown: _cache[3] || (_cache[3] = withKeys(withModifiers(($event) => changeDirectory(".."), ["stop", "prevent"]), ["enter"])),
|
|
15840
16030
|
onClick: _cache[4] || (_cache[4] = ($event) => changeDirectory(".."))
|
|
15841
16031
|
}, null, 8, ["class", "is-dragging", "onDragover"])) : createCommentVNode("", true)
|
|
@@ -15861,15 +16051,15 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
15861
16051
|
onDragenter: ($event) => unref(onDragEnter)($event, index),
|
|
15862
16052
|
onDragover: _cache[8] || (_cache[8] = ($event) => unref(onDragOver)($event)),
|
|
15863
16053
|
onDragleave: ($event) => unref(onDragLeave)($event, index),
|
|
15864
|
-
onDragend: ($event) =>
|
|
15865
|
-
onDrag: ($event) =>
|
|
16054
|
+
onDragend: ($event) => unref(onDragEnd)($event, item),
|
|
16055
|
+
onDrag: ($event) => unref(onDrag)($event, item),
|
|
15866
16056
|
onClick: ($event) => onItemClick(item, $event, index),
|
|
15867
16057
|
onContextmenu: ($event) => openContextMenuByMouse($event, item, index),
|
|
15868
16058
|
onKeydown: [
|
|
15869
16059
|
withKeys(withModifiers(($event) => openContextMenuByKeyboard(item, index), ["shift", "prevent"]), ["f10"]),
|
|
15870
16060
|
withKeys(withModifiers(($event) => handleEnterKey($event, item), ["prevent"]), ["enter"])
|
|
15871
16061
|
],
|
|
15872
|
-
onDrop: ($event) =>
|
|
16062
|
+
onDrop: ($event) => unref(onDrop)($event, index),
|
|
15873
16063
|
onDblclick: ($event) => openFileOrEnterFolder(item),
|
|
15874
16064
|
"onRename:submit": _cache[9] || (_cache[9] = ($event) => emit("renameFile", $event)),
|
|
15875
16065
|
"onRename:clear": _cache[10] || (_cache[10] = ($event) => activeRenamedItemId.value = null)
|
|
@@ -15963,7 +16153,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
15963
16153
|
}
|
|
15964
16154
|
});
|
|
15965
16155
|
|
|
15966
|
-
const KdsFileExplorer = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-
|
|
16156
|
+
const KdsFileExplorer = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-1f832c3a"]]);
|
|
15967
16157
|
|
|
15968
16158
|
const kdsFileExplorerSize = {
|
|
15969
16159
|
SMALL: "small",
|
|
@@ -27233,7 +27423,9 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
27233
27423
|
}),
|
|
27234
27424
|
emits: /* @__PURE__ */ mergeModels(["doubleClickOnItem", "doubleClickShift", "keyArrowLeft", "keyArrowRight", "keyEnter"], ["update:modelValue"]),
|
|
27235
27425
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
27236
|
-
const OPTION_LINE_HEIGHT =
|
|
27426
|
+
const OPTION_LINE_HEIGHT = dimension.component.height["1.5x"].value + spacing.container["0.10x"].value;
|
|
27427
|
+
const DEFAULT_HEIGHT = dimension.component.height["20x"].value;
|
|
27428
|
+
const MIN_HEIGHT = dimension.component.height["12.5x"].value;
|
|
27237
27429
|
const PassThroughResizeContainer = defineComponent({
|
|
27238
27430
|
inheritAttrs: false,
|
|
27239
27431
|
setup(_, { slots }) {
|
|
@@ -27376,8 +27568,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
27376
27568
|
}, {
|
|
27377
27569
|
default: withCtx((slotProps) => [
|
|
27378
27570
|
(openBlock(), createBlock(resolveDynamicComponent(__props.useResizeHandle ? KdsResizeContainer : unref(PassThroughResizeContainer)), {
|
|
27379
|
-
height: unref(
|
|
27380
|
-
"min-height": unref(
|
|
27571
|
+
height: unref(DEFAULT_HEIGHT),
|
|
27572
|
+
"min-height": unref(MIN_HEIGHT)
|
|
27381
27573
|
}, {
|
|
27382
27574
|
default: withCtx(({ contentStyle }) => [
|
|
27383
27575
|
createElementVNode("div", {
|
|
@@ -27529,7 +27721,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
27529
27721
|
}
|
|
27530
27722
|
});
|
|
27531
27723
|
|
|
27532
|
-
const KdsMultiSelectListBox = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-
|
|
27724
|
+
const KdsMultiSelectListBox = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-a4b277b7"]]);
|
|
27533
27725
|
|
|
27534
27726
|
const _hoisted_1$m = { class: "kds-list-column" };
|
|
27535
27727
|
const _hoisted_2$a = { class: "kds-list-header" };
|
|
@@ -27565,6 +27757,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
27565
27757
|
}),
|
|
27566
27758
|
emits: ["update:modelValue"],
|
|
27567
27759
|
setup(__props) {
|
|
27760
|
+
const LIST_HEIGHT = dimension.component.height["12.5x"].value;
|
|
27761
|
+
const HANDLE_GAP = `${spacing.container["0.25x"].value * 2 + dimension.component.height["1.5x"].value}px`;
|
|
27568
27762
|
const props = createPropsRestProxy(__props, ["disabled", "error", "searchTerm", "excludeLabel", "includeLabel", "unknownValuesText", "loading"]);
|
|
27569
27763
|
const modelValue = useModel(__props, "modelValue");
|
|
27570
27764
|
const effectiveDisabled = computed(() => __props.disabled || __props.loading);
|
|
@@ -27712,9 +27906,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
27712
27906
|
return (_ctx, _cache) => {
|
|
27713
27907
|
return openBlock(), createBlock(unref(KdsResizeContainer), {
|
|
27714
27908
|
"number-of-handles": 2,
|
|
27715
|
-
height: unref(
|
|
27716
|
-
"min-height": unref(
|
|
27717
|
-
"handle-gap":
|
|
27909
|
+
height: unref(LIST_HEIGHT),
|
|
27910
|
+
"min-height": unref(LIST_HEIGHT),
|
|
27911
|
+
"handle-gap": HANDLE_GAP
|
|
27718
27912
|
}, {
|
|
27719
27913
|
default: withCtx(({ contentStyle }) => [
|
|
27720
27914
|
createElementVNode("div", {
|
|
@@ -27812,12 +28006,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
27812
28006
|
], 4)
|
|
27813
28007
|
]),
|
|
27814
28008
|
_: 1
|
|
27815
|
-
}, 8, ["height", "min-height"
|
|
28009
|
+
}, 8, ["height", "min-height"]);
|
|
27816
28010
|
};
|
|
27817
28011
|
}
|
|
27818
28012
|
});
|
|
27819
28013
|
|
|
27820
|
-
const TwinListBody = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-
|
|
28014
|
+
const TwinListBody = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-7d720401"]]);
|
|
27821
28015
|
|
|
27822
28016
|
const kdsTwinListSearchMode = {
|
|
27823
28017
|
MANUAL: "manual",
|
|
@@ -29240,16 +29434,7 @@ const useTabBarAdaptiveLayout = ({
|
|
|
29240
29434
|
if (fullWidth?.value || !minTabWidth) {
|
|
29241
29435
|
return;
|
|
29242
29436
|
}
|
|
29243
|
-
const
|
|
29244
|
-
if (!el) {
|
|
29245
|
-
return;
|
|
29246
|
-
}
|
|
29247
|
-
const tokenPx = Number.parseFloat(
|
|
29248
|
-
getComputedStyle(el).getPropertyValue(minTabWidth)
|
|
29249
|
-
);
|
|
29250
|
-
if (Number.isNaN(tokenPx) || tokenPx <= 0) {
|
|
29251
|
-
return;
|
|
29252
|
-
}
|
|
29437
|
+
const tokenPx = minTabWidth;
|
|
29253
29438
|
const entries = [...itemEls.value.entries()];
|
|
29254
29439
|
const tabsByKey = new Map(tabs.value.map((tab) => [tab.value, tab]));
|
|
29255
29440
|
for (const [key, tabEl] of entries) {
|
|
@@ -29294,8 +29479,7 @@ const useTabBarAdaptiveLayout = ({
|
|
|
29294
29479
|
);
|
|
29295
29480
|
return {
|
|
29296
29481
|
shouldHideIcons,
|
|
29297
|
-
setItemEl
|
|
29298
|
-
minTabWidth
|
|
29482
|
+
setItemEl
|
|
29299
29483
|
};
|
|
29300
29484
|
};
|
|
29301
29485
|
|
|
@@ -29306,7 +29490,6 @@ const _hoisted_4$4 = {
|
|
|
29306
29490
|
key: 1,
|
|
29307
29491
|
class: "kds-tab-indicator"
|
|
29308
29492
|
};
|
|
29309
|
-
const MIN_TAB_WIDTH_TOKEN = "--kds-dimension-component-width-4x";
|
|
29310
29493
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
29311
29494
|
__name: "KdsTabBar",
|
|
29312
29495
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -29321,7 +29504,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
29321
29504
|
emits: ["update:modelValue"],
|
|
29322
29505
|
setup(__props) {
|
|
29323
29506
|
useCssVars((_ctx) => ({
|
|
29324
|
-
"
|
|
29507
|
+
"v543b9540": unref(minTabWidthCss)
|
|
29325
29508
|
}));
|
|
29326
29509
|
const props = createPropsRestProxy(__props, ["size", "fullWidth", "disabled"]);
|
|
29327
29510
|
const modelValue = useModel(__props, "modelValue");
|
|
@@ -29373,14 +29556,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
29373
29556
|
"availableWidthContainer"
|
|
29374
29557
|
);
|
|
29375
29558
|
const { width } = useElementSize(availableWidthContainer);
|
|
29376
|
-
const
|
|
29559
|
+
const MIN_TAB_WIDTH = dimension.component.width["4x"];
|
|
29560
|
+
const { shouldHideIcons, setItemEl } = useTabBarAdaptiveLayout({
|
|
29377
29561
|
width,
|
|
29378
29562
|
tabs: toRef(props, "tabs"),
|
|
29379
29563
|
containerEl: availableWidthContainer,
|
|
29380
29564
|
fullWidth: toRef(() => __props.fullWidth),
|
|
29381
|
-
minTabWidth:
|
|
29565
|
+
minTabWidth: MIN_TAB_WIDTH.value
|
|
29382
29566
|
});
|
|
29383
|
-
const minTabWidthCss =
|
|
29567
|
+
const minTabWidthCss = MIN_TAB_WIDTH.css.variable;
|
|
29384
29568
|
const tabBarClass = computed(() => ({
|
|
29385
29569
|
"kds-tab-bar": true,
|
|
29386
29570
|
[`kds-tab-bar-${__props.size}`]: true,
|
|
@@ -29478,7 +29662,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
29478
29662
|
}
|
|
29479
29663
|
});
|
|
29480
29664
|
|
|
29481
|
-
const KdsTabBar = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
29665
|
+
const KdsTabBar = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-623fd1c1"]]);
|
|
29482
29666
|
|
|
29483
29667
|
const kdsTabBarSize = {
|
|
29484
29668
|
SMALL: "small",
|
|
@@ -29519,11 +29703,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
29519
29703
|
variant: { default: "text" },
|
|
29520
29704
|
loading: { type: Boolean, default: true },
|
|
29521
29705
|
repeat: { default: 1 },
|
|
29522
|
-
repeatGap: { default:
|
|
29706
|
+
repeatGap: { default: () => spacing.container["1x"].css.variable }
|
|
29523
29707
|
},
|
|
29524
29708
|
setup(__props) {
|
|
29525
29709
|
useCssVars((_ctx) => ({
|
|
29526
|
-
"
|
|
29710
|
+
"cbf61a88": _ctx.repeatGap
|
|
29527
29711
|
}));
|
|
29528
29712
|
return (_ctx, _cache) => {
|
|
29529
29713
|
return __props.loading ? (openBlock(), createElementBlock("div", mergeProps({ key: 0 }, _ctx.$attrs, { class: "kds-loading-skeleton" }), [
|
|
@@ -29580,7 +29764,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
29580
29764
|
}
|
|
29581
29765
|
});
|
|
29582
29766
|
|
|
29583
|
-
const KdsLoadingSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-
|
|
29767
|
+
const KdsLoadingSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-aac9483b"]]);
|
|
29584
29768
|
|
|
29585
29769
|
const loadingSkeletonItemShape = {
|
|
29586
29770
|
TEXT: "text",
|
|
@@ -29624,7 +29808,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
29624
29808
|
emits: ["click", "trailingButtonClick"],
|
|
29625
29809
|
setup(__props, { emit: __emit }) {
|
|
29626
29810
|
useCssVars((_ctx) => ({
|
|
29627
|
-
"
|
|
29811
|
+
"bcee8696": paddingRight.value
|
|
29628
29812
|
}));
|
|
29629
29813
|
const props = __props;
|
|
29630
29814
|
const emit = __emit;
|
|
@@ -29653,8 +29837,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
29653
29837
|
useResizeObserver(trailingItemsEl, ([entry]) => {
|
|
29654
29838
|
trailingItemsWidth.value = entry.contentRect.width;
|
|
29655
29839
|
});
|
|
29840
|
+
const NAV_ITEM_PADDING = spacing.container["0.75x"].css.variable;
|
|
29656
29841
|
const paddingRight = computed(
|
|
29657
|
-
() => hasTrailingItems.value ? `calc(${trailingItemsWidth.value}px + 2 *
|
|
29842
|
+
() => hasTrailingItems.value ? `calc(${trailingItemsWidth.value}px + 2 * ${NAV_ITEM_PADDING})` : NAV_ITEM_PADDING
|
|
29658
29843
|
);
|
|
29659
29844
|
return (_ctx, _cache) => {
|
|
29660
29845
|
return openBlock(), createElementBlock("div", {
|
|
@@ -29709,7 +29894,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
29709
29894
|
}
|
|
29710
29895
|
});
|
|
29711
29896
|
|
|
29712
|
-
const KdsNavItem = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
29897
|
+
const KdsNavItem = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-80531263"]]);
|
|
29713
29898
|
|
|
29714
29899
|
const _hoisted_1$7 = ["aria-label"];
|
|
29715
29900
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
@@ -30332,7 +30517,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
30332
30517
|
},
|
|
30333
30518
|
emits: ["selectChange", "expandChange", "focusChange", "keydown", "leafDblClick", "leafDragStart", "leafDragEnd"],
|
|
30334
30519
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
30335
|
-
const VIRTUAL_HEIGHT =
|
|
30520
|
+
const VIRTUAL_HEIGHT = dimension.component.height["1.5x"].value;
|
|
30336
30521
|
const emit = __emit;
|
|
30337
30522
|
const flattenTreeData = ref([]);
|
|
30338
30523
|
const key2TreeNode = ref({});
|