@kengic/vue 0.6.13 → 0.6.15

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.
@@ -3932,16 +3932,16 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3932
3932
  var O = ["th", "st", "nd", "rd"], D = V % 100;
3933
3933
  return "[" + V + (O[(D - 20) % 10] || O[D] || O[0]) + "]";
3934
3934
  } }, k = function(V, O, D) {
3935
- var K = String(V);
3936
- return !K || K.length >= O ? V : "" + Array(O + 1 - K.length).join(D) + V;
3935
+ var N = String(V);
3936
+ return !N || N.length >= O ? V : "" + Array(O + 1 - N.length).join(D) + V;
3937
3937
  }, T = { s: k, z: function(V) {
3938
- var O = -V.utcOffset(), D = Math.abs(O), K = Math.floor(D / 60), L = D % 60;
3939
- return (O <= 0 ? "+" : "-") + k(K, 2, "0") + ":" + k(L, 2, "0");
3938
+ var O = -V.utcOffset(), D = Math.abs(O), N = Math.floor(D / 60), L = D % 60;
3939
+ return (O <= 0 ? "+" : "-") + k(N, 2, "0") + ":" + k(L, 2, "0");
3940
3940
  }, m: function V(O, D) {
3941
3941
  if (O.date() < D.date())
3942
3942
  return -V(D, O);
3943
- var K = 12 * (D.year() - O.year()) + (D.month() - O.month()), L = O.clone().add(K, d), N = D - L < 0, B = O.clone().add(K + (N ? -1 : 1), d);
3944
- return +(-(K + (D - L) / (N ? L - B : B - L)) || 0);
3943
+ var N = 12 * (D.year() - O.year()) + (D.month() - O.month()), L = O.clone().add(N, d), H = D - L < 0, K = O.clone().add(N + (H ? -1 : 1), d);
3944
+ return +(-(N + (D - L) / (H ? L - K : K - L)) || 0);
3945
3945
  }, a: function(V) {
3946
3946
  return V < 0 ? Math.ceil(V) || 0 : Math.floor(V);
3947
3947
  }, p: function(V) {
@@ -3951,39 +3951,39 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3951
3951
  } }, M = "en", E = {};
3952
3952
  E[M] = y;
3953
3953
  var P = function(V) {
3954
- return V instanceof G;
3955
- }, I = function V(O, D, K) {
3954
+ return V instanceof U;
3955
+ }, I = function V(O, D, N) {
3956
3956
  var L;
3957
3957
  if (!O)
3958
3958
  return M;
3959
3959
  if (typeof O == "string") {
3960
- var N = O.toLowerCase();
3961
- E[N] && (L = N), D && (E[N] = D, L = N);
3962
- var B = O.split("-");
3963
- if (!L && B.length > 1)
3964
- return V(B[0]);
3960
+ var H = O.toLowerCase();
3961
+ E[H] && (L = H), D && (E[H] = D, L = H);
3962
+ var K = O.split("-");
3963
+ if (!L && K.length > 1)
3964
+ return V(K[0]);
3965
3965
  } else {
3966
- var H = O.name;
3967
- E[H] = O, L = H;
3966
+ var G = O.name;
3967
+ E[G] = O, L = G;
3968
3968
  }
3969
- return !K && L && (M = L), L || !K && M;
3969
+ return !N && L && (M = L), L || !N && M;
3970
3970
  }, A = function(V, O) {
3971
3971
  if (P(V))
3972
3972
  return V.clone();
3973
3973
  var D = typeof O == "object" ? O : {};
3974
- return D.date = V, D.args = arguments, new G(D);
3974
+ return D.date = V, D.args = arguments, new U(D);
3975
3975
  }, w = T;
