@wx-design/components 0.10.13 → 0.10.14

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 (3) hide show
  1. package/es/index.mjs +312 -312
  2. package/lib/index.js +2 -2
  3. package/package.json +1 -1
package/es/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import Rr, { VxeColgroup as ea, Column as ta, Table as ra } from "vxe-table";
2
- import { computed as T, inject as Br, defineComponent as P, openBlock as F, createElementBlock as q, createElementVNode as U, watchEffect as jr, createBlock as k, unref as O, withCtx as j, createVNode as $, ref as R, watch as de, mergeProps as S, renderSlot as K, createCommentVNode as Se, onMounted as Lr, nextTick as Dr, isVNode as na, mergeDefaults as aa, provide as Nr, normalizeClass as la, toHandlers as oa, Fragment as Vr, renderList as Xe, createSlots as ia, normalizeProps as kr, guardReactiveProps as Kr, reactive as sa } from "vue";
2
+ import { computed as S, inject as Br, defineComponent as P, openBlock as F, createElementBlock as q, createElementVNode as U, watchEffect as jr, createBlock as k, unref as O, withCtx as j, createVNode as $, ref as R, watch as de, mergeProps as A, renderSlot as K, createCommentVNode as Se, onMounted as Lr, nextTick as Dr, isVNode as na, mergeDefaults as aa, provide as Nr, normalizeClass as la, toHandlers as oa, Fragment as Vr, renderList as Xe, createSlots as ia, normalizeProps as kr, guardReactiveProps as Kr, reactive as sa } from "vue";
3
3
  import { ElDropdown as ua, ElDropdownMenu as ca, ElDropdownItem as Et, ElCheckbox as Je, ElButton as Ze, ElTooltip as fa, ElInput as da, ElInputNumber as va, ElDatePicker as ga, ElSelect as Ur, ElOption as Qe, ElSwitch as ba, ElIcon as Mt, ElImage as Pt, ElPopover as Hr, ElDialog as pa, ElSelectV2 as ha } from "element-plus";
4
4
  import ya from "vuedraggable";
5
5
  var _e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -641,17 +641,17 @@ function we(e, t, r, n, a, l) {
641
641
  }
642
642
  }
643
643
  l || (l = new Jf());
