@kengic/vue 0.23.11-beta.0 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -742,7 +742,7 @@ var Icon$1 = function(t, a) {
742
742
  var p = o ? {
743
743
  msTransform: "rotate(".concat(o, "deg)"),
744
744
  transform: "rotate(".concat(o, "deg)")
745
- } : void 0, T = normalizeTwoToneColors(u), E = _slicedToArray(T, 2), C = E[0], R = E[1];
745
+ } : void 0, T = normalizeTwoToneColors(u), E = _slicedToArray(T, 2), k = E[0], C = E[1];
746
746
  return createVNode("span", _objectSpread$k({
747
747
  role: "img",
748
748
  "aria-label": l.name
@@ -752,8 +752,8 @@ var Icon$1 = function(t, a) {
752
752
  }), [createVNode(VueIcon, {
753
753
  class: d,
754
754
  icon: l,
755
- primaryColor: C,
756
- secondaryColor: R,
755
+ primaryColor: k,
756
+ secondaryColor: C,
757
757
  style: p
758
758
  }, null)]);
759
759
  };
@@ -1526,11 +1526,11 @@ function iconToSVG(e, t) {
1526
1526
  ), m.push("scale(-1 1)"), n.top = n.left = 0) : T && (m.push(
1527
1527
  "translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
1528
1528
  ), m.push("scale(1 -1)"), n.top = n.left = 0);
1529
- let C;
1529
+ let k;
1530
1530
  switch (E < 0 && (E -= Math.floor(E / 4) * 4), E = E % 4, E) {
1531
1531
  case 1:
1532
- C = n.height / 2 + n.top, m.unshift(
1533
- "rotate(90 " + C.toString() + " " + C.toString() + ")"
1532
+ k = n.height / 2 + n.top, m.unshift(
1533
+ "rotate(90 " + k.toString() + " " + k.toString() + ")"
1534
1534
  );
1535
1535
  break;
1536
1536
  case 2:
@@ -1539,12 +1539,12 @@ function iconToSVG(e, t) {
1539
1539
  );
1540
1540
  break;
1541
1541
  case 3:
1542
- C = n.width / 2 + n.left, m.unshift(
1543
- "rotate(-90 " + C.toString() + " " + C.toString() + ")"
1542
+ k = n.width / 2 + n.left, m.unshift(
1543
+ "rotate(-90 " + k.toString() + " " + k.toString() + ")"
1544
1544
  );
1545
1545
  break;
1546
1546
  }
1547
- E % 2 === 1 && (n.left !== n.top && (C = n.left, n.left = n.top, n.top = C), n.width !== n.height && (C = n.width, n.width = n.height, n.height = C)), m.length && (i = '<g transform="' + m.join(" ") + '">' + i + "</g>");
1547
+ E % 2 === 1 && (n.left !== n.top && (k = n.left, n.left = n.top, n.top = k), n.width !== n.height && (k = n.width, n.width = n.height, n.height = k)), m.length && (i = '<g transform="' + m.join(" ") + '">' + i + "</g>");
1548
1548
  });
1549
1549
  const l = r.width, s = r.height, o = n.width, c = n.height;
1550
1550
  let u, _;
@@ -1862,12 +1862,12 @@ function sendQuery(e, t, a, r) {
1862
1862
  y(void 0, u);
1863
1863
  });
1864
1864
  }
