@shifl-inc/ui 0.9.11 → 0.9.12

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/dist/shifl-ui.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ref as x, computed as S, watch as de, onMounted as Ve, onUnmounted as Ee, nextTick as we, defineComponent as me, openBlock as o, createElementBlock as g, createElementVNode as m, createStaticVNode as Kt, withModifiers as Se, toDisplayString as W, createCommentVNode as Z, createBlock as ue, createTextVNode as Re, normalizeClass as le, Fragment as oe, renderList as he, createVNode as ge, Teleport as Vt, normalizeStyle as Ne, unref as $e, resolveDynamicComponent as je, withDirectives as Yt, vModelText as Gt, provide as Ra, inject as Na } from "vue";
1
+ import { ref as x, computed as S, watch as de, onMounted as Ve, onUnmounted as Ee, nextTick as we, defineComponent as me, openBlock as o, createElementBlock as g, createElementVNode as m, createStaticVNode as Yt, withModifiers as Se, toDisplayString as W, createCommentVNode as Z, createBlock as ue, createTextVNode as Re, normalizeClass as le, Fragment as oe, renderList as he, createVNode as ge, Teleport as Vt, normalizeStyle as Ne, unref as $e, resolveDynamicComponent as je, withDirectives as Gt, vModelText as Jt, provide as Ra, inject as Na } from "vue";
2
2
  function Ha(n) {
3
3
  const r = (n.columns || []).map((l) => ({
4
4
  ...l,
@@ -796,7 +796,7 @@ const Ja = {
796
796
  };
797
797
  function tl(n, r) {
798
798
  return o(), g("svg", el, [...r[0] || (r[0] = [
799
- Kt('<path d="M5.33333 4.00016C6.06971 4.00016 6.66667 3.40321 6.66667 2.66683C6.66667 1.93045 6.06971 1.3335 5.33333 1.3335C4.59695 1.3335 4 1.93045 4 2.66683C4 3.40321 4.59695 4.00016 5.33333 4.00016Z" fill="#9CA5B4"></path><path d="M5.33333 9.33317C6.06971 9.33317 6.66667 8.73622 6.66667 7.99984C6.66667 7.26346 6.06971 6.6665 5.33333 6.6665C4.59695 6.6665 4 7.26346 4 7.99984C4 8.73622 4.59695 9.33317 5.33333 9.33317Z" fill="#9CA5B4"></path><path d="M5.33333 14.6667C6.06971 14.6667 6.66667 14.0697 6.66667 13.3333C6.66667 12.597 6.06971 12 5.33333 12C4.59695 12 4 12.597 4 13.3333C4 14.0697 4.59695 14.6667 5.33333 14.6667Z" fill="#9CA5B4"></path><path d="M10.6668 4.00016C11.4032 4.00016 12.0002 3.40321 12.0002 2.66683C12.0002 1.93045 11.4032 1.3335 10.6668 1.3335C9.93045 1.3335 9.3335 1.93045 9.3335 2.66683C9.3335 3.40321 9.93045 4.00016 10.6668 4.00016Z" fill="#9CA5B4"></path><path d="M10.6668 9.33317C11.4032 9.33317 12.0002 8.73622 12.0002 7.99984C12.0002 7.26346 11.4032 6.6665 10.6668 6.6665C9.93045 6.6665 9.3335 7.26346 9.3335 7.99984C9.3335 8.73622 9.93045 9.33317 10.6668 9.33317Z" fill="#9CA5B4"></path><path d="M10.6668 14.6667C11.4032 14.6667 12.0002 14.0697 12.0002 13.3333C12.0002 12.597 11.4032 12 10.6668 12C9.93045 12 9.3335 12.597 9.3335 13.3333C9.3335 14.0697 9.93045 14.6667 10.6668 14.6667Z" fill="#9CA5B4"></path>', 6)
799
+ Yt('<path d="M5.33333 4.00016C6.06971 4.00016 6.66667 3.40321 6.66667 2.66683C6.66667 1.93045 6.06971 1.3335 5.33333 1.3335C4.59695 1.3335 4 1.93045 4 2.66683C4 3.40321 4.59695 4.00016 5.33333 4.00016Z" fill="#9CA5B4"></path><path d="M5.33333 9.33317C6.06971 9.33317 6.66667 8.73622 6.66667 7.99984C6.66667 7.26346 6.06971 6.6665 5.33333 6.6665C4.59695 6.6665 4 7.26346 4 7.99984C4 8.73622 4.59695 9.33317 5.33333 9.33317Z" fill="#9CA5B4"></path><path d="M5.33333 14.6667C6.06971 14.6667 6.66667 14.0697 6.66667 13.3333C6.66667 12.597 6.06971 12 5.33333 12C4.59695 12 4 12.597 4 13.3333C4 14.0697 4.59695 14.6667 5.33333 14.6667Z" fill="#9CA5B4"></path><path d="M10.6668 4.00016C11.4032 4.00016 12.0002 3.40321 12.0002 2.66683C12.0002 1.93045 11.4032 1.3335 10.6668 1.3335C9.93045 1.3335 9.3335 1.93045 9.3335 2.66683C9.3335 3.40321 9.93045 4.00016 10.6668 4.00016Z" fill="#9CA5B4"></path><path d="M10.6668 9.33317C11.4032 9.33317 12.0002 8.73622 12.0002 7.99984C12.0002 7.26346 11.4032 6.6665 10.6668 6.6665C9.93045 6.6665 9.3335 7.26346 9.3335 7.99984C9.3335 8.73622 9.93045 9.33317 10.6668 9.33317Z" fill="#9CA5B4"></path><path d="M10.6668 14.6667C11.4032 14.6667 12.0002 14.0697 12.0002 13.3333C12.0002 12.597 11.4032 12 10.6668 12C9.93045 12 9.3335 12.597 9.3335 13.3333C9.3335 14.0697 9.93045 14.6667 10.6668 14.6667Z" fill="#9CA5B4"></path>', 6)
800
800
  ])]);
801
801
  }
802
802
  const nl = /* @__PURE__ */ ye(Xa, [["render", tl]]), al = { class: "shifl-column-manager__header" }, ll = { class: "shifl-column-manager__title-wrapper" }, rl = { class: "shifl-column-manager__title" }, il = { key: 0 }, ol = {
@@ -1448,15 +1448,15 @@ function kr(n, r) {
1448
1448
  return null;
1449
1449
  }
1450
1450
  }
1451
- function qt(n) {
1451
+ function Wt(n) {
1452
1452
  const r = /* @__PURE__ */ new Date();
1453
1453
  return n.toDateString() === r.toDateString();
1454
1454
  }
1455
- function Wt(n) {
1455
+ function Kt(n) {
1456
1456
  const r = n.getDay();
1457
1457
  return r === 0 || r === 6;
1458
1458
  }
1459
- function _e(n, r) {
1459
+ function Ce(n, r) {
1460
1460
  return n.toDateString() === r.toDateString();
1461
1461
  }
1462
1462
  function Fn(n, r = 0) {
@@ -1481,16 +1481,16 @@ function Pn(n, r = 0) {
1481
1481
  selected: !1,
1482
1482
  disabled: !1,
1483
1483
  highlighted: !1,
1484
- today: qt(p),
1485
- weekend: Wt(p),
1484
+ today: Wt(p),
1485
+ weekend: Kt(p),
1486
1486
  inRange: !1,
1487
1487
  rangePosition: null,
1488
1488
  // Legacy properties
1489
1489
  isCurrentMonth: _,
1490
- isToday: qt(p),
1490
+ isToday: Wt(p),
1491
1491
  isSelected: !1,
1492
1492
  isDisabled: !1,
1493
- isWeekend: Wt(p),
1493
+ isWeekend: Kt(p),
1494
1494
  isInRange: !1
1495
1495
  };
1496
1496
  y.push(v), p.setDate(p.getDate() + 1);
@@ -1500,10 +1500,10 @@ function Pn(n, r = 0) {
1500
1500
  function Mr(n, r, i, l, c) {
1501
1501
  if (r && n < r || i && n > i) return !0;
1502
1502
  if (c && c.length > 0)
1503
- return !c.some((f) => _e(n, f));
1503
+ return !c.some((f) => Ce(n, f));
1504
1504
  if (l) {
1505
1505
  if (Array.isArray(l))
1506
- return l.some((f) => _e(n, f));
1506
+ return l.some((f) => Ce(n, f));
1507
1507
  if (typeof l == "function")
1508
1508
  return l(n);
1509
1509
  }
@@ -1585,7 +1585,7 @@ const $r = {
1585
1585
  viewBox: "0 0 9 6",
1586
1586
  fill: "none",
1587
1587
  xmlns: "http://www.w3.org/2000/svg"
1588
- }, Pr = ["fill"], lt = /* @__PURE__ */ me({
1588
+ }, Pr = ["fill"], rt = /* @__PURE__ */ me({
1589
1589
  __name: "ChevronDownIcon",
1590
1590
  props: {
1591
1591
  color: { default: "#69758C" }
@@ -1695,12 +1695,12 @@ const $r = {
1695
1695
  i.disabledDates,
1696
1696
  i.allowedDates
1697
1697
  ),
1698
- today: qt(h.date),
1699
- weekend: Wt(h.date),
1698
+ today: Wt(h.date),
1699
+ weekend: Kt(h.date),
1700
1700
  inRange: w(h.date)
1701
1701
  })));
1702
1702
  function R(h) {
1703
- return i.selectedDate && _e(h, i.selectedDate) ? !0 : i.selectedDates ? i.selectedDates.some((T) => _e(h, T)) : !!(i.selectedRange && (i.selectedRange.start && _e(h, i.selectedRange.start) || i.selectedRange.end && _e(h, i.selectedRange.end)));
1703
+ return i.selectedDate && Ce(h, i.selectedDate) ? !0 : i.selectedDates ? i.selectedDates.some((T) => Ce(h, T)) : !!(i.selectedRange && (i.selectedRange.start && Ce(h, i.selectedRange.start) || i.selectedRange.end && Ce(h, i.selectedRange.end)));
1704
1704
  }
1705
1705
  function w(h) {
1706
1706
  var T, ee;
@@ -1708,11 +1708,11 @@ const $r = {
1708
1708
  }
1709
1709
  function k(h) {
1710
1710
  var T;
1711
- return (T = i.selectedRange) != null && T.start ? _e(h, i.selectedRange.start) : !1;
1711
+ return (T = i.selectedRange) != null && T.start ? Ce(h, i.selectedRange.start) : !1;
1712
1712
  }
1713
1713
  function B(h) {
1714
1714
  var T;
1715
- return (T = i.selectedRange) != null && T.end ? _e(h, i.selectedRange.end) : !1;
1715
+ return (T = i.selectedRange) != null && T.end ? Ce(h, i.selectedRange.end) : !1;
1716
1716
  }
1717
1717
  function z(h) {
1718
1718
  var ee, Q;
@@ -1726,7 +1726,7 @@ const $r = {
1726
1726
  "datepicker-calendar__day--disabled": h.disabled,
1727
1727
  "datepicker-calendar__day--other-month": !h.current,
1728
1728
  "datepicker-calendar__day--in-hover-range": De(h.date),
1729
- "datepicker-calendar__day--hover-end": !((ee = i.selectedRange) != null && ee.end) && !!((Q = i.selectedRange) != null && Q.start) && !!i.hoverDate && _e(h.date, i.hoverDate) && !_e(h.date, i.selectedRange.start)
1729
+ "datepicker-calendar__day--hover-end": !((ee = i.selectedRange) != null && ee.end) && !!((Q = i.selectedRange) != null && Q.start) && !!i.hoverDate && Ce(h.date, i.hoverDate) && !Ce(h.date, i.selectedRange.start)
1730
1730
  };
1731
1731
  }
1732
1732
  function J() {
@@ -1754,8 +1754,8 @@ const $r = {
1754
1754
  ".datepicker-calendar__dropdown-menu"
1755
1755
  );
1756
1756
  if (T && ee) {
1757
- const Q = T.offsetTop, K = ee.clientHeight, Ce = Q - K / 2 + T.clientHeight / 2;
1758
- ee.scrollTop = Ce;
1757
+ const Q = T.offsetTop, K = ee.clientHeight, be = Q - K / 2 + T.clientHeight / 2;
1758
+ ee.scrollTop = be;
1759
1759
  }
1760
1760
  });
1761
1761
  }
@@ -1829,7 +1829,7 @@ const $r = {
1829
1829
  return h.today && (Q += ", Today"), h.selected && (Q += ", Selected"), h.disabled && (Q += ", Disabled"), h.current || (Q += ", Other month"), Q;
1830
1830
  }
1831
1831
  function V(h) {
1832
- const ee = O.value.findIndex((Q) => _e(Q.date, h.date)) + 1;
1832
+ const ee = O.value.findIndex((Q) => Ce(Q.date, h.date)) + 1;
1833
1833
  if (ee < O.value.length) {
1834
1834
  const Q = O.value[ee], K = document.querySelector(
1835
1835
  `button[data-date="${Q.date.toISOString()}"]`
@@ -1838,7 +1838,7 @@ const $r = {
1838
1838
  }
1839
1839
  }
1840
1840
  function A(h) {
1841
- const ee = O.value.findIndex((Q) => _e(Q.date, h.date)) - 1;
1841
+ const ee = O.value.findIndex((Q) => Ce(Q.date, h.date)) - 1;
1842
1842
  if (ee >= 0) {
1843
1843
  const Q = O.value[ee], K = document.querySelector(
1844
1844
  `button[data-date="${Q.date.toISOString()}"]`
@@ -1849,7 +1849,7 @@ const $r = {
1849
1849
  function M(h) {
1850
1850
  const T = new Date(h.date);
1851
1851
  T.setDate(T.getDate() + 7);
1852
- const ee = O.value.find((Q) => _e(Q.date, T));
1852
+ const ee = O.value.find((Q) => Ce(Q.date, T));
1853
1853
  if (ee) {
1854
1854
  const Q = document.querySelector(
1855
1855
  `button[data-date="${ee.date.toISOString()}"]`
@@ -1860,7 +1860,7 @@ const $r = {
1860
1860
  function H(h) {
1861
1861
  const T = new Date(h.date);
1862
1862
  T.setDate(T.getDate() - 7);
1863
- const ee = O.value.find((Q) => _e(Q.date, T));
1863
+ const ee = O.value.find((Q) => Ce(Q.date, T));
1864
1864
  if (ee) {
1865
1865
  const Q = document.querySelector(
1866
1866
  `button[data-date="${ee.date.toISOString()}"]`
@@ -1912,7 +1912,7 @@ const $r = {
1912
1912
  var Q, K;
1913
1913
  if (!((Q = i.selectedRange) != null && Q.start) || (K = i.selectedRange) != null && K.end || !i.hoverDate) return !1;
1914
1914
  const T = i.selectedRange.start, ee = i.hoverDate;
1915
- return _e(h, T) || _e(h, ee) ? !1 : ee >= T ? h > T && h < ee : h < T && h > ee;
1915
+ return Ce(h, T) || Ce(h, ee) ? !1 : ee >= T ? h > T && h < ee : h < T && h > ee;
1916
1916
  }
1917
1917
  return de(
1918
1918
  () => i.month,
@@ -1943,17 +1943,17 @@ const $r = {
1943
1943
  key: 0,
1944
1944
  color: "#253041",
1945
1945
  class: "datepicker-calendar__dropdown-icon"
1946
- })) : (o(), ue(lt, {
1946
+ })) : (o(), ue(rt, {
1947
1947
  key: 1,
1948
1948
  color: "#253041",
1949
1949
  class: "datepicker-calendar__dropdown-icon"
1950
1950
  }))
1951
1951
  ], 8, Br),
1952
1952
  y.value ? (o(), g("div", zr, [
1953
- (o(!0), g(oe, null, he(v.value, (K, Ce) => (o(), g("div", {
1953
+ (o(!0), g(oe, null, he(v.value, (K, be) => (o(), g("div", {
1954
1954
  key: K,
1955
- class: le(["datepicker-calendar__dropdown-item", { "is-selected": Ce === d.value }]),
1956
- onClick: (qe) => X(Ce, qe)
1955
+ class: le(["datepicker-calendar__dropdown-item", { "is-selected": be === d.value }]),
1956
+ onClick: (qe) => X(be, qe)
1957
1957
  }, W(K), 11, Zr))), 128))
1958
1958
  ])) : Z("", !0)
1959
1959
  ], 2),
@@ -1971,7 +1971,7 @@ const $r = {
1971
1971
  key: 0,
1972
1972
  color: "#253041",
1973
1973
  class: "datepicker-calendar__dropdown-icon"
1974
- })) : (o(), ue(lt, {
1974
+ })) : (o(), ue(rt, {
1975
1975
  key: 1,
1976
1976
  color: "#253041",
1977
1977
  class: "datepicker-calendar__dropdown-icon"
@@ -1982,7 +1982,7 @@ const $r = {
1982
1982
  key: K,
1983
1983
  class: le(["datepicker-calendar__dropdown-item", { "is-selected": K === C.value }]),
1984
1984
  "data-year": K,
1985
- onClick: (Ce) => L(K, Ce)
1985
+ onClick: (be) => L(K, be)
1986
1986
  }, W(K), 11, Kr))), 128))
1987
1987
  ])) : Z("", !0)
1988
1988
  ], 2)
@@ -2038,10 +2038,10 @@ const $r = {
2038
2038
  key: K.date.toISOString(),
2039
2039
  type: "button",
2040
2040
  class: le(["datepicker-calendar__day", z(K)]),
2041
- onClick: (Ce) => ie(K),
2042
- onKeydown: (Ce) => E(Ce, K),
2043
- onMouseenter: (Ce) => l("hover-date", K.date),
2044
- onMouseleave: T[2] || (T[2] = (Ce) => l("hover-date", null)),
2041
+ onClick: (be) => ie(K),
2042
+ onKeydown: (be) => E(be, K),
2043
+ onMouseenter: (be) => l("hover-date", K.date),
2044
+ onMouseleave: T[2] || (T[2] = (be) => l("hover-date", null)),
2045
2045
  disabled: K.disabled || n.disabled,
2046
2046
  "aria-label": te(K),
2047
2047
  "aria-selected": K.selected,
@@ -2155,7 +2155,7 @@ const $r = {
2155
2155
  else if (v.value.end)
2156
2156
  v.value = { start: b, end: null };
2157
2157
  else {
2158
- if (v.value.start && _e(b, v.value.start))
2158
+ if (v.value.start && Ce(b, v.value.start))
2159
2159
  return;
2160
2160
  v.value.start && b >= v.value.start ? v.value = { ...v.value, end: b } : v.value = { start: b, end: v.value.start }, ($ = l.config) != null && $.autoApply && v.value.start && v.value.end && (y.value = Me(v.value.start, ((j = l.config) == null ? void 0 : j.format) || "MM/dd/yyyy", O.value) + " - " + Me(v.value.end, ((ce = l.config) == null ? void 0 : ce.format) || "MM/dd/yyyy", O.value)), (pe = l.config) != null && pe.autoApply ? X() : !B.value && v.value.start && v.value.end && E();
2161
2161
  }
@@ -2248,12 +2248,12 @@ const $r = {
2248
2248
  return (b = f.value) == null ? void 0 : b.blur();
2249
2249
  }
2250
2250
  }), (b, $) => {
2251
- var j, ce, pe, De, h, T, ee, Q, K, Ce, qe, mt, yt, _t, rt, it, ot, st, We, Ke, ut, Ye, Ge, Ct, Le, He, Be, Ie, Je, Ae, bt, Ue, Qe, ze, Xe, xe;
2251
+ var j, ce, pe, De, h, T, ee, Q, K, be, qe, mt, yt, _t, it, ot, st, ut, We, Ke, ct, Ye, Ge, Ct, Le, He, Be, Ie, Je, Ae, bt, Ue, Qe, ze, Xe, xe;
2252
2252
  return o(), g("div", {
2253
2253
  class: le(["datepicker", R.value])
2254
2254
  }, [
2255
2255
  (j = n.config) != null && j.filterMode ? Z("", !0) : (o(), g("div", ri, [
2256
- Yt(m("input", {
2256
+ Gt(m("input", {
2257
2257
  ref_key: "inputRef",
2258
2258
  ref: f,
2259
2259
  "onUpdate:modelValue": $[0] || ($[0] = (ve) => y.value = ve),
@@ -2264,7 +2264,7 @@ const $r = {
2264
2264
  readonly: (De = n.config) == null ? void 0 : De.readonly,
2265
2265
  required: (T = (h = n.config) == null ? void 0 : h.input) == null ? void 0 : T.required,
2266
2266
  autocomplete: (Q = (ee = n.config) == null ? void 0 : ee.input) == null ? void 0 : Q.autocomplete,
2267
- inputmode: (Ce = (K = n.config) == null ? void 0 : K.input) == null ? void 0 : Ce.inputmode,
2267
+ inputmode: (be = (K = n.config) == null ? void 0 : K.input) == null ? void 0 : be.inputmode,
2268
2268
  name: (mt = (qe = n.config) == null ? void 0 : qe.input) == null ? void 0 : mt.name,
2269
2269
  id: (_t = (yt = n.config) == null ? void 0 : yt.input) == null ? void 0 : _t.id,
2270
2270
  onFocus: V,
@@ -2273,18 +2273,18 @@ const $r = {
2273
2273
  onKeydown: H,
2274
2274
  onClick: te
2275
2275
  }, null, 42, ii), [
2276
- [Gt, y.value]
2276
+ [Jt, y.value]
2277
2277
  ]),
2278
- (rt = n.config) != null && rt.showCalendarIcon ? (o(), g("button", {
2278
+ (it = n.config) != null && it.showCalendarIcon ? (o(), g("button", {
2279
2279
  key: 0,
2280
2280
  type: "button",
2281
2281
  class: "datepicker__toggle",
2282
2282
  onClick: re,
2283
- disabled: (it = n.config) == null ? void 0 : it.disabled
2283
+ disabled: (ot = n.config) == null ? void 0 : ot.disabled
2284
2284
  }, [...$[3] || ($[3] = [
2285
- Kt('<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" data-v-69a7fb78><rect x="3" y="4" width="18" height="18" rx="2" ry="2" stroke-width="2" data-v-69a7fb78></rect><line x1="16" y1="2" x2="16" y2="6" stroke-width="2" data-v-69a7fb78></line><line x1="8" y1="2" x2="8" y2="6" stroke-width="2" data-v-69a7fb78></line><line x1="3" y1="10" x2="21" y2="10" stroke-width="2" data-v-69a7fb78></line></svg>', 1)
2285
+ Yt('<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" data-v-69a7fb78><rect x="3" y="4" width="18" height="18" rx="2" ry="2" stroke-width="2" data-v-69a7fb78></rect><line x1="16" y1="2" x2="16" y2="6" stroke-width="2" data-v-69a7fb78></line><line x1="8" y1="2" x2="8" y2="6" stroke-width="2" data-v-69a7fb78></line><line x1="3" y1="10" x2="21" y2="10" stroke-width="2" data-v-69a7fb78></line></svg>', 1)
2286
2286
  ])], 8, oi)) : Z("", !0),
2287
- (ot = n.config) != null && ot.clearable && y.value && !((st = n.config) != null && st.readonly) ? (o(), g("button", {
2287
+ (st = n.config) != null && st.clearable && y.value && !((ut = n.config) != null && ut.readonly) ? (o(), g("button", {
2288
2288
  key: 1,
2289
2289
  type: "button",
2290
2290
  class: "datepicker__clear",
@@ -2322,28 +2322,28 @@ const $r = {
2322
2322
  ref: d
2323
2323
  }, [
2324
2324
  m("div", ui, [
2325
- (ut = n.config) != null && ut.range ? (o(), g("div", ci, [
2325
+ (ct = n.config) != null && ct.range ? (o(), g("div", ci, [
2326
2326
  (o(!0), g(oe, null, he(J.value, (ve, et) => {
2327
- var kt, ct, Fe, tt, dt, ft, wt;
2327
+ var kt, dt, Fe, tt, ft, gt, wt;
2328
2328
  return o(), ue(Sn, {
2329
2329
  key: et,
2330
2330
  month: new Date(ve.year, ve.month, 1),
2331
2331
  "selected-range": v.value,
2332
2332
  "min-date": (kt = n.config) == null ? void 0 : kt.minDate,
2333
- "max-date": (ct = n.config) == null ? void 0 : ct.maxDate,
2333
+ "max-date": (dt = n.config) == null ? void 0 : dt.maxDate,
2334
2334
  "disabled-dates": (Fe = n.config) == null ? void 0 : Fe.disabledDates,
2335
2335
  "allowed-dates": (tt = n.config) == null ? void 0 : tt.allowedDates,
2336
- disabled: (dt = n.config) == null ? void 0 : dt.disabled,
2337
- "week-start": (ft = n.config) == null ? void 0 : ft.weekStart,
2336
+ disabled: (ft = n.config) == null ? void 0 : ft.disabled,
2337
+ "week-start": (gt = n.config) == null ? void 0 : gt.weekStart,
2338
2338
  locale: O.value,
2339
2339
  "show-navigation": et === J.value.length - 1,
2340
2340
  "calendar-index": et,
2341
2341
  "total-calendars": J.value.length,
2342
2342
  "hide-offset-dates": (wt = n.config) == null ? void 0 : wt.hideOffsetDates,
2343
- "onUpdate:month": (gt) => q(et, gt),
2343
+ "onUpdate:month": (pt) => q(et, pt),
2344
2344
  onSelectDate: ae,
2345
2345
  "hover-date": I.value,
2346
- onHoverDate: $[2] || ($[2] = (gt) => I.value = gt)
2346
+ onHoverDate: $[2] || ($[2] = (pt) => I.value = pt)
2347
2347
  }, null, 8, ["month", "selected-range", "min-date", "max-date", "disabled-dates", "allowed-dates", "disabled", "week-start", "locale", "show-navigation", "calendar-index", "total-calendars", "hide-offset-dates", "onUpdate:month", "hover-date"]);
2348
2348
  }), 128))
2349
2349
  ])) : (o(), ue(Sn, {
@@ -2586,7 +2586,7 @@ const $r = {
2586
2586
  }, [
2587
2587
  m("span", vi, W(R()), 1),
2588
2588
  w() ? (o(), g("span", hi, W(w()), 1)) : Z("", !0),
2589
- ge(lt, {
2589
+ ge(rt, {
2590
2590
  class: le(["chevron-icon", { "is-open": f.value }])
2591
2591
  }, null, 8, ["class"]),
2592
2592
  D.value ? (o(), ue(Lt, {
@@ -2806,7 +2806,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
2806
2806
  z.value > 0 ? (o(), g("span", xi, "+" + W(z.value), 1)) : Z("", !0)
2807
2807
  ])) : Z("", !0)
2808
2808
  ]),
2809
- ge(lt, { class: "grid__filter-trigger-arrow" }),
2809
+ ge(rt, { class: "grid__filter-trigger-arrow" }),
2810
2810
  J.value ? (o(), g("button", {
2811
2811
  key: 0,
2812
2812
  type: "button",
@@ -2820,14 +2820,14 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
2820
2820
  p.value ? (o(), g("div", $i, [
2821
2821
  n.searchable && (((V = n.config.options) == null ? void 0 : V.length) ?? 0) > 0 ? (o(), g("div", Vi, [
2822
2822
  ge(An, { class: "grid-select__search-icon" }),
2823
- Yt(m("input", {
2823
+ Gt(m("input", {
2824
2824
  type: "text",
2825
2825
  "onUpdate:modelValue": te[0] || (te[0] = (A) => F.value = A),
2826
2826
  placeholder: `Search ${n.config.label}`,
2827
2827
  class: "grid-select__search-input",
2828
2828
  onInput: I
2829
2829
  }, null, 40, Ti), [
2830
- [Gt, F.value]
2830
+ [Jt, F.value]
2831
2831
  ])
2832
2832
  ])) : Z("", !0),
2833
2833
  m("div", Li, [
@@ -3047,7 +3047,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3047
3047
  m("span", zi, W(B()), 1),
3048
3048
  z() ? (o(), g("span", Zi, W(z()), 1)) : Z("", !0),
3049
3049
  J() ? (o(), g("span", ji, W(J()), 1)) : Z("", !0),
3050
- ge(lt),
3050
+ ge(rt),
3051
3051
  v.value ? (o(), g("button", {
3052
3052
  key: 2,
3053
3053
  type: "button",
@@ -3119,7 +3119,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3119
3119
  onClick: p
3120
3120
  }, [
3121
3121
  w[0] || (w[0] = m("span", null, "More Filters", -1)),
3122
- ge(lt, { class: "filter-dropdown-arrow" })
3122
+ ge(rt, { class: "filter-dropdown-arrow" })
3123
3123
  ]),
3124
3124
  f.value ? (o(), g("div", Yi, [
3125
3125
  m("div", Gi, [
@@ -3152,7 +3152,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3152
3152
  }, " Clear Filters ")) : Z("", !0)
3153
3153
  ], 64));
3154
3154
  }
3155
- }), eo = /* @__PURE__ */ ye(Xi, [["__scopeId", "data-v-01103585"]]), to = { class: "shifl-grid relative" }, no = { class: "shifl-grid__controls" }, ao = { class: "shifl-grid__controls-left" }, lo = {
3155
+ }), eo = /* @__PURE__ */ ye(Xi, [["__scopeId", "data-v-e7f96091"]]), to = { class: "shifl-grid relative" }, no = { class: "shifl-grid__controls" }, ao = { class: "shifl-grid__controls-left" }, lo = {
3156
3156
  key: 0,
3157
3157
  class: "shifl-grid__search-container"
3158
3158
  }, ro = { class: "shifl-grid__search-input-wrapper" }, io = { class: "shifl-grid__controls-right" }, oo = ["disabled"], so = ["disabled"], uo = { class: "shifl-grid__table" }, co = ["onClick"], fo = { class: "shifl-grid__header-content" }, go = {
@@ -3362,7 +3362,16 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3362
3362
  });
3363
3363
  return;
3364
3364
  }
3365
- console.log(e ? "Entered new view mode - keeping current columns unchanged until confirmation" : "Exited new view mode");
3365
+ if (e) {
3366
+ console.log("Entered new view mode - keeping current columns unchanged until confirmation");
3367
+ const t = {};
3368
+ Object.keys(_e.value).forEach((s) => {
3369
+ t[s] = null;
3370
+ }), at.value.forEach((s) => {
3371
+ t[s] = null;
3372
+ }), _e.value = t, Pt();
3373
+ } else
3374
+ console.log("Exited new view mode");
3366
3375
  },
3367
3376
  { immediate: !0 }
3368
3377
  ), Ve(() => {
@@ -3381,9 +3390,11 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3381
3390
  u && (u.visible = t.visible !== !1, u.order = t.order || s + 1);
3382
3391
  }), z.value.sort((t, s) => (t.order || 0) - (s.order || 0)));
3383
3392
  const a = {};
3384
- pt.value.forEach((t) => {
3393
+ Object.keys(_e.value).forEach((t) => {
3385
3394
  a[t] = null;
3386
- }), be.value = a, Jt(), e.filters && (Array.isArray(e.filters) ? e.filters.forEach((t) => {
3395
+ }), at.value.forEach((t) => {
3396
+ a[t] = null;
3397
+ }), _e.value = a, Pt(), e.filters && (Array.isArray(e.filters) ? e.filters.forEach((t) => {
3387
3398
  t.field && t.value !== void 0 ? Mt(t.field, t.value) : t.field && t.operation === "orBetween" && (t.from || t.to) && Mt(t.field, {
3388
3399
  start: t.from,
3389
3400
  end: t.to
@@ -3424,7 +3435,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3424
3435
  filterType: se.filterType,
3425
3436
  align: se.align ?? "left"
3426
3437
  })), a = {};
3427
- Object.entries(be.value).forEach(([se, ke]) => {
3438
+ Object.entries(_e.value).forEach(([se, ke]) => {
3428
3439
  ke != null && ke !== "" && !(Array.isArray(ke) && ke.length === 0) && !(typeof ke == "object" && Object.keys(ke).length === 0) && (a[se] = ke);
3429
3440
  });
3430
3441
  const t = {
@@ -3468,7 +3479,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3468
3479
  JSON.parse(JSON.stringify(e.view_config))
3469
3480
  ), f("view:save", e), Y.value = i($.value);
3470
3481
  }
3471
- function Ce(e) {
3482
+ function be(e) {
3472
3483
  I(e);
3473
3484
  }
3474
3485
  function qe(e, a) {
@@ -3481,7 +3492,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3481
3492
  E.value = !1, C.value ? (f("view:apply", $.value), Y.value = i($.value), console.log("Applied new view configuration")) : pe.value === "default" ? (f("view:apply", $.value), b.value = !0) : (Y.value = i($.value), console.log("Applied column changes to saved view (unsaved modifications)"));
3482
3493
  }, _t = () => {
3483
3494
  E.value = !1, te.value = !1, c.openColumnManager !== void 0 && f("view:reset");
3484
- }, rt = x({}), it = x({}), ot = x(null), st = x(null), We = x(null), Ke = x(!1), ut = x(""), Ye = x(null), Ge = x(!1), Ct = x({});
3495
+ }, it = x({}), ot = x({}), st = x(null), ut = x(null), We = x(null), Ke = x(!1), ct = x(""), Ye = x(null), Ge = x(!1), Ct = x({});
3485
3496
  x({});
3486
3497
  const Le = x(
3487
3498
  {}
@@ -3607,7 +3618,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3607
3618
  }), kt = S(() => {
3608
3619
  var e;
3609
3620
  return ((e = ve.value) == null ? void 0 : e.perPage) || 10;
3610
- }), ct = S(() => {
3621
+ }), dt = S(() => {
3611
3622
  const e = ve.value;
3612
3623
  if (!e || e.show === !1)
3613
3624
  return { from: 0, to: 0 };
@@ -3626,7 +3637,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3626
3637
  if (a === 0) return 1;
3627
3638
  const t = e.perPage || 20, s = Math.ceil(a / t);
3628
3639
  return Math.max(1, s);
3629
- }), dt = S(() => Fe.value <= 1), ft = S(() => Fe.value >= tt.value), wt = S(() => {
3640
+ }), ft = S(() => Fe.value <= 1), gt = S(() => Fe.value >= tt.value), wt = S(() => {
3630
3641
  const e = tt.value, a = Fe.value, t = [];
3631
3642
  if (e <= 7)
3632
3643
  for (let s = 1; s <= e; s++)
@@ -3647,7 +3658,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3647
3658
  }
3648
3659
  return t;
3649
3660
  });
3650
- function gt(e) {
3661
+ function pt(e) {
3651
3662
  var t;
3652
3663
  if (e < 1 || e > tt.value || e === Fe.value || w.value) return;
3653
3664
  const a = ((t = ve.value) == null ? void 0 : t.perPage) || 20;
@@ -3655,13 +3666,13 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3655
3666
  }
3656
3667
  function Hn() {
3657
3668
  var t;
3658
- if (dt.value || w.value) return;
3669
+ if (ft.value || w.value) return;
3659
3670
  const e = ((t = ve.value) == null ? void 0 : t.perPage) || 20, a = Fe.value - 1;
3660
3671
  F.value = { page: a, perPage: e }, f("pagination-change", a, e);
3661
3672
  }
3662
3673
  function Bn() {
3663
3674
  var t;
3664
- if (ft.value || w.value) return;
3675
+ if (gt.value || w.value) return;
3665
3676
  const e = ((t = ve.value) == null ? void 0 : t.perPage) || 20, a = Fe.value + 1;
3666
3677
  F.value = { page: a, perPage: e }, f("pagination-change", a, e);
3667
3678
  }
@@ -3760,7 +3771,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3760
3771
  updateFilterValue: Un,
3761
3772
  confirmFilterValue: Qn,
3762
3773
  clearFilter: Xn,
3763
- clearAllFilters: Jt,
3774
+ clearAllFilters: Pt,
3764
3775
  applyFilters: ea
3765
3776
  } = za(Gn.value, {
3766
3777
  onFiltersChange: (e) => {
@@ -3768,16 +3779,16 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3768
3779
  },
3769
3780
  onPaginationReset: Jn,
3770
3781
  debounceTime: 300
3771
- }), pt = S(() => {
3782
+ }), at = S(() => {
3772
3783
  var a;
3773
3784
  const e = d.value.filterConfig;
3774
3785
  return ((a = e == null ? void 0 : e.filters) == null ? void 0 : a.default) || [];
3775
- }), be = x({}), ta = S(() => Object.keys(be.value).map((e) => {
3786
+ }), _e = x({}), ta = S(() => Object.keys(_e.value).map((e) => {
3776
3787
  const a = Ft.value.find((t) => t.key === e);
3777
- return a ? { config: a, value: be.value[e] } : null;
3788
+ return a ? { config: a, value: _e.value[e] } : null;
3778
3789
  }).filter(Boolean)), Ut = S(() => Ft.value.filter(
3779
- (e) => !pt.value.includes(e.key)
3780
- )), Qt = S(() => Object.values(be.value).some((e) => {
3790
+ (e) => !at.value.includes(e.key)
3791
+ )), Qt = S(() => Object.values(_e.value).some((e) => {
3781
3792
  if (e == null || e === "" || e === !1 || Array.isArray(e) && e.length === 0) return !1;
3782
3793
  if (typeof e == "object" && e !== null) {
3783
3794
  const a = e;
@@ -3785,36 +3796,36 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3785
3796
  return !1;
3786
3797
  }
3787
3798
  return !0;
3788
- })), na = S(() => Object.keys(be.value));
3799
+ })), na = S(() => Object.keys(_e.value));
3789
3800
  function Mt(e, a) {
3790
- be.value[e] = a, Un(e, a);
3801
+ _e.value[e] = a, Un(e, a);
3791
3802
  }
3792
3803
  function aa(e) {
3793
- be.value[e.key] = null, H.value && H.value.closeDropdown(), we(() => {
3794
- const a = rt.value[e.key];
3804
+ _e.value[e.key] = null, H.value && H.value.closeDropdown(), we(() => {
3805
+ const a = it.value[e.key];
3795
3806
  a && typeof a == "object" && a !== null && "openFilter" in a && typeof a.openFilter == "function" && a.openFilter();
3796
3807
  });
3797
3808
  }
3798
3809
  function la(e) {
3799
- delete be.value[e];
3810
+ delete _e.value[e];
3800
3811
  }
3801
3812
  function ra(e) {
3802
3813
  console.log("Updated default filters:", e);
3803
3814
  }
3804
3815
  function ia(e, a) {
3805
- be.value[e] = a, Qn(e, a);
3816
+ _e.value[e] = a, Qn(e, a);
3806
3817
  }
3807
3818
  function oa(e) {
3808
3819
  e.forEach((t) => {
3809
- be.value[t] !== void 0 && (be.value[t] = null);
3820
+ _e.value[t] !== void 0 && (_e.value[t] = null);
3810
3821
  });
3811
3822
  const a = {};
3812
- pt.value.forEach((t) => {
3823
+ at.value.forEach((t) => {
3813
3824
  a[t] = null;
3814
- }), be.value = a, Jt();
3825
+ }), _e.value = a, Pt();
3815
3826
  }
3816
3827
  function sa(e) {
3817
- be.value[e] = null, Xn(e);
3828
+ _e.value[e] = null, Xn(e);
3818
3829
  }
3819
3830
  function ua(e) {
3820
3831
  var u;
@@ -3832,11 +3843,11 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3832
3843
  const en = S(() => {
3833
3844
  const e = !!c.search && c.search.trim().length > 0, a = !!p.value && p.value.trim().length > 0;
3834
3845
  return e || a;
3835
- }), Pt = x(null);
3846
+ }), Et = x(null);
3836
3847
  de(
3837
3848
  () => !xe.value.length && en.value && d.value.emptyState,
3838
3849
  (e) => {
3839
- e && Pt.value && (Pt.value.scrollLeft = 0);
3850
+ e && Et.value && (Et.value.scrollLeft = 0);
3840
3851
  }
3841
3852
  );
3842
3853
  const tn = x(0);
@@ -3848,7 +3859,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3848
3859
  const a = z.value.find((t) => t.key === e);
3849
3860
  !(a != null && a.sortable) || vt(a) || xt(a) || X(e);
3850
3861
  }
3851
- function Et(e, a) {
3862
+ function Ot(e, a) {
3852
3863
  if (e == null || e === "" || e === void 0)
3853
3864
  return Ze(a.blankStyle);
3854
3865
  const t = a.cellType;
@@ -3963,12 +3974,12 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3963
3974
  function sn(e, a) {
3964
3975
  return e.length <= a ? e : e.substring(0, a) + "...";
3965
3976
  }
3966
- function Ot(e) {
3977
+ function Rt(e) {
3967
3978
  const a = e.toLowerCase();
3968
3979
  return ["po", "pos", "supplier", "suppliers", "tag", "tags"].includes(a);
3969
3980
  }
3970
3981
  function _a(e, a) {
3971
- return e == null || Ot(a) ? !1 : Array.isArray(e) ? e.length === 0 ? !1 : e.join(", ").length > 30 : typeof e == "string" ? e.length > 30 : !1;
3982
+ return e == null || Rt(a) ? !1 : Array.isArray(e) ? e.length === 0 ? !1 : e.join(", ").length > 30 : typeof e == "string" ? e.length > 30 : !1;
3972
3983
  }
3973
3984
  function Ca(e) {
3974
3985
  return e == null ? !1 : Array.isArray(e) ? e.length === 0 ? !1 : e.join(", ").length > 45 : typeof e == "string" ? e.length > 45 : !1;
@@ -3989,7 +4000,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3989
4000
  }
3990
4001
  return typeof e == "string" && e.length > 45 ? 1 : 0;
3991
4002
  }
3992
- function Rt(e, a, t, s) {
4003
+ function Nt(e, a, t, s) {
3993
4004
  let u = "", N = !1;
3994
4005
  const ne = nt.value.find((fe) => fe.key === e);
3995
4006
  if (ne && rn(ne)) {
@@ -3997,27 +4008,27 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
3997
4008
  fe.length > 0 && (N = !0, u = fe.map((se) => `<span class="shifl-grid__tooltip-badge" style="border-left-color: ${fn(se)} !important">${se.name}</span>`).join(""));
3998
4009
  } else Array.isArray(t) ? t.length > 0 && (u = t.join(`
3999
4010
  `)) : t != null && (u = String(t));
4000
- ut.value = u, Ge.value = N, Ye.value = s, Ke.value = !0;
4011
+ ct.value = u, Ge.value = N, Ye.value = s, Ke.value = !0;
4001
4012
  }
4002
- function Nt() {
4013
+ function Ht() {
4003
4014
  Ke.value = !1, Ye.value = null, Ge.value = !1;
4004
4015
  }
4005
4016
  function ka(e, a) {
4006
4017
  Be.value = "Copy To Clipboard", Ie.value = a, He.value = !0, Ae();
4007
4018
  }
4008
- function Ht() {
4019
+ function Bt() {
4009
4020
  He.value = !1, Ie.value = null;
4010
4021
  }
4011
4022
  async function wa(e) {
4012
4023
  try {
4013
4024
  await navigator.clipboard.writeText(e), Be.value = "Copied!", setTimeout(() => {
4014
- Ht();
4025
+ Bt();
4015
4026
  }, 2e3);
4016
4027
  } catch (a) {
4017
4028
  console.error("Failed to copy text: ", a);
4018
4029
  const t = document.createElement("textarea");
4019
4030
  t.value = e, document.body.appendChild(t), t.select(), document.execCommand("copy"), document.body.removeChild(t), Be.value = "Copied!", setTimeout(() => {
4020
- Ht();
4031
+ Bt();
4021
4032
  }, 2e3);
4022
4033
  }
4023
4034
  }
@@ -4045,11 +4056,11 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4045
4056
  const N = 130, ne = 8, fe = 4;
4046
4057
  let se = 0;
4047
4058
  const ke = [];
4048
- for (const at of s) {
4049
- const Oe = at.length * 8 + ne + fe;
4059
+ for (const lt of s) {
4060
+ const Oe = lt.length * 8 + ne + fe;
4050
4061
  if (se + Oe > N && ke.length > 0)
4051
4062
  break;
4052
- ke.push(at), se += Oe;
4063
+ ke.push(lt), se += Oe;
4053
4064
  }
4054
4065
  return Le.value[u] = ke, ke;
4055
4066
  }
@@ -4060,17 +4071,17 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4060
4071
  if (Le.value[ne])
4061
4072
  return Le.value[ne];
4062
4073
  const fe = 130, se = 8, ke = 4;
4063
- let at = 0;
4074
+ let lt = 0;
4064
4075
  const Oe = [];
4065
- for (const zt of u) {
4066
- const Zt = zt.name.length * 8 + se + ke;
4076
+ for (const Zt of u) {
4077
+ const jt = Zt.name.length * 8 + se + ke;
4067
4078
  if (Oe.length === 0) {
4068
- Oe.push(zt), at += Zt;
4079
+ Oe.push(Zt), lt += jt;
4069
4080
  continue;
4070
4081
  }
4071
- if (at + Zt > fe)
4082
+ if (lt + jt > fe)
4072
4083
  break;
4073
- Oe.push(zt), at += Zt;
4084
+ Oe.push(Zt), lt += jt;
4074
4085
  }
4075
4086
  return Le.value[ne] = Oe, Oe;
4076
4087
  }
@@ -4121,7 +4132,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4121
4132
  ];
4122
4133
  return t[Math.abs(a) % t.length];
4123
4134
  }
4124
- function Bt(e, a = !0) {
4135
+ function It(e, a = !0) {
4125
4136
  const s = { ...{
4126
4137
  width: e.width ?? "160px",
4127
4138
  minWidth: e.width ?? "160px"
@@ -4164,7 +4175,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4164
4175
  ie();
4165
4176
  return;
4166
4177
  }
4167
- st.value = t, We.value = a, re(e, u);
4178
+ ut.value = t, We.value = a, re(e, u);
4168
4179
  }
4169
4180
  function Fa(e, a) {
4170
4181
  return !(e != null && e.actionColumn) || !a ? [] : (typeof e.actionColumn.actions == "function" ? e.actionColumn.actions(a) : e.actionColumn.actions || []).filter((s) => s.show ? s.show(a) : !0);
@@ -4180,7 +4191,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4180
4191
  var t;
4181
4192
  return (t = e.actionColumn) != null && t.buttonText ? typeof e.actionColumn.buttonText == "function" ? e.actionColumn.buttonText(a) : e.actionColumn.buttonText : "Actions";
4182
4193
  }
4183
- function It(e, a, t) {
4194
+ function zt(e, a, t) {
4184
4195
  var s;
4185
4196
  (s = e.actionColumn) != null && s.onAction ? e.actionColumn.onAction(a, t) : f("action-click", "default", a, t);
4186
4197
  }
@@ -4188,20 +4199,20 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4188
4199
  ["BUTTON", "A", "INPUT", "SELECT", "TEXTAREA", "SVG", "PATH"].includes(a.target.tagName) || f("row-click", e);
4189
4200
  };
4190
4201
  function Oa(e, a) {
4191
- a && (it.value[e] = a);
4202
+ a && (ot.value[e] = a);
4192
4203
  }
4193
4204
  function pn(e) {
4194
4205
  if (P.value.rowIndex === null) return;
4195
- const a = e.target, t = ot.value, s = Object.values(it.value), u = t == null ? void 0 : t.contains(a), N = s.some((ne) => ne.contains(a));
4206
+ const a = e.target, t = st.value, s = Object.values(ot.value), u = t == null ? void 0 : t.contains(a), N = s.some((ne) => ne.contains(a));
4196
4207
  !u && !N && ie();
4197
4208
  }
4198
4209
  return Ve(() => {
4199
4210
  document.addEventListener("click", pn), document.addEventListener("scroll", Ae), window.addEventListener("scroll", Ae), window.addEventListener("resize", Ae);
4200
4211
  }), de(
4201
- pt,
4212
+ at,
4202
4213
  (e) => {
4203
4214
  e.forEach((a) => {
4204
- a in be.value || (be.value[a] = null);
4215
+ a in _e.value || (_e.value[a] = null);
4205
4216
  });
4206
4217
  },
4207
4218
  { immediate: !0 }
@@ -4216,7 +4227,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4216
4227
  class: "shifl-grid__search-icon",
4217
4228
  color: "#253041"
4218
4229
  }),
4219
- Yt(m("input", {
4230
+ Gt(m("input", {
4220
4231
  "onUpdate:modelValue": a[0] || (a[0] = (t) => p.value = t),
4221
4232
  type: "text",
4222
4233
  placeholder: "Search",
@@ -4225,7 +4236,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4225
4236
  onFocus: a[1] || (a[1] = (t) => _.value = !0),
4226
4237
  onBlur: a[2] || (a[2] = (t) => _.value = !1)
4227
4238
  }, null, 544), [
4228
- [Gt, p.value]
4239
+ [Jt, p.value]
4229
4240
  ]),
4230
4241
  p.value ? (o(), g("button", {
4231
4242
  key: 0,
@@ -4248,7 +4259,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4248
4259
  ref_for: !0,
4249
4260
  ref: (u) => {
4250
4261
  var N;
4251
- return rt.value[((N = t == null ? void 0 : t.config) == null ? void 0 : N.key) || ""] = u;
4262
+ return it.value[((N = t == null ? void 0 : t.config) == null ? void 0 : N.key) || ""] = u;
4252
4263
  },
4253
4264
  config: t == null ? void 0 : t.config,
4254
4265
  "model-value": t == null ? void 0 : t.value,
@@ -4269,7 +4280,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4269
4280
  ref: H,
4270
4281
  "available-filters": Ut.value,
4271
4282
  "active-filter-keys": na.value,
4272
- "default-filter-keys": pt.value,
4283
+ "default-filter-keys": at.value,
4273
4284
  "has-active-filters-with-value": Qt.value,
4274
4285
  onAddFilter: aa,
4275
4286
  onRemoveFilter: la,
@@ -4312,7 +4323,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4312
4323
  ]),
4313
4324
  m("div", {
4314
4325
  ref_key: "gridViewport",
4315
- ref: Pt,
4326
+ ref: Et,
4316
4327
  class: le(["shifl-grid__viewport", {
4317
4328
  "shifl-grid__viewport--scroll": et.value,
4318
4329
  "shifl-grid__viewport--empty": !xe.value.length
@@ -4326,7 +4337,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4326
4337
  var s;
4327
4338
  return o(), g("th", {
4328
4339
  key: t.key,
4329
- style: Ne(Bt(t, !0)),
4340
+ style: Ne(It(t, !0)),
4330
4341
  onClick: () => da(t.key),
4331
4342
  class: le([
4332
4343
  "shifl-grid__header-cell",
@@ -4358,7 +4369,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4358
4369
  }, [
4359
4370
  (o(!0), g(oe, null, he(nt.value, (s) => (o(), g("td", {
4360
4371
  key: s.key,
4361
- style: Ne(Bt(s, !1)),
4372
+ style: Ne(It(s, !1)),
4362
4373
  class: le({ "shifl-grid__cell--sticky": s.freeze })
4363
4374
  }, [...a[9] || (a[9] = [
4364
4375
  m("div", { class: "shifl-grid__skeleton-cell" }, null, -1)
@@ -4369,7 +4380,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4369
4380
  }, [
4370
4381
  (o(!0), g(oe, null, he(nt.value, (u) => (o(), g("td", {
4371
4382
  key: u.key,
4372
- style: Ne(Bt(u, !1)),
4383
+ style: Ne(It(u, !1)),
4373
4384
  class: le([
4374
4385
  { "shifl-grid__cell--sticky": u.freeze },
4375
4386
  { "shifl-grid__cell--action": vt(u) },
@@ -4403,13 +4414,13 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4403
4414
  m("button", {
4404
4415
  type: "button",
4405
4416
  class: "shifl-grid__action-button",
4406
- onClick: Se(() => It(u, t, s), ["stop"])
4417
+ onClick: Se(() => zt(u, t, s), ["stop"])
4407
4418
  }, W(gn(u, t)), 9, wo)
4408
4419
  ])) : $t(u) === "icon" ? (o(), g("div", Mo, [
4409
4420
  m("button", {
4410
4421
  type: "button",
4411
4422
  class: "shifl-grid__action-icon",
4412
- onClick: Se(() => It(u, t, s), ["stop"])
4423
+ onClick: Se(() => zt(u, t, s), ["stop"])
4413
4424
  }, [
4414
4425
  typeof Pe(u, t) == "string" ? (o(), g("span", {
4415
4426
  key: 0,
@@ -4424,7 +4435,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4424
4435
  m("button", {
4425
4436
  type: "button",
4426
4437
  class: "shifl-grid__action-button-icon",
4427
- onClick: Se(() => It(u, t, s), ["stop"])
4438
+ onClick: Se(() => zt(u, t, s), ["stop"])
4428
4439
  }, [
4429
4440
  typeof Pe(u, t) == "string" ? (o(), g("span", {
4430
4441
  key: 0,
@@ -4477,13 +4488,13 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4477
4488
  key: 0,
4478
4489
  type: "button",
4479
4490
  class: "shifl-grid__counter-button",
4480
- onMouseenter: (N) => Rt(
4491
+ onMouseenter: (N) => Nt(
4481
4492
  u.key,
4482
4493
  s,
4483
4494
  t[u.key],
4484
4495
  N.currentTarget
4485
4496
  ),
4486
- onMouseleave: Nt
4497
+ onMouseleave: Ht
4487
4498
  }, " +" + W(Da(t[u.key], u.key, s)), 41, Ho)) : Z("", !0)
4488
4499
  ]))
4489
4500
  ], 64)) : ga(u) ? (o(), g("div", Bo, [
@@ -4497,28 +4508,28 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4497
4508
  ref_for: !0,
4498
4509
  ref: (N) => Ma(u.key, s, N)
4499
4510
  }, W(ya(t[u.key], u)), 513),
4500
- Ot(u.key) && Ca(t[u.key]) ? (o(), g("button", {
4511
+ Rt(u.key) && Ca(t[u.key]) ? (o(), g("button", {
4501
4512
  key: 0,
4502
4513
  type: "button",
4503
4514
  class: "shifl-grid__counter-button",
4504
- onMouseenter: (N) => Rt(
4515
+ onMouseenter: (N) => Nt(
4505
4516
  u.key,
4506
4517
  s,
4507
4518
  t[u.key],
4508
4519
  N.currentTarget
4509
4520
  ),
4510
- onMouseleave: Nt
4511
- }, " +" + W(ba(t[u.key])), 41, zo)) : !Ot(u.key) && _a(t[u.key], u.key) ? (o(), g("button", {
4521
+ onMouseleave: Ht
4522
+ }, " +" + W(ba(t[u.key])), 41, zo)) : !Rt(u.key) && _a(t[u.key], u.key) ? (o(), g("button", {
4512
4523
  key: 1,
4513
4524
  type: "button",
4514
4525
  class: "shifl-grid__info-icon-button",
4515
- onMouseenter: (N) => Rt(
4526
+ onMouseenter: (N) => Nt(
4516
4527
  u.key,
4517
4528
  s,
4518
4529
  t[u.key],
4519
4530
  N.currentTarget
4520
4531
  ),
4521
- onMouseleave: Nt
4532
+ onMouseleave: Ht
4522
4533
  }, [
4523
4534
  ge(Zl)
4524
4535
  ], 40, Zo)) : Z("", !0)
@@ -4528,13 +4539,13 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4528
4539
  class: "shifl-grid__link-cell",
4529
4540
  onClick: a[4] || (a[4] = Se(() => {
4530
4541
  }, ["stop"]))
4531
- }, W(Et(t[u.key], u)), 9, jo)) : Ta(u) ? (o(), g("div", {
4542
+ }, W(Ot(t[u.key], u)), 9, jo)) : Ta(u) ? (o(), g("div", {
4532
4543
  key: 8,
4533
4544
  class: "shifl-grid__reference-cell",
4534
4545
  onMouseenter: (N) => ka(String(t[u.key] || ""), N.currentTarget),
4535
- onMouseleave: Ht
4546
+ onMouseleave: Bt
4536
4547
  }, [
4537
- m("span", Wo, W(Et(t[u.key], u)), 1),
4548
+ m("span", Wo, W(Ot(t[u.key], u)), 1),
4538
4549
  t[u.key] ? (o(), g("button", {
4539
4550
  key: 0,
4540
4551
  class: "shifl-grid__copy-icon",
@@ -4544,7 +4555,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4544
4555
  ge(Kl)
4545
4556
  ], 8, Ko)) : Z("", !0)
4546
4557
  ], 40, qo)) : (o(), g(oe, { key: 9 }, [
4547
- Re(W(Et(t[u.key], u)), 1)
4558
+ Re(W(Ot(t[u.key], u)), 1)
4548
4559
  ], 64))
4549
4560
  ], 6))), 128))
4550
4561
  ], 8, ho))), 128))
@@ -4564,7 +4575,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4564
4575
  m("div", Qo, [
4565
4576
  m("span", Xo, [
4566
4577
  a[10] || (a[10] = Re(" Showing ", -1)),
4567
- m("span", es, W(ct.value.from) + "–" + W(ct.value.to), 1),
4578
+ m("span", es, W(dt.value.from) + "–" + W(dt.value.to), 1),
4568
4579
  Re(" of " + W(ze.value), 1)
4569
4580
  ])
4570
4581
  ]),
@@ -4577,14 +4588,14 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4577
4588
  onChange: In,
4578
4589
  class: "shifl-grid__pagination-select"
4579
4590
  }, [...a[11] || (a[11] = [
4580
- Kt('<option value="20">20</option><option value="30">30</option><option value="50">50</option><option value="75">75</option><option value="100">100</option>', 5)
4591
+ Yt('<option value="20">20</option><option value="30">30</option><option value="50">50</option><option value="75">75</option><option value="100">100</option>', 5)
4581
4592
  ])], 40, as)
4582
4593
  ]),
4583
4594
  m("div", ls, [
4584
4595
  m("button", {
4585
4596
  type: "button",
4586
4597
  class: "shifl-grid__pagination-button",
4587
- disabled: dt.value || c.loading,
4598
+ disabled: ft.value || c.loading,
4588
4599
  onClick: Hn,
4589
4600
  "aria-label": "Previous page"
4590
4601
  }, " ‹ ", 8, rs),
@@ -4595,14 +4606,14 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4595
4606
  type: "button",
4596
4607
  class: le(["shifl-grid__pagination-page", { "shifl-grid__pagination-page--active": t === Fe.value }]),
4597
4608
  disabled: w.value,
4598
- onClick: (s) => gt(t)
4609
+ onClick: (s) => pt(t)
4599
4610
  }, W(t), 11, os)) : (o(), g("span", ss, "…"))
4600
4611
  ], 64))), 128))
4601
4612
  ]),
4602
4613
  m("button", {
4603
4614
  type: "button",
4604
4615
  class: "shifl-grid__pagination-button",
4605
- disabled: ft.value || c.loading,
4616
+ disabled: gt.value || c.loading,
4606
4617
  onClick: Bn,
4607
4618
  "aria-label": "Next page"
4608
4619
  }, " › ", 8, us)
@@ -4613,7 +4624,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4613
4624
  $e(P).rowIndex !== null && $e(P).position ? (o(), g("div", {
4614
4625
  key: 0,
4615
4626
  ref_key: "actionMenuRef",
4616
- ref: ot,
4627
+ ref: st,
4617
4628
  class: "shifl-grid__action-menu",
4618
4629
  style: Ne(`
4619
4630
  position: fixed !important;
@@ -4623,7 +4634,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4623
4634
  onClick: a[5] || (a[5] = Se(() => {
4624
4635
  }, ["stop"]))
4625
4636
  }, [
4626
- (o(!0), g(oe, null, he(Fa(st.value, We.value), (t) => (o(), g("div", {
4637
+ (o(!0), g(oe, null, he(Fa(ut.value, We.value), (t) => (o(), g("div", {
4627
4638
  key: t.key,
4628
4639
  class: le(["shifl-grid__action-menu-item", { "shifl-grid__action-menu-item--danger": t.danger }]),
4629
4640
  onClick: () => Pa(t, We.value, $e(P).rowIndex)
@@ -4641,7 +4652,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4641
4652
  ], 4)) : Z("", !0)
4642
4653
  ])),
4643
4654
  ge(Ml, {
4644
- content: ut.value,
4655
+ content: ct.value,
4645
4656
  visible: Ke.value,
4646
4657
  "trigger-element": Ye.value,
4647
4658
  "is-html": Ge.value
@@ -4671,7 +4682,7 @@ const ki = { class: "grid__select-filter" }, wi = { class: "grid__filter-trigger
4671
4682
  "default-columns": B.value,
4672
4683
  onApply: yt,
4673
4684
  onClose: _t,
4674
- onToggle: Ce,
4685
+ onToggle: be,
4675
4686
  onToggleFreeze: $e(U),
4676
4687
  onMove: qe,
4677
4688
  onReset: mt
@@ -4718,7 +4729,7 @@ function Cs() {
4718
4729
  const n = Na(Rn);
4719
4730
  return S(() => (n == null ? void 0 : n.value) ?? Nn);
4720
4731
  }
4721
- const jt = {
4732
+ const qt = {
4722
4733
  sm: 640,
4723
4734
  lg: 1024
4724
4735
  };
@@ -4733,8 +4744,8 @@ function bs() {
4733
4744
  window.removeEventListener("resize", r);
4734
4745
  }), {
4735
4746
  width: n,
4736
- isMobile: S(() => n.value < jt.sm),
4737
- isTablet: S(() => n.value >= jt.sm && n.value < jt.lg)
4747
+ isMobile: S(() => n.value < qt.sm),
4748
+ isTablet: S(() => n.value >= qt.sm && n.value < qt.lg)
4738
4749
  };
4739
4750
  }
4740
4751
  function ks() {