@knime/kds-components 0.30.1 → 0.30.3

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.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent, createPropsRestProxy, ref, watch, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, Fragment, renderList, createBlock, normalizeStyle, createCommentVNode, shallowRef, markRaw, readonly, toRef, unref, resolveDynamicComponent, mergeProps, useTemplateRef, createVNode, withCtx, renderSlot, h as h$1, useSlots, getCurrentInstance, useModel, mergeModels, onMounted, onUnmounted, nextTick, useId, withModifiers, inject, provide, resolveComponent, withKeys, watchEffect, useAttrs, isRef, getCurrentScope, onScopeDispose, defineAsyncComponent, toRefs, useCssVars, createSlots, normalizeProps, withDirectives, vShow, onBeforeUpdate, onBeforeUnmount, vModelText, createTextVNode, guardReactiveProps } from 'vue';
2
- import { useLocalStorage, useDark, usePreferredDark, useResizeObserver, useMutationObserver, onClickOutside, useElementSize, useMousePressed, useVirtualList, useTemplateRefsList } from '@vueuse/core';
1
+ import { defineComponent, createPropsRestProxy, ref, watch, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, Fragment, renderList, createBlock, normalizeStyle, createCommentVNode, shallowRef, markRaw, readonly, toRef, unref, resolveDynamicComponent, mergeProps, useTemplateRef, createVNode, withCtx, renderSlot, h as h$1, useSlots, getCurrentInstance, useModel, mergeModels, onMounted, onUnmounted, nextTick, useId, withModifiers, inject, provide, resolveComponent, withKeys, watchEffect, useAttrs, defineAsyncComponent, toRefs, useCssVars, normalizeProps, guardReactiveProps, createSlots, withDirectives, vShow, onBeforeUpdate, onBeforeUnmount, isRef, vModelText, createTextVNode } from 'vue';
2
+ import { useLocalStorage, useDark, usePreferredDark, useResizeObserver, useMutationObserver, onClickOutside, useVirtualList, useElementSize, useMousePressed, useTemplateRefsList } from '@vueuse/core';
3
3
 
4
4
  import './index.css';const kdsAvatarSize = {
5
5
  SMALL: "small",
@@ -734,7 +734,7 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
734
734
  }
735
735
  });
736
736
 
737
- const KdsProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["__scopeId", "data-v-5fdfbce2"]]);
737
+ const KdsProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["__scopeId", "data-v-884d689a"]]);
738
738
 
739
739
  const kdsColorSwatchType = {
740
740
  LEARNER: "learner",
@@ -981,7 +981,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
981
981
  return openBlock(), createElementBlock("span", {
982
982
  class: normalizeClass(["kds-live-status", __props.status, `size-${__props.size}`]),
983
983
  role: "img",
984
- title: accessibleTitle.value,
984
+ title: !__props.label ? accessibleTitle.value : void 0,
985
985
  "aria-label": accessibleTitle.value
986
986
  }, [
987
987
  _cache[0] || (_cache[0] = createElementVNode("span", { class: "dot" }, null, -1)),
@@ -997,7 +997,7 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
997
997
  }
998
998
  });
999
999
 
1000
- const KdsLiveStatus = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-01555495"]]);
1000
+ const KdsLiveStatus = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-f20c5c00"]]);
1001
1001
 
1002
1002
  const kdsLiveStatusStatus = {
1003
1003
  RED: "red",
@@ -2722,12 +2722,14 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
2722
2722
  }
2723
2723
  });
2724
2724
 
2725
- const KdsMenuContainer = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-9dc6d3f6"]]);
2725
+ const KdsMenuContainer = /* @__PURE__ */ _export_sfc(_sfc_main$1j, [["__scopeId", "data-v-ae4f1dab"]]);
2726
2726
 
