@kengic/vue 0.10.5 → 0.10.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -2195,9 +2195,9 @@ setTwoToneColor("#1890ff");
2195
2195
  var Icon$1 = function(t, r) {
2196
2196
  var a, n = _objectSpread$k({}, t, r.attrs), s = n.class, l = n.icon, o = n.spin, i = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, m = _objectWithoutProperties(n, _excluded), v = (a = {
2197
2197
  anticon: !0
2198
- }, _defineProperty$k(a, "anticon-".concat(l.name), Boolean(l.name)), _defineProperty$k(a, s, s), a), E = o === "" || !!o || l.name === "loading" ? "anticon-spin" : "", p = c;
2199
- p === void 0 && d && (p = -1, m.tabindex = p);
2200
- var g = i ? {
2198
+ }, _defineProperty$k(a, "anticon-".concat(l.name), Boolean(l.name)), _defineProperty$k(a, s, s), a), E = o === "" || !!o || l.name === "loading" ? "anticon-spin" : "", g = c;
2199
+ g === void 0 && d && (g = -1, m.tabindex = g);
2200
+ var p = i ? {
2201
2201
  msTransform: "rotate(".concat(i, "deg)"),
2202
2202
  transform: "rotate(".concat(i, "deg)")
2203
2203
  } : void 0, y = normalizeTwoToneColors(u), b = _slicedToArray(y, 2), C = b[0], k = b[1];
@@ -2212,7 +2212,7 @@ var Icon$1 = function(t, r) {
2212
2212
  icon: l,
2213
2213
  primaryColor: C,
2214
2214
  secondaryColor: k,
2215
- style: g
2215
+ style: p
2216
2216
  }, null)]);
2217
2217
  };
2218
2218
  Icon$1.props = {
@@ -3021,38 +3021,38 @@ function iconToSVG(e, t) {
3021
3021
  };
3022
3022
  let s = r.body;
3023
3023
  [r, a].forEach((E) => {
3024
- const p = [], g = E.hFlip, y = E.vFlip;
3024
+ const g = [], p = E.hFlip, y = E.vFlip;
3025
3025
  let b = E.rotate;
3026
- g ? y ? b += 2 : (p.push(
3026
+ p ? y ? b += 2 : (g.push(
3027
3027
  "translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
3028
- ), p.push("scale(-1 1)"), n.top = n.left = 0) : y && (p.push(
3028
+ ), g.push("scale(-1 1)"), n.top = n.left = 0) : y && (g.push(
3029
3029
  "translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
3030
- ), p.push("scale(1 -1)"), n.top = n.left = 0);
3030
+ ), g.push("scale(1 -1)"), n.top = n.left = 0);
3031
3031
  let C;
3032
3032
  switch (b < 0 && (b -= Math.floor(b / 4) * 4), b = b % 4, b) {
3033
3033
  case 1:
3034
- C = n.height / 2 + n.top, p.unshift(
3034
+ C = n.height / 2 + n.top, g.unshift(
3035
3035
  "rotate(90 " + C.toString() + " " + C.toString() + ")"
3036
3036
  );
3037
3037
  break;
3038
3038
  case 2:
3039
- p.unshift(
3039
+ g.unshift(
3040
3040
  "rotate(180 " + (n.width / 2 + n.left).toString() + " " + (n.height / 2 + n.top).toString() + ")"
3041
3041
  );
3042
3042
  break;
3043
3043
  case 3:
3044
- C = n.width / 2 + n.left, p.unshift(
3044
+ C = n.width / 2 + n.left, g.unshift(
3045
3045
  "rotate(-90 " + C.toString() + " " + C.toString() + ")"
3046
3046
  );
3047
3047
  break;
3048
3048
  }
3049
- b % 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)), p.length && (s = '<g transform="' + p.join(" ") + '">' + s + "</g>");
3049
+ b % 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)), g.length && (s = '<g transform="' + g.join(" ") + '">' + s + "</g>");
3050
3050
  });
3051
3051
  const l = a.width, o = a.height, i = n.width, c = n.height;
3052
3052
  let u, d;
3053
3053
  l === null ? (d = o === null ? "1em" : o === "auto" ? c : o, u = calculateSize(d, i / c)) : (u = l === "auto" ? i : l, d = o === null ? calculateSize(u, c / i) : o === "auto" ? c : o);
