@kengic/vue 0.5.21-beta.2 → 0.5.22

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.
@@ -2534,8 +2534,8 @@ function equalObjects(e, t, r, n, a, o) {
2534
2534
  v || (v = p == "constructor");
2535
2535
  }
2536
2536
  if (_ && !v) {
2537
- var I = e.constructor, V = t.constructor;
2538
- I != V && "constructor" in e && "constructor" in t && !(typeof I == "function" && I instanceof I && typeof V == "function" && V instanceof V) && (_ = !1);
2537
+ var E = e.constructor, w = t.constructor;
2538
+ E != w && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof w == "function" && w instanceof w) && (_ = !1);
2539
2539
  }
2540
2540
  return o.delete(e), o.delete(t), _;
2541
2541
  }
@@ -3614,7 +3614,7 @@ var Icon$1 = function(t, r) {
3614
3614
  var v = l ? {
3615
3615
  msTransform: "rotate(".concat(l, "deg)"),
3616
3616
  transform: "rotate(".concat(l, "deg)")
3617
- } : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), T = C[0], I = C[1];
3617
+ } : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), T = C[0], E = C[1];
3618
3618
  return createVNode("span", _objectSpread$i({
3619
3619
  role: "img",
3620
3620
  "aria-label": s.name
@@ -3625,7 +3625,7 @@ var Icon$1 = function(t, r) {
3625
3625
  class: b,
3626
3626
  icon: s,
3627
3627
  primaryColor: T,
3628
- secondaryColor: I,
3628
+ secondaryColor: E,
3629
3629
  style: v
3630
3630
  }, null)]);
3631
3631
  };
@@ -4581,207 +4581,207 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4581
4581
  (function(r, n) {
4582
4582
  e.exports = n();
4583
4583
  })(commonjsGlobal, function() {
4584
- var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", m = "year", b = "date", _ = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, C = { 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($) {
4585
- var A = ["th", "st", "nd", "rd"], M = $ % 100;
4586
- return "[" + $ + (A[(M - 20) % 10] || A[M] || A[0]) + "]";
4587
- } }, T = function($, A, M) {
4588
- var D = String($);
4589
- return !D || D.length >= A ? $ : "" + Array(A + 1 - D.length).join(M) + $;
4590
- }, I = { s: T, z: function($) {
4591
- var A = -$.utcOffset(), M = Math.abs(A), D = Math.floor(M / 60), L = M % 60;
4592
- return (A <= 0 ? "+" : "-") + T(D, 2, "0") + ":" + T(L, 2, "0");
4593
- }, m: function $(A, M) {
4594
- if (A.date() < M.date())
4595
- return -$(M, A);
4596
- var D = 12 * (M.year() - A.year()) + (M.month() - A.month()), L = A.clone().add(D, g), G = M - L < 0, P = A.clone().add(D + (G ? -1 : 1), g);
4597
- return +(-(D + (M - L) / (G ? L - P : P - L)) || 0);
4598
- }, a: function($) {
4599
- return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
4600
- }, p: function($) {
4601
- return { M: g, y: m, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[$] || String($ || "").toLowerCase().replace(/s$/, "");
4602
- }, u: function($) {
4603
- return $ === void 0;
4604
- } }, V = "en", E = {};
4605
- E[V] = C;
4606
- var K = function($) {
4607
- return $ instanceof R;
4608
- }, F = function $(A, M, D) {
4584
+ var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", m = "year", b = "date", _ = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, C = { 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(M) {
4585
+ var I = ["th", "st", "nd", "rd"], O = M % 100;
4586
+ return "[" + M + (I[(O - 20) % 10] || I[O] || I[0]) + "]";
4587
+ } }, T = function(M, I, O) {
4588
+ var P = String(M);
4589
+ return !P || P.length >= I ? M : "" + Array(I + 1 - P.length).join(O) + M;
4590
+ }, E = { s: T, z: function(M) {
4591
+ var I = -M.utcOffset(), O = Math.abs(I), P = Math.floor(O / 60), L = O % 60;
4592
+ return (I <= 0 ? "+" : "-") + T(P, 2, "0") + ":" + T(L, 2, "0");
4593
+ }, m: function M(I, O) {
4594
+ if (I.date() < O.date())
4595
+ return -M(O, I);
4596
+ var P = 12 * (O.year() - I.year()) + (O.month() - I.month()), L = I.clone().add(P, g), G = O - L < 0, N = I.clone().add(P + (G ? -1 : 1), g);
4597
+ return +(-(P + (O - L) / (G ? L - N : N - L)) || 0);
4598
+ }, a: function(M) {
4599
+ return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
4600
+ }, p: function(M) {
4601
+ return { M: g, y: m, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[M] || String(M || "").toLowerCase().replace(/s$/, "");
4602
+ }, u: function(M) {
4603
+ return M === void 0;
4604
+ } }, w = "en", k = {};
4605
+ k[w] = C;
4606
+ var F = function(M) {
4607
+ return M instanceof U;
4608
+ }, R = function M(I, O, P) {
4609
4609
  var L;
4610
- if (!A)
4611
- return V;
4612
- if (typeof A == "string") {
4613
- var G = A.toLowerCase();
4614
- E[G] && (L = G), M && (E[G] = M, L = G);
4615
- var P = A.split("-");
4616
- if (!L && P.length > 1)
4617
- return $(P[0]);
4610
+ if (!I)
4611
+ return w;
4612
+ if (typeof I == "string") {
4613
+ var G = I.toLowerCase();
4614
+ k[G] && (L = G), O && (k[G] = O, L = G);
4615
+ var N = I.split("-");
4616
+ if (!L && N.length > 1)
4617
+ return M(N[0]);
4618
4618
  } else {
4619
- var U = A.name;
4620
- E[U] = A, L = U;
4621
- }
4622
- return !D && L && (V = L), L || !D && V;
4623
- }, O = function($, A) {
4624
- if (K($))
4625
- return $.clone();
4626
- var M = typeof A == "object" ? A : {};
4627
- return M.date = $, M.args = arguments, new R(M);
4628
- }, w = I;
4629
- w.l = F, w.i = K, w.w = function($, A) {
4630
- return O($, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
4619
+ var B = I.name;
4620
+ k[B] = I, L = B;
4621
+ }
4622
+ return !P && L && (w = L), L || !P && w;
4623
+ }, $ = function(M, I) {
4624
+ if (F(M))
4625
+ return M.clone();
4626
+ var O = typeof I == "object" ? I : {};
4627
+ return O.date = M, O.args = arguments, new U(O);
4628
+ }, D = E;
4629
+ D.l = R, D.i = F, D.w = function(M, I) {
4630
+ return $(M, { locale: I.$L, utc: I.$u, x: I.$x, $offset: I.$offset });
4631
4631
  };
4632
- var R = function() {
4633
- function $(M) {
4634
- this.$L = F(M.locale, null, !0), this.parse(M);
4635
- }
4636
- var A = $.prototype;
4637
- return A.parse = function(M) {
4638
- this.$d = function(D) {
4639
- var L = D.date, G = D.utc;
4632
+ var U = function() {
4633
+ function M(O) {
4634
+ this.$L = R(O.locale, null, !0), this.parse(O);
4635
+ }
4636
+ var I = M.prototype;
4637
+ return I.parse = function(O) {
4638
+ this.$d = function(P) {
4639
+ var L = P.date, G = P.utc;
4640
4640
  if (L === null)
4641
4641
  return new Date(NaN);
4642
- if (w.u(L))
4642
+ if (D.u(L))
4643
4643
  return new Date();
4644
4644
  if (L instanceof Date)
4645
4645
  return new Date(L);
4646
4646
  if (typeof L == "string" && !/Z$/i.test(L)) {
4647
- var P = L.match(v);
4648
- if (P) {
4649
- var U = P[2] - 1 || 0, W = (P[7] || "0").substring(0, 3);
4650
- return G ? new Date(Date.UTC(P[1], U, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, W)) : new Date(P[1], U, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, W);
4647
+ var N = L.match(v);
4648
+ if (N) {
4649
+ var B = N[2] - 1 || 0, z = (N[7] || "0").substring(0, 3);
4650
+ return G ? new Date(Date.UTC(N[1], B, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, z)) : new Date(N[1], B, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, z);
4651
4651
  }
4652
4652
  }
4653
4653
  return new Date(L);
4654
- }(M), this.$x = M.x || {}, this.init();
4655
- }, A.init = function() {
4656
- var M = this.$d;
4657
- 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();
4658
- }, A.$utils = function() {
4659
- return w;
4660
- }, A.isValid = function() {
4654
+ }(O), this.$x = O.x || {}, this.init();
4655
+ }, I.init = function() {
4656
+ var O = this.$d;
4657
+ this.$y = O.getFullYear(), this.$M = O.getMonth(), this.$D = O.getDate(), this.$W = O.getDay(), this.$H = O.getHours(), this.$m = O.getMinutes(), this.$s = O.getSeconds(), this.$ms = O.getMilliseconds();
4658
+ }, I.$utils = function() {
4659
+ return D;
4660
+ }, I.isValid = function() {
4661
4661
  return this.$d.toString() !== _;
4662
- }, A.isSame = function(M, D) {
4663
- var L = O(M);
4664
- return this.startOf(D) <= L && L <= this.endOf(D);
4665
- }, A.isAfter = function(M, D) {
4666
- return O(M) < this.startOf(D);
4667
- }, A.isBefore = function(M, D) {
4668
- return this.endOf(D) < O(M);
4669
- }, A.$g = function(M, D, L) {
4670
- return w.u(M) ? this[D] : this.set(L, M);
4671
- }, A.unix = function() {
4662
+ }, I.isSame = function(O, P) {
4663
+ var L = $(O);
4664
+ return this.startOf(P) <= L && L <= this.endOf(P);
4665
+ }, I.isAfter = function(O, P) {
4666
+ return $(O) < this.startOf(P);
4667
+ }, I.isBefore = function(O, P) {
4668
+ return this.endOf(P) < $(O);
4669
+ }, I.$g = function(O, P, L) {
4670
+ return D.u(O) ? this[P] : this.set(L, O);
4671
+ }, I.unix = function() {
4672
4672
  return Math.floor(this.valueOf() / 1e3);
4673
- }, A.valueOf = function() {
4673
+ }, I.valueOf = function() {
4674
4674
  return this.$d.getTime();
4675
- }, A.startOf = function(M, D) {
4676
- var L = this, G = !!w.u(D) || D, P = w.p(M), U = function(q, H) {
4677
- var ee = w.w(L.$u ? Date.UTC(L.$y, H, q) : new Date(L.$y, H, q), L);
4678
- return G ? ee : ee.endOf(u);
4679
- }, W = function(q, H) {
4680
- return w.w(L.toDate()[q].apply(L.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(H)), L);
4681
- }, Y = this.$W, X = this.$M, re = this.$D, te = "set" + (this.$u ? "UTC" : "");
4682
- switch (P) {
4675
+ }, I.startOf = function(O, P) {
4676
+ var L = this, G = !!D.u(P) || P, N = D.p(O), B = function(ae, V) {
4677
+ var K = D.w(L.$u ? Date.UTC(L.$y, V, ae) : new Date(L.$y, V, ae), L);
4678
+ return G ? K : K.endOf(u);
4679
+ }, z = function(ae, V) {
4680
+ return D.w(L.toDate()[ae].apply(L.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(V)), L);
4681
+ }, Y = this.$W, X = this.$M, re = this.$D, ee = "set" + (this.$u ? "UTC" : "");
4682
+ switch (N) {
4683
4683
  case m:
4684
- return G ? U(1, 0) : U(31, 11);
4684
+ return G ? B(1, 0) : B(31, 11);
4685
4685
  case g:
4686
- return G ? U(1, X) : U(0, X + 1);
4686
+ return G ? B(1, X) : B(0, X + 1);
4687
4687
  case c:
4688
- var N = this.$locale().weekStart || 0, B = (Y < N ? Y + 7 : Y) - N;
4689
- return U(G ? re - B : re + (6 - B), X);
4688
+ var ue = this.$locale().weekStart || 0, ce = (Y < ue ? Y + 7 : Y) - ue;
4689
+ return B(G ? re - ce : re + (6 - ce), X);
4690
4690
  case u:
4691
4691
  case b:
4692
- return W(te + "Hours", 0);
4692
+ return z(ee + "Hours", 0);
4693
4693
  case l:
4694
- return W(te + "Minutes", 1);
4694
+ return z(ee + "Minutes", 1);
4695
4695
  case i:
4696
- return W(te + "Seconds", 2);
4696
+ return z(ee + "Seconds", 2);
4697
4697
  case s:
4698
- return W(te + "Milliseconds", 3);
4698
+ return z(ee + "Milliseconds", 3);
4699
4699
  default:
4700
4700
  return this.clone();
4701
4701
  }
4702
- }, A.endOf = function(M) {
4703
- return this.startOf(M, !1);
4704
- }, A.$set = function(M, D) {
4705
- var L, G = w.p(M), P = "set" + (this.$u ? "UTC" : ""), U = (L = {}, L[u] = P + "Date", L[b] = P + "Date", L[g] = P + "Month", L[m] = P + "FullYear", L[l] = P + "Hours", L[i] = P + "Minutes", L[s] = P + "Seconds", L[o] = P + "Milliseconds", L)[G], W = G === u ? this.$D + (D - this.$W) : D;
4702
+ }, I.endOf = function(O) {
4703
+ return this.startOf(O, !1);
4704
+ }, I.$set = function(O, P) {
4705
+ var L, G = D.p(O), N = "set" + (this.$u ? "UTC" : ""), B = (L = {}, L[u] = N + "Date", L[b] = N + "Date", L[g] = N + "Month", L[m] = N + "FullYear", L[l] = N + "Hours", L[i] = N + "Minutes", L[s] = N + "Seconds", L[o] = N + "Milliseconds", L)[G], z = G === u ? this.$D + (P - this.$W) : P;
4706
4706
  if (G === g || G === m) {
4707
4707
  var Y = this.clone().set(b, 1);
4708
- Y.$d[U](W), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
4708
+ Y.$d[B](z), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
4709
4709
  } else
4710
- U && this.$d[U](W);
4710
+ B && this.$d[B](z);
4711
4711
  return this.init(), this;
4712
- }, A.set = function(M, D) {
4713
- return this.clone().$set(M, D);
4714
- }, A.get = function(M) {
4715
- return this[w.p(M)]();
4716
- }, A.add = function(M, D) {
4712
+ }, I.set = function(O, P) {
4713
+ return this.clone().$set(O, P);
4714
+ }, I.get = function(O) {
4715
+ return this[D.p(O)]();
4716
+ }, I.add = function(O, P) {
4717
4717
  var L, G = this;
4718
- M = Number(M);
4719
- var P = w.p(D), U = function(X) {
4720
- var re = O(G);
4721
- return w.w(re.date(re.date() + Math.round(X * M)), G);
4718
+ O = Number(O);
4719
+ var N = D.p(P), B = function(X) {
4720
+ var re = $(G);
4721
+ return D.w(re.date(re.date() + Math.round(X * O)), G);
4722
4722
  };
4723
- if (P === g)
4724
- return this.set(g, this.$M + M);
4725
- if (P === m)
4726
- return this.set(m, this.$y + M);
4727
- if (P === u)
4728
- return U(1);
4729
- if (P === c)
4730
- return U(7);
4731
- var W = (L = {}, L[i] = n, L[l] = a, L[s] = r, L)[P] || 1, Y = this.$d.getTime() + M * W;
4732
- return w.w(Y, this);
4733
- }, A.subtract = function(M, D) {
4734
- return this.add(-1 * M, D);
4735
- }, A.format = function(M) {
4736
- var D = this, L = this.$locale();
4723
+ if (N === g)
4724
+ return this.set(g, this.$M + O);
4725
+ if (N === m)
4726
+ return this.set(m, this.$y + O);
4727
+ if (N === u)
4728
+ return B(1);
4729
+ if (N === c)
4730
+ return B(7);
4731
+ var z = (L = {}, L[i] = n, L[l] = a, L[s] = r, L)[N] || 1, Y = this.$d.getTime() + O * z;
4732
+ return D.w(Y, this);
4733
+ }, I.subtract = function(O, P) {
4734
+ return this.add(-1 * O, P);
4735
+ }, I.format = function(O) {
4736
+ var P = this, L = this.$locale();
4737
4737
  if (!this.isValid())
4738
4738
  return L.invalidDate || _;
4739
- var G = M || "YYYY-MM-DDTHH:mm:ssZ", P = w.z(this), U = this.$H, W = this.$m, Y = this.$M, X = L.weekdays, re = L.months, te = function(H, ee, J, le) {
4740
- return H && (H[ee] || H(D, G)) || J[ee].slice(0, le);
4741
- }, N = function(H) {
4742
- return w.s(U % 12 || 12, H, "0");
4743
- }, B = L.meridiem || function(H, ee, J) {
4744
- var le = H < 12 ? "AM" : "PM";
4745
- return J ? le.toLowerCase() : le;
4746
- }, q = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: w.s(Y + 1, 2, "0"), MMM: te(L.monthsShort, Y, re, 3), MMMM: te(re, Y), D: this.$D, DD: w.s(this.$D, 2, "0"), d: String(this.$W), dd: te(L.weekdaysMin, this.$W, X, 2), ddd: te(L.weekdaysShort, this.$W, X, 3), dddd: X[this.$W], H: String(U), HH: w.s(U, 2, "0"), h: N(1), hh: N(2), a: B(U, W, !0), A: B(U, W, !1), m: String(W), mm: w.s(W, 2, "0"), s: String(this.$s), ss: w.s(this.$s, 2, "0"), SSS: w.s(this.$ms, 3, "0"), Z: P };
4747
- return G.replace(y, function(H, ee) {
4748
- return ee || q[H] || P.replace(":", "");
4739
+ var G = O || "YYYY-MM-DDTHH:mm:ssZ", N = D.z(this), B = this.$H, z = this.$m, Y = this.$M, X = L.weekdays, re = L.months, ee = function(V, K, W, q) {
4740
+ return V && (V[K] || V(P, G)) || W[K].slice(0, q);
4741
+ }, ue = function(V) {
4742
+ return D.s(B % 12 || 12, V, "0");
4743
+ }, ce = L.meridiem || function(V, K, W) {
4744
+ var q = V < 12 ? "AM" : "PM";
4745
+ return W ? q.toLowerCase() : q;
4746
+ }, ae = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: D.s(Y + 1, 2, "0"), MMM: ee(L.monthsShort, Y, re, 3), MMMM: ee(re, Y), D: this.$D, DD: D.s(this.$D, 2, "0"), d: String(this.$W), dd: ee(L.weekdaysMin, this.$W, X, 2), ddd: ee(L.weekdaysShort, this.$W, X, 3), dddd: X[this.$W], H: String(B), HH: D.s(B, 2, "0"), h: ue(1), hh: ue(2), a: ce(B, z, !0), A: ce(B, z, !1), m: String(z), mm: D.s(z, 2, "0"), s: String(this.$s), ss: D.s(this.$s, 2, "0"), SSS: D.s(this.$ms, 3, "0"), Z: N };
4747
+ return G.replace(y, function(V, K) {
4748
+ return K || ae[V] || N.replace(":", "");
4749
4749
  });
4750
- }, A.utcOffset = function() {
4750
+ }, I.utcOffset = function() {
4751
4751
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4752
- }, A.diff = function(M, D, L) {
4753
- var G, P = w.p(D), U = O(M), W = (U.utcOffset() - this.utcOffset()) * n, Y = this - U, X = w.m(this, U);
4754
- return X = (G = {}, G[m] = X / 12, G[g] = X, G[p] = X / 3, G[c] = (Y - W) / 6048e5, G[u] = (Y - W) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[P] || Y, L ? X : w.a(X);
4755
- }, A.daysInMonth = function() {
4752
+ }, I.diff = function(O, P, L) {
4753
+ var G, N = D.p(P), B = $(O), z = (B.utcOffset() - this.utcOffset()) * n, Y = this - B, X = D.m(this, B);
4754
+ return X = (G = {}, G[m] = X / 12, G[g] = X, G[p] = X / 3, G[c] = (Y - z) / 6048e5, G[u] = (Y - z) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[N] || Y, L ? X : D.a(X);
4755
+ }, I.daysInMonth = function() {
4756
4756
  return this.endOf(g).$D;
4757
- }, A.$locale = function() {
4758
- return E[this.$L];
4759
- }, A.locale = function(M, D) {
4760
- if (!M)
4757
+ }, I.$locale = function() {
4758
+ return k[this.$L];
4759
+ }, I.locale = function(O, P) {
4760
+ if (!O)
4761
4761
  return this.$L;
4762
- var L = this.clone(), G = F(M, D, !0);
4762
+ var L = this.clone(), G = R(O, P, !0);
4763
4763
  return G && (L.$L = G), L;
4764
- }, A.clone = function() {
4765
- return w.w(this.$d, this);
4766
- }, A.toDate = function() {
4764
+ }, I.clone = function() {
4765
+ return D.w(this.$d, this);
4766
+ }, I.toDate = function() {
4767
4767
  return new Date(this.valueOf());
4768
- }, A.toJSON = function() {
4768
+ }, I.toJSON = function() {
4769
4769
  return this.isValid() ? this.toISOString() : null;
4770
- }, A.toISOString = function() {
4770
+ }, I.toISOString = function() {
4771
4771
  return this.$d.toISOString();
4772
- }, A.toString = function() {
4772
+ }, I.toString = function() {
4773
4773
  return this.$d.toUTCString();
4774
- }, $;
4775
- }(), k = R.prototype;
4776
- return O.prototype = k, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", m], ["$D", b]].forEach(function($) {
4777
- k[$[1]] = function(A) {
4778
- return this.$g(A, $[0], $[1]);
4774
+ }, M;
4775
+ }(), A = U.prototype;
4776
+ return $.prototype = A, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", m], ["$D", b]].forEach(function(M) {
4777
+ A[M[1]] = function(I) {
4778
+ return this.$g(I, M[0], M[1]);
4779
4779
  };
4780
- }), O.extend = function($, A) {
4781
- return $.$i || ($(A, R, O), $.$i = !0), O;
4782
- }, O.locale = F, O.isDayjs = K, O.unix = function($) {
4783
- return O(1e3 * $);
4784
- }, O.en = E[V], O.Ls = E, O.p = {}, O;
4780
+ }), $.extend = function(M, I) {
4781
+ return M.$i || (M(I, U, $), M.$i = !0), $;
4782
+ }, $.locale = R, $.isDayjs = F, $.unix = function(M) {
4783
+ return $(1e3 * M);
4784
+ }, $.en = k[w], $.Ls = k, $.p = {}, $;
4785
4785
  });
4786
4786
  })(dayjs_min);
