@kengic/vue 0.5.16-beta.0 → 0.5.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2404,8 +2404,8 @@ function equalObjects(e, t, r, n, a, o) {
2404
2404
  v || (v = m == "constructor");
2405
2405
  }
2406
2406
  if (_ && !v) {
2407
- var I = e.constructor, P = t.constructor;
2408
- I != P && "constructor" in e && "constructor" in t && !(typeof I == "function" && I instanceof I && typeof P == "function" && P instanceof P) && (_ = !1);
2407
+ var A = e.constructor, P = t.constructor;
2408
+ A != P && "constructor" in e && "constructor" in t && !(typeof A == "function" && A instanceof A && typeof P == "function" && P instanceof P) && (_ = !1);
2409
2409
  }
2410
2410
  return o.delete(e), o.delete(t), _;
2411
2411
  }
@@ -3478,7 +3478,7 @@ var Icon$1 = function(t, r) {
3478
3478
  var v = l ? {
3479
3479
  msTransform: "rotate(".concat(l, "deg)"),
3480
3480
  transform: "rotate(".concat(l, "deg)")
3481
- } : void 0, C = normalizeTwoToneColors(c), y = _slicedToArray(C, 2), E = y[0], I = y[1];
3481
+ } : void 0, C = normalizeTwoToneColors(c), y = _slicedToArray(C, 2), E = y[0], A = y[1];
3482
3482
  return createVNode("span", _objectSpread$i({
3483
3483
  role: "img",
3484
3484
  "aria-label": s.name
@@ -3489,7 +3489,7 @@ var Icon$1 = function(t, r) {
3489
3489
  class: b,
3490
3490
  icon: s,
3491
3491
  primaryColor: E,
3492
- secondaryColor: I,
3492
+ secondaryColor: A,
3493
3493
  style: v
3494
3494
  }, null)]);
3495
3495
  };
@@ -4437,207 +4437,207 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4437
4437
  (function(r, n) {
4438
4438
  e.exports = n();
4439
4439
  })(commonjsGlobal, function() {
4440
- var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", d = "month", m = "quarter", p = "year", b = "date", _ = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
4441
- var $ = ["th", "st", "nd", "rd"], A = w % 100;
4442
- return "[" + w + ($[(A - 20) % 10] || $[A] || $[0]) + "]";
4443
- } }, E = function(w, $, A) {
4444
- var L = String(w);
4445
- return !L || L.length >= $ ? w : "" + Array($ + 1 - L.length).join(A) + w;
4446
- }, I = { s: E, z: function(w) {
4447
- var $ = -w.utcOffset(), A = Math.abs($), L = Math.floor(A / 60), R = A % 60;
4448
- return ($ <= 0 ? "+" : "-") + E(L, 2, "0") + ":" + E(R, 2, "0");
4449
- }, m: function w($, A) {
4450
- if ($.date() < A.date())
4451
- return -w(A, $);
4452
- var L = 12 * (A.year() - $.year()) + (A.month() - $.month()), R = $.clone().add(L, d), H = A - R < 0, N = $.clone().add(L + (H ? -1 : 1), d);
4453
- return +(-(L + (A - R) / (H ? R - N : N - R)) || 0);
4454
- }, a: function(w) {
4455
- return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
4456
- }, p: function(w) {
4457
- return { M: d, y: p, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: m }[w] || String(w || "").toLowerCase().replace(/s$/, "");
4458
- }, u: function(w) {
4459
- return w === void 0;
4440
+ var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", d = "month", m = "quarter", p = "year", b = "date", _ = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function($) {
4441
+ var M = ["th", "st", "nd", "rd"], O = $ % 100;
4442
+ return "[" + $ + (M[(O - 20) % 10] || M[O] || M[0]) + "]";
4443
+ } }, E = function($, M, O) {
4444
+ var F = String($);
4445
+ return !F || F.length >= M ? $ : "" + Array(M + 1 - F.length).join(O) + $;
4446
+ }, A = { s: E, z: function($) {
4447
+ var M = -$.utcOffset(), O = Math.abs(M), F = Math.floor(O / 60), R = O % 60;
4448
+ return (M <= 0 ? "+" : "-") + E(F, 2, "0") + ":" + E(R, 2, "0");
4449
+ }, m: function $(M, O) {
4450
+ if (M.date() < O.date())
4451
+ return -$(O, M);
4452
+ var F = 12 * (O.year() - M.year()) + (O.month() - M.month()), R = M.clone().add(F, d), G = O - R < 0, V = M.clone().add(F + (G ? -1 : 1), d);
4453
+ return +(-(F + (O - R) / (G ? R - V : V - R)) || 0);
4454
+ }, a: function($) {
4455
+ return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
4456
+ }, p: function($) {
4457
+ return { M: d, y: p, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: m }[$] || String($ || "").toLowerCase().replace(/s$/, "");
4458
+ }, u: function($) {
4459
+ return $ === void 0;
4460
4460
  } }, P = "en", T = {};
4461
4461
  T[P] = y;
4462
- var B = function(w) {
4463
- return w instanceof M;
4464
- }, F = function w($, A, L) {
4462
+ var B = function($) {
4463
+ return $ instanceof w;
4464
+ }, N = function $(M, O, F) {
4465
4465
  var R;
4466
- if (!$)
4466
+ if (!M)
4467
4467
  return P;
4468
- if (typeof $ == "string") {
4469
- var H = $.toLowerCase();
4470
- T[H] && (R = H), A && (T[H] = A, R = H);
4471
- var N = $.split("-");
4472
- if (!R && N.length > 1)
4473
- return w(N[0]);
4468
+ if (typeof M == "string") {
4469
+ var G = M.toLowerCase();
4470
+ T[G] && (R = G), O && (T[G] = O, R = G);
4471
+ var V = M.split("-");
4472
+ if (!R && V.length > 1)
4473
+ return $(V[0]);
4474
4474
  } else {
4475
- var U = $.name;
4476
- T[U] = $, R = U;
4477
- }
4478
- return !L && R && (P = R), R || !L && P;
4479
- }, O = function(w, $) {
4480
- if (B(w))
4481
- return w.clone();
4482
- var A = typeof $ == "object" ? $ : {};
4483
- return A.date = w, A.args = arguments, new M(A);
4484
- }, k = I;
4485
- k.l = F, k.i = B, k.w = function(w, $) {
4486
- return O(w, { locale: $.$L, utc: $.$u, x: $.$x, $offset: $.$offset });
4475
+ var U = M.name;
4476
+ T[U] = M, R = U;
4477
+ }
4478
+ return !F && R && (P = R), R || !F && P;
4479
+ }, k = function($, M) {
4480
+ if (B($))
4481
+ return $.clone();
4482
+ var O = typeof M == "object" ? M : {};
4483
+ return O.date = $, O.args = arguments, new w(O);
4484
+ }, I = A;
4485
+ I.l = N, I.i = B, I.w = function($, M) {
4486
+ return k($, { locale: M.$L, utc: M.$u, x: M.$x, $offset: M.$offset });
4487
4487
  };
4488
- var M = function() {
4489
- function w(A) {
4490
- this.$L = F(A.locale, null, !0), this.parse(A);
4491
- }
4492
- var $ = w.prototype;
4493
- return $.parse = function(A) {
4494
- this.$d = function(L) {
4495
- var R = L.date, H = L.utc;
4488
+ var w = function() {
4489
+ function $(O) {
4490
+ this.$L = N(O.locale, null, !0), this.parse(O);
4491
+ }
4492
+ var M = $.prototype;
4493
+ return M.parse = function(O) {
4494
+ this.$d = function(F) {
4495
+ var R = F.date, G = F.utc;
4496
4496
  if (R === null)
4497
4497
  return new Date(NaN);
4498
- if (k.u(R))
4498
+ if (I.u(R))
4499
4499
  return new Date();
4500
4500
  if (R instanceof Date)
4501
4501
  return new Date(R);
4502
4502
  if (typeof R == "string" && !/Z$/i.test(R)) {
4503
- var N = R.match(v);
4504
- if (N) {
4505
- var U = N[2] - 1 || 0, z = (N[7] || "0").substring(0, 3);
4506
- return H ? new Date(Date.UTC(N[1], U, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, z)) : new Date(N[1], U, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, z);
4503
+ var V = R.match(v);
4504
+ if (V) {
4505
+ var U = V[2] - 1 || 0, H = (V[7] || "0").substring(0, 3);
4506
+ return G ? new Date(Date.UTC(V[1], U, V[3] || 1, V[4] || 0, V[5] || 0, V[6] || 0, H)) : new Date(V[1], U, V[3] || 1, V[4] || 0, V[5] || 0, V[6] || 0, H);
4507
4507
  }
4508
4508
  }
4509
4509
  return new Date(R);
4510
- }(A), this.$x = A.x || {}, this.init();
4511
- }, $.init = function() {
4512
- var A = this.$d;
4513
- this.$y = A.getFullYear(), this.$M = A.getMonth(), this.$D = A.getDate(), this.$W = A.getDay(), this.$H = A.getHours(), this.$m = A.getMinutes(), this.$s = A.getSeconds(), this.$ms = A.getMilliseconds();
4514
- }, $.$utils = function() {
4515
- return k;
4516
- }, $.isValid = function() {
4510
+ }(O), this.$x = O.x || {}, this.init();
4511
+ }, M.init = function() {
4512
+ var O = this.$d;
4513
+ this.$y = O.getFullYear(), this.$M = O.getMonth(), this.$D = O.getDate(), this.$W = O.getDay(), this.$H = O.getHours(), this.$m = O.getMinutes(), this.$s = O.getSeconds(), this.$ms = O.getMilliseconds();
4514
+ }, M.$utils = function() {
4515
+ return I;
4516
+ }, M.isValid = function() {
4517
4517
  return this.$d.toString() !== _;
4518
- }, $.isSame = function(A, L) {
4519
- var R = O(A);
4520
- return this.startOf(L) <= R && R <= this.endOf(L);
4521
- }, $.isAfter = function(A, L) {
4522
- return O(A) < this.startOf(L);
4523
- }, $.isBefore = function(A, L) {
4524
- return this.endOf(L) < O(A);
4525
- }, $.$g = function(A, L, R) {
4526
- return k.u(A) ? this[L] : this.set(R, A);
4527
- }, $.unix = function() {
4518
+ }, M.isSame = function(O, F) {
4519
+ var R = k(O);
4520
+ return this.startOf(F) <= R && R <= this.endOf(F);
4521
+ }, M.isAfter = function(O, F) {
4522
+ return k(O) < this.startOf(F);
4523
+ }, M.isBefore = function(O, F) {
4524
+ return this.endOf(F) < k(O);
4525
+ }, M.$g = function(O, F, R) {
4526
+ return I.u(O) ? this[F] : this.set(R, O);
4527
+ }, M.unix = function() {
4528
4528
  return Math.floor(this.valueOf() / 1e3);
4529
- }, $.valueOf = function() {
4529
+ }, M.valueOf = function() {
4530
4530
  return this.$d.getTime();
4531
- }, $.startOf = function(A, L) {
4532
- var R = this, H = !!k.u(L) || L, N = k.p(A), U = function(q, G) {
4533
- var Z = k.w(R.$u ? Date.UTC(R.$y, G, q) : new Date(R.$y, G, q), R);
4534
- return H ? Z : Z.endOf(u);
4535
- }, z = function(q, G) {
4536
- return k.w(R.toDate()[q].apply(R.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), R);
4537
- }, X = this.$W, Q = this.$M, se = this.$D, ee = "set" + (this.$u ? "UTC" : "");
4538
- switch (N) {
4531
+ }, M.startOf = function(O, F) {
4532
+ var R = this, G = !!I.u(F) || F, V = I.p(O), U = function(ee, z) {
4533
+ var re = I.w(R.$u ? Date.UTC(R.$y, z, ee) : new Date(R.$y, z, ee), R);
4534
+ return G ? re : re.endOf(u);
4535
+ }, H = function(ee, z) {
4536
+ return I.w(R.toDate()[ee].apply(R.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), R);
4537
+ }, Q = this.$W, J = this.$M, D = this.$D, x = "set" + (this.$u ? "UTC" : "");
4538
+ switch (V) {
4539
4539
  case p:
4540
- return H ? U(1, 0) : U(31, 11);
4540
+ return G ? U(1, 0) : U(31, 11);
4541
4541
  case d:
4542
- return H ? U(1, Q) : U(0, Q + 1);
4542
+ return G ? U(1, J) : U(0, J + 1);
4543
4543
  case c:
4544
- var V = this.$locale().weekStart || 0, x = (X < V ? X + 7 : X) - V;
4545
- return U(H ? se - x : se + (6 - x), Q);
4544
+ var X = this.$locale().weekStart || 0, q = (Q < X ? Q + 7 : Q) - X;
4545
+ return U(G ? D - q : D + (6 - q), J);
4546
4546
  case u:
4547
4547
  case b:
4548
- return z(ee + "Hours", 0);
4548
+ return H(x + "Hours", 0);
4549
4549
  case l:
4550
- return z(ee + "Minutes", 1);
4550
+ return H(x + "Minutes", 1);
4551
4551
  case i:
4552
- return z(ee + "Seconds", 2);
4552
+ return H(x + "Seconds", 2);
4553
4553
  case s:
4554
- return z(ee + "Milliseconds", 3);
4554
+ return H(x + "Milliseconds", 3);
4555
4555
  default:
4556
4556
  return this.clone();
4557
4557
  }
4558
- }, $.endOf = function(A) {
4559
- return this.startOf(A, !1);
4560
- }, $.$set = function(A, L) {
4561
- var R, H = k.p(A), N = "set" + (this.$u ? "UTC" : ""), U = (R = {}, R[u] = N + "Date", R[b] = N + "Date", R[d] = N + "Month", R[p] = N + "FullYear", R[l] = N + "Hours", R[i] = N + "Minutes", R[s] = N + "Seconds", R[o] = N + "Milliseconds", R)[H], z = H === u ? this.$D + (L - this.$W) : L;
4562
- if (H === d || H === p) {
4563
- var X = this.clone().set(b, 1);
4564
- X.$d[U](z), X.init(), this.$d = X.set(b, Math.min(this.$D, X.daysInMonth())).$d;
4558
+ }, M.endOf = function(O) {
4559
+ return this.startOf(O, !1);
4560
+ }, M.$set = function(O, F) {
4561
+ var R, G = I.p(O), V = "set" + (this.$u ? "UTC" : ""), U = (R = {}, R[u] = V + "Date", R[b] = V + "Date", R[d] = V + "Month", R[p] = V + "FullYear", R[l] = V + "Hours", R[i] = V + "Minutes", R[s] = V + "Seconds", R[o] = V + "Milliseconds", R)[G], H = G === u ? this.$D + (F - this.$W) : F;
4562
+ if (G === d || G === p) {
4563
+ var Q = this.clone().set(b, 1);
4564
+ Q.$d[U](H), Q.init(), this.$d = Q.set(b, Math.min(this.$D, Q.daysInMonth())).$d;
4565
4565
  } else
4566
- U && this.$d[U](z);
4566
+ U && this.$d[U](H);
4567
4567
  return this.init(), this;
4568
- }, $.set = function(A, L) {
4569
- return this.clone().$set(A, L);
4570
- }, $.get = function(A) {
4571
- return this[k.p(A)]();
4572
- }, $.add = function(A, L) {
4573
- var R, H = this;
4574
- A = Number(A);
4575
- var N = k.p(L), U = function(Q) {
4576
- var se = O(H);
4577
- return k.w(se.date(se.date() + Math.round(Q * A)), H);
4568
+ }, M.set = function(O, F) {
4569
+ return this.clone().$set(O, F);
4570
+ }, M.get = function(O) {
4571
+ return this[I.p(O)]();
4572
+ }, M.add = function(O, F) {
4573
+ var R, G = this;
4574
+ O = Number(O);
4575
+ var V = I.p(F), U = function(J) {
4576
+ var D = k(G);
4577
+ return I.w(D.date(D.date() + Math.round(J * O)), G);
4578
4578
  };
4579
- if (N === d)
4580
- return this.set(d, this.$M + A);
4581
- if (N === p)
4582
- return this.set(p, this.$y + A);
4583
- if (N === u)
4579
+ if (V === d)
4580
+ return this.set(d, this.$M + O);
4581
+ if (V === p)
4582
+ return this.set(p, this.$y + O);
4583
+ if (V === u)
4584
4584
  return U(1);
4585
- if (N === c)
4585
+ if (V === c)
4586
4586
  return U(7);
4587
- var z = (R = {}, R[i] = n, R[l] = a, R[s] = r, R)[N] || 1, X = this.$d.getTime() + A * z;
4588
- return k.w(X, this);
4589
- }, $.subtract = function(A, L) {
4590
- return this.add(-1 * A, L);
4591
- }, $.format = function(A) {
4592
- var L = this, R = this.$locale();
4587
+ var H = (R = {}, R[i] = n, R[l] = a, R[s] = r, R)[V] || 1, Q = this.$d.getTime() + O * H;
4588
+ return I.w(Q, this);
4589
+ }, M.subtract = function(O, F) {
4590
+ return this.add(-1 * O, F);
4591
+ }, M.format = function(O) {
4592
+ var F = this, R = this.$locale();
4593
4593
  if (!this.isValid())
4594
4594
  return R.invalidDate || _;
4595
- var H = A || "YYYY-MM-DDTHH:mm:ssZ", N = k.z(this), U = this.$H, z = this.$m, X = this.$M, Q = R.weekdays, se = R.months, ee = function(G, Z, te, le) {
4596
- return G && (G[Z] || G(L, H)) || te[Z].slice(0, le);
4597
- }, V = function(G) {
4598
- return k.s(U % 12 || 12, G, "0");
4599
- }, x = R.meridiem || function(G, Z, te) {
4600
- var le = G < 12 ? "AM" : "PM";
4601
- return te ? le.toLowerCase() : le;
4602
- }, q = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: X + 1, MM: k.s(X + 1, 2, "0"), MMM: ee(R.monthsShort, X, se, 3), MMMM: ee(se, X), D: this.$D, DD: k.s(this.$D, 2, "0"), d: String(this.$W), dd: ee(R.weekdaysMin, this.$W, Q, 2), ddd: ee(R.weekdaysShort, this.$W, Q, 3), dddd: Q[this.$W], H: String(U), HH: k.s(U, 2, "0"), h: V(1), hh: V(2), a: x(U, z, !0), A: x(U, z, !1), m: String(z), mm: k.s(z, 2, "0"), s: String(this.$s), ss: k.s(this.$s, 2, "0"), SSS: k.s(this.$ms, 3, "0"), Z: N };
4603
- return H.replace(C, function(G, Z) {
4604
- return Z || q[G] || N.replace(":", "");
4595
+ var G = O || "YYYY-MM-DDTHH:mm:ssZ", V = I.z(this), U = this.$H, H = this.$m, Q = this.$M, J = R.weekdays, D = R.months, x = function(z, re, ie, le) {
4596
+ return z && (z[re] || z(F, G)) || ie[re].slice(0, le);
4597
+ }, X = function(z) {
4598
+ return I.s(U % 12 || 12, z, "0");
4599
+ }, q = R.meridiem || function(z, re, ie) {
4600
+ var le = z < 12 ? "AM" : "PM";
4601
+ return ie ? le.toLowerCase() : le;
4602
+ }, ee = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Q + 1, MM: I.s(Q + 1, 2, "0"), MMM: x(R.monthsShort, Q, D, 3), MMMM: x(D, Q), D: this.$D, DD: I.s(this.$D, 2, "0"), d: String(this.$W), dd: x(R.weekdaysMin, this.$W, J, 2), ddd: x(R.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(U), HH: I.s(U, 2, "0"), h: X(1), hh: X(2), a: q(U, H, !0), A: q(U, H, !1), m: String(H), mm: I.s(H, 2, "0"), s: String(this.$s), ss: I.s(this.$s, 2, "0"), SSS: I.s(this.$ms, 3, "0"), Z: V };
4603
+ return G.replace(C, function(z, re) {
4604
+ return re || ee[z] || V.replace(":", "");
4605
4605
  });
4606
- }, $.utcOffset = function() {
4606
+ }, M.utcOffset = function() {
4607
4607
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4608
- }, $.diff = function(A, L, R) {
4609
- var H, N = k.p(L), U = O(A), z = (U.utcOffset() - this.utcOffset()) * n, X = this - U, Q = k.m(this, U);
4610
- return Q = (H = {}, H[p] = Q / 12, H[d] = Q, H[m] = Q / 3, H[c] = (X - z) / 6048e5, H[u] = (X - z) / 864e5, H[l] = X / a, H[i] = X / n, H[s] = X / r, H)[N] || X, R ? Q : k.a(Q);
4611
- }, $.daysInMonth = function() {
4608
+ }, M.diff = function(O, F, R) {
4609
+ var G, V = I.p(F), U = k(O), H = (U.utcOffset() - this.utcOffset()) * n, Q = this - U, J = I.m(this, U);
4610
+ return J = (G = {}, G[p] = J / 12, G[d] = J, G[m] = J / 3, G[c] = (Q - H) / 6048e5, G[u] = (Q - H) / 864e5, G[l] = Q / a, G[i] = Q / n, G[s] = Q / r, G)[V] || Q, R ? J : I.a(J);
4611
+ }, M.daysInMonth = function() {
4612
4612
  return this.endOf(d).$D;
4613
- }, $.$locale = function() {
4613
+ }, M.$locale = function() {
4614
4614
  return T[this.$L];
4615
- }, $.locale = function(A, L) {
4616
- if (!A)
4615
+ }, M.locale = function(O, F) {
4616
+ if (!O)
4617
4617
  return this.$L;
4618
- var R = this.clone(), H = F(A, L, !0);
4619
- return H && (R.$L = H), R;
4620
- }, $.clone = function() {
4621
- return k.w(this.$d, this);
4622
- }, $.toDate = function() {
4618
+ var R = this.clone(), G = N(O, F, !0);
4619
+ return G && (R.$L = G), R;
4620
+ }, M.clone = function() {
4621
+ return I.w(this.$d, this);
4622
+ }, M.toDate = function() {
4623
4623
  return new Date(this.valueOf());
4624
- }, $.toJSON = function() {
4624
+ }, M.toJSON = function() {
4625
4625
  return this.isValid() ? this.toISOString() : null;
4626
- }, $.toISOString = function() {
4626
+ }, M.toISOString = function() {
4627
4627
  return this.$d.toISOString();
4628
- }, $.toString = function() {
4628
+ }, M.toString = function() {
4629
4629
  return this.$d.toUTCString();
4630
- }, w;
4631
- }(), D = M.prototype;
4632
- return O.prototype = D, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", d], ["$y", p], ["$D", b]].forEach(function(w) {
4633
- D[w[1]] = function($) {
4634
- return this.$g($, w[0], w[1]);
4630
+ }, $;
4631
+ }(), L = w.prototype;
4632
+ return k.prototype = L, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", d], ["$y", p], ["$D", b]].forEach(function($) {
4633
+ L[$[1]] = function(M) {
4634
+ return this.$g(M, $[0], $[1]);
4635
4635
  };
4636
- }), O.extend = function(w, $) {
4637
- return w.$i || (w($, M, O), w.$i = !0), O;
4638
- }, O.locale = F, O.isDayjs = B, O.unix = function(w) {
4639
- return O(1e3 * w);
4640
- }, O.en = T[P], O.Ls = T, O.p = {}, O;
4636
+ }), k.extend = function($, M) {
4637
+ return $.$i || ($(M, w, k), $.$i = !0), k;
4638
+ }, k.locale = N, k.isDayjs = B, k.unix = function($) {
4639
+ return k(1e3 * $);
4640
+ }, k.en = T[P], k.Ls = T, k.p = {}, k;
4641
4641
  });
4642
4642
  })(dayjs_min);
