@kengic/vue 0.6.10-beta.7 → 0.6.10-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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;
@@ -5863,6 +5863,7 @@ const without$1 = without, en = {
5863
5863
  add: "Add",
5864
5864
  button: "Button",
5865
5865
  cancel: "Cancel",
5866
+ close: "Close",
5866
5867
  confirm: "Confirm",
5867
5868
  confirmDelete: "Confirm delete ?",
5868
5869
  copy: "Copy",
@@ -6005,6 +6006,7 @@ const without$1 = without, en = {
6005
6006
  add: "\u65B0\u589E",
6006
6007
  button: "\u6309\u94AE",
6007
6008
  cancel: "\u53D6\u6D88",
6009
+ close: "\u5173\u95ED",
6008
6010
  confirm: "\u786E\u8BA4",
6009
6011
  confirmDelete: "\u786E\u8BA4\u5220\u9664 ?",
6010
6012
  copy: "\u590D\u5236",
@@ -6364,7 +6366,7 @@ class KgVarUtil {
6364
6366
  return r;
6365
6367
  }
6366
6368
  static transformValueByControlType(t, r, a, n, o) {
6367
- var m, v, k;
6369
+ var m, v, T;
6368
6370
  const i = useKg(), s = useKgVar(t);
6369
6371
  let l = n;
6370
6372
  const c = /(.*)?({(.*)?})(.*)?/.exec(l);
@@ -6375,7 +6377,7 @@ class KgVarUtil {
6375
6377
  l = l.replace("{NOW}", a().format("YYYY-MM-DD HH:mm:ss"));
6376
6378
  break;
6377
6379
  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);
6380
+ l = l.replace("{USER.username}", (T = (v = (m = i.store).getUseUserStore) == null ? void 0 : v.call(m).userInfo) == null ? void 0 : T.username);
6379
6381
  break;
6380
6382
  }
6381
6383
  }
@@ -6383,7 +6385,7 @@ class KgVarUtil {
6383
6385
  if (!u)
6384
6386
  return l;
6385
6387
  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;
6388
+ 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
6389
  switch (o) {
6388
6390
  case "R":
6389
6391
  return _ || p;
@@ -6394,7 +6396,7 @@ class KgVarUtil {
6394
6396
  case "CP":
6395
6397
  return C || p;
6396
6398
  case "D":
6397
- return T || p;
6399
+ return k || p;
6398
6400
  }
6399
6401
  return p;
6400
6402
  })()) {
@@ -6637,22 +6639,22 @@ function createSetupStore(e, t, r = {}, a, n) {
6637
6639
  const l = {
6638
6640
  deep: !0
6639
6641
  };
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."));
6642
+ process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (M) => {
6643
+ 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
6644
  });
6643
6645
  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] = {});
6646
+ const T = a.state.value[e];
6647
+ !i && !T && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
6646
6648
  const p = ref({});
