@kengic/vue 0.5.14 → 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.
@@ -351,8 +351,6 @@ class VarGridMasterDTO {
351
351
  }
352
352
  class VarLookup {
353
353
  constructor(t) {
354
- g(this, "cmd");
355
- g(this, "cmd_prm");
356
354
  g(this, "cust_lvl");
357
355
  g(this, "ena_flg");
358
356
  g(this, "frm_id");
@@ -365,8 +363,6 @@ class VarLookup {
365
363
  g(this, "var_nam");
366
364
  keys$1(t != null ? t : {}).forEach((r) => {
367
365
  switch (r) {
368
- case "cmd":
369
- case "cmd_prm":
370
366
  case "cust_lvl":
371
367
  case "ena_flg":
372
368
  case "frm_id":
@@ -2264,12 +2260,12 @@ function baseClone(e, t, r, n, a, o) {
2264
2260
  return p;
2265
2261
  o.set(e, s), isSet$1(e) ? e.forEach(function(v) {
2266
2262
  s.add(baseClone(v, t, r, v, e, o));
2267
- }) : isMap$1(e) && e.forEach(function(v, E) {
2268
- s.set(E, baseClone(v, t, r, E, e, o));
2263
+ }) : isMap$1(e) && e.forEach(function(v, C) {
2264
+ s.set(C, baseClone(v, t, r, C, e, o));
2269
2265
  });
2270
2266
  var b = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, _ = c ? void 0 : b(e);
2271
- return arrayEach(_ || e, function(v, E) {
2272
- _ && (E = v, v = e[E]), assignValue(s, E, baseClone(v, t, r, E, e, o));
2267
+ return arrayEach(_ || e, function(v, C) {
2268
+ _ && (C = v, v = e[C]), assignValue(s, C, baseClone(v, t, r, C, e, o));
2273
2269
  }), s;
2274
2270
  }
2275
2271
  var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
@@ -2319,8 +2315,8 @@ function equalArrays(e, t, r, n, a, o) {
2319
2315
  break;
2320
2316
  }
2321
2317
  if (p) {
2322
- if (!arraySome(t, function(E, y) {
2323
- if (!cacheHas(p, y) && (b === E || a(b, E, r, n, o)))
2318
+ if (!arraySome(t, function(C, y) {
2319
+ if (!cacheHas(p, y) && (b === C || a(b, C, r, n, o)))
2324
2320
  return p.push(y);
2325
2321
  })) {
2326
2322
  m = !1;
@@ -2398,18 +2394,18 @@ function equalObjects(e, t, r, n, a, o) {
2398
2394
  o.set(e, t), o.set(t, e);
2399
2395
  for (var v = s; ++d < l; ) {
2400
2396
  m = i[d];
2401
- var E = e[m], y = t[m];
2397
+ var C = e[m], y = t[m];
2402
2398
  if (n)
2403
- var C = s ? n(y, E, m, t, e, o) : n(E, y, m, e, t, o);
2404
- if (!(C === void 0 ? E === y || a(E, y, r, n, o) : C)) {
2399
+ var E = s ? n(y, C, m, t, e, o) : n(C, y, m, e, t, o);
2400
+ if (!(E === void 0 ? C === y || a(C, y, r, n, o) : E)) {
2405
2401
  _ = !1;
2406
2402
  break;
2407
2403
  }
2408
2404
  v || (v = m == "constructor");
2409
2405
  }
2410
2406
  if (_ && !v) {
2411
- var I = e.constructor, P = t.constructor;
2412
- 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);
2413
2409
  }
2414
2410
  return o.delete(e), o.delete(t), _;
2415
2411
  }
@@ -3482,7 +3478,7 @@ var Icon$1 = function(t, r) {
3482
3478
  var v = l ? {
3483
3479
  msTransform: "rotate(".concat(l, "deg)"),
3484
3480
  transform: "rotate(".concat(l, "deg)")
3485
- } : void 0, E = normalizeTwoToneColors(c), y = _slicedToArray(E, 2), C = y[0], I = y[1];
3481
+ } : void 0, C = normalizeTwoToneColors(c), y = _slicedToArray(C, 2), E = y[0], A = y[1];
3486
3482
  return createVNode("span", _objectSpread$i({
3487
3483
  role: "img",
3488
3484
  "aria-label": s.name
@@ -3492,8 +3488,8 @@ var Icon$1 = function(t, r) {
3492
3488
  }), [createVNode(VueIcon, {
3493
3489
  class: b,
3494
3490
  icon: s,
3495
- primaryColor: C,
3496
- secondaryColor: I,
3491
+ primaryColor: E,
3492
+ secondaryColor: A,
3497
3493
  style: v
3498
3494
  }, null)]);
3499
3495
  };
@@ -4441,207 +4437,207 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4441
4437
  (function(r, n) {
4442
4438
  e.exports = n();
4443
4439
  })(commonjsGlobal, function() {
4444
- 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+)?$/, E = /\[([^\]]+)]|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) {
4445
- var $ = ["th", "st", "nd", "rd"], A = w % 100;
4446
- return "[" + w + ($[(A - 20) % 10] || $[A] || $[0]) + "]";
4447
- } }, C = function(w, $, A) {
4448
- var F = String(w);
4449
- return !F || F.length >= $ ? w : "" + Array($ + 1 - F.length).join(A) + w;
4450
- }, I = { s: C, z: function(w) {
4451
- var $ = -w.utcOffset(), A = Math.abs($), F = Math.floor(A / 60), R = A % 60;
4452
- return ($ <= 0 ? "+" : "-") + C(F, 2, "0") + ":" + C(R, 2, "0");
4453
- }, m: function w($, A) {
4454
- if ($.date() < A.date())
4455
- return -w(A, $);
4456
- var F = 12 * (A.year() - $.year()) + (A.month() - $.month()), R = $.clone().add(F, d), G = A - R < 0, N = $.clone().add(F + (G ? -1 : 1), d);
4457
- return +(-(F + (A - R) / (G ? R - N : N - R)) || 0);
4458
- }, a: function(w) {
4459
- return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
4460
- }, p: function(w) {
4461
- 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$/, "");
4462
- }, u: function(w) {
4463
- 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;
4464
4460
  } }, P = "en", T = {};
4465
4461
  T[P] = y;
4466
- var B = function(w) {
4467
- return w instanceof k;
4468
- }, L = function w($, A, F) {
4462
+ var B = function($) {
4463
+ return $ instanceof w;
4464
+ }, N = function $(M, O, F) {
4469
4465
  var R;
4470
- if (!$)
4466
+ if (!M)
4471
4467
  return P;
4472
- if (typeof $ == "string") {
4473
- var G = $.toLowerCase();
4474
- T[G] && (R = G), A && (T[G] = A, R = G);
4475
- var N = $.split("-");
4476
- if (!R && N.length > 1)
4477
- 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]);
4478
4474
  } else {
4479
- var U = $.name;
4480
- T[U] = $, R = U;
4475
+ var U = M.name;
4476
+ T[U] = M, R = U;
4481
4477
  }
4482
4478
  return !F && R && (P = R), R || !F && P;
4483
- }, V = function(w, $) {
4484
- if (B(w))
4485
- return w.clone();
4486
- var A = typeof $ == "object" ? $ : {};
4487
- return A.date = w, A.args = arguments, new k(A);
4488
- }, O = I;
4489
- O.l = L, O.i = B, O.w = function(w, $) {
4490
- return V(w, { locale: $.$L, utc: $.$u, x: $.$x, $offset: $.$offset });
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 });
4491
4487
  };
4492
- var k = function() {
4493
- function w(A) {
4494
- this.$L = L(A.locale, null, !0), this.parse(A);
4488
+ var w = function() {
4489
+ function $(O) {
4490
+ this.$L = N(O.locale, null, !0), this.parse(O);
4495
4491
  }
4496
- var $ = w.prototype;
4497
- return $.parse = function(A) {
4492
+ var M = $.prototype;
4493
+ return M.parse = function(O) {
4498
4494
  this.$d = function(F) {
4499
4495
  var R = F.date, G = F.utc;
4500
4496
  if (R === null)
4501
4497
  return new Date(NaN);
4502
- if (O.u(R))
4498
+ if (I.u(R))
4503
4499
  return new Date();
4504
4500
  if (R instanceof Date)
4505
4501
  return new Date(R);
4506
4502
  if (typeof R == "string" && !/Z$/i.test(R)) {
4507
- var N = R.match(v);
4508
- if (N) {
4509
- var U = N[2] - 1 || 0, W = (N[7] || "0").substring(0, 3);
4510
- return G ? new Date(Date.UTC(N[1], U, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, W)) : new Date(N[1], U, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, W);
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);
4511
4507
  }
4512
4508
  }
4513
4509
  return new Date(R);
4514
- }(A), this.$x = A.x || {}, this.init();
4515
- }, $.init = function() {
4516
- var A = this.$d;
4517
- 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();
4518
- }, $.$utils = function() {
4519
- return O;
4520
- }, $.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() {
4521
4517
  return this.$d.toString() !== _;
4522
- }, $.isSame = function(A, F) {
4523
- var R = V(A);
4518
+ }, M.isSame = function(O, F) {
4519
+ var R = k(O);
4524
4520
  return this.startOf(F) <= R && R <= this.endOf(F);
4525
- }, $.isAfter = function(A, F) {
4526
- return V(A) < this.startOf(F);
4527
- }, $.isBefore = function(A, F) {
4528
- return this.endOf(F) < V(A);
4529
- }, $.$g = function(A, F, R) {
4530
- return O.u(A) ? this[F] : this.set(R, A);
4531
- }, $.unix = function() {
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() {
4532
4528
  return Math.floor(this.valueOf() / 1e3);
4533
- }, $.valueOf = function() {
4529
+ }, M.valueOf = function() {
4534
4530
  return this.$d.getTime();
4535
- }, $.startOf = function(A, F) {
4536
- var R = this, G = !!O.u(F) || F, N = O.p(A), U = function(x, z) {
4537
- var H = O.w(R.$u ? Date.UTC(R.$y, z, x) : new Date(R.$y, z, x), R);
4538
- return G ? H : H.endOf(u);
4539
- }, W = function(x, z) {
4540
- return O.w(R.toDate()[x].apply(R.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), R);
4541
- }, X = this.$W, Q = this.$M, re = this.$D, J = "set" + (this.$u ? "UTC" : "");
4542
- 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) {
4543
4539
  case p:
4544
4540
  return G ? U(1, 0) : U(31, 11);
4545
4541
  case d:
4546
- return G ? U(1, Q) : U(0, Q + 1);
4542
+ return G ? U(1, J) : U(0, J + 1);
4547
4543
  case c:
4548
- var le = this.$locale().weekStart || 0, D = (X < le ? X + 7 : X) - le;
4549
- return U(G ? re - D : re + (6 - D), 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);
4550
4546
  case u:
4551
4547
  case b:
4552
- return W(J + "Hours", 0);
4548
+ return H(x + "Hours", 0);
4553
4549
  case l:
4554
- return W(J + "Minutes", 1);
4550
+ return H(x + "Minutes", 1);
4555
4551
  case i:
4556
- return W(J + "Seconds", 2);
4552
+ return H(x + "Seconds", 2);
4557
4553
  case s:
4558
- return W(J + "Milliseconds", 3);
4554
+ return H(x + "Milliseconds", 3);
4559
4555
  default:
4560
4556
  return this.clone();
4561
4557
  }
4562
- }, $.endOf = function(A) {
4563
- return this.startOf(A, !1);
4564
- }, $.$set = function(A, F) {
4565
- var R, G = O.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)[G], W = G === u ? this.$D + (F - this.$W) : F;
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;
4566
4562
  if (G === d || G === p) {
4567
- var X = this.clone().set(b, 1);
4568
- X.$d[U](W), X.init(), this.$d = X.set(b, Math.min(this.$D, X.daysInMonth())).$d;
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;
4569
4565
  } else
4570
- U && this.$d[U](W);
4566
+ U && this.$d[U](H);
4571
4567
  return this.init(), this;
4572
- }, $.set = function(A, F) {
4573
- return this.clone().$set(A, F);
4574
- }, $.get = function(A) {
4575
- return this[O.p(A)]();
4576
- }, $.add = function(A, F) {
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) {
4577
4573
  var R, G = this;
4578
- A = Number(A);
4579
- var N = O.p(F), U = function(Q) {
4580
- var re = V(G);
4581
- return O.w(re.date(re.date() + Math.round(Q * A)), G);
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);
4582
4578
  };
4583
- if (N === d)
4584
- return this.set(d, this.$M + A);
4585
- if (N === p)
4586
- return this.set(p, this.$y + A);
4587
- 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)
4588
4584
  return U(1);
4589
- if (N === c)
4585
+ if (V === c)
4590
4586
  return U(7);
4591
- var W = (R = {}, R[i] = n, R[l] = a, R[s] = r, R)[N] || 1, X = this.$d.getTime() + A * W;
4592
- return O.w(X, this);
4593
- }, $.subtract = function(A, F) {
4594
- return this.add(-1 * A, F);
4595
- }, $.format = function(A) {
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) {
4596
4592
  var F = this, R = this.$locale();
4597
4593
  if (!this.isValid())
4598
4594
  return R.invalidDate || _;
4599
- var G = A || "YYYY-MM-DDTHH:mm:ssZ", N = O.z(this), U = this.$H, W = this.$m, X = this.$M, Q = R.weekdays, re = R.months, J = function(z, H, ee, te) {
4600
- return z && (z[H] || z(F, G)) || ee[H].slice(0, te);
4601
- }, le = function(z) {
4602
- return O.s(U % 12 || 12, z, "0");
4603
- }, D = R.meridiem || function(z, H, ee) {
4604
- var te = z < 12 ? "AM" : "PM";
4605
- return ee ? te.toLowerCase() : te;
4606
- }, x = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: X + 1, MM: O.s(X + 1, 2, "0"), MMM: J(R.monthsShort, X, re, 3), MMMM: J(re, X), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: J(R.weekdaysMin, this.$W, Q, 2), ddd: J(R.weekdaysShort, this.$W, Q, 3), dddd: Q[this.$W], H: String(U), HH: O.s(U, 2, "0"), h: le(1), hh: le(2), a: D(U, W, !0), A: D(U, W, !1), m: String(W), mm: O.s(W, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: N };
4607
- return G.replace(E, function(z, H) {
4608
- return H || x[z] || 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(":", "");
4609
4605
  });
4610
- }, $.utcOffset = function() {
4606
+ }, M.utcOffset = function() {
4611
4607
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4612
- }, $.diff = function(A, F, R) {
4613
- var G, N = O.p(F), U = V(A), W = (U.utcOffset() - this.utcOffset()) * n, X = this - U, Q = O.m(this, U);
4614
- return Q = (G = {}, G[p] = Q / 12, G[d] = Q, G[m] = Q / 3, G[c] = (X - W) / 6048e5, G[u] = (X - W) / 864e5, G[l] = X / a, G[i] = X / n, G[s] = X / r, G)[N] || X, R ? Q : O.a(Q);
4615
- }, $.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() {
4616
4612
  return this.endOf(d).$D;
4617
- }, $.$locale = function() {
4613
+ }, M.$locale = function() {
4618
4614
  return T[this.$L];
4619
- }, $.locale = function(A, F) {
4620
- if (!A)
4615
+ }, M.locale = function(O, F) {
4616
+ if (!O)
4621
4617
  return this.$L;
4622
- var R = this.clone(), G = L(A, F, !0);
4618
+ var R = this.clone(), G = N(O, F, !0);
4623
4619
  return G && (R.$L = G), R;
4624
- }, $.clone = function() {
4625
- return O.w(this.$d, this);
4626
- }, $.toDate = function() {
4620
+ }, M.clone = function() {
4621
+ return I.w(this.$d, this);
4622
+ }, M.toDate = function() {
4627
4623
  return new Date(this.valueOf());
4628
- }, $.toJSON = function() {
4624
+ }, M.toJSON = function() {
4629
4625
  return this.isValid() ? this.toISOString() : null;
4630
- }, $.toISOString = function() {
4626
+ }, M.toISOString = function() {
4631
4627
  return this.$d.toISOString();
4632
- }, $.toString = function() {
4628
+ }, M.toString = function() {
4633
4629
  return this.$d.toUTCString();
4634
- }, w;
4635
- }(), M = k.prototype;
4636
- return V.prototype = M, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", d], ["$y", p], ["$D", b]].forEach(function(w) {
4637
- M[w[1]] = function($) {
4638
- 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]);
4639
4635
  };
4640
- }), V.extend = function(w, $) {
4641
- return w.$i || (w($, k, V), w.$i = !0), V;
4642
- }, V.locale = L, V.isDayjs = B, V.unix = function(w) {
4643
- return V(1e3 * w);
4644
- }, V.en = T[P], V.Ls = T, V.p = {}, V;
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;
4645
4641
  });
4646
4642
  })(dayjs_min);
4647
4643
  const dayjs = dayjs_min.exports;
@@ -4686,32 +4682,32 @@ function filesize(e, {
4686
4682
  roundingMethod: _ = ROUND,
4687
4683
  precision: v = 0
4688
4684
  } = {}) {
4689
- let E = b, y = Number(e), C = [], I = 0, P = EMPTY;
4685
+ let C = b, y = Number(e), E = [], A = 0, P = EMPTY;
4690
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);
4691
- const T = n === 10 ? 1e3 : 1024, B = m === !0, L = y < 0, V = Math[_];
4687
+ const T = n === 10 ? 1e3 : 1024, B = m === !0, N = y < 0, k = Math[_];
4692
4688
  if (typeof e != "bigint" && isNaN(e))
