@knime/kds-components 14.1.0 → 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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 14.1.0
4
12
 
5
13
  ### Minor Changes
package/dist/index.css CHANGED
@@ -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
@@ -34699,7 +34699,7 @@ var KdsFileExplorer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
34699
34699
  "renameFile"
34700
34700
  ], ["update:activeRenamedItemId"]),
34701
34701
  setup(__props, { emit: __emit }) {
34702
- useCssVars((_ctx) => ({ "v8a863fbe": itemHeight.value + "px" }));
34702
+ useCssVars((_ctx) => ({ "b9b67f4a": itemHeight.value + "px" }));
34703
34703
  const props = __props;
34704
34704
  /** The id of the item currently being renamed. */
34705
34705
  const activeRenamedItemId = useModel(__props, "activeRenamedItemId");
@@ -35056,7 +35056,8 @@ var KdsFileExplorer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
35056
35056
  item: renamedItem.value,
35057
35057
  "blacklisted-names": blacklistedNames.value,
35058
35058
  onSubmit: _cache[10] || (_cache[10] = ($event) => emit("renameFile", $event)),
35059
- 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"]))
35060
35061
  }, null, 8, ["item", "blacklisted-names"]),
35061
35062
  createVNode(KdsPopover_default, {
35062
35063
  ref_key: "popover",
@@ -35066,8 +35067,8 @@ var KdsFileExplorer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
35066
35067
  "model-value": Boolean(contextMenuAnchor.value && contextMenuItems.value.length > 0),
35067
35068
  placement: "bottom-left",
35068
35069
  "aria-label": "Menu",
35069
- onKeydown: _cache[14] || (_cache[14] = withKeys(withModifiers(($event) => closeContextMenu(), ["stop", "prevent"]), ["esc"])),
35070
- 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())
35071
35072
  }, {
35072
35073
  default: withCtx(() => [createVNode(unref(KdsMenuContainer_default), {
35073
35074
  id: "file-explorer-options-menu",
@@ -35076,15 +35077,15 @@ var KdsFileExplorer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
35076
35077
  ariaLabel: "File explorer context",
35077
35078
  items: contextMenuItems.value,
35078
35079
  "menu-max-height": __props.maxContextMenuHeight,
35079
- onItemClick: _cache[12] || (_cache[12] = ($event) => closeContextMenu()),
35080
- 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"]))
35081
35082
  }, null, 8, ["items", "menu-max-height"])]),
35082
35083
  _: 1
35083
35084
  }, 8, ["anchor", "model-value"])
35084
35085
  ]);
35085
35086
  };
35086
35087
  }
35087
- }), [["__scopeId", "data-v-1dd4e671"]]);
35088
+ }), [["__scopeId", "data-v-150ca2aa"]]);
35088
35089
  //#endregion
35089
35090
  //#region src/layouts/explorer/FileExplorer/enums.ts
35090
35091
  var kdsFileExplorerSize = {