4787
4787
  const dayjs = dayjs_min.exports;
@@ -4826,31 +4826,31 @@ function filesize(e, {
4826
4826
  roundingMethod: _ = ROUND,
4827
4827
  precision: v = 0
4828
4828
  } = {}) {
4829
- let y = b, C = Number(e), T = [], I = 0, V = EMPTY;
4829
+ let y = b, C = Number(e), T = [], E = 0, w = EMPTY;
4830
4830
  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);
4831
- const E = n === 10 ? 1e3 : 1024, K = p === !0, F = C < 0, O = Math[_];
4831
+ const k = n === 10 ? 1e3 : 1024, F = p === !0, R = C < 0, $ = Math[_];
4832
4832
  if (typeof e != "bigint" && isNaN(e))
4833
4833
  throw new TypeError(INVALID_NUMBER);
4834
- if (typeof O !== FUNCTION)
4834
+ if (typeof $ !== FUNCTION)
4835
4835
  throw new TypeError(INVALID_ROUND);
4836
- if (F && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(E)), y < 0 && (y = 0)), y > 8 && (v > 0 && (v += 8 - y), y = 8), g === EXPONENT)
4836
+ if (R && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(k)), y < 0 && (y = 0)), y > 8 && (v > 0 && (v += 8 - y), y = 8), g === EXPONENT)
4837
4837
  return y;
4838
4838
  if (C === 0)