644
- var b = l.get(e);
645
- if (b)
646
- return b;
647
- l.set(e, i), pd(e) ? e.forEach(function(d) {
648
- i.add(we(d, t, r, d, e, l));
649
- }) : gd(e) && e.forEach(function(d, v) {
650
- i.set(v, we(d, t, r, v, e, l));
644
+ var g = l.get(e);
645
+ if (g)
646
+ return g;
647
+ l.set(e, i), pd(e) ? e.forEach(function(m) {
648
+ i.add(we(m, t, r, m, e, l));
649
+ }) : gd(e) && e.forEach(function(m, d) {
650
+ i.set(d, we(m, t, r, d, e, l));
651
651
  });
652
- var h = u ? s ? id : od : s ? yd : hd, g = p ? void 0 : h(e);
653
- return Zf(g || e, function(d, v) {
654
- g && (v = d, d = e[v]), Qf(i, v, we(d, t, r, v, e, l));
652
+ var h = u ? s ? id : od : s ? yd : hd, v = p ? void 0 : h(e);
653
+ return Zf(v || e, function(m, d) {
654
+ v && (d = m, m = e[d]), Qf(i, d, we(m, t, r, d, e, l));
655
655
  }), i;
656
656
  }
657
657
  var bn = we, Gd = te, zd = Y, qd = "[object Symbol]";
@@ -866,26 +866,26 @@ function rb(e, t, r, n, a, l) {
866
866
  var u = l.get(e), p = l.get(t);
867
867
  if (u && p)
868
868
  return u == t && p == e;
869
- var f = -1, c = !0, b = r & tb ? new Jg() : void 0;
869
+ var f = -1, c = !0, g = r & tb ? new Jg() : void 0;
870
870
  for (l.set(e, t), l.set(t, e); ++f < o; ) {
871
- var h = e[f], g = t[f];
871
+ var h = e[f], v = t[f];
872
872
  if (n)
873
- var d = i ? n(g, h, f, t, e, l) : n(h, g, f, e, t, l);
874
- if (d !== void 0) {
875
- if (d)
873
+ var m = i ? n(v, h, f, t, e, l) : n(h, v, f, e, t, l);
874
+ if (m !== void 0) {
875
+ if (m)
876
876
  continue;
877
877
  c = !1;
878
878
  break;
879
879
  }
880
- if (b) {
881
- if (!Zg(t, function(v, y) {
882
- if (!Qg(b, y) && (h === v || a(h, v, r, n, l)))
883
- return b.push(y);
880
+ if (g) {
881
+ if (!Zg(t, function(d, b) {
882
+ if (!Qg(g, b) && (h === d || a(h, d, r, n, l)))
883
+ return g.push(b);
884
884
  })) {
885
885
  c = !1;
886
886
  break;
887
887
  }
888
- } else if (!(h === g || a(h, g, r, n, l))) {
888
+ } else if (!(h === v || a(h, v, r, n, l))) {
889
889
  c = !1;
890
890
  break;
891
891
  }
@@ -952,27 +952,27 @@ function Ib(e, t, r, n, a, l) {
952
952
  if (!(i ? c in t : Ob.call(t, c)))
953
953
  return !1;
954
954
  }
955
- var b = l.get(e), h = l.get(t);
956
- if (b && h)
957
- return b == t && h == e;
958
- var g = !0;
955
+ var g = l.get(e), h = l.get(t);
956
+ if (g && h)
957
+ return g == t && h == e;
958
+ var v = !0;
959
959
  l.set(e, t), l.set(t, e);
960
- for (var d = i; ++f < s; ) {
960
+ for (var m = i; ++f < s; ) {
961
961
  c = o[f];
962
- var v = e[c], y = t[c];
962
+ var d = e[c], b = t[c];
963
963
  if (n)
964
- var w = i ? n(y, v, c, t, e, l) : n(v, y, c, e, t, l);
965
- if (!(w === void 0 ? v === y || a(v, y, r, n, l) : w)) {
966
- g = !1;
964
+ var w = i ? n(b, d, c, t, e, l) : n(d, b, c, e, t, l);
965
+ if (!(w === void 0 ? d === b || a(d, b, r, n, l) : w)) {
966
+ v = !1;
967
967
  break;
968
968
  }
969
- d || (d = c == "constructor");
969
+ m || (m = c == "constructor");
970
970
  }
971
- if (g && !d) {
972
- var x = e.constructor, m = t.constructor;
973
- x != m && "constructor" in e && "constructor" in t && !(typeof x == "function" && x instanceof x && typeof m == "function" && m instanceof m) && (g = !1);
971
+ if (v && !m) {
972
+ var x = e.constructor, y = t.constructor;
973
+ x != y && "constructor" in e && "constructor" in t && !(typeof x == "function" && x instanceof x && typeof y == "function" && y instanceof y) && (v = !1);
974
974
  }
975
- return l.delete(e), l.delete(t), g;
975
+ return l.delete(e), l.delete(t), v;
976
976
  }
977
977
  var xb = Ib, Ge = vt, Eb = wn, Mb = Tb, Pb = xb, br = Ne, pr = N, hr = bt, Fb = tn, Rb = 1, yr = "[object Arguments]", mr = "[object Array]", Ce = "[object Object]", Bb = Object.prototype, $r = Bb.hasOwnProperty;
978
978
  function jb(e, t, r, n, a, l) {
@@ -987,10 +987,10 @@ function jb(e, t, r, n, a, l) {
987
987
  if (c && !p)
988
988
  return l || (l = new Ge()), i || Fb(e) ? Eb(e, t, r, n, a, l) : Mb(e, t, s, r, n, a, l);
989
989
  if (!(r & Rb)) {
990
- var b = p && $r.call(e, "__wrapped__"), h = f && $r.call(t, "__wrapped__");
991
- if (b || h) {
992
- var g = b ? e.value() : e, d = h ? t.value() : t;
993
- return l || (l = new Ge()), a(g, d, r, n, l);
990
+ var g = p && $r.call(e, "__wrapped__"), h = f && $r.call(t, "__wrapped__");
991
+ if (g || h) {
992
+ var v = g ? e.value() : e, m = h ? t.value() : t;
993
+ return l || (l = new Ge()), a(v, m, r, n, l);
994
994
  }
995
995
  }
996
996
  return c ? (l || (l = new Ge()), Pb(e, t, r, n, a, l)) : !1;
@@ -1201,47 +1201,47 @@ function Hh(e, t, r) {
1201
1201
  if (typeof e != "function")
1202
1202
  throw new TypeError(kh);
1203
1203
  t = Sr(t) || 0, Vh(r) && (p = !!r.leading, f = "maxWait" in r, l = f ? Kh(Sr(r.maxWait) || 0, t) : l, c = "trailing" in r ? !!r.trailing : c);
1204
- function b(_) {
1205
- var A = n, M = a;
1206
- return n = a = void 0, u = _, i = e.apply(M, A), i;
1204
+ function g(_) {
1205
+ var T = n, M = a;
1206
+ return n = a = void 0, u = _, i = e.apply(M, T), i;
1207
1207
  }
1208
1208
  function h(_) {
1209
- return u = _, o = setTimeout(v, t), p ? b(_) : i;
1209
+ return u = _, o = setTimeout(d, t), p ? g(_) : i;
1210
1210
  }
1211
- function g(_) {
1212
- var A = _ - s, M = _ - u, G = t - A;
1211
+ function v(_) {
1212
+ var T = _ - s, M = _ - u, G = t - T;
1213
1213
  return f ? Uh(G, l - M) : G;
1214
1214
  }
1215
- function d(_) {
1216
- var A = _ - s, M = _ - u;
1217
- return s === void 0 || A >= t || A < 0 || f && M >= l;
1215
+ function m(_) {
1216
+ var T = _ - s, M = _ - u;
1217
+ return s === void 0 || T >= t || T < 0 || f && M >= l;
1218
1218
  }
1219
- function v() {
1219
+ function d() {
1220
1220
  var _ = ze();
1221
- if (d(_))
1222
- return y(_);
1223
- o = setTimeout(v, g(_));
1221
+ if (m(_))
1222
+ return b(_);
1223
+ o = setTimeout(d, v(_));
1224
1224
  }
1225
- function y(_) {
1226
- return o = void 0, c && n ? b(_) : (n = a = void 0, i);
1225
+ function b(_) {
1226
+ return o = void 0, c && n ? g(_) : (n = a = void 0, i);
1227
1227
  }
1228
1228
  function w() {
1229
1229
  o !== void 0 && clearTimeout(o), u = 0, n = s = a = o = void 0;
1230
1230
  }
1231
1231
  function x() {
1232
- return o === void 0 ? i : y(ze());
1232
+ return o === void 0 ? i : b(ze());
1233
1233
  }
1234
- function m() {
1235
- var _ = ze(), A = d(_);
1236
- if (n = arguments, a = this, s = _, A) {
1234
+ function y() {
1235
+ var _ = ze(), T = m(_);
1236
+ if (n = arguments, a = this, s = _, T) {
1237
1237
  if (o === void 0)
1238
1238
  return h(s);
1239
1239
  if (f)
1240
- return clearTimeout(o), o = setTimeout(v, t), b(s);
1240
+ return clearTimeout(o), o = setTimeout(d, t), g(s);
1241
1241
  }
1242
- return o === void 0 && (o = setTimeout(v, t)), i;
1242
+ return o === void 0 && (o = setTimeout(d, t)), i;
1243
1243
  }
1244
- return m.cancel = w, m.flush = x, m;
1244
+ return y.cancel = w, y.flush = x, y;
1245
1245
  }
1246
1246
  var xn = Hh;
1247
1247
  const Ee = /* @__PURE__ */ L(xn);
@@ -1305,7 +1305,7 @@ const Xh = /* @__PURE__ */ L(Yh), ot = {
1305
1305
  total: "সংক্ষেপ"
1306
1306
  }
1307
1307
  }
1308
- }, e1 = (e) => ({ locale: T(() => {
1308
+ }, e1 = (e) => ({ locale: S(() => {
1309
1309
  switch (e.value) {
1310
1310
  case "zh-cn":
1311
1311
  return ot;
@@ -1547,25 +1547,25 @@ const Cy = /* @__PURE__ */ L(_y), wy = "sab-table-config-", Pn = (e) => `${wy}${
1547
1547
  "update:config-columns"
1548
1548
  ],
1549
1549
  setup(e, { emit: t }) {
1550
- const r = e, n = t, { locale: a } = Ot(), l = T(() => {
1551
- const c = [], b = [];
1550
+ const r = e, n = t, { locale: a } = Ot(), l = S(() => {
1551
+ const c = [], g = [];
1552
1552
  return (r.columns || []).forEach((h) => {
1553
- h.field && !h.noHeaderSet ? c.push(h) : b.push(h);
1553
+ h.field && !h.noHeaderSet ? c.push(h) : g.push(h);
1554
1554
  }), {
1555
1555
  sortables: c,
1556
- notSortables: b
1556
+ notSortables: g
1557
1557
  };
1558
1558
  }), i = (c) => {
1559
- const b = Ay(
1559
+ const g = Ay(
1560
1560
  l.value.sortables,
1561
1561
  c
1562
1562
  );
1563
1563
  n("update:columns", [
1564
1564
  ...l.value.notSortables,
1565
- ...b
1565
+ ...g
1566
1566
  ]), n("update:config-columns", c);
1567
- }, o = T({
1568
- get: () => l.value.sortables.map((c, b) => ({
1567
+ }, o = S({
1568
+ get: () => l.value.sortables.map((c, g) => ({
1569
1569
  field: c.field,
1570
1570
  title: c.title,
1571
1571
  visible: c.visible !== !1,
@@ -1575,22 +1575,22 @@ const Cy = /* @__PURE__ */ L(_y), wy = "sab-table-config-", Pn = (e) => `${wy}${
1575
1575
  }), s = jr(() => {
1576
1576
  var c;
1577
1577
  (c = r.initColumns) != null && c.length && (i(r.initColumns), s == null || s());
1578
- }), u = T({
1578
+ }), u = S({
1579
1579
  get: () => {
1580
1580
  var c;
1581
- return (c = o.value) == null ? void 0 : c.every((b) => b.visible);
1581
+ return (c = o.value) == null ? void 0 : c.every((g) => g.visible);
1582
1582
  },
1583
1583
  set: (c) => {
1584
- var b;
1585
- o.value = (b = o.value) == null ? void 0 : b.map((h) => (h.visible = c, h));
1584
+ var g;
1585
+ o.value = (g = o.value) == null ? void 0 : g.map((h) => (h.visible = c, h));
1586
1586
  }
1587
- }), p = T(() => {
1587
+ }), p = S(() => {
1588
1588
  var c;
1589
- return !u.value && ((c = o.value) == null ? void 0 : c.some((b) => b.visible));
1589
+ return !u.value && ((c = o.value) == null ? void 0 : c.some((g) => g.visible));
1590
1590
  }), f = () => {
1591
1591
  i(o.value);
1592
1592
  };
1593
- return (c, b) => (F(), k(O(ua), {
1593
+ return (c, g) => (F(), k(O(ua), {
1594
1594
  trigger: "click",
1595
1595
  "hide-on-click": !1,
1596
1596
  "popper-class": "sab-table-set-popper",
@@ -1607,7 +1607,7 @@ const Cy = /* @__PURE__ */ L(_y), wy = "sab-table-config-", Pn = (e) => `${wy}${
1607
1607
  class: "sab-table-set-dropdown--item-checkbox",
1608
1608
  indeterminate: p.value,
1609
1609
  modelValue: u.value,
1610
- "onUpdate:modelValue": b[0] || (b[0] = (g) => u.value = g),
1610
+ "onUpdate:modelValue": g[0] || (g[0] = (v) => u.value = v),
1611
1611
  label: (h = O(a)) == null ? void 0 : h.sabDesign.table.set.selectAll
1612
1612
  }, null, 8, ["indeterminate", "modelValue", "label"])
1613
1613
  ];
@@ -1616,7 +1616,7 @@ const Cy = /* @__PURE__ */ L(_y), wy = "sab-table-config-", Pn = (e) => `${wy}${
1616
1616
  }),
1617
1617
  $(O(ya), {
1618
1618
  modelValue: o.value,
1619
- "onUpdate:modelValue": b[1] || (b[1] = (h) => o.value = h),
1619
+ "onUpdate:modelValue": g[1] || (g[1] = (h) => o.value = h),
1620
1620
  animation: "300",
1621
1621
  itemKey: "field"
1622
1622
  }, {
@@ -1627,7 +1627,7 @@ const Cy = /* @__PURE__ */ L(_y), wy = "sab-table-config-", Pn = (e) => `${wy}${
1627
1627
  $(O(Je), {
1628
1628
  class: "sab-table-set-dropdown--item-checkbox",
1629
1629
  modelValue: h.visible,
1630
- "onUpdate:modelValue": (g) => h.visible = g,
1630
+ "onUpdate:modelValue": (v) => h.visible = v,
1631
1631
  onChange: f,
1632
1632
  label: h.title,
1633
1633
  title: h.title
@@ -1712,7 +1712,7 @@ const Cy = /* @__PURE__ */ L(_y), wy = "sab-table-config-", Pn = (e) => `${wy}${
1712
1712
  immediate: !0
1713
1713
  }
1714
1714
  );
1715
- const l = t, i = T({
1715
+ const l = t, i = S({
1716
1716
  get: () => r.columns || [],
1717
1717
  set: (o) => l("update:columns", o)
1718
1718
  });
@@ -1749,9 +1749,9 @@ const Cy = /* @__PURE__ */ L(_y), wy = "sab-table-config-", Pn = (e) => `${wy}${
1749
1749
  const r = e, n = t;
1750
1750
  return (a, l) => {
1751
1751
  var i;
1752
- return F(), q("div", S({
1752
+ return F(), q("div", A({
1753
1753
  class: ["sab-table-toolbar", r.class]
1754
- }, a.$attrs), [U("div", xy, [K(a.$slots, "default")]), U("div", Ey, [K(a.$slots, "toolbar-right"), r.name && ((i = a.tableSetConfig) == null ? void 0 : i.enabled) !== !1 ? (F(), k(Iy, S({
1754
+ }, a.$attrs), [U("div", xy, [K(a.$slots, "default")]), U("div", Ey, [K(a.$slots, "toolbar-right"), r.name && ((i = a.tableSetConfig) == null ? void 0 : i.enabled) !== !1 ? (F(), k(Iy, A({
1755
1755
  key: 0,
1756
1756
  name: r.name
1757
1757
  }, a.tableSetConfig, {
@@ -1950,7 +1950,7 @@ const z = (e, t) => {
1950
1950
  const n = (a) => {
1951
1951
  r("update:modelValue", a);
1952
1952
  };
1953
- return () => $(da, S({
1953
+ return () => $(da, A({
1954
1954
  size: "small",
1955
1955
  modelValue: e.modelValue,
1956
1956
  onInput: n
@@ -1967,7 +1967,7 @@ const z = (e, t) => {
1967
1967
  row: r,
1968
1968
  column: n
1969
1969
  } = e, a = z(e, t);
1970
- return $(jn, S({
1970
+ return $(jn, A({
1971
1971
  modelValue: r[n.field],
1972
1972
  "onUpdate:modelValue": (l) => r[n.field] = l
1973
1973
  }, a), null);
@@ -1983,7 +1983,7 @@ const z = (e, t) => {
1983
1983
  const n = (a, l) => {
1984
1984
  r("update:modelValue", a, l);
1985
1985
  };
1986
- return () => $(va, S({
1986
+ return () => $(va, A({
1987
1987
  size: "small",
1988
1988
  modelValue: e.modelValue,
1989
1989
  controlsPosition: "right",
@@ -2002,7 +2002,7 @@ const z = (e, t) => {
2002
2002
  row: r,
2003
2003
  column: n
2004
2004
  } = e, a = z(e, t);
2005
- return $(Dn, S({
2005
+ return $(Dn, A({
2006
2006
  modelValue: r[n.field],
2007
2007
  "onUpdate:modelValue": (l) => r[n.field] = l
2008
2008
  }, a), null);
@@ -2018,7 +2018,7 @@ const z = (e, t) => {
2018
2018
  const n = (a) => {
2019
2019
  r("update:modelValue", a);
2020
2020
  };
2021
- return () => $(ga, S({
2021
+ return () => $(ga, A({
2022
2022
  size: "small",
2023
2023
  format: "YYYY-MM-DD HH:mm:ss",
2024
2024
  valueFormat: "YYYY-MM-DD HH:mm:ss",
@@ -2037,7 +2037,7 @@ const z = (e, t) => {
2037
2037
  row: r,
2038
2038
  column: n
2039
2039
  } = e, a = z(e, t);
2040
- return $(Vn, S({
2040
+ return $(Vn, A({
2041
2041
  modelValue: r[n.field],
2042
2042
  "onUpdate:modelValue": (l) => r[n.field] = l
2043
2043
  }, a), null);
@@ -2077,78 +2077,78 @@ const z = (e, t) => {
2077
2077
  attrs: t,
2078
2078
  emit: r
2079
2079
  }) {
2080
- var g;
2080
+ var m;
2081
2081
  const {
2082
2082
  renderOption: n,
2083
2083
  renderOptionLabel: a,
2084
2084
  scope: l,
2085
2085
  ...i
2086
- } = t, o = R([]), s = T(() => e.options || o.value || []), u = R(""), p = T(() => u.value && !e.remote ? s.value.filter((d) => `${d[e.labelKey]}${d[e.valueKey]}`.toLowerCase().includes(u.value.toLowerCase())) : s.value), f = (d) => {
2087
- var v, y;
2086
+ } = t, o = R([]), s = S(() => e.options || o.value || []), u = R(""), p = S(() => u.value && !e.remote ? s.value.filter((d) => `${d[e.labelKey]}${d[e.valueKey]}`.toLowerCase().includes(u.value.toLowerCase())) : s.value), f = (d) => {
2087
+ var b, w;
2088
2088
  if (r("update:modelValue", d), Array.isArray(d)) {
2089
- const w = d.map((x) => {
2090
- var m;
2091
- return (m = s.value.find((_) => _[e.valueKey] === x)) == null ? void 0 : m[e.labelKey];
2089
+ const x = d.map((y) => {
2090
+ var _;
2091
+ return (_ = s.value.find((T) => T[e.valueKey] === y)) == null ? void 0 : _[e.labelKey];
2092
2092
  });
2093
- r("update:label", w);
2093
+ r("update:label", x);
2094
2094
  } else {
2095
- const w = (v = s.value.find((x) => x[e.valueKey] === d)) == null ? void 0 : v[e.labelKey];
2096
- r("update:label", w);
2095
+ const x = (b = s.value.find((y) => y[e.valueKey] === d)) == null ? void 0 : b[e.labelKey];
2096
+ r("update:label", x);
2097
2097
  }
2098
- (y = e == null ? void 0 : e.onChange) == null || y.call(e, d, {
2098
+ (w = e == null ? void 0 : e.onChange) == null || w.call(e, d, {
2099
2099
  options: s.value
2100
2100
  });
2101
- }, c = R(!1), b = Ee(async (d) => {
2102
- var v;
2101
+ }, c = R(!1), g = Ee(async (d) => {
2102
+ var b;
2103
2103
  try {
2104
2104
  c.value = !0;
2105
- const y = await ((v = e.dynamicOptions) == null ? void 0 : v.call(e, {
2105
+ const w = await ((b = e.dynamicOptions) == null ? void 0 : b.call(e, {
2106
2106
  ...l,
2107
2107
  keywords: d
2108
2108
  }));
2109
- o.value = y;
2109
+ o.value = w;
2110
2110
  } finally {
2111
2111
  c.value = !1;
2112
2112
  }
2113
- }, ((g = e.dynamicDebounce) == null ? void 0 : g.delay) ?? 300, {
2113
+ }, ((m = e.dynamicDebounce) == null ? void 0 : m.delay) ?? 300, {
2114
2114
  leading: !1,
2115
2115
  trailing: !0,
2116
2116
  ...e.dynamicDebounce
2117
2117
  });
2118
2118
  Lr(() => {
2119
- typeof e.dynamicOptions == "function" && b();
2119
+ typeof e.dynamicOptions == "function" && g();
2120
2120
  });
2121
2121
  const h = () => {
2122
- e.revalidateOnFocus && b();
2123
- };
2124
- return () => $(Ur, S({
2122
+ e.revalidateOnFocus && g();
2123
+ }, v = S(() => e.remote ? void 0 : (d) => u.value = d);
2124
+ return () => $(Ur, A({
2125
2125
  size: "small",
2126
2126
  filterable: !0,
2127
2127
  modelValue: e.modelValue,
2128
2128
  loading: c.value,
2129
2129
  teleported: !1,
2130
- filterMethod: (d) => u.value = d,
2130
+ filterMethod: v.value,
2131
2131
  remote: e.remote,
2132
- remoteMethod: b,
2132
+ remoteMethod: g,
2133
2133
  onFocus: h
2134
2134
  }, i, {
2135
2135
  onChange: f
2136
2136
  }), {
2137
2137
  default: () => {
2138
2138
  var d;
2139
- return [(d = p.value) == null ? void 0 : d.map((v) => {
2140
- const y = typeof a == "function" ? a(v) : v[e.labelKey];
2139
+ return [(d = p.value) == null ? void 0 : d.map((b) => {
2140
+ const w = typeof a == "function" ? a(b) : b[e.labelKey];
2141
2141
  return $(Qe, {
2142
- key: v[e.valueKey],
2143
- value: v[e.valueKey],
2144
- label: y,
2145
- disabled: v[e.disabledKey]
2142
+ key: b[e.valueKey],
2143
+ value: b[e.valueKey],
2144
+ label: w,
2145
+ disabled: b[e.disabledKey]
2146
2146
  }, {
2147
- default: () => [typeof n == "function" ? n(v) : $("span", {
2147
+ default: () => [typeof n == "function" ? n(b) : $("span", {
2148
2148
  style: {
2149
2149
  fontWeight: "normal"
2150
2150
  }
2151
- }, [v[e.labelKey]])]
2151
+ }, [b[e.labelKey]])]
2152
2152
  });
2153
2153
  })];
2154
2154
  }
@@ -2166,7 +2166,7 @@ const z = (e, t) => {
2166
2166
  row: r,
2167
2167
  column: n
2168
2168
  } = e, a = z(e, t);
2169
- return a != null && a.effectValueField ? $(it, S({
2169
+ return a != null && a.effectValueField ? $(it, A({
2170
2170
  automaticDropdown: !0,
2171
2171
  modelValue: r[a.effectValueField],
2172
2172
  "onUpdate:modelValue": (l) => r[a.effectValueField] = l,
@@ -2174,7 +2174,7 @@ const z = (e, t) => {
2174
2174
  "onUpdate:label": (l) => r[n.field] = l
2175
2175
  }, a, {
2176
2176
  scope: e
2177
- }), null) : $(it, S({
2177
+ }), null) : $(it, A({
2178
2178
  automaticDropdown: !0,
2179
2179
  modelValue: r[n.field],
2180
2180
  "onUpdate:modelValue": (l) => r[n.field] = l
@@ -2197,7 +2197,7 @@ const z = (e, t) => {
2197
2197
  row: o.row,
2198
2198
  column: o.column
2199
2199
  }) : s;
2200
- }, a = T({
2200
+ }, a = S({
2201
2201
  get() {
2202
2202
  return typeof e.valueTrue == "function" ? e.modelValue === e.valueTrue({
2203
2203
  row: e.row,
@@ -2218,7 +2218,7 @@ const z = (e, t) => {
2218
2218
  });
2219
2219
  });
2220
2220
  };
2221
- return e.showType === "switch" ? () => $(ba, S({
2221
+ return e.showType === "switch" ? () => $(ba, A({
2222
2222
  size: "small",
2223
2223
  style: {
2224
2224
  lineHieght: 1
@@ -2226,7 +2226,7 @@ const z = (e, t) => {
2226
2226
  modelValue: a.value,
2227
2227
  onChange: l,
2228
2228
  disabled: e.disabled
2229
- }, r), null) : () => $(Je, S({
2229
+ }, r), null) : () => $(Je, A({
2230
2230
  style: {
2231
2231
  lineHieght: 1
2232
2232
  },
@@ -2263,11 +2263,11 @@ const z = (e, t) => {
2263
2263
  const {
2264
2264
  row: r,
2265
2265
  column: n
2266
- } = e, a = z(e, t), l = Br("table-config"), i = T(() => {
2266
+ } = e, a = z(e, t), l = Br("table-config"), i = S(() => {
2267
2267
  var o, s;
2268
2268
  return n.editable || ((s = (o = l.value) == null ? void 0 : o.editConfig) == null ? void 0 : s.enabled);
2269
2269
  });
2270
- return $(Un, S({
2270
+ return $(Un, A({
2271
2271
  modelValue: r[n.field],
2272
2272
  "onUpdate:modelValue": (o) => r[n.field] = o,
2273
2273
  showType: "checkbox",
@@ -2288,7 +2288,7 @@ const z = (e, t) => {
2288
2288
  setup(e, {
2289
2289
  emit: t
2290
2290
  }) {
2291
- const r = e.column, n = r.headerFilterConfig, a = (n == null ? void 0 : n.sabCellType) || r.sabCellType, l = T(() => {
2291
+ const r = e.column, n = r.headerFilterConfig, a = (n == null ? void 0 : n.sabCellType) || r.sabCellType, l = S(() => {
2292
2292
  var o;
2293
2293
  return n != null && n.extendFromColumnEditor ? B(
2294
2294
  // @ts-ignore
@@ -2296,20 +2296,20 @@ const z = (e, t) => {
2296
2296
  (n == null ? void 0 : n.editorProps) || {}
2297
2297
  ) : n == null ? void 0 : n.editorProps;
2298
2298
  }), i = R(e.headerFilterModel[r.field]);
2299
- return () => a === C.InputNumber ? $(Dn, S({
2299
+ return () => a === C.InputNumber ? $(Dn, A({
2300
2300
  modelValue: e.headerFilterModel[r.field],
2301
2301
  "onUpdate:modelValue": (o) => e.headerFilterModel[r.field] = o
2302
- }, l.value), null) : a === C.Boolean ? $(Un, S({
2302
+ }, l.value), null) : a === C.Boolean ? $(Un, A({
2303
2303
  modelValue: e.headerFilterModel[r.field],
2304
2304
  "onUpdate:modelValue": (o) => e.headerFilterModel[r.field] = o
2305
- }, l.value), null) : a === C.DatePciker ? $(Vn, S({
2305
+ }, l.value), null) : a === C.DatePciker ? $(Vn, A({
2306
2306
  format: "YYYY-MM-DD HH:mm:ss",
2307
2307
  modelValue: e.headerFilterModel[r.field],
2308
2308
  "onUpdate:modelValue": (o) => e.headerFilterModel[r.field] = o
2309
2309
  }, l.value, {
2310
2310
  type: "datetimerange",
2311
2311
  prefixIcon: $("span", null, null)
2312
- }), null) : a === C.Select ? $(it, S({
2312
+ }), null) : a === C.Select ? $(it, A({
2313
2313
  modelValue: e.headerFilterModel[r.field],
2314
2314
  "onUpdate:modelValue": (o) => e.headerFilterModel[r.field] = o
2315
2315
  }, l.value, {
@@ -2317,7 +2317,7 @@ const z = (e, t) => {
2317
2317
  clearable: !0,
2318
2318
  "collapse-tags": !0,
2319
2319
  "collapse-tags-tooltip": !0
2320
- }), null) : a === C.Image || a === C.Dynamic || !r.field ? null : $(jn, S({
2320
+ }), null) : a === C.Image || a === C.Dynamic || !r.field ? null : $(jn, A({
2321
2321
  modelValue: i.value,
2322
2322
  "onUpdate:modelValue": (o) => i.value = o
2323
2323
  }, l.value, {
@@ -2369,10 +2369,10 @@ const z = (e, t) => {
2369
2369
  headerFilterModel: r = {},
2370
2370
  xTable: n,
2371
2371
  data: a
2372
- } = e, l = t.field, i = T(() => {
2372
+ } = e, l = t.field, i = S(() => {
2373
2373
  var u, p, f;
2374
2374
  if ((u = t.headerFilterConfig) != null && u.enable && ((p = t.headerFilterConfig) != null && p.autoCollect))
2375
- return Bn(a.value, l).sort((c, b) => c[l] < b[l] ? 1 : -1).map((c) => ({
2375
+ return Bn(a.value, l).sort((c, g) => c[l] < g[l] ? 1 : -1).map((c) => ({
2376
2376
  label: c[l],
2377
2377
  value: c[l]
2378
2378
  }));
@@ -2385,7 +2385,7 @@ const z = (e, t) => {
2385
2385
  row: p,
2386
2386
  ...f
2387
2387
  }) => {
2388
- var h, g, d;
2388
+ var h, v, m;
2389
2389
  if (typeof t.filterMethod == "function")
2390
2390
  return t.filterMethod({
2391
2391
  option: u,
@@ -2398,48 +2398,48 @@ const z = (e, t) => {
2398
2398
  row: p,
2399
2399
  ...f
2400
2400
  });
2401
- const c = T(() => {
2402
- var v, y, w, x;
2403
- return (v = t == null ? void 0 : t.headerFilterConfig) != null && v.extendFromColumnEditor ? B(
2401
+ const c = S(() => {
2402
+ var d, b, w, x;
2403
+ return (d = t == null ? void 0 : t.headerFilterConfig) != null && d.extendFromColumnEditor ? B(
2404
2404
  // @ts-ignore
2405
- t.editorProps || ((y = t.editRender) == null ? void 0 : y.editorProps) || {},
2405
+ t.editorProps || ((b = t.editRender) == null ? void 0 : b.editorProps) || {},
2406
2406
  ((w = t.headerFilterConfig) == null ? void 0 : w.editorProps) || {}
2407
2407
  ) : (x = t == null ? void 0 : t.headerFilterConfig) == null ? void 0 : x.editorProps;
2408
- }), b = u.data ?? u.value;
2409
- if (typeof b < "u" && t.field) {
2410
- let v = ((d = p[((g = c.value) == null ? void 0 : g.effectValueField) || t.field]) == null ? void 0 : d.toString().toLowerCase()) || "";
2411
- if (Array.isArray(b)) {
2412
- for (let y of b)
2413
- if (v.includes(y == null ? void 0 : y.toString().toLowerCase()))
2408
+ }), g = u.data ?? u.value;
2409
+ if (typeof g < "u" && t.field) {
2410
+ let d = ((m = p[((v = c.value) == null ? void 0 : v.effectValueField) || t.field]) == null ? void 0 : m.toString().toLowerCase()) || "";
2411
+ if (Array.isArray(g)) {
2412
+ for (let b of g)
2413
+ if (d.includes(b == null ? void 0 : b.toString().toLowerCase()))
2414
2414
  return !0;
2415
- if (b.length === 2) {
2416
- let [y, w] = b;
2417
- return t.sabCellType === C.DatePciker && (y = new Date(y), w = new Date(w), v = new Date(v)), v >= y && v <= w;
2415
+ if (g.length === 2) {
2416
+ let [b, w] = g;
2417
+ return t.sabCellType === C.DatePciker && (b = new Date(b), w = new Date(w), d = new Date(d)), d >= b && d <= w;
2418
2418
  }
2419
2419
  }
2420
- return v.includes(b == null ? void 0 : b.toString().toLowerCase());
2420
+ return d.includes(g == null ? void 0 : g.toString().toLowerCase());
2421
2421
  }
2422
2422
  return !0;
2423
2423
  };
2424
2424
  return de(() => r[t.field], (u) => {
2425
- var f, c, b;
2425
+ var f, c, g;
2426
2426
  if (!((f = t.headerFilterConfig) != null && f.enable))
2427
2427
  return;
2428
2428
  const p = n.value;
2429
2429
  if (p) {
2430
2430
  const h = p.getColumnByField(t.field);
2431
2431
  if (h) {
2432
- const g = h.filters[0];
2433
- g.data = u, u === "" || u === null || typeof u > "u" || Array.isArray(u) && u.length === 0 ? g.checked = !1 : g.checked = !0, p.updateData();
2434
- const d = (c = n.value) == null ? void 0 : c.getCheckedFilters();
2435
- (b = e.onFilter) == null || b.call(e, {
2432
+ const v = h.filters[0];
2433
+ v.data = u, u === "" || u === null || typeof u > "u" || Array.isArray(u) && u.length === 0 ? v.checked = !1 : v.checked = !0, p.updateData();
2434
+ const m = (c = n.value) == null ? void 0 : c.getCheckedFilters();
2435
+ (g = e.onFilter) == null || g.call(e, {
2436
2436
  $table: n.value,
2437
2437
  // @ts-ignore
2438
2438
  column: t,
2439
2439
  field: t.field,
2440
2440
  values: Array.isArray(u) ? u : [u],
2441
- filters: d,
2442
- filterList: d
2441
+ filters: m,
2442
+ filterList: m
2443
2443
  });
2444
2444
  }
2445
2445
  }
@@ -2470,57 +2470,57 @@ const Gn = /* @__PURE__ */ P({
2470
2470
  headerFilterModel: o,
2471
2471
  children: s,
2472
2472
  ...u
2473
- } = t, p = T(() => {
2474
- const v = {};
2475
- return Object.keys(a || {}).forEach((y) => {
2476
- v[y] = (w) => typeof a[y] == "string" ? r[a[y]](w) : typeof a[y] == "function" ? a[y](w, l) : null;
2477
- }), v;
2478
- }), f = T(() => e.xTable), c = T(() => e.data), {
2479
- filters: b,
2473
+ } = t, p = S(() => {
2474
+ const d = {};
2475
+ return Object.keys(a || {}).forEach((b) => {
2476
+ d[b] = (w) => typeof a[b] == "string" ? r[a[b]](w) : typeof a[b] == "function" ? a[b](w, l) : null;
2477
+ }), d;
2478
+ }), f = S(() => e.xTable), c = S(() => e.data), {
2479
+ filters: g,
2480
2480
  filterMethod: h
2481
2481
  } = xm({
2482
2482
  data: c,
2483
2483
  column: u,
2484
2484
  headerFilterModel: o,
2485
2485
  xTable: f,
2486
- onFilter: (v) => n("filter-change", v)
2487
- }), g = T(() => {
2488
- var v, y;
2486
+ onFilter: (d) => n("filter-change", d)
2487
+ }), v = S(() => {
2488
+ var d, b;
2489
2489
  return ke(u.headerClassName, {
2490
- "sab-table-header-filter-column": ((v = u.headerFilterConfig) == null ? void 0 : v.enable) && !((y = u.headerFilterConfig) != null && y.autoCollect)
2490
+ "sab-table-header-filter-column": ((d = u.headerFilterConfig) == null ? void 0 : d.enable) && !((b = u.headerFilterConfig) != null && b.autoCollect)
2491
2491
  });
2492
- }), d = T(() => {
2493
- var v, y;
2494
- return ((v = u.headerFilterConfig) == null ? void 0 : v.enable) && !((y = u.headerFilterConfig) != null && y.autoCollect) && u.type != "checkbox" && u.type != "radio" && u.type != "seq";
2492
+ }), m = S(() => {
2493
+ var d, b;
2494
+ return ((d = u.headerFilterConfig) == null ? void 0 : d.enable) && !((b = u.headerFilterConfig) != null && b.autoCollect) && u.type != "checkbox" && u.type != "radio" && u.type != "seq";
2495
2495
  });
2496
2496
  return Array.isArray(s) && s.length > 0 ? () => {
2497
- let v;
2497
+ let d;
2498
2498
  return $(ea, {
2499
2499
  title: i
2500
- }, Em(v = s.map((y) => $(Gn, S({
2500
+ }, Em(d = s.map((b) => $(Gn, A({
2501
2501
  headerFilterModel: o,
2502
2502
  data: e.data,
2503
2503
  xTable: e.xTable,
2504
- key: y.field,
2504
+ key: b.field,
2505
2505
  visible: !0
2506
- }, y), null))) ? v : {
2507
- default: () => [v]
2506
+ }, b), null))) ? d : {
2507
+ default: () => [d]
2508
2508
  });
2509
- } : () => $(ta, S(u, {
2510
- filters: b.value,
2511
- headerClassName: g.value,
2509
+ } : () => $(ta, A(u, {
2510
+ filters: g.value,
2511
+ headerClassName: v.value,
2512
2512
  filterMethod: h
2513
2513
  }), {
2514
2514
  ...p.value,
2515
- header: d.value ? (v) => $(Im, {
2515
+ header: m.value ? (d) => $(Im, {
2516
2516
  column: t,
2517
2517
  headerFilterModel: o
2518
2518
  }, {
2519
2519
  default: () => {
2520
- var y, w;
2520
+ var b, w;
2521
2521
  return (
2522
2522
  // @ts-ignore
2523
- ((w = (y = p.value).header) == null ? void 0 : w.call(y, v)) ?? i
2523
+ ((w = (b = p.value).header) == null ? void 0 : w.call(b, d)) ?? i
2524
2524
  );
2525
2525
  }
2526
2526
  }) : void 0
@@ -2682,7 +2682,7 @@ const Lm = /* @__PURE__ */ L(jm), Dm = /* @__PURE__ */ P({
2682
2682
  setup(e, {
2683
2683
  attrs: t
2684
2684
  }) {
2685
- return e.src ? e.preview ? () => $(Pt, S({
2685
+ return e.src ? e.preview ? () => $(Pt, A({
2686
2686
  lazy: !0,
2687
2687
  fit: "contain",
2688
2688
  src: e.src,
@@ -2708,7 +2708,7 @@ const Lm = /* @__PURE__ */ L(jm), Dm = /* @__PURE__ */ P({
2708
2708
  }, {
2709
2709
  default: () => [$(Ar, null, null)]
2710
2710
  }),
2711
- default: () => $(Pt, S({
2711
+ default: () => $(Pt, A({
2712
2712
  lazy: !0,
2713
2713
  src: e.src,
2714
2714
  style: {
@@ -2745,7 +2745,7 @@ const Lm = /* @__PURE__ */ L(jm), Dm = /* @__PURE__ */ P({
2745
2745
  },
2746
2746
  name: "SabCellColor",
2747
2747
  setup(e) {
2748
- const t = T(() => {
2748
+ const t = S(() => {
2749
2749
  var r, n;
2750
2750
  return ((r = e.color) == null ? void 0 : r.length) === 6 ? `#${e.color}` : ((n = e.color) == null ? void 0 : n.length) === 9 ? `rgb(${e.color.substring(0, 3)},${e.color.substring(3, 6)},${e.color.substring(6, 9)})` : e.color;
2751
2751
  });
@@ -2782,15 +2782,15 @@ const Lm = /* @__PURE__ */ L(jm), Dm = /* @__PURE__ */ P({
2782
2782
  const {
2783
2783
  scope: n,
2784
2784
  popover: a
2785
- } = e, l = R(), i = T(() => a.showType === "dialog"), o = R(!1), s = R(), u = () => {
2786
- const b = R(!1);
2785
+ } = e, l = R(), i = S(() => a.showType === "dialog"), o = R(!1), s = R(), u = () => {
2786
+ const g = R(!1);
2787
2787
  return {
2788
- showDialog: b,
2788
+ showDialog: g,
2789
2789
  onCloseDialog: () => {
2790
- b.value = !1;
2790
+ g.value = !1;
2791
2791
  },
2792
2792
  onShowDialog: () => {
2793
- b.value = !0, o.value = !0;
2793
+ g.value = !0, o.value = !0;
2794
2794
  }
2795
2795
  };
2796
2796
  }, {
@@ -2799,15 +2799,15 @@ const Lm = /* @__PURE__ */ L(jm), Dm = /* @__PURE__ */ P({
2799
2799
  onShowDialog: c
2800
2800
  } = u();
2801
2801
  return r({
2802
- popoverRef: T(() => ({
2802
+ popoverRef: S(() => ({
2803
2803
  ...s.value,
2804
2804
  hide: () => {
2805
- var b;
2806
- o.value = !1, i.value || (b = s.value) == null || b.hide();
2805
+ var g;
2806
+ o.value = !1, i.value || (g = s.value) == null || g.hide();
2807
2807
  }
2808
2808
  }))
2809
2809
  }), () => {
2810
- var b;
2810
+ var g;
2811
2811
  return $("div", null, [$("div", {
2812
2812
  class: "sab-cell-popover-inner",
2813
2813
  style: {
@@ -2818,12 +2818,12 @@ const Lm = /* @__PURE__ */ L(jm), Dm = /* @__PURE__ */ P({
2818
2818
  onClick: c
2819
2819
  }, [$("span", {
2820
2820
  class: "sab-cell-popover-inner-ctx"
2821
- }, [(b = t.default) == null ? void 0 : b.call(t)]), !(a != null && a.hideIcon) && $(Ze, {
2821
+ }, [(g = t.default) == null ? void 0 : g.call(t)]), !(a != null && a.hideIcon) && $(Ze, {
2822
2822
  round: !1,
2823
2823
  class: "sab-cell-popover-inner-btn",
2824
2824
  size: "small",
2825
2825
  icon: $(r1, null, null)
2826
- }, null)]), i.value ? p.value && $(pa, S({
2826
+ }, null)]), i.value ? p.value && $(pa, A({
2827
2827
  ref: s,
2828
2828
  modelValue: o.value,
2829
2829
  "onUpdate:modelValue": (h) => o.value = h,
@@ -2840,7 +2840,7 @@ const Lm = /* @__PURE__ */ L(jm), Dm = /* @__PURE__ */ P({
2840
2840
  var h;
2841
2841
  return [(h = t.popover) == null ? void 0 : h.call(t, n)];
2842
2842
  }
2843
- }) : $(Hr, S({
2843
+ }) : $(Hr, A({
2844
2844
  ref: s,
2845
2845
  persistent: !1,
2846
2846
  "virtual-ref": l,
@@ -2866,7 +2866,7 @@ const Lm = /* @__PURE__ */ L(jm), Dm = /* @__PURE__ */ P({
2866
2866
  const {
2867
2867
  row: r,
2868
2868
  column: n
2869
- } = e, a = z(e, t), l = R(), i = T(() => {
2869
+ } = e, a = z(e, t), l = R(), i = S(() => {
2870
2870
  var o;
2871
2871
  return (o = l.value) == null ? void 0 : o.popoverRef;
2872
2872
  });
@@ -3018,10 +3018,10 @@ const Jn = [
3018
3018
  "custom"
3019
3019
  ], Jm = (e) => {
3020
3020
  const { checkboxRecords: t, emit: r, xTable: n, tableConfig: a } = e, l = (f = []) => {
3021
- var g, d, v, y;
3022
- const c = ((g = n.value) == null ? void 0 : g.getCheckboxRecords()) || [], b = ((d = n.value) == null ? void 0 : d.getCheckboxRecords(!0)) || [], h = ((v = a.value.rowConfig) == null ? void 0 : v.keyField) || ((y = a.value.rowConfig) != null && y.useKey ? "_X_ROW_KEY" : void 0);
3021
+ var v, m, d, b;
3022
+ const c = ((v = n.value) == null ? void 0 : v.getCheckboxRecords()) || [], g = ((m = n.value) == null ? void 0 : m.getCheckboxRecords(!0)) || [], h = ((d = a.value.rowConfig) == null ? void 0 : d.keyField) || ((b = a.value.rowConfig) != null && b.useKey ? "_X_ROW_KEY" : void 0);
3023
3023
  return h ? Bn(
3024
- [...f, ...c, ...b],
3024
+ [...f, ...c, ...g],
3025
3025
  h
3026
3026
  ) : c;
3027
3027
  }, i = (f) => {
@@ -3035,17 +3035,17 @@ const Jn = [
3035
3035
  t.value = c || [], r("checkbox-range-end", { ...f, records: c });
3036
3036
  }, u = {
3037
3037
  "cell-click": async (f) => {
3038
- var g, d, v, y, w, x;
3039
- const { row: c, column: b } = f, h = (g = n.value) == null ? void 0 : g.isCheckedByCheckboxRow(c);
3040
- if (ce.has(Te.Shift) && b.field == "sab-table-seq") {
3038
+ var v, m, d, b, w, x;
3039
+ const { row: c, column: g } = f, h = (v = n.value) == null ? void 0 : v.isCheckedByCheckboxRow(c);
3040
+ if (ce.has(Te.Shift) && g.field == "sab-table-seq") {
3041
3041
  i(f);
3042
3042
  return;
3043
3043
  }
3044
- if ((ce.has(Te.Control) || ce.has(Te.Meta)) && b.field == "sab-table-seq") {
3045
- h || await ((d = n.value) == null ? void 0 : d.setCheckboxRow(c, !1)), s(f);
3044
+ if ((ce.has(Te.Control) || ce.has(Te.Meta)) && g.field == "sab-table-seq") {
3045
+ h || await ((m = n.value) == null ? void 0 : m.setCheckboxRow(c, !1)), s(f);
3046
3046
  return;
3047
3047
  }
3048
- b.field === "sab-table-seq" && ((v = a.value.seqConfig) != null && v.clearOtherSelectedWhenClick && await ((y = n.value) == null ? void 0 : y.clearCheckboxRow()), await ((w = n.value) == null ? void 0 : w.setCheckboxRow(c, !0)), (x = n.value) == null || x.setCurrentRow(c), i(f)), r("cell-click", f);
3048
+ g.field === "sab-table-seq" && ((d = a.value.seqConfig) != null && d.clearOtherSelectedWhenClick && await ((b = n.value) == null ? void 0 : b.clearCheckboxRow()), await ((w = n.value) == null ? void 0 : w.setCheckboxRow(c, !0)), (x = n.value) == null || x.setCurrentRow(c), i(f)), r("cell-click", f);
3049
3049
  },
3050
3050
  "checkbox-change": async (f) => {
3051
3051
  f.column.field === "sab-table-seq" || i(f);
@@ -3130,16 +3130,16 @@ const n$ = (e) => {
3130
3130
  };
3131
3131
  return n(e), ({ columns: a, data: l }) => [
3132
3132
  a.map((i, o) => {
3133
- var s, u, p, f, c, b, h, g, d;
3133
+ var s, u, p, f, c, g, h, v, m;
3134
3134
  return o === 0 && (!i.field || i.type) ? (
3135
3135
  // @ts-ignore
3136
3136
  ((p = (u = (s = t.value) == null ? void 0 : s.sabDesign) == null ? void 0 : u.table) == null ? void 0 : p.total) || ((c = (f = t == null ? void 0 : t.sabDesign) == null ? void 0 : f.table) == null ? void 0 : c.total)
3137
- ) : typeof ((b = r[i.field]) == null ? void 0 : b.footerMethod) == "function" ? (g = (h = r[i.field]) == null ? void 0 : h.footerMethod) == null ? void 0 : g.call(
3137
+ ) : typeof ((g = r[i.field]) == null ? void 0 : g.footerMethod) == "function" ? (v = (h = r[i.field]) == null ? void 0 : h.footerMethod) == null ? void 0 : v.call(
3138
3138
  h,
3139
3139
  r[i.field],
3140
3140
  l
3141
- ) : (d = r[i.field]) != null && d.withSummary ? l.reduce(
3142
- (v, y) => r$.plus(v, y[i.field] || 0),
3141
+ ) : (m = r[i.field]) != null && m.withSummary ? l.reduce(
3142
+ (d, b) => r$.plus(d, b[i.field] || 0),
3143
3143
  0
3144
3144
  ) : null;
3145
3145
  })
@@ -3253,33 +3253,33 @@ const n$ = (e) => {
3253
3253
  "update:checkboxRecords"
3254
3254
  ],
3255
3255
  setup(e, { expose: t, emit: r }) {
3256
- const n = e, a = R(), { locale: l } = Ot(), i = T(() => {
3257
- const g = Mm(
3256
+ const n = e, a = R(), { locale: l } = Ot(), i = S(() => {
3257
+ const v = Mm(
3258
3258
  {
3259
3259
  keyboardConfig: {
3260
- editMethod({ row: d, column: v }) {
3261
- return a.value.setEditCell(d, v), !0;
3260
+ editMethod({ row: m, column: d }) {
3261
+ return a.value.setEditCell(m, d), !0;
3262
3262
  }
3263
3263
  }
3264
3264
  },
3265
3265
  lt(n, "data")
3266
3266
  );
3267
- return g.columns = Ym(g.columns || [], g), g;
3268
- }), o = T(() => {
3269
- var g;
3267
+ return v.columns = Ym(v.columns || [], v), v;
3268
+ }), o = S(() => {
3269
+ var v;
3270
3270
  return al(
3271
- (g = i.value.columns) == null ? void 0 : g.map((d) => d.slots ? Object.values(d.slots).filter(
3272
- (v) => typeof v == "string"
3271
+ (v = i.value.columns) == null ? void 0 : v.map((m) => m.slots ? Object.values(m.slots).filter(
3272
+ (d) => typeof d == "string"
3273
3273
  ) : [])
3274
3274
  );
3275
- }), s = r, u = T({
3275
+ }), s = r, u = S({
3276
3276
  get() {
3277
3277
  return n.checkboxRecords || [];
3278
3278
  },
3279
3279
  set: Xh(
3280
- function(g) {
3281
- var d;
3282
- s("update:checkboxRecords", g), (d = a.value) == null || d.setCheckboxRow(g, !0);
3280
+ function(v) {
3281
+ var m;
3282
+ s("update:checkboxRecords", v), (m = a.value) == null || m.setCheckboxRow(v, !0);
3283
3283
  },
3284
3284
  300,
3285
3285
  {
@@ -3290,9 +3290,9 @@ const n$ = (e) => {
3290
3290
  });
3291
3291
  de(
3292
3292
  () => n.checkboxRecords,
3293
- (g) => {
3294
- var d;
3295
- Array.isArray(g) && ((d = a.value) == null || d.setCheckboxRow(g, !0));
3293
+ (v) => {
3294
+ var m;
3295
+ Array.isArray(v) && ((m = a.value) == null || m.setCheckboxRow(v, !0));
3296
3296
  }
3297
3297
  );
3298
3298
  const { onEvents: p } = Jm({
@@ -3300,71 +3300,71 @@ const n$ = (e) => {
3300
3300
  emit: s,
3301
3301
  xTable: a,
3302
3302
  tableConfig: i
3303
- }), f = T(
3303
+ }), f = S(
3304
3304
  () => mh(lt(i.value, "columns", "data"), Ch)
3305
3305
  );
3306
3306
  Nr("table-config", f);
3307
3307
  const c = R(!0);
3308
3308
  de(
3309
3309
  () => {
3310
- var g;
3311
- return (g = i.value.columns) == null ? void 0 : g.filter((d) => d.visible != !1).map((d) => d.field).join(",");
3310
+ var v;
3311
+ return (v = i.value.columns) == null ? void 0 : v.filter((m) => m.visible != !1).map((m) => m.field).join(",");
3312
3312
  },
3313
3313
  () => {
3314
- var g, d;
3315
- (g = n.headerFilterConfig) != null && g.enable ? (c.value = !1, Dr(() => {
3314
+ var v, m;
3315
+ (v = n.headerFilterConfig) != null && v.enable ? (c.value = !1, Dr(() => {
3316
3316
  c.value = !0;
3317
- })) : (d = a.value) == null || d.reloadColumn(i.value.columns), u.value = [], s("checkbox-all", { checked: !1, records: [] });
3317
+ })) : (m = a.value) == null || m.reloadColumn(i.value.columns), u.value = [], s("checkbox-all", { checked: !1, records: [] });
3318
3318
  }
3319
3319
  );
3320
- const b = T(() => n.showToolbar || !!n.tableSetConfig), h = R(n.headerFilterModel || {});
3320
+ const g = S(() => n.showToolbar || !!n.tableSetConfig), h = R(n.headerFilterModel || {});
3321
3321
  return t({
3322
3322
  getInstance: () => a.value,
3323
3323
  // 重新加载当前行数据,刷新状态
3324
- reloadRow: (g) => {
3325
- var d;
3326
- Array.isArray(g) ? g.forEach(async (v) => {
3327
- var y;
3328
- return await ((y = a.value) == null ? void 0 : y.reloadRow(v));
3329
- }) : (d = a.value) == null || d.reloadRow(g);
3324
+ reloadRow: (v) => {
3325
+ var m;
3326
+ Array.isArray(v) ? v.forEach(async (d) => {
3327
+ var b;
3328
+ return await ((b = a.value) == null ? void 0 : b.reloadRow(d));
3329
+ }) : (m = a.value) == null || m.reloadRow(v);
3330
3330
  },
3331
3331
  // 获取表头筛选数据
3332
3332
  getCheckedFilters() {
3333
- var g;
3334
- return (g = a.value) == null ? void 0 : g.getCheckedFilters();
3333
+ var v;
3334
+ return (v = a.value) == null ? void 0 : v.getCheckedFilters();
3335
3335
  }
3336
- }), (g, d) => {
3337
- var v, y, w;
3336
+ }), (v, m) => {
3337
+ var d, b, w;
3338
3338
  return F(), q("div", {
3339
3339
  class: la(["sab-table-wrap", n.wrapClassName])
3340
3340
  }, [
3341
- b.value ? (F(), k(My, {
3341
+ g.value ? (F(), k(My, {
3342
3342
  key: 0,
3343
3343
  "table-ref": a.value,
3344
3344
  columns: n.columns,
3345
3345
  name: n.name,
3346
- tableSetConfig: g.tableSetConfig,
3347
- "onUpdate:columns": d[0] || (d[0] = (x) => s("update:columns", x))
3346
+ tableSetConfig: v.tableSetConfig,
3347
+ "onUpdate:columns": m[0] || (m[0] = (x) => s("update:columns", x))
3348
3348
  }, {
3349
3349
  "toolbar-right": j(() => [
3350
- K(g.$slots, "toolbar-right")
3350
+ K(v.$slots, "toolbar-right")
3351
3351
  ]),
3352
3352
  default: j(() => [
3353
- K(g.$slots, "toolbar")
3353
+ K(v.$slots, "toolbar")
3354
3354
  ]),
3355
3355
  _: 3
3356
3356
  }, 8, ["table-ref", "columns", "name", "tableSetConfig"])) : Se("", !0),
3357
3357
  U("div", a$, [
3358
- c.value ? (F(), k(O(ra), S({
3358
+ c.value ? (F(), k(O(ra), A({
3359
3359
  key: 0,
3360
3360
  ref_key: "xTable",
3361
3361
  ref: a,
3362
3362
  data: n.data,
3363
3363
  footerMethod: O(n$)(i.value.columns || [])
3364
3364
  }, f.value, oa(O(p)), {
3365
- "empty-text": (v = O(l)) == null ? void 0 : v.sabDesign.table.emptyText,
3365
+ "empty-text": (d = O(l)) == null ? void 0 : d.sabDesign.table.emptyText,
3366
3366
  "loading-config": {
3367
- text: (y = O(l)) == null ? void 0 : y.sabDesign.table.loadingText
3367
+ text: (b = O(l)) == null ? void 0 : b.sabDesign.table.loadingText
3368
3368
  },
3369
3369
  class: [
3370
3370
  "sab-table",
@@ -3373,25 +3373,25 @@ const n$ = (e) => {
3373
3373
  // 无需背景高亮
3374
3374
  "sab-table-row-no-bg-highlight": i.value.rowBackgroundHighlight === !1,
3375
3375
  // 有头部筛选条
3376
- "sab-table-header-filters": ((w = g.headerFilterConfig) == null ? void 0 : w.enable) != !1
3376
+ "sab-table-header-filters": ((w = v.headerFilterConfig) == null ? void 0 : w.enable) != !1
3377
3377
  }
3378
3378
  ]
3379
3379
  }), {
3380
3380
  default: j(() => [
3381
- (F(!0), q(Vr, null, Xe(i.value.columns, (x) => (F(), k(O(Gn), S({
3382
- data: g.data,
3381
+ (F(!0), q(Vr, null, Xe(i.value.columns, (x) => (F(), k(O(Gn), A({
3382
+ data: v.data,
3383
3383
  key: x.field
3384
3384
  }, x, {
3385
3385
  xTable: a.value,
3386
3386
  visible: x.visible != !1,
3387
3387
  headerFilterModel: h.value,
3388
- "onUpdate:headerFilterModel": d[1] || (d[1] = (m) => h.value = m),
3388
+ "onUpdate:headerFilterModel": m[1] || (m[1] = (y) => h.value = y),
3389
3389
  onFilterChange: O(p)["filter-change"]
3390
3390
  }), ia({ _: 2 }, [
3391
- Xe(o.value, (m) => ({
3392
- name: m,
3391
+ Xe(o.value, (y) => ({
3392
+ name: y,
3393
3393
  fn: j((_) => [
3394
- K(g.$slots, m, kr(Kr(_)))
3394
+ K(v.$slots, y, kr(Kr(_)))
3395
3395
  ])
3396
3396
  }))
3397
3397
  ]), 1040, ["data", "xTable", "visible", "headerFilterModel", "onFilterChange"]))), 128))
@@ -3399,7 +3399,7 @@ const n$ = (e) => {
3399
3399
  _: 3
3400
3400
  }, 16, ["data", "footerMethod", "empty-text", "loading-config", "class"])) : Se("", !0)
3401
3401
  ]),
3402
- K(g.$slots, "table-footer")
3402
+ K(v.$slots, "table-footer")
3403
3403
  ], 2);
3404
3404
  };
3405
3405
  }
@@ -3448,20 +3448,20 @@ const Fr = /* @__PURE__ */ P({
3448
3448
  },
3449
3449
  n.pagination
3450
3450
  )
3451
- ), i = R(!1), o = R(""), s = R(!1), u = async (m = "", _ = 1) => {
3452
- var A;
3453
- if (n.remoteMethod && (o.value = m, !(_ != 1 && s.value))) {
3451
+ ), i = R(!1), o = R(""), s = R(!1), u = async (y = "", _ = 1) => {
3452
+ var T;
3453
+ if (n.remoteMethod && (o.value = y, !(_ != 1 && s.value))) {
3454
3454
  l.current = _;
3455
3455
  try {
3456
3456
  i.value = !0;
3457
- const M = await ((A = n.remoteMethod) == null ? void 0 : A.call(n, m, l));
3457
+ const M = await ((T = n.remoteMethod) == null ? void 0 : T.call(n, y, l));
3458
3458
  Array.isArray(M) || !M ? (l.current === 1 ? a.value = M || [] : a.value.push(...M || []), s.value = (M == null ? void 0 : M.length) < l.size) : (l.current === 1 ? a.value = M.records || [] : a.value.push(...M.records || []), l.pages = Math.max(1, M.pages || 0), s.value = l.current >= l.pages);
3459
3459
  } finally {
3460
3460
  i.value = !1;
3461
3461
  }
3462
3462
  }
3463
3463
  }, p = Ee(
3464
- (m) => u(m, 1),
3464
+ (y) => u(y, 1),
3465
3465
  500,
3466
3466
  {
3467
3467
  leading: !1,
@@ -3481,51 +3481,51 @@ const Fr = /* @__PURE__ */ P({
3481
3481
  Lr(() => {
3482
3482
  p();
3483
3483
  });
3484
- const c = R(`el-select-${Date.now()}_${Math.round(Math.random() * 1e5)}`), b = () => {
3485
- let m;
3484
+ const c = R(`el-select-${Date.now()}_${Math.round(Math.random() * 1e5)}`), g = () => {
3485
+ let y;
3486
3486
  const _ = function() {
3487
3487
  this.scrollHeight - this.scrollTop - 1 <= this.clientHeight && f();
3488
3488
  };
3489
3489
  return {
3490
3490
  listen: () => {
3491
3491
  var G;
3492
- m = (G = document.querySelector(`.${c.value}`)) == null ? void 0 : G.querySelector(".el-select-dropdown__wrap"), m == null || m.addEventListener("scroll", _);
3492
+ y = (G = document.querySelector(`.${c.value}`)) == null ? void 0 : G.querySelector(".el-select-dropdown__wrap"), y == null || y.addEventListener("scroll", _);
3493
3493
  },
3494
3494
  unListen: () => {
3495
- m == null || m.removeEventListener("scroll", _);
3495
+ y == null || y.removeEventListener("scroll", _);
3496
3496
  }
3497
3497
  };
3498
- }, { listen: h, unListen: g } = b(), d = (m) => {
3499
- r("focus", m), n.revalidateWhenFocus && u(), h();
3500
- }, v = (m) => {
3501
- r("blur", m), g();
3502
- }, y = T({
3498
+ }, { listen: h, unListen: v } = g(), m = (y) => {
3499
+ r("focus", y), n.revalidateWhenFocus && u(), h();
3500
+ }, d = (y) => {
3501
+ r("blur", y), v();
3502
+ }, b = S({
3503
3503
  get() {
3504
- var m;
3505
- return n.labelInValue ? Array.isArray(n.modelValue) ? n.modelValue.map((_) => _[n.valueKey]) : (m = n.modelValue) == null ? void 0 : m[n.valueKey] : n.modelValue;
3504
+ var y;
3505
+ return n.labelInValue ? Array.isArray(n.modelValue) ? n.modelValue.map((_) => _[n.valueKey]) : (y = n.modelValue) == null ? void 0 : y[n.valueKey] : n.modelValue;
3506
3506
  },
3507
- set(m) {
3507
+ set(y) {
3508
3508
  if (n.labelInValue)
3509
- if (Array.isArray(m)) {
3509
+ if (Array.isArray(y)) {
3510
3510
  const _ = a.value.filter(
3511
- (A) => m.includes(A[n.valueKey])
3511
+ (T) => y.includes(T[n.valueKey])
3512
3512
  );
3513
3513
  r("update:modelValue", _);
3514
3514
  } else {
3515
3515
  const _ = a.value.find(
3516
- (A) => m === A[n.valueKey]
3516
+ (T) => y === T[n.valueKey]
3517
3517
  );
3518
3518
  r("update:modelValue", _);
3519
3519
  }
3520
3520
  else
3521
- r("update:modelValue", m);
3521
+ r("update:modelValue", y);
3522
3522
  }
3523
3523
  }), w = jr(() => {
3524
- var m, _, A;
3524
+ var y, _, T;
3525
3525
  if (n.autoSelectFirstOption) {
3526
- if (a.value.length && (y.value === null || y.value === void 0)) {
3527
- let M = n.labelInValue ? (m = a.value) == null ? void 0 : m[0] : (A = (_ = a.value) == null ? void 0 : _[0]) == null ? void 0 : A[n.valueKey];
3528
- n.multiple && typeof M < "u" ? y.value = [M] : y.value = M, setTimeout(() => w());
3526
+ if (a.value.length && (b.value === null || b.value === void 0)) {
3527
+ let M = n.labelInValue ? (y = a.value) == null ? void 0 : y[0] : (T = (_ = a.value) == null ? void 0 : _[0]) == null ? void 0 : T[n.valueKey];
3528
+ n.multiple && typeof M < "u" ? b.value = [M] : b.value = M, setTimeout(() => w());
3529
3529
  }
3530
3530
  } else
3531
3531
  setTimeout(() => w());
@@ -3537,66 +3537,66 @@ const Fr = /* @__PURE__ */ P({
3537
3537
  "labelKey",
3538
3538
  "valueKey"
3539
3539
  );
3540
- return (m, _) => m.enableLoadmore || m.selectType === "v1" ? (F(), k(O(Ur), S({
3540
+ return (y, _) => y.enableLoadmore || y.selectType === "v1" ? (F(), k(O(Ur), A({
3541
3541
  key: 0,
3542
- modelValue: y.value,
3543
- "onUpdate:modelValue": _[0] || (_[0] = (A) => y.value = A),
3544
- onFocus: d,
3545
- onBlur: v
3542
+ modelValue: b.value,
3543
+ "onUpdate:modelValue": _[0] || (_[0] = (T) => b.value = T),
3544
+ onFocus: m,
3545
+ onBlur: d
3546
3546
  }, {
3547
3547
  ...O(x),
3548
- ...m.$attrs
3548
+ ...y.$attrs
3549
3549
  }, {
3550
- "popper-class": O(ke)(c.value, m.$attrs.popperClass),
3550
+ "popper-class": O(ke)(c.value, y.$attrs.popperClass),
3551
3551
  "remote-method": u
3552
3552
  }), {
3553
3553
  default: j(() => {
3554
- var A, M, G;
3554
+ var T, M, G;
3555
3555
  return [
3556
- m.labelInValue && ((A = m.modelValue) != null && A[m.labelKey]) && !a.value.find((Z) => {
3556
+ y.labelInValue && ((T = y.modelValue) != null && T[y.labelKey]) && !a.value.find((Z) => {
3557
3557
  var xt;
3558
- return Z[m.valueKey] === ((xt = m.modelValue) == null ? void 0 : xt[m.valueKey]);
3558
+ return Z[y.valueKey] === ((xt = y.modelValue) == null ? void 0 : xt[y.valueKey]);
3559
3559
  }) ? (F(), k(O(Qe), {
3560
3560
  key: 0,
3561
- label: (M = m.modelValue) == null ? void 0 : M[m.labelKey],
3562
- value: (G = m.modelValue) == null ? void 0 : G[m.valueKey]
3561
+ label: (M = y.modelValue) == null ? void 0 : M[y.labelKey],
3562
+ value: (G = y.modelValue) == null ? void 0 : G[y.valueKey]
3563
3563
  }, {
3564
3564
  default: j(() => [
3565
- K(m.$slots, "default", { item: m.modelValue })
3565
+ K(y.$slots, "default", { item: y.modelValue })
3566
3566
  ]),
3567
3567
  _: 3
3568
3568
  }, 8, ["label", "value"])) : Se("", !0),
3569
3569
  (F(!0), q(Vr, null, Xe(a.value, (Z) => (F(), k(O(Qe), {
3570
- key: Z[m.valueKey],
3571
- label: Z[m.labelKey],
3572
- value: Z[m.valueKey]
3570
+ key: Z[y.valueKey],
3571
+ label: Z[y.labelKey],
3572
+ value: Z[y.valueKey]
3573
3573
  }, {
3574
3574
  default: j(() => [
3575
- K(m.$slots, "default", { item: Z })
3575
+ K(y.$slots, "default", { item: Z })
3576
3576
  ]),
3577
3577
  _: 2
3578
3578
  }, 1032, ["label", "value"]))), 128))
3579
3579
  ];
3580
3580
  }),
3581
3581
  _: 3
3582
- }, 16, ["modelValue", "popper-class"])) : (F(), k(O(ha), S({
3582
+ }, 16, ["modelValue", "popper-class"])) : (F(), k(O(ha), A({
3583
3583
  key: 1,
3584
- modelValue: y.value,
3585
- "onUpdate:modelValue": _[1] || (_[1] = (A) => y.value = A),
3584
+ modelValue: b.value,
3585
+ "onUpdate:modelValue": _[1] || (_[1] = (T) => b.value = T),
3586
3586
  props: {
3587
- value: m.valueKey,
3588
- label: m.labelKey,
3589
- ...m.$attrs.props || {}
3587
+ value: y.valueKey,
3588
+ label: y.labelKey,
3589
+ ...y.$attrs.props || {}
3590
3590
  },
3591
3591
  options: a.value,
3592
- onFocus: d,
3593
- onBlur: v
3592
+ onFocus: m,
3593
+ onBlur: d
3594
3594
  }, {
3595
3595
  ...O(x),
3596
- ...m.$attrs
3596
+ ...y.$attrs
3597
3597
  }, { "remote-method": u }), {
3598
- default: j((A) => [
3599
- K(m.$slots, "default", kr(Kr(A)))
3598
+ default: j((T) => [
3599
+ K(y.$slots, "default", kr(Kr(T)))
3600
3600
  ]),
3601
3601
  _: 3
3602
3602
  }, 16, ["modelValue", "props", "options"]));
@@ -3607,7 +3607,7 @@ const Fr = /* @__PURE__ */ P({
3607
3607
  lang: {}
3608
3608
  },
3609
3609
  setup(e) {
3610
- const t = e, r = T(() => t.lang || ""), { locale: n } = e1(r);
3610
+ const t = e, r = S(() => t.lang || ""), { locale: n } = e1(r);
3611
3611
  return Nr(En, n), (a, l) => K(a.$slots, "default");
3612
3612
  }
3613
3613
  }), c$ = {