@kengic/vue 0.6.11 → 0.6.13

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