4839
- T[0] = 0, V = T[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
4839
+ T[0] = 0, w = T[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
4840
4840
  else {
4841
- I = C / (n === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (I = I * 8, I >= E && y < 8 && (I = I / E, y++));
4842
- const w = Math.pow(10, y > 0 ? a : 0);
4843
- T[0] = O(I * w) / w, T[0] === E && y < 8 && b === -1 && (T[0] = 1, y++), V = T[1] = n === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
4841
+ E = C / (n === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (E = E * 8, E >= k && y < 8 && (E = E / k, y++));
4842
+ const D = Math.pow(10, y > 0 ? a : 0);
4843
+ T[0] = $(E * D) / D, T[0] === k && y < 8 && b === -1 && (T[0] = 1, y++), w = T[1] = n === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
4844
4844
  }
4845
- if (F && (T[0] = -T[0]), v > 0 && (T[0] = T[0].toPrecision(v)), 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) {
4846
- const w = i || PERIOD, R = T[0].toString().split(w), k = R[1] || EMPTY, $ = k.length, A = a - $;
4847
- T[0] = `${R[0]}${w}${k.padEnd($ + A, ZERO)}`;
4845
+ if (R && (T[0] = -T[0]), v > 0 && (T[0] = T[0].toPrecision(v)), 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) {
4846
+ const D = i || PERIOD, U = T[0].toString().split(D), A = U[1] || EMPTY, M = A.length, I = a - M;
4847
+ T[0] = `${U[0]}${D}${A.padEnd(M + I, ZERO)}`;
4848
4848
  }
4849
- return K && (T[1] = m[y] ? m[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), g === ARRAY ? T : g === OBJECT ? {
4849
+ return F && (T[1] = m[y] ? m[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), g === ARRAY ? T : g === OBJECT ? {
4850
4850
  value: T[0],
4851
4851
  symbol: T[1],
4852
4852
  exponent: y,
4853
- unit: V
4853
+ unit: w
4854
4854
  } : T.join(l);
4855
4855
  }
4856
4856
  const data$6 = {
@@ -5438,12 +5438,12 @@ function sendQuery(e, t, r, n) {
5438
5438
  const a = e.resources.length, o = e.random ? Math.floor(Math.random() * a) : e.index;
5439
5439
  let s;
5440
5440
  if (e.random) {
5441
- let E = e.resources.slice(0);
5442
- for (s = []; E.length > 1; ) {
5443
- const K = Math.floor(Math.random() * E.length);
5444
- s.push(E[K]), E = E.slice(0, K).concat(E.slice(K + 1));
5441
+ let k = e.resources.slice(0);
5442
+ for (s = []; k.length > 1; ) {
5443
+ const F = Math.floor(Math.random() * k.length);
5444
+ s.push(k[F]), k = k.slice(0, F).concat(k.slice(F + 1));
5445
5445
  }
5446
- s = s.concat(E);
5446
+ s = s.concat(k);
5447
5447
  } else
5448
5448
  s = e.resources.slice(o).concat(e.resources.slice(0, o));
5449
5449
  const i = Date.now();
@@ -5453,12 +5453,12 @@ function sendQuery(e, t, r, n) {
5453
5453
  g && (clearTimeout(g), g = null);
5454
5454
  }
5455
5455
  function _() {
5456
- l === "pending" && (l = "aborted"), b(), p.forEach((E) => {
5457
- E.status === "pending" && (E.status = "aborted");
5456
+ l === "pending" && (l = "aborted"), b(), p.forEach((k) => {
5457
+ k.status === "pending" && (k.status = "aborted");
5458
5458
  }), p = [];
5459
5459
  }
5460
- function v(E, K) {
5461
- K && (m = []), typeof E == "function" && m.push(E);
5460
+ function v(k, F) {
5461
+ F && (m = []), typeof k == "function" && m.push(k);
5462
5462
  }
5463
5463
  function y() {
5464
5464
  return {
@@ -5472,49 +5472,49 @@ function sendQuery(e, t, r, n) {
5472
5472
  };
5473
5473
  }
5474
5474
  function C() {
5475
- l = "failed", m.forEach((E) => {
5476
- E(void 0, c);
5475
+ l = "failed", m.forEach((k) => {
5476
+ k(void 0, c);
5477
5477
  });
5478
5478
  }
5479
5479
  function T() {
5480
- p.forEach((E) => {
5481
- E.status === "pending" && (E.status = "aborted");
5480
+ p.forEach((k) => {
5481
+ k.status === "pending" && (k.status = "aborted");
5482
5482
  }), p = [];
5483
5483
  }
5484
- function I(E, K, F) {
5485
- const O = K !== "success";
5486
- switch (p = p.filter((w) => w !== E), l) {
5484
+ function E(k, F, R) {
5485
+ const $ = F !== "success";
5486
+ switch (p = p.filter((D) => D !== k), l) {
5487
5487
  case "pending":
5488
5488
  break;
5489
5489
  case "failed":
5490
- if (O || !e.dataAfterTimeout)
5490
+ if ($ || !e.dataAfterTimeout)
5491
5491
  return;
5492
5492
  break;
5493
5493
  default:
5494
5494
  return;
5495
5495
  }
5496
- if (K === "abort") {
5497
- c = F, C();
5496
+ if (F === "abort") {
5497
+ c = R, C();
5498
5498
  return;
5499
5499
  }
5500
- if (O) {
5501
- c = F, p.length || (s.length ? V() : C());
5500
+ if ($) {
5501
+ c = R, p.length || (s.length ? w() : C());
5502
5502
  return;
5503
5503
  }
5504
5504
  if (b(), T(), !e.random) {
5505
- const w = e.resources.indexOf(E.resource);
5506
- w !== -1 && w !== e.index && (e.index = w);
5505
+ const D = e.resources.indexOf(k.resource);
5506
+ D !== -1 && D !== e.index && (e.index = D);
5507
5507
  }
5508
- l = "completed", m.forEach((w) => {
5509
- w(F);
5508
+ l = "completed", m.forEach((D) => {
5509
+ D(R);
5510
5510
  });
5511
5511
  }
5512
- function V() {
5512
+ function w() {
5513
5513
  if (l !== "pending")
5514
5514
  return;
5515
5515
  b();
5516
- const E = s.shift();
5517
- if (E === void 0) {
5516
+ const k = s.shift();
5517
+ if (k === void 0) {
5518
5518
  if (p.length) {
5519
5519
  g = setTimeout(() => {
5520
5520
  b(), l === "pending" && (T(), C());
@@ -5524,16 +5524,16 @@ function sendQuery(e, t, r, n) {
5524
5524
  C();
5525
5525
  return;
5526
5526
  }
5527
- const K = {
5527
+ const F = {
5528
5528
  status: "pending",
5529
- resource: E,
5530
- callback: (F, O) => {
5531
- I(K, F, O);
5529
+ resource: k,
5530
+ callback: (R, $) => {
5531
+ E(F, R, $);
5532
5532
  }
5533
5533
  };
5534
- p.push(K), u++, g = setTimeout(V, e.rotate), r(E, t, K.callback);
5534
+ p.push(F), u++, g = setTimeout(w, e.rotate), r(k, t, F.callback);
5535
5535
  }
5536
- return setTimeout(V), y;
5536
+ return setTimeout(w), y;
5537
5537
  }
5538
5538
  function initRedundancy(e) {
5539
5539
  const t = {
@@ -6145,27 +6145,27 @@ function createSetupStore(e, t, r = {}, n, a) {
6145
6145
  const l = {
6146
6146
  deep: !0
6147
6147
  };
6148
- process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (F) => {
6149
- u ? m = F : u == !1 && !E._hotUpdating && (Array.isArray(m) ? m.push(F) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6148
+ process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (R) => {
6149
+ u ? m = R : u == !1 && !k._hotUpdating && (Array.isArray(m) ? m.push(R) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6150
6150
  });
6151
6151
  let u, c, g = markRaw([]), p = markRaw([]), m;
6152
6152
  const b = n.state.value[e];
6153
6153
  !s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
6154
6154
  const _ = ref({});
6155
- function v(F) {
6156
- let O;
6157
- u = c = !1, process.env.NODE_ENV !== "production" && (m = []), typeof F == "function" ? (F(n.state.value[e]), O = {
6155
+ function v(R) {
6156
+ let $;
6157
+ u = c = !1, process.env.NODE_ENV !== "production" && (m = []), typeof R == "function" ? (R(n.state.value[e]), $ = {
6158
6158
  type: MutationType.patchFunction,
6159
6159
  storeId: e,
6160
6160
  events: m
6161
- }) : (mergeReactiveObjects(n.state.value[e], F), O = {
6161
+ }) : (mergeReactiveObjects(n.state.value[e], R), $ = {
6162
6162
  type: MutationType.patchObject,
6163
- payload: F,
6163
+ payload: R,
6164
6164
  storeId: e,
6165
6165
  events: m
6166
6166
  }), nextTick().then(() => {
6167
6167
  u = !0;
6168
- }), c = !0, triggerSubscriptions(g, O, n.state.value[e]);
6168
+ }), c = !0, triggerSubscriptions(g, $, n.state.value[e]);
6169
6169
  }
6170
6170
  const y = process.env.NODE_ENV !== "production" ? () => {
6171
6171
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
@@ -6173,140 +6173,140 @@ function createSetupStore(e, t, r = {}, n, a) {
6173
6173
  function C() {
6174
6174
  o.stop(), g = [], p = [], n._s.delete(e);
6175
6175
  }
6176
- function T(F, O) {
6176
+ function T(R, $) {
6177
6177
  return function() {
6178
6178
  setActivePinia(n);
6179
- const w = Array.from(arguments), R = [], k = [];
6180
- function $(D) {
6181
- R.push(D);
6179
+ const D = Array.from(arguments), U = [], A = [];
6180
+ function M(P) {
6181
+ U.push(P);
6182
6182
  }
6183
- function A(D) {
6184
- k.push(D);
6183
+ function I(P) {
6184
+ A.push(P);
6185
6185
  }
6186
6186
  triggerSubscriptions(p, {
6187
- args: w,
6188
- name: F,
6189
- store: E,
6190
- after: $,
6191
- onError: A
6187
+ args: D,
6188
+ name: R,
6189
+ store: k,
6190
+ after: M,
6191
+ onError: I
6192
6192
  });
6193
- let M;
6193
+ let O;
6194
6194
  try {
6195
- M = O.apply(this && this.$id === e ? this : E, w);
6196
- } catch (D) {
6197
- throw triggerSubscriptions(k, D), D;
6195
+ O = $.apply(this && this.$id === e ? this : k, D);
6196
+ } catch (P) {
6197
+ throw triggerSubscriptions(A, P), P;
6198
6198
  }
6199
- return M instanceof Promise ? M.then((D) => (triggerSubscriptions(R, D), D)).catch((D) => (triggerSubscriptions(k, D), Promise.reject(D))) : (triggerSubscriptions(R, M), M);
6199
+ return O instanceof Promise ? O.then((P) => (triggerSubscriptions(U, P), P)).catch((P) => (triggerSubscriptions(A, P), Promise.reject(P))) : (triggerSubscriptions(U, O), O);
6200
6200
  };
6201
6201
  }
6202
- const I = /* @__PURE__ */ markRaw({
6202
+ const E = /* @__PURE__ */ markRaw({
6203
6203
  actions: {},
6204
6204
  getters: {},
6205
6205
  state: [],
6206
6206
  hotState: _
6207
- }), V = {
6207
+ }), w = {
6208
6208
  _p: n,
6209
6209
  $id: e,
6210
6210
  $onAction: addSubscription.bind(null, p),
6211
6211
  $patch: v,
6212
6212
  $reset: y,
6213
- $subscribe(F, O = {}) {
6214
- const w = addSubscription(g, F, O.detached, () => R()), R = o.run(() => watch(() => n.state.value[e], (k) => {
6215
- (O.flush === "sync" ? c : u) && F({
6213
+ $subscribe(R, $ = {}) {
6214
+ const D = addSubscription(g, R, $.detached, () => U()), U = o.run(() => watch(() => n.state.value[e], (A) => {
6215
+ ($.flush === "sync" ? c : u) && R({
6216
6216
  storeId: e,
6217
6217
  type: MutationType.direct,
6218
6218
  events: m
6219
- }, k);
6220
- }, assign$1({}, l, O)));
6221
- return w;
6219
+ }, A);
6220
+ }, assign$1({}, l, $)));
6221
+ return D;
6222
6222
  },
6223
6223
  $dispose: C
6224
- }, E = reactive(assign$1(
6224
+ }, k = reactive(assign$1(
6225
6225
  process.env.NODE_ENV !== "production" && IS_CLIENT ? {
6226
6226
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
6227
- _hmrPayload: I
6227
+ _hmrPayload: E
6228
6228
  } : {},
6229
- V
6229
+ w
6230
6230
  ));
6231
- n._s.set(e, E);
6232
- const K = n._e.run(() => (o = effectScope(), o.run(() => t())));
6233
- for (const F in K) {
6234
- const O = K[F];
6235
- if (isRef(O) && !isComputed(O) || isReactive(O))
6236
- process.env.NODE_ENV !== "production" && a ? set(_.value, F, toRef(K, F)) : s || (b && shouldHydrate(O) && (isRef(O) ? O.value = b[F] : mergeReactiveObjects(O, b[F])), n.state.value[e][F] = O), process.env.NODE_ENV !== "production" && I.state.push(F);
6237
- else if (typeof O == "function") {
6238
- const w = process.env.NODE_ENV !== "production" && a ? O : T(F, O);
6239
- K[F] = w, process.env.NODE_ENV !== "production" && (I.actions[F] = O), i.actions[F] = O;
6231
+ n._s.set(e, k);
6232
+ const F = n._e.run(() => (o = effectScope(), o.run(() => t())));
6233
+ for (const R in F) {
6234
+ const $ = F[R];
6235
+ if (isRef($) && !isComputed($) || isReactive($))
6236
+ process.env.NODE_ENV !== "production" && a ? set(_.value, R, toRef(F, R)) : s || (b && shouldHydrate($) && (isRef($) ? $.value = b[R] : mergeReactiveObjects($, b[R])), n.state.value[e][R] = $), process.env.NODE_ENV !== "production" && E.state.push(R);
6237
+ else if (typeof $ == "function") {
6238
+ const D = process.env.NODE_ENV !== "production" && a ? $ : T(R, $);
6239
+ F[R] = D, process.env.NODE_ENV !== "production" && (E.actions[R] = $), i.actions[R] = $;
6240
6240
  } else
6241
- process.env.NODE_ENV !== "production" && isComputed(O) && (I.getters[F] = s ? r.getters[F] : O, IS_CLIENT && (K._getters || (K._getters = markRaw([]))).push(F));
6241
+ process.env.NODE_ENV !== "production" && isComputed($) && (E.getters[R] = s ? r.getters[R] : $, IS_CLIENT && (F._getters || (F._getters = markRaw([]))).push(R));
6242
6242
  }
6243
- if (assign$1(E, K), assign$1(toRaw(E), K), Object.defineProperty(E, "$state", {
6243
+ if (assign$1(k, F), assign$1(toRaw(k), F), Object.defineProperty(k, "$state", {
6244
6244
  get: () => process.env.NODE_ENV !== "production" && a ? _.value : n.state.value[e],
6245
- set: (F) => {
6245
+ set: (R) => {
6246
6246
  if (process.env.NODE_ENV !== "production" && a)
6247
6247
  throw new Error("cannot set hotState");
6248
- v((O) => {
6249
- assign$1(O, F);
6248
+ v(($) => {
6249
+ assign$1($, R);
6250
6250
  });
6251
6251
  }
6252
6252
  }), process.env.NODE_ENV !== "production") {
6253
- E._hotUpdate = markRaw((O) => {
6254
- E._hotUpdating = !0, O._hmrPayload.state.forEach((w) => {
6255
- if (w in E.$state) {
6256
- const R = O.$state[w], k = E.$state[w];
6257
- typeof R == "object" && isPlainObject(R) && isPlainObject(k) ? patchObject(R, k) : O.$state[w] = k;
6253
+ k._hotUpdate = markRaw(($) => {
6254
+ k._hotUpdating = !0, $._hmrPayload.state.forEach((D) => {
6255
+ if (D in k.$state) {
6256
+ const U = $.$state[D], A = k.$state[D];
6257
+ typeof U == "object" && isPlainObject(U) && isPlainObject(A) ? patchObject(U, A) : $.$state[D] = A;
6258
6258
  }
6259
- set(E, w, toRef(O.$state, w));
6260
- }), Object.keys(E.$state).forEach((w) => {
6261
- w in O.$state || del(E, w);
6262
- }), u = !1, c = !1, n.state.value[e] = toRef(O._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
6259
+ set(k, D, toRef($.$state, D));
6260
+ }), Object.keys(k.$state).forEach((D) => {
6261
+ D in $.$state || del(k, D);
6262
+ }), u = !1, c = !1, n.state.value[e] = toRef($._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
6263
6263
  u = !0;
6264
6264
  });
6265
- for (const w in O._hmrPayload.actions) {
6266
- const R = O[w];
6267
- set(E, w, T(w, R));
6265
+ for (const D in $._hmrPayload.actions) {
6266
+ const U = $[D];
6267
+ set(k, D, T(D, U));
6268
6268
  }
6269
- for (const w in O._hmrPayload.getters) {
6270
- const R = O._hmrPayload.getters[w], k = s ? computed(() => (setActivePinia(n), R.call(E, E))) : R;
6271
- set(E, w, k);
6269
+ for (const D in $._hmrPayload.getters) {
6270
+ const U = $._hmrPayload.getters[D], A = s ? computed(() => (setActivePinia(n), U.call(k, k))) : U;
6271
+ set(k, D, A);
6272
6272
  }
6273
- Object.keys(E._hmrPayload.getters).forEach((w) => {
6274
- w in O._hmrPayload.getters || del(E, w);
6275
- }), Object.keys(E._hmrPayload.actions).forEach((w) => {
6276
- w in O._hmrPayload.actions || del(E, w);
6277
- }), E._hmrPayload = O._hmrPayload, E._getters = O._getters, E._hotUpdating = !1;
6273
+ Object.keys(k._hmrPayload.getters).forEach((D) => {
6274
+ D in $._hmrPayload.getters || del(k, D);
6275
+ }), Object.keys(k._hmrPayload.actions).forEach((D) => {
6276
+ D in $._hmrPayload.actions || del(k, D);
6277
+ }), k._hmrPayload = $._hmrPayload, k._getters = $._getters, k._hotUpdating = !1;
6278
6278
  });
6279
- const F = {
6279
+ const R = {
6280
6280
  writable: !0,
6281
6281
  configurable: !0,
6282
6282
  enumerable: !1
6283
6283
  };
6284
- IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((O) => {
6285
- Object.defineProperty(E, O, {
6286
- value: E[O],
6287
- ...F
6284
+ IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach(($) => {
6285
+ Object.defineProperty(k, $, {
6286
+ value: k[$],
6287
+ ...R
6288
6288
  });
6289
6289
  });
6290
6290
  }
6291
- return n._p.forEach((F) => {
6291
+ return n._p.forEach((R) => {
6292
6292
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
6293
- const O = o.run(() => F({
6294
- store: E,
6293
+ const $ = o.run(() => R({
6294
+ store: k,
6295
6295
  app: n._a,
6296
6296
  pinia: n,
6297
6297
  options: i
6298
6298
  }));
6299
- Object.keys(O || {}).forEach((w) => E._customProperties.add(w)), assign$1(E, O);
6299
+ Object.keys($ || {}).forEach((D) => k._customProperties.add(D)), assign$1(k, $);
6300
6300
  } else
6301
- assign$1(E, o.run(() => F({
6302
- store: E,
6301
+ assign$1(k, o.run(() => R({
6302
+ store: k,
6303
6303
  app: n._a,
6304
6304
  pinia: n,
6305
6305
  options: i
6306
6306
  })));
6307
- }), process.env.NODE_ENV !== "production" && E.$state && typeof E.$state == "object" && typeof E.$state.constructor == "function" && !E.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
6307
+ }), process.env.NODE_ENV !== "production" && k.$state && typeof k.$state == "object" && typeof k.$state.constructor == "function" && !k.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
6308
6308
  state: () => new MyClass()
6309
- Found in store "${E.$id}".`), b && s && r.hydrate && r.hydrate(E.$state, b), u = !0, c = !0, E;
6309
+ Found in store "${k.$id}".`), b && s && r.hydrate && r.hydrate(k.$state, b), u = !0, c = !0, k;
6310
6310
  }
6311
6311
  function defineStore(e, t, r) {
6312
6312
  let n, a;
@@ -6777,9 +6777,9 @@ const getProps$w = () => ({
6777
6777
  function _(C) {
6778
6778
  C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX, s = C.pageY, n = e.kgWidth, a = e.kgHeight, i = v(document.documentElement, "mousemove", m), l = v(document.documentElement, "mouseup", b));
6779
6779
  }
6780
- function v(C, T, I) {
6781
- return C.addEventListener(T, I), {
6782
- remove: () => C.removeEventListener(T, I)
6780
+ function v(C, T, E) {
6781
+ return C.addEventListener(T, E), {
6782
+ remove: () => C.removeEventListener(T, E)
6783
6783
  };
6784
6784
  }
6785
6785
  function y(C) {
@@ -6965,13 +6965,13 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
6965
6965
  r("update:visible", !1);
6966
6966
  }
6967
6967
  function m() {
6968
- var b, _, v, y, C, T, I;
6968
+ var b, _, v, y, C, T, E;
6969
6969
  if (c.value) {
6970
- const V = (_ = (b = l.selectedRows) == null ? void 0 : b.value) != null ? _ : [], E = (v = V.map((K) => K[g.value])) != null ? v : [];
6971
- (!i || i(E, V)) && (r("kgOk", E, V), r("update:visible", !1));
6970
+ const w = (_ = (b = l.selectedRows) == null ? void 0 : b.value) != null ? _ : [], k = (v = w.map((F) => F[g.value])) != null ? v : [];
6971
+ (!i || i(k, w)) && (r("kgOk", k, w), r("update:visible", !1));
6972
6972
  } else {
6973
- const V = (T = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? T : null, E = (I = V == null ? void 0 : V[g.value]) != null ? I : "";
6974
- (!i || i(E, V)) && (r("kgOk", E, V), r("update:visible", !1));
6973
+ const w = (T = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? T : null, k = (E = w == null ? void 0 : w[g.value]) != null ? E : "";
6974
+ (!i || i(k, w)) && (r("kgOk", k, w), r("update:visible", !1));
6975
6975
  }
6976
6976
  }
6977
6977
  return () => {
@@ -7169,8 +7169,8 @@ const KgFormItemSelect = defineComponent({
7169
7169
  immediate: !0
7170
7170
  });
7171
7171
  async function u() {
7172
- var y, C, T, I, V, E, K, F;
7173
- const p = (y = i.value) == null ? void 0 : y.cmd, m = (T = (C = i.value) == null ? void 0 : C.cmd_method) != null ? T : "GET", b = (V = (I = i.value) == null ? void 0 : I.val_clm) != null ? V : "", _ = (K = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? K : "";
7172
+ var y, C, T, E, w, k, F, R;
7173
+ const p = (y = i.value) == null ? void 0 : y.cmd, m = (T = (C = i.value) == null ? void 0 : C.cmd_method) != null ? T : "GET", b = (w = (E = i.value) == null ? void 0 : E.val_clm) != null ? w : "", _ = (F = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? F : "";
7174
7174
  if (!p || !b || !_) {
7175
7175
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
7176
7176
  frm_id: n.formID,
@@ -7183,7 +7183,7 @@ const KgFormItemSelect = defineComponent({
7183
7183
  }
7184
7184
  let v = null;
7185
7185
  try {
7186
- v = await ((F = httpClient()) == null ? void 0 : F.request({
7186
+ v = await ((R = httpClient()) == null ? void 0 : R.request({
7187
7187
  url: p,
7188
7188
  method: m,
7189
7189
  params: l.value
@@ -7202,17 +7202,17 @@ const KgFormItemSelect = defineComponent({
7202
7202
  break;
7203
7203
  }
7204
7204
  if (s.value.length > 0) {
7205
- const O = s.value[0];
7206
- (!(b in O) || !(_ in O)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7205
+ const $ = s.value[0];
7206
+ (!(b in $) || !(_ in $)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7207
7207
  frm_id: n.formID,
7208
7208
  var_nam: e.kgVarName,
7209
7209
  cmd: p,
7210
7210
  val_clm: b,
7211
7211
  lbl_clm: _,
7212
- \u6240\u6709\u5217: Object.keys(O)
7212
+ \u6240\u6709\u5217: Object.keys($)
7213
7213
  });
7214
7214
  }
7215
- r("kgSelectDatasChange", s.value), s.value.find((O) => O[b] === e.value) || r("update:value", void 0);
7215
+ r("kgSelectDatasChange", s.value), s.value.find(($) => $[b] === e.value) || r("update:value", void 0);
7216
7216
  }
7217
7217
  function c(p) {
7218
7218
  var b;
@@ -7249,8 +7249,8 @@ const KgFormItemSelect = defineComponent({
7249
7249
  value: _[(T = (C = i.value) == null ? void 0 : C.val_clm) != null ? T : ""]
7250
7250
  }, {
7251
7251
  default: () => {
7252
- var I, V;
7253
- return [_[(V = (I = i.value) == null ? void 0 : I.lbl_clm) != null ? V : ""]];
7252
+ var E, w;
7253
+ return [_[(w = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? w : ""]];
7254
7254
  }
7255
7255
  });
7256
7256
  }),
@@ -7347,123 +7347,123 @@ const KgFormItem = defineComponent({
7347
7347
  const n = useKg(), a = useKgVar(), o = inject(DI_FORM_MODEL, computed(() => ({}))), s = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.isCreating(a.formID)), l = computed(() => a.store.isUpdating(a.formID)), u = computed(() => a.store.isCopying(a.formID)), c = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), g = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), p = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), m = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), {
7348
7348
  rules: b
7349
7349
  } = _useRules(e), _ = computed(() => {
7350
- var $, A, M, D, L;
7350
+ var M, I, O, P, L;
7351
7351
  if (a.isRetrievingVar.value)
7352
7352
  return !0;
7353
- let k = !1;
7353
+ let A = !1;
7354
7354
  if (e.kgDisabled !== void 0)
7355
- k = e.kgDisabled;
7355
+ A = e.kgDisabled;
7356
7356
  else
7357
7357
  switch (e.kgContext) {
7358
7358
  case KG_FORM_CONTEXT.SEARCH:
7359
- k = (($ = p.value) == null ? void 0 : $.ena_flg) === 0;
7359
+ A = ((M = p.value) == null ? void 0 : M.ena_flg) === 0;
7360
7360
  break;
7361
7361
  case KG_FORM_CONTEXT.SUBMIT:
7362
7362
  switch (!0) {
7363
7363
  case a.isCreating.value:
7364
- k = ((A = m.value) == null ? void 0 : A.crt_ena_flg) === 0;
7364
+ A = ((I = m.value) == null ? void 0 : I.crt_ena_flg) === 0;
7365
7365
  break;
7366
7366
  case a.isUpdating.value:
7367
- k = ((M = m.value) == null ? void 0 : M.upt_ena_flg) === 0;
7367
+ A = ((O = m.value) == null ? void 0 : O.upt_ena_flg) === 0;
7368
7368
  break;
7369
7369
  case a.isCopying.value:
7370
- k = ((D = m.value) == null ? void 0 : D.cpy_ena_flg) === 0;
7370
+ A = ((P = m.value) == null ? void 0 : P.cpy_ena_flg) === 0;
7371
7371
  break;
7372
7372
  case a.isDeleting.value:
7373
- k = ((L = m.value) == null ? void 0 : L.del_ena_flg) === 0;
7373
+ A = ((L = m.value) == null ? void 0 : L.del_ena_flg) === 0;
7374
7374
  break;
7375
7375
  }
7376
7376
  break;
7377
7377
  }
7378
- return k;
7378
+ return A;
7379
7379
  }), v = computed(() => {
7380
- var $, A, M, D;
7381
- let k = " ";
7380
+ var M, I, O, P;
7381
+ let A = " ";
7382
7382
  if (e.kgPlaceholder)
7383
- k = e.kgPlaceholder;
7383
+ A = e.kgPlaceholder;
7384
7384
  else
7385
7385
  switch (e.kgContext) {
7386
7386
  case KG_FORM_CONTEXT.SEARCH:
7387
- k = n.t((A = ($ = p.value) == null ? void 0 : $.placeholder) != null ? A : " ");
7387
+ A = n.t((I = (M = p.value) == null ? void 0 : M.placeholder) != null ? I : " ");
7388
7388
  break;
7389
7389
  case KG_FORM_CONTEXT.SUBMIT:
7390
- k = n.t((D = (M = m.value) == null ? void 0 : M.placeholder) != null ? D : " ");
7390
+ A = n.t((P = (O = m.value) == null ? void 0 : O.placeholder) != null ? P : " ");
7391
7391
  break;
7392
7392
  }
7393
- return k;
7393
+ return A;
7394
7394
  }), y = computed(() => {
7395
- var $, A, M, D, L, G, P, U, W, Y;
7396
- let k = 6;
7395
+ var M, I, O, P, L, G, N, B, z, Y;
7396
+ let A = 6;
7397
7397
  if (e.kgSpan !== void 0)
7398
- k = e.kgSpan;
7398
+ A = e.kgSpan;
7399
7399
  else
7400
7400
  switch (e.kgContext) {
7401
7401
  case KG_FORM_CONTEXT.SEARCH:
7402
- k = (A = ($ = p.value) == null ? void 0 : $.width) != null ? A : 6;
7402
+ A = (I = (M = p.value) == null ? void 0 : M.width) != null ? I : 6;
7403
7403
  break;
7404
7404
  case KG_FORM_CONTEXT.SUBMIT:
7405
7405
  switch (!0) {
7406
7406
  case a.isCreating.value:
7407
- k = (D = (M = m.value) == null ? void 0 : M.crt_width) != null ? D : 6;
7407
+ A = (P = (O = m.value) == null ? void 0 : O.crt_width) != null ? P : 6;
7408
7408
  break;
7409
7409
  case a.isUpdating.value:
7410
- k = (G = (L = m.value) == null ? void 0 : L.upt_width) != null ? G : 6;
7410
+ A = (G = (L = m.value) == null ? void 0 : L.upt_width) != null ? G : 6;
7411
7411
  break;
7412
7412
  case a.isCopying.value:
7413
- k = (U = (P = m.value) == null ? void 0 : P.cpy_width) != null ? U : 6;
7413
+ A = (B = (N = m.value) == null ? void 0 : N.cpy_width) != null ? B : 6;
7414
7414
  break;
7415
7415
  case a.isDeleting.value:
7416
- k = (Y = (W = m.value) == null ? void 0 : W.del_width) != null ? Y : 6;
7416
+ A = (Y = (z = m.value) == null ? void 0 : z.del_width) != null ? Y : 6;
7417
7417
  break;
7418
7418
  }
7419
7419
  }
7420
- return Math.min(24, Math.max(1, k));
7420
+ return Math.min(24, Math.max(1, A));
7421
7421
  }), C = computed(() => {
7422
- var M, D;
7423
- const k = get(K.value, "$el.parentElement");
7424
- if (k && !((M = k.classList) != null && M.contains("ant-row")))
7422
+ var O, P;
7423
+ const A = get(F.value, "$el.parentElement");
7424
+ if (A && !((O = A.classList) != null && O.contains("ant-row")))
7425
7425
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
7426
- let $ = {};
7427
- const A = Math.abs(Number.parseInt((D = get(K.value, "$el.parentElement.style.marginLeft")) != null ? D : "0px"));
7428
- return Number.isNaN(A) || ($ = {
7429
- paddingLeft: `${A}px !important`,
7430
- paddingRight: `${A}px !important`
7431
- }), $;
7426
+ let M = {};
7427
+ const I = Math.abs(Number.parseInt((P = get(F.value, "$el.parentElement.style.marginLeft")) != null ? P : "0px"));
7428
+ return Number.isNaN(I) || (M = {
7429
+ paddingLeft: `${I}px !important`,
7430
+ paddingRight: `${I}px !important`
7431
+ }), M;
7432
7432
  }), T = computed(() => {
7433
- var $, A, M, D;
7434
- let k = "kg-form-item";
7435
- switch (c.value && (k += " kg-form-item-lookup"), e.kgContext) {
7433
+ var M, I, O, P;
7434
+ let A = "kg-form-item";
7435
+ switch (c.value && (A += " kg-form-item-lookup"), e.kgContext) {
7436
7436
  case KG_FORM_CONTEXT.SEARCH:
7437
7437
  switch (!0) {
7438
- case (($ = p.value) == null ? void 0 : $.vis_flg) === 0:
7439
- k += " kg-form-item--invisible";
7438
+ case ((M = p.value) == null ? void 0 : M.vis_flg) === 0:
7439
+ A += " kg-form-item--invisible";
7440
7440
  break;
7441
7441
  }
7442
7442
  break;
7443
7443
  case KG_FORM_CONTEXT.SUBMIT:
7444
7444
  switch (!0) {
7445
- case (i.value && ((A = m.value) == null ? void 0 : A.crt_vis_flg) === 0):
7446
- case (l.value && ((M = m.value) == null ? void 0 : M.upt_vis_flg) === 0):
7447
- case (u.value && ((D = m.value) == null ? void 0 : D.cpy_vis_flg) === 0):
7448
- k += " kg-form-item--invisible";
7445
+ case (i.value && ((I = m.value) == null ? void 0 : I.crt_vis_flg) === 0):
7446
+ case (l.value && ((O = m.value) == null ? void 0 : O.upt_vis_flg) === 0):
7447
+ case (u.value && ((P = m.value) == null ? void 0 : P.cpy_vis_flg) === 0):
7448
+ A += " kg-form-item--invisible";
7449
7449
  break;
7450
7450
  }
7451
7451
  break;
7452
7452
  }
7453
- return k;
7454
- }), I = computed(() => {
7455
- var $;
7456
- const k = {
7453
+ return A;
7454
+ }), E = computed(() => {
7455
+ var M;
7456
+ const A = {
7457
7457
  ...e,
7458
- value: ($ = o.value) == null ? void 0 : $[e.kgVarName],
7459
- "onUpdate:value": (A) => {
7460
- o.value && (o.value[e.kgVarName] = A);
7458
+ value: (M = o.value) == null ? void 0 : M[e.kgVarName],
7459
+ "onUpdate:value": (I) => {
7460
+ o.value && (o.value[e.kgVarName] = I);
7461
7461
  },
7462
7462
  kgPlaceholder: v.value,
7463
7463
  kgDisabled: _.value,
7464
- id: E.value
7464
+ id: k.value
7465
7465
  };
7466
- switch (V.value) {
7466
+ switch (w.value) {
7467
7467
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
7468
7468
  break;
7469
7469
  case KG_FORM_ITEM_TYPE.SELECT:
@@ -7471,69 +7471,69 @@ const KgFormItem = defineComponent({
7471
7471
  case KG_FORM_ITEM_TYPE.SWITCH:
7472
7472
  break;
7473
7473
  case KG_FORM_ITEM_TYPE.DATE_DATE:
7474
- k.kgShowTime = !1;
7474
+ A.kgShowTime = !1;
7475
7475
  break;
7476
7476
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
7477
- k.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7477
+ A.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7478
7478
  break;
7479
7479
  }
7480
- return k;
7481
- }), V = computed(() => {
7482
- var k;
7483
- return e.kgType || ((k = g.value) == null ? void 0 : k.ctrl_typ);
7484
- }), E = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), K = ref(null);
7485
- function F(k, $) {
7480
+ return A;
7481
+ }), w = computed(() => {
7486
7482
  var A;
7487
- o.value && (o.value[e.kgVarName] = k), r("kgLookupChange", $), (A = s.value) == null || A.validate([e.kgVarName]);
7483
+ return e.kgType || ((A = g.value) == null ? void 0 : A.ctrl_typ);
7484
+ }), k = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), F = ref(null);
7485
+ function R(A, M) {
7486
+ var I;
7487
+ o.value && (o.value[e.kgVarName] = A), r("kgLookupChange", M), (I = s.value) == null || I.validate([e.kgVarName]);
7488
7488
  }
7489
- function O() {
7489
+ function $() {
7490
7490
  if (t.control)
7491
7491
  return t.control({
7492
7492
  varName: e.kgVarName,
7493
- props: I,
7493
+ props: E,
7494
7494
  model: o,
7495
7495
  varConfig: g,
7496
7496
  varProfileDetail: p,
7497
7497
  varSubmitField: m
7498
7498
  });
7499
- switch (V.value) {
7499
+ switch (w.value) {
7500
7500
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
7501
- return createVNode(KgFormItemInputNumber, I.value, null);
7501
+ return createVNode(KgFormItemInputNumber, E.value, null);
7502
7502
  case KG_FORM_ITEM_TYPE.SELECT:
7503
- return createVNode(KgFormItemSelect, I.value, null);
7503
+ return createVNode(KgFormItemSelect, E.value, null);
7504
7504
  case KG_FORM_ITEM_TYPE.SWITCH:
7505
- return createVNode(KgFormItemSwitch, I.value, null);
7505
+ return createVNode(KgFormItemSwitch, E.value, null);
7506
7506
  case KG_FORM_ITEM_TYPE.DATE_DATE:
7507
- return createVNode(KgFormItemDate, I.value, null);
7507
+ return createVNode(KgFormItemDate, E.value, null);
7508
7508
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
7509
- return createVNode(KgFormItemDate, I.value, null);
7509
+ return createVNode(KgFormItemDate, E.value, null);
7510
7510
  default:
7511
- return createVNode(KgFormItemInput, I.value, null);
7511
+ return createVNode(KgFormItemInput, E.value, null);
7512
7512
  }
7513
7513
  }
7514
- function w() {
7514
+ function D() {
7515
7515
  return e.kgShowLabel ? createVNode("span", {
7516
7516
  title: a.t(e.kgVarName).value
7517
7517
  }, [a.t(e.kgVarName).value]) : null;
7518
7518
  }
7519
- function R() {
7520
- var k;
7521
- return !c.value || !((k = c.value) != null && k.lkp_id) ? null : createVNode(Form.ItemRest, null, {
7519
+ function U() {
7520
+ var A;
7521
+ return !c.value || !((A = c.value) != null && A.lkp_id) ? null : createVNode(Form.ItemRest, null, {
7522
7522
  default: () => [createVNode(KgFormItemAddonLookup, {
7523
7523
  kgDisabled: _.value,
7524
- onKgOk: F,
7524
+ onKgOk: R,
7525
7525
  kgLookupID: c.value.lkp_id
7526
7526
  }, null)]
7527
7527
  });
7528
7528
  }
7529
7529
  return () => {
7530
- var k, $;
7530
+ var A, M;
7531
7531
  return createVNode(Col, {
7532
- ref: K,
7532
+ ref: F,
7533
7533
  "kg-frm-id": a.formID,
7534
7534
  "kg-var-nam": e.kgVarName,
7535
- "kg-lkp-id": (k = c.value) == null ? void 0 : k.lkp_id,
7536
- "kg-lkp-ret-fld": ($ = c.value) == null ? void 0 : $.ret_fld,
7535
+ "kg-lkp-id": (A = c.value) == null ? void 0 : A.lkp_id,
7536
+ "kg-lkp-ret-fld": (M = c.value) == null ? void 0 : M.ret_fld,
7537
7537
  span: y.value,
7538
7538
  class: T.value,
7539
7539
  style: C.value
@@ -7541,10 +7541,10 @@ const KgFormItem = defineComponent({
7541
7541
  default: () => [createVNode(Form.Item, {
7542
7542
  name: e.kgVarName,
7543
7543
  rules: b.value,
7544
- htmlFor: E.value
7544
+ htmlFor: k.value
7545
7545
  }, {
7546
- default: () => createVNode(Fragment, null, [O(), R()]),
7547
- label: () => w()
7546
+ default: () => createVNode(Fragment, null, [$(), U()]),
7547
+ label: () => D()
7548
7548
  })]
7549
7549
  });
7550
7550
  };
@@ -8857,8 +8857,8 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8857
8857
  function useKgVar(e, t, r = 0) {
8858
8858
  var n, a;
8859
8859
  try {
8860
- let o = function(R) {
8861
- return isFunction$2(R) ? (i.addEventListener(s, "ready", R), getCurrentInstance() && onUnmounted(() => i.removeEventListener(s, "ready", R)), () => i.removeEventListener(s, "ready", R)) : () => {
8860
+ let o = function(U) {
8861
+ return isFunction$2(U) ? (i.addEventListener(s, "ready", U), getCurrentInstance() && onUnmounted(() => i.removeEventListener(s, "ready", U)), () => i.removeEventListener(s, "ready", U)) : () => {
8862
8862
  };
8863
8863
  }, s = e || inject(KG_DI_FORM_ID, "");
8864
8864
  if (!s)
@@ -8869,13 +8869,13 @@ function useKgVar(e, t, r = 0) {
8869
8869
  }), onUnmounted(() => {
8870
8870
  i.leave(s);
8871
8871
  }));
8872
- const l = (R) => computed(() => {
8873
- var k, $, A;
8874
- return (A = ($ = (k = i.getVarCatalog(s, R)) == null ? void 0 : k.var_text) != null ? $ : R) != null ? A : "";
8875
- }), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), m = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), _ = computed(() => i.isDeleting(s)), v = computed(() => i.isOtherRequesting(s)), y = computed(() => i.getVarButtons(s)), C = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)), I = computed(() => i.getCurrentVarProfileMasterID(s)), V = computed(() => {
8876
- var R, k;
8877
- return (k = (R = T.value) == null ? void 0 : R.varProfileDetails) != null ? k : null;
8878
- }), E = computed(() => i.getVarGridConfig(s)), K = computed(() => i.getVarGridMasters(s)), F = computed(() => i.getCurrentVarGridMaster(s)), O = computed(() => i.getSystemVarGridDetails(s)), w = computed(() => i.getCurrentVarGridDetails(s));
8872
+ const l = (U) => computed(() => {
8873
+ var A, M, I;
8874
+ return (I = (M = (A = i.getVarCatalog(s, U)) == null ? void 0 : A.var_text) != null ? M : U) != null ? I : "";
8875
+ }), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), m = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), _ = computed(() => i.isDeleting(s)), v = computed(() => i.isOtherRequesting(s)), y = computed(() => i.getVarButtons(s)), C = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), w = computed(() => {
8876
+ var U, A;
8877
+ return (A = (U = T.value) == null ? void 0 : U.varProfileDetails) != null ? A : null;
8878
+ }), k = computed(() => i.getVarGridConfig(s)), F = computed(() => i.getVarGridMasters(s)), R = computed(() => i.getCurrentVarGridMaster(s)), $ = computed(() => i.getSystemVarGridDetails(s)), D = computed(() => i.getCurrentVarGridDetails(s));
8879
8879
  return {
8880
8880
  formID: s,
8881
8881
  store: i,
@@ -8890,13 +8890,13 @@ function useKgVar(e, t, r = 0) {
8890
8890
  varButtons: y,
8891
8891
  varProfileMasters: C,
8892
8892
  currentVarProfileMaster: T,
8893
- currentVarProfileMasterID: I,
8894
- currentVarProfileDetails: V,
8895
- varGridConfig: E,
8896
- varGridMasters: K,
8897
- currentVarGridMaster: F,
8898
- systemVarGridDetails: O,
8899
- currentVarGridDetails: w,
8893
+ currentVarProfileMasterID: E,
8894
+ currentVarProfileDetails: w,
8895
+ varGridConfig: k,
8896
+ varGridMasters: F,
8897
+ currentVarGridMaster: R,
8898
+ systemVarGridDetails: $,
8899
+ currentVarGridDetails: D,
8900
8900
  t: l,
8901
8901
  onReady: o
8902
8902
  };
@@ -9089,8 +9089,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9089
9089
  }) => {
9090
9090
  const c = o.store.getVarSubmitConfig(o.formID);
9091
9091
  return i = watch(u, (g) => {
9092
- var p, m, b, _, v, y, C, T, I, V, E, K;
9093
- g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (m = c == null ? void 0 : c.resizable_flg) != null ? m : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (_ = c == null ? void 0 : c.dft_fullscreen_flg) != null ? _ : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (T = c == null ? void 0 : c.dft_width) != null ? T : DEFAULT_WIDTH, g.layout = (I = c == null ? void 0 : c.layout) != null ? I : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (V = c == null ? void 0 : c.label_col) != null ? V : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (E = c == null ? void 0 : c.label_col_unit) != null ? E : KG_WIDTH_UNIT.SPAN, g.display_type = (K = c == null ? void 0 : c.display_type) != null ? K : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
9092
+ var p, m, b, _, v, y, C, T, E, w, k, F;
9093
+ g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (m = c == null ? void 0 : c.resizable_flg) != null ? m : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (_ = c == null ? void 0 : c.dft_fullscreen_flg) != null ? _ : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : 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 = (w = c == null ? void 0 : c.label_col) != null ? w : 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 = (F = c == null ? void 0 : c.display_type) != null ? F : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
9094
9094
  }, {
9095
9095
  immediate: !0
9096
9096
  }), !1;
@@ -9188,20 +9188,20 @@ function _useFormModel() {
9188
9188
  }), m = ref({});
9189
9189
  return watch(p, (b) => {
9190
9190
  m.value = {}, b != null && b.length && b.forEach((_) => {
9191
- var C, T, I, V, E, K, F;
9191
+ var C, T, E, w, k, F, R;
9192
9192
  const v = (C = _.var_nam) != null ? C : "", y = r.selectedRow.value;
9193
9193
  switch (m.value[v] = void 0, !0) {
9194
9194
  case a.value:
9195
9195
  m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, _.crt_dft_val);
9196
9196
  break;
9197
9197
  case o.value:
9198
- m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (I = (T = _.upt_dft_val) != null ? T : y == null ? void 0 : y[v]) != null ? I : void 0);
9198
+ m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (E = (T = _.upt_dft_val) != null ? T : y == null ? void 0 : y[v]) != null ? E : void 0);
9199
9199
  break;
9200
9200
  case s.value:
9201
- m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (E = (V = _.cpy_dft_val) != null ? V : y == null ? void 0 : y[v]) != null ? E : void 0);
9201
+ m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (k = (w = _.cpy_dft_val) != null ? w : y == null ? void 0 : y[v]) != null ? k : void 0);
9202
9202
  break;
9203
9203
  case i.value:
9204
- m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (F = (K = _.del_dft_val) != null ? K : y == null ? void 0 : y[v]) != null ? F : void 0);
9204
+ m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (R = (F = _.del_dft_val) != null ? F : y == null ? void 0 : y[v]) != null ? R : void 0);
9205
9205
  break;
9206
9206
  }
9207
9207
  }), n.store.setModel(t.formID, m.value);
@@ -9286,56 +9286,56 @@ const getProps$p = () => ({
9286
9286
  }) {
9287
9287
  const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
9288
9288
  _useFormModel();
9289
- 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)), m = computed(() => p.value && R.value.length === 0 && k.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), _ = computed(() => a.store.getVarButtonUpdate(a.formID)), v = computed(() => a.store.getVarButtonCopy(a.formID)), y = computed(() => a.store.getVarButtonDelete(a.formID)), C = computed(() => s.store.isLoading(a.formID)), T = computed(() => a.store.getVarSubmitConfig(a.formID)), I = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), V = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), K = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), O = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), w = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), R = computed(() => {
9290
- var x, z, Q;
9289
+ 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)), m = computed(() => p.value && U.value.length === 0 && A.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), _ = computed(() => a.store.getVarButtonUpdate(a.formID)), v = computed(() => a.store.getVarButtonCopy(a.formID)), y = computed(() => a.store.getVarButtonDelete(a.formID)), C = computed(() => s.store.isLoading(a.formID)), T = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), w = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), R = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), $ = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), D = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), U = computed(() => {
9290
+ var x, H, Q;
9291
9291
  switch (!0) {
9292
9292
  case u.value:
9293
- return (x = I.value) != null ? x : [];
9293
+ return (x = E.value) != null ? x : [];
9294
9294
  case c.value:
9295
- return (z = E.value) != null ? z : [];
9295
+ return (H = k.value) != null ? H : [];
9296
9296
  case g.value:
9297
- return (Q = F.value) != null ? Q : [];
9297
+ return (Q = R.value) != null ? Q : [];
9298
9298
  case p.value:
9299
9299
  return [];
9300
9300
  }
9301
9301
  return [];
9302
- }), k = computed(() => {
9303
- var x, z, Q, Z;
9302
+ }), A = computed(() => {
9303
+ var x, H, Q, Z;
9304
9304
  switch (!0) {
9305
9305
  case u.value:
9306
- return (x = V.value) != null ? x : [];
9306
+ return (x = w.value) != null ? x : [];
9307
9307
  case c.value:
9308
- return (z = K.value) != null ? z : [];
9308
+ return (H = F.value) != null ? H : [];
9309
9309
  case g.value:
9310
- return (Q = O.value) != null ? Q : [];
9310
+ return (Q = $.value) != null ? Q : [];
9311
9311
  case p.value:
9312
- return (Z = w.value) != null ? Z : [];
9312
+ return (Z = D.value) != null ? Z : [];
9313
9313
  }
9314
9314
  return [];
9315
- }), $ = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), A = computed(() => $.value || C.value), M = computed(() => C.value), D = ref({
9315
+ }), M = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), I = computed(() => M.value || C.value), O = computed(() => C.value), P = ref({
9316
9316
  kgWidth: 0
9317
9317
  }), L = computed(() => {
9318
9318
  var x;
9319
- return !!(m.value || q.isFullscreen || ((x = T.value) == null ? void 0 : x.resizable_flg) === 0);
9319
+ return !!(m.value || ae.isFullscreen || ((x = T.value) == null ? void 0 : x.resizable_flg) === 0);
9320
9320
  }), G = computed(() => {
9321
- var x, z;
9322
- return m.value ? 398 : (z = (x = T.value) == null ? void 0 : x.min_width) != null ? z : DEFAULT_MIN_WIDTH;
9323
- }), P = computed(() => {
9324
- var x, z;
9325
- return m.value ? 398 : (z = (x = T.value) == null ? void 0 : x.max_width) != null ? z : DEFAULT_MAX_WIDTH;
9326
- }), U = computed(() => m.value ? 398 : D.value.kgWidth), W = ref(null), Y = ref({}), X = ref(null);
9321
+ var x, H;
9322
+ return m.value ? 398 : (H = (x = T.value) == null ? void 0 : x.min_width) != null ? H : DEFAULT_MIN_WIDTH;
9323
+ }), N = computed(() => {
9324
+ var x, H;
9325
+ return m.value ? 398 : (H = (x = T.value) == null ? void 0 : x.max_width) != null ? H : DEFAULT_MAX_WIDTH;
9326
+ }), B = computed(() => m.value ? 398 : P.value.kgWidth), z = ref(null), Y = ref({}), X = ref(null);
9327
9327
  _useResizeObserver$1(X);
9328
- const re = _useTitle(), te = computed(() => m.value ? 400 : D.value.kgWidth && D.value.kgWidth > 0 ? D.value.kgWidth + 2 : 0), N = computed(() => te.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), B = computed(() => {
9329
- var z, Q;
9328
+ const re = _useTitle(), ee = computed(() => m.value ? 400 : P.value.kgWidth && P.value.kgWidth > 0 ? P.value.kgWidth + 2 : 0), ue = computed(() => ee.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), ce = computed(() => {
9329
+ var H, Q;
9330
9330
  let x = "kg-submit";
9331
- return q.isFullscreen && (x += " kg-submit--fullscreen"), ((z = T.value) == null ? void 0 : z.responsive_flg) !== 0 && (x += " kg-submit--responsive"), (((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || p.value) && (x += " kg-submit--modal"), e.kgClass && (x += ` ${e.kgClass}`), x;
9332
- }), q = reactive({
9331
+ return ae.isFullscreen && (x += " kg-submit--fullscreen"), ((H = T.value) == null ? void 0 : H.responsive_flg) !== 0 && (x += " kg-submit--responsive"), (((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || p.value) && (x += " kg-submit--modal"), e.kgClass && (x += ` ${e.kgClass}`), x;
9332
+ }), ae = reactive({
9333
9333
  isFullscreen: !1
9334
- }), H = computed(() => {
9335
- var x, z, Q, Z;
9334
+ }), V = computed(() => {
9335
+ var x, H, Q, Z;
9336
9336
  switch ((x = T.value) == null ? void 0 : x.layout) {
9337
9337
  case "horizontal":
9338
- switch ((z = T.value) == null ? void 0 : z.label_col_unit) {
9338
+ switch ((H = T.value) == null ? void 0 : H.label_col_unit) {
9339
9339
  case KG_WIDTH_UNIT.SPAN:
9340
9340
  return {
9341
9341
  span: (Q = T.value) == null ? void 0 : Q.label_col
@@ -9350,11 +9350,11 @@ const getProps$p = () => ({
9350
9350
  default:
9351
9351
  return;
9352
9352
  }
9353
- }), ee = computed(() => {
9354
- var x, z, Q;
9353
+ }), K = computed(() => {
9354
+ var x, H, Q;
9355
9355
  switch ((x = T.value) == null ? void 0 : x.layout) {
9356
9356
  case "horizontal":
9357
- switch ((z = T.value) == null ? void 0 : z.label_col_unit) {
9357
+ switch ((H = T.value) == null ? void 0 : H.label_col_unit) {
9358
9358
  case KG_WIDTH_UNIT.SPAN:
9359
9359
  return {
9360
9360
  span: 24 - ((Q = T.value) == null ? void 0 : Q.label_col)
@@ -9366,16 +9366,16 @@ const getProps$p = () => ({
9366
9366
  return;
9367
9367
  }
9368
9368
  });
9369
- watch(N, (x, z) => {
9370
- x === !0 && J(), z === !0 && x === !1 && le();
9369
+ watch(ue, (x, H) => {
9370
+ x === !0 && W(), H === !0 && x === !1 && q();
9371
9371
  }, {
9372
9372
  immediate: !0
9373
9373
  }), watch(T, (x) => {
9374
- x != null && x.dft_width && (D.value.kgWidth = x.dft_width);
9374
+ x != null && x.dft_width && (P.value.kgWidth = x.dft_width);
9375
9375
  }, {
9376
9376
  immediate: !0
9377
9377
  });
9378
- function J() {
9378
+ function W() {
9379
9379
  var x;
9380
9380
  s.store.emit(a.formID, "open", {
9381
9381
  isCreating: u.value,
@@ -9384,13 +9384,13 @@ const getProps$p = () => ({
9384
9384
  isDeleting: p.value,
9385
9385
  row: o.selectedRow.value,
9386
9386
  model: s.model
9387
- }), ((x = T.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && !m.value && (q.isFullscreen = !0);
9387
+ }), ((x = T.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && !m.value && (ae.isFullscreen = !0);
9388
9388
  }
9389
- function le() {
9389
+ function q() {
9390
9390
  var x;
9391
- D.value.kgWidth = ((x = T.value) == null ? void 0 : x.dft_width) || DEFAULT_WIDTH, q.isFullscreen = !1, s.store.emit(a.formID, "close");
9391
+ P.value.kgWidth = ((x = T.value) == null ? void 0 : x.dft_width) || DEFAULT_WIDTH, ae.isFullscreen = !1, s.store.emit(a.formID, "close");
9392
9392
  }
9393
- function ue() {
9393
+ function te() {
9394
9394
  switch (!0) {
9395
9395
  case u.value:
9396
9396
  a.store.setIsCreating(a.formID, !1);
@@ -9406,8 +9406,8 @@ const getProps$p = () => ({
9406
9406
  break;
9407
9407
  }
9408
9408
  }
9409
- async function de() {
9410
- var x, z;
9409
+ async function J() {
9410
+ var x, H;
9411
9411
  try {
9412
9412
  if (await s.store.emit(a.formID, "beforeOk", {
9413
9413
  rules: Y,
@@ -9415,16 +9415,16 @@ const getProps$p = () => ({
9415
9415
  }))
9416
9416
  return;
9417
9417
  try {
9418
- await ((x = W.value) == null ? void 0 : x.validate());
9418
+ await ((x = z.value) == null ? void 0 : x.validate());
9419
9419
  } catch (Z) {
9420
9420
  KgUtil.throwIfNotFormError(Z);
9421
9421
  }
9422
- switch (await ((z = W.value) == null ? void 0 : z.validate()), !0) {
9422
+ switch (await ((H = z.value) == null ? void 0 : H.validate()), !0) {
9423
9423
  case u.value:
9424
- await me();
9424
+ await de();
9425
9425
  break;
9426
9426
  case c.value:
9427
- await he();
9427
+ await fe();
9428
9428
  break;
9429
9429
  case g.value:
9430
9430
  await _e();
@@ -9437,9 +9437,9 @@ const getProps$p = () => ({
9437
9437
  KgUtil.throwIfNotFormError(Q);
9438
9438
  }
9439
9439
  }
9440
- async function me() {
9441
- var z, Q, Z, ne, ae, oe, se;
9442
- const x = (z = b.value) == null ? void 0 : z.cmd;
9440
+ async function de() {
9441
+ var H, Q, Z, ne, oe, se, ie;
9442
+ const x = (H = b.value) == null ? void 0 : H.cmd;
9443
9443
  if (!x) {
9444
9444
  Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9445
9445
  VarButton: b.value
@@ -9451,18 +9451,18 @@ const getProps$p = () => ({
9451
9451
  await httpClient().request({
9452
9452
  method: (Z = (Q = b.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9453
9453
  url: x,
9454
- params: KgUtil.parseParams(KgVarUtil.parseCommandParameter((ae = (ne = b.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""), a.formID, r),
9454
+ params: KgUtil.parseParams(KgVarUtil.parseCommandParameter((oe = (ne = b.value) == null ? void 0 : ne.cmd_prm) != null ? oe : ""), a.formID, r),
9455
9455
  data: KgUtil.parseParams(toRaw(s.model.value), a.formID, r)
9456
- }), message.success(n.t("kg.createSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (se = (oe = i.search).value) == null || se.call(oe, !0);
9457
- } catch (ie) {
9458
- console.error(ie);
9456
+ }), message.success(n.t("kg.createSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se, !0);
9457
+ } catch (le) {
9458
+ console.error(le);
9459
9459
  } finally {
9460
9460
  a.store.setIsCreatingRequesting(a.formID, !1);
9461
9461
  }
9462
9462
  }
9463
- async function he() {
9464
- var z, Q, Z, ne, ae, oe, se;
9465
- const x = (z = _.value) == null ? void 0 : z.cmd;
9463
+ async function fe() {
9464
+ var H, Q, Z, ne, oe, se, ie;
9465
+ const x = (H = _.value) == null ? void 0 : H.cmd;
9466
9466
  if (!x) {
9467
9467
  Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9468
9468
  VarButton: _.value
@@ -9473,18 +9473,18 @@ const getProps$p = () => ({
9473
9473
  a.store.setIsUpdatingRequesting(a.formID, !0), await httpClient().request({
9474
9474
  method: (Z = (Q = _.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9475
9475
  url: x,
9476
- params: KgVarUtil.parseCommandParameter((ae = (ne = _.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
9476
+ params: KgVarUtil.parseCommandParameter((oe = (ne = _.value) == null ? void 0 : ne.cmd_prm) != null ? oe : ""),
9477
9477
  data: toRaw(s.model.value)
9478
- }), message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (se = (oe = i.search).value) == null || se.call(oe);
9479
- } catch (ie) {
9480
- console.error(ie);
9478
+ }), message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se);
9479
+ } catch (le) {
9480
+ console.error(le);
9481
9481
  } finally {
9482
9482
  a.store.setIsUpdatingRequesting(a.formID, !1);
9483
9483
  }
9484
9484
  }
9485
9485
  async function _e() {
9486
- var z, Q, Z, ne, ae, oe, se;
9487
- const x = (z = v.value) == null ? void 0 : z.cmd;
9486
+ var H, Q, Z, ne, oe, se, ie;
9487
+ const x = (H = v.value) == null ? void 0 : H.cmd;
9488
9488
  if (!x) {
9489
9489
  Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9490
9490
  VarButton: v.value
@@ -9493,22 +9493,22 @@ const getProps$p = () => ({
9493
9493
  }
9494
9494
  try {
9495
9495
  a.store.setIsCopyingRequesting(a.formID, !0);
9496
- const ie = toRaw(s.model.value);
9497
- delete ie.id, await httpClient().request({
9496
+ const le = toRaw(s.model.value);
9497
+ delete le.id, await httpClient().request({
9498
9498
  method: (Z = (Q = v.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9499
9499
  url: x,
9500
- params: KgVarUtil.parseCommandParameter((ae = (ne = v.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
9500
+ params: KgVarUtil.parseCommandParameter((oe = (ne = v.value) == null ? void 0 : ne.cmd_prm) != null ? oe : ""),
9501
9501
  data: toRaw(s.model.value)
9502
- }), message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (se = (oe = i.search).value) == null || se.call(oe, !0);
9503
- } catch (ie) {
9504
- console.error(ie);
9502
+ }), message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se, !0);
9503
+ } catch (le) {
9504
+ console.error(le);
9505
9505
  } finally {
9506
9506
  a.store.setIsCopyingRequesting(a.formID, !1);
9507
9507
  }
9508
9508
  }
9509
9509
  async function ve() {
9510
- var z, Q, Z, ne, ae, oe, se;
9511
- const x = (z = y.value) == null ? void 0 : z.cmd;
9510
+ var H, Q, Z, ne, oe, se, ie;
9511
+ const x = (H = y.value) == null ? void 0 : H.cmd;
9512
9512
  if (!x) {
9513
9513
  Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9514
9514
  VarButton: y.value
@@ -9520,61 +9520,61 @@ const getProps$p = () => ({
9520
9520
  method: (Z = (Q = y.value) == null ? void 0 : Q.cmd_method) != null ? Z : "DELETE",
9521
9521
  url: x,
9522
9522
  params: {
9523
- ids: (ae = (ne = o.selectedRows.value) == null ? void 0 : ne.map((ie) => {
9524
- var ce, fe, pe;
9525
- return (pe = ie[(fe = (ce = y.value) == null ? void 0 : ce.del_param_clm) != null ? fe : "id"]) != null ? pe : "";
9526
- })) != null ? ae : []
9523
+ ids: (oe = (ne = o.selectedRows.value) == null ? void 0 : ne.map((le) => {
9524
+ var ge, me, he;
9525
+ return (he = le[(me = (ge = y.value) == null ? void 0 : ge.del_param_clm) != null ? me : "id"]) != null ? he : "";
9526
+ })) != null ? oe : []
9527
9527
  }
9528
9528
  }, {
9529
9529
  joinParamsToUrl: !0
9530
- }), message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (se = (oe = i.search).value) == null || se.call(oe, !0);
9531
- } catch (ie) {
9532
- console.error(ie);
9530
+ }), message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (ie = (se = i.search).value) == null || ie.call(se, !0);
9531
+ } catch (le) {
9532
+ console.error(le);
9533
9533
  } finally {
9534
9534
  a.store.setIsDeletingRequesting(a.formID, !1);
9535
9535
  }
9536
9536
  }
9537
- function ge(x) {
9537
+ function pe(x) {
9538
9538
  var Q, Z;
9539
- const z = (Z = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[x.var_nam];
9540
- return isFunction$2(z) ? createVNode(KgForm.Item, {
9539
+ const H = (Z = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[x.var_nam];
9540
+ return isFunction$2(H) ? createVNode(KgForm.Item, {
9541
9541
  kgVarName: x.var_nam,
9542
9542
  kgContext: KG_FORM_CONTEXT.SUBMIT,
9543
9543
  kgRules: Y.value[x.var_nam],
9544
- onKgSubmit: de
9544
+ onKgSubmit: J
9545
9545
  }, {
9546
9546
  control: ({
9547
9547
  varName: ne,
9548
- props: ae,
9549
- model: oe,
9550
- varConfig: se,
9551
- varProfileDetail: ie,
9552
- varSubmitField: ce
9553
- }) => z({
9548
+ props: oe,
9549
+ model: se,
9550
+ varConfig: ie,
9551
+ varProfileDetail: le,
9552
+ varSubmitField: ge
9553
+ }) => H({
9554
9554
  varName: ne,
9555
- props: ae,
9556
- model: oe,
9557
- varConfig: se,
9558
- varProfileDetail: ie,
9559
- varSubmitField: ce
9555
+ props: oe,
9556
+ model: se,
9557
+ varConfig: ie,
9558
+ varProfileDetail: le,
9559
+ varSubmitField: ge
9560
9560
  })
9561
9561
  }) : createVNode(KgForm.Item, {
9562
9562
  kgVarName: x.var_nam,
9563
9563
  kgContext: KG_FORM_CONTEXT.SUBMIT,
9564
9564
  kgRules: Y.value[x.var_nam],
9565
- onKgSubmit: de
9565
+ onKgSubmit: J
9566
9566
  }, null);
9567
9567
  }
9568
9568
  function be() {
9569
9569
  var Q;
9570
- let x, z;
9570
+ let x, H;
9571
9571
  return createVNode(KgResizable, {
9572
9572
  kgType: ((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
9573
9573
  kgMinWidth: G.value,
9574
- kgMaxWidth: P.value,
9575
- kgWidth: U.value,
9574
+ kgMaxWidth: N.value,
9575
+ kgWidth: B.value,
9576
9576
  kgDisabled: L.value,
9577
- "onUpdate:kgWidth": (Z) => D.value.kgWidth = Z
9577
+ "onUpdate:kgWidth": (Z) => P.value.kgWidth = Z
9578
9578
  }, {
9579
9579
  default: () => [createVNode(Spin, {
9580
9580
  spinning: C.value
@@ -9582,22 +9582,22 @@ const getProps$p = () => ({
9582
9582
  default: () => {
9583
9583
  var Z, ne;
9584
9584
  return [createVNode(KgForm, {
9585
- ref: W,
9585
+ ref: z,
9586
9586
  model: s.model.value,
9587
9587
  layout: (ne = (Z = T.value) == null ? void 0 : Z.layout) != null ? ne : "vertical",
9588
- labelCol: H.value,
9589
- wrapperCol: ee.value
9588
+ labelCol: V.value,
9589
+ wrapperCol: K.value
9590
9590
  }, {
9591
9591
  default: () => [createVNode("div", {
9592
9592
  ref: X
9593
- }, [R.value.length > 0 && createVNode(Row, {
9593
+ }, [U.value.length > 0 && createVNode(Row, {
9594
9594
  gutter: 12
9595
- }, _isSlot$7(x = R.value.map(ge)) ? x : {
9595
+ }, _isSlot$7(x = U.value.map(pe)) ? x : {
9596
9596
  default: () => [x]
9597
- }), R.value.length > 0 && k.value.length > 0 && createVNode(Divider, null, null), k.value.length > 0 && createVNode(Row, {
9597
+ }), U.value.length > 0 && A.value.length > 0 && createVNode(Divider, null, null), A.value.length > 0 && createVNode(Row, {
9598
9598
  gutter: 12
9599
- }, _isSlot$7(z = k.value.map(ge)) ? z : {
9600
- default: () => [z]
9599
+ }, _isSlot$7(H = A.value.map(pe)) ? H : {
9600
+ default: () => [H]
9601
9601
  }), m.value && createVNode("div", {
9602
9602
  style: "text-align: center; padding: 6px 0 12px;"
9603
9603
  }, [n.t("kg.confirmDelete")])])]
@@ -9607,22 +9607,22 @@ const getProps$p = () => ({
9607
9607
  });
9608
9608
  }
9609
9609
  function ye() {
9610
- let x, z;
9610
+ let x, H;
9611
9611
  return createVNode("div", null, [createVNode(Button, {
9612
9612
  type: "primary",
9613
- ghost: !A.value,
9614
- disabled: A.value,
9615
- onClick: ue
9613
+ ghost: !I.value,
9614
+ disabled: I.value,
9615
+ onClick: te
9616
9616
  }, _isSlot$7(x = n.t("kg.cancel")) ? x : {
9617
9617
  default: () => [x]
9618
9618
  }), createVNode(Button, {
9619
9619
  type: "primary",
9620
- disabled: M.value,
9621
- loading: $.value,
9620
+ disabled: O.value,
9621
+ loading: M.value,
9622
9622
  danger: !!p.value,
9623
- onClick: de
9624
- }, _isSlot$7(z = n.t(p.value ? "kg.delete" : "kg.save")) ? z : {
9625
- default: () => [z]
9623
+ onClick: J
9624
+ }, _isSlot$7(H = n.t(p.value ? "kg.delete" : "kg.save")) ? H : {
9625
+ default: () => [H]
9626
9626
  })]);
9627
9627
  }
9628
9628
  function Se() {
@@ -9632,24 +9632,24 @@ const getProps$p = () => ({
9632
9632
  }
9633
9633
  function Ce() {
9634
9634
  return createVNode(KgSubmitHeader, {
9635
- isFullscreen: q.isFullscreen,
9636
- "onUpdate:isFullscreen": (x) => q.isFullscreen = x,
9635
+ isFullscreen: ae.isFullscreen,
9636
+ "onUpdate:isFullscreen": (x) => ae.isFullscreen = x,
9637
9637
  kgShowFullscreenButton: !m.value,
9638
9638
  kgShowConfigButton: !m.value && e.kgShowConfigButton,
9639
- onKgCancel: ue
9639
+ onKgCancel: te
9640
9640
  }, null);
9641
9641
  }
9642
9642
  return onUnmounted(() => {
9643
9643
  s.store.dispose(a.formID);
9644
9644
  }), () => createVNode(Drawer, {
9645
- visible: N.value,
9645
+ visible: ue.value,
9646
9646
  placement: "right",
9647
9647
  closable: !1,
9648
9648
  maskClosable: !1,
9649
9649
  keyboard: !1,
9650
9650
  destroyOnClose: !0,
9651
- width: te.value,
9652
- class: B.value,
9651
+ width: ee.value,
9652
+ class: ce.value,
9653
9653
  "kg-frm-id": a.formID
9654
9654
  }, {
9655
9655
  title: Se,
@@ -9739,13 +9739,14 @@ const getProps$p = () => ({
9739
9739
  });
9740
9740
  function i(c) {
9741
9741
  var g, p, m;
9742
- if (c.stopPropagation(), c.preventDefault(), c.detail === 1)
9742
+ if (c.detail === 1)
9743
9743
  switch ((g = o.value) == null ? void 0 : g.display_type) {
9744
9744
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
9745
- r("kgUpdateLinkClick");
9745
+ c.stopPropagation(), c.preventDefault(), r("kgUpdateLinkClick");
9746
9746
  break;
9747
9747
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
9748
9748
  {
9749
+ c.stopPropagation(), c.preventDefault();
9749
9750
  const b = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
9750
9751
  (m = n.router.value) == null || m.push({
9751
9752
  path: b.path,
@@ -9765,7 +9766,7 @@ const getProps$p = () => ({
9765
9766
  }, null);
9766
9767
  }
9767
9768
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
9768
- const C = KgUtil.tryParseJSON((m = o.value) == null ? void 0 : m.display_type_properties), T = isArrayLike(C) && C.find((I) => I.value === e.kgValue);
9769
+ const C = KgUtil.tryParseJSON((m = o.value) == null ? void 0 : m.display_type_properties), T = isArrayLike(C) && C.find((E) => E.value === e.kgValue);
9769
9770
  return T ? createVNode(Tag, {
9770
9771
  color: (b = T.color) != null ? b : "default"
9771
9772
  }, {
@@ -9890,8 +9891,8 @@ const getProps$l = () => ({
9890
9891
  }) => {
9891
9892
  const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
9892
9893
  return s = watch(l, (c) => {
9893
- var g, p, m, b, _, v, y, C, T, I, V;
9894
- 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 = (m = u == null ? void 0 : u.mult_flg) != null ? m : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (_ = u == null ? void 0 : u.show_bottom_left_flg) != null ? _ : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (T = u == null ? void 0 : u.pg_size_opt) != null ? T : 10, c.cmd_prm = (I = u == null ? void 0 : u.cmd_prm) != null ? I : void 0, c.button_display_type = (V = u == null ? void 0 : u.button_display_type) != null ? V : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
9894
+ var g, p, m, b, _, v, y, C, T, E, w;
9895
+ 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 = (m = u == null ? void 0 : u.mult_flg) != null ? m : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (_ = u == null ? void 0 : u.show_bottom_left_flg) != null ? _ : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[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 = (w = u == null ? void 0 : u.button_display_type) != null ? w : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
9895
9896
  }, {
9896
9897
  immediate: !0
9897
9898
  }), !1;
@@ -10162,15 +10163,15 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10162
10163
  default: () => {
10163
10164
  var T;
10164
10165
  let y, C;
10165
- return createVNode(Fragment, null, [(T = a.varGridMasters.value) == null ? void 0 : T.map((I) => {
10166
- var V;
10166
+ return createVNode(Fragment, null, [(T = a.varGridMasters.value) == null ? void 0 : T.map((E) => {
10167
+ var w;
10167
10168
  return createVNode(Menu.Item, {
10168
- key: I.id,
10169
- class: I.id === ((V = a.currentVarGridMaster.value) == null ? void 0 : V.id) ? "selected" : "",
10170
- "kg-var-nam": I.grd_var_nam,
10171
- onClick: () => a.store.setCurrentVarGridMasterID(a.formID, I.id)
10169
+ key: E.id,
10170
+ class: E.id === ((w = a.currentVarGridMaster.value) == null ? void 0 : w.id) ? "selected" : "",
10171
+ "kg-var-nam": E.grd_var_nam,
10172
+ onClick: () => a.store.setCurrentVarGridMasterID(a.formID, E.id)
10172
10173
  }, {
10173
- default: () => [a.t(I.grd_var_nam).value]
10174
+ default: () => [a.t(E.grd_var_nam).value]
10174
10175
  });
10175
10176
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
10176
10177
  key: "save-grid-view",
@@ -10452,296 +10453,317 @@ const KgTable$1 = "", KgTable = defineComponent({
10452
10453
  slots: t,
10453
10454
  emit: r
10454
10455
  }) {
10455
- const n = inject("$dayjs", dayjs), a = useKg(), o = useKgVar(), s = useKgSearch(), i = useKgButton(), l = useKgTable();
10456
- s.onSearch((N) => {
10457
- D(N);
10458
- }), s.onReset(() => {
10459
- D(!0);
10460
- });
10461
- const u = ref(!1), {
10462
- columns: c,
10463
- scrollX: g
10456
+ const n = inject("$dayjs", dayjs), a = inject(DI_KG_SLOTS, null), o = useKg(), s = useKgVar(), i = useKgSearch(), l = useKgButton(), u = useKgTable();
10457
+ i.onSearch((V) => {
10458
+ G(V);
10459
+ }), i.onReset(() => {
10460
+ G(!0);
10461
+ });
10462
+ const c = ref(!1), g = ref([]), {
10463
+ columns: p,
10464
+ scrollX: m
10464
10465
  } = _useColumns(), {
10465
- isLoading: p
10466
- } = _useLoading(), m = ref(null);
10467
- _useResizeObserver(m);
10468
- const b = computed(() => o.store.getVarButtonSearch(o.formID)), _ = computed(() => {
10469
- var N;
10470
- return ((N = o.varGridConfig.value) == null ? void 0 : N.mult_flg) === 1;
10471
- }), v = computed(() => {
10472
- var N;
10473
- return ((N = o.varGridConfig.value) == null ? void 0 : N.aut_load_flg) === 1;
10474
- }), y = computed(() => {
10475
- var N;
10476
- return ((N = o.varGridConfig.value) == null ? void 0 : N.show_bottom_left_flg) !== 0;
10466
+ isLoading: b
10467
+ } = _useLoading(), _ = ref(null);
10468
+ _useResizeObserver(_);
10469
+ const v = computed(() => s.store.getVarButtonSearch(s.formID)), y = computed(() => {
10470
+ var V;
10471
+ return ((V = s.varGridConfig.value) == null ? void 0 : V.mult_flg) === 1;
10477
10472
  }), C = computed(() => {
10478
- var N;
10479
- return ((N = o.varGridConfig.value) == null ? void 0 : N.show_bottom_right_flg) !== 0;
10473
+ var V;
10474
+ return ((V = s.varGridConfig.value) == null ? void 0 : V.aut_load_flg) === 1;
10480
10475
  }), T = computed(() => {
10481
- var N, B;
10482
- return (B = (N = o.varGridConfig.value) == null ? void 0 : N.id_clm) != null ? B : "id";
10483
- }), I = computed(() => {
10484
- var N, B;
10485
- return JSON.parse((B = (N = o.varGridConfig.value) == null ? void 0 : N.pg_size_opts) != null ? B : "[]");
10486
- }), V = computed(() => {
10487
- var N;
10488
- return (N = o.varGridConfig.value) == null ? void 0 : N.pg_size_opt;
10476
+ var V;
10477
+ return ((V = s.varGridConfig.value) == null ? void 0 : V.show_bottom_left_flg) !== 0;
10489
10478
  }), E = computed(() => {
10490
- var N, B;
10491
- return (B = (N = b.value) == null ? void 0 : N.cmd) != null ? B : null;
10492
- }), K = computed(() => {
10493
- var B, q, H, ee, J, le, ue;
10494
- let N = {
10495
- pageNo: k.pageIndex,
10496
- pageSize: k.pageSize,
10497
- ...$,
10498
- ...(q = (B = s.model) == null ? void 0 : B.value) != null ? q : {}
10499
- };
10500
- return b.value && (N = {
10501
- ...N,
10502
- ...KgVarUtil.parseCommandParameter((ee = (H = b.value) == null ? void 0 : H.cmd_prm) != null ? ee : "")
10503
- }), (J = o.varGridConfig.value) != null && J.cmd_prm && (N = {
10504
- ...N,
10505
- ...KgVarUtil.parseCommandParameter((le = o.varGridConfig.value.cmd_prm) != null ? le : "")
10506
- }), ((ue = o.varGridConfig.value) == null ? void 0 : ue.convert_sort_field_to_under_score_flg) === 1 && N.column && (N.column = snakeCase$1(N.column)), N;
10479
+ var V;
10480
+ return ((V = s.varGridConfig.value) == null ? void 0 : V.show_bottom_right_flg) !== 0;
10481
+ }), w = computed(() => {
10482
+ var V, K;
10483
+ return (K = (V = s.varGridConfig.value) == null ? void 0 : V.id_clm) != null ? K : "id";
10484
+ }), k = computed(() => {
10485
+ var V, K;
10486
+ return JSON.parse((K = (V = s.varGridConfig.value) == null ? void 0 : V.pg_size_opts) != null ? K : "[]");
10507
10487
  }), F = computed(() => {
10508
- var N;
10509
- if (((N = o.varGridConfig.value) == null ? void 0 : N.show_check_column_flg) === 1)
10488
+ var V;
10489
+ return (V = s.varGridConfig.value) == null ? void 0 : V.pg_size_opt;
10490
+ }), R = computed(() => {
10491
+ var V, K;
10492
+ return (K = (V = v.value) == null ? void 0 : V.cmd) != null ? K : null;
10493
+ }), $ = computed(() => {
10494
+ var K, W, q, te, J, de, fe;
10495
+ let V = {
10496
+ pageNo: I.pageIndex,
10497
+ pageSize: I.pageSize,
10498
+ ...O,
10499
+ ...(W = (K = i.model) == null ? void 0 : K.value) != null ? W : {}
10500
+ };
10501
+ return v.value && (V = {
10502
+ ...V,
10503
+ ...KgVarUtil.parseCommandParameter((te = (q = v.value) == null ? void 0 : q.cmd_prm) != null ? te : "")
10504
+ }), (J = s.varGridConfig.value) != null && J.cmd_prm && (V = {
10505
+ ...V,
10506
+ ...KgVarUtil.parseCommandParameter((de = s.varGridConfig.value.cmd_prm) != null ? de : "")
10507
+ }), ((fe = s.varGridConfig.value) == null ? void 0 : fe.convert_sort_field_to_under_score_flg) === 1 && V.column && (V.column = snakeCase$1(V.column)), V;
10508
+ }), D = computed(() => {
10509
+ var V;
10510
+ if (((V = s.varGridConfig.value) == null ? void 0 : V.show_check_column_flg) === 1)
10510
10511
  return {
10511
10512
  fixed: "left",
10512
10513
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
10513
- hideSelectAll: !_.value,
10514
- selectedRowKeys: R,
10514
+ hideSelectAll: !y.value,
10515
+ selectedRowKeys: M,
10515
10516
  preserveSelectedRowKeys: !1,
10516
- onSelect: (B) => G(B),
10517
- onChange: (B) => _.value && L(B)
10517
+ onSelect: (K) => B(K),
10518
+ onChange: (K) => y.value && N(K)
10518
10519
  };
10519
- }), O = computed(() => {
10520
- let N = "kg-table";
10521
- return !y.value && !C.value && (N += " kg-table--no-bottom"), N;
10522
- }), w = ref([]), R = ref([]), k = reactive({
10520
+ }), U = computed(() => {
10521
+ let V = "kg-table";
10522
+ return !T.value && !E.value && (V += " kg-table--no-bottom"), V;
10523
+ }), A = ref([]), M = ref([]), I = reactive({
10523
10524
  pageIndex: 1,
10524
10525
  pageSize: 10,
10525
10526
  total: 0
10526
- }), $ = reactive({
10527
+ }), O = reactive({
10527
10528
  column: void 0,
10528
10529
  order: void 0
10529
- }), A = watch(V, (N) => {
10530
- N && (setTimeout(() => A()), k.pageSize = N), u.value = !0;
10530
+ }), P = watch(F, (V) => {
10531
+ V && (setTimeout(() => P()), I.pageSize = V), c.value = !0;
10531
10532
  });
10532
- watch(I, (N) => {
10533
- N.length > 0 && !N.includes(k.pageSize) && (k.pageSize = V.value);
10534
- }), watch([E, v, s.isReady], ([N, B, q]) => {
10535
- N && B && q && !l.store.getIsRetrieved(o.formID) && D(!0);
10533
+ watch(k, (V) => {
10534
+ V.length > 0 && !V.includes(I.pageSize) && (I.pageSize = F.value);
10535
+ }), watch([R, C, i.isReady], ([V, K, W]) => {
10536
+ V && K && W && !u.store.getIsRetrieved(s.formID) && G(!0);
10536
10537
  }, {
10537
10538
  immediate: !0
10538
10539
  }), onUnmounted(() => {
10539
- l.store.dispose(o.formID);
10540
+ u.store.dispose(s.formID);
10540
10541
  });
10541
- function M(N, B) {
10542
- if (!!F.value) {
10543
- if (!B) {
10544
- R.value = [], l.store.setSelectedRows(o.formID, []);
10542
+ function L(V, K) {
10543
+ if (!!D.value) {
10544
+ if (!K) {
10545
+ M.value = [], u.store.setSelectedRows(s.formID, []);
10545
10546
  return;
10546
10547
  }
10547
- switch (N == null ? void 0 : N.detail) {
10548
+ switch (V == null ? void 0 : V.detail) {
10548
10549
  case 1:
10549
- R.value = [B[T.value]], l.store.setSelectedRows(o.formID, R.value.map((q) => {
10550
- var H;
10551
- return (H = w.value) == null ? void 0 : H.find((ee) => ee[T.value] === q);
10552
- }).filter((q) => !!q));
10550
+ M.value = [K[w.value]], u.store.setSelectedRows(s.formID, M.value.map((W) => {
10551
+ var q;
10552
+ return (q = A.value) == null ? void 0 : q.find((te) => te[w.value] === W);
10553
+ }).filter((W) => !!W));
10553
10554
  break;
10554
10555
  case 2:
10555
- l.store.emit(o.formID, "rowDoubleClick", B);
10556
+ u.store.emit(s.formID, "rowDoubleClick", K);
10556
10557
  break;
10557
10558
  }
10558
10559
  }
10559
10560
  }
10560
- function D(N = !1) {
10561
- const B = watch(u, (H) => {
10562
- H && (setTimeout(() => B()), q());
10561
+ function G(V = !1) {
10562
+ const K = watch(c, (q) => {
10563
+ q && (setTimeout(() => K()), W());
10563
10564
  }, {
10564
10565
  immediate: !0
10565
10566
  });
10566
- async function q() {
10567
- var H, ee;
10568
- if (!E.value) {
10567
+ async function W() {
10568
+ var q, te;
10569
+ if (!R.value) {
10569
10570
  Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10570
- VarButton: b.value
10571
+ VarButton: v.value
10571
10572
  });
10572
10573
  return;
10573
10574
  }
10574
- N && (k.pageIndex = 1), l.store.setIsRetrieving(o.formID, !0);
10575
+ V && (I.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
10575
10576
  try {
10576
10577
  const J = await httpClient().request({
10577
10578
  method: "GET",
10578
- url: E.value,
10579
- params: KgUtil.parseParams(K.value, o.formID, n)
10579
+ url: R.value,
10580
+ params: KgUtil.parseParams($.value, s.formID, n)
10580
10581
  }, {
10581
10582
  successMessageMode: "none"
10582
10583
  });
10583
- J ? isArrayLike(J) ? (w.value = J, k.total = J.length) : "total" in J && "records" in J && (w.value = (H = J.records) != null ? H : [], k.total = (ee = J.total) != null ? ee : 0) : (w.value = [], k.total = 0), l.store.emit(o.formID, "retrieve", J), M(), await nextTick(), l.store.setIsRetrieved(o.formID, !0);
10584
+ switch (!0) {
10585
+ case !J:
10586
+ A.value = [], I.total = 0;
10587
+ break;
10588
+ case isArrayLike(J):
10589
+ A.value = J, I.total = J.length;
10590
+ break;
10591
+ case ("total" in J && "records" in J):
10592
+ A.value = (q = J.records) != null ? q : [], I.total = (te = J.total) != null ? te : 0;
10593
+ break;
10594
+ }
10595
+ u.store.emit(s.formID, "retrieve", J), L(), g.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
10584
10596
  } catch (J) {
10585
10597
  throw J;
10586
10598
  } finally {
10587
- l.store.setIsRetrieving(o.formID, !1);
10599
+ u.store.setIsRetrieving(s.formID, !1);
10588
10600
  }
10589
10601
  }
10590
10602
  }
10591
- function L(N) {
10592
- R.value = N, l.store.setSelectedRows(o.formID, R.value.map((B) => {
10593
- var q;
10594
- return (q = w.value) == null ? void 0 : q.find((H) => H[T.value] === B);
10595
- }).filter((B) => !!B));
10603
+ function N(V) {
10604
+ M.value = V, u.store.setSelectedRows(s.formID, M.value.map((K) => {
10605
+ var W;
10606
+ return (W = A.value) == null ? void 0 : W.find((q) => q[w.value] === K);
10607
+ }).filter((K) => !!K));
10596
10608
  }
10597
- function G(N) {
10598
- var B, q;
10599
- switch (_.value) {
10609
+ function B(V) {
10610
+ var K, W;
10611
+ switch (y.value) {
10600
10612
  case !0:
10601
10613
  {
10602
- const H = N[T.value];
10603
- R.value.includes(H) ? R.value = without$1(R.value, H) : R.value = [...(B = R.value) != null ? B : [], H];
10614
+ const q = V[w.value];
10615
+ M.value.includes(q) ? M.value = without$1(M.value, q) : M.value = [...(K = M.value) != null ? K : [], q];
10604
10616
  }
10605
10617
  break;
10606
10618
  case !1:
10607
10619
  {
10608
- const H = N[T.value];
10609
- (q = R.value) != null && q.includes(H) ? R.value = [] : R.value = [H];
10620
+ const q = V[w.value];
10621
+ (W = M.value) != null && W.includes(q) ? M.value = [] : M.value = [q];
10610
10622
  }
10611
10623
  break;
10612
10624
  }
10613
- l.store.setSelectedRows(o.formID, R.value.map((H) => {
10614
- var ee;
10615
- return (ee = w.value) == null ? void 0 : ee.find((J) => J[T.value] === H);
10616
- }).filter((H) => !!H));
10625
+ u.store.setSelectedRows(s.formID, M.value.map((q) => {
10626
+ var te;
10627
+ return (te = A.value) == null ? void 0 : te.find((J) => J[w.value] === q);
10628
+ }).filter((q) => !!q));
10617
10629
  }
10618
- function P(N, B) {
10619
- B.width = N, o.store.setVarGridDetailWidth(o.formID, B.dataIndex, N);
10630
+ function z(V, K) {
10631
+ K.width = V, s.store.setVarGridDetailWidth(s.formID, K.dataIndex, V);
10620
10632
  }
10621
- async function U(N, B, q, H) {
10622
- var ee;
10623
- switch (H.action) {
10633
+ async function Y(V, K, W, q) {
10634
+ var te;
10635
+ switch (q.action) {
10624
10636
  case "sort":
10625
10637
  {
10626
10638
  await nextTick();
10627
- let J = q;
10628
- J.order ? ($.column = (ee = J.field) != null ? ee : void 0, $.order = J.order === "ascend" ? "asc" : J.order === "descend" ? "desc" : void 0) : ($.column = void 0, $.order = void 0), D(!0);
10639
+ let J = W;
10640
+ J.order ? (O.column = (te = J.field) != null ? te : void 0, O.order = J.order === "ascend" ? "asc" : J.order === "descend" ? "desc" : void 0) : (O.column = void 0, O.order = void 0), G(!0);
10629
10641
  }
10630
10642
  break;
10631
10643
  }
10632
10644
  }
10633
- function W(N, B) {
10634
- B !== k.pageSize ? (k.pageIndex = 1, k.pageSize = B) : k.pageIndex = N, D();
10645
+ function X(V, K) {
10646
+ V ? g.value = [K[w.value]] : g.value = [];
10635
10647
  }
10636
- function Y(N) {
10637
- R.value = [N[T.value]], l.store.setSelectedRows(o.formID, R.value.map((B) => {
10638
- var q;
10639
- return (q = w.value) == null ? void 0 : q.find((H) => H[T.value] === B);
10640
- }).filter((B) => !!B)), i.click(o.formID, KG_BUTTON_TYPE.UPDATE);
10648
+ function re(V, K) {
10649
+ K !== I.pageSize ? (I.pageIndex = 1, I.pageSize = K) : I.pageIndex = V, G();
10641
10650
  }
10642
- function X({
10643
- title: N,
10644
- column: B
10651
+ function ee(V) {
10652
+ M.value = [V[w.value]], u.store.setSelectedRows(s.formID, M.value.map((K) => {
10653
+ var W;
10654
+ return (W = A.value) == null ? void 0 : W.find((q) => q[w.value] === K);
10655
+ }).filter((K) => !!K)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
10656
+ }
10657
+ function ue({
10658
+ title: V,
10659
+ column: K
10645
10660
  }) {
10646
- switch (B.dataIndex) {
10661
+ switch (K.dataIndex) {
10647
10662
  case "index":
10648
10663
  return createVNode(KgTableSetting, null, null);
10649
10664
  default:
10650
- return createVNode("pre", null, [N]);
10665
+ return createVNode("pre", null, [V]);
10651
10666
  }
10652
10667
  }
10653
- function re({
10654
- column: N,
10655
- index: B,
10656
- record: q,
10657
- value: H,
10658
- text: ee
10668
+ function ce({
10669
+ column: V,
10670
+ index: K,
10671
+ record: W,
10672
+ value: q,
10673
+ text: te
10659
10674
  }) {
10660
10675
  let J = "";
10661
- N.customRender ? J = N.customRender({
10662
- index: B,
10663
- record: q,
10664
- column: N,
10665
- text: ee,
10666
- value: H,
10667
- renderIndex: B
10668
- }) : J = H;
10669
- const le = createVNode(KgTableCell, {
10670
- kgRow: q,
10676
+ V.customRender ? J = V.customRender({
10677
+ index: K,
10678
+ record: W,
10679
+ column: V,
10680
+ text: te,
10681
+ value: q,
10682
+ renderIndex: K
10683
+ }) : J = q;
10684
+ const de = createVNode(KgTableCell, {
10685
+ kgRow: W,
10671
10686
  kgValue: J,
10672
- kgVarName: N.dataIndex,
10673
- onKgUpdateLinkClick: () => Y(q)
10687
+ kgVarName: V.dataIndex,
10688
+ onKgUpdateLinkClick: () => ee(W)
10674
10689
  }, null);
10675
10690
  return t.bodyCell ? t.bodyCell({
10676
- value: H,
10677
- record: q,
10678
- index: B,
10679
- column: N,
10680
- defaultRender: le
10681
- }) : le;
10691
+ value: q,
10692
+ record: W,
10693
+ index: K,
10694
+ column: V,
10695
+ defaultRender: de
10696
+ }) : de;
10682
10697
  }
10683
- function te() {
10684
- return !v.value && !l.store.getIsRetrieved(o.formID) ? a.t("kg.KgTable.emptyText") : a.t("kg.emptyText");
10698
+ function ae() {
10699
+ return !C.value && !u.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
10685
10700
  }
10686
- return () => createVNode("div", {
10687
- class: O.value,
10688
- "kg-frm-id": o.formID,
10689
- ref: m
10690
- }, [createVNode(Table, {
10691
- class: "kg-flex-table",
10692
- size: "small",
10693
- scroll: {
10694
- x: g.value,
10695
- y: "auto"
10696
- },
10697
- pagination: !1,
10698
- showSorterTooltip: !1,
10699
- columns: c.value,
10700
- dataSource: w.value,
10701
- loading: p.value,
10702
- rowKey: T.value,
10703
- rowSelection: F.value,
10704
- customRow: (N) => ({
10705
- onClick: (B) => M(B, N)
10706
- }),
10707
- onResizeColumn: P,
10708
- onChange: U
10709
- }, {
10710
- headerCell: X,
10711
- bodyCell: re,
10712
- emptyText: te
10713
- }), (y.value || C.value) && createVNode("div", {
10714
- class: "kg-table-bottom"
10715
- }, [createVNode("div", {
10716
- class: "left"
10717
- }, [y.value && createVNode(KgTableInfo, {
10718
- kgShowClearCheck: R.value.length > 0,
10719
- kgShowClearTable: k.total > 0,
10720
- kgShowLocate: R.value.length === 1,
10721
- kgTotal: R.value.length,
10722
- kgDisabled: p.value
10723
- }, null)]), createVNode("div", {
10724
- class: "right"
10725
- }, [C.value && createVNode(Pagination, {
10726
- size: "default",
10727
- current: k.pageIndex,
10728
- pageSize: k.pageSize,
10729
- pageSizeOptions: I.value.map((N) => String(N)),
10730
- total: k.total,
10731
- showSizeChanger: !0,
10732
- showQuickJumper: !1,
10733
- hideOnSinglePage: !1,
10734
- disabled: p.value || k.total === 0,
10735
- locale: {
10736
- page: ""
10737
- },
10738
- showTotal: (N, B) => a.t("kg.KgTable.totalText", {
10739
- from: B[0],
10740
- to: B[1],
10741
- total: N
10742
- }),
10743
- onChange: (N, B) => W(N, B)
10744
- }, null)])])]);
10701
+ return () => {
10702
+ var V;
10703
+ return createVNode("div", {
10704
+ class: U.value,
10705
+ "kg-frm-id": s.formID,
10706
+ ref: _
10707
+ }, [createVNode(Table, {
10708
+ class: "kg-flex-table",
10709
+ size: "small",
10710
+ scroll: {
10711
+ x: m.value,
10712
+ y: "auto"
10713
+ },
10714
+ pagination: !1,
10715
+ showSorterTooltip: !1,
10716
+ columns: p.value,
10717
+ dataSource: A.value,
10718
+ loading: b.value,
10719
+ rowKey: w.value,
10720
+ rowSelection: D.value,
10721
+ expandColumnWidth: 28,
10722
+ expandedRowKeys: g.value,
10723
+ customRow: (K) => ({
10724
+ onClick: (W) => L(W, K)
10725
+ }),
10726
+ onResizeColumn: z,
10727
+ onChange: Y,
10728
+ onExpand: X
10729
+ }, {
10730
+ headerCell: ue,
10731
+ bodyCell: ce,
10732
+ emptyText: ae,
10733
+ expandedRowRender: (V = a == null ? void 0 : a.KgTable) == null ? void 0 : V.expandedRowRender
10734
+ }), (T.value || E.value) && createVNode("div", {
10735
+ class: "kg-table-bottom"
10736
+ }, [createVNode("div", {
10737
+ class: "left"
10738
+ }, [T.value && createVNode(KgTableInfo, {
10739
+ kgShowClearCheck: M.value.length > 0,
10740
+ kgShowClearTable: I.total > 0,
10741
+ kgShowLocate: M.value.length === 1,
10742
+ kgTotal: M.value.length,
10743
+ kgDisabled: b.value
10744
+ }, null)]), createVNode("div", {
10745
+ class: "right"
10746
+ }, [E.value && createVNode(Pagination, {
10747
+ size: "default",
10748
+ current: I.pageIndex,
10749
+ pageSize: I.pageSize,
10750
+ pageSizeOptions: k.value.map((K) => String(K)),
10751
+ total: I.total,
10752
+ showSizeChanger: !0,
10753
+ showQuickJumper: !1,
10754
+ hideOnSinglePage: !1,
10755
+ disabled: b.value || I.total === 0,
10756
+ locale: {
10757
+ page: ""
10758
+ },
10759
+ showTotal: (K, W) => o.t("kg.KgTable.totalText", {
10760
+ from: W[0],
10761
+ to: W[1],
10762
+ total: K
10763
+ }),
10764
+ onChange: (K, W) => re(K, W)
10765
+ }, null)])])]);
10766
+ };
10745
10767
  }
10746
10768
  }), getProps$f = () => ({
10747
10769
  kgButton: Object,
@@ -11067,7 +11089,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11067
11089
  }
11068
11090
  let u = null;
11069
11091
  const c = async () => {
11070
- var _, v, y, C, T, I, V;
11092
+ var _, v, y, C, T, E, w;
11071
11093
  u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
11072
11094
  const b = a.selectedRows.value;
11073
11095
  try {
@@ -11076,9 +11098,9 @@ const KgTable$1 = "", KgTable = defineComponent({
11076
11098
  url: l,
11077
11099
  params: KgVarUtil.parseCommandParameter((C = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? C : ""),
11078
11100
  data: b != null ? b : []
11079
- }), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((V = (I = n.search).value) == null || V.call(I, !0));
11080
- } catch (E) {
11081
- console.error(E);
11101
+ }), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((w = (E = n.search).value) == null || w.call(E, !0));
11102
+ } catch (k) {
11103
+ console.error(k);
11082
11104
  } finally {
11083
11105
  r.store.setIsOtherRequesting(r.formID, !1), u == null || u.hideLoading();
11084
11106
  }
@@ -11853,7 +11875,7 @@ const leftVarProfileDetailColumns = (e) => {
11853
11875
  row: y,
11854
11876
  model: C
11855
11877
  }) => {
11856
- var I, V, E;
11878
+ var E, w, k;
11857
11879
  const T = i.store.getSystemVarProfileDetails(i.formID);
11858
11880
  switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
11859
11881
  case b:
@@ -11864,24 +11886,24 @@ const leftVarProfileDetailColumns = (e) => {
11864
11886
  if (y != null && y.id)
11865
11887
  try {
11866
11888
  s.store.setIsLoading(n.formID, !0);
11867
- const K = await QueryByID({
11889
+ const F = await QueryByID({
11868
11890
  params: {
11869
11891
  id: y.id
11870
11892
  }
11871
11893
  });
11872
- l.value = l.value.map((O) => {
11873
- var R;
11874
- const w = (R = K == null ? void 0 : K.varProfileDetails) == null ? void 0 : R.find((k) => k.var_nam === O.var_nam);
11875
- return w ? {
11876
- ...O,
11877
- ...w,
11878
- id: O.id
11879
- } : O;
11894
+ l.value = l.value.map(($) => {
11895
+ var U;
11896
+ const D = (U = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : U.find((A) => A.var_nam === $.var_nam);
11897
+ return D ? {
11898
+ ...$,
11899
+ ...D,
11900
+ id: $.id
11901
+ } : $;
11880
11902
  });
11881
- const F = (V = (I = K == null ? void 0 : K.varProfileDetails) == null ? void 0 : I.map((O) => O.var_nam)) != null ? V : [];
11882
- u.value = l.value.filter((O) => F.includes(O.var_nam)).map((O) => O.id);
11883
- } catch (K) {
11884
- throw K;
11903
+ const R = (w = (E = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : E.map(($) => $.var_nam)) != null ? w : [];
11904
+ u.value = l.value.filter(($) => R.includes($.var_nam)).map(($) => $.id);
11905
+ } catch (F) {
11906
+ throw F;
11885
11907
  } finally {
11886
11908
  s.store.setIsLoading(n.formID, !1);
11887
11909
  }
@@ -11891,7 +11913,7 @@ const leftVarProfileDetailColumns = (e) => {
11891
11913
  }
11892
11914
  switch (!0) {
11893
11915
  case v:
11894
- C.value.prf_var_nam = ((E = C.value.prf_var_nam) != null ? E : "") + "_COPY";
11916
+ C.value.prf_var_nam = ((k = C.value.prf_var_nam) != null ? k : "") + "_COPY";
11895
11917
  break;
11896
11918
  }
11897
11919
  return !1;
@@ -11930,42 +11952,42 @@ const leftVarProfileDetailColumns = (e) => {
11930
11952
  }) => createVNode(Transfer, {
11931
11953
  dataSource: l.value,
11932
11954
  targetKeys: u.value,
11933
- "onUpdate:targetKeys": (I) => u.value = I,
11934
- rowKey: (I) => I.id,
11955
+ "onUpdate:targetKeys": (E) => u.value = E,
11956
+ rowKey: (E) => E.id,
11935
11957
  showSearch: !0,
11936
11958
  showSelectAll: !1,
11937
11959
  searchPlaceholder: " ",
11938
- filterOption: (I, V) => {
11939
- var E;
11940
- return !!((E = V.var_nam) != null && E.includes(I));
11960
+ filterOption: (E, w) => {
11961
+ var k;
11962
+ return !!((k = w.var_nam) != null && k.includes(E));
11941
11963
  }
11942
11964
  }, {
11943
11965
  children: ({
11944
- direction: I,
11945
- filteredItems: V,
11946
- selectedKeys: E,
11947
- disabled: K,
11948
- onItemSelectAll: F,
11949
- onItemSelect: O
11966
+ direction: E,
11967
+ filteredItems: w,
11968
+ selectedKeys: k,
11969
+ disabled: F,
11970
+ onItemSelectAll: R,
11971
+ onItemSelect: $
11950
11972
  }) => createVNode(Table, {
11951
11973
  pagination: !1,
11952
11974
  class: "kg-flex-table",
11953
11975
  size: "small",
11954
11976
  scroll: {
11955
- x: I === "left" ? "370px" : "1244px",
11977
+ x: E === "left" ? "370px" : "1244px",
11956
11978
  y: "auto"
11957
11979
  },
11958
- columns: I === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
11980
+ columns: E === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
11959
11981
  rowKey: "id",
11960
- dataSource: V,
11961
- customRow: (w) => ({
11962
- onClick: (R) => m(R, w, I, E)
11982
+ dataSource: w,
11983
+ customRow: (D) => ({
11984
+ onClick: (U) => m(U, D, E, k)
11963
11985
  }),
11964
11986
  rowSelection: g({
11965
- disabled: K,
11966
- selectedKeys: E,
11967
- onItemSelectAll: F,
11968
- onItemSelect: O
11987
+ disabled: F,
11988
+ selectedKeys: k,
11989
+ onItemSelectAll: R,
11990
+ onItemSelect: $
11969
11991
  })
11970
11992
  }, null)
11971
11993
  })
@@ -11985,10 +12007,10 @@ const leftVarProfileDetailColumns = (e) => {
11985
12007
  disabled: b || C.disabled
11986
12008
  }),
11987
12009
  onSelectAll(C, T) {
11988
- const I = T.filter((V) => !V.disabled).map(({
11989
- key: V
11990
- }) => V);
11991
- v(I, C);
12010
+ const E = T.filter((w) => !w.disabled).map(({
12011
+ key: w
12012
+ }) => w);
12013
+ v(E, C);
11992
12014
  },
11993
12015
  onSelect({
11994
12016
  key: C
@@ -12111,9 +12133,9 @@ function _useLayoutHeaderResizeObserver() {
12111
12133
  return onMounted(() => {
12112
12134
  const t = document.querySelector("div.jeecg-layout-header-center");
12113
12135
  t && (e = new ResizeObserver((r) => {
12114
- var o, s;
12115
- const n = (s = (o = r[0].borderBoxSize[0]) == null ? void 0 : o.inlineSize) != null ? s : 0, a = document.querySelector("#kg-search-header-teleport");
12116
- a && (a.style.width = `${n}px`);
12136
+ var s, i;
12137
+ const n = t.getBoundingClientRect().left, a = (i = (s = r[0].borderBoxSize[0]) == null ? void 0 : s.inlineSize) != null ? i : 0, o = document.querySelector("#kg-search-header-teleport");
12138
+ o && (o.style.left = `${n}px`, o.style.width = `${a}px`);
12117
12139
  }), e.observe(t));
12118
12140
  }), onUnmounted(() => {
12119
12141
  e == null || e.disconnect();
@@ -12123,27 +12145,27 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12123
12145
  name: "KgSearch",
12124
12146
  props: getProps$9(),
12125
12147
  setup(e) {
12126
- const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
12148
+ const t = inject(DI_KG_SLOTS, null), r = useKg(), n = useKgVar(), a = useKgSearch(), o = useKgTable();
12127
12149
  _useLayoutHeaderResizeObserver();
12128
- const o = computed(() => r.store.getFormLevel(r.formID)), s = computed(() => r.store.getVarProfileConfig(r.formID)), i = computed(() => {
12129
- var P;
12130
- return o.value > 0 ? !1 : ((P = s.value) == null ? void 0 : P.header_teleport_flg) !== 0;
12131
- }), l = computed(() => getDefaultHeight(r.currentVarProfileDetails.value, i.value)), u = computed(() => getMaxHeight(r.currentVarProfileDetails.value, i.value)), c = computed(() => i.value ? 1 : HEADER_HEIGHT), g = computed(() => {
12132
- var P, U;
12133
- return !!(a.isRetrieving.value || ((P = T.value) == null ? void 0 : P.permission_type) === 2 && !t.p((U = T.value) == null ? void 0 : U.permission_code));
12134
- }), p = computed(() => !!a.isRetrieving.value), m = computed(() => !!a.isRetrieving.value), b = ref(null), _ = ref({
12135
- kgHeight: c.value
12136
- }), v = ref({
12150
+ const s = computed(() => n.store.getFormLevel(n.formID)), i = computed(() => n.store.getVarProfileConfig(n.formID)), l = computed(() => {
12151
+ var N;
12152
+ return s.value > 0 ? !1 : ((N = i.value) == null ? void 0 : N.header_teleport_flg) !== 0;
12153
+ }), 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(() => {
12154
+ var N, B;
12155
+ return !!(o.isRetrieving.value || ((N = E.value) == null ? void 0 : N.permission_type) === 2 && !r.p((B = E.value) == null ? void 0 : B.permission_code));
12156
+ }), m = computed(() => !!o.isRetrieving.value), b = computed(() => !!o.isRetrieving.value), _ = ref(null), v = ref({
12157
+ kgHeight: g.value
12158
+ }), y = ref({
12137
12159
  visible: !1
12138
12160
  });
12139
- let y;
12140
- const C = computed(() => _.value.kgHeight === c.value), T = computed(() => r.store.getVarButtonSearch(r.formID)), I = computed(() => {
12141
- var P, U, W;
12142
- if (r.t((P = T.value) == null ? void 0 : P.var_nam).value !== ((U = T.value) == null ? void 0 : U.var_nam))
12143
- return r.t((W = T.value) == null ? void 0 : W.var_nam).value;
12144
- }), V = computed(() => {
12145
- var P;
12146
- switch ((P = T.value) == null ? void 0 : P.primary_flg) {
12161
+ let C;
12162
+ const T = computed(() => v.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), w = computed(() => {
12163
+ var N, B, z;
12164
+ if (n.t((N = E.value) == null ? void 0 : N.var_nam).value !== ((B = E.value) == null ? void 0 : B.var_nam))
12165
+ return n.t((z = E.value) == null ? void 0 : z.var_nam).value;
12166
+ }), k = computed(() => {
12167
+ var N;
12168
+ switch ((N = E.value) == null ? void 0 : N.primary_flg) {
12147
12169
  case 1:
12148
12170
  return !0;
12149
12171
  case 0:
@@ -12151,135 +12173,140 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12151
12173
  default:
12152
12174
  return !0;
12153
12175
  }
12154
- }), E = computed(() => {
12155
- var P;
12156
- return ((P = s.value) == null ? void 0 : P.vis_flg) === 1;
12157
- }), K = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)), F = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), O = computed(() => {
12158
- let P = "kg-search";
12159
- return E.value && (P += " kg-search--visible"), i.value && (P += " kg-search--teleport"), P;
12160
- });
12161
- watch(r.currentVarProfileDetails, (P) => {
12162
- if (P) {
12163
- const U = {};
12164
- P.forEach((W) => {
12165
- U[W.var_nam] = "";
12166
- }), _.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(U)), E.value ? (y == null || y(), y = watch(b, (W) => {
12167
- W && (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
12176
+ }), F = computed(() => {
12177
+ var N;
12178
+ return ((N = i.value) == null ? void 0 : N.vis_flg) === 1;
12179
+ }), R = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), $ = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), D = computed(() => {
12180
+ let N = "kg-search";
12181
+ return F.value && (N += " kg-search--visible"), l.value && (N += " kg-search--teleport"), N;
12182
+ });
12183
+ watch(n.currentVarProfileDetails, (N) => {
12184
+ if (N) {
12185
+ const B = {};
12186
+ N.forEach((z) => {
12187
+ B[z.var_nam] = "";
12188
+ }), v.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(B)), F.value ? (C == null || C(), C = watch(_, (z) => {
12189
+ z && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
12168
12190
  }, {
12169
12191
  immediate: !0
12170
- })) : (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
12192
+ })) : (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
12171
12193
  }
12172
12194
  }, {
12173
12195
  immediate: !0
12174
12196
  }), onUnmounted(() => {
12175
- n.store.dispose(r.formID);
12197
+ a.store.dispose(n.formID);
12176
12198
  });
12177
- function w(P = !1) {
12178
- E.value ? b.value && b.value.validate().then(() => {
12179
- n.store.emit(r.formID, "search", {
12180
- resetPageIndex: P
12199
+ function U(N = !1) {
12200
+ F.value ? _.value && _.value.validate().then(() => {
12201
+ a.store.emit(n.formID, "search", {
12202
+ resetPageIndex: N
12181
12203
  });
12182
- }).catch((U) => {
12204
+ }).catch((B) => {
12183
12205
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
12184
- e: U
12206
+ e: B
12185
12207
  });
12186
- }) : n.store.emit(r.formID, "search", {
12187
- resetPageIndex: P
12208
+ }) : a.store.emit(n.formID, "search", {
12209
+ resetPageIndex: N
12188
12210
  });
12189
12211
  }
12190
- n.store.setSearchFn(r.formID, w);
12191
- function R() {
12192
- var P;
12193
- (P = b.value) == null || P.resetFields(), E.value ? b.value && b.value.validate().then(() => {
12194
- n.store.emit(r.formID, "reset");
12195
- }).catch((U) => {
12212
+ a.store.setSearchFn(n.formID, U);
12213
+ function A() {
12214
+ var N;
12215
+ (N = _.value) == null || N.resetFields(), F.value ? _.value && _.value.validate().then(() => {
12216
+ a.store.emit(n.formID, "reset");
12217
+ }).catch((B) => {
12196
12218
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
12197
- e: U
12219
+ e: B
12198
12220
  });
12199
- }) : n.store.emit(r.formID, "reset");
12221
+ }) : a.store.emit(n.formID, "reset");
12200
12222
  }
12201
- n.store.setResetFn(r.formID, R);
12202
- function k() {
12203
- return w(!0), Promise.resolve(!0);
12223
+ a.store.setResetFn(n.formID, A);
12224
+ function M() {
12225
+ return U(!0), Promise.resolve(!0);
12204
12226
  }
12205
- function $() {
12227
+ function I() {
12228
+ var N;
12206
12229
  return createVNode("div", {
12207
12230
  class: "title",
12208
12231
  onClick: G
12209
- }, [C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [t.t("kg.KgSearch.title")])]);
12232
+ }, [((N = t == null ? void 0 : t.KgSearch) == null ? void 0 : N.left) && createVNode("div", {
12233
+ class: "kg-search-title-left",
12234
+ onClick: (B) => {
12235
+ B.stopPropagation(), B.preventDefault();
12236
+ }
12237
+ }, [t.KgSearch.left()]), T.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
12210
12238
  }
12211
- function A() {
12212
- var P, U, W, Y;
12213
- return ((W = (U = (P = r.varProfileMasters) == null ? void 0 : P.value) == null ? void 0 : U.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
12214
- value: (Y = r.currentVarProfileMasterID.value) != null ? Y : void 0,
12215
- "onUpdate:value": (X) => r.store.setCurrentVarProfileMasterID(r.formID, X),
12216
- disabled: p.value,
12217
- onChange: L,
12239
+ function O() {
12240
+ var N, B, z, Y;
12241
+ return ((z = (B = (N = n.varProfileMasters) == null ? void 0 : N.value) == null ? void 0 : B.length) != null ? z : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
12242
+ value: (Y = n.currentVarProfileMasterID.value) != null ? Y : void 0,
12243
+ "onUpdate:value": (X) => n.store.setCurrentVarProfileMasterID(n.formID, X),
12244
+ disabled: m.value,
12218
12245
  class: "kg-search-profile-master-select"
12219
12246
  }, {
12220
12247
  default: () => {
12221
12248
  var X, re;
12222
- return (re = (X = r.varProfileMasters) == null ? void 0 : X.value) == null ? void 0 : re.map((te) => createVNode(Select.Option, {
12223
- value: te.id
12249
+ return (re = (X = n.varProfileMasters) == null ? void 0 : X.value) == null ? void 0 : re.map((ee) => createVNode(Select.Option, {
12250
+ value: ee.id
12224
12251
  }, {
12225
- default: () => [r.t(te == null ? void 0 : te.prf_var_nam).value]
12252
+ default: () => [n.t(ee == null ? void 0 : ee.prf_var_nam).value]
12226
12253
  }));
12227
12254
  },
12228
12255
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
12229
12256
  }), createVNode(Button, {
12230
- disabled: p.value,
12257
+ disabled: m.value,
12231
12258
  onClick: () => {
12232
- v.value.visible = !0;
12259
+ y.value.visible = !0;
12233
12260
  },
12234
12261
  class: "kg-search-profile-master-btn"
12235
12262
  }, {
12236
12263
  default: () => [createVNode(SettingOutlined$1, null, null)]
12237
12264
  }), createVNode(KgSearchConfigModal, {
12238
- visible: v.value.visible,
12239
- "onUpdate:visible": (X) => v.value.visible = X,
12240
- hostFormID: r.formID
12265
+ visible: y.value.visible,
12266
+ "onUpdate:visible": (X) => y.value.visible = X,
12267
+ hostFormID: n.formID
12241
12268
  }, null)]);
12242
12269
  }
12243
- function M() {
12244
- var P, U, W, Y, X;
12245
- return createVNode(Fragment, null, [A(), !(((P = T.value) == null ? void 0 : P.permission_type) !== 2 && !t.p((U = T.value) == null ? void 0 : U.permission_code)) && createVNode(Button, {
12270
+ function P() {
12271
+ var N, B, z, Y, X;
12272
+ return createVNode(Fragment, null, [O(), !(((N = E.value) == null ? void 0 : N.permission_type) !== 2 && !r.p((B = E.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
12246
12273
  type: "primary",
12247
- ghost: !g.value,
12248
- disabled: g.value,
12249
- onClick: R,
12274
+ ghost: !p.value,
12275
+ disabled: p.value,
12276
+ onClick: A,
12250
12277
  class: "kg-search-btn-reset"
12251
12278
  }, {
12252
- default: () => [createVNode(ReloadOutlined$1, null, null), t.t("kg.reset")]
12279
+ default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
12253
12280
  }), createVNode(KgButton.Item, {
12254
12281
  kgType: KG_BUTTON_TYPE.SEARCH,
12255
- kgVarName: (W = T.value) == null ? void 0 : W.var_nam,
12256
- kgIcon: (Y = T.value) == null ? void 0 : Y.icon,
12257
- kgText: I.value,
12258
- kgColor: (X = T.value) == null ? void 0 : X.color,
12259
- kgPrimary: V.value,
12260
- kgLoading: m.value,
12261
- onKgClick: k
12282
+ kgVarName: (z = E.value) == null ? void 0 : z.var_nam,
12283
+ kgIcon: (Y = E.value) == null ? void 0 : Y.icon,
12284
+ kgText: w.value,
12285
+ kgColor: (X = E.value) == null ? void 0 : X.color,
12286
+ kgPrimary: k.value,
12287
+ kgLoading: b.value,
12288
+ onKgClick: M
12262
12289
  }, null)]);
12263
12290
  }
12264
- function D() {
12291
+ function L() {
12265
12292
  return createVNode(Spin, {
12266
- spinning: F.value
12293
+ spinning: $.value
12267
12294
  }, {
12268
12295
  default: () => {
12269
- var P;
12296
+ var N;
12270
12297
  return [createVNode(KgForm, {
12271
- ref: b,
12272
- model: (P = n.model.value) != null ? P : {}
12298
+ ref: _,
12299
+ model: (N = a.model.value) != null ? N : {}
12273
12300
  }, {
12274
12301
  default: () => [createVNode(Row, {
12275
12302
  gutter: 6
12276
12303
  }, {
12277
12304
  default: () => {
12278
- var U;
12279
- return [(U = r.currentVarProfileDetails.value) == null ? void 0 : U.map((W) => createVNode(KgForm.Item, {
12280
- kgVarName: W.var_nam,
12305
+ var B;
12306
+ return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((z) => createVNode(KgForm.Item, {
12307
+ kgVarName: z.var_nam,
12281
12308
  kgContext: KG_FORM_CONTEXT.SEARCH,
12282
- onKgSubmit: () => w(!0)
12309
+ onKgSubmit: () => U(!0)
12283
12310
  }, null))];
12284
12311
  }
12285
12312
  })]
@@ -12287,42 +12314,39 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12287
12314
  }
12288
12315
  });
12289
12316
  }
12290
- function L(P) {
12291
- console.log("333:value", P);
12292
- }
12293
12317
  function G() {
12294
- C.value ? _.value.kgHeight = l.value : _.value.kgHeight = c.value;
12318
+ T.value ? v.value.kgHeight = u.value : v.value.kgHeight = g.value;
12295
12319
  }
12296
12320
  return () => createVNode(KgResizable, {
12297
- kgHeight: _.value.kgHeight,
12298
- "onUpdate:kgHeight": (P) => _.value.kgHeight = P,
12299
- kgMinHeight: c.value,
12300
- kgMaxHeight: u.value,
12301
- class: O.value,
12302
- "kg-frm-id": r.formID
12321
+ kgHeight: v.value.kgHeight,
12322
+ "onUpdate:kgHeight": (N) => v.value.kgHeight = N,
12323
+ kgMinHeight: g.value,
12324
+ kgMaxHeight: c.value,
12325
+ class: D.value,
12326
+ "kg-frm-id": n.formID
12303
12327
  }, {
12304
- default: () => [E.value && createVNode("div", {
12328
+ default: () => [F.value && createVNode("div", {
12305
12329
  class: "ant-collapse ant-collapse-icon-position-left"
12306
12330
  }, [createVNode("div", {
12307
12331
  class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
12308
12332
  }, [createVNode(Teleport, {
12309
12333
  to: "#kg-search-header-teleport",
12310
- disabled: !i.value
12334
+ disabled: !l.value
12311
12335
  }, {
12312
12336
  default: () => [createVNode("div", {
12313
12337
  class: "ant-collapse-header"
12314
12338
  }, [createVNode(Spin, {
12315
- spinning: K.value
12339
+ spinning: R.value
12316
12340
  }, {
12317
- default: () => [$(), createVNode("div", {
12341
+ default: () => [I(), createVNode("div", {
12318
12342
  class: "ant-collapse-extra"
12319
- }, [M()])]
12343
+ }, [P()])]
12320
12344
  })])]
12321
12345
  }), createVNode("div", {
12322
12346
  class: "ant-collapse-content ant-collapse-content-active"
12323
12347
  }, [createVNode("div", {
12324
12348
  class: "ant-collapse-content-box"
12325
- }, [D()])])])])]
12349
+ }, [L()])])])])]
12326
12350
  });
12327
12351
  }
12328
12352
  });
@@ -12388,13 +12412,13 @@ function useMagicKeys(e = {}) {
12388
12412
  }
12389
12413
  function m(_, v) {
12390
12414
  var y, C;
12391
- const T = (y = _.key) == null ? void 0 : y.toLowerCase(), I = (C = _.code) == null ? void 0 : C.toLowerCase(), V = [I, T].filter(Boolean);
12392
- I && (v ? s.add(_.code) : s.delete(_.code));
12393
- for (const E of V)
12394
- c.add(E), g(E, v);
12395
- T === "meta" && !v ? (u.forEach((E) => {
12396
- s.delete(E), g(E, !1);
12397
- }), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...s, ...V].forEach((E) => u.add(E));
12415
+ const T = (y = _.key) == null ? void 0 : y.toLowerCase(), E = (C = _.code) == null ? void 0 : C.toLowerCase(), w = [E, T].filter(Boolean);
12416
+ E && (v ? s.add(_.code) : s.delete(_.code));
12417
+ for (const k of w)
12418
+ c.add(k), g(k, v);
12419
+ T === "meta" && !v ? (u.forEach((k) => {
12420
+ s.delete(k), g(k, !1);
12421
+ }), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...s, ...w].forEach((k) => u.add(k));
12398
12422
  }
12399
12423
  r && (useEventListener(r, "keydown", (_) => (m(_, !0), o(_)), { passive: a }), useEventListener(r, "keyup", (_) => (m(_, !1), o(_)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
12400
12424
  const b = new Proxy(l, {
@@ -12403,8 +12427,8 @@ function useMagicKeys(e = {}) {
12403
12427
  return Reflect.get(_, v, y);
12404
12428
  if (v = v.toLowerCase(), v in n && (v = n[v]), !(v in l))
12405
12429
  if (/[+_-]/.test(v)) {
12406
- const T = v.split(/[+_-]/g).map((I) => I.trim());
12407
- l[v] = computed(() => T.every((I) => unref(b[I])));
12430
+ const T = v.split(/[+_-]/g).map((E) => E.trim());
12431
+ l[v] = computed(() => T.every((E) => unref(b[E])));
12408
12432
  } else
12409
12433
  l[v] = ref(!1);
12410
12434
  const C = Reflect.get(_, v, y);
@@ -12793,112 +12817,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12793
12817
  columnWidth: 32,
12794
12818
  hideSelectAll: !0,
12795
12819
  selectedRowKeys: g,
12796
- onSelect: (k) => K(k)
12820
+ onSelect: (A) => F(A)
12797
12821
  }), m = ref({
12798
12822
  visible: !1
12799
12823
  }), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), _ = computed(() => {
12800
- var k;
12801
- return !!c.value || ((k = n.getSelectedVarCatalog) == null ? void 0 : k.cust_lvl) === KG_CUSTOM_LEVEL.L0;
12824
+ var A;
12825
+ return !!c.value || ((A = n.getSelectedVarCatalog) == null ? void 0 : A.cust_lvl) === KG_CUSTOM_LEVEL.L0;
12802
12826
  }), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), y = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
12803
- watch(() => n.getSelectedVar, (k) => {
12804
- k ? C() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
12827
+ watch(() => n.getSelectedVar, (A) => {
12828
+ A ? C() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
12805
12829
  }, {
12806
12830
  immediate: !0
12807
- }), watch(() => n.getSelectedVarCatalog, async (k) => {
12808
- var $, A;
12809
- l.value.var_text = ($ = k == null ? void 0 : k.var_text) != null ? $ : "", (A = i.value) == null || A.clearValidate();
12831
+ }), watch(() => n.getSelectedVarCatalog, async (A) => {
12832
+ var M, I;
12833
+ l.value.var_text = (M = A == null ? void 0 : A.var_text) != null ? M : "", (I = i.value) == null || I.clearValidate();
12810
12834
  });
12811
- async function C(k = !1) {
12812
- var $, A, M;
12835
+ async function C(A = !1) {
12836
+ var M, I, O;
12813
12837
  a.value = !0;
12814
12838
  try {
12815
12839
  const {
12816
- records: D
12840
+ records: P
12817
12841
  } = await List({
12818
12842
  params: {
12819
12843
  pageNo: 1,
12820
12844
  pageSize: 999,
12821
12845
  frm_id: e == null ? void 0 : e.value,
12822
- var_nam: ($ = n.getSelectedVar) == null ? void 0 : $.var_nam,
12846
+ var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
12823
12847
  column: "frm_id,locale_id,cust_lvl",
12824
12848
  order: "asc"
12825
12849
  }
12826
12850
  });
12827
- if (c.value = null, u.value = D != null ? D : [], k) {
12851
+ if (c.value = null, u.value = P != null ? P : [], A) {
12828
12852
  const L = u.value.find((G) => {
12829
- var P;
12830
- return G.id === ((P = n.getSelectedVarCatalog) == null ? void 0 : P.id);
12853
+ var N;
12854
+ return G.id === ((N = n.getSelectedVarCatalog) == null ? void 0 : N.id);
12831
12855
  });
12832
12856
  n.setSelectedVarCatalog(L != null ? L : null), g.value = L != null && L.id ? [L.id] : [];
12833
12857
  } else
12834
- n.setSelectedVarCatalog((A = u.value[0]) != null ? A : null), g.value = (M = u.value[0]) != null && M.id ? [u.value[0].id] : [];
12835
- } catch (D) {
12836
- Logger.debug(D == null ? void 0 : D.message);
12858
+ n.setSelectedVarCatalog((I = u.value[0]) != null ? I : null), g.value = (O = u.value[0]) != null && O.id ? [u.value[0].id] : [];
12859
+ } catch (P) {
12860
+ Logger.debug(P == null ? void 0 : P.message);
12837
12861
  } finally {
12838
12862
  a.value = !1;
12839
12863
  }
12840
12864
  }
12841
12865
  async function T() {
12842
- var k, $, A;
12866
+ var A, M, I;
12843
12867
  try {
12844
- o.value = !0, await ((k = i.value) == null ? void 0 : k.validate());
12845
- const M = new VarCatalog({
12846
- ...($ = n.getSelectedVarCatalog) != null ? $ : {},
12847
- var_text: (A = l.value) == null ? void 0 : A.var_text
12868
+ o.value = !0, await ((A = i.value) == null ? void 0 : A.validate());
12869
+ const O = new VarCatalog({
12870
+ ...(M = n.getSelectedVarCatalog) != null ? M : {},
12871
+ var_text: (I = l.value) == null ? void 0 : I.var_text
12848
12872
  });
12849
- M.id ? M.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (M.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(M, "id"), await Add({
12850
- data: M
12873
+ O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add({
12874
+ data: O
12851
12875
  }, {
12852
12876
  successMessageMode: "none"
12853
12877
  }), message.success({
12854
12878
  content: t.t("kg.KgVarConfig.createSuccess")
12855
12879
  }), await C()) : (await Edit({
12856
- data: M
12880
+ data: O
12857
12881
  }, {
12858
12882
  successMessageMode: "none"
12859
12883
  }), message.success({
12860
12884
  content: t.t("kg.KgVarConfig.saveSuccess")
12861
12885
  }), await C(!0)) : (await Add({
12862
- data: M
12886
+ data: O
12863
12887
  }, {
12864
12888
  successMessageMode: "none"
12865
12889
  }), message.success({
12866
12890
  content: t.t("kg.KgVarConfig.createSuccess")
12867
12891
  }), await C()), r.retrieve(e == null ? void 0 : e.value);
12868
- } catch (M) {
12869
- KgUtil.throwIfNotFormError(M);
12892
+ } catch (O) {
12893
+ KgUtil.throwIfNotFormError(O);
12870
12894
  } finally {
12871
12895
  o.value = !1;
12872
12896
  }
12873
12897
  }
12874
- function I({
12875
- isAllForm: k,
12876
- isAllLanguage: $
12898
+ function E({
12899
+ isAllForm: A,
12900
+ isAllLanguage: M
12877
12901
  }) {
12878
- var A, M, D;
12902
+ var I, O, P;
12879
12903
  c.value = new VarCatalog({
12880
12904
  id: "",
12881
12905
  cust_lvl: KG_CUSTOM_LEVEL.L10,
12882
- grp_nam: (A = n.getSelectedVar) == null ? void 0 : A.grp_nam,
12883
- var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
12884
- frm_id: k || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
12885
- locale_id: $ ? "ALL" : (D = t.locale) == null ? void 0 : D.value,
12906
+ grp_nam: (I = n.getSelectedVar) == null ? void 0 : I.grp_nam,
12907
+ var_nam: (O = n.getSelectedVar) == null ? void 0 : O.var_nam,
12908
+ frm_id: A || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
12909
+ locale_id: M ? "ALL" : (P = t.locale) == null ? void 0 : P.value,
12886
12910
  var_text: ""
12887
12911
  }), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
12888
12912
  }
12889
- function V() {
12890
- var $;
12913
+ function w() {
12914
+ var M;
12891
12915
  u.value = without$1(u.value, c.value), c.value = null;
12892
- const k = ($ = u.value[0]) != null ? $ : null;
12893
- n.setSelectedVarCatalog(k), g.value = k ? [k.id] : [];
12916
+ const A = (M = u.value[0]) != null ? M : null;
12917
+ n.setSelectedVarCatalog(A), g.value = A ? [A.id] : [];
12894
12918
  }
12895
- function E() {
12919
+ function k() {
12896
12920
  KgUtil.confirm({
12897
12921
  onOk: async () => {
12898
- var k;
12922
+ var A;
12899
12923
  await Delete({
12900
12924
  params: {
12901
- id: (k = n.getSelectedVarCatalog) == null ? void 0 : k.id
12925
+ id: (A = n.getSelectedVarCatalog) == null ? void 0 : A.id
12902
12926
  }
12903
12927
  }, {
12904
12928
  successMessageMode: "none",
@@ -12909,29 +12933,29 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12909
12933
  }
12910
12934
  });
12911
12935
  }
12912
- function K(k) {
12913
- var $;
12914
- (($ = n.getSelectedVarCatalog) == null ? void 0 : $.id) !== k.id && (unref(c) ? KgUtil.confirm({
12936
+ function F(A) {
12937
+ var M;
12938
+ ((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) !== A.id && (unref(c) ? KgUtil.confirm({
12915
12939
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
12916
12940
  onOk: () => {
12917
- u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(k)), g.value = [k.id];
12941
+ u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(A)), g.value = [A.id];
12918
12942
  }
12919
- }) : (n.setSelectedVarCatalog(unref(k)), g.value = [k.id]));
12943
+ }) : (n.setSelectedVarCatalog(unref(A)), g.value = [A.id]));
12920
12944
  }
12921
- function F() {
12945
+ function R() {
12922
12946
  m.value.visible = !0;
12923
12947
  }
12924
- function O() {
12948
+ function $() {
12925
12949
  return createVNode("div", {
12926
12950
  class: "buttons"
12927
12951
  }, [createVNode(Button, {
12928
- onClick: F,
12952
+ onClick: R,
12929
12953
  disabled: b.value,
12930
12954
  type: "primary"
12931
12955
  }, {
12932
12956
  default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
12933
12957
  }), createVNode(Button, {
12934
- onClick: E,
12958
+ onClick: k,
12935
12959
  disabled: _.value,
12936
12960
  ghost: !_.value,
12937
12961
  type: "primary",
@@ -12940,8 +12964,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12940
12964
  default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
12941
12965
  })]);
12942
12966
  }
12943
- function w() {
12944
- let k, $;
12967
+ function D() {
12968
+ let A, M;
12945
12969
  return createVNode("div", {
12946
12970
  class: "form"
12947
12971
  }, [createVNode(Form, {
@@ -12958,7 +12982,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12958
12982
  }, {
12959
12983
  default: () => [createVNode(Textarea, {
12960
12984
  value: l.value.var_text,
12961
- "onUpdate:value": (A) => l.value.var_text = A,
12985
+ "onUpdate:value": (I) => l.value.var_text = I,
12962
12986
  disabled: !n.getSelectedVarCatalog
12963
12987
  }, null), createVNode("button", {
12964
12988
  hidden: !0
@@ -12968,26 +12992,26 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12968
12992
  class: "buttons"
12969
12993
  }, [createVNode(Button, {
12970
12994
  disabled: v.value,
12971
- onClick: V
12972
- }, _isSlot(k = t.t("common.cancelText")) ? k : {
12973
- default: () => [k]
12995
+ onClick: w
12996
+ }, _isSlot(A = t.t("common.cancelText")) ? A : {
12997
+ default: () => [A]
12974
12998
  }), createVNode(Button, {
12975
12999
  loading: o.value,
12976
13000
  disabled: y.value,
12977
13001
  onClick: T,
12978
13002
  type: "primary"
12979
- }, _isSlot($ = t.t("common.save")) ? $ : {
12980
- default: () => [$]
13003
+ }, _isSlot(M = t.t("common.save")) ? M : {
13004
+ default: () => [M]
12981
13005
  })])]);
12982
13006
  }
12983
- function R(k) {
12984
- var A;
12985
- let $ = "";
12986
- return k.id || ($ += " ant-table-row-create"), k.id === ((A = n.getSelectedVarCatalog) == null ? void 0 : A.id) && ($ += " ant-table-row-selected "), $;
13007
+ function U(A) {
13008
+ var I;
13009
+ let M = "";
13010
+ return A.id || (M += " ant-table-row-create"), A.id === ((I = n.getSelectedVarCatalog) == null ? void 0 : I.id) && (M += " ant-table-row-selected "), M;
12987
13011
  }
12988
13012
  return () => createVNode("div", {
12989
13013
  class: "kg-var-config-modal-var-var-catalog"
12990
- }, [O(), createVNode(Table, {
13014
+ }, [$(), createVNode(Table, {
12991
13015
  pagination: !1,
12992
13016
  class: "kg-flex-table",
12993
13017
  size: "small",
@@ -12999,15 +13023,15 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12999
13023
  rowKey: "id",
13000
13024
  dataSource: u.value,
13001
13025
  loading: a.value,
13002
- rowClassName: R,
13026
+ rowClassName: U,
13003
13027
  rowSelection: p.value,
13004
- customRow: (k) => ({
13005
- onClick: () => K(k)
13028
+ customRow: (A) => ({
13029
+ onClick: () => F(A)
13006
13030
  })
13007
- }, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
13031
+ }, null), D(), createVNode(KgVarConfigModalVarCreateModal, {
13008
13032
  visible: m.value.visible,
13009
- "onUpdate:visible": (k) => m.value.visible = k,
13010
- onKgOk: I
13033
+ "onUpdate:visible": (A) => m.value.visible = A,
13034
+ onKgOk: E
13011
13035
  }, null)]);
13012
13036
  }
13013
13037
  }), columns = () => [{
@@ -13316,16 +13340,16 @@ const KgWarehouse$1 = "", getProps = () => ({
13316
13340
  emit: t
13317
13341
  }) {
13318
13342
  const r = useKg(), n = useKgWarehouse(), a = computed(() => {
13319
- let I = "jeecg-layout-header-action__item kg-warehouse";
13320
- return (!p.value || e.kgInvisible) && (I += " kg-warehouse--invisible"), I;
13343
+ let E = "jeecg-layout-header-action__item kg-warehouse";
13344
+ return (!p.value || e.kgInvisible) && (E += " kg-warehouse--invisible"), E;
13321
13345
  }), o = ref(""), s = n.warehouse, i = ref(null), l = ref(!1), u = reactive([{
13322
13346
  width: 80,
13323
13347
  align: "center",
13324
13348
  customRender: ({
13325
- record: I
13349
+ record: E
13326
13350
  }) => {
13327
- var E;
13328
- return I.id === ((E = i.value) == null ? void 0 : E.id) ? createVNode("img", {
13351
+ var k;
13352
+ return E.id === ((k = i.value) == null ? void 0 : k.id) ? createVNode("img", {
13329
13353
  src: WAREHOUSE_1890ff
13330
13354
  }, null) : createVNode("img", {
13331
13355
  src: WAREHOUSE_000000
@@ -13333,27 +13357,27 @@ const KgWarehouse$1 = "", getProps = () => ({
13333
13357
  }
13334
13358
  }, {
13335
13359
  customRender: ({
13336
- record: I
13360
+ record: E
13337
13361
  }) => {
13338
- var E, K, F;
13339
- const V = I;
13340
- return createVNode("div", null, [createVNode("div", null, [(E = V.whDsc) != null ? E : " ", createTextVNode(" - "), (K = V.whId) != null ? K : " "]), createVNode("div", {
13362
+ var k, F, R;
13363
+ const w = E;
13364
+ return createVNode("div", null, [createVNode("div", null, [(k = w.whDsc) != null ? k : " ", createTextVNode(" - "), (F = w.whId) != null ? F : " "]), createVNode("div", {
13341
13365
  class: "address"
13342
- }, [(F = V.adrId) != null ? F : " "])]);
13366
+ }, [(R = w.adrId) != null ? R : " "])]);
13343
13367
  }
13344
13368
  }]), c = ref([]), g = computed(() => {
13345
- var V;
13346
- const I = (V = o.value) == null ? void 0 : V.toUpperCase();
13347
- return c.value.filter((E) => {
13348
- var K, F, O, w, R, k;
13349
- return ((F = (K = E.whDsc) == null ? void 0 : K.toUpperCase()) == null ? void 0 : F.includes(I)) || ((w = (O = E.whId) == null ? void 0 : O.toUpperCase()) == null ? void 0 : w.includes(I)) || ((k = (R = E.adrId) == null ? void 0 : R.toUpperCase()) == null ? void 0 : k.includes(I));
13369
+ var w;
13370
+ const E = (w = o.value) == null ? void 0 : w.toUpperCase();
13371
+ return c.value.filter((k) => {
13372
+ var F, R, $, D, U, A;
13373
+ return ((R = (F = k.whDsc) == null ? void 0 : F.toUpperCase()) == null ? void 0 : R.includes(E)) || ((D = ($ = k.whId) == null ? void 0 : $.toUpperCase()) == null ? void 0 : D.includes(E)) || ((A = (U = k.adrId) == null ? void 0 : U.toUpperCase()) == null ? void 0 : A.includes(E));
13350
13374
  });
13351
13375
  }), p = computed(() => {
13352
- var I, V;
13353
- return ((V = (I = r.option.value) == null ? void 0 : I.KgWarehouse) == null ? void 0 : V.enable) !== !1;
13376
+ var E, w;
13377
+ return ((w = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : w.enable) !== !1;
13354
13378
  });
13355
- watch(n.visible, (I) => {
13356
- !p.value || (I ? b() : _());
13379
+ watch(n.visible, (E) => {
13380
+ !p.value || (E ? b() : _());
13357
13381
  }, {
13358
13382
  immediate: !0
13359
13383
  }), onMounted(() => {
@@ -13369,8 +13393,8 @@ const KgWarehouse$1 = "", getProps = () => ({
13369
13393
  o.value = "", c.value = [], i.value = null;
13370
13394
  }
13371
13395
  function v() {
13372
- var I;
13373
- !i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((I = n.warehouse.value) == null ? void 0 : I.id) && (n.store.setWarehouse(i.value), KgUtil.confirm({
13396
+ var E;
13397
+ !i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((E = n.warehouse.value) == null ? void 0 : E.id) && (n.store.setWarehouse(i.value), KgUtil.confirm({
13374
13398
  content: r.t("kg.KgWarehouse.reloadMessage"),
13375
13399
  kgHideCancelButton: !0,
13376
13400
  okButtonProps: {
@@ -13386,28 +13410,28 @@ const KgWarehouse$1 = "", getProps = () => ({
13386
13410
  l.value = !0;
13387
13411
  try {
13388
13412
  const {
13389
- records: I
13413
+ records: E
13390
13414
  } = await ListVO({
13391
13415
  params: {
13392
13416
  pageNo: 1,
13393
13417
  pageSize: 999
13394
13418
  }
13395
13419
  });
13396
- c.value = I != null ? I : [];
13397
- } catch (I) {
13398
- console.error(I);
13420
+ c.value = E != null ? E : [];
13421
+ } catch (E) {
13422
+ console.error(E);
13399
13423
  } finally {
13400
13424
  l.value = !1;
13401
13425
  }
13402
13426
  }
13403
- function C(I, V) {
13404
- var E;
13405
- switch (I.detail) {
13427
+ function C(E, w) {
13428
+ var k;
13429
+ switch (E.detail) {
13406
13430
  case 1:
13407
- ((E = i.value) == null ? void 0 : E.id) === V.id ? i.value = null : i.value = V;
13431
+ ((k = i.value) == null ? void 0 : k.id) === w.id ? i.value = null : i.value = w;
13408
13432
  break;
13409
13433
  case 2:
13410
- i.value = V, v();
13434
+ i.value = w, v();
13411
13435
  break;
13412
13436
  }
13413
13437
  }
@@ -13417,12 +13441,12 @@ const KgWarehouse$1 = "", getProps = () => ({
13417
13441
  placement: "bottomRight"
13418
13442
  }, {
13419
13443
  default: () => {
13420
- var I, V;
13421
- return [((I = s.value) == null ? void 0 : I.whDsc) || ((V = s.value) == null ? void 0 : V.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
13444
+ var E, w;
13445
+ return [((E = s.value) == null ? void 0 : E.whDsc) || ((w = s.value) == null ? void 0 : w.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
13422
13446
  }
13423
13447
  }), createVNode(KgModal, {
13424
13448
  visible: n.visible.value,
13425
- "onUpdate:visible": (I) => n.store.setVisible(I),
13449
+ "onUpdate:visible": (E) => n.store.setVisible(E),
13426
13450
  title: r.t("kg.KgWarehouse.title"),
13427
13451
  width: "500px",
13428
13452
  kgFullHeight: !1,
@@ -13439,7 +13463,7 @@ const KgWarehouse$1 = "", getProps = () => ({
13439
13463
  }, {
13440
13464
  default: () => [createVNode(Input, {
13441
13465
  value: o.value,
13442
- "onUpdate:value": (I) => o.value = I,
13466
+ "onUpdate:value": (E) => o.value = E,
13443
13467
  allowClear: !0,
13444
13468
  disabled: l.value,
13445
13469
  placeholder: r.t("kg.search")
@@ -13459,11 +13483,11 @@ const KgWarehouse$1 = "", getProps = () => ({
13459
13483
  dataSource: g.value,
13460
13484
  columns: u,
13461
13485
  class: "kg-flex-table",
13462
- customRow: (I) => {
13463
- var V;
13486
+ customRow: (E) => {
13487
+ var w;
13464
13488
  return {
13465
- class: I.id === ((V = i.value) == null ? void 0 : V.id) ? "selected" : "",
13466
- onClick: (E) => C(E, I)
13489
+ class: E.id === ((w = i.value) == null ? void 0 : w.id) ? "selected" : "",
13490
+ onClick: (k) => C(k, E)
13467
13491
  };
13468
13492
  }
13469
13493
  }, null)]
@@ -13506,6 +13530,7 @@ export {
13506
13530
  DEFAULT_MAX_WIDTH,
13507
13531
  DEFAULT_MIN_WIDTH,
13508
13532
  DEFAULT_WIDTH,
13533
+ DI_KG_SLOTS,
13509
13534
  DomUtil,
13510
13535
  I18N,
13511
13536
  IPage,