@kengic/vue 0.6.12 → 0.6.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -3306,8 +3306,8 @@ function sendQuery(e, t, r, a) {
3306
3306
  if (e.random) {
3307
3307
  let E = e.resources.slice(0);
3308
3308
  for (i = []; E.length > 1; ) {
3309
- const N = Math.floor(Math.random() * E.length);
3310
- i.push(E[N]), E = E.slice(0, N).concat(E.slice(N + 1));
3309
+ const P = Math.floor(Math.random() * E.length);
3310
+ i.push(E[P]), E = E.slice(0, P).concat(E.slice(P + 1));
3311
3311
  }
3312
3312
  i = i.concat(E);
3313
3313
  } else
@@ -3323,8 +3323,8 @@ function sendQuery(e, t, r, a) {
3323
3323
  E.status === "pending" && (E.status = "aborted");
3324
3324
  }), m = [];
3325
3325
  }
3326
- function _(E, N) {
3327
- N && (v = []), typeof E == "function" && v.push(E);
3326
+ function _(E, P) {
3327
+ P && (v = []), typeof E == "function" && v.push(E);
3328
3328
  }
3329
3329
  function b() {
3330
3330
  return {
@@ -3347,8 +3347,8 @@ function sendQuery(e, t, r, a) {
3347
3347
  E.status === "pending" && (E.status = "aborted");
3348
3348
  }), m = [];
3349
3349
  }
3350
- function T(E, N, I) {
3351
- const A = N !== "success";
3350
+ function T(E, P, I) {
3351
+ const A = P !== "success";
3352
3352
  switch (m = m.filter((w) => w !== E), l) {
3353
3353
  case "pending":
3354
3354
  break;
@@ -3359,7 +3359,7 @@ function sendQuery(e, t, r, a) {
3359
3359
  default:
3360
3360
  return;
3361
3361
  }
3362
- if (N === "abort") {
3362
+ if (P === "abort") {
3363
3363
  u = I, y();
3364
3364
  return;
3365
3365
  }
@@ -3390,14 +3390,14 @@ function sendQuery(e, t, r, a) {
3390
3390
  y();
3391
3391
  return;
3392
3392
  }
3393
- const N = {
3393
+ const P = {
3394
3394
  status: "pending",
3395
3395
  resource: E,
3396
3396
  callback: (I, A) => {
3397
- T(N, I, A);
3397
+ T(P, I, A);
3398
3398
  }
3399
3399
  };
3400
- m.push(N), c++, d = setTimeout(M, e.rotate), r(E, t, N.callback);
3400
+ m.push(P), c++, d = setTimeout(M, e.rotate), r(E, t, P.callback);
3401
3401
  }
3402
3402
  return setTimeout(M), b;
3403
3403
  }
@@ -3928,206 +3928,206 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3928
3928
  (function(r, a) {
3929
3929
  e.exports = a();
3930
3930
  })(commonjsGlobal, function() {
3931
- var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", C = "date", g = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(P) {
3932
- var V = ["th", "st", "nd", "rd"], D = P % 100;
3933
- return "[" + P + (V[(D - 20) % 10] || V[D] || V[0]) + "]";
3934
- } }, k = function(P, V, D) {
3935
- var O = String(P);
3936
- return !O || O.length >= V ? P : "" + Array(V + 1 - O.length).join(D) + P;
3937
- }, T = { s: k, z: function(P) {
3938
- var V = -P.utcOffset(), D = Math.abs(V), O = Math.floor(D / 60), R = D % 60;
3939
- return (V <= 0 ? "+" : "-") + k(O, 2, "0") + ":" + k(R, 2, "0");
3940
- }, m: function P(V, D) {
3941
- if (V.date() < D.date())
3942
- return -P(D, V);
3943
- var O = 12 * (D.year() - V.year()) + (D.month() - V.month()), R = V.clone().add(O, d), x = D - R < 0, G = V.clone().add(O + (x ? -1 : 1), d);
3944
- return +(-(O + (D - R) / (x ? R - G : G - R)) || 0);
3945
- }, a: function(P) {
3946
- return P < 0 ? Math.ceil(P) || 0 : Math.floor(P);
3947
- }, p: function(P) {
3948
- return { M: d, y: v, w: u, d: c, D: C, h: l, m: s, s: i, ms: o, Q: m }[P] || String(P || "").toLowerCase().replace(/s$/, "");
3949
- }, u: function(P) {
3950
- return P === void 0;
3931
+ var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", C = "date", g = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(V) {
3932
+ var O = ["th", "st", "nd", "rd"], D = V % 100;
3933
+ return "[" + V + (O[(D - 20) % 10] || O[D] || O[0]) + "]";
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;
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");
3940
+ }, m: function V(O, D) {
3941
+ if (O.date() < D.date())
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);
3945
+ }, a: function(V) {
3946
+ return V < 0 ? Math.ceil(V) || 0 : Math.floor(V);
3947
+ }, p: function(V) {
3948
+ return { M: d, y: v, w: u, d: c, D: C, h: l, m: s, s: i, ms: o, Q: m }[V] || String(V || "").toLowerCase().replace(/s$/, "");
3949
+ }, u: function(V) {
3950
+ return V === void 0;
3951
3951
  } }, M = "en", E = {};
3952
3952
  E[M] = y;
3953
- var N = function(P) {
3954
- return P instanceof F;
3955
- }, I = function P(V, D, O) {
3956
- var R;
3957
- if (!V)
3953
+ var P = function(V) {
3954
+ return V instanceof G;
3955
+ }, I = function V(O, D, K) {
3956
+ var L;
3957
+ if (!O)
3958
3958
  return M;
3959
- if (typeof V == "string") {
3960
- var x = V.toLowerCase();
3961
- E[x] && (R = x), D && (E[x] = D, R = x);
3962
- var G = V.split("-");
3963
- if (!R && G.length > 1)
3964
- return P(G[0]);
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]);
3965
3965
  } else {
3966
- var H = V.name;
3967
- E[H] = V, R = H;
3968
- }
3969
- return !O && R && (M = R), R || !O && M;
3970
- }, A = function(P, V) {
3971
- if (N(P))
3972
- return P.clone();
3973
- var D = typeof V == "object" ? V : {};
3974
- return D.date = P, D.args = arguments, new F(D);
3966
+ var H = O.name;
3967
+ E[H] = O, L = H;
3968
+ }
3969
+ return !K && L && (M = L), L || !K && M;
3970
+ }, A = function(V, O) {
3971
+ if (P(V))
3972
+ return V.clone();
3973
+ var D = typeof O == "object" ? O : {};
3974
+ return D.date = V, D.args = arguments, new G(D);
3975
3975
  }, w = T;
3976
- w.l = I, w.i = N, w.w = function(P, V) {
3977
- return A(P, { locale: V.$L, utc: V.$u, x: V.$x, $offset: V.$offset });
3976
+ w.l = I, w.i = P, w.w = function(V, O) {
3977
+ return A(V, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
3978
3978
  };
3979
- var F = function() {
3980
- function P(D) {
3979
+ var G = function() {
3980
+ function V(D) {
3981
3981
  this.$L = I(D.locale, null, !0), this.parse(D);
3982
3982
  }
3983
- var V = P.prototype;
3984
- return V.parse = function(D) {
3985
- this.$d = function(O) {
3986
- var R = O.date, x = O.utc;
3987
- if (R === null)
3983
+ var O = V.prototype;
3984
+ return O.parse = function(D) {
3985
+ this.$d = function(K) {
3986
+ var L = K.date, N = K.utc;
3987
+ if (L === null)
3988
3988
  return new Date(NaN);
3989
- if (w.u(R))
3989
+ if (w.u(L))
3990
3990
  return new Date();
3991
- if (R instanceof Date)
3992
- return new Date(R);
3993
- if (typeof R == "string" && !/Z$/i.test(R)) {
3994
- var G = R.match(_);
3995
- if (G) {
3996
- var H = G[2] - 1 || 0, Q = (G[7] || "0").substring(0, 3);
3997
- return x ? new Date(Date.UTC(G[1], H, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, Q)) : new Date(G[1], H, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, Q);
3991
+ if (L instanceof Date)
3992
+ return new Date(L);
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);
3998
3998
  }
3999
3999
  }
4000
- return new Date(R);
4000
+ return new Date(L);
4001
4001
  }(D), this.$x = D.x || {}, this.init();
4002
- }, V.init = function() {
4002
+ }, O.init = function() {
4003
4003
  var D = this.$d;
4004
4004
  this.$y = D.getFullYear(), this.$M = D.getMonth(), this.$D = D.getDate(), this.$W = D.getDay(), this.$H = D.getHours(), this.$m = D.getMinutes(), this.$s = D.getSeconds(), this.$ms = D.getMilliseconds();
4005
- }, V.$utils = function() {
4005
+ }, O.$utils = function() {
4006
4006
  return w;
4007
- }, V.isValid = function() {
4007
+ }, O.isValid = function() {
4008
4008
  return this.$d.toString() !== g;
4009
- }, V.isSame = function(D, O) {
4010
- var R = A(D);
4011
- return this.startOf(O) <= R && R <= this.endOf(O);
4012
- }, V.isAfter = function(D, O) {
4013
- return A(D) < this.startOf(O);
4014
- }, V.isBefore = function(D, O) {
4015
- return this.endOf(O) < A(D);
4016
- }, V.$g = function(D, O, R) {
4017
- return w.u(D) ? this[O] : this.set(R, D);
4018
- }, V.unix = function() {
4009
+ }, O.isSame = function(D, K) {
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);
4018
+ }, O.unix = function() {
4019
4019
  return Math.floor(this.valueOf() / 1e3);
4020
- }, V.valueOf = function() {
4020
+ }, O.valueOf = function() {
4021
4021
  return this.$d.getTime();
4022
- }, V.startOf = function(D, O) {
4023
- var R = this, x = !!w.u(O) || O, G = w.p(D), H = function(de, re) {
4024
- var ce = w.w(R.$u ? Date.UTC(R.$y, re, de) : new Date(R.$y, re, de), R);
4025
- return x ? ce : ce.endOf(c);
4026
- }, Q = function(de, re) {
4027
- return w.w(R.toDate()[de].apply(R.toDate("s"), (x ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(re)), R);
4028
- }, X = this.$W, Y = this.$M, te = this.$D, ae = "set" + (this.$u ? "UTC" : "");
4029
- switch (G) {
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) {
4030
4030
  case v:
4031
- return x ? H(1, 0) : H(31, 11);
4031
+ return N ? H(1, 0) : H(31, 11);
4032
4032
  case d:
4033
- return x ? H(1, Y) : H(0, Y + 1);
4033
+ return N ? H(1, Q) : H(0, Q + 1);
4034
4034
  case u:
4035
- var oe = this.$locale().weekStart || 0, ue = (X < oe ? X + 7 : X) - oe;
4036
- return H(x ? te - ue : te + (6 - ue), Y);
4035
+ var ne = this.$locale().weekStart || 0, le = (X < ne ? X + 7 : X) - ne;
4036
+ return H(N ? Z - le : Z + (6 - le), Q);
4037
4037
  case c:
4038
4038
  case C:
4039
- return Q(ae + "Hours", 0);
4039
+ return Y(ae + "Hours", 0);
4040
4040
  case l:
4041
- return Q(ae + "Minutes", 1);
4041
+ return Y(ae + "Minutes", 1);
4042
4042
  case s:
4043
- return Q(ae + "Seconds", 2);
4043
+ return Y(ae + "Seconds", 2);
4044
4044
  case i:
4045
- return Q(ae + "Milliseconds", 3);
4045
+ return Y(ae + "Milliseconds", 3);
4046
4046
  default:
4047
4047
  return this.clone();
4048
4048
  }
4049
- }, V.endOf = function(D) {
4049
+ }, O.endOf = function(D) {
4050
4050
  return this.startOf(D, !1);
4051
- }, V.$set = function(D, O) {
4052
- var R, x = w.p(D), G = "set" + (this.$u ? "UTC" : ""), H = (R = {}, R[c] = G + "Date", R[C] = G + "Date", R[d] = G + "Month", R[v] = G + "FullYear", R[l] = G + "Hours", R[s] = G + "Minutes", R[i] = G + "Seconds", R[o] = G + "Milliseconds", R)[x], Q = x === c ? this.$D + (O - this.$W) : O;
4053
- if (x === d || x === v) {
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
4054
  var X = this.clone().set(C, 1);
4055
- X.$d[H](Q), X.init(), this.$d = X.set(C, Math.min(this.$D, X.daysInMonth())).$d;
4055
+ X.$d[H](Y), X.init(), this.$d = X.set(C, Math.min(this.$D, X.daysInMonth())).$d;
4056
4056
  } else
4057
- H && this.$d[H](Q);
4057
+ H && this.$d[H](Y);
4058
4058
  return this.init(), this;
4059
- }, V.set = function(D, O) {
4060
- return this.clone().$set(D, O);
4061
- }, V.get = function(D) {
4059
+ }, O.set = function(D, K) {
4060
+ return this.clone().$set(D, K);
4061
+ }, O.get = function(D) {
4062
4062
  return this[w.p(D)]();
4063
- }, V.add = function(D, O) {
4064
- var R, x = this;
4063
+ }, O.add = function(D, K) {
4064
+ var L, N = this;
4065
4065
  D = Number(D);
4066
- var G = w.p(O), H = function(Y) {
4067
- var te = A(x);
4068
- return w.w(te.date(te.date() + Math.round(Y * D)), x);
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);
4069
4069
  };
4070
- if (G === d)
4070
+ if (B === d)
4071
4071
  return this.set(d, this.$M + D);
4072
- if (G === v)
4072
+ if (B === v)
4073
4073
  return this.set(v, this.$y + D);
4074
- if (G === c)
4074
+ if (B === c)
4075
4075
  return H(1);
4076
- if (G === u)
4076
+ if (B === u)
4077
4077
  return H(7);
4078
- var Q = (R = {}, R[s] = a, R[l] = n, R[i] = r, R)[G] || 1, X = this.$d.getTime() + D * Q;
4078
+ var Y = (L = {}, L[s] = a, L[l] = n, L[i] = r, L)[B] || 1, X = this.$d.getTime() + D * Y;
4079
4079
  return w.w(X, this);
4080
- }, V.subtract = function(D, O) {
4081
- return this.add(-1 * D, O);
4082
- }, V.format = function(D) {
4083
- var O = this, R = this.$locale();
4080
+ }, O.subtract = function(D, K) {
4081
+ return this.add(-1 * D, K);
4082
+ }, O.format = function(D) {
4083
+ var K = this, L = this.$locale();
4084
4084
  if (!this.isValid())
4085
- return R.invalidDate || g;
4086
- var x = D || "YYYY-MM-DDTHH:mm:ssZ", G = w.z(this), H = this.$H, Q = this.$m, X = this.$M, Y = R.weekdays, te = R.months, ae = function(re, ce, fe, K) {
4087
- return re && (re[ce] || re(O, x)) || fe[ce].slice(0, K);
4088
- }, oe = function(re) {
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
4089
  return w.s(H % 12 || 12, re, "0");
4090
- }, ue = R.meridiem || function(re, ce, fe) {
4091
- var K = re < 12 ? "AM" : "PM";
4092
- return fe ? K.toLowerCase() : K;
4093
- }, de = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: X + 1, MM: w.s(X + 1, 2, "0"), MMM: ae(R.monthsShort, X, te, 3), MMMM: ae(te, X), D: this.$D, DD: w.s(this.$D, 2, "0"), d: String(this.$W), dd: ae(R.weekdaysMin, this.$W, Y, 2), ddd: ae(R.weekdaysShort, this.$W, Y, 3), dddd: Y[this.$W], H: String(H), HH: w.s(H, 2, "0"), h: oe(1), hh: oe(2), a: ue(H, Q, !0), A: ue(H, Q, !1), m: String(Q), mm: w.s(Q, 2, "0"), s: String(this.$s), ss: w.s(this.$s, 2, "0"), SSS: w.s(this.$ms, 3, "0"), Z: G };
4094
- return x.replace(b, function(re, ce) {
4095
- return ce || de[re] || G.replace(":", "");
4090
+ }, le = L.meridiem || function(re, ue, fe) {
4091
+ var de = re < 12 ? "AM" : "PM";
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(":", "");
4096
4096
  });
4097
- }, V.utcOffset = function() {
4097
+ }, O.utcOffset = function() {
4098
4098
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4099
- }, V.diff = function(D, O, R) {
4100
- var x, G = w.p(O), H = A(D), Q = (H.utcOffset() - this.utcOffset()) * a, X = this - H, Y = w.m(this, H);
4101
- return Y = (x = {}, x[v] = Y / 12, x[d] = Y, x[m] = Y / 3, x[u] = (X - Q) / 6048e5, x[c] = (X - Q) / 864e5, x[l] = X / n, x[s] = X / a, x[i] = X / r, x)[G] || X, R ? Y : w.a(Y);
4102
- }, V.daysInMonth = function() {
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);
4102
+ }, O.daysInMonth = function() {
4103
4103
  return this.endOf(d).$D;
4104
- }, V.$locale = function() {
4104
+ }, O.$locale = function() {
4105
4105
  return E[this.$L];
4106
- }, V.locale = function(D, O) {
4106
+ }, O.locale = function(D, K) {
4107
4107
  if (!D)
4108
4108
  return this.$L;
4109
- var R = this.clone(), x = I(D, O, !0);
4110
- return x && (R.$L = x), R;
4111
- }, V.clone = function() {
4109
+ var L = this.clone(), N = I(D, K, !0);
4110
+ return N && (L.$L = N), L;
4111
+ }, O.clone = function() {
4112
4112
  return w.w(this.$d, this);
4113
- }, V.toDate = function() {
4113
+ }, O.toDate = function() {
4114
4114
  return new Date(this.valueOf());
4115
- }, V.toJSON = function() {
4115
+ }, O.toJSON = function() {
4116
4116
  return this.isValid() ? this.toISOString() : null;
4117
- }, V.toISOString = function() {
4117
+ }, O.toISOString = function() {
4118
4118
  return this.$d.toISOString();
4119
- }, V.toString = function() {
4119
+ }, O.toString = function() {
4120
4120
  return this.$d.toUTCString();
4121
- }, P;
4122
- }(), $ = F.prototype;
4123
- return A.prototype = $, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", c], ["$M", d], ["$y", v], ["$D", C]].forEach(function(P) {
4124
- $[P[1]] = function(V) {
4125
- return this.$g(V, P[0], P[1]);
4121
+ }, V;
4122
+ }(), $ = G.prototype;
4123
+ return A.prototype = $, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", c], ["$M", d], ["$y", v], ["$D", C]].forEach(function(V) {
4124
+ $[V[1]] = function(O) {
4125
+ return this.$g(O, V[0], V[1]);
4126
4126
  };
4127
- }), A.extend = function(P, V) {
4128
- return P.$i || (P(V, F, A), P.$i = !0), A;
4129
- }, A.locale = I, A.isDayjs = N, A.unix = function(P) {
4130
- return A(1e3 * P);
4127
+ }), A.extend = function(V, O) {
4128
+ return V.$i || (V(O, G, A), V.$i = !0), A;
4129
+ }, A.locale = I, A.isDayjs = P, A.unix = function(V) {
4130
+ return A(1e3 * V);
4131
4131
  }, A.en = E[M], A.Ls = E, A.p = {}, A;