2727
2727
  const kdsPopoverPlacement = {
2728
2728
  TOP_LEFT: "top-left",
2729
+ TOP_CENTER: "top-center",
2729
2730
  TOP_RIGHT: "top-right",
2730
2731
  BOTTOM_LEFT: "bottom-left",
2732
+ BOTTOM_CENTER: "bottom-center",
2731
2733
  BOTTOM_RIGHT: "bottom-right",
2732
2734
  CUSTOM: "custom"
2733
2735
  };
@@ -2814,7 +2816,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
2814
2816
  }
2815
2817
  });
2816
2818
 
2817
- const KdsPopover = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-3354d162"]]);
2819
+ const KdsPopover = /* @__PURE__ */ _export_sfc(_sfc_main$1i, [["__scopeId", "data-v-f41f0af7"]]);
2818
2820
 
2819
2821
  const KdsPopover$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
2820
2822
  __proto__: null,
@@ -3363,67 +3365,6 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
3363
3365
  }
3364
3366
  });
3365
3367
 
3366
- function debounce(func, debounceMs, { signal, edges } = {}) {
3367
- let pendingThis = undefined;
3368
- let pendingArgs = null;
3369
- const leading = edges != null && edges.includes('leading');
3370
- const trailing = edges == null || edges.includes('trailing');
3371
- const invoke = () => {
3372
- if (pendingArgs !== null) {
3373
- func.apply(pendingThis, pendingArgs);
3374
- pendingThis = undefined;
3375
- pendingArgs = null;
3376
- }
3377
- };
3378
- const onTimerEnd = () => {
3379
- if (trailing) {
3380
- invoke();
3381
- }
3382
- cancel();
3383
- };
3384
- let timeoutId = null;
3385
- const schedule = () => {
3386
- if (timeoutId != null) {
3387
- clearTimeout(timeoutId);
3388
- }
3389
- timeoutId = setTimeout(() => {
3390
- timeoutId = null;
3391
- onTimerEnd();
3392
- }, debounceMs);
3393
- };
3394
- const cancelTimer = () => {
3395
- if (timeoutId !== null) {
3396
- clearTimeout(timeoutId);
3397
- timeoutId = null;
3398
- }
3399
- };
3400
- const cancel = () => {
3401
- cancelTimer();
3402
- pendingThis = undefined;
3403
- pendingArgs = null;
3404
- };
3405
- const flush = () => {
3406
- invoke();
3407
- };
3408
- const debounced = function (...args) {
3409
- if (signal?.aborted) {
3410
- return;
3411
- }
3412
- pendingThis = this;
3413
- pendingArgs = args;
3414
- const isFirstCall = timeoutId == null;
3415
- schedule();
3416
- if (leading && isFirstCall) {
3417
- invoke();
3418
- }
3419
- };
3420
- debounced.schedule = schedule;
3421
- debounced.cancel = cancel;
3422
- debounced.flush = flush;
3423
- signal?.addEventListener('abort', cancel, { once: true });
3424
- return debounced;
3425
- }
3426
-
3427
3368
  const isMac = () => navigator?.userAgent?.toLowerCase()?.includes("mac");
3428
3369
 
