@knime/kds-table 0.6.0 → 0.6.2

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 (30) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/index.css +63 -59
  3. package/dist/index.js +93 -83
  4. package/dist/index.js.map +1 -1
  5. package/dist/src/components/TableUI.vue.d.ts +131 -63
  6. package/dist/src/components/TableUI.vue.d.ts.map +1 -1
  7. package/dist/src/components/TableUIWithAutoSizeCalculation.vue.d.ts +300 -78
  8. package/dist/src/components/TableUIWithAutoSizeCalculation.vue.d.ts.map +1 -1
  9. package/dist/src/components/control/PageControls.vue.d.ts +40 -14
  10. package/dist/src/components/control/PageControls.vue.d.ts.map +1 -1
  11. package/dist/src/components/control/TableActionBar.vue.d.ts +12 -4
  12. package/dist/src/components/control/TableActionBar.vue.d.ts.map +1 -1
  13. package/dist/src/components/control/actionbar/FilterControl.vue.d.ts +8 -2
  14. package/dist/src/components/control/actionbar/FilterControl.vue.d.ts.map +1 -1
  15. package/dist/src/components/control/actionbar/SortControl.vue.d.ts +8 -2
  16. package/dist/src/components/control/actionbar/SortControl.vue.d.ts.map +1 -1
  17. package/dist/src/components/layout/Cell.vue.d.ts +2 -2
  18. package/dist/src/components/layout/Cell.vue.d.ts.map +1 -1
  19. package/dist/src/components/layout/CellRenderer.vue.d.ts.map +1 -1
  20. package/dist/src/components/layout/CellRendererProps.d.ts +1 -1
  21. package/dist/src/components/layout/CellRendererProps.d.ts.map +1 -1
  22. package/dist/src/components/layout/Header.vue.d.ts +20 -12
  23. package/dist/src/components/layout/Header.vue.d.ts.map +1 -1
  24. package/dist/src/components/layout/HeaderCell.vue.d.ts +8 -8
  25. package/dist/src/components/layout/HeaderCell.vue.d.ts.map +1 -1
  26. package/dist/src/components/layout/Row.vue.d.ts +32 -16
  27. package/dist/src/components/layout/Row.vue.d.ts.map +1 -1
  28. package/dist/src/types/ActionConfig.d.ts +7 -0
  29. package/dist/src/types/ActionConfig.d.ts.map +1 -1
  30. package/package.json +12 -14
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { computed, unref, watch, ref, isRef, watchEffect, getCurrentScope, onScopeDispose, getCurrentInstance, onMounted, inject, provide, defineComponent, openBlock, createElementBlock, withModifiers, renderSlot, toRef, normalizeStyle, normalizeClass, createCommentVNode, createVNode, Fragment, renderList, createElementVNode, createBlock, nextTick, withCtx, onBeforeUnmount, reactive, onUnmounted, toDisplayString, resolveComponent, useTemplateRef, createTextVNode, shallowRef, toValue, readonly, withKeys, mergeProps, useSlots, createSlots, normalizeProps, guardReactiveProps } from 'vue';
2
- import { KdsCheckbox, KdsLoadingSkeleton, KdsButton, KdsMenuButton, KdsDropdown, KdsTextInput, KdsMultiSelectDropdown, KdsToggleButton, KdsPopover, KdsIcon, KdsMissingValueIcon } from '@knime/kds-components';
1
+ import { computed, unref, watch, ref, isRef, watchEffect, getCurrentScope, onScopeDispose, getCurrentInstance, onMounted, inject, provide, defineComponent, openBlock, createElementBlock, withModifiers, renderSlot, toRef, normalizeStyle, normalizeClass, createCommentVNode, createVNode, Fragment, renderList, createElementVNode, createBlock, nextTick, withCtx, onBeforeUnmount, reactive, onUnmounted, toDisplayString, resolveComponent, useTemplateRef, createTextVNode, shallowRef, toValue, shallowReadonly, withKeys, withDirectives, mergeProps, useSlots, createSlots, normalizeProps, guardReactiveProps } from 'vue';
2
+ import { KdsCheckbox, KdsLoadingSkeleton, KdsButton, KdsMenuButton, KdsDropdown, KdsTextInput, KdsMultiSelectDropdown, KdsToggleButton, KdsPopover, KdsIcon, KdsSearchInput, vKdsTooltip, KdsMissingValueIcon } from '@knime/kds-components';
3
3
 
4
4
  import './index.css';const defaultPageSize = 10;
5
5
  const filterComponents = {
@@ -666,7 +666,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
666
666
  })
