@kengic/vue 0.5.21-beta.1 → 0.5.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2385,17 +2385,17 @@ function baseClone(e, t, r, n, a, o) {
2385
2385
  }
2386
2386
  }
2387
2387
  o || (o = new Stack());
2388
- var _ = o.get(e);
2389
- if (_)
2390
- return _;
2388
+ var m = o.get(e);
2389
+ if (m)
2390
+ return m;
2391
2391
  o.set(e, s), isSet$1(e) ? e.forEach(function(v) {
2392
2392
  s.add(baseClone(v, t, r, v, e, o));
2393
2393
  }) : isMap$1(e) && e.forEach(function(v, y) {
2394
2394
  s.set(y, baseClone(v, t, r, y, e, o));
2395
2395
  });
2396
- var b = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, m = c ? void 0 : b(e);
2397
- return arrayEach(m || e, function(v, y) {
2398
- m && (y = v, v = e[y]), assignValue(s, y, baseClone(v, t, r, y, e, o));
2396
+ var b = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, _ = c ? void 0 : b(e);
2397
+ return arrayEach(_ || e, function(v, y) {
2398
+ _ && (y = v, v = e[y]), assignValue(s, y, baseClone(v, t, r, y, e, o));
2399
2399
  }), s;
2400
2400
  }
2401
2401
  var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
@@ -2433,26 +2433,26 @@ function equalArrays(e, t, r, n, a, o) {
2433
2433
  var u = o.get(e), c = o.get(t);
2434
2434
  if (u && c)
2435
2435
  return u == t && c == e;
2436
- var g = -1, p = !0, _ = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
2436
+ var g = -1, p = !0, m = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
2437
2437
  for (o.set(e, t), o.set(t, e); ++g < i; ) {
2438
- var b = e[g], m = t[g];
2438
+ var b = e[g], _ = t[g];
2439
2439
  if (n)
2440
- var v = s ? n(m, b, g, t, e, o) : n(b, m, g, e, t, o);
2440
+ var v = s ? n(_, b, g, t, e, o) : n(b, _, g, e, t, o);
2441
2441
  if (v !== void 0) {
2442
2442
  if (v)
2443
2443
  continue;
2444
2444
  p = !1;
2445
2445
  break;
2446
2446
  }
2447
- if (_) {
2447
+ if (m) {
2448
2448
  if (!arraySome(t, function(y, C) {
2449
- if (!cacheHas(_, C) && (b === y || a(b, y, r, n, o)))
2450
- return _.push(C);
2449
+ if (!cacheHas(m, C) && (b === y || a(b, y, r, n, o)))
2450
+ return m.push(C);
2451
2451
  })) {
2452
2452
  p = !1;
2453
2453
  break;
2454
2454
  }
2455
- } else if (!(b === m || a(b, m, r, n, o))) {
2455
+ } else if (!(b === _ || a(b, _, r, n, o))) {
2456
2456
  p = !1;
2457
2457
  break;
2458
2458
  }
@@ -2517,10 +2517,10 @@ function equalObjects(e, t, r, n, a, o) {
2517
2517
  if (!(s ? p in t : hasOwnProperty$1.call(t, p)))
2518
2518
  return !1;
2519
2519
  }
2520
- var _ = o.get(e), b = o.get(t);
2521
- if (_ && b)
2522
- return _ == t && b == e;
2523
- var m = !0;
2520
+ var m = o.get(e), b = o.get(t);
2521
+ if (m && b)
2522
+ return m == t && b == e;
2523
+ var _ = !0;
2524
2524
  o.set(e, t), o.set(t, e);
2525
2525
  for (var v = s; ++g < l; ) {
2526
2526
  p = i[g];
@@ -2528,16 +2528,16 @@ function equalObjects(e, t, r, n, a, o) {
2528
2528
  if (n)
2529
2529
  var T = s ? n(C, y, p, t, e, o) : n(y, C, p, e, t, o);
2530
2530
  if (!(T === void 0 ? y === C || a(y, C, r, n, o) : T)) {
2531
- m = !1;
2531
+ _ = !1;
2532
2532
  break;
2533
2533
  }
2534
2534
  v || (v = p == "constructor");
2535
2535
  }
2536
- if (m && !v) {
2537
- var I = e.constructor, V = t.constructor;
2538
- I != V && "constructor" in e && "constructor" in t && !(typeof I == "function" && I instanceof I && typeof V == "function" && V instanceof V) && (m = !1);
2536
+ if (_ && !v) {
2537
+ var E = e.constructor, V = t.constructor;
2538
+ E != V && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof V == "function" && V instanceof V) && (_ = !1);
2539
2539
  }
2540
- return o.delete(e), o.delete(t), m;
2540
+ return o.delete(e), o.delete(t), _;
2541
2541
  }
2542
2542
  var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
2543
2543
  function baseIsEqualDeep(e, t, r, n, a, o) {
@@ -2552,10 +2552,10 @@ function baseIsEqualDeep(e, t, r, n, a, o) {
2552
2552
  if (p && !c)
2553
2553
  return o || (o = new Stack()), s || isTypedArray$1(e) ? equalArrays(e, t, r, n, a, o) : equalByTag(e, t, l, r, n, a, o);
2554
2554
  if (!(r & COMPARE_PARTIAL_FLAG$2)) {
2555
- var _ = c && hasOwnProperty.call(e, "__wrapped__"), b = g && hasOwnProperty.call(t, "__wrapped__");
2556
- if (_ || b) {
2557
- var m = _ ? e.value() : e, v = b ? t.value() : t;
2558
- return o || (o = new Stack()), a(m, v, r, n, o);
2555
+ var m = c && hasOwnProperty.call(e, "__wrapped__"), b = g && hasOwnProperty.call(t, "__wrapped__");
2556
+ if (m || b) {
2557
+ var _ = m ? e.value() : e, v = b ? t.value() : t;
2558
+ return o || (o = new Stack()), a(_, v, r, n, o);
2559
2559
  }
2560
2560
  }
2561
2561
  return p ? (o || (o = new Stack()), equalObjects(e, t, r, n, a, o)) : !1;
@@ -3250,8 +3250,8 @@ function generate$1(e) {
3250
3250
  r.push(u);
3251
3251
  }
3252
3252
  return t.theme === "dark" ? darkColorMap.map(function(c) {
3253
- var g = c.index, p = c.opacity, _ = toHex(mix(inputToRGB(t.backgroundColor || "#141414"), inputToRGB(r[g]), p * 100));
3254
- return _;
3253
+ var g = c.index, p = c.opacity, m = toHex(mix(inputToRGB(t.backgroundColor || "#141414"), inputToRGB(r[g]), p * 100));
3254
+ return m;
3255
3255
  }) : r;
3256
3256
  }
3257
3257
  var presetPrimaryColors = {
@@ -3607,25 +3607,25 @@ function _objectWithoutPropertiesLoose(e, t) {
3607
3607
  }
3608
3608
  setTwoToneColor("#1890ff");
3609
3609
  var Icon$1 = function(t, r) {
3610
- var n, a = _objectSpread$i({}, t, r.attrs), o = a.class, s = a.icon, i = a.spin, l = a.rotate, u = a.tabindex, c = a.twoToneColor, g = a.onClick, p = _objectWithoutProperties(a, _excluded), _ = (n = {
3610
+ var n, a = _objectSpread$i({}, t, r.attrs), o = a.class, s = a.icon, i = a.spin, l = a.rotate, u = a.tabindex, c = a.twoToneColor, g = a.onClick, p = _objectWithoutProperties(a, _excluded), m = (n = {
3611
3611
  anticon: !0
3612
- }, _defineProperty$i(n, "anticon-".concat(s.name), Boolean(s.name)), _defineProperty$i(n, o, o), n), b = i === "" || !!i || s.name === "loading" ? "anticon-spin" : "", m = u;
3613
- m === void 0 && g && (m = -1, p.tabindex = m);
3612
+ }, _defineProperty$i(n, "anticon-".concat(s.name), Boolean(s.name)), _defineProperty$i(n, o, o), n), b = i === "" || !!i || s.name === "loading" ? "anticon-spin" : "", _ = u;
3613
+ _ === void 0 && g && (_ = -1, p.tabindex = _);
3614
3614
  var v = l ? {
3615
3615
  msTransform: "rotate(".concat(l, "deg)"),
3616
3616
  transform: "rotate(".concat(l, "deg)")
3617
- } : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), T = C[0], I = C[1];
3617
+ } : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), T = C[0], E = C[1];
3618
3618
  return createVNode("span", _objectSpread$i({
3619
3619
  role: "img",
3620
3620
  "aria-label": s.name
3621
3621
  }, p, {
3622
3622
  onClick: g,
3623
- class: _
3623
+ class: m
3624
3624
  }), [createVNode(VueIcon, {
3625
3625
  class: b,
3626
3626
  icon: s,
3627
3627
  primaryColor: T,
3628
- secondaryColor: I,
3628
+ secondaryColor: E,
3629
3629
  style: v
3630
3630
  }, null)]);
3631
3631
  };
@@ -4534,7 +4534,7 @@ var KG_APP = /* @__PURE__ */ ((e) => (e.DATA_MANAGER = "data-manager", e.BUSINES
4534
4534
  const KG_APPS = ["data-manager", "business-manager", "sys"];
4535
4535
  var KG_APP_PREFIX = /* @__PURE__ */ ((e) => (e.DATA_MANAGER = "/wms/data-manager", e.BUSINESS_MANAGER = "/wms/business-manager", e.SYS = "/sys", e))(KG_APP_PREFIX || {});
4536
4536
  const KG_APP_PREFIXS = ["/wms/data-manager", "/wms/business-manager", "/sys"];
4537
- var KG_FORM_ITEM_TYPE = /* @__PURE__ */ ((e) => (e.INPUT = "INPUT", e.INPUT_PASSWORD = "INPUT_PASSWORD", e.INPUT_AREA = "INPUT_AREA", e.INPUT_NUMBER = "INPUT_NUMBER", e.CHECKBOX = "CHECKBOX", e.SWITCH = "SWITCH", e.SELECT = "SELECT", e.SELECT_MULTIPLE = "SELECT_MULTIPLE", e.DATE_DATE = "DATE_DATE", e.DATE_DATE_RANGE = "DATE_DATE_RANGE", e.DATE_DATETIME = "DATE_DATETIME", e.DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE", e.DATE_WEEK = "DATE_WEEK", e.DATE_MONTH = "DATE_MONTH", e.DATE_YEAR = "DATE_YEAR", e.UOM = "UOM", e.BUTTON_UPLOAD = "BUTTON_UPLOAD", e))(KG_FORM_ITEM_TYPE || {}), KG_FORM_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e))(KG_FORM_CONTEXT || {}), KG_TABLE_CELL_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.YN = "YN", e.ENUM = "ENUM", e.PROGRESS = "PROGRESS", e.FILE_SIZE = "FILE_SIZE", e.UPDATE_LINK = "UPDATE_LINK", e))(KG_TABLE_CELL_DISPLAY_TYPE || {}), KG_BUTTON_TYPE = /* @__PURE__ */ ((e) => (e.CREATE = "CREATE", e.UPDATE = "UPDATE", e.COPY = "COPY", e.DELETE = "DELETE", e.IMPORT = "IMPORT", e.IMPORT_TEMPLATE = "IMPORT_TEMPLATE", e.EXPORT = "EXPORT", e.SEARCH = "SEARCH", e.REFRESH = "REFRESH", e.OTHER = "OTHER", e))(KG_BUTTON_TYPE || {}), KG_BUTTON_COLOR = /* @__PURE__ */ ((e) => (e.DANGER = "DANGER", e.WARN = "WARN", e))(KG_BUTTON_COLOR || {}), KG_BUTTON_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.DEFAULT = "DEFAULT", e.SELECT = "SELECT", e))(KG_BUTTON_DISPLAY_TYPE || {}), KG_VAR_SUBMIT__DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.MODAL = "MODAL", e.DRAWER = "DRAWER", e))(KG_VAR_SUBMIT__DISPLAY_TYPE || {}), KG_VAR_SUBMIT__LAYOUT = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(KG_VAR_SUBMIT__LAYOUT || {}), KG_VAR_INPUT__DATA_TYPE = /* @__PURE__ */ ((e) => (e.NUMBER = "NUMBER", e))(KG_VAR_INPUT__DATA_TYPE || {}), KG_CUSTOM_LEVEL = /* @__PURE__ */ ((e) => (e[e.L0 = 0] = "L0", e[e.L10 = 10] = "L10", e))(KG_CUSTOM_LEVEL || {}), KG_POSSIBILITY_DATA_TYPE = /* @__PURE__ */ ((e) => (e.STRING = "string", e.NUMBER = "number", e.BOOLEAN = "boolean", e))(KG_POSSIBILITY_DATA_TYPE || {}), KG_WIDTH_UNIT = /* @__PURE__ */ ((e) => (e.SPAN = "SPAN", e.PX = "PX", e))(KG_WIDTH_UNIT || {}), KG_EXCEL_SUFFIX = /* @__PURE__ */ ((e) => (e.XLS = "xls", e.XLSX = "xlsx", e))(KG_EXCEL_SUFFIX || {}), KG_DESCRIPTION_CODE_NAME = /* @__PURE__ */ ((e) => (e.YN = "yn", e.VAR_SUBMIT_LAYOUT = "var_submit_layout", e.VAR_SPAN = "var_span", e.VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type", e.VAR_WIDTH_UNIT = "var_width_unit", e))(KG_DESCRIPTION_CODE_NAME || {});
4537
+ var KG_FORM_ITEM_TYPE = /* @__PURE__ */ ((e) => (e.INPUT = "INPUT", e.INPUT_PASSWORD = "INPUT_PASSWORD", e.INPUT_AREA = "INPUT_AREA", e.INPUT_NUMBER = "INPUT_NUMBER", e.CHECKBOX = "CHECKBOX", e.SWITCH = "SWITCH", e.SELECT = "SELECT", e.SELECT_MULTIPLE = "SELECT_MULTIPLE", e.DATE_DATE = "DATE_DATE", e.DATE_DATE_RANGE = "DATE_DATE_RANGE", e.DATE_DATETIME = "DATE_DATETIME", e.DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE", e.DATE_WEEK = "DATE_WEEK", e.DATE_MONTH = "DATE_MONTH", e.DATE_YEAR = "DATE_YEAR", e.UOM = "UOM", e.BUTTON_UPLOAD = "BUTTON_UPLOAD", e))(KG_FORM_ITEM_TYPE || {}), KG_FORM_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e))(KG_FORM_CONTEXT || {}), KG_TABLE_CELL_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.YN = "YN", e.ENUM = "ENUM", e.PROGRESS = "PROGRESS", e.FILE_SIZE = "FILE_SIZE", e.UPDATE_LINK = "UPDATE_LINK", e.ROUTE_LINK = "ROUTE_LINK", e))(KG_TABLE_CELL_DISPLAY_TYPE || {}), KG_BUTTON_TYPE = /* @__PURE__ */ ((e) => (e.CREATE = "CREATE", e.UPDATE = "UPDATE", e.COPY = "COPY", e.DELETE = "DELETE", e.IMPORT = "IMPORT", e.IMPORT_TEMPLATE = "IMPORT_TEMPLATE", e.EXPORT = "EXPORT", e.SEARCH = "SEARCH", e.REFRESH = "REFRESH", e.OTHER = "OTHER", e))(KG_BUTTON_TYPE || {}), KG_BUTTON_COLOR = /* @__PURE__ */ ((e) => (e.DANGER = "DANGER", e.WARN = "WARN", e))(KG_BUTTON_COLOR || {}), KG_BUTTON_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.DEFAULT = "DEFAULT", e.SELECT = "SELECT", e))(KG_BUTTON_DISPLAY_TYPE || {}), KG_VAR_SUBMIT__DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.MODAL = "MODAL", e.DRAWER = "DRAWER", e))(KG_VAR_SUBMIT__DISPLAY_TYPE || {}), KG_VAR_SUBMIT__LAYOUT = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(KG_VAR_SUBMIT__LAYOUT || {}), KG_VAR_INPUT__DATA_TYPE = /* @__PURE__ */ ((e) => (e.NUMBER = "NUMBER", e))(KG_VAR_INPUT__DATA_TYPE || {}), KG_CUSTOM_LEVEL = /* @__PURE__ */ ((e) => (e[e.L0 = 0] = "L0", e[e.L10 = 10] = "L10", e))(KG_CUSTOM_LEVEL || {}), KG_POSSIBILITY_DATA_TYPE = /* @__PURE__ */ ((e) => (e.STRING = "string", e.NUMBER = "number", e.BOOLEAN = "boolean", e))(KG_POSSIBILITY_DATA_TYPE || {}), KG_WIDTH_UNIT = /* @__PURE__ */ ((e) => (e.SPAN = "SPAN", e.PX = "PX", e))(KG_WIDTH_UNIT || {}), KG_EXCEL_SUFFIX = /* @__PURE__ */ ((e) => (e.XLS = "xls", e.XLSX = "xlsx", e))(KG_EXCEL_SUFFIX || {}), KG_DESCRIPTION_CODE_NAME = /* @__PURE__ */ ((e) => (e.YN = "yn", e.VAR_SUBMIT_LAYOUT = "var_submit_layout", e.VAR_SPAN = "var_span", e.VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type", e.VAR_WIDTH_UNIT = "var_width_unit", e))(KG_DESCRIPTION_CODE_NAME || {});
4538
4538
  function isPathInApp(e, t) {
4539
4539
  var r, n;
4540
4540
  switch (t) {
@@ -4581,13 +4581,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4581
4581
  (function(r, n) {
4582
4582
  e.exports = n();
4583
4583
  })(commonjsGlobal, function() {
4584
- var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", _ = "year", b = "date", m = "Invalid Date", v = /^(\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, C = { 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($) {
4584
+ var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", m = "year", b = "date", _ = "Invalid Date", v = /^(\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, C = { 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($) {
4585
4585
  var A = ["th", "st", "nd", "rd"], M = $ % 100;
4586
4586
  return "[" + $ + (A[(M - 20) % 10] || A[M] || A[0]) + "]";
4587
4587
  } }, T = function($, A, M) {
4588
4588
  var D = String($);
4589
4589
  return !D || D.length >= A ? $ : "" + Array(A + 1 - D.length).join(M) + $;
4590
- }, I = { s: T, z: function($) {
4590
+ }, E = { s: T, z: function($) {
4591
4591
  var A = -$.utcOffset(), M = Math.abs(A), D = Math.floor(M / 60), L = M % 60;
4592
4592
  return (A <= 0 ? "+" : "-") + T(D, 2, "0") + ":" + T(L, 2, "0");
4593
4593
  }, m: function $(A, M) {
@@ -4598,12 +4598,12 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4598
4598
  }, a: function($) {
4599
4599
  return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
4600
4600
  }, p: function($) {
4601
- return { M: g, y: _, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[$] || String($ || "").toLowerCase().replace(/s$/, "");
4601
+ return { M: g, y: m, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[$] || String($ || "").toLowerCase().replace(/s$/, "");
4602
4602
  }, u: function($) {
4603
4603
  return $ === void 0;
4604
- } }, V = "en", E = {};
4605
- E[V] = C;
4606
- var K = function($) {
4604
+ } }, V = "en", k = {};
4605
+ k[V] = C;
4606
+ var x = function($) {
4607
4607
  return $ instanceof R;
4608
4608
  }, F = function $(A, M, D) {
4609
4609
  var L;
@@ -4611,22 +4611,22 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4611
4611
  return V;
4612
4612
  if (typeof A == "string") {
4613
4613
  var G = A.toLowerCase();
4614
- E[G] && (L = G), M && (E[G] = M, L = G);
4614
+ k[G] && (L = G), M && (k[G] = M, L = G);
4615
4615
  var P = A.split("-");
4616
4616
  if (!L && P.length > 1)
4617
4617
  return $(P[0]);
4618
4618
  } else {
4619
4619
  var U = A.name;
4620
- E[U] = A, L = U;
4620
+ k[U] = A, L = U;
4621
4621
  }
4622
4622
  return !D && L && (V = L), L || !D && V;
4623
4623
  }, O = function($, A) {
4624
- if (K($))
4624
+ if (x($))
4625
4625
  return $.clone();
4626
4626
  var M = typeof A == "object" ? A : {};
4627
4627
  return M.date = $, M.args = arguments, new R(M);
4628
- }, w = I;
4629
- w.l = F, w.i = K, w.w = function($, A) {
4628
+ }, w = E;
4629
+ w.l = F, w.i = x, w.w = function($, A) {
4630
4630
  return O($, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
4631
4631
  };
4632
4632
  var R = function() {
@@ -4658,7 +4658,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4658
4658
  }, A.$utils = function() {
4659
4659
  return w;
4660
4660
  }, A.isValid = function() {
4661
- return this.$d.toString() !== m;
4661
+ return this.$d.toString() !== _;
4662
4662
  }, A.isSame = function(M, D) {
4663
4663
  var L = O(M);
4664
4664
  return this.startOf(D) <= L && L <= this.endOf(D);
@@ -4680,7 +4680,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4680
4680
  return w.w(L.toDate()[q].apply(L.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(H)), L);
4681
4681
  }, Y = this.$W, X = this.$M, re = this.$D, te = "set" + (this.$u ? "UTC" : "");
4682
4682
  switch (P) {
4683
- case _:
4683
+ case m:
4684
4684
  return G ? U(1, 0) : U(31, 11);
4685
4685
  case g:
4686
4686
  return G ? U(1, X) : U(0, X + 1);
@@ -4702,8 +4702,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4702
4702
  }, A.endOf = function(M) {
4703
4703
  return this.startOf(M, !1);
4704
4704
  }, A.$set = function(M, D) {
4705
- var L, G = w.p(M), P = "set" + (this.$u ? "UTC" : ""), U = (L = {}, L[u] = P + "Date", L[b] = P + "Date", L[g] = P + "Month", L[_] = P + "FullYear", L[l] = P + "Hours", L[i] = P + "Minutes", L[s] = P + "Seconds", L[o] = P + "Milliseconds", L)[G], W = G === u ? this.$D + (D - this.$W) : D;
4706
- if (G === g || G === _) {
4705
+ var L, G = w.p(M), P = "set" + (this.$u ? "UTC" : ""), U = (L = {}, L[u] = P + "Date", L[b] = P + "Date", L[g] = P + "Month", L[m] = P + "FullYear", L[l] = P + "Hours", L[i] = P + "Minutes", L[s] = P + "Seconds", L[o] = P + "Milliseconds", L)[G], W = G === u ? this.$D + (D - this.$W) : D;
4706
+ if (G === g || G === m) {
4707
4707
  var Y = this.clone().set(b, 1);
4708
4708
  Y.$d[U](W), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
4709
4709
  } else
@@ -4722,8 +4722,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4722
4722
  };
4723
4723
  if (P === g)
4724
4724
  return this.set(g, this.$M + M);
4725
- if (P === _)
4726
- return this.set(_, this.$y + M);
4725
+ if (P === m)
4726
+ return this.set(m, this.$y + M);
4727
4727
  if (P === u)
4728
4728
  return U(1);
4729
4729
  if (P === c)
@@ -4735,7 +4735,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4735
4735
  }, A.format = function(M) {
4736
4736
  var D = this, L = this.$locale();
4737
4737
  if (!this.isValid())
4738
- return L.invalidDate || m;
4738
+ return L.invalidDate || _;
4739
4739
  var G = M || "YYYY-MM-DDTHH:mm:ssZ", P = w.z(this), U = this.$H, W = this.$m, Y = this.$M, X = L.weekdays, re = L.months, te = function(H, ee, J, le) {
4740
4740
  return H && (H[ee] || H(D, G)) || J[ee].slice(0, le);
4741
4741
  }, N = function(H) {
@@ -4751,11 +4751,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4751
4751
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4752
4752
  }, A.diff = function(M, D, L) {
4753
4753
  var G, P = w.p(D), U = O(M), W = (U.utcOffset() - this.utcOffset()) * n, Y = this - U, X = w.m(this, U);
4754
- return X = (G = {}, G[_] = X / 12, G[g] = X, G[p] = X / 3, G[c] = (Y - W) / 6048e5, G[u] = (Y - W) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[P] || Y, L ? X : w.a(X);
4754
+ return X = (G = {}, G[m] = X / 12, G[g] = X, G[p] = X / 3, G[c] = (Y - W) / 6048e5, G[u] = (Y - W) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[P] || Y, L ? X : w.a(X);
4755
4755
  }, A.daysInMonth = function() {
4756
4756
  return this.endOf(g).$D;
4757
4757
  }, A.$locale = function() {
4758
- return E[this.$L];
4758
+ return k[this.$L];
4759
4759
  }, A.locale = function(M, D) {
4760
4760
  if (!M)
4761
4761
  return this.$L;
@@ -4772,16 +4772,16 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4772
4772
  }, A.toString = function() {
4773
4773
  return this.$d.toUTCString();
4774
4774
  }, $;
4775
- }(), k = R.prototype;
4776
- return O.prototype = k, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", _], ["$D", b]].forEach(function($) {
4777
- k[$[1]] = function(A) {
4775
+ }(), I = R.prototype;
4776
+ return O.prototype = I, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", m], ["$D", b]].forEach(function($) {
4777
+ I[$[1]] = function(A) {
4778
4778
  return this.$g(A, $[0], $[1]);
4779
4779
  };
4780
4780
  }), O.extend = function($, A) {
4781
4781
  return $.$i || ($(A, R, O), $.$i = !0), O;
4782
- }, O.locale = F, O.isDayjs = K, O.unix = function($) {
4782
+ }, O.locale = F, O.isDayjs = x, O.unix = function($) {
4783
4783
  return O(1e3 * $);
4784
- }, O.en = E[V], O.Ls = E, O.p = {}, O;
4784
+ }, O.en = k[V], O.Ls = k, O.p = {}, O;
4785
4785
  });
4786
4786
  })(dayjs_min);
4787
4787
  const dayjs = dayjs_min.exports;
@@ -4821,32 +4821,32 @@ function filesize(e, {
4821
4821
  standard: c = EMPTY,
4822
4822
  output: g = STRING,
4823
4823
  fullform: p = !1,
4824
- fullforms: _ = [],
4824
+ fullforms: m = [],
4825
4825
  exponent: b = -1,
4826
- roundingMethod: m = ROUND,
4826
+ roundingMethod: _ = ROUND,
4827
4827
  precision: v = 0
4828
4828
  } = {}) {
4829
- let y = b, C = Number(e), T = [], I = 0, V = EMPTY;
4829
+ let y = b, C = Number(e), T = [], E = 0, V = EMPTY;
4830
4830
  n === -1 && c.length === 0 ? (n = 10, c = JEDEC) : n === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, n = c === IEC ? 2 : 10) : (n = n === 2 ? 2 : 10, c = n === 10 || c === JEDEC ? JEDEC : IEC);
4831
- const E = n === 10 ? 1e3 : 1024, K = p === !0, F = C < 0, O = Math[m];
4831
+ const k = n === 10 ? 1e3 : 1024, x = p === !0, F = C < 0, O = Math[_];
4832
4832
  if (typeof e != "bigint" && isNaN(e))
4833
4833
  throw new TypeError(INVALID_NUMBER);
4834
4834
  if (typeof O !== FUNCTION)
4835
4835
  throw new TypeError(INVALID_ROUND);
4836
- if (F && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(E)), y < 0 && (y = 0)), y > 8 && (v > 0 && (v += 8 - y), y = 8), g === EXPONENT)
4836
+ if (F && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(k)), y < 0 && (y = 0)), y > 8 && (v > 0 && (v += 8 - y), y = 8), g === EXPONENT)
4837
4837
  return y;
4838
4838
  if (C === 0)
4839
4839
  T[0] = 0, V = T[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
4840
4840
  else {
4841
- I = C / (n === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (I = I * 8, I >= E && y < 8 && (I = I / E, y++));
4841
+ E = C / (n === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (E = E * 8, E >= k && y < 8 && (E = E / k, y++));
4842
4842
  const w = Math.pow(10, y > 0 ? a : 0);
4843
- T[0] = O(I * w) / w, T[0] === E && y < 8 && b === -1 && (T[0] = 1, y++), V = T[1] = n === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
4843
+ T[0] = O(E * w) / w, T[0] === k && y < 8 && b === -1 && (T[0] = 1, y++), V = T[1] = n === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
4844
4844
  }
4845
4845
  if (F && (T[0] = -T[0]), v > 0 && (T[0] = T[0].toPrecision(v)), T[1] = u[T[1]] || T[1], o === !0 ? T[0] = T[0].toLocaleString() : o.length > 0 ? T[0] = T[0].toLocaleString(o, s) : i.length > 0 && (T[0] = T[0].toString().replace(PERIOD, i)), r && Number.isInteger(T[0]) === !1 && a > 0) {
4846
- const w = i || PERIOD, R = T[0].toString().split(w), k = R[1] || EMPTY, $ = k.length, A = a - $;
4847
- T[0] = `${R[0]}${w}${k.padEnd($ + A, ZERO)}`;
4846
+ const w = i || PERIOD, R = T[0].toString().split(w), I = R[1] || EMPTY, $ = I.length, A = a - $;
4847
+ T[0] = `${R[0]}${w}${I.padEnd($ + A, ZERO)}`;
4848
4848
  }
4849
- return K && (T[1] = _[y] ? _[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), g === ARRAY ? T : g === OBJECT ? {
4849
+ return x && (T[1] = m[y] ? m[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), g === ARRAY ? T : g === OBJECT ? {
4850
4850
  value: T[0],
4851
4851
  symbol: T[1],
4852
4852
  exponent: y,
@@ -5133,40 +5133,40 @@ function iconToSVG(e, t) {
5133
5133
  };
5134
5134
  let o = r.body;
5135
5135
  [r, n].forEach((b) => {
5136
- const m = [], v = b.hFlip, y = b.vFlip;
5136
+ const _ = [], v = b.hFlip, y = b.vFlip;
5137
5137
  let C = b.rotate;
5138
- v ? y ? C += 2 : (m.push(
5138
+ v ? y ? C += 2 : (_.push(
5139
5139
  "translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
5140
- ), m.push("scale(-1 1)"), a.top = a.left = 0) : y && (m.push(
5140
+ ), _.push("scale(-1 1)"), a.top = a.left = 0) : y && (_.push(
5141
5141
  "translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
5142
- ), m.push("scale(1 -1)"), a.top = a.left = 0);
5142
+ ), _.push("scale(1 -1)"), a.top = a.left = 0);
5143
5143
  let T;
5144
5144
  switch (C < 0 && (C -= Math.floor(C / 4) * 4), C = C % 4, C) {
5145
5145
  case 1:
5146
- T = a.height / 2 + a.top, m.unshift(
5146
+ T = a.height / 2 + a.top, _.unshift(
5147
5147
  "rotate(90 " + T.toString() + " " + T.toString() + ")"
5148
5148
  );
5149
5149
  break;
5150
5150
  case 2:
5151
- m.unshift(
5151
+ _.unshift(
5152
5152
  "rotate(180 " + (a.width / 2 + a.left).toString() + " " + (a.height / 2 + a.top).toString() + ")"
5153
5153
  );
5154
5154
  break;
5155
5155
  case 3:
5156
- T = a.width / 2 + a.left, m.unshift(
5156
+ T = a.width / 2 + a.left, _.unshift(
5157
5157
  "rotate(-90 " + T.toString() + " " + T.toString() + ")"
5158
5158
  );
5159
5159
  break;
5160
5160
  }
5161
- C % 2 === 1 && (a.left !== a.top && (T = a.left, a.left = a.top, a.top = T), a.width !== a.height && (T = a.width, a.width = a.height, a.height = T)), m.length && (o = '<g transform="' + m.join(" ") + '">' + o + "</g>");
5161
+ C % 2 === 1 && (a.left !== a.top && (T = a.left, a.left = a.top, a.top = T), a.width !== a.height && (T = a.width, a.width = a.height, a.height = T)), _.length && (o = '<g transform="' + _.join(" ") + '">' + o + "</g>");
5162
5162
  });
5163
5163
  const s = n.width, i = n.height, l = a.width, u = a.height;
5164
5164
  let c, g;
5165
5165
  s === null ? (g = i === null ? "1em" : i === "auto" ? u : i, c = calculateSize(g, l / u)) : (c = s === "auto" ? l : s, g = i === null ? calculateSize(c, u / l) : i === "auto" ? u : i);
5166
- const p = {}, _ = (b, m) => {
5167
- isUnsetKeyword(m) || (p[b] = m.toString());
5166
+ const p = {}, m = (b, _) => {
5167
+ isUnsetKeyword(_) || (p[b] = _.toString());
5168
5168
  };
5169
- return _("width", c), _("height", g), p.viewBox = a.left.toString() + " " + a.top.toString() + " " + l.toString() + " " + u.toString(), {
5169
+ return m("width", c), m("height", g), p.viewBox = a.left.toString() + " " + a.top.toString() + " " + l.toString() + " " + u.toString(), {
5170
5170
  attributes: p,
5171
5171
  body: o
5172
5172
  };
@@ -5438,27 +5438,27 @@ function sendQuery(e, t, r, n) {
5438
5438
  const a = e.resources.length, o = e.random ? Math.floor(Math.random() * a) : e.index;
5439
5439
  let s;
5440
5440
  if (e.random) {
5441
- let E = e.resources.slice(0);
5442
- for (s = []; E.length > 1; ) {
5443
- const K = Math.floor(Math.random() * E.length);
5444
- s.push(E[K]), E = E.slice(0, K).concat(E.slice(K + 1));
5441
+ let k = e.resources.slice(0);
5442
+ for (s = []; k.length > 1; ) {
5443
+ const x = Math.floor(Math.random() * k.length);
5444
+ s.push(k[x]), k = k.slice(0, x).concat(k.slice(x + 1));
5445
5445
  }
5446
- s = s.concat(E);
5446
+ s = s.concat(k);
5447
5447
  } else
5448
5448
  s = e.resources.slice(o).concat(e.resources.slice(0, o));
5449
5449
  const i = Date.now();
5450
- let l = "pending", u = 0, c, g = null, p = [], _ = [];
5451
- typeof n == "function" && _.push(n);
5450
+ let l = "pending", u = 0, c, g = null, p = [], m = [];
5451
+ typeof n == "function" && m.push(n);
5452
5452
  function b() {
5453
5453
  g && (clearTimeout(g), g = null);
5454
5454
  }
5455
- function m() {
5456
- l === "pending" && (l = "aborted"), b(), p.forEach((E) => {
5457
- E.status === "pending" && (E.status = "aborted");
5455
+ function _() {
5456
+ l === "pending" && (l = "aborted"), b(), p.forEach((k) => {
5457
+ k.status === "pending" && (k.status = "aborted");
5458
5458
  }), p = [];
5459
5459
  }
5460
- function v(E, K) {
5461
- K && (_ = []), typeof E == "function" && _.push(E);
5460
+ function v(k, x) {
5461
+ x && (m = []), typeof k == "function" && m.push(k);
5462
5462
  }
5463
5463
  function y() {
5464
5464
  return {
@@ -5468,22 +5468,22 @@ function sendQuery(e, t, r, n) {
5468
5468
  queriesSent: u,
5469
5469
  queriesPending: p.length,
5470
5470
  subscribe: v,
5471
- abort: m
5471
+ abort: _
5472
5472
  };
5473
5473
  }
5474
5474
  function C() {
5475
- l = "failed", _.forEach((E) => {
5476
- E(void 0, c);
5475
+ l = "failed", m.forEach((k) => {
5476
+ k(void 0, c);
5477
5477
  });
5478
5478
  }
5479
5479
  function T() {
5480
- p.forEach((E) => {
5481
- E.status === "pending" && (E.status = "aborted");
5480
+ p.forEach((k) => {
5481
+ k.status === "pending" && (k.status = "aborted");
5482
5482
  }), p = [];
5483
5483
  }
5484
- function I(E, K, F) {
5485
- const O = K !== "success";
5486
- switch (p = p.filter((w) => w !== E), l) {
5484
+ function E(k, x, F) {
5485
+ const O = x !== "success";
5486
+ switch (p = p.filter((w) => w !== k), l) {
5487
5487
  case "pending":
5488
5488
  break;
5489
5489
  case "failed":
@@ -5493,7 +5493,7 @@ function sendQuery(e, t, r, n) {
5493
5493
  default:
5494
5494
  return;
5495
5495
  }
5496
- if (K === "abort") {
5496
+ if (x === "abort") {
5497
5497
  c = F, C();
5498
5498
  return;
5499
5499
  }
@@ -5502,10 +5502,10 @@ function sendQuery(e, t, r, n) {
5502
5502
  return;
5503
5503
  }
5504
5504
  if (b(), T(), !e.random) {
5505
- const w = e.resources.indexOf(E.resource);
5505
+ const w = e.resources.indexOf(k.resource);
5506
5506
  w !== -1 && w !== e.index && (e.index = w);
5507
5507
  }
5508
- l = "completed", _.forEach((w) => {
5508
+ l = "completed", m.forEach((w) => {
5509
5509
  w(F);
5510
5510
  });
5511
5511
  }
@@ -5513,8 +5513,8 @@ function sendQuery(e, t, r, n) {
5513
5513
  if (l !== "pending")
5514
5514
  return;
5515
5515
  b();
5516
- const E = s.shift();
5517
- if (E === void 0) {
5516
+ const k = s.shift();
5517
+ if (k === void 0) {
5518
5518
  if (p.length) {
5519
5519
  g = setTimeout(() => {
5520
5520
  b(), l === "pending" && (T(), C());
@@ -5524,14 +5524,14 @@ function sendQuery(e, t, r, n) {
5524
5524
  C();
5525
5525
  return;
5526
5526
  }
5527
- const K = {
5527
+ const x = {
5528
5528
  status: "pending",
5529
- resource: E,
5529
+ resource: k,
5530
5530
  callback: (F, O) => {
5531
- I(K, F, O);
5531
+ E(x, F, O);
5532
5532
  }
5533
5533
  };
5534
- p.push(K), u++, g = setTimeout(V, e.rotate), r(E, t, K.callback);
5534
+ p.push(x), u++, g = setTimeout(V, e.rotate), r(k, t, x.callback);
5535
5535
  }
5536
5536
  return setTimeout(V), y;
5537
5537
  }
@@ -5798,8 +5798,8 @@ const loadIcons = (e, t) => {
5798
5798
  const g = a[u] || (a[u] = /* @__PURE__ */ Object.create(null));
5799
5799
  g[c] || (g[c] = []);
5800
5800
  }), n.pending.forEach((l) => {
5801
- const { provider: u, prefix: c, name: g } = l, p = getStorage(u, c), _ = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
5802
- _.has(g) || (_.add(g), a[u][c].push(g));
5801
+ const { provider: u, prefix: c, name: g } = l, p = getStorage(u, c), m = p.pendingIcons || (p.pendingIcons = /* @__PURE__ */ new Set());
5802
+ m.has(g) || (m.add(g), a[u][c].push(g));
5803
5803
  }), o.forEach((l) => {
5804
5804
  const { provider: u, prefix: c } = l;
5805
5805
  a[u][c].length && loadNewIcons(l, a[u][c]);
@@ -5907,10 +5907,10 @@ function fixSize(e) {
5907
5907
  }
5908
5908
  const render = (e, t) => {
5909
5909
  const r = mergeCustomisations(defaultExtendedIconCustomisations, t), n = { ...svgDefaults }, a = t.mode || "svg", o = {}, s = t.style, i = typeof s == "object" && !(s instanceof Array) ? s : {};
5910
- for (let m in t) {
5911
- const v = t[m];
5910
+ for (let _ in t) {
5911
+ const v = t[_];
5912
5912
  if (v !== void 0)
5913
- switch (m) {
5913
+ switch (_) {
5914
5914
  case "icon":
5915
5915
  case "style":
5916
5916
  case "onLoad":
@@ -5919,7 +5919,7 @@ const render = (e, t) => {
5919
5919
  case "inline":
5920
5920
  case "hFlip":
5921
5921
  case "vFlip":
5922
- r[m] = v === !0 || v === "true" || v === 1;
5922
+ r[_] = v === !0 || v === "true" || v === 1;
5923
5923
  break;
5924
5924
  case "flip":
5925
5925
  typeof v == "string" && flipFromString(r, v);
@@ -5928,15 +5928,15 @@ const render = (e, t) => {
5928
5928
  o.color = v;
5929
5929
  break;
5930
5930
  case "rotate":
5931
- typeof v == "string" ? r[m] = rotateFromString(v) : typeof v == "number" && (r[m] = v);
5931
+ typeof v == "string" ? r[_] = rotateFromString(v) : typeof v == "number" && (r[_] = v);
5932
5932
  break;
5933
5933
  case "ariaHidden":
5934
5934
  case "aria-hidden":
5935
5935
  v !== !0 && v !== "true" && delete n["aria-hidden"];
5936
5936
  break;
5937
5937
  default: {
5938
- const y = customisationAliases[m];
5939
- y ? (v === !0 || v === "true" || v === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = v);
5938
+ const y = customisationAliases[_];
5939
+ y ? (v === !0 || v === "true" || v === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[_] === void 0 && (n[_] = v);
5940
5940
  }
5941
5941
  }
5942
5942
  }
@@ -5946,10 +5946,10 @@ const render = (e, t) => {
5946
5946
  ...o,
5947
5947
  ...i
5948
5948
  }, Object.assign(n, u);
5949
- let m = 0, v = t.id;
5950
- return typeof v == "string" && (v = v.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, v ? () => v + "ID" + m++ : "iconifyVue"), h("svg", n);
5949
+ let _ = 0, v = t.id;
5950
+ return typeof v == "string" && (v = v.replace(/-/g, "_")), n.innerHTML = replaceIDs(l.body, v ? () => v + "ID" + _++ : "iconifyVue"), h("svg", n);
5951
5951
  }
5952
- const { body: c, width: g, height: p } = e, _ = a === "mask" || (a === "bg" ? !1 : c.indexOf("currentColor") !== -1), b = iconToHTML(c, {
5952
+ const { body: c, width: g, height: p } = e, m = a === "mask" || (a === "bg" ? !1 : c.indexOf("currentColor") !== -1), b = iconToHTML(c, {
5953
5953
  ...u,
5954
5954
  width: g + "",
5955
5955
  height: p + ""
@@ -5960,7 +5960,7 @@ const render = (e, t) => {
5960
5960
  width: fixSize(u.width),
5961
5961
  height: fixSize(u.height),
5962
5962
  ...commonProps,
5963
- ..._ ? monotoneProps : coloredProps,
5963
+ ...m ? monotoneProps : coloredProps,
5964
5964
  ...i
5965
5965
  }, h("span", n);
5966
5966
  };
@@ -6126,8 +6126,8 @@ function createOptionsStore(e, t, r, n) {
6126
6126
  const c = process.env.NODE_ENV !== "production" && n ? toRefs(ref(a ? a() : {}).value) : toRefs(r.state.value[e]);
6127
6127
  return assign$1(c, o, Object.keys(s || {}).reduce((g, p) => (g[p] = markRaw(computed(() => {
6128
6128
  setActivePinia(r);
6129
- const _ = r._s.get(e);
6130
- return s[p].call(_, _);
6129
+ const m = r._s.get(e);
6130
+ return s[p].call(m, m);
6131
6131
  })), g), {}));
6132
6132
  }
6133
6133
  return l = createSetupStore(e, u, t, r, n), l.$reset = function() {
@@ -6146,23 +6146,23 @@ function createSetupStore(e, t, r = {}, n, a) {
6146
6146
  deep: !0
6147
6147
  };
6148
6148
  process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (F) => {
6149
- u ? _ = F : u == !1 && !E._hotUpdating && (Array.isArray(_) ? _.push(F) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6149
+ u ? m = F : u == !1 && !k._hotUpdating && (Array.isArray(m) ? m.push(F) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
6150
6150
  });
6151
- let u, c, g = markRaw([]), p = markRaw([]), _;
6151
+ let u, c, g = markRaw([]), p = markRaw([]), m;
6152
6152
  const b = n.state.value[e];
6153
6153
  !s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
6154
- const m = ref({});
6154
+ const _ = ref({});
6155
6155
  function v(F) {
6156
6156
  let O;
6157
- u = c = !1, process.env.NODE_ENV !== "production" && (_ = []), typeof F == "function" ? (F(n.state.value[e]), O = {
6157
+ u = c = !1, process.env.NODE_ENV !== "production" && (m = []), typeof F == "function" ? (F(n.state.value[e]), O = {
6158
6158
  type: MutationType.patchFunction,
6159
6159
  storeId: e,
6160
- events: _
6160
+ events: m
6161
6161
  }) : (mergeReactiveObjects(n.state.value[e], F), O = {
6162
6162
  type: MutationType.patchObject,
6163
6163
  payload: F,
6164
6164
  storeId: e,
6165
- events: _
6165
+ events: m
6166
6166
  }), nextTick().then(() => {
6167
6167
  u = !0;
6168
6168
  }), c = !0, triggerSubscriptions(g, O, n.state.value[e]);
@@ -6176,34 +6176,34 @@ function createSetupStore(e, t, r = {}, n, a) {
6176
6176
  function T(F, O) {
6177
6177
  return function() {
6178
6178
  setActivePinia(n);
6179
- const w = Array.from(arguments), R = [], k = [];
6179
+ const w = Array.from(arguments), R = [], I = [];
6180
6180
  function $(D) {
6181
6181
  R.push(D);
6182
6182
  }
6183
6183
  function A(D) {
6184
- k.push(D);
6184
+ I.push(D);
6185
6185
  }
6186
6186
  triggerSubscriptions(p, {
6187
6187
  args: w,
6188
6188
  name: F,
6189
- store: E,
6189
+ store: k,
6190
6190
  after: $,
6191
6191
  onError: A
6192
6192
  });
6193
6193
  let M;
6194
6194
  try {
6195
- M = O.apply(this && this.$id === e ? this : E, w);
6195
+ M = O.apply(this && this.$id === e ? this : k, w);
6196
6196
  } catch (D) {
6197
- throw triggerSubscriptions(k, D), D;
6197
+ throw triggerSubscriptions(I, D), D;
6198
6198
  }
6199
- return M instanceof Promise ? M.then((D) => (triggerSubscriptions(R, D), D)).catch((D) => (triggerSubscriptions(k, D), Promise.reject(D))) : (triggerSubscriptions(R, M), M);
6199
+ return M instanceof Promise ? M.then((D) => (triggerSubscriptions(R, D), D)).catch((D) => (triggerSubscriptions(I, D), Promise.reject(D))) : (triggerSubscriptions(R, M), M);
6200
6200
  };
6201
6201
  }
6202
- const I = /* @__PURE__ */ markRaw({
6202
+ const E = /* @__PURE__ */ markRaw({
6203
6203
  actions: {},
6204
6204
  getters: {},
6205
6205
  state: [],
6206
- hotState: m
6206
+ hotState: _
6207
6207
  }), V = {
6208
6208
  _p: n,
6209
6209
  $id: e,
@@ -6211,37 +6211,37 @@ function createSetupStore(e, t, r = {}, n, a) {
6211
6211
  $patch: v,
6212
6212
  $reset: y,
6213
6213
  $subscribe(F, O = {}) {
6214
- const w = addSubscription(g, F, O.detached, () => R()), R = o.run(() => watch(() => n.state.value[e], (k) => {
6214
+ const w = addSubscription(g, F, O.detached, () => R()), R = o.run(() => watch(() => n.state.value[e], (I) => {
6215
6215
  (O.flush === "sync" ? c : u) && F({
6216
6216
  storeId: e,
6217
6217
  type: MutationType.direct,
6218
- events: _
6219
- }, k);
6218
+ events: m
6219
+ }, I);
6220
6220
  }, assign$1({}, l, O)));
6221
6221
  return w;
6222
6222
  },
6223
6223
  $dispose: C
6224
- }, E = reactive(assign$1(
6224
+ }, k = reactive(assign$1(
6225
6225
  process.env.NODE_ENV !== "production" && IS_CLIENT ? {
6226
6226
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
6227
- _hmrPayload: I
6227
+ _hmrPayload: E
6228
6228
  } : {},
6229
6229
  V
6230
6230
  ));
6231
- n._s.set(e, E);
6232
- const K = n._e.run(() => (o = effectScope(), o.run(() => t())));
6233
- for (const F in K) {
6234
- const O = K[F];
6231
+ n._s.set(e, k);
6232
+ const x = n._e.run(() => (o = effectScope(), o.run(() => t())));
6233
+ for (const F in x) {
6234
+ const O = x[F];
6235
6235
  if (isRef(O) && !isComputed(O) || isReactive(O))
6236
- process.env.NODE_ENV !== "production" && a ? set(m.value, F, toRef(K, F)) : s || (b && shouldHydrate(O) && (isRef(O) ? O.value = b[F] : mergeReactiveObjects(O, b[F])), n.state.value[e][F] = O), process.env.NODE_ENV !== "production" && I.state.push(F);
6236
+ process.env.NODE_ENV !== "production" && a ? set(_.value, F, toRef(x, F)) : s || (b && shouldHydrate(O) && (isRef(O) ? O.value = b[F] : mergeReactiveObjects(O, b[F])), n.state.value[e][F] = O), process.env.NODE_ENV !== "production" && E.state.push(F);
6237
6237
  else if (typeof O == "function") {
6238
6238
  const w = process.env.NODE_ENV !== "production" && a ? O : T(F, O);
6239
- K[F] = w, process.env.NODE_ENV !== "production" && (I.actions[F] = O), i.actions[F] = O;
6239
+ x[F] = w, process.env.NODE_ENV !== "production" && (E.actions[F] = O), i.actions[F] = O;
6240
6240
  } else
6241
- process.env.NODE_ENV !== "production" && isComputed(O) && (I.getters[F] = s ? r.getters[F] : O, IS_CLIENT && (K._getters || (K._getters = markRaw([]))).push(F));
6241
+ process.env.NODE_ENV !== "production" && isComputed(O) && (E.getters[F] = s ? r.getters[F] : O, IS_CLIENT && (x._getters || (x._getters = markRaw([]))).push(F));
6242
6242
  }
6243
- if (assign$1(E, K), assign$1(toRaw(E), K), Object.defineProperty(E, "$state", {
6244
- get: () => process.env.NODE_ENV !== "production" && a ? m.value : n.state.value[e],
6243
+ if (assign$1(k, x), assign$1(toRaw(k), x), Object.defineProperty(k, "$state", {
6244
+ get: () => process.env.NODE_ENV !== "production" && a ? _.value : n.state.value[e],
6245
6245
  set: (F) => {
6246
6246
  if (process.env.NODE_ENV !== "production" && a)
6247
6247
  throw new Error("cannot set hotState");
@@ -6250,31 +6250,31 @@ function createSetupStore(e, t, r = {}, n, a) {
6250
6250
  });
6251
6251
  }
6252
6252
  }), process.env.NODE_ENV !== "production") {
6253
- E._hotUpdate = markRaw((O) => {
6254
- E._hotUpdating = !0, O._hmrPayload.state.forEach((w) => {
6255
- if (w in E.$state) {
6256
- const R = O.$state[w], k = E.$state[w];
6257
- typeof R == "object" && isPlainObject(R) && isPlainObject(k) ? patchObject(R, k) : O.$state[w] = k;
6253
+ k._hotUpdate = markRaw((O) => {
6254
+ k._hotUpdating = !0, O._hmrPayload.state.forEach((w) => {
6255
+ if (w in k.$state) {
6256
+ const R = O.$state[w], I = k.$state[w];
6257
+ typeof R == "object" && isPlainObject(R) && isPlainObject(I) ? patchObject(R, I) : O.$state[w] = I;
6258
6258
  }
6259
- set(E, w, toRef(O.$state, w));
6260
- }), Object.keys(E.$state).forEach((w) => {
6261
- w in O.$state || del(E, w);
6259
+ set(k, w, toRef(O.$state, w));
6260
+ }), Object.keys(k.$state).forEach((w) => {
6261
+ w in O.$state || del(k, w);
6262
6262
  }), u = !1, c = !1, n.state.value[e] = toRef(O._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
6263
6263
  u = !0;
6264
6264
  });
6265
6265
  for (const w in O._hmrPayload.actions) {
6266
6266
  const R = O[w];
6267
- set(E, w, T(w, R));
6267
+ set(k, w, T(w, R));
6268
6268
  }
6269
6269
  for (const w in O._hmrPayload.getters) {
6270
- const R = O._hmrPayload.getters[w], k = s ? computed(() => (setActivePinia(n), R.call(E, E))) : R;
6271
- set(E, w, k);
6270
+ const R = O._hmrPayload.getters[w], I = s ? computed(() => (setActivePinia(n), R.call(k, k))) : R;
6271
+ set(k, w, I);
6272
6272
  }
6273
- Object.keys(E._hmrPayload.getters).forEach((w) => {
6274
- w in O._hmrPayload.getters || del(E, w);
6275
- }), Object.keys(E._hmrPayload.actions).forEach((w) => {
6276
- w in O._hmrPayload.actions || del(E, w);
6277
- }), E._hmrPayload = O._hmrPayload, E._getters = O._getters, E._hotUpdating = !1;
6273
+ Object.keys(k._hmrPayload.getters).forEach((w) => {
6274
+ w in O._hmrPayload.getters || del(k, w);
6275
+ }), Object.keys(k._hmrPayload.actions).forEach((w) => {
6276
+ w in O._hmrPayload.actions || del(k, w);
6277
+ }), k._hmrPayload = O._hmrPayload, k._getters = O._getters, k._hotUpdating = !1;
6278
6278
  });
6279
6279
  const F = {
6280
6280
  writable: !0,
@@ -6282,8 +6282,8 @@ function createSetupStore(e, t, r = {}, n, a) {
6282
6282
  enumerable: !1
6283
6283
  };
6284
6284
  IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((O) => {
6285
- Object.defineProperty(E, O, {
6286
- value: E[O],
6285
+ Object.defineProperty(k, O, {
6286
+ value: k[O],
6287
6287
  ...F
6288
6288
  });
6289
6289
  });
@@ -6291,22 +6291,22 @@ function createSetupStore(e, t, r = {}, n, a) {
6291
6291
  return n._p.forEach((F) => {
6292
6292
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
6293
6293
  const O = o.run(() => F({
6294
- store: E,
6294
+ store: k,
6295
6295
  app: n._a,
6296
6296
  pinia: n,
6297
6297
  options: i
6298
6298
  }));
6299
- Object.keys(O || {}).forEach((w) => E._customProperties.add(w)), assign$1(E, O);
6299
+ Object.keys(O || {}).forEach((w) => k._customProperties.add(w)), assign$1(k, O);
6300
6300
  } else
6301
- assign$1(E, o.run(() => F({
6302
- store: E,
6301
+ assign$1(k, o.run(() => F({
6302
+ store: k,
6303
6303
  app: n._a,
6304
6304
  pinia: n,
6305
6305
  options: i
6306
6306
  })));
6307
- }), process.env.NODE_ENV !== "production" && E.$state && typeof E.$state == "object" && typeof E.$state.constructor == "function" && !E.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
6307
+ }), process.env.NODE_ENV !== "production" && k.$state && typeof k.$state == "object" && typeof k.$state.constructor == "function" && !k.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
6308
6308
  state: () => new MyClass()
6309
- Found in store "${E.$id}".`), b && s && r.hydrate && r.hydrate(E.$state, b), u = !0, c = !0, E;
6309
+ Found in store "${k.$id}".`), b && s && r.hydrate && r.hydrate(k.$state, b), u = !0, c = !0, k;
6310
6310
  }
6311
6311
  function defineStore(e, t, r) {
6312
6312
  let n, a;
@@ -6339,12 +6339,16 @@ const useKgStore = (e) => (store$7 || (store$7 = defineStore("Kg", {
6339
6339
  locale: null,
6340
6340
  tFunction: null,
6341
6341
  pFunction: null,
6342
+ router: null,
6342
6343
  option: {}
6343
6344
  }),
6344
6345
  getters: {
6345
6346
  getLocale() {
6346
6347
  return this.locale;
6347
6348
  },
6349
+ getRouter() {
6350
+ return this.router;
6351
+ },
6348
6352
  getOption() {
6349
6353
  return this.option;
6350
6354
  }
@@ -6353,6 +6357,9 @@ const useKgStore = (e) => (store$7 || (store$7 = defineStore("Kg", {
6353
6357
  setLocale(t) {
6354
6358
  this.locale = t;
6355
6359
  },
6360
+ setRouter(t) {
6361
+ this.router = t;
6362
+ },
6356
6363
  setT(t) {
6357
6364
  if (!this.locale) {
6358
6365
  Logger.error("\u5F53\u524D\u8BED\u8A00\u4E3A\u7A7A.");
@@ -6381,13 +6388,14 @@ const useKgStore = (e) => (store$7 || (store$7 = defineStore("Kg", {
6381
6388
  }
6382
6389
  }).bind(null, e != null ? e : pinia())), store$7);
6383
6390
  function useKg(e) {
6384
- const t = useKgStore(e)(), r = computed(() => unref(t.getLocale || "zh_CN")), n = computed(() => t.getOption), a = t.t, o = t.p;
6391
+ const t = useKgStore(e)(), r = computed(() => unref(t.getLocale || "zh_CN")), n = computed(() => t.getRouter), a = computed(() => t.getOption), o = t.t, s = t.p;
6385
6392
  return {
6386
6393
  store: t,
6387
6394
  locale: r,
6388
- option: n,
6389
- t: a,
6390
- p: o
6395
+ router: n,
6396
+ option: a,
6397
+ t: o,
6398
+ p: s
6391
6399
  };
6392
6400
  }
6393
6401
  Spin.setDefaultIndicator({
@@ -6415,7 +6423,7 @@ function setup(e) {
6415
6423
  throw Logger.error("\u7F3A\u5C11\u5FC5\u8981\u7684\u521D\u59CB\u5316\u53C2\u6570.", { options: e }), new Error("[@kengic/vue] \u7F3A\u5C11\u5FC5\u8981\u7684\u521D\u59CB\u5316\u53C2\u6570.");
6416
6424
  setPinia(e.pinia);
6417
6425
  const t = useKg();
6418
- t.store.setLocale(e.locale), t.store.setT(e.i18n), t.store.setP(e.pFunction), t.store.setOption((r = e.option) != null ? r : {});
6426
+ t.store.setLocale(e.locale), t.store.setRouter(e.router), t.store.setT(e.i18n), t.store.setP(e.pFunction), t.store.setOption((r = e.option) != null ? r : {});
6419
6427
  }
6420
6428
  class Logger {
6421
6429
  static error(t, r = {}, n = !0) {
@@ -6493,31 +6501,37 @@ class KgUtil {
6493
6501
  l.setAttribute("style", "display:none"), l.setAttribute("href", i), l.setAttribute("download", r), document.body.appendChild(l), l.click(), document.body.removeChild(l), URL.revokeObjectURL(i);
6494
6502
  }
6495
6503
  static parseParams(t, r, n) {
6496
- return !t || !isObjectLike(t) || Object.keys(t).forEach((a) => {
6497
- const o = t[a];
6504
+ let a = cloneDeep(toRaw(unref(t)));
6505
+ return !a || !isObjectLike(a) || Object.keys(a).forEach((o) => {
6506
+ const s = a[o];
6498
6507
  switch (!0) {
6499
- case (!!r && !!n && n.isDayjs(o)):
6500
- t[a] = this.parseParamFromDayJS(a, o, r);
6508
+ case (!!r && !!n && n.isDayjs(s)):
6509
+ a[o] = this.parseParamFromDayJS(o, s, r);
6501
6510
  break;
6502
- case isObjectLike(o):
6503
- t[a] = this.parseParams(o);
6511
+ case isObjectLike(s):
6512
+ a[o] = this.parseParams(s);
6504
6513
  break;
6505
- case typeof o == "string":
6506
- t[a] = this.parseParamFromString(o);
6514
+ case typeof s == "string":
6515
+ a[o] = this.parseParamFromString(s);
6507
6516
  break;
6508
6517
  default:
6509
- t[a] = o;
6518
+ a[o] = s;
6510
6519
  break;
6511
6520
  }
6512
- }), t;
6521
+ }), a;
6513
6522
  }
6514
6523
  static parseParamFromString(t) {
6515
- var n, a;
6516
- const r = /(.*)?({(.*)?})(.*)?/.exec(t);
6517
- if (r) {
6518
- switch (r[2]) {
6524
+ var a, o, s, i, l;
6525
+ const r = useKg(), n = /(.*)?({(.*)?})(.*)?/.exec(t);
6526
+ if (n) {
6527
+ const u = n[2], c = n[2].slice(1, -1);
6528
+ switch (u) {
6519
6529
  case "{WAREHOUSE}":
6520
- return t.replace("{WAREHOUSE}", (a = (n = useKgWarehouse().warehouse.value) == null ? void 0 : n.whId) != null ? a : "");
6530
+ return t.replace("{WAREHOUSE}", (o = (a = useKgWarehouse().warehouse.value) == null ? void 0 : a.whId) != null ? o : "");
6531
+ default:
6532
+ if (c.endsWith(":query"))
6533
+ return (l = (i = (s = r.router.value) == null ? void 0 : s.currentRoute) == null ? void 0 : i.query[c.slice(0, -6)]) != null ? l : "";
6534
+ break;
6521
6535
  }
6522
6536
  return t;
6523
6537
  } else
@@ -6754,18 +6768,18 @@ const getProps$w = () => ({
6754
6768
  break;
6755
6769
  }
6756
6770
  };
6757
- function _(C) {
6771
+ function m(C) {
6758
6772
  p(C);
6759
6773
  }
6760
6774
  function b(C) {
6761
6775
  p(C), g();
6762
6776
  }
6763
- function m(C) {
6764
- C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX, s = C.pageY, n = e.kgWidth, a = e.kgHeight, i = v(document.documentElement, "mousemove", _), l = v(document.documentElement, "mouseup", b));
6777
+ function _(C) {
6778
+ C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX, s = C.pageY, n = e.kgWidth, a = e.kgHeight, i = v(document.documentElement, "mousemove", m), l = v(document.documentElement, "mouseup", b));
6765
6779
  }
6766
- function v(C, T, I) {
6767
- return C.addEventListener(T, I), {
6768
- remove: () => C.removeEventListener(T, I)
6780
+ function v(C, T, E) {
6781
+ return C.addEventListener(T, E), {
6782
+ remove: () => C.removeEventListener(T, E)
6769
6783
  };
6770
6784
  }
6771
6785
  function y(C) {
@@ -6779,7 +6793,7 @@ const getProps$w = () => ({
6779
6793
  }, [createVNode("div", {
6780
6794
  class: "kg-resizable-handle",
6781
6795
  onClick: y,
6782
- onMousedown: m
6796
+ onMousedown: _
6783
6797
  }, [createVNode("div", {
6784
6798
  class: "kg-resizable-handle-line"
6785
6799
  }, null)]), (C = r.default) == null ? void 0 : C.call(r)]);
@@ -6799,71 +6813,86 @@ class KgVarUtil {
6799
6813
  }
6800
6814
  return r;
6801
6815
  }
6802
- static transformValueByControlType(t, r, n) {
6803
- if (isNil(n))
6816
+ static transformValueByControlType(t, r, n, a) {
6817
+ if (isNil(a))
6804
6818
  return;
6805
- const a = useKgVar(t), o = a.store.getVariableConfig(t, r);
6806
- if (!o)
6807
- return n;
6808
- switch (o.ctrl_typ) {
6819
+ const o = useKgVar(t), s = o.store.getVariableConfig(t, r);
6820
+ if (!s)
6821
+ return a;
6822
+ switch (s.ctrl_typ) {
6809
6823
  case KG_FORM_ITEM_TYPE.INPUT:
6810
6824
  case KG_FORM_ITEM_TYPE.INPUT_PASSWORD:
6811
6825
  case KG_FORM_ITEM_TYPE.INPUT_AREA:
6812
- return String(n);
6826
+ return String(a);
6813
6827
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER: {
6814
- const s = Number(n);
6815
- if (Number.isNaN(s)) {
6828
+ const i = Number(a);
6829
+ if (Number.isNaN(i)) {
6816
6830
  Logger.error("| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | INPUT_NUMBER \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.", {
6817
6831
  frm_id: t,
6818
6832
  var_nam: r,
6819
- value: n
6833
+ value: a
6820
6834
  });
6821
6835
  return;
6822
6836
  }
6823
- return s;
6837
+ return i;
6824
6838
  }
6825
6839
  case KG_FORM_ITEM_TYPE.CHECKBOX:
6826
6840
  case KG_FORM_ITEM_TYPE.SWITCH: {
6827
- const s = Number(n);
6828
- if (Number.isNaN(s)) {
6829
- Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${o.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
6841
+ const i = Number(a);
6842
+ if (Number.isNaN(i)) {
6843
+ Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${s.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
6830
6844
  frm_id: t,
6831
6845
  var_nam: r,
6832
- value: n
6846
+ value: a
6833
6847
  });
6834
6848
  return;
6835
6849
  }
6836
- if (![0, 1].includes(s)) {
6837
- Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${o.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A 0 \u6216 1.`, {
6850
+ if (![0, 1].includes(i)) {
6851
+ Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${s.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A 0 \u6216 1.`, {
6838
6852
  frm_id: t,
6839
6853
  var_nam: r,
6840
- value: n
6854
+ value: a
6841
6855
  });
6842
6856
  return;
6843
6857
  }
6844
- return s;
6858
+ return i;
6859
+ }
6860
+ case KG_FORM_ITEM_TYPE.DATE_DATE:
6861
+ case KG_FORM_ITEM_TYPE.DATE_DATETIME:
6862
+ case KG_FORM_ITEM_TYPE.DATE_WEEK:
6863
+ case KG_FORM_ITEM_TYPE.DATE_MONTH:
6864
+ case KG_FORM_ITEM_TYPE.DATE_YEAR: {
6865
+ const i = n(a);
6866
+ if (i != null && i.isValid())
6867
+ return i;
6868
+ Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${s.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u65E5\u671F\u7C7B\u578B.`, {
6869
+ frm_id: t,
6870
+ var_nam: r,
6871
+ value: a
6872
+ });
6873
+ return;
6845
6874
  }
6846
6875
  case KG_FORM_ITEM_TYPE.SELECT: {
6847
- const s = a.store.getVarPossibility(t, r);
6848
- switch (s == null ? void 0 : s.val_data_type) {
6876
+ const i = o.store.getVarPossibility(t, r);
6877
+ switch (i == null ? void 0 : i.val_data_type) {
6849
6878
  case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
6850
- const i = Number(n);
6851
- if (Number.isNaN(i)) {
6852
- Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${o.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
6879
+ const l = Number(a);
6880
+ if (Number.isNaN(l)) {
6881
+ Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${s.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
6853
6882
  frm_id: t,
6854
6883
  var_nam: r,
6855
- value: n,
6856
- VarPossibility: s
6884
+ value: a,
6885
+ VarPossibility: i
6857
6886
  });
6858
6887
  return;
6859
6888
  }
6860
- return i;
6889
+ return l;
6861
6890
  }
6862
6891
  case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
6863
- return Boolean(n);
6892
+ return Boolean(a);
6864
6893
  case KG_POSSIBILITY_DATA_TYPE.STRING:
6865
6894
  default:
6866
- return String(n);
6895
+ return String(a);
6867
6896
  }
6868
6897
  }
6869
6898
  }
@@ -6928,35 +6957,35 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
6928
6957
  var b;
6929
6958
  return ((b = u == null ? void 0 : u.value) == null ? void 0 : b.mult_flg) === 1;
6930
6959
  }), g = computed(() => {
6931
- var b, m;
6932
- return (m = (b = u == null ? void 0 : u.value) == null ? void 0 : b.ret_fld) != null ? m : "";
6960
+ var b, _;
6961
+ return (_ = (b = u == null ? void 0 : u.value) == null ? void 0 : b.ret_fld) != null ? _ : "";
6933
6962
  });
6934
- l.onRowDoubleClick(() => _());
6963
+ l.onRowDoubleClick(() => m());
6935
6964
  function p() {
6936
6965
  r("update:visible", !1);
6937
6966
  }
6938
- function _() {
6939
- var b, m, v, y, C, T, I;
6967
+ function m() {
6968
+ var b, _, v, y, C, T, E;
6940
6969
  if (c.value) {
6941
- const V = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], E = (v = V.map((K) => K[g.value])) != null ? v : [];
6942
- (!i || i(E, V)) && (r("kgOk", E, V), r("update:visible", !1));
6970
+ const V = (_ = (b = l.selectedRows) == null ? void 0 : b.value) != null ? _ : [], k = (v = V.map((x) => x[g.value])) != null ? v : [];
6971
+ (!i || i(k, V)) && (r("kgOk", k, V), r("update:visible", !1));
6943
6972
  } else {
6944
- const V = (T = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? T : null, E = (I = V == null ? void 0 : V[g.value]) != null ? I : "";
6945
- (!i || i(E, V)) && (r("kgOk", E, V), r("update:visible", !1));
6973
+ const V = (T = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? T : null, k = (E = V == null ? void 0 : V[g.value]) != null ? E : "";
6974
+ (!i || i(k, V)) && (r("kgOk", k, V), r("update:visible", !1));
6946
6975
  }
6947
6976
  }
6948
6977
  return () => {
6949
- var b, m;
6978
+ var b, _;
6950
6979
  return createVNode(KgModal, {
6951
6980
  visible: e.visible,
6952
6981
  title: a.t(o).value,
6953
6982
  destroyOnClose: !0,
6954
6983
  okButtonProps: {
6955
- disabled: ((m = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? m : 0) === 0
6984
+ disabled: ((_ = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? _ : 0) === 0
6956
6985
  },
6957
6986
  wrapClassName: "kg-form-item-addon-lookup-modal",
6958
6987
  onCancel: p,
6959
- onOk: _
6988
+ onOk: m
6960
6989
  }, {
6961
6990
  default: () => [createVNode(KgVar, null, null)]
6962
6991
  });
@@ -7122,13 +7151,13 @@ const KgFormItemSelect = defineComponent({
7122
7151
  const n = useKgVar(), a = inject(DI_FORM_MODEL, computed(() => ({}))), {
7123
7152
  transformDatas: o
7124
7153
  } = _useServices$1(e), s = ref([]), i = computed(() => n.store.getVarPossibility(n.formID, e.kgVarName)), l = computed(() => {
7125
- var _;
7126
- let p = KgVarUtil.parseCommandParameter((_ = i.value) == null ? void 0 : _.cmd_prm);
7154
+ var m;
7155
+ let p = KgVarUtil.parseCommandParameter((m = i.value) == null ? void 0 : m.cmd_prm);
7127
7156
  return p = mapValues(p, (b) => {
7128
7157
  if (typeof b == "string" && b.startsWith("{") && b.endsWith("}")) {
7129
- const m = b.slice(1, -1);
7130
- if (a.value && m in a.value)
7131
- return a.value[m];
7158
+ const _ = b.slice(1, -1);
7159
+ if (a.value && _ in a.value)
7160
+ return a.value[_];
7132
7161
  }
7133
7162
  return b;
7134
7163
  }), p;
@@ -7140,15 +7169,15 @@ const KgFormItemSelect = defineComponent({
7140
7169
  immediate: !0
7141
7170
  });
7142
7171
  async function u() {
7143
- var y, C, T, I, V, E, K, F;
7144
- const p = (y = i.value) == null ? void 0 : y.cmd, _ = (T = (C = i.value) == null ? void 0 : C.cmd_method) != null ? T : "GET", b = (V = (I = i.value) == null ? void 0 : I.val_clm) != null ? V : "", m = (K = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? K : "";
7145
- if (!p || !b || !m) {
7172
+ var y, C, T, E, V, k, x, F;
7173
+ const p = (y = i.value) == null ? void 0 : y.cmd, m = (T = (C = i.value) == null ? void 0 : C.cmd_method) != null ? T : "GET", b = (V = (E = i.value) == null ? void 0 : E.val_clm) != null ? V : "", _ = (x = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? x : "";
7174
+ if (!p || !b || !_) {
7146
7175
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
7147
7176
  frm_id: n.formID,
7148
7177
  var_nam: e.kgVarName,
7149
7178
  cmd: p,
7150
7179
  val_clm: b,
7151
- lbl_clm: m
7180
+ lbl_clm: _
7152
7181
  });
7153
7182
  return;
7154
7183
  }
@@ -7156,7 +7185,7 @@ const KgFormItemSelect = defineComponent({
7156
7185
  try {
7157
7186
  v = await ((F = httpClient()) == null ? void 0 : F.request({
7158
7187
  url: p,
7159
- method: _,
7188
+ method: m,
7160
7189
  params: l.value
7161
7190
  }));
7162
7191
  } catch {
@@ -7174,12 +7203,12 @@ const KgFormItemSelect = defineComponent({
7174
7203
  }
7175
7204
  if (s.value.length > 0) {
7176
7205
  const O = s.value[0];
7177
- (!(b in O) || !(m in O)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7206
+ (!(b in O) || !(_ in O)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
7178
7207
  frm_id: n.formID,
7179
7208
  var_nam: e.kgVarName,
7180
7209
  cmd: p,
7181
7210
  val_clm: b,
7182
- lbl_clm: m,
7211
+ lbl_clm: _,
7183
7212
  \u6240\u6709\u5217: Object.keys(O)
7184
7213
  });
7185
7214
  }
@@ -7187,17 +7216,17 @@ const KgFormItemSelect = defineComponent({
7187
7216
  }
7188
7217
  function c(p) {
7189
7218
  var b;
7190
- const _ = s.value.find((m) => {
7219
+ const m = s.value.find((_) => {
7191
7220
  var v, y;
7192
- return m[(y = (v = i.value) == null ? void 0 : v.val_clm) != null ? y : ""] === p;
7221
+ return _[(y = (v = i.value) == null ? void 0 : v.val_clm) != null ? y : ""] === p;
7193
7222
  });
7194
- r("kgSelectChange", (b = toRaw(_)) != null ? b : null);
7223
+ r("kgSelectChange", (b = toRaw(m)) != null ? b : null);
7195
7224
  }
7196
7225
  function g(p) {
7197
7226
  r("update:value", p), r("kgChange", p);
7198
7227
  }
7199
7228
  return () => {
7200
- var p, _, b;
7229
+ var p, m, b;
7201
7230
  return createVNode(Select, {
7202
7231
  value: e.value,
7203
7232
  "onUpdate:value": g,
@@ -7210,18 +7239,18 @@ const KgFormItemSelect = defineComponent({
7210
7239
  dropdownClassName: "kg-form-item-select-dropdown",
7211
7240
  style: "width: 100%",
7212
7241
  "kg-cmd": (p = i.value) == null ? void 0 : p.cmd,
7213
- "kg-val-clm": (_ = i.value) == null ? void 0 : _.val_clm,
7242
+ "kg-val-clm": (m = i.value) == null ? void 0 : m.val_clm,
7214
7243
  "kg-lbl-clm": (b = i.value) == null ? void 0 : b.lbl_clm
7215
7244
  }, {
7216
- default: () => s.value.map((m) => {
7245
+ default: () => s.value.map((_) => {
7217
7246
  var v, y, C, T;
7218
7247
  return createVNode(Select.Option, {
7219
- "kg-value": m[(y = (v = i.value) == null ? void 0 : v.val_clm) != null ? y : ""],
7220
- value: m[(T = (C = i.value) == null ? void 0 : C.val_clm) != null ? T : ""]
7248
+ "kg-value": _[(y = (v = i.value) == null ? void 0 : v.val_clm) != null ? y : ""],
7249
+ value: _[(T = (C = i.value) == null ? void 0 : C.val_clm) != null ? T : ""]
7221
7250
  }, {
7222
7251
  default: () => {
7223
- var I, V;
7224
- return [m[(V = (I = i.value) == null ? void 0 : I.lbl_clm) != null ? V : ""]];
7252
+ var E, V;
7253
+ return [_[(V = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? V : ""]];
7225
7254
  }
7226
7255
  });
7227
7256
  }),
@@ -7254,7 +7283,7 @@ function _useRules(e) {
7254
7283
  const t = useKg(), r = useKgVar(), n = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), a = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), o = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName));
7255
7284
  return {
7256
7285
  rules: computed(() => {
7257
- var l, u, c, g, p, _, b, m;
7286
+ var l, u, c, g, p, m, b, _;
7258
7287
  let i = [];
7259
7288
  switch (e.kgContext) {
7260
7289
  case KG_FORM_CONTEXT.SEARCH:
@@ -7292,10 +7321,10 @@ function _useRules(e) {
7292
7321
  }
7293
7322
  break;
7294
7323
  }
7295
- switch ((_ = a.value) == null ? void 0 : _.data_type) {
7324
+ switch ((m = a.value) == null ? void 0 : m.data_type) {
7296
7325
  case KG_VAR_INPUT__DATA_TYPE.NUMBER:
7297
7326
  const v = (b = a.value) == null ? void 0 : b.min;
7298
- isNil(v) || (((m = a.value) == null ? void 0 : m.min_include_flg) === 1 ? i.push({
7327
+ isNil(v) || (((_ = a.value) == null ? void 0 : _.min_include_flg) === 1 ? i.push({
7299
7328
  validator: (y, C) => Number(C) < v ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [v])) : Promise.resolve()
7300
7329
  }) : i.push({
7301
7330
  validator: (y, C) => Number(C) <= v ? Promise.reject(t.t("kg.KgFormItem.mustGT", [v])) : Promise.resolve()
@@ -7315,124 +7344,124 @@ const KgFormItem = defineComponent({
7315
7344
  emit: r
7316
7345
  }) {
7317
7346
  provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_LOOKUP_BEFORE_OK, e.onKgLookupBeforeOk);
7318
- const n = useKg(), a = useKgVar(), o = inject(DI_FORM_MODEL, computed(() => ({}))), s = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.isCreating(a.formID)), l = computed(() => a.store.isUpdating(a.formID)), u = computed(() => a.store.isCopying(a.formID)), c = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), g = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), p = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), _ = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), {
7347
+ const n = useKg(), a = useKgVar(), o = inject(DI_FORM_MODEL, computed(() => ({}))), s = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.isCreating(a.formID)), l = computed(() => a.store.isUpdating(a.formID)), u = computed(() => a.store.isCopying(a.formID)), c = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), g = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), p = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), m = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), {
7319
7348
  rules: b
7320
- } = _useRules(e), m = computed(() => {
7349
+ } = _useRules(e), _ = computed(() => {
7321
7350
  var $, A, M, D, L;
7322
7351
  if (a.isRetrievingVar.value)
7323
7352
  return !0;
7324
- let k = !1;
7353
+ let I = !1;
7325
7354
  if (e.kgDisabled !== void 0)
7326
- k = e.kgDisabled;
7355
+ I = e.kgDisabled;
7327
7356
  else
7328
7357
  switch (e.kgContext) {
7329
7358
  case KG_FORM_CONTEXT.SEARCH:
7330
- k = (($ = p.value) == null ? void 0 : $.ena_flg) === 0;
7359
+ I = (($ = p.value) == null ? void 0 : $.ena_flg) === 0;
7331
7360
  break;
7332
7361
  case KG_FORM_CONTEXT.SUBMIT:
7333
7362
  switch (!0) {
7334
7363
  case a.isCreating.value:
7335
- k = ((A = _.value) == null ? void 0 : A.crt_ena_flg) === 0;
7364
+ I = ((A = m.value) == null ? void 0 : A.crt_ena_flg) === 0;
7336
7365
  break;
7337
7366
  case a.isUpdating.value:
7338
- k = ((M = _.value) == null ? void 0 : M.upt_ena_flg) === 0;
7367
+ I = ((M = m.value) == null ? void 0 : M.upt_ena_flg) === 0;
7339
7368
  break;
7340
7369
  case a.isCopying.value:
7341
- k = ((D = _.value) == null ? void 0 : D.cpy_ena_flg) === 0;
7370
+ I = ((D = m.value) == null ? void 0 : D.cpy_ena_flg) === 0;
7342
7371
  break;
7343
7372
  case a.isDeleting.value:
7344
- k = ((L = _.value) == null ? void 0 : L.del_ena_flg) === 0;
7373
+ I = ((L = m.value) == null ? void 0 : L.del_ena_flg) === 0;
7345
7374
  break;
7346
7375
  }
7347
7376
  break;
7348
7377
  }
7349
- return k;
7378
+ return I;
7350
7379
  }), v = computed(() => {
7351
7380
  var $, A, M, D;
7352
- let k = " ";
7381
+ let I = " ";
7353
7382
  if (e.kgPlaceholder)
7354
- k = e.kgPlaceholder;
7383
+ I = e.kgPlaceholder;
7355
7384
  else
7356
7385
  switch (e.kgContext) {
7357
7386
  case KG_FORM_CONTEXT.SEARCH:
7358
- k = n.t((A = ($ = p.value) == null ? void 0 : $.placeholder) != null ? A : " ");
7387
+ I = n.t((A = ($ = p.value) == null ? void 0 : $.placeholder) != null ? A : " ");
7359
7388
  break;
7360
7389
  case KG_FORM_CONTEXT.SUBMIT:
7361
- k = n.t((D = (M = _.value) == null ? void 0 : M.placeholder) != null ? D : " ");
7390
+ I = n.t((D = (M = m.value) == null ? void 0 : M.placeholder) != null ? D : " ");
7362
7391
  break;
7363
7392
  }
7364
- return k;
7393
+ return I;
7365
7394
  }), y = computed(() => {
7366
7395
  var $, A, M, D, L, G, P, U, W, Y;
7367
- let k = 6;
7396
+ let I = 6;
7368
7397
  if (e.kgSpan !== void 0)
7369
- k = e.kgSpan;
7398
+ I = e.kgSpan;
7370
7399
  else
7371
7400
  switch (e.kgContext) {
7372
7401
  case KG_FORM_CONTEXT.SEARCH:
7373
- k = (A = ($ = p.value) == null ? void 0 : $.width) != null ? A : 6;
7402
+ I = (A = ($ = p.value) == null ? void 0 : $.width) != null ? A : 6;
7374
7403
  break;
7375
7404
  case KG_FORM_CONTEXT.SUBMIT:
7376
7405
  switch (!0) {
7377
7406
  case a.isCreating.value:
7378
- k = (D = (M = _.value) == null ? void 0 : M.crt_width) != null ? D : 6;
7407
+ I = (D = (M = m.value) == null ? void 0 : M.crt_width) != null ? D : 6;
7379
7408
  break;
7380
7409
  case a.isUpdating.value:
7381
- k = (G = (L = _.value) == null ? void 0 : L.upt_width) != null ? G : 6;
7410
+ I = (G = (L = m.value) == null ? void 0 : L.upt_width) != null ? G : 6;
7382
7411
  break;
7383
7412
  case a.isCopying.value:
7384
- k = (U = (P = _.value) == null ? void 0 : P.cpy_width) != null ? U : 6;
7413
+ I = (U = (P = m.value) == null ? void 0 : P.cpy_width) != null ? U : 6;
7385
7414
  break;
7386
7415
  case a.isDeleting.value:
7387
- k = (Y = (W = _.value) == null ? void 0 : W.del_width) != null ? Y : 6;
7416
+ I = (Y = (W = m.value) == null ? void 0 : W.del_width) != null ? Y : 6;
7388
7417
  break;
7389
7418
  }
7390
7419
  }
7391
- return Math.min(24, Math.max(1, k));
7420
+ return Math.min(24, Math.max(1, I));
7392
7421
  }), C = computed(() => {
7393
7422
  var M, D;
7394
- const k = get(K.value, "$el.parentElement");
7395
- if (k && !((M = k.classList) != null && M.contains("ant-row")))
7423
+ const I = get(x.value, "$el.parentElement");
7424
+ if (I && !((M = I.classList) != null && M.contains("ant-row")))
7396
7425
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
7397
7426
  let $ = {};
7398
- const A = Math.abs(Number.parseInt((D = get(K.value, "$el.parentElement.style.marginLeft")) != null ? D : "0px"));
7427
+ const A = Math.abs(Number.parseInt((D = get(x.value, "$el.parentElement.style.marginLeft")) != null ? D : "0px"));
7399
7428
  return Number.isNaN(A) || ($ = {
7400
7429
  paddingLeft: `${A}px !important`,
7401
7430
  paddingRight: `${A}px !important`
7402
7431
  }), $;
7403
7432
  }), T = computed(() => {
7404
7433
  var $, A, M, D;
7405
- let k = "kg-form-item";
7406
- switch (c.value && (k += " kg-form-item-lookup"), e.kgContext) {
7434
+ let I = "kg-form-item";
7435
+ switch (c.value && (I += " kg-form-item-lookup"), e.kgContext) {
7407
7436
  case KG_FORM_CONTEXT.SEARCH:
7408
7437
  switch (!0) {
7409
7438
  case (($ = p.value) == null ? void 0 : $.vis_flg) === 0:
7410
- k += " kg-form-item--invisible";
7439
+ I += " kg-form-item--invisible";
7411
7440
  break;
7412
7441
  }
7413
7442
  break;
7414
7443
  case KG_FORM_CONTEXT.SUBMIT:
7415
7444
  switch (!0) {
7416
- case (i.value && ((A = _.value) == null ? void 0 : A.crt_vis_flg) === 0):
7417
- case (l.value && ((M = _.value) == null ? void 0 : M.upt_vis_flg) === 0):
7418
- case (u.value && ((D = _.value) == null ? void 0 : D.cpy_vis_flg) === 0):
7419
- k += " kg-form-item--invisible";
7445
+ case (i.value && ((A = m.value) == null ? void 0 : A.crt_vis_flg) === 0):
7446
+ case (l.value && ((M = m.value) == null ? void 0 : M.upt_vis_flg) === 0):
7447
+ case (u.value && ((D = m.value) == null ? void 0 : D.cpy_vis_flg) === 0):
7448
+ I += " kg-form-item--invisible";
7420
7449
  break;
7421
7450
  }
7422
7451
  break;
7423
7452
  }
7424
- return k;
7425
- }), I = computed(() => {
7453
+ return I;
7454
+ }), E = computed(() => {
7426
7455
  var $;
7427
- const k = {
7456
+ const I = {
7428
7457
  ...e,
7429
7458
  value: ($ = o.value) == null ? void 0 : $[e.kgVarName],
7430
7459
  "onUpdate:value": (A) => {
7431
7460
  o.value && (o.value[e.kgVarName] = A);
7432
7461
  },
7433
7462
  kgPlaceholder: v.value,
7434
- kgDisabled: m.value,
7435
- id: E.value
7463
+ kgDisabled: _.value,
7464
+ id: k.value
7436
7465
  };
7437
7466
  switch (V.value) {
7438
7467
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
@@ -7442,44 +7471,44 @@ const KgFormItem = defineComponent({
7442
7471
  case KG_FORM_ITEM_TYPE.SWITCH:
7443
7472
  break;
7444
7473
  case KG_FORM_ITEM_TYPE.DATE_DATE:
7445
- k.kgShowTime = !1;
7474
+ I.kgShowTime = !1;
7446
7475
  break;
7447
7476
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
7448
- k.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7477
+ I.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
7449
7478
  break;
7450
7479
  }
7451
- return k;
7480
+ return I;
7452
7481
  }), V = computed(() => {
7453
- var k;
7454
- return e.kgType || ((k = g.value) == null ? void 0 : k.ctrl_typ);
7455
- }), E = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), K = ref(null);
7456
- function F(k, $) {
7482
+ var I;
7483
+ return e.kgType || ((I = g.value) == null ? void 0 : I.ctrl_typ);
7484
+ }), k = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), x = ref(null);
7485
+ function F(I, $) {
7457
7486
  var A;
7458
- o.value && (o.value[e.kgVarName] = k), r("kgLookupChange", $), (A = s.value) == null || A.validate([e.kgVarName]);
7487
+ o.value && (o.value[e.kgVarName] = I), r("kgLookupChange", $), (A = s.value) == null || A.validate([e.kgVarName]);
7459
7488
  }
7460
7489
  function O() {
7461
7490
  if (t.control)
7462
7491
  return t.control({
7463
7492
  varName: e.kgVarName,
7464
- props: I,
7493
+ props: E,
7465
7494
  model: o,
7466
7495
  varConfig: g,
7467
7496
  varProfileDetail: p,
7468
- varSubmitField: _
7497
+ varSubmitField: m
7469
7498
  });
7470
7499
  switch (V.value) {
7471
7500
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
7472
- return createVNode(KgFormItemInputNumber, I.value, null);
7501
+ return createVNode(KgFormItemInputNumber, E.value, null);
7473
7502
  case KG_FORM_ITEM_TYPE.SELECT:
7474
- return createVNode(KgFormItemSelect, I.value, null);
7503
+ return createVNode(KgFormItemSelect, E.value, null);
7475
7504
  case KG_FORM_ITEM_TYPE.SWITCH:
7476
- return createVNode(KgFormItemSwitch, I.value, null);
7505
+ return createVNode(KgFormItemSwitch, E.value, null);
7477
7506
  case KG_FORM_ITEM_TYPE.DATE_DATE:
7478
- return createVNode(KgFormItemDate, I.value, null);
7507
+ return createVNode(KgFormItemDate, E.value, null);
7479
7508
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
7480
- return createVNode(KgFormItemDate, I.value, null);
7509
+ return createVNode(KgFormItemDate, E.value, null);
7481
7510
  default:
7482
- return createVNode(KgFormItemInput, I.value, null);
7511
+ return createVNode(KgFormItemInput, E.value, null);
7483
7512
  }
7484
7513
  }
7485
7514
  function w() {
@@ -7488,22 +7517,22 @@ const KgFormItem = defineComponent({
7488
7517
  }, [a.t(e.kgVarName).value]) : null;
7489
7518
  }
7490
7519
  function R() {
7491
- var k;
7492
- return !c.value || !((k = c.value) != null && k.lkp_id) ? null : createVNode(Form.ItemRest, null, {
7520
+ var I;
7521
+ return !c.value || !((I = c.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
7493
7522
  default: () => [createVNode(KgFormItemAddonLookup, {
7494
- kgDisabled: m.value,
7523
+ kgDisabled: _.value,
7495
7524
  onKgOk: F,
7496
7525
  kgLookupID: c.value.lkp_id
7497
7526
  }, null)]
7498
7527
  });
7499
7528
  }
7500
7529
  return () => {
7501
- var k, $;
7530
+ var I, $;
7502
7531
  return createVNode(Col, {
7503
- ref: K,
7532
+ ref: x,
7504
7533
  "kg-frm-id": a.formID,
7505
7534
  "kg-var-nam": e.kgVarName,
7506
- "kg-lkp-id": (k = c.value) == null ? void 0 : k.lkp_id,
7535
+ "kg-lkp-id": (I = c.value) == null ? void 0 : I.lkp_id,
7507
7536
  "kg-lkp-ret-fld": ($ = c.value) == null ? void 0 : $.ret_fld,
7508
7537
  span: y.value,
7509
7538
  class: T.value,
@@ -7512,7 +7541,7 @@ const KgFormItem = defineComponent({
7512
7541
  default: () => [createVNode(Form.Item, {
7513
7542
  name: e.kgVarName,
7514
7543
  rules: b.value,
7515
- htmlFor: E.value
7544
+ htmlFor: k.value
7516
7545
  }, {
7517
7546
  default: () => createVNode(Fragment, null, [O(), R()]),
7518
7547
  label: () => w()
@@ -7702,15 +7731,15 @@ function createStore(e, t, r) {
7702
7731
  _assignPluginFnProp: function(l, u) {
7703
7732
  var c = this[u];
7704
7733
  this[u] = function() {
7705
- var p = slice(arguments, 0), _ = this;
7734
+ var p = slice(arguments, 0), m = this;
7706
7735
  function b() {
7707
7736
  if (!!c)
7708
7737
  return each$6(arguments, function(v, y) {
7709
7738
  p[y] = v;
7710
- }), c.apply(_, p);
7739
+ }), c.apply(m, p);
7711
7740
  }
7712
- var m = [b].concat(p);
7713
- return l.apply(_, m);
7741
+ var _ = [b].concat(p);
7742
+ return l.apply(m, _);
7714
7743
  };
7715
7744
  },
7716
7745
  _serialize: function(l) {
@@ -7747,10 +7776,10 @@ function createStore(e, t, r) {
7747
7776
  var g = l.call(this);
7748
7777
  if (!isObject(g))
7749
7778
  throw new Error("Plugins must return an object of function properties");
7750
- each$6(g, function(p, _) {
7779
+ each$6(g, function(p, m) {
7751
7780
  if (!isFunction(p))
7752
- throw new Error("Bad plugin property: " + _ + " from plugin " + l.name + ". Plugins should only return functions.");
7753
- u._assignPluginFnProp(p, _);
7781
+ throw new Error("Bad plugin property: " + m + " from plugin " + l.name + ". Plugins should only return functions.");
7782
+ u._assignPluginFnProp(p, m);
7754
7783
  });
7755
7784
  }
7756
7785
  },
@@ -8698,16 +8727,16 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8698
8727
  varVariableInputs: c,
8699
8728
  varPossibilities: g,
8700
8729
  varButtons: p,
8701
- varSubmitConfig: _,
8730
+ varSubmitConfig: m,
8702
8731
  varSubmitFields: b,
8703
- varProfile: m,
8732
+ varProfile: _,
8704
8733
  varProfileConfig: v,
8705
8734
  varGrid: y,
8706
8735
  varGridConfig: C
8707
8736
  } = await GetAll({ params: { frm_id: e } });
8708
- this.varCatalogMap.set(e, i != null ? i : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(_)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(b)), this.varProfileConfigMap.set(e, transformVarProfileConfig(v != null ? v : null)), this.varProfileMap.set(e, {
8709
- varProfile: m != null ? m : null,
8710
- currentVarProfileMasterID: (n = (r = (t = m == null ? void 0 : m.varProfileMasters) == null ? void 0 : t.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
8737
+ this.varCatalogMap.set(e, i != null ? i : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(m)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(b)), this.varProfileConfigMap.set(e, transformVarProfileConfig(v != null ? v : null)), this.varProfileMap.set(e, {
8738
+ varProfile: _ != null ? _ : null,
8739
+ currentVarProfileMasterID: (n = (r = (t = _ == null ? void 0 : _.varProfileMasters) == null ? void 0 : t.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
8711
8740
  }), this.varGridConfigMap.set(e, transformVarGridConfig(C != null ? C : null)), this.varGridMap.set(e, {
8712
8741
  varGrid: transformVarGridDTO(y),
8713
8742
  currentVarGridMasterID: (s = (o = (a = y == null ? void 0 : y.varGridMasters) == null ? void 0 : a.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
@@ -8841,12 +8870,12 @@ function useKgVar(e, t, r = 0) {
8841
8870
  i.leave(s);
8842
8871
  }));
8843
8872
  const l = (R) => computed(() => {
8844
- var k, $, A;
8845
- return (A = ($ = (k = i.getVarCatalog(s, R)) == null ? void 0 : k.var_text) != null ? $ : R) != null ? A : "";
8846
- }), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), _ = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), v = computed(() => i.isOtherRequesting(s)), y = computed(() => i.getVarButtons(s)), C = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)), I = computed(() => i.getCurrentVarProfileMasterID(s)), V = computed(() => {
8847
- var R, k;
8848
- return (k = (R = T.value) == null ? void 0 : R.varProfileDetails) != null ? k : null;
8849
- }), E = computed(() => i.getVarGridConfig(s)), K = computed(() => i.getVarGridMasters(s)), F = computed(() => i.getCurrentVarGridMaster(s)), O = computed(() => i.getSystemVarGridDetails(s)), w = computed(() => i.getCurrentVarGridDetails(s));
8873
+ var I, $, A;
8874
+ return (A = ($ = (I = i.getVarCatalog(s, R)) == null ? void 0 : I.var_text) != null ? $ : R) != null ? A : "";
8875
+ }), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), m = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), _ = computed(() => i.isDeleting(s)), v = computed(() => i.isOtherRequesting(s)), y = computed(() => i.getVarButtons(s)), C = computed(() => i.getVarProfileMasters(s)), T = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), V = computed(() => {
8876
+ var R, I;
8877
+ return (I = (R = T.value) == null ? void 0 : R.varProfileDetails) != null ? I : null;
8878
+ }), k = computed(() => i.getVarGridConfig(s)), x = computed(() => i.getVarGridMasters(s)), F = computed(() => i.getCurrentVarGridMaster(s)), O = computed(() => i.getSystemVarGridDetails(s)), w = computed(() => i.getCurrentVarGridDetails(s));
8850
8879
  return {
8851
8880
  formID: s,
8852
8881
  store: i,
@@ -8854,17 +8883,17 @@ function useKgVar(e, t, r = 0) {
8854
8883
  isRetrievingVarProfileMaster: c,
8855
8884
  isRetrievingVarGridMaster: g,
8856
8885
  isCreating: p,
8857
- isUpdating: _,
8886
+ isUpdating: m,
8858
8887
  isCopying: b,
8859
- isDeleting: m,
8888
+ isDeleting: _,
8860
8889
  isOtherRequesting: v,
8861
8890
  varButtons: y,
8862
8891
  varProfileMasters: C,
8863
8892
  currentVarProfileMaster: T,
8864
- currentVarProfileMasterID: I,
8893
+ currentVarProfileMasterID: E,
8865
8894
  currentVarProfileDetails: V,
8866
- varGridConfig: E,
8867
- varGridMasters: K,
8895
+ varGridConfig: k,
8896
+ varGridMasters: x,
8868
8897
  currentVarGridMaster: F,
8869
8898
  systemVarGridDetails: O,
8870
8899
  currentVarGridDetails: w,
@@ -9060,8 +9089,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9060
9089
  }) => {
9061
9090
  const c = o.store.getVarSubmitConfig(o.formID);
9062
9091
  return i = watch(u, (g) => {
9063
- var p, _, b, m, v, y, C, T, I, V, E, K;
9064
- g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (_ = c == null ? void 0 : c.resizable_flg) != null ? _ : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (T = c == null ? void 0 : c.dft_width) != null ? T : DEFAULT_WIDTH, g.layout = (I = c == null ? void 0 : c.layout) != null ? I : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (V = c == null ? void 0 : c.label_col) != null ? V : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (E = c == null ? void 0 : c.label_col_unit) != null ? E : KG_WIDTH_UNIT.SPAN, g.display_type = (K = c == null ? void 0 : c.display_type) != null ? K : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
9092
+ var p, m, b, _, v, y, C, T, E, V, k, x;
9093
+ g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (m = c == null ? void 0 : c.resizable_flg) != null ? m : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (_ = c == null ? void 0 : c.dft_fullscreen_flg) != null ? _ : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (T = c == null ? void 0 : c.dft_width) != null ? T : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (V = c == null ? void 0 : c.label_col) != null ? V : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (x = c == null ? void 0 : c.display_type) != null ? x : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
9065
9094
  }, {
9066
9095
  immediate: !0
9067
9096
  }), !1;
@@ -9107,7 +9136,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9107
9136
  function p() {
9108
9137
  c.value = !0;
9109
9138
  }
9110
- function _() {
9139
+ function m() {
9111
9140
  r("kgCancel");
9112
9141
  }
9113
9142
  function b() {
@@ -9119,7 +9148,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9119
9148
  default: () => [e.isFullscreen ? createVNode(FullscreenExitOutlined$1, null, null) : createVNode(FullscreenOutlined$1, null, null)]
9120
9149
  });
9121
9150
  }
9122
- function m() {
9151
+ function _() {
9123
9152
  return e.kgShowConfigButton ? createVNode(Fragment, null, [createVNode(Button, {
9124
9153
  disabled: u.value || l.value,
9125
9154
  onClick: p,
@@ -9134,52 +9163,52 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9134
9163
  return createVNode(Button, {
9135
9164
  disabled: u.value || l.value,
9136
9165
  class: "kg-submit--btn-close",
9137
- onClick: _
9166
+ onClick: m
9138
9167
  }, {
9139
9168
  default: () => [createVNode(CloseOutlined$1, null, null)]
9140
9169
  });
9141
9170
  }
9142
- return () => createVNode(Fragment, null, [m(), b(), v()]);
9171
+ return () => createVNode(Fragment, null, [_(), b(), v()]);
9143
9172
  }
9144
9173
  }), DEFAULT_MIN_WIDTH = 300, DEFAULT_MAX_WIDTH = 1182, DEFAULT_WIDTH = 594, DEFAULT_LAYOUT = "vertical", DEFAULT_LABEL_COL_FOR_SPAN = 4, DEFAULT_LABEL_COL_FOR_PX = 100;
9145
9174
  function _useFormModel() {
9146
- const e = useKgVar(), t = useKgTable(), r = useKgSubmit(), n = computed(() => e.store.isCreating(e.formID)), a = computed(() => e.store.isUpdating(e.formID)), o = computed(() => e.store.isCopying(e.formID)), s = computed(() => e.store.isDeleting(e.formID)), i = computed(() => e.store.getVarSubmitFieldsForCreate(e.formID)), l = computed(() => e.store.getVarSubmitFieldsForUpdate(e.formID)), u = computed(() => e.store.getVarSubmitFieldsForCopy(e.formID)), c = computed(() => e.store.getVarSubmitFieldsForDelete(e.formID)), g = computed(() => {
9147
- var _, b, m, v;
9175
+ const e = inject("$dayjs", dayjs), t = useKgVar(), r = useKgTable(), n = useKgSubmit(), a = computed(() => t.store.isCreating(t.formID)), o = computed(() => t.store.isUpdating(t.formID)), s = computed(() => t.store.isCopying(t.formID)), i = computed(() => t.store.isDeleting(t.formID)), l = computed(() => t.store.getVarSubmitFieldsForCreate(t.formID)), u = computed(() => t.store.getVarSubmitFieldsForUpdate(t.formID)), c = computed(() => t.store.getVarSubmitFieldsForCopy(t.formID)), g = computed(() => t.store.getVarSubmitFieldsForDelete(t.formID)), p = computed(() => {
9176
+ var b, _, v, y;
9148
9177
  switch (!0) {
9149
- case n.value:
9150
- return (_ = i.value) != null ? _ : [];
9151
9178
  case a.value:
9152
9179
  return (b = l.value) != null ? b : [];
9153
9180
  case o.value:
9154
- return (m = u.value) != null ? m : [];
9181
+ return (_ = u.value) != null ? _ : [];
9155
9182
  case s.value:
9156
9183
  return (v = c.value) != null ? v : [];
9184
+ case i.value:
9185
+ return (y = g.value) != null ? y : [];
9157
9186
  }
9158
9187
  return [];
9159
- }), p = ref({});
9160
- return watch(g, (_) => {
9161
- p.value = {}, _ != null && _.length && _.forEach((b) => {
9162
- var y, C, T, I;
9163
- const m = (y = b.var_nam) != null ? y : "", v = t.selectedRow.value;
9164
- switch (p.value[m] = void 0, !0) {
9165
- case n.value:
9166
- isNil(b.crt_dft_val) || (p.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, b.crt_dft_val));
9167
- break;
9188
+ }), m = ref({});
9189
+ return watch(p, (b) => {
9190
+ m.value = {}, b != null && b.length && b.forEach((_) => {
9191
+ var C, T, E, V, k, x, F;
9192
+ const v = (C = _.var_nam) != null ? C : "", y = r.selectedRow.value;
9193
+ switch (m.value[v] = void 0, !0) {
9168
9194
  case a.value:
9169
- p.value.id = v == null ? void 0 : v.id, isNil(b.upt_dft_val) ? p.value[m] = (C = v == null ? void 0 : v[m]) != null ? C : void 0 : p.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, b.upt_dft_val);
9195
+ m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, _.crt_dft_val);
9170
9196
  break;
9171
9197
  case o.value:
9172
- p.value.id = v == null ? void 0 : v.id, isNil(b.cpy_dft_val) ? p.value[m] = (T = v == null ? void 0 : v[m]) != null ? T : void 0 : p.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, b.cpy_dft_val);
9198
+ m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (E = (T = _.upt_dft_val) != null ? T : y == null ? void 0 : y[v]) != null ? E : void 0);
9173
9199
  break;
9174
9200
  case s.value:
9175
- p.value.id = v == null ? void 0 : v.id, isNil(b.del_dft_val) ? p.value[m] = (I = v == null ? void 0 : v[m]) != null ? I : void 0 : p.value[m] = KgVarUtil.transformValueByControlType(e.formID, m, b.del_dft_val);
9201
+ m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (k = (V = _.cpy_dft_val) != null ? V : y == null ? void 0 : y[v]) != null ? k : void 0);
9202
+ break;
9203
+ case i.value:
9204
+ m.value.id = y == null ? void 0 : y.id, m.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (F = (x = _.del_dft_val) != null ? x : y == null ? void 0 : y[v]) != null ? F : void 0);
9176
9205
  break;
9177
9206
  }
9178
- }), r.store.setModel(e.formID, p.value);
9207
+ }), n.store.setModel(t.formID, m.value);
9179
9208
  }, {
9180
9209
  immediate: !0
9181
9210
  }), {
9182
- model: p
9211
+ model: m
9183
9212
  };
9184
9213
  }
9185
9214
  function _useResizeObserver$1(e) {
@@ -9216,23 +9245,23 @@ function _useTitle() {
9216
9245
  const e = useKg(), t = useKgVar(), r = computed(() => t.store.isCreating(t.formID)), n = computed(() => t.store.isUpdating(t.formID)), a = computed(() => t.store.isCopying(t.formID)), o = computed(() => t.store.isDeleting(t.formID)), s = computed(() => t.store.getVarButtonCreate(t.formID)), i = computed(() => t.store.getVarButtonUpdate(t.formID)), l = computed(() => t.store.getVarButtonCopy(t.formID)), u = computed(() => t.store.getVarButtonDelete(t.formID));
9217
9246
  return {
9218
9247
  title: computed(() => {
9219
- var g, p, _, b;
9248
+ var g, p, m, b;
9220
9249
  switch (!0) {
9221
9250
  case r.value: {
9222
- const m = (g = s.value) == null ? void 0 : g.var_nam, v = t.t(m).value;
9223
- return m === v ? e.t("kg.create") : v;
9251
+ const _ = (g = s.value) == null ? void 0 : g.var_nam, v = t.t(_).value;
9252
+ return _ === v ? e.t("kg.create") : v;
9224
9253
  }
9225
9254
  case n.value: {
9226
- const m = (p = i.value) == null ? void 0 : p.var_nam, v = t.t(m).value;
9227
- return m === v ? e.t("kg.update") : v;
9255
+ const _ = (p = i.value) == null ? void 0 : p.var_nam, v = t.t(_).value;
9256
+ return _ === v ? e.t("kg.update") : v;
9228
9257
  }
9229
9258
  case a.value: {
9230
- const m = (_ = l.value) == null ? void 0 : _.var_nam, v = t.t(m).value;
9231
- return m === v ? e.t("kg.copy") : v;
9259
+ const _ = (m = l.value) == null ? void 0 : m.var_nam, v = t.t(_).value;
9260
+ return _ === v ? e.t("kg.copy") : v;
9232
9261
  }
9233
9262
  case o.value: {
9234
- const m = (b = u.value) == null ? void 0 : b.var_nam, v = t.t(m).value;
9235
- return m === v ? e.t("kg.delete") : v;
9263
+ const _ = (b = u.value) == null ? void 0 : b.var_nam, v = t.t(_).value;
9264
+ return _ === v ? e.t("kg.delete") : v;
9236
9265
  }
9237
9266
  }
9238
9267
  return "";
@@ -9257,26 +9286,26 @@ const getProps$p = () => ({
9257
9286
  }) {
9258
9287
  const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
9259
9288
  _useFormModel();
9260
- const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), _ = computed(() => p.value && R.value.length === 0 && k.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), v = computed(() => a.store.getVarButtonCopy(a.formID)), y = computed(() => a.store.getVarButtonDelete(a.formID)), C = computed(() => s.store.isLoading(a.formID)), T = computed(() => a.store.getVarSubmitConfig(a.formID)), I = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), V = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), K = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), O = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), w = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), R = computed(() => {
9261
- var x, z, Q;
9289
+ const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), m = computed(() => p.value && R.value.length === 0 && I.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), _ = computed(() => a.store.getVarButtonUpdate(a.formID)), v = computed(() => a.store.getVarButtonCopy(a.formID)), y = computed(() => a.store.getVarButtonDelete(a.formID)), C = computed(() => s.store.isLoading(a.formID)), T = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), V = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), x = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), O = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), w = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), R = computed(() => {
9290
+ var K, z, Q;
9262
9291
  switch (!0) {
9263
9292
  case u.value:
9264
- return (x = I.value) != null ? x : [];
9293
+ return (K = E.value) != null ? K : [];
9265
9294
  case c.value:
9266
- return (z = E.value) != null ? z : [];
9295
+ return (z = k.value) != null ? z : [];
9267
9296
  case g.value:
9268
9297
  return (Q = F.value) != null ? Q : [];
9269
9298
  case p.value:
9270
9299
  return [];
9271
9300
  }
9272
9301
  return [];
9273
- }), k = computed(() => {
9274
- var x, z, Q, Z;
9302
+ }), I = computed(() => {
9303
+ var K, z, Q, Z;
9275
9304
  switch (!0) {
9276
9305
  case u.value:
9277
- return (x = V.value) != null ? x : [];
9306
+ return (K = V.value) != null ? K : [];
9278
9307
  case c.value:
9279
- return (z = K.value) != null ? z : [];
9308
+ return (z = x.value) != null ? z : [];
9280
9309
  case g.value:
9281
9310
  return (Q = O.value) != null ? Q : [];
9282
9311
  case p.value:
@@ -9286,25 +9315,25 @@ const getProps$p = () => ({
9286
9315
  }), $ = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), A = computed(() => $.value || C.value), M = computed(() => C.value), D = ref({
9287
9316
  kgWidth: 0
9288
9317
  }), L = computed(() => {
9289
- var x;
9290
- return !!(_.value || q.isFullscreen || ((x = T.value) == null ? void 0 : x.resizable_flg) === 0);
9318
+ var K;
9319
+ return !!(m.value || q.isFullscreen || ((K = T.value) == null ? void 0 : K.resizable_flg) === 0);
9291
9320
  }), G = computed(() => {
9292
- var x, z;
9293
- return _.value ? 398 : (z = (x = T.value) == null ? void 0 : x.min_width) != null ? z : DEFAULT_MIN_WIDTH;
9321
+ var K, z;
9322
+ return m.value ? 398 : (z = (K = T.value) == null ? void 0 : K.min_width) != null ? z : DEFAULT_MIN_WIDTH;
9294
9323
  }), P = computed(() => {
9295
- var x, z;
9296
- return _.value ? 398 : (z = (x = T.value) == null ? void 0 : x.max_width) != null ? z : DEFAULT_MAX_WIDTH;
9297
- }), U = computed(() => _.value ? 398 : D.value.kgWidth), W = ref(null), Y = ref({}), X = ref(null);
9324
+ var K, z;
9325
+ return m.value ? 398 : (z = (K = T.value) == null ? void 0 : K.max_width) != null ? z : DEFAULT_MAX_WIDTH;
9326
+ }), U = computed(() => m.value ? 398 : D.value.kgWidth), W = ref(null), Y = ref({}), X = ref(null);
9298
9327
  _useResizeObserver$1(X);
9299
- const re = _useTitle(), te = computed(() => _.value ? 400 : D.value.kgWidth && D.value.kgWidth > 0 ? D.value.kgWidth + 2 : 0), N = computed(() => te.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), B = computed(() => {
9328
+ const re = _useTitle(), te = computed(() => m.value ? 400 : D.value.kgWidth && D.value.kgWidth > 0 ? D.value.kgWidth + 2 : 0), N = computed(() => te.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), B = computed(() => {
9300
9329
  var z, Q;
9301
- let x = "kg-submit";
9302
- return q.isFullscreen && (x += " kg-submit--fullscreen"), ((z = T.value) == null ? void 0 : z.responsive_flg) !== 0 && (x += " kg-submit--responsive"), (((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || p.value) && (x += " kg-submit--modal"), e.kgClass && (x += ` ${e.kgClass}`), x;
9330
+ let K = "kg-submit";
9331
+ return q.isFullscreen && (K += " kg-submit--fullscreen"), ((z = T.value) == null ? void 0 : z.responsive_flg) !== 0 && (K += " kg-submit--responsive"), (((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || p.value) && (K += " kg-submit--modal"), e.kgClass && (K += ` ${e.kgClass}`), K;
9303
9332
  }), q = reactive({
9304
9333
  isFullscreen: !1
9305
9334
  }), H = computed(() => {
9306
- var x, z, Q, Z;
9307
- switch ((x = T.value) == null ? void 0 : x.layout) {
9335
+ var K, z, Q, Z;
9336
+ switch ((K = T.value) == null ? void 0 : K.layout) {
9308
9337
  case "horizontal":
9309
9338
  switch ((z = T.value) == null ? void 0 : z.label_col_unit) {
9310
9339
  case KG_WIDTH_UNIT.SPAN:
@@ -9322,8 +9351,8 @@ const getProps$p = () => ({
9322
9351
  return;
9323
9352
  }
9324
9353
  }), ee = computed(() => {
9325
- var x, z, Q;
9326
- switch ((x = T.value) == null ? void 0 : x.layout) {
9354
+ var K, z, Q;
9355
+ switch ((K = T.value) == null ? void 0 : K.layout) {
9327
9356
  case "horizontal":
9328
9357
  switch ((z = T.value) == null ? void 0 : z.label_col_unit) {
9329
9358
  case KG_WIDTH_UNIT.SPAN:
@@ -9337,17 +9366,17 @@ const getProps$p = () => ({
9337
9366
  return;
9338
9367
  }
9339
9368
  });
9340
- watch(N, (x, z) => {
9341
- x === !0 && J(), z === !0 && x === !1 && le();
9369
+ watch(N, (K, z) => {
9370
+ K === !0 && J(), z === !0 && K === !1 && le();
9342
9371
  }, {
9343
9372
  immediate: !0
9344
- }), watch(T, (x) => {
9345
- x != null && x.dft_width && (D.value.kgWidth = x.dft_width);
9373
+ }), watch(T, (K) => {
9374
+ K != null && K.dft_width && (D.value.kgWidth = K.dft_width);
9346
9375
  }, {
9347
9376
  immediate: !0
9348
9377
  });
9349
9378
  function J() {
9350
- var x;
9379
+ var K;
9351
9380
  s.store.emit(a.formID, "open", {
9352
9381
  isCreating: u.value,
9353
9382
  isUpdating: c.value,
@@ -9355,11 +9384,11 @@ const getProps$p = () => ({
9355
9384
  isDeleting: p.value,
9356
9385
  row: o.selectedRow.value,
9357
9386
  model: s.model
9358
- }), ((x = T.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && !_.value && (q.isFullscreen = !0);
9387
+ }), ((K = T.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && !m.value && (q.isFullscreen = !0);
9359
9388
  }
9360
9389
  function le() {
9361
- var x;
9362
- D.value.kgWidth = ((x = T.value) == null ? void 0 : x.dft_width) || DEFAULT_WIDTH, q.isFullscreen = !1, s.store.emit(a.formID, "close");
9390
+ var K;
9391
+ D.value.kgWidth = ((K = T.value) == null ? void 0 : K.dft_width) || DEFAULT_WIDTH, q.isFullscreen = !1, s.store.emit(a.formID, "close");
9363
9392
  }
9364
9393
  function ue() {
9365
9394
  switch (!0) {
@@ -9378,7 +9407,7 @@ const getProps$p = () => ({
9378
9407
  }
9379
9408
  }
9380
9409
  async function de() {
9381
- var x, z;
9410
+ var K, z;
9382
9411
  try {
9383
9412
  if (await s.store.emit(a.formID, "beforeOk", {
9384
9413
  rules: Y,
@@ -9386,7 +9415,7 @@ const getProps$p = () => ({
9386
9415
  }))
9387
9416
  return;
9388
9417
  try {
9389
- await ((x = W.value) == null ? void 0 : x.validate());
9418
+ await ((K = W.value) == null ? void 0 : K.validate());
9390
9419
  } catch (Z) {
9391
9420
  KgUtil.throwIfNotFormError(Z);
9392
9421
  }
@@ -9410,8 +9439,8 @@ const getProps$p = () => ({
9410
9439
  }
9411
9440
  async function me() {
9412
9441
  var z, Q, Z, ne, ae, oe, se;
9413
- const x = (z = b.value) == null ? void 0 : z.cmd;
9414
- if (!x) {
9442
+ const K = (z = b.value) == null ? void 0 : z.cmd;
9443
+ if (!K) {
9415
9444
  Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9416
9445
  VarButton: b.value
9417
9446
  });
@@ -9421,7 +9450,7 @@ const getProps$p = () => ({
9421
9450
  try {
9422
9451
  await httpClient().request({
9423
9452
  method: (Z = (Q = b.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9424
- url: x,
9453
+ url: K,
9425
9454
  params: KgUtil.parseParams(KgVarUtil.parseCommandParameter((ae = (ne = b.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""), a.formID, r),
9426
9455
  data: KgUtil.parseParams(toRaw(s.model.value), a.formID, r)
9427
9456
  }), message.success(n.t("kg.createSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (se = (oe = i.search).value) == null || se.call(oe, !0);
@@ -9433,18 +9462,18 @@ const getProps$p = () => ({
9433
9462
  }
9434
9463
  async function he() {
9435
9464
  var z, Q, Z, ne, ae, oe, se;
9436
- const x = (z = m.value) == null ? void 0 : z.cmd;
9437
- if (!x) {
9465
+ const K = (z = _.value) == null ? void 0 : z.cmd;
9466
+ if (!K) {
9438
9467
  Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9439
- VarButton: m.value
9468
+ VarButton: _.value
9440
9469
  });
9441
9470
  return;
9442
9471
  }
9443
9472
  try {
9444
9473
  a.store.setIsUpdatingRequesting(a.formID, !0), await httpClient().request({
9445
- method: (Z = (Q = m.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9446
- url: x,
9447
- params: KgVarUtil.parseCommandParameter((ae = (ne = m.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
9474
+ method: (Z = (Q = _.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9475
+ url: K,
9476
+ params: KgVarUtil.parseCommandParameter((ae = (ne = _.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
9448
9477
  data: toRaw(s.model.value)
9449
9478
  }), message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (se = (oe = i.search).value) == null || se.call(oe);
9450
9479
  } catch (ie) {
@@ -9455,8 +9484,8 @@ const getProps$p = () => ({
9455
9484
  }
9456
9485
  async function _e() {
9457
9486
  var z, Q, Z, ne, ae, oe, se;
9458
- const x = (z = v.value) == null ? void 0 : z.cmd;
9459
- if (!x) {
9487
+ const K = (z = v.value) == null ? void 0 : z.cmd;
9488
+ if (!K) {
9460
9489
  Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9461
9490
  VarButton: v.value
9462
9491
  });
@@ -9467,7 +9496,7 @@ const getProps$p = () => ({
9467
9496
  const ie = toRaw(s.model.value);
9468
9497
  delete ie.id, await httpClient().request({
9469
9498
  method: (Z = (Q = v.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
9470
- url: x,
9499
+ url: K,
9471
9500
  params: KgVarUtil.parseCommandParameter((ae = (ne = v.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
9472
9501
  data: toRaw(s.model.value)
9473
9502
  }), message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (se = (oe = i.search).value) == null || se.call(oe, !0);
@@ -9479,8 +9508,8 @@ const getProps$p = () => ({
9479
9508
  }
9480
9509
  async function ve() {
9481
9510
  var z, Q, Z, ne, ae, oe, se;
9482
- const x = (z = y.value) == null ? void 0 : z.cmd;
9483
- if (!x) {
9511
+ const K = (z = y.value) == null ? void 0 : z.cmd;
9512
+ if (!K) {
9484
9513
  Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
9485
9514
  VarButton: y.value
9486
9515
  });
@@ -9489,7 +9518,7 @@ const getProps$p = () => ({
9489
9518
  try {
9490
9519
  a.store.setIsDeletingRequesting(a.formID, !0), await httpClient().request({
9491
9520
  method: (Z = (Q = y.value) == null ? void 0 : Q.cmd_method) != null ? Z : "DELETE",
9492
- url: x,
9521
+ url: K,
9493
9522
  params: {
9494
9523
  ids: (ae = (ne = o.selectedRows.value) == null ? void 0 : ne.map((ie) => {
9495
9524
  var ce, ge, pe;
@@ -9505,13 +9534,13 @@ const getProps$p = () => ({
9505
9534
  a.store.setIsDeletingRequesting(a.formID, !1);
9506
9535
  }
9507
9536
  }
9508
- function fe(x) {
9537
+ function fe(K) {
9509
9538
  var Q, Z;
9510
- const z = (Z = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[x.var_nam];
9539
+ const z = (Z = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[K.var_nam];
9511
9540
  return isFunction$2(z) ? createVNode(KgForm.Item, {
9512
- kgVarName: x.var_nam,
9541
+ kgVarName: K.var_nam,
9513
9542
  kgContext: KG_FORM_CONTEXT.SUBMIT,
9514
- kgRules: Y.value[x.var_nam],
9543
+ kgRules: Y.value[K.var_nam],
9515
9544
  onKgSubmit: de
9516
9545
  }, {
9517
9546
  control: ({
@@ -9530,15 +9559,15 @@ const getProps$p = () => ({
9530
9559
  varSubmitField: ce
9531
9560
  })
9532
9561
  }) : createVNode(KgForm.Item, {
9533
- kgVarName: x.var_nam,
9562
+ kgVarName: K.var_nam,
9534
9563
  kgContext: KG_FORM_CONTEXT.SUBMIT,
9535
- kgRules: Y.value[x.var_nam],
9564
+ kgRules: Y.value[K.var_nam],
9536
9565
  onKgSubmit: de
9537
9566
  }, null);
9538
9567
  }
9539
9568
  function be() {
9540
9569
  var Q;
9541
- let x, z;
9570
+ let K, z;
9542
9571
  return createVNode(KgResizable, {
9543
9572
  kgType: ((Q = T.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
9544
9573
  kgMinWidth: G.value,
@@ -9563,13 +9592,13 @@ const getProps$p = () => ({
9563
9592
  ref: X
9564
9593
  }, [R.value.length > 0 && createVNode(Row, {
9565
9594
  gutter: 12
9566
- }, _isSlot$7(x = R.value.map(fe)) ? x : {
9567
- default: () => [x]
9568
- }), R.value.length > 0 && k.value.length > 0 && createVNode(Divider, null, null), k.value.length > 0 && createVNode(Row, {
9595
+ }, _isSlot$7(K = R.value.map(fe)) ? K : {
9596
+ default: () => [K]
9597
+ }), R.value.length > 0 && I.value.length > 0 && createVNode(Divider, null, null), I.value.length > 0 && createVNode(Row, {
9569
9598
  gutter: 12
9570
- }, _isSlot$7(z = k.value.map(fe)) ? z : {
9599
+ }, _isSlot$7(z = I.value.map(fe)) ? z : {
9571
9600
  default: () => [z]
9572
- }), _.value && createVNode("div", {
9601
+ }), m.value && createVNode("div", {
9573
9602
  style: "text-align: center; padding: 6px 0 12px;"
9574
9603
  }, [n.t("kg.confirmDelete")])])]
9575
9604
  })];
@@ -9578,14 +9607,14 @@ const getProps$p = () => ({
9578
9607
  });
9579
9608
  }
9580
9609
  function ye() {
9581
- let x, z;
9610
+ let K, z;
9582
9611
  return createVNode("div", null, [createVNode(Button, {
9583
9612
  type: "primary",
9584
9613
  ghost: !A.value,
9585
9614
  disabled: A.value,
9586
9615
  onClick: ue
9587
- }, _isSlot$7(x = n.t("kg.cancel")) ? x : {
9588
- default: () => [x]
9616
+ }, _isSlot$7(K = n.t("kg.cancel")) ? K : {
9617
+ default: () => [K]
9589
9618
  }), createVNode(Button, {
9590
9619
  type: "primary",
9591
9620
  disabled: M.value,
@@ -9604,9 +9633,9 @@ const getProps$p = () => ({
9604
9633
  function Ce() {
9605
9634
  return createVNode(KgSubmitHeader, {
9606
9635
  isFullscreen: q.isFullscreen,
9607
- "onUpdate:isFullscreen": (x) => q.isFullscreen = x,
9608
- kgShowFullscreenButton: !_.value,
9609
- kgShowConfigButton: !_.value && e.kgShowConfigButton,
9636
+ "onUpdate:isFullscreen": (K) => q.isFullscreen = K,
9637
+ kgShowFullscreenButton: !m.value,
9638
+ kgShowConfigButton: !m.value && e.kgShowConfigButton,
9610
9639
  onKgCancel: ue
9611
9640
  }, null);
9612
9641
  }
@@ -9641,16 +9670,16 @@ const getProps$p = () => ({
9641
9670
  }) {
9642
9671
  provide(DI_KG_SLOTS, e.kgSlots);
9643
9672
  const r = useKgVar(), n = computed(() => r.store.isCreating(r.formID)), a = computed(() => r.store.isUpdating(r.formID)), o = computed(() => r.store.isCopying(r.formID)), s = computed(() => r.store.isDeleting(r.formID)), i = computed(() => r.store.getVarSubmitConfig(r.formID)), l = computed(() => {
9644
- var p, _, b, m;
9673
+ var p, m, b, _;
9645
9674
  switch (!0) {
9646
9675
  case n.value:
9647
9676
  return ((p = i.value) == null ? void 0 : p.crt_flg) !== 0;
9648
9677
  case a.value:
9649
- return ((_ = i.value) == null ? void 0 : _.upt_flg) !== 0;
9678
+ return ((m = i.value) == null ? void 0 : m.upt_flg) !== 0;
9650
9679
  case o.value:
9651
9680
  return ((b = i.value) == null ? void 0 : b.cpy_flg) !== 0;
9652
9681
  case s.value:
9653
- return ((m = i.value) == null ? void 0 : m.del_flg) !== 0;
9682
+ return ((_ = i.value) == null ? void 0 : _.del_flg) !== 0;
9654
9683
  }
9655
9684
  return !1;
9656
9685
  }), u = computed(() => !!r.isOtherRequesting.value), c = computed(() => {
@@ -9662,9 +9691,9 @@ const getProps$p = () => ({
9662
9691
  spinning: u.value
9663
9692
  }, {
9664
9693
  default: () => {
9665
- var p, _;
9694
+ var p, m;
9666
9695
  return [t.default ? t.default() : createVNode(Fragment, null, [createVNode(KgSearch, null, null), (p = t.beforeButton) == null ? void 0 : p.call(t), createVNode(KgButton, null, null), createVNode(KgTable, null, null), l.value && createVNode(KgSubmit, {
9667
- kgClass: (_ = e.kgSubmitClass) != null ? _ : ""
9696
+ kgClass: (m = e.kgSubmitClass) != null ? m : ""
9668
9697
  }, null)])];
9669
9698
  }
9670
9699
  });
@@ -9703,62 +9732,79 @@ const getProps$p = () => ({
9703
9732
  slots: t,
9704
9733
  emit: r
9705
9734
  }) {
9706
- const n = useKgVar(), a = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), o = computed(() => {
9707
- var c, g;
9708
- let u = "kg-table-td";
9709
- return ((c = a.value) == null ? void 0 : c.align) === "center" ? u += " kg-table-td--center" : ((g = a.value) == null ? void 0 : g.align) === "right" && (u += " kg-table-td--right"), u;
9710
- });
9711
- function s(u) {
9712
- var c;
9713
- ((c = a.value) == null ? void 0 : c.display_type) === KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK && (u.stopPropagation(), u.preventDefault(), u.detail === 1 && r("kgUpdateLinkClick"));
9735
+ const n = useKg(), a = useKgVar(), o = computed(() => e.kgVarName ? a.store.getVarGridDetail(a.formID, e.kgVarName) : null), s = computed(() => {
9736
+ var g, p;
9737
+ let c = "kg-table-td";
9738
+ return ((g = o.value) == null ? void 0 : g.align) === "center" ? c += " kg-table-td--center" : ((p = o.value) == null ? void 0 : p.align) === "right" && (c += " kg-table-td--right"), c;
9739
+ });
9740
+ function i(c) {
9741
+ var g, p, m;
9742
+ if (c.detail === 1)
9743
+ switch ((g = o.value) == null ? void 0 : g.display_type) {
9744
+ case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
9745
+ c.stopPropagation(), c.preventDefault(), r("kgUpdateLinkClick");
9746
+ break;
9747
+ case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
9748
+ {
9749
+ c.stopPropagation(), c.preventDefault();
9750
+ const b = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
9751
+ (m = n.router.value) == null || m.push({
9752
+ path: b.path,
9753
+ query: e.kgRow
9754
+ });
9755
+ }
9756
+ break;
9757
+ }
9714
9758
  }
9715
- function i() {
9716
- var u, c, g, p, _, b, m, v;
9717
- switch ((u = a.value) == null ? void 0 : u.display_type) {
9759
+ function l() {
9760
+ var c, g, p, m, b, _, v, y;
9761
+ switch ((c = o.value) == null ? void 0 : c.display_type) {
9718
9762
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
9719
- const y = KgUtil.tryParseJSON((c = a.value) == null ? void 0 : c.display_type_properties);
9763
+ const C = KgUtil.tryParseJSON((g = o.value) == null ? void 0 : g.display_type_properties);
9720
9764
  return createVNode(KgYesOrNo, {
9721
- kgValue: e.kgValue === ((g = y.yValue) != null ? g : 1)
9765
+ kgValue: e.kgValue === ((p = C.yValue) != null ? p : 1)
9722
9766
  }, null);
9723
9767
  }
9724
9768
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
9725
- const y = KgUtil.tryParseJSON((p = a.value) == null ? void 0 : p.display_type_properties), C = isArrayLike(y) && y.find((T) => T.value === e.kgValue);
9726
- return C ? createVNode(Tag, {
9727
- color: (_ = C.color) != null ? _ : "default"
9769
+ const C = KgUtil.tryParseJSON((m = o.value) == null ? void 0 : m.display_type_properties), T = isArrayLike(C) && C.find((E) => E.value === e.kgValue);
9770
+ return T ? createVNode(Tag, {
9771
+ color: (b = T.color) != null ? b : "default"
9728
9772
  }, {
9729
- default: () => [n.t(C.varName).value]
9730
- }) : l();
9773
+ default: () => [a.t(T.varName).value]
9774
+ }) : u();
9731
9775
  }
9732
9776
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
9733
- const y = KgUtil.tryParseJSON((b = a.value) == null ? void 0 : b.display_type_properties);
9777
+ const C = KgUtil.tryParseJSON((_ = o.value) == null ? void 0 : _.display_type_properties);
9734
9778
  return createVNode(KgProgressA, {
9735
- kgTextWidth: y.textWidth,
9736
- kgLeft: (m = e.kgRow) == null ? void 0 : m[y.leftColumn],
9737
- kgRight: (v = e.kgRow) == null ? void 0 : v[y.rightColumn]
9779
+ kgTextWidth: C.textWidth,
9780
+ kgLeft: (v = e.kgRow) == null ? void 0 : v[C.leftColumn],
9781
+ kgRight: (y = e.kgRow) == null ? void 0 : y[C.rightColumn]
9738
9782
  }, null);
9739
9783
  }
9740
9784
  case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
9741
9785
  return KgUtil.getFileSize(e.kgValue);
9742
9786
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
9743
- return l(!0);
9787
+ return u(!0);
9788
+ case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
9789
+ return u(!0);
9744
9790
  default:
9745
- return l();
9791
+ return u();
9746
9792
  }
9747
9793
  }
9748
- function l(u = !1) {
9749
- let c = e.kgValue;
9750
- isString$1(e.kgValue) && (c = e.kgValue.replaceAll("\\n", `
9794
+ function u(c = !1) {
9795
+ let g = e.kgValue;
9796
+ isString$1(e.kgValue) && (g = e.kgValue.replaceAll("\\n", `
9751
9797
  `));
9752
- let g = "";
9753
- return u && (g += "kg-table-td-update-link"), createVNode("pre", {
9754
- innerHTML: c,
9755
- class: g,
9756
- onClick: s
9798
+ let p = "";
9799
+ return c && (p += "kg-table-td-update-link"), createVNode("pre", {
9800
+ innerHTML: g,
9801
+ class: p,
9802
+ onClick: i
9757
9803
  }, null);
9758
9804
  }
9759
9805
  return () => createVNode("div", {
9760
- class: o.value
9761
- }, [i()]);
9806
+ class: s.value
9807
+ }, [l()]);
9762
9808
  }
9763
9809
  }), KgTable_Info = "";
9764
9810
  function _isSlot$6(e) {
@@ -9845,8 +9891,8 @@ const getProps$l = () => ({
9845
9891
  }) => {
9846
9892
  const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
9847
9893
  return s = watch(l, (c) => {
9848
- var g, p, _, b, m, v, y, C, T, I, V;
9849
- c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (_ = u == null ? void 0 : u.mult_flg) != null ? _ : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (T = u == null ? void 0 : u.pg_size_opt) != null ? T : 10, c.cmd_prm = (I = u == null ? void 0 : u.cmd_prm) != null ? I : void 0, c.button_display_type = (V = u == null ? void 0 : u.button_display_type) != null ? V : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
9894
+ var g, p, m, b, _, v, y, C, T, E, V;
9895
+ c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (m = u == null ? void 0 : u.mult_flg) != null ? m : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (_ = u == null ? void 0 : u.show_bottom_left_flg) != null ? _ : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (T = u == null ? void 0 : u.pg_size_opt) != null ? T : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (V = u == null ? void 0 : u.button_display_type) != null ? V : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
9850
9896
  }, {
9851
9897
  immediate: !0
9852
9898
  }), !1;
@@ -10016,8 +10062,8 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
10016
10062
  return o.onOpen(async ({
10017
10063
  model: s
10018
10064
  }) => {
10019
- var i, l, u, c, g, p, _, b, m, v;
10020
- return s.value.grd_var_nam = `${(l = (i = a.currentVarGridMaster.value) == null ? void 0 : i.grd_var_nam) != null ? l : ""}_COPY`, s.value.frm_id = (c = (u = a.currentVarGridMaster.value) == null ? void 0 : u.frm_id) != null ? c : "", s.value.usr_id = (p = (g = a.currentVarGridMaster.value) == null ? void 0 : g.usr_id) != null ? p : "", s.value.grp_nam = (b = (_ = a.currentVarGridMaster.value) == null ? void 0 : _.grp_nam) != null ? b : "", s.value.varGridDetails = (v = (m = a.currentVarGridMaster.value) == null ? void 0 : m.varGridDetails) != null ? v : [], !1;
10065
+ var i, l, u, c, g, p, m, b, _, v;
10066
+ return s.value.grd_var_nam = `${(l = (i = a.currentVarGridMaster.value) == null ? void 0 : i.grd_var_nam) != null ? l : ""}_COPY`, s.value.frm_id = (c = (u = a.currentVarGridMaster.value) == null ? void 0 : u.frm_id) != null ? c : "", s.value.usr_id = (p = (g = a.currentVarGridMaster.value) == null ? void 0 : g.usr_id) != null ? p : "", s.value.grp_nam = (b = (m = a.currentVarGridMaster.value) == null ? void 0 : m.grp_nam) != null ? b : "", s.value.varGridDetails = (v = (_ = a.currentVarGridMaster.value) == null ? void 0 : _.varGridDetails) != null ? v : [], !1;
10021
10067
  }), o.onBeforeOk(async ({
10022
10068
  model: s
10023
10069
  }) => (s.value, !1)), o.onOk(async () => (a.store.retrieve(a.formID), !1)), () => createVNode(KgSubmit, null, null);
@@ -10066,7 +10112,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10066
10112
  })
10067
10113
  }), message.success(n.t("kg.updateSuccess"));
10068
10114
  }
10069
- async function _() {
10115
+ async function m() {
10070
10116
  u.value = !0, await nextTick(), a.store.setIsCopying(FORM_ID__VAR_GRID_MASTER__SAVE, !0);
10071
10117
  }
10072
10118
  function b() {
@@ -10108,7 +10154,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10108
10154
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
10109
10155
  });
10110
10156
  }
10111
- function m() {
10157
+ function _() {
10112
10158
  return createVNode(Menu.SubMenu, {
10113
10159
  key: "2",
10114
10160
  title: n.t("kg.KgTable.varGridMasters"),
@@ -10117,15 +10163,15 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10117
10163
  default: () => {
10118
10164
  var T;
10119
10165
  let y, C;
10120
- return createVNode(Fragment, null, [(T = a.varGridMasters.value) == null ? void 0 : T.map((I) => {
10166
+ return createVNode(Fragment, null, [(T = a.varGridMasters.value) == null ? void 0 : T.map((E) => {
10121
10167
  var V;
10122
10168
  return createVNode(Menu.Item, {
10123
- key: I.id,
10124
- class: I.id === ((V = a.currentVarGridMaster.value) == null ? void 0 : V.id) ? "selected" : "",
10125
- "kg-var-nam": I.grd_var_nam,
10126
- onClick: () => a.store.setCurrentVarGridMasterID(a.formID, I.id)
10169
+ key: E.id,
10170
+ class: E.id === ((V = a.currentVarGridMaster.value) == null ? void 0 : V.id) ? "selected" : "",
10171
+ "kg-var-nam": E.grd_var_nam,
10172
+ onClick: () => a.store.setCurrentVarGridMasterID(a.formID, E.id)
10127
10173
  }, {
10128
- default: () => [a.t(I.grd_var_nam).value]
10174
+ default: () => [a.t(E.grd_var_nam).value]
10129
10175
  });
10130
10176
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
10131
10177
  key: "save-grid-view",
@@ -10134,7 +10180,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10134
10180
  default: () => [y]
10135
10181
  }), createVNode(Menu.Item, {
10136
10182
  key: "save-grid-view-as",
10137
- onClick: _
10183
+ onClick: m
10138
10184
  }, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMasterAs")) ? C : {
10139
10185
  default: () => [C]
10140
10186
  })]);
@@ -10164,7 +10210,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
10164
10210
  onOpenChange: g,
10165
10211
  selectable: !1
10166
10212
  }, {
10167
- default: () => [b(), m(), v()]
10213
+ default: () => [b(), _(), v()]
10168
10214
  })
10169
10215
  }), l.visible && createVNode(KgTableSettingConfigModal, {
10170
10216
  visible: l.visible,
@@ -10323,13 +10369,13 @@ function _useColumns() {
10323
10369
  index: p
10324
10370
  }) => p + 1
10325
10371
  }, ...(g = i == null ? void 0 : i.map((p) => {
10326
- function _() {
10372
+ function m() {
10327
10373
  return p.width === "auto" ? "auto" : Number(p.width) || KG_TABLE_TD_DEFAULT_WIDTH;
10328
10374
  }
10329
10375
  function b() {
10330
10376
  return e.t(p.var_nam).value;
10331
10377
  }
10332
- function m() {
10378
+ function _() {
10333
10379
  return p.ord === -1 ? null : p.ord === 0 ? "ascend" : p.ord === 1 ? "descend" : null;
10334
10380
  }
10335
10381
  function v() {
@@ -10344,7 +10390,7 @@ function _useColumns() {
10344
10390
  function C() {
10345
10391
  return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
10346
10392
  }
10347
- const T = _();
10393
+ const T = m();
10348
10394
  return {
10349
10395
  dataIndex: p.var_nam,
10350
10396
  title: b(),
@@ -10355,7 +10401,7 @@ function _useColumns() {
10355
10401
  fixed: v(),
10356
10402
  sorter: y(),
10357
10403
  align: C(),
10358
- defaultSortOrder: m(),
10404
+ defaultSortOrder: _(),
10359
10405
  customHeaderCell: () => ({
10360
10406
  "kg-frm-id": p.frm_id,
10361
10407
  "kg-var-nam": p.var_nam
@@ -10418,9 +10464,9 @@ const KgTable$1 = "", KgTable = defineComponent({
10418
10464
  scrollX: g
10419
10465
  } = _useColumns(), {
10420
10466
  isLoading: p
10421
- } = _useLoading(), _ = ref(null);
10422
- _useResizeObserver(_);
10423
- const b = computed(() => o.store.getVarButtonSearch(o.formID)), m = computed(() => {
10467
+ } = _useLoading(), m = ref(null);
10468
+ _useResizeObserver(m);
10469
+ const b = computed(() => o.store.getVarButtonSearch(o.formID)), _ = computed(() => {
10424
10470
  var N;
10425
10471
  return ((N = o.varGridConfig.value) == null ? void 0 : N.mult_flg) === 1;
10426
10472
  }), v = computed(() => {
@@ -10435,20 +10481,20 @@ const KgTable$1 = "", KgTable = defineComponent({
10435
10481
  }), T = computed(() => {
10436
10482
  var N, B;
10437
10483
  return (B = (N = o.varGridConfig.value) == null ? void 0 : N.id_clm) != null ? B : "id";
10438
- }), I = computed(() => {
10484
+ }), E = computed(() => {
10439
10485
  var N, B;
10440
10486
  return JSON.parse((B = (N = o.varGridConfig.value) == null ? void 0 : N.pg_size_opts) != null ? B : "[]");
10441
10487
  }), V = computed(() => {
10442
10488
  var N;
10443
10489
  return (N = o.varGridConfig.value) == null ? void 0 : N.pg_size_opt;
10444
- }), E = computed(() => {
10490
+ }), k = computed(() => {
10445
10491
  var N, B;
10446
10492
  return (B = (N = b.value) == null ? void 0 : N.cmd) != null ? B : null;
10447
- }), K = computed(() => {
10493
+ }), x = computed(() => {
10448
10494
  var B, q, H, ee, J, le, ue;
10449
10495
  let N = {
10450
- pageNo: k.pageIndex,
10451
- pageSize: k.pageSize,
10496
+ pageNo: I.pageIndex,
10497
+ pageSize: I.pageSize,
10452
10498
  ...$,
10453
10499
  ...(q = (B = s.model) == null ? void 0 : B.value) != null ? q : {}
10454
10500
  };
@@ -10465,16 +10511,16 @@ const KgTable$1 = "", KgTable = defineComponent({
10465
10511
  return {
10466
10512
  fixed: "left",
10467
10513
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
10468
- hideSelectAll: !m.value,
10514
+ hideSelectAll: !_.value,
10469
10515
  selectedRowKeys: R,
10470
10516
  preserveSelectedRowKeys: !1,
10471
10517
  onSelect: (B) => G(B),
10472
- onChange: (B) => m.value && L(B)
10518
+ onChange: (B) => _.value && L(B)
10473
10519
  };
10474
10520
  }), O = computed(() => {
10475
10521
  let N = "kg-table";
10476
10522
  return !y.value && !C.value && (N += " kg-table--no-bottom"), N;
10477
- }), w = ref([]), R = ref([]), k = reactive({
10523
+ }), w = ref([]), R = ref([]), I = reactive({
10478
10524
  pageIndex: 1,
10479
10525
  pageSize: 10,
10480
10526
  total: 0
@@ -10482,11 +10528,11 @@ const KgTable$1 = "", KgTable = defineComponent({
10482
10528
  column: void 0,
10483
10529
  order: void 0
10484
10530
  }), A = watch(V, (N) => {
10485
- N && (setTimeout(() => A()), k.pageSize = N), u.value = !0;
10531
+ N && (setTimeout(() => A()), I.pageSize = N), u.value = !0;
10486
10532
  });
10487
- watch(I, (N) => {
10488
- N.length > 0 && !N.includes(k.pageSize) && (k.pageSize = V.value);
10489
- }), watch([E, v, s.isReady], ([N, B, q]) => {
10533
+ watch(E, (N) => {
10534
+ N.length > 0 && !N.includes(I.pageSize) && (I.pageSize = V.value);
10535
+ }), watch([k, v, s.isReady], ([N, B, q]) => {
10490
10536
  N && B && q && !l.store.getIsRetrieved(o.formID) && D(!0);
10491
10537
  }, {
10492
10538
  immediate: !0
@@ -10520,22 +10566,22 @@ const KgTable$1 = "", KgTable = defineComponent({
10520
10566
  });
10521
10567
  async function q() {
10522
10568
  var H, ee;
10523
- if (!E.value) {
10569
+ if (!k.value) {
10524
10570
  Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10525
10571
  VarButton: b.value
10526
10572
  });
10527
10573
  return;
10528
10574
  }
10529
- N && (k.pageIndex = 1), l.store.setIsRetrieving(o.formID, !0);
10575
+ N && (I.pageIndex = 1), l.store.setIsRetrieving(o.formID, !0);
10530
10576
  try {
10531
10577
  const J = await httpClient().request({
10532
10578
  method: "GET",
10533
- url: E.value,
10534
- params: KgUtil.parseParams(K.value, o.formID, n)
10579
+ url: k.value,
10580
+ params: KgUtil.parseParams(x.value, o.formID, n)
10535
10581
  }, {
10536
10582
  successMessageMode: "none"
10537
10583
  });
10538
- J ? isArrayLike(J) ? (w.value = J, k.total = J.length) : "total" in J && "records" in J && (w.value = (H = J.records) != null ? H : [], k.total = (ee = J.total) != null ? ee : 0) : (w.value = [], k.total = 0), l.store.emit(o.formID, "retrieve", J), M(), await nextTick(), l.store.setIsRetrieved(o.formID, !0);
10584
+ J ? isArrayLike(J) ? (w.value = J, I.total = J.length) : "total" in J && "records" in J && (w.value = (H = J.records) != null ? H : [], I.total = (ee = J.total) != null ? ee : 0) : (w.value = [], I.total = 0), l.store.emit(o.formID, "retrieve", J), M(), await nextTick(), l.store.setIsRetrieved(o.formID, !0);
10539
10585
  } catch (J) {
10540
10586
  throw J;
10541
10587
  } finally {
@@ -10551,7 +10597,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10551
10597
  }
10552
10598
  function G(N) {
10553
10599
  var B, q;
10554
- switch (m.value) {
10600
+ switch (_.value) {
10555
10601
  case !0:
10556
10602
  {
10557
10603
  const H = N[T.value];
@@ -10586,7 +10632,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10586
10632
  }
10587
10633
  }
10588
10634
  function W(N, B) {
10589
- B !== k.pageSize ? (k.pageIndex = 1, k.pageSize = B) : k.pageIndex = N, D();
10635
+ B !== I.pageSize ? (I.pageIndex = 1, I.pageSize = B) : I.pageIndex = N, D();
10590
10636
  }
10591
10637
  function Y(N) {
10592
10638
  R.value = [N[T.value]], l.store.setSelectedRows(o.formID, R.value.map((B) => {
@@ -10641,7 +10687,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10641
10687
  return () => createVNode("div", {
10642
10688
  class: O.value,
10643
10689
  "kg-frm-id": o.formID,
10644
- ref: _
10690
+ ref: m
10645
10691
  }, [createVNode(Table, {
10646
10692
  class: "kg-flex-table",
10647
10693
  size: "small",
@@ -10671,7 +10717,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10671
10717
  class: "left"
10672
10718
  }, [y.value && createVNode(KgTableInfo, {
10673
10719
  kgShowClearCheck: R.value.length > 0,
10674
- kgShowClearTable: k.total > 0,
10720
+ kgShowClearTable: I.total > 0,
10675
10721
  kgShowLocate: R.value.length === 1,
10676
10722
  kgTotal: R.value.length,
10677
10723
  kgDisabled: p.value
@@ -10679,14 +10725,14 @@ const KgTable$1 = "", KgTable = defineComponent({
10679
10725
  class: "right"
10680
10726
  }, [C.value && createVNode(Pagination, {
10681
10727
  size: "default",
10682
- current: k.pageIndex,
10683
- pageSize: k.pageSize,
10684
- pageSizeOptions: I.value.map((N) => String(N)),
10685
- total: k.total,
10728
+ current: I.pageIndex,
10729
+ pageSize: I.pageSize,
10730
+ pageSizeOptions: E.value.map((N) => String(N)),
10731
+ total: I.total,
10686
10732
  showSizeChanger: !0,
10687
10733
  showQuickJumper: !1,
10688
10734
  hideOnSinglePage: !1,
10689
- disabled: p.value || k.total === 0,
10735
+ disabled: p.value || I.total === 0,
10690
10736
  locale: {
10691
10737
  page: ""
10692
10738
  },
@@ -10801,26 +10847,26 @@ const KgTable$1 = "", KgTable = defineComponent({
10801
10847
  props: getProps$f(),
10802
10848
  setup(e) {
10803
10849
  const t = useKg(), r = useKgVar(), n = useKgSearch(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
10804
- var p, _;
10805
- return a.value ? (_ = (p = a.value) == null ? void 0 : p.cmd) != null ? _ : "" : null;
10850
+ var p, m;
10851
+ return a.value ? (m = (p = a.value) == null ? void 0 : p.cmd) != null ? m : "" : null;
10806
10852
  }), s = computed(() => {
10807
- var p, _;
10808
- return (_ = (p = a.value) == null ? void 0 : p.cmd_method) != null ? _ : "GET";
10853
+ var p, m;
10854
+ return (m = (p = a.value) == null ? void 0 : p.cmd_method) != null ? m : "GET";
10809
10855
  }), i = computed(() => {
10810
- var _, b, m, v, y, C;
10856
+ var m, b, _, v, y, C;
10811
10857
  let p = {
10812
- ...(_ = n.model.value) != null ? _ : {}
10858
+ ...(m = n.model.value) != null ? m : {}
10813
10859
  };
10814
10860
  return a.value && (p = {
10815
10861
  ...p,
10816
- ...KgVarUtil.parseCommandParameter((m = (b = a.value) == null ? void 0 : b.cmd_prm) != null ? m : "")
10862
+ ...KgVarUtil.parseCommandParameter((_ = (b = a.value) == null ? void 0 : b.cmd_prm) != null ? _ : "")
10817
10863
  }), (v = r.varGridConfig.value) != null && v.cmd_prm && (p = {
10818
10864
  ...p,
10819
10865
  ...KgVarUtil.parseCommandParameter((y = r.varGridConfig.value.cmd_prm) != null ? y : "")
10820
10866
  }), ((C = r.varGridConfig.value) == null ? void 0 : C.convert_sort_field_to_under_score_flg) === 1 && p.column && (p.column = snakeCase$1(p.column)), p;
10821
10867
  }), l = ref(!1);
10822
10868
  async function u() {
10823
- var p, _, b;
10869
+ var p, m, b;
10824
10870
  if (!(e.onKgClick && await e.onKgClick())) {
10825
10871
  if (!o.value) {
10826
10872
  Logger.error("\u5BFC\u51FA\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -10830,7 +10876,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10830
10876
  }
10831
10877
  l.value = !0;
10832
10878
  try {
10833
- const m = await httpClient().request({
10879
+ const _ = await httpClient().request({
10834
10880
  method: s.value,
10835
10881
  url: o.value,
10836
10882
  params: i.value,
@@ -10839,9 +10885,9 @@ const KgTable$1 = "", KgTable = defineComponent({
10839
10885
  joinParamsToUrl: !0,
10840
10886
  isTransformResponse: !1
10841
10887
  });
10842
- KgUtil.downloadFile(m, `${r.t((_ = (p = a.value) == null ? void 0 : p.export_excel_filename) != null ? _ : "export").value}.${(b = a.value) == null ? void 0 : b.export_excel_suffix}`);
10843
- } catch (m) {
10844
- throw m;
10888
+ KgUtil.downloadFile(_, `${r.t((m = (p = a.value) == null ? void 0 : p.export_excel_filename) != null ? m : "export").value}.${(b = a.value) == null ? void 0 : b.export_excel_suffix}`);
10889
+ } catch (_) {
10890
+ throw _;
10845
10891
  } finally {
10846
10892
  l.value = !1;
10847
10893
  }
@@ -10875,25 +10921,25 @@ const KgTable$1 = "", KgTable = defineComponent({
10875
10921
  attrs: r
10876
10922
  }) {
10877
10923
  const n = useKg(), a = useKgVar(), o = useKgSearch(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
10878
- var _, b;
10879
- return s.value ? (b = (_ = s.value) == null ? void 0 : _.cmd) != null ? b : "" : null;
10924
+ var m, b;
10925
+ return s.value ? (b = (m = s.value) == null ? void 0 : m.cmd) != null ? b : "" : null;
10880
10926
  }), l = computed(() => {
10881
- var _, b;
10882
- return (b = (_ = s.value) == null ? void 0 : _.cmd_method) != null ? b : "POST";
10927
+ var m, b;
10928
+ return (b = (m = s.value) == null ? void 0 : m.cmd_method) != null ? b : "POST";
10883
10929
  });
10884
10930
  computed(() => {
10885
- var b, m, v;
10886
- let _ = {
10931
+ var b, _, v;
10932
+ let m = {
10887
10933
  ...(b = o.model.value) != null ? b : {}
10888
10934
  };
10889
- return s.value && (_ = {
10890
- ..._,
10891
- ...KgVarUtil.parseCommandParameter((v = (m = s.value) == null ? void 0 : m.cmd_prm) != null ? v : "")
10892
- }), _;
10935
+ return s.value && (m = {
10936
+ ...m,
10937
+ ...KgVarUtil.parseCommandParameter((v = (_ = s.value) == null ? void 0 : _.cmd_prm) != null ? v : "")
10938
+ }), m;
10893
10939
  });
10894
10940
  const u = ref(!1);
10895
- async function c(_) {
10896
- var b, m;
10941
+ async function c(m) {
10942
+ var b, _;
10897
10943
  if (!i.value)
10898
10944
  return Logger.error("\u5BFC\u5165\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10899
10945
  VarButton: s.value
@@ -10901,7 +10947,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10901
10947
  u.value = !0;
10902
10948
  try {
10903
10949
  const v = new FormData();
10904
- v.append("file", _), await httpClient().axiosInstance.request({
10950
+ v.append("file", m), await httpClient().axiosInstance.request({
10905
10951
  method: l.value,
10906
10952
  baseURL: window._CONFIG.domianURL,
10907
10953
  url: i.value,
@@ -10910,7 +10956,7 @@ const KgTable$1 = "", KgTable = defineComponent({
10910
10956
  "Content-Type": "multipart/form-data;charset=UTF-8",
10911
10957
  ignoreCancelToken: !0
10912
10958
  }
10913
- }), message.success(n.t("kg.importSuccess")), (m = (b = o.search).value) == null || m.call(b, !0);
10959
+ }), message.success(n.t("kg.importSuccess")), (_ = (b = o.search).value) == null || _.call(b, !0);
10914
10960
  } catch (v) {
10915
10961
  throw v;
10916
10962
  } finally {
@@ -11010,7 +11056,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11010
11056
  setup(e) {
11011
11057
  const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
11012
11058
  async function o() {
11013
- var g, p, _;
11059
+ var g, p, m;
11014
11060
  if (e.onKgClick && await e.onKgClick())
11015
11061
  return;
11016
11062
  const l = (g = e.kgButton) == null ? void 0 : g.cmd;
@@ -11022,24 +11068,24 @@ const KgTable$1 = "", KgTable = defineComponent({
11022
11068
  }
11023
11069
  let u = null;
11024
11070
  const c = async () => {
11025
- var m, v, y, C, T, I, V;
11071
+ var _, v, y, C, T, E, V;
11026
11072
  u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
11027
11073
  const b = a.selectedRows.value;
11028
11074
  try {
11029
11075
  await httpClient().request({
11030
- method: (v = (m = e.kgButton) == null ? void 0 : m.cmd_method) != null ? v : "POST",
11076
+ method: (v = (_ = e.kgButton) == null ? void 0 : _.cmd_method) != null ? v : "POST",
11031
11077
  url: l,
11032
11078
  params: KgVarUtil.parseCommandParameter((C = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? C : ""),
11033
11079
  data: b != null ? b : []
11034
- }), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((V = (I = n.search).value) == null || V.call(I, !0));
11035
- } catch (E) {
11036
- console.error(E);
11080
+ }), ((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1 && ((V = (E = n.search).value) == null || V.call(E, !0));
11081
+ } catch (k) {
11082
+ console.error(k);
11037
11083
  } finally {
11038
11084
  r.store.setIsOtherRequesting(r.formID, !1), u == null || u.hideLoading();
11039
11085
  }
11040
11086
  };
11041
11087
  if (((p = e.kgButton) == null ? void 0 : p.show_modal_flg) === 1) {
11042
- const b = KgUtil.tryParseJSON((_ = e.kgButton) == null ? void 0 : _.modal_props);
11088
+ const b = KgUtil.tryParseJSON((m = e.kgButton) == null ? void 0 : m.modal_props);
11043
11089
  typeof b.content == "string" && (b.content = r.t(b.content).value), u = KgUtil.confirm({
11044
11090
  onOk: () => c(),
11045
11091
  ...b
@@ -11259,8 +11305,8 @@ const KgButtonItem = defineComponent({
11259
11305
  props: getProps$f(),
11260
11306
  setup(e) {
11261
11307
  const t = useKg(), r = useKgVar(), n = useKgTable(), a = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
11262
- var u, c, g, p, _, b, m, v;
11263
- return e.kgDisabled !== void 0 ? e.kgDisabled : !!(n.isRetrieving.value || ((u = a.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (c = n.selectedRows.value) == null ? void 0 : c.length) != null ? g : 0) === 0 || ((p = a.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((b = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? b : 0) > 1 || ((m = a.value) == null ? void 0 : m.permission_type) === 2 && !t.p((v = a.value) == null ? void 0 : v.permission_code));
11308
+ var u, c, g, p, m, b, _, v;
11309
+ return e.kgDisabled !== void 0 ? e.kgDisabled : !!(n.isRetrieving.value || ((u = a.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (c = n.selectedRows.value) == null ? void 0 : c.length) != null ? g : 0) === 0 || ((p = a.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((b = (m = n.selectedRows.value) == null ? void 0 : m.length) != null ? b : 0) > 1 || ((_ = a.value) == null ? void 0 : _.permission_type) === 2 && !t.p((v = a.value) == null ? void 0 : v.permission_code));
11264
11310
  }), s = computed(() => {
11265
11311
  let u = "kg-button-item";
11266
11312
  switch (e.kgColor) {
@@ -11270,7 +11316,7 @@ const KgButtonItem = defineComponent({
11270
11316
  }
11271
11317
  return u;
11272
11318
  }), i = computed(() => {
11273
- var c, g, p, _;
11319
+ var c, g, p, m;
11274
11320
  return {
11275
11321
  ...e,
11276
11322
  class: s.value,
@@ -11278,7 +11324,7 @@ const KgButtonItem = defineComponent({
11278
11324
  "kg-var-btn-id": (c = a.value) == null ? void 0 : c.id,
11279
11325
  "kg-frm-id": (g = a.value) == null ? void 0 : g.frm_id,
11280
11326
  "kg-var-nam": (p = a.value) == null ? void 0 : p.var_nam,
11281
- "kg-cmd": (_ = a.value) == null ? void 0 : _.cmd
11327
+ "kg-cmd": (m = a.value) == null ? void 0 : m.cmd
11282
11328
  };
11283
11329
  });
11284
11330
  function l() {
@@ -11326,15 +11372,15 @@ const getProps$e = () => ({
11326
11372
  props: getProps$e(),
11327
11373
  setup(e) {
11328
11374
  const t = useKg(), r = useKgVar(), n = useKgButton(), a = computed(() => !1);
11329
- function o(_) {
11330
- return n.store.emit(r.formID, "click", _);
11375
+ function o(m) {
11376
+ return n.store.emit(r.formID, "click", m);
11331
11377
  }
11332
- function s(_) {
11378
+ function s(m) {
11333
11379
  if (e.kgDisabled)
11334
- return e.kgDisabled(_);
11380
+ return e.kgDisabled(m);
11335
11381
  }
11336
- function i(_) {
11337
- switch (_.primary_flg) {
11382
+ function i(m) {
11383
+ switch (m.primary_flg) {
11338
11384
  case 1:
11339
11385
  return !0;
11340
11386
  case 0:
@@ -11343,13 +11389,13 @@ const getProps$e = () => ({
11343
11389
  return;
11344
11390
  }
11345
11391
  }
11346
- function l(_) {
11347
- if (r.t(_.var_nam).value !== _.var_nam)
11348
- return r.t(_.var_nam).value;
11392
+ function l(m) {
11393
+ if (r.t(m.var_nam).value !== m.var_nam)
11394
+ return r.t(m.var_nam).value;
11349
11395
  }
11350
11396
  function u() {
11351
- var _, b;
11352
- if (!r.varButtons.value || ((_ = r.varButtons.value) == null ? void 0 : _.length) === 0)
11397
+ var m, b;
11398
+ if (!r.varButtons.value || ((m = r.varButtons.value) == null ? void 0 : m.length) === 0)
11353
11399
  return null;
11354
11400
  switch ((b = r.varGridConfig.value) == null ? void 0 : b.button_display_type) {
11355
11401
  case KG_BUTTON_DISPLAY_TYPE.SELECT:
@@ -11358,22 +11404,22 @@ const getProps$e = () => ({
11358
11404
  return g();
11359
11405
  }
11360
11406
  }
11361
- function c(_) {
11407
+ function c(m) {
11362
11408
  return createVNode(KgButtonItem, {
11363
- kgButton: _,
11364
- kgVarName: _.var_nam,
11365
- kgType: _.typ,
11366
- kgIcon: _.icon,
11367
- kgText: l(_),
11368
- kgColor: _.color,
11369
- kgPrimary: i(_),
11370
- kgDisabled: s(_),
11371
- onKgClick: () => o(_)
11409
+ kgButton: m,
11410
+ kgVarName: m.var_nam,
11411
+ kgType: m.typ,
11412
+ kgIcon: m.icon,
11413
+ kgText: l(m),
11414
+ kgColor: m.color,
11415
+ kgPrimary: i(m),
11416
+ kgDisabled: s(m),
11417
+ onKgClick: () => o(m)
11372
11418
  }, null);
11373
11419
  }
11374
11420
  function g() {
11375
- var _;
11376
- return (_ = r.varButtons.value) == null ? void 0 : _.filter((b) => b.typ !== KG_BUTTON_TYPE.SEARCH).map((b) => c(b));
11421
+ var m;
11422
+ return (m = r.varButtons.value) == null ? void 0 : m.filter((b) => b.typ !== KG_BUTTON_TYPE.SEARCH).map((b) => c(b));
11377
11423
  }
11378
11424
  function p() {
11379
11425
  return createVNode(Dropdown, {
@@ -11387,10 +11433,10 @@ const getProps$e = () => ({
11387
11433
  }),
11388
11434
  overlay: () => createVNode(Menu, null, {
11389
11435
  default: () => {
11390
- var _, b;
11391
- return [(b = (_ = r.varButtons.value) == null ? void 0 : _.filter((m) => m.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : b.filter((m) => !(m.permission_type !== 2 && !t.p(m.permission_code))).map((m) => {
11436
+ var m, b;
11437
+ return [(b = (m = r.varButtons.value) == null ? void 0 : m.filter((_) => _.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : b.filter((_) => !(_.permission_type !== 2 && !t.p(_.permission_code))).map((_) => {
11392
11438
  let v;
11393
- return createVNode(Menu.Item, null, _isSlot$3(v = c(m)) ? v : {
11439
+ return createVNode(Menu.Item, null, _isSlot$3(v = c(_)) ? v : {
11394
11440
  default: () => [v]
11395
11441
  });
11396
11442
  })];
@@ -11399,14 +11445,14 @@ const getProps$e = () => ({
11399
11445
  });
11400
11446
  }
11401
11447
  return () => {
11402
- let _;
11448
+ let m;
11403
11449
  return createVNode("div", {
11404
11450
  class: "kg-button",
11405
11451
  "kg-frm-id": r.formID
11406
11452
  }, [createVNode(Spin, {
11407
11453
  spinning: a.value
11408
- }, _isSlot$3(_ = u()) ? _ : {
11409
- default: () => [_]
11454
+ }, _isSlot$3(m = u()) ? m : {
11455
+ default: () => [m]
11410
11456
  })]);
11411
11457
  };
11412
11458
  }
@@ -11803,40 +11849,40 @@ const leftVarProfileDetailColumns = (e) => {
11803
11849
  const r = useKg(), n = useKgVar(FORM_ID__VAR_PROFILE_MASTER, !0, 1), a = useKgSearch(FORM_ID__VAR_PROFILE_MASTER), o = useKgButton(FORM_ID__VAR_PROFILE_MASTER), s = useKgSubmit(FORM_ID__VAR_PROFILE_MASTER), i = useKgVar(e.hostFormID);
11804
11850
  s.onOpen(async ({
11805
11851
  isCreating: b,
11806
- isUpdating: m,
11852
+ isUpdating: _,
11807
11853
  isCopying: v,
11808
11854
  row: y,
11809
11855
  model: C
11810
11856
  }) => {
11811
- var I, V, E;
11857
+ var E, V, k;
11812
11858
  const T = i.store.getSystemVarProfileDetails(i.formID);
11813
11859
  switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
11814
11860
  case b:
11815
11861
  u.value = [];
11816
11862
  break;
11817
- case m:
11863
+ case _:
11818
11864
  case v:
11819
11865
  if (y != null && y.id)
11820
11866
  try {
11821
11867
  s.store.setIsLoading(n.formID, !0);
11822
- const K = await QueryByID({
11868
+ const x = await QueryByID({
11823
11869
  params: {
11824
11870
  id: y.id
11825
11871
  }
11826
11872
  });
11827
11873
  l.value = l.value.map((O) => {
11828
11874
  var R;
11829
- const w = (R = K == null ? void 0 : K.varProfileDetails) == null ? void 0 : R.find((k) => k.var_nam === O.var_nam);
11875
+ const w = (R = x == null ? void 0 : x.varProfileDetails) == null ? void 0 : R.find((I) => I.var_nam === O.var_nam);
11830
11876
  return w ? {
11831
11877
  ...O,
11832
11878
  ...w,
11833
11879
  id: O.id
11834
11880
  } : O;
11835
11881
  });
11836
- const F = (V = (I = K == null ? void 0 : K.varProfileDetails) == null ? void 0 : I.map((O) => O.var_nam)) != null ? V : [];
11882
+ const F = (V = (E = x == null ? void 0 : x.varProfileDetails) == null ? void 0 : E.map((O) => O.var_nam)) != null ? V : [];
11837
11883
  u.value = l.value.filter((O) => F.includes(O.var_nam)).map((O) => O.id);
11838
- } catch (K) {
11839
- throw K;
11884
+ } catch (x) {
11885
+ throw x;
11840
11886
  } finally {
11841
11887
  s.store.setIsLoading(n.formID, !1);
11842
11888
  }
@@ -11846,7 +11892,7 @@ const leftVarProfileDetailColumns = (e) => {
11846
11892
  }
11847
11893
  switch (!0) {
11848
11894
  case v:
11849
- C.value.prf_var_nam = ((E = C.value.prf_var_nam) != null ? E : "") + "_COPY";
11895
+ C.value.prf_var_nam = ((k = C.value.prf_var_nam) != null ? k : "") + "_COPY";
11850
11896
  break;
11851
11897
  }
11852
11898
  return !1;
@@ -11854,21 +11900,21 @@ const leftVarProfileDetailColumns = (e) => {
11854
11900
  model: b
11855
11901
  }) => {
11856
11902
  var v, y;
11857
- const m = b.value;
11858
- return m.frm_id = i.formID, m.varProfileDetails = (y = (v = l.value) == null ? void 0 : v.filter((C) => u.value.includes(C.id))) != null ? y : [], !1;
11903
+ const _ = b.value;
11904
+ return _.frm_id = i.formID, _.varProfileDetails = (y = (v = l.value) == null ? void 0 : v.filter((C) => u.value.includes(C.id))) != null ? y : [], !1;
11859
11905
  }), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
11860
11906
  row: b
11861
- }) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
11907
+ }) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((_) => {
11862
11908
  KgUtil.confirm({
11863
11909
  content: r.t("kg.KgSearchConfigModal.canNotUpdateSystemVarProfileMaster"),
11864
11910
  okButtonProps: {
11865
11911
  danger: !1
11866
11912
  },
11867
11913
  onOk: () => {
11868
- n.store.setIsCopying(n.formID, !0), m(!0);
11914
+ n.store.setIsCopying(n.formID, !0), _(!0);
11869
11915
  },
11870
11916
  onCancel: () => {
11871
- m(!0);
11917
+ _(!0);
11872
11918
  }
11873
11919
  });
11874
11920
  }) : Promise.resolve(!1)), o.onDeleteOk(() => (i.store.retrieve(i.formID), Promise.resolve(!1)));
@@ -11877,7 +11923,7 @@ const leftVarProfileDetailColumns = (e) => {
11877
11923
  "KgForm.Item": {
11878
11924
  varProfileDetails: ({
11879
11925
  varName: b,
11880
- props: m,
11926
+ props: _,
11881
11927
  model: v,
11882
11928
  varConfig: y,
11883
11929
  varProfileDetail: C,
@@ -11885,21 +11931,21 @@ const leftVarProfileDetailColumns = (e) => {
11885
11931
  }) => createVNode(Transfer, {
11886
11932
  dataSource: l.value,
11887
11933
  targetKeys: u.value,
11888
- "onUpdate:targetKeys": (I) => u.value = I,
11889
- rowKey: (I) => I.id,
11934
+ "onUpdate:targetKeys": (E) => u.value = E,
11935
+ rowKey: (E) => E.id,
11890
11936
  showSearch: !0,
11891
11937
  showSelectAll: !1,
11892
11938
  searchPlaceholder: " ",
11893
- filterOption: (I, V) => {
11894
- var E;
11895
- return !!((E = V.var_nam) != null && E.includes(I));
11939
+ filterOption: (E, V) => {
11940
+ var k;
11941
+ return !!((k = V.var_nam) != null && k.includes(E));
11896
11942
  }
11897
11943
  }, {
11898
11944
  children: ({
11899
- direction: I,
11945
+ direction: E,
11900
11946
  filteredItems: V,
11901
- selectedKeys: E,
11902
- disabled: K,
11947
+ selectedKeys: k,
11948
+ disabled: x,
11903
11949
  onItemSelectAll: F,
11904
11950
  onItemSelect: O
11905
11951
  }) => createVNode(Table, {
@@ -11907,18 +11953,18 @@ const leftVarProfileDetailColumns = (e) => {
11907
11953
  class: "kg-flex-table",
11908
11954
  size: "small",
11909
11955
  scroll: {
11910
- x: I === "left" ? "370px" : "1244px",
11956
+ x: E === "left" ? "370px" : "1244px",
11911
11957
  y: "auto"
11912
11958
  },
11913
- columns: I === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
11959
+ columns: E === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
11914
11960
  rowKey: "id",
11915
11961
  dataSource: V,
11916
11962
  customRow: (w) => ({
11917
- onClick: (R) => _(R, w, I, E)
11963
+ onClick: (R) => m(R, w, E, k)
11918
11964
  }),
11919
11965
  rowSelection: g({
11920
- disabled: K,
11921
- selectedKeys: E,
11966
+ disabled: x,
11967
+ selectedKeys: k,
11922
11968
  onItemSelectAll: F,
11923
11969
  onItemSelect: O
11924
11970
  })
@@ -11932,7 +11978,7 @@ const leftVarProfileDetailColumns = (e) => {
11932
11978
  });
11933
11979
  const g = ({
11934
11980
  disabled: b,
11935
- selectedKeys: m,
11981
+ selectedKeys: _,
11936
11982
  onItemSelectAll: v,
11937
11983
  onItemSelect: y
11938
11984
  }) => ({
@@ -11940,42 +11986,42 @@ const leftVarProfileDetailColumns = (e) => {
11940
11986
  disabled: b || C.disabled
11941
11987
  }),
11942
11988
  onSelectAll(C, T) {
11943
- const I = T.filter((V) => !V.disabled).map(({
11989
+ const E = T.filter((V) => !V.disabled).map(({
11944
11990
  key: V
11945
11991
  }) => V);
11946
- v(I, C);
11992
+ v(E, C);
11947
11993
  },
11948
11994
  onSelect({
11949
11995
  key: C
11950
11996
  }, T) {
11951
11997
  y(C, T);
11952
11998
  },
11953
- selectedRowKeys: m,
11999
+ selectedRowKeys: _,
11954
12000
  columnWidth: 32
11955
12001
  });
11956
12002
  async function p() {
11957
- const b = watch(a.isReady, async (m) => {
12003
+ const b = watch(a.isReady, async (_) => {
11958
12004
  var v, y;
11959
- m && a.model.value && (setTimeout(() => b(), 0), a.store.patchModel(n.formID, {
12005
+ _ && a.model.value && (setTimeout(() => b(), 0), a.store.patchModel(n.formID, {
11960
12006
  frm_id: e.hostFormID
11961
12007
  }), (y = (v = a.search).value) == null || y.call(v));
11962
12008
  }, {
11963
12009
  immediate: !0
11964
12010
  });
11965
12011
  }
11966
- function _(b, m, v, y) {
12012
+ function m(b, _, v, y) {
11967
12013
  if (!DomUtil.isNotClickable(b.target, ["ant-input"]))
11968
12014
  switch (y.length = 0, b.detail) {
11969
12015
  case 1:
11970
- y[0] = m.id;
12016
+ y[0] = _.id;
11971
12017
  break;
11972
12018
  case 2:
11973
12019
  switch (v) {
11974
12020
  case "left":
11975
- u.value.push(m.id);
12021
+ u.value.push(_.id);
11976
12022
  break;
11977
12023
  case "right":
11978
- u.value = without$1(u.value, m.id);
12024
+ u.value = without$1(u.value, _.id);
11979
12025
  break;
11980
12026
  }
11981
12027
  break;
@@ -12066,9 +12112,9 @@ function _useLayoutHeaderResizeObserver() {
12066
12112
  return onMounted(() => {
12067
12113
  const t = document.querySelector("div.jeecg-layout-header-center");
12068
12114
  t && (e = new ResizeObserver((r) => {
12069
- var o, s;
12070
- const n = (s = (o = r[0].borderBoxSize[0]) == null ? void 0 : o.inlineSize) != null ? s : 0, a = document.querySelector("#kg-search-header-teleport");
12071
- a && (a.style.width = `${n}px`);
12115
+ var s, i;
12116
+ const n = t.getBoundingClientRect().left, a = (i = (s = r[0].borderBoxSize[0]) == null ? void 0 : s.inlineSize) != null ? i : 0, o = document.querySelector("#kg-search-header-teleport");
12117
+ o && (o.style.left = `${n}px`, o.style.width = `${a}px`);
12072
12118
  }), e.observe(t));
12073
12119
  }), onUnmounted(() => {
12074
12120
  e == null || e.disconnect();
@@ -12078,27 +12124,27 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12078
12124
  name: "KgSearch",
12079
12125
  props: getProps$9(),
12080
12126
  setup(e) {
12081
- const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
12127
+ const t = inject(DI_KG_SLOTS, null), r = useKg(), n = useKgVar(), a = useKgSearch(), o = useKgTable();
12082
12128
  _useLayoutHeaderResizeObserver();
12083
- const o = computed(() => r.store.getFormLevel(r.formID)), s = computed(() => r.store.getVarProfileConfig(r.formID)), i = computed(() => {
12129
+ const s = computed(() => n.store.getFormLevel(n.formID)), i = computed(() => n.store.getVarProfileConfig(n.formID)), l = computed(() => {
12084
12130
  var P;
12085
- return o.value > 0 ? !1 : ((P = s.value) == null ? void 0 : P.header_teleport_flg) !== 0;
12086
- }), l = computed(() => getDefaultHeight(r.currentVarProfileDetails.value, i.value)), u = computed(() => getMaxHeight(r.currentVarProfileDetails.value, i.value)), c = computed(() => i.value ? 1 : HEADER_HEIGHT), g = computed(() => {
12131
+ return s.value > 0 ? !1 : ((P = i.value) == null ? void 0 : P.header_teleport_flg) !== 0;
12132
+ }), u = computed(() => getDefaultHeight(n.currentVarProfileDetails.value, l.value)), c = computed(() => getMaxHeight(n.currentVarProfileDetails.value, l.value)), g = computed(() => l.value ? 1 : HEADER_HEIGHT), p = computed(() => {
12087
12133
  var P, U;
12088
- return !!(a.isRetrieving.value || ((P = T.value) == null ? void 0 : P.permission_type) === 2 && !t.p((U = T.value) == null ? void 0 : U.permission_code));
12089
- }), p = computed(() => !!a.isRetrieving.value), _ = computed(() => !!a.isRetrieving.value), b = ref(null), m = ref({
12090
- kgHeight: c.value
12091
- }), v = ref({
12134
+ return !!(o.isRetrieving.value || ((P = E.value) == null ? void 0 : P.permission_type) === 2 && !r.p((U = E.value) == null ? void 0 : U.permission_code));
12135
+ }), m = computed(() => !!o.isRetrieving.value), b = computed(() => !!o.isRetrieving.value), _ = ref(null), v = ref({
12136
+ kgHeight: g.value
12137
+ }), y = ref({
12092
12138
  visible: !1
12093
12139
  });
12094
- let y;
12095
- const C = computed(() => m.value.kgHeight === c.value), T = computed(() => r.store.getVarButtonSearch(r.formID)), I = computed(() => {
12140
+ let C;
12141
+ const T = computed(() => v.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), V = computed(() => {
12096
12142
  var P, U, W;
12097
- if (r.t((P = T.value) == null ? void 0 : P.var_nam).value !== ((U = T.value) == null ? void 0 : U.var_nam))
12098
- return r.t((W = T.value) == null ? void 0 : W.var_nam).value;
12099
- }), V = computed(() => {
12143
+ if (n.t((P = E.value) == null ? void 0 : P.var_nam).value !== ((U = E.value) == null ? void 0 : U.var_nam))
12144
+ return n.t((W = E.value) == null ? void 0 : W.var_nam).value;
12145
+ }), k = computed(() => {
12100
12146
  var P;
12101
- switch ((P = T.value) == null ? void 0 : P.primary_flg) {
12147
+ switch ((P = E.value) == null ? void 0 : P.primary_flg) {
12102
12148
  case 1:
12103
12149
  return !0;
12104
12150
  case 0:
@@ -12106,133 +12152,140 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12106
12152
  default:
12107
12153
  return !0;
12108
12154
  }
12109
- }), E = computed(() => {
12155
+ }), x = computed(() => {
12110
12156
  var P;
12111
- return ((P = s.value) == null ? void 0 : P.vis_flg) === 1;
12112
- }), K = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)), F = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), O = computed(() => {
12157
+ return ((P = i.value) == null ? void 0 : P.vis_flg) === 1;
12158
+ }), F = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), O = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), w = computed(() => {
12113
12159
  let P = "kg-search";
12114
- return E.value && (P += " kg-search--visible"), i.value && (P += " kg-search--teleport"), P;
12160
+ return x.value && (P += " kg-search--visible"), l.value && (P += " kg-search--teleport"), P;
12115
12161
  });
12116
- watch(r.currentVarProfileDetails, (P) => {
12162
+ watch(n.currentVarProfileDetails, (P) => {
12117
12163
  if (P) {
12118
12164
  const U = {};
12119
12165
  P.forEach((W) => {
12120
12166
  U[W.var_nam] = "";
12121
- }), m.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(U)), E.value ? (y == null || y(), y = watch(b, (W) => {
12122
- W && (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
12167
+ }), v.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(U)), x.value ? (C == null || C(), C = watch(_, (W) => {
12168
+ W && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
12123
12169
  }, {
12124
12170
  immediate: !0
12125
- })) : (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
12171
+ })) : (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
12126
12172
  }
12127
12173
  }, {
12128
12174
  immediate: !0
12129
12175
  }), onUnmounted(() => {
12130
- n.store.dispose(r.formID);
12176
+ a.store.dispose(n.formID);
12131
12177
  });
12132
- function w(P = !1) {
12133
- E.value ? b.value && b.value.validate().then(() => {
12134
- n.store.emit(r.formID, "search", {
12178
+ function R(P = !1) {
12179
+ x.value ? _.value && _.value.validate().then(() => {
12180
+ a.store.emit(n.formID, "search", {
12135
12181
  resetPageIndex: P
12136
12182
  });
12137
12183
  }).catch((U) => {
12138
12184
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
12139
12185
  e: U
12140
12186
  });
12141
- }) : n.store.emit(r.formID, "search", {
12187
+ }) : a.store.emit(n.formID, "search", {
12142
12188
  resetPageIndex: P
12143
12189
  });
12144
12190
  }
12145
- n.store.setSearchFn(r.formID, w);
12146
- function R() {
12191
+ a.store.setSearchFn(n.formID, R);
12192
+ function I() {
12147
12193
  var P;
12148
- (P = b.value) == null || P.resetFields(), E.value ? b.value && b.value.validate().then(() => {
12149
- n.store.emit(r.formID, "reset");
12194
+ (P = _.value) == null || P.resetFields(), x.value ? _.value && _.value.validate().then(() => {
12195
+ a.store.emit(n.formID, "reset");
12150
12196
  }).catch((U) => {
12151
12197
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
12152
12198
  e: U
12153
12199
  });
12154
- }) : n.store.emit(r.formID, "reset");
12155
- }
12156
- n.store.setResetFn(r.formID, R);
12157
- function k() {
12158
- return w(!0), Promise.resolve(!0);
12200
+ }) : a.store.emit(n.formID, "reset");
12159
12201
  }
12202
+ a.store.setResetFn(n.formID, I);
12160
12203
  function $() {
12204
+ return R(!0), Promise.resolve(!0);
12205
+ }
12206
+ function A() {
12207
+ var P;
12161
12208
  return createVNode("div", {
12162
12209
  class: "title",
12163
12210
  onClick: G
12164
- }, [C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [t.t("kg.KgSearch.title")])]);
12211
+ }, [((P = t == null ? void 0 : t.KgSearch) == null ? void 0 : P.left) && createVNode("div", {
12212
+ class: "kg-search-title-left",
12213
+ onClick: (U) => {
12214
+ U.stopPropagation(), U.preventDefault();
12215
+ }
12216
+ }, [t.KgSearch.left()]), T.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
12165
12217
  }
12166
- function A() {
12218
+ function M() {
12167
12219
  var P, U, W, Y;
12168
- return ((W = (U = (P = r.varProfileMasters) == null ? void 0 : P.value) == null ? void 0 : U.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
12169
- value: (Y = r.currentVarProfileMasterID.value) != null ? Y : void 0,
12170
- "onUpdate:value": (X) => r.store.setCurrentVarProfileMasterID(r.formID, X),
12171
- disabled: p.value,
12172
- onChange: L,
12220
+ return ((W = (U = (P = n.varProfileMasters) == null ? void 0 : P.value) == null ? void 0 : U.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
12221
+ value: (Y = n.currentVarProfileMasterID.value) != null ? Y : void 0,
12222
+ "onUpdate:value": (X) => n.store.setCurrentVarProfileMasterID(n.formID, X),
12223
+ disabled: m.value,
12173
12224
  class: "kg-search-profile-master-select"
12174
12225
  }, {
12175
12226
  default: () => {
12176
12227
  var X, re;
12177
- return (re = (X = r.varProfileMasters) == null ? void 0 : X.value) == null ? void 0 : re.map((te) => createVNode(Select.Option, {
12228
+ return (re = (X = n.varProfileMasters) == null ? void 0 : X.value) == null ? void 0 : re.map((te) => createVNode(Select.Option, {
12178
12229
  value: te.id
12179
12230
  }, {
12180
- default: () => [r.t(te == null ? void 0 : te.prf_var_nam).value]
12231
+ default: () => [n.t(te == null ? void 0 : te.prf_var_nam).value]
12181
12232
  }));
12182
12233
  },
12183
12234
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
12184
12235
  }), createVNode(Button, {
12185
- disabled: p.value,
12236
+ disabled: m.value,
12186
12237
  onClick: () => {
12187
- v.value.visible = !0;
12238
+ y.value.visible = !0;
12188
12239
  },
12189
12240
  class: "kg-search-profile-master-btn"
12190
12241
  }, {
12191
12242
  default: () => [createVNode(SettingOutlined$1, null, null)]
12192
12243
  }), createVNode(KgSearchConfigModal, {
12193
- visible: v.value.visible,
12194
- "onUpdate:visible": (X) => v.value.visible = X,
12195
- hostFormID: r.formID
12244
+ visible: y.value.visible,
12245
+ "onUpdate:visible": (X) => y.value.visible = X,
12246
+ hostFormID: n.formID
12196
12247
  }, null)]);
12197
12248
  }
12198
- function M() {
12249
+ function D() {
12199
12250
  var P, U, W, Y, X;
12200
- return createVNode(Fragment, null, [A(), !(((P = T.value) == null ? void 0 : P.permission_type) !== 2 && !t.p((U = T.value) == null ? void 0 : U.permission_code)) && createVNode(Button, {
12251
+ return createVNode(Fragment, null, [M(), !(((P = E.value) == null ? void 0 : P.permission_type) !== 2 && !r.p((U = E.value) == null ? void 0 : U.permission_code)) && createVNode(Button, {
12201
12252
  type: "primary",
12202
- ghost: !g.value,
12203
- disabled: g.value,
12204
- onClick: R,
12253
+ ghost: !p.value,
12254
+ disabled: p.value,
12255
+ onClick: I,
12205
12256
  class: "kg-search-btn-reset"
12206
12257
  }, {
12207
- default: () => [createVNode(ReloadOutlined$1, null, null), t.t("kg.reset")]
12258
+ default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
12208
12259
  }), createVNode(KgButton.Item, {
12209
12260
  kgType: KG_BUTTON_TYPE.SEARCH,
12210
- kgVarName: (W = T.value) == null ? void 0 : W.var_nam,
12211
- kgIcon: (Y = T.value) == null ? void 0 : Y.icon,
12212
- kgText: I.value,
12213
- kgColor: (X = T.value) == null ? void 0 : X.color,
12214
- kgPrimary: V.value,
12215
- kgLoading: _.value,
12216
- onKgClick: k
12261
+ kgVarName: (W = E.value) == null ? void 0 : W.var_nam,
12262
+ kgIcon: (Y = E.value) == null ? void 0 : Y.icon,
12263
+ kgText: V.value,
12264
+ kgColor: (X = E.value) == null ? void 0 : X.color,
12265
+ kgPrimary: k.value,
12266
+ kgLoading: b.value,
12267
+ onKgClick: $
12217
12268
  }, null)]);
12218
12269
  }
12219
- function D() {
12270
+ function L() {
12220
12271
  return createVNode(Spin, {
12221
- spinning: F.value
12272
+ spinning: O.value
12222
12273
  }, {
12223
12274
  default: () => {
12224
12275
  var P;
12225
12276
  return [createVNode(KgForm, {
12226
- ref: b,
12227
- model: (P = n.model.value) != null ? P : {}
12277
+ ref: _,
12278
+ model: (P = a.model.value) != null ? P : {}
12228
12279
  }, {
12229
- default: () => [createVNode(Row, null, {
12280
+ default: () => [createVNode(Row, {
12281
+ gutter: 6
12282
+ }, {
12230
12283
  default: () => {
12231
12284
  var U;
12232
- return [(U = r.currentVarProfileDetails.value) == null ? void 0 : U.map((W) => createVNode(KgForm.Item, {
12285
+ return [(U = n.currentVarProfileDetails.value) == null ? void 0 : U.map((W) => createVNode(KgForm.Item, {
12233
12286
  kgVarName: W.var_nam,
12234
12287
  kgContext: KG_FORM_CONTEXT.SEARCH,
12235
- onKgSubmit: () => w(!0)
12288
+ onKgSubmit: () => R(!0)
12236
12289
  }, null))];
12237
12290
  }
12238
12291
  })]
@@ -12240,42 +12293,39 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
12240
12293
  }
12241
12294
  });
12242
12295
  }
12243
- function L(P) {
12244
- console.log("333:value", P);
12245
- }
12246
12296
  function G() {
12247
- C.value ? m.value.kgHeight = l.value : m.value.kgHeight = c.value;
12297
+ T.value ? v.value.kgHeight = u.value : v.value.kgHeight = g.value;
12248
12298
  }
12249
12299
  return () => createVNode(KgResizable, {
12250
- kgHeight: m.value.kgHeight,
12251
- "onUpdate:kgHeight": (P) => m.value.kgHeight = P,
12252
- kgMinHeight: c.value,
12253
- kgMaxHeight: u.value,
12254
- class: O.value,
12255
- "kg-frm-id": r.formID
12300
+ kgHeight: v.value.kgHeight,
12301
+ "onUpdate:kgHeight": (P) => v.value.kgHeight = P,
12302
+ kgMinHeight: g.value,
12303
+ kgMaxHeight: c.value,
12304
+ class: w.value,
12305
+ "kg-frm-id": n.formID
12256
12306
  }, {
12257
- default: () => [E.value && createVNode("div", {
12307
+ default: () => [x.value && createVNode("div", {
12258
12308
  class: "ant-collapse ant-collapse-icon-position-left"
12259
12309
  }, [createVNode("div", {
12260
12310
  class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
12261
12311
  }, [createVNode(Teleport, {
12262
12312
  to: "#kg-search-header-teleport",
12263
- disabled: !i.value
12313
+ disabled: !l.value
12264
12314
  }, {
12265
12315
  default: () => [createVNode("div", {
12266
12316
  class: "ant-collapse-header"
12267
12317
  }, [createVNode(Spin, {
12268
- spinning: K.value
12318
+ spinning: F.value
12269
12319
  }, {
12270
- default: () => [$(), createVNode("div", {
12320
+ default: () => [A(), createVNode("div", {
12271
12321
  class: "ant-collapse-extra"
12272
- }, [M()])]
12322
+ }, [D()])]
12273
12323
  })])]
12274
12324
  }), createVNode("div", {
12275
12325
  class: "ant-collapse-content ant-collapse-content-active"
12276
12326
  }, [createVNode("div", {
12277
12327
  class: "ant-collapse-content-box"
12278
- }, [D()])])])])]
12328
+ }, [L()])])])])]
12279
12329
  });
12280
12330
  }
12281
12331
  });
@@ -12332,35 +12382,35 @@ function useMagicKeys(e = {}) {
12332
12382
  } = e, s = reactive(/* @__PURE__ */ new Set()), i = { toJSON() {
12333
12383
  return {};
12334
12384
  }, current: s }, l = t ? reactive(i) : i, u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
12335
- function g(m, v) {
12336
- m in l && (t ? l[m] = v : l[m].value = v);
12385
+ function g(_, v) {
12386
+ _ in l && (t ? l[_] = v : l[_].value = v);
12337
12387
  }
12338
12388
  function p() {
12339
- for (const m of c)
12340
- g(m, !1);
12389
+ for (const _ of c)
12390
+ g(_, !1);
12341
12391
  }
12342
- function _(m, v) {
12392
+ function m(_, v) {
12343
12393
  var y, C;
12344
- const T = (y = m.key) == null ? void 0 : y.toLowerCase(), I = (C = m.code) == null ? void 0 : C.toLowerCase(), V = [I, T].filter(Boolean);
12345
- I && (v ? s.add(m.code) : s.delete(m.code));
12346
- for (const E of V)
12347
- c.add(E), g(E, v);
12348
- T === "meta" && !v ? (u.forEach((E) => {
12349
- s.delete(E), g(E, !1);
12350
- }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && v && [...s, ...V].forEach((E) => u.add(E));
12351
- }
12352
- r && (useEventListener(r, "keydown", (m) => (_(m, !0), o(m)), { passive: a }), useEventListener(r, "keyup", (m) => (_(m, !1), o(m)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
12394
+ const T = (y = _.key) == null ? void 0 : y.toLowerCase(), E = (C = _.code) == null ? void 0 : C.toLowerCase(), V = [E, T].filter(Boolean);
12395
+ E && (v ? s.add(_.code) : s.delete(_.code));
12396
+ for (const k of V)
12397
+ c.add(k), g(k, v);
12398
+ T === "meta" && !v ? (u.forEach((k) => {
12399
+ s.delete(k), g(k, !1);
12400
+ }), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...s, ...V].forEach((k) => u.add(k));
12401
+ }
12402
+ r && (useEventListener(r, "keydown", (_) => (m(_, !0), o(_)), { passive: a }), useEventListener(r, "keyup", (_) => (m(_, !1), o(_)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
12353
12403
  const b = new Proxy(l, {
12354
- get(m, v, y) {
12404
+ get(_, v, y) {
12355
12405
  if (typeof v != "string")
12356
- return Reflect.get(m, v, y);
12406
+ return Reflect.get(_, v, y);
12357
12407
  if (v = v.toLowerCase(), v in n && (v = n[v]), !(v in l))
12358
12408
  if (/[+_-]/.test(v)) {
12359
- const T = v.split(/[+_-]/g).map((I) => I.trim());
12360
- l[v] = computed(() => T.every((I) => unref(b[I])));
12409
+ const T = v.split(/[+_-]/g).map((E) => E.trim());
12410
+ l[v] = computed(() => T.every((E) => unref(b[E])));
12361
12411
  } else
12362
12412
  l[v] = ref(!1);
12363
- const C = Reflect.get(m, v, y);
12413
+ const C = Reflect.get(_, v, y);
12364
12414
  return t ? unref(C) : C;
12365
12415
  }
12366
12416
  });
@@ -12746,22 +12796,22 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12746
12796
  columnWidth: 32,
12747
12797
  hideSelectAll: !0,
12748
12798
  selectedRowKeys: g,
12749
- onSelect: (k) => K(k)
12750
- }), _ = ref({
12799
+ onSelect: (I) => x(I)
12800
+ }), m = ref({
12751
12801
  visible: !1
12752
- }), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
12753
- var k;
12754
- return !!c.value || ((k = n.getSelectedVarCatalog) == null ? void 0 : k.cust_lvl) === KG_CUSTOM_LEVEL.L0;
12802
+ }), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), _ = computed(() => {
12803
+ var I;
12804
+ return !!c.value || ((I = n.getSelectedVarCatalog) == null ? void 0 : I.cust_lvl) === KG_CUSTOM_LEVEL.L0;
12755
12805
  }), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), y = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
12756
- watch(() => n.getSelectedVar, (k) => {
12757
- k ? C() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
12806
+ watch(() => n.getSelectedVar, (I) => {
12807
+ I ? C() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
12758
12808
  }, {
12759
12809
  immediate: !0
12760
- }), watch(() => n.getSelectedVarCatalog, async (k) => {
12810
+ }), watch(() => n.getSelectedVarCatalog, async (I) => {
12761
12811
  var $, A;
12762
- l.value.var_text = ($ = k == null ? void 0 : k.var_text) != null ? $ : "", (A = i.value) == null || A.clearValidate();
12812
+ l.value.var_text = ($ = I == null ? void 0 : I.var_text) != null ? $ : "", (A = i.value) == null || A.clearValidate();
12763
12813
  });
12764
- async function C(k = !1) {
12814
+ async function C(I = !1) {
12765
12815
  var $, A, M;
12766
12816
  a.value = !0;
12767
12817
  try {
@@ -12777,7 +12827,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12777
12827
  order: "asc"
12778
12828
  }
12779
12829
  });
12780
- if (c.value = null, u.value = D != null ? D : [], k) {
12830
+ if (c.value = null, u.value = D != null ? D : [], I) {
12781
12831
  const L = u.value.find((G) => {
12782
12832
  var P;
12783
12833
  return G.id === ((P = n.getSelectedVarCatalog) == null ? void 0 : P.id);
@@ -12792,9 +12842,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12792
12842
  }
12793
12843
  }
12794
12844
  async function T() {
12795
- var k, $, A;
12845
+ var I, $, A;
12796
12846
  try {
12797
- o.value = !0, await ((k = i.value) == null ? void 0 : k.validate());
12847
+ o.value = !0, await ((I = i.value) == null ? void 0 : I.validate());
12798
12848
  const M = new VarCatalog({
12799
12849
  ...($ = n.getSelectedVarCatalog) != null ? $ : {},
12800
12850
  var_text: (A = l.value) == null ? void 0 : A.var_text
@@ -12824,8 +12874,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12824
12874
  o.value = !1;
12825
12875
  }
12826
12876
  }
12827
- function I({
12828
- isAllForm: k,
12877
+ function E({
12878
+ isAllForm: I,
12829
12879
  isAllLanguage: $
12830
12880
  }) {
12831
12881
  var A, M, D;
@@ -12834,7 +12884,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12834
12884
  cust_lvl: KG_CUSTOM_LEVEL.L10,
12835
12885
  grp_nam: (A = n.getSelectedVar) == null ? void 0 : A.grp_nam,
12836
12886
  var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
12837
- frm_id: k || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
12887
+ frm_id: I || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
12838
12888
  locale_id: $ ? "ALL" : (D = t.locale) == null ? void 0 : D.value,
12839
12889
  var_text: ""
12840
12890
  }), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
@@ -12842,16 +12892,16 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12842
12892
  function V() {
12843
12893
  var $;
12844
12894
  u.value = without$1(u.value, c.value), c.value = null;
12845
- const k = ($ = u.value[0]) != null ? $ : null;
12846
- n.setSelectedVarCatalog(k), g.value = k ? [k.id] : [];
12895
+ const I = ($ = u.value[0]) != null ? $ : null;
12896
+ n.setSelectedVarCatalog(I), g.value = I ? [I.id] : [];
12847
12897
  }
12848
- function E() {
12898
+ function k() {
12849
12899
  KgUtil.confirm({
12850
12900
  onOk: async () => {
12851
- var k;
12901
+ var I;
12852
12902
  await Delete({
12853
12903
  params: {
12854
- id: (k = n.getSelectedVarCatalog) == null ? void 0 : k.id
12904
+ id: (I = n.getSelectedVarCatalog) == null ? void 0 : I.id
12855
12905
  }
12856
12906
  }, {
12857
12907
  successMessageMode: "none",
@@ -12862,17 +12912,17 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12862
12912
  }
12863
12913
  });
12864
12914
  }
12865
- function K(k) {
12915
+ function x(I) {
12866
12916
  var $;
12867
- (($ = n.getSelectedVarCatalog) == null ? void 0 : $.id) !== k.id && (unref(c) ? KgUtil.confirm({
12917
+ (($ = n.getSelectedVarCatalog) == null ? void 0 : $.id) !== I.id && (unref(c) ? KgUtil.confirm({
12868
12918
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
12869
12919
  onOk: () => {
12870
- u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(k)), g.value = [k.id];
12920
+ u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(I)), g.value = [I.id];
12871
12921
  }
12872
- }) : (n.setSelectedVarCatalog(unref(k)), g.value = [k.id]));
12922
+ }) : (n.setSelectedVarCatalog(unref(I)), g.value = [I.id]));
12873
12923
  }
12874
12924
  function F() {
12875
- _.value.visible = !0;
12925
+ m.value.visible = !0;
12876
12926
  }
12877
12927
  function O() {
12878
12928
  return createVNode("div", {
@@ -12884,9 +12934,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12884
12934
  }, {
12885
12935
  default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
12886
12936
  }), createVNode(Button, {
12887
- onClick: E,
12888
- disabled: m.value,
12889
- ghost: !m.value,
12937
+ onClick: k,
12938
+ disabled: _.value,
12939
+ ghost: !_.value,
12890
12940
  type: "primary",
12891
12941
  danger: !0
12892
12942
  }, {
@@ -12894,7 +12944,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12894
12944
  })]);
12895
12945
  }
12896
12946
  function w() {
12897
- let k, $;
12947
+ let I, $;
12898
12948
  return createVNode("div", {
12899
12949
  class: "form"
12900
12950
  }, [createVNode(Form, {
@@ -12922,8 +12972,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12922
12972
  }, [createVNode(Button, {
12923
12973
  disabled: v.value,
12924
12974
  onClick: V
12925
- }, _isSlot(k = t.t("common.cancelText")) ? k : {
12926
- default: () => [k]
12975
+ }, _isSlot(I = t.t("common.cancelText")) ? I : {
12976
+ default: () => [I]
12927
12977
  }), createVNode(Button, {
12928
12978
  loading: o.value,
12929
12979
  disabled: y.value,
@@ -12933,10 +12983,10 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12933
12983
  default: () => [$]
12934
12984
  })])]);
12935
12985
  }
12936
- function R(k) {
12986
+ function R(I) {
12937
12987
  var A;
12938
12988
  let $ = "";
12939
- return k.id || ($ += " ant-table-row-create"), k.id === ((A = n.getSelectedVarCatalog) == null ? void 0 : A.id) && ($ += " ant-table-row-selected "), $;
12989
+ return I.id || ($ += " ant-table-row-create"), I.id === ((A = n.getSelectedVarCatalog) == null ? void 0 : A.id) && ($ += " ant-table-row-selected "), $;
12940
12990
  }
12941
12991
  return () => createVNode("div", {
12942
12992
  class: "kg-var-config-modal-var-var-catalog"
@@ -12954,13 +13004,13 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
12954
13004
  loading: a.value,
12955
13005
  rowClassName: R,
12956
13006
  rowSelection: p.value,
12957
- customRow: (k) => ({
12958
- onClick: () => K(k)
13007
+ customRow: (I) => ({
13008
+ onClick: () => x(I)
12959
13009
  })
12960
13010
  }, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
12961
- visible: _.value.visible,
12962
- "onUpdate:visible": (k) => _.value.visible = k,
12963
- onKgOk: I
13011
+ visible: m.value.visible,
13012
+ "onUpdate:visible": (I) => m.value.visible = I,
13013
+ onKgOk: E
12964
13014
  }, null)]);
12965
13015
  }
12966
13016
  }), columns = () => [{
@@ -13269,16 +13319,16 @@ const KgWarehouse$1 = "", getProps = () => ({
13269
13319
  emit: t
13270
13320
  }) {
13271
13321
  const r = useKg(), n = useKgWarehouse(), a = computed(() => {
13272
- let I = "jeecg-layout-header-action__item kg-warehouse";
13273
- return (!p.value || e.kgInvisible) && (I += " kg-warehouse--invisible"), I;
13322
+ let E = "jeecg-layout-header-action__item kg-warehouse";
13323
+ return (!p.value || e.kgInvisible) && (E += " kg-warehouse--invisible"), E;
13274
13324
  }), o = ref(""), s = n.warehouse, i = ref(null), l = ref(!1), u = reactive([{
13275
13325
  width: 80,
13276
13326
  align: "center",
13277
13327
  customRender: ({
13278
- record: I
13328
+ record: E
13279
13329
  }) => {
13280
- var E;
13281
- return I.id === ((E = i.value) == null ? void 0 : E.id) ? createVNode("img", {
13330
+ var k;
13331
+ return E.id === ((k = i.value) == null ? void 0 : k.id) ? createVNode("img", {
13282
13332
  src: WAREHOUSE_1890ff
13283
13333
  }, null) : createVNode("img", {
13284
13334
  src: WAREHOUSE_000000
@@ -13286,44 +13336,44 @@ const KgWarehouse$1 = "", getProps = () => ({
13286
13336
  }
13287
13337
  }, {
13288
13338
  customRender: ({
13289
- record: I
13339
+ record: E
13290
13340
  }) => {
13291
- var E, K, F;
13292
- const V = I;
13293
- return createVNode("div", null, [createVNode("div", null, [(E = V.whDsc) != null ? E : " ", createTextVNode(" - "), (K = V.whId) != null ? K : " "]), createVNode("div", {
13341
+ var k, x, F;
13342
+ const V = E;
13343
+ return createVNode("div", null, [createVNode("div", null, [(k = V.whDsc) != null ? k : " ", createTextVNode(" - "), (x = V.whId) != null ? x : " "]), createVNode("div", {
13294
13344
  class: "address"
13295
13345
  }, [(F = V.adrId) != null ? F : " "])]);
13296
13346
  }
13297
13347
  }]), c = ref([]), g = computed(() => {
13298
13348
  var V;
13299
- const I = (V = o.value) == null ? void 0 : V.toUpperCase();
13300
- return c.value.filter((E) => {
13301
- var K, F, O, w, R, k;
13302
- return ((F = (K = E.whDsc) == null ? void 0 : K.toUpperCase()) == null ? void 0 : F.includes(I)) || ((w = (O = E.whId) == null ? void 0 : O.toUpperCase()) == null ? void 0 : w.includes(I)) || ((k = (R = E.adrId) == null ? void 0 : R.toUpperCase()) == null ? void 0 : k.includes(I));
13349
+ const E = (V = o.value) == null ? void 0 : V.toUpperCase();
13350
+ return c.value.filter((k) => {
13351
+ var x, F, O, w, R, I;
13352
+ return ((F = (x = k.whDsc) == null ? void 0 : x.toUpperCase()) == null ? void 0 : F.includes(E)) || ((w = (O = k.whId) == null ? void 0 : O.toUpperCase()) == null ? void 0 : w.includes(E)) || ((I = (R = k.adrId) == null ? void 0 : R.toUpperCase()) == null ? void 0 : I.includes(E));
13303
13353
  });
13304
13354
  }), p = computed(() => {
13305
- var I, V;
13306
- return ((V = (I = r.option.value) == null ? void 0 : I.KgWarehouse) == null ? void 0 : V.enable) !== !1;
13355
+ var E, V;
13356
+ return ((V = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : V.enable) !== !1;
13307
13357
  });
13308
- watch(n.visible, (I) => {
13309
- !p.value || (I ? b() : m());
13358
+ watch(n.visible, (E) => {
13359
+ !p.value || (E ? b() : _());
13310
13360
  }, {
13311
13361
  immediate: !0
13312
13362
  }), onMounted(() => {
13313
13363
  n.store.emit("mounted");
13314
13364
  });
13315
- function _() {
13365
+ function m() {
13316
13366
  !p.value || n.store.setVisible(!0);
13317
13367
  }
13318
13368
  function b() {
13319
13369
  i.value = n.warehouse.value, y();
13320
13370
  }
13321
- function m() {
13371
+ function _() {
13322
13372
  o.value = "", c.value = [], i.value = null;
13323
13373
  }
13324
13374
  function v() {
13325
- var I;
13326
- !i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((I = n.warehouse.value) == null ? void 0 : I.id) && (n.store.setWarehouse(i.value), KgUtil.confirm({
13375
+ var E;
13376
+ !i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((E = n.warehouse.value) == null ? void 0 : E.id) && (n.store.setWarehouse(i.value), KgUtil.confirm({
13327
13377
  content: r.t("kg.KgWarehouse.reloadMessage"),
13328
13378
  kgHideCancelButton: !0,
13329
13379
  okButtonProps: {
@@ -13339,25 +13389,25 @@ const KgWarehouse$1 = "", getProps = () => ({
13339
13389
  l.value = !0;
13340
13390
  try {
13341
13391
  const {
13342
- records: I
13392
+ records: E
13343
13393
  } = await ListVO({
13344
13394
  params: {
13345
13395
  pageNo: 1,
13346
13396
  pageSize: 999
13347
13397
  }
13348
13398
  });
13349
- c.value = I != null ? I : [];
13350
- } catch (I) {
13351
- console.error(I);
13399
+ c.value = E != null ? E : [];
13400
+ } catch (E) {
13401
+ console.error(E);
13352
13402
  } finally {
13353
13403
  l.value = !1;
13354
13404
  }
13355
13405
  }
13356
- function C(I, V) {
13357
- var E;
13358
- switch (I.detail) {
13406
+ function C(E, V) {
13407
+ var k;
13408
+ switch (E.detail) {
13359
13409
  case 1:
13360
- ((E = i.value) == null ? void 0 : E.id) === V.id ? i.value = null : i.value = V;
13410
+ ((k = i.value) == null ? void 0 : k.id) === V.id ? i.value = null : i.value = V;
13361
13411
  break;
13362
13412
  case 2:
13363
13413
  i.value = V, v();
@@ -13370,12 +13420,12 @@ const KgWarehouse$1 = "", getProps = () => ({
13370
13420
  placement: "bottomRight"
13371
13421
  }, {
13372
13422
  default: () => {
13373
- var I, V;
13374
- return [((I = s.value) == null ? void 0 : I.whDsc) || ((V = s.value) == null ? void 0 : V.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
13423
+ var E, V;
13424
+ return [((E = s.value) == null ? void 0 : E.whDsc) || ((V = s.value) == null ? void 0 : V.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
13375
13425
  }
13376
13426
  }), createVNode(KgModal, {
13377
13427
  visible: n.visible.value,
13378
- "onUpdate:visible": (I) => n.store.setVisible(I),
13428
+ "onUpdate:visible": (E) => n.store.setVisible(E),
13379
13429
  title: r.t("kg.KgWarehouse.title"),
13380
13430
  width: "500px",
13381
13431
  kgFullHeight: !1,
@@ -13392,7 +13442,7 @@ const KgWarehouse$1 = "", getProps = () => ({
13392
13442
  }, {
13393
13443
  default: () => [createVNode(Input, {
13394
13444
  value: o.value,
13395
- "onUpdate:value": (I) => o.value = I,
13445
+ "onUpdate:value": (E) => o.value = E,
13396
13446
  allowClear: !0,
13397
13447
  disabled: l.value,
13398
13448
  placeholder: r.t("kg.search")
@@ -13412,11 +13462,11 @@ const KgWarehouse$1 = "", getProps = () => ({
13412
13462
  dataSource: g.value,
13413
13463
  columns: u,
13414
13464
  class: "kg-flex-table",
13415
- customRow: (I) => {
13465
+ customRow: (E) => {
13416
13466
  var V;
13417
13467
  return {
13418
- class: I.id === ((V = i.value) == null ? void 0 : V.id) ? "selected" : "",
13419
- onClick: (E) => C(E, I)
13468
+ class: E.id === ((V = i.value) == null ? void 0 : V.id) ? "selected" : "",
13469
+ onClick: (k) => C(k, E)
13420
13470
  };
13421
13471
  }
13422
13472
  }, null)]
@@ -13424,7 +13474,7 @@ const KgWarehouse$1 = "", getProps = () => ({
13424
13474
  }
13425
13475
  return () => createVNode("div", {
13426
13476
  class: a.value,
13427
- onClick: _
13477
+ onClick: m
13428
13478
  }, [T()]);
13429
13479
  }
13430
13480
  });
@@ -13459,6 +13509,7 @@ export {
13459
13509
  DEFAULT_MAX_WIDTH,
13460
13510
  DEFAULT_MIN_WIDTH,
13461
13511
  DEFAULT_WIDTH,
13512
+ DI_KG_SLOTS,
13462
13513
  DomUtil,
13463
13514
  I18N,
13464
13515
  IPage,