4132
4132
  });
4133
4133
  })(dayjs_min);
@@ -4175,7 +4175,7 @@ function filesize(e, {
4175
4175
  } = {}) {
4176
4176
  let b = C, y = Number(e), k = [], T = 0, M = EMPTY;
4177
4177
  a === -1 && u.length === 0 ? (a = 10, u = JEDEC) : a === -1 && u.length > 0 ? (u = u === IEC ? IEC : JEDEC, a = u === IEC ? 2 : 10) : (a = a === 2 ? 2 : 10, u = a === 10 || u === JEDEC ? JEDEC : IEC);
4178
- const E = a === 10 ? 1e3 : 1024, N = m === !0, I = y < 0, A = Math[g];
4178
+ const E = a === 10 ? 1e3 : 1024, P = m === !0, I = y < 0, A = Math[g];
4179
4179
  if (typeof e != "bigint" && isNaN(e))
4180
4180
  throw new TypeError(INVALID_NUMBER);
4181
4181
  if (typeof A !== FUNCTION)
@@ -4190,10 +4190,10 @@ 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, F = k[0].toString().split(w), $ = F[1] || EMPTY, P = $.length, V = n - P;
4194
- k[0] = `${F[0]}${w}${$.padEnd(P + V, ZERO)}`;
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)}`;
4195
4195
  }
4196
- return N && (k[1] = v[b] ? v[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (k[0] === 1 ? EMPTY : S)), d === ARRAY ? k : d === OBJECT ? {
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],
4198
4198
  symbol: k[1],
4199
4199
  exponent: b,
@@ -6672,27 +6672,27 @@ 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), F = [], $ = [];
6676
- function P(O) {
6677
- F.push(O);
6675
+ const w = Array.from(arguments), G = [], $ = [];
6676
+ function V(K) {
6677
+ G.push(K);
6678
6678
  }
6679
- function V(O) {
6680
- $.push(O);
6679
+ function O(K) {
6680
+ $.push(K);
6681
6681
  }
6682
6682
  triggerSubscriptions(m, {
6683
6683
  args: w,
6684
6684
  name: I,
6685
6685
  store: E,
6686
- after: P,
6687
- onError: V
6686
+ after: V,
6687
+ onError: O
6688
6688
  });
6689
6689
  let D;
6690
6690
  try {
6691
6691
  D = A.apply(this && this.$id === e ? this : E, w);
6692
- } catch (O) {
6693
- throw triggerSubscriptions($, O), O;
6692
+ } catch (K) {
6693
+ throw triggerSubscriptions($, K), K;
6694
6694
  }
6695
- return D instanceof Promise ? D.then((O) => (triggerSubscriptions(F, O), O)).catch((O) => (triggerSubscriptions($, O), Promise.reject(O))) : (triggerSubscriptions(F, D), D);
6695
+ return D instanceof Promise ? D.then((K) => (triggerSubscriptions(G, K), K)).catch((K) => (triggerSubscriptions($, K), Promise.reject(K))) : (triggerSubscriptions(G, 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, () => F()), F = o.run(() => watch(() => a.state.value[e], ($) => {
6710
+ const w = addSubscription(d, I, A.detached, () => G()), G = o.run(() => watch(() => a.state.value[e], ($) => {
6711
6711
  (A.flush === "sync" ? u : c) && I({
6712
6712
  storeId: e,
6713
6713
  type: MutationType.direct,
@@ -6725,18 +6725,18 @@ function createSetupStore(e, t, r = {}, a, n) {
6725
6725
  M
6726
6726
  ));
6727
6727
  a._s.set(e, E);
6728
- const N = a._e.run(() => (o = effectScope(), o.run(() => t())));
6729
- for (const I in N) {
6730
- const A = N[I];
6728
+ const P = a._e.run(() => (o = effectScope(), o.run(() => t())));
6729
+ for (const I in P) {
6730
+ const A = P[I];
6731
6731
  if (isRef(A) && !isComputed(A) || isReactive(A))
6732
- process.env.NODE_ENV !== "production" && n ? set(g.value, I, toRef(N, I)) : i || (C && shouldHydrate(A) && (isRef(A) ? A.value = C[I] : mergeReactiveObjects(A, C[I])), a.state.value[e][I] = A), process.env.NODE_ENV !== "production" && T.state.push(I);
6732
+ process.env.NODE_ENV !== "production" && n ? set(g.value, I, toRef(P, I)) : i || (C && shouldHydrate(A) && (isRef(A) ? A.value = C[I] : mergeReactiveObjects(A, C[I])), a.state.value[e][I] = A), process.env.NODE_ENV !== "production" && T.state.push(I);
6733
6733
  else if (typeof A == "function") {
6734
6734
  const w = process.env.NODE_ENV !== "production" && n ? A : k(I, A);
6735
- N[I] = w, process.env.NODE_ENV !== "production" && (T.actions[I] = A), s.actions[I] = A;
6735
+ P[I] = w, process.env.NODE_ENV !== "production" && (T.actions[I] = A), s.actions[I] = A;
6736
6736
  } else
6737
- process.env.NODE_ENV !== "production" && isComputed(A) && (T.getters[I] = i ? r.getters[I] : A, IS_CLIENT && (N._getters || (N._getters = markRaw([]))).push(I));
6737
+ process.env.NODE_ENV !== "production" && isComputed(A) && (T.getters[I] = i ? r.getters[I] : A, IS_CLIENT && (P._getters || (P._getters = markRaw([]))).push(I));
6738
6738
  }
6739
- if (assign$1(E, N), assign$1(toRaw(E), N), Object.defineProperty(E, "$state", {
6739
+ if (assign$1(E, P), assign$1(toRaw(E), P), Object.defineProperty(E, "$state", {
6740
6740
  get: () => process.env.NODE_ENV !== "production" && n ? g.value : a.state.value[e],
6741
6741
  set: (I) => {
6742
6742
  if (process.env.NODE_ENV !== "production" && n)
@@ -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 F = A.$state[w], $ = E.$state[w];
6753
- typeof F == "object" && isPlainObject(F) && isPlainObject($) ? patchObject(F, $) : A.$state[w] = $;
6752
+ const G = A.$state[w], $ = E.$state[w];
6753
+ typeof G == "object" && isPlainObject(G) && isPlainObject($) ? patchObject(G, $) : 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 F = A[w];
6763
- set(E, w, k(w, F));
6762
+ const G = A[w];
6763
+ set(E, w, k(w, G));
6764
6764
  }
6765
6765
  for (const w in A._hmrPayload.getters) {
6766
- const F = A._hmrPayload.getters[w], $ = i ? computed(() => (setActivePinia(a), F.call(E, E))) : F;
6766
+ const G = A._hmrPayload.getters[w], $ = i ? computed(() => (setActivePinia(a), G.call(E, E))) : G;
6767
6767
  set(E, w, $);
6768
6768
  }
6769
6769
  Object.keys(E._hmrPayload.getters).forEach((w) => {
@@ -8766,14 +8766,14 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
8766
8766
  function useKgVar(e, t, r = 0) {
8767
8767
  var a, n;
8768
8768
  try {
8769
- let o = function(Y) {
8770
- u.setIsCreating(c, Y);
8771
- }, i = function(Y) {
8772
- u.setIsUpdating(c, Y);
8773
- }, s = function(Y) {
8774
- u.setIsCopying(c, Y);
8775
- }, l = function(Y) {
8776
- u.setIsDeleting(c, Y);
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);
8777
8777
  }, c = e || inject(KG_DI_FORM_ID, "");
8778
8778
  if (!c)
8779
8779
  throw new Error("useKgVar() | \u5FC5\u987B\u4F20\u5165 formID \u53C2\u6570.");
@@ -8783,13 +8783,13 @@ function useKgVar(e, t, r = 0) {
8783
8783
  }), onUnmounted(() => {
8784
8784
  u.leave(c);
8785
8785
  }));
8786
- const d = (Y) => computed(() => {
8787
- var te, ae, oe;
8788
- return (oe = (ae = (te = u.getVarCatalog(c, Y)) == null ? void 0 : te.var_text) != null ? ae : Y) != null ? oe : "";
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)), N = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), A = computed(() => u.getVarButtonSearch(c)), w = computed(() => u.getVarButtonCreate(c)), F = computed(() => u.getVarButtonUpdate(c)), $ = computed(() => u.getVarButtonCopy(c)), P = computed(() => u.getVarButtonDelete(c)), V = computed(() => u.getVarProfileMasters(c)), D = computed(() => u.getCurrentVarProfileMaster(c)), O = computed(() => u.getCurrentVarProfileMasterID(c)), R = computed(() => {
8790
- var Y, te;
8791
- return (te = (Y = D.value) == null ? void 0 : Y.varProfileDetails) != null ? te : null;
8792
- }), x = computed(() => u.getVarGridConfig(c)), G = computed(() => u.getVarGridMasters(c)), H = computed(() => u.getCurrentVarGridMaster(c)), Q = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
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));
8793
8793
  return {
8794
8794
  formID: c,
8795
8795
  store: u,
@@ -8804,21 +8804,21 @@ function useKgVar(e, t, r = 0) {
8804
8804
  isCopyingRequesting: T,
8805
8805
  isDeleting: M,
8806
8806
  isDeletingRequesting: E,
8807
- isOtherRequesting: N,
8807
+ isOtherRequesting: P,
8808
8808
  varButtons: I,
8809
8809
  varButtonSearch: A,
8810
8810
  varButtonCreate: w,
8811
- varButtonUpdate: F,
8811
+ varButtonUpdate: G,
8812
8812
  varButtonCopy: $,
8813
- varButtonDelete: P,
8814
- varProfileMasters: V,
8813
+ varButtonDelete: V,
8814
+ varProfileMasters: O,
8815
8815
  currentVarProfileMaster: D,
8816
- currentVarProfileMasterID: O,
8817
- currentVarProfileDetails: R,
8818
- varGridConfig: x,
8819
- varGridMasters: G,
8816
+ currentVarProfileMasterID: K,
8817
+ currentVarProfileDetails: L,
8818
+ varGridConfig: N,
8819
+ varGridMasters: B,
8820
8820
  currentVarGridMaster: H,
8821
- systemVarGridDetails: Q,
8821
+ systemVarGridDetails: Y,
8822
8822
  currentVarGridDetails: X,
8823
8823
  setIsCreating: o,
8824
8824
  setIsUpdating: i,
@@ -8906,31 +8906,31 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
8906
8906
  async function C() {
8907
8907
  var g, _, b, y, k, T, M;
8908
8908
  if (d.value) {
8909
- const E = (_ = (g = c.selectedRows) == null ? void 0 : g.value) != null ? _ : [], N = (b = E.map((A) => A[m.value])) != null ? b : [];
8909
+ const E = (_ = (g = c.selectedRows) == null ? void 0 : g.value) != null ? _ : [], P = (b = E.map((A) => A[m.value])) != null ? b : [];
8910
8910
  await o.store.emit(o.formID, "lookupBeforeOk", {
8911
8911
  var_nam: i,
8912
8912
  isMultiple: !0,
8913
- values: N,
8913
+ values: P,
8914
8914
  rows: E
8915
8915
  }) || (o.store.emit(o.formID, "lookupOk", {
8916
8916
  var_nam: i,
8917
8917
  model: l,
8918
8918
  isMultiple: !0,
8919
- values: N,
8919
+ values: P,
8920
8920
  rows: E
8921
8921
  }), r("update:visible", !1));
8922
8922
  } else {
8923
- const E = (T = (k = (y = c.selectedRows) == null ? void 0 : y.value) == null ? void 0 : k[0]) != null ? T : null, N = (M = E == null ? void 0 : E[m.value]) != null ? M : "";
8923
+ const E = (T = (k = (y = c.selectedRows) == null ? void 0 : y.value) == null ? void 0 : k[0]) != null ? T : null, P = (M = E == null ? void 0 : E[m.value]) != null ? M : "";
8924
8924
  await o.store.emit(o.formID, "lookupBeforeOk", {
8925
8925
  var_nam: i,
8926
8926
  isMultiple: !1,
8927
- value: N,
8927
+ value: P,
8928
8928
  row: E
8929
8929
  }) || (o.store.emit(o.formID, "lookupOk", {
8930
8930
  var_nam: i,
8931
8931
  model: l,
8932
8932
  isMultiple: !1,
8933
- value: N,
8933
+ value: P,
8934
8934
  row: E
8935
8935
  }), r("update:visible", !1));
8936
8936
  }
@@ -9164,9 +9164,9 @@ function useKgFormItemSelect() {
9164
9164
  }), d;
9165
9165
  });
9166
9166
  async function c() {
9167
- var b, y, k, T, M, E, N, I;
9167
+ var b, y, k, T, M, E, P, I;
9168
9168
  let d = [];
9169
- const m = (b = a.value) == null ? void 0 : b.cmd, v = (k = (y = a.value) == null ? void 0 : y.cmd_method) != null ? k : "GET", C = (M = (T = a.value) == null ? void 0 : T.val_clm) != null ? M : "", g = (N = (E = a.value) == null ? void 0 : E.lbl_clm) != null ? N : "";
9169
+ const m = (b = a.value) == null ? void 0 : b.cmd, v = (k = (y = a.value) == null ? void 0 : y.cmd_method) != null ? k : "GET", C = (M = (T = a.value) == null ? void 0 : T.val_clm) != null ? M : "", g = (P = (E = a.value) == null ? void 0 : E.lbl_clm) != null ? P : "";
9170
9170
  if (!m || !C || !g) {
9171
9171
  KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
9172
9172
  frm_id: r.formID,
@@ -9650,13 +9650,13 @@ const KgFormItemRadioGroup = defineComponent({
9650
9650
  var_nam: I,
9651
9651
  model: A,
9652
9652
  isMultiple: w,
9653
- value: F,
9653
+ value: G,
9654
9654
  values: $
9655
9655
  }) => {
9656
- var P;
9656
+ var V;
9657
9657
  switch (I) {
9658
9658
  case e.kgVarName:
9659
- A.value && (w ? A.value[e.kgVarName] = $ : A.value[e.kgVarName] = F), (P = n.value) == null || P.validate([e.kgVarName]);
9659
+ A.value && (w ? A.value[e.kgVarName] = $ : A.value[e.kgVarName] = G), (V = n.value) == null || V.validate([e.kgVarName]);
9660
9660
  break;
9661
9661
  }
9662
9662
  return !1;
@@ -9666,7 +9666,7 @@ const KgFormItemRadioGroup = defineComponent({
9666
9666
  } = _useRules(e), {
9667
9667
  controlType: m
9668
9668
  } = useKgFormItem(e), v = computed(() => {
9669
- var A, w, F, $, P;
9669
+ var A, w, G, $, V;
9670
9670
  if (o.isRetrieving.value)
9671
9671
  return !0;
9672
9672
  let I = !1;
@@ -9683,20 +9683,20 @@ const KgFormItemRadioGroup = defineComponent({
9683
9683
  I = ((w = u.value) == null ? void 0 : w.crt_ena_flg) === 0;
9684
9684
  break;
9685
9685
  case o.isUpdating.value:
9686
- I = ((F = u.value) == null ? void 0 : F.upt_ena_flg) === 0;
9686
+ I = ((G = u.value) == null ? void 0 : G.upt_ena_flg) === 0;
9687
9687
  break;
9688
9688
  case o.isCopying.value:
9689
9689
  I = (($ = u.value) == null ? void 0 : $.cpy_ena_flg) === 0;
9690
9690
  break;
9691
9691
  case o.isDeleting.value:
9692
- I = ((P = u.value) == null ? void 0 : P.del_ena_flg) === 0;
9692
+ I = ((V = u.value) == null ? void 0 : V.del_ena_flg) === 0;
9693
9693
  break;
9694
9694
  }
9695
9695
  break;
9696
9696
  }
9697
9697
  return I;
9698
9698
  }), C = computed(() => {
9699
- var A, w, F, $;
9699
+ var A, w, G, $;
9700
9700
  let I = " ";
9701
9701
  if (e.kgPlaceholder)
9702
9702
  I = e.kgPlaceholder;
@@ -9706,12 +9706,12 @@ const KgFormItemRadioGroup = defineComponent({
9706
9706
  I = o.t((w = (A = c.value) == null ? void 0 : A.placeholder) != null ? w : " ").value;
9707
9707
  break;
9708
9708
  case KG_FORM_CONTEXT.SUBMIT:
9709
- I = o.t(($ = (F = u.value) == null ? void 0 : F.placeholder) != null ? $ : " ").value;
9709
+ I = o.t(($ = (G = u.value) == null ? void 0 : G.placeholder) != null ? $ : " ").value;
9710
9710
  break;
9711
9711
  }
9712
9712
  return I;
9713
9713
  }), g = computed(() => {
9714
- var A, w, F, $, P, V, D, O, R, x;
9714
+ var A, w, G, $, V, O, D, K, L, N;
9715
9715
  let I = 6;
9716
9716
  if (e.kgSpan !== void 0)
9717
9717
  I = e.kgSpan;
@@ -9723,24 +9723,24 @@ const KgFormItemRadioGroup = defineComponent({
9723
9723
  case KG_FORM_CONTEXT.SUBMIT:
9724
9724
  switch (!0) {
9725
9725
  case o.isCreating.value:
9726
- I = ($ = (F = u.value) == null ? void 0 : F.crt_width) != null ? $ : 6;
9726
+ I = ($ = (G = u.value) == null ? void 0 : G.crt_width) != null ? $ : 6;
9727
9727
  break;
9728
9728
  case o.isUpdating.value:
9729
- I = (V = (P = u.value) == null ? void 0 : P.upt_width) != null ? V : 6;
9729
+ I = (O = (V = u.value) == null ? void 0 : V.upt_width) != null ? O : 6;
9730
9730
  break;
9731
9731
  case o.isCopying.value:
9732
- I = (O = (D = u.value) == null ? void 0 : D.cpy_width) != null ? O : 6;
9732
+ I = (K = (D = u.value) == null ? void 0 : D.cpy_width) != null ? K : 6;
9733
9733
  break;
9734
9734
  case o.isDeleting.value:
9735
- I = (x = (R = u.value) == null ? void 0 : R.del_width) != null ? x : 6;
9735
+ I = (N = (L = u.value) == null ? void 0 : L.del_width) != null ? N : 6;
9736
9736
  break;
9737
9737
  }
9738
9738
  }
9739
9739
  return Math.min(24, Math.max(1, I));
9740
9740
  }), _ = computed(() => {
9741
- var F, $;
9741
+ var G, $;
9742
9742
  const I = get(T.value, "$el.parentElement");
9743
- if (I && !((F = I.classList) != null && F.contains("ant-row")))
9743
+ if (I && !((G = I.classList) != null && G.contains("ant-row")))
9744
9744
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
9745
9745
  let A = {};
9746
9746
  const w = Math.abs(Number.parseInt(($ = get(T.value, "$el.parentElement.style.marginLeft")) != null ? $ : "0px"));
@@ -9749,7 +9749,7 @@ const KgFormItemRadioGroup = defineComponent({
9749
9749
  paddingRight: `${w}px !important`
9750
9750
  }), A;
9751
9751
  }), b = computed(() => {
9752
- var A, w, F, $;
9752
+ var A, w, G, $;
9753
9753
  let I = "kg-form-item";
9754
9754
  switch (s.value && (I += " kg-form-item-lookup"), e.kgContext) {
9755
9755
  case KG_FORM_CONTEXT.SEARCH:
@@ -9762,7 +9762,7 @@ const KgFormItemRadioGroup = defineComponent({
9762
9762
  case KG_FORM_CONTEXT.SUBMIT:
9763
9763
  switch (!0) {
9764
9764
  case (o.isCreating.value && ((w = u.value) == null ? void 0 : w.crt_vis_flg) === 0):
9765
- case (o.isUpdating.value && ((F = u.value) == null ? void 0 : F.upt_vis_flg) === 0):
9765
+ case (o.isUpdating.value && ((G = u.value) == null ? void 0 : G.upt_vis_flg) === 0):
9766
9766
  case (o.isCopying.value && (($ = u.value) == null ? void 0 : $.cpy_vis_flg) === 0):
9767
9767
  I += " kg-form-item--invisible";
9768
9768
  break;
@@ -9853,7 +9853,7 @@ const KgFormItemRadioGroup = defineComponent({
9853
9853
  title: o.t(e.kgVarName).value
9854
9854
  }, [o.t(e.kgVarName).value]) : null;
9855
9855
  }
9856
- function N() {
9856
+ function P() {
9857
9857
  var I;
9858
9858
  return !s.value || !((I = s.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
9859
9859
  default: () => [createVNode(KgFormItemAddonLookup, {
@@ -9880,7 +9880,7 @@ const KgFormItemRadioGroup = defineComponent({
9880
9880
  validateFirst: !0,
9881
9881
  htmlFor: k.value
9882
9882
  }, {
9883
- default: () => createVNode(Fragment, null, [M(), N()]),
9883
+ default: () => createVNode(Fragment, null, [M(), P()]),
9884
9884
  label: () => E()
9885
9885
  })]
9886
9886
  });
@@ -10280,8 +10280,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10280
10280
  }) => {
10281
10281
  const u = o.store.getVarSubmitConfig(o.formID);
10282
10282
  return s = watch(c, (d) => {
10283
- var m, v, C, g, _, b, y, k, T, M, E, N;
10284
- d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (C = u == null ? void 0 : u.fullscreen_flg) != null ? C : 1, d.dft_fullscreen_flg = (g = u == null ? void 0 : u.dft_fullscreen_flg) != null ? g : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 1, d.max_width = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (y = u == null ? void 0 : u.min_width) != null ? y : DEFAULT_MIN_WIDTH, d.dft_width = (k = u == null ? void 0 : u.dft_width) != null ? k : DEFAULT_WIDTH, d.layout = (T = u == null ? void 0 : u.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (M = u == null ? void 0 : u.label_col) != null ? M : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (E = u == null ? void 0 : u.label_col_unit) != null ? E : KG_WIDTH_UNIT.SPAN, d.display_type = (N = u == null ? void 0 : u.display_type) != null ? N : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
10283
+ var m, v, C, g, _, b, y, k, T, M, E, P;
10284
+ d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (C = u == null ? void 0 : u.fullscreen_flg) != null ? C : 1, d.dft_fullscreen_flg = (g = u == null ? void 0 : u.dft_fullscreen_flg) != null ? g : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 1, d.max_width = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (y = u == null ? void 0 : u.min_width) != null ? y : DEFAULT_MIN_WIDTH, d.dft_width = (k = u == null ? void 0 : u.dft_width) != null ? k : DEFAULT_WIDTH, d.layout = (T = u == null ? void 0 : u.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (M = u == null ? void 0 : u.label_col) != null ? M : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (E = u == null ? void 0 : u.label_col_unit) != null ? E : KG_WIDTH_UNIT.SPAN, d.display_type = (P = u == null ? void 0 : u.display_type) != null ? P : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
10285
10285
  }, {
10286
10286
  immediate: !0
10287
10287
  }), !1;
@@ -10544,81 +10544,81 @@ const getProps$p = () => ({
10544
10544
  const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
10545
10545
  inject(DI_KG_VAR__KG_PROPS, null);
10546
10546
  const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), c = useKgSearch();
10547
- i.onSubmitSave(async () => (await ue(), !1)), i.onSubmitCancel(async () => (await oe(), !1)), _useFormModel$1();
10547
+ i.onSubmitSave(async () => (await le(), !1)), i.onSubmitCancel(async () => (await ne(), !1)), _useFormModel$1();
10548
10548
  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 L, B, W;
10549
+ var F, x, z;
10550
10550
  switch (!0) {
10551
10551
  case o.isCreating.value:
10552
- return (L = v.value) != null ? L : [];
10552
+ return (F = v.value) != null ? F : [];
10553
10553
  case o.isUpdating.value:
10554
- return (B = g.value) != null ? B : [];
10554
+ return (x = g.value) != null ? x : [];
10555
10555
  case o.isCopying.value:
10556
- return (W = b.value) != null ? W : [];
10556
+ return (z = b.value) != null ? z : [];
10557
10557
  case o.isDeleting.value:
10558
10558
  return [];
10559
10559
  }
10560
10560
  return [];
10561
10561
  }), M = computed(() => {
10562
- var L, B, W, Z;
10562
+ var F, x, z, J;
10563
10563
  switch (!0) {
10564
10564
  case o.isCreating.value:
10565
- return (L = C.value) != null ? L : [];
10565
+ return (F = C.value) != null ? F : [];
10566
10566
  case o.isUpdating.value:
10567
- return (B = _.value) != null ? B : [];
10567
+ return (x = _.value) != null ? x : [];
10568
10568
  case o.isCopying.value:
10569
- return (W = y.value) != null ? W : [];
10569
+ return (z = y.value) != null ? z : [];
10570
10570
  case o.isDeleting.value:
10571
- return (Z = k.value) != null ? Z : [];
10571
+ return (J = k.value) != null ? J : [];
10572
10572
  }
10573
10573
  return [];
10574
- }), E = computed(() => !!o.store.isCreatingRequesting(o.formID) || !!o.store.isUpdatingRequesting(o.formID) || !!o.store.isCopyingRequesting(o.formID) || !!o.store.isDeletingRequesting(o.formID)), N = computed(() => E.value || d.value), I = computed(() => d.value), A = ref({
10574
+ }), E = computed(() => !!o.store.isCreatingRequesting(o.formID) || !!o.store.isUpdatingRequesting(o.formID) || !!o.store.isCopyingRequesting(o.formID) || !!o.store.isDeletingRequesting(o.formID)), P = computed(() => E.value || d.value), I = computed(() => d.value), A = ref({
10575
10575
  kgWidth: 0
10576
10576
  }), w = computed(() => {
10577
- var L;
10578
- return !!(u.value || x.isFullscreen || ((L = m.value) == null ? void 0 : L.resizable_flg) === 0);
10579
- }), F = computed(() => {
10580
- var L, B;
10581
- return u.value ? 398 : (B = (L = m.value) == null ? void 0 : L.min_width) != null ? B : DEFAULT_MIN_WIDTH;
10577
+ 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;
10582
10582
  }), $ = computed(() => {
10583
- var L, B;
10584
- return u.value ? 398 : (B = (L = m.value) == null ? void 0 : L.max_width) != null ? B : DEFAULT_MAX_WIDTH;
10585
- }), P = computed(() => u.value ? 398 : A.value.kgWidth), V = ref(null);
10586
- _useResizeObserver$1(V);
10587
- const D = _useTitle(), O = computed(() => u.value ? 400 : A.value.kgWidth && A.value.kgWidth > 0 ? "auto" : 0), R = computed(() => O.value === 0 ? !1 : !!(o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value)), x = reactive({
10583
+ var F, x;
10584
+ return u.value ? 398 : (x = (F = m.value) == null ? void 0 : F.max_width) != null ? x : DEFAULT_MAX_WIDTH;
10585
+ }), V = computed(() => u.value ? 398 : A.value.kgWidth), O = ref(null);
10586
+ _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({
10588
10588
  isFullscreen: !1
10589
10589
  }), {
10590
- getClass: G
10591
- } = _useClass(e, x), {
10590
+ getClass: B
10591
+ } = _useClass(e, N), {
10592
10592
  getLayout: H
10593
10593
  } = _useLayout(), {
10594
- getDefaultWidth: Q
10594
+ getDefaultWidth: Y
10595
10595
  } = _useDefaultWidth(), X = computed(() => {
10596
- var L, B, W;
10596
+ var F, x, z;
10597
10597
  switch (H.value) {
10598
10598
  case "horizontal":
10599
- switch ((L = m.value) == null ? void 0 : L.label_col_unit) {
10599
+ switch ((F = m.value) == null ? void 0 : F.label_col_unit) {
10600
10600
  case KG_WIDTH_UNIT.SPAN:
10601
10601
  return {
10602
- span: (B = m.value) == null ? void 0 : B.label_col
10602
+ span: (x = m.value) == null ? void 0 : x.label_col
10603
10603
  };
10604
10604
  default:
10605
10605
  return {
10606
10606
  style: {
10607
- width: `${(W = m.value) == null ? void 0 : W.label_col}px`
10607
+ width: `${(z = m.value) == null ? void 0 : z.label_col}px`
10608
10608
  }
10609
10609
  };
10610
10610
  }
10611
10611
  default:
10612
10612
  return;
10613
10613
  }
10614
- }), Y = computed(() => {
10615
- var L, B;
10614
+ }), Q = computed(() => {
10615
+ var F, x;
10616
10616
  switch (H.value) {
10617
10617
  case "horizontal":
10618
- switch ((L = m.value) == null ? void 0 : L.label_col_unit) {
10618
+ switch ((F = m.value) == null ? void 0 : F.label_col_unit) {
10619
10619
  case KG_WIDTH_UNIT.SPAN:
10620
10620
  return {
10621
- span: 24 - ((B = m.value) == null ? void 0 : B.label_col)
10621
+ span: 24 - ((x = m.value) == null ? void 0 : x.label_col)
10622
10622
  };
10623
10623
  default:
10624
10624
  return;
@@ -10627,19 +10627,19 @@ const getProps$p = () => ({
10627
10627
  return;
10628
10628
  }
10629
10629
  });
10630
- watch(R, (L, B) => {
10631
- L === !0 && te(), B === !0 && L === !1 && ae();
10630
+ watch(L, (F, x) => {
10631
+ F === !0 && Z(), x === !0 && F === !1 && ae();
10632
10632
  }, {
10633
10633
  immediate: !0
10634
- }), watch(Q, (L) => {
10635
- L && (A.value.kgWidth = L);
10634
+ }), watch(Y, (F) => {
10635
+ F && (A.value.kgWidth = F);
10636
10636
  }, {
10637
10637
  immediate: !0
10638
10638
  });
10639
- function te() {
10640
- var B;
10641
- const L = watch(l.model, (W) => {
10642
- W && Object.keys(W).length > 0 && (setTimeout(() => L()), l.store.emit(o.formID, "open", {
10639
+ function Z() {
10640
+ var x;
10641
+ const F = watch(l.model, (z) => {
10642
+ z && Object.keys(z).length > 0 && (setTimeout(() => F()), l.store.emit(o.formID, "open", {
10643
10643
  isCreating: o.isCreating.value,
10644
10644
  isUpdating: o.isUpdating.value,
10645
10645
  isCopying: o.isCopying.value,
@@ -10650,12 +10650,12 @@ const getProps$p = () => ({
10650
10650
  }, {
10651
10651
  immediate: !0
10652
10652
  });
10653
- ((B = m.value) == null ? void 0 : B.dft_fullscreen_flg) === 1 && !u.value && (x.isFullscreen = !0);
10653
+ ((x = m.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && !u.value && (N.isFullscreen = !0);
10654
10654
  }
10655
10655
  async function ae() {
10656
- A.value.kgWidth = Q.value, x.isFullscreen = !1, await l.store.emit(o.formID, "close", null);
10656
+ A.value.kgWidth = Y.value, N.isFullscreen = !1, await l.store.emit(o.formID, "close", null);
10657
10657
  }
10658
- function oe() {
10658
+ function ne() {
10659
10659
  switch (!0) {
10660
10660
  case o.isCreating.value:
10661
10661
  o.store.setIsCreating(o.formID, !1);
@@ -10671,8 +10671,8 @@ const getProps$p = () => ({
10671
10671
  break;
10672
10672
  }
10673
10673
  }
10674
- async function ue() {
10675
- var L, B;
10674
+ async function le() {
10675
+ var F, x;
10676
10676
  try {
10677
10677
  if (await l.store.emit(o.formID, "beforeOk", {
10678
10678
  isCreating: o.isCreating.value,
@@ -10685,11 +10685,11 @@ const getProps$p = () => ({
10685
10685
  }))
10686
10686
  return;
10687
10687
  try {
10688
- await ((L = l.formRef.value) == null ? void 0 : L.validate());
10689
- } catch (ne) {
10690
- KgUtil.throwIfNotFormError(ne);
10688
+ await ((F = l.formRef.value) == null ? void 0 : F.validate());
10689
+ } catch (ee) {
10690
+ KgUtil.throwIfNotFormError(ee);
10691
10691
  }
10692
- if (await ((B = l.formRef.value) == null ? void 0 : B.validate()), await l.store.emit(o.formID, "afterValidate", {
10692
+ if (await ((x = l.formRef.value) == null ? void 0 : x.validate()), await l.store.emit(o.formID, "afterValidate", {
10693
10693
  isCreating: o.isCreating.value,
10694
10694
  isUpdating: o.isUpdating.value,
10695
10695
  isCopying: o.isCopying.value,
@@ -10701,26 +10701,26 @@ const getProps$p = () => ({
10701
10701
  return;
10702
10702
  switch (!0) {
10703
10703
  case o.isCreating.value:
10704
- await de();
10704
+ await ce();
10705
10705
  break;
10706
10706
  case o.isUpdating.value:
10707
10707
  await re();
10708
10708
  break;
10709
10709
  case o.isCopying.value:
10710
- await ce();
10710
+ await ue();
10711
10711
  break;
10712
10712
  case o.isDeleting.value:
10713
10713
  await fe();
10714
10714
  break;
10715
10715
  }
10716
- } catch (W) {
10717
- KgUtil.throwIfNotFormError(W);
10716
+ } catch (z) {
10717
+ KgUtil.throwIfNotFormError(z);
10718
10718
  }
10719
10719
  }
10720
- async function de() {
10721
- var B, W, Z, ne, se, ie;
10722
- const L = (B = o.varButtonCreate.value) == null ? void 0 : B.cmd;
10723
- if (!L) {
10720
+ async function ce() {
10721
+ var x, z, J, ee, oe, se;
10722
+ const F = (x = o.varButtonCreate.value) == null ? void 0 : x.cmd;
10723
+ if (!F) {
10724
10724
  KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10725
10725
  VarButton: o.varButtonCreate.value
10726
10726
  });
@@ -10728,7 +10728,7 @@ const getProps$p = () => ({
10728
10728
  }
10729
10729
  o.store.setIsCreatingRequesting(o.formID, !0);
10730
10730
  try {
10731
- let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((Z = (W = o.varButtonCreate.value) == null ? void 0 : W.cmd_prm) != null ? Z : ""), o.formID, r)), le = ref(KgUtil.parseParams(toRaw(l.model.value), o.formID, r));
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));
10732
10732
  if (await l.store.emit(o.formID, "beforeRequest", {
10733
10733
  isCreating: o.isCreating.value,
10734
10734
  isUpdating: o.isUpdating.value,
@@ -10737,16 +10737,16 @@ const getProps$p = () => ({
10737
10737
  row: s.selectedFirstRow.value,
10738
10738
  rows: s.selectedRows.value,
10739
10739
  model: l.model,
10740
- params: ee,
10741
- data: le
10740
+ params: te,
10741
+ data: ie
10742
10742
  }))
10743
10743
  return;
10744
10744
  await httpClient().request({
10745
- method: (se = (ne = o.varButtonCreate.value) == null ? void 0 : ne.cmd_method) != null ? se : "POST",
10746
- url: L,
10747
- params: ee.value,
10748
- data: le.value
10749
- }), ((ie = o.varButtonCreate.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(D.title.value + n.t("kg.succeed")), await l.store.emit(o.formID, "ok", {
10745
+ method: (oe = (ee = o.varButtonCreate.value) == null ? void 0 : ee.cmd_method) != null ? oe : "POST",
10746
+ url: F,
10747
+ params: te.value,
10748
+ data: ie.value
10749
+ }), ((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
10750
  isCreating: o.isCreating.value,
10751
10751
  isUpdating: o.isUpdating.value,
10752
10752
  isCopying: o.isCopying.value,
@@ -10754,16 +10754,16 @@ const getProps$p = () => ({
10754
10754
  row: s.selectedFirstRow.value,
10755
10755
  model: l.model
10756
10756
  }), o.store.setIsCreating(o.formID, !1), c.search(!0);
10757
- } catch (ee) {
10758
- console.error(ee), l.store.emit(o.formID, "error", ee);
10757
+ } catch (te) {
10758
+ console.error(te), l.store.emit(o.formID, "error", te);
10759
10759
  } finally {
10760
10760
  o.store.setIsCreatingRequesting(o.formID, !1);
10761
10761
  }
10762
10762
  }
10763
10763
  async function re() {
10764
- var B, W, Z, ne, se, ie;
10765
- const L = (B = o.varButtonUpdate.value) == null ? void 0 : B.cmd;
10766
- if (!L) {
10764
+ var x, z, J, ee, oe, se;
10765
+ const F = (x = o.varButtonUpdate.value) == null ? void 0 : x.cmd;
10766
+ if (!F) {
10767
10767
  KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10768
10768
  VarButton: o.varButtonUpdate.value
10769
10769
  });
@@ -10771,7 +10771,7 @@ const getProps$p = () => ({
10771
10771
  }
10772
10772
  try {
10773
10773
  o.store.setIsUpdatingRequesting(o.formID, !0);
10774
- let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((Z = (W = o.varButtonUpdate.value) == null ? void 0 : W.cmd_prm) != null ? Z : ""), o.formID, r)), le = ref(KgUtil.parseParams(toRaw(l.model.value), o.formID, r));
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));
10775
10775
  if (await l.store.emit(o.formID, "beforeRequest", {
10776
10776
  isCreating: o.isCreating.value,
10777
10777
  isUpdating: o.isUpdating.value,
@@ -10780,16 +10780,16 @@ const getProps$p = () => ({
10780
10780
  row: s.selectedRow.value,
10781
10781
  rows: s.selectedRows.value,
10782
10782
  model: l.model,
10783
- params: ee,
10784
- data: le
10783
+ params: te,
10784
+ data: ie
10785
10785
  }))
10786
10786
  return;
10787
10787
  await httpClient().request({
10788
- method: (se = (ne = o.varButtonUpdate.value) == null ? void 0 : ne.cmd_method) != null ? se : "POST",
10789
- url: L,
10790
- params: ee.value,
10791
- data: le.value
10792
- }), ((ie = o.varButtonUpdate.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await l.store.emit(o.formID, "ok", {
10788
+ method: (oe = (ee = o.varButtonUpdate.value) == null ? void 0 : ee.cmd_method) != null ? oe : "POST",
10789
+ url: F,
10790
+ params: te.value,
10791
+ data: ie.value
10792
+ }), ((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
10793
  isCreating: o.isCreating.value,
10794
10794
  isUpdating: o.isUpdating.value,
10795
10795
  isCopying: o.isCopying.value,
@@ -10797,16 +10797,16 @@ const getProps$p = () => ({
10797
10797
  row: s.selectedFirstRow.value,
10798
10798
  model: l.model
10799
10799
  }), o.store.setIsUpdating(o.formID, !1), c.search();
10800
- } catch (ee) {
10801
- console.error(ee), l.store.emit(o.formID, "error", ee);
10800
+ } catch (te) {
10801
+ console.error(te), l.store.emit(o.formID, "error", te);
10802
10802
  } finally {
10803
10803
  o.store.setIsUpdatingRequesting(o.formID, !1);
10804
10804
  }
10805
10805
  }
10806
- async function ce() {
10807
- var B, W, Z, ne, se, ie, ee, le;
10808
- const L = (B = o.varButtonCopy.value) == null ? void 0 : B.cmd;
10809
- if (!L) {
10806
+ 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;
10809
+ if (!F) {
10810
10810
  KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10811
10811
  VarButton: o.varButtonCopy.value
10812
10812
  });
@@ -10814,11 +10814,11 @@ const getProps$p = () => ({
10814
10814
  }
10815
10815
  try {
10816
10816
  o.store.setIsCopyingRequesting(o.formID, !0);
10817
- let ge = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((Z = (W = o.varButtonCopy.value) == null ? void 0 : W.cmd_prm) != null ? Z : ""), o.formID, r)), pe = ref(KgUtil.parseParams({
10818
- ...(ne = s.selectedFirstRow.value) != null ? ne : {},
10817
+ 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 : {},
10819
10819
  ...toRaw(l.model.value)
10820
10820
  }, o.formID, r));
10821
- if (((se = m.value) == null ? void 0 : se.cpy_clear_id_flg) !== 0 && delete pe.value.id, await l.store.emit(o.formID, "beforeRequest", {
10821
+ if (((oe = m.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete pe.value.id, await l.store.emit(o.formID, "beforeRequest", {
10822
10822
  isCreating: o.isCreating.value,
10823
10823
  isUpdating: o.isUpdating.value,
10824
10824
  isCopying: o.isCopying.value,
@@ -10831,11 +10831,11 @@ const getProps$p = () => ({
10831
10831
  }))
10832
10832
  return;
10833
10833
  await httpClient().request({
10834
- method: (ee = (ie = o.varButtonCopy.value) == null ? void 0 : ie.cmd_method) != null ? ee : "POST",
10835
- url: L,
10834
+ method: (te = (se = o.varButtonCopy.value) == null ? void 0 : se.cmd_method) != null ? te : "POST",
10835
+ url: F,
10836
10836
  params: ge.value,
10837
10837
  data: pe.value
10838
- }), ((le = o.varButtonCopy.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), await l.store.emit(o.formID, "ok", {
10838
+ }), ((ie = o.varButtonCopy.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), await l.store.emit(o.formID, "ok", {
10839
10839
  isCreating: o.isCreating.value,
10840
10840
  isUpdating: o.isUpdating.value,
10841
10841
  isCopying: o.isCopying.value,
@@ -10850,9 +10850,9 @@ const getProps$p = () => ({
10850
10850
  }
10851
10851
  }
10852
10852
  async function fe() {
10853
- var B, W, Z, ne, se, ie;
10854
- const L = (B = o.varButtonDelete.value) == null ? void 0 : B.cmd;
10855
- if (!L) {
10853
+ var x, z, J, ee, oe, se;
10854
+ const F = (x = o.varButtonDelete.value) == null ? void 0 : x.cmd;
10855
+ if (!F) {
10856
10856
  KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10857
10857
  VarButton: o.varButtonDelete.value
10858
10858
  });
@@ -10860,12 +10860,12 @@ const getProps$p = () => ({
10860
10860
  }
10861
10861
  try {
10862
10862
  o.store.setIsDeletingRequesting(o.formID, !0);
10863
- let ee = ref({
10864
- ids: (Z = (W = s.selectedRows.value) == null ? void 0 : W.map((pe) => {
10863
+ let te = ref({
10864
+ ids: (J = (z = s.selectedRows.value) == null ? void 0 : z.map((pe) => {
10865
10865
  var me, _e, he;
10866
10866
  return (he = pe[(_e = (me = o.varButtonDelete.value) == null ? void 0 : me.del_param_clm) != null ? _e : "id"]) != null ? he : "";
10867
- })) != null ? Z : []
10868
- }), le = ref({});
10867
+ })) != null ? J : []
10868
+ }), ie = ref({});
10869
10869
  if (await l.store.emit(o.formID, "beforeRequest", {
10870
10870
  isCreating: o.isCreating.value,
10871
10871
  isUpdating: o.isUpdating.value,
@@ -10874,18 +10874,18 @@ const getProps$p = () => ({
10874
10874
  row: s.selectedFirstRow.value,
10875
10875
  rows: s.selectedRows.value,
10876
10876
  model: l.model,
10877
- params: ee,
10878
- data: le
10877
+ params: te,
10878
+ data: ie
10879
10879
  }))
10880
10880
  return;
10881
10881
  await httpClient().request({
10882
- method: (se = (ne = o.varButtonDelete.value) == null ? void 0 : ne.cmd_method) != null ? se : "DELETE",
10883
- url: L,
10884
- params: ee.value,
10885
- data: le.value
10882
+ method: (oe = (ee = o.varButtonDelete.value) == null ? void 0 : ee.cmd_method) != null ? oe : "DELETE",
10883
+ url: F,
10884
+ params: te.value,
10885
+ data: ie.value
10886
10886
  }, {
10887
10887
  joinParamsToUrl: !0
10888
- }), ((ie = o.varButtonDelete.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), await l.store.emit(o.formID, "ok", {
10888
+ }), ((se = o.varButtonDelete.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), await l.store.emit(o.formID, "ok", {
10889
10889
  isCreating: o.isCreating.value,
10890
10890
  isUpdating: o.isUpdating.value,
10891
10891
  isCopying: o.isCopying.value,
@@ -10893,52 +10893,52 @@ const getProps$p = () => ({
10893
10893
  row: s.selectedFirstRow.value,
10894
10894
  model: l.model
10895
10895
  }), o.store.setIsDeleting(o.formID, !1), c.search(!0);
10896
- } catch (ee) {
10897
- console.error(ee), l.store.emit(o.formID, "error", ee);
10896
+ } catch (te) {
10897
+ console.error(te), l.store.emit(o.formID, "error", te);
10898
10898
  } finally {
10899
10899
  o.store.setIsDeletingRequesting(o.formID, !1);
10900
10900
  }
10901
10901
  }
10902
- function K(L) {
10903
- var W, Z;
10904
- const B = (Z = (W = a == null ? void 0 : a.KgSubmit) == null ? void 0 : W["KgForm.Item"]) == null ? void 0 : Z[L.var_nam];
10905
- return isFunction$2(B) ? createVNode(KgForm.Item, {
10906
- kgVarName: L.var_nam,
10902
+ function de(F) {
10903
+ 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, {
10906
+ kgVarName: F.var_nam,
10907
10907
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10908
- kgRules: l.rules.value[L.var_nam],
10909
- onKgSubmit: ue
10908
+ kgRules: l.rules.value[F.var_nam],
10909
+ onKgSubmit: le
10910
10910
  }, {
10911
10911
  control: ({
10912
- varName: ne,
10913
- props: se,
10914
- model: ie,
10915
- varVariableConfig: ee,
10916
- varProfileDetail: le,
10912
+ varName: ee,
10913
+ props: oe,
10914
+ model: se,
10915
+ varVariableConfig: te,
10916
+ varProfileDetail: ie,
10917
10917
  varSubmitField: ge
10918
- }) => B({
10919
- varName: ne,
10920
- props: se,
10921
- model: ie,
10922
- varVariableConfig: ee,
10923
- varProfileDetail: le,
10918
+ }) => x({
10919
+ varName: ee,
10920
+ props: oe,
10921
+ model: se,
10922
+ varVariableConfig: te,
10923
+ varProfileDetail: ie,
10924
10924
  varSubmitField: ge
10925
10925
  })
10926
10926
  }) : createVNode(KgForm.Item, {
10927
- kgVarName: L.var_nam,
10927
+ kgVarName: F.var_nam,
10928
10928
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10929
- kgRules: l.rules.value[L.var_nam],
10930
- onKgSubmit: ue
10929
+ kgRules: l.rules.value[F.var_nam],
10930
+ onKgSubmit: le
10931
10931
  }, null);
10932
10932
  }
10933
- function U() {
10934
- let L, B;
10933
+ function R() {
10934
+ let F, x;
10935
10935
  return createVNode(KgResizable, {
10936
10936
  kgType: l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
10937
- kgMinWidth: F.value,
10937
+ kgMinWidth: G.value,
10938
10938
  kgMaxWidth: $.value,
10939
- kgWidth: P.value,
10939
+ kgWidth: V.value,
10940
10940
  kgDisabled: w.value,
10941
- "onUpdate:kgWidth": (W) => A.value.kgWidth = W
10941
+ "onUpdate:kgWidth": (z) => A.value.kgWidth = z
10942
10942
  }, {
10943
10943
  default: () => [createVNode(Spin, {
10944
10944
  spinning: d.value
@@ -10948,18 +10948,18 @@ const getProps$p = () => ({
10948
10948
  model: l.model.value,
10949
10949
  layout: H.value,
10950
10950
  labelCol: X.value,
10951
- wrapperCol: Y.value
10951
+ wrapperCol: Q.value
10952
10952
  }, {
10953
10953
  default: () => [createVNode("div", {
10954
- ref: V
10954
+ ref: O
10955
10955
  }, [T.value.length > 0 && createVNode(Row, {
10956
10956
  gutter: 12
10957
- }, _isSlot$8(L = T.value.map(K)) ? L : {
10958
- default: () => [L]
10957
+ }, _isSlot$8(F = T.value.map(de)) ? F : {
10958
+ default: () => [F]
10959
10959
  }), T.value.length > 0 && M.value.length > 0 && createVNode(Divider, null, null), M.value.length > 0 && createVNode(Row, {
10960
10960
  gutter: 12
10961
- }, _isSlot$8(B = M.value.map(K)) ? B : {
10962
- default: () => [B]
10961
+ }, _isSlot$8(x = M.value.map(de)) ? x : {
10962
+ default: () => [x]
10963
10963
  }), u.value && createVNode("div", {
10964
10964
  style: "text-align: center; padding: 6px 0 12px;"
10965
10965
  }, [n.t("kg.confirmDelete")])])]
@@ -10967,56 +10967,56 @@ const getProps$p = () => ({
10967
10967
  })]
10968
10968
  });
10969
10969
  }
10970
- function z() {
10971
- let L, B;
10970
+ function U() {
10971
+ let F, x;
10972
10972
  return createVNode("div", null, [createVNode(Button, {
10973
10973
  type: "primary",
10974
- ghost: !N.value,
10975
- disabled: N.value,
10976
- onClick: oe
10977
- }, _isSlot$8(L = n.t("kg.cancel")) ? L : {
10978
- default: () => [L]
10974
+ ghost: !P.value,
10975
+ disabled: P.value,
10976
+ onClick: ne
10977
+ }, _isSlot$8(F = n.t("kg.cancel")) ? F : {
10978
+ default: () => [F]
10979
10979
  }), createVNode(Button, {
10980
10980
  type: "primary",
10981
10981
  disabled: I.value,
10982
10982
  loading: E.value,
10983
10983
  danger: !!o.isDeleting.value,
10984
- onClick: ue
10985
- }, _isSlot$8(B = n.t(o.isDeleting.value ? "kg.delete" : "kg.save")) ? B : {
10986
- default: () => [B]
10984
+ onClick: le
10985
+ }, _isSlot$8(x = n.t(o.isDeleting.value ? "kg.delete" : "kg.save")) ? x : {
10986
+ default: () => [x]
10987
10987
  })]);
10988
10988
  }
10989
- function q() {
10989
+ function W() {
10990
10990
  return createVNode("div", {
10991
10991
  title: D.title.value
10992
10992
  }, [D.title.value]);
10993
10993
  }
10994
- function J() {
10994
+ function q() {
10995
10995
  return createVNode(KgSubmitHeader, {
10996
- isFullscreen: x.isFullscreen,
10997
- "onUpdate:isFullscreen": (L) => x.isFullscreen = L,
10996
+ isFullscreen: N.isFullscreen,
10997
+ "onUpdate:isFullscreen": (F) => N.isFullscreen = F,
10998
10998
  kgShowFullscreenButton: !u.value,
10999
10999
  kgShowConfigButton: !u.value && e.kgShowConfigButton,
11000
- onKgCancel: oe
11000
+ onKgCancel: ne
11001
11001
  }, null);
11002
11002
  }
11003
11003
  return onUnmounted(() => {
11004
11004
  l.store.dispose(o.formID);
11005
11005
  }), () => createVNode(Drawer, {
11006
- visible: R.value,
11006
+ visible: L.value,
11007
11007
  placement: "right",
11008
11008
  closable: !1,
11009
11009
  maskClosable: !1,
11010
11010
  keyboard: !1,
11011
11011
  destroyOnClose: !0,
11012
- width: O.value,
11013
- class: G.value,
11012
+ width: K.value,
11013
+ class: B.value,
11014
11014
  "kg-frm_id": o.formID
11015
11015
  }, {
11016
- title: q,
11017
- extra: J,
11018
- default: U,
11019
- footer: z
11016
+ title: W,
11017
+ extra: q,
11018
+ default: R,
11019
+ footer: U
11020
11020
  });
11021
11021
  }
11022
11022
  }), KgYesOrNo$1 = "", getProps$o = () => ({
@@ -11212,6 +11212,8 @@ const useKgTableStore = () => (store$4 || (store$4 = defineStore("KgTable", {
11212
11212
  },
11213
11213
  setTableWidth(e, t) {
11214
11214
  this.tableWidthMap.set(e, unref(t));
11215
+ },
11216
+ clearDatas(e) {
11215
11217
  }
11216
11218
  }
11217
11219
  }).bind(null, pinia())), store$4);
@@ -11290,8 +11292,8 @@ const getProps$n = () => ({
11290
11292
  return !1;
11291
11293
  });
11292
11294
  const l = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
11293
- var T, M, E, N, I, A;
11294
- return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((M = s.selectedRow.value) == null ? void 0 : M[s.id.value]) && (!!n.isCreating.value && ((E = c.value) == null ? void 0 : E.crt_flg) === 1 || !!n.isUpdating.value && ((N = c.value) == null ? void 0 : N.upt_flg) === 1 || !!n.isCopying.value && ((I = c.value) == null ? void 0 : I.cpy_flg) === 1 || !!n.isDeleting.value && ((A = c.value) == null ? void 0 : A.del_flg) === 1);
11295
+ var T, M, E, P, I, A;
11296
+ return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((M = s.selectedRow.value) == null ? void 0 : M[s.id.value]) && (!!n.isCreating.value && ((E = c.value) == null ? void 0 : E.crt_flg) === 1 || !!n.isUpdating.value && ((P = c.value) == null ? void 0 : P.upt_flg) === 1 || !!n.isCopying.value && ((I = c.value) == null ? void 0 : I.cpy_flg) === 1 || !!n.isDeleting.value && ((A = c.value) == null ? void 0 : A.del_flg) === 1);
11295
11297
  }), d = computed(() => {
11296
11298
  var T, M;
11297
11299
  return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((M = s.selectedRow.value) == null ? void 0 : M[s.id.value]) && (!!n.isCreating.value && !!n.isCreatingRequesting.value || !!n.isUpdating.value && !!n.isUpdatingRequesting.value || !!n.isCopying.value && !!n.isCopyingRequesting.value || !!n.isDeleting.value && !!n.isDeletingRequesting.value);
@@ -11300,7 +11302,7 @@ const getProps$n = () => ({
11300
11302
  let T = "kg-table-td";
11301
11303
  return ((M = l.value) == null ? void 0 : M.align) === "center" ? T += " kg-table-td--center" : ((E = l.value) == null ? void 0 : E.align) === "right" && (T += " kg-table-td--right"), u.value && (T += " kg-table-td--submitting"), T;
11302
11304
  }), v = computed(() => {
11303
- var M, E, N, I;
11305
+ var M, E, P, I;
11304
11306
  if (e.kgValue === KG_TABLE_TEMP_ID)
11305
11307
  return "";
11306
11308
  let T = e.kgValue;
@@ -11308,7 +11310,7 @@ const getProps$n = () => ({
11308
11310
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
11309
11311
  {
11310
11312
  const A = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
11311
- T = (I = (N = e.kgRow) == null ? void 0 : N[A.dscFieldName || `${e.kgVarName}_dsc`]) != null ? I : e.kgValue;
11313
+ T = (I = (P = e.kgRow) == null ? void 0 : P[A.dscFieldName || `${e.kgVarName}_dsc`]) != null ? I : e.kgValue;
11312
11314
  }
11313
11315
  break;
11314
11316
  }
@@ -11316,7 +11318,7 @@ const getProps$n = () => ({
11316
11318
  `)), T;
