@webitel/ui-sdk 26.4.59 → 26.4.61

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 (79) hide show
  1. package/dist/{index-4AObAMrT.js → index-2RuzTRCZ.js} +1 -1
  2. package/dist/{index-B2ahqrSa.js → index-FB11lRZm.js} +1 -1
  3. package/dist/{install-B0iOKX0v.js → install-BTw4h6La.js} +37 -37
  4. package/dist/{isObject-CaHCOTs0.js → isObject-BFrSZfip.js} +1 -1
  5. package/dist/ui-sdk.css +1 -1
  6. package/dist/ui-sdk.js +1 -1
  7. package/dist/ui-sdk.umd.cjs +42 -42
  8. package/dist/{useVidstackSrc-BVksdC1Q.js → useVidstackSrc-DggVBhQy.js} +1 -1
  9. package/dist/{vidstack-Bq6c3Bam-DJ77rwW2.js → vidstack-Bq6c3Bam-Brto8BVf.js} +3 -3
  10. package/dist/{vidstack-D2pY00kU-DSXpPJAP.js → vidstack-D2pY00kU-Cpy-wek9.js} +3 -3
  11. package/dist/{vidstack-DDXt6fpN-DTaedTya.js → vidstack-DDXt6fpN-BqFmvH0M.js} +2 -2
  12. package/dist/{vidstack-D_-9AA6_-SN2-peBz.js → vidstack-D_-9AA6_-DJIX4G2R.js} +2 -2
  13. package/dist/{vidstack-DqAw8m9J-CGZ2CyEH.js → vidstack-DqAw8m9J-DBBU_lk_.js} +1 -1
  14. package/dist/{vidstack-audio-o-VP4-ih.js → vidstack-audio-C4CyIInn.js} +2 -2
  15. package/dist/{vidstack-dash-CfHfzOta.js → vidstack-dash-uK2dDz8T.js} +4 -4
  16. package/dist/{vidstack-google-cast-CYTuybDG.js → vidstack-google-cast-C1HYF_2j.js} +4 -4
  17. package/dist/{vidstack-hls-XpsWuYAn.js → vidstack-hls-Bn3hnf9h.js} +4 -4
  18. package/dist/{vidstack-video-BL25jcm9.js → vidstack-video-Boo7uoZI.js} +3 -3
  19. package/dist/{vidstack-vimeo-GP7sxbnF.js → vidstack-vimeo-PNsaLSEO.js} +4 -4
  20. package/dist/{vidstack-youtube-nWpRszo5.js → vidstack-youtube-CtY98HNF.js} +3 -3
  21. package/dist/{wt-action-bar-Bh4_05bu.js → wt-action-bar-DQqNd2mj.js} +1 -1
  22. package/dist/{wt-button-select-X-ShYhT7.js → wt-button-select-CzWp6E7X.js} +1 -1
  23. package/dist/{wt-call-media-action-gHRi2wLG.js → wt-call-media-action-BMKcEg3T.js} +1 -1
  24. package/dist/{wt-chat-emoji-zXNZdzpq.js → wt-chat-emoji-CPpRiG3z.js} +2 -2
  25. package/dist/{wt-confirm-dialog-CDh-yMD8.js → wt-confirm-dialog-BQ_tHChS.js} +1 -1
  26. package/dist/{wt-context-menu-CcFkkEjZ.js → wt-context-menu-D9A52yob.js} +1 -1
  27. package/dist/{wt-copy-action-Ii6iRvn5.js → wt-copy-action-SgnK45r-.js} +1 -1
  28. package/dist/{wt-datepicker-BmpoXoG1.js → wt-datepicker-Cpmte3rg.js} +1 -1
  29. package/dist/{wt-display-chip-items-B_-jNxBL.js → wt-display-chip-items-DL5Q6Obr.js} +1 -1
  30. package/dist/{wt-dual-panel-B3YFzVyX.js → wt-dual-panel-Cbp3-6Fz.js} +1 -1
  31. package/dist/{wt-dummy-BCaleMs_.js → wt-dummy-CQoomGSQ.js} +1 -1
  32. package/dist/{wt-error-page-BklEfHeX.js → wt-error-page-ND0BquL3.js} +1 -1
  33. package/dist/{wt-expansion-card-DKZ9wZFl.js → wt-expansion-card-HYWe9uzx.js} +1 -1
  34. package/dist/{wt-expansion-panel-XpKYa9a5.js → wt-expansion-panel-CDn9iF8y.js} +1 -1
  35. package/dist/{wt-filters-panel-wrapper-CsS1gC7U.js → wt-filters-panel-wrapper-DRzlDKj3.js} +1 -1
  36. package/dist/{wt-galleria-tQj633qr.js → wt-galleria-B_9-n0Iv.js} +1 -1
  37. package/dist/{wt-inline-add-panel-DkO0Rpwn.js → wt-inline-add-panel-D4vbb7DT.js} +1 -1
  38. package/dist/{wt-navigation-menu-CUqZUgHl.js → wt-navigation-menu-CoABCwJg.js} +1 -1
  39. package/dist/{wt-notifications-bar-Do3j7V_z.js → wt-notifications-bar-BHwh2Uhl.js} +2 -2
  40. package/dist/{wt-pagination-ckWVcP9K.js → wt-pagination-CaBK5kAI.js} +1 -1
  41. package/dist/{wt-player-Vog1SmVh.js → wt-player-CFAv3Bth.js} +2 -2
  42. package/dist/{wt-screen-recordings-action-BfkNm9Xz.js → wt-screen-recordings-action-Bkn5QjBL.js} +1 -1
  43. package/dist/{wt-search-bar-DUwcrW9O.js → wt-search-bar-86T7O7I2.js} +1 -1
  44. package/dist/{wt-selection-popup-DA-3syzZ.js → wt-selection-popup-ZJ0J-VDP.js} +1 -1
  45. package/dist/{wt-start-page-B25F20pv.js → wt-start-page-CbQDXOdl.js} +1 -1
  46. package/dist/{wt-status-select-DHlo8nJg.js → wt-status-select-DwWcH1x9.js} +1 -1
  47. package/dist/{wt-stepper-tAlH7GDw.js → wt-stepper-fv8Im1Gl.js} +1 -1
  48. package/dist/{wt-table-DKfEuw12.js → wt-table-Clbp4lq3.js} +87 -84
  49. package/dist/{wt-table-actions-CebP5mD2.js → wt-table-actions-DiyOBZhY.js} +1 -1
  50. package/dist/{wt-table-column-select-ClA_A3dE.js → wt-table-column-select-D3oCCDNW.js} +2 -2
  51. package/dist/{wt-tabs-DIovQBiL.js → wt-tabs-B8eLeduC.js} +1 -1
  52. package/dist/{wt-tags-input-Dd94IUJV.js → wt-tags-input-CbaLK4J8.js} +2 -2
  53. package/dist/{wt-timepicker-CTnvn5Da.js → wt-timepicker-Dwf0Hdhv.js} +1 -1
  54. package/dist/{wt-tree-DVAY3hsy.js → wt-tree-CwK_7_2I.js} +2 -2
  55. package/dist/{wt-tree-table-BPB9NyIW.js → wt-tree-table-DxhPCn7z.js} +1 -1
  56. package/dist/{wt-type-extension-value-input-CenH0oDA.js → wt-type-extension-value-input-BcH58urY.js} +2 -2
  57. package/dist/{wt-vidstack-player-6aMihcK5.js → wt-vidstack-player-BpmqdjlG.js} +10 -10
  58. package/package.json +1 -1
  59. package/src/components/wt-table/wt-table.vue +14 -0
  60. package/src/locale/en/en.js +1 -0
  61. package/src/locale/es/es.js +1 -0
  62. package/src/locale/kz/kz.js +1 -0
  63. package/src/locale/pl/pl.js +1 -0
  64. package/src/locale/ro/ro.js +1 -0
  65. package/src/locale/ru/ru.js +1 -0
  66. package/src/locale/uk/uk.js +1 -0
  67. package/src/locale/uz/uz.js +1 -0
  68. package/src/locale/vi/vi.js +1 -0
  69. package/types/locale/en/en.d.ts +1 -0
  70. package/types/locale/es/es.d.ts +1 -0
  71. package/types/locale/i18n.d.ts +9 -0
  72. package/types/locale/index.d.ts +9 -0
  73. package/types/locale/kz/kz.d.ts +1 -0
  74. package/types/locale/pl/pl.d.ts +1 -0
  75. package/types/locale/ro/ro.d.ts +1 -0
  76. package/types/locale/ru/ru.d.ts +1 -0
  77. package/types/locale/uk/uk.d.ts +1 -0
  78. package/types/locale/uz/uz.d.ts +1 -0
  79. package/types/locale/vi/vi.d.ts +1 -0
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as r, createElementBlock as l, openBlock as o, normalizeClass as i, createElementVNode as s, renderSlot as c, createVNode as p } from "vue";
2
- import { _ as d } from "./install-B0iOKX0v.js";
2
+ import { _ as d } from "./install-BTw4h6La.js";
3
3
  const f = {
4
4
  name: "FiltersPanelWrapper",
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { ref as k, onMounted as P, onUnmounted as D, useAttrs as Z, computed as $, resolveComponent as w, createBlock as A, openBlock as y, mergeProps as j, unref as i, withCtx as s, createVNode as a, createTextVNode as x, toDisplayString as g, createElementVNode as m, renderSlot as J, defineComponent as K, mergeModels as B, useModel as S, watch as F, nextTick as Q, createElementBlock as L, Fragment as W, createCommentVNode as q, normalizeClass as M, withDirectives as X, vShow as Y } from "vue";
2
- import { _ as ee, B as te } from "./install-B0iOKX0v.js";
2
+ import { _ as ee, B as te } from "./install-BTw4h6La.js";
3
3
  const le = () => {
4
4
  const e = k(!1), c = () => {
5
5
  e.value ? l() : v();
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as a, resolveComponent as r, createElementBlock as m, openBlock as p, withModifiers as u, normalizeClass as _, renderSlot as f, createElementVNode as b, createVNode as i } from "vue";
2
- import { _ as w } from "./install-B0iOKX0v.js";
2
+ import { _ as w } from "./install-BTw4h6La.js";
3
3
  const k = { class: "wt-inline-add-panel__actions" }, v = /* @__PURE__ */ a({
4
4
  __name: "wt-inline-add-panel",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as h, createElementBlock as l, openBlock as c, Fragment as w, renderList as b, createElementVNode as p, withDirectives as N, normalizeClass as C, createVNode as _, createTextVNode as k, toDisplayString as $, renderSlot as S, vShow as E, withCtx as A, ref as L, computed as v } from "vue";
2
- import { _ as g } from "./install-B0iOKX0v.js";
2
+ import { _ as g } from "./install-BTw4h6La.js";
3
3
  const V = { class: "nav-menu__category nav-menu-lvl-1" }, B = ["onClick"], D = {
4
4
  __name: "nav-menu-lvl-1",
5
5
  props: {
@@ -1,6 +1,6 @@
1
- import { i as p, e as _ } from "./isObject-CaHCOTs0.js";
1
+ import { i as p, e as _ } from "./isObject-BFrSZfip.js";
2
2
  import { resolveComponent as v, createElementBlock as d, openBlock as c, createVNode as B, TransitionGroup as $, withCtx as w, Fragment as g, renderList as x, createBlock as N, createTextVNode as b, toDisplayString as y } from "vue";
3
- import { _ as k } from "./install-B0iOKX0v.js";
3
+ import { _ as k } from "./install-BTw4h6La.js";
4
4
  const C = (t) => p(t) && (t.entity || t.module), i = (t) => (o) => (...n) => {
5
5
  if (C(n[0])) {
6
6
  const u = n[0], { app: f = t, entity: s = "", module: r = "" } = u, e = /* @__PURE__ */ new Date(), a = window?.location?.href || "non-browser env";
@@ -1,4 +1,4 @@
1
- import { _ as u, D as h } from "./install-B0iOKX0v.js";
1
+ import { _ as u, D as h } from "./install-BTw4h6La.js";
2
2
  import { resolveComponent as r, resolveDirective as g, createElementBlock as m, openBlock as z, createElementVNode as o, createVNode as a, toDisplayString as b, withDirectives as d } from "vue";
3
3
  const t = 10, f = {
4
4
  name: "WtPagination",
@@ -1,6 +1,6 @@
1
1
  import { resolveComponent as w, createElementBlock as l, openBlock as t, createVNode as o, defineComponent as p, toRefs as k, unref as z, normalizeClass as C, createElementVNode as _, createBlock as y, createCommentVNode as u } from "vue";
2
- import { u as E, T as x } from "./useVidstackSrc-BVksdC1Q.js";
3
- import { _ as i, E as f } from "./install-B0iOKX0v.js";
2
+ import { u as E, T as x } from "./useVidstackSrc-DggVBhQy.js";
3
+ import { _ as i, E as f } from "./install-BTw4h6La.js";
4
4
  import { _ as b } from "./wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js";
5
5
  const S = {}, V = { class: "mute-button" };
6
6
  function M(n, d) {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as x, computed as h, resolveComponent as i, createElementBlock as C, openBlock as r, createVNode as a, createElementVNode as p, withCtx as l, createTextVNode as k, toDisplayString as _, createBlock as y, createCommentVNode as E, unref as S } from "vue";
2
2
  import { E as m } from "./engineCallFileType-yaadA7-2.js";
3
3
  import { E as T } from "./displayText-Cbh4IOfM.js";
4
- import { _ as B } from "./install-B0iOKX0v.js";
4
+ import { _ as B } from "./install-BTw4h6La.js";
5
5
  const N = { class: "wt-screen-recordings-action" }, V = { class: "wt-screen-recordings-action__option" }, F = /* @__PURE__ */ x({
6
6
  __name: "wt-screen-recordings-action",
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as O, toRefs as $, computed as _, resolveComponent as o, resolveDirective as A, createBlock as s, openBlock as d, unref as a, normalizeClass as E, createSlots as U, withCtx as n, createVNode as p, createElementVNode as j, createCommentVNode as m, renderSlot as z, createTextVNode as K, toDisplayString as W, withDirectives as H } from "vue";
2
- import { z as P, D as R, _ as T } from "./install-B0iOKX0v.js";
2
+ import { z as P, D as R, _ as T } from "./install-BTw4h6La.js";
3
3
  const q = { class: "wt-search-bar__icon-controls" }, F = /* @__PURE__ */ O({
4
4
  __name: "wt-search-bar",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as i, resolveDirective as $, createBlock as r, openBlock as t, mergeProps as x, withCtx as c, createVNode as f, createTextVNode as a, toDisplayString as s, unref as w, createElementVNode as h, renderSlot as k, createElementBlock as d, Fragment as z, renderList as D, normalizeClass as E, createCommentVNode as p, withDirectives as I } from "vue";
2
- import { _ as O, B as P } from "./install-B0iOKX0v.js";
2
+ import { _ as O, B as P } from "./install-BTw4h6La.js";
3
3
  const j = { class: "wt-selection-popup__options" }, A = ["onClick"], F = { class: "wt-selection-popup__item-header typo-subtitle-2" }, L = {
4
4
  key: 1,
5
5
  class: "popup-options__item-text"
@@ -1,5 +1,5 @@
1
1
  import { inject as y, resolveComponent as _, createElementBlock as d, openBlock as a, createElementVNode as o, createBlock as u, createCommentVNode as v, createTextVNode as g, toDisplayString as l, createVNode as N, withCtx as f, defineComponent as k, provide as w, computed as m, Fragment as E, renderList as S } from "vue";
2
- import { N as n, _ as p } from "./install-B0iOKX0v.js";
2
+ import { N as n, _ as p } from "./install-BTw4h6La.js";
3
3
  n.env.NODE_ENV;
4
4
  n.env.NODE_ENV;
5
5
  n.env.NODE_ENV;
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as u, createBlock as d, openBlock as f, withCtx as c, createVNode as i } from "vue";
2
- import { _ as h } from "./install-B0iOKX0v.js";
2
+ import { _ as h } from "./install-BTw4h6La.js";
3
3
  const s = Object.freeze({
4
4
  ONLINE: "online",
5
5
  PAUSE: "pause",
@@ -1,5 +1,5 @@
1
1
  import { computed as i, resolveComponent as w, createElementBlock as s, openBlock as p, createElementVNode as r, renderSlot as n, Fragment as h, renderList as f, createCommentVNode as y, createVNode as S, normalizeClass as C, withCtx as N, createTextVNode as V, toDisplayString as d } from "vue";
2
- import { _ as k } from "./install-B0iOKX0v.js";
2
+ import { _ as k } from "./install-BTw4h6La.js";
3
3
  const x = { class: "wt-stepper" }, b = { class: "wt-stepper-header" }, g = { class: "wt-stepper-steps" }, B = { class: "wt-stepper-steps__wrapper" }, E = { class: "wt-stepper-description" }, $ = {
4
4
  __name: "wt-stepper",
5
5
  props: {
@@ -1,17 +1,17 @@
1
- import { defineComponent as ee, useSlots as te, useTemplateRef as oe, ref as H, computed as _, onMounted as le, onUnmounted as ae, resolveComponent as L, resolveDirective as re, createBlock as f, openBlock as c, createSlots as U, withCtx as i, createCommentVNode as b, createElementBlock as W, createVNode as V, withModifiers as ne, Fragment as se, renderList as de, createElementVNode as $, normalizeStyle as ie, renderSlot as h, createTextVNode as q, toDisplayString as K, withDirectives as ce, nextTick as ue } from "vue";
2
- import { B as pe, F as fe, _ as me } from "./install-B0iOKX0v.js";
3
- const ye = (r, E) => {
1
+ import { defineComponent as oe, useSlots as le, useTemplateRef as ae, ref as H, computed as h, onMounted as re, onUnmounted as ne, resolveComponent as L, resolveDirective as se, createBlock as m, openBlock as c, createSlots as U, withCtx as i, createCommentVNode as b, createElementBlock as W, createVNode as V, withModifiers as de, Fragment as ie, renderList as ce, createElementVNode as $, normalizeStyle as ue, renderSlot as S, createTextVNode as q, toDisplayString as K, withDirectives as pe, nextTick as fe } from "vue";
2
+ import { B as me, S as G, F as ye, _ as be } from "./install-BTw4h6La.js";
3
+ const we = (r, C) => {
4
4
  let o = null, p = null, w = null, d = !1;
5
5
  const v = () => {
6
6
  if (!p || !d || w === null) return;
7
- const l = p.getBoundingClientRect(), s = 150, C = 1, I = 25, T = w - l.left, F = l.right - w, B = (y) => y < 0.5 ? 4 * y * y * y : 1 - (-2 * y + 2) ** 3 / 2;
8
- let S = 0, x = 0;
9
- if (T < s && p.scrollLeft > 0 ? (S = -1, x = T) : F < s && (S = 1, x = F), S !== 0) {
10
- const y = 1 - x / s, O = B(y), A = C + (I - C) * O;
11
- p.scrollLeft += A * S, o = requestAnimationFrame(v);
7
+ const l = p.getBoundingClientRect(), s = 150, E = 1, I = 25, F = w - l.left, T = l.right - w, R = (f) => f < 0.5 ? 4 * f * f * f : 1 - (-2 * f + 2) ** 3 / 2;
8
+ let x = 0, B = 0;
9
+ if (F < s && p.scrollLeft > 0 ? (x = -1, B = F) : T < s && (x = 1, B = T), x !== 0) {
10
+ const f = 1 - B / s, O = R(f), A = E + (I - E) * O;
11
+ p.scrollLeft += A * x, o = requestAnimationFrame(v);
12
12
  } else
13
13
  o = null;
14
- }, k = (l) => {
14
+ }, _ = (l) => {
15
15
  l.dataTransfer.effectAllowed = "move";
16
16
  const s = l.target.cloneNode(!0);
17
17
  s.style.position = "absolute", s.style.top = "-9999px", s.style.background = "var(--p-datatable-header-cell-drag-background)", s.style.width = `${l.target.offsetWidth}px`, document.body.appendChild(s), l.dataTransfer.setDragImage(s, l.offsetX, l.offsetY), setTimeout(() => {
@@ -19,24 +19,24 @@ const ye = (r, E) => {
19
19
  }, 0), d = !0, p || (p = r.value?.$el?.querySelector(
20
20
  ".p-datatable-table-container"
21
21
  ));
22
- }, m = (l) => {
22
+ }, y = (l) => {
23
23
  w = l.clientX, !o && d && (o = requestAnimationFrame(v));
24
- }, R = () => {
24
+ }, k = () => {
25
25
  o && (cancelAnimationFrame(o), o = null), d = !1, w = null, p = null;
26
26
  };
27
27
  return {
28
28
  addTableDragListener: () => {
29
- if (!E) return;
29
+ if (!C) return;
30
30
  const l = r.value?.$el;
31
- l?.addEventListener("dragstart", k), l?.addEventListener("dragover", m), l?.addEventListener("dragend", R);
31
+ l?.addEventListener("dragstart", _), l?.addEventListener("dragover", y), l?.addEventListener("dragend", k);
32
32
  },
33
33
  removeTableDragListener: () => {
34
- if (!E) return;
34
+ if (!C) return;
35
35
  const l = r.value?.$el;
36
- l?.removeEventListener("dragstart", k), l?.removeEventListener("dragover", m), l?.removeEventListener("dragend", R);
36
+ l?.removeEventListener("dragstart", _), l?.removeEventListener("dragover", y), l?.removeEventListener("dragend", k);
37
37
  }
38
38
  };
39
- }, be = { class: "wt-table__th__content typo-body-1-bold" }, we = { class: "wt-table__td__actions" }, ve = 10, ge = 40, he = /* @__PURE__ */ ee({
39
+ }, ve = { class: "wt-table__th__content typo-body-1-bold" }, ge = { class: "wt-table__td__actions" }, he = 10, Se = 40, xe = /* @__PURE__ */ oe({
40
40
  __name: "wt-table",
41
41
  props: {
42
42
  headers: { default: () => [] },
@@ -59,7 +59,7 @@ const ye = (r, E) => {
59
59
  lazy: { type: Boolean, default: !1 },
60
60
  onLoading: {},
61
61
  loading: { type: Boolean },
62
- itemSize: { default: ge },
62
+ itemSize: { default: Se },
63
63
  value: {},
64
64
  rows: {},
65
65
  first: {},
@@ -134,8 +134,8 @@ const ye = (r, E) => {
134
134
  "column-resize",
135
135
  "column-reorder"
136
136
  ],
137
- setup(r, { emit: E }) {
138
- const o = r, { t: p } = pe(), w = te(), d = E, v = oe("table"), k = H(0), m = H([]), { addTableDragListener: R, removeTableDragListener: P } = ye(
137
+ setup(r, { emit: C }) {
138
+ const o = r, { t: p } = me(), w = le(), d = C, v = ae("table"), _ = H(0), y = H([]), { addTableDragListener: k, removeTableDragListener: P } = we(
139
139
  v,
140
140
  o.reorderableColumns
141
141
  ), N = [
@@ -143,30 +143,32 @@ const ye = (r, E) => {
143
143
  "row-reorder",
144
144
  "row-actions",
145
145
  "row-expander"
146
- ], l = _(() => o.selectable ? o.selected || o.data.filter((e) => e._isSelected) : []), s = _(() => o.headers.map((e) => !e.text && e.locale ? {
146
+ ], l = h(() => o.selectable ? o.selected || o.data.filter((e) => e._isSelected) : []), s = h(() => o.headers.map((e) => !e.text && e.locale ? {
147
147
  ...e,
148
148
  text: typeof e.locale == "string" ? p(e.locale) : p(...e.locale)
149
- } : e)), C = (e) => e.show === !1, I = (e) => {
149
+ } : e)), E = (e) => e.show === !1, I = (e) => {
150
150
  const n = e.width || "140px";
151
151
  return o.lazy ? {
152
152
  width: n
153
153
  } : {
154
154
  minWidth: n
155
155
  };
156
- }, T = _(() => Object.keys(w).some((e) => e.includes("-footer"))), F = _(() => Object.keys(w).some((e) => e === "footer")), B = _(() => l.value.length === o.data.length && o.data.length > 0), S = ({ sortField: e }) => {
156
+ }, F = h(() => Object.keys(w).some((e) => e.includes("-footer"))), T = h(() => Object.keys(w).some((e) => e === "footer")), R = h(() => l.value.length === o.data.length && o.data.length > 0), x = h(() => o.headers.find(
157
+ (a) => a.sort === G.ASC || a.sort === G.DESC
158
+ )?.field ?? null), B = ({ sortField: e }) => {
157
159
  const a = s.value.find((u) => u.field === e);
158
- if (!x(a)) return;
159
- const n = fe(a.sort);
160
+ if (!f(a)) return;
161
+ const n = ye(a.sort);
160
162
  d("sort", a, n);
161
- }, x = ({ sort: e }) => o.sortable && e !== void 0, y = () => {
162
- o.selected ? B.value ? d("update:selected", []) : d("update:selected", [
163
+ }, f = ({ sort: e }) => o.sortable && e !== void 0, O = () => {
164
+ o.selected ? R.value ? d("update:selected", []) : d("update:selected", [
163
165
  ...o.data
164
- ]) : B.value ? o.data.forEach((e) => {
166
+ ]) : R.value ? o.data.forEach((e) => {
165
167
  e._isSelected = !1;
166
168
  }) : o.data.forEach((e) => {
167
169
  e._isSelected = !0;
168
170
  });
169
- }, O = (e, a) => {
171
+ }, A = (e, a) => {
170
172
  o.selected ? a ? d("update:selected", [
171
173
  ...l.value,
172
174
  e
@@ -174,32 +176,32 @@ const ye = (r, E) => {
174
176
  "update:selected",
175
177
  l.value.filter((n) => n !== e)
176
178
  ) : e._isSelected = !e._isSelected;
177
- }, A = ({ element: e }) => {
179
+ }, X = ({ element: e }) => {
178
180
  const a = e.getAttribute("data-column-field"), n = getComputedStyle(e), u = Number.parseFloat(n.paddingLeft), z = Number.parseFloat(n.paddingRight), D = e.offsetWidth - u - z;
179
181
  d("column-resize", {
180
182
  columnName: a,
181
183
  columnWidth: `${D}px`
182
184
  });
183
- }, G = () => {
185
+ }, j = () => {
184
186
  const a = v.value.$el.querySelector(
185
187
  ".p-datatable-table-container"
186
188
  ).scrollLeft, n = v.value.d_columnOrder.filter(
187
189
  (u) => !N.includes(u)
188
190
  );
189
- k.value += 1, d("column-reorder", n), ue(() => {
190
- R(), v.value.$el.querySelector(".p-datatable-table-container").scrollLeft = a;
191
+ _.value += 1, d("column-reorder", n), fe(() => {
192
+ k(), v.value.$el.querySelector(".p-datatable-table-container").scrollLeft = a;
191
193
  });
192
- }, X = (e) => m.value.some((a) => a?.id === e?.id), j = (e) => {
193
- const a = m.value.findIndex((n) => n.id === e.id);
194
- a !== -1 ? m.value.splice(a, 1) : m.value.push(e);
195
- }, Z = _(() => {
194
+ }, Z = (e) => y.value.some((a) => a?.id === e?.id), Y = (e) => {
195
+ const a = y.value.findIndex((n) => n.id === e.id);
196
+ a !== -1 ? y.value.splice(a, 1) : y.value.push(e);
197
+ }, J = h(() => {
196
198
  if (o.lazy)
197
199
  return {
198
200
  lazy: o.lazy,
199
201
  onLazyLoad: o.onLoading,
200
202
  itemSize: o.itemSize,
201
203
  // The height/width of item according to orientation
202
- numToleratedItems: ve,
204
+ numToleratedItems: he,
203
205
  // Number of items to pre-render outside visible area
204
206
  totalRecords: o.data.length,
205
207
  autoSize: !0,
@@ -208,46 +210,47 @@ const ye = (r, E) => {
208
210
  // Prevent scroll position jumps
209
211
  };
210
212
  });
211
- return le(() => {
212
- R();
213
- }), ae(() => {
213
+ return re(() => {
214
+ k();
215
+ }), ne(() => {
214
216
  P();
215
217
  }), (e, a) => {
216
- const n = L("wt-icon-btn"), u = L("p-column"), z = L("wt-icon"), D = L("wt-checkbox"), Y = L("p-table"), J = re("tooltip");
217
- return c(), f(Y, {
218
- key: k.value,
218
+ const n = L("wt-icon-btn"), u = L("p-column"), z = L("wt-icon"), D = L("wt-checkbox"), Q = L("p-table"), ee = se("tooltip");
219
+ return c(), m(Q, {
220
+ key: _.value,
219
221
  ref_key: "table",
220
222
  ref: v,
221
- "expanded-rows": m.value,
223
+ "expanded-rows": y.value,
222
224
  "reorderable-columns": r.reorderableColumns,
223
225
  "resizable-columns": r.resizableColumns,
224
226
  "row-class": r.rowClass,
225
227
  "row-style": r.rowStyle,
226
228
  "show-headers": !r.headless,
227
229
  value: r.data,
230
+ "sort-field": x.value,
228
231
  "data-key": o.dataKey,
229
232
  class: "wt-table",
230
233
  "column-resize-mode": "expand",
231
234
  lazy: "",
232
235
  "scroll-height": "flex",
233
236
  scrollable: "",
234
- "virtual-scroller-options": Z.value,
237
+ "virtual-scroller-options": J.value,
235
238
  pt: {
236
239
  tableContainer: "wt-scrollbar"
237
240
  },
238
- onSort: S,
239
- "onUpdate:expandedRows": a[0] || (a[0] = (t) => m.value = t),
240
- onColumnResizeEnd: A,
241
- onColumnReorder: G,
241
+ onSort: B,
242
+ "onUpdate:expandedRows": a[0] || (a[0] = (t) => y.value = t),
243
+ onColumnResizeEnd: X,
244
+ onColumnReorder: j,
242
245
  onRowReorder: a[1] || (a[1] = ({ dragIndex: t, dropIndex: g }) => d("reorder:row", { oldIndex: t, newIndex: g }))
243
246
  }, U({
244
247
  expansion: i(({ data: t }) => [
245
248
  $("div", null, [
246
- h(e.$slots, "expansion", { item: t }, void 0, !0)
249
+ S(e.$slots, "expansion", { item: t }, void 0, !0)
247
250
  ])
248
251
  ]),
249
252
  default: i(() => [
250
- r.rowExpansion ? (c(), f(u, {
253
+ r.rowExpansion ? (c(), m(u, {
251
254
  key: 0,
252
255
  pt: {
253
256
  columnresizer: {
@@ -263,13 +266,13 @@ const ye = (r, E) => {
263
266
  body: i(({ data: t }) => [
264
267
  V(n, {
265
268
  disabled: o.rowExpansionDisabled(t),
266
- icon: X(t) ? "arrow-down" : "arrow-right",
267
- onClick: ne((g) => j(t), ["stop"])
269
+ icon: Z(t) ? "arrow-down" : "arrow-right",
270
+ onClick: de((g) => Y(t), ["stop"])
268
271
  }, null, 8, ["disabled", "icon", "onClick"])
269
272
  ]),
270
273
  _: 1
271
274
  })) : b("", !0),
272
- r.rowReorder ? (c(), f(u, {
275
+ r.rowReorder ? (c(), m(u, {
273
276
  key: 1,
274
277
  pt: {
275
278
  columnresizer: {
@@ -285,7 +288,7 @@ const ye = (r, E) => {
285
288
  "row-reorder": ""
286
289
  }, {
287
290
  body: i(({ data: t }) => [
288
- r.isRowReorderDisabled(t) ? b("", !0) : (c(), f(z, {
291
+ r.isRowReorderDisabled(t) ? b("", !0) : (c(), m(z, {
289
292
  key: 0,
290
293
  "data-pc-section": "reorderablerowhandle",
291
294
  icon: "move"
@@ -293,7 +296,7 @@ const ye = (r, E) => {
293
296
  ]),
294
297
  _: 1
295
298
  })) : b("", !0),
296
- r.selectable ? (c(), f(u, {
299
+ r.selectable ? (c(), m(u, {
297
300
  key: 2,
298
301
  pt: {
299
302
  columnresizer: {
@@ -309,49 +312,49 @@ const ye = (r, E) => {
309
312
  }, {
310
313
  header: i(() => [
311
314
  V(D, {
312
- selected: B.value,
313
- "onUpdate:selected": y
315
+ selected: R.value,
316
+ "onUpdate:selected": O
314
317
  }, null, 8, ["selected"])
315
318
  ]),
316
319
  body: i(({ data: t }) => [
317
- t ? (c(), f(D, {
320
+ t ? (c(), m(D, {
318
321
  key: 0,
319
322
  selected: l.value.includes(t),
320
- "onUpdate:selected": (g) => O(t, g)
323
+ "onUpdate:selected": (g) => A(t, g)
321
324
  }, null, 8, ["selected", "onUpdate:selected"])) : b("", !0)
322
325
  ]),
323
326
  _: 1
324
327
  })) : b("", !0),
325
- (c(!0), W(se, null, de(s.value, (t, g) => (c(), f(u, {
328
+ (c(!0), W(ie, null, ce(s.value, (t, g) => (c(), m(u, {
326
329
  key: t.value,
327
330
  "column-key": t.field,
328
331
  field: t.field,
329
- hidden: C(t),
332
+ hidden: E(t),
330
333
  pt: {
331
334
  root: {
332
335
  "data-column-field": t.field
333
336
  // required for column-resizer to get column field
334
337
  }
335
338
  },
336
- sortable: x(t)
339
+ sortable: f(t)
337
340
  }, U({
338
341
  header: i(() => [
339
- h(e.$slots, `header-${t.value}`, {
342
+ S(e.$slots, `header-${t.value}`, {
340
343
  index: g,
341
344
  header: t
342
345
  }, () => [
343
- $("div", be, [
344
- ce((c(), W("span", null, [
346
+ $("div", ve, [
347
+ pe((c(), W("span", null, [
345
348
  q(K(t.text), 1)
346
349
  ])), [
347
- [J, t.text]
350
+ [ee, t.text]
348
351
  ]),
349
- t.sort === "asc" ? (c(), f(z, {
352
+ t.sort === "asc" ? (c(), m(z, {
350
353
  key: 0,
351
354
  class: "wt-table__th__sort-arrow wt-table__th__sort-arrow--asc",
352
355
  icon: "sort-arrow-up",
353
356
  size: "sm"
354
- })) : t.sort === "desc" ? (c(), f(z, {
357
+ })) : t.sort === "desc" ? (c(), m(z, {
355
358
  key: 1,
356
359
  class: "wt-table__th__sort-arrow wt-table__th__sort-arrow--desc",
357
360
  icon: "sort-arrow-down",
@@ -360,14 +363,14 @@ const ye = (r, E) => {
360
363
  ])
361
364
  ], !0)
362
365
  ]),
363
- body: i(({ data: M, index: Q }) => [
366
+ body: i(({ data: M, index: te }) => [
364
367
  $("div", {
365
- style: ie(I(t)),
368
+ style: ue(I(t)),
366
369
  class: "wt-table__td__content typo-body-1"
367
370
  }, [
368
- M ? h(e.$slots, t.value, {
371
+ M ? S(e.$slots, t.value, {
369
372
  key: 0,
370
- index: Q,
373
+ index: te,
371
374
  item: M
372
375
  }, () => [
373
376
  q(K(M[t.value]), 1)
@@ -377,15 +380,15 @@ const ye = (r, E) => {
377
380
  sorticon: i(() => []),
378
381
  _: 2
379
382
  }, [
380
- T.value ? {
383
+ F.value ? {
381
384
  name: "footer",
382
385
  fn: i(() => [
383
- h(e.$slots, `${t.value}-footer`, {}, void 0, !0)
386
+ S(e.$slots, `${t.value}-footer`, {}, void 0, !0)
384
387
  ]),
385
388
  key: "0"
386
389
  } : void 0
387
390
  ]), 1032, ["column-key", "field", "hidden", "pt", "sortable"]))), 128)),
388
- r.gridActions ? (c(), f(u, {
391
+ r.gridActions ? (c(), m(u, {
389
392
  key: 3,
390
393
  frozen: r.fixedActions,
391
394
  "align-frozen": "right",
@@ -393,11 +396,11 @@ const ye = (r, E) => {
393
396
  style: { width: "112px" }
394
397
  }, {
395
398
  header: i(() => [
396
- h(e.$slots, "actions-header", {}, void 0, !0)
399
+ S(e.$slots, "actions-header", {}, void 0, !0)
397
400
  ]),
398
401
  body: i(({ data: t, index: g }) => [
399
- $("div", we, [
400
- t ? h(e.$slots, "actions", {
402
+ $("div", ge, [
403
+ t ? S(e.$slots, "actions", {
401
404
  key: 0,
402
405
  index: g,
403
406
  item: t
@@ -409,17 +412,17 @@ const ye = (r, E) => {
409
412
  ], void 0, !0),
410
413
  _: 2
411
414
  }, [
412
- F.value ? {
415
+ T.value ? {
413
416
  name: "footer",
414
417
  fn: i(() => [
415
- h(e.$slots, "footer", {}, void 0, !0)
418
+ S(e.$slots, "footer", {}, void 0, !0)
416
419
  ]),
417
420
  key: "0"
418
421
  } : void 0
419
- ]), 1032, ["expanded-rows", "reorderable-columns", "resizable-columns", "row-class", "row-style", "show-headers", "value", "data-key", "virtual-scroller-options"]);
422
+ ]), 1032, ["expanded-rows", "reorderable-columns", "resizable-columns", "row-class", "row-style", "show-headers", "value", "sort-field", "data-key", "virtual-scroller-options"]);
420
423
  };
421
424
  }
422
- }), _e = /* @__PURE__ */ me(he, [["__scopeId", "data-v-1d2d302d"]]);
425
+ }), Re = /* @__PURE__ */ be(xe, [["__scopeId", "data-v-7cd9cee7"]]);
423
426
  export {
424
- _e as default
427
+ Re as default
425
428
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as C, computed as l, resolveComponent as p, resolveDirective as g, createElementBlock as S, openBlock as n, renderSlot as y, withDirectives as r, createCommentVNode as u, createVNode as A, createBlock as a, withCtx as B, normalizeClass as I } from "vue";
2
- import { _ as O } from "./install-B0iOKX0v.js";
2
+ import { _ as O } from "./install-BTw4h6La.js";
3
3
  const R = { class: "wt-table-actions" }, U = /* @__PURE__ */ C({
4
4
  __name: "wt-table-actions",
5
5
  props: {