@kengic/vue 0.6.10-beta.6 → 0.6.10-beta.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -2179,12 +2179,12 @@ setTwoToneColor("#1890ff");
2179
2179
  var Icon$1 = function(t, r) {
2180
2180
  var a, n = _objectSpread$k({}, t, r.attrs), o = n.class, i = n.icon, s = n.spin, l = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, m = _objectWithoutProperties(n, _excluded), v = (a = {
2181
2181
  anticon: !0
2182
- }, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, o, o), a), k = s === "" || !!s || i.name === "loading" ? "anticon-spin" : "", p = c;
2182
+ }, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, o, o), a), T = s === "" || !!s || i.name === "loading" ? "anticon-spin" : "", p = c;
2183
2183
  p === void 0 && d && (p = -1, m.tabindex = p);
2184
2184
  var _ = l ? {
2185
2185
  msTransform: "rotate(".concat(l, "deg)"),
2186
2186
  transform: "rotate(".concat(l, "deg)")
2187
- } : void 0, y = normalizeTwoToneColors(u), b = _slicedToArray(y, 2), C = b[0], T = b[1];
2187
+ } : void 0, y = normalizeTwoToneColors(u), b = _slicedToArray(y, 2), C = b[0], k = b[1];
2188
2188
  return createVNode("span", _objectSpread$k({
2189
2189
  role: "img",
2190
2190
  "aria-label": i.name
@@ -2192,10 +2192,10 @@ var Icon$1 = function(t, r) {
2192
2192
  onClick: d,
2193
2193
  class: v
2194
2194
  }), [createVNode(VueIcon, {
2195
- class: k,
2195
+ class: T,
2196
2196
  icon: i,
2197
2197
  primaryColor: C,
2198
- secondaryColor: T,
2198
+ secondaryColor: k,
2199
2199
  style: _
2200
2200
  }, null)]);
2201
2201
  };
@@ -2996,9 +2996,9 @@ function iconToSVG(e, t) {
2996
2996
  height: r.height
2997
2997
  };
2998
2998
  let o = r.body;
