@knime/kds-components 14.0.1 → 14.1.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.
Files changed (25) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/index.css +57 -57
  3. package/dist/index.js +52 -16
  4. package/dist/index.js.map +1 -1
  5. package/dist/src/components/buttons/BaseButton.vue.d.ts +4 -4
  6. package/dist/src/components/buttons/BaseButton.vue.d.ts.map +1 -1
  7. package/dist/src/components/buttons/KdsButton/KdsButton.vue.d.ts +4 -4
  8. package/dist/src/components/buttons/KdsButton/types.d.ts +6 -3
  9. package/dist/src/components/buttons/KdsButton/types.d.ts.map +1 -1
  10. package/dist/src/components/buttons/KdsSplitButton/KdsSplitButton.vue.d.ts +4 -4
  11. package/dist/src/components/buttons/KdsSplitButton/types.d.ts +6 -3
  12. package/dist/src/components/buttons/KdsSplitButton/types.d.ts.map +1 -1
  13. package/dist/src/components/buttons/ResponsiveButtonGroup/mapping.d.ts +4 -0
  14. package/dist/src/components/buttons/ResponsiveButtonGroup/mapping.d.ts.map +1 -1
  15. package/dist/src/components/buttons/index.d.ts +1 -1
  16. package/dist/src/components/buttons/index.d.ts.map +1 -1
  17. package/dist/src/components/buttons/types.d.ts +11 -1
  18. package/dist/src/components/buttons/types.d.ts.map +1 -1
  19. package/dist/src/components/lists/MenuContainer/KdsMenuItem.vue.d.ts.map +1 -1
  20. package/dist/src/components/lists/MenuContainer/types.d.ts +16 -2
  21. package/dist/src/components/lists/MenuContainer/types.d.ts.map +1 -1
  22. package/dist/src/layouts/explorer/FileExplorer/KdsFileExplorer.vue.d.ts.map +1 -1
  23. package/dist/src/util/isMiddleClick.d.ts +6 -0
  24. package/dist/src/util/isMiddleClick.d.ts.map +1 -0
  25. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @knime/kds-components
2
2
 
3
+ ## 14.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fd99132: `KdsFileExplorer`: keep keys typed in the rename modal from reaching `keydown` listeners on the explorer, so a Backspace or Delete shortcut bound there no longer fires while renaming.
8
+ - Updated dependencies
9
+ - @knime/kds-styles@14.1.1
10
+
11
+ ## 14.1.0
12
+
13
+ ### Minor Changes
14
+
15
+ - cf7f2eb: - `KdsButton` and `KdsSplitButton`: add the `middleClickable` prop. When set, a click with the middle mouse button also fires `click` (for `KdsSplitButton`, on its primary part), so the handler can open its target in a new tab, as it would for a Ctrl/Cmd-click. Off by default. `KdsResponsiveButtonGroup` keeps it for these entries when they move into the overflow menu. For navigation with a known URL, use `KdsLinkButton`, which supports middle-click natively.
16
+ - `KdsMenu`, `KdsContextMenu`, `KdsMenuButton`, `KdsSplitButton`, `KdsResponsiveButtonGroup`, and `KdsFileExplorer`: add the `middleClickable` flag to menu action items. When set, a middle click activates the item like a regular click: it calls `handler` and closes the menu, and emits `itemClick` where the component has that event. `handler` can tell it apart by `event.button`. Off by default. For navigation with a known URL, use a link item (`to`), which supports middle-click natively.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+ - @knime/kds-styles@14.1.0
22
+
3
23
  ## 14.0.1
4
24
 
5
25
  ### Patch Changes
package/dist/index.css CHANGED
@@ -246,7 +246,7 @@
246
246
  }
247
247
 
