@kengic/vue 0.7.4 → 0.7.6-beta.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2188,7 +2188,7 @@ var Icon$1 = function(t, r) {
2188
2188
  var _ = i ? {
2189
2189
  msTransform: "rotate(".concat(i, "deg)"),
2190
2190
  transform: "rotate(".concat(i, "deg)")
2191
- } : void 0, y = normalizeTwoToneColors(u), b = _slicedToArray(y, 2), T = b[0], k = b[1];
2191
+ } : void 0, b = normalizeTwoToneColors(u), y = _slicedToArray(b, 2), T = y[0], k = y[1];
2192
2192
  return createVNode("span", _objectSpread$k({
2193
2193
  role: "img",
2194
2194
  "aria-label": l.name
@@ -3001,15 +3001,15 @@ function iconToSVG(e, t) {
3001
3001
  };
3002
3002
  let s = r.body;
3003
3003
  [r, a].forEach((C) => {
3004
- const g = [], _ = C.hFlip, y = C.vFlip;
3005
- let b = C.rotate;
3006
- _ ? y ? b += 2 : (g.push(
3004
+ const g = [], _ = C.hFlip, b = C.vFlip;
3005
+ let y = C.rotate;
3006
+ _ ? b ? y += 2 : (g.push(
3007
3007
  "translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
3008
- ), g.push("scale(-1 1)"), n.top = n.left = 0) : y && (g.push(
3008
+ ), g.push("scale(-1 1)"), n.top = n.left = 0) : b && (g.push(
3009
3009
  "translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
3010
3010
  ), g.push("scale(1 -1)"), n.top = n.left = 0);
3011
3011
  let T;
3012
- switch (b < 0 && (b -= Math.floor(b / 4) * 4), b = b % 4, b) {
3012
+ switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
3013
3013
  case 1:
3014
3014
  T = n.height / 2 + n.top, g.unshift(
3015
3015
  "rotate(90 " + T.toString() + " " + T.toString() + ")"
@@ -3026,7 +3026,7 @@ function iconToSVG(e, t) {
3026
3026
  );
3027
3027
  break;
3028
3028
  }
3029
- b % 2 === 1 && (n.left !== n.top && (T = n.left, n.left = n.top, n.top = T), n.width !== n.height && (T = n.width, n.width = n.height, n.height = T)), g.length && (s = '<g transform="' + g.join(" ") + '">' + s + "</g>");
3029
+ y % 2 === 1 && (n.left !== n.top && (T = n.left, n.left = n.top, n.top = T), n.width !== n.height && (T = n.width, n.width = n.height, n.height = T)), g.length && (s = '<g transform="' + g.join(" ") + '">' + s + "</g>");
3030
3030
  });
3031
3031
  const l = a.width, o = a.height, i = n.width, c = n.height;
3032
3032
  let u, d;
@@ -3328,7 +3328,7 @@ function sendQuery(e, t, r, a) {
3328
3328
  function _(E, P) {
3329
3329
  P && (v = []), typeof E == "function" && v.push(E);
3330
3330
  }
3331
- function y() {
3331
+ function b() {
3332
3332
  return {
3333
3333
  startTime: o,
3334
3334
  payload: t,
@@ -3339,7 +3339,7 @@ function sendQuery(e, t, r, a) {
3339
3339
  abort: g
3340
3340
  };
3341
3341
  }
3342
- function b() {
3342
+ function y() {
3343
3343
  i = "failed", v.forEach((E) => {
3344
3344
  E(void 0, u);
3345
3345
  });
@@ -3349,7 +3349,7 @@ function sendQuery(e, t, r, a) {
3349
3349
  E.status === "pending" && (E.status = "aborted");
3350
3350
  }), m = [];
3351
3351
  }
3352
- function k(E, P, A) {
3352
+ function k(E, P, M) {
3353
3353
  const I = P !== "success";
3354
3354
  switch (m = m.filter((w) => w !== E), i) {
3355
3355
  case "pending":
@@ -3362,11 +3362,11 @@ function sendQuery(e, t, r, a) {
3362
3362
  return;
3363
3363
  }
3364
3364
  if (P === "abort") {
3365
- u = A, b();
3365
+ u = M, y();
3366
3366
  return;
3367
3367
  }
3368
3368
  if (I) {
3369
- u = A, m.length || (l.length ? M() : b());
3369
+ u = M, m.length || (l.length ? A() : y());
3370
3370
  return;
3371
3371
  }
3372
3372
  if (C(), T(), !e.random) {
@@ -3374,10 +3374,10 @@ function sendQuery(e, t, r, a) {
3374
3374
  w !== -1 && w !== e.index && (e.index = w);
3375
3375
  }
3376
3376
  i = "completed", v.forEach((w) => {
3377
- w(A);
3377
+ w(M);
3378
3378
  });
3379
3379
  }
3380
- function M() {
3380
+ function A() {
3381
3381
  if (i !== "pending")
3382
3382
  return;
3383
3383
  C();
@@ -3385,23 +3385,23 @@ function sendQuery(e, t, r, a) {
3385
3385
  if (E === void 0) {
3386
3386
  if (m.length) {
3387
3387
  d = setTimeout(() => {
3388
- C(), i === "pending" && (T(), b());
3388
+ C(), i === "pending" && (T(), y());
3389
3389
  }, e.timeout);
3390
3390
  return;
3391
3391
  }
3392
- b();
3392
+ y();
3393
3393
  return;
3394
3394
  }
3395
3395
  const P = {
3396
3396
  status: "pending",
3397
3397
  resource: E,
3398
- callback: (A, I) => {
3399
- k(P, A, I);
3398
+ callback: (M, I) => {
3399
+ k(P, M, I);
3400
3400
  }
3401
3401
  };
3402
- m.push(P), c++, d = setTimeout(M, e.rotate), r(E, t, P.callback);
3402
+ m.push(P), c++, d = setTimeout(A, e.rotate), r(E, t, P.callback);
3403
3403
  }
3404
- return setTimeout(M), y;
3404
+ return setTimeout(A), b;
3405
3405
  }
3406
3406
  function initRedundancy(e) {
3407
3407
  const t = {
@@ -3803,8 +3803,8 @@ const render = (e, t) => {
3803
3803
  _ !== !0 && _ !== "true" && delete a["aria-hidden"];
3804
3804
  break;
3805
3805
  default: {
3806
- const y = customisationAliases[g];
3807
- y ? (_ === !0 || _ === "true" || _ === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[g] === void 0 && (a[g] = _);
3806
+ const b = customisationAliases[g];
3807
+ b ? (_ === !0 || _ === "true" || _ === 1) && (r[b] = !0) : defaultExtendedIconCustomisations[g] === void 0 && (a[g] = _);
3808
3808
  }
3809
3809
  }
3810
3810
  }
@@ -3930,7 +3930,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3930
3930
  (function(r, a) {
3931
3931
  e.exports = a();
3932
3932
  })(commonjsGlobal, function() {
3933
- var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", C = "date", g = "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($) {
3933
+ var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", C = "date", g = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function($) {
3934
3934
  var V = ["th", "st", "nd", "rd"], O = $ % 100;
3935
3935
  return "[" + $ + (V[(O - 20) % 10] || V[O] || V[0]) + "]";
3936
3936
  } }, T = function($, V, O) {
@@ -3950,14 +3950,14 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3950
3950
  return { M: d, y: v, w: u, d: c, D: C, h: i, m: o, s: l, ms: s, Q: m }[$] || String($ || "").toLowerCase().replace(/s$/, "");
3951
3951
  }, u: function($) {
3952
3952
  return $ === void 0;
3953
- } }, M = "en", E = {};
3954
- E[M] = b;
3955
- var P = "$isDayjsObject", A = function($) {
3953
+ } }, A = "en", E = {};
3954
+ E[A] = y;
3955
+ var P = "$isDayjsObject", M = function($) {
3956
3956
  return $ instanceof D || !(!$ || !$[P]);
3957
3957
  }, I = function $(V, O, U) {
3958
3958
  var F;
3959
3959
  if (!V)
3960
- return M;
3960
+ return A;
3961
3961
  if (typeof V == "string") {
3962
3962
  var K = V.toLowerCase();
3963
3963
  E[K] && (F = K), O && (E[K] = O, F = K);
@@ -3968,14 +3968,14 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3968
3968
  var z = V.name;
3969
3969
  E[z] = V, F = z;
3970
3970
  }
3971
- return !U && F && (M = F), F || !U && M;
3971
+ return !U && F && (A = F), F || !U && A;
3972
3972
  }, w = function($, V) {
3973
- if (A($))
3973
+ if (M($))
3974
3974
  return $.clone();
3975
3975
  var O = typeof V == "object" ? V : {};
3976
3976
  return O.date = $, O.args = arguments, new D(O);
3977
3977
  }, L = k;
3978
- L.l = I, L.i = A, L.w = function($, V) {
3978
+ L.l = I, L.i = M, L.w = function($, V) {
3979
3979
  return w($, { locale: V.$L, utc: V.$u, x: V.$x, $offset: V.$offset });
3980
3980
  };
3981
3981
  var D = function() {
@@ -4093,7 +4093,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4093
4093
  var R = ne < 12 ? "AM" : "PM";
4094
4094
  return de ? R.toLowerCase() : R;
4095
4095
  };
4096
- return K.replace(y, function(ne, ue) {
4096
+ return K.replace(b, function(ne, ue) {
4097
4097
  return ue || function(de) {
4098
4098
  switch (de) {
4099
4099
  case "YY":
@@ -4210,9 +4210,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4210
4210
  };
4211
4211
  }), w.extend = function($, V) {
4212
4212
  return $.$i || ($(V, D, w), $.$i = !0), w;
4213
- }, w.locale = I, w.isDayjs = A, w.unix = function($) {
4213
+ }, w.locale = I, w.isDayjs = M, w.unix = function($) {
4214
4214
  return w(1e3 * $);
4215
- }, w.en = E[M], w.Ls = E, w.p = {}, w;
4215
+ }, w.en = E[A], w.Ls = E, w.p = {}, w;
4216
4216
  });
4217
4217
  })(dayjs_min);
4218
4218
  const dayjs = dayjs_min.exports;
@@ -4257,31 +4257,31 @@ function filesize(e, {
4257
4257
  roundingMethod: g = ROUND,
4258
4258
  precision: _ = 0
4259
4259
  } = {}) {
4260
- let y = C, b = Number(e), T = [], k = 0, M = EMPTY;
4260
+ let b = C, y = Number(e), T = [], k = 0, A = EMPTY;
4261
4261
  u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
4262
- const E = a === 10 ? 1e3 : 1024, P = m === !0, A = b < 0, I = Math[g];
4262
+ const E = a === 10 ? 1e3 : 1024, P = m === !0, M = y < 0, I = Math[g];
4263
4263
  if (typeof e != "bigint" && isNaN(e))
4264
4264
  throw new TypeError(INVALID_NUMBER);
4265
4265
  if (typeof I !== FUNCTION)
4266
4266
  throw new TypeError(INVALID_ROUND);
4267
- if (A && (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)
4268
- return y;
4269
- if (b === 0)
4270
- T[0] = 0, M = T[1] = STRINGS.symbol[u][t ? BITS : BYTES][y];
4267
+ if (M && (y = -y), (b === -1 || isNaN(b)) && (b = Math.floor(Math.log(y) / Math.log(E)), b < 0 && (b = 0)), b > 8 && (_ > 0 && (_ += 8 - b), b = 8), d === EXPONENT)
4268
+ return b;
4269
+ if (y === 0)
4270
+ T[0] = 0, A = T[1] = STRINGS.symbol[u][t ? BITS : BYTES][b];
4271
4271
  else {
4272
- 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++));
4273
- const w = Math.pow(10, y > 0 ? n : 0);
4274
- T[0] = I(k * w) / w, T[0] === E && y < 8 && C === -1 && (T[0] = 1, y++), M = T[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][y];
4272
+ k = y / (a === 2 ? Math.pow(2, b * 10) : Math.pow(1e3, b)), t && (k = k * 8, k >= E && b < 8 && (k = k / E, b++));
4273
+ const w = Math.pow(10, b > 0 ? n : 0);
4274
+ T[0] = I(k * w) / w, T[0] === E && b < 8 && C === -1 && (T[0] = 1, b++), A = T[1] = a === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][b];
4275
4275
  }
4276
- if (A && (T[0] = -T[0]), _ > 0 && (T[0] = T[0].toPrecision(_)), T[1] = c[T[1]] || T[1], s === !0 ? T[0] = T[0].toLocaleString() : s.length > 0 ? T[0] = T[0].toLocaleString(s, l) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
4276
+ if (M && (T[0] = -T[0]), _ > 0 && (T[0] = T[0].toPrecision(_)), T[1] = c[T[1]] || T[1], s === !0 ? T[0] = T[0].toLocaleString() : s.length > 0 ? T[0] = T[0].toLocaleString(s, l) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
4277
4277
  const w = o || PERIOD, L = T[0].toString().split(w), D = L[1] || EMPTY, x = D.length, $ = n - x;
4278
4278
  T[0] = `${L[0]}${w}${D.padEnd(x + $, ZERO)}`;
4279
4279
  }
4280
- return P && (T[1] = v[y] ? v[y] : STRINGS.fullform[u][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), d === ARRAY ? T : d === OBJECT ? {
4280
+ return P && (T[1] = v[b] ? v[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), d === ARRAY ? T : d === OBJECT ? {
4281
4281
  value: T[0],
4282
4282
  symbol: T[1],
4283
- exponent: y,
4284
- unit: M
4283
+ exponent: b,
4284
+ unit: A
4285
4285
  } : T.join(i);
4286
4286
  }
4287
4287
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
@@ -5328,12 +5328,12 @@ function baseClone(e, t, r, a, n, s) {
5328
5328
  return v;
5329
5329
  s.set(e, l), isSet$1(e) ? e.forEach(function(_) {
5330
5330
  l.add(baseClone(_, t, r, _, e, s));
5331
- }) : isMap$1(e) && e.forEach(function(_, y) {
5332
- l.set(y, baseClone(_, t, r, y, e, s));
5331
+ }) : isMap$1(e) && e.forEach(function(_, b) {
5332
+ l.set(b, baseClone(_, t, r, b, e, s));
5333
5333
  });
5334
5334
  var C = c ? i ? getAllKeysIn : getAllKeys : i ? keysIn : keys, g = u ? void 0 : C(e);
5335
- return arrayEach(g || e, function(_, y) {
5336
- g && (y = _, _ = e[y]), assignValue(l, y, baseClone(_, t, r, y, e, s));
5335
+ return arrayEach(g || e, function(_, b) {
5336
+ g && (b = _, _ = e[b]), assignValue(l, b, baseClone(_, t, r, b, e, s));
5337
5337
  }), l;
5338
5338
  }
5339
5339
  var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
@@ -5383,9 +5383,9 @@ function equalArrays(e, t, r, a, n, s) {
5383
5383
  break;
5384
5384
  }
5385
5385
  if (v) {
5386
- if (!arraySome(t, function(y, b) {
5387
- if (!cacheHas(v, b) && (C === y || n(C, y, r, a, s)))
5388
- return v.push(b);
5386
+ if (!arraySome(t, function(b, y) {
5387
+ if (!cacheHas(v, y) && (C === b || n(C, b, r, a, s)))
5388
+ return v.push(y);
5389
5389
  })) {
5390
5390
  m = !1;
5391
5391
  break;
@@ -5462,18 +5462,18 @@ function equalObjects(e, t, r, a, n, s) {
5462
5462
  s.set(e, t), s.set(t, e);
5463
5463
  for (var _ = l; ++d < i; ) {
5464
5464
  m = o[d];
5465
- var y = e[m], b = t[m];
5465
+ var b = e[m], y = t[m];
5466
5466
  if (a)
5467
- var T = l ? a(b, y, m, t, e, s) : a(y, b, m, e, t, s);
5468
- if (!(T === void 0 ? y === b || n(y, b, r, a, s) : T)) {
5467
+ var T = l ? a(y, b, m, t, e, s) : a(b, y, m, e, t, s);
5468
+ if (!(T === void 0 ? b === y || n(b, y, r, a, s) : T)) {
5469
5469
  g = !1;
5470
5470
  break;
5471
5471
  }
5472
5472
  _ || (_ = m == "constructor");
5473
5473
  }
5474
5474
  if (g && !_) {
5475
- var k = e.constructor, M = t.constructor;
5476
- k != M && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof M == "function" && M instanceof M) && (g = !1);
5475
+ var k = e.constructor, A = t.constructor;
5476
+ k != A && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof A == "function" && A instanceof A) && (g = !1);
5477
5477
  }
5478
5478
  return s.delete(e), s.delete(t), g;
5479
5479
  }
@@ -5860,7 +5860,9 @@ const without$1 = without, en = {
5860
5860
  },
5861
5861
  KgFormItem: {
5862
5862
  mustGT: "Must > {0}",
5863
- mustGTE: "Must >= {0}"
5863
+ mustGTE: "Must >= {0}",
5864
+ mustLT: "Must < {0}",
5865
+ mustLTE: "Must <= {0}"
5864
5866
  },
5865
5867
  KgSearch: {
5866
5868
  title: "Search"
@@ -6004,7 +6006,9 @@ const without$1 = without, en = {
6004
6006
  },
6005
6007
  KgFormItem: {
6006
6008
  mustGT: "\u5FC5\u987B\u5927\u4E8E {0}",
6007
- mustGTE: "\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E {0}"
6009
+ mustGTE: "\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E {0}",
6010
+ mustLT: "\u5FC5\u987B\u5C0F\u4E8E {0}",
6011
+ mustLTE: "\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E {0}"
6008
6012
  },
6009
6013
  KgSearch: {
6010
6014
  title: "\u67E5\u8BE2\u6761\u4EF6"
@@ -6487,14 +6491,14 @@ class KgVarUtil {
6487
6491
  if (!u)
6488
6492
  return i;
6489
6493
  switch ((() => {
6490
- const g = u.ctrl_typ, _ = u.prf_ctrl_typ, y = u.crt_ctrl_typ, b = u.upt_ctrl_typ, T = u.cpy_ctrl_typ, k = u.del_ctrl_typ;
6494
+ const g = u.ctrl_typ, _ = u.prf_ctrl_typ, b = u.crt_ctrl_typ, y = u.upt_ctrl_typ, T = u.cpy_ctrl_typ, k = u.del_ctrl_typ;
6491
6495
  switch (s) {
6492
6496
  case "R":
6493
6497
  return _ || g;
6494
6498
  case "C":
6495
- return y || g;
6496
- case "U":
6497
6499
  return b || g;
6500
+ case "U":
6501
+ return y || g;
6498
6502
  case "CP":
6499
6503
  return T || g;
6500
6504
  case "D":
@@ -6589,8 +6593,8 @@ class KgVarUtil {
6589
6593
  const _ = o.store.getVarPossibility(t, r);
6590
6594
  switch (_ == null ? void 0 : _.val_data_type) {
6591
6595
  case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
6592
- const y = g.map((b) => Number(b));
6593
- if (y.some((b) => Number.isNaN(y))) {
6596
+ const b = g.map((y) => Number(y));
6597
+ if (b.some((y) => Number.isNaN(b))) {
6594
6598
  KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
6595
6599
  frm_id: t,
6596
6600
  var_nam: r,
@@ -6599,13 +6603,13 @@ class KgVarUtil {
6599
6603
  });
6600
6604
  return;
6601
6605
  }
6602
- return y;
6606
+ return b;
6603
6607
  }
6604
6608
  case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
6605
- return g.map((y) => Boolean(y));
6609
+ return g.map((b) => Boolean(b));
6606
6610
  case KG_POSSIBILITY_DATA_TYPE.STRING:
6607
6611
  default:
6608
- return g.map((y) => String(y));
6612
+ return g.map((b) => String(b));
6609
6613
  }
6610
6614
  } catch {
6611
6615
  KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
@@ -6741,35 +6745,35 @@ function createSetupStore(e, t, r = {}, a, n) {
6741
6745
  const i = {
6742
6746
  deep: !0
6743
6747
  };
6744
- process.env.NODE_ENV !== "production" && !isVue2 && (i.onTrigger = (A) => {
6745
- c ? v = A : c == !1 && !E._hotUpdating && (Array.isArray(v) ? v.push(A) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6748
+ process.env.NODE_ENV !== "production" && !isVue2 && (i.onTrigger = (M) => {
6749
+ 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."));
6746
6750
  });
6747
6751
  let c, u, d = markRaw([]), m = markRaw([]), v;
6748
6752
  const C = a.state.value[e];
6749
6753
  !l && !C && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
6750
6754
  const g = ref({});
6751
- function _(A) {
6755
+ function _(M) {
6752
6756
  let I;
6753
- c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof A == "function" ? (A(a.state.value[e]), I = {
6757
+ c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof M == "function" ? (M(a.state.value[e]), I = {
6754
6758
  type: MutationType.patchFunction,
6755
6759
  storeId: e,
6756
6760
  events: v
6757
- }) : (mergeReactiveObjects(a.state.value[e], A), I = {
6761
+ }) : (mergeReactiveObjects(a.state.value[e], M), I = {
6758
6762
  type: MutationType.patchObject,
6759
- payload: A,
6763
+ payload: M,
6760
6764
  storeId: e,
6761
6765
  events: v
6762
6766
  }), nextTick().then(() => {
6763
6767
  c = !0;
6764
6768
  }), u = !0, triggerSubscriptions(d, I, a.state.value[e]);
6765
6769
  }
6766
- const y = process.env.NODE_ENV !== "production" ? () => {
6770
+ const b = process.env.NODE_ENV !== "production" ? () => {
6767
6771
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
6768
6772
  } : noop$1;
6769
- function b() {
6773
+ function y() {
6770
6774
  s.stop(), d = [], m = [], a._s.delete(e);
6771
6775
  }
6772
- function T(A, I) {
6776
+ function T(M, I) {
6773
6777
  return function() {
6774
6778
  setActivePinia(a);
6775
6779
  const w = Array.from(arguments), L = [], D = [];
@@ -6781,7 +6785,7 @@ function createSetupStore(e, t, r = {}, a, n) {
6781
6785
  }
6782
6786
  triggerSubscriptions(m, {
6783
6787
  args: w,
6784
- name: A,
6788
+ name: M,
6785
6789
  store: E,
6786
6790
  after: x,
6787
6791
  onError: $
@@ -6800,15 +6804,15 @@ function createSetupStore(e, t, r = {}, a, n) {
6800
6804
  getters: {},
6801
6805
  state: [],
6802
6806
  hotState: g
6803
- }), M = {
6807
+ }), A = {
6804
6808
  _p: a,
6805
6809
  $id: e,
6806
6810
  $onAction: addSubscription.bind(null, m),
6807
6811
  $patch: _,
6808
- $reset: y,
6809
- $subscribe(A, I = {}) {
6810
- const w = addSubscription(d, A, I.detached, () => L()), L = s.run(() => watch(() => a.state.value[e], (D) => {
6811
- (I.flush === "sync" ? u : c) && A({
6812
+ $reset: b,
6813
+ $subscribe(M, I = {}) {
6814
+ const w = addSubscription(d, M, I.detached, () => L()), L = s.run(() => watch(() => a.state.value[e], (D) => {
6815
+ (I.flush === "sync" ? u : c) && M({
6812
6816
  storeId: e,
6813
6817
  type: MutationType.direct,
6814
6818
  events: v
@@ -6816,33 +6820,33 @@ function createSetupStore(e, t, r = {}, a, n) {
6816
6820
  }, assign$1({}, i, I)));
6817
6821
  return w;
6818
6822
  },
6819
- $dispose: b
6823
+ $dispose: y
6820
6824
  }, E = reactive(assign$1(
6821
6825
  process.env.NODE_ENV !== "production" && IS_CLIENT ? {
6822
6826
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
6823
6827
  _hmrPayload: k
6824
6828
  } : {},
6825
- M
6829
+ A
6826
6830
  ));
6827
6831
  a._s.set(e, E);
6828
6832
  const P = a._e.run(() => (s = effectScope(), s.run(() => t())));
6829
- for (const A in P) {
6830
- const I = P[A];
6833
+ for (const M in P) {
6834
+ const I = P[M];
6831
6835
  if (isRef(I) && !isComputed(I) || isReactive(I))
6832
- process.env.NODE_ENV !== "production" && n ? set(g.value, A, toRef(P, A)) : l || (C && shouldHydrate(I) && (isRef(I) ? I.value = C[A] : mergeReactiveObjects(I, C[A])), a.state.value[e][A] = I), process.env.NODE_ENV !== "production" && k.state.push(A);
6836
+ process.env.NODE_ENV !== "production" && n ? set(g.value, M, toRef(P, M)) : l || (C && shouldHydrate(I) && (isRef(I) ? I.value = C[M] : mergeReactiveObjects(I, C[M])), a.state.value[e][M] = I), process.env.NODE_ENV !== "production" && k.state.push(M);
6833
6837
  else if (typeof I == "function") {
6834
- const w = process.env.NODE_ENV !== "production" && n ? I : T(A, I);
6835
- P[A] = w, process.env.NODE_ENV !== "production" && (k.actions[A] = I), o.actions[A] = I;
6838
+ const w = process.env.NODE_ENV !== "production" && n ? I : T(M, I);
6839
+ P[M] = w, process.env.NODE_ENV !== "production" && (k.actions[M] = I), o.actions[M] = I;
6836
6840
  } else
6837
- process.env.NODE_ENV !== "production" && isComputed(I) && (k.getters[A] = l ? r.getters[A] : I, IS_CLIENT && (P._getters || (P._getters = markRaw([]))).push(A));
6841
+ process.env.NODE_ENV !== "production" && isComputed(I) && (k.getters[M] = l ? r.getters[M] : I, IS_CLIENT && (P._getters || (P._getters = markRaw([]))).push(M));
6838
6842
  }
6839
6843
  if (assign$1(E, P), assign$1(toRaw(E), P), Object.defineProperty(E, "$state", {
6840
6844
  get: () => process.env.NODE_ENV !== "production" && n ? g.value : a.state.value[e],
6841
- set: (A) => {
6845
+ set: (M) => {
6842
6846
  if (process.env.NODE_ENV !== "production" && n)
6843
6847
  throw new Error("cannot set hotState");
6844
6848
  _((I) => {
6845
- assign$1(I, A);
6849
+ assign$1(I, M);
6846
6850
  });
6847
6851
  }
6848
6852
  }), process.env.NODE_ENV !== "production") {
@@ -6872,7 +6876,7 @@ function createSetupStore(e, t, r = {}, a, n) {
6872
6876
  w in I._hmrPayload.actions || del(E, w);
6873
6877
  }), E._hmrPayload = I._hmrPayload, E._getters = I._getters, E._hotUpdating = !1;
6874
6878
  });
6875
- const A = {
6879
+ const M = {
6876
6880
  writable: !0,
6877
6881
  configurable: !0,
6878
6882
  enumerable: !1
@@ -6880,13 +6884,13 @@ function createSetupStore(e, t, r = {}, a, n) {
6880
6884
  IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
6881
6885
  Object.defineProperty(E, I, {
6882
6886
  value: E[I],
6883
- ...A
6887
+ ...M
6884
6888
  });
6885
6889
  });
6886
6890
  }
6887
- return a._p.forEach((A) => {
6891
+ return a._p.forEach((M) => {
6888
6892
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
6889
- const I = s.run(() => A({
6893
+ const I = s.run(() => M({
6890
6894
  store: E,
6891
6895
  app: a._a,
6892
6896
  pinia: a,
@@ -6894,7 +6898,7 @@ function createSetupStore(e, t, r = {}, a, n) {
6894
6898
  }));
6895
6899
  Object.keys(I || {}).forEach((w) => E._customProperties.add(w)), assign$1(E, I);
6896
6900
  } else
6897
- assign$1(E, s.run(() => A({
6901
+ assign$1(E, s.run(() => M({
6898
6902
  store: E,
6899
6903
  app: a._a,
6900
6904
  pinia: a,
@@ -7435,18 +7439,18 @@ const KgModal_Close = "", getProps$A = () => ({
7435
7439
  slots: r
7436
7440
  }) {
7437
7441
  if (e.kgMaxHeight < e.kgMinHeight) {
7438
- const b = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
7439
- throw KgLogger.error(b, {
7442
+ const y = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
7443
+ throw KgLogger.error(y, {
7440
7444
  kgMaxHeight: e.kgMaxHeight,
7441
7445
  kgMinHeight: e.kgMinHeight
7442
- }), new Error(b);
7446
+ }), new Error(y);
7443
7447
  }
7444
7448
  if (e.kgMaxWidth < e.kgMinWidth) {
7445
- const b = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
7446
- throw KgLogger.error(b, {
7449
+ const y = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
7450
+ throw KgLogger.error(y, {
7447
7451
  kgMaxWidth: e.kgMaxWidth,
7448
7452
  kgMinWidth: e.kgMinWidth
7449
- }), new Error(b);
7453
+ }), new Error(y);
7450
7454
  }
7451
7455
  let a = 0, n = 0, s = 0, l = 0, o = {
7452
7456
  remove: () => {
@@ -7469,22 +7473,22 @@ const KgModal_Close = "", getProps$A = () => ({
7469
7473
  };
7470
7474
  }
7471
7475
  }), u = computed(() => {
7472
- let b = "";
7473
- switch (e.kgClass && (b += `${e.kgClass} `), b += "kg-resizable", e.kgDisabled && (b += " kg-resizable--disabled"), e.kgType) {
7476
+ let y = "";
7477
+ switch (e.kgClass && (y += `${e.kgClass} `), y += "kg-resizable", e.kgDisabled && (y += " kg-resizable--disabled"), e.kgType) {
7474
7478
  case "left":
7475
- b += " kg-resizable--left";
7479
+ y += " kg-resizable--left";
7476
7480
  break;
7477
7481
  case "right":
7478
- b += " kg-resizable--right";
7482
+ y += " kg-resizable--right";
7479
7483
  break;
7480
7484
  case "top":
7481
- b += " kg-resizable--top";
7485
+ y += " kg-resizable--top";
7482
7486
  break;
7483
7487
  case "bottom":
7484
- b += " kg-resizable--bottom";
7488
+ y += " kg-resizable--bottom";
7485
7489
  break;
7486
7490
  }
7487
- return b;
7491
+ return y;
7488
7492
  });
7489
7493
  function d() {
7490
7494
  o.remove(), i.remove();
@@ -7492,51 +7496,51 @@ const KgModal_Close = "", getProps$A = () => ({
7492
7496
  onUnmounted(() => {
7493
7497
  d();
7494
7498
  });
7495
- const m = (b) => {
7499
+ const m = (y) => {
7496
7500
  switch (e.kgType) {
7497
7501
  case "top":
7498
- t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (b.pageY - l))));
7502
+ t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (y.pageY - l))));
7499
7503
  break;
7500
7504
  case "bottom":
7501
- t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (b.pageY - l))));
7505
+ t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (y.pageY - l))));
7502
7506
  break;
7503
7507
  case "left":
7504
- t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (b.pageX - s))));
7508
+ t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (y.pageX - s))));
7505
7509
  break;
7506
7510
  case "right":
7507
- t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (b.pageX - s))));
7511
+ t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (y.pageX - s))));
7508
7512
  break;
7509
7513
  }
7510
7514
  };
7511
- function v(b) {
7512
- m(b);
7515
+ function v(y) {
7516
+ m(y);
7513
7517
  }
7514
- function C(b) {
7515
- m(b), d();
7518
+ function C(y) {
7519
+ m(y), d();
7516
7520
  }
7517
- function g(b) {
7518
- b.stopPropagation(), b.preventDefault(), d(), !(b instanceof MouseEvent && b.which !== 1) && (s = b.pageX, l = b.pageY, a = e.kgWidth, n = e.kgHeight, o = _(document.documentElement, "mousemove", v), i = _(document.documentElement, "mouseup", C));
7521
+ function g(y) {
7522
+ y.stopPropagation(), y.preventDefault(), d(), !(y instanceof MouseEvent && y.which !== 1) && (s = y.pageX, l = y.pageY, a = e.kgWidth, n = e.kgHeight, o = _(document.documentElement, "mousemove", v), i = _(document.documentElement, "mouseup", C));
7519
7523
  }
7520
- function _(b, T, k) {
7521
- return b.addEventListener(T, k), {
7522
- remove: () => b.removeEventListener(T, k)
7524
+ function _(y, T, k) {
7525
+ return y.addEventListener(T, k), {
7526
+ remove: () => y.removeEventListener(T, k)
7523
7527
  };
7524
7528
  }
7525
- function y(b) {
7526
- b.stopPropagation(), b.preventDefault();
7529
+ function b(y) {
7530
+ y.stopPropagation(), y.preventDefault();
7527
7531
  }
7528
7532
  return () => {
7529
- var b;
7533
+ var y;
7530
7534
  return createVNode("div", {
7531
7535
  class: u.value,
7532
7536
  style: c.value
7533
7537
  }, [createVNode("div", {
7534
7538
  class: "kg-resizable-handle",
7535
- onClick: y,
7539
+ onClick: b,
7536
7540
  onMousedown: g
7537
7541
  }, [createVNode("div", {
7538
7542
  class: "kg-resizable-handle-line"
7539
- }, null)]), (b = r.default) == null ? void 0 : b.call(r)]);
7543
+ }, null)]), (y = r.default) == null ? void 0 : y.call(r)]);
7540
7544
  };
7541
7545
  }
7542
7546
  }), getProps$w = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_MODEL"), DI_FORM_REF = Symbol("DI_FORM_REF");
@@ -7691,8 +7695,8 @@ function createStore(e, t, r) {
7691
7695
  var m = slice(arguments, 0), v = this;
7692
7696
  function C() {
7693
7697
  if (!!u)
7694
- return each$6(arguments, function(_, y) {
7695
- m[y] = _;
7698
+ return each$6(arguments, function(_, b) {
7699
+ m[b] = _;
7696
7700
  }), u.apply(v, m);
7697
7701
  }
7698
7702
  var g = [C].concat(m);
@@ -8708,20 +8712,20 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
8708
8712
  varVariableInputs: C,
8709
8713
  varPossibilities: g,
8710
8714
  varButtons: _,
8711
- varButtonConfig: y,
8712
- varSubmitConfig: b,
8715
+ varButtonConfig: b,
8716
+ varSubmitConfig: y,
8713
8717
  varSubmitFields: T,
8714
8718
  varProfile: k,
8715
- varProfileConfig: M,
8719
+ varProfileConfig: A,
8716
8720
  varGrid: E,
8717
8721
  varGridConfig: P
8718
8722
  } = await GetAll({ params: { frm_id: e } });
8719
- this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, m != null ? m : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, v != null ? v : []), this.varVariableInputMap.set(e, C != null ? C : []), this.varButtonMap.set(e, transformVarButtons(_)), this.varButtonConfigMap.set(e, transformVarButtonConfig(y != null ? y : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(b)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(T)), this.varProfileConfigMap.set(e, transformVarProfileConfig(M != null ? M : null)), this.varProfileMap.set(e, {
8723
+ this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, m != null ? m : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, v != null ? v : []), this.varVariableInputMap.set(e, C != null ? C : []), this.varButtonMap.set(e, transformVarButtons(_)), this.varButtonConfigMap.set(e, transformVarButtonConfig(b != null ? b : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(y)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(T)), this.varProfileConfigMap.set(e, transformVarProfileConfig(A != null ? A : null)), this.varProfileMap.set(e, {
8720
8724
  varProfile: k != null ? k : null,
8721
- currentVarProfileMasterID: (s = (n = ((t = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : t.find((A) => A.def_flg === 1)) || ((r = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : r.find((A) => A.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((a = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : a.find(() => !0))) == null ? void 0 : n.id) != null ? s : null
8725
+ currentVarProfileMasterID: (s = (n = ((t = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : t.find((M) => M.def_flg === 1)) || ((r = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : r.find((M) => M.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((a = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : a.find(() => !0))) == null ? void 0 : n.id) != null ? s : null
8722
8726
  }), this.varGridConfigMap.set(e, transformVarGridConfig(P != null ? P : null)), this.varGridMap.set(e, {
8723
8727
  varGrid: transformVarGridDTO(E),
8724
- currentVarGridMasterID: (u = (c = ((l = E == null ? void 0 : E.varGridMasters) == null ? void 0 : l.find((A) => A.def_flg === 1)) || ((o = E == null ? void 0 : E.varGridMasters) == null ? void 0 : o.find((A) => A.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((i = E == null ? void 0 : E.varGridMasters) == null ? void 0 : i.find(() => !0))) == null ? void 0 : c.id) != null ? u : null
8728
+ currentVarGridMasterID: (u = (c = ((l = E == null ? void 0 : E.varGridMasters) == null ? void 0 : l.find((M) => M.def_flg === 1)) || ((o = E == null ? void 0 : E.varGridMasters) == null ? void 0 : o.find((M) => M.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((i = E == null ? void 0 : E.varGridMasters) == null ? void 0 : i.find(() => !0))) == null ? void 0 : c.id) != null ? u : null
8725
8729
  }), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
8726
8730
  } catch (d) {
8727
8731
  throw d;
@@ -8915,7 +8919,7 @@ function useKgVar(e, t, r = 0) {
8915
8919
  const d = (q) => computed(() => {
8916
8920
  var Z, ee, se;
8917
8921
  return (se = (ee = (Z = u.getVarCatalog(c, q)) == null ? void 0 : Z.var_text) != null ? ee : q) != null ? se : "";
8918
- }), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), C = computed(() => u.isRetrievingVarGridMaster(c)), g = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), y = computed(() => u.isUpdating(c)), b = computed(() => u.isUpdatingRequesting(c)), T = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)), M = computed(() => u.isDeleting(c)), E = computed(() => u.isDeletingRequesting(c)), P = computed(() => u.isOtherRequesting(c)), A = computed(() => u.getVarButtons(c)), I = computed(() => u.getVarButtonSearch(c)), w = computed(() => u.getVarButtonCreate(c)), L = computed(() => u.getVarButtonUpdate(c)), D = computed(() => u.getVarButtonCopy(c)), x = computed(() => u.getVarButtonDelete(c)), $ = computed(() => u.getVarProfileMasters(c)), V = computed(() => u.getCurrentVarProfileMaster(c)), O = computed(() => u.getCurrentVarProfileMasterID(c)), U = computed(() => {
8922
+ }), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), C = computed(() => u.isRetrievingVarGridMaster(c)), g = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), y = computed(() => u.isUpdatingRequesting(c)), T = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)), A = computed(() => u.isDeleting(c)), E = computed(() => u.isDeletingRequesting(c)), P = computed(() => u.isOtherRequesting(c)), M = computed(() => u.getVarButtons(c)), I = computed(() => u.getVarButtonSearch(c)), w = computed(() => u.getVarButtonCreate(c)), L = computed(() => u.getVarButtonUpdate(c)), D = computed(() => u.getVarButtonCopy(c)), x = computed(() => u.getVarButtonDelete(c)), $ = computed(() => u.getVarProfileMasters(c)), V = computed(() => u.getCurrentVarProfileMaster(c)), O = computed(() => u.getCurrentVarProfileMasterID(c)), U = computed(() => {
8919
8923
  var q, Z;
8920
8924
  return (Z = (q = V.value) == null ? void 0 : q.varProfileDetails) != null ? Z : null;
8921
8925
  }), F = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), B = computed(() => u.getCurrentVarGridMaster(c)), z = computed(() => u.getSystemVarGridDetails(c)), Q = computed(() => u.getCurrentVarGridDetails(c));
@@ -8927,14 +8931,14 @@ function useKgVar(e, t, r = 0) {
8927
8931
  isRetrievingVarGridMaster: C,
8928
8932
  isCreating: g,
8929
8933
  isCreatingRequesting: _,
8930
- isUpdating: y,
8931
- isUpdatingRequesting: b,
8934
+ isUpdating: b,
8935
+ isUpdatingRequesting: y,
8932
8936
  isCopying: T,
8933
8937
  isCopyingRequesting: k,
8934
- isDeleting: M,
8938
+ isDeleting: A,
8935
8939
  isDeletingRequesting: E,
8936
8940
  isOtherRequesting: P,
8937
- varButtons: A,
8941
+ varButtons: M,
8938
8942
  varButtonSearch: I,
8939
8943
  varButtonCreate: w,
8940
8944
  varButtonUpdate: L,
@@ -9033,9 +9037,9 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
9033
9037
  r("update:visible", !1);
9034
9038
  }
9035
9039
  async function C() {
9036
- var g, _, y, b, T, k, M;
9040
+ var g, _, b, y, T, k, A;
9037
9041
  if (d.value) {
9038
- const E = (_ = (g = c.selectedRows) == null ? void 0 : g.value) != null ? _ : [], P = (y = E.map((I) => I[m.value])) != null ? y : [];
9042
+ const E = (_ = (g = c.selectedRows) == null ? void 0 : g.value) != null ? _ : [], P = (b = E.map((I) => I[m.value])) != null ? b : [];
9039
9043
  await s.store.emit(s.formID, "lookupBeforeOk", {
9040
9044
  var_nam: l,
9041
9045
  isMultiple: !0,
@@ -9049,7 +9053,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
9049
9053
  rows: E
9050
9054
  }), r("update:visible", !1));
9051
9055
  } else {
9052
- const E = (k = (T = (b = c.selectedRows) == null ? void 0 : b.value) == null ? void 0 : T[0]) != null ? k : null, P = (M = E == null ? void 0 : E[m.value]) != null ? M : "";
9056
+ const E = (k = (T = (y = c.selectedRows) == null ? void 0 : y.value) == null ? void 0 : T[0]) != null ? k : null, P = (A = E == null ? void 0 : E[m.value]) != null ? A : "";
9053
9057
  await s.store.emit(s.formID, "lookupBeforeOk", {
9054
9058
  var_nam: l,
9055
9059
  isMultiple: !1,
@@ -9165,7 +9169,7 @@ function _useRules(e) {
9165
9169
  const t = useKg(), r = useKgVar(), a = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), n = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), s = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName));
9166
9170
  return {
9167
9171
  rules: computed(() => {
9168
- var i, c, u, d, m, v, C, g;
9172
+ var i, c, u, d, m, v, C, g, _, b;
9169
9173
  let o = [];
9170
9174
  switch (e.kgContext) {
9171
9175
  case KG_FORM_CONTEXT.SEARCH:
@@ -9205,12 +9209,20 @@ function _useRules(e) {
9205
9209
  }
9206
9210
  switch ((v = n.value) == null ? void 0 : v.data_type) {
9207
9211
  case KG_VAR_INPUT__DATA_TYPE.NUMBER:
9208
- const _ = (C = n.value) == null ? void 0 : C.min;
9209
- isNil(_) || (((g = n.value) == null ? void 0 : g.min_include_flg) === 1 ? o.push({
9210
- validator: (y, b) => b == null || b === "" || typeof b == "string" && b.trim() === "" ? Promise.resolve() : Number(b) < _ ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [_])) : Promise.resolve()
9211
- }) : o.push({
9212
- validator: (y, b) => b == null || b === "" || typeof b == "string" && b.trim() === "" ? Promise.resolve() : Number(b) <= _ ? Promise.reject(t.t("kg.KgFormItem.mustGT", [_])) : Promise.resolve()
9213
- }));
9212
+ {
9213
+ const y = (C = n.value) == null ? void 0 : C.min;
9214
+ isNil(y) || (((g = n.value) == null ? void 0 : g.min_include_flg) === 1 ? o.push({
9215
+ validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) < y ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [y])) : Promise.resolve()
9216
+ }) : o.push({
9217
+ validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) <= y ? Promise.reject(t.t("kg.KgFormItem.mustGT", [y])) : Promise.resolve()
9218
+ }));
9219
+ const T = (_ = n.value) == null ? void 0 : _.max;
9220
+ isNil(T) || (((b = n.value) == null ? void 0 : b.max_include_flg) === 1 ? o.push({
9221
+ validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) > T ? Promise.reject(t.t("kg.KgFormItem.mustLTE", [T])) : Promise.resolve()
9222
+ }) : o.push({
9223
+ validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) >= T ? Promise.reject(t.t("kg.KgFormItem.mustLT", [T])) : Promise.resolve()
9224
+ }));
9225
+ }
9214
9226
  break;
9215
9227
  }
9216
9228
  return e.kgRules && (o = [...o, ...e.kgRules]), o;
@@ -9219,8 +9231,8 @@ function _useRules(e) {
9219
9231
  }
9220
9232
  function useKgFormItem(e) {
9221
9233
  const t = (e == null ? void 0 : e.kgVarName) || inject(KG_DI_VAR_NAME, e == null ? void 0 : e.kgVarName), r = (e == null ? void 0 : e.kgContext) || inject(DI_KG_CONTEXT, e == null ? void 0 : e.kgContext), a = useKgVar(), n = computed(() => a.store.getVarVariableConfig(a.formID, t)), s = computed(() => {
9222
- var v, C, g, _, y, b;
9223
- const o = (v = n.value) == null ? void 0 : v.ctrl_typ, i = (C = n.value) == null ? void 0 : C.prf_ctrl_typ, c = (g = n.value) == null ? void 0 : g.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;
9234
+ var v, C, g, _, b, y;
9235
+ const o = (v = n.value) == null ? void 0 : v.ctrl_typ, i = (C = n.value) == null ? void 0 : C.prf_ctrl_typ, c = (g = n.value) == null ? void 0 : g.crt_ctrl_typ, u = (_ = n.value) == null ? void 0 : _.upt_ctrl_typ, d = (b = n.value) == null ? void 0 : b.cpy_ctrl_typ, m = (y = n.value) == null ? void 0 : y.del_ctrl_typ;
9224
9236
  switch (r) {
9225
9237
  case KG_FORM_CONTEXT.SEARCH:
9226
9238
  return i || o;
@@ -9238,9 +9250,9 @@ function useKgFormItem(e) {
9238
9250
  }
9239
9251
  return o;
9240
9252
  }), l = computed(() => {
9241
- var C, g, _, y, b, T;
9253
+ var C, g, _, b, y, T;
9242
9254
  let o;
9243
- const i = (C = n.value) == null ? void 0 : C.ctrl_prop, c = (g = n.value) == null ? void 0 : g.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 = (T = n.value) == null ? void 0 : T.del_ctrl_prop;
9255
+ const i = (C = n.value) == null ? void 0 : C.ctrl_prop, c = (g = n.value) == null ? void 0 : g.prf_ctrl_prop, u = (_ = n.value) == null ? void 0 : _.crt_ctrl_prop, d = (b = n.value) == null ? void 0 : b.upt_ctrl_prop, m = (y = n.value) == null ? void 0 : y.cpy_ctrl_prop, v = (T = n.value) == null ? void 0 : T.del_ctrl_prop;
9244
9256
  switch (r) {
9245
9257
  case KG_FORM_CONTEXT.SEARCH:
9246
9258
  o = c || i;
@@ -9282,20 +9294,20 @@ function useKgFormItemSelect() {
9282
9294
  var g, _;
9283
9295
  let C = v;
9284
9296
  if (typeof v == "string" && v.startsWith("{") && v.endsWith("}")) {
9285
- let y = v.slice(1, -1), b = "";
9286
- if (y.includes(".")) {
9287
- const T = y.split(".");
9288
- y = T[0], b = T[1];
9297
+ let b = v.slice(1, -1), y = "";
9298
+ if (b.includes(".")) {
9299
+ const T = b.split(".");
9300
+ b = T[0], y = T[1];
9289
9301
  }
9290
- t.value && y in t.value && (b ? C = (_ = (g = t.value[`${y}_obj`]) == null ? void 0 : g[b]) != null ? _ : void 0 : C = t.value[y], C || (C = "__KG__FORM_ITEM_SELECT__PID"));
9302
+ t.value && b in t.value && (y ? C = (_ = (g = t.value[`${b}_obj`]) == null ? void 0 : g[y]) != null ? _ : void 0 : C = t.value[b], C || (C = "__KG__FORM_ITEM_SELECT__PID"));
9291
9303
  }
9292
9304
  return C;
9293
9305
  }), d;
9294
9306
  });
9295
9307
  async function c() {
9296
- var y, b, T, k, M, E, P, A;
9308
+ var b, y, T, k, A, E, P, M;
9297
9309
  let d = [];
9298
- const m = (y = a.value) == null ? void 0 : y.cmd, v = (T = (b = a.value) == null ? void 0 : b.cmd_method) != null ? T : "GET", C = (M = (k = a.value) == null ? void 0 : k.val_clm) != null ? M : "", g = (P = (E = a.value) == null ? void 0 : E.lbl_clm) != null ? P : "";
9310
+ const m = (b = a.value) == null ? void 0 : b.cmd, v = (T = (y = a.value) == null ? void 0 : y.cmd_method) != null ? T : "GET", C = (A = (k = a.value) == null ? void 0 : k.val_clm) != null ? A : "", g = (P = (E = a.value) == null ? void 0 : E.lbl_clm) != null ? P : "";
9299
9311
  if (!m || !C || !g) {
9300
9312
  KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
9301
9313
  frm_id: r.formID,
@@ -9308,7 +9320,7 @@ function useKgFormItemSelect() {
9308
9320
  }
9309
9321
  let _ = null;
9310
9322
  try {
9311
- _ = await ((A = httpClient()) == null ? void 0 : A.request({
9323
+ _ = await ((M = httpClient()) == null ? void 0 : M.request({
9312
9324
  url: m,
9313
9325
  method: v,
9314
9326
  params: i.value
@@ -9340,10 +9352,10 @@ function useKgFormItemSelect() {
9340
9352
  l.value = d;
9341
9353
  }
9342
9354
  function u(d) {
9343
- var C, g, _, y, b;
9355
+ var C, g, _, b, y;
9344
9356
  if (!d)
9345
9357
  return [];
9346
- const m = (g = (C = a.value) == null ? void 0 : C.val_clm) != null ? g : "", v = (y = (_ = a.value) == null ? void 0 : _.val_data_type) != null ? y : "string";
9358
+ const m = (g = (C = a.value) == null ? void 0 : C.val_clm) != null ? g : "", v = (b = (_ = a.value) == null ? void 0 : _.val_data_type) != null ? b : "string";
9347
9359
  switch (v) {
9348
9360
  case KG_POSSIBILITY_DATA_TYPE.STRING:
9349
9361
  d.forEach((T) => {
@@ -9375,10 +9387,10 @@ function useKgFormItemSelect() {
9375
9387
  case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
9376
9388
  {
9377
9389
  const T = s;
9378
- if ((b = T.value) != null && b.excludeValues)
9390
+ if ((y = T.value) != null && y.excludeValues)
9379
9391
  return d.filter((k) => {
9380
- var M;
9381
- return !((M = T.value.excludeValues) != null && M.includes(k[m]));
9392
+ var A;
9393
+ return !((A = T.value.excludeValues) != null && A.includes(k[m]));
9382
9394
  });
9383
9395
  }
9384
9396
  break;
@@ -9416,20 +9428,20 @@ const KgFormItemCheckboxGroup = defineComponent({
9416
9428
  } = useKgFormItemSelect(), d = ref(!1), m = ref(!1);
9417
9429
  watch(o, () => v(), {
9418
9430
  immediate: !0
9419
- }), watch([() => e.value, c], ([_, y]) => {
9420
- const b = get(_, "length", 0);
9421
- if (b > 0 && y.length > 0) {
9422
- const T = intersection$1(_, y == null ? void 0 : y.map((k) => k[i.value]));
9423
- if (T.length < b) {
9431
+ }), watch([() => e.value, c], ([_, b]) => {
9432
+ const y = get(_, "length", 0);
9433
+ if (y > 0 && b.length > 0) {
9434
+ const T = intersection$1(_, b == null ? void 0 : b.map((k) => k[i.value]));
9435
+ if (T.length < y) {
9424
9436
  r("update:value", T);
9425
9437
  return;
9426
9438
  }
9427
9439
  }
9428
9440
  switch (!0) {
9429
- case (b > 0 && b === y.length):
9441
+ case (y > 0 && y === b.length):
9430
9442
  d.value = !0, m.value = !1;
9431
9443
  break;
9432
- case (b > 0 && b !== y.length):
9444
+ case (y > 0 && y !== b.length):
9433
9445
  d.value = !1, m.value = !0;
9434
9446
  break;
9435
9447
  default:
@@ -9440,24 +9452,24 @@ const KgFormItemCheckboxGroup = defineComponent({
9440
9452
  immediate: !0
9441
9453
  });
9442
9454
  async function v() {
9443
- var _, y;
9444
- !((_ = l.value) != null && _.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((y = c.value) == null ? void 0 : y.map((b) => b[i.value]), e.value)));
9455
+ var _, b;
9456
+ !((_ = l.value) != null && _.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((b = c.value) == null ? void 0 : b.map((y) => y[i.value]), e.value)));
9445
9457
  }
9446
9458
  function C(_) {
9447
- var y, b, T;
9448
- _.target.checked ? g((b = (y = c.value) == null ? void 0 : y.map((k) => k[i.value])) != null ? b : []) : g([]), m.value = !1, (T = n.value) == null || T.validate(e.kgVarName);
9459
+ var b, y, T;
9460
+ _.target.checked ? g((y = (b = c.value) == null ? void 0 : b.map((k) => k[i.value])) != null ? y : []) : g([]), m.value = !1, (T = n.value) == null || T.validate(e.kgVarName);
9449
9461
  }
9450
9462
  function g(_) {
9451
9463
  r("update:value", _), r("kgChange", _);
9452
9464
  }
9453
9465
  return () => {
9454
- let _, y;
9466
+ let _, b;
9455
9467
  return createVNode("div", {
9456
9468
  class: "kg-form-item-checkbox-group"
9457
9469
  }, [createVNode(Form.ItemRest, null, {
9458
9470
  default: () => [createVNode(Checkbox, {
9459
9471
  checked: d.value,
9460
- "onUpdate:checked": (b) => d.value = b,
9472
+ "onUpdate:checked": (y) => d.value = y,
9461
9473
  indeterminate: m.value,
9462
9474
  onChange: C
9463
9475
  }, _isSlot$a(_ = a.t("kg.selectAll")) ? _ : {
@@ -9469,23 +9481,23 @@ const KgFormItemCheckboxGroup = defineComponent({
9469
9481
  }, {
9470
9482
  default: () => [createVNode(Row, {
9471
9483
  gutter: 12
9472
- }, _isSlot$a(y = c.value.map((b) => {
9484
+ }, _isSlot$a(b = c.value.map((y) => {
9473
9485
  var T, k;
9474
9486
  return createVNode(Col, {
9475
9487
  span: (k = (T = s.value) == null ? void 0 : T.span) != null ? k : 24
9476
9488
  }, {
9477
9489
  default: () => [createVNode(Checkbox, {
9478
- value: b[i.value],
9479
- "kg-value": b[i.value]
9490
+ value: y[i.value],
9491
+ "kg-value": y[i.value]
9480
9492
  }, {
9481
9493
  default: () => {
9482
- var M, E;
9483
- return [b[(E = (M = l.value) == null ? void 0 : M.lbl_clm) != null ? E : ""]];
9494
+ var A, E;
9495
+ return [y[(E = (A = l.value) == null ? void 0 : A.lbl_clm) != null ? E : ""]];
9484
9496
  }
9485
9497
  })]
9486
9498
  });
9487
- })) ? y : {
9488
- default: () => [y]
9499
+ })) ? b : {
9500
+ default: () => [b]
9489
9501
  })]
9490
9502
  })]);
9491
9503
  };
@@ -9777,14 +9789,14 @@ const KgFormItemRadioGroup = defineComponent({
9777
9789
  useKg();
9778
9790
  const s = useKgVar();
9779
9791
  useKgForm(s.formID).onLookupOk(async ({
9780
- var_nam: A,
9792
+ var_nam: M,
9781
9793
  model: I,
9782
9794
  isMultiple: w,
9783
9795
  value: L,
9784
9796
  values: D
9785
9797
  }) => {
9786
9798
  var x;
9787
- switch (A) {
9799
+ switch (M) {
9788
9800
  case e.kgVarName:
9789
9801
  I.value && (w ? I.value[e.kgVarName] = D : I.value[e.kgVarName] = L), (x = n.value) == null || x.validate([e.kgVarName]);
9790
9802
  break;
@@ -9799,78 +9811,78 @@ const KgFormItemRadioGroup = defineComponent({
9799
9811
  var I, w, L, D, x;
9800
9812
  if (s.isRetrieving.value)
9801
9813
  return !0;
9802
- let A = !1;
9814
+ let M = !1;
9803
9815
  if (e.kgDisabled !== void 0)
9804
- A = e.kgDisabled;
9816
+ M = e.kgDisabled;
9805
9817
  else
9806
9818
  switch (e.kgContext) {
9807
9819
  case KG_FORM_CONTEXT.SEARCH:
9808
- A = ((I = c.value) == null ? void 0 : I.ena_flg) === 0;
9820
+ M = ((I = c.value) == null ? void 0 : I.ena_flg) === 0;
9809
9821
  break;
9810
9822
  case KG_FORM_CONTEXT.SUBMIT:
9811
9823
  switch (!0) {
9812
9824
  case s.isCreating.value:
9813
- A = ((w = u.value) == null ? void 0 : w.crt_ena_flg) === 0;
9825
+ M = ((w = u.value) == null ? void 0 : w.crt_ena_flg) === 0;
9814
9826
  break;
9815
9827
  case s.isUpdating.value:
9816
- A = ((L = u.value) == null ? void 0 : L.upt_ena_flg) === 0;
9828
+ M = ((L = u.value) == null ? void 0 : L.upt_ena_flg) === 0;
9817
9829
  break;
9818
9830
  case s.isCopying.value:
9819
- A = ((D = u.value) == null ? void 0 : D.cpy_ena_flg) === 0;
9831
+ M = ((D = u.value) == null ? void 0 : D.cpy_ena_flg) === 0;
9820
9832
  break;
9821
9833
  case s.isDeleting.value:
9822
- A = ((x = u.value) == null ? void 0 : x.del_ena_flg) === 0;
9834
+ M = ((x = u.value) == null ? void 0 : x.del_ena_flg) === 0;
9823
9835
  break;
9824
9836
  }
9825
9837
  break;
9826
9838
  }
9827
- return A;
9839
+ return M;
9828
9840
  }), C = computed(() => {
9829
9841
  var I, w, L, D;
9830
- let A = " ";
9842
+ let M = " ";
9831
9843
  if (e.kgPlaceholder)
9832
- A = e.kgPlaceholder;
9844
+ M = e.kgPlaceholder;
9833
9845
  else
9834
9846
  switch (e.kgContext) {
9835
9847
  case KG_FORM_CONTEXT.SEARCH:
9836
- A = s.t((w = (I = c.value) == null ? void 0 : I.placeholder) != null ? w : " ").value;
9848
+ M = s.t((w = (I = c.value) == null ? void 0 : I.placeholder) != null ? w : " ").value;
9837
9849
  break;
9838
9850
  case KG_FORM_CONTEXT.SUBMIT:
9839
- A = s.t((D = (L = u.value) == null ? void 0 : L.placeholder) != null ? D : " ").value;
9851
+ M = s.t((D = (L = u.value) == null ? void 0 : L.placeholder) != null ? D : " ").value;
9840
9852
  break;
9841
9853
  }
9842
- return A;
9854
+ return M;
9843
9855
  }), g = computed(() => {
9844
9856
  var I, w, L, D, x, $, V, O, U, F;
9845
- let A = 6;
9857
+ let M = 6;
9846
9858
  if (e.kgSpan !== void 0)
9847
- A = e.kgSpan;
9859
+ M = e.kgSpan;
9848
9860
  else
9849
9861
  switch (e.kgContext) {
9850
9862
  case KG_FORM_CONTEXT.SEARCH:
9851
- A = (w = (I = c.value) == null ? void 0 : I.width) != null ? w : 6;
9863
+ M = (w = (I = c.value) == null ? void 0 : I.width) != null ? w : 6;
9852
9864
  break;
9853
9865
  case KG_FORM_CONTEXT.SUBMIT:
9854
9866
  switch (!0) {
9855
9867
  case s.isCreating.value:
9856
- A = (D = (L = u.value) == null ? void 0 : L.crt_width) != null ? D : 6;
9868
+ M = (D = (L = u.value) == null ? void 0 : L.crt_width) != null ? D : 6;
9857
9869
  break;
9858
9870
  case s.isUpdating.value:
9859
- A = ($ = (x = u.value) == null ? void 0 : x.upt_width) != null ? $ : 6;
9871
+ M = ($ = (x = u.value) == null ? void 0 : x.upt_width) != null ? $ : 6;
9860
9872
  break;
9861
9873
  case s.isCopying.value:
9862
- A = (O = (V = u.value) == null ? void 0 : V.cpy_width) != null ? O : 6;
9874
+ M = (O = (V = u.value) == null ? void 0 : V.cpy_width) != null ? O : 6;
9863
9875
  break;
9864
9876
  case s.isDeleting.value:
9865
- A = (F = (U = u.value) == null ? void 0 : U.del_width) != null ? F : 6;
9877
+ M = (F = (U = u.value) == null ? void 0 : U.del_width) != null ? F : 6;
9866
9878
  break;
9867
9879
  }
9868
9880
  }
9869
- return Math.min(24, Math.max(1, A));
9881
+ return Math.min(24, Math.max(1, M));
9870
9882
  }), _ = computed(() => {
9871
9883
  var L, D;
9872
- const A = get(k.value, "$el.parentElement");
9873
- if (A && !((L = A.classList) != null && L.contains("ant-row")))
9884
+ const M = get(k.value, "$el.parentElement");
9885
+ if (M && !((L = M.classList) != null && L.contains("ant-row")))
9874
9886
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
9875
9887
  let I = {};
9876
9888
  const w = Math.abs(Number.parseInt((D = get(k.value, "$el.parentElement.style.marginLeft")) != null ? D : "0px"));
@@ -9878,14 +9890,14 @@ const KgFormItemRadioGroup = defineComponent({
9878
9890
  paddingLeft: `${w}px !important`,
9879
9891
  paddingRight: `${w}px !important`
9880
9892
  }), I;
9881
- }), y = computed(() => {
9893
+ }), b = computed(() => {
9882
9894
  var I, w, L, D;
9883
- let A = "kg-form-item";
9884
- switch (o.value && (A += " kg-form-item-lookup"), e.kgContext) {
9895
+ let M = "kg-form-item";
9896
+ switch (o.value && (M += " kg-form-item-lookup"), e.kgContext) {
9885
9897
  case KG_FORM_CONTEXT.SEARCH:
9886
9898
  switch (!0) {
9887
9899
  case ((I = c.value) == null ? void 0 : I.vis_flg) === 0:
9888
- A += " kg-form-item--invisible";
9900
+ M += " kg-form-item--invisible";
9889
9901
  break;
9890
9902
  }
9891
9903
  break;
@@ -9894,15 +9906,15 @@ const KgFormItemRadioGroup = defineComponent({
9894
9906
  case (s.isCreating.value && ((w = u.value) == null ? void 0 : w.crt_vis_flg) === 0):
9895
9907
  case (s.isUpdating.value && ((L = u.value) == null ? void 0 : L.upt_vis_flg) === 0):
9896
9908
  case (s.isCopying.value && ((D = u.value) == null ? void 0 : D.cpy_vis_flg) === 0):
9897
- A += " kg-form-item--invisible";
9909
+ M += " kg-form-item--invisible";
9898
9910
  break;
9899
9911
  }
9900
9912
  break;
9901
9913
  }
9902
- return A;
9903
- }), b = computed(() => {
9914
+ return M;
9915
+ }), y = computed(() => {
9904
9916
  var I;
9905
- const A = {
9917
+ const M = {
9906
9918
  ...e,
9907
9919
  value: (I = a.value) == null ? void 0 : I[e.kgVarName],
9908
9920
  "onUpdate:value": (w) => {
@@ -9920,67 +9932,67 @@ const KgFormItemRadioGroup = defineComponent({
9920
9932
  case KG_FORM_ITEM_TYPE.SWITCH:
9921
9933
  break;
9922
9934
  case KG_FORM_ITEM_TYPE.DATE_DATE:
9923
- A.kgShowTime = !1;
9935
+ M.kgShowTime = !1;
9924
9936
  break;
9925
9937
  case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
9926
- A.kgShowTime = !1;
9938
+ M.kgShowTime = !1;
9927
9939
  break;
9928
9940
  case KG_FORM_ITEM_TYPE.DATE_TIME:
9929
- A.kgPicker = "time";
9941
+ M.kgPicker = "time";
9930
9942
  break;
9931
9943
  case KG_FORM_ITEM_TYPE.DATE_TIME_RANGE:
9932
- A.kgPicker = "time";
9944
+ M.kgPicker = "time";
9933
9945
  break;
9934
9946
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
9935
- A.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
9947
+ M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
9936
9948
  break;
9937
9949
  case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
9938
- A.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
9950
+ M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
9939
9951
  break;
9940
9952
  }
9941
- return A;
9953
+ return M;
9942
9954
  }), T = computed(() => encodeURIComponent(`${e.kgContext}~${s.formID}~${e.kgVarName}`)), k = ref(null);
9943
- function M() {
9955
+ function A() {
9944
9956
  if (t.control) {
9945
- const A = {
9957
+ const M = {
9946
9958
  varName: e.kgVarName,
9947
- props: b,
9959
+ props: y,
9948
9960
  model: a,
9949
9961
  varVariableConfig: i,
9950
9962
  varProfileDetail: c,
9951
9963
  varSubmitField: u
9952
9964
  };
9953
- return t.control(A);
9965
+ return t.control(M);
9954
9966
  }
9955
9967
  switch (m.value) {
9956
9968
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
9957
- return createVNode(KgFormItemInputNumber, b.value, null);
9969
+ return createVNode(KgFormItemInputNumber, y.value, null);
9958
9970
  case KG_FORM_ITEM_TYPE.TEXT_AREA:
9959
- return createVNode(KgFormItemTextArea, b.value, null);
9971
+ return createVNode(KgFormItemTextArea, y.value, null);
9960
9972
  case KG_FORM_ITEM_TYPE.SELECT:
9961
- return createVNode(KgFormItemSelect, b.value, null);
9973
+ return createVNode(KgFormItemSelect, y.value, null);
9962
9974
  case KG_FORM_ITEM_TYPE.SWITCH:
9963
- return createVNode(KgFormItemSwitch, b.value, null);
9975
+ return createVNode(KgFormItemSwitch, y.value, null);
9964
9976
  case KG_FORM_ITEM_TYPE.CHECKBOX:
9965
- return createVNode(KgFormItemCheckbox, b.value, null);
9977
+ return createVNode(KgFormItemCheckbox, y.value, null);
9966
9978
  case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
9967
- return createVNode(KgFormItemCheckboxGroup, b.value, null);
9979
+ return createVNode(KgFormItemCheckboxGroup, y.value, null);
9968
9980
  case KG_FORM_ITEM_TYPE.RADIO_GROUP:
9969
- return createVNode(KgFormItemRadioGroup, b.value, null);
9981
+ return createVNode(KgFormItemRadioGroup, y.value, null);
9970
9982
  case KG_FORM_ITEM_TYPE.DATE_DATE:
9971
- return createVNode(KgFormItemDate, b.value, null);
9983
+ return createVNode(KgFormItemDate, y.value, null);
9972
9984
  case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
9973
- return createVNode(KgFormItemDateRange, b.value, null);
9985
+ return createVNode(KgFormItemDateRange, y.value, null);
9974
9986
  case KG_FORM_ITEM_TYPE.DATE_TIME:
9975
- return createVNode(KgFormItemDate, b.value, null);
9987
+ return createVNode(KgFormItemDate, y.value, null);
9976
9988
  case KG_FORM_ITEM_TYPE.DATE_TIME_RANGE:
9977
- return createVNode(KgFormItemDateRange, b.value, null);
9989
+ return createVNode(KgFormItemDateRange, y.value, null);
9978
9990
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
9979
- return createVNode(KgFormItemDate, b.value, null);
9991
+ return createVNode(KgFormItemDate, y.value, null);
9980
9992
  case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
9981
- return createVNode(KgFormItemDateRange, b.value, null);
9993
+ return createVNode(KgFormItemDateRange, y.value, null);
9982
9994
  default:
9983
- return createVNode(KgFormItemInput, b.value, null);
9995
+ return createVNode(KgFormItemInput, y.value, null);
9984
9996
  }
9985
9997
  }
9986
9998
  function E() {
@@ -9989,8 +10001,8 @@ const KgFormItemRadioGroup = defineComponent({
9989
10001
  }, [s.t(e.kgVarName).value]) : null;
9990
10002
  }
9991
10003
  function P() {
9992
- var A;
9993
- return !o.value || !((A = o.value) != null && A.lkp_id) ? null : createVNode(Form.ItemRest, null, {
10004
+ var M;
10005
+ return !o.value || !((M = o.value) != null && M.lkp_id) ? null : createVNode(Form.ItemRest, null, {
9994
10006
  default: () => [createVNode(KgFormItemAddonLookup, {
9995
10007
  kgDisabled: v.value,
9996
10008
  kgLookupID: o.value.lkp_id
@@ -9998,15 +10010,15 @@ const KgFormItemRadioGroup = defineComponent({
9998
10010
  });
9999
10011
  }
10000
10012
  return () => {
10001
- var A, I;
10013
+ var M, I;
10002
10014
  return s.isRetrieving.value ? null : createVNode(Col, {
10003
10015
  ref: k,
10004
10016
  span: g.value,
10005
- class: y.value,
10017
+ class: b.value,
10006
10018
  style: _.value,
10007
10019
  "kg-frm_id": s.formID,
10008
10020
  "kg-var_nam": e.kgVarName,
10009
- "kg-lkp_id": (A = o.value) == null ? void 0 : A.lkp_id,
10021
+ "kg-lkp_id": (M = o.value) == null ? void 0 : M.lkp_id,
10010
10022
  "kg-ret_fld": (I = o.value) == null ? void 0 : I.ret_fld
10011
10023
  }, {
10012
10024
  default: () => [createVNode(Form.Item, {
@@ -10015,7 +10027,7 @@ const KgFormItemRadioGroup = defineComponent({
10015
10027
  validateFirst: !0,
10016
10028
  htmlFor: T.value
10017
10029
  }, {
10018
- default: () => createVNode(Fragment, null, [M(), P()]),
10030
+ default: () => createVNode(Fragment, null, [A(), P()]),
10019
10031
  label: () => E()
10020
10032
  })]
10021
10033
  });
@@ -10338,9 +10350,9 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
10338
10350
  }).bind(null, pinia())), store$5);
10339
10351
  function useKgSubmit(e) {
10340
10352
  const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
10341
- var _, y, b, T, k;
10353
+ var _, b, y, T, k;
10342
10354
  let i = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
10343
- 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, C = (T = a.value) == null ? void 0 : T.cpy_display_type, g = (k = a.value) == null ? void 0 : k.del_display_type;
10355
+ const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, m = (b = a.value) == null ? void 0 : b.crt_display_type, v = (y = a.value) == null ? void 0 : y.upt_display_type, C = (T = a.value) == null ? void 0 : T.cpy_display_type, g = (k = a.value) == null ? void 0 : k.del_display_type;
10344
10356
  switch (!0) {
10345
10357
  case (t.isCreating.value && (m === c || !m && d === c)):
10346
10358
  i = c;
@@ -10412,8 +10424,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10412
10424
  }) => {
10413
10425
  const u = s.store.getVarSubmitConfig(s.formID);
10414
10426
  return o = watch(c, (d) => {
10415
- var m, v, C, g, _, y, b, T, k, M, E, P;
10416
- d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (C = u == null ? void 0 : u.fullscreen_flg) != null ? C : 1, d.dft_fullscreen_flg = (g = u == null ? void 0 : u.dft_fullscreen_flg) != null ? g : 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 = (T = u == null ? void 0 : u.dft_width) != null ? T : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : 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 = (P = u == null ? void 0 : u.display_type) != null ? P : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
10427
+ var m, v, C, g, _, b, y, T, k, A, E, P;
10428
+ d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (C = u == null ? void 0 : u.fullscreen_flg) != null ? C : 1, d.dft_fullscreen_flg = (g = u == null ? void 0 : u.dft_fullscreen_flg) != null ? g : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 1, d.max_width = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (y = u == null ? void 0 : u.min_width) != null ? y : DEFAULT_MIN_WIDTH, d.dft_width = (T = u == null ? void 0 : u.dft_width) != null ? T : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (A = u == null ? void 0 : u.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (E = u == null ? void 0 : u.label_col_unit) != null ? E : KG_WIDTH_UNIT.SPAN, d.display_type = (P = u == null ? void 0 : u.display_type) != null ? P : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
10417
10429
  }, {
10418
10430
  immediate: !0
10419
10431
  }), KgUtil.hideLoading(), !1;
@@ -10463,8 +10475,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10463
10475
  r("kgCancel");
10464
10476
  }
10465
10477
  function C() {
10466
- var y;
10467
- return e.kgShowFullscreenButton === !1 || ((y = o.value) == null ? void 0 : y.fullscreen_flg) === 0 ? null : createVNode(Button, {
10478
+ var b;
10479
+ return e.kgShowFullscreenButton === !1 || ((b = o.value) == null ? void 0 : b.fullscreen_flg) === 0 ? null : createVNode(Button, {
10468
10480
  onClick: d,
10469
10481
  class: "kg-submit--btn-fullscreen"
10470
10482
  }, {
@@ -10516,20 +10528,20 @@ function _useFormModel$1() {
10516
10528
  }
10517
10529
  const d = r.selectedRow.value;
10518
10530
  u.forEach((m) => {
10519
- var C, g, _, y, b, T, k, M;
10531
+ var C, g, _, b, y, T, k, A;
10520
10532
  const v = (C = m.var_nam) != null ? C : "";
10521
10533
  switch (c.value[v] = void 0, !0) {
10522
10534
  case t.isCreating.value:
10523
10535
  c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (g = m.crt_dft_val) != null ? g : void 0, "C");
10524
10536
  break;
10525
10537
  case t.isUpdating.value:
10526
- c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (y = (_ = m.upt_dft_val) != null ? _ : d == null ? void 0 : d[v]) != null ? y : void 0, "U");
10538
+ c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (b = (_ = m.upt_dft_val) != null ? _ : d == null ? void 0 : d[v]) != null ? b : void 0, "U");
10527
10539
  break;
10528
10540
  case t.isCopying.value:
10529
- c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (T = (b = m.cpy_dft_val) != null ? b : d == null ? void 0 : d[v]) != null ? T : void 0, "CP");
10541
+ c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (T = (y = m.cpy_dft_val) != null ? y : d == null ? void 0 : d[v]) != null ? T : void 0, "CP");
10530
10542
  break;
10531
10543
  case t.isDeleting.value:
10532
- c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (M = (k = m.del_dft_val) != null ? k : d == null ? void 0 : d[v]) != null ? M : void 0, "D");
10544
+ c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (A = (k = m.del_dft_val) != null ? k : d == null ? void 0 : d[v]) != null ? A : void 0, "D");
10533
10545
  break;
10534
10546
  }
10535
10547
  }), a.store.setModel(t.formID, c.value);
@@ -10678,7 +10690,7 @@ const getProps$p = () => ({
10678
10690
  inject(DI_KG_VAR__KG_PROPS, null);
10679
10691
  const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
10680
10692
  l.onSubmitSave(async () => (await oe(), !1)), l.onSubmitCancel(async () => (await se(), !1)), _useFormModel$1();
10681
- const u = computed(() => s.isDeleting.value && k.value.length === 0 && M.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), m = computed(() => s.store.getVarSubmitConfig(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), k = computed(() => {
10693
+ const u = computed(() => s.isDeleting.value && k.value.length === 0 && A.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), m = computed(() => s.store.getVarSubmitConfig(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), k = computed(() => {
10682
10694
  var N, G, Y;
10683
10695
  switch (!0) {
10684
10696
  case s.isCreating.value:
@@ -10686,12 +10698,12 @@ const getProps$p = () => ({
10686
10698
  case s.isUpdating.value:
10687
10699
  return (G = g.value) != null ? G : [];
10688
10700
  case s.isCopying.value:
10689
- return (Y = y.value) != null ? Y : [];
10701
+ return (Y = b.value) != null ? Y : [];
10690
10702
  case s.isDeleting.value:
10691
10703
  return [];
10692
10704
  }
10693
10705
  return [];
10694
- }), M = computed(() => {
10706
+ }), A = computed(() => {
10695
10707
  var N, G, Y, J;
10696
10708
  switch (!0) {
10697
10709
  case s.isCreating.value:
@@ -10699,12 +10711,12 @@ const getProps$p = () => ({
10699
10711
  case s.isUpdating.value:
10700
10712
  return (G = _.value) != null ? G : [];
10701
10713
  case s.isCopying.value:
10702
- return (Y = b.value) != null ? Y : [];
10714
+ return (Y = y.value) != null ? Y : [];
10703
10715
  case s.isDeleting.value:
10704
10716
  return (J = T.value) != null ? J : [];
10705
10717
  }
10706
10718
  return [];
10707
- }), E = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), P = computed(() => E.value || d.value), A = computed(() => d.value), I = ref({
10719
+ }), E = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), P = computed(() => E.value || d.value), M = computed(() => d.value), I = ref({
10708
10720
  kgWidth: 0
10709
10721
  }), w = computed(() => {
10710
10722
  var N;
@@ -11089,9 +11101,9 @@ const getProps$p = () => ({
11089
11101
  gutter: 12
11090
11102
  }, _isSlot$8(N = k.value.map(de)) ? N : {
11091
11103
  default: () => [N]
11092
- }), k.value.length > 0 && M.value.length > 0 && createVNode(Divider, null, null), M.value.length > 0 && createVNode(Row, {
11104
+ }), k.value.length > 0 && A.value.length > 0 && createVNode(Divider, null, null), A.value.length > 0 && createVNode(Row, {
11093
11105
  gutter: 12
11094
- }, _isSlot$8(G = M.value.map(de)) ? G : {
11106
+ }, _isSlot$8(G = A.value.map(de)) ? G : {
11095
11107
  default: () => [G]
11096
11108
  }), u.value && createVNode("div", {
11097
11109
  style: "text-align: center; padding: 6px 0 12px;"
@@ -11111,7 +11123,7 @@ const getProps$p = () => ({
11111
11123
  default: () => [N]
11112
11124
  }), createVNode(Button, {
11113
11125
  type: "primary",
11114
- disabled: A.value,
11126
+ disabled: M.value,
11115
11127
  loading: E.value,
11116
11128
  danger: !!s.isDeleting.value,
11117
11129
  onClick: oe
@@ -11419,31 +11431,31 @@ const getProps$n = () => ({
11419
11431
  var k;
11420
11432
  try {
11421
11433
  await ((k = C.value) == null ? void 0 : k.validate());
11422
- } catch (M) {
11423
- KgUtil.throwIfNotFormError(M);
11434
+ } catch (A) {
11435
+ KgUtil.throwIfNotFormError(A);
11424
11436
  }
11425
11437
  return !1;
11426
11438
  });
11427
11439
  const i = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
11428
- var k, M, E, P, A, I;
11429
- return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((M = o.selectedRow.value) == null ? void 0 : M[o.id.value]) && (!!n.isCreating.value && ((E = c.value) == null ? void 0 : E.crt_flg) === 1 || !!n.isUpdating.value && ((P = c.value) == null ? void 0 : P.upt_flg) === 1 || !!n.isCopying.value && ((A = c.value) == null ? void 0 : A.cpy_flg) === 1 || !!n.isDeleting.value && ((I = c.value) == null ? void 0 : I.del_flg) === 1);
11440
+ var k, A, E, P, M, I;
11441
+ return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((E = c.value) == null ? void 0 : E.crt_flg) === 1 || !!n.isUpdating.value && ((P = c.value) == null ? void 0 : P.upt_flg) === 1 || !!n.isCopying.value && ((M = c.value) == null ? void 0 : M.cpy_flg) === 1 || !!n.isDeleting.value && ((I = c.value) == null ? void 0 : I.del_flg) === 1);
11430
11442
  }), d = computed(() => {
11431
- var k, M;
11432
- return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((M = o.selectedRow.value) == null ? void 0 : M[o.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);
11443
+ var k, A;
11444
+ return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.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);
11433
11445
  }), m = computed(() => {
11434
- var M, E;
11446
+ var A, E;
11435
11447
  let k = "kg-table-td";
11436
- return ((M = i.value) == null ? void 0 : M.align) === "center" ? k += " kg-table-td--center" : ((E = i.value) == null ? void 0 : E.align) === "right" && (k += " kg-table-td--right"), u.value && (k += " kg-table-td--submitting"), k;
11448
+ return ((A = i.value) == null ? void 0 : A.align) === "center" ? k += " kg-table-td--center" : ((E = i.value) == null ? void 0 : E.align) === "right" && (k += " kg-table-td--right"), u.value && (k += " kg-table-td--submitting"), k;
11437
11449
  }), v = computed(() => {
11438
- var M, E, P, A;
11450
+ var A, E, P, M;
11439
11451
  if (e.kgValue === KG_TABLE_TEMP_ID)
11440
11452
  return "";
11441
11453
  let k = e.kgValue;
11442
- switch ((M = i.value) == null ? void 0 : M.display_type) {
11454
+ switch ((A = i.value) == null ? void 0 : A.display_type) {
11443
11455
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
11444
11456
  {
11445
11457
  const I = KgUtil.tryParseJSON((E = i.value) == null ? void 0 : E.display_type_properties);
11446
- k = (A = (P = e.kgRow) == null ? void 0 : P[I.dscFieldName || `${e.kgVarName}_dsc`]) != null ? A : e.kgValue;
11458
+ k = (M = (P = e.kgRow) == null ? void 0 : P[I.dscFieldName || `${e.kgVarName}_dsc`]) != null ? M : e.kgValue;
11447
11459
  }
11448
11460
  break;
11449
11461
  }
@@ -11451,18 +11463,18 @@ const getProps$n = () => ({
11451
11463
  `)), k;
11452
11464
  }), C = ref(null);
11453
11465
  function g(k) {
11454
- var M, E, P;
11466
+ var A, E, P;
11455
11467
  if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
11456
- switch ((M = i.value) == null ? void 0 : M.display_type) {
11468
+ switch ((A = i.value) == null ? void 0 : A.display_type) {
11457
11469
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
11458
11470
  k.stopPropagation(), k.preventDefault(), r("kgUpdateLinkClick");
11459
11471
  break;
11460
11472
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
11461
11473
  {
11462
11474
  k.stopPropagation(), k.preventDefault();
11463
- const A = KgUtil.tryParseJSON((E = i.value) == null ? void 0 : E.display_type_properties);
11475
+ const M = KgUtil.tryParseJSON((E = i.value) == null ? void 0 : E.display_type_properties);
11464
11476
  (P = a.router.value) == null || P.push({
11465
- path: A.path,
11477
+ path: M.path,
11466
11478
  query: e.kgRow
11467
11479
  });
11468
11480
  }
@@ -11471,7 +11483,7 @@ const getProps$n = () => ({
11471
11483
  }
11472
11484
  function _() {
11473
11485
  }
11474
- function y() {
11486
+ function b() {
11475
11487
  return createVNode(KgForm, {
11476
11488
  ref: C,
11477
11489
  model: l.model.value,
@@ -11492,13 +11504,13 @@ const getProps$n = () => ({
11492
11504
  })]
11493
11505
  });
11494
11506
  }
11495
- function b() {
11496
- var k, M, E, P, A, I, w, L, D, x;
11507
+ function y() {
11508
+ var k, A, E, P, M, I, w, L, D, x;
11497
11509
  if (u.value)
11498
- return y();
11510
+ return b();
11499
11511
  switch ((k = i.value) == null ? void 0 : k.display_type) {
11500
11512
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
11501
- const $ = KgUtil.tryParseJSON((M = i.value) == null ? void 0 : M.display_type_properties);
11513
+ const $ = KgUtil.tryParseJSON((A = i.value) == null ? void 0 : A.display_type_properties);
11502
11514
  return createVNode(KgYesOrNo, {
11503
11515
  kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((E = $.yValue) != null ? E : 1),
11504
11516
  kgNilAsFalse: $.nilAsFalse
@@ -11509,7 +11521,7 @@ const getProps$n = () => ({
11509
11521
  if (V) {
11510
11522
  const O = n.t(V.varName).value;
11511
11523
  return O ? createVNode(Tag, {
11512
- color: (A = V.color) != null ? A : "default"
11524
+ color: (M = V.color) != null ? M : "default"
11513
11525
  }, _isSlot$7(O) ? O : {
11514
11526
  default: () => [O]
11515
11527
  }) : T();
@@ -11547,10 +11559,10 @@ const getProps$n = () => ({
11547
11559
  }
11548
11560
  }
11549
11561
  function T(k = !1) {
11550
- let M = "";
11551
- return k && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (M += "kg-table-td-update-link"), createVNode("pre", {
11562
+ let A = "";
11563
+ return k && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (A += "kg-table-td-update-link"), createVNode("pre", {
11552
11564
  innerHTML: v.value,
11553
- class: M,
11565
+ class: A,
11554
11566
  onClick: g
11555
11567
  }, null);
11556
11568
  }
@@ -11558,7 +11570,7 @@ const getProps$n = () => ({
11558
11570
  class: m.value,
11559
11571
  title: v.value,
11560
11572
  "kg-value": e.kgValue
11561
- }, [b()]);
11573
+ }, [y()]);
11562
11574
  }
11563
11575
  }), KgTable_Info = "";
11564
11576
  function _isSlot$6(e) {
@@ -11647,8 +11659,8 @@ const getProps$m = () => ({
11647
11659
  }) => {
11648
11660
  const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
11649
11661
  return l = watch(i, (u) => {
11650
- var d, m, v, C, g, _, y, b, T, k, M;
11651
- 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 = (C = c == null ? void 0 : c.show_check_column_flg) != null ? C : 0, u.show_bottom_left_flg = (g = c == null ? void 0 : c.show_bottom_left_flg) != null ? g : 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 = (T = c == null ? void 0 : c.pg_size_opt) != null ? T : 10, u.cmd_prm = (k = c == null ? void 0 : c.cmd_prm) != null ? k : void 0, u.button_display_type = (M = c == null ? void 0 : c.button_display_type) != null ? M : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
11662
+ var d, m, v, C, g, _, b, y, T, k, A;
11663
+ 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 = (C = c == null ? void 0 : c.show_check_column_flg) != null ? C : 0, u.show_bottom_left_flg = (g = c == null ? void 0 : c.show_bottom_left_flg) != null ? g : 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 = (b = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? b : 0, u.pg_size_opts = (y = c == null ? void 0 : c.pg_size_opts) != null ? y : "[10, 20, 50, 100]", u.pg_size_opt = (T = c == null ? void 0 : c.pg_size_opt) != null ? T : 10, u.cmd_prm = (k = c == null ? void 0 : c.cmd_prm) != null ? k : void 0, u.button_display_type = (A = c == null ? void 0 : c.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
11652
11664
  }, {
11653
11665
  immediate: !0
11654
11666
  }), KgUtil.hideLoading(), !1;
@@ -11919,8 +11931,8 @@ const getProps$h = () => ({
11919
11931
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
11920
11932
  }, [(T = n.currentVarGridDetails.value) == null ? void 0 : T.map((k) => createVNode("li", {
11921
11933
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
11922
- onClick: (M) => {
11923
- M.preventDefault(), M.stopPropagation(), v(k);
11934
+ onClick: (A) => {
11935
+ A.preventDefault(), A.stopPropagation(), v(k);
11924
11936
  },
11925
11937
  style: {
11926
11938
  display: l(k, o.value) ? "flex" : "none"
@@ -11932,24 +11944,24 @@ const getProps$h = () => ({
11932
11944
  }, {
11933
11945
  default: () => [createVNode("pre", null, [n.t(k.var_nam).value])]
11934
11946
  }), createVNode(HolderOutlined$1, {
11935
- onClick: (M) => {
11936
- M.preventDefault(), M.stopPropagation();
11947
+ onClick: (A) => {
11948
+ A.preventDefault(), A.stopPropagation();
11937
11949
  }
11938
11950
  }, null)]))])]);
11939
11951
  },
11940
11952
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
11941
11953
  });
11942
11954
  }
11943
- function y() {
11955
+ function b() {
11944
11956
  return createVNode(Menu.SubMenu, {
11945
11957
  key: "2",
11946
11958
  title: a.t("kg.KgTable.varGridMasters"),
11947
11959
  popupClassName: "kg-table-setting-submenu-popup-masters"
11948
11960
  }, {
11949
11961
  default: () => {
11950
- var M;
11962
+ var A;
11951
11963
  let T, k;
11952
- return createVNode(Fragment, null, [(M = n.varGridMasters.value) == null ? void 0 : M.map((E) => {
11964
+ return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((E) => {
11953
11965
  var P;
11954
11966
  return createVNode(Menu.Item, {
11955
11967
  key: E.id,
@@ -11974,7 +11986,7 @@ const getProps$h = () => ({
11974
11986
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
11975
11987
  });
11976
11988
  }
11977
- function b() {
11989
+ function y() {
11978
11990
  let T;
11979
11991
  return createVNode(Menu.Item, {
11980
11992
  key: "config-var-grid-master",
@@ -11998,7 +12010,7 @@ const getProps$h = () => ({
11998
12010
  "onUpdate:openKeys": (T) => i.value = T,
11999
12011
  selectable: !1
12000
12012
  }, {
12001
- default: () => [_(), y(), b()]
12013
+ default: () => [_(), b(), y()]
12002
12014
  })
12003
12015
  }), u.visible && createVNode(KgTableSettingConfigModal, {
12004
12016
  visible: u.visible,
@@ -12024,10 +12036,10 @@ function _useColumns(e) {
12024
12036
  }) => g + 1
12025
12037
  }, ...(C = u == null ? void 0 : u.map((g) => {
12026
12038
  const _ = g.var_nam;
12027
- function y() {
12039
+ function b() {
12028
12040
  return g.width === "auto" ? "auto" : Number(g.width) || KG_TABLE_TD_DEFAULT_WIDTH;
12029
12041
  }
12030
- function b() {
12042
+ function y() {
12031
12043
  return r.t(_).value;
12032
12044
  }
12033
12045
  function T() {
@@ -12039,23 +12051,23 @@ function _useColumns(e) {
12039
12051
  if (g.fix_right_flg === 1)
12040
12052
  return "right";
12041
12053
  }
12042
- function M() {
12043
- var A, I, w, L;
12044
- return !((I = (A = t == null ? void 0 : t.value) == null ? void 0 : A.KgTable) != null && I.kgDisabled || isNil((L = (w = t == null ? void 0 : t.value) == null ? void 0 : w.KgTable) == null ? void 0 : L.kgDisabled) && e.kgDisabled || g.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
12054
+ function A() {
12055
+ var M, I, w, L;
12056
+ return !((I = (M = t == null ? void 0 : t.value) == null ? void 0 : M.KgTable) != null && I.kgDisabled || isNil((L = (w = t == null ? void 0 : t.value) == null ? void 0 : w.KgTable) == null ? void 0 : L.kgDisabled) && e.kgDisabled || g.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
12045
12057
  }
12046
12058
  function E() {
12047
12059
  return ["left", "center", "right"].includes(g.align || "") ? g.align : "left";
12048
12060
  }
12049
- const P = y();
12061
+ const P = b();
12050
12062
  return {
12051
12063
  dataIndex: _,
12052
- title: b(),
12064
+ title: y(),
12053
12065
  width: P,
12054
12066
  resizable: typeof P == "number",
12055
12067
  minWidth: KG_TABLE_TD_MIN_WIDTH,
12056
12068
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
12057
12069
  fixed: k(),
12058
- sorter: M(),
12070
+ sorter: A(),
12059
12071
  align: E(),
12060
12072
  defaultSortOrder: T(),
12061
12073
  customHeaderCell: () => ({
@@ -12063,13 +12075,13 @@ function _useColumns(e) {
12063
12075
  "kg-var_nam": _,
12064
12076
  draggable: !0
12065
12077
  }),
12066
- customCell: (A) => {
12078
+ customCell: (M) => {
12067
12079
  var w;
12068
12080
  const I = r.store.getVarSubmitField(r.formID, _);
12069
12081
  return {
12070
12082
  "kg-frm_id": r.formID,
12071
12083
  "kg-var_nam": _,
12072
- class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && A[n.id.value] === ((w = n.selectedRow.value) == null ? void 0 : w[n.id.value]) && (!!r.isCreating.value && (I == null ? void 0 : I.crt_flg) === 1 || !!r.isUpdating.value && (I == null ? void 0 : I.upt_flg) === 1 || !!r.isCopying.value && (I == null ? void 0 : I.cpy_flg) === 1 || !!r.isDeleting.value && (I == null ? void 0 : I.del_flg) === 1) ? "submitting" : ""
12084
+ 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 && (I == null ? void 0 : I.crt_flg) === 1 || !!r.isUpdating.value && (I == null ? void 0 : I.upt_flg) === 1 || !!r.isCopying.value && (I == null ? void 0 : I.cpy_flg) === 1 || !!r.isDeleting.value && (I == null ? void 0 : I.del_flg) === 1) ? "submitting" : ""
12073
12085
  };
12074
12086
  }
12075
12087
  };
@@ -12211,9 +12223,9 @@ const KgTable$1 = "", getProps$g = () => ({
12211
12223
  scrollX: g
12212
12224
  } = _useColumns(e), {
12213
12225
  isLoading: _
12214
- } = _useLoading(), y = ref(null);
12215
- _useResizeObserver(y), _useDragColumn(y, C);
12216
- const b = computed(() => {
12226
+ } = _useLoading(), b = ref(null);
12227
+ _useResizeObserver(b), _useDragColumn(b, C);
12228
+ const y = computed(() => {
12217
12229
  var R, H;
12218
12230
  return (H = (R = o.varButtonSearch.value) == null ? void 0 : R.cmd) != null ? H : null;
12219
12231
  }), T = computed(() => {
@@ -12237,14 +12249,14 @@ const KgTable$1 = "", getProps$g = () => ({
12237
12249
  return (W = (X = s == null ? void 0 : s.value) == null ? void 0 : X.KgTable) == null ? void 0 : W.kgDisabled;
12238
12250
  if (!isNil(e.kgDisabled))
12239
12251
  return e.kgDisabled;
12240
- }), M = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), E = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || $.total === 0), P = computed(() => {
12252
+ }), A = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), E = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || $.total === 0), P = computed(() => {
12241
12253
  var R;
12242
12254
  return !!((R = n == null ? void 0 : n.KgTable) != null && R.expandedRowRender);
12243
- }), A = computed(() => {
12255
+ }), M = computed(() => {
12244
12256
  var R;
12245
12257
  return ((R = o.varGridConfig.value) == null ? void 0 : R.show_check_column_flg) === 1;
12246
12258
  }), I = computed(() => {
12247
- if (!!A.value)
12259
+ if (!!M.value)
12248
12260
  return {
12249
12261
  fixed: "left",
12250
12262
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
@@ -12279,7 +12291,7 @@ const KgTable$1 = "", getProps$g = () => ({
12279
12291
  });
12280
12292
  watch(u.pageSizeOptions, (R) => {
12281
12293
  R.length > 0 && !R.includes($.pageSize) && ($.pageSize = u.pageSizeOption.value);
12282
- }), watch([b, u.isReadAutomatically, i.isReady], ([R, H, X]) => {
12294
+ }), watch([y, u.isReadAutomatically, i.isReady], ([R, H, X]) => {
12283
12295
  R && H && X && !u.store.getIsRetrieved(o.formID) && B(!0);
12284
12296
  }, {
12285
12297
  immediate: !0
@@ -12334,7 +12346,7 @@ const KgTable$1 = "", getProps$g = () => ({
12334
12346
  });
12335
12347
  async function X() {
12336
12348
  var W, N, G;
12337
- if (KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !b.value) {
12349
+ if (KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !y.value) {
12338
12350
  KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
12339
12351
  VarButton: o.varButtonSearch.value
12340
12352
  });
@@ -12348,7 +12360,7 @@ const KgTable$1 = "", getProps$g = () => ({
12348
12360
  response: J
12349
12361
  }) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : J.value = await httpClient().request({
12350
12362
  method: "GET",
12351
- url: b.value,
12363
+ url: y.value,
12352
12364
  params: Y
12353
12365
  }, {
12354
12366
  successMessageMode: "none"
@@ -12465,12 +12477,12 @@ const KgTable$1 = "", getProps$g = () => ({
12465
12477
  default: () => [createVNode(TableSummary.Row, null, {
12466
12478
  default: () => [P.value && createVNode(TableSummary.Cell, {
12467
12479
  index: 0
12468
- }, null), A.value && createVNode(TableSummary.Cell, {
12480
+ }, null), M.value && createVNode(TableSummary.Cell, {
12469
12481
  index: P.value ? 1 : 0
12470
12482
  }, null), C.value.map((H, X) => {
12471
12483
  const W = o.store.getVarGridDetail(o.formID, H.dataIndex);
12472
12484
  let N = X;
12473
- return P.value && A.value ? N += 2 : (P.value || A.value) && (N += 1), createVNode(TableSummary.Cell, {
12485
+ return P.value && M.value ? N += 2 : (P.value || M.value) && (N += 1), createVNode(TableSummary.Cell, {
12474
12486
  index: N
12475
12487
  }, {
12476
12488
  default: () => {
@@ -12532,7 +12544,7 @@ const KgTable$1 = "", getProps$g = () => ({
12532
12544
  return createVNode("div", {
12533
12545
  class: w.value,
12534
12546
  "kg-frm_id": o.formID,
12535
- ref: y
12547
+ ref: b
12536
12548
  }, [createVNode(Table, {
12537
12549
  class: "kg-flex-table",
12538
12550
  size: "small",
@@ -12571,7 +12583,7 @@ const KgTable$1 = "", getProps$g = () => ({
12571
12583
  kgShowClearTable: $.total > 0,
12572
12584
  kgShowLocate: x.value.length === 1,
12573
12585
  kgTotal: x.value.length,
12574
- kgDisabled: M.value
12586
+ kgDisabled: A.value
12575
12587
  }, null)]), createVNode("div", {
12576
12588
  class: "right"
12577
12589
  }, [u.isShowBottomRight.value && createVNode(Pagination, {
@@ -12618,8 +12630,8 @@ const KgTable$1 = "", getProps$g = () => ({
12618
12630
  attrs: t
12619
12631
  }) {
12620
12632
  const r = useKg(), a = useKgVar(), n = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), l = computed(() => {
12621
- var u, d, m, v, C, g, _, y;
12622
- return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((v = s.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((g = (C = n.selectedRows.value) == null ? void 0 : C.length) != null ? g : 0) > 1 || ((_ = s.value) == null ? void 0 : _.permission_type) === 2 && !r.p((y = s.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12633
+ var u, d, m, v, C, g, _, b;
12634
+ return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((v = s.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((g = (C = n.selectedRows.value) == null ? void 0 : C.length) != null ? g : 0) > 1 || ((_ = s.value) == null ? void 0 : _.permission_type) === 2 && !r.p((b = s.value) == null ? void 0 : b.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12623
12635
  });
12624
12636
  async function o() {
12625
12637
  e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
@@ -12812,8 +12824,8 @@ const KgButtonCreate = defineComponent({
12812
12824
  attrs: a
12813
12825
  }) {
12814
12826
  const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
12815
- var T, k, M, E, P, A, I, w;
12816
- return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((M = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? M : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((A = (P = o.selectedRows.value) == null ? void 0 : P.length) != null ? A : 0) > 1 || ((I = c.value) == null ? void 0 : I.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12827
+ var T, k, A, E, P, M, I, w;
12828
+ return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((A = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((M = (P = o.selectedRows.value) == null ? void 0 : P.length) != null ? M : 0) > 1 || ((I = c.value) == null ? void 0 : I.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12817
12829
  }), d = computed(() => !!s.isCreatingRequesting.value);
12818
12830
  async function m() {
12819
12831
  e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
@@ -12834,8 +12846,8 @@ const KgButtonCreate = defineComponent({
12834
12846
  function _() {
12835
12847
  return e.kgText ? e.kgText : n.t("kg.create");
12836
12848
  }
12837
- function y() {
12838
- var T, k, M, E;
12849
+ function b() {
12850
+ var T, k, A, E;
12839
12851
  return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isCreating.value ? null : createVNode(Button, {
12840
12852
  type: "primary",
12841
12853
  disabled: u.value,
@@ -12843,13 +12855,13 @@ const KgButtonCreate = defineComponent({
12843
12855
  class: a.class,
12844
12856
  "kg-id": (T = c.value) == null ? void 0 : T.id,
12845
12857
  "kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
12846
- "kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
12858
+ "kg-var_nam": (A = c.value) == null ? void 0 : A.var_nam,
12847
12859
  "kg-cmd": (E = c.value) == null ? void 0 : E.cmd
12848
12860
  }, {
12849
12861
  default: () => [g(), _()]
12850
12862
  });
12851
12863
  }
12852
- function b() {
12864
+ function y() {
12853
12865
  return i.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
12854
12866
  type: "primary",
12855
12867
  onClick: v,
@@ -12865,7 +12877,7 @@ const KgButtonCreate = defineComponent({
12865
12877
  default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
12866
12878
  })]);
12867
12879
  }
12868
- return () => createVNode(Fragment, null, [y(), b()]);
12880
+ return () => createVNode(Fragment, null, [b(), y()]);
12869
12881
  }
12870
12882
  }), KgButtonDelete = defineComponent({
12871
12883
  name: "KgButtonDelete",
@@ -12916,7 +12928,7 @@ const KgButtonCreate = defineComponent({
12916
12928
  var C, g;
12917
12929
  return (g = (C = s.value) == null ? void 0 : C.cmd_method) != null ? g : "GET";
12918
12930
  }), i = computed(() => {
12919
- var g, _, y, b, T, k;
12931
+ var g, _, b, y, T, k;
12920
12932
  let C = {
12921
12933
  pageNo: 1,
12922
12934
  pageSize: 9999999,
@@ -12924,14 +12936,14 @@ const KgButtonCreate = defineComponent({
12924
12936
  };
12925
12937
  return s.value && (C = {
12926
12938
  ...C,
12927
- ...KgVarUtil.parseCommandParameter((y = (_ = s.value) == null ? void 0 : _.cmd_prm) != null ? y : "")
12928
- }), (b = r.varGridConfig.value) != null && b.cmd_prm && (C = {
12939
+ ...KgVarUtil.parseCommandParameter((b = (_ = s.value) == null ? void 0 : _.cmd_prm) != null ? b : "")
12940
+ }), (y = r.varGridConfig.value) != null && y.cmd_prm && (C = {
12929
12941
  ...C,
12930
12942
  ...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
12931
12943
  }), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 && C.column && (C.column = snakeCase$1(C.column)), C;
12932
12944
  }), c = computed(() => {
12933
- var C, g, _, y, b, T, k, M;
12934
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = s.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((y = s.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((T = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((M = s.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12945
+ var C, g, _, b, y, T, k, A;
12946
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = s.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((T = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12935
12947
  }), u = ref(!1);
12936
12948
  async function d() {
12937
12949
  var C, g;
@@ -12952,8 +12964,8 @@ const KgButtonCreate = defineComponent({
12952
12964
  }, {
12953
12965
  joinParamsToUrl: !0,
12954
12966
  isTransformResponse: !1
12955
- }), y = (C = s.value) == null ? void 0 : C.export_excel_filename;
12956
- KgUtil.downloadFile(_, `${y ? r.t(y).value : t.t("kg.export")}.${(g = s.value) == null ? void 0 : g.export_excel_suffix}`);
12967
+ }), b = (C = s.value) == null ? void 0 : C.export_excel_filename;
12968
+ KgUtil.downloadFile(_, `${b ? r.t(b).value : t.t("kg.export")}.${(g = s.value) == null ? void 0 : g.export_excel_suffix}`);
12957
12969
  } catch (_) {
12958
12970
  throw _;
12959
12971
  } finally {
@@ -12972,7 +12984,7 @@ const KgButtonCreate = defineComponent({
12972
12984
  return e.kgText ? e.kgText : t.t("kg.export");
12973
12985
  }
12974
12986
  return () => {
12975
- var C, g, _, y;
12987
+ var C, g, _, b;
12976
12988
  return createVNode(Button, {
12977
12989
  type: "primary",
12978
12990
  disabled: c.value,
@@ -12982,7 +12994,7 @@ const KgButtonCreate = defineComponent({
12982
12994
  "kg-id": (C = s.value) == null ? void 0 : C.id,
12983
12995
  "kg-frm_id": (g = s.value) == null ? void 0 : g.frm_id,
12984
12996
  "kg-var_nam": (_ = s.value) == null ? void 0 : _.var_nam,
12985
- "kg-cmd": (y = s.value) == null ? void 0 : y.cmd
12997
+ "kg-cmd": (b = s.value) == null ? void 0 : b.cmd
12986
12998
  }, {
12987
12999
  default: () => [m(), v()]
12988
13000
  });
@@ -12997,23 +13009,23 @@ const KgButtonCreate = defineComponent({
12997
13009
  attrs: r
12998
13010
  }) {
12999
13011
  const a = useKg(), n = useKgVar(), s = useKgSearch(), l = useKgTable(), o = computed(() => n.store.getVarButton(n.formID, e.kgVarName)), i = computed(() => {
13000
- var _, y;
13001
- return o.value ? (y = (_ = o.value) == null ? void 0 : _.cmd) != null ? y : "" : null;
13012
+ var _, b;
13013
+ return o.value ? (b = (_ = o.value) == null ? void 0 : _.cmd) != null ? b : "" : null;
13002
13014
  }), c = computed(() => {
13003
- var _, y;
13004
- return (y = (_ = o.value) == null ? void 0 : _.cmd_method) != null ? y : "POST";
13015
+ var _, b;
13016
+ return (b = (_ = o.value) == null ? void 0 : _.cmd_method) != null ? b : "POST";
13005
13017
  }), u = computed(() => {
13006
- var y, b, T;
13018
+ var b, y, T;
13007
13019
  let _ = {
13008
- ...(y = s.model.value) != null ? y : {}
13020
+ ...(b = s.model.value) != null ? b : {}
13009
13021
  };
13010
13022
  return o.value && (_ = {
13011
13023
  ..._,
13012
- ...KgVarUtil.parseCommandParameter((T = (b = o.value) == null ? void 0 : b.cmd_prm) != null ? T : "")
13024
+ ...KgVarUtil.parseCommandParameter((T = (y = o.value) == null ? void 0 : y.cmd_prm) != null ? T : "")
13013
13025
  }), _;
13014
13026
  }), d = computed(() => {
13015
- var _, y, b, T, k, M, E, P;
13016
- return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((_ = o.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((b = (y = l.selectedRows.value) == null ? void 0 : y.length) != null ? b : 0) === 0 || ((T = o.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((M = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? M : 0) > 1 || ((E = o.value) == null ? void 0 : E.permission_type) === 2 && !a.p((P = o.value) == null ? void 0 : P.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13027
+ var _, b, y, T, k, A, E, P;
13028
+ return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((_ = o.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((y = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? y : 0) === 0 || ((T = o.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((A = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) > 1 || ((E = o.value) == null ? void 0 : E.permission_type) === 2 && !a.p((P = o.value) == null ? void 0 : P.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13017
13029
  }), m = ref(!1);
13018
13030
  async function v(_) {
13019
13031
  if (!i.value)
@@ -13022,22 +13034,22 @@ const KgButtonCreate = defineComponent({
13022
13034
  }), !1;
13023
13035
  m.value = !0;
13024
13036
  try {
13025
- const y = new FormData();
13026
- y.append("file", _);
13027
- const b = await httpClient().axiosInstance.request({
13037
+ const b = new FormData();
13038
+ b.append("file", _);
13039
+ const y = await httpClient().axiosInstance.request({
13028
13040
  method: c.value,
13029
13041
  baseURL: window._CONFIG.domianURL,
13030
13042
  url: i.value,
13031
13043
  params: KgUtil.parseParams(u.value),
13032
- data: y,
13044
+ data: b,
13033
13045
  headers: {
13034
13046
  "Content-Type": "multipart/form-data;charset=UTF-8",
13035
13047
  ignoreCancelToken: !0
13036
13048
  }
13037
13049
  });
13038
13050
  message.success(a.t("kg.importSuccess")), s.search(!0);
13039
- } catch (y) {
13040
- throw y;
13051
+ } catch (b) {
13052
+ throw b;
13041
13053
  } finally {
13042
13054
  m.value = !1;
13043
13055
  }
@@ -13060,7 +13072,7 @@ const KgButtonCreate = defineComponent({
13060
13072
  disabled: m.value
13061
13073
  }, {
13062
13074
  default: () => {
13063
- var _, y, b, T;
13075
+ var _, b, y, T;
13064
13076
  return [createVNode(Button, {
13065
13077
  class: r.class,
13066
13078
  type: "primary",
@@ -13068,8 +13080,8 @@ const KgButtonCreate = defineComponent({
13068
13080
  ghost: !e.kgPrimary && !d.value,
13069
13081
  loading: m.value,
13070
13082
  "kg-id": (_ = o.value) == null ? void 0 : _.id,
13071
- "kg-frm_id": (y = o.value) == null ? void 0 : y.frm_id,
13072
- "kg-var_nam": (b = o.value) == null ? void 0 : b.var_nam,
13083
+ "kg-frm_id": (b = o.value) == null ? void 0 : b.frm_id,
13084
+ "kg-var_nam": (y = o.value) == null ? void 0 : y.var_nam,
13073
13085
  "kg-cmd": (T = o.value) == null ? void 0 : T.cmd
13074
13086
  }, {
13075
13087
  default: () => [C(), g()]
@@ -13088,20 +13100,20 @@ const KgButtonCreate = defineComponent({
13088
13100
  var C, g;
13089
13101
  return (g = (C = s.value) == null ? void 0 : C.cmd_method) != null ? g : "GET";
13090
13102
  }), i = computed(() => {
13091
- var g, _, y, b, T;
13103
+ var g, _, b, y, T;
13092
13104
  let C = {
13093
13105
  ...(g = a.model.value) != null ? g : {}
13094
13106
  };
13095
13107
  return s.value && (C = {
13096
13108
  ...C,
13097
- ...KgVarUtil.parseCommandParameter((y = (_ = s.value) == null ? void 0 : _.cmd_prm) != null ? y : "")
13098
- }), (b = r.varGridConfig.value) != null && b.cmd_prm && (C = {
13109
+ ...KgVarUtil.parseCommandParameter((b = (_ = s.value) == null ? void 0 : _.cmd_prm) != null ? b : "")
13110
+ }), (y = r.varGridConfig.value) != null && y.cmd_prm && (C = {
13099
13111
  ...C,
13100
13112
  ...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
13101
13113
  }), C;
13102
13114
  }), c = computed(() => {
13103
- var C, g, _, y, b, T, k, M;
13104
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = s.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((y = s.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((T = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((M = s.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13115
+ var C, g, _, b, y, T, k, A;
13116
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = s.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((T = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13105
13117
  }), u = ref(!1);
13106
13118
  async function d() {
13107
13119
  var C, g;
@@ -13121,8 +13133,8 @@ const KgButtonCreate = defineComponent({
13121
13133
  }, {
13122
13134
  joinParamsToUrl: !0,
13123
13135
  isTransformResponse: !1
13124
- }), y = (C = s.value) == null ? void 0 : C.export_excel_filename;
13125
- KgUtil.downloadFile(_, `${y ? r.t(y).value : t.t("kg.importTemplate")}.${(g = s.value) == null ? void 0 : g.export_excel_suffix}`);
13136
+ }), b = (C = s.value) == null ? void 0 : C.export_excel_filename;
13137
+ KgUtil.downloadFile(_, `${b ? r.t(b).value : t.t("kg.importTemplate")}.${(g = s.value) == null ? void 0 : g.export_excel_suffix}`);
13126
13138
  } catch (_) {
13127
13139
  throw _;
13128
13140
  } finally {
@@ -13140,7 +13152,7 @@ const KgButtonCreate = defineComponent({
13140
13152
  return e.kgText ? e.kgText : t.t("kg.downloadImportTemplate");
13141
13153
  }
13142
13154
  return () => {
13143
- var C, g, _, y;
13155
+ var C, g, _, b;
13144
13156
  return createVNode(Button, {
13145
13157
  type: "primary",
13146
13158
  disabled: c.value,
@@ -13150,7 +13162,7 @@ const KgButtonCreate = defineComponent({
13150
13162
  "kg-id": (C = s.value) == null ? void 0 : C.id,
13151
13163
  "kg-frm_id": (g = s.value) == null ? void 0 : g.frm_id,
13152
13164
  "kg-var_nam": (_ = s.value) == null ? void 0 : _.var_nam,
13153
- "kg-cmd": (y = s.value) == null ? void 0 : y.cmd
13165
+ "kg-cmd": (b = s.value) == null ? void 0 : b.cmd
13154
13166
  }, {
13155
13167
  default: () => [m(), v()]
13156
13168
  });
@@ -13161,8 +13173,8 @@ const KgButtonCreate = defineComponent({
13161
13173
  props: getProps$f(),
13162
13174
  setup(e) {
13163
13175
  const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgButton(), s = useKgTable(), l = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
13164
- var d, m, v, C, g, _, y, b;
13165
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = l.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((v = (m = s.selectedRows.value) == null ? void 0 : m.length) != null ? v : 0) === 0 || ((C = l.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((_ = (g = s.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) > 1 || ((y = l.value) == null ? void 0 : y.permission_type) === 2 && !t.p((b = l.value) == null ? void 0 : b.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13176
+ var d, m, v, C, g, _, b, y;
13177
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = l.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((v = (m = s.selectedRows.value) == null ? void 0 : m.length) != null ? v : 0) === 0 || ((C = l.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((_ = (g = s.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) > 1 || ((b = l.value) == null ? void 0 : b.permission_type) === 2 && !t.p((y = l.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13166
13178
  });
13167
13179
  async function i() {
13168
13180
  var C, g, _;
@@ -13177,44 +13189,44 @@ const KgButtonCreate = defineComponent({
13177
13189
  }
13178
13190
  let m = null;
13179
13191
  const v = async () => {
13180
- var b, T, k, M, E, P;
13192
+ var y, T, k, A, E, P;
13181
13193
  m == null || m.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
13182
- const y = s.selectedRows.value;
13194
+ const b = s.selectedRows.value;
13183
13195
  try {
13184
- const A = await httpClient().request({
13185
- method: (T = (b = e.kgButton) == null ? void 0 : b.cmd_method) != null ? T : "POST",
13196
+ const M = await httpClient().request({
13197
+ method: (T = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? T : "POST",
13186
13198
  url: d,
13187
- params: KgVarUtil.parseCommandParameter((M = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? M : ""),
13188
- data: y != null ? y : []
13199
+ params: KgVarUtil.parseCommandParameter((A = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? A : ""),
13200
+ data: b != null ? b : []
13189
13201
  });
13190
13202
  if (((E = e.kgButton) == null ? void 0 : E.reload_all_after_done_flg) === 1) {
13191
13203
  if (((P = e.kgButton) == null ? void 0 : P.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
13192
13204
  datas: w
13193
13205
  }) => {
13194
- const L = w.value, D = intersectionWith$1(L, y != null ? y : [], (x, $) => (x == null ? void 0 : x[s.id.value]) === ($ == null ? void 0 : $[s.id.value]));
13206
+ const L = w.value, D = intersectionWith$1(L, b != null ? b : [], (x, $) => (x == null ? void 0 : x[s.id.value]) === ($ == null ? void 0 : $[s.id.value]));
13195
13207
  return D.length > 0 && s.store.setSelectedRows(r.formID, D), !1;
13196
13208
  }, !0), await n.store.emit(r.formID, "otherOk", {
13197
13209
  button: e.kgButton,
13198
- data: A
13210
+ data: M
13199
13211
  }))
13200
13212
  return;
13201
13213
  a.search(!0);
13202
13214
  } else if (await n.store.emit(r.formID, "otherOk", {
13203
13215
  button: e.kgButton,
13204
- data: A
13216
+ data: M
13205
13217
  }))
13206
13218
  return;
13207
- } catch (A) {
13208
- console.error(A);
13219
+ } catch (M) {
13220
+ console.error(M);
13209
13221
  } finally {
13210
13222
  r.store.setIsOtherRequesting(r.formID, !1), m == null || m.hideLoading();
13211
13223
  }
13212
13224
  };
13213
13225
  if (((g = e.kgButton) == null ? void 0 : g.show_modal_flg) === 1) {
13214
- const y = KgUtil.tryParseJSON((_ = e.kgButton) == null ? void 0 : _.modal_props);
13215
- typeof y.content == "string" && (y.content = r.t(y.content).value), m = KgUtil.confirm({
13226
+ const b = KgUtil.tryParseJSON((_ = e.kgButton) == null ? void 0 : _.modal_props);
13227
+ typeof b.content == "string" && (b.content = r.t(b.content).value), m = KgUtil.confirm({
13216
13228
  onOk: () => v(),
13217
- ...y
13229
+ ...b
13218
13230
  });
13219
13231
  } else
13220
13232
  v();
@@ -13305,8 +13317,8 @@ const KgButtonCreate = defineComponent({
13305
13317
  }
13306
13318
  });
13307
13319
  const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
13308
- var T, k, M, E, P, A, I, w;
13309
- return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((M = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? M : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((A = (P = l.selectedRows.value) == null ? void 0 : P.length) != null ? A : 0) > 1 || ((I = c.value) == null ? void 0 : I.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13320
+ var T, k, A, E, P, M, I, w;
13321
+ return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((A = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((M = (P = l.selectedRows.value) == null ? void 0 : P.length) != null ? M : 0) > 1 || ((I = c.value) == null ? void 0 : I.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13310
13322
  }), d = computed(() => !!s.isUpdatingRequesting.value);
13311
13323
  async function m() {
13312
13324
  e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
@@ -13330,8 +13342,8 @@ const KgButtonCreate = defineComponent({
13330
13342
  function _() {
13331
13343
  return e.kgText ? e.kgText : n.t("kg.update");
13332
13344
  }
13333
- function y() {
13334
- var T, k, M, E;
13345
+ function b() {
13346
+ var T, k, A, E;
13335
13347
  return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isUpdating.value ? null : createVNode(Button, {
13336
13348
  type: "primary",
13337
13349
  disabled: u.value,
@@ -13340,13 +13352,13 @@ const KgButtonCreate = defineComponent({
13340
13352
  class: a.class,
13341
13353
  "kg-id": (T = c.value) == null ? void 0 : T.id,
13342
13354
  "kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
13343
- "kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
13355
+ "kg-var_nam": (A = c.value) == null ? void 0 : A.var_nam,
13344
13356
  "kg-cmd": (E = c.value) == null ? void 0 : E.cmd
13345
13357
  }, {
13346
13358
  default: () => [g(), _()]
13347
13359
  });
13348
13360
  }
13349
- function b() {
13361
+ function y() {
13350
13362
  return i.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
13351
13363
  type: "primary",
13352
13364
  onClick: v,
@@ -13362,7 +13374,7 @@ const KgButtonCreate = defineComponent({
13362
13374
  default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
13363
13375
  })]);
13364
13376
  }
13365
- return () => createVNode(Fragment, null, [y(), b()]);
13377
+ return () => createVNode(Fragment, null, [b(), y()]);
13366
13378
  }
13367
13379
  }), KgButton_Item = "";
13368
13380
  function _isSlot$4(e) {
@@ -13436,8 +13448,8 @@ const getProps$e = () => ({
13436
13448
  }
13437
13449
  function i(g) {
13438
13450
  return computed(() => {
13439
- var y, b;
13440
- const _ = ((b = (y = r == null ? void 0 : r.value) == null ? void 0 : y.KgButton) == null ? void 0 : b.kgDisabled) || e.kgDisabled;
13451
+ var b, y;
13452
+ const _ = ((y = (b = r == null ? void 0 : r.value) == null ? void 0 : b.KgButton) == null ? void 0 : y.kgDisabled) || e.kgDisabled;
13441
13453
  if (_) {
13442
13454
  const T = _(g);
13443
13455
  if (!isNil(T))
@@ -13500,10 +13512,10 @@ const getProps$e = () => ({
13500
13512
  overlay: () => createVNode(Menu, null, {
13501
13513
  default: () => {
13502
13514
  var g, _;
13503
- return [(_ = (g = n.varButtons.value) == null ? void 0 : g.filter((y) => y.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : _.filter((y) => !(y.permission_type !== 2 && !a.p(y.permission_code))).map((y) => {
13504
- let b;
13505
- return createVNode(Menu.Item, null, _isSlot$3(b = m(y)) ? b : {
13506
- default: () => [b]
13515
+ return [(_ = (g = n.varButtons.value) == null ? void 0 : g.filter((b) => b.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : _.filter((b) => !(b.permission_type !== 2 && !a.p(b.permission_code))).map((b) => {
13516
+ let y;
13517
+ return createVNode(Menu.Item, null, _isSlot$3(y = m(b)) ? y : {
13518
+ default: () => [y]
13507
13519
  });
13508
13520
  })];
13509
13521
  }
@@ -13929,39 +13941,39 @@ const leftVarProfileDetailColumns = (e) => {
13929
13941
  l.onOpen(async ({
13930
13942
  isCreating: g,
13931
13943
  isUpdating: _,
13932
- isCopying: y,
13933
- row: b,
13944
+ isCopying: b,
13945
+ row: y,
13934
13946
  model: T
13935
13947
  }) => {
13936
- var M, E, P;
13948
+ var A, E, P;
13937
13949
  const k = o.store.getSystemVarProfileDetails(o.formID);
13938
13950
  switch (i.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
13939
13951
  case g:
13940
13952
  c.value = [];
13941
13953
  break;
13942
13954
  case _:
13943
- case y:
13944
- if (b != null && b.id)
13955
+ case b:
13956
+ if (y != null && y.id)
13945
13957
  try {
13946
13958
  l.store.setIsLoading(a.formID, !0);
13947
- const A = await QueryByID({
13959
+ const M = await QueryByID({
13948
13960
  params: {
13949
- id: b.id
13961
+ id: y.id
13950
13962
  }
13951
13963
  });
13952
13964
  i.value = i.value.map((w) => {
13953
13965
  var D;
13954
- const L = (D = A == null ? void 0 : A.varProfileDetails) == null ? void 0 : D.find((x) => x.var_nam === w.var_nam);
13966
+ const L = (D = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : D.find((x) => x.var_nam === w.var_nam);
13955
13967
  return L ? {
13956
13968
  ...w,
13957
13969
  ...L,
13958
13970
  id: w.id
13959
13971
  } : w;
13960
13972
  });
13961
- const I = (E = (M = A == null ? void 0 : A.varProfileDetails) == null ? void 0 : M.map((w) => w.var_nam)) != null ? E : [];
13973
+ const I = (E = (A = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : A.map((w) => w.var_nam)) != null ? E : [];
13962
13974
  c.value = i.value.filter((w) => I.includes(w.var_nam)).map((w) => w.id);
13963
- } catch (A) {
13964
- throw A;
13975
+ } catch (M) {
13976
+ throw M;
13965
13977
  } finally {
13966
13978
  l.store.setIsLoading(a.formID, !1);
13967
13979
  }
@@ -13970,7 +13982,7 @@ const leftVarProfileDetailColumns = (e) => {
13970
13982
  break;
13971
13983
  }
13972
13984
  switch (!0) {
13973
- case y:
13985
+ case b:
13974
13986
  T.value.prf_var_nam = ((P = T.value.prf_var_nam) != null ? P : "") + "_COPY";
13975
13987
  break;
13976
13988
  }
@@ -13978,9 +13990,9 @@ const leftVarProfileDetailColumns = (e) => {
13978
13990
  }), l.onBeforeOk(async ({
13979
13991
  model: g
13980
13992
  }) => {
13981
- var y, b;
13993
+ var b, y;
13982
13994
  const _ = g.value;
13983
- return _.frm_id = o.formID, _.varProfileDetails = (b = (y = i.value) == null ? void 0 : y.filter((T) => c.value.includes(T.id))) != null ? b : [], !1;
13995
+ return _.frm_id = o.formID, _.varProfileDetails = (y = (b = i.value) == null ? void 0 : b.filter((T) => c.value.includes(T.id))) != null ? y : [], !1;
13984
13996
  }), l.onOk(async () => (o.store.retrieve(o.formID), !1)), s.onUpdateBeforeClick(({
13985
13997
  row: g
13986
13998
  }) => (g == null ? void 0 : g.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((_) => {
@@ -14007,28 +14019,28 @@ const leftVarProfileDetailColumns = (e) => {
14007
14019
  varProfileDetails: ({
14008
14020
  varName: g,
14009
14021
  props: _,
14010
- model: y,
14011
- varVariableConfig: b,
14022
+ model: b,
14023
+ varVariableConfig: y,
14012
14024
  varProfileDetail: T,
14013
14025
  varSubmitField: k
14014
14026
  }) => createVNode(Transfer, {
14015
14027
  dataSource: i.value,
14016
14028
  targetKeys: c.value,
14017
- "onUpdate:targetKeys": (M) => c.value = M,
14018
- rowKey: (M) => M.id,
14029
+ "onUpdate:targetKeys": (A) => c.value = A,
14030
+ rowKey: (A) => A.id,
14019
14031
  showSearch: !0,
14020
14032
  showSelectAll: !1,
14021
14033
  searchPlaceholder: " ",
14022
- filterOption: (M, E) => {
14034
+ filterOption: (A, E) => {
14023
14035
  var P;
14024
- return !!((P = E.var_nam) != null && P.includes(M));
14036
+ return !!((P = E.var_nam) != null && P.includes(A));
14025
14037
  }
14026
14038
  }, {
14027
14039
  children: ({
14028
- direction: M,
14040
+ direction: A,
14029
14041
  filteredItems: E,
14030
14042
  selectedKeys: P,
14031
- disabled: A,
14043
+ disabled: M,
14032
14044
  onItemSelectAll: I,
14033
14045
  onItemSelect: w
14034
14046
  }) => createVNode(Table, {
@@ -14036,17 +14048,17 @@ const leftVarProfileDetailColumns = (e) => {
14036
14048
  class: "kg-flex-table",
14037
14049
  size: "small",
14038
14050
  scroll: {
14039
- x: M === "left" ? "370px" : "1244px",
14051
+ x: A === "left" ? "370px" : "1244px",
14040
14052
  y: "auto"
14041
14053
  },
14042
- columns: M === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
14054
+ columns: A === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
14043
14055
  rowKey: "id",
14044
14056
  dataSource: E,
14045
14057
  customRow: (L) => ({
14046
- onClick: (D) => C(D, L, M, P)
14058
+ onClick: (D) => C(D, L, A, P)
14047
14059
  }),
14048
14060
  rowSelection: m({
14049
- disabled: A,
14061
+ disabled: M,
14050
14062
  selectedKeys: P,
14051
14063
  onItemSelectAll: I,
14052
14064
  onItemSelect: w
@@ -14062,22 +14074,22 @@ const leftVarProfileDetailColumns = (e) => {
14062
14074
  const m = ({
14063
14075
  disabled: g,
14064
14076
  selectedKeys: _,
14065
- onItemSelectAll: y,
14066
- onItemSelect: b
14077
+ onItemSelectAll: b,
14078
+ onItemSelect: y
14067
14079
  }) => ({
14068
14080
  getCheckboxProps: (T) => ({
14069
14081
  disabled: g || T.disabled
14070
14082
  }),
14071
14083
  onSelectAll(T, k) {
14072
- const M = k.filter((E) => !E.disabled).map(({
14084
+ const A = k.filter((E) => !E.disabled).map(({
14073
14085
  key: E
14074
14086
  }) => E);
14075
- y(M, T);
14087
+ b(A, T);
14076
14088
  },
14077
14089
  onSelect({
14078
14090
  key: T
14079
14091
  }, k) {
14080
- b(T, k);
14092
+ y(T, k);
14081
14093
  },
14082
14094
  selectedRowKeys: _,
14083
14095
  columnWidth: 32
@@ -14091,14 +14103,14 @@ const leftVarProfileDetailColumns = (e) => {
14091
14103
  immediate: !0
14092
14104
  });
14093
14105
  }
14094
- function C(g, _, y, b) {
14106
+ function C(g, _, b, y) {
14095
14107
  if (!KgDomUtil.isNotClickable(g.target, ["ant-input"]))
14096
- switch (b.length = 0, g.detail) {
14108
+ switch (y.length = 0, g.detail) {
14097
14109
  case 1:
14098
- b[0] = _.id;
14110
+ y[0] = _.id;
14099
14111
  break;
14100
14112
  case 2:
14101
- switch (y) {
14113
+ switch (b) {
14102
14114
  case "left":
14103
14115
  c.value.push(_.id);
14104
14116
  break;
@@ -14291,12 +14303,12 @@ const KgSearch$1 = "", getProps$9 = () => ({
14291
14303
  return (Q = (z = r == null ? void 0 : r.value) == null ? void 0 : z.KgSearch) == null ? void 0 : Q.kgDisabled;
14292
14304
  if (!isNil(e.kgDisabled))
14293
14305
  return e.kgDisabled;
14294
- }), y = computed(() => {
14306
+ }), b = computed(() => {
14295
14307
  var K, B;
14296
14308
  return !!(_.value || l.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
14297
- }), b = computed(() => !!(_.value || l.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), T = computed(() => !!(_.value || l.isRetrieving.value)), k = ref({
14309
+ }), y = computed(() => !!(_.value || l.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), T = computed(() => !!(_.value || l.isRetrieving.value)), k = ref({
14298
14310
  visible: !1
14299
- }), M = computed(() => C.value.kgHeight === m.value), E = computed(() => {
14311
+ }), A = computed(() => C.value.kgHeight === m.value), E = computed(() => {
14300
14312
  var K, B, z;
14301
14313
  if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((B = n.varButtonSearch.value) == null ? void 0 : B.var_nam))
14302
14314
  return n.t((z = n.varButtonSearch.value) == null ? void 0 : z.var_nam).value;
@@ -14310,7 +14322,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
14310
14322
  default:
14311
14323
  return !0;
14312
14324
  }
14313
- }), A = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), I = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), w = computed(() => {
14325
+ }), M = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), I = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), w = computed(() => {
14314
14326
  let K = "kg-search";
14315
14327
  return o.value && (K += " kg-search--visible"), c.value && (K += " kg-search--teleport"), K;
14316
14328
  });
@@ -14318,7 +14330,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
14318
14330
  s.store.dispose(n.formID);
14319
14331
  });
14320
14332
  async function L(K = !1) {
14321
- y.value || (o.value ? v.value && v.value.validate().then(async () => {
14333
+ b.value || (o.value ? v.value && v.value.validate().then(async () => {
14322
14334
  await s.store.emit(n.formID, "search", {
14323
14335
  resetPageIndex: K
14324
14336
  });
@@ -14354,14 +14366,14 @@ const KgSearch$1 = "", getProps$9 = () => ({
14354
14366
  onClick: (B) => {
14355
14367
  B.stopPropagation(), B.preventDefault();
14356
14368
  }
14357
- }, [t.KgSearch.left()]), M.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
14369
+ }, [t.KgSearch.left()]), A.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
14358
14370
  }
14359
14371
  function V() {
14360
14372
  var K, B, z, Q;
14361
14373
  return ((z = (B = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : B.length) != null ? z : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
14362
14374
  value: (Q = n.currentVarProfileMasterID.value) != null ? Q : void 0,
14363
14375
  "onUpdate:value": (q) => n.store.setCurrentVarProfileMasterID(n.formID, q),
14364
- disabled: b.value,
14376
+ disabled: y.value,
14365
14377
  class: "kg-search-profile-master-select"
14366
14378
  }, {
14367
14379
  default: () => {
@@ -14376,7 +14388,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
14376
14388
  class: "ant-select-suffix"
14377
14389
  }, null)
14378
14390
  }), createVNode(Button, {
14379
- disabled: b.value,
14391
+ disabled: y.value,
14380
14392
  onClick: () => {
14381
14393
  k.value.visible = !0;
14382
14394
  },
@@ -14393,8 +14405,8 @@ const KgSearch$1 = "", getProps$9 = () => ({
14393
14405
  var K, B, z, Q, q;
14394
14406
  return createVNode(Fragment, null, [V(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
14395
14407
  type: "primary",
14396
- ghost: !y.value,
14397
- disabled: y.value,
14408
+ ghost: !b.value,
14409
+ disabled: b.value,
14398
14410
  onClick: D,
14399
14411
  class: "kg-search-btn-reset"
14400
14412
  }, {
@@ -14437,7 +14449,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
14437
14449
  });
14438
14450
  }
14439
14451
  function F() {
14440
- M.value ? C.value.kgHeight = u.value : C.value.kgHeight = m.value;
14452
+ A.value ? C.value.kgHeight = u.value : C.value.kgHeight = m.value;
14441
14453
  }
14442
14454
  return () => createVNode(KgResizable, {
14443
14455
  kgHeight: C.value.kgHeight,
@@ -14459,7 +14471,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
14459
14471
  default: () => [createVNode("div", {
14460
14472
  class: "ant-collapse-header"
14461
14473
  }, [createVNode(Spin, {
14462
- spinning: A.value
14474
+ spinning: M.value
14463
14475
  }, {
14464
14476
  default: () => [$(), createVNode("div", {
14465
14477
  class: "ant-collapse-extra"
@@ -14534,28 +14546,28 @@ function useMagicKeys(e = {}) {
14534
14546
  d(g, !1);
14535
14547
  }
14536
14548
  function v(g, _) {
14537
- var y, b;
14538
- const T = (y = g.key) == null ? void 0 : y.toLowerCase(), k = (b = g.code) == null ? void 0 : b.toLowerCase(), M = [k, T].filter(Boolean);
14549
+ var b, y;
14550
+ const T = (b = g.key) == null ? void 0 : b.toLowerCase(), k = (y = g.code) == null ? void 0 : y.toLowerCase(), A = [k, T].filter(Boolean);
14539
14551
  k && (_ ? l.add(g.code) : l.delete(g.code));
14540
- for (const E of M)
14552
+ for (const E of A)
14541
14553
  u.add(E), d(E, _);
14542
14554
  T === "meta" && !_ ? (c.forEach((E) => {
14543
14555
  l.delete(E), d(E, !1);
14544
- }), c.clear()) : typeof g.getModifierState == "function" && g.getModifierState("Meta") && _ && [...l, ...M].forEach((E) => c.add(E));
14556
+ }), c.clear()) : typeof g.getModifierState == "function" && g.getModifierState("Meta") && _ && [...l, ...A].forEach((E) => c.add(E));
14545
14557
  }
14546
14558
  r && (useEventListener(r, "keydown", (g) => (v(g, !0), s(g)), { passive: n }), useEventListener(r, "keyup", (g) => (v(g, !1), s(g)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
14547
14559
  const C = new Proxy(i, {
14548
- get(g, _, y) {
14560
+ get(g, _, b) {
14549
14561
  if (typeof _ != "string")
14550
- return Reflect.get(g, _, y);
14562
+ return Reflect.get(g, _, b);
14551
14563
  if (_ = _.toLowerCase(), _ in a && (_ = a[_]), !(_ in i))
14552
14564
  if (/[+_-]/.test(_)) {
14553
14565
  const T = _.split(/[+_-]/g).map((k) => k.trim());
14554
14566
  i[_] = computed(() => T.every((k) => unref(C[k])));
14555
14567
  } else
14556
14568
  i[_] = ref(!1);
14557
- const b = Reflect.get(g, _, y);
14558
- return t ? unref(b) : b;
14569
+ const y = Reflect.get(g, _, b);
14570
+ return t ? unref(y) : y;
14559
14571
  }
14560
14572
  });
14561
14573
  return C;
@@ -14946,16 +14958,16 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14946
14958
  }), C = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(l))), g = computed(() => {
14947
14959
  var D;
14948
14960
  return !!u.value || ((D = a.getSelectedVarCatalog) == null ? void 0 : D.cust_lvl) === KG_CUSTOM_LEVEL.L0;
14949
- }), _ = computed(() => !!(!unref(u) || unref(n) || unref(s))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
14961
+ }), _ = computed(() => !!(!unref(u) || unref(n) || unref(s))), b = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
14950
14962
  watch(() => a.getSelectedVar, (D) => {
14951
- D ? b() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
14963
+ D ? y() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
14952
14964
  }, {
14953
14965
  immediate: !0
14954
14966
  }), watch(() => a.getSelectedVarCatalog, async (D) => {
14955
14967
  var x, $;
14956
14968
  i.value.var_text = (x = D == null ? void 0 : D.var_text) != null ? x : "", ($ = o.value) == null || $.clearValidate();
14957
14969
  });
14958
- async function b(D = !1) {
14970
+ async function y(D = !1) {
14959
14971
  var x, $, V;
14960
14972
  n.value = !0;
14961
14973
  try {
@@ -14999,19 +15011,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14999
15011
  successMessageMode: "none"
15000
15012
  }), message.success({
15001
15013
  content: t.t("kg.KgVarConfig.createSuccess")
15002
- }), await b()) : (await Edit({
15014
+ }), await y()) : (await Edit({
15003
15015
  data: V
15004
15016
  }, {
15005
15017
  successMessageMode: "none"
15006
15018
  }), message.success({
15007
15019
  content: t.t("kg.KgVarConfig.saveSuccess")
15008
- }), await b(!0)) : (await Add({
15020
+ }), await y(!0)) : (await Add({
15009
15021
  data: V
15010
15022
  }, {
15011
15023
  successMessageMode: "none"
15012
15024
  }), message.success({
15013
15025
  content: t.t("kg.KgVarConfig.createSuccess")
15014
- }), await b()), r.retrieve(e == null ? void 0 : e.value);
15026
+ }), await y()), r.retrieve(e == null ? void 0 : e.value);
15015
15027
  } catch (V) {
15016
15028
  KgUtil.throwIfNotFormError(V);
15017
15029
  } finally {
@@ -15033,7 +15045,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
15033
15045
  var_text: ""
15034
15046
  }), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
15035
15047
  }
15036
- function M() {
15048
+ function A() {
15037
15049
  var x;
15038
15050
  c.value = without$1(c.value, u.value), u.value = null;
15039
15051
  const D = (x = c.value[0]) != null ? x : null;
@@ -15052,7 +15064,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
15052
15064
  joinParamsToUrl: !0
15053
15065
  }), message.success({
15054
15066
  content: t.t("kg.KgVarConfig.deleteSuccess")
15055
- }), r.retrieve(e == null ? void 0 : e.value), await b();
15067
+ }), r.retrieve(e == null ? void 0 : e.value), await y();
15056
15068
  }
15057
15069
  });
15058
15070
  }
@@ -15065,14 +15077,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
15065
15077
  }
15066
15078
  }) : (a.setSelectedVarCatalog(unref(D)), d.value = [D.id]));
15067
15079
  }
15068
- function A() {
15080
+ function M() {
15069
15081
  v.value.visible = !0;
15070
15082
  }
15071
15083
  function I() {
15072
15084
  return createVNode("div", {
15073
15085
  class: "buttons"
15074
15086
  }, [createVNode(Button, {
15075
- onClick: A,
15087
+ onClick: M,
15076
15088
  disabled: C.value,
15077
15089
  type: "primary"
15078
15090
  }, {
@@ -15115,12 +15127,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
15115
15127
  class: "buttons"
15116
15128
  }, [createVNode(Button, {
15117
15129
  disabled: _.value,
15118
- onClick: M
15130
+ onClick: A
15119
15131
  }, _isSlot(D = t.t("common.cancelText")) ? D : {
15120
15132
  default: () => [D]
15121
15133
  }), createVNode(Button, {
15122
15134
  loading: s.value,
15123
- disabled: y.value,
15135
+ disabled: b.value,
15124
15136
  onClick: T,
15125
15137
  type: "primary"
15126
15138
  }, _isSlot(x = t.t("common.save")) ? x : {
@@ -15477,22 +15489,22 @@ const KgWarehouse$1 = "", getProps = () => ({
15477
15489
  customRender: ({
15478
15490
  record: k
15479
15491
  }) => {
15480
- var E, P, A;
15481
- const M = k;
15482
- return createVNode("div", null, [createVNode("div", null, [(E = M.whDsc) != null ? E : " ", createTextVNode(" - "), (P = M.whId) != null ? P : " "]), createVNode("div", {
15492
+ var E, P, M;
15493
+ const A = k;
15494
+ return createVNode("div", null, [createVNode("div", null, [(E = A.whDsc) != null ? E : " ", createTextVNode(" - "), (P = A.whId) != null ? P : " "]), createVNode("div", {
15483
15495
  class: "address"
15484
- }, [(A = M.adrId) != null ? A : " "])]);
15496
+ }, [(M = A.adrId) != null ? M : " "])]);
15485
15497
  }
15486
15498
  }]), u = ref([]), d = computed(() => {
15487
- var M;
15488
- const k = (M = s.value) == null ? void 0 : M.toUpperCase();
15499
+ var A;
15500
+ const k = (A = s.value) == null ? void 0 : A.toUpperCase();
15489
15501
  return u.value.filter((E) => {
15490
- var P, A, I, w, L, D;
15491
- return ((A = (P = E.whDsc) == null ? void 0 : P.toUpperCase()) == null ? void 0 : A.includes(k)) || ((w = (I = E.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : w.includes(k)) || ((D = (L = E.adrId) == null ? void 0 : L.toUpperCase()) == null ? void 0 : D.includes(k));
15502
+ var P, M, I, w, L, D;
15503
+ return ((M = (P = E.whDsc) == null ? void 0 : P.toUpperCase()) == null ? void 0 : M.includes(k)) || ((w = (I = E.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : w.includes(k)) || ((D = (L = E.adrId) == null ? void 0 : L.toUpperCase()) == null ? void 0 : D.includes(k));
15492
15504
  });
15493
15505
  }), m = computed(() => {
15494
- var k, M;
15495
- return ((M = (k = r.option.value) == null ? void 0 : k.KgWarehouse) == null ? void 0 : M.enable) !== !1;
15506
+ var k, A;
15507
+ return ((A = (k = r.option.value) == null ? void 0 : k.KgWarehouse) == null ? void 0 : A.enable) !== !1;
15496
15508
  });
15497
15509
  watch(a.visible, (k) => {
15498
15510
  !m.value || (k ? C() : g());
@@ -15505,7 +15517,7 @@ const KgWarehouse$1 = "", getProps = () => ({
15505
15517
  !m.value || a.store.setVisible(!0);
15506
15518
  }
15507
15519
  function C() {
15508
- o.value = a.warehouse.value, y();
15520
+ o.value = a.warehouse.value, b();
15509
15521
  }
15510
15522
  function g() {
15511
15523
  s.value = "", u.value = [], o.value = null;
@@ -15524,7 +15536,7 @@ const KgWarehouse$1 = "", getProps = () => ({
15524
15536
  }
15525
15537
  })), a.store.setVisible(!1));
15526
15538
  }
15527
- async function y() {
15539
+ async function b() {
15528
15540
  i.value = !0;
15529
15541
  try {
15530
15542
  const {
@@ -15542,14 +15554,14 @@ const KgWarehouse$1 = "", getProps = () => ({
15542
15554
  i.value = !1;
15543
15555
  }
15544
15556
  }
15545
- function b(k, M) {
15557
+ function y(k, A) {
15546
15558
  var E;
15547
15559
  switch (k.detail) {
15548
15560
  case 1:
15549
- ((E = o.value) == null ? void 0 : E.id) === M.id ? o.value = null : o.value = M;
15561
+ ((E = o.value) == null ? void 0 : E.id) === A.id ? o.value = null : o.value = A;
15550
15562
  break;
15551
15563
  case 2:
15552
- o.value = M, _();
15564
+ o.value = A, _();
15553
15565
  break;
15554
15566
  }
15555
15567
  }
@@ -15559,8 +15571,8 @@ const KgWarehouse$1 = "", getProps = () => ({
15559
15571
  placement: "bottomRight"
15560
15572
  }, {
15561
15573
  default: () => {
15562
- var k, M;
15563
- return [((k = l.value) == null ? void 0 : k.whDsc) || ((M = l.value) == null ? void 0 : M.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
15574
+ var k, A;
15575
+ return [((k = l.value) == null ? void 0 : k.whDsc) || ((A = l.value) == null ? void 0 : A.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
15564
15576
  }
15565
15577
  }), createVNode(KgModal, {
15566
15578
  visible: a.visible.value,
@@ -15602,10 +15614,10 @@ const KgWarehouse$1 = "", getProps = () => ({
15602
15614
  columns: c,
15603
15615
  class: "kg-flex-table",
15604
15616
  customRow: (k) => {
15605
- var M;
15617
+ var A;
15606
15618
  return {
15607
- class: k.id === ((M = o.value) == null ? void 0 : M.id) ? "selected" : "",
15608
- onClick: (E) => b(E, k)
15619
+ class: k.id === ((A = o.value) == null ? void 0 : A.id) ? "selected" : "",
15620
+ onClick: (E) => y(E, k)
15609
15621
  };
15610
15622
  }
15611
15623
  }, null)]