6647
- function _(I) {
6649
+ function _(M) {
6648
6650
  let A;
6649
- c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof I == "function" ? (I(a.state.value[e]), A = {
6651
+ c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof M == "function" ? (M(a.state.value[e]), A = {
6650
6652
  type: MutationType.patchFunction,
6651
6653
  storeId: e,
6652
6654
  events: v
6653
- }) : (mergeReactiveObjects(a.state.value[e], I), A = {
6655
+ }) : (mergeReactiveObjects(a.state.value[e], M), A = {
6654
6656
  type: MutationType.patchObject,
6655
- payload: I,
6657
+ payload: M,
6656
6658
  storeId: e,
6657
6659
  events: v
6658
6660
  }), nextTick().then(() => {
@@ -6665,7 +6667,7 @@ function createSetupStore(e, t, r = {}, a, n) {
6665
6667
  function b() {
6666
6668
  o.stop(), d = [], m = [], a._s.delete(e);
6667
6669
  }
6668
- function C(I, A) {
6670
+ function C(M, A) {
6669
6671
  return function() {
6670
6672
  setActivePinia(a);
6671
6673
  const w = Array.from(arguments), F = [], $ = [];
@@ -6677,7 +6679,7 @@ function createSetupStore(e, t, r = {}, a, n) {
6677
6679
  }
6678
6680
  triggerSubscriptions(m, {
6679
6681
  args: w,
6680
- name: I,
6682
+ name: M,
6681
6683
  store: E,
6682
6684
  after: P,
6683
6685
  onError: V
@@ -6691,20 +6693,20 @@ function createSetupStore(e, t, r = {}, a, n) {
6691
6693
  return D instanceof Promise ? D.then((O) => (triggerSubscriptions(F, O), O)).catch((O) => (triggerSubscriptions($, O), Promise.reject(O))) : (triggerSubscriptions(F, D), D);
6692
6694
  };
6693
6695
  }
6694
- const T = /* @__PURE__ */ markRaw({
6696
+ const k = /* @__PURE__ */ markRaw({
6695
6697
  actions: {},
6696
6698
  getters: {},
6697
6699
  state: [],
6698
6700
  hotState: p
6699
- }), M = {
6701
+ }), I = {
6700
6702
  _p: a,
6701
6703
  $id: e,
6702
6704
  $onAction: addSubscription.bind(null, m),
6703
6705
  $patch: _,
6704
6706
  $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({
6707
+ $subscribe(M, A = {}) {
6708
+ const w = addSubscription(d, M, A.detached, () => F()), F = o.run(() => watch(() => a.state.value[e], ($) => {
6709
+ (A.flush === "sync" ? u : c) && M({
6708
6710
  storeId: e,
6709
6711
  type: MutationType.direct,
6710
6712
  events: v
@@ -6716,29 +6718,29 @@ function createSetupStore(e, t, r = {}, a, n) {
6716
6718
  }, E = reactive(assign$1(
6717
6719
  process.env.NODE_ENV !== "production" && IS_CLIENT ? {
6718
6720
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
6719
- _hmrPayload: T
6721
+ _hmrPayload: k
6720
6722
  } : {},
6721
- M
6723
+ I
6722
6724
  ));
6723
6725
  a._s.set(e, E);
6724
6726
  const N = a._e.run(() => (o = effectScope(), o.run(() => t())));
6725
- for (const I in N) {
6726
- const A = N[I];
6727
+ for (const M in N) {
6728
+ const A = N[M];
6727
6729
  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);
6730
+ 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
6731
  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;
6732
+ const w = process.env.NODE_ENV !== "production" && n ? A : C(M, A);
6733
+ N[M] = w, process.env.NODE_ENV !== "production" && (k.actions[M] = A), s.actions[M] = A;
6732
6734
  } 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));
6735
+ 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
6736
  }
6735
6737
  if (assign$1(E, N), assign$1(toRaw(E), N), Object.defineProperty(E, "$state", {
6736
6738
  get: () => process.env.NODE_ENV !== "production" && n ? p.value : a.state.value[e],
6737
- set: (I) => {
6739
+ set: (M) => {
6738
6740
  if (process.env.NODE_ENV !== "production" && n)
6739
6741
  throw new Error("cannot set hotState");
6740
6742
  _((A) => {
6741
- assign$1(A, I);
6743
+ assign$1(A, M);
6742
6744
  });
6743
6745
  }
6744
6746
  }), process.env.NODE_ENV !== "production") {
@@ -6768,7 +6770,7 @@ function createSetupStore(e, t, r = {}, a, n) {
6768
6770
  w in A._hmrPayload.actions || del(E, w);
6769
6771
  }), E._hmrPayload = A._hmrPayload, E._getters = A._getters, E._hotUpdating = !1;
6770
6772
  });
6771
- const I = {
6773
+ const M = {
6772
6774
  writable: !0,
6773
6775
  configurable: !0,
6774
6776
  enumerable: !1
@@ -6776,13 +6778,13 @@ function createSetupStore(e, t, r = {}, a, n) {
6776
6778
  IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((A) => {
6777
6779
  Object.defineProperty(E, A, {
6778
6780
  value: E[A],
6779
- ...I
6781
+ ...M
6780
6782
  });
6781
6783
  });
6782
6784
  }
6783
- return a._p.forEach((I) => {
6785
+ return a._p.forEach((M) => {
6784
6786
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
6785
- const A = o.run(() => I({
6787
+ const A = o.run(() => M({
6786
6788
  store: E,
6787
6789
  app: a._a,
6788
6790
  pinia: a,
@@ -6790,7 +6792,7 @@ function createSetupStore(e, t, r = {}, a, n) {
6790
6792
  }));
6791
6793
  Object.keys(A || {}).forEach((w) => E._customProperties.add(w)), assign$1(E, A);
6792
6794
  } else
6793
- assign$1(E, o.run(() => I({
6795
+ assign$1(E, o.run(() => M({
6794
6796
  store: E,
6795
6797
  app: a._a,
6796
6798
  pinia: a,
@@ -6798,7 +6800,7 @@ function createSetupStore(e, t, r = {}, a, n) {
6798
6800
  })));
6799
6801
  }), 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
6802
  state: () => new MyClass()
6801
- Found in store "${E.$id}".`), k && i && r.hydrate && r.hydrate(E.$state, k), c = !0, u = !0, E;
6803
+ Found in store "${E.$id}".`), T && i && r.hydrate && r.hydrate(E.$state, T), c = !0, u = !0, E;
6802
6804
  }
6803
6805
  function defineStore(e, t, r) {
6804
6806
  let a, n;
@@ -7408,15 +7410,15 @@ const KgModal_Close = "", getProps$A = () => ({
7408
7410
  function v(b) {
7409
7411
  m(b);
7410
7412
  }
7411
- function k(b) {
7413
+ function T(b) {
7412
7414
  m(b), d();
7413
7415
  }
7414
7416
  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));
7417
+ 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
7418
  }
7417
- function _(b, C, T) {
7418
- return b.addEventListener(C, T), {
7419
- remove: () => b.removeEventListener(C, T)
7419
+ function _(b, C, k) {
7420
+ return b.addEventListener(C, k), {
7421
+ remove: () => b.removeEventListener(C, k)
7420
7422
  };
7421
7423
  }
7422
7424
  function y(b) {
@@ -7586,13 +7588,13 @@ function createStore(e, t, r) {
7586
7588
  var u = this[c];
7587
7589
  this[c] = function() {
7588
7590
  var m = slice(arguments, 0), v = this;
7589
- function k() {
7591
+ function T() {
7590
7592
  if (!!u)
7591
7593
  return each$6(arguments, function(_, y) {
7592
7594
  m[y] = _;
7593
7595
  }), u.apply(v, m);
7594
7596
  }
7595
- var p = [k].concat(m);
7597
+ var p = [T].concat(m);
7596
7598
  return l.apply(v, p);
7597
7599
  };
7598
7600
  },
@@ -8609,19 +8611,19 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
8609
8611
  varPossibilities: d,
8610
8612
  varButtons: m,
8611
8613
  varButtonConfig: v,
8612
- varSubmitConfig: k,
8614
+ varSubmitConfig: T,
8613
8615
  varSubmitFields: p,
8614
8616
  varProfile: _,
8615
8617
  varProfileConfig: y,
8616
8618
  varGrid: b,
8617
8619
  varGridConfig: C
8618
8620
  } = 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, {
8621
+ 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
8622
  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
8623
+ 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
8624
  }), this.varGridConfigMap.set(e, transformVarGridConfig(C != null ? C : null)), this.varGridMap.set(e, {
8623
8625
  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
8626
+ 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
8627
  }), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
8626
8628
  } catch (s) {
8627
8629
  throw s;
@@ -8784,7 +8786,7 @@ function useKgVar(e, t, r = 0) {
8784
8786
  const d = (Y) => computed(() => {
8785
8787
  var te, ae, oe;
8786
8788
  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(() => {
8789
+ }), 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
8790
  var Y, te;
8789
8791
  return (te = (Y = D.value) == null ? void 0 : Y.varProfileDetails) != null ? te : null;
8790
8792
  }), 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 +8795,17 @@ function useKgVar(e, t, r = 0) {
8793
8795
  store: u,
8794
8796
  isRetrieving: m,
8795
8797
  isRetrievingVarProfileMaster: v,
8796
- isRetrievingVarGridMaster: k,
8798
+ isRetrievingVarGridMaster: T,
8797
8799
  isCreating: p,
8798
8800
  isCreatingRequesting: _,
8799
8801
  isUpdating: y,
8800
8802
  isUpdatingRequesting: b,
8801
8803
  isCopying: C,
8802
- isCopyingRequesting: T,
8803
- isDeleting: M,
8804
+ isCopyingRequesting: k,
8805
+ isDeleting: I,
8804
8806
  isDeletingRequesting: E,
8805
8807
  isOtherRequesting: N,
8806
- varButtons: I,
8808
+ varButtons: M,
8807
8809
  varButtonSearch: A,
8808
8810
  varButtonCreate: w,
8809
8811
  varButtonUpdate: F,
@@ -8841,14 +8843,14 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
8841
8843
  }) {
8842
8844
  provide(DI_KG_VAR__KG_PROPS, computed(() => e.kgProps)), provide(DI_KG_VAR__KG_SLOTS, e.kgSlots);
8843
8845
  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;
8846
+ var m, v, T, p;
8845
8847
  switch (!0) {
8846
8848
  case r.isCreating.value:
8847
8849
  return ((m = a.value) == null ? void 0 : m.crt_flg) !== 0;
8848
8850
  case r.isUpdating.value:
8849
8851
  return ((v = a.value) == null ? void 0 : v.upt_flg) !== 0;
8850
8852
  case r.isCopying.value:
8851
- return ((k = a.value) == null ? void 0 : k.cpy_flg) !== 0;
8853
+ return ((T = a.value) == null ? void 0 : T.cpy_flg) !== 0;
8852
8854
  case r.isDeleting.value:
8853
8855
  return ((p = a.value) == null ? void 0 : p.del_flg) !== 0;
8854
8856
  }
@@ -8888,61 +8890,63 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
8888
8890
  slots: t,
8889
8891
  emit: r
8890
8892
  }) {
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, "");
8893
+ 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
8894
  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 : "";
8895
+ const c = useKgTable(s), u = computed(() => n.store.getVarLookup(n.formID, i)), d = computed(() => {
8896
+ var p;
8897
+ return ((p = u == null ? void 0 : u.value) == null ? void 0 : p.mult_flg) === 1;
8898
+ }), m = computed(() => {
8899
+ var p, _;
8900
+ return (_ = (p = u == null ? void 0 : u.value) == null ? void 0 : p.ret_fld) != null ? _ : "";
8899
8901
  });
8900
- l.onRowDoubleClick(async () => (await v(), !1));
8901
- function m() {
8902
+ c.onRowDoubleClick(async () => (await T(), !1));
8903
+ function v() {
8902
8904
  r("update:visible", !1);
8903
8905
  }
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 ? _ : [];
8906
+ async function T() {
8907
+ var p, _, y, b, C, k, I;
8908
+ if (d.value) {
8909
+ const E = (_ = (p = c.selectedRows) == null ? void 0 : p.value) != null ? _ : [], N = (y = E.map((A) => A[m.value])) != null ? y : [];
8908
8910
  await o.store.emit(o.formID, "lookupBeforeOk", {
8909
8911
  var_nam: i,
8910
8912
  isMultiple: !0,
8911
- values: E,
8912
- rows: M
8913
+ values: N,
8914
+ rows: E
8913
8915
  }) || (o.store.emit(o.formID, "lookupOk", {
8914
8916
  var_nam: i,
8917
+ model: l,
8915
8918
  isMultiple: !0,
8916
- values: E,
8917
- rows: M
8919
+ values: N,
8920
+ rows: E
8918
8921
  }), r("update:visible", !1));
8919
8922
  } 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 : "";
8923
+ 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
8924
  await o.store.emit(o.formID, "lookupBeforeOk", {
8922
8925
  var_nam: i,
8923
8926
  isMultiple: !1,
8924
- value: E,
8925
- row: M
8927
+ value: N,
8928
+ row: E
8926
8929
  }) || (o.store.emit(o.formID, "lookupOk", {
8927
8930
  var_nam: i,
8931
+ model: l,
8928
8932
  isMultiple: !1,
8929
- value: E,
8930
- row: M
8933
+ value: N,
8934
+ row: E
8931
8935
  }), r("update:visible", !1));
8932
8936
  }
8933
8937
  }
8934
8938
  return () => {
8935
- var k, p;
8939
+ var p, _;
8936
8940
  return createVNode(KgModal, {
8937
8941
  visible: e.visible,
8938
8942
  title: n.t(i).value,
8939
8943
  destroyOnClose: !0,
8940
8944
  okButtonProps: {
8941
- disabled: ((p = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? p : 0) === 0
8945
+ disabled: ((_ = (p = c.selectedRows.value) == null ? void 0 : p.length) != null ? _ : 0) === 0
8942
8946
  },
8943
8947
  wrapClassName: "kg-form-item-addon-lookup-modal",
8944
- onCancel: m,
8945
- onOk: v
8948
+ onCancel: v,
8949
+ onOk: T
8946
8950
  }, {
8947
8951
  default: () => [createVNode(KgVar, null, null)]
8948
8952
  });
@@ -9032,7 +9036,7 @@ function _useRules(e) {
9032
9036
  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
9037
  return {
9034
9038
  rules: computed(() => {
9035
- var l, c, u, d, m, v, k, p;
9039
+ var l, c, u, d, m, v, T, p;
9036
9040
  let s = [];
9037
9041
  switch (e.kgContext) {
9038
9042
  case KG_FORM_CONTEXT.SEARCH:
@@ -9072,7 +9076,7 @@ function _useRules(e) {
9072
9076
  }
9073
9077
  switch ((v = n.value) == null ? void 0 : v.data_type) {
9074
9078
  case KG_VAR_INPUT__DATA_TYPE.NUMBER:
9075
- const _ = (k = n.value) == null ? void 0 : k.min;
9079
+ const _ = (T = n.value) == null ? void 0 : T.min;
9076
9080
  isNil(_) || (((p = n.value) == null ? void 0 : p.min_include_flg) === 1 ? s.push({
9077
9081
  validator: (y, b) => Number(b) < _ ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [_])) : Promise.resolve()
9078
9082
  }) : s.push({
@@ -9086,8 +9090,8 @@ function _useRules(e) {
9086
9090
  }
9087
9091
  function useKgFormItem(e) {
9088
9092
  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;
9093
+ var v, T, p, _, y, b;
9094
+ 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
9095
  switch (r) {
9092
9096
  case KG_FORM_CONTEXT.SEARCH:
9093
9097
  return l || s;
@@ -9105,9 +9109,9 @@ function useKgFormItem(e) {
9105
9109
  }
9106
9110
  return s;
9107
9111
  }), i = computed(() => {
9108
- var k, p, _, y, b, C;
9112
+ var T, p, _, y, b, C;
9109
9113
  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;
9114
+ 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
9115
  switch (r) {
9112
9116
  case KG_FORM_CONTEXT.SEARCH:
9113
9117
  s = c || l;
@@ -9147,35 +9151,35 @@ function useKgFormItemSelect() {
9147
9151
  let d = KgVarUtil.parseCommandParameter((m = a.value) == null ? void 0 : m.cmd_prm);
9148
9152
  return d = mapValues(d, (v) => {
9149
9153
  var p, _;
9150
- let k = v;
9154
+ let T = v;
9151
9155
  if (typeof v == "string" && v.startsWith("{") && v.endsWith("}")) {
9152
9156
  let y = v.slice(1, -1), b = "";
9153
9157
  if (y.includes(".")) {
9154
9158
  const C = y.split(".");
9155
9159
  y = C[0], b = C[1];
9156
9160
  }
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"));
9161
+ 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
9162
  }
9159
- return k;
9163
+ return T;
9160
9164
  }), d;
9161
9165
  });
9162
9166
  async function c() {
9163
- var y, b, C, T, M, E, N, I;
9167
+ var y, b, C, k, I, E, N, M;
9164
9168
  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) {
9169
+ 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 : "";
9170
+ if (!m || !T || !p) {
9167
9171
  KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
9168
9172
  frm_id: r.formID,
9169
9173
  var_nam: e,
9170
9174
  cmd: m,
9171
- val_clm: k,
9175
+ val_clm: T,
9172
9176
  lbl_clm: p
9173
9177
  });
9174
9178
  return;
9175
9179
  }
9176
9180
  let _ = null;
9177
9181
  try {
9178
- _ = await ((I = httpClient()) == null ? void 0 : I.request({
9182
+ _ = await ((M = httpClient()) == null ? void 0 : M.request({
9179
9183
  url: m,
9180
9184
  method: v,
9181
9185
  params: l.value
@@ -9195,11 +9199,11 @@ function useKgFormItemSelect() {
9195
9199
  }
9196
9200
  if (d.length > 0) {
9197
9201
  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.", {
9202
+ (!(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
9203
  frm_id: r.formID,
9200
9204
  var_nam: e,
9201
9205
  cmd: m,
9202
- val_clm: k,
9206
+ val_clm: T,
9203
9207
  lbl_clm: p,
9204
9208
  \u6240\u6709\u5217: Object.keys(A)
9205
9209
  });
@@ -9207,10 +9211,10 @@ function useKgFormItemSelect() {
9207
9211
  i.value = d;
9208
9212
  }
9209
9213
  function u(d) {
9210
- var k, p, _, y, b;
9214
+ var T, p, _, y, b;
9211
9215
  if (!d)
9212
9216
  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";
9217
+ 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
9218
  switch (v) {
9215
9219
  case KG_POSSIBILITY_DATA_TYPE.STRING:
9216
9220
  d.forEach((C) => {
@@ -9219,22 +9223,22 @@ function useKgFormItemSelect() {
9219
9223
  break;
9220
9224
  case KG_POSSIBILITY_DATA_TYPE.NUMBER:
9221
9225
  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`, {
9226
+ let k = Number(C[m]);
9227
+ Number.isNaN(k) && (k = C[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${C[m]} \u8F6C\u6362\u4E3A ${v} \u7C7B\u578B`, {
9224
9228
  frm_id: r.formID,
9225
9229
  var_nam: e,
9226
9230
  VarPossibility: a.value
9227
- })), C[m] = T;
9231
+ })), C[m] = k;
9228
9232
  });
9229
9233
  break;
9230
9234
  case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
9231
9235
  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`, {
9236
+ let k;
9237
+ 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
9238
  frm_id: r.formID,
9235
9239
  var_nam: e,
9236
9240
  VarPossibility: a.value
9237
- })), C[m] = T;
9241
+ })), C[m] = k;
9238
9242
  });
9239
9243
  break;
9240
9244
  }
@@ -9243,9 +9247,9 @@ function useKgFormItemSelect() {
9243
9247
  {
9244
9248
  const C = o;
9245
9249
  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]));
9250
+ return d.filter((k) => {
9251
+ var I;
9252
+ return !((I = C.value.excludeValues) != null && I.includes(k[m]));
9249
9253
  });
9250
9254
  }
9251
9255
  break;
@@ -9286,7 +9290,7 @@ const KgFormItemCheckboxGroup = defineComponent({
9286
9290
  }), watch([() => e.value, c], ([_, y]) => {
9287
9291
  const b = get(_, "length", 0);
9288
9292
  if (b > 0 && y.length > 0) {
9289
- const C = intersection$1(_, y == null ? void 0 : y.map((T) => T[l.value]));
9293
+ const C = intersection$1(_, y == null ? void 0 : y.map((k) => k[l.value]));
9290
9294
  if (C.length < b) {
9291
9295
  r("update:value", C);
9292
9296
  return;
@@ -9310,9 +9314,9 @@ const KgFormItemCheckboxGroup = defineComponent({
9310
9314
  var _, y;
9311
9315
  !((_ = 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
9316
  }
9313
- function k(_) {
9317
+ function T(_) {
9314
9318
  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);
9319
+ _.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
9320
  }
9317
9321
  function p(_) {
9318
9322
  r("update:value", _), r("kgChange", _);
@@ -9326,7 +9330,7 @@ const KgFormItemCheckboxGroup = defineComponent({
9326
9330
  checked: d.value,
9327
9331
  "onUpdate:checked": (b) => d.value = b,
9328
9332
  indeterminate: m.value,
9329
- onChange: k
9333
+ onChange: T
9330
9334
  }, _isSlot$a(_ = a.t("kg.selectAll")) ? _ : {
9331
9335
  default: () => [_]
9332
9336
  })]
@@ -9337,17 +9341,17 @@ const KgFormItemCheckboxGroup = defineComponent({
9337
9341
  default: () => [createVNode(Row, {
9338
9342
  gutter: 12
9339
9343
  }, _isSlot$a(y = c.value.map((b) => {
9340
- var C, T;
9344
+ var C, k;
9341
9345
  return createVNode(Col, {
9342
- span: (T = (C = o.value) == null ? void 0 : C.span) != null ? T : 24
9346
+ span: (k = (C = o.value) == null ? void 0 : C.span) != null ? k : 24
9343
9347
  }, {
9344
9348
  default: () => [createVNode(Checkbox, {
9345
9349
  value: b[l.value],
9346
9350
  "kg-value": b[l.value]
9347
9351
  }, {
9348
9352
  default: () => {
9349
- var M, E;
9350
- return [b[(E = (M = i.value) == null ? void 0 : M.lbl_clm) != null ? E : ""]];
9353
+ var I, E;
9354
+ return [b[(E = (I = i.value) == null ? void 0 : I.lbl_clm) != null ? E : ""]];
9351
9355
  }
9352
9356
  })]
9353
9357
  });
@@ -9505,9 +9509,9 @@ const KgFormItemRadioGroup = defineComponent({
9505
9509
  default: () => [createVNode(Row, {
9506
9510
  gutter: 12
9507
9511
  }, _isSlot$9(d = s.value.map((m) => {
9508
- var v, k;
9512
+ var v, T;
9509
9513
  return createVNode(Col, {
9510
- span: (k = (v = a.value) == null ? void 0 : v.span) != null ? k : 24
9514
+ span: (T = (v = a.value) == null ? void 0 : v.span) != null ? T : 24
9511
9515
  }, {
9512
9516
  default: () => [createVNode(Radio, {
9513
9517
  value: m[i.value],
@@ -9548,8 +9552,8 @@ const KgFormItemRadioGroup = defineComponent({
9548
9552
  !((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
9553
  }
9550
9554
  function u(m) {
9551
- var k;
9552
- const v = (k = toRaw(s.value.find((p) => p[i.value] === m))) != null ? k : null;
9555
+ var T;
9556
+ const v = (T = toRaw(s.value.find((p) => p[i.value] === m))) != null ? T : null;
9553
9557
  r("kgSelectChange", v), a.value[`${e.kgVarName}_obj`] = v;
9554
9558
  }
9555
9559
  function d(m) {
@@ -9572,13 +9576,13 @@ const KgFormItemRadioGroup = defineComponent({
9572
9576
  "kg-val-clm": i.value,
9573
9577
  "kg-lbl-clm": (v = n.value) == null ? void 0 : v.lbl_clm
9574
9578
  }, {
9575
- default: () => s.value.map((k) => createVNode(Select.Option, {
9576
- "kg-value": k[i.value],
9577
- value: k[i.value]
9579
+ default: () => s.value.map((T) => createVNode(Select.Option, {
9580
+ "kg-value": T[i.value],
9581
+ value: T[i.value]
9578
9582
  }, {
9579
9583
  default: () => {
9580
9584
  var p, _;
9581
- return [k[(_ = (p = n.value) == null ? void 0 : p.lbl_clm) != null ? _ : ""]];
9585
+ return [T[(_ = (p = n.value) == null ? void 0 : p.lbl_clm) != null ? _ : ""]];
9582
9586
  }
9583
9587
  })),
9584
9588
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
@@ -9643,15 +9647,16 @@ const KgFormItemRadioGroup = defineComponent({
9643
9647
  useKg();
9644
9648
  const o = useKgVar();
9645
9649
  useKgForm(o.formID).onLookupOk(async ({
9646
- var_nam: I,
9647
- isMultiple: A,
9648
- value: w,
9649
- values: F
9650
+ var_nam: M,
9651
+ model: A,
9652
+ isMultiple: w,
9653
+ value: F,
9654
+ values: $
9650
9655
  }) => {
9651
- var $;
9652
- switch (I) {
9656
+ var P;
9657
+ switch (M) {
9653
9658
  case e.kgVarName:
9654
- a.value && (A ? a.value[e.kgVarName] = F : a.value[e.kgVarName] = w), ($ = n.value) == null || $.validate([e.kgVarName]);
9659
+ A.value && (w ? A.value[e.kgVarName] = $ : A.value[e.kgVarName] = F), (P = n.value) == null || P.validate([e.kgVarName]);
9655
9660
  break;
9656
9661
  }
9657
9662
  return !1;
@@ -9664,93 +9669,93 @@ const KgFormItemRadioGroup = defineComponent({
9664
9669
  var A, w, F, $, P;
9665
9670
  if (o.isRetrieving.value)
9666
9671
  return !0;
9667
- let I = !1;
9672
+ let M = !1;
9668
9673
  if (e.kgDisabled !== void 0)
9669
- I = e.kgDisabled;
9674
+ M = e.kgDisabled;
9670
9675
  else
9671
9676
  switch (e.kgContext) {
9672
9677
  case KG_FORM_CONTEXT.SEARCH:
9673
- I = ((A = c.value) == null ? void 0 : A.ena_flg) === 0;
9678
+ M = ((A = c.value) == null ? void 0 : A.ena_flg) === 0;
9674
9679
  break;
9675
9680
  case KG_FORM_CONTEXT.SUBMIT:
9676
9681
  switch (!0) {
9677
9682
  case o.isCreating.value:
9678
- I = ((w = u.value) == null ? void 0 : w.crt_ena_flg) === 0;
9683
+ M = ((w = u.value) == null ? void 0 : w.crt_ena_flg) === 0;
9679
9684
  break;
9680
9685
  case o.isUpdating.value:
9681
- I = ((F = u.value) == null ? void 0 : F.upt_ena_flg) === 0;
9686
+ M = ((F = u.value) == null ? void 0 : F.upt_ena_flg) === 0;
9682
9687
  break;
9683
9688
  case o.isCopying.value:
9684
- I = (($ = u.value) == null ? void 0 : $.cpy_ena_flg) === 0;
9689
+ M = (($ = u.value) == null ? void 0 : $.cpy_ena_flg) === 0;
9685
9690
  break;
9686
9691
  case o.isDeleting.value:
9687
- I = ((P = u.value) == null ? void 0 : P.del_ena_flg) === 0;
9692
+ M = ((P = u.value) == null ? void 0 : P.del_ena_flg) === 0;
9688
9693
  break;
9689
9694
  }
9690
9695
  break;
9691
9696
  }
9692
- return I;
9693
- }), k = computed(() => {
9697
+ return M;
9698
+ }), T = computed(() => {
9694
9699
  var A, w, F, $;
9695
- let I = " ";
9700
+ let M = " ";
9696
9701
  if (e.kgPlaceholder)
9697
- I = e.kgPlaceholder;
9702
+ M = e.kgPlaceholder;
9698
9703
  else
9699
9704
  switch (e.kgContext) {
9700
9705
  case KG_FORM_CONTEXT.SEARCH:
9701
- I = o.t((w = (A = c.value) == null ? void 0 : A.placeholder) != null ? w : " ").value;
9706
+ M = o.t((w = (A = c.value) == null ? void 0 : A.placeholder) != null ? w : " ").value;
9702
9707
  break;
9703
9708
  case KG_FORM_CONTEXT.SUBMIT:
9704
- I = o.t(($ = (F = u.value) == null ? void 0 : F.placeholder) != null ? $ : " ").value;
9709
+ M = o.t(($ = (F = u.value) == null ? void 0 : F.placeholder) != null ? $ : " ").value;
9705
9710
  break;
9706
9711
  }
9707
- return I;
9712
+ return M;
9708
9713
  }), p = computed(() => {
9709
9714
  var A, w, F, $, P, V, D, O, R, x;
9710
- let I = 6;
9715
+ let M = 6;
9711
9716
  if (e.kgSpan !== void 0)
9712
- I = e.kgSpan;
9717
+ M = e.kgSpan;
9713
9718
  else
9714
9719
  switch (e.kgContext) {
9715
9720
  case KG_FORM_CONTEXT.SEARCH:
9716
- I = (w = (A = c.value) == null ? void 0 : A.width) != null ? w : 6;
9721
+ M = (w = (A = c.value) == null ? void 0 : A.width) != null ? w : 6;
9717
9722
  break;
9718
9723
  case KG_FORM_CONTEXT.SUBMIT:
9719
9724
  switch (!0) {
9720
9725
  case o.isCreating.value:
9721
- I = ($ = (F = u.value) == null ? void 0 : F.crt_width) != null ? $ : 6;
9726
+ M = ($ = (F = u.value) == null ? void 0 : F.crt_width) != null ? $ : 6;
9722
9727
  break;
9723
9728
  case o.isUpdating.value:
9724
- I = (V = (P = u.value) == null ? void 0 : P.upt_width) != null ? V : 6;
9729
+ M = (V = (P = u.value) == null ? void 0 : P.upt_width) != null ? V : 6;
9725
9730
  break;
9726
9731
  case o.isCopying.value:
9727
- I = (O = (D = u.value) == null ? void 0 : D.cpy_width) != null ? O : 6;
9732
+ M = (O = (D = u.value) == null ? void 0 : D.cpy_width) != null ? O : 6;
9728
9733
  break;
9729
9734
  case o.isDeleting.value:
9730
- I = (x = (R = u.value) == null ? void 0 : R.del_width) != null ? x : 6;
9735
+ M = (x = (R = u.value) == null ? void 0 : R.del_width) != null ? x : 6;
9731
9736
  break;
9732
9737
  }
9733
9738
  }
9734
- return Math.min(24, Math.max(1, I));
9739
+ return Math.min(24, Math.max(1, M));
9735
9740
  }), _ = computed(() => {
9736
9741
  var F, $;
9737
- const I = get(T.value, "$el.parentElement");
9738
- if (I && !((F = I.classList) != null && F.contains("ant-row")))
9742
+ const M = get(k.value, "$el.parentElement");
9743
+ if (M && !((F = M.classList) != null && F.contains("ant-row")))
9739
9744
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
9740
9745
  let A = {};
9741
- const w = Math.abs(Number.parseInt(($ = get(T.value, "$el.parentElement.style.marginLeft")) != null ? $ : "0px"));
9746
+ const w = Math.abs(Number.parseInt(($ = get(k.value, "$el.parentElement.style.marginLeft")) != null ? $ : "0px"));
9742
9747
  return Number.isNaN(w) || (A = {
9743
9748
  paddingLeft: `${w}px !important`,
9744
9749
  paddingRight: `${w}px !important`
9745
9750
  }), A;
9746
9751
  }), y = computed(() => {
9747
9752
  var A, w, F, $;
9748
- let I = "kg-form-item";
9749
- switch (s.value && (I += " kg-form-item-lookup"), e.kgContext) {
9753
+ let M = "kg-form-item";
9754
+ switch (s.value && (M += " kg-form-item-lookup"), e.kgContext) {
9750
9755
  case KG_FORM_CONTEXT.SEARCH:
9751
9756
  switch (!0) {
9752
9757
  case ((A = c.value) == null ? void 0 : A.vis_flg) === 0:
9753
- I += " kg-form-item--invisible";
9758
+ M += " kg-form-item--invisible";
9754
9759
  break;
9755
9760
  }
9756
9761
  break;
@@ -9759,21 +9764,21 @@ const KgFormItemRadioGroup = defineComponent({
9759
9764
  case (o.isCreating.value && ((w = u.value) == null ? void 0 : w.crt_vis_flg) === 0):
9760
9765
  case (o.isUpdating.value && ((F = u.value) == null ? void 0 : F.upt_vis_flg) === 0):
9761
9766
  case (o.isCopying.value && (($ = u.value) == null ? void 0 : $.cpy_vis_flg) === 0):
9762
- I += " kg-form-item--invisible";
9767
+ M += " kg-form-item--invisible";
9763
9768
  break;
9764
9769
  }
9765
9770
  break;
9766
9771
  }
9767
- return I;
9772
+ return M;
9768
9773
  }), b = computed(() => {
9769
9774
  var A;
9770
- const I = {
9775
+ const M = {
9771
9776
  ...e,
9772
9777
  value: (A = a.value) == null ? void 0 : A[e.kgVarName],
9773
9778
  "onUpdate:value": (w) => {
9774
9779
  a.value && (a.value[e.kgVarName] = w);
9775
9780
  },
9776
- kgPlaceholder: k.value,
9781
+ kgPlaceholder: T.value,
9777
9782
  kgDisabled: v.value,
9778
9783
  id: C.value
9779
9784
  };
@@ -9785,26 +9790,26 @@ const KgFormItemRadioGroup = defineComponent({
9785
9790
  case KG_FORM_ITEM_TYPE.SWITCH:
9786
9791
  break;
9787
9792
  case KG_FORM_ITEM_TYPE.DATE_DATE:
9788
- I.kgShowTime = !1;
9793
+ M.kgShowTime = !1;
9789
9794
  break;
9790
9795
  case KG_FORM_ITEM_TYPE.DATE_TIME:
9791
- I.kgPicker = "time";
9796
+ M.kgPicker = "time";
9792
9797
  break;
9793
9798
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
9794
- I.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
9799
+ M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
9795
9800
  break;
9796
9801
  case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
9797
- I.kgShowTime = !1;
9802
+ M.kgShowTime = !1;
9798
9803
  break;
9799
9804
  case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
9800
- I.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
9805
+ M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
9801
9806
  break;
9802
9807
  }
9803
- return I;
9804
- }), C = computed(() => encodeURIComponent(`${e.kgContext}~${o.formID}~${e.kgVarName}`)), T = ref(null);
9805
- function M() {
9808
+ return M;
9809
+ }), C = computed(() => encodeURIComponent(`${e.kgContext}~${o.formID}~${e.kgVarName}`)), k = ref(null);
9810
+ function I() {
9806
9811
  if (t.control) {
9807
- const I = {
9812
+ const M = {
9808
9813
  varName: e.kgVarName,
9809
9814
  props: b,
9810
9815
  model: a,
@@ -9812,7 +9817,7 @@ const KgFormItemRadioGroup = defineComponent({
9812
9817
  varProfileDetail: c,
9813
9818
  varSubmitField: u
9814
9819
  };
9815
- return t.control(I);
9820
+ return t.control(M);
9816
9821
  }
9817
9822
  switch (m.value) {
9818
9823
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
@@ -9822,13 +9827,7 @@ const KgFormItemRadioGroup = defineComponent({
9822
9827
  case KG_FORM_ITEM_TYPE.SELECT:
9823
9828
  return createVNode(KgFormItemSelect, b.value, null);
9824
9829
  case KG_FORM_ITEM_TYPE.SWITCH:
9825
- switch (e.kgContext) {
9826
- case KG_FORM_CONTEXT.SEARCH:
9827
- return createVNode(KgFormItemSelect, b.value, null);
9828
- case KG_FORM_CONTEXT.SUBMIT:
9829
- default:
9830
- return createVNode(KgFormItemSwitch, b.value, null);
9831
- }
9830
+ return createVNode(KgFormItemSwitch, b.value, null);
9832
9831
  case KG_FORM_ITEM_TYPE.CHECKBOX:
9833
9832
  return createVNode(KgFormItemCheckbox, b.value, null);
9834
9833
  case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
@@ -9855,8 +9854,8 @@ const KgFormItemRadioGroup = defineComponent({
9855
9854
  }, [o.t(e.kgVarName).value]) : null;
9856
9855
  }
9857
9856
  function N() {
9858
- var I;
9859
- return !s.value || !((I = s.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
9857
+ var M;
9858
+ return !s.value || !((M = s.value) != null && M.lkp_id) ? null : createVNode(Form.ItemRest, null, {
9860
9859
  default: () => [createVNode(KgFormItemAddonLookup, {
9861
9860
  kgDisabled: v.value,
9862
9861
  kgLookupID: s.value.lkp_id
@@ -9864,15 +9863,15 @@ const KgFormItemRadioGroup = defineComponent({
9864
9863
  });
9865
9864
  }
9866
9865
  return () => {
9867
- var I, A;
9866
+ var M, A;
9868
9867
  return o.isRetrieving.value ? null : createVNode(Col, {
9869
- ref: T,
9868
+ ref: k,
9870
9869
  span: p.value,
9871
9870
  class: y.value,
9872
9871
  style: _.value,
9873
9872
  "kg-frm_id": o.formID,
9874
9873
  "kg-var_nam": e.kgVarName,
9875
- "kg-lkp_id": (I = s.value) == null ? void 0 : I.lkp_id,
9874
+ "kg-lkp_id": (M = s.value) == null ? void 0 : M.lkp_id,
9876
9875
  "kg-ret_fld": (A = s.value) == null ? void 0 : A.ret_fld
9877
9876
  }, {
9878
9877
  default: () => [createVNode(Form.Item, {
@@ -9881,7 +9880,7 @@ const KgFormItemRadioGroup = defineComponent({
9881
9880
  validateFirst: !0,
9882
9881
  htmlFor: C.value
9883
9882
  }, {
9884
- default: () => createVNode(Fragment, null, [M(), N()]),
9883
+ default: () => createVNode(Fragment, null, [I(), N()]),
9885
9884
  label: () => E()
9886
9885
  })]
9887
9886
  });
@@ -10212,9 +10211,9 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
10212
10211
  }).bind(null, pinia())), store$5);
10213
10212
  function useKgSubmit(e) {
10214
10213
  const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
10215
- var _, y, b, C, T;
10214
+ var _, y, b, C, k;
10216
10215
  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;
10216
+ 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
10217
  switch (!0) {
10219
10218
  case (t.isCreating.value && (m === c || !m && d === c)):
10220
10219
  l = c;
@@ -10222,7 +10221,7 @@ function useKgSubmit(e) {
10222
10221
  case (t.isUpdating.value && (v === c || !v && d === c)):
10223
10222
  l = c;
10224
10223
  break;
10225
- case (t.isCopying.value && (k === c || !k && d === c)):
10224
+ case (t.isCopying.value && (T === c || !T && d === c)):
10226
10225
  l = c;
10227
10226
  break;
10228
10227
  case (t.isDeleting.value && (p === c || !p)):
@@ -10236,7 +10235,7 @@ function useKgSubmit(e) {
10236
10235
  case (t.isUpdating.value && (v === u || !v && d === u)):
10237
10236
  l = u;
10238
10237
  break;
10239
- case (t.isCopying.value && (k === u || !k && d === u)):
10238
+ case (t.isCopying.value && (T === u || !T && d === u)):
10240
10239
  l = u;
10241
10240
  break;
10242
10241
  }
@@ -10285,8 +10284,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10285
10284
  }) => {
10286
10285
  const u = o.store.getVarSubmitConfig(o.formID);
10287
10286
  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);
10287
+ var m, v, T, p, _, y, b, C, k, I, E, N;
10288
+ 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
10289
  }, {
10291
10290
  immediate: !0
10292
10291
  }), !1;
@@ -10335,7 +10334,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10335
10334
  function v() {
10336
10335
  r("kgCancel");
10337
10336
  }
10338
- function k() {
10337
+ function T() {
10339
10338
  var y;
10340
10339
  return e.kgShowFullscreenButton === !1 || ((y = s.value) == null ? void 0 : y.fullscreen_flg) === 0 ? null : createVNode(Button, {
10341
10340
  onClick: d,
@@ -10364,7 +10363,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10364
10363
  default: () => [createVNode(CloseOutlined$1, null, null)]
10365
10364
  });
10366
10365
  }
10367
- return () => createVNode(Fragment, null, [p(), k(), _()]);
10366
+ return () => createVNode(Fragment, null, [p(), T(), _()]);
10368
10367
  }
10369
10368
  }), 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
10369
  function _useFormModel$1() {
@@ -10386,8 +10385,8 @@ function _useFormModel$1() {
10386
10385
  if (c.value = {}, u != null && u.length) {
10387
10386
  const d = r.selectedRow.value;
10388
10387
  u.forEach((m) => {
10389
- var k, p, _, y, b, C, T, M;
10390
- const v = (k = m.var_nam) != null ? k : "";
10388
+ var T, p, _, y, b, C, k, I;
10389
+ const v = (T = m.var_nam) != null ? T : "";
10391
10390
  switch (c.value[v] = void 0, !0) {
10392
10391
  case t.isCreating.value:
10393
10392
  c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (p = m.crt_dft_val) != null ? p : void 0, "C");
@@ -10399,7 +10398,7 @@ function _useFormModel$1() {
10399
10398
  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
10399
  break;
10401
10400
  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");
10401
+ 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
10402
  break;
10404
10403
  }
10405
10404
  });
@@ -10472,9 +10471,9 @@ function _useClass(e, t) {
10472
10471
  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
10472
  return {
10474
10473
  getClass: computed(() => {
10475
- var c, u, d, m, v, k, p;
10474
+ var c, u, d, m, v, T, p;
10476
10475
  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;
10476
+ 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
10477
  })
10479
10478
  };
10480
10479
  }
@@ -10550,7 +10549,7 @@ const getProps$p = () => ({
10550
10549
  inject(DI_KG_VAR__KG_PROPS, null);
10551
10550
  const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), c = useKgSearch();
10552
10551
  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(() => {
10552
+ 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
10553
  var L, B, q;
10555
10554
  switch (!0) {
10556
10555
  case o.isCreating.value:
@@ -10563,11 +10562,11 @@ const getProps$p = () => ({
10563
10562
  return [];
10564
10563
  }
10565
10564
  return [];
10566
- }), M = computed(() => {
10565
+ }), I = computed(() => {
10567
10566
  var L, B, q, ee;
10568
10567
  switch (!0) {
10569
10568
  case o.isCreating.value:
10570
- return (L = k.value) != null ? L : [];
10569
+ return (L = T.value) != null ? L : [];
10571
10570
  case o.isUpdating.value:
10572
10571
  return (B = _.value) != null ? B : [];
10573
10572
  case o.isCopying.value:
@@ -10576,7 +10575,7 @@ const getProps$p = () => ({
10576
10575
  return (ee = C.value) != null ? ee : [];
10577
10576
  }
10578
10577
  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({
10578
+ }), 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
10579
  kgWidth: 0
10581
10580
  }), w = computed(() => {
10582
10581
  var L;
@@ -10589,7 +10588,7 @@ const getProps$p = () => ({
10589
10588
  return u.value ? 398 : (B = (L = m.value) == null ? void 0 : L.max_width) != null ? B : DEFAULT_MAX_WIDTH;
10590
10589
  }), P = computed(() => u.value ? 398 : A.value.kgWidth), V = ref(null);
10591
10590
  _useResizeObserver$1(V);
10592
- const D = _useTitle(), O = computed(() => u.value ? 400 : A.value.kgWidth && A.value.kgWidth > 0 ? A.value.kgWidth + 2 : 0), R = computed(() => O.value === 0 ? !1 : !!(o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value)), x = reactive({
10591
+ const D = _useTitle(), O = computed(() => u.value ? 400 : A.value.kgWidth && A.value.kgWidth > 0 ? "auto" : 0), R = computed(() => O.value === 0 ? !1 : !!(o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value)), x = reactive({
10593
10592
  isFullscreen: !1
10594
10593
  }), {
10595
10594
  getClass: G
@@ -10957,13 +10956,13 @@ const getProps$p = () => ({
10957
10956
  }, {
10958
10957
  default: () => [createVNode("div", {
10959
10958
  ref: V
10960
- }, [T.value.length > 0 && createVNode(Row, {
10959
+ }, [k.value.length > 0 && createVNode(Row, {
10961
10960
  gutter: 12
10962
- }, _isSlot$8(L = T.value.map(K)) ? L : {
10961
+ }, _isSlot$8(L = k.value.map(K)) ? L : {
10963
10962
  default: () => [L]
10964
- }), T.value.length > 0 && M.value.length > 0 && createVNode(Divider, null, null), M.value.length > 0 && createVNode(Row, {
10963
+ }), k.value.length > 0 && I.value.length > 0 && createVNode(Divider, null, null), I.value.length > 0 && createVNode(Row, {
10965
10964
  gutter: 12
10966
- }, _isSlot$8(B = M.value.map(K)) ? B : {
10965
+ }, _isSlot$8(B = I.value.map(K)) ? B : {
10967
10966
  default: () => [B]
10968
10967
  }), u.value && createVNode("div", {
10969
10968
  style: "text-align: center; padding: 6px 0 12px;"
@@ -10983,7 +10982,7 @@ const getProps$p = () => ({
10983
10982
  default: () => [L]
10984
10983
  }), createVNode(Button, {
10985
10984
  type: "primary",
10986
- disabled: I.value,
10985
+ disabled: M.value,
10987
10986
  loading: E.value,
10988
10987
  danger: !!o.isDeleting.value,
10989
10988
  onClick: ue
@@ -11229,7 +11228,7 @@ function useKgTable(e) {
11229
11228
  }), v = computed(() => {
11230
11229
  var p;
11231
11230
  return (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opt;
11232
- }), k = computed(() => {
11231
+ }), T = computed(() => {
11233
11232
  var p;
11234
11233
  return ((p = t.varGridConfig.value) == null ? void 0 : p.prf_frm_id) || t.formID;
11235
11234
  });
@@ -11247,7 +11246,7 @@ function useKgTable(e) {
11247
11246
  id: d,
11248
11247
  pageSizeOptions: m,
11249
11248
  pageSizeOption: v,
11250
- profileFormID: k,
11249
+ profileFormID: T,
11251
11250
  onRowDoubleClick: onEventFactory(t.formID, r, "rowDoubleClick"),
11252
11251
  onBeforeRetrieve: onEventFactory(t.formID, r, "beforeRetrieve"),
11253
11252
  onRetrieve: onEventFactory(t.formID, r, "retrieve")
@@ -11272,53 +11271,53 @@ const getProps$n = () => ({
11272
11271
  }) {
11273
11272
  const a = useKg(), n = useKgVar(), o = useKgButton(), i = useKgSubmit(), s = useKgTable();
11274
11273
  o.onSubmitSave(async () => {
11275
- var T;
11274
+ var k;
11276
11275
  try {
11277
- await ((T = k.value) == null ? void 0 : T.validate());
11278
- } catch (M) {
11279
- KgUtil.throwIfNotFormError(M);
11276
+ await ((k = T.value) == null ? void 0 : k.validate());
11277
+ } catch (I) {
11278
+ KgUtil.throwIfNotFormError(I);
11280
11279
  }
11281
11280
  return !1;
11282
11281
  });
11283
11282
  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);
11283
+ var k, I, E, N, M, A;
11284
+ 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
11285
  }), 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);
11286
+ var k, I;
11287
+ 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
11288
  }), 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;
11289
+ var I, E;
11290
+ let k = "kg-table-td";
11291
+ 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
11292
  }), v = computed(() => {
11294
- var M, E, N, I;
11293
+ var I, E, N, M;
11295
11294
  if (e.kgValue === KG_TABLE_TEMP_ID)
11296
11295
  return "";
11297
- let T = e.kgValue;
11298
- switch ((M = l.value) == null ? void 0 : M.display_type) {
11296
+ let k = e.kgValue;
11297
+ switch ((I = l.value) == null ? void 0 : I.display_type) {
11299
11298
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
11300
11299
  {
11301
11300
  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;
11301
+ k = (M = (N = e.kgRow) == null ? void 0 : N[A.dscFieldName || `${e.kgVarName}_dsc`]) != null ? M : e.kgValue;
11303
11302
  }
11304
11303
  break;
11305
11304
  }
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) {
11305
+ return isString$1(k) && (k = k.replaceAll("\\n", `
11306
+ `)), k;
11307
+ }), T = ref(null);
11308
+ function p(k) {
11309
+ var I, E, N;
11310
+ if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
11311
+ switch ((I = l.value) == null ? void 0 : I.display_type) {
11313
11312
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
11314
- T.stopPropagation(), T.preventDefault(), r("kgUpdateLinkClick");
11313
+ k.stopPropagation(), k.preventDefault(), r("kgUpdateLinkClick");
11315
11314
  break;
11316
11315
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
11317
11316
  {
11318
- T.stopPropagation(), T.preventDefault();
11319
- const I = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
11317
+ k.stopPropagation(), k.preventDefault();
11318
+ const M = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
11320
11319
  (N = a.router.value) == null || N.push({
11321
- path: I.path,
11320
+ path: M.path,
11322
11321
  query: e.kgRow
11323
11322
  });
11324
11323
  }
@@ -11329,7 +11328,7 @@ const getProps$n = () => ({
11329
11328
  }
11330
11329
  function y() {
11331
11330
  return createVNode(KgForm, {
11332
- ref: k,
11331
+ ref: T,
11333
11332
  model: i.model.value,
11334
11333
  layout: "vertical",
11335
11334
  wrapperCol: {
@@ -11349,12 +11348,12 @@ const getProps$n = () => ({
11349
11348
  });
11350
11349
  }
11351
11350
  function b() {
11352
- var T, M, E, N, I, A, w, F, $, P;
11351
+ var k, I, E, N, M, A, w, F, $, P;
11353
11352
  if (u.value)
11354
11353
  return y();
11355
- switch ((T = l.value) == null ? void 0 : T.display_type) {
11354
+ switch ((k = l.value) == null ? void 0 : k.display_type) {
11356
11355
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
11357
- const V = KgUtil.tryParseJSON((M = l.value) == null ? void 0 : M.display_type_properties);
11356
+ const V = KgUtil.tryParseJSON((I = l.value) == null ? void 0 : I.display_type_properties);
11358
11357
  return createVNode(KgYesOrNo, {
11359
11358
  kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((E = V.yValue) != null ? E : 1),
11360
11359
  kgNilAsFalse: V.nilAsFalse
@@ -11365,7 +11364,7 @@ const getProps$n = () => ({
11365
11364
  if (D) {
11366
11365
  const O = n.t(D.varName).value;
11367
11366
  return O ? createVNode(Tag, {
11368
- color: (I = D.color) != null ? I : "default"
11367
+ color: (M = D.color) != null ? M : "default"
11369
11368
  }, _isSlot$7(O) ? O : {
11370
11369
  default: () => [O]
11371
11370
  }) : C();
@@ -11402,11 +11401,11 @@ const getProps$n = () => ({
11402
11401
  return C();
11403
11402
  }
11404
11403
  }
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", {
11404
+ function C(k = !1) {
11405
+ let I = "";
11406
+ return k && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (I += "kg-table-td-update-link"), createVNode("pre", {
11408
11407
  innerHTML: v.value,
11409
- class: M,
11408
+ class: I,
11410
11409
  onClick: p
11411
11410
  }, null);
11412
11411
  }
@@ -11500,8 +11499,8 @@ const getProps$m = () => ({
11500
11499
  }) => {
11501
11500
  const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
11502
11501
  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);
11502
+ var d, m, v, T, p, _, y, b, C, k, I;
11503
+ 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
11504
  }, {
11506
11505
  immediate: !0
11507
11506
  }), !1;
@@ -11690,8 +11689,8 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
11690
11689
  return o.onOpen(async ({
11691
11690
  model: i
11692
11691
  }) => {
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;
11692
+ var s, l, c, u, d, m, v, T, p, _;
11693
+ 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
11694
  }), o.onBeforeOk(async ({
11696
11695
  model: i
11697
11696
  }) => (i.value, !1)), o.onOk(async () => (n.store.retrieve(n.formID), !1)), () => createVNode(KgSubmit, null, null);
@@ -11729,7 +11728,7 @@ const getProps$h = () => ({
11729
11728
  vis_flg: C.vis_flg === 1 ? 0 : 1
11730
11729
  });
11731
11730
  }
11732
- async function k() {
11731
+ async function T() {
11733
11732
  var C;
11734
11733
  if (((C = n.currentVarGridMaster.value) == null ? void 0 : C.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
11735
11734
  KgUtil.confirm({
@@ -11764,27 +11763,27 @@ const getProps$h = () => ({
11764
11763
  class: "columns"
11765
11764
  }, [createVNode(Input, {
11766
11765
  value: s.value,
11767
- "onUpdate:value": (T) => s.value = T,
11766
+ "onUpdate:value": (k) => s.value = k,
11768
11767
  allowClear: !0
11769
11768
  }, null), createVNode("ul", {
11770
11769
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
11771
- }, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((T) => createVNode("li", {
11770
+ }, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((k) => createVNode("li", {
11772
11771
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
11773
- onClick: (M) => {
11774
- M.preventDefault(), M.stopPropagation(), v(T);
11772
+ onClick: (I) => {
11773
+ I.preventDefault(), I.stopPropagation(), v(k);
11775
11774
  },
11776
11775
  style: {
11777
- display: i(T, s.value) ? "flex" : "none"
11776
+ display: i(k, s.value) ? "flex" : "none"
11778
11777
  },
11779
- "kg-var_nam": T.var_nam
11778
+ "kg-var_nam": k.var_nam
11780
11779
  }, [createVNode(Checkbox, {
11781
- checked: T.vis_flg === 1,
11780
+ checked: k.vis_flg === 1,
11782
11781
  disabled: !0
11783
11782
  }, {
11784
- default: () => [createVNode("pre", null, [n.t(T.var_nam).value])]
11783
+ default: () => [createVNode("pre", null, [n.t(k.var_nam).value])]
11785
11784
  }), createVNode(HolderOutlined$1, {
11786
- onClick: (M) => {
11787
- M.preventDefault(), M.stopPropagation();
11785
+ onClick: (I) => {
11786
+ I.preventDefault(), I.stopPropagation();
11788
11787
  }
11789
11788
  }, null)]))])]);
11790
11789
  },
@@ -11798,9 +11797,9 @@ const getProps$h = () => ({
11798
11797
  popupClassName: "kg-table-setting-submenu-popup-masters"
11799
11798
  }, {
11800
11799
  default: () => {
11801
- var M;
11802
- let C, T;
11803
- return createVNode(Fragment, null, [(M = n.varGridMasters.value) == null ? void 0 : M.map((E) => {
11800
+ var I;
11801
+ let C, k;
11802
+ return createVNode(Fragment, null, [(I = n.varGridMasters.value) == null ? void 0 : I.map((E) => {
11804
11803
  var N;
11805
11804
  return createVNode(Menu.Item, {
11806
11805
  key: E.id,
@@ -11812,14 +11811,14 @@ const getProps$h = () => ({
11812
11811
  });
11813
11812
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
11814
11813
  key: "save-grid-view",
11815
- onClick: k
11814
+ onClick: T
11816
11815
  }, _isSlot$5(C = a.t("kg.KgTable.saveVarGridMaster")) ? C : {
11817
11816
  default: () => [C]
11818
11817
  }), createVNode(Menu.Item, {
11819
11818
  key: "save-grid-view-as",
11820
11819
  onClick: p
11821
- }, _isSlot$5(T = a.t("kg.KgTable.saveVarGridMasterAs")) ? T : {
11822
- default: () => [T]
11820
+ }, _isSlot$5(k = a.t("kg.KgTable.saveVarGridMasterAs")) ? k : {
11821
+ default: () => [k]
11823
11822
  })]);
11824
11823
  },
11825
11824
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
@@ -11863,7 +11862,7 @@ function _useColumns(e) {
11863
11862
  var l;
11864
11863
  return ((l = r.store.getVarGridConfig(r.formID)) == null ? void 0 : l.show_check_column_flg) === 1;
11865
11864
  }), i = computed(() => {
11866
- var m, v, k;
11865
+ var m, v, T;
11867
11866
  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
11867
  dataIndex: "index",
11869
11868
  width: KG_TABLE_TD_INDEX_WIDTH,
@@ -11873,7 +11872,7 @@ function _useColumns(e) {
11873
11872
  customRender: ({
11874
11873
  index: p
11875
11874
  }) => p + 1
11876
- }, ...(k = u == null ? void 0 : u.map((p) => {
11875
+ }, ...(T = u == null ? void 0 : u.map((p) => {
11877
11876
  const _ = p.var_nam;
11878
11877
  function y() {
11879
11878
  return p.width === "auto" ? "auto" : Number(p.width) || KG_TABLE_TD_DEFAULT_WIDTH;
@@ -11884,15 +11883,15 @@ function _useColumns(e) {
11884
11883
  function C() {
11885
11884
  return p.ord === -1 ? null : p.ord === 0 ? "ascend" : p.ord === 1 ? "descend" : null;
11886
11885
  }
11887
- function T() {
11886
+ function k() {
11888
11887
  if (p.fix_left_flg === 1)
11889
11888
  return "left";
11890
11889
  if (p.fix_right_flg === 1)
11891
11890
  return "right";
11892
11891
  }
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);
11892
+ function I() {
11893
+ var M, A, w, F;
11894
+ 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
11895
  }
11897
11896
  function E() {
11898
11897
  return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
@@ -11905,25 +11904,25 @@ function _useColumns(e) {
11905
11904
  resizable: typeof N == "number",
11906
11905
  minWidth: KG_TABLE_TD_MIN_WIDTH,
11907
11906
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
11908
- fixed: T(),
11909
- sorter: M(),
11907
+ fixed: k(),
11908
+ sorter: I(),
11910
11909
  align: E(),
11911
11910
  defaultSortOrder: C(),
11912
11911
  customHeaderCell: () => ({
11913
11912
  "kg-frm_id": r.formID,
11914
11913
  "kg-var_nam": _
11915
11914
  }),
11916
- customCell: (I) => {
11915
+ customCell: (M) => {
11917
11916
  var w;
11918
11917
  const A = r.store.getVarSubmitField(r.formID, _);
11919
11918
  return {
11920
11919
  "kg-frm_id": r.formID,
11921
11920
  "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" : ""
11921
+ 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
11922
  };
11924
11923
  }
11925
11924
  };
11926
- })) != null ? k : []];
11925
+ })) != null ? T : []];
11927
11926
  return (c === 0 || l > c && !(u != null && u.find((p) => p.width === "auto"))) && d.push({
11928
11927
  width: "auto",
11929
11928
  customRender: () => null
@@ -11998,7 +11997,7 @@ const KgTable$1 = "", getProps$g = () => ({
11998
11997
  }
11999
11998
  });
12000
11999
  const m = ref(!1), v = ref([]), {
12001
- columns: k,
12000
+ columns: T,
12002
12001
  scrollX: p
12003
12002
  } = _useColumns(e), {
12004
12003
  isLoading: _
@@ -12022,13 +12021,13 @@ const KgTable$1 = "", getProps$g = () => ({
12022
12021
  ...K,
12023
12022
  ...KgVarUtil.parseCommandParameter((B = s.varGridConfig.value.cmd_prm) != null ? B : "")
12024
12023
  }), ((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(() => {
12024
+ }), 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
12025
  var K;
12027
12026
  return !!((K = n == null ? void 0 : n.KgTable) != null && K.expandedRowRender);
12028
12027
  }), N = computed(() => {
12029
12028
  var K;
12030
12029
  return ((K = s.varGridConfig.value) == null ? void 0 : K.show_check_column_flg) === 1;
12031
- }), I = computed(() => {
12030
+ }), M = computed(() => {
12032
12031
  if (!!N.value)
12033
12032
  return {
12034
12033
  fixed: "left",
@@ -12086,7 +12085,7 @@ const KgTable$1 = "", getProps$g = () => ({
12086
12085
  K && (F.value = without$1(F.value, K), u.store.setSelectedRows(s.formID, []));
12087
12086
  }
12088
12087
  function x(K, U) {
12089
- if (!(!!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!I.value) {
12088
+ if (!(!!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!M.value) {
12090
12089
  if (!U) {
12091
12090
  u.store.setSelectedRows(s.formID, []);
12092
12091
  return;
@@ -12246,7 +12245,7 @@ const KgTable$1 = "", getProps$g = () => ({
12246
12245
  index: 0
12247
12246
  }, null), N.value && createVNode(TableSummary.Cell, {
12248
12247
  index: E.value ? 1 : 0
12249
- }, null), k.value.map((U, z) => {
12248
+ }, null), T.value.map((U, z) => {
12250
12249
  const W = s.store.getVarGridDetail(s.formID, U.dataIndex);
12251
12250
  let J = z;
12252
12251
  return E.value && N.value ? J += 2 : (E.value || N.value) && (J += 1), createVNode(TableSummary.Cell, {
@@ -12321,11 +12320,11 @@ const KgTable$1 = "", getProps$g = () => ({
12321
12320
  },
12322
12321
  pagination: !1,
12323
12322
  showSorterTooltip: !1,
12324
- columns: k.value,
12323
+ columns: T.value,
12325
12324
  dataSource: F.value,
12326
12325
  loading: _.value,
12327
12326
  rowKey: u.id.value,
12328
- rowSelection: I.value,
12327
+ rowSelection: M.value,
12329
12328
  expandColumnWidth: 28,
12330
12329
  expandedRowKeys: v.value,
12331
12330
  customRow: (U) => ({
@@ -12349,7 +12348,7 @@ const KgTable$1 = "", getProps$g = () => ({
12349
12348
  kgShowClearTable: P.total > 0,
12350
12349
  kgShowLocate: $.value.length === 1,
12351
12350
  kgTotal: $.value.length,
12352
- kgDisabled: M.value
12351
+ kgDisabled: I.value
12353
12352
  }, null)]), createVNode("div", {
12354
12353
  class: "right"
12355
12354
  }, [u.isShowBottomRight.value && createVNode(Pagination, {
@@ -12361,7 +12360,7 @@ const KgTable$1 = "", getProps$g = () => ({
12361
12360
  showSizeChanger: !0,
12362
12361
  showQuickJumper: !1,
12363
12362
  hideOnSinglePage: !1,
12364
- disabled: T.value,
12363
+ disabled: k.value,
12365
12364
  locale: {
12366
12365
  page: ""
12367
12366
  },
@@ -12396,8 +12395,8 @@ const KgTable$1 = "", getProps$g = () => ({
12396
12395
  attrs: t
12397
12396
  }) {
12398
12397
  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;
12398
+ var u, d, m, v, T, p, _, y;
12399
+ 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
12400
  });
12402
12401
  async function s() {
12403
12402
  e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
@@ -12575,8 +12574,8 @@ const KgButtonCreate = defineComponent({
12575
12574
  attrs: a
12576
12575
  }) {
12577
12576
  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;
12577
+ var C, k, I, E, N, M, A, w;
12578
+ 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
12579
  }), d = computed(() => !!o.isCreatingRequesting.value);
12581
12580
  async function m() {
12582
12581
  e.onKgClick && await e.onKgClick() || o.store.setIsCreating(o.formID, !0);
@@ -12584,7 +12583,7 @@ const KgButtonCreate = defineComponent({
12584
12583
  function v() {
12585
12584
  i.store.emit(o.formID, "submitSave");
12586
12585
  }
12587
- function k() {
12586
+ function T() {
12588
12587
  i.store.emit(o.formID, "submitCancel");
12589
12588
  }
12590
12589
  function p() {
@@ -12598,15 +12597,15 @@ const KgButtonCreate = defineComponent({
12598
12597
  return e.kgText ? e.kgText : n.t("kg.create");
12599
12598
  }
12600
12599
  function y() {
12601
- var C, T, M, E;
12600
+ var C, k, I, E;
12602
12601
  return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isCreating.value ? null : createVNode(Button, {
12603
12602
  type: "primary",
12604
12603
  disabled: u.value,
12605
12604
  onClick: m,
12606
12605
  class: a.class,
12607
12606
  "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,
12607
+ "kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
12608
+ "kg-var_nam": (I = c.value) == null ? void 0 : I.var_nam,
12610
12609
  "kg-cmd": (E = c.value) == null ? void 0 : E.cmd
12611
12610
  }, {
12612
12611
  default: () => [p(), _()]
@@ -12623,7 +12622,7 @@ const KgButtonCreate = defineComponent({
12623
12622
  type: "primary",
12624
12623
  ghost: !d.value,
12625
12624
  disabled: d.value,
12626
- onClick: k
12625
+ onClick: T
12627
12626
  }, {
12628
12627
  default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
12629
12628
  })]);
@@ -12635,8 +12634,8 @@ const KgButtonCreate = defineComponent({
12635
12634
  props: getProps$f(),
12636
12635
  setup(e) {
12637
12636
  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;
12637
+ var c, u, d, m, v, T, p, _;
12638
+ 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
12639
  });
12641
12640
  async function i() {
12642
12641
  e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
@@ -12673,29 +12672,29 @@ const KgButtonCreate = defineComponent({
12673
12672
  props: getProps$f(),
12674
12673
  setup(e) {
12675
12674
  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;
12675
+ var T, p;
12676
+ return o.value ? (p = (T = o.value) == null ? void 0 : T.cmd) != null ? p : "" : null;
12678
12677
  }), s = computed(() => {
12679
- var k, p;
12680
- return (p = (k = o.value) == null ? void 0 : k.cmd_method) != null ? p : "GET";
12678
+ var T, p;
12679
+ return (p = (T = o.value) == null ? void 0 : T.cmd_method) != null ? p : "GET";
12681
12680
  }), l = computed(() => {
12682
- var p, _, y, b, C, T;
12683
- let k = {
12681
+ var p, _, y, b, C, k;
12682
+ let T = {
12684
12683
  ...(p = a.model.value) != null ? p : {}
12685
12684
  };
12686
- return o.value && (k = {
12687
- ...k,
12685
+ return o.value && (T = {
12686
+ ...T,
12688
12687
  ...KgVarUtil.parseCommandParameter((y = (_ = o.value) == null ? void 0 : _.cmd_prm) != null ? y : "")
12689
- }), (b = r.varGridConfig.value) != null && b.cmd_prm && (k = {
12690
- ...k,
12688
+ }), (b = r.varGridConfig.value) != null && b.cmd_prm && (T = {
12689
+ ...T,
12691
12690
  ...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;
12691
+ }), ((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
12692
  }), 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;
12693
+ var T, p, _, y, b, C, k, I;
12694
+ 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
12695
  }), u = ref(!1);
12697
12696
  async function d() {
12698
- var k, p, _;
12697
+ var T, p, _;
12699
12698
  if (!(e.onKgClick && await e.onKgClick())) {
12700
12699
  if (!i.value) {
12701
12700
  KgLogger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -12714,7 +12713,7 @@ const KgButtonCreate = defineComponent({
12714
12713
  joinParamsToUrl: !0,
12715
12714
  isTransformResponse: !1
12716
12715
  });
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}`);
12716
+ 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
12717
  } catch (y) {
12719
12718
  throw y;
12720
12719
  } finally {
@@ -12733,14 +12732,14 @@ const KgButtonCreate = defineComponent({
12733
12732
  return e.kgText ? e.kgText : t.t("kg.export");
12734
12733
  }
12735
12734
  return () => {
12736
- var k, p, _, y;
12735
+ var T, p, _, y;
12737
12736
  return createVNode(Button, {
12738
12737
  type: "primary",
12739
12738
  disabled: c.value,
12740
12739
  ghost: !e.kgPrimary && !c.value,
12741
12740
  loading: u.value,
12742
12741
  onClick: d,
12743
- "kg-id": (k = o.value) == null ? void 0 : k.id,
12742
+ "kg-id": (T = o.value) == null ? void 0 : T.id,
12744
12743
  "kg-frm_id": (p = o.value) == null ? void 0 : p.frm_id,
12745
12744
  "kg-var_nam": (_ = o.value) == null ? void 0 : _.var_nam,
12746
12745
  "kg-cmd": (y = o.value) == null ? void 0 : y.cmd
@@ -12773,8 +12772,8 @@ const KgButtonCreate = defineComponent({
12773
12772
  ...KgVarUtil.parseCommandParameter((C = (b = s.value) == null ? void 0 : b.cmd_prm) != null ? C : "")
12774
12773
  }), _;
12775
12774
  }), 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;
12775
+ var _, y, b, C, k, I, E, N;
12776
+ 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
12777
  }), m = ref(!1);
12779
12778
  async function v(_) {
12780
12779
  if (!l.value)
@@ -12804,7 +12803,7 @@ const KgButtonCreate = defineComponent({
12804
12803
  }
12805
12804
  return !1;
12806
12805
  }
12807
- function k() {
12806
+ function T() {
12808
12807
  return m.value ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
12809
12808
  class: "anticon"
12810
12809
  }, [createVNode(Icon, {
@@ -12833,7 +12832,7 @@ const KgButtonCreate = defineComponent({
12833
12832
  "kg-var_nam": (b = s.value) == null ? void 0 : b.var_nam,
12834
12833
  "kg-cmd": (C = s.value) == null ? void 0 : C.cmd
12835
12834
  }, {
12836
- default: () => [k(), p()]
12835
+ default: () => [T(), p()]
12837
12836
  })];
12838
12837
  }
12839
12838
  });
@@ -12849,8 +12848,8 @@ const KgButtonCreate = defineComponent({
12849
12848
  var m, v;
12850
12849
  return (v = (m = n.value) == null ? void 0 : m.cmd_method) != null ? v : "GET";
12851
12850
  }), 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;
12851
+ var m, v, T, p, _, y, b, C;
12852
+ 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
12853
  }), l = ref(!1);
12855
12854
  async function c() {
12856
12855
  var m;
@@ -12891,7 +12890,7 @@ const KgButtonCreate = defineComponent({
12891
12890
  return e.kgText ? e.kgText : t.t("kg.downloadImportTemplate");
12892
12891
  }
12893
12892
  return () => {
12894
- var m, v, k, p;
12893
+ var m, v, T, p;
12895
12894
  return createVNode(Button, {
12896
12895
  type: "primary",
12897
12896
  disabled: s.value,
@@ -12900,7 +12899,7 @@ const KgButtonCreate = defineComponent({
12900
12899
  onClick: c,
12901
12900
  "kg-id": (m = n.value) == null ? void 0 : m.id,
12902
12901
  "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,
12902
+ "kg-var_nam": (T = n.value) == null ? void 0 : T.var_nam,
12904
12903
  "kg-cmd": (p = n.value) == null ? void 0 : p.cmd
12905
12904
  }, {
12906
12905
  default: () => [u(), d()]
@@ -12912,11 +12911,11 @@ const KgButtonCreate = defineComponent({
12912
12911
  props: getProps$f(),
12913
12912
  setup(e) {
12914
12913
  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;
12914
+ var u, d, m, v, T, p, _, y;
12915
+ 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
12916
  });
12918
12917
  async function s() {
12919
- var v, k, p;
12918
+ var v, T, p;
12920
12919
  if (e.onKgClick && await e.onKgClick())
12921
12920
  return;
12922
12921
  const u = (v = e.kgButton) == null ? void 0 : v.cmd;
@@ -12928,19 +12927,19 @@ const KgButtonCreate = defineComponent({
12928
12927
  }
12929
12928
  let d = null;
12930
12929
  const m = async () => {
12931
- var y, b, C, T, M, E;
12930
+ var y, b, C, k, I, E;
12932
12931
  d == null || d.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
12933
12932
  const _ = n.selectedRows.value;
12934
12933
  try {
12935
12934
  await httpClient().request({
12936
12935
  method: (b = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? b : "POST",
12937
12936
  url: u,
12938
- params: KgVarUtil.parseCommandParameter((T = (C = e.kgButton) == null ? void 0 : C.cmd_prm) != null ? T : ""),
12937
+ params: KgVarUtil.parseCommandParameter((k = (C = e.kgButton) == null ? void 0 : C.cmd_prm) != null ? k : ""),
12939
12938
  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 ({
12939
+ }), ((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
12940
  datas: N
12942
12941
  }) => {
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]));
12942
+ 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
12943
  return A.length > 0 && n.store.setSelectedRows(r.formID, A), !1;
12945
12944
  }, !0), a.search(!0));
12946
12945
  } catch (N) {
@@ -12949,7 +12948,7 @@ const KgButtonCreate = defineComponent({
12949
12948
  r.store.setIsOtherRequesting(r.formID, !1), d == null || d.hideLoading();
12950
12949
  }
12951
12950
  };
12952
- if (((k = e.kgButton) == null ? void 0 : k.show_modal_flg) === 1) {
12951
+ if (((T = e.kgButton) == null ? void 0 : T.show_modal_flg) === 1) {
12953
12952
  const _ = KgUtil.tryParseJSON((p = e.kgButton) == null ? void 0 : p.modal_props);
12954
12953
  typeof _.content == "string" && (_.content = r.t(_.content).value), d = KgUtil.confirm({
12955
12954
  onOk: () => m(),
@@ -13035,17 +13034,17 @@ const KgButtonCreate = defineComponent({
13035
13034
  const n = useKg(), o = useKgVar(), i = useKgTable(), s = useKgButton(), l = useKgSubmit();
13036
13035
  s.store.$onAction(async ({
13037
13036
  name: C,
13038
- args: T
13037
+ args: k
13039
13038
  }) => {
13040
13039
  switch (C) {
13041
13040
  case "click":
13042
- T[0] === o.formID && await m();
13041
+ k[0] === o.formID && await m();
13043
13042
  break;
13044
13043
  }
13045
13044
  });
13046
13045
  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;
13046
+ var C, k, I, E, N, M, A, w;
13047
+ 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
13048
  }), d = computed(() => !!o.isUpdatingRequesting.value);
13050
13049
  async function m() {
13051
13050
  e.onKgClick && await e.onKgClick() || await s.store.emit(o.formID, "updateBeforeClick", {
@@ -13056,7 +13055,7 @@ const KgButtonCreate = defineComponent({
13056
13055
  function v() {
13057
13056
  s.store.emit(o.formID, "submitSave");
13058
13057
  }
13059
- function k() {
13058
+ function T() {
13060
13059
  s.store.emit(o.formID, "submitCancel");
13061
13060
  }
13062
13061
  function p() {
@@ -13070,7 +13069,7 @@ const KgButtonCreate = defineComponent({
13070
13069
  return e.kgText ? e.kgText : n.t("kg.update");
13071
13070
  }
13072
13071
  function y() {
13073
- var C, T, M, E;
13072
+ var C, k, I, E;
13074
13073
  return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isUpdating.value ? null : createVNode(Button, {
13075
13074
  type: "primary",
13076
13075
  disabled: u.value,
@@ -13078,8 +13077,8 @@ const KgButtonCreate = defineComponent({
13078
13077
  onClick: m,
13079
13078
  class: a.class,
13080
13079
  "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,
13080
+ "kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
13081
+ "kg-var_nam": (I = c.value) == null ? void 0 : I.var_nam,
13083
13082
  "kg-cmd": (E = c.value) == null ? void 0 : E.cmd
13084
13083
  }, {
13085
13084
  default: () => [p(), _()]
@@ -13096,7 +13095,7 @@ const KgButtonCreate = defineComponent({
13096
13095
  type: "primary",
13097
13096
  ghost: !d.value,
13098
13097
  disabled: d.value,
13099
- onClick: k
13098
+ onClick: T
13100
13099
  }, {
13101
13100
  default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
13102
13101
  })]);
@@ -13204,7 +13203,7 @@ const getProps$e = () => ({
13204
13203
  return null;
13205
13204
  switch ((_ = n.varGridConfig.value) == null ? void 0 : _.button_display_type) {
13206
13205
  case KG_BUTTON_DISPLAY_TYPE.SELECT:
13207
- return k();
13206
+ return T();
13208
13207
  default:
13209
13208
  return v();
13210
13209
  }
@@ -13226,7 +13225,7 @@ const getProps$e = () => ({
13226
13225
  var p;
13227
13226
  return (p = n.varButtons.value) == null ? void 0 : p.filter((_) => _.typ !== KG_BUTTON_TYPE.SEARCH).map((_) => m(_));
13228
13227
  }
13229
- function k() {
13228
+ function T() {
13230
13229
  return createVNode(Dropdown, {
13231
13230
  trigger: "click",
13232
13231
  overlayClassName: "kg-button-dropdown"
@@ -13670,9 +13669,9 @@ const leftVarProfileDetailColumns = (e) => {
13670
13669
  row: b,
13671
13670
  model: C
13672
13671
  }) => {
13673
- var M, E, N;
13674
- const T = s.store.getSystemVarProfileDetails(s.formID);
13675
- switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
13672
+ var I, E, N;
13673
+ const k = s.store.getSystemVarProfileDetails(s.formID);
13674
+ switch (l.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
13676
13675
  case p:
13677
13676
  c.value = [];
13678
13677
  break;
@@ -13681,24 +13680,24 @@ const leftVarProfileDetailColumns = (e) => {
13681
13680
  if (b != null && b.id)
13682
13681
  try {
13683
13682
  i.store.setIsLoading(a.formID, !0);
13684
- const I = await QueryByID({
13683
+ const M = await QueryByID({
13685
13684
  params: {
13686
13685
  id: b.id
13687
13686
  }
13688
13687
  });
13689
13688
  l.value = l.value.map((w) => {
13690
13689
  var $;
13691
- const F = ($ = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : $.find((P) => P.var_nam === w.var_nam);
13690
+ const F = ($ = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : $.find((P) => P.var_nam === w.var_nam);
13692
13691
  return F ? {
13693
13692
  ...w,
13694
13693
  ...F,
13695
13694
  id: w.id
13696
13695
  } : w;
13697
13696
  });
13698
- const A = (E = (M = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : M.map((w) => w.var_nam)) != null ? E : [];
13697
+ const A = (E = (I = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : I.map((w) => w.var_nam)) != null ? E : [];
13699
13698
  c.value = l.value.filter((w) => A.includes(w.var_nam)).map((w) => w.id);
13700
- } catch (I) {
13701
- throw I;
13699
+ } catch (M) {
13700
+ throw M;
13702
13701
  } finally {
13703
13702
  i.store.setIsLoading(a.formID, !1);
13704
13703
  }
@@ -13747,25 +13746,25 @@ const leftVarProfileDetailColumns = (e) => {
13747
13746
  model: y,
13748
13747
  varVariableConfig: b,
13749
13748
  varProfileDetail: C,
13750
- varSubmitField: T
13749
+ varSubmitField: k
13751
13750
  }) => createVNode(Transfer, {
13752
13751
  dataSource: l.value,
13753
13752
  targetKeys: c.value,
13754
- "onUpdate:targetKeys": (M) => c.value = M,
13755
- rowKey: (M) => M.id,
13753
+ "onUpdate:targetKeys": (I) => c.value = I,
13754
+ rowKey: (I) => I.id,
13756
13755
  showSearch: !0,
13757
13756
  showSelectAll: !1,
13758
13757
  searchPlaceholder: " ",
13759
- filterOption: (M, E) => {
13758
+ filterOption: (I, E) => {
13760
13759
  var N;
13761
- return !!((N = E.var_nam) != null && N.includes(M));
13760
+ return !!((N = E.var_nam) != null && N.includes(I));
13762
13761
  }
13763
13762
  }, {
13764
13763
  children: ({
13765
- direction: M,
13764
+ direction: I,
13766
13765
  filteredItems: E,
13767
13766
  selectedKeys: N,
13768
- disabled: I,
13767
+ disabled: M,
13769
13768
  onItemSelectAll: A,
13770
13769
  onItemSelect: w
13771
13770
  }) => createVNode(Table, {
@@ -13773,17 +13772,17 @@ const leftVarProfileDetailColumns = (e) => {
13773
13772
  class: "kg-flex-table",
13774
13773
  size: "small",
13775
13774
  scroll: {
13776
- x: M === "left" ? "370px" : "1244px",
13775
+ x: I === "left" ? "370px" : "1244px",
13777
13776
  y: "auto"
13778
13777
  },
13779
- columns: M === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
13778
+ columns: I === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
13780
13779
  rowKey: "id",
13781
13780
  dataSource: E,
13782
13781
  customRow: (F) => ({
13783
- onClick: ($) => k($, F, M, N)
13782
+ onClick: ($) => T($, F, I, N)
13784
13783
  }),
13785
13784
  rowSelection: m({
13786
- disabled: I,
13785
+ disabled: M,
13787
13786
  selectedKeys: N,
13788
13787
  onItemSelectAll: A,
13789
13788
  onItemSelect: w
@@ -13805,16 +13804,16 @@ const leftVarProfileDetailColumns = (e) => {
13805
13804
  getCheckboxProps: (C) => ({
13806
13805
  disabled: p || C.disabled
13807
13806
  }),
13808
- onSelectAll(C, T) {
13809
- const M = T.filter((E) => !E.disabled).map(({
13807
+ onSelectAll(C, k) {
13808
+ const I = k.filter((E) => !E.disabled).map(({
13810
13809
  key: E
13811
13810
  }) => E);
13812
- y(M, C);
13811
+ y(I, C);
13813
13812
  },
13814
13813
  onSelect({
13815
13814
  key: C
13816
- }, T) {
13817
- b(C, T);
13815
+ }, k) {
13816
+ b(C, k);
13818
13817
  },
13819
13818
  selectedRowKeys: _,
13820
13819
  columnWidth: 32
@@ -13828,7 +13827,7 @@ const leftVarProfileDetailColumns = (e) => {
13828
13827
  immediate: !0
13829
13828
  });
13830
13829
  }
13831
- function k(p, _, y, b) {
13830
+ function T(p, _, y, b) {
13832
13831
  if (!KgDomUtil.isNotClickable(p.target, ["ant-input"]))
13833
13832
  switch (b.length = 0, p.detail) {
13834
13833
  case 1:
@@ -14000,7 +13999,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
14000
13999
  kgHeight: d.value
14001
14000
  });
14002
14001
  _useLayoutHeaderResizeObserver(), _useFormModel(m, v);
14003
- const k = computed(() => {
14002
+ const T = computed(() => {
14004
14003
  var O, R;
14005
14004
  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
14005
  }), 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 +14008,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
14009
14008
  var O, R, x;
14010
14009
  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
14010
  return a.t((x = a.varButtonSearch.value) == null ? void 0 : x.var_nam).value;
14012
- }), T = computed(() => {
14011
+ }), k = computed(() => {
14013
14012
  var O;
14014
14013
  switch ((O = a.varButtonSearch.value) == null ? void 0 : O.primary_flg) {
14015
14014
  case 1:
@@ -14019,15 +14018,15 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
14019
14018
  default:
14020
14019
  return !0;
14021
14020
  }
14022
- }), M = computed(() => !!(a.isRetrieving.value || a.isRetrievingVarProfileMaster.value || l.value && !!a.isOtherRequesting.value)), E = computed(() => !!a.isRetrieving.value || !!a.isRetrievingVarProfileMaster.value), N = computed(() => {
14021
+ }), I = computed(() => !!(a.isRetrieving.value || a.isRetrievingVarProfileMaster.value || l.value && !!a.isOtherRequesting.value)), E = computed(() => !!a.isRetrieving.value || !!a.isRetrievingVarProfileMaster.value), N = computed(() => {
14023
14022
  let O = "kg-search";
14024
14023
  return i.value && (O += " kg-search--visible"), l.value && (O += " kg-search--teleport"), O;
14025
14024
  });
14026
14025
  onUnmounted(() => {
14027
14026
  n.store.dispose(a.formID);
14028
14027
  });
14029
- function I(O = !1) {
14030
- k.value || (i.value ? m.value && m.value.validate().then(() => {
14028
+ function M(O = !1) {
14029
+ T.value || (i.value ? m.value && m.value.validate().then(() => {
14031
14030
  n.store.emit(a.formID, "search", {
14032
14031
  resetPageIndex: O
14033
14032
  });
@@ -14039,7 +14038,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
14039
14038
  resetPageIndex: O
14040
14039
  }));
14041
14040
  }
14042
- n.store.setSearchFn(a.formID, I);
14041
+ n.store.setSearchFn(a.formID, M);
14043
14042
  function A() {
14044
14043
  var O;
14045
14044
  (O = m.value) == null || O.resetFields(), i.value ? m.value && m.value.validate().then(() => {
@@ -14052,7 +14051,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
14052
14051
  }
14053
14052
  n.store.setResetFn(a.formID, A);
14054
14053
  function w() {
14055
- return I(!0), Promise.resolve(!0);
14054
+ return M(!0), Promise.resolve(!0);
14056
14055
  }
14057
14056
  function F() {
14058
14057
  var O;
@@ -14101,8 +14100,8 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
14101
14100
  var O, R, x, G, H;
14102
14101
  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
14102
  type: "primary",
14104
- ghost: !k.value,
14105
- disabled: k.value,
14103
+ ghost: !T.value,
14104
+ disabled: T.value,
14106
14105
  onClick: A,
14107
14106
  class: "kg-search-btn-reset"
14108
14107
  }, {
@@ -14113,7 +14112,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
14113
14112
  kgIcon: (G = a.varButtonSearch.value) == null ? void 0 : G.icon,
14114
14113
  kgText: C.value,
14115
14114
  kgColor: (H = a.varButtonSearch.value) == null ? void 0 : H.color,
14116
- kgPrimary: T.value,
14115
+ kgPrimary: k.value,
14117
14116
  kgLoading: _.value,
14118
14117
  onKgClick: w
14119
14118
  }, null)]);
@@ -14136,7 +14135,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
14136
14135
  return [(R = a.currentVarProfileDetails.value) == null ? void 0 : R.map((x) => createVNode(KgForm.Item, {
14137
14136
  kgVarName: x.var_nam,
14138
14137
  kgContext: KG_FORM_CONTEXT.SEARCH,
14139
- onKgSubmit: () => I(!0)
14138
+ onKgSubmit: () => M(!0)
14140
14139
  }, null))];
14141
14140
  }
14142
14141
  })]
@@ -14167,7 +14166,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
14167
14166
  default: () => [createVNode("div", {
14168
14167
  class: "ant-collapse-header"
14169
14168
  }, [createVNode(Spin, {
14170
- spinning: M.value
14169
+ spinning: I.value
14171
14170
  }, {
14172
14171
  default: () => [F(), createVNode("div", {
14173
14172
  class: "ant-collapse-extra"
@@ -14243,30 +14242,30 @@ function useMagicKeys(e = {}) {
14243
14242
  }
14244
14243
  function v(p, _) {
14245
14244
  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)
14245
+ const C = (y = p.key) == null ? void 0 : y.toLowerCase(), k = (b = p.code) == null ? void 0 : b.toLowerCase(), I = [k, C].filter(Boolean);
14246
+ k && (_ ? i.add(p.code) : i.delete(p.code));
14247
+ for (const E of I)
14249
14248
  u.add(E), d(E, _);
14250
14249
  C === "meta" && !_ ? (c.forEach((E) => {
14251
14250
  i.delete(E), d(E, !1);
14252
- }), c.clear()) : typeof p.getModifierState == "function" && p.getModifierState("Meta") && _ && [...i, ...M].forEach((E) => c.add(E));
14251
+ }), c.clear()) : typeof p.getModifierState == "function" && p.getModifierState("Meta") && _ && [...i, ...I].forEach((E) => c.add(E));
14253
14252
  }
14254
14253
  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, {
14254
+ const T = new Proxy(l, {
14256
14255
  get(p, _, y) {
14257
14256
  if (typeof _ != "string")
14258
14257
  return Reflect.get(p, _, y);
14259
14258
  if (_ = _.toLowerCase(), _ in a && (_ = a[_]), !(_ in l))
14260
14259
  if (/[+_-]/.test(_)) {
14261
- const C = _.split(/[+_-]/g).map((T) => T.trim());
14262
- l[_] = computed(() => C.every((T) => unref(k[T])));
14260
+ const C = _.split(/[+_-]/g).map((k) => k.trim());
14261
+ l[_] = computed(() => C.every((k) => unref(T[k])));
14263
14262
  } else
14264
14263
  l[_] = ref(!1);
14265
14264
  const b = Reflect.get(p, _, y);
14266
14265
  return t ? unref(b) : b;
14267
14266
  }
14268
14267
  });
14269
- return k;
14268
+ return T;
14270
14269
  }
14271
14270
  var SwipeDirection;
14272
14271
  (function(e) {
@@ -14651,7 +14650,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14651
14650
  onSelect: ($) => N($)
14652
14651
  }), v = ref({
14653
14652
  visible: !1
14654
- }), k = computed(() => !!(unref(u) || unref(n) || unref(o) || unref(i))), p = computed(() => {
14653
+ }), T = computed(() => !!(unref(u) || unref(n) || unref(o) || unref(i))), p = computed(() => {
14655
14654
  var $;
14656
14655
  return !!u.value || (($ = a.getSelectedVarCatalog) == null ? void 0 : $.cust_lvl) === KG_CUSTOM_LEVEL.L0;
14657
14656
  }), _ = computed(() => !!(!unref(u) || unref(n) || unref(o))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
@@ -14726,7 +14725,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14726
14725
  o.value = !1;
14727
14726
  }
14728
14727
  }
14729
- function T({
14728
+ function k({
14730
14729
  isAllForm: $,
14731
14730
  isAllLanguage: P
14732
14731
  }) {
@@ -14741,7 +14740,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14741
14740
  var_text: ""
14742
14741
  }), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
14743
14742
  }
14744
- function M() {
14743
+ function I() {
14745
14744
  var P;
14746
14745
  c.value = without$1(c.value, u.value), u.value = null;
14747
14746
  const $ = (P = c.value[0]) != null ? P : null;
@@ -14773,15 +14772,15 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14773
14772
  }
14774
14773
  }) : (a.setSelectedVarCatalog(unref($)), d.value = [$.id]));
14775
14774
  }
14776
- function I() {
14775
+ function M() {
14777
14776
  v.value.visible = !0;
14778
14777
  }
14779
14778
  function A() {
14780
14779
  return createVNode("div", {
14781
14780
  class: "buttons"
14782
14781
  }, [createVNode(Button, {
14783
- onClick: I,
14784
- disabled: k.value,
14782
+ onClick: M,
14783
+ disabled: T.value,
14785
14784
  type: "primary"
14786
14785
  }, {
14787
14786
  default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
@@ -14823,7 +14822,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14823
14822
  class: "buttons"
14824
14823
  }, [createVNode(Button, {
14825
14824
  disabled: _.value,
14826
- onClick: M
14825
+ onClick: I
14827
14826
  }, _isSlot($ = t.t("common.cancelText")) ? $ : {
14828
14827
  default: () => [$]
14829
14828
  }), createVNode(Button, {
@@ -14862,7 +14861,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14862
14861
  }, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
14863
14862
  visible: v.value.visible,
14864
14863
  "onUpdate:visible": ($) => v.value.visible = $,
14865
- onKgOk: T
14864
+ onKgOk: k
14866
14865
  }, null)]);
14867
14866
  }
14868
14867
  }), columns = () => [{
@@ -15166,16 +15165,16 @@ const KgWarehouse$1 = "", getProps = () => ({
15166
15165
  emit: t
15167
15166
  }) {
15168
15167
  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;
15168
+ let k = "jeecg-layout-header-action__item kg-warehouse";
15169
+ return (!m.value || e.kgInvisible) && (k += " kg-warehouse--invisible"), k;
15171
15170
  }), o = ref(""), i = a.warehouse, s = ref(null), l = ref(!1), c = reactive([{
15172
15171
  width: 80,
15173
15172
  align: "center",
15174
15173
  customRender: ({
15175
- record: T
15174
+ record: k
15176
15175
  }) => {
15177
15176
  var E;
15178
- return T.id === ((E = s.value) == null ? void 0 : E.id) ? createVNode("img", {
15177
+ return k.id === ((E = s.value) == null ? void 0 : E.id) ? createVNode("img", {
15179
15178
  src: WAREHOUSE_1890ff
15180
15179
  }, null) : createVNode("img", {
15181
15180
  src: WAREHOUSE_000000
@@ -15183,27 +15182,27 @@ const KgWarehouse$1 = "", getProps = () => ({
15183
15182
  }
15184
15183
  }, {
15185
15184
  customRender: ({
15186
- record: T
15185
+ record: k
15187
15186
  }) => {
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", {
15187
+ var E, N, M;
15188
+ const I = k;
15189
+ return createVNode("div", null, [createVNode("div", null, [(E = I.whDsc) != null ? E : " ", createTextVNode(" - "), (N = I.whId) != null ? N : " "]), createVNode("div", {
15191
15190
  class: "address"
15192
- }, [(I = M.adrId) != null ? I : " "])]);
15191
+ }, [(M = I.adrId) != null ? M : " "])]);
15193
15192
  }
15194
15193
  }]), u = ref([]), d = computed(() => {
15195
- var M;
15196
- const T = (M = o.value) == null ? void 0 : M.toUpperCase();
15194
+ var I;
15195
+ const k = (I = o.value) == null ? void 0 : I.toUpperCase();
15197
15196
  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));
15197
+ var N, M, A, w, F, $;
15198
+ 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
15199
  });
15201
15200
  }), m = computed(() => {
15202
- var T, M;
15203
- return ((M = (T = r.option.value) == null ? void 0 : T.KgWarehouse) == null ? void 0 : M.enable) !== !1;
15201
+ var k, I;
15202
+ return ((I = (k = r.option.value) == null ? void 0 : k.KgWarehouse) == null ? void 0 : I.enable) !== !1;
15204
15203
  });
15205
- watch(a.visible, (T) => {
15206
- !m.value || (T ? k() : p());
15204
+ watch(a.visible, (k) => {
15205
+ !m.value || (k ? T() : p());
15207
15206
  }, {
15208
15207
  immediate: !0
15209
15208
  }), onMounted(() => {
@@ -15212,15 +15211,15 @@ const KgWarehouse$1 = "", getProps = () => ({
15212
15211
  function v() {
15213
15212
  !m.value || a.store.setVisible(!0);
15214
15213
  }
15215
- function k() {
15214
+ function T() {
15216
15215
  s.value = a.warehouse.value, y();
15217
15216
  }
15218
15217
  function p() {
15219
15218
  o.value = "", u.value = [], s.value = null;
15220
15219
  }
15221
15220
  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({
15221
+ var k;
15222
+ !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
15223
  content: r.t("kg.KgWarehouse.reloadMessage"),
15225
15224
  kgHideCancelButton: !0,
15226
15225
  okButtonProps: {
@@ -15236,28 +15235,28 @@ const KgWarehouse$1 = "", getProps = () => ({
15236
15235
  l.value = !0;
15237
15236
  try {
15238
15237
  const {
15239
- records: T
15238
+ records: k
15240
15239
  } = await ListVO({
15241
15240
  params: {
15242
15241
  pageNo: 1,
15243
15242
  pageSize: 999
15244
15243
  }
15245
15244
  });
15246
- u.value = T != null ? T : [];
15247
- } catch (T) {
15248
- console.error(T);
15245
+ u.value = k != null ? k : [];
15246
+ } catch (k) {
15247
+ console.error(k);
15249
15248
  } finally {
15250
15249
  l.value = !1;
15251
15250
  }
15252
15251
  }
15253
- function b(T, M) {
15252
+ function b(k, I) {
15254
15253
  var E;
15255
- switch (T.detail) {
15254
+ switch (k.detail) {
15256
15255
  case 1:
15257
- ((E = s.value) == null ? void 0 : E.id) === M.id ? s.value = null : s.value = M;
15256
+ ((E = s.value) == null ? void 0 : E.id) === I.id ? s.value = null : s.value = I;
15258
15257
  break;
15259
15258
  case 2:
15260
- s.value = M, _();
15259
+ s.value = I, _();
15261
15260
  break;
15262
15261
  }
15263
15262
  }
@@ -15267,12 +15266,12 @@ const KgWarehouse$1 = "", getProps = () => ({
15267
15266
  placement: "bottomRight"
15268
15267
  }, {
15269
15268
  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")];
15269
+ var k, I;
15270
+ return [((k = i.value) == null ? void 0 : k.whDsc) || ((I = i.value) == null ? void 0 : I.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
15272
15271
  }
15273
15272
  }), createVNode(KgModal, {
15274
15273
  visible: a.visible.value,
15275
- "onUpdate:visible": (T) => a.store.setVisible(T),
15274
+ "onUpdate:visible": (k) => a.store.setVisible(k),
15276
15275
  title: r.t("kg.KgWarehouse.title"),
15277
15276
  width: "500px",
15278
15277
  kgFullHeight: !1,
@@ -15289,7 +15288,7 @@ const KgWarehouse$1 = "", getProps = () => ({
15289
15288
  }, {
15290
15289
  default: () => [createVNode(Input, {
15291
15290
  value: o.value,
15292
- "onUpdate:value": (T) => o.value = T,
15291
+ "onUpdate:value": (k) => o.value = k,
15293
15292
  allowClear: !0,
15294
15293
  disabled: l.value,
15295
15294
  placeholder: r.t("kg.search")
@@ -15309,11 +15308,11 @@ const KgWarehouse$1 = "", getProps = () => ({
15309
15308
  dataSource: d.value,
15310
15309
  columns: c,
15311
15310
  class: "kg-flex-table",
15312
- customRow: (T) => {
15313
- var M;
15311
+ customRow: (k) => {
15312
+ var I;
15314
15313
  return {
15315
- class: T.id === ((M = s.value) == null ? void 0 : M.id) ? "selected" : "",
15316
- onClick: (E) => b(E, T)
15314
+ class: k.id === ((I = s.value) == null ? void 0 : I.id) ? "selected" : "",
15315
+ onClick: (E) => b(E, k)
15317
15316
  };
15318
15317
  }
15319
15318
  }, null)]