4693
4689
  throw new TypeError(INVALID_NUMBER);
4694
- if (typeof V !== FUNCTION)
4690
+ if (typeof k !== FUNCTION)
4695
4691
  throw new TypeError(INVALID_ROUND);
4696
- if (L && (y = -y), (E === -1 || isNaN(E)) && (E = Math.floor(Math.log(y) / Math.log(T)), E < 0 && (E = 0)), E > 8 && (v > 0 && (v += 8 - E), E = 8), d === EXPONENT)
4697
- return E;
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
+ return C;
4698
4694
  if (y === 0)
4699
- C[0] = 0, P = C[1] = STRINGS.symbol[c][t ? BITS : BYTES][E];
4695
+ E[0] = 0, P = E[1] = STRINGS.symbol[c][t ? BITS : BYTES][C];
4700
4696
  else {
4701
- I = y / (n === 2 ? Math.pow(2, E * 10) : Math.pow(1e3, E)), t && (I = I * 8, I >= T && E < 8 && (I = I / T, E++));
4702
- const O = Math.pow(10, E > 0 ? a : 0);
4703
- C[0] = V(I * O) / O, C[0] === T && E < 8 && b === -1 && (C[0] = 1, E++), P = C[1] = n === 10 && E === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][E];
4704
- }
4705
- if (L && (C[0] = -C[0]), v > 0 && (C[0] = C[0].toPrecision(v)), C[1] = u[C[1]] || C[1], o === !0 ? C[0] = C[0].toLocaleString() : o.length > 0 ? C[0] = C[0].toLocaleString(o, s) : i.length > 0 && (C[0] = C[0].toString().replace(PERIOD, i)), r && Number.isInteger(C[0]) === !1 && a > 0) {
4706
- const O = i || PERIOD, k = C[0].toString().split(O), M = k[1] || EMPTY, w = M.length, $ = a - w;
4707
- C[0] = `${k[0]}${O}${M.padEnd(w + $, ZERO)}`;
4708
- }
4709
- return B && (C[1] = p[E] ? p[E] : STRINGS.fullform[c][E] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), d === ARRAY ? C : d === OBJECT ? {
4710
- value: C[0],
4711
- symbol: C[1],
4712
- exponent: E,
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
+ }
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
+ }
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
+ value: E[0],
4707
+ symbol: E[1],
4708
+ exponent: C,
4713
4709
  unit: P
4714
- } : C.join(l);
4710
+ } : E.join(l);
4715
4711
  }
