@knime/kds-table 13.1.0 → 13.3.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 CHANGED
@@ -1,5 +1,27 @@
1
1
  # @knime/kds-table
2
2
 
3
+ ## 13.3.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [3afcd91]
8
+ - @knime/kds-components@13.3.0
9
+ - @knime/kds-styles@13.3.0
10
+
11
+ ## 13.2.0
12
+
13
+ ### Minor Changes
14
+
15
+ - a9a59ad: `BREAKING CHANGES:`
16
+ `KdsTable`: Adjust shortcut to copy table contents with headers, from "Ctrl+Shift+C" to "Alt+C".
17
+ "Ctrl+Shift+C" no longer works.
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+ - @knime/kds-components@13.2.0
23
+ - @knime/kds-styles@13.2.0
24
+
3
25
  ## 13.1.0
4
26
 
5
27
  ### Patch Changes
package/dist/index.css CHANGED
@@ -604,7 +604,7 @@ tr.row {
604
604
  }
605
605
  }
606
606
 
607
- .wrapper[data-v-09b97a7c] {
607
+ .wrapper[data-v-7b7a80d5] {
608
608
  display: flex;
609
609
  flex-direction: column;
610
610
  width: 100%;
@@ -614,7 +614,7 @@ tr.row {
614
614
  }
615
615
  }
616
616
  table {
617
- &[data-v-09b97a7c] {
617
+ &[data-v-7b7a80d5] {
618
618
  position: relative;
619
619
  display: flex;
620
620
  flex-grow: 1;
@@ -626,19 +626,19 @@ table {
626
626
  one place Figma sets a surface token for (SLEEK-297). KdsPagination stays
627
627
  transparent so it can sit on any surface. */
628
628
  }
629
- &[data-v-09b97a7c]:focus {
629
+ &[data-v-7b7a80d5]:focus {
630
630
  outline: none;
631
631
  }
632
- & .new-row-footer[data-v-09b97a7c] {
632
+ & .new-row-footer[data-v-7b7a80d5] {
633
633
  width: 100%;
634
634
  }
635
- & .pagination[data-v-09b97a7c] {
635
+ & .pagination[data-v-7b7a80d5] {
636
636
  background: var(--kds-color-surface-default);
637
637
  }
638
638
  }
639
639
 
640
640
  /* The empty state is placed into the rows' area by TableCoreVirtual. */
641
- .empty-state[data-v-09b97a7c] {
641
+ .empty-state[data-v-7b7a80d5] {
642
642
  max-width: 100%;
643
643
  }
644
644
 
package/dist/index.js CHANGED
@@ -5269,7 +5269,6 @@ var useCellCopyPaste = ({ focusWithin, isEditingCell, selectionOverlay, selected
5269
5269
  const isBodySelected = () => {
5270
5270
  return focusWithin.value && !isHeaderCellSelected() && !isEditingCell.value;
5271
5271
  };
5272
- const primaryModifierKey = getMetaOrCtrlKey();
5273
5272
  const onCopySelection = ({ withHeaders }) => {
5274
5273
  if (!isBodySelected()) return;
5275
5274
  triggerCopyAnimation();
@@ -5291,7 +5290,7 @@ var useCellCopyPaste = ({ focusWithin, isEditingCell, selectionOverlay, selected
5291
5290
  onCopySelection({ withHeaders: false });
5292
5291
  };
5293
5292
  const handleCopyOnKeydown = (e) => {
5294
- if (e[primaryModifierKey]) onCopySelection({ withHeaders: true });
5293
+ if (e.code === "KeyC") onCopySelection({ withHeaders: true });
5295
5294
  };
5296
5295
  onMounted(() => {
5297
5296
  globalThis.addEventListener("copy", handleDefaultCopyEvent);
@@ -8096,18 +8095,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
8096
8095
  onPointerdownPassive: _cache[11] || (_cache[11] = withModifiers(($event) => $event.button === 0 && $setup.selectCellsOnMove.setTrue(), ["stop"])),
8097
8096
  onPointerupPassive: _cache[12] || (_cache[12] = ($event) => $event.button === 0 && $setup.selectCellsOnMove.setFalse()),
8098
8097
  onKeydown: [
8099
- _cache[13] || (_cache[13] = withKeys(withModifiers((...args) => $setup.handleCopyOnKeydown && $setup.handleCopyOnKeydown(...args), [
8100
- "ctrl",
8101
- "shift",
8102
- "exact"
8103
- ]), ["c"])),
8104
- _cache[14] || (_cache[14] = withKeys(withModifiers((...args) => $setup.handleCopyOnKeydown && $setup.handleCopyOnKeydown(...args), [
8105
- "meta",
8106
- "shift",
8107
- "exact"
8108
- ]), ["c"])),
8109
- _cache[15] || (_cache[15] = withKeys(withModifiers((...args) => $setup.handleDeleteSelection && $setup.handleDeleteSelection(...args), ["exact"]), ["delete"])),
8110
- _cache[16] || (_cache[16] = withKeys(withModifiers((...args) => $setup.clearCellSelectionAndStopPropagation && $setup.clearCellSelectionAndStopPropagation(...args), ["exact"]), ["escape"]))
8098
+ _cache[13] || (_cache[13] = withModifiers((...args) => $setup.handleCopyOnKeydown && $setup.handleCopyOnKeydown(...args), ["alt", "exact"])),
8099
+ _cache[14] || (_cache[14] = withKeys(withModifiers((...args) => $setup.handleDeleteSelection && $setup.handleDeleteSelection(...args), ["exact"]), ["delete"])),
8100
+ _cache[15] || (_cache[15] = withKeys(withModifiers((...args) => $setup.clearCellSelectionAndStopPropagation && $setup.clearCellSelectionAndStopPropagation(...args), ["exact"]), ["escape"]))
8111
8101
  ]
8112
8102
  }, [createVNode(_component_TableCore, {
8113
8103
  ref: "tableCore",
@@ -8335,7 +8325,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
8335
8325
  "onUpdate:pageSize"
8336
8326
  ])) : createCommentVNode("", true)], 544)], 4);
8337
8327
  }
8338
- var TableUI_default = /*#__PURE__*/ _plugin_vue_export_helper_default(TableUI_vue_vue_type_script_lang_default, [["render", _sfc_render$1], ["__scopeId", "data-v-09b97a7c"]]);
8328
+ var TableUI_default = /*#__PURE__*/ _plugin_vue_export_helper_default(TableUI_vue_vue_type_script_lang_default, [["render", _sfc_render$1], ["__scopeId", "data-v-7b7a80d5"]]);
8339
8329
  //#endregion
8340
8330
  //#region src/components/composables/useTableReady.ts
8341
8331
  var useTableReady = ({ onReady }) => {