2999
- [r, a].forEach((k) => {
3000
- const p = [], _ = k.hFlip, y = k.vFlip;
3001
- let b = k.rotate;
2999
+ [r, a].forEach((T) => {
3000
+ const p = [], _ = T.hFlip, y = T.vFlip;
3001
+ let b = T.rotate;
3002
3002
  _ ? y ? b += 2 : (p.push(
3003
3003
  "translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
3004
3004
  ), p.push("scale(-1 1)"), n.top = n.left = 0) : y && (p.push(
@@ -3027,8 +3027,8 @@ function iconToSVG(e, t) {
3027
3027
  const i = a.width, s = a.height, l = n.width, c = n.height;
3028
3028
  let u, d;
3029
3029
  i === null ? (d = s === null ? "1em" : s === "auto" ? c : s, u = calculateSize(d, l / c)) : (u = i === "auto" ? l : i, d = s === null ? calculateSize(u, c / l) : s === "auto" ? c : s);
3030
- const m = {}, v = (k, p) => {
3031
- isUnsetKeyword(p) || (m[k] = p.toString());
3030
+ const m = {}, v = (T, p) => {
3031
+ isUnsetKeyword(p) || (m[T] = p.toString());
3032
3032
  };
3033
3033
  return v("width", u), v("height", d), m.viewBox = n.left.toString() + " " + n.top.toString() + " " + l.toString() + " " + c.toString(), {
3034
3034
  attributes: m,
@@ -3313,11 +3313,11 @@ function sendQuery(e, t, r, a) {
3313
3313
  const s = Date.now();
3314
3314
  let l = "pending", c = 0, u, d = null, m = [], v = [];
3315
3315
  typeof a == "function" && v.push(a);
3316
- function k() {
3316
+ function T() {
3317
3317
  d && (clearTimeout(d), d = null);
3318
3318
  }
3319
3319
  function p() {
3320
- l === "pending" && (l = "aborted"), k(), m.forEach((E) => {
3320
+ l === "pending" && (l = "aborted"), T(), m.forEach((E) => {
3321
3321
  E.status === "pending" && (E.status = "aborted");
3322
3322
  }), m = [];
3323
3323
  }
@@ -3345,7 +3345,7 @@ function sendQuery(e, t, r, a) {
3345
3345
  E.status === "pending" && (E.status = "aborted");
3346
3346
  }), m = [];
3347
3347
  }
3348
- function T(E, N, I) {
3348
+ function k(E, N, M) {
3349
3349
  const A = N !== "success";
3350
3350
  switch (m = m.filter((w) => w !== E), l) {
3351
3351
  case "pending":
@@ -3358,30 +3358,30 @@ function sendQuery(e, t, r, a) {
3358
3358
  return;
3359
3359
  }
3360
3360
  if (N === "abort") {
3361
- u = I, b();
3361
+ u = M, b();
3362
3362
  return;
3363
3363
  }
3364
3364
  if (A) {
3365
- u = I, m.length || (i.length ? M() : b());
3365
+ u = M, m.length || (i.length ? I() : b());
3366
3366
  return;
3367
3367
  }
3368
- if (k(), C(), !e.random) {
3368
+ if (T(), C(), !e.random) {
3369
3369
  const w = e.resources.indexOf(E.resource);
3370
3370
  w !== -1 && w !== e.index && (e.index = w);
3371
3371
  }
3372
3372
  l = "completed", v.forEach((w) => {
3373
- w(I);
3373
+ w(M);
3374
3374
  });
3375
3375
  }
3376
- function M() {
3376
+ function I() {
3377
3377
  if (l !== "pending")
3378
3378
  return;
3379
- k();
3379
+ T();
3380
3380
  const E = i.shift();
3381
3381
  if (E === void 0) {
3382
3382
  if (m.length) {
3383
3383
  d = setTimeout(() => {
3384
- k(), l === "pending" && (C(), b());
3384
+ T(), l === "pending" && (C(), b());
3385
3385
  }, e.timeout);
3386
3386
  return;
3387
3387
  }
@@ -3391,13 +3391,13 @@ function sendQuery(e, t, r, a) {
3391
3391
  const N = {
3392
3392
  status: "pending",
3393
3393
  resource: E,
3394
- callback: (I, A) => {
3395
- T(N, I, A);
3394
+ callback: (M, A) => {
3395
+ k(N, M, A);
3396
3396
  }
3397
3397
  };
3398
- m.push(N), c++, d = setTimeout(M, e.rotate), r(E, t, N.callback);
3398
+ m.push(N), c++, d = setTimeout(I, e.rotate), r(E, t, N.callback);
3399
3399
  }
3400
- return setTimeout(M), y;
3400
+ return setTimeout(I), y;
3401
3401
  }
3402
3402
  function initRedundancy(e) {
3403
3403
  const t = {
@@ -3813,14 +3813,14 @@ const render = (e, t) => {
3813
3813
  let p = 0, _ = t.id;
3814
3814
  return typeof _ == "string" && (_ = _.replace(/-/g, "_")), a.innerHTML = replaceIDs(l.body, _ ? () => _ + "ID" + p++ : "iconifyVue"), h("svg", a);
3815
3815
  }
3816
- const { body: u, width: d, height: m } = e, v = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1), k = iconToHTML(u, {
3816
+ const { body: u, width: d, height: m } = e, v = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1), T = iconToHTML(u, {
3817
3817
  ...c,
3818
3818
  width: d + "",
3819
3819
  height: m + ""
3820
3820
  });
3821
3821
  return a.style = {
3822
3822
  ...o,
3823
- "--svg": svgToURL(k),
3823
+ "--svg": svgToURL(T),
3824
3824
  width: fixSize(c.width),
3825
3825
  height: fixSize(c.height),
3826
3826
  ...commonProps,
@@ -3926,13 +3926,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3926
3926
  (function(r, a) {
3927
3927
  e.exports = a();
3928
3928
  })(commonjsGlobal, function() {
3929
- var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", k = "date", p = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, 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(P) {
3929
+ var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", T = "date", p = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, 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(P) {
3930
3930
  var V = ["th", "st", "nd", "rd"], D = P % 100;
3931
3931
  return "[" + P + (V[(D - 20) % 10] || V[D] || V[0]) + "]";
3932
3932
  } }, C = function(P, V, D) {
3933
3933
  var O = String(P);
3934
3934
  return !O || O.length >= V ? P : "" + Array(V + 1 - O.length).join(D) + P;
3935
- }, T = { s: C, z: function(P) {
3935
+ }, k = { s: C, z: function(P) {
3936
3936
  var V = -P.utcOffset(), D = Math.abs(V), O = Math.floor(D / 60), R = D % 60;
3937
3937
  return (V <= 0 ? "+" : "-") + C(O, 2, "0") + ":" + C(R, 2, "0");
3938
3938
  }, m: function P(V, D) {
@@ -3943,17 +3943,17 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3943
3943
  }, a: function(P) {
3944
3944
  return P < 0 ? Math.ceil(P) || 0 : Math.floor(P);
3945
3945
  }, p: function(P) {
3946
- return { M: d, y: v, w: u, d: c, D: k, h: l, m: s, s: i, ms: o, Q: m }[P] || String(P || "").toLowerCase().replace(/s$/, "");
3946
+ return { M: d, y: v, w: u, d: c, D: T, h: l, m: s, s: i, ms: o, Q: m }[P] || String(P || "").toLowerCase().replace(/s$/, "");
3947
3947
  }, u: function(P) {
3948
3948
  return P === void 0;
3949
- } }, M = "en", E = {};
3950
- E[M] = b;
3949
+ } }, I = "en", E = {};
3950
+ E[I] = b;
3951
3951
  var N = function(P) {
3952
3952
  return P instanceof F;
3953
- }, I = function P(V, D, O) {
3953
+ }, M = function P(V, D, O) {
3954
3954
  var R;
3955
3955
  if (!V)
3956
- return M;
3956
+ return I;
3957
3957
  if (typeof V == "string") {
3958
3958
  var x = V.toLowerCase();
3959
3959
  E[x] && (R = x), D && (E[x] = D, R = x);
@@ -3964,19 +3964,19 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3964
3964
  var H = V.name;
3965
3965
  E[H] = V, R = H;
3966
3966
  }
3967
- return !O && R && (M = R), R || !O && M;
3967
+ return !O && R && (I = R), R || !O && I;
3968
3968
  }, A = function(P, V) {
3969
3969
  if (N(P))
3970
3970
  return P.clone();
3971
3971
  var D = typeof V == "object" ? V : {};
3972
3972
  return D.date = P, D.args = arguments, new F(D);
3973
- }, w = T;
3974
- w.l = I, w.i = N, w.w = function(P, V) {
3973
+ }, w = k;
3974
+ w.l = M, w.i = N, w.w = function(P, V) {
3975
3975
  return A(P, { locale: V.$L, utc: V.$u, x: V.$x, $offset: V.$offset });
3976
3976
  };
3977
3977
  var F = function() {
3978
3978
  function P(D) {
3979
- this.$L = I(D.locale, null, !0), this.parse(D);
3979
+ this.$L = M(D.locale, null, !0), this.parse(D);
3980
3980
  }
3981
3981
  var V = P.prototype;
3982
3982
  return V.parse = function(D) {
@@ -4033,7 +4033,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4033
4033
  var oe = this.$locale().weekStart || 0, ue = (X < oe ? X + 7 : X) - oe;
4034
4034
  return H(x ? te - ue : te + (6 - ue), Y);
4035
4035
  case c:
4036
- case k:
4036
+ case T:
4037
4037
  return Q(ae + "Hours", 0);
4038
4038
  case l:
4039
4039
  return Q(ae + "Minutes", 1);
@@ -4047,10 +4047,10 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4047
4047
  }, V.endOf = function(D) {
4048
4048
  return this.startOf(D, !1);
4049
4049
  }, V.$set = function(D, O) {
4050
- var R, x = w.p(D), G = "set" + (this.$u ? "UTC" : ""), H = (R = {}, R[c] = G + "Date", R[k] = G + "Date", R[d] = G + "Month", R[v] = G + "FullYear", R[l] = G + "Hours", R[s] = G + "Minutes", R[i] = G + "Seconds", R[o] = G + "Milliseconds", R)[x], Q = x === c ? this.$D + (O - this.$W) : O;
4050
+ var R, x = w.p(D), G = "set" + (this.$u ? "UTC" : ""), H = (R = {}, R[c] = G + "Date", R[T] = G + "Date", R[d] = G + "Month", R[v] = G + "FullYear", R[l] = G + "Hours", R[s] = G + "Minutes", R[i] = G + "Seconds", R[o] = G + "Milliseconds", R)[x], Q = x === c ? this.$D + (O - this.$W) : O;
4051
4051
  if (x === d || x === v) {
4052
- var X = this.clone().set(k, 1);
4053
- X.$d[H](Q), X.init(), this.$d = X.set(k, Math.min(this.$D, X.daysInMonth())).$d;
4052
+ var X = this.clone().set(T, 1);
4053
+ X.$d[H](Q), X.init(), this.$d = X.set(T, Math.min(this.$D, X.daysInMonth())).$d;
4054
4054
  } else
4055
4055
  H && this.$d[H](Q);
4056
4056
  return this.init(), this;
@@ -4104,7 +4104,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4104
4104
  }, V.locale = function(D, O) {
4105
4105
  if (!D)
4106
4106
  return this.$L;
4107
- var R = this.clone(), x = I(D, O, !0);
4107
+ var R = this.clone(), x = M(D, O, !0);
4108
4108
  return x && (R.$L = x), R;
4109
4109
  }, V.clone = function() {
4110
4110
  return w.w(this.$d, this);
@@ -4118,15 +4118,15 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4118
4118
  return this.$d.toUTCString();
4119
4119
  }, P;
4120
4120
  }(), $ = F.prototype;
4121
- return A.prototype = $, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", c], ["$M", d], ["$y", v], ["$D", k]].forEach(function(P) {
4121
+ return A.prototype = $, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", c], ["$M", d], ["$y", v], ["$D", T]].forEach(function(P) {
4122
4122
  $[P[1]] = function(V) {
4123
4123
  return this.$g(V, P[0], P[1]);
4124
4124
  };
4125
4125
  }), A.extend = function(P, V) {
4126
4126
  return P.$i || (P(V, F, A), P.$i = !0), A;
4127
- }, A.locale = I, A.isDayjs = N, A.unix = function(P) {
4127
+ }, A.locale = M, A.isDayjs = N, A.unix = function(P) {
4128
4128
  return A(1e3 * P);
4129
- }, A.en = E[M], A.Ls = E, A.p = {}, A;
4129
+ }, A.en = E[I], A.Ls = E, A.p = {}, A;
4130
4130
  });
4131
4131
  })(dayjs_min);
4132
4132
  const dayjs = dayjs_min.exports;
@@ -4167,27 +4167,27 @@ function filesize(e, {
4167
4167
  output: d = STRING,
4168
4168
  fullform: m = !1,
4169
4169
  fullforms: v = [],
4170
- exponent: k = -1,
4170
+ exponent: T = -1,
4171
4171
  roundingMethod: p = ROUND,
4172
4172
  precision: _ = 0
4173
4173
  } = {}) {
4174
- let y = k, b = Number(e), C = [], T = 0, M = EMPTY;
4174
+ let y = T, b = Number(e), C = [], k = 0, I = EMPTY;
4175
4175
  a === -1 && u.length === 0 ? (a = 10, u = JEDEC) : a === -1 && u.length > 0 ? (u = u === IEC ? IEC : JEDEC, a = u === IEC ? 2 : 10) : (a = a === 2 ? 2 : 10, u = a === 10 || u === JEDEC ? JEDEC : IEC);
4176
- const E = a === 10 ? 1e3 : 1024, N = m === !0, I = b < 0, A = Math[p];
4176
+ const E = a === 10 ? 1e3 : 1024, N = m === !0, M = b < 0, A = Math[p];
4177
4177
  if (typeof e != "bigint" && isNaN(e))
4178
4178
  throw new TypeError(INVALID_NUMBER);
4179
4179
  if (typeof A !== FUNCTION)
4180
4180
  throw new TypeError(INVALID_ROUND);
4181
- if (I && (b = -b), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(b) / Math.log(E)), y < 0 && (y = 0)), y > 8 && (_ > 0 && (_ += 8 - y), y = 8), d === EXPONENT)
4181
+ if (M && (b = -b), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(b) / Math.log(E)), y < 0 && (y = 0)), y > 8 && (_ > 0 && (_ += 8 - y), y = 8), d === EXPONENT)
4182
4182
  return y;
4183
4183
  if (b === 0)
4184
- C[0] = 0, M = C[1] = STRINGS.symbol[u][t ? BITS : BYTES][y];
4184
+ C[0] = 0, I = C[1] = STRINGS.symbol[u][t ? BITS : BYTES][y];
4185
4185
  else {
4186
- T = b / (a === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (T = T * 8, T >= E && y < 8 && (T = T / E, y++));
4186
+ k = b / (a === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (k = k * 8, k >= E && y < 8 && (k = k / E, y++));
4187
4187
  const w = Math.pow(10, y > 0 ? n : 0);
4188
- C[0] = A(T * w) / w, C[0] === E && y < 8 && k === -1 && (C[0] = 1, y++), M = C[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][y];
4188
+ C[0] = A(k * w) / w, C[0] === E && y < 8 && T === -1 && (C[0] = 1, y++), I = C[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][y];
4189
4189
  }
4190
- if (I && (C[0] = -C[0]), _ > 0 && (C[0] = C[0].toPrecision(_)), C[1] = c[C[1]] || C[1], o === !0 ? C[0] = C[0].toLocaleString() : o.length > 0 ? C[0] = C[0].toLocaleString(o, i) : s.length > 0 && (C[0] = C[0].toString().replace(PERIOD, s)), r && Number.isInteger(C[0]) === !1 && n > 0) {
4190
+ if (M && (C[0] = -C[0]), _ > 0 && (C[0] = C[0].toPrecision(_)), C[1] = c[C[1]] || C[1], o === !0 ? C[0] = C[0].toLocaleString() : o.length > 0 ? C[0] = C[0].toLocaleString(o, i) : s.length > 0 && (C[0] = C[0].toString().replace(PERIOD, s)), r && Number.isInteger(C[0]) === !1 && n > 0) {
4191
4191
  const w = s || PERIOD, F = C[0].toString().split(w), $ = F[1] || EMPTY, P = $.length, V = n - P;
4192
4192
  C[0] = `${F[0]}${w}${$.padEnd(P + V, ZERO)}`;
4193
4193
  }
@@ -4195,7 +4195,7 @@ function filesize(e, {
4195
4195
  value: C[0],
4196
4196
  symbol: C[1],
4197
4197
  exponent: y,
4198
- unit: M
4198
+ unit: I
4199
4199
  } : C.join(l);
4200
4200
  }
4201
4201
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
@@ -5245,7 +5245,7 @@ function baseClone(e, t, r, a, n, o) {
5245
5245
  }) : isMap$1(e) && e.forEach(function(_, y) {
5246
5246
  i.set(y, baseClone(_, t, r, y, e, o));
5247
5247
  });
5248
- var k = c ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, p = u ? void 0 : k(e);
5248
+ var T = c ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, p = u ? void 0 : T(e);
5249
5249
  return arrayEach(p || e, function(_, y) {
5250
5250
  p && (y = _, _ = e[y]), assignValue(i, y, baseClone(_, t, r, y, e, o));
5251
5251
  }), i;
@@ -5287,9 +5287,9 @@ function equalArrays(e, t, r, a, n, o) {
5287
5287
  return c == t && u == e;
5288
5288
  var d = -1, m = !0, v = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
5289
5289
  for (o.set(e, t), o.set(t, e); ++d < s; ) {
5290
- var k = e[d], p = t[d];
5290
+ var T = e[d], p = t[d];
5291
5291
  if (a)
5292
- var _ = i ? a(p, k, d, t, e, o) : a(k, p, d, e, t, o);
5292
+ var _ = i ? a(p, T, d, t, e, o) : a(T, p, d, e, t, o);
5293
5293
  if (_ !== void 0) {
5294
5294
  if (_)
5295
5295
  continue;
@@ -5298,13 +5298,13 @@ function equalArrays(e, t, r, a, n, o) {
5298
5298
  }
5299
5299
  if (v) {
5300
5300
  if (!arraySome(t, function(y, b) {
5301
- if (!cacheHas(v, b) && (k === y || n(k, y, r, a, o)))
5301
+ if (!cacheHas(v, b) && (T === y || n(T, y, r, a, o)))
5302
5302
  return v.push(b);
5303
5303
  })) {
5304
5304
  m = !1;
5305
5305
  break;
5306
5306
  }
5307
- } else if (!(k === p || n(k, p, r, a, o))) {
5307
+ } else if (!(T === p || n(T, p, r, a, o))) {
5308
5308
  m = !1;
5309
5309
  break;
5310
5310
  }
@@ -5369,9 +5369,9 @@ function equalObjects(e, t, r, a, n, o) {
5369
5369
  if (!(i ? m in t : hasOwnProperty$1.call(t, m)))
5370
5370
  return !1;
5371
5371
  }
5372
- var v = o.get(e), k = o.get(t);
5373
- if (v && k)
5374
- return v == t && k == e;
5372
+ var v = o.get(e), T = o.get(t);
5373
+ if (v && T)
5374
+ return v == t && T == e;
5375
5375
  var p = !0;
5376
5376
  o.set(e, t), o.set(t, e);
5377
5377
  for (var _ = i; ++d < l; ) {
@@ -5386,8 +5386,8 @@ function equalObjects(e, t, r, a, n, o) {
5386
5386
  _ || (_ = m == "constructor");
5387
5387
  }
5388
5388
  if (p && !_) {
5389
- var T = e.constructor, M = t.constructor;
5390
- T != M && "constructor" in e && "constructor" in t && !(typeof T == "function" && T instanceof T && typeof M == "function" && M instanceof M) && (p = !1);
5389
+ var k = e.constructor, I = t.constructor;
5390
+ k != I && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof I == "function" && I instanceof I) && (p = !1);
5391
5391
  }
5392
5392
  return o.delete(e), o.delete(t), p;
5393
5393
  }
@@ -5404,9 +5404,9 @@ function baseIsEqualDeep(e, t, r, a, n, o) {
5404
5404
  if (m && !u)
5405
5405
  return o || (o = new Stack()), i || isTypedArray$1(e) ? equalArrays(e, t, r, a, n, o) : equalByTag(e, t, l, r, a, n, o);
5406
5406
  if (!(r & COMPARE_PARTIAL_FLAG$2)) {
5407
- var v = u && hasOwnProperty.call(e, "__wrapped__"), k = d && hasOwnProperty.call(t, "__wrapped__");
5408
- if (v || k) {
5409
- var p = v ? e.value() : e, _ = k ? t.value() : t;
5407
+ var v = u && hasOwnProperty.call(e, "__wrapped__"), T = d && hasOwnProperty.call(t, "__wrapped__");
5408
+ if (v || T) {
5409
+ var p = v ? e.value() : e, _ = T ? t.value() : t;
5410
5410
  return o || (o = new Stack()), n(p, _, r, a, o);
5411
5411
  }
5412
5412
  }
@@ -5604,14 +5604,14 @@ function baseIntersection(e, t, r) {
5604
5604
  var d = -1, m = s[0];
5605
5605
  e:
5606
5606
  for (; ++d < n && c.length < l; ) {
5607
- var v = u[d], k = t ? t(v) : v;
5608
- if (v = r || v !== 0 ? v : 0, !(m ? cacheHas(m, k) : a(c, k, r))) {
5607
+ var v = u[d], T = t ? t(v) : v;
5608
+ if (v = r || v !== 0 ? v : 0, !(m ? cacheHas(m, T) : a(c, T, r))) {
5609
5609
  for (i = o; --i; ) {
5610
5610
  var p = s[i];
5611
- if (!(p ? cacheHas(p, k) : a(e[i], k, r)))
5611
+ if (!(p ? cacheHas(p, T) : a(e[i], T, r)))
5612
5612
  continue e;
5613
5613
  }
5614
- m && m.push(k), c.push(v);
5614
+ m && m.push(T), c.push(v);
5615
5615
  }
5616
5616
  }
5617
5617
  return c;
@@ -6364,7 +6364,7 @@ class KgVarUtil {
6364
6364
  return r;
6365
6365
  }
6366
6366
  static transformValueByControlType(t, r, a, n, o) {
6367
- var m, v, k;
6367
+ var m, v, T;
6368
6368
  const i = useKg(), s = useKgVar(t);
6369
6369
  let l = n;
6370
6370
  const c = /(.*)?({(.*)?})(.*)?/.exec(l);
@@ -6375,7 +6375,7 @@ class KgVarUtil {
6375
6375
  l = l.replace("{NOW}", a().format("YYYY-MM-DD HH:mm:ss"));
6376
6376
  break;
6377
6377
  case "{USER.username}":
6378
- l = l.replace("{USER.username}", (k = (v = (m = i.store).getUseUserStore) == null ? void 0 : v.call(m).userInfo) == null ? void 0 : k.username);
6378
+ l = l.replace("{USER.username}", (T = (v = (m = i.store).getUseUserStore) == null ? void 0 : v.call(m).userInfo) == null ? void 0 : T.username);
6379
6379
  break;
6380
6380
  }
6381
6381
  }
@@ -6383,7 +6383,7 @@ class KgVarUtil {
6383
6383
  if (!u)
6384
6384
  return l;
6385
6385
  switch ((() => {
6386
- const p = u.ctrl_typ, _ = u.prf_ctrl_typ, y = u.crt_ctrl_typ, b = u.upt_ctrl_typ, C = u.cpy_ctrl_typ, T = u.del_ctrl_typ;
6386
+ const p = u.ctrl_typ, _ = u.prf_ctrl_typ, y = u.crt_ctrl_typ, b = u.upt_ctrl_typ, C = u.cpy_ctrl_typ, k = u.del_ctrl_typ;
6387
6387
  switch (o) {
6388
6388
  case "R":
6389
6389
  return _ || p;
@@ -6394,7 +6394,7 @@ class KgVarUtil {
6394
6394
  case "CP":
6395
6395
  return C || p;
6396
6396
  case "D":
6397
- return T || p;
6397
+ return k || p;
6398
6398
  }
6399
6399
  return p;
6400
6400
  })()) {
@@ -6637,22 +6637,22 @@ function createSetupStore(e, t, r = {}, a, n) {
6637
6637
  const l = {
6638
6638
  deep: !0
6639
6639
  };
6640
- process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (I) => {
6641
- c ? v = I : c == !1 && !E._hotUpdating && (Array.isArray(v) ? v.push(I) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6640
+ process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (M) => {
6641
+ c ? v = M : c == !1 && !E._hotUpdating && (Array.isArray(v) ? v.push(M) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6642
6642
  });
6643
6643
  let c, u, d = markRaw([]), m = markRaw([]), v;
6644
- const k = a.state.value[e];
6645
- !i && !k && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
6644
+ const T = a.state.value[e];
6645
+ !i && !T && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
6646
6646
  const p = ref({});
6647
- function _(I) {
6647
+ function _(M) {
6648
6648
  let A;
6649
- c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof I == "function" ? (I(a.state.value[e]), A = {
6649
+ c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof M == "function" ? (M(a.state.value[e]), A = {
6650
6650
  type: MutationType.patchFunction,
6651
6651
  storeId: e,
6652
6652
  events: v
6653
- }) : (mergeReactiveObjects(a.state.value[e], I), A = {
6653
+ }) : (mergeReactiveObjects(a.state.value[e], M), A = {
6654
6654
  type: MutationType.patchObject,
6655
- payload: I,
6655
+ payload: M,
6656
6656
  storeId: e,
6657
6657
  events: v
6658
6658
  }), nextTick().then(() => {
@@ -6665,7 +6665,7 @@ function createSetupStore(e, t, r = {}, a, n) {
6665
6665
  function b() {
6666
6666
  o.stop(), d = [], m = [], a._s.delete(e);
6667
6667
  }
6668
- function C(I, A) {
6668
+ function C(M, A) {
6669
6669
  return function() {
6670
6670
  setActivePinia(a);
6671
6671
  const w = Array.from(arguments), F = [], $ = [];
@@ -6677,7 +6677,7 @@ function createSetupStore(e, t, r = {}, a, n) {
6677
6677
  }
6678
6678
  triggerSubscriptions(m, {
6679
6679
  args: w,
6680
- name: I,
6680
+ name: M,
6681
6681
  store: E,
6682
6682
  after: P,
6683
6683
  onError: V
@@ -6691,20 +6691,20 @@ function createSetupStore(e, t, r = {}, a, n) {
6691
6691
  return D instanceof Promise ? D.then((O) => (triggerSubscriptions(F, O), O)).catch((O) => (triggerSubscriptions($, O), Promise.reject(O))) : (triggerSubscriptions(F, D), D);
6692
6692
  };
6693
6693
  }
6694
- const T = /* @__PURE__ */ markRaw({
6694
+ const k = /* @__PURE__ */ markRaw({
6695
6695
  actions: {},
6696
6696
  getters: {},
6697
6697
  state: [],
6698
6698
  hotState: p
6699
- }), M = {
6699
+ }), I = {
6700
6700
  _p: a,
6701
6701
  $id: e,
6702
6702
  $onAction: addSubscription.bind(null, m),
6703
6703
  $patch: _,
6704
6704
  $reset: y,
6705
- $subscribe(I, A = {}) {
6706
- const w = addSubscription(d, I, A.detached, () => F()), F = o.run(() => watch(() => a.state.value[e], ($) => {
6707
- (A.flush === "sync" ? u : c) && I({
6705
+ $subscribe(M, A = {}) {
6706
+ const w = addSubscription(d, M, A.detached, () => F()), F = o.run(() => watch(() => a.state.value[e], ($) => {
6707
+ (A.flush === "sync" ? u : c) && M({
6708
6708
  storeId: e,
6709
6709
  type: MutationType.direct,
6710
6710
  events: v
@@ -6716,29 +6716,29 @@ function createSetupStore(e, t, r = {}, a, n) {
6716
6716
  }, E = reactive(assign$1(
6717
6717
  process.env.NODE_ENV !== "production" && IS_CLIENT ? {
6718
6718
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
6719
- _hmrPayload: T
6719
+ _hmrPayload: k
6720
6720
  } : {},
6721
- M
6721
+ I
6722
6722
  ));
6723
6723
  a._s.set(e, E);
6724
6724
  const N = a._e.run(() => (o = effectScope(), o.run(() => t())));
6725
- for (const I in N) {
6726
- const A = N[I];
6725
+ for (const M in N) {
6726
+ const A = N[M];
6727
6727
  if (isRef(A) && !isComputed(A) || isReactive(A))
6728
- process.env.NODE_ENV !== "production" && n ? set(p.value, I, toRef(N, I)) : i || (k && shouldHydrate(A) && (isRef(A) ? A.value = k[I] : mergeReactiveObjects(A, k[I])), a.state.value[e][I] = A), process.env.NODE_ENV !== "production" && T.state.push(I);
6728
+ process.env.NODE_ENV !== "production" && n ? set(p.value, M, toRef(N, M)) : i || (T && shouldHydrate(A) && (isRef(A) ? A.value = T[M] : mergeReactiveObjects(A, T[M])), a.state.value[e][M] = A), process.env.NODE_ENV !== "production" && k.state.push(M);
6729
6729
  else if (typeof A == "function") {
6730
- const w = process.env.NODE_ENV !== "production" && n ? A : C(I, A);
6731
- N[I] = w, process.env.NODE_ENV !== "production" && (T.actions[I] = A), s.actions[I] = A;
6730
+ const w = process.env.NODE_ENV !== "production" && n ? A : C(M, A);
6731
+ N[M] = w, process.env.NODE_ENV !== "production" && (k.actions[M] = A), s.actions[M] = A;
6732
6732
  } else
6733
- process.env.NODE_ENV !== "production" && isComputed(A) && (T.getters[I] = i ? r.getters[I] : A, IS_CLIENT && (N._getters || (N._getters = markRaw([]))).push(I));
6733
+ process.env.NODE_ENV !== "production" && isComputed(A) && (k.getters[M] = i ? r.getters[M] : A, IS_CLIENT && (N._getters || (N._getters = markRaw([]))).push(M));
6734
6734
  }
6735
6735
  if (assign$1(E, N), assign$1(toRaw(E), N), Object.defineProperty(E, "$state", {
6736
6736
  get: () => process.env.NODE_ENV !== "production" && n ? p.value : a.state.value[e],
6737
- set: (I) => {
6737
+ set: (M) => {
6738
6738
  if (process.env.NODE_ENV !== "production" && n)
6739
6739
  throw new Error("cannot set hotState");
6740
6740
  _((A) => {
6741
- assign$1(A, I);
6741
+ assign$1(A, M);
6742
6742
  });
6743
6743
  }
6744
6744
  }), process.env.NODE_ENV !== "production") {
@@ -6768,7 +6768,7 @@ function createSetupStore(e, t, r = {}, a, n) {
6768
6768
  w in A._hmrPayload.actions || del(E, w);
6769
6769
  }), E._hmrPayload = A._hmrPayload, E._getters = A._getters, E._hotUpdating = !1;
6770
6770
  });
6771
- const I = {
6771
+ const M = {
6772
6772
  writable: !0,
6773
6773
  configurable: !0,
6774
6774
  enumerable: !1
@@ -6776,13 +6776,13 @@ function createSetupStore(e, t, r = {}, a, n) {
6776
6776
  IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((A) => {
6777
6777
  Object.defineProperty(E, A, {
6778
6778
  value: E[A],
6779
- ...I
6779
+ ...M
6780
6780
  });
6781
6781
  });
6782
6782
  }
6783
- return a._p.forEach((I) => {
6783
+ return a._p.forEach((M) => {
6784
6784
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
6785
- const A = o.run(() => I({
6785
+ const A = o.run(() => M({
6786
6786
  store: E,
6787
6787
  app: a._a,
6788
6788
  pinia: a,
@@ -6790,7 +6790,7 @@ function createSetupStore(e, t, r = {}, a, n) {
6790
6790
  }));
6791
6791
  Object.keys(A || {}).forEach((w) => E._customProperties.add(w)), assign$1(E, A);
6792
6792
  } else
6793
- assign$1(E, o.run(() => I({
6793
+ assign$1(E, o.run(() => M({
6794
6794
  store: E,
6795
6795
  app: a._a,
6796
6796
  pinia: a,
@@ -6798,7 +6798,7 @@ function createSetupStore(e, t, r = {}, a, n) {
6798
6798
  })));
6799
6799
  }), process.env.NODE_ENV !== "production" && E.$state && typeof E.$state == "object" && typeof E.$state.constructor == "function" && !E.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
6800
6800
  state: () => new MyClass()
6801
- Found in store "${E.$id}".`), k && i && r.hydrate && r.hydrate(E.$state, k), c = !0, u = !0, E;
6801
+ Found in store "${E.$id}".`), T && i && r.hydrate && r.hydrate(E.$state, T), c = !0, u = !0, E;
6802
6802
  }
6803
6803
  function defineStore(e, t, r) {
6804
6804
  let a, n;
@@ -7408,15 +7408,15 @@ const KgModal_Close = "", getProps$A = () => ({
7408
7408
  function v(b) {
7409
7409
  m(b);
7410
7410
  }
7411
- function k(b) {
7411
+ function T(b) {
7412
7412
  m(b), d();
7413
7413
  }
7414
7414
  function p(b) {
7415
- b.stopPropagation(), b.preventDefault(), d(), !(b instanceof MouseEvent && b.which !== 1) && (o = b.pageX, i = b.pageY, a = e.kgWidth, n = e.kgHeight, s = _(document.documentElement, "mousemove", v), l = _(document.documentElement, "mouseup", k));
7415
+ b.stopPropagation(), b.preventDefault(), d(), !(b instanceof MouseEvent && b.which !== 1) && (o = b.pageX, i = b.pageY, a = e.kgWidth, n = e.kgHeight, s = _(document.documentElement, "mousemove", v), l = _(document.documentElement, "mouseup", T));
7416
7416
  }
7417
- function _(b, C, T) {
7418
- return b.addEventListener(C, T), {
7419
- remove: () => b.removeEventListener(C, T)
7417
+ function _(b, C, k) {
7418
+ return b.addEventListener(C, k), {
7419
+ remove: () => b.removeEventListener(C, k)
7420
7420
  };
7421
7421
  }
7422
7422
  function y(b) {
@@ -7586,13 +7586,13 @@ function createStore(e, t, r) {
7586
7586
  var u = this[c];
7587
7587
  this[c] = function() {
7588
7588
  var m = slice(arguments, 0), v = this;
7589
- function k() {
7589
+ function T() {
7590
7590
  if (!!u)
7591
7591
  return each$6(arguments, function(_, y) {
7592
7592
  m[y] = _;
7593
7593
  }), u.apply(v, m);
7594
7594
  }
7595
- var p = [k].concat(m);
7595
+ var p = [T].concat(m);
7596
7596
  return l.apply(v, p);
7597
7597
  };
7598
7598
  },
@@ -8609,19 +8609,19 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
8609
8609
  varPossibilities: d,
8610
8610
  varButtons: m,
8611
8611
  varButtonConfig: v,
8612
- varSubmitConfig: k,
8612
+ varSubmitConfig: T,
8613
8613
  varSubmitFields: p,
8614
8614
  varProfile: _,
8615
8615
  varProfileConfig: y,
8616
8616
  varGrid: b,
8617
8617
  varGridConfig: C
8618
8618
  } = await GetAll({ params: { frm_id: e } });
8619
- this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, d != null ? d : []), this.varVariableConfigMap.set(e, c != null ? c : []), this.varVariableInputMap.set(e, u != null ? u : []), this.varButtonMap.set(e, transformVarButtons(m)), this.varButtonConfigMap.set(e, v != null ? v : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(k)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(p)), this.varProfileConfigMap.set(e, transformVarProfileConfig(y != null ? y : null)), this.varProfileMap.set(e, {
8619
+ this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, d != null ? d : []), this.varVariableConfigMap.set(e, c != null ? c : []), this.varVariableInputMap.set(e, u != null ? u : []), this.varButtonMap.set(e, transformVarButtons(m)), this.varButtonConfigMap.set(e, v != null ? v : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(T)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(p)), this.varProfileConfigMap.set(e, transformVarProfileConfig(y != null ? y : null)), this.varProfileMap.set(e, {
8620
8620
  varProfile: _ != null ? _ : null,
8621
- currentVarProfileMasterID: (a = (r = (t = _ == null ? void 0 : _.varProfileMasters) == null ? void 0 : t.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? a : null
8621
+ currentVarProfileMasterID: (a = (r = (t = _ == null ? void 0 : _.varProfileMasters) == null ? void 0 : t.find((k) => k.def_flg === 1 || k.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? a : null
8622
8622
  }), this.varGridConfigMap.set(e, transformVarGridConfig(C != null ? C : null)), this.varGridMap.set(e, {
8623
8623
  varGrid: transformVarGridDTO(b),
8624
- currentVarGridMasterID: (i = (o = (n = b == null ? void 0 : b.varGridMasters) == null ? void 0 : n.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? i : null
8624
+ currentVarGridMasterID: (i = (o = (n = b == null ? void 0 : b.varGridMasters) == null ? void 0 : n.find((k) => k.def_flg === 1 || k.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? i : null
8625
8625
  }), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
8626
8626
  } catch (s) {
8627
8627
  throw s;
@@ -8784,7 +8784,7 @@ function useKgVar(e, t, r = 0) {
8784
8784
  const d = (Y) => computed(() => {
8785
8785
  var te, ae, oe;
8786
8786
  return (oe = (ae = (te = u.getVarCatalog(c, Y)) == null ? void 0 : te.var_text) != null ? ae : Y) != null ? oe : "";
8787
- }), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), k = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), y = computed(() => u.isUpdating(c)), b = computed(() => u.isUpdatingRequesting(c)), C = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)), M = computed(() => u.isDeleting(c)), E = computed(() => u.isDeletingRequesting(c)), N = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), A = computed(() => u.getVarButtonSearch(c)), w = computed(() => u.getVarButtonCreate(c)), F = computed(() => u.getVarButtonUpdate(c)), $ = computed(() => u.getVarButtonCopy(c)), P = computed(() => u.getVarButtonDelete(c)), V = computed(() => u.getVarProfileMasters(c)), D = computed(() => u.getCurrentVarProfileMaster(c)), O = computed(() => u.getCurrentVarProfileMasterID(c)), R = computed(() => {
8787
+ }), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), T = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), y = computed(() => u.isUpdating(c)), b = computed(() => u.isUpdatingRequesting(c)), C = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)), I = computed(() => u.isDeleting(c)), E = computed(() => u.isDeletingRequesting(c)), N = computed(() => u.isOtherRequesting(c)), M = computed(() => u.getVarButtons(c)), A = computed(() => u.getVarButtonSearch(c)), w = computed(() => u.getVarButtonCreate(c)), F = computed(() => u.getVarButtonUpdate(c)), $ = computed(() => u.getVarButtonCopy(c)), P = computed(() => u.getVarButtonDelete(c)), V = computed(() => u.getVarProfileMasters(c)), D = computed(() => u.getCurrentVarProfileMaster(c)), O = computed(() => u.getCurrentVarProfileMasterID(c)), R = computed(() => {
8788
8788
  var Y, te;
8789
8789
  return (te = (Y = D.value) == null ? void 0 : Y.varProfileDetails) != null ? te : null;
8790
8790
  }), x = computed(() => u.getVarGridConfig(c)), G = computed(() => u.getVarGridMasters(c)), H = computed(() => u.getCurrentVarGridMaster(c)), Q = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
@@ -8793,17 +8793,17 @@ function useKgVar(e, t, r = 0) {
8793
8793
  store: u,
8794
8794
  isRetrieving: m,
8795
8795
  isRetrievingVarProfileMaster: v,
8796
- isRetrievingVarGridMaster: k,
8796
+ isRetrievingVarGridMaster: T,
8797
8797
  isCreating: p,
8798
8798
  isCreatingRequesting: _,
8799
8799
  isUpdating: y,
8800
8800
  isUpdatingRequesting: b,
8801
8801
  isCopying: C,
8802
- isCopyingRequesting: T,
8803
- isDeleting: M,
8802
+ isCopyingRequesting: k,
8803
+ isDeleting: I,
8804
8804
  isDeletingRequesting: E,
8805
8805
  isOtherRequesting: N,
8806
- varButtons: I,
8806
+ varButtons: M,
8807
8807
  varButtonSearch: A,
8808
8808
  varButtonCreate: w,
8809
8809
  varButtonUpdate: F,
@@ -8841,14 +8841,14 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
8841
8841
  }) {
8842
8842
  provide(DI_KG_VAR__KG_PROPS, computed(() => e.kgProps)), provide(DI_KG_VAR__KG_SLOTS, e.kgSlots);
8843
8843
  const r = useKgVar(), a = computed(() => r.store.getVarSubmitConfig(r.formID)), n = computed(() => r.store.getVarProfileConfig(r.formID)), o = computed(() => r.store.getVarButtonConfig(r.formID)), i = computed(() => {
8844
- var m, v, k, p;
8844
+ var m, v, T, p;
8845
8845
  switch (!0) {
8846
8846
  case r.isCreating.value:
8847
8847
  return ((m = a.value) == null ? void 0 : m.crt_flg) !== 0;
8848
8848
  case r.isUpdating.value:
8849
8849
  return ((v = a.value) == null ? void 0 : v.upt_flg) !== 0;
8850
8850
  case r.isCopying.value:
8851
- return ((k = a.value) == null ? void 0 : k.cpy_flg) !== 0;
8851
+ return ((T = a.value) == null ? void 0 : T.cpy_flg) !== 0;
8852
8852
  case r.isDeleting.value:
8853
8853
  return ((p = a.value) == null ? void 0 : p.del_flg) !== 0;
8854
8854
  }
@@ -8888,61 +8888,63 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
8888
8888
  slots: t,
8889
8889
  emit: r
8890
8890
  }) {
8891
- const a = inject(KG_DI_HOST_FORM_ID, ""), n = useKgVar(a), o = useKgForm(n.formID), i = inject(KG_DI_VAR_NAME, ""), s = inject(KG_DI_LOOKUP_ID, "");
8891
+ const a = inject(KG_DI_HOST_FORM_ID, ""), n = useKgVar(a), o = useKgForm(n.formID), i = inject(KG_DI_VAR_NAME, ""), s = inject(KG_DI_LOOKUP_ID, ""), l = inject(DI_FORM_MODEL, computed(() => ({})));
8892
8892
  useKgVar(s, !0, n.store.getFormLevel(n.formID) + 1);
8893
- const l = useKgTable(s), c = computed(() => n.store.getVarLookup(n.formID, i)), u = computed(() => {
8894
- var k;
8895
- return ((k = c == null ? void 0 : c.value) == null ? void 0 : k.mult_flg) === 1;
8896
- }), d = computed(() => {
8897
- var k, p;
8898
- return (p = (k = c == null ? void 0 : c.value) == null ? void 0 : k.ret_fld) != null ? p : "";
8893
+ const c = useKgTable(s), u = computed(() => n.store.getVarLookup(n.formID, i)), d = computed(() => {
8894
+ var p;
8895
+ return ((p = u == null ? void 0 : u.value) == null ? void 0 : p.mult_flg) === 1;
8896
+ }), m = computed(() => {
8897
+ var p, _;
8898
+ return (_ = (p = u == null ? void 0 : u.value) == null ? void 0 : p.ret_fld) != null ? _ : "";
8899
8899
  });
8900
- l.onRowDoubleClick(async () => (await v(), !1));
8901
- function m() {
8900
+ c.onRowDoubleClick(async () => (await T(), !1));
8901
+ function v() {
8902
8902
  r("update:visible", !1);
8903
8903
  }
8904
- async function v() {
8905
- var k, p, _, y, b, C, T;
8906
- if (u.value) {
8907
- const M = (p = (k = l.selectedRows) == null ? void 0 : k.value) != null ? p : [], E = (_ = M.map((I) => I[d.value])) != null ? _ : [];
8904
+ async function T() {
8905
+ var p, _, y, b, C, k, I;
8906
+ if (d.value) {
8907
+ const E = (_ = (p = c.selectedRows) == null ? void 0 : p.value) != null ? _ : [], N = (y = E.map((A) => A[m.value])) != null ? y : [];
8908
8908
  await o.store.emit(o.formID, "lookupBeforeOk", {
8909
8909
  var_nam: i,
8910
8910
  isMultiple: !0,
8911
- values: E,
8912
- rows: M
8911
+ values: N,
8912
+ rows: E
8913
8913
  }) || (o.store.emit(o.formID, "lookupOk", {
8914
8914
  var_nam: i,
8915
+ model: l,
8915
8916
  isMultiple: !0,
8916
- values: E,
8917
- rows: M
8917
+ values: N,
8918
+ rows: E
8918
8919
  }), r("update:visible", !1));
8919
8920
  } else {
8920
- const M = (C = (b = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : b[0]) != null ? C : null, E = (T = M == null ? void 0 : M[d.value]) != null ? T : "";
8921
+ const E = (k = (C = (b = c.selectedRows) == null ? void 0 : b.value) == null ? void 0 : C[0]) != null ? k : null, N = (I = E == null ? void 0 : E[m.value]) != null ? I : "";
8921
8922
  await o.store.emit(o.formID, "lookupBeforeOk", {
8922
8923
  var_nam: i,
8923
8924
  isMultiple: !1,
8924
- value: E,
8925
- row: M
8925
+ value: N,
8926
+ row: E
8926
8927
  }) || (o.store.emit(o.formID, "lookupOk", {
8927
8928
  var_nam: i,
8929
+ model: l,
8928
8930
  isMultiple: !1,
8929
- value: E,
8930
- row: M
8931
+ value: N,
8932
+ row: E
8931
8933
  }), r("update:visible", !1));
8932
8934
  }
8933
8935
  }
8934
8936
  return () => {
8935
- var k, p;
8937
+ var p, _;
8936
8938
  return createVNode(KgModal, {
8937
8939
  visible: e.visible,
8938
8940
  title: n.t(i).value,
8939
8941
  destroyOnClose: !0,
8940
8942
  okButtonProps: {
8941
- disabled: ((p = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? p : 0) === 0
8943
+ disabled: ((_ = (p = c.selectedRows.value) == null ? void 0 : p.length) != null ? _ : 0) === 0
8942
8944
  },
8943
8945
  wrapClassName: "kg-form-item-addon-lookup-modal",
8944
- onCancel: m,
8945
- onOk: v
8946
+ onCancel: v,
8947
+ onOk: T
8946
8948
  }, {
8947
8949
  default: () => [createVNode(KgVar, null, null)]
8948
8950
  });
@@ -9032,7 +9034,7 @@ function _useRules(e) {
9032
9034
  const t = useKg(), r = useKgVar(), a = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), n = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), o = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName));
9033
9035
  return {
9034
9036
  rules: computed(() => {
9035
- var l, c, u, d, m, v, k, p;
9037
+ var l, c, u, d, m, v, T, p;
9036
9038
  let s = [];
9037
9039
  switch (e.kgContext) {
9038
9040
  case KG_FORM_CONTEXT.SEARCH:
@@ -9072,7 +9074,7 @@ function _useRules(e) {
9072
9074
  }
9073
9075
  switch ((v = n.value) == null ? void 0 : v.data_type) {
9074
9076
  case KG_VAR_INPUT__DATA_TYPE.NUMBER:
9075
- const _ = (k = n.value) == null ? void 0 : k.min;
9077
+ const _ = (T = n.value) == null ? void 0 : T.min;
9076
9078
  isNil(_) || (((p = n.value) == null ? void 0 : p.min_include_flg) === 1 ? s.push({
9077
9079
  validator: (y, b) => Number(b) < _ ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [_])) : Promise.resolve()
9078
9080
  }) : s.push({
@@ -9086,8 +9088,8 @@ function _useRules(e) {
9086
9088
  }
9087
9089
  function useKgFormItem(e) {
9088
9090
  const t = inject(KG_DI_VAR_NAME, e == null ? void 0 : e.kgVarName), r = inject(DI_KG_CONTEXT, e == null ? void 0 : e.kgContext), a = useKgVar(), n = computed(() => a.store.getVarVariableConfig(a.formID, t)), o = computed(() => {
9089
- var v, k, p, _, y, b;
9090
- const s = (v = n.value) == null ? void 0 : v.ctrl_typ, l = (k = n.value) == null ? void 0 : k.prf_ctrl_typ, c = (p = n.value) == null ? void 0 : p.crt_ctrl_typ, u = (_ = n.value) == null ? void 0 : _.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;
9091
+ var v, T, p, _, y, b;
9092
+ const s = (v = n.value) == null ? void 0 : v.ctrl_typ, l = (T = n.value) == null ? void 0 : T.prf_ctrl_typ, c = (p = n.value) == null ? void 0 : p.crt_ctrl_typ, u = (_ = n.value) == null ? void 0 : _.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;
9091
9093
  switch (r) {
9092
9094
  case KG_FORM_CONTEXT.SEARCH:
9093
9095
  return l || s;
@@ -9105,9 +9107,9 @@ function useKgFormItem(e) {
9105
9107
  }
9106
9108
  return s;
9107
9109
  }), i = computed(() => {
9108
- var k, p, _, y, b, C;
9110
+ var T, p, _, y, b, C;
9109
9111
  let s;
9110
- const l = (k = n.value) == null ? void 0 : k.ctrl_prop, c = (p = n.value) == null ? void 0 : p.prf_ctrl_prop, u = (_ = n.value) == null ? void 0 : _.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;
9112
+ const l = (T = n.value) == null ? void 0 : T.ctrl_prop, c = (p = n.value) == null ? void 0 : p.prf_ctrl_prop, u = (_ = n.value) == null ? void 0 : _.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;
9111
9113
  switch (r) {
9112
9114
  case KG_FORM_CONTEXT.SEARCH:
9113
9115
  s = c || l;
@@ -9147,35 +9149,35 @@ function useKgFormItemSelect() {
9147
9149
  let d = KgVarUtil.parseCommandParameter((m = a.value) == null ? void 0 : m.cmd_prm);
9148
9150
  return d = mapValues(d, (v) => {
9149
9151
  var p, _;
9150
- let k = v;
9152
+ let T = v;
9151
9153
  if (typeof v == "string" && v.startsWith("{") && v.endsWith("}")) {
9152
9154
  let y = v.slice(1, -1), b = "";
9153
9155
  if (y.includes(".")) {
9154
9156
  const C = y.split(".");
9155
9157
  y = C[0], b = C[1];
9156
9158
  }
9157
- t.value && y in t.value && (b ? k = (_ = (p = t.value[`${y}_obj`]) == null ? void 0 : p[b]) != null ? _ : void 0 : k = t.value[y], k || (k = "__KG__FORM_ITEM_SELECT__PID"));
9159
+ t.value && y in t.value && (b ? T = (_ = (p = t.value[`${y}_obj`]) == null ? void 0 : p[b]) != null ? _ : void 0 : T = t.value[y], T || (T = "__KG__FORM_ITEM_SELECT__PID"));
9158
9160
  }
9159
- return k;
9161
+ return T;
9160
9162
  }), d;
9161
9163
  });
9162
9164
  async function c() {
9163
- var y, b, C, T, M, E, N, I;
9165
+ var y, b, C, k, I, E, N, M;
9164
9166
  let d = [];
9165
- const m = (y = a.value) == null ? void 0 : y.cmd, v = (C = (b = a.value) == null ? void 0 : b.cmd_method) != null ? C : "GET", k = (M = (T = a.value) == null ? void 0 : T.val_clm) != null ? M : "", p = (N = (E = a.value) == null ? void 0 : E.lbl_clm) != null ? N : "";
9166
- if (!m || !k || !p) {
9167
+ const m = (y = a.value) == null ? void 0 : y.cmd, v = (C = (b = a.value) == null ? void 0 : b.cmd_method) != null ? C : "GET", T = (I = (k = a.value) == null ? void 0 : k.val_clm) != null ? I : "", p = (N = (E = a.value) == null ? void 0 : E.lbl_clm) != null ? N : "";
9168
+ if (!m || !T || !p) {
9167
9169
  KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
9168
9170
  frm_id: r.formID,
9169
9171
  var_nam: e,
9170
9172
  cmd: m,
9171
- val_clm: k,
9173
+ val_clm: T,
9172
9174
  lbl_clm: p
9173
9175
  });
9174
9176
  return;
9175
9177
  }
9176
9178
  let _ = null;
9177
9179
  try {
9178
- _ = await ((I = httpClient()) == null ? void 0 : I.request({
9180
+ _ = await ((M = httpClient()) == null ? void 0 : M.request({
9179
9181
  url: m,
9180
9182
  method: v,
9181
9183
  params: l.value
@@ -9195,11 +9197,11 @@ function useKgFormItemSelect() {
9195
9197
  }
9196
9198
  if (d.length > 0) {
9197
9199
  const A = d[0];
9198
- (!(k in A) || !(p in A)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
9200
+ (!(T in A) || !(p in A)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
9199
9201
  frm_id: r.formID,
9200
9202
  var_nam: e,
9201
9203
  cmd: m,
9202
- val_clm: k,
9204
+ val_clm: T,
9203
9205
  lbl_clm: p,
9204
9206
  \u6240\u6709\u5217: Object.keys(A)
9205
9207
  });
@@ -9207,10 +9209,10 @@ function useKgFormItemSelect() {
9207
9209
  i.value = d;
9208
9210
  }
9209
9211
  function u(d) {
9210
- var k, p, _, y, b;
9212
+ var T, p, _, y, b;
9211
9213
  if (!d)
9212
9214
  return [];
9213
- const m = (p = (k = a.value) == null ? void 0 : k.val_clm) != null ? p : "", v = (y = (_ = a.value) == null ? void 0 : _.val_data_type) != null ? y : "string";
9215
+ const m = (p = (T = a.value) == null ? void 0 : T.val_clm) != null ? p : "", v = (y = (_ = a.value) == null ? void 0 : _.val_data_type) != null ? y : "string";
9214
9216
  switch (v) {
9215
9217
  case KG_POSSIBILITY_DATA_TYPE.STRING:
9216
9218
  d.forEach((C) => {
@@ -9219,22 +9221,22 @@ function useKgFormItemSelect() {
9219
9221
  break;
9220
9222
  case KG_POSSIBILITY_DATA_TYPE.NUMBER:
9221
9223
  d.forEach((C) => {
9222
- let T = Number(C[m]);
9223
- Number.isNaN(T) && (T = C[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${C[m]} \u8F6C\u6362\u4E3A ${v} \u7C7B\u578B`, {
9224
+ let k = Number(C[m]);
9225
+ Number.isNaN(k) && (k = C[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${C[m]} \u8F6C\u6362\u4E3A ${v} \u7C7B\u578B`, {
9224
9226
  frm_id: r.formID,
9225
9227
  var_nam: e,
9226
9228
  VarPossibility: a.value
9227
- })), C[m] = T;
9229
+ })), C[m] = k;
9228
9230
  });
9229
9231
  break;
9230
9232
  case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
9231
9233
  d.forEach((C) => {
9232
- let T;
9233
- String(C[m]).toLowerCase() === "true" ? T = !0 : String(C[m]).toLowerCase() === "false" ? T = !1 : (T = C[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${C[m]} \u8F6C\u6362\u4E3A ${v} \u7C7B\u578B`, {
9234
+ let k;
9235
+ String(C[m]).toLowerCase() === "true" ? k = !0 : String(C[m]).toLowerCase() === "false" ? k = !1 : (k = C[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${C[m]} \u8F6C\u6362\u4E3A ${v} \u7C7B\u578B`, {
9234
9236
  frm_id: r.formID,
9235
9237
  var_nam: e,
9236
9238
  VarPossibility: a.value
9237
- })), C[m] = T;
9239
+ })), C[m] = k;
9238
9240
  });
9239
9241
  break;
9240
9242
  }
@@ -9243,9 +9245,9 @@ function useKgFormItemSelect() {
9243
9245
  {
9244
9246
  const C = o;
9245
9247
  if ((b = C.value) != null && b.excludeValues)
9246
- return d.filter((T) => {
9247
- var M;
9248
- return !((M = C.value.excludeValues) != null && M.includes(T[m]));
9248
+ return d.filter((k) => {
9249
+ var I;
9250
+ return !((I = C.value.excludeValues) != null && I.includes(k[m]));
9249
9251
  });
9250
9252
  }
9251
9253
  break;
@@ -9286,7 +9288,7 @@ const KgFormItemCheckboxGroup = defineComponent({
9286
9288
  }), watch([() => e.value, c], ([_, y]) => {
9287
9289
  const b = get(_, "length", 0);
9288
9290
  if (b > 0 && y.length > 0) {
9289
- const C = intersection$1(_, y == null ? void 0 : y.map((T) => T[l.value]));
9291
+ const C = intersection$1(_, y == null ? void 0 : y.map((k) => k[l.value]));
9290
9292
  if (C.length < b) {
9291
9293
  r("update:value", C);
9292
9294
  return;
@@ -9310,9 +9312,9 @@ const KgFormItemCheckboxGroup = defineComponent({
9310
9312
  var _, y;
9311
9313
  !((_ = i.value) != null && _.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((y = c.value) == null ? void 0 : y.map((b) => b[l.value]), e.value)));
9312
9314
  }
9313
- function k(_) {
9315
+ function T(_) {
9314
9316
  var y, b, C;
9315
- _.target.checked ? p((b = (y = c.value) == null ? void 0 : y.map((T) => T[l.value])) != null ? b : []) : p([]), m.value = !1, (C = n.value) == null || C.validate(e.kgVarName);
9317
+ _.target.checked ? p((b = (y = c.value) == null ? void 0 : y.map((k) => k[l.value])) != null ? b : []) : p([]), m.value = !1, (C = n.value) == null || C.validate(e.kgVarName);
9316
9318
  }
9317
9319
  function p(_) {
9318
9320
  r("update:value", _), r("kgChange", _);
@@ -9326,7 +9328,7 @@ const KgFormItemCheckboxGroup = defineComponent({
9326
9328
  checked: d.value,
9327
9329
  "onUpdate:checked": (b) => d.value = b,
9328
9330
  indeterminate: m.value,
9329
- onChange: k
9331
+ onChange: T
9330
9332
  }, _isSlot$a(_ = a.t("kg.selectAll")) ? _ : {
9331
9333
  default: () => [_]
9332
9334
  })]
@@ -9337,17 +9339,17 @@ const KgFormItemCheckboxGroup = defineComponent({
9337
9339
  default: () => [createVNode(Row, {
9338
9340
  gutter: 12
9339
9341
  }, _isSlot$a(y = c.value.map((b) => {
9340
- var C, T;
9342
+ var C, k;
9341
9343
  return createVNode(Col, {
9342
- span: (T = (C = o.value) == null ? void 0 : C.span) != null ? T : 24
9344
+ span: (k = (C = o.value) == null ? void 0 : C.span) != null ? k : 24
9343
9345
  }, {
9344
9346
  default: () => [createVNode(Checkbox, {
9345
9347
  value: b[l.value],
9346
9348
  "kg-value": b[l.value]
9347
9349
  }, {
9348
9350
  default: () => {
9349
- var M, E;
9350
- return [b[(E = (M = i.value) == null ? void 0 : M.lbl_clm) != null ? E : ""]];
9351
+ var I, E;
9352
+ return [b[(E = (I = i.value) == null ? void 0 : I.lbl_clm) != null ? E : ""]];
9351
9353
  }
9352
9354
  })]
9353
9355
  });
@@ -9505,9 +9507,9 @@ const KgFormItemRadioGroup = defineComponent({
9505
9507
  default: () => [createVNode(Row, {
9506
9508
  gutter: 12
9507
9509
  }, _isSlot$9(d = s.value.map((m) => {
9508
- var v, k;
9510
+ var v, T;
9509
9511
  return createVNode(Col, {
9510
- span: (k = (v = a.value) == null ? void 0 : v.span) != null ? k : 24
9512
+ span: (T = (v = a.value) == null ? void 0 : v.span) != null ? T : 24
9511
9513
  }, {
9512
9514
  default: () => [createVNode(Radio, {
9513
9515
  value: m[i.value],
@@ -9548,8 +9550,8 @@ const KgFormItemRadioGroup = defineComponent({
9548
9550
  !((m = n.value) != null && m.id) || (await l(), r("kgSelectDatasChange", s.value), s.value.find((v) => v[i.value] === e.value) || r("update:value", void 0));
9549
9551
  }
9550
9552
  function u(m) {
9551
- var k;
9552
- const v = (k = toRaw(s.value.find((p) => p[i.value] === m))) != null ? k : null;
9553
+ var T;
9554
+ const v = (T = toRaw(s.value.find((p) => p[i.value] === m))) != null ? T : null;
9553
9555
  r("kgSelectChange", v), a.value[`${e.kgVarName}_obj`] = v;
9554
9556
  }
9555
9557
  function d(m) {
@@ -9572,13 +9574,13 @@ const KgFormItemRadioGroup = defineComponent({
9572
9574
  "kg-val-clm": i.value,
9573
9575
  "kg-lbl-clm": (v = n.value) == null ? void 0 : v.lbl_clm
9574
9576
  }, {
9575
- default: () => s.value.map((k) => createVNode(Select.Option, {
9576
- "kg-value": k[i.value],
9577
- value: k[i.value]
9577
+ default: () => s.value.map((T) => createVNode(Select.Option, {
9578
+ "kg-value": T[i.value],
9579
+ value: T[i.value]
9578
9580
  }, {
9579
9581
  default: () => {
9580
9582
  var p, _;
9581
- return [k[(_ = (p = n.value) == null ? void 0 : p.lbl_clm) != null ? _ : ""]];
9583
+ return [T[(_ = (p = n.value) == null ? void 0 : p.lbl_clm) != null ? _ : ""]];
9582
9584
  }
9583
9585
  })),
9584
9586
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
@@ -9643,15 +9645,16 @@ const KgFormItemRadioGroup = defineComponent({
9643
9645
  useKg();
9644
9646
  const o = useKgVar();
9645
9647
  useKgForm(o.formID).onLookupOk(async ({
9646
- var_nam: I,
9647
- isMultiple: A,
9648
- value: w,
9649
- values: F
9648
+ var_nam: M,
9649
+ model: A,
9650
+ isMultiple: w,
9651
+ value: F,
9652
+ values: $
9650
9653
  }) => {
9651
- var $;
9652
- switch (I) {
9654
+ var P;
9655
+ switch (M) {
9653
9656
  case e.kgVarName:
9654
- a.value && (A ? a.value[e.kgVarName] = F : a.value[e.kgVarName] = w), ($ = n.value) == null || $.validate([e.kgVarName]);
9657
+ A.value && (w ? A.value[e.kgVarName] = $ : A.value[e.kgVarName] = F), (P = n.value) == null || P.validate([e.kgVarName]);
9655
9658
  break;
9656
9659
  }
9657
9660
  return !1;
@@ -9664,93 +9667,93 @@ const KgFormItemRadioGroup = defineComponent({
9664
9667
  var A, w, F, $, P;
9665
9668
  if (o.isRetrieving.value)
9666
9669
  return !0;
9667
- let I = !1;
9670
+ let M = !1;
9668
9671
  if (e.kgDisabled !== void 0)
9669
- I = e.kgDisabled;
9672
+ M = e.kgDisabled;
9670
9673
  else
9671
9674
  switch (e.kgContext) {
9672
9675
  case KG_FORM_CONTEXT.SEARCH:
9673
- I = ((A = c.value) == null ? void 0 : A.ena_flg) === 0;
9676
+ M = ((A = c.value) == null ? void 0 : A.ena_flg) === 0;
9674
9677
  break;
9675
9678
  case KG_FORM_CONTEXT.SUBMIT:
9676
9679
  switch (!0) {
9677
9680
  case o.isCreating.value:
9678
- I = ((w = u.value) == null ? void 0 : w.crt_ena_flg) === 0;
9681
+ M = ((w = u.value) == null ? void 0 : w.crt_ena_flg) === 0;
9679
9682
  break;
9680
9683
  case o.isUpdating.value:
9681
- I = ((F = u.value) == null ? void 0 : F.upt_ena_flg) === 0;
9684
+ M = ((F = u.value) == null ? void 0 : F.upt_ena_flg) === 0;
9682
9685
  break;
9683
9686
  case o.isCopying.value:
9684
- I = (($ = u.value) == null ? void 0 : $.cpy_ena_flg) === 0;
9687
+ M = (($ = u.value) == null ? void 0 : $.cpy_ena_flg) === 0;
9685
9688
  break;
9686
9689
  case o.isDeleting.value:
9687
- I = ((P = u.value) == null ? void 0 : P.del_ena_flg) === 0;
9690
+ M = ((P = u.value) == null ? void 0 : P.del_ena_flg) === 0;
9688
9691
  break;
9689
9692
  }
9690
9693
  break;
9691
9694
  }
9692
- return I;
9693
- }), k = computed(() => {
9695
+ return M;
9696
+ }), T = computed(() => {
9694
9697
  var A, w, F, $;
9695
- let I = " ";
9698
+ let M = " ";
9696
9699
  if (e.kgPlaceholder)
9697
- I = e.kgPlaceholder;
9700
+ M = e.kgPlaceholder;
9698
9701
  else
9699
9702
  switch (e.kgContext) {
9700
9703
  case KG_FORM_CONTEXT.SEARCH:
9701
- I = o.t((w = (A = c.value) == null ? void 0 : A.placeholder) != null ? w : " ").value;
9704
+ M = o.t((w = (A = c.value) == null ? void 0 : A.placeholder) != null ? w : " ").value;
9702
9705
  break;
9703
9706
  case KG_FORM_CONTEXT.SUBMIT:
9704
- I = o.t(($ = (F = u.value) == null ? void 0 : F.placeholder) != null ? $ : " ").value;
9707
+ M = o.t(($ = (F = u.value) == null ? void 0 : F.placeholder) != null ? $ : " ").value;
9705
9708
  break;
9706
9709
  }
9707
- return I;
9710
+ return M;
9708
9711
  }), p = computed(() => {
9709
9712
  var A, w, F, $, P, V, D, O, R, x;
9710
- let I = 6;
9713
+ let M = 6;
9711
9714
  if (e.kgSpan !== void 0)
9712
- I = e.kgSpan;
9715
+ M = e.kgSpan;
9713
9716
  else
9714
9717
  switch (e.kgContext) {
9715
9718
  case KG_FORM_CONTEXT.SEARCH:
9716
- I = (w = (A = c.value) == null ? void 0 : A.width) != null ? w : 6;
9719
+ M = (w = (A = c.value) == null ? void 0 : A.width) != null ? w : 6;
9717
9720
  break;
9718
9721
  case KG_FORM_CONTEXT.SUBMIT:
9719
9722
  switch (!0) {
9720
9723
  case o.isCreating.value:
9721
- I = ($ = (F = u.value) == null ? void 0 : F.crt_width) != null ? $ : 6;
9724
+ M = ($ = (F = u.value) == null ? void 0 : F.crt_width) != null ? $ : 6;
9722
9725
  break;
9723
9726
  case o.isUpdating.value:
9724
- I = (V = (P = u.value) == null ? void 0 : P.upt_width) != null ? V : 6;
9727
+ M = (V = (P = u.value) == null ? void 0 : P.upt_width) != null ? V : 6;
9725
9728
  break;
9726
9729
  case o.isCopying.value:
9727
- I = (O = (D = u.value) == null ? void 0 : D.cpy_width) != null ? O : 6;
9730
+ M = (O = (D = u.value) == null ? void 0 : D.cpy_width) != null ? O : 6;
9728
9731
  break;
9729
9732
  case o.isDeleting.value:
9730
- I = (x = (R = u.value) == null ? void 0 : R.del_width) != null ? x : 6;
9733
+ M = (x = (R = u.value) == null ? void 0 : R.del_width) != null ? x : 6;
9731
9734
  break;
9732
9735
  }
9733
9736
  }
9734
- return Math.min(24, Math.max(1, I));
9737
+ return Math.min(24, Math.max(1, M));
9735
9738
  }), _ = computed(() => {
9736
9739
  var F, $;
9737
- const I = get(T.value, "$el.parentElement");
9738
- if (I && !((F = I.classList) != null && F.contains("ant-row")))
9740
+ const M = get(k.value, "$el.parentElement");
9741
+ if (M && !((F = M.classList) != null && F.contains("ant-row")))
9739
9742
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
9740
9743
  let A = {};
9741
- const w = Math.abs(Number.parseInt(($ = get(T.value, "$el.parentElement.style.marginLeft")) != null ? $ : "0px"));
9744
+ const w = Math.abs(Number.parseInt(($ = get(k.value, "$el.parentElement.style.marginLeft")) != null ? $ : "0px"));
9742
9745
  return Number.isNaN(w) || (A = {
9743
9746
  paddingLeft: `${w}px !important`,
9744
9747
  paddingRight: `${w}px !important`
9745
9748
  }), A;
9746
9749
  }), y = computed(() => {
9747
9750
  var A, w, F, $;
9748
- let I = "kg-form-item";
9749
- switch (s.value && (I += " kg-form-item-lookup"), e.kgContext) {
9751
+ let M = "kg-form-item";
9752
+ switch (s.value && (M += " kg-form-item-lookup"), e.kgContext) {
9750
9753
  case KG_FORM_CONTEXT.SEARCH:
9751
9754
  switch (!0) {
9752
9755
  case ((A = c.value) == null ? void 0 : A.vis_flg) === 0:
9753
- I += " kg-form-item--invisible";
9756
+ M += " kg-form-item--invisible";
9754
9757
  break;
9755
9758
  }
9756
9759
  break;
@@ -9759,21 +9762,21 @@ const KgFormItemRadioGroup = defineComponent({
9759
9762
  case (o.isCreating.value && ((w = u.value) == null ? void 0 : w.crt_vis_flg) === 0):
9760
9763
  case (o.isUpdating.value && ((F = u.value) == null ? void 0 : F.upt_vis_flg) === 0):
9761
9764
  case (o.isCopying.value && (($ = u.value) == null ? void 0 : $.cpy_vis_flg) === 0):
9762
- I += " kg-form-item--invisible";
9765
+ M += " kg-form-item--invisible";
9763
9766
  break;
9764
9767
  }
9765
9768
  break;
9766
9769
  }
9767
- return I;
9770
+ return M;
9768
9771
  }), b = computed(() => {
9769
9772
  var A;
9770
- const I = {
9773
+ const M = {
9771
9774
  ...e,
9772
9775
  value: (A = a.value) == null ? void 0 : A[e.kgVarName],
9773
9776
  "onUpdate:value": (w) => {
9774
9777
  a.value && (a.value[e.kgVarName] = w);
9775
9778
  },
9776
- kgPlaceholder: k.value,
9779
+ kgPlaceholder: T.value,
9777
9780
  kgDisabled: v.value,
9778
9781
  id: C.value
9779
9782
  };
@@ -9785,26 +9788,26 @@ const KgFormItemRadioGroup = defineComponent({
9785
9788
  case KG_FORM_ITEM_TYPE.SWITCH:
9786
9789
  break;
9787
9790
  case KG_FORM_ITEM_TYPE.DATE_DATE:
9788
- I.kgShowTime = !1;
9791
+ M.kgShowTime = !1;
9789
9792
  break;
9790
9793
  case KG_FORM_ITEM_TYPE.DATE_TIME:
9791
- I.kgPicker = "time";
9794
+ M.kgPicker = "time";
9792
9795
  break;
9793
9796
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
9794
- I.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
9797
+ M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
9795
9798
  break;
9796
9799
  case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
9797
- I.kgShowTime = !1;
9800
+ M.kgShowTime = !1;
9798
9801
  break;
9799
9802
  case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
9800
- I.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
9803
+ M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
9801
9804
  break;
9802
9805
  }
9803
- return I;
9804
- }), C = computed(() => encodeURIComponent(`${e.kgContext}~${o.formID}~${e.kgVarName}`)), T = ref(null);
9805
- function M() {
9806
+ return M;
9807
+ }), C = computed(() => encodeURIComponent(`${e.kgContext}~${o.formID}~${e.kgVarName}`)), k = ref(null);
9808
+ function I() {
9806
9809
  if (t.control) {
9807
- const I = {
9810
+ const M = {
9808
9811
  varName: e.kgVarName,
9809
9812
  props: b,
9810
9813
  model: a,
@@ -9812,7 +9815,7 @@ const KgFormItemRadioGroup = defineComponent({
9812
9815
  varProfileDetail: c,
9813
9816
  varSubmitField: u
9814
9817
  };
9815
- return t.control(I);
9818
+ return t.control(M);
9816
9819
  }
9817
9820
  switch (m.value) {
9818
9821
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
@@ -9855,8 +9858,8 @@ const KgFormItemRadioGroup = defineComponent({
9855
9858
  }, [o.t(e.kgVarName).value]) : null;
9856
9859
  }
9857
9860
  function N() {
9858
- var I;
9859
- return !s.value || !((I = s.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
9861
+ var M;
9862
+ return !s.value || !((M = s.value) != null && M.lkp_id) ? null : createVNode(Form.ItemRest, null, {
9860
9863
  default: () => [createVNode(KgFormItemAddonLookup, {
9861
9864
  kgDisabled: v.value,
9862
9865
  kgLookupID: s.value.lkp_id
@@ -9864,15 +9867,15 @@ const KgFormItemRadioGroup = defineComponent({
9864
9867
  });
9865
9868
  }
9866
9869
  return () => {
9867
- var I, A;
9870
+ var M, A;
9868
9871
  return o.isRetrieving.value ? null : createVNode(Col, {
9869
- ref: T,
9872
+ ref: k,
9870
9873
  span: p.value,
9871
9874
  class: y.value,
9872
9875
  style: _.value,
9873
9876
  "kg-frm_id": o.formID,
9874
9877
  "kg-var_nam": e.kgVarName,
9875
- "kg-lkp_id": (I = s.value) == null ? void 0 : I.lkp_id,
9878
+ "kg-lkp_id": (M = s.value) == null ? void 0 : M.lkp_id,
9876
9879
  "kg-ret_fld": (A = s.value) == null ? void 0 : A.ret_fld
9877
9880
  }, {
9878
9881
  default: () => [createVNode(Form.Item, {
@@ -9881,7 +9884,7 @@ const KgFormItemRadioGroup = defineComponent({
9881
9884
  validateFirst: !0,
9882
9885
  htmlFor: C.value
9883
9886
  }, {
9884
- default: () => createVNode(Fragment, null, [M(), N()]),
9887
+ default: () => createVNode(Fragment, null, [I(), N()]),
9885
9888
  label: () => E()
9886
9889
  })]
9887
9890
  });
@@ -10212,9 +10215,9 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
10212
10215
  }).bind(null, pinia())), store$5);
10213
10216
  function useKgSubmit(e) {
10214
10217
  const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
10215
- var _, y, b, C, T;
10218
+ var _, y, b, C, k;
10216
10219
  let l = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
10217
- const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, m = (y = a.value) == null ? void 0 : y.crt_display_type, v = (b = a.value) == null ? void 0 : b.upt_display_type, k = (C = a.value) == null ? void 0 : C.cpy_display_type, p = (T = a.value) == null ? void 0 : T.del_display_type;
10220
+ const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, m = (y = a.value) == null ? void 0 : y.crt_display_type, v = (b = a.value) == null ? void 0 : b.upt_display_type, T = (C = a.value) == null ? void 0 : C.cpy_display_type, p = (k = a.value) == null ? void 0 : k.del_display_type;
10218
10221
  switch (!0) {
10219
10222
  case (t.isCreating.value && (m === c || !m && d === c)):
10220
10223
  l = c;
@@ -10222,7 +10225,7 @@ function useKgSubmit(e) {
10222
10225
  case (t.isUpdating.value && (v === c || !v && d === c)):
10223
10226
  l = c;
10224
10227
  break;
10225
- case (t.isCopying.value && (k === c || !k && d === c)):
10228
+ case (t.isCopying.value && (T === c || !T && d === c)):
10226
10229
  l = c;
10227
10230
  break;
10228
10231
  case (t.isDeleting.value && (p === c || !p)):
@@ -10236,7 +10239,7 @@ function useKgSubmit(e) {
10236
10239
  case (t.isUpdating.value && (v === u || !v && d === u)):
10237
10240
  l = u;
10238
10241
  break;
10239
- case (t.isCopying.value && (k === u || !k && d === u)):
10242
+ case (t.isCopying.value && (T === u || !T && d === u)):
10240
10243
  l = u;
10241
10244
  break;
10242
10245
  }
@@ -10285,8 +10288,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10285
10288
  }) => {
10286
10289
  const u = o.store.getVarSubmitConfig(o.formID);
10287
10290
  return s = watch(c, (d) => {
10288
- var m, v, k, p, _, y, b, C, T, M, E, N;
10289
- d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (k = u == null ? void 0 : u.fullscreen_flg) != null ? k : 1, d.dft_fullscreen_flg = (p = u == null ? void 0 : u.dft_fullscreen_flg) != null ? p : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 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 = (T = u == null ? void 0 : u.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (M = u == null ? void 0 : u.label_col) != null ? M : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (E = u == null ? void 0 : u.label_col_unit) != null ? E : KG_WIDTH_UNIT.SPAN, d.display_type = (N = u == null ? void 0 : u.display_type) != null ? N : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
10291
+ var m, v, T, p, _, y, b, C, k, I, E, N;
10292
+ d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (T = u == null ? void 0 : u.fullscreen_flg) != null ? T : 1, d.dft_fullscreen_flg = (p = u == null ? void 0 : u.dft_fullscreen_flg) != null ? p : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 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 = (I = u == null ? void 0 : u.label_col) != null ? I : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (E = u == null ? void 0 : u.label_col_unit) != null ? E : KG_WIDTH_UNIT.SPAN, d.display_type = (N = u == null ? void 0 : u.display_type) != null ? N : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
10290
10293
  }, {
10291
10294
  immediate: !0
10292
10295
  }), !1;
@@ -10335,7 +10338,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10335
10338
  function v() {
10336
10339
  r("kgCancel");
10337
10340
  }
10338
- function k() {
10341
+ function T() {
10339
10342
  var y;
10340
10343
  return e.kgShowFullscreenButton === !1 || ((y = s.value) == null ? void 0 : y.fullscreen_flg) === 0 ? null : createVNode(Button, {
10341
10344
  onClick: d,
@@ -10364,7 +10367,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10364
10367
  default: () => [createVNode(CloseOutlined$1, null, null)]
10365
10368
  });
10366
10369
  }
10367
- return () => createVNode(Fragment, null, [p(), k(), _()]);
10370
+ return () => createVNode(Fragment, null, [p(), T(), _()]);
10368
10371
  }
10369
10372
  }), 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;
10370
10373
  function _useFormModel$1() {
@@ -10386,8 +10389,8 @@ function _useFormModel$1() {
10386
10389
  if (c.value = {}, u != null && u.length) {
10387
10390
  const d = r.selectedRow.value;
10388
10391
  u.forEach((m) => {
10389
- var k, p, _, y, b, C, T, M;
10390
- const v = (k = m.var_nam) != null ? k : "";
10392
+ var T, p, _, y, b, C, k, I;
10393
+ const v = (T = m.var_nam) != null ? T : "";
10391
10394
  switch (c.value[v] = void 0, !0) {
10392
10395
  case t.isCreating.value:
10393
10396
  c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (p = m.crt_dft_val) != null ? p : void 0, "C");
@@ -10399,7 +10402,7 @@ function _useFormModel$1() {
10399
10402
  c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (C = (b = m.cpy_dft_val) != null ? b : d == null ? void 0 : d[v]) != null ? C : void 0, "CP");
10400
10403
  break;
10401
10404
  case t.isDeleting.value:
10402
- c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (M = (T = m.del_dft_val) != null ? T : d == null ? void 0 : d[v]) != null ? M : void 0, "D");
10405
+ c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (I = (k = m.del_dft_val) != null ? k : d == null ? void 0 : d[v]) != null ? I : void 0, "D");
10403
10406
  break;
10404
10407
  }
10405
10408
  });
@@ -10472,9 +10475,9 @@ function _useClass(e, t) {
10472
10475
  const r = inject(DI_KG_VAR__KG_PROPS, null), a = useKgVar(), n = useKgSubmit(), o = computed(() => a.store.getVarSubmitConfig(a.formID)), i = computed(() => a.store.getVarSubmitFieldsForDeleteKey(a.formID));
10473
10476
  return {
10474
10477
  getClass: computed(() => {
10475
- var c, u, d, m, v, k, p;
10478
+ var c, u, d, m, v, T, p;
10476
10479
  let l = "kg-submit";
10477
- return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = o.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (v = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgSubmit) != null && v.kgClass ? l += ` ${(p = (k = r == null ? void 0 : r.value) == null ? void 0 : k.KgSubmit) == null ? void 0 : p.kgClass}` : e.kgClass && (l += ` ${e.kgClass}`), l;
10480
+ return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = o.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (v = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgSubmit) != null && v.kgClass ? l += ` ${(p = (T = r == null ? void 0 : r.value) == null ? void 0 : T.KgSubmit) == null ? void 0 : p.kgClass}` : e.kgClass && (l += ` ${e.kgClass}`), l;
10478
10481
  })
10479
10482
  };
10480
10483
  }
@@ -10550,7 +10553,7 @@ const getProps$p = () => ({
10550
10553
  inject(DI_KG_VAR__KG_PROPS, null);
10551
10554
  const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), c = useKgSearch();
10552
10555
  i.onSubmitSave(async () => (await ue(), !1)), i.onSubmitCancel(async () => (await oe(), !1)), _useFormModel$1();
10553
- const u = computed(() => o.isDeleting.value && T.value.length === 0 && M.value.length === 0), d = computed(() => l.store.isLoading(o.formID)), m = computed(() => o.store.getVarSubmitConfig(o.formID)), v = computed(() => o.store.getVarSubmitFieldsForCreateKey(o.formID)), k = computed(() => o.store.getVarSubmitFieldsForCreateNotKey(o.formID)), p = computed(() => o.store.getVarSubmitFieldsForUpdateKey(o.formID)), _ = computed(() => o.store.getVarSubmitFieldsForUpdateNotKey(o.formID)), y = computed(() => o.store.getVarSubmitFieldsForCopyKey(o.formID)), b = computed(() => o.store.getVarSubmitFieldsForCopyNotKey(o.formID)), C = computed(() => o.store.getVarSubmitFieldsForDelete(o.formID)), T = computed(() => {
10556
+ const u = computed(() => o.isDeleting.value && k.value.length === 0 && I.value.length === 0), d = computed(() => l.store.isLoading(o.formID)), m = computed(() => o.store.getVarSubmitConfig(o.formID)), v = computed(() => o.store.getVarSubmitFieldsForCreateKey(o.formID)), T = computed(() => o.store.getVarSubmitFieldsForCreateNotKey(o.formID)), p = computed(() => o.store.getVarSubmitFieldsForUpdateKey(o.formID)), _ = computed(() => o.store.getVarSubmitFieldsForUpdateNotKey(o.formID)), y = computed(() => o.store.getVarSubmitFieldsForCopyKey(o.formID)), b = computed(() => o.store.getVarSubmitFieldsForCopyNotKey(o.formID)), C = computed(() => o.store.getVarSubmitFieldsForDelete(o.formID)), k = computed(() => {
10554
10557
  var L, B, q;
10555
10558
  switch (!0) {
10556
10559
  case o.isCreating.value:
@@ -10563,11 +10566,11 @@ const getProps$p = () => ({
10563
10566
  return [];
10564
10567
  }
10565
10568
  return [];
10566
- }), M = computed(() => {
10569
+ }), I = computed(() => {
10567
10570
  var L, B, q, ee;
10568
10571
  switch (!0) {
10569
10572
  case o.isCreating.value:
10570
- return (L = k.value) != null ? L : [];
10573
+ return (L = T.value) != null ? L : [];
10571
10574
  case o.isUpdating.value:
10572
10575
  return (B = _.value) != null ? B : [];
10573
10576
  case o.isCopying.value:
@@ -10576,7 +10579,7 @@ const getProps$p = () => ({
10576
10579
  return (ee = C.value) != null ? ee : [];
10577
10580
  }
10578
10581
  return [];
10579
- }), E = computed(() => !!o.store.isCreatingRequesting(o.formID) || !!o.store.isUpdatingRequesting(o.formID) || !!o.store.isCopyingRequesting(o.formID) || !!o.store.isDeletingRequesting(o.formID)), N = computed(() => E.value || d.value), I = computed(() => d.value), A = ref({
10582
+ }), E = computed(() => !!o.store.isCreatingRequesting(o.formID) || !!o.store.isUpdatingRequesting(o.formID) || !!o.store.isCopyingRequesting(o.formID) || !!o.store.isDeletingRequesting(o.formID)), N = computed(() => E.value || d.value), M = computed(() => d.value), A = ref({
10580
10583
  kgWidth: 0
10581
10584
  }), w = computed(() => {
10582
10585
  var L;
@@ -10957,13 +10960,13 @@ const getProps$p = () => ({
10957
10960
  }, {
10958
10961
  default: () => [createVNode("div", {
10959
10962
  ref: V
10960
- }, [T.value.length > 0 && createVNode(Row, {
10963
+ }, [k.value.length > 0 && createVNode(Row, {
10961
10964
  gutter: 12
10962
- }, _isSlot$8(L = T.value.map(K)) ? L : {
10965
+ }, _isSlot$8(L = k.value.map(K)) ? L : {
10963
10966
  default: () => [L]
10964
- }), T.value.length > 0 && M.value.length > 0 && createVNode(Divider, null, null), M.value.length > 0 && createVNode(Row, {
10967
+ }), k.value.length > 0 && I.value.length > 0 && createVNode(Divider, null, null), I.value.length > 0 && createVNode(Row, {
10965
10968
  gutter: 12
10966
- }, _isSlot$8(B = M.value.map(K)) ? B : {
10969
+ }, _isSlot$8(B = I.value.map(K)) ? B : {
10967
10970
  default: () => [B]
10968
10971
  }), u.value && createVNode("div", {
10969
10972
  style: "text-align: center; padding: 6px 0 12px;"
@@ -10983,7 +10986,7 @@ const getProps$p = () => ({
10983
10986
  default: () => [L]
10984
10987
  }), createVNode(Button, {
10985
10988
  type: "primary",
10986
- disabled: I.value,
10989
+ disabled: M.value,
10987
10990
  loading: E.value,
10988
10991
  danger: !!o.isDeleting.value,
10989
10992
  onClick: ue
@@ -11229,7 +11232,7 @@ function useKgTable(e) {
11229
11232
  }), v = computed(() => {
11230
11233
  var p;
11231
11234
  return (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opt;
11232
- }), k = computed(() => {
11235
+ }), T = computed(() => {
11233
11236
  var p;
11234
11237
  return ((p = t.varGridConfig.value) == null ? void 0 : p.prf_frm_id) || t.formID;
11235
11238
  });
@@ -11247,7 +11250,7 @@ function useKgTable(e) {
11247
11250
  id: d,
11248
11251
  pageSizeOptions: m,
11249
11252
  pageSizeOption: v,
11250
- profileFormID: k,
11253
+ profileFormID: T,
11251
11254
  onRowDoubleClick: onEventFactory(t.formID, r, "rowDoubleClick"),
11252
11255
  onBeforeRetrieve: onEventFactory(t.formID, r, "beforeRetrieve"),
11253
11256
  onRetrieve: onEventFactory(t.formID, r, "retrieve")
@@ -11272,53 +11275,53 @@ const getProps$n = () => ({
11272
11275
  }) {
11273
11276
  const a = useKg(), n = useKgVar(), o = useKgButton(), i = useKgSubmit(), s = useKgTable();
11274
11277
  o.onSubmitSave(async () => {
11275
- var T;
11278
+ var k;
11276
11279
  try {
11277
- await ((T = k.value) == null ? void 0 : T.validate());
11278
- } catch (M) {
11279
- KgUtil.throwIfNotFormError(M);
11280
+ await ((k = T.value) == null ? void 0 : k.validate());
11281
+ } catch (I) {
11282
+ KgUtil.throwIfNotFormError(I);
11280
11283
  }
11281
11284
  return !1;
11282
11285
  });
11283
11286
  const l = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
11284
- var T, M, E, N, I, A;
11285
- return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((M = s.selectedRow.value) == null ? void 0 : M[s.id.value]) && (!!n.isCreating.value && ((E = c.value) == null ? void 0 : E.crt_flg) === 1 || !!n.isUpdating.value && ((N = c.value) == null ? void 0 : N.upt_flg) === 1 || !!n.isCopying.value && ((I = c.value) == null ? void 0 : I.cpy_flg) === 1 || !!n.isDeleting.value && ((A = c.value) == null ? void 0 : A.del_flg) === 1);
11287
+ var k, I, E, N, M, A;
11288
+ return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[s.id.value]) === ((I = s.selectedRow.value) == null ? void 0 : I[s.id.value]) && (!!n.isCreating.value && ((E = c.value) == null ? void 0 : E.crt_flg) === 1 || !!n.isUpdating.value && ((N = c.value) == null ? void 0 : N.upt_flg) === 1 || !!n.isCopying.value && ((M = c.value) == null ? void 0 : M.cpy_flg) === 1 || !!n.isDeleting.value && ((A = c.value) == null ? void 0 : A.del_flg) === 1);
11286
11289
  }), d = computed(() => {
11287
- var T, M;
11288
- return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((M = s.selectedRow.value) == null ? void 0 : M[s.id.value]) && (!!n.isCreating.value && !!n.isCreatingRequesting.value || !!n.isUpdating.value && !!n.isUpdatingRequesting.value || !!n.isCopying.value && !!n.isCopyingRequesting.value || !!n.isDeleting.value && !!n.isDeletingRequesting.value);
11290
+ var k, I;
11291
+ return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[s.id.value]) === ((I = s.selectedRow.value) == null ? void 0 : I[s.id.value]) && (!!n.isCreating.value && !!n.isCreatingRequesting.value || !!n.isUpdating.value && !!n.isUpdatingRequesting.value || !!n.isCopying.value && !!n.isCopyingRequesting.value || !!n.isDeleting.value && !!n.isDeletingRequesting.value);
11289
11292
  }), m = computed(() => {
11290
- var M, E;
11291
- let T = "kg-table-td";
11292
- return ((M = l.value) == null ? void 0 : M.align) === "center" ? T += " kg-table-td--center" : ((E = l.value) == null ? void 0 : E.align) === "right" && (T += " kg-table-td--right"), u.value && (T += " kg-table-td--submitting"), T;
11293
+ var I, E;
11294
+ let k = "kg-table-td";
11295
+ return ((I = l.value) == null ? void 0 : I.align) === "center" ? k += " kg-table-td--center" : ((E = l.value) == null ? void 0 : E.align) === "right" && (k += " kg-table-td--right"), u.value && (k += " kg-table-td--submitting"), k;
11293
11296
  }), v = computed(() => {
11294
- var M, E, N, I;
11297
+ var I, E, N, M;
11295
11298
  if (e.kgValue === KG_TABLE_TEMP_ID)
11296
11299
  return "";
11297
- let T = e.kgValue;
11298
- switch ((M = l.value) == null ? void 0 : M.display_type) {
11300
+ let k = e.kgValue;
11301
+ switch ((I = l.value) == null ? void 0 : I.display_type) {
11299
11302
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
11300
11303
  {
11301
11304
  const A = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
11302
- T = (I = (N = e.kgRow) == null ? void 0 : N[A.dscFieldName || `${e.kgVarName}_dsc`]) != null ? I : e.kgValue;
11305
+ k = (M = (N = e.kgRow) == null ? void 0 : N[A.dscFieldName || `${e.kgVarName}_dsc`]) != null ? M : e.kgValue;
11303
11306
  }
11304
11307
  break;
11305
11308
  }
11306
- return isString$1(T) && (T = T.replaceAll("\\n", `
11307
- `)), T;
11308
- }), k = ref(null);
11309
- function p(T) {
11310
- var M, E, N;
11311
- if (T.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
11312
- switch ((M = l.value) == null ? void 0 : M.display_type) {
11309
+ return isString$1(k) && (k = k.replaceAll("\\n", `
11310
+ `)), k;
11311
+ }), T = ref(null);
11312
+ function p(k) {
11313
+ var I, E, N;
11314
+ if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
11315
+ switch ((I = l.value) == null ? void 0 : I.display_type) {
11313
11316
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
11314
- T.stopPropagation(), T.preventDefault(), r("kgUpdateLinkClick");
11317
+ k.stopPropagation(), k.preventDefault(), r("kgUpdateLinkClick");
11315
11318
  break;
11316
11319
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
11317
11320
  {
11318
- T.stopPropagation(), T.preventDefault();
11319
- const I = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
11321
+ k.stopPropagation(), k.preventDefault();
11322
+ const M = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
11320
11323
  (N = a.router.value) == null || N.push({
11321
- path: I.path,
11324
+ path: M.path,
11322
11325
  query: e.kgRow
11323
11326
  });
11324
11327
  }
@@ -11329,7 +11332,7 @@ const getProps$n = () => ({
11329
11332
  }
11330
11333
  function y() {
11331
11334
  return createVNode(KgForm, {
11332
- ref: k,
11335
+ ref: T,
11333
11336
  model: i.model.value,
11334
11337
  layout: "vertical",
11335
11338
  wrapperCol: {
@@ -11349,12 +11352,12 @@ const getProps$n = () => ({
11349
11352
  });
11350
11353
  }
11351
11354
  function b() {
11352
- var T, M, E, N, I, A, w, F, $, P;
11355
+ var k, I, E, N, M, A, w, F, $, P;
11353
11356
  if (u.value)
11354
11357
  return y();
11355
- switch ((T = l.value) == null ? void 0 : T.display_type) {
11358
+ switch ((k = l.value) == null ? void 0 : k.display_type) {
11356
11359
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
11357
- const V = KgUtil.tryParseJSON((M = l.value) == null ? void 0 : M.display_type_properties);
11360
+ const V = KgUtil.tryParseJSON((I = l.value) == null ? void 0 : I.display_type_properties);
11358
11361
  return createVNode(KgYesOrNo, {
11359
11362
  kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((E = V.yValue) != null ? E : 1),
11360
11363
  kgNilAsFalse: V.nilAsFalse
@@ -11365,7 +11368,7 @@ const getProps$n = () => ({
11365
11368
  if (D) {
11366
11369
  const O = n.t(D.varName).value;
11367
11370
  return O ? createVNode(Tag, {
11368
- color: (I = D.color) != null ? I : "default"
11371
+ color: (M = D.color) != null ? M : "default"
11369
11372
  }, _isSlot$7(O) ? O : {
11370
11373
  default: () => [O]
11371
11374
  }) : C();
@@ -11402,11 +11405,11 @@ const getProps$n = () => ({
11402
11405
  return C();
11403
11406
  }
11404
11407
  }
11405
- function C(T = !1) {
11406
- let M = "";
11407
- return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (M += "kg-table-td-update-link"), createVNode("pre", {
11408
+ function C(k = !1) {
11409
+ let I = "";
11410
+ return k && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (I += "kg-table-td-update-link"), createVNode("pre", {
11408
11411
  innerHTML: v.value,
11409
- class: M,
11412
+ class: I,
11410
11413
  onClick: p
11411
11414
  }, null);
11412
11415
  }
@@ -11500,8 +11503,8 @@ const getProps$m = () => ({
11500
11503
  }) => {
11501
11504
  const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
11502
11505
  return i = watch(l, (u) => {
11503
- var d, m, v, k, p, _, y, b, C, T, M;
11504
- 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 = (k = c == null ? void 0 : c.show_check_column_flg) != null ? k : 0, u.show_bottom_left_flg = (p = c == null ? void 0 : c.show_bottom_left_flg) != null ? p : 1, u.show_bottom_right_flg = (_ = c == null ? void 0 : c.show_bottom_right_flg) != null ? _ : 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 = (T = c == null ? void 0 : c.cmd_prm) != null ? T : void 0, u.button_display_type = (M = c == null ? void 0 : c.button_display_type) != null ? M : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
11506
+ var d, m, v, T, p, _, y, b, C, k, I;
11507
+ 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 = (T = c == null ? void 0 : c.show_check_column_flg) != null ? T : 0, u.show_bottom_left_flg = (p = c == null ? void 0 : c.show_bottom_left_flg) != null ? p : 1, u.show_bottom_right_flg = (_ = c == null ? void 0 : c.show_bottom_right_flg) != null ? _ : 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 = (I = c == null ? void 0 : c.button_display_type) != null ? I : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
11505
11508
  }, {
11506
11509
  immediate: !0
11507
11510
  }), !1;
@@ -11690,8 +11693,8 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
11690
11693
  return o.onOpen(async ({
11691
11694
  model: i
11692
11695
  }) => {
11693
- var s, l, c, u, d, m, v, k, p, _;
11694
- return i.value.grd_var_nam = `${(l = (s = n.currentVarGridMaster.value) == null ? void 0 : s.grd_var_nam) != null ? l : ""}_COPY`, i.value.frm_id = (u = (c = n.currentVarGridMaster.value) == null ? void 0 : c.frm_id) != null ? u : "", i.value.usr_id = (m = (d = n.currentVarGridMaster.value) == null ? void 0 : d.usr_id) != null ? m : "", i.value.grp_nam = (k = (v = n.currentVarGridMaster.value) == null ? void 0 : v.grp_nam) != null ? k : "", i.value.varGridDetails = (_ = (p = n.currentVarGridMaster.value) == null ? void 0 : p.varGridDetails) != null ? _ : [], !1;
11696
+ var s, l, c, u, d, m, v, T, p, _;
11697
+ return i.value.grd_var_nam = `${(l = (s = n.currentVarGridMaster.value) == null ? void 0 : s.grd_var_nam) != null ? l : ""}_COPY`, i.value.frm_id = (u = (c = n.currentVarGridMaster.value) == null ? void 0 : c.frm_id) != null ? u : "", i.value.usr_id = (m = (d = n.currentVarGridMaster.value) == null ? void 0 : d.usr_id) != null ? m : "", i.value.grp_nam = (T = (v = n.currentVarGridMaster.value) == null ? void 0 : v.grp_nam) != null ? T : "", i.value.varGridDetails = (_ = (p = n.currentVarGridMaster.value) == null ? void 0 : p.varGridDetails) != null ? _ : [], !1;
11695
11698
  }), o.onBeforeOk(async ({
11696
11699
  model: i
11697
11700
  }) => (i.value, !1)), o.onOk(async () => (n.store.retrieve(n.formID), !1)), () => createVNode(KgSubmit, null, null);
@@ -11729,7 +11732,7 @@ const getProps$h = () => ({
11729
11732
  vis_flg: C.vis_flg === 1 ? 0 : 1
11730
11733
  });
11731
11734
  }
11732
- async function k() {
11735
+ async function T() {
11733
11736
  var C;
11734
11737
  if (((C = n.currentVarGridMaster.value) == null ? void 0 : C.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
11735
11738
  KgUtil.confirm({
@@ -11764,27 +11767,27 @@ const getProps$h = () => ({
11764
11767
  class: "columns"
11765
11768
  }, [createVNode(Input, {
11766
11769
  value: s.value,
11767
- "onUpdate:value": (T) => s.value = T,
11770
+ "onUpdate:value": (k) => s.value = k,
11768
11771
  allowClear: !0
11769
11772
  }, null), createVNode("ul", {
11770
11773
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
11771
- }, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((T) => createVNode("li", {
11774
+ }, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((k) => createVNode("li", {
11772
11775
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
11773
- onClick: (M) => {
11774
- M.preventDefault(), M.stopPropagation(), v(T);
11776
+ onClick: (I) => {
11777
+ I.preventDefault(), I.stopPropagation(), v(k);
11775
11778
  },
11776
11779
  style: {
11777
- display: i(T, s.value) ? "flex" : "none"
11780
+ display: i(k, s.value) ? "flex" : "none"
11778
11781
  },
11779
- "kg-var_nam": T.var_nam
11782
+ "kg-var_nam": k.var_nam
11780
11783
  }, [createVNode(Checkbox, {
11781
- checked: T.vis_flg === 1,
11784
+ checked: k.vis_flg === 1,
11782
11785
  disabled: !0
11783
11786
  }, {
11784
- default: () => [createVNode("pre", null, [n.t(T.var_nam).value])]
11787
+ default: () => [createVNode("pre", null, [n.t(k.var_nam).value])]
11785
11788
  }), createVNode(HolderOutlined$1, {
11786
- onClick: (M) => {
11787
- M.preventDefault(), M.stopPropagation();
11789
+ onClick: (I) => {
11790
+ I.preventDefault(), I.stopPropagation();
11788
11791
  }
11789
11792
  }, null)]))])]);
11790
11793
  },
@@ -11798,9 +11801,9 @@ const getProps$h = () => ({
11798
11801
  popupClassName: "kg-table-setting-submenu-popup-masters"
11799
11802
  }, {
11800
11803
  default: () => {
11801
- var M;
11802
- let C, T;
11803
- return createVNode(Fragment, null, [(M = n.varGridMasters.value) == null ? void 0 : M.map((E) => {
11804
+ var I;
11805
+ let C, k;
11806
+ return createVNode(Fragment, null, [(I = n.varGridMasters.value) == null ? void 0 : I.map((E) => {
11804
11807
  var N;
11805
11808
  return createVNode(Menu.Item, {
11806
11809
  key: E.id,
@@ -11812,14 +11815,14 @@ const getProps$h = () => ({
11812
11815
  });
11813
11816
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
11814
11817
  key: "save-grid-view",
11815
- onClick: k
11818
+ onClick: T
11816
11819
  }, _isSlot$5(C = a.t("kg.KgTable.saveVarGridMaster")) ? C : {
11817
11820
  default: () => [C]
11818
11821
  }), createVNode(Menu.Item, {
11819
11822
  key: "save-grid-view-as",
11820
11823
  onClick: p
11821
- }, _isSlot$5(T = a.t("kg.KgTable.saveVarGridMasterAs")) ? T : {
11822
- default: () => [T]
11824
+ }, _isSlot$5(k = a.t("kg.KgTable.saveVarGridMasterAs")) ? k : {
11825
+ default: () => [k]
11823
11826
  })]);
11824
11827
  },
11825
11828
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
@@ -11863,7 +11866,7 @@ function _useColumns(e) {
11863
11866
  var l;
11864
11867
  return ((l = r.store.getVarGridConfig(r.formID)) == null ? void 0 : l.show_check_column_flg) === 1;
11865
11868
  }), i = computed(() => {
11866
- var m, v, k;
11869
+ var m, v, T;
11867
11870
  const l = (m = n.store.getTableWidth(r.formID)) != null ? m : 0, c = (v = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? v : 0, u = r.store.getCurrentVisibleVarGridDetails(r.formID), d = [{
11868
11871
  dataIndex: "index",
11869
11872
  width: KG_TABLE_TD_INDEX_WIDTH,
@@ -11873,7 +11876,7 @@ function _useColumns(e) {
11873
11876
  customRender: ({
11874
11877
  index: p
11875
11878
  }) => p + 1
11876
- }, ...(k = u == null ? void 0 : u.map((p) => {
11879
+ }, ...(T = u == null ? void 0 : u.map((p) => {
11877
11880
  const _ = p.var_nam;
11878
11881
  function y() {
11879
11882
  return p.width === "auto" ? "auto" : Number(p.width) || KG_TABLE_TD_DEFAULT_WIDTH;
@@ -11884,15 +11887,15 @@ function _useColumns(e) {
11884
11887
  function C() {
11885
11888
  return p.ord === -1 ? null : p.ord === 0 ? "ascend" : p.ord === 1 ? "descend" : null;
11886
11889
  }
11887
- function T() {
11890
+ function k() {
11888
11891
  if (p.fix_left_flg === 1)
11889
11892
  return "left";
11890
11893
  if (p.fix_right_flg === 1)
11891
11894
  return "right";
11892
11895
  }
11893
- function M() {
11894
- var I, A, w, F;
11895
- return !((A = (I = t == null ? void 0 : t.value) == null ? void 0 : I.KgTable) != null && A.kgDisabled || isNil((F = (w = t == null ? void 0 : t.value) == null ? void 0 : w.KgTable) == null ? void 0 : F.kgDisabled) && e.kgDisabled || p.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
11896
+ function I() {
11897
+ var M, A, w, F;
11898
+ return !((A = (M = t == null ? void 0 : t.value) == null ? void 0 : M.KgTable) != null && A.kgDisabled || isNil((F = (w = t == null ? void 0 : t.value) == null ? void 0 : w.KgTable) == null ? void 0 : F.kgDisabled) && e.kgDisabled || p.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
11896
11899
  }
11897
11900
  function E() {
11898
11901
  return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
@@ -11905,25 +11908,25 @@ function _useColumns(e) {
11905
11908
  resizable: typeof N == "number",
11906
11909
  minWidth: KG_TABLE_TD_MIN_WIDTH,
11907
11910
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
11908
- fixed: T(),
11909
- sorter: M(),
11911
+ fixed: k(),
11912
+ sorter: I(),
11910
11913
  align: E(),
11911
11914
  defaultSortOrder: C(),
11912
11915
  customHeaderCell: () => ({
11913
11916
  "kg-frm_id": r.formID,
11914
11917
  "kg-var_nam": _
11915
11918
  }),
11916
- customCell: (I) => {
11919
+ customCell: (M) => {
11917
11920
  var w;
11918
11921
  const A = r.store.getVarSubmitField(r.formID, _);
11919
11922
  return {
11920
11923
  "kg-frm_id": r.formID,
11921
11924
  "kg-var_nam": _,
11922
- class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && I[n.id.value] === ((w = n.selectedRow.value) == null ? void 0 : w[n.id.value]) && (!!r.isCreating.value && (A == null ? void 0 : A.crt_flg) === 1 || !!r.isUpdating.value && (A == null ? void 0 : A.upt_flg) === 1 || !!r.isCopying.value && (A == null ? void 0 : A.cpy_flg) === 1 || !!r.isDeleting.value && (A == null ? void 0 : A.del_flg) === 1) ? "submitting" : ""
11925
+ class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && M[n.id.value] === ((w = n.selectedRow.value) == null ? void 0 : w[n.id.value]) && (!!r.isCreating.value && (A == null ? void 0 : A.crt_flg) === 1 || !!r.isUpdating.value && (A == null ? void 0 : A.upt_flg) === 1 || !!r.isCopying.value && (A == null ? void 0 : A.cpy_flg) === 1 || !!r.isDeleting.value && (A == null ? void 0 : A.del_flg) === 1) ? "submitting" : ""
11923
11926
  };
11924
11927
  }
11925
11928
  };
11926
- })) != null ? k : []];
11929
+ })) != null ? T : []];
11927
11930
  return (c === 0 || l > c && !(u != null && u.find((p) => p.width === "auto"))) && d.push({
11928
11931
  width: "auto",
11929
11932
  customRender: () => null
@@ -11998,7 +12001,7 @@ const KgTable$1 = "", getProps$g = () => ({
11998
12001
  }
11999
12002
  });
12000
12003
  const m = ref(!1), v = ref([]), {
12001
- columns: k,
12004
+ columns: T,
12002
12005
  scrollX: p
12003
12006
  } = _useColumns(e), {
12004
12007
  isLoading: _
@@ -12022,13 +12025,13 @@ const KgTable$1 = "", getProps$g = () => ({
12022
12025
  ...K,
12023
12026
  ...KgVarUtil.parseCommandParameter((B = s.varGridConfig.value.cmd_prm) != null ? B : "")
12024
12027
  }), ((q = s.varGridConfig.value) == null ? void 0 : q.convert_sort_field_to_under_score_flg) === 1 && K.column && (K.column = snakeCase$1(K.column)), K;
12025
- }), T = computed(() => _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || P.total === 0), M = computed(() => _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), E = computed(() => {
12028
+ }), k = computed(() => _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || P.total === 0), I = computed(() => _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), E = computed(() => {
12026
12029
  var K;
12027
12030
  return !!((K = n == null ? void 0 : n.KgTable) != null && K.expandedRowRender);
12028
12031
  }), N = computed(() => {
12029
12032
  var K;
12030
12033
  return ((K = s.varGridConfig.value) == null ? void 0 : K.show_check_column_flg) === 1;
12031
- }), I = computed(() => {
12034
+ }), M = computed(() => {
12032
12035
  if (!!N.value)
12033
12036
  return {
12034
12037
  fixed: "left",
@@ -12086,7 +12089,7 @@ const KgTable$1 = "", getProps$g = () => ({
12086
12089
  K && (F.value = without$1(F.value, K), u.store.setSelectedRows(s.formID, []));
12087
12090
  }
12088
12091
  function x(K, U) {
12089
- if (!(!!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!I.value) {
12092
+ if (!(!!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!M.value) {
12090
12093
  if (!U) {
12091
12094
  u.store.setSelectedRows(s.formID, []);
12092
12095
  return;
@@ -12212,7 +12215,7 @@ const KgTable$1 = "", getProps$g = () => ({
12212
12215
  function oe(K) {
12213
12216
  u.store.setSelectedRows(s.formID, [K].map((U) => {
12214
12217
  var z;
12215
- return (z = F.value) == null ? void 0 : z.find((W) => W[u.id.value] === U);
12218
+ return (z = F.value) == null ? void 0 : z.find((W) => W[u.id.value] === U[u.id.value]);
12216
12219
  }).filter((U) => !!U)), c.click(s.formID, KG_BUTTON_TYPE.UPDATE);
12217
12220
  }
12218
12221
  function ue({
@@ -12246,7 +12249,7 @@ const KgTable$1 = "", getProps$g = () => ({
12246
12249
  index: 0
12247
12250
  }, null), N.value && createVNode(TableSummary.Cell, {
12248
12251
  index: E.value ? 1 : 0
12249
- }, null), k.value.map((U, z) => {
12252
+ }, null), T.value.map((U, z) => {
12250
12253
  const W = s.store.getVarGridDetail(s.formID, U.dataIndex);
12251
12254
  let J = z;
12252
12255
  return E.value && N.value ? J += 2 : (E.value || N.value) && (J += 1), createVNode(TableSummary.Cell, {
@@ -12321,11 +12324,11 @@ const KgTable$1 = "", getProps$g = () => ({
12321
12324
  },
12322
12325
  pagination: !1,
12323
12326
  showSorterTooltip: !1,
12324
- columns: k.value,
12327
+ columns: T.value,
12325
12328
  dataSource: F.value,
12326
12329
  loading: _.value,
12327
12330
  rowKey: u.id.value,
12328
- rowSelection: I.value,
12331
+ rowSelection: M.value,
12329
12332
  expandColumnWidth: 28,
12330
12333
  expandedRowKeys: v.value,
12331
12334
  customRow: (U) => ({
@@ -12349,7 +12352,7 @@ const KgTable$1 = "", getProps$g = () => ({
12349
12352
  kgShowClearTable: P.total > 0,
12350
12353
  kgShowLocate: $.value.length === 1,
12351
12354
  kgTotal: $.value.length,
12352
- kgDisabled: M.value
12355
+ kgDisabled: I.value
12353
12356
  }, null)]), createVNode("div", {
12354
12357
  class: "right"
12355
12358
  }, [u.isShowBottomRight.value && createVNode(Pagination, {
@@ -12361,7 +12364,7 @@ const KgTable$1 = "", getProps$g = () => ({
12361
12364
  showSizeChanger: !0,
12362
12365
  showQuickJumper: !1,
12363
12366
  hideOnSinglePage: !1,
12364
- disabled: T.value,
12367
+ disabled: k.value,
12365
12368
  locale: {
12366
12369
  page: ""
12367
12370
  },
@@ -12396,8 +12399,8 @@ const KgTable$1 = "", getProps$g = () => ({
12396
12399
  attrs: t
12397
12400
  }) {
12398
12401
  const r = useKg(), a = useKgVar(), n = useKgTable(), o = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
12399
- var u, d, m, v, k, p, _, y;
12400
- return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = o.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 = o.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((p = (k = n.selectedRows.value) == null ? void 0 : k.length) != null ? p : 0) > 1 || ((_ = o.value) == null ? void 0 : _.permission_type) === 2 && !r.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12402
+ var u, d, m, v, T, p, _, y;
12403
+ return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = o.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 = o.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((p = (T = n.selectedRows.value) == null ? void 0 : T.length) != null ? p : 0) > 1 || ((_ = o.value) == null ? void 0 : _.permission_type) === 2 && !r.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12401
12404
  });
12402
12405
  async function s() {
12403
12406
  e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
@@ -12575,8 +12578,8 @@ const KgButtonCreate = defineComponent({
12575
12578
  attrs: a
12576
12579
  }) {
12577
12580
  const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), c = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), u = computed(() => {
12578
- var C, T, M, E, N, I, A, w;
12579
- return o.isUpdating.value || o.isCopying.value || o.isDeleting.value || s.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((M = (T = s.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((I = (N = s.selectedRows.value) == null ? void 0 : N.length) != null ? I : 0) > 1 || ((A = c.value) == null ? void 0 : A.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12581
+ var C, k, I, E, N, M, A, w;
12582
+ return o.isUpdating.value || o.isCopying.value || o.isDeleting.value || s.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((I = (k = s.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((M = (N = s.selectedRows.value) == null ? void 0 : N.length) != null ? M : 0) > 1 || ((A = c.value) == null ? void 0 : A.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12580
12583
  }), d = computed(() => !!o.isCreatingRequesting.value);
12581
12584
  async function m() {
12582
12585
  e.onKgClick && await e.onKgClick() || o.store.setIsCreating(o.formID, !0);
@@ -12584,7 +12587,7 @@ const KgButtonCreate = defineComponent({
12584
12587
  function v() {
12585
12588
  i.store.emit(o.formID, "submitSave");
12586
12589
  }
12587
- function k() {
12590
+ function T() {
12588
12591
  i.store.emit(o.formID, "submitCancel");
12589
12592
  }
12590
12593
  function p() {
@@ -12598,15 +12601,15 @@ const KgButtonCreate = defineComponent({
12598
12601
  return e.kgText ? e.kgText : n.t("kg.create");
12599
12602
  }
12600
12603
  function y() {
12601
- var C, T, M, E;
12604
+ var C, k, I, E;
12602
12605
  return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isCreating.value ? null : createVNode(Button, {
12603
12606
  type: "primary",
12604
12607
  disabled: u.value,
12605
12608
  onClick: m,
12606
12609
  class: a.class,
12607
12610
  "kg-id": (C = c.value) == null ? void 0 : C.id,
12608
- "kg-frm_id": (T = c.value) == null ? void 0 : T.frm_id,
12609
- "kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
12611
+ "kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
12612
+ "kg-var_nam": (I = c.value) == null ? void 0 : I.var_nam,
12610
12613
  "kg-cmd": (E = c.value) == null ? void 0 : E.cmd
12611
12614
  }, {
12612
12615
  default: () => [p(), _()]
@@ -12623,7 +12626,7 @@ const KgButtonCreate = defineComponent({
12623
12626
  type: "primary",
12624
12627
  ghost: !d.value,
12625
12628
  disabled: d.value,
12626
- onClick: k
12629
+ onClick: T
12627
12630
  }, {
12628
12631
  default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
12629
12632
  })]);
@@ -12635,8 +12638,8 @@ const KgButtonCreate = defineComponent({
12635
12638
  props: getProps$f(),
12636
12639
  setup(e) {
12637
12640
  const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
12638
- var c, u, d, m, v, k, p, _;
12639
- 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 && ((k = (v = a.selectedRows.value) == null ? void 0 : v.length) != null ? k : 0) > 1 || ((p = n.value) == null ? void 0 : p.permission_type) === 2 && !t.p((_ = n.value) == null ? void 0 : _.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12641
+ var c, u, d, m, v, T, p, _;
12642
+ 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 && ((T = (v = a.selectedRows.value) == null ? void 0 : v.length) != null ? T : 0) > 1 || ((p = n.value) == null ? void 0 : p.permission_type) === 2 && !t.p((_ = n.value) == null ? void 0 : _.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12640
12643
  });
12641
12644
  async function i() {
12642
12645
  e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
@@ -12673,29 +12676,29 @@ const KgButtonCreate = defineComponent({
12673
12676
  props: getProps$f(),
12674
12677
  setup(e) {
12675
12678
  const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
12676
- var k, p;
12677
- return o.value ? (p = (k = o.value) == null ? void 0 : k.cmd) != null ? p : "" : null;
12679
+ var T, p;
12680
+ return o.value ? (p = (T = o.value) == null ? void 0 : T.cmd) != null ? p : "" : null;
12678
12681
  }), s = computed(() => {
12679
- var k, p;
12680
- return (p = (k = o.value) == null ? void 0 : k.cmd_method) != null ? p : "GET";
12682
+ var T, p;
12683
+ return (p = (T = o.value) == null ? void 0 : T.cmd_method) != null ? p : "GET";
12681
12684
  }), l = computed(() => {
12682
- var p, _, y, b, C, T;
12683
- let k = {
12685
+ var p, _, y, b, C, k;
12686
+ let T = {
12684
12687
  ...(p = a.model.value) != null ? p : {}
12685
12688
  };
12686
- return o.value && (k = {
12687
- ...k,
12689
+ return o.value && (T = {
12690
+ ...T,
12688
12691
  ...KgVarUtil.parseCommandParameter((y = (_ = o.value) == null ? void 0 : _.cmd_prm) != null ? y : "")
12689
- }), (b = r.varGridConfig.value) != null && b.cmd_prm && (k = {
12690
- ...k,
12692
+ }), (b = r.varGridConfig.value) != null && b.cmd_prm && (T = {
12693
+ ...T,
12691
12694
  ...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
12692
- }), ((T = r.varGridConfig.value) == null ? void 0 : T.convert_sort_field_to_under_score_flg) === 1 && k.column && (k.column = snakeCase$1(k.column)), k;
12695
+ }), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 && T.column && (T.column = snakeCase$1(T.column)), T;
12693
12696
  }), c = computed(() => {
12694
- var k, p, _, y, b, C, T, M;
12695
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((k = o.value) == null ? void 0 : k.dis_no_select_flg) === 1 && ((_ = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? _ : 0) === 0 || ((y = o.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((C = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? C : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !t.p((M = o.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12697
+ var T, p, _, y, b, C, k, I;
12698
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((T = o.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((_ = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? _ : 0) === 0 || ((y = o.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 = o.value) == null ? void 0 : k.permission_type) === 2 && !t.p((I = o.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12696
12699
  }), u = ref(!1);
12697
12700
  async function d() {
12698
- var k, p, _;
12701
+ var T, p, _;
12699
12702
  if (!(e.onKgClick && await e.onKgClick())) {
12700
12703
  if (!i.value) {
12701
12704
  KgLogger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -12714,7 +12717,7 @@ const KgButtonCreate = defineComponent({
12714
12717
  joinParamsToUrl: !0,
12715
12718
  isTransformResponse: !1
12716
12719
  });
12717
- KgUtil.downloadFile(y, `${r.t((p = (k = o.value) == null ? void 0 : k.export_excel_filename) != null ? p : "export").value}.${(_ = o.value) == null ? void 0 : _.export_excel_suffix}`);
12720
+ KgUtil.downloadFile(y, `${r.t((p = (T = o.value) == null ? void 0 : T.export_excel_filename) != null ? p : "export").value}.${(_ = o.value) == null ? void 0 : _.export_excel_suffix}`);
12718
12721
  } catch (y) {
12719
12722
  throw y;
12720
12723
  } finally {
@@ -12733,14 +12736,14 @@ const KgButtonCreate = defineComponent({
12733
12736
  return e.kgText ? e.kgText : t.t("kg.export");
12734
12737
  }
12735
12738
  return () => {
12736
- var k, p, _, y;
12739
+ var T, p, _, y;
12737
12740
  return createVNode(Button, {
12738
12741
  type: "primary",
12739
12742
  disabled: c.value,
12740
12743
  ghost: !e.kgPrimary && !c.value,
12741
12744
  loading: u.value,
12742
12745
  onClick: d,
12743
- "kg-id": (k = o.value) == null ? void 0 : k.id,
12746
+ "kg-id": (T = o.value) == null ? void 0 : T.id,
12744
12747
  "kg-frm_id": (p = o.value) == null ? void 0 : p.frm_id,
12745
12748
  "kg-var_nam": (_ = o.value) == null ? void 0 : _.var_nam,
12746
12749
  "kg-cmd": (y = o.value) == null ? void 0 : y.cmd
@@ -12773,8 +12776,8 @@ const KgButtonCreate = defineComponent({
12773
12776
  ...KgVarUtil.parseCommandParameter((C = (b = s.value) == null ? void 0 : b.cmd_prm) != null ? C : "")
12774
12777
  }), _;
12775
12778
  }), d = computed(() => {
12776
- var _, y, b, C, T, M, E, N;
12777
- return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = s.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((b = (y = i.selectedRows.value) == null ? void 0 : y.length) != null ? b : 0) === 0 || ((C = s.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((M = (T = i.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) > 1 || ((E = s.value) == null ? void 0 : E.permission_type) === 2 && !a.p((N = s.value) == null ? void 0 : N.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12779
+ var _, y, b, C, k, I, E, N;
12780
+ return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = s.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((b = (y = i.selectedRows.value) == null ? void 0 : y.length) != null ? b : 0) === 0 || ((C = s.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((I = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) > 1 || ((E = s.value) == null ? void 0 : E.permission_type) === 2 && !a.p((N = s.value) == null ? void 0 : N.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12778
12781
  }), m = ref(!1);
12779
12782
  async function v(_) {
12780
12783
  if (!l.value)
@@ -12804,7 +12807,7 @@ const KgButtonCreate = defineComponent({
12804
12807
  }
12805
12808
  return !1;
12806
12809
  }
12807
- function k() {
12810
+ function T() {
12808
12811
  return m.value ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
12809
12812
  class: "anticon"
12810
12813
  }, [createVNode(Icon, {
@@ -12833,7 +12836,7 @@ const KgButtonCreate = defineComponent({
12833
12836
  "kg-var_nam": (b = s.value) == null ? void 0 : b.var_nam,
12834
12837
  "kg-cmd": (C = s.value) == null ? void 0 : C.cmd
12835
12838
  }, {
12836
- default: () => [k(), p()]
12839
+ default: () => [T(), p()]
12837
12840
  })];
12838
12841
  }
12839
12842
  });
@@ -12849,8 +12852,8 @@ const KgButtonCreate = defineComponent({
12849
12852
  var m, v;
12850
12853
  return (v = (m = n.value) == null ? void 0 : m.cmd_method) != null ? v : "GET";
12851
12854
  }), s = computed(() => {
12852
- var m, v, k, p, _, y, b, C;
12853
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((m = n.value) == null ? void 0 : m.dis_no_select_flg) === 1 && ((k = (v = a.selectedRows.value) == null ? void 0 : v.length) != null ? k : 0) === 0 || ((p = n.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((y = (_ = a.selectedRows.value) == null ? void 0 : _.length) != null ? y : 0) > 1 || ((b = n.value) == null ? void 0 : b.permission_type) === 2 && !t.p((C = n.value) == null ? void 0 : C.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12855
+ var m, v, T, p, _, y, b, C;
12856
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((m = n.value) == null ? void 0 : m.dis_no_select_flg) === 1 && ((T = (v = a.selectedRows.value) == null ? void 0 : v.length) != null ? T : 0) === 0 || ((p = n.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((y = (_ = a.selectedRows.value) == null ? void 0 : _.length) != null ? y : 0) > 1 || ((b = n.value) == null ? void 0 : b.permission_type) === 2 && !t.p((C = n.value) == null ? void 0 : C.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12854
12857
  }), l = ref(!1);
12855
12858
  async function c() {
12856
12859
  var m;
@@ -12891,7 +12894,7 @@ const KgButtonCreate = defineComponent({
12891
12894
  return e.kgText ? e.kgText : t.t("kg.downloadImportTemplate");
12892
12895
  }
12893
12896
  return () => {
12894
- var m, v, k, p;
12897
+ var m, v, T, p;
12895
12898
  return createVNode(Button, {
12896
12899
  type: "primary",
12897
12900
  disabled: s.value,
@@ -12900,7 +12903,7 @@ const KgButtonCreate = defineComponent({
12900
12903
  onClick: c,
12901
12904
  "kg-id": (m = n.value) == null ? void 0 : m.id,
12902
12905
  "kg-frm_id": (v = n.value) == null ? void 0 : v.frm_id,
12903
- "kg-var_nam": (k = n.value) == null ? void 0 : k.var_nam,
12906
+ "kg-var_nam": (T = n.value) == null ? void 0 : T.var_nam,
12904
12907
  "kg-cmd": (p = n.value) == null ? void 0 : p.cmd
12905
12908
  }, {
12906
12909
  default: () => [u(), d()]
@@ -12912,11 +12915,11 @@ const KgButtonCreate = defineComponent({
12912
12915
  props: getProps$f(),
12913
12916
  setup(e) {
12914
12917
  const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
12915
- var u, d, m, v, k, p, _, y;
12916
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((u = o.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 = o.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((p = (k = n.selectedRows.value) == null ? void 0 : k.length) != null ? p : 0) > 1 || ((_ = o.value) == null ? void 0 : _.permission_type) === 2 && !t.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12918
+ var u, d, m, v, T, p, _, y;
12919
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((u = o.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 = o.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((p = (T = n.selectedRows.value) == null ? void 0 : T.length) != null ? p : 0) > 1 || ((_ = o.value) == null ? void 0 : _.permission_type) === 2 && !t.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12917
12920
  });
12918
12921
  async function s() {
12919
- var v, k, p;
12922
+ var v, T, p;
12920
12923
  if (e.onKgClick && await e.onKgClick())
12921
12924
  return;
12922
12925
  const u = (v = e.kgButton) == null ? void 0 : v.cmd;
@@ -12928,19 +12931,19 @@ const KgButtonCreate = defineComponent({
12928
12931
  }
12929
12932
  let d = null;
12930
12933
  const m = async () => {
12931
- var y, b, C, T, M, E;
12934
+ var y, b, C, k, I, E;
12932
12935
  d == null || d.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
12933
12936
  const _ = n.selectedRows.value;
12934
12937
  try {
12935
12938
  await httpClient().request({
12936
12939
  method: (b = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? b : "POST",
12937
12940
  url: u,
12938
- params: KgVarUtil.parseCommandParameter((T = (C = e.kgButton) == null ? void 0 : C.cmd_prm) != null ? T : ""),
12941
+ params: KgVarUtil.parseCommandParameter((k = (C = e.kgButton) == null ? void 0 : C.cmd_prm) != null ? k : ""),
12939
12942
  data: _ != null ? _ : []
12940
- }), ((M = e.kgButton) == null ? void 0 : M.reload_all_after_done_flg) === 1 && (((E = e.kgButton) == null ? void 0 : E.re_select_after_reload_flg) !== 0 && n.onRetrieve(async ({
12943
+ }), ((I = e.kgButton) == null ? void 0 : I.reload_all_after_done_flg) === 1 && (((E = e.kgButton) == null ? void 0 : E.re_select_after_reload_flg) !== 0 && n.onRetrieve(async ({
12941
12944
  datas: N
12942
12945
  }) => {
12943
- const I = N.value, A = intersectionWith$1(I, _ != null ? _ : [], (w, F) => (w == null ? void 0 : w[n.id.value]) === (F == null ? void 0 : F[n.id.value]));
12946
+ const M = N.value, A = intersectionWith$1(M, _ != null ? _ : [], (w, F) => (w == null ? void 0 : w[n.id.value]) === (F == null ? void 0 : F[n.id.value]));
12944
12947
  return A.length > 0 && n.store.setSelectedRows(r.formID, A), !1;
12945
12948
  }, !0), a.search(!0));
12946
12949
  } catch (N) {
@@ -12949,7 +12952,7 @@ const KgButtonCreate = defineComponent({
12949
12952
  r.store.setIsOtherRequesting(r.formID, !1), d == null || d.hideLoading();
12950
12953
  }
12951
12954
  };
12952
- if (((k = e.kgButton) == null ? void 0 : k.show_modal_flg) === 1) {
12955
+ if (((T = e.kgButton) == null ? void 0 : T.show_modal_flg) === 1) {
12953
12956
  const _ = KgUtil.tryParseJSON((p = e.kgButton) == null ? void 0 : p.modal_props);
12954
12957
  typeof _.content == "string" && (_.content = r.t(_.content).value), d = KgUtil.confirm({
12955
12958
  onOk: () => m(),
@@ -13035,17 +13038,17 @@ const KgButtonCreate = defineComponent({
13035
13038
  const n = useKg(), o = useKgVar(), i = useKgTable(), s = useKgButton(), l = useKgSubmit();
13036
13039
  s.store.$onAction(async ({
13037
13040
  name: C,
13038
- args: T
13041
+ args: k
13039
13042
  }) => {
13040
13043
  switch (C) {
13041
13044
  case "click":
13042
- T[0] === o.formID && await m();
13045
+ k[0] === o.formID && await m();
13043
13046
  break;
13044
13047
  }
13045
13048
  });
13046
13049
  const c = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), u = computed(() => {
13047
- var C, T, M, E, N, I, A, w;
13048
- return o.isCreating.value || o.isCopying.value || o.isDeleting.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((M = (T = i.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((I = (N = i.selectedRows.value) == null ? void 0 : N.length) != null ? I : 0) > 1 || ((A = c.value) == null ? void 0 : A.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13050
+ var C, k, I, E, N, M, A, w;
13051
+ return o.isCreating.value || o.isCopying.value || o.isDeleting.value || i.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((I = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((M = (N = i.selectedRows.value) == null ? void 0 : N.length) != null ? M : 0) > 1 || ((A = c.value) == null ? void 0 : A.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13049
13052
  }), d = computed(() => !!o.isUpdatingRequesting.value);
13050
13053
  async function m() {
13051
13054
  e.onKgClick && await e.onKgClick() || await s.store.emit(o.formID, "updateBeforeClick", {
@@ -13056,7 +13059,7 @@ const KgButtonCreate = defineComponent({
13056
13059
  function v() {
13057
13060
  s.store.emit(o.formID, "submitSave");
13058
13061
  }
13059
- function k() {
13062
+ function T() {
13060
13063
  s.store.emit(o.formID, "submitCancel");
13061
13064
  }
13062
13065
  function p() {
@@ -13070,7 +13073,7 @@ const KgButtonCreate = defineComponent({
13070
13073
  return e.kgText ? e.kgText : n.t("kg.update");
13071
13074
  }
13072
13075
  function y() {
13073
- var C, T, M, E;
13076
+ var C, k, I, E;
13074
13077
  return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isUpdating.value ? null : createVNode(Button, {
13075
13078
  type: "primary",
13076
13079
  disabled: u.value,
@@ -13078,8 +13081,8 @@ const KgButtonCreate = defineComponent({
13078
13081
  onClick: m,
13079
13082
  class: a.class,
13080
13083
  "kg-id": (C = c.value) == null ? void 0 : C.id,
13081
- "kg-frm_id": (T = c.value) == null ? void 0 : T.frm_id,
13082
- "kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
13084
+ "kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
13085
+ "kg-var_nam": (I = c.value) == null ? void 0 : I.var_nam,
13083
13086
  "kg-cmd": (E = c.value) == null ? void 0 : E.cmd
13084
13087
  }, {
13085
13088
  default: () => [p(), _()]
@@ -13096,7 +13099,7 @@ const KgButtonCreate = defineComponent({
13096
13099
  type: "primary",
13097
13100
  ghost: !d.value,
13098
13101
  disabled: d.value,
13099
- onClick: k
13102
+ onClick: T
13100
13103
  }, {
13101
13104
  default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
13102
13105
  })]);
@@ -13204,7 +13207,7 @@ const getProps$e = () => ({
13204
13207
  return null;
13205
13208
  switch ((_ = n.varGridConfig.value) == null ? void 0 : _.button_display_type) {
13206
13209
  case KG_BUTTON_DISPLAY_TYPE.SELECT:
13207
- return k();
13210
+ return T();
13208
13211
  default:
13209
13212
  return v();
13210
13213
  }
@@ -13226,7 +13229,7 @@ const getProps$e = () => ({
13226
13229
  var p;
13227
13230
  return (p = n.varButtons.value) == null ? void 0 : p.filter((_) => _.typ !== KG_BUTTON_TYPE.SEARCH).map((_) => m(_));
13228
13231
  }
13229
- function k() {
13232
+ function T() {
13230
13233
  return createVNode(Dropdown, {
13231
13234
  trigger: "click",
13232
13235
  overlayClassName: "kg-button-dropdown"
@@ -13670,9 +13673,9 @@ const leftVarProfileDetailColumns = (e) => {
13670
13673
  row: b,
13671
13674
  model: C
13672
13675
  }) => {
13673
- var M, E, N;
13674
- const T = s.store.getSystemVarProfileDetails(s.formID);
13675
- switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
13676
+ var I, E, N;
13677
+ const k = s.store.getSystemVarProfileDetails(s.formID);
13678
+ switch (l.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
13676
13679
  case p:
13677
13680
  c.value = [];
13678
13681
  break;
@@ -13681,24 +13684,24 @@ const leftVarProfileDetailColumns = (e) => {
13681
13684
  if (b != null && b.id)
13682
13685
  try {
13683
13686
  i.store.setIsLoading(a.formID, !0);
13684
- const I = await QueryByID({
13687
+ const M = await QueryByID({
13685
13688
  params: {
13686
13689
  id: b.id
13687
13690
  }
13688
13691
  });
13689
13692
  l.value = l.value.map((w) => {
13690
13693
  var $;
13691
- const F = ($ = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : $.find((P) => P.var_nam === w.var_nam);
13694
+ const F = ($ = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : $.find((P) => P.var_nam === w.var_nam);
13692
13695
  return F ? {
13693
13696
  ...w,
13694
13697
  ...F,
13695
13698
  id: w.id
13696
13699
  } : w;
13697
13700
  });
13698
- const A = (E = (M = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : M.map((w) => w.var_nam)) != null ? E : [];
13701
+ const A = (E = (I = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : I.map((w) => w.var_nam)) != null ? E : [];
13699
13702
  c.value = l.value.filter((w) => A.includes(w.var_nam)).map((w) => w.id);
13700
- } catch (I) {
13701
- throw I;
13703
+ } catch (M) {
13704
+ throw M;
13702
13705
  } finally {
13703
13706
  i.store.setIsLoading(a.formID, !1);
13704
13707
  }
@@ -13747,25 +13750,25 @@ const leftVarProfileDetailColumns = (e) => {
13747
13750
  model: y,
13748
13751
  varVariableConfig: b,
13749
13752
  varProfileDetail: C,
13750
- varSubmitField: T
13753
+ varSubmitField: k
13751
13754
  }) => createVNode(Transfer, {
13752
13755
  dataSource: l.value,
13753
13756
  targetKeys: c.value,
13754
- "onUpdate:targetKeys": (M) => c.value = M,
13755
- rowKey: (M) => M.id,
13757
+ "onUpdate:targetKeys": (I) => c.value = I,
13758
+ rowKey: (I) => I.id,
13756
13759
  showSearch: !0,
13757
13760
  showSelectAll: !1,
13758
13761
  searchPlaceholder: " ",
13759
- filterOption: (M, E) => {
13762
+ filterOption: (I, E) => {
13760
13763
  var N;
13761
- return !!((N = E.var_nam) != null && N.includes(M));
13764
+ return !!((N = E.var_nam) != null && N.includes(I));
13762
13765
  }
13763
13766
  }, {
13764
13767
  children: ({
13765
- direction: M,
13768
+ direction: I,
13766
13769
  filteredItems: E,
13767
13770
  selectedKeys: N,
13768
- disabled: I,
13771
+ disabled: M,
13769
13772
  onItemSelectAll: A,
13770
13773
  onItemSelect: w
13771
13774
  }) => createVNode(Table, {
@@ -13773,17 +13776,17 @@ const leftVarProfileDetailColumns = (e) => {
13773
13776
  class: "kg-flex-table",
13774
13777
  size: "small",
13775
13778
  scroll: {
13776
- x: M === "left" ? "370px" : "1244px",
13779
+ x: I === "left" ? "370px" : "1244px",
13777
13780
  y: "auto"
13778
13781
  },
13779
- columns: M === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
13782
+ columns: I === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
13780
13783
  rowKey: "id",
13781
13784
  dataSource: E,
13782
13785
  customRow: (F) => ({
13783
- onClick: ($) => k($, F, M, N)
13786
+ onClick: ($) => T($, F, I, N)
13784
13787
  }),
13785
13788
  rowSelection: m({
13786
- disabled: I,
13789
+ disabled: M,
13787
13790
  selectedKeys: N,
13788
13791
  onItemSelectAll: A,
13789
13792
  onItemSelect: w
@@ -13805,16 +13808,16 @@ const leftVarProfileDetailColumns = (e) => {
13805
13808
  getCheckboxProps: (C) => ({
13806
13809
  disabled: p || C.disabled
13807
13810
  }),
13808
- onSelectAll(C, T) {
13809
- const M = T.filter((E) => !E.disabled).map(({
13811
+ onSelectAll(C, k) {
13812
+ const I = k.filter((E) => !E.disabled).map(({
13810
13813
  key: E
13811
13814
  }) => E);
13812
- y(M, C);
13815
+ y(I, C);
13813
13816
  },
13814
13817
  onSelect({
13815
13818
  key: C
13816
- }, T) {
13817
- b(C, T);
13819
+ }, k) {
13820
+ b(C, k);
13818
13821
  },
13819
13822
  selectedRowKeys: _,
13820
13823
  columnWidth: 32
@@ -13828,7 +13831,7 @@ const leftVarProfileDetailColumns = (e) => {
13828
13831
  immediate: !0
13829
13832
  });
13830
13833
  }
13831
- function k(p, _, y, b) {
13834
+ function T(p, _, y, b) {
13832
13835
  if (!KgDomUtil.isNotClickable(p.target, ["ant-input"]))
13833
13836
  switch (b.length = 0, p.detail) {
13834
13837
  case 1:
@@ -14000,7 +14003,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
14000
14003
  kgHeight: d.value
14001
14004
  });
14002
14005
  _useLayoutHeaderResizeObserver(), _useFormModel(m, v);
14003
- const k = computed(() => {
14006
+ const T = computed(() => {
14004
14007
  var O, R;
14005
14008
  return !!(o.isRetrieving.value || ((O = a.varButtonSearch.value) == null ? void 0 : O.permission_type) === 2 && !r.p((R = a.varButtonSearch.value) == null ? void 0 : R.permission_code) || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value);
14006
14009
  }), p = computed(() => !!(o.isRetrieving.value || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value)), _ = computed(() => !!o.isRetrieving.value), y = ref({
@@ -14009,7 +14012,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
14009
14012
  var O, R, x;
14010
14013
  if (a.t((O = a.varButtonSearch.value) == null ? void 0 : O.var_nam).value !== ((R = a.varButtonSearch.value) == null ? void 0 : R.var_nam))
14011
14014
  return a.t((x = a.varButtonSearch.value) == null ? void 0 : x.var_nam).value;
14012
- }), T = computed(() => {
14015
+ }), k = computed(() => {
14013
14016
  var O;
14014
14017
  switch ((O = a.varButtonSearch.value) == null ? void 0 : O.primary_flg) {
14015
14018
  case 1:
@@ -14019,15 +14022,15 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
14019
14022
  default:
14020
14023
  return !0;
14021
14024
  }
14022
- }), M = computed(() => !!(a.isRetrieving.value || a.isRetrievingVarProfileMaster.value || l.value && !!a.isOtherRequesting.value)), E = computed(() => !!a.isRetrieving.value || !!a.isRetrievingVarProfileMaster.value), N = computed(() => {
14025
+ }), I = computed(() => !!(a.isRetrieving.value || a.isRetrievingVarProfileMaster.value || l.value && !!a.isOtherRequesting.value)), E = computed(() => !!a.isRetrieving.value || !!a.isRetrievingVarProfileMaster.value), N = computed(() => {
14023
14026
  let O = "kg-search";
14024
14027
  return i.value && (O += " kg-search--visible"), l.value && (O += " kg-search--teleport"), O;
14025
14028
  });
14026
14029
  onUnmounted(() => {
14027
14030
  n.store.dispose(a.formID);
14028
14031
  });
14029
- function I(O = !1) {
14030
- k.value || (i.value ? m.value && m.value.validate().then(() => {
14032
+ function M(O = !1) {
14033
+ T.value || (i.value ? m.value && m.value.validate().then(() => {
14031
14034
  n.store.emit(a.formID, "search", {
14032
14035
  resetPageIndex: O
14033
14036
  });
@@ -14039,7 +14042,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
14039
14042
  resetPageIndex: O
14040
14043
  }));
14041
14044
  }
14042
- n.store.setSearchFn(a.formID, I);
14045
+ n.store.setSearchFn(a.formID, M);
14043
14046
  function A() {
14044
14047
  var O;
14045
14048
  (O = m.value) == null || O.resetFields(), i.value ? m.value && m.value.validate().then(() => {
@@ -14052,7 +14055,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
14052
14055
  }
14053
14056
  n.store.setResetFn(a.formID, A);
14054
14057
  function w() {
14055
- return I(!0), Promise.resolve(!0);
14058
+ return M(!0), Promise.resolve(!0);
14056
14059
  }
14057
14060
  function F() {
14058
14061
  var O;
@@ -14101,8 +14104,8 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
14101
14104
  var O, R, x, G, H;
14102
14105
  return createVNode(Fragment, null, [$(), !(((O = a.varButtonSearch.value) == null ? void 0 : O.permission_type) !== 2 && !r.p((R = a.varButtonSearch.value) == null ? void 0 : R.permission_code)) && createVNode(Button, {
14103
14106
  type: "primary",
14104
- ghost: !k.value,
14105
- disabled: k.value,
14107
+ ghost: !T.value,
14108
+ disabled: T.value,
14106
14109
  onClick: A,
14107
14110
  class: "kg-search-btn-reset"
14108
14111
  }, {
@@ -14113,7 +14116,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
14113
14116
  kgIcon: (G = a.varButtonSearch.value) == null ? void 0 : G.icon,
14114
14117
  kgText: C.value,
14115
14118
  kgColor: (H = a.varButtonSearch.value) == null ? void 0 : H.color,
14116
- kgPrimary: T.value,
14119
+ kgPrimary: k.value,
14117
14120
  kgLoading: _.value,
14118
14121
  onKgClick: w
14119
14122
  }, null)]);
@@ -14136,7 +14139,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
14136
14139
  return [(R = a.currentVarProfileDetails.value) == null ? void 0 : R.map((x) => createVNode(KgForm.Item, {
14137
14140
  kgVarName: x.var_nam,
14138
14141
  kgContext: KG_FORM_CONTEXT.SEARCH,
14139
- onKgSubmit: () => I(!0)
14142
+ onKgSubmit: () => M(!0)
14140
14143
  }, null))];
14141
14144
  }
14142
14145
  })]
@@ -14167,7 +14170,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
14167
14170
  default: () => [createVNode("div", {
14168
14171
  class: "ant-collapse-header"
14169
14172
  }, [createVNode(Spin, {
14170
- spinning: M.value
14173
+ spinning: I.value
14171
14174
  }, {
14172
14175
  default: () => [F(), createVNode("div", {
14173
14176
  class: "ant-collapse-extra"
@@ -14243,30 +14246,30 @@ function useMagicKeys(e = {}) {
14243
14246
  }
14244
14247
  function v(p, _) {
14245
14248
  var y, b;
14246
- const C = (y = p.key) == null ? void 0 : y.toLowerCase(), T = (b = p.code) == null ? void 0 : b.toLowerCase(), M = [T, C].filter(Boolean);
14247
- T && (_ ? i.add(p.code) : i.delete(p.code));
14248
- for (const E of M)
14249
+ const C = (y = p.key) == null ? void 0 : y.toLowerCase(), k = (b = p.code) == null ? void 0 : b.toLowerCase(), I = [k, C].filter(Boolean);
14250
+ k && (_ ? i.add(p.code) : i.delete(p.code));
14251
+ for (const E of I)
14249
14252
  u.add(E), d(E, _);
14250
14253
  C === "meta" && !_ ? (c.forEach((E) => {
14251
14254
  i.delete(E), d(E, !1);
14252
- }), c.clear()) : typeof p.getModifierState == "function" && p.getModifierState("Meta") && _ && [...i, ...M].forEach((E) => c.add(E));
14255
+ }), c.clear()) : typeof p.getModifierState == "function" && p.getModifierState("Meta") && _ && [...i, ...I].forEach((E) => c.add(E));
14253
14256
  }
14254
14257
  r && (useEventListener(r, "keydown", (p) => (v(p, !0), o(p)), { passive: n }), useEventListener(r, "keyup", (p) => (v(p, !1), o(p)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
14255
- const k = new Proxy(l, {
14258
+ const T = new Proxy(l, {
14256
14259
  get(p, _, y) {
14257
14260
  if (typeof _ != "string")
14258
14261
  return Reflect.get(p, _, y);
14259
14262
  if (_ = _.toLowerCase(), _ in a && (_ = a[_]), !(_ in l))
14260
14263
  if (/[+_-]/.test(_)) {
14261
- const C = _.split(/[+_-]/g).map((T) => T.trim());
14262
- l[_] = computed(() => C.every((T) => unref(k[T])));
14264
+ const C = _.split(/[+_-]/g).map((k) => k.trim());
14265
+ l[_] = computed(() => C.every((k) => unref(T[k])));
14263
14266
  } else
14264
14267
  l[_] = ref(!1);
14265
14268
  const b = Reflect.get(p, _, y);
14266
14269
  return t ? unref(b) : b;
14267
14270
  }
14268
14271
  });
14269
- return k;
14272
+ return T;
14270
14273
  }
14271
14274
  var SwipeDirection;
14272
14275
  (function(e) {
@@ -14651,7 +14654,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14651
14654
  onSelect: ($) => N($)
14652
14655
  }), v = ref({
14653
14656
  visible: !1
14654
- }), k = computed(() => !!(unref(u) || unref(n) || unref(o) || unref(i))), p = computed(() => {
14657
+ }), T = computed(() => !!(unref(u) || unref(n) || unref(o) || unref(i))), p = computed(() => {
14655
14658
  var $;
14656
14659
  return !!u.value || (($ = a.getSelectedVarCatalog) == null ? void 0 : $.cust_lvl) === KG_CUSTOM_LEVEL.L0;
14657
14660
  }), _ = computed(() => !!(!unref(u) || unref(n) || unref(o))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
@@ -14726,7 +14729,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14726
14729
  o.value = !1;
14727
14730
  }
14728
14731
  }
14729
- function T({
14732
+ function k({
14730
14733
  isAllForm: $,
14731
14734
  isAllLanguage: P
14732
14735
  }) {
@@ -14741,7 +14744,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14741
14744
  var_text: ""
14742
14745
  }), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
14743
14746
  }
14744
- function M() {
14747
+ function I() {
14745
14748
  var P;
14746
14749
  c.value = without$1(c.value, u.value), u.value = null;
14747
14750
  const $ = (P = c.value[0]) != null ? P : null;
@@ -14773,15 +14776,15 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14773
14776
  }
14774
14777
  }) : (a.setSelectedVarCatalog(unref($)), d.value = [$.id]));
14775
14778
  }
14776
- function I() {
14779
+ function M() {
14777
14780
  v.value.visible = !0;
14778
14781
  }
14779
14782
  function A() {
14780
14783
  return createVNode("div", {
14781
14784
  class: "buttons"
14782
14785
  }, [createVNode(Button, {
14783
- onClick: I,
14784
- disabled: k.value,
14786
+ onClick: M,
14787
+ disabled: T.value,
14785
14788
  type: "primary"
14786
14789
  }, {
14787
14790
  default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
@@ -14823,7 +14826,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14823
14826
  class: "buttons"
14824
14827
  }, [createVNode(Button, {
14825
14828
  disabled: _.value,
14826
- onClick: M
14829
+ onClick: I
14827
14830
  }, _isSlot($ = t.t("common.cancelText")) ? $ : {
14828
14831
  default: () => [$]
14829
14832
  }), createVNode(Button, {
@@ -14862,7 +14865,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14862
14865
  }, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
14863
14866
  visible: v.value.visible,
14864
14867
  "onUpdate:visible": ($) => v.value.visible = $,
14865
- onKgOk: T
14868
+ onKgOk: k
14866
14869
  }, null)]);
14867
14870
  }
14868
14871
  }), columns = () => [{
@@ -15166,16 +15169,16 @@ const KgWarehouse$1 = "", getProps = () => ({
15166
15169
  emit: t
15167
15170
  }) {
15168
15171
  const r = useKg(), a = useKgWarehouse(), n = computed(() => {
15169
- let T = "jeecg-layout-header-action__item kg-warehouse";
15170
- return (!m.value || e.kgInvisible) && (T += " kg-warehouse--invisible"), T;
15172
+ let k = "jeecg-layout-header-action__item kg-warehouse";
15173
+ return (!m.value || e.kgInvisible) && (k += " kg-warehouse--invisible"), k;
15171
15174
  }), o = ref(""), i = a.warehouse, s = ref(null), l = ref(!1), c = reactive([{
15172
15175
  width: 80,
15173
15176
  align: "center",
15174
15177
  customRender: ({
15175
- record: T
15178
+ record: k
15176
15179
  }) => {
15177
15180
  var E;
15178
- return T.id === ((E = s.value) == null ? void 0 : E.id) ? createVNode("img", {
15181
+ return k.id === ((E = s.value) == null ? void 0 : E.id) ? createVNode("img", {
15179
15182
  src: WAREHOUSE_1890ff
15180
15183
  }, null) : createVNode("img", {
15181
15184
  src: WAREHOUSE_000000
@@ -15183,27 +15186,27 @@ const KgWarehouse$1 = "", getProps = () => ({
15183
15186
  }
15184
15187
  }, {
15185
15188
  customRender: ({
15186
- record: T
15189
+ record: k
15187
15190
  }) => {
15188
- var E, N, I;
15189
- const M = T;
15190
- return createVNode("div", null, [createVNode("div", null, [(E = M.whDsc) != null ? E : " ", createTextVNode(" - "), (N = M.whId) != null ? N : " "]), createVNode("div", {
15191
+ var E, N, M;
15192
+ const I = k;
15193
+ return createVNode("div", null, [createVNode("div", null, [(E = I.whDsc) != null ? E : " ", createTextVNode(" - "), (N = I.whId) != null ? N : " "]), createVNode("div", {
15191
15194
  class: "address"
15192
- }, [(I = M.adrId) != null ? I : " "])]);
15195
+ }, [(M = I.adrId) != null ? M : " "])]);
15193
15196
  }
15194
15197
  }]), u = ref([]), d = computed(() => {
15195
- var M;
15196
- const T = (M = o.value) == null ? void 0 : M.toUpperCase();
15198
+ var I;
15199
+ const k = (I = o.value) == null ? void 0 : I.toUpperCase();
15197
15200
  return u.value.filter((E) => {
15198
- var N, I, A, w, F, $;
15199
- return ((I = (N = E.whDsc) == null ? void 0 : N.toUpperCase()) == null ? void 0 : I.includes(T)) || ((w = (A = E.whId) == null ? void 0 : A.toUpperCase()) == null ? void 0 : w.includes(T)) || (($ = (F = E.adrId) == null ? void 0 : F.toUpperCase()) == null ? void 0 : $.includes(T));
15201
+ var N, M, A, w, F, $;
15202
+ return ((M = (N = E.whDsc) == null ? void 0 : N.toUpperCase()) == null ? void 0 : M.includes(k)) || ((w = (A = E.whId) == null ? void 0 : A.toUpperCase()) == null ? void 0 : w.includes(k)) || (($ = (F = E.adrId) == null ? void 0 : F.toUpperCase()) == null ? void 0 : $.includes(k));
15200
15203
  });
15201
15204
  }), m = computed(() => {
15202
- var T, M;
15203
- return ((M = (T = r.option.value) == null ? void 0 : T.KgWarehouse) == null ? void 0 : M.enable) !== !1;
15205
+ var k, I;
15206
+ return ((I = (k = r.option.value) == null ? void 0 : k.KgWarehouse) == null ? void 0 : I.enable) !== !1;
15204
15207
  });
15205
- watch(a.visible, (T) => {
15206
- !m.value || (T ? k() : p());
15208
+ watch(a.visible, (k) => {
15209
+ !m.value || (k ? T() : p());
15207
15210
  }, {
15208
15211
  immediate: !0
15209
15212
  }), onMounted(() => {
@@ -15212,15 +15215,15 @@ const KgWarehouse$1 = "", getProps = () => ({
15212
15215
  function v() {
15213
15216
  !m.value || a.store.setVisible(!0);
15214
15217
  }
15215
- function k() {
15218
+ function T() {
15216
15219
  s.value = a.warehouse.value, y();
15217
15220
  }
15218
15221
  function p() {
15219
15222
  o.value = "", u.value = [], s.value = null;
15220
15223
  }
15221
15224
  function _() {
15222
- var T;
15223
- !s.value || (e.kgInvisible ? (a.store.setWarehouse(s.value), t("kgOk")) : s.value.id !== ((T = a.warehouse.value) == null ? void 0 : T.id) && (a.store.setWarehouse(s.value), KgUtil.confirm({
15225
+ var k;
15226
+ !s.value || (e.kgInvisible ? (a.store.setWarehouse(s.value), t("kgOk")) : s.value.id !== ((k = a.warehouse.value) == null ? void 0 : k.id) && (a.store.setWarehouse(s.value), KgUtil.confirm({
15224
15227
  content: r.t("kg.KgWarehouse.reloadMessage"),
15225
15228
  kgHideCancelButton: !0,
15226
15229
  okButtonProps: {
@@ -15236,28 +15239,28 @@ const KgWarehouse$1 = "", getProps = () => ({
15236
15239
  l.value = !0;
15237
15240
  try {
15238
15241
  const {
15239
- records: T
15242
+ records: k
15240
15243
  } = await ListVO({
15241
15244
  params: {
15242
15245
  pageNo: 1,
15243
15246
  pageSize: 999
15244
15247
  }
15245
15248
  });
15246
- u.value = T != null ? T : [];
15247
- } catch (T) {
15248
- console.error(T);
15249
+ u.value = k != null ? k : [];
15250
+ } catch (k) {
15251
+ console.error(k);
15249
15252
  } finally {
15250
15253
  l.value = !1;
15251
15254
  }
15252
15255
  }
15253
- function b(T, M) {
15256
+ function b(k, I) {
15254
15257
  var E;
15255
- switch (T.detail) {
15258
+ switch (k.detail) {
15256
15259
  case 1:
15257
- ((E = s.value) == null ? void 0 : E.id) === M.id ? s.value = null : s.value = M;
15260
+ ((E = s.value) == null ? void 0 : E.id) === I.id ? s.value = null : s.value = I;
15258
15261
  break;
15259
15262
  case 2:
15260
- s.value = M, _();
15263
+ s.value = I, _();
15261
15264
  break;
15262
15265
  }
15263
15266
  }
@@ -15267,12 +15270,12 @@ const KgWarehouse$1 = "", getProps = () => ({
15267
15270
  placement: "bottomRight"
15268
15271
  }, {
15269
15272
  default: () => {
15270
- var T, M;
15271
- return [((T = i.value) == null ? void 0 : T.whDsc) || ((M = i.value) == null ? void 0 : M.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
15273
+ var k, I;
15274
+ return [((k = i.value) == null ? void 0 : k.whDsc) || ((I = i.value) == null ? void 0 : I.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
15272
15275
  }
15273
15276
  }), createVNode(KgModal, {
15274
15277
  visible: a.visible.value,
15275
- "onUpdate:visible": (T) => a.store.setVisible(T),
15278
+ "onUpdate:visible": (k) => a.store.setVisible(k),
15276
15279
  title: r.t("kg.KgWarehouse.title"),
15277
15280
  width: "500px",
15278
15281
  kgFullHeight: !1,
@@ -15289,7 +15292,7 @@ const KgWarehouse$1 = "", getProps = () => ({
15289
15292
  }, {
15290
15293
  default: () => [createVNode(Input, {
15291
15294
  value: o.value,
15292
- "onUpdate:value": (T) => o.value = T,
15295
+ "onUpdate:value": (k) => o.value = k,
15293
15296
  allowClear: !0,
15294
15297
  disabled: l.value,
15295
15298
  placeholder: r.t("kg.search")
@@ -15309,11 +15312,11 @@ const KgWarehouse$1 = "", getProps = () => ({
15309
15312
  dataSource: d.value,
15310
15313
  columns: c,
15311
15314
  class: "kg-flex-table",
15312
- customRow: (T) => {
15313
- var M;
15315
+ customRow: (k) => {
15316
+ var I;
15314
15317
  return {
15315
- class: T.id === ((M = s.value) == null ? void 0 : M.id) ? "selected" : "",
15316
- onClick: (E) => b(E, T)
15318
+ class: k.id === ((I = s.value) == null ? void 0 : I.id) ? "selected" : "",
15319
+ onClick: (E) => b(E, k)
15317
15320
  };
15318
15321
  }
15319
15322
  }, null)]