3976
3976
  w.l = I, w.i = P, w.w = function(V, O) {
3977
3977
  return A(V, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
3978
3978
  };
3979
- var G = function() {
3979
+ var U = function() {
3980
3980
  function V(D) {
3981
3981
  this.$L = I(D.locale, null, !0), this.parse(D);
3982
3982
  }
3983
3983
  var O = V.prototype;
3984
3984
  return O.parse = function(D) {
3985
- this.$d = function(K) {
3986
- var L = K.date, N = K.utc;
3985
+ this.$d = function(N) {
3986
+ var L = N.date, H = N.utc;
3987
3987
  if (L === null)
3988
3988
  return new Date(NaN);
3989
3989
  if (w.u(L))
@@ -3991,10 +3991,10 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3991
3991
  if (L instanceof Date)
3992
3992
  return new Date(L);
3993
3993
  if (typeof L == "string" && !/Z$/i.test(L)) {
3994
- var B = L.match(_);
3995
- if (B) {
3996
- var H = B[2] - 1 || 0, Y = (B[7] || "0").substring(0, 3);
3997
- return N ? new Date(Date.UTC(B[1], H, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, Y)) : new Date(B[1], H, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, Y);
3994
+ var K = L.match(_);
3995
+ if (K) {
3996
+ var G = K[2] - 1 || 0, Y = (K[7] || "0").substring(0, 3);
3997
+ return H ? new Date(Date.UTC(K[1], G, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, Y)) : new Date(K[1], G, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, Y);
3998
3998
  }
3999
3999
  }
4000
4000
  return new Date(L);
@@ -4006,108 +4006,108 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4006
4006
  return w;
4007
4007
  }, O.isValid = function() {
4008
4008
  return this.$d.toString() !== g;
4009
- }, O.isSame = function(D, K) {
4009
+ }, O.isSame = function(D, N) {
4010
4010
  var L = A(D);
4011
- return this.startOf(K) <= L && L <= this.endOf(K);
4012
- }, O.isAfter = function(D, K) {
4013
- return A(D) < this.startOf(K);
4014
- }, O.isBefore = function(D, K) {
4015
- return this.endOf(K) < A(D);
4016
- }, O.$g = function(D, K, L) {
4017
- return w.u(D) ? this[K] : this.set(L, D);
4011
+ return this.startOf(N) <= L && L <= this.endOf(N);
4012
+ }, O.isAfter = function(D, N) {
4013
+ return A(D) < this.startOf(N);
4014
+ }, O.isBefore = function(D, N) {
4015
+ return this.endOf(N) < A(D);
4016
+ }, O.$g = function(D, N, L) {
4017
+ return w.u(D) ? this[N] : this.set(L, D);
4018
4018
  }, O.unix = function() {
4019
4019
  return Math.floor(this.valueOf() / 1e3);
4020
4020
  }, O.valueOf = function() {
4021
4021
  return this.$d.getTime();
4022
- }, O.startOf = function(D, K) {
4023
- var L = this, N = !!w.u(K) || K, B = w.p(D), H = function(ce, re) {
4024
- var ue = w.w(L.$u ? Date.UTC(L.$y, re, ce) : new Date(L.$y, re, ce), L);
4025
- return N ? ue : ue.endOf(c);
4026
- }, Y = function(ce, re) {
4027
- return w.w(L.toDate()[ce].apply(L.toDate("s"), (N ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(re)), L);
4028
- }, X = this.$W, Q = this.$M, Z = this.$D, ae = "set" + (this.$u ? "UTC" : "");
4029
- switch (B) {
4022
+ }, O.startOf = function(D, N) {
4023
+ var L = this, H = !!w.u(N) || N, K = w.p(D), G = function(ce, ae) {
4024
+ var ue = w.w(L.$u ? Date.UTC(L.$y, ae, ce) : new Date(L.$y, ae, ce), L);
4025
+ return H ? ue : ue.endOf(c);
4026
+ }, Y = function(ce, ae) {
4027
+ return w.w(L.toDate()[ce].apply(L.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), L);
4028
+ }, Q = this.$W, q = this.$M, te = this.$D, re = "set" + (this.$u ? "UTC" : "");
4029
+ switch (K) {
4030
4030
  case v:
4031
- return N ? H(1, 0) : H(31, 11);
4031
+ return H ? G(1, 0) : G(31, 11);
4032
4032
  case d:
4033
- return N ? H(1, Q) : H(0, Q + 1);
4033
+ return H ? G(1, q) : G(0, q + 1);
4034
4034
  case u:
4035
- var ne = this.$locale().weekStart || 0, le = (X < ne ? X + 7 : X) - ne;
4036
- return H(N ? Z - le : Z + (6 - le), Q);
4035
+ var ne = this.$locale().weekStart || 0, le = (Q < ne ? Q + 7 : Q) - ne;
4036
+ return G(H ? te - le : te + (6 - le), q);
4037
4037
  case c:
4038
4038
  case C:
4039
- return Y(ae + "Hours", 0);
4039
+ return Y(re + "Hours", 0);
4040
4040
  case l:
4041
- return Y(ae + "Minutes", 1);
4041
+ return Y(re + "Minutes", 1);
4042
4042
  case s:
4043
- return Y(ae + "Seconds", 2);
4043
+ return Y(re + "Seconds", 2);
4044
4044
  case i:
4045
- return Y(ae + "Milliseconds", 3);
4045
+ return Y(re + "Milliseconds", 3);
4046
4046
  default:
4047
4047
  return this.clone();
4048
4048
  }
4049
4049
  }, O.endOf = function(D) {
4050
4050
  return this.startOf(D, !1);
4051
- }, O.$set = function(D, K) {
4052
- var L, N = w.p(D), B = "set" + (this.$u ? "UTC" : ""), H = (L = {}, L[c] = B + "Date", L[C] = B + "Date", L[d] = B + "Month", L[v] = B + "FullYear", L[l] = B + "Hours", L[s] = B + "Minutes", L[i] = B + "Seconds", L[o] = B + "Milliseconds", L)[N], Y = N === c ? this.$D + (K - this.$W) : K;
4053
- if (N === d || N === v) {
4054
- var X = this.clone().set(C, 1);
4055
- X.$d[H](Y), X.init(), this.$d = X.set(C, Math.min(this.$D, X.daysInMonth())).$d;
4051
+ }, O.$set = function(D, N) {
4052
+ var L, H = w.p(D), K = "set" + (this.$u ? "UTC" : ""), G = (L = {}, L[c] = K + "Date", L[C] = K + "Date", L[d] = K + "Month", L[v] = K + "FullYear", L[l] = K + "Hours", L[s] = K + "Minutes", L[i] = K + "Seconds", L[o] = K + "Milliseconds", L)[H], Y = H === c ? this.$D + (N - this.$W) : N;
4053
+ if (H === d || H === v) {
4054
+ var Q = this.clone().set(C, 1);
4055
+ Q.$d[G](Y), Q.init(), this.$d = Q.set(C, Math.min(this.$D, Q.daysInMonth())).$d;
4056
4056
  } else
4057
- H && this.$d[H](Y);
4057
+ G && this.$d[G](Y);
4058
4058
  return this.init(), this;
4059
- }, O.set = function(D, K) {
4060
- return this.clone().$set(D, K);
4059
+ }, O.set = function(D, N) {
4060
+ return this.clone().$set(D, N);
4061
4061
  }, O.get = function(D) {
4062
4062
  return this[w.p(D)]();
4063
- }, O.add = function(D, K) {
4064
- var L, N = this;
4063
+ }, O.add = function(D, N) {
4064
+ var L, H = this;
4065
4065
  D = Number(D);
4066
- var B = w.p(K), H = function(Q) {
4067
- var Z = A(N);
4068
- return w.w(Z.date(Z.date() + Math.round(Q * D)), N);
4066
+ var K = w.p(N), G = function(q) {
4067
+ var te = A(H);
4068
+ return w.w(te.date(te.date() + Math.round(q * D)), H);
4069
4069
  };
4070
- if (B === d)
4070
+ if (K === d)
4071
4071
  return this.set(d, this.$M + D);
4072
- if (B === v)
4072
+ if (K === v)
4073
4073
  return this.set(v, this.$y + D);
4074
- if (B === c)
4075
- return H(1);
4076
- if (B === u)
4077
- return H(7);
4078
- var Y = (L = {}, L[s] = a, L[l] = n, L[i] = r, L)[B] || 1, X = this.$d.getTime() + D * Y;
4079
- return w.w(X, this);
4080
- }, O.subtract = function(D, K) {
4081
- return this.add(-1 * D, K);
4074
+ if (K === c)
4075
+ return G(1);
4076
+ if (K === u)
4077
+ return G(7);
4078
+ var Y = (L = {}, L[s] = a, L[l] = n, L[i] = r, L)[K] || 1, Q = this.$d.getTime() + D * Y;
4079
+ return w.w(Q, this);
4080
+ }, O.subtract = function(D, N) {
4081
+ return this.add(-1 * D, N);
4082
4082
  }, O.format = function(D) {
4083
- var K = this, L = this.$locale();
4083
+ var N = this, L = this.$locale();
4084
4084
  if (!this.isValid())
4085
4085
  return L.invalidDate || g;
4086
- var N = D || "YYYY-MM-DDTHH:mm:ssZ", B = w.z(this), H = this.$H, Y = this.$m, X = this.$M, Q = L.weekdays, Z = L.months, ae = function(re, ue, fe, de) {
4087
- return re && (re[ue] || re(K, N)) || fe[ue].slice(0, de);
4088
- }, ne = function(re) {
4089
- return w.s(H % 12 || 12, re, "0");
4090
- }, le = L.meridiem || function(re, ue, fe) {
4091
- var de = re < 12 ? "AM" : "PM";
4086
+ var H = D || "YYYY-MM-DDTHH:mm:ssZ", K = w.z(this), G = this.$H, Y = this.$m, Q = this.$M, q = L.weekdays, te = L.months, re = function(ae, ue, fe, de) {
4087
+ return ae && (ae[ue] || ae(N, H)) || fe[ue].slice(0, de);
4088
+ }, ne = function(ae) {
4089
+ return w.s(G % 12 || 12, ae, "0");
4090
+ }, le = L.meridiem || function(ae, ue, fe) {
4091
+ var de = ae < 12 ? "AM" : "PM";
4092
4092
  return fe ? de.toLowerCase() : de;
4093
- }, ce = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: X + 1, MM: w.s(X + 1, 2, "0"), MMM: ae(L.monthsShort, X, Z, 3), MMMM: ae(Z, X), D: this.$D, DD: w.s(this.$D, 2, "0"), d: String(this.$W), dd: ae(L.weekdaysMin, this.$W, Q, 2), ddd: ae(L.weekdaysShort, this.$W, Q, 3), dddd: Q[this.$W], H: String(H), HH: w.s(H, 2, "0"), h: ne(1), hh: ne(2), a: le(H, Y, !0), A: le(H, Y, !1), m: String(Y), mm: w.s(Y, 2, "0"), s: String(this.$s), ss: w.s(this.$s, 2, "0"), SSS: w.s(this.$ms, 3, "0"), Z: B };
4094
- return N.replace(b, function(re, ue) {
4095
- return ue || ce[re] || B.replace(":", "");
4093
+ }, ce = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Q + 1, MM: w.s(Q + 1, 2, "0"), MMM: re(L.monthsShort, Q, te, 3), MMMM: re(te, Q), D: this.$D, DD: w.s(this.$D, 2, "0"), d: String(this.$W), dd: re(L.weekdaysMin, this.$W, q, 2), ddd: re(L.weekdaysShort, this.$W, q, 3), dddd: q[this.$W], H: String(G), HH: w.s(G, 2, "0"), h: ne(1), hh: ne(2), a: le(G, Y, !0), A: le(G, Y, !1), m: String(Y), mm: w.s(Y, 2, "0"), s: String(this.$s), ss: w.s(this.$s, 2, "0"), SSS: w.s(this.$ms, 3, "0"), Z: K };
4094
+ return H.replace(b, function(ae, ue) {
4095
+ return ue || ce[ae] || K.replace(":", "");
4096
4096
  });
4097
4097
  }, O.utcOffset = function() {
4098
4098
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4099
- }, O.diff = function(D, K, L) {
4100
- var N, B = w.p(K), H = A(D), Y = (H.utcOffset() - this.utcOffset()) * a, X = this - H, Q = w.m(this, H);
4101
- return Q = (N = {}, N[v] = Q / 12, N[d] = Q, N[m] = Q / 3, N[u] = (X - Y) / 6048e5, N[c] = (X - Y) / 864e5, N[l] = X / n, N[s] = X / a, N[i] = X / r, N)[B] || X, L ? Q : w.a(Q);
4099
+ }, O.diff = function(D, N, L) {
4100
+ var H, K = w.p(N), G = A(D), Y = (G.utcOffset() - this.utcOffset()) * a, Q = this - G, q = w.m(this, G);
4101
+ return q = (H = {}, H[v] = q / 12, H[d] = q, H[m] = q / 3, H[u] = (Q - Y) / 6048e5, H[c] = (Q - Y) / 864e5, H[l] = Q / n, H[s] = Q / a, H[i] = Q / r, H)[K] || Q, L ? q : w.a(q);
4102
4102
  }, O.daysInMonth = function() {
4103
4103
  return this.endOf(d).$D;
4104
4104
  }, O.$locale = function() {
4105
4105
  return E[this.$L];
4106
- }, O.locale = function(D, K) {
4106
+ }, O.locale = function(D, N) {
4107
4107
  if (!D)
4108
4108
  return this.$L;
4109
- var L = this.clone(), N = I(D, K, !0);
4110
- return N && (L.$L = N), L;
4109
+ var L = this.clone(), H = I(D, N, !0);
4110
+ return H && (L.$L = H), L;
4111
4111
  }, O.clone = function() {
4112
4112
  return w.w(this.$d, this);
4113
4113
  }, O.toDate = function() {
@@ -4119,13 +4119,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4119
4119
  }, O.toString = function() {
4120
4120
  return this.$d.toUTCString();
4121
4121
  }, V;
4122
- }(), $ = G.prototype;
4122
+ }(), $ = U.prototype;
4123
4123
  return A.prototype = $, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", c], ["$M", d], ["$y", v], ["$D", C]].forEach(function(V) {
4124
4124
  $[V[1]] = function(O) {
4125
4125
  return this.$g(O, V[0], V[1]);
4126
4126
  };
4127
4127
  }), A.extend = function(V, O) {
4128
- return V.$i || (V(O, G, A), V.$i = !0), A;
4128
+ return V.$i || (V(O, U, A), V.$i = !0), A;
4129
4129
  }, A.locale = I, A.isDayjs = P, A.unix = function(V) {
4130
4130
  return A(1e3 * V);
4131
4131
  }, A.en = E[M], A.Ls = E, A.p = {}, A;
@@ -4190,8 +4190,8 @@ function filesize(e, {
4190
4190
  k[0] = A(T * w) / w, k[0] === E && b < 8 && C === -1 && (k[0] = 1, b++), M = k[1] = a === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][b];
4191
4191
  }
4192
4192
  if (I && (k[0] = -k[0]), _ > 0 && (k[0] = k[0].toPrecision(_)), k[1] = c[k[1]] || k[1], o === !0 ? k[0] = k[0].toLocaleString() : o.length > 0 ? k[0] = k[0].toLocaleString(o, i) : s.length > 0 && (k[0] = k[0].toString().replace(PERIOD, s)), r && Number.isInteger(k[0]) === !1 && n > 0) {
4193
- const w = s || PERIOD, G = k[0].toString().split(w), $ = G[1] || EMPTY, V = $.length, O = n - V;
4194
- k[0] = `${G[0]}${w}${$.padEnd(V + O, ZERO)}`;
4193
+ const w = s || PERIOD, U = k[0].toString().split(w), $ = U[1] || EMPTY, V = $.length, O = n - V;
4194
+ k[0] = `${U[0]}${w}${$.padEnd(V + O, ZERO)}`;
4195
4195
  }
4196
4196
  return P && (k[1] = v[b] ? v[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (k[0] === 1 ? EMPTY : S)), d === ARRAY ? k : d === OBJECT ? {
4197
4197
  value: k[0],
@@ -6672,12 +6672,12 @@ function createSetupStore(e, t, r = {}, a, n) {
6672
6672
  function k(I, A) {
6673
6673
  return function() {
6674
6674
  setActivePinia(a);
6675
- const w = Array.from(arguments), G = [], $ = [];
6676
- function V(K) {
6677
- G.push(K);
6675
+ const w = Array.from(arguments), U = [], $ = [];
6676
+ function V(N) {
6677
+ U.push(N);
6678
6678
  }
6679
- function O(K) {
6680
- $.push(K);
6679
+ function O(N) {
6680
+ $.push(N);
6681
6681
  }
6682
6682
  triggerSubscriptions(m, {
6683
6683
  args: w,
@@ -6689,10 +6689,10 @@ function createSetupStore(e, t, r = {}, a, n) {
6689
6689
  let D;
6690
6690
  try {
6691
6691
  D = A.apply(this && this.$id === e ? this : E, w);
6692
- } catch (K) {
6693
- throw triggerSubscriptions($, K), K;
6692
+ } catch (N) {
6693
+ throw triggerSubscriptions($, N), N;
6694
6694
  }
6695
- return D instanceof Promise ? D.then((K) => (triggerSubscriptions(G, K), K)).catch((K) => (triggerSubscriptions($, K), Promise.reject(K))) : (triggerSubscriptions(G, D), D);
6695
+ return D instanceof Promise ? D.then((N) => (triggerSubscriptions(U, N), N)).catch((N) => (triggerSubscriptions($, N), Promise.reject(N))) : (triggerSubscriptions(U, D), D);
6696
6696
  };
6697
6697
  }
6698
6698
  const T = /* @__PURE__ */ markRaw({
@@ -6707,7 +6707,7 @@ function createSetupStore(e, t, r = {}, a, n) {
6707
6707
  $patch: _,
6708
6708
  $reset: b,
6709
6709
  $subscribe(I, A = {}) {
6710
- const w = addSubscription(d, I, A.detached, () => G()), G = o.run(() => watch(() => a.state.value[e], ($) => {
6710
+ const w = addSubscription(d, I, A.detached, () => U()), U = o.run(() => watch(() => a.state.value[e], ($) => {
6711
6711
  (A.flush === "sync" ? u : c) && I({
6712
6712
  storeId: e,
6713
6713
  type: MutationType.direct,
@@ -6749,8 +6749,8 @@ function createSetupStore(e, t, r = {}, a, n) {
6749
6749
  E._hotUpdate = markRaw((A) => {
6750
6750
  E._hotUpdating = !0, A._hmrPayload.state.forEach((w) => {
6751
6751
  if (w in E.$state) {
6752
- const G = A.$state[w], $ = E.$state[w];
6753
- typeof G == "object" && isPlainObject(G) && isPlainObject($) ? patchObject(G, $) : A.$state[w] = $;
6752
+ const U = A.$state[w], $ = E.$state[w];
6753
+ typeof U == "object" && isPlainObject(U) && isPlainObject($) ? patchObject(U, $) : A.$state[w] = $;
6754
6754
  }
6755
6755
  set(E, w, toRef(A.$state, w));
6756
6756
  }), Object.keys(E.$state).forEach((w) => {
@@ -6759,11 +6759,11 @@ function createSetupStore(e, t, r = {}, a, n) {
6759
6759
  c = !0;
6760
6760
  });
6761
6761
  for (const w in A._hmrPayload.actions) {
6762
- const G = A[w];
6763
- set(E, w, k(w, G));
6762
+ const U = A[w];
6763
+ set(E, w, k(w, U));
6764
6764
  }
6765
6765
  for (const w in A._hmrPayload.getters) {
6766
- const G = A._hmrPayload.getters[w], $ = i ? computed(() => (setActivePinia(a), G.call(E, E))) : G;
6766
+ const U = A._hmrPayload.getters[w], $ = i ? computed(() => (setActivePinia(a), U.call(E, E))) : U;
6767
6767
  set(E, w, $);
6768
6768
  }
6769
6769
  Object.keys(E._hmrPayload.getters).forEach((w) => {
@@ -7016,7 +7016,7 @@ const useKgAppSelectStore = () => (store$8 || (store$8 = defineStore("KgAppSelec
7016
7016
  this.currentApp = e;
7017
7017
  let r = KgRouteUtil.getAppIndexPath(e);
7018
7018
  const { path: a } = unref(t.router.value.currentRoute);
7019
- r !== a && (await this.emit("gotoApp", e), await t.router.value.push(r));
7019
+ r !== a && (await this.emit("gotoApp", { app: e }), await t.router.value.push(r));
7020
7020
  },
7021
7021
  async gotoPath(e) {
7022
7022
  const t = useKg();
@@ -7028,7 +7028,7 @@ const useKgAppSelectStore = () => (store$8 || (store$8 = defineStore("KgAppSelec
7028
7028
  if (r !== this.currentApp) {
7029
7029
  this.currentApp = r;
7030
7030
  const a = unref(t.router.value.currentRoute).path;
7031
- e !== a && (await this.emit("gotoPath", e), await t.router.value.push(e));
7031
+ e !== a && (await this.emit("gotoPath", { path: e }), await t.router.value.push(e));
7032
7032
  } else {
7033
7033
  const a = unref(t.router.value.currentRoute).path;
7034
7034
  e !== a && await t.router.value.push(e);
@@ -8696,25 +8696,40 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
8696
8696
  !a || (a.width = String(r));
8697
8697
  },
8698
8698
  patchVarGridDetail(e, t, r) {
8699
- if (!e || !t)
8700
- return;
8701
- const a = watch(
8702
- () => this.isRetrievedMap.get(e),
8703
- (n) => {
8704
- if (n) {
8705
- const o = this.getVarGridDetail(e, t);
8706
- o && setTimeout(() => {
8707
- var s;
8708
- a(), Object.entries(r).forEach(([l, c]) => {
8709
- l in o && (o[l] = c);
8699
+ return !e || !t ? Promise.resolve() : new Promise((a) => {
8700
+ const n = watch(
8701
+ () => this.isRetrievedMap.get(e),
8702
+ (o) => {
8703
+ if (o) {
8704
+ const i = this.getVarGridDetail(e, t);
8705
+ i && setTimeout(() => {
8706
+ n(), Object.entries(r).forEach(([s, l]) => {
8707
+ s in i && (i[s] = l);
8708
+ }), a();
8710
8709
  });
8711
- const i = [...(s = this.varSubmitFieldMap.get(e)) != null ? s : []];
8712
- i.splice(i.indexOf(o), 1, { ...o }), this.varSubmitFieldMap.set(e, i);
8713
- });
8714
- }
8715
- },
8716
- { immediate: !0 }
8717
- );
8710
+ }
8711
+ },
8712
+ { immediate: !0 }
8713
+ );
8714
+ });
8715
+ },
8716
+ patchVarProfileDetail(e, t, r) {
8717
+ return !e || !t ? Promise.resolve() : new Promise((a) => {
8718
+ const n = watch(
8719
+ () => this.isRetrievedMap.get(e),
8720
+ (o) => {
8721
+ if (o) {
8722
+ const i = this.getVarProfileDetail(e, t);
8723
+ i && setTimeout(() => {
8724
+ n(), Object.entries(r).forEach(([s, l]) => {
8725
+ s in i && (i[s] = l);
8726
+ }), a();
8727
+ });
8728
+ }
8729
+ },
8730
+ { immediate: !0 }
8731
+ );
8732
+ });
8718
8733
  },
8719
8734
  setVarPossibility(e, t, r) {
8720
8735
  if (!e || !t)
@@ -8766,14 +8781,14 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
8766
8781
  function useKgVar(e, t, r = 0) {
8767
8782
  var a, n;
8768
8783
  try {
8769
- let o = function(Q) {
8770
- u.setIsCreating(c, Q);
8771
- }, i = function(Q) {
8772
- u.setIsUpdating(c, Q);
8773
- }, s = function(Q) {
8774
- u.setIsCopying(c, Q);
8775
- }, l = function(Q) {
8776
- u.setIsDeleting(c, Q);
8784
+ let o = function(q) {
8785
+ u.setIsCreating(c, q);
8786
+ }, i = function(q) {
8787
+ u.setIsUpdating(c, q);
8788
+ }, s = function(q) {
8789
+ u.setIsCopying(c, q);
8790
+ }, l = function(q) {
8791
+ u.setIsDeleting(c, q);
8777
8792
  }, c = e || inject(KG_DI_FORM_ID, "");
8778
8793
  if (!c)
8779
8794
  throw new Error("useKgVar() | \u5FC5\u987B\u4F20\u5165 formID \u53C2\u6570.");
@@ -8783,13 +8798,13 @@ function useKgVar(e, t, r = 0) {
8783
8798
  }), onUnmounted(() => {
8784
8799
  u.leave(c);
8785
8800
  }));
8786
- const d = (Q) => computed(() => {
8787
- var Z, ae, ne;
8788
- return (ne = (ae = (Z = u.getVarCatalog(c, Q)) == null ? void 0 : Z.var_text) != null ? ae : Q) != null ? ne : "";
8789
- }), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), C = computed(() => u.isRetrievingVarGridMaster(c)), g = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), y = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)), M = computed(() => u.isDeleting(c)), E = computed(() => u.isDeletingRequesting(c)), P = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), A = computed(() => u.getVarButtonSearch(c)), w = computed(() => u.getVarButtonCreate(c)), G = computed(() => u.getVarButtonUpdate(c)), $ = computed(() => u.getVarButtonCopy(c)), V = computed(() => u.getVarButtonDelete(c)), O = computed(() => u.getVarProfileMasters(c)), D = computed(() => u.getCurrentVarProfileMaster(c)), K = computed(() => u.getCurrentVarProfileMasterID(c)), L = computed(() => {
8790
- var Q, Z;
8791
- return (Z = (Q = D.value) == null ? void 0 : Q.varProfileDetails) != null ? Z : null;
8792
- }), N = computed(() => u.getVarGridConfig(c)), B = computed(() => u.getVarGridMasters(c)), H = computed(() => u.getCurrentVarGridMaster(c)), Y = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
8801
+ const d = (q) => computed(() => {
8802
+ var te, re, ne;
8803
+ return (ne = (re = (te = u.getVarCatalog(c, q)) == null ? void 0 : te.var_text) != null ? re : q) != null ? ne : "";
8804
+ }), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), C = computed(() => u.isRetrievingVarGridMaster(c)), g = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), y = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)), M = computed(() => u.isDeleting(c)), E = computed(() => u.isDeletingRequesting(c)), P = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), A = computed(() => u.getVarButtonSearch(c)), w = computed(() => u.getVarButtonCreate(c)), U = computed(() => u.getVarButtonUpdate(c)), $ = computed(() => u.getVarButtonCopy(c)), V = computed(() => u.getVarButtonDelete(c)), O = computed(() => u.getVarProfileMasters(c)), D = computed(() => u.getCurrentVarProfileMaster(c)), N = computed(() => u.getCurrentVarProfileMasterID(c)), L = computed(() => {
8805
+ var q, te;
8806
+ return (te = (q = D.value) == null ? void 0 : q.varProfileDetails) != null ? te : null;
8807
+ }), H = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), G = computed(() => u.getCurrentVarGridMaster(c)), Y = computed(() => u.getSystemVarGridDetails(c)), Q = computed(() => u.getCurrentVarGridDetails(c));
8793
8808
  return {
8794
8809
  formID: c,
8795
8810
  store: u,
@@ -8808,18 +8823,18 @@ function useKgVar(e, t, r = 0) {
8808
8823
  varButtons: I,
8809
8824
  varButtonSearch: A,
8810
8825
  varButtonCreate: w,
8811
- varButtonUpdate: G,
8826
+ varButtonUpdate: U,
8812
8827
  varButtonCopy: $,
8813
8828
  varButtonDelete: V,
8814
8829
  varProfileMasters: O,
8815
8830
  currentVarProfileMaster: D,
8816
- currentVarProfileMasterID: K,
8831
+ currentVarProfileMasterID: N,
8817
8832
  currentVarProfileDetails: L,
8818
- varGridConfig: N,
8819
- varGridMasters: B,
8820
- currentVarGridMaster: H,
8833
+ varGridConfig: H,
8834
+ varGridMasters: K,
8835
+ currentVarGridMaster: G,
8821
8836
  systemVarGridDetails: Y,
8822
- currentVarGridDetails: X,
8837
+ currentVarGridDetails: Q,
8823
8838
  setIsCreating: o,
8824
8839
  setIsUpdating: i,
8825
8840
  setIsCopying: s,
@@ -9650,13 +9665,13 @@ const KgFormItemRadioGroup = defineComponent({
9650
9665
  var_nam: I,
9651
9666
  model: A,
9652
9667
  isMultiple: w,
9653
- value: G,
9668
+ value: U,
9654
9669
  values: $
9655
9670
  }) => {
9656
9671
  var V;
9657
9672
  switch (I) {
9658
9673
  case e.kgVarName:
9659
- A.value && (w ? A.value[e.kgVarName] = $ : A.value[e.kgVarName] = G), (V = n.value) == null || V.validate([e.kgVarName]);
9674
+ A.value && (w ? A.value[e.kgVarName] = $ : A.value[e.kgVarName] = U), (V = n.value) == null || V.validate([e.kgVarName]);
9660
9675
  break;
9661
9676
  }
9662
9677
  return !1;
@@ -9666,7 +9681,7 @@ const KgFormItemRadioGroup = defineComponent({
9666
9681
  } = _useRules(e), {
9667
9682
  controlType: m
9668
9683
  } = useKgFormItem(e), v = computed(() => {
9669
- var A, w, G, $, V;
9684
+ var A, w, U, $, V;
9670
9685
  if (o.isRetrieving.value)
9671
9686
  return !0;
9672
9687
  let I = !1;
@@ -9683,7 +9698,7 @@ const KgFormItemRadioGroup = defineComponent({
9683
9698
  I = ((w = u.value) == null ? void 0 : w.crt_ena_flg) === 0;
9684
9699
  break;
9685
9700
  case o.isUpdating.value:
9686
- I = ((G = u.value) == null ? void 0 : G.upt_ena_flg) === 0;
9701
+ I = ((U = u.value) == null ? void 0 : U.upt_ena_flg) === 0;
9687
9702
  break;
9688
9703
  case o.isCopying.value:
9689
9704
  I = (($ = u.value) == null ? void 0 : $.cpy_ena_flg) === 0;
@@ -9696,7 +9711,7 @@ const KgFormItemRadioGroup = defineComponent({
9696
9711
  }
9697
9712
  return I;
9698
9713
  }), C = computed(() => {
9699
- var A, w, G, $;
9714
+ var A, w, U, $;
9700
9715
  let I = " ";
9701
9716
  if (e.kgPlaceholder)
9702
9717
  I = e.kgPlaceholder;
@@ -9706,12 +9721,12 @@ const KgFormItemRadioGroup = defineComponent({
9706
9721
  I = o.t((w = (A = c.value) == null ? void 0 : A.placeholder) != null ? w : " ").value;
9707
9722
  break;
9708
9723
  case KG_FORM_CONTEXT.SUBMIT:
9709
- I = o.t(($ = (G = u.value) == null ? void 0 : G.placeholder) != null ? $ : " ").value;
9724
+ I = o.t(($ = (U = u.value) == null ? void 0 : U.placeholder) != null ? $ : " ").value;
9710
9725
  break;
9711
9726
  }
9712
9727
  return I;
9713
9728
  }), g = computed(() => {
9714
- var A, w, G, $, V, O, D, K, L, N;
9729
+ var A, w, U, $, V, O, D, N, L, H;
9715
9730
  let I = 6;
9716
9731
  if (e.kgSpan !== void 0)
9717
9732
  I = e.kgSpan;
@@ -9723,24 +9738,24 @@ const KgFormItemRadioGroup = defineComponent({
9723
9738
  case KG_FORM_CONTEXT.SUBMIT:
9724
9739
  switch (!0) {
9725
9740
  case o.isCreating.value:
9726
- I = ($ = (G = u.value) == null ? void 0 : G.crt_width) != null ? $ : 6;
9741
+ I = ($ = (U = u.value) == null ? void 0 : U.crt_width) != null ? $ : 6;
9727
9742
  break;
9728
9743
  case o.isUpdating.value:
9729
9744
  I = (O = (V = u.value) == null ? void 0 : V.upt_width) != null ? O : 6;
9730
9745
  break;
9731
9746
  case o.isCopying.value:
9732
- I = (K = (D = u.value) == null ? void 0 : D.cpy_width) != null ? K : 6;
9747
+ I = (N = (D = u.value) == null ? void 0 : D.cpy_width) != null ? N : 6;
9733
9748
  break;
9734
9749
  case o.isDeleting.value:
9735
- I = (N = (L = u.value) == null ? void 0 : L.del_width) != null ? N : 6;
9750
+ I = (H = (L = u.value) == null ? void 0 : L.del_width) != null ? H : 6;
9736
9751
  break;
9737
9752
  }
9738
9753
  }
9739
9754
  return Math.min(24, Math.max(1, I));
9740
9755
  }), _ = computed(() => {
9741
- var G, $;
9756
+ var U, $;
9742
9757
  const I = get(T.value, "$el.parentElement");
9743
- if (I && !((G = I.classList) != null && G.contains("ant-row")))
9758
+ if (I && !((U = I.classList) != null && U.contains("ant-row")))
9744
9759
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
9745
9760
  let A = {};
9746
9761
  const w = Math.abs(Number.parseInt(($ = get(T.value, "$el.parentElement.style.marginLeft")) != null ? $ : "0px"));
@@ -9749,7 +9764,7 @@ const KgFormItemRadioGroup = defineComponent({
9749
9764
  paddingRight: `${w}px !important`
9750
9765
  }), A;
9751
9766
  }), b = computed(() => {
9752
- var A, w, G, $;
9767
+ var A, w, U, $;
9753
9768
  let I = "kg-form-item";
9754
9769
  switch (s.value && (I += " kg-form-item-lookup"), e.kgContext) {
9755
9770
  case KG_FORM_CONTEXT.SEARCH:
@@ -9762,7 +9777,7 @@ const KgFormItemRadioGroup = defineComponent({
9762
9777
  case KG_FORM_CONTEXT.SUBMIT:
9763
9778
  switch (!0) {
9764
9779
  case (o.isCreating.value && ((w = u.value) == null ? void 0 : w.crt_vis_flg) === 0):
9765
- case (o.isUpdating.value && ((G = u.value) == null ? void 0 : G.upt_vis_flg) === 0):
9780
+ case (o.isUpdating.value && ((U = u.value) == null ? void 0 : U.upt_vis_flg) === 0):
9766
9781
  case (o.isCopying.value && (($ = u.value) == null ? void 0 : $.cpy_vis_flg) === 0):
9767
9782
  I += " kg-form-item--invisible";
9768
9783
  break;
@@ -9900,10 +9915,6 @@ const KgFormItemRadioGroup = defineComponent({
9900
9915
  ...e
9901
9916
  }));
9902
9917
  return provide(DI_FORM_MODEL, computed(() => e.model)), provide(DI_FORM_REF, n), r({
9903
- resetFields(i) {
9904
- var s;
9905
- return (s = n.value) == null ? void 0 : s.resetFields(i);
9906
- },
9907
9918
  clearValidate(i) {
9908
9919
  var s;
9909
9920
  return (s = n.value) == null ? void 0 : s.clearValidate(i);
@@ -10378,28 +10389,29 @@ function _useFormModel$1() {
10378
10389
  return [];
10379
10390
  }), c = ref({});
10380
10391
  return watch(l, (u) => {
10381
- if (c.value = {}, u != null && u.length) {
10382
- const d = r.selectedRow.value;
10383
- u.forEach((m) => {
10384
- var C, g, _, b, y, k, T, M;
10385
- const v = (C = m.var_nam) != null ? C : "";
10386
- switch (c.value[v] = void 0, !0) {
10387
- case t.isCreating.value:
10388
- c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (g = m.crt_dft_val) != null ? g : void 0, "C");
10389
- break;
10390
- case t.isUpdating.value:
10391
- c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (b = (_ = m.upt_dft_val) != null ? _ : d == null ? void 0 : d[v]) != null ? b : void 0, "U");
10392
- break;
10393
- case t.isCopying.value:
10394
- c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (k = (y = m.cpy_dft_val) != null ? y : d == null ? void 0 : d[v]) != null ? k : void 0, "CP");
10395
- break;
10396
- case t.isDeleting.value:
10397
- c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (M = (T = m.del_dft_val) != null ? T : d == null ? void 0 : d[v]) != null ? M : void 0, "D");
10398
- break;
10399
- }
10400
- });
10392
+ if (c.value = {}, !(u != null && u.length)) {
10393
+ a.store.setModel(t.formID, c.value);
10394
+ return;
10401
10395
  }
10402
- a.store.setModel(t.formID, c.value);
10396
+ const d = r.selectedRow.value;
10397
+ u.forEach((m) => {
10398
+ var C, g, _, b, y, k, T, M;
10399
+ const v = (C = m.var_nam) != null ? C : "";
10400
+ switch (c.value[v] = void 0, !0) {
10401
+ case t.isCreating.value:
10402
+ c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (g = m.crt_dft_val) != null ? g : void 0, "C");
10403
+ break;
10404
+ case t.isUpdating.value:
10405
+ c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (b = (_ = m.upt_dft_val) != null ? _ : d == null ? void 0 : d[v]) != null ? b : void 0, "U");
10406
+ break;
10407
+ case t.isCopying.value:
10408
+ c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (k = (y = m.cpy_dft_val) != null ? y : d == null ? void 0 : d[v]) != null ? k : void 0, "CP");
10409
+ break;
10410
+ case t.isDeleting.value:
10411
+ c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (M = (T = m.del_dft_val) != null ? T : d == null ? void 0 : d[v]) != null ? M : void 0, "D");
10412
+ break;
10413
+ }
10414
+ }), a.store.setModel(t.formID, c.value);
10403
10415
  }, {
10404
10416
  immediate: !0
10405
10417
  }), {
@@ -10546,12 +10558,12 @@ const getProps$p = () => ({
10546
10558
  const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), c = useKgSearch();
10547
10559
  i.onSubmitSave(async () => (await le(), !1)), i.onSubmitCancel(async () => (await ne(), !1)), _useFormModel$1();
10548
10560
  const u = computed(() => o.isDeleting.value && T.value.length === 0 && M.value.length === 0), d = computed(() => l.store.isLoading(o.formID)), m = computed(() => o.store.getVarSubmitConfig(o.formID)), v = computed(() => o.store.getVarSubmitFieldsForCreateKey(o.formID)), C = computed(() => o.store.getVarSubmitFieldsForCreateNotKey(o.formID)), g = computed(() => o.store.getVarSubmitFieldsForUpdateKey(o.formID)), _ = computed(() => o.store.getVarSubmitFieldsForUpdateNotKey(o.formID)), b = computed(() => o.store.getVarSubmitFieldsForCopyKey(o.formID)), y = computed(() => o.store.getVarSubmitFieldsForCopyNotKey(o.formID)), k = computed(() => o.store.getVarSubmitFieldsForDelete(o.formID)), T = computed(() => {
10549
- var F, x, z;
10561
+ var F, B, z;
10550
10562
  switch (!0) {
10551
10563
  case o.isCreating.value:
10552
10564
  return (F = v.value) != null ? F : [];
10553
10565
  case o.isUpdating.value:
10554
- return (x = g.value) != null ? x : [];
10566
+ return (B = g.value) != null ? B : [];
10555
10567
  case o.isCopying.value:
10556
10568
  return (z = b.value) != null ? z : [];
10557
10569
  case o.isDeleting.value:
@@ -10559,12 +10571,12 @@ const getProps$p = () => ({
10559
10571
  }
10560
10572
  return [];
10561
10573
  }), M = computed(() => {
10562
- var F, x, z, J;
10574
+ var F, B, z, J;
10563
10575
  switch (!0) {
10564
10576
  case o.isCreating.value:
10565
10577
  return (F = C.value) != null ? F : [];
10566
10578
  case o.isUpdating.value:
10567
- return (x = _.value) != null ? x : [];
10579
+ return (B = _.value) != null ? B : [];
10568
10580
  case o.isCopying.value:
10569
10581
  return (z = y.value) != null ? z : [];
10570
10582
  case o.isDeleting.value:
@@ -10575,31 +10587,31 @@ const getProps$p = () => ({
10575
10587
  kgWidth: 0
10576
10588
  }), w = computed(() => {
10577
10589
  var F;
10578
- return !!(u.value || N.isFullscreen || ((F = m.value) == null ? void 0 : F.resizable_flg) === 0);
10579
- }), G = computed(() => {
10580
- var F, x;
10581
- return u.value ? 398 : (x = (F = m.value) == null ? void 0 : F.min_width) != null ? x : DEFAULT_MIN_WIDTH;
10590
+ return !!(u.value || H.isFullscreen || ((F = m.value) == null ? void 0 : F.resizable_flg) === 0);
10591
+ }), U = computed(() => {
10592
+ var F, B;
10593
+ return u.value ? 398 : (B = (F = m.value) == null ? void 0 : F.min_width) != null ? B : DEFAULT_MIN_WIDTH;
10582
10594
  }), $ = computed(() => {
10583
- var F, x;
10584
- return u.value ? 398 : (x = (F = m.value) == null ? void 0 : F.max_width) != null ? x : DEFAULT_MAX_WIDTH;
10595
+ var F, B;
10596
+ return u.value ? 398 : (B = (F = m.value) == null ? void 0 : F.max_width) != null ? B : DEFAULT_MAX_WIDTH;
10585
10597
  }), V = computed(() => u.value ? 398 : A.value.kgWidth), O = ref(null);
10586
10598
  _useResizeObserver$1(O);
10587
- const D = _useTitle(), K = computed(() => u.value ? 400 : A.value.kgWidth && A.value.kgWidth > 0 ? "auto" : 0), L = computed(() => K.value === 0 ? !1 : !!(o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value)), N = reactive({
10599
+ const D = _useTitle(), N = computed(() => u.value ? 400 : A.value.kgWidth && A.value.kgWidth > 0 ? "auto" : 0), L = computed(() => N.value === 0 ? !1 : !!(o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value)), H = reactive({
10588
10600
  isFullscreen: !1
10589
10601
  }), {
10590
- getClass: B
10591
- } = _useClass(e, N), {
10592
- getLayout: H
10602
+ getClass: K
10603
+ } = _useClass(e, H), {
10604
+ getLayout: G
10593
10605
  } = _useLayout(), {
10594
10606
  getDefaultWidth: Y
10595
- } = _useDefaultWidth(), X = computed(() => {
10596
- var F, x, z;
10597
- switch (H.value) {
10607
+ } = _useDefaultWidth(), Q = computed(() => {
10608
+ var F, B, z;
10609
+ switch (G.value) {
10598
10610
  case "horizontal":
10599
10611
  switch ((F = m.value) == null ? void 0 : F.label_col_unit) {
10600
10612
  case KG_WIDTH_UNIT.SPAN:
10601
10613
  return {
10602
- span: (x = m.value) == null ? void 0 : x.label_col
10614
+ span: (B = m.value) == null ? void 0 : B.label_col
10603
10615
  };
10604
10616
  default:
10605
10617
  return {
@@ -10611,14 +10623,14 @@ const getProps$p = () => ({
10611
10623
  default:
10612
10624
  return;
10613
10625
  }
10614
- }), Q = computed(() => {
10615
- var F, x;
10616
- switch (H.value) {
10626
+ }), q = computed(() => {
10627
+ var F, B;
10628
+ switch (G.value) {
10617
10629
  case "horizontal":
10618
10630
  switch ((F = m.value) == null ? void 0 : F.label_col_unit) {
10619
10631
  case KG_WIDTH_UNIT.SPAN:
10620
10632
  return {
10621
- span: 24 - ((x = m.value) == null ? void 0 : x.label_col)
10633
+ span: 24 - ((B = m.value) == null ? void 0 : B.label_col)
10622
10634
  };
10623
10635
  default:
10624
10636
  return;
@@ -10627,8 +10639,8 @@ const getProps$p = () => ({
10627
10639
  return;
10628
10640
  }
10629
10641
  });
10630
- watch(L, (F, x) => {
10631
- F === !0 && Z(), x === !0 && F === !1 && ae();
10642
+ watch(L, (F, B) => {
10643
+ F === !0 && te(), B === !0 && F === !1 && re();
10632
10644
  }, {
10633
10645
  immediate: !0
10634
10646
  }), watch(Y, (F) => {
@@ -10636,8 +10648,8 @@ const getProps$p = () => ({
10636
10648
  }, {
10637
10649
  immediate: !0
10638
10650
  });
10639
- function Z() {
10640
- var x;
10651
+ function te() {
10652
+ var B;
10641
10653
  const F = watch(l.model, (z) => {
10642
10654
  z && Object.keys(z).length > 0 && (setTimeout(() => F()), l.store.emit(o.formID, "open", {
10643
10655
  isCreating: o.isCreating.value,
@@ -10650,10 +10662,10 @@ const getProps$p = () => ({
10650
10662
  }, {
10651
10663
  immediate: !0
10652
10664
  });
10653
- ((x = m.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && !u.value && (N.isFullscreen = !0);
10665
+ ((B = m.value) == null ? void 0 : B.dft_fullscreen_flg) === 1 && !u.value && (H.isFullscreen = !0);
10654
10666
  }
10655
- async function ae() {
10656
- A.value.kgWidth = Y.value, N.isFullscreen = !1, await l.store.emit(o.formID, "close", null);
10667
+ async function re() {
10668
+ A.value.kgWidth = Y.value, H.isFullscreen = !1, await l.store.emit(o.formID, "close", null);
10657
10669
  }
10658
10670
  function ne() {
10659
10671
  switch (!0) {
@@ -10672,7 +10684,7 @@ const getProps$p = () => ({
10672
10684
  }
10673
10685
  }
10674
10686
  async function le() {
10675
- var F, x;
10687
+ var F, B;
10676
10688
  try {
10677
10689
  if (await l.store.emit(o.formID, "beforeOk", {
10678
10690
  isCreating: o.isCreating.value,
@@ -10686,10 +10698,10 @@ const getProps$p = () => ({
10686
10698
  return;
10687
10699
  try {
10688
10700
  await ((F = l.formRef.value) == null ? void 0 : F.validate());
10689
- } catch (ee) {
10690
- KgUtil.throwIfNotFormError(ee);
10701
+ } catch (Z) {
10702
+ KgUtil.throwIfNotFormError(Z);
10691
10703
  }
10692
- if (await ((x = l.formRef.value) == null ? void 0 : x.validate()), await l.store.emit(o.formID, "afterValidate", {
10704
+ if (await ((B = l.formRef.value) == null ? void 0 : B.validate()), await l.store.emit(o.formID, "afterValidate", {
10693
10705
  isCreating: o.isCreating.value,
10694
10706
  isUpdating: o.isUpdating.value,
10695
10707
  isCopying: o.isCopying.value,
@@ -10704,7 +10716,7 @@ const getProps$p = () => ({
10704
10716
  await ce();
10705
10717
  break;
10706
10718
  case o.isUpdating.value:
10707
- await re();
10719
+ await ae();
10708
10720
  break;
10709
10721
  case o.isCopying.value:
10710
10722
  await ue();
@@ -10718,8 +10730,8 @@ const getProps$p = () => ({
10718
10730
  }
10719
10731
  }
10720
10732
  async function ce() {
10721
- var x, z, J, ee, oe, se;
10722
- const F = (x = o.varButtonCreate.value) == null ? void 0 : x.cmd;
10733
+ var B, z, J, Z, oe, se;
10734
+ const F = (B = o.varButtonCreate.value) == null ? void 0 : B.cmd;
10723
10735
  if (!F) {
10724
10736
  KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10725
10737
  VarButton: o.varButtonCreate.value
@@ -10728,7 +10740,7 @@ const getProps$p = () => ({
10728
10740
  }
10729
10741
  o.store.setIsCreatingRequesting(o.formID, !0);
10730
10742
  try {
10731
- let te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = o.varButtonCreate.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), o.formID, r)), ie = ref(KgUtil.parseParams(toRaw(l.model.value), o.formID, r));
10743
+ let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = o.varButtonCreate.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), o.formID, r)), ie = ref(KgUtil.parseParams(toRaw(l.model.value), o.formID, r));
10732
10744
  if (await l.store.emit(o.formID, "beforeRequest", {
10733
10745
  isCreating: o.isCreating.value,
10734
10746
  isUpdating: o.isUpdating.value,
@@ -10737,14 +10749,14 @@ const getProps$p = () => ({
10737
10749
  row: s.selectedFirstRow.value,
10738
10750
  rows: s.selectedRows.value,
10739
10751
  model: l.model,
10740
- params: te,
10752
+ params: ee,
10741
10753
  data: ie
10742
10754
  }))
10743
10755
  return;
10744
10756
  await httpClient().request({
10745
- method: (oe = (ee = o.varButtonCreate.value) == null ? void 0 : ee.cmd_method) != null ? oe : "POST",
10757
+ method: (oe = (Z = o.varButtonCreate.value) == null ? void 0 : Z.cmd_method) != null ? oe : "POST",
10746
10758
  url: F,
10747
- params: te.value,
10759
+ params: ee.value,
10748
10760
  data: ie.value
10749
10761
  }), ((se = o.varButtonCreate.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(D.title.value + n.t("kg.succeed")), await l.store.emit(o.formID, "ok", {
10750
10762
  isCreating: o.isCreating.value,
@@ -10754,15 +10766,15 @@ const getProps$p = () => ({
10754
10766
  row: s.selectedFirstRow.value,
10755
10767
  model: l.model
10756
10768
  }), o.store.setIsCreating(o.formID, !1), c.search(!0);
10757
- } catch (te) {
10758
- console.error(te), l.store.emit(o.formID, "error", te);
10769
+ } catch (ee) {
10770
+ console.error(ee), l.store.emit(o.formID, "error", ee);
10759
10771
  } finally {
10760
10772
  o.store.setIsCreatingRequesting(o.formID, !1);
10761
10773
  }
10762
10774
  }
10763
- async function re() {
10764
- var x, z, J, ee, oe, se;
10765
- const F = (x = o.varButtonUpdate.value) == null ? void 0 : x.cmd;
10775
+ async function ae() {
10776
+ var B, z, J, Z, oe, se;
10777
+ const F = (B = o.varButtonUpdate.value) == null ? void 0 : B.cmd;
10766
10778
  if (!F) {
10767
10779
  KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10768
10780
  VarButton: o.varButtonUpdate.value
@@ -10771,7 +10783,7 @@ const getProps$p = () => ({
10771
10783
  }
10772
10784
  try {
10773
10785
  o.store.setIsUpdatingRequesting(o.formID, !0);
10774
- let te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = o.varButtonUpdate.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), o.formID, r)), ie = ref(KgUtil.parseParams(toRaw(l.model.value), o.formID, r));
10786
+ let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = o.varButtonUpdate.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), o.formID, r)), ie = ref(KgUtil.parseParams(toRaw(l.model.value), o.formID, r));
10775
10787
  if (await l.store.emit(o.formID, "beforeRequest", {
10776
10788
  isCreating: o.isCreating.value,
10777
10789
  isUpdating: o.isUpdating.value,
@@ -10780,14 +10792,14 @@ const getProps$p = () => ({
10780
10792
  row: s.selectedRow.value,
10781
10793
  rows: s.selectedRows.value,
10782
10794
  model: l.model,
10783
- params: te,
10795
+ params: ee,
10784
10796
  data: ie
10785
10797
  }))
10786
10798
  return;
10787
10799
  await httpClient().request({
10788
- method: (oe = (ee = o.varButtonUpdate.value) == null ? void 0 : ee.cmd_method) != null ? oe : "POST",
10800
+ method: (oe = (Z = o.varButtonUpdate.value) == null ? void 0 : Z.cmd_method) != null ? oe : "POST",
10789
10801
  url: F,
10790
- params: te.value,
10802
+ params: ee.value,
10791
10803
  data: ie.value
10792
10804
  }), ((se = o.varButtonUpdate.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await l.store.emit(o.formID, "ok", {
10793
10805
  isCreating: o.isCreating.value,
@@ -10797,15 +10809,15 @@ const getProps$p = () => ({
10797
10809
  row: s.selectedFirstRow.value,
10798
10810
  model: l.model
10799
10811
  }), o.store.setIsUpdating(o.formID, !1), c.search();
10800
- } catch (te) {
10801
- console.error(te), l.store.emit(o.formID, "error", te);
10812
+ } catch (ee) {
10813
+ console.error(ee), l.store.emit(o.formID, "error", ee);
10802
10814
  } finally {
10803
10815
  o.store.setIsUpdatingRequesting(o.formID, !1);
10804
10816
  }
10805
10817
  }
10806
10818
  async function ue() {
10807
- var x, z, J, ee, oe, se, te, ie;
10808
- const F = (x = o.varButtonCopy.value) == null ? void 0 : x.cmd;
10819
+ var B, z, J, Z, oe, se, ee, ie;
10820
+ const F = (B = o.varButtonCopy.value) == null ? void 0 : B.cmd;
10809
10821
  if (!F) {
10810
10822
  KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10811
10823
  VarButton: o.varButtonCopy.value
@@ -10815,7 +10827,7 @@ const getProps$p = () => ({
10815
10827
  try {
10816
10828
  o.store.setIsCopyingRequesting(o.formID, !0);
10817
10829
  let ge = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = o.varButtonCopy.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), o.formID, r)), pe = ref(KgUtil.parseParams({
10818
- ...(ee = s.selectedFirstRow.value) != null ? ee : {},
10830
+ ...(Z = s.selectedFirstRow.value) != null ? Z : {},
10819
10831
  ...toRaw(l.model.value)
10820
10832
  }, o.formID, r));
10821
10833
  if (((oe = m.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete pe.value.id, await l.store.emit(o.formID, "beforeRequest", {
@@ -10831,7 +10843,7 @@ const getProps$p = () => ({
10831
10843
  }))
10832
10844
  return;
10833
10845
  await httpClient().request({
10834
- method: (te = (se = o.varButtonCopy.value) == null ? void 0 : se.cmd_method) != null ? te : "POST",
10846
+ method: (ee = (se = o.varButtonCopy.value) == null ? void 0 : se.cmd_method) != null ? ee : "POST",
10835
10847
  url: F,
10836
10848
  params: ge.value,
10837
10849
  data: pe.value
@@ -10850,8 +10862,8 @@ const getProps$p = () => ({
10850
10862
  }
10851
10863
  }
10852
10864
  async function fe() {
10853
- var x, z, J, ee, oe, se;
10854
- const F = (x = o.varButtonDelete.value) == null ? void 0 : x.cmd;
10865
+ var B, z, J, Z, oe, se;
10866
+ const F = (B = o.varButtonDelete.value) == null ? void 0 : B.cmd;
10855
10867
  if (!F) {
10856
10868
  KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10857
10869
  VarButton: o.varButtonDelete.value
@@ -10860,7 +10872,7 @@ const getProps$p = () => ({
10860
10872
  }
10861
10873
  try {
10862
10874
  o.store.setIsDeletingRequesting(o.formID, !0);
10863
- let te = ref({
10875
+ let ee = ref({
10864
10876
  ids: (J = (z = s.selectedRows.value) == null ? void 0 : z.map((pe) => {
10865
10877
  var me, _e, he;
10866
10878
  return (he = pe[(_e = (me = o.varButtonDelete.value) == null ? void 0 : me.del_param_clm) != null ? _e : "id"]) != null ? he : "";
@@ -10874,14 +10886,14 @@ const getProps$p = () => ({
10874
10886
  row: s.selectedFirstRow.value,
10875
10887
  rows: s.selectedRows.value,
10876
10888
  model: l.model,
10877
- params: te,
10889
+ params: ee,
10878
10890
  data: ie
10879
10891
  }))
10880
10892
  return;
10881
10893
  await httpClient().request({
10882
- method: (oe = (ee = o.varButtonDelete.value) == null ? void 0 : ee.cmd_method) != null ? oe : "DELETE",
10894
+ method: (oe = (Z = o.varButtonDelete.value) == null ? void 0 : Z.cmd_method) != null ? oe : "DELETE",
10883
10895
  url: F,
10884
- params: te.value,
10896
+ params: ee.value,
10885
10897
  data: ie.value
10886
10898
  }, {
10887
10899
  joinParamsToUrl: !0
@@ -10893,33 +10905,33 @@ const getProps$p = () => ({
10893
10905
  row: s.selectedFirstRow.value,
10894
10906
  model: l.model
10895
10907
  }), o.store.setIsDeleting(o.formID, !1), c.search(!0);
10896
- } catch (te) {
10897
- console.error(te), l.store.emit(o.formID, "error", te);
10908
+ } catch (ee) {
10909
+ console.error(ee), l.store.emit(o.formID, "error", ee);
10898
10910
  } finally {
10899
10911
  o.store.setIsDeletingRequesting(o.formID, !1);
10900
10912
  }
10901
10913
  }
10902
10914
  function de(F) {
10903
10915
  var z, J;
10904
- const x = (J = (z = a == null ? void 0 : a.KgSubmit) == null ? void 0 : z["KgForm.Item"]) == null ? void 0 : J[F.var_nam];
10905
- return isFunction$2(x) ? createVNode(KgForm.Item, {
10916
+ const B = (J = (z = a == null ? void 0 : a.KgSubmit) == null ? void 0 : z["KgForm.Item"]) == null ? void 0 : J[F.var_nam];
10917
+ return isFunction$2(B) ? createVNode(KgForm.Item, {
10906
10918
  kgVarName: F.var_nam,
10907
10919
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10908
10920
  kgRules: l.rules.value[F.var_nam],
10909
10921
  onKgSubmit: le
10910
10922
  }, {
10911
10923
  control: ({
10912
- varName: ee,
10924
+ varName: Z,
10913
10925
  props: oe,
10914
10926
  model: se,
10915
- varVariableConfig: te,
10927
+ varVariableConfig: ee,
10916
10928
  varProfileDetail: ie,
10917
10929
  varSubmitField: ge
10918
- }) => x({
10919
- varName: ee,
10930
+ }) => B({
10931
+ varName: Z,
10920
10932
  props: oe,
10921
10933
  model: se,
10922
- varVariableConfig: te,
10934
+ varVariableConfig: ee,
10923
10935
  varProfileDetail: ie,
10924
10936
  varSubmitField: ge
10925
10937
  })
@@ -10931,10 +10943,10 @@ const getProps$p = () => ({
10931
10943
  }, null);
10932
10944
  }
10933
10945
  function R() {
10934
- let F, x;
10946
+ let F, B;
10935
10947
  return createVNode(KgResizable, {
10936
10948
  kgType: l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
10937
- kgMinWidth: G.value,
10949
+ kgMinWidth: U.value,
10938
10950
  kgMaxWidth: $.value,
10939
10951
  kgWidth: V.value,
10940
10952
  kgDisabled: w.value,
@@ -10946,9 +10958,9 @@ const getProps$p = () => ({
10946
10958
  default: () => [createVNode(KgForm, {
10947
10959
  ref: l.formRef,
10948
10960
  model: l.model.value,
10949
- layout: H.value,
10950
- labelCol: X.value,
10951
- wrapperCol: Q.value
10961
+ layout: G.value,
10962
+ labelCol: Q.value,
10963
+ wrapperCol: q.value
10952
10964
  }, {
10953
10965
  default: () => [createVNode("div", {
10954
10966
  ref: O
@@ -10958,8 +10970,8 @@ const getProps$p = () => ({
10958
10970
  default: () => [F]
10959
10971
  }), T.value.length > 0 && M.value.length > 0 && createVNode(Divider, null, null), M.value.length > 0 && createVNode(Row, {
10960
10972
  gutter: 12
10961
- }, _isSlot$8(x = M.value.map(de)) ? x : {
10962
- default: () => [x]
10973
+ }, _isSlot$8(B = M.value.map(de)) ? B : {
10974
+ default: () => [B]
10963
10975
  }), u.value && createVNode("div", {
10964
10976
  style: "text-align: center; padding: 6px 0 12px;"
10965
10977
  }, [n.t("kg.confirmDelete")])])]
@@ -10967,8 +10979,8 @@ const getProps$p = () => ({
10967
10979
  })]
10968
10980
  });
10969
10981
  }
10970
- function U() {
10971
- let F, x;
10982
+ function x() {
10983
+ let F, B;
10972
10984
  return createVNode("div", null, [createVNode(Button, {
10973
10985
  type: "primary",
10974
10986
  ghost: !P.value,
@@ -10982,8 +10994,8 @@ const getProps$p = () => ({
10982
10994
  loading: E.value,
10983
10995
  danger: !!o.isDeleting.value,
10984
10996
  onClick: le
10985
- }, _isSlot$8(x = n.t(o.isDeleting.value ? "kg.delete" : "kg.save")) ? x : {
10986
- default: () => [x]
10997
+ }, _isSlot$8(B = n.t(o.isDeleting.value ? "kg.delete" : "kg.save")) ? B : {
10998
+ default: () => [B]
10987
10999
  })]);
10988
11000
  }
10989
11001
  function W() {
@@ -10991,10 +11003,10 @@ const getProps$p = () => ({
10991
11003
  title: D.title.value
10992
11004
  }, [D.title.value]);
10993
11005
  }
10994
- function q() {
11006
+ function X() {
10995
11007
  return createVNode(KgSubmitHeader, {
10996
- isFullscreen: N.isFullscreen,
10997
- "onUpdate:isFullscreen": (F) => N.isFullscreen = F,
11008
+ isFullscreen: H.isFullscreen,
11009
+ "onUpdate:isFullscreen": (F) => H.isFullscreen = F,
10998
11010
  kgShowFullscreenButton: !u.value,
10999
11011
  kgShowConfigButton: !u.value && e.kgShowConfigButton,
11000
11012
  onKgCancel: ne
@@ -11009,14 +11021,14 @@ const getProps$p = () => ({
11009
11021
  maskClosable: !1,
11010
11022
  keyboard: !1,
11011
11023
  destroyOnClose: !0,
11012
- width: K.value,
11013
- class: B.value,
11024
+ width: N.value,
11025
+ class: K.value,
11014
11026
  "kg-frm_id": o.formID
11015
11027
  }, {
11016
11028
  title: W,
11017
- extra: q,
11029
+ extra: X,
11018
11030
  default: R,
11019
- footer: U
11031
+ footer: x
11020
11032
  });
11021
11033
  }
11022
11034
  }), KgYesOrNo$1 = "", getProps$o = () => ({
@@ -11212,6 +11224,8 @@ const useKgTableStore = () => (store$4 || (store$4 = defineStore("KgTable", {
11212
11224
  },
11213
11225
  setTableWidth(e, t) {
11214
11226
  this.tableWidthMap.set(e, unref(t));
11227
+ },
11228
+ clearDatas(e) {
11215
11229
  }
11216
11230
  }
11217
11231
  }).bind(null, pinia())), store$4);
@@ -11358,7 +11372,7 @@ const getProps$n = () => ({
11358
11372
  });
11359
11373
  }
11360
11374
  function y() {
11361
- var T, M, E, P, I, A, w, G, $, V;
11375
+ var T, M, E, P, I, A, w, U, $, V;
11362
11376
  if (u.value)
11363
11377
  return b();
11364
11378
  switch ((T = l.value) == null ? void 0 : T.display_type) {
@@ -11370,13 +11384,13 @@ const getProps$n = () => ({
11370
11384
  }, null);
11371
11385
  }
11372
11386
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
11373
- const O = KgUtil.tryParseJSON((P = l.value) == null ? void 0 : P.display_type_properties), D = isArrayLike(O) && O.find((K) => K.value === e.kgValue);
11387
+ const O = KgUtil.tryParseJSON((P = l.value) == null ? void 0 : P.display_type_properties), D = isArrayLike(O) && O.find((N) => N.value === e.kgValue);
11374
11388
  if (D) {
11375
- const K = n.t(D.varName).value;
11376
- return K ? createVNode(Tag, {
11389
+ const N = n.t(D.varName).value;
11390
+ return N ? createVNode(Tag, {
11377
11391
  color: (I = D.color) != null ? I : "default"
11378
- }, _isSlot$7(K) ? K : {
11379
- default: () => [K]
11392
+ }, _isSlot$7(N) ? N : {
11393
+ default: () => [N]
11380
11394
  }) : k();
11381
11395
  } else
11382
11396
  return k();
@@ -11384,7 +11398,7 @@ const getProps$n = () => ({
11384
11398
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
11385
11399
  const O = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
11386
11400
  if (O.isTag && isArrayLike(O.tagColors)) {
11387
- const D = O.tagColors.find((K) => K.value === e.kgValue);
11401
+ const D = O.tagColors.find((N) => N.value === e.kgValue);
11388
11402
  return v.value ? createVNode(Tag, {
11389
11403
  color: (w = D == null ? void 0 : D.color) != null ? w : "default"
11390
11404
  }, {
@@ -11394,7 +11408,7 @@ const getProps$n = () => ({
11394
11408
  return k();
11395
11409
  }
11396
11410
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
11397
- const O = KgUtil.tryParseJSON((G = l.value) == null ? void 0 : G.display_type_properties);
11411
+ const O = KgUtil.tryParseJSON((U = l.value) == null ? void 0 : U.display_type_properties);
11398
11412
  return createVNode(KgProgressA, {
11399
11413
  kgTextWidth: O.textWidth,
11400
11414
  kgLeft: ($ = e.kgRow) == null ? void 0 : $[O.leftColumn],
@@ -11449,6 +11463,7 @@ const getProps$m = () => ({
11449
11463
  o.store.setSelectedRows(n.formID, []);
11450
11464
  }
11451
11465
  function s() {
11466
+ o.store.clearDatas(n.formID);
11452
11467
  }
11453
11468
  function l() {
11454
11469
  }
@@ -11900,8 +11915,8 @@ function _useColumns(e) {
11900
11915
  return "right";
11901
11916
  }
11902
11917
  function M() {
11903
- var I, A, w, G;
11904
- return !((A = (I = t == null ? void 0 : t.value) == null ? void 0 : I.KgTable) != null && A.kgDisabled || isNil((G = (w = t == null ? void 0 : t.value) == null ? void 0 : w.KgTable) == null ? void 0 : G.kgDisabled) && e.kgDisabled || g.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
11918
+ var I, A, w, U;
11919
+ return !((A = (I = t == null ? void 0 : t.value) == null ? void 0 : I.KgTable) != null && A.kgDisabled || isNil((U = (w = t == null ? void 0 : t.value) == null ? void 0 : w.KgTable) == null ? void 0 : U.kgDisabled) && e.kgDisabled || g.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
11905
11920
  }
11906
11921
  function E() {
11907
11922
  return ["left", "center", "right"].includes(g.align || "") ? g.align : "left";
@@ -11984,24 +11999,27 @@ const KgTable$1 = "", getProps$g = () => ({
11984
11999
  const a = inject("$dayjs", dayjs), n = inject(DI_KG_VAR__KG_SLOTS, null), o = inject(DI_KG_VAR__KG_PROPS, null), i = useKg(), s = useKgVar(), l = useKgSearch(), c = useKgButton(), u = useKgTable(), d = useKgSubmit();
11985
12000
  l.onSearch(async ({
11986
12001
  resetPageIndex: R
11987
- }) => (H(R), !1)), l.onReset(async () => (H(!0), !1)), u.store.$onAction(async ({
12002
+ }) => (G(R), !1)), l.onReset(async () => (G(!0), !1)), u.store.$onAction(async ({
11988
12003
  name: R,
11989
- args: U
12004
+ args: x
11990
12005
  }) => {
11991
12006
  switch (R) {
11992
12007
  case "setRowSelect":
11993
- if (U[0] === s.formID) {
11994
- const W = U[1], q = U[2], F = W[u.id.value];
12008
+ if (x[0] === s.formID) {
12009
+ const W = x[1], X = x[2], F = W[u.id.value];
11995
12010
  switch (!0) {
11996
- case (q && !V.value.includes(F)):
12011
+ case (X && !V.value.includes(F)):
11997
12012
  Y([...V.value, F]);
11998
12013
  break;
11999
- case (!q && V.value.includes(F)):
12014
+ case (!X && V.value.includes(F)):
12000
12015
  Y(without$1(V.value, F));
12001
12016
  break;
12002
12017
  }
12003
12018
  }
12004
12019
  break;
12020
+ case "clearDatas":
12021
+ x[0] === s.formID && ($.value = [], O.total = 0, K(), v.value = []);
12022
+ break;
12005
12023
  }
12006
12024
  });
12007
12025
  const m = ref(!1), v = ref([]), {
@@ -12012,27 +12030,27 @@ const KgTable$1 = "", getProps$g = () => ({
12012
12030
  } = _useLoading(), b = ref(null);
12013
12031
  _useResizeObserver(b);
12014
12032
  const y = computed(() => {
12015
- var R, U;
12016
- return (U = (R = s.varButtonSearch.value) == null ? void 0 : R.cmd) != null ? U : null;
12033
+ var R, x;
12034
+ return (x = (R = s.varButtonSearch.value) == null ? void 0 : R.cmd) != null ? x : null;
12017
12035
  }), k = computed(() => {
12018
- var U, W, q, F, x, z, J;
12036
+ var x, W, X, F, B, z, J;
12019
12037
  let R = {
12020
12038
  pageNo: O.pageIndex,
12021
12039
  pageSize: O.pageSize,
12022
12040
  ...D,
12023
- ...(W = (U = l.model) == null ? void 0 : U.value) != null ? W : {}
12041
+ ...(W = (x = l.model) == null ? void 0 : x.value) != null ? W : {}
12024
12042
  };
12025
12043
  return s.varButtonSearch.value && (R = {
12026
12044
  ...R,
12027
- ...KgVarUtil.parseCommandParameter((F = (q = s.varButtonSearch.value) == null ? void 0 : q.cmd_prm) != null ? F : "")
12028
- }), (x = s.varGridConfig.value) != null && x.cmd_prm && (R = {
12045
+ ...KgVarUtil.parseCommandParameter((F = (X = s.varButtonSearch.value) == null ? void 0 : X.cmd_prm) != null ? F : "")
12046
+ }), (B = s.varGridConfig.value) != null && B.cmd_prm && (R = {
12029
12047
  ...R,
12030
12048
  ...KgVarUtil.parseCommandParameter((z = s.varGridConfig.value.cmd_prm) != null ? z : "")
12031
12049
  }), ((J = s.varGridConfig.value) == null ? void 0 : J.convert_sort_field_to_under_score_flg) === 1 && R.column && (R.column = snakeCase$1(R.column)), R;
12032
12050
  }), T = computed(() => {
12033
- var R, U, W, q;
12034
- if (!isNil((U = (R = o == null ? void 0 : o.value) == null ? void 0 : R.KgTable) == null ? void 0 : U.kgDisabled))
12035
- return (q = (W = o == null ? void 0 : o.value) == null ? void 0 : W.KgTable) == null ? void 0 : q.kgDisabled;
12051
+ var R, x, W, X;
12052
+ if (!isNil((x = (R = o == null ? void 0 : o.value) == null ? void 0 : R.KgTable) == null ? void 0 : x.kgDisabled))
12053
+ return (X = (W = o == null ? void 0 : o.value) == null ? void 0 : W.KgTable) == null ? void 0 : X.kgDisabled;
12036
12054
  if (!isNil(e.kgDisabled))
12037
12055
  return e.kgDisabled;
12038
12056
  }), M = computed(() => !!T.value || _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), E = computed(() => !!T.value || _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || O.total === 0), P = computed(() => {
@@ -12052,17 +12070,17 @@ const KgTable$1 = "", getProps$g = () => ({
12052
12070
  getCheckboxProps: (R) => ({
12053
12071
  disabled: !!T.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value
12054
12072
  }),
12055
- onSelect: (R) => X(R),
12073
+ onSelect: (R) => Q(R),
12056
12074
  onChange: (R) => u.isMultiSelect.value && Y(R)
12057
12075
  };
12058
12076
  }), w = computed(() => {
12059
- var U;
12077
+ var x;
12060
12078
  let R = "kg-table";
12061
- return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (R += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (R += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (R += " kg-table--submitting"), R;
12062
- }), G = computed(() => {
12063
- var U;
12079
+ return ((x = s.varGridConfig.value) == null ? void 0 : x.show_bottom_border_flg) === 1 && (R += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (R += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (R += " kg-table--submitting"), R;
12080
+ }), U = computed(() => {
12081
+ var x;
12064
12082
  let R = "kg-table-bottom";
12065
- return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (R += " kg-table-bottom--border"), R;
12083
+ return ((x = s.varGridConfig.value) == null ? void 0 : x.show_bottom_border_flg) === 1 && (R += " kg-table-bottom--border"), R;
12066
12084
  }), $ = ref([]), V = (de = u.store.getSelectedRowKeys(s.formID)) != null ? de : ref([]), O = reactive({
12067
12085
  pageIndex: 1,
12068
12086
  pageSize: 10,
@@ -12070,19 +12088,19 @@ const KgTable$1 = "", getProps$g = () => ({
12070
12088
  }), D = reactive({
12071
12089
  column: void 0,
12072
12090
  order: void 0
12073
- }), K = watch(u.pageSizeOption, (R) => {
12074
- R && (setTimeout(() => K()), O.pageSize = R, m.value = !0, KgLogger.debug(`${s.formID} | KgTable | isReadReady: ${m.value}`));
12091
+ }), N = watch(u.pageSizeOption, (R) => {
12092
+ R && (setTimeout(() => N()), O.pageSize = R, m.value = !0, KgLogger.debug(`${s.formID} | KgTable | isReadReady: ${m.value}`));
12075
12093
  }, {
12076
12094
  immediate: !0
12077
12095
  });
12078
12096
  watch(u.pageSizeOptions, (R) => {
12079
12097
  R.length > 0 && !R.includes(O.pageSize) && (O.pageSize = u.pageSizeOption.value);
12080
- }), watch([y, u.isReadAutomatically, l.isReady], ([R, U, W]) => {
12081
- R && U && W && !u.store.getIsRetrieved(s.formID) && H(!0);
12098
+ }), watch([y, u.isReadAutomatically, l.isReady], ([R, x, W]) => {
12099
+ R && x && W && !u.store.getIsRetrieved(s.formID) && G(!0);
12082
12100
  }, {
12083
12101
  immediate: !0
12084
- }), watch(s.isCreating, (R, U) => {
12085
- R === !0 ? L() : R === !1 && U === !0 && N();
12102
+ }), watch(s.isCreating, (R, x) => {
12103
+ R === !0 ? L() : R === !1 && x === !0 && H();
12086
12104
  }), onUnmounted(() => {
12087
12105
  u.store.dispose(s.formID);
12088
12106
  });
@@ -12094,14 +12112,14 @@ const KgTable$1 = "", getProps$g = () => ({
12094
12112
  $.value = [R, ...$.value], u.store.setSelectedRows(s.formID, [R]);
12095
12113
  }
12096
12114
  }
12097
- function N() {
12098
- const R = $.value.find((U) => U[u.id.value] === KG_TABLE_TEMP_ID);
12115
+ function H() {
12116
+ const R = $.value.find((x) => x[u.id.value] === KG_TABLE_TEMP_ID);
12099
12117
  R && ($.value = without$1($.value, R), u.store.setSelectedRows(s.formID, []));
12100
12118
  }
12101
- function B(R, U) {
12119
+ function K(R, x) {
12102
12120
  var W;
12103
12121
  if (!(!!T.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!A.value) {
12104
- if (!U) {
12122
+ if (!x) {
12105
12123
  u.store.setSelectedRows(s.formID, []);
12106
12124
  return;
12107
12125
  }
@@ -12111,27 +12129,27 @@ const KgTable$1 = "", getProps$g = () => ({
12111
12129
  case 0:
12112
12130
  break;
12113
12131
  case 1:
12114
- u.store.setSelectedRows(s.formID, [U]);
12132
+ u.store.setSelectedRows(s.formID, [x]);
12115
12133
  break;
12116
12134
  }
12117
12135
  break;
12118
12136
  case 2:
12119
12137
  u.store.emit(s.formID, "rowDoubleClick", {
12120
- row: U
12138
+ row: x
12121
12139
  });
12122
12140
  break;
12123
12141
  }
12124
12142
  }
12125
12143
  }
12126
- function H(R = !1) {
12144
+ function G(R = !1) {
12127
12145
  KgLogger.debug(`${s.formID} | KgTable | retrieve() | \u8FDB\u5165\u65B9\u6CD5.`);
12128
- const U = watch(m, (q) => {
12129
- q && (setTimeout(() => U()), W());
12146
+ const x = watch(m, (X) => {
12147
+ X && (setTimeout(() => x()), W());
12130
12148
  }, {
12131
12149
  immediate: !0
12132
12150
  });
12133
12151
  async function W() {
12134
- var q, F;
12152
+ var X, F;
12135
12153
  if (KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !y.value) {
12136
12154
  KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
12137
12155
  VarButton: s.varButtonSearch.value
@@ -12140,89 +12158,89 @@ const KgTable$1 = "", getProps$g = () => ({
12140
12158
  }
12141
12159
  R && (O.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
12142
12160
  try {
12143
- const x = KgUtil.parseParams(k.value, u.profileFormID.value, a), z = ref({});
12161
+ const B = KgUtil.parseParams(k.value, u.profileFormID.value, a), z = ref({});
12144
12162
  await u.store.emit(s.formID, "beforeRetrieve", {
12145
- params: x,
12163
+ params: B,
12146
12164
  response: z
12147
12165
  }) ? KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : z.value = await httpClient().request({
12148
12166
  method: "GET",
12149
12167
  url: y.value,
12150
- params: x
12168
+ params: B
12151
12169
  }, {
12152
12170
  successMessageMode: "none"
12153
12171
  });
12154
- let J = ref([]), ee = ref(0);
12172
+ let J = ref([]), Z = ref(0);
12155
12173
  switch (!0) {
12156
12174
  case !z.value:
12157
- J.value = [], ee.value = 0;
12175
+ J.value = [], Z.value = 0;
12158
12176
  break;
12159
12177
  case isArrayLike(z.value):
12160
- J.value = z.value, ee.value = z.value.length;
12178
+ J.value = z.value, Z.value = z.value.length;
12161
12179
  break;
12162
12180
  case ("total" in z.value && "records" in z.value):
12163
- J.value = (q = z.value.records) != null ? q : [], ee.value = (F = z.value.total) != null ? F : 0;
12181
+ J.value = (X = z.value.records) != null ? X : [], Z.value = (F = z.value.total) != null ? F : 0;
12164
12182
  break;
12165
12183
  }
12166
12184
  await u.store.emit(s.formID, "beforeSetDatas", {
12167
12185
  datas: J,
12168
- total: ee
12169
- }), $.value = J.value, O.total = ee.value, B(), v.value = [], await nextTick(), await u.store.emit(s.formID, "retrieve", {
12186
+ total: Z
12187
+ }), $.value = J.value, O.total = Z.value, K(), v.value = [], await nextTick(), await u.store.emit(s.formID, "retrieve", {
12170
12188
  page: z.value,
12171
12189
  datas: $
12172
12190
  }), u.store.setIsRetrieved(s.formID, !0);
12173
- } catch (x) {
12174
- throw x;
12191
+ } catch (B) {
12192
+ throw B;
12175
12193
  } finally {
12176
12194
  u.store.setIsRetrieving(s.formID, !1);
12177
12195
  }
12178
12196
  }
12179
12197
  }
12180
12198
  function Y(R) {
12181
- u.store.setSelectedRows(s.formID, R.map((U) => {
12199
+ u.store.setSelectedRows(s.formID, R.map((x) => {
12182
12200
  var W;
12183
- return (W = $.value) == null ? void 0 : W.find((q) => q[u.id.value] === U);
12184
- }).filter((U) => !!U));
12201
+ return (W = $.value) == null ? void 0 : W.find((X) => X[u.id.value] === x);
12202
+ }).filter((x) => !!x));
12185
12203
  }
12186
- function X(R) {
12187
- var U, W;
12204
+ function Q(R) {
12205
+ var x, W;
12188
12206
  switch (u.isMultiSelect.value) {
12189
12207
  case !0:
12190
12208
  {
12191
- const q = R[u.id.value];
12192
- V.value.includes(q) ? V.value = without$1(V.value, q) : V.value = [...(U = V.value) != null ? U : [], q];
12209
+ const X = R[u.id.value];
12210
+ V.value.includes(X) ? V.value = without$1(V.value, X) : V.value = [...(x = V.value) != null ? x : [], X];
12193
12211
  }
12194
12212
  break;
12195
12213
  case !1:
12196
12214
  {
12197
- const q = R[u.id.value];
12198
- (W = V.value) != null && W.includes(q) ? V.value = [] : V.value = [q];
12215
+ const X = R[u.id.value];
12216
+ (W = V.value) != null && W.includes(X) ? V.value = [] : V.value = [X];
12199
12217
  }
12200
12218
  break;
12201
12219
  }
12202
- u.store.setSelectedRows(s.formID, V.value.map((q) => {
12220
+ u.store.setSelectedRows(s.formID, V.value.map((X) => {
12203
12221
  var F;
12204
- return (F = $.value) == null ? void 0 : F.find((x) => x[u.id.value] === q);
12205
- }).filter((q) => !!q));
12222
+ return (F = $.value) == null ? void 0 : F.find((B) => B[u.id.value] === X);
12223
+ }).filter((X) => !!X));
12206
12224
  }
12207
- function Q(R, U) {
12208
- U.width = R, s.store.setVarGridDetailWidth(s.formID, U.dataIndex, R);
12225
+ function q(R, x) {
12226
+ x.width = R, s.store.setVarGridDetailWidth(s.formID, x.dataIndex, R);
12209
12227
  }
12210
- async function Z(R, U, W, q) {
12228
+ async function te(R, x, W, X) {
12211
12229
  var F;
12212
- switch (q.action) {
12230
+ switch (X.action) {
12213
12231
  case "sort":
12214
12232
  {
12215
12233
  await nextTick();
12216
- let x = W;
12217
- x.order ? (D.column = (F = x.field) != null ? F : void 0, D.order = x.order === "ascend" ? "asc" : x.order === "descend" ? "desc" : void 0) : (D.column = void 0, D.order = void 0), H(!0);
12234
+ let B = W;
12235
+ B.order ? (D.column = (F = B.field) != null ? F : void 0, D.order = B.order === "ascend" ? "asc" : B.order === "descend" ? "desc" : void 0) : (D.column = void 0, D.order = void 0), G(!0);
12218
12236
  }
12219
12237
  break;
12220
12238
  }
12221
12239
  }
12222
- function ae(R, U) {
12223
- var q;
12224
- const W = U[u.id.value];
12225
- switch ((q = s.varGridConfig.value) == null ? void 0 : q.expand_accordion_flg) {
12240
+ function re(R, x) {
12241
+ var X;
12242
+ const W = x[u.id.value];
12243
+ switch ((X = s.varGridConfig.value) == null ? void 0 : X.expand_accordion_flg) {
12226
12244
  case 0:
12227
12245
  R ? v.value = uniq([...v.value, W]) : v.value = without$1(v.value, W);
12228
12246
  break;
@@ -12231,20 +12249,20 @@ const KgTable$1 = "", getProps$g = () => ({
12231
12249
  break;
12232
12250
  }
12233
12251
  }
12234
- function ne(R, U) {
12235
- U !== O.pageSize ? (O.pageIndex = 1, O.pageSize = U) : O.pageIndex = R, H();
12252
+ function ne(R, x) {
12253
+ x !== O.pageSize ? (O.pageIndex = 1, O.pageSize = x) : O.pageIndex = R, G();
12236
12254
  }
12237
12255
  function le(R) {
12238
- u.store.setSelectedRows(s.formID, [R].map((U) => {
12256
+ u.store.setSelectedRows(s.formID, [R].map((x) => {
12239
12257
  var W;
12240
- return (W = $.value) == null ? void 0 : W.find((q) => q[u.id.value] === U[u.id.value]);
12241
- }).filter((U) => !!U)), c.click(s.formID, KG_BUTTON_TYPE.UPDATE);
12258
+ return (W = $.value) == null ? void 0 : W.find((X) => X[u.id.value] === x[u.id.value]);
12259
+ }).filter((x) => !!x)), c.click(s.formID, KG_BUTTON_TYPE.UPDATE);
12242
12260
  }
12243
12261
  function ce({
12244
12262
  title: R,
12245
- column: U
12263
+ column: x
12246
12264
  }) {
12247
- switch (U.dataIndex) {
12265
+ switch (x.dataIndex) {
12248
12266
  case "index":
12249
12267
  return createVNode(KgTableSetting, {
12250
12268
  kgDisabled: T.value
@@ -12253,7 +12271,7 @@ const KgTable$1 = "", getProps$g = () => ({
12253
12271
  return createVNode("pre", null, [R]);
12254
12272
  }
12255
12273
  }
12256
- function re() {
12274
+ function ae() {
12257
12275
  var R;
12258
12276
  return (R = n == null ? void 0 : n.KgTable) != null && R["summary.bodyCell"] ? createVNode(TableSummary, {
12259
12277
  fixed: "bottom"
@@ -12263,18 +12281,18 @@ const KgTable$1 = "", getProps$g = () => ({
12263
12281
  index: 0
12264
12282
  }, null), I.value && createVNode(TableSummary.Cell, {
12265
12283
  index: P.value ? 1 : 0
12266
- }, null), C.value.map((U, W) => {
12267
- const q = s.store.getVarGridDetail(s.formID, U.dataIndex);
12284
+ }, null), C.value.map((x, W) => {
12285
+ const X = s.store.getVarGridDetail(s.formID, x.dataIndex);
12268
12286
  let F = W;
12269
12287
  return P.value && I.value ? F += 2 : (P.value || I.value) && (F += 1), createVNode(TableSummary.Cell, {
12270
12288
  index: F
12271
12289
  }, {
12272
12290
  default: () => {
12273
- var x, z;
12274
- return [(z = (x = n == null ? void 0 : n.KgTable) == null ? void 0 : x["summary.bodyCell"]) == null ? void 0 : z.call(x, {
12275
- column: U,
12291
+ var B, z;
12292
+ return [(z = (B = n == null ? void 0 : n.KgTable) == null ? void 0 : B["summary.bodyCell"]) == null ? void 0 : z.call(B, {
12293
+ column: x,
12276
12294
  index: F,
12277
- varGridDetail: q
12295
+ varGridDetail: X
12278
12296
  })];
12279
12297
  }
12280
12298
  });
@@ -12284,37 +12302,37 @@ const KgTable$1 = "", getProps$g = () => ({
12284
12302
  }
12285
12303
  function ue({
12286
12304
  column: R,
12287
- index: U,
12305
+ index: x,
12288
12306
  record: W,
12289
- text: q,
12307
+ text: X,
12290
12308
  value: F
12291
12309
  }) {
12292
12310
  var J;
12293
- let x = "";
12294
- R.customRender ? x = R.customRender({
12295
- index: U,
12311
+ let B = "";
12312
+ R.customRender ? B = R.customRender({
12313
+ index: x,
12296
12314
  record: W,
12297
12315
  column: R,
12298
- text: q,
12316
+ text: X,
12299
12317
  value: F,
12300
- renderIndex: U
12301
- }) : x = F;
12318
+ renderIndex: x
12319
+ }) : B = F;
12302
12320
  const z = createVNode(KgTableCell, {
12303
12321
  kgRow: W,
12304
- kgValue: x,
12322
+ kgValue: B,
12305
12323
  kgVarName: R.dataIndex,
12306
12324
  onKgUpdateLinkClick: () => le(W)
12307
12325
  }, null);
12308
12326
  if ((J = n == null ? void 0 : n.KgTable) != null && J.bodyCell) {
12309
- const ee = R.dataIndex ? s.store.getVarGridDetail(s.formID, R.dataIndex) : null;
12327
+ const Z = R.dataIndex ? s.store.getVarGridDetail(s.formID, R.dataIndex) : null;
12310
12328
  return n.KgTable.bodyCell({
12311
12329
  column: R,
12312
- index: U,
12330
+ index: x,
12313
12331
  record: W,
12314
- text: q,
12332
+ text: X,
12315
12333
  value: F,
12316
12334
  row: W,
12317
- varGridDetail: ee,
12335
+ varGridDetail: Z,
12318
12336
  defaultRender: z
12319
12337
  });
12320
12338
  } else
@@ -12345,20 +12363,20 @@ const KgTable$1 = "", getProps$g = () => ({
12345
12363
  expandColumnWidth: 28,
12346
12364
  expandedRowKeys: v.value,
12347
12365
  rowSelection: A.value,
12348
- customRow: (U) => ({
12349
- onClick: (W) => B(W, U)
12366
+ customRow: (x) => ({
12367
+ onClick: (W) => K(W, x)
12350
12368
  }),
12351
- onResizeColumn: Q,
12352
- onChange: Z,
12353
- onExpand: ae
12369
+ onResizeColumn: q,
12370
+ onChange: te,
12371
+ onExpand: re
12354
12372
  }, {
12355
12373
  headerCell: ce,
12356
12374
  bodyCell: ue,
12357
12375
  emptyText: fe,
12358
12376
  expandedRowRender: (R = n == null ? void 0 : n.KgTable) == null ? void 0 : R.expandedRowRender,
12359
- summary: re
12377
+ summary: ae
12360
12378
  }), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
12361
- class: G.value
12379
+ class: U.value
12362
12380
  }, [createVNode("div", {
12363
12381
  class: "left"
12364
12382
  }, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
@@ -12373,7 +12391,7 @@ const KgTable$1 = "", getProps$g = () => ({
12373
12391
  size: "default",
12374
12392
  current: O.pageIndex,
12375
12393
  pageSize: O.pageSize,
12376
- pageSizeOptions: u.pageSizeOptions.value.map((U) => String(U)),
12394
+ pageSizeOptions: u.pageSizeOptions.value.map((x) => String(x)),
12377
12395
  total: O.total,
12378
12396
  showSizeChanger: !0,
12379
12397
  showQuickJumper: !1,
@@ -12382,12 +12400,12 @@ const KgTable$1 = "", getProps$g = () => ({
12382
12400
  locale: {
12383
12401
  page: ""
12384
12402
  },
12385
- showTotal: (U, W) => i.t("kg.KgTable.totalText", {
12403
+ showTotal: (x, W) => i.t("kg.KgTable.totalText", {
12386
12404
  from: W[0],
12387
12405
  to: W[1],
12388
- total: U
12406
+ total: x
12389
12407
  }),
12390
- onChange: (U, W) => ne(U, W)
12408
+ onChange: (x, W) => ne(x, W)
12391
12409
  }, null)])])]);
12392
12410
  };
12393
12411
  }
@@ -12966,7 +12984,7 @@ const KgButtonCreate = defineComponent({
12966
12984
  }), ((M = e.kgButton) == null ? void 0 : M.reload_all_after_done_flg) === 1 && (((E = e.kgButton) == null ? void 0 : E.re_select_after_reload_flg) !== 0 && n.onRetrieve(async ({
12967
12985
  datas: P
12968
12986
  }) => {
12969
- const I = P.value, A = intersectionWith$1(I, _ != null ? _ : [], (w, G) => (w == null ? void 0 : w[n.id.value]) === (G == null ? void 0 : G[n.id.value]));
12987
+ const I = P.value, A = intersectionWith$1(I, _ != null ? _ : [], (w, U) => (w == null ? void 0 : w[n.id.value]) === (U == null ? void 0 : U[n.id.value]));
12970
12988
  return A.length > 0 && n.store.setSelectedRows(r.formID, A), !1;
12971
12989
  }, !0), a.search(!0));
12972
12990
  } catch (P) {
@@ -13451,7 +13469,11 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
13451
13469
  const a = watch(
13452
13470
  () => this.modelMap.get(e),
13453
13471
  (n) => {
13454
- n && (setTimeout(() => a(), 0), Object.entries(t).forEach(([o, i]) => n[o] = i), r());
13472
+ n && setTimeout(() => {
13473
+ a(), Object.entries(t).forEach(([o, i]) => {
13474
+ o in n && (n[o] = i);
13475
+ }), r();
13476
+ });
13455
13477
  },
13456
13478
  { immediate: !0 }
13457
13479
  );
@@ -13709,10 +13731,10 @@ const leftVarProfileDetailColumns = (e) => {
13709
13731
  });
13710
13732
  l.value = l.value.map((w) => {
13711
13733
  var $;
13712
- const G = ($ = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : $.find((V) => V.var_nam === w.var_nam);
13713
- return G ? {
13734
+ const U = ($ = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : $.find((V) => V.var_nam === w.var_nam);
13735
+ return U ? {
13714
13736
  ...w,
13715
- ...G,
13737
+ ...U,
13716
13738
  id: w.id
13717
13739
  } : w;
13718
13740
  });
@@ -13800,8 +13822,8 @@ const leftVarProfileDetailColumns = (e) => {
13800
13822
  columns: M === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
13801
13823
  rowKey: "id",
13802
13824
  dataSource: E,
13803
- customRow: (G) => ({
13804
- onClick: ($) => C($, G, M, P)
13825
+ customRow: (U) => ({
13826
+ onClick: ($) => C($, U, M, P)
13805
13827
  }),
13806
13828
  rowSelection: m({
13807
13829
  disabled: I,
@@ -13995,20 +14017,28 @@ function _useFormModel(e, t) {
13995
14017
  } = _useCommon();
13996
14018
  let s;
13997
14019
  const l = ref({});
13998
- return watch(a.currentVarProfileDetails, async (c) => {
13999
- l.value = {}, c != null && c.length && (c.forEach((u) => {
14000
- var m, v;
14001
- const d = (m = u.var_nam) != null ? m : "";
14002
- l.value[d] = KgVarUtil.transformValueByControlType(a.formID, d, r, (v = u.dft_val) != null ? v : void 0, "R");
14003
- }), t.value.kgHeight = i.value, n.store.setModel(a.formID, l.value), o.value ? (s == null || s(), s = watch(e, async (u) => {
14004
- u && (await n.store.emit(a.formID, "ready", {}), n.store.setIsReady(a.formID, !0));
14020
+ async function c() {
14021
+ var u;
14022
+ ((u = a.currentVarProfileDetails.value) != null ? u : []).forEach((d) => {
14023
+ var v, C;
14024
+ const m = (v = d.var_nam) != null ? v : "";
14025
+ l.value[m] = KgVarUtil.transformValueByControlType(a.formID, m, r, (C = d.dft_val) != null ? C : void 0, "R");
14026
+ }), t.value.kgHeight = i.value, n.store.setModel(a.formID, l.value), o.value ? (s == null || s(), s = watch(e, async (d) => {
14027
+ d && (await n.store.emit(a.formID, "ready", {}), n.store.setIsReady(a.formID, !0));
14005
14028
  }, {
14006
14029
  immediate: !0
14007
- })) : (await n.store.emit(a.formID, "ready", {}), n.store.setIsReady(a.formID, !0)));
14030
+ })) : (await n.store.emit(a.formID, "ready", {}), n.store.setIsReady(a.formID, !0));
14031
+ }
14032
+ return watch(a.currentVarProfileDetails, async (u) => {
14033
+ if (l.value = {}, isNil(u)) {
14034
+ n.store.setModel(a.formID, l.value);
14035
+ return;
14036
+ }
14037
+ await c();
14008
14038
  }, {
14009
14039
  immediate: !0
14010
14040
  }), {
14011
- model: l
14041
+ initFormModel: c
14012
14042
  };
14013
14043
  }
14014
14044
  const KgSearch$1 = "", getProps$9 = () => ({
@@ -14034,25 +14064,25 @@ const KgSearch$1 = "", getProps$9 = () => ({
14034
14064
  } = _useCommon(), v = ref(null), C = ref({
14035
14065
  kgHeight: m.value
14036
14066
  });
14037
- _useLayoutHeaderResizeObserver(), _useFormModel(v, C);
14038
- const g = computed(() => {
14039
- var N, B, H, Y;
14040
- if (!isNil((B = (N = r == null ? void 0 : r.value) == null ? void 0 : N.KgSearch) == null ? void 0 : B.kgDisabled))
14041
- return (Y = (H = r == null ? void 0 : r.value) == null ? void 0 : H.KgSearch) == null ? void 0 : Y.kgDisabled;
14067
+ _useLayoutHeaderResizeObserver();
14068
+ const g = _useFormModel(v, C), _ = computed(() => {
14069
+ var K, G, Y, Q;
14070
+ if (!isNil((G = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : G.kgDisabled))
14071
+ return (Q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgSearch) == null ? void 0 : Q.kgDisabled;
14042
14072
  if (!isNil(e.kgDisabled))
14043
14073
  return e.kgDisabled;
14044
- }), _ = computed(() => {
14045
- var N, B;
14046
- return !!(g.value || i.isRetrieving.value || ((N = n.varButtonSearch.value) == null ? void 0 : N.permission_type) === 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
14047
- }), b = computed(() => !!(g.value || i.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), y = computed(() => !!(g.value || i.isRetrieving.value)), k = ref({
14074
+ }), b = computed(() => {
14075
+ var K, G;
14076
+ return !!(_.value || i.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((G = n.varButtonSearch.value) == null ? void 0 : G.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
14077
+ }), y = computed(() => !!(_.value || i.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), k = computed(() => !!(_.value || i.isRetrieving.value)), T = ref({
14048
14078
  visible: !1
14049
- }), T = computed(() => C.value.kgHeight === m.value), M = computed(() => {
14050
- var N, B, H;
14051
- if (n.t((N = n.varButtonSearch.value) == null ? void 0 : N.var_nam).value !== ((B = n.varButtonSearch.value) == null ? void 0 : B.var_nam))
14052
- return n.t((H = n.varButtonSearch.value) == null ? void 0 : H.var_nam).value;
14053
- }), E = computed(() => {
14054
- var N;
14055
- switch ((N = n.varButtonSearch.value) == null ? void 0 : N.primary_flg) {
14079
+ }), M = computed(() => C.value.kgHeight === m.value), E = computed(() => {
14080
+ var K, G, Y;
14081
+ if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((G = n.varButtonSearch.value) == null ? void 0 : G.var_nam))
14082
+ return n.t((Y = n.varButtonSearch.value) == null ? void 0 : Y.var_nam).value;
14083
+ }), P = computed(() => {
14084
+ var K;
14085
+ switch ((K = n.varButtonSearch.value) == null ? void 0 : K.primary_flg) {
14056
14086
  case 1:
14057
14087
  return !0;
14058
14088
  case 0:
@@ -14060,124 +14090,123 @@ const KgSearch$1 = "", getProps$9 = () => ({
14060
14090
  default:
14061
14091
  return !0;
14062
14092
  }
14063
- }), P = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), I = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), A = computed(() => {
14064
- let N = "kg-search";
14065
- return s.value && (N += " kg-search--visible"), c.value && (N += " kg-search--teleport"), N;
14093
+ }), I = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), A = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), w = computed(() => {
14094
+ let K = "kg-search";
14095
+ return s.value && (K += " kg-search--visible"), c.value && (K += " kg-search--teleport"), K;
14066
14096
  });
14067
14097
  onUnmounted(() => {
14068
14098
  o.store.dispose(n.formID);
14069
14099
  });
14070
- async function w(N = !1) {
14071
- _.value || (s.value ? v.value && v.value.validate().then(async () => {
14100
+ async function U(K = !1) {
14101
+ b.value || (s.value ? v.value && v.value.validate().then(async () => {
14072
14102
  await o.store.emit(n.formID, "search", {
14073
- resetPageIndex: N
14103
+ resetPageIndex: K
14074
14104
  });
14075
- }).catch((B) => {
14105
+ }).catch((G) => {
14076
14106
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
14077
- e: B
14107
+ e: G
14078
14108
  });
14079
14109
  }) : await o.store.emit(n.formID, "search", {
14080
- resetPageIndex: N
14110
+ resetPageIndex: K
14081
14111
  }));
14082
14112
  }
14083
- o.store.setSearchFn(n.formID, w);
14084
- async function G() {
14085
- var N;
14086
- (N = v.value) == null || N.resetFields(), s.value ? v.value && v.value.validate().then(async () => {
14113
+ o.store.setSearchFn(n.formID, U);
14114
+ async function $() {
14115
+ g.initFormModel(), s.value ? v.value && v.value.validate().then(async () => {
14087
14116
  await o.store.emit(n.formID, "reset", {});
14088
- }).catch((B) => {
14117
+ }).catch((K) => {
14089
14118
  KgLogger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
14090
- e: B
14119
+ e: K
14091
14120
  });
14092
14121
  }) : await o.store.emit(n.formID, "reset", {});
14093
14122
  }
14094
- o.store.setResetFn(n.formID, G);
14095
- function $() {
14096
- return w(!0), Promise.resolve(!0);
14097
- }
14123
+ o.store.setResetFn(n.formID, $);
14098
14124
  function V() {
14099
- var N;
14125
+ return U(!0), Promise.resolve(!0);
14126
+ }
14127
+ function O() {
14128
+ var K;
14100
14129
  return createVNode("div", {
14101
14130
  class: "title",
14102
- onClick: L
14103
- }, [((N = t == null ? void 0 : t.KgSearch) == null ? void 0 : N.left) && createVNode("div", {
14131
+ onClick: H
14132
+ }, [((K = t == null ? void 0 : t.KgSearch) == null ? void 0 : K.left) && createVNode("div", {
14104
14133
  class: "kg-search-title-left",
14105
- onClick: (B) => {
14106
- B.stopPropagation(), B.preventDefault();
14134
+ onClick: (G) => {
14135
+ G.stopPropagation(), G.preventDefault();
14107
14136
  }
14108
- }, [t.KgSearch.left()]), T.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
14137
+ }, [t.KgSearch.left()]), M.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
14109
14138
  }
14110
- function O() {
14111
- var N, B, H, Y;
14112
- return ((H = (B = (N = n.varProfileMasters) == null ? void 0 : N.value) == null ? void 0 : B.length) != null ? H : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
14113
- value: (Y = n.currentVarProfileMasterID.value) != null ? Y : void 0,
14114
- "onUpdate:value": (X) => n.store.setCurrentVarProfileMasterID(n.formID, X),
14115
- disabled: b.value,
14139
+ function D() {
14140
+ var K, G, Y, Q;
14141
+ return ((Y = (G = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : G.length) != null ? Y : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
14142
+ value: (Q = n.currentVarProfileMasterID.value) != null ? Q : void 0,
14143
+ "onUpdate:value": (q) => n.store.setCurrentVarProfileMasterID(n.formID, q),
14144
+ disabled: y.value,
14116
14145
  class: "kg-search-profile-master-select"
14117
14146
  }, {
14118
14147
  default: () => {
14119
- var X, Q;
14120
- return (Q = (X = n.varProfileMasters) == null ? void 0 : X.value) == null ? void 0 : Q.map((Z) => createVNode(Select.Option, {
14121
- value: Z.id
14148
+ var q, te;
14149
+ return (te = (q = n.varProfileMasters) == null ? void 0 : q.value) == null ? void 0 : te.map((re) => createVNode(Select.Option, {
14150
+ value: re.id
14122
14151
  }, {
14123
- default: () => [n.t(Z == null ? void 0 : Z.prf_var_nam).value]
14152
+ default: () => [n.t(re == null ? void 0 : re.prf_var_nam).value]
14124
14153
  }));
14125
14154
  },
14126
14155
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
14127
14156
  }), createVNode(Button, {
14128
- disabled: b.value,
14157
+ disabled: y.value,
14129
14158
  onClick: () => {
14130
- k.value.visible = !0;
14159
+ T.value.visible = !0;
14131
14160
  },
14132
14161
  class: "kg-search-profile-master-btn"
14133
14162
  }, {
14134
14163
  default: () => [createVNode(SettingOutlined$1, null, null)]
14135
14164
  }), createVNode(KgSearchConfigModal, {
14136
- visible: k.value.visible,
14137
- "onUpdate:visible": (X) => k.value.visible = X,
14165
+ visible: T.value.visible,
14166
+ "onUpdate:visible": (q) => T.value.visible = q,
14138
14167
  hostFormID: n.formID
14139
14168
  }, null)]);
14140
14169
  }
14141
- function D() {
14142
- var N, B, H, Y, X;
14143
- return createVNode(Fragment, null, [O(), !(((N = n.varButtonSearch.value) == null ? void 0 : N.permission_type) !== 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
14170
+ function N() {
14171
+ var K, G, Y, Q, q;
14172
+ return createVNode(Fragment, null, [D(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((G = n.varButtonSearch.value) == null ? void 0 : G.permission_code)) && createVNode(Button, {
14144
14173
  type: "primary",
14145
- ghost: !_.value,
14146
- disabled: _.value,
14147
- onClick: G,
14174
+ ghost: !b.value,
14175
+ disabled: b.value,
14176
+ onClick: $,
14148
14177
  class: "kg-search-btn-reset"
14149
14178
  }, {
14150
14179
  default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
14151
14180
  }), createVNode(KgButton.Item, {
14152
14181
  kgType: KG_BUTTON_TYPE.SEARCH,
14153
- kgVarName: (H = n.varButtonSearch.value) == null ? void 0 : H.var_nam,
14154
- kgIcon: (Y = n.varButtonSearch.value) == null ? void 0 : Y.icon,
14155
- kgText: M.value,
14156
- kgColor: (X = n.varButtonSearch.value) == null ? void 0 : X.color,
14157
- kgPrimary: E.value,
14158
- kgLoading: y.value,
14159
- onKgClick: $
14182
+ kgVarName: (Y = n.varButtonSearch.value) == null ? void 0 : Y.var_nam,
14183
+ kgIcon: (Q = n.varButtonSearch.value) == null ? void 0 : Q.icon,
14184
+ kgText: E.value,
14185
+ kgColor: (q = n.varButtonSearch.value) == null ? void 0 : q.color,
14186
+ kgPrimary: P.value,
14187
+ kgLoading: k.value,
14188
+ onKgClick: V
14160
14189
  }, null)]);
14161
14190
  }
14162
- function K() {
14191
+ function L() {
14163
14192
  return createVNode(Spin, {
14164
- spinning: I.value
14193
+ spinning: A.value
14165
14194
  }, {
14166
14195
  default: () => {
14167
- var N;
14196
+ var K;
14168
14197
  return [createVNode(KgForm, {
14169
14198
  ref: v,
14170
- model: (N = o.model.value) != null ? N : {}
14199
+ model: (K = o.model.value) != null ? K : {}
14171
14200
  }, {
14172
14201
  default: () => [createVNode(Row, {
14173
14202
  gutter: 6
14174
14203
  }, {
14175
14204
  default: () => {
14176
- var B;
14177
- return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((H) => createVNode(KgForm.Item, {
14178
- kgVarName: H.var_nam,
14205
+ var G;
14206
+ return [(G = n.currentVarProfileDetails.value) == null ? void 0 : G.map((Y) => createVNode(KgForm.Item, {
14207
+ kgVarName: Y.var_nam,
14179
14208
  kgContext: KG_FORM_CONTEXT.SEARCH,
14180
- onKgSubmit: () => w(!0)
14209
+ onKgSubmit: () => U(!0)
14181
14210
  }, null))];
14182
14211
  }
14183
14212
  })]
@@ -14185,16 +14214,16 @@ const KgSearch$1 = "", getProps$9 = () => ({
14185
14214
  }
14186
14215
  });
14187
14216
  }
14188
- function L() {
14189
- T.value ? C.value.kgHeight = u.value : C.value.kgHeight = m.value;
14217
+ function H() {
14218
+ M.value ? C.value.kgHeight = u.value : C.value.kgHeight = m.value;
14190
14219
  }
14191
14220
  return () => createVNode(KgResizable, {
14192
14221
  kgHeight: C.value.kgHeight,
14193
- "onUpdate:kgHeight": (N) => C.value.kgHeight = N,
14222
+ "onUpdate:kgHeight": (K) => C.value.kgHeight = K,
14194
14223
  kgMinHeight: m.value,
14195
14224
  kgMaxHeight: d.value,
14196
14225
  kgDisabled: !l.value,
14197
- kgClass: A.value,
14226
+ kgClass: w.value,
14198
14227
  "kg-frm_id": n.formID
14199
14228
  }, {
14200
14229
  default: () => [s.value && createVNode("div", {
@@ -14208,17 +14237,17 @@ const KgSearch$1 = "", getProps$9 = () => ({
14208
14237
  default: () => [createVNode("div", {
14209
14238
  class: "ant-collapse-header"
14210
14239
  }, [createVNode(Spin, {
14211
- spinning: P.value
14240
+ spinning: I.value
14212
14241
  }, {
14213
- default: () => [V(), createVNode("div", {
14242
+ default: () => [O(), createVNode("div", {
14214
14243
  class: "ant-collapse-extra"
14215
- }, [D()])]
14244
+ }, [N()])]
14216
14245
  })])]
14217
14246
  }), createVNode("div", {
14218
14247
  class: "ant-collapse-content ant-collapse-content-active"
14219
14248
  }, [createVNode("div", {
14220
14249
  class: "ant-collapse-content-box"
14221
- }, [K()])])])])]
14250
+ }, [L()])])])])]
14222
14251
  });
14223
14252
  }
14224
14253
  });
@@ -14709,7 +14738,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14709
14738
  n.value = !0;
14710
14739
  try {
14711
14740
  const {
14712
- records: K
14741
+ records: N
14713
14742
  } = await List({
14714
14743
  params: {
14715
14744
  pageNo: 1,
@@ -14720,16 +14749,16 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14720
14749
  order: "asc"
14721
14750
  }
14722
14751
  });
14723
- if (u.value = null, c.value = K != null ? K : [], $) {
14724
- const L = c.value.find((N) => {
14725
- var B;
14726
- return N.id === ((B = a.getSelectedVarCatalog) == null ? void 0 : B.id);
14752
+ if (u.value = null, c.value = N != null ? N : [], $) {
14753
+ const L = c.value.find((H) => {
14754
+ var K;
14755
+ return H.id === ((K = a.getSelectedVarCatalog) == null ? void 0 : K.id);
14727
14756
  });
14728
14757
  a.setSelectedVarCatalog(L != null ? L : null), d.value = L != null && L.id ? [L.id] : [];
14729
14758
  } else
14730
14759
  a.setSelectedVarCatalog((O = c.value[0]) != null ? O : null), d.value = (D = c.value[0]) != null && D.id ? [c.value[0].id] : [];
14731
- } catch (K) {
14732
- KgLogger.debug(K == null ? void 0 : K.message);
14760
+ } catch (N) {
14761
+ KgLogger.debug(N == null ? void 0 : N.message);
14733
14762
  } finally {
14734
14763
  n.value = !1;
14735
14764
  }
@@ -14771,14 +14800,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14771
14800
  isAllForm: $,
14772
14801
  isAllLanguage: V
14773
14802
  }) {
14774
- var O, D, K;
14803
+ var O, D, N;
14775
14804
  u.value = new VarCatalog({
14776
14805
  id: "",
14777
14806
  cust_lvl: KG_CUSTOM_LEVEL.L10,
14778
14807
  grp_nam: (O = a.getSelectedVar) == null ? void 0 : O.grp_nam,
14779
14808
  var_nam: (D = a.getSelectedVar) == null ? void 0 : D.var_nam,
14780
14809
  frm_id: $ || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
14781
- locale_id: V ? "ALL" : (K = t.locale) == null ? void 0 : K.value,
14810
+ locale_id: V ? "ALL" : (N = t.locale) == null ? void 0 : N.value,
14782
14811
  var_text: ""
14783
14812
  }), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
14784
14813
  }
@@ -14876,7 +14905,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14876
14905
  default: () => [V]
14877
14906
  })])]);
14878
14907
  }
14879
- function G($) {
14908
+ function U($) {
14880
14909
  var O;
14881
14910
  let V = "";
14882
14911
  return $.id || (V += " ant-table-row-create"), $.id === ((O = a.getSelectedVarCatalog) == null ? void 0 : O.id) && (V += " ant-table-row-selected "), V;
@@ -14895,7 +14924,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14895
14924
  rowKey: "id",
14896
14925
  dataSource: c.value,
14897
14926
  loading: n.value,
14898
- rowClassName: G,
14927
+ rowClassName: U,
14899
14928
  rowSelection: m.value,
14900
14929
  customRow: ($) => ({
14901
14930
  onClick: () => P($)
@@ -15236,8 +15265,8 @@ const KgWarehouse$1 = "", getProps = () => ({
15236
15265
  var M;
15237
15266
  const T = (M = o.value) == null ? void 0 : M.toUpperCase();
15238
15267
  return u.value.filter((E) => {
15239
- var P, I, A, w, G, $;
15240
- return ((I = (P = E.whDsc) == null ? void 0 : P.toUpperCase()) == null ? void 0 : I.includes(T)) || ((w = (A = E.whId) == null ? void 0 : A.toUpperCase()) == null ? void 0 : w.includes(T)) || (($ = (G = E.adrId) == null ? void 0 : G.toUpperCase()) == null ? void 0 : $.includes(T));
15268
+ var P, I, A, w, U, $;
15269
+ return ((I = (P = E.whDsc) == null ? void 0 : P.toUpperCase()) == null ? void 0 : I.includes(T)) || ((w = (A = E.whId) == null ? void 0 : A.toUpperCase()) == null ? void 0 : w.includes(T)) || (($ = (U = E.adrId) == null ? void 0 : U.toUpperCase()) == null ? void 0 : $.includes(T));
15241
15270
  });
15242
15271
  }), m = computed(() => {
15243
15272
  var T, M;