3429
3370
  const createUnwrappedPromise = () => {
@@ -3446,139 +3387,6 @@ const getMetaOrCtrlKey = () => {
3446
3387
  return isMac() ? "metaKey" : "ctrlKey";
3447
3388
  };
3448
3389
 
3449
- var B$1 = Object.defineProperty;
3450
- var b$1 = (t, e, r) => e in t ? B$1(t, e, { enumerable: true, configurable: true, writable: true, value: r }) : t[e] = r;
3451
- var u$1 = (t, e, r) => b$1(t, typeof e != "symbol" ? e + "" : e, r);
3452
- function N$1(t) {
3453
- return getCurrentScope() ? (onScopeDispose(t), true) : false;
3454
- }
3455
- function P$1(t) {
3456
- return typeof t == "function" ? t() : unref(t);
3457
- }
3458
- const R$1 = typeof window < "u" && typeof document < "u";
3459
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
3460
- function O$1(t) {
3461
- var e;
3462
- const r = P$1(t);
3463
- return (e = r == null ? void 0 : r.$el) != null ? e : r;
3464
- }
3465
- const $$1 = R$1 ? window : void 0;
3466
- function C$1() {
3467
- const t = ref(false);
3468
- return getCurrentInstance() && onMounted(() => {
3469
- t.value = true;
3470
- }), t;
3471
- }
3472
- function V$1(t) {
3473
- const e = C$1();
3474
- return computed(() => (e.value, !!t()));
3475
- }
3476
- function x$1(t, e, r = {}) {
3477
- const { window: n = $$1, ...a } = r;
3478
- let o;
3479
- const l = V$1(() => n && "ResizeObserver" in n), i = () => {
3480
- o && (o.disconnect(), o = void 0);
3481
- }, f = computed(() => Array.isArray(t) ? t.map((p) => O$1(p)) : [O$1(t)]), c = watch(
3482
- f,
3483
- (p) => {
3484
- if (i(), l.value && n) {
3485
- o = new ResizeObserver(e);
3486
- for (const d of p)
3487
- d && o.observe(d, a);
3488
- }
3489
- },
3490
- { immediate: true, flush: "post", deep: true }
3491
- ), m = () => {
3492
- i(), c();
3493
- };
3494
- return N$1(m), {
3495
- isSupported: l,
3496
- stop: m
3497
- };
3498
- }
3499
- function F$1(t) {
3500
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3501
- }
3502
- var G$1 = function(e) {
3503
- var r = null, n, a = function(i) {
3504
- return function() {
3505
- r = null, e.apply(i, n);
3506
- };
3507
- }, o = function() {
3508
- for (var i = arguments.length, f = new Array(i), c = 0; c < i; c++)
3509
- f[c] = arguments[c];
3510
- n = f, r === null && (r = requestAnimationFrame(a(this)));
3511
- };
3512
- return o.cancel = function() {
3513
- cancelAnimationFrame(r), r = null;
3514
- }, o;
3515
- }, j$1 = G$1;
3516
- const q$1 = /* @__PURE__ */ F$1(j$1), _$1 = 500, w$1 = ({
3517
- sizeManager: t,
3518
- buffer: e = _$1
3519
- }, r = "vertical", n = null) => {
3520
- const o = ref({ scrollStart: 0, scrollEnd: 0 }), l = r === "vertical", i = n ?? ref(null), f = q$1(() => {
3521
- if (!i.value)
3522
- return;
3523
- const { scrollTop: d, scrollLeft: S, offsetHeight: y, offsetWidth: A } = i.value, g = l ? d : S, L = l ? y : A;
3524
- o.value = { scrollStart: g, scrollEnd: g + L };
3525
- });
3526
- t.onUpdate(f), n || x$1(i, f);
3527
- const c = computed(() => {
3528
- const d = t.toIndex(o.value.scrollStart - e), S = Math.min(
3529
- t.toIndex(o.value.scrollEnd + e) + 1,
3530
- t.getNumItems()
3531
- );
3532
- return { startIndex: d, endIndex: S, toArray: () => Array.from({ length: S - d }, (A, g) => d + g) };
3533
- }), m = computed(() => t.toOffset(c.value.startIndex)), p = computed(() => ({
3534
- [`padding${l ? "Top" : "Left"}`]: `${m.value}px`,
3535
- [l ? "height" : "width"]: `${t.getTotalSize()}px`,
3536
- /**
3537
- * Since the height of the element should not be influenced by its padding.
3538
- * An alternative without box-sizing: "border-box" would be to use margins instead
3539
- * paddings, but then it is no longer easily possible to absolutely position
3540
- * other elements (e.g. a cell selection overlay) inside this element.
3541
- */
3542
- boxSizing: "border-box"
3543
- }));
3544
- return {
3545
- containerProps: {
3546
- ref: i,
3547
- onScroll: f
3548
- },
3549
- indices: c,
3550
- scrolledAreaStyles: p
3551
- };
3552
- }, v$1 = (t, e) => isRef(t) && watch(() => t.value, e), H$1 = (t, e) => Math.floor(t / e);
3553
- let Y$1 = class Y {
3554
- constructor(e, r) {
3555
- u$1(this, "numItems");
3556
- u$1(this, "size");
3557
- this.numItems = e, this.size = r;
3558
- }
3559
- getNumItems() {
3560
- return unref(this.numItems);
3561
- }
3562
- onUpdate(e) {
3563
- v$1(this.numItems, e), v$1(this.size, e);
3564
- }
3565
- toOffset(e) {
3566
- return e * unref(this.size);
3567
- }
3568
- getTotalSize() {
3569
- return unref(this.numItems) * unref(this.size);
3570
- }
3571
- toIndex(e) {
3572
- return Math.max(
3573
- Math.min(
3574
- H$1(e, unref(this.size)),
3575
- unref(this.numItems) - 1
3576
- ),
3577
- 0
3578
- );
3579
- }
3580
- };
3581
-
3582
3390
  const kdsDimensionComponentHeight12p5x = 200;
3583
3391
  const kdsDimensionComponentHeight1p5x = 24;
3584
3392
  const kdsDimensionComponentHeight20x = 320;
@@ -12020,7 +11828,6 @@ const _hoisted_2$q = {
12020
11828
  key: 0,
12021
11829
  class: "empty"
12022
11830
  };
12023
- const VIRTUAL_ITEM_BUFFER = 16;
12024
11831
  const _sfc_main$13 = /* @__PURE__ */ defineComponent({
12025
11832
  __name: "KdsFileExplorer",
12026
11833
  props: /* @__PURE__ */ mergeModels({
@@ -12046,7 +11853,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
12046
11853
  emits: /* @__PURE__ */ mergeModels(["update:selectedItemIds", "changeDirectory", "openFile", "moveItems", "dragend", "drag", "renameFile"], ["update:activeRenamedItemId"]),
12047
11854
  setup(__props, { emit: __emit }) {
12048
11855
  useCssVars((_ctx) => ({
12049
- "v6215695b": itemHeight.value + "px"
11856
+ "v44ee6cb4": itemHeight.value + "px"
12050
11857
  }));
12051
11858
  const props = __props;
12052
11859
  const activeRenamedItemId = useModel(__props, "activeRenamedItemId");
@@ -12060,39 +11867,35 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
12060
11867
  };
12061
11868
  const virtualItemRefs = ref([]);
12062
11869
  const itemBack = ref(null);
12063
- const table = ref(null);
12064
- const virtualSizeManager = new Y$1(
12065
- computed(() => props.items.length),
12066
- itemHeight.value
12067
- );
12068
- const {
12069
- indices: virtualIndices,
12070
- containerProps,
12071
- scrolledAreaStyles
12072
- } = w$1(
11870
+ const { containerProps, wrapperProps, list } = useVirtualList(
11871
+ computed(() => props.items),
12073
11872
  {
12074
- sizeManager: virtualSizeManager,
12075
- buffer: VIRTUAL_ITEM_BUFFER * itemHeight.value
12076
- },
12077
- "vertical",
12078
- table
12079
- );
12080
- const renderedIndices = computed(() => virtualIndices.value.toArray());
12081
- const renderedItems = computed(
12082
- () => renderedIndices.value.map((i) => props.items[i])
11873
+ itemHeight: itemHeight.value
11874
+ }
12083
11875
  );
12084
11876
  const scrollIntoView = (index, behavior = "smooth") => {
12085
- if (index === -1) {
11877
+ const container = containerProps.ref.value;
11878
+ if (index === -1 || !container) {
12086
11879
  return;
12087
11880
  }
12088
- const scrollDebounceMs = 50;
12089
- const debouncedScroll = debounce(() => {
12090
- containerProps.ref.value?.scrollTo({
12091
- top: virtualSizeManager.toOffset(index),
11881
+ const rowHeight = itemHeight.value;
11882
+ const peek = 0;
11883
+ const rowTop = index * rowHeight;
11884
+ const rowBottom = rowTop + rowHeight;
11885
+ const viewTop = container.scrollTop;
11886
+ const viewBottom = viewTop + container.clientHeight;
11887
+ const backButton = props.isRootFolder ? 0 : itemHeight.value;
11888
+ if (rowTop < viewTop) {
11889
+ container.scrollTo({
11890
+ top: Math.max(rowTop - peek, 0) + backButton,
12092
11891
  behavior
12093
11892
  });
12094
- }, scrollDebounceMs);
12095
- debouncedScroll();
11893
+ } else if (rowBottom + itemHeight.value > viewBottom) {
11894
+ container.scrollTo({
11895
+ top: rowBottom + peek - container.clientHeight + backButton,
11896
+ behavior
11897
+ });
11898
+ }
12096
11899
  };
12097
11900
  const multiSelection = useFocusableMultiSelection({
12098
11901
  singleSelectionOnly: toRef(props, "disableMultiSelect"),
@@ -12200,6 +12003,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
12200
12003
  }
12201
12004
  const item = getItemElement(index);
12202
12005
  if (item) {
12006
+ scrollIntoView(index, "instant");
12203
12007
  item.focus();
12204
12008
  } else {
12205
12009
  scrollIntoView(index, "instant");
@@ -12212,7 +12016,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
12212
12016
  }
12213
12017
  };
12214
12018
  const handleFocusOnTable = (event) => {
12215
- if (table.value?.contains(event.relatedTarget)) {
12019
+ if (containerProps.ref.value?.contains(event.relatedTarget)) {
12216
12020
  return;
12217
12021
  }
12218
12022
  focusIndex(focusedIndex.value, false);
@@ -12223,6 +12027,9 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
12223
12027
  });
12224
12028
  const contextMenuAnchor = ref(null);
12225
12029
  const closeContextMenu = (focusLastItem = true) => {
12030
+ if (!contextMenuAnchor.value) {
12031
+ return;
12032
+ }
12226
12033
  contextMenuAnchor.value = null;
12227
12034
  if (focusLastItem) {
12228
12035
  focusIndex(focusedIndex.value, false);
@@ -12297,11 +12104,10 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
12297
12104
  if (!anchor || !props.contextMenuBuilder) {
12298
12105
  return [];
12299
12106
  }
12300
- const builtItems = props.contextMenuBuilder({
12107
+ return props.contextMenuBuilder({
12301
12108
  selectedItems: selectedItems.value,
12302
12109
  anchor
12303
12110
  });
12304
- return builtItems;
12305
12111
  });
12306
12112
  const onItemClick = (item, event, index) => {
12307
12113
  if (item.disabled) {
@@ -12327,7 +12133,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
12327
12133
  openFileOrEnterFolder(item);
12328
12134
  };
12329
12135
  onClickOutside(
12330
- table,
12136
+ containerProps.ref,
12331
12137
  () => {
12332
12138
  if (focusedIndex.value >= 0) {
12333
12139
  resetSelection(focusedIndex.value);
@@ -12337,7 +12143,6 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
12337
12143
  ignore: [...props.clickOutsideExceptions, "#file-explorer-options-menu"]
12338
12144
  }
12339
12145
  );
12340
- useResizeObserver(containerProps.ref, containerProps.onScroll);
12341
12146
  const hasOptionsMenu = computed(() => {
12342
12147
  return Boolean(props.contextMenuBuilder);
12343
12148
  });
@@ -12368,9 +12173,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
12368
12173
  ref_key: "itemBack",
12369
12174
  ref: itemBack,
12370
12175
  tabindex: "-1",
12371
- class: normalizeClass(["file-explorer-item", {
12372
- "keyboard-focus": unref(keyPressedUntilMouseClick)
12373
- }]),
12176
+ class: normalizeClass(["file-explorer-item", { "keyboard-focus": unref(keyPressedUntilMouseClick) }]),
12374
12177
  "is-dragging": unref(isDragging),
12375
12178
  onDragenter: _cache[0] || (_cache[0] = ($event) => unref(onDragEnter)($event, -1, true)),
12376
12179
  onDragleave: _cache[1] || (_cache[1] = ($event) => unref(onDragLeave)($event, -1, true)),
@@ -12380,10 +12183,8 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
12380
12183
  onClick: _cache[4] || (_cache[4] = ($event) => changeDirectory(".."))
12381
12184
  }, null, 8, ["class", "is-dragging", "onDragover"])) : createCommentVNode("", true)
12382
12185
  ]),
12383
- createElementVNode("tbody", {
12384
- style: normalizeStyle({ ...unref(scrolledAreaStyles), flexDirection: "column" })
12385
- }, [
12386
- (openBlock(true), createElementBlock(Fragment, null, renderList(renderedItems.value, (item, vIndex) => {
12186
+ createElementVNode("tbody", normalizeProps(guardReactiveProps(unref(wrapperProps))), [
12187
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(list), ({ data: item, index }) => {
12387
12188
  return openBlock(), createBlock(FileExplorerItem, {
12388
12189
  key: item.id,
12389
12190
  ref_for: true,
@@ -12394,35 +12195,28 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
12394
12195
  disabled: item.disabled ?? false,
12395
12196
  item,
12396
12197
  "is-dragging": unref(isDragging),
12397
- "is-selected": unref(isSelected)(renderedIndices.value[vIndex]),
12198
+ "is-selected": unref(isSelected)(index),
12398
12199
  "is-rename-active": item.id === activeRenamedItemId.value,
12399
12200
  "blacklisted-names": blacklistedNames.value,
12400
12201
  "is-dragging-enabled": !__props.disableDragging,
12401
12202
  "has-options-menu": hasOptionsMenu.value,
12402
- onDragstart: ($event) => unref(onDragStart)($event, renderedIndices.value[vIndex]),
12403
- onDragenter: ($event) => unref(onDragEnter)($event, renderedIndices.value[vIndex]),
12203
+ onDragstart: ($event) => unref(onDragStart)($event, index),
12204
+ onDragenter: ($event) => unref(onDragEnter)($event, index),
12404
12205
  onDragover: _cache[8] || (_cache[8] = ($event) => unref(onDragOver)($event)),
12405
- onDragleave: ($event) => unref(onDragLeave)($event, renderedIndices.value[vIndex]),
12206
+ onDragleave: ($event) => unref(onDragLeave)($event, index),
12406
12207
  onDragend: ($event) => forwardEmit("dragend", unref(onDragEnd)($event, item)),
12407
12208
  onDrag: ($event) => forwardEmit("drag", unref(onDrag)($event, item)),
12408
- onClick: ($event) => onItemClick(item, $event, renderedIndices.value[vIndex]),
12409
- onContextmenu: ($event) => openContextMenuByMouse($event, item, renderedIndices.value[vIndex]),
12209
+ onClick: ($event) => onItemClick(item, $event, index),
12210
+ onContextmenu: ($event) => openContextMenuByMouse($event, item, index),
12410
12211
  onKeydown: [
12411
- withKeys(withModifiers(($event) => openContextMenuByKeyboard(item, renderedIndices.value[vIndex]), ["shift", "prevent"]), ["f10"]),
12212
+ withKeys(withModifiers(($event) => openContextMenuByKeyboard(item, index), ["shift", "prevent"]), ["f10"]),
12412
12213
  withKeys(withModifiers(($event) => handleEnterKey($event, item), ["prevent"]), ["enter"])
12413
12214
  ],
12414
- onDrop: ($event) => forwardEmit("moveItems", unref(onDrop)($event, renderedIndices.value[vIndex])),
12215
+ onDrop: ($event) => forwardEmit("moveItems", unref(onDrop)($event, index)),
12415
12216
  onDblclick: ($event) => openFileOrEnterFolder(item),
12416
12217
  "onRename:submit": _cache[9] || (_cache[9] = ($event) => emit("renameFile", $event)),
12417
12218
  "onRename:clear": _cache[10] || (_cache[10] = ($event) => activeRenamedItemId.value = null)
12418
12219
  }, createSlots({ _: 2 }, [
12419
- _ctx.$slots.itemIcon ? {
12420
- name: "icon",
12421
- fn: withCtx(() => [
12422
- renderSlot(_ctx.$slots, "itemIcon", { item }, void 0, true)
12423
- ]),
12424
- key: "0"
12425
- } : void 0,
12426
12220
  renderList(dynamicColumnSlotNames.value, (name) => {
12427
12221
  return {
12428
12222
  name,
@@ -12453,10 +12247,10 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
12453
12247
  }, ["stop"])),
12454
12248
  onDblclick: _cache[7] || (_cache[7] = withModifiers(() => {
12455
12249
  }, ["stop"])),
12456
- "onUpdate:modelValue": ($event) => openByOptionsMenu($event, item, renderedIndices.value[vIndex])
12250
+ "onUpdate:modelValue": ($event) => openByOptionsMenu($event, item, index)
12457
12251
  }, null, 8, ["model-value", "size", "aria-expanded", "style", "onUpdate:modelValue"])
12458
12252
  ]),
12459
- key: "1"
12253
+ key: "0"
12460
12254
  } : void 0
12461
12255
  ]), 1032, ["class", "disabled", "item", "is-dragging", "is-selected", "is-rename-active", "blacklisted-names", "is-dragging-enabled", "has-options-menu", "onDragstart", "onDragenter", "onDragleave", "onDragend", "onDrag", "onClick", "onContextmenu", "onKeydown", "onDrop", "onDblclick"]);
12462
12256
  }), 128)),
@@ -12467,7 +12261,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
12467
12261
  }, __props.emptyState), null, 16, ["headline"])
12468
12262
  ])
12469
12263
  ])) : createCommentVNode("", true)
