@kengic/vue 0.10.2-beta.0 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3318,8 +3318,8 @@ function sendQuery(e, t, r, a) {
3318
3318
  if (e.random) {
3319
3319
  let k = e.resources.slice(0);
3320
3320
  for (l = []; k.length > 1; ) {
3321
- const R = Math.floor(Math.random() * k.length);
3322
- l.push(k[R]), k = k.slice(0, R).concat(k.slice(R + 1));
3321
+ const V = Math.floor(Math.random() * k.length);
3322
+ l.push(k[V]), k = k.slice(0, V).concat(k.slice(V + 1));
3323
3323
  }
3324
3324
  l = l.concat(k);
3325
3325
  } else
@@ -3335,8 +3335,8 @@ function sendQuery(e, t, r, a) {
3335
3335
  k.status === "pending" && (k.status = "aborted");
3336
3336
  }), m = [];
3337
3337
  }
3338
- function g(k, R) {
3339
- R && (v = []), typeof k == "function" && v.push(k);
3338
+ function g(k, V) {
3339
+ V && (v = []), typeof k == "function" && v.push(k);
3340
3340
  }
3341
3341
  function b() {
3342
3342
  return {
@@ -3359,9 +3359,9 @@ function sendQuery(e, t, r, a) {
3359
3359
  k.status === "pending" && (k.status = "aborted");
3360
3360
  }), m = [];
3361
3361
  }
3362
- function T(k, R, D) {
3363
- const I = R !== "success";
3364
- switch (m = m.filter((M) => M !== k), i) {
3362
+ function T(k, V, w) {
3363
+ const I = V !== "success";
3364
+ switch (m = m.filter((A) => A !== k), i) {
3365
3365
  case "pending":
3366
3366
  break;
3367
3367
  case "failed":
@@ -3371,23 +3371,23 @@ function sendQuery(e, t, r, a) {
3371
3371
  default:
3372
3372
  return;
3373
3373
  }
3374
- if (R === "abort") {
3375
- u = D, E();
3374
+ if (V === "abort") {
3375
+ u = w, E();
3376
3376
  return;
3377
3377
  }
3378
3378
  if (I) {
3379
- u = D, m.length || (l.length ? A() : E());
3379
+ u = w, m.length || (l.length ? M() : E());
3380
3380
  return;
3381
3381
  }
3382
3382
  if (y(), C(), !e.random) {
3383
- const M = e.resources.indexOf(k.resource);
3384
- M !== -1 && M !== e.index && (e.index = M);
3383
+ const A = e.resources.indexOf(k.resource);
3384
+ A !== -1 && A !== e.index && (e.index = A);
3385
3385
  }
3386
- i = "completed", v.forEach((M) => {
3387
- M(D);
3386
+ i = "completed", v.forEach((A) => {
3387
+ A(w);
3388
3388
  });
3389
3389
  }
3390
- function A() {
3390
+ function M() {
3391
3391
  if (i !== "pending")
3392
3392
  return;
3393
3393
  y();
@@ -3402,16 +3402,16 @@ function sendQuery(e, t, r, a) {
3402
3402
  E();
3403
3403
  return;
3404
3404
  }
3405
- const R = {
3405
+ const V = {
3406
3406
  status: "pending",
3407
3407
  resource: k,
3408
- callback: (D, I) => {
3409
- T(R, D, I);
3408
+ callback: (w, I) => {
3409
+ T(V, w, I);
3410
3410
  }
3411
3411
  };
3412
- m.push(R), c++, d = setTimeout(A, e.rotate), r(k, t, R.callback);
3412
+ m.push(V), c++, d = setTimeout(M, e.rotate), r(k, t, V.callback);
3413
3413
  }
3414
- return setTimeout(A), b;
3414
+ return setTimeout(M), b;
3415
3415
  }
3416
3416
  function initRedundancy(e) {
3417
3417
  const t = {
@@ -3929,7 +3929,7 @@ const emptyIcon = {
3929
3929
  ...t.data
3930
3930
  }, r);
3931
3931
  }
3932
- }), name = "@kengic/vue", version = "0.10.2-beta.0";
3932
+ }), name = "@kengic/vue", version = "0.10.2";
3933
3933
  class KgDomUtil {
3934
3934
  static isNotClickable(t, r = []) {
3935
3935
  return !t || [...r, "kg-not-clickable"].some((a) => t.classList.contains(a)) ? !0 : t.parentElement && t.parentElement.tagName !== "BODY" ? KgDomUtil.isNotClickable(t.parentElement) : !1;
@@ -3940,62 +3940,62 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3940
3940
  (function(r, a) {
3941
3941
  e.exports = a();
3942
3942
  })(commonjsGlobal, function() {
3943
- var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", y = "date", p = "Invalid Date", g = /^(\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, E = { 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(O) {
3944
- var w = ["th", "st", "nd", "rd"], V = O % 100;
3945
- return "[" + O + (w[(V - 20) % 10] || w[V] || w[0]) + "]";
3946
- } }, C = function(O, w, V) {
3947
- var G = String(O);
3948
- return !G || G.length >= w ? O : "" + Array(w + 1 - G.length).join(V) + O;
3949
- }, T = { s: C, z: function(O) {
3950
- var w = -O.utcOffset(), V = Math.abs(w), G = Math.floor(V / 60), F = V % 60;
3951
- return (w <= 0 ? "+" : "-") + C(G, 2, "0") + ":" + C(F, 2, "0");
3952
- }, m: function O(w, V) {
3953
- if (w.date() < V.date())
3954
- return -O(V, w);
3955
- var G = 12 * (V.year() - w.year()) + (V.month() - w.month()), F = w.clone().add(G, d), L = V - F < 0, B = w.clone().add(G + (L ? -1 : 1), d);
3956
- return +(-(G + (V - F) / (L ? F - B : B - F)) || 0);
3957
- }, a: function(O) {
3958
- return O < 0 ? Math.ceil(O) || 0 : Math.floor(O);
3959
- }, p: function(O) {
3960
- return { M: d, y: v, w: u, d: c, D: y, h: i, m: o, s: l, ms: s, Q: m }[O] || String(O || "").toLowerCase().replace(/s$/, "");
3961
- }, u: function(O) {
3962
- return O === void 0;
3963
- } }, A = "en", k = {};
3964
- k[A] = E;
3965
- var R = "$isDayjsObject", D = function(O) {
3966
- return O instanceof N || !(!O || !O[R]);
3967
- }, I = function O(w, V, G) {
3943
+ var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", y = "date", p = "Invalid Date", g = /^(\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, E = { 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(D) {
3944
+ var O = ["th", "st", "nd", "rd"], R = D % 100;
3945
+ return "[" + D + (O[(R - 20) % 10] || O[R] || O[0]) + "]";
3946
+ } }, C = function(D, O, R) {
3947
+ var G = String(D);
3948
+ return !G || G.length >= O ? D : "" + Array(O + 1 - G.length).join(R) + D;
3949
+ }, T = { s: C, z: function(D) {
3950
+ var O = -D.utcOffset(), R = Math.abs(O), G = Math.floor(R / 60), F = R % 60;
3951
+ return (O <= 0 ? "+" : "-") + C(G, 2, "0") + ":" + C(F, 2, "0");
3952
+ }, m: function D(O, R) {
3953
+ if (O.date() < R.date())
3954
+ return -D(R, O);
3955
+ var G = 12 * (R.year() - O.year()) + (R.month() - O.month()), F = O.clone().add(G, d), K = R - F < 0, x = O.clone().add(G + (K ? -1 : 1), d);
3956
+ return +(-(G + (R - F) / (K ? F - x : x - F)) || 0);
3957
+ }, a: function(D) {
3958
+ return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
3959
+ }, p: function(D) {
3960
+ return { M: d, y: v, w: u, d: c, D: y, h: i, m: o, s: l, ms: s, Q: m }[D] || String(D || "").toLowerCase().replace(/s$/, "");
3961
+ }, u: function(D) {
3962
+ return D === void 0;
3963
+ } }, M = "en", k = {};
3964
+ k[M] = E;
3965
+ var V = "$isDayjsObject", w = function(D) {
3966
+ return D instanceof N || !(!D || !D[V]);
3967
+ }, I = function D(O, R, G) {
3968
3968
  var F;
3969
- if (!w)
3970
- return A;
3971
- if (typeof w == "string") {
3972
- var L = w.toLowerCase();
3973
- k[L] && (F = L), V && (k[L] = V, F = L);
3974
- var B = w.split("-");
3975
- if (!F && B.length > 1)
3976
- return O(B[0]);
3969
+ if (!O)
3970
+ return M;
3971
+ if (typeof O == "string") {
3972
+ var K = O.toLowerCase();
3973
+ k[K] && (F = K), R && (k[K] = R, F = K);
3974
+ var x = O.split("-");
3975
+ if (!F && x.length > 1)
3976
+ return D(x[0]);
3977
3977
  } else {
3978
- var Y = w.name;
3979
- k[Y] = w, F = Y;
3978
+ var W = O.name;
3979
+ k[W] = O, F = W;
3980
3980
  }
3981
- return !G && F && (A = F), F || !G && A;
3982
- }, M = function(O, w) {
3983
- if (D(O))
3984
- return O.clone();
3985
- var V = typeof w == "object" ? w : {};
3986
- return V.date = O, V.args = arguments, new N(V);
3981
+ return !G && F && (M = F), F || !G && M;
3982
+ }, A = function(D, O) {
3983
+ if (w(D))
3984
+ return D.clone();
3985
+ var R = typeof O == "object" ? O : {};
3986
+ return R.date = D, R.args = arguments, new N(R);
3987
3987
  }, P = T;
3988
- P.l = I, P.i = D, P.w = function(O, w) {
3989
- return M(O, { locale: w.$L, utc: w.$u, x: w.$x, $offset: w.$offset });
3988
+ P.l = I, P.i = w, P.w = function(D, O) {
3989
+ return A(D, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
3990
3990
  };
3991
3991
  var N = function() {
3992
- function O(V) {
3993
- this.$L = I(V.locale, null, !0), this.parse(V), this.$x = this.$x || V.x || {}, this[R] = !0;
3992
+ function D(R) {
3993
+ this.$L = I(R.locale, null, !0), this.parse(R), this.$x = this.$x || R.x || {}, this[V] = !0;
3994
3994
  }
3995
- var w = O.prototype;
3996
- return w.parse = function(V) {
3995
+ var O = D.prototype;
3996
+ return O.parse = function(R) {
3997
3997
  this.$d = function(G) {
3998
- var F = G.date, L = G.utc;
3998
+ var F = G.date, K = G.utc;
3999
3999
  if (F === null)
4000
4000
  return new Date(NaN);
4001
4001
  if (P.u(F))
@@ -4003,107 +4003,107 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4003
4003
  if (F instanceof Date)
4004
4004
  return new Date(F);
4005
4005
  if (typeof F == "string" && !/Z$/i.test(F)) {
4006
- var B = F.match(g);
4007
- if (B) {
4008
- var Y = B[2] - 1 || 0, Q = (B[7] || "0").substring(0, 3);
4009
- return L ? new Date(Date.UTC(B[1], Y, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, Q)) : new Date(B[1], Y, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, Q);
4006
+ var x = F.match(g);
4007
+ if (x) {
4008
+ var W = x[2] - 1 || 0, X = (x[7] || "0").substring(0, 3);
4009
+ return K ? new Date(Date.UTC(x[1], W, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, X)) : new Date(x[1], W, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, X);
4010
4010
  }
4011
4011
  }
4012
4012
  return new Date(F);
4013
- }(V), this.init();
4014
- }, w.init = function() {
4015
- var V = this.$d;
4016
- this.$y = V.getFullYear(), this.$M = V.getMonth(), this.$D = V.getDate(), this.$W = V.getDay(), this.$H = V.getHours(), this.$m = V.getMinutes(), this.$s = V.getSeconds(), this.$ms = V.getMilliseconds();
4017
- }, w.$utils = function() {
4013
+ }(R), this.init();
4014
+ }, O.init = function() {
4015
+ var R = this.$d;
4016
+ this.$y = R.getFullYear(), this.$M = R.getMonth(), this.$D = R.getDate(), this.$W = R.getDay(), this.$H = R.getHours(), this.$m = R.getMinutes(), this.$s = R.getSeconds(), this.$ms = R.getMilliseconds();
4017
+ }, O.$utils = function() {
4018
4018
  return P;
4019
- }, w.isValid = function() {
4019
+ }, O.isValid = function() {
4020
4020
  return this.$d.toString() !== p;
4021
- }, w.isSame = function(V, G) {
4022
- var F = M(V);
4021
+ }, O.isSame = function(R, G) {
4022
+ var F = A(R);
4023
4023
  return this.startOf(G) <= F && F <= this.endOf(G);
4024
- }, w.isAfter = function(V, G) {
4025
- return M(V) < this.startOf(G);
4026
- }, w.isBefore = function(V, G) {
4027
- return this.endOf(G) < M(V);
4028
- }, w.$g = function(V, G, F) {
4029
- return P.u(V) ? this[G] : this.set(F, V);
4030
- }, w.unix = function() {
4024
+ }, O.isAfter = function(R, G) {
4025
+ return A(R) < this.startOf(G);
4026
+ }, O.isBefore = function(R, G) {
4027
+ return this.endOf(G) < A(R);
4028
+ }, O.$g = function(R, G, F) {
4029
+ return P.u(R) ? this[G] : this.set(F, R);
4030
+ }, O.unix = function() {
4031
4031
  return Math.floor(this.valueOf() / 1e3);
4032
- }, w.valueOf = function() {
4032
+ }, O.valueOf = function() {
4033
4033
  return this.$d.getTime();
4034
- }, w.startOf = function(V, G) {
4035
- var F = this, L = !!P.u(G) || G, B = P.p(V), Y = function(ce, ne) {
4034
+ }, O.startOf = function(R, G) {
4035
+ var F = this, K = !!P.u(G) || G, x = P.p(R), W = function(ce, ne) {
4036
4036
  var le = P.w(F.$u ? Date.UTC(F.$y, ne, ce) : new Date(F.$y, ne, ce), F);
4037
- return L ? le : le.endOf(c);
4038
- }, Q = function(ce, ne) {
4039
- return P.w(F.toDate()[ce].apply(F.toDate("s"), (L ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), F);
4040
- }, z = this.$W, Z = this.$M, re = this.$D, ie = "set" + (this.$u ? "UTC" : "");
4041
- switch (B) {
4037
+ return K ? le : le.endOf(c);
4038
+ }, X = function(ce, ne) {
4039
+ return P.w(F.toDate()[ce].apply(F.toDate("s"), (K ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), F);
4040
+ }, z = this.$W, ee = this.$M, re = this.$D, ie = "set" + (this.$u ? "UTC" : "");
4041
+ switch (x) {
4042
4042
  case v:
4043
- return L ? Y(1, 0) : Y(31, 11);
4043
+ return K ? W(1, 0) : W(31, 11);
4044
4044
  case d:
4045
- return L ? Y(1, Z) : Y(0, Z + 1);
4045
+ return K ? W(1, ee) : W(0, ee + 1);
4046
4046
  case u:
4047
4047
  var se = this.$locale().weekStart || 0, ge = (z < se ? z + 7 : z) - se;
4048
- return Y(L ? re - ge : re + (6 - ge), Z);
4048
+ return W(K ? re - ge : re + (6 - ge), ee);
4049
4049
  case c:
4050
4050
  case y:
4051
- return Q(ie + "Hours", 0);
4051
+ return X(ie + "Hours", 0);
4052
4052
  case i:
4053
- return Q(ie + "Minutes", 1);
4053
+ return X(ie + "Minutes", 1);
4054
4054
  case o:
4055
- return Q(ie + "Seconds", 2);
4055
+ return X(ie + "Seconds", 2);
4056
4056
  case l:
4057
- return Q(ie + "Milliseconds", 3);
4057
+ return X(ie + "Milliseconds", 3);
4058
4058
  default:
4059
4059
  return this.clone();
4060
4060
  }
4061
- }, w.endOf = function(V) {
4062
- return this.startOf(V, !1);
4063
- }, w.$set = function(V, G) {
4064
- var F, L = P.p(V), B = "set" + (this.$u ? "UTC" : ""), Y = (F = {}, F[c] = B + "Date", F[y] = B + "Date", F[d] = B + "Month", F[v] = B + "FullYear", F[i] = B + "Hours", F[o] = B + "Minutes", F[l] = B + "Seconds", F[s] = B + "Milliseconds", F)[L], Q = L === c ? this.$D + (G - this.$W) : G;
4065
- if (L === d || L === v) {
4061
+ }, O.endOf = function(R) {
4062
+ return this.startOf(R, !1);
4063
+ }, O.$set = function(R, G) {
4064
+ var F, K = P.p(R), x = "set" + (this.$u ? "UTC" : ""), W = (F = {}, F[c] = x + "Date", F[y] = x + "Date", F[d] = x + "Month", F[v] = x + "FullYear", F[i] = x + "Hours", F[o] = x + "Minutes", F[l] = x + "Seconds", F[s] = x + "Milliseconds", F)[K], X = K === c ? this.$D + (G - this.$W) : G;
4065
+ if (K === d || K === v) {
4066
4066
  var z = this.clone().set(y, 1);
4067
- z.$d[Y](Q), z.init(), this.$d = z.set(y, Math.min(this.$D, z.daysInMonth())).$d;
4067
+ z.$d[W](X), z.init(), this.$d = z.set(y, Math.min(this.$D, z.daysInMonth())).$d;
4068
4068
  } else
4069
- Y && this.$d[Y](Q);
4069
+ W && this.$d[W](X);
4070
4070
  return this.init(), this;
4071
- }, w.set = function(V, G) {
4072
- return this.clone().$set(V, G);
4073
- }, w.get = function(V) {
4074
- return this[P.p(V)]();
4075
- }, w.add = function(V, G) {
4076
- var F, L = this;
4077
- V = Number(V);
4078
- var B = P.p(G), Y = function(Z) {
4079
- var re = M(L);
4080
- return P.w(re.date(re.date() + Math.round(Z * V)), L);
4071
+ }, O.set = function(R, G) {
4072
+ return this.clone().$set(R, G);
4073
+ }, O.get = function(R) {
4074
+ return this[P.p(R)]();
4075
+ }, O.add = function(R, G) {
4076
+ var F, K = this;
4077
+ R = Number(R);
4078
+ var x = P.p(G), W = function(ee) {
4079
+ var re = A(K);
4080
+ return P.w(re.date(re.date() + Math.round(ee * R)), K);
4081
4081
  };
4082
- if (B === d)
4083
- return this.set(d, this.$M + V);
4084
- if (B === v)
4085
- return this.set(v, this.$y + V);
4086
- if (B === c)
4087
- return Y(1);
4088
- if (B === u)
4089
- return Y(7);
4090
- var Q = (F = {}, F[o] = a, F[i] = n, F[l] = r, F)[B] || 1, z = this.$d.getTime() + V * Q;
4082
+ if (x === d)
4083
+ return this.set(d, this.$M + R);
4084
+ if (x === v)
4085
+ return this.set(v, this.$y + R);
4086
+ if (x === c)
4087
+ return W(1);
4088
+ if (x === u)
4089
+ return W(7);
4090
+ var X = (F = {}, F[o] = a, F[i] = n, F[l] = r, F)[x] || 1, z = this.$d.getTime() + R * X;
4091
4091
  return P.w(z, this);
4092
- }, w.subtract = function(V, G) {
4093
- return this.add(-1 * V, G);
4094
- }, w.format = function(V) {
4092
+ }, O.subtract = function(R, G) {
4093
+ return this.add(-1 * R, G);
4094
+ }, O.format = function(R) {
4095
4095
  var G = this, F = this.$locale();
4096
4096
  if (!this.isValid())
4097
4097
  return F.invalidDate || p;
4098
- var L = V || "YYYY-MM-DDTHH:mm:ssZ", B = P.z(this), Y = this.$H, Q = this.$m, z = this.$M, Z = F.weekdays, re = F.months, ie = F.meridiem, se = function(ne, le, de, fe) {
4099
- return ne && (ne[le] || ne(G, L)) || de[le].slice(0, fe);
4098
+ var K = R || "YYYY-MM-DDTHH:mm:ssZ", x = P.z(this), W = this.$H, X = this.$m, z = this.$M, ee = F.weekdays, re = F.months, ie = F.meridiem, se = function(ne, le, de, fe) {
4099
+ return ne && (ne[le] || ne(G, K)) || de[le].slice(0, fe);
4100
4100
  }, ge = function(ne) {
4101
- return P.s(Y % 12 || 12, ne, "0");
4101
+ return P.s(W % 12 || 12, ne, "0");
4102
4102
  }, ce = ie || function(ne, le, de) {
4103
4103
  var fe = ne < 12 ? "AM" : "PM";
4104
4104
  return de ? fe.toLowerCase() : fe;
4105
4105
  };
4106
- return L.replace(b, function(ne, le) {
4106
+ return K.replace(b, function(ne, le) {
4107
4107
  return le || function(de) {
4108
4108
  switch (de) {
4109
4109
  case "YY":
@@ -4125,27 +4125,27 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4125
4125
  case "d":
4126
4126
  return String(G.$W);
4127
4127
  case "dd":
4128
- return se(F.weekdaysMin, G.$W, Z, 2);
4128
+ return se(F.weekdaysMin, G.$W, ee, 2);
4129
4129
  case "ddd":
4130
- return se(F.weekdaysShort, G.$W, Z, 3);
4130
+ return se(F.weekdaysShort, G.$W, ee, 3);
4131
4131
  case "dddd":
4132
- return Z[G.$W];
4132
+ return ee[G.$W];
4133
4133
  case "H":
4134
- return String(Y);
4134
+ return String(W);
4135
4135
  case "HH":
4136
- return P.s(Y, 2, "0");
4136
+ return P.s(W, 2, "0");
4137
4137
  case "h":
4138
4138
  return ge(1);
4139
4139
  case "hh":
4140
4140
  return ge(2);
4141
4141
  case "a":
4142
- return ce(Y, Q, !0);
4142
+ return ce(W, X, !0);
4143
4143
  case "A":
4144
- return ce(Y, Q, !1);
4144
+ return ce(W, X, !1);
4145
4145
  case "m":
4146
- return String(Q);
4146
+ return String(X);
4147
4147
  case "mm":
4148
- return P.s(Q, 2, "0");
4148
+ return P.s(X, 2, "0");
4149
4149
  case "s":
4150
4150
  return String(G.$s);
4151
4151
  case "ss":
@@ -4153,76 +4153,76 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4153
4153
  case "SSS":
4154
4154
  return P.s(G.$ms, 3, "0");
4155
4155
  case "Z":
4156
- return B;
4156
+ return x;
4157
4157
  }
4158
4158
  return null;
4159
- }(ne) || B.replace(":", "");
4159
+ }(ne) || x.replace(":", "");
4160
4160
  });
4161
- }, w.utcOffset = function() {
4161
+ }, O.utcOffset = function() {
4162
4162
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4163
- }, w.diff = function(V, G, F) {
4164
- var L, B = this, Y = P.p(G), Q = M(V), z = (Q.utcOffset() - this.utcOffset()) * a, Z = this - Q, re = function() {
4165
- return P.m(B, Q);
4163
+ }, O.diff = function(R, G, F) {
4164
+ var K, x = this, W = P.p(G), X = A(R), z = (X.utcOffset() - this.utcOffset()) * a, ee = this - X, re = function() {
4165
+ return P.m(x, X);
4166
4166
  };
4167
- switch (Y) {
4167
+ switch (W) {
4168
4168
  case v:
4169
- L = re() / 12;
4169
+ K = re() / 12;
4170
4170
  break;
4171
4171
  case d:
4172
- L = re();
4172
+ K = re();
4173
4173
  break;
4174
4174
  case m:
4175
- L = re() / 3;
4175
+ K = re() / 3;
4176
4176
  break;
4177
4177
  case u:
4178
- L = (Z - z) / 6048e5;
4178
+ K = (ee - z) / 6048e5;
4179
4179
  break;
4180
4180
  case c:
4181
- L = (Z - z) / 864e5;
4181
+ K = (ee - z) / 864e5;
4182
4182
  break;
4183
4183
  case i:
4184
- L = Z / n;
4184
+ K = ee / n;
4185
4185
  break;
4186
4186
  case o:
4187
- L = Z / a;
4187
+ K = ee / a;
4188
4188
  break;
4189
4189
  case l:
4190
- L = Z / r;
4190
+ K = ee / r;
4191
4191
  break;
4192
4192
  default:
4193
- L = Z;
4193
+ K = ee;
4194
4194
  }
4195
- return F ? L : P.a(L);
4196
- }, w.daysInMonth = function() {
4195
+ return F ? K : P.a(K);
4196
+ }, O.daysInMonth = function() {
4197
4197
  return this.endOf(d).$D;
4198
- }, w.$locale = function() {
4198
+ }, O.$locale = function() {
4199
4199
  return k[this.$L];
4200
- }, w.locale = function(V, G) {
4201
- if (!V)
4200
+ }, O.locale = function(R, G) {
4201
+ if (!R)
4202
4202
  return this.$L;
4203
- var F = this.clone(), L = I(V, G, !0);
4204
- return L && (F.$L = L), F;
4205
- }, w.clone = function() {
4203
+ var F = this.clone(), K = I(R, G, !0);
4204
+ return K && (F.$L = K), F;
4205
+ }, O.clone = function() {
4206
4206
  return P.w(this.$d, this);
4207
- }, w.toDate = function() {
4207
+ }, O.toDate = function() {
4208
4208
  return new Date(this.valueOf());
4209
- }, w.toJSON = function() {
4209
+ }, O.toJSON = function() {
4210
4210
  return this.isValid() ? this.toISOString() : null;
4211
- }, w.toISOString = function() {
4211
+ }, O.toISOString = function() {
4212
4212
  return this.$d.toISOString();
4213
- }, w.toString = function() {
4213
+ }, O.toString = function() {
4214
4214
  return this.$d.toUTCString();
4215
- }, O;
4215
+ }, D;
4216
4216
  }(), U = N.prototype;
4217
- return M.prototype = U, [["$ms", s], ["$s", l], ["$m", o], ["$H", i], ["$W", c], ["$M", d], ["$y", v], ["$D", y]].forEach(function(O) {
4218
- U[O[1]] = function(w) {
4219
- return this.$g(w, O[0], O[1]);
4217
+ return A.prototype = U, [["$ms", s], ["$s", l], ["$m", o], ["$H", i], ["$W", c], ["$M", d], ["$y", v], ["$D", y]].forEach(function(D) {
4218
+ U[D[1]] = function(O) {
4219
+ return this.$g(O, D[0], D[1]);
4220
4220
  };
4221
- }), M.extend = function(O, w) {
4222
- return O.$i || (O(w, N, M), O.$i = !0), M;
4223
- }, M.locale = I, M.isDayjs = D, M.unix = function(O) {
4224
- return M(1e3 * O);
4225
- }, M.en = k[A], M.Ls = k, M.p = {}, M;
4221
+ }), A.extend = function(D, O) {
4222
+ return D.$i || (D(O, N, A), D.$i = !0), A;
4223
+ }, A.locale = I, A.isDayjs = w, A.unix = function(D) {
4224
+ return A(1e3 * D);
4225
+ }, A.en = k[M], A.Ls = k, A.p = {}, A;
4226
4226
  });
4227
4227
  })(dayjs_min);
4228
4228
  const dayjs = dayjs_min.exports;
@@ -4267,31 +4267,31 @@ function filesize(e, {
4267
4267
  roundingMethod: p = ROUND,
4268
4268
  precision: g = 0
4269
4269
  } = {}) {
4270
- let b = y, E = Number(e), C = [], T = 0, A = EMPTY;
4270
+ let b = y, E = Number(e), C = [], T = 0, M = EMPTY;
4271
4271
  u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
4272
- const k = a === 10 ? 1e3 : 1024, R = m === !0, D = E < 0, I = Math[p];
4272
+ const k = a === 10 ? 1e3 : 1024, V = m === !0, w = E < 0, I = Math[p];
4273
4273
  if (typeof e != "bigint" && isNaN(e))
4274
4274
  throw new TypeError(INVALID_NUMBER);
4275
4275
  if (typeof I !== FUNCTION)
4276
4276
  throw new TypeError(INVALID_ROUND);
4277
- if (D && (E = -E), (b === -1 || isNaN(b)) && (b = Math.floor(Math.log(E) / Math.log(k)), b < 0 && (b = 0)), b > 8 && (g > 0 && (g += 8 - b), b = 8), d === EXPONENT)
4277
+ if (w && (E = -E), (b === -1 || isNaN(b)) && (b = Math.floor(Math.log(E) / Math.log(k)), b < 0 && (b = 0)), b > 8 && (g > 0 && (g += 8 - b), b = 8), d === EXPONENT)
4278
4278
  return b;
4279
4279
  if (E === 0)
4280
- C[0] = 0, A = C[1] = STRINGS.symbol[u][t ? BITS : BYTES][b];
4280
+ C[0] = 0, M = C[1] = STRINGS.symbol[u][t ? BITS : BYTES][b];
4281
4281
  else {
4282
4282
  T = E / (a === 2 ? Math.pow(2, b * 10) : Math.pow(1e3, b)), t && (T = T * 8, T >= k && b < 8 && (T = T / k, b++));
4283
- const M = Math.pow(10, b > 0 ? n : 0);
4284
- C[0] = I(T * M) / M, C[0] === k && b < 8 && y === -1 && (C[0] = 1, b++), A = C[1] = a === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][b];
4283
+ const A = Math.pow(10, b > 0 ? n : 0);
4284
+ C[0] = I(T * A) / A, C[0] === k && b < 8 && y === -1 && (C[0] = 1, b++), M = C[1] = a === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][b];
4285
4285
  }
4286
- if (D && (C[0] = -C[0]), g > 0 && (C[0] = C[0].toPrecision(g)), C[1] = c[C[1]] || C[1], s === !0 ? C[0] = C[0].toLocaleString() : s.length > 0 ? C[0] = C[0].toLocaleString(s, l) : o.length > 0 && (C[0] = C[0].toString().replace(PERIOD, o)), r && Number.isInteger(C[0]) === !1 && n > 0) {
4287
- const M = o || PERIOD, P = C[0].toString().split(M), N = P[1] || EMPTY, U = N.length, O = n - U;
4288
- C[0] = `${P[0]}${M}${N.padEnd(U + O, ZERO)}`;
4286
+ if (w && (C[0] = -C[0]), g > 0 && (C[0] = C[0].toPrecision(g)), C[1] = c[C[1]] || C[1], s === !0 ? C[0] = C[0].toLocaleString() : s.length > 0 ? C[0] = C[0].toLocaleString(s, l) : o.length > 0 && (C[0] = C[0].toString().replace(PERIOD, o)), r && Number.isInteger(C[0]) === !1 && n > 0) {
4287
+ const A = o || PERIOD, P = C[0].toString().split(A), N = P[1] || EMPTY, U = N.length, D = n - U;
4288
+ C[0] = `${P[0]}${A}${N.padEnd(U + D, ZERO)}`;
4289
4289
  }
4290
- return R && (C[1] = v[b] ? v[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), d === ARRAY ? C : d === OBJECT ? {
4290
+ return V && (C[1] = v[b] ? v[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), d === ARRAY ? C : d === OBJECT ? {
4291
4291
  value: C[0],
4292
4292
  symbol: C[1],
4293
4293
  exponent: b,
4294
- unit: A
4294
+ unit: M
4295
4295
  } : C.join(i);
4296
4296
  }
4297
4297
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
@@ -5482,8 +5482,8 @@ function equalObjects(e, t, r, a, n, s) {
5482
5482
  g || (g = m == "constructor");
5483
5483
  }
5484
5484
  if (p && !g) {
5485
- var T = e.constructor, A = t.constructor;
5486
- T != A && "constructor" in e && "constructor" in t && !(typeof T == "function" && T instanceof T && typeof A == "function" && A instanceof A) && (p = !1);
5485
+ var T = e.constructor, M = t.constructor;
5486
+ T != M && "constructor" in e && "constructor" in t && !(typeof T == "function" && T instanceof T && typeof M == "function" && M instanceof M) && (p = !1);
5487
5487
  }
5488
5488
  return s.delete(e), s.delete(t), p;
5489
5489
  }
@@ -5636,19 +5636,19 @@ function debounce(e, t, r) {
5636
5636
  throw new TypeError(FUNC_ERROR_TEXT);
5637
5637
  t = toNumber(t) || 0, isObject$2(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? nativeMax$1(toNumber(r.maxWait) || 0, t) : s, m = "trailing" in r ? !!r.trailing : m);
5638
5638
  function v(k) {
5639
- var R = a, D = n;
5640
- return a = n = void 0, c = k, l = e.apply(D, R), l;
5639
+ var V = a, w = n;
5640
+ return a = n = void 0, c = k, l = e.apply(w, V), l;
5641
5641
  }
5642
5642
  function y(k) {
5643
5643
  return c = k, o = setTimeout(b, t), u ? v(k) : l;
5644
5644
  }
5645
5645
  function p(k) {
5646
- var R = k - i, D = k - c, I = t - R;
5647
- return d ? nativeMin$1(I, s - D) : I;
5646
+ var V = k - i, w = k - c, I = t - V;
5647
+ return d ? nativeMin$1(I, s - w) : I;
5648
5648
  }
5649
5649
  function g(k) {
5650
- var R = k - i, D = k - c;
5651
- return i === void 0 || R >= t || R < 0 || d && D >= s;
5650
+ var V = k - i, w = k - c;
5651
+ return i === void 0 || V >= t || V < 0 || d && w >= s;
5652
5652
  }
5653
5653
  function b() {
5654
5654
  var k = now$1();
@@ -5665,9 +5665,9 @@ function debounce(e, t, r) {
5665
5665
  function T() {
5666
5666
  return o === void 0 ? l : E(now$1());
5667
5667
  }
5668
- function A() {
5669
- var k = now$1(), R = g(k);
5670
- if (a = arguments, n = this, i = k, R) {
5668
+ function M() {
5669
+ var k = now$1(), V = g(k);
5670
+ if (a = arguments, n = this, i = k, V) {
5671
5671
  if (o === void 0)
5672
5672
  return y(i);
5673
5673
  if (d)
@@ -5675,7 +5675,7 @@ function debounce(e, t, r) {
5675
5675
  }
5676
5676
  return o === void 0 && (o = setTimeout(b, t)), l;
5677
5677
  }
5678
- return A.cancel = C, A.flush = T, A;
5678
+ return M.cancel = C, M.flush = T, M;
5679
5679
  }
5680
5680
  function isArrayLikeObject(e) {
5681
5681
  return isObjectLike(e) && isArrayLike(e);
@@ -7175,22 +7175,22 @@ function createSetupStore(e, t, r = {}, a, n) {
7175
7175
  const i = {
7176
7176
  deep: !0
7177
7177
  };
7178
- process.env.NODE_ENV !== "production" && !isVue2 && (i.onTrigger = (D) => {
7179
- c ? v = D : c == !1 && !k._hotUpdating && (Array.isArray(v) ? v.push(D) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
7178
+ process.env.NODE_ENV !== "production" && !isVue2 && (i.onTrigger = (w) => {
7179
+ c ? v = w : c == !1 && !k._hotUpdating && (Array.isArray(v) ? v.push(w) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
7180
7180
  });
7181
7181
  let c, u, d = markRaw([]), m = markRaw([]), v;
7182
7182
  const y = a.state.value[e];
7183
7183
  !l && !y && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
7184
7184
  const p = ref({});
7185
- function g(D) {
7185
+ function g(w) {
7186
7186
  let I;
7187
- c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof D == "function" ? (D(a.state.value[e]), I = {
7187
+ c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof w == "function" ? (w(a.state.value[e]), I = {
7188
7188
  type: MutationType.patchFunction,
7189
7189
  storeId: e,
7190
7190
  events: v
7191
- }) : (mergeReactiveObjects(a.state.value[e], D), I = {
7191
+ }) : (mergeReactiveObjects(a.state.value[e], w), I = {
7192
7192
  type: MutationType.patchObject,
7193
- payload: D,
7193
+ payload: w,
7194
7194
  storeId: e,
7195
7195
  events: v
7196
7196
  }), nextTick().then(() => {
@@ -7203,30 +7203,30 @@ function createSetupStore(e, t, r = {}, a, n) {
7203
7203
  function E() {
7204
7204
  s.stop(), d = [], m = [], a._s.delete(e);
7205
7205
  }
7206
- function C(D, I) {
7206
+ function C(w, I) {
7207
7207
  return function() {
7208
7208
  setActivePinia(a);
7209
- const M = Array.from(arguments), P = [], N = [];
7210
- function U(V) {
7211
- P.push(V);
7209
+ const A = Array.from(arguments), P = [], N = [];
7210
+ function U(R) {
7211
+ P.push(R);
7212
7212
  }
7213
- function O(V) {
7214
- N.push(V);
7213
+ function D(R) {
7214
+ N.push(R);
7215
7215
  }
7216
7216
  triggerSubscriptions(m, {
7217
- args: M,
7218
- name: D,
7217
+ args: A,
7218
+ name: w,
7219
7219
  store: k,
7220
7220
  after: U,
7221
- onError: O
7221
+ onError: D
7222
7222
  });
7223
- let w;
7223
+ let O;
7224
7224
  try {
7225
- w = I.apply(this && this.$id === e ? this : k, M);
7226
- } catch (V) {
7227
- throw triggerSubscriptions(N, V), V;
7225
+ O = I.apply(this && this.$id === e ? this : k, A);
7226
+ } catch (R) {
7227
+ throw triggerSubscriptions(N, R), R;
7228
7228
  }
7229
- return w instanceof Promise ? w.then((V) => (triggerSubscriptions(P, V), V)).catch((V) => (triggerSubscriptions(N, V), Promise.reject(V))) : (triggerSubscriptions(P, w), w);
7229
+ return O instanceof Promise ? O.then((R) => (triggerSubscriptions(P, R), R)).catch((R) => (triggerSubscriptions(N, R), Promise.reject(R))) : (triggerSubscriptions(P, O), O);
7230
7230
  };
7231
7231
  }
7232
7232
  const T = /* @__PURE__ */ markRaw({
@@ -7234,21 +7234,21 @@ function createSetupStore(e, t, r = {}, a, n) {
7234
7234
  getters: {},
7235
7235
  state: [],
7236
7236
  hotState: p
7237
- }), A = {
7237
+ }), M = {
7238
7238
  _p: a,
7239
7239
  $id: e,
7240
7240
  $onAction: addSubscription.bind(null, m),
7241
7241
  $patch: g,
7242
7242
  $reset: b,
7243
- $subscribe(D, I = {}) {
7244
- const M = addSubscription(d, D, I.detached, () => P()), P = s.run(() => watch(() => a.state.value[e], (N) => {
7245
- (I.flush === "sync" ? u : c) && D({
7243
+ $subscribe(w, I = {}) {
7244
+ const A = addSubscription(d, w, I.detached, () => P()), P = s.run(() => watch(() => a.state.value[e], (N) => {
7245
+ (I.flush === "sync" ? u : c) && w({
7246
7246
  storeId: e,
7247
7247
  type: MutationType.direct,
7248
7248
  events: v
7249
7249
  }, N);
7250
7250
  }, assign$1({}, i, I)));
7251
- return M;
7251
+ return A;
7252
7252
  },
7253
7253
  $dispose: E
7254
7254
  }, k = reactive(assign$1(
@@ -7256,57 +7256,57 @@ function createSetupStore(e, t, r = {}, a, n) {
7256
7256
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
7257
7257
  _hmrPayload: T
7258
7258
  } : {},
7259
- A
7259
+ M
7260
7260
  ));
7261
7261
  a._s.set(e, k);
7262
- const R = a._e.run(() => (s = effectScope(), s.run(() => t())));
7263
- for (const D in R) {
7264
- const I = R[D];
7262
+ const V = a._e.run(() => (s = effectScope(), s.run(() => t())));
7263
+ for (const w in V) {
7264
+ const I = V[w];
7265
7265
  if (isRef(I) && !isComputed(I) || isReactive(I))
7266
- process.env.NODE_ENV !== "production" && n ? set(p.value, D, toRef(R, D)) : l || (y && shouldHydrate(I) && (isRef(I) ? I.value = y[D] : mergeReactiveObjects(I, y[D])), a.state.value[e][D] = I), process.env.NODE_ENV !== "production" && T.state.push(D);
7266
+ process.env.NODE_ENV !== "production" && n ? set(p.value, w, toRef(V, w)) : l || (y && shouldHydrate(I) && (isRef(I) ? I.value = y[w] : mergeReactiveObjects(I, y[w])), a.state.value[e][w] = I), process.env.NODE_ENV !== "production" && T.state.push(w);
7267
7267
  else if (typeof I == "function") {
7268
- const M = process.env.NODE_ENV !== "production" && n ? I : C(D, I);
7269
- R[D] = M, process.env.NODE_ENV !== "production" && (T.actions[D] = I), o.actions[D] = I;
7268
+ const A = process.env.NODE_ENV !== "production" && n ? I : C(w, I);
7269
+ V[w] = A, process.env.NODE_ENV !== "production" && (T.actions[w] = I), o.actions[w] = I;
7270
7270
  } else
7271
- process.env.NODE_ENV !== "production" && isComputed(I) && (T.getters[D] = l ? r.getters[D] : I, IS_CLIENT && (R._getters || (R._getters = markRaw([]))).push(D));
7271
+ process.env.NODE_ENV !== "production" && isComputed(I) && (T.getters[w] = l ? r.getters[w] : I, IS_CLIENT && (V._getters || (V._getters = markRaw([]))).push(w));
7272
7272
  }
7273
- if (assign$1(k, R), assign$1(toRaw(k), R), Object.defineProperty(k, "$state", {
7273
+ if (assign$1(k, V), assign$1(toRaw(k), V), Object.defineProperty(k, "$state", {
7274
7274
  get: () => process.env.NODE_ENV !== "production" && n ? p.value : a.state.value[e],
7275
- set: (D) => {
7275
+ set: (w) => {
7276
7276
  if (process.env.NODE_ENV !== "production" && n)
7277
7277
  throw new Error("cannot set hotState");
7278
7278
  g((I) => {
7279
- assign$1(I, D);
7279
+ assign$1(I, w);
7280
7280
  });
7281
7281
  }
7282
7282
  }), process.env.NODE_ENV !== "production") {
7283
7283
  k._hotUpdate = markRaw((I) => {
7284
- k._hotUpdating = !0, I._hmrPayload.state.forEach((M) => {
7285
- if (M in k.$state) {
7286
- const P = I.$state[M], N = k.$state[M];
7287
- typeof P == "object" && isPlainObject(P) && isPlainObject(N) ? patchObject(P, N) : I.$state[M] = N;
7284
+ k._hotUpdating = !0, I._hmrPayload.state.forEach((A) => {
7285
+ if (A in k.$state) {
7286
+ const P = I.$state[A], N = k.$state[A];
7287
+ typeof P == "object" && isPlainObject(P) && isPlainObject(N) ? patchObject(P, N) : I.$state[A] = N;
7288
7288
  }
7289
- set(k, M, toRef(I.$state, M));
7290
- }), Object.keys(k.$state).forEach((M) => {
7291
- M in I.$state || del(k, M);
7289
+ set(k, A, toRef(I.$state, A));
7290
+ }), Object.keys(k.$state).forEach((A) => {
7291
+ A in I.$state || del(k, A);
7292
7292
  }), c = !1, u = !1, a.state.value[e] = toRef(I._hmrPayload, "hotState"), u = !0, nextTick().then(() => {
7293
7293
  c = !0;
7294
7294
  });
7295
- for (const M in I._hmrPayload.actions) {
7296
- const P = I[M];
7297
- set(k, M, C(M, P));
7295
+ for (const A in I._hmrPayload.actions) {
7296
+ const P = I[A];
7297
+ set(k, A, C(A, P));
7298
7298
  }
7299
- for (const M in I._hmrPayload.getters) {
7300
- const P = I._hmrPayload.getters[M], N = l ? computed(() => (setActivePinia(a), P.call(k, k))) : P;
7301
- set(k, M, N);
7299
+ for (const A in I._hmrPayload.getters) {
7300
+ const P = I._hmrPayload.getters[A], N = l ? computed(() => (setActivePinia(a), P.call(k, k))) : P;
7301
+ set(k, A, N);
7302
7302
  }
7303
- Object.keys(k._hmrPayload.getters).forEach((M) => {
7304
- M in I._hmrPayload.getters || del(k, M);
7305
- }), Object.keys(k._hmrPayload.actions).forEach((M) => {
7306
- M in I._hmrPayload.actions || del(k, M);
7303
+ Object.keys(k._hmrPayload.getters).forEach((A) => {
7304
+ A in I._hmrPayload.getters || del(k, A);
7305
+ }), Object.keys(k._hmrPayload.actions).forEach((A) => {
7306
+ A in I._hmrPayload.actions || del(k, A);
7307
7307
  }), k._hmrPayload = I._hmrPayload, k._getters = I._getters, k._hotUpdating = !1;
7308
7308
  });
7309
- const D = {
7309
+ const w = {
7310
7310
  writable: !0,
7311
7311
  configurable: !0,
7312
7312
  enumerable: !1
@@ -7314,21 +7314,21 @@ function createSetupStore(e, t, r = {}, a, n) {
7314
7314
  IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
7315
7315
  Object.defineProperty(k, I, {
7316
7316
  value: k[I],
7317
- ...D
7317
+ ...w
7318
7318
  });
7319
7319
  });
7320
7320
  }
7321
- return a._p.forEach((D) => {
7321
+ return a._p.forEach((w) => {
7322
7322
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
7323
- const I = s.run(() => D({
7323
+ const I = s.run(() => w({
7324
7324
  store: k,
7325
7325
  app: a._a,
7326
7326
  pinia: a,
7327
7327
  options: o
7328
7328
  }));
7329
- Object.keys(I || {}).forEach((M) => k._customProperties.add(M)), assign$1(k, I);
7329
+ Object.keys(I || {}).forEach((A) => k._customProperties.add(A)), assign$1(k, I);
7330
7330
  } else
7331
- assign$1(k, s.run(() => D({
7331
+ assign$1(k, s.run(() => w({
7332
7332
  store: k,
7333
7333
  app: a._a,
7334
7334
  pinia: a,
@@ -9145,8 +9145,8 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
9145
9145
  }
9146
9146
  this.formIDs = [...this.formIDs, e].sort((t, r) => t.level - r.level), await this.retrieve(e.formID), store_legacy.set("KgVar.formIDs", this.formIDs);
9147
9147
  },
9148
- leave(e) {
9149
- this.formIDs = this.formIDs.filter((t) => t.formID !== e), this.isRetrievingMap.delete(e), this.isRetrievingVarProfileMasterMap.delete(e), this.isCreatingMap.delete(e), this.isCreatingRequestingMap.delete(e), this.isUpdatingMap.delete(e), this.isUpdatingRequestingMap.delete(e), this.isCopyingMap.delete(e), this.isCopyingRequestingMap.delete(e), this.isDeletingMap.delete(e), this.isDeletingRequestingMap.delete(e), this.isOtherRequestingMap.delete(e), this.varCatalogMap.delete(e), this.varLookupMap.delete(e), this.varPossibilityMap.delete(e), this.varVariableConfigMap.delete(e), this.varButtonMap.delete(e), this.varSubmitConfigMap.delete(e), this.varSubmitFieldMap.delete(e), this.varProfileConfigMap.delete(e), this.varProfileMap.delete(e), this.varGridConfigMap.delete(e), this.varGridMap.delete(e), store_legacy.set("KgVar.formIDs", this.formIDs);
9148
+ dispose(e) {
9149
+ this.formIDs = this.formIDs.filter((t) => t.formID !== e), this.isRetrievingMap.delete(e), this.isRetrievedMap.delete(e), this.isRetrievingVarProfileMasterMap.delete(e), this.isRetrievingVarGridMasterMap.delete(e), this.isCreatingMap.delete(e), this.isCreatingRequestingMap.delete(e), this.isUpdatingMap.delete(e), this.isUpdatingRequestingMap.delete(e), this.isCopyingMap.delete(e), this.isCopyingRequestingMap.delete(e), this.isDeletingMap.delete(e), this.isDeletingRequestingMap.delete(e), this.isOtherRequestingMap.delete(e), this.varCatalogMap.delete(e), this.varLookupMap.delete(e), this.varPossibilityMap.delete(e), this.varVariableConfigMap.delete(e), this.varVariableInputMap.delete(e), this.varButtonMap.delete(e), this.varButtonConfigMap.delete(e), this.varSubmitConfigMap.delete(e), this.varSubmitFieldMap.delete(e), this.varProfileConfigMap.delete(e), this.varProfileMap.delete(e), this.varGridConfigMap.delete(e), this.varGridMap.delete(e), this.onRetrieveListenersMap.delete(e), store_legacy.set("KgVar.formIDs", this.formIDs);
9150
9150
  },
9151
9151
  async retrieve(e) {
9152
9152
  var t, r, a, n, s, l, o, i, c, u;
@@ -9164,16 +9164,16 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
9164
9164
  varSubmitConfig: E,
9165
9165
  varSubmitFields: C,
9166
9166
  varProfile: T,
9167
- varProfileConfig: A,
9167
+ varProfileConfig: M,
9168
9168
  varGrid: k,
9169
- varGridConfig: R
9169
+ varGridConfig: V
9170
9170
  } = await GetAll({ params: { frm_id: e } });
9171
- this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, m != null ? m : []), this.varPossibilityMap.set(e, p != null ? p : []), this.varVariableConfigMap.set(e, v != null ? v : []), this.varVariableInputMap.set(e, y != null ? y : []), this.varButtonMap.set(e, transformVarButtons(g)), this.varButtonConfigMap.set(e, transformVarButtonConfig(b != null ? b : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(E)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(C)), this.varProfileConfigMap.set(e, transformVarProfileConfig(A != null ? A : null)), this.varProfileMap.set(e, {
9171
+ this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, m != null ? m : []), this.varPossibilityMap.set(e, p != null ? p : []), this.varVariableConfigMap.set(e, v != null ? v : []), this.varVariableInputMap.set(e, y != null ? y : []), this.varButtonMap.set(e, transformVarButtons(g)), this.varButtonConfigMap.set(e, transformVarButtonConfig(b != null ? b : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(E)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(C)), this.varProfileConfigMap.set(e, transformVarProfileConfig(M != null ? M : null)), this.varProfileMap.set(e, {
9172
9172
  varProfile: T != null ? T : null,
9173
- currentVarProfileMasterID: (s = (n = ((t = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : t.find((D) => D.def_flg === 1)) || ((r = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : r.find((D) => D.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((a = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : a.find(() => !0))) == null ? void 0 : n.id) != null ? s : null
9174
- }), this.varGridConfigMap.set(e, transformVarGridConfig(R != null ? R : null)), this.varGridMap.set(e, {
9173
+ currentVarProfileMasterID: (s = (n = ((t = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : t.find((w) => w.def_flg === 1)) || ((r = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : r.find((w) => w.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((a = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : a.find(() => !0))) == null ? void 0 : n.id) != null ? s : null
9174
+ }), this.varGridConfigMap.set(e, transformVarGridConfig(V != null ? V : null)), this.varGridMap.set(e, {
9175
9175
  varGrid: transformVarGridDTO(k),
9176
- currentVarGridMasterID: (u = (c = ((l = k == null ? void 0 : k.varGridMasters) == null ? void 0 : l.find((D) => D.def_flg === 1)) || ((o = k == null ? void 0 : k.varGridMasters) == null ? void 0 : o.find((D) => D.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((i = k == null ? void 0 : k.varGridMasters) == null ? void 0 : i.find(() => !0))) == null ? void 0 : c.id) != null ? u : null
9176
+ currentVarGridMasterID: (u = (c = ((l = k == null ? void 0 : k.varGridMasters) == null ? void 0 : l.find((w) => w.def_flg === 1)) || ((o = k == null ? void 0 : k.varGridMasters) == null ? void 0 : o.find((w) => w.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((i = k == null ? void 0 : k.varGridMasters) == null ? void 0 : i.find(() => !0))) == null ? void 0 : c.id) != null ? u : null
9177
9177
  }), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
9178
9178
  } catch (d) {
9179
9179
  throw d;
@@ -9272,7 +9272,7 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
9272
9272
  return;
9273
9273
  const o = this.getVarProfileDetail(e, t);
9274
9274
  if (!o) {
9275
- KgLogger.error("\u6570\u636E\u4E3A\u7A7A.", { frm_id: e, var_nam: t }), n();
9275
+ KgLogger.error("KgVarStore.patchVarProfileDetail() | VarProfileDetail \u4E3A\u7A7A.", { frm_id: e, var_nam: t }), n();
9276
9276
  return;
9277
9277
  }
9278
9278
  setTimeout(() => {
@@ -9304,22 +9304,22 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
9304
9304
  !a || (Object.assign(a, r), this.varPossibilityMap.set(e, this.varPossibilityMap.get(e)));
9305
9305
  },
9306
9306
  patchVarPossibilityCommandParameter(e, t, r) {
9307
- if (!e || !t)
9308
- return;
9309
- const a = watch(
9310
- () => this.getVarPossibility(e, t),
9311
- (n) => {
9312
- var s;
9313
- if (n) {
9314
- setTimeout(() => a(), 0);
9315
- let l = JSON.parse((s = n.cmd_prm) != null ? s : "{}");
9316
- Object.entries(r).forEach(([o, i]) => {
9317
- l[o] = i;
9318
- }), n.cmd_prm = JSON.stringify(l), this.varPossibilityMap.set(e, this.varPossibilityMap.get(e));
9319
- }
9320
- },
9321
- { immediate: !0 }
9322
- );
9307
+ return !e || !t ? Promise.resolve() : new Promise((a, n) => {
9308
+ const s = watch(
9309
+ () => this.getVarPossibility(e, t),
9310
+ (l) => {
9311
+ var o;
9312
+ if (l) {
9313
+ setTimeout(() => s(), 0);
9314
+ let i = JSON.parse((o = l.cmd_prm) != null ? o : "{}");
9315
+ Object.entries(r).forEach(([c, u]) => {
9316
+ i[c] = u;
9317
+ }), l.cmd_prm = JSON.stringify(i), this.varPossibilityMap.set(e, this.varPossibilityMap.get(e)), a();
9318
+ }
9319
+ },
9320
+ { immediate: !0 }
9321
+ );
9322
+ });
9323
9323
  },
9324
9324
  dragSortCurrentVarGridDetails(e, t, r) {
9325
9325
  if (!e || !t || !r || t === r)
@@ -9378,12 +9378,12 @@ function useKgVar(e, t, r = 0) {
9378
9378
  t && getCurrentInstance() && (provide(KG_DI_FORM_ID, c), onMounted(() => {
9379
9379
  u.enter({ formID: c, level: r });
9380
9380
  }), onUnmounted(() => {
9381
- u.leave(c);
9381
+ u.dispose(c);
9382
9382
  }));
9383
- const d = (z) => computed(() => u.t(c, z)), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), g = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), E = computed(() => u.isUpdatingRequesting(c)), C = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)), A = computed(() => u.isDeleting(c)), k = computed(() => u.isDeletingRequesting(c)), R = computed(() => u.isOtherRequesting(c)), D = computed(() => u.getVarButtons(c)), I = computed(() => u.getVarButtonSearch(c)), M = computed(() => u.getVarButtonCreate(c)), P = computed(() => u.getVarButtonUpdate(c)), N = computed(() => u.getVarButtonCopy(c)), U = computed(() => u.getVarButtonDelete(c)), O = computed(() => u.getVarProfileMasters(c)), w = computed(() => u.getCurrentVarProfileMaster(c)), V = computed(() => u.getCurrentVarProfileMasterID(c)), G = computed(() => {
9384
- var z, Z;
9385
- return (Z = (z = w.value) == null ? void 0 : z.varProfileDetails) != null ? Z : null;
9386
- }), F = computed(() => u.getVarGridConfig(c)), L = computed(() => u.getVarGridMasters(c)), B = computed(() => u.getCurrentVarGridMaster(c)), Y = computed(() => u.getSystemVarGridDetails(c)), Q = computed(() => u.getCurrentVarGridDetails(c));
9383
+ const d = (z) => computed(() => u.t(c, z)), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), g = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), E = computed(() => u.isUpdatingRequesting(c)), C = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)), M = computed(() => u.isDeleting(c)), k = computed(() => u.isDeletingRequesting(c)), V = computed(() => u.isOtherRequesting(c)), w = computed(() => u.getVarButtons(c)), I = computed(() => u.getVarButtonSearch(c)), A = computed(() => u.getVarButtonCreate(c)), P = computed(() => u.getVarButtonUpdate(c)), N = computed(() => u.getVarButtonCopy(c)), U = computed(() => u.getVarButtonDelete(c)), D = computed(() => u.getVarProfileMasters(c)), O = computed(() => u.getCurrentVarProfileMaster(c)), R = computed(() => u.getCurrentVarProfileMasterID(c)), G = computed(() => {
9384
+ var z, ee;
9385
+ return (ee = (z = O.value) == null ? void 0 : z.varProfileDetails) != null ? ee : null;
9386
+ }), F = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), x = computed(() => u.getCurrentVarGridMaster(c)), W = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
9387
9387
  return {
9388
9388
  formID: c,
9389
9389
  store: u,
@@ -9396,24 +9396,24 @@ function useKgVar(e, t, r = 0) {
9396
9396
  isUpdatingRequesting: E,
9397
9397
  isCopying: C,
9398
9398
  isCopyingRequesting: T,
9399
- isDeleting: A,
9399
+ isDeleting: M,
9400
9400
  isDeletingRequesting: k,
9401
- isOtherRequesting: R,
9402
- varButtons: D,
9401
+ isOtherRequesting: V,
9402
+ varButtons: w,
9403
9403
  varButtonSearch: I,
9404
- varButtonCreate: M,
9404
+ varButtonCreate: A,
9405
9405
  varButtonUpdate: P,
9406
9406
  varButtonCopy: N,
9407
9407
  varButtonDelete: U,
9408
- varProfileMasters: O,
9409
- currentVarProfileMaster: w,
9410
- currentVarProfileMasterID: V,
9408
+ varProfileMasters: D,
9409
+ currentVarProfileMaster: O,
9410
+ currentVarProfileMasterID: R,
9411
9411
  currentVarProfileDetails: G,
9412
9412
  varGridConfig: F,
9413
- varGridMasters: L,
9414
- currentVarGridMaster: B,
9415
- systemVarGridDetails: Y,
9416
- currentVarGridDetails: Q,
9413
+ varGridMasters: K,
9414
+ currentVarGridMaster: x,
9415
+ systemVarGridDetails: W,
9416
+ currentVarGridDetails: X,
9417
9417
  setIsCreating: s,
9418
9418
  setIsUpdating: l,
9419
9419
  setIsCopying: o,
@@ -9486,63 +9486,61 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
9486
9486
  slots: t,
9487
9487
  emit: r
9488
9488
  }) {
9489
- const a = inject(KG_DI_HOST_FORM_ID, ""), n = useKgVar(a), s = useKgForm(n.formID), l = inject(KG_DI_VAR_NAME, ""), o = inject(KG_DI_LOOKUP_ID, ""), i = inject(DI_FORM_MODEL, computed(() => ({})));
9490
- useKgVar(o, !0, n.store.getFormLevel(n.formID) + 1);
9491
- const c = useKgTable(o), u = computed(() => n.store.getVarLookup(n.formID, l)), d = computed(() => {
9492
- var p;
9493
- return ((p = u == null ? void 0 : u.value) == null ? void 0 : p.mult_flg) === 1;
9494
- }), m = computed(() => {
9495
- var p, g;
9496
- return (g = (p = u == null ? void 0 : u.value) == null ? void 0 : p.ret_fld) != null ? g : "";
9489
+ const a = inject(KG_DI_HOST_FORM_ID, ""), n = useKgVar(a), s = useKgForm(n.formID), l = inject(KG_DI_VAR_NAME, ""), o = inject(KG_DI_LOOKUP_ID, ""), i = inject(DI_FORM_MODEL, computed(() => ({}))), c = useKgVar(o, !0, n.store.getFormLevel(n.formID) + 1), u = useKgTable(c.formID), d = computed(() => n.store.getVarLookup(n.formID, l)), m = computed(() => {
9490
+ var g;
9491
+ return ((g = d == null ? void 0 : d.value) == null ? void 0 : g.mult_flg) === 1;
9492
+ }), v = computed(() => {
9493
+ var g, b;
9494
+ return (b = (g = d == null ? void 0 : d.value) == null ? void 0 : g.ret_fld) != null ? b : "";
9497
9495
  });
9498
- c.onRowDoubleClick(async () => (await y(), !1));
9499
- function v() {
9496
+ u.onRowDoubleClick(async () => (await p(), !1));
9497
+ function y() {
9500
9498
  r("update:visible", !1);
9501
9499
  }
9502
- async function y() {
9503
- var p, g, b, E, C, T, A;
9504
- if (d.value) {
9505
- const k = (g = (p = c.selectedRows) == null ? void 0 : p.value) != null ? g : [], R = (b = k.map((I) => I[m.value])) != null ? b : [];
9500
+ async function p() {
9501
+ var g, b, E, C, T, M, k;
9502
+ if (m.value) {
9503
+ const V = (b = (g = u.selectedRows) == null ? void 0 : g.value) != null ? b : [], w = (E = V.map((A) => A[v.value])) != null ? E : [];
9506
9504
  await s.store.emit(s.formID, "lookupBeforeOk", {
9507
9505
  var_nam: l,
9508
9506
  isMultiple: !0,
9509
- values: R,
9510
- rows: k
9507
+ values: w,
9508
+ rows: V
9511
9509
  }) || (s.store.emit(s.formID, "lookupOk", {
9512
9510
  var_nam: l,
9513
9511
  model: i,
9514
9512
  isMultiple: !0,
9515
- values: R,
9516
- rows: k
9513
+ values: w,
9514
+ rows: V
9517
9515
  }), r("update:visible", !1));
9518
9516
  } else {
9519
- const k = (T = (C = (E = c.selectedRows) == null ? void 0 : E.value) == null ? void 0 : C[0]) != null ? T : null, R = (A = k == null ? void 0 : k[m.value]) != null ? A : "";
9517
+ const V = (M = (T = (C = u.selectedRows) == null ? void 0 : C.value) == null ? void 0 : T[0]) != null ? M : null, w = (k = V == null ? void 0 : V[v.value]) != null ? k : "";
9520
9518
  await s.store.emit(s.formID, "lookupBeforeOk", {
9521
9519
  var_nam: l,
9522
9520
  isMultiple: !1,
9523
- value: R,
9524
- row: k
9521
+ value: w,
9522
+ row: V
9525
9523
  }) || (s.store.emit(s.formID, "lookupOk", {
9526
9524
  var_nam: l,
9527
9525
  model: i,
9528
9526
  isMultiple: !1,
9529
- value: R,
9530
- row: k
9527
+ value: w,
9528
+ row: V
9531
9529
  }), r("update:visible", !1));
9532
9530
  }
9533
9531
  }
9534
9532
  return () => {
9535
- var p, g;
9533
+ var g, b;
9536
9534
  return createVNode(KgModal, {
9537
9535
  visible: e.visible,
9538
9536
  title: n.t(l).value,
9539
9537
  destroyOnClose: !0,
9540
9538
  okButtonProps: {
9541
- disabled: ((g = (p = c.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) === 0
9539
+ disabled: ((b = (g = u.selectedRows.value) == null ? void 0 : g.length) != null ? b : 0) === 0
9542
9540
  },
9543
9541
  wrapClassName: "kg-form-item-addon-lookup-modal",
9544
- onCancel: v,
9545
- onOk: y
9542
+ onCancel: y,
9543
+ onOk: p
9546
9544
  }, {
9547
9545
  default: () => [createVNode(KgVar, null, null)]
9548
9546
  });
@@ -9561,21 +9559,24 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
9561
9559
  slots: t,
9562
9560
  emit: r
9563
9561
  }) {
9564
- const a = inject(KG_DI_FORM_ID, "");
9562
+ const a = inject(KG_DI_FORM_ID, ""), n = inject(KG_DI_VAR_NAME, "");
9565
9563
  provide(KG_DI_HOST_FORM_ID, a), provide(KG_DI_LOOKUP_ID, e.kgLookupID);
9566
- const n = ref(!1);
9567
- function s() {
9568
- n.value = !0;
9564
+ const s = useKgForm(a), l = ref(!1);
9565
+ async function o() {
9566
+ l.value = !0, await s.store.emit(s.formID, "lookupBeforeOpen", {
9567
+ var_nam: n,
9568
+ lookupFormID: e.kgLookupID
9569
+ });
9569
9570
  }
9570
9571
  return () => createVNode(Fragment, null, [createVNode(Button, {
9571
- onClick: s,
9572
+ onClick: o,
9572
9573
  class: "kg-form-item-addon-lookup",
9573
9574
  disabled: e.kgDisabled
9574
9575
  }, {
9575
9576
  default: () => [createVNode(SearchOutlined$1, null, null)]
9576
- }), n.value ? createVNode(KgFormItemAddonLookupModal, {
9577
- visible: n.value,
9578
- "onUpdate:visible": (l) => n.value = l
9577
+ }), l.value ? createVNode(KgFormItemAddonLookupModal, {
9578
+ visible: l.value,
9579
+ "onUpdate:visible": (i) => l.value = i
9579
9580
  }, null) : null]);
9580
9581
  }
9581
9582
  }), getProps$s = () => ({
@@ -9676,15 +9677,15 @@ function _useRules(e) {
9676
9677
  {
9677
9678
  const E = (y = n.value) == null ? void 0 : y.min;
9678
9679
  isNil(E) || (((p = n.value) == null ? void 0 : p.min_include_flg) === 1 ? o.push({
9679
- validator: (T, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) < E ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [E])) : Promise.resolve()
9680
+ validator: (T, M) => M == null || M === "" || typeof M == "string" && M.trim() === "" ? Promise.resolve() : Number(M) < E ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [E])) : Promise.resolve()
9680
9681
  }) : o.push({
9681
- validator: (T, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) <= E ? Promise.reject(t.t("kg.KgFormItem.mustGT", [E])) : Promise.resolve()
9682
+ validator: (T, M) => M == null || M === "" || typeof M == "string" && M.trim() === "" ? Promise.resolve() : Number(M) <= E ? Promise.reject(t.t("kg.KgFormItem.mustGT", [E])) : Promise.resolve()
9682
9683
  }));
9683
9684
  const C = (g = n.value) == null ? void 0 : g.max;
9684
9685
  isNil(C) || (((b = n.value) == null ? void 0 : b.max_include_flg) === 1 ? o.push({
9685
- validator: (T, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) > C ? Promise.reject(t.t("kg.KgFormItem.mustLTE", [C])) : Promise.resolve()
9686
+ validator: (T, M) => M == null || M === "" || typeof M == "string" && M.trim() === "" ? Promise.resolve() : Number(M) > C ? Promise.reject(t.t("kg.KgFormItem.mustLTE", [C])) : Promise.resolve()
9686
9687
  }) : o.push({
9687
- validator: (T, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) >= C ? Promise.reject(t.t("kg.KgFormItem.mustLT", [C])) : Promise.resolve()
9688
+ validator: (T, M) => M == null || M === "" || typeof M == "string" && M.trim() === "" ? Promise.resolve() : Number(M) >= C ? Promise.reject(t.t("kg.KgFormItem.mustLT", [C])) : Promise.resolve()
9688
9689
  }));
9689
9690
  }
9690
9691
  break;
@@ -9763,18 +9764,18 @@ function useKgFormItemSelect() {
9763
9764
  if (typeof p == "string" && p.startsWith("{") && p.endsWith("}")) {
9764
9765
  let C = p.slice(1, -1), T = "";
9765
9766
  if (C.includes(".")) {
9766
- const A = C.split(".");
9767
- C = A[0], T = A[1];
9767
+ const M = C.split(".");
9768
+ C = M[0], T = M[1];
9768
9769
  }
9769
- t.value && C in t.value && (T ? g = (E = (b = t.value[`${C}_obj`]) == null ? void 0 : b[T]) != null ? E : void 0 : g = t.value[C], g || (g = "__KG__FORM_ITEM_SELECT__PID"));
9770
+ t.value && C in t.value && (T ? g = (E = (b = t.value[`${C}_obj`]) == null ? void 0 : b[T]) != null ? E : void 0 : g = t.value[C], g || (g = "__kg__form_item_select__pid"));
9770
9771
  }
9771
9772
  return g;
9772
9773
  }), v;
9773
9774
  });
9774
9775
  async function d() {
9775
- var C, T, A, k, R, D, I, M;
9776
+ var C, T, M, k, V, w, I, A;
9776
9777
  let v = [];
9777
- const y = (C = a.value) == null ? void 0 : C.cmd, p = (A = (T = a.value) == null ? void 0 : T.cmd_method) != null ? A : "GET", g = (R = (k = a.value) == null ? void 0 : k.val_clm) != null ? R : "", b = (I = (D = a.value) == null ? void 0 : D.lbl_clm) != null ? I : "";
9778
+ const y = (C = a.value) == null ? void 0 : C.cmd, p = (M = (T = a.value) == null ? void 0 : T.cmd_method) != null ? M : "GET", g = (V = (k = a.value) == null ? void 0 : k.val_clm) != null ? V : "", b = (I = (w = a.value) == null ? void 0 : w.lbl_clm) != null ? I : "";
9778
9779
  if (!y || !g || !b) {
9779
9780
  KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
9780
9781
  frm_id: r.formID,
@@ -9787,7 +9788,7 @@ function useKgFormItemSelect() {
9787
9788
  }
9788
9789
  let E = null;
9789
9790
  try {
9790
- l.value = !0, E = await ((M = httpClient()) == null ? void 0 : M.request({
9791
+ l.value = !0, E = await ((A = httpClient()) == null ? void 0 : A.request({
9791
9792
  url: y,
9792
9793
  method: p,
9793
9794
  params: u.value
@@ -9827,39 +9828,39 @@ function useKgFormItemSelect() {
9827
9828
  const y = (b = (g = a.value) == null ? void 0 : g.val_clm) != null ? b : "", p = (C = (E = a.value) == null ? void 0 : E.val_data_type) != null ? C : "string";
9828
9829
  switch (p) {
9829
9830
  case KG_POSSIBILITY_DATA_TYPE.STRING:
9830
- v.forEach((A) => {
9831
- A[y] = String(A[y]);
9831
+ v.forEach((M) => {
9832
+ M[y] = String(M[y]);
9832
9833
  });
9833
9834
  break;
9834
9835
  case KG_POSSIBILITY_DATA_TYPE.NUMBER:
9835
- v.forEach((A) => {
9836
- let k = Number(A[y]);
9837
- Number.isNaN(k) && (k = A[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${A[y]} \u8F6C\u6362\u4E3A ${p} \u7C7B\u578B`, {
9836
+ v.forEach((M) => {
9837
+ let k = Number(M[y]);
9838
+ Number.isNaN(k) && (k = M[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${M[y]} \u8F6C\u6362\u4E3A ${p} \u7C7B\u578B`, {
9838
9839
  frm_id: r.formID,
9839
9840
  var_nam: e,
9840
9841
  VarPossibility: a.value
9841
- })), A[y] = k;
9842
+ })), M[y] = k;
9842
9843
  });
9843
9844
  break;
9844
9845
  case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
9845
- v.forEach((A) => {
9846
+ v.forEach((M) => {
9846
9847
  let k;
9847
- String(A[y]).toLowerCase() === "true" ? k = !0 : String(A[y]).toLowerCase() === "false" ? k = !1 : (k = A[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${A[y]} \u8F6C\u6362\u4E3A ${p} \u7C7B\u578B`, {
9848
+ String(M[y]).toLowerCase() === "true" ? k = !0 : String(M[y]).toLowerCase() === "false" ? k = !1 : (k = M[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${M[y]} \u8F6C\u6362\u4E3A ${p} \u7C7B\u578B`, {
9848
9849
  frm_id: r.formID,
9849
9850
  var_nam: e,
9850
9851
  VarPossibility: a.value
9851
- })), A[y] = k;
9852
+ })), M[y] = k;
9852
9853
  });
9853
9854
  break;
9854
9855
  }
9855
9856
  switch (n.value) {
9856
9857
  case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
9857
9858
  {
9858
- const A = s;
9859
- if ((T = A.value) != null && T.excludeValues)
9859
+ const M = s;
9860
+ if ((T = M.value) != null && T.excludeValues)
9860
9861
  return v.filter((k) => {
9861
- var R;
9862
- return !((R = A.value.excludeValues) != null && R.includes(k[y]));
9862
+ var V;
9863
+ return !((V = M.value.excludeValues) != null && V.includes(k[y]));
9863
9864
  });
9864
9865
  }
9865
9866
  break;
@@ -9962,8 +9963,8 @@ const KgFormItemCheckboxGroup = defineComponent({
9962
9963
  "kg-value": E[i.value]
9963
9964
  }, {
9964
9965
  default: () => {
9965
- var A, k;
9966
- return [E[(k = (A = l.value) == null ? void 0 : A.lbl_clm) != null ? k : ""]];
9966
+ var M, k;
9967
+ return [E[(k = (M = l.value) == null ? void 0 : M.lbl_clm) != null ? k : ""]];
9967
9968
  }
9968
9969
  })]
9969
9970
  });
@@ -10158,7 +10159,9 @@ const KgFormItemRadioGroup = defineComponent({
10158
10159
  datas: d,
10159
10160
  retrieveDatas: m
10160
10161
  } = useKgFormItemSelect();
10161
- watch(o, () => v(), {
10162
+ watch(o, () => {
10163
+ v();
10164
+ }, {
10162
10165
  immediate: !0
10163
10166
  });
10164
10167
  async function v() {
@@ -10220,6 +10223,7 @@ const KgFormItemRadioGroup = defineComponent({
10220
10223
  dropdownClassName: e.kgMode === "multiple" ? "kg-form-item-select-dropdown kg-form-item-multi-select-dropdown" : "kg-form-item-select-dropdown",
10221
10224
  class: "kg-form-item-select",
10222
10225
  onChange: y,
10226
+ "kg-value": e.value,
10223
10227
  "kg-cmd": (g = l.value) == null ? void 0 : g.cmd,
10224
10228
  "kg-val_clm": i.value,
10225
10229
  "kg-lbl_clm": c.value
@@ -10297,16 +10301,16 @@ const KgFormItemRadioGroup = defineComponent({
10297
10301
  useKg();
10298
10302
  const s = useKgVar(), l = useKgForm(s.formID), o = useKgSearch(s.formID);
10299
10303
  l.onLookupOk(async ({
10300
- var_nam: M,
10304
+ var_nam: A,
10301
10305
  model: P,
10302
10306
  isMultiple: N,
10303
10307
  value: U,
10304
- values: O
10308
+ values: D
10305
10309
  }) => {
10306
- var w;
10307
- switch (M) {
10310
+ var O;
10311
+ switch (A) {
10308
10312
  case e.kgVarName:
10309
- P.value && (N ? P.value[e.kgVarName] = O : P.value[e.kgVarName] = U), (w = n.value) == null || w.validate([e.kgVarName]);
10313
+ P.value && (N ? P.value[e.kgVarName] = D : P.value[e.kgVarName] = U), (O = n.value) == null || O.validate([e.kgVarName]);
10310
10314
  break;
10311
10315
  }
10312
10316
  return !1;
@@ -10316,96 +10320,96 @@ const KgFormItemRadioGroup = defineComponent({
10316
10320
  } = _useRules(e), {
10317
10321
  controlType: v
10318
10322
  } = useKgFormItem(e), y = computed(() => {
10319
- var P, N, U, O, w;
10323
+ var P, N, U, D, O;
10320
10324
  if (s.isRetrieving.value)
10321
10325
  return !0;
10322
- let M = !1;
10326
+ let A = !1;
10323
10327
  if (e.kgDisabled !== void 0)
10324
- M = e.kgDisabled;
10328
+ A = e.kgDisabled;
10325
10329
  else
10326
10330
  switch (e.kgContext) {
10327
10331
  case KG_FORM_CONTEXT.SEARCH:
10328
- M = ((P = u.value) == null ? void 0 : P.ena_flg) === 0;
10332
+ A = ((P = u.value) == null ? void 0 : P.ena_flg) === 0;
10329
10333
  break;
10330
10334
  case KG_FORM_CONTEXT.SUBMIT:
10331
10335
  switch (!0) {
10332
10336
  case s.isCreating.value:
10333
- M = ((N = d.value) == null ? void 0 : N.crt_ena_flg) === 0;
10337
+ A = ((N = d.value) == null ? void 0 : N.crt_ena_flg) === 0;
10334
10338
  break;
10335
10339
  case s.isUpdating.value:
10336
- M = ((U = d.value) == null ? void 0 : U.upt_ena_flg) === 0;
10340
+ A = ((U = d.value) == null ? void 0 : U.upt_ena_flg) === 0;
10337
10341
  break;
10338
10342
  case s.isCopying.value:
10339
- M = ((O = d.value) == null ? void 0 : O.cpy_ena_flg) === 0;
10343
+ A = ((D = d.value) == null ? void 0 : D.cpy_ena_flg) === 0;
10340
10344
  break;
10341
10345
  case s.isDeleting.value:
10342
- M = ((w = d.value) == null ? void 0 : w.del_ena_flg) === 0;
10346
+ A = ((O = d.value) == null ? void 0 : O.del_ena_flg) === 0;
10343
10347
  break;
10344
10348
  }
10345
10349
  break;
10346
10350
  }
10347
- return M;
10351
+ return A;
10348
10352
  }), p = computed(() => {
10349
- var P, N, U, O;
10350
- let M = " ";
10353
+ var P, N, U, D;
10354
+ let A = " ";
10351
10355
  if (e.kgPlaceholder)
10352
- M = e.kgPlaceholder;
10356
+ A = e.kgPlaceholder;
10353
10357
  else
10354
10358
  switch (e.kgContext) {
10355
10359
  case KG_FORM_CONTEXT.SEARCH:
10356
- M = s.t((N = (P = u.value) == null ? void 0 : P.placeholder) != null ? N : " ").value;
10360
+ A = s.t((N = (P = u.value) == null ? void 0 : P.placeholder) != null ? N : " ").value;
10357
10361
  break;
10358
10362
  case KG_FORM_CONTEXT.SUBMIT:
10359
- M = s.t((O = (U = d.value) == null ? void 0 : U.placeholder) != null ? O : " ").value;
10363
+ A = s.t((D = (U = d.value) == null ? void 0 : U.placeholder) != null ? D : " ").value;
10360
10364
  break;
10361
10365
  }
10362
- return M;
10366
+ return A;
10363
10367
  }), g = computed(() => {
10364
- var P, N, U, O, w, V, G, F, L, B;
10365
- let M = 6;
10368
+ var P, N, U, D, O, R, G, F, K, x;
10369
+ let A = 6;
10366
10370
  if (e.kgSpan !== void 0)
10367
- M = e.kgSpan;
10371
+ A = e.kgSpan;
10368
10372
  else
10369
10373
  switch (e.kgContext) {
10370
10374
  case KG_FORM_CONTEXT.SEARCH:
10371
- M = (N = (P = u.value) == null ? void 0 : P.width) != null ? N : 6;
10375
+ A = (N = (P = u.value) == null ? void 0 : P.width) != null ? N : 6;
10372
10376
  break;
10373
10377
  case KG_FORM_CONTEXT.SUBMIT:
10374
10378
  switch (!0) {
10375
10379
  case s.isCreating.value:
10376
- M = (O = (U = d.value) == null ? void 0 : U.crt_width) != null ? O : 6;
10380
+ A = (D = (U = d.value) == null ? void 0 : U.crt_width) != null ? D : 6;
10377
10381
  break;
10378
10382
  case s.isUpdating.value:
10379
- M = (V = (w = d.value) == null ? void 0 : w.upt_width) != null ? V : 6;
10383
+ A = (R = (O = d.value) == null ? void 0 : O.upt_width) != null ? R : 6;
10380
10384
  break;
10381
10385
  case s.isCopying.value:
10382
- M = (F = (G = d.value) == null ? void 0 : G.cpy_width) != null ? F : 6;
10386
+ A = (F = (G = d.value) == null ? void 0 : G.cpy_width) != null ? F : 6;
10383
10387
  break;
10384
10388
  case s.isDeleting.value:
10385
- M = (B = (L = d.value) == null ? void 0 : L.del_width) != null ? B : 6;
10389
+ A = (x = (K = d.value) == null ? void 0 : K.del_width) != null ? x : 6;
10386
10390
  break;
10387
10391
  }
10388
10392
  }
10389
- return Math.min(24, Math.max(1, M));
10393
+ return Math.min(24, Math.max(1, A));
10390
10394
  }), b = computed(() => {
10391
- var U, O;
10392
- const M = get(A.value, "$el.parentElement");
10393
- if (M && !((U = M.classList) != null && U.contains("ant-row")))
10395
+ var U, D;
10396
+ const A = get(M.value, "$el.parentElement");
10397
+ if (A && !((U = A.classList) != null && U.contains("ant-row")))
10394
10398
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
10395
10399
  let P = {};
10396
- const N = Math.abs(Number.parseInt((O = get(A.value, "$el.parentElement.style.marginLeft")) != null ? O : "0px"));
10400
+ const N = Math.abs(Number.parseInt((D = get(M.value, "$el.parentElement.style.marginLeft")) != null ? D : "0px"));
10397
10401
  return Number.isNaN(N) || (P = {
10398
10402
  paddingLeft: `${N}px !important`,
10399
10403
  paddingRight: `${N}px !important`
10400
10404
  }), P;
10401
10405
  }), E = computed(() => {
10402
- var P, N, U, O;
10403
- let M = "kg-form-item";
10404
- switch (i.value && (M += " kg-form-item-lookup"), e.kgContext) {
10406
+ var P, N, U, D;
10407
+ let A = "kg-form-item";
10408
+ switch (i.value && (A += " kg-form-item-lookup"), e.kgContext) {
10405
10409
  case KG_FORM_CONTEXT.SEARCH:
10406
10410
  switch (!0) {
10407
10411
  case ((P = u.value) == null ? void 0 : P.vis_flg) === 0:
10408
- M += " kg-form-item--invisible";
10412
+ A += " kg-form-item--invisible";
10409
10413
  break;
10410
10414
  }
10411
10415
  break;
@@ -10413,16 +10417,16 @@ const KgFormItemRadioGroup = defineComponent({
10413
10417
  switch (!0) {
10414
10418
  case (s.isCreating.value && ((N = d.value) == null ? void 0 : N.crt_vis_flg) === 0):
10415
10419
  case (s.isUpdating.value && ((U = d.value) == null ? void 0 : U.upt_vis_flg) === 0):
10416
- case (s.isCopying.value && ((O = d.value) == null ? void 0 : O.cpy_vis_flg) === 0):
10417
- M += " kg-form-item--invisible";
10420
+ case (s.isCopying.value && ((D = d.value) == null ? void 0 : D.cpy_vis_flg) === 0):
10421
+ A += " kg-form-item--invisible";
10418
10422
  break;
10419
10423
  }
10420
10424
  break;
10421
10425
  }
10422
- return M;
10426
+ return A;
10423
10427
  }), C = computed(() => {
10424
10428
  var P;
10425
- const M = {
10429
+ const A = {
10426
10430
  ...e,
10427
10431
  value: (P = a.value) == null ? void 0 : P[e.kgVarName],
10428
10432
  "onUpdate:value": (N) => {
@@ -10438,34 +10442,34 @@ const KgFormItemRadioGroup = defineComponent({
10438
10442
  case KG_FORM_ITEM_TYPE.SELECT:
10439
10443
  break;
10440
10444
  case KG_FORM_ITEM_TYPE.SELECT_MULTIPLE:
10441
- M.kgMode = "multiple";
10445
+ A.kgMode = "multiple";
10442
10446
  break;
10443
10447
  case KG_FORM_ITEM_TYPE.SWITCH:
10444
10448
  break;
10445
10449
  case KG_FORM_ITEM_TYPE.DATE_DATE:
10446
- M.kgShowTime = !1;
10450
+ A.kgShowTime = !1;
10447
10451
  break;
10448
10452
  case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
10449
- M.kgShowTime = !1;
10453
+ A.kgShowTime = !1;
10450
10454
  break;
10451
10455
  case KG_FORM_ITEM_TYPE.DATE_TIME:
10452
- M.kgPicker = "time";
10456
+ A.kgPicker = "time";
10453
10457
  break;
10454
10458
  case KG_FORM_ITEM_TYPE.DATE_TIME_RANGE:
10455
- M.kgPicker = "time";
10459
+ A.kgPicker = "time";
10456
10460
  break;
10457
10461
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
10458
- M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
10462
+ A.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
10459
10463
  break;
10460
10464
  case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
10461
- M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
10465
+ A.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
10462
10466
  break;
10463
10467
  }
10464
- return M;
10465
- }), T = computed(() => encodeURIComponent(`${e.kgContext}~${s.formID}~${e.kgVarName}`)), A = ref(null);
10468
+ return A;
10469
+ }), T = computed(() => encodeURIComponent(`${e.kgContext}~${s.formID}~${e.kgVarName}`)), M = ref(null);
10466
10470
  function k() {
10467
10471
  if (t.control) {
10468
- const M = {
10472
+ const A = {
10469
10473
  frm_id: s.formID,
10470
10474
  varName: e.kgVarName,
10471
10475
  props: C,
@@ -10474,7 +10478,7 @@ const KgFormItemRadioGroup = defineComponent({
10474
10478
  varProfileDetail: u,
10475
10479
  varSubmitField: d
10476
10480
  };
10477
- return t.control(M);
10481
+ return t.control(A);
10478
10482
  }
10479
10483
  switch (v.value) {
10480
10484
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
@@ -10509,9 +10513,9 @@ const KgFormItemRadioGroup = defineComponent({
10509
10513
  return createVNode(KgFormItemInput, C.value, null);
10510
10514
  }
10511
10515
  }
10512
- function R() {
10513
- var M;
10514
- return ((M = s.currentVarProfileMaster.value) == null ? void 0 : M.dyn_flg) !== 1 ? null : createVNode(Form.ItemRest, null, {
10516
+ function V() {
10517
+ var A;
10518
+ return ((A = s.currentVarProfileMaster.value) == null ? void 0 : A.dyn_flg) !== 1 ? null : createVNode(Form.ItemRest, null, {
10515
10519
  default: () => {
10516
10520
  var P;
10517
10521
  return [createVNode(Select, {
@@ -10536,14 +10540,14 @@ const KgFormItemRadioGroup = defineComponent({
10536
10540
  }
10537
10541
  });
10538
10542
  }
10539
- function D() {
10543
+ function w() {
10540
10544
  return e.kgShowLabel ? createVNode("span", {
10541
10545
  title: s.t(e.kgVarName).value
10542
10546
  }, [s.t(e.kgVarName).value]) : null;
10543
10547
  }
10544
10548
  function I() {
10545
- var M;
10546
- return !i.value || !((M = i.value) != null && M.lkp_id) ? null : createVNode(Form.ItemRest, null, {
10549
+ var A;
10550
+ return !i.value || !((A = i.value) != null && A.lkp_id) ? null : createVNode(Form.ItemRest, null, {
10547
10551
  default: () => [createVNode(KgFormItemAddonLookup, {
10548
10552
  kgDisabled: y.value,
10549
10553
  kgLookupID: i.value.lkp_id
@@ -10551,15 +10555,15 @@ const KgFormItemRadioGroup = defineComponent({
10551
10555
  });
10552
10556
  }
10553
10557
  return () => {
10554
- var M, P;
10558
+ var A, P;
10555
10559
  return s.isRetrieving.value ? null : createVNode(Col, {
10556
- ref: A,
10560
+ ref: M,
10557
10561
  span: g.value,
10558
10562
  class: E.value,
10559
10563
  style: b.value,
10560
10564
  "kg-frm_id": s.formID,
10561
10565
  "kg-var_nam": e.kgVarName,
10562
- "kg-lkp_id": (M = i.value) == null ? void 0 : M.lkp_id,
10566
+ "kg-lkp_id": (A = i.value) == null ? void 0 : A.lkp_id,
10563
10567
  "kg-ret_fld": (P = i.value) == null ? void 0 : P.ret_fld
10564
10568
  }, {
10565
10569
  default: () => [createVNode(Form.Item, {
@@ -10568,8 +10572,8 @@ const KgFormItemRadioGroup = defineComponent({
10568
10572
  validateFirst: !0,
10569
10573
  htmlFor: T.value
10570
10574
  }, {
10571
- default: () => createVNode(Fragment, null, [R(), k(), I()]),
10572
- label: () => D()
10575
+ default: () => createVNode(Fragment, null, [V(), k(), I()]),
10576
+ label: () => w()
10573
10577
  })]
10574
10578
  });
10575
10579
  };
@@ -10607,8 +10611,9 @@ let store$6 = null;
10607
10611
  const useKgFormStore = () => (store$6 || (store$6 = defineStore("KgForm", {
10608
10612
  state: () => ({
10609
10613
  selectChangeListenersMap: /* @__PURE__ */ new Map(),
10610
- lookupOkListenersMap: /* @__PURE__ */ new Map(),
10611
- lookupBeforeOkListenersMap: /* @__PURE__ */ new Map()
10614
+ lookupBeforeOpenListenersMap: /* @__PURE__ */ new Map(),
10615
+ lookupBeforeOkListenersMap: /* @__PURE__ */ new Map(),
10616
+ lookupOkListenersMap: /* @__PURE__ */ new Map()
10612
10617
  }),
10613
10618
  getters: {},
10614
10619
  actions: {
@@ -10620,6 +10625,12 @@ const useKgFormStore = () => (store$6 || (store$6 = defineStore("KgForm", {
10620
10625
  this.selectChangeListenersMap.set(e, [...a != null ? a : [], r]);
10621
10626
  }
10622
10627
  break;
10628
+ case "lookupBeforeOpen":
10629
+ {
10630
+ const a = this.lookupBeforeOpenListenersMap.get(e);
10631
+ this.lookupBeforeOpenListenersMap.set(e, [...a != null ? a : [], r]);
10632
+ }
10633
+ break;
10623
10634
  case "lookupBeforeOk":
10624
10635
  {
10625
10636
  const a = this.lookupBeforeOkListenersMap.get(e);
@@ -10643,6 +10654,13 @@ const useKgFormStore = () => (store$6 || (store$6 = defineStore("KgForm", {
10643
10654
  } else
10644
10655
  this.selectChangeListenersMap.set(e, []);
10645
10656
  break;
10657
+ case "lookupBeforeOpen":
10658
+ if (r) {
10659
+ const a = this.lookupBeforeOpenListenersMap.get(e);
10660
+ this.lookupBeforeOpenListenersMap.set(e, without$1(a, r));
10661
+ } else
10662
+ this.lookupBeforeOpenListenersMap.set(e, []);
10663
+ break;
10646
10664
  case "lookupBeforeOk":
10647
10665
  if (r) {
10648
10666
  const a = this.lookupBeforeOkListenersMap.get(e);
@@ -10665,6 +10683,9 @@ const useKgFormStore = () => (store$6 || (store$6 = defineStore("KgForm", {
10665
10683
  case "selectChange":
10666
10684
  a = this.selectChangeListenersMap.get(e);
10667
10685
  break;
10686
+ case "lookupBeforeOpen":
10687
+ a = this.lookupBeforeOpenListenersMap.get(e);
10688
+ break;
10668
10689
  case "lookupBeforeOk":
10669
10690
  a = this.lookupBeforeOkListenersMap.get(e);
10670
10691
  break;
@@ -10690,6 +10711,7 @@ function useKgForm(e) {
10690
10711
  formID: t.formID,
10691
10712
  store: r,
10692
10713
  onSelectChange: onEventFactory(t.formID, r, "selectChange"),
10714
+ onLookupBeforeOpen: onEventFactory(t.formID, r, "lookupBeforeOpen"),
10693
10715
  onLookupBeforeOk: onEventFactory(t.formID, r, "lookupBeforeOk"),
10694
10716
  onLookupOk: onEventFactory(t.formID, r, "lookupOk")
10695
10717
  };
@@ -10698,6 +10720,7 @@ KgForm.Item = KgFormItem;
10698
10720
  let store$5 = null;
10699
10721
  const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
10700
10722
  state: () => ({
10723
+ beforeOpenListenersMap: /* @__PURE__ */ new Map(),
10701
10724
  openListenersMap: /* @__PURE__ */ new Map(),
10702
10725
  beforeOkListenersMap: /* @__PURE__ */ new Map(),
10703
10726
  afterValidateListenersMap: /* @__PURE__ */ new Map(),
@@ -10744,10 +10767,16 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
10744
10767
  dispose(e) {
10745
10768
  if (!e)
10746
10769
  return KgLogger.error("formID \u4E3A\u7A7A."), null;
10747
- this.openListenersMap.delete(e), this.beforeOkListenersMap.delete(e), this.afterValidateListenersMap.delete(e), this.beforeRequestListenersMap.delete(e), this.okListenersMap.delete(e), this.errorListenersMap.delete(e), this.closeListenersMap.delete(e), this.isLoadingMap.delete(e), this.modelMap.delete(e), this.formRefMap.delete(e), this.rulesMap.delete(e);
10770
+ this.beforeOpenListenersMap.delete(e), this.openListenersMap.delete(e), this.beforeOkListenersMap.delete(e), this.afterValidateListenersMap.delete(e), this.beforeRequestListenersMap.delete(e), this.okListenersMap.delete(e), this.errorListenersMap.delete(e), this.closeListenersMap.delete(e), this.isLoadingMap.delete(e), this.modelMap.delete(e), this.formRefMap.delete(e), this.rulesMap.delete(e);
10748
10771
  },
10749
10772
  addEventListener(e, t, r) {
10750
10773
  switch (t) {
10774
+ case "beforeOpen":
10775
+ {
10776
+ const a = this.beforeOpenListenersMap.get(e);
10777
+ this.beforeOpenListenersMap.set(e, [...a != null ? a : [], r]);
10778
+ }
10779
+ break;
10751
10780
  case "open":
10752
10781
  {
10753
10782
  const a = this.openListenersMap.get(e);
@@ -10794,6 +10823,13 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
10794
10823
  },
10795
10824
  removeEventListener(e, t, r) {
10796
10825
  switch (t) {
10826
+ case "beforeOpen":
10827
+ if (r) {
10828
+ const a = this.beforeOpenListenersMap.get(e);
10829
+ this.beforeOpenListenersMap.set(e, without$1(a, r));
10830
+ } else
10831
+ this.beforeOpenListenersMap.set(e, []);
10832
+ break;
10797
10833
  case "open":
10798
10834
  if (r) {
10799
10835
  const a = this.openListenersMap.get(e);
@@ -10848,6 +10884,9 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
10848
10884
  emit(e, t, r) {
10849
10885
  let a, n = Promise.resolve(!1);
10850
10886
  switch (t) {
10887
+ case "beforeOpen":
10888
+ a = this.beforeOpenListenersMap.get(e);
10889
+ break;
10851
10890
  case "open":
10852
10891
  a = this.openListenersMap.get(e);
10853
10892
  break;
@@ -10937,6 +10976,7 @@ function useKgSubmit(e) {
10937
10976
  formRef: l,
10938
10977
  rules: o,
10939
10978
  displayType: n,
10979
+ onBeforeOpen: onEventFactory(t.formID, r, "beforeOpen"),
10940
10980
  onOpen: onEventFactory(t.formID, r, "open"),
10941
10981
  onBeforeOk: onEventFactory(t.formID, r, "beforeOk"),
10942
10982
  onAfterValidate: onEventFactory(t.formID, r, "afterValidate"),
@@ -10970,8 +11010,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10970
11010
  }) => {
10971
11011
  const u = s.store.getVarSubmitConfig(s.formID);
10972
11012
  return o = watch(c, (d) => {
10973
- var m, v, y, p, g, b, E, C, T, A, k, R;
10974
- d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (y = u == null ? void 0 : u.fullscreen_flg) != null ? y : 1, d.dft_fullscreen_flg = (p = u == null ? void 0 : u.dft_fullscreen_flg) != null ? p : 0, d.responsive_flg = (g = u == null ? void 0 : u.responsive_flg) != null ? g : 1, d.max_width = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (E = u == null ? void 0 : u.min_width) != null ? E : DEFAULT_MIN_WIDTH, d.dft_width = (C = u == null ? void 0 : u.dft_width) != null ? C : DEFAULT_WIDTH, d.layout = (T = u == null ? void 0 : u.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (A = u == null ? void 0 : u.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (k = u == null ? void 0 : u.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, d.display_type = (R = u == null ? void 0 : u.display_type) != null ? R : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
11013
+ var m, v, y, p, g, b, E, C, T, M, k, V;
11014
+ d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (y = u == null ? void 0 : u.fullscreen_flg) != null ? y : 1, d.dft_fullscreen_flg = (p = u == null ? void 0 : u.dft_fullscreen_flg) != null ? p : 0, d.responsive_flg = (g = u == null ? void 0 : u.responsive_flg) != null ? g : 1, d.max_width = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (E = u == null ? void 0 : u.min_width) != null ? E : DEFAULT_MIN_WIDTH, d.dft_width = (C = u == null ? void 0 : u.dft_width) != null ? C : 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 = (k = u == null ? void 0 : u.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, d.display_type = (V = u == null ? void 0 : u.display_type) != null ? V : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
10975
11015
  }, {
10976
11016
  immediate: !0
10977
11017
  }), KgUtil.hideLoading(), !1;
@@ -11074,7 +11114,7 @@ function _useFormModel$1() {
11074
11114
  }
11075
11115
  const d = r.selectedRow.value;
11076
11116
  u.forEach((m) => {
11077
- var y, p, g, b, E, C, T, A;
11117
+ var y, p, g, b, E, C, T, M;
11078
11118
  const v = (y = m.var_nam) != null ? y : "";
11079
11119
  switch (c.value[v] = void 0, !0) {
11080
11120
  case t.isCreating.value:
@@ -11087,7 +11127,7 @@ function _useFormModel$1() {
11087
11127
  c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (C = (E = m.cpy_dft_val) != null ? E : d == null ? void 0 : d[v]) != null ? C : void 0, "CP");
11088
11128
  break;
11089
11129
  case t.isDeleting.value:
11090
- c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (A = (T = m.del_dft_val) != null ? T : d == null ? void 0 : d[v]) != null ? A : void 0, "D");
11130
+ c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (M = (T = m.del_dft_val) != null ? T : d == null ? void 0 : d[v]) != null ? M : void 0, "D");
11091
11131
  break;
11092
11132
  }
11093
11133
  }), a.store.setModel(t.formID, c.value);
@@ -11236,66 +11276,66 @@ const getProps$p = () => ({
11236
11276
  inject(DI_KG_VAR__KG_PROPS, null);
11237
11277
  const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
11238
11278
  l.onSubmitSave(async () => (await se(), !1)), l.onSubmitCancel(async () => (await ie(), !1)), _useFormModel$1();
11239
- const u = computed(() => s.isDeleting.value && T.value.length === 0 && A.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), m = computed(() => s.store.getVarSubmitConfig(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), p = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), T = computed(() => {
11240
- var $, x, W;
11279
+ const u = computed(() => s.isDeleting.value && T.value.length === 0 && M.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), m = computed(() => s.store.getVarSubmitConfig(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), p = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), T = computed(() => {
11280
+ var $, B, Y;
11241
11281
  switch (!0) {
11242
11282
  case s.isCreating.value:
11243
11283
  return ($ = v.value) != null ? $ : [];
11244
11284
  case s.isUpdating.value:
11245
- return (x = p.value) != null ? x : [];
11285
+ return (B = p.value) != null ? B : [];
11246
11286
  case s.isCopying.value:
11247
- return (W = b.value) != null ? W : [];
11287
+ return (Y = b.value) != null ? Y : [];
11248
11288
  case s.isDeleting.value:
11249
11289
  return [];
11250
11290
  }
11251
11291
  return [];
11252
- }), A = computed(() => {
11253
- var $, x, W, J;
11292
+ }), M = computed(() => {
11293
+ var $, B, Y, J;
11254
11294
  switch (!0) {
11255
11295
  case s.isCreating.value:
11256
11296
  return ($ = y.value) != null ? $ : [];
11257
11297
  case s.isUpdating.value:
11258
- return (x = g.value) != null ? x : [];
11298
+ return (B = g.value) != null ? B : [];
11259
11299
  case s.isCopying.value:
11260
- return (W = E.value) != null ? W : [];
11300
+ return (Y = E.value) != null ? Y : [];
11261
11301
  case s.isDeleting.value:
11262
11302
  return (J = C.value) != null ? J : [];
11263
11303
  }
11264
11304
  return [];
11265
- }), k = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), R = computed(() => k.value || d.value), D = computed(() => d.value), I = ref({
11305
+ }), k = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), V = computed(() => k.value || d.value), w = computed(() => d.value), I = ref({
11266
11306
  kgWidth: 0
11267
- }), M = computed(() => {
11307
+ }), A = computed(() => {
11268
11308
  var $;
11269
11309
  return !!(u.value || F.isFullscreen || (($ = m.value) == null ? void 0 : $.resizable_flg) === 0);
11270
11310
  }), P = computed(() => {
11271
- var $, x;
11272
- return u.value ? 398 : (x = ($ = m.value) == null ? void 0 : $.min_width) != null ? x : DEFAULT_MIN_WIDTH;
11311
+ var $, B;
11312
+ return u.value ? 398 : (B = ($ = m.value) == null ? void 0 : $.min_width) != null ? B : DEFAULT_MIN_WIDTH;
11273
11313
  }), N = computed(() => {
11274
- var $, x;
11275
- return u.value ? 398 : (x = ($ = m.value) == null ? void 0 : $.max_width) != null ? x : DEFAULT_MAX_WIDTH;
11276
- }), U = computed(() => u.value ? 398 : I.value.kgWidth), O = ref(null);
11277
- _useResizeObserver$1(O);
11278
- const w = _useTitle(), V = computed(() => u.value ? 400 : I.value.kgWidth && I.value.kgWidth > 0 ? "auto" : 0), G = computed(() => V.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), F = reactive({
11314
+ var $, B;
11315
+ return u.value ? 398 : (B = ($ = m.value) == null ? void 0 : $.max_width) != null ? B : DEFAULT_MAX_WIDTH;
11316
+ }), U = computed(() => u.value ? 398 : I.value.kgWidth), D = ref(null);
11317
+ _useResizeObserver$1(D);
11318
+ const O = _useTitle(), R = computed(() => u.value ? 400 : I.value.kgWidth && I.value.kgWidth > 0 ? "auto" : 0), G = computed(() => R.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), F = reactive({
11279
11319
  isFullscreen: !1
11280
11320
  }), {
11281
- getClass: L
11321
+ getClass: K
11282
11322
  } = _useClass(e, F), {
11283
- getLayout: B
11323
+ getLayout: x
11284
11324
  } = _useLayout(), {
11285
- getDefaultWidth: Y
11286
- } = _useDefaultWidth(), Q = computed(() => {
11287
- var $, x, W;
11288
- switch (B.value) {
11325
+ getDefaultWidth: W
11326
+ } = _useDefaultWidth(), X = computed(() => {
11327
+ var $, B, Y;
11328
+ switch (x.value) {
11289
11329
  case "horizontal":
11290
11330
  switch (($ = m.value) == null ? void 0 : $.label_col_unit) {
11291
11331
  case KG_WIDTH_UNIT.SPAN:
11292
11332
  return {
11293
- span: (x = m.value) == null ? void 0 : x.label_col
11333
+ span: (B = m.value) == null ? void 0 : B.label_col
11294
11334
  };
11295
11335
  default:
11296
11336
  return {
11297
11337
  style: {
11298
- width: `${(W = m.value) == null ? void 0 : W.label_col}px`
11338
+ width: `${(Y = m.value) == null ? void 0 : Y.label_col}px`
11299
11339
  }
11300
11340
  };
11301
11341
  }
@@ -11303,13 +11343,13 @@ const getProps$p = () => ({
11303
11343
  return;
11304
11344
  }
11305
11345
  }), z = computed(() => {
11306
- var $, x;
11307
- switch (B.value) {
11346
+ var $, B;
11347
+ switch (x.value) {
11308
11348
  case "horizontal":
11309
11349
  switch (($ = m.value) == null ? void 0 : $.label_col_unit) {
11310
11350
  case KG_WIDTH_UNIT.SPAN:
11311
11351
  return {
11312
- span: 24 - ((x = m.value) == null ? void 0 : x.label_col)
11352
+ span: 24 - ((B = m.value) == null ? void 0 : B.label_col)
11313
11353
  };
11314
11354
  default:
11315
11355
  return;
@@ -11318,33 +11358,42 @@ const getProps$p = () => ({
11318
11358
  return;
11319
11359
  }
11320
11360
  });
11321
- watch(G, ($, x) => {
11322
- $ === !0 && Z(), x === !0 && $ === !1 && re();
11361
+ watch(G, ($, B) => {
11362
+ $ === !0 && ee(), B === !0 && $ === !1 && re();
11323
11363
  }, {
11324
11364
  immediate: !0
11325
- }), watch(Y, ($) => {
11365
+ }), watch(W, ($) => {
11326
11366
  $ && (I.value.kgWidth = $);
11327
11367
  }, {
11328
11368
  immediate: !0
11329
11369
  });
11330
- function Z() {
11331
- var x;
11332
- const $ = watch(i.model, (W) => {
11333
- W && Object.keys(W).length > 0 && (setTimeout(() => $()), i.store.emit(s.formID, "open", {
11334
- isCreating: s.isCreating.value,
11335
- isUpdating: s.isUpdating.value,
11336
- isCopying: s.isCopying.value,
11337
- isDeleting: s.isDeleting.value,
11338
- row: o.selectedRow.value,
11339
- model: i.model
11340
- }));
11341
- }, {
11342
- immediate: !0
11343
- });
11344
- ((x = m.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && !u.value && (F.isFullscreen = !0);
11370
+ async function ee() {
11371
+ if (!await i.store.emit(s.formID, "beforeOpen", {
11372
+ isCreating: s.isCreating.value,
11373
+ isUpdating: s.isUpdating.value,
11374
+ isCopying: s.isCopying.value,
11375
+ isDeleting: s.isDeleting.value,
11376
+ row: o.selectedRow.value
11377
+ }))
11378
+ return new Promise((B, Y) => {
11379
+ var Q;
11380
+ const J = watch(i.model, async (Z) => {
11381
+ Z && Object.keys(Z).length > 0 && (setTimeout(() => J()), await i.store.emit(s.formID, "open", {
11382
+ isCreating: s.isCreating.value,
11383
+ isUpdating: s.isUpdating.value,
11384
+ isCopying: s.isCopying.value,
11385
+ isDeleting: s.isDeleting.value,
11386
+ row: o.selectedRow.value,
11387
+ model: i.model
11388
+ }), B());
11389
+ }, {
11390
+ immediate: !0
11391
+ });
11392
+ ((Q = m.value) == null ? void 0 : Q.dft_fullscreen_flg) === 1 && !u.value && (F.isFullscreen = !0);
11393
+ });
11345
11394
  }
11346
11395
  async function re() {
11347
- I.value.kgWidth = Y.value, F.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
11396
+ I.value.kgWidth = W.value, F.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
11348
11397
  }
11349
11398
  function ie() {
11350
11399
  switch (!0) {
@@ -11363,7 +11412,7 @@ const getProps$p = () => ({
11363
11412
  }
11364
11413
  }
11365
11414
  async function se() {
11366
- var $, x;
11415
+ var $, B;
11367
11416
  try {
11368
11417
  if (await i.store.emit(s.formID, "beforeOk", {
11369
11418
  isCreating: s.isCreating.value,
@@ -11377,10 +11426,10 @@ const getProps$p = () => ({
11377
11426
  return;
11378
11427
  try {
11379
11428
  await (($ = i.formRef.value) == null ? void 0 : $.validate());
11380
- } catch (X) {
11381
- KgUtil.throwIfNotFormError(X);
11429
+ } catch (Q) {
11430
+ KgUtil.throwIfNotFormError(Q);
11382
11431
  }
11383
- if (await ((x = i.formRef.value) == null ? void 0 : x.validate()), await i.store.emit(s.formID, "afterValidate", {
11432
+ if (await ((B = i.formRef.value) == null ? void 0 : B.validate()), await i.store.emit(s.formID, "afterValidate", {
11384
11433
  isCreating: s.isCreating.value,
11385
11434
  isUpdating: s.isUpdating.value,
11386
11435
  isCopying: s.isCopying.value,
@@ -11404,13 +11453,13 @@ const getProps$p = () => ({
11404
11453
  await le();
11405
11454
  break;
11406
11455
  }
11407
- } catch (W) {
11408
- KgUtil.throwIfNotFormError(W);
11456
+ } catch (Y) {
11457
+ KgUtil.throwIfNotFormError(Y);
11409
11458
  }
11410
11459
  }
11411
11460
  async function ge() {
11412
- var x, W, J, X, ee, ae;
11413
- const $ = (x = s.varButtonCreate.value) == null ? void 0 : x.cmd;
11461
+ var B, Y, J, Q, Z, ae;
11462
+ const $ = (B = s.varButtonCreate.value) == null ? void 0 : B.cmd;
11414
11463
  if (!$) {
11415
11464
  KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
11416
11465
  VarButton: s.varButtonCreate.value
@@ -11419,7 +11468,7 @@ const getProps$p = () => ({
11419
11468
  }
11420
11469
  s.store.setIsCreatingRequesting(s.formID, !0);
11421
11470
  try {
11422
- let te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (W = s.varButtonCreate.value) == null ? void 0 : W.cmd_prm) != null ? J : ""), s.formID, r)), oe = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
11471
+ let te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (Y = s.varButtonCreate.value) == null ? void 0 : Y.cmd_prm) != null ? J : ""), s.formID, r)), oe = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
11423
11472
  if (await i.store.emit(s.formID, "beforeRequest", {
11424
11473
  isCreating: s.isCreating.value,
11425
11474
  isUpdating: s.isUpdating.value,
@@ -11433,11 +11482,11 @@ const getProps$p = () => ({
11433
11482
  }))
11434
11483
  return;
11435
11484
  await httpClient().request({
11436
- method: (ee = (X = s.varButtonCreate.value) == null ? void 0 : X.cmd_method) != null ? ee : "POST",
11485
+ method: (Z = (Q = s.varButtonCreate.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
11437
11486
  url: $,
11438
11487
  params: te.value,
11439
11488
  data: oe.value
11440
- }), ((ae = s.varButtonCreate.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(w.title.value + n.t("kg.succeed")), await i.store.emit(s.formID, "ok", {
11489
+ }), ((ae = s.varButtonCreate.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(O.title.value + n.t("kg.succeed")), await i.store.emit(s.formID, "ok", {
11441
11490
  isCreating: s.isCreating.value,
11442
11491
  isUpdating: s.isUpdating.value,
11443
11492
  isCopying: s.isCopying.value,
@@ -11452,8 +11501,8 @@ const getProps$p = () => ({
11452
11501
  }
11453
11502
  }
11454
11503
  async function ce() {
11455
- var x, W, J, X, ee, ae;
11456
- const $ = (x = s.varButtonUpdate.value) == null ? void 0 : x.cmd;
11504
+ var B, Y, J, Q, Z, ae;
11505
+ const $ = (B = s.varButtonUpdate.value) == null ? void 0 : B.cmd;
11457
11506
  if (!$) {
11458
11507
  KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
11459
11508
  VarButton: s.varButtonUpdate.value
@@ -11462,7 +11511,7 @@ const getProps$p = () => ({
11462
11511
  }
11463
11512
  try {
11464
11513
  s.store.setIsUpdatingRequesting(s.formID, !0);
11465
- let te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (W = s.varButtonUpdate.value) == null ? void 0 : W.cmd_prm) != null ? J : ""), s.formID, r)), oe = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
11514
+ let te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (Y = s.varButtonUpdate.value) == null ? void 0 : Y.cmd_prm) != null ? J : ""), s.formID, r)), oe = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
11466
11515
  if (await i.store.emit(s.formID, "beforeRequest", {
11467
11516
  isCreating: s.isCreating.value,
11468
11517
  isUpdating: s.isUpdating.value,
@@ -11476,7 +11525,7 @@ const getProps$p = () => ({
11476
11525
  }))
11477
11526
  return;
11478
11527
  await httpClient().request({
11479
- method: (ee = (X = s.varButtonUpdate.value) == null ? void 0 : X.cmd_method) != null ? ee : "POST",
11528
+ method: (Z = (Q = s.varButtonUpdate.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
11480
11529
  url: $,
11481
11530
  params: te.value,
11482
11531
  data: oe.value
@@ -11495,8 +11544,8 @@ const getProps$p = () => ({
11495
11544
  }
11496
11545
  }
11497
11546
  async function ne() {
11498
- var x, W, J, X, ee, ae, te, oe;
11499
- const $ = (x = s.varButtonCopy.value) == null ? void 0 : x.cmd;
11547
+ var B, Y, J, Q, Z, ae, te, oe;
11548
+ const $ = (B = s.varButtonCopy.value) == null ? void 0 : B.cmd;
11500
11549
  if (!$) {
11501
11550
  KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
11502
11551
  VarButton: s.varButtonCopy.value
@@ -11505,11 +11554,11 @@ const getProps$p = () => ({
11505
11554
  }
11506
11555
  try {
11507
11556
  s.store.setIsCopyingRequesting(s.formID, !0);
11508
- let ue = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (W = s.varButtonCopy.value) == null ? void 0 : W.cmd_prm) != null ? J : ""), s.formID, r)), pe = ref(KgUtil.parseParams({
11509
- ...(X = o.selectedFirstRow.value) != null ? X : {},
11557
+ let ue = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (Y = s.varButtonCopy.value) == null ? void 0 : Y.cmd_prm) != null ? J : ""), s.formID, r)), pe = ref(KgUtil.parseParams({
11558
+ ...(Q = o.selectedFirstRow.value) != null ? Q : {},
11510
11559
  ...toRaw(i.model.value)
11511
11560
  }, s.formID, r));
11512
- if (((ee = m.value) == null ? void 0 : ee.cpy_clear_id_flg) !== 0 && delete pe.value.id, await i.store.emit(s.formID, "beforeRequest", {
11561
+ if (((Z = m.value) == null ? void 0 : Z.cpy_clear_id_flg) !== 0 && delete pe.value.id, await i.store.emit(s.formID, "beforeRequest", {
11513
11562
  isCreating: s.isCreating.value,
11514
11563
  isUpdating: s.isUpdating.value,
11515
11564
  isCopying: s.isCopying.value,
@@ -11541,8 +11590,8 @@ const getProps$p = () => ({
11541
11590
  }
11542
11591
  }
11543
11592
  async function le() {
11544
- var x, W, J, X, ee, ae, te, oe, ue, pe;
11545
- const $ = (x = s.varButtonDelete.value) == null ? void 0 : x.cmd;
11593
+ var B, Y, J, Q, Z, ae, te, oe, ue, pe;
11594
+ const $ = (B = s.varButtonDelete.value) == null ? void 0 : B.cmd;
11546
11595
  if (!$) {
11547
11596
  KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
11548
11597
  VarButton: s.varButtonDelete.value
@@ -11551,8 +11600,8 @@ const getProps$p = () => ({
11551
11600
  }
11552
11601
  try {
11553
11602
  s.store.setIsDeletingRequesting(s.formID, !0);
11554
- let me = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (W = s.varButtonDelete.value) == null ? void 0 : W.cmd_prm) != null ? J : ""), s.formID, r)), _e = ref((X = o.selectedRows.value) != null ? X : []);
11555
- if (((ee = s.varButtonDelete.value) == null ? void 0 : ee.del_param_clm) !== "__kg__new_delete_param" && (me = ref({
11603
+ let me = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (Y = s.varButtonDelete.value) == null ? void 0 : Y.cmd_prm) != null ? J : ""), s.formID, r)), _e = ref((Q = o.selectedRows.value) != null ? Q : []);
11604
+ if (((Z = s.varButtonDelete.value) == null ? void 0 : Z.del_param_clm) !== "__kg__new_delete_param" && (me = ref({
11556
11605
  ids: (te = (ae = o.selectedRows.value) == null ? void 0 : ae.map((ye) => {
11557
11606
  var he, ve, be;
11558
11607
  return (be = ye[(ve = (he = s.varButtonDelete.value) == null ? void 0 : he.del_param_clm) != null ? ve : "id"]) != null ? be : "";
@@ -11594,25 +11643,25 @@ const getProps$p = () => ({
11594
11643
  }
11595
11644
  }
11596
11645
  function de($) {
11597
- var W, J;
11598
- const x = (J = (W = a == null ? void 0 : a.KgSubmit) == null ? void 0 : W["KgForm.Item"]) == null ? void 0 : J[$.var_nam];
11599
- return isFunction$2(x) ? createVNode(KgForm.Item, {
11646
+ var Y, J;
11647
+ const B = (J = (Y = a == null ? void 0 : a.KgSubmit) == null ? void 0 : Y["KgForm.Item"]) == null ? void 0 : J[$.var_nam];
11648
+ return isFunction$2(B) ? createVNode(KgForm.Item, {
11600
11649
  kgVarName: $.var_nam,
11601
11650
  kgContext: KG_FORM_CONTEXT.SUBMIT,
11602
11651
  kgRules: i.rules.value[$.var_nam],
11603
11652
  onKgSubmit: se
11604
11653
  }, {
11605
11654
  control: ({
11606
- frm_id: X,
11607
- varName: ee,
11655
+ frm_id: Q,
11656
+ varName: Z,
11608
11657
  props: ae,
11609
11658
  model: te,
11610
11659
  varVariableConfig: oe,
11611
11660
  varProfileDetail: ue,
11612
11661
  varSubmitField: pe
11613
- }) => x({
11614
- frm_id: X,
11615
- varName: ee,
11662
+ }) => B({
11663
+ frm_id: Q,
11664
+ varName: Z,
11616
11665
  props: ae,
11617
11666
  model: te,
11618
11667
  varVariableConfig: oe,
@@ -11627,14 +11676,14 @@ const getProps$p = () => ({
11627
11676
  }, null);
11628
11677
  }
11629
11678
  function fe() {
11630
- let $, x;
11679
+ let $, B;
11631
11680
  return createVNode(KgResizable, {
11632
11681
  kgType: i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
11633
11682
  kgMinWidth: P.value,
11634
11683
  kgMaxWidth: N.value,
11635
11684
  kgWidth: U.value,
11636
- kgDisabled: M.value,
11637
- "onUpdate:kgWidth": (W) => I.value.kgWidth = W
11685
+ kgDisabled: A.value,
11686
+ "onUpdate:kgWidth": (Y) => I.value.kgWidth = Y
11638
11687
  }, {
11639
11688
  default: () => [createVNode(Spin, {
11640
11689
  spinning: d.value
@@ -11642,20 +11691,20 @@ const getProps$p = () => ({
11642
11691
  default: () => [createVNode(KgForm, {
11643
11692
  ref: i.formRef,
11644
11693
  model: i.model.value,
11645
- layout: B.value,
11646
- labelCol: Q.value,
11694
+ layout: x.value,
11695
+ labelCol: X.value,
11647
11696
  wrapperCol: z.value
11648
11697
  }, {
11649
11698
  default: () => [createVNode("div", {
11650
- ref: O
11699
+ ref: D
11651
11700
  }, [T.value.length > 0 && createVNode(Row, {
11652
11701
  gutter: 12
11653
11702
  }, _isSlot$8($ = T.value.map(de)) ? $ : {
11654
11703
  default: () => [$]
11655
- }), T.value.length > 0 && A.value.length > 0 && createVNode(Divider, null, null), A.value.length > 0 && createVNode(Row, {
11704
+ }), T.value.length > 0 && M.value.length > 0 && createVNode(Divider, null, null), M.value.length > 0 && createVNode(Row, {
11656
11705
  gutter: 12
11657
- }, _isSlot$8(x = A.value.map(de)) ? x : {
11658
- default: () => [x]
11706
+ }, _isSlot$8(B = M.value.map(de)) ? B : {
11707
+ default: () => [B]
11659
11708
  }), u.value && createVNode("div", {
11660
11709
  style: "text-align: center; padding: 6px 0 12px;"
11661
11710
  }, [n.t("kg.confirmDelete")])])]
@@ -11663,29 +11712,29 @@ const getProps$p = () => ({
11663
11712
  })]
11664
11713
  });
11665
11714
  }
11666
- function K() {
11667
- let $, x;
11715
+ function L() {
11716
+ let $, B;
11668
11717
  return createVNode("div", null, [createVNode(Button, {
11669
11718
  type: "primary",
11670
- ghost: !R.value,
11671
- disabled: R.value,
11719
+ ghost: !V.value,
11720
+ disabled: V.value,
11672
11721
  onClick: ie
11673
11722
  }, _isSlot$8($ = n.t("kg.cancel")) ? $ : {
11674
11723
  default: () => [$]
11675
11724
  }), createVNode(Button, {
11676
11725
  type: "primary",
11677
- disabled: D.value,
11726
+ disabled: w.value,
11678
11727
  loading: k.value,
11679
11728
  danger: !!s.isDeleting.value,
11680
11729
  onClick: se
11681
- }, _isSlot$8(x = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? x : {
11682
- default: () => [x]
11730
+ }, _isSlot$8(B = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? B : {
11731
+ default: () => [B]
11683
11732
  })]);
11684
11733
  }
11685
11734
  function H() {
11686
11735
  return createVNode("div", {
11687
- title: w.title.value
11688
- }, [w.title.value]);
11736
+ title: O.title.value
11737
+ }, [O.title.value]);
11689
11738
  }
11690
11739
  function q() {
11691
11740
  return createVNode(KgSubmitHeader, {
@@ -11703,14 +11752,14 @@ const getProps$p = () => ({
11703
11752
  maskClosable: !1,
11704
11753
  keyboard: !1,
11705
11754
  destroyOnClose: !0,
11706
- width: V.value,
11707
- class: L.value,
11755
+ width: R.value,
11756
+ class: K.value,
11708
11757
  "kg-frm_id": s.formID
11709
11758
  }, {
11710
11759
  title: H,
11711
11760
  extra: q,
11712
11761
  default: fe,
11713
- footer: K
11762
+ footer: L
11714
11763
  });
11715
11764
  }
11716
11765
  }), KgYesOrNo$1 = "", getProps$o = () => ({
@@ -12029,31 +12078,31 @@ const getProps$n = () => ({
12029
12078
  var T;
12030
12079
  try {
12031
12080
  await ((T = y.value) == null ? void 0 : T.validate());
12032
- } catch (A) {
12033
- KgUtil.throwIfNotFormError(A);
12081
+ } catch (M) {
12082
+ KgUtil.throwIfNotFormError(M);
12034
12083
  }
12035
12084
  return !1;
12036
12085
  });
12037
12086
  const i = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
12038
- var T, A, k, R, D, I;
12039
- return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((k = c.value) == null ? void 0 : k.crt_flg) === 1 || !!n.isUpdating.value && ((R = c.value) == null ? void 0 : R.upt_flg) === 1 || !!n.isCopying.value && ((D = c.value) == null ? void 0 : D.cpy_flg) === 1 || !!n.isDeleting.value && ((I = c.value) == null ? void 0 : I.del_flg) === 1);
12087
+ var T, M, k, V, w, I;
12088
+ return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[o.id.value]) === ((M = o.selectedRow.value) == null ? void 0 : M[o.id.value]) && (!!n.isCreating.value && ((k = c.value) == null ? void 0 : k.crt_flg) === 1 || !!n.isUpdating.value && ((V = c.value) == null ? void 0 : V.upt_flg) === 1 || !!n.isCopying.value && ((w = c.value) == null ? void 0 : w.cpy_flg) === 1 || !!n.isDeleting.value && ((I = c.value) == null ? void 0 : I.del_flg) === 1);
12040
12089
  }), d = computed(() => {
12041
- var T, A;
12042
- return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.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);
12090
+ var T, M;
12091
+ return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[o.id.value]) === ((M = o.selectedRow.value) == null ? void 0 : M[o.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);
12043
12092
  }), m = computed(() => {
12044
- var A, k;
12093
+ var M, k;
12045
12094
  let T = "kg-table-td";
12046
- return ((A = i.value) == null ? void 0 : A.align) === "center" ? T += " kg-table-td--center" : ((k = i.value) == null ? void 0 : k.align) === "right" && (T += " kg-table-td--right"), u.value && (T += " kg-table-td--submitting"), T;
12095
+ return ((M = i.value) == null ? void 0 : M.align) === "center" ? T += " kg-table-td--center" : ((k = i.value) == null ? void 0 : k.align) === "right" && (T += " kg-table-td--right"), u.value && (T += " kg-table-td--submitting"), T;
12047
12096
  }), v = computed(() => {
12048
- var A, k, R, D, I;
12097
+ var M, k, V, w, I;
12049
12098
  if (e.kgValue === KG_TABLE_TEMP_ID)
12050
12099
  return "";
12051
12100
  let T = e.kgValue;
12052
- switch ((A = i.value) == null ? void 0 : A.display_type) {
12101
+ switch ((M = i.value) == null ? void 0 : M.display_type) {
12053
12102
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
12054
12103
  {
12055
- const M = KgUtil.tryParseJSON((k = i.value) == null ? void 0 : k.display_type_properties);
12056
- M.dscFieldName ? T = ((R = e.kgRow) == null ? void 0 : R[M.dscFieldName]) || e.kgValue : T = ((D = e.kgRow) == null ? void 0 : D[`${e.kgVarName}_dsc`]) || ((I = e.kgRow) == null ? void 0 : I[`${e.kgVarName}Dsc`]) || e.kgValue;
12104
+ const A = KgUtil.tryParseJSON((k = i.value) == null ? void 0 : k.display_type_properties);
12105
+ A.dscFieldName ? T = ((V = e.kgRow) == null ? void 0 : V[A.dscFieldName]) || e.kgValue : T = ((w = e.kgRow) == null ? void 0 : w[`${e.kgVarName}_dsc`]) || ((I = e.kgRow) == null ? void 0 : I[`${e.kgVarName}Dsc`]) || e.kgValue;
12057
12106
  }
12058
12107
  break;
12059
12108
  }
@@ -12061,18 +12110,18 @@ const getProps$n = () => ({
12061
12110
  `)), T;
12062
12111
  }), y = ref(null);
12063
12112
  function p(T) {
12064
- var A, k, R;
12113
+ var M, k, V;
12065
12114
  if (T.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
12066
- switch ((A = i.value) == null ? void 0 : A.display_type) {
12115
+ switch ((M = i.value) == null ? void 0 : M.display_type) {
12067
12116
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
12068
12117
  T.stopPropagation(), T.preventDefault(), r("kgUpdateLinkClick");
12069
12118
  break;
12070
12119
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
12071
12120
  {
12072
12121
  T.stopPropagation(), T.preventDefault();
12073
- const D = KgUtil.tryParseJSON((k = i.value) == null ? void 0 : k.display_type_properties);
12074
- (R = a.router.value) == null || R.push({
12075
- path: D.path,
12122
+ const w = KgUtil.tryParseJSON((k = i.value) == null ? void 0 : k.display_type_properties);
12123
+ (V = a.router.value) == null || V.push({
12124
+ path: w.path,
12076
12125
  query: e.kgRow
12077
12126
  });
12078
12127
  }
@@ -12103,35 +12152,35 @@ const getProps$n = () => ({
12103
12152
  });
12104
12153
  }
12105
12154
  function E() {
12106
- var T, A, k, R, D, I, M, P, N, U;
12155
+ var T, M, k, V, w, I, A, P, N, U;
12107
12156
  if (u.value)
12108
12157
  return b();
12109
12158
  switch ((T = i.value) == null ? void 0 : T.display_type) {
12110
12159
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
12111
- const O = KgUtil.tryParseJSON((A = i.value) == null ? void 0 : A.display_type_properties);
12160
+ const D = KgUtil.tryParseJSON((M = i.value) == null ? void 0 : M.display_type_properties);
12112
12161
  return createVNode(KgYesOrNo, {
12113
- kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((k = O.yValue) != null ? k : 1),
12114
- kgNilAsFalse: O.nilAsFalse
12162
+ kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((k = D.yValue) != null ? k : 1),
12163
+ kgNilAsFalse: D.nilAsFalse
12115
12164
  }, null);
12116
12165
  }
12117
12166
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
12118
- const O = KgUtil.tryParseJSON((R = i.value) == null ? void 0 : R.display_type_properties), w = isArrayLike(O) && O.find((V) => V.value === e.kgValue);
12119
- if (w) {
12120
- const V = n.t(w.varName).value;
12121
- return V ? createVNode(Tag, {
12122
- color: (D = w.color) != null ? D : "default"
12123
- }, _isSlot$7(V) ? V : {
12124
- default: () => [V]
12167
+ const D = KgUtil.tryParseJSON((V = i.value) == null ? void 0 : V.display_type_properties), O = isArrayLike(D) && D.find((R) => R.value === e.kgValue);
12168
+ if (O) {
12169
+ const R = n.t(O.varName).value;
12170
+ return R ? createVNode(Tag, {
12171
+ color: (w = O.color) != null ? w : "default"
12172
+ }, _isSlot$7(R) ? R : {
12173
+ default: () => [R]
12125
12174
  }) : C();
12126
12175
  } else
12127
12176
  return C();
12128
12177
  }
12129
12178
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
12130
- const O = KgUtil.tryParseJSON((I = i.value) == null ? void 0 : I.display_type_properties);
12131
- if (O.isTag && isArrayLike(O.tagColors)) {
12132
- const w = O.tagColors.find((V) => V.value === e.kgValue);
12179
+ const D = KgUtil.tryParseJSON((I = i.value) == null ? void 0 : I.display_type_properties);
12180
+ if (D.isTag && isArrayLike(D.tagColors)) {
12181
+ const O = D.tagColors.find((R) => R.value === e.kgValue);
12133
12182
  return v.value ? createVNode(Tag, {
12134
- color: (M = w == null ? void 0 : w.color) != null ? M : "default"
12183
+ color: (A = O == null ? void 0 : O.color) != null ? A : "default"
12135
12184
  }, {
12136
12185
  default: () => [v.value]
12137
12186
  }) : C();
@@ -12139,11 +12188,11 @@ const getProps$n = () => ({
12139
12188
  return C();
12140
12189
  }
12141
12190
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
12142
- const O = KgUtil.tryParseJSON((P = i.value) == null ? void 0 : P.display_type_properties);
12191
+ const D = KgUtil.tryParseJSON((P = i.value) == null ? void 0 : P.display_type_properties);
12143
12192
  return createVNode(KgProgressA, {
12144
- kgTextWidth: O.textWidth,
12145
- kgLeft: (N = e.kgRow) == null ? void 0 : N[O.leftColumn],
12146
- kgRight: (U = e.kgRow) == null ? void 0 : U[O.rightColumn]
12193
+ kgTextWidth: D.textWidth,
12194
+ kgLeft: (N = e.kgRow) == null ? void 0 : N[D.leftColumn],
12195
+ kgRight: (U = e.kgRow) == null ? void 0 : U[D.rightColumn]
12147
12196
  }, null);
12148
12197
  }
12149
12198
  case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
@@ -12157,10 +12206,10 @@ const getProps$n = () => ({
12157
12206
  }
12158
12207
  }
12159
12208
  function C(T = !1) {
12160
- let A = "";
12161
- return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (A += "kg-table-td-update-link"), createVNode("pre", {
12209
+ let M = "";
12210
+ return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (M += "kg-table-td-update-link"), createVNode("pre", {
12162
12211
  innerHTML: v.value,
12163
- class: A,
12212
+ class: M,
12164
12213
  onClick: p
12165
12214
  }, null);
12166
12215
  }
@@ -12257,8 +12306,8 @@ const getProps$m = () => ({
12257
12306
  }) => {
12258
12307
  const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
12259
12308
  return l = watch(i, (u) => {
12260
- var d, m, v, y, p, g, b, E, C, T, A;
12261
- u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (y = c == null ? void 0 : c.show_check_column_flg) != null ? y : 0, u.show_bottom_left_flg = (p = c == null ? void 0 : c.show_bottom_left_flg) != null ? p : 1, u.show_bottom_right_flg = (g = c == null ? void 0 : c.show_bottom_right_flg) != null ? g : 1, u.convert_sort_field_to_under_score_flg = (b = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? b : 0, u.pg_size_opts = (E = c == null ? void 0 : c.pg_size_opts) != null ? E : "[10, 20, 50, 100]", u.pg_size_opt = (C = c == null ? void 0 : c.pg_size_opt) != null ? C : 10, u.cmd_prm = (T = c == null ? void 0 : c.cmd_prm) != null ? T : void 0, u.button_display_type = (A = c == null ? void 0 : c.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
12309
+ var d, m, v, y, p, g, b, E, C, T, M;
12310
+ u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (y = c == null ? void 0 : c.show_check_column_flg) != null ? y : 0, u.show_bottom_left_flg = (p = c == null ? void 0 : c.show_bottom_left_flg) != null ? p : 1, u.show_bottom_right_flg = (g = c == null ? void 0 : c.show_bottom_right_flg) != null ? g : 1, u.convert_sort_field_to_under_score_flg = (b = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? b : 0, u.pg_size_opts = (E = c == null ? void 0 : c.pg_size_opts) != null ? E : "[10, 20, 50, 100]", u.pg_size_opt = (C = c == null ? void 0 : c.pg_size_opt) != null ? C : 10, u.cmd_prm = (T = c == null ? void 0 : c.cmd_prm) != null ? T : void 0, u.button_display_type = (M = c == null ? void 0 : c.button_display_type) != null ? M : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
12262
12311
  }, {
12263
12312
  immediate: !0
12264
12313
  }), KgUtil.hideLoading(), !1;
@@ -12553,8 +12602,8 @@ const getProps$h = () => ({
12553
12602
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
12554
12603
  }, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((T) => createVNode("li", {
12555
12604
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
12556
- onClick: (A) => {
12557
- A.preventDefault(), A.stopPropagation(), v(T);
12605
+ onClick: (M) => {
12606
+ M.preventDefault(), M.stopPropagation(), v(T);
12558
12607
  },
12559
12608
  style: {
12560
12609
  display: l(T, o.value) ? "flex" : "none"
@@ -12566,8 +12615,8 @@ const getProps$h = () => ({
12566
12615
  }, {
12567
12616
  default: () => [createVNode("pre", null, [n.t(T.var_nam).value])]
12568
12617
  }), createVNode(HolderOutlined$1, {
12569
- onClick: (A) => {
12570
- A.preventDefault(), A.stopPropagation();
12618
+ onClick: (M) => {
12619
+ M.preventDefault(), M.stopPropagation();
12571
12620
  }
12572
12621
  }, null)]))])]);
12573
12622
  },
@@ -12581,13 +12630,13 @@ const getProps$h = () => ({
12581
12630
  popupClassName: "kg-table-setting-submenu-popup-masters"
12582
12631
  }, {
12583
12632
  default: () => {
12584
- var A;
12633
+ var M;
12585
12634
  let C, T;
12586
- return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((k) => {
12587
- var R;
12635
+ return createVNode(Fragment, null, [(M = n.varGridMasters.value) == null ? void 0 : M.map((k) => {
12636
+ var V;
12588
12637
  return createVNode(Menu.Item, {
12589
12638
  key: k.id,
12590
- class: k.id === ((R = n.currentVarGridMaster.value) == null ? void 0 : R.id) ? "selected" : "",
12639
+ class: k.id === ((V = n.currentVarGridMaster.value) == null ? void 0 : V.id) ? "selected" : "",
12591
12640
  "kg-var_nam": k.grd_var_nam,
12592
12641
  onClick: () => n.store.setCurrentVarGridMasterID(n.formID, k.id)
12593
12642
  }, {
@@ -13119,23 +13168,23 @@ function _useColumns(e) {
13119
13168
  if (p.fix_right_flg === 1)
13120
13169
  return "right";
13121
13170
  }
13122
- function A() {
13123
- var D, I, M, P;
13124
- return !((I = (D = t == null ? void 0 : t.value) == null ? void 0 : D.KgTable) != null && I.kgDisabled || isNil((P = (M = t == null ? void 0 : t.value) == null ? void 0 : M.KgTable) == null ? void 0 : P.kgDisabled) && e.kgDisabled || p.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
13171
+ function M() {
13172
+ var w, I, A, P;
13173
+ return !((I = (w = t == null ? void 0 : t.value) == null ? void 0 : w.KgTable) != null && I.kgDisabled || isNil((P = (A = t == null ? void 0 : t.value) == null ? void 0 : A.KgTable) == null ? void 0 : P.kgDisabled) && e.kgDisabled || p.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
13125
13174
  }
13126
13175
  function k() {
13127
13176
  return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
13128
13177
  }
13129
- const R = b();
13178
+ const V = b();
13130
13179
  return {
13131
13180
  dataIndex: g,
13132
13181
  title: E(),
13133
- width: R,
13134
- resizable: typeof R == "number",
13182
+ width: V,
13183
+ resizable: typeof V == "number",
13135
13184
  minWidth: KG_TABLE_TD_MIN_WIDTH,
13136
13185
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
13137
13186
  fixed: T(),
13138
- sorter: A(),
13187
+ sorter: M(),
13139
13188
  align: k(),
13140
13189
  defaultSortOrder: C(),
13141
13190
  customHeaderCell: () => ({
@@ -13143,13 +13192,13 @@ function _useColumns(e) {
13143
13192
  "kg-var_nam": g,
13144
13193
  draggable: !0
13145
13194
  }),
13146
- customCell: (D) => {
13147
- var M;
13195
+ customCell: (w) => {
13196
+ var A;
13148
13197
  const I = r.store.getVarSubmitField(r.formID, g);
13149
13198
  return {
13150
13199
  "kg-frm_id": r.formID,
13151
13200
  "kg-var_nam": g,
13152
- class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && D[n.id.value] === ((M = n.selectedRow.value) == null ? void 0 : M[n.id.value]) && (!!r.isCreating.value && (I == null ? void 0 : I.crt_flg) === 1 || !!r.isUpdating.value && (I == null ? void 0 : I.upt_flg) === 1 || !!r.isCopying.value && (I == null ? void 0 : I.cpy_flg) === 1 || !!r.isDeleting.value && (I == null ? void 0 : I.del_flg) === 1) ? "submitting" : ""
13201
+ class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && w[n.id.value] === ((A = n.selectedRow.value) == null ? void 0 : A[n.id.value]) && (!!r.isCreating.value && (I == null ? void 0 : I.crt_flg) === 1 || !!r.isUpdating.value && (I == null ? void 0 : I.upt_flg) === 1 || !!r.isCopying.value && (I == null ? void 0 : I.cpy_flg) === 1 || !!r.isDeleting.value && (I == null ? void 0 : I.del_flg) === 1) ? "submitting" : ""
13153
13202
  };
13154
13203
  }
13155
13204
  };
@@ -13266,27 +13315,27 @@ const KgTable$1 = "", getProps$g = () => ({
13266
13315
  var fe;
13267
13316
  const a = inject("$dayjs", dayjs), n = inject(DI_KG_VAR__KG_SLOTS, null), s = inject(DI_KG_VAR__KG_PROPS, null), l = useKg(), o = useKgVar(), i = useKgSearch(), c = useKgButton(), u = useKgTable(), d = useKgSubmit();
13268
13317
  i.onSearch(async ({
13269
- resetPageIndex: K
13270
- }) => (Y(K), !1)), i.onReset(async () => (Y(!0), !1)), u.store.$onAction(async ({
13271
- name: K,
13318
+ resetPageIndex: L
13319
+ }) => (W(L), !1)), i.onReset(async () => (W(!0), !1)), u.store.$onAction(async ({
13320
+ name: L,
13272
13321
  args: H
13273
13322
  }) => {
13274
- switch (K) {
13323
+ switch (L) {
13275
13324
  case "setRowSelect":
13276
13325
  if (H[0] === o.formID) {
13277
- const q = H[1], $ = H[2], x = q[u.id.value];
13326
+ const q = H[1], $ = H[2], B = q[u.id.value];
13278
13327
  switch (!0) {
13279
- case ($ && !O.value.includes(x)):
13280
- Q([...O.value, x]);
13328
+ case ($ && !D.value.includes(B)):
13329
+ X([...D.value, B]);
13281
13330
  break;
13282
- case (!$ && O.value.includes(x)):
13283
- Q(without$1(O.value, x));
13331
+ case (!$ && D.value.includes(B)):
13332
+ X(without$1(D.value, B));
13284
13333
  break;
13285
13334
  }
13286
13335
  }
13287
13336
  break;
13288
13337
  case "clearDatas":
13289
- H[0] === o.formID && (u.store.setDatas(o.formID, []), w.total = 0, B(), v.value = []);
13338
+ H[0] === o.formID && (u.store.setDatas(o.formID, []), O.total = 0, x(), v.value = []);
13290
13339
  break;
13291
13340
  }
13292
13341
  });
@@ -13298,109 +13347,109 @@ const KgTable$1 = "", getProps$g = () => ({
13298
13347
  } = _useLoading(), b = ref(null);
13299
13348
  _useResizeObserver(b), _useDragColumn(b, y);
13300
13349
  const E = computed(() => {
13301
- var K, H;
13302
- return (H = (K = o.varButtonSearch.value) == null ? void 0 : K.cmd) != null ? H : null;
13350
+ var L, H;
13351
+ return (H = (L = o.varButtonSearch.value) == null ? void 0 : L.cmd) != null ? H : null;
13303
13352
  }), C = computed(() => {
13304
- var H, q, $, x, W, J, X;
13305
- let K = {
13306
- pageNo: w.pageIndex,
13307
- pageSize: w.pageSize,
13308
- ...V,
13353
+ var H, q, $, B, Y, J, Q;
13354
+ let L = {
13355
+ pageNo: O.pageIndex,
13356
+ pageSize: O.pageSize,
13357
+ ...R,
13309
13358
  ...(q = (H = i.model) == null ? void 0 : H.value) != null ? q : {}
13310
13359
  };
13311
- return o.varButtonSearch.value && (K = {
13312
- ...K,
13313
- ...KgVarUtil.parseCommandParameter((x = ($ = o.varButtonSearch.value) == null ? void 0 : $.cmd_prm) != null ? x : "")
13314
- }), (W = o.varGridConfig.value) != null && W.cmd_prm && (K = {
13315
- ...K,
13360
+ return o.varButtonSearch.value && (L = {
13361
+ ...L,
13362
+ ...KgVarUtil.parseCommandParameter((B = ($ = o.varButtonSearch.value) == null ? void 0 : $.cmd_prm) != null ? B : "")
13363
+ }), (Y = o.varGridConfig.value) != null && Y.cmd_prm && (L = {
13364
+ ...L,
13316
13365
  ...KgVarUtil.parseCommandParameter((J = o.varGridConfig.value.cmd_prm) != null ? J : "")
13317
- }), ((X = o.varGridConfig.value) == null ? void 0 : X.convert_sort_field_to_under_score_flg) === 1 && K.column && (K.column = snakeCase$1(K.column)), K;
13366
+ }), ((Q = o.varGridConfig.value) == null ? void 0 : Q.convert_sort_field_to_under_score_flg) === 1 && L.column && (L.column = snakeCase$1(L.column)), L;
13318
13367
  }), T = computed(() => {
13319
- var K, H, q, $;
13320
- if (!isNil((H = (K = s == null ? void 0 : s.value) == null ? void 0 : K.KgTable) == null ? void 0 : H.kgDisabled))
13368
+ var L, H, q, $;
13369
+ if (!isNil((H = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : H.kgDisabled))
13321
13370
  return ($ = (q = s == null ? void 0 : s.value) == null ? void 0 : q.KgTable) == null ? void 0 : $.kgDisabled;
13322
13371
  if (!isNil(e.kgDisabled))
13323
13372
  return e.kgDisabled;
13324
- }), A = computed(() => {
13325
- var K, H, q, $;
13326
- if (!isNil((H = (K = s == null ? void 0 : s.value) == null ? void 0 : K.KgTable) == null ? void 0 : H.kgCheckboxDisabled))
13373
+ }), M = computed(() => {
13374
+ var L, H, q, $;
13375
+ if (!isNil((H = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : H.kgCheckboxDisabled))
13327
13376
  return ($ = (q = s == null ? void 0 : s.value) == null ? void 0 : q.KgTable) == null ? void 0 : $.kgCheckboxDisabled;
13328
13377
  if (!isNil(e.kgCheckboxDisabled))
13329
13378
  return e.kgCheckboxDisabled;
13330
- }), k = computed(() => !!T.value || g.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), R = computed(() => !!T.value || g.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || w.total === 0), D = computed(() => {
13331
- var K;
13332
- return !!((K = n == null ? void 0 : n.KgTable) != null && K.expandedRowRender);
13379
+ }), k = computed(() => !!T.value || g.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), V = computed(() => !!T.value || g.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || O.total === 0), w = computed(() => {
13380
+ var L;
13381
+ return !!((L = n == null ? void 0 : n.KgTable) != null && L.expandedRowRender);
13333
13382
  }), I = computed(() => {
13334
- var K;
13335
- return ((K = o.varGridConfig.value) == null ? void 0 : K.show_check_column_flg) === 1;
13336
- }), M = computed(() => {
13383
+ var L;
13384
+ return ((L = o.varGridConfig.value) == null ? void 0 : L.show_check_column_flg) === 1;
13385
+ }), A = computed(() => {
13337
13386
  if (!!I.value)
13338
13387
  return {
13339
13388
  fixed: "left",
13340
13389
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
13341
13390
  hideSelectAll: !u.isMultiSelect.value,
13342
- selectedRowKeys: O,
13391
+ selectedRowKeys: D,
13343
13392
  preserveSelectedRowKeys: !1,
13344
- getCheckboxProps: (K) => {
13393
+ getCheckboxProps: (L) => {
13345
13394
  var H;
13346
13395
  return {
13347
- disabled: !!T.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || !!((H = A.value) != null && H.call(A, K))
13396
+ disabled: !!T.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || !!((H = M.value) != null && H.call(M, L))
13348
13397
  };
13349
13398
  },
13350
- onSelect: (K) => z(K),
13351
- onChange: (K) => u.isMultiSelect.value && Q(K)
13399
+ onSelect: (L) => z(L),
13400
+ onChange: (L) => u.isMultiSelect.value && X(L)
13352
13401
  };
13353
13402
  }), P = computed(() => {
13354
13403
  var H;
13355
- let K = "kg-table";
13356
- return ((H = o.varGridConfig.value) == null ? void 0 : H.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 && (o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value) && (K += " kg-table--submitting"), K;
13404
+ let L = "kg-table";
13405
+ return ((H = o.varGridConfig.value) == null ? void 0 : H.show_bottom_border_flg) === 1 && (L += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (L += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value) && (L += " kg-table--submitting"), L;
13357
13406
  }), N = computed(() => {
13358
13407
  var H;
13359
- let K = "kg-table-bottom";
13360
- return ((H = o.varGridConfig.value) == null ? void 0 : H.show_bottom_border_flg) === 1 && (K += " kg-table-bottom--border"), K;
13361
- }), U = computed(() => u.store.getDatas(o.formID)), O = (fe = u.store.getSelectedRowKeys(o.formID)) != null ? fe : ref([]), w = reactive({
13408
+ let L = "kg-table-bottom";
13409
+ return ((H = o.varGridConfig.value) == null ? void 0 : H.show_bottom_border_flg) === 1 && (L += " kg-table-bottom--border"), L;
13410
+ }), U = computed(() => u.store.getDatas(o.formID)), D = (fe = u.store.getSelectedRowKeys(o.formID)) != null ? fe : ref([]), O = reactive({
13362
13411
  pageIndex: 1,
13363
13412
  pageSize: 10,
13364
13413
  total: 0
13365
- }), V = reactive({
13414
+ }), R = reactive({
13366
13415
  column: void 0,
13367
13416
  order: void 0
13368
- }), G = watch(u.pageSizeOption, (K) => {
13369
- K && (setTimeout(() => G()), w.pageSize = K, m.value = !0, KgLogger.debug(`${o.formID} | KgTable | isReadReady: ${m.value}`));
13417
+ }), G = watch(u.pageSizeOption, (L) => {
13418
+ L && (setTimeout(() => G()), O.pageSize = L, m.value = !0, KgLogger.debug(`${o.formID} | KgTable | isReadReady: ${m.value}`));
13370
13419
  }, {
13371
13420
  immediate: !0
13372
13421
  });
13373
- watch(u.pageSizeOptions, (K) => {
13374
- K.length > 0 && !K.includes(w.pageSize) && (w.pageSize = u.pageSizeOption.value);
13375
- }), watch([E, u.isReadAutomatically, i.isReady], ([K, H, q]) => {
13376
- K && H && q && !u.store.getIsRetrieved(o.formID) && Y(!0);
13422
+ watch(u.pageSizeOptions, (L) => {
13423
+ L.length > 0 && !L.includes(O.pageSize) && (O.pageSize = u.pageSizeOption.value);
13424
+ }), watch([E, u.isReadAutomatically, i.isReady], ([L, H, q]) => {
13425
+ L && H && q && !u.store.getIsRetrieved(o.formID) && W(!0);
13377
13426
  }, {
13378
13427
  immediate: !0
13379
- }), watch(o.isCreating, (K, H) => {
13380
- K === !0 ? F() : K === !1 && H === !0 && L();
13428
+ }), watch(o.isCreating, (L, H) => {
13429
+ L === !0 ? F() : L === !1 && H === !0 && K();
13381
13430
  }), onUnmounted(() => {
13382
13431
  u.store.dispose(o.formID);
13383
13432
  });
13384
13433
  function F() {
13385
13434
  if (d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
13386
- const K = {
13435
+ const L = {
13387
13436
  [u.id.value]: KG_TABLE_TEMP_ID
13388
13437
  };
13389
- u.store.setDatas(o.formID, [K, ...U.value]), u.store.setSelectedRows(o.formID, [K]);
13438
+ u.store.setDatas(o.formID, [L, ...U.value]), u.store.setSelectedRows(o.formID, [L]);
13390
13439
  }
13391
13440
  }
13392
- function L() {
13393
- const K = U.value.find((H) => H[u.id.value] === KG_TABLE_TEMP_ID);
13394
- K && (u.store.setDatas(o.formID, without$1(U.value, K)), u.store.setSelectedRows(o.formID, []));
13441
+ function K() {
13442
+ const L = U.value.find((H) => H[u.id.value] === KG_TABLE_TEMP_ID);
13443
+ L && (u.store.setDatas(o.formID, without$1(U.value, L)), u.store.setSelectedRows(o.formID, []));
13395
13444
  }
13396
- function B(K, H) {
13445
+ function x(L, H) {
13397
13446
  var q;
13398
- if (!(!!T.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!M.value) {
13447
+ if (!(!!T.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!A.value) {
13399
13448
  if (!H) {
13400
13449
  u.store.setSelectedRows(o.formID, []);
13401
13450
  return;
13402
13451
  }
13403
- switch (K == null ? void 0 : K.detail) {
13452
+ switch (L == null ? void 0 : L.detail) {
13404
13453
  case 1:
13405
13454
  switch ((q = o.varGridConfig.value) == null ? void 0 : q.operation_on_row_click) {
13406
13455
  case 0:
@@ -13418,7 +13467,7 @@ const KgTable$1 = "", getProps$g = () => ({
13418
13467
  }
13419
13468
  }
13420
13469
  }
13421
- function Y(K = !1) {
13470
+ function W(L = !1) {
13422
13471
  KgLogger.debug(`${o.formID} | KgTable | retrieve() | \u8FDB\u5165\u65B9\u6CD5.`);
13423
13472
  const H = watch(m, ($) => {
13424
13473
  $ && (setTimeout(() => H()), q());
@@ -13426,47 +13475,47 @@ const KgTable$1 = "", getProps$g = () => ({
13426
13475
  immediate: !0
13427
13476
  });
13428
13477
  async function q() {
13429
- var $, x, W;
13478
+ var $, B, Y;
13430
13479
  if (KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u8FDB\u5165\u65B9\u6CD5.`), !E.value) {
13431
13480
  KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
13432
13481
  VarButton: o.varButtonSearch.value
13433
13482
  });
13434
13483
  return;
13435
13484
  }
13436
- K && (w.pageIndex = 1), u.store.setIsRetrieving(o.formID, !0);
13485
+ L && (O.pageIndex = 1), u.store.setIsRetrieving(o.formID, !0);
13437
13486
  try {
13438
- const J = KgUtil.parseParams(C.value, u.profileFormID.value, a), X = ref({});
13487
+ const J = KgUtil.parseParams(C.value, u.profileFormID.value, a), Q = ref({});
13439
13488
  await u.store.emit(o.formID, "beforeRetrieve", {
13440
13489
  params: J,
13441
- response: X
13442
- }) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : (X.value = await httpClient().request({
13490
+ response: Q
13491
+ }) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : (Q.value = await httpClient().request({
13443
13492
  method: "GET",
13444
13493
  url: E.value,
13445
13494
  params: J
13446
13495
  }, {
13447
13496
  successMessageMode: "none"
13448
13497
  }), KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u63A5\u53E3\u8C03\u7528\u6210\u529F.`));
13449
- let ee = ref([]), ae = ref(0);
13498
+ let Z = ref([]), ae = ref(0);
13450
13499
  switch (!0) {
13451
- case !X.value:
13452
- ee.value = [], ae.value = 0;
13500
+ case !Q.value:
13501
+ Z.value = [], ae.value = 0;
13453
13502
  break;
13454
- case isArrayLike(X.value):
13455
- ee.value = X.value, ae.value = X.value.length;
13503
+ case isArrayLike(Q.value):
13504
+ Z.value = Q.value, ae.value = Q.value.length;
13456
13505
  break;
13457
- case ("total" in X.value && "records" in X.value):
13458
- ee.value = ($ = X.value.records) != null ? $ : [], ae.value = (x = X.value.total) != null ? x : 0;
13506
+ case ("total" in Q.value && "records" in Q.value):
13507
+ Z.value = ($ = Q.value.records) != null ? $ : [], ae.value = (B = Q.value.total) != null ? B : 0;
13459
13508
  break;
13460
13509
  }
13461
13510
  await u.store.emit(o.formID, "beforeSetDatas", {
13462
- datas: ee,
13511
+ datas: Z,
13463
13512
  total: ae,
13464
13513
  setDatas(te) {
13465
13514
  u.store.setDatas(o.formID, te);
13466
13515
  }
13467
- }), u.store.setDatas(o.formID, ee.value), w.total = ae.value, B(), v.value = [], await nextTick(), ((W = o.varGridConfig.value) == null ? void 0 : W.check_first_row_after_retrieve) === 1 && ee.value.length > 0 && u.store.setSelectedRows(o.formID, [ee.value[0]]), await u.store.emit(o.formID, "retrieve", {
13468
- page: X.value,
13469
- datas: ee,
13516
+ }), u.store.setDatas(o.formID, Z.value), O.total = ae.value, x(), v.value = [], await nextTick(), ((Y = o.varGridConfig.value) == null ? void 0 : Y.check_first_row_after_retrieve) === 1 && Z.value.length > 0 && u.store.setSelectedRows(o.formID, [Z.value[0]]), await u.store.emit(o.formID, "retrieve", {
13517
+ page: Q.value,
13518
+ datas: Z,
13470
13519
  setDatas(te) {
13471
13520
  u.store.setDatas(o.formID, te);
13472
13521
  }
@@ -13478,71 +13527,71 @@ const KgTable$1 = "", getProps$g = () => ({
13478
13527
  }
13479
13528
  }
13480
13529
  }
13481
- function Q(K) {
13482
- u.store.setSelectedRows(o.formID, K.map((H) => {
13530
+ function X(L) {
13531
+ u.store.setSelectedRows(o.formID, L.map((H) => {
13483
13532
  var q;
13484
13533
  return (q = U.value) == null ? void 0 : q.find(($) => $[u.id.value] === H);
13485
13534
  }).filter((H) => !!H));
13486
13535
  }
13487
- function z(K) {
13536
+ function z(L) {
13488
13537
  var H, q;
13489
13538
  switch (u.isMultiSelect.value) {
13490
13539
  case !0:
13491
13540
  {
13492
- const $ = K[u.id.value];
13493
- O.value.includes($) ? O.value = without$1(O.value, $) : O.value = [...(H = O.value) != null ? H : [], $];
13541
+ const $ = L[u.id.value];
13542
+ D.value.includes($) ? D.value = without$1(D.value, $) : D.value = [...(H = D.value) != null ? H : [], $];
13494
13543
  }
13495
13544
  break;
13496
13545
  case !1:
13497
13546
  {
13498
- const $ = K[u.id.value];
13499
- (q = O.value) != null && q.includes($) ? O.value = [] : O.value = [$];
13547
+ const $ = L[u.id.value];
13548
+ (q = D.value) != null && q.includes($) ? D.value = [] : D.value = [$];
13500
13549
  }
13501
13550
  break;
13502
13551
  }
13503
- u.store.setSelectedRows(o.formID, O.value.map(($) => {
13504
- var x;
13505
- return (x = U.value) == null ? void 0 : x.find((W) => W[u.id.value] === $);
13552
+ u.store.setSelectedRows(o.formID, D.value.map(($) => {
13553
+ var B;
13554
+ return (B = U.value) == null ? void 0 : B.find((Y) => Y[u.id.value] === $);
13506
13555
  }).filter(($) => !!$));
13507
13556
  }
13508
- function Z(K, H) {
13509
- H.width = K, o.store.setVarGridDetailWidth(o.formID, H.dataIndex, K);
13557
+ function ee(L, H) {
13558
+ H.width = L, o.store.setVarGridDetailWidth(o.formID, H.dataIndex, L);
13510
13559
  }
13511
- async function re(K, H, q, $) {
13512
- var x;
13560
+ async function re(L, H, q, $) {
13561
+ var B;
13513
13562
  switch ($.action) {
13514
13563
  case "sort":
13515
13564
  {
13516
13565
  await nextTick();
13517
- let W = q;
13518
- W.order ? (V.column = (x = W.field) != null ? x : void 0, V.order = W.order === "ascend" ? "asc" : W.order === "descend" ? "desc" : void 0) : (V.column = void 0, V.order = void 0), Y(!0);
13566
+ let Y = q;
13567
+ Y.order ? (R.column = (B = Y.field) != null ? B : void 0, R.order = Y.order === "ascend" ? "asc" : Y.order === "descend" ? "desc" : void 0) : (R.column = void 0, R.order = void 0), W(!0);
13519
13568
  }
13520
13569
  break;
13521
13570
  }
13522
13571
  }
13523
- function ie(K, H) {
13572
+ function ie(L, H) {
13524
13573
  var $;
13525
13574
  const q = H[u.id.value];
13526
13575
  switch (($ = o.varGridConfig.value) == null ? void 0 : $.expand_accordion_flg) {
13527
13576
  case 0:
13528
- K ? v.value = uniq([...v.value, q]) : v.value = without$1(v.value, q);
13577
+ L ? v.value = uniq([...v.value, q]) : v.value = without$1(v.value, q);
13529
13578
  break;
13530
13579
  default:
13531
- K ? v.value = [q] : v.value = [];
13580
+ L ? v.value = [q] : v.value = [];
13532
13581
  break;
13533
13582
  }
13534
13583
  }
13535
- function se(K, H) {
13536
- H !== w.pageSize ? (w.pageIndex = 1, w.pageSize = H) : w.pageIndex = K, Y();
13584
+ function se(L, H) {
13585
+ H !== O.pageSize ? (O.pageIndex = 1, O.pageSize = H) : O.pageIndex = L, W();
13537
13586
  }
13538
- function ge(K) {
13539
- u.store.setSelectedRows(o.formID, [K].map((H) => {
13587
+ function ge(L) {
13588
+ u.store.setSelectedRows(o.formID, [L].map((H) => {
13540
13589
  var q;
13541
13590
  return (q = U.value) == null ? void 0 : q.find(($) => $[u.id.value] === H[u.id.value]);
13542
13591
  }).filter((H) => !!H)), c.click(o.formID, KG_BUTTON_TYPE.UPDATE);
13543
13592
  }
13544
13593
  function ce({
13545
- title: K,
13594
+ title: L,
13546
13595
  column: H
13547
13596
  }) {
13548
13597
  switch (H.dataIndex) {
@@ -13552,32 +13601,32 @@ const KgTable$1 = "", getProps$g = () => ({
13552
13601
  }, null);
13553
13602
  default:
13554
13603
  return createVNode("pre", {
13555
- title: K
13556
- }, [K]);
13604
+ title: L
13605
+ }, [L]);
13557
13606
  }
13558
13607
  }
13559
13608
  function ne() {
13560
- var K;
13561
- return (K = n == null ? void 0 : n.KgTable) != null && K["summary.bodyCell"] ? createVNode(TableSummary, {
13609
+ var L;
13610
+ return (L = n == null ? void 0 : n.KgTable) != null && L["summary.bodyCell"] ? createVNode(TableSummary, {
13562
13611
  fixed: "bottom"
13563
13612
  }, {
13564
13613
  default: () => [createVNode(TableSummary.Row, null, {
13565
- default: () => [D.value && createVNode(TableSummary.Cell, {
13614
+ default: () => [w.value && createVNode(TableSummary.Cell, {
13566
13615
  index: 0
13567
13616
  }, null), I.value && createVNode(TableSummary.Cell, {
13568
- index: D.value ? 1 : 0
13617
+ index: w.value ? 1 : 0
13569
13618
  }, null), y.value.map((H, q) => {
13570
- const $ = o.store.getVarGridDetail(o.formID, H.dataIndex), x = (() => ["left", "center", "right"].includes(($ == null ? void 0 : $.align) || "") ? $ == null ? void 0 : $.align : "left")();
13571
- let W = q;
13572
- return D.value && I.value ? W += 2 : (D.value || I.value) && (W += 1), createVNode(TableSummary.Cell, {
13573
- index: W,
13574
- align: x
13619
+ const $ = o.store.getVarGridDetail(o.formID, H.dataIndex), B = (() => ["left", "center", "right"].includes(($ == null ? void 0 : $.align) || "") ? $ == null ? void 0 : $.align : "left")();
13620
+ let Y = q;
13621
+ return w.value && I.value ? Y += 2 : (w.value || I.value) && (Y += 1), createVNode(TableSummary.Cell, {
13622
+ index: Y,
13623
+ align: B
13575
13624
  }, {
13576
13625
  default: () => {
13577
- var J, X;
13578
- return [(X = (J = n == null ? void 0 : n.KgTable) == null ? void 0 : J["summary.bodyCell"]) == null ? void 0 : X.call(J, {
13626
+ var J, Q;
13627
+ return [(Q = (J = n == null ? void 0 : n.KgTable) == null ? void 0 : J["summary.bodyCell"]) == null ? void 0 : Q.call(J, {
13579
13628
  column: H,
13580
- index: W,
13629
+ index: Y,
13581
13630
  varGridDetail: $
13582
13631
  })];
13583
13632
  }
@@ -13587,38 +13636,38 @@ const KgTable$1 = "", getProps$g = () => ({
13587
13636
  }) : null;
13588
13637
  }
13589
13638
  function le({
13590
- column: K,
13639
+ column: L,
13591
13640
  index: H,
13592
13641
  record: q,
13593
13642
  text: $,
13594
- value: x
13643
+ value: B
13595
13644
  }) {
13596
- var X;
13597
- let W = "";
13598
- K.customRender ? W = K.customRender({
13645
+ var Q;
13646
+ let Y = "";
13647
+ L.customRender ? Y = L.customRender({
13599
13648
  index: H,
13600
13649
  record: q,
13601
- column: K,
13650
+ column: L,
13602
13651
  text: $,
13603
- value: x,
13652
+ value: B,
13604
13653
  renderIndex: H
13605
- }) : W = x;
13654
+ }) : Y = B;
13606
13655
  const J = createVNode(KgTableCell, {
13607
13656
  kgRow: q,
13608
- kgValue: W,
13609
- kgVarName: K.dataIndex,
13657
+ kgValue: Y,
13658
+ kgVarName: L.dataIndex,
13610
13659
  onKgUpdateLinkClick: () => ge(q)
13611
13660
  }, null);
13612
- if ((X = n == null ? void 0 : n.KgTable) != null && X.bodyCell) {
13613
- const ee = K.dataIndex ? o.store.getVarGridDetail(o.formID, K.dataIndex) : null;
13661
+ if ((Q = n == null ? void 0 : n.KgTable) != null && Q.bodyCell) {
13662
+ const Z = L.dataIndex ? o.store.getVarGridDetail(o.formID, L.dataIndex) : null;
13614
13663
  return n.KgTable.bodyCell({
13615
- column: K,
13664
+ column: L,
13616
13665
  index: H,
13617
13666
  record: q,
13618
13667
  text: $,
13619
- value: x,
13668
+ value: B,
13620
13669
  row: q,
13621
- varGridDetail: ee,
13670
+ varGridDetail: Z,
13622
13671
  defaultRender: J
13623
13672
  });
13624
13673
  } else
@@ -13628,7 +13677,7 @@ const KgTable$1 = "", getProps$g = () => ({
13628
13677
  return !u.isReadAutomatically.value && !u.store.getIsRetrieved(o.formID) ? l.t("kg.KgTable.emptyText") : l.t("kg.emptyText");
13629
13678
  }
13630
13679
  return () => {
13631
- var K, H, q;
13680
+ var L, H, q;
13632
13681
  return createVNode("div", {
13633
13682
  class: P.value,
13634
13683
  "kg-frm_id": o.formID,
@@ -13646,14 +13695,14 @@ const KgTable$1 = "", getProps$g = () => ({
13646
13695
  dataSource: U.value,
13647
13696
  loading: g.value,
13648
13697
  rowKey: u.id.value,
13649
- rowClassName: (H = (K = s == null ? void 0 : s.value) == null ? void 0 : K.KgTable) == null ? void 0 : H.kgRowClassName,
13698
+ rowClassName: (H = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : H.kgRowClassName,
13650
13699
  expandColumnWidth: 28,
13651
13700
  expandedRowKeys: v.value,
13652
- rowSelection: M.value,
13701
+ rowSelection: A.value,
13653
13702
  customRow: ($) => ({
13654
- onClick: (x) => B(x, $)
13703
+ onClick: (B) => x(B, $)
13655
13704
  }),
13656
- onResizeColumn: Z,
13705
+ onResizeColumn: ee,
13657
13706
  onChange: re,
13658
13707
  onExpand: ie
13659
13708
  }, {
@@ -13667,32 +13716,32 @@ const KgTable$1 = "", getProps$g = () => ({
13667
13716
  }, [createVNode("div", {
13668
13717
  class: "left"
13669
13718
  }, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
13670
- kgShowClearCheck: O.value.length > 0,
13671
- kgShowClearTable: w.total > 0,
13672
- kgShowLocate: O.value.length === 1,
13673
- kgTotal: O.value.length,
13719
+ kgShowClearCheck: D.value.length > 0,
13720
+ kgShowClearTable: O.total > 0,
13721
+ kgShowLocate: D.value.length === 1,
13722
+ kgTotal: D.value.length,
13674
13723
  kgDisabled: k.value
13675
13724
  }, null)]), createVNode("div", {
13676
13725
  class: "right"
13677
13726
  }, [u.isShowBottomRight.value && createVNode(Pagination, {
13678
13727
  size: "default",
13679
- current: w.pageIndex,
13680
- pageSize: w.pageSize,
13728
+ current: O.pageIndex,
13729
+ pageSize: O.pageSize,
13681
13730
  pageSizeOptions: u.pageSizeOptions.value.map(($) => String($)),
13682
- total: w.total,
13731
+ total: O.total,
13683
13732
  showSizeChanger: !0,
13684
13733
  showQuickJumper: !1,
13685
13734
  hideOnSinglePage: !1,
13686
- disabled: R.value,
13735
+ disabled: V.value,
13687
13736
  locale: {
13688
13737
  page: ""
13689
13738
  },
13690
- showTotal: ($, x) => l.t("kg.KgTable.totalText", {
13691
- from: x[0],
13692
- to: x[1],
13739
+ showTotal: ($, B) => l.t("kg.KgTable.totalText", {
13740
+ from: B[0],
13741
+ to: B[1],
13693
13742
  total: $
13694
13743
  }),
13695
- onChange: ($, x) => se($, x)
13744
+ onChange: ($, B) => se($, B)
13696
13745
  }, null)])])]);
13697
13746
  };
13698
13747
  }
@@ -13917,8 +13966,8 @@ const KgButtonCreate = defineComponent({
13917
13966
  attrs: a
13918
13967
  }) {
13919
13968
  const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
13920
- var C, T, A, k, R, D, I, M;
13921
- return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((A = (T = o.selectedRows.value) == null ? void 0 : T.length) != null ? A : 0) === 0 || ((k = c.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((D = (R = o.selectedRows.value) == null ? void 0 : R.length) != null ? D : 0) > 1 || ((I = c.value) == null ? void 0 : I.permission_type) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13969
+ var C, T, M, k, V, w, I, A;
13970
+ return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((M = (T = o.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) === 0 || ((k = c.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((w = (V = o.selectedRows.value) == null ? void 0 : V.length) != null ? w : 0) > 1 || ((I = c.value) == null ? void 0 : I.permission_type) === 2 && !n.p((A = c.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13922
13971
  }), d = computed(() => !!s.isCreatingRequesting.value);
13923
13972
  async function m() {
13924
13973
  e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
@@ -13940,7 +13989,7 @@ const KgButtonCreate = defineComponent({
13940
13989
  return e.kgText ? e.kgText : n.t("kg.create");
13941
13990
  }
13942
13991
  function b() {
13943
- var C, T, A, k;
13992
+ var C, T, M, k;
13944
13993
  return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isCreating.value ? null : createVNode(Button, {
13945
13994
  type: "primary",
13946
13995
  disabled: u.value,
@@ -13948,7 +13997,7 @@ const KgButtonCreate = defineComponent({
13948
13997
  class: a.class,
13949
13998
  "kg-id": (C = c.value) == null ? void 0 : C.id,
13950
13999
  "kg-frm_id": (T = c.value) == null ? void 0 : T.frm_id,
13951
- "kg-var_nam": (A = c.value) == null ? void 0 : A.var_nam,
14000
+ "kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
13952
14001
  "kg-cmd": (k = c.value) == null ? void 0 : k.cmd
13953
14002
  }, {
13954
14003
  default: () => [p(), g()]
@@ -14035,8 +14084,8 @@ const KgButtonCreate = defineComponent({
14035
14084
  ...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
14036
14085
  }), ((T = r.varGridConfig.value) == null ? void 0 : T.convert_sort_field_to_under_score_flg) === 1 && y.column && (y.column = snakeCase$1(y.column)), y;
14037
14086
  }), c = computed(() => {
14038
- var y, p, g, b, E, C, T, A;
14039
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((g = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((C = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? C : 0) > 1 || ((T = s.value) == null ? void 0 : T.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14087
+ var y, p, g, b, E, C, T, M;
14088
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((g = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((C = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? C : 0) > 1 || ((T = s.value) == null ? void 0 : T.permission_type) === 2 && !t.p((M = s.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14040
14089
  }), u = ref(!1);
14041
14090
  async function d() {
14042
14091
  var y, p;
@@ -14117,8 +14166,8 @@ const KgButtonCreate = defineComponent({
14117
14166
  ...KgVarUtil.parseCommandParameter((C = (E = o.value) == null ? void 0 : E.cmd_prm) != null ? C : "")
14118
14167
  }), g;
14119
14168
  }), d = computed(() => {
14120
- var g, b, E, C, T, A, k, R;
14121
- return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((g = o.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((E = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? E : 0) === 0 || ((C = o.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (T = l.selectedRows.value) == null ? void 0 : T.length) != null ? A : 0) > 1 || ((k = o.value) == null ? void 0 : k.permission_type) === 2 && !a.p((R = o.value) == null ? void 0 : R.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14169
+ var g, b, E, C, T, M, k, V;
14170
+ return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((g = o.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((E = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? E : 0) === 0 || ((C = o.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((M = (T = l.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) > 1 || ((k = o.value) == null ? void 0 : k.permission_type) === 2 && !a.p((V = o.value) == null ? void 0 : V.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14122
14171
  }), m = ref(!1);
14123
14172
  async function v(g) {
14124
14173
  if (!i.value)
@@ -14205,8 +14254,8 @@ const KgButtonCreate = defineComponent({
14205
14254
  ...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
14206
14255
  }), y;
14207
14256
  }), c = computed(() => {
14208
- var y, p, g, b, E, C, T, A;
14209
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((g = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((C = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? C : 0) > 1 || ((T = s.value) == null ? void 0 : T.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14257
+ var y, p, g, b, E, C, T, M;
14258
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((g = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((C = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? C : 0) > 1 || ((T = s.value) == null ? void 0 : T.permission_type) === 2 && !t.p((M = s.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14210
14259
  }), u = ref(!1);
14211
14260
  async function d() {
14212
14261
  var y, p;
@@ -14282,35 +14331,35 @@ const KgButtonCreate = defineComponent({
14282
14331
  }
14283
14332
  let m = null;
14284
14333
  const v = async () => {
14285
- var E, C, T, A, k, R;
14334
+ var E, C, T, M, k, V;
14286
14335
  m == null || m.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
14287
14336
  const b = s.selectedRows.value;
14288
14337
  try {
14289
- const D = await httpClient().request({
14338
+ const w = await httpClient().request({
14290
14339
  method: (C = (E = e.kgButton) == null ? void 0 : E.cmd_method) != null ? C : "POST",
14291
14340
  url: d,
14292
- params: KgVarUtil.parseCommandParameter((A = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? A : ""),
14341
+ params: KgVarUtil.parseCommandParameter((M = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? M : ""),
14293
14342
  data: b != null ? b : []
14294
14343
  });
14295
14344
  if (((k = e.kgButton) == null ? void 0 : k.reload_all_after_done_flg) === 1) {
14296
- if (((R = e.kgButton) == null ? void 0 : R.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
14297
- datas: M
14345
+ if (((V = e.kgButton) == null ? void 0 : V.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
14346
+ datas: A
14298
14347
  }) => {
14299
- const P = M.value, N = intersectionWith$1(P, b != null ? b : [], (U, O) => (U == null ? void 0 : U[s.id.value]) === (O == null ? void 0 : O[s.id.value]));
14348
+ const P = A.value, N = intersectionWith$1(P, b != null ? b : [], (U, D) => (U == null ? void 0 : U[s.id.value]) === (D == null ? void 0 : D[s.id.value]));
14300
14349
  return N.length > 0 && s.store.setSelectedRows(r.formID, N), !1;
14301
14350
  }, !0), await n.store.emit(r.formID, "otherOk", {
14302
14351
  button: e.kgButton,
14303
- data: D
14352
+ data: w
14304
14353
  }))
14305
14354
  return;
14306
14355
  a.search(!0);
14307
14356
  } else if (await n.store.emit(r.formID, "otherOk", {
14308
14357
  button: e.kgButton,
14309
- data: D
14358
+ data: w
14310
14359
  }))
14311
14360
  return;
14312
- } catch (D) {
14313
- console.error(D);
14361
+ } catch (w) {
14362
+ console.error(w);
14314
14363
  } finally {
14315
14364
  r.store.setIsOtherRequesting(r.formID, !1), m == null || m.hideLoading();
14316
14365
  }
@@ -14410,8 +14459,8 @@ const KgButtonCreate = defineComponent({
14410
14459
  }
14411
14460
  });
14412
14461
  const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
14413
- var C, T, A, k, R, D, I, M;
14414
- return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((A = (T = l.selectedRows.value) == null ? void 0 : T.length) != null ? A : 0) === 0 || ((k = c.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((D = (R = l.selectedRows.value) == null ? void 0 : R.length) != null ? D : 0) > 1 || ((I = c.value) == null ? void 0 : I.permission_type) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14462
+ var C, T, M, k, V, w, I, A;
14463
+ return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((M = (T = l.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) === 0 || ((k = c.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((w = (V = l.selectedRows.value) == null ? void 0 : V.length) != null ? w : 0) > 1 || ((I = c.value) == null ? void 0 : I.permission_type) === 2 && !n.p((A = c.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14415
14464
  }), d = computed(() => !!s.isUpdatingRequesting.value);
14416
14465
  async function m() {
14417
14466
  e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
@@ -14436,7 +14485,7 @@ const KgButtonCreate = defineComponent({
14436
14485
  return e.kgText ? e.kgText : n.t("kg.update");
14437
14486
  }
14438
14487
  function b() {
14439
- var C, T, A, k;
14488
+ var C, T, M, k;
14440
14489
  return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isUpdating.value ? null : createVNode(Button, {
14441
14490
  type: "primary",
14442
14491
  disabled: u.value,
@@ -14445,7 +14494,7 @@ const KgButtonCreate = defineComponent({
14445
14494
  class: a.class,
14446
14495
  "kg-id": (C = c.value) == null ? void 0 : C.id,
14447
14496
  "kg-frm_id": (T = c.value) == null ? void 0 : T.frm_id,
14448
- "kg-var_nam": (A = c.value) == null ? void 0 : A.var_nam,
14497
+ "kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
14449
14498
  "kg-cmd": (k = c.value) == null ? void 0 : k.cmd
14450
14499
  }, {
14451
14500
  default: () => [p(), g()]
@@ -15177,9 +15226,9 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15177
15226
  row: C,
15178
15227
  model: T
15179
15228
  }) => {
15180
- var k, R, D;
15181
- const A = o.store.getSystemVarProfileDetails(o.formID);
15182
- switch (i.value = A ? cloneDeep(unref(toRaw(A))) : [], !0) {
15229
+ var k, V, w;
15230
+ const M = o.store.getSystemVarProfileDetails(o.formID);
15231
+ switch (i.value = M ? cloneDeep(unref(toRaw(M))) : [], !0) {
15183
15232
  case g: {
15184
15233
  c.value = [];
15185
15234
  break;
@@ -15196,15 +15245,15 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15196
15245
  });
15197
15246
  i.value = i.value.map((P) => {
15198
15247
  var U;
15199
- const N = (U = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : U.find((O) => O.var_nam === P.var_nam);
15248
+ const N = (U = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : U.find((D) => D.var_nam === P.var_nam);
15200
15249
  return N ? {
15201
15250
  ...P,
15202
15251
  ...N,
15203
15252
  id: P.id
15204
15253
  } : P;
15205
15254
  });
15206
- const M = (R = (k = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : k.map((P) => P.var_nam)) != null ? R : [];
15207
- c.value = i.value.filter((P) => M.includes(P.var_nam)).map((P) => P.id);
15255
+ const A = (V = (k = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : k.map((P) => P.var_nam)) != null ? V : [];
15256
+ c.value = i.value.filter((P) => A.includes(P.var_nam)).map((P) => P.id);
15208
15257
  } catch (I) {
15209
15258
  throw I;
15210
15259
  } finally {
@@ -15217,7 +15266,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15217
15266
  }
15218
15267
  switch (!0) {
15219
15268
  case E: {
15220
- T.value.prf_var_nam = ((D = T.value.prf_var_nam) != null ? D : "") + "_COPY";
15269
+ T.value.prf_var_nam = ((w = T.value.prf_var_nam) != null ? w : "") + "_COPY";
15221
15270
  break;
15222
15271
  }
15223
15272
  }
@@ -15285,11 +15334,11 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15285
15334
  selectedKeys: E,
15286
15335
  disabled: C,
15287
15336
  onItemSelectAll: T,
15288
- onItemSelect: A
15337
+ onItemSelect: M
15289
15338
  }) => {
15290
- const k = b.sort((R, D) => {
15291
- var I, M;
15292
- return ((I = R.srtseq) != null ? I : 0) - ((M = D.srtseq) != null ? M : 0);
15339
+ const k = b.sort((V, w) => {
15340
+ var I, A;
15341
+ return ((I = V.srtseq) != null ? I : 0) - ((A = w.srtseq) != null ? A : 0);
15293
15342
  });
15294
15343
  return u.value = k, createVNode(Table, {
15295
15344
  pagination: !1,
@@ -15302,17 +15351,17 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15302
15351
  columns: g === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
15303
15352
  rowKey: "id",
15304
15353
  dataSource: k,
15305
- customRow: (R) => {
15306
- let D = {
15307
- onClick: (I) => p(I, R, g, E)
15354
+ customRow: (V) => {
15355
+ let w = {
15356
+ onClick: (I) => p(I, V, g, E)
15308
15357
  };
15309
- return g === "right" && (D["kg-host-frm_id"] = o.formID, D["kg-var_nam"] = R.var_nam), D;
15358
+ return g === "right" && (w["kg-host-frm_id"] = o.formID, w["kg-var_nam"] = V.var_nam), w;
15310
15359
  },
15311
15360
  rowSelection: v({
15312
15361
  disabled: C,
15313
15362
  selectedKeys: E,
15314
15363
  onItemSelectAll: T,
15315
- onItemSelect: A
15364
+ onItemSelect: M
15316
15365
  })
15317
15366
  }, null);
15318
15367
  }
@@ -15332,16 +15381,16 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15332
15381
  getCheckboxProps: (T) => ({
15333
15382
  disabled: g || T.disabled
15334
15383
  }),
15335
- onSelectAll(T, A) {
15336
- const k = A.filter((R) => !R.disabled).map(({
15337
- key: R
15338
- }) => R);
15384
+ onSelectAll(T, M) {
15385
+ const k = M.filter((V) => !V.disabled).map(({
15386
+ key: V
15387
+ }) => V);
15339
15388
  E(k, T);
15340
15389
  },
15341
15390
  onSelect({
15342
15391
  key: T
15343
- }, A) {
15344
- C(T, A);
15392
+ }, M) {
15393
+ C(T, M);
15345
15394
  },
15346
15395
  selectedRowKeys: b,
15347
15396
  columnWidth: 32
@@ -15550,23 +15599,23 @@ const KgSearch$1 = "", getProps$9 = () => ({
15550
15599
  });
15551
15600
  _useLayoutHeaderResizeObserver();
15552
15601
  const p = _useFormModel(v, y), g = computed(() => {
15553
- var L, B, Y, Q;
15554
- if (!isNil((B = (L = r == null ? void 0 : r.value) == null ? void 0 : L.KgSearch) == null ? void 0 : B.kgDisabled))
15555
- return (Q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgSearch) == null ? void 0 : Q.kgDisabled;
15602
+ var K, x, W, X;
15603
+ if (!isNil((x = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : x.kgDisabled))
15604
+ return (X = (W = r == null ? void 0 : r.value) == null ? void 0 : W.KgSearch) == null ? void 0 : X.kgDisabled;
15556
15605
  if (!isNil(e.kgDisabled))
15557
15606
  return e.kgDisabled;
15558
15607
  }), b = computed(() => {
15559
- var L, B;
15560
- return !!(g.value || l.isRetrieving.value || ((L = n.varButtonSearch.value) == null ? void 0 : L.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);
15608
+ var K, x;
15609
+ return !!(g.value || l.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
15561
15610
  }), E = computed(() => !!(g.value || l.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), C = computed(() => !!(g.value || l.isRetrieving.value)), T = ref({
15562
15611
  visible: !1
15563
- }), A = computed(() => y.value.kgHeight === m.value), k = computed(() => {
15564
- var L, B, Y;
15565
- if (n.t((L = n.varButtonSearch.value) == null ? void 0 : L.var_nam).value !== ((B = n.varButtonSearch.value) == null ? void 0 : B.var_nam))
15566
- return n.t((Y = n.varButtonSearch.value) == null ? void 0 : Y.var_nam).value;
15567
- }), R = computed(() => {
15568
- var L;
15569
- switch ((L = n.varButtonSearch.value) == null ? void 0 : L.primary_flg) {
15612
+ }), M = computed(() => y.value.kgHeight === m.value), k = computed(() => {
15613
+ var K, x, W;
15614
+ if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((x = n.varButtonSearch.value) == null ? void 0 : x.var_nam))
15615
+ return n.t((W = n.varButtonSearch.value) == null ? void 0 : W.var_nam).value;
15616
+ }), V = computed(() => {
15617
+ var K;
15618
+ switch ((K = n.varButtonSearch.value) == null ? void 0 : K.primary_flg) {
15570
15619
  case 1:
15571
15620
  return !0;
15572
15621
  case 0:
@@ -15574,34 +15623,34 @@ const KgSearch$1 = "", getProps$9 = () => ({
15574
15623
  default:
15575
15624
  return !0;
15576
15625
  }
15577
- }), D = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), I = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), M = computed(() => {
15578
- let L = "kg-search";
15579
- return o.value && (L += " kg-search--visible"), c.value && (L += " kg-search--teleport"), L;
15626
+ }), w = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), I = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), A = computed(() => {
15627
+ let K = "kg-search";
15628
+ return o.value && (K += " kg-search--visible"), c.value && (K += " kg-search--teleport"), K;
15580
15629
  });
15581
- async function P(L = !1) {
15630
+ async function P(K = !1) {
15582
15631
  if (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8FDB\u5165\u65B9\u6CD5.`), b.value) {
15583
15632
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u91CD\u7F6E\u6309\u94AE\u7981\u7528.`);
15584
15633
  return;
15585
15634
  }
15586
15635
  o.value ? v.value && v.value.validate().then(async () => {
15587
15636
  await s.store.emit(n.formID, "search", {
15588
- resetPageIndex: L
15637
+ resetPageIndex: K
15589
15638
  });
15590
- }).catch((B) => {
15639
+ }).catch((x) => {
15591
15640
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
15592
- e: B
15641
+ e: x
15593
15642
  });
15594
15643
  }) : await s.store.emit(n.formID, "search", {
15595
- resetPageIndex: L
15644
+ resetPageIndex: K
15596
15645
  });
15597
15646
  }
15598
15647
  s.store.setSearchFn(n.formID, P);
15599
15648
  async function N() {
15600
15649
  p.initFormModel(), o.value ? v.value && v.value.validate().then(async () => {
15601
15650
  await s.store.emit(n.formID, "reset", {});
15602
- }).catch((L) => {
15651
+ }).catch((K) => {
15603
15652
  KgLogger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
15604
- e: L
15653
+ e: K
15605
15654
  });
15606
15655
  }) : await s.store.emit(n.formID, "reset", {});
15607
15656
  }
@@ -15609,29 +15658,29 @@ const KgSearch$1 = "", getProps$9 = () => ({
15609
15658
  function U() {
15610
15659
  return P(!0), Promise.resolve(!0);
15611
15660
  }
15612
- function O() {
15613
- var L;
15661
+ function D() {
15662
+ var K;
15614
15663
  return createVNode("div", {
15615
15664
  class: "title",
15616
15665
  onClick: F
15617
- }, [((L = t == null ? void 0 : t.KgSearch) == null ? void 0 : L.left) && createVNode("div", {
15666
+ }, [((K = t == null ? void 0 : t.KgSearch) == null ? void 0 : K.left) && createVNode("div", {
15618
15667
  class: "kg-search-title-left",
15619
- onClick: (B) => {
15620
- B.stopPropagation(), B.preventDefault();
15668
+ onClick: (x) => {
15669
+ x.stopPropagation(), x.preventDefault();
15621
15670
  }
15622
- }, [t.KgSearch.left()]), A.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
15671
+ }, [t.KgSearch.left()]), M.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
15623
15672
  }
15624
- function w() {
15625
- var L, B, Y, Q;
15626
- return ((Y = (B = (L = n.varProfileMasters) == null ? void 0 : L.value) == null ? void 0 : B.length) != null ? Y : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
15627
- value: (Q = n.currentVarProfileMasterID.value) != null ? Q : void 0,
15673
+ function O() {
15674
+ var K, x, W, X;
15675
+ return ((W = (x = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : x.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
15676
+ value: (X = n.currentVarProfileMasterID.value) != null ? X : void 0,
15628
15677
  "onUpdate:value": (z) => n.store.setCurrentVarProfileMasterID(n.formID, z),
15629
15678
  disabled: E.value,
15630
15679
  class: "kg-search-profile-master-select"
15631
15680
  }, {
15632
15681
  default: () => {
15633
- var z, Z;
15634
- return (Z = (z = n.varProfileMasters) == null ? void 0 : z.value) == null ? void 0 : Z.map((re) => createVNode(Select.Option, {
15682
+ var z, ee;
15683
+ return (ee = (z = n.varProfileMasters) == null ? void 0 : z.value) == null ? void 0 : ee.map((re) => createVNode(Select.Option, {
15635
15684
  value: re.id
15636
15685
  }, {
15637
15686
  default: () => [n.t(re == null ? void 0 : re.prf_var_nam).value]
@@ -15654,9 +15703,9 @@ const KgSearch$1 = "", getProps$9 = () => ({
15654
15703
  hostFormID: n.formID
15655
15704
  }, null)]);
15656
15705
  }
15657
- function V() {
15658
- var L, B, Y, Q, z;
15659
- return createVNode(Fragment, null, [w(), !(((L = n.varButtonSearch.value) == null ? void 0 : L.permission_type) !== 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
15706
+ function R() {
15707
+ var K, x, W, X, z;
15708
+ return createVNode(Fragment, null, [O(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code)) && createVNode(Button, {
15660
15709
  type: "primary",
15661
15710
  ghost: !b.value,
15662
15711
  disabled: b.value,
@@ -15666,11 +15715,11 @@ const KgSearch$1 = "", getProps$9 = () => ({
15666
15715
  default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
15667
15716
  }), createVNode(KgButton.Item, {
15668
15717
  kgType: KG_BUTTON_TYPE.SEARCH,
15669
- kgVarName: (Y = n.varButtonSearch.value) == null ? void 0 : Y.var_nam,
15670
- kgIcon: (Q = n.varButtonSearch.value) == null ? void 0 : Q.icon,
15718
+ kgVarName: (W = n.varButtonSearch.value) == null ? void 0 : W.var_nam,
15719
+ kgIcon: (X = n.varButtonSearch.value) == null ? void 0 : X.icon,
15671
15720
  kgText: k.value,
15672
15721
  kgColor: (z = n.varButtonSearch.value) == null ? void 0 : z.color,
15673
- kgPrimary: R.value,
15722
+ kgPrimary: V.value,
15674
15723
  kgLoading: C.value,
15675
15724
  onKgClick: U
15676
15725
  }, null)]);
@@ -15680,19 +15729,19 @@ const KgSearch$1 = "", getProps$9 = () => ({
15680
15729
  spinning: I.value
15681
15730
  }, {
15682
15731
  default: () => {
15683
- var L;
15732
+ var K;
15684
15733
  return [createVNode(KgForm, {
15685
15734
  ref: v,
15686
- model: (L = s.model.value) != null ? L : {}
15735
+ model: (K = s.model.value) != null ? K : {}
15687
15736
  }, {
15688
15737
  default: () => [createVNode(Row, {
15689
15738
  gutter: 6
15690
15739
  }, {
15691
15740
  default: () => {
15692
- var B;
15693
- return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((Y) => createVNode(KgForm.Item, {
15694
- key: Y.var_nam,
15695
- kgVarName: Y.var_nam,
15741
+ var x;
15742
+ return [(x = n.currentVarProfileDetails.value) == null ? void 0 : x.map((W) => createVNode(KgForm.Item, {
15743
+ key: W.var_nam,
15744
+ kgVarName: W.var_nam,
15696
15745
  kgContext: KG_FORM_CONTEXT.SEARCH,
15697
15746
  onKgSubmit: () => P(!0)
15698
15747
  }, null))];
@@ -15703,15 +15752,15 @@ const KgSearch$1 = "", getProps$9 = () => ({
15703
15752
  });
15704
15753
  }
15705
15754
  function F() {
15706
- A.value ? y.value.kgHeight = u.value : y.value.kgHeight = m.value;
15755
+ M.value ? y.value.kgHeight = u.value : y.value.kgHeight = m.value;
15707
15756
  }
15708
15757
  return () => createVNode(KgResizable, {
15709
15758
  kgHeight: y.value.kgHeight,
15710
- "onUpdate:kgHeight": (L) => y.value.kgHeight = L,
15759
+ "onUpdate:kgHeight": (K) => y.value.kgHeight = K,
15711
15760
  kgMinHeight: m.value,
15712
15761
  kgMaxHeight: d.value,
15713
15762
  kgDisabled: !i.value,
15714
- kgClass: M.value,
15763
+ kgClass: A.value,
15715
15764
  "kg-frm_id": n.formID
15716
15765
  }, {
15717
15766
  default: () => [o.value && createVNode("div", {
@@ -15725,11 +15774,11 @@ const KgSearch$1 = "", getProps$9 = () => ({
15725
15774
  default: () => [createVNode("div", {
15726
15775
  class: "ant-collapse-header"
15727
15776
  }, [createVNode(Spin, {
15728
- spinning: D.value
15777
+ spinning: w.value
15729
15778
  }, {
15730
- default: () => [O(), createVNode("div", {
15779
+ default: () => [D(), createVNode("div", {
15731
15780
  class: "ant-collapse-extra"
15732
- }, [V()])]
15781
+ }, [R()])]
15733
15782
  })])]
15734
15783
  }), createVNode("div", {
15735
15784
  class: "ant-collapse-content ant-collapse-content-active"
@@ -15801,13 +15850,13 @@ function useMagicKeys(e = {}) {
15801
15850
  }
15802
15851
  function v(p, g) {
15803
15852
  var b, E;
15804
- const C = (b = p.key) == null ? void 0 : b.toLowerCase(), T = (E = p.code) == null ? void 0 : E.toLowerCase(), A = [T, C].filter(Boolean);
15853
+ const C = (b = p.key) == null ? void 0 : b.toLowerCase(), T = (E = p.code) == null ? void 0 : E.toLowerCase(), M = [T, C].filter(Boolean);
15805
15854
  T && (g ? l.add(p.code) : l.delete(p.code));
15806
- for (const k of A)
15855
+ for (const k of M)
15807
15856
  u.add(k), d(k, g);
15808
15857
  C === "meta" && !g ? (c.forEach((k) => {
15809
15858
  l.delete(k), d(k, !1);
15810
- }), c.clear()) : typeof p.getModifierState == "function" && p.getModifierState("Meta") && g && [...l, ...A].forEach((k) => c.add(k));
15859
+ }), c.clear()) : typeof p.getModifierState == "function" && p.getModifierState("Meta") && g && [...l, ...M].forEach((k) => c.add(k));
15811
15860
  }
15812
15861
  r && (useEventListener(r, "keydown", (p) => (v(p, !0), s(p)), { passive: n }), useEventListener(r, "keyup", (p) => (v(p, !1), s(p)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
15813
15862
  const y = new Proxy(i, {
@@ -16206,7 +16255,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16206
16255
  columnWidth: 32,
16207
16256
  hideSelectAll: !0,
16208
16257
  selectedRowKeys: d,
16209
- onSelect: (N) => R(N)
16258
+ onSelect: (N) => V(N)
16210
16259
  }), v = ref({
16211
16260
  visible: !1
16212
16261
  }), y = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(l))), p = computed(() => {
@@ -16218,15 +16267,15 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16218
16267
  }, {
16219
16268
  immediate: !0
16220
16269
  }), watch(() => a.getSelectedVarCatalog, async (N) => {
16221
- var U, O;
16222
- i.value.var_text = (U = N == null ? void 0 : N.var_text) != null ? U : "", (O = o.value) == null || O.clearValidate();
16270
+ var U, D;
16271
+ i.value.var_text = (U = N == null ? void 0 : N.var_text) != null ? U : "", (D = o.value) == null || D.clearValidate();
16223
16272
  });
16224
16273
  async function E(N = !1) {
16225
- var U, O, w;
16274
+ var U, D, O;
16226
16275
  n.value = !0;
16227
16276
  try {
16228
16277
  const {
16229
- records: V
16278
+ records: R
16230
16279
  } = await List({
16231
16280
  params: {
16232
16281
  pageNo: 1,
@@ -16237,49 +16286,49 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16237
16286
  order: "asc"
16238
16287
  }
16239
16288
  });
16240
- if (u.value = null, c.value = V != null ? V : [], N) {
16289
+ if (u.value = null, c.value = R != null ? R : [], N) {
16241
16290
  const G = c.value.find((F) => {
16242
- var L;
16243
- return F.id === ((L = a.getSelectedVarCatalog) == null ? void 0 : L.id);
16291
+ var K;
16292
+ return F.id === ((K = a.getSelectedVarCatalog) == null ? void 0 : K.id);
16244
16293
  });
16245
16294
  a.setSelectedVarCatalog(G != null ? G : null), d.value = G != null && G.id ? [G.id] : [];
16246
16295
  } else
16247
- a.setSelectedVarCatalog((O = c.value[0]) != null ? O : null), d.value = (w = c.value[0]) != null && w.id ? [c.value[0].id] : [];
16248
- } catch (V) {
16249
- KgLogger.debug(V == null ? void 0 : V.message);
16296
+ a.setSelectedVarCatalog((D = c.value[0]) != null ? D : null), d.value = (O = c.value[0]) != null && O.id ? [c.value[0].id] : [];
16297
+ } catch (R) {
16298
+ KgLogger.debug(R == null ? void 0 : R.message);
16250
16299
  } finally {
16251
16300
  n.value = !1;
16252
16301
  }
16253
16302
  }
16254
16303
  async function C() {
16255
- var N, U, O;
16304
+ var N, U, D;
16256
16305
  try {
16257
16306
  s.value = !0, await ((N = o.value) == null ? void 0 : N.validate());
16258
- const w = new VarCatalog({
16307
+ const O = new VarCatalog({
16259
16308
  ...(U = a.getSelectedVarCatalog) != null ? U : {},
16260
- var_text: (O = i.value) == null ? void 0 : O.var_text
16309
+ var_text: (D = i.value) == null ? void 0 : D.var_text
16261
16310
  });
16262
- w.id ? w.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (w.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(w, "id"), await Add({
16263
- data: w
16311
+ O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add({
16312
+ data: O
16264
16313
  }, {
16265
16314
  successMessageMode: "none"
16266
16315
  }), message.success({
16267
16316
  content: t.t("kg.KgVarConfig.createSuccess")
16268
16317
  }), await E()) : (await Edit({
16269
- data: w
16318
+ data: O
16270
16319
  }, {
16271
16320
  successMessageMode: "none"
16272
16321
  }), message.success({
16273
16322
  content: t.t("kg.KgVarConfig.saveSuccess")
16274
16323
  }), await E(!0)) : (await Add({
16275
- data: w
16324
+ data: O
16276
16325
  }, {
16277
16326
  successMessageMode: "none"
16278
16327
  }), message.success({
16279
16328
  content: t.t("kg.KgVarConfig.createSuccess")
16280
16329
  }), await E()), r.retrieve(e == null ? void 0 : e.value);
16281
- } catch (w) {
16282
- KgUtil.throwIfNotFormError(w);
16330
+ } catch (O) {
16331
+ KgUtil.throwIfNotFormError(O);
16283
16332
  } finally {
16284
16333
  s.value = !1;
16285
16334
  }
@@ -16288,18 +16337,18 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16288
16337
  isAllForm: N,
16289
16338
  isAllLanguage: U
16290
16339
  }) {
16291
- var O, w, V;
16340
+ var D, O, R;
16292
16341
  u.value = new VarCatalog({
16293
16342
  id: "",
16294
16343
  cust_lvl: KG_CUSTOM_LEVEL.L10,
16295
- grp_nam: (O = a.getSelectedVar) == null ? void 0 : O.grp_nam,
16296
- var_nam: (w = a.getSelectedVar) == null ? void 0 : w.var_nam,
16344
+ grp_nam: (D = a.getSelectedVar) == null ? void 0 : D.grp_nam,
16345
+ var_nam: (O = a.getSelectedVar) == null ? void 0 : O.var_nam,
16297
16346
  frm_id: N || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
16298
- locale_id: U ? "ALL" : (V = t.locale) == null ? void 0 : V.value,
16347
+ locale_id: U ? "ALL" : (R = t.locale) == null ? void 0 : R.value,
16299
16348
  var_text: ""
16300
16349
  }), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
16301
16350
  }
16302
- function A() {
16351
+ function M() {
16303
16352
  var U;
16304
16353
  c.value = without$1(c.value, u.value), u.value = null;
16305
16354
  const N = (U = c.value[0]) != null ? U : null;
@@ -16322,7 +16371,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16322
16371
  }
16323
16372
  });
16324
16373
  }
16325
- function R(N) {
16374
+ function V(N) {
16326
16375
  var U;
16327
16376
  ((U = a.getSelectedVarCatalog) == null ? void 0 : U.id) !== N.id && (unref(u) ? KgUtil.confirm({
16328
16377
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
@@ -16331,14 +16380,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16331
16380
  }
16332
16381
  }) : (a.setSelectedVarCatalog(unref(N)), d.value = [N.id]));
16333
16382
  }
16334
- function D() {
16383
+ function w() {
16335
16384
  v.value.visible = !0;
16336
16385
  }
16337
16386
  function I() {
16338
16387
  return createVNode("div", {
16339
16388
  class: "buttons"
16340
16389
  }, [createVNode(Button, {
16341
- onClick: D,
16390
+ onClick: w,
16342
16391
  disabled: y.value,
16343
16392
  type: "primary"
16344
16393
  }, {
@@ -16353,7 +16402,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16353
16402
  default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
16354
16403
  })]);
16355
16404
  }
16356
- function M() {
16405
+ function A() {
16357
16406
  let N, U;
16358
16407
  return createVNode("div", {
16359
16408
  class: "form"
@@ -16371,7 +16420,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16371
16420
  }, {
16372
16421
  default: () => [createVNode(Textarea, {
16373
16422
  value: i.value.var_text,
16374
- "onUpdate:value": (O) => i.value.var_text = O,
16423
+ "onUpdate:value": (D) => i.value.var_text = D,
16375
16424
  disabled: !a.getSelectedVarCatalog
16376
16425
  }, null), createVNode("button", {
16377
16426
  hidden: !0
@@ -16381,7 +16430,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16381
16430
  class: "buttons"
16382
16431
  }, [createVNode(Button, {
16383
16432
  disabled: g.value,
16384
- onClick: A
16433
+ onClick: M
16385
16434
  }, _isSlot(N = t.t("common.cancelText")) ? N : {
16386
16435
  default: () => [N]
16387
16436
  }), createVNode(Button, {
@@ -16394,9 +16443,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16394
16443
  })])]);
16395
16444
  }
16396
16445
  function P(N) {
16397
- var O;
16446
+ var D;
16398
16447
  let U = "";
16399
- return N.id || (U += " ant-table-row-create"), N.id === ((O = a.getSelectedVarCatalog) == null ? void 0 : O.id) && (U += " ant-table-row-selected "), U;
16448
+ return N.id || (U += " ant-table-row-create"), N.id === ((D = a.getSelectedVarCatalog) == null ? void 0 : D.id) && (U += " ant-table-row-selected "), U;
16400
16449
  }
16401
16450
  return () => createVNode("div", {
16402
16451
  class: "kg-var-config-modal-var-var-catalog"
@@ -16415,9 +16464,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16415
16464
  rowClassName: P,
16416
16465
  rowSelection: m.value,
16417
16466
  customRow: (N) => ({
16418
- onClick: () => R(N)
16467
+ onClick: () => V(N)
16419
16468
  })
16420
- }, null), M(), createVNode(KgVarConfigModalVarCreateModal, {
16469
+ }, null), A(), createVNode(KgVarConfigModalVarCreateModal, {
16421
16470
  visible: v.value.visible,
16422
16471
  "onUpdate:visible": (N) => v.value.visible = N,
16423
16472
  onKgOk: T
@@ -16743,22 +16792,22 @@ const KgWarehouse$1 = "", getProps = () => ({
16743
16792
  customRender: ({
16744
16793
  record: T
16745
16794
  }) => {
16746
- var k, R, D;
16747
- const A = T;
16748
- return createVNode("div", null, [createVNode("div", null, [(k = A.whDsc) != null ? k : " ", createTextVNode(" - "), (R = A.whId) != null ? R : " "]), createVNode("div", {
16795
+ var k, V, w;
16796
+ const M = T;
16797
+ return createVNode("div", null, [createVNode("div", null, [(k = M.whDsc) != null ? k : " ", createTextVNode(" - "), (V = M.whId) != null ? V : " "]), createVNode("div", {
16749
16798
  class: "address"
16750
- }, [(D = A.adrId) != null ? D : " "])]);
16799
+ }, [(w = M.adrId) != null ? w : " "])]);
16751
16800
  }
16752
16801
  }]), u = ref([]), d = computed(() => {
16753
- var A;
16754
- const T = (A = s.value) == null ? void 0 : A.toUpperCase();
16802
+ var M;
16803
+ const T = (M = s.value) == null ? void 0 : M.toUpperCase();
16755
16804
  return u.value.filter((k) => {
16756
- var R, D, I, M, P, N;
16757
- return ((D = (R = k.whDsc) == null ? void 0 : R.toUpperCase()) == null ? void 0 : D.includes(T)) || ((M = (I = k.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : M.includes(T)) || ((N = (P = k.adrId) == null ? void 0 : P.toUpperCase()) == null ? void 0 : N.includes(T));
16805
+ var V, w, I, A, P, N;
16806
+ return ((w = (V = k.whDsc) == null ? void 0 : V.toUpperCase()) == null ? void 0 : w.includes(T)) || ((A = (I = k.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : A.includes(T)) || ((N = (P = k.adrId) == null ? void 0 : P.toUpperCase()) == null ? void 0 : N.includes(T));
16758
16807
  });
16759
16808
  }), m = computed(() => {
16760
- var T, A;
16761
- return ((A = (T = r.option.value) == null ? void 0 : T.KgWarehouse) == null ? void 0 : A.enable) !== !1;
16809
+ var T, M;
16810
+ return ((M = (T = r.option.value) == null ? void 0 : T.KgWarehouse) == null ? void 0 : M.enable) !== !1;
16762
16811
  });
16763
16812
  watch(a.visible, (T) => {
16764
16813
  !m.value || (T ? y() : p());
@@ -16808,14 +16857,14 @@ const KgWarehouse$1 = "", getProps = () => ({
16808
16857
  i.value = !1;
16809
16858
  }
16810
16859
  }
16811
- function E(T, A) {
16860
+ function E(T, M) {
16812
16861
  var k;
16813
16862
  switch (T.detail) {
16814
16863
  case 1:
16815
- ((k = o.value) == null ? void 0 : k.id) === A.id ? o.value = null : o.value = A;
16864
+ ((k = o.value) == null ? void 0 : k.id) === M.id ? o.value = null : o.value = M;
16816
16865
  break;
16817
16866
  case 2:
16818
- o.value = A, g();
16867
+ o.value = M, g();
16819
16868
  break;
16820
16869
  }
16821
16870
  }
@@ -16825,8 +16874,8 @@ const KgWarehouse$1 = "", getProps = () => ({
16825
16874
  placement: "bottomRight"
16826
16875
  }, {
16827
16876
  default: () => {
16828
- var T, A;
16829
- return [((T = l.value) == null ? void 0 : T.whDsc) || ((A = l.value) == null ? void 0 : A.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
16877
+ var T, M;
16878
+ return [((T = l.value) == null ? void 0 : T.whDsc) || ((M = l.value) == null ? void 0 : M.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
16830
16879
  }
16831
16880
  }), createVNode(KgModal, {
16832
16881
  visible: a.visible.value,
@@ -16868,9 +16917,9 @@ const KgWarehouse$1 = "", getProps = () => ({
16868
16917
  columns: c,
16869
16918
  class: "kg-flex-table",
16870
16919
  customRow: (T) => {
16871
- var A;
16920
+ var M;
16872
16921
  return {
16873
- class: T.id === ((A = o.value) == null ? void 0 : A.id) ? "selected" : "",
16922
+ class: T.id === ((M = o.value) == null ? void 0 : M.id) ? "selected" : "",
16874
16923
  onClick: (k) => E(k, T)
16875
16924
  };
16876
16925
  }