3054
- const m = {}, v = (E, p) => {
3055
- isUnsetKeyword(p) || (m[E] = p.toString());
3054
+ const m = {}, v = (E, g) => {
3055
+ isUnsetKeyword(g) || (m[E] = g.toString());
3056
3056
  };
3057
3057
  return v("width", u), v("height", d), m.viewBox = n.left.toString() + " " + n.top.toString() + " " + i.toString() + " " + c.toString(), {
3058
3058
  attributes: m,
@@ -3340,12 +3340,12 @@ function sendQuery(e, t, r, a) {
3340
3340
  function E() {
3341
3341
  d && (clearTimeout(d), d = null);
3342
3342
  }
3343
- function p() {
3343
+ function g() {
3344
3344
  i === "pending" && (i = "aborted"), E(), m.forEach((T) => {
3345
3345
  T.status === "pending" && (T.status = "aborted");
3346
3346
  }), m = [];
3347
3347
  }
3348
- function g(T, $) {
3348
+ function p(T, $) {
3349
3349
  $ && (v = []), typeof T == "function" && v.push(T);
3350
3350
  }
3351
3351
  function y() {
@@ -3355,8 +3355,8 @@ function sendQuery(e, t, r, a) {
3355
3355
  status: i,
3356
3356
  queriesSent: c,
3357
3357
  queriesPending: m.length,
3358
- subscribe: g,
3359
- abort: p
3358
+ subscribe: p,
3359
+ abort: g
3360
3360
  };
3361
3361
  }
3362
3362
  function b() {
@@ -3795,10 +3795,10 @@ function fixSize(e) {
3795
3795
  }
3796
3796
  const render = (e, t) => {
3797
3797
  const r = mergeCustomisations(defaultExtendedIconCustomisations, t), a = { ...svgDefaults }, n = t.mode || "svg", s = {}, l = t.style, o = typeof l == "object" && !(l instanceof Array) ? l : {};
3798
- for (let p in t) {
3799
- const g = t[p];
3800
- if (g !== void 0)
3801
- switch (p) {
3798
+ for (let g in t) {
3799
+ const p = t[g];
3800
+ if (p !== void 0)
3801
+ switch (g) {
3802
3802
  case "icon":
3803
3803
  case "style":
3804
3804
  case "onLoad":
@@ -3807,24 +3807,24 @@ const render = (e, t) => {
3807
3807
  case "inline":
3808
3808
  case "hFlip":
3809
3809
  case "vFlip":
3810
- r[p] = g === !0 || g === "true" || g === 1;
3810
+ r[g] = p === !0 || p === "true" || p === 1;
3811
3811
  break;
3812
3812
  case "flip":
3813
- typeof g == "string" && flipFromString(r, g);
3813
+ typeof p == "string" && flipFromString(r, p);
3814
3814
  break;
3815
3815
  case "color":
3816
- s.color = g;
3816
+ s.color = p;
3817
3817
  break;
3818
3818
  case "rotate":
3819
- typeof g == "string" ? r[p] = rotateFromString(g) : typeof g == "number" && (r[p] = g);
3819
+ typeof p == "string" ? r[g] = rotateFromString(p) : typeof p == "number" && (r[g] = p);
3820
3820
  break;
3821
3821
  case "ariaHidden":
3822
3822
  case "aria-hidden":
3823
- g !== !0 && g !== "true" && delete a["aria-hidden"];
3823
+ p !== !0 && p !== "true" && delete a["aria-hidden"];
3824
3824
  break;
3825
3825
  default: {
3826
- const y = customisationAliases[p];
3827
- y ? (g === !0 || g === "true" || g === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[p] === void 0 && (a[p] = g);
3826
+ const y = customisationAliases[g];
3827
+ y ? (p === !0 || p === "true" || p === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[g] === void 0 && (a[g] = p);
3828
3828
  }
3829
3829
  }
3830
3830
  }
@@ -3834,8 +3834,8 @@ const render = (e, t) => {
3834
3834
  ...s,
3835
3835
  ...o
3836
3836
  }, Object.assign(a, c);
3837
- let p = 0, g = t.id;
3838
- return typeof g == "string" && (g = g.replace(/-/g, "_")), a.innerHTML = replaceIDs(i.body, g ? () => g + "ID" + p++ : "iconifyVue"), h("svg", a);
3837
+ let g = 0, p = t.id;
3838
+ return typeof p == "string" && (p = p.replace(/-/g, "_")), a.innerHTML = replaceIDs(i.body, p ? () => p + "ID" + g++ : "iconifyVue"), h("svg", a);
3839
3839
  }
3840
3840
  const { body: u, width: d, height: m } = e, v = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1), E = iconToHTML(u, {
3841
3841
  ...c,
@@ -3939,7 +3939,7 @@ const emptyIcon = {
3939
3939
  ...t.data
3940
3940
  }, r);
3941
3941
  }
3942
- }), name = "@kengic/vue", version = "0.10.5", data$1 = {
3942
+ }), name = "@kengic/vue", version = "0.10.6", data$1 = {
3943
3943
  width: 24,
3944
3944
  height: 24,
3945
3945
  body: '<path fill="currentColor" d="M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h11.175q.4 0 .763.15t.637.425l2.85 2.85q.275.275.425.638t.15.762V12.3q-.475-.2-.988-.263T19 12.05V7.825L16.175 5H5v14h6v2H5ZM5 5v14V5Zm8 17v-1.65q0-.2.075-.388t.225-.337l5.225-5.2q.225-.225.5-.325t.55-.1q.3 0 .575.113t.5.337l.925.925q.2.225.313.5t.112.55q0 .275-.1.563t-.325.512l-5.2 5.2q-.15.15-.338.225T15.65 23H14q-.425 0-.712-.287T13 22Zm7.5-5.575l-.925-.925l.925.925Zm-6 5.075h.95l3.025-3.05l-.45-.475l-.475-.45l-3.05 3.025v.95Zm3.525-3.525l-.475-.45l.925.925l-.45-.475ZM7 10h7q.425 0 .713-.288T15 9V7q0-.425-.288-.713T14 6H7q-.425 0-.713.288T6 7v2q0 .425.288.713T7 10Zm5 8h.1l2.9-2.875V15q0-1.25-.875-2.125T12 12q-1.25 0-2.125.875T9 15q0 1.25.875 2.125T12 18Z"/>'
@@ -3958,7 +3958,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3958
3958
  (function(r, a) {
3959
3959
  e.exports = a();
3960
3960
  })(commonjsGlobal, function() {
3961
- var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", E = "date", p = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { 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(D) {
3961
+ var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", E = "date", g = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { 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(D) {
3962
3962
  var w = ["th", "st", "nd", "rd"], R = D % 100;
3963
3963
  return "[" + D + (w[(R - 20) % 10] || w[R] || w[0]) + "]";
3964
3964
  } }, C = function(D, w, R) {
@@ -3970,8 +3970,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3970
3970
  }, m: function D(w, R) {
3971
3971
  if (w.date() < R.date())
3972
3972
  return -D(R, w);
3973
- var x = 12 * (R.year() - w.year()) + (R.month() - w.month()), F = w.clone().add(x, d), K = R - F < 0, B = w.clone().add(x + (K ? -1 : 1), d);
3974
- return +(-(x + (R - F) / (K ? F - B : B - F)) || 0);
3973
+ var x = 12 * (R.year() - w.year()) + (R.month() - w.month()), F = w.clone().add(x, d), Y = R - F < 0, K = w.clone().add(x + (Y ? -1 : 1), d);
3974
+ return +(-(x + (R - F) / (Y ? F - K : K - F)) || 0);
3975
3975
  }, a: function(D) {
3976
3976
  return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
3977
3977
  }, p: function(D) {
@@ -3987,14 +3987,14 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3987
3987
  if (!w)
3988
3988
  return A;
3989
3989
  if (typeof w == "string") {
3990
- var K = w.toLowerCase();
3991
- T[K] && (F = K), R && (T[K] = R, F = K);
3992
- var B = w.split("-");
3993
- if (!F && B.length > 1)
3994
- return D(B[0]);
3990
+ var Y = w.toLowerCase();
3991
+ T[Y] && (F = Y), R && (T[Y] = R, F = Y);
3992
+ var K = w.split("-");
3993
+ if (!F && K.length > 1)
3994
+ return D(K[0]);
3995
3995
  } else {
3996
- var W = w.name;
3997
- T[W] = w, F = W;
3996
+ var G = w.name;
3997
+ T[G] = w, F = G;
3998
3998
  }
3999
3999
  return !x && F && (A = F), F || !x && A;
4000
4000
  }, M = function(D, w) {
@@ -4013,7 +4013,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4013
4013
  var w = D.prototype;
4014
4014
  return w.parse = function(R) {
4015
4015
  this.$d = function(x) {
4016
- var F = x.date, K = x.utc;
4016
+ var F = x.date, Y = x.utc;
4017
4017
  if (F === null)
4018
4018
  return new Date(NaN);
4019
4019
  if (P.u(F))
@@ -4021,10 +4021,10 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4021
4021
  if (F instanceof Date)
4022
4022
  return new Date(F);
4023
4023
  if (typeof F == "string" && !/Z$/i.test(F)) {
4024
- var B = F.match(g);
4025
- if (B) {
4026
- var W = B[2] - 1 || 0, q = (B[7] || "0").substring(0, 3);
4027
- return K ? new Date(Date.UTC(B[1], W, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, q)) : new Date(B[1], W, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, q);
4024
+ var K = F.match(p);
4025
+ if (K) {
4026
+ var G = K[2] - 1 || 0, z = (K[7] || "0").substring(0, 3);
4027
+ return Y ? new Date(Date.UTC(K[1], G, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, z)) : new Date(K[1], G, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, z);
4028
4028
  }
4029
4029
  }
4030
4030
  return new Date(F);
@@ -4035,7 +4035,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4035
4035
  }, w.$utils = function() {
4036
4036
  return P;
4037
4037
  }, w.isValid = function() {
4038
- return this.$d.toString() !== p;
4038
+ return this.$d.toString() !== g;
4039
4039
  }, w.isSame = function(R, x) {
4040
4040
  var F = M(R);
4041
4041
  return this.startOf(x) <= F && F <= this.endOf(x);
@@ -4050,78 +4050,78 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4050
4050
  }, w.valueOf = function() {
4051
4051
  return this.$d.getTime();
4052
4052
  }, w.startOf = function(R, x) {
4053
- var F = this, K = !!P.u(x) || x, B = P.p(R), W = function(fe, ne) {
4054
- var pe = P.w(F.$u ? Date.UTC(F.$y, ne, fe) : new Date(F.$y, ne, fe), F);
4055
- return K ? pe : pe.endOf(c);
4056
- }, q = function(fe, ne) {
4057
- return P.w(F.toDate()[fe].apply(F.toDate("s"), (K ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), F);
4058
- }, X = this.$W, Q = this.$M, ee = this.$D, le = "set" + (this.$u ? "UTC" : "");
4059
- switch (B) {
4053
+ var F = this, Y = !!P.u(x) || x, K = P.p(R), G = function(fe, se) {
4054
+ var pe = P.w(F.$u ? Date.UTC(F.$y, se, fe) : new Date(F.$y, se, fe), F);
4055
+ return Y ? pe : pe.endOf(c);
4056
+ }, z = function(fe, se) {
4057
+ return P.w(F.toDate()[fe].apply(F.toDate("s"), (Y ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(se)), F);
4058
+ }, X = this.$W, Q = this.$M, ee = this.$D, ae = "set" + (this.$u ? "UTC" : "");
4059
+ switch (K) {
4060
4060
  case v:
4061
- return K ? W(1, 0) : W(31, 11);
4061
+ return Y ? G(1, 0) : G(31, 11);
4062
4062
  case d:
4063
- return K ? W(1, Q) : W(0, Q + 1);
4063
+ return Y ? G(1, Q) : G(0, Q + 1);
4064
4064
  case u:
4065
4065
  var _e = this.$locale().weekStart || 0, he = (X < _e ? X + 7 : X) - _e;
4066
- return W(K ? ee - he : ee + (6 - he), Q);
4066
+ return G(Y ? ee - he : ee + (6 - he), Q);
4067
4067
  case c:
4068
4068
  case E:
4069
- return q(le + "Hours", 0);
4069
+ return z(ae + "Hours", 0);
4070
4070
  case i:
4071
- return q(le + "Minutes", 1);
4071
+ return z(ae + "Minutes", 1);
4072
4072
  case o:
4073
- return q(le + "Seconds", 2);
4073
+ return z(ae + "Seconds", 2);
4074
4074
  case l:
4075
- return q(le + "Milliseconds", 3);
4075
+ return z(ae + "Milliseconds", 3);
4076
4076
  default:
4077
4077
  return this.clone();
4078
4078
  }
4079
4079
  }, w.endOf = function(R) {
4080
4080
  return this.startOf(R, !1);
4081
4081
  }, w.$set = function(R, x) {
4082
- var F, K = P.p(R), B = "set" + (this.$u ? "UTC" : ""), W = (F = {}, F[c] = B + "Date", F[E] = B + "Date", F[d] = B + "Month", F[v] = B + "FullYear", F[i] = B + "Hours", F[o] = B + "Minutes", F[l] = B + "Seconds", F[s] = B + "Milliseconds", F)[K], q = K === c ? this.$D + (x - this.$W) : x;
4083
- if (K === d || K === v) {
4082
+ var F, Y = P.p(R), K = "set" + (this.$u ? "UTC" : ""), G = (F = {}, F[c] = K + "Date", F[E] = K + "Date", F[d] = K + "Month", F[v] = K + "FullYear", F[i] = K + "Hours", F[o] = K + "Minutes", F[l] = K + "Seconds", F[s] = K + "Milliseconds", F)[Y], z = Y === c ? this.$D + (x - this.$W) : x;
4083
+ if (Y === d || Y === v) {
4084
4084
  var X = this.clone().set(E, 1);
4085
- X.$d[W](q), X.init(), this.$d = X.set(E, Math.min(this.$D, X.daysInMonth())).$d;
4085
+ X.$d[G](z), X.init(), this.$d = X.set(E, Math.min(this.$D, X.daysInMonth())).$d;
4086
4086
  } else
4087
- W && this.$d[W](q);
4087
+ G && this.$d[G](z);
4088
4088
  return this.init(), this;
4089
4089
  }, w.set = function(R, x) {
4090
4090
  return this.clone().$set(R, x);
4091
4091
  }, w.get = function(R) {
4092
4092
  return this[P.p(R)]();
4093
4093
  }, w.add = function(R, x) {
4094
- var F, K = this;
4094
+ var F, Y = this;
4095
4095
  R = Number(R);
4096
- var B = P.p(x), W = function(Q) {
4097
- var ee = M(K);
4098
- return P.w(ee.date(ee.date() + Math.round(Q * R)), K);
4096
+ var K = P.p(x), G = function(Q) {
4097
+ var ee = M(Y);
4098
+ return P.w(ee.date(ee.date() + Math.round(Q * R)), Y);
4099
4099
  };
4100
- if (B === d)
4100
+ if (K === d)
4101
4101
  return this.set(d, this.$M + R);
4102
- if (B === v)
4102
+ if (K === v)
4103
4103
  return this.set(v, this.$y + R);
4104
- if (B === c)
4105
- return W(1);
4106
- if (B === u)
4107
- return W(7);
4108
- var q = (F = {}, F[o] = a, F[i] = n, F[l] = r, F)[B] || 1, X = this.$d.getTime() + R * q;
4104
+ if (K === c)
4105
+ return G(1);
4106
+ if (K === u)
4107
+ return G(7);
4108
+ var z = (F = {}, F[o] = a, F[i] = n, F[l] = r, F)[K] || 1, X = this.$d.getTime() + R * z;
4109
4109
  return P.w(X, this);
4110
4110
  }, w.subtract = function(R, x) {
4111
4111
  return this.add(-1 * R, x);
4112
4112
  }, w.format = function(R) {
4113
4113
  var x = this, F = this.$locale();
4114
4114
  if (!this.isValid())
4115
- return F.invalidDate || p;
4116
- var K = R || "YYYY-MM-DDTHH:mm:ssZ", B = P.z(this), W = this.$H, q = this.$m, X = this.$M, Q = F.weekdays, ee = F.months, le = F.meridiem, _e = function(ne, pe, ye, ve) {
4117
- return ne && (ne[pe] || ne(x, K)) || ye[pe].slice(0, ve);
4118
- }, he = function(ne) {
4119
- return P.s(W % 12 || 12, ne, "0");
4120
- }, fe = le || function(ne, pe, ye) {
4121
- var ve = ne < 12 ? "AM" : "PM";
4115
+ return F.invalidDate || g;
4116
+ var Y = R || "YYYY-MM-DDTHH:mm:ssZ", K = P.z(this), G = this.$H, z = this.$m, X = this.$M, Q = F.weekdays, ee = F.months, ae = F.meridiem, _e = function(se, pe, ye, ve) {
4117
+ return se && (se[pe] || se(x, Y)) || ye[pe].slice(0, ve);
4118
+ }, he = function(se) {
4119
+ return P.s(G % 12 || 12, se, "0");
4120
+ }, fe = ae || function(se, pe, ye) {
4121
+ var ve = se < 12 ? "AM" : "PM";
4122
4122
  return ye ? ve.toLowerCase() : ve;
4123
4123
  };
4124
- return K.replace(y, function(ne, pe) {
4124
+ return Y.replace(y, function(se, pe) {
4125
4125
  return pe || function(ye) {
4126
4126
  switch (ye) {
4127
4127
  case "YY":
@@ -4149,21 +4149,21 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4149
4149
  case "dddd":
4150
4150
  return Q[x.$W];
4151
4151
  case "H":
4152
- return String(W);
4152
+ return String(G);
4153
4153
  case "HH":
4154
- return P.s(W, 2, "0");
4154
+ return P.s(G, 2, "0");
4155
4155
  case "h":
4156
4156
  return he(1);
4157
4157
  case "hh":
4158
4158
  return he(2);
4159
4159
  case "a":
4160
- return fe(W, q, !0);
4160
+ return fe(G, z, !0);
4161
4161
  case "A":
4162
- return fe(W, q, !1);
4162
+ return fe(G, z, !1);
4163
4163
  case "m":
4164
- return String(q);
4164
+ return String(z);
4165
4165
  case "mm":
4166
- return P.s(q, 2, "0");
4166
+ return P.s(z, 2, "0");
4167
4167
  case "s":
4168
4168
  return String(x.$s);
4169
4169
  case "ss":
@@ -4171,46 +4171,46 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4171
4171
  case "SSS":
4172
4172
  return P.s(x.$ms, 3, "0");
4173
4173
  case "Z":
4174
- return B;
4174
+ return K;
4175
4175
  }
4176
4176
  return null;
4177
- }(ne) || B.replace(":", "");
4177
+ }(se) || K.replace(":", "");
4178
4178
  });
4179
4179
  }, w.utcOffset = function() {
4180
4180
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4181
4181
  }, w.diff = function(R, x, F) {
4182
- var K, B = this, W = P.p(x), q = M(R), X = (q.utcOffset() - this.utcOffset()) * a, Q = this - q, ee = function() {
4183
- return P.m(B, q);
4182
+ var Y, K = this, G = P.p(x), z = M(R), X = (z.utcOffset() - this.utcOffset()) * a, Q = this - z, ee = function() {
4183
+ return P.m(K, z);
4184
4184
  };
4185
- switch (W) {
4185
+ switch (G) {
4186
4186
  case v:
4187
- K = ee() / 12;
4187
+ Y = ee() / 12;
4188
4188
  break;
4189
4189
  case d:
4190
- K = ee();
4190
+ Y = ee();
4191
4191
  break;
4192
4192
  case m:
4193
- K = ee() / 3;
4193
+ Y = ee() / 3;
4194
4194
  break;
4195
4195
  case u:
4196
- K = (Q - X) / 6048e5;
4196
+ Y = (Q - X) / 6048e5;
4197
4197
  break;
4198
4198
  case c:
4199
- K = (Q - X) / 864e5;
4199
+ Y = (Q - X) / 864e5;
4200
4200
  break;
4201
4201
  case i:
4202
- K = Q / n;
4202
+ Y = Q / n;
4203
4203
  break;
4204
4204
  case o:
4205
- K = Q / a;
4205
+ Y = Q / a;
4206
4206
  break;
4207
4207
  case l:
4208
- K = Q / r;
4208
+ Y = Q / r;
4209
4209
  break;
4210
4210
  default:
4211
- K = Q;
4211
+ Y = Q;
4212
4212
  }
4213
- return F ? K : P.a(K);
4213
+ return F ? Y : P.a(Y);
4214
4214
  }, w.daysInMonth = function() {
4215
4215
  return this.endOf(d).$D;
4216
4216
  }, w.$locale = function() {
@@ -4218,8 +4218,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4218
4218
  }, w.locale = function(R, x) {
4219
4219
  if (!R)
4220
4220
  return this.$L;
4221
- var F = this.clone(), K = I(R, x, !0);
4222
- return K && (F.$L = K), F;
4221
+ var F = this.clone(), Y = I(R, x, !0);
4222
+ return Y && (F.$L = Y), F;
4223
4223
  }, w.clone = function() {
4224
4224
  return P.w(this.$d, this);
4225
4225
  }, w.toDate = function() {
@@ -4282,17 +4282,17 @@ function filesize(e, {
4282
4282
  fullform: m = !1,
4283
4283
  fullforms: v = [],
4284
4284
  exponent: E = -1,
4285
- roundingMethod: p = ROUND,
4286
- precision: g = 0
4285
+ roundingMethod: g = ROUND,
4286
+ precision: p = 0
4287
4287
  } = {}) {
4288
4288
  let y = E, b = Number(e), C = [], k = 0, A = EMPTY;
4289
4289
  u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
4290
- const T = a === 10 ? 1e3 : 1024, $ = m === !0, O = b < 0, I = Math[p];
4290
+ const T = a === 10 ? 1e3 : 1024, $ = m === !0, O = b < 0, I = Math[g];
4291
4291
  if (typeof e != "bigint" && isNaN(e))
4292
4292
  throw new TypeError(INVALID_NUMBER);
4293
4293
  if (typeof I !== FUNCTION)
4294
4294
  throw new TypeError(INVALID_ROUND);
4295
- if (O && (b = -b), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(b) / Math.log(T)), y < 0 && (y = 0)), y > 8 && (g > 0 && (g += 8 - y), y = 8), d === EXPONENT)
4295
+ if (O && (b = -b), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(b) / Math.log(T)), y < 0 && (y = 0)), y > 8 && (p > 0 && (p += 8 - y), y = 8), d === EXPONENT)
4296
4296
  return y;
4297
4297
  if (b === 0)
4298
4298
  C[0] = 0, A = C[1] = STRINGS.symbol[u][t ? BITS : BYTES][y];
@@ -4301,7 +4301,7 @@ function filesize(e, {
4301
4301
  const M = Math.pow(10, y > 0 ? n : 0);
4302
4302
  C[0] = I(k * M) / M, C[0] === T && y < 8 && E === -1 && (C[0] = 1, y++), A = C[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][y];
4303
4303
  }
4304
- if (O && (C[0] = -C[0]), g > 0 && (C[0] = C[0].toPrecision(g)), C[1] = c[C[1]] || C[1], s === !0 ? C[0] = C[0].toLocaleString() : s.length > 0 ? C[0] = C[0].toLocaleString(s, l) : o.length > 0 && (C[0] = C[0].toString().replace(PERIOD, o)), r && Number.isInteger(C[0]) === !1 && n > 0) {
4304
+ if (O && (C[0] = -C[0]), p > 0 && (C[0] = C[0].toPrecision(p)), C[1] = c[C[1]] || C[1], s === !0 ? C[0] = C[0].toLocaleString() : s.length > 0 ? C[0] = C[0].toLocaleString(s, l) : o.length > 0 && (C[0] = C[0].toString().replace(PERIOD, o)), r && Number.isInteger(C[0]) === !1 && n > 0) {
4305
4305
  const M = o || PERIOD, P = C[0].toString().split(M), V = P[1] || EMPTY, L = V.length, D = n - L;
4306
4306
  C[0] = `${P[0]}${M}${V.padEnd(L + D, ZERO)}`;
4307
4307
  }
@@ -5354,14 +5354,14 @@ function baseClone(e, t, r, a, n, s) {
5354
5354
  var v = s.get(e);
5355
5355
  if (v)
5356
5356
  return v;
5357
- s.set(e, l), isSet$1(e) ? e.forEach(function(g) {
5358
- l.add(baseClone(g, t, r, g, e, s));
5359
- }) : isMap$1(e) && e.forEach(function(g, y) {
5360
- l.set(y, baseClone(g, t, r, y, e, s));
5357
+ s.set(e, l), isSet$1(e) ? e.forEach(function(p) {
5358
+ l.add(baseClone(p, t, r, p, e, s));
5359
+ }) : isMap$1(e) && e.forEach(function(p, y) {
5360
+ l.set(y, baseClone(p, t, r, y, e, s));
5361
5361
  });
5362
- var E = c ? i ? getAllKeysIn : getAllKeys : i ? keysIn : keys, p = u ? void 0 : E(e);
5363
- return arrayEach(p || e, function(g, y) {
5364
- p && (y = g, g = e[y]), assignValue(l, y, baseClone(g, t, r, y, e, s));
5362
+ var E = c ? i ? getAllKeysIn : getAllKeys : i ? keysIn : keys, g = u ? void 0 : E(e);
5363
+ return arrayEach(g || e, function(p, y) {
5364
+ g && (y = p, p = e[y]), assignValue(l, y, baseClone(p, t, r, y, e, s));
5365
5365
  }), l;
5366
5366
  }
5367
5367
  var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
@@ -5401,11 +5401,11 @@ function equalArrays(e, t, r, a, n, s) {
5401
5401
  return c == t && u == e;
5402
5402
  var d = -1, m = !0, v = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
5403
5403
  for (s.set(e, t), s.set(t, e); ++d < o; ) {
5404
- var E = e[d], p = t[d];
5404
+ var E = e[d], g = t[d];
5405
5405
  if (a)
5406
- var g = l ? a(p, E, d, t, e, s) : a(E, p, d, e, t, s);
5407
- if (g !== void 0) {
5408
- if (g)
5406
+ var p = l ? a(g, E, d, t, e, s) : a(E, g, d, e, t, s);
5407
+ if (p !== void 0) {
5408
+ if (p)
5409
5409
  continue;
5410
5410
  m = !1;
5411
5411
  break;
@@ -5418,7 +5418,7 @@ function equalArrays(e, t, r, a, n, s) {
5418
5418
  m = !1;
5419
5419
  break;
5420
5420
  }
5421
- } else if (!(E === p || n(E, p, r, a, s))) {
5421
+ } else if (!(E === g || n(E, g, r, a, s))) {
5422
5422
  m = !1;
5423
5423
  break;
5424
5424
  }
@@ -5486,24 +5486,24 @@ function equalObjects(e, t, r, a, n, s) {
5486
5486
  var v = s.get(e), E = s.get(t);
5487
5487
  if (v && E)
5488
5488
  return v == t && E == e;
5489
- var p = !0;
5489
+ var g = !0;
5490
5490
  s.set(e, t), s.set(t, e);
5491
- for (var g = l; ++d < i; ) {
5491
+ for (var p = l; ++d < i; ) {
5492
5492
  m = o[d];
5493
5493
  var y = e[m], b = t[m];
5494
5494
  if (a)
5495
5495
  var C = l ? a(b, y, m, t, e, s) : a(y, b, m, e, t, s);
5496
5496
  if (!(C === void 0 ? y === b || n(y, b, r, a, s) : C)) {
5497
- p = !1;
5497
+ g = !1;
5498
5498
  break;
5499
5499
  }
5500
- g || (g = m == "constructor");
5500
+ p || (p = m == "constructor");
5501
5501
  }
5502
- if (p && !g) {
5502
+ if (g && !p) {
5503
5503
  var k = e.constructor, A = t.constructor;
5504
- k != A && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof A == "function" && A instanceof A) && (p = !1);
5504
+ k != A && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof A == "function" && A instanceof A) && (g = !1);
5505
5505
  }
5506
- return s.delete(e), s.delete(t), p;
5506
+ return s.delete(e), s.delete(t), g;
5507
5507
  }
5508
5508
  var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
5509
5509
  function baseIsEqualDeep(e, t, r, a, n, s) {
@@ -5520,8 +5520,8 @@ function baseIsEqualDeep(e, t, r, a, n, s) {
5520
5520
  if (!(r & COMPARE_PARTIAL_FLAG$2)) {
5521
5521
  var v = u && hasOwnProperty.call(e, "__wrapped__"), E = d && hasOwnProperty.call(t, "__wrapped__");
5522
5522
  if (v || E) {
5523
- var p = v ? e.value() : e, g = E ? t.value() : t;
5524
- return s || (s = new Stack()), n(p, g, r, a, s);
5523
+ var g = v ? e.value() : e, p = E ? t.value() : t;
5524
+ return s || (s = new Stack()), n(g, p, r, a, s);
5525
5525
  }
5526
5526
  }
5527
5527
  return m ? (s || (s = new Stack()), equalObjects(e, t, r, a, n, s)) : !1;
@@ -5660,19 +5660,19 @@ function debounce(e, t, r) {
5660
5660
  function E(T) {
5661
5661
  return c = T, o = setTimeout(y, t), u ? v(T) : l;
5662
5662
  }
5663
- function p(T) {
5663
+ function g(T) {
5664
5664
  var $ = T - i, O = T - c, I = t - $;
5665
5665
  return d ? nativeMin$1(I, s - O) : I;
5666
5666
  }
5667
- function g(T) {
5667
+ function p(T) {
5668
5668
  var $ = T - i, O = T - c;
5669
5669
  return i === void 0 || $ >= t || $ < 0 || d && O >= s;
5670
5670
  }
5671
5671
  function y() {
5672
5672
  var T = now$1();
5673
- if (g(T))
5673
+ if (p(T))
5674
5674
  return b(T);
5675
- o = setTimeout(y, p(T));
5675
+ o = setTimeout(y, g(T));
5676
5676
  }
5677
5677
  function b(T) {
5678
5678
  return o = void 0, m && a ? v(T) : (a = n = void 0, l);
@@ -5684,7 +5684,7 @@ function debounce(e, t, r) {
5684
5684
  return o === void 0 ? l : b(now$1());
5685
5685
  }
5686
5686
  function A() {
5687
- var T = now$1(), $ = g(T);
5687
+ var T = now$1(), $ = p(T);
5688
5688
  if (a = arguments, n = this, i = T, $) {
5689
5689
  if (o === void 0)
5690
5690
  return E(i);
@@ -5783,8 +5783,8 @@ function baseIntersection(e, t, r) {
5783
5783
  var v = u[d], E = t ? t(v) : v;
5784
5784
  if (v = r || v !== 0 ? v : 0, !(m ? cacheHas(m, E) : a(c, E, r))) {
5785
5785
  for (l = s; --l; ) {
5786
- var p = o[l];
5787
- if (!(p ? cacheHas(p, E) : a(e[l], E, r)))
5786
+ var g = o[l];
5787
+ if (!(g ? cacheHas(g, E) : a(e[l], E, r)))
5788
5788
  continue e;
5789
5789
  }
5790
5790
  m && m.push(E), c.push(v);
@@ -6395,16 +6395,16 @@ class KgUtil {
6395
6395
  s[d] = n[d];
6396
6396
  return;
6397
6397
  }
6398
- const m = i.store.getVarProfileDetail(r, d), v = m != null && m.table_alias ? `${m == null ? void 0 : m.table_alias}.` : "", E = n[d], p = u == null ? void 0 : u[d];
6398
+ const m = i.store.getVarProfileDetail(r, d), v = m != null && m.table_alias ? `${m == null ? void 0 : m.table_alias}.` : "", E = n[d], g = u == null ? void 0 : u[d];
6399
6399
  switch (!0) {
6400
6400
  case d.endsWith("_obj"): {
6401
6401
  s[d] = void 0;
6402
6402
  break;
6403
6403
  }
6404
6404
  case (!!a && a.isDayjs(E)): {
6405
- const g = E;
6406
- let y = this.parseParamFromDayJS(d, g, r);
6407
- switch (p) {
6405
+ const p = E;
6406
+ let y = this.parseParamFromDayJS(d, p, r);
6407
+ switch (g) {
6408
6408
  case KG_DYNAMIC_QUERY_OPERATOR.NE:
6409
6409
  break;
6410
6410
  case KG_DYNAMIC_QUERY_OPERATOR.LT:
@@ -6420,15 +6420,15 @@ class KgUtil {
6420
6420
  let b = y, C = "";
6421
6421
  switch (!0) {
6422
6422
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(b): {
6423
- C = g.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
6423
+ C = p.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
6424
6424
  break;
6425
6425
  }
6426
6426
  case /\d\d-\d\d-\d\d/.test(b): {
6427
- C = g.add(1, "day").format("YYYY-MM-DD");
6427
+ C = p.add(1, "day").format("YYYY-MM-DD");
6428
6428
  break;
6429
6429
  }
6430
6430
  case /\d\d:\d\d:\d\d/.test(b): {
6431
- b = g.format("1970-01-01 HH:mm:ss"), C = g.add(1, "second").format("1970-01-01 HH:mm:ss");
6431
+ b = p.format("1970-01-01 HH:mm:ss"), C = p.add(1, "second").format("1970-01-01 HH:mm:ss");
6432
6432
  break;
6433
6433
  }
6434
6434
  }
@@ -6439,8 +6439,8 @@ class KgUtil {
6439
6439
  break;
6440
6440
  }
6441
6441
  case (!!a && isArray$1(E) && E.length === 2 && a.isDayjs(E[0]) && a.isDayjs(E[1])): {
6442
- const g = E[0], y = E[1];
6443
- let b = this.parseParamFromDayJS(d, g, r), C = "", k = "";
6442
+ const p = E[0], y = E[1];
6443
+ let b = this.parseParamFromDayJS(d, p, r), C = "", k = "";
6444
6444
  switch (!0) {
6445
6445
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(b): {
6446
6446
  C = y.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
@@ -6451,7 +6451,7 @@ class KgUtil {
6451
6451
  break;
6452
6452
  }
6453
6453
  case /\d\d:\d\d:\d\d/.test(b): {
6454
- b = g.format("1970-01-01 HH:mm:ss"), C = y.add(1, "second").format("1970-01-01 HH:mm:ss");
6454
+ b = p.format("1970-01-01 HH:mm:ss"), C = y.add(1, "second").format("1970-01-01 HH:mm:ss");
6455
6455
  break;
6456
6456
  }
6457
6457
  }
@@ -6463,8 +6463,8 @@ class KgUtil {
6463
6463
  s[d] = void 0;
6464
6464
  break;
6465
6465
  }
6466
- const g = E.map((y) => `'${String(y)}'`).join(", ");
6467
- s[d] = ` AND (${v}${d} IN (${g}))`;
6466
+ const p = E.map((y) => `'${String(y)}'`).join(", ");
6467
+ s[d] = ` AND (${v}${d} IN (${p}))`;
6468
6468
  break;
6469
6469
  }
6470
6470
  case isObjectLike(E):
@@ -6474,79 +6474,79 @@ class KgUtil {
6474
6474
  s[d] = void 0;
6475
6475
  break;
6476
6476
  }
6477
- let g = this.parseParams(E, r, a);
6478
- switch (p) {
6477
+ let p = this.parseParams(E, r, a);
6478
+ switch (g) {
6479
6479
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
6480
- g = ` AND (${v}${d} <> '${g}')`;
6480
+ p = ` AND (${v}${d} <> '${p}')`;
6481
6481
  break;
6482
6482
  }
6483
6483
  case KG_DYNAMIC_QUERY_OPERATOR.START_WITH: {
6484
- g = ` AND (${v}${d} LIKE '${g}%')`;
6484
+ p = ` AND (${v}${d} LIKE '${p}%')`;
6485
6485
  break;
6486
6486
  }
6487
6487
  case KG_DYNAMIC_QUERY_OPERATOR.END_WITH: {
6488
- g = ` AND (${v}${d} LIKE '%${g}')`;
6488
+ p = ` AND (${v}${d} LIKE '%${p}')`;
6489
6489
  break;
6490
6490
  }
6491
6491
  case KG_DYNAMIC_QUERY_OPERATOR.CONTAIN: {
6492
- g = ` AND (${v}${d} LIKE '%${g}%')`;
6492
+ p = ` AND (${v}${d} LIKE '%${p}%')`;
6493
6493
  break;
6494
6494
  }
6495
6495
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
6496
6496
  default: {
6497
- g = ` AND (${v}${d} = '${g}')`;
6497
+ p = ` AND (${v}${d} = '${p}')`;
6498
6498
  break;
6499
6499
  }
6500
6500
  }
6501
- s[d] = g;
6501
+ s[d] = p;
6502
6502
  break;
6503
6503
  }
6504
6504
  case typeof E == "number": {
6505
- let g = "";
6506
- switch (p) {
6505
+ let p = "";
6506
+ switch (g) {
6507
6507
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
6508
- g = ` AND (${v}${d} <> ${E})`;
6508
+ p = ` AND (${v}${d} <> ${E})`;
6509
6509
  break;
6510
6510
  }
6511
6511
  case KG_DYNAMIC_QUERY_OPERATOR.LT: {
6512
- g = ` AND (${v}${d} < ${E})`;
6512
+ p = ` AND (${v}${d} < ${E})`;
6513
6513
  break;
6514
6514
  }
6515
6515
  case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
6516
- g = ` AND (${v}${d} <= ${E})`;
6516
+ p = ` AND (${v}${d} <= ${E})`;
6517
6517
  break;
6518
6518
  }
6519
6519
  case KG_DYNAMIC_QUERY_OPERATOR.GT: {
6520
- g = ` AND (${v}${d} > ${E})`;
6520
+ p = ` AND (${v}${d} > ${E})`;
6521
6521
  break;
6522
6522
  }
6523
6523
  case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
6524
- g = ` AND (${v}${d} >= ${E})`;
6524
+ p = ` AND (${v}${d} >= ${E})`;
6525
6525
  break;
6526
6526
  }
6527
6527
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
6528
6528
  default: {
6529
- g = ` AND (${v}${d} = ${E})`;
6529
+ p = ` AND (${v}${d} = ${E})`;
6530
6530
  break;
6531
6531
  }
6532
6532
  }
6533
- s[d] = g;
6533
+ s[d] = p;
6534
6534
  break;
6535
6535
  }
6536
6536
  case typeof E == "boolean": {
6537
- let g = "";
6538
- switch (p) {
6537
+ let p = "";
6538
+ switch (g) {
6539
6539
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
6540
- g = ` AND (${v}${d} <> ${E ? 1 : 0})`;
6540
+ p = ` AND (${v}${d} <> ${E ? 1 : 0})`;
6541
6541
  break;
6542
6542
  }
6543
6543
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
6544
6544
  default: {
6545
- g = ` AND (${v}${d} = ${E ? 1 : 0})`;
6545
+ p = ` AND (${v}${d} = ${E ? 1 : 0})`;
6546
6546
  break;
6547
6547
  }
6548
6548
  }
6549
- s[d] = g;
6549
+ s[d] = p;
6550
6550
  break;
6551
6551
  }
6552
6552
  default: {
@@ -6827,8 +6827,8 @@ class KgVarUtil {
6827
6827
  let i = n;
6828
6828
  const c = /(.*)?({(.*)?})(.*)?/.exec(i);
6829
6829
  if (c) {
6830
- const p = c[2];
6831
- switch (c[2].slice(1, -1), p) {
6830
+ const g = c[2];
6831
+ switch (c[2].slice(1, -1), g) {
6832
6832
  case "{NOW}":
6833
6833
  i = i.replace("{NOW}", a().format("YYYY-MM-DD HH:mm:ss"));
6834
6834
  break;
@@ -6841,20 +6841,20 @@ class KgVarUtil {
6841
6841
  if (!u)
6842
6842
  return i;
6843
6843
  const d = (() => {
6844
- const p = u.ctrl_typ, g = u.prf_ctrl_typ, y = u.crt_ctrl_typ, b = u.upt_ctrl_typ, C = u.cpy_ctrl_typ, k = u.del_ctrl_typ;
6844
+ const g = u.ctrl_typ, p = u.prf_ctrl_typ, y = u.crt_ctrl_typ, b = u.upt_ctrl_typ, C = u.cpy_ctrl_typ, k = u.del_ctrl_typ;
6845
6845
  switch (s) {
6846
6846
  case "R":
6847
- return g || p;
6847
+ return p || g;
6848
6848
  case "C":
6849
- return y || p;
6849
+ return y || g;
6850
6850
  case "U":
6851
- return b || p;
6851
+ return b || g;
6852
6852
  case "CP":
6853
- return C || p;
6853
+ return C || g;
6854
6854
  case "D":
6855
- return k || p;
6855
+ return k || g;
6856
6856
  }
6857
- return p;
6857
+ return g;
6858
6858
  })();
6859
6859
  switch (d) {
6860
6860
  case KG_FORM_ITEM_TYPE.INPUT:
@@ -6864,8 +6864,8 @@ class KgVarUtil {
6864
6864
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER: {
6865
6865
  if (isNil(i))
6866
6866
  return;
6867
- const p = Number(i);
6868
- if (Number.isNaN(p)) {
6867
+ const g = Number(i);
6868
+ if (Number.isNaN(g)) {
6869
6869
  KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
6870
6870
  frm_id: t,
6871
6871
  var_nam: r,
@@ -6873,14 +6873,14 @@ class KgVarUtil {
6873
6873
  });
6874
6874
  return;
6875
6875
  }
6876
- return p;
6876
+ return g;
6877
6877
  }
6878
6878
  case KG_FORM_ITEM_TYPE.CHECKBOX:
6879
6879
  case KG_FORM_ITEM_TYPE.SWITCH: {
6880
6880
  if (isNil(i))
6881
6881
  return 0;
6882
- const p = Number(i);
6883
- if (Number.isNaN(p)) {
6882
+ const g = Number(i);
6883
+ if (Number.isNaN(g)) {
6884
6884
  KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
6885
6885
  frm_id: t,
6886
6886
  var_nam: r,
@@ -6888,7 +6888,7 @@ class KgVarUtil {
6888
6888
  });
6889
6889
  return;
6890
6890
  }
6891
- if (![0, 1].includes(p)) {
6891
+ if (![0, 1].includes(g)) {
6892
6892
  KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A 0 \u6216 1.`, {
6893
6893
  frm_id: t,
6894
6894
  var_nam: r,
@@ -6896,14 +6896,14 @@ class KgVarUtil {
6896
6896
  });
6897
6897
  return;
6898
6898
  }
6899
- return p;
6899
+ return g;
6900
6900
  }
6901
6901
  case KG_FORM_ITEM_TYPE.DATE_TIME: {
6902
6902
  if (isNil(i) || i.trim() === "")
6903
6903
  return;
6904
- const p = a(`1970-01-01 ${i}`);
6905
- if (p != null && p.isValid())
6906
- return p;
6904
+ const g = a(`1970-01-01 ${i}`);
6905
+ if (g != null && g.isValid())
6906
+ return g;
6907
6907
  KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u65F6\u95F4\u7C7B\u578B.`, {
6908
6908
  frm_id: t,
6909
6909
  var_nam: r,
@@ -6918,9 +6918,9 @@ class KgVarUtil {
6918
6918
  case KG_FORM_ITEM_TYPE.DATE_YEAR: {
6919
6919
  if (isNil(i))
6920
6920
  return;
6921
- const p = a(i);
6922
- if (p != null && p.isValid())
6923
- return p;
6921
+ const g = a(i);
6922
+ if (g != null && g.isValid())
6923
+ return g;
6924
6924
  KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u65E5\u671F\u7C7B\u578B.`, {
6925
6925
  frm_id: t,
6926
6926
  var_nam: r,
@@ -6933,8 +6933,8 @@ class KgVarUtil {
6933
6933
  if (isNil(i))
6934
6934
  return [];
6935
6935
  try {
6936
- const p = JSON.parse(i);
6937
- if (!isArray$1(p)) {
6936
+ const g = JSON.parse(i);
6937
+ if (!isArray$1(g)) {
6938
6938
  KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
6939
6939
  frm_id: t,
6940
6940
  var_nam: r,
@@ -6942,26 +6942,26 @@ class KgVarUtil {
6942
6942
  });
6943
6943
  return;
6944
6944
  }
6945
- const g = o.store.getVarPossibility(t, r);
6946
- switch (g == null ? void 0 : g.val_data_type) {
6945
+ const p = o.store.getVarPossibility(t, r);
6946
+ switch (p == null ? void 0 : p.val_data_type) {
6947
6947
  case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
6948
- const y = p.map((b) => Number(b));
6948
+ const y = g.map((b) => Number(b));
6949
6949
  if (y.some((b) => Number.isNaN(y))) {
6950
6950
  KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
6951
6951
  frm_id: t,
6952
6952
  var_nam: r,
6953
6953
  value: i,
6954
- VarPossibility: g
6954
+ VarPossibility: p
6955
6955
  });
6956
6956
  return;
6957
6957
  }
6958
6958
  return y;
6959
6959
  }
6960
6960
  case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
6961
- return p.map((y) => Boolean(y));
6961
+ return g.map((y) => Boolean(y));
6962
6962
  case KG_POSSIBILITY_DATA_TYPE.STRING:
6963
6963
  default:
6964
- return p.map((y) => String(y));
6964
+ return g.map((y) => String(y));
6965
6965
  }
6966
6966
  } catch {
6967
6967
  KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
@@ -6975,20 +6975,20 @@ class KgVarUtil {
6975
6975
  case KG_FORM_ITEM_TYPE.SELECT: {
6976
6976
  if (isNil(i))
6977
6977
  return;
6978
- const p = o.store.getVarPossibility(t, r);
6979
- switch (p == null ? void 0 : p.val_data_type) {
6978
+ const g = o.store.getVarPossibility(t, r);
6979
+ switch (g == null ? void 0 : g.val_data_type) {
6980
6980
  case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
6981
- const g = Number(i);
6982
- if (Number.isNaN(g)) {
6981
+ const p = Number(i);
6982
+ if (Number.isNaN(p)) {
6983
6983
  KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
6984
6984
  frm_id: t,
6985
6985
  var_nam: r,
6986
6986
  value: i,
6987
- VarPossibility: p
6987
+ VarPossibility: g
6988
6988
  });
6989
6989
  return;
6990
6990
  }
6991
- return g;
6991
+ return p;
6992
6992
  }
6993
6993
  case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
6994
6994
  return Boolean(i);
@@ -7227,8 +7227,8 @@ function createSetupStore(e, t, r = {}, a, n) {
7227
7227
  let c, u, d = markRaw([]), m = markRaw([]), v;
7228
7228
  const E = a.state.value[e];
7229
7229
  !l && !E && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
7230
- const p = ref({});
7231
- function g(O) {
7230
+ const g = ref({});
7231
+ function p(O) {
7232
7232
  let I;
7233
7233
  c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof O == "function" ? (O(a.state.value[e]), I = {
7234
7234
  type: MutationType.patchFunction,
@@ -7279,12 +7279,12 @@ function createSetupStore(e, t, r = {}, a, n) {
7279
7279
  actions: {},
7280
7280
  getters: {},
7281
7281
  state: [],
7282
- hotState: p
7282
+ hotState: g
7283
7283
  }), A = {
7284
7284
  _p: a,
7285
7285
  $id: e,
7286
7286
  $onAction: addSubscription.bind(null, m),
7287
- $patch: g,
7287
+ $patch: p,
7288
7288
  $reset: y,
7289
7289
  $subscribe(O, I = {}) {
7290
7290
  const M = addSubscription(d, O, I.detached, () => P()), P = s.run(() => watch(() => a.state.value[e], (V) => {
@@ -7309,7 +7309,7 @@ function createSetupStore(e, t, r = {}, a, n) {
7309
7309
  for (const O in $) {
7310
7310
  const I = $[O];
7311
7311
  if (isRef(I) && !isComputed(I) || isReactive(I))
7312
- process.env.NODE_ENV !== "production" && n ? set(p.value, O, toRef($, O)) : l || (E && shouldHydrate(I) && (isRef(I) ? I.value = E[O] : mergeReactiveObjects(I, E[O])), a.state.value[e][O] = I), process.env.NODE_ENV !== "production" && k.state.push(O);
7312
+ process.env.NODE_ENV !== "production" && n ? set(g.value, O, toRef($, O)) : l || (E && shouldHydrate(I) && (isRef(I) ? I.value = E[O] : mergeReactiveObjects(I, E[O])), a.state.value[e][O] = I), process.env.NODE_ENV !== "production" && k.state.push(O);
7313
7313
  else if (typeof I == "function") {
7314
7314
  const M = process.env.NODE_ENV !== "production" && n ? I : C(O, I);
7315
7315
  $[O] = M, process.env.NODE_ENV !== "production" && (k.actions[O] = I), o.actions[O] = I;
@@ -7317,11 +7317,11 @@ function createSetupStore(e, t, r = {}, a, n) {
7317
7317
  process.env.NODE_ENV !== "production" && isComputed(I) && (k.getters[O] = l ? r.getters[O] : I, IS_CLIENT && ($._getters || ($._getters = markRaw([]))).push(O));
7318
7318
  }
7319
7319
  if (assign$1(T, $), assign$1(toRaw(T), $), Object.defineProperty(T, "$state", {
7320
- get: () => process.env.NODE_ENV !== "production" && n ? p.value : a.state.value[e],
7320
+ get: () => process.env.NODE_ENV !== "production" && n ? g.value : a.state.value[e],
7321
7321
  set: (O) => {
7322
7322
  if (process.env.NODE_ENV !== "production" && n)
7323
7323
  throw new Error("cannot set hotState");
7324
- g((I) => {
7324
+ p((I) => {
7325
7325
  assign$1(I, O);
7326
7326
  });
7327
7327
  }
@@ -8002,10 +8002,10 @@ const KgModal_Close = "", getProps$A = () => ({
8002
8002
  function E(b) {
8003
8003
  m(b), d();
8004
8004
  }
8005
- function p(b) {
8006
- b.stopPropagation(), b.preventDefault(), d(), !(b instanceof MouseEvent && b.which !== 1) && (s = b.pageX, l = b.pageY, a = e.kgWidth, n = e.kgHeight, o = g(document.documentElement, "mousemove", v), i = g(document.documentElement, "mouseup", E));
8005
+ function g(b) {
8006
+ b.stopPropagation(), b.preventDefault(), d(), !(b instanceof MouseEvent && b.which !== 1) && (s = b.pageX, l = b.pageY, a = e.kgWidth, n = e.kgHeight, o = p(document.documentElement, "mousemove", v), i = p(document.documentElement, "mouseup", E));
8007
8007
  }
8008
- function g(b, C, k) {
8008
+ function p(b, C, k) {
8009
8009
  return b.addEventListener(C, k), {
8010
8010
  remove: () => b.removeEventListener(C, k)
8011
8011
  };
@@ -8021,7 +8021,7 @@ const KgModal_Close = "", getProps$A = () => ({
8021
8021
  }, [createVNode("div", {
8022
8022
  class: "kg-resizable-handle",
8023
8023
  onClick: y,
8024
- onMousedown: p
8024
+ onMousedown: g
8025
8025
  }, [createVNode("div", {
8026
8026
  class: "kg-resizable-handle-line"
8027
8027
  }, null)]), (b = r.default) == null ? void 0 : b.call(r)]);
@@ -8179,12 +8179,12 @@ function createStore(e, t, r) {
8179
8179
  var m = slice(arguments, 0), v = this;
8180
8180
  function E() {
8181
8181
  if (!!u)
8182
- return each$6(arguments, function(g, y) {
8183
- m[y] = g;
8182
+ return each$6(arguments, function(p, y) {
8183
+ m[y] = p;
8184
8184
  }), u.apply(v, m);
8185
8185
  }
8186
- var p = [E].concat(m);
8187
- return i.apply(v, p);
8186
+ var g = [E].concat(m);
8187
+ return i.apply(v, g);
8188
8188
  };
8189
8189
  },
8190
8190
  _serialize: function(i) {
@@ -9255,8 +9255,8 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
9255
9255
  const {
9256
9256
  varCatalogs: v,
9257
9257
  varLookups: E,
9258
- varConfigs: p,
9259
- varVariableInputs: g,
9258
+ varConfigs: g,
9259
+ varVariableInputs: p,
9260
9260
  varPossibilities: y,
9261
9261
  varButtons: b,
9262
9262
  varButtonConfig: C,
@@ -9267,7 +9267,7 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
9267
9267
  varGrid: O,
9268
9268
  varGridConfig: I
9269
9269
  } = await GetAll({ params: { frm_id: e } });
9270
- this.varCatalogMap.set(e, v != null ? v : []), this.varLookupMap.set(e, E != null ? E : []), this.varPossibilityMap.set(e, y != null ? y : []), this.varVariableConfigMap.set(e, p != null ? p : []), this.varVariableInputMap.set(e, g != null ? g : []), this.varButtonMap.set(e, transformVarButtons(b)), this.varButtonConfigMap.set(e, transformVarButtonConfig(C != null ? C : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(k)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(A)), this.varProfileConfigMap.set(e, transformVarProfileConfig($ != null ? $ : null)), this.varProfileMap.set(e, {
9270
+ this.varCatalogMap.set(e, v != null ? v : []), this.varLookupMap.set(e, E != null ? E : []), this.varPossibilityMap.set(e, y != null ? y : []), this.varVariableConfigMap.set(e, g != null ? g : []), this.varVariableInputMap.set(e, p != null ? p : []), this.varButtonMap.set(e, transformVarButtons(b)), this.varButtonConfigMap.set(e, transformVarButtonConfig(C != null ? C : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(k)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(A)), this.varProfileConfigMap.set(e, transformVarProfileConfig($ != null ? $ : null)), this.varProfileMap.set(e, {
9271
9271
  varProfile: T != null ? T : null,
9272
9272
  currentVarProfileMasterID: (l = (s = ((t = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : t.find((M) => M.id === this.getCurrentVarProfileMasterID(e))) || ((r = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : r.find((M) => M.def_flg === 1)) || ((a = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : a.find((M) => M.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((n = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : n.find(() => !0))) == null ? void 0 : s.id) != null ? l : null
9273
9273
  }), this.varGridConfigMap.set(e, transformVarGridConfig(I != null ? I : null)), this.varGridMap.set(e, {
@@ -9482,18 +9482,18 @@ function useKgVar(e, t, r = 0) {
9482
9482
  }), onUnmounted(() => {
9483
9483
  u.dispose(c);
9484
9484
  }));
9485
- const d = (Q) => computed(() => u.t(c, Q)), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), E = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isRetrieved(c)), g = computed(() => u.isCreating(c)), y = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), C = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), A = computed(() => u.isCopyingRequesting(c)), T = computed(() => u.isDeleting(c)), $ = computed(() => u.isDeletingRequesting(c)), O = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), M = computed(() => u.getVarButtonSearch(c)), P = computed(() => u.getVarButtonCreate(c)), V = computed(() => u.getVarButtonUpdate(c)), L = computed(() => u.getVarButtonCopy(c)), D = computed(() => u.getVarButtonDelete(c)), w = computed(() => u.getVarProfileMasters(c)), R = computed(() => u.getCurrentVarProfileMaster(c)), x = computed(() => u.getCurrentVarProfileMasterID(c)), F = computed(() => {
9485
+ const d = (Q) => computed(() => u.t(c, Q)), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), E = computed(() => u.isRetrievingVarGridMaster(c)), g = computed(() => u.isRetrieved(c)), p = computed(() => u.isCreating(c)), y = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), C = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), A = computed(() => u.isCopyingRequesting(c)), T = computed(() => u.isDeleting(c)), $ = computed(() => u.isDeletingRequesting(c)), O = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), M = computed(() => u.getVarButtonSearch(c)), P = computed(() => u.getVarButtonCreate(c)), V = computed(() => u.getVarButtonUpdate(c)), L = computed(() => u.getVarButtonCopy(c)), D = computed(() => u.getVarButtonDelete(c)), w = computed(() => u.getVarProfileMasters(c)), R = computed(() => u.getCurrentVarProfileMaster(c)), x = computed(() => u.getCurrentVarProfileMasterID(c)), F = computed(() => {
9486
9486
  var Q, ee;
9487
9487
  return (ee = (Q = R.value) == null ? void 0 : Q.varProfileDetails) != null ? ee : null;
9488
- }), K = computed(() => u.getVarGridConfig(c)), B = computed(() => u.getVarGridMasters(c)), W = computed(() => u.getCurrentVarGridMaster(c)), q = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
9488
+ }), Y = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), G = computed(() => u.getCurrentVarGridMaster(c)), z = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
9489
9489
  return {
9490
9490
  formID: c,
9491
9491
  store: u,
9492
9492
  isRetrieving: m,
9493
9493
  isRetrievingVarProfileMaster: v,
9494
9494
  isRetrievingVarGridMaster: E,
9495
- isRetrieved: p,
9496
- isCreating: g,
9495
+ isRetrieved: g,
9496
+ isCreating: p,
9497
9497
  isCreatingRequesting: y,
9498
9498
  isUpdating: b,
9499
9499
  isUpdatingRequesting: C,
@@ -9512,10 +9512,10 @@ function useKgVar(e, t, r = 0) {
9512
9512
  currentVarProfileMaster: R,
9513
9513
  currentVarProfileMasterID: x,
9514
9514
  currentVarProfileDetails: F,
9515
- varGridConfig: K,
9516
- varGridMasters: B,
9517
- currentVarGridMaster: W,
9518
- systemVarGridDetails: q,
9515
+ varGridConfig: Y,
9516
+ varGridMasters: K,
9517
+ currentVarGridMaster: G,
9518
+ systemVarGridDetails: z,
9519
9519
  currentVarGridDetails: X,
9520
9520
  setIsCreating: s,
9521
9521
  setIsUpdating: l,
@@ -9561,13 +9561,13 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
9561
9561
  }), E = computed(() => {
9562
9562
  var b;
9563
9563
  return r.isRetrieved.value && ((b = c.value) == null ? void 0 : b.available_flg) !== 0;
9564
- }), p = computed(() => !!r.isOtherRequesting.value), g = computed(() => {
9564
+ }), g = computed(() => !!r.isOtherRequesting.value), p = computed(() => {
9565
9565
  let b = "kg-var";
9566
9566
  return e.KgBackgroundGray && (b += " kg-var--bg-gray"), !m.value && !v.value && !E.value && (b += " kg-var--empty"), b;
9567
9567
  });
9568
9568
  function y() {
9569
9569
  return createVNode(Spin, {
9570
- spinning: p.value
9570
+ spinning: g.value
9571
9571
  }, {
9572
9572
  default: () => {
9573
9573
  var b, C;
@@ -9578,7 +9578,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
9578
9578
  return onUnmounted(() => {
9579
9579
  a.store.dispose(r.formID), n.store.dispose(r.formID), l.store.dispose(r.formID), s.store.dispose(r.formID);
9580
9580
  }), () => createVNode("div", {
9581
- class: g.value
9581
+ class: p.value
9582
9582
  }, [y()]);
9583
9583
  }
9584
9584
  }), KgForm_Item_Addon_Lookup = "", KgForm_Item_Addon_Lookup_Modal = "", getProps$u = () => ({
@@ -9593,20 +9593,20 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
9593
9593
  emit: r
9594
9594
  }) {
9595
9595
  const a = inject(KG_DI_HOST_FORM_ID, ""), n = useKgVar(a), s = useKgForm(n.formID), l = inject(KG_DI_VAR_NAME, ""), o = inject(KG_DI_LOOKUP_ID, ""), i = inject(DI_FORM_MODEL, computed(() => ({}))), c = useKgVar(o, !0, n.store.getFormLevel(n.formID) + 1), u = useKgTable(c.formID), d = computed(() => n.store.getVarLookup(n.formID, l)), m = computed(() => {
9596
- var g;
9597
- return ((g = d == null ? void 0 : d.value) == null ? void 0 : g.mult_flg) === 1;
9596
+ var p;
9597
+ return ((p = d == null ? void 0 : d.value) == null ? void 0 : p.mult_flg) === 1;
9598
9598
  }), v = computed(() => {
9599
- var g, y;
9600
- return (y = (g = d == null ? void 0 : d.value) == null ? void 0 : g.ret_fld) != null ? y : "";
9599
+ var p, y;
9600
+ return (y = (p = d == null ? void 0 : d.value) == null ? void 0 : p.ret_fld) != null ? y : "";
9601
9601
  });
9602
- u.onRowDoubleClick(async () => (await p(), !1));
9602
+ u.onRowDoubleClick(async () => (await g(), !1));
9603
9603
  function E() {
9604
9604
  r("update:visible", !1);
9605
9605
  }
9606
- async function p() {
9607
- var g, y, b, C, k, A, T;
9606
+ async function g() {
9607
+ var p, y, b, C, k, A, T;
9608
9608
  if (m.value) {
9609
- const $ = (y = (g = u.selectedRows) == null ? void 0 : g.value) != null ? y : [], O = (b = $.map((M) => M[v.value])) != null ? b : [];
9609
+ const $ = (y = (p = u.selectedRows) == null ? void 0 : p.value) != null ? y : [], O = (b = $.map((M) => M[v.value])) != null ? b : [];
9610
9610
  await s.store.emit(s.formID, "lookupBeforeOk", {
9611
9611
  var_nam: l,
9612
9612
  isMultiple: !0,
@@ -9636,17 +9636,17 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
9636
9636
  }
9637
9637
  }
9638
9638
  return () => {
9639
- var g, y;
9639
+ var p, y;
9640
9640
  return createVNode(KgModal, {
9641
9641
  visible: e.visible,
9642
9642
  title: n.t(l).value,
9643
9643
  destroyOnClose: !0,
9644
9644
  okButtonProps: {
9645
- disabled: ((y = (g = u.selectedRows.value) == null ? void 0 : g.length) != null ? y : 0) === 0
9645
+ disabled: ((y = (p = u.selectedRows.value) == null ? void 0 : p.length) != null ? y : 0) === 0
9646
9646
  },
9647
9647
  wrapClassName: "kg-form-item-addon-lookup-modal",
9648
9648
  onCancel: E,
9649
- onOk: p
9649
+ onOk: g
9650
9650
  }, {
9651
9651
  default: () => [createVNode(KgVar, null, null)]
9652
9652
  });
@@ -9740,7 +9740,7 @@ function _useRules(e) {
9740
9740
  const t = useKg(), r = useKgVar(), a = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), n = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), s = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName));
9741
9741
  return {
9742
9742
  rules: computed(() => {
9743
- var i, c, u, d, m, v, E, p, g, y;
9743
+ var i, c, u, d, m, v, E, g, p, y;
9744
9744
  let o = [];
9745
9745
  switch (e.kgContext) {
9746
9746
  case KG_FORM_CONTEXT.SEARCH:
@@ -9782,12 +9782,12 @@ function _useRules(e) {
9782
9782
  case KG_VAR_INPUT__DATA_TYPE.NUMBER:
9783
9783
  {
9784
9784
  const b = (E = n.value) == null ? void 0 : E.min;
9785
- isNil(b) || (((p = n.value) == null ? void 0 : p.min_include_flg) === 1 ? o.push({
9785
+ isNil(b) || (((g = n.value) == null ? void 0 : g.min_include_flg) === 1 ? o.push({
9786
9786
  validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) < b ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [b])) : Promise.resolve()
9787
9787
  }) : o.push({
9788
9788
  validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) <= b ? Promise.reject(t.t("kg.KgFormItem.mustGT", [b])) : Promise.resolve()
9789
9789
  }));
9790
- const C = (g = n.value) == null ? void 0 : g.max;
9790
+ const C = (p = n.value) == null ? void 0 : p.max;
9791
9791
  isNil(C) || (((y = n.value) == null ? void 0 : y.max_include_flg) === 1 ? o.push({
9792
9792
  validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) > C ? Promise.reject(t.t("kg.KgFormItem.mustLTE", [C])) : Promise.resolve()
9793
9793
  }) : o.push({
@@ -9802,8 +9802,8 @@ function _useRules(e) {
9802
9802
  }
9803
9803
  function useKgFormItem(e) {
9804
9804
  const t = (e == null ? void 0 : e.kgVarName) || inject(KG_DI_VAR_NAME, e == null ? void 0 : e.kgVarName), r = (e == null ? void 0 : e.kgContext) || inject(DI_KG_CONTEXT, e == null ? void 0 : e.kgContext), a = useKgVar(), n = computed(() => a.store.getVarVariableConfig(a.formID, t)), s = computed(() => {
9805
- var v, E, p, g, y, b;
9806
- const o = ((v = n.value) == null ? void 0 : v.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, i = (E = n.value) == null ? void 0 : E.prf_ctrl_typ, c = (p = n.value) == null ? void 0 : p.crt_ctrl_typ, u = (g = n.value) == null ? void 0 : g.upt_ctrl_typ, d = (y = n.value) == null ? void 0 : y.cpy_ctrl_typ, m = (b = n.value) == null ? void 0 : b.del_ctrl_typ;
9805
+ var v, E, g, p, y, b;
9806
+ const o = ((v = n.value) == null ? void 0 : v.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, i = (E = n.value) == null ? void 0 : E.prf_ctrl_typ, c = (g = n.value) == null ? void 0 : g.crt_ctrl_typ, u = (p = n.value) == null ? void 0 : p.upt_ctrl_typ, d = (y = n.value) == null ? void 0 : y.cpy_ctrl_typ, m = (b = n.value) == null ? void 0 : b.del_ctrl_typ;
9807
9807
  switch (r) {
9808
9808
  case KG_FORM_CONTEXT.SEARCH:
9809
9809
  return i || o;
@@ -9821,9 +9821,9 @@ function useKgFormItem(e) {
9821
9821
  }
9822
9822
  return o;
9823
9823
  }), l = computed(() => {
9824
- var E, p, g, y, b, C;
9824
+ var E, g, p, y, b, C;
9825
9825
  let o;
9826
- const i = (E = n.value) == null ? void 0 : E.ctrl_prop, c = (p = n.value) == null ? void 0 : p.prf_ctrl_prop, u = (g = n.value) == null ? void 0 : g.crt_ctrl_prop, d = (y = n.value) == null ? void 0 : y.upt_ctrl_prop, m = (b = n.value) == null ? void 0 : b.cpy_ctrl_prop, v = (C = n.value) == null ? void 0 : C.del_ctrl_prop;
9826
+ const i = (E = n.value) == null ? void 0 : E.ctrl_prop, c = (g = n.value) == null ? void 0 : g.prf_ctrl_prop, u = (p = n.value) == null ? void 0 : p.crt_ctrl_prop, d = (y = n.value) == null ? void 0 : y.upt_ctrl_prop, m = (b = n.value) == null ? void 0 : b.cpy_ctrl_prop, v = (C = n.value) == null ? void 0 : C.del_ctrl_prop;
9827
9827
  switch (r) {
9828
9828
  case KG_FORM_CONTEXT.SEARCH:
9829
9829
  o = c || i;
@@ -9864,30 +9864,30 @@ function useKgFormItemSelect() {
9864
9864
  }), u = computed(() => {
9865
9865
  var E;
9866
9866
  let v = KgVarUtil.parseCommandParameter((E = a.value) == null ? void 0 : E.cmd_prm);
9867
- return v = mapValues(v, (p) => {
9867
+ return v = mapValues(v, (g) => {
9868
9868
  var y, b;
9869
- let g = p;
9870
- if (typeof p == "string" && p.startsWith("{") && p.endsWith("}")) {
9871
- let C = p.slice(1, -1), k = "";
9869
+ let p = g;
9870
+ if (typeof g == "string" && g.startsWith("{") && g.endsWith("}")) {
9871
+ let C = g.slice(1, -1), k = "";
9872
9872
  if (C.includes(".")) {
9873
9873
  const A = C.split(".");
9874
9874
  C = A[0], k = A[1];
9875
9875
  }
9876
- t.value && C in t.value && (k ? g = (b = (y = t.value[`${C}_obj`]) == null ? void 0 : y[k]) != null ? b : void 0 : g = t.value[C], g || (g = "__kg__form_item_select__pid"));
9876
+ t.value && C in t.value && (k ? p = (b = (y = t.value[`${C}_obj`]) == null ? void 0 : y[k]) != null ? b : void 0 : p = t.value[C], p || (p = "__kg__form_item_select__pid"));
9877
9877
  }
9878
- return g;
9878
+ return p;
9879
9879
  }), v;
9880
9880
  });
9881
9881
  async function d() {
9882
9882
  var C, k, A, T, $, O, I, M;
9883
9883
  let v = [];
9884
- const E = (C = a.value) == null ? void 0 : C.cmd, p = (A = (k = a.value) == null ? void 0 : k.cmd_method) != null ? A : "GET", g = ($ = (T = a.value) == null ? void 0 : T.val_clm) != null ? $ : "", y = (I = (O = a.value) == null ? void 0 : O.lbl_clm) != null ? I : "";
9885
- if (!E || !g || !y) {
9884
+ const E = (C = a.value) == null ? void 0 : C.cmd, g = (A = (k = a.value) == null ? void 0 : k.cmd_method) != null ? A : "GET", p = ($ = (T = a.value) == null ? void 0 : T.val_clm) != null ? $ : "", y = (I = (O = a.value) == null ? void 0 : O.lbl_clm) != null ? I : "";
9885
+ if (!E || !p || !y) {
9886
9886
  KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
9887
9887
  frm_id: r.formID,
9888
9888
  var_nam: e,
9889
9889
  cmd: E,
9890
- val_clm: g,
9890
+ val_clm: p,
9891
9891
  lbl_clm: y
9892
9892
  });
9893
9893
  return;
@@ -9896,7 +9896,7 @@ function useKgFormItemSelect() {
9896
9896
  try {
9897
9897
  l.value = !0, b = await ((M = httpClient()) == null ? void 0 : M.request({
9898
9898
  url: E,
9899
- method: p,
9899
+ method: g,
9900
9900
  params: u.value
9901
9901
  }));
9902
9902
  } catch {
@@ -9916,11 +9916,11 @@ function useKgFormItemSelect() {
9916
9916
  }
9917
9917
  if (v.length > 0) {
9918
9918
  const P = v[0];
9919
- (!(g in P) || !(y in P)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
9919
+ (!(p in P) || !(y in P)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
9920
9920
  frm_id: r.formID,
9921
9921
  var_nam: e,
9922
9922
  cmd: E,
9923
- val_clm: g,
9923
+ val_clm: p,
9924
9924
  lbl_clm: y,
9925
9925
  \u6240\u6709\u5217: Object.keys(P)
9926
9926
  });
@@ -9928,11 +9928,11 @@ function useKgFormItemSelect() {
9928
9928
  o.value = v;
9929
9929
  }
9930
9930
  function m(v) {
9931
- var g, y, b, C, k;
9931
+ var p, y, b, C, k;
9932
9932
  if (!v)
9933
9933
  return [];
9934
- const E = (y = (g = a.value) == null ? void 0 : g.val_clm) != null ? y : "", p = (C = (b = a.value) == null ? void 0 : b.val_data_type) != null ? C : "string";
9935
- switch (p) {
9934
+ const E = (y = (p = a.value) == null ? void 0 : p.val_clm) != null ? y : "", g = (C = (b = a.value) == null ? void 0 : b.val_data_type) != null ? C : "string";
9935
+ switch (g) {
9936
9936
  case KG_POSSIBILITY_DATA_TYPE.STRING:
9937
9937
  v.forEach((A) => {
9938
9938
  A[E] = String(A[E]);
@@ -9941,7 +9941,7 @@ function useKgFormItemSelect() {
9941
9941
  case KG_POSSIBILITY_DATA_TYPE.NUMBER:
9942
9942
  v.forEach((A) => {
9943
9943
  let T = Number(A[E]);
9944
- Number.isNaN(T) && (T = A[E], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${A[E]} \u8F6C\u6362\u4E3A ${p} \u7C7B\u578B`, {
9944
+ Number.isNaN(T) && (T = A[E], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${A[E]} \u8F6C\u6362\u4E3A ${g} \u7C7B\u578B`, {
9945
9945
  frm_id: r.formID,
9946
9946
  var_nam: e,
9947
9947
  VarPossibility: a.value
@@ -9951,7 +9951,7 @@ function useKgFormItemSelect() {
9951
9951
  case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
9952
9952
  v.forEach((A) => {
9953
9953
  let T;
9954
- String(A[E]).toLowerCase() === "true" ? T = !0 : String(A[E]).toLowerCase() === "false" ? T = !1 : (T = A[E], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${A[E]} \u8F6C\u6362\u4E3A ${p} \u7C7B\u578B`, {
9954
+ String(A[E]).toLowerCase() === "true" ? T = !0 : String(A[E]).toLowerCase() === "false" ? T = !1 : (T = A[E], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${A[E]} \u8F6C\u6362\u4E3A ${g} \u7C7B\u578B`, {
9955
9955
  frm_id: r.formID,
9956
9956
  var_nam: e,
9957
9957
  VarPossibility: a.value
@@ -10006,10 +10006,10 @@ const KgFormItemCheckboxGroup = defineComponent({
10006
10006
  } = useKgFormItemSelect(), d = ref(!1), m = ref(!1);
10007
10007
  watch(o, () => v(), {
10008
10008
  immediate: !0
10009
- }), watch([() => e.value, c], ([g, y]) => {
10010
- const b = get(g, "length", 0);
10009
+ }), watch([() => e.value, c], ([p, y]) => {
10010
+ const b = get(p, "length", 0);
10011
10011
  if (b > 0 && y.length > 0) {
10012
- const C = intersection$1(g, y == null ? void 0 : y.map((k) => k[i.value]));
10012
+ const C = intersection$1(p, y == null ? void 0 : y.map((k) => k[i.value]));
10013
10013
  if (C.length < b) {
10014
10014
  r("update:value", C);
10015
10015
  return;
@@ -10030,18 +10030,18 @@ const KgFormItemCheckboxGroup = defineComponent({
10030
10030
  immediate: !0
10031
10031
  });
10032
10032
  async function v() {
10033
- var g, y;
10034
- !((g = l.value) != null && g.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((y = c.value) == null ? void 0 : y.map((b) => b[i.value]), e.value)));
10033
+ var p, y;
10034
+ !((p = l.value) != null && p.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((y = c.value) == null ? void 0 : y.map((b) => b[i.value]), e.value)));
10035
10035
  }
10036
- function E(g) {
10036
+ function E(p) {
10037
10037
  var y, b, C;
10038
- g.target.checked ? p((b = (y = c.value) == null ? void 0 : y.map((k) => k[i.value])) != null ? b : []) : p([]), m.value = !1, (C = n.value) == null || C.validate(e.kgVarName);
10038
+ p.target.checked ? g((b = (y = c.value) == null ? void 0 : y.map((k) => k[i.value])) != null ? b : []) : g([]), m.value = !1, (C = n.value) == null || C.validate(e.kgVarName);
10039
10039
  }
10040
- function p(g) {
10041
- r("update:value", g), r("kgChange", g);
10040
+ function g(p) {
10041
+ r("update:value", p), r("kgChange", p);
10042
10042
  }
10043
10043
  return () => {
10044
- let g, y;
10044
+ let p, y;
10045
10045
  return createVNode("div", {
10046
10046
  class: "kg-form-item-checkbox-group"
10047
10047
  }, [createVNode(Form.ItemRest, null, {
@@ -10050,12 +10050,12 @@ const KgFormItemCheckboxGroup = defineComponent({
10050
10050
  "onUpdate:checked": (b) => d.value = b,
10051
10051
  indeterminate: m.value,
10052
10052
  onChange: E
10053
- }, _isSlot$b(g = a.t("kg.selectAll")) ? g : {
10054
- default: () => [g]
10053
+ }, _isSlot$b(p = a.t("kg.selectAll")) ? p : {
10054
+ default: () => [p]
10055
10055
  })]
10056
10056
  }), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
10057
10057
  value: e.value,
10058
- "onUpdate:value": p
10058
+ "onUpdate:value": g
10059
10059
  }, {
10060
10060
  default: () => [createVNode(Row, {
10061
10061
  gutter: 12
@@ -10237,8 +10237,8 @@ const KgFormItemRadioGroup = defineComponent({
10237
10237
  "kg-value": m[l.value]
10238
10238
  }, {
10239
10239
  default: () => {
10240
- var p, g;
10241
- return [m[(g = (p = n.value) == null ? void 0 : p.lbl_clm) != null ? g : ""]];
10240
+ var g, p;
10241
+ return [m[(p = (g = n.value) == null ? void 0 : g.lbl_clm) != null ? p : ""]];
10242
10242
  }
10243
10243
  })]
10244
10244
  });
@@ -10271,8 +10271,8 @@ const KgFormItemRadioGroup = defineComponent({
10271
10271
  immediate: !0
10272
10272
  });
10273
10273
  async function v() {
10274
- var g;
10275
- if (!!((g = l.value) != null && g.id))
10274
+ var p;
10275
+ if (!!((p = l.value) != null && p.id))
10276
10276
  switch (await m(), r("kgSelectDatasChange", d.value), e.kgMode) {
10277
10277
  case "multiple": {
10278
10278
  if (Array.isArray(e.value)) {
@@ -10286,12 +10286,12 @@ const KgFormItemRadioGroup = defineComponent({
10286
10286
  break;
10287
10287
  }
10288
10288
  }
10289
- function E(g) {
10289
+ function E(p) {
10290
10290
  var y, b;
10291
10291
  switch (e.kgMode) {
10292
10292
  case "multiple": {
10293
- if (Array.isArray(g)) {
10294
- const C = (y = toRaw(d.value.filter((k) => g.includes(k[i.value])))) != null ? y : null;
10293
+ if (Array.isArray(p)) {
10294
+ const C = (y = toRaw(d.value.filter((k) => p.includes(k[i.value])))) != null ? y : null;
10295
10295
  r("kgSelectChange", C), s.store.emit(s.formID, "selectChange", {
10296
10296
  var_nam: e.kgVarName,
10297
10297
  rows: C
@@ -10300,7 +10300,7 @@ const KgFormItemRadioGroup = defineComponent({
10300
10300
  break;
10301
10301
  }
10302
10302
  default: {
10303
- const C = (b = toRaw(d.value.find((k) => k[i.value] === g))) != null ? b : null;
10303
+ const C = (b = toRaw(d.value.find((k) => k[i.value] === p))) != null ? b : null;
10304
10304
  r("kgSelectChange", C), s.store.emit(s.formID, "selectChange", {
10305
10305
  var_nam: e.kgVarName,
10306
10306
  rows: C
@@ -10309,14 +10309,14 @@ const KgFormItemRadioGroup = defineComponent({
10309
10309
  }
10310
10310
  }
10311
10311
  }
10312
- function p(g) {
10313
- r("update:value", g), r("kgChange", g);
10312
+ function g(p) {
10313
+ r("update:value", p), r("kgChange", p);
10314
10314
  }
10315
10315
  return () => {
10316
- var g;
10316
+ var p;
10317
10317
  return createVNode(Select, {
10318
10318
  value: e.value,
10319
- "onUpdate:value": p,
10319
+ "onUpdate:value": g,
10320
10320
  id: t.id,
10321
10321
  disabled: e.kgDisabled,
10322
10322
  allowClear: e.kgAllowClear,
@@ -10330,7 +10330,7 @@ const KgFormItemRadioGroup = defineComponent({
10330
10330
  class: "kg-form-item-select",
10331
10331
  onChange: E,
10332
10332
  "kg-value": e.value,
10333
- "kg-cmd": (g = l.value) == null ? void 0 : g.cmd,
10333
+ "kg-cmd": (p = l.value) == null ? void 0 : p.cmd,
10334
10334
  "kg-val_clm": i.value,
10335
10335
  "kg-lbl_clm": c.value
10336
10336
  }, {
@@ -10455,7 +10455,7 @@ const KgFormItemRadioGroup = defineComponent({
10455
10455
  break;
10456
10456
  }
10457
10457
  return M;
10458
- }), p = computed(() => {
10458
+ }), g = computed(() => {
10459
10459
  var P, V, L, D;
10460
10460
  let M = " ";
10461
10461
  if (e.kgPlaceholder)
@@ -10470,8 +10470,8 @@ const KgFormItemRadioGroup = defineComponent({
10470
10470
  break;
10471
10471
  }
10472
10472
  return M;
10473
- }), g = computed(() => {
10474
- var P, V, L, D, w, R, x, F, K, B;
10473
+ }), p = computed(() => {
10474
+ var P, V, L, D, w, R, x, F, Y, K;
10475
10475
  let M = 6;
10476
10476
  if (e.kgSpan !== void 0)
10477
10477
  M = e.kgSpan;
@@ -10492,7 +10492,7 @@ const KgFormItemRadioGroup = defineComponent({
10492
10492
  M = (F = (x = d.value) == null ? void 0 : x.cpy_width) != null ? F : 6;
10493
10493
  break;
10494
10494
  case s.isDeleting.value:
10495
- M = (B = (K = d.value) == null ? void 0 : K.del_width) != null ? B : 6;
10495
+ M = (K = (Y = d.value) == null ? void 0 : Y.del_width) != null ? K : 6;
10496
10496
  break;
10497
10497
  }
10498
10498
  }
@@ -10538,7 +10538,7 @@ const KgFormItemRadioGroup = defineComponent({
10538
10538
  "onUpdate:value": (V) => {
10539
10539
  a.value && (a.value[e.kgVarName] = V);
10540
10540
  },
10541
- kgPlaceholder: p.value,
10541
+ kgPlaceholder: g.value,
10542
10542
  kgDisabled: E.value,
10543
10543
  id: k.value
10544
10544
  };
@@ -10664,7 +10664,7 @@ const KgFormItemRadioGroup = defineComponent({
10664
10664
  var M, P;
10665
10665
  return s.isRetrieving.value ? null : createVNode(Col, {
10666
10666
  ref: A,
10667
- span: g.value,
10667
+ span: p.value,
10668
10668
  class: b.value,
10669
10669
  style: y.value,
10670
10670
  "kg-frm_id": s.formID,
@@ -11042,9 +11042,9 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
11042
11042
  }).bind(null, pinia())), store$5);
11043
11043
  function useKgSubmit(e) {
11044
11044
  const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
11045
- var g, y, b, C, k;
11045
+ var p, y, b, C, k;
11046
11046
  let i = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
11047
- const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (g = a.value) == null ? void 0 : g.display_type, m = (y = a.value) == null ? void 0 : y.crt_display_type, v = (b = a.value) == null ? void 0 : b.upt_display_type, E = (C = a.value) == null ? void 0 : C.cpy_display_type, p = (k = a.value) == null ? void 0 : k.del_display_type;
11047
+ const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (p = a.value) == null ? void 0 : p.display_type, m = (y = a.value) == null ? void 0 : y.crt_display_type, v = (b = a.value) == null ? void 0 : b.upt_display_type, E = (C = a.value) == null ? void 0 : C.cpy_display_type, g = (k = a.value) == null ? void 0 : k.del_display_type;
11048
11048
  switch (!0) {
11049
11049
  case (t.isCreating.value && (m === c || !m && d === c)):
11050
11050
  i = c;
@@ -11055,7 +11055,7 @@ function useKgSubmit(e) {
11055
11055
  case (t.isCopying.value && (E === c || !E && d === c)):
11056
11056
  i = c;
11057
11057
  break;
11058
- case (t.isDeleting.value && (p === c || !p)):
11058
+ case (t.isDeleting.value && (g === c || !g)):
11059
11059
  i = c;
11060
11060
  break;
11061
11061
  }
@@ -11116,8 +11116,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
11116
11116
  }) => {
11117
11117
  const u = s.store.getVarSubmitConfig(s.formID);
11118
11118
  return o = watch(c, (d) => {
11119
- var m, v, E, p, g, y, b, C, k, A, T, $;
11120
- d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (E = u == null ? void 0 : u.fullscreen_flg) != null ? E : 1, d.dft_fullscreen_flg = (p = u == null ? void 0 : u.dft_fullscreen_flg) != null ? p : 0, d.responsive_flg = (g = u == null ? void 0 : u.responsive_flg) != null ? g : 1, d.max_width = (y = u == null ? void 0 : u.max_width) != null ? y : DEFAULT_MAX_WIDTH, d.min_width = (b = u == null ? void 0 : u.min_width) != null ? b : DEFAULT_MIN_WIDTH, d.dft_width = (C = u == null ? void 0 : u.dft_width) != null ? C : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (A = u == null ? void 0 : u.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (T = u == null ? void 0 : u.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN, d.display_type = ($ = u == null ? void 0 : u.display_type) != null ? $ : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
11119
+ var m, v, E, g, p, y, b, C, k, A, T, $;
11120
+ d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (E = u == null ? void 0 : u.fullscreen_flg) != null ? E : 1, d.dft_fullscreen_flg = (g = u == null ? void 0 : u.dft_fullscreen_flg) != null ? g : 0, d.responsive_flg = (p = u == null ? void 0 : u.responsive_flg) != null ? p : 1, d.max_width = (y = u == null ? void 0 : u.max_width) != null ? y : DEFAULT_MAX_WIDTH, d.min_width = (b = u == null ? void 0 : u.min_width) != null ? b : DEFAULT_MIN_WIDTH, d.dft_width = (C = u == null ? void 0 : u.dft_width) != null ? C : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (A = u == null ? void 0 : u.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (T = u == null ? void 0 : u.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN, d.display_type = ($ = u == null ? void 0 : u.display_type) != null ? $ : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
11121
11121
  }, {
11122
11122
  immediate: !0
11123
11123
  }), KgUtil.hideLoading(), !1;
@@ -11175,7 +11175,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
11175
11175
  default: () => [e.isFullscreen ? createVNode(FullscreenExitOutlined$1, null, null) : createVNode(FullscreenOutlined$1, null, null)]
11176
11176
  });
11177
11177
  }
11178
- function p() {
11178
+ function g() {
11179
11179
  return e.kgShowConfigButton ? createVNode(Fragment, null, [createVNode(Button, {
11180
11180
  disabled: c.value || i.value,
11181
11181
  onClick: m,
@@ -11186,7 +11186,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
11186
11186
  hostFormID: n.formID
11187
11187
  }, null)]) : null;
11188
11188
  }
11189
- function g() {
11189
+ function p() {
11190
11190
  return createVNode(Button, {
11191
11191
  disabled: c.value || i.value,
11192
11192
  class: "kg-submit--btn-close",
@@ -11195,7 +11195,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
11195
11195
  default: () => [createVNode(CloseOutlined$1, null, null)]
11196
11196
  });
11197
11197
  }
11198
- return () => createVNode(Fragment, null, [p(), E(), g()]);
11198
+ return () => createVNode(Fragment, null, [g(), E(), p()]);
11199
11199
  }
11200
11200
  }), DEFAULT_MIN_WIDTH = 300, DEFAULT_MAX_WIDTH = 1182, DEFAULT_WIDTH = 594, DEFAULT_LAYOUT = "vertical", DEFAULT_LABEL_COL_FOR_SPAN = 4, DEFAULT_LABEL_COL_FOR_PX = 100;
11201
11201
  function _useFormModel$1() {
@@ -11220,14 +11220,14 @@ function _useFormModel$1() {
11220
11220
  }
11221
11221
  const d = r.selectedRow.value;
11222
11222
  u.forEach((m) => {
11223
- var E, p, g, y, b, C, k, A;
11223
+ var E, g, p, y, b, C, k, A;
11224
11224
  const v = (E = m.var_nam) != null ? E : "";
11225
11225
  switch (c.value[v] = void 0, !0) {
11226
11226
  case t.isCreating.value:
11227
- c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (p = m.crt_dft_val) != null ? p : void 0, "C");
11227
+ c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (g = m.crt_dft_val) != null ? g : void 0, "C");
11228
11228
  break;
11229
11229
  case t.isUpdating.value:
11230
- c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (y = (g = m.upt_dft_val) != null ? g : d == null ? void 0 : d[v]) != null ? y : void 0, "U");
11230
+ c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (y = (p = m.upt_dft_val) != null ? p : d == null ? void 0 : d[v]) != null ? y : void 0, "U");
11231
11231
  break;
11232
11232
  case t.isCopying.value:
11233
11233
  c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (C = (b = m.cpy_dft_val) != null ? b : d == null ? void 0 : d[v]) != null ? C : void 0, "CP");
@@ -11304,9 +11304,9 @@ function _useClass(e, t) {
11304
11304
  const r = inject(DI_KG_VAR__KG_PROPS, null), a = useKgVar(), n = useKgSubmit(), s = computed(() => a.store.getVarSubmitConfig(a.formID)), l = computed(() => a.store.getVarSubmitFieldsForDeleteKey(a.formID));
11305
11305
  return {
11306
11306
  getClass: computed(() => {
11307
- var c, u, d, m, v, E, p;
11307
+ var c, u, d, m, v, E, g;
11308
11308
  let i = "kg-submit";
11309
- return t.isFullscreen && (i += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (i += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? i += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (i += " kg-submit--table"), a.isDeleting.value && ((d = (u = l.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (i += " kg-submit--delete-message"), (v = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgSubmit) != null && v.kgClass ? i += ` ${(p = (E = r == null ? void 0 : r.value) == null ? void 0 : E.KgSubmit) == null ? void 0 : p.kgClass}` : e.kgClass && (i += ` ${e.kgClass}`), i;
11309
+ return t.isFullscreen && (i += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (i += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? i += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (i += " kg-submit--table"), a.isDeleting.value && ((d = (u = l.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (i += " kg-submit--delete-message"), (v = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgSubmit) != null && v.kgClass ? i += ` ${(g = (E = r == null ? void 0 : r.value) == null ? void 0 : E.KgSubmit) == null ? void 0 : g.kgClass}` : e.kgClass && (i += ` ${e.kgClass}`), i;
11310
11310
  })
11311
11311
  };
11312
11312
  }
@@ -11381,14 +11381,14 @@ const getProps$p = () => ({
11381
11381
  const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
11382
11382
  inject(DI_KG_VAR__KG_PROPS, null);
11383
11383
  const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
11384
- l.onSubmitSave(async () => (await U(), !1)), l.onSubmitCancel(async () => (await N(), !1)), _useFormModel$1();
11385
- const u = computed(() => s.isDeleting.value && M.value.length === 0 && V.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), m = computed(() => s.store.getVarSubmitConfig(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), p = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), $ = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), O = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), M = computed(() => {
11386
- var G, Y, J;
11384
+ l.onSubmitSave(async () => (await B(), !1)), l.onSubmitCancel(async () => (await N(), !1)), _useFormModel$1();
11385
+ const u = computed(() => s.isDeleting.value && M.value.length === 0 && V.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), m = computed(() => s.store.getVarSubmitConfig(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), p = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), $ = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), O = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), M = computed(() => {
11386
+ var U, W, J;
11387
11387
  switch (!0) {
11388
11388
  case s.isCreating.value:
11389
- return (G = v.value) != null ? G : [];
11389
+ return (U = v.value) != null ? U : [];
11390
11390
  case s.isUpdating.value:
11391
- return (Y = p.value) != null ? Y : [];
11391
+ return (W = g.value) != null ? W : [];
11392
11392
  case s.isCopying.value:
11393
11393
  return (J = y.value) != null ? J : [];
11394
11394
  case s.isDeleting.value:
@@ -11396,12 +11396,12 @@ const getProps$p = () => ({
11396
11396
  }
11397
11397
  return [];
11398
11398
  }), P = computed(() => {
11399
- var G, Y, J;
11399
+ var U, W, J;
11400
11400
  switch (!0) {
11401
11401
  case s.isCreating.value:
11402
- return (G = C.value) != null ? G : [];
11402
+ return (U = C.value) != null ? U : [];
11403
11403
  case s.isUpdating.value:
11404
- return (Y = A.value) != null ? Y : [];
11404
+ return (W = A.value) != null ? W : [];
11405
11405
  case s.isCopying.value:
11406
11406
  return (J = $.value) != null ? J : [];
11407
11407
  case s.isDeleting.value:
@@ -11409,12 +11409,12 @@ const getProps$p = () => ({
11409
11409
  }
11410
11410
  return [];
11411
11411
  }), V = computed(() => {
11412
- var G, Y, J, re;
11412
+ var U, W, J, re;
11413
11413
  switch (!0) {
11414
11414
  case s.isCreating.value:
11415
- return (G = E.value) != null ? G : [];
11415
+ return (U = E.value) != null ? U : [];
11416
11416
  case s.isUpdating.value:
11417
- return (Y = g.value) != null ? Y : [];
11417
+ return (W = p.value) != null ? W : [];
11418
11418
  case s.isCopying.value:
11419
11419
  return (J = b.value) != null ? J : [];
11420
11420
  case s.isDeleting.value:
@@ -11422,12 +11422,12 @@ const getProps$p = () => ({
11422
11422
  }
11423
11423
  return [];
11424
11424
  }), L = computed(() => {
11425
- var G, Y, J, re;
11425
+ var U, W, J, re;
11426
11426
  switch (!0) {
11427
11427
  case s.isCreating.value:
11428
- return (G = k.value) != null ? G : [];
11428
+ return (U = k.value) != null ? U : [];
11429
11429
  case s.isUpdating.value:
11430
- return (Y = T.value) != null ? Y : [];
11430
+ return (W = T.value) != null ? W : [];
11431
11431
  case s.isCopying.value:
11432
11432
  return (J = O.value) != null ? J : [];
11433
11433
  case s.isDeleting.value:
@@ -11437,32 +11437,32 @@ const getProps$p = () => ({
11437
11437
  }), D = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), w = computed(() => D.value || d.value), R = computed(() => d.value), x = ref({
11438
11438
  kgWidth: 0
11439
11439
  }), F = computed(() => {
11440
- var G;
11441
- return !!(u.value || le.isFullscreen || ((G = m.value) == null ? void 0 : G.resizable_flg) === 0);
11440
+ var U;
11441
+ return !!(u.value || ae.isFullscreen || ((U = m.value) == null ? void 0 : U.resizable_flg) === 0);
11442
+ }), Y = computed(() => {
11443
+ var U, W;
11444
+ return u.value ? 398 : (W = (U = m.value) == null ? void 0 : U.min_width) != null ? W : DEFAULT_MIN_WIDTH;
11442
11445
  }), K = computed(() => {
11443
- var G, Y;
11444
- return u.value ? 398 : (Y = (G = m.value) == null ? void 0 : G.min_width) != null ? Y : DEFAULT_MIN_WIDTH;
11445
- }), B = computed(() => {
11446
- var G, Y;
11447
- return u.value ? 398 : (Y = (G = m.value) == null ? void 0 : G.max_width) != null ? Y : DEFAULT_MAX_WIDTH;
11448
- }), W = computed(() => u.value ? 398 : x.value.kgWidth), q = ref(null);
11449
- _useResizeObserver$1(q);
11450
- const X = _useTitle(), Q = computed(() => u.value ? 400 : x.value.kgWidth && x.value.kgWidth > 0 ? "auto" : 0), ee = computed(() => Q.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), le = reactive({
11446
+ var U, W;
11447
+ return u.value ? 398 : (W = (U = m.value) == null ? void 0 : U.max_width) != null ? W : DEFAULT_MAX_WIDTH;
11448
+ }), G = computed(() => u.value ? 398 : x.value.kgWidth), z = ref(null);
11449
+ _useResizeObserver$1(z);
11450
+ const X = _useTitle(), Q = computed(() => u.value ? 400 : x.value.kgWidth && x.value.kgWidth > 0 ? "auto" : 0), ee = computed(() => Q.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), ae = reactive({
11451
11451
  isFullscreen: !1
11452
11452
  }), {
11453
11453
  getClass: _e
11454
- } = _useClass(e, le), {
11454
+ } = _useClass(e, ae), {
11455
11455
  getLayout: he
11456
11456
  } = _useLayout(), {
11457
11457
  getDefaultWidth: fe
11458
- } = _useDefaultWidth(), ne = computed(() => {
11459
- var G, Y, J;
11458
+ } = _useDefaultWidth(), se = computed(() => {
11459
+ var U, W, J;
11460
11460
  switch (he.value) {
11461
11461
  case "horizontal":
11462
- switch ((G = m.value) == null ? void 0 : G.label_col_unit) {
11462
+ switch ((U = m.value) == null ? void 0 : U.label_col_unit) {
11463
11463
  case KG_WIDTH_UNIT.SPAN:
11464
11464
  return {
11465
- span: (Y = m.value) == null ? void 0 : Y.label_col
11465
+ span: (W = m.value) == null ? void 0 : W.label_col
11466
11466
  };
11467
11467
  default:
11468
11468
  return {
@@ -11475,13 +11475,13 @@ const getProps$p = () => ({
11475
11475
  return;
11476
11476
  }
11477
11477
  }), pe = computed(() => {
11478
- var G, Y;
11478
+ var U, W;
11479
11479
  switch (he.value) {
11480
11480
  case "horizontal":
11481
- switch ((G = m.value) == null ? void 0 : G.label_col_unit) {
11481
+ switch ((U = m.value) == null ? void 0 : U.label_col_unit) {
11482
11482
  case KG_WIDTH_UNIT.SPAN:
11483
11483
  return {
11484
- span: 24 - ((Y = m.value) == null ? void 0 : Y.label_col)
11484
+ span: 24 - ((W = m.value) == null ? void 0 : W.label_col)
11485
11485
  };
11486
11486
  default:
11487
11487
  return;
@@ -11490,12 +11490,12 @@ const getProps$p = () => ({
11490
11490
  return;
11491
11491
  }
11492
11492
  });
11493
- watch(ee, (G, Y) => {
11494
- G === !0 && ye(), Y === !0 && G === !1 && ve();
11493
+ watch(ee, (U, W) => {
11494
+ U === !0 && ye(), W === !0 && U === !1 && ve();
11495
11495
  }, {
11496
11496
  immediate: !0
11497
- }), watch(fe, (G) => {
11498
- G && (x.value.kgWidth = G);
11497
+ }), watch(fe, (U) => {
11498
+ U && (x.value.kgWidth = U);
11499
11499
  }, {
11500
11500
  immediate: !0
11501
11501
  });
@@ -11507,25 +11507,25 @@ const getProps$p = () => ({
11507
11507
  isDeleting: s.isDeleting.value,
11508
11508
  row: o.selectedRow.value
11509
11509
  }))
11510
- return new Promise((Y, J) => {
11511
- var se;
11512
- const re = watch(i.model, async (ie) => {
11513
- ie && Object.keys(ie).length > 0 && (setTimeout(() => re()), await i.store.emit(s.formID, "open", {
11510
+ return new Promise((W, J) => {
11511
+ var oe;
11512
+ const re = watch(i.model, async (le) => {
11513
+ le && Object.keys(le).length > 0 && (setTimeout(() => re()), await i.store.emit(s.formID, "open", {
11514
11514
  isCreating: s.isCreating.value,
11515
11515
  isUpdating: s.isUpdating.value,
11516
11516
  isCopying: s.isCopying.value,
11517
11517
  isDeleting: s.isDeleting.value,
11518
11518
  row: o.selectedRow.value,
11519
11519
  model: i.model
11520
- }), Y());
11520
+ }), W());
11521
11521
  }, {
11522
11522
  immediate: !0
11523
11523
  });
11524
- ((se = m.value) == null ? void 0 : se.dft_fullscreen_flg) === 1 && !u.value && (le.isFullscreen = !0);
11524
+ ((oe = m.value) == null ? void 0 : oe.dft_fullscreen_flg) === 1 && !u.value && (ae.isFullscreen = !0);
11525
11525
  });
11526
11526
  }
11527
11527
  async function ve() {
11528
- x.value.kgWidth = fe.value, le.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
11528
+ x.value.kgWidth = fe.value, ae.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
11529
11529
  }
11530
11530
  function N() {
11531
11531
  switch (!0) {
@@ -11543,8 +11543,8 @@ const getProps$p = () => ({
11543
11543
  break;
11544
11544
  }
11545
11545
  }
11546
- async function U() {
11547
- var G, Y;
11546
+ async function B() {
11547
+ var U, W;
11548
11548
  try {
11549
11549
  if (await i.store.emit(s.formID, "beforeOk", {
11550
11550
  isCreating: s.isCreating.value,
@@ -11557,11 +11557,11 @@ const getProps$p = () => ({
11557
11557
  }))
11558
11558
  return;
11559
11559
  try {
11560
- await ((G = i.formRef.value) == null ? void 0 : G.validate());
11561
- } catch (se) {
11562
- KgUtil.throwIfNotFormError(se);
11560
+ await ((U = i.formRef.value) == null ? void 0 : U.validate());
11561
+ } catch (oe) {
11562
+ KgUtil.throwIfNotFormError(oe);
11563
11563
  }
11564
- if (await ((Y = i.formRef.value) == null ? void 0 : Y.validate()), await i.store.emit(s.formID, "afterValidate", {
11564
+ if (await ((W = i.formRef.value) == null ? void 0 : W.validate()), await i.store.emit(s.formID, "afterValidate", {
11565
11565
  isCreating: s.isCreating.value,
11566
11566
  isUpdating: s.isUpdating.value,
11567
11567
  isCopying: s.isCopying.value,
@@ -11573,7 +11573,7 @@ const getProps$p = () => ({
11573
11573
  return;
11574
11574
  switch (!0) {
11575
11575
  case s.isCreating.value:
11576
- await z();
11576
+ await q();
11577
11577
  break;
11578
11578
  case s.isUpdating.value:
11579
11579
  await H();
@@ -11589,10 +11589,10 @@ const getProps$p = () => ({
11589
11589
  KgUtil.throwIfNotFormError(J);
11590
11590
  }
11591
11591
  }
11592
- async function z() {
11593
- var Y, J, re, se, ie, de;
11594
- const G = (Y = s.varButtonCreate.value) == null ? void 0 : Y.cmd;
11595
- if (!G) {
11592
+ async function q() {
11593
+ var W, J, re, oe, le, de;
11594
+ const U = (W = s.varButtonCreate.value) == null ? void 0 : W.cmd;
11595
+ if (!U) {
11596
11596
  KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
11597
11597
  VarButton: s.varButtonCreate.value
11598
11598
  });
@@ -11600,7 +11600,7 @@ const getProps$p = () => ({
11600
11600
  }
11601
11601
  s.store.setIsCreatingRequesting(s.formID, !0);
11602
11602
  try {
11603
- let ae = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (J = s.varButtonCreate.value) == null ? void 0 : J.cmd_prm) != null ? re : ""), s.formID, r)), ge = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
11603
+ let ne = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (J = s.varButtonCreate.value) == null ? void 0 : J.cmd_prm) != null ? re : ""), s.formID, r)), ge = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
11604
11604
  if (await i.store.emit(s.formID, "beforeRequest", {
11605
11605
  isCreating: s.isCreating.value,
11606
11606
  isUpdating: s.isUpdating.value,
@@ -11609,14 +11609,14 @@ const getProps$p = () => ({
11609
11609
  row: o.selectedFirstRow.value,
11610
11610
  rows: o.selectedRows.value,
11611
11611
  model: i.model,
11612
- params: ae,
11612
+ params: ne,
11613
11613
  data: ge
11614
11614
  }))
11615
11615
  return;
11616
11616
  await httpClient().request({
11617
- method: (ie = (se = s.varButtonCreate.value) == null ? void 0 : se.cmd_method) != null ? ie : "POST",
11618
- url: G,
11619
- params: ae.value,
11617
+ method: (le = (oe = s.varButtonCreate.value) == null ? void 0 : oe.cmd_method) != null ? le : "POST",
11618
+ url: U,
11619
+ params: ne.value,
11620
11620
  data: ge.value
11621
11621
  }), ((de = s.varButtonCreate.value) == null ? void 0 : de.show_success_message_flg) !== 0 && message.success(X.title.value + n.t("kg.succeed")), await i.store.emit(s.formID, "ok", {
11622
11622
  isCreating: s.isCreating.value,
@@ -11626,16 +11626,16 @@ const getProps$p = () => ({
11626
11626
  row: o.selectedFirstRow.value,
11627
11627
  model: i.model
11628
11628
  }), s.store.setIsCreating(s.formID, !1), c.search(!0);
11629
- } catch (ae) {
11630
- console.error(ae), i.store.emit(s.formID, "error", ae);
11629
+ } catch (ne) {
11630
+ console.error(ne), i.store.emit(s.formID, "error", ne);
11631
11631
  } finally {
11632
11632
  s.store.setIsCreatingRequesting(s.formID, !1);
11633
11633
  }
11634
11634
  }
11635
11635
  async function H() {
11636
- var Y, J, re, se, ie, de;
11637
- const G = (Y = s.varButtonUpdate.value) == null ? void 0 : Y.cmd;
11638
- if (!G) {
11636
+ var W, J, re, oe, le, de;
11637
+ const U = (W = s.varButtonUpdate.value) == null ? void 0 : W.cmd;
11638
+ if (!U) {
11639
11639
  KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
11640
11640
  VarButton: s.varButtonUpdate.value
11641
11641
  });
@@ -11643,7 +11643,7 @@ const getProps$p = () => ({
11643
11643
  }
11644
11644
  try {
11645
11645
  s.store.setIsUpdatingRequesting(s.formID, !0);
11646
- let ae = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (J = s.varButtonUpdate.value) == null ? void 0 : J.cmd_prm) != null ? re : ""), s.formID, r)), ge = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
11646
+ let ne = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (J = s.varButtonUpdate.value) == null ? void 0 : J.cmd_prm) != null ? re : ""), s.formID, r)), ge = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
11647
11647
  if (await i.store.emit(s.formID, "beforeRequest", {
11648
11648
  isCreating: s.isCreating.value,
11649
11649
  isUpdating: s.isUpdating.value,
@@ -11652,14 +11652,14 @@ const getProps$p = () => ({
11652
11652
  row: o.selectedRow.value,
11653
11653
  rows: o.selectedRows.value,
11654
11654
  model: i.model,
11655
- params: ae,
11655
+ params: ne,
11656
11656
  data: ge
11657
11657
  }))
11658
11658
  return;
11659
11659
  await httpClient().request({
11660
- method: (ie = (se = s.varButtonUpdate.value) == null ? void 0 : se.cmd_method) != null ? ie : "POST",
11661
- url: G,
11662
- params: ae.value,
11660
+ method: (le = (oe = s.varButtonUpdate.value) == null ? void 0 : oe.cmd_method) != null ? le : "POST",
11661
+ url: U,
11662
+ params: ne.value,
11663
11663
  data: ge.value
11664
11664
  }), ((de = s.varButtonUpdate.value) == null ? void 0 : de.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await i.store.emit(s.formID, "ok", {
11665
11665
  isCreating: s.isCreating.value,
@@ -11669,16 +11669,16 @@ const getProps$p = () => ({
11669
11669
  row: o.selectedFirstRow.value,
11670
11670
  model: i.model
11671
11671
  }), s.store.setIsUpdating(s.formID, !1), c.search();
11672
- } catch (ae) {
11673
- console.error(ae), i.store.emit(s.formID, "error", ae);
11672
+ } catch (ne) {
11673
+ console.error(ne), i.store.emit(s.formID, "error", ne);
11674
11674
  } finally {
11675
11675
  s.store.setIsUpdatingRequesting(s.formID, !1);
11676
11676
  }
11677
11677
  }
11678
11678
  async function Z() {
11679
- var Y, J, re, se, ie, de, ae, ge;
11680
- const G = (Y = s.varButtonCopy.value) == null ? void 0 : Y.cmd;
11681
- if (!G) {
11679
+ var W, J, re, oe, le, de, ne, ge;
11680
+ const U = (W = s.varButtonCopy.value) == null ? void 0 : W.cmd;
11681
+ if (!U) {
11682
11682
  KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
11683
11683
  VarButton: s.varButtonCopy.value
11684
11684
  });
@@ -11687,10 +11687,10 @@ const getProps$p = () => ({
11687
11687
  try {
11688
11688
  s.store.setIsCopyingRequesting(s.formID, !0);
11689
11689
  let me = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (J = s.varButtonCopy.value) == null ? void 0 : J.cmd_prm) != null ? re : ""), s.formID, r)), Se = ref(KgUtil.parseParams({
11690
- ...(se = o.selectedFirstRow.value) != null ? se : {},
11690
+ ...(oe = o.selectedFirstRow.value) != null ? oe : {},
11691
11691
  ...toRaw(i.model.value)
11692
11692
  }, s.formID, r));
11693
- if (((ie = m.value) == null ? void 0 : ie.cpy_clear_id_flg) !== 0 && delete Se.value.id, await i.store.emit(s.formID, "beforeRequest", {
11693
+ if (((le = m.value) == null ? void 0 : le.cpy_clear_id_flg) !== 0 && delete Se.value.id, await i.store.emit(s.formID, "beforeRequest", {
11694
11694
  isCreating: s.isCreating.value,
11695
11695
  isUpdating: s.isUpdating.value,
11696
11696
  isCopying: s.isCopying.value,
@@ -11703,8 +11703,8 @@ const getProps$p = () => ({
11703
11703
  }))
11704
11704
  return;
11705
11705
  await httpClient().request({
11706
- method: (ae = (de = s.varButtonCopy.value) == null ? void 0 : de.cmd_method) != null ? ae : "POST",
11707
- url: G,
11706
+ method: (ne = (de = s.varButtonCopy.value) == null ? void 0 : de.cmd_method) != null ? ne : "POST",
11707
+ url: U,
11708
11708
  params: me.value,
11709
11709
  data: Se.value
11710
11710
  }), ((ge = s.varButtonCopy.value) == null ? void 0 : ge.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), await i.store.emit(s.formID, "ok", {
@@ -11722,9 +11722,9 @@ const getProps$p = () => ({
11722
11722
  }
11723
11723
  }
11724
11724
  async function te() {
11725
- var Y, J, re, se, ie, de, ae, ge, me, Se;
11726
- const G = (Y = s.varButtonDelete.value) == null ? void 0 : Y.cmd;
11727
- if (!G) {
11725
+ var W, J, re, oe, le, de, ne, ge, me, Se;
11726
+ const U = (W = s.varButtonDelete.value) == null ? void 0 : W.cmd;
11727
+ if (!U) {
11728
11728
  KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
11729
11729
  VarButton: s.varButtonDelete.value
11730
11730
  });
@@ -11732,12 +11732,12 @@ const getProps$p = () => ({
11732
11732
  }
11733
11733
  try {
11734
11734
  s.store.setIsDeletingRequesting(s.formID, !0);
11735
- let Ce = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (J = s.varButtonDelete.value) == null ? void 0 : J.cmd_prm) != null ? re : ""), s.formID, r)), Te = ref((se = o.selectedRows.value) != null ? se : []);
11736
- if (((ie = s.varButtonDelete.value) == null ? void 0 : ie.del_param_clm) !== "__kg__new_delete_param" && (Ce = ref({
11737
- ids: (ae = (de = o.selectedRows.value) == null ? void 0 : de.map((Ie) => {
11735
+ let Ce = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (J = s.varButtonDelete.value) == null ? void 0 : J.cmd_prm) != null ? re : ""), s.formID, r)), Te = ref((oe = o.selectedRows.value) != null ? oe : []);
11736
+ if (((le = s.varButtonDelete.value) == null ? void 0 : le.del_param_clm) !== "__kg__new_delete_param" && (Ce = ref({
11737
+ ids: (ne = (de = o.selectedRows.value) == null ? void 0 : de.map((Ie) => {
11738
11738
  var ke, Ae, Me;
11739
11739
  return (Me = Ie[(Ae = (ke = s.varButtonDelete.value) == null ? void 0 : ke.del_param_clm) != null ? Ae : "id"]) != null ? Me : "";
11740
- })) != null ? ae : []
11740
+ })) != null ? ne : []
11741
11741
  }), Te = ref({})), await i.store.emit(s.formID, "beforeRequest", {
11742
11742
  isCreating: s.isCreating.value,
11743
11743
  isUpdating: s.isUpdating.value,
@@ -11752,7 +11752,7 @@ const getProps$p = () => ({
11752
11752
  return;
11753
11753
  await httpClient().request({
11754
11754
  method: (me = (ge = s.varButtonDelete.value) == null ? void 0 : ge.cmd_method) != null ? me : "DELETE",
11755
- url: G,
11755
+ url: U,
11756
11756
  params: Ce.value,
11757
11757
  data: Te.value
11758
11758
  }, {
@@ -11774,46 +11774,46 @@ const getProps$p = () => ({
11774
11774
  s.store.setIsDeletingRequesting(s.formID, !1);
11775
11775
  }
11776
11776
  }
11777
- function oe(G) {
11777
+ function ie(U) {
11778
11778
  var J, re;
11779
- const Y = (re = (J = a == null ? void 0 : a.KgSubmit) == null ? void 0 : J["KgForm.Item"]) == null ? void 0 : re[G.var_nam];
11780
- return isFunction$2(Y) ? createVNode(KgForm.Item, {
11781
- kgVarName: G.var_nam,
11779
+ const W = (re = (J = a == null ? void 0 : a.KgSubmit) == null ? void 0 : J["KgForm.Item"]) == null ? void 0 : re[U.var_nam];
11780
+ return isFunction$2(W) ? createVNode(KgForm.Item, {
11781
+ kgVarName: U.var_nam,
11782
11782
  kgContext: KG_FORM_CONTEXT.SUBMIT,
11783
- kgRules: i.rules.value[G.var_nam],
11784
- onKgSubmit: U
11783
+ kgRules: i.rules.value[U.var_nam],
11784
+ onKgSubmit: B
11785
11785
  }, {
11786
11786
  control: ({
11787
- frm_id: se,
11788
- varName: ie,
11787
+ frm_id: oe,
11788
+ varName: le,
11789
11789
  props: de,
11790
- model: ae,
11790
+ model: ne,
11791
11791
  varVariableConfig: ge,
11792
11792
  varProfileDetail: me,
11793
11793
  varSubmitField: Se
11794
- }) => Y({
11795
- frm_id: se,
11796
- varName: ie,
11794
+ }) => W({
11795
+ frm_id: oe,
11796
+ varName: le,
11797
11797
  props: de,
11798
- model: ae,
11798
+ model: ne,
11799
11799
  varVariableConfig: ge,
11800
11800
  varProfileDetail: me,
11801
11801
  varSubmitField: Se
11802
11802
  })
11803
11803
  }) : createVNode(KgForm.Item, {
11804
- kgVarName: G.var_nam,
11804
+ kgVarName: U.var_nam,
11805
11805
  kgContext: KG_FORM_CONTEXT.SUBMIT,
11806
- kgRules: i.rules.value[G.var_nam],
11807
- onKgSubmit: U
11806
+ kgRules: i.rules.value[U.var_nam],
11807
+ onKgSubmit: B
11808
11808
  }, null);
11809
11809
  }
11810
11810
  function ue() {
11811
- let G, Y;
11811
+ let U, W;
11812
11812
  return createVNode(KgResizable, {
11813
11813
  kgType: i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
11814
- kgMinWidth: K.value,
11815
- kgMaxWidth: B.value,
11816
- kgWidth: W.value,
11814
+ kgMinWidth: Y.value,
11815
+ kgMaxWidth: K.value,
11816
+ kgWidth: G.value,
11817
11817
  kgDisabled: F.value,
11818
11818
  "onUpdate:kgWidth": (J) => x.value.kgWidth = J
11819
11819
  }, {
@@ -11824,19 +11824,19 @@ const getProps$p = () => ({
11824
11824
  ref: i.formRef,
11825
11825
  model: i.model.value,
11826
11826
  layout: he.value,
11827
- labelCol: ne.value,
11827
+ labelCol: se.value,
11828
11828
  wrapperCol: pe.value
11829
11829
  }, {
11830
11830
  default: () => [createVNode("div", {
11831
- ref: q
11831
+ ref: z
11832
11832
  }, [M.value.length > 0 && createVNode(Row, {
11833
11833
  gutter: 12
11834
- }, _isSlot$9(G = M.value.map(oe)) ? G : {
11835
- default: () => [G]
11834
+ }, _isSlot$9(U = M.value.map(ie)) ? U : {
11835
+ default: () => [U]
11836
11836
  }), P.value.length > 0 && L.value.length > 0 && createVNode(Divider, null, null), V.value.length > 0 && createVNode(Row, {
11837
11837
  gutter: 12
11838
- }, _isSlot$9(Y = V.value.map(oe)) ? Y : {
11839
- default: () => [Y]
11838
+ }, _isSlot$9(W = V.value.map(ie)) ? W : {
11839
+ default: () => [W]
11840
11840
  }), u.value && createVNode("div", {
11841
11841
  style: "text-align: center; padding: 6px 0 12px;"
11842
11842
  }, [n.t("kg.confirmDelete")])])]
@@ -11845,22 +11845,22 @@ const getProps$p = () => ({
11845
11845
  });
11846
11846
  }
11847
11847
  function ce() {
11848
- let G, Y;
11848
+ let U, W;
11849
11849
  return createVNode("div", null, [createVNode(Button, {
11850
11850
  type: "primary",
11851
11851
  ghost: !w.value,
11852
11852
  disabled: w.value,
11853
11853
  onClick: N
11854
- }, _isSlot$9(G = n.t("kg.cancel")) ? G : {
11855
- default: () => [G]
11854
+ }, _isSlot$9(U = n.t("kg.cancel")) ? U : {
11855
+ default: () => [U]
11856
11856
  }), createVNode(Button, {
11857
11857
  type: "primary",
11858
11858
  disabled: R.value,
11859
11859
  loading: D.value,
11860
11860
  danger: !!s.isDeleting.value,
11861
- onClick: U
11862
- }, _isSlot$9(Y = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? Y : {
11863
- default: () => [Y]
11861
+ onClick: B
11862
+ }, _isSlot$9(W = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? W : {
11863
+ default: () => [W]
11864
11864
  })]);
11865
11865
  }
11866
11866
  function be() {
@@ -11870,8 +11870,8 @@ const getProps$p = () => ({
11870
11870
  }
11871
11871
  function Ee() {
11872
11872
  return createVNode(KgSubmitHeader, {
11873
- isFullscreen: le.isFullscreen,
11874
- "onUpdate:isFullscreen": (G) => le.isFullscreen = G,
11873
+ isFullscreen: ae.isFullscreen,
11874
+ "onUpdate:isFullscreen": (U) => ae.isFullscreen = U,
11875
11875
  kgShowFullscreenButton: !u.value,
11876
11876
  kgShowConfigButton: !u.value && e.kgShowConfigButton,
11877
11877
  onKgCancel: N
@@ -12145,29 +12145,29 @@ const useKgTableStore = () => (store$4 || (store$4 = defineStore("KgTable", {
12145
12145
  }).bind(null, pinia())), store$4);
12146
12146
  function useKgTable(e) {
12147
12147
  const t = useKgVar(e), r = useKgTableStore()(), a = computed(() => r.getIsRetrieving(t.formID)), n = computed(() => r.getSelectedRows(t.formID)), s = computed(() => r.getSelectedFirstRow(t.formID)), l = computed(() => r.getSelectedRow(t.formID)), o = computed(() => {
12148
- var p;
12149
- return ((p = t.varGridConfig.value) == null ? void 0 : p.mult_flg) === 1;
12148
+ var g;
12149
+ return ((g = t.varGridConfig.value) == null ? void 0 : g.mult_flg) === 1;
12150
12150
  }), i = computed(() => {
12151
- var p;
12152
- return ((p = t.varGridConfig.value) == null ? void 0 : p.aut_load_flg) === 1;
12151
+ var g;
12152
+ return ((g = t.varGridConfig.value) == null ? void 0 : g.aut_load_flg) === 1;
12153
12153
  }), c = computed(() => {
12154
- var p, g;
12155
- return !!((p = t.varGridConfig.value) != null && p.id) && ((g = t.varGridConfig.value) == null ? void 0 : g.show_bottom_left_flg) !== 0;
12154
+ var g, p;
12155
+ return !!((g = t.varGridConfig.value) != null && g.id) && ((p = t.varGridConfig.value) == null ? void 0 : p.show_bottom_left_flg) !== 0;
12156
12156
  }), u = computed(() => {
12157
- var p, g;
12158
- return !!((p = t.varGridConfig.value) != null && p.id) && ((g = t.varGridConfig.value) == null ? void 0 : g.show_bottom_right_flg) !== 0;
12157
+ var g, p;
12158
+ return !!((g = t.varGridConfig.value) != null && g.id) && ((p = t.varGridConfig.value) == null ? void 0 : p.show_bottom_right_flg) !== 0;
12159
12159
  }), d = computed(() => {
12160
- var p, g;
12161
- return (g = (p = t.varGridConfig.value) == null ? void 0 : p.id_clm) != null ? g : "id";
12160
+ var g, p;
12161
+ return (p = (g = t.varGridConfig.value) == null ? void 0 : g.id_clm) != null ? p : "id";
12162
12162
  }), m = computed(() => {
12163
- var p, g;
12164
- return JSON.parse((g = (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opts) != null ? g : "[]");
12163
+ var g, p;
12164
+ return JSON.parse((p = (g = t.varGridConfig.value) == null ? void 0 : g.pg_size_opts) != null ? p : "[]");
12165
12165
  }), v = computed(() => {
12166
- var p;
12167
- return (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opt;
12166
+ var g;
12167
+ return (g = t.varGridConfig.value) == null ? void 0 : g.pg_size_opt;
12168
12168
  }), E = computed(() => {
12169
- var p;
12170
- return ((p = t.varGridConfig.value) == null ? void 0 : p.prf_frm_id) || t.formID;
12169
+ var g;
12170
+ return ((g = t.varGridConfig.value) == null ? void 0 : g.prf_frm_id) || t.formID;
12171
12171
  });
12172
12172
  return {
12173
12173
  formID: t.formID,
@@ -12243,7 +12243,7 @@ const getProps$n = () => ({
12243
12243
  return isString$1(k) && (k = k.replaceAll("\\n", `
12244
12244
  `)), k;
12245
12245
  }), E = ref(null);
12246
- function p(k) {
12246
+ function g(k) {
12247
12247
  var A, T, $;
12248
12248
  if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
12249
12249
  switch ((A = i.value) == null ? void 0 : A.display_type) {
@@ -12262,7 +12262,7 @@ const getProps$n = () => ({
12262
12262
  break;
12263
12263
  }
12264
12264
  }
12265
- function g() {
12265
+ function p() {
12266
12266
  }
12267
12267
  function y() {
12268
12268
  return createVNode(KgForm, {
@@ -12280,7 +12280,7 @@ const getProps$n = () => ({
12280
12280
  kgRules: l.rules.value[e.kgVarName],
12281
12281
  kgSpan: 24,
12282
12282
  kgDisabled: d.value ? !0 : void 0,
12283
- onKgSubmit: g
12283
+ onKgSubmit: p
12284
12284
  }, null)]
12285
12285
  })]
12286
12286
  });
@@ -12344,7 +12344,7 @@ const getProps$n = () => ({
12344
12344
  return k && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (A += "kg-table-td-update-link"), createVNode("pre", {
12345
12345
  innerHTML: v.value,
12346
12346
  class: A,
12347
- onClick: p
12347
+ onClick: g
12348
12348
  }, null);
12349
12349
  }
12350
12350
  return () => createVNode("div", {
@@ -12440,8 +12440,8 @@ const getProps$m = () => ({
12440
12440
  }) => {
12441
12441
  const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
12442
12442
  return l = watch(i, (u) => {
12443
- var d, m, v, E, p, g, y, b, C, k, A;
12444
- u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (E = c == null ? void 0 : c.show_check_column_flg) != null ? E : 0, u.show_bottom_left_flg = (p = c == null ? void 0 : c.show_bottom_left_flg) != null ? p : 1, u.show_bottom_right_flg = (g = c == null ? void 0 : c.show_bottom_right_flg) != null ? g : 1, u.convert_sort_field_to_under_score_flg = (y = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? y : 0, u.pg_size_opts = (b = c == null ? void 0 : c.pg_size_opts) != null ? b : "[10, 20, 50, 100]", u.pg_size_opt = (C = c == null ? void 0 : c.pg_size_opt) != null ? C : 10, u.cmd_prm = (k = c == null ? void 0 : c.cmd_prm) != null ? k : void 0, u.button_display_type = (A = c == null ? void 0 : c.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
12443
+ var d, m, v, E, g, p, y, b, C, k, A;
12444
+ u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (E = c == null ? void 0 : c.show_check_column_flg) != null ? E : 0, u.show_bottom_left_flg = (g = c == null ? void 0 : c.show_bottom_left_flg) != null ? g : 1, u.show_bottom_right_flg = (p = c == null ? void 0 : c.show_bottom_right_flg) != null ? p : 1, u.convert_sort_field_to_under_score_flg = (y = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? y : 0, u.pg_size_opts = (b = c == null ? void 0 : c.pg_size_opts) != null ? b : "[10, 20, 50, 100]", u.pg_size_opt = (C = c == null ? void 0 : c.pg_size_opt) != null ? C : 10, u.cmd_prm = (k = c == null ? void 0 : c.cmd_prm) != null ? k : void 0, u.button_display_type = (A = c == null ? void 0 : c.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
12445
12445
  }, {
12446
12446
  immediate: !0
12447
12447
  }), KgUtil.hideLoading(), !1;
@@ -13138,7 +13138,7 @@ function _useTransferColumns(e, t) {
13138
13138
  class: "kg-not-clickable"
13139
13139
  }, {
13140
13140
  default: () => {
13141
- let c, u, d, m, v, E, p;
13141
+ let c, u, d, m, v, E, g;
13142
13142
  return createVNode(Fragment, null, [createVNode(Select.Option, {
13143
13143
  value: "DESC"
13144
13144
  }, _isSlot$6(c = r.t("kg.KgTableSettingConfigModalVarGridMaster.DESC")) ? c : {
@@ -13165,8 +13165,8 @@ function _useTransferColumns(e, t) {
13165
13165
  default: () => [E]
13166
13166
  }), createVNode(Select.Option, {
13167
13167
  value: "ROUTE_LINK"
13168
- }, _isSlot$6(p = r.t("kg.KgTableSettingConfigModalVarGridMaster.ROUTE_LINK")) ? p : {
13169
- default: () => [p]
13168
+ }, _isSlot$6(g = r.t("kg.KgTableSettingConfigModalVarGridMaster.ROUTE_LINK")) ? g : {
13169
+ default: () => [g]
13170
13170
  })]);
13171
13171
  },
13172
13172
  suffixIcon: () => createVNode(CaretDownOutlined$1, {
@@ -13235,7 +13235,7 @@ function _useDragRow$1(e, t, r) {
13235
13235
  if (n = filter(document.querySelectorAll(`tr[kg-host-frm_id="${e}"] > td.handler`), () => !0), n)
13236
13236
  for (let u of n)
13237
13237
  u.__kg__dragstart__ = async (d) => {
13238
- var g, y;
13238
+ var p, y;
13239
13239
  s = u.parentElement, u.classList.add("dragging"), u.parentElement.classList.add("dragging");
13240
13240
  const m = document.createElement("span");
13241
13241
  m.setAttribute("id", "__kg_table_config_fields_drag_image__");
@@ -13243,9 +13243,9 @@ function _useDragRow$1(e, t, r) {
13243
13243
  width: v,
13244
13244
  height: E
13245
13245
  } = u.parentElement.getBoundingClientRect();
13246
- v && E && (m.style.width = `${v + 2}px`, m.style.height = `${E + 2}px`), (g = d.dataTransfer) == null || g.setDragImage(m, -10, (E + 2) / 2);
13247
- const p = await toCanvas(u.parentElement);
13248
- m.appendChild(p), document.body.appendChild(m), (y = d.dataTransfer) == null || y.setDragImage(m, -10, (E + 2) / 2);
13246
+ v && E && (m.style.width = `${v + 2}px`, m.style.height = `${E + 2}px`), (p = d.dataTransfer) == null || p.setDragImage(m, -10, (E + 2) / 2);
13247
+ const g = await toCanvas(u.parentElement);
13248
+ m.appendChild(g), document.body.appendChild(m), (y = d.dataTransfer) == null || y.setDragImage(m, -10, (E + 2) / 2);
13249
13249
  }, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
13250
13250
  u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
13251
13251
  const m = document.querySelector("#__kg_table_config_fields_drag_image__");
@@ -13289,15 +13289,15 @@ function _useDragRow$1(e, t, r) {
13289
13289
  }
13290
13290
  function i(u, d) {
13291
13291
  setTimeout(() => {
13292
- const m = t.value.findIndex((g) => g.var_nam === u), v = t.value.findIndex((g) => g.var_nam === d);
13292
+ const m = t.value.findIndex((p) => p.var_nam === u), v = t.value.findIndex((p) => p.var_nam === d);
13293
13293
  if (m === -1 || v === -1)
13294
13294
  return;
13295
- const E = t.value.find((g) => g.var_nam === u), p = [];
13296
- t.value.forEach((g, y) => {
13297
- m > v ? y < v ? p.push(g) : y === v ? (p.push(E), p.push(g)) : y > v && y !== m && p.push(g) : m < v && (y < m ? p.push(g) : y === m || (y === v ? (p.push(g), p.push(E)) : p.push(g)));
13298
- }), p.forEach((g, y) => {
13299
- g.srtseq = y + 1;
13300
- }), t.value = p, nextTick().finally(() => {
13295
+ const E = t.value.find((p) => p.var_nam === u), g = [];
13296
+ t.value.forEach((p, y) => {
13297
+ m > v ? y < v ? g.push(p) : y === v ? (g.push(E), g.push(p)) : y > v && y !== m && g.push(p) : m < v && (y < m ? g.push(p) : y === m || (y === v ? (g.push(p), g.push(E)) : g.push(p)));
13298
+ }), g.forEach((p, y) => {
13299
+ p.srtseq = y + 1;
13300
+ }), t.value = g, nextTick().finally(() => {
13301
13301
  KgUtil.hideLoading();
13302
13302
  });
13303
13303
  });
@@ -13422,7 +13422,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$k = () => ({
13422
13422
  }
13423
13423
  }
13424
13424
  };
13425
- }), p = ref({
13425
+ }), g = ref({
13426
13426
  KgSubmit: {
13427
13427
  "KgForm.Item": {
13428
13428
  varGridDetails: () => createVNode(Transfer, {
@@ -13467,7 +13467,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$k = () => ({
13467
13467
  };
13468
13468
  return b === "right" && (M["kg-host-frm_id"] = a.formID, M["kg-var_nam"] = I.var_nam), M;
13469
13469
  },
13470
- rowSelection: g({
13470
+ rowSelection: p({
13471
13471
  disabled: A,
13472
13472
  selectedKeys: k,
13473
13473
  onItemSelectAll: T,
@@ -13478,7 +13478,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$k = () => ({
13478
13478
  })
13479
13479
  }
13480
13480
  }
13481
- }), g = ({
13481
+ }), p = ({
13482
13482
  disabled: b,
13483
13483
  selectedKeys: C,
13484
13484
  onItemSelectAll: k,
@@ -13522,7 +13522,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$k = () => ({
13522
13522
  return () => createVNode(KgVar, {
13523
13523
  class: "kg-table--config-modal--var-grid-master",
13524
13524
  kgProps: E.value,
13525
- kgSlots: p.value
13525
+ kgSlots: g.value
13526
13526
  }, null);
13527
13527
  }
13528
13528
  }), getProps$j = () => ({
@@ -13633,9 +13633,9 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
13633
13633
  return o.onOpen(async ({
13634
13634
  model: i
13635
13635
  }) => {
13636
- var u, d, m, v, E, p, g;
13636
+ var u, d, m, v, E, g, p;
13637
13637
  const c = s.currentVarGridMaster.value;
13638
- return i.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, i.value.grd_var_nam_dsc = `${(m = (d = c == null ? void 0 : c.grd_var_nam_dsc) != null ? d : c == null ? void 0 : c.grd_var_nam) != null ? m : ""}_COPY`, i.value.frm_id = (v = c == null ? void 0 : c.frm_id) != null ? v : "", i.value.usr_id = (E = c == null ? void 0 : c.usr_id) != null ? E : "", i.value.grp_nam = (p = c == null ? void 0 : c.grp_nam) != null ? p : "", i.value.varGridDetails = (g = c == null ? void 0 : c.varGridDetails) != null ? g : [], KgUtil.hideLoading(), !1;
13638
+ return i.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, i.value.grd_var_nam_dsc = `${(m = (d = c == null ? void 0 : c.grd_var_nam_dsc) != null ? d : c == null ? void 0 : c.grd_var_nam) != null ? m : ""}_COPY`, i.value.frm_id = (v = c == null ? void 0 : c.frm_id) != null ? v : "", i.value.usr_id = (E = c == null ? void 0 : c.usr_id) != null ? E : "", i.value.grp_nam = (g = c == null ? void 0 : c.grp_nam) != null ? g : "", i.value.varGridDetails = (p = c == null ? void 0 : c.varGridDetails) != null ? p : [], KgUtil.hideLoading(), !1;
13639
13639
  }), o.onBeforeOk(async ({
13640
13640
  model: i
13641
13641
  }) => (i.value, !1)), o.onOk(async () => (message.success(a.t("kg.KgTable.save-var-grid-master-as-success-message")), s.store.retrieve(s.formID), !1)), o.onClose(async () => (r("kgClose"), !1)), l.store.setIsCopying(l.formID, !0), () => createVNode(KgVar, null, null);
@@ -13694,7 +13694,7 @@ const getProps$h = () => ({
13694
13694
  async function E() {
13695
13695
  d.value = !0;
13696
13696
  }
13697
- function p() {
13697
+ function g() {
13698
13698
  return createVNode(Menu.SubMenu, {
13699
13699
  key: "1",
13700
13700
  title: a.t("kg.KgTable.column"),
@@ -13733,7 +13733,7 @@ const getProps$h = () => ({
13733
13733
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
13734
13734
  });
13735
13735
  }
13736
- function g() {
13736
+ function p() {
13737
13737
  return createVNode(Menu.SubMenu, {
13738
13738
  key: "2",
13739
13739
  title: a.t("kg.KgTable.varGridMasters"),
@@ -13800,7 +13800,7 @@ const getProps$h = () => ({
13800
13800
  "onUpdate:openKeys": (b) => o.value = b,
13801
13801
  selectable: !1
13802
13802
  }, {
13803
- default: () => [p(), g(), y()]
13803
+ default: () => [g(), p(), y()]
13804
13804
  })
13805
13805
  }), c.visible && createVNode(KgTableSettingConfigModal, {
13806
13806
  visible: c.visible,
@@ -13826,35 +13826,35 @@ function _useColumns(e) {
13826
13826
  align: "center",
13827
13827
  className: "kg-table-td-index",
13828
13828
  customRender: ({
13829
- index: p
13830
- }) => p + 1
13831
- }, ...(E = u == null ? void 0 : u.map((p) => {
13832
- const g = p.var_nam;
13829
+ index: g
13830
+ }) => g + 1
13831
+ }, ...(E = u == null ? void 0 : u.map((g) => {
13832
+ const p = g.var_nam;
13833
13833
  function y() {
13834
- return p.width === "auto" ? "auto" : Number(p.width) || KG_TABLE_TD_DEFAULT_WIDTH;
13834
+ return g.width === "auto" ? "auto" : Number(g.width) || KG_TABLE_TD_DEFAULT_WIDTH;
13835
13835
  }
13836
13836
  function b() {
13837
- return r.t(g).value;
13837
+ return r.t(p).value;
13838
13838
  }
13839
13839
  function C() {
13840
- return p.ord === -1 ? null : p.ord === 0 ? "ascend" : p.ord === 1 ? "descend" : null;
13840
+ return g.ord === -1 ? null : g.ord === 0 ? "ascend" : g.ord === 1 ? "descend" : null;
13841
13841
  }
13842
13842
  function k() {
13843
- if (p.fix_left_flg === 1)
13843
+ if (g.fix_left_flg === 1)
13844
13844
  return "left";
13845
- if (p.fix_right_flg === 1)
13845
+ if (g.fix_right_flg === 1)
13846
13846
  return "right";
13847
13847
  }
13848
13848
  function A() {
13849
13849
  var O, I, M, P;
13850
- return !((I = (O = t == null ? void 0 : t.value) == null ? void 0 : O.KgTable) != null && I.kgDisabled || isNil((P = (M = t == null ? void 0 : t.value) == null ? void 0 : M.KgTable) == null ? void 0 : P.kgDisabled) && e.kgDisabled || p.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
13850
+ return !((I = (O = t == null ? void 0 : t.value) == null ? void 0 : O.KgTable) != null && I.kgDisabled || isNil((P = (M = t == null ? void 0 : t.value) == null ? void 0 : M.KgTable) == null ? void 0 : P.kgDisabled) && e.kgDisabled || g.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
13851
13851
  }
13852
13852
  function T() {
13853
- return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
13853
+ return ["left", "center", "right"].includes(g.align || "") ? g.align : "left";
13854
13854
  }
13855
13855
  const $ = y();
13856
13856
  return {
13857
- dataIndex: g,
13857
+ dataIndex: p,
13858
13858
  title: b(),
13859
13859
  width: $,
13860
13860
  resizable: typeof $ == "number",
@@ -13866,21 +13866,21 @@ function _useColumns(e) {
13866
13866
  defaultSortOrder: C(),
13867
13867
  customHeaderCell: () => ({
13868
13868
  "kg-frm_id": r.formID,
13869
- "kg-var_nam": g,
13869
+ "kg-var_nam": p,
13870
13870
  draggable: !0
13871
13871
  }),
13872
13872
  customCell: (O) => {
13873
13873
  var M;
13874
- const I = r.store.getVarSubmitField(r.formID, g);
13874
+ const I = r.store.getVarSubmitField(r.formID, p);
13875
13875
  return {
13876
13876
  "kg-frm_id": r.formID,
13877
- "kg-var_nam": g,
13877
+ "kg-var_nam": p,
13878
13878
  class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && O[n.id.value] === ((M = n.selectedRow.value) == null ? void 0 : M[n.id.value]) && (!!r.isCreating.value && (I == null ? void 0 : I.crt_flg) === 1 || !!r.isUpdating.value && (I == null ? void 0 : I.upt_flg) === 1 || !!r.isCopying.value && (I == null ? void 0 : I.cpy_flg) === 1 || !!r.isDeleting.value && (I == null ? void 0 : I.del_flg) === 1) ? "submitting" : ""
13879
13879
  };
13880
13880
  }
13881
13881
  };
13882
13882
  })) != null ? E : []];
13883
- return (c === 0 || i > c && !(u != null && u.find((p) => p.width === "auto"))) && d.push({
13883
+ return (c === 0 || i > c && !(u != null && u.find((g) => g.width === "auto"))) && d.push({
13884
13884
  width: "auto",
13885
13885
  customRender: () => null
13886
13886
  }), d;
@@ -13933,8 +13933,8 @@ function _useDragColumn(e, t) {
13933
13933
  height: m
13934
13934
  } = i.getBoundingClientRect();
13935
13935
  d && m && (u.style.width = `${d + 2}px`, u.style.height = `${m + 2}px`), (v = c.dataTransfer) == null || v.setDragImage(u, -10, (m + 2) / 2), toCanvas(i).then((E) => {
13936
- var p;
13937
- u.appendChild(E), document.body.appendChild(u), (p = c.dataTransfer) == null || p.setDragImage(u, -10, (m + 2) / 2);
13936
+ var g;
13937
+ u.appendChild(E), document.body.appendChild(u), (g = c.dataTransfer) == null || g.setDragImage(u, -10, (m + 2) / 2);
13938
13938
  });
13939
13939
  }, i.addEventListener("dragstart", i.__kg__dragstart__), i.__kg__dragend__ = (c) => {
13940
13940
  i.classList.remove("dragging"), i.parentElement.classList.remove("dragging");
@@ -13993,67 +13993,67 @@ const KgTable$1 = "", getProps$g = () => ({
13993
13993
  const a = inject("$dayjs", dayjs), n = inject(DI_KG_VAR__KG_SLOTS, null), s = inject(DI_KG_VAR__KG_PROPS, null), l = useKg(), o = useKgVar(), i = useKgSearch(), c = useKgButton(), u = useKgTable(), d = useKgSubmit();
13994
13994
  i.onSearch(async ({
13995
13995
  resetPageIndex: N
13996
- }) => (W(N), !1)), i.onReset(async () => (W(!0), !1)), u.store.$onAction(async ({
13996
+ }) => (G(N), !1)), i.onReset(async () => (G(!0), !1)), u.store.$onAction(async ({
13997
13997
  name: N,
13998
- args: U
13998
+ args: B
13999
13999
  }) => {
14000
14000
  switch (N) {
14001
14001
  case "setRowSelect":
14002
- if (U[0] === o.formID) {
14003
- const z = U[1], H = U[2], Z = z[u.id.value];
14002
+ if (B[0] === o.formID) {
14003
+ const q = B[1], H = B[2], Z = q[u.id.value];
14004
14004
  switch (!0) {
14005
14005
  case (H && !D.value.includes(Z)):
14006
- q([...D.value, Z]);
14006
+ z([...D.value, Z]);
14007
14007
  break;
14008
14008
  case (!H && D.value.includes(Z)):
14009
- q(without$1(D.value, Z));
14009
+ z(without$1(D.value, Z));
14010
14010
  break;
14011
14011
  }
14012
14012
  }
14013
14013
  break;
14014
14014
  case "clearDatas":
14015
- U[0] === o.formID && (u.store.setDatas(o.formID, []), w.total = 0, B(), v.value = []);
14015
+ B[0] === o.formID && (u.store.setDatas(o.formID, []), w.total = 0, K(), v.value = []);
14016
14016
  break;
14017
14017
  }
14018
14018
  });
14019
14019
  const m = ref(!1), v = ref([]), {
14020
14020
  columns: E,
14021
- scrollX: p
14021
+ scrollX: g
14022
14022
  } = _useColumns(e), {
14023
- isLoading: g
14023
+ isLoading: p
14024
14024
  } = _useLoading(), y = ref(null);
14025
14025
  _useResizeObserver(y), _useDragColumn(y, E);
14026
14026
  const b = computed(() => {
14027
- var N, U;
14028
- return (U = (N = o.varButtonSearch.value) == null ? void 0 : N.cmd) != null ? U : null;
14027
+ var N, B;
14028
+ return (B = (N = o.varButtonSearch.value) == null ? void 0 : N.cmd) != null ? B : null;
14029
14029
  }), C = computed(() => {
14030
- var U, z, H, Z, te, oe, ue;
14030
+ var B, q, H, Z, te, ie, ue;
14031
14031
  let N = {
14032
14032
  pageNo: w.pageIndex,
14033
14033
  pageSize: w.pageSize,
14034
14034
  ...R,
14035
- ...(z = (U = i.model) == null ? void 0 : U.value) != null ? z : {}
14035
+ ...(q = (B = i.model) == null ? void 0 : B.value) != null ? q : {}
14036
14036
  };
14037
14037
  return o.varButtonSearch.value && (N = {
14038
14038
  ...N,
14039
14039
  ...KgVarUtil.parseCommandParameter((Z = (H = o.varButtonSearch.value) == null ? void 0 : H.cmd_prm) != null ? Z : "")
14040
14040
  }), (te = o.varGridConfig.value) != null && te.cmd_prm && (N = {
14041
14041
  ...N,
14042
- ...KgVarUtil.parseCommandParameter((oe = o.varGridConfig.value.cmd_prm) != null ? oe : "")
14042
+ ...KgVarUtil.parseCommandParameter((ie = o.varGridConfig.value.cmd_prm) != null ? ie : "")
14043
14043
  }), ((ue = o.varGridConfig.value) == null ? void 0 : ue.convert_sort_field_to_under_score_flg) === 1 && N.column && (N.column = snakeCase$1(N.column)), N;
14044
14044
  }), k = computed(() => {
14045
- var N, U, z, H;
14046
- if (!isNil((U = (N = s == null ? void 0 : s.value) == null ? void 0 : N.KgTable) == null ? void 0 : U.kgDisabled))
14047
- return (H = (z = s == null ? void 0 : s.value) == null ? void 0 : z.KgTable) == null ? void 0 : H.kgDisabled;
14045
+ var N, B, q, H;
14046
+ if (!isNil((B = (N = s == null ? void 0 : s.value) == null ? void 0 : N.KgTable) == null ? void 0 : B.kgDisabled))
14047
+ return (H = (q = s == null ? void 0 : s.value) == null ? void 0 : q.KgTable) == null ? void 0 : H.kgDisabled;
14048
14048
  if (!isNil(e.kgDisabled))
14049
14049
  return e.kgDisabled;
14050
14050
  }), A = computed(() => {
14051
- var N, U, z, H;
14052
- if (!isNil((U = (N = s == null ? void 0 : s.value) == null ? void 0 : N.KgTable) == null ? void 0 : U.kgCheckboxDisabled))
14053
- return (H = (z = s == null ? void 0 : s.value) == null ? void 0 : z.KgTable) == null ? void 0 : H.kgCheckboxDisabled;
14051
+ var N, B, q, H;
14052
+ if (!isNil((B = (N = s == null ? void 0 : s.value) == null ? void 0 : N.KgTable) == null ? void 0 : B.kgCheckboxDisabled))
14053
+ return (H = (q = s == null ? void 0 : s.value) == null ? void 0 : q.KgTable) == null ? void 0 : H.kgCheckboxDisabled;
14054
14054
  if (!isNil(e.kgCheckboxDisabled))
14055
14055
  return e.kgCheckboxDisabled;
14056
- }), T = computed(() => !!k.value || g.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), $ = computed(() => !!k.value || g.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || w.total === 0), O = computed(() => {
14056
+ }), T = computed(() => !!k.value || p.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), $ = computed(() => !!k.value || p.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || w.total === 0), O = computed(() => {
14057
14057
  var N;
14058
14058
  return !!((N = n == null ? void 0 : n.KgTable) != null && N.expandedRowRender);
14059
14059
  }), I = computed(() => {
@@ -14068,22 +14068,22 @@ const KgTable$1 = "", getProps$g = () => ({
14068
14068
  selectedRowKeys: D,
14069
14069
  preserveSelectedRowKeys: !1,
14070
14070
  getCheckboxProps: (N) => {
14071
- var U;
14071
+ var B;
14072
14072
  return {
14073
- disabled: !!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || !!((U = A.value) != null && U.call(A, N))
14073
+ disabled: !!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || !!((B = A.value) != null && B.call(A, N))
14074
14074
  };
14075
14075
  },
14076
14076
  onSelect: (N) => X(N),
14077
- onChange: (N) => u.isMultiSelect.value && q(N)
14077
+ onChange: (N) => u.isMultiSelect.value && z(N)
14078
14078
  };
14079
14079
  }), P = computed(() => {
14080
- var U;
14080
+ var B;
14081
14081
  let N = "kg-table";
14082
- return ((U = o.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (N += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (N += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value) && (N += " kg-table--submitting"), N;
14082
+ return ((B = o.varGridConfig.value) == null ? void 0 : B.show_bottom_border_flg) === 1 && (N += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (N += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value) && (N += " kg-table--submitting"), N;
14083
14083
  }), V = computed(() => {
14084
- var U;
14084
+ var B;
14085
14085
  let N = "kg-table-bottom";
14086
- return ((U = o.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (N += " kg-table-bottom--border"), N;
14086
+ return ((B = o.varGridConfig.value) == null ? void 0 : B.show_bottom_border_flg) === 1 && (N += " kg-table-bottom--border"), N;
14087
14087
  }), L = computed(() => u.store.getDatas(o.formID)), D = (ve = u.store.getSelectedRowKeys(o.formID)) != null ? ve : ref([]), w = reactive({
14088
14088
  pageIndex: 1,
14089
14089
  pageSize: 10,
@@ -14098,12 +14098,12 @@ const KgTable$1 = "", getProps$g = () => ({
14098
14098
  });
14099
14099
  watch(u.pageSizeOptions, (N) => {
14100
14100
  N.length > 0 && !N.includes(w.pageSize) && (w.pageSize = u.pageSizeOption.value);
14101
- }), watch([b, u.isReadAutomatically, i.isReady], ([N, U, z]) => {
14102
- N && U && z && !u.store.getIsRetrieved(o.formID) && W(!0);
14101
+ }), watch([b, u.isReadAutomatically, i.isReady], ([N, B, q]) => {
14102
+ N && B && q && !u.store.getIsRetrieved(o.formID) && G(!0);
14103
14103
  }, {
14104
14104
  immediate: !0
14105
- }), watch(o.isCreating, (N, U) => {
14106
- N === !0 ? F() : N === !1 && U === !0 && K();
14105
+ }), watch(o.isCreating, (N, B) => {
14106
+ N === !0 ? F() : N === !1 && B === !0 && Y();
14107
14107
  }), onUnmounted(() => {
14108
14108
  u.store.dispose(o.formID);
14109
14109
  });
@@ -14115,44 +14115,44 @@ const KgTable$1 = "", getProps$g = () => ({
14115
14115
  u.store.setDatas(o.formID, [N, ...L.value]), u.store.setSelectedRows(o.formID, [N]);
14116
14116
  }
14117
14117
  }
14118
- function K() {
14119
- const N = L.value.find((U) => U[u.id.value] === KG_TABLE_TEMP_ID);
14118
+ function Y() {
14119
+ const N = L.value.find((B) => B[u.id.value] === KG_TABLE_TEMP_ID);
14120
14120
  N && (u.store.setDatas(o.formID, without$1(L.value, N)), u.store.setSelectedRows(o.formID, []));
14121
14121
  }
14122
- function B(N, U) {
14123
- var z;
14122
+ function K(N, B) {
14123
+ var q;
14124
14124
  if (!(!!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!M.value) {
14125
- if (!U) {
14125
+ if (!B) {
14126
14126
  u.store.setSelectedRows(o.formID, []);
14127
14127
  return;
14128
14128
  }
14129
14129
  switch (N == null ? void 0 : N.detail) {
14130
14130
  case 1:
14131
- switch ((z = o.varGridConfig.value) == null ? void 0 : z.operation_on_row_click) {
14131
+ switch ((q = o.varGridConfig.value) == null ? void 0 : q.operation_on_row_click) {
14132
14132
  case 0:
14133
14133
  break;
14134
14134
  case 1:
14135
- u.store.setSelectedRows(o.formID, [U]);
14135
+ u.store.setSelectedRows(o.formID, [B]);
14136
14136
  break;
14137
14137
  }
14138
14138
  break;
14139
14139
  case 2:
14140
14140
  u.store.emit(o.formID, "rowDoubleClick", {
14141
- row: U
14141
+ row: B
14142
14142
  });
14143
14143
  break;
14144
14144
  }
14145
14145
  }
14146
14146
  }
14147
- function W(N = !1) {
14147
+ function G(N = !1) {
14148
14148
  KgLogger.debug(`${o.formID} | KgTable | retrieve() | \u8FDB\u5165\u65B9\u6CD5.`);
14149
- const U = watch(m, (H) => {
14150
- H && (setTimeout(() => U()), z());
14149
+ const B = watch(m, (H) => {
14150
+ H && (setTimeout(() => B()), q());
14151
14151
  }, {
14152
14152
  immediate: !0
14153
14153
  });
14154
- async function z() {
14155
- var H, Z, te, oe;
14154
+ async function q() {
14155
+ var H, Z, te, ie;
14156
14156
  if (KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u8FDB\u5165\u65B9\u6CD5.`), !b.value) {
14157
14157
  KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
14158
14158
  VarButton: o.varButtonSearch.value
@@ -14190,14 +14190,14 @@ const KgTable$1 = "", getProps$g = () => ({
14190
14190
  await u.store.emit(o.formID, "beforeSetDatas", {
14191
14191
  datas: be,
14192
14192
  total: Ee,
14193
- setDatas(G) {
14194
- u.store.setDatas(o.formID, G);
14193
+ setDatas(U) {
14194
+ u.store.setDatas(o.formID, U);
14195
14195
  }
14196
- }), u.store.setDatas(o.formID, be.value), w.total = Ee.value, B(), v.value = [], await nextTick(), ((oe = o.varGridConfig.value) == null ? void 0 : oe.check_first_row_after_retrieve) === 1 && be.value.length > 0 && u.store.setSelectedRows(o.formID, [be.value[0]]), await u.store.emit(o.formID, "retrieve", {
14196
+ }), u.store.setDatas(o.formID, be.value), w.total = Ee.value, K(), v.value = [], await nextTick(), ((ie = o.varGridConfig.value) == null ? void 0 : ie.check_first_row_after_retrieve) === 1 && be.value.length > 0 && u.store.setSelectedRows(o.formID, [be.value[0]]), await u.store.emit(o.formID, "retrieve", {
14197
14197
  page: ce.value,
14198
14198
  datas: be,
14199
- setDatas(G) {
14200
- u.store.setDatas(o.formID, G);
14199
+ setDatas(U) {
14200
+ u.store.setDatas(o.formID, U);
14201
14201
  }
14202
14202
  }), u.store.setIsRetrieved(o.formID, !0);
14203
14203
  } catch (ue) {
@@ -14207,25 +14207,25 @@ const KgTable$1 = "", getProps$g = () => ({
14207
14207
  }
14208
14208
  }
14209
14209
  }
14210
- function q(N) {
14211
- u.store.setSelectedRows(o.formID, N.map((U) => {
14212
- var z;
14213
- return (z = L.value) == null ? void 0 : z.find((H) => H[u.id.value] === U);
14214
- }).filter((U) => !!U));
14210
+ function z(N) {
14211
+ u.store.setSelectedRows(o.formID, N.map((B) => {
14212
+ var q;
14213
+ return (q = L.value) == null ? void 0 : q.find((H) => H[u.id.value] === B);
14214
+ }).filter((B) => !!B));
14215
14215
  }
14216
14216
  function X(N) {
14217
- var U, z;
14217
+ var B, q;
14218
14218
  switch (u.isMultiSelect.value) {
14219
14219
  case !0:
14220
14220
  {
14221
14221
  const H = N[u.id.value];
14222
- D.value.includes(H) ? D.value = without$1(D.value, H) : D.value = [...(U = D.value) != null ? U : [], H];
14222
+ D.value.includes(H) ? D.value = without$1(D.value, H) : D.value = [...(B = D.value) != null ? B : [], H];
14223
14223
  }
14224
14224
  break;
14225
14225
  case !1:
14226
14226
  {
14227
14227
  const H = N[u.id.value];
14228
- (z = D.value) != null && z.includes(H) ? D.value = [] : D.value = [H];
14228
+ (q = D.value) != null && q.includes(H) ? D.value = [] : D.value = [H];
14229
14229
  }
14230
14230
  break;
14231
14231
  }
@@ -14234,47 +14234,47 @@ const KgTable$1 = "", getProps$g = () => ({
14234
14234
  return (Z = L.value) == null ? void 0 : Z.find((te) => te[u.id.value] === H);
14235
14235
  }).filter((H) => !!H));
14236
14236
  }
14237
- function Q(N, U) {
14238
- U.width = N, o.store.setVarGridDetailWidth(o.formID, U.dataIndex, N);
14237
+ function Q(N, B) {
14238
+ B.width = N, o.store.setVarGridDetailWidth(o.formID, B.dataIndex, N);
14239
14239
  }
14240
- async function ee(N, U, z, H) {
14240
+ async function ee(N, B, q, H) {
14241
14241
  var Z;
14242
14242
  switch (H.action) {
14243
14243
  case "sort":
14244
14244
  {
14245
14245
  await nextTick();
14246
- let te = z;
14247
- te.order ? (R.column = (Z = te.field) != null ? Z : void 0, R.order = te.order === "ascend" ? "asc" : te.order === "descend" ? "desc" : void 0) : (R.column = void 0, R.order = void 0), W(!0);
14246
+ let te = q;
14247
+ te.order ? (R.column = (Z = te.field) != null ? Z : void 0, R.order = te.order === "ascend" ? "asc" : te.order === "descend" ? "desc" : void 0) : (R.column = void 0, R.order = void 0), G(!0);
14248
14248
  }
14249
14249
  break;
14250
14250
  }
14251
14251
  }
14252
- function le(N, U) {
14252
+ function ae(N, B) {
14253
14253
  var H;
14254
- const z = U[u.id.value];
14254
+ const q = B[u.id.value];
14255
14255
  switch ((H = o.varGridConfig.value) == null ? void 0 : H.expand_accordion_flg) {
14256
14256
  case 0:
14257
- N ? v.value = uniq([...v.value, z]) : v.value = without$1(v.value, z);
14257
+ N ? v.value = uniq([...v.value, q]) : v.value = without$1(v.value, q);
14258
14258
  break;
14259
14259
  default:
14260
- N ? v.value = [z] : v.value = [];
14260
+ N ? v.value = [q] : v.value = [];
14261
14261
  break;
14262
14262
  }
14263
14263
  }
14264
- function _e(N, U) {
14265
- U !== w.pageSize ? (w.pageIndex = 1, w.pageSize = U) : w.pageIndex = N, W();
14264
+ function _e(N, B) {
14265
+ B !== w.pageSize ? (w.pageIndex = 1, w.pageSize = B) : w.pageIndex = N, G();
14266
14266
  }
14267
14267
  function he(N) {
14268
- u.store.setSelectedRows(o.formID, [N].map((U) => {
14269
- var z;
14270
- return (z = L.value) == null ? void 0 : z.find((H) => H[u.id.value] === U[u.id.value]);
14271
- }).filter((U) => !!U)), c.click(o.formID, KG_BUTTON_TYPE.UPDATE);
14268
+ u.store.setSelectedRows(o.formID, [N].map((B) => {
14269
+ var q;
14270
+ return (q = L.value) == null ? void 0 : q.find((H) => H[u.id.value] === B[u.id.value]);
14271
+ }).filter((B) => !!B)), c.click(o.formID, KG_BUTTON_TYPE.UPDATE);
14272
14272
  }
14273
14273
  function fe({
14274
14274
  title: N,
14275
- column: U
14275
+ column: B
14276
14276
  }) {
14277
- switch (U.dataIndex) {
14277
+ switch (B.dataIndex) {
14278
14278
  case "index":
14279
14279
  return createVNode(KgTableSetting, {
14280
14280
  kgDisabled: k.value
@@ -14285,7 +14285,7 @@ const KgTable$1 = "", getProps$g = () => ({
14285
14285
  }, [N]);
14286
14286
  }
14287
14287
  }
14288
- function ne() {
14288
+ function se() {
14289
14289
  var N;
14290
14290
  return (N = n == null ? void 0 : n.KgTable) != null && N["summary.bodyCell"] ? createVNode(TableSummary, {
14291
14291
  fixed: "bottom"
@@ -14295,17 +14295,17 @@ const KgTable$1 = "", getProps$g = () => ({
14295
14295
  index: 0
14296
14296
  }, null), I.value && createVNode(TableSummary.Cell, {
14297
14297
  index: O.value ? 1 : 0
14298
- }, null), E.value.map((U, z) => {
14299
- const H = o.store.getVarGridDetail(o.formID, U.dataIndex), Z = (() => ["left", "center", "right"].includes((H == null ? void 0 : H.align) || "") ? H == null ? void 0 : H.align : "left")();
14300
- let te = z;
14298
+ }, null), E.value.map((B, q) => {
14299
+ const H = o.store.getVarGridDetail(o.formID, B.dataIndex), Z = (() => ["left", "center", "right"].includes((H == null ? void 0 : H.align) || "") ? H == null ? void 0 : H.align : "left")();
14300
+ let te = q;
14301
14301
  return O.value && I.value ? te += 2 : (O.value || I.value) && (te += 1), createVNode(TableSummary.Cell, {
14302
14302
  index: te,
14303
14303
  align: Z
14304
14304
  }, {
14305
14305
  default: () => {
14306
- var oe, ue;
14307
- return [(ue = (oe = n == null ? void 0 : n.KgTable) == null ? void 0 : oe["summary.bodyCell"]) == null ? void 0 : ue.call(oe, {
14308
- column: U,
14306
+ var ie, ue;
14307
+ return [(ue = (ie = n == null ? void 0 : n.KgTable) == null ? void 0 : ie["summary.bodyCell"]) == null ? void 0 : ue.call(ie, {
14308
+ column: B,
14309
14309
  index: te,
14310
14310
  varGridDetail: H
14311
14311
  })];
@@ -14317,47 +14317,47 @@ const KgTable$1 = "", getProps$g = () => ({
14317
14317
  }
14318
14318
  function pe({
14319
14319
  column: N,
14320
- index: U,
14321
- record: z,
14320
+ index: B,
14321
+ record: q,
14322
14322
  text: H,
14323
14323
  value: Z
14324
14324
  }) {
14325
14325
  var ue;
14326
14326
  let te = "";
14327
14327
  N.customRender ? te = N.customRender({
14328
- index: U,
14329
- record: z,
14328
+ index: B,
14329
+ record: q,
14330
14330
  column: N,
14331
14331
  text: H,
14332
14332
  value: Z,
14333
- renderIndex: U
14333
+ renderIndex: B
14334
14334
  }) : te = Z;
14335
- const oe = createVNode(KgTableCell, {
14336
- kgRow: z,
14335
+ const ie = createVNode(KgTableCell, {
14336
+ kgRow: q,
14337
14337
  kgValue: te,
14338
14338
  kgVarName: N.dataIndex,
14339
- onKgUpdateLinkClick: () => he(z)
14339
+ onKgUpdateLinkClick: () => he(q)
14340
14340
  }, null);
14341
14341
  if ((ue = n == null ? void 0 : n.KgTable) != null && ue.bodyCell) {
14342
14342
  const ce = N.dataIndex ? o.store.getVarGridDetail(o.formID, N.dataIndex) : null;
14343
14343
  return n.KgTable.bodyCell({
14344
14344
  column: N,
14345
- index: U,
14346
- record: z,
14345
+ index: B,
14346
+ record: q,
14347
14347
  text: H,
14348
14348
  value: Z,
14349
- row: z,
14349
+ row: q,
14350
14350
  varGridDetail: ce,
14351
- defaultRender: oe
14351
+ defaultRender: ie
14352
14352
  });
14353
14353
  } else
14354
- return oe;
14354
+ return ie;
14355
14355
  }
14356
14356
  function ye() {
14357
14357
  return !u.isReadAutomatically.value && !u.store.getIsRetrieved(o.formID) ? l.t("kg.KgTable.emptyText") : l.t("kg.emptyText");
14358
14358
  }
14359
14359
  return () => {
14360
- var N, U, z;
14360
+ var N, B, q;
14361
14361
  return createVNode("div", {
14362
14362
  class: P.value,
14363
14363
  "kg-frm_id": o.formID,
@@ -14366,31 +14366,31 @@ const KgTable$1 = "", getProps$g = () => ({
14366
14366
  class: "kg-flex-table",
14367
14367
  size: "small",
14368
14368
  scroll: {
14369
- x: p.value,
14369
+ x: g.value,
14370
14370
  y: "auto"
14371
14371
  },
14372
14372
  pagination: !1,
14373
14373
  showSorterTooltip: !1,
14374
14374
  columns: E.value,
14375
14375
  dataSource: L.value,
14376
- loading: g.value,
14376
+ loading: p.value,
14377
14377
  rowKey: u.id.value,
14378
- rowClassName: (U = (N = s == null ? void 0 : s.value) == null ? void 0 : N.KgTable) == null ? void 0 : U.kgRowClassName,
14378
+ rowClassName: (B = (N = s == null ? void 0 : s.value) == null ? void 0 : N.KgTable) == null ? void 0 : B.kgRowClassName,
14379
14379
  expandColumnWidth: 28,
14380
14380
  expandedRowKeys: v.value,
14381
14381
  rowSelection: M.value,
14382
14382
  customRow: (H) => ({
14383
- onClick: (Z) => B(Z, H)
14383
+ onClick: (Z) => K(Z, H)
14384
14384
  }),
14385
14385
  onResizeColumn: Q,
14386
14386
  onChange: ee,
14387
- onExpand: le
14387
+ onExpand: ae
14388
14388
  }, {
14389
14389
  headerCell: fe,
14390
14390
  bodyCell: pe,
14391
14391
  emptyText: ye,
14392
- expandedRowRender: (z = n == null ? void 0 : n.KgTable) == null ? void 0 : z.expandedRowRender,
14393
- summary: ne
14392
+ expandedRowRender: (q = n == null ? void 0 : n.KgTable) == null ? void 0 : q.expandedRowRender,
14393
+ summary: se
14394
14394
  }), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
14395
14395
  class: V.value
14396
14396
  }, [createVNode("div", {
@@ -14447,8 +14447,8 @@ const KgTable$1 = "", getProps$g = () => ({
14447
14447
  attrs: t
14448
14448
  }) {
14449
14449
  const r = useKg(), a = useKgVar(), n = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), l = computed(() => {
14450
- var u, d, m, v, E, p, g, y;
14451
- return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((v = s.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((p = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? p : 0) > 1 || ((g = s.value) == null ? void 0 : g.permission_type) === 2 && !r.p((y = s.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14450
+ var u, d, m, v, E, g, p, y;
14451
+ return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((v = s.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((g = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? g : 0) > 1 || ((p = s.value) == null ? void 0 : p.permission_type) === 2 && !r.p((y = s.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14452
14452
  });
14453
14453
  async function o() {
14454
14454
  e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
@@ -14658,14 +14658,14 @@ const KgButtonCreate = defineComponent({
14658
14658
  function E() {
14659
14659
  l.store.emit(s.formID, "submitCancel", {});
14660
14660
  }
14661
- function p() {
14661
+ function g() {
14662
14662
  return e.kgIcon ? createVNode("span", {
14663
14663
  class: "anticon"
14664
14664
  }, [createVNode(Icon, {
14665
14665
  icon: e.kgIcon
14666
14666
  }, null)]) : createVNode(PlusOutlined$1, null, null);
14667
14667
  }
14668
- function g() {
14668
+ function p() {
14669
14669
  return e.kgText ? e.kgText : n.t("kg.create");
14670
14670
  }
14671
14671
  function y() {
@@ -14680,7 +14680,7 @@ const KgButtonCreate = defineComponent({
14680
14680
  "kg-var_nam": (A = c.value) == null ? void 0 : A.var_nam,
14681
14681
  "kg-cmd": (T = c.value) == null ? void 0 : T.cmd
14682
14682
  }, {
14683
- default: () => [p(), g()]
14683
+ default: () => [g(), p()]
14684
14684
  });
14685
14685
  }
14686
14686
  function b() {
@@ -14706,8 +14706,8 @@ const KgButtonCreate = defineComponent({
14706
14706
  props: getProps$f(),
14707
14707
  setup(e) {
14708
14708
  const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), s = computed(() => {
14709
- var c, u, d, m, v, E, p, g;
14710
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((m = n.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((E = (v = a.selectedRows.value) == null ? void 0 : v.length) != null ? E : 0) > 1 || ((p = n.value) == null ? void 0 : p.permission_type) === 2 && !t.p((g = n.value) == null ? void 0 : g.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14709
+ var c, u, d, m, v, E, g, p;
14710
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((m = n.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((E = (v = a.selectedRows.value) == null ? void 0 : v.length) != null ? E : 0) > 1 || ((g = n.value) == null ? void 0 : g.permission_type) === 2 && !t.p((p = n.value) == null ? void 0 : p.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14711
14711
  });
14712
14712
  async function l() {
14713
14713
  e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
@@ -14744,31 +14744,31 @@ const KgButtonCreate = defineComponent({
14744
14744
  props: getProps$f(),
14745
14745
  setup(e) {
14746
14746
  const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), s = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), l = computed(() => {
14747
- var E, p;
14748
- return s.value ? (p = (E = s.value) == null ? void 0 : E.cmd) != null ? p : "" : null;
14747
+ var E, g;
14748
+ return s.value ? (g = (E = s.value) == null ? void 0 : E.cmd) != null ? g : "" : null;
14749
14749
  }), o = computed(() => {
14750
- var E, p;
14751
- return (p = (E = s.value) == null ? void 0 : E.cmd_method) != null ? p : "GET";
14750
+ var E, g;
14751
+ return (g = (E = s.value) == null ? void 0 : E.cmd_method) != null ? g : "GET";
14752
14752
  }), i = computed(() => {
14753
- var p, g, y, b, C, k;
14753
+ var g, p, y, b, C, k;
14754
14754
  let E = {
14755
14755
  pageNo: 1,
14756
14756
  pageSize: 9999999,
14757
- ...(p = a.model.value) != null ? p : {}
14757
+ ...(g = a.model.value) != null ? g : {}
14758
14758
  };
14759
14759
  return s.value && (E = {
14760
14760
  ...E,
14761
- ...KgVarUtil.parseCommandParameter((y = (g = s.value) == null ? void 0 : g.cmd_prm) != null ? y : "")
14761
+ ...KgVarUtil.parseCommandParameter((y = (p = s.value) == null ? void 0 : p.cmd_prm) != null ? y : "")
14762
14762
  }), (b = r.varGridConfig.value) != null && b.cmd_prm && (E = {
14763
14763
  ...E,
14764
14764
  ...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
14765
14765
  }), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 && E.column && (E.column = snakeCase$1(E.column)), E;
14766
14766
  }), c = computed(() => {
14767
- var E, p, g, y, b, C, k, A;
14768
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((E = s.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((g = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) === 0 || ((y = s.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((C = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? C : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14767
+ var E, g, p, y, b, C, k, A;
14768
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((E = s.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((p = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? p : 0) === 0 || ((y = s.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((C = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? C : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14769
14769
  }), u = ref(!1);
14770
14770
  async function d() {
14771
- var E, p;
14771
+ var E, g;
14772
14772
  if (!(e.onKgClick && await e.onKgClick())) {
14773
14773
  if (!l.value) {
14774
14774
  KgLogger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -14778,7 +14778,7 @@ const KgButtonCreate = defineComponent({
14778
14778
  }
14779
14779
  u.value = !0;
14780
14780
  try {
14781
- const g = await httpClient().request({
14781
+ const p = await httpClient().request({
14782
14782
  method: o.value,
14783
14783
  url: l.value,
14784
14784
  params: i.value,
@@ -14787,9 +14787,9 @@ const KgButtonCreate = defineComponent({
14787
14787
  joinParamsToUrl: !0,
14788
14788
  isTransformResponse: !1
14789
14789
  }), y = (E = s.value) == null ? void 0 : E.export_excel_filename;
14790
- KgUtil.downloadFile(g, `${y ? r.t(y).value : t.t("kg.export")}.${(p = s.value) == null ? void 0 : p.export_excel_suffix}`);
14791
- } catch (g) {
14792
- throw g;
14790
+ KgUtil.downloadFile(p, `${y ? r.t(y).value : t.t("kg.export")}.${(g = s.value) == null ? void 0 : g.export_excel_suffix}`);
14791
+ } catch (p) {
14792
+ throw p;
14793
14793
  } finally {
14794
14794
  u.value = !1;
14795
14795
  }
@@ -14806,7 +14806,7 @@ const KgButtonCreate = defineComponent({
14806
14806
  return e.kgText ? e.kgText : t.t("kg.export");
14807
14807
  }
14808
14808
  return () => {
14809
- var E, p, g, y;
14809
+ var E, g, p, y;
14810
14810
  return createVNode(Button, {
14811
14811
  type: "primary",
14812
14812
  disabled: c.value,
@@ -14814,8 +14814,8 @@ const KgButtonCreate = defineComponent({
14814
14814
  loading: u.value,
14815
14815
  onClick: d,
14816
14816
  "kg-id": (E = s.value) == null ? void 0 : E.id,
14817
- "kg-frm_id": (p = s.value) == null ? void 0 : p.frm_id,
14818
- "kg-var_nam": (g = s.value) == null ? void 0 : g.var_nam,
14817
+ "kg-frm_id": (g = s.value) == null ? void 0 : g.frm_id,
14818
+ "kg-var_nam": (p = s.value) == null ? void 0 : p.var_nam,
14819
14819
  "kg-cmd": (y = s.value) == null ? void 0 : y.cmd
14820
14820
  }, {
14821
14821
  default: () => [m(), v()]
@@ -14831,25 +14831,25 @@ const KgButtonCreate = defineComponent({
14831
14831
  attrs: r
14832
14832
  }) {
14833
14833
  const a = useKg(), n = useKgVar(), s = useKgSearch(), l = useKgTable(), o = computed(() => n.store.getVarButton(n.formID, e.kgVarName)), i = computed(() => {
14834
- var g, y;
14835
- return o.value ? (y = (g = o.value) == null ? void 0 : g.cmd) != null ? y : "" : null;
14834
+ var p, y;
14835
+ return o.value ? (y = (p = o.value) == null ? void 0 : p.cmd) != null ? y : "" : null;
14836
14836
  }), c = computed(() => {
14837
- var g, y;
14838
- return (y = (g = o.value) == null ? void 0 : g.cmd_method) != null ? y : "POST";
14837
+ var p, y;
14838
+ return (y = (p = o.value) == null ? void 0 : p.cmd_method) != null ? y : "POST";
14839
14839
  }), u = computed(() => {
14840
14840
  var y, b, C;
14841
- let g = {
14841
+ let p = {
14842
14842
  ...(y = s.model.value) != null ? y : {}
14843
14843
  };
14844
- return o.value && (g = {
14845
- ...g,
14844
+ return o.value && (p = {
14845
+ ...p,
14846
14846
  ...KgVarUtil.parseCommandParameter((C = (b = o.value) == null ? void 0 : b.cmd_prm) != null ? C : "")
14847
- }), g;
14847
+ }), p;
14848
14848
  }), d = computed(() => {
14849
- var g, y, b, C, k, A, T, $;
14850
- return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((g = o.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((b = (y = l.selectedRows.value) == null ? void 0 : y.length) != null ? b : 0) === 0 || ((C = o.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !a.p(($ = o.value) == null ? void 0 : $.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14849
+ var p, y, b, C, k, A, T, $;
14850
+ return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((p = o.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((b = (y = l.selectedRows.value) == null ? void 0 : y.length) != null ? b : 0) === 0 || ((C = o.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !a.p(($ = o.value) == null ? void 0 : $.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14851
14851
  }), m = ref(!1);
14852
- async function v(g) {
14852
+ async function v(p) {
14853
14853
  if (!i.value)
14854
14854
  return KgLogger.error("[KgButton] '\u5BFC\u5165\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
14855
14855
  VarButton: o.value
@@ -14857,7 +14857,7 @@ const KgButtonCreate = defineComponent({
14857
14857
  m.value = !0;
14858
14858
  try {
14859
14859
  const y = new FormData();
14860
- y.append("file", g);
14860
+ y.append("file", p);
14861
14861
  const b = await httpClient().axiosInstance.request({
14862
14862
  method: c.value,
14863
14863
  baseURL: window._CONFIG.domianURL,
@@ -14884,7 +14884,7 @@ const KgButtonCreate = defineComponent({
14884
14884
  icon: e.kgIcon
14885
14885
  }, null)]) : createVNode(DownloadOutlined$1, null, null);
14886
14886
  }
14887
- function p() {
14887
+ function g() {
14888
14888
  return e.kgText ? e.kgText : a.t("kg.import");
14889
14889
  }
14890
14890
  return () => createVNode(Upload, {
@@ -14894,19 +14894,19 @@ const KgButtonCreate = defineComponent({
14894
14894
  disabled: m.value
14895
14895
  }, {
14896
14896
  default: () => {
14897
- var g, y, b, C;
14897
+ var p, y, b, C;
14898
14898
  return [createVNode(Button, {
14899
14899
  class: r.class,
14900
14900
  type: "primary",
14901
14901
  disabled: d.value,
14902
14902
  ghost: !e.kgPrimary && !d.value,
14903
14903
  loading: m.value,
14904
- "kg-id": (g = o.value) == null ? void 0 : g.id,
14904
+ "kg-id": (p = o.value) == null ? void 0 : p.id,
14905
14905
  "kg-frm_id": (y = o.value) == null ? void 0 : y.frm_id,
14906
14906
  "kg-var_nam": (b = o.value) == null ? void 0 : b.var_nam,
14907
14907
  "kg-cmd": (C = o.value) == null ? void 0 : C.cmd
14908
14908
  }, {
14909
- default: () => [E(), p()]
14909
+ default: () => [E(), g()]
14910
14910
  })];
14911
14911
  }
14912
14912
  });
@@ -14916,29 +14916,29 @@ const KgButtonCreate = defineComponent({
14916
14916
  props: getProps$f(),
14917
14917
  setup(e) {
14918
14918
  const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), s = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), l = computed(() => {
14919
- var E, p;
14920
- return s.value ? (p = (E = s.value) == null ? void 0 : E.cmd) != null ? p : "" : null;
14919
+ var E, g;
14920
+ return s.value ? (g = (E = s.value) == null ? void 0 : E.cmd) != null ? g : "" : null;
14921
14921
  }), o = computed(() => {
14922
- var E, p;
14923
- return (p = (E = s.value) == null ? void 0 : E.cmd_method) != null ? p : "GET";
14922
+ var E, g;
14923
+ return (g = (E = s.value) == null ? void 0 : E.cmd_method) != null ? g : "GET";
14924
14924
  }), i = computed(() => {
14925
- var p, g, y, b, C;
14925
+ var g, p, y, b, C;
14926
14926
  let E = {
14927
- ...(p = a.model.value) != null ? p : {}
14927
+ ...(g = a.model.value) != null ? g : {}
14928
14928
  };
14929
14929
  return s.value && (E = {
14930
14930
  ...E,
14931
- ...KgVarUtil.parseCommandParameter((y = (g = s.value) == null ? void 0 : g.cmd_prm) != null ? y : "")
14931
+ ...KgVarUtil.parseCommandParameter((y = (p = s.value) == null ? void 0 : p.cmd_prm) != null ? y : "")
14932
14932
  }), (b = r.varGridConfig.value) != null && b.cmd_prm && (E = {
14933
14933
  ...E,
14934
14934
  ...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
14935
14935
  }), E;
14936
14936
  }), c = computed(() => {
14937
- var E, p, g, y, b, C, k, A;
14938
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((E = s.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((g = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) === 0 || ((y = s.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((C = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? C : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14937
+ var E, g, p, y, b, C, k, A;
14938
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((E = s.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((p = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? p : 0) === 0 || ((y = s.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((C = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? C : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14939
14939
  }), u = ref(!1);
14940
14940
  async function d() {
14941
- var E, p;
14941
+ var E, g;
14942
14942
  if (!l.value) {
14943
14943
  KgLogger.error("[KgButton] '\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
14944
14944
  VarButton: s.value
@@ -14947,7 +14947,7 @@ const KgButtonCreate = defineComponent({
14947
14947
  }
14948
14948
  u.value = !0;
14949
14949
  try {
14950
- const g = await httpClient().request({
14950
+ const p = await httpClient().request({
14951
14951
  method: o.value,
14952
14952
  url: l.value,
14953
14953
  params: i.value,
@@ -14956,9 +14956,9 @@ const KgButtonCreate = defineComponent({
14956
14956
  joinParamsToUrl: !0,
14957
14957
  isTransformResponse: !1
14958
14958
  }), y = (E = s.value) == null ? void 0 : E.export_excel_filename;
14959
- KgUtil.downloadFile(g, `${y ? r.t(y).value : t.t("kg.importTemplate")}.${(p = s.value) == null ? void 0 : p.export_excel_suffix}`);
14960
- } catch (g) {
14961
- throw g;
14959
+ KgUtil.downloadFile(p, `${y ? r.t(y).value : t.t("kg.importTemplate")}.${(g = s.value) == null ? void 0 : g.export_excel_suffix}`);
14960
+ } catch (p) {
14961
+ throw p;
14962
14962
  } finally {
14963
14963
  u.value = !1;
14964
14964
  }
@@ -14974,7 +14974,7 @@ const KgButtonCreate = defineComponent({
14974
14974
  return e.kgText ? e.kgText : t.t("kg.downloadImportTemplate");
14975
14975
  }
14976
14976
  return () => {
14977
- var E, p, g, y;
14977
+ var E, g, p, y;
14978
14978
  return createVNode(Button, {
14979
14979
  type: "primary",
14980
14980
  disabled: c.value,
@@ -14982,8 +14982,8 @@ const KgButtonCreate = defineComponent({
14982
14982
  loading: u.value,
14983
14983
  onClick: d,
14984
14984
  "kg-id": (E = s.value) == null ? void 0 : E.id,
14985
- "kg-frm_id": (p = s.value) == null ? void 0 : p.frm_id,
14986
- "kg-var_nam": (g = s.value) == null ? void 0 : g.var_nam,
14985
+ "kg-frm_id": (g = s.value) == null ? void 0 : g.frm_id,
14986
+ "kg-var_nam": (p = s.value) == null ? void 0 : p.var_nam,
14987
14987
  "kg-cmd": (y = s.value) == null ? void 0 : y.cmd
14988
14988
  }, {
14989
14989
  default: () => [m(), v()]
@@ -14995,11 +14995,11 @@ const KgButtonCreate = defineComponent({
14995
14995
  props: getProps$f(),
14996
14996
  setup(e) {
14997
14997
  const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgButton(), s = useKgTable(), l = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
14998
- var d, m, v, E, p, g, y, b;
14999
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = l.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((v = (m = s.selectedRows.value) == null ? void 0 : m.length) != null ? v : 0) === 0 || ((E = l.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((g = (p = s.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) > 1 || ((y = l.value) == null ? void 0 : y.permission_type) === 2 && !t.p((b = l.value) == null ? void 0 : b.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14998
+ var d, m, v, E, g, p, y, b;
14999
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = l.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((v = (m = s.selectedRows.value) == null ? void 0 : m.length) != null ? v : 0) === 0 || ((E = l.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((p = (g = s.selectedRows.value) == null ? void 0 : g.length) != null ? p : 0) > 1 || ((y = l.value) == null ? void 0 : y.permission_type) === 2 && !t.p((b = l.value) == null ? void 0 : b.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
15000
15000
  });
15001
15001
  async function i() {
15002
- var E, p, g;
15002
+ var E, g, p;
15003
15003
  if (e.onKgClick && await e.onKgClick())
15004
15004
  return;
15005
15005
  const d = (E = e.kgButton) == null ? void 0 : E.cmd;
@@ -15044,8 +15044,8 @@ const KgButtonCreate = defineComponent({
15044
15044
  r.store.setIsOtherRequesting(r.formID, !1), m == null || m.hideLoading();
15045
15045
  }
15046
15046
  };
15047
- if (((p = e.kgButton) == null ? void 0 : p.show_modal_flg) === 1) {
15048
- const y = KgUtil.tryParseJSON((g = e.kgButton) == null ? void 0 : g.modal_props);
15047
+ if (((g = e.kgButton) == null ? void 0 : g.show_modal_flg) === 1) {
15048
+ const y = KgUtil.tryParseJSON((p = e.kgButton) == null ? void 0 : p.modal_props);
15049
15049
  typeof y.content == "string" && (y.content = r.t(y.content).value), m = KgUtil.confirm({
15050
15050
  onOk: () => v(),
15051
15051
  ...y
@@ -15154,14 +15154,14 @@ const KgButtonCreate = defineComponent({
15154
15154
  function E() {
15155
15155
  o.store.emit(s.formID, "submitCancel", {});
15156
15156
  }
15157
- function p() {
15157
+ function g() {
15158
15158
  return e.kgIcon ? createVNode("span", {
15159
15159
  class: "anticon"
15160
15160
  }, [createVNode(Icon, {
15161
15161
  icon: e.kgIcon
15162
15162
  }, null)]) : createVNode(EditOutlined$1, null, null);
15163
15163
  }
15164
- function g() {
15164
+ function p() {
15165
15165
  return e.kgText ? e.kgText : n.t("kg.update");
15166
15166
  }
15167
15167
  function y() {
@@ -15177,7 +15177,7 @@ const KgButtonCreate = defineComponent({
15177
15177
  "kg-var_nam": (A = c.value) == null ? void 0 : A.var_nam,
15178
15178
  "kg-cmd": (T = c.value) == null ? void 0 : T.cmd
15179
15179
  }, {
15180
- default: () => [p(), g()]
15180
+ default: () => [g(), p()]
15181
15181
  });
15182
15182
  }
15183
15183
  function b() {
@@ -15265,22 +15265,22 @@ const getProps$e = () => ({
15265
15265
  props: getProps$e(),
15266
15266
  setup(e) {
15267
15267
  const t = inject(DI_KG_VAR__KG_SLOTS, null), r = inject(DI_KG_VAR__KG_PROPS, null), a = useKg(), n = useKgVar(), s = useKgButton(), l = computed(() => !1);
15268
- function o(p) {
15269
- return s.store.emit(n.formID, "click", p);
15268
+ function o(g) {
15269
+ return s.store.emit(n.formID, "click", g);
15270
15270
  }
15271
- function i(p) {
15271
+ function i(g) {
15272
15272
  return computed(() => {
15273
15273
  var y, b;
15274
- const g = ((b = (y = r == null ? void 0 : r.value) == null ? void 0 : y.KgButton) == null ? void 0 : b.kgDisabled) || e.kgDisabled;
15275
- if (g) {
15276
- const C = g(p);
15274
+ const p = ((b = (y = r == null ? void 0 : r.value) == null ? void 0 : y.KgButton) == null ? void 0 : b.kgDisabled) || e.kgDisabled;
15275
+ if (p) {
15276
+ const C = p(g);
15277
15277
  if (!isNil(C))
15278
15278
  return C;
15279
15279
  }
15280
15280
  });
15281
15281
  }
15282
- function c(p) {
15283
- switch (p.primary_flg) {
15282
+ function c(g) {
15283
+ switch (g.primary_flg) {
15284
15284
  case 1:
15285
15285
  return !0;
15286
15286
  case 0:
@@ -15289,37 +15289,37 @@ const getProps$e = () => ({
15289
15289
  return;
15290
15290
  }
15291
15291
  }
15292
- function u(p) {
15293
- if (n.t(p.var_nam).value !== p.var_nam)
15294
- return n.t(p.var_nam).value;
15292
+ function u(g) {
15293
+ if (n.t(g.var_nam).value !== g.var_nam)
15294
+ return n.t(g.var_nam).value;
15295
15295
  }
15296
15296
  function d() {
15297
- var p, g;
15298
- if (!n.varButtons.value || ((p = n.varButtons.value) == null ? void 0 : p.length) === 0)
15297
+ var g, p;
15298
+ if (!n.varButtons.value || ((g = n.varButtons.value) == null ? void 0 : g.length) === 0)
15299
15299
  return null;
15300
- switch ((g = n.varGridConfig.value) == null ? void 0 : g.button_display_type) {
15300
+ switch ((p = n.varGridConfig.value) == null ? void 0 : p.button_display_type) {
15301
15301
  case KG_BUTTON_DISPLAY_TYPE.SELECT:
15302
15302
  return E();
15303
15303
  default:
15304
15304
  return v();
15305
15305
  }
15306
15306
  }
15307
- function m(p) {
15307
+ function m(g) {
15308
15308
  return createVNode(KgButtonItem, {
15309
- kgButton: p,
15310
- kgVarName: p.var_nam,
15311
- kgType: p.typ,
15312
- kgIcon: p.icon,
15313
- kgText: u(p),
15314
- kgColor: p.color,
15315
- kgPrimary: c(p),
15316
- kgDisabled: i(p).value,
15317
- onKgClick: () => o(p)
15309
+ kgButton: g,
15310
+ kgVarName: g.var_nam,
15311
+ kgType: g.typ,
15312
+ kgIcon: g.icon,
15313
+ kgText: u(g),
15314
+ kgColor: g.color,
15315
+ kgPrimary: c(g),
15316
+ kgDisabled: i(g).value,
15317
+ onKgClick: () => o(g)
15318
15318
  }, null);
15319
15319
  }
15320
15320
  function v() {
15321
- var p;
15322
- return (p = n.varButtons.value) == null ? void 0 : p.filter((g) => g.typ !== KG_BUTTON_TYPE.SEARCH).map((g) => m(g));
15321
+ var g;
15322
+ return (g = n.varButtons.value) == null ? void 0 : g.filter((p) => p.typ !== KG_BUTTON_TYPE.SEARCH).map((p) => m(p));
15323
15323
  }
15324
15324
  function E() {
15325
15325
  return createVNode(Dropdown, {
@@ -15333,8 +15333,8 @@ const getProps$e = () => ({
15333
15333
  }),
15334
15334
  overlay: () => createVNode(Menu, null, {
15335
15335
  default: () => {
15336
- var p, g;
15337
- return [(g = (p = n.varButtons.value) == null ? void 0 : p.filter((y) => y.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : g.filter((y) => !(y.permission_type !== 2 && !a.p(y.permission_code))).map((y) => {
15336
+ var g, p;
15337
+ return [(p = (g = n.varButtons.value) == null ? void 0 : g.filter((y) => y.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : p.filter((y) => !(y.permission_type !== 2 && !a.p(y.permission_code))).map((y) => {
15338
15338
  let b;
15339
15339
  return createVNode(Menu.Item, null, _isSlot$3(b = m(y)) ? b : {
15340
15340
  default: () => [b]
@@ -15351,8 +15351,8 @@ const getProps$e = () => ({
15351
15351
  spinning: l.value
15352
15352
  }, {
15353
15353
  default: () => {
15354
- var p, g;
15355
- return [d(), (g = (p = t == null ? void 0 : t.KgButton) == null ? void 0 : p.right) == null ? void 0 : g.call(p)];
15354
+ var g, p;
15355
+ return [d(), (p = (g = t == null ? void 0 : t.KgButton) == null ? void 0 : g.right) == null ? void 0 : p.call(g)];
15356
15356
  }
15357
15357
  })]);
15358
15358
  }
@@ -15597,8 +15597,10 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
15597
15597
  }).bind(null, pinia())), store$2);
15598
15598
  function useKgSearch(e) {
15599
15599
  const t = useKgVar(e), r = useKgSearchStore()(), a = computed(() => r.getIsReady(t.formID)), n = computed(() => r.getModel(t.formID)), s = computed(() => r.getOperatorModel(t.formID)), l = (i) => {
15600
- var c;
15601
- return (c = r.getSearchFn(t.formID)) == null ? void 0 : c(i);
15600
+ useKgSearch(t.formID).onReady(async () => {
15601
+ const u = r.getSearchFn(t.formID);
15602
+ return u ? (u(i), !1) : (KgLogger.error("KgSearch.search() | \u67E5\u8BE2\u51FD\u6570\u4E3A\u7A7A.", { frm_id: t.formID }), !0);
15603
+ });
15602
15604
  }, o = () => {
15603
15605
  var i;
15604
15606
  return (i = r.getResetFn(t.formID)) == null ? void 0 : i();
@@ -15811,7 +15813,7 @@ function _useDragRow(e, t, r) {
15811
15813
  if (n = filter(document.querySelectorAll(`tr[kg-host-frm_id="${e}"] > td.handler`), () => !0), n)
15812
15814
  for (let u of n)
15813
15815
  u.__kg__dragstart__ = async (d) => {
15814
- var g, y;
15816
+ var p, y;
15815
15817
  s = u.parentElement, u.classList.add("dragging"), u.parentElement.classList.add("dragging");
15816
15818
  const m = document.createElement("span");
15817
15819
  m.setAttribute("id", "__kg_search_config_fields_drag_image__");
@@ -15819,9 +15821,9 @@ function _useDragRow(e, t, r) {
15819
15821
  width: v,
15820
15822
  height: E
15821
15823
  } = u.parentElement.getBoundingClientRect();
15822
- v && E && (m.style.width = `${v + 2}px`, m.style.height = `${E + 2}px`), (g = d.dataTransfer) == null || g.setDragImage(m, -10, (E + 2) / 2);
15823
- const p = await toCanvas(u.parentElement);
15824
- m.appendChild(p), document.body.appendChild(m), (y = d.dataTransfer) == null || y.setDragImage(m, -10, (E + 2) / 2);
15824
+ v && E && (m.style.width = `${v + 2}px`, m.style.height = `${E + 2}px`), (p = d.dataTransfer) == null || p.setDragImage(m, -10, (E + 2) / 2);
15825
+ const g = await toCanvas(u.parentElement);
15826
+ m.appendChild(g), document.body.appendChild(m), (y = d.dataTransfer) == null || y.setDragImage(m, -10, (E + 2) / 2);
15825
15827
  }, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
15826
15828
  u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
15827
15829
  const m = document.querySelector("#__kg_search_config_fields_drag_image__");
@@ -15865,15 +15867,15 @@ function _useDragRow(e, t, r) {
15865
15867
  }
15866
15868
  function i(u, d) {
15867
15869
  setTimeout(() => {
15868
- const m = t.value.findIndex((g) => g.var_nam === u), v = t.value.findIndex((g) => g.var_nam === d);
15870
+ const m = t.value.findIndex((p) => p.var_nam === u), v = t.value.findIndex((p) => p.var_nam === d);
15869
15871
  if (m === -1 || v === -1)
15870
15872
  return;
15871
- const E = t.value.find((g) => g.var_nam === u), p = [];
15872
- t.value.forEach((g, y) => {
15873
- m > v ? y < v ? p.push(g) : y === v ? (p.push(E), p.push(g)) : y > v && y !== m && p.push(g) : m < v && (y < m ? p.push(g) : y === m || (y === v ? (p.push(g), p.push(E)) : p.push(g)));
15874
- }), p.forEach((g, y) => {
15875
- g.srtseq = y + 1;
15876
- }), t.value = p, nextTick().finally(() => {
15873
+ const E = t.value.find((p) => p.var_nam === u), g = [];
15874
+ t.value.forEach((p, y) => {
15875
+ m > v ? y < v ? g.push(p) : y === v ? (g.push(E), g.push(p)) : y > v && y !== m && g.push(p) : m < v && (y < m ? g.push(p) : y === m || (y === v ? (g.push(p), g.push(E)) : g.push(p)));
15876
+ }), g.forEach((p, y) => {
15877
+ p.srtseq = y + 1;
15878
+ }), t.value = g, nextTick().finally(() => {
15877
15879
  KgUtil.hideLoading();
15878
15880
  });
15879
15881
  });
@@ -15901,8 +15903,8 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15901
15903
  n.onReady(async () => (await a.store.patchVarProfileDetail(a.formID, "frm_id", {
15902
15904
  dft_val: r.formID
15903
15905
  }), !1)), o.onOpen(async ({
15904
- isCreating: p,
15905
- isUpdating: g,
15906
+ isCreating: g,
15907
+ isUpdating: p,
15906
15908
  isCopying: y,
15907
15909
  row: b,
15908
15910
  model: C
@@ -15910,11 +15912,11 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15910
15912
  var A, T, $, O, I;
15911
15913
  const k = r.store.getSystemVarProfileDetails(r.formID);
15912
15914
  switch (i.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
15913
- case p: {
15915
+ case g: {
15914
15916
  c.value = [];
15915
15917
  break;
15916
15918
  }
15917
- case g:
15919
+ case p:
15918
15920
  case y: {
15919
15921
  if (b != null && b.id)
15920
15922
  try {
@@ -15953,40 +15955,40 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15953
15955
  }
15954
15956
  return !1;
15955
15957
  }), o.onBeforeOk(async ({
15956
- model: p
15958
+ model: g
15957
15959
  }) => {
15958
15960
  var y, b;
15959
- const g = p.value;
15960
- return g.frm_id = r.formID, g.varProfileDetails = (b = (y = i.value) == null ? void 0 : y.filter((C) => c.value.includes(C.id))) != null ? b : [], !1;
15961
+ const p = g.value;
15962
+ return p.frm_id = r.formID, p.varProfileDetails = (b = (y = i.value) == null ? void 0 : y.filter((C) => c.value.includes(C.id))) != null ? b : [], !1;
15961
15963
  }), o.onOk(async () => (r.store.retrieve(r.formID), !1)), l.onUpdateBeforeClick(({
15962
- row: p
15963
- }) => (p == null ? void 0 : p.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((g) => {
15964
+ row: g
15965
+ }) => (g == null ? void 0 : g.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((p) => {
15964
15966
  KgUtil.confirm({
15965
15967
  content: t.t("kg.KgSearchConfigModal.canNotUpdateSystemVarProfileMaster"),
15966
15968
  okButtonProps: {
15967
15969
  danger: !1
15968
15970
  },
15969
15971
  onOk: () => {
15970
- a.store.setIsCopying(a.formID, !0), g(!0);
15972
+ a.store.setIsCopying(a.formID, !0), p(!0);
15971
15973
  },
15972
15974
  onCancel: () => {
15973
- g(!0);
15975
+ p(!0);
15974
15976
  }
15975
15977
  });
15976
15978
  }) : Promise.resolve(!1));
15977
15979
  const i = ref([]), c = ref([]), u = ref([]);
15978
15980
  _useDragRow(e.hostFormID, i, u);
15979
15981
  const d = computed(() => {
15980
- const p = s.selectedRow.value;
15982
+ const g = s.selectedRow.value;
15981
15983
  return {
15982
15984
  KgSubmit: {
15983
15985
  kgClass: "kg-submit--search-config-modal--profile"
15984
15986
  },
15985
15987
  KgButton: {
15986
- kgDisabled: (g) => {
15987
- switch (g.var_nam) {
15988
+ kgDisabled: (p) => {
15989
+ switch (p.var_nam) {
15988
15990
  case "set-default":
15989
- if ((p == null ? void 0 : p.def_flg) === 1)
15991
+ if ((g == null ? void 0 : g.def_flg) === 1)
15990
15992
  return !0;
15991
15993
  break;
15992
15994
  }
@@ -15999,25 +16001,25 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15999
16001
  varProfileDetails: () => createVNode(Transfer, {
16000
16002
  dataSource: i.value,
16001
16003
  targetKeys: c.value,
16002
- "onUpdate:targetKeys": (p) => c.value = p,
16003
- rowKey: (p) => p.id,
16004
+ "onUpdate:targetKeys": (g) => c.value = g,
16005
+ rowKey: (g) => g.id,
16004
16006
  showSearch: !0,
16005
16007
  showSelectAll: !1,
16006
16008
  searchPlaceholder: " ",
16007
- filterOption: (p, g) => {
16009
+ filterOption: (g, p) => {
16008
16010
  var y;
16009
- return !!((y = g.var_nam) != null && y.includes(p));
16011
+ return !!((y = p.var_nam) != null && y.includes(g));
16010
16012
  }
16011
16013
  }, {
16012
16014
  children: ({
16013
- direction: p,
16014
- filteredItems: g,
16015
+ direction: g,
16016
+ filteredItems: p,
16015
16017
  selectedKeys: y,
16016
16018
  disabled: b,
16017
16019
  onItemSelectAll: C,
16018
16020
  onItemSelect: k
16019
16021
  }) => {
16020
- const A = g.sort((T, $) => {
16022
+ const A = p.sort((T, $) => {
16021
16023
  var O, I;
16022
16024
  return ((O = T.srtseq) != null ? O : 0) - ((I = $.srtseq) != null ? I : 0);
16023
16025
  });
@@ -16026,17 +16028,17 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
16026
16028
  class: "kg-flex-table",
16027
16029
  size: "small",
16028
16030
  scroll: {
16029
- x: p === "left" ? "370px" : `${1192 + 32}px`,
16031
+ x: g === "left" ? "370px" : `${1192 + 32}px`,
16030
16032
  y: "auto"
16031
16033
  },
16032
- columns: p === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
16034
+ columns: g === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
16033
16035
  rowKey: "id",
16034
16036
  dataSource: A,
16035
16037
  customRow: (T) => {
16036
16038
  let $ = {
16037
- onClick: (O) => E(O, T, p, y)
16039
+ onClick: (O) => E(O, T, g, y)
16038
16040
  };
16039
- return p === "right" && ($["kg-host-frm_id"] = r.formID, $["kg-var_nam"] = T.var_nam), $;
16041
+ return g === "right" && ($["kg-host-frm_id"] = r.formID, $["kg-var_nam"] = T.var_nam), $;
16040
16042
  },
16041
16043
  rowSelection: v({
16042
16044
  disabled: b,
@@ -16050,13 +16052,13 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
16050
16052
  }
16051
16053
  }
16052
16054
  }), v = ({
16053
- disabled: p,
16054
- selectedKeys: g,
16055
+ disabled: g,
16056
+ selectedKeys: p,
16055
16057
  onItemSelectAll: y,
16056
16058
  onItemSelect: b
16057
16059
  }) => ({
16058
16060
  getCheckboxProps: (C) => ({
16059
- disabled: p || C.disabled
16061
+ disabled: g || C.disabled
16060
16062
  }),
16061
16063
  onSelectAll(C, k) {
16062
16064
  const A = k.filter((T) => !T.disabled).map(({
@@ -16069,22 +16071,22 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
16069
16071
  }, k) {
16070
16072
  b(C, k);
16071
16073
  },
16072
- selectedRowKeys: g,
16074
+ selectedRowKeys: p,
16073
16075
  columnWidth: 32
16074
16076
  });
16075
- function E(p, g, y, b) {
16076
- if (!KgDomUtil.isNotClickable(p.target, ["ant-input"]))
16077
- switch (b.length = 0, p.detail) {
16077
+ function E(g, p, y, b) {
16078
+ if (!KgDomUtil.isNotClickable(g.target, ["ant-input"]))
16079
+ switch (b.length = 0, g.detail) {
16078
16080
  case 1:
16079
- b[0] = g.id;
16081
+ b[0] = p.id;
16080
16082
  break;
16081
16083
  case 2:
16082
16084
  switch (y) {
16083
16085
  case "left":
16084
- c.value.push(g.id);
16086
+ c.value.push(p.id);
16085
16087
  break;
16086
16088
  case "right":
16087
- c.value = without$1(c.value, g.id);
16089
+ c.value = without$1(c.value, p.id);
16088
16090
  break;
16089
16091
  }
16090
16092
  break;
@@ -16211,35 +16213,39 @@ function _useCommon() {
16211
16213
  minHeight: u
16212
16214
  };
16213
16215
  }
16214
- function _useFormModel(e, t) {
16215
- const r = inject("$dayjs", dayjs), a = useKgVar(), n = useKgSearch(), {
16216
- isVisible: s,
16217
- defaultHeight: l
16216
+ function _useFormModel(e, t, r) {
16217
+ const a = inject("$dayjs", dayjs), n = useKgVar(), s = useKgSearch(), {
16218
+ isVisible: l,
16219
+ defaultHeight: o
16218
16220
  } = _useCommon();
16219
- let o;
16220
- const i = ref({}), c = ref({});
16221
- async function u() {
16222
- var d;
16223
- ((d = a.currentVarProfileDetails.value) != null ? d : []).forEach((m) => {
16224
- var E, p, g;
16225
- const v = (E = m.var_nam) != null ? E : "";
16226
- i.value[v] = KgVarUtil.transformFormItemValue(a.formID, v, r, (p = m.dft_val) != null ? p : void 0, "R"), c.value[v] = KgVarUtil.transformFormItemDynamicQueryOperator(a.formID, v, (g = m.dft_dyn_op) != null ? g : void 0);
16227
- }), t.value.kgHeight = l.value, n.store.setModel(a.formID, i.value), n.store.setOperatorModel(a.formID, c.value), s.value ? (o == null || o(), o = watch(e, async (m) => {
16228
- m && (await n.store.emit(a.formID, "ready", {}), n.store.setIsReady(a.formID, !0));
16221
+ let i, c;
16222
+ const u = ref({}), d = ref({});
16223
+ async function m() {
16224
+ var v;
16225
+ ((v = n.currentVarProfileDetails.value) != null ? v : []).forEach((E) => {
16226
+ var p, y, b;
16227
+ const g = (p = E.var_nam) != null ? p : "";
16228
+ u.value[g] = KgVarUtil.transformFormItemValue(n.formID, g, a, (y = E.dft_val) != null ? y : void 0, "R"), d.value[g] = KgVarUtil.transformFormItemDynamicQueryOperator(n.formID, g, (b = E.dft_dyn_op) != null ? b : void 0);
16229
+ }), r.value.kgHeight = o.value, s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value), l.value ? (c == null || c(), c = watch(t, async (E) => {
16230
+ E && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
16231
+ }, {
16232
+ immediate: !0
16233
+ })) : (i == null || i(), i = watch(e, async (E) => {
16234
+ E && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
16229
16235
  }, {
16230
16236
  immediate: !0
16231
- })) : (await n.store.emit(a.formID, "ready", {}), n.store.setIsReady(a.formID, !0));
16237
+ }));
16232
16238
  }
16233
- return watch(a.currentVarProfileDetails, async (d) => {
16234
- if (i.value = {}, c.value = {}, isNil(d)) {
16235
- n.store.setModel(a.formID, i.value), n.store.setOperatorModel(a.formID, c.value);
16239
+ return watch(n.currentVarProfileDetails, async (v) => {
16240
+ if (u.value = {}, d.value = {}, isNil(v)) {
16241
+ s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value);
16236
16242
  return;
16237
16243
  }
16238
- await u();
16244
+ await m();
16239
16245
  }, {
16240
16246
  immediate: !0
16241
16247
  }), {
16242
- initFormModel: u
16248
+ initFormModel: m
16243
16249
  };
16244
16250
  }
16245
16251
  const KgSearch$1 = "", getProps$9 = () => ({
@@ -16262,26 +16268,26 @@ const KgSearch$1 = "", getProps$9 = () => ({
16262
16268
  defaultHeight: u,
16263
16269
  maxHeight: d,
16264
16270
  minHeight: m
16265
- } = _useCommon(), v = ref(null), E = ref({
16271
+ } = _useCommon(), v = ref(null), E = ref(null), g = ref({
16266
16272
  kgHeight: m.value
16267
16273
  });
16268
16274
  _useLayoutHeaderResizeObserver();
16269
- const p = _useFormModel(v, E), g = computed(() => {
16270
- var K, B, W, q;
16271
- if (!isNil((B = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : B.kgDisabled))
16272
- return (q = (W = r == null ? void 0 : r.value) == null ? void 0 : W.KgSearch) == null ? void 0 : q.kgDisabled;
16275
+ const p = _useFormModel(v, E, g), y = computed(() => {
16276
+ var K, G, z, X;
16277
+ if (!isNil((G = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : G.kgDisabled))
16278
+ return (X = (z = r == null ? void 0 : r.value) == null ? void 0 : z.KgSearch) == null ? void 0 : X.kgDisabled;
16273
16279
  if (!isNil(e.kgDisabled))
16274
16280
  return e.kgDisabled;
16275
- }), y = computed(() => {
16276
- var K, B;
16277
- return !!(g.value || l.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
16278
- }), b = computed(() => !!(g.value || l.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), C = computed(() => !!(g.value || l.isRetrieving.value)), k = ref({
16281
+ }), b = computed(() => {
16282
+ var K, G;
16283
+ return !!(y.value || l.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((G = n.varButtonSearch.value) == null ? void 0 : G.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
16284
+ }), C = computed(() => !!(y.value || l.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), k = computed(() => !!(y.value || l.isRetrieving.value)), A = ref({
16279
16285
  visible: !1
16280
- }), A = computed(() => E.value.kgHeight === m.value), T = computed(() => {
16281
- var K, B, W;
16282
- if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((B = n.varButtonSearch.value) == null ? void 0 : B.var_nam))
16283
- return n.t((W = n.varButtonSearch.value) == null ? void 0 : W.var_nam).value;
16284
- }), $ = computed(() => {
16286
+ }), T = computed(() => g.value.kgHeight === m.value), $ = computed(() => {
16287
+ var K, G, z;
16288
+ if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((G = n.varButtonSearch.value) == null ? void 0 : G.var_nam))
16289
+ return n.t((z = n.varButtonSearch.value) == null ? void 0 : z.var_nam).value;
16290
+ }), O = computed(() => {
16285
16291
  var K;
16286
16292
  switch ((K = n.varButtonSearch.value) == null ? void 0 : K.primary_flg) {
16287
16293
  case 1:
@@ -16291,30 +16297,30 @@ const KgSearch$1 = "", getProps$9 = () => ({
16291
16297
  default:
16292
16298
  return !0;
16293
16299
  }
16294
- }), O = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), I = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), M = computed(() => {
16300
+ }), I = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), M = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), P = computed(() => {
16295
16301
  let K = "kg-search";
16296
16302
  return o.value && (K += " kg-search--visible"), c.value && (K += " kg-search--teleport"), K;
16297
16303
  });
16298
- async function P(K = !1) {
16299
- if (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8FDB\u5165\u65B9\u6CD5.`), y.value) {
16304
+ async function V(K = !1) {
16305
+ if (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8FDB\u5165\u65B9\u6CD5.`), b.value) {
16300
16306
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u91CD\u7F6E\u6309\u94AE\u7981\u7528.`);
16301
16307
  return;
16302
16308
  }
16303
- o.value ? v.value && v.value.validate().then(async () => {
16309
+ o.value ? E.value && E.value.validate().then(async () => {
16304
16310
  await s.store.emit(n.formID, "search", {
16305
16311
  resetPageIndex: K
16306
16312
  });
16307
- }).catch((B) => {
16313
+ }).catch((G) => {
16308
16314
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
16309
- e: B
16315
+ e: G
16310
16316
  });
16311
16317
  }) : await s.store.emit(n.formID, "search", {
16312
16318
  resetPageIndex: K
16313
16319
  });
16314
16320
  }
16315
- s.store.setSearchFn(n.formID, P);
16316
- async function V() {
16317
- p.initFormModel(), o.value ? v.value && v.value.validate().then(async () => {
16321
+ s.store.setSearchFn(n.formID, V);
16322
+ async function L() {
16323
+ p.initFormModel(), o.value ? E.value && E.value.validate().then(async () => {
16318
16324
  await s.store.emit(n.formID, "reset", {});
16319
16325
  }).catch((K) => {
16320
16326
  KgLogger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
@@ -16322,96 +16328,96 @@ const KgSearch$1 = "", getProps$9 = () => ({
16322
16328
  });
16323
16329
  }) : await s.store.emit(n.formID, "reset", {});
16324
16330
  }
16325
- s.store.setResetFn(n.formID, V);
16326
- function L() {
16327
- return P(!0), Promise.resolve(!0);
16328
- }
16331
+ s.store.setResetFn(n.formID, L);
16329
16332
  function D() {
16333
+ return V(!0), Promise.resolve(!0);
16334
+ }
16335
+ function w() {
16330
16336
  var K;
16331
16337
  return createVNode("div", {
16332
16338
  class: "title",
16333
- onClick: F
16339
+ onClick: Y
16334
16340
  }, [((K = t == null ? void 0 : t.KgSearch) == null ? void 0 : K.left) && createVNode("div", {
16335
16341
  class: "kg-search-title-left",
16336
- onClick: (B) => {
16337
- B.stopPropagation(), B.preventDefault();
16342
+ onClick: (G) => {
16343
+ G.stopPropagation(), G.preventDefault();
16338
16344
  }
16339
- }, [t.KgSearch.left()]), A.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
16345
+ }, [t.KgSearch.left()]), T.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
16340
16346
  }
16341
- function w() {
16342
- var K, B, W, q;
16343
- return ((W = (B = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : B.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
16344
- value: (q = n.currentVarProfileMasterID.value) != null ? q : void 0,
16345
- "onUpdate:value": (X) => n.store.setCurrentVarProfileMasterID(n.formID, X),
16346
- disabled: b.value,
16347
+ function R() {
16348
+ var K, G, z, X;
16349
+ return ((z = (G = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : G.length) != null ? z : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
16350
+ value: (X = n.currentVarProfileMasterID.value) != null ? X : void 0,
16351
+ "onUpdate:value": (Q) => n.store.setCurrentVarProfileMasterID(n.formID, Q),
16352
+ disabled: C.value,
16347
16353
  class: "kg-search-profile-master-select"
16348
16354
  }, {
16349
16355
  default: () => {
16350
- var X, Q;
16351
- return (Q = (X = n.varProfileMasters) == null ? void 0 : X.value) == null ? void 0 : Q.map((ee) => createVNode(Select.Option, {
16352
- value: ee.id
16356
+ var Q, ee;
16357
+ return (ee = (Q = n.varProfileMasters) == null ? void 0 : Q.value) == null ? void 0 : ee.map((ae) => createVNode(Select.Option, {
16358
+ value: ae.id
16353
16359
  }, {
16354
- default: () => [n.t(ee == null ? void 0 : ee.prf_var_nam).value]
16360
+ default: () => [n.t(ae == null ? void 0 : ae.prf_var_nam).value]
16355
16361
  }));
16356
16362
  },
16357
16363
  suffixIcon: () => createVNode(CaretDownOutlined$1, {
16358
16364
  class: "ant-select-suffix"
16359
16365
  }, null)
16360
16366
  }), createVNode(Button, {
16361
- disabled: b.value,
16367
+ disabled: C.value,
16362
16368
  onClick: () => {
16363
- k.value.visible = !0;
16369
+ A.value.visible = !0;
16364
16370
  },
16365
16371
  class: "kg-search-profile-master-btn"
16366
16372
  }, {
16367
16373
  default: () => [createVNode(SettingOutlined$1, null, null)]
16368
16374
  }), createVNode(KgSearchConfigModal, {
16369
- visible: k.value.visible,
16370
- "onUpdate:visible": (X) => k.value.visible = X,
16375
+ visible: A.value.visible,
16376
+ "onUpdate:visible": (Q) => A.value.visible = Q,
16371
16377
  hostFormID: n.formID
16372
16378
  }, null)]);
16373
16379
  }
16374
- function R() {
16375
- var K, B, W, q, X;
16376
- return createVNode(Fragment, null, [w(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
16380
+ function x() {
16381
+ var K, G, z, X, Q;
16382
+ return createVNode(Fragment, null, [R(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((G = n.varButtonSearch.value) == null ? void 0 : G.permission_code)) && createVNode(Button, {
16377
16383
  type: "primary",
16378
- ghost: !y.value,
16379
- disabled: y.value,
16380
- onClick: V,
16384
+ ghost: !b.value,
16385
+ disabled: b.value,
16386
+ onClick: L,
16381
16387
  class: "kg-search-btn-reset"
16382
16388
  }, {
16383
16389
  default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
16384
16390
  }), createVNode(KgButton.Item, {
16385
16391
  kgType: KG_BUTTON_TYPE.SEARCH,
16386
- kgVarName: (W = n.varButtonSearch.value) == null ? void 0 : W.var_nam,
16387
- kgIcon: (q = n.varButtonSearch.value) == null ? void 0 : q.icon,
16388
- kgText: T.value,
16389
- kgColor: (X = n.varButtonSearch.value) == null ? void 0 : X.color,
16390
- kgPrimary: $.value,
16391
- kgLoading: C.value,
16392
- onKgClick: L
16392
+ kgVarName: (z = n.varButtonSearch.value) == null ? void 0 : z.var_nam,
16393
+ kgIcon: (X = n.varButtonSearch.value) == null ? void 0 : X.icon,
16394
+ kgText: $.value,
16395
+ kgColor: (Q = n.varButtonSearch.value) == null ? void 0 : Q.color,
16396
+ kgPrimary: O.value,
16397
+ kgLoading: k.value,
16398
+ onKgClick: D
16393
16399
  }, null)]);
16394
16400
  }
16395
- function x() {
16401
+ function F() {
16396
16402
  return createVNode(Spin, {
16397
- spinning: I.value
16403
+ spinning: M.value
16398
16404
  }, {
16399
16405
  default: () => {
16400
16406
  var K;
16401
16407
  return [createVNode(KgForm, {
16402
- ref: v,
16408
+ ref: E,
16403
16409
  model: (K = s.model.value) != null ? K : {}
16404
16410
  }, {
16405
16411
  default: () => [createVNode(Row, {
16406
16412
  gutter: 6
16407
16413
  }, {
16408
16414
  default: () => {
16409
- var B;
16410
- return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((W) => createVNode(KgForm.Item, {
16411
- key: W.var_nam,
16412
- kgVarName: W.var_nam,
16415
+ var G;
16416
+ return [(G = n.currentVarProfileDetails.value) == null ? void 0 : G.map((z) => createVNode(KgForm.Item, {
16417
+ key: z.var_nam,
16418
+ kgVarName: z.var_nam,
16413
16419
  kgContext: KG_FORM_CONTEXT.SEARCH,
16414
- onKgSubmit: () => P(!0)
16420
+ onKgSubmit: () => V(!0)
16415
16421
  }, null))];
16416
16422
  }
16417
16423
  })]
@@ -16419,16 +16425,17 @@ const KgSearch$1 = "", getProps$9 = () => ({
16419
16425
  }
16420
16426
  });
16421
16427
  }
16422
- function F() {
16423
- A.value ? E.value.kgHeight = u.value : E.value.kgHeight = m.value;
16428
+ function Y() {
16429
+ T.value ? g.value.kgHeight = u.value : g.value.kgHeight = m.value;
16424
16430
  }
16425
16431
  return () => createVNode(KgResizable, {
16426
- kgHeight: E.value.kgHeight,
16427
- "onUpdate:kgHeight": (K) => E.value.kgHeight = K,
16432
+ ref: v,
16433
+ kgHeight: g.value.kgHeight,
16434
+ "onUpdate:kgHeight": (K) => g.value.kgHeight = K,
16428
16435
  kgMinHeight: m.value,
16429
16436
  kgMaxHeight: d.value,
16430
16437
  kgDisabled: !i.value,
16431
- kgClass: M.value,
16438
+ kgClass: P.value,
16432
16439
  "kg-frm_id": n.formID
16433
16440
  }, {
16434
16441
  default: () => [o.value && createVNode("div", {
@@ -16442,17 +16449,17 @@ const KgSearch$1 = "", getProps$9 = () => ({
16442
16449
  default: () => [createVNode("div", {
16443
16450
  class: "ant-collapse-header"
16444
16451
  }, [createVNode(Spin, {
16445
- spinning: O.value
16452
+ spinning: I.value
16446
16453
  }, {
16447
- default: () => [D(), createVNode("div", {
16454
+ default: () => [w(), createVNode("div", {
16448
16455
  class: "ant-collapse-extra"
16449
- }, [R()])]
16456
+ }, [x()])]
16450
16457
  })])]
16451
16458
  }), createVNode("div", {
16452
16459
  class: "ant-collapse-content ant-collapse-content-active"
16453
16460
  }, [createVNode("div", {
16454
16461
  class: "ant-collapse-content-box"
16455
- }, [x()])])])])]
16462
+ }, [F()])])])])]
16456
16463
  });
16457
16464
  }
16458
16465
  });
@@ -16509,35 +16516,35 @@ function useMagicKeys(e = {}) {
16509
16516
  } = e, l = reactive(/* @__PURE__ */ new Set()), o = { toJSON() {
16510
16517
  return {};
16511
16518
  }, current: l }, i = t ? reactive(o) : o, c = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
16512
- function d(p, g) {
16513
- p in i && (t ? i[p] = g : i[p].value = g);
16519
+ function d(g, p) {
16520
+ g in i && (t ? i[g] = p : i[g].value = p);
16514
16521
  }
16515
16522
  function m() {
16516
- for (const p of u)
16517
- d(p, !1);
16523
+ for (const g of u)
16524
+ d(g, !1);
16518
16525
  }
16519
- function v(p, g) {
16526
+ function v(g, p) {
16520
16527
  var y, b;
16521
- const C = (y = p.key) == null ? void 0 : y.toLowerCase(), k = (b = p.code) == null ? void 0 : b.toLowerCase(), A = [k, C].filter(Boolean);
16522
- k && (g ? l.add(p.code) : l.delete(p.code));
16528
+ const C = (y = g.key) == null ? void 0 : y.toLowerCase(), k = (b = g.code) == null ? void 0 : b.toLowerCase(), A = [k, C].filter(Boolean);
16529
+ k && (p ? l.add(g.code) : l.delete(g.code));
16523
16530
  for (const T of A)
16524
- u.add(T), d(T, g);
16525
- C === "meta" && !g ? (c.forEach((T) => {
16531
+ u.add(T), d(T, p);
16532
+ C === "meta" && !p ? (c.forEach((T) => {
16526
16533
  l.delete(T), d(T, !1);
16527
- }), c.clear()) : typeof p.getModifierState == "function" && p.getModifierState("Meta") && g && [...l, ...A].forEach((T) => c.add(T));
16534
+ }), c.clear()) : typeof g.getModifierState == "function" && g.getModifierState("Meta") && p && [...l, ...A].forEach((T) => c.add(T));
16528
16535
  }
16529
- r && (useEventListener(r, "keydown", (p) => (v(p, !0), s(p)), { passive: n }), useEventListener(r, "keyup", (p) => (v(p, !1), s(p)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
16536
+ r && (useEventListener(r, "keydown", (g) => (v(g, !0), s(g)), { passive: n }), useEventListener(r, "keyup", (g) => (v(g, !1), s(g)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
16530
16537
  const E = new Proxy(i, {
16531
- get(p, g, y) {
16532
- if (typeof g != "string")
16533
- return Reflect.get(p, g, y);
16534
- if (g = g.toLowerCase(), g in a && (g = a[g]), !(g in i))
16535
- if (/[+_-]/.test(g)) {
16536
- const C = g.split(/[+_-]/g).map((k) => k.trim());
16537
- i[g] = computed(() => C.every((k) => unref(E[k])));
16538
+ get(g, p, y) {
16539
+ if (typeof p != "string")
16540
+ return Reflect.get(g, p, y);
16541
+ if (p = p.toLowerCase(), p in a && (p = a[p]), !(p in i))
16542
+ if (/[+_-]/.test(p)) {
16543
+ const C = p.split(/[+_-]/g).map((k) => k.trim());
16544
+ i[p] = computed(() => C.every((k) => unref(E[k])));
16538
16545
  } else
16539
- i[g] = ref(!1);
16540
- const b = Reflect.get(p, g, y);
16546
+ i[p] = ref(!1);
16547
+ const b = Reflect.get(g, p, y);
16541
16548
  return t ? unref(b) : b;
16542
16549
  }
16543
16550
  });
@@ -16926,10 +16933,10 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16926
16933
  onSelect: (V) => $(V)
16927
16934
  }), v = ref({
16928
16935
  visible: !1
16929
- }), E = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(l))), p = computed(() => {
16936
+ }), E = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(l))), g = computed(() => {
16930
16937
  var V;
16931
16938
  return !!u.value || ((V = a.getSelectedVarCatalog) == null ? void 0 : V.cust_lvl) === KG_CUSTOM_LEVEL.L0;
16932
- }), g = computed(() => !!(!unref(u) || unref(n) || unref(s))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
16939
+ }), p = computed(() => !!(!unref(u) || unref(n) || unref(s))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
16933
16940
  watch(() => a.getSelectedVar, (V) => {
16934
16941
  V ? b() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
16935
16942
  }, {
@@ -16956,8 +16963,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16956
16963
  });
16957
16964
  if (u.value = null, c.value = R != null ? R : [], V) {
16958
16965
  const x = c.value.find((F) => {
16959
- var K;
16960
- return F.id === ((K = a.getSelectedVarCatalog) == null ? void 0 : K.id);
16966
+ var Y;
16967
+ return F.id === ((Y = a.getSelectedVarCatalog) == null ? void 0 : Y.id);
16961
16968
  });
16962
16969
  a.setSelectedVarCatalog(x != null ? x : null), d.value = x != null && x.id ? [x.id] : [];
16963
16970
  } else
@@ -17062,8 +17069,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
17062
17069
  default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
17063
17070
  }), createVNode(Button, {
17064
17071
  onClick: T,
17065
- disabled: p.value,
17066
- ghost: !p.value,
17072
+ disabled: g.value,
17073
+ ghost: !g.value,
17067
17074
  type: "primary",
17068
17075
  danger: !0
17069
17076
  }, {
@@ -17097,7 +17104,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
17097
17104
  }), createVNode("div", {
17098
17105
  class: "buttons"
17099
17106
  }, [createVNode(Button, {
17100
- disabled: g.value,
17107
+ disabled: p.value,
17101
17108
  onClick: A
17102
17109
  }, _isSlot(V = t.t("common.cancelText")) ? V : {
17103
17110
  default: () => [V]
@@ -17478,7 +17485,7 @@ const KgWarehouse$1 = "", getProps = () => ({
17478
17485
  return ((A = (k = r.option.value) == null ? void 0 : k.KgWarehouse) == null ? void 0 : A.enable) !== !1;
17479
17486
  });
17480
17487
  watch(a.visible, (k) => {
17481
- !m.value || (k ? E() : p());
17488
+ !m.value || (k ? E() : g());
17482
17489
  }, {
17483
17490
  immediate: !0
17484
17491
  }), onMounted(() => {
@@ -17490,10 +17497,10 @@ const KgWarehouse$1 = "", getProps = () => ({
17490
17497
  function E() {
17491
17498
  o.value = a.warehouse.value, y();
17492
17499
  }
17493
- function p() {
17500
+ function g() {
17494
17501
  s.value = "", u.value = [], o.value = null;
17495
17502
  }
17496
- function g() {
17503
+ function p() {
17497
17504
  var k;
17498
17505
  !o.value || (e.kgInvisible ? (a.store.setWarehouse(o.value), t("kgOk")) : o.value.id !== ((k = a.warehouse.value) == null ? void 0 : k.id) && (a.store.setWarehouse(o.value), KgUtil.confirm({
17499
17506
  content: r.t("kg.KgWarehouse.reloadMessage"),
@@ -17532,7 +17539,7 @@ const KgWarehouse$1 = "", getProps = () => ({
17532
17539
  ((T = o.value) == null ? void 0 : T.id) === A.id ? o.value = null : o.value = A;
17533
17540
  break;
17534
17541
  case 2:
17535
- o.value = A, g();
17542
+ o.value = A, p();
17536
17543
  break;
17537
17544
  }
17538
17545
  }
@@ -17560,7 +17567,7 @@ const KgWarehouse$1 = "", getProps = () => ({
17560
17567
  okButtonProps: {
17561
17568
  disabled: i.value || !o.value
17562
17569
  },
17563
- onOk: g
17570
+ onOk: p
17564
17571
  }, {
17565
17572
  default: () => [createVNode(Input, {
17566
17573
  value: s.value,