667
667
  }, [
668
668
  createVNode(unref(KdsCheckbox), {
669
- title: "Selection",
669
+ tooltip: "Selection",
670
670
  disabled: "",
671
671
  class: "select-checkbox"
672
672
  })
@@ -690,7 +690,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
690
690
  }
691
691
  });
692
692
 
693
- const EmptyRow = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-732e42c3"]]);
693
+ const EmptyRow = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-f722e2bf"]]);
694
694
 
695
695
  const _sfc_main$l = /* @__PURE__ */ defineComponent({
696
696
  __name: "PlaceholderRow",
@@ -1581,7 +1581,7 @@ const createEditingCellKeydownHandler = ({
1581
1581
 
1582
1582
  const _hoisted_1$c = { class: "page-navigation" };
1583
1583
  const _hoisted_2$8 = { class: "navigation-buttons" };
1584
- const _hoisted_3$5 = { class: "page-count" };
1584
+ const _hoisted_3$4 = { class: "page-count" };
1585
1585
  const _hoisted_4$2 = { class: "navigation-buttons" };
1586
1586
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
1587
1587
  __name: "PageNavigation",
@@ -1618,7 +1618,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
1618
1618
  onClick: _cache[1] || (_cache[1] = ($event) => onPageChange(__props.currentPage - 1))
1619
1619
  }, null, 8, ["disabled"])
1620
1620
  ]),