248
248
  .button {
249
- &[data-v-a41bd91f] {
249
+ &[data-v-fc91e314] {
250
250
  position: relative;
251
251
  display: flex;
252
252
  flex-shrink: 0;
@@ -260,150 +260,150 @@
260
260
 
261
261
  /* for LinkButton */
262
262
  }
263
- &[data-v-a41bd91f]:is(a) {
263
+ &[data-v-fc91e314]:is(a) {
264
264
  text-decoration: none;
265
265
  }
266
- &.disabled[data-v-a41bd91f] {
266
+ &.disabled[data-v-fc91e314] {
267
267
  cursor: default;
268
268
  }
269
- &[data-v-a41bd91f]:focus-visible {
269
+ &[data-v-fc91e314]:focus-visible {
270
270
  outline: var(--kds-border-action-focused);
271
271
  outline-offset: var(--kds-spacing-offset-focus);
272
272
  }
273
273
  &.filled {
274
- &[data-v-a41bd91f] {
274
+ &[data-v-fc91e314] {
275
275
  color: var(--kds-color-text-and-icon-primary-inverted);
276
276
  background-color: var(--kds-color-background-primary-bold-initial);
277
277
  border: var(--kds-border-action-transparent);
278
278
  }
279
- &.disabled[data-v-a41bd91f] {
279
+ &.disabled[data-v-fc91e314] {
280
280
  color: var(--kds-color-text-and-icon-disabled-inverted);
281
281
  background-color: var(--kds-color-background-disabled-primary);
282
282
  }
283
283
  &:not(.disabled, .success, .error) {
284
- &[data-v-a41bd91f]:hover {
284
+ &[data-v-fc91e314]:hover {
285
285
  background-color: var(--kds-color-background-primary-bold-hover);
286
286
  }
287
- &[data-v-a41bd91f]:active {
287
+ &[data-v-fc91e314]:active {
288
288
  background-color: var(--kds-color-background-primary-bold-active);
289
289
  }
290
290
  }
291
291
  &.destructive {
292
- &[data-v-a41bd91f] {
292
+ &[data-v-fc91e314] {
293
293
  color: var(--kds-color-text-and-icon-danger-inverted);
294
294
  background-color: var(--kds-color-background-danger-bold-initial);
295
295
  }
296
- &.disabled[data-v-a41bd91f] {
296
+ &.disabled[data-v-fc91e314] {
297
297
  color: var(--kds-color-text-and-icon-disabled-inverted);
298
298
  background-color: var(--kds-color-background-disabled-danger);
299
299
  }
300
300
  &:not(.disabled, .success, .error) {
301
- &[data-v-a41bd91f]:hover {
301
+ &[data-v-fc91e314]:hover {
302
302
  background-color: var(--kds-color-background-danger-bold-hover);
303
303
  }
304
- &[data-v-a41bd91f]:active {
304
+ &[data-v-fc91e314]:active {
305
305
  background-color: var(--kds-color-background-danger-bold-active);
306
306
  }
307
307
  }
308
308
  }
309
309
  }
310
310
  &.outlined {
311
- &[data-v-a41bd91f] {
311
+ &[data-v-fc91e314] {
312
312
  color: var(--kds-color-text-and-icon-neutral);
313
313
  background-color: var(--kds-color-background-neutral-initial);
314
314
  border: var(--kds-border-action-default);
315
315
  }
316
- &.disabled[data-v-a41bd91f] {
316
+ &.disabled[data-v-fc91e314] {
317
317
  color: var(--kds-color-text-and-icon-disabled);
318
318
  border: var(--kds-border-action-disabled);
319
319
  }
320
320
  &:not(.disabled, .success, .error) {
321
- &[data-v-a41bd91f]:hover {
321
+ &[data-v-fc91e314]:hover {
322
322
  background-color: var(--kds-color-background-neutral-hover);
323
323
  }
324
- &[data-v-a41bd91f]:active {
324
+ &[data-v-fc91e314]:active {
325
325
  background-color: var(--kds-color-background-neutral-active);
326
326
  }
327
327
  }
328
328
  &.destructive {
329
- &[data-v-a41bd91f] {
329
+ &[data-v-fc91e314] {
330
330
  color: var(--kds-color-text-and-icon-danger);
331
331
  border: var(--kds-border-action-error);
332
332
  }
333
- &.disabled[data-v-a41bd91f] {
333
+ &.disabled[data-v-fc91e314] {
334
334
  color: var(--kds-color-text-and-icon-disabled);
335
335
  border: var(--kds-border-action-disabled);
336
336
  }
337
337
  &:not(.disabled, .success, .error) {
338
- &[data-v-a41bd91f]:hover {
338
+ &[data-v-fc91e314]:hover {
339
339
  background-color: var(--kds-color-background-danger-hover);
340
340
  }
341
- &[data-v-a41bd91f]:active {
341
+ &[data-v-fc91e314]:active {
342
342
  background-color: var(--kds-color-background-danger-active);
343
343
  }
344
344
  }
345
345
  }
346
346
  }
347
347
  &.transparent {
348
- &[data-v-a41bd91f] {
348
+ &[data-v-fc91e314] {
349
349
  color: var(--kds-color-text-and-icon-neutral);
350
350
  background-color: var(--kds-color-background-neutral-initial);
351
351
  border: var(--kds-border-action-transparent);
352
352
  }
353
- &.disabled[data-v-a41bd91f] {
353
+ &.disabled[data-v-fc91e314] {
354
354
  color: var(--kds-color-text-and-icon-disabled);
355
355
  }
356
356
  &:not(.disabled, .success, .error) {
357
- &[data-v-a41bd91f]:hover {
357
+ &[data-v-fc91e314]:hover {
358
358
  background-color: var(--kds-color-background-neutral-hover);
359
359
  }
360
- &[data-v-a41bd91f]:active {
360
+ &[data-v-fc91e314]:active {
361
361
  background-color: var(--kds-color-background-neutral-active);
362
362
  }
363
363
  }
364
364
  &.destructive {
365
- &[data-v-a41bd91f] {
365
+ &[data-v-fc91e314] {
366
366
  color: var(--kds-color-text-and-icon-danger);
367
367
  }
368
- &.disabled[data-v-a41bd91f] {
368
+ &.disabled[data-v-fc91e314] {
369
369
  color: var(--kds-color-text-and-icon-disabled);
370
370
  }
371
371
  &:not(.disabled, .success, .error) {
372
- &[data-v-a41bd91f]:hover {
372
+ &[data-v-fc91e314]:hover {
373
373
  background-color: var(--kds-color-background-danger-hover);
374
374
  }
375
- &[data-v-a41bd91f]:active {
375
+ &[data-v-fc91e314]:active {
376
376
  background-color: var(--kds-color-background-danger-active);
377
377
  }
378
378
  }
379
379
  }
380
380
  }
381
381
  &.toggled {
382
- &[data-v-a41bd91f] {
382
+ &[data-v-fc91e314] {
383
383
  color: var(--kds-color-text-and-icon-selected);
384
384
  background-color: var(--kds-color-background-selected-initial);
385
385
  border: var(--kds-border-action-selected);
386
386
  }
387
- &.disabled[data-v-a41bd91f] {
387
+ &.disabled[data-v-fc91e314] {
388
388
  color: var(--kds-color-text-and-icon-disabled);
389
389
  }
390
390
  &:not(.disabled, .success, .error) {
391
- &[data-v-a41bd91f]:hover {
391
+ &[data-v-fc91e314]:hover {
392
392
  background-color: var(--kds-color-background-selected-hover);
393
393
  }
394
- &[data-v-a41bd91f]:active {
394
+ &[data-v-fc91e314]:active {
395
395
  background-color: var(--kds-color-background-selected-active);
396
396
  }
397
397
  }
398
398
  }
399
- & .label[data-v-a41bd91f] {
399
+ & .label[data-v-fc91e314] {
400
400
  max-width: 200px;
401
401
  padding: 0 var(--kds-spacing-container-0-12x);
402
402
  overflow: hidden;
403
403
  text-overflow: ellipsis;
404
404
  white-space: nowrap;
405
405
  }
406
- &.xsmall[data-v-a41bd91f] {
406
+ &.xsmall[data-v-fc91e314] {
407
407
  gap: var(--kds-spacing-container-0-12x);
408
408
  height: var(--kds-dimension-component-height-1-25x);
409
409
  padding: 0
@@ -412,7 +412,7 @@
412
412
  font: var(--kds-font-base-interactive-xsmall-strong);
413
413
  border-radius: var(--kds-border-radius-container-0-25x);
414
414
  }
415
- &.small[data-v-a41bd91f] {
415
+ &.small[data-v-fc91e314] {
416
416
  gap: var(--kds-spacing-container-0-12x);
417
417
  height: var(--kds-dimension-component-height-1-5x);
418
418
  padding: 0
@@ -421,7 +421,7 @@
421
421
  font: var(--kds-font-base-interactive-small-strong);
422
422
  border-radius: var(--kds-border-radius-container-0-37x);
423
423
  }
424
- &.medium[data-v-a41bd91f] {
424
+ &.medium[data-v-fc91e314] {
425
425
  gap: var(--kds-spacing-container-0-25x);
426
426
  height: var(--kds-dimension-component-height-1-75x);
427
427
  padding: 0
@@ -431,7 +431,7 @@
431
431
  border-radius: var(--kds-border-radius-container-0-37x);
432
432
  }
433
433
  &.large {
434
- &[data-v-a41bd91f] {
434
+ &[data-v-fc91e314] {
435
435
  gap: var(--kds-spacing-container-0-25x);
436
436
  height: var(--kds-dimension-component-height-2-25x);
437
437
  padding: 0
@@ -440,11 +440,11 @@
440
440
  font: var(--kds-font-base-interactive-large-strong);
441
441
  border-radius: var(--kds-border-radius-container-0-50x);
442
442
  }
443
- & .label[data-v-a41bd91f] {
443
+ & .label[data-v-fc91e314] {
444
444
  padding: 0 var(--kds-spacing-container-0-25x);
445
445
  }
446
446
  }
447
- &.success[data-v-a41bd91f] {
447
+ &.success[data-v-fc91e314] {
448
448
  color: var(--kds-color-text-and-icon-success-inverted);
449
449
  background-color: var(--kds-color-background-success-bold-initial);
450
450
  border: var(--kds-border-action-transparent);
@@ -453,7 +453,7 @@
453
453
  border-color 200ms ease-out,
454
454
  color 200ms ease-out;
455
455
  }
456
- &.error[data-v-a41bd91f] {
456
+ &.error[data-v-fc91e314] {
457
457
  color: var(--kds-color-text-and-icon-danger-inverted);
458
458
  background-color: var(--kds-color-background-danger-bold-initial);
459
459
  border: var(--kds-border-action-transparent);
@@ -462,11 +462,11 @@
462
462
  border-color 200ms ease-out,
463
463
  color 200ms ease-out;
464
464
  }
465
- &.remove-border-radius-left[data-v-a41bd91f] {
465
+ &.remove-border-radius-left[data-v-fc91e314] {
466
466
  border-top-left-radius: 0;
467
467
  border-bottom-left-radius: 0;
468
468
  }
469
- &.remove-border-radius-right[data-v-a41bd91f] {
469
+ &.remove-border-radius-right[data-v-fc91e314] {
470
470
  border-top-right-radius: 0;
471
471
  border-bottom-right-radius: 0;
472
472
  }
@@ -1553,7 +1553,7 @@ to {
1553
1553
  }
1554
1554
  }
1555
1555
 
1556
- .kds-menu-item-link[data-v-44f992ef] {
1556
+ .kds-menu-item-link[data-v-82456a09] {
1557
1557
  display: block;
1558
1558
  color: inherit;
1559
1559
  text-decoration: none;
@@ -4785,7 +4785,7 @@ td {
4785
4785
  cursor: pointer;
4786
4786
  }
4787
4787
 
4788
- .file-explorer[data-v-1dd4e671] {
4788
+ .file-explorer[data-v-150ca2aa] {
4789
4789
  display: flex;
4790
4790
  flex: 1 0 0%;
4791
4791
  flex-direction: column;
@@ -4794,10 +4794,10 @@ td {
4794
4794
  /* needed so that the virtualization container can size the wrapper properly */
4795
4795
  min-height: 0;
4796
4796
  }
4797
- .file-explorer-item[data-v-1dd4e671] {
4798
- height: var(--v8a863fbe);
4797
+ .file-explorer-item[data-v-150ca2aa] {
4798
+ height: var(--b9b67f4a);
4799
4799
  }
4800
- thead[data-v-1dd4e671] {
4800
+ thead[data-v-150ca2aa] {
4801
4801
  /* Hide table head for better readability but keeping it for a11y reasons */
4802
4802
  position: absolute;
4803
4803
 
@@ -4808,7 +4808,7 @@ thead[data-v-1dd4e671] {
4808
4808
  overflow: hidden;
4809
4809
  white-space: nowrap; /* added line */
4810
4810
  }
4811
- table[data-v-1dd4e671] {
4811
+ table[data-v-150ca2aa] {
4812
4812
  height: 100%;
4813
4813
  overflow: hidden auto;
4814
4814
  scrollbar-gutter: stable;
@@ -4819,19 +4819,19 @@ table[data-v-1dd4e671] {
4819
4819
  }
4820
4820
  table,
4821
4821
  tbody {
4822
- &[data-v-1dd4e671] {
4822
+ &[data-v-150ca2aa] {
4823
4823
  width: 100%;
4824
4824
  border-spacing: 0;
4825
4825
  }
4826
- &[data-v-1dd4e671]:not(:has(.empty)) {
4826
+ &[data-v-150ca2aa]:not(:has(.empty)) {
4827
4827
  display: block;
4828
4828
  }
4829
4829
  }
4830
4830
  table:focus {
4831
- &[data-v-1dd4e671] {
4831
+ &[data-v-150ca2aa] {
4832
4832
  outline: none;
4833
4833
  }
4834
- &.keyboard-focus[data-v-1dd4e671] {
4834
+ &.keyboard-focus[data-v-150ca2aa] {
4835
4835
  outline: 2px solid var(--kds-color-focus-outline);
4836
4836
  border-radius: var(--kds-border-radius-container-0-25x);
4837
4837
  }
@@ -4845,7 +4845,7 @@ table:focus {
4845
4845
  * CSS table instead distributed the single short row inconsistently
4846
4846
  * (Chrome centers it, Firefox keeps it at the top).
4847
4847
  */
4848
- table[data-v-1dd4e671]:has(.empty) {
4848
+ table[data-v-150ca2aa]:has(.empty) {
4849
4849
  display: flex;
4850
4850
  flex-direction: column;
4851
4851
 
@@ -4853,7 +4853,7 @@ table[data-v-1dd4e671]:has(.empty) {
4853
4853
  * message when the surrounding container is only as tall as its content. */
4854
4854
  min-height: var(--kds-dimension-component-height-12-5x);
4855
4855
  }
4856
- tbody[data-v-1dd4e671]:has(.empty) {
4856
+ tbody[data-v-150ca2aa]:has(.empty) {
4857
4857
  display: flex;
4858
4858
  flex: 1 0 0;
4859
4859
  flex-direction: column;
@@ -4861,11 +4861,11 @@ tbody[data-v-1dd4e671]:has(.empty) {
4861
4861
  min-height: max-content;
4862
4862
  padding-top: var(--kds-spacing-container-4x);
4863
4863
  }
4864
- .empty[data-v-1dd4e671],
4865
- .empty td[data-v-1dd4e671] {
4864
+ .empty[data-v-150ca2aa],
4865
+ .empty td[data-v-150ca2aa] {
4866
4866
  display: block;
4867
4867
  }
4868
- .custom-preview[data-v-1dd4e671] {
4868
+ .custom-preview[data-v-150ca2aa] {
4869
4869
  position: fixed;
4870
4870
  top: 0;
4871
4871
  left: 0;
package/dist/index.js CHANGED
@@ -3614,6 +3614,14 @@ var hotkeys = {
3614
3614
  match
3615
3615
  };
3616
3616
  //#endregion
3617
+ //#region src/util/isMiddleClick.ts
3618
+ var MIDDLE_MOUSE_BUTTON = 1;
3619
+ /**
3620
+ * Whether a mouse event comes from the middle button. Browsers fire `auxclick`
3621
+ * instead of `click` for it, but `auxclick` also fires for the right button.
3622
+ */
3623
+ var isMiddleClick = (event) => event.button === MIDDLE_MOUSE_BUTTON;
3624
+ //#endregion
3617
3625
  //#region src/components/buttons/BaseButton.vue?vue&type=script&setup=true&lang.ts
3618
3626
  var _hoisted_1$89 = {
3619
3627
  key: 0,
@@ -3653,6 +3661,10 @@ var BaseButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
3653
3661
  default: false
3654
3662
  },
3655
3663
  removeBorderRadius: { default: () => void 0 },
3664
+ middleClickable: {
3665
+ type: Boolean,
3666
+ default: false
3667
+ },
3656
3668
  component: { default: "button" }
3657
3669
  },
3658
3670
  emits: ["click"],
@@ -3665,7 +3677,8 @@ var BaseButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
3665
3677
  "error",
3666
3678
  "disabled",
3667
3679
  "toggled",
3668
- "removeBorderRadius"
3680
+ "removeBorderRadius",
3681
+ "middleClickable"
3669
3682
  ]);
3670
3683
  const emit = __emit;
3671
3684
  const classes = computed(() => [
@@ -3686,6 +3699,13 @@ var BaseButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
3686
3699
  function onClick(e) {
3687
3700
  if (!__props.disabled) emit("click", e);
3688
3701
  }
3702
+ const middleClickEnabled = computed(() => __props.middleClickable && !__props.disabled && __props.component === "button");
3703
+ function onAuxClick(event) {
3704
+ if (middleClickEnabled.value && isMiddleClick(event)) emit("click", event);
3705
+ }
3706
+ function onMouseDown(event) {
3707
+ if (middleClickEnabled.value && isMiddleClick(event)) event.preventDefault();
3708
+ }
3689
3709
  return (_ctx, _cache) => {
3690
3710
  return withDirectives((openBlock(), createBlock(resolveDynamicComponent(__props.component), {
3691
3711
  type: __props.component === "button" ? "button" : void 0,
@@ -3693,7 +3713,9 @@ var BaseButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
3693
3713
  disabled: __props.disabled,
3694
3714
  "aria-label": props.ariaLabel,
3695
3715
  "data-test-id": props.dataTestId,
3696
- onClick: _cache[0] || (_cache[0] = ($event) => onClick($event))
3716
+ onClick: _cache[0] || (_cache[0] = ($event) => onClick($event)),
3717
+ onAuxclick: _cache[1] || (_cache[1] = ($event) => onAuxClick($event)),
3718
+ onMousedown: _cache[2] || (_cache[2] = ($event) => onMouseDown($event))
3697
3719
  }, {
3698
3720
  default: withCtx(() => [
3699
3721
  renderSlot(_ctx.$slots, "leading", {}, () => [props.leadingIcon ? (openBlock(), createBlock(KdsIcon_default, {
@@ -3709,7 +3731,7 @@ var BaseButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
3709
3731
  }, null, 8, ["name", "size"])) : createCommentVNode("", true)], true, 1) : createCommentVNode("", true)
3710
3732
  ]),
3711
3733
  _: 3
3712
- }, 8, [
3734
+ }, 40, [
3713
3735
  "type",
3714
3736
  "class",
3715
3737
  "disabled",
@@ -3718,7 +3740,7 @@ var BaseButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
3718
3740
  ])), [[unref(vKdsTooltip), props.tooltip]]);
3719
3741
  };
3720
3742
  }
3721
- }), [["__scopeId", "data-v-a41bd91f"]]);
3743
+ }), [["__scopeId", "data-v-fc91e314"]]);
3722
3744
  //#endregion
3723
3745
  //#region src/components/buttons/KdsButton/KdsButton.vue
3724
3746
  var KdsButton_default = /* @__PURE__ */ defineComponent({
@@ -3733,7 +3755,8 @@ var KdsButton_default = /* @__PURE__ */ defineComponent({
3733
3755
  leadingIcon: {},
3734
3756
  trailingIcon: {},
3735
3757
  ariaLabel: {},
3736
- destructive: { type: Boolean }
3758
+ destructive: { type: Boolean },
3759
+ middleClickable: { type: Boolean }
3737
3760
  },
3738
3761
  emits: ["click"],
3739
3762
  setup(__props, { emit: __emit }) {
@@ -11849,8 +11872,9 @@ var KdsMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
11849
11872
  variant: {}
11850
11873
  },
11851
11874
  emits: ["click", "mouseenter"],
11852
- setup(__props, { expose: __expose }) {
11875
+ setup(__props, { expose: __expose, emit: __emit }) {
11853
11876
  const props = __props;
11877
+ const emit = __emit;
11854
11878
  const linkEl = useTemplateRef("linkEl");
11855
11879
  __expose({ clickLink: () => {
11856
11880
  if (typeof props.item.to !== "string" || props.item.disabled) return;
@@ -11883,6 +11907,12 @@ var KdsMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
11883
11907
  });
11884
11908
  const effectiveTo = computed(() => props.item.disabled ? void 0 : props.item.to);
11885
11909
  const hasChildren = computed(() => props.item.children && props.item.children.length > 0);
11910
+ const onAuxClick = (event) => {
11911
+ if (props.item.middleClickable && !props.item.disabled && isMiddleClick(event)) emit("click", event);
11912
+ };
11913
+ const onMouseDown = (event) => {
11914
+ if (props.item.middleClickable && isMiddleClick(event)) event.preventDefault();
11915
+ };
11886
11916
  return (_ctx, _cache) => {
11887
11917
  return openBlock(), createElementBlock(Fragment, null, [
11888
11918
  __props.item.sectionHeadline ? (openBlock(), createBlock(unref(ListItemSectionTitle_default), mergeProps({
@@ -11955,6 +11985,8 @@ var KdsMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
11955
11985
  role: "menuitem"
11956
11986
  }, _ctx.$attrs, {
11957
11987
  onClick: _cache[3] || (_cache[3] = ($event) => !__props.item.disabled && _ctx.$emit("click", $event)),
11988
+ onAuxclick: onAuxClick,
11989
+ onMousedown: onMouseDown,
11958
11990
  onMouseenter: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("mouseenter", $event))
11959
11991
  }), null, 16, [
11960
11992
  "id",
@@ -12001,7 +12033,7 @@ var KdsMenuItem_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
12001
12033
  ], 64);
12002
12034
  };
12003
12035
  }
12004
- }), [["__scopeId", "data-v-44f992ef"]]);
12036
+ }), [["__scopeId", "data-v-82456a09"]]);
12005
12037
  //#endregion
12006
12038
  //#region src/components/lists/MenuContainer/keys.ts
12007
12039
  var ContainerDepthKey = Symbol("ContainerDepth");
@@ -12417,6 +12449,7 @@ var KdsSplitButton_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
12417
12449
  leadingIcon: {},
12418
12450
  trailingIcon: {},
12419
12451
  ariaLabel: {},
12452
+ middleClickable: { type: Boolean },
12420
12453
  items: {},
12421
12454
  menuMaxHeight: {}
12422
12455
  },
@@ -14433,7 +14466,8 @@ var toMenuItem = (entry) => {
14433
14466
  text: entry.meta.label,
14434
14467
  disabled: entry.meta.disabled,
14435
14468
  accessory: accessoryFor(entry),
14436
- handler: (_item, ev) => entry.handler(entry, ev)
14469
+ handler: (_item, ev) => entry.handler(entry, ev),
14470
+ middleClickable: entry.meta.middleClickable
14437
14471
  };
14438
14472
  case "KdsProgressButton": return {
14439
14473
  id: entry.id,
@@ -14470,7 +14504,8 @@ var toMenuItem = (entry) => {
14470
14504
  text: entry.meta.label,
14471
14505
  accessory: accessoryFor(entry),
14472
14506
  separator: true,
14473
- handler: (_item, ev) => entry.handler(entry, ev)
14507
+ handler: (_item, ev) => entry.handler(entry, ev),
14508
+ middleClickable: entry.meta.middleClickable
14474
14509
  }, ...entry.meta.items]
14475
14510
  };
14476
14511
  case "KdsMenuButton": return {
@@ -34664,7 +34699,7 @@ var KdsFileExplorer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
34664
34699
  "renameFile"
34665
34700
  ], ["update:activeRenamedItemId"]),
34666
34701
  setup(__props, { emit: __emit }) {
34667
- useCssVars((_ctx) => ({ "v8a863fbe": itemHeight.value + "px" }));
34702
+ useCssVars((_ctx) => ({ "b9b67f4a": itemHeight.value + "px" }));
34668
34703
  const props = __props;
34669
34704
  /** The id of the item currently being renamed. */
34670
34705
  const activeRenamedItemId = useModel(__props, "activeRenamedItemId");
@@ -35021,7 +35056,8 @@ var KdsFileExplorer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
35021
35056
  item: renamedItem.value,
35022
35057
  "blacklisted-names": blacklistedNames.value,
35023
35058
  onSubmit: _cache[10] || (_cache[10] = ($event) => emit("renameFile", $event)),
35024
- onClose: _cache[11] || (_cache[11] = ($event) => activeRenamedItemId.value = null)
35059
+ onClose: _cache[11] || (_cache[11] = ($event) => activeRenamedItemId.value = null),
35060
+ onKeydown: _cache[12] || (_cache[12] = withModifiers(() => {}, ["stop"]))
35025
35061
  }, null, 8, ["item", "blacklisted-names"]),
35026
35062
  createVNode(KdsPopover_default, {
35027
35063
  ref_key: "popover",
@@ -35031,8 +35067,8 @@ var KdsFileExplorer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
35031
35067
  "model-value": Boolean(contextMenuAnchor.value && contextMenuItems.value.length > 0),
35032
35068
  placement: "bottom-left",
35033
35069
  "aria-label": "Menu",
35034
- onKeydown: _cache[14] || (_cache[14] = withKeys(withModifiers(($event) => closeContextMenu(), ["stop", "prevent"]), ["esc"])),
35035
- onFocusout: _cache[15] || (_cache[15] = ($event) => closeContextMenu())
35070
+ onKeydown: _cache[15] || (_cache[15] = withKeys(withModifiers(($event) => closeContextMenu(), ["stop", "prevent"]), ["esc"])),
35071
+ onFocusout: _cache[16] || (_cache[16] = ($event) => closeContextMenu())
35036
35072
  }, {
35037
35073
  default: withCtx(() => [createVNode(unref(KdsMenuContainer_default), {
35038
35074
  id: "file-explorer-options-menu",
@@ -35041,15 +35077,15 @@ var KdsFileExplorer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
35041
35077
  ariaLabel: "File explorer context",
35042
35078
  items: contextMenuItems.value,
35043
35079
  "menu-max-height": __props.maxContextMenuHeight,
35044
- onItemClick: _cache[12] || (_cache[12] = ($event) => closeContextMenu()),
35045
- onContextmenu: _cache[13] || (_cache[13] = withModifiers(() => {}, ["prevent", "stop"]))
35080
+ onItemClick: _cache[13] || (_cache[13] = ($event) => closeContextMenu()),
35081
+ onContextmenu: _cache[14] || (_cache[14] = withModifiers(() => {}, ["prevent", "stop"]))
35046
35082
  }, null, 8, ["items", "menu-max-height"])]),
35047
35083
  _: 1
35048
35084
  }, 8, ["anchor", "model-value"])
35049
35085
  ]);
35050
35086
  };
35051
35087
  }
35052
- }), [["__scopeId", "data-v-1dd4e671"]]);
35088
+ }), [["__scopeId", "data-v-150ca2aa"]]);
35053
35089
  //#endregion
35054
35090
  //#region src/layouts/explorer/FileExplorer/enums.ts
35055
35091
  var kdsFileExplorerSize = {