4716
4712
  const data$5 = {
4717
4713
  width: 1024,
@@ -4989,18 +4985,18 @@ function iconToSVG(e, t) {
4989
4985
  };
4990
4986
  let o = r.body;
4991
4987
  [r, n].forEach((b) => {
4992
- const _ = [], v = b.hFlip, E = b.vFlip;
4988
+ const _ = [], v = b.hFlip, C = b.vFlip;
4993
4989
  let y = b.rotate;
4994
- v ? E ? y += 2 : (_.push(
4990
+ v ? C ? y += 2 : (_.push(
4995
4991
  "translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
4996
- ), _.push("scale(-1 1)"), a.top = a.left = 0) : E && (_.push(
4992
+ ), _.push("scale(-1 1)"), a.top = a.left = 0) : C && (_.push(
4997
4993
  "translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
4998
4994
  ), _.push("scale(1 -1)"), a.top = a.left = 0);
4999
- let C;
4995
+ let E;
5000
4996
  switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
5001
4997
  case 1:
5002
- C = a.height / 2 + a.top, _.unshift(
5003
- "rotate(90 " + C.toString() + " " + C.toString() + ")"
4998
+ E = a.height / 2 + a.top, _.unshift(
4999
+ "rotate(90 " + E.toString() + " " + E.toString() + ")"
5004
5000
  );
5005
5001
  break;
5006
5002
  case 2:
@@ -5009,12 +5005,12 @@ function iconToSVG(e, t) {
5009
5005
  );
5010
5006
  break;
5011
5007
  case 3:
5012
- C = a.width / 2 + a.left, _.unshift(
5013
- "rotate(-90 " + C.toString() + " " + C.toString() + ")"
5008
+ E = a.width / 2 + a.left, _.unshift(
5009
+ "rotate(-90 " + E.toString() + " " + E.toString() + ")"
5014
5010
  );
5015
5011
  break;
5016
5012
  }
5017
- y % 2 === 1 && (a.left !== a.top && (C = a.left, a.left = a.top, a.top = C), a.width !== a.height && (C = a.width, a.width = a.height, a.height = C)), _.length && (o = '<g transform="' + _.join(" ") + '">' + o + "</g>");
5013
+ y % 2 === 1 && (a.left !== a.top && (E = a.left, a.left = a.top, a.top = E), a.width !== a.height && (E = a.width, a.width = a.height, a.height = E)), _.length && (o = '<g transform="' + _.join(" ") + '">' + o + "</g>");
5018
5014
  });
5019
5015
  const s = n.width, i = n.height, l = a.width, u = a.height;
5020
5016
  let c, d;
@@ -5316,7 +5312,7 @@ function sendQuery(e, t, r, n) {
5316
5312
  function v(T, B) {
5317
5313
  B && (p = []), typeof T == "function" && p.push(T);
5318
5314
  }
5319
- function E() {
5315
+ function C() {
5320
5316
  return {
5321
5317
  startTime: i,
5322
5318
  payload: t,
@@ -5332,37 +5328,37 @@ function sendQuery(e, t, r, n) {
5332
5328
  T(void 0, c);
5333
5329
  });
5334
5330
  }
5335
- function C() {
5331
+ function E() {
5336
5332
  m.forEach((T) => {
5337
5333
  T.status === "pending" && (T.status = "aborted");
5338
5334
  }), m = [];
5339
5335
  }
5340
- function I(T, B, L) {
5341
- const V = B !== "success";
5342
- switch (m = m.filter((O) => O !== T), l) {
5336
+ function A(T, B, N) {
5337
+ const k = B !== "success";
5338
+ switch (m = m.filter((I) => I !== T), l) {
5343
5339
  case "pending":
5344
5340
  break;
5345
5341
  case "failed":
5346
- if (V || !e.dataAfterTimeout)
5342
+ if (k || !e.dataAfterTimeout)
5347
5343
  return;
5348
5344
  break;
5349
5345
  default:
5350
5346
  return;
5351
5347
  }
5352
5348
  if (B === "abort") {
5353
- c = L, y();
5349
+ c = N, y();
5354
5350
  return;
5355
5351
  }
5356
- if (V) {
5357
- c = L, m.length || (s.length ? P() : y());
5352
+ if (k) {
5353
+ c = N, m.length || (s.length ? P() : y());
5358
5354
  return;
5359
5355
  }
5360
- if (b(), C(), !e.random) {
5361
- const O = e.resources.indexOf(T.resource);
5362
- O !== -1 && O !== e.index && (e.index = O);
5356
+ if (b(), E(), !e.random) {
5357
+ const I = e.resources.indexOf(T.resource);
5358
+ I !== -1 && I !== e.index && (e.index = I);
5363
5359
  }
5364
- l = "completed", p.forEach((O) => {
5365
- O(L);
5360
+ l = "completed", p.forEach((I) => {
5361
+ I(N);
5366
5362
  });
5367
5363
  }
5368
5364
  function P() {
@@ -5373,7 +5369,7 @@ function sendQuery(e, t, r, n) {
5373
5369
  if (T === void 0) {
5374
5370
  if (m.length) {
5375
5371
  d = setTimeout(() => {
5376
- b(), l === "pending" && (C(), y());
5372
+ b(), l === "pending" && (E(), y());
5377
5373
  }, e.timeout);
5378
5374
  return;
5379
5375
  }
@@ -5383,13 +5379,13 @@ function sendQuery(e, t, r, n) {
5383
5379
  const B = {
5384
5380
  status: "pending",
5385
5381
  resource: T,
5386
- callback: (L, V) => {
5387
- I(B, L, V);
5382
+ callback: (N, k) => {
5383
+ A(B, N, k);
5388
5384
  }
5389
5385
  };
5390
5386
  m.push(B), u++, d = setTimeout(P, e.rotate), r(T, t, B.callback);
5391
5387
  }
5392
- return setTimeout(P), E;
5388
+ return setTimeout(P), C;
5393
5389
  }
5394
5390
  function initRedundancy(e) {
5395
5391
  const t = {
@@ -5791,8 +5787,8 @@ const render = (e, t) => {
5791
5787
  v !== !0 && v !== "true" && delete n["aria-hidden"];
5792
5788
  break;
5793
5789
  default: {
5794
- const E = customisationAliases[_];
5795
- E ? (v === !0 || v === "true" || v === 1) && (r[E] = !0) : defaultExtendedIconCustomisations[_] === void 0 && (n[_] = v);
5790
+ const C = customisationAliases[_];
5791
+ C ? (v === !0 || v === "true" || v === 1) && (r[C] = !0) : defaultExtendedIconCustomisations[_] === void 0 && (n[_] = v);
5796
5792
  }
5797
5793
  }
5798
5794
  }
@@ -6001,61 +5997,61 @@ function createSetupStore(e, t, r = {}, n, a) {
6001
5997
  const l = {
6002
5998
  deep: !0
6003
5999
  };
6004
- process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (L) => {
6005
- u ? p = L : u == !1 && !T._hotUpdating && (Array.isArray(p) ? p.push(L) : 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."));
6006
6002
  });
6007
6003
  let u, c, d = markRaw([]), m = markRaw([]), p;
6008
6004
  const b = n.state.value[e];
6009
6005
  !s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
6010
6006
  const _ = ref({});
6011
- function v(L) {
6012
- let V;
6013
- u = c = !1, process.env.NODE_ENV !== "production" && (p = []), typeof L == "function" ? (L(n.state.value[e]), V = {
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 = {
6014
6010
  type: MutationType.patchFunction,
6015
6011
  storeId: e,
6016
6012
  events: p
6017
- }) : (mergeReactiveObjects(n.state.value[e], L), V = {
6013
+ }) : (mergeReactiveObjects(n.state.value[e], N), k = {
6018
6014
  type: MutationType.patchObject,
6019
- payload: L,
6015
+ payload: N,
6020
6016
  storeId: e,
6021
6017
  events: p
6022
6018
  }), nextTick().then(() => {
6023
6019
  u = !0;
6024
- }), c = !0, triggerSubscriptions(d, V, n.state.value[e]);
6020
+ }), c = !0, triggerSubscriptions(d, k, n.state.value[e]);
6025
6021
  }
6026
- const E = process.env.NODE_ENV !== "production" ? () => {
6022
+ const C = process.env.NODE_ENV !== "production" ? () => {
6027
6023
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
6028
6024
  } : noop$1;
6029
6025
  function y() {
6030
6026
  o.stop(), d = [], m = [], n._s.delete(e);
6031
6027
  }
6032
- function C(L, V) {
6028
+ function E(N, k) {
6033
6029
  return function() {
6034
6030
  setActivePinia(n);
6035
- const O = Array.from(arguments), k = [], M = [];
6036
- function w(F) {
6037
- k.push(F);
6038
- }
6031
+ const I = Array.from(arguments), w = [], L = [];
6039
6032
  function $(F) {
6040
- M.push(F);
6033
+ w.push(F);
6034
+ }
6035
+ function M(F) {
6036
+ L.push(F);
6041
6037
  }
6042
6038
  triggerSubscriptions(m, {
6043
- args: O,
6044
- name: L,
6039
+ args: I,
6040
+ name: N,
6045
6041
  store: T,
6046
- after: w,
6047
- onError: $
6042
+ after: $,
6043
+ onError: M
6048
6044
  });
6049
- let A;
6045
+ let O;
6050
6046
  try {
6051
- A = V.apply(this && this.$id === e ? this : T, O);
6047
+ O = k.apply(this && this.$id === e ? this : T, I);
6052
6048
  } catch (F) {
6053
- throw triggerSubscriptions(M, F), F;
6049
+ throw triggerSubscriptions(L, F), F;
6054
6050
  }
6055
- return A instanceof Promise ? A.then((F) => (triggerSubscriptions(k, F), F)).catch((F) => (triggerSubscriptions(M, F), Promise.reject(F))) : (triggerSubscriptions(k, 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);
6056
6052
  };
6057
6053
  }
6058
- const I = /* @__PURE__ */ markRaw({
6054
+ const A = /* @__PURE__ */ markRaw({
6059
6055
  actions: {},
6060
6056
  getters: {},
6061
6057
  state: [],
@@ -6065,96 +6061,96 @@ function createSetupStore(e, t, r = {}, n, a) {
6065
6061
  $id: e,
6066
6062
  $onAction: addSubscription.bind(null, m),
6067
6063
  $patch: v,
6068
- $reset: E,
6069
- $subscribe(L, V = {}) {
6070
- const O = addSubscription(d, L, V.detached, () => k()), k = o.run(() => watch(() => n.state.value[e], (M) => {
6071
- (V.flush === "sync" ? c : u) && L({
6064
+ $reset: C,
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({
6072
6068
  storeId: e,
6073
6069
  type: MutationType.direct,
6074
6070
  events: p
6075
- }, M);
6076
- }, assign$1({}, l, V)));
6077
- return O;
6071
+ }, L);
6072
+ }, assign$1({}, l, k)));
6073
+ return I;
6078
6074
  },
6079
6075
  $dispose: y
6080
6076
  }, T = reactive(assign$1(
6081
6077
  process.env.NODE_ENV !== "production" && IS_CLIENT ? {
6082
6078
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
6083
- _hmrPayload: I
6079
+ _hmrPayload: A
6084
6080
  } : {},
6085
6081
  P
6086
6082
  ));
6087
6083
  n._s.set(e, T);
6088
6084
  const B = n._e.run(() => (o = effectScope(), o.run(() => t())));
6089
- for (const L in B) {
6090
- const V = B[L];
6091
- if (isRef(V) && !isComputed(V) || isReactive(V))
6092
- process.env.NODE_ENV !== "production" && a ? set(_.value, L, toRef(B, L)) : s || (b && shouldHydrate(V) && (isRef(V) ? V.value = b[L] : mergeReactiveObjects(V, b[L])), n.state.value[e][L] = V), process.env.NODE_ENV !== "production" && I.state.push(L);
6093
- else if (typeof V == "function") {
6094
- const O = process.env.NODE_ENV !== "production" && a ? V : C(L, V);
6095
- B[L] = O, process.env.NODE_ENV !== "production" && (I.actions[L] = V), i.actions[L] = V;
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;
6096
6092
  } else
6097
- process.env.NODE_ENV !== "production" && isComputed(V) && (I.getters[L] = s ? r.getters[L] : V, IS_CLIENT && (B._getters || (B._getters = markRaw([]))).push(L));
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));
6098
6094
  }
6099
6095
  if (assign$1(T, B), assign$1(toRaw(T), B), Object.defineProperty(T, "$state", {
6100
6096
  get: () => process.env.NODE_ENV !== "production" && a ? _.value : n.state.value[e],
6101
- set: (L) => {
6097
+ set: (N) => {
6102
6098
  if (process.env.NODE_ENV !== "production" && a)
6103
6099
  throw new Error("cannot set hotState");
6104
- v((V) => {
6105
- assign$1(V, L);
6100
+ v((k) => {
6101
+ assign$1(k, N);
6106
6102
  });
6107
6103
  }
6108
6104
  }), process.env.NODE_ENV !== "production") {
6109
- T._hotUpdate = markRaw((V) => {
6110
- T._hotUpdating = !0, V._hmrPayload.state.forEach((O) => {
6111
- if (O in T.$state) {
6112
- const k = V.$state[O], M = T.$state[O];
6113
- typeof k == "object" && isPlainObject(k) && isPlainObject(M) ? patchObject(k, M) : V.$state[O] = M;
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;
6114
6110
  }
6115
- set(T, O, toRef(V.$state, O));
6116
- }), Object.keys(T.$state).forEach((O) => {
6117
- O in V.$state || del(T, O);
6118
- }), u = !1, c = !1, n.state.value[e] = toRef(V._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(() => {
6119
6115
  u = !0;
6120
6116
  });
6121
- for (const O in V._hmrPayload.actions) {
6122
- const k = V[O];
6123
- set(T, O, C(O, k));
6117
+ for (const I in k._hmrPayload.actions) {
6118
+ const w = k[I];
6119
+ set(T, I, E(I, w));
6124
6120
  }
6125
- for (const O in V._hmrPayload.getters) {
6126
- const k = V._hmrPayload.getters[O], M = s ? computed(() => (setActivePinia(n), k.call(T, T))) : k;
6127
- set(T, O, M);
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);
6128
6124
  }
6129
- Object.keys(T._hmrPayload.getters).forEach((O) => {
6130
- O in V._hmrPayload.getters || del(T, O);
6131
- }), Object.keys(T._hmrPayload.actions).forEach((O) => {
6132
- O in V._hmrPayload.actions || del(T, O);
6133
- }), T._hmrPayload = V._hmrPayload, T._getters = V._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;
6134
6130
  });
6135
- const L = {
6131
+ const N = {
6136
6132
  writable: !0,
6137
6133
  configurable: !0,
6138
6134
  enumerable: !1
6139
6135
  };
6140
- IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((V) => {
6141
- Object.defineProperty(T, V, {
6142
- value: T[V],
6143
- ...L
6136
+ IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((k) => {
6137
+ Object.defineProperty(T, k, {
6138
+ value: T[k],
6139
+ ...N
6144
6140
  });
6145
6141
  });
6146
6142
  }
6147
- return n._p.forEach((L) => {
6143
+ return n._p.forEach((N) => {
6148
6144
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
6149
- const V = o.run(() => L({
6145
+ const k = o.run(() => N({
6150
6146
  store: T,
6151
6147
  app: n._a,
6152
6148
  pinia: n,
6153
6149
  options: i
6154
6150
  }));
6155
- Object.keys(V || {}).forEach((O) => T._customProperties.add(O)), assign$1(T, V);
6151
+ Object.keys(k || {}).forEach((I) => T._customProperties.add(I)), assign$1(T, k);
6156
6152
  } else
6157
- assign$1(T, o.run(() => L({
6153
+ assign$1(T, o.run(() => N({
6158
6154
  store: T,
6159
6155
  app: n._a,
6160
6156
  pinia: n,
@@ -6588,12 +6584,12 @@ const getProps$w = () => ({
6588
6584
  function _(y) {
6589
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));
6590
6586
  }
6591
- function v(y, C, I) {
6592
- return y.addEventListener(C, I), {
6593
- remove: () => y.removeEventListener(C, I)
6587
+ function v(y, E, A) {
6588
+ return y.addEventListener(E, A), {
6589
+ remove: () => y.removeEventListener(E, A)
6594
6590
  };
6595
6591
  }
6596
- function E(y) {
6592
+ function C(y) {
6597
6593
  y.stopPropagation(), y.preventDefault();
6598
6594
  }
6599
6595
  return () => {
@@ -6603,7 +6599,7 @@ const getProps$w = () => ({
6603
6599
  style: u.value
6604
6600
  }, [createVNode("div", {
6605
6601
  class: "kg-resizable-handle",
6606
- onClick: E,
6602
+ onClick: C,
6607
6603
  onMousedown: _
6608
6604
  }, [createVNode("div", {
6609
6605
  class: "kg-resizable-handle-line"
@@ -6736,12 +6732,12 @@ const getProps$v = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
6736
6732
  r("update:visible", !1);
6737
6733
  }
6738
6734
  function p() {
6739
- var b, _, v, E, y, C, I;
6735
+ var b, _, v, C, y, E, A;
6740
6736
  if (c.value) {
6741
6737
  const P = (_ = (b = l.selectedRows) == null ? void 0 : b.value) != null ? _ : [], T = (v = P.map((B) => B[d.value])) != null ? v : [];
6742
6738
  (!i || i(T, P)) && (r("kgOk", T, P), r("update:visible", !1));
6743
6739
  } else {
6744
- const P = (C = (y = (E = l.selectedRows) == null ? void 0 : E.value) == null ? void 0 : y[0]) != null ? C : 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 : "";
6745
6741
  (!i || i(T, P)) && (r("kgOk", T, P), r("update:visible", !1));
6746
6742
  }
6747
6743
  }
@@ -6946,8 +6942,8 @@ const KgFormItemSelect = defineComponent({
6946
6942
  immediate: !0
6947
6943
  });
6948
6944
  async function i() {
6949
- var E, y, C, I, P, T, B, L, V;
6950
- const c = (E = s.value) == null ? void 0 : E.cmd, d = (y = s.value) == null ? void 0 : y.cmd_prm, m = (I = (C = s.value) == null ? void 0 : C.cmd_method) != null ? I : "GET", p = (T = (P = s.value) == null ? void 0 : P.val_clm) != null ? T : "", b = (L = (B = s.value) == null ? void 0 : B.lbl_clm) != null ? L : "";
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 : "";
6951
6947
  if (!c || !p || !b) {
6952
6948
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
6953
6949
  formID: n.formID,
@@ -6961,25 +6957,36 @@ const KgFormItemSelect = defineComponent({
6961
6957
  const _ = KgVarUtil.parseCommandParameter(d);
6962
6958
  let v = null;
6963
6959
  try {
6964
- v = await ((V = httpClient()) == null ? void 0 : V.request({
6960
+ v = await ((k = httpClient()) == null ? void 0 : k.request({
6965
6961
  url: c,
6966
6962
  method: m,
6967
6963
  params: _
6968
6964
  }));
6969
6965
  } catch {
6970
6966
  }
6971
- if (isObjectLike(v) ? isArrayLike(v) ? o.value = a(v) : v && "total" in v && "records" in v && (o.value = a(v.records)) : o.value = [], o.value.length > 0) {
6972
- const O = o.value[0];
6973
- (!(p in O) || !(b in O)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
6967
+ if (!isObjectLike(v))
6968
+ o.value = [];
6969
+ else
6970
+ switch (!0) {
6971
+ case isArrayLike(v):
6972
+ o.value = a(v);
6973
+ break;
6974
+ case (v && "total" in v && "records" in v):
6975
+ o.value = a(v.records);
6976
+ break;
6977
+ }
6978
+ if (o.value.length > 0) {
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.", {
6974
6981
  formID: n.formID,
6975
6982
  kgVarName: e.kgVarName,
6976
6983
  cmd: c,
6977
6984
  val_clm: p,
6978
6985
  lbl_clm: b,
6979
- \u6240\u6709\u5217: Object.keys(O)
6986
+ \u6240\u6709\u5217: Object.keys(I)
6980
6987
  });
6981
6988
  }
6982
- r("kgSelectDatasChange", o.value), o.value.find((O) => O[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);
6983
6990
  }
6984
6991
  function l(c) {
6985
6992
  var m;
@@ -7053,11 +7060,11 @@ const KgFormItemSelect = defineComponent({
7053
7060
  }) {
7054
7061
  provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_BEFORE_LOOKUP_OK, e.onKgBeforeLookupOk);
7055
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(() => {
7056
- var M, w, $, A, F;
7057
- let k = [];
7063
+ var L, $, M, O, F;
7064
+ let w = [];
7058
7065
  switch (e.kgContext) {
7059
7066
  case KG_FORM_CONTEXT.SEARCH:
7060
- ((M = m.value) == null ? void 0 : M.rqr_flg) === 1 && (k = [{
7067
+ ((L = m.value) == null ? void 0 : L.rqr_flg) === 1 && (w = [{
7061
7068
  required: !0,
7062
7069
  message: n.t("kg.required")
7063
7070
  }]);
@@ -7065,25 +7072,25 @@ const KgFormItemSelect = defineComponent({
7065
7072
  case KG_FORM_CONTEXT.SUBMIT:
7066
7073
  switch (!0) {
7067
7074
  case a.isCreating.value:
7068
- ((w = p.value) == null ? void 0 : w.crt_rqr_flg) === 1 && (k = [{
7075
+ (($ = p.value) == null ? void 0 : $.crt_rqr_flg) === 1 && (w = [{
7069
7076
  required: !0,
7070
7077
  message: n.t("kg.required")
7071
7078
  }]);
7072
7079
  break;
7073
7080
  case a.isUpdating.value:
7074
- (($ = p.value) == null ? void 0 : $.upt_rqr_flg) === 1 && (k = [{
7081
+ ((M = p.value) == null ? void 0 : M.upt_rqr_flg) === 1 && (w = [{
7075
7082
  required: !0,
7076
7083
  message: n.t("kg.required")
7077
7084
  }]);
7078
7085
  break;
7079
7086
  case a.isCopying.value:
7080
- ((A = p.value) == null ? void 0 : A.cpy_rqr_flg) === 1 && (k = [{
7087
+ ((O = p.value) == null ? void 0 : O.cpy_rqr_flg) === 1 && (w = [{
7081
7088
  required: !0,
7082
7089
  message: n.t("kg.required")
7083
7090
  }]);
7084
7091
  break;
7085
7092
  case a.isDeleting.value:
7086
- ((F = p.value) == null ? void 0 : F.del_rqr_flg) === 1 && (k = [{
7093
+ ((F = p.value) == null ? void 0 : F.del_rqr_flg) === 1 && (w = [{
7087
7094
  required: !0,
7088
7095
  message: n.t("kg.required")
7089
7096
  }]);
@@ -7091,111 +7098,111 @@ const KgFormItemSelect = defineComponent({
7091
7098
  }
7092
7099
  break;
7093
7100
  }
7094
- return e.kgRules && (k = [...k, ...e.kgRules]), k;
7101
+ return e.kgRules && (w = [...w, ...e.kgRules]), w;
7095
7102
  }), _ = computed(() => {
7096
- var M, w, $, A, F;
7103
+ var L, $, M, O, F;
7097
7104
  if (a.isRetrievingVar.value)
7098
7105
  return !0;
7099
- let k = !1;
7106
+ let w = !1;
7100
7107
  if (e.kgDisabled !== void 0)
7101
- k = e.kgDisabled;
7108
+ w = e.kgDisabled;
7102
7109
  else
7103
7110
  switch (e.kgContext) {
7104
7111
  case KG_FORM_CONTEXT.SEARCH:
7105
- k = ((M = m.value) == null ? void 0 : M.ena_flg) === 0;
7112
+ w = ((L = m.value) == null ? void 0 : L.ena_flg) === 0;
7106
7113
  break;
7107
7114
  case KG_FORM_CONTEXT.SUBMIT:
7108
7115
  switch (!0) {
7109
7116
  case a.isCreating.value:
7110
- k = ((w = p.value) == null ? void 0 : w.crt_ena_flg) === 0;
7117
+ w = (($ = p.value) == null ? void 0 : $.crt_ena_flg) === 0;
7111
7118
  break;
7112
7119
  case a.isUpdating.value:
7113
- k = (($ = p.value) == null ? void 0 : $.upt_ena_flg) === 0;
7120
+ w = ((M = p.value) == null ? void 0 : M.upt_ena_flg) === 0;
7114
7121
  break;
7115
7122
  case a.isCopying.value:
7116
- k = ((A = p.value) == null ? void 0 : A.cpy_ena_flg) === 0;
7123
+ w = ((O = p.value) == null ? void 0 : O.cpy_ena_flg) === 0;
7117
7124
  break;
7118
7125
  case a.isDeleting.value:
7119
- k = ((F = p.value) == null ? void 0 : F.del_ena_flg) === 0;
7126
+ w = ((F = p.value) == null ? void 0 : F.del_ena_flg) === 0;
7120
7127
  break;
7121
7128
  }
7122
7129
  break;
7123
7130
  }
7124
- return k;
7131
+ return w;
7125
7132
  }), v = computed(() => {
7126
- var M, w, $, A;
7127
- let k = " ";
7133
+ var L, $, M, O;
7134
+ let w = " ";
7128
7135
  if (e.kgPlaceholder)
7129
- k = e.kgPlaceholder;
7136
+ w = e.kgPlaceholder;
7130
7137
  else
7131
7138
  switch (e.kgContext) {
7132
7139
  case KG_FORM_CONTEXT.SEARCH:
7133
- k = n.t((w = (M = m.value) == null ? void 0 : M.placeholder) != null ? w : " ");
7140
+ w = n.t(($ = (L = m.value) == null ? void 0 : L.placeholder) != null ? $ : " ");
7134
7141
  break;
7135
7142
  case KG_FORM_CONTEXT.SUBMIT:
7136
- k = 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 : " ");
7137
7144
  break;
7138
7145
  }
7139
- return k;
7140
- }), E = computed(() => {
7141
- var M, w, $, A, F, R, G, N, U, W;
7142
- let k = 6;
7146
+ return w;
7147
+ }), C = computed(() => {
7148
+ var L, $, M, O, F, R, G, V, U, H;
7149
+ let w = 6;
7143
7150
  if (e.kgSpan !== void 0)
7144
- k = e.kgSpan;
7151
+ w = e.kgSpan;
7145
7152
  else
7146
7153
  switch (e.kgContext) {
7147
7154
  case KG_FORM_CONTEXT.SEARCH:
7148
- k = (w = (M = m.value) == null ? void 0 : M.width) != null ? w : 6;
7155
+ w = ($ = (L = m.value) == null ? void 0 : L.width) != null ? $ : 6;
7149
7156
  break;
7150
7157
  case KG_FORM_CONTEXT.SUBMIT:
7151
7158
  switch (!0) {
7152
7159
  case a.isCreating.value:
7153
- k = (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;
7154
7161
  break;
7155
7162
  case a.isUpdating.value:
7156
- k = (R = (F = p.value) == null ? void 0 : F.upt_width) != null ? R : 6;
7163
+ w = (R = (F = p.value) == null ? void 0 : F.upt_width) != null ? R : 6;
7157
7164
  break;
7158
7165
  case a.isCopying.value:
7159
- k = (N = (G = p.value) == null ? void 0 : G.cpy_width) != null ? N : 6;
7166
+ w = (V = (G = p.value) == null ? void 0 : G.cpy_width) != null ? V : 6;
7160
7167
  break;
7161
7168
  case a.isDeleting.value:
7162
- k = (W = (U = p.value) == null ? void 0 : U.del_width) != null ? W : 6;
7169
+ w = (H = (U = p.value) == null ? void 0 : U.del_width) != null ? H : 6;
7163
7170
  break;
7164
7171
  }
7165
7172
  }
7166
- return Math.min(24, Math.max(1, k));
7173
+ return Math.min(24, Math.max(1, w));
7167
7174
  }), y = computed(() => ({
7168
7175
  paddingLeft: `${e.kgGutter / 2}px !important`,
7169
7176
  paddingRight: `${e.kgGutter / 2}px !important`
7170
- })), C = computed(() => {
7171
- var M, w, $, A;
7172
- let k = "kg-form-item";
7173
- switch (c.value && (k += " kg-form-item-lookup"), e.kgContext) {
7177
+ })), E = computed(() => {
7178
+ var L, $, M, O;
7179
+ let w = "kg-form-item";
7180
+ switch (c.value && (w += " kg-form-item-lookup"), e.kgContext) {
7174
7181
  case KG_FORM_CONTEXT.SEARCH:
7175
7182
  switch (!0) {
7176
- case ((M = m.value) == null ? void 0 : M.vis_flg) === 0:
7177
- k += " kg-form-item--invisible";
7183
+ case ((L = m.value) == null ? void 0 : L.vis_flg) === 0:
7184
+ w += " kg-form-item--invisible";
7178
7185
  break;
7179
7186
  }
7180
7187
  break;
7181
7188
  case KG_FORM_CONTEXT.SUBMIT:
7182
7189
  switch (!0) {
7183
- case (i.value && ((w = p.value) == null ? void 0 : w.crt_vis_flg) === 0):
7184
- case (l.value && (($ = p.value) == null ? void 0 : $.upt_vis_flg) === 0):
7185
- case (u.value && ((A = p.value) == null ? void 0 : A.cpy_vis_flg) === 0):
7186
- k += " 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";
7187
7194
  break;
7188
7195
  }
7189
7196
  break;
7190
7197
  }
7191
- return k;
7192
- }), I = computed(() => {
7193
- var M;
7194
- const k = {
7198
+ return w;
7199
+ }), A = computed(() => {
7200
+ var L;
7201
+ const w = {
7195
7202
  ...e,
7196
- value: (M = o.value) == null ? void 0 : M[e.kgVarName],
7197
- "onUpdate:value": (w) => {
7198
- 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] = $);
7199
7206
  },
7200
7207
  kgPlaceholder: v.value,
7201
7208
  kgDisabled: _.value,
@@ -7209,33 +7216,26 @@ const KgFormItemSelect = defineComponent({
7209
7216
  case KG_FORM_ITEM_TYPE.SWITCH:
7210
7217
  break;
7211
7218
  case KG_FORM_ITEM_TYPE.DATE_DATE:
7212
- k.kgShowTime = !1;
7219
+ w.kgShowTime = !1;
7213
7220
  break;
7214
7221
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
7215
- k.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7222
+ w.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7216
7223
  break;
7217
7224
  }
7218
- return k;
7225
+ return w;
7219
7226
  }), P = computed(() => {
7220
- var k;
7221
- return e.kgType || ((k = d.value) == null ? void 0 : k.ctrl_typ);
7222
- }), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext));
7223
- watch(() => {
7224
- var k;
7225
- return (k = o.value) == null ? void 0 : k[e.kgVarName];
7226
- }, () => {
7227
- var k;
7228
- (k = s.value) == null || k.validate([e.kgVarName]);
7229
- });
7230
- function B(k, M) {
7231
7227
  var w;
7232
- o.value && (o.value[e.kgVarName] = k), r("kgChange", M), (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 L() {
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 V() {
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 O() {
7265
- var k;
7266
- return !c.value || !((k = c.value) != null && k.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,
@@ -7274,8 +7274,8 @@ const KgFormItemSelect = defineComponent({
7274
7274
  return () => createVNode(Col, {
7275
7275
  "kg-frm-id": a.formID,
7276
7276
  "kg-var-nam": e.kgVarName,
7277
- span: E.value,
7278
- class: C.value,
7277
+ span: C.value,
7278
+ class: E.value,
7279
7279
  style: y.value
7280
7280
  }, {
7281
7281
  default: () => [createVNode(Form.Item, {
@@ -7283,8 +7283,8 @@ const KgFormItemSelect = defineComponent({
7283
7283
  rules: b.value,
7284
7284
  htmlFor: T.value
7285
7285
  }, {
7286
- default: () => createVNode(Fragment, null, [L(), O()]),
7287
- label: () => V()
7286
+ default: () => createVNode(Fragment, null, [N(), I()]),
7287
+ label: () => k()
7288
7288
  })]
7289
7289
  });
7290
7290
  }
@@ -7473,8 +7473,8 @@ function createStore(e, t, r) {
7473
7473
  var m = slice(arguments, 0), p = this;
7474
7474
  function b() {
7475
7475
  if (!!c)
7476
- return each$6(arguments, function(v, E) {
7477
- m[E] = v;
7476
+ return each$6(arguments, function(v, C) {
7477
+ m[C] = v;
7478
7478
  }), c.apply(p, m);
7479
7479
  }
7480
7480
  var _ = [b].concat(m);
@@ -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;
@@ -8418,12 +8421,12 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8418
8421
  varProfile: b,
8419
8422
  varProfileConfig: _,
8420
8423
  varGrid: v,
8421
- varGridConfig: E
8424
+ varGridConfig: C
8422
8425
  } = await GetAll({ params: { frm_id: e } });
8423
8426
  this.varCatalogsMap.set(e, i != null ? i : []), this.varLookupsMap.set(e, l != null ? l : []), this.varPossibilitiesMap.set(e, c != null ? c : []), this.varConfigsMap.set(e, u != null ? u : []), this.varButtonsMap.set(e, transformVarButtons(d)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(m)), this.varSubmitFieldsMap.set(e, transformVarSubmitFields(p)), this.varProfileConfigMap.set(e, transformVarProfileConfig(_ != null ? _ : null)), this.varProfileMap.set(e, {
8424
8427
  varProfile: b != null ? b : null,
8425
8428
  currentVarProfileMasterID: (n = (r = (t = b == null ? void 0 : b.varProfileMasters) == null ? void 0 : t.find((y) => y.def_flg === 1 || y.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
8426
- }), this.varGridConfigMap.set(e, transformVarGridConfig(E != null ? E : null)), this.varGridMap.set(e, {
8429
+ }), this.varGridConfigMap.set(e, transformVarGridConfig(C != null ? C : null)), this.varGridMap.set(e, {
8427
8430
  varGrid: transformVarGridDTO(v),
8428
8431
  currentVarGridMasterID: (s = (o = (a = v == null ? void 0 : v.varGridMasters) == null ? void 0 : a.find((y) => y.def_flg === 1 || y.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
8429
8432
  });
@@ -8507,13 +8510,13 @@ function useKgVar(e, t, r = 0) {
8507
8510
  }), onUnmounted(() => {
8508
8511
  s.leave(o);
8509
8512
  }));
8510
- const i = (L) => computed(() => {
8511
- var V, O, k;
8512
- return (k = (O = (V = s.getVarCatalog(o, L)) == null ? void 0 : V.var_text) != null ? O : L) != null ? k : "";
8513
- }), 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)), E = computed(() => s.getCurrentVarProfileMaster(o)), y = computed(() => s.getCurrentVarProfileMasterID(o)), C = computed(() => {
8514
- var L, V;
8515
- return (V = (L = E.value) == null ? void 0 : L.varProfileDetails) != null ? V : null;
8516
- }), I = computed(() => s.getVarGridConfig(o)), P = computed(() => s.getVarGridMasters(o)), T = computed(() => s.getCurrentVarGridMaster(o)), B = computed(() => s.getSystemVarGridDetails(o));
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 : "";
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(() => {
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,
@@ -8526,10 +8529,10 @@ function useKgVar(e, t, r = 0) {
8526
8529
  isOtherRequesting: b,
8527
8530
  varButtons: _,
8528
8531
  varProfileMasters: v,
8529
- currentVarProfileMaster: E,
8532
+ currentVarProfileMaster: C,
8530
8533
  currentVarProfileMasterID: y,
8531
- currentVarProfileDetails: C,
8532
- varGridConfig: I,
8534
+ currentVarProfileDetails: E,
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, E, y, C, 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 = (E = c == null ? void 0 : c.max_width) != null ? E : DEFAULT_MAX_WIDTH, d.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, d.dft_width = (C = c == null ? void 0 : c.dft_width) != null ? C : 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,
@@ -8752,8 +8755,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
8752
8755
  r("kgCancel");
8753
8756
  }
8754
8757
  function b() {
8755
- var E;
8756
- return e.kgShowFullscreenButton === !1 || ((E = i.value) == null ? void 0 : E.fullscreen_flg) === 0 ? null : createVNode(Button, {
8758
+ var C;
8759
+ return e.kgShowFullscreenButton === !1 || ((C = i.value) == null ? void 0 : C.fullscreen_flg) === 0 ? null : createVNode(Button, {
8757
8760
  onClick: d,
8758
8761
  class: "kg-submit--btn-fullscreen"
8759
8762
  }, {
@@ -8800,20 +8803,20 @@ function _useFormModel() {
8800
8803
  }), d = ref({});
8801
8804
  return watch(c, (m) => {
8802
8805
  d.value = {}, m != null && m.length && m.forEach((p) => {
8803
- var v, E, y, C;
8806
+ var v, C, y, E;
8804
8807
  const b = (v = p.var_nam) != null ? v : "", _ = t.selectedRow.value;
8805
8808
  switch (d.value[b] = void 0, !0) {
8806
8809
  case r.value:
8807
8810
  isNil(p.crt_dft_val) || (d.value[b] = KgVarUtil.transformValueByControlType(e.formID, b, p.crt_dft_val));
8808
8811
  break;
8809
8812
  case n.value:
8810
- d.value.id = _ == null ? void 0 : _.id, isNil(p.upt_dft_val) ? d.value[b] = (E = _ == null ? void 0 : _[b]) != null ? E : void 0 : d.value[b] = KgVarUtil.transformValueByControlType(e.formID, b, p.upt_dft_val);
8813
+ d.value.id = _ == null ? void 0 : _.id, isNil(p.upt_dft_val) ? d.value[b] = (C = _ == null ? void 0 : _[b]) != null ? C : void 0 : d.value[b] = KgVarUtil.transformValueByControlType(e.formID, b, p.upt_dft_val);
8811
8814
  break;
8812
8815
  case a.value:
8813
8816
  d.value.id = _ == null ? void 0 : _.id, isNil(p.cpy_dft_val) ? d.value[b] = (y = _ == null ? void 0 : _[b]) != null ? y : void 0 : d.value[b] = KgVarUtil.transformValueByControlType(e.formID, b, p.cpy_dft_val);
8814
8817
  break;
8815
8818
  case o.value:
8816
- d.value.id = _ == null ? void 0 : _.id, isNil(p.del_dft_val) ? d.value[b] = (C = _ == null ? void 0 : _[b]) != null ? C : void 0 : d.value[b] = KgVarUtil.transformValueByControlType(e.formID, b, p.del_dft_val);
8819
+ d.value.id = _ == null ? void 0 : _.id, isNil(p.del_dft_val) ? d.value[b] = (E = _ == null ? void 0 : _[b]) != null ? E : void 0 : d.value[b] = KgVarUtil.transformValueByControlType(e.formID, b, p.del_dft_val);
8817
8820
  break;
8818
8821
  }
8819
8822
  });
@@ -8898,77 +8901,77 @@ 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 && k.value.length === 0 && M.value.length === 0), b = computed(() => n.store.getVarButtonCreate(n.formID)), _ = computed(() => n.store.getVarButtonUpdate(n.formID)), v = computed(() => n.store.getVarButtonCopy(n.formID)), E = computed(() => n.store.getVarButtonDelete(n.formID)), y = computed(() => o.store.isLoading(n.formID)), C = 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)), L = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), V = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), O = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), k = computed(() => {
8902
- var K, q, Y;
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(() => {
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
- return (q = T.value) != null ? q : [];
8910
+ return (W = T.value) != null ? W : [];
8908
8911
  case d.value:
8909
- return (Y = L.value) != null ? Y : [];
8912
+ return (Y = N.value) != null ? Y : [];
8910
8913
  case m.value:
8911
8914
  return [];
8912
8915
  }
8913
8916
  return [];
8914
- }), M = computed(() => {
8915
- var K, q, Y, Z;
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
- return (q = B.value) != null ? q : [];
8923
+ return (W = B.value) != null ? W : [];
8921
8924
  case d.value:
8922
- return (Y = V.value) != null ? Y : [];
8925
+ return (Y = k.value) != null ? Y : [];
8923
8926
  case m.value:
8924
- return (Z = O.value) != null ? Z : [];
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), F = 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 || J.isFullscreen || ((K = C.value) == null ? void 0 : K.resizable_flg) === 0);
8932
- }), G = 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 W = _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
8940
  if (F.value.kgWidth)
8938
8941
  return F.value.kgWidth + 2;
8939
- }), re = computed(() => {
8940
- var q, Y;
8942
+ }), D = computed(() => {
8943
+ var W, Y;
8941
8944
  let K = "kg-submit";
8942
- return J.isFullscreen && (K += " kg-submit--fullscreen"), ((q = C.value) == null ? void 0 : q.responsive_flg) !== 0 && (K += " kg-submit--responsive"), (((Y = C.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
- }), J = 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
- }), le = computed(() => {
8946
- var K, q, Y, Z;
8947
- switch ((K = C.value) == null ? void 0 : K.layout) {
8948
+ }), X = computed(() => {
8949
+ var K, W, Y, Z;
8950
+ switch ((K = E.value) == null ? void 0 : K.layout) {
8948
8951
  case "horizontal":
8949
- switch ((q = C.value) == null ? void 0 : q.label_col_unit) {
8952
+ switch ((W = E.value) == null ? void 0 : W.label_col_unit) {
8950
8953
  case KG_WIDTH_UNIT.SPAN:
8951
8954
  return {
8952
- span: (Y = C.value) == null ? void 0 : Y.label_col
8955
+ span: (Y = E.value) == null ? void 0 : Y.label_col
8953
8956
  };
8954
8957
  default:
8955
8958
  return {
8956
8959
  style: {
8957
- width: `${(Z = C.value) == null ? void 0 : Z.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
- }), D = computed(() => {
8965
- var K, q, Y;
8966
- switch ((K = C.value) == null ? void 0 : K.layout) {
8967
+ }), q = computed(() => {
8968
+ var K, W, Y;
8969
+ switch ((K = E.value) == null ? void 0 : K.layout) {
8967
8970
  case "horizontal":
8968
- switch ((q = C.value) == null ? void 0 : q.label_col_unit) {
8971
+ switch ((W = E.value) == null ? void 0 : W.label_col_unit) {
8969
8972
  case KG_WIDTH_UNIT.SPAN:
8970
8973
  return {
8971
- span: 24 - ((Y = C.value) == null ? void 0 : Y.label_col)
8974
+ span: 24 - ((Y = E.value) == null ? void 0 : Y.label_col)
8972
8975
  };
8973
8976
  default:
8974
8977
  return;
@@ -8977,14 +8980,14 @@ const getProps$p = () => ({
8977
8980
  return;
8978
8981
  }
8979
8982
  });
8980
- watch(X, (K) => {
8981
- K ? x() : z();
8982
- }), watch(C, (K) => {
8983
+ watch(Q, (K) => {
8984
+ K ? ee() : z();
8985
+ }), watch(E, (K) => {
8983
8986
  K != null && K.dft_width && (F.value.kgWidth = K.dft_width);
8984
8987
  }, {
8985
8988
  immediate: !0
8986
8989
  });
8987
- function x() {
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 = C.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && (J.isFullscreen = !0);
8999
+ }), ((K = E.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && (x.isFullscreen = !0);
8997
9000
  }
8998
9001
  function z() {
8999
9002
  var K;
9000
- F.value.kgWidth = ((K = C.value) == null ? void 0 : K.dft_width) || DEFAULT_WIDTH, J.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 H() {
9005
+ function re() {
9003
9006
  switch (!0) {
9004
9007
  case u.value:
9005
9008
  n.store.setIsCreating(n.formID, !1);
@@ -9015,11 +9018,11 @@ const getProps$p = () => ({
9015
9018
  break;
9016
9019
  }
9017
9020
  }
9018
- async function ee() {
9019
- var K, q;
9021
+ async function ie() {
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;
@@ -9028,27 +9031,27 @@ const getProps$p = () => ({
9028
9031
  } catch (Z) {
9029
9032
  KgUtil.throwIfNotFormError(Z);
9030
9033
  }
9031
- switch (await ((q = G.value) == null ? void 0 : q.validate()), !0) {
9034
+ switch (await ((W = G.value) == null ? void 0 : W.validate()), !0) {
9032
9035
  case u.value:
9033
- await te();
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 de();
9042
+ await fe();
9040
9043
  break;
9041
9044
  case m.value:
9042
- await fe();
9045
+ await ge();
9043
9046
  break;
9044
9047
  }
9045
9048
  } catch (Y) {
9046
9049
  KgUtil.throwIfNotFormError(Y);
9047
9050
  }
9048
9051
  }
9049
- async function te() {
9050
- var q, Y, Z, ae, oe, se, ne;
9051
- const K = (q = b.value) == null ? void 0 : q.cmd;
9052
+ async function le() {
9053
+ var W, Y, Z, ne, ae, oe, te;
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.", {
9054
9057
  button: b.value
@@ -9060,18 +9063,18 @@ const getProps$p = () => ({
9060
9063
  await httpClient().request({
9061
9064
  method: (Z = (Y = b.value) == null ? void 0 : Y.cmd_method) != null ? Z : "POST",
9062
9065
  url: K,
9063
- params: KgVarUtil.parseCommandParameter((oe = (ae = b.value) == null ? void 0 : ae.cmd_prm) != null ? oe : ""),
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), (ne = (se = s.search).value) == null || ne.call(se, !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 q, Y, Z, ae, oe, se, ne;
9074
- const K = (q = _.value) == null ? void 0 : q.cmd;
9075
+ async function de() {
9076
+ var W, Y, Z, ne, ae, oe, te;
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.", {
9077
9080
  button: _.value
@@ -9082,18 +9085,18 @@ const getProps$p = () => ({
9082
9085
  n.store.setIsUpdatingRequesting(n.formID, !0), await httpClient().request({
9083
9086
  method: (Z = (Y = _.value) == null ? void 0 : Y.cmd_method) != null ? Z : "POST",
9084
9087
  url: K,
9085
- params: KgVarUtil.parseCommandParameter((oe = (ae = _.value) == null ? void 0 : ae.cmd_prm) != null ? oe : ""),
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), (ne = (se = s.search).value) == null || ne.call(se);
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 de() {
9095
- var q, Y, Z, ae, oe, se, ne;
9096
- const K = (q = v.value) == null ? void 0 : q.cmd;
9097
+ async function fe() {
9098
+ var W, Y, Z, ne, ae, oe, te;
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.", {
9099
9102
  button: v.value
@@ -9101,110 +9104,112 @@ const getProps$p = () => ({
9101
9104
  return;
9102
9105
  }
9103
9106
  try {
9104
- n.store.setIsCopyingRequesting(n.formID, !0), await httpClient().request({
9107
+ n.store.setIsCopyingRequesting(n.formID, !0);
9108
+ const se = toRaw(l.value);
9109
+ delete se.id, await httpClient().request({
9105
9110
  method: (Z = (Y = v.value) == null ? void 0 : Y.cmd_method) != null ? Z : "POST",
9106
9111
  url: K,
9107
- params: KgVarUtil.parseCommandParameter((oe = (ae = v.value) == null ? void 0 : ae.cmd_prm) != null ? oe : ""),
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), (ne = (se = s.search).value) == null || ne.call(se, !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
- async function fe() {
9117
- var q, Y, Z, ae, oe, se, ne;
9118
- const K = (q = E.value) == null ? void 0 : q.cmd;
9121
+ async function ge() {
9122
+ var W, Y, Z, ne, ae, oe, te;
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.", {
9121
- button: E.value
9126
+ button: C.value
9122
9127
  });
9123
9128
  return;
9124
9129
  }
9125
9130
  try {
9126
9131
  n.store.setIsDeletingRequesting(n.formID, !0), await httpClient().request({
9127
- method: (Z = (Y = E.value) == null ? void 0 : Y.cmd_method) != null ? Z : "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: (oe = (ae = a.selectedRows.value) == null ? void 0 : ae.map((ie) => {
9131
- var pe;
9132
- return (pe = ie.id) != null ? pe : "";
9133
- })) != null ? oe : []
9135
+ ids: (ae = (ne = a.selectedRows.value) == null ? void 0 : ne.map((se) => {
9136
+ var ue;
9137
+ return (ue = se.id) != null ? ue : "";
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), (ne = (se = s.search).value) == null || ne.call(se, !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
9149
  function ce(K) {
9145
9150
  var Y, Z;
9146
- const q = (Z = (Y = i == null ? void 0 : i.KgSubmit) == null ? void 0 : Y["KgForm.Item"]) == null ? void 0 : Z[K.var_nam];
9147
- return isFunction$2(q) ? createVNode(KgForm.Item, {
9151
+ const W = (Z = (Y = i == null ? void 0 : i.KgSubmit) == null ? void 0 : Y["KgForm.Item"]) == null ? void 0 : Z[K.var_nam];
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: ee
9155
+ kgRules: V.value[K.var_nam],
9156
+ onKgSubmit: ie
9152
9157
  }, {
9153
9158
  control: ({
9154
- varName: ae,
9155
- props: oe,
9156
- model: se,
9157
- varConfig: ne,
9158
- varProfileDetail: ie,
9159
- varSubmitField: pe
9160
- }) => q({
9161
- varName: ae,
9162
- props: oe,
9163
- model: se,
9164
- varConfig: ne,
9165
- varProfileDetail: ie,
9166
- varSubmitField: pe
9159
+ varName: ne,
9160
+ props: ae,
9161
+ model: oe,
9162
+ varConfig: te,
9163
+ varProfileDetail: se,
9164
+ varSubmitField: ue
9165
+ }) => W({
9166
+ varName: ne,
9167
+ props: ae,
9168
+ model: oe,
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: ee
9176
+ kgRules: V.value[K.var_nam],
9177
+ onKgSubmit: ie
9173
9178
  }, null);
9174
9179
  }
9175
- function ge() {
9176
- var Y, Z, ae, oe, se;
9177
- let K, q;
9180
+ function pe() {
9181
+ var Y, Z, ne, ae, oe;
9182
+ let K, W;
9178
9183
  return createVNode(KgResizable, {
9179
- kgType: ((Y = C.value) == null ? void 0 : Y.display_type) === KG_SUBMIT_DISPLAY_TYPE.MODAL ? "right" : "left",
9180
- kgMinWidth: (ae = (Z = C.value) == null ? void 0 : Z.min_width) != null ? ae : DEFAULT_MIN_WIDTH,
9181
- kgMaxWidth: (se = (oe = C.value) == null ? void 0 : oe.max_width) != null ? se : DEFAULT_MAX_WIDTH,
9184
+ kgType: ((Y = E.value) == null ? void 0 : Y.display_type) === KG_SUBMIT_DISPLAY_TYPE.MODAL ? "right" : "left",
9185
+ kgMinWidth: (ne = (Z = E.value) == null ? void 0 : Z.min_width) != null ? ne : DEFAULT_MIN_WIDTH,
9186
+ kgMaxWidth: (oe = (ae = E.value) == null ? void 0 : ae.max_width) != null ? oe : DEFAULT_MAX_WIDTH,
9182
9187
  kgDisabled: R.value,
9183
9188
  kgWidth: p.value ? 398 : F.value.kgWidth,
9184
- "onUpdate:kgWidth": (ne) => F.value.kgWidth = ne
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 ne, ie;
9195
+ var te, se;
9191
9196
  return [createVNode(KgForm, {
9192
9197
  ref: G,
9193
9198
  model: l.value,
9194
- layout: (ie = (ne = C.value) == null ? void 0 : ne.layout) != null ? ie : "vertical",
9195
- labelCol: le.value,
9196
- wrapperCol: D.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
- }, [k.value.length > 0 && createVNode(Row, {
9205
+ }, [w.value.length > 0 && createVNode(Row, {
9201
9206
  gutter: 6
9202
- }, _isSlot$7(K = k.value.map(ce)) ? K : {
9207
+ }, _isSlot$7(K = w.value.map(ce)) ? K : {
9203
9208
  default: () => [K]
9204
- }), k.value.length > 0 && M.value.length > 0 && createVNode(Divider, null, null), M.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(q = M.value.map(ce)) ? q : {
9207
- default: () => [q]
9211
+ }, _isSlot$7(W = L.value.map(ce)) ? W : {
9212
+ default: () => [W]
9208
9213
  }), p.value && createVNode("div", {
9209
9214
  style: "text-align: center; padding: 6px 0 12px;"
9210
9215
  }, [r.t("kg.confirmDelete")])])]
@@ -9214,52 +9219,52 @@ const getProps$p = () => ({
9214
9219
  });
9215
9220
  }
9216
9221
  function me() {
9217
- let K, q;
9222
+ let K, W;
9218
9223
  return createVNode("div", null, [createVNode(Button, {
9219
9224
  type: "primary",
9220
- ghost: !$.value,
9221
- disabled: $.value,
9222
- onClick: H
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: ee
9231
- }, _isSlot$7(q = r.t(m.value ? "kg.delete" : "kg.save")) ? q : {
9232
- default: () => [q]
9235
+ onClick: ie
9236
+ }, _isSlot$7(W = r.t(m.value ? "kg.delete" : "kg.save")) ? W : {
9237
+ default: () => [W]
9233
9238
  })]);
9234
9239
  }
9235
9240
  function he() {
9236
9241
  return createVNode("div", {
9237
- title: W.title.value
9238
- }, [W.title.value]);
9242
+ title: H.title.value
9243
+ }, [H.title.value]);
9239
9244
  }
9240
9245
  function _e() {
9241
9246
  return createVNode(KgSubmitHeader, {
9242
- isFullscreen: J.isFullscreen,
9243
- "onUpdate:isFullscreen": (K) => J.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: H
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: re.value,
9261
+ width: J.value,
9262
+ class: D.value,
9258
9263
  "kg-frm-id": n.formID
9259
9264
  }, {
9260
9265
  title: he,
9261
9266
  extra: _e,
9262
- default: ge,
9267
+ default: pe,
9263
9268
  footer: me
9264
9269
  });
9265
9270
  }
@@ -9350,25 +9355,25 @@ const getProps$p = () => ({
9350
9355
  var u, c, d, m, p, b, _, v;
9351
9356
  switch ((u = a.value) == null ? void 0 : u.display_type) {
9352
9357
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
9353
- const E = KgUtil.tryParseJSON((c = a.value) == null ? void 0 : c.display_type_properties);
9358
+ const C = KgUtil.tryParseJSON((c = a.value) == null ? void 0 : c.display_type_properties);
9354
9359
  return createVNode(KgYesOrNo, {
9355
- kgValue: e.kgValue === ((d = E.yValue) != null ? d : 1)
9360
+ kgValue: e.kgValue === ((d = C.yValue) != null ? d : 1)
9356
9361
  }, null);
9357
9362
  }
9358
9363
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
9359
- const E = KgUtil.tryParseJSON((m = a.value) == null ? void 0 : m.display_type_properties).find((y) => y.value === e.kgValue);
9360
- return E ? createVNode(Tag, {
9361
- color: (p = E.color) != null ? p : "default"
9364
+ const C = KgUtil.tryParseJSON((m = a.value) == null ? void 0 : m.display_type_properties).find((y) => y.value === e.kgValue);
9365
+ return C ? createVNode(Tag, {
9366
+ color: (p = C.color) != null ? p : "default"
9362
9367
  }, {
9363
- default: () => [n.t(E.varName).value]
9368
+ default: () => [n.t(C.varName).value]
9364
9369
  }) : l();
9365
9370
  }
9366
9371
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
9367
- const E = KgUtil.tryParseJSON((b = a.value) == null ? void 0 : b.display_type_properties);
9372
+ const C = KgUtil.tryParseJSON((b = a.value) == null ? void 0 : b.display_type_properties);
9368
9373
  return createVNode(KgProgressA, {
9369
- kgTextWidth: E.textWidth,
9370
- kgLeft: (_ = e.kgRow) == null ? void 0 : _[E.leftColumn],
9371
- kgRight: (v = e.kgRow) == null ? void 0 : v[E.rightColumn]
9374
+ kgTextWidth: C.textWidth,
9375
+ kgLeft: (_ = e.kgRow) == null ? void 0 : _[C.leftColumn],
9376
+ kgRight: (v = e.kgRow) == null ? void 0 : v[C.rightColumn]
9372
9377
  }, null);
9373
9378
  }
9374
9379
  case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
@@ -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, E, y, C, 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 = (E = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? E : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (C = u == null ? void 0 : u.pg_size_opt) != null ? C : 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;
@@ -9687,28 +9692,28 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
9687
9692
  class: "columns"
9688
9693
  }, [createVNode(Input, {
9689
9694
  value: s.value,
9690
- "onUpdate:value": (E) => s.value = E,
9695
+ "onUpdate:value": (C) => s.value = C,
9691
9696
  allowClear: !0
9692
9697
  }, null), createVNode("ul", {
9693
9698
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
9694
- }, [(v = a.systemVarGridDetails.value) == null ? void 0 : v.map((E) => {
9699
+ }, [(v = a.systemVarGridDetails.value) == null ? void 0 : v.map((C) => {
9695
9700
  var y;
9696
9701
  return createVNode("li", {
9697
9702
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
9698
- onClick: (C) => {
9699
- C.preventDefault(), C.stopPropagation(), u(E);
9703
+ onClick: (E) => {
9704
+ E.preventDefault(), E.stopPropagation(), u(C);
9700
9705
  },
9701
9706
  style: {
9702
- display: (y = a.t(E.var_nam).value) != null && y.includes(s.value) ? "flex" : "none"
9707
+ display: (y = a.t(C.var_nam).value) != null && y.includes(s.value) ? "flex" : "none"
9703
9708
  }
9704
9709
  }, [createVNode(Checkbox, {
9705
- checked: E.vis_flg === 1,
9710
+ checked: C.vis_flg === 1,
9706
9711
  disabled: !0
9707
9712
  }, {
9708
- default: () => [createVNode("pre", null, [a.t(E.var_nam).value])]
9713
+ default: () => [createVNode("pre", null, [a.t(C.var_nam).value])]
9709
9714
  }), createVNode(HolderOutlined$1, {
9710
- onClick: (C) => {
9711
- C.preventDefault(), C.stopPropagation();
9715
+ onClick: (E) => {
9716
+ E.preventDefault(), E.stopPropagation();
9712
9717
  }
9713
9718
  }, null)]);
9714
9719
  })])]);
@@ -9724,15 +9729,15 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
9724
9729
  }, {
9725
9730
  default: () => {
9726
9731
  var y;
9727
- let v, E;
9728
- return createVNode(Fragment, null, [(y = a.varGridMasters.value) == null ? void 0 : y.map((C) => {
9729
- var I;
9732
+ let v, C;
9733
+ return createVNode(Fragment, null, [(y = a.varGridMasters.value) == null ? void 0 : y.map((E) => {
9734
+ var A;
9730
9735
  return createVNode(Menu.Item, {
9731
- key: C.id,
9732
- class: C.id === ((I = a.currentVarGridMaster.value) == null ? void 0 : I.id) ? "selected" : "",
9733
- "kg-var-nam": C.grd_var_nam
9736
+ key: E.id,
9737
+ class: E.id === ((A = a.currentVarGridMaster.value) == null ? void 0 : A.id) ? "selected" : "",
9738
+ "kg-var-nam": E.grd_var_nam
9734
9739
  }, {
9735
- default: () => [a.t(C.grd_var_nam).value]
9740
+ default: () => [a.t(E.grd_var_nam).value]
9736
9741
  });
9737
9742
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
9738
9743
  key: "save-grid-view",
@@ -9742,8 +9747,8 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
9742
9747
  }), createVNode(Menu.Item, {
9743
9748
  key: "save-grid-view-as",
9744
9749
  onClick: m
9745
- }, _isSlot$5(E = n.t("kg.KgTable.saveVarGridMasterAs")) ? E : {
9746
- default: () => [E]
9750
+ }, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMasterAs")) ? C : {
9751
+ default: () => [C]
9747
9752
  })]);
9748
9753
  },
9749
9754
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
@@ -9948,22 +9953,22 @@ function _useColumns() {
9948
9953
  if (m.fix_right_flg === 1)
9949
9954
  return "right";
9950
9955
  }
9951
- function E() {
9956
+ function C() {
9952
9957
  return m.ord_flg === 1;
9953
9958
  }
9954
9959
  function y() {
9955
9960
  return ["left", "center", "right"].includes(m.align || "") ? m.align : "left";
9956
9961
  }
9957
- const C = p();
9962
+ const E = p();
9958
9963
  return {
9959
9964
  dataIndex: m.var_nam,
9960
9965
  title: b(),
9961
- width: C,
9962
- resizable: typeof C == "number",
9966
+ width: E,
9967
+ resizable: typeof E == "number",
9963
9968
  minWidth: KG_TABLE_TD_MIN_WIDTH,
9964
9969
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
9965
9970
  fixed: v(),
9966
- sorter: E(),
9971
+ sorter: C(),
9967
9972
  align: y(),
9968
9973
  defaultSortOrder: _(),
9969
9974
  customHeaderCell: () => ({
@@ -10017,195 +10022,189 @@ 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 D = (x = s.varGridConfig.value) == null ? void 0 : x.prf_frm_id;
10030
- return D === void 0 ? null : useKgSearch(D || s.formID);
10031
- }), b = computed(() => s.store.getVarLookup(n, a)), _ = computed(() => {
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;
10041
+ }), _ = computed(() => {
10032
10042
  var D;
10033
- return s.store.getVarButtonSearch(((D = p.value) == null ? void 0 : D.formID) || s.formID);
10043
+ return ((D = a.varGridConfig.value) == null ? void 0 : D.aut_load_flg) === 1;
10034
10044
  }), v = computed(() => {
10035
10045
  var D;
10036
- return ((D = s.varGridConfig.value) == null ? void 0 : D.mult_flg) === 1;
10037
- }), E = computed(() => {
10046
+ return ((D = a.varGridConfig.value) == null ? void 0 : D.show_bottom_left_flg) !== 0;
10047
+ }), C = computed(() => {
10038
10048
  var D;
10039
- return ((D = s.varGridConfig.value) == null ? void 0 : D.aut_load_flg) === 1;
10049
+ return ((D = a.varGridConfig.value) == null ? void 0 : D.show_bottom_right_flg) !== 0;
10040
10050
  }), y = computed(() => {
10051
+ var D, x;
10052
+ return JSON.parse((x = (D = a.varGridConfig.value) == null ? void 0 : D.pg_size_opts) != null ? x : "[]");
10053
+ }), E = computed(() => {
10041
10054
  var D;
10042
- return ((D = s.varGridConfig.value) == null ? void 0 : D.show_bottom_left_flg) !== 0;
10043
- }), C = computed(() => {
10044
- var D;
10045
- return ((D = s.varGridConfig.value) == null ? void 0 : D.show_bottom_right_flg) !== 0;
10046
- }), I = computed(() => {
10055
+ return (D = a.varGridConfig.value) == null ? void 0 : D.pg_size_opt;
10056
+ }), A = computed(() => {
10047
10057
  var D, x;
10048
- return JSON.parse((x = (D = s.varGridConfig.value) == null ? void 0 : D.pg_size_opts) != null ? x : "[]");
10058
+ return (x = (D = p.value) == null ? void 0 : D.cmd) != null ? x : null;
10049
10059
  }), P = computed(() => {
10050
- var D;
10051
- return (D = s.varGridConfig.value) == null ? void 0 : D.pg_size_opt;
10052
- }), T = computed(() => {
10053
- var D, x, z, H;
10054
- return b.value ? (x = (D = b.value) == null ? void 0 : D.cmd) != null ? x : "" : _.value ? (H = (z = _.value) == null ? void 0 : z.cmd) != null ? H : "" : null;
10055
- }), B = computed(() => {
10056
- var x, z, H, ee, te, ue, de, fe, ce, ge;
10060
+ var x, X, q, ee, z, re, ie;
10057
10061
  let D = {
10058
- pageNo: M.pageIndex,
10059
- pageSize: M.pageSize,
10062
+ pageNo: I.pageIndex,
10063
+ pageSize: I.pageSize,
10060
10064
  ...w,
10061
- ...(H = (z = (x = p.value) == null ? void 0 : x.model) == null ? void 0 : z.value) != null ? H : {}
10065
+ ...(X = (x = o.model) == null ? void 0 : x.value) != null ? X : {}
10062
10066
  };
10063
- return _.value && (D = {
10064
- ...D,
10065
- ...KgVarUtil.parseCommandParameter((te = (ee = _.value) == null ? void 0 : ee.cmd_prm) != null ? te : "")
10066
- }), b.value && (D = {
10067
+ return p.value && (D = {
10067
10068
  ...D,
10068
- ...KgVarUtil.parseCommandParameter((de = (ue = b.value) == null ? void 0 : ue.cmd_prm) != null ? de : "")
10069
- }), (fe = s.varGridConfig.value) != null && fe.cmd_prm && (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 = {
10070
10071
  ...D,
10071
- ...KgVarUtil.parseCommandParameter((ce = s.varGridConfig.value.cmd_prm) != null ? ce : "")
10072
- }), ((ge = s.varGridConfig.value) == null ? void 0 : ge.convert_sort_field_to_under_score_flg) === 1 && D.column && (D.column = snakeCase$1(D.column)), D;
10073
- }), L = computed(() => {
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(() => {
10074
10075
  var D;
10075
- if (((D = s.varGridConfig.value) == null ? void 0 : D.show_check_column_flg) === 1)
10076
+ if (((D = a.varGridConfig.value) == null ? void 0 : D.show_check_column_flg) === 1)
10076
10077
  return {
10077
10078
  fixed: "left",
10078
10079
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
10079
- hideSelectAll: !v.value,
10080
+ hideSelectAll: !b.value,
10080
10081
  selectedRowKeys: k,
10081
10082
  preserveSelectedRowKeys: !1,
10082
- onSelect: (x) => N(x),
10083
- onChange: (x) => v.value && G(x)
10083
+ onSelect: (x) => F(x),
10084
+ onChange: (x) => b.value && O(x)
10084
10085
  };
10085
- }), V = computed(() => {
10086
+ }), B = computed(() => {
10086
10087
  let D = "kg-table";
10087
- return !y.value && !C.value && (D += " kg-table--no-bottom"), D;
10088
- }), O = ref([]), k = ref([]), M = reactive({
10088
+ return !v.value && !C.value && (D += " kg-table--no-bottom"), D;
10089
+ }), N = ref([]), k = ref([]), I = reactive({
10089
10090
  pageIndex: 1,
10090
10091
  pageSize: 10,
10091
10092
  total: 0
10092
10093
  }), w = reactive({
10093
10094
  column: void 0,
10094
10095
  order: void 0
10095
- }), $ = watch(p, (D) => {
10096
- D && (setTimeout(() => $()), D.onSearch((x) => {
10097
- R(x);
10098
- }), D.onReset(() => {
10099
- R(!0);
10100
- }));
10101
- }), A = watch(P, (D) => {
10102
- D && (setTimeout(() => A()), M.pageSize = D);
10096
+ }), L = watch(E, (D) => {
10097
+ D && (setTimeout(() => L()), I.pageSize = D), l.value = !0;
10103
10098
  });
10104
- watch(I, (D) => {
10105
- D.length > 0 && !D.includes(M.pageSize) && (M.pageSize = P.value);
10106
- }), watch([T, E, () => {
10107
- var D;
10108
- return (D = p == null ? void 0 : p.value) == null ? void 0 : D.isReady;
10109
- }], ([D, x, z]) => {
10110
- D && x && z && !i.store.getIsRetrieved(s.formID) && R(!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);
10111
10103
  }, {
10112
10104
  immediate: !0
10113
10105
  }), onUnmounted(() => {
10114
- i.store.dispose(s.formID);
10106
+ i.store.dispose(a.formID);
10115
10107
  });
10116
- function F(D, x) {
10117
- if (!!L.value) {
10108
+ function $(D, x) {
10109
+ if (!!T.value) {
10118
10110
  if (!x) {
10119
- k.value = [];
10111
+ k.value = [], i.store.setSelectedRows(a.formID, []);
10120
10112
  return;
10121
10113
  }
10122
10114
  switch (D == null ? void 0 : D.detail) {
10123
10115
  case 1:
10124
- k.value = [x.id], i.store.setSelectedRows(s.formID, k.value.map((z) => {
10125
- var H;
10126
- return (H = O.value) == null ? void 0 : H.find((ee) => ee.id === z);
10127
- }).filter((z) => !!z));
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));
10128
10120
  break;
10129
10121
  case 2:
10130
- i.store.emit(s.formID, "rowDoubleClick", x);
10122
+ i.store.emit(a.formID, "rowDoubleClick", x);
10131
10123
  break;
10132
10124
  }
10133
10125
  }
10134
10126
  }
10135
- async function R(D = !1) {
10136
- var x, z;
10137
- if (!T.value) {
10138
- Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10139
- button: _.value
10140
- });
10141
- return;
10142
- }
10143
- D && (M.pageIndex = 1), i.store.setIsRetrieving(s.formID, !0);
10144
- try {
10145
- const H = await httpClient().request({
10146
- method: "GET",
10147
- url: T.value,
10148
- params: B.value
10149
- });
10150
- H ? isArrayLike(H) ? (O.value = H, M.total = H.length) : "total" in H && "records" in H && (O.value = (x = H.records) != null ? x : [], M.total = (z = H.total) != null ? z : 0) : (O.value = [], M.total = 0), i.store.emit(s.formID, "retrieve", H), F(), await nextTick(), i.store.setIsRetrieved(s.formID, !0);
10151
- } catch (H) {
10152
- throw H;
10153
- } finally {
10154
- 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
+ }
10155
10154
  }
10156
10155
  }
10157
- function G(D) {
10158
- k.value = D, i.store.setSelectedRows(s.formID, k.value.map((x) => {
10159
- var z;
10160
- return (z = O.value) == null ? void 0 : z.find((H) => H.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);
10161
10160
  }).filter((x) => !!x));
10162
10161
  }
10163
- function N(D) {
10164
- var x, z;
10165
- switch (v.value) {
10162
+ function F(D) {
10163
+ var x, X;
10164
+ switch (b.value) {
10166
10165
  case !0:
10167
10166
  {
10168
- const H = D.id;
10169
- k.value.includes(H) ? k.value = without$1(k.value, H) : k.value = [...(x = k.value) != null ? x : [], H];
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];
10170
10169
  }
10171
10170
  break;
10172
10171
  case !1:
10173
10172
  {
10174
- const H = D.id;
10175
- (z = k.value) != null && z.includes(H) ? k.value = [] : k.value = [H];
10173
+ const q = D.id;
10174
+ (X = k.value) != null && X.includes(q) ? k.value = [] : k.value = [q];
10176
10175
  }
10177
10176
  break;
10178
10177
  }
10179
- i.store.setSelectedRows(s.formID, k.value.map((H) => {
10178
+ i.store.setSelectedRows(a.formID, k.value.map((q) => {
10180
10179
  var ee;
10181
- return (ee = O.value) == null ? void 0 : ee.find((te) => te.id === H);
10182
- }).filter((H) => !!H));
10180
+ return (ee = N.value) == null ? void 0 : ee.find((z) => z.id === q);
10181
+ }).filter((q) => !!q));
10183
10182
  }
10184
- function U(D, x) {
10185
- x.width = D, s.store.setVarGridDetailWidth(s.formID, x.dataIndex, D);
10183
+ function R(D, x) {
10184
+ x.width = D, a.store.setVarGridDetailWidth(a.formID, x.dataIndex, D);
10186
10185
  }
10187
- async function W(D, x, z, H) {
10186
+ async function G(D, x, X, q) {
10188
10187
  var ee;
10189
- switch (H.action) {
10188
+ switch (q.action) {
10190
10189
  case "sort":
10191
10190
  {
10192
10191
  await nextTick();
10193
- let te = z;
10194
- te.order ? (w.column = (ee = te.field) != null ? ee : void 0, w.order = te.order === "ascend" ? "asc" : te.order === "descend" ? "desc" : void 0) : (w.column = void 0, w.order = void 0), R(!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);
10195
10194
  }
10196
10195
  break;
10197
10196
  }
10198
10197
  }
10199
- function X(D, x) {
10200
- x !== M.pageSize ? (M.pageIndex = 1, M.pageSize = x) : M.pageIndex = D, R();
10198
+ function V(D, x) {
10199
+ x !== I.pageSize ? (I.pageIndex = 1, I.pageSize = x) : I.pageIndex = D, M();
10201
10200
  }
10202
- function Q(D) {
10203
- k.value = [D.id], i.store.setSelectedRows(s.formID, k.value.map((x) => {
10204
- var z;
10205
- return (z = O.value) == null ? void 0 : z.find((H) => H.id === x);
10206
- }).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);
10207
10206
  }
10208
- function re({
10207
+ function H({
10209
10208
  title: D,
10210
10209
  column: x
10211
10210
  }) {
@@ -10216,42 +10215,42 @@ const KgTable$1 = "", KgTable = defineComponent({
10216
10215
  return createVNode("pre", null, [D]);
10217
10216
  }
10218
10217
  }
10219
- function J({
10218
+ function Q({
10220
10219
  column: D,
10221
10220
  index: x,
10222
- record: z,
10223
- value: H,
10221
+ record: X,
10222
+ value: q,
10224
10223
  text: ee
10225
10224
  }) {
10226
- let te = "";
10227
- D.customRender ? te = D.customRender({
10225
+ let z = "";
10226
+ D.customRender ? z = D.customRender({
10228
10227
  index: x,
10229
- record: z,
10228
+ record: X,
10230
10229
  column: D,
10231
10230
  text: ee,
10232
- value: H,
10231
+ value: q,
10233
10232
  renderIndex: x
10234
- }) : te = H;
10235
- const ue = createVNode(KgTableCell, {
10236
- kgRow: z,
10237
- kgValue: te,
10233
+ }) : z = q;
10234
+ const re = createVNode(KgTableCell, {
10235
+ kgRow: X,
10236
+ kgValue: z,
10238
10237
  kgVarName: D.dataIndex,
10239
- onKgUpdateLinkClick: () => Q(z)
10238
+ onKgUpdateLinkClick: () => U(X)
10240
10239
  }, null);
10241
10240
  return t.bodyCell ? t.bodyCell({
10242
- value: H,
10243
- record: z,
10241
+ value: q,
10242
+ record: X,
10244
10243
  index: x,
10245
10244
  column: D,
10246
- defaultRender: ue
10247
- }) : ue;
10245
+ defaultRender: re
10246
+ }) : re;
10248
10247
  }
10249
- function le() {
10250
- return !E.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");
10251
10250
  }
10252
10251
  return () => createVNode("div", {
10253
- class: V.value,
10254
- "kg-frm-id": s.formID,
10252
+ class: B.value,
10253
+ "kg-frm-id": a.formID,
10255
10254
  ref: m
10256
10255
  }, [createVNode(Table, {
10257
10256
  class: "kg-flex-table",
@@ -10263,26 +10262,26 @@ const KgTable$1 = "", KgTable = defineComponent({
10263
10262
  pagination: !1,
10264
10263
  showSorterTooltip: !1,
10265
10264
  columns: u.value,
10266
- dataSource: O.value,
10265
+ dataSource: N.value,
10267
10266
  loading: d.value,
10268
10267
  rowKey: "id",
10269
- rowSelection: L.value,
10268
+ rowSelection: T.value,
10270
10269
  customRow: (D) => ({
10271
- onClick: (x) => F(x, D)
10270
+ onClick: (x) => $(x, D)
10272
10271
  }),
10273
- onResizeColumn: U,
10274
- onChange: W
10272
+ onResizeColumn: R,
10273
+ onChange: G
10275
10274
  }, {
10276
- headerCell: re,
10277
- bodyCell: J,
10278
- emptyText: le
10279
- }), (y.value || C.value) && createVNode("div", {
10275
+ headerCell: H,
10276
+ bodyCell: Q,
10277
+ emptyText: J
10278
+ }), (v.value || C.value) && createVNode("div", {
10280
10279
  class: "kg-table-bottom"
10281
10280
  }, [createVNode("div", {
10282
10281
  class: "left"
10283
- }, [y.value && createVNode(KgTableInfo, {
10282
+ }, [v.value && createVNode(KgTableInfo, {
10284
10283
  kgShowClearCheck: k.value.length > 0,
10285
- kgShowClearTable: M.total > 0,
10284
+ kgShowClearTable: I.total > 0,
10286
10285
  kgShowLocate: k.value.length === 1,
10287
10286
  kgTotal: k.value.length,
10288
10287
  kgDisabled: d.value
@@ -10290,23 +10289,23 @@ const KgTable$1 = "", KgTable = defineComponent({
10290
10289
  class: "right"
10291
10290
  }, [C.value && createVNode(Pagination, {
10292
10291
  size: "default",
10293
- current: M.pageIndex,
10294
- pageSize: M.pageSize,
10295
- pageSizeOptions: I.value.map((D) => String(D)),
10296
- total: M.total,
10292
+ current: I.pageIndex,
10293
+ pageSize: I.pageSize,
10294
+ pageSizeOptions: y.value.map((D) => String(D)),
10295
+ total: I.total,
10297
10296
  showSizeChanger: !0,
10298
10297
  showQuickJumper: !1,
10299
10298
  hideOnSinglePage: !1,
10300
- disabled: d.value || M.total === 0,
10299
+ disabled: d.value || I.total === 0,
10301
10300
  locale: {
10302
10301
  page: ""
10303
10302
  },
10304
- showTotal: (D, x) => o.t("kg.KgTable.totalText", {
10303
+ showTotal: (D, x) => n.t("kg.KgTable.totalText", {
10305
10304
  from: x[0],
10306
10305
  to: x[1],
10307
10306
  total: D
10308
10307
  }),
10309
- onChange: (D, x) => X(D, x)
10308
+ onChange: (D, x) => V(D, x)
10310
10309
  }, null)])])]);
10311
10310
  }
10312
10311
  }), getProps$f = () => ({
@@ -10418,7 +10417,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10418
10417
  var m, p;
10419
10418
  return (p = (m = a.value) == null ? void 0 : m.cmd_method) != null ? p : "GET";
10420
10419
  }), i = computed(() => {
10421
- var p, b, _, v, E, y;
10420
+ var p, b, _, v, C, y;
10422
10421
  let m = {
10423
10422
  ...(p = n.model.value) != null ? p : {}
10424
10423
  };
@@ -10427,7 +10426,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10427
10426
  ...KgVarUtil.parseCommandParameter((_ = (b = a.value) == null ? void 0 : b.cmd_prm) != null ? _ : "")
10428
10427
  }), (v = r.varGridConfig.value) != null && v.cmd_prm && (m = {
10429
10428
  ...m,
10430
- ...KgVarUtil.parseCommandParameter((E = r.varGridConfig.value.cmd_prm) != null ? E : "")
10429
+ ...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
10431
10430
  }), ((y = r.varGridConfig.value) == null ? void 0 : y.convert_sort_field_to_under_score_flg) === 1 && m.column && (m.column = snakeCase$1(m.column)), m;
10432
10431
  }), l = ref(!1);
10433
10432
  async function u() {
@@ -10633,15 +10632,15 @@ const KgTable$1 = "", KgTable = defineComponent({
10633
10632
  }
10634
10633
  let l = null;
10635
10634
  const u = async () => {
10636
- var _, v, E, y, C, I;
10635
+ var _, v, C, y, E, A;
10637
10636
  l == null || l.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
10638
10637
  const p = ((_ = r.varGridConfig.value) == null ? void 0 : _.mult_flg) === 1, b = n.selectedRows.value;
10639
10638
  try {
10640
10639
  await httpClient().request({
10641
- method: (E = (v = e.kgButton) == null ? void 0 : v.cmd_method) != null ? E : "POST",
10640
+ method: (C = (v = e.kgButton) == null ? void 0 : v.cmd_method) != null ? C : "POST",
10642
10641
  url: i,
10643
- params: KgVarUtil.parseCommandParameter((C = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? C : ""),
10644
- data: p ? b != null ? b : [] : (I = b == null ? void 0 : b[0]) != null ? I : {}
10642
+ params: KgVarUtil.parseCommandParameter((E = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? E : ""),
10643
+ data: p ? b != null ? b : [] : (A = b == null ? void 0 : b[0]) != null ? A : {}
10645
10644
  });
10646
10645
  } catch (P) {
10647
10646
  console.error(P);
@@ -10883,13 +10882,15 @@ const KgButtonItem = defineComponent({
10883
10882
  }
10884
10883
  return u;
10885
10884
  }), i = computed(() => {
10886
- var c, d;
10885
+ var c, d, m, p;
10887
10886
  return {
10888
10887
  ...e,
10889
10888
  class: s.value,
10890
10889
  kgDisabled: o.value,
10891
10890
  "kg-var-btn-id": (c = a.value) == null ? void 0 : c.id,
10892
- "kg-var-nam": (d = a.value) == null ? void 0 : d.var_nam
10891
+ "kg-frm-id": (d = a.value) == null ? void 0 : d.frm_id,
10892
+ "kg-var-nam": (m = a.value) == null ? void 0 : m.var_nam,
10893
+ "kg-cmd": (p = a.value) == null ? void 0 : p.cmd
10893
10894
  };
10894
10895
  });
10895
10896
  function l() {
@@ -11055,8 +11056,11 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
11055
11056
  },
11056
11057
  getModel(e) {
11057
11058
  return (t) => {
11058
- var r;
11059
- 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;
11060
11064
  };
11061
11065
  },
11062
11066
  getSearchFn(e) {
@@ -11126,28 +11130,30 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
11126
11130
  }
11127
11131
  },
11128
11132
  emit(e, t, r) {
11129
- switch (t) {
11130
- case "search":
11131
- {
11132
- const n = this.onSearchListenersMap.get(e);
11133
- n && n.forEach((a) => a(r == null ? void 0 : r.resetPageIndex));
11134
- }
11135
- break;
11136
- case "reset":
11137
- {
11138
- const n = this.onResetListenersMap.get(e);
11139
- n && n.forEach((a) => a());
11140
- }
11141
- break;
11142
- case "ready":
11143
- {
11144
- const n = [], a = this.onReadyListenersMap.get(e);
11145
- a && a.forEach((o) => {
11146
- o.once ? (n.push(o), o.invoked || o()) : o();
11147
- }), n.forEach((o) => this.removeEventListener(e, "ready", o));
11148
- }
11149
- break;
11150
- }
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
+ }
11151
11157
  },
11152
11158
  setIsReady(e, t) {
11153
11159
  !e || this.isReadyMap.set(e, !!t);
@@ -11410,8 +11416,8 @@ const leftVarProfileDetailColumns = (e) => {
11410
11416
  s.onOpen(m), s.onBeforeOk(async ({
11411
11417
  model: _
11412
11418
  }) => {
11413
- var v, E;
11414
- return _.value.frm_id = i.formID, _.value.varProfileDetails = (E = (v = l.value) == null ? void 0 : v.filter((y) => u.value.includes(y.id))) != null ? E : [], !1;
11419
+ var v, C;
11420
+ return _.value.frm_id = i.formID, _.value.varProfileDetails = (C = (v = l.value) == null ? void 0 : v.filter((y) => u.value.includes(y.id))) != null ? C : [], !1;
11415
11421
  }), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
11416
11422
  row: _
11417
11423
  }) => (_ == null ? void 0 : _.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((v) => {
@@ -11434,10 +11440,10 @@ const leftVarProfileDetailColumns = (e) => {
11434
11440
  varProfileDetails: ({
11435
11441
  varName: _,
11436
11442
  props: v,
11437
- model: E,
11443
+ model: C,
11438
11444
  varConfig: y,
11439
- varProfileDetail: C,
11440
- varSubmitField: I
11445
+ varProfileDetail: E,
11446
+ varSubmitField: A
11441
11447
  }) => createVNode(Transfer, {
11442
11448
  dataSource: l.value,
11443
11449
  targetKeys: u.value,
@@ -11455,9 +11461,9 @@ const leftVarProfileDetailColumns = (e) => {
11455
11461
  direction: P,
11456
11462
  filteredItems: T,
11457
11463
  selectedKeys: B,
11458
- disabled: L,
11459
- onItemSelectAll: V,
11460
- onItemSelect: O
11464
+ disabled: N,
11465
+ onItemSelectAll: k,
11466
+ onItemSelect: I
11461
11467
  }) => createVNode(Table, {
11462
11468
  pagination: !1,
11463
11469
  class: "kg-flex-table",
@@ -11469,14 +11475,14 @@ const leftVarProfileDetailColumns = (e) => {
11469
11475
  columns: P === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
11470
11476
  rowKey: "id",
11471
11477
  dataSource: T,
11472
- customRow: (k) => ({
11473
- onClick: (M) => b(M, k, P, B)
11478
+ customRow: (w) => ({
11479
+ onClick: (L) => b(L, w, P, B)
11474
11480
  }),
11475
11481
  rowSelection: d({
11476
- disabled: L,
11482
+ disabled: N,
11477
11483
  selectedKeys: B,
11478
- onItemSelectAll: V,
11479
- onItemSelect: O
11484
+ onItemSelectAll: k,
11485
+ onItemSelect: I
11480
11486
  })
11481
11487
  }, null)
11482
11488
  })
@@ -11489,22 +11495,22 @@ const leftVarProfileDetailColumns = (e) => {
11489
11495
  const d = ({
11490
11496
  disabled: _,
11491
11497
  selectedKeys: v,
11492
- onItemSelectAll: E,
11498
+ onItemSelectAll: C,
11493
11499
  onItemSelect: y
11494
11500
  }) => ({
11495
- getCheckboxProps: (C) => ({
11496
- disabled: _ || C.disabled
11501
+ getCheckboxProps: (E) => ({
11502
+ disabled: _ || E.disabled
11497
11503
  }),
11498
- onSelectAll(C, I) {
11499
- const P = I.filter((T) => !T.disabled).map(({
11504
+ onSelectAll(E, A) {
11505
+ const P = A.filter((T) => !T.disabled).map(({
11500
11506
  key: T
11501
11507
  }) => T);
11502
- E(P, C);
11508
+ C(P, E);
11503
11509
  },
11504
11510
  onSelect({
11505
- key: C
11506
- }, I) {
11507
- y(C, I);
11511
+ key: E
11512
+ }, A) {
11513
+ y(E, A);
11508
11514
  },
11509
11515
  selectedRowKeys: v,
11510
11516
  columnWidth: 32
@@ -11512,17 +11518,17 @@ const leftVarProfileDetailColumns = (e) => {
11512
11518
  async function m({
11513
11519
  isCreating: _,
11514
11520
  isUpdating: v,
11515
- isCopying: E,
11521
+ isCopying: C,
11516
11522
  row: y
11517
11523
  }) {
11518
- var I, P;
11519
- const C = i.store.getSystemVarProfileDetails(i.formID);
11520
- switch (l.value = C ? cloneDeep(unref(toRaw(C))) : [], !0) {
11524
+ var A, P;
11525
+ const E = i.store.getSystemVarProfileDetails(i.formID);
11526
+ switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
11521
11527
  case _:
11522
11528
  u.value = [];
11523
11529
  break;
11524
11530
  case v:
11525
- case E:
11531
+ case C:
11526
11532
  if (y != null && y.id)
11527
11533
  try {
11528
11534
  s.store.setIsLoading(n.formID, !0);
@@ -11531,17 +11537,17 @@ const leftVarProfileDetailColumns = (e) => {
11531
11537
  id: y.id
11532
11538
  }
11533
11539
  });
11534
- l.value = l.value.map((L) => {
11535
- var O;
11536
- const V = (O = T == null ? void 0 : T.varProfileDetails) == null ? void 0 : O.find((k) => k.var_nam === L.var_nam);
11537
- return V ? {
11538
- ...L,
11539
- ...V,
11540
- id: L.id
11541
- } : L;
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;
11542
11548
  });
11543
- const B = (P = (I = T == null ? void 0 : T.varProfileDetails) == null ? void 0 : I.map((L) => L.var_nam)) != null ? P : [];
11544
- u.value = l.value.filter((L) => B.includes(L.var_nam)).map((L) => L.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);
11545
11551
  } catch (T) {
11546
11552
  throw T;
11547
11553
  } finally {
@@ -11555,22 +11561,22 @@ const leftVarProfileDetailColumns = (e) => {
11555
11561
  }
11556
11562
  async function p() {
11557
11563
  const _ = watch(a.isReady, async (v) => {
11558
- var E, y;
11564
+ var C, y;
11559
11565
  v && a.model.value && (setTimeout(() => _(), 0), a.store.patchModel(n.formID, {
11560
11566
  frm_id: e.hostFormID
11561
- }), (y = (E = a.search).value) == null || y.call(E));
11567
+ }), (y = (C = a.search).value) == null || y.call(C));
11562
11568
  }, {
11563
11569
  immediate: !0
11564
11570
  });
11565
11571
  }
11566
- function b(_, v, E, y) {
11572
+ function b(_, v, C, y) {
11567
11573
  if (!DomUtil.isNotClickable(_.target, ["ant-input"]))
11568
11574
  switch (y.length = 0, _.detail) {
11569
11575
  case 1:
11570
11576
  y[0] = v.id;
11571
11577
  break;
11572
11578
  case 2:
11573
- switch (E) {
11579
+ switch (C) {
11574
11580
  case "left":
11575
11581
  u.value.push(v.id);
11576
11582
  break;
@@ -11681,24 +11687,24 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11681
11687
  const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
11682
11688
  _useLayoutHeaderResizeObserver();
11683
11689
  const o = computed(() => r.store.getFormLevel(r.formID)), s = computed(() => r.store.getVarProfileConfig(r.formID)), i = computed(() => {
11684
- var N;
11685
- 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;
11686
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(() => {
11687
- var N, U;
11688
- return !!(a.isRetrieving.value || ((N = C.value) == null ? void 0 : N.permission_type) === 2 && !t.p((U = C.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));
11689
11695
  }), m = computed(() => !!a.isRetrieving.value), p = computed(() => !!a.isRetrieving.value), b = ref(null), _ = ref({
11690
11696
  kgHeight: c.value
11691
11697
  }), v = ref({
11692
11698
  visible: !1
11693
11699
  });
11694
- let E;
11695
- const y = computed(() => _.value.kgHeight === c.value), C = computed(() => r.store.getVarButtonSearch(r.formID)), I = computed(() => {
11696
- var N, U, W;
11697
- if (r.t((N = C.value) == null ? void 0 : N.var_nam).value !== ((U = C.value) == null ? void 0 : U.var_nam))
11698
- return r.t((W = C.value) == null ? void 0 : W.var_nam).value;
11700
+ let C;
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;
11699
11705
  }), P = computed(() => {
11700
- var N;
11701
- switch ((N = C.value) == null ? void 0 : N.primary_flg) {
11706
+ var V;
11707
+ switch ((V = E.value) == null ? void 0 : V.primary_flg) {
11702
11708
  case 1:
11703
11709
  return !0;
11704
11710
  case 0:
@@ -11707,19 +11713,19 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11707
11713
  return !0;
11708
11714
  }
11709
11715
  }), T = computed(() => {
11710
- var N;
11711
- return ((N = s.value) == null ? void 0 : N.vis_flg) === 1;
11712
- }), B = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)), L = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), V = computed(() => {
11713
- let N = "kg-search";
11714
- return T.value && (N += " kg-search--visible"), i.value && (N += " kg-search--teleport"), N;
11715
- });
11716
- watch(r.currentVarProfileDetails, (N) => {
11717
- 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) {
11718
11724
  const U = {};
11719
- N.forEach((W) => {
11720
- U[W.var_nam] = "";
11721
- }), _.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(U)), T.value ? (E == null || E(), E = watch(b, (W) => {
11722
- W && (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));
11723
11729
  }, {
11724
11730
  immediate: !0
11725
11731
  })) : (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
@@ -11729,23 +11735,23 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11729
11735
  }), onUnmounted(() => {
11730
11736
  n.store.dispose(r.formID);
11731
11737
  });
11732
- function O(N = !1) {
11738
+ function I(V = !1) {
11733
11739
  T.value ? b.value && b.value.validate().then(() => {
11734
11740
  n.store.emit(r.formID, "search", {
11735
- resetPageIndex: N
11741
+ resetPageIndex: V
11736
11742
  });
11737
11743
  }).catch((U) => {
11738
11744
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
11739
11745
  e: U
11740
11746
  });
11741
11747
  }) : n.store.emit(r.formID, "search", {
11742
- resetPageIndex: N
11748
+ resetPageIndex: V
11743
11749
  });
11744
11750
  }
11745
- n.store.setSearchFn(r.formID, O);
11746
- function k() {
11747
- var N;
11748
- (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(() => {
11749
11755
  n.store.emit(r.formID, "reset");
11750
11756
  }).catch((U) => {
11751
11757
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
@@ -11753,31 +11759,31 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11753
11759
  });
11754
11760
  }) : n.store.emit(r.formID, "reset");
11755
11761
  }
11756
- n.store.setResetFn(r.formID, k);
11757
- function M() {
11758
- return O(!0), Promise.resolve(!0);
11762
+ n.store.setResetFn(r.formID, w);
11763
+ function L() {
11764
+ return I(!0), Promise.resolve(!0);
11759
11765
  }
11760
- function w() {
11766
+ function $() {
11761
11767
  return createVNode("div", {
11762
11768
  class: "title",
11763
11769
  onClick: G
11764
11770
  }, [y.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [t.t("kg.KgSearch.title")])]);
11765
11771
  }
11766
- function $() {
11767
- var N, U, W, X;
11768
- return ((W = (U = (N = r.varProfileMasters) == null ? void 0 : N.value) == null ? void 0 : U.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
11769
- value: (X = r.currentVarProfileMasterID.value) != null ? X : void 0,
11770
- "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),
11771
11777
  disabled: m.value,
11772
11778
  onChange: R,
11773
11779
  class: "kg-search-profile-master-select"
11774
11780
  }, {
11775
11781
  default: () => {
11776
- var Q, re;
11777
- return (re = (Q = r.varProfileMasters) == null ? void 0 : Q.value) == null ? void 0 : re.map((J) => createVNode(Select.Option, {
11778
- value: J.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
11779
11785
  }, {
11780
- default: () => [r.t(J == null ? void 0 : J.prf_var_nam).value]
11786
+ default: () => [r.t(x == null ? void 0 : x.prf_var_nam).value]
11781
11787
  }));
11782
11788
  },
11783
11789
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
@@ -11791,51 +11797,48 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11791
11797
  default: () => [createVNode(SettingOutlined$1, null, null)]
11792
11798
  }), createVNode(KgSearchConfigModal, {
11793
11799
  visible: v.value.visible,
11794
- "onUpdate:visible": (Q) => v.value.visible = Q,
11800
+ "onUpdate:visible": (J) => v.value.visible = J,
11795
11801
  hostFormID: r.formID
11796
11802
  }, null)]);
11797
11803
  }
11798
- function A() {
11799
- var N, U, W, X, Q, re, J;
11800
- return createVNode(Fragment, null, [$(), !(((N = C.value) == null ? void 0 : N.permission_type) !== 2 && !t.p((U = C.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, {
11801
11807
  type: "primary",
11802
11808
  ghost: !d.value,
11803
11809
  disabled: d.value,
11804
- onClick: k,
11810
+ onClick: w,
11805
11811
  class: "kg-search-btn-reset"
11806
11812
  }, {
11807
11813
  default: () => [createVNode(ReloadOutlined$1, null, null), t.t("kg.reset")]
11808
11814
  }), createVNode(KgButton.Item, {
11809
11815
  kgType: KG_BUTTON_TYPE.SEARCH,
11810
- kgVarName: (W = C.value) == null ? void 0 : W.var_nam,
11811
- kgIcon: (X = C.value) == null ? void 0 : X.icon,
11812
- kgText: I.value,
11813
- kgColor: (Q = C.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,
11814
11820
  kgPrimary: P.value,
11815
11821
  kgLoading: p.value,
11816
- onKgClick: M,
11817
- class: "kg-search-btn-search",
11818
- "kg-var-btn-id": (re = C.value) == null ? void 0 : re.id,
11819
- "kg-var-nam": (J = C.value) == null ? void 0 : J.var_nam
11822
+ onKgClick: L
11820
11823
  }, null)]);
11821
11824
  }
11822
11825
  function F() {
11823
11826
  return createVNode(Spin, {
11824
- spinning: L.value
11827
+ spinning: N.value
11825
11828
  }, {
11826
11829
  default: () => {
11827
- var N;
11830
+ var V;
11828
11831
  return [createVNode(KgForm, {
11829
11832
  ref: b,
11830
- model: (N = n.model.value) != null ? N : {}
11833
+ model: (V = n.model.value) != null ? V : {}
11831
11834
  }, {
11832
11835
  default: () => [createVNode(Row, null, {
11833
11836
  default: () => {
11834
11837
  var U;
11835
- return [(U = r.currentVarProfileDetails.value) == null ? void 0 : U.map((W) => createVNode(KgForm.Item, {
11836
- kgVarName: W.var_nam,
11838
+ return [(U = r.currentVarProfileDetails.value) == null ? void 0 : U.map((H) => createVNode(KgForm.Item, {
11839
+ kgVarName: H.var_nam,
11837
11840
  kgContext: KG_FORM_CONTEXT.SEARCH,
11838
- onKgSubmit: () => O(!0)
11841
+ onKgSubmit: () => I(!0)
11839
11842
  }, null))];
11840
11843
  }
11841
11844
  })]
@@ -11843,17 +11846,17 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11843
11846
  }
11844
11847
  });
11845
11848
  }
11846
- function R(N) {
11847
- console.log("333:value", N);
11849
+ function R(V) {
11850
+ console.log("333:value", V);
11848
11851
  }
11849
11852
  function G() {
11850
11853
  y.value ? _.value.kgHeight = l.value : _.value.kgHeight = c.value;
11851
11854
  }
11852
11855
  return () => createVNode(KgResizable, {
11853
- class: V.value,
11856
+ class: k.value,
11854
11857
  "kg-frm-id": r.formID,
11855
11858
  kgHeight: _.value.kgHeight,
11856
- "onUpdate:kgHeight": (N) => _.value.kgHeight = N,
11859
+ "onUpdate:kgHeight": (V) => _.value.kgHeight = V,
11857
11860
  kgMinHeight: c.value,
11858
11861
  kgMaxHeight: u.value
11859
11862
  }, {
@@ -11870,9 +11873,9 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
11870
11873
  }, [createVNode(Spin, {
11871
11874
  spinning: B.value
11872
11875
  }, {
11873
- default: () => [w(), createVNode("div", {
11876
+ default: () => [$(), createVNode("div", {
11874
11877
  class: "ant-collapse-extra"
11875
- }, [A()])]
11878
+ }, [O()])]
11876
11879
  })])]
11877
11880
  }), createVNode("div", {
11878
11881
  class: "ant-collapse-content ant-collapse-content-active"
@@ -11943,27 +11946,27 @@ function useMagicKeys(e = {}) {
11943
11946
  d(_, !1);
11944
11947
  }
11945
11948
  function p(_, v) {
11946
- var E, y;
11947
- const C = (E = _.key) == null ? void 0 : E.toLowerCase(), I = (y = _.code) == null ? void 0 : y.toLowerCase(), P = [I, C].filter(Boolean);
11948
- I && (v ? s.add(_.code) : s.delete(_.code));
11949
+ var C, y;
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));
11949
11952
  for (const T of P)
11950
11953
  c.add(T), d(T, v);
11951
- C === "meta" && !v ? (u.forEach((T) => {
11954
+ E === "meta" && !v ? (u.forEach((T) => {
11952
11955
  s.delete(T), d(T, !1);
11953
11956
  }), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...s, ...P].forEach((T) => u.add(T));
11954
11957
  }
11955
11958
  r && (useEventListener(r, "keydown", (_) => (p(_, !0), o(_)), { passive: a }), useEventListener(r, "keyup", (_) => (p(_, !1), o(_)), { passive: a }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
11956
11959
  const b = new Proxy(l, {
11957
- get(_, v, E) {
11960
+ get(_, v, C) {
11958
11961
  if (typeof v != "string")
11959
- return Reflect.get(_, v, E);
11962
+ return Reflect.get(_, v, C);
11960
11963
  if (v = v.toLowerCase(), v in n && (v = n[v]), !(v in l))
11961
11964
  if (/[+_-]/.test(v)) {
11962
- const C = v.split(/[+_-]/g).map((I) => I.trim());
11963
- l[v] = computed(() => C.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])));
11964
11967
  } else
11965
11968
  l[v] = ref(!1);
11966
- const y = Reflect.get(_, v, E);
11969
+ const y = Reflect.get(_, v, C);
11967
11970
  return t ? unref(y) : y;
11968
11971
  }
11969
11972
  });
@@ -12349,23 +12352,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12349
12352
  columnWidth: 32,
12350
12353
  hideSelectAll: !0,
12351
12354
  selectedRowKeys: d,
12352
- onSelect: (M) => B(M)
12355
+ onSelect: (L) => B(L)
12353
12356
  }), p = ref({
12354
12357
  visible: !1
12355
12358
  }), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), _ = computed(() => {
12356
- var M;
12357
- return !!c.value || ((M = n.getSelectedVarCatalog) == null ? void 0 : M.cust_lvl) === KG_CUSTOM_LEVEL.L0;
12358
- }), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), E = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
12359
- watch(() => n.getSelectedVar, (M) => {
12360
- M ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
12359
+ var L;
12360
+ return !!c.value || ((L = n.getSelectedVarCatalog) == null ? void 0 : L.cust_lvl) === KG_CUSTOM_LEVEL.L0;
12361
+ }), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), C = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
12362
+ watch(() => n.getSelectedVar, (L) => {
12363
+ L ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
12361
12364
  }, {
12362
12365
  immediate: !0
12363
- }), watch(() => n.getSelectedVarCatalog, async (M) => {
12364
- var w, $;
12365
- l.value.var_text = (w = M == null ? void 0 : M.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();
12366
12369
  });
12367
- async function y(M = !1) {
12368
- var w, $, A;
12370
+ async function y(L = !1) {
12371
+ var $, M, O;
12369
12372
  a.value = !0;
12370
12373
  try {
12371
12374
  const {
@@ -12375,86 +12378,86 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12375
12378
  pageNo: 1,
12376
12379
  pageSize: 999,
12377
12380
  frm_id: e == null ? void 0 : e.value,
12378
- var_nam: (w = n.getSelectedVar) == null ? void 0 : w.var_nam,
12381
+ var_nam: ($ = n.getSelectedVar) == null ? void 0 : $.var_nam,
12379
12382
  column: "frm_id,locale_id,cust_lvl",
12380
12383
  order: "asc"
12381
12384
  }
12382
12385
  });
12383
- if (c.value = null, u.value = F != null ? F : [], M) {
12386
+ if (c.value = null, u.value = F != null ? F : [], L) {
12384
12387
  const R = u.value.find((G) => {
12385
- var N;
12386
- return G.id === ((N = n.getSelectedVarCatalog) == null ? void 0 : N.id);
12388
+ var V;
12389
+ return G.id === ((V = n.getSelectedVarCatalog) == null ? void 0 : V.id);
12387
12390
  });
12388
12391
  n.setSelectedVarCatalog(R != null ? R : null), d.value = R != null && R.id ? [R.id] : [];
12389
12392
  } else
12390
- n.setSelectedVarCatalog(($ = u.value[0]) != null ? $ : null), d.value = (A = u.value[0]) != null && A.id ? [u.value[0].id] : [];
12393
+ n.setSelectedVarCatalog((M = u.value[0]) != null ? M : null), d.value = (O = u.value[0]) != null && O.id ? [u.value[0].id] : [];
12391
12394
  } catch (F) {
12392
12395
  Logger.debug(F == null ? void 0 : F.message);
12393
12396
  } finally {
12394
12397
  a.value = !1;
12395
12398
  }
12396
12399
  }
12397
- async function C() {
12398
- var M, w, $;
12400
+ async function E() {
12401
+ var L, $, M;
12399
12402
  try {
12400
- o.value = !0, await ((M = i.value) == null ? void 0 : M.validate());
12401
- const A = new VarCatalog({
12402
- ...(w = n.getSelectedVarCatalog) != null ? w : {},
12403
- 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
12404
12407
  });
12405
- A.id ? A.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (A.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(A, "id"), await Add$1({
12406
- 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
12407
12410
  }, {
12408
12411
  successMessageMode: "none"
12409
12412
  }), message.success({
12410
12413
  content: t.t("kg.KgVarConfig.createSuccess")
12411
12414
  }), await y()) : (await Edit$1({
12412
- data: A
12415
+ data: O
12413
12416
  }, {
12414
12417
  successMessageMode: "none"
12415
12418
  }), message.success({
12416
12419
  content: t.t("kg.KgVarConfig.saveSuccess")
12417
12420
  }), await y(!0)) : (await Add$1({
12418
- data: A
12421
+ data: O
12419
12422
  }, {
12420
12423
  successMessageMode: "none"
12421
12424
  }), message.success({
12422
12425
  content: t.t("kg.KgVarConfig.createSuccess")
12423
12426
  }), await y()), r.retrieve(e == null ? void 0 : e.value);
12424
- } catch (A) {
12425
- KgUtil.throwIfNotFormError(A);
12427
+ } catch (O) {
12428
+ KgUtil.throwIfNotFormError(O);
12426
12429
  } finally {
12427
12430
  o.value = !1;
12428
12431
  }
12429
12432
  }
12430
- function I({
12431
- isAllForm: M,
12432
- isAllLanguage: w
12433
+ function A({
12434
+ isAllForm: L,
12435
+ isAllLanguage: $
12433
12436
  }) {
12434
- var $, A, F;
12437
+ var M, O, F;
12435
12438
  c.value = new VarCatalog({
12436
12439
  id: "",
12437
12440
  cust_lvl: KG_CUSTOM_LEVEL.L10,
12438
- grp_nam: ($ = n.getSelectedVar) == null ? void 0 : $.grp_nam,
12439
- var_nam: (A = n.getSelectedVar) == null ? void 0 : A.var_nam,
12440
- frm_id: M || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
12441
- locale_id: w ? "ALL" : (F = t.locale) == null ? void 0 : F.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,
12442
12445
  var_text: ""
12443
12446
  }), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), d.value = [""];
12444
12447
  }
12445
12448
  function P() {
12446
- var w;
12449
+ var $;
12447
12450
  u.value = without$1(u.value, c.value), c.value = null;
12448
- const M = (w = u.value[0]) != null ? w : null;
12449
- n.setSelectedVarCatalog(M), d.value = M ? [M.id] : [];
12451
+ const L = ($ = u.value[0]) != null ? $ : null;
12452
+ n.setSelectedVarCatalog(L), d.value = L ? [L.id] : [];
12450
12453
  }
12451
12454
  function T() {
12452
12455
  KgUtil.confirm({
12453
12456
  onOk: async () => {
12454
- var M;
12457
+ var L;
12455
12458
  await Delete$1({
12456
12459
  params: {
12457
- id: (M = n.getSelectedVarCatalog) == null ? void 0 : M.id
12460
+ id: (L = n.getSelectedVarCatalog) == null ? void 0 : L.id
12458
12461
  }
12459
12462
  }, {
12460
12463
  successMessageMode: "none",
@@ -12465,23 +12468,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12465
12468
  }
12466
12469
  });
12467
12470
  }
12468
- function B(M) {
12469
- var w;
12470
- ((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !== M.id && (unref(c) ? KgUtil.confirm({
12471
+ function B(L) {
12472
+ var $;
12473
+ (($ = n.getSelectedVarCatalog) == null ? void 0 : $.id) !== L.id && (unref(c) ? KgUtil.confirm({
12471
12474
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
12472
12475
  onOk: () => {
12473
- u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(M)), d.value = [M.id];
12476
+ u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(L)), d.value = [L.id];
12474
12477
  }
12475
- }) : (n.setSelectedVarCatalog(unref(M)), d.value = [M.id]));
12478
+ }) : (n.setSelectedVarCatalog(unref(L)), d.value = [L.id]));
12476
12479
  }
12477
- function L() {
12480
+ function N() {
12478
12481
  p.value.visible = !0;
12479
12482
  }
12480
- function V() {
12483
+ function k() {
12481
12484
  return createVNode("div", {
12482
12485
  class: "buttons"
12483
12486
  }, [createVNode(Button, {
12484
- onClick: L,
12487
+ onClick: N,
12485
12488
  disabled: b.value,
12486
12489
  type: "primary"
12487
12490
  }, {
@@ -12496,14 +12499,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12496
12499
  default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
12497
12500
  })]);
12498
12501
  }
12499
- function O() {
12500
- let M, w;
12502
+ function I() {
12503
+ let L, $;
12501
12504
  return createVNode("div", {
12502
12505
  class: "form"
12503
12506
  }, [createVNode(Form, {
12504
12507
  ref: i,
12505
12508
  model: l.value,
12506
- onSubmit: C
12509
+ onSubmit: E
12507
12510
  }, {
12508
12511
  default: () => [createVNode(Form.Item, {
12509
12512
  name: "var_text",
@@ -12514,7 +12517,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12514
12517
  }, {
12515
12518
  default: () => [createVNode(Textarea, {
12516
12519
  value: l.value.var_text,
12517
- "onUpdate:value": ($) => l.value.var_text = $,
12520
+ "onUpdate:value": (M) => l.value.var_text = M,
12518
12521
  disabled: !n.getSelectedVarCatalog
12519
12522
  }, null), createVNode("button", {
12520
12523
  hidden: !0
@@ -12525,25 +12528,25 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12525
12528
  }, [createVNode(Button, {
12526
12529
  disabled: v.value,
12527
12530
  onClick: P
12528
- }, _isSlot(M = t.t("common.cancelText")) ? M : {
12529
- default: () => [M]
12531
+ }, _isSlot(L = t.t("common.cancelText")) ? L : {
12532
+ default: () => [L]
12530
12533
  }), createVNode(Button, {
12531
12534
  loading: o.value,
12532
- disabled: E.value,
12533
- onClick: C,
12535
+ disabled: C.value,
12536
+ onClick: E,
12534
12537
  type: "primary"
12535
- }, _isSlot(w = t.t("common.save")) ? w : {
12536
- default: () => [w]
12538
+ }, _isSlot($ = t.t("common.save")) ? $ : {
12539
+ default: () => [$]
12537
12540
  })])]);
12538
12541
  }
12539
- function k(M) {
12540
- var $;
12541
- let w = "";
12542
- return M.id || (w += " ant-table-row-create"), M.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 "), $;
12543
12546
  }
12544
12547
  return () => createVNode("div", {
12545
12548
  class: "kg-var-config-modal-var-var-catalog"
12546
- }, [V(), createVNode(Table, {
12549
+ }, [k(), createVNode(Table, {
12547
12550
  pagination: !1,
12548
12551
  class: "kg-flex-table",
12549
12552
  size: "small",
@@ -12555,15 +12558,15 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12555
12558
  rowKey: "id",
12556
12559
  dataSource: u.value,
12557
12560
  loading: a.value,
12558
- rowClassName: k,
12561
+ rowClassName: w,
12559
12562
  rowSelection: m.value,
12560
- customRow: (M) => ({
12561
- onClick: () => B(M)
12563
+ customRow: (L) => ({
12564
+ onClick: () => B(L)
12562
12565
  })
12563
- }, null), O(), createVNode(KgVarConfigModalVarCreateModal, {
12566
+ }, null), I(), createVNode(KgVarConfigModalVarCreateModal, {
12564
12567
  visible: p.value.visible,
12565
- "onUpdate:visible": (M) => p.value.visible = M,
12566
- onKgOk: I
12568
+ "onUpdate:visible": (L) => p.value.visible = L,
12569
+ onKgOk: A
12567
12570
  }, null)]);
12568
12571
  }
12569
12572
  }), columns = () => [{
@@ -12875,16 +12878,16 @@ const KgWarehouse$1 = "", getProps = () => ({
12875
12878
  emit: t
12876
12879
  }) {
12877
12880
  const r = useKg(), n = useKgWarehouse(), a = computed(() => {
12878
- let I = "jeecg-layout-header-action__item kg-warehouse";
12879
- 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;
12880
12883
  }), o = ref(""), s = n.warehouse, i = ref(null), l = ref(!1), u = reactive([{
12881
12884
  width: 80,
12882
12885
  align: "center",
12883
12886
  customRender: ({
12884
- record: I
12887
+ record: A
12885
12888
  }) => {
12886
12889
  var T;
12887
- 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", {
12888
12891
  src: WAREHOUSE_1890ff
12889
12892
  }, null) : createVNode("img", {
12890
12893
  src: WAREHOUSE_000000
@@ -12892,27 +12895,27 @@ const KgWarehouse$1 = "", getProps = () => ({
12892
12895
  }
12893
12896
  }, {
12894
12897
  customRender: ({
12895
- record: I
12898
+ record: A
12896
12899
  }) => {
12897
- var T, B, L;
12898
- const P = I;
12900
+ var T, B, N;
12901
+ const P = A;
12899
12902
  return createVNode("div", null, [createVNode("div", null, [(T = P.whDsc) != null ? T : " ", createTextVNode(" - "), (B = P.whId) != null ? B : " "]), createVNode("div", {
12900
12903
  class: "address"
12901
- }, [(L = P.adrId) != null ? L : " "])]);
12904
+ }, [(N = P.adrId) != null ? N : " "])]);
12902
12905
  }
12903
12906
  }]), c = ref([]), d = computed(() => {
12904
12907
  var P;
12905
- const I = (P = o.value) == null ? void 0 : P.toUpperCase();
12908
+ const A = (P = o.value) == null ? void 0 : P.toUpperCase();
12906
12909
  return c.value.filter((T) => {
12907
- var B, L, V, O, k, M;
12908
- return ((L = (B = T.whDsc) == null ? void 0 : B.toUpperCase()) == null ? void 0 : L.includes(I)) || ((O = (V = T.whId) == null ? void 0 : V.toUpperCase()) == null ? void 0 : O.includes(I)) || ((M = (k = T.adrId) == null ? void 0 : k.toUpperCase()) == null ? void 0 : M.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));
12909
12912
  });
12910
12913
  }), m = computed(() => {
12911
- var I, P;
12912
- 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;
12913
12916
  });
12914
- watch(n.visible, (I) => {
12915
- !m.value || (I ? b() : _());
12917
+ watch(n.visible, (A) => {
12918
+ !m.value || (A ? b() : _());
12916
12919
  }, {
12917
12920
  immediate: !0
12918
12921
  }), onMounted(() => {
@@ -12922,14 +12925,14 @@ const KgWarehouse$1 = "", getProps = () => ({
12922
12925
  !m.value || n.store.setVisible(!0);
12923
12926
  }
12924
12927
  function b() {
12925
- i.value = n.warehouse.value, E();
12928
+ i.value = n.warehouse.value, C();
12926
12929
  }
12927
12930
  function _() {
12928
12931
  o.value = "", c.value = [], i.value = null;
12929
12932
  }
12930
12933
  function v() {
12931
- var I;
12932
- !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({
12933
12936
  content: r.t("kg.KgWarehouse.reloadMessage"),
12934
12937
  kgHideCancelButton: !0,
12935
12938
  okButtonProps: {
@@ -12941,27 +12944,27 @@ const KgWarehouse$1 = "", getProps = () => ({
12941
12944
  }
12942
12945
  })), n.store.setVisible(!1));
12943
12946
  }
12944
- async function E() {
12947
+ async function C() {
12945
12948
  l.value = !0;
12946
12949
  try {
12947
12950
  const {
12948
- records: I
12951
+ records: A
12949
12952
  } = await ListVO({
12950
12953
  params: {
12951
12954
  pageNo: 1,
12952
12955
  pageSize: 999
12953
12956
  }
12954
12957
  });
12955
- c.value = I != null ? I : [];
12956
- } catch (I) {
12957
- console.error(I);
12958
+ c.value = A != null ? A : [];
12959
+ } catch (A) {
12960
+ console.error(A);
12958
12961
  } finally {
12959
12962
  l.value = !1;
12960
12963
  }
12961
12964
  }
12962
- function y(I, P) {
12965
+ function y(A, P) {
12963
12966
  var T;
12964
- switch (I.detail) {
12967
+ switch (A.detail) {
12965
12968
  case 1:
12966
12969
  ((T = i.value) == null ? void 0 : T.id) === P.id ? i.value = null : i.value = P;
12967
12970
  break;
@@ -12970,18 +12973,18 @@ const KgWarehouse$1 = "", getProps = () => ({
12970
12973
  break;
12971
12974
  }
12972
12975
  }
12973
- function C() {
12976
+ function E() {
12974
12977
  return m.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
12975
12978
  title: r.t("kg.KgWarehouse.warehouse"),
12976
12979
  placement: "bottomRight"
12977
12980
  }, {
12978
12981
  default: () => {
12979
- var I, P;
12980
- 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")];
12981
12984
  }
12982
12985
  }), createVNode(KgModal, {
12983
12986
  visible: n.visible.value,
12984
- "onUpdate:visible": (I) => n.store.setVisible(I),
12987
+ "onUpdate:visible": (A) => n.store.setVisible(A),
12985
12988
  title: r.t("kg.KgWarehouse.title"),
12986
12989
  width: "500px",
12987
12990
  kgFullHeight: !1,
@@ -12998,7 +13001,7 @@ const KgWarehouse$1 = "", getProps = () => ({
12998
13001
  }, {
12999
13002
  default: () => [createVNode(Input, {
13000
13003
  value: o.value,
13001
- "onUpdate:value": (I) => o.value = I,
13004
+ "onUpdate:value": (A) => o.value = A,
13002
13005
  allowClear: !0,
13003
13006
  disabled: l.value,
13004
13007
  placeholder: r.t("kg.search")
@@ -13018,11 +13021,11 @@ const KgWarehouse$1 = "", getProps = () => ({
13018
13021
  dataSource: d.value,
13019
13022
  columns: u,
13020
13023
  class: "kg-flex-table",
13021
- customRow: (I) => {
13024
+ customRow: (A) => {
13022
13025
  var P;
13023
13026
  return {
13024
- class: I.id === ((P = i.value) == null ? void 0 : P.id) ? "selected" : "",
13025
- onClick: (T) => y(T, I)
13027
+ class: A.id === ((P = i.value) == null ? void 0 : P.id) ? "selected" : "",
13028
+ onClick: (T) => y(T, A)
13026
13029
  };
13027
13030
  }
13028
13031
  }, null)]
@@ -13031,7 +13034,7 @@ const KgWarehouse$1 = "", getProps = () => ({
13031
13034
  return () => createVNode("div", {
13032
13035
  class: a.value,
13033
13036
  onClick: p
13034
- }, [C()]);
13037
+ }, [E()]);
13035
13038
  }
13036
13039
  });
13037
13040
  function createKgWarehouseGuard(e, t) {