1865
- function C() {
1865
+ function k() {
1866
1866
  g.forEach((y) => {
1867
1867
  y.status === "pending" && (y.status = "aborted");
1868
1868
  }), g = [];
1869
1869
  }
1870
- function R(y, A, V) {
1870
+ function C(y, A, V) {
1871
1871
  const I = A !== "success";
1872
1872
  switch (g = g.filter((O) => O !== y), o) {
1873
1873
  case "pending":
@@ -1884,10 +1884,10 @@ function sendQuery(e, t, a, r) {
1884
1884
  return;
1885
1885
  }
1886
1886
  if (I) {
1887
- u = V, g.length || (l.length ? k() : E());
1887
+ u = V, g.length || (l.length ? R() : E());
1888
1888
  return;
1889
1889
  }
1890
- if (d(), C(), !e.random) {
1890
+ if (d(), k(), !e.random) {
1891
1891
  const O = e.resources.indexOf(y.resource);
1892
1892
  O !== -1 && O !== e.index && (e.index = O);
1893
1893
  }
@@ -1895,7 +1895,7 @@ function sendQuery(e, t, a, r) {
1895
1895
  O(V);
1896
1896
  });
1897
1897
  }
1898
- function k() {
1898
+ function R() {
1899
1899
  if (o !== "pending")
1900
1900
  return;
1901
1901
  d();
@@ -1903,7 +1903,7 @@ function sendQuery(e, t, a, r) {
1903
1903
  if (y === void 0) {
1904
1904
  if (g.length) {
1905
1905
  _ = setTimeout(() => {
1906
- d(), o === "pending" && (C(), E());
1906
+ d(), o === "pending" && (k(), E());
1907
1907
  }, e.timeout);
1908
1908
  return;
1909
1909
  }
@@ -1914,12 +1914,12 @@ function sendQuery(e, t, a, r) {
1914
1914
  status: "pending",
1915
1915
  resource: y,
1916
1916
  callback: (V, I) => {
1917
- R(A, V, I);
1917
+ C(A, V, I);
1918
1918
  }
1919
1919
  };
1920
- g.push(A), c++, _ = setTimeout(k, e.rotate), a(y, t, A.callback);
1920
+ g.push(A), c++, _ = setTimeout(R, e.rotate), a(y, t, A.callback);
1921
1921
  }
1922
- return setTimeout(k), T;
1922
+ return setTimeout(R), T;
1923
1923
  }
1924
1924
  function initRedundancy(e) {
1925
1925
  const t = {
@@ -2437,7 +2437,7 @@ const emptyIcon = {
2437
2437
  ...t.data
2438
2438
  }, a);
2439
2439
  }
2440
- }), version = "0.23.11-beta.0";
2440
+ }), version = "0.24.0";
2441
2441
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
2442
2442
  const freeGlobal$1 = freeGlobal;
2443
2443
  var freeSelf = typeof self == "object" && self && self.Object === Object && self, root = freeGlobal$1 || freeSelf || Function("return this")();
@@ -3629,16 +3629,16 @@ function equalObjects(e, t, a, r, n, i) {
3629
3629
  g = s[_];
3630
3630
  var T = e[g], E = t[g];
3631
3631
  if (r)
3632
- var C = l ? r(E, T, g, t, e, i) : r(T, E, g, e, t, i);
3633
- if (!(C === void 0 ? T === E || n(T, E, a, r, i) : C)) {
3632
+ var k = l ? r(E, T, g, t, e, i) : r(T, E, g, e, t, i);
3633
+ if (!(k === void 0 ? T === E || n(T, E, a, r, i) : k)) {
3634
3634
  m = !1;
3635
3635
  break;
3636
3636
  }
3637
3637
  p || (p = g == "constructor");
3638
3638
  }
3639
3639
  if (m && !p) {
3640
- var R = e.constructor, k = t.constructor;
3641
- R != k && "constructor" in e && "constructor" in t && !(typeof R == "function" && R instanceof R && typeof k == "function" && k instanceof k) && (m = !1);
3640
+ var C = e.constructor, R = t.constructor;
3641
+ C != R && "constructor" in e && "constructor" in t && !(typeof C == "function" && C instanceof C && typeof R == "function" && R instanceof R) && (m = !1);
3642
3642
  }
3643
3643
  return i.delete(e), i.delete(t), m;
3644
3644
  }
@@ -3832,13 +3832,13 @@ function debounce(e, t, a) {
3832
3832
  function E(y) {
3833
3833
  return s = void 0, g && r ? v(y) : (r = n = void 0, l);
3834
3834
  }
3835
- function C() {
3835
+ function k() {
3836
3836
  s !== void 0 && clearTimeout(s), c = 0, r = o = n = s = void 0;
3837
3837
  }
3838
- function R() {
3838
+ function C() {
3839
3839
  return s === void 0 ? l : E(now$1());
3840
3840
  }
3841
- function k() {
3841
+ function R() {
3842
3842
  var y = now$1(), A = p(y);
3843
3843
  if (r = arguments, n = this, o = y, A) {
3844
3844
  if (s === void 0)
@@ -3848,7 +3848,7 @@ function debounce(e, t, a) {
3848
3848
  }
3849
3849
  return s === void 0 && (s = setTimeout(T, t)), l;
3850
3850
  }
3851
- return k.cancel = C, k.flush = R, k;
3851
+ return R.cancel = k, R.flush = C, R;
3852
3852
  }
3853
3853
  function isArrayLikeObject(e) {
3854
3854
  return isObjectLike(e) && isArrayLike(e);
@@ -4791,7 +4791,7 @@ class KgRouteUtil {
4791
4791
  }), t;
4792
4792
  }
4793
4793
  static transformMenus(t) {
4794
- var g, v, d, m, p, T, E, C, R, k, y, A, V, I, O, F, P, G, K, w, N, B, D, U, M, x, W, z, J, ae, se, ue, _e, oe;
4794
+ var g, v, d, m, p, T, E, k, C, R, y, A, V, I, O, F, K, G, w, P, N, B, D, U, M, x, W, z, J, ae, se, ue, _e, oe;
4795
4795
  if (!t)
4796
4796
  return [];
4797
4797
  const a = useKg(), r = (Y) => {
@@ -4840,8 +4840,8 @@ class KgRouteUtil {
4840
4840
  children: [],
4841
4841
  id: KG_TMP_MENU_ID__BUSINESS_MANAGER,
4842
4842
  key: KG_TMP_MENU_ID__BUSINESS_MANAGER,
4843
- name: (C = (E = a.option.value.appTitle) == null ? void 0 : E[KG_APP.WMS_BUSINESS_MANAGER]) != null ? C : "\u4ED3\u5E93\u7BA1\u7406",
4844
- slotTitle: (k = (R = a.option.value.appTitle) == null ? void 0 : R[KG_APP.WMS_BUSINESS_MANAGER]) != null ? k : "\u4ED3\u5E93\u7BA1\u7406",
4843
+ name: (k = (E = a.option.value.appTitle) == null ? void 0 : E[KG_APP.WMS_BUSINESS_MANAGER]) != null ? k : "\u4ED3\u5E93\u7BA1\u7406",
4844
+ slotTitle: (R = (C = a.option.value.appTitle) == null ? void 0 : C[KG_APP.WMS_BUSINESS_MANAGER]) != null ? R : "\u4ED3\u5E93\u7BA1\u7406",
4845
4845
  sortNo: 2,
4846
4846
  title: (A = (y = a.option.value.appTitle) == null ? void 0 : y[KG_APP.WMS_BUSINESS_MANAGER]) != null ? A : "\u4ED3\u5E93\u7BA1\u7406",
4847
4847
  ...n,
@@ -4854,14 +4854,14 @@ class KgRouteUtil {
4854
4854
  name: (I = (V = a.option.value.appTitle) == null ? void 0 : V[KG_APP.WCS]) != null ? I : "WCS",
4855
4855
  slotTitle: (F = (O = a.option.value.appTitle) == null ? void 0 : O[KG_APP.WCS]) != null ? F : "WCS",
4856
4856
  sortNo: 3,
4857
- title: (G = (P = a.option.value.appTitle) == null ? void 0 : P[KG_APP.WCS]) != null ? G : "WCS",
4857
+ title: (G = (K = a.option.value.appTitle) == null ? void 0 : K[KG_APP.WCS]) != null ? G : "WCS",
4858
4858
  ...n,
4859
4859
  url: KG_APP_PREFIX.WCS,
4860
4860
  value: KG_TMP_MENU_ID__WCS
4861
4861
  }, o = {
4862
4862
  id: KG_TMP_MENU_ID__SYS,
4863
4863
  key: KG_TMP_MENU_ID__SYS,
4864
- title: (w = (K = a.option.value.appTitle) == null ? void 0 : K[KG_APP.SYS]) != null ? w : "\u7CFB\u7EDF\u914D\u7F6E",
4864
+ title: (P = (w = a.option.value.appTitle) == null ? void 0 : w[KG_APP.SYS]) != null ? P : "\u7CFB\u7EDF\u914D\u7F6E",
4865
4865
  name: (B = (N = a.option.value.appTitle) == null ? void 0 : N[KG_APP.SYS]) != null ? B : "\u7CFB\u7EDF\u914D\u7F6E",
4866
4866
  slotTitle: (U = (D = a.option.value.appTitle) == null ? void 0 : D[KG_APP.SYS]) != null ? U : "\u7CFB\u7EDF\u914D\u7F6E",
4867
4867
  sortNo: 4,
@@ -4994,60 +4994,60 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4994
4994
  (function(a, r) {
4995
4995
  e.exports = r();
4996
4996
  })(commonjsGlobal, function() {
4997
- var a = 1e3, r = 6e4, n = 36e5, i = "millisecond", l = "second", s = "minute", o = "hour", c = "day", u = "week", _ = "month", g = "quarter", v = "year", d = "date", m = "Invalid Date", p = /^(\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, E = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(K) {
4998
- var w = ["th", "st", "nd", "rd"], N = K % 100;
4999
- return "[" + K + (w[(N - 20) % 10] || w[N] || w[0]) + "]";
5000
- } }, C = function(K, w, N) {
5001
- var B = String(K);
5002
- return !B || B.length >= w ? K : "" + Array(w + 1 - B.length).join(N) + K;
5003
- }, R = { s: C, z: function(K) {
5004
- var w = -K.utcOffset(), N = Math.abs(w), B = Math.floor(N / 60), D = N % 60;
5005
- return (w <= 0 ? "+" : "-") + C(B, 2, "0") + ":" + C(D, 2, "0");
5006
- }, m: function K(w, N) {
5007
- if (w.date() < N.date())
5008
- return -K(N, w);
5009
- var B = 12 * (N.year() - w.year()) + (N.month() - w.month()), D = w.clone().add(B, _), U = N - D < 0, M = w.clone().add(B + (U ? -1 : 1), _);
4997
+ var a = 1e3, r = 6e4, n = 36e5, i = "millisecond", l = "second", s = "minute", o = "hour", c = "day", u = "week", _ = "month", g = "quarter", v = "year", d = "date", m = "Invalid Date", p = /^(\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, E = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
4998
+ var P = ["th", "st", "nd", "rd"], N = w % 100;
4999
+ return "[" + w + (P[(N - 20) % 10] || P[N] || P[0]) + "]";
5000
+ } }, k = function(w, P, N) {
5001
+ var B = String(w);
5002
+ return !B || B.length >= P ? w : "" + Array(P + 1 - B.length).join(N) + w;
5003
+ }, C = { s: k, z: function(w) {
5004
+ var P = -w.utcOffset(), N = Math.abs(P), B = Math.floor(N / 60), D = N % 60;
5005
+ return (P <= 0 ? "+" : "-") + k(B, 2, "0") + ":" + k(D, 2, "0");
5006
+ }, m: function w(P, N) {
5007
+ if (P.date() < N.date())
5008
+ return -w(N, P);
5009
+ var B = 12 * (N.year() - P.year()) + (N.month() - P.month()), D = P.clone().add(B, _), U = N - D < 0, M = P.clone().add(B + (U ? -1 : 1), _);
5010
5010
  return +(-(B + (N - D) / (U ? D - M : M - D)) || 0);
5011
- }, a: function(K) {
5012
- return K < 0 ? Math.ceil(K) || 0 : Math.floor(K);
5013
- }, p: function(K) {
5014
- return { M: _, y: v, w: u, d: c, D: d, h: o, m: s, s: l, ms: i, Q: g }[K] || String(K || "").toLowerCase().replace(/s$/, "");
5015
- }, u: function(K) {
5016
- return K === void 0;
5017
- } }, k = "en", y = {};
5018
- y[k] = E;
5019
- var A = "$isDayjsObject", V = function(K) {
5020
- return K instanceof P || !(!K || !K[A]);
5021
- }, I = function K(w, N, B) {
5011
+ }, a: function(w) {
5012
+ return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
5013
+ }, p: function(w) {
5014
+ return { M: _, y: v, w: u, d: c, D: d, h: o, m: s, s: l, ms: i, Q: g }[w] || String(w || "").toLowerCase().replace(/s$/, "");
5015
+ }, u: function(w) {
5016
+ return w === void 0;
5017
+ } }, R = "en", y = {};
5018
+ y[R] = E;
5019
+ var A = "$isDayjsObject", V = function(w) {
5020
+ return w instanceof K || !(!w || !w[A]);
5021
+ }, I = function w(P, N, B) {
5022
5022
  var D;
5023
- if (!w)
5024
- return k;
5025
- if (typeof w == "string") {
5026
- var U = w.toLowerCase();
5023
+ if (!P)
5024
+ return R;
5025
+ if (typeof P == "string") {
5026
+ var U = P.toLowerCase();
5027
5027
  y[U] && (D = U), N && (y[U] = N, D = U);
5028
- var M = w.split("-");
5028
+ var M = P.split("-");
5029
5029
  if (!D && M.length > 1)
5030
- return K(M[0]);
5030
+ return w(M[0]);
5031
5031
  } else {
5032
- var x = w.name;
5033
- y[x] = w, D = x;
5034
- }
5035
- return !B && D && (k = D), D || !B && k;
5036
- }, O = function(K, w) {
5037
- if (V(K))
5038
- return K.clone();
5039
- var N = typeof w == "object" ? w : {};
5040
- return N.date = K, N.args = arguments, new P(N);
5041
- }, F = R;
5042
- F.l = I, F.i = V, F.w = function(K, w) {
5043
- return O(K, { locale: w.$L, utc: w.$u, x: w.$x, $offset: w.$offset });
5032
+ var x = P.name;
5033
+ y[x] = P, D = x;
5034
+ }
5035
+ return !B && D && (R = D), D || !B && R;
5036
+ }, O = function(w, P) {
5037
+ if (V(w))
5038
+ return w.clone();
5039
+ var N = typeof P == "object" ? P : {};
5040
+ return N.date = w, N.args = arguments, new K(N);
5041
+ }, F = C;
5042
+ F.l = I, F.i = V, F.w = function(w, P) {
5043
+ return O(w, { locale: P.$L, utc: P.$u, x: P.$x, $offset: P.$offset });
5044
5044
  };
5045
- var P = function() {
5046
- function K(N) {
5045
+ var K = function() {
5046
+ function w(N) {
5047
5047
  this.$L = I(N.locale, null, !0), this.parse(N), this.$x = this.$x || N.x || {}, this[A] = !0;
5048
5048
  }
5049
- var w = K.prototype;
5050
- return w.parse = function(N) {
5049
+ var P = w.prototype;
5050
+ return P.parse = function(N) {
5051
5051
  this.$d = function(B) {
5052
5052
  var D = B.date, U = B.utc;
5053
5053
  if (D === null)
@@ -5065,27 +5065,27 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5065
5065
  }
5066
5066
  return new Date(D);
5067
5067
  }(N), this.init();
5068
- }, w.init = function() {
5068
+ }, P.init = function() {
5069
5069
  var N = this.$d;
5070
5070
  this.$y = N.getFullYear(), this.$M = N.getMonth(), this.$D = N.getDate(), this.$W = N.getDay(), this.$H = N.getHours(), this.$m = N.getMinutes(), this.$s = N.getSeconds(), this.$ms = N.getMilliseconds();
5071
- }, w.$utils = function() {
5071
+ }, P.$utils = function() {
5072
5072
  return F;
5073
- }, w.isValid = function() {
5073
+ }, P.isValid = function() {
5074
5074
  return this.$d.toString() !== m;
5075
- }, w.isSame = function(N, B) {
5075
+ }, P.isSame = function(N, B) {
5076
5076
  var D = O(N);
5077
5077
  return this.startOf(B) <= D && D <= this.endOf(B);
5078
- }, w.isAfter = function(N, B) {
5078
+ }, P.isAfter = function(N, B) {
5079
5079
  return O(N) < this.startOf(B);
5080
- }, w.isBefore = function(N, B) {
5080
+ }, P.isBefore = function(N, B) {
5081
5081
  return this.endOf(B) < O(N);
5082
- }, w.$g = function(N, B, D) {
5082
+ }, P.$g = function(N, B, D) {
5083
5083
  return F.u(N) ? this[B] : this.set(D, N);
5084
- }, w.unix = function() {
5084
+ }, P.unix = function() {
5085
5085
  return Math.floor(this.valueOf() / 1e3);
5086
- }, w.valueOf = function() {
5086
+ }, P.valueOf = function() {
5087
5087
  return this.$d.getTime();
5088
- }, w.startOf = function(N, B) {
5088
+ }, P.startOf = function(N, B) {
5089
5089
  var D = this, U = !!F.u(B) || B, M = F.p(N), x = function(oe, Y) {
5090
5090
  var L = F.w(D.$u ? Date.UTC(D.$y, Y, oe) : new Date(D.$y, Y, oe), D);
5091
5091
  return U ? L : L.endOf(c);
@@ -5112,9 +5112,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5112
5112
  default:
5113
5113
  return this.clone();
5114
5114
  }
5115
- }, w.endOf = function(N) {
5115
+ }, P.endOf = function(N) {
5116
5116
  return this.startOf(N, !1);
5117
- }, w.$set = function(N, B) {
5117
+ }, P.$set = function(N, B) {
5118
5118
  var D, U = F.p(N), M = "set" + (this.$u ? "UTC" : ""), x = (D = {}, D[c] = M + "Date", D[d] = M + "Date", D[_] = M + "Month", D[v] = M + "FullYear", D[o] = M + "Hours", D[s] = M + "Minutes", D[l] = M + "Seconds", D[i] = M + "Milliseconds", D)[U], W = U === c ? this.$D + (B - this.$W) : B;
5119
5119
  if (U === _ || U === v) {
5120
5120
  var z = this.clone().set(d, 1);
@@ -5122,11 +5122,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5122
5122
  } else
5123
5123
  x && this.$d[x](W);
5124
5124
  return this.init(), this;
5125
- }, w.set = function(N, B) {
5125
+ }, P.set = function(N, B) {
5126
5126
  return this.clone().$set(N, B);
5127
- }, w.get = function(N) {
5127
+ }, P.get = function(N) {
5128
5128
  return this[F.p(N)]();
5129
- }, w.add = function(N, B) {
5129
+ }, P.add = function(N, B) {
5130
5130
  var D, U = this;
5131
5131
  N = Number(N);
5132
5132
  var M = F.p(B), x = function(J) {
@@ -5143,9 +5143,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5143
5143
  return x(7);
5144
5144
  var W = (D = {}, D[s] = r, D[o] = n, D[l] = a, D)[M] || 1, z = this.$d.getTime() + N * W;
5145
5145
  return F.w(z, this);
5146
- }, w.subtract = function(N, B) {
5146
+ }, P.subtract = function(N, B) {
5147
5147
  return this.add(-1 * N, B);
5148
- }, w.format = function(N) {
5148
+ }, P.format = function(N) {
5149
5149
  var B = this, D = this.$locale();
5150
5150
  if (!this.isValid())
5151
5151
  return D.invalidDate || m;
@@ -5212,9 +5212,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5212
5212
  return null;
5213
5213
  }(Y) || M.replace(":", "");
5214
5214
  });
5215
- }, w.utcOffset = function() {
5215
+ }, P.utcOffset = function() {
5216
5216
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
5217
- }, w.diff = function(N, B, D) {
5217
+ }, P.diff = function(N, B, D) {
5218
5218
  var U, M = this, x = F.p(B), W = O(N), z = (W.utcOffset() - this.utcOffset()) * r, J = this - W, ae = function() {
5219
5219
  return F.m(M, W);
5220
5220
  };
@@ -5247,36 +5247,36 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5247
5247
  U = J;
5248
5248
  }
5249
5249
  return D ? U : F.a(U);
5250
- }, w.daysInMonth = function() {
5250
+ }, P.daysInMonth = function() {
5251
5251
  return this.endOf(_).$D;
5252
- }, w.$locale = function() {
5252
+ }, P.$locale = function() {
5253
5253
  return y[this.$L];
5254
- }, w.locale = function(N, B) {
5254
+ }, P.locale = function(N, B) {
5255
5255
  if (!N)
5256
5256
  return this.$L;
5257
5257
  var D = this.clone(), U = I(N, B, !0);
5258
5258
  return U && (D.$L = U), D;
5259
- }, w.clone = function() {
5259
+ }, P.clone = function() {
5260
5260
  return F.w(this.$d, this);
5261
- }, w.toDate = function() {
5261
+ }, P.toDate = function() {
5262
5262
  return new Date(this.valueOf());
5263
- }, w.toJSON = function() {
5263
+ }, P.toJSON = function() {
5264
5264
  return this.isValid() ? this.toISOString() : null;
5265
- }, w.toISOString = function() {
5265
+ }, P.toISOString = function() {
5266
5266
  return this.$d.toISOString();
5267
- }, w.toString = function() {
5267
+ }, P.toString = function() {
5268
5268
  return this.$d.toUTCString();
5269
- }, K;
5270
- }(), G = P.prototype;
5271
- return O.prototype = G, [["$ms", i], ["$s", l], ["$m", s], ["$H", o], ["$W", c], ["$M", _], ["$y", v], ["$D", d]].forEach(function(K) {
5272
- G[K[1]] = function(w) {
5273
- return this.$g(w, K[0], K[1]);
5269
+ }, w;
5270
+ }(), G = K.prototype;
5271
+ return O.prototype = G, [["$ms", i], ["$s", l], ["$m", s], ["$H", o], ["$W", c], ["$M", _], ["$y", v], ["$D", d]].forEach(function(w) {
5272
+ G[w[1]] = function(P) {
5273
+ return this.$g(P, w[0], w[1]);
5274
5274
  };
5275
- }), O.extend = function(K, w) {
5276
- return K.$i || (K(w, P, O), K.$i = !0), O;
5277
- }, O.locale = I, O.isDayjs = V, O.unix = function(K) {
5278
- return O(1e3 * K);
5279
- }, O.en = y[k], O.Ls = y, O.p = {}, O;
5275
+ }), O.extend = function(w, P) {
5276
+ return w.$i || (w(P, K, O), w.$i = !0), O;
5277
+ }, O.locale = I, O.isDayjs = V, O.unix = function(w) {
5278
+ return O(1e3 * w);
5279
+ }, O.en = y[R], O.Ls = y, O.p = {}, O;
5280
5280
  });
5281
5281
  })(dayjs_min);
5282
5282
  const dayjs = dayjs_min.exports;
@@ -5321,7 +5321,7 @@ function filesize(e, {
5321
5321
  roundingMethod: m = ROUND,
5322
5322
  precision: p = 0
5323
5323
  } = {}) {
5324
- let T = d, E = Number(e), C = [], R = 0, k = EMPTY;
5324
+ let T = d, E = Number(e), k = [], C = 0, R = EMPTY;
5325
5325
  u === SI ? (r = 10, u = JEDEC) : u === IEC || u === JEDEC ? r = 2 : r === 2 ? u = IEC : (r = 10, u = JEDEC);
5326
5326
  const y = r === 10 ? 1e3 : 1024, A = g === !0, V = E < 0, I = Math[m];
5327
5327
  if (typeof e != "bigint" && isNaN(e))
@@ -5331,22 +5331,22 @@ function filesize(e, {
5331
5331
  if (V && (E = -E), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(E) / Math.log(y)), T < 0 && (T = 0)), T > 8 && (p > 0 && (p += 8 - T), T = 8), _ === EXPONENT)
5332
5332
  return T;
5333
5333
  if (E === 0)
5334
- C[0] = 0, k = C[1] = STRINGS.symbol[u][t ? BITS : BYTES][T];
5334
+ k[0] = 0, R = k[1] = STRINGS.symbol[u][t ? BITS : BYTES][T];
5335
5335
  else {
5336
- R = E / (r === 2 ? Math.pow(2, T * 10) : Math.pow(1e3, T)), t && (R = R * 8, R >= y && T < 8 && (R = R / y, T++));
5336
+ C = E / (r === 2 ? Math.pow(2, T * 10) : Math.pow(1e3, T)), t && (C = C * 8, C >= y && T < 8 && (C = C / y, T++));
5337
5337
  const O = Math.pow(10, T > 0 ? n : 0);
5338
- C[0] = I(R * O) / O, C[0] === y && T < 8 && d === -1 && (C[0] = 1, T++), k = C[1] = r === 10 && T === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][T];
5338
+ k[0] = I(C * O) / O, k[0] === y && T < 8 && d === -1 && (k[0] = 1, T++), R = k[1] = r === 10 && T === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][T];
5339
5339
  }
5340
- if (V && (C[0] = -C[0]), p > 0 && (C[0] = C[0].toPrecision(p)), C[1] = c[C[1]] || C[1], i === !0 ? C[0] = C[0].toLocaleString() : i.length > 0 ? C[0] = C[0].toLocaleString(i, l) : s.length > 0 && (C[0] = C[0].toString().replace(PERIOD, s)), a && Number.isInteger(C[0]) === !1 && n > 0) {
5341
- const O = s || PERIOD, F = C[0].toString().split(O), P = F[1] || EMPTY, G = P.length, K = n - G;
5342
- C[0] = `${F[0]}${O}${P.padEnd(G + K, ZERO)}`;
5340
+ if (V && (k[0] = -k[0]), p > 0 && (k[0] = k[0].toPrecision(p)), k[1] = c[k[1]] || k[1], i === !0 ? k[0] = k[0].toLocaleString() : i.length > 0 ? k[0] = k[0].toLocaleString(i, l) : s.length > 0 && (k[0] = k[0].toString().replace(PERIOD, s)), a && Number.isInteger(k[0]) === !1 && n > 0) {
5341
+ const O = s || PERIOD, F = k[0].toString().split(O), K = F[1] || EMPTY, G = K.length, w = n - G;
5342
+ k[0] = `${F[0]}${O}${K.padEnd(G + w, ZERO)}`;
5343
5343
  }
5344
- return A && (C[1] = v[T] ? v[T] : STRINGS.fullform[u][T] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), _ === ARRAY ? C : _ === OBJECT ? {
5345
- value: C[0],
5346
- symbol: C[1],
5344
+ return A && (k[1] = v[T] ? v[T] : STRINGS.fullform[u][T] + (t ? BIT : BYTE) + (k[0] === 1 ? EMPTY : S)), _ === ARRAY ? k : _ === OBJECT ? {
5345
+ value: k[0],
5346
+ symbol: k[1],
5347
5347
  exponent: T,
5348
- unit: k
5349
- } : C.join(o);
5348
+ unit: R
5349
+ } : k.join(o);
5350
5350
  }
5351
5351
  class KgUtil {
5352
5352
  static getFileSize(t) {
@@ -5672,7 +5672,7 @@ class KgUtil {
5672
5672
  t && (t.style.display = "none");
5673
5673
  }
5674
5674
  }
5675
- function _isSlot$f(e) {
5675
+ function _isSlot$g(e) {
5676
5676
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
5677
5677
  }
5678
5678
  class KgVarUtil {
@@ -5808,8 +5808,8 @@ class KgVarUtil {
5808
5808
  const E = o.store.getVarConfigPossibility(a, r);
5809
5809
  switch (E == null ? void 0 : E.val_data_type) {
5810
5810
  case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.NUMBER: {
5811
- const C = T.map((R) => Number(R));
5812
- if (C.some((R) => Number.isNaN(C))) {
5811
+ const k = T.map((C) => Number(C));
5812
+ if (k.some((C) => Number.isNaN(k))) {
5813
5813
  ____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${g} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
5814
5814
  formID: a,
5815
5815
  varName: r,
@@ -5818,12 +5818,12 @@ class KgVarUtil {
5818
5818
  });
5819
5819
  return;
5820
5820
  }
5821
- return C;
5821
+ return k;
5822
5822
  }
5823
5823
  case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.BOOLEAN:
5824
- return T.map((C) => Boolean(C));
5824
+ return T.map((k) => Boolean(k));
5825
5825
  case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.STRING:
5826
- return T.map((C) => String(C));
5826
+ return T.map((k) => String(k));
5827
5827
  case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.DEFAULT:
5828
5828
  return T;
5829
5829
  }
@@ -5948,62 +5948,62 @@ class KgVarUtil {
5948
5948
  return t && (d = t), createVNode(Fragment, null, [[KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.INPUT, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.TEXT_AREA, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.INPUT_NUMBER, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATE, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_TIME, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATETIME, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_WEEK, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_MONTH, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_YEAR, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.CHECKBOX, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.SWITCH, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.SELECT, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.RADIO_GROUP].includes(d) && createVNode(Fragment, null, [createVNode(Select.Option, {
5949
5949
  title: v.t("kg.KgSearchConfigModal.EQ-desc"),
5950
5950
  value: KG_DYNAMIC_QUERY_OPERATOR.EQ
5951
- }, _isSlot$f(a = v.t("kg.KgSearchConfigModal.EQ")) ? a : {
5951
+ }, _isSlot$g(a = v.t("kg.KgSearchConfigModal.EQ")) ? a : {
5952
5952
  default: () => [a]
5953
5953
  }), createVNode(Select.Option, {
5954
5954
  title: v.t("kg.KgSearchConfigModal.NE-desc"),
5955
5955
  value: KG_DYNAMIC_QUERY_OPERATOR.NE
5956
- }, _isSlot$f(r = v.t("kg.KgSearchConfigModal.NE")) ? r : {
5956
+ }, _isSlot$g(r = v.t("kg.KgSearchConfigModal.NE")) ? r : {
5957
5957
  default: () => [r]
5958
5958
  })]), [KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.INPUT_NUMBER, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATE, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_TIME, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATETIME, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_WEEK, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_MONTH, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_YEAR].includes(d) && createVNode(Fragment, null, [createVNode(Select.Option, {
5959
5959
  title: v.t("kg.KgSearchConfigModal.GT-desc"),
5960
5960
  value: KG_DYNAMIC_QUERY_OPERATOR.GT
5961
- }, _isSlot$f(n = v.t("kg.KgSearchConfigModal.GT")) ? n : {
5961
+ }, _isSlot$g(n = v.t("kg.KgSearchConfigModal.GT")) ? n : {
5962
5962
  default: () => [n]
5963
5963
  }), createVNode(Select.Option, {
5964
5964
  title: v.t("kg.KgSearchConfigModal.GTE-desc"),
5965
5965
  value: KG_DYNAMIC_QUERY_OPERATOR.GTE
5966
- }, _isSlot$f(i = v.t("kg.KgSearchConfigModal.GTE")) ? i : {
5966
+ }, _isSlot$g(i = v.t("kg.KgSearchConfigModal.GTE")) ? i : {
5967
5967
  default: () => [i]
5968
5968
  }), createVNode(Select.Option, {
5969
5969
  title: v.t("kg.KgSearchConfigModal.LT-desc"),
5970
5970
  value: KG_DYNAMIC_QUERY_OPERATOR.LT
5971
- }, _isSlot$f(l = v.t("kg.KgSearchConfigModal.LT")) ? l : {
5971
+ }, _isSlot$g(l = v.t("kg.KgSearchConfigModal.LT")) ? l : {
5972
5972
  default: () => [l]
5973
5973
  }), createVNode(Select.Option, {
5974
5974
  title: v.t("kg.KgSearchConfigModal.LTE-desc"),
5975
5975
  value: KG_DYNAMIC_QUERY_OPERATOR.LTE
5976
- }, _isSlot$f(s = v.t("kg.KgSearchConfigModal.LTE")) ? s : {
5976
+ }, _isSlot$g(s = v.t("kg.KgSearchConfigModal.LTE")) ? s : {
5977
5977
  default: () => [s]
5978
5978
  })]), [KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.INPUT, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.TEXT_AREA].includes(d) && createVNode(Fragment, null, [createVNode(Select.Option, {
5979
5979
  title: v.t("kg.KgSearchConfigModal.START_WITH-desc"),
5980
5980
  value: KG_DYNAMIC_QUERY_OPERATOR.START_WITH
5981
- }, _isSlot$f(o = v.t("kg.KgSearchConfigModal.START_WITH")) ? o : {
5981
+ }, _isSlot$g(o = v.t("kg.KgSearchConfigModal.START_WITH")) ? o : {
5982
5982
  default: () => [o]
5983
5983
  }), createVNode(Select.Option, {
5984
5984
  title: v.t("kg.KgSearchConfigModal.END_WITH-desc"),
5985
5985
  value: KG_DYNAMIC_QUERY_OPERATOR.END_WITH
5986
- }, _isSlot$f(c = v.t("kg.KgSearchConfigModal.END_WITH")) ? c : {
5986
+ }, _isSlot$g(c = v.t("kg.KgSearchConfigModal.END_WITH")) ? c : {
5987
5987
  default: () => [c]
5988
5988
  }), createVNode(Select.Option, {
5989
5989
  title: v.t("kg.KgSearchConfigModal.CONTAIN-desc"),
5990
5990
  value: KG_DYNAMIC_QUERY_OPERATOR.CONTAIN
5991
- }, _isSlot$f(u = v.t("kg.KgSearchConfigModal.CONTAIN")) ? u : {
5991
+ }, _isSlot$g(u = v.t("kg.KgSearchConfigModal.CONTAIN")) ? u : {
5992
5992
  default: () => [u]
5993
5993
  })]), [KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.CHECKBOX_GROUP, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.SELECT_MULTIPLE].includes(d) && createVNode(Select.Option, {
5994
5994
  title: v.t("kg.KgSearchConfigModal.IN-desc"),
5995
5995
  value: KG_DYNAMIC_QUERY_OPERATOR.IN
5996
- }, _isSlot$f(_ = v.t("kg.KgSearchConfigModal.IN")) ? _ : {
5996
+ }, _isSlot$g(_ = v.t("kg.KgSearchConfigModal.IN")) ? _ : {
5997
5997
  default: () => [_]
5998
5998
  }), [KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATE_RANGE, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_TIME_RANGE, KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATETIME_RANGE].includes(d) && createVNode(Select.Option, {
5999
5999
  title: v.t("kg.KgSearchConfigModal.BETWEEN-desc"),
6000
6000
  value: KG_DYNAMIC_QUERY_OPERATOR.BETWEEN
6001
- }, _isSlot$f(g = v.t("kg.KgSearchConfigModal.BETWEEN")) ? g : {
6001
+ }, _isSlot$g(g = v.t("kg.KgSearchConfigModal.BETWEEN")) ? g : {
6002
6002
  default: () => [g]
6003
6003
  })]);
6004
6004
  }
6005
6005
  static getQueryHeaders(t) {
6006
- var E, C, R, k, y;
6006
+ var E, k, C, R, y;
6007
6007
  const {
6008
6008
  params: a,
6009
6009
  kgSearchFormID: r,
@@ -6026,14 +6026,14 @@ class KgVarUtil {
6026
6026
  };
6027
6027
  const o = ["pageNo", "pageSize", "column", "order"], c = useKg(), u = n ? useKgVar(n) : null, _ = r ? useKgVar(r) : null, g = r ? (E = _ == null ? void 0 : _.kgSearch) == null ? void 0 : E.dynamicQueryOperatorModel.value : i, v = {};
6028
6028
  Object.keys(s).sort().forEach((A) => {
6029
- var P, G, K, w, N, B;
6029
+ var K, G, w, P, N, B;
6030
6030
  if (o.includes(A) || A.endsWith("_obj"))
6031
6031
  return;
6032
- const V = r ? (P = _ == null ? void 0 : _.store) == null ? void 0 : P.getVarProfileDetail(r, A) : null;
6032
+ const V = r ? (K = _ == null ? void 0 : _.store) == null ? void 0 : K.getVarProfileDetail(r, A) : null;
6033
6033
  let I = A;
6034
6034
  const O = s[A];
6035
6035
  let F = g == null ? void 0 : g[A];
6036
- switch ((((K = (G = c.option.value.KgSearch) == null ? void 0 : G.dynamicQuery) == null ? void 0 : K.on) !== !0 || r && ((B = (N = (w = _ == null ? void 0 : _.kgSearch) == null ? void 0 : w.currentVarProfileMaster) == null ? void 0 : N.value) == null ? void 0 : B.dyn_flg) !== 1) && (F = KG_DYNAMIC_QUERY_OPERATOR.EQ), r && (V == null ? void 0 : V.use_underscore_when_dynamic_query_flag) !== 0 && (I = A.split(".").map((D) => snakeCase$1(D)).join(".")), !0) {
6036
+ switch ((((w = (G = c.option.value.KgSearch) == null ? void 0 : G.dynamicQuery) == null ? void 0 : w.on) !== !0 || r && ((B = (N = (P = _ == null ? void 0 : _.kgSearch) == null ? void 0 : P.currentVarProfileMaster) == null ? void 0 : N.value) == null ? void 0 : B.dyn_flg) !== 1) && (F = KG_DYNAMIC_QUERY_OPERATOR.EQ), r && (V == null ? void 0 : V.use_underscore_when_dynamic_query_flag) !== 0 && (I = A.split(".").map((D) => snakeCase$1(D)).join(".")), !0) {
6037
6037
  case (!!l && l.isDayjs(O)): {
6038
6038
  const D = O;
6039
6039
  let U = r ? KgUtil.parseParamFromDayjs({
@@ -6302,15 +6302,15 @@ class KgVarUtil {
6302
6302
  }
6303
6303
  });
6304
6304
  let m = `WHERE (1 = 1)${reduce(v, (A, V, I) => {
6305
- var F, P, G, K;
6305
+ var F, K, G, w;
6306
6306
  const O = r ? (F = _ == null ? void 0 : _.store) == null ? void 0 : F.getVarProfileDetail(r, I) : null;
6307
- return (O == null ? void 0 : O.exclude_from_where_sql_flag) === 1 || !O && Object.keys(KgVarUtil.parseRequestParamsToJSON((K = (G = (P = u == null ? void 0 : u.varGridConfig) == null ? void 0 : P.value) == null ? void 0 : G.cmd_prm) != null ? K : "")).includes(I) || !V ? A : A + V;
6307
+ return (O == null ? void 0 : O.exclude_from_where_sql_flag) === 1 || !O && Object.keys(KgVarUtil.parseRequestParamsToJSON((w = (G = (K = u == null ? void 0 : u.varGridConfig) == null ? void 0 : K.value) == null ? void 0 : G.cmd_prm) != null ? w : "")).includes(I) || !V ? A : A + V;
6308
6308
  }, "")}`;
6309
6309
  m = encodeURIComponent(m);
6310
6310
  let p = "";
6311
6311
  {
6312
6312
  if (!s.column) {
6313
- const V = (C = _ == null ? void 0 : _.systemVarGridDetails) == null ? void 0 : C.value;
6313
+ const V = (k = _ == null ? void 0 : _.systemVarGridDetails) == null ? void 0 : k.value;
6314
6314
  switch (!0) {
6315
6315
  case !!(V != null && V.find((I) => {
6316
6316
  var O;
@@ -6367,7 +6367,7 @@ class KgVarUtil {
6367
6367
  s.column = "modify_time", s.order = "desc";
6368
6368
  break;
6369
6369
  default:
6370
- s.column = (k = (R = _ == null ? void 0 : _.kgTable) == null ? void 0 : R.id) == null ? void 0 : k.value;
6370
+ s.column = (R = (C = _ == null ? void 0 : _.kgTable) == null ? void 0 : C.id) == null ? void 0 : R.value;
6371
6371
  break;
6372
6372
  }
6373
6373
  }
@@ -6514,50 +6514,50 @@ function createSetupStore(e, t, a = {}, r, n) {
6514
6514
  function E() {
6515
6515
  i.stop(), _ = [], g = [], r._s.delete(e);
6516
6516
  }
6517
- function C(V, I) {
6517
+ function k(V, I) {
6518
6518
  return function() {
6519
6519
  setActivePinia(r);
6520
- const O = Array.from(arguments), F = [], P = [];
6520
+ const O = Array.from(arguments), F = [], K = [];
6521
6521
  function G(N) {
6522
6522
  F.push(N);
6523
6523
  }
6524
- function K(N) {
6525
- P.push(N);
6524
+ function w(N) {
6525
+ K.push(N);
6526
6526
  }
6527
6527
  triggerSubscriptions(g, {
6528
6528
  args: O,
6529
6529
  name: V,
6530
6530
  store: y,
6531
6531
  after: G,
6532
- onError: K
6532
+ onError: w
6533
6533
  });
6534
- let w;
6534
+ let P;
6535
6535
  try {
6536
- w = I.apply(this && this.$id === e ? this : y, O);
6536
+ P = I.apply(this && this.$id === e ? this : y, O);
6537
6537
  } catch (N) {
6538
- throw triggerSubscriptions(P, N), N;
6538
+ throw triggerSubscriptions(K, N), N;
6539
6539
  }
6540
- return w instanceof Promise ? w.then((N) => (triggerSubscriptions(F, N), N)).catch((N) => (triggerSubscriptions(P, N), Promise.reject(N))) : (triggerSubscriptions(F, w), w);
6540
+ return P instanceof Promise ? P.then((N) => (triggerSubscriptions(F, N), N)).catch((N) => (triggerSubscriptions(K, N), Promise.reject(N))) : (triggerSubscriptions(F, P), P);
6541
6541
  };
6542
6542
  }
6543
- const R = /* @__PURE__ */ markRaw({
6543
+ const C = /* @__PURE__ */ markRaw({
6544
6544
  actions: {},
6545
6545
  getters: {},
6546
6546
  state: [],
6547
6547
  hotState: m
6548
- }), k = {
6548
+ }), R = {
6549
6549
  _p: r,
6550
6550
  $id: e,
6551
6551
  $onAction: addSubscription.bind(null, g),
6552
6552
  $patch: p,
6553
6553
  $reset: T,
6554
6554
  $subscribe(V, I = {}) {
6555
- const O = addSubscription(_, V, I.detached, () => F()), F = i.run(() => watch(() => r.state.value[e], (P) => {
6555
+ const O = addSubscription(_, V, I.detached, () => F()), F = i.run(() => watch(() => r.state.value[e], (K) => {
6556
6556
  (I.flush === "sync" ? u : c) && V({
6557
6557
  storeId: e,
6558
6558
  type: MutationType.direct,
6559
6559
  events: v
6560
- }, P);
6560
+ }, K);
6561
6561
  }, assign$1({}, o, I)));
6562
6562
  return O;
6563
6563
  },
@@ -6565,21 +6565,21 @@ function createSetupStore(e, t, a = {}, r, n) {
6565
6565
  }, y = reactive(assign$1(
6566
6566
  process.env.NODE_ENV !== "production" && IS_CLIENT ? {
6567
6567
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
6568
- _hmrPayload: R
6568
+ _hmrPayload: C
6569
6569
  } : {},
6570
- k
6570
+ R
6571
6571
  ));
6572
6572
  r._s.set(e, y);
6573
6573
  const A = r._e.run(() => (i = effectScope(), i.run(() => t())));
6574
6574
  for (const V in A) {
6575
6575
  const I = A[V];
6576
6576
  if (isRef(I) && !isComputed(I) || isReactive(I))
6577
- process.env.NODE_ENV !== "production" && n ? set(m.value, V, toRef(A, V)) : l || (d && shouldHydrate(I) && (isRef(I) ? I.value = d[V] : mergeReactiveObjects(I, d[V])), r.state.value[e][V] = I), process.env.NODE_ENV !== "production" && R.state.push(V);
6577
+ process.env.NODE_ENV !== "production" && n ? set(m.value, V, toRef(A, V)) : l || (d && shouldHydrate(I) && (isRef(I) ? I.value = d[V] : mergeReactiveObjects(I, d[V])), r.state.value[e][V] = I), process.env.NODE_ENV !== "production" && C.state.push(V);
6578
6578
  else if (typeof I == "function") {
6579
- const O = process.env.NODE_ENV !== "production" && n ? I : C(V, I);
6580
- A[V] = O, process.env.NODE_ENV !== "production" && (R.actions[V] = I), s.actions[V] = I;
6579
+ const O = process.env.NODE_ENV !== "production" && n ? I : k(V, I);
6580
+ A[V] = O, process.env.NODE_ENV !== "production" && (C.actions[V] = I), s.actions[V] = I;
6581
6581
  } else
6582
- process.env.NODE_ENV !== "production" && isComputed(I) && (R.getters[V] = l ? a.getters[V] : I, IS_CLIENT && (A._getters || (A._getters = markRaw([]))).push(V));
6582
+ process.env.NODE_ENV !== "production" && isComputed(I) && (C.getters[V] = l ? a.getters[V] : I, IS_CLIENT && (A._getters || (A._getters = markRaw([]))).push(V));
6583
6583
  }
6584
6584
  if (assign$1(y, A), assign$1(toRaw(y), A), Object.defineProperty(y, "$state", {
6585
6585
  get: () => process.env.NODE_ENV !== "production" && n ? m.value : r.state.value[e],
@@ -6594,8 +6594,8 @@ function createSetupStore(e, t, a = {}, r, n) {
6594
6594
  y._hotUpdate = markRaw((I) => {
6595
6595
  y._hotUpdating = !0, I._hmrPayload.state.forEach((O) => {
6596
6596
  if (O in y.$state) {
6597
- const F = I.$state[O], P = y.$state[O];
6598
- typeof F == "object" && isPlainObject(F) && isPlainObject(P) ? patchObject(F, P) : I.$state[O] = P;
6597
+ const F = I.$state[O], K = y.$state[O];
6598
+ typeof F == "object" && isPlainObject(F) && isPlainObject(K) ? patchObject(F, K) : I.$state[O] = K;
6599
6599
  }
6600
6600
  set(y, O, toRef(I.$state, O));
6601
6601
  }), Object.keys(y.$state).forEach((O) => {
@@ -6605,11 +6605,11 @@ function createSetupStore(e, t, a = {}, r, n) {
6605
6605
  });
6606
6606
  for (const O in I._hmrPayload.actions) {
6607
6607
  const F = I[O];
6608
- set(y, O, C(O, F));
6608
+ set(y, O, k(O, F));
6609
6609
  }
6610
6610
  for (const O in I._hmrPayload.getters) {
6611
- const F = I._hmrPayload.getters[O], P = l ? computed(() => (setActivePinia(r), F.call(y, y))) : F;
6612
- set(y, O, P);
6611
+ const F = I._hmrPayload.getters[O], K = l ? computed(() => (setActivePinia(r), F.call(y, y))) : F;
6612
+ set(y, O, K);
6613
6613
  }
6614
6614
  Object.keys(y._hmrPayload.getters).forEach((O) => {
6615
6615
  O in I._hmrPayload.getters || del(y, O);
@@ -7001,7 +7001,7 @@ function useKgAppSelect() {
7001
7001
  };
7002
7002
  }
7003
7003
  const KgAppSelect$1 = "";
7004
- function _isSlot$e(e) {
7004
+ function _isSlot$f(e) {
7005
7005
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
7006
7006
  }
7007
7007
  const getProps$L = () => ({
@@ -7041,7 +7041,7 @@ const getProps$L = () => ({
7041
7041
  let i;
7042
7042
  return createVNode(SelectOption, {
7043
7043
  value: r
7044
- }, _isSlot$e(i = t.t(n)) ? i : {
7044
+ }, _isSlot$f(i = t.t(n)) ? i : {
7045
7045
  default: () => [i]
7046
7046
  });
7047
7047
  })]),
@@ -7333,13 +7333,13 @@ function useMagicKeys(e = {}) {
7333
7333
  }
7334
7334
  function v(m, p) {
7335
7335
  var T, E;
7336
- const C = (T = m.key) == null ? void 0 : T.toLowerCase(), R = (E = m.code) == null ? void 0 : E.toLowerCase(), k = [R, C].filter(Boolean);
7337
- R && (p ? l.add(m.code) : l.delete(m.code));
7338
- for (const y of k)
7336
+ const k = (T = m.key) == null ? void 0 : T.toLowerCase(), C = (E = m.code) == null ? void 0 : E.toLowerCase(), R = [C, k].filter(Boolean);
7337
+ C && (p ? l.add(m.code) : l.delete(m.code));
7338
+ for (const y of R)
7339
7339
  u.add(y), _(y, p);
7340
- C === "meta" && !p ? (c.forEach((y) => {
7340
+ k === "meta" && !p ? (c.forEach((y) => {
7341
7341
  l.delete(y), _(y, !1);
7342
- }), c.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && p && [...l, ...k].forEach((y) => c.add(y));
7342
+ }), c.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && p && [...l, ...R].forEach((y) => c.add(y));
7343
7343
  }
7344
7344
  a && (useEventListener(a, "keydown", (m) => (v(m, !0), i(m)), { passive: n }), useEventListener(a, "keyup", (m) => (v(m, !1), i(m)), { passive: n }), useEventListener("blur", g, { passive: !0 }), useEventListener("focus", g, { passive: !0 }));
7345
7345
  const d = new Proxy(o, {
@@ -7348,8 +7348,8 @@ function useMagicKeys(e = {}) {
7348
7348
  return Reflect.get(m, p, T);
7349
7349
  if (p = p.toLowerCase(), p in r && (p = r[p]), !(p in o))
7350
7350
  if (/[+_-]/.test(p)) {
7351
- const C = p.split(/[+_-]/g).map((R) => R.trim());
7352
- o[p] = computed(() => C.every((R) => unref(d[R])));
7351
+ const k = p.split(/[+_-]/g).map((C) => C.trim());
7352
+ o[p] = computed(() => k.every((C) => unref(d[C])));
7353
7353
  } else
7354
7354
  o[p] = ref(!1);
7355
7355
  const E = Reflect.get(m, p, T);
@@ -7387,14 +7387,14 @@ function useDragToMove(e) {
7387
7387
  height: i
7388
7388
  } = useWindowSize();
7389
7389
  let l = computed(() => {
7390
- var P, G, K, w, N;
7391
- return (N = (w = (K = (G = (P = a.value) == null ? void 0 : P.parentElement) == null ? void 0 : G.parentElement) == null ? void 0 : K.parentElement) == null ? void 0 : w.parentElement) != null ? N : null;
7390
+ var K, G, w, P, N;
7391
+ return (N = (P = (w = (G = (K = a.value) == null ? void 0 : K.parentElement) == null ? void 0 : G.parentElement) == null ? void 0 : w.parentElement) == null ? void 0 : P.parentElement) != null ? N : null;
7392
7392
  }), s = computed(() => {
7393
- var P, G, K, w;
7394
- return (w = (K = (G = (P = a.value) == null ? void 0 : P.parentElement) == null ? void 0 : G.parentElement) == null ? void 0 : K.parentElement) != null ? w : null;
7393
+ var K, G, w, P;
7394
+ return (P = (w = (G = (K = a.value) == null ? void 0 : K.parentElement) == null ? void 0 : G.parentElement) == null ? void 0 : w.parentElement) != null ? P : null;
7395
7395
  }), o = computed(() => {
7396
- var P, G;
7397
- return (G = (P = l.value) == null ? void 0 : P.querySelector(".ant-modal-header")) != null ? G : null;
7396
+ var K, G;
7397
+ return (G = (K = l.value) == null ? void 0 : K.querySelector(".ant-modal-header")) != null ? G : null;
7398
7398
  }), c = 0, u = 0, _ = 0, g = 0, v = 0, d = 0, m = 0, p = 0, T = {
7399
7399
  remove: () => {
7400
7400
  }
@@ -7402,45 +7402,45 @@ function useDragToMove(e) {
7402
7402
  remove: () => {
7403
7403
  }
7404
7404
  };
7405
- watch([() => t.value.visible, () => t.value.kgIsDragToMove, l, s, o], ([P, G, K, w, N]) => {
7406
- !P || !G || !K || !w || !N || getComputedStyle(K).display === "none" || K.getAttribute("data-drag") !== null && !t.value.destroyOnClose || (K.setAttribute("data-drag", "true"), N.style.cursor = "move", N.onmousedown = y);
7405
+ watch([() => t.value.visible, () => t.value.kgIsDragToMove, l, s, o], ([K, G, w, P, N]) => {
7406
+ !K || !G || !w || !P || !N || getComputedStyle(w).display === "none" || w.getAttribute("data-drag") !== null && !t.value.destroyOnClose || (w.setAttribute("data-drag", "true"), N.style.cursor = "move", N.onmousedown = y);
7407
7407
  }, {
7408
7408
  immediate: !0
7409
7409
  });
7410
- function C(P, G, K) {
7411
- return P.addEventListener(G, K), {
7412
- remove: () => P.removeEventListener(G, K)
7410
+ function k(K, G, w) {
7411
+ return K.addEventListener(G, w), {
7412
+ remove: () => K.removeEventListener(G, w)
7413
7413
  };
7414
7414
  }
7415
- function R() {
7415
+ function C() {
7416
7416
  T.remove(), E.remove();
7417
7417
  }
7418
- function k(P) {
7418
+ function R(K) {
7419
7419
  const {
7420
7420
  event: G
7421
- } = P != null ? P : {};
7421
+ } = K != null ? K : {};
7422
7422
  if (!s.value)
7423
7423
  return;
7424
- let K = G.clientX - v, w = G.clientY - d;
7425
- -K > c ? K = -c : K > u && (K = u), -w > _ ? w = -_ : w > g && (w = g);
7426
- const N = m + K, B = p + w;
7424
+ let w = G.clientX - v, P = G.clientY - d;
7425
+ -w > c ? w = -c : w > u && (w = u), -P > _ ? P = -_ : P > g && (P = g);
7426
+ const N = m + w, B = p + P;
7427
7427
  s.value.style.left = `${N}px`, s.value.style.top = `${B}px`;
7428
7428
  }
7429
- function y(P) {
7430
- !P || !l.value || !s.value || !o.value || (document.body.classList.add("kg-modal-dragging"), v = P.clientX, d = P.clientY, c = s.value.offsetLeft, u = n.value - s.value.offsetLeft - o.value.offsetWidth - KG_MODAL_BORDER_WIDTH * 2, _ = s.value.offsetTop, g = i.value - s.value.offsetTop - o.value.offsetHeight - KG_MODAL_BORDER_WIDTH, m = Number(getComputedStyle(s.value).left.replace(/px/g, "")), p = Number(getComputedStyle(s.value).top.replace(/px/g, "")), T = C(document.documentElement, "mousemove", (G) => A({
7429
+ function y(K) {
7430
+ !K || !l.value || !s.value || !o.value || (document.body.classList.add("kg-modal-dragging"), v = K.clientX, d = K.clientY, c = s.value.offsetLeft, u = n.value - s.value.offsetLeft - o.value.offsetWidth - KG_MODAL_BORDER_WIDTH * 2, _ = s.value.offsetTop, g = i.value - s.value.offsetTop - o.value.offsetHeight - KG_MODAL_BORDER_WIDTH, m = Number(getComputedStyle(s.value).left.replace(/px/g, "")), p = Number(getComputedStyle(s.value).top.replace(/px/g, "")), T = k(document.documentElement, "mousemove", (G) => A({
7431
7431
  event: G
7432
- })), E = C(document.documentElement, "mouseup", (G) => V({
7432
+ })), E = k(document.documentElement, "mouseup", (G) => V({
7433
7433
  event: G
7434
7434
  })));
7435
7435
  }
7436
- function A(P) {
7437
- k(P);
7436
+ function A(K) {
7437
+ R(K);
7438
7438
  }
7439
- function V(P) {
7440
- k(P), R(), document.body.classList.remove("kg-modal-dragging");
7439
+ function V(K) {
7440
+ R(K), C(), document.body.classList.remove("kg-modal-dragging");
7441
7441
  }
7442
7442
  onUnmounted(() => {
7443
- R();
7443
+ C();
7444
7444
  });
7445
7445
  }
7446
7446
  function useDragToResize(e) {
@@ -7454,95 +7454,95 @@ function useDragToResize(e) {
7454
7454
  height: n
7455
7455
  } = useWindowSize(), i = 48, l = 400;
7456
7456
  let s = null, o = computed(() => {
7457
- var K, w, N, B;
7458
- return (B = (N = (w = (K = a.value) == null ? void 0 : K.parentElement) == null ? void 0 : w.parentElement) == null ? void 0 : N.parentElement) != null ? B : null;
7457
+ var w, P, N, B;
7458
+ return (B = (N = (P = (w = a.value) == null ? void 0 : w.parentElement) == null ? void 0 : P.parentElement) == null ? void 0 : N.parentElement) != null ? B : null;
7459
7459
  }), c = computed(() => {
7460
- var K, w;
7461
- return (w = (K = o.value) == null ? void 0 : K.querySelector(".ant-modal-header")) != null ? w : null;
7460
+ var w, P;
7461
+ return (P = (w = o.value) == null ? void 0 : w.querySelector(".ant-modal-header")) != null ? P : null;
7462
7462
  }), u = computed(() => {
7463
- var K, w;
7464
- return (w = (K = o.value) == null ? void 0 : K.querySelector(".ant-modal-footer")) != null ? w : null;
7463
+ var w, P;
7464
+ return (P = (w = o.value) == null ? void 0 : w.querySelector(".ant-modal-footer")) != null ? P : null;
7465
7465
  });
7466
7466
  const _ = computed(() => {
7467
- var w;
7468
- const K = (w = t.value.kgMinWidth) != null ? w : l;
7469
- return Math.min(K, r.value);
7467
+ var P;
7468
+ const w = (P = t.value.kgMinWidth) != null ? P : l;
7469
+ return Math.min(w, r.value);
7470
7470
  }), g = computed(() => {
7471
- var w;
7472
- const K = (w = t.value.kgMaxWidth) != null ? w : r.value;
7473
- return Math.min(K, r.value);
7471
+ var P;
7472
+ const w = (P = t.value.kgMaxWidth) != null ? P : r.value;
7473
+ return Math.min(w, r.value);
7474
7474
  }), v = computed(() => {
7475
- var w;
7476
- const K = (w = t.value.kgMaxHeight) != null ? w : n.value;
7477
- return Math.min(K, n.value);
7475
+ var P;
7476
+ const w = (P = t.value.kgMaxHeight) != null ? P : n.value;
7477
+ return Math.min(w, n.value);
7478
7478
  }), d = ref(0);
7479
- let m = 0, p = 0, T = 0, E = 0, C = {
7479
+ let m = 0, p = 0, T = 0, E = 0, k = {
7480
7480
  remove: () => {
7481
7481
  }
7482
- }, R = {
7482
+ }, C = {
7483
7483
  remove: () => {
7484
7484
  }
7485
7485
  };
7486
- const k = watch([o], ([K]) => {
7487
- if (K) {
7488
- const w = K.querySelector("div.ant-modal-content");
7489
- w ? (k(), s = new ResizeObserver(() => {
7490
- d.value = w.offsetHeight;
7491
- }), s.observe(w)) : s == null || s.disconnect();
7486
+ const R = watch([o], ([w]) => {
7487
+ if (w) {
7488
+ const P = w.querySelector("div.ant-modal-content");
7489
+ P ? (R(), s = new ResizeObserver(() => {
7490
+ d.value = P.offsetHeight;
7491
+ }), s.observe(P)) : s == null || s.disconnect();
7492
7492
  }
7493
7493
  }, {
7494
7494
  immediate: !0
7495
7495
  });
7496
- watch([o, v, d], ([K, w, N]) => {
7497
- K && N > w && (K.style.height = `${w}px`);
7496
+ watch([o, v, d], ([w, P, N]) => {
7497
+ w && N > P && (w.style.height = `${P}px`);
7498
7498
  }, {
7499
7499
  immediate: !0
7500
7500
  });
7501
- function y(K, w, N) {
7502
- return K.addEventListener(w, N), {
7503
- remove: () => K.removeEventListener(w, N)
7501
+ function y(w, P, N) {
7502
+ return w.addEventListener(P, N), {
7503
+ remove: () => w.removeEventListener(P, N)
7504
7504
  };
7505
7505
  }
7506
7506
  function A() {
7507
- C.remove(), R.remove();
7507
+ k.remove(), C.remove();
7508
7508
  }
7509
- function V(K) {
7509
+ function V(w) {
7510
7510
  if (!o.value) {
7511
7511
  ____ERROR____("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
7512
7512
  return;
7513
7513
  }
7514
7514
  const {
7515
- event: w
7516
- } = K != null ? K : {}, N = w.pageX;
7515
+ event: P
7516
+ } = w != null ? w : {}, N = P.pageX;
7517
7517
  let B = Math.min(g.value, Math.max(_.value, m + N - T));
7518
7518
  o.value.offsetLeft + B > r.value && (B = r.value - o.value.offsetLeft);
7519
7519
  const D = o.value.offsetWidth, M = Number(getComputedStyle(o.value).left.replace(/px/g, "")) + (B - D) / 2;
7520
7520
  B !== D && (o.value.style.width = `${B}px`, o.value.style.left = `${M}px`);
7521
7521
  }
7522
- function I(K) {
7522
+ function I(w) {
7523
7523
  var J, ae, se, ue, _e, oe;
7524
7524
  if (!o.value) {
7525
7525
  ____ERROR____("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
7526
7526
  return;
7527
7527
  }
7528
7528
  const {
7529
- event: w
7530
- } = K != null ? K : {}, N = w.pageY, B = (ae = (J = c.value) == null ? void 0 : J.clientHeight) != null ? ae : i, D = (ue = (se = u.value) == null ? void 0 : se.clientHeight) != null ? ue : 0, U = Math.min((oe = (_e = t.value) == null ? void 0 : _e.kgMinHeight) != null ? oe : B + D + KG_MODAL_BORDER_WIDTH * 2, n.value);
7529
+ event: P
7530
+ } = w != null ? w : {}, N = P.pageY, B = (ae = (J = c.value) == null ? void 0 : J.clientHeight) != null ? ae : i, D = (ue = (se = u.value) == null ? void 0 : se.clientHeight) != null ? ue : 0, U = Math.min((oe = (_e = t.value) == null ? void 0 : _e.kgMinHeight) != null ? oe : B + D + KG_MODAL_BORDER_WIDTH * 2, n.value);
7531
7531
  let M = Math.min(v.value, Math.max(U, p + N - E));
7532
7532
  o.value.offsetTop + M > n.value && (M = n.value - o.value.offsetTop);
7533
7533
  const x = o.value.offsetHeight, z = Number(getComputedStyle(o.value).top.replace(/px/g, "")) + (M - x) / 2;
7534
7534
  M !== x && (o.value.style.height = `${M}px`, o.value.style.top = `${z}px`);
7535
7535
  }
7536
- function O(K) {
7536
+ function O(w) {
7537
7537
  const {
7538
- event: w,
7538
+ event: P,
7539
7539
  handleType: N
7540
- } = K != null ? K : {};
7540
+ } = w != null ? w : {};
7541
7541
  if (!o.value) {
7542
7542
  ____ERROR____("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
7543
7543
  return;
7544
7544
  }
7545
- switch (w.pageX, w.pageY, N) {
7545
+ switch (P.pageX, P.pageY, N) {
7546
7546
  case "top-left":
7547
7547
  break;
7548
7548
  case "top":
@@ -7551,50 +7551,50 @@ function useDragToResize(e) {
7551
7551
  break;
7552
7552
  case "right": {
7553
7553
  V({
7554
- event: w
7554
+ event: P
7555
7555
  });
7556
7556
  break;
7557
7557
  }
7558
7558
  case "bottom-right": {
7559
7559
  V({
7560
- event: w
7560
+ event: P
7561
7561
  }), I({
7562
- event: w
7562
+ event: P
7563
7563
  });
7564
7564
  break;
7565
7565
  }
7566
7566
  case "bottom": {
7567
7567
  I({
7568
- event: w
7568
+ event: P
7569
7569
  });
7570
7570
  break;
7571
7571
  }
7572
7572
  }
7573
7573
  }
7574
- function F(K) {
7574
+ function F(w) {
7575
7575
  const {
7576
- event: w,
7576
+ event: P,
7577
7577
  handleType: N
7578
- } = K != null ? K : {};
7579
- if (w.stopPropagation(), w.preventDefault(), A(), !(w instanceof MouseEvent && w.which !== 1)) {
7578
+ } = w != null ? w : {};
7579
+ if (P.stopPropagation(), P.preventDefault(), A(), !(P instanceof MouseEvent && P.which !== 1)) {
7580
7580
  if (!o.value) {
7581
7581
  ____ERROR____("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
7582
7582
  return;
7583
7583
  }
7584
- T = w.pageX, E = w.pageY, m = o.value.offsetWidth, p = o.value.offsetHeight, Number(getComputedStyle(o.value).top.replace(/px/g, "")), C = y(document.documentElement, "mousemove", (B) => P({
7584
+ T = P.pageX, E = P.pageY, m = o.value.offsetWidth, p = o.value.offsetHeight, Number(getComputedStyle(o.value).top.replace(/px/g, "")), k = y(document.documentElement, "mousemove", (B) => K({
7585
7585
  event: B,
7586
7586
  handleType: N
7587
- })), R = y(document.documentElement, "mouseup", (B) => G({
7587
+ })), C = y(document.documentElement, "mouseup", (B) => G({
7588
7588
  event: B,
7589
7589
  handleType: N
7590
7590
  }));
7591
7591
  }
7592
7592
  }
7593
- function P(K) {
7594
- O(K);
7593
+ function K(w) {
7594
+ O(w);
7595
7595
  }
7596
- function G(K) {
7597
- O(K), A();
7596
+ function G(w) {
7597
+ O(w), A();
7598
7598
  }
7599
7599
  return onBeforeUnmount(() => {
7600
7600
  s == null || s.disconnect();
@@ -7921,13 +7921,13 @@ const getProps$G = () => ({
7921
7921
  function E(A) {
7922
7922
  T(A);
7923
7923
  }
7924
- function C(A) {
7924
+ function k(A) {
7925
7925
  T(A), p();
7926
7926
  }
7927
- function R(A) {
7928
- A.stopPropagation(), A.preventDefault(), p(), !(A instanceof MouseEvent && A.which !== 1) && (o = A.pageX, c = A.pageY, l = e.kgHeight, s = e.kgHeight, u = k(document.documentElement, "mouseup", C), _ = k(document.documentElement, "mousemove", E));
7927
+ function C(A) {
7928
+ A.stopPropagation(), A.preventDefault(), p(), !(A instanceof MouseEvent && A.which !== 1) && (o = A.pageX, c = A.pageY, l = e.kgHeight, s = e.kgHeight, u = R(document.documentElement, "mouseup", k), _ = R(document.documentElement, "mousemove", E));
7929
7929
  }
7930
- function k(A, V, I) {
7930
+ function R(A, V, I) {
7931
7931
  return A.addEventListener(V, I), {
7932
7932
  remove: () => A.removeEventListener(V, I)
7933
7933
  };
@@ -7946,7 +7946,7 @@ const getProps$G = () => ({
7946
7946
  }, [createVNode("div", {
7947
7947
  class: "kg-resizable-handle",
7948
7948
  onClick: y,
7949
- onMousedown: R
7949
+ onMousedown: C
7950
7950
  }, [createVNode("div", {
7951
7951
  class: "kg-resizable-handle-line"
7952
7952
  }, null)]), (A = a.default) == null ? void 0 : A.call(a)]);
@@ -8023,7 +8023,7 @@ const getProps$G = () => ({
8023
8023
  a("update:visible", !1);
8024
8024
  }
8025
8025
  async function d() {
8026
- var p, T, E, C, R, k, y;
8026
+ var p, T, E, k, C, R, y;
8027
8027
  if (_.value) {
8028
8028
  const A = (T = (p = c.kgTable.selectedRows) == null ? void 0 : p.value) != null ? T : [], V = (E = A.map((O) => O[g.value])) != null ? E : [];
8029
8029
  if (await o.kgForm.store.emit(o.kgForm.formID, "lookupBeforeOk", {
@@ -8043,7 +8043,7 @@ const getProps$G = () => ({
8043
8043
  var_nam: n
8044
8044
  }), a("update:visible", !1);
8045
8045
  } else {
8046
- const A = (k = (R = (C = c.kgTable.selectedRows) == null ? void 0 : C.value) == null ? void 0 : R[0]) != null ? k : null, V = (y = A == null ? void 0 : A[g.value]) != null ? y : "", I = A ? [A] : [], O = [V];
8046
+ const A = (R = (C = (k = c.kgTable.selectedRows) == null ? void 0 : k.value) == null ? void 0 : C[0]) != null ? R : null, V = (y = A == null ? void 0 : A[g.value]) != null ? y : "", I = A ? [A] : [], O = [V];
8047
8047
  if (await o.kgForm.store.emit(o.kgForm.formID, "lookupBeforeOk", {
8048
8048
  context: l,
8049
8049
  isMultiple: !1,
@@ -8152,47 +8152,47 @@ KG__VAR_CONFIG_INPUT__VALIDATION_TYPE.REGULAR_EXPRESSION;
8152
8152
  const ANY = KG__VAR_CONFIG_INPUT__DATA_TYPE.ANY, INTEGER = KG__VAR_CONFIG_INPUT__DATA_TYPE.INTEGER, FLOAT = KG__VAR_CONFIG_INPUT__DATA_TYPE.FLOAT, LETTER = KG__VAR_CONFIG_INPUT__DATA_TYPE.LETTER, UPPER_CASE_LETTER = KG__VAR_CONFIG_INPUT__DATA_TYPE.UPPER_CASE_LETTER, LOWER_CASE_LETTER = KG__VAR_CONFIG_INPUT__DATA_TYPE.LOWER_CASE_LETTER, JSON$1 = KG__VAR_CONFIG_INPUT__DATA_TYPE.JSON;
8153
8153
  function _useFormRules(e) {
8154
8154
  const t = useKg(), a = useKgVar(), r = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), n = computed(() => a.store.getVarConfigInput(a.formID, e.kgVarName)), i = computed(() => {
8155
- var R, k;
8156
- return (k = a.kgSubmit.getVarSubmitDetails({
8157
- buttonVarName: (R = a.kgButton.currentButton.value) == null ? void 0 : R.var_nam,
8155
+ var C, R;
8156
+ return (R = a.kgSubmit.getVarSubmitDetails({
8157
+ buttonVarName: (C = a.kgButton.currentButton.value) == null ? void 0 : C.var_nam,
8158
8158
  varName: e.kgVarName
8159
- })[0]) != null ? k : null;
8159
+ })[0]) != null ? R : null;
8160
8160
  }), l = ref([]), s = computed(() => {
8161
- var R, k;
8161
+ var C, R;
8162
8162
  return [
8163
8163
  ...l.value,
8164
- ...(R = e.kgRules) != null ? R : [],
8165
- ...(k = a.kgSubmit.formRules.value[e.kgVarName]) != null ? k : []
8164
+ ...(C = e.kgRules) != null ? C : [],
8165
+ ...(R = a.kgSubmit.formRules.value[e.kgVarName]) != null ? R : []
8166
8166
  ];
8167
8167
  }), o = ref(!1);
8168
- watch(s, (R, k) => {
8169
- isEqual(R, k) || (o.value = !0, nextTick().then(() => {
8168
+ watch(s, (C, R) => {
8169
+ isEqual(C, R) || (o.value = !0, nextTick().then(() => {
8170
8170
  o.value = !1;
8171
8171
  }));
8172
- }, {}), watch([r, i, n], async ([R, k, y]) => {
8172
+ }, {}), watch([r, i, n], async ([C, R, y]) => {
8173
8173
  var A;
8174
8174
  (A = a.kgSubmit.formRef.value) == null || A.clearValidate(), await nextTick(), setTimeout(() => {
8175
8175
  l.value = (() => {
8176
8176
  let V = [];
8177
8177
  switch (e.kgContext) {
8178
8178
  case KG_FORM_CONTEXT.SEARCH:
8179
- if ((R == null ? void 0 : R.vis_flg) === 0)
8179
+ if ((C == null ? void 0 : C.vis_flg) === 0)
8180
8180
  return V;
8181
8181
  break;
8182
8182
  case KG_FORM_CONTEXT.SUBMIT:
8183
- if ((k == null ? void 0 : k.visible_flag) === 0)
8183
+ if ((R == null ? void 0 : R.visible_flag) === 0)
8184
8184
  return V;
8185
8185
  break;
8186
8186
  }
8187
8187
  switch (e.kgContext) {
8188
8188
  case KG_FORM_CONTEXT.SEARCH:
8189
- (R == null ? void 0 : R.rqr_flg) === 1 && V.push({
8189
+ (C == null ? void 0 : C.rqr_flg) === 1 && V.push({
8190
8190
  required: !0,
8191
8191
  message: t.t("kg.required")
8192
8192
  });
8193
8193
  break;
8194
8194
  case KG_FORM_CONTEXT.SUBMIT:
8195
- (k == null ? void 0 : k.required_flag) === 1 && V.push({
8195
+ (R == null ? void 0 : R.required_flag) === 1 && V.push({
8196
8196
  required: !0,
8197
8197
  message: t.t("kg.required")
8198
8198
  });
@@ -8205,7 +8205,7 @@ function _useFormRules(e) {
8205
8205
  V.push({
8206
8206
  validator: E
8207
8207
  }), V.push({
8208
- validator: C
8208
+ validator: k
8209
8209
  });
8210
8210
  break;
8211
8211
  }
@@ -8235,7 +8235,7 @@ function _useFormRules(e) {
8235
8235
  }), V.push({
8236
8236
  validator: E
8237
8237
  }), V.push({
8238
- validator: C
8238
+ validator: k
8239
8239
  });
8240
8240
  break;
8241
8241
  }
@@ -8245,7 +8245,7 @@ function _useFormRules(e) {
8245
8245
  }), V.push({
8246
8246
  validator: E
8247
8247
  }), V.push({
8248
- validator: C
8248
+ validator: k
8249
8249
  });
8250
8250
  break;
8251
8251
  }
@@ -8255,7 +8255,7 @@ function _useFormRules(e) {
8255
8255
  }), V.push({
8256
8256
  validator: E
8257
8257
  }), V.push({
8258
- validator: C
8258
+ validator: k
8259
8259
  });
8260
8260
  break;
8261
8261
  }
@@ -8276,56 +8276,56 @@ function _useFormRules(e) {
8276
8276
  deep: !0,
8277
8277
  immediate: !0
8278
8278
  });
8279
- function c(R) {
8280
- return R == null || R === "" || typeof R == "string" && R.trim() === "";
8279
+ function c(C) {
8280
+ return C == null || C === "" || typeof C == "string" && C.trim() === "";
8281
8281
  }
8282
- function u(R, k) {
8283
- return c(k) || /^-?\d+$/.test(k) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidInteger"));
8282
+ function u(C, R) {
8283
+ return c(R) || /^-?\d+$/.test(R) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidInteger"));
8284
8284
  }
8285
- function _(R, k) {
8286
- return c(k) || /^-?\d+(\.\d+)?$/.test(k) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidFloat"));
8285
+ function _(C, R) {
8286
+ return c(R) || /^-?\d+(\.\d+)?$/.test(R) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidFloat"));
8287
8287
  }
8288
- function g(R, k) {
8289
- return c(k) || /^[A-Za-z]*$/.test(k) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidLetter"));
8288
+ function g(C, R) {
8289
+ return c(R) || /^[A-Za-z]*$/.test(R) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidLetter"));
8290
8290
  }
8291
- function v(R, k) {
8292
- return c(k) || /^[A-Z]*$/.test(k) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidUpperLetter"));
8291
+ function v(C, R) {
8292
+ return c(R) || /^[A-Z]*$/.test(R) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidUpperLetter"));
8293
8293
  }
8294
- function d(R, k) {
8295
- return c(k) || /^[a-z]*$/.test(k) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidLowerLetter"));
8294
+ function d(C, R) {
8295
+ return c(R) || /^[a-z]*$/.test(R) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidLowerLetter"));
8296
8296
  }
8297
- function m(R, k) {
8298
- if (c(k))
8297
+ function m(C, R) {
8298
+ if (c(R))
8299
8299
  return Promise.resolve();
8300
8300
  try {
8301
- window.JSON.parse(String(k));
8301
+ window.JSON.parse(String(R));
8302
8302
  } catch {
8303
8303
  return Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidJSON"));
8304
8304
  }
8305
8305
  return Promise.resolve();
8306
8306
  }
8307
- function p(R, k) {
8308
- var A, V, I, O, F, P, G, K;
8309
- if (c(k))
8307
+ function p(C, R) {
8308
+ var A, V, I, O, F, K, G, w;
8309
+ if (c(R))
8310
8310
  return Promise.resolve();
8311
- const y = Number(k);
8312
- return !isNil((A = n.value) == null ? void 0 : A.min) && ((V = n.value) == null ? void 0 : V.min_include_flg) === 1 && y < ((I = n.value) == null ? void 0 : I.min) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForGTE", [(O = n.value) == null ? void 0 : O.min])) : !isNil((F = n.value) == null ? void 0 : F.min) && ((P = n.value) == null ? void 0 : P.min_include_flg) !== 1 && y <= ((G = n.value) == null ? void 0 : G.min) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForGT", [(K = n.value) == null ? void 0 : K.min])) : Promise.resolve();
8311
+ const y = Number(R);
8312
+ return !isNil((A = n.value) == null ? void 0 : A.min) && ((V = n.value) == null ? void 0 : V.min_include_flg) === 1 && y < ((I = n.value) == null ? void 0 : I.min) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForGTE", [(O = n.value) == null ? void 0 : O.min])) : !isNil((F = n.value) == null ? void 0 : F.min) && ((K = n.value) == null ? void 0 : K.min_include_flg) !== 1 && y <= ((G = n.value) == null ? void 0 : G.min) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForGT", [(w = n.value) == null ? void 0 : w.min])) : Promise.resolve();
8313
8313
  }
8314
- function T(R, k) {
8315
- var A, V, I, O, F, P, G, K;
8316
- if (c(k))
8314
+ function T(C, R) {
8315
+ var A, V, I, O, F, K, G, w;
8316
+ if (c(R))
8317
8317
  return Promise.resolve();
8318
- const y = Number(k);
8319
- return !isNil((A = n.value) == null ? void 0 : A.max) && ((V = n.value) == null ? void 0 : V.max_include_flg) === 1 && y > ((I = n.value) == null ? void 0 : I.max) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForLTE", [(O = n.value) == null ? void 0 : O.max])) : !isNil((F = n.value) == null ? void 0 : F.max) && ((P = n.value) == null ? void 0 : P.max_include_flg) !== 1 && y >= ((G = n.value) == null ? void 0 : G.max) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForLT", [(K = n.value) == null ? void 0 : K.max])) : Promise.resolve();
8318
+ const y = Number(R);
8319
+ return !isNil((A = n.value) == null ? void 0 : A.max) && ((V = n.value) == null ? void 0 : V.max_include_flg) === 1 && y > ((I = n.value) == null ? void 0 : I.max) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForLTE", [(O = n.value) == null ? void 0 : O.max])) : !isNil((F = n.value) == null ? void 0 : F.max) && ((K = n.value) == null ? void 0 : K.max_include_flg) !== 1 && y >= ((G = n.value) == null ? void 0 : G.max) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForLT", [(w = n.value) == null ? void 0 : w.max])) : Promise.resolve();
8320
8320
  }
8321
- function E(R, k) {
8321
+ function E(C, R) {
8322
8322
  var A, V, I;
8323
- const y = String(k);
8323
+ const y = String(R);
8324
8324
  return !isNil((A = n.value) == null ? void 0 : A.min_length) && y.length < ((V = n.value) == null ? void 0 : V.min_length) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForMinLength", [(I = n.value) == null ? void 0 : I.min_length])) : Promise.resolve();
8325
8325
  }
8326
- function C(R, k) {
8326
+ function k(C, R) {
8327
8327
  var A, V, I;
8328
- const y = String(k);
8328
+ const y = String(R);
8329
8329
  return !isNil((A = n.value) == null ? void 0 : A.max_length) && y.length > ((V = n.value) == null ? void 0 : V.max_length) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForMaxLength", [(I = n.value) == null ? void 0 : I.max_length])) : Promise.resolve();
8330
8330
  }
8331
8331
  return {
@@ -8390,46 +8390,46 @@ function useKgFormItemSelect(e) {
8390
8390
  var T;
8391
8391
  let p = KgVarUtil.parseRequestParamsToJSON((T = l.value) == null ? void 0 : T.cmd_prm);
8392
8392
  return p = mapValues(p, (E) => {
8393
- var R, k;
8394
- let C = E;
8393
+ var C, R;
8394
+ let k = E;
8395
8395
  if (typeof E == "string" && E.startsWith("{") && E.endsWith("}")) {
8396
8396
  let y = E.slice(1, -1), A = "";
8397
8397
  if (y.includes(".")) {
8398
8398
  const V = y.split(".");
8399
8399
  y = V[0], A = V[1];
8400
8400
  }
8401
- n.value && y in n.value && (A ? C = (k = (R = n.value[`${y}_obj`]) == null ? void 0 : R[A]) != null ? k : void 0 : C = n.value[y], C || (C = "__KG__FORM_ITEM_SELECT__PID__"));
8401
+ n.value && y in n.value && (A ? k = (R = (C = n.value[`${y}_obj`]) == null ? void 0 : C[A]) != null ? R : void 0 : k = n.value[y], k || (k = "__KG__FORM_ITEM_SELECT__PID__"));
8402
8402
  }
8403
- return C;
8403
+ return k;
8404
8404
  }), p;
8405
8405
  });
8406
8406
  async function d() {
8407
- var k, y, A, V, I, O, F, P, G, K, w, N, B;
8407
+ var R, y, A, V, I, O, F, K, G, w, P, N, B;
8408
8408
  let p = ref([]);
8409
- const T = (k = l.value) == null ? void 0 : k.data_source_type, E = (A = (y = l.value) == null ? void 0 : y.val_clm) != null ? A : "", C = (I = (V = l.value) == null ? void 0 : V.lbl_clm) != null ? I : "", R = ref({});
8409
+ const T = (R = l.value) == null ? void 0 : R.data_source_type, E = (A = (y = l.value) == null ? void 0 : y.val_clm) != null ? A : "", k = (I = (V = l.value) == null ? void 0 : V.lbl_clm) != null ? I : "", C = ref({});
8410
8410
  try {
8411
8411
  c.value = !0;
8412
8412
  const D = KgUtil.parseParams(v.value, null, a);
8413
8413
  if (!await i.kgForm.store.emit(i.formID, "selectBeforeRequest", {
8414
8414
  context: (O = t.kgContext) != null ? O : KG_FORM_CONTEXT.SUBMIT,
8415
8415
  params: D,
8416
- response: R,
8416
+ response: C,
8417
8417
  varName: r
8418
8418
  }))
8419
8419
  switch (T) {
8420
8420
  case KG__VAR_CONFIG_POSSIBILITY__DATA_SOURCE_TYPE.API: {
8421
- const M = (F = l.value) == null ? void 0 : F.cmd, x = (G = (P = l.value) == null ? void 0 : P.cmd_method) != null ? G : "GET";
8422
- if (!M || !E || !C) {
8421
+ const M = (F = l.value) == null ? void 0 : F.cmd, x = (G = (K = l.value) == null ? void 0 : K.cmd_method) != null ? G : "GET";
8422
+ if (!M || !E || !k) {
8423
8423
  ____ERROR____("KgFormItemSelect.requestDatas() | \u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
8424
8424
  cmd: M,
8425
8425
  formID: i.formID,
8426
- lbl_clm: C,
8426
+ lbl_clm: k,
8427
8427
  val_clm: E,
8428
8428
  varName: r
8429
8429
  });
8430
8430
  return;
8431
8431
  }
8432
- R.value = await ((K = httpClient()) == null ? void 0 : K.request({
8432
+ C.value = await ((w = httpClient()) == null ? void 0 : w.request({
8433
8433
  url: M,
8434
8434
  method: x,
8435
8435
  params: D,
@@ -8441,30 +8441,30 @@ function useKgFormItemSelect(e) {
8441
8441
  break;
8442
8442
  }
8443
8443
  case KG__VAR_CONFIG_POSSIBILITY__DATA_SOURCE_TYPE.SQL: {
8444
- R.value = await ExecuteQuery({
8444
+ C.value = await ExecuteQuery({
8445
8445
  params: {
8446
- id: (N = (w = l.value) == null ? void 0 : w.id) != null ? N : ""
8446
+ id: (N = (P = l.value) == null ? void 0 : P.id) != null ? N : ""
8447
8447
  }
8448
8448
  });
8449
8449
  break;
8450
8450
  }
8451
8451
  }
8452
- if (!isObjectLike(R.value))
8452
+ if (!isObjectLike(C.value))
8453
8453
  p.value = [];
8454
8454
  else
8455
8455
  switch (!0) {
8456
- case isArrayLike(R.value):
8457
- p.value = m(R.value);
8456
+ case isArrayLike(C.value):
8457
+ p.value = m(C.value);
8458
8458
  break;
8459
- case (R.value && "total" in R.value && "records" in R.value):
8460
- p.value = m(R.value.records);
8459
+ case (C.value && "total" in C.value && "records" in C.value):
8460
+ p.value = m(C.value.records);
8461
8461
  break;
8462
8462
  }
8463
8463
  if (p.value.length > 0) {
8464
8464
  const M = p.value[0];
8465
- (!(E in M) || !(C in M)) && ____ERROR____("KgFormItemSelect.requestDatas() | \u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
8465
+ (!(E in M) || !(k in M)) && ____ERROR____("KgFormItemSelect.requestDatas() | \u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
8466
8466
  formID: i.formID,
8467
- lbl_clm: C,
8467
+ lbl_clm: k,
8468
8468
  val_clm: E,
8469
8469
  varName: r,
8470
8470
  \u6240\u6709\u5217: Object.keys(M)
@@ -8488,10 +8488,10 @@ function useKgFormItemSelect(e) {
8488
8488
  }
8489
8489
  }
8490
8490
  function m(p) {
8491
- var C, R, k, y, A;
8491
+ var k, C, R, y, A;
8492
8492
  if (!p)
8493
8493
  return [];
8494
- const T = (R = (C = l.value) == null ? void 0 : C.val_clm) != null ? R : "", E = (y = (k = l.value) == null ? void 0 : k.val_data_type) != null ? y : KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.DEFAULT;
8494
+ const T = (C = (k = l.value) == null ? void 0 : k.val_clm) != null ? C : "", E = (y = (R = l.value) == null ? void 0 : R.val_data_type) != null ? y : KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.DEFAULT;
8495
8495
  switch (E) {
8496
8496
  case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.STRING:
8497
8497
  p.forEach((V) => {
@@ -8544,7 +8544,7 @@ function useKgFormItemSelect(e) {
8544
8544
  varConfigPossibility: l
8545
8545
  };
8546
8546
  }
8547
- function _isSlot$d(e) {
8547
+ function _isSlot$e(e) {
8548
8548
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
8549
8549
  }
8550
8550
  const KgFormItemCheckboxGroup = defineComponent({
@@ -8569,19 +8569,19 @@ const KgFormItemCheckboxGroup = defineComponent({
8569
8569
  watch(o, () => d(), {
8570
8570
  immediate: !0
8571
8571
  }), watch([() => e.value, u], ([T, E]) => {
8572
- const C = get(T, "length", 0);
8573
- if (C > 0 && E.length > 0) {
8574
- const R = intersection$1(T, E == null ? void 0 : E.map((k) => k[c.value]));
8575
- if (R.length < C) {
8576
- a("update:value", R);
8572
+ const k = get(T, "length", 0);
8573
+ if (k > 0 && E.length > 0) {
8574
+ const C = intersection$1(T, E == null ? void 0 : E.map((R) => R[c.value]));
8575
+ if (C.length < k) {
8576
+ a("update:value", C);
8577
8577
  return;
8578
8578
  }
8579
8579
  }
8580
8580
  switch (!0) {
8581
- case (C > 0 && C === E.length):
8581
+ case (k > 0 && k === E.length):
8582
8582
  g.value = !0, v.value = !1;
8583
8583
  break;
8584
- case (C > 0 && C !== E.length):
8584
+ case (k > 0 && k !== E.length):
8585
8585
  g.value = !1, v.value = !0;
8586
8586
  break;
8587
8587
  default:
@@ -8593,14 +8593,14 @@ const KgFormItemCheckboxGroup = defineComponent({
8593
8593
  });
8594
8594
  async function d() {
8595
8595
  var T, E;
8596
- !((T = s.value) != null && T.id) || (await _(), a("update:value", intersection$1((E = u.value) == null ? void 0 : E.map((C) => C[c.value]), e.value)));
8596
+ !((T = s.value) != null && T.id) || (await _(), a("update:value", intersection$1((E = u.value) == null ? void 0 : E.map((k) => k[c.value]), e.value)));
8597
8597
  }
8598
8598
  function m(T) {
8599
- var E, C, R;
8600
- T.target.checked ? p((C = (E = u.value) == null ? void 0 : E.map((k) => k[c.value])) != null ? C : []) : p([]), v.value = !1, (R = i.value) == null || R.validate(e.kgVarName);
8599
+ var E, k, C;
8600
+ T.target.checked ? p((k = (E = u.value) == null ? void 0 : E.map((R) => R[c.value])) != null ? k : []) : p([]), v.value = !1, (C = i.value) == null || C.validate(e.kgVarName);
8601
8601
  }
8602
8602
  function p(T) {
8603
- var E, C, R;
8603
+ var E, k, C;
8604
8604
  a("update:value", T), a("kgChange", T), n.kgForm.store.emit(n.kgForm.formID, "change", {
8605
8605
  context: (E = e.kgContext) != null ? E : KG_FORM_CONTEXT.SUBMIT,
8606
8606
  isCopying: n.isCopying.value,
@@ -8608,8 +8608,8 @@ const KgFormItemCheckboxGroup = defineComponent({
8608
8608
  isDeleting: n.isDeleting.value,
8609
8609
  isUpdating: n.isUpdating.value,
8610
8610
  value: T,
8611
- varName: (C = e.kgVarName) != null ? C : "",
8612
- variableName: (R = e.kgVarName) != null ? R : ""
8611
+ varName: (k = e.kgVarName) != null ? k : "",
8612
+ variableName: (C = e.kgVarName) != null ? C : ""
8613
8613
  });
8614
8614
  }
8615
8615
  return () => {
@@ -8619,10 +8619,10 @@ const KgFormItemCheckboxGroup = defineComponent({
8619
8619
  }, [createVNode(Form.ItemRest, null, {
8620
8620
  default: () => [createVNode(Checkbox, {
8621
8621
  checked: g.value,
8622
- "onUpdate:checked": (C) => g.value = C,
8622
+ "onUpdate:checked": (k) => g.value = k,
8623
8623
  indeterminate: v.value,
8624
8624
  onChange: m
8625
- }, _isSlot$d(T = r.t("kg.selectAll")) ? T : {
8625
+ }, _isSlot$e(T = r.t("kg.selectAll")) ? T : {
8626
8626
  default: () => [T]
8627
8627
  })]
8628
8628
  }), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
@@ -8631,18 +8631,18 @@ const KgFormItemCheckboxGroup = defineComponent({
8631
8631
  }, {
8632
8632
  default: () => [createVNode(Row, {
8633
8633
  gutter: 12
8634
- }, _isSlot$d(E = u.value.map((C) => {
8635
- var R, k;
8634
+ }, _isSlot$e(E = u.value.map((k) => {
8635
+ var C, R;
8636
8636
  return createVNode(Col, {
8637
- span: (k = (R = l.value) == null ? void 0 : R.span) != null ? k : 24
8637
+ span: (R = (C = l.value) == null ? void 0 : C.span) != null ? R : 24
8638
8638
  }, {
8639
8639
  default: () => [createVNode(Checkbox, {
8640
- "kg-value": C[c.value],
8641
- value: C[c.value]
8640
+ "kg-value": k[c.value],
8641
+ value: k[c.value]
8642
8642
  }, {
8643
8643
  default: () => {
8644
8644
  var y, A;
8645
- return [C[(A = (y = s.value) == null ? void 0 : y.lbl_clm) != null ? A : ""]];
8645
+ return [k[(A = (y = s.value) == null ? void 0 : y.lbl_clm) != null ? A : ""]];
8646
8646
  }
8647
8647
  })]
8648
8648
  });
@@ -8833,7 +8833,7 @@ const KgFormItemCheckboxGroup = defineComponent({
8833
8833
  }, null);
8834
8834
  }
8835
8835
  });
8836
- function _isSlot$c(e) {
8836
+ function _isSlot$d(e) {
8837
8837
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
8838
8838
  }
8839
8839
  const KgFormItemRadioGroup = defineComponent({
@@ -8885,7 +8885,7 @@ const KgFormItemRadioGroup = defineComponent({
8885
8885
  }, {
8886
8886
  default: () => [createVNode(Row, {
8887
8887
  gutter: 12
8888
- }, _isSlot$c(g = o.value.map((v) => {
8888
+ }, _isSlot$d(g = o.value.map((v) => {
8889
8889
  var d, m;
8890
8890
  return createVNode(Col, {
8891
8891
  span: (m = (d = n.value) == null ? void 0 : d.span) != null ? m : 24
@@ -8927,9 +8927,9 @@ const KgFormItemRadioGroup = defineComponent({
8927
8927
  } = useKgFormItemSelect({
8928
8928
  props: e
8929
8929
  }), d = computed(() => {
8930
- var C, R;
8930
+ var k, C;
8931
8931
  let E = !0;
8932
- return e.kgAllowClear !== void 0 ? E = e.kgAllowClear : isNil((C = l.value) == null ? void 0 : C.allowClear) || (E = (R = l.value) == null ? void 0 : R.allowClear), E;
8932
+ return e.kgAllowClear !== void 0 ? E = e.kgAllowClear : isNil((k = l.value) == null ? void 0 : k.allowClear) || (E = (C = l.value) == null ? void 0 : C.allowClear), E;
8933
8933
  });
8934
8934
  watch(v, () => {
8935
8935
  m();
@@ -8942,24 +8942,24 @@ const KgFormItemRadioGroup = defineComponent({
8942
8942
  switch (await g(), a("kgSelectDatasChange", _.value), e.kgMode) {
8943
8943
  case "multiple": {
8944
8944
  if (Array.isArray(e.value)) {
8945
- const C = e.value.filter((R) => _.value.find((k) => k[o.value] === R));
8946
- C.length > 0 ? a("update:value", C) : a("update:value", []);
8945
+ const k = e.value.filter((C) => _.value.find((R) => R[o.value] === C));
8946
+ k.length > 0 ? a("update:value", k) : a("update:value", []);
8947
8947
  }
8948
8948
  break;
8949
8949
  }
8950
8950
  default:
8951
- _.value.find((C) => C[o.value] === e.value) || a("update:value", void 0);
8951
+ _.value.find((k) => k[o.value] === e.value) || a("update:value", void 0);
8952
8952
  break;
8953
8953
  }
8954
8954
  }
8955
8955
  async function p(E) {
8956
- var C, R, k, y, A, V;
8956
+ var k, C, R, y, A, V;
8957
8957
  switch (e.kgMode) {
8958
8958
  case "multiple": {
8959
8959
  if (Array.isArray(E)) {
8960
- const I = (C = toRaw(_.value.filter((O) => E.includes(O[o.value])))) != null ? C : null;
8960
+ const I = (k = toRaw(_.value.filter((O) => E.includes(O[o.value])))) != null ? k : null;
8961
8961
  a("kgSelectChange", I), await i.kgForm.store.emit(i.kgForm.formID, "selectChange", {
8962
- context: (R = e.kgContext) != null ? R : KG_FORM_CONTEXT.SUBMIT,
8962
+ context: (C = e.kgContext) != null ? C : KG_FORM_CONTEXT.SUBMIT,
8963
8963
  formModel: e.kgContext === KG_FORM_CONTEXT.SEARCH ? i.kgSearch.formModel : i.kgSubmit.formModel,
8964
8964
  isCopying: i.isCopying.value,
8965
8965
  isCreating: i.isCreating.value,
@@ -8969,7 +8969,7 @@ const KgFormItemRadioGroup = defineComponent({
8969
8969
  model: e.kgContext === KG_FORM_CONTEXT.SEARCH ? i.kgSearch.formModel : i.kgSubmit.formModel,
8970
8970
  rows: I,
8971
8971
  values: E,
8972
- var_nam: (k = e.kgVarName) != null ? k : ""
8972
+ var_nam: (R = e.kgVarName) != null ? R : ""
8973
8973
  }), r.value[`${e.kgVarName}_obj`] = I;
8974
8974
  }
8975
8975
  break;
@@ -8994,16 +8994,16 @@ const KgFormItemRadioGroup = defineComponent({
8994
8994
  }
8995
8995
  }
8996
8996
  function T(E) {
8997
- var C, R, k;
8997
+ var k, C, R;
8998
8998
  a("update:value", E), a("kgChange", E), i.kgForm.store.emit(i.kgForm.formID, "change", {
8999
- context: (C = e.kgContext) != null ? C : KG_FORM_CONTEXT.SUBMIT,
8999
+ context: (k = e.kgContext) != null ? k : KG_FORM_CONTEXT.SUBMIT,
9000
9000
  isCopying: i.isCopying.value,
9001
9001
  isCreating: i.isCreating.value,
9002
9002
  isDeleting: i.isDeleting.value,
9003
9003
  isUpdating: i.isUpdating.value,
9004
9004
  value: E,
9005
- varName: (R = e.kgVarName) != null ? R : "",
9006
- variableName: (k = e.kgVarName) != null ? k : ""
9005
+ varName: (C = e.kgVarName) != null ? C : "",
9006
+ variableName: (R = e.kgVarName) != null ? R : ""
9007
9007
  });
9008
9008
  }
9009
9009
  return () => {
@@ -9024,18 +9024,18 @@ const KgFormItemRadioGroup = defineComponent({
9024
9024
  placeholder: e.kgPlaceholder,
9025
9025
  showArrow: !0,
9026
9026
  showSearch: !0,
9027
- filterOption: (C, R) => (R == null ? void 0 : R.value) !== null && (R == null ? void 0 : R.value) !== void 0 && String(R.value).toLowerCase().includes(C.toLowerCase()) || (R == null ? void 0 : R.label) !== null && (R == null ? void 0 : R.label) !== void 0 && String(R.label).toLowerCase().includes(C.toLowerCase()),
9027
+ filterOption: (k, C) => (C == null ? void 0 : C.value) !== null && (C == null ? void 0 : C.value) !== void 0 && String(C.value).toLowerCase().includes(k.toLowerCase()) || (C == null ? void 0 : C.label) !== null && (C == null ? void 0 : C.label) !== void 0 && String(C.label).toLowerCase().includes(k.toLowerCase()),
9028
9028
  dropdownClassName: e.kgMode === "multiple" ? "kg-form-item--select--dropdown kg-form-item--select-multi--dropdown" : "kg-form-item--select--dropdown",
9029
9029
  onChange: p
9030
9030
  }, {
9031
- default: () => _.value.map((C) => createVNode(Select.Option, {
9032
- "kg-value": C[o.value],
9033
- key: C.id,
9034
- title: C[c.value],
9035
- value: C[o.value],
9036
- label: C[c.value]
9031
+ default: () => _.value.map((k) => createVNode(Select.Option, {
9032
+ "kg-value": k[o.value],
9033
+ key: k.id,
9034
+ title: k[c.value],
9035
+ value: k[o.value],
9036
+ label: k[c.value]
9037
9037
  }, {
9038
- default: () => [C[c.value]]
9038
+ default: () => [k[c.value]]
9039
9039
  })),
9040
9040
  notFoundContent: () => u.value ? createVNode("span", null, [n.t("kg.loading")]) : createVNode("span", null, [n.t("kg.empty")]),
9041
9041
  suffixIcon: () => createVNode(CaretDownOutlined$1, {
@@ -9119,7 +9119,7 @@ const KgFormItemRadioGroup = defineComponent({
9119
9119
  }, null);
9120
9120
  }
9121
9121
  }), KgForm_Item = "";
9122
- function _isSlot$b(e) {
9122
+ function _isSlot$c(e) {
9123
9123
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
9124
9124
  }
9125
9125
  const KgFormItem = defineComponent({
@@ -9268,7 +9268,7 @@ const KgFormItem = defineComponent({
9268
9268
  break;
9269
9269
  }
9270
9270
  return N = Number(N), N;
9271
- }), C = computed(() => {
9271
+ }), k = computed(() => {
9272
9272
  var U, M;
9273
9273
  const N = get(I.value, "$el.parentElement");
9274
9274
  if (N && !((U = N.classList) != null && U.contains("ant-row")))
@@ -9279,7 +9279,7 @@ const KgFormItem = defineComponent({
9279
9279
  paddingLeft: `${D}px !important`,
9280
9280
  paddingRight: `${D}px !important`
9281
9281
  }), B;
9282
- }), R = computed(() => {
9282
+ }), C = computed(() => {
9283
9283
  var B, D;
9284
9284
  let N = "kg-form-item";
9285
9285
  switch (o.value && (N += " kg-form-item-lookup"), E.value && (N += " kg-form-item--col-fixed"), e.kgContext) {
@@ -9294,7 +9294,7 @@ const KgFormItem = defineComponent({
9294
9294
  }
9295
9295
  }
9296
9296
  return N;
9297
- }), k = computed(() => {
9297
+ }), R = computed(() => {
9298
9298
  var B;
9299
9299
  const N = {
9300
9300
  ...e,
@@ -9380,7 +9380,7 @@ const KgFormItem = defineComponent({
9380
9380
  validateFirst: !0,
9381
9381
  htmlFor: V.value
9382
9382
  }, {
9383
- default: () => createVNode(Fragment, null, [P(), F(), K(), w()]),
9383
+ default: () => createVNode(Fragment, null, [K(), F(), w(), P()]),
9384
9384
  label: () => G()
9385
9385
  });
9386
9386
  }
@@ -9390,7 +9390,7 @@ const KgFormItem = defineComponent({
9390
9390
  formID: l.formID,
9391
9391
  frm_id: l.formID,
9392
9392
  model: r,
9393
- props: k,
9393
+ props: R,
9394
9394
  varConfigControl: c,
9395
9395
  varName: e.kgVarName,
9396
9396
  varProfileDetail: u,
@@ -9398,40 +9398,40 @@ const KgFormItem = defineComponent({
9398
9398
  });
9399
9399
  switch (d.value) {
9400
9400
  case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.INPUT_NUMBER:
9401
- return createVNode(KgFormItemInputNumber, k.value, null);
9401
+ return createVNode(KgFormItemInputNumber, R.value, null);
9402
9402
  case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.TEXT_AREA:
9403
- return createVNode(KgFormItemTextArea, k.value, null);
9403
+ return createVNode(KgFormItemTextArea, R.value, null);
9404
9404
  case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.SELECT:
9405
- return createVNode(KgFormItemSelect, k.value, null);
9405
+ return createVNode(KgFormItemSelect, R.value, null);
9406
9406
  case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.SELECT_MULTIPLE:
9407
- return createVNode(KgFormItemSelect, k.value, null);
9407
+ return createVNode(KgFormItemSelect, R.value, null);
9408
9408
  case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.SWITCH:
9409
- return createVNode(KgFormItemSwitch, k.value, null);
9409
+ return createVNode(KgFormItemSwitch, R.value, null);
9410
9410
  case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.CHECKBOX:
9411
- return createVNode(KgFormItemCheckbox, k.value, null);
9411
+ return createVNode(KgFormItemCheckbox, R.value, null);
9412
9412
  case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.CHECKBOX_GROUP:
9413
- return createVNode(KgFormItemCheckboxGroup, k.value, null);
9413
+ return createVNode(KgFormItemCheckboxGroup, R.value, null);
9414
9414
  case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.RADIO_GROUP:
9415
- return createVNode(KgFormItemRadioGroup, k.value, null);
9415
+ return createVNode(KgFormItemRadioGroup, R.value, null);
9416
9416
  case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATE:
9417
- return createVNode(KgFormItemDate, k.value, null);
9417
+ return createVNode(KgFormItemDate, R.value, null);
9418
9418
  case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATE_RANGE:
9419
- return createVNode(KgFormItemDateRange, k.value, null);
9419
+ return createVNode(KgFormItemDateRange, R.value, null);
9420
9420
  case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_TIME:
9421
- return createVNode(KgFormItemDate, k.value, null);
9421
+ return createVNode(KgFormItemDate, R.value, null);
9422
9422
  case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_TIME_RANGE:
9423
- return createVNode(KgFormItemDateRange, k.value, null);
9423
+ return createVNode(KgFormItemDateRange, R.value, null);
9424
9424
  case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATETIME:
9425
- return createVNode(KgFormItemDate, k.value, null);
9425
+ return createVNode(KgFormItemDate, R.value, null);
9426
9426
  case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATETIME_RANGE:
9427
- return createVNode(KgFormItemDateRange, k.value, null);
9427
+ return createVNode(KgFormItemDateRange, R.value, null);
9428
9428
  case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.IMAGE:
9429
- return createVNode(KgFormItemImage, k.value, null);
9429
+ return createVNode(KgFormItemImage, R.value, null);
9430
9430
  default:
9431
- return createVNode(KgFormItemInput, k.value, null);
9431
+ return createVNode(KgFormItemInput, R.value, null);
9432
9432
  }
9433
9433
  }
9434
- function P() {
9434
+ function K() {
9435
9435
  var N, B, D;
9436
9436
  return ((B = (N = i.option.value.KgSearch) == null ? void 0 : N.dynamicQuery) == null ? void 0 : B.on) !== !0 || e.kgContext !== KG_FORM_CONTEXT.SEARCH || ((D = l.kgSearch.currentVarProfileMaster.value) == null ? void 0 : D.dyn_flg) !== 1 ? null : createVNode(Form.ItemRest, null, {
9437
9437
  default: () => {
@@ -9479,7 +9479,7 @@ const KgFormItem = defineComponent({
9479
9479
  innerHTML: (B = (N = s.value) == null ? void 0 : N.tip) != null ? B : ""
9480
9480
  }, null)]) : null;
9481
9481
  }
9482
- function K() {
9482
+ function w() {
9483
9483
  var N;
9484
9484
  return !o.value || !((N = o.value) != null && N.lkp_id) ? null : createVNode(Form.ItemRest, null, {
9485
9485
  default: () => [createVNode(KgFormItemAddonLookup, {
@@ -9488,12 +9488,12 @@ const KgFormItem = defineComponent({
9488
9488
  }, null)]
9489
9489
  });
9490
9490
  }
9491
- function w() {
9491
+ function P() {
9492
9492
  return !t.controlRight || !isFunction$2(t.controlRight) ? null : t.controlRight({
9493
9493
  formID: l.formID,
9494
9494
  frm_id: l.formID,
9495
9495
  model: r,
9496
- props: k,
9496
+ props: R,
9497
9497
  varConfigControl: c,
9498
9498
  varName: e.kgVarName,
9499
9499
  varProfileDetail: u,
@@ -9509,10 +9509,10 @@ const KgFormItem = defineComponent({
9509
9509
  "kg-lkp_id": (B = o.value) == null ? void 0 : B.lkp_id,
9510
9510
  "kg-ret_fld": (D = o.value) == null ? void 0 : D.ret_fld,
9511
9511
  ref: I,
9512
- class: R.value,
9512
+ class: C.value,
9513
9513
  span: T.value,
9514
- style: C.value
9515
- }, _isSlot$b(N = O()) ? N : {
9514
+ style: k.value
9515
+ }, _isSlot$c(N = O()) ? N : {
9516
9516
  default: () => [N]
9517
9517
  });
9518
9518
  };
@@ -9884,7 +9884,7 @@ function _useDefaultWidth() {
9884
9884
  };
9885
9885
  }
9886
9886
  const KgSubmit$1 = "";
9887
- function _isSlot$a(e) {
9887
+ function _isSlot$b(e) {
9888
9888
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
9889
9889
  }
9890
9890
  const getProps$B = () => ({
@@ -9899,7 +9899,7 @@ const getProps$B = () => ({
9899
9899
  const a = inject("$dayjs", dayjs), r = inject(KG__DI__KG_VAR__KG_SLOTS, null);
9900
9900
  inject(KG__DI__KG_VAR__KG_PROPS, null);
9901
9901
  const n = useKg(), i = useKgVar();
9902
- i.kgButton.onSubmitSave(async () => (await w(), !1)), i.kgButton.onSubmitCancel(async () => (await K(), !1)), _useFormModel$1();
9902
+ i.kgButton.onSubmitSave(async () => (await P(), !1)), i.kgButton.onSubmitCancel(async () => (await w(), !1)), _useFormModel$1();
9903
9903
  const l = computed(() => i.isDeleting.value && i.kgSubmit.currentVarSubmitDetailsForKey.value.length === 0 && i.kgSubmit.currentVarSubmitDetailsForNotKey.value.length === 0), s = computed(() => i.kgSubmit.store.isLoading(i.formID)), o = computed(() => i.kgButton.isCurrentButtonRequesting.value || !!i.store.isCreatingRequesting(i.formID) || !!i.store.isUpdatingRequesting(i.formID) || !!i.store.isCopyingRequesting(i.formID) || !!i.store.isDeletingRequesting(i.formID)), c = computed(() => o.value || s.value), u = computed(() => s.value), _ = ref(!1), g = computed(() => {
9904
9904
  var Y;
9905
9905
  return l.value ? SUBMIT_DEFAULT_MIN_WIDTH : (Y = i.kgSubmit.currentVarSubmitConfig.value) == null ? void 0 : Y.min_width;
@@ -9919,8 +9919,8 @@ const getProps$B = () => ({
9919
9919
  _useResizeObserver$1(T);
9920
9920
  const {
9921
9921
  title: E
9922
- } = _useTitle(), C = computed(() => l.value ? SUBMIT_DEFAULT_MIN_WIDTH : A.value), R = computed(() => C.value !== 0), {
9923
- getClass: k,
9922
+ } = _useTitle(), k = computed(() => l.value ? SUBMIT_DEFAULT_MIN_WIDTH : A.value), C = computed(() => k.value !== 0), {
9923
+ getClass: R,
9924
9924
  getWrapClass: y
9925
9925
  } = _useClass(e), {
9926
9926
  getDefaultWidth: A
@@ -9963,12 +9963,12 @@ const getProps$B = () => ({
9963
9963
  var Y, L;
9964
9964
  return (Y = i.kgSubmit.currentVarSubmitConfig$Props.value.okButton) != null && Y.textVarName ? i.t((L = i.kgSubmit.currentVarSubmitConfig$Props.value.okButton) == null ? void 0 : L.textVarName).value : n.t("kg.ok");
9965
9965
  }), F = ref([(oe = i.kgSubmit.currentVarSubmitDetailSectionsForVisible.value[0]) != null ? oe : ""]);
9966
- watch(R, (Y, L) => {
9967
- Y === !0 && P(), L === !0 && Y === !1 && G();
9966
+ watch(C, (Y, L) => {
9967
+ Y === !0 && K(), L === !0 && Y === !1 && G();
9968
9968
  }, {
9969
9969
  immediate: !0
9970
9970
  });
9971
- async function P() {
9971
+ async function K() {
9972
9972
  if (!await i.kgSubmit.store.emit(i.formID, "beforeOpen", {
9973
9973
  isCopying: i.isCopying.value,
9974
9974
  isCreating: i.isCreating.value,
@@ -9996,10 +9996,10 @@ const getProps$B = () => ({
9996
9996
  async function G() {
9997
9997
  await i.kgSubmit.store.emit(i.formID, "close", null);
9998
9998
  }
9999
- async function K() {
9999
+ async function w() {
10000
10000
  i.kgButton.setCurrentButton(null);
10001
10001
  }
10002
- async function w() {
10002
+ async function P() {
10003
10003
  var Y, L;
10004
10004
  try {
10005
10005
  if (!i.kgSubmit.formRef.value || await i.kgSubmit.store.emit(i.formID, "beforeOk", {
@@ -10312,7 +10312,7 @@ const getProps$B = () => ({
10312
10312
  key: L,
10313
10313
  kgVarName: L,
10314
10314
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10315
- onKgSubmit: w
10315
+ onKgSubmit: P
10316
10316
  }, {
10317
10317
  control: isFunction$2($) ? (X) => $(X) : void 0,
10318
10318
  controlRight: isFunction$2(H) ? (X) => H(X) : void 0
@@ -10325,11 +10325,11 @@ const getProps$B = () => ({
10325
10325
  let Y, L;
10326
10326
  return createVNode(Fragment, null, [i.kgSubmit.currentVarSubmitDetailsForKey.value.length > 0 && createVNode(Row, {
10327
10327
  gutter: 12
10328
- }, _isSlot$a(Y = i.kgSubmit.currentVarSubmitDetailsForKey.value.map(x)) ? Y : {
10328
+ }, _isSlot$b(Y = i.kgSubmit.currentVarSubmitDetailsForKey.value.map(x)) ? Y : {
10329
10329
  default: () => [Y]
10330
10330
  }), i.kgSubmit.currentVarSubmitDetailsForKeyAndVisible.value.length > 0 && i.kgSubmit.currentVarSubmitDetailsForNotKeyAndVisible.value.length > 0 && createVNode(Divider, null, null), i.kgSubmit.currentVarSubmitDetailsForNotKey.value.length > 0 && createVNode(Row, {
10331
10331
  gutter: 12
10332
- }, _isSlot$a(L = i.kgSubmit.currentVarSubmitDetailsForNotKey.value.map(x)) ? L : {
10332
+ }, _isSlot$b(L = i.kgSubmit.currentVarSubmitDetailsForNotKey.value.map(x)) ? L : {
10333
10333
  default: () => [L]
10334
10334
  }), l.value && createVNode("div", {
10335
10335
  style: "text-align: center; padding: 6px 0 12px;"
@@ -10343,7 +10343,7 @@ const getProps$B = () => ({
10343
10343
  mode: "inline",
10344
10344
  selectedKeys: F.value,
10345
10345
  onSelect: _e
10346
- }, _isSlot$a(Y = i.kgSubmit.currentVarSubmitDetailSectionsForVisible.value.map((L) => createVNode(Menu.Item, {
10346
+ }, _isSlot$b(Y = i.kgSubmit.currentVarSubmitDetailSectionsForVisible.value.map((L) => createVNode(Menu.Item, {
10347
10347
  key: L
10348
10348
  }, {
10349
10349
  default: () => [i.t(L).value]
@@ -10386,15 +10386,15 @@ const getProps$B = () => ({
10386
10386
  type: "primary",
10387
10387
  ghost: !c.value,
10388
10388
  disabled: c.value,
10389
- onClick: K
10390
- }, _isSlot$a(Y = n.t("kg.cancel")) ? Y : {
10389
+ onClick: w
10390
+ }, _isSlot$b(Y = n.t("kg.cancel")) ? Y : {
10391
10391
  default: () => [Y]
10392
10392
  }), createVNode(Button, {
10393
10393
  type: "primary",
10394
10394
  disabled: u.value,
10395
10395
  loading: o.value,
10396
10396
  danger: !!i.isDeleting.value,
10397
- onClick: w
10397
+ onClick: P
10398
10398
  }, {
10399
10399
  default: () => [O.value]
10400
10400
  })]);
@@ -10412,13 +10412,13 @@ const getProps$B = () => ({
10412
10412
  i.kgSubmit.store.dispose(i.formID), await G();
10413
10413
  }), () => createVNode(KgModal, {
10414
10414
  "kg-form_id": i.formID,
10415
- visible: R.value,
10415
+ visible: C.value,
10416
10416
  mask: i.kgSubmit.currentVarSubmitConfig$DisplayType.value !== KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE.TABLE,
10417
10417
  maskClosable: !1,
10418
10418
  keyboard: !1,
10419
10419
  destroyOnClose: !0,
10420
- width: C.value,
10421
- class: k.value,
10420
+ width: k.value,
10421
+ class: R.value,
10422
10422
  wrapClassName: y.value,
10423
10423
  kgFullHeight: !1,
10424
10424
  kgMinWidth: g.value,
@@ -10427,7 +10427,7 @@ const getProps$B = () => ({
10427
10427
  kgMaxHeight: m.value,
10428
10428
  kgIsShowFullscreenButton: p.value,
10429
10429
  kgIsDefaultFullscreen: _.value,
10430
- onCancel: K
10430
+ onCancel: w
10431
10431
  }, {
10432
10432
  title: ue,
10433
10433
  default: ae,
@@ -11583,6 +11583,7 @@ class VarDTO {
11583
11583
  b(this, "varConfigLookups");
11584
11584
  b(this, "varConfigPossibilities");
11585
11585
  b(this, "varConfigTips");
11586
+ b(this, "varDda");
11586
11587
  b(this, "varGridConfig");
11587
11588
  b(this, "varGridMasters");
11588
11589
  b(this, "varProfileConfig");
@@ -11601,6 +11602,7 @@ class VarDTO {
11601
11602
  case "varConfigLookups":
11602
11603
  case "varConfigPossibilities":
11603
11604
  case "varConfigTips":
11605
+ case "varDda":
11604
11606
  case "varGridConfig":
11605
11607
  case "varGridMasters":
11606
11608
  case "varProfileConfig":
@@ -11873,7 +11875,6 @@ class VarProfileMasterDTO {
11873
11875
  b(this, "grp_nam");
11874
11876
  b(this, "id");
11875
11877
  b(this, "prf_var_nam");
11876
- b(this, "prf_var_nam_dsc");
11877
11878
  b(this, "usr_id");
11878
11879
  b(this, "varProfileDetails");
11879
11880
  keys(t != null ? t : {}).forEach((a) => {
@@ -11885,7 +11886,6 @@ class VarProfileMasterDTO {
11885
11886
  case "grp_nam":
11886
11887
  case "id":
11887
11888
  case "prf_var_nam":
11888
- case "prf_var_nam_dsc":
11889
11889
  case "usr_id":
11890
11890
  case "varProfileDetails":
11891
11891
  Reflect.set(this, a, Reflect.get(t != null ? t : {}, a));
@@ -12579,7 +12579,7 @@ async function toCanvas(e, t = {}) {
12579
12579
  const { width: a, height: r } = getImageSize(e, t), n = await toSvg(e, t), i = await createImage(n), l = document.createElement("canvas"), s = l.getContext("2d"), o = t.pixelRatio || getPixelRatio(), c = t.canvasWidth || a, u = t.canvasHeight || r;
12580
12580
  return l.width = c * o, l.height = u * o, t.skipAutoScale || checkCanvasDimensions(l), l.style.width = `${c}`, l.style.height = `${u}`, t.backgroundColor && (s.fillStyle = t.backgroundColor, s.fillRect(0, 0, l.width, l.height)), s.drawImage(i, 0, 0, l.width, l.height), l;
12581
12581
  }
12582
- function _isSlot$9(e) {
12582
+ function _isSlot$a(e) {
12583
12583
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
12584
12584
  }
12585
12585
  function _useTransferColumns(e, t) {
@@ -12698,15 +12698,15 @@ function _useTransferColumns(e, t) {
12698
12698
  let c, u, _;
12699
12699
  return createVNode(Fragment, null, [createVNode(Select.Option, {
12700
12700
  value: -1
12701
- }, _isSlot$9(c = a.t("kg.KgVarConfigModalTableVarGridMaster.notSort")) ? c : {
12701
+ }, _isSlot$a(c = a.t("kg.KgVarConfigModalTableVarGridMaster.notSort")) ? c : {
12702
12702
  default: () => [c]
12703
12703
  }), createVNode(Select.Option, {
12704
12704
  value: 0
12705
- }, _isSlot$9(u = a.t("kg.asc")) ? u : {
12705
+ }, _isSlot$a(u = a.t("kg.asc")) ? u : {
12706
12706
  default: () => [u]
12707
12707
  }), createVNode(Select.Option, {
12708
12708
  value: 1
12709
- }, _isSlot$9(_ = a.t("kg.desc")) ? _ : {
12709
+ }, _isSlot$a(_ = a.t("kg.desc")) ? _ : {
12710
12710
  default: () => [_]
12711
12711
  })]);
12712
12712
  },
@@ -12783,35 +12783,35 @@ function _useTransferColumns(e, t) {
12783
12783
  let c, u, _, g, v, d, m, p;
12784
12784
  return createVNode(Fragment, null, [createVNode(Select.Option, {
12785
12785
  value: KG__VAR_GRID_DETAIL__DISPLAY_TYPE.DESC
12786
- }, _isSlot$9(c = a.t("kg.KgVarConfigModalTableVarGridMaster.DESC")) ? c : {
12786
+ }, _isSlot$a(c = a.t("kg.KgVarConfigModalTableVarGridMaster.DESC")) ? c : {
12787
12787
  default: () => [c]
12788
12788
  }), createVNode(Select.Option, {
12789
12789
  value: KG__VAR_GRID_DETAIL__DISPLAY_TYPE.YN
12790
- }, _isSlot$9(u = a.t("kg.KgVarConfigModalTableVarGridMaster.YN")) ? u : {
12790
+ }, _isSlot$a(u = a.t("kg.KgVarConfigModalTableVarGridMaster.YN")) ? u : {
12791
12791
  default: () => [u]
12792
12792
  }), createVNode(Select.Option, {
12793
12793
  value: KG__VAR_GRID_DETAIL__DISPLAY_TYPE.PROGRESS
12794
- }, _isSlot$9(_ = a.t("kg.KgVarConfigModalTableVarGridMaster.PROGRESS")) ? _ : {
12794
+ }, _isSlot$a(_ = a.t("kg.KgVarConfigModalTableVarGridMaster.PROGRESS")) ? _ : {
12795
12795
  default: () => [_]
12796
12796
  }), createVNode(Select.Option, {
12797
12797
  value: KG__VAR_GRID_DETAIL__DISPLAY_TYPE.FILE_SIZE
12798
- }, _isSlot$9(g = a.t("kg.KgVarConfigModalTableVarGridMaster.FILE_SIZE")) ? g : {
12798
+ }, _isSlot$a(g = a.t("kg.KgVarConfigModalTableVarGridMaster.FILE_SIZE")) ? g : {
12799
12799
  default: () => [g]
12800
12800
  }), createVNode(Select.Option, {
12801
12801
  value: KG__VAR_GRID_DETAIL__DISPLAY_TYPE.UPDATE_LINK
12802
- }, _isSlot$9(v = a.t("kg.KgVarConfigModalTableVarGridMaster.UPDATE_LINK")) ? v : {
12802
+ }, _isSlot$a(v = a.t("kg.KgVarConfigModalTableVarGridMaster.UPDATE_LINK")) ? v : {
12803
12803
  default: () => [v]
12804
12804
  }), createVNode(Select.Option, {
12805
12805
  value: KG__VAR_GRID_DETAIL__DISPLAY_TYPE.ROUTE_LINK
12806
- }, _isSlot$9(d = a.t("kg.KgVarConfigModalTableVarGridMaster.ROUTE_LINK")) ? d : {
12806
+ }, _isSlot$a(d = a.t("kg.KgVarConfigModalTableVarGridMaster.ROUTE_LINK")) ? d : {
12807
12807
  default: () => [d]
12808
12808
  }), createVNode(Select.Option, {
12809
12809
  value: KG__VAR_GRID_DETAIL__DISPLAY_TYPE.IMAGE
12810
- }, _isSlot$9(m = a.t("kg.KgVarConfigModalTableVarGridMaster.IMAGE")) ? m : {
12810
+ }, _isSlot$a(m = a.t("kg.KgVarConfigModalTableVarGridMaster.IMAGE")) ? m : {
12811
12811
  default: () => [m]
12812
12812
  }), createVNode(Select.Option, {
12813
12813
  value: KG__VAR_GRID_DETAIL__DISPLAY_TYPE.ICON
12814
- }, _isSlot$9(p = a.t("kg.KgVarConfigModalTableVarGridMaster.ICON")) ? p : {
12814
+ }, _isSlot$a(p = a.t("kg.KgVarConfigModalTableVarGridMaster.ICON")) ? p : {
12815
12815
  default: () => [p]
12816
12816
  })]);
12817
12817
  },
@@ -12855,15 +12855,15 @@ function _useTransferColumns(e, t) {
12855
12855
  let c, u, _;
12856
12856
  return createVNode(Fragment, null, [createVNode(Select.Option, {
12857
12857
  value: "center"
12858
- }, _isSlot$9(c = a.t("kg.KgVarConfigModalTableVarGridMaster.center")) ? c : {
12858
+ }, _isSlot$a(c = a.t("kg.KgVarConfigModalTableVarGridMaster.center")) ? c : {
12859
12859
  default: () => [c]
12860
12860
  }), createVNode(Select.Option, {
12861
12861
  value: "left"
12862
- }, _isSlot$9(u = a.t("kg.KgVarConfigModalTableVarGridMaster.left")) ? u : {
12862
+ }, _isSlot$a(u = a.t("kg.KgVarConfigModalTableVarGridMaster.left")) ? u : {
12863
12863
  default: () => [u]
12864
12864
  }), createVNode(Select.Option, {
12865
12865
  value: "right"
12866
- }, _isSlot$9(_ = a.t("kg.KgVarConfigModalTableVarGridMaster.right")) ? _ : {
12866
+ }, _isSlot$a(_ = a.t("kg.KgVarConfigModalTableVarGridMaster.right")) ? _ : {
12867
12867
  default: () => [_]
12868
12868
  })]);
12869
12869
  },
@@ -12967,7 +12967,7 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
12967
12967
  n.kgSearch.onReady(async () => (await n.store.patchVarProfileDetail(n.formID, "frm_id", {
12968
12968
  dft_val: r.formID
12969
12969
  }), !1)), n.kgSubmit.onOpen(async () => {
12970
- var T, E, C, R, k, y, A;
12970
+ var T, E, k, C, R, y, A;
12971
12971
  const p = r.store.getSystemVarGridDetails(r.formID);
12972
12972
  switch (i.value = p ? cloneDeep(toRaw(p)) : [], !0) {
12973
12973
  case n.isCreating.value: {
@@ -12985,15 +12985,15 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
12985
12985
  }
12986
12986
  });
12987
12987
  i.value = i.value.map((O) => {
12988
- var P;
12989
- const F = (P = V == null ? void 0 : V.varGridDetails) == null ? void 0 : P.find((G) => G.var_nam === O.var_nam);
12988
+ var K;
12989
+ const F = (K = V == null ? void 0 : V.varGridDetails) == null ? void 0 : K.find((G) => G.var_nam === O.var_nam);
12990
12990
  return F ? {
12991
12991
  ...O,
12992
12992
  ...F,
12993
12993
  id: O.id
12994
12994
  } : O;
12995
12995
  });
12996
- const I = (R = (C = V == null ? void 0 : V.varGridDetails) == null ? void 0 : C.map((O) => O.var_nam)) != null ? R : [];
12996
+ const I = (C = (k = V == null ? void 0 : V.varGridDetails) == null ? void 0 : k.map((O) => O.var_nam)) != null ? C : [];
12997
12997
  l.value = i.value.filter((O) => I.includes(O.var_nam)).map((O) => O.id);
12998
12998
  } catch (V) {
12999
12999
  throw V;
@@ -13007,7 +13007,7 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
13007
13007
  }
13008
13008
  switch (!0) {
13009
13009
  case n.isCopying.value: {
13010
- n.kgSubmit.formModel.value.grd_var_nam = ((k = n.kgSubmit.formModel.value.grd_var_nam) != null ? k : "") + "_COPY", n.kgSubmit.formModel.value.grd_var_nam_dsc = ((A = (y = n.kgSubmit.formModel.value.grd_var_nam_dsc) != null ? y : n.kgSubmit.formModel.value.grd_var_nam) != null ? A : "") + "_COPY";
13010
+ n.kgSubmit.formModel.value.grd_var_nam = ((R = n.kgSubmit.formModel.value.grd_var_nam) != null ? R : "") + "_COPY", n.kgSubmit.formModel.value.grd_var_nam_dsc = ((A = (y = n.kgSubmit.formModel.value.grd_var_nam_dsc) != null ? y : n.kgSubmit.formModel.value.grd_var_nam) != null ? A : "") + "_COPY";
13011
13011
  break;
13012
13012
  }
13013
13013
  }
@@ -13015,7 +13015,7 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
13015
13015
  }), n.kgSubmit.onBeforeOk(async () => {
13016
13016
  var T, E;
13017
13017
  const p = n.kgSubmit.formModel.value;
13018
- return p.frm_id = r.formID, p.varGridDetails = (E = (T = i.value) == null ? void 0 : T.filter((C) => l.value.includes(C.id))) != null ? E : [], !1;
13018
+ return p.frm_id = r.formID, p.varGridDetails = (E = (T = i.value) == null ? void 0 : T.filter((k) => l.value.includes(k.id))) != null ? E : [], !1;
13019
13019
  }), n.kgSubmit.onOk(async () => (r.requestAll({
13020
13020
  isForceRequest: !0
13021
13021
  }), !1)), n.kgButton.onClick(({
@@ -13081,9 +13081,9 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
13081
13081
  direction: p,
13082
13082
  filteredItems: T,
13083
13083
  selectedKeys: E,
13084
- disabled: C,
13085
- onItemSelectAll: R,
13086
- onItemSelect: k
13084
+ disabled: k,
13085
+ onItemSelectAll: C,
13086
+ onItemSelect: R
13087
13087
  }) => {
13088
13088
  const y = T.sort((A, V) => {
13089
13089
  var I, O;
@@ -13107,10 +13107,10 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
13107
13107
  return p === "right" && (V["kg-host-frm_id"] = r.formID, V["kg-var_name"] = A.var_nam), V;
13108
13108
  },
13109
13109
  rowSelection: g({
13110
- disabled: C,
13110
+ disabled: k,
13111
13111
  selectedKeys: E,
13112
- onItemSelectAll: R,
13113
- onItemSelect: k
13112
+ onItemSelectAll: C,
13113
+ onItemSelect: R
13114
13114
  })
13115
13115
  }, null);
13116
13116
  }
@@ -13121,30 +13121,30 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
13121
13121
  disabled: p,
13122
13122
  selectedKeys: T,
13123
13123
  onItemSelectAll: E,
13124
- onItemSelect: C
13124
+ onItemSelect: k
13125
13125
  }) => ({
13126
- getCheckboxProps: (R) => ({
13127
- disabled: p || R.disabled
13126
+ getCheckboxProps: (C) => ({
13127
+ disabled: p || C.disabled
13128
13128
  }),
13129
- onSelectAll(R, k) {
13130
- const y = k.filter((A) => !A.disabled).map(({
13129
+ onSelectAll(C, R) {
13130
+ const y = R.filter((A) => !A.disabled).map(({
13131
13131
  key: A
13132
13132
  }) => A);
13133
- E(y, R);
13133
+ E(y, C);
13134
13134
  },
13135
13135
  onSelect({
13136
- key: R
13137
- }, k) {
13138
- C(R, k);
13136
+ key: C
13137
+ }, R) {
13138
+ k(C, R);
13139
13139
  },
13140
13140
  selectedRowKeys: T,
13141
13141
  columnWidth: 32
13142
13142
  });
13143
- function v(p, T, E, C) {
13143
+ function v(p, T, E, k) {
13144
13144
  if (!KgDomUtil.isNotClickable(p.target, ["ant-input"]))
13145
- switch (C.length = 0, p.detail) {
13145
+ switch (k.length = 0, p.detail) {
13146
13146
  case 1:
13147
- C[0] = T.id;
13147
+ k[0] = T.id;
13148
13148
  break;
13149
13149
  case 2:
13150
13150
  switch (E) {
@@ -13333,7 +13333,7 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
13333
13333
  }), () => createVNode(KgVar, null, null);
13334
13334
  }
13335
13335
  });
13336
- function _isSlot$8(e) {
13336
+ function _isSlot$9(e) {
13337
13337
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
13338
13338
  }
13339
13339
  const getProps$w = () => ({
@@ -13358,25 +13358,25 @@ const getProps$w = () => ({
13358
13358
  }), g = computed(() => isNil(e.kgDisabled) ? !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value : e.kgDisabled), v = ref(null);
13359
13359
  _useObserveMenuItemColumns(s), ((F = (O = (I = (V = (A = r.option.value) == null ? void 0 : A.KgTable) == null ? void 0 : V.Setting) == null ? void 0 : I.columns) == null ? void 0 : O.dragToSort) == null ? void 0 : F.isOn) === !0 && _useDragToSortRow$1({
13360
13360
  columnsRef: v
13361
- }), watch(s, (P) => {
13362
- P || (o.value = "");
13361
+ }), watch(s, (K) => {
13362
+ K || (o.value = "");
13363
13363
  }, {
13364
13364
  immediate: !0
13365
13365
  });
13366
- function d(P) {
13366
+ function d(K) {
13367
13367
  n.kgTable.patchVarGridDetail({
13368
- varName: P.var_nam,
13368
+ varName: K.var_nam,
13369
13369
  properties: {
13370
- vis_flg: P.vis_flg === 1 ? 0 : 1
13370
+ vis_flg: K.vis_flg === 1 ? 0 : 1
13371
13371
  }
13372
13372
  });
13373
13373
  }
13374
- function m(P) {
13375
- n.store.setCurrentVarGridMasterID(n.formID, P.id);
13374
+ function m(K) {
13375
+ n.store.setCurrentVarGridMasterID(n.formID, K.id);
13376
13376
  }
13377
13377
  async function p() {
13378
- var P;
13379
- if (((P = n.currentVarGridMaster.value) == null ? void 0 : P.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
13378
+ var K;
13379
+ if (((K = n.currentVarGridMaster.value) == null ? void 0 : K.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
13380
13380
  KgUtil.confirm({
13381
13381
  content: r.t("kg.KgVarConfig.canNotUpdateSystemVarGridMaster"),
13382
13382
  okButtonProps: {
@@ -13404,7 +13404,7 @@ const getProps$w = () => ({
13404
13404
  popupClassName: "kg-table--setting--submenu-popup--columns"
13405
13405
  }, {
13406
13406
  default: () => {
13407
- var P;
13407
+ var K;
13408
13408
  return createVNode("div", {
13409
13409
  class: "columns"
13410
13410
  }, [createVNode(Input, {
@@ -13414,15 +13414,15 @@ const getProps$w = () => ({
13414
13414
  }, null), createVNode("ul", {
13415
13415
  ref: v,
13416
13416
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
13417
- }, [(P = n.currentVarGridDetails.value) == null ? void 0 : P.map((G, K) => createVNode("li", {
13417
+ }, [(K = n.currentVarGridDetails.value) == null ? void 0 : K.map((G, w) => createVNode("li", {
13418
13418
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
13419
- onClick: (w) => {
13420
- w.preventDefault(), w.stopPropagation(), d(G);
13419
+ onClick: (P) => {
13420
+ P.preventDefault(), P.stopPropagation(), d(G);
13421
13421
  },
13422
13422
  style: {
13423
13423
  display: i(G, o.value) ? "flex" : "none"
13424
13424
  },
13425
- "kg-index": K,
13425
+ "kg-index": w,
13426
13426
  "kg-var_name": G.var_nam
13427
13427
  }, [createVNode(Checkbox, {
13428
13428
  checked: G.vis_flg === 1,
@@ -13431,32 +13431,32 @@ const getProps$w = () => ({
13431
13431
  default: () => [createVNode("pre", null, [n.t(G.var_nam).value])]
13432
13432
  }), createVNode(HolderOutlined$1, {
13433
13433
  draggable: !0,
13434
- onClick: (w) => {
13435
- w.preventDefault(), w.stopPropagation();
13434
+ onClick: (P) => {
13435
+ P.preventDefault(), P.stopPropagation();
13436
13436
  }
13437
13437
  }, null)]))])]);
13438
13438
  },
13439
13439
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
13440
13440
  });
13441
13441
  }
13442
- function C() {
13442
+ function k() {
13443
13443
  return createVNode(Menu.SubMenu, {
13444
13444
  key: "var-grid-masters",
13445
13445
  title: r.t("kg.KgTable.varGridMasters"),
13446
13446
  popupClassName: "kg-table--setting--submenu-popup--var-grid-masters"
13447
13447
  }, {
13448
13448
  default: () => {
13449
- var K;
13450
- let P, G;
13451
- return createVNode(Fragment, null, [(K = n.varGridMasters.value) == null ? void 0 : K.map((w) => {
13449
+ var w;
13450
+ let K, G;
13451
+ return createVNode(Fragment, null, [(w = n.varGridMasters.value) == null ? void 0 : w.map((P) => {
13452
13452
  var N;
13453
13453
  return createVNode(Menu.Item, {
13454
- key: w.id,
13455
- class: w.id === ((N = n.currentVarGridMaster.value) == null ? void 0 : N.id) ? "selected" : "",
13456
- "kg-var_name": w.grd_var_nam,
13457
- onClick: () => m(w)
13454
+ key: P.id,
13455
+ class: P.id === ((N = n.currentVarGridMaster.value) == null ? void 0 : N.id) ? "selected" : "",
13456
+ "kg-var_name": P.grd_var_nam,
13457
+ onClick: () => m(P)
13458
13458
  }, {
13459
- default: () => [n.t(w.grd_var_nam).value]
13459
+ default: () => [n.t(P.grd_var_nam).value]
13460
13460
  });
13461
13461
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
13462
13462
  key: "save-grid-view",
@@ -13464,8 +13464,8 @@ const getProps$w = () => ({
13464
13464
  icon: createVNode(Icon, {
13465
13465
  icon: "material-symbols:save-outline-rounded"
13466
13466
  }, null)
13467
- }, _isSlot$8(P = r.t("kg.KgTable.saveVarGridMaster")) ? P : {
13468
- default: () => [P]
13467
+ }, _isSlot$9(K = r.t("kg.KgTable.saveVarGridMaster")) ? K : {
13468
+ default: () => [K]
13469
13469
  }), createVNode(Menu.Item, {
13470
13470
  key: "save-grid-view-as",
13471
13471
  onClick: T,
@@ -13475,46 +13475,46 @@ const getProps$w = () => ({
13475
13475
  fontsize: "18px"
13476
13476
  }
13477
13477
  }, null)
13478
- }, _isSlot$8(G = r.t("kg.KgTable.saveVarGridMasterAs")) ? G : {
13478
+ }, _isSlot$9(G = r.t("kg.KgTable.saveVarGridMasterAs")) ? G : {
13479
13479
  default: () => [G]
13480
13480
  })]);
13481
13481
  },
13482
13482
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
13483
13483
  });
13484
13484
  }
13485
- function R() {
13486
- var P, G, K;
13487
- return ((K = (G = (P = r.option.value.KgTable) == null ? void 0 : P.Setting) == null ? void 0 : G.rowHeight) == null ? void 0 : K.on) !== !0 ? null : createVNode(Menu.SubMenu, {
13485
+ function C() {
13486
+ var K, G, w;
13487
+ return ((w = (G = (K = r.option.value.KgTable) == null ? void 0 : K.Setting) == null ? void 0 : G.rowHeight) == null ? void 0 : w.on) !== !0 ? null : createVNode(Menu.SubMenu, {
13488
13488
  key: "row-height",
13489
13489
  title: r.t("kg.KgTable.rowHeight"),
13490
13490
  popupClassName: "kg-table--setting--submenu-popup--row-height"
13491
13491
  }, {
13492
13492
  default: () => {
13493
- let w, N, B;
13493
+ let P, N, B;
13494
13494
  return createVNode(Fragment, null, [createVNode(Menu.Item, {
13495
13495
  key: "L",
13496
13496
  class: c.value === "L" ? "selected" : "",
13497
13497
  onClick: () => n.kgTable.store.setRowHeight(n.formID, "L")
13498
- }, _isSlot$8(w = r.t("kg.KgTable.rowHeightL")) ? w : {
13499
- default: () => [w]
13498
+ }, _isSlot$9(P = r.t("kg.KgTable.rowHeightL")) ? P : {
13499
+ default: () => [P]
13500
13500
  }), createVNode(Menu.Item, {
13501
13501
  key: "M",
13502
13502
  class: c.value === "M" ? "selected" : "",
13503
13503
  onClick: () => n.kgTable.store.setRowHeight(n.formID, "M")
13504
- }, _isSlot$8(N = r.t("kg.KgTable.rowHeightM")) ? N : {
13504
+ }, _isSlot$9(N = r.t("kg.KgTable.rowHeightM")) ? N : {
13505
13505
  default: () => [N]
13506
13506
  }), createVNode(Menu.Item, {
13507
13507
  key: "H",
13508
13508
  class: c.value === "H" ? "selected" : "",
13509
13509
  onClick: () => n.kgTable.store.setRowHeight(n.formID, "H")
13510
- }, _isSlot$8(B = r.t("kg.KgTable.rowHeightH")) ? B : {
13510
+ }, _isSlot$9(B = r.t("kg.KgTable.rowHeightH")) ? B : {
13511
13511
  default: () => [B]
13512
13512
  })]);
13513
13513
  },
13514
13514
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
13515
13515
  });
13516
13516
  }
13517
- function k() {
13517
+ function R() {
13518
13518
  return createVNode(Menu.SubMenu, {
13519
13519
  key: "other",
13520
13520
  title: r.t("kg.KgTable.other"),
@@ -13525,14 +13525,14 @@ const getProps$w = () => ({
13525
13525
  }, {
13526
13526
  default: () => [createVNode(Checkbox, {
13527
13527
  checked: n.kgTable.isShowDescription.value,
13528
- "onUpdate:checked": (P) => n.kgTable.setIsShowDescription(P),
13529
- onClick: (P) => {
13530
- P.stopPropagation();
13528
+ "onUpdate:checked": (K) => n.kgTable.setIsShowDescription(K),
13529
+ onClick: (K) => {
13530
+ K.stopPropagation();
13531
13531
  }
13532
13532
  }, {
13533
13533
  default: () => [createVNode("div", {
13534
- onClick: (P) => {
13535
- P.stopPropagation();
13534
+ onClick: (K) => {
13535
+ K.stopPropagation();
13536
13536
  }
13537
13537
  }, [r.t("kg.KgTable.isShowDescription")])]
13538
13538
  })]
@@ -13542,14 +13542,14 @@ const getProps$w = () => ({
13542
13542
  }
13543
13543
  function y() {
13544
13544
  var G;
13545
- let P;
13545
+ let K;
13546
13546
  return (G = n.formID) != null && G.startsWith("KgVarConfig.") ? null : createVNode(Menu.Item, {
13547
13547
  key: "config-var-grid-master",
13548
13548
  onClick: () => {
13549
13549
  u.value.visible = !0;
13550
13550
  }
13551
- }, _isSlot$8(P = r.t("kg.KgTable.config")) ? P : {
13552
- default: () => [P]
13551
+ }, _isSlot$9(K = r.t("kg.KgTable.config")) ? K : {
13552
+ default: () => [K]
13553
13553
  });
13554
13554
  }
13555
13555
  return () => createVNode(Fragment, null, [createVNode(Dropdown, {
@@ -13562,14 +13562,14 @@ const getProps$w = () => ({
13562
13562
  overlay: () => createVNode(Menu, {
13563
13563
  triggerSubMenuAction: "click",
13564
13564
  openKeys: l.value,
13565
- "onUpdate:openKeys": (P) => l.value = P,
13565
+ "onUpdate:openKeys": (K) => l.value = K,
13566
13566
  selectable: !1
13567
13567
  }, {
13568
- default: () => [E(), R(), C(), k(), y()]
13568
+ default: () => [E(), C(), k(), R(), y()]
13569
13569
  })
13570
13570
  }), u.value.visible && createVNode(KgTableSettingConfigModal, {
13571
13571
  visible: u.value.visible,
13572
- "onUpdate:visible": (P) => u.value.visible = P
13572
+ "onUpdate:visible": (K) => u.value.visible = K
13573
13573
  }, null), _.value.visible && createVNode(KgTableSettingVarGridMasterSaveAs, {
13574
13574
  onKgClose: () => {
13575
13575
  _.value.visible = !1;
@@ -13577,7 +13577,7 @@ const getProps$w = () => ({
13577
13577
  }, null)]);
13578
13578
  }
13579
13579
  });
13580
- function _isSlot$7(e) {
13580
+ function _isSlot$8(e) {
13581
13581
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
13582
13582
  }
13583
13583
  const getProps$v = () => ({
@@ -13599,8 +13599,8 @@ const getProps$v = () => ({
13599
13599
  }), n = computed(() => a.kgTable.getVarGridDetail({
13600
13600
  varName: r.value
13601
13601
  })), i = ref([]), l = computed(() => {
13602
- var p, T, E, C;
13603
- return ((C = (E = (T = (p = t.option.value) == null ? void 0 : p.KgTable) == null ? void 0 : T.HeaderCell) == null ? void 0 : E.contextMenu) == null ? void 0 : C.isOn) !== !0;
13602
+ var p, T, E, k;
13603
+ return ((k = (E = (T = (p = t.option.value) == null ? void 0 : p.KgTable) == null ? void 0 : T.HeaderCell) == null ? void 0 : E.contextMenu) == null ? void 0 : k.isOn) !== !0;
13604
13604
  });
13605
13605
  function s() {
13606
13606
  var p, T, E;
@@ -13781,11 +13781,11 @@ const getProps$v = () => ({
13781
13781
  popupClassName: "kg-table--header-cell--context-menu--align--submenu-popup"
13782
13782
  }, {
13783
13783
  default: () => {
13784
- var C, R, k;
13784
+ var k, C, R;
13785
13785
  let p, T, E;
13786
13786
  return createVNode(Fragment, null, [createVNode(Menu.Item, {
13787
13787
  key: "L",
13788
- class: ((C = n.value) == null ? void 0 : C.align) === KG__VAR_GRID_DETAIL__ALIGN.LEFT ? "selected" : "",
13788
+ class: ((k = n.value) == null ? void 0 : k.align) === KG__VAR_GRID_DETAIL__ALIGN.LEFT ? "selected" : "",
13789
13789
  onClick: () => {
13790
13790
  a.kgTable.patchVarGridDetail({
13791
13791
  varName: r.value,
@@ -13794,11 +13794,11 @@ const getProps$v = () => ({
13794
13794
  }
13795
13795
  });
13796
13796
  }
13797
- }, _isSlot$7(p = t.t("kg.KgTableHeaderCell.alignLeft")) ? p : {
13797
+ }, _isSlot$8(p = t.t("kg.KgTableHeaderCell.alignLeft")) ? p : {
13798
13798
  default: () => [p]
13799
13799
  }), createVNode(Menu.Item, {
13800
13800
  key: "M",
13801
- class: ((R = n.value) == null ? void 0 : R.align) === KG__VAR_GRID_DETAIL__ALIGN.CENTER ? "selected" : "",
13801
+ class: ((C = n.value) == null ? void 0 : C.align) === KG__VAR_GRID_DETAIL__ALIGN.CENTER ? "selected" : "",
13802
13802
  onClick: () => {
13803
13803
  a.kgTable.patchVarGridDetail({
13804
13804
  varName: r.value,
@@ -13807,11 +13807,11 @@ const getProps$v = () => ({
13807
13807
  }
13808
13808
  });
13809
13809
  }
13810
- }, _isSlot$7(T = t.t("kg.KgTableHeaderCell.alignCenter")) ? T : {
13810
+ }, _isSlot$8(T = t.t("kg.KgTableHeaderCell.alignCenter")) ? T : {
13811
13811
  default: () => [T]
13812
13812
  }), createVNode(Menu.Item, {
13813
13813
  key: "H",
13814
- class: ((k = n.value) == null ? void 0 : k.align) === KG__VAR_GRID_DETAIL__ALIGN.RIGHT ? "selected" : "",
13814
+ class: ((R = n.value) == null ? void 0 : R.align) === KG__VAR_GRID_DETAIL__ALIGN.RIGHT ? "selected" : "",
13815
13815
  onClick: () => {
13816
13816
  a.kgTable.patchVarGridDetail({
13817
13817
  varName: r.value,
@@ -13820,7 +13820,7 @@ const getProps$v = () => ({
13820
13820
  }
13821
13821
  });
13822
13822
  }
13823
- }, _isSlot$7(E = t.t("kg.KgTableHeaderCell.alignRight")) ? E : {
13823
+ }, _isSlot$8(E = t.t("kg.KgTableHeaderCell.alignRight")) ? E : {
13824
13824
  default: () => [E]
13825
13825
  })]);
13826
13826
  },
@@ -13855,7 +13855,7 @@ const getProps$v = () => ({
13855
13855
  };
13856
13856
  }
13857
13857
  });
13858
- function _isSlot$6(e) {
13858
+ function _isSlot$7(e) {
13859
13859
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
13860
13860
  }
13861
13861
  const getProps$u = () => ({
@@ -13912,13 +13912,13 @@ const getProps$u = () => ({
13912
13912
  onClick: l,
13913
13913
  class: "btn-clear-check",
13914
13914
  type: "link"
13915
- }, _isSlot$6(c = r.t("kg.KgTableInfo.clearCheck")) ? c : {
13915
+ }, _isSlot$7(c = r.t("kg.KgTableInfo.clearCheck")) ? c : {
13916
13916
  default: () => [c]
13917
13917
  }), e.kgShowLocate && createVNode(Button, {
13918
13918
  onClick: o,
13919
13919
  class: "btn-locate-check",
13920
13920
  type: "link"
13921
- }, _isSlot$6(u = r.t("kg.KgTableInfo.locate")) ? u : {
13921
+ }, _isSlot$7(u = r.t("kg.KgTableInfo.locate")) ? u : {
13922
13922
  default: () => [u]
13923
13923
  })]
13924
13924
  })]), e.kgShowClearTable && createVNode(Button, {
@@ -13926,7 +13926,7 @@ const getProps$u = () => ({
13926
13926
  onClick: s,
13927
13927
  class: "btn-clear-table",
13928
13928
  danger: !0
13929
- }, _isSlot$6(_ = r.t("kg.KgTableInfo.clearTable")) ? _ : {
13929
+ }, _isSlot$7(_ = r.t("kg.KgTableInfo.clearTable")) ? _ : {
13930
13930
  default: () => [_]
13931
13931
  })]);
13932
13932
  };
@@ -13955,7 +13955,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
13955
13955
  });
13956
13956
  }
13957
13957
  });
13958
- function _isSlot$5(e) {
13958
+ function _isSlot$6(e) {
13959
13959
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
13960
13960
  }
13961
13961
  const getProps$s = () => ({
@@ -14109,7 +14109,7 @@ const getProps$s = () => ({
14109
14109
  const g = kgVar.t(_.varName).value;
14110
14110
  return g ? createVNode(Tag, {
14111
14111
  color: (a = _.color) != null ? a : "default"
14112
- }, _isSlot$5(g) ? g : {
14112
+ }, _isSlot$6(g) ? g : {
14113
14113
  default: () => [g]
14114
14114
  }) : renderText();
14115
14115
  } else
@@ -14294,102 +14294,102 @@ function _useColumns(e) {
14294
14294
  align: "center",
14295
14295
  className: "kg-table--body-cell--index",
14296
14296
  customRender: ({
14297
- index: C
14298
- }) => C + 1
14299
- }, ...(E = d == null ? void 0 : d.map((C, R) => {
14300
- var K, w, N;
14301
- const k = C.var_nam;
14297
+ index: k
14298
+ }) => k + 1
14299
+ }, ...(E = d == null ? void 0 : d.map((k, C) => {
14300
+ var w, P, N;
14301
+ const R = k.var_nam;
14302
14302
  function y() {
14303
- return C.width === "auto" ? "auto" : Number(C.width) || KG_TABLE_TD_DEFAULT_WIDTH;
14303
+ return k.width === "auto" ? "auto" : Number(k.width) || KG_TABLE_TD_DEFAULT_WIDTH;
14304
14304
  }
14305
14305
  function A() {
14306
- return a.t(k).value;
14306
+ return a.t(R).value;
14307
14307
  }
14308
14308
  function V() {
14309
- if (C.fix_left_flg === 1)
14309
+ if (k.fix_left_flg === 1)
14310
14310
  return "left";
14311
- if (C.fix_right_flg === 1)
14311
+ if (k.fix_right_flg === 1)
14312
14312
  return "right";
14313
14313
  }
14314
14314
  function I() {
14315
14315
  var B, D, U, M;
14316
- return !(C.ord_flg !== 1 || (D = (B = t == null ? void 0 : t.value) == null ? void 0 : B.KgTable) != null && D.kgDisabled || isNil((M = (U = t == null ? void 0 : t.value) == null ? void 0 : U.KgTable) == null ? void 0 : M.kgDisabled) && e.kgDisabled || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value || _.length <= 0);
14316
+ return !(k.ord_flg !== 1 || (D = (B = t == null ? void 0 : t.value) == null ? void 0 : B.KgTable) != null && D.kgDisabled || isNil((M = (U = t == null ? void 0 : t.value) == null ? void 0 : U.KgTable) == null ? void 0 : M.kgDisabled) && e.kgDisabled || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value || _.length <= 0);
14317
14317
  }
14318
14318
  function O() {
14319
14319
  var B, D, U, M, x, W;
14320
- if (((D = (B = u.option.value.KgTable) == null ? void 0 : B.filter) == null ? void 0 : D.on) === !0 && C.filter_flag === 1 && !((M = (U = t == null ? void 0 : t.value) == null ? void 0 : U.KgTable) != null && M.kgDisabled) && !(isNil((W = (x = t == null ? void 0 : t.value) == null ? void 0 : x.KgTable) == null ? void 0 : W.kgDisabled) && e.kgDisabled) && !(a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value) && !(_.length <= 0))
14320
+ if (((D = (B = u.option.value.KgTable) == null ? void 0 : B.filter) == null ? void 0 : D.on) === !0 && k.filter_flag === 1 && !((M = (U = t == null ? void 0 : t.value) == null ? void 0 : U.KgTable) != null && M.kgDisabled) && !(isNil((W = (x = t == null ? void 0 : t.value) == null ? void 0 : x.KgTable) == null ? void 0 : W.kgDisabled) && e.kgDisabled) && !(a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value) && !(_.length <= 0))
14321
14321
  return uniqBy(_.map((z) => {
14322
14322
  var J;
14323
14323
  return {
14324
- value: (J = z == null ? void 0 : z[k]) != null ? J : "",
14324
+ value: (J = z == null ? void 0 : z[R]) != null ? J : "",
14325
14325
  text: r({
14326
14326
  column: {
14327
- dataIndex: k
14327
+ dataIndex: R
14328
14328
  },
14329
- index: R,
14329
+ index: C,
14330
14330
  record: z,
14331
- value: z == null ? void 0 : z[k]
14331
+ value: z == null ? void 0 : z[R]
14332
14332
  }, KG_TABLE_CELL_CONTEXT.TABLE_FILTER)
14333
14333
  };
14334
14334
  }), "value");
14335
14335
  }
14336
14336
  function F() {
14337
14337
  var B, D, U;
14338
- return ((D = (B = u.option.value.KgTable) == null ? void 0 : B.filter) == null ? void 0 : D.on) !== !0 ? null : ((U = n.value) == null ? void 0 : U[k]) || null;
14338
+ return ((D = (B = u.option.value.KgTable) == null ? void 0 : B.filter) == null ? void 0 : D.on) !== !0 ? null : ((U = n.value) == null ? void 0 : U[R]) || null;
14339
14339
  }
14340
- function P() {
14341
- return ["left", "center", "right"].includes(C.align || "") ? C.align : "left";
14340
+ function K() {
14341
+ return ["left", "center", "right"].includes(k.align || "") ? k.align : "left";
14342
14342
  }
14343
14343
  const G = y();
14344
- switch (C.ord) {
14344
+ switch (k.ord) {
14345
14345
  case 0:
14346
14346
  (!i.value.field || !i.value.order) && (i.value = {
14347
- field: k,
14347
+ field: R,
14348
14348
  order: "ascend"
14349
14349
  });
14350
14350
  break;
14351
14351
  case 1:
14352
14352
  (!i.value.field || !i.value.order) && (i.value = {
14353
- field: k,
14353
+ field: R,
14354
14354
  order: "descend"
14355
14355
  });
14356
14356
  break;
14357
14357
  }
14358
14358
  return {
14359
- key: k,
14360
- dataIndex: k,
14359
+ key: R,
14360
+ dataIndex: R,
14361
14361
  title: A(),
14362
14362
  width: G,
14363
14363
  resizable: typeof G == "number",
14364
14364
  minWidth: KG_TABLE_TD_MIN_WIDTH,
14365
14365
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
14366
- align: P(),
14366
+ align: K(),
14367
14367
  fixed: V(),
14368
14368
  sorter: I(),
14369
- sortOrder: ((K = i.value) == null ? void 0 : K.field) === k && (N = (w = i.value) == null ? void 0 : w.order) != null ? N : null,
14369
+ sortOrder: ((w = i.value) == null ? void 0 : w.field) === R && (N = (P = i.value) == null ? void 0 : P.order) != null ? N : null,
14370
14370
  filteredValue: F(),
14371
14371
  filters: O(),
14372
- onFilter: (B, D) => B === "" ? isNil(D == null ? void 0 : D[k]) || (D == null ? void 0 : D[k]) === "" : (D == null ? void 0 : D[k]) === B,
14372
+ onFilter: (B, D) => B === "" ? isNil(D == null ? void 0 : D[R]) || (D == null ? void 0 : D[R]) === "" : (D == null ? void 0 : D[R]) === B,
14373
14373
  customHeaderCell: () => ({
14374
14374
  "kg-form_id": a.formID,
14375
- "kg-var_name": k,
14375
+ "kg-var_name": R,
14376
14376
  draggable: !0
14377
14377
  }),
14378
14378
  customCell: (B) => {
14379
14379
  var W, z, J;
14380
14380
  const D = B[a.kgTable.idKey.value], U = (W = a.kgTable.selectedRow.value) == null ? void 0 : W[a.kgTable.idKey.value], M = a.kgSubmit.currentVarSubmitConfig$DisplayType.value, x = (J = a.kgSubmit.getVarSubmitDetails({
14381
14381
  buttonVarName: (z = a.kgButton.currentButton.value) == null ? void 0 : z.var_nam,
14382
- varName: k
14382
+ varName: R
14383
14383
  })[0]) != null ? J : null;
14384
14384
  return {
14385
14385
  "kg-form_id": a.formID,
14386
- "kg-var_name": k,
14386
+ "kg-var_name": R,
14387
14387
  class: M === KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE.TABLE && D === U && !!x ? "submitting" : ""
14388
14388
  };
14389
14389
  }
14390
14390
  };
14391
14391
  })) != null ? E : []];
14392
- return (v === 0 || g > v && !(d != null && d.find((C) => C.width === "auto"))) && m.push({
14392
+ return (v === 0 || g > v && !(d != null && d.find((k) => k.width === "auto"))) && m.push({
14393
14393
  width: "auto",
14394
14394
  customRender: () => null
14395
14395
  }), m;
@@ -14603,11 +14603,11 @@ const KgTable$1 = "", getProps$r = () => ({
14603
14603
  if ($[0] === i.formID) {
14604
14604
  const H = $[1], q = $[2], Q = H[i.kgTable.idKey.value];
14605
14605
  switch (!0) {
14606
- case (q && !P.value.includes(Q)):
14607
- x([...P.value, Q]);
14606
+ case (q && !K.value.includes(Q)):
14607
+ x([...K.value, Q]);
14608
14608
  break;
14609
- case (!q && P.value.includes(Q)):
14610
- x(without$1(P.value, Q));
14609
+ case (!q && K.value.includes(Q)):
14610
+ x(without$1(K.value, Q));
14611
14611
  break;
14612
14612
  }
14613
14613
  }
@@ -14651,19 +14651,19 @@ const KgTable$1 = "", getProps$r = () => ({
14651
14651
  ...KgVarUtil.parseRequestParamsToJSON((re = (X = i.varGridConfig.value) == null ? void 0 : X.cmd_prm) != null ? re : "")
14652
14652
  };
14653
14653
  return ((te = i.varGridConfig.value) == null ? void 0 : te.convert_sort_field_to_under_score_flg) === 1 && L.column && (L.column = snakeCase$1(L.column)), L;
14654
- }), C = computed(() => {
14654
+ }), k = computed(() => {
14655
14655
  var L, $, H, q;
14656
14656
  if (!isNil(($ = (L = r == null ? void 0 : r.value) == null ? void 0 : L.KgTable) == null ? void 0 : $.kgDisabled))
14657
14657
  return (q = (H = r == null ? void 0 : r.value) == null ? void 0 : H.KgTable) == null ? void 0 : q.kgDisabled;
14658
14658
  if (!isNil(e.kgDisabled))
14659
14659
  return e.kgDisabled;
14660
- }), R = computed(() => {
14660
+ }), C = computed(() => {
14661
14661
  var L, $, H, q;
14662
14662
  if (!isNil(($ = (L = r == null ? void 0 : r.value) == null ? void 0 : L.KgTable) == null ? void 0 : $.kgCheckboxDisabled))
14663
14663
  return (q = (H = r == null ? void 0 : r.value) == null ? void 0 : H.KgTable) == null ? void 0 : q.kgCheckboxDisabled;
14664
14664
  if (!isNil(e.kgCheckboxDisabled))
14665
14665
  return e.kgCheckboxDisabled;
14666
- }), k = computed(() => !!C.value || g.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value), y = computed(() => !!C.value || g.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || G.total === 0), A = computed(() => {
14666
+ }), R = computed(() => !!k.value || g.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value), y = computed(() => !!k.value || g.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || G.total === 0), A = computed(() => {
14667
14667
  var L;
14668
14668
  return !!((L = a == null ? void 0 : a.KgTable) != null && L.expandedRowRender);
14669
14669
  }), V = computed(() => {
@@ -14675,12 +14675,12 @@ const KgTable$1 = "", getProps$r = () => ({
14675
14675
  fixed: "left",
14676
14676
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
14677
14677
  hideSelectAll: !i.kgTable.isMultiSelect.value,
14678
- selectedRowKeys: P,
14678
+ selectedRowKeys: K,
14679
14679
  preserveSelectedRowKeys: !1,
14680
14680
  getCheckboxProps: (L) => {
14681
14681
  var $;
14682
14682
  return {
14683
- disabled: !!C.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || !!(($ = R.value) != null && $.call(R, L))
14683
+ disabled: !!k.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || !!(($ = C.value) != null && $.call(C, L))
14684
14684
  };
14685
14685
  },
14686
14686
  onSelect: (L) => W(L),
@@ -14705,12 +14705,12 @@ const KgTable$1 = "", getProps$r = () => ({
14705
14705
  var $;
14706
14706
  let L = "kg-table-bottom";
14707
14707
  return (($ = i.varGridConfig.value) == null ? void 0 : $.show_bottom_border_flg) === 1 && (L += " kg-table-bottom--border"), L;
14708
- }), P = (Y = i.kgTable.store.getSelectedRowKeys(i.formID)) != null ? Y : ref([]), G = reactive({
14708
+ }), K = (Y = i.kgTable.store.getSelectedRowKeys(i.formID)) != null ? Y : ref([]), G = reactive({
14709
14709
  pageIndex: 1,
14710
14710
  pageSize: 10,
14711
14711
  total: 0
14712
- }), K = watch(i.kgTable.pageSizeOption, (L) => {
14713
- L && (setTimeout(() => K()), G.pageSize = L, i.kgTable.store.emit(i.formID, "ready", {}), i.kgTable.store.setIsReady(i.formID, !0));
14712
+ }), w = watch(i.kgTable.pageSizeOption, (L) => {
14713
+ L && (setTimeout(() => w()), G.pageSize = L, i.kgTable.store.emit(i.formID, "ready", {}), i.kgTable.store.setIsReady(i.formID, !0));
14714
14714
  }, {
14715
14715
  immediate: !0
14716
14716
  });
@@ -14731,7 +14731,7 @@ const KgTable$1 = "", getProps$r = () => ({
14731
14731
  }), watch(i.isCreating, (L, $) => {
14732
14732
  L === !0 ? B() : L === !1 && $ === !0 && D();
14733
14733
  });
14734
- function w(L) {
14734
+ function P(L) {
14735
14735
  (L.ctrlKey || L.shiftKey) && (l.value = !0);
14736
14736
  }
14737
14737
  function N(L) {
@@ -14770,7 +14770,7 @@ const KgTable$1 = "", getProps$r = () => ({
14770
14770
  Q.removeAllRanges();
14771
14771
  else
14772
14772
  return;
14773
- if (!q && !!C.value || i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value) {
14773
+ if (!q && !!k.value || i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value) {
14774
14774
  ____DEBUG____(`${i.formID} | KgTable | onRowClick() | \u8868\u683C\u7981\u7528/\u6B63\u5728\u589E\u5220\u6539\u590D.`, {
14775
14775
  param: L
14776
14776
  });
@@ -14811,11 +14811,11 @@ const KgTable$1 = "", getProps$r = () => ({
14811
14811
  }
14812
14812
  case ($ == null ? void 0 : $.ctrlKey):
14813
14813
  case ($ == null ? void 0 : $.metaKey): {
14814
- P.value.includes(H[X]) ? (____DEBUG____(`${i.formID} | KgTable | onRowClick() | CTRL \u79FB\u9664\u4E00\u884C\u52FE\u9009.`, {
14814
+ K.value.includes(H[X]) ? (____DEBUG____(`${i.formID} | KgTable | onRowClick() | CTRL \u79FB\u9664\u4E00\u884C\u52FE\u9009.`, {
14815
14815
  row: H
14816
- }), P.value = without$1(P.value, H[X])) : (____DEBUG____(`${i.formID} | KgTable | onRowClick() | CTRL \u6DFB\u52A0\u4E00\u884C\u52FE\u9009.`, {
14816
+ }), K.value = without$1(K.value, H[X])) : (____DEBUG____(`${i.formID} | KgTable | onRowClick() | CTRL \u6DFB\u52A0\u4E00\u884C\u52FE\u9009.`, {
14817
14817
  row: H
14818
- }), P.value = [...(ee = P.value) != null ? ee : [], H[X]]), i.kgTable.store.setSelectedRows(i.formID, P.value.map((re) => {
14818
+ }), K.value = [...(ee = K.value) != null ? ee : [], H[X]]), i.kgTable.store.setSelectedRows(i.formID, K.value.map((re) => {
14819
14819
  var te;
14820
14820
  return (te = i.kgTable.datas.value) == null ? void 0 : te.find((ne) => ne[X] === re);
14821
14821
  }).filter((re) => !!re));
@@ -14918,7 +14918,7 @@ const KgTable$1 = "", getProps$r = () => ({
14918
14918
  } = m(ne), he = await i.kgTable.store.emit(i.formID, "beforeSetDatas", {
14919
14919
  datas: ce,
14920
14920
  total: fe
14921
- }), be = cloneDeep(toRaw(P.value));
14921
+ }), be = cloneDeep(toRaw(K.value));
14922
14922
  i.kgTable.store.setDatas({
14923
14923
  frmId: i.formID,
14924
14924
  datas: ce.value,
@@ -14953,15 +14953,15 @@ const KgTable$1 = "", getProps$r = () => ({
14953
14953
  const $ = i.kgTable.idKey.value, H = L[$];
14954
14954
  switch (i.kgTable.isMultiSelect.value) {
14955
14955
  case !0: {
14956
- P.value.includes(H) ? P.value = without$1(P.value, H) : P.value = [...(q = P.value) != null ? q : [], H];
14956
+ K.value.includes(H) ? K.value = without$1(K.value, H) : K.value = [...(q = K.value) != null ? q : [], H];
14957
14957
  break;
14958
14958
  }
14959
14959
  case !1: {
14960
- (Q = P.value) != null && Q.includes(H) ? P.value = [] : P.value = [H];
14960
+ (Q = K.value) != null && Q.includes(H) ? K.value = [] : K.value = [H];
14961
14961
  break;
14962
14962
  }
14963
14963
  }
14964
- i.kgTable.store.setSelectedRows(i.formID, P.value.map((Z) => {
14964
+ i.kgTable.store.setSelectedRows(i.formID, K.value.map((Z) => {
14965
14965
  var ee;
14966
14966
  return (ee = i.kgTable.datas.value) == null ? void 0 : ee.find((X) => X[$] === Z);
14967
14967
  }).filter((Z) => !!Z));
@@ -15007,7 +15007,7 @@ const KgTable$1 = "", getProps$r = () => ({
15007
15007
  } = L;
15008
15008
  return createVNode(KgTableHeaderCell, {
15009
15009
  column: $,
15010
- kgDisabled: C.value
15010
+ kgDisabled: k.value
15011
15011
  }, null);
15012
15012
  }
15013
15013
  function _e() {
@@ -15046,9 +15046,9 @@ const KgTable$1 = "", getProps$r = () => ({
15046
15046
  return !i.kgTable.isAutoRequest.value && !i.kgTable.store.getIsRequested(i.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
15047
15047
  }
15048
15048
  return onMounted(() => {
15049
- window.addEventListener("keydown", w), window.addEventListener("keyup", N);
15049
+ window.addEventListener("keydown", P), window.addEventListener("keyup", N);
15050
15050
  }), onUnmounted(() => {
15051
- i.kgTable.store.dispose(i.formID), window.removeEventListener("keydown", w), window.removeEventListener("keyup", N);
15051
+ i.kgTable.store.dispose(i.formID), window.removeEventListener("keydown", P), window.removeEventListener("keyup", N);
15052
15052
  }), () => {
15053
15053
  var L, $, H;
15054
15054
  return createVNode("div", {
@@ -15092,11 +15092,11 @@ const KgTable$1 = "", getProps$r = () => ({
15092
15092
  }, [createVNode("div", {
15093
15093
  class: "left"
15094
15094
  }, [i.kgTable.isShowBottomLeft.value && createVNode(KgTableInfo, {
15095
- kgShowClearCheck: P.value.length > 0,
15095
+ kgShowClearCheck: K.value.length > 0,
15096
15096
  kgShowClearTable: G.total > 0,
15097
- kgShowLocate: P.value.length > 0,
15098
- kgTotal: P.value.length,
15099
- kgDisabled: k.value
15097
+ kgShowLocate: K.value.length > 0,
15098
+ kgTotal: K.value.length,
15099
+ kgDisabled: R.value
15100
15100
  }, null)]), createVNode("div", {
15101
15101
  class: "right"
15102
15102
  }, [i.kgTable.isShowBottomRight.value && createVNode(Pagination, {
@@ -16972,7 +16972,7 @@ const getProps$q = () => ({}), KgVarConfigModalButtonVarButton = defineComponent
16972
16972
  }, null);
16973
16973
  }
16974
16974
  });
16975
- function _isSlot$4(e) {
16975
+ function _isSlot$5(e) {
16976
16976
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
16977
16977
  }
16978
16978
  const leftVarProfileDetailColumns = (e) => {
@@ -17153,7 +17153,7 @@ const leftVarProfileDetailColumns = (e) => {
17153
17153
  }, {
17154
17154
  default: () => range$1(1, 25).map((o) => createVNode(Select.Option, {
17155
17155
  value: o
17156
- }, _isSlot$4(o) ? o : {
17156
+ }, _isSlot$5(o) ? o : {
17157
17157
  default: () => [o]
17158
17158
  })),
17159
17159
  suffixIcon: () => createVNode(CaretDownOutlined$1, {
@@ -17256,7 +17256,7 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
17256
17256
  n.kgSearch.onReady(async () => (await n.store.patchVarProfileDetail(n.formID, "frm_id", {
17257
17257
  dft_val: r.formID
17258
17258
  }), !1)), n.kgSubmit.onOpen(async () => {
17259
- var m, p, T, E, C, R;
17259
+ var m, p, T, E, k, C;
17260
17260
  const d = r.store.getSystemVarProfileDetails(r.formID);
17261
17261
  switch (i.value = d ? cloneDeep(toRaw(d)) : [], !0) {
17262
17262
  case n.isCreating.value: {
@@ -17268,24 +17268,24 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
17268
17268
  if ((m = n.kgTable.selectedRow.value) != null && m.id)
17269
17269
  try {
17270
17270
  n.kgSubmit.store.setIsLoading(n.formID, !0);
17271
- const k = await QueryByID({
17271
+ const R = await QueryByID({
17272
17272
  params: {
17273
17273
  id: n.kgTable.selectedRow.value.id
17274
17274
  }
17275
17275
  });
17276
17276
  i.value = i.value.map((A) => {
17277
17277
  var I;
17278
- const V = (I = k == null ? void 0 : k.varProfileDetails) == null ? void 0 : I.find((O) => O.var_nam === A.var_nam);
17278
+ const V = (I = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : I.find((O) => O.var_nam === A.var_nam);
17279
17279
  return V ? {
17280
17280
  ...A,
17281
17281
  ...V,
17282
17282
  id: A.id
17283
17283
  } : A;
17284
17284
  });
17285
- const y = (T = (p = k == null ? void 0 : k.varProfileDetails) == null ? void 0 : p.map((A) => A.var_nam)) != null ? T : [];
17285
+ const y = (T = (p = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : p.map((A) => A.var_nam)) != null ? T : [];
17286
17286
  l.value = i.value.filter((A) => y.includes(A.var_nam)).map((A) => A.id);
17287
- } catch (k) {
17288
- throw k;
17287
+ } catch (R) {
17288
+ throw R;
17289
17289
  } finally {
17290
17290
  n.kgSubmit.store.setIsLoading(n.formID, !1);
17291
17291
  }
@@ -17296,7 +17296,7 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
17296
17296
  }
17297
17297
  switch (!0) {
17298
17298
  case n.isCopying.value: {
17299
- n.kgSubmit.formModel.value.prf_var_nam = ((E = n.kgSubmit.formModel.value.prf_var_nam) != null ? E : "") + "_COPY", n.kgSubmit.formModel.value.prf_var_nam_dsc = ((R = (C = n.kgSubmit.formModel.value.prf_var_nam_dsc) != null ? C : n.kgSubmit.formModel.value.prf_var_nam) != null ? R : "") + "_COPY";
17299
+ n.kgSubmit.formModel.value.prf_var_nam = ((E = n.kgSubmit.formModel.value.prf_var_nam) != null ? E : "") + "_COPY", n.kgSubmit.formModel.value.prf_var_nam_dsc = ((C = (k = n.kgSubmit.formModel.value.prf_var_nam_dsc) != null ? k : n.kgSubmit.formModel.value.prf_var_nam) != null ? C : "") + "_COPY";
17300
17300
  break;
17301
17301
  }
17302
17302
  }
@@ -17368,24 +17368,24 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
17368
17368
  selectedKeys: p,
17369
17369
  disabled: T,
17370
17370
  onItemSelectAll: E,
17371
- onItemSelect: C
17371
+ onItemSelect: k
17372
17372
  }) => {
17373
- var k, y;
17374
- const R = m.sort((A, V) => {
17373
+ var R, y;
17374
+ const C = m.sort((A, V) => {
17375
17375
  var I, O;
17376
17376
  return ((I = A.srtseq) != null ? I : 0) - ((O = V.srtseq) != null ? O : 0);
17377
17377
  });
17378
- return d === "right" && (s.value = R), createVNode(Table, {
17378
+ return d === "right" && (s.value = C), createVNode(Table, {
17379
17379
  pagination: !1,
17380
17380
  class: "kg-flex-table",
17381
17381
  size: "small",
17382
17382
  scroll: {
17383
- x: d === "left" ? "370px" : `${(((y = (k = a.option.value.KgSearch) == null ? void 0 : k.dynamicQuery) == null ? void 0 : y.on) !== !0 ? 1192 - 150 : 1192) + 32}px`,
17383
+ x: d === "left" ? "370px" : `${(((y = (R = a.option.value.KgSearch) == null ? void 0 : R.dynamicQuery) == null ? void 0 : y.on) !== !0 ? 1192 - 150 : 1192) + 32}px`,
17384
17384
  y: "auto"
17385
17385
  },
17386
17386
  columns: d === "left" ? leftVarProfileDetailColumns(t) : rightVarProfileDetailColumns(t),
17387
17387
  rowKey: "id",
17388
- dataSource: R,
17388
+ dataSource: C,
17389
17389
  customRow: (A) => {
17390
17390
  let V = {
17391
17391
  onClick: (I) => _(I, A, d, p)
@@ -17396,7 +17396,7 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
17396
17396
  disabled: T,
17397
17397
  selectedKeys: p,
17398
17398
  onItemSelectAll: E,
17399
- onItemSelect: C
17399
+ onItemSelect: k
17400
17400
  })
17401
17401
  }, null);
17402
17402
  }
@@ -17412,16 +17412,16 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
17412
17412
  getCheckboxProps: (E) => ({
17413
17413
  disabled: d || E.disabled
17414
17414
  }),
17415
- onSelectAll(E, C) {
17416
- const R = C.filter((k) => !k.disabled).map(({
17417
- key: k
17418
- }) => k);
17419
- p(R, E);
17415
+ onSelectAll(E, k) {
17416
+ const C = k.filter((R) => !R.disabled).map(({
17417
+ key: R
17418
+ }) => R);
17419
+ p(C, E);
17420
17420
  },
17421
17421
  onSelect({
17422
17422
  key: E
17423
- }, C) {
17424
- T(E, C);
17423
+ }, k) {
17424
+ T(E, k);
17425
17425
  },
17426
17426
  selectedRowKeys: m,
17427
17427
  columnWidth: 32
@@ -18614,26 +18614,26 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
18614
18614
  }
18615
18615
  }
18616
18616
  })), o = debounce(async (c) => {
18617
- var _, g, v, d, m, p, T, E, C;
18617
+ var _, g, v, d, m, p, T, E, k;
18618
18618
  const {
18619
18619
  lookupID: u
18620
18620
  } = c != null ? c : {};
18621
18621
  if (u) {
18622
18622
  KgUtil.showLoading();
18623
18623
  try {
18624
- const R = await GetAll({
18624
+ const C = await GetAll({
18625
18625
  params: {
18626
18626
  frm_id: u
18627
18627
  }
18628
- }), k = (m = (d = ((_ = R.varGridMasters) == null ? void 0 : _.find((y) => y.def_flg === 1)) || ((g = R.varGridMasters) == null ? void 0 : g.find((y) => y.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((v = R.varGridMasters) == null ? void 0 : v.find(() => !0))) == null ? void 0 : d.id) != null ? m : null;
18629
- l.value = uniq(compact((C = (E = (T = (p = R.varGridMasters) == null ? void 0 : p.find((y) => y.id === k)) == null ? void 0 : T.varGridDetails) == null ? void 0 : E.map((y) => {
18628
+ }), R = (m = (d = ((_ = C.varGridMasters) == null ? void 0 : _.find((y) => y.def_flg === 1)) || ((g = C.varGridMasters) == null ? void 0 : g.find((y) => y.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((v = C.varGridMasters) == null ? void 0 : v.find(() => !0))) == null ? void 0 : d.id) != null ? m : null;
18629
+ l.value = uniq(compact((k = (E = (T = (p = C.varGridMasters) == null ? void 0 : p.find((y) => y.id === R)) == null ? void 0 : T.varGridDetails) == null ? void 0 : E.map((y) => {
18630
18630
  var A;
18631
18631
  return (A = y.var_nam) != null ? A : "";
18632
- })) != null ? C : [])), r.store.patchVarPossibilityCommandParameter(r.formID, "ret_fld", {
18632
+ })) != null ? k : [])), r.store.patchVarPossibilityCommandParameter(r.formID, "ret_fld", {
18633
18633
  __KG__TIMESTAMP__: Date.now()
18634
18634
  });
18635
- } catch (R) {
18636
- ____ERROR____(R.message);
18635
+ } catch (C) {
18636
+ ____ERROR____(C.message);
18637
18637
  } finally {
18638
18638
  KgUtil.hideLoading();
18639
18639
  }
@@ -19661,6 +19661,7 @@ const useKgVarStore = defineStore("KgVar", {
19661
19661
  varConfigLookupMap: /* @__PURE__ */ new Map(),
19662
19662
  varConfigPossibilityMap: /* @__PURE__ */ new Map(),
19663
19663
  varConfigTipMap: /* @__PURE__ */ new Map(),
19664
+ varDdaMap: /* @__PURE__ */ new Map(),
19664
19665
  varGridConfigMap: /* @__PURE__ */ new Map(),
19665
19666
  varGridMasterMap: /* @__PURE__ */ new Map(),
19666
19667
  varProfileConfigMap: /* @__PURE__ */ new Map(),
@@ -19790,6 +19791,18 @@ const useKgVarStore = defineStore("KgVar", {
19790
19791
  return (a = t == null ? void 0 : t.find((r) => r.typ === KG__VAR_BUTTON__TYPE.UPDATE)) != null ? a : null;
19791
19792
  };
19792
19793
  },
19794
+ getVarChildDetails() {
19795
+ return (e) => {
19796
+ var a;
19797
+ if (!e)
19798
+ return ____ERROR____("formID \u4E3A\u7A7A."), [];
19799
+ const t = (a = this.varChildDetailMap.get(e)) != null ? a : [];
19800
+ return ____DEBUG____(`${e} | KgVarStore.getVarChildDetails().`, {
19801
+ formID: e,
19802
+ varChildDetails: t
19803
+ }), t;
19804
+ };
19805
+ },
19793
19806
  getVarConfigControl() {
19794
19807
  return (e, t) => {
19795
19808
  var o, c, u, _, g;
@@ -19866,6 +19879,12 @@ const useKgVarStore = defineStore("KgVar", {
19866
19879
  return (r = a == null ? void 0 : a.find((n) => n.var_nam === t)) != null ? r : null;
19867
19880
  };
19868
19881
  },
19882
+ getVarDda() {
19883
+ return (e) => {
19884
+ var t;
19885
+ return e ? (t = this.varDdaMap.get(e)) != null ? t : null : (____ERROR____("formID \u4E3A\u7A7A."), null);
19886
+ };
19887
+ },
19869
19888
  getVarGridConfig() {
19870
19889
  return (e) => {
19871
19890
  var t;
@@ -19932,6 +19951,12 @@ const useKgVarStore = defineStore("KgVar", {
19932
19951
  return e ? (t = this.isOtherRequestingMap.get(e)) != null ? t : null : (____ERROR____("formID \u4E3A\u7A7A."), null);
19933
19952
  };
19934
19953
  },
19954
+ isRequested() {
19955
+ return (e) => {
19956
+ var t;
19957
+ return e ? (t = this.isRequestedMap.get(e)) != null ? t : !1 : (____ERROR____("formID \u4E3A\u7A7A."), !1);
19958
+ };
19959
+ },
19935
19960
  isRetrieving() {
19936
19961
  return (e) => {
19937
19962
  var t;
@@ -19950,12 +19975,6 @@ const useKgVarStore = defineStore("KgVar", {
19950
19975
  return e ? (t = this.isRetrievingVarProfileMasterMap.get(e)) != null ? t : null : (____ERROR____("formID \u4E3A\u7A7A."), null);
19951
19976
  };
19952
19977
  },
19953
- isRequested() {
19954
- return (e) => {
19955
- var t;
19956
- return e ? (t = this.isRequestedMap.get(e)) != null ? t : !1 : (____ERROR____("formID \u4E3A\u7A7A."), !1);
19957
- };
19958
- },
19959
19978
  isUpdatingRequesting() {
19960
19979
  return (e) => {
19961
19980
  var t;
@@ -20098,42 +20117,43 @@ const useKgVarStore = defineStore("KgVar", {
20098
20117
  if (this.isRequestedMap.get(e) !== !0 || a) {
20099
20118
  KgUtil.showLoading(), this.isRequestingAllMap.set(e, !0);
20100
20119
  const {
20101
- varButtons: _,
20102
- varButtonConfig: g,
20103
- varChildDetails: v,
20104
- varConfigControls: d,
20105
- varConfigDescriptions: m,
20106
- varConfigInputs: p,
20107
- varConfigLookups: T,
20108
- varConfigPossibilities: E,
20120
+ varDda: _,
20121
+ varButtons: g,
20122
+ varButtonConfig: v,
20123
+ varChildDetails: d,
20124
+ varConfigControls: m,
20125
+ varConfigDescriptions: p,
20126
+ varConfigInputs: T,
20127
+ varConfigLookups: E,
20128
+ varConfigPossibilities: k,
20109
20129
  varConfigTips: C,
20110
20130
  varProfileConfig: R,
20111
- varProfileMasters: k,
20112
- varGridConfig: y,
20113
- varGridMasters: A,
20114
- varSubmitConfigs: V,
20115
- varSubmitDetails: I,
20116
- varVariables: O
20131
+ varProfileMasters: y,
20132
+ varGridConfig: A,
20133
+ varGridMasters: V,
20134
+ varSubmitConfigs: I,
20135
+ varSubmitDetails: O,
20136
+ varVariables: F
20117
20137
  } = await GetAll({ params: { frm_id: e } });
20118
- this.varVariableMap.set(e, O != null ? O : []), this.varConfigControlMap.set(e, d != null ? d : []), this.varConfigDescriptionMap.set(e, m != null ? m : []), this.varConfigInputMap.set(e, p != null ? p : []), this.varConfigLookupMap.set(e, T != null ? T : []), this.varConfigPossibilityMap.set(e, transformVarConfigPossibilities(E)), this.varConfigTipMap.set(e, C != null ? C : []), this.varButtonMap.set(e, transformVarButtons(_)), this.varButtonConfigMap.set(e, transformVarButtonConfig(g)), this.varSubmitConfigMap.set(e, transformVarSubmitConfigs(V)), this.varSubmitDetailMap.set(e, transformVarSubmitDetails(I)), this.varProfileConfigMap.set(e, transformVarProfileConfig(R)), this.varProfileMasterMap.set(e, {
20119
- varProfileMasters: transformVarProfileMasterDTOs(k),
20120
- currentVarProfileMasterID: (i = (n = (k == null ? void 0 : k.find((P) => P.id === this.getCurrentVarProfileMasterID(e))) || (k == null ? void 0 : k.find((P) => P.def_flg === 1)) || (k == null ? void 0 : k.find((P) => P.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (k == null ? void 0 : k.find(() => !0))) == null ? void 0 : n.id) != null ? i : null
20121
- }), this.varGridConfigMap.set(e, transformVarGridConfig(y)), this.varGridMasterMap.set(e, {
20122
- varGridMasters: transformVarGridMasterDTOs(A),
20123
- currentVarGridMasterID: (s = (l = (A == null ? void 0 : A.find((P) => P.id === this.getCurrentVarGridMasterID(e))) || (A == null ? void 0 : A.find((P) => P.def_flg === 1)) || (A == null ? void 0 : A.find((P) => P.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (A == null ? void 0 : A.find(() => !0))) == null ? void 0 : l.id) != null ? s : null
20124
- }), this.varChildDetailMap.set(e, transformVarChildDetails(v)), await Promise.all([
20138
+ this.varDdaMap.set(e, _ != null ? _ : null), this.varVariableMap.set(e, F != null ? F : []), this.varConfigControlMap.set(e, m != null ? m : []), this.varConfigDescriptionMap.set(e, p != null ? p : []), this.varConfigInputMap.set(e, T != null ? T : []), this.varConfigLookupMap.set(e, E != null ? E : []), this.varConfigPossibilityMap.set(e, transformVarConfigPossibilities(k)), this.varConfigTipMap.set(e, C != null ? C : []), this.varButtonMap.set(e, transformVarButtons(g)), this.varButtonConfigMap.set(e, transformVarButtonConfig(v)), this.varSubmitConfigMap.set(e, transformVarSubmitConfigs(I)), this.varSubmitDetailMap.set(e, transformVarSubmitDetails(O)), this.varProfileConfigMap.set(e, transformVarProfileConfig(R)), this.varProfileMasterMap.set(e, {
20139
+ varProfileMasters: transformVarProfileMasterDTOs(y),
20140
+ currentVarProfileMasterID: (i = (n = (y == null ? void 0 : y.find((G) => G.id === this.getCurrentVarProfileMasterID(e))) || (y == null ? void 0 : y.find((G) => G.def_flg === 1)) || (y == null ? void 0 : y.find((G) => G.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (y == null ? void 0 : y.find(() => !0))) == null ? void 0 : n.id) != null ? i : null
20141
+ }), this.varGridConfigMap.set(e, transformVarGridConfig(A)), this.varGridMasterMap.set(e, {
20142
+ varGridMasters: transformVarGridMasterDTOs(V),
20143
+ currentVarGridMasterID: (s = (l = (V == null ? void 0 : V.find((G) => G.id === this.getCurrentVarGridMasterID(e))) || (V == null ? void 0 : V.find((G) => G.def_flg === 1)) || (V == null ? void 0 : V.find((G) => G.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (V == null ? void 0 : V.find(() => !0))) == null ? void 0 : l.id) != null ? s : null
20144
+ }), this.varChildDetailMap.set(e, transformVarChildDetails(d)), await Promise.all([
20125
20145
  this.setCurrentVarGridMasterID(e, this.getCurrentVarGridMasterID(e)),
20126
20146
  this.setCurrentVarProfileMasterID(e, this.getCurrentVarProfileMasterID(e))
20127
20147
  ]);
20128
- const F = uniq(
20129
- (u = (c = (o = this.getCurrentVarGridDetails(e)) == null ? void 0 : o.map((P) => {
20130
- var K, w, N;
20131
- const G = KgUtil.tryParseJSON(P.display_type_properties);
20132
- return !((K = G.description) != null && K.codeName) || ((w = G.description) == null ? void 0 : w.isDefer) === !0 ? null : (N = G.description) == null ? void 0 : N.codeName;
20133
- })) == null ? void 0 : c.filter((P) => !!P)) != null ? u : []
20148
+ const K = uniq(
20149
+ (u = (c = (o = this.getCurrentVarGridDetails(e)) == null ? void 0 : o.map((G) => {
20150
+ var P, N, B;
20151
+ const w = KgUtil.tryParseJSON(G.display_type_properties);
20152
+ return !((P = w.description) != null && P.codeName) || ((N = w.description) == null ? void 0 : N.isDefer) === !0 ? null : (B = w.description) == null ? void 0 : B.codeName;
20153
+ })) == null ? void 0 : c.filter((G) => !!G)) != null ? u : []
20134
20154
  );
20135
- for (let P of F)
20136
- r.store.requestDescriptions({ codeName: P });
20155
+ for (let G of K)
20156
+ r.store.requestDescriptions({ codeName: G });
20137
20157
  this.isRequestedMap.set(e, !0), this.emit(e, "retrieve");
20138
20158
  }
20139
20159
  } catch (_) {
@@ -20236,8 +20256,8 @@ function useKgVar(e, t, a = 0) {
20236
20256
  t && getCurrentInstance() && (provide(KG__DI__FORM_ID, i), onMounted(() => {
20237
20257
  l.init({ formID: i, level: a });
20238
20258
  }), onUnmounted(() => {
20239
- var m, p, T, E, C;
20240
- l.dispose(i), (m = o == null ? void 0 : o.store) == null || m.dispose(i), (p = c == null ? void 0 : c.store) == null || p.dispose(i), (T = u == null ? void 0 : u.store) == null || T.dispose(i), (E = _ == null ? void 0 : _.store) == null || E.dispose(i), (C = g == null ? void 0 : g.store) == null || C.dispose(i);
20259
+ var m, p, T, E, k;
20260
+ l.dispose(i), (m = o == null ? void 0 : o.store) == null || m.dispose(i), (p = c == null ? void 0 : c.store) == null || p.dispose(i), (T = u == null ? void 0 : u.store) == null || T.dispose(i), (E = _ == null ? void 0 : _.store) == null || E.dispose(i), (k = g == null ? void 0 : g.store) == null || k.dispose(i);
20241
20261
  }));
20242
20262
  let o = null, c = null, u = null, _ = null, g = null, v = null, d = {
20243
20263
  currentVarGridDetails: computed(() => l.getCurrentVarGridDetails(i)),
@@ -20255,10 +20275,10 @@ function useKgVar(e, t, a = 0) {
20255
20275
  isDeleting: computed(() => s.isCurrentButton(i, { type: KG__VAR_BUTTON__TYPE.DELETE })),
20256
20276
  isDeletingRequesting: computed(() => l.isDeletingRequesting(i)),
20257
20277
  isOtherRequesting: computed(() => l.isOtherRequesting(i)),
20278
+ isRequested: computed(() => l.isRequested(i)),
20258
20279
  isRetrieving: computed(() => l.isRetrieving(i)),
20259
20280
  isRetrievingVarGridMaster: computed(() => l.isRetrievingVarGridMaster(i)),
20260
20281
  isRetrievingVarProfileMaster: computed(() => l.isRetrievingVarProfileMaster(i)),
20261
- isRequested: computed(() => l.isRequested(i)),
20262
20282
  isUpdating: computed(() => s.isCurrentButton(i, { type: KG__VAR_BUTTON__TYPE.UPDATE })),
20263
20283
  isUpdatingRequesting: computed(() => l.isUpdatingRequesting(i)),
20264
20284
  kgButton: null,
@@ -20281,6 +20301,8 @@ function useKgVar(e, t, a = 0) {
20281
20301
  varButtonCreate: computed(() => l.getVarButtonCreate(i)),
20282
20302
  varButtonDelete: computed(() => l.getVarButtonDelete(i)),
20283
20303
  varButtonUpdate: computed(() => l.getVarButtonUpdate(i)),
20304
+ varChildDetails: computed(() => l.getVarChildDetails(i)),
20305
+ varDda: computed(() => l.getVarDda(i)),
20284
20306
  varGridConfig: computed(() => l.getVarGridConfig(i)),
20285
20307
  varGridMasters: computed(() => l.getVarGridMasters(i)),
20286
20308
  varProfileConfig: computed(() => l.getVarProfileConfig(i)),
@@ -20460,8 +20482,8 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
20460
20482
  }
20461
20483
  });
20462
20484
  const l = computed(() => i.store.getVarButton(i.formID, e.kgVarName)), s = computed(() => {
20463
- var p, T, E, C, R, k, y, A;
20464
- return isNil(e.kgDisabled) ? !!(i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value || i.kgTable.isRetrieving.value || ((p = l.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((E = (T = i.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? E : 0) === 0 || ((C = l.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((k = (R = i.kgTable.selectedRows.value) == null ? void 0 : R.length) != null ? k : 0) > 1 || KgAuthUtil.getPermissionType((y = l.value) == null ? void 0 : y.permission_code) === 2 && !n.p((A = l.value) == null ? void 0 : A.permission_code)) : e.kgDisabled;
20485
+ var p, T, E, k, C, R, y, A;
20486
+ return isNil(e.kgDisabled) ? !!(i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value || i.kgTable.isRetrieving.value || ((p = l.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((E = (T = i.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? E : 0) === 0 || ((k = l.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((R = (C = i.kgTable.selectedRows.value) == null ? void 0 : C.length) != null ? R : 0) > 1 || KgAuthUtil.getPermissionType((y = l.value) == null ? void 0 : y.permission_code) === 2 && !n.p((A = l.value) == null ? void 0 : A.permission_code)) : e.kgDisabled;
20465
20487
  }), o = computed(() => !!i.isCreatingRequesting.value);
20466
20488
  async function c() {
20467
20489
  if (e.onKgClick && await e.onKgClick()) {
@@ -20503,13 +20525,13 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
20503
20525
  return e.kgText ? e.kgText : n.t("kg.create");
20504
20526
  }
20505
20527
  function d() {
20506
- var p, T, E, C, R, k;
20528
+ var p, T, E, k, C, R;
20507
20529
  return createVNode(Button, {
20508
20530
  "kg-id": (p = l.value) == null ? void 0 : p.id,
20509
20531
  "kg-form_id": (T = l.value) == null ? void 0 : T.frm_id,
20510
20532
  "kg-var_name": (E = l.value) == null ? void 0 : E.var_nam,
20511
- "kg-cmd": (C = l.value) == null ? void 0 : C.cmd,
20512
- "kg-permission": (k = (R = l.value) == null ? void 0 : R.permission_code) != null ? k : "",
20533
+ "kg-cmd": (k = l.value) == null ? void 0 : k.cmd,
20534
+ "kg-permission": (R = (C = l.value) == null ? void 0 : C.permission_code) != null ? R : "",
20513
20535
  type: "primary",
20514
20536
  disabled: s.value,
20515
20537
  danger: e.kgColor === KG__VAR_BUTTON__COLOR.RED,
@@ -20639,8 +20661,8 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
20639
20661
  ...KgVarUtil.parseRequestParamsToJSON((m = (d = n.value) == null ? void 0 : d.cmd_prm) != null ? m : "")
20640
20662
  }), v;
20641
20663
  }), o = computed(() => {
20642
- var v, d, m, p, T, E, C, R;
20643
- return isNil(e.kgDisabled) ? !!(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || r.kgTable.isRetrieving.value || ((v = n.value) == null ? void 0 : v.dis_no_select_flg) === 1 && ((m = (d = r.kgTable.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((p = n.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((E = (T = r.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? E : 0) > 1 || KgAuthUtil.getPermissionType((C = n.value) == null ? void 0 : C.permission_code) === 2 && !a.p((R = n.value) == null ? void 0 : R.permission_code)) : e.kgDisabled;
20664
+ var v, d, m, p, T, E, k, C;
20665
+ return isNil(e.kgDisabled) ? !!(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || r.kgTable.isRetrieving.value || ((v = n.value) == null ? void 0 : v.dis_no_select_flg) === 1 && ((m = (d = r.kgTable.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((p = n.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((E = (T = r.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? E : 0) > 1 || KgAuthUtil.getPermissionType((k = n.value) == null ? void 0 : k.permission_code) === 2 && !a.p((C = n.value) == null ? void 0 : C.permission_code)) : e.kgDisabled;
20644
20666
  }), c = ref(!1);
20645
20667
  async function u() {
20646
20668
  var v, d, m, p, T;
@@ -20672,14 +20694,14 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
20672
20694
  isTransformResponse: !1
20673
20695
  });
20674
20696
  if (E instanceof Blob && E.type === "application/json") {
20675
- const R = await E.text();
20697
+ const C = await E.text();
20676
20698
  message.error({
20677
- content: (d = JSON.parse(R).message) != null ? d : ""
20699
+ content: (d = JSON.parse(C).message) != null ? d : ""
20678
20700
  });
20679
20701
  return;
20680
20702
  }
20681
- const C = (m = n.value) == null ? void 0 : m.export_excel_filename;
20682
- KgUtil.downloadFile(E, `${C ? r.t(C).value : a.t("kg.export")}.${(T = (p = n.value) == null ? void 0 : p.export_excel_suffix) == null ? void 0 : T.toLowerCase()}`);
20703
+ const k = (m = n.value) == null ? void 0 : m.export_excel_filename;
20704
+ KgUtil.downloadFile(E, `${k ? r.t(k).value : a.t("kg.export")}.${(T = (p = n.value) == null ? void 0 : p.export_excel_suffix) == null ? void 0 : T.toLowerCase()}`);
20683
20705
  } catch (E) {
20684
20706
  ____ERROR____(E.message, {
20685
20707
  url: i.value
@@ -20753,8 +20775,8 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
20753
20775
  ...KgVarUtil.parseRequestParamsToJSON((T = (p = i.value) == null ? void 0 : p.cmd_prm) != null ? T : "")
20754
20776
  }), d;
20755
20777
  }), c = computed(() => {
20756
- var d, m, p, T, E, C, R, k;
20757
- return isNil(e.kgDisabled) ? !!(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || n.kgTable.isRetrieving.value || ((d = i.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((p = (m = n.kgTable.selectedRows.value) == null ? void 0 : m.length) != null ? p : 0) === 0 || ((T = i.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((C = (E = n.kgTable.selectedRows.value) == null ? void 0 : E.length) != null ? C : 0) > 1 || KgAuthUtil.getPermissionType((R = i.value) == null ? void 0 : R.permission_code) === 2 && !r.p((k = i.value) == null ? void 0 : k.permission_code)) : e.kgDisabled;
20778
+ var d, m, p, T, E, k, C, R;
20779
+ return isNil(e.kgDisabled) ? !!(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || n.kgTable.isRetrieving.value || ((d = i.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((p = (m = n.kgTable.selectedRows.value) == null ? void 0 : m.length) != null ? p : 0) === 0 || ((T = i.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((k = (E = n.kgTable.selectedRows.value) == null ? void 0 : E.length) != null ? k : 0) > 1 || KgAuthUtil.getPermissionType((C = i.value) == null ? void 0 : C.permission_code) === 2 && !r.p((R = i.value) == null ? void 0 : R.permission_code)) : e.kgDisabled;
20758
20780
  }), u = ref(!1);
20759
20781
  async function _(d) {
20760
20782
  if (!l.value)
@@ -20809,13 +20831,13 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
20809
20831
  disabled: u.value
20810
20832
  }, {
20811
20833
  default: () => {
20812
- var d, m, p, T, E, C;
20834
+ var d, m, p, T, E, k;
20813
20835
  return [createVNode(Button, {
20814
20836
  "kg-id": (d = i.value) == null ? void 0 : d.id,
20815
20837
  "kg-form_id": (m = i.value) == null ? void 0 : m.frm_id,
20816
20838
  "kg-var_name": (p = i.value) == null ? void 0 : p.var_nam,
20817
20839
  "kg-cmd": (T = i.value) == null ? void 0 : T.cmd,
20818
- "kg-permission": (C = (E = i.value) == null ? void 0 : E.permission_code) != null ? C : "",
20840
+ "kg-permission": (k = (E = i.value) == null ? void 0 : E.permission_code) != null ? k : "",
20819
20841
  type: "primary",
20820
20842
  disabled: c.value,
20821
20843
  ghost: !e.kgPrimary && !c.value,
@@ -20858,8 +20880,8 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
20858
20880
  ...KgVarUtil.parseRequestParamsToJSON((d = (v = r.value) == null ? void 0 : v.cmd_prm) != null ? d : "")
20859
20881
  }), g;
20860
20882
  }), s = computed(() => {
20861
- var g, v, d, m, p, T, E, C;
20862
- return isNil(e.kgDisabled) ? !!(a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value || a.kgTable.isRetrieving.value || ((g = r.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((d = (v = a.kgTable.selectedRows.value) == null ? void 0 : v.length) != null ? d : 0) === 0 || ((m = r.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (p = a.kgTable.selectedRows.value) == null ? void 0 : p.length) != null ? T : 0) > 1 || KgAuthUtil.getPermissionType((E = r.value) == null ? void 0 : E.permission_code) === 2 && !t.p((C = r.value) == null ? void 0 : C.permission_code)) : e.kgDisabled;
20883
+ var g, v, d, m, p, T, E, k;
20884
+ return isNil(e.kgDisabled) ? !!(a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value || a.kgTable.isRetrieving.value || ((g = r.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((d = (v = a.kgTable.selectedRows.value) == null ? void 0 : v.length) != null ? d : 0) === 0 || ((m = r.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (p = a.kgTable.selectedRows.value) == null ? void 0 : p.length) != null ? T : 0) > 1 || KgAuthUtil.getPermissionType((E = r.value) == null ? void 0 : E.permission_code) === 2 && !t.p((k = r.value) == null ? void 0 : k.permission_code)) : e.kgDisabled;
20863
20885
  }), o = ref(!1);
20864
20886
  async function c() {
20865
20887
  var g, v, d;
@@ -20962,7 +20984,7 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
20962
20984
  }
20963
20985
  let c = null;
20964
20986
  const u = async () => {
20965
- var m, p, T, E, C, R, k, y;
20987
+ var m, p, T, E, k, C, R, y;
20966
20988
  c == null || c.showLoading(), a.store.setIsOtherRequesting(a.formID, !0);
20967
20989
  const d = a.kgTable.selectedRows.value;
20968
20990
  try {
@@ -20973,15 +20995,15 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
20973
20995
  data: d != null ? d : [],
20974
20996
  headers: {
20975
20997
  [KG_HTTP_HEADERS.KG_FORM_ID]: a.formID,
20976
- [KG_HTTP_HEADERS.KG_BUTTON_VAR_NAME]: (R = (C = e.kgButton) == null ? void 0 : C.var_nam) != null ? R : ""
20998
+ [KG_HTTP_HEADERS.KG_BUTTON_VAR_NAME]: (C = (k = e.kgButton) == null ? void 0 : k.var_nam) != null ? C : ""
20977
20999
  }
20978
21000
  });
20979
- if (((k = e.kgButton) == null ? void 0 : k.reload_all_after_done_flg) === 1) {
21001
+ if (((R = e.kgButton) == null ? void 0 : R.reload_all_after_done_flg) === 1) {
20980
21002
  let O = !0;
20981
21003
  ((y = e.kgButton) == null ? void 0 : y.re_select_after_reload_flg) !== 0 && (O = !1, a.kgTable.onAfterSearch(async ({
20982
21004
  datas: F
20983
21005
  }) => {
20984
- const P = F.value, G = intersectionWith$1(P, d != null ? d : [], (K, w) => (K == null ? void 0 : K[a.kgTable.idKey.value]) === (w == null ? void 0 : w[a.kgTable.idKey.value]));
21006
+ const K = F.value, G = intersectionWith$1(K, d != null ? d : [], (w, P) => (w == null ? void 0 : w[a.kgTable.idKey.value]) === (P == null ? void 0 : P[a.kgTable.idKey.value]));
20985
21007
  return G.length > 0 && a.kgTable.store.setSelectedRows(a.formID, G), !1;
20986
21008
  }, !0)), a.kgSearch.search({
20987
21009
  isSearchFirstPage: O
@@ -21115,8 +21137,8 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
21115
21137
  }
21116
21138
  });
21117
21139
  const l = computed(() => i.store.getVarButton(i.formID, e.kgVarName)), s = computed(() => {
21118
- var p, T, E, C, R, k, y, A;
21119
- return isNil(e.kgDisabled) ? !!(i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value || i.kgTable.isRetrieving.value || ((p = l.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((E = (T = i.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? E : 0) === 0 || ((C = l.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((k = (R = i.kgTable.selectedRows.value) == null ? void 0 : R.length) != null ? k : 0) > 1 || KgAuthUtil.getPermissionType((y = l.value) == null ? void 0 : y.permission_code) === 2 && !n.p((A = l.value) == null ? void 0 : A.permission_code)) : e.kgDisabled;
21140
+ var p, T, E, k, C, R, y, A;
21141
+ return isNil(e.kgDisabled) ? !!(i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value || i.kgTable.isRetrieving.value || ((p = l.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((E = (T = i.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? E : 0) === 0 || ((k = l.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((R = (C = i.kgTable.selectedRows.value) == null ? void 0 : C.length) != null ? R : 0) > 1 || KgAuthUtil.getPermissionType((y = l.value) == null ? void 0 : y.permission_code) === 2 && !n.p((A = l.value) == null ? void 0 : A.permission_code)) : e.kgDisabled;
21120
21142
  }), o = computed(() => !!i.isUpdatingRequesting.value);
21121
21143
  async function c() {
21122
21144
  if (e.onKgClick && await e.onKgClick()) {
@@ -21158,13 +21180,13 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
21158
21180
  return e.kgText ? e.kgText : n.t("kg.update");
21159
21181
  }
21160
21182
  function d() {
21161
- var p, T, E, C, R, k;
21183
+ var p, T, E, k, C, R;
21162
21184
  return createVNode(Button, {
21163
21185
  "kg-id": (p = l.value) == null ? void 0 : p.id,
21164
21186
  "kg-form_id": (T = l.value) == null ? void 0 : T.frm_id,
21165
21187
  "kg-var_name": (E = l.value) == null ? void 0 : E.var_nam,
21166
- "kg-cmd": (C = l.value) == null ? void 0 : C.cmd,
21167
- "kg-permission": (k = (R = l.value) == null ? void 0 : R.permission_code) != null ? k : "",
21188
+ "kg-cmd": (k = l.value) == null ? void 0 : k.cmd,
21189
+ "kg-permission": (R = (C = l.value) == null ? void 0 : C.permission_code) != null ? R : "",
21168
21190
  type: "primary",
21169
21191
  disabled: s.value,
21170
21192
  ghost: !e.kgPrimary && !s.value,
@@ -21193,7 +21215,7 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
21193
21215
  return () => createVNode(Fragment, null, [d(), m()]);
21194
21216
  }
21195
21217
  }), KgButton_Item = "";
21196
- function _isSlot$3(e) {
21218
+ function _isSlot$4(e) {
21197
21219
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
21198
21220
  }
21199
21221
  const KgButtonItem = defineComponent({
@@ -21240,13 +21262,13 @@ const KgButtonItem = defineComponent({
21240
21262
  let s;
21241
21263
  return createVNode(ConfigProvider, {
21242
21264
  autoInsertSpaceInButton: !1
21243
- }, _isSlot$3(s = l()) ? s : {
21265
+ }, _isSlot$4(s = l()) ? s : {
21244
21266
  default: () => [s]
21245
21267
  });
21246
21268
  };
21247
21269
  }
21248
21270
  }), KgButton$1 = "";
21249
- function _isSlot$2(e) {
21271
+ function _isSlot$3(e) {
21250
21272
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
21251
21273
  }
21252
21274
  const getProps$c = () => ({
@@ -21267,12 +21289,12 @@ const getProps$c = () => ({
21267
21289
  var T, E;
21268
21290
  const p = ((E = (T = a == null ? void 0 : a.value) == null ? void 0 : T.KgButton) == null ? void 0 : E.kgDisabled) || e.kgDisabled;
21269
21291
  if (p) {
21270
- const C = p(m);
21271
- if (!isNil(C))
21292
+ const k = p(m);
21293
+ if (!isNil(k))
21272
21294
  return ____DEBUG____(`${n.formID} | KgButton | isKgDisabled() | \u4F7F\u7528\u7528\u6237\u63D0\u4F9B\u7684\u903B\u8F91\u51B3\u5B9A\u6309\u94AE\u662F\u5426\u542F\u7981\u7528.`, {
21273
21295
  button: m,
21274
- disabled: C
21275
- }), C;
21296
+ disabled: k
21297
+ }), k;
21276
21298
  }
21277
21299
  });
21278
21300
  }
@@ -21281,9 +21303,9 @@ const getProps$c = () => ({
21281
21303
  var T, E;
21282
21304
  const p = ((E = (T = a == null ? void 0 : a.value) == null ? void 0 : T.KgButton) == null ? void 0 : E.KgLoading) || e.KgLoading;
21283
21305
  if (p) {
21284
- const C = p(m);
21285
- if (!isNil(C))
21286
- return C;
21306
+ const k = p(m);
21307
+ if (!isNil(k))
21308
+ return k;
21287
21309
  }
21288
21310
  });
21289
21311
  }
@@ -21345,7 +21367,7 @@ const getProps$c = () => ({
21345
21367
  var m, p;
21346
21368
  return [(p = (m = n.kgButton.varButtons.value) == null ? void 0 : m.filter((T) => T.typ !== KG__VAR_BUTTON__TYPE.SEARCH)) == null ? void 0 : p.filter((T) => T.available_flag !== 0).map((T) => {
21347
21369
  let E;
21348
- return createVNode(Menu.Item, null, _isSlot$2(E = g(T)) ? E : {
21370
+ return createVNode(Menu.Item, null, _isSlot$3(E = g(T)) ? E : {
21349
21371
  default: () => [E]
21350
21372
  });
21351
21373
  })];
@@ -21843,7 +21865,7 @@ function _useFormModel(e) {
21843
21865
  };
21844
21866
  }
21845
21867
  const KgSearch$1 = "";
21846
- function _isSlot$1(e) {
21868
+ function _isSlot$2(e) {
21847
21869
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
21848
21870
  }
21849
21871
  const getProps$a = () => ({
@@ -21882,9 +21904,9 @@ const getProps$a = () => ({
21882
21904
  }), p = computed(() => {
21883
21905
  var M, x;
21884
21906
  return !!(d.value || n.kgTable.isRetrieving.value || KgAuthUtil.getPermissionType((M = n.kgButton.searchButton.value) == null ? void 0 : M.permission_code) === 2 && !r.p((x = n.kgButton.searchButton.value) == null ? void 0 : x.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
21885
- }), T = computed(() => !!(d.value || n.kgTable.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), E = computed(() => !!n.kgTable.isRetrieving.value), C = ref({
21907
+ }), T = computed(() => !!(d.value || n.kgTable.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), E = computed(() => !!n.kgTable.isRetrieving.value), k = ref({
21886
21908
  visible: !1
21887
- }), R = computed(() => v.value.kgHeight === g.value), k = computed(() => {
21909
+ }), C = computed(() => v.value.kgHeight === g.value), R = computed(() => {
21888
21910
  var W;
21889
21911
  if (!n.kgButton.searchButton.value)
21890
21912
  return;
@@ -21943,7 +21965,7 @@ const getProps$a = () => ({
21943
21965
  }, {
21944
21966
  immediate: !0
21945
21967
  });
21946
- async function P(M = {}) {
21968
+ async function K(M = {}) {
21947
21969
  var x, W;
21948
21970
  if (____DEBUG____(`${n.formID} | KgSearch | onSearch() | \u8FDB\u5165\u65B9\u6CD5.`), n.kgTable.isRetrieving.value) {
21949
21971
  ____DEBUG____(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u67E5\u8BE2.`);
@@ -21965,7 +21987,7 @@ const getProps$a = () => ({
21965
21987
  });
21966
21988
  })) : (____DEBUG____(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await n.kgSearch.store.emit(n.formID, "search", M));
21967
21989
  }
21968
- n.kgSearch.store.setSearchFn(n.formID, P);
21990
+ n.kgSearch.store.setSearchFn(n.formID, K);
21969
21991
  async function G() {
21970
21992
  c(), i.value ? o.value && o.value.validate().then(async () => {
21971
21993
  await n.kgSearch.store.emit(n.formID, "reset", {});
@@ -21976,12 +21998,12 @@ const getProps$a = () => ({
21976
21998
  }) : await n.kgSearch.store.emit(n.formID, "reset", {});
21977
21999
  }
21978
22000
  n.kgSearch.store.setResetFn(n.formID, G);
21979
- function K() {
21980
- return P({
22001
+ function w() {
22002
+ return K({
21981
22003
  isSearchFirstPage: !0
21982
22004
  }), Promise.resolve(!0);
21983
22005
  }
21984
- function w() {
22006
+ function P() {
21985
22007
  var M;
21986
22008
  return createVNode("div", {
21987
22009
  class: "title",
@@ -21991,7 +22013,7 @@ const getProps$a = () => ({
21991
22013
  onClick: (x) => {
21992
22014
  x.stopPropagation(), x.preventDefault();
21993
22015
  }
21994
- }, [t.KgSearch.left()]), R.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
22016
+ }, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
21995
22017
  }
21996
22018
  function N() {
21997
22019
  var M, x, W, z;
@@ -22015,7 +22037,7 @@ const getProps$a = () => ({
22015
22037
  }), createVNode(Button, {
22016
22038
  disabled: T.value,
22017
22039
  onClick: () => {
22018
- C.value.visible = !0;
22040
+ k.value.visible = !0;
22019
22041
  },
22020
22042
  class: "kg-search-profile-master-btn"
22021
22043
  }, {
@@ -22036,12 +22058,12 @@ const getProps$a = () => ({
22036
22058
  kgType: KG__VAR_BUTTON__TYPE.SEARCH,
22037
22059
  kgVarName: (M = n.kgButton.searchButton.value) == null ? void 0 : M.var_nam,
22038
22060
  kgIcon: (x = n.kgButton.searchButton.value) == null ? void 0 : x.icon,
22039
- kgText: k.value,
22061
+ kgText: R.value,
22040
22062
  kgColor: (W = n.kgButton.searchButton.value) == null ? void 0 : W.color,
22041
22063
  kgPrimary: y.value,
22042
22064
  kgDisabled: p.value,
22043
22065
  kgLoading: E.value,
22044
- onKgClick: K
22066
+ onKgClick: w
22045
22067
  }, null)]);
22046
22068
  }
22047
22069
  function D() {
@@ -22060,11 +22082,11 @@ const getProps$a = () => ({
22060
22082
  }, {
22061
22083
  default: () => [createVNode(Row, {
22062
22084
  gutter: 6
22063
- }, _isSlot$1(M = n.kgSearch.currentVarProfileDetails.value.map((W) => createVNode(KgForm.Item, {
22085
+ }, _isSlot$2(M = n.kgSearch.currentVarProfileDetails.value.map((W) => createVNode(KgForm.Item, {
22064
22086
  key: W.var_nam,
22065
22087
  kgVarName: W.var_nam,
22066
22088
  kgContext: KG_FORM_CONTEXT.SEARCH,
22067
- onKgSubmit: () => P({
22089
+ onKgSubmit: () => K({
22068
22090
  isSearchFirstPage: !0
22069
22091
  })
22070
22092
  }, null))) ? M : {
@@ -22075,7 +22097,7 @@ const getProps$a = () => ({
22075
22097
  });
22076
22098
  }
22077
22099
  function U() {
22078
- R.value ? v.value.kgHeight = u.value : v.value.kgHeight = g.value;
22100
+ C.value ? v.value.kgHeight = u.value : v.value.kgHeight = g.value;
22079
22101
  }
22080
22102
  return onUnmounted(async () => {
22081
22103
  n.kgSearch.store.dispose(n.formID);
@@ -22098,7 +22120,7 @@ const getProps$a = () => ({
22098
22120
  }, [createVNode(Spin, {
22099
22121
  spinning: A.value
22100
22122
  }, {
22101
- default: () => [w(), createVNode("div", {
22123
+ default: () => [P(), createVNode("div", {
22102
22124
  class: "ant-collapse-extra"
22103
22125
  }, [B()])]
22104
22126
  })]), createVNode("div", {
@@ -22106,9 +22128,9 @@ const getProps$a = () => ({
22106
22128
  }, [createVNode("div", {
22107
22129
  class: "ant-collapse-content-box",
22108
22130
  ref: s
22109
- }, [D()])])])]), C.value.visible && createVNode(KgSearchConfigModal, {
22110
- visible: C.value.visible,
22111
- "onUpdate:visible": (M) => C.value.visible = M
22131
+ }, [D()])])])]), k.value.visible && createVNode(KgSearchConfigModal, {
22132
+ visible: k.value.visible,
22133
+ "onUpdate:visible": (M) => k.value.visible = M
22112
22134
  }, null)])]
22113
22135
  });
22114
22136
  }
@@ -23023,16 +23045,16 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
23023
23045
  emit: t
23024
23046
  }) {
23025
23047
  const a = useKg(), r = useKgWarehouse(), n = computed(() => {
23026
- let R = "jeecg-layout-header-action__item kg-warehouse";
23027
- return (!_.value || e.kgInvisible) && (R += " kg-warehouse--invisible"), R;
23048
+ let C = "jeecg-layout-header-action__item kg-warehouse";
23049
+ return (!_.value || e.kgInvisible) && (C += " kg-warehouse--invisible"), C;
23028
23050
  }), i = ref(""), l = ref(null), s = ref(!1), o = reactive([{
23029
23051
  width: 80,
23030
23052
  align: "center",
23031
23053
  customRender: ({
23032
- record: R
23054
+ record: C
23033
23055
  }) => {
23034
23056
  var y;
23035
- return R.whId === ((y = l.value) == null ? void 0 : y.whId) ? createVNode("img", {
23057
+ return C.whId === ((y = l.value) == null ? void 0 : y.whId) ? createVNode("img", {
23036
23058
  src: WAREHOUSE_1890ff
23037
23059
  }, null) : createVNode("img", {
23038
23060
  src: WAREHOUSE_000000
@@ -23040,30 +23062,30 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
23040
23062
  }
23041
23063
  }, {
23042
23064
  customRender: ({
23043
- record: R
23065
+ record: C
23044
23066
  }) => {
23045
23067
  var y, A, V;
23046
- const k = R;
23047
- return createVNode("div", null, [createVNode("div", null, [(y = k.whDsc) != null ? y : " ", createTextVNode(" - "), (A = k.whId) != null ? A : " "]), createVNode("div", {
23068
+ const R = C;
23069
+ return createVNode("div", null, [createVNode("div", null, [(y = R.whDsc) != null ? y : " ", createTextVNode(" - "), (A = R.whId) != null ? A : " "]), createVNode("div", {
23048
23070
  class: "address"
23049
- }, [(V = k.adrnam) != null ? V : " "])]);
23071
+ }, [(V = R.adrnam) != null ? V : " "])]);
23050
23072
  }
23051
23073
  }]), c = ref([]), u = computed(() => {
23052
- var k;
23053
- const R = (k = i.value) == null ? void 0 : k.toUpperCase();
23074
+ var R;
23075
+ const C = (R = i.value) == null ? void 0 : R.toUpperCase();
23054
23076
  return c.value.filter((y) => {
23055
- var A, V, I, O, F, P;
23056
- return ((V = (A = y.whDsc) == null ? void 0 : A.toUpperCase()) == null ? void 0 : V.includes(R)) || ((O = (I = y.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : O.includes(R)) || ((P = (F = y.adrId) == null ? void 0 : F.toUpperCase()) == null ? void 0 : P.includes(R));
23077
+ var A, V, I, O, F, K;
23078
+ return ((V = (A = y.whDsc) == null ? void 0 : A.toUpperCase()) == null ? void 0 : V.includes(C)) || ((O = (I = y.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : O.includes(C)) || ((K = (F = y.adrId) == null ? void 0 : F.toUpperCase()) == null ? void 0 : K.includes(C));
23057
23079
  });
23058
23080
  }), _ = computed(() => {
23059
- var R;
23060
- return ((R = a.option.value.KgWarehouse) == null ? void 0 : R.on) !== !1;
23081
+ var C;
23082
+ return ((C = a.option.value.KgWarehouse) == null ? void 0 : C.on) !== !1;
23061
23083
  }), g = computed(() => {
23062
- var R, k, y, A;
23063
- return (A = (y = (k = (R = a.store).getUseUserStore) == null ? void 0 : k.call(R)) == null ? void 0 : y.getUserWarehouses) != null ? A : [];
23084
+ var C, R, y, A;
23085
+ return (A = (y = (R = (C = a.store).getUseUserStore) == null ? void 0 : R.call(C)) == null ? void 0 : y.getUserWarehouses) != null ? A : [];
23064
23086
  });
23065
- watch(r.visible, (R) => {
23066
- !_.value || (R ? d() : m());
23087
+ watch(r.visible, (C) => {
23088
+ !_.value || (C ? d() : m());
23067
23089
  }, {
23068
23090
  immediate: !0
23069
23091
  }), onMounted(() => {
@@ -23079,8 +23101,8 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
23079
23101
  i.value = "", c.value = [], l.value = null;
23080
23102
  }
23081
23103
  function p() {
23082
- var R;
23083
- !l.value || (e.kgInvisible ? (r.store.setWarehouse(l.value), t("kgOk")) : l.value.whId !== ((R = r.warehouse.value) == null ? void 0 : R.whId) && (r.store.setWarehouse(l.value), KgUtil.confirm({
23104
+ var C;
23105
+ !l.value || (e.kgInvisible ? (r.store.setWarehouse(l.value), t("kgOk")) : l.value.whId !== ((C = r.warehouse.value) == null ? void 0 : C.whId) && (r.store.setWarehouse(l.value), KgUtil.confirm({
23084
23106
  content: a.t("kg.KgWarehouse.reloadMessage"),
23085
23107
  kgHideCancelButton: !0,
23086
23108
  okButtonProps: {
@@ -23096,46 +23118,46 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
23096
23118
  s.value = !0;
23097
23119
  try {
23098
23120
  const {
23099
- records: R
23121
+ records: C
23100
23122
  } = await ListVO({
23101
23123
  params: {
23102
23124
  pageNo: 1,
23103
23125
  pageSize: 999
23104
23126
  }
23105
23127
  });
23106
- c.value = (R != null ? R : []).filter((k) => {
23128
+ c.value = (C != null ? C : []).filter((R) => {
23107
23129
  var y;
23108
- return KgAuthUtil.isAdminUser() ? !0 : (y = g.value) == null ? void 0 : y.find((A) => A.wh_id === k.whId);
23130
+ return KgAuthUtil.isAdminUser() ? !0 : (y = g.value) == null ? void 0 : y.find((A) => A.wh_id === R.whId);
23109
23131
  });
23110
- } catch (R) {
23111
- console.error(R);
23132
+ } catch (C) {
23133
+ console.error(C);
23112
23134
  } finally {
23113
23135
  s.value = !1;
23114
23136
  }
23115
23137
  }
23116
- function E(R, k) {
23138
+ function E(C, R) {
23117
23139
  var y;
23118
- switch (R.detail) {
23140
+ switch (C.detail) {
23119
23141
  case 1:
23120
- ((y = l.value) == null ? void 0 : y.whId) === k.whId ? l.value = null : l.value = k;
23142
+ ((y = l.value) == null ? void 0 : y.whId) === R.whId ? l.value = null : l.value = R;
23121
23143
  break;
23122
23144
  case 2:
23123
- l.value = k, p();
23145
+ l.value = R, p();
23124
23146
  break;
23125
23147
  }
23126
23148
  }
23127
- function C() {
23149
+ function k() {
23128
23150
  return _.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
23129
23151
  title: a.t("kg.KgWarehouse.warehouse"),
23130
23152
  placement: "bottomRight"
23131
23153
  }, {
23132
23154
  default: () => {
23133
- var R, k;
23134
- return [((R = r.warehouse.value) == null ? void 0 : R.whDsc) || ((k = r.warehouse.value) == null ? void 0 : k.whId) || a.t("kg.KgWarehouse.selectWarehouse")];
23155
+ var C, R;
23156
+ return [((C = r.warehouse.value) == null ? void 0 : C.whDsc) || ((R = r.warehouse.value) == null ? void 0 : R.whId) || a.t("kg.KgWarehouse.selectWarehouse")];
23135
23157
  }
23136
23158
  }), createVNode(KgModal, {
23137
23159
  visible: r.visible.value,
23138
- "onUpdate:visible": (R) => r.store.setVisible(R),
23160
+ "onUpdate:visible": (C) => r.store.setVisible(C),
23139
23161
  title: a.t("kg.KgWarehouse.title"),
23140
23162
  width: "500px",
23141
23163
  kgFullHeight: !1,
@@ -23152,7 +23174,7 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
23152
23174
  }, {
23153
23175
  default: () => [createVNode(Input, {
23154
23176
  value: i.value,
23155
- "onUpdate:value": (R) => i.value = R,
23177
+ "onUpdate:value": (C) => i.value = C,
23156
23178
  allowClear: !0,
23157
23179
  disabled: s.value,
23158
23180
  placeholder: a.t("kg.search")
@@ -23172,11 +23194,11 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
23172
23194
  dataSource: u.value,
23173
23195
  columns: o,
23174
23196
  class: "kg-flex-table",
23175
- customRow: (R) => {
23176
- var k;
23197
+ customRow: (C) => {
23198
+ var R;
23177
23199
  return {
23178
- class: R.whId === ((k = l.value) == null ? void 0 : k.whId) ? "selected" : "",
23179
- onClick: (y) => E(y, R)
23200
+ class: C.whId === ((R = l.value) == null ? void 0 : R.whId) ? "selected" : "",
23201
+ onClick: (y) => E(y, C)
23180
23202
  };
23181
23203
  }
23182
23204
  }, null)]
@@ -23185,7 +23207,7 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
23185
23207
  return () => createVNode("div", {
23186
23208
  class: n.value,
23187
23209
  onClick: v
23188
- }, [C()]);
23210
+ }, [k()]);
23189
23211
  }
23190
23212
  });
23191
23213
  function createKgWarehouseGuard(e, t) {
@@ -23246,7 +23268,7 @@ function httpClient() {
23246
23268
  throw new Error("\u53C2\u6570 options.dynamicQueryOperators \u4E0D\u4E3A\u7A7A, \u6240\u4EE5\u53C2\u6570 options.dayjs \u4E5F\u4E0D\u80FD\u4E3A\u7A7A.");
23247
23269
  let T = {};
23248
23270
  n.method === "GET" || n.method === "POST" && !n.data && n.params ? T = n.params : n.method === "POST" && n.data && (T = n.data);
23249
- const { sql: E, whereSql: C, orderBySql: R, offsetSql: k, operatorJSON: y } = KgVarUtil.getQueryHeaders({
23271
+ const { sql: E, whereSql: k, orderBySql: C, offsetSql: R, operatorJSON: y } = KgVarUtil.getQueryHeaders({
23250
23272
  $dayjs: i == null ? void 0 : i.dayjs,
23251
23273
  dynamicQueryOperatorModel: i == null ? void 0 : i.dynamicQueryOperatorModel,
23252
23274
  formID: null,
@@ -23256,11 +23278,11 @@ function httpClient() {
23256
23278
  n.headers = {
23257
23279
  ...(v = n.headers) != null ? v : {},
23258
23280
  [s]: !0,
23259
- [u]: k,
23281
+ [u]: R,
23260
23282
  [g]: y,
23261
- [c]: R,
23283
+ [c]: C,
23262
23284
  [_]: E,
23263
- [o]: C
23285
+ [o]: k
23264
23286
  };
23265
23287
  }
23266
23288
  if (n.headers[o] && (n.headers[o] = encodeURIComponent(decodeURIComponent(String(n.headers[o])))), n.headers[c] && (n.headers[c] = encodeURIComponent(decodeURIComponent(String(n.headers[c])))), n.headers[u] && (n.headers[u] = encodeURIComponent(decodeURIComponent(String(n.headers[u])))), n.headers[_] && (n.headers[_] = encodeURIComponent(decodeURIComponent(String(n.headers[_])))), n.headers[l] && (n.headers[l] = encodeURIComponent(decodeURIComponent(String(n.headers[l])))), ((d = r.option.value.KgWarehouse) == null ? void 0 : d.on) !== !1) {
@@ -23876,13 +23898,13 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
23876
23898
  }
23877
23899
  function v(O) {
23878
23900
  const { properties: F = {} } = O;
23879
- Object.entries(F).forEach(([P, G]) => {
23880
- P in n.value.sysPermissions[0] && n.value.sysPermissions[0][P] !== G && (n.value.sysPermissions[0][P] = G);
23901
+ Object.entries(F).forEach(([K, G]) => {
23902
+ K in n.value.sysPermissions[0] && n.value.sysPermissions[0][K] !== G && (n.value.sysPermissions[0][K] = G);
23881
23903
  });
23882
23904
  }
23883
23905
  function d(O) {
23884
- const { formID: F, frmNam: P } = O;
23885
- n.value.varDda.frm_id = F, n.value.varDda.frm_nam = P;
23906
+ const { formID: F, frmNam: K } = O;
23907
+ n.value.varDda.frm_id = F, n.value.varDda.frm_nam = K;
23886
23908
  }
23887
23909
  function m(O) {
23888
23910
  n.value.varButtons = [
@@ -23911,32 +23933,32 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
23911
23933
  ], V();
23912
23934
  }
23913
23935
  function p(O) {
23914
- const { varName: F, properties: P = {} } = O, G = n.value.varButtons.find((N) => N.var_nam === F);
23936
+ const { varName: F, properties: K = {} } = O, G = n.value.varButtons.find((N) => N.var_nam === F);
23915
23937
  if (!G)
23916
23938
  return;
23917
- let K = !1;
23918
- if (Object.entries(P).forEach(([N, B]) => {
23919
- N in G && G[N] !== B && (G[N] = B, K = !0);
23920
- }), !K)
23939
+ let w = !1;
23940
+ if (Object.entries(K).forEach(([N, B]) => {
23941
+ N in G && G[N] !== B && (G[N] = B, w = !0);
23942
+ }), !w)
23921
23943
  return;
23922
- const w = [...n.value.varButtons];
23923
- w.splice(n.value.varButtons.indexOf(G), 1, { ...G }), n.value.varButtons = toRaw(w);
23944
+ const P = [...n.value.varButtons];
23945
+ P.splice(n.value.varButtons.indexOf(G), 1, { ...G }), n.value.varButtons = toRaw(P);
23924
23946
  }
23925
23947
  function T(O) {
23926
- const { varName: F } = O, P = n.value.varButtons.find((K) => K.var_nam === F);
23927
- if (!P)
23948
+ const { varName: F } = O, K = n.value.varButtons.find((w) => w.var_nam === F);
23949
+ if (!K)
23928
23950
  return;
23929
23951
  const G = [...n.value.varButtons];
23930
- G.splice(n.value.varButtons.indexOf(P), 1), n.value.varButtons = toRaw(G);
23952
+ G.splice(n.value.varButtons.indexOf(K), 1), n.value.varButtons = toRaw(G);
23931
23953
  }
23932
23954
  function E(O) {
23933
- var K;
23934
- const { varName: F, varText: P } = O;
23955
+ var w;
23956
+ const { varName: F, varText: K } = O;
23935
23957
  if (!F)
23936
23958
  return;
23937
- const G = n.value.varConfigDescriptions.find((w) => w.var_nam === F);
23959
+ const G = n.value.varConfigDescriptions.find((P) => P.var_nam === F);
23938
23960
  if (G) {
23939
- G.var_text = P || F;
23961
+ G.var_text = K || F;
23940
23962
  return;
23941
23963
  }
23942
23964
  n.value.varConfigDescriptions = [
@@ -23945,27 +23967,27 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
23945
23967
  cust_lvl: KG_CUSTOM_LEVEL.L0,
23946
23968
  frm_id: o.value,
23947
23969
  grp_nam: "WMS",
23948
- locale_id: (K = e.locale) == null ? void 0 : K.value,
23970
+ locale_id: (w = e.locale) == null ? void 0 : w.value,
23949
23971
  var_nam: F,
23950
- var_text: P || F
23972
+ var_text: K || F
23951
23973
  }
23952
23974
  ];
23953
23975
  }
23954
- function C(O) {
23976
+ function k(O) {
23955
23977
  n.value.varProfileDetails = O.map((F) => ({
23956
23978
  ...F,
23957
23979
  frm_id: o.value,
23958
23980
  grp_nam: "WMS"
23959
23981
  }));
23960
23982
  }
23961
- function R(O) {
23983
+ function C(O) {
23962
23984
  n.value.varGridDetails = O.map((F) => ({
23963
23985
  ...F,
23964
23986
  frm_id: o.value,
23965
23987
  grp_nam: "WMS"
23966
23988
  }));
23967
23989
  }
23968
- function k(O) {
23990
+ function R(O) {
23969
23991
  n.value.varSubmitDetails = O.map((F) => ({
23970
23992
  ...F,
23971
23993
  cust_lvl: KG_CUSTOM_LEVEL.L0,
@@ -23976,8 +23998,8 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
23976
23998
  }));
23977
23999
  }
23978
24000
  function y(O) {
23979
- var F, P, G;
23980
- return O && (G = (P = (F = n.value.varConfigDescriptions) == null ? void 0 : F.find((K) => K.var_nam === O)) == null ? void 0 : P.var_text) != null ? G : "";
24001
+ var F, K, G;
24002
+ return O && (G = (K = (F = n.value.varConfigDescriptions) == null ? void 0 : F.find((w) => w.var_nam === O)) == null ? void 0 : K.var_text) != null ? G : "";
23981
24003
  }
23982
24004
  function A() {
23983
24005
  var O;
@@ -24067,8 +24089,8 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
24067
24089
  function V() {
24068
24090
  var O;
24069
24091
  (O = n.value.varButtons) == null || O.forEach((F) => {
24070
- var P, G;
24071
- F.typDsc = (G = (P = t.value.find((K) => K.codval === F.typ)) == null ? void 0 : P.shortDsc) != null ? G : "";
24092
+ var K, G;
24093
+ F.typDsc = (G = (K = t.value.find((w) => w.codval === F.typ)) == null ? void 0 : K.shortDsc) != null ? G : "";
24072
24094
  });
24073
24095
  }
24074
24096
  async function I() {
@@ -24102,13 +24124,13 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
24102
24124
  setFormID: g,
24103
24125
  setIsLoading: u,
24104
24126
  setResultSetMetadataColumns: _,
24105
- setVarGridDetails: R,
24106
- setVarProfileDetails: C,
24107
- setVarSubmitDetails: k,
24127
+ setVarGridDetails: C,
24128
+ setVarProfileDetails: k,
24129
+ setVarSubmitDetails: R,
24108
24130
  updateVarDda: d
24109
24131
  };
24110
24132
  });
24111
- function _isSlot(e) {
24133
+ function _isSlot$1(e) {
24112
24134
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
24113
24135
  }
24114
24136
  const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
@@ -24255,7 +24277,7 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
24255
24277
  let _;
24256
24278
  return createVNode(Select.Option, {
24257
24279
  value: "maintenance"
24258
- }, _isSlot(_ = a.t("kg.KgPageDdaCreateBasic.maintenance")) ? _ : {
24280
+ }, _isSlot$1(_ = a.t("kg.KgPageDdaCreateBasic.maintenance")) ? _ : {
24259
24281
  default: () => [_]
24260
24282
  });
24261
24283
  },
@@ -24495,35 +24517,35 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
24495
24517
  switch (!0) {
24496
24518
  case _: {
24497
24519
  const {
24498
- var_nam: C,
24499
- var_text: R
24520
+ var_nam: k,
24521
+ var_text: C
24500
24522
  } = (m = d.value) != null ? m : {};
24501
24523
  n.createVarButton(new VarButton(d.value)), n.updateVarConfigDescription({
24502
- varName: C,
24503
- varText: R
24524
+ varName: k,
24525
+ varText: C
24504
24526
  }), r.kgButton.setCurrentButton(null);
24505
24527
  break;
24506
24528
  }
24507
24529
  case g: {
24508
24530
  const {
24509
- var_nam: C,
24510
- var_text: R
24531
+ var_nam: k,
24532
+ var_text: C
24511
24533
  } = (p = d.value) != null ? p : {};
24512
24534
  n.patchVarButton({
24513
- varName: C,
24535
+ varName: k,
24514
24536
  properties: (T = d.value) != null ? T : {}
24515
24537
  }), n.updateVarConfigDescription({
24516
- varName: C,
24517
- varText: R
24538
+ varName: k,
24539
+ varText: C
24518
24540
  }), r.kgButton.setCurrentButton(null);
24519
24541
  break;
24520
24542
  }
24521
24543
  case v: {
24522
24544
  (E = d.value) == null || E.forEach(({
24523
- var_nam: C
24545
+ var_nam: k
24524
24546
  }) => {
24525
24547
  n.deleteVarButton({
24526
- varName: C
24548
+ varName: k
24527
24549
  });
24528
24550
  }), r.kgButton.setCurrentButton(null);
24529
24551
  break;
@@ -24861,14 +24883,14 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
24861
24883
  getCheckboxProps: (E) => ({
24862
24884
  disabled: d || E.disabled || typeof E.id == "string" && E.id.startsWith(__KG__CUSTOM_ROW_ID__)
24863
24885
  }),
24864
- onSelectAll(E, C) {
24865
- const R = C.filter((k) => !k.disabled).map(({
24866
- key: k
24867
- }) => k);
24868
- p(R, E);
24886
+ onSelectAll(E, k) {
24887
+ const C = k.filter((R) => !R.disabled).map(({
24888
+ key: R
24889
+ }) => R);
24890
+ p(C, E);
24869
24891
  },
24870
- onSelect(E, C) {
24871
- T(E.key, C);
24892
+ onSelect(E, k) {
24893
+ T(E.key, k);
24872
24894
  },
24873
24895
  selectedRowKeys: m,
24874
24896
  columnWidth: 32
@@ -24929,13 +24951,13 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
24929
24951
  selectedKeys: p,
24930
24952
  disabled: T,
24931
24953
  onItemSelectAll: E,
24932
- onItemSelect: C
24954
+ onItemSelect: k
24933
24955
  }) => {
24934
- const R = m.sort((k, y) => {
24956
+ const C = m.sort((R, y) => {
24935
24957
  var A, V;
24936
- return ((A = k.srtseq) != null ? A : 0) - ((V = y.srtseq) != null ? V : 0);
24958
+ return ((A = R.srtseq) != null ? A : 0) - ((V = y.srtseq) != null ? V : 0);
24937
24959
  });
24938
- return d === "right" && (l.value = R, R.find((k) => k.id === __KG__CREATE_ROW_ID__) || R.push({
24960
+ return d === "right" && (l.value = C, C.find((R) => R.id === __KG__CREATE_ROW_ID__) || C.push({
24939
24961
  id: __KG__CREATE_ROW_ID__,
24940
24962
  direction: "right",
24941
24963
  disabled: !0
@@ -24949,15 +24971,15 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
24949
24971
  },
24950
24972
  columns: d === "left" ? s() : o(),
24951
24973
  rowKey: "id",
24952
- dataSource: R,
24953
- customRow: (k) => ({
24954
- onClick: (A) => g(A, k, d, p)
24974
+ dataSource: C,
24975
+ customRow: (R) => ({
24976
+ onClick: (A) => g(A, R, d, p)
24955
24977
  }),
24956
24978
  rowSelection: _({
24957
24979
  disabled: T,
24958
24980
  selectedKeys: p,
24959
24981
  onItemSelectAll: E,
24960
- onItemSelect: C
24982
+ onItemSelect: k
24961
24983
  })
24962
24984
  }, null);
24963
24985
  }
@@ -25104,14 +25126,14 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
25104
25126
  getCheckboxProps: (E) => ({
25105
25127
  disabled: d || E.disabled || typeof E.id == "string" && E.id.startsWith(__KG__CUSTOM_ROW_ID__)
25106
25128
  }),
25107
- onSelectAll(E, C) {
25108
- const R = C.filter((k) => !k.disabled).map(({
25109
- key: k
25110
- }) => k);
25111
- p(R, E);
25129
+ onSelectAll(E, k) {
25130
+ const C = k.filter((R) => !R.disabled).map(({
25131
+ key: R
25132
+ }) => R);
25133
+ p(C, E);
25112
25134
  },
25113
- onSelect(E, C) {
25114
- T(E.key, C);
25135
+ onSelect(E, k) {
25136
+ T(E.key, k);
25115
25137
  },
25116
25138
  selectedRowKeys: m,
25117
25139
  columnWidth: 32
@@ -25171,13 +25193,13 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
25171
25193
  selectedKeys: p,
25172
25194
  disabled: T,
25173
25195
  onItemSelectAll: E,
25174
- onItemSelect: C
25196
+ onItemSelect: k
25175
25197
  }) => {
25176
- const R = m.sort((k, y) => {
25198
+ const C = m.sort((R, y) => {
25177
25199
  var A, V;
25178
- return ((A = k.srtseq) != null ? A : 0) - ((V = y.srtseq) != null ? V : 0);
25200
+ return ((A = R.srtseq) != null ? A : 0) - ((V = y.srtseq) != null ? V : 0);
25179
25201
  });
25180
- return d === "right" && (l.value = R, R.find((k) => k.id === __KG__CREATE_ROW_ID__) || R.push({
25202
+ return d === "right" && (l.value = C, C.find((R) => R.id === __KG__CREATE_ROW_ID__) || C.push({
25181
25203
  id: __KG__CREATE_ROW_ID__,
25182
25204
  direction: "right",
25183
25205
  disabled: !0
@@ -25191,15 +25213,15 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
25191
25213
  },
25192
25214
  columns: d === "left" ? s() : o(),
25193
25215
  rowKey: "id",
25194
- dataSource: R,
25195
- customRow: (k) => ({
25196
- onClick: (A) => g(A, k, d, p)
25216
+ dataSource: C,
25217
+ customRow: (R) => ({
25218
+ onClick: (A) => g(A, R, d, p)
25197
25219
  }),
25198
25220
  rowSelection: _({
25199
25221
  disabled: T,
25200
25222
  selectedKeys: p,
25201
25223
  onItemSelectAll: E,
25202
- onItemSelect: C
25224
+ onItemSelect: k
25203
25225
  })
25204
25226
  }, null);
25205
25227
  }
@@ -25345,14 +25367,14 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
25345
25367
  getCheckboxProps: (E) => ({
25346
25368
  disabled: d || E.disabled || typeof E.id == "string" && E.id.startsWith(__KG__CUSTOM_ROW_ID__)
25347
25369
  }),
25348
- onSelectAll(E, C) {
25349
- const R = C.filter((k) => !k.disabled).map(({
25350
- key: k
25351
- }) => k);
25352
- p(R, E);
25370
+ onSelectAll(E, k) {
25371
+ const C = k.filter((R) => !R.disabled).map(({
25372
+ key: R
25373
+ }) => R);
25374
+ p(C, E);
25353
25375
  },
25354
- onSelect(E, C) {
25355
- T(E.key, C);
25376
+ onSelect(E, k) {
25377
+ T(E.key, k);
25356
25378
  },
25357
25379
  selectedRowKeys: m,
25358
25380
  columnWidth: 32
@@ -25412,13 +25434,13 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
25412
25434
  selectedKeys: p,
25413
25435
  disabled: T,
25414
25436
  onItemSelectAll: E,
25415
- onItemSelect: C
25437
+ onItemSelect: k
25416
25438
  }) => {
25417
- const R = m.sort((k, y) => {
25439
+ const C = m.sort((R, y) => {
25418
25440
  var A, V;
25419
- return ((A = k.srtseq) != null ? A : 0) - ((V = y.srtseq) != null ? V : 0);
25441
+ return ((A = R.srtseq) != null ? A : 0) - ((V = y.srtseq) != null ? V : 0);
25420
25442
  });
25421
- return d === "right" && (l.value = R, R.find((k) => k.id === __KG__CREATE_ROW_ID__) || R.push({
25443
+ return d === "right" && (l.value = C, C.find((R) => R.id === __KG__CREATE_ROW_ID__) || C.push({
25422
25444
  id: __KG__CREATE_ROW_ID__,
25423
25445
  direction: "right",
25424
25446
  disabled: !0
@@ -25432,15 +25454,15 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
25432
25454
  },
25433
25455
  columns: d === "left" ? s() : o(),
25434
25456
  rowKey: "id",
25435
- dataSource: R,
25436
- customRow: (k) => ({
25437
- onClick: (A) => g(A, k, d, p)
25457
+ dataSource: C,
25458
+ customRow: (R) => ({
25459
+ onClick: (A) => g(A, R, d, p)
25438
25460
  }),
25439
25461
  rowSelection: _({
25440
25462
  disabled: T,
25441
25463
  selectedKeys: p,
25442
25464
  onItemSelectAll: E,
25443
- onItemSelect: C
25465
+ onItemSelect: k
25444
25466
  })
25445
25467
  }, null);
25446
25468
  }
@@ -25458,24 +25480,24 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
25458
25480
  emit: t
25459
25481
  }) {
25460
25482
  const a = useKg(), r = useKgPageDdaCreateStore(getPinia()), n = ref(1), i = computed(() => {
25461
- let R = "kg-page-dda-create";
25462
- return R += ` kg-page-dda-create--step-${n.value}`, R;
25483
+ let C = "kg-page-dda-create";
25484
+ return C += ` kg-page-dda-create--step-${n.value}`, C;
25463
25485
  }), l = computed(() => !!r.getIsLoading), s = computed(() => !!r.getIsLoading), o = computed(() => !!r.getIsLoading), c = computed(() => !1), u = ref(null), _ = ref(null), g = ref(null), v = ref(null), d = ref(null), m = ref(null);
25464
25486
  function p() {
25465
25487
  n.value !== 1 && (n.value -= 1);
25466
25488
  }
25467
25489
  async function T() {
25468
- var R, k, y, A, V;
25490
+ var C, R, y, A, V;
25469
25491
  switch (n.value) {
25470
25492
  case 1:
25471
25493
  try {
25472
- await ((R = u.value) == null ? void 0 : R.onSubmit()), n.value += 1;
25494
+ await ((C = u.value) == null ? void 0 : C.onSubmit()), n.value += 1;
25473
25495
  } catch {
25474
25496
  }
25475
25497
  break;
25476
25498
  case 2:
25477
25499
  try {
25478
- await ((k = _.value) == null ? void 0 : k.onSubmit()), n.value += 1;
25500
+ await ((R = _.value) == null ? void 0 : R.onSubmit()), n.value += 1;
25479
25501
  } catch {
25480
25502
  }
25481
25503
  break;
@@ -25500,43 +25522,43 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
25500
25522
  }
25501
25523
  }
25502
25524
  async function E() {
25503
- var R;
25525
+ var C;
25504
25526
  try {
25505
- await ((R = m.value) == null ? void 0 : R.onSubmit());
25506
- const k = cloneDeep(toRaw(r.getCreateVarDdaQuery)), y = uniq(compact([...k.varButtons.map((A) => A.var_nam), ...k.varGridDetails.map((A) => A.var_nam), ...k.varProfileDetails.map((A) => A.var_nam), ...k.varSubmitDetails.map((A) => A.var_nam), k.varGridMaster.grd_var_nam, k.varProfileMaster.prf_var_nam]));
25507
- k.varVariables = y.map((A) => new VarVariable({
25508
- frm_id: k.frmId,
25527
+ await ((C = m.value) == null ? void 0 : C.onSubmit());
25528
+ const R = cloneDeep(toRaw(r.getCreateVarDdaQuery)), y = uniq(compact([...R.varButtons.map((A) => A.var_nam), ...R.varGridDetails.map((A) => A.var_nam), ...R.varProfileDetails.map((A) => A.var_nam), ...R.varSubmitDetails.map((A) => A.var_nam), R.varGridMaster.grd_var_nam, R.varProfileMaster.prf_var_nam]));
25529
+ R.varVariables = y.map((A) => new VarVariable({
25530
+ frm_id: R.frmId,
25509
25531
  var_nam: A,
25510
25532
  grp_nam: "WMS"
25511
- })), k.varConfigDescriptions = toRaw(k.varConfigDescriptions.filter((A) => y.includes(A.var_nam))), k.varButtons.forEach((A, V) => {
25533
+ })), R.varConfigDescriptions = toRaw(R.varConfigDescriptions.filter((A) => y.includes(A.var_nam))), R.varButtons.forEach((A, V) => {
25512
25534
  var I, O, F;
25513
- delete A.id, k.sysPermissions.push({
25535
+ delete A.id, R.sysPermissions.push({
25514
25536
  app: "WEB",
25515
25537
  delFlag: 0,
25516
25538
  leaf: !0,
25517
25539
  menuType: 2,
25518
- name: (O = (I = k.varConfigDescriptions.find((P) => P.var_nam === A.var_nam)) == null ? void 0 : I.var_text) != null ? O : "",
25540
+ name: (O = (I = R.varConfigDescriptions.find((K) => K.var_nam === A.var_nam)) == null ? void 0 : I.var_text) != null ? O : "",
25519
25541
  parentId: "",
25520
25542
  perms: (F = A.permission_code) != null ? F : "",
25521
25543
  permsType: "0",
25522
25544
  route: !1,
25523
25545
  sortNo: V + 1,
25524
25546
  status: "1"
25525
- }), A.typ !== KG__VAR_BUTTON__TYPE.SEARCH && (k.varSubmitConfigs.push({
25547
+ }), A.typ !== KG__VAR_BUTTON__TYPE.SEARCH && (R.varSubmitConfigs.push({
25526
25548
  button_var_name: A.var_nam,
25527
25549
  cust_lvl: KG_CUSTOM_LEVEL.L0,
25528
- frm_id: k.frmId
25529
- }), A.typ !== KG__VAR_BUTTON__TYPE.DELETE && k.varSubmitDetails.push(...k.varSubmitDetails.filter((P) => !P.button_var_name).map((P) => ({
25530
- ...P,
25550
+ frm_id: R.frmId
25551
+ }), A.typ !== KG__VAR_BUTTON__TYPE.DELETE && R.varSubmitDetails.push(...R.varSubmitDetails.filter((K) => !K.button_var_name).map((K) => ({
25552
+ ...K,
25531
25553
  button_var_name: A.var_nam
25532
25554
  }))));
25533
- }), k.varSubmitDetails = k.varSubmitDetails.filter((A) => !!A.button_var_name), await Create({
25534
- data: k
25555
+ }), R.varSubmitDetails = R.varSubmitDetails.filter((A) => !!A.button_var_name), await Create({
25556
+ data: R
25535
25557
  }), message.success(a.t("\u521B\u5EFA\u6210\u529F.")), t("update:kgVisible", !1), t("kgOk"), r.initCreateVarDdaQuery();
25536
25558
  } catch {
25537
25559
  }
25538
25560
  }
25539
- function C() {
25561
+ function k() {
25540
25562
  KgUtil.confirm({
25541
25563
  content: a.t("kg.KgPageDdaCreate.confirm-cancel"),
25542
25564
  onOk: () => {
@@ -25617,7 +25639,7 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
25617
25639
  }), createVNode(Button, {
25618
25640
  danger: !0,
25619
25641
  disabled: c.value,
25620
- onClick: C
25642
+ onClick: k
25621
25643
  }, {
25622
25644
  default: () => [createVNode(StopOutlined$1, null, null), a.t("kg.cancel")]
25623
25645
  })])]);
@@ -25670,42 +25692,78 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
25670
25692
  "onUpdate:kgVisible": (i) => a.value.kgVisible = i
25671
25693
  }, null)]);
25672
25694
  }
25673
- });
25674
- /*!
25675
- * vue-router v4.1.6
25676
- * (c) 2022 Eduardo San Martin Morote
25677
- * @license MIT
25678
- */
25679
- var NavigationType;
25680
- (function(e) {
25681
- e.pop = "pop", e.push = "push";
25682
- })(NavigationType || (NavigationType = {}));
25683
- var NavigationDirection;
25684
- (function(e) {
25685
- e.back = "back", e.forward = "forward", e.unknown = "";
25686
- })(NavigationDirection || (NavigationDirection = {}));
25687
- Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
25688
- var NavigationFailureType;
25689
- (function(e) {
25690
- e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
25691
- })(NavigationFailureType || (NavigationFailureType = {}));
25692
- Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
25693
- Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
25694
- Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
25695
- const routeLocationKey = Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
25696
- Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
25697
- function useRoute() {
25698
- return inject(routeLocationKey);
25699
- }
25700
- const KgPageDdaIndex$1 = "", KgPageDdaIndex = defineComponent({
25701
- name: "KgPageDdaIndex",
25702
- setup() {
25703
- const e = useRoute().params.id;
25704
- return useKgVar(e, !0), () => createVNode(KgVar, {
25705
- KgBackgroundGray: !0
25706
- }, null);
25707
- }
25708
- });
25695
+ }), KgVarContainer$1 = "";
25696
+ function _isSlot(e) {
25697
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
25698
+ }
25699
+ function KgVarContainer(e) {
25700
+ const {
25701
+ formID: t
25702
+ } = e != null ? e : {};
25703
+ return t ? defineComponent({
25704
+ name: t,
25705
+ setup() {
25706
+ const a = useKgVar(t, !0), r = ref("0"), n = ref({
25707
+ kgHeight: 442,
25708
+ kgMinHeight: 42
25709
+ }), i = computed(() => {
25710
+ const s = /* @__PURE__ */ new Map();
25711
+ return a.varChildDetails.value.forEach((o) => {
25712
+ const c = o.child_form_id;
25713
+ s.has(c) || s.set(c, KgVarContainer({
25714
+ formID: c
25715
+ }));
25716
+ }), s;
25717
+ });
25718
+ function l(s) {
25719
+ var _;
25720
+ const {
25721
+ varChildDetail: o,
25722
+ index: c
25723
+ } = s != null ? s : {};
25724
+ if (!(o != null && o.child_form_id))
25725
+ return null;
25726
+ const u = useKgVar(o == null ? void 0 : o.child_form_id);
25727
+ return u.requestAll(), createVNode(TabPane, {
25728
+ key: String(c),
25729
+ tab: u.t((_ = u.varDda.value) == null ? void 0 : _.frm_nam).value
25730
+ }, {
25731
+ default: () => h(i.value.get(u.formID), {
25732
+ key: u.formID
25733
+ })
25734
+ });
25735
+ }
25736
+ return () => {
25737
+ let s;
25738
+ return createVNode("div", {
25739
+ class: "kg-var-container"
25740
+ }, [createVNode(KgVar, {
25741
+ KgBackgroundGray: !0
25742
+ }, null), a.varChildDetails.value.length > 0 ? createVNode(KgResizable, {
25743
+ kgHeight: n.value.kgHeight,
25744
+ "onUpdate:kgHeight": (o) => n.value.kgHeight = o,
25745
+ kgMinHeight: n.value.kgMinHeight,
25746
+ kgType: "top"
25747
+ }, {
25748
+ default: () => [createVNode(Tabs, {
25749
+ activeKey: r.value,
25750
+ "onUpdate:activeKey": (o) => r.value = o
25751
+ }, _isSlot(s = a.varChildDetails.value.map((o, c) => l({
25752
+ varChildDetail: o,
25753
+ index: c
25754
+ }))) ? s : {
25755
+ default: () => [s]
25756
+ })]
25757
+ }) : null]);
25758
+ };
25759
+ }
25760
+ }) : defineComponent({
25761
+ name: "KgVarContainer-NULL",
25762
+ setup() {
25763
+ return () => null;
25764
+ }
25765
+ });
25766
+ }
25709
25767
  function KG_ROUTES(e) {
25710
25768
  return [
25711
25769
  {
@@ -25718,7 +25776,7 @@ function KG_ROUTES(e) {
25718
25776
  path: `${t}/dda/:id`,
25719
25777
  name: `${t}/dda/index`,
25720
25778
  component: e,
25721
- children: [{ path: "", name: "KgPageDdaIndex", component: KgPageDdaIndex }]
25779
+ children: [{ path: "", name: "KgVarContainer", component: {} }]
25722
25780
  }))
25723
25781
  ];
25724
25782
  }
@@ -25793,7 +25851,6 @@ export {
25793
25851
  KgLogger,
25794
25852
  KgModal,
25795
25853
  KgPageDda,
25796
- KgPageDdaIndex,
25797
25854
  KgProgressA,
25798
25855
  KgResizable,
25799
25856
  KgRouteUtil,
@@ -25803,6 +25860,7 @@ export {
25803
25860
  KgUtil,
25804
25861
  KgVar,
25805
25862
  KgVarConfig,
25863
+ KgVarContainer,
25806
25864
  KgVarUtil,
25807
25865
  KgWarehouse,
25808
25866
  KgYesOrNo,