1621
- createElementVNode("span", _hoisted_3$5, toDisplayString(__props.currentPage) + " of " + toDisplayString(__props.totalPages), 1),
1621
+ createElementVNode("span", _hoisted_3$4, toDisplayString(__props.currentPage) + " of " + toDisplayString(__props.totalPages), 1),
1622
1622
  createElementVNode("div", _hoisted_4$2, [
1623
1623
  createVNode(unref(KdsButton), {
1624
1624
  variant: "transparent",
@@ -1652,7 +1652,7 @@ const _hoisted_2$7 = {
1652
1652
  key: 1,
1653
1653
  class: "row-range-container"
1654
1654
  };
1655
- const _hoisted_3$4 = { class: "subtle" };
1655
+ const _hoisted_3$3 = { class: "subtle" };
1656
1656
  const _hoisted_4$1 = {
1657
1657
  key: 0,
1658
1658
  class: "muted"
@@ -1681,7 +1681,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
1681
1681
  );
1682
1682
  return (_ctx, _cache) => {
1683
1683
  return __props.showTableSize && __props.currentItems === 0 ? (openBlock(), createElementBlock("span", _hoisted_1$b, "No data")) : (openBlock(), createElementBlock("div", _hoisted_2$7, [
1684
- createElementVNode("span", _hoisted_3$4, toDisplayString(__props.rowLabel) + ":", 1),
1684
+ createElementVNode("span", _hoisted_3$3, toDisplayString(__props.rowLabel) + ":", 1),
1685
1685
  hasMultiplePages.value && __props.currentItems ? (openBlock(), createElementBlock("span", _hoisted_4$1, toDisplayString(pageRangeStart.value) + "–" + toDisplayString(pageRangeEnd.value), 1)) : createCommentVNode("", true),
1686
1686
  createElementVNode("span", _hoisted_5, toDisplayString(rowCountText.value), 1)
1687
1687
  ]));
@@ -2050,14 +2050,14 @@ const _sfc_main$d = { };
2050
2050
 
2051
2051
  const _hoisted_1$8 = { class: "popover" };
2052
2052
  const _hoisted_2$4 = { class: "header" };
2053
- const _hoisted_3$3 = { class: "body" };
2053
+ const _hoisted_3$2 = { class: "body" };
2054
2054
 
2055
2055
  function _sfc_render$3(_ctx, _cache) {
2056
2056
  return (openBlock(), createElementBlock("div", _hoisted_1$8, [
2057
2057
  createElementVNode("span", _hoisted_2$4, [
2058
2058
  renderSlot(_ctx.$slots, "header", {}, undefined, true)
2059
2059
  ]),
2060
- createElementVNode("div", _hoisted_3$3, [
2060
+ createElementVNode("div", _hoisted_3$2, [
2061
2061
  renderSlot(_ctx.$slots, "body", {}, undefined, true)
2062
2062
  ])
2063
2063
  ]))
@@ -2313,13 +2313,13 @@ const _hoisted_2$3 = {
2313
2313
  key: 0,
2314
2314
  class: "dimension"
2315
2315
  };
2316
- const _hoisted_3$2 = { class: "right" };
2316
+ const _hoisted_3$1 = { class: "right" };
2317
2317
  const _sfc_main$a = /* @__PURE__ */ defineComponent({
2318
2318
  __name: "TableActionBar",
2319
2319
  props: {
2320
2320
  tableSizes: {},
2321
2321
  rowLabel: { default: "Rows" },
2322
- viewType: { default: "DEFAULT" },
2322
+ actionState: {},
2323
2323
  showTableSize: { type: Boolean, default: true },
2324
2324
  actionConfig: {},
2325
2325
  colSortValues: { default: () => [] },
@@ -2327,14 +2327,15 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2327
2327
  sortControlOptions: {},
2328
2328
  columns: {}
2329
2329
  },
2330
- emits: ["resetTemporaryView", "columnFilter", "onColumnSort"],
2330
+ emits: ["resetTemporaryView", "columnFilter", "onColumnSort", "update:searchTerm"],
2331
2331
  setup(__props, { expose: __expose, emit: __emit }) {
2332
+ const viewType = computed(() => __props.actionState?.viewType ?? "DEFAULT");
2332
2333
  const isTemporaryView = computed(
2333
- () => __props.viewType === "TEMP_VIEW" || __props.viewType === "PREVIEW"
2334
+ () => viewType.value === "TEMP_VIEW" || viewType.value === "PREVIEW"
2334
2335
  );
2335
- const showResetButton = computed(() => __props.viewType === "TEMP_VIEW");
2336
+ const showResetButton = computed(() => viewType.value === "TEMP_VIEW");
2336
2337
  const hasContent = computed(
2337
- () => isTemporaryView.value || __props.showTableSize || __props.actionConfig.enableSorting || __props.actionConfig.enableFilters || __props.actionConfig.forceShow
2338
+ () => isTemporaryView.value || __props.showTableSize || __props.actionConfig.enableSearch || __props.actionConfig.enableSorting || __props.actionConfig.enableFilters || __props.actionConfig.forceShow
2338
2339
  );
2339
2340
  const formatCount = (label, total, current) => {
2340
2341
  const appendTotal = current !== void 0 && current < total;
@@ -2391,9 +2392,16 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2391
2392
  onColumnFilter: _cache[1] || (_cache[1] = (colInd, value) => emit("columnFilter", colInd, value))
2392
2393
  }, null, 8, ["columns", "col-filter-values"])) : createCommentVNode("", true)
2393
2394
  ]),
2394
- createElementVNode("div", _hoisted_3$2, [
2395
- __props.actionConfig.settingsItems?.length ? (openBlock(), createBlock(unref(KdsMenuButton), {
2395
+ createElementVNode("div", _hoisted_3$1, [
2396
+ __props.actionConfig.enableSearch ? (openBlock(), createBlock(unref(KdsSearchInput), {
2396
2397
  key: 0,
2398
+ ariaLabel: "Search table",
2399
+ size: "small",
2400
+ "model-value": __props.actionState?.searchTerm ?? "",
2401
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:searchTerm", $event))
2402
+ }, null, 8, ["model-value"])) : createCommentVNode("", true),
2403
+ __props.actionConfig.settingsItems?.length ? (openBlock(), createBlock(unref(KdsMenuButton), {
2404
+ key: 1,
2397
2405
  ariaLabel: "Table settings",
2398
2406
  size: "small",
2399
2407
  variant: "transparent",
@@ -2401,12 +2409,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2401
2409
  items: __props.actionConfig.settingsItems
2402
2410
  }, null, 8, ["items"])) : createCommentVNode("", true),
2403
2411
  showResetButton.value ? (openBlock(), createBlock(unref(KdsButton), {
2404
- key: 1,
2412
+ key: 2,
2405
2413
  ariaLabel: "Reset to Nodeoutput",
2406
2414
  size: "small",
2407
2415
  variant: "transparent",
2408
2416
  "leading-icon": "x-close",
2409
- onClick: _cache[2] || (_cache[2] = ($event) => emit("resetTemporaryView"))
2417
+ onClick: _cache[3] || (_cache[3] = ($event) => emit("resetTemporaryView"))
2410
2418
  })) : createCommentVNode("", true)
2411
2419
  ])
2412
2420
  ], 2)) : createCommentVNode("", true);
@@ -2414,7 +2422,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2414
2422
  }
2415
2423
  });
2416
2424
 
2417
- const TableActionBar = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-4bc7ffb1"]]);
2425
+ const TableActionBar = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-96b1acf9"]]);
2418
2426
 
2419
2427
  const useHeaderMenuItems = ({
2420
2428
  enableSorting,
@@ -2516,7 +2524,6 @@ function tryOnScopeDispose(fn, failSilently) {
2516
2524
  }
2517
2525
  return false;
2518
2526
  }
2519
-
2520
2527
  //#endregion
2521
2528
  //#region utils/is.ts
2522
2529
  const isClient = typeof window !== "undefined" && typeof document !== "undefined";
@@ -2525,7 +2532,6 @@ typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalSc
2525
2532
  //#endregion
2526
2533
  //#region _configurable.ts
2527
2534
  const defaultWindow = isClient ? window : void 0;
2528
-
2529
2535
  //#endregion
2530
2536
  //#region useRafFn/index.ts
2531
2537
  /**
@@ -2536,7 +2542,7 @@ const defaultWindow = isClient ? window : void 0;
2536
2542
  * @param options
2537
2543
  */
2538
2544
  function useRafFn(fn, options = {}) {
2539
- const { immediate = true, fpsLimit = null, window: window$1 = defaultWindow, once = false } = options;
2545
+ const { immediate = true, fpsLimit = null, window = defaultWindow, once = false } = options;
2540
2546
  const isActive = shallowRef(false);
2541
2547
  const intervalLimit = computed(() => {
2542
2548
  const limit = toValue(fpsLimit);
@@ -2544,44 +2550,44 @@ function useRafFn(fn, options = {}) {
2544
2550
  });
2545
2551
  let previousFrameTimestamp = 0;
2546
2552
  let rafId = null;
2547
- function loop(timestamp$1) {
2548
- if (!isActive.value || !window$1) return;
2549
- if (!previousFrameTimestamp) previousFrameTimestamp = timestamp$1;
2550
- const delta = timestamp$1 - previousFrameTimestamp;
2553
+ function loop(timestamp) {
2554
+ if (!isActive.value || !window) return;
2555
+ if (!previousFrameTimestamp) previousFrameTimestamp = timestamp;
2556
+ const delta = timestamp - previousFrameTimestamp;
2551
2557
  if (intervalLimit.value && delta < intervalLimit.value) {
2552
- rafId = window$1.requestAnimationFrame(loop);
2558
+ rafId = window.requestAnimationFrame(loop);
2553
2559
  return;
2554
2560
  }
2555
- previousFrameTimestamp = timestamp$1;
2561
+ previousFrameTimestamp = timestamp;
2556
2562
  fn({
2557
2563
  delta,
2558
- timestamp: timestamp$1
2564
+ timestamp
2559
2565
  });
2560
2566
  if (once) {
2561
2567
  isActive.value = false;
2562
2568
  rafId = null;
2563
2569
  return;
2564
2570
  }
2565
- rafId = window$1.requestAnimationFrame(loop);
2571
+ rafId = window.requestAnimationFrame(loop);
2566
2572
  }
2567
2573
  function resume() {
2568
- if (!isActive.value && window$1) {
2574
+ if (!isActive.value && window) {
2569
2575
  isActive.value = true;
2570
2576
  previousFrameTimestamp = 0;
2571
- rafId = window$1.requestAnimationFrame(loop);
2577
+ rafId = window.requestAnimationFrame(loop);
2572
2578
  }
2573
2579
  }
2574
2580
  function pause() {
2575
2581
  isActive.value = false;
2576
- if (rafId != null && window$1) {
2577
- window$1.cancelAnimationFrame(rafId);
2582
+ if (rafId != null && window) {
2583
+ window.cancelAnimationFrame(rafId);
2578
2584
  rafId = null;
2579
2585
  }
2580
2586
  }
2581
2587
  if (immediate) resume();
2582
2588
  tryOnScopeDispose(pause);
2583
2589
  return {
2584
- isActive: readonly(isActive),
2590
+ isActive: shallowReadonly(isActive),
2585
2591
  pause,
2586
2592
  resume
2587
2593
  };
@@ -2641,8 +2647,8 @@ const useAutoScrollOnRightEdge = ({
2641
2647
  };
2642
2648
 
2643
2649
  const _hoisted_1$5 = ["tabindex"];
2644
- const _hoisted_2$2 = ["title"];
2645
- const _hoisted_3$1 = {
2650
+ const _hoisted_2$2 = { class: "header-text-container" };
2651
+ const _hoisted_3 = {
2646
2652
  key: 0,
2647
2653
  class: "sub-header-text-container"
2648
2654
  };
@@ -2844,17 +2850,16 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2844
2850
  ref: mainHeader,
2845
2851
  class: "main-header"
2846
2852
  }, [
2847
- createElementVNode("div", {
2848
- class: "header-text-container",
2849
- title: __props.column.header
2850
- }, [
2853
+ withDirectives((openBlock(), createElementBlock("div", _hoisted_2$2, [
2851
2854
  createElementVNode("span", {
2852
2855
  ref_key: "headerText",
2853
2856
  ref: headerText
2854
2857
  }, toDisplayString(__props.column.header), 513)
2855
- ], 8, _hoisted_2$2)
2858
+ ])), [
2859
+ [unref(vKdsTooltip), __props.column.header, "truncated"]
2860
+ ])
2856
2861
  ], 512),
2857
- __props.column.subHeader ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
2862
+ __props.column.subHeader ? (openBlock(), createElementBlock("div", _hoisted_3, [
2858
2863
  renderSlot(_ctx.$slots, "subHeader", {
2859
2864
  subHeader: __props.column.subHeader
2860
2865
  }, () => [
@@ -2915,7 +2920,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2915
2920
  }
2916
2921
  });
2917
2922
 
2918
- const HeaderCell = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-284bb866"]]);
2923
+ const HeaderCell = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-6fb1af81"]]);
2919
2924
 
2920
2925
  const _sfc_main$8 = {
2921
2926
  components: {
@@ -3182,7 +3187,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
3182
3187
  createVNode(_component_KdsCheckbox, {
3183
3188
  ref: "selection-checkbox",
3184
3189
  class: "select-checkbox",
3185
- title: "Select all rows",
3190
+ tooltip: "Select all rows",
3186
3191
  "model-value": $props.isSelected,
3187
3192
  disabled: $props.tableConfig.disableSelection,
3188
3193
  "onUpdate:modelValue": $options.onSelect
@@ -3254,7 +3259,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
3254
3259
  }, null, 6)) : createCommentVNode("", true)
3255
3260
  ]);
3256
3261
  }
3257
- const Header = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$2], ["__scopeId", "data-v-14546b00"]]);
3262
+ const Header = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$2], ["__scopeId", "data-v-302dfb0e"]]);
3258
3263
 
3259
3264
  const _hoisted_1$3 = { class: "sticky-container" };
3260
3265
  const buttonRef = "button";
@@ -3313,12 +3318,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
3313
3318
 
3314
3319
  const CellExpandButton = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-f204ddf3"]]);
3315
3320
 
3316
- const _hoisted_1$2 = ["title"];
3317
- const _hoisted_2$1 = {
3321
+ const _hoisted_1$2 = {
3318
3322
  ref: "cell-content",
3319
3323
  class: "cell-content"
3320
3324
  };
3321
- const _hoisted_3 = {
3325
+ const _hoisted_2$1 = {
3322
3326
  key: 3,
3323
3327
  class: "cell-text"
3324
3328
  };
@@ -3333,7 +3337,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3333
3337
  noPaddingTopBottom: { type: Boolean },
3334
3338
  noPaddingLeftRight: { type: Boolean },
3335
3339
  text: {},
3336
- title: {},
3340
+ tooltip: {},
3337
3341
  color: {},
3338
3342
  selectOnMove: { type: Boolean },
3339
3343
  colSizeCssVar: {},
@@ -3454,7 +3458,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3454
3458
  watch(() => props.isToBeExpanded, changeExpandedCellViewIfNecessary);
3455
3459
  onMounted(changeExpandedCellViewIfNecessary);
3456
3460
  return (_ctx, _cache) => {
3457
- return openBlock(), createElementBlock("td", {
3461
+ return withDirectives((openBlock(), createElementBlock("td", {
3458
3462
  class: normalizeClass([
3459
3463
  "data-cell",
3460
3464
  {
@@ -3471,7 +3475,6 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3471
3475
  ...paddingTopBottom.value,
3472
3476
  ...dataCellColorStyle.value
3473
3477
  }),
3474
- title: __props.title === null || __props.isSlotted && !__props.isMissing ? void 0 : __props.title,
3475
3478
  onDblclick: _cache[0] || (_cache[0] = (event) => __props.enableExpand && expandAndSelect(event)),
3476
3479
  onPointerenter: _cache[1] || (_cache[1] = ($event) => isHovered.value = true),
3477
3480
  onPointerleave: _cache[2] || (_cache[2] = ($event) => isHovered.value = false),
@@ -3480,7 +3483,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3480
3483
  onPointerdown: onPointerDown,
3481
3484
  onInput: _cache[4] || (_cache[4] = (val) => emit("input", { value: val, cell: _ctx.$el }))
3482
3485
  }, [
3483
- createElementVNode("div", _hoisted_2$1, [
3486
+ createElementVNode("div", _hoisted_1$2, [
3484
3487
  __props.isEditing ? renderSlot(_ctx.$slots, "editable-cell", {
3485
3488
  key: 0,
3486
3489
  cellElement: _ctx.$el
@@ -3490,7 +3493,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3490
3493
  })) : __props.isSlotted ? renderSlot(_ctx.$slots, "default", {
3491
3494
  key: 2,
3492
3495
  width: __props.size - props.defaultLeftRightPadding * 2 - (showCellExpandButton.value ? unref(EXPAND_BUTTON_WIDTH) : 0)
3493
- }, void 0, true) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.text), 1)),
3496
+ }, void 0, true) : (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(__props.text), 1)),
3494
3497
  showCellExpandButton.value ? (openBlock(), createBlock(CellExpandButton, {
3495
3498
  key: 4,
3496
3499
  toggled: isExpanded.value,
@@ -3498,12 +3501,17 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3498
3501
  onClick: onExpandButtonClick
3499
3502
  }, null, 8, ["toggled"])) : createCommentVNode("", true)
3500
3503
  ], 512)
3501
- ], 46, _hoisted_1$2);
3504
+ ], 38)), [
3505
+ [
3506
+ unref(vKdsTooltip),
3507
+ props.tooltip === null || __props.isSlotted && !__props.isMissing ? void 0 : props.tooltip
3508
+ ]
3509
+ ]);
3502
3510
  };
3503
3511
  }
3504
3512
  });
3505
3513
 
3506
- const CellRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-107a3a8b"]]);
3514
+ const CellRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-2b17463f"]]);
3507
3515
 
3508
3516
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3509
3517
  __name: "Cell",
@@ -3530,7 +3538,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3530
3538
  const unpackedValue = computed(
3531
3539
  () => unpackObjectRepresentation(props.cellData)
3532
3540
  );
3533
- const title = computed(() => {
3541
+ const tooltip = computed(() => {
3534
3542
  const { cellData } = props;
3535
3543
  if (isMissingValue(cellData)) {
3536
3544
  return getMissingValueMessage(cellData);
@@ -3555,7 +3563,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3555
3563
  "is-missing": isMissing.value,
3556
3564
  "is-slotted": __props.column.hasSlotContent ?? false,
3557
3565
  text: unpackedValue.value,
3558
- title: title.value,
3566
+ tooltip: tooltip.value,
3559
3567
  color: color.value,
3560
3568
  "select-on-move": __props.selectOnMove,
3561
3569
  "default-top-bottom-padding": __props.defaultTopBottomPadding,
@@ -3582,7 +3590,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3582
3590
  ])
3583
3591
  };
3584
3592
  })
3585
- ]), 1032, ["is-missing", "is-slotted", "text", "title", "color", "select-on-move", "default-top-bottom-padding", "default-left-right-padding", "no-padding-left-right", "no-padding-top-bottom", "col-size-css-var", "size", "enable-expand", "is-selected", "is-in-cell-selection", "is-to-be-expanded", "is-editing"]);
3593
+ ]), 1032, ["is-missing", "is-slotted", "text", "tooltip", "color", "select-on-move", "default-top-bottom-padding", "default-left-right-padding", "no-padding-left-right", "no-padding-top-bottom", "col-size-css-var", "size", "enable-expand", "is-selected", "is-in-cell-selection", "is-to-be-expanded", "is-editing"]);
3586
3594
  };