11317
11319
  }), C = ref(null);
11318
11320
  function g(T) {
11319
- var M, E, N;
11321
+ var M, E, P;
11320
11322
  if (T.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
11321
11323
  switch ((M = l.value) == null ? void 0 : M.display_type) {
11322
11324
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
@@ -11326,7 +11328,7 @@ const getProps$n = () => ({
11326
11328
  {
11327
11329
  T.stopPropagation(), T.preventDefault();
11328
11330
  const I = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
11329
- (N = a.router.value) == null || N.push({
11331
+ (P = a.router.value) == null || P.push({
11330
11332
  path: I.path,
11331
11333
  query: e.kgRow
11332
11334
  });
@@ -11358,33 +11360,33 @@ const getProps$n = () => ({
11358
11360
  });
11359
11361
  }
11360
11362
  function y() {
11361
- var T, M, E, N, I, A, w, F, $, P;
11363
+ var T, M, E, P, I, A, w, G, $, V;
11362
11364
  if (u.value)
11363
11365
  return b();
11364
11366
  switch ((T = l.value) == null ? void 0 : T.display_type) {
11365
11367
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
11366
- const V = KgUtil.tryParseJSON((M = l.value) == null ? void 0 : M.display_type_properties);
11368
+ const O = KgUtil.tryParseJSON((M = l.value) == null ? void 0 : M.display_type_properties);
11367
11369
  return createVNode(KgYesOrNo, {
11368
- kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((E = V.yValue) != null ? E : 1),
11369
- kgNilAsFalse: V.nilAsFalse
11370
+ kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((E = O.yValue) != null ? E : 1),
11371
+ kgNilAsFalse: O.nilAsFalse
11370
11372
  }, null);
11371
11373
  }
11372
11374
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
11373
- const V = KgUtil.tryParseJSON((N = l.value) == null ? void 0 : N.display_type_properties), D = isArrayLike(V) && V.find((O) => O.value === e.kgValue);
11375
+ const O = KgUtil.tryParseJSON((P = l.value) == null ? void 0 : P.display_type_properties), D = isArrayLike(O) && O.find((K) => K.value === e.kgValue);
11374
11376
  if (D) {
11375
- const O = n.t(D.varName).value;
11376
- return O ? createVNode(Tag, {
11377
+ const K = n.t(D.varName).value;
11378
+ return K ? createVNode(Tag, {
11377
11379
  color: (I = D.color) != null ? I : "default"
11378
- }, _isSlot$7(O) ? O : {
11379
- default: () => [O]
11380
+ }, _isSlot$7(K) ? K : {
11381
+ default: () => [K]
11380
11382
  }) : k();
11381
11383
  } else
11382
11384
  return k();
11383
11385
  }
11384
11386
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
11385
- const V = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
11386
- if (V.isTag && isArrayLike(V.tagColors)) {
11387
- const D = V.tagColors.find((O) => O.value === e.kgValue);
11387
+ const O = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
11388
+ if (O.isTag && isArrayLike(O.tagColors)) {
11389
+ const D = O.tagColors.find((K) => K.value === e.kgValue);
11388
11390
  return v.value ? createVNode(Tag, {
11389
11391
  color: (w = D == null ? void 0 : D.color) != null ? w : "default"
11390
11392
  }, {
@@ -11394,11 +11396,11 @@ const getProps$n = () => ({
11394
11396
  return k();
11395
11397
  }
11396
11398
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
11397
- const V = KgUtil.tryParseJSON((F = l.value) == null ? void 0 : F.display_type_properties);
11399
+ const O = KgUtil.tryParseJSON((G = l.value) == null ? void 0 : G.display_type_properties);
11398
11400
  return createVNode(KgProgressA, {
11399
- kgTextWidth: V.textWidth,
11400
- kgLeft: ($ = e.kgRow) == null ? void 0 : $[V.leftColumn],
11401
- kgRight: (P = e.kgRow) == null ? void 0 : P[V.rightColumn]
11401
+ kgTextWidth: O.textWidth,
11402
+ kgLeft: ($ = e.kgRow) == null ? void 0 : $[O.leftColumn],
11403
+ kgRight: (V = e.kgRow) == null ? void 0 : V[O.rightColumn]
11402
11404
  }, null);
11403
11405
  }
11404
11406
  case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
@@ -11449,6 +11451,7 @@ const getProps$m = () => ({
11449
11451
  o.store.setSelectedRows(n.formID, []);
11450
11452
  }
11451
11453
  function s() {
11454
+ o.store.clearDatas(n.formID);
11452
11455
  }
11453
11456
  function l() {
11454
11457
  }
@@ -11810,10 +11813,10 @@ const getProps$h = () => ({
11810
11813
  var M;
11811
11814
  let k, T;
11812
11815
  return createVNode(Fragment, null, [(M = n.varGridMasters.value) == null ? void 0 : M.map((E) => {
11813
- var N;
11816
+ var P;
11814
11817
  return createVNode(Menu.Item, {
11815
11818
  key: E.id,
11816
- class: E.id === ((N = n.currentVarGridMaster.value) == null ? void 0 : N.id) ? "selected" : "",
11819
+ class: E.id === ((P = n.currentVarGridMaster.value) == null ? void 0 : P.id) ? "selected" : "",
11817
11820
  "kg-var_nam": E.grd_var_nam,
11818
11821
  onClick: () => n.store.setCurrentVarGridMasterID(n.formID, E.id)
11819
11822
  }, {
@@ -11900,18 +11903,18 @@ function _useColumns(e) {
11900
11903
  return "right";
11901
11904
  }
11902
11905
  function M() {
11903
- var I, A, w, F;
11904
- return !((A = (I = t == null ? void 0 : t.value) == null ? void 0 : I.KgTable) != null && A.kgDisabled || isNil((F = (w = t == null ? void 0 : t.value) == null ? void 0 : w.KgTable) == null ? void 0 : F.kgDisabled) && e.kgDisabled || g.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
11906
+ var I, A, w, G;
11907
+ 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);
11905
11908
  }
11906
11909
  function E() {
11907
11910
  return ["left", "center", "right"].includes(g.align || "") ? g.align : "left";
11908
11911
  }
11909
- const N = b();
11912
+ const P = b();
11910
11913
  return {
11911
11914
  dataIndex: _,
11912
11915
  title: y(),
11913
- width: N,
11914
- resizable: typeof N == "number",
11916
+ width: P,
11917
+ resizable: typeof P == "number",
11915
11918
  minWidth: KG_TABLE_TD_MIN_WIDTH,
11916
11919
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
11917
11920
  fixed: T(),
@@ -11980,28 +11983,31 @@ const KgTable$1 = "", getProps$g = () => ({
11980
11983
  slots: t,
11981
11984
  emit: r
11982
11985
  }) {
11983
- var fe;
11986
+ var de;
11984
11987
  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
11988
  l.onSearch(async ({
11986
- resetPageIndex: K
11987
- }) => (G(K), !1)), l.onReset(async () => (G(!0), !1)), u.store.$onAction(async ({
11988
- name: K,
11989
+ resetPageIndex: R
11990
+ }) => (H(R), !1)), l.onReset(async () => (H(!0), !1)), u.store.$onAction(async ({
11991
+ name: R,
11989
11992
  args: U
11990
11993
  }) => {
11991
- switch (K) {
11994
+ switch (R) {
11992
11995
  case "setRowSelect":
11993
11996
  if (U[0] === s.formID) {
11994
- const z = U[1], q = U[2], J = z[u.id.value];
11997
+ const W = U[1], q = U[2], F = W[u.id.value];
11995
11998
  switch (!0) {
11996
- case (q && !$.value.includes(J)):
11997
- H([...$.value, J]);
11999
+ case (q && !V.value.includes(F)):
12000
+ Y([...V.value, F]);
11998
12001
  break;
11999
- case (!q && $.value.includes(J)):
12000
- H(without$1($.value, J));
12002
+ case (!q && V.value.includes(F)):
12003
+ Y(without$1(V.value, F));
12001
12004
  break;
12002
12005
  }
12003
12006
  }
12004
12007
  break;
12008
+ case "clearDatas":
12009
+ U[0] === s.formID && ($.value = [], O.total = 0, B(), v.value = []);
12010
+ break;
12005
12011
  }
12006
12012
  });
12007
12013
  const m = ref(!1), v = ref([]), {
@@ -12012,96 +12018,102 @@ const KgTable$1 = "", getProps$g = () => ({
12012
12018
  } = _useLoading(), b = ref(null);
12013
12019
  _useResizeObserver(b);
12014
12020
  const y = computed(() => {
12015
- var K, U;
12016
- return (U = (K = s.varButtonSearch.value) == null ? void 0 : K.cmd) != null ? U : null;
12021
+ var R, U;
12022
+ return (U = (R = s.varButtonSearch.value) == null ? void 0 : R.cmd) != null ? U : null;
12017
12023
  }), k = computed(() => {
12018
- var U, z, q, J, L, B, W;
12019
- let K = {
12020
- pageNo: P.pageIndex,
12021
- pageSize: P.pageSize,
12022
- ...V,
12023
- ...(z = (U = l.model) == null ? void 0 : U.value) != null ? z : {}
12024
+ var U, W, q, F, x, z, J;
12025
+ let R = {
12026
+ pageNo: O.pageIndex,
12027
+ pageSize: O.pageSize,
12028
+ ...D,
12029
+ ...(W = (U = l.model) == null ? void 0 : U.value) != null ? W : {}
12024
12030
  };
12025
- return s.varButtonSearch.value && (K = {
12026
- ...K,
12027
- ...KgVarUtil.parseCommandParameter((J = (q = s.varButtonSearch.value) == null ? void 0 : q.cmd_prm) != null ? J : "")
12028
- }), (L = s.varGridConfig.value) != null && L.cmd_prm && (K = {
12029
- ...K,
12030
- ...KgVarUtil.parseCommandParameter((B = s.varGridConfig.value.cmd_prm) != null ? B : "")
12031
- }), ((W = s.varGridConfig.value) == null ? void 0 : W.convert_sort_field_to_under_score_flg) === 1 && K.column && (K.column = snakeCase$1(K.column)), K;
12032
- }), T = computed(() => _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || P.total === 0), M = computed(() => _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), E = computed(() => {
12033
- var K;
12034
- return !!((K = n == null ? void 0 : n.KgTable) != null && K.expandedRowRender);
12035
- }), N = computed(() => {
12036
- var K;
12037
- return ((K = s.varGridConfig.value) == null ? void 0 : K.show_check_column_flg) === 1;
12031
+ return s.varButtonSearch.value && (R = {
12032
+ ...R,
12033
+ ...KgVarUtil.parseCommandParameter((F = (q = s.varButtonSearch.value) == null ? void 0 : q.cmd_prm) != null ? F : "")
12034
+ }), (x = s.varGridConfig.value) != null && x.cmd_prm && (R = {
12035
+ ...R,
12036
+ ...KgVarUtil.parseCommandParameter((z = s.varGridConfig.value.cmd_prm) != null ? z : "")
12037
+ }), ((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;
12038
+ }), T = computed(() => {
12039
+ var R, U, W, q;
12040
+ if (!isNil((U = (R = o == null ? void 0 : o.value) == null ? void 0 : R.KgTable) == null ? void 0 : U.kgDisabled))
12041
+ return (q = (W = o == null ? void 0 : o.value) == null ? void 0 : W.KgTable) == null ? void 0 : q.kgDisabled;
12042
+ if (!isNil(e.kgDisabled))
12043
+ return e.kgDisabled;
12044
+ }), 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(() => {
12045
+ var R;
12046
+ return !!((R = n == null ? void 0 : n.KgTable) != null && R.expandedRowRender);
12038
12047
  }), I = computed(() => {
12039
- if (!!N.value)
12048
+ var R;
12049
+ return ((R = s.varGridConfig.value) == null ? void 0 : R.show_check_column_flg) === 1;
12050
+ }), A = computed(() => {
12051
+ if (!!I.value)
12040
12052
  return {
12041
12053
  fixed: "left",
12042
12054
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
12043
12055
  hideSelectAll: !u.isMultiSelect.value,
12044
- selectedRowKeys: $,
12056
+ selectedRowKeys: V,
12045
12057
  preserveSelectedRowKeys: !1,
12046
- getCheckboxProps: (K) => ({
12047
- disabled: !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value
12058
+ getCheckboxProps: (R) => ({
12059
+ disabled: !!T.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value
12048
12060
  }),
12049
- onSelect: (K) => Q(K),
12050
- onChange: (K) => u.isMultiSelect.value && H(K)
12061
+ onSelect: (R) => X(R),
12062
+ onChange: (R) => u.isMultiSelect.value && Y(R)
12051
12063
  };
12052
- }), A = computed(() => {
12053
- var U;
12054
- let K = "kg-table";
12055
- return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (K += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (K += " 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) && (K += " kg-table--submitting"), K;
12056
12064
  }), w = computed(() => {
12057
12065
  var U;
12058
- let K = "kg-table-bottom";
12059
- return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (K += " kg-table-bottom--border"), K;
12060
- }), F = ref([]), $ = (fe = u.store.getSelectedRowKeys(s.formID)) != null ? fe : ref([]), P = reactive({
12066
+ let R = "kg-table";
12067
+ 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;
12068
+ }), G = computed(() => {
12069
+ var U;
12070
+ let R = "kg-table-bottom";
12071
+ return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (R += " kg-table-bottom--border"), R;
12072
+ }), $ = ref([]), V = (de = u.store.getSelectedRowKeys(s.formID)) != null ? de : ref([]), O = reactive({
12061
12073
  pageIndex: 1,
12062
12074
  pageSize: 10,
12063
12075
  total: 0
12064
- }), V = reactive({
12076
+ }), D = reactive({
12065
12077
  column: void 0,
12066
12078
  order: void 0
12067
- }), D = watch(u.pageSizeOption, (K) => {
12068
- K && (setTimeout(() => D()), P.pageSize = K, m.value = !0, KgLogger.debug(`${s.formID} | KgTable | isReadReady: ${m.value}`));
12079
+ }), K = watch(u.pageSizeOption, (R) => {
12080
+ R && (setTimeout(() => K()), O.pageSize = R, m.value = !0, KgLogger.debug(`${s.formID} | KgTable | isReadReady: ${m.value}`));
12069
12081
  }, {
12070
12082
  immediate: !0
12071
12083
  });
12072
- watch(u.pageSizeOptions, (K) => {
12073
- K.length > 0 && !K.includes(P.pageSize) && (P.pageSize = u.pageSizeOption.value);
12074
- }), watch([y, u.isReadAutomatically, l.isReady], ([K, U, z]) => {
12075
- K && U && z && !u.store.getIsRetrieved(s.formID) && G(!0);
12084
+ watch(u.pageSizeOptions, (R) => {
12085
+ R.length > 0 && !R.includes(O.pageSize) && (O.pageSize = u.pageSizeOption.value);
12086
+ }), watch([y, u.isReadAutomatically, l.isReady], ([R, U, W]) => {
12087
+ R && U && W && !u.store.getIsRetrieved(s.formID) && H(!0);
12076
12088
  }, {
12077
12089
  immediate: !0
12078
- }), watch(s.isCreating, (K, U) => {
12079
- K === !0 ? O() : K === !1 && U === !0 && R();
12090
+ }), watch(s.isCreating, (R, U) => {
12091
+ R === !0 ? L() : R === !1 && U === !0 && N();
12080
12092
  }), onUnmounted(() => {
12081
12093
  u.store.dispose(s.formID);
12082
12094
  });
12083
- function O() {
12095
+ function L() {
12084
12096
  if (d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
12085
- const K = {
12097
+ const R = {
12086
12098
  [u.id.value]: KG_TABLE_TEMP_ID
12087
12099
  };
12088
- F.value = [K, ...F.value], u.store.setSelectedRows(s.formID, [K]);
12100
+ $.value = [R, ...$.value], u.store.setSelectedRows(s.formID, [R]);
12089
12101
  }
12090
12102
  }
12091
- function R() {
12092
- const K = F.value.find((U) => U[u.id.value] === KG_TABLE_TEMP_ID);
12093
- K && (F.value = without$1(F.value, K), u.store.setSelectedRows(s.formID, []));
12103
+ function N() {
12104
+ const R = $.value.find((U) => U[u.id.value] === KG_TABLE_TEMP_ID);
12105
+ R && ($.value = without$1($.value, R), u.store.setSelectedRows(s.formID, []));
12094
12106
  }
12095
- function x(K, U) {
12096
- var z;
12097
- if (!(!!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!I.value) {
12107
+ function B(R, U) {
12108
+ var W;
12109
+ if (!(!!T.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!A.value) {
12098
12110
  if (!U) {
12099
12111
  u.store.setSelectedRows(s.formID, []);
12100
12112
  return;
12101
12113
  }
12102
- switch (K == null ? void 0 : K.detail) {
12114
+ switch (R == null ? void 0 : R.detail) {
12103
12115
  case 1:
12104
- switch ((z = s.varGridConfig.value) == null ? void 0 : z.operation_on_row_click) {
12116
+ switch ((W = s.varGridConfig.value) == null ? void 0 : W.operation_on_row_click) {
12105
12117
  case 0:
12106
12118
  break;
12107
12119
  case 1:
@@ -12117,165 +12129,157 @@ const KgTable$1 = "", getProps$g = () => ({
12117
12129
  }
12118
12130
  }
12119
12131
  }
12120
- function G(K = !1) {
12132
+ function H(R = !1) {
12121
12133
  KgLogger.debug(`${s.formID} | KgTable | retrieve() | \u8FDB\u5165\u65B9\u6CD5.`);
12122
12134
  const U = watch(m, (q) => {
12123
- q && (setTimeout(() => U()), z());
12135
+ q && (setTimeout(() => U()), W());
12124
12136
  }, {
12125
12137
  immediate: !0
12126
12138
  });
12127
- async function z() {
12128
- var q, J;
12139
+ async function W() {
12140
+ var q, F;
12129
12141
  if (KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !y.value) {
12130
12142
  KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
12131
12143
  VarButton: s.varButtonSearch.value
12132
12144
  });
12133
12145
  return;
12134
12146
  }
12135
- K && (P.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
12147
+ R && (O.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
12136
12148
  try {
12137
- const L = KgUtil.parseParams(k.value, u.profileFormID.value, a), B = ref({});
12149
+ const x = KgUtil.parseParams(k.value, u.profileFormID.value, a), z = ref({});
12138
12150
  await u.store.emit(s.formID, "beforeRetrieve", {
12139
- params: L,
12140
- response: B
12141
- }) ? KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : B.value = await httpClient().request({
12151
+ params: x,
12152
+ response: z
12153
+ }) ? KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : z.value = await httpClient().request({
12142
12154
  method: "GET",
12143
12155
  url: y.value,
12144
- params: L
12156
+ params: x
12145
12157
  }, {
12146
12158
  successMessageMode: "none"
12147
12159
  });
12148
- let W = ref([]), Z = ref(0);
12160
+ let J = ref([]), ee = ref(0);
12149
12161
  switch (!0) {
12150
- case !B.value:
12151
- W.value = [], Z.value = 0;
12162
+ case !z.value:
12163
+ J.value = [], ee.value = 0;
12152
12164
  break;
12153
- case isArrayLike(B.value):
12154
- W.value = B.value, Z.value = B.value.length;
12165
+ case isArrayLike(z.value):
12166
+ J.value = z.value, ee.value = z.value.length;
12155
12167
  break;
12156
- case ("total" in B.value && "records" in B.value):
12157
- W.value = (q = B.value.records) != null ? q : [], Z.value = (J = B.value.total) != null ? J : 0;
12168
+ case ("total" in z.value && "records" in z.value):
12169
+ J.value = (q = z.value.records) != null ? q : [], ee.value = (F = z.value.total) != null ? F : 0;
12158
12170
  break;
12159
12171
  }
12160
12172
  await u.store.emit(s.formID, "beforeSetDatas", {
12161
- datas: W,
12162
- total: Z
12163
- }), F.value = W.value, P.total = Z.value, x(), v.value = [], await nextTick(), await u.store.emit(s.formID, "retrieve", {
12164
- page: B.value,
12165
- datas: F
12173
+ datas: J,
12174
+ total: ee
12175
+ }), $.value = J.value, O.total = ee.value, B(), v.value = [], await nextTick(), await u.store.emit(s.formID, "retrieve", {
12176
+ page: z.value,
12177
+ datas: $
12166
12178
  }), u.store.setIsRetrieved(s.formID, !0);
12167
- } catch (L) {
12168
- throw L;
12179
+ } catch (x) {
12180
+ throw x;
12169
12181
  } finally {
12170
12182
  u.store.setIsRetrieving(s.formID, !1);
12171
12183
  }
12172
12184
  }
12173
12185
  }
12174
- function H(K) {
12175
- u.store.setSelectedRows(s.formID, K.map((U) => {
12176
- var z;
12177
- return (z = F.value) == null ? void 0 : z.find((q) => q[u.id.value] === U);
12186
+ function Y(R) {
12187
+ u.store.setSelectedRows(s.formID, R.map((U) => {
12188
+ var W;
12189
+ return (W = $.value) == null ? void 0 : W.find((q) => q[u.id.value] === U);
12178
12190
  }).filter((U) => !!U));
12179
12191
  }
12180
- function Q(K) {
12181
- var U, z;
12192
+ function X(R) {
12193
+ var U, W;
12182
12194
  switch (u.isMultiSelect.value) {
12183
12195
  case !0:
12184
12196
  {
12185
- const q = K[u.id.value];
12186
- $.value.includes(q) ? $.value = without$1($.value, q) : $.value = [...(U = $.value) != null ? U : [], q];
12197
+ const q = R[u.id.value];
12198
+ V.value.includes(q) ? V.value = without$1(V.value, q) : V.value = [...(U = V.value) != null ? U : [], q];
12187
12199
  }
12188
12200
  break;
12189
12201
  case !1:
12190
12202
  {
12191
- const q = K[u.id.value];
12192
- (z = $.value) != null && z.includes(q) ? $.value = [] : $.value = [q];
12203
+ const q = R[u.id.value];
12204
+ (W = V.value) != null && W.includes(q) ? V.value = [] : V.value = [q];
12193
12205
  }
12194
12206
  break;
12195
12207
  }
12196
- u.store.setSelectedRows(s.formID, $.value.map((q) => {
12197
- var J;
12198
- return (J = F.value) == null ? void 0 : J.find((L) => L[u.id.value] === q);
12208
+ u.store.setSelectedRows(s.formID, V.value.map((q) => {
12209
+ var F;
12210
+ return (F = $.value) == null ? void 0 : F.find((x) => x[u.id.value] === q);
12199
12211
  }).filter((q) => !!q));
12200
12212
  }
12201
- function X(K, U) {
12202
- U.width = K, s.store.setVarGridDetailWidth(s.formID, U.dataIndex, K);
12213
+ function Q(R, U) {
12214
+ U.width = R, s.store.setVarGridDetailWidth(s.formID, U.dataIndex, R);
12203
12215
  }
12204
- async function Y(K, U, z, q) {
12205
- var J;
12216
+ async function Z(R, U, W, q) {
12217
+ var F;
12206
12218
  switch (q.action) {
12207
12219
  case "sort":
12208
12220
  {
12209
12221
  await nextTick();
12210
- let L = z;
12211
- L.order ? (V.column = (J = L.field) != null ? J : void 0, V.order = L.order === "ascend" ? "asc" : L.order === "descend" ? "desc" : void 0) : (V.column = void 0, V.order = void 0), G(!0);
12222
+ let x = W;
12223
+ 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);
12212
12224
  }
12213
12225
  break;
12214
12226
  }
12215
12227
  }
12216
- function te(K, U) {
12228
+ function ae(R, U) {
12217
12229
  var q;
12218
- const z = U[u.id.value];
12230
+ const W = U[u.id.value];
12219
12231
  switch ((q = s.varGridConfig.value) == null ? void 0 : q.expand_accordion_flg) {
12220
12232
  case 0:
12221
- K ? v.value = uniq([...v.value, z]) : v.value = without$1(v.value, z);
12233
+ R ? v.value = uniq([...v.value, W]) : v.value = without$1(v.value, W);
12222
12234
  break;
12223
12235
  default:
12224
- K ? v.value = [z] : v.value = [];
12236
+ R ? v.value = [W] : v.value = [];
12225
12237
  break;
12226
12238
  }
12227
12239
  }
12228
- function ae(K, U) {
12229
- U !== P.pageSize ? (P.pageIndex = 1, P.pageSize = U) : P.pageIndex = K, G();
12240
+ function ne(R, U) {
12241
+ U !== O.pageSize ? (O.pageIndex = 1, O.pageSize = U) : O.pageIndex = R, H();
12230
12242
  }
12231
- function oe(K) {
12232
- u.store.setSelectedRows(s.formID, [K].map((U) => {
12233
- var z;
12234
- return (z = F.value) == null ? void 0 : z.find((q) => q[u.id.value] === U[u.id.value]);
12243
+ function le(R) {
12244
+ u.store.setSelectedRows(s.formID, [R].map((U) => {
12245
+ var W;
12246
+ return (W = $.value) == null ? void 0 : W.find((q) => q[u.id.value] === U[u.id.value]);
12235
12247
  }).filter((U) => !!U)), c.click(s.formID, KG_BUTTON_TYPE.UPDATE);
12236
12248
  }
12237
- function ue({
12238
- title: K,
12249
+ function ce({
12250
+ title: R,
12239
12251
  column: U
12240
12252
  }) {
12241
12253
  switch (U.dataIndex) {
12242
- case "index": {
12243
- const z = (() => {
12244
- var q, J, L, B;
12245
- if (!isNil((J = (q = o == null ? void 0 : o.value) == null ? void 0 : q.KgTable) == null ? void 0 : J.kgDisabled))
12246
- return (B = (L = o == null ? void 0 : o.value) == null ? void 0 : L.KgTable) == null ? void 0 : B.kgDisabled;
12247
- if (!isNil(e.kgDisabled))
12248
- return e.kgDisabled;
12249
- })();
12254
+ case "index":
12250
12255
  return createVNode(KgTableSetting, {
12251
- kgDisabled: z
12256
+ kgDisabled: T.value
12252
12257
  }, null);
12253
- }
12254
12258
  default:
12255
- return createVNode("pre", null, [K]);
12259
+ return createVNode("pre", null, [R]);
12256
12260
  }
12257
12261
  }
12258
- function de() {
12259
- var K;
12260
- return (K = n == null ? void 0 : n.KgTable) != null && K["summary.bodyCell"] ? createVNode(TableSummary, {
12262
+ function re() {
12263
+ var R;
12264
+ return (R = n == null ? void 0 : n.KgTable) != null && R["summary.bodyCell"] ? createVNode(TableSummary, {
12261
12265
  fixed: "bottom"
12262
12266
  }, {
12263
12267
  default: () => [createVNode(TableSummary.Row, null, {
12264
- default: () => [E.value && createVNode(TableSummary.Cell, {
12268
+ default: () => [P.value && createVNode(TableSummary.Cell, {
12265
12269
  index: 0
12266
- }, null), N.value && createVNode(TableSummary.Cell, {
12267
- index: E.value ? 1 : 0
12268
- }, null), C.value.map((U, z) => {
12270
+ }, null), I.value && createVNode(TableSummary.Cell, {
12271
+ index: P.value ? 1 : 0
12272
+ }, null), C.value.map((U, W) => {
12269
12273
  const q = s.store.getVarGridDetail(s.formID, U.dataIndex);
12270
- let J = z;
12271
- return E.value && N.value ? J += 2 : (E.value || N.value) && (J += 1), createVNode(TableSummary.Cell, {
12272
- index: J
12274
+ let F = W;
12275
+ return P.value && I.value ? F += 2 : (P.value || I.value) && (F += 1), createVNode(TableSummary.Cell, {
12276
+ index: F
12273
12277
  }, {
12274
12278
  default: () => {
12275
- var L, B;
12276
- return [(B = (L = n == null ? void 0 : n.KgTable) == null ? void 0 : L["summary.bodyCell"]) == null ? void 0 : B.call(L, {
12279
+ var x, z;
12280
+ return [(z = (x = n == null ? void 0 : n.KgTable) == null ? void 0 : x["summary.bodyCell"]) == null ? void 0 : z.call(x, {
12277
12281
  column: U,
12278
- index: J,
12282
+ index: F,
12279
12283
  varGridDetail: q
12280
12284
  })];
12281
12285
  }
@@ -12284,51 +12288,51 @@ const KgTable$1 = "", getProps$g = () => ({
12284
12288
  })]
12285
12289
  }) : null;
12286
12290
  }
12287
- function re({
12288
- column: K,
12291
+ function ue({
12292
+ column: R,
12289
12293
  index: U,
12290
- record: z,
12294
+ record: W,
12291
12295
  text: q,
12292
- value: J
12296
+ value: F
12293
12297
  }) {
12294
- var W;
12295
- let L = "";
12296
- K.customRender ? L = K.customRender({
12298
+ var J;
12299
+ let x = "";
12300
+ R.customRender ? x = R.customRender({
12297
12301
  index: U,
12298
- record: z,
12299
- column: K,
12302
+ record: W,
12303
+ column: R,
12300
12304
  text: q,
12301
- value: J,
12305
+ value: F,
12302
12306
  renderIndex: U
12303
- }) : L = J;
12304
- const B = createVNode(KgTableCell, {
12305
- kgRow: z,
12306
- kgValue: L,
12307
- kgVarName: K.dataIndex,
12308
- onKgUpdateLinkClick: () => oe(z)
12307
+ }) : x = F;
12308
+ const z = createVNode(KgTableCell, {
12309
+ kgRow: W,
12310
+ kgValue: x,
12311
+ kgVarName: R.dataIndex,
12312
+ onKgUpdateLinkClick: () => le(W)
12309
12313
  }, null);
12310
- if ((W = n == null ? void 0 : n.KgTable) != null && W.bodyCell) {
12311
- const Z = K.dataIndex ? s.store.getVarGridDetail(s.formID, K.dataIndex) : null;
12314
+ if ((J = n == null ? void 0 : n.KgTable) != null && J.bodyCell) {
12315
+ const ee = R.dataIndex ? s.store.getVarGridDetail(s.formID, R.dataIndex) : null;
12312
12316
  return n.KgTable.bodyCell({
12313
- column: K,
12317
+ column: R,
12314
12318
  index: U,
12315
- record: z,
12319
+ record: W,
12316
12320
  text: q,
12317
- value: J,
12318
- row: z,
12319
- varGridDetail: Z,
12320
- defaultRender: B
12321
+ value: F,
12322
+ row: W,
12323
+ varGridDetail: ee,
12324
+ defaultRender: z
12321
12325
  });
12322
12326
  } else
12323
- return B;
12327
+ return z;
12324
12328
  }
12325
- function ce() {
12329
+ function fe() {
12326
12330
  return !u.isReadAutomatically.value && !u.store.getIsRetrieved(s.formID) ? i.t("kg.KgTable.emptyText") : i.t("kg.emptyText");
12327
12331
  }
12328
12332
  return () => {
12329
- var K;
12333
+ var R;
12330
12334
  return createVNode("div", {
12331
- class: A.value,
12335
+ class: w.value,
12332
12336
  "kg-frm_id": s.formID,
12333
12337
  ref: b
12334
12338
  }, [createVNode(Table, {
@@ -12341,55 +12345,55 @@ const KgTable$1 = "", getProps$g = () => ({
12341
12345
  pagination: !1,
12342
12346
  showSorterTooltip: !1,
12343
12347
  columns: C.value,
12344
- dataSource: F.value,
12348
+ dataSource: $.value,
12345
12349
  loading: _.value,
12346
12350
  rowKey: u.id.value,
12347
- rowSelection: I.value,
12348
12351
  expandColumnWidth: 28,
12349
12352
  expandedRowKeys: v.value,
12353
+ rowSelection: A.value,
12350
12354
  customRow: (U) => ({
12351
- onClick: (z) => x(z, U)
12355
+ onClick: (W) => B(W, U)
12352
12356
  }),
12353
- onResizeColumn: X,
12354
- onChange: Y,
12355
- onExpand: te
12357
+ onResizeColumn: Q,
12358
+ onChange: Z,
12359
+ onExpand: ae
12356
12360
  }, {
12357
- headerCell: ue,
12358
- bodyCell: re,
12359
- emptyText: ce,
12360
- expandedRowRender: (K = n == null ? void 0 : n.KgTable) == null ? void 0 : K.expandedRowRender,
12361
- summary: de
12361
+ headerCell: ce,
12362
+ bodyCell: ue,
12363
+ emptyText: fe,
12364
+ expandedRowRender: (R = n == null ? void 0 : n.KgTable) == null ? void 0 : R.expandedRowRender,
12365
+ summary: re
12362
12366
  }), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
12363
- class: w.value
12367
+ class: G.value
12364
12368
  }, [createVNode("div", {
12365
12369
  class: "left"
12366
12370
  }, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
12367
- kgShowClearCheck: $.value.length > 0,
12368
- kgShowClearTable: P.total > 0,
12369
- kgShowLocate: $.value.length === 1,
12370
- kgTotal: $.value.length,
12371
+ kgShowClearCheck: V.value.length > 0,
12372
+ kgShowClearTable: O.total > 0,
12373
+ kgShowLocate: V.value.length === 1,
12374
+ kgTotal: V.value.length,
12371
12375
  kgDisabled: M.value
12372
12376
  }, null)]), createVNode("div", {
12373
12377
  class: "right"
12374
12378
  }, [u.isShowBottomRight.value && createVNode(Pagination, {
12375
12379
  size: "default",
12376
- current: P.pageIndex,
12377
- pageSize: P.pageSize,
12380
+ current: O.pageIndex,
12381
+ pageSize: O.pageSize,
12378
12382
  pageSizeOptions: u.pageSizeOptions.value.map((U) => String(U)),
12379
- total: P.total,
12383
+ total: O.total,
12380
12384
  showSizeChanger: !0,
12381
12385
  showQuickJumper: !1,
12382
12386
  hideOnSinglePage: !1,
12383
- disabled: T.value,
12387
+ disabled: E.value,
12384
12388
  locale: {
12385
12389
  page: ""
12386
12390
  },
12387
- showTotal: (U, z) => i.t("kg.KgTable.totalText", {
12388
- from: z[0],
12389
- to: z[1],
12391
+ showTotal: (U, W) => i.t("kg.KgTable.totalText", {
12392
+ from: W[0],
12393
+ to: W[1],
12390
12394
  total: U
12391
12395
  }),
12392
- onChange: (U, z) => ae(U, z)
12396
+ onChange: (U, W) => ne(U, W)
12393
12397
  }, null)])])]);
12394
12398
  };
12395
12399
  }
@@ -12591,8 +12595,8 @@ const KgButtonCreate = defineComponent({
12591
12595
  attrs: a
12592
12596
  }) {
12593
12597
  const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), c = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), u = computed(() => {
12594
- var k, T, M, E, N, I, A, w;
12595
- return o.isUpdating.value || o.isCopying.value || o.isDeleting.value || s.isRetrieving.value || ((k = c.value) == null ? void 0 : k.dis_no_select_flg) === 1 && ((M = (T = s.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((I = (N = s.selectedRows.value) == null ? void 0 : N.length) != null ? I : 0) > 1 || ((A = c.value) == null ? void 0 : A.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12598
+ var k, T, M, E, P, I, A, w;
12599
+ return o.isUpdating.value || o.isCopying.value || o.isDeleting.value || s.isRetrieving.value || ((k = c.value) == null ? void 0 : k.dis_no_select_flg) === 1 && ((M = (T = s.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((I = (P = s.selectedRows.value) == null ? void 0 : P.length) != null ? I : 0) > 1 || ((A = c.value) == null ? void 0 : A.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12596
12600
  }), d = computed(() => !!o.isCreatingRequesting.value);
12597
12601
  async function m() {
12598
12602
  e.onKgClick && await e.onKgClick() || o.store.setIsCreating(o.formID, !0);
@@ -12791,8 +12795,8 @@ const KgButtonCreate = defineComponent({
12791
12795
  ...KgVarUtil.parseCommandParameter((k = (y = s.value) == null ? void 0 : y.cmd_prm) != null ? k : "")
12792
12796
  }), _;
12793
12797
  }), d = computed(() => {
12794
- var _, b, y, k, T, M, E, N;
12795
- return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = s.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((y = (b = i.selectedRows.value) == null ? void 0 : b.length) != null ? y : 0) === 0 || ((k = s.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((M = (T = i.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) > 1 || ((E = s.value) == null ? void 0 : E.permission_type) === 2 && !a.p((N = s.value) == null ? void 0 : N.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12798
+ var _, b, y, k, T, M, E, P;
12799
+ return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = s.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((y = (b = i.selectedRows.value) == null ? void 0 : b.length) != null ? y : 0) === 0 || ((k = s.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((M = (T = i.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) > 1 || ((E = s.value) == null ? void 0 : E.permission_type) === 2 && !a.p((P = s.value) == null ? void 0 : P.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12796
12800
  }), m = ref(!1);
12797
12801
  async function v(_) {
12798
12802
  if (!l.value)
@@ -12966,13 +12970,13 @@ const KgButtonCreate = defineComponent({
12966
12970
  params: KgVarUtil.parseCommandParameter((T = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? T : ""),
12967
12971
  data: _ != null ? _ : []
12968
12972
  }), ((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 ({
12969
- datas: N
12973
+ datas: P
12970
12974
  }) => {
12971
- const I = N.value, A = intersectionWith$1(I, _ != null ? _ : [], (w, F) => (w == null ? void 0 : w[n.id.value]) === (F == null ? void 0 : F[n.id.value]));
12975
+ 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]));
12972
12976
  return A.length > 0 && n.store.setSelectedRows(r.formID, A), !1;
12973
12977
  }, !0), a.search(!0));
12974
- } catch (N) {
12975
- console.error(N);
12978
+ } catch (P) {
12979
+ console.error(P);
12976
12980
  } finally {
12977
12981
  r.store.setIsOtherRequesting(r.formID, !1), d == null || d.hideLoading();
12978
12982
  }
@@ -13072,8 +13076,8 @@ const KgButtonCreate = defineComponent({
13072
13076
  }
13073
13077
  });
13074
13078
  const c = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), u = computed(() => {
13075
- var k, T, M, E, N, I, A, w;
13076
- return o.isCreating.value || o.isCopying.value || o.isDeleting.value || i.isRetrieving.value || ((k = c.value) == null ? void 0 : k.dis_no_select_flg) === 1 && ((M = (T = i.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((I = (N = i.selectedRows.value) == null ? void 0 : N.length) != null ? I : 0) > 1 || ((A = c.value) == null ? void 0 : A.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13079
+ var k, T, M, E, P, I, A, w;
13080
+ return o.isCreating.value || o.isCopying.value || o.isDeleting.value || i.isRetrieving.value || ((k = c.value) == null ? void 0 : k.dis_no_select_flg) === 1 && ((M = (T = i.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((I = (P = i.selectedRows.value) == null ? void 0 : P.length) != null ? I : 0) > 1 || ((A = c.value) == null ? void 0 : A.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13077
13081
  }), d = computed(() => !!o.isUpdatingRequesting.value);
13078
13082
  async function m() {
13079
13083
  e.onKgClick && await e.onKgClick() || await s.store.emit(o.formID, "updateBeforeClick", {
@@ -13693,7 +13697,7 @@ const leftVarProfileDetailColumns = (e) => {
13693
13697
  row: y,
13694
13698
  model: k
13695
13699
  }) => {
13696
- var M, E, N;
13700
+ var M, E, P;
13697
13701
  const T = s.store.getSystemVarProfileDetails(s.formID);
13698
13702
  switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
13699
13703
  case g:
@@ -13711,10 +13715,10 @@ const leftVarProfileDetailColumns = (e) => {
13711
13715
  });
13712
13716
  l.value = l.value.map((w) => {
13713
13717
  var $;
13714
- const F = ($ = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : $.find((P) => P.var_nam === w.var_nam);
13715
- return F ? {
13718
+ const G = ($ = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : $.find((V) => V.var_nam === w.var_nam);
13719
+ return G ? {
13716
13720
  ...w,
13717
- ...F,
13721
+ ...G,
13718
13722
  id: w.id
13719
13723
  } : w;
13720
13724
  });
@@ -13731,7 +13735,7 @@ const leftVarProfileDetailColumns = (e) => {
13731
13735
  }
13732
13736
  switch (!0) {
13733
13737
  case b:
13734
- k.value.prf_var_nam = ((N = k.value.prf_var_nam) != null ? N : "") + "_COPY";
13738
+ k.value.prf_var_nam = ((P = k.value.prf_var_nam) != null ? P : "") + "_COPY";
13735
13739
  break;
13736
13740
  }
13737
13741
  return !1;
@@ -13780,14 +13784,14 @@ const leftVarProfileDetailColumns = (e) => {
13780
13784
  showSelectAll: !1,
13781
13785
  searchPlaceholder: " ",
13782
13786
  filterOption: (M, E) => {
13783
- var N;
13784
- return !!((N = E.var_nam) != null && N.includes(M));
13787
+ var P;
13788
+ return !!((P = E.var_nam) != null && P.includes(M));
13785
13789
  }
13786
13790
  }, {
13787
13791
  children: ({
13788
13792
  direction: M,
13789
13793
  filteredItems: E,
13790
- selectedKeys: N,
13794
+ selectedKeys: P,
13791
13795
  disabled: I,
13792
13796
  onItemSelectAll: A,
13793
13797
  onItemSelect: w
@@ -13802,12 +13806,12 @@ const leftVarProfileDetailColumns = (e) => {
13802
13806
  columns: M === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
13803
13807
  rowKey: "id",
13804
13808
  dataSource: E,
13805
- customRow: (F) => ({
13806
- onClick: ($) => C($, F, M, N)
13809
+ customRow: (G) => ({
13810
+ onClick: ($) => C($, G, M, P)
13807
13811
  }),
13808
13812
  rowSelection: m({
13809
13813
  disabled: I,
13810
- selectedKeys: N,
13814
+ selectedKeys: P,
13811
13815
  onItemSelectAll: A,
13812
13816
  onItemSelect: w
13813
13817
  })
@@ -14014,6 +14018,10 @@ function _useFormModel(e, t) {
14014
14018
  };
14015
14019
  }
14016
14020
  const KgSearch$1 = "", getProps$9 = () => ({
14021
+ kgDisabled: {
14022
+ type: Boolean,
14023
+ default: void 0
14024
+ },
14017
14025
  kgHeaderTeleport: {
14018
14026
  type: Boolean,
14019
14027
  default: void 0
@@ -14022,31 +14030,35 @@ const KgSearch$1 = "", getProps$9 = () => ({
14022
14030
  name: "KgSearch",
14023
14031
  props: getProps$9(),
14024
14032
  setup(e) {
14025
- const t = inject(DI_KG_VAR__KG_SLOTS, null);
14026
- inject(DI_KG_VAR__KG_PROPS, null);
14027
- const r = useKg(), a = useKgVar(), n = useKgSearch(), o = useKgTable(), {
14028
- isVisible: i,
14029
- isResizable: s,
14030
- isHeaderTeleport: l,
14031
- defaultHeight: c,
14032
- maxHeight: u,
14033
- minHeight: d
14034
- } = _useCommon(), m = ref(null), v = ref({
14035
- kgHeight: d.value
14036
- });
14037
- _useLayoutHeaderResizeObserver(), _useFormModel(m, v);
14038
- const C = computed(() => {
14039
- var O, R;
14040
- return !!(o.isRetrieving.value || ((O = a.varButtonSearch.value) == null ? void 0 : O.permission_type) === 2 && !r.p((R = a.varButtonSearch.value) == null ? void 0 : R.permission_code) || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value);
14041
- }), g = computed(() => !!(o.isRetrieving.value || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value)), _ = computed(() => !!o.isRetrieving.value), b = ref({
14033
+ const t = inject(DI_KG_VAR__KG_SLOTS, null), r = inject(DI_KG_VAR__KG_PROPS, null), a = useKg(), n = useKgVar(), o = useKgSearch(), i = useKgTable(), {
14034
+ isVisible: s,
14035
+ isResizable: l,
14036
+ isHeaderTeleport: c,
14037
+ defaultHeight: u,
14038
+ maxHeight: d,
14039
+ minHeight: m
14040
+ } = _useCommon(), v = ref(null), C = ref({
14041
+ kgHeight: m.value
14042
+ });
14043
+ _useLayoutHeaderResizeObserver(), _useFormModel(v, C);
14044
+ const g = computed(() => {
14045
+ var N, B, H, Y;
14046
+ if (!isNil((B = (N = r == null ? void 0 : r.value) == null ? void 0 : N.KgSearch) == null ? void 0 : B.kgDisabled))
14047
+ return (Y = (H = r == null ? void 0 : r.value) == null ? void 0 : H.KgSearch) == null ? void 0 : Y.kgDisabled;
14048
+ if (!isNil(e.kgDisabled))
14049
+ return e.kgDisabled;
14050
+ }), _ = computed(() => {
14051
+ var N, B;
14052
+ 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);
14053
+ }), 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({
14042
14054
  visible: !1
14043
- }), y = computed(() => v.value.kgHeight === d.value), k = computed(() => {
14044
- var O, R, x;
14045
- if (a.t((O = a.varButtonSearch.value) == null ? void 0 : O.var_nam).value !== ((R = a.varButtonSearch.value) == null ? void 0 : R.var_nam))
14046
- return a.t((x = a.varButtonSearch.value) == null ? void 0 : x.var_nam).value;
14047
- }), T = computed(() => {
14048
- var O;
14049
- switch ((O = a.varButtonSearch.value) == null ? void 0 : O.primary_flg) {
14055
+ }), T = computed(() => C.value.kgHeight === m.value), M = computed(() => {
14056
+ var N, B, H;
14057
+ if (n.t((N = n.varButtonSearch.value) == null ? void 0 : N.var_nam).value !== ((B = n.varButtonSearch.value) == null ? void 0 : B.var_nam))
14058
+ return n.t((H = n.varButtonSearch.value) == null ? void 0 : H.var_nam).value;
14059
+ }), E = computed(() => {
14060
+ var N;
14061
+ switch ((N = n.varButtonSearch.value) == null ? void 0 : N.primary_flg) {
14050
14062
  case 1:
14051
14063
  return !0;
14052
14064
  case 0:
@@ -14054,124 +14066,124 @@ const KgSearch$1 = "", getProps$9 = () => ({
14054
14066
  default:
14055
14067
  return !0;
14056
14068
  }
14057
- }), M = computed(() => !!(a.isRetrieving.value || a.isRetrievingVarProfileMaster.value || l.value && !!a.isOtherRequesting.value)), E = computed(() => !!a.isRetrieving.value || !!a.isRetrievingVarProfileMaster.value), N = computed(() => {
14058
- let O = "kg-search";
14059
- return i.value && (O += " kg-search--visible"), l.value && (O += " kg-search--teleport"), O;
14069
+ }), P = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), I = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), A = computed(() => {
14070
+ let N = "kg-search";
14071
+ return s.value && (N += " kg-search--visible"), c.value && (N += " kg-search--teleport"), N;
14060
14072
  });
14061
14073
  onUnmounted(() => {
14062
- n.store.dispose(a.formID);
14074
+ o.store.dispose(n.formID);
14063
14075
  });
14064
- async function I(O = !1) {
14065
- C.value || (i.value ? m.value && m.value.validate().then(async () => {
14066
- await n.store.emit(a.formID, "search", {
14067
- resetPageIndex: O
14076
+ async function w(N = !1) {
14077
+ _.value || (s.value ? v.value && v.value.validate().then(async () => {
14078
+ await o.store.emit(n.formID, "search", {
14079
+ resetPageIndex: N
14068
14080
  });
14069
- }).catch((R) => {
14070
- KgLogger.debug(`${a.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
14071
- e: R
14081
+ }).catch((B) => {
14082
+ KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
14083
+ e: B
14072
14084
  });
14073
- }) : await n.store.emit(a.formID, "search", {
14074
- resetPageIndex: O
14085
+ }) : await o.store.emit(n.formID, "search", {
14086
+ resetPageIndex: N
14075
14087
  }));
14076
14088
  }
14077
- n.store.setSearchFn(a.formID, I);
14078
- async function A() {
14079
- var O;
14080
- (O = m.value) == null || O.resetFields(), i.value ? m.value && m.value.validate().then(async () => {
14081
- await n.store.emit(a.formID, "reset", {});
14082
- }).catch((R) => {
14089
+ o.store.setSearchFn(n.formID, w);
14090
+ async function G() {
14091
+ var N;
14092
+ (N = v.value) == null || N.resetFields(), s.value ? v.value && v.value.validate().then(async () => {
14093
+ await o.store.emit(n.formID, "reset", {});
14094
+ }).catch((B) => {
14083
14095
  KgLogger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
14084
- e: R
14096
+ e: B
14085
14097
  });
14086
- }) : await n.store.emit(a.formID, "reset", {});
14098
+ }) : await o.store.emit(n.formID, "reset", {});
14087
14099
  }
14088
- n.store.setResetFn(a.formID, A);
14089
- function w() {
14090
- return I(!0), Promise.resolve(!0);
14100
+ o.store.setResetFn(n.formID, G);
14101
+ function $() {
14102
+ return w(!0), Promise.resolve(!0);
14091
14103
  }
14092
- function F() {
14093
- var O;
14104
+ function V() {
14105
+ var N;
14094
14106
  return createVNode("div", {
14095
14107
  class: "title",
14096
- onClick: D
14097
- }, [((O = t == null ? void 0 : t.KgSearch) == null ? void 0 : O.left) && createVNode("div", {
14108
+ onClick: L
14109
+ }, [((N = t == null ? void 0 : t.KgSearch) == null ? void 0 : N.left) && createVNode("div", {
14098
14110
  class: "kg-search-title-left",
14099
- onClick: (R) => {
14100
- R.stopPropagation(), R.preventDefault();
14111
+ onClick: (B) => {
14112
+ B.stopPropagation(), B.preventDefault();
14101
14113
  }
14102
- }, [t.KgSearch.left()]), y.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
14114
+ }, [t.KgSearch.left()]), T.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
14103
14115
  }
14104
- function $() {
14105
- var O, R, x, G;
14106
- return ((x = (R = (O = a.varProfileMasters) == null ? void 0 : O.value) == null ? void 0 : R.length) != null ? x : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
14107
- value: (G = a.currentVarProfileMasterID.value) != null ? G : void 0,
14108
- "onUpdate:value": (H) => a.store.setCurrentVarProfileMasterID(a.formID, H),
14109
- disabled: g.value,
14116
+ function O() {
14117
+ var N, B, H, Y;
14118
+ 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, {
14119
+ value: (Y = n.currentVarProfileMasterID.value) != null ? Y : void 0,
14120
+ "onUpdate:value": (X) => n.store.setCurrentVarProfileMasterID(n.formID, X),
14121
+ disabled: b.value,
14110
14122
  class: "kg-search-profile-master-select"
14111
14123
  }, {
14112
14124
  default: () => {
14113
- var H, Q;
14114
- return (Q = (H = a.varProfileMasters) == null ? void 0 : H.value) == null ? void 0 : Q.map((X) => createVNode(Select.Option, {
14115
- value: X.id
14125
+ var X, Q;
14126
+ return (Q = (X = n.varProfileMasters) == null ? void 0 : X.value) == null ? void 0 : Q.map((Z) => createVNode(Select.Option, {
14127
+ value: Z.id
14116
14128
  }, {
14117
- default: () => [a.t(X == null ? void 0 : X.prf_var_nam).value]
14129
+ default: () => [n.t(Z == null ? void 0 : Z.prf_var_nam).value]
14118
14130
  }));
14119
14131
  },
14120
14132
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
14121
14133
  }), createVNode(Button, {
14122
- disabled: g.value,
14134
+ disabled: b.value,
14123
14135
  onClick: () => {
14124
- b.value.visible = !0;
14136
+ k.value.visible = !0;
14125
14137
  },
14126
14138
  class: "kg-search-profile-master-btn"
14127
14139
  }, {
14128
14140
  default: () => [createVNode(SettingOutlined$1, null, null)]
14129
14141
  }), createVNode(KgSearchConfigModal, {
14130
- visible: b.value.visible,
14131
- "onUpdate:visible": (H) => b.value.visible = H,
14132
- hostFormID: a.formID
14142
+ visible: k.value.visible,
14143
+ "onUpdate:visible": (X) => k.value.visible = X,
14144
+ hostFormID: n.formID
14133
14145
  }, null)]);
14134
14146
  }
14135
- function P() {
14136
- var O, R, x, G, H;
14137
- return createVNode(Fragment, null, [$(), !(((O = a.varButtonSearch.value) == null ? void 0 : O.permission_type) !== 2 && !r.p((R = a.varButtonSearch.value) == null ? void 0 : R.permission_code)) && createVNode(Button, {
14147
+ function D() {
14148
+ var N, B, H, Y, X;
14149
+ 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, {
14138
14150
  type: "primary",
14139
- ghost: !C.value,
14140
- disabled: C.value,
14141
- onClick: A,
14151
+ ghost: !_.value,
14152
+ disabled: _.value,
14153
+ onClick: G,
14142
14154
  class: "kg-search-btn-reset"
14143
14155
  }, {
14144
- default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
14156
+ default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
14145
14157
  }), createVNode(KgButton.Item, {
14146
14158
  kgType: KG_BUTTON_TYPE.SEARCH,
14147
- kgVarName: (x = a.varButtonSearch.value) == null ? void 0 : x.var_nam,
14148
- kgIcon: (G = a.varButtonSearch.value) == null ? void 0 : G.icon,
14149
- kgText: k.value,
14150
- kgColor: (H = a.varButtonSearch.value) == null ? void 0 : H.color,
14151
- kgPrimary: T.value,
14152
- kgLoading: _.value,
14153
- onKgClick: w
14159
+ kgVarName: (H = n.varButtonSearch.value) == null ? void 0 : H.var_nam,
14160
+ kgIcon: (Y = n.varButtonSearch.value) == null ? void 0 : Y.icon,
14161
+ kgText: M.value,
14162
+ kgColor: (X = n.varButtonSearch.value) == null ? void 0 : X.color,
14163
+ kgPrimary: E.value,
14164
+ kgLoading: y.value,
14165
+ onKgClick: $
14154
14166
  }, null)]);
14155
14167
  }
14156
- function V() {
14168
+ function K() {
14157
14169
  return createVNode(Spin, {
14158
- spinning: E.value
14170
+ spinning: I.value
14159
14171
  }, {
14160
14172
  default: () => {
14161
- var O;
14173
+ var N;
14162
14174
  return [createVNode(KgForm, {
14163
- ref: m,
14164
- model: (O = n.model.value) != null ? O : {}
14175
+ ref: v,
14176
+ model: (N = o.model.value) != null ? N : {}
14165
14177
  }, {
14166
14178
  default: () => [createVNode(Row, {
14167
14179
  gutter: 6
14168
14180
  }, {
14169
14181
  default: () => {
14170
- var R;
14171
- return [(R = a.currentVarProfileDetails.value) == null ? void 0 : R.map((x) => createVNode(KgForm.Item, {
14172
- kgVarName: x.var_nam,
14182
+ var B;
14183
+ return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((H) => createVNode(KgForm.Item, {
14184
+ kgVarName: H.var_nam,
14173
14185
  kgContext: KG_FORM_CONTEXT.SEARCH,
14174
- onKgSubmit: () => I(!0)
14186
+ onKgSubmit: () => w(!0)
14175
14187
  }, null))];
14176
14188
  }
14177
14189
  })]
@@ -14179,40 +14191,40 @@ const KgSearch$1 = "", getProps$9 = () => ({
14179
14191
  }
14180
14192
  });
14181
14193
  }
14182
- function D() {
14183
- y.value ? v.value.kgHeight = c.value : v.value.kgHeight = d.value;
14194
+ function L() {
14195
+ T.value ? C.value.kgHeight = u.value : C.value.kgHeight = m.value;
14184
14196
  }
14185
14197
  return () => createVNode(KgResizable, {
14186
- kgHeight: v.value.kgHeight,
14187
- "onUpdate:kgHeight": (O) => v.value.kgHeight = O,
14188
- kgMinHeight: d.value,
14189
- kgMaxHeight: u.value,
14190
- kgDisabled: !s.value,
14191
- kgClass: N.value,
14192
- "kg-frm_id": a.formID
14198
+ kgHeight: C.value.kgHeight,
14199
+ "onUpdate:kgHeight": (N) => C.value.kgHeight = N,
14200
+ kgMinHeight: m.value,
14201
+ kgMaxHeight: d.value,
14202
+ kgDisabled: !l.value,
14203
+ kgClass: A.value,
14204
+ "kg-frm_id": n.formID
14193
14205
  }, {
14194
- default: () => [i.value && createVNode("div", {
14206
+ default: () => [s.value && createVNode("div", {
14195
14207
  class: "ant-collapse ant-collapse-icon-position-left"
14196
14208
  }, [createVNode("div", {
14197
14209
  class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
14198
14210
  }, [createVNode(Teleport, {
14199
14211
  to: "#kg-search-header-teleport",
14200
- disabled: !l.value
14212
+ disabled: !c.value
14201
14213
  }, {
14202
14214
  default: () => [createVNode("div", {
14203
14215
  class: "ant-collapse-header"
14204
14216
  }, [createVNode(Spin, {
14205
- spinning: M.value
14217
+ spinning: P.value
14206
14218
  }, {
14207
- default: () => [F(), createVNode("div", {
14219
+ default: () => [V(), createVNode("div", {
14208
14220
  class: "ant-collapse-extra"
14209
- }, [P()])]
14221
+ }, [D()])]
14210
14222
  })])]
14211
14223
  }), createVNode("div", {
14212
14224
  class: "ant-collapse-content ant-collapse-content-active"
14213
14225
  }, [createVNode("div", {
14214
14226
  class: "ant-collapse-content-box"
14215
- }, [V()])])])])]
14227
+ }, [K()])])])])]
14216
14228
  });
14217
14229
  }
14218
14230
  });
@@ -14683,7 +14695,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14683
14695
  columnWidth: 32,
14684
14696
  hideSelectAll: !0,
14685
14697
  selectedRowKeys: d,
14686
- onSelect: ($) => N($)
14698
+ onSelect: ($) => P($)
14687
14699
  }), v = ref({
14688
14700
  visible: !1
14689
14701
  }), C = computed(() => !!(unref(u) || unref(n) || unref(o) || unref(i))), g = computed(() => {
@@ -14695,46 +14707,46 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14695
14707
  }, {
14696
14708
  immediate: !0
14697
14709
  }), watch(() => a.getSelectedVarCatalog, async ($) => {
14698
- var P, V;
14699
- l.value.var_text = (P = $ == null ? void 0 : $.var_text) != null ? P : "", (V = s.value) == null || V.clearValidate();
14710
+ var V, O;
14711
+ l.value.var_text = (V = $ == null ? void 0 : $.var_text) != null ? V : "", (O = s.value) == null || O.clearValidate();
14700
14712
  });
14701
14713
  async function y($ = !1) {
14702
- var P, V, D;
14714
+ var V, O, D;
14703
14715
  n.value = !0;
14704
14716
  try {
14705
14717
  const {
14706
- records: O
14718
+ records: K
14707
14719
  } = await List({
14708
14720
  params: {
14709
14721
  pageNo: 1,
14710
14722
  pageSize: 999,
14711
14723
  frm_id: e == null ? void 0 : e.value,
14712
- var_nam: (P = a.getSelectedVar) == null ? void 0 : P.var_nam,
14724
+ var_nam: (V = a.getSelectedVar) == null ? void 0 : V.var_nam,
14713
14725
  column: "frm_id,locale_id,cust_lvl",
14714
14726
  order: "asc"
14715
14727
  }
14716
14728
  });
14717
- if (u.value = null, c.value = O != null ? O : [], $) {
14718
- const R = c.value.find((x) => {
14719
- var G;
14720
- return x.id === ((G = a.getSelectedVarCatalog) == null ? void 0 : G.id);
14729
+ if (u.value = null, c.value = K != null ? K : [], $) {
14730
+ const L = c.value.find((N) => {
14731
+ var B;
14732
+ return N.id === ((B = a.getSelectedVarCatalog) == null ? void 0 : B.id);
14721
14733
  });
14722
- a.setSelectedVarCatalog(R != null ? R : null), d.value = R != null && R.id ? [R.id] : [];
14734
+ a.setSelectedVarCatalog(L != null ? L : null), d.value = L != null && L.id ? [L.id] : [];
14723
14735
  } else
14724
- a.setSelectedVarCatalog((V = c.value[0]) != null ? V : null), d.value = (D = c.value[0]) != null && D.id ? [c.value[0].id] : [];
14725
- } catch (O) {
14726
- KgLogger.debug(O == null ? void 0 : O.message);
14736
+ a.setSelectedVarCatalog((O = c.value[0]) != null ? O : null), d.value = (D = c.value[0]) != null && D.id ? [c.value[0].id] : [];
14737
+ } catch (K) {
14738
+ KgLogger.debug(K == null ? void 0 : K.message);
14727
14739
  } finally {
14728
14740
  n.value = !1;
14729
14741
  }
14730
14742
  }
14731
14743
  async function k() {
14732
- var $, P, V;
14744
+ var $, V, O;
14733
14745
  try {
14734
14746
  o.value = !0, await (($ = s.value) == null ? void 0 : $.validate());
14735
14747
  const D = new VarCatalog({
14736
- ...(P = a.getSelectedVarCatalog) != null ? P : {},
14737
- var_text: (V = l.value) == null ? void 0 : V.var_text
14748
+ ...(V = a.getSelectedVarCatalog) != null ? V : {},
14749
+ var_text: (O = l.value) == null ? void 0 : O.var_text
14738
14750
  });
14739
14751
  D.id ? D.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (D.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(D, "id"), await Add({
14740
14752
  data: D
@@ -14763,23 +14775,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14763
14775
  }
14764
14776
  function T({
14765
14777
  isAllForm: $,
14766
- isAllLanguage: P
14778
+ isAllLanguage: V
14767
14779
  }) {
14768
- var V, D, O;
14780
+ var O, D, K;
14769
14781
  u.value = new VarCatalog({
14770
14782
  id: "",
14771
14783
  cust_lvl: KG_CUSTOM_LEVEL.L10,
14772
- grp_nam: (V = a.getSelectedVar) == null ? void 0 : V.grp_nam,
14784
+ grp_nam: (O = a.getSelectedVar) == null ? void 0 : O.grp_nam,
14773
14785
  var_nam: (D = a.getSelectedVar) == null ? void 0 : D.var_nam,
14774
14786
  frm_id: $ || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
14775
- locale_id: P ? "ALL" : (O = t.locale) == null ? void 0 : O.value,
14787
+ locale_id: V ? "ALL" : (K = t.locale) == null ? void 0 : K.value,
14776
14788
  var_text: ""
14777
14789
  }), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
14778
14790
  }
14779
14791
  function M() {
14780
- var P;
14792
+ var V;
14781
14793
  c.value = without$1(c.value, u.value), u.value = null;
14782
- const $ = (P = c.value[0]) != null ? P : null;
14794
+ const $ = (V = c.value[0]) != null ? V : null;
14783
14795
  a.setSelectedVarCatalog($), d.value = $ ? [$.id] : [];
14784
14796
  }
14785
14797
  function E() {
@@ -14799,9 +14811,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14799
14811
  }
14800
14812
  });
14801
14813
  }
14802
- function N($) {
14803
- var P;
14804
- ((P = a.getSelectedVarCatalog) == null ? void 0 : P.id) !== $.id && (unref(u) ? KgUtil.confirm({
14814
+ function P($) {
14815
+ var V;
14816
+ ((V = a.getSelectedVarCatalog) == null ? void 0 : V.id) !== $.id && (unref(u) ? KgUtil.confirm({
14805
14817
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
14806
14818
  onOk: () => {
14807
14819
  c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref($)), d.value = [$.id];
@@ -14831,7 +14843,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14831
14843
  })]);
14832
14844
  }
14833
14845
  function w() {
14834
- let $, P;
14846
+ let $, V;
14835
14847
  return createVNode("div", {
14836
14848
  class: "form"
14837
14849
  }, [createVNode(Form, {
@@ -14848,7 +14860,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14848
14860
  }, {
14849
14861
  default: () => [createVNode(Textarea, {
14850
14862
  value: l.value.var_text,
14851
- "onUpdate:value": (V) => l.value.var_text = V,
14863
+ "onUpdate:value": (O) => l.value.var_text = O,
14852
14864
  disabled: !a.getSelectedVarCatalog
14853
14865
  }, null), createVNode("button", {
14854
14866
  hidden: !0
@@ -14866,14 +14878,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14866
14878
  disabled: b.value,
14867
14879
  onClick: k,
14868
14880
  type: "primary"
14869
- }, _isSlot(P = t.t("common.save")) ? P : {
14870
- default: () => [P]
14881
+ }, _isSlot(V = t.t("common.save")) ? V : {
14882
+ default: () => [V]
14871
14883
  })])]);
14872
14884
  }
14873
- function F($) {
14874
- var V;
14875
- let P = "";
14876
- return $.id || (P += " ant-table-row-create"), $.id === ((V = a.getSelectedVarCatalog) == null ? void 0 : V.id) && (P += " ant-table-row-selected "), P;
14885
+ function G($) {
14886
+ var O;
14887
+ let V = "";
14888
+ return $.id || (V += " ant-table-row-create"), $.id === ((O = a.getSelectedVarCatalog) == null ? void 0 : O.id) && (V += " ant-table-row-selected "), V;
14877
14889
  }
14878
14890
  return () => createVNode("div", {
14879
14891
  class: "kg-var-config-modal-var-var-catalog"
@@ -14889,10 +14901,10 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14889
14901
  rowKey: "id",
14890
14902
  dataSource: c.value,
14891
14903
  loading: n.value,
14892
- rowClassName: F,
14904
+ rowClassName: G,
14893
14905
  rowSelection: m.value,
14894
14906
  customRow: ($) => ({
14895
- onClick: () => N($)
14907
+ onClick: () => P($)
14896
14908
  })
14897
14909
  }, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
14898
14910
  visible: v.value.visible,
@@ -15220,9 +15232,9 @@ const KgWarehouse$1 = "", getProps = () => ({
15220
15232
  customRender: ({
15221
15233
  record: T
15222
15234
  }) => {
15223
- var E, N, I;
15235
+ var E, P, I;
15224
15236
  const M = T;
15225
- return createVNode("div", null, [createVNode("div", null, [(E = M.whDsc) != null ? E : " ", createTextVNode(" - "), (N = M.whId) != null ? N : " "]), createVNode("div", {
15237
+ return createVNode("div", null, [createVNode("div", null, [(E = M.whDsc) != null ? E : " ", createTextVNode(" - "), (P = M.whId) != null ? P : " "]), createVNode("div", {
15226
15238
  class: "address"
15227
15239
  }, [(I = M.adrId) != null ? I : " "])]);
15228
15240
  }
@@ -15230,8 +15242,8 @@ const KgWarehouse$1 = "", getProps = () => ({
15230
15242
  var M;
15231
15243
  const T = (M = o.value) == null ? void 0 : M.toUpperCase();
15232
15244
  return u.value.filter((E) => {
15233
- var N, I, A, w, F, $;
15234
- return ((I = (N = E.whDsc) == null ? void 0 : N.toUpperCase()) == null ? void 0 : I.includes(T)) || ((w = (A = E.whId) == null ? void 0 : A.toUpperCase()) == null ? void 0 : w.includes(T)) || (($ = (F = E.adrId) == null ? void 0 : F.toUpperCase()) == null ? void 0 : $.includes(T));
15245
+ var P, I, A, w, G, $;
15246
+ 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));
15235
15247
  });
15236
15248
  }), m = computed(() => {
15237
15249
  var T, M;