@kengic/vue 0.5.31 → 0.5.33

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.
@@ -2440,12 +2440,12 @@ function baseClone(e, t, r, n, a, o) {
2440
2440
  return _;
2441
2441
  o.set(e, s), isSet$1(e) ? e.forEach(function(b) {
2442
2442
  s.add(baseClone(b, t, r, b, e, o));
2443
- }) : isMap$1(e) && e.forEach(function(b, C) {
2444
- s.set(C, baseClone(b, t, r, C, e, o));
2443
+ }) : isMap$1(e) && e.forEach(function(b, T) {
2444
+ s.set(T, baseClone(b, t, r, T, e, o));
2445
2445
  });
2446
2446
  var v = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, m = c ? void 0 : v(e);
2447
- return arrayEach(m || e, function(b, C) {
2448
- m && (C = b, b = e[C]), assignValue(s, C, baseClone(b, t, r, C, e, o));
2447
+ return arrayEach(m || e, function(b, T) {
2448
+ m && (T = b, b = e[T]), assignValue(s, T, baseClone(b, t, r, T, e, o));
2449
2449
  }), s;
2450
2450
  }
2451
2451
  var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
@@ -2495,8 +2495,8 @@ function equalArrays(e, t, r, n, a, o) {
2495
2495
  break;
2496
2496
  }
2497
2497
  if (_) {
2498
- if (!arraySome(t, function(C, y) {
2499
- if (!cacheHas(_, y) && (v === C || a(v, C, r, n, o)))
2498
+ if (!arraySome(t, function(T, y) {
2499
+ if (!cacheHas(_, y) && (v === T || a(v, T, r, n, o)))
2500
2500
  return _.push(y);
2501
2501
  })) {
2502
2502
  p = !1;
@@ -2574,10 +2574,10 @@ function equalObjects(e, t, r, n, a, o) {
2574
2574
  o.set(e, t), o.set(t, e);
2575
2575
  for (var b = s; ++g < l; ) {
2576
2576
  p = i[g];
2577
- var C = e[p], y = t[p];
2577
+ var T = e[p], y = t[p];
2578
2578
  if (n)
2579
- var T = s ? n(y, C, p, t, e, o) : n(C, y, p, e, t, o);
2580
- if (!(T === void 0 ? C === y || a(C, y, r, n, o) : T)) {
2579
+ var C = s ? n(y, T, p, t, e, o) : n(T, y, p, e, t, o);
2580
+ if (!(C === void 0 ? T === y || a(T, y, r, n, o) : C)) {
2581
2581
  m = !1;
2582
2582
  break;
2583
2583
  }
@@ -3694,7 +3694,7 @@ var Icon$1 = function(t, r) {
3694
3694
  var b = l ? {
3695
3695
  msTransform: "rotate(".concat(l, "deg)"),
3696
3696
  transform: "rotate(".concat(l, "deg)")
3697
- } : void 0, C = normalizeTwoToneColors(c), y = _slicedToArray(C, 2), T = y[0], E = y[1];
3697
+ } : void 0, T = normalizeTwoToneColors(c), y = _slicedToArray(T, 2), C = y[0], E = y[1];
3698
3698
  return createVNode("span", _objectSpread$i({
3699
3699
  role: "img",
3700
3700
  "aria-label": s.name
@@ -3704,7 +3704,7 @@ var Icon$1 = function(t, r) {
3704
3704
  }), [createVNode(VueIcon, {
3705
3705
  class: v,
3706
3706
  icon: s,
3707
- primaryColor: T,
3707
+ primaryColor: C,
3708
3708
  secondaryColor: E,
3709
3709
  style: b
3710
3710
  }, null)]);
@@ -4667,15 +4667,15 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4667
4667
  (function(r, n) {
4668
4668
  e.exports = n();
4669
4669
  })(commonjsGlobal, function() {
4670
- var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", _ = "year", v = "date", m = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
4670
+ var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", _ = "year", v = "date", m = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
4671
4671
  var A = ["th", "st", "nd", "rd"], w = M % 100;
4672
4672
  return "[" + M + (A[(w - 20) % 10] || A[w] || A[0]) + "]";
4673
- } }, T = function(M, A, w) {
4673
+ } }, C = function(M, A, w) {
4674
4674
  var L = String(M);
4675
4675
  return !L || L.length >= A ? M : "" + Array(A + 1 - L.length).join(w) + M;
4676
- }, E = { s: T, z: function(M) {
4676
+ }, E = { s: C, z: function(M) {
4677
4677
  var A = -M.utcOffset(), w = Math.abs(A), L = Math.floor(w / 60), x = w % 60;
4678
- return (A <= 0 ? "+" : "-") + T(L, 2, "0") + ":" + T(x, 2, "0");
4678
+ return (A <= 0 ? "+" : "-") + C(L, 2, "0") + ":" + C(x, 2, "0");
4679
4679
  }, m: function M(A, w) {
4680
4680
  if (A.date() < w.date())
4681
4681
  return -M(w, A);
@@ -4830,7 +4830,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4830
4830
  var q = P < 12 ? "AM" : "PM";
4831
4831
  return H ? q.toLowerCase() : q;
4832
4832
  }, de = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: D.s(Y + 1, 2, "0"), MMM: Z(x.monthsShort, Y, re, 3), MMMM: Z(re, Y), D: this.$D, DD: D.s(this.$D, 2, "0"), d: String(this.$W), dd: Z(x.weekdaysMin, this.$W, Q, 2), ddd: Z(x.weekdaysShort, this.$W, Q, 3), dddd: Q[this.$W], H: String(B), HH: D.s(B, 2, "0"), h: ce(1), hh: ce(2), a: oe(B, W, !0), A: oe(B, W, !1), m: String(W), mm: D.s(W, 2, "0"), s: String(this.$s), ss: D.s(this.$s, 2, "0"), SSS: D.s(this.$ms, 3, "0"), Z: N };
4833
- return G.replace(C, function(P, K) {
4833
+ return G.replace(T, function(P, K) {
4834
4834
  return K || de[P] || N.replace(":", "");
4835
4835
  });
4836
4836
  }, A.utcOffset = function() {
@@ -4912,32 +4912,32 @@ function filesize(e, {
4912
4912
  roundingMethod: m = ROUND,
4913
4913
  precision: b = 0
4914
4914
  } = {}) {
4915
- let C = v, y = Number(e), T = [], E = 0, I = EMPTY;
4915
+ let T = v, y = Number(e), C = [], E = 0, I = EMPTY;
4916
4916
  n === -1 && c.length === 0 ? (n = 10, c = JEDEC) : n === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, n = c === IEC ? 2 : 10) : (n = n === 2 ? 2 : 10, c = n === 10 || c === JEDEC ? JEDEC : IEC);
4917
4917
  const k = n === 10 ? 1e3 : 1024, F = p === !0, R = y < 0, O = Math[m];
4918
4918
  if (typeof e != "bigint" && isNaN(e))
4919
4919
  throw new TypeError(INVALID_NUMBER);
4920
4920
  if (typeof O !== FUNCTION)
4921
4921
  throw new TypeError(INVALID_ROUND);
4922
- if (R && (y = -y), (C === -1 || isNaN(C)) && (C = Math.floor(Math.log(y) / Math.log(k)), C < 0 && (C = 0)), C > 8 && (b > 0 && (b += 8 - C), C = 8), g === EXPONENT)
4923
- return C;
4922
+ if (R && (y = -y), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(y) / Math.log(k)), T < 0 && (T = 0)), T > 8 && (b > 0 && (b += 8 - T), T = 8), g === EXPONENT)
4923
+ return T;
4924
4924
  if (y === 0)
4925
- T[0] = 0, I = T[1] = STRINGS.symbol[c][t ? BITS : BYTES][C];
4925
+ C[0] = 0, I = C[1] = STRINGS.symbol[c][t ? BITS : BYTES][T];
4926
4926
  else {
4927
- E = y / (n === 2 ? Math.pow(2, C * 10) : Math.pow(1e3, C)), t && (E = E * 8, E >= k && C < 8 && (E = E / k, C++));
4928
- const D = Math.pow(10, C > 0 ? a : 0);
4929
- T[0] = O(E * D) / D, T[0] === k && C < 8 && v === -1 && (T[0] = 1, C++), I = T[1] = n === 10 && C === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][C];
4930
- }
4931
- if (R && (T[0] = -T[0]), b > 0 && (T[0] = T[0].toPrecision(b)), T[1] = u[T[1]] || T[1], o === !0 ? T[0] = T[0].toLocaleString() : o.length > 0 ? T[0] = T[0].toLocaleString(o, s) : i.length > 0 && (T[0] = T[0].toString().replace(PERIOD, i)), r && Number.isInteger(T[0]) === !1 && a > 0) {
4932
- const D = i || PERIOD, $ = T[0].toString().split(D), V = $[1] || EMPTY, M = V.length, A = a - M;
4933
- T[0] = `${$[0]}${D}${V.padEnd(M + A, ZERO)}`;
4934
- }
4935
- return F && (T[1] = _[C] ? _[C] : STRINGS.fullform[c][C] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), g === ARRAY ? T : g === OBJECT ? {
4936
- value: T[0],
4937
- symbol: T[1],
4938
- exponent: C,
4927
+ E = y / (n === 2 ? Math.pow(2, T * 10) : Math.pow(1e3, T)), t && (E = E * 8, E >= k && T < 8 && (E = E / k, T++));
4928
+ const D = Math.pow(10, T > 0 ? a : 0);
4929
+ C[0] = O(E * D) / D, C[0] === k && T < 8 && v === -1 && (C[0] = 1, T++), I = C[1] = n === 10 && T === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][T];
4930
+ }
4931
+ if (R && (C[0] = -C[0]), b > 0 && (C[0] = C[0].toPrecision(b)), C[1] = u[C[1]] || C[1], o === !0 ? C[0] = C[0].toLocaleString() : o.length > 0 ? C[0] = C[0].toLocaleString(o, s) : i.length > 0 && (C[0] = C[0].toString().replace(PERIOD, i)), r && Number.isInteger(C[0]) === !1 && a > 0) {
4932
+ const D = i || PERIOD, $ = C[0].toString().split(D), V = $[1] || EMPTY, M = V.length, A = a - M;
4933
+ C[0] = `${$[0]}${D}${V.padEnd(M + A, ZERO)}`;
4934
+ }
4935
+ return F && (C[1] = _[T] ? _[T] : STRINGS.fullform[c][T] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), g === ARRAY ? C : g === OBJECT ? {
4936
+ value: C[0],
4937
+ symbol: C[1],
4938
+ exponent: T,
4939
4939
  unit: I
4940
- } : T.join(l);
4940
+ } : C.join(l);
4941
4941
  }
4942
4942
  const data$6 = {
4943
4943
  width: 1024,
@@ -5219,18 +5219,18 @@ function iconToSVG(e, t) {
5219
5219
  };
5220
5220
  let o = r.body;
5221
5221
  [r, n].forEach((v) => {
5222
- const m = [], b = v.hFlip, C = v.vFlip;
5222
+ const m = [], b = v.hFlip, T = v.vFlip;
5223
5223
  let y = v.rotate;
5224
- b ? C ? y += 2 : (m.push(
5224
+ b ? T ? y += 2 : (m.push(
5225
5225
  "translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
5226
- ), m.push("scale(-1 1)"), a.top = a.left = 0) : C && (m.push(
5226
+ ), m.push("scale(-1 1)"), a.top = a.left = 0) : T && (m.push(
5227
5227
  "translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
5228
5228
  ), m.push("scale(1 -1)"), a.top = a.left = 0);
5229
- let T;
5229
+ let C;
5230
5230
  switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
5231
5231
  case 1:
5232
- T = a.height / 2 + a.top, m.unshift(
5233
- "rotate(90 " + T.toString() + " " + T.toString() + ")"
5232
+ C = a.height / 2 + a.top, m.unshift(
5233
+ "rotate(90 " + C.toString() + " " + C.toString() + ")"
5234
5234
  );
5235
5235
  break;
5236
5236
  case 2:
@@ -5239,12 +5239,12 @@ function iconToSVG(e, t) {
5239
5239
  );
5240
5240
  break;
5241
5241
  case 3:
5242
- T = a.width / 2 + a.left, m.unshift(
5243
- "rotate(-90 " + T.toString() + " " + T.toString() + ")"
5242
+ C = a.width / 2 + a.left, m.unshift(
5243
+ "rotate(-90 " + C.toString() + " " + C.toString() + ")"
5244
5244
  );
5245
5245
  break;
5246
5246
  }
5247
- y % 2 === 1 && (a.left !== a.top && (T = a.left, a.left = a.top, a.top = T), a.width !== a.height && (T = a.width, a.width = a.height, a.height = T)), m.length && (o = '<g transform="' + m.join(" ") + '">' + o + "</g>");
5247
+ y % 2 === 1 && (a.left !== a.top && (C = a.left, a.left = a.top, a.top = C), a.width !== a.height && (C = a.width, a.width = a.height, a.height = C)), m.length && (o = '<g transform="' + m.join(" ") + '">' + o + "</g>");
5248
5248
  });
5249
5249
  const s = n.width, i = n.height, l = a.width, u = a.height;
5250
5250
  let c, g;
@@ -5546,7 +5546,7 @@ function sendQuery(e, t, r, n) {
5546
5546
  function b(k, F) {
5547
5547
  F && (_ = []), typeof k == "function" && _.push(k);
5548
5548
  }
5549
- function C() {
5549
+ function T() {
5550
5550
  return {
5551
5551
  startTime: i,
5552
5552
  payload: t,
@@ -5562,7 +5562,7 @@ function sendQuery(e, t, r, n) {
5562
5562
  k(void 0, c);
5563
5563
  });
5564
5564
  }
5565
- function T() {
5565
+ function C() {
5566
5566
  p.forEach((k) => {
5567
5567
  k.status === "pending" && (k.status = "aborted");
5568
5568
  }), p = [];
@@ -5587,7 +5587,7 @@ function sendQuery(e, t, r, n) {
5587
5587
  c = R, p.length || (s.length ? I() : y());
5588
5588
  return;
5589
5589
  }
5590
- if (v(), T(), !e.random) {
5590
+ if (v(), C(), !e.random) {
5591
5591
  const D = e.resources.indexOf(k.resource);
5592
5592
  D !== -1 && D !== e.index && (e.index = D);
5593
5593
  }
@@ -5603,7 +5603,7 @@ function sendQuery(e, t, r, n) {
5603
5603
  if (k === void 0) {
5604
5604
  if (p.length) {
5605
5605
  g = setTimeout(() => {
5606
- v(), l === "pending" && (T(), y());
5606
+ v(), l === "pending" && (C(), y());
5607
5607
  }, e.timeout);
5608
5608
  return;
5609
5609
  }
@@ -5619,7 +5619,7 @@ function sendQuery(e, t, r, n) {
5619
5619
  };
5620
5620
  p.push(F), u++, g = setTimeout(I, e.rotate), r(k, t, F.callback);
5621
5621
  }
5622
- return setTimeout(I), C;
5622
+ return setTimeout(I), T;
5623
5623
  }
5624
5624
  function initRedundancy(e) {
5625
5625
  const t = {
@@ -6021,8 +6021,8 @@ const render = (e, t) => {
6021
6021
  b !== !0 && b !== "true" && delete n["aria-hidden"];
6022
6022
  break;
6023
6023
  default: {
6024
- const C = customisationAliases[m];
6025
- C ? (b === !0 || b === "true" || b === 1) && (r[C] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = b);
6024
+ const T = customisationAliases[m];
6025
+ T ? (b === !0 || b === "true" || b === 1) && (r[T] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = b);
6026
6026
  }
6027
6027
  }
6028
6028
  }
@@ -6253,13 +6253,13 @@ function createSetupStore(e, t, r = {}, n, a) {
6253
6253
  u = !0;
6254
6254
  }), c = !0, triggerSubscriptions(g, O, n.state.value[e]);
6255
6255
  }
6256
- const C = process.env.NODE_ENV !== "production" ? () => {
6256
+ const T = process.env.NODE_ENV !== "production" ? () => {
6257
6257
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
6258
6258
  } : noop$1;
6259
6259
  function y() {
6260
6260
  o.stop(), g = [], p = [], n._s.delete(e);
6261
6261
  }
6262
- function T(R, O) {
6262
+ function C(R, O) {
6263
6263
  return function() {
6264
6264
  setActivePinia(n);
6265
6265
  const D = Array.from(arguments), $ = [], V = [];
@@ -6295,7 +6295,7 @@ function createSetupStore(e, t, r = {}, n, a) {
6295
6295
  $id: e,
6296
6296
  $onAction: addSubscription.bind(null, p),
6297
6297
  $patch: b,
6298
- $reset: C,
6298
+ $reset: T,
6299
6299
  $subscribe(R, O = {}) {
6300
6300
  const D = addSubscription(g, R, O.detached, () => $()), $ = o.run(() => watch(() => n.state.value[e], (V) => {
6301
6301
  (O.flush === "sync" ? c : u) && R({
@@ -6321,7 +6321,7 @@ function createSetupStore(e, t, r = {}, n, a) {
6321
6321
  if (isRef(O) && !isComputed(O) || isReactive(O))
6322
6322
  process.env.NODE_ENV !== "production" && a ? set(m.value, R, toRef(F, R)) : s || (v && shouldHydrate(O) && (isRef(O) ? O.value = v[R] : mergeReactiveObjects(O, v[R])), n.state.value[e][R] = O), process.env.NODE_ENV !== "production" && E.state.push(R);
6323
6323
  else if (typeof O == "function") {
6324
- const D = process.env.NODE_ENV !== "production" && a ? O : T(R, O);
6324
+ const D = process.env.NODE_ENV !== "production" && a ? O : C(R, O);
6325
6325
  F[R] = D, process.env.NODE_ENV !== "production" && (E.actions[R] = O), i.actions[R] = O;
6326
6326
  } else
6327
6327
  process.env.NODE_ENV !== "production" && isComputed(O) && (E.getters[R] = s ? r.getters[R] : O, IS_CLIENT && (F._getters || (F._getters = markRaw([]))).push(R));
@@ -6350,7 +6350,7 @@ function createSetupStore(e, t, r = {}, n, a) {
6350
6350
  });
6351
6351
  for (const D in O._hmrPayload.actions) {
6352
6352
  const $ = O[D];
6353
- set(k, D, T(D, $));
6353
+ set(k, D, C(D, $));
6354
6354
  }
6355
6355
  for (const D in O._hmrPayload.getters) {
6356
6356
  const $ = O._hmrPayload.getters[D], V = s ? computed(() => (setActivePinia(n), $.call(k, k))) : $;
@@ -6867,12 +6867,12 @@ const getProps$w = () => ({
6867
6867
  function m(y) {
6868
6868
  y.stopPropagation(), y.preventDefault(), g(), !(y instanceof MouseEvent && y.which !== 1) && (o = y.pageX, s = y.pageY, n = e.kgWidth, a = e.kgHeight, i = b(document.documentElement, "mousemove", _), l = b(document.documentElement, "mouseup", v));
6869
6869
  }
6870
- function b(y, T, E) {
6871
- return y.addEventListener(T, E), {
6872
- remove: () => y.removeEventListener(T, E)
6870
+ function b(y, C, E) {
6871
+ return y.addEventListener(C, E), {
6872
+ remove: () => y.removeEventListener(C, E)
6873
6873
  };
6874
6874
  }
6875
- function C(y) {
6875
+ function T(y) {
6876
6876
  y.stopPropagation(), y.preventDefault();
6877
6877
  }
6878
6878
  return () => {
@@ -6882,7 +6882,7 @@ const getProps$w = () => ({
6882
6882
  style: u.value
6883
6883
  }, [createVNode("div", {
6884
6884
  class: "kg-resizable-handle",
6885
- onClick: C,
6885
+ onClick: T,
6886
6886
  onMousedown: m
6887
6887
  }, [createVNode("div", {
6888
6888
  class: "kg-resizable-handle-line"
@@ -6904,8 +6904,6 @@ class KgVarUtil {
6904
6904
  return r;
6905
6905
  }
6906
6906
  static transformValueByControlType(t, r, n, a) {
6907
- if (isNil(a))
6908
- return;
6909
6907
  const o = useKgVar(t), s = o.store.getVariableConfig(t, r);
6910
6908
  if (!s)
6911
6909
  return a;
@@ -6913,8 +6911,10 @@ class KgVarUtil {
6913
6911
  case KG_FORM_ITEM_TYPE.INPUT:
6914
6912
  case KG_FORM_ITEM_TYPE.INPUT_PASSWORD:
6915
6913
  case KG_FORM_ITEM_TYPE.INPUT_AREA:
6916
- return String(a);
6914
+ return isNil(a) ? "" : String(a);
6917
6915
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER: {
6916
+ if (isNil(a))
6917
+ return;
6918
6918
  const i = Number(a);
6919
6919
  if (Number.isNaN(i)) {
6920
6920
  Logger.error("| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | INPUT_NUMBER \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.", {
@@ -6928,6 +6928,8 @@ class KgVarUtil {
6928
6928
  }
6929
6929
  case KG_FORM_ITEM_TYPE.CHECKBOX:
6930
6930
  case KG_FORM_ITEM_TYPE.SWITCH: {
6931
+ if (isNil(a))
6932
+ return 0;
6931
6933
  const i = Number(a);
6932
6934
  if (Number.isNaN(i)) {
6933
6935
  Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${s.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
@@ -6952,6 +6954,8 @@ class KgVarUtil {
6952
6954
  case KG_FORM_ITEM_TYPE.DATE_WEEK:
6953
6955
  case KG_FORM_ITEM_TYPE.DATE_MONTH:
6954
6956
  case KG_FORM_ITEM_TYPE.DATE_YEAR: {
6957
+ if (isNil(a))
6958
+ return;
6955
6959
  const i = n(a);
6956
6960
  if (i != null && i.isValid())
6957
6961
  return i;
@@ -6962,7 +6966,9 @@ class KgVarUtil {
6962
6966
  });
6963
6967
  return;
6964
6968
  }
6965
- case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
6969
+ case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP: {
6970
+ if (isNil(a))
6971
+ return [];
6966
6972
  try {
6967
6973
  const i = JSON.parse(a);
6968
6974
  if (!isArray$1(i)) {
@@ -7002,7 +7008,10 @@ class KgVarUtil {
7002
7008
  });
7003
7009
  return;
7004
7010
  }
7011
+ }
7005
7012
  case KG_FORM_ITEM_TYPE.SELECT: {
7013
+ if (isNil(a))
7014
+ return;
7006
7015
  const i = o.store.getVarPossibility(t, r);
7007
7016
  switch (i == null ? void 0 : i.val_data_type) {
7008
7017
  case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
@@ -7026,7 +7035,7 @@ class KgVarUtil {
7026
7035
  }
7027
7036
  }
7028
7037
  case KG_FORM_ITEM_TYPE.SELECT_MULTIPLE:
7029
- return a;
7038
+ return isNil(a) ? [] : a;
7030
7039
  default:
7031
7040
  return a;
7032
7041
  }
@@ -7099,12 +7108,12 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
7099
7108
  r("update:visible", !1);
7100
7109
  }
7101
7110
  function _() {
7102
- var v, m, b, C, y, T, E;
7111
+ var v, m, b, T, y, C, E;
7103
7112
  if (c.value) {
7104
7113
  const I = (m = (v = l.selectedRows) == null ? void 0 : v.value) != null ? m : [], k = (b = I.map((F) => F[g.value])) != null ? b : [];
7105
7114
  (!i || i(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
7106
7115
  } else {
7107
- const I = (T = (y = (C = l.selectedRows) == null ? void 0 : C.value) == null ? void 0 : y[0]) != null ? T : null, k = (E = I == null ? void 0 : I[g.value]) != null ? E : "";
7116
+ const I = (C = (y = (T = l.selectedRows) == null ? void 0 : T.value) == null ? void 0 : y[0]) != null ? C : null, k = (E = I == null ? void 0 : I[g.value]) != null ? E : "";
7108
7117
  (!i || i(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
7109
7118
  }
7110
7119
  }
@@ -7232,8 +7241,8 @@ const KgFormItemCheckboxGroup = defineComponent({
7232
7241
  const n = useKg(), a = useKgVar(), o = inject(DI_FORM_REF, ref(null)), s = inject(DI_FORM_MODEL, computed(() => ({}))), {
7233
7242
  transformDatas: i
7234
7243
  } = _useServices$2(e), l = ref(!1), u = ref(!1), c = ref([]), g = computed(() => a.store.getVarPossibility(a.formID, e.kgVarName)), p = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), _ = computed(() => {
7235
- var T;
7236
- let y = KgVarUtil.parseCommandParameter((T = g.value) == null ? void 0 : T.cmd_prm);
7244
+ var C;
7245
+ let y = KgVarUtil.parseCommandParameter((C = g.value) == null ? void 0 : C.cmd_prm);
7237
7246
  return y = mapValues(y, (E) => {
7238
7247
  if (typeof E == "string" && E.startsWith("{") && E.endsWith("}")) {
7239
7248
  const I = E.slice(1, -1);
@@ -7251,21 +7260,21 @@ const KgFormItemCheckboxGroup = defineComponent({
7251
7260
  (y = g.value) != null && y.id && m();
7252
7261
  }, {
7253
7262
  immediate: !0
7254
- }), watch([() => e.value, c], ([y, T]) => {
7263
+ }), watch([() => e.value, c], ([y, C]) => {
7255
7264
  var I, k;
7256
7265
  const E = get(y, "length", 0);
7257
- if (E > 0 && T.length > 0) {
7258
- const F = (k = (I = g.value) == null ? void 0 : I.val_clm) != null ? k : "", R = intersection$1(y, T == null ? void 0 : T.map((O) => O[F]));
7266
+ if (E > 0 && C.length > 0) {
7267
+ const F = (k = (I = g.value) == null ? void 0 : I.val_clm) != null ? k : "", R = intersection$1(y, C == null ? void 0 : C.map((O) => O[F]));
7259
7268
  if (R.length < E) {
7260
7269
  r("update:value", R);
7261
7270
  return;
7262
7271
  }
7263
7272
  }
7264
7273
  switch (!0) {
7265
- case (E > 0 && E === T.length):
7274
+ case (E > 0 && E === C.length):
7266
7275
  l.value = !0, u.value = !1;
7267
7276
  break;
7268
- case (E > 0 && E !== T.length):
7277
+ case (E > 0 && E !== C.length):
7269
7278
  l.value = !1, u.value = !0;
7270
7279
  break;
7271
7280
  default:
@@ -7277,7 +7286,7 @@ const KgFormItemCheckboxGroup = defineComponent({
7277
7286
  });
7278
7287
  async function m() {
7279
7288
  var F, R, O, D, $, V, M, A, w;
7280
- const y = (F = g.value) == null ? void 0 : F.cmd, T = (O = (R = g.value) == null ? void 0 : R.cmd_method) != null ? O : "GET", E = ($ = (D = g.value) == null ? void 0 : D.val_clm) != null ? $ : "", I = (M = (V = g.value) == null ? void 0 : V.lbl_clm) != null ? M : "";
7289
+ const y = (F = g.value) == null ? void 0 : F.cmd, C = (O = (R = g.value) == null ? void 0 : R.cmd_method) != null ? O : "GET", E = ($ = (D = g.value) == null ? void 0 : D.val_clm) != null ? $ : "", I = (M = (V = g.value) == null ? void 0 : V.lbl_clm) != null ? M : "";
7281
7290
  if (!y || !E || !I) {
7282
7291
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
7283
7292
  frm_id: a.formID,
@@ -7292,7 +7301,7 @@ const KgFormItemCheckboxGroup = defineComponent({
7292
7301
  try {
7293
7302
  k = await ((A = httpClient()) == null ? void 0 : A.request({
7294
7303
  url: y,
7295
- method: T,
7304
+ method: C,
7296
7305
  params: _.value,
7297
7306
  data: _.value
7298
7307
  }));
@@ -7323,17 +7332,17 @@ const KgFormItemCheckboxGroup = defineComponent({
7323
7332
  r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((w = c.value) == null ? void 0 : w.map((L) => L[E]), e.value));
7324
7333
  }
7325
7334
  function b(y) {
7326
- var T, E, I;
7327
- y.target.checked ? C((E = (T = c.value) == null ? void 0 : T.map((k) => {
7335
+ var C, E, I;
7336
+ y.target.checked ? T((E = (C = c.value) == null ? void 0 : C.map((k) => {
7328
7337
  var F, R;
7329
7338
  return k[(R = (F = g.value) == null ? void 0 : F.val_clm) != null ? R : ""];
7330
- })) != null ? E : []) : C([]), u.value = !1, (I = o.value) == null || I.validate(e.kgVarName);
7339
+ })) != null ? E : []) : T([]), u.value = !1, (I = o.value) == null || I.validate(e.kgVarName);
7331
7340
  }
7332
- function C(y) {
7341
+ function T(y) {
7333
7342
  r("update:value", y), r("kgChange", y);
7334
7343
  }
7335
7344
  return () => {
7336
- let y, T;
7345
+ let y, C;
7337
7346
  return createVNode("div", {
7338
7347
  class: "kg-form-item-checkbox-group"
7339
7348
  }, [createVNode(Form.ItemRest, null, {
@@ -7347,11 +7356,11 @@ const KgFormItemCheckboxGroup = defineComponent({
7347
7356
  })]
7348
7357
  }), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
7349
7358
  value: e.value,
7350
- "onUpdate:value": C
7359
+ "onUpdate:value": T
7351
7360
  }, {
7352
7361
  default: () => [createVNode(Row, {
7353
7362
  gutter: 12
7354
- }, _isSlot$8(T = c.value.map((E) => {
7363
+ }, _isSlot$8(C = c.value.map((E) => {
7355
7364
  var I, k;
7356
7365
  return createVNode(Col, {
7357
7366
  span: (k = (I = v.value) == null ? void 0 : I.span) != null ? k : 24
@@ -7368,8 +7377,8 @@ const KgFormItemCheckboxGroup = defineComponent({
7368
7377
  })];
7369
7378
  }
7370
7379
  });
7371
- })) ? T : {
7372
- default: () => [T]
7380
+ })) ? C : {
7381
+ default: () => [C]
7373
7382
  })]
7374
7383
  })]);
7375
7384
  };
@@ -7507,13 +7516,13 @@ const KgFormItemSelect = defineComponent({
7507
7516
  return p = mapValues(p, (v) => {
7508
7517
  var m, b;
7509
7518
  if (typeof v == "string" && v.startsWith("{") && v.endsWith("}")) {
7510
- let C = v.slice(1, -1), y = "";
7511
- if (C.includes(".")) {
7512
- const T = C.split(".");
7513
- C = T[0], y = T[1];
7519
+ let T = v.slice(1, -1), y = "";
7520
+ if (T.includes(".")) {
7521
+ const C = T.split(".");
7522
+ T = C[0], y = C[1];
7514
7523
  }
7515
- if (a.value && C in a.value)
7516
- return y ? (b = (m = a.value[`${C}_obj`]) == null ? void 0 : m[y]) != null ? b : void 0 : a.value[C];
7524
+ if (a.value && T in a.value)
7525
+ return y ? (b = (m = a.value[`${T}_obj`]) == null ? void 0 : m[y]) != null ? b : void 0 : a.value[T];
7517
7526
  }
7518
7527
  return v;
7519
7528
  }), p;
@@ -7525,8 +7534,8 @@ const KgFormItemSelect = defineComponent({
7525
7534
  immediate: !0
7526
7535
  });
7527
7536
  async function u() {
7528
- var C, y, T, E, I, k, F, R;
7529
- const p = (C = i.value) == null ? void 0 : C.cmd, _ = (T = (y = i.value) == null ? void 0 : y.cmd_method) != null ? T : "GET", v = (I = (E = i.value) == null ? void 0 : E.val_clm) != null ? I : "", m = (F = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? F : "";
7537
+ var T, y, C, E, I, k, F, R;
7538
+ const p = (T = i.value) == null ? void 0 : T.cmd, _ = (C = (y = i.value) == null ? void 0 : y.cmd_method) != null ? C : "GET", v = (I = (E = i.value) == null ? void 0 : E.val_clm) != null ? I : "", m = (F = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? F : "";
7530
7539
  if (!p || !v || !m) {
7531
7540
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
7532
7541
  frm_id: n.formID,
@@ -7573,8 +7582,8 @@ const KgFormItemSelect = defineComponent({
7573
7582
  function c(p) {
7574
7583
  var v;
7575
7584
  const _ = (v = toRaw(s.value.find((m) => {
7576
- var b, C;
7577
- return m[(C = (b = i.value) == null ? void 0 : b.val_clm) != null ? C : ""] === p;
7585
+ var b, T;
7586
+ return m[(T = (b = i.value) == null ? void 0 : b.val_clm) != null ? T : ""] === p;
7578
7587
  }))) != null ? v : null;
7579
7588
  r("kgSelectChange", _), a.value[`${e.kgVarName}_obj`] = _;
7580
7589
  }
@@ -7599,10 +7608,10 @@ const KgFormItemSelect = defineComponent({
7599
7608
  "kg-lbl-clm": (v = i.value) == null ? void 0 : v.lbl_clm
7600
7609
  }, {
7601
7610
  default: () => s.value.map((m) => {
7602
- var b, C, y, T;
7611
+ var b, T, y, C;
7603
7612
  return createVNode(Select.Option, {
7604
- "kg-value": m[(C = (b = i.value) == null ? void 0 : b.val_clm) != null ? C : ""],
7605
- value: m[(T = (y = i.value) == null ? void 0 : y.val_clm) != null ? T : ""]
7613
+ "kg-value": m[(T = (b = i.value) == null ? void 0 : b.val_clm) != null ? T : ""],
7614
+ value: m[(C = (y = i.value) == null ? void 0 : y.val_clm) != null ? C : ""]
7606
7615
  }, {
7607
7616
  default: () => {
7608
7617
  var E, I;
@@ -7681,9 +7690,9 @@ function _useRules(e) {
7681
7690
  case KG_VAR_INPUT__DATA_TYPE.NUMBER:
7682
7691
  const b = (v = a.value) == null ? void 0 : v.min;
7683
7692
  isNil(b) || (((m = a.value) == null ? void 0 : m.min_include_flg) === 1 ? i.push({
7684
- validator: (C, y) => Number(y) < b ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [b])) : Promise.resolve()
7693
+ validator: (T, y) => Number(y) < b ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [b])) : Promise.resolve()
7685
7694
  }) : i.push({
7686
- validator: (C, y) => Number(y) <= b ? Promise.reject(t.t("kg.KgFormItem.mustGT", [b])) : Promise.resolve()
7695
+ validator: (T, y) => Number(y) <= b ? Promise.reject(t.t("kg.KgFormItem.mustGT", [b])) : Promise.resolve()
7687
7696
  }));
7688
7697
  break;
7689
7698
  }
@@ -7774,7 +7783,7 @@ const KgFormItem = defineComponent({
7774
7783
  }
7775
7784
  }
7776
7785
  return Math.min(24, Math.max(1, $));
7777
- }), C = computed(() => {
7786
+ }), T = computed(() => {
7778
7787
  var A, w;
7779
7788
  const $ = get(k.value, "$el.parentElement");
7780
7789
  if ($ && !((A = $.classList) != null && A.contains("ant-row")))
@@ -7807,7 +7816,7 @@ const KgFormItem = defineComponent({
7807
7816
  break;
7808
7817
  }
7809
7818
  return $;
7810
- }), T = computed(() => {
7819
+ }), C = computed(() => {
7811
7820
  var V;
7812
7821
  const $ = {
7813
7822
  ...e,
@@ -7846,7 +7855,7 @@ const KgFormItem = defineComponent({
7846
7855
  if (t.control) {
7847
7856
  const $ = {
7848
7857
  varName: e.kgVarName,
7849
- props: T,
7858
+ props: C,
7850
7859
  model: a,
7851
7860
  varConfig: c,
7852
7861
  varProfileDetail: g,
@@ -7856,27 +7865,27 @@ const KgFormItem = defineComponent({
7856
7865
  } else
7857
7866
  switch (E.value) {
7858
7867
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
7859
- return createVNode(KgFormItemInputNumber, T.value, null);
7868
+ return createVNode(KgFormItemInputNumber, C.value, null);
7860
7869
  case KG_FORM_ITEM_TYPE.SELECT:
7861
- return createVNode(KgFormItemSelect, T.value, null);
7870
+ return createVNode(KgFormItemSelect, C.value, null);
7862
7871
  case KG_FORM_ITEM_TYPE.SWITCH:
7863
7872
  switch (e.kgContext) {
7864
7873
  case KG_FORM_CONTEXT.SEARCH:
7865
- return createVNode(KgFormItemSelect, T.value, null);
7874
+ return createVNode(KgFormItemSelect, C.value, null);
7866
7875
  case KG_FORM_CONTEXT.SUBMIT:
7867
7876
  default:
7868
- return createVNode(KgFormItemSwitch, T.value, null);
7877
+ return createVNode(KgFormItemSwitch, C.value, null);
7869
7878
  }
7870
7879
  case KG_FORM_ITEM_TYPE.CHECKBOX:
7871
- return createVNode(KgFormItemCheckbox, T.value, null);
7880
+ return createVNode(KgFormItemCheckbox, C.value, null);
7872
7881
  case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
7873
- return createVNode(KgFormItemCheckboxGroup, T.value, null);
7882
+ return createVNode(KgFormItemCheckboxGroup, C.value, null);
7874
7883
  case KG_FORM_ITEM_TYPE.DATE_DATE:
7875
- return createVNode(KgFormItemDate, T.value, null);
7884
+ return createVNode(KgFormItemDate, C.value, null);
7876
7885
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
7877
- return createVNode(KgFormItemDate, T.value, null);
7886
+ return createVNode(KgFormItemDate, C.value, null);
7878
7887
  default:
7879
- return createVNode(KgFormItemInput, T.value, null);
7888
+ return createVNode(KgFormItemInput, C.value, null);
7880
7889
  }
7881
7890
  }
7882
7891
  function O() {
@@ -7904,7 +7913,7 @@ const KgFormItem = defineComponent({
7904
7913
  "kg-lkp-ret-fld": (V = u.value) == null ? void 0 : V.ret_fld,
7905
7914
  span: b.value,
7906
7915
  class: y.value,
7907
- style: C.value
7916
+ style: T.value
7908
7917
  }, {
7909
7918
  default: () => [createVNode(Form.Item, {
7910
7919
  name: e.kgVarName,
@@ -8103,8 +8112,8 @@ function createStore(e, t, r) {
8103
8112
  var p = slice(arguments, 0), _ = this;
8104
8113
  function v() {
8105
8114
  if (!!c)
8106
- return each$6(arguments, function(b, C) {
8107
- p[C] = b;
8115
+ return each$6(arguments, function(b, T) {
8116
+ p[T] = b;
8108
8117
  }), c.apply(_, p);
8109
8118
  }
8110
8119
  var m = [v].concat(p);
@@ -9100,15 +9109,15 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
9100
9109
  varSubmitFields: v,
9101
9110
  varProfile: m,
9102
9111
  varProfileConfig: b,
9103
- varGrid: C,
9112
+ varGrid: T,
9104
9113
  varGridConfig: y
9105
9114
  } = await GetAll({ params: { frm_id: e } });
9106
9115
  this.varCatalogMap.set(e, i != null ? i : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(_)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(v)), this.varProfileConfigMap.set(e, transformVarProfileConfig(b != null ? b : null)), this.varProfileMap.set(e, {
9107
9116
  varProfile: m != null ? m : null,
9108
- currentVarProfileMasterID: (n = (r = (t = m == null ? void 0 : m.varProfileMasters) == null ? void 0 : t.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
9117
+ currentVarProfileMasterID: (n = (r = (t = m == null ? void 0 : m.varProfileMasters) == null ? void 0 : t.find((C) => C.def_flg === 1 || C.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
9109
9118
  }), this.varGridConfigMap.set(e, transformVarGridConfig(y != null ? y : null)), this.varGridMap.set(e, {
9110
- varGrid: transformVarGridDTO(C),
9111
- currentVarGridMasterID: (s = (o = (a = C == null ? void 0 : C.varGridMasters) == null ? void 0 : a.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
9119
+ varGrid: transformVarGridDTO(T),
9120
+ currentVarGridMasterID: (s = (o = (a = T == null ? void 0 : T.varGridMasters) == null ? void 0 : a.find((C) => C.def_flg === 1 || C.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
9112
9121
  }), this.emit(e, "ready");
9113
9122
  } catch (i) {
9114
9123
  throw i;
@@ -9241,9 +9250,9 @@ function useKgVar(e, t, r = 0) {
9241
9250
  const l = ($) => computed(() => {
9242
9251
  var V, M, A;
9243
9252
  return (A = (M = (V = i.getVarCatalog(s, $)) == null ? void 0 : V.var_text) != null ? M : $) != null ? A : "";
9244
- }), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), _ = computed(() => i.isUpdating(s)), v = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), b = computed(() => i.isOtherRequesting(s)), C = computed(() => i.getVarButtons(s)), y = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), I = computed(() => {
9253
+ }), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), _ = computed(() => i.isUpdating(s)), v = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), b = computed(() => i.isOtherRequesting(s)), T = computed(() => i.getVarButtons(s)), y = computed(() => i.getVarProfileMasters(s)), C = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), I = computed(() => {
9245
9254
  var $, V;
9246
- return (V = ($ = T.value) == null ? void 0 : $.varProfileDetails) != null ? V : null;
9255
+ return (V = ($ = C.value) == null ? void 0 : $.varProfileDetails) != null ? V : null;
9247
9256
  }), k = computed(() => i.getVarGridConfig(s)), F = computed(() => i.getVarGridMasters(s)), R = computed(() => i.getCurrentVarGridMaster(s)), O = computed(() => i.getSystemVarGridDetails(s)), D = computed(() => i.getCurrentVarGridDetails(s));
9248
9257
  return {
9249
9258
  formID: s,
@@ -9256,9 +9265,9 @@ function useKgVar(e, t, r = 0) {
9256
9265
  isCopying: v,
9257
9266
  isDeleting: m,
9258
9267
  isOtherRequesting: b,
9259
- varButtons: C,
9268
+ varButtons: T,
9260
9269
  varProfileMasters: y,
9261
- currentVarProfileMaster: T,
9270
+ currentVarProfileMaster: C,
9262
9271
  currentVarProfileMasterID: E,
9263
9272
  currentVarProfileDetails: I,
9264
9273
  varGridConfig: k,
@@ -9502,8 +9511,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9502
9511
  }) => {
9503
9512
  const c = o.store.getVarSubmitConfig(o.formID);
9504
9513
  return i = watch(u, (g) => {
9505
- var p, _, v, m, b, C, y, T, E, I, k, F;
9506
- g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (_ = c == null ? void 0 : c.resizable_flg) != null ? _ : 1, g.fullscreen_flg = (v = c == null ? void 0 : c.fullscreen_flg) != null ? v : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (b = c == null ? void 0 : c.responsive_flg) != null ? b : 1, g.max_width = (C = c == null ? void 0 : c.max_width) != null ? C : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (T = c == null ? void 0 : c.dft_width) != null ? T : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (I = c == null ? void 0 : c.label_col) != null ? I : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (F = c == null ? void 0 : c.display_type) != null ? F : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
9514
+ var p, _, v, m, b, T, y, C, E, I, k, F;
9515
+ g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (_ = c == null ? void 0 : c.resizable_flg) != null ? _ : 1, g.fullscreen_flg = (v = c == null ? void 0 : c.fullscreen_flg) != null ? v : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (b = c == null ? void 0 : c.responsive_flg) != null ? b : 1, g.max_width = (T = c == null ? void 0 : c.max_width) != null ? T : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (C = c == null ? void 0 : c.dft_width) != null ? C : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (I = c == null ? void 0 : c.label_col) != null ? I : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (F = c == null ? void 0 : c.display_type) != null ? F : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
9507
9516
  }, {
9508
9517
  immediate: !0
9509
9518
  }), !1;
@@ -9553,8 +9562,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9553
9562
  r("kgCancel");
9554
9563
  }
9555
9564
  function v() {
9556
- var C;
9557
- return e.kgShowFullscreenButton === !1 || ((C = i.value) == null ? void 0 : C.fullscreen_flg) === 0 ? null : createVNode(Button, {
9565
+ var T;
9566
+ return e.kgShowFullscreenButton === !1 || ((T = i.value) == null ? void 0 : T.fullscreen_flg) === 0 ? null : createVNode(Button, {
9558
9567
  onClick: g,
9559
9568
  class: "kg-submit--btn-fullscreen"
9560
9569
  }, {
@@ -9586,7 +9595,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9586
9595
  }), DEFAULT_MIN_WIDTH = 300, DEFAULT_MAX_WIDTH = 1182, DEFAULT_WIDTH = 594, DEFAULT_LAYOUT = "vertical", DEFAULT_LABEL_COL_FOR_SPAN = 4, DEFAULT_LABEL_COL_FOR_PX = 100;
9587
9596
  function _useFormModel() {
9588
9597
  const e = inject("$dayjs", dayjs), t = useKgVar(), r = useKgTable(), n = useKgSubmit(), a = computed(() => t.store.isCreating(t.formID)), o = computed(() => t.store.isUpdating(t.formID)), s = computed(() => t.store.isCopying(t.formID)), i = computed(() => t.store.isDeleting(t.formID)), l = computed(() => t.store.getVarSubmitFieldsForCreate(t.formID)), u = computed(() => t.store.getVarSubmitFieldsForUpdate(t.formID)), c = computed(() => t.store.getVarSubmitFieldsForCopy(t.formID)), g = computed(() => t.store.getVarSubmitFieldsForDelete(t.formID)), p = computed(() => {
9589
- var v, m, b, C;
9598
+ var v, m, b, T;
9590
9599
  switch (!0) {
9591
9600
  case a.value:
9592
9601
  return (v = l.value) != null ? v : [];
@@ -9595,7 +9604,7 @@ function _useFormModel() {
9595
9604
  case s.value:
9596
9605
  return (b = c.value) != null ? b : [];
9597
9606
  case i.value:
9598
- return (C = g.value) != null ? C : [];
9607
+ return (T = g.value) != null ? T : [];
9599
9608
  }
9600
9609
  return [];
9601
9610
  }), _ = ref({});
@@ -9603,20 +9612,20 @@ function _useFormModel() {
9603
9612
  if (_.value = {}, v != null && v.length) {
9604
9613
  const m = r.selectedRow.value;
9605
9614
  v.forEach((b) => {
9606
- var y, T, E, I, k, F, R, O;
9607
- const C = (y = b.var_nam) != null ? y : "";
9608
- switch (_.value[C] = void 0, !0) {
9615
+ var y, C, E, I, k, F, R, O;
9616
+ const T = (y = b.var_nam) != null ? y : "";
9617
+ switch (_.value[T] = void 0, !0) {
9609
9618
  case a.value:
9610
- _.value[C] = KgVarUtil.transformValueByControlType(t.formID, C, e, (T = b.crt_dft_val) != null ? T : void 0);
9619
+ _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (C = b.crt_dft_val) != null ? C : void 0);
9611
9620
  break;
9612
9621
  case o.value:
9613
- _.value.id = m == null ? void 0 : m.id, _.value[C] = KgVarUtil.transformValueByControlType(t.formID, C, e, (I = (E = b.upt_dft_val) != null ? E : m == null ? void 0 : m[C]) != null ? I : void 0);
9622
+ _.value.id = m == null ? void 0 : m.id, _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (I = (E = b.upt_dft_val) != null ? E : m == null ? void 0 : m[T]) != null ? I : void 0);
9614
9623
  break;
9615
9624
  case s.value:
9616
- _.value.id = m == null ? void 0 : m.id, _.value[C] = KgVarUtil.transformValueByControlType(t.formID, C, e, (F = (k = b.cpy_dft_val) != null ? k : m == null ? void 0 : m[C]) != null ? F : void 0);
9625
+ _.value.id = m == null ? void 0 : m.id, _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (F = (k = b.cpy_dft_val) != null ? k : m == null ? void 0 : m[T]) != null ? F : void 0);
9617
9626
  break;
9618
9627
  case i.value:
9619
- _.value.id = m == null ? void 0 : m.id, _.value[C] = KgVarUtil.transformValueByControlType(t.formID, C, e, (O = (R = b.del_dft_val) != null ? R : m == null ? void 0 : m[C]) != null ? O : void 0);
9628
+ _.value.id = m == null ? void 0 : m.id, _.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (O = (R = b.del_dft_val) != null ? R : m == null ? void 0 : m[T]) != null ? O : void 0);
9620
9629
  break;
9621
9630
  }
9622
9631
  });
@@ -9701,9 +9710,9 @@ function _useLayout() {
9701
9710
  const e = useKgVar(), t = computed(() => e.store.isCreating(e.formID)), r = computed(() => e.store.isUpdating(e.formID)), n = computed(() => e.store.isCopying(e.formID)), a = computed(() => e.store.isDeleting(e.formID)), o = computed(() => e.store.getVarSubmitConfig(e.formID));
9702
9711
  return {
9703
9712
  getLayout: computed(() => {
9704
- var _, v, m, b, C;
9713
+ var _, v, m, b, T;
9705
9714
  let i = "vertical";
9706
- const l = (_ = o.value) == null ? void 0 : _.layout, u = (v = o.value) == null ? void 0 : v.crt_layout, c = (m = o.value) == null ? void 0 : m.upt_layout, g = (b = o.value) == null ? void 0 : b.cpy_layout, p = (C = o.value) == null ? void 0 : C.del_layout;
9715
+ const l = (_ = o.value) == null ? void 0 : _.layout, u = (v = o.value) == null ? void 0 : v.crt_layout, c = (m = o.value) == null ? void 0 : m.upt_layout, g = (b = o.value) == null ? void 0 : b.cpy_layout, p = (T = o.value) == null ? void 0 : T.del_layout;
9707
9716
  switch (!0) {
9708
9717
  case (t.value && (u === "horizontal" || !u && l === "horizontal")):
9709
9718
  i = "horizontal";
@@ -9726,9 +9735,9 @@ function _useDisplayType() {
9726
9735
  const e = useKgVar(), t = computed(() => e.store.isCreating(e.formID)), r = computed(() => e.store.isUpdating(e.formID)), n = computed(() => e.store.isCopying(e.formID)), a = computed(() => e.store.isDeleting(e.formID)), o = computed(() => e.store.getVarSubmitConfig(e.formID));
9727
9736
  return {
9728
9737
  getDisplayType: computed(() => {
9729
- var v, m, b, C, y;
9738
+ var v, m, b, T, y;
9730
9739
  let i = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
9731
- const l = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = (v = o.value) == null ? void 0 : v.display_type, c = (m = o.value) == null ? void 0 : m.crt_display_type, g = (b = o.value) == null ? void 0 : b.upt_display_type, p = (C = o.value) == null ? void 0 : C.cpy_display_type, _ = (y = o.value) == null ? void 0 : y.del_display_type;
9740
+ const l = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = (v = o.value) == null ? void 0 : v.display_type, c = (m = o.value) == null ? void 0 : m.crt_display_type, g = (b = o.value) == null ? void 0 : b.upt_display_type, p = (T = o.value) == null ? void 0 : T.cpy_display_type, _ = (y = o.value) == null ? void 0 : y.del_display_type;
9732
9741
  switch (!0) {
9733
9742
  case (t.value && (c === l || !c && u === l)):
9734
9743
  i = l;
@@ -9739,7 +9748,7 @@ function _useDisplayType() {
9739
9748
  case (n.value && (p === l || !p && u === l)):
9740
9749
  i = l;
9741
9750
  break;
9742
- case (a.value && (_ === l || !_ && u === l)):
9751
+ case (a.value && (_ === l || !_)):
9743
9752
  i = l;
9744
9753
  break;
9745
9754
  }
@@ -9751,8 +9760,8 @@ function _useDefaultWidth() {
9751
9760
  const e = useKgVar(), t = computed(() => e.store.isCreating(e.formID)), r = computed(() => e.store.isUpdating(e.formID)), n = computed(() => e.store.isCopying(e.formID)), a = computed(() => e.store.isDeleting(e.formID)), o = computed(() => e.store.getVarSubmitConfig(e.formID));
9752
9761
  return {
9753
9762
  getDefaultWidth: computed(() => {
9754
- var _, v, m, b, C;
9755
- const i = (_ = o.value) == null ? void 0 : _.dft_width, l = (v = o.value) == null ? void 0 : v.crt_dft_width, u = (m = o.value) == null ? void 0 : m.upt_dft_width, c = (b = o.value) == null ? void 0 : b.cpy_dft_width, g = (C = o.value) == null ? void 0 : C.del_dft_width;
9763
+ var _, v, m, b, T;
9764
+ const i = (_ = o.value) == null ? void 0 : _.dft_width, l = (v = o.value) == null ? void 0 : v.crt_dft_width, u = (m = o.value) == null ? void 0 : m.upt_dft_width, c = (b = o.value) == null ? void 0 : b.cpy_dft_width, g = (T = o.value) == null ? void 0 : T.del_dft_width;
9756
9765
  let p = i || DEFAULT_WIDTH;
9757
9766
  switch (!0) {
9758
9767
  case (t.value && !!l):
@@ -9790,7 +9799,7 @@ const getProps$p = () => ({
9790
9799
  }) {
9791
9800
  const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
9792
9801
  _useFormModel();
9793
- const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), _ = computed(() => p.value && $.value.length === 0 && V.value.length === 0), v = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), b = computed(() => a.store.getVarButtonCopy(a.formID)), C = computed(() => a.store.getVarButtonDelete(a.formID)), y = computed(() => s.store.isLoading(a.formID)), T = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), I = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), R = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), O = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), D = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), $ = computed(() => {
9802
+ const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), _ = computed(() => p.value && $.value.length === 0 && V.value.length === 0), v = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), b = computed(() => a.store.getVarButtonCopy(a.formID)), T = computed(() => a.store.getVarButtonDelete(a.formID)), y = computed(() => s.store.isLoading(a.formID)), C = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), I = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), R = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), O = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), D = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), $ = computed(() => {
9794
9803
  var U, z, X;
9795
9804
  switch (!0) {
9796
9805
  case u.value:
@@ -9820,13 +9829,13 @@ const getProps$p = () => ({
9820
9829
  kgWidth: 0
9821
9830
  }), x = computed(() => {
9822
9831
  var U;
9823
- return !!(_.value || oe.isFullscreen || ((U = T.value) == null ? void 0 : U.resizable_flg) === 0);
9832
+ return !!(_.value || oe.isFullscreen || ((U = C.value) == null ? void 0 : U.resizable_flg) === 0);
9824
9833
  }), G = computed(() => {
9825
9834
  var U, z;
9826
- return _.value ? 398 : (z = (U = T.value) == null ? void 0 : U.min_width) != null ? z : DEFAULT_MIN_WIDTH;
9835
+ return _.value ? 398 : (z = (U = C.value) == null ? void 0 : U.min_width) != null ? z : DEFAULT_MIN_WIDTH;
9827
9836
  }), N = computed(() => {
9828
9837
  var U, z;
9829
- return _.value ? 398 : (z = (U = T.value) == null ? void 0 : U.max_width) != null ? z : DEFAULT_MAX_WIDTH;
9838
+ return _.value ? 398 : (z = (U = C.value) == null ? void 0 : U.max_width) != null ? z : DEFAULT_MAX_WIDTH;
9830
9839
  }), B = computed(() => _.value ? 398 : L.value.kgWidth), W = ref(null), Y = ref({}), Q = ref(null);
9831
9840
  _useResizeObserver$1(Q);
9832
9841
  const re = _useTitle(), Z = computed(() => _.value ? 400 : L.value.kgWidth && L.value.kgWidth > 0 ? L.value.kgWidth + 2 : 0), ce = computed(() => Z.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), oe = reactive({
@@ -9843,15 +9852,15 @@ const getProps$p = () => ({
9843
9852
  var U, z, X;
9844
9853
  switch (K.value) {
9845
9854
  case "horizontal":
9846
- switch ((U = T.value) == null ? void 0 : U.label_col_unit) {
9855
+ switch ((U = C.value) == null ? void 0 : U.label_col_unit) {
9847
9856
  case KG_WIDTH_UNIT.SPAN:
9848
9857
  return {
9849
- span: (z = T.value) == null ? void 0 : z.label_col
9858
+ span: (z = C.value) == null ? void 0 : z.label_col
9850
9859
  };
9851
9860
  default:
9852
9861
  return {
9853
9862
  style: {
9854
- width: `${(X = T.value) == null ? void 0 : X.label_col}px`
9863
+ width: `${(X = C.value) == null ? void 0 : X.label_col}px`
9855
9864
  }
9856
9865
  };
9857
9866
  }
@@ -9862,10 +9871,10 @@ const getProps$p = () => ({
9862
9871
  var U, z;
9863
9872
  switch (K.value) {
9864
9873
  case "horizontal":
9865
- switch ((U = T.value) == null ? void 0 : U.label_col_unit) {
9874
+ switch ((U = C.value) == null ? void 0 : U.label_col_unit) {
9866
9875
  case KG_WIDTH_UNIT.SPAN:
9867
9876
  return {
9868
- span: 24 - ((z = T.value) == null ? void 0 : z.label_col)
9877
+ span: 24 - ((z = C.value) == null ? void 0 : z.label_col)
9869
9878
  };
9870
9879
  default:
9871
9880
  return;
@@ -9892,7 +9901,7 @@ const getProps$p = () => ({
9892
9901
  isDeleting: p.value,
9893
9902
  row: o.selectedRow.value,
9894
9903
  model: s.model
9895
- }), ((U = T.value) == null ? void 0 : U.dft_fullscreen_flg) === 1 && !_.value && (oe.isFullscreen = !0);
9904
+ }), ((U = C.value) == null ? void 0 : U.dft_fullscreen_flg) === 1 && !_.value && (oe.isFullscreen = !0);
9896
9905
  }
9897
9906
  function pe() {
9898
9907
  L.value.kgWidth = H.value, oe.isFullscreen = !1, s.store.emit(a.formID, "close");
@@ -10041,7 +10050,7 @@ const getProps$p = () => ({
10041
10050
  ...(ae = o.selectedRow.value) != null ? ae : {},
10042
10051
  ...toRaw(s.model.value)
10043
10052
  };
10044
- if (((se = T.value) == null ? void 0 : se.cpy_clear_id_flg) !== 0 && delete me.id, await s.store.emit(a.formID, "beforeRequest", {
10053
+ if (((se = C.value) == null ? void 0 : se.cpy_clear_id_flg) !== 0 && delete me.id, await s.store.emit(a.formID, "beforeRequest", {
10045
10054
  isCreating: u.value,
10046
10055
  isUpdating: c.value,
10047
10056
  isCopying: g.value,
@@ -10065,10 +10074,10 @@ const getProps$p = () => ({
10065
10074
  }
10066
10075
  async function Ee() {
10067
10076
  var z, X, te, ae, se, ie, le, ue;
10068
- const U = (z = C.value) == null ? void 0 : z.cmd;
10077
+ const U = (z = T.value) == null ? void 0 : z.cmd;
10069
10078
  if (!U) {
10070
10079
  Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10071
- VarButton: C.value
10080
+ VarButton: T.value
10072
10081
  });
10073
10082
  return;
10074
10083
  }
@@ -10077,7 +10086,7 @@ const getProps$p = () => ({
10077
10086
  const ee = {
10078
10087
  ids: (te = (X = o.selectedRows.value) == null ? void 0 : X.map((ge) => {
10079
10088
  var me, ve, ye;
10080
- return (ye = ge[(ve = (me = C.value) == null ? void 0 : me.del_param_clm) != null ? ve : "id"]) != null ? ye : "";
10089
+ return (ye = ge[(ve = (me = T.value) == null ? void 0 : me.del_param_clm) != null ? ve : "id"]) != null ? ye : "";
10081
10090
  })) != null ? te : []
10082
10091
  };
10083
10092
  if (await s.store.emit(a.formID, "beforeRequest", {
@@ -10091,12 +10100,12 @@ const getProps$p = () => ({
10091
10100
  }))
10092
10101
  return;
10093
10102
  await httpClient().request({
10094
- method: (se = (ae = C.value) == null ? void 0 : ae.cmd_method) != null ? se : "DELETE",
10103
+ method: (se = (ae = T.value) == null ? void 0 : ae.cmd_method) != null ? se : "DELETE",
10095
10104
  url: U,
10096
10105
  params: ee
10097
10106
  }, {
10098
10107
  joinParamsToUrl: !0
10099
- }), ((ie = C.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (ue = (le = i.search).value) == null || ue.call(le, !0);
10108
+ }), ((ie = T.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (ue = (le = i.search).value) == null || ue.call(le, !0);
10100
10109
  } catch (ee) {
10101
10110
  console.error(ee);
10102
10111
  } finally {
@@ -10298,78 +10307,80 @@ const getProps$p = () => ({
10298
10307
  emit: r
10299
10308
  }) {
10300
10309
  const n = useKg(), a = useKgVar(), o = computed(() => e.kgVarName ? a.store.getVarGridDetail(a.formID, e.kgVarName) : null), s = computed(() => {
10301
- var g, p;
10302
- let c = "kg-table-td";
10303
- return ((g = o.value) == null ? void 0 : g.align) === "center" ? c += " kg-table-td--center" : ((p = o.value) == null ? void 0 : p.align) === "right" && (c += " kg-table-td--right"), c;
10310
+ var p, _;
10311
+ let g = "kg-table-td";
10312
+ return ((p = o.value) == null ? void 0 : p.align) === "center" ? g += " kg-table-td--center" : ((_ = o.value) == null ? void 0 : _.align) === "right" && (g += " kg-table-td--right"), g;
10313
+ }), i = computed(() => {
10314
+ let g = e.kgValue;
10315
+ return isString$1(e.kgValue) && (g = e.kgValue.replaceAll("\\n", `
10316
+ `)), g;
10304
10317
  });
10305
- function i(c) {
10306
- var g, p, _;
10307
- if (c.detail === 1)
10308
- switch ((g = o.value) == null ? void 0 : g.display_type) {
10318
+ function l(g) {
10319
+ var p, _, v;
10320
+ if (g.detail === 1)
10321
+ switch ((p = o.value) == null ? void 0 : p.display_type) {
10309
10322
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
10310
- c.stopPropagation(), c.preventDefault(), r("kgUpdateLinkClick");
10323
+ g.stopPropagation(), g.preventDefault(), r("kgUpdateLinkClick");
10311
10324
  break;
10312
10325
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
10313
10326
  {
10314
- c.stopPropagation(), c.preventDefault();
10315
- const v = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
10316
- (_ = n.router.value) == null || _.push({
10317
- path: v.path,
10327
+ g.stopPropagation(), g.preventDefault();
10328
+ const m = KgUtil.tryParseJSON((_ = o.value) == null ? void 0 : _.display_type_properties);
10329
+ (v = n.router.value) == null || v.push({
10330
+ path: m.path,
10318
10331
  query: e.kgRow
10319
10332
  });
10320
10333
  }
10321
10334
  break;
10322
10335
  }
10323
10336
  }
10324
- function l() {
10325
- var c, g, p, _, v, m, b, C;
10326
- switch ((c = o.value) == null ? void 0 : c.display_type) {
10337
+ function u() {
10338
+ var g, p, _, v, m, b, T, y;
10339
+ switch ((g = o.value) == null ? void 0 : g.display_type) {
10327
10340
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
10328
- const y = KgUtil.tryParseJSON((g = o.value) == null ? void 0 : g.display_type_properties);
10341
+ const C = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
10329
10342
  return createVNode(KgYesOrNo, {
10330
- kgValue: e.kgValue === ((p = y.yValue) != null ? p : 1)
10343
+ kgValue: e.kgValue === ((_ = C.yValue) != null ? _ : 1)
10331
10344
  }, null);
10332
10345
  }
10333
10346
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
10334
- const y = KgUtil.tryParseJSON((_ = o.value) == null ? void 0 : _.display_type_properties), T = isArrayLike(y) && y.find((E) => E.value === e.kgValue);
10335
- return T ? createVNode(Tag, {
10336
- color: (v = T.color) != null ? v : "default"
10347
+ const C = KgUtil.tryParseJSON((v = o.value) == null ? void 0 : v.display_type_properties), E = isArrayLike(C) && C.find((I) => I.value === e.kgValue);
10348
+ return E ? createVNode(Tag, {
10349
+ color: (m = E.color) != null ? m : "default"
10337
10350
  }, {
10338
- default: () => [a.t(T.varName).value]
10339
- }) : u();
10351
+ default: () => [a.t(E.varName).value]
10352
+ }) : c();
10340
10353
  }
10341
10354
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
10342
- const y = KgUtil.tryParseJSON((m = o.value) == null ? void 0 : m.display_type_properties);
10355
+ const C = KgUtil.tryParseJSON((b = o.value) == null ? void 0 : b.display_type_properties);
10343
10356
  return createVNode(KgProgressA, {
10344
- kgTextWidth: y.textWidth,
10345
- kgLeft: (b = e.kgRow) == null ? void 0 : b[y.leftColumn],
10346
- kgRight: (C = e.kgRow) == null ? void 0 : C[y.rightColumn]
10357
+ kgTextWidth: C.textWidth,
10358
+ kgLeft: (T = e.kgRow) == null ? void 0 : T[C.leftColumn],
10359
+ kgRight: (y = e.kgRow) == null ? void 0 : y[C.rightColumn]
10347
10360
  }, null);
10348
10361
  }
10349
10362
  case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
10350
10363
  return KgUtil.getFileSize(e.kgValue);
10351
10364
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
10352
- return u(!0);
10365
+ return c(!0);
10353
10366
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
10354
- return u(!0);
10367
+ return c(!0);
10355
10368
  default:
10356
- return u();
10369
+ return c();
10357
10370
  }
10358
10371
  }
10359
- function u(c = !1) {
10360
- let g = e.kgValue;
10361
- isString$1(e.kgValue) && (g = e.kgValue.replaceAll("\\n", `
10362
- `));
10372
+ function c(g = !1) {
10363
10373
  let p = "";
10364
- return c && (p += "kg-table-td-update-link"), createVNode("pre", {
10365
- innerHTML: g,
10374
+ return g && (p += "kg-table-td-update-link"), createVNode("pre", {
10375
+ innerHTML: i.value,
10366
10376
  class: p,
10367
- onClick: i
10377
+ onClick: l
10368
10378
  }, null);
10369
10379
  }
10370
10380
  return () => createVNode("div", {
10371
- class: s.value
10372
- }, [l()]);
10381
+ class: s.value,
10382
+ title: i.value
10383
+ }, [u()]);
10373
10384
  }
10374
10385
  }), KgTable_Info = "";
10375
10386
  function _isSlot$6(e) {
@@ -10456,8 +10467,8 @@ const getProps$l = () => ({
10456
10467
  }) => {
10457
10468
  const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
10458
10469
  return s = watch(l, (c) => {
10459
- var g, p, _, v, m, b, C, y, T, E, I;
10460
- c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (_ = u == null ? void 0 : u.mult_flg) != null ? _ : 0, c.show_check_column_flg = (v = u == null ? void 0 : u.show_check_column_flg) != null ? v : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (b = u == null ? void 0 : u.show_bottom_right_flg) != null ? b : 1, c.convert_sort_field_to_under_score_flg = (C = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? C : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (T = u == null ? void 0 : u.pg_size_opt) != null ? T : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (I = u == null ? void 0 : u.button_display_type) != null ? I : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
10470
+ var g, p, _, v, m, b, T, y, C, E, I;
10471
+ c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (_ = u == null ? void 0 : u.mult_flg) != null ? _ : 0, c.show_check_column_flg = (v = u == null ? void 0 : u.show_check_column_flg) != null ? v : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (b = u == null ? void 0 : u.show_bottom_right_flg) != null ? b : 1, c.convert_sort_field_to_under_score_flg = (T = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? T : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (C = u == null ? void 0 : u.pg_size_opt) != null ? C : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (I = u == null ? void 0 : u.button_display_type) != null ? I : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
10461
10472
  }, {
10462
10473
  immediate: !0
10463
10474
  }), !1;
@@ -10713,24 +10724,24 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10713
10724
  class: "columns"
10714
10725
  }, [createVNode(Input, {
10715
10726
  value: i.value,
10716
- "onUpdate:value": (T) => i.value = T,
10727
+ "onUpdate:value": (C) => i.value = C,
10717
10728
  allowClear: !0
10718
10729
  }, null), createVNode("ul", {
10719
10730
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
10720
- }, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((T) => createVNode("li", {
10731
+ }, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((C) => createVNode("li", {
10721
10732
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
10722
10733
  onClick: (E) => {
10723
- E.preventDefault(), E.stopPropagation(), p(T);
10734
+ E.preventDefault(), E.stopPropagation(), p(C);
10724
10735
  },
10725
10736
  style: {
10726
- display: s(T, i.value) ? "flex" : "none"
10737
+ display: s(C, i.value) ? "flex" : "none"
10727
10738
  },
10728
- "kg-var-nam": T.var_nam
10739
+ "kg-var-nam": C.var_nam
10729
10740
  }, [createVNode(Checkbox, {
10730
- checked: T.vis_flg === 1,
10741
+ checked: C.vis_flg === 1,
10731
10742
  disabled: !0
10732
10743
  }, {
10733
- default: () => [createVNode("pre", null, [a.t(T.var_nam).value])]
10744
+ default: () => [createVNode("pre", null, [a.t(C.var_nam).value])]
10734
10745
  }), createVNode(HolderOutlined$1, {
10735
10746
  onClick: (E) => {
10736
10747
  E.preventDefault(), E.stopPropagation();
@@ -10748,7 +10759,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10748
10759
  }, {
10749
10760
  default: () => {
10750
10761
  var E;
10751
- let y, T;
10762
+ let y, C;
10752
10763
  return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((I) => {
10753
10764
  var k;
10754
10765
  return createVNode(Menu.Item, {
@@ -10767,14 +10778,14 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10767
10778
  }), createVNode(Menu.Item, {
10768
10779
  key: "save-grid-view-as",
10769
10780
  onClick: v
10770
- }, _isSlot$5(T = n.t("kg.KgTable.saveVarGridMasterAs")) ? T : {
10771
- default: () => [T]
10781
+ }, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMasterAs")) ? C : {
10782
+ default: () => [C]
10772
10783
  })]);
10773
10784
  },
10774
10785
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
10775
10786
  });
10776
10787
  }
10777
- function C() {
10788
+ function T() {
10778
10789
  let y;
10779
10790
  return createVNode(Menu.Item, {
10780
10791
  key: "config-var-grid-master",
@@ -10797,7 +10808,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10797
10808
  "onUpdate:openKeys": (y) => l.value = y,
10798
10809
  selectable: !1
10799
10810
  }, {
10800
- default: () => [m(), b(), C()]
10811
+ default: () => [m(), b(), T()]
10801
10812
  })
10802
10813
  }), c.visible && createVNode(KgTableSettingConfigModal, {
10803
10814
  visible: c.visible,
@@ -10973,22 +10984,22 @@ function _useColumns() {
10973
10984
  if (p.fix_right_flg === 1)
10974
10985
  return "right";
10975
10986
  }
10976
- function C() {
10987
+ function T() {
10977
10988
  return p.ord_flg === 1;
10978
10989
  }
10979
10990
  function y() {
10980
10991
  return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
10981
10992
  }
10982
- const T = _();
10993
+ const C = _();
10983
10994
  return {
10984
10995
  dataIndex: p.var_nam,
10985
10996
  title: v(),
10986
- width: T,
10987
- resizable: typeof T == "number",
10997
+ width: C,
10998
+ resizable: typeof C == "number",
10988
10999
  minWidth: KG_TABLE_TD_MIN_WIDTH,
10989
11000
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
10990
11001
  fixed: b(),
10991
- sorter: C(),
11002
+ sorter: T(),
10992
11003
  align: y(),
10993
11004
  defaultSortOrder: m(),
10994
11005
  customHeaderCell: () => ({
@@ -11074,13 +11085,13 @@ const KgTable$1 = "", KgTable = defineComponent({
11074
11085
  isLoading: v
11075
11086
  } = _useLoading(), m = ref(null);
11076
11087
  _useResizeObserver(m);
11077
- const b = computed(() => s.store.getVarButtonSearch(s.formID)), C = computed(() => {
11088
+ const b = computed(() => s.store.getVarButtonSearch(s.formID)), T = computed(() => {
11078
11089
  var P;
11079
11090
  return ((P = s.varGridConfig.value) == null ? void 0 : P.mult_flg) === 1;
11080
11091
  }), y = computed(() => {
11081
11092
  var P;
11082
11093
  return ((P = s.varGridConfig.value) == null ? void 0 : P.aut_load_flg) === 1;
11083
- }), T = computed(() => {
11094
+ }), C = computed(() => {
11084
11095
  var P;
11085
11096
  return ((P = s.varGridConfig.value) == null ? void 0 : P.show_bottom_left_flg) !== 0;
11086
11097
  }), E = computed(() => {
@@ -11119,15 +11130,15 @@ const KgTable$1 = "", KgTable = defineComponent({
11119
11130
  return {
11120
11131
  fixed: "left",
11121
11132
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
11122
- hideSelectAll: !C.value,
11133
+ hideSelectAll: !T.value,
11123
11134
  selectedRowKeys: M,
11124
11135
  preserveSelectedRowKeys: !1,
11125
11136
  onSelect: (K) => B(K),
11126
- onChange: (K) => C.value && N(K)
11137
+ onChange: (K) => T.value && N(K)
11127
11138
  };
11128
11139
  }), $ = computed(() => {
11129
11140
  let P = "kg-table";
11130
- return !T.value && !E.value && (P += " kg-table--no-bottom"), P;
11141
+ return !C.value && !E.value && (P += " kg-table--no-bottom"), P;
11131
11142
  }), V = ref([]), M = ref([]), A = reactive({
11132
11143
  pageIndex: 1,
11133
11144
  pageSize: 10,
@@ -11219,7 +11230,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11219
11230
  }
11220
11231
  function B(P) {
11221
11232
  var K, H;
11222
- switch (C.value) {
11233
+ switch (T.value) {
11223
11234
  case !0:
11224
11235
  {
11225
11236
  const q = P[I.value];
@@ -11351,11 +11362,11 @@ const KgTable$1 = "", KgTable = defineComponent({
11351
11362
  bodyCell: oe,
11352
11363
  emptyText: de,
11353
11364
  expandedRowRender: (P = a == null ? void 0 : a.KgTable) == null ? void 0 : P.expandedRowRender
11354
- }), (T.value || E.value) && createVNode("div", {
11365
+ }), (C.value || E.value) && createVNode("div", {
11355
11366
  class: "kg-table-bottom"
11356
11367
  }, [createVNode("div", {
11357
11368
  class: "left"
11358
- }, [T.value && createVNode(KgTableInfo, {
11369
+ }, [C.value && createVNode(KgTableInfo, {
11359
11370
  kgShowClearCheck: M.value.length > 0,
11360
11371
  kgShowClearTable: A.total > 0,
11361
11372
  kgShowLocate: M.value.length === 1,
@@ -11494,7 +11505,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11494
11505
  var p, _;
11495
11506
  return (_ = (p = a.value) == null ? void 0 : p.cmd_method) != null ? _ : "GET";
11496
11507
  }), i = computed(() => {
11497
- var _, v, m, b, C, y;
11508
+ var _, v, m, b, T, y;
11498
11509
  let p = {
11499
11510
  ...(_ = n.model.value) != null ? _ : {}
11500
11511
  };
@@ -11503,7 +11514,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11503
11514
  ...KgVarUtil.parseCommandParameter((m = (v = a.value) == null ? void 0 : v.cmd_prm) != null ? m : "")
11504
11515
  }), (b = r.varGridConfig.value) != null && b.cmd_prm && (p = {
11505
11516
  ...p,
11506
- ...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
11517
+ ...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
11507
11518
  }), ((y = r.varGridConfig.value) == null ? void 0 : y.convert_sort_field_to_under_score_flg) === 1 && p.column && (p.column = snakeCase$1(p.column)), p;
11508
11519
  }), l = ref(!1);
11509
11520
  async function u() {
@@ -11709,16 +11720,16 @@ const KgTable$1 = "", KgTable = defineComponent({
11709
11720
  }
11710
11721
  let u = null;
11711
11722
  const c = async () => {
11712
- var m, b, C, y, T, E, I;
11723
+ var m, b, T, y, C, E, I;
11713
11724
  u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
11714
11725
  const v = a.selectedRows.value;
11715
11726
  try {
11716
11727
  await httpClient().request({
11717
11728
  method: (b = (m = e.kgButton) == null ? void 0 : m.cmd_method) != null ? b : "POST",
11718
11729
  url: l,
11719
- params: KgVarUtil.parseCommandParameter((y = (C = e.kgButton) == null ? void 0 : C.cmd_prm) != null ? y : ""),
11730
+ params: KgVarUtil.parseCommandParameter((y = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? y : ""),
11720
11731
  data: v != null ? v : []
11721
- }), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((I = (E = n.search).value) == null || I.call(E, !0));
11732
+ }), ((C = e.kgButton) == null ? void 0 : C.reload_all_after_done_flg) === 1 && ((I = (E = n.search).value) == null || I.call(E, !0));
11722
11733
  } catch (k) {
11723
11734
  console.error(k);
11724
11735
  } finally {
@@ -12492,23 +12503,23 @@ const leftVarProfileDetailColumns = (e) => {
12492
12503
  isCreating: v,
12493
12504
  isUpdating: m,
12494
12505
  isCopying: b,
12495
- row: C,
12506
+ row: T,
12496
12507
  model: y
12497
12508
  }) => {
12498
12509
  var E, I, k;
12499
- const T = i.store.getSystemVarProfileDetails(i.formID);
12500
- switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
12510
+ const C = i.store.getSystemVarProfileDetails(i.formID);
12511
+ switch (l.value = C ? cloneDeep(unref(toRaw(C))) : [], !0) {
12501
12512
  case v:
12502
12513
  u.value = [];
12503
12514
  break;
12504
12515
  case m:
12505
12516
  case b:
12506
- if (C != null && C.id)
12517
+ if (T != null && T.id)
12507
12518
  try {
12508
12519
  s.store.setIsLoading(n.formID, !0);
12509
12520
  const F = await QueryByID({
12510
12521
  params: {
12511
- id: C.id
12522
+ id: T.id
12512
12523
  }
12513
12524
  });
12514
12525
  l.value = l.value.map((O) => {
@@ -12540,9 +12551,9 @@ const leftVarProfileDetailColumns = (e) => {
12540
12551
  }), s.onBeforeOk(async ({
12541
12552
  model: v
12542
12553
  }) => {
12543
- var b, C;
12554
+ var b, T;
12544
12555
  const m = v.value;
12545
- return m.frm_id = i.formID, m.varProfileDetails = (C = (b = l.value) == null ? void 0 : b.filter((y) => u.value.includes(y.id))) != null ? C : [], !1;
12556
+ return m.frm_id = i.formID, m.varProfileDetails = (T = (b = l.value) == null ? void 0 : b.filter((y) => u.value.includes(y.id))) != null ? T : [], !1;
12546
12557
  }), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
12547
12558
  row: v
12548
12559
  }) => (v == null ? void 0 : v.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
@@ -12566,9 +12577,9 @@ const leftVarProfileDetailColumns = (e) => {
12566
12577
  varName: v,
12567
12578
  props: m,
12568
12579
  model: b,
12569
- varConfig: C,
12580
+ varConfig: T,
12570
12581
  varProfileDetail: y,
12571
- varSubmitField: T
12582
+ varSubmitField: C
12572
12583
  }) => createVNode(Transfer, {
12573
12584
  dataSource: l.value,
12574
12585
  targetKeys: u.value,
@@ -12621,40 +12632,40 @@ const leftVarProfileDetailColumns = (e) => {
12621
12632
  disabled: v,
12622
12633
  selectedKeys: m,
12623
12634
  onItemSelectAll: b,
12624
- onItemSelect: C
12635
+ onItemSelect: T
12625
12636
  }) => ({
12626
12637
  getCheckboxProps: (y) => ({
12627
12638
  disabled: v || y.disabled
12628
12639
  }),
12629
- onSelectAll(y, T) {
12630
- const E = T.filter((I) => !I.disabled).map(({
12640
+ onSelectAll(y, C) {
12641
+ const E = C.filter((I) => !I.disabled).map(({
12631
12642
  key: I
12632
12643
  }) => I);
12633
12644
  b(E, y);
12634
12645
  },
12635
12646
  onSelect({
12636
12647
  key: y
12637
- }, T) {
12638
- C(y, T);
12648
+ }, C) {
12649
+ T(y, C);
12639
12650
  },
12640
12651
  selectedRowKeys: m,
12641
12652
  columnWidth: 32
12642
12653
  });
12643
12654
  async function p() {
12644
12655
  const v = watch(a.isReady, async (m) => {
12645
- var b, C;
12656
+ var b, T;
12646
12657
  m && a.model.value && (setTimeout(() => v(), 0), a.store.patchModel(n.formID, {
12647
12658
  frm_id: e.hostFormID
12648
- }), (C = (b = a.search).value) == null || C.call(b));
12659
+ }), (T = (b = a.search).value) == null || T.call(b));
12649
12660
  }, {
12650
12661
  immediate: !0
12651
12662
  });
12652
12663
  }
12653
- function _(v, m, b, C) {
12664
+ function _(v, m, b, T) {
12654
12665
  if (!DomUtil.isNotClickable(v.target, ["ant-input"]))
12655
- switch (C.length = 0, v.detail) {
12666
+ switch (T.length = 0, v.detail) {
12656
12667
  case 1:
12657
- C[0] = m.id;
12668
+ T[0] = m.id;
12658
12669
  break;
12659
12670
  case 2:
12660
12671
  switch (b) {
@@ -12775,11 +12786,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12775
12786
  return !!(o.isRetrieving.value || ((N = E.value) == null ? void 0 : N.permission_type) === 2 && !r.p((B = E.value) == null ? void 0 : B.permission_code));
12776
12787
  }), _ = computed(() => !!o.isRetrieving.value), v = computed(() => !!o.isRetrieving.value), m = ref(null), b = ref({
12777
12788
  kgHeight: g.value
12778
- }), C = ref({
12789
+ }), T = ref({
12779
12790
  visible: !1
12780
12791
  });
12781
12792
  let y;
12782
- const T = computed(() => b.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), I = computed(() => {
12793
+ const C = computed(() => b.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), I = computed(() => {
12783
12794
  var N, B, W;
12784
12795
  if (n.t((N = E.value) == null ? void 0 : N.var_nam).value !== ((B = E.value) == null ? void 0 : B.var_nam))
12785
12796
  return n.t((W = E.value) == null ? void 0 : W.var_nam).value;
@@ -12854,7 +12865,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12854
12865
  onClick: (B) => {
12855
12866
  B.stopPropagation(), B.preventDefault();
12856
12867
  }
12857
- }, [t.KgSearch.left()]), T.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
12868
+ }, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
12858
12869
  }
12859
12870
  function w() {
12860
12871
  var N, B, W, Y;
@@ -12876,14 +12887,14 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12876
12887
  }), createVNode(Button, {
12877
12888
  disabled: _.value,
12878
12889
  onClick: () => {
12879
- C.value.visible = !0;
12890
+ T.value.visible = !0;
12880
12891
  },
12881
12892
  class: "kg-search-profile-master-btn"
12882
12893
  }, {
12883
12894
  default: () => [createVNode(SettingOutlined$1, null, null)]
12884
12895
  }), createVNode(KgSearchConfigModal, {
12885
- visible: C.value.visible,
12886
- "onUpdate:visible": (Q) => C.value.visible = Q,
12896
+ visible: T.value.visible,
12897
+ "onUpdate:visible": (Q) => T.value.visible = Q,
12887
12898
  hostFormID: n.formID
12888
12899
  }, null)]);
12889
12900
  }
@@ -12935,7 +12946,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12935
12946
  });
12936
12947
  }
12937
12948
  function G() {
12938
- T.value ? b.value.kgHeight = u.value : b.value.kgHeight = g.value;
12949
+ C.value ? b.value.kgHeight = u.value : b.value.kgHeight = g.value;
12939
12950
  }
12940
12951
  return () => createVNode(KgResizable, {
12941
12952
  kgHeight: b.value.kgHeight,
@@ -13031,27 +13042,27 @@ function useMagicKeys(e = {}) {
13031
13042
  g(m, !1);
13032
13043
  }
13033
13044
  function _(m, b) {
13034
- var C, y;
13035
- const T = (C = m.key) == null ? void 0 : C.toLowerCase(), E = (y = m.code) == null ? void 0 : y.toLowerCase(), I = [E, T].filter(Boolean);
13045
+ var T, y;
13046
+ const C = (T = m.key) == null ? void 0 : T.toLowerCase(), E = (y = m.code) == null ? void 0 : y.toLowerCase(), I = [E, C].filter(Boolean);
13036
13047
  E && (b ? s.add(m.code) : s.delete(m.code));
13037
13048
  for (const k of I)
13038
13049
  c.add(k), g(k, b);
13039
- T === "meta" && !b ? (u.forEach((k) => {
13050
+ C === "meta" && !b ? (u.forEach((k) => {
13040
13051
  s.delete(k), g(k, !1);
13041
13052
  }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && b && [...s, ...I].forEach((k) => u.add(k));
13042
13053
  }
13043
13054
  r && (useEventListener(r, "keydown", (m) => (_(m, !0), o(m)), { passive: a }), useEventListener(r, "keyup", (m) => (_(m, !1), o(m)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
13044
13055
  const v = new Proxy(l, {
13045
- get(m, b, C) {
13056
+ get(m, b, T) {
13046
13057
  if (typeof b != "string")
13047
- return Reflect.get(m, b, C);
13058
+ return Reflect.get(m, b, T);
13048
13059
  if (b = b.toLowerCase(), b in n && (b = n[b]), !(b in l))
13049
13060
  if (/[+_-]/.test(b)) {
13050
- const T = b.split(/[+_-]/g).map((E) => E.trim());
13051
- l[b] = computed(() => T.every((E) => unref(v[E])));
13061
+ const C = b.split(/[+_-]/g).map((E) => E.trim());
13062
+ l[b] = computed(() => C.every((E) => unref(v[E])));
13052
13063
  } else
13053
13064
  l[b] = ref(!1);
13054
- const y = Reflect.get(m, b, C);
13065
+ const y = Reflect.get(m, b, T);
13055
13066
  return t ? unref(y) : y;
13056
13067
  }
13057
13068
  });
@@ -13443,7 +13454,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13443
13454
  }), v = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
13444
13455
  var V;
13445
13456
  return !!c.value || ((V = n.getSelectedVarCatalog) == null ? void 0 : V.cust_lvl) === KG_CUSTOM_LEVEL.L0;
13446
- }), b = computed(() => !!(!unref(c) || unref(a) || unref(o))), C = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
13457
+ }), b = computed(() => !!(!unref(c) || unref(a) || unref(o))), T = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
13447
13458
  watch(() => n.getSelectedVar, (V) => {
13448
13459
  V ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
13449
13460
  }, {
@@ -13482,7 +13493,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13482
13493
  a.value = !1;
13483
13494
  }
13484
13495
  }
13485
- async function T() {
13496
+ async function C() {
13486
13497
  var V, M, A;
13487
13498
  try {
13488
13499
  o.value = !0, await ((V = i.value) == null ? void 0 : V.validate());
@@ -13591,7 +13602,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13591
13602
  }, [createVNode(Form, {
13592
13603
  ref: i,
13593
13604
  model: l.value,
13594
- onSubmit: T
13605
+ onSubmit: C
13595
13606
  }, {
13596
13607
  default: () => [createVNode(Form.Item, {
13597
13608
  name: "var_text",
@@ -13617,8 +13628,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
13617
13628
  default: () => [V]
13618
13629
  }), createVNode(Button, {
13619
13630
  loading: o.value,
13620
- disabled: C.value,
13621
- onClick: T,
13631
+ disabled: T.value,
13632
+ onClick: C,
13622
13633
  type: "primary"
13623
13634
  }, _isSlot(M = t.t("common.save")) ? M : {
13624
13635
  default: () => [M]
@@ -14007,7 +14018,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14007
14018
  !p.value || n.store.setVisible(!0);
14008
14019
  }
14009
14020
  function v() {
14010
- i.value = n.warehouse.value, C();
14021
+ i.value = n.warehouse.value, T();
14011
14022
  }
14012
14023
  function m() {
14013
14024
  o.value = "", c.value = [], i.value = null;
@@ -14026,7 +14037,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14026
14037
  }
14027
14038
  })), n.store.setVisible(!1));
14028
14039
  }
14029
- async function C() {
14040
+ async function T() {
14030
14041
  l.value = !0;
14031
14042
  try {
14032
14043
  const {
@@ -14055,7 +14066,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14055
14066
  break;
14056
14067
  }
14057
14068
  }
14058
- function T() {
14069
+ function C() {
14059
14070
  return p.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
14060
14071
  title: r.t("kg.KgWarehouse.warehouse"),
14061
14072
  placement: "bottomRight"
@@ -14116,7 +14127,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14116
14127
  return () => createVNode("div", {
14117
14128
  class: a.value,
14118
14129
  onClick: _
14119
- }, [T()]);
14130
+ }, [C()]);
14120
14131
  }
14121
14132
  });
14122
14133
  function createKgWarehouseGuard(e, t) {