@kengic/vue 0.5.34 → 0.5.36

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.
@@ -2464,12 +2464,12 @@ function baseClone(e, t, r, n, a, o) {
2464
2464
  return v;
2465
2465
  o.set(e, s), isSet$1(e) ? e.forEach(function(_) {
2466
2466
  s.add(baseClone(_, t, r, _, e, o));
2467
- }) : isMap$1(e) && e.forEach(function(_, C) {
2468
- s.set(C, baseClone(_, t, r, C, e, o));
2467
+ }) : isMap$1(e) && e.forEach(function(_, T) {
2468
+ s.set(T, baseClone(_, t, r, T, e, o));
2469
2469
  });
2470
2470
  var b = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, m = c ? void 0 : b(e);
2471
- return arrayEach(m || e, function(_, C) {
2472
- m && (C = _, _ = e[C]), assignValue(s, C, baseClone(_, t, r, C, e, o));
2471
+ return arrayEach(m || e, function(_, T) {
2472
+ m && (T = _, _ = e[T]), assignValue(s, T, baseClone(_, t, r, T, e, o));
2473
2473
  }), s;
2474
2474
  }
2475
2475
  var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
@@ -2519,8 +2519,8 @@ function equalArrays(e, t, r, n, a, o) {
2519
2519
  break;
2520
2520
  }
2521
2521
  if (v) {
2522
- if (!arraySome(t, function(C, y) {
2523
- if (!cacheHas(v, y) && (b === C || a(b, C, r, n, o)))
2522
+ if (!arraySome(t, function(T, y) {
2523
+ if (!cacheHas(v, y) && (b === T || a(b, T, r, n, o)))
2524
2524
  return v.push(y);
2525
2525
  })) {
2526
2526
  p = !1;
@@ -2598,18 +2598,18 @@ function equalObjects(e, t, r, n, a, o) {
2598
2598
  o.set(e, t), o.set(t, e);
2599
2599
  for (var _ = s; ++g < l; ) {
2600
2600
  p = i[g];
2601
- var C = e[p], y = t[p];
2601
+ var T = e[p], y = t[p];
2602
2602
  if (n)
2603
- var T = s ? n(y, C, p, t, e, o) : n(C, y, p, e, t, o);
2604
- if (!(T === void 0 ? C === y || a(C, y, r, n, o) : T)) {
2603
+ var C = s ? n(y, T, p, t, e, o) : n(T, y, p, e, t, o);
2604
+ if (!(C === void 0 ? T === y || a(T, y, r, n, o) : C)) {
2605
2605
  m = !1;
2606
2606
  break;
2607
2607
  }
2608
2608
  _ || (_ = p == "constructor");
2609
2609
  }
2610
2610
  if (m && !_) {
2611
- var E = e.constructor, I = t.constructor;
2612
- E != I && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof I == "function" && I instanceof I) && (m = !1);
2611
+ var E = e.constructor, A = t.constructor;
2612
+ E != A && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof A == "function" && A instanceof A) && (m = !1);
2613
2613
  }
2614
2614
  return o.delete(e), o.delete(t), m;
2615
2615
  }
@@ -3718,7 +3718,7 @@ var Icon$1 = function(t, r) {
3718
3718
  var _ = l ? {
3719
3719
  msTransform: "rotate(".concat(l, "deg)"),
3720
3720
  transform: "rotate(".concat(l, "deg)")
3721
- } : void 0, C = normalizeTwoToneColors(c), y = _slicedToArray(C, 2), T = y[0], E = y[1];
3721
+ } : void 0, T = normalizeTwoToneColors(c), y = _slicedToArray(T, 2), C = y[0], E = y[1];
3722
3722
  return createVNode("span", _objectSpread$i({
3723
3723
  role: "img",
3724
3724
  "aria-label": s.name
@@ -3728,7 +3728,7 @@ var Icon$1 = function(t, r) {
3728
3728
  }), [createVNode(VueIcon, {
3729
3729
  class: b,
3730
3730
  icon: s,
3731
- primaryColor: T,
3731
+ primaryColor: C,
3732
3732
  secondaryColor: E,
3733
3733
  style: _
3734
3734
  }, null)]);
@@ -4691,62 +4691,62 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4691
4691
  (function(r, n) {
4692
4692
  e.exports = n();
4693
4693
  })(commonjsGlobal, function() {
4694
- var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", v = "year", b = "date", m = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(A) {
4695
- var M = ["th", "st", "nd", "rd"], w = A % 100;
4696
- return "[" + A + (M[(w - 20) % 10] || M[w] || M[0]) + "]";
4697
- } }, T = function(A, M, w) {
4698
- var N = String(A);
4699
- return !N || N.length >= M ? A : "" + Array(M + 1 - N.length).join(w) + A;
4700
- }, E = { s: T, z: function(A) {
4701
- var M = -A.utcOffset(), w = Math.abs(M), N = Math.floor(w / 60), F = w % 60;
4702
- return (M <= 0 ? "+" : "-") + T(N, 2, "0") + ":" + T(F, 2, "0");
4703
- }, m: function A(M, w) {
4704
- if (M.date() < w.date())
4705
- return -A(w, M);
4706
- var N = 12 * (w.year() - M.year()) + (w.month() - M.month()), F = M.clone().add(N, g), U = w - F < 0, G = M.clone().add(N + (U ? -1 : 1), g);
4707
- return +(-(N + (w - F) / (U ? F - G : G - F)) || 0);
4708
- }, a: function(A) {
4709
- return A < 0 ? Math.ceil(A) || 0 : Math.floor(A);
4710
- }, p: function(A) {
4711
- return { M: g, y: v, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[A] || String(A || "").toLowerCase().replace(/s$/, "");
4712
- }, u: function(A) {
4713
- return A === void 0;
4714
- } }, I = "en", k = {};
4715
- k[I] = y;
4716
- var R = function(A) {
4717
- return A instanceof $;
4718
- }, L = function A(M, w, N) {
4694
+ var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", v = "year", b = "date", m = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
4695
+ var I = ["th", "st", "nd", "rd"], M = w % 100;
4696
+ return "[" + w + (I[(M - 20) % 10] || I[M] || I[0]) + "]";
4697
+ } }, C = function(w, I, M) {
4698
+ var N = String(w);
4699
+ return !N || N.length >= I ? w : "" + Array(I + 1 - N.length).join(M) + w;
4700
+ }, E = { s: C, z: function(w) {
4701
+ var I = -w.utcOffset(), M = Math.abs(I), N = Math.floor(M / 60), F = M % 60;
4702
+ return (I <= 0 ? "+" : "-") + C(N, 2, "0") + ":" + C(F, 2, "0");
4703
+ }, m: function w(I, M) {
4704
+ if (I.date() < M.date())
4705
+ return -w(M, I);
4706
+ var N = 12 * (M.year() - I.year()) + (M.month() - I.month()), F = I.clone().add(N, g), H = M - F < 0, U = I.clone().add(N + (H ? -1 : 1), g);
4707
+ return +(-(N + (M - F) / (H ? F - U : U - F)) || 0);
4708
+ }, a: function(w) {
4709
+ return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
4710
+ }, p: function(w) {
4711
+ return { M: g, y: v, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[w] || String(w || "").toLowerCase().replace(/s$/, "");
4712
+ }, u: function(w) {
4713
+ return w === void 0;
4714
+ } }, A = "en", k = {};
4715
+ k[A] = y;
4716
+ var R = function(w) {
4717
+ return w instanceof $;
4718
+ }, L = function w(I, M, N) {
4719
4719
  var F;
4720
- if (!M)
4721
- return I;
4722
- if (typeof M == "string") {
4723
- var U = M.toLowerCase();
4724
- k[U] && (F = U), w && (k[U] = w, F = U);
4725
- var G = M.split("-");
4726
- if (!F && G.length > 1)
4727
- return A(G[0]);
4720
+ if (!I)
4721
+ return A;
4722
+ if (typeof I == "string") {
4723
+ var H = I.toLowerCase();
4724
+ k[H] && (F = H), M && (k[H] = M, F = H);
4725
+ var U = I.split("-");
4726
+ if (!F && U.length > 1)
4727
+ return w(U[0]);
4728
4728
  } else {
4729
- var x = M.name;
4730
- k[x] = M, F = x;
4731
- }
4732
- return !N && F && (I = F), F || !N && I;
4733
- }, O = function(A, M) {
4734
- if (R(A))
4735
- return A.clone();
4736
- var w = typeof M == "object" ? M : {};
4737
- return w.date = A, w.args = arguments, new $(w);
4729
+ var x = I.name;
4730
+ k[x] = I, F = x;
4731
+ }
4732
+ return !N && F && (A = F), F || !N && A;
4733
+ }, O = function(w, I) {
4734
+ if (R(w))
4735
+ return w.clone();
4736
+ var M = typeof I == "object" ? I : {};
4737
+ return M.date = w, M.args = arguments, new $(M);
4738
4738
  }, D = E;
4739
- D.l = L, D.i = R, D.w = function(A, M) {
4740
- return O(A, { locale: M.$L, utc: M.$u, x: M.$x, $offset: M.$offset });
4739
+ D.l = L, D.i = R, D.w = function(w, I) {
4740
+ return O(w, { locale: I.$L, utc: I.$u, x: I.$x, $offset: I.$offset });
4741
4741
  };
4742
4742
  var $ = function() {
4743
- function A(w) {
4744
- this.$L = L(w.locale, null, !0), this.parse(w);
4743
+ function w(M) {
4744
+ this.$L = L(M.locale, null, !0), this.parse(M);
4745
4745
  }
4746
- var M = A.prototype;
4747
- return M.parse = function(w) {
4746
+ var I = w.prototype;
4747
+ return I.parse = function(M) {
4748
4748
  this.$d = function(N) {
4749
- var F = N.date, U = N.utc;
4749
+ var F = N.date, H = N.utc;
4750
4750
  if (F === null)
4751
4751
  return new Date(NaN);
4752
4752
  if (D.u(F))
@@ -4754,144 +4754,144 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4754
4754
  if (F instanceof Date)
4755
4755
  return new Date(F);
4756
4756
  if (typeof F == "string" && !/Z$/i.test(F)) {
4757
- var G = F.match(_);
4758
- if (G) {
4759
- var x = G[2] - 1 || 0, H = (G[7] || "0").substring(0, 3);
4760
- return U ? new Date(Date.UTC(G[1], x, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, H)) : new Date(G[1], x, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, H);
4757
+ var U = F.match(_);
4758
+ if (U) {
4759
+ var x = U[2] - 1 || 0, G = (U[7] || "0").substring(0, 3);
4760
+ return H ? new Date(Date.UTC(U[1], x, U[3] || 1, U[4] || 0, U[5] || 0, U[6] || 0, G)) : new Date(U[1], x, U[3] || 1, U[4] || 0, U[5] || 0, U[6] || 0, G);
4761
4761
  }
4762
4762
  }
4763
4763
  return new Date(F);
4764
- }(w), this.$x = w.x || {}, this.init();
4765
- }, M.init = function() {
4766
- var w = this.$d;
4767
- this.$y = w.getFullYear(), this.$M = w.getMonth(), this.$D = w.getDate(), this.$W = w.getDay(), this.$H = w.getHours(), this.$m = w.getMinutes(), this.$s = w.getSeconds(), this.$ms = w.getMilliseconds();
4768
- }, M.$utils = function() {
4764
+ }(M), this.$x = M.x || {}, this.init();
4765
+ }, I.init = function() {
4766
+ var M = this.$d;
4767
+ this.$y = M.getFullYear(), this.$M = M.getMonth(), this.$D = M.getDate(), this.$W = M.getDay(), this.$H = M.getHours(), this.$m = M.getMinutes(), this.$s = M.getSeconds(), this.$ms = M.getMilliseconds();
4768
+ }, I.$utils = function() {
4769
4769
  return D;
4770
- }, M.isValid = function() {
4770
+ }, I.isValid = function() {
4771
4771
  return this.$d.toString() !== m;
4772
- }, M.isSame = function(w, N) {
4773
- var F = O(w);
4772
+ }, I.isSame = function(M, N) {
4773
+ var F = O(M);
4774
4774
  return this.startOf(N) <= F && F <= this.endOf(N);
4775
- }, M.isAfter = function(w, N) {
4776
- return O(w) < this.startOf(N);
4777
- }, M.isBefore = function(w, N) {
4778
- return this.endOf(N) < O(w);
4779
- }, M.$g = function(w, N, F) {
4780
- return D.u(w) ? this[N] : this.set(F, w);
4781
- }, M.unix = function() {
4775
+ }, I.isAfter = function(M, N) {
4776
+ return O(M) < this.startOf(N);
4777
+ }, I.isBefore = function(M, N) {
4778
+ return this.endOf(N) < O(M);
4779
+ }, I.$g = function(M, N, F) {
4780
+ return D.u(M) ? this[N] : this.set(F, M);
4781
+ }, I.unix = function() {
4782
4782
  return Math.floor(this.valueOf() / 1e3);
4783
- }, M.valueOf = function() {
4783
+ }, I.valueOf = function() {
4784
4784
  return this.$d.getTime();
4785
- }, M.startOf = function(w, N) {
4786
- var F = this, U = !!D.u(N) || N, G = D.p(w), x = function(de, P) {
4787
- var K = D.w(F.$u ? Date.UTC(F.$y, P, de) : new Date(F.$y, P, de), F);
4788
- return U ? K : K.endOf(u);
4789
- }, H = function(de, P) {
4790
- return D.w(F.toDate()[de].apply(F.toDate("s"), (U ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(P)), F);
4791
- }, Y = this.$W, X = this.$M, Z = this.$D, re = "set" + (this.$u ? "UTC" : "");
4792
- switch (G) {
4785
+ }, I.startOf = function(M, N) {
4786
+ var F = this, H = !!D.u(N) || N, U = D.p(M), x = function(fe, te) {
4787
+ var P = D.w(F.$u ? Date.UTC(F.$y, te, fe) : new Date(F.$y, te, fe), F);
4788
+ return H ? P : P.endOf(u);
4789
+ }, G = function(fe, te) {
4790
+ return D.w(F.toDate()[fe].apply(F.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), F);
4791
+ }, q = this.$W, X = this.$M, Z = this.$D, ne = "set" + (this.$u ? "UTC" : "");
4792
+ switch (U) {
4793
4793
  case v:
4794
- return U ? x(1, 0) : x(31, 11);
4794
+ return H ? x(1, 0) : x(31, 11);
4795
4795
  case g:
4796
- return U ? x(1, X) : x(0, X + 1);
4796
+ return H ? x(1, X) : x(0, X + 1);
4797
4797
  case c:
4798
- var ae = this.$locale().weekStart || 0, se = (Y < ae ? Y + 7 : Y) - ae;
4799
- return x(U ? Z - se : Z + (6 - se), X);
4798
+ var oe = this.$locale().weekStart || 0, ie = (q < oe ? q + 7 : q) - oe;
4799
+ return x(H ? Z - ie : Z + (6 - ie), X);
4800
4800
  case u:
4801
4801
  case b:
4802
- return H(re + "Hours", 0);
4802
+ return G(ne + "Hours", 0);
4803
4803
  case l:
4804
- return H(re + "Minutes", 1);
4804
+ return G(ne + "Minutes", 1);
4805
4805
  case i:
4806
- return H(re + "Seconds", 2);
4806
+ return G(ne + "Seconds", 2);
4807
4807
  case s:
4808
- return H(re + "Milliseconds", 3);
4808
+ return G(ne + "Milliseconds", 3);
4809
4809
  default:
4810
4810
  return this.clone();
4811
4811
  }
4812
- }, M.endOf = function(w) {
4813
- return this.startOf(w, !1);
4814
- }, M.$set = function(w, N) {
4815
- var F, U = D.p(w), G = "set" + (this.$u ? "UTC" : ""), x = (F = {}, F[u] = G + "Date", F[b] = G + "Date", F[g] = G + "Month", F[v] = G + "FullYear", F[l] = G + "Hours", F[i] = G + "Minutes", F[s] = G + "Seconds", F[o] = G + "Milliseconds", F)[U], H = U === u ? this.$D + (N - this.$W) : N;
4816
- if (U === g || U === v) {
4817
- var Y = this.clone().set(b, 1);
4818
- Y.$d[x](H), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
4812
+ }, I.endOf = function(M) {
4813
+ return this.startOf(M, !1);
4814
+ }, I.$set = function(M, N) {
4815
+ var F, H = D.p(M), U = "set" + (this.$u ? "UTC" : ""), x = (F = {}, F[u] = U + "Date", F[b] = U + "Date", F[g] = U + "Month", F[v] = U + "FullYear", F[l] = U + "Hours", F[i] = U + "Minutes", F[s] = U + "Seconds", F[o] = U + "Milliseconds", F)[H], G = H === u ? this.$D + (N - this.$W) : N;
4816
+ if (H === g || H === v) {
4817
+ var q = this.clone().set(b, 1);
4818
+ q.$d[x](G), q.init(), this.$d = q.set(b, Math.min(this.$D, q.daysInMonth())).$d;
4819
4819
  } else
4820
- x && this.$d[x](H);
4820
+ x && this.$d[x](G);
4821
4821
  return this.init(), this;
4822
- }, M.set = function(w, N) {
4823
- return this.clone().$set(w, N);
4824
- }, M.get = function(w) {
4825
- return this[D.p(w)]();
4826
- }, M.add = function(w, N) {
4827
- var F, U = this;
4828
- w = Number(w);
4829
- var G = D.p(N), x = function(X) {
4830
- var Z = O(U);
4831
- return D.w(Z.date(Z.date() + Math.round(X * w)), U);
4822
+ }, I.set = function(M, N) {
4823
+ return this.clone().$set(M, N);
4824
+ }, I.get = function(M) {
4825
+ return this[D.p(M)]();
4826
+ }, I.add = function(M, N) {
4827
+ var F, H = this;
4828
+ M = Number(M);
4829
+ var U = D.p(N), x = function(X) {
4830
+ var Z = O(H);
4831
+ return D.w(Z.date(Z.date() + Math.round(X * M)), H);
4832
4832
  };
4833
- if (G === g)
4834
- return this.set(g, this.$M + w);
4835
- if (G === v)
4836
- return this.set(v, this.$y + w);
4837
- if (G === u)
4833
+ if (U === g)
4834
+ return this.set(g, this.$M + M);
4835
+ if (U === v)
4836
+ return this.set(v, this.$y + M);
4837
+ if (U === u)
4838
4838
  return x(1);
4839
- if (G === c)
4839
+ if (U === c)
4840
4840
  return x(7);
4841
- var H = (F = {}, F[i] = n, F[l] = a, F[s] = r, F)[G] || 1, Y = this.$d.getTime() + w * H;
4842
- return D.w(Y, this);
4843
- }, M.subtract = function(w, N) {
4844
- return this.add(-1 * w, N);
4845
- }, M.format = function(w) {
4841
+ var G = (F = {}, F[i] = n, F[l] = a, F[s] = r, F)[U] || 1, q = this.$d.getTime() + M * G;
4842
+ return D.w(q, this);
4843
+ }, I.subtract = function(M, N) {
4844
+ return this.add(-1 * M, N);
4845
+ }, I.format = function(M) {
4846
4846
  var N = this, F = this.$locale();
4847
4847
  if (!this.isValid())
4848
4848
  return F.invalidDate || m;
4849
- var U = w || "YYYY-MM-DDTHH:mm:ssZ", G = D.z(this), x = this.$H, H = this.$m, Y = this.$M, X = F.weekdays, Z = F.months, re = function(P, K, z, q) {
4850
- return P && (P[K] || P(N, U)) || z[K].slice(0, q);
4851
- }, ae = function(P) {
4852
- return D.s(x % 12 || 12, P, "0");
4853
- }, se = F.meridiem || function(P, K, z) {
4854
- var q = P < 12 ? "AM" : "PM";
4855
- return z ? q.toLowerCase() : q;
4856
- }, de = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: D.s(Y + 1, 2, "0"), MMM: re(F.monthsShort, Y, Z, 3), MMMM: re(Z, Y), D: this.$D, DD: D.s(this.$D, 2, "0"), d: String(this.$W), dd: re(F.weekdaysMin, this.$W, X, 2), ddd: re(F.weekdaysShort, this.$W, X, 3), dddd: X[this.$W], H: String(x), HH: D.s(x, 2, "0"), h: ae(1), hh: ae(2), a: se(x, H, !0), A: se(x, H, !1), m: String(H), mm: D.s(H, 2, "0"), s: String(this.$s), ss: D.s(this.$s, 2, "0"), SSS: D.s(this.$ms, 3, "0"), Z: G };
4857
- return U.replace(C, function(P, K) {
4858
- return K || de[P] || G.replace(":", "");
4849
+ var H = M || "YYYY-MM-DDTHH:mm:ssZ", U = D.z(this), x = this.$H, G = this.$m, q = this.$M, X = F.weekdays, Z = F.months, ne = function(te, P, K, z) {
4850
+ return te && (te[P] || te(N, H)) || K[P].slice(0, z);
4851
+ }, oe = function(te) {
4852
+ return D.s(x % 12 || 12, te, "0");
4853
+ }, ie = F.meridiem || function(te, P, K) {
4854
+ var z = te < 12 ? "AM" : "PM";
4855
+ return K ? z.toLowerCase() : z;
4856
+ }, fe = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: q + 1, MM: D.s(q + 1, 2, "0"), MMM: ne(F.monthsShort, q, Z, 3), MMMM: ne(Z, q), D: this.$D, DD: D.s(this.$D, 2, "0"), d: String(this.$W), dd: ne(F.weekdaysMin, this.$W, X, 2), ddd: ne(F.weekdaysShort, this.$W, X, 3), dddd: X[this.$W], H: String(x), HH: D.s(x, 2, "0"), h: oe(1), hh: oe(2), a: ie(x, G, !0), A: ie(x, G, !1), m: String(G), mm: D.s(G, 2, "0"), s: String(this.$s), ss: D.s(this.$s, 2, "0"), SSS: D.s(this.$ms, 3, "0"), Z: U };
4857
+ return H.replace(T, function(te, P) {
4858
+ return P || fe[te] || U.replace(":", "");
4859
4859
  });
4860
- }, M.utcOffset = function() {
4860
+ }, I.utcOffset = function() {
4861
4861
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4862
- }, M.diff = function(w, N, F) {
4863
- var U, G = D.p(N), x = O(w), H = (x.utcOffset() - this.utcOffset()) * n, Y = this - x, X = D.m(this, x);
4864
- return X = (U = {}, U[v] = X / 12, U[g] = X, U[p] = X / 3, U[c] = (Y - H) / 6048e5, U[u] = (Y - H) / 864e5, U[l] = Y / a, U[i] = Y / n, U[s] = Y / r, U)[G] || Y, F ? X : D.a(X);
4865
- }, M.daysInMonth = function() {
4862
+ }, I.diff = function(M, N, F) {
4863
+ var H, U = D.p(N), x = O(M), G = (x.utcOffset() - this.utcOffset()) * n, q = this - x, X = D.m(this, x);
4864
+ return X = (H = {}, H[v] = X / 12, H[g] = X, H[p] = X / 3, H[c] = (q - G) / 6048e5, H[u] = (q - G) / 864e5, H[l] = q / a, H[i] = q / n, H[s] = q / r, H)[U] || q, F ? X : D.a(X);
4865
+ }, I.daysInMonth = function() {
4866
4866
  return this.endOf(g).$D;
4867
- }, M.$locale = function() {
4867
+ }, I.$locale = function() {
4868
4868
  return k[this.$L];
4869
- }, M.locale = function(w, N) {
4870
- if (!w)
4869
+ }, I.locale = function(M, N) {
4870
+ if (!M)
4871
4871
  return this.$L;
4872
- var F = this.clone(), U = L(w, N, !0);
4873
- return U && (F.$L = U), F;
4874
- }, M.clone = function() {
4872
+ var F = this.clone(), H = L(M, N, !0);
4873
+ return H && (F.$L = H), F;
4874
+ }, I.clone = function() {
4875
4875
  return D.w(this.$d, this);
4876
- }, M.toDate = function() {
4876
+ }, I.toDate = function() {
4877
4877
  return new Date(this.valueOf());
4878
- }, M.toJSON = function() {
4878
+ }, I.toJSON = function() {
4879
4879
  return this.isValid() ? this.toISOString() : null;
4880
- }, M.toISOString = function() {
4880
+ }, I.toISOString = function() {
4881
4881
  return this.$d.toISOString();
4882
- }, M.toString = function() {
4882
+ }, I.toString = function() {
4883
4883
  return this.$d.toUTCString();
4884
- }, A;
4884
+ }, w;
4885
4885
  }(), V = $.prototype;
4886
- return O.prototype = V, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", v], ["$D", b]].forEach(function(A) {
4887
- V[A[1]] = function(M) {
4888
- return this.$g(M, A[0], A[1]);
4886
+ return O.prototype = V, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", v], ["$D", b]].forEach(function(w) {
4887
+ V[w[1]] = function(I) {
4888
+ return this.$g(I, w[0], w[1]);
4889
4889
  };
4890
- }), O.extend = function(A, M) {
4891
- return A.$i || (A(M, $, O), A.$i = !0), O;
4892
- }, O.locale = L, O.isDayjs = R, O.unix = function(A) {
4893
- return O(1e3 * A);
4894
- }, O.en = k[I], O.Ls = k, O.p = {}, O;
4890
+ }), O.extend = function(w, I) {
4891
+ return w.$i || (w(I, $, O), w.$i = !0), O;
4892
+ }, O.locale = L, O.isDayjs = R, O.unix = function(w) {
4893
+ return O(1e3 * w);
4894
+ }, O.en = k[A], O.Ls = k, O.p = {}, O;
4895
4895
  });
4896
4896
  })(dayjs_min);
4897
4897
  const dayjs = dayjs_min.exports;
@@ -4936,32 +4936,32 @@ function filesize(e, {
4936
4936
  roundingMethod: m = ROUND,
4937
4937
  precision: _ = 0
4938
4938
  } = {}) {
4939
- let C = b, y = Number(e), T = [], E = 0, I = EMPTY;
4939
+ let T = b, y = Number(e), C = [], E = 0, A = EMPTY;
4940
4940
  n === -1 && c.length === 0 ? (n = 10, c = JEDEC) : n === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, n = c === IEC ? 2 : 10) : (n = n === 2 ? 2 : 10, c = n === 10 || c === JEDEC ? JEDEC : IEC);
4941
4941
  const k = n === 10 ? 1e3 : 1024, R = p === !0, L = y < 0, O = Math[m];
4942
4942
  if (typeof e != "bigint" && isNaN(e))
4943
4943
  throw new TypeError(INVALID_NUMBER);
4944
4944
  if (typeof O !== FUNCTION)
4945
4945
  throw new TypeError(INVALID_ROUND);
4946
- if (L && (y = -y), (C === -1 || isNaN(C)) && (C = Math.floor(Math.log(y) / Math.log(k)), C < 0 && (C = 0)), C > 8 && (_ > 0 && (_ += 8 - C), C = 8), g === EXPONENT)
4947
- return C;
4946
+ if (L && (y = -y), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(y) / Math.log(k)), T < 0 && (T = 0)), T > 8 && (_ > 0 && (_ += 8 - T), T = 8), g === EXPONENT)
4947
+ return T;
4948
4948
  if (y === 0)
4949
- T[0] = 0, I = T[1] = STRINGS.symbol[c][t ? BITS : BYTES][C];
4949
+ C[0] = 0, A = C[1] = STRINGS.symbol[c][t ? BITS : BYTES][T];
4950
4950
  else {
4951
- E = y / (n === 2 ? Math.pow(2, C * 10) : Math.pow(1e3, C)), t && (E = E * 8, E >= k && C < 8 && (E = E / k, C++));
4952
- const D = Math.pow(10, C > 0 ? a : 0);
4953
- T[0] = O(E * D) / D, T[0] === k && C < 8 && b === -1 && (T[0] = 1, C++), I = T[1] = n === 10 && C === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][C];
4951
+ E = y / (n === 2 ? Math.pow(2, T * 10) : Math.pow(1e3, T)), t && (E = E * 8, E >= k && T < 8 && (E = E / k, T++));
4952
+ const D = Math.pow(10, T > 0 ? a : 0);
4953
+ C[0] = O(E * D) / D, C[0] === k && T < 8 && b === -1 && (C[0] = 1, T++), A = C[1] = n === 10 && T === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][T];
4954
4954
  }
4955
- if (L && (T[0] = -T[0]), _ > 0 && (T[0] = T[0].toPrecision(_)), T[1] = u[T[1]] || T[1], o === !0 ? T[0] = T[0].toLocaleString() : o.length > 0 ? T[0] = T[0].toLocaleString(o, s) : i.length > 0 && (T[0] = T[0].toString().replace(PERIOD, i)), r && Number.isInteger(T[0]) === !1 && a > 0) {
4956
- const D = i || PERIOD, $ = T[0].toString().split(D), V = $[1] || EMPTY, A = V.length, M = a - A;
4957
- T[0] = `${$[0]}${D}${V.padEnd(A + M, ZERO)}`;
4955
+ if (L && (C[0] = -C[0]), _ > 0 && (C[0] = C[0].toPrecision(_)), C[1] = u[C[1]] || C[1], o === !0 ? C[0] = C[0].toLocaleString() : o.length > 0 ? C[0] = C[0].toLocaleString(o, s) : i.length > 0 && (C[0] = C[0].toString().replace(PERIOD, i)), r && Number.isInteger(C[0]) === !1 && a > 0) {
4956
+ const D = i || PERIOD, $ = C[0].toString().split(D), V = $[1] || EMPTY, w = V.length, I = a - w;
4957
+ C[0] = `${$[0]}${D}${V.padEnd(w + I, ZERO)}`;
4958
4958
  }
4959
- return R && (T[1] = v[C] ? v[C] : STRINGS.fullform[c][C] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), g === ARRAY ? T : g === OBJECT ? {
4960
- value: T[0],
4961
- symbol: T[1],
4962
- exponent: C,
4963
- unit: I
4964
- } : T.join(l);
4959
+ return R && (C[1] = v[T] ? v[T] : STRINGS.fullform[c][T] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), g === ARRAY ? C : g === OBJECT ? {
4960
+ value: C[0],
4961
+ symbol: C[1],
4962
+ exponent: T,
4963
+ unit: A
4964
+ } : C.join(l);
4965
4965
  }
4966
4966
  const data$6 = {
4967
4967
  width: 1024,
@@ -5243,18 +5243,18 @@ function iconToSVG(e, t) {
5243
5243
  };
5244
5244
  let o = r.body;
5245
5245
  [r, n].forEach((b) => {
5246
- const m = [], _ = b.hFlip, C = b.vFlip;
5246
+ const m = [], _ = b.hFlip, T = b.vFlip;
5247
5247
  let y = b.rotate;
5248
- _ ? C ? y += 2 : (m.push(
5248
+ _ ? T ? y += 2 : (m.push(
5249
5249
  "translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
5250
- ), m.push("scale(-1 1)"), a.top = a.left = 0) : C && (m.push(
5250
+ ), m.push("scale(-1 1)"), a.top = a.left = 0) : T && (m.push(
5251
5251
  "translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
5252
5252
  ), m.push("scale(1 -1)"), a.top = a.left = 0);
5253
- let T;
5253
+ let C;
5254
5254
  switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
5255
5255
  case 1:
5256
- T = a.height / 2 + a.top, m.unshift(
5257
- "rotate(90 " + T.toString() + " " + T.toString() + ")"
5256
+ C = a.height / 2 + a.top, m.unshift(
5257
+ "rotate(90 " + C.toString() + " " + C.toString() + ")"
5258
5258
  );
5259
5259
  break;
5260
5260
  case 2:
@@ -5263,12 +5263,12 @@ function iconToSVG(e, t) {
5263
5263
  );
5264
5264
  break;
5265
5265
  case 3:
5266
- T = a.width / 2 + a.left, m.unshift(
5267
- "rotate(-90 " + T.toString() + " " + T.toString() + ")"
5266
+ C = a.width / 2 + a.left, m.unshift(
5267
+ "rotate(-90 " + C.toString() + " " + C.toString() + ")"
5268
5268
  );
5269
5269
  break;
5270
5270
  }
5271
- y % 2 === 1 && (a.left !== a.top && (T = a.left, a.left = a.top, a.top = T), a.width !== a.height && (T = a.width, a.width = a.height, a.height = T)), m.length && (o = '<g transform="' + m.join(" ") + '">' + o + "</g>");
5271
+ y % 2 === 1 && (a.left !== a.top && (C = a.left, a.left = a.top, a.top = C), a.width !== a.height && (C = a.width, a.width = a.height, a.height = C)), m.length && (o = '<g transform="' + m.join(" ") + '">' + o + "</g>");
5272
5272
  });
5273
5273
  const s = n.width, i = n.height, l = a.width, u = a.height;
5274
5274
  let c, g;
@@ -5570,7 +5570,7 @@ function sendQuery(e, t, r, n) {
5570
5570
  function _(k, R) {
5571
5571
  R && (v = []), typeof k == "function" && v.push(k);
5572
5572
  }
5573
- function C() {
5573
+ function T() {
5574
5574
  return {
5575
5575
  startTime: i,
5576
5576
  payload: t,
@@ -5586,7 +5586,7 @@ function sendQuery(e, t, r, n) {
5586
5586
  k(void 0, c);
5587
5587
  });
5588
5588
  }
5589
- function T() {
5589
+ function C() {
5590
5590
  p.forEach((k) => {
5591
5591
  k.status === "pending" && (k.status = "aborted");
5592
5592
  }), p = [];
@@ -5608,10 +5608,10 @@ function sendQuery(e, t, r, n) {
5608
5608
  return;
5609
5609
  }
5610
5610
  if (O) {
5611
- c = L, p.length || (s.length ? I() : y());
5611
+ c = L, p.length || (s.length ? A() : y());
5612
5612
  return;
5613
5613
  }
5614
- if (b(), T(), !e.random) {
5614
+ if (b(), C(), !e.random) {
5615
5615
  const D = e.resources.indexOf(k.resource);
5616
5616
  D !== -1 && D !== e.index && (e.index = D);
5617
5617
  }
@@ -5619,7 +5619,7 @@ function sendQuery(e, t, r, n) {
5619
5619
  D(L);
5620
5620
  });
5621
5621
  }
5622
- function I() {
5622
+ function A() {
5623
5623
  if (l !== "pending")
5624
5624
  return;
5625
5625
  b();
@@ -5627,7 +5627,7 @@ function sendQuery(e, t, r, n) {
5627
5627
  if (k === void 0) {
5628
5628
  if (p.length) {
5629
5629
  g = setTimeout(() => {
5630
- b(), l === "pending" && (T(), y());
5630
+ b(), l === "pending" && (C(), y());
5631
5631
  }, e.timeout);
5632
5632
  return;
5633
5633
  }
@@ -5641,9 +5641,9 @@ function sendQuery(e, t, r, n) {
5641
5641
  E(R, L, O);
5642
5642
  }
5643
5643
  };
5644
- p.push(R), u++, g = setTimeout(I, e.rotate), r(k, t, R.callback);
5644
+ p.push(R), u++, g = setTimeout(A, e.rotate), r(k, t, R.callback);
5645
5645
  }
5646
- return setTimeout(I), C;
5646
+ return setTimeout(A), T;
5647
5647
  }
5648
5648
  function initRedundancy(e) {
5649
5649
  const t = {
@@ -6045,8 +6045,8 @@ const render = (e, t) => {
6045
6045
  _ !== !0 && _ !== "true" && delete n["aria-hidden"];
6046
6046
  break;
6047
6047
  default: {
6048
- const C = customisationAliases[m];
6049
- C ? (_ === !0 || _ === "true" || _ === 1) && (r[C] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = _);
6048
+ const T = customisationAliases[m];
6049
+ T ? (_ === !0 || _ === "true" || _ === 1) && (r[T] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = _);
6050
6050
  }
6051
6051
  }
6052
6052
  }
@@ -6277,36 +6277,36 @@ function createSetupStore(e, t, r = {}, n, a) {
6277
6277
  u = !0;
6278
6278
  }), c = !0, triggerSubscriptions(g, O, n.state.value[e]);
6279
6279
  }
6280
- const C = process.env.NODE_ENV !== "production" ? () => {
6280
+ const T = process.env.NODE_ENV !== "production" ? () => {
6281
6281
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
6282
6282
  } : noop$1;
6283
6283
  function y() {
6284
6284
  o.stop(), g = [], p = [], n._s.delete(e);
6285
6285
  }
6286
- function T(L, O) {
6286
+ function C(L, O) {
6287
6287
  return function() {
6288
6288
  setActivePinia(n);
6289
6289
  const D = Array.from(arguments), $ = [], V = [];
6290
- function A(N) {
6290
+ function w(N) {
6291
6291
  $.push(N);
6292
6292
  }
6293
- function M(N) {
6293
+ function I(N) {
6294
6294
  V.push(N);
6295
6295
  }
6296
6296
  triggerSubscriptions(p, {
6297
6297
  args: D,
6298
6298
  name: L,
6299
6299
  store: k,
6300
- after: A,
6301
- onError: M
6300
+ after: w,
6301
+ onError: I
6302
6302
  });
6303
- let w;
6303
+ let M;
6304
6304
  try {
6305
- w = O.apply(this && this.$id === e ? this : k, D);
6305
+ M = O.apply(this && this.$id === e ? this : k, D);
6306
6306
  } catch (N) {
6307
6307
  throw triggerSubscriptions(V, N), N;
6308
6308
  }
6309
- return w instanceof Promise ? w.then((N) => (triggerSubscriptions($, N), N)).catch((N) => (triggerSubscriptions(V, N), Promise.reject(N))) : (triggerSubscriptions($, w), w);
6309
+ return M instanceof Promise ? M.then((N) => (triggerSubscriptions($, N), N)).catch((N) => (triggerSubscriptions(V, N), Promise.reject(N))) : (triggerSubscriptions($, M), M);
6310
6310
  };
6311
6311
  }
6312
6312
  const E = /* @__PURE__ */ markRaw({
@@ -6314,12 +6314,12 @@ function createSetupStore(e, t, r = {}, n, a) {
6314
6314
  getters: {},
6315
6315
  state: [],
6316
6316
  hotState: m
6317
- }), I = {
6317
+ }), A = {
6318
6318
  _p: n,
6319
6319
  $id: e,
6320
6320
  $onAction: addSubscription.bind(null, p),
6321
6321
  $patch: _,
6322
- $reset: C,
6322
+ $reset: T,
6323
6323
  $subscribe(L, O = {}) {
6324
6324
  const D = addSubscription(g, L, O.detached, () => $()), $ = o.run(() => watch(() => n.state.value[e], (V) => {
6325
6325
  (O.flush === "sync" ? c : u) && L({
@@ -6336,7 +6336,7 @@ function createSetupStore(e, t, r = {}, n, a) {
6336
6336
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
6337
6337
  _hmrPayload: E
6338
6338
  } : {},
6339
- I
6339
+ A
6340
6340
  ));
6341
6341
  n._s.set(e, k);
6342
6342
  const R = n._e.run(() => (o = effectScope(), o.run(() => t())));
@@ -6345,7 +6345,7 @@ function createSetupStore(e, t, r = {}, n, a) {
6345
6345
  if (isRef(O) && !isComputed(O) || isReactive(O))
6346
6346
  process.env.NODE_ENV !== "production" && a ? set(m.value, L, toRef(R, L)) : s || (b && shouldHydrate(O) && (isRef(O) ? O.value = b[L] : mergeReactiveObjects(O, b[L])), n.state.value[e][L] = O), process.env.NODE_ENV !== "production" && E.state.push(L);
6347
6347
  else if (typeof O == "function") {
6348
- const D = process.env.NODE_ENV !== "production" && a ? O : T(L, O);
6348
+ const D = process.env.NODE_ENV !== "production" && a ? O : C(L, O);
6349
6349
  R[L] = D, process.env.NODE_ENV !== "production" && (E.actions[L] = O), i.actions[L] = O;
6350
6350
  } else
6351
6351
  process.env.NODE_ENV !== "production" && isComputed(O) && (E.getters[L] = s ? r.getters[L] : O, IS_CLIENT && (R._getters || (R._getters = markRaw([]))).push(L));
@@ -6374,7 +6374,7 @@ function createSetupStore(e, t, r = {}, n, a) {
6374
6374
  });
6375
6375
  for (const D in O._hmrPayload.actions) {
6376
6376
  const $ = O[D];
6377
- set(k, D, T(D, $));
6377
+ set(k, D, C(D, $));
6378
6378
  }
6379
6379
  for (const D in O._hmrPayload.getters) {
6380
6380
  const $ = O._hmrPayload.getters[D], V = s ? computed(() => (setActivePinia(n), $.call(k, k))) : $;
@@ -6622,6 +6622,9 @@ class KgUtil {
6622
6622
  case (!!r && !!n && n.isDayjs(s)):
6623
6623
  a[o] = this.parseParamFromDayJS(o, s, r);
6624
6624
  break;
6625
+ case (isArray$1(s) && s.length === 2 && !!r && !!n && n.isDayjs(s[0]) && n.isDayjs(s[1])):
6626
+ a[o] = void 0, a[`${o}_begin`] = this.parseParamFromDayJS(o, s[0], r), a[`${o}_end`] = this.parseParamFromDayJS(o, s[1], r);
6627
+ break;
6625
6628
  case isObjectLike(s):
6626
6629
  a[o] = this.parseParams(s);
6627
6630
  break;
@@ -6658,6 +6661,10 @@ class KgUtil {
6658
6661
  return r.format("YYYY-MM-DD");
6659
6662
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
6660
6663
  return r.format("YYYY-MM-DD HH:mm:ss");
6664
+ case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
6665
+ return r.format("YYYY-MM-DD");
6666
+ case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
6667
+ return r.format("YYYY-MM-DD HH:mm:ss");
6661
6668
  }
6662
6669
  return r;
6663
6670
  }
@@ -6891,12 +6898,12 @@ const getProps$w = () => ({
6891
6898
  function m(y) {
6892
6899
  y.stopPropagation(), y.preventDefault(), g(), !(y instanceof MouseEvent && y.which !== 1) && (o = y.pageX, s = y.pageY, n = e.kgWidth, a = e.kgHeight, i = _(document.documentElement, "mousemove", v), l = _(document.documentElement, "mouseup", b));
6893
6900
  }
6894
- function _(y, T, E) {
6895
- return y.addEventListener(T, E), {
6896
- remove: () => y.removeEventListener(T, E)
6901
+ function _(y, C, E) {
6902
+ return y.addEventListener(C, E), {
6903
+ remove: () => y.removeEventListener(C, E)
6897
6904
  };
6898
6905
  }
6899
- function C(y) {
6906
+ function T(y) {
6900
6907
  y.stopPropagation(), y.preventDefault();
6901
6908
  }
6902
6909
  return () => {
@@ -6906,7 +6913,7 @@ const getProps$w = () => ({
6906
6913
  style: u.value
6907
6914
  }, [createVNode("div", {
6908
6915
  class: "kg-resizable-handle",
6909
- onClick: C,
6916
+ onClick: T,
6910
6917
  onMousedown: m
6911
6918
  }, [createVNode("div", {
6912
6919
  class: "kg-resizable-handle-line"
@@ -7132,13 +7139,13 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
7132
7139
  r("update:visible", !1);
7133
7140
  }
7134
7141
  function v() {
7135
- var b, m, _, C, y, T, E;
7142
+ var b, m, _, T, y, C, E;
7136
7143
  if (c.value) {
7137
- const I = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], k = (_ = I.map((R) => R[g.value])) != null ? _ : [];
7138
- (!i || i(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
7144
+ const A = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], k = (_ = A.map((R) => R[g.value])) != null ? _ : [];
7145
+ (!i || i(k, A)) && (r("kgOk", k, A), r("update:visible", !1));
7139
7146
  } else {
7140
- const I = (T = (y = (C = l.selectedRows) == null ? void 0 : C.value) == null ? void 0 : y[0]) != null ? T : null, k = (E = I == null ? void 0 : I[g.value]) != null ? E : "";
7141
- (!i || i(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
7147
+ const A = (C = (y = (T = l.selectedRows) == null ? void 0 : T.value) == null ? void 0 : y[0]) != null ? C : null, k = (E = A == null ? void 0 : A[g.value]) != null ? E : "";
7148
+ (!i || i(k, A)) && (r("kgOk", k, A), r("update:visible", !1));
7142
7149
  }
7143
7150
  }
7144
7151
  return () => {
@@ -7265,13 +7272,13 @@ const KgFormItemCheckboxGroup = defineComponent({
7265
7272
  const n = useKg(), a = useKgVar(), o = inject(DI_FORM_REF, ref(null)), s = inject(DI_FORM_MODEL, computed(() => ({}))), {
7266
7273
  transformDatas: i
7267
7274
  } = _useServices$2(e), l = ref(!1), u = ref(!1), c = ref([]), g = computed(() => a.store.getVarPossibility(a.formID, e.kgVarName)), p = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), v = computed(() => {
7268
- var T;
7269
- let y = KgVarUtil.parseCommandParameter((T = g.value) == null ? void 0 : T.cmd_prm);
7275
+ var C;
7276
+ let y = KgVarUtil.parseCommandParameter((C = g.value) == null ? void 0 : C.cmd_prm);
7270
7277
  return y = mapValues(y, (E) => {
7271
7278
  if (typeof E == "string" && E.startsWith("{") && E.endsWith("}")) {
7272
- const I = E.slice(1, -1);
7273
- if (s.value && I in s.value)
7274
- return s.value[I];
7279
+ const A = E.slice(1, -1);
7280
+ if (s.value && A in s.value)
7281
+ return s.value[A];
7275
7282
  }
7276
7283
  return E;
7277
7284
  }), y;
@@ -7284,21 +7291,21 @@ const KgFormItemCheckboxGroup = defineComponent({
7284
7291
  (y = g.value) != null && y.id && m();
7285
7292
  }, {
7286
7293
  immediate: !0
7287
- }), watch([() => e.value, c], ([y, T]) => {
7288
- var I, k;
7294
+ }), watch([() => e.value, c], ([y, C]) => {
7295
+ var A, k;
7289
7296
  const E = get(y, "length", 0);
7290
- if (E > 0 && T.length > 0) {
7291
- const R = (k = (I = g.value) == null ? void 0 : I.val_clm) != null ? k : "", L = intersection$1(y, T == null ? void 0 : T.map((O) => O[R]));
7297
+ if (E > 0 && C.length > 0) {
7298
+ const R = (k = (A = g.value) == null ? void 0 : A.val_clm) != null ? k : "", L = intersection$1(y, C == null ? void 0 : C.map((O) => O[R]));
7292
7299
  if (L.length < E) {
7293
7300
  r("update:value", L);
7294
7301
  return;
7295
7302
  }
7296
7303
  }
7297
7304
  switch (!0) {
7298
- case (E > 0 && E === T.length):
7305
+ case (E > 0 && E === C.length):
7299
7306
  l.value = !0, u.value = !1;
7300
7307
  break;
7301
- case (E > 0 && E !== T.length):
7308
+ case (E > 0 && E !== C.length):
7302
7309
  l.value = !1, u.value = !0;
7303
7310
  break;
7304
7311
  default:
@@ -7309,23 +7316,23 @@ const KgFormItemCheckboxGroup = defineComponent({
7309
7316
  immediate: !0
7310
7317
  });
7311
7318
  async function m() {
7312
- var R, L, O, D, $, V, A, M, w;
7313
- const y = (R = g.value) == null ? void 0 : R.cmd, T = (O = (L = g.value) == null ? void 0 : L.cmd_method) != null ? O : "GET", E = ($ = (D = g.value) == null ? void 0 : D.val_clm) != null ? $ : "", I = (A = (V = g.value) == null ? void 0 : V.lbl_clm) != null ? A : "";
7314
- if (!y || !E || !I) {
7319
+ var R, L, O, D, $, V, w, I, M;
7320
+ const y = (R = g.value) == null ? void 0 : R.cmd, C = (O = (L = g.value) == null ? void 0 : L.cmd_method) != null ? O : "GET", E = ($ = (D = g.value) == null ? void 0 : D.val_clm) != null ? $ : "", A = (w = (V = g.value) == null ? void 0 : V.lbl_clm) != null ? w : "";
7321
+ if (!y || !E || !A) {
7315
7322
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
7316
7323
  frm_id: a.formID,
7317
7324
  var_nam: e.kgVarName,
7318
7325
  cmd: y,
7319
7326
  val_clm: E,
7320
- lbl_clm: I
7327
+ lbl_clm: A
7321
7328
  });
7322
7329
  return;
7323
7330
  }
7324
7331
  let k = null;
7325
7332
  try {
7326
- k = await ((M = httpClient()) == null ? void 0 : M.request({
7333
+ k = await ((I = httpClient()) == null ? void 0 : I.request({
7327
7334
  url: y,
7328
- method: T,
7335
+ method: C,
7329
7336
  params: v.value,
7330
7337
  data: v.value
7331
7338
  }));
@@ -7344,29 +7351,29 @@ const KgFormItemCheckboxGroup = defineComponent({
7344
7351
  }
7345
7352
  if (c.value.length > 0) {
7346
7353
  const N = c.value[0];
7347
- (!(E in N) || !(I in N)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7354
+ (!(E in N) || !(A in N)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7348
7355
  frm_id: a.formID,
7349
7356
  var_nam: e.kgVarName,
7350
7357
  cmd: y,
7351
7358
  val_clm: E,
7352
- lbl_clm: I,
7359
+ lbl_clm: A,
7353
7360
  \u6240\u6709\u5217: Object.keys(N)
7354
7361
  });
7355
7362
  }
7356
- r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((w = c.value) == null ? void 0 : w.map((N) => N[E]), e.value));
7363
+ r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((M = c.value) == null ? void 0 : M.map((N) => N[E]), e.value));
7357
7364
  }
7358
7365
  function _(y) {
7359
- var T, E, I;
7360
- y.target.checked ? C((E = (T = c.value) == null ? void 0 : T.map((k) => {
7366
+ var C, E, A;
7367
+ y.target.checked ? T((E = (C = c.value) == null ? void 0 : C.map((k) => {
7361
7368
  var R, L;
7362
7369
  return k[(L = (R = g.value) == null ? void 0 : R.val_clm) != null ? L : ""];
7363
- })) != null ? E : []) : C([]), u.value = !1, (I = o.value) == null || I.validate(e.kgVarName);
7370
+ })) != null ? E : []) : T([]), u.value = !1, (A = o.value) == null || A.validate(e.kgVarName);
7364
7371
  }
7365
- function C(y) {
7372
+ function T(y) {
7366
7373
  r("update:value", y), r("kgChange", y);
7367
7374
  }
7368
7375
  return () => {
7369
- let y, T;
7376
+ let y, C;
7370
7377
  return createVNode("div", {
7371
7378
  class: "kg-form-item-checkbox-group"
7372
7379
  }, [createVNode(Form.ItemRest, null, {
@@ -7380,14 +7387,14 @@ const KgFormItemCheckboxGroup = defineComponent({
7380
7387
  })]
7381
7388
  }), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
7382
7389
  value: e.value,
7383
- "onUpdate:value": C
7390
+ "onUpdate:value": T
7384
7391
  }, {
7385
7392
  default: () => [createVNode(Row, {
7386
7393
  gutter: 12
7387
- }, _isSlot$8(T = c.value.map((E) => {
7388
- var I, k;
7394
+ }, _isSlot$8(C = c.value.map((E) => {
7395
+ var A, k;
7389
7396
  return createVNode(Col, {
7390
- span: (k = (I = b.value) == null ? void 0 : I.span) != null ? k : 24
7397
+ span: (k = (A = b.value) == null ? void 0 : A.span) != null ? k : 24
7391
7398
  }, {
7392
7399
  default: () => {
7393
7400
  var R, L, O, D;
@@ -7402,8 +7409,8 @@ const KgFormItemCheckboxGroup = defineComponent({
7402
7409
  })];
7403
7410
  }
7404
7411
  });
7405
- })) ? T : {
7406
- default: () => [T]
7412
+ })) ? C : {
7413
+ default: () => [C]
7407
7414
  })]
7408
7415
  })]);
7409
7416
  };
@@ -7436,6 +7443,34 @@ const KgFormItemCheckboxGroup = defineComponent({
7436
7443
  style: "width: 100%"
7437
7444
  }, null);
7438
7445
  }
7446
+ }), KgFormItemDateRange = defineComponent({
7447
+ name: "KgFormItemDateRange",
7448
+ props: getProps$u(),
7449
+ emits: ["update:value", "kgSubmit", "kgChange"],
7450
+ setup(e, {
7451
+ slots: t,
7452
+ emit: r,
7453
+ attrs: n
7454
+ }) {
7455
+ const a = inject("$dayjs", dayjs), o = computed(() => {
7456
+ let i = e.value;
7457
+ if (!!i && !(!isArray$1(i) || i.length !== 2) && ((!a.isDayjs(i[0]) || !a.isDayjs(i[1])) && (i = [a(i[0]), a(i[1])]), !(!a.isDayjs(i[0]) || !a.isDayjs(i[1]))))
7458
+ return i;
7459
+ });
7460
+ function s(i) {
7461
+ const l = i ? [a(i[0]), a(i[1])] : void 0;
7462
+ r("update:value", l), r("kgChange", l);
7463
+ }
7464
+ return () => createVNode(DatePicker.RangePicker, {
7465
+ value: o.value,
7466
+ "onUpdate:value": s,
7467
+ id: n.id,
7468
+ disabled: e.kgDisabled,
7469
+ placeholder: [e.kgPlaceholder, e.kgPlaceholder],
7470
+ showTime: e.kgShowTime,
7471
+ style: "width: 100%"
7472
+ }, null);
7473
+ }
7439
7474
  }), KgFormItemInput = defineComponent({
7440
7475
  name: "KgFormItemInput",
7441
7476
  props: getProps$u(),
@@ -7541,13 +7576,13 @@ const KgFormItemSelect = defineComponent({
7541
7576
  return p = mapValues(p, (b) => {
7542
7577
  var m, _;
7543
7578
  if (typeof b == "string" && b.startsWith("{") && b.endsWith("}")) {
7544
- let C = b.slice(1, -1), y = "";
7545
- if (C.includes(".")) {
7546
- const T = C.split(".");
7547
- C = T[0], y = T[1];
7579
+ let T = b.slice(1, -1), y = "";
7580
+ if (T.includes(".")) {
7581
+ const C = T.split(".");
7582
+ T = C[0], y = C[1];
7548
7583
  }
7549
- if (a.value && C in a.value)
7550
- return y ? (_ = (m = a.value[`${C}_obj`]) == null ? void 0 : m[y]) != null ? _ : void 0 : a.value[C];
7584
+ if (a.value && T in a.value)
7585
+ return y ? (_ = (m = a.value[`${T}_obj`]) == null ? void 0 : m[y]) != null ? _ : void 0 : a.value[T];
7551
7586
  }
7552
7587
  return b;
7553
7588
  }), p;
@@ -7559,8 +7594,8 @@ const KgFormItemSelect = defineComponent({
7559
7594
  immediate: !0
7560
7595
  });
7561
7596
  async function u() {
7562
- var C, y, T, E, I, k, R, L;
7563
- const p = (C = i.value) == null ? void 0 : C.cmd, v = (T = (y = i.value) == null ? void 0 : y.cmd_method) != null ? T : "GET", b = (I = (E = i.value) == null ? void 0 : E.val_clm) != null ? I : "", m = (R = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? R : "";
7597
+ var T, y, C, E, A, k, R, L;
7598
+ const p = (T = i.value) == null ? void 0 : T.cmd, v = (C = (y = i.value) == null ? void 0 : y.cmd_method) != null ? C : "GET", b = (A = (E = i.value) == null ? void 0 : E.val_clm) != null ? A : "", m = (R = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? R : "";
7564
7599
  if (!p || !b || !m) {
7565
7600
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
7566
7601
  frm_id: n.formID,
@@ -7607,8 +7642,8 @@ const KgFormItemSelect = defineComponent({
7607
7642
  function c(p) {
7608
7643
  var b;
7609
7644
  const v = (b = toRaw(s.value.find((m) => {
7610
- var _, C;
7611
- return m[(C = (_ = i.value) == null ? void 0 : _.val_clm) != null ? C : ""] === p;
7645
+ var _, T;
7646
+ return m[(T = (_ = i.value) == null ? void 0 : _.val_clm) != null ? T : ""] === p;
7612
7647
  }))) != null ? b : null;
7613
7648
  r("kgSelectChange", v), a.value[`${e.kgVarName}_obj`] = v;
7614
7649
  }
@@ -7633,14 +7668,14 @@ const KgFormItemSelect = defineComponent({
7633
7668
  "kg-lbl-clm": (b = i.value) == null ? void 0 : b.lbl_clm
7634
7669
  }, {
7635
7670
  default: () => s.value.map((m) => {
7636
- var _, C, y, T;
7671
+ var _, T, y, C;
7637
7672
  return createVNode(Select.Option, {
7638
- "kg-value": m[(C = (_ = i.value) == null ? void 0 : _.val_clm) != null ? C : ""],
7639
- value: m[(T = (y = i.value) == null ? void 0 : y.val_clm) != null ? T : ""]
7673
+ "kg-value": m[(T = (_ = i.value) == null ? void 0 : _.val_clm) != null ? T : ""],
7674
+ value: m[(C = (y = i.value) == null ? void 0 : y.val_clm) != null ? C : ""]
7640
7675
  }, {
7641
7676
  default: () => {
7642
- var E, I;
7643
- return [m[(I = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? I : ""]];
7677
+ var E, A;
7678
+ return [m[(A = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? A : ""]];
7644
7679
  }
7645
7680
  });
7646
7681
  }),
@@ -7715,9 +7750,9 @@ function _useRules(e) {
7715
7750
  case KG_VAR_INPUT__DATA_TYPE.NUMBER:
7716
7751
  const _ = (b = a.value) == null ? void 0 : b.min;
7717
7752
  isNil(_) || (((m = a.value) == null ? void 0 : m.min_include_flg) === 1 ? i.push({
7718
- validator: (C, y) => Number(y) < _ ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [_])) : Promise.resolve()
7753
+ validator: (T, y) => Number(y) < _ ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [_])) : Promise.resolve()
7719
7754
  }) : i.push({
7720
- validator: (C, y) => Number(y) <= _ ? Promise.reject(t.t("kg.KgFormItem.mustGT", [_])) : Promise.resolve()
7755
+ validator: (T, y) => Number(y) <= _ ? Promise.reject(t.t("kg.KgFormItem.mustGT", [_])) : Promise.resolve()
7721
7756
  }));
7722
7757
  break;
7723
7758
  }
@@ -7737,7 +7772,7 @@ const KgFormItem = defineComponent({
7737
7772
  const n = useKgVar(), a = inject(DI_FORM_MODEL, computed(() => ({}))), o = inject(DI_FORM_REF, ref(null)), s = computed(() => n.store.isCreating(n.formID)), i = computed(() => n.store.isUpdating(n.formID)), l = computed(() => n.store.isCopying(n.formID)), u = computed(() => n.store.getVarLookup(n.formID, e.kgVarName)), c = computed(() => n.store.getVariableConfig(n.formID, e.kgVarName)), g = computed(() => n.store.getVarProfileDetail(n.formID, e.kgVarName)), p = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), {
7738
7773
  rules: v
7739
7774
  } = _useRules(e), b = computed(() => {
7740
- var V, A, M, w, N;
7775
+ var V, w, I, M, N;
7741
7776
  if (n.isRetrievingVar.value)
7742
7777
  return !0;
7743
7778
  let $ = !1;
@@ -7751,13 +7786,13 @@ const KgFormItem = defineComponent({
7751
7786
  case KG_FORM_CONTEXT.SUBMIT:
7752
7787
  switch (!0) {
7753
7788
  case n.isCreating.value:
7754
- $ = ((A = p.value) == null ? void 0 : A.crt_ena_flg) === 0;
7789
+ $ = ((w = p.value) == null ? void 0 : w.crt_ena_flg) === 0;
7755
7790
  break;
7756
7791
  case n.isUpdating.value:
7757
- $ = ((M = p.value) == null ? void 0 : M.upt_ena_flg) === 0;
7792
+ $ = ((I = p.value) == null ? void 0 : I.upt_ena_flg) === 0;
7758
7793
  break;
7759
7794
  case n.isCopying.value:
7760
- $ = ((w = p.value) == null ? void 0 : w.cpy_ena_flg) === 0;
7795
+ $ = ((M = p.value) == null ? void 0 : M.cpy_ena_flg) === 0;
7761
7796
  break;
7762
7797
  case n.isDeleting.value:
7763
7798
  $ = ((N = p.value) == null ? void 0 : N.del_ena_flg) === 0;
@@ -7767,60 +7802,60 @@ const KgFormItem = defineComponent({
7767
7802
  }
7768
7803
  return $;
7769
7804
  }), m = computed(() => {
7770
- var V, A, M, w;
7805
+ var V, w, I, M;
7771
7806
  let $ = " ";
7772
7807
  if (e.kgPlaceholder)
7773
7808
  $ = e.kgPlaceholder;
7774
7809
  else
7775
7810
  switch (e.kgContext) {
7776
7811
  case KG_FORM_CONTEXT.SEARCH:
7777
- $ = n.t((A = (V = g.value) == null ? void 0 : V.placeholder) != null ? A : " ").value;
7812
+ $ = n.t((w = (V = g.value) == null ? void 0 : V.placeholder) != null ? w : " ").value;
7778
7813
  break;
7779
7814
  case KG_FORM_CONTEXT.SUBMIT:
7780
- $ = n.t((w = (M = p.value) == null ? void 0 : M.placeholder) != null ? w : " ").value;
7815
+ $ = n.t((M = (I = p.value) == null ? void 0 : I.placeholder) != null ? M : " ").value;
7781
7816
  break;
7782
7817
  }
7783
7818
  return $;
7784
7819
  }), _ = computed(() => {
7785
- var V, A, M, w, N, F, U, G, x, H;
7820
+ var V, w, I, M, N, F, H, U, x, G;
7786
7821
  let $ = 6;
7787
7822
  if (e.kgSpan !== void 0)
7788
7823
  $ = e.kgSpan;
7789
7824
  else
7790
7825
  switch (e.kgContext) {
7791
7826
  case KG_FORM_CONTEXT.SEARCH:
7792
- $ = (A = (V = g.value) == null ? void 0 : V.width) != null ? A : 6;
7827
+ $ = (w = (V = g.value) == null ? void 0 : V.width) != null ? w : 6;
7793
7828
  break;
7794
7829
  case KG_FORM_CONTEXT.SUBMIT:
7795
7830
  switch (!0) {
7796
7831
  case n.isCreating.value:
7797
- $ = (w = (M = p.value) == null ? void 0 : M.crt_width) != null ? w : 6;
7832
+ $ = (M = (I = p.value) == null ? void 0 : I.crt_width) != null ? M : 6;
7798
7833
  break;
7799
7834
  case n.isUpdating.value:
7800
7835
  $ = (F = (N = p.value) == null ? void 0 : N.upt_width) != null ? F : 6;
7801
7836
  break;
7802
7837
  case n.isCopying.value:
7803
- $ = (G = (U = p.value) == null ? void 0 : U.cpy_width) != null ? G : 6;
7838
+ $ = (U = (H = p.value) == null ? void 0 : H.cpy_width) != null ? U : 6;
7804
7839
  break;
7805
7840
  case n.isDeleting.value:
7806
- $ = (H = (x = p.value) == null ? void 0 : x.del_width) != null ? H : 6;
7841
+ $ = (G = (x = p.value) == null ? void 0 : x.del_width) != null ? G : 6;
7807
7842
  break;
7808
7843
  }
7809
7844
  }
7810
7845
  return Math.min(24, Math.max(1, $));
7811
- }), C = computed(() => {
7812
- var M, w;
7846
+ }), T = computed(() => {
7847
+ var I, M;
7813
7848
  const $ = get(k.value, "$el.parentElement");
7814
- if ($ && !((M = $.classList) != null && M.contains("ant-row")))
7849
+ if ($ && !((I = $.classList) != null && I.contains("ant-row")))
7815
7850
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
7816
7851
  let V = {};
7817
- const A = Math.abs(Number.parseInt((w = get(k.value, "$el.parentElement.style.marginLeft")) != null ? w : "0px"));
7818
- return Number.isNaN(A) || (V = {
7819
- paddingLeft: `${A}px !important`,
7820
- paddingRight: `${A}px !important`
7852
+ const w = Math.abs(Number.parseInt((M = get(k.value, "$el.parentElement.style.marginLeft")) != null ? M : "0px"));
7853
+ return Number.isNaN(w) || (V = {
7854
+ paddingLeft: `${w}px !important`,
7855
+ paddingRight: `${w}px !important`
7821
7856
  }), V;
7822
7857
  }), y = computed(() => {
7823
- var V, A, M, w;
7858
+ var V, w, I, M;
7824
7859
  let $ = "kg-form-item";
7825
7860
  switch (u.value && ($ += " kg-form-item-lookup"), e.kgContext) {
7826
7861
  case KG_FORM_CONTEXT.SEARCH:
@@ -7832,26 +7867,26 @@ const KgFormItem = defineComponent({
7832
7867
  break;
7833
7868
  case KG_FORM_CONTEXT.SUBMIT:
7834
7869
  switch (!0) {
7835
- case (s.value && ((A = p.value) == null ? void 0 : A.crt_vis_flg) === 0):
7836
- case (i.value && ((M = p.value) == null ? void 0 : M.upt_vis_flg) === 0):
7837
- case (l.value && ((w = p.value) == null ? void 0 : w.cpy_vis_flg) === 0):
7870
+ case (s.value && ((w = p.value) == null ? void 0 : w.crt_vis_flg) === 0):
7871
+ case (i.value && ((I = p.value) == null ? void 0 : I.upt_vis_flg) === 0):
7872
+ case (l.value && ((M = p.value) == null ? void 0 : M.cpy_vis_flg) === 0):
7838
7873
  $ += " kg-form-item--invisible";
7839
7874
  break;
7840
7875
  }
7841
7876
  break;
7842
7877
  }
7843
7878
  return $;
7844
- }), T = computed(() => {
7879
+ }), C = computed(() => {
7845
7880
  var V;
7846
7881
  const $ = {
7847
7882
  ...e,
7848
7883
  value: (V = a.value) == null ? void 0 : V[e.kgVarName],
7849
- "onUpdate:value": (A) => {
7850
- a.value && (a.value[e.kgVarName] = A);
7884
+ "onUpdate:value": (w) => {
7885
+ a.value && (a.value[e.kgVarName] = w);
7851
7886
  },
7852
7887
  kgPlaceholder: m.value,
7853
7888
  kgDisabled: b.value,
7854
- id: I.value
7889
+ id: A.value
7855
7890
  };
7856
7891
  switch (E.value) {
7857
7892
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
@@ -7866,21 +7901,27 @@ const KgFormItem = defineComponent({
7866
7901
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
7867
7902
  $.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7868
7903
  break;
7904
+ case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
7905
+ $.kgShowTime = !1;
7906
+ break;
7907
+ case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
7908
+ $.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7909
+ break;
7869
7910
  }
7870
7911
  return $;
7871
7912
  }), E = computed(() => {
7872
7913
  var $;
7873
7914
  return ($ = c.value) == null ? void 0 : $.ctrl_typ;
7874
- }), I = computed(() => encodeURIComponent(`${e.kgContext}~${n.formID}~${e.kgVarName}`)), k = ref(null);
7915
+ }), A = computed(() => encodeURIComponent(`${e.kgContext}~${n.formID}~${e.kgVarName}`)), k = ref(null);
7875
7916
  function R($, V) {
7876
- var A;
7877
- a.value && (a.value[e.kgVarName] = $), r("kgLookupChange", V), (A = o.value) == null || A.validate([e.kgVarName]);
7917
+ var w;
7918
+ a.value && (a.value[e.kgVarName] = $), r("kgLookupChange", V), (w = o.value) == null || w.validate([e.kgVarName]);
7878
7919
  }
7879
7920
  function L() {
7880
7921
  if (t.control) {
7881
7922
  const $ = {
7882
7923
  varName: e.kgVarName,
7883
- props: T,
7924
+ props: C,
7884
7925
  model: a,
7885
7926
  varConfig: c,
7886
7927
  varProfileDetail: g,
@@ -7890,27 +7931,31 @@ const KgFormItem = defineComponent({
7890
7931
  } else
7891
7932
  switch (E.value) {
7892
7933
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
7893
- return createVNode(KgFormItemInputNumber, T.value, null);
7934
+ return createVNode(KgFormItemInputNumber, C.value, null);
7894
7935
  case KG_FORM_ITEM_TYPE.SELECT:
7895
- return createVNode(KgFormItemSelect, T.value, null);
7936
+ return createVNode(KgFormItemSelect, C.value, null);
7896
7937
  case KG_FORM_ITEM_TYPE.SWITCH:
7897
7938
  switch (e.kgContext) {
7898
7939
  case KG_FORM_CONTEXT.SEARCH:
7899
- return createVNode(KgFormItemSelect, T.value, null);
7940
+ return createVNode(KgFormItemSelect, C.value, null);
7900
7941
  case KG_FORM_CONTEXT.SUBMIT:
7901
7942
  default:
7902
- return createVNode(KgFormItemSwitch, T.value, null);
7943
+ return createVNode(KgFormItemSwitch, C.value, null);
7903
7944
  }
7904
7945
  case KG_FORM_ITEM_TYPE.CHECKBOX:
7905
- return createVNode(KgFormItemCheckbox, T.value, null);
7946
+ return createVNode(KgFormItemCheckbox, C.value, null);
7906
7947
  case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
7907
- return createVNode(KgFormItemCheckboxGroup, T.value, null);
7948
+ return createVNode(KgFormItemCheckboxGroup, C.value, null);
7908
7949
  case KG_FORM_ITEM_TYPE.DATE_DATE:
7909
- return createVNode(KgFormItemDate, T.value, null);
7950
+ return createVNode(KgFormItemDate, C.value, null);
7910
7951
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
7911
- return createVNode(KgFormItemDate, T.value, null);
7952
+ return createVNode(KgFormItemDate, C.value, null);
7953
+ case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
7954
+ return createVNode(KgFormItemDateRange, C.value, null);
7955
+ case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
7956
+ return createVNode(KgFormItemDateRange, C.value, null);
7912
7957
  default:
7913
- return createVNode(KgFormItemInput, T.value, null);
7958
+ return createVNode(KgFormItemInput, C.value, null);
7914
7959
  }
7915
7960
  }
7916
7961
  function O() {
@@ -7938,13 +7983,13 @@ const KgFormItem = defineComponent({
7938
7983
  "kg-lkp-ret-fld": (V = u.value) == null ? void 0 : V.ret_fld,
7939
7984
  span: _.value,
7940
7985
  class: y.value,
7941
- style: C.value
7986
+ style: T.value
7942
7987
  }, {
7943
7988
  default: () => [createVNode(Form.Item, {
7944
7989
  name: e.kgVarName,
7945
7990
  rules: v.value,
7946
7991
  validateFirst: !0,
7947
- htmlFor: I.value
7992
+ htmlFor: A.value
7948
7993
  }, {
7949
7994
  default: () => createVNode(Fragment, null, [L(), D()]),
7950
7995
  label: () => O()
@@ -8137,8 +8182,8 @@ function createStore(e, t, r) {
8137
8182
  var p = slice(arguments, 0), v = this;
8138
8183
  function b() {
8139
8184
  if (!!c)
8140
- return each$6(arguments, function(_, C) {
8141
- p[C] = _;
8185
+ return each$6(arguments, function(_, T) {
8186
+ p[T] = _;
8142
8187
  }), c.apply(v, p);
8143
8188
  }
8144
8189
  var m = [b].concat(p);
@@ -9145,14 +9190,14 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
9145
9190
  varSubmitConfig: b,
9146
9191
  varSubmitFields: m,
9147
9192
  varProfile: _,
9148
- varProfileConfig: C,
9193
+ varProfileConfig: T,
9149
9194
  varGrid: y,
9150
- varGridConfig: T
9195
+ varGridConfig: C
9151
9196
  } = await GetAll({ params: { frm_id: e } });
9152
- this.varCatalogMap.set(e, i != null ? i : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varButtonConfigMap.set(e, v != null ? v : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(b)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(m)), this.varProfileConfigMap.set(e, transformVarProfileConfig(C != null ? C : null)), this.varProfileMap.set(e, {
9197
+ this.varCatalogMap.set(e, i != null ? i : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varButtonConfigMap.set(e, v != null ? v : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(b)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(m)), this.varProfileConfigMap.set(e, transformVarProfileConfig(T != null ? T : null)), this.varProfileMap.set(e, {
9153
9198
  varProfile: _ != null ? _ : null,
9154
9199
  currentVarProfileMasterID: (n = (r = (t = _ == null ? void 0 : _.varProfileMasters) == null ? void 0 : t.find((E) => E.def_flg === 1 || E.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
9155
- }), this.varGridConfigMap.set(e, transformVarGridConfig(T != null ? T : null)), this.varGridMap.set(e, {
9200
+ }), this.varGridConfigMap.set(e, transformVarGridConfig(C != null ? C : null)), this.varGridMap.set(e, {
9156
9201
  varGrid: transformVarGridDTO(y),
9157
9202
  currentVarGridMasterID: (s = (o = (a = y == null ? void 0 : y.varGridMasters) == null ? void 0 : a.find((E) => E.def_flg === 1 || E.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
9158
9203
  }), this.emit(e, "ready");
@@ -9266,6 +9311,24 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
9266
9311
  },
9267
9312
  { immediate: !0 }
9268
9313
  );
9314
+ },
9315
+ patchVarSubmitField(e, t, r) {
9316
+ if (!e || !t)
9317
+ return;
9318
+ const n = watch(
9319
+ () => this.getVarSubmitField(e, t),
9320
+ (a) => {
9321
+ a && setTimeout(() => {
9322
+ var s;
9323
+ n(), Object.entries(r).forEach(([i, l]) => {
9324
+ i in a && (a[i] = l);
9325
+ });
9326
+ const o = [...(s = this.varSubmitFieldMap.get(e)) != null ? s : []];
9327
+ o.splice(o.indexOf(a), 1, { ...a }), this.varSubmitFieldMap.set(e, o);
9328
+ });
9329
+ },
9330
+ { immediate: !0 }
9331
+ );
9269
9332
  }
9270
9333
  }
9271
9334
  }).bind(null, pinia())), store$6);
@@ -9285,11 +9348,11 @@ function useKgVar(e, t, r = 0) {
9285
9348
  i.leave(s);
9286
9349
  }));
9287
9350
  const l = ($) => computed(() => {
9288
- var V, A, M;
9289
- return (M = (A = (V = i.getVarCatalog(s, $)) == null ? void 0 : V.var_text) != null ? A : $) != null ? M : "";
9290
- }), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), v = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), _ = computed(() => i.isOtherRequesting(s)), C = computed(() => i.getVarButtons(s)), y = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), I = computed(() => {
9351
+ var V, w, I;
9352
+ return (I = (w = (V = i.getVarCatalog(s, $)) == null ? void 0 : V.var_text) != null ? w : $) != null ? I : "";
9353
+ }), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), v = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), _ = computed(() => i.isOtherRequesting(s)), T = computed(() => i.getVarButtons(s)), y = computed(() => i.getVarProfileMasters(s)), C = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), A = computed(() => {
9291
9354
  var $, V;
9292
- return (V = ($ = T.value) == null ? void 0 : $.varProfileDetails) != null ? V : null;
9355
+ return (V = ($ = C.value) == null ? void 0 : $.varProfileDetails) != null ? V : null;
9293
9356
  }), k = computed(() => i.getVarGridConfig(s)), R = computed(() => i.getVarGridMasters(s)), L = computed(() => i.getCurrentVarGridMaster(s)), O = computed(() => i.getSystemVarGridDetails(s)), D = computed(() => i.getCurrentVarGridDetails(s));
9294
9357
  return {
9295
9358
  formID: s,
@@ -9302,11 +9365,11 @@ function useKgVar(e, t, r = 0) {
9302
9365
  isCopying: b,
9303
9366
  isDeleting: m,
9304
9367
  isOtherRequesting: _,
9305
- varButtons: C,
9368
+ varButtons: T,
9306
9369
  varProfileMasters: y,
9307
- currentVarProfileMaster: T,
9370
+ currentVarProfileMaster: C,
9308
9371
  currentVarProfileMasterID: E,
9309
- currentVarProfileDetails: I,
9372
+ currentVarProfileDetails: A,
9310
9373
  varGridConfig: k,
9311
9374
  varGridMasters: R,
9312
9375
  currentVarGridMaster: L,
@@ -9548,8 +9611,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9548
9611
  }) => {
9549
9612
  const c = o.store.getVarSubmitConfig(o.formID);
9550
9613
  return i = watch(u, (g) => {
9551
- var p, v, b, m, _, C, y, T, E, I, k, R;
9552
- g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (v = c == null ? void 0 : c.resizable_flg) != null ? v : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (_ = c == null ? void 0 : c.responsive_flg) != null ? _ : 1, g.max_width = (C = c == null ? void 0 : c.max_width) != null ? C : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (T = c == null ? void 0 : c.dft_width) != null ? T : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (I = c == null ? void 0 : c.label_col) != null ? I : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (R = c == null ? void 0 : c.display_type) != null ? R : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
9614
+ var p, v, b, m, _, T, y, C, E, A, k, R;
9615
+ g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (v = c == null ? void 0 : c.resizable_flg) != null ? v : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (_ = c == null ? void 0 : c.responsive_flg) != null ? _ : 1, g.max_width = (T = c == null ? void 0 : c.max_width) != null ? T : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (C = c == null ? void 0 : c.dft_width) != null ? C : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (A = c == null ? void 0 : c.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (R = c == null ? void 0 : c.display_type) != null ? R : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
9553
9616
  }, {
9554
9617
  immediate: !0
9555
9618
  }), !1;
@@ -9599,8 +9662,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9599
9662
  r("kgCancel");
9600
9663
  }
9601
9664
  function b() {
9602
- var C;
9603
- return e.kgShowFullscreenButton === !1 || ((C = i.value) == null ? void 0 : C.fullscreen_flg) === 0 ? null : createVNode(Button, {
9665
+ var T;
9666
+ return e.kgShowFullscreenButton === !1 || ((T = i.value) == null ? void 0 : T.fullscreen_flg) === 0 ? null : createVNode(Button, {
9604
9667
  onClick: g,
9605
9668
  class: "kg-submit--btn-fullscreen"
9606
9669
  }, {
@@ -9632,7 +9695,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9632
9695
  }), DEFAULT_MIN_WIDTH = 300, DEFAULT_MAX_WIDTH = 1182, DEFAULT_WIDTH = 594, DEFAULT_LAYOUT = "vertical", DEFAULT_LABEL_COL_FOR_SPAN = 4, DEFAULT_LABEL_COL_FOR_PX = 100;
9633
9696
  function _useFormModel() {
9634
9697
  const e = inject("$dayjs", dayjs), t = useKgVar(), r = useKgTable(), n = useKgSubmit(), a = computed(() => t.store.isCreating(t.formID)), o = computed(() => t.store.isUpdating(t.formID)), s = computed(() => t.store.isCopying(t.formID)), i = computed(() => t.store.isDeleting(t.formID)), l = computed(() => t.store.getVarSubmitFieldsForCreate(t.formID)), u = computed(() => t.store.getVarSubmitFieldsForUpdate(t.formID)), c = computed(() => t.store.getVarSubmitFieldsForCopy(t.formID)), g = computed(() => t.store.getVarSubmitFieldsForDelete(t.formID)), p = computed(() => {
9635
- var b, m, _, C;
9698
+ var b, m, _, T;
9636
9699
  switch (!0) {
9637
9700
  case a.value:
9638
9701
  return (b = l.value) != null ? b : [];
@@ -9641,7 +9704,7 @@ function _useFormModel() {
9641
9704
  case s.value:
9642
9705
  return (_ = c.value) != null ? _ : [];
9643
9706
  case i.value:
9644
- return (C = g.value) != null ? C : [];
9707
+ return (T = g.value) != null ? T : [];
9645
9708
  }
9646
9709
  return [];
9647
9710
  }), v = ref({});
@@ -9649,20 +9712,20 @@ function _useFormModel() {
9649
9712
  if (v.value = {}, b != null && b.length) {
9650
9713
  const m = r.selectedRow.value;
9651
9714
  b.forEach((_) => {
9652
- var y, T, E, I, k, R, L, O;
9653
- const C = (y = _.var_nam) != null ? y : "";
9654
- switch (v.value[C] = void 0, !0) {
9715
+ var y, C, E, A, k, R, L, O;
9716
+ const T = (y = _.var_nam) != null ? y : "";
9717
+ switch (v.value[T] = void 0, !0) {
9655
9718
  case a.value:
9656
- v.value[C] = KgVarUtil.transformValueByControlType(t.formID, C, e, (T = _.crt_dft_val) != null ? T : void 0);
9719
+ v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (C = _.crt_dft_val) != null ? C : void 0);
9657
9720
  break;
9658
9721
  case o.value:
9659
- v.value.id = m == null ? void 0 : m.id, v.value[C] = KgVarUtil.transformValueByControlType(t.formID, C, e, (I = (E = _.upt_dft_val) != null ? E : m == null ? void 0 : m[C]) != null ? I : void 0);
9722
+ v.value.id = m == null ? void 0 : m.id, v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (A = (E = _.upt_dft_val) != null ? E : m == null ? void 0 : m[T]) != null ? A : void 0);
9660
9723
  break;
9661
9724
  case s.value:
9662
- v.value.id = m == null ? void 0 : m.id, v.value[C] = KgVarUtil.transformValueByControlType(t.formID, C, e, (R = (k = _.cpy_dft_val) != null ? k : m == null ? void 0 : m[C]) != null ? R : void 0);
9725
+ v.value.id = m == null ? void 0 : m.id, v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (R = (k = _.cpy_dft_val) != null ? k : m == null ? void 0 : m[T]) != null ? R : void 0);
9663
9726
  break;
9664
9727
  case i.value:
9665
- v.value.id = m == null ? void 0 : m.id, v.value[C] = KgVarUtil.transformValueByControlType(t.formID, C, e, (O = (L = _.del_dft_val) != null ? L : m == null ? void 0 : m[C]) != null ? O : void 0);
9728
+ v.value.id = m == null ? void 0 : m.id, v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (O = (L = _.del_dft_val) != null ? L : m == null ? void 0 : m[T]) != null ? O : void 0);
9666
9729
  break;
9667
9730
  }
9668
9731
  });
@@ -9747,9 +9810,9 @@ function _useLayout() {
9747
9810
  const e = useKgVar(), t = computed(() => e.store.isCreating(e.formID)), r = computed(() => e.store.isUpdating(e.formID)), n = computed(() => e.store.isCopying(e.formID)), a = computed(() => e.store.isDeleting(e.formID)), o = computed(() => e.store.getVarSubmitConfig(e.formID));
9748
9811
  return {
9749
9812
  getLayout: computed(() => {
9750
- var v, b, m, _, C;
9813
+ var v, b, m, _, T;
9751
9814
  let i = "vertical";
9752
- const l = (v = o.value) == null ? void 0 : v.layout, u = (b = o.value) == null ? void 0 : b.crt_layout, c = (m = o.value) == null ? void 0 : m.upt_layout, g = (_ = o.value) == null ? void 0 : _.cpy_layout, p = (C = o.value) == null ? void 0 : C.del_layout;
9815
+ const l = (v = o.value) == null ? void 0 : v.layout, u = (b = o.value) == null ? void 0 : b.crt_layout, c = (m = o.value) == null ? void 0 : m.upt_layout, g = (_ = o.value) == null ? void 0 : _.cpy_layout, p = (T = o.value) == null ? void 0 : T.del_layout;
9753
9816
  switch (!0) {
9754
9817
  case (t.value && (u === "horizontal" || !u && l === "horizontal")):
9755
9818
  i = "horizontal";
@@ -9772,9 +9835,9 @@ function _useDisplayType() {
9772
9835
  const e = useKgVar(), t = computed(() => e.store.isCreating(e.formID)), r = computed(() => e.store.isUpdating(e.formID)), n = computed(() => e.store.isCopying(e.formID)), a = computed(() => e.store.isDeleting(e.formID)), o = computed(() => e.store.getVarSubmitConfig(e.formID));
9773
9836
  return {
9774
9837
  getDisplayType: computed(() => {
9775
- var b, m, _, C, y;
9838
+ var b, m, _, T, y;
9776
9839
  let i = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
9777
- const l = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = (b = o.value) == null ? void 0 : b.display_type, c = (m = o.value) == null ? void 0 : m.crt_display_type, g = (_ = o.value) == null ? void 0 : _.upt_display_type, p = (C = o.value) == null ? void 0 : C.cpy_display_type, v = (y = o.value) == null ? void 0 : y.del_display_type;
9840
+ const l = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = (b = o.value) == null ? void 0 : b.display_type, c = (m = o.value) == null ? void 0 : m.crt_display_type, g = (_ = o.value) == null ? void 0 : _.upt_display_type, p = (T = o.value) == null ? void 0 : T.cpy_display_type, v = (y = o.value) == null ? void 0 : y.del_display_type;
9778
9841
  switch (!0) {
9779
9842
  case (t.value && (c === l || !c && u === l)):
9780
9843
  i = l;
@@ -9797,10 +9860,10 @@ function _useDefaultWidth() {
9797
9860
  const e = useKgVar(), t = computed(() => e.store.isCreating(e.formID)), r = computed(() => e.store.isUpdating(e.formID)), n = computed(() => e.store.isCopying(e.formID)), a = computed(() => e.store.isDeleting(e.formID)), o = computed(() => e.store.getVarSubmitConfig(e.formID));
9798
9861
  return {
9799
9862
  getDefaultWidth: computed(() => {
9800
- var v, b, m, _, C;
9863
+ var v, b, m, _, T;
9801
9864
  if (!o.value)
9802
9865
  return 0;
9803
- const i = (v = o.value) == null ? void 0 : v.dft_width, l = (b = o.value) == null ? void 0 : b.crt_dft_width, u = (m = o.value) == null ? void 0 : m.upt_dft_width, c = (_ = o.value) == null ? void 0 : _.cpy_dft_width, g = (C = o.value) == null ? void 0 : C.del_dft_width;
9866
+ const i = (v = o.value) == null ? void 0 : v.dft_width, l = (b = o.value) == null ? void 0 : b.crt_dft_width, u = (m = o.value) == null ? void 0 : m.upt_dft_width, c = (_ = o.value) == null ? void 0 : _.cpy_dft_width, g = (T = o.value) == null ? void 0 : T.del_dft_width;
9804
9867
  let p = i || DEFAULT_WIDTH;
9805
9868
  switch (!0) {
9806
9869
  case (t.value && !!l):
@@ -9838,7 +9901,7 @@ const getProps$p = () => ({
9838
9901
  }) {
9839
9902
  const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
9840
9903
  _useFormModel();
9841
- const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), v = computed(() => p.value && $.value.length === 0 && V.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), _ = computed(() => a.store.getVarButtonCopy(a.formID)), C = computed(() => a.store.getVarButtonDelete(a.formID)), y = computed(() => s.store.isLoading(a.formID)), T = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), I = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), R = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), L = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), O = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), D = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), $ = computed(() => {
9904
+ const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), v = computed(() => p.value && $.value.length === 0 && V.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), _ = computed(() => a.store.getVarButtonCopy(a.formID)), T = computed(() => a.store.getVarButtonDelete(a.formID)), y = computed(() => s.store.isLoading(a.formID)), C = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), A = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), R = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), L = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), O = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), D = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), $ = computed(() => {
9842
9905
  var B, W, Q;
9843
9906
  switch (!0) {
9844
9907
  case u.value:
@@ -9852,68 +9915,68 @@ const getProps$p = () => ({
9852
9915
  }
9853
9916
  return [];
9854
9917
  }), V = computed(() => {
9855
- var B, W, Q, te;
9918
+ var B, W, Q, re;
9856
9919
  switch (!0) {
9857
9920
  case u.value:
9858
- return (B = I.value) != null ? B : [];
9921
+ return (B = A.value) != null ? B : [];
9859
9922
  case c.value:
9860
9923
  return (W = R.value) != null ? W : [];
9861
9924
  case g.value:
9862
9925
  return (Q = O.value) != null ? Q : [];
9863
9926
  case p.value:
9864
- return (te = D.value) != null ? te : [];
9927
+ return (re = D.value) != null ? re : [];
9865
9928
  }
9866
9929
  return [];
9867
- }), A = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), M = computed(() => A.value || y.value), w = computed(() => y.value), N = ref({
9930
+ }), w = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), I = computed(() => w.value || y.value), M = computed(() => y.value), N = ref({
9868
9931
  kgWidth: 0
9869
9932
  }), F = computed(() => {
9870
9933
  var B;
9871
- return !!(v.value || se.isFullscreen || ((B = T.value) == null ? void 0 : B.resizable_flg) === 0);
9872
- }), U = computed(() => {
9934
+ return !!(v.value || ie.isFullscreen || ((B = C.value) == null ? void 0 : B.resizable_flg) === 0);
9935
+ }), H = computed(() => {
9873
9936
  var B, W;
9874
- return v.value ? 398 : (W = (B = T.value) == null ? void 0 : B.min_width) != null ? W : DEFAULT_MIN_WIDTH;
9875
- }), G = computed(() => {
9937
+ return v.value ? 398 : (W = (B = C.value) == null ? void 0 : B.min_width) != null ? W : DEFAULT_MIN_WIDTH;
9938
+ }), U = computed(() => {
9876
9939
  var B, W;
9877
- return v.value ? 398 : (W = (B = T.value) == null ? void 0 : B.max_width) != null ? W : DEFAULT_MAX_WIDTH;
9878
- }), x = computed(() => v.value ? 398 : N.value.kgWidth), H = ref(null), Y = ref({}), X = ref(null);
9940
+ return v.value ? 398 : (W = (B = C.value) == null ? void 0 : B.max_width) != null ? W : DEFAULT_MAX_WIDTH;
9941
+ }), x = computed(() => v.value ? 398 : N.value.kgWidth), G = ref(null), q = ref({}), X = ref(null);
9879
9942
  _useResizeObserver$1(X);
9880
- const Z = _useTitle(), re = computed(() => v.value ? 400 : N.value.kgWidth && N.value.kgWidth > 0 ? N.value.kgWidth + 2 : 0), ae = computed(() => re.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), se = reactive({
9943
+ const Z = _useTitle(), ne = computed(() => v.value ? 400 : N.value.kgWidth && N.value.kgWidth > 0 ? N.value.kgWidth + 2 : 0), oe = computed(() => ne.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), ie = reactive({
9881
9944
  isFullscreen: !1
9882
9945
  }), {
9883
- getDisplayType: de
9946
+ getDisplayType: fe
9884
9947
  } = _useDisplayType(), {
9885
- getClass: P
9886
- } = _useClass(e, se), {
9887
- getLayout: K
9948
+ getClass: te
9949
+ } = _useClass(e, ie), {
9950
+ getLayout: P
9888
9951
  } = _useLayout(), {
9889
- getDefaultWidth: z
9890
- } = _useDefaultWidth(), q = computed(() => {
9952
+ getDefaultWidth: K
9953
+ } = _useDefaultWidth(), z = computed(() => {
9891
9954
  var B, W, Q;
9892
- switch (K.value) {
9955
+ switch (P.value) {
9893
9956
  case "horizontal":
9894
- switch ((B = T.value) == null ? void 0 : B.label_col_unit) {
9957
+ switch ((B = C.value) == null ? void 0 : B.label_col_unit) {
9895
9958
  case KG_WIDTH_UNIT.SPAN:
9896
9959
  return {
9897
- span: (W = T.value) == null ? void 0 : W.label_col
9960
+ span: (W = C.value) == null ? void 0 : W.label_col
9898
9961
  };
9899
9962
  default:
9900
9963
  return {
9901
9964
  style: {
9902
- width: `${(Q = T.value) == null ? void 0 : Q.label_col}px`
9965
+ width: `${(Q = C.value) == null ? void 0 : Q.label_col}px`
9903
9966
  }
9904
9967
  };
9905
9968
  }
9906
9969
  default:
9907
9970
  return;
9908
9971
  }
9909
- }), ne = computed(() => {
9972
+ }), Y = computed(() => {
9910
9973
  var B, W;
9911
- switch (K.value) {
9974
+ switch (P.value) {
9912
9975
  case "horizontal":
9913
- switch ((B = T.value) == null ? void 0 : B.label_col_unit) {
9976
+ switch ((B = C.value) == null ? void 0 : B.label_col_unit) {
9914
9977
  case KG_WIDTH_UNIT.SPAN:
9915
9978
  return {
9916
- span: 24 - ((W = T.value) == null ? void 0 : W.label_col)
9979
+ span: 24 - ((W = C.value) == null ? void 0 : W.label_col)
9917
9980
  };
9918
9981
  default:
9919
9982
  return;
@@ -9922,16 +9985,16 @@ const getProps$p = () => ({
9922
9985
  return;
9923
9986
  }
9924
9987
  });
9925
- watch(ae, (B, W) => {
9926
- B === !0 && J(), W === !0 && B === !1 && pe();
9988
+ watch(oe, (B, W) => {
9989
+ B === !0 && ae(), W === !0 && B === !1 && J();
9927
9990
  }, {
9928
9991
  immediate: !0
9929
- }), watch(z, (B) => {
9992
+ }), watch(K, (B) => {
9930
9993
  B && (N.value.kgWidth = B);
9931
9994
  }, {
9932
9995
  immediate: !0
9933
9996
  });
9934
- function J() {
9997
+ function ae() {
9935
9998
  var W;
9936
9999
  const B = watch(s.model, (Q) => {
9937
10000
  Q && Object.keys(Q).length > 0 && (setTimeout(() => B()), s.store.emit(a.formID, "open", {
@@ -9945,12 +10008,12 @@ const getProps$p = () => ({
9945
10008
  }, {
9946
10009
  immediate: !0
9947
10010
  });
9948
- ((W = T.value) == null ? void 0 : W.dft_fullscreen_flg) === 1 && !v.value && (se.isFullscreen = !0);
10011
+ ((W = C.value) == null ? void 0 : W.dft_fullscreen_flg) === 1 && !v.value && (ie.isFullscreen = !0);
9949
10012
  }
9950
- function pe() {
9951
- N.value.kgWidth = z.value, se.isFullscreen = !1, s.store.emit(a.formID, "close");
10013
+ function J() {
10014
+ N.value.kgWidth = K.value, ie.isFullscreen = !1, s.store.emit(a.formID, "close");
9952
10015
  }
9953
- function he() {
10016
+ function pe() {
9954
10017
  switch (!0) {
9955
10018
  case u.value:
9956
10019
  a.store.setIsCreating(a.formID, !1);
@@ -9966,7 +10029,7 @@ const getProps$p = () => ({
9966
10029
  break;
9967
10030
  }
9968
10031
  }
9969
- async function _e() {
10032
+ async function he() {
9970
10033
  var B, W;
9971
10034
  try {
9972
10035
  if (await s.store.emit(a.formID, "beforeOk", {
@@ -9975,16 +10038,16 @@ const getProps$p = () => ({
9975
10038
  isCopying: g.value,
9976
10039
  isDeleting: p.value,
9977
10040
  row: o.selectedRow.value,
9978
- rules: Y,
10041
+ rules: q,
9979
10042
  model: s.model
9980
10043
  }))
9981
10044
  return;
9982
10045
  try {
9983
- await ((B = H.value) == null ? void 0 : B.validate());
9984
- } catch (oe) {
9985
- KgUtil.throwIfNotFormError(oe);
10046
+ await ((B = G.value) == null ? void 0 : B.validate());
10047
+ } catch (se) {
10048
+ KgUtil.throwIfNotFormError(se);
9986
10049
  }
9987
- if (await ((W = H.value) == null ? void 0 : W.validate()), await s.store.emit(a.formID, "afterValidate", {
10050
+ if (await ((W = G.value) == null ? void 0 : W.validate()), await s.store.emit(a.formID, "afterValidate", {
9988
10051
  isCreating: u.value,
9989
10052
  isUpdating: c.value,
9990
10053
  isCopying: g.value,
@@ -10012,7 +10075,7 @@ const getProps$p = () => ({
10012
10075
  }
10013
10076
  }
10014
10077
  async function Se() {
10015
- var W, Q, te, oe, ie, le, ue, ce;
10078
+ var W, Q, re, se, le, ue, ce, de;
10016
10079
  const B = (W = b.value) == null ? void 0 : W.cmd;
10017
10080
  if (!B) {
10018
10081
  Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
@@ -10022,7 +10085,7 @@ const getProps$p = () => ({
10022
10085
  }
10023
10086
  a.store.setIsCreatingRequesting(a.formID, !0);
10024
10087
  try {
10025
- const ee = KgUtil.parseParams(KgVarUtil.parseCommandParameter((te = (Q = b.value) == null ? void 0 : Q.cmd_prm) != null ? te : ""), a.formID, r), fe = KgUtil.parseParams(toRaw(s.model.value), a.formID, r);
10088
+ const ee = KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Q = b.value) == null ? void 0 : Q.cmd_prm) != null ? re : ""), a.formID, r), ge = KgUtil.parseParams(toRaw(s.model.value), a.formID, r);
10026
10089
  if (await s.store.emit(a.formID, "beforeRequest", {
10027
10090
  isCreating: u.value,
10028
10091
  isUpdating: c.value,
@@ -10030,15 +10093,15 @@ const getProps$p = () => ({
10030
10093
  isDeleting: p.value,
10031
10094
  row: o.selectedRow.value,
10032
10095
  params: ee,
10033
- data: fe
10096
+ data: ge
10034
10097
  }))
10035
10098
  return;
10036
10099
  await httpClient().request({
10037
- method: (ie = (oe = b.value) == null ? void 0 : oe.cmd_method) != null ? ie : "POST",
10100
+ method: (le = (se = b.value) == null ? void 0 : se.cmd_method) != null ? le : "POST",
10038
10101
  url: B,
10039
10102
  params: ee,
10040
- data: fe
10041
- }), ((le = b.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(Z.title.value + n.t("kg.succeed")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (ce = (ue = i.search).value) == null || ce.call(ue, !0);
10103
+ data: ge
10104
+ }), ((ue = b.value) == null ? void 0 : ue.show_success_message_flg) !== 0 && message.success(Z.title.value + n.t("kg.succeed")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (de = (ce = i.search).value) == null || de.call(ce, !0);
10042
10105
  } catch (ee) {
10043
10106
  console.error(ee);
10044
10107
  } finally {
@@ -10046,7 +10109,7 @@ const getProps$p = () => ({
10046
10109
  }
10047
10110
  }
10048
10111
  async function Ce() {
10049
- var W, Q, te, oe, ie, le, ue, ce;
10112
+ var W, Q, re, se, le, ue, ce, de;
10050
10113
  const B = (W = m.value) == null ? void 0 : W.cmd;
10051
10114
  if (!B) {
10052
10115
  Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
@@ -10056,7 +10119,7 @@ const getProps$p = () => ({
10056
10119
  }
10057
10120
  try {
10058
10121
  a.store.setIsUpdatingRequesting(a.formID, !0);
10059
- const ee = KgVarUtil.parseCommandParameter((te = (Q = m.value) == null ? void 0 : Q.cmd_prm) != null ? te : ""), fe = toRaw(s.model.value);
10122
+ const ee = KgVarUtil.parseCommandParameter((re = (Q = m.value) == null ? void 0 : Q.cmd_prm) != null ? re : ""), ge = toRaw(s.model.value);
10060
10123
  if (await s.store.emit(a.formID, "beforeRequest", {
10061
10124
  isCreating: u.value,
10062
10125
  isUpdating: c.value,
@@ -10064,15 +10127,15 @@ const getProps$p = () => ({
10064
10127
  isDeleting: p.value,
10065
10128
  row: o.selectedRow.value,
10066
10129
  params: ee,
10067
- data: fe
10130
+ data: ge
10068
10131
  }))
10069
10132
  return;
10070
10133
  await httpClient().request({
10071
- method: (ie = (oe = m.value) == null ? void 0 : oe.cmd_method) != null ? ie : "POST",
10134
+ method: (le = (se = m.value) == null ? void 0 : se.cmd_method) != null ? le : "POST",
10072
10135
  url: B,
10073
10136
  params: ee,
10074
- data: fe
10075
- }), ((le = m.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (ce = (ue = i.search).value) == null || ce.call(ue);
10137
+ data: ge
10138
+ }), ((ue = m.value) == null ? void 0 : ue.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (de = (ce = i.search).value) == null || de.call(ce);
10076
10139
  } catch (ee) {
10077
10140
  console.error(ee);
10078
10141
  } finally {
@@ -10080,7 +10143,7 @@ const getProps$p = () => ({
10080
10143
  }
10081
10144
  }
10082
10145
  async function Te() {
10083
- var W, Q, te, oe, ie, le, ue, ce, ee, fe;
10146
+ var W, Q, re, se, le, ue, ce, de, ee, ge;
10084
10147
  const B = (W = _.value) == null ? void 0 : W.cmd;
10085
10148
  if (!B) {
10086
10149
  Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
@@ -10090,48 +10153,48 @@ const getProps$p = () => ({
10090
10153
  }
10091
10154
  try {
10092
10155
  a.store.setIsCopyingRequesting(a.formID, !0);
10093
- const ge = KgVarUtil.parseCommandParameter((te = (Q = _.value) == null ? void 0 : Q.cmd_prm) != null ? te : ""), me = {
10094
- ...(oe = o.selectedRow.value) != null ? oe : {},
10156
+ const me = KgVarUtil.parseCommandParameter((re = (Q = _.value) == null ? void 0 : Q.cmd_prm) != null ? re : ""), _e = {
10157
+ ...(se = o.selectedRow.value) != null ? se : {},
10095
10158
  ...toRaw(s.model.value)
10096
10159
  };
10097
- if (((ie = T.value) == null ? void 0 : ie.cpy_clear_id_flg) !== 0 && delete me.id, await s.store.emit(a.formID, "beforeRequest", {
10160
+ if (((le = C.value) == null ? void 0 : le.cpy_clear_id_flg) !== 0 && delete _e.id, await s.store.emit(a.formID, "beforeRequest", {
10098
10161
  isCreating: u.value,
10099
10162
  isUpdating: c.value,
10100
10163
  isCopying: g.value,
10101
10164
  isDeleting: p.value,
10102
10165
  row: o.selectedRow.value,
10103
- params: ge,
10104
- data: me
10166
+ params: me,
10167
+ data: _e
10105
10168
  }))
10106
10169
  return;
10107
10170
  await httpClient().request({
10108
- method: (ue = (le = _.value) == null ? void 0 : le.cmd_method) != null ? ue : "POST",
10171
+ method: (ce = (ue = _.value) == null ? void 0 : ue.cmd_method) != null ? ce : "POST",
10109
10172
  url: B,
10110
- params: ge,
10111
- data: me
10112
- }), ((ce = _.value) == null ? void 0 : ce.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (fe = (ee = i.search).value) == null || fe.call(ee, !0);
10113
- } catch (ge) {
10114
- console.error(ge);
10173
+ params: me,
10174
+ data: _e
10175
+ }), ((de = _.value) == null ? void 0 : de.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (ge = (ee = i.search).value) == null || ge.call(ee, !0);
10176
+ } catch (me) {
10177
+ console.error(me);
10115
10178
  } finally {
10116
10179
  a.store.setIsCopyingRequesting(a.formID, !1);
10117
10180
  }
10118
10181
  }
10119
10182
  async function Ee() {
10120
- var W, Q, te, oe, ie, le, ue, ce;
10121
- const B = (W = C.value) == null ? void 0 : W.cmd;
10183
+ var W, Q, re, se, le, ue, ce, de;
10184
+ const B = (W = T.value) == null ? void 0 : W.cmd;
10122
10185
  if (!B) {
10123
10186
  Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10124
- VarButton: C.value
10187
+ VarButton: T.value
10125
10188
  });
10126
10189
  return;
10127
10190
  }
10128
10191
  try {
10129
10192
  a.store.setIsDeletingRequesting(a.formID, !0);
10130
10193
  const ee = {
10131
- ids: (te = (Q = o.selectedRows.value) == null ? void 0 : Q.map((ge) => {
10132
- var me, ve, ye;
10133
- return (ye = ge[(ve = (me = C.value) == null ? void 0 : me.del_param_clm) != null ? ve : "id"]) != null ? ye : "";
10134
- })) != null ? te : []
10194
+ ids: (re = (Q = o.selectedRows.value) == null ? void 0 : Q.map((me) => {
10195
+ var _e, ve, ye;
10196
+ return (ye = me[(ve = (_e = T.value) == null ? void 0 : _e.del_param_clm) != null ? ve : "id"]) != null ? ye : "";
10197
+ })) != null ? re : []
10135
10198
  };
10136
10199
  if (await s.store.emit(a.formID, "beforeRequest", {
10137
10200
  isCreating: u.value,
@@ -10144,12 +10207,12 @@ const getProps$p = () => ({
10144
10207
  }))
10145
10208
  return;
10146
10209
  await httpClient().request({
10147
- method: (ie = (oe = C.value) == null ? void 0 : oe.cmd_method) != null ? ie : "DELETE",
10210
+ method: (le = (se = T.value) == null ? void 0 : se.cmd_method) != null ? le : "DELETE",
10148
10211
  url: B,
10149
10212
  params: ee
10150
10213
  }, {
10151
10214
  joinParamsToUrl: !0
10152
- }), ((le = C.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (ce = (ue = i.search).value) == null || ce.call(ue, !0);
10215
+ }), ((ue = T.value) == null ? void 0 : ue.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (de = (ce = i.search).value) == null || de.call(ce, !0);
10153
10216
  } catch (ee) {
10154
10217
  console.error(ee);
10155
10218
  } finally {
@@ -10157,42 +10220,42 @@ const getProps$p = () => ({
10157
10220
  }
10158
10221
  }
10159
10222
  function be(B) {
10160
- var Q, te;
10161
- const W = (te = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : te[B.var_nam];
10223
+ var Q, re;
10224
+ const W = (re = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : re[B.var_nam];
10162
10225
  return isFunction$2(W) ? createVNode(KgForm.Item, {
10163
10226
  kgVarName: B.var_nam,
10164
10227
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10165
- kgRules: Y.value[B.var_nam],
10166
- onKgSubmit: _e
10228
+ kgRules: q.value[B.var_nam],
10229
+ onKgSubmit: he
10167
10230
  }, {
10168
10231
  control: ({
10169
- varName: oe,
10170
- props: ie,
10171
- model: le,
10172
- varConfig: ue,
10173
- varProfileDetail: ce,
10232
+ varName: se,
10233
+ props: le,
10234
+ model: ue,
10235
+ varConfig: ce,
10236
+ varProfileDetail: de,
10174
10237
  varSubmitField: ee
10175
10238
  }) => W({
10176
- varName: oe,
10177
- props: ie,
10178
- model: le,
10179
- varConfig: ue,
10180
- varProfileDetail: ce,
10239
+ varName: se,
10240
+ props: le,
10241
+ model: ue,
10242
+ varConfig: ce,
10243
+ varProfileDetail: de,
10181
10244
  varSubmitField: ee
10182
10245
  })
10183
10246
  }) : createVNode(KgForm.Item, {
10184
10247
  kgVarName: B.var_nam,
10185
10248
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10186
- kgRules: Y.value[B.var_nam],
10187
- onKgSubmit: _e
10249
+ kgRules: q.value[B.var_nam],
10250
+ onKgSubmit: he
10188
10251
  }, null);
10189
10252
  }
10190
10253
  function ke() {
10191
10254
  let B, W;
10192
10255
  return createVNode(KgResizable, {
10193
- kgType: de.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
10194
- kgMinWidth: U.value,
10195
- kgMaxWidth: G.value,
10256
+ kgType: fe.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
10257
+ kgMinWidth: H.value,
10258
+ kgMaxWidth: U.value,
10196
10259
  kgWidth: x.value,
10197
10260
  kgDisabled: F.value,
10198
10261
  "onUpdate:kgWidth": (Q) => N.value.kgWidth = Q
@@ -10201,11 +10264,11 @@ const getProps$p = () => ({
10201
10264
  spinning: y.value
10202
10265
  }, {
10203
10266
  default: () => [createVNode(KgForm, {
10204
- ref: H,
10267
+ ref: G,
10205
10268
  model: s.model.value,
10206
- layout: K.value,
10207
- labelCol: q.value,
10208
- wrapperCol: ne.value
10269
+ layout: P.value,
10270
+ labelCol: z.value,
10271
+ wrapperCol: Y.value
10209
10272
  }, {
10210
10273
  default: () => [createVNode("div", {
10211
10274
  ref: X
@@ -10228,17 +10291,17 @@ const getProps$p = () => ({
10228
10291
  let B, W;
10229
10292
  return createVNode("div", null, [createVNode(Button, {
10230
10293
  type: "primary",
10231
- ghost: !M.value,
10232
- disabled: M.value,
10233
- onClick: he
10294
+ ghost: !I.value,
10295
+ disabled: I.value,
10296
+ onClick: pe
10234
10297
  }, _isSlot$7(B = n.t("kg.cancel")) ? B : {
10235
10298
  default: () => [B]
10236
10299
  }), createVNode(Button, {
10237
10300
  type: "primary",
10238
- disabled: w.value,
10239
- loading: A.value,
10301
+ disabled: M.value,
10302
+ loading: w.value,
10240
10303
  danger: !!p.value,
10241
- onClick: _e
10304
+ onClick: he
10242
10305
  }, _isSlot$7(W = n.t(p.value ? "kg.delete" : "kg.save")) ? W : {
10243
10306
  default: () => [W]
10244
10307
  })]);
@@ -10250,24 +10313,24 @@ const getProps$p = () => ({
10250
10313
  }
10251
10314
  function Me() {
10252
10315
  return createVNode(KgSubmitHeader, {
10253
- isFullscreen: se.isFullscreen,
10254
- "onUpdate:isFullscreen": (B) => se.isFullscreen = B,
10316
+ isFullscreen: ie.isFullscreen,
10317
+ "onUpdate:isFullscreen": (B) => ie.isFullscreen = B,
10255
10318
  kgShowFullscreenButton: !v.value,
10256
10319
  kgShowConfigButton: !v.value && e.kgShowConfigButton,
10257
- onKgCancel: he
10320
+ onKgCancel: pe
10258
10321
  }, null);
10259
10322
  }
10260
10323
  return onUnmounted(() => {
10261
10324
  s.store.dispose(a.formID);
10262
10325
  }), () => createVNode(Drawer, {
10263
- visible: ae.value,
10326
+ visible: oe.value,
10264
10327
  placement: "right",
10265
10328
  closable: !1,
10266
10329
  maskClosable: !1,
10267
10330
  keyboard: !1,
10268
10331
  destroyOnClose: !0,
10269
- width: re.value,
10270
- class: P.value,
10332
+ width: ne.value,
10333
+ class: te.value,
10271
10334
  "kg-frm-id": a.formID
10272
10335
  }, {
10273
10336
  title: Ae,
@@ -10288,16 +10351,16 @@ const getProps$p = () => ({
10288
10351
  }) {
10289
10352
  provide(DI_KG_SLOTS, e.kgSlots);
10290
10353
  const r = useKgVar(), n = computed(() => r.store.isCreating(r.formID)), a = computed(() => r.store.isUpdating(r.formID)), o = computed(() => r.store.isCopying(r.formID)), s = computed(() => r.store.isDeleting(r.formID)), i = computed(() => r.store.getVarSubmitConfig(r.formID)), l = computed(() => r.store.getVarProfileConfig(r.formID)), u = computed(() => r.store.getVarButtonConfig(r.formID)), c = computed(() => {
10291
- var _, C, y, T;
10354
+ var _, T, y, C;
10292
10355
  switch (!0) {
10293
10356
  case n.value:
10294
10357
  return ((_ = i.value) == null ? void 0 : _.crt_flg) !== 0;
10295
10358
  case a.value:
10296
- return ((C = i.value) == null ? void 0 : C.upt_flg) !== 0;
10359
+ return ((T = i.value) == null ? void 0 : T.upt_flg) !== 0;
10297
10360
  case o.value:
10298
10361
  return ((y = i.value) == null ? void 0 : y.cpy_flg) !== 0;
10299
10362
  case s.value:
10300
- return ((T = i.value) == null ? void 0 : T.del_flg) !== 0;
10363
+ return ((C = i.value) == null ? void 0 : C.del_flg) !== 0;
10301
10364
  }
10302
10365
  return !1;
10303
10366
  }), g = computed(() => {
@@ -10315,9 +10378,9 @@ const getProps$p = () => ({
10315
10378
  spinning: v.value
10316
10379
  }, {
10317
10380
  default: () => {
10318
- var _, C;
10381
+ var _, T;
10319
10382
  return [t.default ? t.default() : createVNode(Fragment, null, [p.value && createVNode(KgSearch, null, null), (_ = t.beforeButton) == null ? void 0 : _.call(t), g.value && createVNode(KgButton, null, null), createVNode(KgTable, null, null), c.value && createVNode(KgSubmit, {
10320
- kgClass: (C = e.kgSubmitClass) != null ? C : ""
10383
+ kgClass: (T = e.kgSubmitClass) != null ? T : ""
10321
10384
  }, null)])];
10322
10385
  }
10323
10386
  });
@@ -10385,16 +10448,16 @@ const getProps$p = () => ({
10385
10448
  }
10386
10449
  }
10387
10450
  function u() {
10388
- var g, p, v, b, m, _, C, y;
10451
+ var g, p, v, b, m, _, T, y;
10389
10452
  switch ((g = o.value) == null ? void 0 : g.display_type) {
10390
10453
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
10391
- const T = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
10454
+ const C = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
10392
10455
  return createVNode(KgYesOrNo, {
10393
- kgValue: e.kgValue === ((v = T.yValue) != null ? v : 1)
10456
+ kgValue: e.kgValue === ((v = C.yValue) != null ? v : 1)
10394
10457
  }, null);
10395
10458
  }
10396
10459
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
10397
- const T = KgUtil.tryParseJSON((b = o.value) == null ? void 0 : b.display_type_properties), E = isArrayLike(T) && T.find((I) => I.value === e.kgValue);
10460
+ const C = KgUtil.tryParseJSON((b = o.value) == null ? void 0 : b.display_type_properties), E = isArrayLike(C) && C.find((A) => A.value === e.kgValue);
10398
10461
  return E ? createVNode(Tag, {
10399
10462
  color: (m = E.color) != null ? m : "default"
10400
10463
  }, {
@@ -10402,11 +10465,11 @@ const getProps$p = () => ({
10402
10465
  }) : c();
10403
10466
  }
10404
10467
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
10405
- const T = KgUtil.tryParseJSON((_ = o.value) == null ? void 0 : _.display_type_properties);
10468
+ const C = KgUtil.tryParseJSON((_ = o.value) == null ? void 0 : _.display_type_properties);
10406
10469
  return createVNode(KgProgressA, {
10407
- kgTextWidth: T.textWidth,
10408
- kgLeft: (C = e.kgRow) == null ? void 0 : C[T.leftColumn],
10409
- kgRight: (y = e.kgRow) == null ? void 0 : y[T.rightColumn]
10470
+ kgTextWidth: C.textWidth,
10471
+ kgLeft: (T = e.kgRow) == null ? void 0 : T[C.leftColumn],
10472
+ kgRight: (y = e.kgRow) == null ? void 0 : y[C.rightColumn]
10410
10473
  }, null);
10411
10474
  }
10412
10475
  case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
@@ -10517,8 +10580,8 @@ const getProps$l = () => ({
10517
10580
  }) => {
10518
10581
  const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
10519
10582
  return s = watch(l, (c) => {
10520
- var g, p, v, b, m, _, C, y, T, E, I;
10521
- c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (v = u == null ? void 0 : u.mult_flg) != null ? v : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (_ = u == null ? void 0 : u.show_bottom_right_flg) != null ? _ : 1, c.convert_sort_field_to_under_score_flg = (C = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? C : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (T = u == null ? void 0 : u.pg_size_opt) != null ? T : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (I = u == null ? void 0 : u.button_display_type) != null ? I : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
10583
+ var g, p, v, b, m, _, T, y, C, E, A;
10584
+ c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (v = u == null ? void 0 : u.mult_flg) != null ? v : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (_ = u == null ? void 0 : u.show_bottom_right_flg) != null ? _ : 1, c.convert_sort_field_to_under_score_flg = (T = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? T : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (C = u == null ? void 0 : u.pg_size_opt) != null ? C : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (A = u == null ? void 0 : u.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
10522
10585
  }, {
10523
10586
  immediate: !0
10524
10587
  }), !1;
@@ -10774,24 +10837,24 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10774
10837
  class: "columns"
10775
10838
  }, [createVNode(Input, {
10776
10839
  value: i.value,
10777
- "onUpdate:value": (T) => i.value = T,
10840
+ "onUpdate:value": (C) => i.value = C,
10778
10841
  allowClear: !0
10779
10842
  }, null), createVNode("ul", {
10780
10843
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
10781
- }, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((T) => createVNode("li", {
10844
+ }, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((C) => createVNode("li", {
10782
10845
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
10783
10846
  onClick: (E) => {
10784
- E.preventDefault(), E.stopPropagation(), p(T);
10847
+ E.preventDefault(), E.stopPropagation(), p(C);
10785
10848
  },
10786
10849
  style: {
10787
- display: s(T, i.value) ? "flex" : "none"
10850
+ display: s(C, i.value) ? "flex" : "none"
10788
10851
  },
10789
- "kg-var-nam": T.var_nam
10852
+ "kg-var-nam": C.var_nam
10790
10853
  }, [createVNode(Checkbox, {
10791
- checked: T.vis_flg === 1,
10854
+ checked: C.vis_flg === 1,
10792
10855
  disabled: !0
10793
10856
  }, {
10794
- default: () => [createVNode("pre", null, [a.t(T.var_nam).value])]
10857
+ default: () => [createVNode("pre", null, [a.t(C.var_nam).value])]
10795
10858
  }), createVNode(HolderOutlined$1, {
10796
10859
  onClick: (E) => {
10797
10860
  E.preventDefault(), E.stopPropagation();
@@ -10809,16 +10872,16 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10809
10872
  }, {
10810
10873
  default: () => {
10811
10874
  var E;
10812
- let y, T;
10813
- return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((I) => {
10875
+ let y, C;
10876
+ return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((A) => {
10814
10877
  var k;
10815
10878
  return createVNode(Menu.Item, {
10816
- key: I.id,
10817
- class: I.id === ((k = a.currentVarGridMaster.value) == null ? void 0 : k.id) ? "selected" : "",
10818
- "kg-var-nam": I.grd_var_nam,
10819
- onClick: () => a.store.setCurrentVarGridMasterID(a.formID, I.id)
10879
+ key: A.id,
10880
+ class: A.id === ((k = a.currentVarGridMaster.value) == null ? void 0 : k.id) ? "selected" : "",
10881
+ "kg-var-nam": A.grd_var_nam,
10882
+ onClick: () => a.store.setCurrentVarGridMasterID(a.formID, A.id)
10820
10883
  }, {
10821
- default: () => [a.t(I.grd_var_nam).value]
10884
+ default: () => [a.t(A.grd_var_nam).value]
10822
10885
  });
10823
10886
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
10824
10887
  key: "save-grid-view",
@@ -10828,14 +10891,14 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10828
10891
  }), createVNode(Menu.Item, {
10829
10892
  key: "save-grid-view-as",
10830
10893
  onClick: b
10831
- }, _isSlot$5(T = n.t("kg.KgTable.saveVarGridMasterAs")) ? T : {
10832
- default: () => [T]
10894
+ }, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMasterAs")) ? C : {
10895
+ default: () => [C]
10833
10896
  })]);
10834
10897
  },
10835
10898
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
10836
10899
  });
10837
10900
  }
10838
- function C() {
10901
+ function T() {
10839
10902
  let y;
10840
10903
  return createVNode(Menu.Item, {
10841
10904
  key: "config-var-grid-master",
@@ -10858,7 +10921,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10858
10921
  "onUpdate:openKeys": (y) => l.value = y,
10859
10922
  selectable: !1
10860
10923
  }, {
10861
- default: () => [m(), _(), C()]
10924
+ default: () => [m(), _(), T()]
10862
10925
  })
10863
10926
  }), c.visible && createVNode(KgTableSettingConfigModal, {
10864
10927
  visible: c.visible,
@@ -11034,22 +11097,22 @@ function _useColumns() {
11034
11097
  if (p.fix_right_flg === 1)
11035
11098
  return "right";
11036
11099
  }
11037
- function C() {
11100
+ function T() {
11038
11101
  return p.ord_flg === 1;
11039
11102
  }
11040
11103
  function y() {
11041
11104
  return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
11042
11105
  }
11043
- const T = v();
11106
+ const C = v();
11044
11107
  return {
11045
11108
  dataIndex: p.var_nam,
11046
11109
  title: b(),
11047
- width: T,
11048
- resizable: typeof T == "number",
11110
+ width: C,
11111
+ resizable: typeof C == "number",
11049
11112
  minWidth: KG_TABLE_TD_MIN_WIDTH,
11050
11113
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
11051
11114
  fixed: _(),
11052
- sorter: C(),
11115
+ sorter: T(),
11053
11116
  align: y(),
11054
11117
  defaultSortOrder: m(),
11055
11118
  customHeaderCell: () => ({
@@ -11115,13 +11178,13 @@ const KgTable$1 = "", KgTable = defineComponent({
11115
11178
  switch (P) {
11116
11179
  case "setSelecte":
11117
11180
  if (K[0] === s.formID) {
11118
- const z = K[1], q = K[2];
11181
+ const z = K[1], Y = K[2];
11119
11182
  switch (!0) {
11120
- case (q && !A.value.includes(z[I.value])):
11121
- G([...A.value, z[I.value]]);
11183
+ case (Y && !I.value.includes(z[A.value])):
11184
+ x([...I.value, z[A.value]]);
11122
11185
  break;
11123
- case (!q && A.value.includes(z[I.value])):
11124
- G(without$1(A.value, z[I.value]));
11186
+ case (!Y && I.value.includes(z[A.value])):
11187
+ x(without$1(I.value, z[A.value]));
11125
11188
  break;
11126
11189
  }
11127
11190
  }
@@ -11135,19 +11198,19 @@ const KgTable$1 = "", KgTable = defineComponent({
11135
11198
  isLoading: b
11136
11199
  } = _useLoading(), m = ref(null);
11137
11200
  _useResizeObserver(m);
11138
- const _ = computed(() => s.store.getVarButtonSearch(s.formID)), C = computed(() => {
11201
+ const _ = computed(() => s.store.getVarButtonSearch(s.formID)), T = computed(() => {
11139
11202
  var P;
11140
11203
  return ((P = s.varGridConfig.value) == null ? void 0 : P.mult_flg) === 1;
11141
11204
  }), y = computed(() => {
11142
11205
  var P;
11143
11206
  return ((P = s.varGridConfig.value) == null ? void 0 : P.aut_load_flg) === 1;
11144
- }), T = computed(() => {
11207
+ }), C = computed(() => {
11145
11208
  var P;
11146
11209
  return ((P = s.varGridConfig.value) == null ? void 0 : P.show_bottom_left_flg) !== 0;
11147
11210
  }), E = computed(() => {
11148
11211
  var P;
11149
11212
  return ((P = s.varGridConfig.value) == null ? void 0 : P.show_bottom_right_flg) !== 0;
11150
- }), I = computed(() => {
11213
+ }), A = computed(() => {
11151
11214
  var P, K;
11152
11215
  return (K = (P = s.varGridConfig.value) == null ? void 0 : P.id_clm) != null ? K : "id";
11153
11216
  }), k = computed(() => {
@@ -11157,68 +11220,71 @@ const KgTable$1 = "", KgTable = defineComponent({
11157
11220
  var P;
11158
11221
  return (P = s.varGridConfig.value) == null ? void 0 : P.pg_size_opt;
11159
11222
  }), L = computed(() => {
11223
+ var P;
11224
+ return ((P = s.varGridConfig.value) == null ? void 0 : P.prf_frm_id) || s.formID;
11225
+ }), O = computed(() => {
11160
11226
  var P, K;
11161
11227
  return (K = (P = _.value) == null ? void 0 : P.cmd) != null ? K : null;
11162
- }), O = computed(() => {
11163
- var K, z, q, ne, J, pe, he;
11228
+ }), D = computed(() => {
11229
+ var K, z, Y, ae, J, pe, he;
11164
11230
  let P = {
11165
11231
  pageNo: M.pageIndex,
11166
11232
  pageSize: M.pageSize,
11167
- ...w,
11233
+ ...N,
11168
11234
  ...(z = (K = i.model) == null ? void 0 : K.value) != null ? z : {}
11169
11235
  };
11170
11236
  return _.value && (P = {
11171
11237
  ...P,
11172
- ...KgVarUtil.parseCommandParameter((ne = (q = _.value) == null ? void 0 : q.cmd_prm) != null ? ne : "")
11238
+ ...KgVarUtil.parseCommandParameter((ae = (Y = _.value) == null ? void 0 : Y.cmd_prm) != null ? ae : "")
11173
11239
  }), (J = s.varGridConfig.value) != null && J.cmd_prm && (P = {
11174
11240
  ...P,
11175
11241
  ...KgVarUtil.parseCommandParameter((pe = s.varGridConfig.value.cmd_prm) != null ? pe : "")
11176
11242
  }), ((he = s.varGridConfig.value) == null ? void 0 : he.convert_sort_field_to_under_score_flg) === 1 && P.column && (P.column = snakeCase$1(P.column)), P;
11177
- }), D = computed(() => {
11243
+ }), $ = computed(() => {
11178
11244
  var P;
11179
11245
  if (((P = s.varGridConfig.value) == null ? void 0 : P.show_check_column_flg) === 1)
11180
11246
  return {
11181
11247
  fixed: "left",
11182
11248
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
11183
- hideSelectAll: !C.value,
11184
- selectedRowKeys: A,
11249
+ hideSelectAll: !T.value,
11250
+ selectedRowKeys: I,
11185
11251
  preserveSelectedRowKeys: !1,
11186
- onSelect: (K) => x(K),
11187
- onChange: (K) => C.value && G(K)
11252
+ onSelect: (K) => G(K),
11253
+ onChange: (K) => T.value && x(K)
11188
11254
  };
11189
- }), $ = computed(() => {
11255
+ }), V = computed(() => {
11190
11256
  let P = "kg-table";
11191
- return !T.value && !E.value && (P += " kg-table--no-bottom"), P;
11192
- }), V = ref([]), A = ref([]), M = reactive({
11257
+ return !C.value && !E.value && (P += " kg-table--no-bottom"), P;
11258
+ }), w = ref([]), I = ref([]), M = reactive({
11193
11259
  pageIndex: 1,
11194
11260
  pageSize: 10,
11195
11261
  total: 0
11196
- }), w = reactive({
11262
+ }), N = reactive({
11197
11263
  column: void 0,
11198
11264
  order: void 0
11199
- }), N = watch(R, (P) => {
11200
- P && (setTimeout(() => N()), M.pageSize = P), c.value = !0;
11265
+ }), F = watch(R, (P) => {
11266
+ P && (setTimeout(() => F()), M.pageSize = P), c.value = !0;
11201
11267
  });
11202
11268
  watch(k, (P) => {
11203
11269
  P.length > 0 && !P.includes(M.pageSize) && (M.pageSize = R.value);
11204
- }), watch([L, y, i.isReady], ([P, K, z]) => {
11270
+ }), watch([O, y, i.isReady], ([P, K, z]) => {
11205
11271
  P && K && z && !u.store.getIsRetrieved(s.formID) && U(!0);
11206
11272
  }, {
11207
11273
  immediate: !0
11208
11274
  }), onUnmounted(() => {
11209
11275
  u.store.dispose(s.formID);
11210
11276
  });
11211
- function F(P, K) {
11212
- if (!!D.value) {
11277
+ function H(P, K) {
11278
+ if (!!$.value) {
11213
11279
  if (!K) {
11214
- A.value = [], u.store.setSelectedRows(s.formID, []);
11280
+ I.value = [], u.store.setSelectedRows(s.formID, []);
11215
11281
  return;
11216
11282
  }
11217
11283
  switch (P == null ? void 0 : P.detail) {
11218
11284
  case 1:
11219
- A.value = [K[I.value]], u.store.setSelectedRows(s.formID, A.value.map((z) => {
11220
- var q;
11221
- return (q = V.value) == null ? void 0 : q.find((ne) => ne[I.value] === z);
11285
+ I.value = [K[A.value]], u.store.setSelectedRows(s.formID, I.value.map((z) => {
11286
+ var Y;
11287
+ return (Y = w.value) == null ? void 0 : Y.find((ae) => ae[A.value] === z);
11222
11288
  }).filter((z) => !!z));
11223
11289
  break;
11224
11290
  case 2:
@@ -11228,14 +11294,14 @@ const KgTable$1 = "", KgTable = defineComponent({
11228
11294
  }
11229
11295
  }
11230
11296
  function U(P = !1) {
11231
- const K = watch(c, (q) => {
11232
- q && (setTimeout(() => K()), z());
11297
+ const K = watch(c, (Y) => {
11298
+ Y && (setTimeout(() => K()), z());
11233
11299
  }, {
11234
11300
  immediate: !0
11235
11301
  });
11236
11302
  async function z() {
11237
- var q, ne;
11238
- if (!L.value) {
11303
+ var Y, ae;
11304
+ if (!O.value) {
11239
11305
  Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
11240
11306
  VarButton: _.value
11241
11307
  });
@@ -11245,26 +11311,26 @@ const KgTable$1 = "", KgTable = defineComponent({
11245
11311
  try {
11246
11312
  const J = await httpClient().request({
11247
11313
  method: "GET",
11248
- url: L.value,
11249
- params: KgUtil.parseParams(O.value, s.formID, n)
11314
+ url: O.value,
11315
+ params: KgUtil.parseParams(D.value, L.value, n)
11250
11316
  }, {
11251
11317
  successMessageMode: "none"
11252
11318
  });
11253
11319
  switch (!0) {
11254
11320
  case !J:
11255
- V.value = [], M.total = 0;
11321
+ w.value = [], M.total = 0;
11256
11322
  break;
11257
11323
  case isArrayLike(J):
11258
- V.value = J, M.total = J.length;
11324
+ w.value = J, M.total = J.length;
11259
11325
  break;
11260
11326
  case ("total" in J && "records" in J):
11261
- V.value = (q = J.records) != null ? q : [], M.total = (ne = J.total) != null ? ne : 0;
11327
+ w.value = (Y = J.records) != null ? Y : [], M.total = (ae = J.total) != null ? ae : 0;
11262
11328
  break;
11263
11329
  }
11264
11330
  u.store.emit(s.formID, "retrieve", {
11265
11331
  page: J,
11266
- datas: V
11267
- }), F(), g.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
11332
+ datas: w
11333
+ }), H(), g.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
11268
11334
  } catch (J) {
11269
11335
  throw J;
11270
11336
  } finally {
@@ -11272,52 +11338,52 @@ const KgTable$1 = "", KgTable = defineComponent({
11272
11338
  }
11273
11339
  }
11274
11340
  }
11275
- function G(P) {
11276
- A.value = P, u.store.setSelectedRows(s.formID, A.value.map((K) => {
11341
+ function x(P) {
11342
+ I.value = P, u.store.setSelectedRows(s.formID, I.value.map((K) => {
11277
11343
  var z;
11278
- return (z = V.value) == null ? void 0 : z.find((q) => q[I.value] === K);
11344
+ return (z = w.value) == null ? void 0 : z.find((Y) => Y[A.value] === K);
11279
11345
  }).filter((K) => !!K));
11280
11346
  }
11281
- function x(P) {
11347
+ function G(P) {
11282
11348
  var K, z;
11283
- switch (C.value) {
11349
+ switch (T.value) {
11284
11350
  case !0:
11285
11351
  {
11286
- const q = P[I.value];
11287
- A.value.includes(q) ? A.value = without$1(A.value, q) : A.value = [...(K = A.value) != null ? K : [], q];
11352
+ const Y = P[A.value];
11353
+ I.value.includes(Y) ? I.value = without$1(I.value, Y) : I.value = [...(K = I.value) != null ? K : [], Y];
11288
11354
  }
11289
11355
  break;
11290
11356
  case !1:
11291
11357
  {
11292
- const q = P[I.value];
11293
- (z = A.value) != null && z.includes(q) ? A.value = [] : A.value = [q];
11358
+ const Y = P[A.value];
11359
+ (z = I.value) != null && z.includes(Y) ? I.value = [] : I.value = [Y];
11294
11360
  }
11295
11361
  break;
11296
11362
  }
11297
- u.store.setSelectedRows(s.formID, A.value.map((q) => {
11298
- var ne;
11299
- return (ne = V.value) == null ? void 0 : ne.find((J) => J[I.value] === q);
11300
- }).filter((q) => !!q));
11363
+ u.store.setSelectedRows(s.formID, I.value.map((Y) => {
11364
+ var ae;
11365
+ return (ae = w.value) == null ? void 0 : ae.find((J) => J[A.value] === Y);
11366
+ }).filter((Y) => !!Y));
11301
11367
  }
11302
- function H(P, K) {
11368
+ function q(P, K) {
11303
11369
  K.width = P, s.store.setVarGridDetailWidth(s.formID, K.dataIndex, P);
11304
11370
  }
11305
- async function Y(P, K, z, q) {
11306
- var ne;
11307
- switch (q.action) {
11371
+ async function X(P, K, z, Y) {
11372
+ var ae;
11373
+ switch (Y.action) {
11308
11374
  case "sort":
11309
11375
  {
11310
11376
  await nextTick();
11311
11377
  let J = z;
11312
- J.order ? (w.column = (ne = J.field) != null ? ne : void 0, w.order = J.order === "ascend" ? "asc" : J.order === "descend" ? "desc" : void 0) : (w.column = void 0, w.order = void 0), U(!0);
11378
+ J.order ? (N.column = (ae = J.field) != null ? ae : void 0, N.order = J.order === "ascend" ? "asc" : J.order === "descend" ? "desc" : void 0) : (N.column = void 0, N.order = void 0), U(!0);
11313
11379
  }
11314
11380
  break;
11315
11381
  }
11316
11382
  }
11317
- function X(P, K) {
11318
- var q;
11319
- const z = K[I.value];
11320
- switch ((q = s.varGridConfig.value) == null ? void 0 : q.expand_accordion_flg) {
11383
+ function Z(P, K) {
11384
+ var Y;
11385
+ const z = K[A.value];
11386
+ switch ((Y = s.varGridConfig.value) == null ? void 0 : Y.expand_accordion_flg) {
11321
11387
  case 0:
11322
11388
  P ? g.value = uniq([...g.value, z]) : g.value = without$1(g.value, z);
11323
11389
  break;
@@ -11326,16 +11392,16 @@ const KgTable$1 = "", KgTable = defineComponent({
11326
11392
  break;
11327
11393
  }
11328
11394
  }
11329
- function Z(P, K) {
11395
+ function ne(P, K) {
11330
11396
  K !== M.pageSize ? (M.pageIndex = 1, M.pageSize = K) : M.pageIndex = P, U();
11331
11397
  }
11332
- function re(P) {
11333
- A.value = [P[I.value]], u.store.setSelectedRows(s.formID, A.value.map((K) => {
11398
+ function oe(P) {
11399
+ I.value = [P[A.value]], u.store.setSelectedRows(s.formID, I.value.map((K) => {
11334
11400
  var z;
11335
- return (z = V.value) == null ? void 0 : z.find((q) => q[I.value] === K);
11401
+ return (z = w.value) == null ? void 0 : z.find((Y) => Y[A.value] === K);
11336
11402
  }).filter((K) => !!K)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
11337
11403
  }
11338
- function ae({
11404
+ function ie({
11339
11405
  title: P,
11340
11406
  column: K
11341
11407
  }) {
@@ -11346,43 +11412,43 @@ const KgTable$1 = "", KgTable = defineComponent({
11346
11412
  return createVNode("pre", null, [P]);
11347
11413
  }
11348
11414
  }
11349
- function se({
11415
+ function fe({
11350
11416
  column: P,
11351
11417
  index: K,
11352
11418
  record: z,
11353
- value: q,
11354
- text: ne
11419
+ value: Y,
11420
+ text: ae
11355
11421
  }) {
11356
11422
  let J = "";
11357
11423
  P.customRender ? J = P.customRender({
11358
11424
  index: K,
11359
11425
  record: z,
11360
11426
  column: P,
11361
- text: ne,
11362
- value: q,
11427
+ text: ae,
11428
+ value: Y,
11363
11429
  renderIndex: K
11364
- }) : J = q;
11430
+ }) : J = Y;
11365
11431
  const pe = createVNode(KgTableCell, {
11366
11432
  kgRow: z,
11367
11433
  kgValue: J,
11368
11434
  kgVarName: P.dataIndex,
11369
- onKgUpdateLinkClick: () => re(z)
11435
+ onKgUpdateLinkClick: () => oe(z)
11370
11436
  }, null);
11371
11437
  return t.bodyCell ? t.bodyCell({
11372
- value: q,
11438
+ value: Y,
11373
11439
  record: z,
11374
11440
  index: K,
11375
11441
  column: P,
11376
11442
  defaultRender: pe
11377
11443
  }) : pe;
11378
11444
  }
11379
- function de() {
11445
+ function te() {
11380
11446
  return !y.value && !u.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
11381
11447
  }
11382
11448
  return () => {
11383
11449
  var P;
11384
11450
  return createVNode("div", {
11385
- class: $.value,
11451
+ class: V.value,
11386
11452
  "kg-frm-id": s.formID,
11387
11453
  ref: m
11388
11454
  }, [createVNode(Table, {
@@ -11395,32 +11461,32 @@ const KgTable$1 = "", KgTable = defineComponent({
11395
11461
  pagination: !1,
11396
11462
  showSorterTooltip: !1,
11397
11463
  columns: p.value,
11398
- dataSource: V.value,
11464
+ dataSource: w.value,
11399
11465
  loading: b.value,
11400
- rowKey: I.value,
11401
- rowSelection: D.value,
11466
+ rowKey: A.value,
11467
+ rowSelection: $.value,
11402
11468
  expandColumnWidth: 28,
11403
11469
  expandedRowKeys: g.value,
11404
11470
  customRow: (K) => ({
11405
- onClick: (z) => F(z, K)
11471
+ onClick: (z) => H(z, K)
11406
11472
  }),
11407
- onResizeColumn: H,
11408
- onChange: Y,
11409
- onExpand: X
11473
+ onResizeColumn: q,
11474
+ onChange: X,
11475
+ onExpand: Z
11410
11476
  }, {
11411
- headerCell: ae,
11412
- bodyCell: se,
11413
- emptyText: de,
11477
+ headerCell: ie,
11478
+ bodyCell: fe,
11479
+ emptyText: te,
11414
11480
  expandedRowRender: (P = a == null ? void 0 : a.KgTable) == null ? void 0 : P.expandedRowRender
11415
- }), (T.value || E.value) && createVNode("div", {
11481
+ }), (C.value || E.value) && createVNode("div", {
11416
11482
  class: "kg-table-bottom"
11417
11483
  }, [createVNode("div", {
11418
11484
  class: "left"
11419
- }, [T.value && createVNode(KgTableInfo, {
11420
- kgShowClearCheck: A.value.length > 0,
11485
+ }, [C.value && createVNode(KgTableInfo, {
11486
+ kgShowClearCheck: I.value.length > 0,
11421
11487
  kgShowClearTable: M.total > 0,
11422
- kgShowLocate: A.value.length === 1,
11423
- kgTotal: A.value.length,
11488
+ kgShowLocate: I.value.length === 1,
11489
+ kgTotal: I.value.length,
11424
11490
  kgDisabled: b.value
11425
11491
  }, null)]), createVNode("div", {
11426
11492
  class: "right"
@@ -11442,7 +11508,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11442
11508
  to: z[1],
11443
11509
  total: K
11444
11510
  }),
11445
- onChange: (K, z) => Z(K, z)
11511
+ onChange: (K, z) => ne(K, z)
11446
11512
  }, null)])])]);
11447
11513
  };
11448
11514
  }
@@ -11555,7 +11621,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11555
11621
  var p, v;
11556
11622
  return (v = (p = a.value) == null ? void 0 : p.cmd_method) != null ? v : "GET";
11557
11623
  }), i = computed(() => {
11558
- var v, b, m, _, C, y;
11624
+ var v, b, m, _, T, y;
11559
11625
  let p = {
11560
11626
  ...(v = n.model.value) != null ? v : {}
11561
11627
  };
@@ -11564,7 +11630,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11564
11630
  ...KgVarUtil.parseCommandParameter((m = (b = a.value) == null ? void 0 : b.cmd_prm) != null ? m : "")
11565
11631
  }), (_ = r.varGridConfig.value) != null && _.cmd_prm && (p = {
11566
11632
  ...p,
11567
- ...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
11633
+ ...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
11568
11634
  }), ((y = r.varGridConfig.value) == null ? void 0 : y.convert_sort_field_to_under_score_flg) === 1 && p.column && (p.column = snakeCase$1(p.column)), p;
11569
11635
  }), l = ref(!1);
11570
11636
  async function u() {
@@ -11770,16 +11836,16 @@ const KgTable$1 = "", KgTable = defineComponent({
11770
11836
  }
11771
11837
  let u = null;
11772
11838
  const c = async () => {
11773
- var m, _, C, y, T, E, I;
11839
+ var m, _, T, y, C, E, A;
11774
11840
  u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
11775
11841
  const b = a.selectedRows.value;
11776
11842
  try {
11777
11843
  await httpClient().request({
11778
11844
  method: (_ = (m = e.kgButton) == null ? void 0 : m.cmd_method) != null ? _ : "POST",
11779
11845
  url: l,
11780
- params: KgVarUtil.parseCommandParameter((y = (C = e.kgButton) == null ? void 0 : C.cmd_prm) != null ? y : ""),
11846
+ params: KgVarUtil.parseCommandParameter((y = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? y : ""),
11781
11847
  data: b != null ? b : []
11782
- }), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((I = (E = n.search).value) == null || I.call(E, !0));
11848
+ }), ((C = e.kgButton) == null ? void 0 : C.reload_all_after_done_flg) === 1 && ((A = (E = n.search).value) == null || A.call(E, !0));
11783
11849
  } catch (k) {
11784
11850
  console.error(k);
11785
11851
  } finally {
@@ -12565,23 +12631,23 @@ const leftVarProfileDetailColumns = (e) => {
12565
12631
  isCreating: b,
12566
12632
  isUpdating: m,
12567
12633
  isCopying: _,
12568
- row: C,
12634
+ row: T,
12569
12635
  model: y
12570
12636
  }) => {
12571
- var E, I, k;
12572
- const T = i.store.getSystemVarProfileDetails(i.formID);
12573
- switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
12637
+ var E, A, k;
12638
+ const C = i.store.getSystemVarProfileDetails(i.formID);
12639
+ switch (l.value = C ? cloneDeep(unref(toRaw(C))) : [], !0) {
12574
12640
  case b:
12575
12641
  u.value = [];
12576
12642
  break;
12577
12643
  case m:
12578
12644
  case _:
12579
- if (C != null && C.id)
12645
+ if (T != null && T.id)
12580
12646
  try {
12581
12647
  s.store.setIsLoading(n.formID, !0);
12582
12648
  const R = await QueryByID({
12583
12649
  params: {
12584
- id: C.id
12650
+ id: T.id
12585
12651
  }
12586
12652
  });
12587
12653
  l.value = l.value.map((O) => {
@@ -12593,7 +12659,7 @@ const leftVarProfileDetailColumns = (e) => {
12593
12659
  id: O.id
12594
12660
  } : O;
12595
12661
  });
12596
- const L = (I = (E = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : E.map((O) => O.var_nam)) != null ? I : [];
12662
+ const L = (A = (E = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : E.map((O) => O.var_nam)) != null ? A : [];
12597
12663
  u.value = l.value.filter((O) => L.includes(O.var_nam)).map((O) => O.id);
12598
12664
  } catch (R) {
12599
12665
  throw R;
@@ -12613,9 +12679,9 @@ const leftVarProfileDetailColumns = (e) => {
12613
12679
  }), s.onBeforeOk(async ({
12614
12680
  model: b
12615
12681
  }) => {
12616
- var _, C;
12682
+ var _, T;
12617
12683
  const m = b.value;
12618
- return m.frm_id = i.formID, m.varProfileDetails = (C = (_ = l.value) == null ? void 0 : _.filter((y) => u.value.includes(y.id))) != null ? C : [], !1;
12684
+ return m.frm_id = i.formID, m.varProfileDetails = (T = (_ = l.value) == null ? void 0 : _.filter((y) => u.value.includes(y.id))) != null ? T : [], !1;
12619
12685
  }), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
12620
12686
  row: b
12621
12687
  }) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
@@ -12639,9 +12705,9 @@ const leftVarProfileDetailColumns = (e) => {
12639
12705
  varName: b,
12640
12706
  props: m,
12641
12707
  model: _,
12642
- varConfig: C,
12708
+ varConfig: T,
12643
12709
  varProfileDetail: y,
12644
- varSubmitField: T
12710
+ varSubmitField: C
12645
12711
  }) => createVNode(Transfer, {
12646
12712
  dataSource: l.value,
12647
12713
  targetKeys: u.value,
@@ -12650,14 +12716,14 @@ const leftVarProfileDetailColumns = (e) => {
12650
12716
  showSearch: !0,
12651
12717
  showSelectAll: !1,
12652
12718
  searchPlaceholder: " ",
12653
- filterOption: (E, I) => {
12719
+ filterOption: (E, A) => {
12654
12720
  var k;
12655
- return !!((k = I.var_nam) != null && k.includes(E));
12721
+ return !!((k = A.var_nam) != null && k.includes(E));
12656
12722
  }
12657
12723
  }, {
12658
12724
  children: ({
12659
12725
  direction: E,
12660
- filteredItems: I,
12726
+ filteredItems: A,
12661
12727
  selectedKeys: k,
12662
12728
  disabled: R,
12663
12729
  onItemSelectAll: L,
@@ -12672,7 +12738,7 @@ const leftVarProfileDetailColumns = (e) => {
12672
12738
  },
12673
12739
  columns: E === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
12674
12740
  rowKey: "id",
12675
- dataSource: I,
12741
+ dataSource: A,
12676
12742
  customRow: (D) => ({
12677
12743
  onClick: ($) => v($, D, E, k)
12678
12744
  }),
@@ -12694,40 +12760,40 @@ const leftVarProfileDetailColumns = (e) => {
12694
12760
  disabled: b,
12695
12761
  selectedKeys: m,
12696
12762
  onItemSelectAll: _,
12697
- onItemSelect: C
12763
+ onItemSelect: T
12698
12764
  }) => ({
12699
12765
  getCheckboxProps: (y) => ({
12700
12766
  disabled: b || y.disabled
12701
12767
  }),
12702
- onSelectAll(y, T) {
12703
- const E = T.filter((I) => !I.disabled).map(({
12704
- key: I
12705
- }) => I);
12768
+ onSelectAll(y, C) {
12769
+ const E = C.filter((A) => !A.disabled).map(({
12770
+ key: A
12771
+ }) => A);
12706
12772
  _(E, y);
12707
12773
  },
12708
12774
  onSelect({
12709
12775
  key: y
12710
- }, T) {
12711
- C(y, T);
12776
+ }, C) {
12777
+ T(y, C);
12712
12778
  },
12713
12779
  selectedRowKeys: m,
12714
12780
  columnWidth: 32
12715
12781
  });
12716
12782
  async function p() {
12717
12783
  const b = watch(a.isReady, async (m) => {
12718
- var _, C;
12784
+ var _, T;
12719
12785
  m && a.model.value && (setTimeout(() => b(), 0), a.store.patchModel(n.formID, {
12720
12786
  frm_id: e.hostFormID
12721
- }), (C = (_ = a.search).value) == null || C.call(_));
12787
+ }), (T = (_ = a.search).value) == null || T.call(_));
12722
12788
  }, {
12723
12789
  immediate: !0
12724
12790
  });
12725
12791
  }
12726
- function v(b, m, _, C) {
12792
+ function v(b, m, _, T) {
12727
12793
  if (!DomUtil.isNotClickable(b.target, ["ant-input"]))
12728
- switch (C.length = 0, b.detail) {
12794
+ switch (T.length = 0, b.detail) {
12729
12795
  case 1:
12730
- C[0] = m.id;
12796
+ T[0] = m.id;
12731
12797
  break;
12732
12798
  case 2:
12733
12799
  switch (_) {
@@ -12844,18 +12910,18 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12844
12910
  var x;
12845
12911
  return s.value > 0 ? !1 : ((x = i.value) == null ? void 0 : x.header_teleport_flg) !== 0;
12846
12912
  }), u = computed(() => getDefaultHeight(n.currentVarProfileDetails.value, l.value)), c = computed(() => getMaxHeight(n.currentVarProfileDetails.value, l.value)), g = computed(() => l.value ? 1 : HEADER_HEIGHT), p = computed(() => {
12847
- var x, H;
12848
- return !!(o.isRetrieving.value || ((x = E.value) == null ? void 0 : x.permission_type) === 2 && !r.p((H = E.value) == null ? void 0 : H.permission_code));
12913
+ var x, G;
12914
+ return !!(o.isRetrieving.value || ((x = E.value) == null ? void 0 : x.permission_type) === 2 && !r.p((G = E.value) == null ? void 0 : G.permission_code));
12849
12915
  }), v = computed(() => !!o.isRetrieving.value), b = computed(() => !!o.isRetrieving.value), m = ref(null), _ = ref({
12850
12916
  kgHeight: g.value
12851
- }), C = ref({
12917
+ }), T = ref({
12852
12918
  visible: !1
12853
12919
  });
12854
12920
  let y;
12855
- const T = computed(() => _.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), I = computed(() => {
12856
- var x, H, Y;
12857
- if (n.t((x = E.value) == null ? void 0 : x.var_nam).value !== ((H = E.value) == null ? void 0 : H.var_nam))
12858
- return n.t((Y = E.value) == null ? void 0 : Y.var_nam).value;
12921
+ const C = computed(() => _.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), A = computed(() => {
12922
+ var x, G, q;
12923
+ if (n.t((x = E.value) == null ? void 0 : x.var_nam).value !== ((G = E.value) == null ? void 0 : G.var_nam))
12924
+ return n.t((q = E.value) == null ? void 0 : q.var_nam).value;
12859
12925
  }), k = computed(() => {
12860
12926
  var x;
12861
12927
  switch ((x = E.value) == null ? void 0 : x.primary_flg) {
@@ -12878,11 +12944,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12878
12944
  });
12879
12945
  watch(n.currentVarProfileDetails, (x) => {
12880
12946
  if (x) {
12881
- const H = {};
12882
- x.forEach((Y) => {
12883
- H[Y.var_nam] = "";
12884
- }), _.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(H)), R.value ? (y == null || y(), y = watch(m, (Y) => {
12885
- Y && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
12947
+ const G = {};
12948
+ x.forEach((q) => {
12949
+ G[q.var_nam] = "";
12950
+ }), _.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(G)), R.value ? (y == null || y(), y = watch(m, (q) => {
12951
+ q && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
12886
12952
  }, {
12887
12953
  immediate: !0
12888
12954
  })) : (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
@@ -12897,94 +12963,94 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12897
12963
  a.store.emit(n.formID, "search", {
12898
12964
  resetPageIndex: x
12899
12965
  });
12900
- }).catch((H) => {
12966
+ }).catch((G) => {
12901
12967
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
12902
- e: H
12968
+ e: G
12903
12969
  });
12904
12970
  }) : a.store.emit(n.formID, "search", {
12905
12971
  resetPageIndex: x
12906
12972
  });
12907
12973
  }
12908
12974
  a.store.setSearchFn(n.formID, V);
12909
- function A() {
12975
+ function w() {
12910
12976
  var x;
12911
12977
  (x = m.value) == null || x.resetFields(), R.value ? m.value && m.value.validate().then(() => {
12912
12978
  a.store.emit(n.formID, "reset");
12913
- }).catch((H) => {
12979
+ }).catch((G) => {
12914
12980
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
12915
- e: H
12981
+ e: G
12916
12982
  });
12917
12983
  }) : a.store.emit(n.formID, "reset");
12918
12984
  }
12919
- a.store.setResetFn(n.formID, A);
12920
- function M() {
12985
+ a.store.setResetFn(n.formID, w);
12986
+ function I() {
12921
12987
  return V(!0), Promise.resolve(!0);
12922
12988
  }
12923
- function w() {
12989
+ function M() {
12924
12990
  var x;
12925
12991
  return createVNode("div", {
12926
12992
  class: "title",
12927
- onClick: G
12993
+ onClick: U
12928
12994
  }, [((x = t == null ? void 0 : t.KgSearch) == null ? void 0 : x.left) && createVNode("div", {
12929
12995
  class: "kg-search-title-left",
12930
- onClick: (H) => {
12931
- H.stopPropagation(), H.preventDefault();
12996
+ onClick: (G) => {
12997
+ G.stopPropagation(), G.preventDefault();
12932
12998
  }
12933
- }, [t.KgSearch.left()]), T.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
12999
+ }, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
12934
13000
  }
12935
13001
  function N() {
12936
- var x, H, Y, X;
12937
- return ((Y = (H = (x = n.varProfileMasters) == null ? void 0 : x.value) == null ? void 0 : H.length) != null ? Y : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
13002
+ var x, G, q, X;
13003
+ return ((q = (G = (x = n.varProfileMasters) == null ? void 0 : x.value) == null ? void 0 : G.length) != null ? q : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
12938
13004
  value: (X = n.currentVarProfileMasterID.value) != null ? X : void 0,
12939
13005
  "onUpdate:value": (Z) => n.store.setCurrentVarProfileMasterID(n.formID, Z),
12940
13006
  disabled: v.value,
12941
13007
  class: "kg-search-profile-master-select"
12942
13008
  }, {
12943
13009
  default: () => {
12944
- var Z, re;
12945
- return (re = (Z = n.varProfileMasters) == null ? void 0 : Z.value) == null ? void 0 : re.map((ae) => createVNode(Select.Option, {
12946
- value: ae.id
13010
+ var Z, ne;
13011
+ return (ne = (Z = n.varProfileMasters) == null ? void 0 : Z.value) == null ? void 0 : ne.map((oe) => createVNode(Select.Option, {
13012
+ value: oe.id
12947
13013
  }, {
12948
- default: () => [n.t(ae == null ? void 0 : ae.prf_var_nam).value]
13014
+ default: () => [n.t(oe == null ? void 0 : oe.prf_var_nam).value]
12949
13015
  }));
12950
13016
  },
12951
13017
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
12952
13018
  }), createVNode(Button, {
12953
13019
  disabled: v.value,
12954
13020
  onClick: () => {
12955
- C.value.visible = !0;
13021
+ T.value.visible = !0;
12956
13022
  },
12957
13023
  class: "kg-search-profile-master-btn"
12958
13024
  }, {
12959
13025
  default: () => [createVNode(SettingOutlined$1, null, null)]
12960
13026
  }), createVNode(KgSearchConfigModal, {
12961
- visible: C.value.visible,
12962
- "onUpdate:visible": (Z) => C.value.visible = Z,
13027
+ visible: T.value.visible,
13028
+ "onUpdate:visible": (Z) => T.value.visible = Z,
12963
13029
  hostFormID: n.formID
12964
13030
  }, null)]);
12965
13031
  }
12966
13032
  function F() {
12967
- var x, H, Y, X, Z;
12968
- return createVNode(Fragment, null, [N(), !(((x = E.value) == null ? void 0 : x.permission_type) !== 2 && !r.p((H = E.value) == null ? void 0 : H.permission_code)) && createVNode(Button, {
13033
+ var x, G, q, X, Z;
13034
+ return createVNode(Fragment, null, [N(), !(((x = E.value) == null ? void 0 : x.permission_type) !== 2 && !r.p((G = E.value) == null ? void 0 : G.permission_code)) && createVNode(Button, {
12969
13035
  type: "primary",
12970
13036
  ghost: !p.value,
12971
13037
  disabled: p.value,
12972
- onClick: A,
13038
+ onClick: w,
12973
13039
  class: "kg-search-btn-reset"
12974
13040
  }, {
12975
13041
  default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
12976
13042
  }), createVNode(KgButton.Item, {
12977
13043
  kgType: KG_BUTTON_TYPE.SEARCH,
12978
- kgVarName: (Y = E.value) == null ? void 0 : Y.var_nam,
13044
+ kgVarName: (q = E.value) == null ? void 0 : q.var_nam,
12979
13045
  kgIcon: (X = E.value) == null ? void 0 : X.icon,
12980
- kgText: I.value,
13046
+ kgText: A.value,
12981
13047
  kgColor: (Z = E.value) == null ? void 0 : Z.color,
12982
13048
  kgPrimary: k.value,
12983
13049
  kgLoading: b.value,
12984
- onKgClick: M
13050
+ onKgClick: I
12985
13051
  }, null)]);
12986
13052
  }
12987
- function U() {
13053
+ function H() {
12988
13054
  return createVNode(Spin, {
12989
13055
  spinning: D.value
12990
13056
  }, {
@@ -12998,9 +13064,9 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12998
13064
  gutter: 6
12999
13065
  }, {
13000
13066
  default: () => {
13001
- var H;
13002
- return [(H = n.currentVarProfileDetails.value) == null ? void 0 : H.map((Y) => createVNode(KgForm.Item, {
13003
- kgVarName: Y.var_nam,
13067
+ var G;
13068
+ return [(G = n.currentVarProfileDetails.value) == null ? void 0 : G.map((q) => createVNode(KgForm.Item, {
13069
+ kgVarName: q.var_nam,
13004
13070
  kgContext: KG_FORM_CONTEXT.SEARCH,
13005
13071
  onKgSubmit: () => V(!0)
13006
13072
  }, null))];
@@ -13010,8 +13076,8 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13010
13076
  }
13011
13077
  });
13012
13078
  }
13013
- function G() {
13014
- T.value ? _.value.kgHeight = u.value : _.value.kgHeight = g.value;
13079
+ function U() {
13080
+ C.value ? _.value.kgHeight = u.value : _.value.kgHeight = g.value;
13015
13081
  }
13016
13082
  return () => createVNode(KgResizable, {
13017
13083
  kgHeight: _.value.kgHeight,
@@ -13035,7 +13101,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13035
13101
  }, [createVNode(Spin, {
13036
13102
  spinning: O.value
13037
13103
  }, {
13038
- default: () => [w(), createVNode("div", {
13104
+ default: () => [M(), createVNode("div", {
13039
13105
  class: "ant-collapse-extra"
13040
13106
  }, [F()])]
13041
13107
  })])]
@@ -13043,7 +13109,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13043
13109
  class: "ant-collapse-content ant-collapse-content-active"
13044
13110
  }, [createVNode("div", {
13045
13111
  class: "ant-collapse-content-box"
13046
- }, [U()])])])])]
13112
+ }, [H()])])])])]
13047
13113
  });
13048
13114
  }
13049
13115
  });
@@ -13108,27 +13174,27 @@ function useMagicKeys(e = {}) {
13108
13174
  g(m, !1);
13109
13175
  }
13110
13176
  function v(m, _) {
13111
- var C, y;
13112
- const T = (C = m.key) == null ? void 0 : C.toLowerCase(), E = (y = m.code) == null ? void 0 : y.toLowerCase(), I = [E, T].filter(Boolean);
13177
+ var T, y;
13178
+ const C = (T = m.key) == null ? void 0 : T.toLowerCase(), E = (y = m.code) == null ? void 0 : y.toLowerCase(), A = [E, C].filter(Boolean);
13113
13179
  E && (_ ? s.add(m.code) : s.delete(m.code));
13114
- for (const k of I)
13180
+ for (const k of A)
13115
13181
  c.add(k), g(k, _);
13116
- T === "meta" && !_ ? (u.forEach((k) => {
13182
+ C === "meta" && !_ ? (u.forEach((k) => {
13117
13183
  s.delete(k), g(k, !1);
13118
- }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && _ && [...s, ...I].forEach((k) => u.add(k));
13184
+ }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && _ && [...s, ...A].forEach((k) => u.add(k));
13119
13185
  }
13120
13186
  r && (useEventListener(r, "keydown", (m) => (v(m, !0), o(m)), { passive: a }), useEventListener(r, "keyup", (m) => (v(m, !1), o(m)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
13121
13187
  const b = new Proxy(l, {
13122
- get(m, _, C) {
13188
+ get(m, _, T) {
13123
13189
  if (typeof _ != "string")
13124
- return Reflect.get(m, _, C);
13190
+ return Reflect.get(m, _, T);
13125
13191
  if (_ = _.toLowerCase(), _ in n && (_ = n[_]), !(_ in l))
13126
13192
  if (/[+_-]/.test(_)) {
13127
- const T = _.split(/[+_-]/g).map((E) => E.trim());
13128
- l[_] = computed(() => T.every((E) => unref(b[E])));
13193
+ const C = _.split(/[+_-]/g).map((E) => E.trim());
13194
+ l[_] = computed(() => C.every((E) => unref(b[E])));
13129
13195
  } else
13130
13196
  l[_] = ref(!1);
13131
- const y = Reflect.get(m, _, C);
13197
+ const y = Reflect.get(m, _, T);
13132
13198
  return t ? unref(y) : y;
13133
13199
  }
13134
13200
  });
@@ -13520,17 +13586,17 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13520
13586
  }), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
13521
13587
  var V;
13522
13588
  return !!c.value || ((V = n.getSelectedVarCatalog) == null ? void 0 : V.cust_lvl) === KG_CUSTOM_LEVEL.L0;
13523
- }), _ = computed(() => !!(!unref(c) || unref(a) || unref(o))), C = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
13589
+ }), _ = computed(() => !!(!unref(c) || unref(a) || unref(o))), T = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
13524
13590
  watch(() => n.getSelectedVar, (V) => {
13525
13591
  V ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
13526
13592
  }, {
13527
13593
  immediate: !0
13528
13594
  }), watch(() => n.getSelectedVarCatalog, async (V) => {
13529
- var A, M;
13530
- l.value.var_text = (A = V == null ? void 0 : V.var_text) != null ? A : "", (M = i.value) == null || M.clearValidate();
13595
+ var w, I;
13596
+ l.value.var_text = (w = V == null ? void 0 : V.var_text) != null ? w : "", (I = i.value) == null || I.clearValidate();
13531
13597
  });
13532
13598
  async function y(V = !1) {
13533
- var A, M, w;
13599
+ var w, I, M;
13534
13600
  a.value = !0;
13535
13601
  try {
13536
13602
  const {
@@ -13540,77 +13606,77 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13540
13606
  pageNo: 1,
13541
13607
  pageSize: 999,
13542
13608
  frm_id: e == null ? void 0 : e.value,
13543
- var_nam: (A = n.getSelectedVar) == null ? void 0 : A.var_nam,
13609
+ var_nam: (w = n.getSelectedVar) == null ? void 0 : w.var_nam,
13544
13610
  column: "frm_id,locale_id,cust_lvl",
13545
13611
  order: "asc"
13546
13612
  }
13547
13613
  });
13548
13614
  if (c.value = null, u.value = N != null ? N : [], V) {
13549
- const F = u.value.find((U) => {
13550
- var G;
13551
- return U.id === ((G = n.getSelectedVarCatalog) == null ? void 0 : G.id);
13615
+ const F = u.value.find((H) => {
13616
+ var U;
13617
+ return H.id === ((U = n.getSelectedVarCatalog) == null ? void 0 : U.id);
13552
13618
  });
13553
13619
  n.setSelectedVarCatalog(F != null ? F : null), g.value = F != null && F.id ? [F.id] : [];
13554
13620
  } else
13555
- n.setSelectedVarCatalog((M = u.value[0]) != null ? M : null), g.value = (w = u.value[0]) != null && w.id ? [u.value[0].id] : [];
13621
+ n.setSelectedVarCatalog((I = u.value[0]) != null ? I : null), g.value = (M = u.value[0]) != null && M.id ? [u.value[0].id] : [];
13556
13622
  } catch (N) {
13557
13623
  Logger.debug(N == null ? void 0 : N.message);
13558
13624
  } finally {
13559
13625
  a.value = !1;
13560
13626
  }
13561
13627
  }
13562
- async function T() {
13563
- var V, A, M;
13628
+ async function C() {
13629
+ var V, w, I;
13564
13630
  try {
13565
13631
  o.value = !0, await ((V = i.value) == null ? void 0 : V.validate());
13566
- const w = new VarCatalog({
13567
- ...(A = n.getSelectedVarCatalog) != null ? A : {},
13568
- var_text: (M = l.value) == null ? void 0 : M.var_text
13632
+ const M = new VarCatalog({
13633
+ ...(w = n.getSelectedVarCatalog) != null ? w : {},
13634
+ var_text: (I = l.value) == null ? void 0 : I.var_text
13569
13635
  });
13570
- w.id ? w.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (w.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(w, "id"), await Add({
13571
- data: w
13636
+ M.id ? M.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (M.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(M, "id"), await Add({
13637
+ data: M
13572
13638
  }, {
13573
13639
  successMessageMode: "none"
13574
13640
  }), message.success({
13575
13641
  content: t.t("kg.KgVarConfig.createSuccess")
13576
13642
  }), await y()) : (await Edit({
13577
- data: w
13643
+ data: M
13578
13644
  }, {
13579
13645
  successMessageMode: "none"
13580
13646
  }), message.success({
13581
13647
  content: t.t("kg.KgVarConfig.saveSuccess")
13582
13648
  }), await y(!0)) : (await Add({
13583
- data: w
13649
+ data: M
13584
13650
  }, {
13585
13651
  successMessageMode: "none"
13586
13652
  }), message.success({
13587
13653
  content: t.t("kg.KgVarConfig.createSuccess")
13588
13654
  }), await y()), r.retrieve(e == null ? void 0 : e.value);
13589
- } catch (w) {
13590
- KgUtil.throwIfNotFormError(w);
13655
+ } catch (M) {
13656
+ KgUtil.throwIfNotFormError(M);
13591
13657
  } finally {
13592
13658
  o.value = !1;
13593
13659
  }
13594
13660
  }
13595
13661
  function E({
13596
13662
  isAllForm: V,
13597
- isAllLanguage: A
13663
+ isAllLanguage: w
13598
13664
  }) {
13599
- var M, w, N;
13665
+ var I, M, N;
13600
13666
  c.value = new VarCatalog({
13601
13667
  id: "",
13602
13668
  cust_lvl: KG_CUSTOM_LEVEL.L10,
13603
- grp_nam: (M = n.getSelectedVar) == null ? void 0 : M.grp_nam,
13604
- var_nam: (w = n.getSelectedVar) == null ? void 0 : w.var_nam,
13669
+ grp_nam: (I = n.getSelectedVar) == null ? void 0 : I.grp_nam,
13670
+ var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
13605
13671
  frm_id: V || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
13606
- locale_id: A ? "ALL" : (N = t.locale) == null ? void 0 : N.value,
13672
+ locale_id: w ? "ALL" : (N = t.locale) == null ? void 0 : N.value,
13607
13673
  var_text: ""
13608
13674
  }), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
13609
13675
  }
13610
- function I() {
13611
- var A;
13676
+ function A() {
13677
+ var w;
13612
13678
  u.value = without$1(u.value, c.value), c.value = null;
13613
- const V = (A = u.value[0]) != null ? A : null;
13679
+ const V = (w = u.value[0]) != null ? w : null;
13614
13680
  n.setSelectedVarCatalog(V), g.value = V ? [V.id] : [];
13615
13681
  }
13616
13682
  function k() {
@@ -13631,8 +13697,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13631
13697
  });
13632
13698
  }
13633
13699
  function R(V) {
13634
- var A;
13635
- ((A = n.getSelectedVarCatalog) == null ? void 0 : A.id) !== V.id && (unref(c) ? KgUtil.confirm({
13700
+ var w;
13701
+ ((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !== V.id && (unref(c) ? KgUtil.confirm({
13636
13702
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
13637
13703
  onOk: () => {
13638
13704
  u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(V)), g.value = [V.id];
@@ -13662,13 +13728,13 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13662
13728
  })]);
13663
13729
  }
13664
13730
  function D() {
13665
- let V, A;
13731
+ let V, w;
13666
13732
  return createVNode("div", {
13667
13733
  class: "form"
13668
13734
  }, [createVNode(Form, {
13669
13735
  ref: i,
13670
13736
  model: l.value,
13671
- onSubmit: T
13737
+ onSubmit: C
13672
13738
  }, {
13673
13739
  default: () => [createVNode(Form.Item, {
13674
13740
  name: "var_text",
@@ -13679,7 +13745,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13679
13745
  }, {
13680
13746
  default: () => [createVNode(Textarea, {
13681
13747
  value: l.value.var_text,
13682
- "onUpdate:value": (M) => l.value.var_text = M,
13748
+ "onUpdate:value": (I) => l.value.var_text = I,
13683
13749
  disabled: !n.getSelectedVarCatalog
13684
13750
  }, null), createVNode("button", {
13685
13751
  hidden: !0
@@ -13689,22 +13755,22 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13689
13755
  class: "buttons"
13690
13756
  }, [createVNode(Button, {
13691
13757
  disabled: _.value,
13692
- onClick: I
13758
+ onClick: A
13693
13759
  }, _isSlot(V = t.t("common.cancelText")) ? V : {
13694
13760
  default: () => [V]
13695
13761
  }), createVNode(Button, {
13696
13762
  loading: o.value,
13697
- disabled: C.value,
13698
- onClick: T,
13763
+ disabled: T.value,
13764
+ onClick: C,
13699
13765
  type: "primary"
13700
- }, _isSlot(A = t.t("common.save")) ? A : {
13701
- default: () => [A]
13766
+ }, _isSlot(w = t.t("common.save")) ? w : {
13767
+ default: () => [w]
13702
13768
  })])]);
13703
13769
  }
13704
13770
  function $(V) {
13705
- var M;
13706
- let A = "";
13707
- return V.id || (A += " ant-table-row-create"), V.id === ((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) && (A += " ant-table-row-selected "), A;
13771
+ var I;
13772
+ let w = "";
13773
+ return V.id || (w += " ant-table-row-create"), V.id === ((I = n.getSelectedVarCatalog) == null ? void 0 : I.id) && (w += " ant-table-row-selected "), w;
13708
13774
  }
13709
13775
  return () => createVNode("div", {
13710
13776
  class: "kg-var-config-modal-var-var-catalog"
@@ -14057,21 +14123,21 @@ const KgWarehouse$1 = "", getProps = () => ({
14057
14123
  record: E
14058
14124
  }) => {
14059
14125
  var k, R, L;
14060
- const I = E;
14061
- return createVNode("div", null, [createVNode("div", null, [(k = I.whDsc) != null ? k : " ", createTextVNode(" - "), (R = I.whId) != null ? R : " "]), createVNode("div", {
14126
+ const A = E;
14127
+ return createVNode("div", null, [createVNode("div", null, [(k = A.whDsc) != null ? k : " ", createTextVNode(" - "), (R = A.whId) != null ? R : " "]), createVNode("div", {
14062
14128
  class: "address"
14063
- }, [(L = I.adrId) != null ? L : " "])]);
14129
+ }, [(L = A.adrId) != null ? L : " "])]);
14064
14130
  }
14065
14131
  }]), c = ref([]), g = computed(() => {
14066
- var I;
14067
- const E = (I = o.value) == null ? void 0 : I.toUpperCase();
14132
+ var A;
14133
+ const E = (A = o.value) == null ? void 0 : A.toUpperCase();
14068
14134
  return c.value.filter((k) => {
14069
14135
  var R, L, O, D, $, V;
14070
14136
  return ((L = (R = k.whDsc) == null ? void 0 : R.toUpperCase()) == null ? void 0 : L.includes(E)) || ((D = (O = k.whId) == null ? void 0 : O.toUpperCase()) == null ? void 0 : D.includes(E)) || ((V = ($ = k.adrId) == null ? void 0 : $.toUpperCase()) == null ? void 0 : V.includes(E));
14071
14137
  });
14072
14138
  }), p = computed(() => {
14073
- var E, I;
14074
- return ((I = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : I.enable) !== !1;
14139
+ var E, A;
14140
+ return ((A = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : A.enable) !== !1;
14075
14141
  });
14076
14142
  watch(n.visible, (E) => {
14077
14143
  !p.value || (E ? b() : m());
@@ -14084,7 +14150,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14084
14150
  !p.value || n.store.setVisible(!0);
14085
14151
  }
14086
14152
  function b() {
14087
- i.value = n.warehouse.value, C();
14153
+ i.value = n.warehouse.value, T();
14088
14154
  }
14089
14155
  function m() {
14090
14156
  o.value = "", c.value = [], i.value = null;
@@ -14103,7 +14169,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14103
14169
  }
14104
14170
  })), n.store.setVisible(!1));
14105
14171
  }
14106
- async function C() {
14172
+ async function T() {
14107
14173
  l.value = !0;
14108
14174
  try {
14109
14175
  const {
@@ -14121,25 +14187,25 @@ const KgWarehouse$1 = "", getProps = () => ({
14121
14187
  l.value = !1;
14122
14188
  }
14123
14189
  }
14124
- function y(E, I) {
14190
+ function y(E, A) {
14125
14191
  var k;
14126
14192
  switch (E.detail) {
14127
14193
  case 1:
14128
- ((k = i.value) == null ? void 0 : k.id) === I.id ? i.value = null : i.value = I;
14194
+ ((k = i.value) == null ? void 0 : k.id) === A.id ? i.value = null : i.value = A;
14129
14195
  break;
14130
14196
  case 2:
14131
- i.value = I, _();
14197
+ i.value = A, _();
14132
14198
  break;
14133
14199
  }
14134
14200
  }
14135
- function T() {
14201
+ function C() {
14136
14202
  return p.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
14137
14203
  title: r.t("kg.KgWarehouse.warehouse"),
14138
14204
  placement: "bottomRight"
14139
14205
  }, {
14140
14206
  default: () => {
14141
- var E, I;
14142
- return [((E = s.value) == null ? void 0 : E.whDsc) || ((I = s.value) == null ? void 0 : I.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
14207
+ var E, A;
14208
+ return [((E = s.value) == null ? void 0 : E.whDsc) || ((A = s.value) == null ? void 0 : A.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
14143
14209
  }
14144
14210
  }), createVNode(KgModal, {
14145
14211
  visible: n.visible.value,
@@ -14181,9 +14247,9 @@ const KgWarehouse$1 = "", getProps = () => ({
14181
14247
  columns: u,
14182
14248
  class: "kg-flex-table",
14183
14249
  customRow: (E) => {
14184
- var I;
14250
+ var A;
14185
14251
  return {
14186
- class: E.id === ((I = i.value) == null ? void 0 : I.id) ? "selected" : "",
14252
+ class: E.id === ((A = i.value) == null ? void 0 : A.id) ? "selected" : "",
14187
14253
  onClick: (k) => y(k, E)
14188
14254
  };
14189
14255
  }
@@ -14193,7 +14259,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14193
14259
  return () => createVNode("div", {
14194
14260
  class: a.value,
14195
14261
  onClick: v
14196
- }, [T()]);
14262
+ }, [C()]);
14197
14263
  }
14198
14264
  });
14199
14265
  function createKgWarehouseGuard(e, t) {