3587
3595
  }
3588
3596
  });
@@ -3808,7 +3816,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3808
3816
  createVNode(unref(KdsCheckbox), {
3809
3817
  ref_key: "selectionCheckbox",
3810
3818
  ref: selectionCheckbox,
3811
- title: "Select row",
3819
+ tooltip: "Select row",
3812
3820
  class: "select-checkbox",
3813
3821
  "model-value": __props.isSelected,
3814
3822
  disabled: __props.tableConfig.disableSelection,
@@ -3897,7 +3905,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3897
3905
  }
3898
3906
  });
3899
3907
 
3900
- const Row = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-a60d563f"]]);
3908
+ const Row = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-52ed7e13"]]);
3901
3909
 
3902
3910
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3903
3911
  __name: "CellSelectionOverlay",
@@ -4186,6 +4194,7 @@ const _sfc_main$1 = {
4186
4194
  columnResizeStart: () => true,
4187
4195
  columnResizeEnd: () => true,
4188
4196
  "update:available-width": (newAvailableWidth) => true,
4197
+ "update:searchTerm": (newSearchTerm) => true,
4189
4198
  rowHeightUpdate: (newRowHeight) => true,
4190
4199
  copySelection: (copySelectionParams) => true,
4191
4200
  pasteSelection: (pasteSelectionParams) => true,
@@ -5045,7 +5054,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
5045
5054
  key: 0,
5046
5055
  ref: "actionBar",
5047
5056
  "table-sizes": $props.tableState.tableSizes,
5048
- "view-type": $props.actionState?.viewType,
5057
+ "action-state": $props.actionState,
5049
5058
  "row-label": $props.tableConfig.rowLabel,
5050
5059
  "show-table-size": $props.tableConfig.showTableSize,
5051
5060
  "action-config": $props.actionConfig,
@@ -5055,19 +5064,20 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
5055
5064
  columns: $props.columns,
5056
5065
  onResetTemporaryView: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("resetTemporaryView")),
