@kengic/vue 0.19.2-beta.3 → 0.19.2-beta.5

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.
@@ -2930,7 +2930,7 @@ const emptyIcon = {
2930
2930
  ...t.data
2931
2931
  }, r);
2932
2932
  }
2933
- }), version = "0.19.2-beta.3";
2933
+ }), version = "0.19.2-beta.5";
2934
2934
  var isVue2 = !1;
2935
2935
  function set(e, t, r) {
2936
2936
  return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, r), r) : (e[t] = r, r);
@@ -3161,18 +3161,18 @@ function createSetupStore(e, t, r = {}, a, n) {
3161
3161
  return function() {
3162
3162
  setActivePinia(a);
3163
3163
  const D = Array.from(arguments), K = [], P = [];
3164
- function U(R) {
3164
+ function x(R) {
3165
3165
  K.push(R);
3166
3166
  }
3167
- function L(R) {
3167
+ function N(R) {
3168
3168
  P.push(R);
3169
3169
  }
3170
3170
  triggerSubscriptions(b, {
3171
3171
  args: D,
3172
3172
  name: M,
3173
3173
  store: C,
3174
- after: U,
3175
- onError: L
3174
+ after: x,
3175
+ onError: N
3176
3176
  });
3177
3177
  let O;
3178
3178
  try {
@@ -5308,12 +5308,12 @@ class KgRouteUtil {
5308
5308
  }), t;
5309
5309
  }
5310
5310
  static transformMenus(t) {
5311
- var u, d, b, E, g, m, _, y, v, T, k, A, C, w, M, I, D, K, P, U, L, O, R, V;
5311
+ var d, b, E, g, m, _, y, v, T, k, A, C, w, M, I, D, K, P, x, N, O, R, V, F, U, L, $, q, z, J, re, ee, oe, ue;
5312
5312
  if (!t)
5313
5313
  return [];
5314
- const r = useKg(), a = (N) => {
5315
- N.forEach((x) => {
5316
- x.key && x.key !== x.value && (x.value = x.key), x.children && a(x.children);
5314
+ const r = useKg(), a = (ae) => {
5315
+ ae.forEach((ne) => {
5316
+ ne.key && ne.key !== ne.value && (ne.value = ne.key), ne.children && a(ne.children);
5317
5317
  });
5318
5318
  };
5319
5319
  a(t);
@@ -5346,10 +5346,10 @@ class KgRouteUtil {
5346
5346
  children: [],
5347
5347
  id: KG_TMP_MENU_ID__DATA_MANAGER,
5348
5348
  key: KG_TMP_MENU_ID__DATA_MANAGER,
5349
- name: (d = (u = r.option.value.appTitle) == null ? void 0 : u[KG_APP.WMS_DATA_MANAGER]) != null ? d : "\u6570\u636E\u7BA1\u7406",
5350
- slotTitle: (E = (b = r.option.value.appTitle) == null ? void 0 : b[KG_APP.WMS_DATA_MANAGER]) != null ? E : "\u6570\u636E\u7BA1\u7406",
5349
+ name: (b = (d = r.option.value.appTitle) == null ? void 0 : d[KG_APP.WMS_DATA_MANAGER]) != null ? b : "\u6570\u636E\u7BA1\u7406",
5350
+ slotTitle: (g = (E = r.option.value.appTitle) == null ? void 0 : E[KG_APP.WMS_DATA_MANAGER]) != null ? g : "\u6570\u636E\u7BA1\u7406",
5351
5351
  sortNo: 1,
5352
- title: (m = (g = r.option.value.appTitle) == null ? void 0 : g[KG_APP.WMS_DATA_MANAGER]) != null ? m : "\u6570\u636E\u7BA1\u7406",
5352
+ title: (_ = (m = r.option.value.appTitle) == null ? void 0 : m[KG_APP.WMS_DATA_MANAGER]) != null ? _ : "\u6570\u636E\u7BA1\u7406",
5353
5353
  ...n,
5354
5354
  url: KG_APP_PREFIX.WMS_DATA_MANAGER,
5355
5355
  value: KG_TMP_MENU_ID__DATA_MANAGER
@@ -5357,10 +5357,10 @@ class KgRouteUtil {
5357
5357
  children: [],
5358
5358
  id: KG_TMP_MENU_ID__BUSINESS_MANAGER,
5359
5359
  key: KG_TMP_MENU_ID__BUSINESS_MANAGER,
5360
- name: (y = (_ = r.option.value.appTitle) == null ? void 0 : _[KG_APP.WMS_BUSINESS_MANAGER]) != null ? y : "\u4ED3\u5E93\u7BA1\u7406",
5361
- slotTitle: (T = (v = r.option.value.appTitle) == null ? void 0 : v[KG_APP.WMS_BUSINESS_MANAGER]) != null ? T : "\u4ED3\u5E93\u7BA1\u7406",
5360
+ name: (v = (y = r.option.value.appTitle) == null ? void 0 : y[KG_APP.WMS_BUSINESS_MANAGER]) != null ? v : "\u4ED3\u5E93\u7BA1\u7406",
5361
+ slotTitle: (k = (T = r.option.value.appTitle) == null ? void 0 : T[KG_APP.WMS_BUSINESS_MANAGER]) != null ? k : "\u4ED3\u5E93\u7BA1\u7406",
5362
5362
  sortNo: 2,
5363
- title: (A = (k = r.option.value.appTitle) == null ? void 0 : k[KG_APP.WMS_BUSINESS_MANAGER]) != null ? A : "\u4ED3\u5E93\u7BA1\u7406",
5363
+ title: (C = (A = r.option.value.appTitle) == null ? void 0 : A[KG_APP.WMS_BUSINESS_MANAGER]) != null ? C : "\u4ED3\u5E93\u7BA1\u7406",
5364
5364
  ...n,
5365
5365
  url: KG_APP_PREFIX.WMS_BUSINESS_MANAGER,
5366
5366
  value: KG_TMP_MENU_ID__BUSINESS_MANAGER
@@ -5368,19 +5368,19 @@ class KgRouteUtil {
5368
5368
  children: [],
5369
5369
  id: KG_TMP_MENU_ID__WCS,
5370
5370
  key: KG_TMP_MENU_ID__WCS,
5371
- name: (w = (C = r.option.value.appTitle) == null ? void 0 : C[KG_APP.WCS]) != null ? w : "WCS",
5372
- slotTitle: (I = (M = r.option.value.appTitle) == null ? void 0 : M[KG_APP.WCS]) != null ? I : "WCS",
5371
+ name: (M = (w = r.option.value.appTitle) == null ? void 0 : w[KG_APP.WCS]) != null ? M : "WCS",
5372
+ slotTitle: (D = (I = r.option.value.appTitle) == null ? void 0 : I[KG_APP.WCS]) != null ? D : "WCS",
5373
5373
  sortNo: 3,
5374
- title: (K = (D = r.option.value.appTitle) == null ? void 0 : D[KG_APP.WCS]) != null ? K : "WCS",
5374
+ title: (P = (K = r.option.value.appTitle) == null ? void 0 : K[KG_APP.WCS]) != null ? P : "WCS",
5375
5375
  ...n,
5376
5376
  url: KG_APP_PREFIX.WCS,
5377
5377
  value: KG_TMP_MENU_ID__WCS
5378
5378
  }, l = {
5379
5379
  id: KG_TMP_MENU_ID__SYS,
5380
5380
  key: KG_TMP_MENU_ID__SYS,
5381
- title: (U = (P = r.option.value.appTitle) == null ? void 0 : P[KG_APP.SYS]) != null ? U : "\u7CFB\u7EDF\u914D\u7F6E",
5382
- name: (O = (L = r.option.value.appTitle) == null ? void 0 : L[KG_APP.SYS]) != null ? O : "\u7CFB\u7EDF\u914D\u7F6E",
5383
- slotTitle: (V = (R = r.option.value.appTitle) == null ? void 0 : R[KG_APP.SYS]) != null ? V : "\u7CFB\u7EDF\u914D\u7F6E",
5381
+ title: (N = (x = r.option.value.appTitle) == null ? void 0 : x[KG_APP.SYS]) != null ? N : "\u7CFB\u7EDF\u914D\u7F6E",
5382
+ name: (R = (O = r.option.value.appTitle) == null ? void 0 : O[KG_APP.SYS]) != null ? R : "\u7CFB\u7EDF\u914D\u7F6E",
5383
+ slotTitle: (F = (V = r.option.value.appTitle) == null ? void 0 : V[KG_APP.SYS]) != null ? F : "\u7CFB\u7EDF\u914D\u7F6E",
5384
5384
  sortNo: 4,
5385
5385
  children: [],
5386
5386
  ...n,
@@ -5397,25 +5397,27 @@ class KgRouteUtil {
5397
5397
  children: [],
5398
5398
  ...n
5399
5399
  };
5400
- return t.forEach((N) => {
5400
+ t.forEach((ae) => {
5401
5401
  switch (!0) {
5402
- case N.app === "PDA":
5403
- N.parentId = KG_TMP_MENU_ID__PDA, c.children.push(N);
5402
+ case ae.app === "PDA":
5403
+ ae.parentId = KG_TMP_MENU_ID__PDA, c.children.push(ae);
5404
5404
  break;
5405
- case KgRouteUtil.isPathInApp(N.url, KG_APP.WMS_DATA_MANAGER):
5406
- N.parentId = KG_TMP_MENU_ID__DATA_MANAGER, s.children.push(N);
5405
+ case KgRouteUtil.isPathInApp(ae.url, KG_APP.WMS_DATA_MANAGER):
5406
+ ae.parentId = KG_TMP_MENU_ID__DATA_MANAGER, s.children.push(ae);
5407
5407
  break;
5408
- case KgRouteUtil.isPathInApp(N.url, KG_APP.WMS_BUSINESS_MANAGER):
5409
- N.parentId = KG_TMP_MENU_ID__BUSINESS_MANAGER, i.children.push(N);
5408
+ case KgRouteUtil.isPathInApp(ae.url, KG_APP.WMS_BUSINESS_MANAGER):
5409
+ ae.parentId = KG_TMP_MENU_ID__BUSINESS_MANAGER, i.children.push(ae);
5410
5410
  break;
5411
- case KgRouteUtil.isPathInApp(N.url, KG_APP.WCS):
5412
- N.parentId = KG_TMP_MENU_ID__WCS, o.children.push(N);
5411
+ case KgRouteUtil.isPathInApp(ae.url, KG_APP.WCS):
5412
+ ae.parentId = KG_TMP_MENU_ID__WCS, o.children.push(ae);
5413
5413
  break;
5414
- case KgRouteUtil.isPathInApp(N.url, KG_APP.SYS):
5415
- N.parentId = KG_TMP_MENU_ID__SYS, l.children.push(N);
5414
+ case KgRouteUtil.isPathInApp(ae.url, KG_APP.SYS):
5415
+ ae.parentId = KG_TMP_MENU_ID__SYS, l.children.push(ae);
5416
5416
  break;
5417
5417
  }
5418
- }), [s, i, o, l, c];
5418
+ });
5419
+ let u = [];
5420
+ return ((L = (U = s.children) == null ? void 0 : U.length) != null ? L : 0 > 0) && u.push(s), ((q = ($ = i.children) == null ? void 0 : $.length) != null ? q : 0 > 0) && u.push(i), ((J = (z = o.children) == null ? void 0 : z.length) != null ? J : 0 > 0) && u.push(o), ((ee = (re = l.children) == null ? void 0 : re.length) != null ? ee : 0 > 0) && u.push(l), ((ue = (oe = c.children) == null ? void 0 : oe.length) != null ? ue : 0 > 0) && u.push(c), u;
5419
5421
  }
5420
5422
  static isPathInApp(t, r) {
5421
5423
  if (!t || !r)
@@ -5470,8 +5472,6 @@ class KgAuthUtil {
5470
5472
  var n, s, i, o;
5471
5473
  if (!t)
5472
5474
  return KgLogger.debug("KgAuthUtil | isAppAuthenticated() | \u6A21\u5757\u4E3A\u7A7A.", { app: t }), !1;
5473
- if (KgAuthUtil.isAdminUser())
5474
- return !0;
5475
5475
  const a = (o = (i = (s = (n = useKg().store).getUsePermissionStore) == null ? void 0 : s.call(n)) == null ? void 0 : i.getBackMenuList) == null ? void 0 : o.map((l) => l.path);
5476
5476
  return !!(a != null && a.some((l) => KgRouteUtil.isPathInApp(l, t)));
5477
5477
  }
@@ -5502,76 +5502,76 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5502
5502
  (function(r, a) {
5503
5503
  e.exports = a();
5504
5504
  })(commonjsGlobal, function() {
5505
- var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", b = "quarter", E = "year", g = "date", m = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, v = { 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(L) {
5506
- var O = ["th", "st", "nd", "rd"], R = L % 100;
5507
- return "[" + L + (O[(R - 20) % 10] || O[R] || O[0]) + "]";
5508
- } }, T = function(L, O, R) {
5509
- var V = String(L);
5510
- return !V || V.length >= O ? L : "" + Array(O + 1 - V.length).join(R) + L;
5511
- }, k = { s: T, z: function(L) {
5512
- var O = -L.utcOffset(), R = Math.abs(O), V = Math.floor(R / 60), N = R % 60;
5513
- return (O <= 0 ? "+" : "-") + T(V, 2, "0") + ":" + T(N, 2, "0");
5514
- }, m: function L(O, R) {
5505
+ var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", b = "quarter", E = "year", g = "date", m = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, v = { 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(N) {
5506
+ var O = ["th", "st", "nd", "rd"], R = N % 100;
5507
+ return "[" + N + (O[(R - 20) % 10] || O[R] || O[0]) + "]";
5508
+ } }, T = function(N, O, R) {
5509
+ var V = String(N);
5510
+ return !V || V.length >= O ? N : "" + Array(O + 1 - V.length).join(R) + N;
5511
+ }, k = { s: T, z: function(N) {
5512
+ var O = -N.utcOffset(), R = Math.abs(O), V = Math.floor(R / 60), F = R % 60;
5513
+ return (O <= 0 ? "+" : "-") + T(V, 2, "0") + ":" + T(F, 2, "0");
5514
+ }, m: function N(O, R) {
5515
5515
  if (O.date() < R.date())
5516
- return -L(R, O);
5517
- var V = 12 * (R.year() - O.year()) + (R.month() - O.month()), N = O.clone().add(V, d), x = R - N < 0, $ = O.clone().add(V + (x ? -1 : 1), d);
5518
- return +(-(V + (R - N) / (x ? N - $ : $ - N)) || 0);
5519
- }, a: function(L) {
5520
- return L < 0 ? Math.ceil(L) || 0 : Math.floor(L);
5521
- }, p: function(L) {
5522
- return { M: d, y: E, w: u, d: c, D: g, h: l, m: o, s: i, ms: s, Q: b }[L] || String(L || "").toLowerCase().replace(/s$/, "");
5523
- }, u: function(L) {
5524
- return L === void 0;
5516
+ return -N(R, O);
5517
+ var V = 12 * (R.year() - O.year()) + (R.month() - O.month()), F = O.clone().add(V, d), U = R - F < 0, L = O.clone().add(V + (U ? -1 : 1), d);
5518
+ return +(-(V + (R - F) / (U ? F - L : L - F)) || 0);
5519
+ }, a: function(N) {
5520
+ return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
5521
+ }, p: function(N) {
5522
+ return { M: d, y: E, w: u, d: c, D: g, h: l, m: o, s: i, ms: s, Q: b }[N] || String(N || "").toLowerCase().replace(/s$/, "");
5523
+ }, u: function(N) {
5524
+ return N === void 0;
5525
5525
  } }, A = "en", C = {};
5526
5526
  C[A] = v;
5527
- var w = "$isDayjsObject", M = function(L) {
5528
- return L instanceof P || !(!L || !L[w]);
5529
- }, I = function L(O, R, V) {
5530
- var N;
5527
+ var w = "$isDayjsObject", M = function(N) {
5528
+ return N instanceof P || !(!N || !N[w]);
5529
+ }, I = function N(O, R, V) {
5530
+ var F;
5531
5531
  if (!O)
5532
5532
  return A;
5533
5533
  if (typeof O == "string") {
5534
- var x = O.toLowerCase();
5535
- C[x] && (N = x), R && (C[x] = R, N = x);
5536
- var $ = O.split("-");
5537
- if (!N && $.length > 1)
5538
- return L($[0]);
5534
+ var U = O.toLowerCase();
5535
+ C[U] && (F = U), R && (C[U] = R, F = U);
5536
+ var L = O.split("-");
5537
+ if (!F && L.length > 1)
5538
+ return N(L[0]);
5539
5539
  } else {
5540
- var F = O.name;
5541
- C[F] = O, N = F;
5540
+ var $ = O.name;
5541
+ C[$] = O, F = $;
5542
5542
  }
5543
- return !V && N && (A = N), N || !V && A;
5544
- }, D = function(L, O) {
5545
- if (M(L))
5546
- return L.clone();
5543
+ return !V && F && (A = F), F || !V && A;
5544
+ }, D = function(N, O) {
5545
+ if (M(N))
5546
+ return N.clone();
5547
5547
  var R = typeof O == "object" ? O : {};
5548
- return R.date = L, R.args = arguments, new P(R);
5548
+ return R.date = N, R.args = arguments, new P(R);
5549
5549
  }, K = k;
5550
- K.l = I, K.i = M, K.w = function(L, O) {
5551
- return D(L, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
5550
+ K.l = I, K.i = M, K.w = function(N, O) {
5551
+ return D(N, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
5552
5552
  };
5553
5553
  var P = function() {
5554
- function L(R) {
5554
+ function N(R) {
5555
5555
  this.$L = I(R.locale, null, !0), this.parse(R), this.$x = this.$x || R.x || {}, this[w] = !0;
5556
5556
  }
5557
- var O = L.prototype;
5557
+ var O = N.prototype;
5558
5558
  return O.parse = function(R) {
5559
5559
  this.$d = function(V) {
5560
- var N = V.date, x = V.utc;
5561
- if (N === null)
5560
+ var F = V.date, U = V.utc;
5561
+ if (F === null)
5562
5562
  return new Date(NaN);
5563
- if (K.u(N))
5563
+ if (K.u(F))
5564
5564
  return new Date();
5565
- if (N instanceof Date)
5566
- return new Date(N);
5567
- if (typeof N == "string" && !/Z$/i.test(N)) {
5568
- var $ = N.match(_);
5569
- if ($) {
5570
- var F = $[2] - 1 || 0, H = ($[7] || "0").substring(0, 3);
5571
- return x ? new Date(Date.UTC($[1], F, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, H)) : new Date($[1], F, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, H);
5565
+ if (F instanceof Date)
5566
+ return new Date(F);
5567
+ if (typeof F == "string" && !/Z$/i.test(F)) {
5568
+ var L = F.match(_);
5569
+ if (L) {
5570
+ var $ = L[2] - 1 || 0, q = (L[7] || "0").substring(0, 3);
5571
+ return U ? new Date(Date.UTC(L[1], $, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, q)) : new Date(L[1], $, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, q);
5572
5572
  }
5573
5573
  }
5574
- return new Date(N);
5574
+ return new Date(F);
5575
5575
  }(R), this.init();
5576
5576
  }, O.init = function() {
5577
5577
  var R = this.$d;
@@ -5581,91 +5581,91 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5581
5581
  }, O.isValid = function() {
5582
5582
  return this.$d.toString() !== m;
5583
5583
  }, O.isSame = function(R, V) {
5584
- var N = D(R);
5585
- return this.startOf(V) <= N && N <= this.endOf(V);
5584
+ var F = D(R);
5585
+ return this.startOf(V) <= F && F <= this.endOf(V);
5586
5586
  }, O.isAfter = function(R, V) {
5587
5587
  return D(R) < this.startOf(V);
5588
5588
  }, O.isBefore = function(R, V) {
5589
5589
  return this.endOf(V) < D(R);
5590
- }, O.$g = function(R, V, N) {
5591
- return K.u(R) ? this[V] : this.set(N, R);
5590
+ }, O.$g = function(R, V, F) {
5591
+ return K.u(R) ? this[V] : this.set(F, R);
5592
5592
  }, O.unix = function() {
5593
5593
  return Math.floor(this.valueOf() / 1e3);
5594
5594
  }, O.valueOf = function() {
5595
5595
  return this.$d.getTime();
5596
5596
  }, O.startOf = function(R, V) {
5597
- var N = this, x = !!K.u(V) || V, $ = K.p(R), F = function(de, ne) {
5598
- var B = K.w(N.$u ? Date.UTC(N.$y, ne, de) : new Date(N.$y, ne, de), N);
5599
- return x ? B : B.endOf(c);
5600
- }, H = function(de, ne) {
5601
- return K.w(N.toDate()[de].apply(N.toDate("s"), (x ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), N);
5602
- }, Q = this.$W, J = this.$M, re = this.$D, te = "set" + (this.$u ? "UTC" : "");
5603
- switch ($) {
5597
+ var F = this, U = !!K.u(V) || V, L = K.p(R), $ = function(ae, ne) {
5598
+ var B = K.w(F.$u ? Date.UTC(F.$y, ne, ae) : new Date(F.$y, ne, ae), F);
5599
+ return U ? B : B.endOf(c);
5600
+ }, q = function(ae, ne) {
5601
+ return K.w(F.toDate()[ae].apply(F.toDate("s"), (U ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), F);
5602
+ }, z = this.$W, J = this.$M, re = this.$D, ee = "set" + (this.$u ? "UTC" : "");
5603
+ switch (L) {
5604
5604
  case E:
5605
- return x ? F(1, 0) : F(31, 11);
5605
+ return U ? $(1, 0) : $(31, 11);
5606
5606
  case d:
5607
- return x ? F(1, J) : F(0, J + 1);
5607
+ return U ? $(1, J) : $(0, J + 1);
5608
5608
  case u:
5609
- var ie = this.$locale().weekStart || 0, _e = (Q < ie ? Q + 7 : Q) - ie;
5610
- return F(x ? re - _e : re + (6 - _e), J);
5609
+ var oe = this.$locale().weekStart || 0, ue = (z < oe ? z + 7 : z) - oe;
5610
+ return $(U ? re - ue : re + (6 - ue), J);
5611
5611
  case c:
5612
5612
  case g:
5613
- return H(te + "Hours", 0);
5613
+ return q(ee + "Hours", 0);
5614
5614
  case l:
5615
- return H(te + "Minutes", 1);
5615
+ return q(ee + "Minutes", 1);
5616
5616
  case o:
5617
- return H(te + "Seconds", 2);
5617
+ return q(ee + "Seconds", 2);
5618
5618
  case i:
5619
- return H(te + "Milliseconds", 3);
5619
+ return q(ee + "Milliseconds", 3);
5620
5620
  default:
5621
5621
  return this.clone();
5622
5622
  }
5623
5623
  }, O.endOf = function(R) {
5624
5624
  return this.startOf(R, !1);
5625
5625
  }, O.$set = function(R, V) {
5626
- var N, x = K.p(R), $ = "set" + (this.$u ? "UTC" : ""), F = (N = {}, N[c] = $ + "Date", N[g] = $ + "Date", N[d] = $ + "Month", N[E] = $ + "FullYear", N[l] = $ + "Hours", N[o] = $ + "Minutes", N[i] = $ + "Seconds", N[s] = $ + "Milliseconds", N)[x], H = x === c ? this.$D + (V - this.$W) : V;
5627
- if (x === d || x === E) {
5628
- var Q = this.clone().set(g, 1);
5629
- Q.$d[F](H), Q.init(), this.$d = Q.set(g, Math.min(this.$D, Q.daysInMonth())).$d;
5626
+ var F, U = K.p(R), L = "set" + (this.$u ? "UTC" : ""), $ = (F = {}, F[c] = L + "Date", F[g] = L + "Date", F[d] = L + "Month", F[E] = L + "FullYear", F[l] = L + "Hours", F[o] = L + "Minutes", F[i] = L + "Seconds", F[s] = L + "Milliseconds", F)[U], q = U === c ? this.$D + (V - this.$W) : V;
5627
+ if (U === d || U === E) {
5628
+ var z = this.clone().set(g, 1);
5629
+ z.$d[$](q), z.init(), this.$d = z.set(g, Math.min(this.$D, z.daysInMonth())).$d;
5630
5630
  } else
5631
- F && this.$d[F](H);
5631
+ $ && this.$d[$](q);
5632
5632
  return this.init(), this;
5633
5633
  }, O.set = function(R, V) {
5634
5634
  return this.clone().$set(R, V);
5635
5635
  }, O.get = function(R) {
5636
5636
  return this[K.p(R)]();
5637
5637
  }, O.add = function(R, V) {
5638
- var N, x = this;
5638
+ var F, U = this;
5639
5639
  R = Number(R);
5640
- var $ = K.p(V), F = function(J) {
5641
- var re = D(x);
5642
- return K.w(re.date(re.date() + Math.round(J * R)), x);
5640
+ var L = K.p(V), $ = function(J) {
5641
+ var re = D(U);
5642
+ return K.w(re.date(re.date() + Math.round(J * R)), U);
5643
5643
  };
5644
- if ($ === d)
5644
+ if (L === d)
5645
5645
  return this.set(d, this.$M + R);
5646
- if ($ === E)
5646
+ if (L === E)
5647
5647
  return this.set(E, this.$y + R);
5648
- if ($ === c)
5649
- return F(1);
5650
- if ($ === u)
5651
- return F(7);
5652
- var H = (N = {}, N[o] = a, N[l] = n, N[i] = r, N)[$] || 1, Q = this.$d.getTime() + R * H;
5653
- return K.w(Q, this);
5648
+ if (L === c)
5649
+ return $(1);
5650
+ if (L === u)
5651
+ return $(7);
5652
+ var q = (F = {}, F[o] = a, F[l] = n, F[i] = r, F)[L] || 1, z = this.$d.getTime() + R * q;
5653
+ return K.w(z, this);
5654
5654
  }, O.subtract = function(R, V) {
5655
5655
  return this.add(-1 * R, V);
5656
5656
  }, O.format = function(R) {
5657
- var V = this, N = this.$locale();
5657
+ var V = this, F = this.$locale();
5658
5658
  if (!this.isValid())
5659
- return N.invalidDate || m;
5660
- var x = R || "YYYY-MM-DDTHH:mm:ssZ", $ = K.z(this), F = this.$H, H = this.$m, Q = this.$M, J = N.weekdays, re = N.months, te = N.meridiem, ie = function(ne, B, G, z) {
5661
- return ne && (ne[B] || ne(V, x)) || G[B].slice(0, z);
5662
- }, _e = function(ne) {
5663
- return K.s(F % 12 || 12, ne, "0");
5664
- }, de = te || function(ne, B, G) {
5665
- var z = ne < 12 ? "AM" : "PM";
5666
- return G ? z.toLowerCase() : z;
5659
+ return F.invalidDate || m;
5660
+ var U = R || "YYYY-MM-DDTHH:mm:ssZ", L = K.z(this), $ = this.$H, q = this.$m, z = this.$M, J = F.weekdays, re = F.months, ee = F.meridiem, oe = function(ne, B, G, Q) {
5661
+ return ne && (ne[B] || ne(V, U)) || G[B].slice(0, Q);
5662
+ }, ue = function(ne) {
5663
+ return K.s($ % 12 || 12, ne, "0");
5664
+ }, ae = ee || function(ne, B, G) {
5665
+ var Q = ne < 12 ? "AM" : "PM";
5666
+ return G ? Q.toLowerCase() : Q;
5667
5667
  };
5668
- return x.replace(y, function(ne, B) {
5668
+ return U.replace(y, function(ne, B) {
5669
5669
  return B || function(G) {
5670
5670
  switch (G) {
5671
5671
  case "YY":
@@ -5673,13 +5673,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5673
5673
  case "YYYY":
5674
5674
  return K.s(V.$y, 4, "0");
5675
5675
  case "M":
5676
- return Q + 1;
5676
+ return z + 1;
5677
5677
  case "MM":
5678
- return K.s(Q + 1, 2, "0");
5678
+ return K.s(z + 1, 2, "0");
5679
5679
  case "MMM":
5680
- return ie(N.monthsShort, Q, re, 3);
5680
+ return oe(F.monthsShort, z, re, 3);
5681
5681
  case "MMMM":
5682
- return ie(re, Q);
5682
+ return oe(re, z);
5683
5683
  case "D":
5684
5684
  return V.$D;
5685
5685
  case "DD":
@@ -5687,27 +5687,27 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5687
5687
  case "d":
5688
5688
  return String(V.$W);
5689
5689
  case "dd":
5690
- return ie(N.weekdaysMin, V.$W, J, 2);
5690
+ return oe(F.weekdaysMin, V.$W, J, 2);
5691
5691
  case "ddd":
5692
- return ie(N.weekdaysShort, V.$W, J, 3);
5692
+ return oe(F.weekdaysShort, V.$W, J, 3);
5693
5693
  case "dddd":
5694
5694
  return J[V.$W];
5695
5695
  case "H":
5696
- return String(F);
5696
+ return String($);
5697
5697
  case "HH":
5698
- return K.s(F, 2, "0");
5698
+ return K.s($, 2, "0");
5699
5699
  case "h":
5700
- return _e(1);
5700
+ return ue(1);
5701
5701
  case "hh":
5702
- return _e(2);
5702
+ return ue(2);
5703
5703
  case "a":
5704
- return de(F, H, !0);
5704
+ return ae($, q, !0);
5705
5705
  case "A":
5706
- return de(F, H, !1);
5706
+ return ae($, q, !1);
5707
5707
  case "m":
5708
- return String(H);
5708
+ return String(q);
5709
5709
  case "mm":
5710
- return K.s(H, 2, "0");
5710
+ return K.s(q, 2, "0");
5711
5711
  case "s":
5712
5712
  return String(V.$s);
5713
5713
  case "ss":
@@ -5715,46 +5715,46 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5715
5715
  case "SSS":
5716
5716
  return K.s(V.$ms, 3, "0");
5717
5717
  case "Z":
5718
- return $;
5718
+ return L;
5719
5719
  }
5720
5720
  return null;
5721
- }(ne) || $.replace(":", "");
5721
+ }(ne) || L.replace(":", "");
5722
5722
  });
5723
5723
  }, O.utcOffset = function() {
5724
5724
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
5725
- }, O.diff = function(R, V, N) {
5726
- var x, $ = this, F = K.p(V), H = D(R), Q = (H.utcOffset() - this.utcOffset()) * a, J = this - H, re = function() {
5727
- return K.m($, H);
5725
+ }, O.diff = function(R, V, F) {
5726
+ var U, L = this, $ = K.p(V), q = D(R), z = (q.utcOffset() - this.utcOffset()) * a, J = this - q, re = function() {
5727
+ return K.m(L, q);
5728
5728
  };
5729
- switch (F) {
5729
+ switch ($) {
5730
5730
  case E:
5731
- x = re() / 12;
5731
+ U = re() / 12;
5732
5732
  break;
5733
5733
  case d:
5734
- x = re();
5734
+ U = re();
5735
5735
  break;
5736
5736
  case b:
5737
- x = re() / 3;
5737
+ U = re() / 3;
5738
5738
  break;
5739
5739
  case u:
5740
- x = (J - Q) / 6048e5;
5740
+ U = (J - z) / 6048e5;
5741
5741
  break;
5742
5742
  case c:
5743
- x = (J - Q) / 864e5;
5743
+ U = (J - z) / 864e5;
5744
5744
  break;
5745
5745
  case l:
5746
- x = J / n;
5746
+ U = J / n;
5747
5747
  break;
5748
5748
  case o:
5749
- x = J / a;
5749
+ U = J / a;
5750
5750
  break;
5751
5751
  case i:
5752
- x = J / r;
5752
+ U = J / r;
5753
5753
  break;
5754
5754
  default:
5755
- x = J;
5755
+ U = J;
5756
5756
  }
5757
- return N ? x : K.a(x);
5757
+ return F ? U : K.a(U);
5758
5758
  }, O.daysInMonth = function() {
5759
5759
  return this.endOf(d).$D;
5760
5760
  }, O.$locale = function() {
@@ -5762,8 +5762,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5762
5762
  }, O.locale = function(R, V) {
5763
5763
  if (!R)
5764
5764
  return this.$L;
5765
- var N = this.clone(), x = I(R, V, !0);
5766
- return x && (N.$L = x), N;
5765
+ var F = this.clone(), U = I(R, V, !0);
5766
+ return U && (F.$L = U), F;
5767
5767
  }, O.clone = function() {
5768
5768
  return K.w(this.$d, this);
5769
5769
  }, O.toDate = function() {
@@ -5774,16 +5774,16 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5774
5774
  return this.$d.toISOString();
5775
5775
  }, O.toString = function() {
5776
5776
  return this.$d.toUTCString();
5777
- }, L;
5778
- }(), U = P.prototype;
5779
- return D.prototype = U, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", E], ["$D", g]].forEach(function(L) {
5780
- U[L[1]] = function(O) {
5781
- return this.$g(O, L[0], L[1]);
5777
+ }, N;
5778
+ }(), x = P.prototype;
5779
+ return D.prototype = x, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", E], ["$D", g]].forEach(function(N) {
5780
+ x[N[1]] = function(O) {
5781
+ return this.$g(O, N[0], N[1]);
5782
5782
  };
5783
- }), D.extend = function(L, O) {
5784
- return L.$i || (L(O, P, D), L.$i = !0), D;
5785
- }, D.locale = I, D.isDayjs = M, D.unix = function(L) {
5786
- return D(1e3 * L);
5783
+ }), D.extend = function(N, O) {
5784
+ return N.$i || (N(O, P, D), N.$i = !0), D;
5785
+ }, D.locale = I, D.isDayjs = M, D.unix = function(N) {
5786
+ return D(1e3 * N);
5787
5787
  }, D.en = C[A], D.Ls = C, D.p = {}, D;
5788
5788
  });
5789
5789
  })(dayjs_min);
@@ -5846,8 +5846,8 @@ function filesize(e, {
5846
5846
  T[0] = I(k * D) / D, T[0] === C && y < 8 && g === -1 && (T[0] = 1, y++), A = T[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][y];
5847
5847
  }
5848
5848
  if (M && (T[0] = -T[0]), _ > 0 && (T[0] = T[0].toPrecision(_)), T[1] = c[T[1]] || T[1], s === !0 ? T[0] = T[0].toLocaleString() : s.length > 0 ? T[0] = T[0].toLocaleString(s, i) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
5849
- const D = o || PERIOD, K = T[0].toString().split(D), P = K[1] || EMPTY, U = P.length, L = n - U;
5850
- T[0] = `${K[0]}${D}${P.padEnd(U + L, ZERO)}`;
5849
+ const D = o || PERIOD, K = T[0].toString().split(D), P = K[1] || EMPTY, x = P.length, N = n - x;
5850
+ T[0] = `${K[0]}${D}${P.padEnd(x + N, ZERO)}`;
5851
5851
  }
5852
5852
  return w && (T[1] = E[y] ? E[y] : STRINGS.fullform[u][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), d === ARRAY ? T : d === OBJECT ? {
5853
5853
  value: T[0],
@@ -7943,8 +7943,8 @@ const KgTable_Setting = "", FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig",
7943
7943
  }) => (l.value = o.value ? [o.value] : [], !0), !0), n.onOpen(async ({
7944
7944
  model: l
7945
7945
  }) => (i = watch(l, (c) => {
7946
- var u, d, b, E, g, m, _, y, v, T, k, A, C, w, M, I, D, K, P, U, L, O;
7947
- c && (c.id = (d = (u = o.value) == null ? void 0 : u.id) != null ? d : null, c.frm_id = r == null ? void 0 : r.formID, c.aut_load_flg = (E = (b = o.value) == null ? void 0 : b.aut_load_flg) != null ? E : 0, c.mult_flg = (m = (g = o.value) == null ? void 0 : g.mult_flg) != null ? m : 0, c.show_check_column_flg = (y = (_ = o.value) == null ? void 0 : _.show_check_column_flg) != null ? y : 0, c.show_bottom_left_flg = (T = (v = o.value) == null ? void 0 : v.show_bottom_left_flg) != null ? T : 1, c.show_bottom_right_flg = (A = (k = o.value) == null ? void 0 : k.show_bottom_right_flg) != null ? A : 1, c.convert_sort_field_to_under_score_flg = (w = (C = o.value) == null ? void 0 : C.convert_sort_field_to_under_score_flg) != null ? w : 0, c.pg_size_opts = (I = (M = o.value) == null ? void 0 : M.pg_size_opts) != null ? I : "[10, 20, 50, 100]", c.pg_size_opt = (K = (D = o.value) == null ? void 0 : D.pg_size_opt) != null ? K : 10, c.cmd_prm = (U = (P = o.value) == null ? void 0 : P.cmd_prm) != null ? U : void 0, c.button_display_type = (O = (L = o.value) == null ? void 0 : L.button_display_type) != null ? O : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
7946
+ var u, d, b, E, g, m, _, y, v, T, k, A, C, w, M, I, D, K, P, x, N, O;
7947
+ c && (c.id = (d = (u = o.value) == null ? void 0 : u.id) != null ? d : null, c.frm_id = r == null ? void 0 : r.formID, c.aut_load_flg = (E = (b = o.value) == null ? void 0 : b.aut_load_flg) != null ? E : 0, c.mult_flg = (m = (g = o.value) == null ? void 0 : g.mult_flg) != null ? m : 0, c.show_check_column_flg = (y = (_ = o.value) == null ? void 0 : _.show_check_column_flg) != null ? y : 0, c.show_bottom_left_flg = (T = (v = o.value) == null ? void 0 : v.show_bottom_left_flg) != null ? T : 1, c.show_bottom_right_flg = (A = (k = o.value) == null ? void 0 : k.show_bottom_right_flg) != null ? A : 1, c.convert_sort_field_to_under_score_flg = (w = (C = o.value) == null ? void 0 : C.convert_sort_field_to_under_score_flg) != null ? w : 0, c.pg_size_opts = (I = (M = o.value) == null ? void 0 : M.pg_size_opts) != null ? I : "[10, 20, 50, 100]", c.pg_size_opt = (K = (D = o.value) == null ? void 0 : D.pg_size_opt) != null ? K : 10, c.cmd_prm = (x = (P = o.value) == null ? void 0 : P.cmd_prm) != null ? x : void 0, c.button_display_type = (O = (N = o.value) == null ? void 0 : N.button_display_type) != null ? O : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
7948
7948
  }, {
7949
7949
  immediate: !0
7950
7950
  }), KgUtil.hideLoading(), !1)), n.onClose(async () => (i == null || i(), !1)), n.onBeforeOk(async ({
@@ -8867,24 +8867,24 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
8867
8867
  if (A != null && A.id)
8868
8868
  try {
8869
8869
  o.store.setIsLoading(n.formID, !0);
8870
- const U = await QueryByID$1({
8870
+ const x = await QueryByID$1({
8871
8871
  params: {
8872
8872
  id: A.id
8873
8873
  }
8874
8874
  });
8875
8875
  c.value = c.value.map((O) => {
8876
8876
  var V;
8877
- const R = (V = U == null ? void 0 : U.varGridDetails) == null ? void 0 : V.find((N) => N.var_nam === O.var_nam);
8877
+ const R = (V = x == null ? void 0 : x.varGridDetails) == null ? void 0 : V.find((F) => F.var_nam === O.var_nam);
8878
8878
  return R ? {
8879
8879
  ...O,
8880
8880
  ...R,
8881
8881
  id: O.id
8882
8882
  } : O;
8883
8883
  });
8884
- const L = (I = (M = U == null ? void 0 : U.varGridDetails) == null ? void 0 : M.map((O) => O.var_nam)) != null ? I : [];
8885
- u.value = c.value.filter((O) => L.includes(O.var_nam)).map((O) => O.id);
8886
- } catch (U) {
8887
- throw U;
8884
+ const N = (I = (M = x == null ? void 0 : x.varGridDetails) == null ? void 0 : M.map((O) => O.var_nam)) != null ? I : [];
8885
+ u.value = c.value.filter((O) => N.includes(O.var_nam)).map((O) => O.id);
8886
+ } catch (x) {
8887
+ throw x;
8888
8888
  } finally {
8889
8889
  o.store.setIsLoading(n.formID, !1);
8890
8890
  }
@@ -9635,7 +9635,7 @@ const getProps$z = () => ({
9635
9635
  });
9636
9636
  }
9637
9637
  function v() {
9638
- var k, A, C, w, M, I, D, K, P, U, L;
9638
+ var k, A, C, w, M, I, D, K, P, x, N;
9639
9639
  if (u.value)
9640
9640
  return y();
9641
9641
  switch ((k = l.value) == null ? void 0 : k.display_type) {
@@ -9671,7 +9671,7 @@ const getProps$z = () => ({
9671
9671
  return T();
9672
9672
  }
9673
9673
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
9674
- const O = KgUtil.tryParseJSON((K = l.value) == null ? void 0 : K.display_type_properties), R = (U = (P = e.kgRow) == null ? void 0 : P[O.leftColumn]) != null ? U : 0;
9674
+ const O = KgUtil.tryParseJSON((K = l.value) == null ? void 0 : K.display_type_properties), R = (x = (P = e.kgRow) == null ? void 0 : P[O.leftColumn]) != null ? x : 0;
9675
9675
  switch (e.kgContext) {
9676
9676
  case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
9677
9677
  return R;
@@ -9679,7 +9679,7 @@ const getProps$z = () => ({
9679
9679
  return createVNode(KgProgressA, {
9680
9680
  kgTextWidth: O.textWidth,
9681
9681
  kgLeft: R,
9682
- kgRight: (L = e.kgRow) == null ? void 0 : L[O.rightColumn]
9682
+ kgRight: (N = e.kgRow) == null ? void 0 : N[O.rightColumn]
9683
9683
  }, null);
9684
9684
  }
9685
9685
  break;
@@ -9789,7 +9789,7 @@ function _useColumns(e) {
9789
9789
  index: C
9790
9790
  }) => C + 1
9791
9791
  }, ...(A = y == null ? void 0 : y.map((C, w) => {
9792
- var V, N, x;
9792
+ var V, F, U;
9793
9793
  const M = C.var_nam;
9794
9794
  function I() {
9795
9795
  return C.width === "auto" ? "auto" : Number(C.width) || KG_TABLE_TD_DEFAULT_WIDTH;
@@ -9804,30 +9804,30 @@ function _useColumns(e) {
9804
9804
  return "right";
9805
9805
  }
9806
9806
  function P() {
9807
- var $, F, H, Q;
9808
- return !(C.ord_flg !== 1 || (F = ($ = t == null ? void 0 : t.value) == null ? void 0 : $.KgTable) != null && F.kgDisabled || isNil((Q = (H = t == null ? void 0 : t.value) == null ? void 0 : H.KgTable) == null ? void 0 : Q.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || g.length <= 0);
9809
- }
9810
- function U() {
9811
- var $, F, H, Q, J, re;
9812
- if (((F = ($ = E.option.value.KgTable) == null ? void 0 : $.filter) == null ? void 0 : F.on) === !0 && C.filter_flag === 1 && !((Q = (H = t == null ? void 0 : t.value) == null ? void 0 : H.KgTable) != null && Q.kgDisabled) && !(isNil((re = (J = t == null ? void 0 : t.value) == null ? void 0 : J.KgTable) == null ? void 0 : re.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(g.length <= 0))
9813
- return uniqBy(g.map((te) => {
9814
- var ie;
9807
+ var L, $, q, z;
9808
+ return !(C.ord_flg !== 1 || ($ = (L = t == null ? void 0 : t.value) == null ? void 0 : L.KgTable) != null && $.kgDisabled || isNil((z = (q = t == null ? void 0 : t.value) == null ? void 0 : q.KgTable) == null ? void 0 : z.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || g.length <= 0);
9809
+ }
9810
+ function x() {
9811
+ var L, $, q, z, J, re;
9812
+ if ((($ = (L = E.option.value.KgTable) == null ? void 0 : L.filter) == null ? void 0 : $.on) === !0 && C.filter_flag === 1 && !((z = (q = t == null ? void 0 : t.value) == null ? void 0 : q.KgTable) != null && z.kgDisabled) && !(isNil((re = (J = t == null ? void 0 : t.value) == null ? void 0 : J.KgTable) == null ? void 0 : re.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(g.length <= 0))
9813
+ return uniqBy(g.map((ee) => {
9814
+ var oe;
9815
9815
  return {
9816
- value: (ie = te == null ? void 0 : te[M]) != null ? ie : "",
9816
+ value: (oe = ee == null ? void 0 : ee[M]) != null ? oe : "",
9817
9817
  text: i({
9818
9818
  column: {
9819
9819
  dataIndex: M
9820
9820
  },
9821
9821
  index: w,
9822
- record: te,
9823
- value: te == null ? void 0 : te[M]
9822
+ record: ee,
9823
+ value: ee == null ? void 0 : ee[M]
9824
9824
  }, KG_TABLE_CELL_CONTEXT.TABLE_FILTER)
9825
9825
  };
9826
9826
  }), "value");
9827
9827
  }
9828
- function L() {
9829
- var $, F, H;
9830
- return ((F = ($ = E.option.value.KgTable) == null ? void 0 : $.filter) == null ? void 0 : F.on) !== !0 ? null : ((H = o.value) == null ? void 0 : H[M]) || null;
9828
+ function N() {
9829
+ var L, $, q;
9830
+ return (($ = (L = E.option.value.KgTable) == null ? void 0 : L.filter) == null ? void 0 : $.on) !== !0 ? null : ((q = o.value) == null ? void 0 : q[M]) || null;
9831
9831
  }
9832
9832
  function O() {
9833
9833
  return ["left", "center", "right"].includes(C.align || "") ? C.align : "left";
@@ -9858,22 +9858,22 @@ function _useColumns(e) {
9858
9858
  align: O(),
9859
9859
  fixed: K(),
9860
9860
  sorter: P(),
9861
- sortOrder: ((V = l.value) == null ? void 0 : V.field) === M && (x = (N = l.value) == null ? void 0 : N.order) != null ? x : null,
9862
- filteredValue: L(),
9863
- filters: U(),
9864
- onFilter: ($, F) => $ === "" ? isNil(F == null ? void 0 : F[M]) || (F == null ? void 0 : F[M]) === "" : (F == null ? void 0 : F[M]) === $,
9861
+ sortOrder: ((V = l.value) == null ? void 0 : V.field) === M && (U = (F = l.value) == null ? void 0 : F.order) != null ? U : null,
9862
+ filteredValue: N(),
9863
+ filters: x(),
9864
+ onFilter: (L, $) => L === "" ? isNil($ == null ? void 0 : $[M]) || ($ == null ? void 0 : $[M]) === "" : ($ == null ? void 0 : $[M]) === L,
9865
9865
  customHeaderCell: () => ({
9866
9866
  "kg-frm_id": r.formID,
9867
9867
  "kg-var_nam": M,
9868
9868
  draggable: !0
9869
9869
  }),
9870
- customCell: ($) => {
9871
- var H;
9872
- const F = r.store.getVarSubmitField(r.formID, M);
9870
+ customCell: (L) => {
9871
+ var q;
9872
+ const $ = r.store.getVarSubmitField(r.formID, M);
9873
9873
  return {
9874
9874
  "kg-frm_id": r.formID,
9875
9875
  "kg-var_nam": M,
9876
- class: n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && $[s.id.value] === ((H = s.selectedRow.value) == null ? void 0 : H[s.id.value]) && (!!r.isCreating.value && (F == null ? void 0 : F.crt_flg) === 1 || !!r.isUpdating.value && (F == null ? void 0 : F.upt_flg) === 1 || !!r.isCopying.value && (F == null ? void 0 : F.cpy_flg) === 1 || !!r.isDeleting.value && (F == null ? void 0 : F.del_flg) === 1) ? "submitting" : ""
9876
+ class: n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && L[s.id.value] === ((q = s.selectedRow.value) == null ? void 0 : q[s.id.value]) && (!!r.isCreating.value && ($ == null ? void 0 : $.crt_flg) === 1 || !!r.isUpdating.value && ($ == null ? void 0 : $.upt_flg) === 1 || !!r.isCopying.value && ($ == null ? void 0 : $.cpy_flg) === 1 || !!r.isDeleting.value && ($ == null ? void 0 : $.del_flg) === 1) ? "submitting" : ""
9877
9877
  };
9878
9878
  }
9879
9879
  };
@@ -10038,20 +10038,20 @@ const KgTable$1 = "", getProps$y = () => ({
10038
10038
  setup: function(e) {
10039
10039
  var ne;
10040
10040
  const t = inject("$dayjs", dayjs), r = inject(DI_KG_VAR__KG_SLOTS, null), a = inject(DI_KG_VAR__KG_PROPS, null), n = useKg(), s = useKgVar(), i = useKgSearch(), o = useKgTable(), l = useKgSubmit();
10041
- i.onSearch(async (B) => ($(B), !1)), i.onReset(async () => (b.value = {}, !1)), o.store.$onAction(async ({
10041
+ i.onSearch(async (B) => (L(B), !1)), i.onReset(async () => (b.value = {}, !1)), o.store.$onAction(async ({
10042
10042
  name: B,
10043
10043
  args: G
10044
10044
  }) => {
10045
10045
  switch (B) {
10046
10046
  case "setRowSelect":
10047
10047
  if (G[0] === s.formID) {
10048
- const z = G[1], Y = G[2], Z = z[o.id.value];
10048
+ const Q = G[1], Y = G[2], Z = Q[o.id.value];
10049
10049
  switch (!0) {
10050
- case (Y && !L.value.includes(Z)):
10051
- F([...L.value, Z]);
10050
+ case (Y && !N.value.includes(Z)):
10051
+ $([...N.value, Z]);
10052
10052
  break;
10053
- case (!Y && L.value.includes(Z)):
10054
- F(without$1(L.value, Z));
10053
+ case (!Y && N.value.includes(Z)):
10054
+ $(without$1(N.value, Z));
10055
10055
  break;
10056
10056
  }
10057
10057
  }
@@ -10060,7 +10060,7 @@ const KgTable$1 = "", getProps$y = () => ({
10060
10060
  G[0] === s.formID && (o.store.setDatas({
10061
10061
  frmId: s.formID,
10062
10062
  datas: []
10063
- }), O.total = 0, x({
10063
+ }), O.total = 0, U({
10064
10064
  isContinueWhenKgDisabled: !0
10065
10065
  }), c.value = []);
10066
10066
  break;
@@ -10084,31 +10084,31 @@ const KgTable$1 = "", getProps$y = () => ({
10084
10084
  var B, G;
10085
10085
  return (G = (B = s.varButtonSearch.value) == null ? void 0 : B.cmd) != null ? G : null;
10086
10086
  }), k = computed(() => {
10087
- var G, z, Y, Z, ce, le, ge, he, Ce;
10087
+ var G, Q, Y, Z, ge, ce, fe, he, Ce;
10088
10088
  let B = {
10089
10089
  pageNo: O.pageIndex,
10090
10090
  pageSize: O.pageSize,
10091
- column: (z = (G = b.value) == null ? void 0 : G.field) != null ? z : void 0,
10091
+ column: (Q = (G = b.value) == null ? void 0 : G.field) != null ? Q : void 0,
10092
10092
  order: b.value.order === "ascend" ? "asc" : b.value.order === "descend" ? "desc" : void 0,
10093
10093
  ...(Z = (Y = i.model) == null ? void 0 : Y.value) != null ? Z : {}
10094
10094
  };
10095
10095
  return s.varButtonSearch.value && (B = {
10096
10096
  ...B,
10097
- ...KgVarUtil.parseRequestParamsToJSON((le = (ce = s.varButtonSearch.value) == null ? void 0 : ce.cmd_prm) != null ? le : "")
10098
- }), (ge = s.varGridConfig.value) != null && ge.cmd_prm && (B = {
10097
+ ...KgVarUtil.parseRequestParamsToJSON((ce = (ge = s.varButtonSearch.value) == null ? void 0 : ge.cmd_prm) != null ? ce : "")
10098
+ }), (fe = s.varGridConfig.value) != null && fe.cmd_prm && (B = {
10099
10099
  ...B,
10100
10100
  ...KgVarUtil.parseRequestParamsToJSON((he = s.varGridConfig.value.cmd_prm) != null ? he : "")
10101
10101
  }), ((Ce = s.varGridConfig.value) == null ? void 0 : Ce.convert_sort_field_to_under_score_flg) === 1 && B.column && (B.column = snakeCase$1(B.column)), B;
10102
10102
  }), A = computed(() => {
10103
- var B, G, z, Y;
10103
+ var B, G, Q, Y;
10104
10104
  if (!isNil((G = (B = a == null ? void 0 : a.value) == null ? void 0 : B.KgTable) == null ? void 0 : G.kgDisabled))
10105
- return (Y = (z = a == null ? void 0 : a.value) == null ? void 0 : z.KgTable) == null ? void 0 : Y.kgDisabled;
10105
+ return (Y = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : Y.kgDisabled;
10106
10106
  if (!isNil(e.kgDisabled))
10107
10107
  return e.kgDisabled;
10108
10108
  }), C = computed(() => {
10109
- var B, G, z, Y;
10109
+ var B, G, Q, Y;
10110
10110
  if (!isNil((G = (B = a == null ? void 0 : a.value) == null ? void 0 : B.KgTable) == null ? void 0 : G.kgCheckboxDisabled))
10111
- return (Y = (z = a == null ? void 0 : a.value) == null ? void 0 : z.KgTable) == null ? void 0 : Y.kgCheckboxDisabled;
10111
+ return (Y = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : Y.kgCheckboxDisabled;
10112
10112
  if (!isNil(e.kgCheckboxDisabled))
10113
10113
  return e.kgCheckboxDisabled;
10114
10114
  }), w = computed(() => !!A.value || g.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), M = computed(() => !!A.value || g.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || O.total === 0), I = computed(() => {
@@ -10123,7 +10123,7 @@ const KgTable$1 = "", getProps$y = () => ({
10123
10123
  fixed: "left",
10124
10124
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
10125
10125
  hideSelectAll: !o.isMultiSelect.value,
10126
- selectedRowKeys: L,
10126
+ selectedRowKeys: N,
10127
10127
  preserveSelectedRowKeys: !1,
10128
10128
  getCheckboxProps: (B) => {
10129
10129
  var G;
@@ -10131,8 +10131,8 @@ const KgTable$1 = "", getProps$y = () => ({
10131
10131
  disabled: !!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || !!((G = C.value) != null && G.call(C, B))
10132
10132
  };
10133
10133
  },
10134
- onSelect: (B) => H(B),
10135
- onChange: (B) => o.isMultiSelect.value && F(B)
10134
+ onSelect: (B) => q(B),
10135
+ onChange: (B) => o.isMultiSelect.value && $(B)
10136
10136
  };
10137
10137
  }), P = computed(() => {
10138
10138
  var G;
@@ -10149,11 +10149,11 @@ const KgTable$1 = "", getProps$y = () => ({
10149
10149
  break;
10150
10150
  }
10151
10151
  return B;
10152
- }), U = computed(() => {
10152
+ }), x = computed(() => {
10153
10153
  var G;
10154
10154
  let B = "kg-table-bottom";
10155
10155
  return ((G = s.varGridConfig.value) == null ? void 0 : G.show_bottom_border_flg) === 1 && (B += " kg-table-bottom--border"), B;
10156
- }), L = (ne = o.store.getSelectedRowKeys(s.formID)) != null ? ne : ref([]), O = reactive({
10156
+ }), N = (ne = o.store.getSelectedRowKeys(s.formID)) != null ? ne : ref([]), O = reactive({
10157
10157
  pageIndex: 1,
10158
10158
  pageSize: 10,
10159
10159
  total: 0
@@ -10164,12 +10164,12 @@ const KgTable$1 = "", getProps$y = () => ({
10164
10164
  });
10165
10165
  watch(o.pageSizeOptions, (B) => {
10166
10166
  B.length > 0 && !B.includes(O.pageSize) && (O.pageSize = o.pageSizeOption.value);
10167
- }), watch([o.isAutoRequest, o.isRequested, i.isReady], ([B, G, z]) => {
10167
+ }), watch([o.isAutoRequest, o.isRequested, i.isReady], ([B, G, Q]) => {
10168
10168
  KgLogger.debug(`KgTable | ${s.formID} | watch:[kgTable.isAutoRequest, kgTable.isRequested, kgSearch.isReady]`, {
10169
10169
  isAutoRequest: B,
10170
10170
  isRequested: G,
10171
- isReady: z
10172
- }), B && !G && z && $({
10171
+ isReady: Q
10172
+ }), B && !G && Q && L({
10173
10173
  isSearchFirstPage: !0
10174
10174
  });
10175
10175
  }, {
@@ -10177,7 +10177,7 @@ const KgTable$1 = "", getProps$y = () => ({
10177
10177
  }), watch(k, (B) => {
10178
10178
  o.store.setRequestParams(s.formID, B);
10179
10179
  }), watch(s.isCreating, (B, G) => {
10180
- B === !0 ? V() : B === !1 && G === !0 && N();
10180
+ B === !0 ? V() : B === !1 && G === !0 && F();
10181
10181
  }), onUnmounted(() => {
10182
10182
  o.store.dispose(s.formID);
10183
10183
  });
@@ -10192,21 +10192,21 @@ const KgTable$1 = "", getProps$y = () => ({
10192
10192
  }), o.store.setSelectedRows(s.formID, [B]);
10193
10193
  }
10194
10194
  }
10195
- function N() {
10195
+ function F() {
10196
10196
  const B = y.value.find((G) => G[o.id.value] === KG_TABLE_TEMP_ID);
10197
10197
  B && (o.store.setDatas({
10198
10198
  frmId: s.formID,
10199
10199
  datas: without$1(y.value, B)
10200
10200
  }), o.store.setSelectedRows(s.formID, []));
10201
10201
  }
10202
- function x(B = {}) {
10202
+ function U(B = {}) {
10203
10203
  var Z;
10204
10204
  KgLogger.debug("KgTable | onRowClick() | \u6267\u884C\u5F00\u59CB.", {
10205
10205
  param: B
10206
10206
  });
10207
10207
  const {
10208
10208
  event: G,
10209
- row: z,
10209
+ row: Q,
10210
10210
  isContinueWhenKgDisabled: Y = !1
10211
10211
  } = B;
10212
10212
  if (!Y && !!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) {
@@ -10223,7 +10223,7 @@ const KgTable$1 = "", getProps$y = () => ({
10223
10223
  KgLogger.debug("KgTable | onRowClick() | \u4E0D\u652F\u6301\u884C\u52FE\u9009.");
10224
10224
  return;
10225
10225
  }
10226
- if (!z) {
10226
+ if (!Q) {
10227
10227
  KgLogger.debug("KgTable | onRowClick() | \u6E05\u7A7A\u6240\u6709\u52FE\u9009\u7684\u884C."), o.store.setSelectedRows(s.formID, []);
10228
10228
  return;
10229
10229
  }
@@ -10237,32 +10237,32 @@ const KgTable$1 = "", getProps$y = () => ({
10237
10237
  break;
10238
10238
  case 1:
10239
10239
  KgLogger.debug("KgTable | onRowClick() | \u52FE\u9009\u5355\u884C.", {
10240
- row: z
10241
- }), o.store.setSelectedRows(s.formID, [z]);
10240
+ row: Q
10241
+ }), o.store.setSelectedRows(s.formID, [Q]);
10242
10242
  break;
10243
10243
  case 2:
10244
- H(z);
10244
+ q(Q);
10245
10245
  break;
10246
10246
  }
10247
10247
  break;
10248
10248
  case 2:
10249
10249
  o.store.emit(s.formID, "rowDoubleClick", {
10250
- row: z
10250
+ row: Q
10251
10251
  });
10252
10252
  break;
10253
10253
  }
10254
10254
  }
10255
- function $(B = {}) {
10255
+ function L(B = {}) {
10256
10256
  KgLogger.debug(`${s.formID} | KgTable | request() | \u6267\u884C\u5F00\u59CB.`, {
10257
10257
  param: B
10258
10258
  });
10259
10259
  const G = watch(o.isReady, (Y) => {
10260
- Y && (setTimeout(() => G()), z());
10260
+ Y && (setTimeout(() => G()), Q());
10261
10261
  }, {
10262
10262
  immediate: !0
10263
10263
  });
10264
- async function z() {
10265
- var Y, Z, ce, le, ge, he, Ce;
10264
+ async function Q() {
10265
+ var Y, Z, ge, ce, fe, he, Ce;
10266
10266
  KgLogger.debug(`${s.formID} | KgTable | request() | requestDatas() | \u6267\u884C\u5F00\u59CB.`), B.isSearchFirstPage && (O.pageIndex = 1), o.store.setIsRequesting(s.formID, !0);
10267
10267
  try {
10268
10268
  const be = KgUtil.parseParams(k.value, o.kgSearchFormID.value, t), ye = ref({});
@@ -10274,18 +10274,18 @@ const KgTable$1 = "", getProps$y = () => ({
10274
10274
  throw KgLogger.error(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.`, {
10275
10275
  VarButton: s.varButtonSearch.value
10276
10276
  }), new Error("\u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.");
10277
- const Se = ((Z = (Y = n.option.value.KgSearch) == null ? void 0 : Y.dynamicQuery) == null ? void 0 : Z.on) === !0 && ((ce = s.currentVarProfileMaster.value) == null ? void 0 : ce.dyn_flg) === 1, {
10278
- sql: q,
10277
+ const Se = ((Z = (Y = n.option.value.KgSearch) == null ? void 0 : Y.dynamicQuery) == null ? void 0 : Z.on) === !0 && ((ge = s.currentVarProfileMaster.value) == null ? void 0 : ge.dyn_flg) === 1, {
10278
+ sql: H,
10279
10279
  whereSql: W,
10280
10280
  orderBySql: X
10281
- } = KgUtil.getQuerySql(k.value, o.kgSearchFormID.value, null, t), ee = await httpClient().request({
10281
+ } = KgUtil.getQuerySql(k.value, o.kgSearchFormID.value, null, t), te = await httpClient().request({
10282
10282
  url: T.value,
10283
- method: (ge = (le = s.varButtonSearch.value) == null ? void 0 : le.cmd_method) != null ? ge : "GET",
10283
+ method: (fe = (ce = s.varButtonSearch.value) == null ? void 0 : ce.cmd_method) != null ? fe : "GET",
10284
10284
  params: be,
10285
10285
  data: be,
10286
10286
  headers: {
10287
10287
  [KG_HTTP_HEADERS.KG_DYNAMIC_QUERY]: Se,
10288
- [KG_HTTP_HEADERS.KG_QUERY_SQL]: q,
10288
+ [KG_HTTP_HEADERS.KG_QUERY_SQL]: H,
10289
10289
  [KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL]: W,
10290
10290
  [KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]: X
10291
10291
  }
@@ -10293,11 +10293,11 @@ const KgTable$1 = "", getProps$y = () => ({
10293
10293
  isReturnNativeResponse: !0,
10294
10294
  successMessageMode: "none"
10295
10295
  });
10296
- if (!ee.data)
10296
+ if (!te.data)
10297
10297
  throw message.error(n.t("kg.KgTable.request-fail-no-data")), new Error(n.t("kg.KgTable.request-fail-no-data"));
10298
- if (![0, 200].includes((he = ee.data.code) != null ? he : -1) || !ee.data.success)
10299
- throw message.error(ee.data.message || n.t("kg.KgTable.request-fail-error")), new Error(ee.data.message || n.t("kg.KgTable.request-fail-error"));
10300
- Se && ee.headers[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY.toLowerCase()] !== "true" && message.warning(n.t("kg.KgTable.dynamic-query-is-off-in-server")), ye.value = ee.data.result, KgLogger.debug(`${s.formID} | KgTable | request() | requestDatas() | \u67E5\u8BE2\u6210\u529F.`, {
10298
+ if (![0, 200].includes((he = te.data.code) != null ? he : -1) || !te.data.success)
10299
+ throw message.error(te.data.message || n.t("kg.KgTable.request-fail-error")), new Error(te.data.message || n.t("kg.KgTable.request-fail-error"));
10300
+ Se && te.headers[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY.toLowerCase()] !== "true" && message.warning(n.t("kg.KgTable.dynamic-query-is-off-in-server")), ye.value = te.data.result, KgLogger.debug(`${s.formID} | KgTable | request() | requestDatas() | \u67E5\u8BE2\u6210\u529F.`, {
10301
10301
  params: be,
10302
10302
  response: ye.value
10303
10303
  });
@@ -10307,17 +10307,16 @@ const KgTable$1 = "", getProps$y = () => ({
10307
10307
  total: Ae
10308
10308
  } = v(ye), Ie = await o.store.emit(s.formID, "beforeSetDatas", {
10309
10309
  datas: Ee
10310
- });
10310
+ }), ke = cloneDeep(N.value);
10311
10311
  o.store.setDatas({
10312
10312
  frmId: s.formID,
10313
- datas: Ee.value
10314
- }), O.total = Ae.value;
10315
- const ke = cloneDeep(L.value);
10316
- d.value = {}, x({
10313
+ datas: Ee.value,
10314
+ isPreserveSelectedRows: !0
10315
+ }), O.total = Ae.value, d.value = {}, U({
10317
10316
  isContinueWhenKgDisabled: !0
10318
10317
  }), c.value = [], await nextTick(), B.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, ke.map((Se) => {
10319
- var q;
10320
- return (q = Ee.value) == null ? void 0 : q.find((W) => W[o.id.value] === Se);
10318
+ var H;
10319
+ return (H = Ee.value) == null ? void 0 : H.find((W) => W[o.id.value] === Se);
10321
10320
  }).filter((Se) => !!Se)) : ((Ce = s.varGridConfig.value) == null ? void 0 : Ce.check_first_row_after_retrieve) === 1 && Ee.value.length > 0 && o.store.setSelectedRows(s.formID, [Ee.value[0]]);
10322
10321
  const Me = await o.store.emit(s.formID, "afterSearch", {
10323
10322
  params: be,
@@ -10332,40 +10331,40 @@ const KgTable$1 = "", getProps$y = () => ({
10332
10331
  }
10333
10332
  }
10334
10333
  }
10335
- function F(B) {
10334
+ function $(B) {
10336
10335
  o.store.setSelectedRows(s.formID, B.map((G) => {
10337
- var z;
10338
- return (z = y.value) == null ? void 0 : z.find((Y) => Y[o.id.value] === G);
10336
+ var Q;
10337
+ return (Q = y.value) == null ? void 0 : Q.find((Y) => Y[o.id.value] === G);
10339
10338
  }).filter((G) => !!G));
10340
10339
  }
10341
- function H(B) {
10342
- var G, z;
10340
+ function q(B) {
10341
+ var G, Q;
10343
10342
  switch (o.isMultiSelect.value) {
10344
10343
  case !0:
10345
10344
  {
10346
10345
  const Y = B[o.id.value];
10347
- L.value.includes(Y) ? L.value = without$1(L.value, Y) : L.value = [...(G = L.value) != null ? G : [], Y];
10346
+ N.value.includes(Y) ? N.value = without$1(N.value, Y) : N.value = [...(G = N.value) != null ? G : [], Y];
10348
10347
  }
10349
10348
  break;
10350
10349
  case !1:
10351
10350
  {
10352
10351
  const Y = B[o.id.value];
10353
- (z = L.value) != null && z.includes(Y) ? L.value = [] : L.value = [Y];
10352
+ (Q = N.value) != null && Q.includes(Y) ? N.value = [] : N.value = [Y];
10354
10353
  }
10355
10354
  break;
10356
10355
  }
10357
- o.store.setSelectedRows(s.formID, L.value.map((Y) => {
10356
+ o.store.setSelectedRows(s.formID, N.value.map((Y) => {
10358
10357
  var Z;
10359
- return (Z = y.value) == null ? void 0 : Z.find((ce) => ce[o.id.value] === Y);
10358
+ return (Z = y.value) == null ? void 0 : Z.find((ge) => ge[o.id.value] === Y);
10360
10359
  }).filter((Y) => !!Y));
10361
10360
  }
10362
- function Q(B, G) {
10361
+ function z(B, G) {
10363
10362
  G.width = B, s.store.setVarGridDetailWidth(s.formID, G.dataIndex, B);
10364
10363
  }
10365
- async function J(B, G, z, Y) {
10364
+ async function J(B, G, Q, Y) {
10366
10365
  switch (Y.action) {
10367
10366
  case "sort": {
10368
- b.value = z, b.value.order || (b.value.field = void 0), await nextTick(), $({
10367
+ b.value = Q, b.value.order || (b.value.field = void 0), await nextTick(), L({
10369
10368
  isSearchFirstPage: !0
10370
10369
  });
10371
10370
  break;
@@ -10376,20 +10375,20 @@ const KgTable$1 = "", getProps$y = () => ({
10376
10375
  }
10377
10376
  function re(B, G) {
10378
10377
  var Y;
10379
- const z = G[o.id.value];
10378
+ const Q = G[o.id.value];
10380
10379
  switch ((Y = s.varGridConfig.value) == null ? void 0 : Y.expand_accordion_flg) {
10381
10380
  case 0:
10382
- B ? c.value = uniq([...c.value, z]) : c.value = without$1(c.value, z);
10381
+ B ? c.value = uniq([...c.value, Q]) : c.value = without$1(c.value, Q);
10383
10382
  break;
10384
10383
  default:
10385
- B ? c.value = [z] : c.value = [];
10384
+ B ? c.value = [Q] : c.value = [];
10386
10385
  break;
10387
10386
  }
10388
10387
  }
10389
- function te(B, G) {
10390
- G !== O.pageSize ? (O.pageIndex = 1, O.pageSize = G) : O.pageIndex = B, $();
10388
+ function ee(B, G) {
10389
+ G !== O.pageSize ? (O.pageIndex = 1, O.pageSize = G) : O.pageIndex = B, L();
10391
10390
  }
10392
- function ie(B) {
10391
+ function oe(B) {
10393
10392
  const {
10394
10393
  column: G
10395
10394
  } = B;
@@ -10398,7 +10397,7 @@ const KgTable$1 = "", getProps$y = () => ({
10398
10397
  kgDisabled: A.value
10399
10398
  }, null);
10400
10399
  }
10401
- function _e() {
10400
+ function ue() {
10402
10401
  var B;
10403
10402
  return (B = r == null ? void 0 : r.KgTable) != null && B["summary.bodyCell"] ? createVNode(TableSummary, {
10404
10403
  fixed: "bottom"
@@ -10408,18 +10407,18 @@ const KgTable$1 = "", getProps$y = () => ({
10408
10407
  index: 0
10409
10408
  }, null), D.value && createVNode(TableSummary.Cell, {
10410
10409
  index: I.value ? 1 : 0
10411
- }, null), u.value.map((G, z) => {
10412
- const Y = String(G.dataIndex), Z = Y ? s.store.getVarGridDetail(s.formID, Y) : null, ce = (() => ["left", "center", "right"].includes((Z == null ? void 0 : Z.align) || "") ? Z == null ? void 0 : Z.align : "left")();
10413
- let le = z;
10414
- return I.value && D.value ? le += 2 : (I.value || D.value) && (le += 1), createVNode(TableSummary.Cell, {
10415
- index: le,
10416
- align: ce
10410
+ }, null), u.value.map((G, Q) => {
10411
+ const Y = String(G.dataIndex), Z = Y ? s.store.getVarGridDetail(s.formID, Y) : null, ge = (() => ["left", "center", "right"].includes((Z == null ? void 0 : Z.align) || "") ? Z == null ? void 0 : Z.align : "left")();
10412
+ let ce = Q;
10413
+ return I.value && D.value ? ce += 2 : (I.value || D.value) && (ce += 1), createVNode(TableSummary.Cell, {
10414
+ index: ce,
10415
+ align: ge
10417
10416
  }, {
10418
10417
  default: () => {
10419
- var ge, he;
10420
- return [(he = (ge = r == null ? void 0 : r.KgTable) == null ? void 0 : ge["summary.bodyCell"]) == null ? void 0 : he.call(ge, {
10418
+ var fe, he;
10419
+ return [(he = (fe = r == null ? void 0 : r.KgTable) == null ? void 0 : fe["summary.bodyCell"]) == null ? void 0 : he.call(fe, {
10421
10420
  column: G,
10422
- index: le,
10421
+ index: ce,
10423
10422
  varGridDetail: Z
10424
10423
  })];
10425
10424
  }
@@ -10428,11 +10427,11 @@ const KgTable$1 = "", getProps$y = () => ({
10428
10427
  })]
10429
10428
  }) : null;
10430
10429
  }
10431
- function de() {
10430
+ function ae() {
10432
10431
  return !o.isAutoRequest.value && !o.store.getIsRequested(s.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
10433
10432
  }
10434
10433
  return () => {
10435
- var B, G, z;
10434
+ var B, G, Q;
10436
10435
  return createVNode("div", {
10437
10436
  class: P.value,
10438
10437
  "kg-frm_id": s.formID,
@@ -10455,29 +10454,29 @@ const KgTable$1 = "", getProps$y = () => ({
10455
10454
  expandedRowKeys: c.value,
10456
10455
  rowSelection: K.value,
10457
10456
  customRow: (Y) => ({
10458
- onClick: (Z) => x({
10457
+ onClick: (Z) => U({
10459
10458
  event: Z,
10460
10459
  row: Y
10461
10460
  })
10462
10461
  }),
10463
- onResizeColumn: Q,
10462
+ onResizeColumn: z,
10464
10463
  onChange: J,
10465
10464
  onExpand: re
10466
10465
  }, {
10467
- headerCell: ie,
10466
+ headerCell: oe,
10468
10467
  bodyCell: _,
10469
- emptyText: de,
10470
- expandedRowRender: (z = r == null ? void 0 : r.KgTable) == null ? void 0 : z.expandedRowRender,
10471
- summary: _e
10468
+ emptyText: ae,
10469
+ expandedRowRender: (Q = r == null ? void 0 : r.KgTable) == null ? void 0 : Q.expandedRowRender,
10470
+ summary: ue
10472
10471
  }), (o.isShowBottomLeft.value || o.isShowBottomRight.value) && createVNode("div", {
10473
- class: U.value
10472
+ class: x.value
10474
10473
  }, [createVNode("div", {
10475
10474
  class: "left"
10476
10475
  }, [o.isShowBottomLeft.value && createVNode(KgTableInfo, {
10477
- kgShowClearCheck: L.value.length > 0,
10476
+ kgShowClearCheck: N.value.length > 0,
10478
10477
  kgShowClearTable: O.total > 0,
10479
- kgShowLocate: L.value.length === 1,
10480
- kgTotal: L.value.length,
10478
+ kgShowLocate: N.value.length === 1,
10479
+ kgTotal: N.value.length,
10481
10480
  kgDisabled: w.value
10482
10481
  }, null)]), createVNode("div", {
10483
10482
  class: "right"
@@ -10499,7 +10498,7 @@ const KgTable$1 = "", getProps$y = () => ({
10499
10498
  to: Z[1],
10500
10499
  total: Y
10501
10500
  }),
10502
- onChange: (Y, Z) => te(Y, Z)
10501
+ onChange: (Y, Z) => ee(Y, Z)
10503
10502
  }, null)])])]);
10504
10503
  };
10505
10504
  }
@@ -10837,12 +10836,12 @@ function useKgFormItemSelect() {
10837
10836
  let k = null;
10838
10837
  try {
10839
10838
  l.value = !0;
10840
- const U = KgUtil.parseParams(b.value, null, e);
10839
+ const x = KgUtil.parseParams(b.value, null, e);
10841
10840
  k = await ((P = httpClient()) == null ? void 0 : P.request({
10842
10841
  url: _,
10843
10842
  method: y,
10844
- params: U,
10845
- data: U
10843
+ params: x,
10844
+ data: x
10846
10845
  }, {
10847
10846
  dynamicQueryOperators: {},
10848
10847
  dayjs: e
@@ -10863,14 +10862,14 @@ function useKgFormItemSelect() {
10863
10862
  break;
10864
10863
  }
10865
10864
  if (m.value.length > 0) {
10866
- const U = m.value[0];
10867
- (!(v in U) || !(T in U)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
10865
+ const x = m.value[0];
10866
+ (!(v in x) || !(T in x)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
10868
10867
  frm_id: a.formID,
10869
10868
  var_nam: t,
10870
10869
  cmd: _,
10871
10870
  val_clm: v,
10872
10871
  lbl_clm: T,
10873
- \u6240\u6709\u5217: Object.keys(U)
10872
+ \u6240\u6709\u5217: Object.keys(x)
10874
10873
  });
10875
10874
  }
10876
10875
  await n.store.emit(a.formID, "selectBeforeSetDatas", {
@@ -11404,13 +11403,13 @@ const KgFormItem = defineComponent({
11404
11403
  var_nam: O,
11405
11404
  model: R,
11406
11405
  isMultiple: V,
11407
- value: N,
11408
- values: x
11406
+ value: F,
11407
+ values: U
11409
11408
  }) => {
11410
- var $;
11409
+ var L;
11411
11410
  switch (O) {
11412
11411
  case e.kgVarName:
11413
- R.value && (V ? R.value[e.kgVarName] = x : R.value[e.kgVarName] = N), ($ = n.value) == null || $.validate([e.kgVarName]);
11412
+ R.value && (V ? R.value[e.kgVarName] = U : R.value[e.kgVarName] = F), (L = n.value) == null || L.validate([e.kgVarName]);
11414
11413
  break;
11415
11414
  }
11416
11415
  return !1;
@@ -11421,7 +11420,7 @@ const KgFormItem = defineComponent({
11421
11420
  } = _useRules(e), {
11422
11421
  controlType: m
11423
11422
  } = useKgFormItem(e), _ = computed(() => {
11424
- var R, V, N, x, $;
11423
+ var R, V, F, U, L;
11425
11424
  if (i.isRetrieving.value)
11426
11425
  return !0;
11427
11426
  let O = !1;
@@ -11438,20 +11437,20 @@ const KgFormItem = defineComponent({
11438
11437
  O = ((V = b.value) == null ? void 0 : V.crt_ena_flg) === 0;
11439
11438
  break;
11440
11439
  case i.isUpdating.value:
11441
- O = ((N = b.value) == null ? void 0 : N.upt_ena_flg) === 0;
11440
+ O = ((F = b.value) == null ? void 0 : F.upt_ena_flg) === 0;
11442
11441
  break;
11443
11442
  case i.isCopying.value:
11444
- O = ((x = b.value) == null ? void 0 : x.cpy_ena_flg) === 0;
11443
+ O = ((U = b.value) == null ? void 0 : U.cpy_ena_flg) === 0;
11445
11444
  break;
11446
11445
  case i.isDeleting.value:
11447
- O = (($ = b.value) == null ? void 0 : $.del_ena_flg) === 0;
11446
+ O = ((L = b.value) == null ? void 0 : L.del_ena_flg) === 0;
11448
11447
  break;
11449
11448
  }
11450
11449
  break;
11451
11450
  }
11452
11451
  return O;
11453
11452
  }), y = computed(() => {
11454
- var R, V, N, x;
11453
+ var R, V, F, U;
11455
11454
  let O = " ";
11456
11455
  if (e.kgPlaceholder)
11457
11456
  O = e.kgPlaceholder;
@@ -11461,12 +11460,12 @@ const KgFormItem = defineComponent({
11461
11460
  O = i.t((V = (R = d.value) == null ? void 0 : R.placeholder) != null ? V : " ").value;
11462
11461
  break;
11463
11462
  case KG_FORM_CONTEXT.SUBMIT:
11464
- O = i.t((x = (N = b.value) == null ? void 0 : N.placeholder) != null ? x : " ").value;
11463
+ O = i.t((U = (F = b.value) == null ? void 0 : F.placeholder) != null ? U : " ").value;
11465
11464
  break;
11466
11465
  }
11467
11466
  return O;
11468
11467
  }), v = computed(() => {
11469
- var R, V, N, x, $, F, H, Q, J, re;
11468
+ var R, V, F, U, L, $, q, z, J, re;
11470
11469
  let O = 6;
11471
11470
  if (e.kgSpan !== void 0)
11472
11471
  O = e.kgSpan;
@@ -11478,25 +11477,25 @@ const KgFormItem = defineComponent({
11478
11477
  case KG_FORM_CONTEXT.SUBMIT:
11479
11478
  switch (!0) {
11480
11479
  case i.isCreating.value:
11481
- O = (x = (N = b.value) == null ? void 0 : N.crt_width) != null ? x : 6;
11480
+ O = (U = (F = b.value) == null ? void 0 : F.crt_width) != null ? U : 6;
11482
11481
  break;
11483
11482
  case i.isUpdating.value:
11484
- O = (F = ($ = b.value) == null ? void 0 : $.upt_width) != null ? F : 6;
11483
+ O = ($ = (L = b.value) == null ? void 0 : L.upt_width) != null ? $ : 6;
11485
11484
  break;
11486
11485
  case i.isCopying.value:
11487
- O = (Q = (H = b.value) == null ? void 0 : H.cpy_width) != null ? Q : 6;
11486
+ O = (z = (q = b.value) == null ? void 0 : q.cpy_width) != null ? z : 6;
11488
11487
  break;
11489
11488
  case i.isDeleting.value:
11490
11489
  O = (re = (J = b.value) == null ? void 0 : J.del_width) != null ? re : 6;
11491
11490
  break;
11492
11491
  }
11493
11492
  }
11494
- return O = Number(O), new Array(24).fill(0).map((te, ie) => ie + 1).includes(O) ? O : (KgLogger.error("| \u6570\u636E\u6709\u8BEF | \u5BBD\u5EA6\u5FC5\u987B\u4E3A [1, 24] \u4E4B\u95F4\u7684\u6574\u6570.", {
11493
+ return O = Number(O), new Array(24).fill(0).map((ee, oe) => oe + 1).includes(O) ? O : (KgLogger.error("| \u6570\u636E\u6709\u8BEF | \u5BBD\u5EA6\u5FC5\u987B\u4E3A [1, 24] \u4E4B\u95F4\u7684\u6574\u6570.", {
11495
11494
  VarProfileDetail: d.value,
11496
11495
  VarSubmitField: b.value
11497
11496
  }), 6);
11498
11497
  }), T = computed(() => {
11499
- var R, V, N, x, $;
11498
+ var R, V, F, U, L;
11500
11499
  let O = null;
11501
11500
  if (e.kgSpan !== void 0)
11502
11501
  O = e.kgSpan;
@@ -11511,30 +11510,30 @@ const KgFormItem = defineComponent({
11511
11510
  O = (V = b.value) == null ? void 0 : V.crt_width;
11512
11511
  break;
11513
11512
  case i.isUpdating.value:
11514
- O = (N = b.value) == null ? void 0 : N.upt_width;
11513
+ O = (F = b.value) == null ? void 0 : F.upt_width;
11515
11514
  break;
11516
11515
  case i.isCopying.value:
11517
- O = (x = b.value) == null ? void 0 : x.cpy_width;
11516
+ O = (U = b.value) == null ? void 0 : U.cpy_width;
11518
11517
  break;
11519
11518
  case i.isDeleting.value:
11520
- O = ($ = b.value) == null ? void 0 : $.del_width;
11519
+ O = (L = b.value) == null ? void 0 : L.del_width;
11521
11520
  break;
11522
11521
  }
11523
11522
  }
11524
- return O = Number(O), new Array(24).fill(0).map((F, H) => H + 1).includes(O) ? O : null;
11523
+ return O = Number(O), new Array(24).fill(0).map(($, q) => q + 1).includes(O) ? O : null;
11525
11524
  }), k = computed(() => {
11526
- var N, x;
11525
+ var F, U;
11527
11526
  const O = get(M.value, "$el.parentElement");
11528
- if (O && !((N = O.classList) != null && N.contains("ant-row")))
11527
+ if (O && !((F = O.classList) != null && F.contains("ant-row")))
11529
11528
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
11530
11529
  let R = {};
11531
- const V = Math.abs(Number.parseInt((x = get(M.value, "$el.parentElement.style.marginLeft")) != null ? x : "0px"));
11530
+ const V = Math.abs(Number.parseInt((U = get(M.value, "$el.parentElement.style.marginLeft")) != null ? U : "0px"));
11532
11531
  return Number.isNaN(V) || (R = {
11533
11532
  paddingLeft: `${V}px !important`,
11534
11533
  paddingRight: `${V}px !important`
11535
11534
  }), R;
11536
11535
  }), A = computed(() => {
11537
- var R, V, N, x;
11536
+ var R, V, F, U;
11538
11537
  let O = "kg-form-item";
11539
11538
  switch (c.value && (O += " kg-form-item-lookup"), T.value !== null && (O += " kg-form-item--col-fixed"), e.kgContext) {
11540
11539
  case KG_FORM_CONTEXT.SEARCH:
@@ -11547,8 +11546,8 @@ const KgFormItem = defineComponent({
11547
11546
  case KG_FORM_CONTEXT.SUBMIT:
11548
11547
  switch (!0) {
11549
11548
  case (i.isCreating.value && ((V = b.value) == null ? void 0 : V.crt_vis_flg) === 0):
11550
- case (i.isUpdating.value && ((N = b.value) == null ? void 0 : N.upt_vis_flg) === 0):
11551
- case (i.isCopying.value && ((x = b.value) == null ? void 0 : x.cpy_vis_flg) === 0):
11549
+ case (i.isUpdating.value && ((F = b.value) == null ? void 0 : F.upt_vis_flg) === 0):
11550
+ case (i.isCopying.value && ((U = b.value) == null ? void 0 : U.cpy_vis_flg) === 0):
11552
11551
  O += " kg-form-item--invisible";
11553
11552
  break;
11554
11553
  }
@@ -11605,7 +11604,7 @@ const KgFormItem = defineComponent({
11605
11604
  validateFirst: !0,
11606
11605
  htmlFor: w.value
11607
11606
  }, {
11608
- default: () => createVNode(Fragment, null, [K(), D(), U(), L()]),
11607
+ default: () => createVNode(Fragment, null, [K(), D(), x(), N()]),
11609
11608
  label: () => P()
11610
11609
  });
11611
11610
  }
@@ -11657,12 +11656,12 @@ const KgFormItem = defineComponent({
11657
11656
  var O, R, V;
11658
11657
  return ((R = (O = s.option.value.KgSearch) == null ? void 0 : O.dynamicQuery) == null ? void 0 : R.on) !== !0 || ((V = i.currentVarProfileMaster.value) == null ? void 0 : V.dyn_flg) !== 1 ? null : createVNode(Form.ItemRest, null, {
11659
11658
  default: () => {
11660
- var N;
11659
+ var F;
11661
11660
  return [createVNode(Select, {
11662
- value: (N = l.operatorModel.value) == null ? void 0 : N[e.kgVarName],
11663
- "onUpdate:value": (x) => {
11661
+ value: (F = l.operatorModel.value) == null ? void 0 : F[e.kgVarName],
11662
+ "onUpdate:value": (U) => {
11664
11663
  l.store.patchOperatorModel(i.formID, {
11665
- [e.kgVarName]: x
11664
+ [e.kgVarName]: U
11666
11665
  });
11667
11666
  },
11668
11667
  disabled: _.value,
@@ -11670,8 +11669,8 @@ const KgFormItem = defineComponent({
11670
11669
  dropdownClassName: "kg-form-item-operator-select-dropdown"
11671
11670
  }, {
11672
11671
  default: () => {
11673
- var x;
11674
- return KgVarUtil.getDynamicQueryOperatorSelectOptions((x = m.value) != null ? x : "");
11672
+ var U;
11673
+ return KgVarUtil.getDynamicQueryOperatorSelectOptions((U = m.value) != null ? U : "");
11675
11674
  },
11676
11675
  suffixIcon: () => createVNode(CaretDownOutlined$1, {
11677
11676
  class: "ant-select-suffix"
@@ -11685,7 +11684,7 @@ const KgFormItem = defineComponent({
11685
11684
  title: i.t(e.kgVarName).value
11686
11685
  }, [i.t(e.kgVarName).value]) : null;
11687
11686
  }
11688
- function U() {
11687
+ function x() {
11689
11688
  var O;
11690
11689
  return !c.value || !((O = c.value) != null && O.lkp_id) ? null : createVNode(Form.ItemRest, null, {
11691
11690
  default: () => [createVNode(KgFormItemAddonLookup, {
@@ -11694,7 +11693,7 @@ const KgFormItem = defineComponent({
11694
11693
  }, null)]
11695
11694
  });
11696
11695
  }
11697
- function L() {
11696
+ function N() {
11698
11697
  return !t.controlRight || !isFunction$2(t.controlRight) ? null : t.controlRight({
11699
11698
  frm_id: i.formID,
11700
11699
  varName: e.kgVarName,
@@ -12854,12 +12853,12 @@ const getProps$r = () => ({
12854
12853
  const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
12855
12854
  inject(DI_KG_VAR__KG_PROPS, null);
12856
12855
  const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = useKgSearch();
12857
- i.onSubmitSave(async () => (await le(), !1)), i.onSubmitCancel(async () => (await ce(), !1)), _useFormModel$1();
12856
+ i.onSubmitSave(async () => (await ce(), !1)), i.onSubmitCancel(async () => (await ge(), !1)), _useFormModel$1();
12858
12857
  const u = computed(() => s.isDeleting.value && D.value.length === 0 && P.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), b = computed(() => s.store.getVarSubmitConfig(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), m = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), w = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), M = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), D = computed(() => {
12859
- var q, W, X;
12858
+ var H, W, X;
12860
12859
  switch (!0) {
12861
12860
  case s.isCreating.value:
12862
- return (q = E.value) != null ? q : [];
12861
+ return (H = E.value) != null ? H : [];
12863
12862
  case s.isUpdating.value:
12864
12863
  return (W = m.value) != null ? W : [];
12865
12864
  case s.isCopying.value:
@@ -12869,10 +12868,10 @@ const getProps$r = () => ({
12869
12868
  }
12870
12869
  return [];
12871
12870
  }), K = computed(() => {
12872
- var q, W, X;
12871
+ var H, W, X;
12873
12872
  switch (!0) {
12874
12873
  case s.isCreating.value:
12875
- return (q = T.value) != null ? q : [];
12874
+ return (H = T.value) != null ? H : [];
12876
12875
  case s.isUpdating.value:
12877
12876
  return (W = A.value) != null ? W : [];
12878
12877
  case s.isCopying.value:
@@ -12882,57 +12881,57 @@ const getProps$r = () => ({
12882
12881
  }
12883
12882
  return [];
12884
12883
  }), P = computed(() => {
12885
- var q, W, X, ee;
12884
+ var H, W, X, te;
12886
12885
  switch (!0) {
12887
12886
  case s.isCreating.value:
12888
- return (q = g.value) != null ? q : [];
12887
+ return (H = g.value) != null ? H : [];
12889
12888
  case s.isUpdating.value:
12890
12889
  return (W = _.value) != null ? W : [];
12891
12890
  case s.isCopying.value:
12892
12891
  return (X = v.value) != null ? X : [];
12893
12892
  case s.isDeleting.value:
12894
- return (ee = I.value) != null ? ee : [];
12893
+ return (te = I.value) != null ? te : [];
12895
12894
  }
12896
12895
  return [];
12897
- }), U = computed(() => {
12898
- var q, W, X, ee;
12896
+ }), x = computed(() => {
12897
+ var H, W, X, te;
12899
12898
  switch (!0) {
12900
12899
  case s.isCreating.value:
12901
- return (q = k.value) != null ? q : [];
12900
+ return (H = k.value) != null ? H : [];
12902
12901
  case s.isUpdating.value:
12903
12902
  return (W = C.value) != null ? W : [];
12904
12903
  case s.isCopying.value:
12905
12904
  return (X = M.value) != null ? X : [];
12906
12905
  case s.isDeleting.value:
12907
- return (ee = I.value) != null ? ee : [];
12906
+ return (te = I.value) != null ? te : [];
12908
12907
  }
12909
12908
  return [];
12910
- }), L = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), O = computed(() => L.value || d.value), R = computed(() => d.value), V = ref({
12909
+ }), N = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), O = computed(() => N.value || d.value), R = computed(() => d.value), V = ref({
12911
12910
  kgWidth: 0
12912
- }), N = computed(() => {
12913
- var q;
12914
- return !!(u.value || te.isFullscreen || ((q = b.value) == null ? void 0 : q.resizable_flg) === 0);
12915
- }), x = computed(() => {
12916
- var q, W;
12917
- return u.value ? 398 : (W = (q = b.value) == null ? void 0 : q.min_width) != null ? W : DEFAULT_MIN_WIDTH;
12918
- }), $ = computed(() => {
12919
- var q, W;
12920
- return u.value ? 398 : (W = (q = b.value) == null ? void 0 : q.max_width) != null ? W : DEFAULT_MAX_WIDTH;
12921
- }), F = computed(() => u.value ? 398 : V.value.kgWidth), H = ref(null);
12922
- _useResizeObserver(H);
12923
- const Q = _useTitle(), J = computed(() => u.value ? 400 : V.value.kgWidth && V.value.kgWidth > 0 ? "auto" : 0), re = computed(() => J.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), te = reactive({
12911
+ }), F = computed(() => {
12912
+ var H;
12913
+ return !!(u.value || ee.isFullscreen || ((H = b.value) == null ? void 0 : H.resizable_flg) === 0);
12914
+ }), U = computed(() => {
12915
+ var H, W;
12916
+ return u.value ? 398 : (W = (H = b.value) == null ? void 0 : H.min_width) != null ? W : DEFAULT_MIN_WIDTH;
12917
+ }), L = computed(() => {
12918
+ var H, W;
12919
+ return u.value ? 398 : (W = (H = b.value) == null ? void 0 : H.max_width) != null ? W : DEFAULT_MAX_WIDTH;
12920
+ }), $ = computed(() => u.value ? 398 : V.value.kgWidth), q = ref(null);
12921
+ _useResizeObserver(q);
12922
+ const z = _useTitle(), J = computed(() => u.value ? 400 : V.value.kgWidth && V.value.kgWidth > 0 ? "auto" : 0), re = computed(() => J.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), ee = reactive({
12924
12923
  isFullscreen: !1
12925
12924
  }), {
12926
- getClass: ie
12927
- } = _useClass(e, te), {
12928
- getLayout: _e
12925
+ getClass: oe
12926
+ } = _useClass(e, ee), {
12927
+ getLayout: ue
12929
12928
  } = _useLayout(), {
12930
- getDefaultWidth: de
12929
+ getDefaultWidth: ae
12931
12930
  } = _useDefaultWidth(), ne = computed(() => {
12932
- var q, W, X;
12933
- switch (_e.value) {
12931
+ var H, W, X;
12932
+ switch (ue.value) {
12934
12933
  case "horizontal":
12935
- switch ((q = b.value) == null ? void 0 : q.label_col_unit) {
12934
+ switch ((H = b.value) == null ? void 0 : H.label_col_unit) {
12936
12935
  case KG_WIDTH_UNIT.SPAN:
12937
12936
  return {
12938
12937
  span: (W = b.value) == null ? void 0 : W.label_col
@@ -12949,10 +12948,10 @@ const getProps$r = () => ({
12949
12948
  return;
12950
12949
  }
12951
12950
  }), B = computed(() => {
12952
- var q, W;
12953
- switch (_e.value) {
12951
+ var H, W;
12952
+ switch (ue.value) {
12954
12953
  case "horizontal":
12955
- switch ((q = b.value) == null ? void 0 : q.label_col_unit) {
12954
+ switch ((H = b.value) == null ? void 0 : H.label_col_unit) {
12956
12955
  case KG_WIDTH_UNIT.SPAN:
12957
12956
  return {
12958
12957
  span: 24 - ((W = b.value) == null ? void 0 : W.label_col)
@@ -12975,20 +12974,20 @@ const getProps$r = () => ({
12975
12974
  return s.varSubmitConfigProps.value["footer.ok-button.text-var-name.deleting"] ? s.t(s.varSubmitConfigProps.value["footer.ok-button.text-var-name.deleting"]).value : n.t("kg.delete");
12976
12975
  }
12977
12976
  return n.t("kg.save");
12978
- }), z = computed(() => l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL && !te.isFullscreen);
12977
+ }), Q = computed(() => l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL && !ee.isFullscreen);
12979
12978
  ((Se = (Me = (ke = n.option.value) == null ? void 0 : ke.KgModal) == null ? void 0 : Me.drag) == null ? void 0 : Se.on) === !0 && useKgDragModal({
12980
12979
  visible: re,
12981
- draggable: z,
12980
+ draggable: Q,
12982
12981
  destroyOnClose: ref(!0),
12983
12982
  containerElementSelector: ".ant-drawer-content-wrapper",
12984
12983
  handleElementSelector: ".ant-drawer-header",
12985
12984
  contentElementSelector: ".ant-drawer-content-wrapper"
12986
- }), watch(re, (q, W) => {
12987
- q === !0 && Y(), W === !0 && q === !1 && Z();
12985
+ }), watch(re, (H, W) => {
12986
+ H === !0 && Y(), W === !0 && H === !1 && Z();
12988
12987
  }, {
12989
12988
  immediate: !0
12990
- }), watch(de, (q) => {
12991
- q && (V.value.kgWidth = q);
12989
+ }), watch(ae, (H) => {
12990
+ H && (V.value.kgWidth = H);
12992
12991
  }, {
12993
12992
  immediate: !0
12994
12993
  });
@@ -13001,9 +13000,9 @@ const getProps$r = () => ({
13001
13000
  row: o.selectedRow.value
13002
13001
  }))
13003
13002
  return new Promise((W, X) => {
13004
- var se;
13005
- const ee = watch(l.model, async (oe) => {
13006
- oe && Object.keys(oe).length > 0 && (setTimeout(() => ee()), await l.store.emit(s.formID, "open", {
13003
+ var ie;
13004
+ const te = watch(l.model, async (le) => {
13005
+ le && Object.keys(le).length > 0 && (setTimeout(() => te()), await l.store.emit(s.formID, "open", {
13007
13006
  isCreating: s.isCreating.value,
13008
13007
  isUpdating: s.isUpdating.value,
13009
13008
  isCopying: s.isCopying.value,
@@ -13014,13 +13013,13 @@ const getProps$r = () => ({
13014
13013
  }, {
13015
13014
  immediate: !0
13016
13015
  });
13017
- ((se = b.value) == null ? void 0 : se.dft_fullscreen_flg) === 1 && !u.value && (te.isFullscreen = !0);
13016
+ ((ie = b.value) == null ? void 0 : ie.dft_fullscreen_flg) === 1 && !u.value && (ee.isFullscreen = !0);
13018
13017
  });
13019
13018
  }
13020
13019
  async function Z() {
13021
- V.value.kgWidth = de.value, te.isFullscreen = !1, await l.store.emit(s.formID, "close", null);
13020
+ V.value.kgWidth = ae.value, ee.isFullscreen = !1, await l.store.emit(s.formID, "close", null);
13022
13021
  }
13023
- async function ce() {
13022
+ async function ge() {
13024
13023
  switch (!0) {
13025
13024
  case s.isCreating.value:
13026
13025
  s.store.setIsCreating(s.formID, !1);
@@ -13036,8 +13035,8 @@ const getProps$r = () => ({
13036
13035
  break;
13037
13036
  }
13038
13037
  }
13039
- async function le() {
13040
- var q, W;
13038
+ async function ce() {
13039
+ var H, W;
13041
13040
  try {
13042
13041
  if (!l.formRef.value || await l.store.emit(s.formID, "beforeOk", {
13043
13042
  isCreating: s.isCreating.value,
@@ -13050,9 +13049,9 @@ const getProps$r = () => ({
13050
13049
  }))
13051
13050
  return;
13052
13051
  try {
13053
- await ((q = l.formRef.value) == null ? void 0 : q.validate());
13054
- } catch (se) {
13055
- KgUtil.throwIfNotFormError(se);
13052
+ await ((H = l.formRef.value) == null ? void 0 : H.validate());
13053
+ } catch (ie) {
13054
+ KgUtil.throwIfNotFormError(ie);
13056
13055
  }
13057
13056
  if (await ((W = l.formRef.value) == null ? void 0 : W.validate()), await l.store.emit(s.formID, "afterValidate", {
13058
13057
  isCreating: s.isCreating.value,
@@ -13066,7 +13065,7 @@ const getProps$r = () => ({
13066
13065
  return;
13067
13066
  switch (!0) {
13068
13067
  case s.isCreating.value:
13069
- await ge();
13068
+ await fe();
13070
13069
  break;
13071
13070
  case s.isUpdating.value:
13072
13071
  await he();
@@ -13082,11 +13081,11 @@ const getProps$r = () => ({
13082
13081
  KgUtil.throwIfNotFormError(X);
13083
13082
  }
13084
13083
  }
13085
- async function ge() {
13086
- var q, W, X, ee, se, oe, ue;
13084
+ async function fe() {
13085
+ var H, W, X, te, ie, le, de;
13087
13086
  s.store.setIsCreatingRequesting(s.formID, !0);
13088
13087
  try {
13089
- let ae = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (q = s.varButtonCreate.value) == null ? void 0 : q.cmd_prm) != null ? W : ""), s.formID, r)), pe = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
13088
+ let se = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (H = s.varButtonCreate.value) == null ? void 0 : H.cmd_prm) != null ? W : ""), s.formID, r)), pe = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
13090
13089
  if (await l.store.emit(s.formID, "beforeRequest", {
13091
13090
  isCreating: s.isCreating.value,
13092
13091
  isUpdating: s.isUpdating.value,
@@ -13095,20 +13094,20 @@ const getProps$r = () => ({
13095
13094
  row: o.selectedFirstRow.value,
13096
13095
  rows: o.selectedRows.value,
13097
13096
  model: l.model,
13098
- params: ae,
13097
+ params: se,
13099
13098
  data: pe
13100
13099
  }))
13101
13100
  return;
13102
- const fe = (X = s.varButtonCreate.value) == null ? void 0 : X.cmd;
13103
- if (!fe)
13101
+ const _e = (X = s.varButtonCreate.value) == null ? void 0 : X.cmd;
13102
+ if (!_e)
13104
13103
  throw message.error(n.t("\u300C\u521B\u5EFA\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u521B\u5EFA\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
13105
13104
  const me = await httpClient().request({
13106
- url: fe,
13107
- method: (se = (ee = s.varButtonCreate.value) == null ? void 0 : ee.cmd_method) != null ? se : "POST",
13108
- params: ae.value,
13105
+ url: _e,
13106
+ method: (ie = (te = s.varButtonCreate.value) == null ? void 0 : te.cmd_method) != null ? ie : "POST",
13107
+ params: se.value,
13109
13108
  data: pe.value
13110
13109
  });
13111
- ((oe = s.varButtonCreate.value) == null ? void 0 : oe.show_success_message_flg) !== 0 && message.success(Q.title.value + n.t("kg.succeed")), s.store.setIsCreating(s.formID, !1), ((ue = s.varButtonCreate.value) == null ? void 0 : ue.reload_all_after_done_flg) !== 0 && c.search({
13110
+ ((le = s.varButtonCreate.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(z.title.value + n.t("kg.succeed")), s.store.setIsCreating(s.formID, !1), ((de = s.varButtonCreate.value) == null ? void 0 : de.reload_all_after_done_flg) !== 0 && c.search({
13112
13111
  isSearchFirstPage: !0
13113
13112
  }), await l.store.emit(s.formID, "ok", {
13114
13113
  isCreating: !0,
@@ -13119,17 +13118,17 @@ const getProps$r = () => ({
13119
13118
  model: l.model,
13120
13119
  result: me
13121
13120
  });
13122
- } catch (ae) {
13123
- console.error(ae), l.store.emit(s.formID, "error", ae);
13121
+ } catch (se) {
13122
+ console.error(se), l.store.emit(s.formID, "error", se);
13124
13123
  } finally {
13125
13124
  s.store.setIsCreatingRequesting(s.formID, !1);
13126
13125
  }
13127
13126
  }
13128
13127
  async function he() {
13129
- var q, W, X, ee, se, oe, ue;
13128
+ var H, W, X, te, ie, le, de;
13130
13129
  try {
13131
13130
  s.store.setIsUpdatingRequesting(s.formID, !0);
13132
- let ae = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (q = s.varButtonUpdate.value) == null ? void 0 : q.cmd_prm) != null ? W : ""), s.formID, r)), pe = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
13131
+ let se = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (H = s.varButtonUpdate.value) == null ? void 0 : H.cmd_prm) != null ? W : ""), s.formID, r)), pe = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
13133
13132
  if (await l.store.emit(s.formID, "beforeRequest", {
13134
13133
  isCreating: s.isCreating.value,
13135
13134
  isUpdating: s.isUpdating.value,
@@ -13138,20 +13137,20 @@ const getProps$r = () => ({
13138
13137
  row: o.selectedRow.value,
13139
13138
  rows: o.selectedRows.value,
13140
13139
  model: l.model,
13141
- params: ae,
13140
+ params: se,
13142
13141
  data: pe
13143
13142
  }))
13144
13143
  return;
13145
- const fe = (X = s.varButtonUpdate.value) == null ? void 0 : X.cmd;
13146
- if (!fe)
13144
+ const _e = (X = s.varButtonUpdate.value) == null ? void 0 : X.cmd;
13145
+ if (!_e)
13147
13146
  throw message.error(n.t("\u300C\u66F4\u65B0\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u66F4\u65B0\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
13148
13147
  const me = await httpClient().request({
13149
- url: fe,
13150
- method: (se = (ee = s.varButtonUpdate.value) == null ? void 0 : ee.cmd_method) != null ? se : "POST",
13151
- params: ae.value,
13148
+ url: _e,
13149
+ method: (ie = (te = s.varButtonUpdate.value) == null ? void 0 : te.cmd_method) != null ? ie : "POST",
13150
+ params: se.value,
13152
13151
  data: pe.value
13153
13152
  });
13154
- ((oe = s.varButtonUpdate.value) == null ? void 0 : oe.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.setIsUpdating(s.formID, !1), ((ue = s.varButtonUpdate.value) == null ? void 0 : ue.reload_all_after_done_flg) !== 0 && c.search({
13153
+ ((le = s.varButtonUpdate.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.setIsUpdating(s.formID, !1), ((de = s.varButtonUpdate.value) == null ? void 0 : de.reload_all_after_done_flg) !== 0 && c.search({
13155
13154
  isPreserveSelectedRows: !0
13156
13155
  }), await l.store.emit(s.formID, "ok", {
13157
13156
  isCreating: !1,
@@ -13162,21 +13161,21 @@ const getProps$r = () => ({
13162
13161
  model: l.model,
13163
13162
  result: me
13164
13163
  });
13165
- } catch (ae) {
13166
- console.error(ae), l.store.emit(s.formID, "error", ae);
13164
+ } catch (se) {
13165
+ console.error(se), l.store.emit(s.formID, "error", se);
13167
13166
  } finally {
13168
13167
  s.store.setIsUpdatingRequesting(s.formID, !1);
13169
13168
  }
13170
13169
  }
13171
13170
  async function Ce() {
13172
- var q, W, X, ee, se, oe, ue, ae, pe;
13171
+ var H, W, X, te, ie, le, de, se, pe;
13173
13172
  try {
13174
13173
  s.store.setIsCopyingRequesting(s.formID, !0);
13175
- let ve = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (q = s.varButtonCopy.value) == null ? void 0 : q.cmd_prm) != null ? W : ""), s.formID, r)), fe = ref(KgUtil.parseParams({
13174
+ let ve = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (H = s.varButtonCopy.value) == null ? void 0 : H.cmd_prm) != null ? W : ""), s.formID, r)), _e = ref(KgUtil.parseParams({
13176
13175
  ...(X = o.selectedFirstRow.value) != null ? X : {},
13177
13176
  ...toRaw(l.model.value)
13178
13177
  }, s.formID, r));
13179
- if (((ee = b.value) == null ? void 0 : ee.cpy_clear_id_flg) !== 0 && delete fe.value.id, await l.store.emit(s.formID, "beforeRequest", {
13178
+ if (((te = b.value) == null ? void 0 : te.cpy_clear_id_flg) !== 0 && delete _e.value.id, await l.store.emit(s.formID, "beforeRequest", {
13180
13179
  isCreating: s.isCreating.value,
13181
13180
  isUpdating: s.isUpdating.value,
13182
13181
  isCopying: s.isCopying.value,
@@ -13185,19 +13184,19 @@ const getProps$r = () => ({
13185
13184
  rows: o.selectedRows.value,
13186
13185
  model: l.model,
13187
13186
  params: ve,
13188
- data: fe
13187
+ data: _e
13189
13188
  }))
13190
13189
  return;
13191
- const Te = (se = s.varButtonCopy.value) == null ? void 0 : se.cmd;
13190
+ const Te = (ie = s.varButtonCopy.value) == null ? void 0 : ie.cmd;
13192
13191
  if (!Te)
13193
13192
  throw message.error(n.t("\u300C\u590D\u5236\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u590D\u5236\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
13194
13193
  const we = await httpClient().request({
13195
13194
  url: Te,
13196
- method: (ue = (oe = s.varButtonCopy.value) == null ? void 0 : oe.cmd_method) != null ? ue : "POST",
13195
+ method: (de = (le = s.varButtonCopy.value) == null ? void 0 : le.cmd_method) != null ? de : "POST",
13197
13196
  params: ve.value,
13198
- data: fe.value
13197
+ data: _e.value
13199
13198
  });
13200
- ((ae = s.varButtonCopy.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.setIsCopying(s.formID, !1), ((pe = s.varButtonCopy.value) == null ? void 0 : pe.reload_all_after_done_flg) !== 0 && c.search({
13199
+ ((se = s.varButtonCopy.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.setIsCopying(s.formID, !1), ((pe = s.varButtonCopy.value) == null ? void 0 : pe.reload_all_after_done_flg) !== 0 && c.search({
13201
13200
  isSearchFirstPage: !0
13202
13201
  }), await l.store.emit(s.formID, "ok", {
13203
13202
  isCreating: !1,
@@ -13215,15 +13214,15 @@ const getProps$r = () => ({
13215
13214
  }
13216
13215
  }
13217
13216
  async function be() {
13218
- var q, W, X, ee, se, oe, ue, ae, pe, ve, fe;
13217
+ var H, W, X, te, ie, le, de, se, pe, ve, _e;
13219
13218
  try {
13220
13219
  s.store.setIsDeletingRequesting(s.formID, !0);
13221
- let me = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (q = s.varButtonDelete.value) == null ? void 0 : q.cmd_prm) != null ? W : ""), s.formID, r)), Te = ref((X = o.selectedRows.value) != null ? X : []);
13222
- if (((ee = s.varButtonDelete.value) == null ? void 0 : ee.del_param_clm) !== "__kg__new_delete_param" && (me = ref({
13223
- ids: (oe = (se = o.selectedRows.value) == null ? void 0 : se.map((Le) => {
13220
+ let me = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (H = s.varButtonDelete.value) == null ? void 0 : H.cmd_prm) != null ? W : ""), s.formID, r)), Te = ref((X = o.selectedRows.value) != null ? X : []);
13221
+ if (((te = s.varButtonDelete.value) == null ? void 0 : te.del_param_clm) !== "__kg__new_delete_param" && (me = ref({
13222
+ ids: (le = (ie = o.selectedRows.value) == null ? void 0 : ie.map((Le) => {
13224
13223
  var Re, Ke, Pe;
13225
13224
  return (Pe = Le[(Ke = (Re = s.varButtonDelete.value) == null ? void 0 : Re.del_param_clm) != null ? Ke : "id"]) != null ? Pe : "";
13226
- })) != null ? oe : []
13225
+ })) != null ? le : []
13227
13226
  })), await l.store.emit(s.formID, "beforeRequest", {
13228
13227
  isCreating: s.isCreating.value,
13229
13228
  isUpdating: s.isUpdating.value,
@@ -13236,10 +13235,10 @@ const getProps$r = () => ({
13236
13235
  data: Te
13237
13236
  }))
13238
13237
  return;
13239
- const Oe = (ue = s.varButtonDelete.value) == null ? void 0 : ue.cmd;
13238
+ const Oe = (de = s.varButtonDelete.value) == null ? void 0 : de.cmd;
13240
13239
  if (!Oe)
13241
13240
  throw message.error(n.t("\u300C\u5220\u9664\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u5220\u9664\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
13242
- const Ve = (pe = (ae = s.varButtonDelete.value) == null ? void 0 : ae.cmd_method) != null ? pe : "POST", Ne = await httpClient().request({
13241
+ const Ve = (pe = (se = s.varButtonDelete.value) == null ? void 0 : se.cmd_method) != null ? pe : "POST", Ne = await httpClient().request({
13243
13242
  url: Oe,
13244
13243
  method: Ve,
13245
13244
  params: me.value,
@@ -13247,7 +13246,7 @@ const getProps$r = () => ({
13247
13246
  }, {
13248
13247
  joinParamsToUrl: !0
13249
13248
  });
13250
- ((ve = s.varButtonDelete.value) == null ? void 0 : ve.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.setIsDeleting(s.formID, !1), ((fe = s.varButtonDelete.value) == null ? void 0 : fe.reload_all_after_done_flg) !== 0 && c.search({
13249
+ ((ve = s.varButtonDelete.value) == null ? void 0 : ve.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.setIsDeleting(s.formID, !1), ((_e = s.varButtonDelete.value) == null ? void 0 : _e.reload_all_after_done_flg) !== 0 && c.search({
13251
13250
  isSearchFirstPage: !0
13252
13251
  }), await l.store.emit(s.formID, "ok", {
13253
13252
  isCreating: !1,
@@ -13267,27 +13266,27 @@ const getProps$r = () => ({
13267
13266
  s.store.setIsDeletingRequesting(s.formID, !1);
13268
13267
  }
13269
13268
  }
13270
- function ye(q) {
13271
- var ee, se, oe, ue;
13272
- const W = (se = (ee = a == null ? void 0 : a.KgSubmit) == null ? void 0 : ee["KgForm.Item.control"]) == null ? void 0 : se[q.var_nam], X = (ue = (oe = a == null ? void 0 : a.KgSubmit) == null ? void 0 : oe["KgForm.Item.controlRight"]) == null ? void 0 : ue[q.var_nam];
13269
+ function ye(H) {
13270
+ var te, ie, le, de;
13271
+ const W = (ie = (te = a == null ? void 0 : a.KgSubmit) == null ? void 0 : te["KgForm.Item.control"]) == null ? void 0 : ie[H.var_nam], X = (de = (le = a == null ? void 0 : a.KgSubmit) == null ? void 0 : le["KgForm.Item.controlRight"]) == null ? void 0 : de[H.var_nam];
13273
13272
  return createVNode(KgForm.Item, {
13274
- kgVarName: q.var_nam,
13273
+ kgVarName: H.var_nam,
13275
13274
  kgContext: KG_FORM_CONTEXT.SUBMIT,
13276
- kgRules: l.rules.value[q.var_nam],
13277
- onKgSubmit: le
13275
+ kgRules: l.rules.value[H.var_nam],
13276
+ onKgSubmit: ce
13278
13277
  }, {
13279
- control: isFunction$2(W) ? (ae) => W(ae) : void 0,
13280
- controlRight: isFunction$2(X) ? (ae) => X(ae) : void 0
13278
+ control: isFunction$2(W) ? (se) => W(se) : void 0,
13279
+ controlRight: isFunction$2(X) ? (se) => X(se) : void 0
13281
13280
  });
13282
13281
  }
13283
13282
  function De() {
13284
- let q, W;
13283
+ let H, W;
13285
13284
  return createVNode(KgResizable, {
13286
13285
  kgType: l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
13287
- kgMinWidth: x.value,
13288
- kgMaxWidth: $.value,
13289
- kgWidth: F.value,
13290
- kgDisabled: N.value,
13286
+ kgMinWidth: U.value,
13287
+ kgMaxWidth: L.value,
13288
+ kgWidth: $.value,
13289
+ kgDisabled: F.value,
13291
13290
  "onUpdate:kgWidth": (X) => V.value.kgWidth = X
13292
13291
  }, {
13293
13292
  default: () => [createVNode(Spin, {
@@ -13298,17 +13297,17 @@ const getProps$r = () => ({
13298
13297
  return [createVNode(KgForm, {
13299
13298
  ref: l.formRef,
13300
13299
  model: (X = l.model.value) != null ? X : void 0,
13301
- layout: _e.value,
13300
+ layout: ue.value,
13302
13301
  labelCol: ne.value,
13303
13302
  wrapperCol: B.value
13304
13303
  }, {
13305
13304
  default: () => [createVNode("div", {
13306
- ref: H
13305
+ ref: q
13307
13306
  }, [D.value.length > 0 && createVNode(Row, {
13308
13307
  gutter: 12
13309
- }, _isSlot$6(q = D.value.map(ye)) ? q : {
13310
- default: () => [q]
13311
- }), K.value.length > 0 && U.value.length > 0 && createVNode(Divider, null, null), P.value.length > 0 && createVNode(Row, {
13308
+ }, _isSlot$6(H = D.value.map(ye)) ? H : {
13309
+ default: () => [H]
13310
+ }), K.value.length > 0 && x.value.length > 0 && createVNode(Divider, null, null), P.value.length > 0 && createVNode(Row, {
13312
13311
  gutter: 12
13313
13312
  }, _isSlot$6(W = P.value.map(ye)) ? W : {
13314
13313
  default: () => [W]
@@ -13321,36 +13320,36 @@ const getProps$r = () => ({
13321
13320
  });
13322
13321
  }
13323
13322
  function Ee() {
13324
- let q;
13323
+ let H;
13325
13324
  return createVNode("div", null, [createVNode(Button, {
13326
13325
  type: "primary",
13327
13326
  ghost: !O.value,
13328
13327
  disabled: O.value,
13329
- onClick: ce
13330
- }, _isSlot$6(q = n.t("kg.cancel")) ? q : {
13331
- default: () => [q]
13328
+ onClick: ge
13329
+ }, _isSlot$6(H = n.t("kg.cancel")) ? H : {
13330
+ default: () => [H]
13332
13331
  }), createVNode(Button, {
13333
13332
  type: "primary",
13334
13333
  disabled: R.value,
13335
- loading: L.value,
13334
+ loading: N.value,
13336
13335
  danger: !!s.isDeleting.value,
13337
- onClick: le
13336
+ onClick: ce
13338
13337
  }, {
13339
13338
  default: () => [G.value]
13340
13339
  })]);
13341
13340
  }
13342
13341
  function Ae() {
13343
13342
  return createVNode("div", {
13344
- title: Q.title.value
13345
- }, [Q.title.value]);
13343
+ title: z.title.value
13344
+ }, [z.title.value]);
13346
13345
  }
13347
13346
  function Ie() {
13348
13347
  return createVNode(KgSubmitHeader, {
13349
- isFullscreen: te.isFullscreen,
13350
- "onUpdate:isFullscreen": (q) => te.isFullscreen = q,
13348
+ isFullscreen: ee.isFullscreen,
13349
+ "onUpdate:isFullscreen": (H) => ee.isFullscreen = H,
13351
13350
  kgShowFullscreenButton: !u.value,
13352
13351
  kgShowConfigButton: !u.value && e.kgShowConfigButton,
13353
- onKgCancel: ce
13352
+ onKgCancel: ge
13354
13353
  }, null);
13355
13354
  }
13356
13355
  return onUnmounted(async () => {
@@ -13363,7 +13362,7 @@ const getProps$r = () => ({
13363
13362
  keyboard: !1,
13364
13363
  destroyOnClose: !0,
13365
13364
  width: J.value,
13366
- class: ie.value,
13365
+ class: oe.value,
13367
13366
  "kg-frm_id": s.formID
13368
13367
  }, {
13369
13368
  title: Ae,
@@ -14932,10 +14931,10 @@ function useKgVar(e, t, r = 0) {
14932
14931
  }), onUnmounted(() => {
14933
14932
  i.dispose(s);
14934
14933
  }));
14935
- const o = computed(() => i.isRetrieving(s)), l = computed(() => i.isRetrievingVarProfileMaster(s)), c = computed(() => i.isRetrievingVarGridMaster(s)), u = computed(() => i.isSearched(s)), d = computed(() => i.isCreating(s)), b = computed(() => i.isCreatingRequesting(s)), E = computed(() => i.isUpdating(s)), g = computed(() => i.isUpdatingRequesting(s)), m = computed(() => i.isCopying(s)), _ = computed(() => i.isCopyingRequesting(s)), y = computed(() => i.isDeleting(s)), v = computed(() => i.isDeletingRequesting(s)), T = computed(() => i.isOtherRequesting(s)), k = computed(() => i.getVarButtons(s)), A = computed(() => i.getVarButtonSearch(s)), C = computed(() => i.getVarButtonCreate(s)), w = computed(() => i.getVarButtonUpdate(s)), M = computed(() => i.getVarButtonCopy(s)), I = computed(() => i.getVarButtonDelete(s)), D = computed(() => i.getVarProfileMasters(s)), K = computed(() => i.getCurrentVarProfileMasterID(s)), P = computed(() => i.getCurrentVarProfileMaster(s)), U = computed(() => {
14936
- var F, H;
14937
- return (H = (F = P.value) == null ? void 0 : F.varProfileDetails) != null ? H : null;
14938
- }), L = computed(() => i.getVarGridConfig(s)), O = computed(() => i.getVarGridMasters(s)), R = computed(() => i.getCurrentVarGridMasterID(s)), V = computed(() => i.getCurrentVarGridMaster(s)), N = computed(() => i.getSystemVarGridDetails(s)), x = computed(() => i.getCurrentVarGridDetails(s)), $ = computed(() => i.getVarSubmitConfigProps(s));
14934
+ const o = computed(() => i.isRetrieving(s)), l = computed(() => i.isRetrievingVarProfileMaster(s)), c = computed(() => i.isRetrievingVarGridMaster(s)), u = computed(() => i.isSearched(s)), d = computed(() => i.isCreating(s)), b = computed(() => i.isCreatingRequesting(s)), E = computed(() => i.isUpdating(s)), g = computed(() => i.isUpdatingRequesting(s)), m = computed(() => i.isCopying(s)), _ = computed(() => i.isCopyingRequesting(s)), y = computed(() => i.isDeleting(s)), v = computed(() => i.isDeletingRequesting(s)), T = computed(() => i.isOtherRequesting(s)), k = computed(() => i.getVarButtons(s)), A = computed(() => i.getVarButtonSearch(s)), C = computed(() => i.getVarButtonCreate(s)), w = computed(() => i.getVarButtonUpdate(s)), M = computed(() => i.getVarButtonCopy(s)), I = computed(() => i.getVarButtonDelete(s)), D = computed(() => i.getVarProfileMasters(s)), K = computed(() => i.getCurrentVarProfileMasterID(s)), P = computed(() => i.getCurrentVarProfileMaster(s)), x = computed(() => {
14935
+ var $, q;
14936
+ return (q = ($ = P.value) == null ? void 0 : $.varProfileDetails) != null ? q : null;
14937
+ }), N = computed(() => i.getVarGridConfig(s)), O = computed(() => i.getVarGridMasters(s)), R = computed(() => i.getCurrentVarGridMasterID(s)), V = computed(() => i.getCurrentVarGridMaster(s)), F = computed(() => i.getSystemVarGridDetails(s)), U = computed(() => i.getCurrentVarGridDetails(s)), L = computed(() => i.getVarSubmitConfigProps(s));
14939
14938
  return {
14940
14939
  formID: s,
14941
14940
  store: i,
@@ -14961,31 +14960,31 @@ function useKgVar(e, t, r = 0) {
14961
14960
  varProfileMasters: D,
14962
14961
  currentVarProfileMasterID: K,
14963
14962
  currentVarProfileMaster: P,
14964
- currentVarProfileDetails: U,
14965
- varGridConfig: L,
14963
+ currentVarProfileDetails: x,
14964
+ varGridConfig: N,
14966
14965
  varGridMasters: O,
14967
14966
  currentVarGridMasteID: R,
14968
14967
  currentVarGridMaster: V,
14969
- systemVarGridDetails: N,
14970
- currentVarGridDetails: x,
14971
- varSubmitConfigProps: $,
14972
- setIsCreating(F) {
14973
- i.setIsCreating(s, F);
14968
+ systemVarGridDetails: F,
14969
+ currentVarGridDetails: U,
14970
+ varSubmitConfigProps: L,
14971
+ setIsCreating($) {
14972
+ i.setIsCreating(s, $);
14974
14973
  },
14975
- setIsUpdating(F) {
14976
- i.setIsUpdating(s, F);
14974
+ setIsUpdating($) {
14975
+ i.setIsUpdating(s, $);
14977
14976
  },
14978
- setIsCopying(F) {
14979
- i.setIsCopying(s, F);
14977
+ setIsCopying($) {
14978
+ i.setIsCopying(s, $);
14980
14979
  },
14981
- setIsDeleting(F) {
14982
- i.setIsDeleting(s, F);
14980
+ setIsDeleting($) {
14981
+ i.setIsDeleting(s, $);
14983
14982
  },
14984
- patchVarSubmitField(F, H, Q) {
14985
- return i.patchVarSubmitField(s, F, H, Q);
14983
+ patchVarSubmitField($, q, z) {
14984
+ return i.patchVarSubmitField(s, $, q, z);
14986
14985
  },
14987
- t(F) {
14988
- return computed(() => i.t(s, F));
14986
+ t($) {
14987
+ return computed(() => i.t(s, $));
14989
14988
  },
14990
14989
  onRetrieve: onEventFactory(s, i, "retrieve")
14991
14990
  };
@@ -15715,7 +15714,7 @@ const getProps$p = () => ({
15715
15714
  if (((w = e.kgButton) == null ? void 0 : w.re_select_after_reload_flg) !== 0 && s.onAfterSearch(async ({
15716
15715
  datas: D
15717
15716
  }) => {
15718
- const K = D.value, P = intersectionWith$1(K, y != null ? y : [], (U, L) => (U == null ? void 0 : U[s.id.value]) === (L == null ? void 0 : L[s.id.value]));
15717
+ const K = D.value, P = intersectionWith$1(K, y != null ? y : [], (x, N) => (x == null ? void 0 : x[s.id.value]) === (N == null ? void 0 : N[s.id.value]));
15719
15718
  return P.length > 0 && s.store.setSelectedRows(r.formID, P), !1;
15720
15719
  }, !0), await n.store.emit(r.formID, "otherOk", {
15721
15720
  button: e.kgButton,
@@ -16659,11 +16658,11 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
16659
16658
  }
16660
16659
  });
16661
16660
  l.value = l.value.map((P) => {
16662
- var L;
16663
- const U = (L = D == null ? void 0 : D.varProfileDetails) == null ? void 0 : L.find((O) => O.var_nam === P.var_nam);
16664
- return U ? {
16661
+ var N;
16662
+ const x = (N = D == null ? void 0 : D.varProfileDetails) == null ? void 0 : N.find((O) => O.var_nam === P.var_nam);
16663
+ return x ? {
16665
16664
  ...P,
16666
- ...U,
16665
+ ...x,
16667
16666
  id: P.id
16668
16667
  } : P;
16669
16668
  });
@@ -17004,23 +17003,23 @@ const KgSearch$1 = "", getProps$j = () => ({
17004
17003
  });
17005
17004
  _useLayoutHeaderResizeObserver();
17006
17005
  const _ = _useFormModel(E, g, m), y = computed(() => {
17007
- var $, F, H, Q;
17008
- if (!isNil((F = ($ = r == null ? void 0 : r.value) == null ? void 0 : $.KgSearch) == null ? void 0 : F.kgDisabled))
17009
- return (Q = (H = r == null ? void 0 : r.value) == null ? void 0 : H.KgSearch) == null ? void 0 : Q.kgDisabled;
17006
+ var L, $, q, z;
17007
+ if (!isNil(($ = (L = r == null ? void 0 : r.value) == null ? void 0 : L.KgSearch) == null ? void 0 : $.kgDisabled))
17008
+ return (z = (q = r == null ? void 0 : r.value) == null ? void 0 : q.KgSearch) == null ? void 0 : z.kgDisabled;
17010
17009
  if (!isNil(e.kgDisabled))
17011
17010
  return e.kgDisabled;
17012
17011
  }), v = computed(() => {
17013
- var $, F;
17014
- return !!(y.value || i.isRetrieving.value || KgAuthUtil.getPermissionType(($ = n.varButtonSearch.value) == null ? void 0 : $.permission_code) === 2 && !a.p((F = n.varButtonSearch.value) == null ? void 0 : F.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
17012
+ var L, $;
17013
+ return !!(y.value || i.isRetrieving.value || KgAuthUtil.getPermissionType((L = n.varButtonSearch.value) == null ? void 0 : L.permission_code) === 2 && !a.p(($ = n.varButtonSearch.value) == null ? void 0 : $.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
17015
17014
  }), T = computed(() => !!(y.value || i.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), k = computed(() => !!i.isRetrieving.value), A = ref({
17016
17015
  visible: !1
17017
17016
  }), C = computed(() => m.value.kgHeight === b.value), w = computed(() => {
17018
- var $, F, H;
17019
- if (n.t(($ = n.varButtonSearch.value) == null ? void 0 : $.var_nam).value !== ((F = n.varButtonSearch.value) == null ? void 0 : F.var_nam))
17020
- return n.t((H = n.varButtonSearch.value) == null ? void 0 : H.var_nam).value;
17017
+ var L, $, q;
17018
+ if (n.t((L = n.varButtonSearch.value) == null ? void 0 : L.var_nam).value !== (($ = n.varButtonSearch.value) == null ? void 0 : $.var_nam))
17019
+ return n.t((q = n.varButtonSearch.value) == null ? void 0 : q.var_nam).value;
17021
17020
  }), M = computed(() => {
17022
- var $;
17023
- switch (($ = n.varButtonSearch.value) == null ? void 0 : $.primary_flg) {
17021
+ var L;
17022
+ switch ((L = n.varButtonSearch.value) == null ? void 0 : L.primary_flg) {
17024
17023
  case 1:
17025
17024
  return !0;
17026
17025
  case 0:
@@ -17029,16 +17028,16 @@ const KgSearch$1 = "", getProps$j = () => ({
17029
17028
  return !0;
17030
17029
  }
17031
17030
  }), I = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), D = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), K = computed(() => {
17032
- let $ = "kg-search";
17033
- return o.value && ($ += " kg-search--visible"), c.value && ($ += " kg-search--teleport"), $;
17031
+ let L = "kg-search";
17032
+ return o.value && (L += " kg-search--visible"), c.value && (L += " kg-search--teleport"), L;
17034
17033
  });
17035
- async function P($ = {}) {
17036
- var F, H;
17034
+ async function P(L = {}) {
17035
+ var $, q;
17037
17036
  if (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6267\u884C\u5F00\u59CB.`), i.isRetrieving.value) {
17038
17037
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u67E5\u8BE2.`);
17039
17038
  return;
17040
17039
  }
17041
- if (KgAuthUtil.getPermissionType((F = n.varButtonSearch.value) == null ? void 0 : F.permission_code) === 2 && !a.p((H = n.varButtonSearch.value) == null ? void 0 : H.permission_code)) {
17040
+ if (KgAuthUtil.getPermissionType(($ = n.varButtonSearch.value) == null ? void 0 : $.permission_code) === 2 && !a.p((q = n.varButtonSearch.value) == null ? void 0 : q.permission_code)) {
17042
17041
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6CA1\u6709\u6743\u9650.`);
17043
17042
  return;
17044
17043
  }
@@ -17047,55 +17046,55 @@ const KgSearch$1 = "", getProps$j = () => ({
17047
17046
  return;
17048
17047
  }
17049
17048
  o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), g.value && g.value.validate().then(async () => {
17050
- await s.store.emit(n.formID, "search", $);
17051
- }).catch((Q) => {
17049
+ await s.store.emit(n.formID, "search", L);
17050
+ }).catch((z) => {
17052
17051
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
17053
- e: Q
17052
+ e: z
17054
17053
  });
17055
- })) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search", $));
17054
+ })) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search", L));
17056
17055
  }
17057
17056
  s.store.setSearchFn(n.formID, P);
17058
- async function U() {
17057
+ async function x() {
17059
17058
  _.initFormModel(), o.value ? g.value && g.value.validate().then(async () => {
17060
17059
  await s.store.emit(n.formID, "reset", {});
17061
- }).catch(($) => {
17060
+ }).catch((L) => {
17062
17061
  KgLogger.debug(`${n.formID} | KgSearch | onReset() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
17063
- e: $
17062
+ e: L
17064
17063
  });
17065
17064
  }) : await s.store.emit(n.formID, "reset", {});
17066
17065
  }
17067
- s.store.setResetFn(n.formID, U);
17068
- function L() {
17066
+ s.store.setResetFn(n.formID, x);
17067
+ function N() {
17069
17068
  return P({
17070
17069
  isSearchFirstPage: !0
17071
17070
  }), Promise.resolve(!0);
17072
17071
  }
17073
17072
  function O() {
17074
- var $;
17073
+ var L;
17075
17074
  return createVNode("div", {
17076
17075
  class: "title",
17077
- onClick: x
17078
- }, [(($ = t == null ? void 0 : t.KgSearch) == null ? void 0 : $.left) && createVNode("div", {
17076
+ onClick: U
17077
+ }, [((L = t == null ? void 0 : t.KgSearch) == null ? void 0 : L.left) && createVNode("div", {
17079
17078
  class: "kg-search-title-left",
17080
- onClick: (F) => {
17081
- F.stopPropagation(), F.preventDefault();
17079
+ onClick: ($) => {
17080
+ $.stopPropagation(), $.preventDefault();
17082
17081
  }
17083
17082
  }, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
17084
17083
  }
17085
17084
  function R() {
17086
- var $, F, H, Q;
17087
- return ((H = (F = ($ = n.varProfileMasters) == null ? void 0 : $.value) == null ? void 0 : F.length) != null ? H : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
17088
- value: (Q = n.currentVarProfileMasterID.value) != null ? Q : void 0,
17085
+ var L, $, q, z;
17086
+ return ((q = ($ = (L = n.varProfileMasters) == null ? void 0 : L.value) == null ? void 0 : $.length) != null ? q : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
17087
+ value: (z = n.currentVarProfileMasterID.value) != null ? z : void 0,
17089
17088
  "onUpdate:value": (J) => n.store.setCurrentVarProfileMasterID(n.formID, J),
17090
17089
  disabled: T.value,
17091
17090
  class: "kg-search-profile-master-select"
17092
17091
  }, {
17093
17092
  default: () => {
17094
17093
  var J, re;
17095
- return (re = (J = n.varProfileMasters) == null ? void 0 : J.value) == null ? void 0 : re.map((te) => createVNode(Select.Option, {
17096
- value: te.id
17094
+ return (re = (J = n.varProfileMasters) == null ? void 0 : J.value) == null ? void 0 : re.map((ee) => createVNode(Select.Option, {
17095
+ value: ee.id
17097
17096
  }, {
17098
- default: () => [n.t(te == null ? void 0 : te.prf_var_nam).value]
17097
+ default: () => [n.t(ee == null ? void 0 : ee.prf_var_nam).value]
17099
17098
  }));
17100
17099
  },
17101
17100
  suffixIcon: () => createVNode(CaretDownOutlined$1, {
@@ -17116,45 +17115,45 @@ const KgSearch$1 = "", getProps$j = () => ({
17116
17115
  }, null)]);
17117
17116
  }
17118
17117
  function V() {
17119
- var $, F, H;
17118
+ var L, $, q;
17120
17119
  return createVNode(Fragment, null, [R(), createVNode(Button, {
17121
17120
  type: "primary",
17122
17121
  ghost: !v.value,
17123
17122
  disabled: v.value,
17124
- onClick: U,
17123
+ onClick: x,
17125
17124
  class: "kg-search-btn-reset"
17126
17125
  }, {
17127
17126
  default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
17128
17127
  }), createVNode(KgButton.Item, {
17129
17128
  kgType: KG_BUTTON_TYPE.SEARCH,
17130
- kgVarName: ($ = n.varButtonSearch.value) == null ? void 0 : $.var_nam,
17131
- kgIcon: (F = n.varButtonSearch.value) == null ? void 0 : F.icon,
17129
+ kgVarName: (L = n.varButtonSearch.value) == null ? void 0 : L.var_nam,
17130
+ kgIcon: ($ = n.varButtonSearch.value) == null ? void 0 : $.icon,
17132
17131
  kgText: w.value,
17133
- kgColor: (H = n.varButtonSearch.value) == null ? void 0 : H.color,
17132
+ kgColor: (q = n.varButtonSearch.value) == null ? void 0 : q.color,
17134
17133
  kgPrimary: M.value,
17135
17134
  kgDisabled: v.value,
17136
17135
  kgLoading: k.value,
17137
- onKgClick: L
17136
+ onKgClick: N
17138
17137
  }, null)]);
17139
17138
  }
17140
- function N() {
17139
+ function F() {
17141
17140
  return createVNode(Spin, {
17142
17141
  spinning: D.value
17143
17142
  }, {
17144
17143
  default: () => {
17145
- var $;
17144
+ var L;
17146
17145
  return [createVNode(KgForm, {
17147
17146
  ref: g,
17148
- model: ($ = s.model.value) != null ? $ : {}
17147
+ model: (L = s.model.value) != null ? L : {}
17149
17148
  }, {
17150
17149
  default: () => [createVNode(Row, {
17151
17150
  gutter: 6
17152
17151
  }, {
17153
17152
  default: () => {
17154
- var F;
17155
- return [(F = n.currentVarProfileDetails.value) == null ? void 0 : F.map((H) => createVNode(KgForm.Item, {
17156
- key: H.var_nam,
17157
- kgVarName: H.var_nam,
17153
+ var $;
17154
+ return [($ = n.currentVarProfileDetails.value) == null ? void 0 : $.map((q) => createVNode(KgForm.Item, {
17155
+ key: q.var_nam,
17156
+ kgVarName: q.var_nam,
17158
17157
  kgContext: KG_FORM_CONTEXT.SEARCH,
17159
17158
  onKgSubmit: () => P({
17160
17159
  isSearchFirstPage: !0
@@ -17166,7 +17165,7 @@ const KgSearch$1 = "", getProps$j = () => ({
17166
17165
  }
17167
17166
  });
17168
17167
  }
17169
- function x() {
17168
+ function U() {
17170
17169
  C.value ? m.value.kgHeight = u.value : m.value.kgHeight = b.value;
17171
17170
  }
17172
17171
  return onUnmounted(async () => {
@@ -17174,7 +17173,7 @@ const KgSearch$1 = "", getProps$j = () => ({
17174
17173
  }), () => createVNode(KgResizable, {
17175
17174
  ref: E,
17176
17175
  kgHeight: m.value.kgHeight,
17177
- "onUpdate:kgHeight": ($) => m.value.kgHeight = $,
17176
+ "onUpdate:kgHeight": (L) => m.value.kgHeight = L,
17178
17177
  kgMinHeight: b.value,
17179
17178
  kgMaxHeight: d.value,
17180
17179
  kgDisabled: !l.value,
@@ -17202,7 +17201,7 @@ const KgSearch$1 = "", getProps$j = () => ({
17202
17201
  class: "ant-collapse-content ant-collapse-content-active"
17203
17202
  }, [createVNode("div", {
17204
17203
  class: "ant-collapse-content-box"
17205
- }, [N()])])])])]
17204
+ }, [F()])])])])]
17206
17205
  });
17207
17206
  }
17208
17207
  }), KgVarConfig_FormIDsModal = "", getProps$i = () => ({
@@ -17593,11 +17592,11 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17593
17592
  }, {
17594
17593
  immediate: !0
17595
17594
  }), watch(() => a.getSelectedVarCatalog, async (P) => {
17596
- var U, L;
17597
- l.value.var_text = (U = P == null ? void 0 : P.var_text) != null ? U : "", (L = o.value) == null || L.clearValidate();
17595
+ var x, N;
17596
+ l.value.var_text = (x = P == null ? void 0 : P.var_text) != null ? x : "", (N = o.value) == null || N.clearValidate();
17598
17597
  });
17599
17598
  async function v(P = !1) {
17600
- var U, L, O;
17599
+ var x, N, O;
17601
17600
  n.value = !0;
17602
17601
  try {
17603
17602
  const {
@@ -17607,19 +17606,19 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17607
17606
  pageNo: 1,
17608
17607
  pageSize: 999,
17609
17608
  frm_id: e == null ? void 0 : e.value,
17610
- var_nam: (U = a.getSelectedVar) == null ? void 0 : U.var_nam,
17609
+ var_nam: (x = a.getSelectedVar) == null ? void 0 : x.var_nam,
17611
17610
  column: "frm_id,locale_id,cust_lvl",
17612
17611
  order: "asc"
17613
17612
  }
17614
17613
  });
17615
17614
  if (u.value = null, c.value = R != null ? R : [], P) {
17616
- const V = c.value.find((N) => {
17617
- var x;
17618
- return N.id === ((x = a.getSelectedVarCatalog) == null ? void 0 : x.id);
17615
+ const V = c.value.find((F) => {
17616
+ var U;
17617
+ return F.id === ((U = a.getSelectedVarCatalog) == null ? void 0 : U.id);
17619
17618
  });
17620
17619
  a.setSelectedVarCatalog(V != null ? V : null), d.value = V != null && V.id ? [V.id] : [];
17621
17620
  } else
17622
- a.setSelectedVarCatalog((L = c.value[0]) != null ? L : null), d.value = (O = c.value[0]) != null && O.id ? [c.value[0].id] : [];
17621
+ a.setSelectedVarCatalog((N = c.value[0]) != null ? N : null), d.value = (O = c.value[0]) != null && O.id ? [c.value[0].id] : [];
17623
17622
  } catch (R) {
17624
17623
  KgLogger.debug(R == null ? void 0 : R.message);
17625
17624
  } finally {
@@ -17627,12 +17626,12 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17627
17626
  }
17628
17627
  }
17629
17628
  async function T() {
17630
- var P, U, L;
17629
+ var P, x, N;
17631
17630
  try {
17632
17631
  s.value = !0, await ((P = o.value) == null ? void 0 : P.validate());
17633
17632
  const O = new VarVariableCatalog({
17634
- ...(U = a.getSelectedVarCatalog) != null ? U : {},
17635
- var_text: (L = l.value) == null ? void 0 : L.var_text
17633
+ ...(x = a.getSelectedVarCatalog) != null ? x : {},
17634
+ var_text: (N = l.value) == null ? void 0 : N.var_text
17636
17635
  });
17637
17636
  O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add({
17638
17637
  data: O
@@ -17661,23 +17660,23 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17661
17660
  }
17662
17661
  function k({
17663
17662
  isAllForm: P,
17664
- isAllLanguage: U
17663
+ isAllLanguage: x
17665
17664
  }) {
17666
- var L, O, R;
17665
+ var N, O, R;
17667
17666
  u.value = new VarVariableCatalog({
17668
17667
  id: "",
17669
17668
  cust_lvl: KG_CUSTOM_LEVEL.L10,
17670
- grp_nam: (L = a.getSelectedVar) == null ? void 0 : L.grp_nam,
17669
+ grp_nam: (N = a.getSelectedVar) == null ? void 0 : N.grp_nam,
17671
17670
  var_nam: (O = a.getSelectedVar) == null ? void 0 : O.var_nam,
17672
17671
  frm_id: P || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
17673
- locale_id: U ? "ALL" : (R = t.locale) == null ? void 0 : R.value,
17672
+ locale_id: x ? "ALL" : (R = t.locale) == null ? void 0 : R.value,
17674
17673
  var_text: ""
17675
17674
  }), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
17676
17675
  }
17677
17676
  function A() {
17678
- var U;
17677
+ var x;
17679
17678
  c.value = without$1(c.value, u.value), u.value = null;
17680
- const P = (U = c.value[0]) != null ? U : null;
17679
+ const P = (x = c.value[0]) != null ? x : null;
17681
17680
  a.setSelectedVarCatalog(P), d.value = P ? [P.id] : [];
17682
17681
  }
17683
17682
  function C() {
@@ -17698,8 +17697,8 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17698
17697
  });
17699
17698
  }
17700
17699
  function w(P) {
17701
- var U;
17702
- ((U = a.getSelectedVarCatalog) == null ? void 0 : U.id) !== P.id && (unref(u) ? KgUtil.confirm({
17700
+ var x;
17701
+ ((x = a.getSelectedVarCatalog) == null ? void 0 : x.id) !== P.id && (unref(u) ? KgUtil.confirm({
17703
17702
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
17704
17703
  onOk: () => {
17705
17704
  c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(P)), d.value = [P.id];
@@ -17729,7 +17728,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17729
17728
  })]);
17730
17729
  }
17731
17730
  function D() {
17732
- let P, U;
17731
+ let P, x;
17733
17732
  return createVNode("div", {
17734
17733
  class: "form"
17735
17734
  }, [createVNode(Form, {
@@ -17746,7 +17745,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17746
17745
  }, {
17747
17746
  default: () => [createVNode(Textarea, {
17748
17747
  value: l.value.var_text,
17749
- "onUpdate:value": (L) => l.value.var_text = L,
17748
+ "onUpdate:value": (N) => l.value.var_text = N,
17750
17749
  disabled: !a.getSelectedVarCatalog
17751
17750
  }, null), createVNode("button", {
17752
17751
  hidden: !0
@@ -17764,14 +17763,14 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17764
17763
  disabled: y.value,
17765
17764
  onClick: T,
17766
17765
  type: "primary"
17767
- }, _isSlot$1(U = t.t("common.save")) ? U : {
17768
- default: () => [U]
17766
+ }, _isSlot$1(x = t.t("common.save")) ? x : {
17767
+ default: () => [x]
17769
17768
  })])]);
17770
17769
  }
17771
17770
  function K(P) {
17772
- var L;
17773
- let U = "";
17774
- return P.id || (U += " ant-table-row-create"), P.id === ((L = a.getSelectedVarCatalog) == null ? void 0 : L.id) && (U += " ant-table-row-selected "), U;
17771
+ var N;
17772
+ let x = "";
17773
+ return P.id || (x += " ant-table-row-create"), P.id === ((N = a.getSelectedVarCatalog) == null ? void 0 : N.id) && (x += " ant-table-row-selected "), x;
17775
17774
  }
17776
17775
  return () => createVNode("div", {
17777
17776
  class: "kg-var-config-modal--var--var-variable-catalog"
@@ -19834,16 +19833,16 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
19834
19833
  const { varNam: D, properties: K = {} } = I, P = a.value.varButtons.find((O) => O.var_nam === D);
19835
19834
  if (!P)
19836
19835
  return;
19837
- let U = !1;
19836
+ let x = !1;
19838
19837
  if (Object.entries(K).forEach(([O, R]) => {
19839
- O in P && P[O] !== R && (P[O] = R, U = !0);
19840
- }), !U)
19838
+ O in P && P[O] !== R && (P[O] = R, x = !0);
19839
+ }), !x)
19841
19840
  return;
19842
- const L = [...a.value.varButtons];
19843
- L.splice(a.value.varButtons.indexOf(P), 1, { ...P }), a.value.varButtons = toRaw(L);
19841
+ const N = [...a.value.varButtons];
19842
+ N.splice(a.value.varButtons.indexOf(P), 1, { ...P }), a.value.varButtons = toRaw(N);
19844
19843
  }
19845
19844
  function _(I) {
19846
- const { varNam: D } = I, K = a.value.varButtons.find((U) => U.var_nam === D);
19845
+ const { varNam: D } = I, K = a.value.varButtons.find((x) => x.var_nam === D);
19847
19846
  if (!K)
19848
19847
  return;
19849
19848
  const P = [...a.value.varButtons];
@@ -19873,7 +19872,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
19873
19872
  const { varNam: D, varText: K } = I;
19874
19873
  if (!D)
19875
19874
  return;
19876
- const P = a.value.varVariableCatalogs.find((U) => U.var_nam === D);
19875
+ const P = a.value.varVariableCatalogs.find((x) => x.var_nam === D);
19877
19876
  !P || (P.var_text = K || D);
19878
19877
  }
19879
19878
  function T(I) {
@@ -19915,7 +19914,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
19915
19914
  }
19916
19915
  function w(I) {
19917
19916
  var D, K, P;
19918
- return I && (P = (K = (D = a.value.varVariableCatalogs) == null ? void 0 : D.find((U) => U.var_nam === I)) == null ? void 0 : K.var_text) != null ? P : "";
19917
+ return I && (P = (K = (D = a.value.varVariableCatalogs) == null ? void 0 : D.find((x) => x.var_nam === I)) == null ? void 0 : K.var_text) != null ? P : "";
19919
19918
  }
19920
19919
  function M() {
19921
19920
  const I = uniq(