4643
4643
  const dayjs = dayjs_min.exports;
@@ -4682,25 +4682,25 @@ function filesize(e, {
4682
4682
  roundingMethod: _ = ROUND,
4683
4683
  precision: v = 0
4684
4684
  } = {}) {
4685
- let C = b, y = Number(e), E = [], I = 0, P = EMPTY;
4685
+ let C = b, y = Number(e), E = [], A = 0, P = EMPTY;
4686
4686
  n === -1 && c.length === 0 ? (n = 10, c = JEDEC) : n === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, n = c === IEC ? 2 : 10) : (n = n === 2 ? 2 : 10, c = n === 10 || c === JEDEC ? JEDEC : IEC);
4687
- const T = n === 10 ? 1e3 : 1024, B = m === !0, F = y < 0, O = Math[_];
4687
+ const T = n === 10 ? 1e3 : 1024, B = m === !0, N = y < 0, k = Math[_];
4688
4688
  if (typeof e != "bigint" && isNaN(e))
4689
4689
  throw new TypeError(INVALID_NUMBER);
4690
- if (typeof O !== FUNCTION)
4690
+ if (typeof k !== FUNCTION)
4691
4691
  throw new TypeError(INVALID_ROUND);
4692
- if (F && (y = -y), (C === -1 || isNaN(C)) && (C = Math.floor(Math.log(y) / Math.log(T)), C < 0 && (C = 0)), C > 8 && (v > 0 && (v += 8 - C), C = 8), d === EXPONENT)
4692
+ if (N && (y = -y), (C === -1 || isNaN(C)) && (C = Math.floor(Math.log(y) / Math.log(T)), C < 0 && (C = 0)), C > 8 && (v > 0 && (v += 8 - C), C = 8), d === EXPONENT)
4693
4693
  return C;
4694
4694
  if (y === 0)
4695
4695
  E[0] = 0, P = E[1] = STRINGS.symbol[c][t ? BITS : BYTES][C];
4696
4696
  else {
4697
- I = y / (n === 2 ? Math.pow(2, C * 10) : Math.pow(1e3, C)), t && (I = I * 8, I >= T && C < 8 && (I = I / T, C++));
4698
- const k = Math.pow(10, C > 0 ? a : 0);
4699
- E[0] = O(I * k) / k, E[0] === T && C < 8 && b === -1 && (E[0] = 1, C++), P = E[1] = n === 10 && C === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][C];
4697
+ A = y / (n === 2 ? Math.pow(2, C * 10) : Math.pow(1e3, C)), t && (A = A * 8, A >= T && C < 8 && (A = A / T, C++));
4698
+ const I = Math.pow(10, C > 0 ? a : 0);
4699
+ E[0] = k(A * I) / I, E[0] === T && C < 8 && b === -1 && (E[0] = 1, C++), P = E[1] = n === 10 && C === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][C];
4700
4700
  }
4701
- if (F && (E[0] = -E[0]), v > 0 && (E[0] = E[0].toPrecision(v)), E[1] = u[E[1]] || E[1], o === !0 ? E[0] = E[0].toLocaleString() : o.length > 0 ? E[0] = E[0].toLocaleString(o, s) : i.length > 0 && (E[0] = E[0].toString().replace(PERIOD, i)), r && Number.isInteger(E[0]) === !1 && a > 0) {
4702
- const k = i || PERIOD, M = E[0].toString().split(k), D = M[1] || EMPTY, w = D.length, $ = a - w;
4703
- E[0] = `${M[0]}${k}${D.padEnd(w + $, ZERO)}`;
4701
+ if (N && (E[0] = -E[0]), v > 0 && (E[0] = E[0].toPrecision(v)), E[1] = u[E[1]] || E[1], o === !0 ? E[0] = E[0].toLocaleString() : o.length > 0 ? E[0] = E[0].toLocaleString(o, s) : i.length > 0 && (E[0] = E[0].toString().replace(PERIOD, i)), r && Number.isInteger(E[0]) === !1 && a > 0) {
4702
+ const I = i || PERIOD, w = E[0].toString().split(I), L = w[1] || EMPTY, $ = L.length, M = a - $;
4703
+ E[0] = `${w[0]}${I}${L.padEnd($ + M, ZERO)}`;
4704
4704
  }
4705
4705
  return B && (E[1] = p[C] ? p[C] : STRINGS.fullform[c][C] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), d === ARRAY ? E : d === OBJECT ? {
4706
4706
  value: E[0],
@@ -5333,32 +5333,32 @@ function sendQuery(e, t, r, n) {
5333
5333
  T.status === "pending" && (T.status = "aborted");
5334
5334
  }), m = [];
5335
5335
  }