5057
5066
  onColumnFilter: _cache[1] || (_cache[1] = (colInd, value) => _ctx.$emit("columnFilter", colInd, value)),
5058
- onOnColumnSort: $options.onActionBarColumnSort
5059
- }, null, 8, ["table-sizes", "view-type", "row-label", "show-table-size", "action-config", "col-sort-values", "col-filter-values", "sort-control-options", "columns", "onOnColumnSort"])) : createCommentVNode("", true),
5067
+ onOnColumnSort: $options.onActionBarColumnSort,
5068
+ "onUpdate:searchTerm": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:searchTerm", $event))
5069
+ }, null, 8, ["table-sizes", "action-state", "row-label", "show-table-size", "action-config", "col-sort-values", "col-filter-values", "sort-control-options", "columns", "onOnColumnSort"])) : createCommentVNode("", true),
5060
5070
  createElementVNode("table", {
5061
5071
  ref: "wrapper",
5062
5072
  tabindex: -1,
5063
- onPointerleave: _cache[11] || (_cache[11] = (...args) => $setup.selectCellsOnMove.setFalse && $setup.selectCellsOnMove.setFalse(...args)),
5064
- onPointerdownPassive: _cache[12] || (_cache[12] = withModifiers(($event) => $event.button === 0 && $setup.selectCellsOnMove.setTrue(), ["stop"])),
5065
- onPointerupPassive: _cache[13] || (_cache[13] = ($event) => $event.button === 0 && $setup.selectCellsOnMove.setFalse()),
5073
+ onPointerleave: _cache[12] || (_cache[12] = (...args) => $setup.selectCellsOnMove.setFalse && $setup.selectCellsOnMove.setFalse(...args)),
5074
+ onPointerdownPassive: _cache[13] || (_cache[13] = withModifiers(($event) => $event.button === 0 && $setup.selectCellsOnMove.setTrue(), ["stop"])),
5075
+ onPointerupPassive: _cache[14] || (_cache[14] = ($event) => $event.button === 0 && $setup.selectCellsOnMove.setFalse()),
5066
5076
  onKeydown: [
5067
- _cache[14] || (_cache[14] = withKeys(withModifiers((...args) => $setup.handleCopyOnKeydown && $setup.handleCopyOnKeydown(...args), ["ctrl", "shift", "exact"]), ["c"])),
5068
- _cache[15] || (_cache[15] = withKeys(withModifiers((...args) => $setup.handleCopyOnKeydown && $setup.handleCopyOnKeydown(...args), ["meta", "shift", "exact"]), ["c"])),
5069
- _cache[16] || (_cache[16] = withKeys(withModifiers((...args) => $setup.handleDeleteSelection && $setup.handleDeleteSelection(...args), ["exact"]), ["delete"])),
5070
- _cache[17] || (_cache[17] = withKeys(withModifiers((...args) => $setup.clearCellSelectionAndStopPropagation && $setup.clearCellSelectionAndStopPropagation(...args), ["exact"]), ["escape"]))
5077
+ _cache[15] || (_cache[15] = withKeys(withModifiers((...args) => $setup.handleCopyOnKeydown && $setup.handleCopyOnKeydown(...args), ["ctrl", "shift", "exact"]), ["c"])),
5078
+ _cache[16] || (_cache[16] = withKeys(withModifiers((...args) => $setup.handleCopyOnKeydown && $setup.handleCopyOnKeydown(...args), ["meta", "shift", "exact"]), ["c"])),
5079
+ _cache[17] || (_cache[17] = withKeys(withModifiers((...args) => $setup.handleDeleteSelection && $setup.handleDeleteSelection(...args), ["exact"]), ["delete"])),
5080
+ _cache[18] || (_cache[18] = withKeys(withModifiers((...args) => $setup.clearCellSelectionAndStopPropagation && $setup.clearCellSelectionAndStopPropagation(...args), ["exact"]), ["escape"]))
5071
5081
  ]
5072
5082
  }, [
5073
5083
  createVNode(_component_TableCore, {
@@ -5086,13 +5096,13 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
5086
5096
  "current-row-height": $options.currentRowHeight,
5087
5097
  "new-column-button-width": $setup.newColumnButtonWidth,
5088
5098
  onScrollerUpdate: $options.onScroll,
5089
- "onUpdate:availableWidth": _cache[8] || (_cache[8] = ($event) => _ctx.$emit("update:available-width", $event)),
5099
+ "onUpdate:availableWidth": _cache[9] || (_cache[9] = ($event) => _ctx.$emit("update:available-width", $event)),
5090
5100
  onMoveSelection: $options.onKeyboardMoveSelection,
5091
5101
  onClearSelection: $setup.clearCellSelection,
5092
5102
  onExpandSelectedCell: $options.expandSelectedCell,
5093
5103
  onStartEditing: $options.onStartEditingCell,
5094
- onBodyFocusin: _cache[9] || (_cache[9] = ($event) => $setup.changeFocus(true)),
5095
- onBodyFocusout: _cache[10] || (_cache[10] = ($event) => $options.onTableBodyFocusOut())
5104
+ onBodyFocusin: _cache[10] || (_cache[10] = ($event) => $setup.changeFocus(true)),
5105
+ onBodyFocusout: _cache[11] || (_cache[11] = ($event) => $options.onTableBodyFocusOut())
5096
5106
  }, {
5097
5107
  row: withCtx(({ row, groupInd, rowInd }) => [
5098
5108
  createVNode(_component_Row, {
@@ -5136,10 +5146,10 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
5136
5146
  colInd: ind,
5137
5147
  initialValue: $setup.editingCellInitialValue,
5138
5148
  cellElement,
5139
- onKeydown: _cache[2] || (_cache[2] = (event) => $setup.createEditingCellKeydownHandler({
5149
+ onKeydown: _cache[3] || (_cache[3] = (event) => $setup.createEditingCellKeydownHandler({
5140
5150
  moveSelection: $options.onKeyboardMoveSelectionFromEditingCell
5141
5151
  })(event)),
5142
- onClickAway: _cache[3] || (_cache[3] = (...args) => $setup.stopEditingCell && $setup.stopEditingCell(...args))
5152
+ onClickAway: _cache[4] || (_cache[4] = (...args) => $setup.stopEditingCell && $setup.stopEditingCell(...args))
5143
5153
  }, void 0, true)
5144
5154
  ]),
5145
5155
  _: 2
@@ -5192,11 +5202,11 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
5192
5202
  onMoveDownFromHeaderCell: $options.onMoveDownFromHeaderCell,
5193
5203
  onHeaderCellSelect: $options.onHeaderCellSelect,
5194
5204
  onHeaderCellDeselect: $options.onHeaderCellDeselect,
5195
- onHeaderCellStartEditing: _cache[4] || (_cache[4] = (columnIndex, initialValue) => _ctx.$emit("headerCellStartEditing", columnIndex, initialValue)),
5205
+ onHeaderCellStartEditing: _cache[5] || (_cache[5] = (columnIndex, initialValue) => _ctx.$emit("headerCellStartEditing", columnIndex, initialValue)),
5196
5206
  "onUpdate:newColumnButtonWidth": $options.onUpdateNewColumnButtonWidth,
5197
5207
  onNewColumnButtonClick: $options.onNewColumnButtonClick,
5198
- onSelectionKeydownDown: _cache[5] || (_cache[5] = ($event) => $options.onHeaderSelectionKeydownDown()),
5199
- onNewColumnButtonKeydownLeft: _cache[6] || (_cache[6] = ($event) => $options.onMoveIntoBodyFromRight())
5208
+ onSelectionKeydownDown: _cache[6] || (_cache[6] = ($event) => $options.onHeaderSelectionKeydownDown()),
5209
+ onNewColumnButtonKeydownLeft: _cache[7] || (_cache[7] = ($event) => $options.onMoveIntoBodyFromRight())
5200
5210
  }, {
5201
5211
  subHeader: withCtx((slotProps) => [
5202
5212
  renderSlot(_ctx.$slots, "subHeader", normalizeProps(guardReactiveProps(slotProps)), void 0, true)
@@ -5221,7 +5231,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
5221
5231
  key: 0,
5222
5232
  ref: "new-row-button",
5223
5233
  onClick: $options.onNewRowButtonClick,
5224
- onPointerdown: _cache[7] || (_cache[7] = withModifiers(() => {
5234
+ onPointerdown: _cache[8] || (_cache[8] = withModifiers(() => {
5225
5235
  }, ["stop"])),
5226
5236
  onKeydownUp: $options.onMoveIntoBodyFromBottom
5227
5237
  }, null, 8, ["onClick", "onKeydownUp"])) : createCommentVNode("", true)
@@ -5240,7 +5250,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
5240
5250
  ], 544)
5241
5251
  ]);
5242
5252
  }
5243
- const TableUI = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-ac1ccbfe"]]);
5253
+ const TableUI = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-51f46838"]]);
5244
5254
 
5245
5255
  const useTableReady = ({ onReady }) => {
5246
5256
  const autoSizesInitialized = ref(false);