12470
- ], 4),
12264
+ ], 16),
12471
12265
  __props.draggingAnimationMode !== "disabled" ? (openBlock(), createElementBlock("div", {
12472
12266
  key: 0,
12473
12267
  ref_key: "customPreviewContainer",
@@ -12512,7 +12306,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
12512
12306
  }
12513
12307
  });
12514
12308
 
12515
- const KdsFileExplorer = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-921486c1"]]);
12309
+ const KdsFileExplorer = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["__scopeId", "data-v-da0e6dab"]]);
12516
12310
 
12517
12311
  const kdsFileExplorerSize = {
12518
12312
  SMALL: "small",
@@ -23362,8 +23156,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
23362
23156
  return (_ctx, _cache) => {
23363
23157
  return openBlock(), createBlock(unref(KdsResizeContainer), {
23364
23158
  "number-of-handles": 2,
23365
- height: 320,
23366
- "min-height": 200,
23159
+ height: unref(kdsDimensionComponentHeight12p5x),
23160
+ "min-height": unref(kdsDimensionComponentHeight12p5x),
23367
23161
  "handle-gap": `${unref(kdsSpacingContainer0p25x) * 2 + unref(kdsDimensionComponentHeight1p5x)}px`
23368
23162
  }, {
23369
23163
  default: withCtx(({ contentStyle }) => [
@@ -23462,12 +23256,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
23462
23256
  ], 4)
23463
23257
  ]),
23464
23258
  _: 1
23465
- }, 8, ["handle-gap"]);
23259
+ }, 8, ["height", "min-height", "handle-gap"]);
23466
23260
  };
23467
23261
  }
23468
23262
  });
23469
23263
 
23470
- const TwinListBody = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-11062d8e"]]);
23264
+ const TwinListBody = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-eb1bc043"]]);
23471
23265
 
23472
23266
  const kdsTwinListSearchMode = {
23473
23267
  MANUAL: "manual",