5336
- function I(T, B, F) {
5337
- const O = B !== "success";
5338
- switch (m = m.filter((k) => k !== T), l) {
5336
+ function A(T, B, N) {
5337
+ const k = B !== "success";
5338
+ switch (m = m.filter((I) => I !== T), l) {
5339
5339
  case "pending":
5340
5340
  break;
5341
5341
  case "failed":
5342
- if (O || !e.dataAfterTimeout)
5342
+ if (k || !e.dataAfterTimeout)
5343
5343
  return;
5344
5344
  break;
5345
5345
  default:
5346
5346
  return;
5347
5347
  }
5348
5348
  if (B === "abort") {
5349
- c = F, y();
5349
+ c = N, y();
5350
5350
  return;
5351
5351
  }
5352
- if (O) {
5353
- c = F, m.length || (s.length ? P() : y());
5352
+ if (k) {
5353
+ c = N, m.length || (s.length ? P() : y());
5354
5354
  return;
5355
5355
  }
5356
5356
  if (b(), E(), !e.random) {
5357
- const k = e.resources.indexOf(T.resource);
5358
- k !== -1 && k !== e.index && (e.index = k);
5357
+ const I = e.resources.indexOf(T.resource);
5358
+ I !== -1 && I !== e.index && (e.index = I);
5359
5359
  }
5360
- l = "completed", p.forEach((k) => {
5361
- k(F);
5360
+ l = "completed", p.forEach((I) => {
5361
+ I(N);
5362
5362
  });
5363
5363
  }
5364
5364
  function P() {
@@ -5379,8 +5379,8 @@ function sendQuery(e, t, r, n) {
5379
5379
  const B = {
5380
5380
  status: "pending",
5381
5381
  resource: T,
5382
- callback: (F, O) => {
5383
- I(B, F, O);
5382
+ callback: (N, k) => {
5383
+ A(B, N, k);
5384
5384
  }
5385
5385
  };
5386
5386
  m.push(B), u++, d = setTimeout(P, e.rotate), r(T, t, B.callback);
@@ -5997,27 +5997,27 @@ function createSetupStore(e, t, r = {}, n, a) {
5997
5997
  const l = {
5998
5998
  deep: !0
5999
5999
  };
6000
- process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (F) => {
6001
- u ? p = F : u == !1 && !T._hotUpdating && (Array.isArray(p) ? p.push(F) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6000
+ process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (N) => {
6001
+ u ? p = N : u == !1 && !T._hotUpdating && (Array.isArray(p) ? p.push(N) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6002
6002
  });
6003
6003
  let u, c, d = markRaw([]), m = markRaw([]), p;
6004
6004
  const b = n.state.value[e];
6005
6005
  !s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
6006
6006
  const _ = ref({});
6007
- function v(F) {
6008
- let O;
6009
- u = c = !1, process.env.NODE_ENV !== "production" && (p = []), typeof F == "function" ? (F(n.state.value[e]), O = {
6007
+ function v(N) {
6008
+ let k;
6009
+ u = c = !1, process.env.NODE_ENV !== "production" && (p = []), typeof N == "function" ? (N(n.state.value[e]), k = {
6010
6010
  type: MutationType.patchFunction,
6011
6011
  storeId: e,
6012
6012
  events: p
6013
- }) : (mergeReactiveObjects(n.state.value[e], F), O = {
6013
+ }) : (mergeReactiveObjects(n.state.value[e], N), k = {
6014
6014
  type: MutationType.patchObject,
6015
- payload: F,
6015
+ payload: N,
6016
6016
  storeId: e,
6017
6017
  events: p
6018
6018
  }), nextTick().then(() => {
6019
6019
  u = !0;
6020
- }), c = !0, triggerSubscriptions(d, O, n.state.value[e]);
6020
+ }), c = !0, triggerSubscriptions(d, k, n.state.value[e]);
6021
6021
  }
6022
6022
  const C = process.env.NODE_ENV !== "production" ? () => {
6023
6023
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
@@ -6025,33 +6025,33 @@ function createSetupStore(e, t, r = {}, n, a) {
6025
6025
  function y() {
6026
6026
  o.stop(), d = [], m = [], n._s.delete(e);
6027
6027
  }
6028
- function E(F, O) {
6028
+ function E(N, k) {
6029
6029
  return function() {
6030
6030
  setActivePinia(n);
6031
- const k = Array.from(arguments), M = [], D = [];
6032
- function w(L) {
6033
- M.push(L);
6031
+ const I = Array.from(arguments), w = [], L = [];
6032
+ function $(F) {
6033
+ w.push(F);
6034
6034
  }
6035
- function $(L) {
6036
- D.push(L);
6035
+ function M(F) {
6036
+ L.push(F);
6037
6037
  }
6038
6038
  triggerSubscriptions(m, {
6039
- args: k,
6040
- name: F,
6039
+ args: I,
6040
+ name: N,
6041
6041
  store: T,
6042
- after: w,
6043
- onError: $
6042
+ after: $,
6043
+ onError: M
6044
6044
  });
6045
- let A;
6045
+ let O;
6046
6046
  try {
6047
- A = O.apply(this && this.$id === e ? this : T, k);
6048
- } catch (L) {
6049
- throw triggerSubscriptions(D, L), L;
6047
+ O = k.apply(this && this.$id === e ? this : T, I);
6048
+ } catch (F) {
6049
+ throw triggerSubscriptions(L, F), F;
6050
6050
  }
6051
- return A instanceof Promise ? A.then((L) => (triggerSubscriptions(M, L), L)).catch((L) => (triggerSubscriptions(D, L), Promise.reject(L))) : (triggerSubscriptions(M, A), A);
6051
+ return O instanceof Promise ? O.then((F) => (triggerSubscriptions(w, F), F)).catch((F) => (triggerSubscriptions(L, F), Promise.reject(F))) : (triggerSubscriptions(w, O), O);
6052
6052
  };
6053
6053
  }
6054
- const I = /* @__PURE__ */ markRaw({
6054
+ const A = /* @__PURE__ */ markRaw({
6055
6055
  actions: {},
6056
6056
  getters: {},
6057
6057
  state: [],
@@ -6062,95 +6062,95 @@ function createSetupStore(e, t, r = {}, n, a) {
6062
6062
  $onAction: addSubscription.bind(null, m),
6063
6063
  $patch: v,
6064
6064
  $reset: C,
6065
- $subscribe(F, O = {}) {
6066
- const k = addSubscription(d, F, O.detached, () => M()), M = o.run(() => watch(() => n.state.value[e], (D) => {
6067
- (O.flush === "sync" ? c : u) && F({
6065
+ $subscribe(N, k = {}) {
6066
+ const I = addSubscription(d, N, k.detached, () => w()), w = o.run(() => watch(() => n.state.value[e], (L) => {
6067
+ (k.flush === "sync" ? c : u) && N({
6068
6068
  storeId: e,
6069
6069
  type: MutationType.direct,
6070
6070
  events: p
6071
- }, D);
6072
- }, assign$1({}, l, O)));
6073
- return k;
6071
+ }, L);
6072
+ }, assign$1({}, l, k)));
6073
+ return I;
6074
6074
  },
6075
6075
  $dispose: y
6076
6076
  }, T = reactive(assign$1(
6077
6077
  process.env.NODE_ENV !== "production" && IS_CLIENT ? {
6078
6078
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
6079
- _hmrPayload: I
6079
+ _hmrPayload: A
6080
6080
  } : {},
6081
6081
  P
6082
6082
  ));
6083
6083
  n._s.set(e, T);
6084
6084
  const B = n._e.run(() => (o = effectScope(), o.run(() => t())));
6085
- for (const F in B) {
6086
- const O = B[F];
6087
- if (isRef(O) && !isComputed(O) || isReactive(O))
6088
- process.env.NODE_ENV !== "production" && a ? set(_.value, F, toRef(B, F)) : s || (b && shouldHydrate(O) && (isRef(O) ? O.value = b[F] : mergeReactiveObjects(O, b[F])), n.state.value[e][F] = O), process.env.NODE_ENV !== "production" && I.state.push(F);
6089
- else if (typeof O == "function") {
6090
- const k = process.env.NODE_ENV !== "production" && a ? O : E(F, O);
6091
- B[F] = k, process.env.NODE_ENV !== "production" && (I.actions[F] = O), i.actions[F] = O;
6085
+ for (const N in B) {
6086
+ const k = B[N];
6087
+ if (isRef(k) && !isComputed(k) || isReactive(k))
6088
+ process.env.NODE_ENV !== "production" && a ? set(_.value, N, toRef(B, N)) : s || (b && shouldHydrate(k) && (isRef(k) ? k.value = b[N] : mergeReactiveObjects(k, b[N])), n.state.value[e][N] = k), process.env.NODE_ENV !== "production" && A.state.push(N);
6089
+ else if (typeof k == "function") {
6090
+ const I = process.env.NODE_ENV !== "production" && a ? k : E(N, k);
6091
+ B[N] = I, process.env.NODE_ENV !== "production" && (A.actions[N] = k), i.actions[N] = k;
6092
6092
  } else
6093
- process.env.NODE_ENV !== "production" && isComputed(O) && (I.getters[F] = s ? r.getters[F] : O, IS_CLIENT && (B._getters || (B._getters = markRaw([]))).push(F));
6093
+ process.env.NODE_ENV !== "production" && isComputed(k) && (A.getters[N] = s ? r.getters[N] : k, IS_CLIENT && (B._getters || (B._getters = markRaw([]))).push(N));
6094
6094
  }
6095
6095
  if (assign$1(T, B), assign$1(toRaw(T), B), Object.defineProperty(T, "$state", {
6096
6096
  get: () => process.env.NODE_ENV !== "production" && a ? _.value : n.state.value[e],
6097
- set: (F) => {
6097
+ set: (N) => {
6098
6098
  if (process.env.NODE_ENV !== "production" && a)
6099
6099
  throw new Error("cannot set hotState");
6100
- v((O) => {
6101
- assign$1(O, F);
6100
+ v((k) => {
6101
+ assign$1(k, N);
6102
6102
  });
6103
6103
  }
6104
6104
  }), process.env.NODE_ENV !== "production") {
6105
- T._hotUpdate = markRaw((O) => {
6106
- T._hotUpdating = !0, O._hmrPayload.state.forEach((k) => {
6107
- if (k in T.$state) {
6108
- const M = O.$state[k], D = T.$state[k];
6109
- typeof M == "object" && isPlainObject(M) && isPlainObject(D) ? patchObject(M, D) : O.$state[k] = D;
6105
+ T._hotUpdate = markRaw((k) => {
6106
+ T._hotUpdating = !0, k._hmrPayload.state.forEach((I) => {
6107
+ if (I in T.$state) {
6108
+ const w = k.$state[I], L = T.$state[I];
6109
+ typeof w == "object" && isPlainObject(w) && isPlainObject(L) ? patchObject(w, L) : k.$state[I] = L;
6110
6110
  }
6111
- set(T, k, toRef(O.$state, k));
6112
- }), Object.keys(T.$state).forEach((k) => {
6113
- k in O.$state || del(T, k);
6114
- }), u = !1, c = !1, n.state.value[e] = toRef(O._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
6111
+ set(T, I, toRef(k.$state, I));
6112
+ }), Object.keys(T.$state).forEach((I) => {
6113
+ I in k.$state || del(T, I);
6114
+ }), u = !1, c = !1, n.state.value[e] = toRef(k._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
6115
6115
  u = !0;
6116
6116
  });
6117
- for (const k in O._hmrPayload.actions) {
6118
- const M = O[k];
6119
- set(T, k, E(k, M));
6117
+ for (const I in k._hmrPayload.actions) {
6118
+ const w = k[I];
6119
+ set(T, I, E(I, w));
6120
6120
  }
6121
- for (const k in O._hmrPayload.getters) {
6122
- const M = O._hmrPayload.getters[k], D = s ? computed(() => (setActivePinia(n), M.call(T, T))) : M;
6123
- set(T, k, D);
6121
+ for (const I in k._hmrPayload.getters) {
6122
+ const w = k._hmrPayload.getters[I], L = s ? computed(() => (setActivePinia(n), w.call(T, T))) : w;
6123
+ set(T, I, L);
6124
6124
  }
6125
- Object.keys(T._hmrPayload.getters).forEach((k) => {
6126
- k in O._hmrPayload.getters || del(T, k);
6127
- }), Object.keys(T._hmrPayload.actions).forEach((k) => {
6128
- k in O._hmrPayload.actions || del(T, k);
6129
- }), T._hmrPayload = O._hmrPayload, T._getters = O._getters, T._hotUpdating = !1;
6125
+ Object.keys(T._hmrPayload.getters).forEach((I) => {
6126
+ I in k._hmrPayload.getters || del(T, I);
6127
+ }), Object.keys(T._hmrPayload.actions).forEach((I) => {
6128
+ I in k._hmrPayload.actions || del(T, I);
6129
+ }), T._hmrPayload = k._hmrPayload, T._getters = k._getters, T._hotUpdating = !1;
6130
6130
  });
6131
- const F = {
6131
+ const N = {
6132
6132
  writable: !0,
6133
6133
  configurable: !0,
6134
6134
  enumerable: !1
6135
6135
  };
6136
- IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((O) => {
6137
- Object.defineProperty(T, O, {
6138
- value: T[O],
6139
- ...F
6136
+ IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((k) => {
6137
+ Object.defineProperty(T, k, {
6138
+ value: T[k],
6139
+ ...N
6140
6140
  });
6141
6141
  });
6142
6142
  }
6143
- return n._p.forEach((F) => {
6143
+ return n._p.forEach((N) => {
6144
6144
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
6145
- const O = o.run(() => F({
6145
+ const k = o.run(() => N({
6146
6146
  store: T,
6147
6147
  app: n._a,
6148
6148
  pinia: n,
6149
6149
  options: i
6150
6150
  }));
6151
- Object.keys(O || {}).forEach((k) => T._customProperties.add(k)), assign$1(T, O);
6151
+ Object.keys(k || {}).forEach((I) => T._customProperties.add(I)), assign$1(T, k);
6152
6152
  } else
6153
- assign$1(T, o.run(() => F({
6153
+ assign$1(T, o.run(() => N({
6154
6154
  store: T,
6155
6155
  app: n._a,
6156
6156
  pinia: n,
@@ -6584,9 +6584,9 @@ const getProps$w = () => ({
6584
6584
  function _(y) {
6585
6585
  y.stopPropagation(), y.preventDefault(), d(), !(y instanceof MouseEvent && y.which !== 1) && (o = y.pageX, s = y.pageY, n = e.kgWidth, a = e.kgHeight, i = v(document.documentElement, "mousemove", p), l = v(document.documentElement, "mouseup", b));
6586
6586
  }
6587
- function v(y, E, I) {
6588
- return y.addEventListener(E, I), {
6589
- remove: () => y.removeEventListener(E, I)
6587
+ function v(y, E, A) {
6588
+ return y.addEventListener(E, A), {
6589
+ remove: () => y.removeEventListener(E, A)
6590
6590
  };
6591
6591
  }
6592
6592
  function C(y) {
@@ -6732,12 +6732,12 @@ const getProps$v = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
6732
6732
  r("update:visible", !1);
6733
6733
  }
6734
6734
  function p() {
6735
- var b, _, v, C, y, E, I;
6735
+ var b, _, v, C, y, E, A;
6736
6736
  if (c.value) {
6737
6737
  const P = (_ = (b = l.selectedRows) == null ? void 0 : b.value) != null ? _ : [], T = (v = P.map((B) => B[d.value])) != null ? v : [];
6738
6738
  (!i || i(T, P)) && (r("kgOk", T, P), r("update:visible", !1));
6739
6739
  } else {
6740
- const P = (E = (y = (C = l.selectedRows) == null ? void 0 : C.value) == null ? void 0 : y[0]) != null ? E : null, T = (I = P == null ? void 0 : P[d.value]) != null ? I : "";
6740
+ const P = (E = (y = (C = l.selectedRows) == null ? void 0 : C.value) == null ? void 0 : y[0]) != null ? E : null, T = (A = P == null ? void 0 : P[d.value]) != null ? A : "";
6741
6741
  (!i || i(T, P)) && (r("kgOk", T, P), r("update:visible", !1));
6742
6742
  }
6743
6743
  }
@@ -6942,8 +6942,8 @@ const KgFormItemSelect = defineComponent({
6942
6942
  immediate: !0
6943
6943
  });
6944
6944
  async function i() {
6945
- var C, y, E, I, P, T, B, F, O;
6946
- const c = (C = s.value) == null ? void 0 : C.cmd, d = (y = s.value) == null ? void 0 : y.cmd_prm, m = (I = (E = s.value) == null ? void 0 : E.cmd_method) != null ? I : "GET", p = (T = (P = s.value) == null ? void 0 : P.val_clm) != null ? T : "", b = (F = (B = s.value) == null ? void 0 : B.lbl_clm) != null ? F : "";
6945
+ var C, y, E, A, P, T, B, N, k;
6946
+ const c = (C = s.value) == null ? void 0 : C.cmd, d = (y = s.value) == null ? void 0 : y.cmd_prm, m = (A = (E = s.value) == null ? void 0 : E.cmd_method) != null ? A : "GET", p = (T = (P = s.value) == null ? void 0 : P.val_clm) != null ? T : "", b = (N = (B = s.value) == null ? void 0 : B.lbl_clm) != null ? N : "";
6947
6947
  if (!c || !p || !b) {
6948
6948
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
6949
6949
  formID: n.formID,
@@ -6957,7 +6957,7 @@ const KgFormItemSelect = defineComponent({
6957
6957
  const _ = KgVarUtil.parseCommandParameter(d);
6958
6958
  let v = null;
6959
6959
  try {
6960
- v = await ((O = httpClient()) == null ? void 0 : O.request({
6960
+ v = await ((k = httpClient()) == null ? void 0 : k.request({
6961
6961
  url: c,
6962
6962
  method: m,
6963
6963
  params: _
@@ -6976,17 +6976,17 @@ const KgFormItemSelect = defineComponent({
6976
6976
  break;
6977
6977
  }
6978
6978
  if (o.value.length > 0) {
6979
- const k = o.value[0];
6980
- (!(p in k) || !(b in k)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
6979
+ const I = o.value[0];
6980
+ (!(p in I) || !(b in I)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
6981
6981
  formID: n.formID,
6982
6982
  kgVarName: e.kgVarName,
6983
6983
  cmd: c,
6984
6984
  val_clm: p,
6985
6985
  lbl_clm: b,
6986
- \u6240\u6709\u5217: Object.keys(k)
6986
+ \u6240\u6709\u5217: Object.keys(I)
6987
6987
  });
6988
6988
  }
6989
- r("kgSelectDatasChange", o.value), o.value.find((k) => k[p] === e.value) || r("update:value", void 0);
6989
+ r("kgSelectDatasChange", o.value), o.value.find((I) => I[p] === e.value) || r("update:value", void 0);
6990
6990
  }
6991
6991
  function l(c) {
6992
6992
  var m;
@@ -7060,11 +7060,11 @@ const KgFormItemSelect = defineComponent({
7060
7060
  }) {
7061
7061
  provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_BEFORE_LOOKUP_OK, e.onKgBeforeLookupOk);
7062
7062
  const n = useKg(), a = useKgVar(), o = inject(DI_MODEL, computed(() => ({}))), s = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.isCreating(a.formID)), l = computed(() => a.store.isUpdating(a.formID)), u = computed(() => a.store.isCopying(a.formID)), c = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), d = computed(() => a.store.getVarConfig(a.formID, e.kgVarName)), m = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), p = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), b = computed(() => {
7063
- var D, w, $, A, L;
7064
- let M = [];
7063
+ var L, $, M, O, F;
7064
+ let w = [];
7065
7065
  switch (e.kgContext) {
7066
7066
  case KG_FORM_CONTEXT.SEARCH:
7067
- ((D = m.value) == null ? void 0 : D.rqr_flg) === 1 && (M = [{
7067
+ ((L = m.value) == null ? void 0 : L.rqr_flg) === 1 && (w = [{
7068
7068
  required: !0,
7069
7069
  message: n.t("kg.required")
7070
7070
  }]);
@@ -7072,25 +7072,25 @@ const KgFormItemSelect = defineComponent({
7072
7072
  case KG_FORM_CONTEXT.SUBMIT:
7073
7073
  switch (!0) {
7074
7074
  case a.isCreating.value:
7075
- ((w = p.value) == null ? void 0 : w.crt_rqr_flg) === 1 && (M = [{
7075
+ (($ = p.value) == null ? void 0 : $.crt_rqr_flg) === 1 && (w = [{
7076
7076
  required: !0,
7077
7077
  message: n.t("kg.required")
7078
7078
  }]);
7079
7079
  break;
7080
7080
  case a.isUpdating.value:
7081
- (($ = p.value) == null ? void 0 : $.upt_rqr_flg) === 1 && (M = [{
7081
+ ((M = p.value) == null ? void 0 : M.upt_rqr_flg) === 1 && (w = [{
7082
7082
  required: !0,
7083
7083
  message: n.t("kg.required")
7084
7084
  }]);
7085
7085
  break;
7086
7086
  case a.isCopying.value:
7087
- ((A = p.value) == null ? void 0 : A.cpy_rqr_flg) === 1 && (M = [{
7087
+ ((O = p.value) == null ? void 0 : O.cpy_rqr_flg) === 1 && (w = [{
7088
7088
  required: !0,
7089
7089
  message: n.t("kg.required")
7090
7090
  }]);
7091
7091
  break;
7092
7092
  case a.isDeleting.value:
7093
- ((L = p.value) == null ? void 0 : L.del_rqr_flg) === 1 && (M = [{
7093
+ ((F = p.value) == null ? void 0 : F.del_rqr_flg) === 1 && (w = [{
7094
7094
  required: !0,
7095
7095
  message: n.t("kg.required")
7096
7096
  }]);
@@ -7098,111 +7098,111 @@ const KgFormItemSelect = defineComponent({
7098
7098
  }
7099
7099
  break;
7100
7100
  }
7101
- return e.kgRules && (M = [...M, ...e.kgRules]), M;
7101
+ return e.kgRules && (w = [...w, ...e.kgRules]), w;
7102
7102
  }), _ = computed(() => {
7103
- var D, w, $, A, L;
7103
+ var L, $, M, O, F;
7104
7104
  if (a.isRetrievingVar.value)
7105
7105
  return !0;
7106
- let M = !1;
7106
+ let w = !1;
7107
7107
  if (e.kgDisabled !== void 0)
7108
- M = e.kgDisabled;
7108
+ w = e.kgDisabled;
7109
7109
  else
7110
7110
  switch (e.kgContext) {
7111
7111
  case KG_FORM_CONTEXT.SEARCH:
7112
- M = ((D = m.value) == null ? void 0 : D.ena_flg) === 0;
7112
+ w = ((L = m.value) == null ? void 0 : L.ena_flg) === 0;
7113
7113
  break;
7114
7114
  case KG_FORM_CONTEXT.SUBMIT:
7115
7115
  switch (!0) {
7116
7116
  case a.isCreating.value:
7117
- M = ((w = p.value) == null ? void 0 : w.crt_ena_flg) === 0;
7117
+ w = (($ = p.value) == null ? void 0 : $.crt_ena_flg) === 0;
7118
7118
  break;
7119
7119
  case a.isUpdating.value:
7120
- M = (($ = p.value) == null ? void 0 : $.upt_ena_flg) === 0;
7120
+ w = ((M = p.value) == null ? void 0 : M.upt_ena_flg) === 0;
7121
7121
  break;
7122
7122
  case a.isCopying.value:
7123
- M = ((A = p.value) == null ? void 0 : A.cpy_ena_flg) === 0;
7123
+ w = ((O = p.value) == null ? void 0 : O.cpy_ena_flg) === 0;
7124
7124
  break;
7125
7125
  case a.isDeleting.value:
7126
- M = ((L = p.value) == null ? void 0 : L.del_ena_flg) === 0;
7126
+ w = ((F = p.value) == null ? void 0 : F.del_ena_flg) === 0;
7127
7127
  break;
7128
7128
  }
7129
7129
  break;
7130
7130
  }
7131
- return M;
7131
+ return w;
7132
7132
  }), v = computed(() => {
7133
- var D, w, $, A;
7134
- let M = " ";
7133
+ var L, $, M, O;
7134
+ let w = " ";
7135
7135
  if (e.kgPlaceholder)
7136
- M = e.kgPlaceholder;
7136
+ w = e.kgPlaceholder;
7137
7137
  else
7138
7138
  switch (e.kgContext) {
7139
7139
  case KG_FORM_CONTEXT.SEARCH:
7140
- M = n.t((w = (D = m.value) == null ? void 0 : D.placeholder) != null ? w : " ");
7140
+ w = n.t(($ = (L = m.value) == null ? void 0 : L.placeholder) != null ? $ : " ");
7141
7141
  break;
7142
7142
  case KG_FORM_CONTEXT.SUBMIT:
7143
- M = n.t((A = ($ = p.value) == null ? void 0 : $.placeholder) != null ? A : " ");
7143
+ w = n.t((O = (M = p.value) == null ? void 0 : M.placeholder) != null ? O : " ");
7144
7144
  break;
7145
7145
  }
7146
- return M;
7146
+ return w;
7147
7147
  }), C = computed(() => {
7148
- var D, w, $, A, L, R, H, N, U, z;
7149
- let M = 6;
7148
+ var L, $, M, O, F, R, G, V, U, H;
7149
+ let w = 6;
7150
7150
  if (e.kgSpan !== void 0)
7151
- M = e.kgSpan;
7151
+ w = e.kgSpan;
7152
7152
  else
7153
7153
  switch (e.kgContext) {
7154
7154
  case KG_FORM_CONTEXT.SEARCH:
7155
- M = (w = (D = m.value) == null ? void 0 : D.width) != null ? w : 6;
7155
+ w = ($ = (L = m.value) == null ? void 0 : L.width) != null ? $ : 6;
7156
7156
  break;
7157
7157
  case KG_FORM_CONTEXT.SUBMIT:
7158
7158
  switch (!0) {
7159
7159
  case a.isCreating.value:
7160
- M = (A = ($ = p.value) == null ? void 0 : $.crt_width) != null ? A : 6;
7160
+ w = (O = (M = p.value) == null ? void 0 : M.crt_width) != null ? O : 6;
7161
7161
  break;
7162
7162
  case a.isUpdating.value:
7163
- M = (R = (L = p.value) == null ? void 0 : L.upt_width) != null ? R : 6;
7163
+ w = (R = (F = p.value) == null ? void 0 : F.upt_width) != null ? R : 6;
7164
7164
  break;
7165
7165
  case a.isCopying.value:
7166
- M = (N = (H = p.value) == null ? void 0 : H.cpy_width) != null ? N : 6;
7166
+ w = (V = (G = p.value) == null ? void 0 : G.cpy_width) != null ? V : 6;
7167
7167
  break;
7168
7168
  case a.isDeleting.value:
7169
- M = (z = (U = p.value) == null ? void 0 : U.del_width) != null ? z : 6;
7169
+ w = (H = (U = p.value) == null ? void 0 : U.del_width) != null ? H : 6;
7170
7170
  break;
7171
7171
  }
7172
7172
  }
7173
- return Math.min(24, Math.max(1, M));
7173
+ return Math.min(24, Math.max(1, w));
7174
7174
  }), y = computed(() => ({
7175
7175
  paddingLeft: `${e.kgGutter / 2}px !important`,
7176
7176
  paddingRight: `${e.kgGutter / 2}px !important`
7177
7177
  })), E = computed(() => {
7178
- var D, w, $, A;
7179
- let M = "kg-form-item";
7180
- switch (c.value && (M += " kg-form-item-lookup"), e.kgContext) {
7178
+ var L, $, M, O;
7179
+ let w = "kg-form-item";
7180
+ switch (c.value && (w += " kg-form-item-lookup"), e.kgContext) {
7181
7181
  case KG_FORM_CONTEXT.SEARCH:
7182
7182
  switch (!0) {
7183
- case ((D = m.value) == null ? void 0 : D.vis_flg) === 0:
7184
- M += " kg-form-item--invisible";
7183
+ case ((L = m.value) == null ? void 0 : L.vis_flg) === 0:
7184
+ w += " kg-form-item--invisible";
7185
7185
  break;
7186
7186
  }
7187
7187
  break;
7188
7188
  case KG_FORM_CONTEXT.SUBMIT:
7189
7189
  switch (!0) {
7190
- case (i.value && ((w = p.value) == null ? void 0 : w.crt_vis_flg) === 0):
7191
- case (l.value && (($ = p.value) == null ? void 0 : $.upt_vis_flg) === 0):
7192
- case (u.value && ((A = p.value) == null ? void 0 : A.cpy_vis_flg) === 0):
7193
- M += " kg-form-item--invisible";
7190
+ case (i.value && (($ = p.value) == null ? void 0 : $.crt_vis_flg) === 0):
7191
+ case (l.value && ((M = p.value) == null ? void 0 : M.upt_vis_flg) === 0):
7192
+ case (u.value && ((O = p.value) == null ? void 0 : O.cpy_vis_flg) === 0):
7193
+ w += " kg-form-item--invisible";
7194
7194
  break;
7195
7195
  }
7196
7196
  break;
7197
7197
  }
7198
- return M;
7199
- }), I = computed(() => {
7200
- var D;
7201
- const M = {
7198
+ return w;
7199
+ }), A = computed(() => {
7200
+ var L;
7201
+ const w = {
7202
7202
  ...e,
7203
- value: (D = o.value) == null ? void 0 : D[e.kgVarName],
7204
- "onUpdate:value": (w) => {
7205
- o.value && (o.value[e.kgVarName] = w);
7203
+ value: (L = o.value) == null ? void 0 : L[e.kgVarName],
7204
+ "onUpdate:value": ($) => {
7205
+ o.value && (o.value[e.kgVarName] = $);
7206
7206
  },
7207
7207
  kgPlaceholder: v.value,
7208
7208
  kgDisabled: _.value,
@@ -7216,26 +7216,26 @@ const KgFormItemSelect = defineComponent({
7216
7216
  case KG_FORM_ITEM_TYPE.SWITCH:
7217
7217
  break;
7218
7218
  case KG_FORM_ITEM_TYPE.DATE_DATE:
7219
- M.kgShowTime = !1;
7219
+ w.kgShowTime = !1;
7220
7220
  break;
7221
7221
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
7222
- M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7222
+ w.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7223
7223
  break;
7224
7224
  }
7225
- return M;
7225
+ return w;
7226
7226
  }), P = computed(() => {
7227
- var M;
7228
- return e.kgType || ((M = d.value) == null ? void 0 : M.ctrl_typ);
7229
- }), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext));
7230
- function B(M, D) {
7231
7227
  var w;
7232
- o.value && (o.value[e.kgVarName] = M), r("kgChange", D), (w = s.value) == null || w.validate([e.kgVarName]);
7228
+ return e.kgType || ((w = d.value) == null ? void 0 : w.ctrl_typ);
7229
+ }), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext));
7230
+ function B(w, L) {
7231
+ var $;
7232
+ o.value && (o.value[e.kgVarName] = w), r("kgChange", L), ($ = s.value) == null || $.validate([e.kgVarName]);
7233
7233
  }
7234
- function F() {
7234
+ function N() {
7235
7235
  if (t.control)
7236
7236
  return t.control({
7237
7237
  varName: e.kgVarName,
7238
- props: I,
7238
+ props: A,
7239
7239
  model: o,
7240
7240
  varConfig: d,
7241
7241
  varProfileDetail: m,
@@ -7243,27 +7243,27 @@ const KgFormItemSelect = defineComponent({
7243
7243
  });
7244
7244
  switch (P.value) {
7245
7245
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
7246
- return createVNode(KgFormItemInputNumber, I.value, null);
7246
+ return createVNode(KgFormItemInputNumber, A.value, null);
7247
7247
  case KG_FORM_ITEM_TYPE.SELECT:
7248
- return createVNode(KgFormItemSelect, I.value, null);
7248
+ return createVNode(KgFormItemSelect, A.value, null);
7249
7249
  case KG_FORM_ITEM_TYPE.SWITCH:
7250
- return createVNode(KgFormItemSwitch, I.value, null);
7250
+ return createVNode(KgFormItemSwitch, A.value, null);
7251
7251
  case KG_FORM_ITEM_TYPE.DATE_DATE:
7252
- return createVNode(KgFormItemDate, I.value, null);
7252
+ return createVNode(KgFormItemDate, A.value, null);
7253
7253
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
7254
- return createVNode(KgFormItemDate, I.value, null);
7254
+ return createVNode(KgFormItemDate, A.value, null);
7255
7255
  default:
7256
- return createVNode(KgFormItemInput, I.value, null);
7256
+ return createVNode(KgFormItemInput, A.value, null);
7257
7257
  }
7258
7258
  }
7259
- function O() {
7259
+ function k() {
7260
7260
  return e.kgShowLabel ? createVNode("span", {
7261
7261
  title: a.t(e.kgVarName).value
7262
7262
  }, [a.t(e.kgVarName).value]) : null;
7263
7263
  }
7264
- function k() {
7265
- var M;
7266
- return !c.value || !((M = c.value) != null && M.lkp_id) ? null : createVNode(Form.ItemRest, null, {
7264
+ function I() {
7265
+ var w;
7266
+ return !c.value || !((w = c.value) != null && w.lkp_id) ? null : createVNode(Form.ItemRest, null, {
7267
7267
  default: () => [createVNode(KgFormItemAddonLookup, {
7268
7268
  kgDisabled: _.value,
7269
7269
  onKgOk: B,
@@ -7283,8 +7283,8 @@ const KgFormItemSelect = defineComponent({
7283
7283
  rules: b.value,
7284
7284
  htmlFor: T.value
7285
7285
  }, {
7286
- default: () => createVNode(Fragment, null, [F(), k()]),
7287
- label: () => O()
7286
+ default: () => createVNode(Fragment, null, [N(), I()]),
7287
+ label: () => k()
7288
7288
  })]
7289
7289
  });
7290
7290
  }
@@ -8200,11 +8200,11 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8200
8200
  },
8201
8201
  getVarButtonSearch(e) {
8202
8202
  return (t) => {
8203
- var n;
8203
+ var o, s;
8204
8204
  if (!t)
8205
8205
  return Logger.error("formID \u4E3A\u7A7A."), null;
8206
- const r = e.varButtonsMap.get(t);
8207
- return (n = r == null ? void 0 : r.find((a) => a.typ === KG_BUTTON_TYPE.SEARCH)) != null ? n : null;
8206
+ const n = (o = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : o.prf_frm_id, a = e.varButtonsMap.get(n || t);
8207
+ return (s = a == null ? void 0 : a.find((i) => i.typ === KG_BUTTON_TYPE.SEARCH)) != null ? s : null;
8208
8208
  };
8209
8209
  },
8210
8210
  getVarButtonCreate(e) {
@@ -8294,6 +8294,9 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8294
8294
  return !t || !r ? null : (o = (a = (n = this.getCurrentVarProfileMaster(t)) == null ? void 0 : n.varProfileDetails) == null ? void 0 : a.find((s) => s.var_nam === r)) != null ? o : null;
8295
8295
  };
8296
8296
  },
8297
+ getVarGridConfigMap(e) {
8298
+ return e.varGridConfigMap;
8299
+ },
8297
8300
  getVarGridConfig(e) {
8298
8301
  return (t) => {
8299
8302
  var r;
@@ -8397,10 +8400,10 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8397
8400
  Logger.error("\u4E0D\u652F\u6301\u591A\u4E2A\u754C\u9762\u4F7F\u7528\u540C\u4E00\u4E2A\u754C\u9762\u6807\u8BC6(formID).", { formID: e.formID });
8398
8401
  return;
8399
8402
  }
8400
- this.formIDs = [...this.formIDs, e].sort((t, r) => t.level - r.level), await this.retrieve(e.formID);
8403
+ this.formIDs = [...this.formIDs, e].sort((t, r) => t.level - r.level), await this.retrieve(e.formID), store_legacy.set("KgVar.formIDs", this.formIDs);
8401
8404
  },
8402
8405
  leave(e) {
8403
- this.formIDs = this.formIDs.filter((t) => t.formID !== e), this.isRetrievingVarMap.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.varCatalogsMap.delete(e), this.varLookupsMap.delete(e), this.varPossibilitiesMap.delete(e), this.varConfigsMap.delete(e), this.varButtonsMap.delete(e), this.varSubmitConfigMap.delete(e), this.varSubmitFieldsMap.delete(e), this.varProfileConfigMap.delete(e), this.varProfileMap.delete(e), this.varGridConfigMap.delete(e), this.varGridMap.delete(e);
8406
+ this.formIDs = this.formIDs.filter((t) => t.formID !== e), this.isRetrievingVarMap.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.varCatalogsMap.delete(e), this.varLookupsMap.delete(e), this.varPossibilitiesMap.delete(e), this.varConfigsMap.delete(e), this.varButtonsMap.delete(e), this.varSubmitConfigMap.delete(e), this.varSubmitFieldsMap.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);
8404
8407
  },
8405
8408
  async retrieve(e) {
8406
8409
  var t, r, n, a, o, s;
@@ -8507,13 +8510,13 @@ function useKgVar(e, t, r = 0) {
8507
8510
  }), onUnmounted(() => {
8508
8511
  s.leave(o);
8509
8512
  }));
8510
- const i = (F) => computed(() => {
8511
- var O, k, M;
8512
- return (M = (k = (O = s.getVarCatalog(o, F)) == null ? void 0 : O.var_text) != null ? k : F) != null ? M : "";
8513
+ const i = (N) => computed(() => {
8514
+ var k, I, w;
8515
+ return (w = (I = (k = s.getVarCatalog(o, N)) == null ? void 0 : k.var_text) != null ? I : N) != null ? w : "";
8513
8516
  }), l = computed(() => s.isRetrievingVar(o)), u = computed(() => s.isRetrievingVarProfileMaster(o)), c = computed(() => s.isCreating(o)), d = computed(() => s.isUpdating(o)), m = computed(() => s.isCopying(o)), p = computed(() => s.isDeleting(o)), b = computed(() => s.isOtherRequesting(o)), _ = computed(() => s.getVarButtons(o)), v = computed(() => s.getVarProfileMasters(o)), C = computed(() => s.getCurrentVarProfileMaster(o)), y = computed(() => s.getCurrentVarProfileMasterID(o)), E = computed(() => {
8514
- var F, O;
8515
- return (O = (F = C.value) == null ? void 0 : F.varProfileDetails) != null ? O : null;
8516
- }), I = computed(() => s.getVarGridConfig(o)), P = computed(() => s.getVarGridMasters(o)), T = computed(() => s.getCurrentVarGridMaster(o)), B = computed(() => s.getSystemVarGridDetails(o));
8517
+ var N, k;
8518
+ return (k = (N = C.value) == null ? void 0 : N.varProfileDetails) != null ? k : null;
8519
+ }), A = computed(() => s.getVarGridConfig(o)), P = computed(() => s.getVarGridMasters(o)), T = computed(() => s.getCurrentVarGridMaster(o)), B = computed(() => s.getSystemVarGridDetails(o));
8517
8520
  return {
8518
8521
  formID: o,
8519
8522
  store: s,
@@ -8529,7 +8532,7 @@ function useKgVar(e, t, r = 0) {
8529
8532
  currentVarProfileMaster: C,
8530
8533
  currentVarProfileMasterID: y,
8531
8534
  currentVarProfileDetails: E,
8532
- varGridConfig: I,
8535
+ varGridConfig: A,
8533
8536
  varGridMasters: P,
8534
8537
  currentVarGridMaster: T,
8535
8538
  systemVarGridDetails: B,
@@ -8703,8 +8706,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
8703
8706
  }) => {
8704
8707
  const c = o.store.getVarSubmitConfig(o.formID);
8705
8708
  return i = watch(u, (d) => {
8706
- var m, p, b, _, v, C, y, E, I, P, T, B;
8707
- d && (d.id = (m = c == null ? void 0 : c.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (p = c == null ? void 0 : c.resizable_flg) != null ? p : 1, d.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, d.dft_fullscreen_flg = (_ = c == null ? void 0 : c.dft_fullscreen_flg) != null ? _ : 0, d.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, d.max_width = (C = c == null ? void 0 : c.max_width) != null ? C : DEFAULT_MAX_WIDTH, d.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, d.dft_width = (E = c == null ? void 0 : c.dft_width) != null ? E : DEFAULT_WIDTH, d.layout = (I = c == null ? void 0 : c.layout) != null ? I : KG_SUBMIT_LAYOUT.VERTICAL, d.label_col = (P = c == null ? void 0 : c.label_col) != null ? P : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (T = c == null ? void 0 : c.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN, d.display_type = (B = c == null ? void 0 : c.display_type) != null ? B : KG_SUBMIT_DISPLAY_TYPE.DRAWER);
8709
+ var m, p, b, _, v, C, y, E, A, P, T, B;
8710
+ d && (d.id = (m = c == null ? void 0 : c.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (p = c == null ? void 0 : c.resizable_flg) != null ? p : 1, d.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, d.dft_fullscreen_flg = (_ = c == null ? void 0 : c.dft_fullscreen_flg) != null ? _ : 0, d.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, d.max_width = (C = c == null ? void 0 : c.max_width) != null ? C : DEFAULT_MAX_WIDTH, d.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, d.dft_width = (E = c == null ? void 0 : c.dft_width) != null ? E : DEFAULT_WIDTH, d.layout = (A = c == null ? void 0 : c.layout) != null ? A : KG_SUBMIT_LAYOUT.VERTICAL, d.label_col = (P = c == null ? void 0 : c.label_col) != null ? P : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (T = c == null ? void 0 : c.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN, d.display_type = (B = c == null ? void 0 : c.display_type) != null ? B : KG_SUBMIT_DISPLAY_TYPE.DRAWER);
8708
8711
  }), !1;
8709
8712
  }), l.onClose(async () => (i == null || i(), r("kgClose"), !1)), l.onBeforeOk(async ({
8710
8713
  rules: u,
@@ -8898,52 +8901,52 @@ const getProps$p = () => ({
8898
8901
  }) {
8899
8902
  const r = useKg(), n = useKgVar(), a = useKgTable(), o = useKgSubmit(), s = useKgSearch(), i = inject(DI_KG_SLOTS, null), {
8900
8903
  model: l
8901
- } = _useFormModel(), u = computed(() => n.store.isCreating(n.formID)), c = computed(() => n.store.isUpdating(n.formID)), d = computed(() => n.store.isCopying(n.formID)), m = computed(() => n.store.isDeleting(n.formID)), p = computed(() => m.value && M.value.length === 0 && D.value.length === 0), b = computed(() => n.store.getVarButtonCreate(n.formID)), _ = computed(() => n.store.getVarButtonUpdate(n.formID)), v = computed(() => n.store.getVarButtonCopy(n.formID)), C = computed(() => n.store.getVarButtonDelete(n.formID)), y = computed(() => o.store.isLoading(n.formID)), E = computed(() => n.store.getVarSubmitConfig(n.formID)), I = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), P = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), B = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), F = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), O = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), k = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), M = computed(() => {
8904
+ } = _useFormModel(), u = computed(() => n.store.isCreating(n.formID)), c = computed(() => n.store.isUpdating(n.formID)), d = computed(() => n.store.isCopying(n.formID)), m = computed(() => n.store.isDeleting(n.formID)), p = computed(() => m.value && w.value.length === 0 && L.value.length === 0), b = computed(() => n.store.getVarButtonCreate(n.formID)), _ = computed(() => n.store.getVarButtonUpdate(n.formID)), v = computed(() => n.store.getVarButtonCopy(n.formID)), C = computed(() => n.store.getVarButtonDelete(n.formID)), y = computed(() => o.store.isLoading(n.formID)), E = computed(() => n.store.getVarSubmitConfig(n.formID)), A = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), P = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), B = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), N = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), k = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), I = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), w = computed(() => {
8902
8905
  var K, W, Y;
8903
8906
  switch (!0) {
8904
8907
  case u.value:
8905
- return (K = I.value) != null ? K : [];
8908
+ return (K = A.value) != null ? K : [];
8906
8909
  case c.value:
8907
8910
  return (W = T.value) != null ? W : [];
8908
8911
  case d.value:
8909
- return (Y = F.value) != null ? Y : [];
8912
+ return (Y = N.value) != null ? Y : [];
8910
8913
  case m.value:
8911
8914
  return [];
8912
8915
  }
8913
8916
  return [];
8914
- }), D = computed(() => {
8915
- var K, W, Y, J;
8917
+ }), L = computed(() => {
8918
+ var K, W, Y, Z;
8916
8919
  switch (!0) {
8917
8920
  case u.value:
8918
8921
  return (K = P.value) != null ? K : [];
8919
8922
  case c.value:
8920
8923
  return (W = B.value) != null ? W : [];
8921
8924
  case d.value:
8922
- return (Y = O.value) != null ? Y : [];
8925
+ return (Y = k.value) != null ? Y : [];
8923
8926
  case m.value:
8924
- return (J = k.value) != null ? J : [];
8927
+ return (Z = I.value) != null ? Z : [];
8925
8928
  }
8926
8929
  return [];
8927
- }), w = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID) || !!n.store.isDeletingRequesting(n.formID)), $ = computed(() => w.value || y.value), A = computed(() => y.value), L = ref({
8930
+ }), $ = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID) || !!n.store.isDeletingRequesting(n.formID)), M = computed(() => $.value || y.value), O = computed(() => y.value), F = ref({
8928
8931
  kgWidth: DEFAULT_WIDTH
8929
8932
  }), R = computed(() => {
8930
8933
  var K;
8931
- return !!(p.value || ee.isFullscreen || ((K = E.value) == null ? void 0 : K.resizable_flg) === 0);
8932
- }), H = ref(null), N = ref({}), U = ref(null);
8934
+ return !!(p.value || x.isFullscreen || ((K = E.value) == null ? void 0 : K.resizable_flg) === 0);
8935
+ }), G = ref(null), V = ref({}), U = ref(null);
8933
8936
  _useResizeObserver$1(U);
8934
- const z = _useTitle(), X = computed(() => !!(u.value || c.value || d.value || m.value)), Q = computed(() => {
8937
+ const H = _useTitle(), Q = computed(() => !!(u.value || c.value || d.value || m.value)), J = computed(() => {
8935
8938
  if (p.value)
8936
8939
  return 400;
8937
- if (L.value.kgWidth)
8938
- return L.value.kgWidth + 2;
8939
- }), se = computed(() => {
8940
+ if (F.value.kgWidth)
8941
+ return F.value.kgWidth + 2;
8942
+ }), D = computed(() => {
8940
8943
  var W, Y;
8941
8944
  let K = "kg-submit";
8942
- return ee.isFullscreen && (K += " kg-submit--fullscreen"), ((W = E.value) == null ? void 0 : W.responsive_flg) !== 0 && (K += " kg-submit--responsive"), (((Y = E.value) == null ? void 0 : Y.display_type) === KG_SUBMIT_DISPLAY_TYPE.MODAL || m.value) && (K += " kg-submit--modal"), e.kgClass && (K += ` ${e.kgClass}`), K;
8943
- }), ee = reactive({
8945
+ return x.isFullscreen && (K += " kg-submit--fullscreen"), ((W = E.value) == null ? void 0 : W.responsive_flg) !== 0 && (K += " kg-submit--responsive"), (((Y = E.value) == null ? void 0 : Y.display_type) === KG_SUBMIT_DISPLAY_TYPE.MODAL || m.value) && (K += " kg-submit--modal"), e.kgClass && (K += ` ${e.kgClass}`), K;
8946
+ }), x = reactive({
8944
8947
  isFullscreen: !1
8945
- }), V = computed(() => {
8946
- var K, W, Y, J;
8948
+ }), X = computed(() => {
8949
+ var K, W, Y, Z;
8947
8950
  switch ((K = E.value) == null ? void 0 : K.layout) {
8948
8951
  case "horizontal":
8949
8952
  switch ((W = E.value) == null ? void 0 : W.label_col_unit) {
@@ -8954,14 +8957,14 @@ const getProps$p = () => ({
8954
8957
  default:
8955
8958
  return {
8956
8959
  style: {
8957
- width: `${(J = E.value) == null ? void 0 : J.label_col}px`
8960
+ width: `${(Z = E.value) == null ? void 0 : Z.label_col}px`
8958
8961
  }
8959
8962
  };
8960
8963
  }
8961
8964
  default:
8962
8965
  return;
8963
8966
  }
8964
- }), x = computed(() => {
8967
+ }), q = computed(() => {
8965
8968
  var K, W, Y;
8966
8969
  switch ((K = E.value) == null ? void 0 : K.layout) {
8967
8970
  case "horizontal":
@@ -8977,14 +8980,14 @@ const getProps$p = () => ({
8977
8980
  return;
8978
8981
  }
8979
8982
  });
8980
- watch(X, (K) => {
8981
- K ? q() : G();
8983
+ watch(Q, (K) => {
8984
+ K ? ee() : z();
8982
8985
  }), watch(E, (K) => {
8983
- K != null && K.dft_width && (L.value.kgWidth = K.dft_width);
8986
+ K != null && K.dft_width && (F.value.kgWidth = K.dft_width);
8984
8987
  }, {
8985
8988
  immediate: !0
8986
8989
  });
8987
- function q() {
8990
+ function ee() {
8988
8991
  var K;
8989
8992
  o.store.emit(n.formID, "open", {
8990
8993
  isCreating: u.value,
@@ -8993,13 +8996,13 @@ const getProps$p = () => ({
8993
8996
  isDeleting: m.value,
8994
8997
  row: a.selectedRow.value,
8995
8998
  model: l
8996
- }), ((K = E.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && (ee.isFullscreen = !0);
8999
+ }), ((K = E.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && (x.isFullscreen = !0);
8997
9000
  }
8998
- function G() {
9001
+ function z() {
8999
9002
  var K;
9000
- L.value.kgWidth = ((K = E.value) == null ? void 0 : K.dft_width) || DEFAULT_WIDTH, ee.isFullscreen = !1, o.store.emit(n.formID, "close");
9003
+ F.value.kgWidth = ((K = E.value) == null ? void 0 : K.dft_width) || DEFAULT_WIDTH, x.isFullscreen = !1, o.store.emit(n.formID, "close");
9001
9004
  }
9002
- function Z() {
9005
+ function re() {
9003
9006
  switch (!0) {
9004
9007
  case u.value:
9005
9008
  n.store.setIsCreating(n.formID, !1);
@@ -9015,28 +9018,28 @@ const getProps$p = () => ({
9015
9018
  break;
9016
9019
  }
9017
9020
  }
9018
- async function te() {
9021
+ async function ie() {
9019
9022
  var K, W;
9020
9023
  try {
9021
9024
  if (await o.store.emit(n.formID, "beforeOk", {
9022
- rules: N,
9025
+ rules: V,
9023
9026
  model: l
9024
9027
  }))
9025
9028
  return;
9026
9029
  try {
9027
- await ((K = H.value) == null ? void 0 : K.validate());
9028
- } catch (J) {
9029
- KgUtil.throwIfNotFormError(J);
9030
+ await ((K = G.value) == null ? void 0 : K.validate());
9031
+ } catch (Z) {
9032
+ KgUtil.throwIfNotFormError(Z);
9030
9033
  }
9031
- switch (await ((W = H.value) == null ? void 0 : W.validate()), !0) {
9034
+ switch (await ((W = G.value) == null ? void 0 : W.validate()), !0) {
9032
9035
  case u.value:
9033
9036
  await le();
9034
9037
  break;
9035
9038
  case c.value:
9036
- await ue();
9039
+ await de();
9037
9040
  break;
9038
9041
  case d.value:
9039
- await ce();
9042
+ await fe();
9040
9043
  break;
9041
9044
  case m.value:
9042
9045
  await ge();
@@ -9047,7 +9050,7 @@ const getProps$p = () => ({
9047
9050
  }
9048
9051
  }
9049
9052
  async function le() {
9050
- var W, Y, J, ne, ae, oe, re;
9053
+ var W, Y, Z, ne, ae, oe, te;
9051
9054
  const K = (W = b.value) == null ? void 0 : W.cmd;
9052
9055
  if (!K) {
9053
9056
  Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
@@ -9058,19 +9061,19 @@ const getProps$p = () => ({
9058
9061
  n.store.setIsCreatingRequesting(n.formID, !0);
9059
9062
  try {
9060
9063
  await httpClient().request({
9061
- method: (J = (Y = b.value) == null ? void 0 : Y.cmd_method) != null ? J : "POST",
9064
+ method: (Z = (Y = b.value) == null ? void 0 : Y.cmd_method) != null ? Z : "POST",
9062
9065
  url: K,
9063
9066
  params: KgVarUtil.parseCommandParameter((ae = (ne = b.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
9064
9067
  data: toRaw(l.value)
9065
- }), message.success(r.t("kg.createSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (re = (oe = s.search).value) == null || re.call(oe, !0);
9066
- } catch (ie) {
9067
- console.error(ie);
9068
+ }), message.success(r.t("kg.createSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (te = (oe = s.search).value) == null || te.call(oe, !0);
9069
+ } catch (se) {
9070
+ console.error(se);
9068
9071
  } finally {
9069
9072
  n.store.setIsCreatingRequesting(n.formID, !1);
9070
9073
  }
9071
9074
  }
9072
- async function ue() {
9073
- var W, Y, J, ne, ae, oe, re;
9075
+ async function de() {
9076
+ var W, Y, Z, ne, ae, oe, te;
9074
9077
  const K = (W = _.value) == null ? void 0 : W.cmd;
9075
9078
  if (!K) {
9076
9079
  Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
@@ -9080,19 +9083,19 @@ const getProps$p = () => ({
9080
9083
  }
9081
9084
  try {
9082
9085
  n.store.setIsUpdatingRequesting(n.formID, !0), await httpClient().request({
9083
- method: (J = (Y = _.value) == null ? void 0 : Y.cmd_method) != null ? J : "POST",
9086
+ method: (Z = (Y = _.value) == null ? void 0 : Y.cmd_method) != null ? Z : "POST",
9084
9087
  url: K,
9085
9088
  params: KgVarUtil.parseCommandParameter((ae = (ne = _.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
9086
9089
  data: toRaw(l.value)
9087
- }), message.success(r.t("kg.updateSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsUpdating(n.formID, !1), (re = (oe = s.search).value) == null || re.call(oe);
9088
- } catch (ie) {
9089
- console.error(ie);
9090
+ }), message.success(r.t("kg.updateSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsUpdating(n.formID, !1), (te = (oe = s.search).value) == null || te.call(oe);
9091
+ } catch (se) {
9092
+ console.error(se);
9090
9093
  } finally {
9091
9094
  n.store.setIsUpdatingRequesting(n.formID, !1);
9092
9095
  }
9093
9096
  }
9094
- async function ce() {
9095
- var W, Y, J, ne, ae, oe, re;
9097
+ async function fe() {
9098
+ var W, Y, Z, ne, ae, oe, te;
9096
9099
  const K = (W = v.value) == null ? void 0 : W.cmd;
9097
9100
  if (!K) {
9098
9101
  Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
@@ -9101,20 +9104,22 @@ const getProps$p = () => ({
9101
9104
  return;
9102
9105
  }
9103
9106
  try {
9104
- n.store.setIsCopyingRequesting(n.formID, !0), await httpClient().request({
9105
- method: (J = (Y = v.value) == null ? void 0 : Y.cmd_method) != null ? J : "POST",
9107
+ n.store.setIsCopyingRequesting(n.formID, !0);
9108
+ const se = toRaw(l.value);
9109
+ delete se.id, await httpClient().request({
9110
+ method: (Z = (Y = v.value) == null ? void 0 : Y.cmd_method) != null ? Z : "POST",
9106
9111
  url: K,
9107
9112
  params: KgVarUtil.parseCommandParameter((ae = (ne = v.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
9108
9113
  data: toRaw(l.value)
9109
- }), message.success(r.t("kg.copySuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (re = (oe = s.search).value) == null || re.call(oe, !0);
9110
- } catch (ie) {
9111
- console.error(ie);
9114
+ }), message.success(r.t("kg.copySuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (te = (oe = s.search).value) == null || te.call(oe, !0);
9115
+ } catch (se) {
9116
+ console.error(se);
9112
9117
  } finally {
9113
9118
  n.store.setIsCopyingRequesting(n.formID, !1);
9114
9119
  }
9115
9120
  }
9116
9121
  async function ge() {
9117
- var W, Y, J, ne, ae, oe, re;
9122
+ var W, Y, Z, ne, ae, oe, te;
9118
9123
  const K = (W = C.value) == null ? void 0 : W.cmd;
9119
9124
  if (!K) {
9120
9125
  Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
@@ -9124,86 +9129,86 @@ const getProps$p = () => ({
9124
9129
  }
9125
9130
  try {
9126
9131
  n.store.setIsDeletingRequesting(n.formID, !0), await httpClient().request({
9127
- method: (J = (Y = C.value) == null ? void 0 : Y.cmd_method) != null ? J : "DELETE",
9132
+ method: (Z = (Y = C.value) == null ? void 0 : Y.cmd_method) != null ? Z : "DELETE",
9128
9133
  url: K,
9129
9134
  params: {
9130
- ids: (ae = (ne = a.selectedRows.value) == null ? void 0 : ne.map((ie) => {
9131
- var de;
9132
- return (de = ie.id) != null ? de : "";
9135
+ ids: (ae = (ne = a.selectedRows.value) == null ? void 0 : ne.map((se) => {
9136
+ var ue;
9137
+ return (ue = se.id) != null ? ue : "";
9133
9138
  })) != null ? ae : []
9134
9139
  }
9135
9140
  }, {
9136
9141
  joinParamsToUrl: !0
9137
- }), message.success(r.t("kg.deleteSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsDeleting(n.formID, !1), (re = (oe = s.search).value) == null || re.call(oe, !0);
9138
- } catch (ie) {
9139
- console.error(ie);
9142
+ }), message.success(r.t("kg.deleteSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsDeleting(n.formID, !1), (te = (oe = s.search).value) == null || te.call(oe, !0);
9143
+ } catch (se) {
9144
+ console.error(se);
9140
9145
  } finally {
9141
9146
  n.store.setIsDeletingRequesting(n.formID, !1);
9142
9147
  }
9143
9148
  }
9144
- function fe(K) {
9145
- var Y, J;
9146
- const W = (J = (Y = i == null ? void 0 : i.KgSubmit) == null ? void 0 : Y["KgForm.Item"]) == null ? void 0 : J[K.var_nam];
9149
+ function ce(K) {
9150
+ var Y, Z;
9151
+ const W = (Z = (Y = i == null ? void 0 : i.KgSubmit) == null ? void 0 : Y["KgForm.Item"]) == null ? void 0 : Z[K.var_nam];
9147
9152
  return isFunction$2(W) ? createVNode(KgForm.Item, {
9148
9153
  kgVarName: K.var_nam,
9149
9154
  kgContext: KG_FORM_CONTEXT.SUBMIT,
9150
- kgRules: N.value[K.var_nam],
9151
- onKgSubmit: te
9155
+ kgRules: V.value[K.var_nam],
9156
+ onKgSubmit: ie
9152
9157
  }, {
9153
9158
  control: ({
9154
9159
  varName: ne,
9155
9160
  props: ae,
9156
9161
  model: oe,
9157
- varConfig: re,
9158
- varProfileDetail: ie,
9159
- varSubmitField: de
9162
+ varConfig: te,
9163
+ varProfileDetail: se,
9164
+ varSubmitField: ue
9160
9165
  }) => W({
9161
9166
  varName: ne,
9162
9167
  props: ae,
9163
9168
  model: oe,
9164
- varConfig: re,
9165
- varProfileDetail: ie,
9166
- varSubmitField: de
9169
+ varConfig: te,
9170
+ varProfileDetail: se,
9171
+ varSubmitField: ue
9167
9172
  })
9168
9173
  }) : createVNode(KgForm.Item, {
9169
9174
  kgVarName: K.var_nam,
9170
9175
  kgContext: KG_FORM_CONTEXT.SUBMIT,
9171
- kgRules: N.value[K.var_nam],
9172
- onKgSubmit: te
9176
+ kgRules: V.value[K.var_nam],
9177
+ onKgSubmit: ie
9173
9178
  }, null);
9174
9179
  }
9175
9180
  function pe() {
9176
- var Y, J, ne, ae, oe;
9181
+ var Y, Z, ne, ae, oe;
9177
9182
  let K, W;
9178
9183
  return createVNode(KgResizable, {
9179
9184
  kgType: ((Y = E.value) == null ? void 0 : Y.display_type) === KG_SUBMIT_DISPLAY_TYPE.MODAL ? "right" : "left",
9180
- kgMinWidth: (ne = (J = E.value) == null ? void 0 : J.min_width) != null ? ne : DEFAULT_MIN_WIDTH,
9185
+ kgMinWidth: (ne = (Z = E.value) == null ? void 0 : Z.min_width) != null ? ne : DEFAULT_MIN_WIDTH,
9181
9186
  kgMaxWidth: (oe = (ae = E.value) == null ? void 0 : ae.max_width) != null ? oe : DEFAULT_MAX_WIDTH,
9182
9187
  kgDisabled: R.value,
9183
- kgWidth: p.value ? 398 : L.value.kgWidth,
9184
- "onUpdate:kgWidth": (re) => L.value.kgWidth = re
9188
+ kgWidth: p.value ? 398 : F.value.kgWidth,
9189
+ "onUpdate:kgWidth": (te) => F.value.kgWidth = te
9185
9190
  }, {
9186
9191
  default: () => [createVNode(Spin, {
9187
9192
  spinning: y.value
9188
9193
  }, {
9189
9194
  default: () => {
9190
- var re, ie;
9195
+ var te, se;
9191
9196
  return [createVNode(KgForm, {
9192
- ref: H,
9197
+ ref: G,
9193
9198
  model: l.value,
9194
- layout: (ie = (re = E.value) == null ? void 0 : re.layout) != null ? ie : "vertical",
9195
- labelCol: V.value,
9196
- wrapperCol: x.value
9199
+ layout: (se = (te = E.value) == null ? void 0 : te.layout) != null ? se : "vertical",
9200
+ labelCol: X.value,
9201
+ wrapperCol: q.value
9197
9202
  }, {
9198
9203
  default: () => [createVNode("div", {
9199
9204
  ref: U
9200
- }, [M.value.length > 0 && createVNode(Row, {
9205
+ }, [w.value.length > 0 && createVNode(Row, {
9201
9206
  gutter: 6
9202
- }, _isSlot$7(K = M.value.map(fe)) ? K : {
9207
+ }, _isSlot$7(K = w.value.map(ce)) ? K : {
9203
9208
  default: () => [K]
9204
- }), M.value.length > 0 && D.value.length > 0 && createVNode(Divider, null, null), D.value.length > 0 && createVNode(Row, {
9209
+ }), w.value.length > 0 && L.value.length > 0 && createVNode(Divider, null, null), L.value.length > 0 && createVNode(Row, {
9205
9210
  gutter: 6
9206
- }, _isSlot$7(W = D.value.map(fe)) ? W : {
9211
+ }, _isSlot$7(W = L.value.map(ce)) ? W : {
9207
9212
  default: () => [W]
9208
9213
  }), p.value && createVNode("div", {
9209
9214
  style: "text-align: center; padding: 6px 0 12px;"
@@ -9217,44 +9222,44 @@ const getProps$p = () => ({
9217
9222
  let K, W;
9218
9223
  return createVNode("div", null, [createVNode(Button, {
9219
9224
  type: "primary",
9220
- ghost: !$.value,
9221
- disabled: $.value,
9222
- onClick: Z
9225
+ ghost: !M.value,
9226
+ disabled: M.value,
9227
+ onClick: re
9223
9228
  }, _isSlot$7(K = r.t("kg.cancel")) ? K : {
9224
9229
  default: () => [K]
9225
9230
  }), createVNode(Button, {
9226
9231
  type: "primary",
9227
- disabled: A.value,
9228
- loading: w.value,
9232
+ disabled: O.value,
9233
+ loading: $.value,
9229
9234
  danger: !!m.value,
9230
- onClick: te
9235
+ onClick: ie
9231
9236
  }, _isSlot$7(W = r.t(m.value ? "kg.delete" : "kg.save")) ? W : {
9232
9237
  default: () => [W]
9233
9238
  })]);
9234
9239
  }
9235
9240
  function he() {
9236
9241
  return createVNode("div", {
9237
- title: z.title.value
9238
- }, [z.title.value]);
9242
+ title: H.title.value
9243
+ }, [H.title.value]);
9239
9244
  }
9240
9245
  function _e() {
9241
9246
  return createVNode(KgSubmitHeader, {
9242
- isFullscreen: ee.isFullscreen,
9243
- "onUpdate:isFullscreen": (K) => ee.isFullscreen = K,
9247
+ isFullscreen: x.isFullscreen,
9248
+ "onUpdate:isFullscreen": (K) => x.isFullscreen = K,
9244
9249
  kgShowFullscreenButton: !p.value,
9245
9250
  kgShowConfigButton: !p.value && e.kgShowConfigButton,
9246
- onKgCancel: Z
9251
+ onKgCancel: re
9247
9252
  }, null);
9248
9253
  }
9249
9254
  return () => createVNode(Drawer, {
9250
- visible: X.value,
9255
+ visible: Q.value,
9251
9256
  placement: "right",
9252
9257
  closable: !1,
9253
9258
  maskClosable: !1,
9254
9259
  keyboard: !1,
9255
9260
  destroyOnClose: !0,
9256
- width: Q.value,
9257
- class: se.value,
9261
+ width: J.value,
9262
+ class: D.value,
9258
9263
  "kg-frm-id": n.formID
9259
9264
  }, {
9260
9265
  title: he,
@@ -9479,8 +9484,8 @@ const getProps$l = () => ({
9479
9484
  }) => {
9480
9485
  const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
9481
9486
  return s = watch(l, (c) => {
9482
- var d, m, p, b, _, v, C, y, E, I, P;
9483
- c && (c.id = (d = u == null ? void 0 : u.id) != null ? d : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (m = u == null ? void 0 : u.aut_load_flg) != null ? m : 0, c.mult_flg = (p = u == null ? void 0 : u.mult_flg) != null ? p : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (_ = u == null ? void 0 : u.show_bottom_left_flg) != null ? _ : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (C = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? C : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (E = u == null ? void 0 : u.pg_size_opt) != null ? E : 10, c.cmd_prm = (I = u == null ? void 0 : u.cmd_prm) != null ? I : void 0, c.button_display_type = (P = u == null ? void 0 : u.button_display_type) != null ? P : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
9487
+ var d, m, p, b, _, v, C, y, E, A, P;
9488
+ c && (c.id = (d = u == null ? void 0 : u.id) != null ? d : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (m = u == null ? void 0 : u.aut_load_flg) != null ? m : 0, c.mult_flg = (p = u == null ? void 0 : u.mult_flg) != null ? p : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (_ = u == null ? void 0 : u.show_bottom_left_flg) != null ? _ : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (C = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? C : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (E = u == null ? void 0 : u.pg_size_opt) != null ? E : 10, c.cmd_prm = (A = u == null ? void 0 : u.cmd_prm) != null ? A : void 0, c.button_display_type = (P = u == null ? void 0 : u.button_display_type) != null ? P : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
9484
9489
  }, {
9485
9490
  immediate: !0
9486
9491
  }), !1;
@@ -9726,10 +9731,10 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
9726
9731
  var y;
9727
9732
  let v, C;
9728
9733
  return createVNode(Fragment, null, [(y = a.varGridMasters.value) == null ? void 0 : y.map((E) => {
9729
- var I;
9734
+ var A;
9730
9735
  return createVNode(Menu.Item, {
9731
9736
  key: E.id,
9732
- class: E.id === ((I = a.currentVarGridMaster.value) == null ? void 0 : I.id) ? "selected" : "",
9737
+ class: E.id === ((A = a.currentVarGridMaster.value) == null ? void 0 : A.id) ? "selected" : "",
9733
9738
  "kg-var-nam": E.grd_var_nam
9734
9739
  }, {
9735
9740
  default: () => [a.t(E.grd_var_nam).value]
@@ -10017,240 +10022,235 @@ const KgTable$1 = "", KgTable = defineComponent({
10017
10022
  slots: t,
10018
10023
  emit: r
10019
10024
  }) {
10020
- const n = inject(KG_DI_HOST_FORM_ID, ""), a = inject(KG_DI_VAR_NAME, ""), o = useKg(), s = useKgVar(), i = useKgTable(), l = useKgButton(), {
10025
+ const n = useKg(), a = useKgVar(), o = useKgSearch(), s = useKgButton(), i = useKgTable();
10026
+ o.onSearch((D) => {
10027
+ M(D);
10028
+ }), o.onReset(() => {
10029
+ M(!0);
10030
+ });
10031
+ const l = ref(!1), {
10021
10032
  columns: u,
10022
10033
  scrollX: c
10023
10034
  } = _useColumns(), {
10024
10035
  isLoading: d
10025
10036
  } = _useLoading(), m = ref(null);
10026
10037
  _useResizeObserver(m);
10027
- const p = computed(() => {
10028
- var x;
10029
- const V = (x = s.varGridConfig.value) == null ? void 0 : x.prf_frm_id;
10030
- return V === void 0 ? null : useKgSearch(V || s.formID);
10031
- });
10032
- computed(() => s.store.getVarLookup(n, a));
10033
- const b = computed(() => {
10034
- var V;
10035
- return s.store.getVarButtonSearch(((V = p.value) == null ? void 0 : V.formID) || s.formID);
10038
+ const p = computed(() => a.store.getVarButtonSearch(a.formID)), b = computed(() => {
10039
+ var D;
10040
+ return ((D = a.varGridConfig.value) == null ? void 0 : D.mult_flg) === 1;
10036
10041
  }), _ = computed(() => {
10037
- var V;
10038
- return ((V = s.varGridConfig.value) == null ? void 0 : V.mult_flg) === 1;
10042
+ var D;
10043
+ return ((D = a.varGridConfig.value) == null ? void 0 : D.aut_load_flg) === 1;
10039
10044
  }), v = computed(() => {
10040
- var V;
10041
- return ((V = s.varGridConfig.value) == null ? void 0 : V.aut_load_flg) === 1;
10045
+ var D;
10046
+ return ((D = a.varGridConfig.value) == null ? void 0 : D.show_bottom_left_flg) !== 0;
10042
10047
  }), C = computed(() => {
10043
- var V;
10044
- return ((V = s.varGridConfig.value) == null ? void 0 : V.show_bottom_left_flg) !== 0;
10048
+ var D;
10049
+ return ((D = a.varGridConfig.value) == null ? void 0 : D.show_bottom_right_flg) !== 0;
10045
10050
  }), y = computed(() => {
10046
- var V;
10047
- return ((V = s.varGridConfig.value) == null ? void 0 : V.show_bottom_right_flg) !== 0;
10051
+ var D, x;
10052
+ return JSON.parse((x = (D = a.varGridConfig.value) == null ? void 0 : D.pg_size_opts) != null ? x : "[]");
10048
10053
  }), E = computed(() => {
10049
- var V, x;
10050
- return JSON.parse((x = (V = s.varGridConfig.value) == null ? void 0 : V.pg_size_opts) != null ? x : "[]");
10051
- }), I = computed(() => {
10052
- var V;
10053
- return (V = s.varGridConfig.value) == null ? void 0 : V.pg_size_opt;
10054
+ var D;
10055
+ return (D = a.varGridConfig.value) == null ? void 0 : D.pg_size_opt;
10056
+ }), A = computed(() => {
10057
+ var D, x;
10058
+ return (x = (D = p.value) == null ? void 0 : D.cmd) != null ? x : null;
10054
10059
  }), P = computed(() => {
10055
- var V, x;
10056
- return (x = (V = b.value) == null ? void 0 : V.cmd) != null ? x : null;
10057
- }), T = computed(() => {
10058
- var x, q, G, Z, te, le, ue, ce;
10059
- let V = {
10060
- pageNo: M.pageIndex,
10061
- pageSize: M.pageSize,
10062
- ...D,
10063
- ...(G = (q = (x = p.value) == null ? void 0 : x.model) == null ? void 0 : q.value) != null ? G : {}
10060
+ var x, X, q, ee, z, re, ie;
10061
+ let D = {
10062
+ pageNo: I.pageIndex,
10063
+ pageSize: I.pageSize,
10064
+ ...w,
10065
+ ...(X = (x = o.model) == null ? void 0 : x.value) != null ? X : {}
10064
10066
  };
10065
- return b.value && (V = {
10066
- ...V,
10067
- ...KgVarUtil.parseCommandParameter((te = (Z = b.value) == null ? void 0 : Z.cmd_prm) != null ? te : "")
10068
- }), (le = s.varGridConfig.value) != null && le.cmd_prm && (V = {
10069
- ...V,
10070
- ...KgVarUtil.parseCommandParameter((ue = s.varGridConfig.value.cmd_prm) != null ? ue : "")
10071
- }), ((ce = s.varGridConfig.value) == null ? void 0 : ce.convert_sort_field_to_under_score_flg) === 1 && V.column && (V.column = snakeCase$1(V.column)), V;
10072
- }), B = computed(() => {
10073
- var V;
10074
- if (((V = s.varGridConfig.value) == null ? void 0 : V.show_check_column_flg) === 1)
10067
+ return p.value && (D = {
10068
+ ...D,
10069
+ ...KgVarUtil.parseCommandParameter((ee = (q = p.value) == null ? void 0 : q.cmd_prm) != null ? ee : "")
10070
+ }), (z = a.varGridConfig.value) != null && z.cmd_prm && (D = {
10071
+ ...D,
10072
+ ...KgVarUtil.parseCommandParameter((re = a.varGridConfig.value.cmd_prm) != null ? re : "")
10073
+ }), ((ie = a.varGridConfig.value) == null ? void 0 : ie.convert_sort_field_to_under_score_flg) === 1 && D.column && (D.column = snakeCase$1(D.column)), D;
10074
+ }), T = computed(() => {
10075
+ var D;
10076
+ if (((D = a.varGridConfig.value) == null ? void 0 : D.show_check_column_flg) === 1)
10075
10077
  return {
10076
10078
  fixed: "left",
10077
10079
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
10078
- hideSelectAll: !_.value,
10080
+ hideSelectAll: !b.value,
10079
10081
  selectedRowKeys: k,
10080
10082
  preserveSelectedRowKeys: !1,
10081
- onSelect: (x) => H(x),
10082
- onChange: (x) => _.value && R(x)
10083
+ onSelect: (x) => F(x),
10084
+ onChange: (x) => b.value && O(x)
10083
10085
  };
10084
- }), F = computed(() => {
10085
- let V = "kg-table";
10086
- return !C.value && !y.value && (V += " kg-table--no-bottom"), V;
10087
- }), O = ref([]), k = ref([]), M = reactive({
10086
+ }), B = computed(() => {
10087
+ let D = "kg-table";
10088
+ return !v.value && !C.value && (D += " kg-table--no-bottom"), D;
10089
+ }), N = ref([]), k = ref([]), I = reactive({
10088
10090
  pageIndex: 1,
10089
10091
  pageSize: 10,
10090
10092
  total: 0
10091
- }), D = reactive({
10093
+ }), w = reactive({
10092
10094
  column: void 0,
10093
10095
  order: void 0
10094
- }), w = watch(p, (V) => {
10095
- V && (setTimeout(() => w()), V.onSearch((x) => {
10096
- L(x);
10097
- }), V.onReset(() => {
10098
- L(!0);
10099
- }));
10100
- }), $ = watch(I, (V) => {
10101
- V && (setTimeout(() => $()), M.pageSize = V);
10096
+ }), L = watch(E, (D) => {
10097
+ D && (setTimeout(() => L()), I.pageSize = D), l.value = !0;
10102
10098
  });
10103
- watch(E, (V) => {
10104
- V.length > 0 && !V.includes(M.pageSize) && (M.pageSize = I.value);
10105
- }), watch([P, v, () => {
10106
- var V;
10107
- return (V = p == null ? void 0 : p.value) == null ? void 0 : V.isReady;
10108
- }], ([V, x, q]) => {
10109
- V && x && q && !i.store.getIsRetrieved(s.formID) && L(!0);
10099
+ watch(y, (D) => {
10100
+ D.length > 0 && !D.includes(I.pageSize) && (I.pageSize = E.value);
10101
+ }), watch([A, _, () => o.isReady], ([D, x, X]) => {
10102
+ D && x && X && !i.store.getIsRetrieved(a.formID) && M(!0);
10110
10103
  }, {
10111
10104
  immediate: !0
10112
10105
  }), onUnmounted(() => {
10113
- i.store.dispose(s.formID);
10106
+ i.store.dispose(a.formID);
10114
10107
  });
10115
- function A(V, x) {
10116
- if (!!B.value) {
10108
+ function $(D, x) {
10109
+ if (!!T.value) {
10117
10110
  if (!x) {
10118
- k.value = [], i.store.setSelectedRows(s.formID, []);
10111
+ k.value = [], i.store.setSelectedRows(a.formID, []);
10119
10112
  return;
10120
10113
  }
10121
- switch (V == null ? void 0 : V.detail) {
10114
+ switch (D == null ? void 0 : D.detail) {
10122
10115
  case 1:
10123
- k.value = [x.id], i.store.setSelectedRows(s.formID, k.value.map((q) => {
10124
- var G;
10125
- return (G = O.value) == null ? void 0 : G.find((Z) => Z.id === q);
10126
- }).filter((q) => !!q));
10116
+ k.value = [x.id], i.store.setSelectedRows(a.formID, k.value.map((X) => {
10117
+ var q;
10118
+ return (q = N.value) == null ? void 0 : q.find((ee) => ee.id === X);
10119
+ }).filter((X) => !!X));
10127
10120
  break;
10128
10121
  case 2:
10129
- i.store.emit(s.formID, "rowDoubleClick", x);
10122
+ i.store.emit(a.formID, "rowDoubleClick", x);
10130
10123
  break;
10131
10124
  }
10132
10125
  }
10133
10126
  }
10134
- async function L(V = !1) {
10135
- var x, q;
10136
- if (!P.value) {
10137
- Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10138
- button: b.value
10139
- });
10140
- return;
10141
- }
10142
- V && (M.pageIndex = 1), i.store.setIsRetrieving(s.formID, !0);
10143
- try {
10144
- const G = await httpClient().request({
10145
- method: "GET",
10146
- url: P.value,
10147
- params: T.value
10148
- });
10149
- G ? isArrayLike(G) ? (O.value = G, M.total = G.length) : "total" in G && "records" in G && (O.value = (x = G.records) != null ? x : [], M.total = (q = G.total) != null ? q : 0) : (O.value = [], M.total = 0), i.store.emit(s.formID, "retrieve", G), A(), await nextTick(), i.store.setIsRetrieved(s.formID, !0);
10150
- } catch (G) {
10151
- throw G;
10152
- } finally {
10153
- i.store.setIsRetrieving(s.formID, !1);
10127
+ function M(D = !1) {
10128
+ const x = watch(l, (q) => {
10129
+ q && (setTimeout(() => x()), X());
10130
+ }, {
10131
+ immediate: !0
10132
+ });
10133
+ async function X() {
10134
+ var q, ee;
10135
+ if (!A.value) {
10136
+ Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10137
+ button: p.value
10138
+ });
10139
+ return;
10140
+ }
10141
+ D && (I.pageIndex = 1), i.store.setIsRetrieving(a.formID, !0);
10142
+ try {
10143
+ const z = await httpClient().request({
10144
+ method: "GET",
10145
+ url: A.value,
10146
+ params: P.value
10147
+ });
10148
+ z ? isArrayLike(z) ? (N.value = z, I.total = z.length) : "total" in z && "records" in z && (N.value = (q = z.records) != null ? q : [], I.total = (ee = z.total) != null ? ee : 0) : (N.value = [], I.total = 0), i.store.emit(a.formID, "retrieve", z), $(), await nextTick(), i.store.setIsRetrieved(a.formID, !0);
10149
+ } catch (z) {
10150
+ throw z;
10151
+ } finally {
10152
+ i.store.setIsRetrieving(a.formID, !1);
10153
+ }
10154
10154
  }
10155
10155
  }
10156
- function R(V) {
10157
- k.value = V, i.store.setSelectedRows(s.formID, k.value.map((x) => {
10158
- var q;
10159
- return (q = O.value) == null ? void 0 : q.find((G) => G.id === x);
10156
+ function O(D) {
10157
+ k.value = D, i.store.setSelectedRows(a.formID, k.value.map((x) => {
10158
+ var X;
10159
+ return (X = N.value) == null ? void 0 : X.find((q) => q.id === x);
10160
10160
  }).filter((x) => !!x));
10161
10161
  }
10162
- function H(V) {
10163
- var x, q;
10164
- switch (_.value) {
10162
+ function F(D) {
10163
+ var x, X;
10164
+ switch (b.value) {
10165
10165
  case !0:
10166
10166
  {
10167
- const G = V.id;
10168
- k.value.includes(G) ? k.value = without$1(k.value, G) : k.value = [...(x = k.value) != null ? x : [], G];
10167
+ const q = D.id;
10168
+ k.value.includes(q) ? k.value = without$1(k.value, q) : k.value = [...(x = k.value) != null ? x : [], q];
10169
10169
  }
10170
10170
  break;
10171
10171
  case !1:
10172
10172
  {
10173
- const G = V.id;
10174
- (q = k.value) != null && q.includes(G) ? k.value = [] : k.value = [G];
10173
+ const q = D.id;
10174
+ (X = k.value) != null && X.includes(q) ? k.value = [] : k.value = [q];
10175
10175
  }
10176
10176
  break;
10177
10177
  }
10178
- i.store.setSelectedRows(s.formID, k.value.map((G) => {
10179
- var Z;
10180
- return (Z = O.value) == null ? void 0 : Z.find((te) => te.id === G);
10181
- }).filter((G) => !!G));
10178
+ i.store.setSelectedRows(a.formID, k.value.map((q) => {
10179
+ var ee;
10180
+ return (ee = N.value) == null ? void 0 : ee.find((z) => z.id === q);
10181
+ }).filter((q) => !!q));
10182
10182
  }
10183
- function N(V, x) {
10184
- x.width = V, s.store.setVarGridDetailWidth(s.formID, x.dataIndex, V);
10183
+ function R(D, x) {
10184
+ x.width = D, a.store.setVarGridDetailWidth(a.formID, x.dataIndex, D);
10185
10185
  }
10186
- async function U(V, x, q, G) {
10187
- var Z;
10188
- switch (G.action) {
10186
+ async function G(D, x, X, q) {
10187
+ var ee;
10188
+ switch (q.action) {
10189
10189
  case "sort":
10190
10190
  {
10191
10191
  await nextTick();
10192
- let te = q;
10193
- te.order ? (D.column = (Z = te.field) != null ? Z : void 0, D.order = te.order === "ascend" ? "asc" : te.order === "descend" ? "desc" : void 0) : (D.column = void 0, D.order = void 0), L(!0);
10192
+ let z = X;
10193
+ z.order ? (w.column = (ee = z.field) != null ? ee : void 0, w.order = z.order === "ascend" ? "asc" : z.order === "descend" ? "desc" : void 0) : (w.column = void 0, w.order = void 0), M(!0);
10194
10194
  }
10195
10195
  break;
10196
10196
  }
10197
10197
  }
10198
- function z(V, x) {
10199
- x !== M.pageSize ? (M.pageIndex = 1, M.pageSize = x) : M.pageIndex = V, L();
10198
+ function V(D, x) {
10199
+ x !== I.pageSize ? (I.pageIndex = 1, I.pageSize = x) : I.pageIndex = D, M();
10200
10200
  }
10201
- function X(V) {
10202
- k.value = [V.id], i.store.setSelectedRows(s.formID, k.value.map((x) => {
10203
- var q;
10204
- return (q = O.value) == null ? void 0 : q.find((G) => G.id === x);
10205
- }).filter((x) => !!x)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
10201
+ function U(D) {
10202
+ k.value = [D.id], i.store.setSelectedRows(a.formID, k.value.map((x) => {
10203
+ var X;
10204
+ return (X = N.value) == null ? void 0 : X.find((q) => q.id === x);
10205
+ }).filter((x) => !!x)), s.click(a.formID, KG_BUTTON_TYPE.UPDATE);
10206
10206
  }
10207
- function Q({
10208
- title: V,
10207
+ function H({
10208
+ title: D,
10209
10209
  column: x
10210
10210
  }) {
10211
10211
  switch (x.dataIndex) {
10212
10212
  case "index":
10213
10213
  return createVNode(KgTableSetting, null, null);
10214
10214
  default:
10215
- return createVNode("pre", null, [V]);
10215
+ return createVNode("pre", null, [D]);
10216
10216
  }
10217
10217
  }
10218
- function se({
10219
- column: V,
10218
+ function Q({
10219
+ column: D,
10220
10220
  index: x,
10221
- record: q,
10222
- value: G,
10223
- text: Z
10221
+ record: X,
10222
+ value: q,
10223
+ text: ee
10224
10224
  }) {
10225
- let te = "";
10226
- V.customRender ? te = V.customRender({
10225
+ let z = "";
10226
+ D.customRender ? z = D.customRender({
10227
10227
  index: x,
10228
- record: q,
10229
- column: V,
10230
- text: Z,
10231
- value: G,
10228
+ record: X,
10229
+ column: D,
10230
+ text: ee,
10231
+ value: q,
10232
10232
  renderIndex: x
10233
- }) : te = G;
10234
- const le = createVNode(KgTableCell, {
10235
- kgRow: q,
10236
- kgValue: te,
10237
- kgVarName: V.dataIndex,
10238
- onKgUpdateLinkClick: () => X(q)
10233
+ }) : z = q;
10234
+ const re = createVNode(KgTableCell, {
10235
+ kgRow: X,
10236
+ kgValue: z,
10237
+ kgVarName: D.dataIndex,
10238
+ onKgUpdateLinkClick: () => U(X)
10239
10239
  }, null);
10240
10240
  return t.bodyCell ? t.bodyCell({
10241
- value: G,
10242
- record: q,
10241
+ value: q,
10242
+ record: X,
10243
10243
  index: x,
10244
- column: V,
10245
- defaultRender: le
10246
- }) : le;
10244
+ column: D,
10245
+ defaultRender: re
10246
+ }) : re;
10247
10247
  }
10248
- function ee() {
10249
- return !v.value && !i.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
10248
+ function J() {
10249
+ return !_.value && !i.store.getIsRetrieved(a.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
10250
10250
  }
10251
10251
  return () => createVNode("div", {
10252
- class: F.value,
10253
- "kg-frm-id": s.formID,
10252
+ class: B.value,
10253
+ "kg-frm-id": a.formID,
10254
10254
  ref: m
10255
10255
  }, [createVNode(Table, {
10256
10256
  class: "kg-flex-table",
@@ -10262,50 +10262,50 @@ const KgTable$1 = "", KgTable = defineComponent({
10262
10262
  pagination: !1,
10263
10263
  showSorterTooltip: !1,
10264
10264
  columns: u.value,
10265
- dataSource: O.value,
10265
+ dataSource: N.value,
10266
10266
  loading: d.value,
10267
10267
  rowKey: "id",
10268
- rowSelection: B.value,
10269
- customRow: (V) => ({
10270
- onClick: (x) => A(x, V)
10268
+ rowSelection: T.value,
10269
+ customRow: (D) => ({
10270
+ onClick: (x) => $(x, D)
10271
10271
  }),
10272
- onResizeColumn: N,
10273
- onChange: U
10272
+ onResizeColumn: R,
10273
+ onChange: G
10274
10274
  }, {
10275
- headerCell: Q,
10276
- bodyCell: se,
10277
- emptyText: ee
10278
- }), (C.value || y.value) && createVNode("div", {
10275
+ headerCell: H,
10276
+ bodyCell: Q,
10277
+ emptyText: J
10278
+ }), (v.value || C.value) && createVNode("div", {
10279
10279
  class: "kg-table-bottom"
10280
10280
  }, [createVNode("div", {
10281
10281
  class: "left"
10282
- }, [C.value && createVNode(KgTableInfo, {
10282
+ }, [v.value && createVNode(KgTableInfo, {
10283
10283
  kgShowClearCheck: k.value.length > 0,
10284
- kgShowClearTable: M.total > 0,
10284
+ kgShowClearTable: I.total > 0,
10285
10285
  kgShowLocate: k.value.length === 1,
10286
10286
  kgTotal: k.value.length,
10287
10287
  kgDisabled: d.value
10288
10288
  }, null)]), createVNode("div", {
10289
10289
  class: "right"
10290
- }, [y.value && createVNode(Pagination, {
10290
+ }, [C.value && createVNode(Pagination, {
10291
10291
  size: "default",
10292
- current: M.pageIndex,
10293
- pageSize: M.pageSize,
10294
- pageSizeOptions: E.value.map((V) => String(V)),
10295
- total: M.total,
10292
+ current: I.pageIndex,
10293
+ pageSize: I.pageSize,
10294
+ pageSizeOptions: y.value.map((D) => String(D)),
10295
+ total: I.total,
10296
10296
  showSizeChanger: !0,
10297
10297
  showQuickJumper: !1,
10298
10298
  hideOnSinglePage: !1,
10299
- disabled: d.value || M.total === 0,
10299
+ disabled: d.value || I.total === 0,
10300
10300
  locale: {
10301
10301
  page: ""
10302
10302
  },
10303
- showTotal: (V, x) => o.t("kg.KgTable.totalText", {
10303
+ showTotal: (D, x) => n.t("kg.KgTable.totalText", {
10304
10304
  from: x[0],
10305
10305
  to: x[1],
10306
- total: V
10306
+ total: D
10307
10307
  }),
10308
- onChange: (V, x) => z(V, x)
10308
+ onChange: (D, x) => V(D, x)
10309
10309
  }, null)])])]);
10310
10310
  }
10311
10311
  }), getProps$f = () => ({
@@ -10632,7 +10632,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10632
10632
  }
10633
10633
  let l = null;
10634
10634
  const u = async () => {
10635
- var _, v, C, y, E, I;
10635
+ var _, v, C, y, E, A;
10636
10636
  l == null || l.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
10637
10637
  const p = ((_ = r.varGridConfig.value) == null ? void 0 : _.mult_flg) === 1, b = n.selectedRows.value;
10638
10638
  try {
@@ -10640,7 +10640,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10640
10640
  method: (C = (v = e.kgButton) == null ? void 0 : v.cmd_method) != null ? C : "POST",
10641
10641
  url: i,
10642
10642
  params: KgVarUtil.parseCommandParameter((E = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? E : ""),
10643
- data: p ? b != null ? b : [] : (I = b == null ? void 0 : b[0]) != null ? I : {}
10643
+ data: p ? b != null ? b : [] : (A = b == null ? void 0 : b[0]) != null ? A : {}
10644
10644
  });
10645
10645
  } catch (P) {
10646
10646
  console.error(P);
@@ -11056,8 +11056,11 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
11056
11056
  },
11057
11057
  getModel(e) {
11058
11058
  return (t) => {
11059
- var r;
11060
- return t ? (r = e.modelMap.get(t)) != null ? r : null : (Logger.error("formID \u4E3A\u7A7A."), null);
11059
+ var a, o;
11060
+ if (!t)
11061
+ return Logger.error("formID \u4E3A\u7A7A."), null;
11062
+ const n = (a = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : a.prf_frm_id;
11063
+ return (o = e.modelMap.get(n || t)) != null ? o : null;
11061
11064
  };
11062
11065
  },
11063
11066
  getSearchFn(e) {
@@ -11127,28 +11130,30 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
11127
11130
  }
11128
11131
  },
11129
11132
  emit(e, t, r) {
11130
- switch (t) {
11131
- case "search":
11132
- {
11133
- const n = this.onSearchListenersMap.get(e);
11134
- n && n.forEach((a) => a(r == null ? void 0 : r.resetPageIndex));
11135
- }
11136
- break;
11137
- case "reset":
11138
- {
11139
- const n = this.onResetListenersMap.get(e);
11140
- n && n.forEach((a) => a());
11141
- }
11142
- break;
11143
- case "ready":
11144
- {
11145
- const n = [], a = this.onReadyListenersMap.get(e);
11146
- a && a.forEach((o) => {
11147
- o.once ? (n.push(o), o.invoked || o()) : o();
11148
- }), n.forEach((o) => this.removeEventListener(e, "ready", o));
11149
- }
11150
- break;
11151
- }
11133
+ const a = [...useKgVar(e).store.getVarGridConfigMap.values()].filter((o) => (o == null ? void 0 : o.prf_frm_id) === e).map((o) => o == null ? void 0 : o.frm_id).filter((o) => !!o);
11134
+ for (let o of [e, ...a])
11135
+ switch (t) {
11136
+ case "search":
11137
+ {
11138
+ const s = this.onSearchListenersMap.get(o);
11139
+ s && s.forEach((i) => i(r == null ? void 0 : r.resetPageIndex));
11140
+ }
11141
+ break;
11142
+ case "reset":
11143
+ {
11144
+ const s = this.onResetListenersMap.get(o);
11145
+ s && s.forEach((i) => i());
11146
+ }
11147
+ break;
11148
+ case "ready":
11149
+ {
11150
+ const s = [], i = this.onReadyListenersMap.get(o);
11151
+ i && i.forEach((l) => {
11152
+ l.once ? (s.push(l), l.invoked || l()) : l();
11153
+ }), s.forEach((l) => this.removeEventListener(o, "ready", l));
11154
+ }
11155
+ break;
11156
+ }
11152
11157
  },
11153
11158
  setIsReady(e, t) {
11154
11159
  !e || this.isReadyMap.set(e, !!t);
@@ -11438,7 +11443,7 @@ const leftVarProfileDetailColumns = (e) => {
11438
11443
  model: C,
11439
11444
  varConfig: y,
11440
11445
  varProfileDetail: E,
11441
- varSubmitField: I
11446
+ varSubmitField: A
11442
11447
  }) => createVNode(Transfer, {
11443
11448
  dataSource: l.value,
11444
11449
  targetKeys: u.value,
@@ -11456,9 +11461,9 @@ const leftVarProfileDetailColumns = (e) => {
11456
11461
  direction: P,
11457
11462
  filteredItems: T,
11458
11463
  selectedKeys: B,
11459
- disabled: F,
11460
- onItemSelectAll: O,
11461
- onItemSelect: k
11464
+ disabled: N,
11465
+ onItemSelectAll: k,
11466
+ onItemSelect: I
11462
11467
  }) => createVNode(Table, {
11463
11468
  pagination: !1,
11464
11469
  class: "kg-flex-table",
@@ -11470,14 +11475,14 @@ const leftVarProfileDetailColumns = (e) => {
11470
11475
  columns: P === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
11471
11476
  rowKey: "id",
11472
11477
  dataSource: T,
11473
- customRow: (M) => ({
11474
- onClick: (D) => b(D, M, P, B)
11478
+ customRow: (w) => ({
11479
+ onClick: (L) => b(L, w, P, B)
11475
11480
  }),
11476
11481
  rowSelection: d({
11477
- disabled: F,
11482
+ disabled: N,
11478
11483
  selectedKeys: B,
11479
- onItemSelectAll: O,
11480
- onItemSelect: k
11484
+ onItemSelectAll: k,
11485
+ onItemSelect: I
11481
11486
  })
11482
11487
  }, null)
11483
11488
  })
@@ -11496,16 +11501,16 @@ const leftVarProfileDetailColumns = (e) => {
11496
11501
  getCheckboxProps: (E) => ({
11497
11502
  disabled: _ || E.disabled
11498
11503
  }),
11499
- onSelectAll(E, I) {
11500
- const P = I.filter((T) => !T.disabled).map(({
11504
+ onSelectAll(E, A) {
11505
+ const P = A.filter((T) => !T.disabled).map(({
11501
11506
  key: T
11502
11507
  }) => T);
11503
11508
  C(P, E);
11504
11509
  },
11505
11510
  onSelect({
11506
11511
  key: E
11507
- }, I) {
11508
- y(E, I);
11512
+ }, A) {
11513
+ y(E, A);
11509
11514
  },
11510
11515
  selectedRowKeys: v,
11511
11516
  columnWidth: 32
@@ -11516,7 +11521,7 @@ const leftVarProfileDetailColumns = (e) => {
11516
11521
  isCopying: C,
11517
11522
  row: y
11518
11523
  }) {
11519
- var I, P;
11524
+ var A, P;
11520
11525
  const E = i.store.getSystemVarProfileDetails(i.formID);
11521
11526
  switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
11522
11527
  case _:
@@ -11532,17 +11537,17 @@ const leftVarProfileDetailColumns = (e) => {
11532
11537
  id: y.id
11533
11538
  }
11534
11539
  });
11535
- l.value = l.value.map((F) => {
11536
- var k;
11537
- const O = (k = T == null ? void 0 : T.varProfileDetails) == null ? void 0 : k.find((M) => M.var_nam === F.var_nam);
11538
- return O ? {
11539
- ...F,
11540
- ...O,
11541
- id: F.id
11542
- } : F;
11540
+ l.value = l.value.map((N) => {
11541
+ var I;
11542
+ const k = (I = T == null ? void 0 : T.varProfileDetails) == null ? void 0 : I.find((w) => w.var_nam === N.var_nam);
11543
+ return k ? {
11544
+ ...N,
11545
+ ...k,
11546
+ id: N.id
11547
+ } : N;
11543
11548
  });
11544
- const B = (P = (I = T == null ? void 0 : T.varProfileDetails) == null ? void 0 : I.map((F) => F.var_nam)) != null ? P : [];
11545
- u.value = l.value.filter((F) => B.includes(F.var_nam)).map((F) => F.id);
11549
+ const B = (P = (A = T == null ? void 0 : T.varProfileDetails) == null ? void 0 : A.map((N) => N.var_nam)) != null ? P : [];
11550
+ u.value = l.value.filter((N) => B.includes(N.var_nam)).map((N) => N.id);
11546
11551
  } catch (T) {
11547
11552
  throw T;
11548
11553
  } finally {
@@ -11682,24 +11687,24 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11682
11687
  const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
11683
11688
  _useLayoutHeaderResizeObserver();
11684
11689
  const o = computed(() => r.store.getFormLevel(r.formID)), s = computed(() => r.store.getVarProfileConfig(r.formID)), i = computed(() => {
11685
- var N;
11686
- return o.value > 0 ? !1 : ((N = s.value) == null ? void 0 : N.header_teleport_flg) !== 0;
11690
+ var V;
11691
+ return o.value > 0 ? !1 : ((V = s.value) == null ? void 0 : V.header_teleport_flg) !== 0;
11687
11692
  }), l = computed(() => getDefaultHeight(r.currentVarProfileDetails.value, i.value)), u = computed(() => getMaxHeight(r.currentVarProfileDetails.value, i.value)), c = computed(() => i.value ? 1 : HEADER_HEIGHT), d = computed(() => {
11688
- var N, U;
11689
- return !!(a.isRetrieving.value || ((N = E.value) == null ? void 0 : N.permission_type) === 2 && !t.p((U = E.value) == null ? void 0 : U.permission_code));
11693
+ var V, U;
11694
+ return !!(a.isRetrieving.value || ((V = E.value) == null ? void 0 : V.permission_type) === 2 && !t.p((U = E.value) == null ? void 0 : U.permission_code));
11690
11695
  }), m = computed(() => !!a.isRetrieving.value), p = computed(() => !!a.isRetrieving.value), b = ref(null), _ = ref({
11691
11696
  kgHeight: c.value
11692
11697
  }), v = ref({
11693
11698
  visible: !1
11694
11699
  });
11695
11700
  let C;
11696
- const y = computed(() => _.value.kgHeight === c.value), E = computed(() => r.store.getVarButtonSearch(r.formID)), I = computed(() => {
11697
- var N, U, z;
11698
- if (r.t((N = E.value) == null ? void 0 : N.var_nam).value !== ((U = E.value) == null ? void 0 : U.var_nam))
11699
- return r.t((z = E.value) == null ? void 0 : z.var_nam).value;
11701
+ const y = computed(() => _.value.kgHeight === c.value), E = computed(() => r.store.getVarButtonSearch(r.formID)), A = computed(() => {
11702
+ var V, U, H;
11703
+ if (r.t((V = E.value) == null ? void 0 : V.var_nam).value !== ((U = E.value) == null ? void 0 : U.var_nam))
11704
+ return r.t((H = E.value) == null ? void 0 : H.var_nam).value;
11700
11705
  }), P = computed(() => {
11701
- var N;
11702
- switch ((N = E.value) == null ? void 0 : N.primary_flg) {
11706
+ var V;
11707
+ switch ((V = E.value) == null ? void 0 : V.primary_flg) {
11703
11708
  case 1:
11704
11709
  return !0;
11705
11710
  case 0:
@@ -11708,19 +11713,19 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11708
11713
  return !0;
11709
11714
  }
11710
11715
  }), T = computed(() => {
11711
- var N;
11712
- return ((N = s.value) == null ? void 0 : N.vis_flg) === 1;
11713
- }), B = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)), F = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), O = computed(() => {
11714
- let N = "kg-search";
11715
- return T.value && (N += " kg-search--visible"), i.value && (N += " kg-search--teleport"), N;
11716
- });
11717
- watch(r.currentVarProfileDetails, (N) => {
11718
- if (N) {
11716
+ var V;
11717
+ return ((V = s.value) == null ? void 0 : V.vis_flg) === 1;
11718
+ }), B = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)), N = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), k = computed(() => {
11719
+ let V = "kg-search";
11720
+ return T.value && (V += " kg-search--visible"), i.value && (V += " kg-search--teleport"), V;
11721
+ });
11722
+ watch(r.currentVarProfileDetails, (V) => {
11723
+ if (V) {
11719
11724
  const U = {};
11720
- N.forEach((z) => {
11721
- U[z.var_nam] = "";
11722
- }), _.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(U)), T.value ? (C == null || C(), C = watch(b, (z) => {
11723
- z && (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
11725
+ V.forEach((H) => {
11726
+ U[H.var_nam] = "";
11727
+ }), _.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(U)), T.value ? (C == null || C(), C = watch(b, (H) => {
11728
+ H && (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
11724
11729
  }, {
11725
11730
  immediate: !0
11726
11731
  })) : (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
@@ -11730,23 +11735,23 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11730
11735
  }), onUnmounted(() => {
11731
11736
  n.store.dispose(r.formID);
11732
11737
  });
11733
- function k(N = !1) {
11738
+ function I(V = !1) {
11734
11739
  T.value ? b.value && b.value.validate().then(() => {
11735
11740
  n.store.emit(r.formID, "search", {
11736
- resetPageIndex: N
11741
+ resetPageIndex: V
11737
11742
  });
11738
11743
  }).catch((U) => {
11739
11744
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
11740
11745
  e: U
11741
11746
  });
11742
11747
  }) : n.store.emit(r.formID, "search", {
11743
- resetPageIndex: N
11748
+ resetPageIndex: V
11744
11749
  });
11745
11750
  }
11746
- n.store.setSearchFn(r.formID, k);
11747
- function M() {
11748
- var N;
11749
- (N = b.value) == null || N.resetFields(), T.value ? b.value && b.value.validate().then(() => {
11751
+ n.store.setSearchFn(r.formID, I);
11752
+ function w() {
11753
+ var V;
11754
+ (V = b.value) == null || V.resetFields(), T.value ? b.value && b.value.validate().then(() => {
11750
11755
  n.store.emit(r.formID, "reset");
11751
11756
  }).catch((U) => {
11752
11757
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
@@ -11754,31 +11759,31 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11754
11759
  });
11755
11760
  }) : n.store.emit(r.formID, "reset");
11756
11761
  }
11757
- n.store.setResetFn(r.formID, M);
11758
- function D() {
11759
- return k(!0), Promise.resolve(!0);
11762
+ n.store.setResetFn(r.formID, w);
11763
+ function L() {
11764
+ return I(!0), Promise.resolve(!0);
11760
11765
  }
11761
- function w() {
11766
+ function $() {
11762
11767
  return createVNode("div", {
11763
11768
  class: "title",
11764
- onClick: H
11769
+ onClick: G
11765
11770
  }, [y.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [t.t("kg.KgSearch.title")])]);
11766
11771
  }
11767
- function $() {
11768
- var N, U, z, X;
11769
- return ((z = (U = (N = r.varProfileMasters) == null ? void 0 : N.value) == null ? void 0 : U.length) != null ? z : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
11770
- value: (X = r.currentVarProfileMasterID.value) != null ? X : void 0,
11771
- "onUpdate:value": (Q) => r.store.setCurrentVarProfileMasterID(r.formID, Q),
11772
+ function M() {
11773
+ var V, U, H, Q;
11774
+ return ((H = (U = (V = r.varProfileMasters) == null ? void 0 : V.value) == null ? void 0 : U.length) != null ? H : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
11775
+ value: (Q = r.currentVarProfileMasterID.value) != null ? Q : void 0,
11776
+ "onUpdate:value": (J) => r.store.setCurrentVarProfileMasterID(r.formID, J),
11772
11777
  disabled: m.value,
11773
11778
  onChange: R,
11774
11779
  class: "kg-search-profile-master-select"
11775
11780
  }, {
11776
11781
  default: () => {
11777
- var Q, se;
11778
- return (se = (Q = r.varProfileMasters) == null ? void 0 : Q.value) == null ? void 0 : se.map((ee) => createVNode(Select.Option, {
11779
- value: ee.id
11782
+ var J, D;
11783
+ return (D = (J = r.varProfileMasters) == null ? void 0 : J.value) == null ? void 0 : D.map((x) => createVNode(Select.Option, {
11784
+ value: x.id
11780
11785
  }, {
11781
- default: () => [r.t(ee == null ? void 0 : ee.prf_var_nam).value]
11786
+ default: () => [r.t(x == null ? void 0 : x.prf_var_nam).value]
11782
11787
  }));
11783
11788
  },
11784
11789
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
@@ -11792,48 +11797,48 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11792
11797
  default: () => [createVNode(SettingOutlined$1, null, null)]
11793
11798
  }), createVNode(KgSearchConfigModal, {
11794
11799
  visible: v.value.visible,
11795
- "onUpdate:visible": (Q) => v.value.visible = Q,
11800
+ "onUpdate:visible": (J) => v.value.visible = J,
11796
11801
  hostFormID: r.formID
11797
11802
  }, null)]);
11798
11803
  }
11799
- function A() {
11800
- var N, U, z, X, Q;
11801
- return createVNode(Fragment, null, [$(), !(((N = E.value) == null ? void 0 : N.permission_type) !== 2 && !t.p((U = E.value) == null ? void 0 : U.permission_code)) && createVNode(Button, {
11804
+ function O() {
11805
+ var V, U, H, Q, J;
11806
+ return createVNode(Fragment, null, [M(), !(((V = E.value) == null ? void 0 : V.permission_type) !== 2 && !t.p((U = E.value) == null ? void 0 : U.permission_code)) && createVNode(Button, {
11802
11807
  type: "primary",
11803
11808
  ghost: !d.value,
11804
11809
  disabled: d.value,
11805
- onClick: M,
11810
+ onClick: w,
11806
11811
  class: "kg-search-btn-reset"
11807
11812
  }, {
11808
11813
  default: () => [createVNode(ReloadOutlined$1, null, null), t.t("kg.reset")]
11809
11814
  }), createVNode(KgButton.Item, {
11810
11815
  kgType: KG_BUTTON_TYPE.SEARCH,
11811
- kgVarName: (z = E.value) == null ? void 0 : z.var_nam,
11812
- kgIcon: (X = E.value) == null ? void 0 : X.icon,
11813
- kgText: I.value,
11814
- kgColor: (Q = E.value) == null ? void 0 : Q.color,
11816
+ kgVarName: (H = E.value) == null ? void 0 : H.var_nam,
11817
+ kgIcon: (Q = E.value) == null ? void 0 : Q.icon,
11818
+ kgText: A.value,
11819
+ kgColor: (J = E.value) == null ? void 0 : J.color,
11815
11820
  kgPrimary: P.value,
11816
11821
  kgLoading: p.value,
11817
- onKgClick: D
11822
+ onKgClick: L
11818
11823
  }, null)]);
11819
11824
  }
11820
- function L() {
11825
+ function F() {
11821
11826
  return createVNode(Spin, {
11822
- spinning: F.value
11827
+ spinning: N.value
11823
11828
  }, {
11824
11829
  default: () => {
11825
- var N;
11830
+ var V;
11826
11831
  return [createVNode(KgForm, {
11827
11832
  ref: b,
11828
- model: (N = n.model.value) != null ? N : {}
11833
+ model: (V = n.model.value) != null ? V : {}
11829
11834
  }, {
11830
11835
  default: () => [createVNode(Row, null, {
11831
11836
  default: () => {
11832
11837
  var U;
11833
- return [(U = r.currentVarProfileDetails.value) == null ? void 0 : U.map((z) => createVNode(KgForm.Item, {
11834
- kgVarName: z.var_nam,
11838
+ return [(U = r.currentVarProfileDetails.value) == null ? void 0 : U.map((H) => createVNode(KgForm.Item, {
11839
+ kgVarName: H.var_nam,
11835
11840
  kgContext: KG_FORM_CONTEXT.SEARCH,
11836
- onKgSubmit: () => k(!0)
11841
+ onKgSubmit: () => I(!0)
11837
11842
  }, null))];
11838
11843
  }
11839
11844
  })]
@@ -11841,17 +11846,17 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11841
11846
  }
11842
11847
  });
11843
11848
  }
11844
- function R(N) {
11845
- console.log("333:value", N);
11849
+ function R(V) {
11850
+ console.log("333:value", V);
11846
11851
  }
11847
- function H() {
11852
+ function G() {
11848
11853
  y.value ? _.value.kgHeight = l.value : _.value.kgHeight = c.value;
11849
11854
  }
11850
11855
  return () => createVNode(KgResizable, {
11851
- class: O.value,
11856
+ class: k.value,
11852
11857
  "kg-frm-id": r.formID,
11853
11858
  kgHeight: _.value.kgHeight,
11854
- "onUpdate:kgHeight": (N) => _.value.kgHeight = N,
11859
+ "onUpdate:kgHeight": (V) => _.value.kgHeight = V,
11855
11860
  kgMinHeight: c.value,
11856
11861
  kgMaxHeight: u.value
11857
11862
  }, {
@@ -11868,15 +11873,15 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11868
11873
  }, [createVNode(Spin, {
11869
11874
  spinning: B.value
11870
11875
  }, {
11871
- default: () => [w(), createVNode("div", {
11876
+ default: () => [$(), createVNode("div", {
11872
11877
  class: "ant-collapse-extra"
11873
- }, [A()])]
11878
+ }, [O()])]
11874
11879
  })])]
11875
11880
  }), createVNode("div", {
11876
11881
  class: "ant-collapse-content ant-collapse-content-active"
11877
11882
  }, [createVNode("div", {
11878
11883
  class: "ant-collapse-content-box"
11879
- }, [L()])])])])]
11884
+ }, [F()])])])])]
11880
11885
  });
11881
11886
  }
11882
11887
  });
@@ -11942,8 +11947,8 @@ function useMagicKeys(e = {}) {
11942
11947
  }
11943
11948
  function p(_, v) {
11944
11949
  var C, y;
11945
- const E = (C = _.key) == null ? void 0 : C.toLowerCase(), I = (y = _.code) == null ? void 0 : y.toLowerCase(), P = [I, E].filter(Boolean);
11946
- I && (v ? s.add(_.code) : s.delete(_.code));
11950
+ const E = (C = _.key) == null ? void 0 : C.toLowerCase(), A = (y = _.code) == null ? void 0 : y.toLowerCase(), P = [A, E].filter(Boolean);
11951
+ A && (v ? s.add(_.code) : s.delete(_.code));
11947
11952
  for (const T of P)
11948
11953
  c.add(T), d(T, v);
11949
11954
  E === "meta" && !v ? (u.forEach((T) => {
@@ -11957,8 +11962,8 @@ function useMagicKeys(e = {}) {
11957
11962
  return Reflect.get(_, v, C);
11958
11963
  if (v = v.toLowerCase(), v in n && (v = n[v]), !(v in l))
11959
11964
  if (/[+_-]/.test(v)) {
11960
- const E = v.split(/[+_-]/g).map((I) => I.trim());
11961
- l[v] = computed(() => E.every((I) => unref(b[I])));
11965
+ const E = v.split(/[+_-]/g).map((A) => A.trim());
11966
+ l[v] = computed(() => E.every((A) => unref(b[A])));
11962
11967
  } else
11963
11968
  l[v] = ref(!1);
11964
11969
  const y = Reflect.get(_, v, C);
@@ -12347,112 +12352,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12347
12352
  columnWidth: 32,
12348
12353
  hideSelectAll: !0,
12349
12354
  selectedRowKeys: d,
12350
- onSelect: (D) => B(D)
12355
+ onSelect: (L) => B(L)
12351
12356
  }), p = ref({
12352
12357
  visible: !1
12353
12358
  }), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), _ = computed(() => {
12354
- var D;
12355
- return !!c.value || ((D = n.getSelectedVarCatalog) == null ? void 0 : D.cust_lvl) === KG_CUSTOM_LEVEL.L0;
12359
+ var L;
12360
+ return !!c.value || ((L = n.getSelectedVarCatalog) == null ? void 0 : L.cust_lvl) === KG_CUSTOM_LEVEL.L0;
12356
12361
  }), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), C = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
12357
- watch(() => n.getSelectedVar, (D) => {
12358
- D ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
12362
+ watch(() => n.getSelectedVar, (L) => {
12363
+ L ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
12359
12364
  }, {
12360
12365
  immediate: !0
12361
- }), watch(() => n.getSelectedVarCatalog, async (D) => {
12362
- var w, $;
12363
- l.value.var_text = (w = D == null ? void 0 : D.var_text) != null ? w : "", ($ = i.value) == null || $.clearValidate();
12366
+ }), watch(() => n.getSelectedVarCatalog, async (L) => {
12367
+ var $, M;
12368
+ l.value.var_text = ($ = L == null ? void 0 : L.var_text) != null ? $ : "", (M = i.value) == null || M.clearValidate();
12364
12369
  });
12365
- async function y(D = !1) {
12366
- var w, $, A;
12370
+ async function y(L = !1) {
12371
+ var $, M, O;
12367
12372
  a.value = !0;
12368
12373
  try {
12369
12374
  const {
12370
- records: L
12375
+ records: F
12371
12376
  } = await List$1({
12372
12377
  params: {
12373
12378
  pageNo: 1,
12374
12379
  pageSize: 999,
12375
12380
  frm_id: e == null ? void 0 : e.value,
12376
- var_nam: (w = n.getSelectedVar) == null ? void 0 : w.var_nam,
12381
+ var_nam: ($ = n.getSelectedVar) == null ? void 0 : $.var_nam,
12377
12382
  column: "frm_id,locale_id,cust_lvl",
12378
12383
  order: "asc"
12379
12384
  }
12380
12385
  });
12381
- if (c.value = null, u.value = L != null ? L : [], D) {
12382
- const R = u.value.find((H) => {
12383
- var N;
12384
- return H.id === ((N = n.getSelectedVarCatalog) == null ? void 0 : N.id);
12386
+ if (c.value = null, u.value = F != null ? F : [], L) {
12387
+ const R = u.value.find((G) => {
12388
+ var V;
12389
+ return G.id === ((V = n.getSelectedVarCatalog) == null ? void 0 : V.id);
12385
12390
  });
12386
12391
  n.setSelectedVarCatalog(R != null ? R : null), d.value = R != null && R.id ? [R.id] : [];
12387
12392
  } else
12388
- n.setSelectedVarCatalog(($ = u.value[0]) != null ? $ : null), d.value = (A = u.value[0]) != null && A.id ? [u.value[0].id] : [];
12389
- } catch (L) {
12390
- Logger.debug(L == null ? void 0 : L.message);
12393
+ n.setSelectedVarCatalog((M = u.value[0]) != null ? M : null), d.value = (O = u.value[0]) != null && O.id ? [u.value[0].id] : [];
12394
+ } catch (F) {
12395
+ Logger.debug(F == null ? void 0 : F.message);
12391
12396
  } finally {
12392
12397
  a.value = !1;
12393
12398
  }
12394
12399
  }
12395
12400
  async function E() {
12396
- var D, w, $;
12401
+ var L, $, M;
12397
12402
  try {
12398
- o.value = !0, await ((D = i.value) == null ? void 0 : D.validate());
12399
- const A = new VarCatalog({
12400
- ...(w = n.getSelectedVarCatalog) != null ? w : {},
12401
- var_text: ($ = l.value) == null ? void 0 : $.var_text
12403
+ o.value = !0, await ((L = i.value) == null ? void 0 : L.validate());
12404
+ const O = new VarCatalog({
12405
+ ...($ = n.getSelectedVarCatalog) != null ? $ : {},
12406
+ var_text: (M = l.value) == null ? void 0 : M.var_text
12402
12407
  });
12403
- A.id ? A.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (A.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(A, "id"), await Add$1({
12404
- data: A
12408
+ O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add$1({
12409
+ data: O
12405
12410
  }, {
12406
12411
  successMessageMode: "none"
12407
12412
  }), message.success({
12408
12413
  content: t.t("kg.KgVarConfig.createSuccess")
12409
12414
  }), await y()) : (await Edit$1({
12410
- data: A
12415
+ data: O
12411
12416
  }, {
12412
12417
  successMessageMode: "none"
12413
12418
  }), message.success({
12414
12419
  content: t.t("kg.KgVarConfig.saveSuccess")
12415
12420
  }), await y(!0)) : (await Add$1({
12416
- data: A
12421
+ data: O
12417
12422
  }, {
12418
12423
  successMessageMode: "none"
12419
12424
  }), message.success({
12420
12425
  content: t.t("kg.KgVarConfig.createSuccess")
12421
12426
  }), await y()), r.retrieve(e == null ? void 0 : e.value);
12422
- } catch (A) {
12423
- KgUtil.throwIfNotFormError(A);
12427
+ } catch (O) {
12428
+ KgUtil.throwIfNotFormError(O);
12424
12429
  } finally {
12425
12430
  o.value = !1;
12426
12431
  }
12427
12432
  }
12428
- function I({
12429
- isAllForm: D,
12430
- isAllLanguage: w
12433
+ function A({
12434
+ isAllForm: L,
12435
+ isAllLanguage: $
12431
12436
  }) {
12432
- var $, A, L;
12437
+ var M, O, F;
12433
12438
  c.value = new VarCatalog({
12434
12439
  id: "",
12435
12440
  cust_lvl: KG_CUSTOM_LEVEL.L10,
12436
- grp_nam: ($ = n.getSelectedVar) == null ? void 0 : $.grp_nam,
12437
- var_nam: (A = n.getSelectedVar) == null ? void 0 : A.var_nam,
12438
- frm_id: D || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
12439
- locale_id: w ? "ALL" : (L = t.locale) == null ? void 0 : L.value,
12441
+ grp_nam: (M = n.getSelectedVar) == null ? void 0 : M.grp_nam,
12442
+ var_nam: (O = n.getSelectedVar) == null ? void 0 : O.var_nam,
12443
+ frm_id: L || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
12444
+ locale_id: $ ? "ALL" : (F = t.locale) == null ? void 0 : F.value,
12440
12445
  var_text: ""
12441
12446
  }), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), d.value = [""];
12442
12447
  }
12443
12448
  function P() {
12444
- var w;
12449
+ var $;
12445
12450
  u.value = without$1(u.value, c.value), c.value = null;
12446
- const D = (w = u.value[0]) != null ? w : null;
12447
- n.setSelectedVarCatalog(D), d.value = D ? [D.id] : [];
12451
+ const L = ($ = u.value[0]) != null ? $ : null;
12452
+ n.setSelectedVarCatalog(L), d.value = L ? [L.id] : [];
12448
12453
  }
12449
12454
  function T() {
12450
12455
  KgUtil.confirm({
12451
12456
  onOk: async () => {
12452
- var D;
12457
+ var L;
12453
12458
  await Delete$1({
12454
12459
  params: {
12455
- id: (D = n.getSelectedVarCatalog) == null ? void 0 : D.id
12460
+ id: (L = n.getSelectedVarCatalog) == null ? void 0 : L.id
12456
12461
  }
12457
12462
  }, {
12458
12463
  successMessageMode: "none",
@@ -12463,23 +12468,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12463
12468
  }
12464
12469
  });
12465
12470
  }
12466
- function B(D) {
12467
- var w;
12468
- ((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !== D.id && (unref(c) ? KgUtil.confirm({
12471
+ function B(L) {
12472
+ var $;
12473
+ (($ = n.getSelectedVarCatalog) == null ? void 0 : $.id) !== L.id && (unref(c) ? KgUtil.confirm({
12469
12474
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
12470
12475
  onOk: () => {
12471
- u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(D)), d.value = [D.id];
12476
+ u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(L)), d.value = [L.id];
12472
12477
  }
12473
- }) : (n.setSelectedVarCatalog(unref(D)), d.value = [D.id]));
12478
+ }) : (n.setSelectedVarCatalog(unref(L)), d.value = [L.id]));
12474
12479
  }
12475
- function F() {
12480
+ function N() {
12476
12481
  p.value.visible = !0;
12477
12482
  }
12478
- function O() {
12483
+ function k() {
12479
12484
  return createVNode("div", {
12480
12485
  class: "buttons"
12481
12486
  }, [createVNode(Button, {
12482
- onClick: F,
12487
+ onClick: N,
12483
12488
  disabled: b.value,
12484
12489
  type: "primary"
12485
12490
  }, {
@@ -12494,8 +12499,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12494
12499
  default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
12495
12500
  })]);
12496
12501
  }
12497
- function k() {
12498
- let D, w;
12502
+ function I() {
12503
+ let L, $;
12499
12504
  return createVNode("div", {
12500
12505
  class: "form"
12501
12506
  }, [createVNode(Form, {
@@ -12512,7 +12517,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12512
12517
  }, {
12513
12518
  default: () => [createVNode(Textarea, {
12514
12519
  value: l.value.var_text,
12515
- "onUpdate:value": ($) => l.value.var_text = $,
12520
+ "onUpdate:value": (M) => l.value.var_text = M,
12516
12521
  disabled: !n.getSelectedVarCatalog
12517
12522
  }, null), createVNode("button", {
12518
12523
  hidden: !0
@@ -12523,25 +12528,25 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12523
12528
  }, [createVNode(Button, {
12524
12529
  disabled: v.value,
12525
12530
  onClick: P
12526
- }, _isSlot(D = t.t("common.cancelText")) ? D : {
12527
- default: () => [D]
12531
+ }, _isSlot(L = t.t("common.cancelText")) ? L : {
12532
+ default: () => [L]
12528
12533
  }), createVNode(Button, {
12529
12534
  loading: o.value,
12530
12535
  disabled: C.value,
12531
12536
  onClick: E,
12532
12537
  type: "primary"
12533
- }, _isSlot(w = t.t("common.save")) ? w : {
12534
- default: () => [w]
12538
+ }, _isSlot($ = t.t("common.save")) ? $ : {
12539
+ default: () => [$]
12535
12540
  })])]);
12536
12541
  }
12537
- function M(D) {
12538
- var $;
12539
- let w = "";
12540
- return D.id || (w += " ant-table-row-create"), D.id === (($ = n.getSelectedVarCatalog) == null ? void 0 : $.id) && (w += " ant-table-row-selected "), w;
12542
+ function w(L) {
12543
+ var M;
12544
+ let $ = "";
12545
+ return L.id || ($ += " ant-table-row-create"), L.id === ((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) && ($ += " ant-table-row-selected "), $;
12541
12546
  }
12542
12547
  return () => createVNode("div", {
12543
12548
  class: "kg-var-config-modal-var-var-catalog"
12544
- }, [O(), createVNode(Table, {
12549
+ }, [k(), createVNode(Table, {
12545
12550
  pagination: !1,
12546
12551
  class: "kg-flex-table",
12547
12552
  size: "small",
@@ -12553,15 +12558,15 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12553
12558
  rowKey: "id",
12554
12559
  dataSource: u.value,
12555
12560
  loading: a.value,
12556
- rowClassName: M,
12561
+ rowClassName: w,
12557
12562
  rowSelection: m.value,
12558
- customRow: (D) => ({
12559
- onClick: () => B(D)
12563
+ customRow: (L) => ({
12564
+ onClick: () => B(L)
12560
12565
  })
12561
- }, null), k(), createVNode(KgVarConfigModalVarCreateModal, {
12566
+ }, null), I(), createVNode(KgVarConfigModalVarCreateModal, {
12562
12567
  visible: p.value.visible,
12563
- "onUpdate:visible": (D) => p.value.visible = D,
12564
- onKgOk: I
12568
+ "onUpdate:visible": (L) => p.value.visible = L,
12569
+ onKgOk: A
12565
12570
  }, null)]);
12566
12571
  }
12567
12572
  }), columns = () => [{
@@ -12873,16 +12878,16 @@ const KgWarehouse$1 = "", getProps = () => ({
12873
12878
  emit: t
12874
12879
  }) {
12875
12880
  const r = useKg(), n = useKgWarehouse(), a = computed(() => {
12876
- let I = "jeecg-layout-header-action__item kg-warehouse";
12877
- return (!m.value || e.kgInvisible) && (I += " kg-warehouse--invisible"), I;
12881
+ let A = "jeecg-layout-header-action__item kg-warehouse";
12882
+ return (!m.value || e.kgInvisible) && (A += " kg-warehouse--invisible"), A;
12878
12883
  }), o = ref(""), s = n.warehouse, i = ref(null), l = ref(!1), u = reactive([{
12879
12884
  width: 80,
12880
12885
  align: "center",
12881
12886
  customRender: ({
12882
- record: I
12887
+ record: A
12883
12888
  }) => {
12884
12889
  var T;
12885
- return I.id === ((T = i.value) == null ? void 0 : T.id) ? createVNode("img", {
12890
+ return A.id === ((T = i.value) == null ? void 0 : T.id) ? createVNode("img", {
12886
12891
  src: WAREHOUSE_1890ff
12887
12892
  }, null) : createVNode("img", {
12888
12893
  src: WAREHOUSE_000000
@@ -12890,27 +12895,27 @@ const KgWarehouse$1 = "", getProps = () => ({
12890
12895
  }
12891
12896
  }, {
12892
12897
  customRender: ({
12893
- record: I
12898
+ record: A
12894
12899
  }) => {
12895
- var T, B, F;
12896
- const P = I;
12900
+ var T, B, N;
12901
+ const P = A;
12897
12902
  return createVNode("div", null, [createVNode("div", null, [(T = P.whDsc) != null ? T : " ", createTextVNode(" - "), (B = P.whId) != null ? B : " "]), createVNode("div", {
12898
12903
  class: "address"
12899
- }, [(F = P.adrId) != null ? F : " "])]);
12904
+ }, [(N = P.adrId) != null ? N : " "])]);
12900
12905
  }
12901
12906
  }]), c = ref([]), d = computed(() => {
12902
12907
  var P;
12903
- const I = (P = o.value) == null ? void 0 : P.toUpperCase();
12908
+ const A = (P = o.value) == null ? void 0 : P.toUpperCase();
12904
12909
  return c.value.filter((T) => {
12905
- var B, F, O, k, M, D;
12906
- return ((F = (B = T.whDsc) == null ? void 0 : B.toUpperCase()) == null ? void 0 : F.includes(I)) || ((k = (O = T.whId) == null ? void 0 : O.toUpperCase()) == null ? void 0 : k.includes(I)) || ((D = (M = T.adrId) == null ? void 0 : M.toUpperCase()) == null ? void 0 : D.includes(I));
12910
+ var B, N, k, I, w, L;
12911
+ return ((N = (B = T.whDsc) == null ? void 0 : B.toUpperCase()) == null ? void 0 : N.includes(A)) || ((I = (k = T.whId) == null ? void 0 : k.toUpperCase()) == null ? void 0 : I.includes(A)) || ((L = (w = T.adrId) == null ? void 0 : w.toUpperCase()) == null ? void 0 : L.includes(A));
12907
12912
  });
12908
12913
  }), m = computed(() => {
12909
- var I, P;
12910
- return ((P = (I = r.option.value) == null ? void 0 : I.KgWarehouse) == null ? void 0 : P.enable) !== !1;
12914
+ var A, P;
12915
+ return ((P = (A = r.option.value) == null ? void 0 : A.KgWarehouse) == null ? void 0 : P.enable) !== !1;
12911
12916
  });
12912
- watch(n.visible, (I) => {
12913
- !m.value || (I ? b() : _());
12917
+ watch(n.visible, (A) => {
12918
+ !m.value || (A ? b() : _());
12914
12919
  }, {
12915
12920
  immediate: !0
12916
12921
  }), onMounted(() => {
@@ -12926,8 +12931,8 @@ const KgWarehouse$1 = "", getProps = () => ({
12926
12931
  o.value = "", c.value = [], i.value = null;
12927
12932
  }
12928
12933
  function v() {
12929
- var I;
12930
- !i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((I = n.warehouse.value) == null ? void 0 : I.id) && (n.store.setWarehouse(i.value), KgUtil.confirm({
12934
+ var A;
12935
+ !i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((A = n.warehouse.value) == null ? void 0 : A.id) && (n.store.setWarehouse(i.value), KgUtil.confirm({
12931
12936
  content: r.t("kg.KgWarehouse.reloadMessage"),
12932
12937
  kgHideCancelButton: !0,
12933
12938
  okButtonProps: {
@@ -12943,23 +12948,23 @@ const KgWarehouse$1 = "", getProps = () => ({
12943
12948
  l.value = !0;
12944
12949
  try {
12945
12950
  const {
12946
- records: I
12951
+ records: A
12947
12952
  } = await ListVO({
12948
12953
  params: {
12949
12954
  pageNo: 1,
12950
12955
  pageSize: 999
12951
12956
  }
12952
12957
  });
12953
- c.value = I != null ? I : [];
12954
- } catch (I) {
12955
- console.error(I);
12958
+ c.value = A != null ? A : [];
12959
+ } catch (A) {
12960
+ console.error(A);
12956
12961
  } finally {
12957
12962
  l.value = !1;
12958
12963
  }
12959
12964
  }
12960
- function y(I, P) {
12965
+ function y(A, P) {
12961
12966
  var T;
12962
- switch (I.detail) {
12967
+ switch (A.detail) {
12963
12968
  case 1:
12964
12969
  ((T = i.value) == null ? void 0 : T.id) === P.id ? i.value = null : i.value = P;
12965
12970
  break;
@@ -12974,12 +12979,12 @@ const KgWarehouse$1 = "", getProps = () => ({
12974
12979
  placement: "bottomRight"
12975
12980
  }, {
12976
12981
  default: () => {
12977
- var I, P;
12978
- return [((I = s.value) == null ? void 0 : I.whDsc) || ((P = s.value) == null ? void 0 : P.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
12982
+ var A, P;
12983
+ return [((A = s.value) == null ? void 0 : A.whDsc) || ((P = s.value) == null ? void 0 : P.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
12979
12984
  }
12980
12985
  }), createVNode(KgModal, {
12981
12986
  visible: n.visible.value,
12982
- "onUpdate:visible": (I) => n.store.setVisible(I),
12987
+ "onUpdate:visible": (A) => n.store.setVisible(A),
12983
12988
  title: r.t("kg.KgWarehouse.title"),
12984
12989
  width: "500px",
12985
12990
  kgFullHeight: !1,
@@ -12996,7 +13001,7 @@ const KgWarehouse$1 = "", getProps = () => ({
12996
13001
  }, {
12997
13002
  default: () => [createVNode(Input, {
12998
13003
  value: o.value,
12999
- "onUpdate:value": (I) => o.value = I,
13004
+ "onUpdate:value": (A) => o.value = A,
13000
13005
  allowClear: !0,
13001
13006
  disabled: l.value,
13002
13007
  placeholder: r.t("kg.search")
@@ -13016,11 +13021,11 @@ const KgWarehouse$1 = "", getProps = () => ({
13016
13021
  dataSource: d.value,
13017
13022
  columns: u,
13018
13023
  class: "kg-flex-table",
13019
- customRow: (I) => {
13024
+ customRow: (A) => {
13020
13025
  var P;
13021
13026
  return {
13022
- class: I.id === ((P = i.value) == null ? void 0 : P.id) ? "selected" : "",
13023
- onClick: (T) => y(T, I)
13027
+ class: A.id === ((P = i.value) == null ? void 0 : P.id) ? "selected" : "",
13028
+ onClick: (T) => y(T, A)
13024
13029
  };
13025
13030
  }
13026
13031
  }, null)]