@kengic/vue 0.13.1 → 0.13.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -826,6 +826,7 @@ class WhDTO {
826
826
  v(this, "activeFlg");
827
827
  v(this, "adrId");
828
828
  v(this, "adrnam");
829
+ v(this, "comCod");
829
830
  v(this, "defWhFlg");
830
831
  v(this, "id");
831
832
  v(this, "orgcod");
@@ -840,6 +841,7 @@ class WhDTO {
840
841
  case "activeFlg":
841
842
  case "adrId":
842
843
  case "adrnam":
844
+ case "comCod":
843
845
  case "defWhFlg":
844
846
  case "id":
845
847
  case "orgcod":
@@ -1377,6 +1379,7 @@ class ListVOQuery {
1377
1379
  v(this, "activeFlg");
1378
1380
  v(this, "adrId");
1379
1381
  v(this, "adrnam");
1382
+ v(this, "comCod");
1380
1383
  v(this, "defWhFlg");
1381
1384
  v(this, "id");
1382
1385
  v(this, "orgcod");
@@ -1395,6 +1398,7 @@ class ListVOQuery {
1395
1398
  case "activeFlg":
1396
1399
  case "adrId":
1397
1400
  case "adrnam":
1401
+ case "comCod":
1398
1402
  case "defWhFlg":
1399
1403
  case "id":
1400
1404
  case "orgcod":
@@ -2175,12 +2179,12 @@ setTwoToneColor("#1890ff");
2175
2179
  var Icon$1 = function(t, r) {
2176
2180
  var a, n = _objectSpread$k({}, t, r.attrs), s = n.class, i = n.icon, o = n.spin, l = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, g = _objectWithoutProperties(n, _excluded), b = (a = {
2177
2181
  anticon: !0
2178
- }, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, s, s), a), E = o === "" || !!o || i.name === "loading" ? "anticon-spin" : "", _ = c;
2182
+ }, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, s, s), a), y = o === "" || !!o || i.name === "loading" ? "anticon-spin" : "", _ = c;
2179
2183
  _ === void 0 && d && (_ = -1, g.tabindex = _);
2180
2184
  var p = l ? {
2181
2185
  msTransform: "rotate(".concat(l, "deg)"),
2182
2186
  transform: "rotate(".concat(l, "deg)")
2183
- } : void 0, m = normalizeTwoToneColors(u), y = _slicedToArray(m, 2), T = y[0], k = y[1];
2187
+ } : void 0, m = normalizeTwoToneColors(u), E = _slicedToArray(m, 2), T = E[0], k = E[1];
2184
2188
  return createVNode("span", _objectSpread$k({
2185
2189
  role: "img",
2186
2190
  "aria-label": i.name
@@ -2188,7 +2192,7 @@ var Icon$1 = function(t, r) {
2188
2192
  onClick: d,
2189
2193
  class: b
2190
2194
  }), [createVNode(VueIcon, {
2191
- class: E,
2195
+ class: y,
2192
2196
  icon: i,
2193
2197
  primaryColor: T,
2194
2198
  secondaryColor: k,
@@ -3000,16 +3004,16 @@ function iconToSVG(e, t) {
3000
3004
  height: r.height
3001
3005
  };
3002
3006
  let s = r.body;
3003
- [r, a].forEach((E) => {
3004
- const _ = [], p = E.hFlip, m = E.vFlip;
3005
- let y = E.rotate;
3006
- p ? m ? y += 2 : (_.push(
3007
+ [r, a].forEach((y) => {
3008
+ const _ = [], p = y.hFlip, m = y.vFlip;
3009
+ let E = y.rotate;
3010
+ p ? m ? E += 2 : (_.push(
3007
3011
  "translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
3008
3012
  ), _.push("scale(-1 1)"), n.top = n.left = 0) : m && (_.push(
3009
3013
  "translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
3010
3014
  ), _.push("scale(1 -1)"), n.top = n.left = 0);
3011
3015
  let T;
3012
- switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
3016
+ switch (E < 0 && (E -= Math.floor(E / 4) * 4), E = E % 4, E) {
3013
3017
  case 1:
3014
3018
  T = n.height / 2 + n.top, _.unshift(
3015
3019
  "rotate(90 " + T.toString() + " " + T.toString() + ")"
@@ -3026,13 +3030,13 @@ function iconToSVG(e, t) {
3026
3030
  );
3027
3031
  break;
3028
3032
  }
3029
- y % 2 === 1 && (n.left !== n.top && (T = n.left, n.left = n.top, n.top = T), n.width !== n.height && (T = n.width, n.width = n.height, n.height = T)), _.length && (s = '<g transform="' + _.join(" ") + '">' + s + "</g>");
3033
+ E % 2 === 1 && (n.left !== n.top && (T = n.left, n.left = n.top, n.top = T), n.width !== n.height && (T = n.width, n.width = n.height, n.height = T)), _.length && (s = '<g transform="' + _.join(" ") + '">' + s + "</g>");
3030
3034
  });
3031
3035
  const i = a.width, o = a.height, l = n.width, c = n.height;
3032
3036
  let u, d;
3033
3037
  i === null ? (d = o === null ? "1em" : o === "auto" ? c : o, u = calculateSize(d, l / c)) : (u = i === "auto" ? l : i, d = o === null ? calculateSize(u, c / l) : o === "auto" ? c : o);
3034
- const g = {}, b = (E, _) => {
3035
- isUnsetKeyword(_) || (g[E] = _.toString());
3038
+ const g = {}, b = (y, _) => {
3039
+ isUnsetKeyword(_) || (g[y] = _.toString());
3036
3040
  };
3037
3041
  return b("width", u), b("height", d), g.viewBox = n.left.toString() + " " + n.top.toString() + " " + l.toString() + " " + c.toString(), {
3038
3042
  attributes: g,
@@ -3317,11 +3321,11 @@ function sendQuery(e, t, r, a) {
3317
3321
  const o = Date.now();
3318
3322
  let l = "pending", c = 0, u, d = null, g = [], b = [];
3319
3323
  typeof a == "function" && b.push(a);
3320
- function E() {
3324
+ function y() {
3321
3325
  d && (clearTimeout(d), d = null);
3322
3326
  }
3323
3327
  function _() {
3324
- l === "pending" && (l = "aborted"), E(), g.forEach((C) => {
3328
+ l === "pending" && (l = "aborted"), y(), g.forEach((C) => {
3325
3329
  C.status === "pending" && (C.status = "aborted");
3326
3330
  }), g = [];
3327
3331
  }
@@ -3339,7 +3343,7 @@ function sendQuery(e, t, r, a) {
3339
3343
  abort: _
3340
3344
  };
3341
3345
  }
3342
- function y() {
3346
+ function E() {
3343
3347
  l = "failed", b.forEach((C) => {
3344
3348
  C(void 0, u);
3345
3349
  });
@@ -3362,14 +3366,14 @@ function sendQuery(e, t, r, a) {
3362
3366
  return;
3363
3367
  }
3364
3368
  if (M === "abort") {
3365
- u = w, y();
3369
+ u = w, E();
3366
3370
  return;
3367
3371
  }
3368
3372
  if (I) {
3369
- u = w, g.length || (i.length ? A() : y());
3373
+ u = w, g.length || (i.length ? A() : E());
3370
3374
  return;
3371
3375
  }
3372
- if (E(), T(), !e.random) {
3376
+ if (y(), T(), !e.random) {
3373
3377
  const R = e.resources.indexOf(C.resource);
3374
3378
  R !== -1 && R !== e.index && (e.index = R);
3375
3379
  }
@@ -3380,16 +3384,16 @@ function sendQuery(e, t, r, a) {
3380
3384
  function A() {
3381
3385
  if (l !== "pending")
3382
3386
  return;
3383
- E();
3387
+ y();
3384
3388
  const C = i.shift();
3385
3389
  if (C === void 0) {
3386
3390
  if (g.length) {
3387
3391
  d = setTimeout(() => {
3388
- E(), l === "pending" && (T(), y());
3392
+ y(), l === "pending" && (T(), E());
3389
3393
  }, e.timeout);
3390
3394
  return;
3391
3395
  }
3392
- y();
3396
+ E();
3393
3397
  return;
3394
3398
  }
3395
3399
  const M = {
@@ -3817,14 +3821,14 @@ const render = (e, t) => {
3817
3821
  let _ = 0, p = t.id;
3818
3822
  return typeof p == "string" && (p = p.replace(/-/g, "_")), a.innerHTML = replaceIDs(l.body, p ? () => p + "ID" + _++ : "iconifyVue"), h("svg", a);
3819
3823
  }
3820
- const { body: u, width: d, height: g } = e, b = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1), E = iconToHTML(u, {
3824
+ const { body: u, width: d, height: g } = e, b = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1), y = iconToHTML(u, {
3821
3825
  ...c,
3822
3826
  width: d + "",
3823
3827
  height: g + ""
3824
3828
  });
3825
3829
  return a.style = {
3826
3830
  ...s,
3827
- "--svg": svgToURL(E),
3831
+ "--svg": svgToURL(y),
3828
3832
  width: fixSize(c.width),
3829
3833
  height: fixSize(c.height),
3830
3834
  ...commonProps,
@@ -3919,7 +3923,7 @@ const emptyIcon = {
3919
3923
  ...t.data
3920
3924
  }, r);
3921
3925
  }
3922
- }), name = "@kengic/vue", version = "0.13.1", data$1 = {
3926
+ }), name = "@kengic/vue", version = "0.13.3", data$1 = {
3923
3927
  width: 24,
3924
3928
  height: 24,
3925
3929
  body: '<path fill="currentColor" d="M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h11.175q.4 0 .763.15t.637.425l2.85 2.85q.275.275.425.638t.15.762V12.3q-.475-.2-.988-.263T19 12.05V7.825L16.175 5H5v14h6v2H5ZM5 5v14V5Zm8 17v-1.65q0-.2.075-.388t.225-.337l5.225-5.2q.225-.225.5-.325t.55-.1q.3 0 .575.113t.5.337l.925.925q.2.225.313.5t.112.55q0 .275-.1.563t-.325.512l-5.2 5.2q-.15.15-.338.225T15.65 23H14q-.425 0-.712-.287T13 22Zm7.5-5.575l-.925-.925l.925.925Zm-6 5.075h.95l3.025-3.05l-.45-.475l-.475-.45l-3.05 3.025v.95Zm3.525-3.525l-.475-.45l.925.925l-.45-.475ZM7 10h7q.425 0 .713-.288T15 9V7q0-.425-.288-.713T14 6H7q-.425 0-.713.288T6 7v2q0 .425.288.713T7 10Zm5 8h.1l2.9-2.875V15q0-1.25-.875-2.125T12 12q-1.25 0-2.125.875T9 15q0 1.25.875 2.125T12 18Z"/>'
@@ -3938,52 +3942,52 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3938
3942
  (function(r, a) {
3939
3943
  e.exports = a();
3940
3944
  })(commonjsGlobal, function() {
3941
- var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", g = "quarter", b = "year", E = "date", _ = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, m = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function($) {
3945
+ var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", g = "quarter", b = "year", y = "date", _ = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, m = /\[([^\]]+)]|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, E = { 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($) {
3942
3946
  var D = ["th", "st", "nd", "rd"], V = $ % 100;
3943
3947
  return "[" + $ + (D[(V - 20) % 10] || D[V] || D[0]) + "]";
3944
3948
  } }, T = function($, D, V) {
3945
- var N = String($);
3946
- return !N || N.length >= D ? $ : "" + Array(D + 1 - N.length).join(V) + $;
3949
+ var P = String($);
3950
+ return !P || P.length >= D ? $ : "" + Array(D + 1 - P.length).join(V) + $;
3947
3951
  }, k = { s: T, z: function($) {
3948
- var D = -$.utcOffset(), V = Math.abs(D), N = Math.floor(V / 60), B = V % 60;
3949
- return (D <= 0 ? "+" : "-") + T(N, 2, "0") + ":" + T(B, 2, "0");
3952
+ var D = -$.utcOffset(), V = Math.abs(D), P = Math.floor(V / 60), B = V % 60;
3953
+ return (D <= 0 ? "+" : "-") + T(P, 2, "0") + ":" + T(B, 2, "0");
3950
3954
  }, m: function $(D, V) {
3951
3955
  if (D.date() < V.date())
3952
3956
  return -$(V, D);
3953
- var N = 12 * (V.year() - D.year()) + (V.month() - D.month()), B = D.clone().add(N, d), H = V - B < 0, L = D.clone().add(N + (H ? -1 : 1), d);
3954
- return +(-(N + (V - B) / (H ? B - L : L - B)) || 0);
3957
+ var P = 12 * (V.year() - D.year()) + (V.month() - D.month()), B = D.clone().add(P, d), Y = V - B < 0, K = D.clone().add(P + (Y ? -1 : 1), d);
3958
+ return +(-(P + (V - B) / (Y ? B - K : K - B)) || 0);
3955
3959
  }, a: function($) {
3956
3960
  return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
3957
3961
  }, p: function($) {
3958
- return { M: d, y: b, w: u, d: c, D: E, h: l, m: o, s: i, ms: s, Q: g }[$] || String($ || "").toLowerCase().replace(/s$/, "");
3962
+ return { M: d, y: b, w: u, d: c, D: y, h: l, m: o, s: i, ms: s, Q: g }[$] || String($ || "").toLowerCase().replace(/s$/, "");
3959
3963
  }, u: function($) {
3960
3964
  return $ === void 0;
3961
3965
  } }, A = "en", C = {};
3962
- C[A] = y;
3966
+ C[A] = E;
3963
3967
  var M = "$isDayjsObject", w = function($) {
3964
3968
  return $ instanceof O || !(!$ || !$[M]);
3965
- }, I = function $(D, V, N) {
3969
+ }, I = function $(D, V, P) {
3966
3970
  var B;
3967
3971
  if (!D)
3968
3972
  return A;
3969
3973
  if (typeof D == "string") {
3970
- var H = D.toLowerCase();
3971
- C[H] && (B = H), V && (C[H] = V, B = H);
3972
- var L = D.split("-");
3973
- if (!B && L.length > 1)
3974
- return $(L[0]);
3974
+ var Y = D.toLowerCase();
3975
+ C[Y] && (B = Y), V && (C[Y] = V, B = Y);
3976
+ var K = D.split("-");
3977
+ if (!B && K.length > 1)
3978
+ return $(K[0]);
3975
3979
  } else {
3976
3980
  var x = D.name;
3977
3981
  C[x] = D, B = x;
3978
3982
  }
3979
- return !N && B && (A = B), B || !N && A;
3983
+ return !P && B && (A = B), B || !P && A;
3980
3984
  }, R = function($, D) {
3981
3985
  if (w($))
3982
3986
  return $.clone();
3983
3987
  var V = typeof D == "object" ? D : {};
3984
3988
  return V.date = $, V.args = arguments, new O(V);
3985
- }, P = k;
3986
- P.l = I, P.i = w, P.w = function($, D) {
3989
+ }, N = k;
3990
+ N.l = I, N.i = w, N.w = function($, D) {
3987
3991
  return R($, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
3988
3992
  };
3989
3993
  var O = function() {
@@ -3992,19 +3996,19 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3992
3996
  }
3993
3997
  var D = $.prototype;
3994
3998
  return D.parse = function(V) {
3995
- this.$d = function(N) {
3996
- var B = N.date, H = N.utc;
3999
+ this.$d = function(P) {
4000
+ var B = P.date, Y = P.utc;
3997
4001
  if (B === null)
3998
4002
  return new Date(NaN);
3999
- if (P.u(B))
4003
+ if (N.u(B))
4000
4004
  return new Date();
4001
4005
  if (B instanceof Date)
4002
4006
  return new Date(B);
4003
4007
  if (typeof B == "string" && !/Z$/i.test(B)) {
4004
- var L = B.match(p);
4005
- if (L) {
4006
- var x = L[2] - 1 || 0, Y = (L[7] || "0").substring(0, 3);
4007
- return H ? new Date(Date.UTC(L[1], x, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, Y)) : new Date(L[1], x, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, Y);
4008
+ var K = B.match(p);
4009
+ if (K) {
4010
+ var x = K[2] - 1 || 0, W = (K[7] || "0").substring(0, 3);
4011
+ return Y ? new Date(Date.UTC(K[1], x, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, W)) : new Date(K[1], x, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, W);
4008
4012
  }
4009
4013
  }
4010
4014
  return new Date(B);
@@ -4013,195 +4017,195 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4013
4017
  var V = this.$d;
4014
4018
  this.$y = V.getFullYear(), this.$M = V.getMonth(), this.$D = V.getDate(), this.$W = V.getDay(), this.$H = V.getHours(), this.$m = V.getMinutes(), this.$s = V.getSeconds(), this.$ms = V.getMilliseconds();
4015
4019
  }, D.$utils = function() {
4016
- return P;
4020
+ return N;
4017
4021
  }, D.isValid = function() {
4018
4022
  return this.$d.toString() !== _;
4019
- }, D.isSame = function(V, N) {
4023
+ }, D.isSame = function(V, P) {
4020
4024
  var B = R(V);
4021
- return this.startOf(N) <= B && B <= this.endOf(N);
4022
- }, D.isAfter = function(V, N) {
4023
- return R(V) < this.startOf(N);
4024
- }, D.isBefore = function(V, N) {
4025
- return this.endOf(N) < R(V);
4026
- }, D.$g = function(V, N, B) {
4027
- return P.u(V) ? this[N] : this.set(B, V);
4025
+ return this.startOf(P) <= B && B <= this.endOf(P);
4026
+ }, D.isAfter = function(V, P) {
4027
+ return R(V) < this.startOf(P);
4028
+ }, D.isBefore = function(V, P) {
4029
+ return this.endOf(P) < R(V);
4030
+ }, D.$g = function(V, P, B) {
4031
+ return N.u(V) ? this[P] : this.set(B, V);
4028
4032
  }, D.unix = function() {
4029
4033
  return Math.floor(this.valueOf() / 1e3);
4030
4034
  }, D.valueOf = function() {
4031
4035
  return this.$d.getTime();
4032
- }, D.startOf = function(V, N) {
4033
- var B = this, H = !!P.u(N) || N, L = P.p(V), x = function(ge, ae) {
4034
- var K = P.w(B.$u ? Date.UTC(B.$y, ae, ge) : new Date(B.$y, ae, ge), B);
4035
- return H ? K : K.endOf(c);
4036
- }, Y = function(ge, ae) {
4037
- return P.w(B.toDate()[ge].apply(B.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), B);
4038
- }, q = this.$W, X = this.$M, J = this.$D, te = "set" + (this.$u ? "UTC" : "");
4039
- switch (L) {
4036
+ }, D.startOf = function(V, P) {
4037
+ var B = this, Y = !!N.u(P) || P, K = N.p(V), x = function(ce, se) {
4038
+ var L = N.w(B.$u ? Date.UTC(B.$y, se, ce) : new Date(B.$y, se, ce), B);
4039
+ return Y ? L : L.endOf(c);
4040
+ }, W = function(ce, se) {
4041
+ return N.w(B.toDate()[ce].apply(B.toDate("s"), (Y ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(se)), B);
4042
+ }, q = this.$W, J = this.$M, Z = this.$D, te = "set" + (this.$u ? "UTC" : "");
4043
+ switch (K) {
4040
4044
  case b:
4041
- return H ? x(1, 0) : x(31, 11);
4045
+ return Y ? x(1, 0) : x(31, 11);
4042
4046
  case d:
4043
- return H ? x(1, X) : x(0, X + 1);
4047
+ return Y ? x(1, J) : x(0, J + 1);
4044
4048
  case u:
4045
- var le = this.$locale().weekStart || 0, he = (q < le ? q + 7 : q) - le;
4046
- return x(H ? J - he : J + (6 - he), X);
4049
+ var ie = this.$locale().weekStart || 0, pe = (q < ie ? q + 7 : q) - ie;
4050
+ return x(Y ? Z - pe : Z + (6 - pe), J);
4047
4051
  case c:
4048
- case E:
4049
- return Y(te + "Hours", 0);
4052
+ case y:
4053
+ return W(te + "Hours", 0);
4050
4054
  case l:
4051
- return Y(te + "Minutes", 1);
4055
+ return W(te + "Minutes", 1);
4052
4056
  case o:
4053
- return Y(te + "Seconds", 2);
4057
+ return W(te + "Seconds", 2);
4054
4058
  case i:
4055
- return Y(te + "Milliseconds", 3);
4059
+ return W(te + "Milliseconds", 3);
4056
4060
  default:
4057
4061
  return this.clone();
4058
4062
  }
4059
4063
  }, D.endOf = function(V) {
4060
4064
  return this.startOf(V, !1);
4061
- }, D.$set = function(V, N) {
4062
- var B, H = P.p(V), L = "set" + (this.$u ? "UTC" : ""), x = (B = {}, B[c] = L + "Date", B[E] = L + "Date", B[d] = L + "Month", B[b] = L + "FullYear", B[l] = L + "Hours", B[o] = L + "Minutes", B[i] = L + "Seconds", B[s] = L + "Milliseconds", B)[H], Y = H === c ? this.$D + (N - this.$W) : N;
4063
- if (H === d || H === b) {
4064
- var q = this.clone().set(E, 1);
4065
- q.$d[x](Y), q.init(), this.$d = q.set(E, Math.min(this.$D, q.daysInMonth())).$d;
4065
+ }, D.$set = function(V, P) {
4066
+ var B, Y = N.p(V), K = "set" + (this.$u ? "UTC" : ""), x = (B = {}, B[c] = K + "Date", B[y] = K + "Date", B[d] = K + "Month", B[b] = K + "FullYear", B[l] = K + "Hours", B[o] = K + "Minutes", B[i] = K + "Seconds", B[s] = K + "Milliseconds", B)[Y], W = Y === c ? this.$D + (P - this.$W) : P;
4067
+ if (Y === d || Y === b) {
4068
+ var q = this.clone().set(y, 1);
4069
+ q.$d[x](W), q.init(), this.$d = q.set(y, Math.min(this.$D, q.daysInMonth())).$d;
4066
4070
  } else
4067
- x && this.$d[x](Y);
4071
+ x && this.$d[x](W);
4068
4072
  return this.init(), this;
4069
- }, D.set = function(V, N) {
4070
- return this.clone().$set(V, N);
4073
+ }, D.set = function(V, P) {
4074
+ return this.clone().$set(V, P);
4071
4075
  }, D.get = function(V) {
4072
- return this[P.p(V)]();
4073
- }, D.add = function(V, N) {
4074
- var B, H = this;
4076
+ return this[N.p(V)]();
4077
+ }, D.add = function(V, P) {
4078
+ var B, Y = this;
4075
4079
  V = Number(V);
4076
- var L = P.p(N), x = function(X) {
4077
- var J = R(H);
4078
- return P.w(J.date(J.date() + Math.round(X * V)), H);
4080
+ var K = N.p(P), x = function(J) {
4081
+ var Z = R(Y);
4082
+ return N.w(Z.date(Z.date() + Math.round(J * V)), Y);
4079
4083
  };
4080
- if (L === d)
4084
+ if (K === d)
4081
4085
  return this.set(d, this.$M + V);
4082
- if (L === b)
4086
+ if (K === b)
4083
4087
  return this.set(b, this.$y + V);
4084
- if (L === c)
4088
+ if (K === c)
4085
4089
  return x(1);
4086
- if (L === u)
4090
+ if (K === u)
4087
4091
  return x(7);
4088
- var Y = (B = {}, B[o] = a, B[l] = n, B[i] = r, B)[L] || 1, q = this.$d.getTime() + V * Y;
4089
- return P.w(q, this);
4090
- }, D.subtract = function(V, N) {
4091
- return this.add(-1 * V, N);
4092
+ var W = (B = {}, B[o] = a, B[l] = n, B[i] = r, B)[K] || 1, q = this.$d.getTime() + V * W;
4093
+ return N.w(q, this);
4094
+ }, D.subtract = function(V, P) {
4095
+ return this.add(-1 * V, P);
4092
4096
  }, D.format = function(V) {
4093
- var N = this, B = this.$locale();
4097
+ var P = this, B = this.$locale();
4094
4098
  if (!this.isValid())
4095
4099
  return B.invalidDate || _;
4096
- var H = V || "YYYY-MM-DDTHH:mm:ssZ", L = P.z(this), x = this.$H, Y = this.$m, q = this.$M, X = B.weekdays, J = B.months, te = B.meridiem, le = function(ae, K, U, Q) {
4097
- return ae && (ae[K] || ae(N, H)) || U[K].slice(0, Q);
4098
- }, he = function(ae) {
4099
- return P.s(x % 12 || 12, ae, "0");
4100
- }, ge = te || function(ae, K, U) {
4101
- var Q = ae < 12 ? "AM" : "PM";
4100
+ var Y = V || "YYYY-MM-DDTHH:mm:ssZ", K = N.z(this), x = this.$H, W = this.$m, q = this.$M, J = B.weekdays, Z = B.months, te = B.meridiem, ie = function(se, L, U, Q) {
4101
+ return se && (se[L] || se(P, Y)) || U[L].slice(0, Q);
4102
+ }, pe = function(se) {
4103
+ return N.s(x % 12 || 12, se, "0");
4104
+ }, ce = te || function(se, L, U) {
4105
+ var Q = se < 12 ? "AM" : "PM";
4102
4106
  return U ? Q.toLowerCase() : Q;
4103
4107
  };
4104
- return H.replace(m, function(ae, K) {
4105
- return K || function(U) {
4108
+ return Y.replace(m, function(se, L) {
4109
+ return L || function(U) {
4106
4110
  switch (U) {
4107
4111
  case "YY":
4108
- return String(N.$y).slice(-2);
4112
+ return String(P.$y).slice(-2);
4109
4113
  case "YYYY":
4110
- return P.s(N.$y, 4, "0");
4114
+ return N.s(P.$y, 4, "0");
4111
4115
  case "M":
4112
4116
  return q + 1;
4113
4117
  case "MM":
4114
- return P.s(q + 1, 2, "0");
4118
+ return N.s(q + 1, 2, "0");
4115
4119
  case "MMM":
4116
- return le(B.monthsShort, q, J, 3);
4120
+ return ie(B.monthsShort, q, Z, 3);
4117
4121
  case "MMMM":
4118
- return le(J, q);
4122
+ return ie(Z, q);
4119
4123
  case "D":
4120
- return N.$D;
4124
+ return P.$D;
4121
4125
  case "DD":
4122
- return P.s(N.$D, 2, "0");
4126
+ return N.s(P.$D, 2, "0");
4123
4127
  case "d":
4124
- return String(N.$W);
4128
+ return String(P.$W);
4125
4129
  case "dd":
4126
- return le(B.weekdaysMin, N.$W, X, 2);
4130
+ return ie(B.weekdaysMin, P.$W, J, 2);
4127
4131
  case "ddd":
4128
- return le(B.weekdaysShort, N.$W, X, 3);
4132
+ return ie(B.weekdaysShort, P.$W, J, 3);
4129
4133
  case "dddd":
4130
- return X[N.$W];
4134
+ return J[P.$W];
4131
4135
  case "H":
4132
4136
  return String(x);
4133
4137
  case "HH":
4134
- return P.s(x, 2, "0");
4138
+ return N.s(x, 2, "0");
4135
4139
  case "h":
4136
- return he(1);
4140
+ return pe(1);
4137
4141
  case "hh":
4138
- return he(2);
4142
+ return pe(2);
4139
4143
  case "a":
4140
- return ge(x, Y, !0);
4144
+ return ce(x, W, !0);
4141
4145
  case "A":
4142
- return ge(x, Y, !1);
4146
+ return ce(x, W, !1);
4143
4147
  case "m":
4144
- return String(Y);
4148
+ return String(W);
4145
4149
  case "mm":
4146
- return P.s(Y, 2, "0");
4150
+ return N.s(W, 2, "0");
4147
4151
  case "s":
4148
- return String(N.$s);
4152
+ return String(P.$s);
4149
4153
  case "ss":
4150
- return P.s(N.$s, 2, "0");
4154
+ return N.s(P.$s, 2, "0");
4151
4155
  case "SSS":
4152
- return P.s(N.$ms, 3, "0");
4156
+ return N.s(P.$ms, 3, "0");
4153
4157
  case "Z":
4154
- return L;
4158
+ return K;
4155
4159
  }
4156
4160
  return null;
4157
- }(ae) || L.replace(":", "");
4161
+ }(se) || K.replace(":", "");
4158
4162
  });
4159
4163
  }, D.utcOffset = function() {
4160
4164
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4161
- }, D.diff = function(V, N, B) {
4162
- var H, L = this, x = P.p(N), Y = R(V), q = (Y.utcOffset() - this.utcOffset()) * a, X = this - Y, J = function() {
4163
- return P.m(L, Y);
4165
+ }, D.diff = function(V, P, B) {
4166
+ var Y, K = this, x = N.p(P), W = R(V), q = (W.utcOffset() - this.utcOffset()) * a, J = this - W, Z = function() {
4167
+ return N.m(K, W);
4164
4168
  };
4165
4169
  switch (x) {
4166
4170
  case b:
4167
- H = J() / 12;
4171
+ Y = Z() / 12;
4168
4172
  break;
4169
4173
  case d:
4170
- H = J();
4174
+ Y = Z();
4171
4175
  break;
4172
4176
  case g:
4173
- H = J() / 3;
4177
+ Y = Z() / 3;
4174
4178
  break;
4175
4179
  case u:
4176
- H = (X - q) / 6048e5;
4180
+ Y = (J - q) / 6048e5;
4177
4181
  break;
4178
4182
  case c:
4179
- H = (X - q) / 864e5;
4183
+ Y = (J - q) / 864e5;
4180
4184
  break;
4181
4185
  case l:
4182
- H = X / n;
4186
+ Y = J / n;
4183
4187
  break;
4184
4188
  case o:
4185
- H = X / a;
4189
+ Y = J / a;
4186
4190
  break;
4187
4191
  case i:
4188
- H = X / r;
4192
+ Y = J / r;
4189
4193
  break;
4190
4194
  default:
4191
- H = X;
4195
+ Y = J;
4192
4196
  }
4193
- return B ? H : P.a(H);
4197
+ return B ? Y : N.a(Y);
4194
4198
  }, D.daysInMonth = function() {
4195
4199
  return this.endOf(d).$D;
4196
4200
  }, D.$locale = function() {
4197
4201
  return C[this.$L];
4198
- }, D.locale = function(V, N) {
4202
+ }, D.locale = function(V, P) {
4199
4203
  if (!V)
4200
4204
  return this.$L;
4201
- var B = this.clone(), H = I(V, N, !0);
4202
- return H && (B.$L = H), B;
4205
+ var B = this.clone(), Y = I(V, P, !0);
4206
+ return Y && (B.$L = Y), B;
4203
4207
  }, D.clone = function() {
4204
- return P.w(this.$d, this);
4208
+ return N.w(this.$d, this);
4205
4209
  }, D.toDate = function() {
4206
4210
  return new Date(this.valueOf());
4207
4211
  }, D.toJSON = function() {
@@ -4212,7 +4216,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4212
4216
  return this.$d.toUTCString();
4213
4217
  }, $;
4214
4218
  }(), F = O.prototype;
4215
- return R.prototype = F, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", b], ["$D", E]].forEach(function($) {
4219
+ return R.prototype = F, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", b], ["$D", y]].forEach(function($) {
4216
4220
  F[$[1]] = function(D) {
4217
4221
  return this.$g(D, $[0], $[1]);
4218
4222
  };
@@ -4261,29 +4265,29 @@ function filesize(e, {
4261
4265
  output: d = STRING,
4262
4266
  fullform: g = !1,
4263
4267
  fullforms: b = [],
4264
- exponent: E = -1,
4268
+ exponent: y = -1,
4265
4269
  roundingMethod: _ = ROUND,
4266
4270
  precision: p = 0
4267
4271
  } = {}) {
4268
- let m = E, y = Number(e), T = [], k = 0, A = EMPTY;
4272
+ let m = y, E = Number(e), T = [], k = 0, A = EMPTY;
4269
4273
  u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
4270
- const C = a === 10 ? 1e3 : 1024, M = g === !0, w = y < 0, I = Math[_];
4274
+ const C = a === 10 ? 1e3 : 1024, M = g === !0, w = E < 0, I = Math[_];
4271
4275
  if (typeof e != "bigint" && isNaN(e))
4272
4276
  throw new TypeError(INVALID_NUMBER);
4273
4277
  if (typeof I !== FUNCTION)
4274
4278
  throw new TypeError(INVALID_ROUND);
4275
- if (w && (y = -y), (m === -1 || isNaN(m)) && (m = Math.floor(Math.log(y) / Math.log(C)), m < 0 && (m = 0)), m > 8 && (p > 0 && (p += 8 - m), m = 8), d === EXPONENT)
4279
+ if (w && (E = -E), (m === -1 || isNaN(m)) && (m = Math.floor(Math.log(E) / Math.log(C)), m < 0 && (m = 0)), m > 8 && (p > 0 && (p += 8 - m), m = 8), d === EXPONENT)
4276
4280
  return m;
4277
- if (y === 0)
4281
+ if (E === 0)
4278
4282
  T[0] = 0, A = T[1] = STRINGS.symbol[u][t ? BITS : BYTES][m];
4279
4283
  else {
4280
- k = y / (a === 2 ? Math.pow(2, m * 10) : Math.pow(1e3, m)), t && (k = k * 8, k >= C && m < 8 && (k = k / C, m++));
4284
+ k = E / (a === 2 ? Math.pow(2, m * 10) : Math.pow(1e3, m)), t && (k = k * 8, k >= C && m < 8 && (k = k / C, m++));
4281
4285
  const R = Math.pow(10, m > 0 ? n : 0);
4282
- T[0] = I(k * R) / R, T[0] === C && m < 8 && E === -1 && (T[0] = 1, m++), A = T[1] = a === 10 && m === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][m];
4286
+ T[0] = I(k * R) / R, T[0] === C && m < 8 && y === -1 && (T[0] = 1, m++), A = T[1] = a === 10 && m === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][m];
4283
4287
  }
4284
4288
  if (w && (T[0] = -T[0]), p > 0 && (T[0] = T[0].toPrecision(p)), T[1] = c[T[1]] || T[1], s === !0 ? T[0] = T[0].toLocaleString() : s.length > 0 ? T[0] = T[0].toLocaleString(s, i) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
4285
- const R = o || PERIOD, P = T[0].toString().split(R), O = P[1] || EMPTY, F = O.length, $ = n - F;
4286
- T[0] = `${P[0]}${R}${O.padEnd(F + $, ZERO)}`;
4289
+ const R = o || PERIOD, N = T[0].toString().split(R), O = N[1] || EMPTY, F = O.length, $ = n - F;
4290
+ T[0] = `${N[0]}${R}${O.padEnd(F + $, ZERO)}`;
4287
4291
  }
4288
4292
  return M && (T[1] = b[m] ? b[m] : STRINGS.fullform[u][m] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), d === ARRAY ? T : d === OBJECT ? {
4289
4293
  value: T[0],
@@ -5339,7 +5343,7 @@ function baseClone(e, t, r, a, n, s) {
5339
5343
  }) : isMap$1(e) && e.forEach(function(p, m) {
5340
5344
  i.set(m, baseClone(p, t, r, m, e, s));
5341
5345
  });
5342
- var E = c ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, _ = u ? void 0 : E(e);
5346
+ var y = c ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, _ = u ? void 0 : y(e);
5343
5347
  return arrayEach(_ || e, function(p, m) {
5344
5348
  _ && (m = p, p = e[m]), assignValue(i, m, baseClone(p, t, r, m, e, s));
5345
5349
  }), i;
@@ -5388,9 +5392,9 @@ function equalArrays(e, t, r, a, n, s) {
5388
5392
  return c == t && u == e;
5389
5393
  var d = -1, g = !0, b = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
5390
5394
  for (s.set(e, t), s.set(t, e); ++d < o; ) {
5391
- var E = e[d], _ = t[d];
5395
+ var y = e[d], _ = t[d];
5392
5396
  if (a)
5393
- var p = i ? a(_, E, d, t, e, s) : a(E, _, d, e, t, s);
5397
+ var p = i ? a(_, y, d, t, e, s) : a(y, _, d, e, t, s);
5394
5398
  if (p !== void 0) {
5395
5399
  if (p)
5396
5400
  continue;
@@ -5398,14 +5402,14 @@ function equalArrays(e, t, r, a, n, s) {
5398
5402
  break;
5399
5403
  }
5400
5404
  if (b) {
5401
- if (!arraySome(t, function(m, y) {
5402
- if (!cacheHas(b, y) && (E === m || n(E, m, r, a, s)))
5403
- return b.push(y);
5405
+ if (!arraySome(t, function(m, E) {
5406
+ if (!cacheHas(b, E) && (y === m || n(y, m, r, a, s)))
5407
+ return b.push(E);
5404
5408
  })) {
5405
5409
  g = !1;
5406
5410
  break;
5407
5411
  }
5408
- } else if (!(E === _ || n(E, _, r, a, s))) {
5412
+ } else if (!(y === _ || n(y, _, r, a, s))) {
5409
5413
  g = !1;
5410
5414
  break;
5411
5415
  }
@@ -5470,17 +5474,17 @@ function equalObjects(e, t, r, a, n, s) {
5470
5474
  if (!(i ? g in t : hasOwnProperty$1.call(t, g)))
5471
5475
  return !1;
5472
5476
  }
5473
- var b = s.get(e), E = s.get(t);
5474
- if (b && E)
5475
- return b == t && E == e;
5477
+ var b = s.get(e), y = s.get(t);
5478
+ if (b && y)
5479
+ return b == t && y == e;
5476
5480
  var _ = !0;
5477
5481
  s.set(e, t), s.set(t, e);
5478
5482
  for (var p = i; ++d < l; ) {
5479
5483
  g = o[d];
5480
- var m = e[g], y = t[g];
5484
+ var m = e[g], E = t[g];
5481
5485
  if (a)
5482
- var T = i ? a(y, m, g, t, e, s) : a(m, y, g, e, t, s);
5483
- if (!(T === void 0 ? m === y || n(m, y, r, a, s) : T)) {
5486
+ var T = i ? a(E, m, g, t, e, s) : a(m, E, g, e, t, s);
5487
+ if (!(T === void 0 ? m === E || n(m, E, r, a, s) : T)) {
5484
5488
  _ = !1;
5485
5489
  break;
5486
5490
  }
@@ -5505,9 +5509,9 @@ function baseIsEqualDeep(e, t, r, a, n, s) {
5505
5509
  if (g && !u)
5506
5510
  return s || (s = new Stack()), i || isTypedArray$1(e) ? equalArrays(e, t, r, a, n, s) : equalByTag(e, t, l, r, a, n, s);
5507
5511
  if (!(r & COMPARE_PARTIAL_FLAG$2)) {
5508
- var b = u && hasOwnProperty.call(e, "__wrapped__"), E = d && hasOwnProperty.call(t, "__wrapped__");
5509
- if (b || E) {
5510
- var _ = b ? e.value() : e, p = E ? t.value() : t;
5512
+ var b = u && hasOwnProperty.call(e, "__wrapped__"), y = d && hasOwnProperty.call(t, "__wrapped__");
5513
+ if (b || y) {
5514
+ var _ = b ? e.value() : e, p = y ? t.value() : t;
5511
5515
  return s || (s = new Stack()), n(_, p, r, a, s);
5512
5516
  }
5513
5517
  }
@@ -5644,7 +5648,7 @@ function debounce(e, t, r) {
5644
5648
  var M = a, w = n;
5645
5649
  return a = n = void 0, c = C, i = e.apply(w, M), i;
5646
5650
  }
5647
- function E(C) {
5651
+ function y(C) {
5648
5652
  return c = C, o = setTimeout(m, t), u ? b(C) : i;
5649
5653
  }
5650
5654
  function _(C) {
@@ -5658,23 +5662,23 @@ function debounce(e, t, r) {
5658
5662
  function m() {
5659
5663
  var C = now$1();
5660
5664
  if (p(C))
5661
- return y(C);
5665
+ return E(C);
5662
5666
  o = setTimeout(m, _(C));
5663
5667
  }
5664
- function y(C) {
5668
+ function E(C) {
5665
5669
  return o = void 0, g && a ? b(C) : (a = n = void 0, i);
5666
5670
  }
5667
5671
  function T() {
5668
5672
  o !== void 0 && clearTimeout(o), c = 0, a = l = n = o = void 0;
5669
5673
  }
5670
5674
  function k() {
5671
- return o === void 0 ? i : y(now$1());
5675
+ return o === void 0 ? i : E(now$1());
5672
5676
  }
5673
5677
  function A() {
5674
5678
  var C = now$1(), M = p(C);
5675
5679
  if (a = arguments, n = this, l = C, M) {
5676
5680
  if (o === void 0)
5677
- return E(l);
5681
+ return y(l);
5678
5682
  if (d)
5679
5683
  return clearTimeout(o), o = setTimeout(m, t), b(l);
5680
5684
  }
@@ -5767,14 +5771,14 @@ function baseIntersection(e, t, r) {
5767
5771
  var d = -1, g = o[0];
5768
5772
  e:
5769
5773
  for (; ++d < n && c.length < l; ) {
5770
- var b = u[d], E = t ? t(b) : b;
5771
- if (b = r || b !== 0 ? b : 0, !(g ? cacheHas(g, E) : a(c, E, r))) {
5774
+ var b = u[d], y = t ? t(b) : b;
5775
+ if (b = r || b !== 0 ? b : 0, !(g ? cacheHas(g, y) : a(c, y, r))) {
5772
5776
  for (i = s; --i; ) {
5773
5777
  var _ = o[i];
5774
- if (!(_ ? cacheHas(_, E) : a(e[i], E, r)))
5778
+ if (!(_ ? cacheHas(_, y) : a(e[i], y, r)))
5775
5779
  continue e;
5776
5780
  }
5777
- g && g.push(E), c.push(b);
5781
+ g && g.push(y), c.push(b);
5778
5782
  }
5779
5783
  }
5780
5784
  return c;
@@ -5983,7 +5987,10 @@ const without$1 = without, en = {
5983
5987
  canNotUpdateSystemVarGridMaster: "System grid view cannot be changed, create a new one based on it ?",
5984
5988
  column: "Column",
5985
5989
  config: "Config",
5990
+ "dynamic-query-is-off-in-server": "API NOT SUPPORT DYNAMIC QUERY.",
5986
5991
  emptyText: "Too many data, please click the Query button to load.",
5992
+ "request-fail-error": "REQUEST FAIL.",
5993
+ "request-fail-no-data": "REQUEST FAIL, NO DATA.",
5987
5994
  rowHeight: "Row Height",
5988
5995
  rowHeightH: "High",
5989
5996
  rowHeightL: "Low",
@@ -6172,7 +6179,10 @@ const without$1 = without, en = {
6172
6179
  canNotUpdateSystemVarGridMaster: "\u7CFB\u7EDF\u89C6\u56FE\u4E0D\u5141\u8BB8\u88AB\u4FEE\u6539, \u5C06\u57FA\u4E8E\u5B83\u53E6\u5B58\u4E00\u4E2A\u65B0\u7684\u89C6\u56FE ?",
6173
6180
  column: "\u5B57\u6BB5",
6174
6181
  config: "\u914D\u7F6E",
6182
+ "dynamic-query-is-off-in-server": "\u67E5\u8BE2\u63A5\u53E3\u5C1A\u4E0D\u652F\u6301\u9AD8\u7EA7\u67E5\u8BE2.",
6175
6183
  emptyText: "\u5F53\u524D\u6570\u636E\u91CF\u5927, \u8BF7\u70B9\u51FB\u67E5\u8BE2\u52A0\u8F7D\u6570\u636E.",
6184
+ "request-fail-error": "\u8BF7\u6C42\u5931\u8D25.",
6185
+ "request-fail-no-data": "\u8BF7\u6C42\u5931\u8D25, \u54CD\u5E94\u5185\u5BB9\u4E3A\u7A7A.",
6176
6186
  rowHeight: "\u884C\u9AD8",
6177
6187
  rowHeightH: "\u9AD8",
6178
6188
  rowHeightL: "\u4F4E",
@@ -6311,7 +6321,8 @@ var KG_APP = /* @__PURE__ */ ((e) => (e.WMS_DATA_MANAGER = "data-manager", e.WMS
6311
6321
  const KG_APPS = ["data-manager", "business-manager", "wcs", "sys"];
6312
6322
  var KG_APP_PREFIX = /* @__PURE__ */ ((e) => (e.WMS_DATA_MANAGER = "/wms/data-manager", e.WMS_BUSINESS_MANAGER = "/wms/business-manager", e.WCS = "/wcs", e.SYS = "/sys", e))(KG_APP_PREFIX || {});
6313
6323
  const KG_APP_PREFIXS = ["/wms/data-manager", "/wms/business-manager", "/wcs", "/sys"];
6314
- var KG_FORM_ITEM_TYPE = /* @__PURE__ */ ((e) => (e.INPUT = "INPUT", e.INPUT_PASSWORD = "INPUT_PASSWORD", e.INPUT_NUMBER = "INPUT_NUMBER", e.TEXT_AREA = "TEXT_AREA", e.CHECKBOX = "CHECKBOX", e.CHECKBOX_GROUP = "CHECKBOX_GROUP", e.RADIO_GROUP = "RADIO_GROUP", 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_TIME = "DATE_TIME", e.DATE_TIME_RANGE = "DATE_TIME_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.BUTTON_UPLOAD = "BUTTON_UPLOAD", e))(KG_FORM_ITEM_TYPE || {}), KG_FORM_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e.TABLE = "TABLE", 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.DESC = "DESC", 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.TABLE = "TABLE", 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 || {}), KG_DYNAMIC_QUERY_OPERATOR = /* @__PURE__ */ ((e) => (e.EQ = "eq", e.NE = "ne", e.GT = "gt", e.LT = "lt", e.GTE = "gte", e.LTE = "lte", e.START_WITH = "start", e.END_WITH = "end", e.CONTAIN = "contain", e.IN = "in", e.BETWEEN = "between", e))(KG_DYNAMIC_QUERY_OPERATOR || {}), KG_HTTP_HEADERS = /* @__PURE__ */ ((e) => (e.KG_DYNAMIC_QUERY_ON = "Kg-Dynamic-Query-On", e.KG_DYNAMIC_QUERY_SQL = "Kg-Dynamic-Query-Sql", e))(KG_HTTP_HEADERS || {});
6324
+ var KG_FORM_ITEM_TYPE = /* @__PURE__ */ ((e) => (e.INPUT = "INPUT", e.INPUT_PASSWORD = "INPUT_PASSWORD", e.INPUT_NUMBER = "INPUT_NUMBER", e.TEXT_AREA = "TEXT_AREA", e.CHECKBOX = "CHECKBOX", e.CHECKBOX_GROUP = "CHECKBOX_GROUP", e.RADIO_GROUP = "RADIO_GROUP", 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_TIME = "DATE_TIME", e.DATE_TIME_RANGE = "DATE_TIME_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.BUTTON_UPLOAD = "BUTTON_UPLOAD", e))(KG_FORM_ITEM_TYPE || {}), KG_FORM_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e.TABLE = "TABLE", 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.DESC = "DESC", 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.TABLE = "TABLE", 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 || {}), KG_DYNAMIC_QUERY_OPERATOR = /* @__PURE__ */ ((e) => (e.EQ = "eq", e.NE = "ne", e.GT = "gt", e.LT = "lt", e.GTE = "gte", e.LTE = "lte", e.START_WITH = "start", e.END_WITH = "end", e.CONTAIN = "contain", e.IN = "in", e.BETWEEN = "between", e))(KG_DYNAMIC_QUERY_OPERATOR || {}), KG_HTTP_HEADERS = /* @__PURE__ */ ((e) => (e.KG_DYNAMIC_QUERY = "Kg-Dynamic-Query", e.KG_QUERY_SQL = "Kg-Query-Sql", e.KG_QUERY_WHERE_SQL = "Kg-Query-Where-Sql", e.KG_QUERY_ORDER_BY_SQL = "Kg-Query-Order-By-Sql", e))(KG_HTTP_HEADERS || {});
6325
+ const __KG__RESPONSE__ = "__KG__RESPONSE__";
6315
6326
  class KgLogger {
6316
6327
  static deprecated(t, r = {}, a = !0) {
6317
6328
  KgLogger.log("deprecated", t, r, a);
@@ -6453,31 +6464,32 @@ class KgUtil {
6453
6464
  }
6454
6465
  }), s);
6455
6466
  }
6456
- static parseParamsForDynamicQuery(t, r, a) {
6457
- var E, _, p;
6467
+ static getQuerySql(t, r, a) {
6458
6468
  let n = toRaw(unref(t));
6459
- if (!n || !isObjectLike(n) || !r)
6460
- return "";
6461
- const s = useKg(), i = useKgVar(r);
6462
- if (((_ = (E = s.option.value.KgSearch) == null ? void 0 : E.dynamicQuery) == null ? void 0 : _.on) !== !0 || ((p = i.currentVarProfileMaster.value) == null ? void 0 : p.dyn_flg) !== 1)
6463
- throw new Error("\u672A\u542F\u7528\u9AD8\u7EA7\u67E5\u8BE2, \u8BF7\u68C0\u67E5.");
6464
- const o = {}, l = ["pageNo", "pageSize", "column", "order"], u = useKgSearch(r).operatorModel.value;
6465
- Object.keys(n).sort().forEach((m) => {
6466
- if (l.includes(m)) {
6467
- o[m] = n[m];
6469
+ if (!n || !isObjectLike(n))
6470
+ return { sql: "", whereSql: "", orderBySql: "" };
6471
+ if (!r)
6472
+ return { sql: "", whereSql: "", orderBySql: "" };
6473
+ const s = useKg(), i = useKgVar(r), o = {}, l = ["pageNo", "pageSize", "column", "order"], u = useKgSearch(r).operatorModel.value;
6474
+ Object.keys(n).sort().forEach((y) => {
6475
+ var k, A, C;
6476
+ if (l.includes(y)) {
6477
+ o[y] = n[y];
6468
6478
  return;
6469
6479
  }
6470
- const y = i.store.getVarProfileDetail(r, m), T = y != null && y.table_alias ? `${y == null ? void 0 : y.table_alias}.` : "", k = n[m], A = u == null ? void 0 : u[m];
6471
- let C = m;
6472
- switch ((y == null ? void 0 : y.use_underscore_when_dynamic_query_flag) !== 0 && (C = snakeCase$1(m)), !0) {
6473
- case m.endsWith("_obj"): {
6474
- o[m] = void 0;
6480
+ const _ = i.store.getVarProfileDetail(r, y), p = _ != null && _.table_alias ? `${_ == null ? void 0 : _.table_alias}.` : "", m = n[y];
6481
+ let E = u == null ? void 0 : u[y];
6482
+ (((A = (k = s.option.value.KgSearch) == null ? void 0 : k.dynamicQuery) == null ? void 0 : A.on) !== !0 || ((C = i.currentVarProfileMaster.value) == null ? void 0 : C.dyn_flg) !== 1) && (E = KG_DYNAMIC_QUERY_OPERATOR.EQ);
6483
+ let T = y;
6484
+ switch ((_ == null ? void 0 : _.use_underscore_when_dynamic_query_flag) !== 0 && (T = y.split(".").map((M) => snakeCase$1(M)).join(".")), !0) {
6485
+ case y.endsWith("_obj"): {
6486
+ o[y] = void 0;
6475
6487
  break;
6476
6488
  }
6477
- case (!!a && a.isDayjs(k)): {
6478
- const M = k;
6479
- let w = this.parseParamFromDayJS(m, M, r);
6480
- switch (A) {
6489
+ case (!!a && a.isDayjs(m)): {
6490
+ const M = m;
6491
+ let w = this.parseParamFromDayJS(y, M, r);
6492
+ switch (E) {
6481
6493
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
6482
6494
  let I = w, R = "";
6483
6495
  switch (!0) {
@@ -6496,7 +6508,7 @@ class KgUtil {
6496
6508
  default:
6497
6509
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
6498
6510
  }
6499
- w = ` AND (${T}${C} < '${I}' OR ${T}${C} >= '${R}')`;
6511
+ w = ` AND (${p}${T} < '${I}' OR ${p}${T} >= '${R}')`;
6500
6512
  break;
6501
6513
  }
6502
6514
  case KG_DYNAMIC_QUERY_OPERATOR.LT: {
@@ -6513,7 +6525,7 @@ class KgUtil {
6513
6525
  default:
6514
6526
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
6515
6527
  }
6516
- w = ` AND (${T}${C} < '${I}')`;
6528
+ w = ` AND (${p}${T} < '${I}')`;
6517
6529
  break;
6518
6530
  }
6519
6531
  case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
@@ -6534,7 +6546,7 @@ class KgUtil {
6534
6546
  default:
6535
6547
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
6536
6548
  }
6537
- w = ` AND (${T}${C} < '${R}')`;
6549
+ w = ` AND (${p}${T} < '${R}')`;
6538
6550
  break;
6539
6551
  }
6540
6552
  case KG_DYNAMIC_QUERY_OPERATOR.GT: {
@@ -6555,7 +6567,7 @@ class KgUtil {
6555
6567
  default:
6556
6568
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
6557
6569
  }
6558
- w = ` AND (${T}${C} >= '${R}')`;
6570
+ w = ` AND (${p}${T} >= '${R}')`;
6559
6571
  break;
6560
6572
  }
6561
6573
  case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
@@ -6572,7 +6584,7 @@ class KgUtil {
6572
6584
  default:
6573
6585
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
6574
6586
  }
6575
- w = ` AND (${T}${C} >= '${I}')`;
6587
+ w = ` AND (${p}${T} >= '${I}')`;
6576
6588
  break;
6577
6589
  }
6578
6590
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
@@ -6594,16 +6606,16 @@ class KgUtil {
6594
6606
  default:
6595
6607
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
6596
6608
  }
6597
- w = ` AND (${T}${C} >= '${I}' AND ${T}${C} < '${R}')`;
6609
+ w = ` AND (${p}${T} >= '${I}' AND ${p}${T} < '${R}')`;
6598
6610
  break;
6599
6611
  }
6600
6612
  }
6601
- o[m] = w;
6613
+ o[y] = w;
6602
6614
  break;
6603
6615
  }
6604
- case (!!a && isArray$1(k) && k.length === 2 && a.isDayjs(k[0]) && a.isDayjs(k[1])): {
6605
- const M = k[0], w = k[1];
6606
- let I = this.parseParamFromDayJS(m, M, r), R = "", P = "";
6616
+ case (!!a && isArray$1(m) && m.length === 2 && a.isDayjs(m[0]) && a.isDayjs(m[1])): {
6617
+ const M = m[0], w = m[1];
6618
+ let I = this.parseParamFromDayJS(y, M, r), R = "", N = "";
6607
6619
  switch (!0) {
6608
6620
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(I): {
6609
6621
  R = w.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
@@ -6618,120 +6630,120 @@ class KgUtil {
6618
6630
  break;
6619
6631
  }
6620
6632
  }
6621
- R ? P = ` AND (${T}${C} >= '${I}' AND ${T}${C} < '${R}')` : P = ` AND (${T}${C} >= '${I}')`, o[m] = P;
6633
+ R ? N = ` AND (${p}${T} >= '${I}' AND ${p}${T} < '${R}')` : N = ` AND (${p}${T} >= '${I}')`, o[y] = N;
6622
6634
  break;
6623
6635
  }
6624
- case Array.isArray(k): {
6625
- if (k.length === 0) {
6626
- o[m] = void 0;
6636
+ case Array.isArray(m): {
6637
+ if (m.length === 0) {
6638
+ o[y] = void 0;
6627
6639
  break;
6628
6640
  }
6629
- const M = k.map((w) => `N'${String(w)}'`).join(", ");
6630
- o[m] = ` AND (${T}${C} IN (${M}))`;
6641
+ const M = m.map((w) => `N'${String(w)}'`).join(", ");
6642
+ o[y] = ` AND (${p}${T} IN (${M}))`;
6631
6643
  break;
6632
6644
  }
6633
- case isObjectLike(k):
6634
- throw KgLogger.error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.", { value: k }), new Error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.");
6635
- case typeof k == "string": {
6636
- if (k.trim() === "") {
6637
- o[m] = void 0;
6645
+ case isObjectLike(m):
6646
+ throw KgLogger.error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.", { value: m }), new Error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.");
6647
+ case typeof m == "string": {
6648
+ if (m.trim() === "") {
6649
+ o[y] = void 0;
6638
6650
  break;
6639
6651
  }
6640
- let M = this.parseParamFromString(k);
6641
- switch (A) {
6652
+ let M = this.parseParamFromString(m);
6653
+ switch (E) {
6642
6654
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
6643
- M = ` AND (${T}${C} <> N'${M}')`;
6655
+ M = ` AND (${p}${T} <> N'${M}')`;
6644
6656
  break;
6645
6657
  }
6646
6658
  case KG_DYNAMIC_QUERY_OPERATOR.START_WITH: {
6647
- M = ` AND (${T}${C} LIKE N'${M}%')`;
6659
+ M = ` AND (${p}${T} LIKE N'${M}%')`;
6648
6660
  break;
6649
6661
  }
6650
6662
  case KG_DYNAMIC_QUERY_OPERATOR.END_WITH: {
6651
- M = ` AND (${T}${C} LIKE N'%${M}')`;
6663
+ M = ` AND (${p}${T} LIKE N'%${M}')`;
6652
6664
  break;
6653
6665
  }
6654
6666
  case KG_DYNAMIC_QUERY_OPERATOR.CONTAIN: {
6655
- M = ` AND (${T}${C} LIKE N'%${M}%')`;
6667
+ M = ` AND (${p}${T} LIKE N'%${M}%')`;
6656
6668
  break;
6657
6669
  }
6658
6670
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
6659
6671
  default: {
6660
- M = ` AND (${T}${C} = N'${M}')`;
6672
+ M = ` AND (${p}${T} = N'${M}')`;
6661
6673
  break;
6662
6674
  }
6663
6675
  }
6664
- o[m] = M;
6676
+ o[y] = M;
6665
6677
  break;
6666
6678
  }
6667
- case typeof k == "number": {
6679
+ case typeof m == "number": {
6668
6680
  let M = "";
6669
- switch (A) {
6681
+ switch (E) {
6670
6682
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
6671
- M = ` AND (${T}${C} <> ${k})`;
6683
+ M = ` AND (${p}${T} <> ${m})`;
6672
6684
  break;
6673
6685
  }
6674
6686
  case KG_DYNAMIC_QUERY_OPERATOR.LT: {
6675
- M = ` AND (${T}${C} < ${k})`;
6687
+ M = ` AND (${p}${T} < ${m})`;
6676
6688
  break;
6677
6689
  }
6678
6690
  case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
6679
- M = ` AND (${T}${C} <= ${k})`;
6691
+ M = ` AND (${p}${T} <= ${m})`;
6680
6692
  break;
6681
6693
  }
6682
6694
  case KG_DYNAMIC_QUERY_OPERATOR.GT: {
6683
- M = ` AND (${T}${C} > ${k})`;
6695
+ M = ` AND (${p}${T} > ${m})`;
6684
6696
  break;
6685
6697
  }
6686
6698
  case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
6687
- M = ` AND (${T}${C} >= ${k})`;
6699
+ M = ` AND (${p}${T} >= ${m})`;
6688
6700
  break;
6689
6701
  }
6690
6702
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
6691
6703
  default: {
6692
- M = ` AND (${T}${C} = ${k})`;
6704
+ M = ` AND (${p}${T} = ${m})`;
6693
6705
  break;
6694
6706
  }
6695
6707
  }
6696
- o[m] = M;
6708
+ o[y] = M;
6697
6709
  break;
6698
6710
  }
6699
- case typeof k == "boolean": {
6711
+ case typeof m == "boolean": {
6700
6712
  let M = "";
6701
- switch (A) {
6713
+ switch (E) {
6702
6714
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
6703
- M = ` AND (${T}${C} <> ${k ? 1 : 0})`;
6715
+ M = ` AND (${p}${T} <> ${m ? 1 : 0})`;
6704
6716
  break;
6705
6717
  }
6706
6718
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
6707
6719
  default: {
6708
- M = ` AND (${T}${C} = ${k ? 1 : 0})`;
6720
+ M = ` AND (${p}${T} = ${m ? 1 : 0})`;
6709
6721
  break;
6710
6722
  }
6711
6723
  }
6712
- o[m] = M;
6724
+ o[y] = M;
6713
6725
  break;
6714
6726
  }
6715
6727
  default: {
6716
- o[m] = k;
6728
+ o[y] = m;
6717
6729
  break;
6718
6730
  }
6719
6731
  }
6720
6732
  });
6721
6733
  const d = reduce(
6722
6734
  o,
6723
- (m, y, T) => l.includes(T) || !y ? m : m + y,
6735
+ (y, _, p) => l.includes(p) || !_ ? y : y + _,
6724
6736
  ""
6725
6737
  );
6726
6738
  let g = "";
6727
6739
  d.trim() && (g = `WHERE${d}`), g = g.replace("WHERE AND", "WHERE");
6728
6740
  let b = "";
6729
6741
  if (n.column) {
6730
- const m = i.store.getVarProfileDetail(r, n.column), y = m != null && m.table_alias ? `${m == null ? void 0 : m.table_alias}.` : "";
6731
- let T = n.column;
6732
- (m == null ? void 0 : m.use_underscore_when_dynamic_query_flag) !== 0 && (T = snakeCase$1(n.column)), b = ` ORDER BY ${y}${T}`, n.order === "asc" ? b += " ASC" : n.order === "desc" && (b += " DESC");
6742
+ const y = i.store.getVarProfileDetail(r, n.column);
6743
+ let _ = n.column;
6744
+ (y == null ? void 0 : y.use_underscore_when_dynamic_query_flag) !== 0 && (_ = n.column.split(".").map((p) => snakeCase$1(p)).join(".")), b = `ORDER BY ${_}`, n.order === "asc" ? b += " ASC" : n.order === "desc" && (b += " DESC");
6733
6745
  }
6734
- return g + b;
6746
+ return { sql: `${g} ${b}`, whereSql: g, orderBySql: b };
6735
6747
  }
6736
6748
  static parseParamFromString(t) {
6737
6749
  var n, s, i, o, l;
@@ -6958,7 +6970,7 @@ class KgVarUtil {
6958
6970
  return r;
6959
6971
  }
6960
6972
  static transformFormItemValue(t, r, a, n, s) {
6961
- var g, b, E;
6973
+ var g, b, y;
6962
6974
  const i = useKg(), o = useKgVar(t);
6963
6975
  let l = n;
6964
6976
  const c = /(.*)?({(.*)?})(.*)?/.exec(l);
@@ -6969,7 +6981,7 @@ class KgVarUtil {
6969
6981
  l = l.replace("{NOW}", a().format("YYYY-MM-DD HH:mm:ss"));
6970
6982
  break;
6971
6983
  case "{USER.username}":
6972
- l = l.replace("{USER.username}", (E = (b = (g = i.store).getUseUserStore) == null ? void 0 : b.call(g).userInfo) == null ? void 0 : E.username);
6984
+ l = l.replace("{USER.username}", (y = (b = (g = i.store).getUseUserStore) == null ? void 0 : b.call(g).userInfo) == null ? void 0 : y.username);
6973
6985
  break;
6974
6986
  }
6975
6987
  }
@@ -6977,14 +6989,14 @@ class KgVarUtil {
6977
6989
  if (!u)
6978
6990
  return l;
6979
6991
  const d = (() => {
6980
- const _ = u.ctrl_typ, p = u.prf_ctrl_typ, m = u.crt_ctrl_typ, y = u.upt_ctrl_typ, T = u.cpy_ctrl_typ, k = u.del_ctrl_typ;
6992
+ const _ = u.ctrl_typ, p = u.prf_ctrl_typ, m = u.crt_ctrl_typ, E = u.upt_ctrl_typ, T = u.cpy_ctrl_typ, k = u.del_ctrl_typ;
6981
6993
  switch (s) {
6982
6994
  case "R":
6983
6995
  return p || _;
6984
6996
  case "C":
6985
6997
  return m || _;
6986
6998
  case "U":
6987
- return y || _;
6999
+ return E || _;
6988
7000
  case "CP":
6989
7001
  return T || _;
6990
7002
  case "D":
@@ -7081,8 +7093,8 @@ class KgVarUtil {
7081
7093
  const p = o.store.getVarPossibility(t, r);
7082
7094
  switch (p == null ? void 0 : p.val_data_type) {
7083
7095
  case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
7084
- const m = _.map((y) => Number(y));
7085
- if (m.some((y) => Number.isNaN(m))) {
7096
+ const m = _.map((E) => Number(E));
7097
+ if (m.some((E) => Number.isNaN(m))) {
7086
7098
  KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
7087
7099
  frm_id: t,
7088
7100
  var_nam: r,
@@ -7361,8 +7373,8 @@ function createSetupStore(e, t, r = {}, a, n) {
7361
7373
  c ? b = w : c == !1 && !C._hotUpdating && (Array.isArray(b) ? b.push(w) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
7362
7374
  });
7363
7375
  let c, u, d = markRaw([]), g = markRaw([]), b;
7364
- const E = a.state.value[e];
7365
- !i && !E && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
7376
+ const y = a.state.value[e];
7377
+ !i && !y && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
7366
7378
  const _ = ref({});
7367
7379
  function p(w) {
7368
7380
  let I;
@@ -7382,15 +7394,15 @@ function createSetupStore(e, t, r = {}, a, n) {
7382
7394
  const m = process.env.NODE_ENV !== "production" ? () => {
7383
7395
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
7384
7396
  } : noop$1;
7385
- function y() {
7397
+ function E() {
7386
7398
  s.stop(), d = [], g = [], a._s.delete(e);
7387
7399
  }
7388
7400
  function T(w, I) {
7389
7401
  return function() {
7390
7402
  setActivePinia(a);
7391
- const R = Array.from(arguments), P = [], O = [];
7403
+ const R = Array.from(arguments), N = [], O = [];
7392
7404
  function F(V) {
7393
- P.push(V);
7405
+ N.push(V);
7394
7406
  }
7395
7407
  function $(V) {
7396
7408
  O.push(V);
@@ -7408,7 +7420,7 @@ function createSetupStore(e, t, r = {}, a, n) {
7408
7420
  } catch (V) {
7409
7421
  throw triggerSubscriptions(O, V), V;
7410
7422
  }
7411
- return D instanceof Promise ? D.then((V) => (triggerSubscriptions(P, V), V)).catch((V) => (triggerSubscriptions(O, V), Promise.reject(V))) : (triggerSubscriptions(P, D), D);
7423
+ return D instanceof Promise ? D.then((V) => (triggerSubscriptions(N, V), V)).catch((V) => (triggerSubscriptions(O, V), Promise.reject(V))) : (triggerSubscriptions(N, D), D);
7412
7424
  };
7413
7425
  }
7414
7426
  const k = /* @__PURE__ */ markRaw({
@@ -7423,7 +7435,7 @@ function createSetupStore(e, t, r = {}, a, n) {
7423
7435
  $patch: p,
7424
7436
  $reset: m,
7425
7437
  $subscribe(w, I = {}) {
7426
- const R = addSubscription(d, w, I.detached, () => P()), P = s.run(() => watch(() => a.state.value[e], (O) => {
7438
+ const R = addSubscription(d, w, I.detached, () => N()), N = s.run(() => watch(() => a.state.value[e], (O) => {
7427
7439
  (I.flush === "sync" ? u : c) && w({
7428
7440
  storeId: e,
7429
7441
  type: MutationType.direct,
@@ -7432,7 +7444,7 @@ function createSetupStore(e, t, r = {}, a, n) {
7432
7444
  }, assign$1({}, l, I)));
7433
7445
  return R;
7434
7446
  },
7435
- $dispose: y
7447
+ $dispose: E
7436
7448
  }, C = reactive(assign$1(
7437
7449
  process.env.NODE_ENV !== "production" && IS_CLIENT ? {
7438
7450
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
@@ -7445,7 +7457,7 @@ function createSetupStore(e, t, r = {}, a, n) {
7445
7457
  for (const w in M) {
7446
7458
  const I = M[w];
7447
7459
  if (isRef(I) && !isComputed(I) || isReactive(I))
7448
- process.env.NODE_ENV !== "production" && n ? set(_.value, w, toRef(M, w)) : i || (E && shouldHydrate(I) && (isRef(I) ? I.value = E[w] : mergeReactiveObjects(I, E[w])), a.state.value[e][w] = I), process.env.NODE_ENV !== "production" && k.state.push(w);
7460
+ process.env.NODE_ENV !== "production" && n ? set(_.value, w, toRef(M, w)) : i || (y && shouldHydrate(I) && (isRef(I) ? I.value = y[w] : mergeReactiveObjects(I, y[w])), a.state.value[e][w] = I), process.env.NODE_ENV !== "production" && k.state.push(w);
7449
7461
  else if (typeof I == "function") {
7450
7462
  const R = process.env.NODE_ENV !== "production" && n ? I : T(w, I);
7451
7463
  M[w] = R, process.env.NODE_ENV !== "production" && (k.actions[w] = I), o.actions[w] = I;
@@ -7465,8 +7477,8 @@ function createSetupStore(e, t, r = {}, a, n) {
7465
7477
  C._hotUpdate = markRaw((I) => {
7466
7478
  C._hotUpdating = !0, I._hmrPayload.state.forEach((R) => {
7467
7479
  if (R in C.$state) {
7468
- const P = I.$state[R], O = C.$state[R];
7469
- typeof P == "object" && isPlainObject(P) && isPlainObject(O) ? patchObject(P, O) : I.$state[R] = O;
7480
+ const N = I.$state[R], O = C.$state[R];
7481
+ typeof N == "object" && isPlainObject(N) && isPlainObject(O) ? patchObject(N, O) : I.$state[R] = O;
7470
7482
  }
7471
7483
  set(C, R, toRef(I.$state, R));
7472
7484
  }), Object.keys(C.$state).forEach((R) => {
@@ -7475,11 +7487,11 @@ function createSetupStore(e, t, r = {}, a, n) {
7475
7487
  c = !0;
7476
7488
  });
7477
7489
  for (const R in I._hmrPayload.actions) {
7478
- const P = I[R];
7479
- set(C, R, T(R, P));
7490
+ const N = I[R];
7491
+ set(C, R, T(R, N));
7480
7492
  }
7481
7493
  for (const R in I._hmrPayload.getters) {
7482
- const P = I._hmrPayload.getters[R], O = i ? computed(() => (setActivePinia(a), P.call(C, C))) : P;
7494
+ const N = I._hmrPayload.getters[R], O = i ? computed(() => (setActivePinia(a), N.call(C, C))) : N;
7483
7495
  set(C, R, O);
7484
7496
  }
7485
7497
  Object.keys(C._hmrPayload.getters).forEach((R) => {
@@ -7518,7 +7530,7 @@ function createSetupStore(e, t, r = {}, a, n) {
7518
7530
  })));
7519
7531
  }), process.env.NODE_ENV !== "production" && C.$state && typeof C.$state == "object" && typeof C.$state.constructor == "function" && !C.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
7520
7532
  state: () => new MyClass()
7521
- Found in store "${C.$id}".`), E && i && r.hydrate && r.hydrate(C.$state, E), c = !0, u = !0, C;
7533
+ Found in store "${C.$id}".`), y && i && r.hydrate && r.hydrate(C.$state, y), c = !0, u = !0, C;
7522
7534
  }
7523
7535
  function defineStore(e, t, r) {
7524
7536
  let a, n;
@@ -8060,18 +8072,18 @@ const KgModal_Close = "", getProps$A = () => ({
8060
8072
  slots: r
8061
8073
  }) {
8062
8074
  if (e.kgMaxHeight < e.kgMinHeight) {
8063
- const y = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
8064
- throw KgLogger.error(y, {
8075
+ const E = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
8076
+ throw KgLogger.error(E, {
8065
8077
  kgMaxHeight: e.kgMaxHeight,
8066
8078
  kgMinHeight: e.kgMinHeight
8067
- }), new Error(y);
8079
+ }), new Error(E);
8068
8080
  }
8069
8081
  if (e.kgMaxWidth < e.kgMinWidth) {
8070
- const y = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
8071
- throw KgLogger.error(y, {
8082
+ const E = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
8083
+ throw KgLogger.error(E, {
8072
8084
  kgMaxWidth: e.kgMaxWidth,
8073
8085
  kgMinWidth: e.kgMinWidth
8074
- }), new Error(y);
8086
+ }), new Error(E);
8075
8087
  }
8076
8088
  let a = 0, n = 0, s = 0, i = 0, o = {
8077
8089
  remove: () => {
@@ -8094,22 +8106,22 @@ const KgModal_Close = "", getProps$A = () => ({
8094
8106
  };
8095
8107
  }
8096
8108
  }), u = computed(() => {
8097
- let y = "";
8098
- switch (e.kgClass && (y += `${e.kgClass} `), y += "kg-resizable", e.kgDisabled && (y += " kg-resizable--disabled"), e.kgType) {
8109
+ let E = "";
8110
+ switch (e.kgClass && (E += `${e.kgClass} `), E += "kg-resizable", e.kgDisabled && (E += " kg-resizable--disabled"), e.kgType) {
8099
8111
  case "left":
8100
- y += " kg-resizable--left";
8112
+ E += " kg-resizable--left";
8101
8113
  break;
8102
8114
  case "right":
8103
- y += " kg-resizable--right";
8115
+ E += " kg-resizable--right";
8104
8116
  break;
8105
8117
  case "top":
8106
- y += " kg-resizable--top";
8118
+ E += " kg-resizable--top";
8107
8119
  break;
8108
8120
  case "bottom":
8109
- y += " kg-resizable--bottom";
8121
+ E += " kg-resizable--bottom";
8110
8122
  break;
8111
8123
  }
8112
- return y;
8124
+ return E;
8113
8125
  });
8114
8126
  function d() {
8115
8127
  o.remove(), l.remove();
@@ -8117,41 +8129,41 @@ const KgModal_Close = "", getProps$A = () => ({
8117
8129
  onUnmounted(() => {
8118
8130
  d();
8119
8131
  });
8120
- const g = (y) => {
8132
+ const g = (E) => {
8121
8133
  switch (e.kgType) {
8122
8134
  case "top":
8123
- t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (y.pageY - i))));
8135
+ t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (E.pageY - i))));
8124
8136
  break;
8125
8137
  case "bottom":
8126
- t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (y.pageY - i))));
8138
+ t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (E.pageY - i))));
8127
8139
  break;
8128
8140
  case "left":
8129
- t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (y.pageX - s))));
8141
+ t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (E.pageX - s))));
8130
8142
  break;
8131
8143
  case "right":
8132
- t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (y.pageX - s))));
8144
+ t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (E.pageX - s))));
8133
8145
  break;
8134
8146
  }
8135
8147
  };
8136
- function b(y) {
8137
- g(y);
8148
+ function b(E) {
8149
+ g(E);
8138
8150
  }
8139
- function E(y) {
8140
- g(y), d();
8151
+ function y(E) {
8152
+ g(E), d();
8141
8153
  }
8142
- function _(y) {
8143
- y.stopPropagation(), y.preventDefault(), d(), !(y instanceof MouseEvent && y.which !== 1) && (s = y.pageX, i = y.pageY, a = e.kgWidth, n = e.kgHeight, o = p(document.documentElement, "mousemove", b), l = p(document.documentElement, "mouseup", E));
8154
+ function _(E) {
8155
+ E.stopPropagation(), E.preventDefault(), d(), !(E instanceof MouseEvent && E.which !== 1) && (s = E.pageX, i = E.pageY, a = e.kgWidth, n = e.kgHeight, o = p(document.documentElement, "mousemove", b), l = p(document.documentElement, "mouseup", y));
8144
8156
  }
8145
- function p(y, T, k) {
8146
- return y.addEventListener(T, k), {
8147
- remove: () => y.removeEventListener(T, k)
8157
+ function p(E, T, k) {
8158
+ return E.addEventListener(T, k), {
8159
+ remove: () => E.removeEventListener(T, k)
8148
8160
  };
8149
8161
  }
8150
- function m(y) {
8151
- y.stopPropagation(), y.preventDefault();
8162
+ function m(E) {
8163
+ E.stopPropagation(), E.preventDefault();
8152
8164
  }
8153
8165
  return () => {
8154
- var y;
8166
+ var E;
8155
8167
  return createVNode("div", {
8156
8168
  class: u.value,
8157
8169
  style: c.value
@@ -8161,7 +8173,7 @@ const KgModal_Close = "", getProps$A = () => ({
8161
8173
  onMousedown: _
8162
8174
  }, [createVNode("div", {
8163
8175
  class: "kg-resizable-handle-line"
8164
- }, null)]), (y = r.default) == null ? void 0 : y.call(r)]);
8176
+ }, null)]), (E = r.default) == null ? void 0 : E.call(r)]);
8165
8177
  };
8166
8178
  }
8167
8179
  }), getProps$w = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_MODEL"), DI_FORM_REF = Symbol("DI_FORM_REF");
@@ -8314,13 +8326,13 @@ function createStore(e, t, r) {
8314
8326
  var u = this[c];
8315
8327
  this[c] = function() {
8316
8328
  var g = slice(arguments, 0), b = this;
8317
- function E() {
8329
+ function y() {
8318
8330
  if (!!u)
8319
8331
  return each$6(arguments, function(p, m) {
8320
8332
  g[m] = p;
8321
8333
  }), u.apply(b, g);
8322
8334
  }
8323
- var _ = [E].concat(g);
8335
+ var _ = [y].concat(g);
8324
8336
  return l.apply(b, _);
8325
8337
  };
8326
8338
  },
@@ -9414,17 +9426,17 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
9414
9426
  varButtons: d,
9415
9427
  varSubmitConfig: g,
9416
9428
  varSubmitFields: b,
9417
- varProfileMasters: E,
9429
+ varProfileMasters: y,
9418
9430
  varProfileConfig: _,
9419
9431
  varGridMasters: p,
9420
9432
  varGridConfig: m
9421
9433
  } = await GetAll({ params: { frm_id: e } });
9422
9434
  this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, i != null ? i : []), this.varPossibilityMap.set(e, c != null ? c : []), this.varVariableConfigMap.set(e, o != null ? o : []), this.varVariableInputMap.set(e, l != null ? l : []), this.varButtonMap.set(e, transformVarButtons(d)), this.varButtonConfigMap.set(e, transformVarButtonConfig(u != null ? u : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(g)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(b)), this.varProfileConfigMap.set(e, transformVarProfileConfig(_ != null ? _ : null)), this.varProfileMasterMap.set(e, {
9423
- varProfileMasters: transformVarProfileMasterDTOs(E),
9424
- currentVarProfileMasterID: (r = (t = (E == null ? void 0 : E.find((y) => y.id === this.getCurrentVarProfileMasterID(e))) || (E == null ? void 0 : E.find((y) => y.def_flg === 1)) || (E == null ? void 0 : E.find((y) => y.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (E == null ? void 0 : E.find(() => !0))) == null ? void 0 : t.id) != null ? r : null
9435
+ varProfileMasters: transformVarProfileMasterDTOs(y),
9436
+ currentVarProfileMasterID: (r = (t = (y == null ? void 0 : y.find((E) => E.id === this.getCurrentVarProfileMasterID(e))) || (y == null ? void 0 : y.find((E) => E.def_flg === 1)) || (y == null ? void 0 : y.find((E) => E.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (y == null ? void 0 : y.find(() => !0))) == null ? void 0 : t.id) != null ? r : null
9425
9437
  }), this.varGridConfigMap.set(e, transformVarGridConfig(m != null ? m : null)), this.varGridMasterMap.set(e, {
9426
9438
  varGridMasters: transformVarGridMasterDTOs(p),
9427
- currentVarGridMasterID: (n = (a = (p == null ? void 0 : p.find((y) => y.id === this.getCurrentVarGridMasterID(e))) || (p == null ? void 0 : p.find((y) => y.def_flg === 1)) || (p == null ? void 0 : p.find((y) => y.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (p == null ? void 0 : p.find(() => !0))) == null ? void 0 : a.id) != null ? n : null
9439
+ currentVarGridMasterID: (n = (a = (p == null ? void 0 : p.find((E) => E.id === this.getCurrentVarGridMasterID(e))) || (p == null ? void 0 : p.find((E) => E.def_flg === 1)) || (p == null ? void 0 : p.find((E) => E.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (p == null ? void 0 : p.find(() => !0))) == null ? void 0 : a.id) != null ? n : null
9428
9440
  }), await Promise.all([
9429
9441
  this.setCurrentVarGridMasterID(e, this.getCurrentVarGridMasterID(e)),
9430
9442
  this.setCurrentVarProfileMasterID(e, this.getCurrentVarProfileMasterID(e))
@@ -9617,14 +9629,14 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
9617
9629
  function useKgVar(e, t, r = 0) {
9618
9630
  var a, n;
9619
9631
  try {
9620
- let s = function(J) {
9621
- u.setIsCreating(c, J);
9622
- }, i = function(J) {
9623
- u.setIsUpdating(c, J);
9624
- }, o = function(J) {
9625
- u.setIsCopying(c, J);
9626
- }, l = function(J) {
9627
- u.setIsDeleting(c, J);
9632
+ let s = function(Z) {
9633
+ u.setIsCreating(c, Z);
9634
+ }, i = function(Z) {
9635
+ u.setIsUpdating(c, Z);
9636
+ }, o = function(Z) {
9637
+ u.setIsCopying(c, Z);
9638
+ }, l = function(Z) {
9639
+ u.setIsDeleting(c, Z);
9628
9640
  }, c = e || inject(KG_DI_FORM_ID, "");
9629
9641
  if (!c)
9630
9642
  throw new Error("useKgVar() | \u5FC5\u987B\u4F20\u5165 formID \u53C2\u6570.");
@@ -9634,20 +9646,20 @@ function useKgVar(e, t, r = 0) {
9634
9646
  }), onUnmounted(() => {
9635
9647
  u.dispose(c);
9636
9648
  }));
9637
- const d = (J) => computed(() => u.t(c, J)), g = computed(() => u.isRetrieving(c)), b = computed(() => u.isRetrievingVarProfileMaster(c)), E = computed(() => u.isRetrievingVarGridMaster(c)), _ = computed(() => u.isRetrieved(c)), p = computed(() => u.isCreating(c)), m = computed(() => u.isCreatingRequesting(c)), y = computed(() => u.isUpdating(c)), T = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), A = computed(() => u.isCopyingRequesting(c)), C = computed(() => u.isDeleting(c)), M = computed(() => u.isDeletingRequesting(c)), w = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), R = computed(() => u.getVarButtonSearch(c)), P = computed(() => u.getVarButtonCreate(c)), O = computed(() => u.getVarButtonUpdate(c)), F = computed(() => u.getVarButtonCopy(c)), $ = computed(() => u.getVarButtonDelete(c)), D = computed(() => u.getVarProfileMasters(c)), V = computed(() => u.getCurrentVarProfileMasterID(c)), N = computed(() => u.getCurrentVarProfileMaster(c)), B = computed(() => {
9638
- var J, te;
9639
- return (te = (J = N.value) == null ? void 0 : J.varProfileDetails) != null ? te : null;
9640
- }), H = computed(() => u.getVarGridConfig(c)), L = computed(() => u.getVarGridMasters(c)), x = computed(() => u.getCurrentVarGridMasterID(c)), Y = computed(() => u.getCurrentVarGridMaster(c)), q = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
9649
+ const d = (Z) => computed(() => u.t(c, Z)), g = computed(() => u.isRetrieving(c)), b = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), _ = computed(() => u.isRetrieved(c)), p = computed(() => u.isCreating(c)), m = computed(() => u.isCreatingRequesting(c)), E = computed(() => u.isUpdating(c)), T = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), A = computed(() => u.isCopyingRequesting(c)), C = computed(() => u.isDeleting(c)), M = computed(() => u.isDeletingRequesting(c)), w = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), R = computed(() => u.getVarButtonSearch(c)), N = computed(() => u.getVarButtonCreate(c)), O = computed(() => u.getVarButtonUpdate(c)), F = computed(() => u.getVarButtonCopy(c)), $ = computed(() => u.getVarButtonDelete(c)), D = computed(() => u.getVarProfileMasters(c)), V = computed(() => u.getCurrentVarProfileMasterID(c)), P = computed(() => u.getCurrentVarProfileMaster(c)), B = computed(() => {
9650
+ var Z, te;
9651
+ return (te = (Z = P.value) == null ? void 0 : Z.varProfileDetails) != null ? te : null;
9652
+ }), Y = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), x = computed(() => u.getCurrentVarGridMasterID(c)), W = computed(() => u.getCurrentVarGridMaster(c)), q = computed(() => u.getSystemVarGridDetails(c)), J = computed(() => u.getCurrentVarGridDetails(c));
9641
9653
  return {
9642
9654
  formID: c,
9643
9655
  store: u,
9644
9656
  isRetrieving: g,
9645
9657
  isRetrievingVarProfileMaster: b,
9646
- isRetrievingVarGridMaster: E,
9658
+ isRetrievingVarGridMaster: y,
9647
9659
  isRetrieved: _,
9648
9660
  isCreating: p,
9649
9661
  isCreatingRequesting: m,
9650
- isUpdating: y,
9662
+ isUpdating: E,
9651
9663
  isUpdatingRequesting: T,
9652
9664
  isCopying: k,
9653
9665
  isCopyingRequesting: A,
@@ -9656,20 +9668,20 @@ function useKgVar(e, t, r = 0) {
9656
9668
  isOtherRequesting: w,
9657
9669
  varButtons: I,
9658
9670
  varButtonSearch: R,
9659
- varButtonCreate: P,
9671
+ varButtonCreate: N,
9660
9672
  varButtonUpdate: O,
9661
9673
  varButtonCopy: F,
9662
9674
  varButtonDelete: $,
9663
9675
  varProfileMasters: D,
9664
9676
  currentVarProfileMasterID: V,
9665
- currentVarProfileMaster: N,
9677
+ currentVarProfileMaster: P,
9666
9678
  currentVarProfileDetails: B,
9667
- varGridConfig: H,
9668
- varGridMasters: L,
9679
+ varGridConfig: Y,
9680
+ varGridMasters: K,
9669
9681
  currentVarGridMasteID: x,
9670
- currentVarGridMaster: Y,
9682
+ currentVarGridMaster: W,
9671
9683
  systemVarGridDetails: q,
9672
- currentVarGridDetails: X,
9684
+ currentVarGridDetails: J,
9673
9685
  setIsCreating: s,
9674
9686
  setIsUpdating: i,
9675
9687
  setIsCopying: o,
@@ -9693,10 +9705,10 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
9693
9705
  }) {
9694
9706
  provide(DI_KG_VAR__KG_PROPS, computed(() => e.kgProps)), provide(DI_KG_VAR__KG_SLOTS, e.kgSlots);
9695
9707
  const r = useKgVar(), a = useKgSearch(r.formID), n = useKgButton(r.formID), s = useKgSubmit(r.formID), i = useKgTable(r.formID), o = computed(() => r.store.getVarProfileConfig(r.formID)), l = computed(() => r.store.getVarButtonConfig(r.formID)), c = computed(() => r.store.getVarGridConfig(r.formID)), u = computed(() => r.store.getVarSubmitConfig(r.formID)), d = computed(() => {
9696
- var y, T, k, A;
9708
+ var E, T, k, A;
9697
9709
  switch (!0) {
9698
9710
  case r.isCreating.value:
9699
- return ((y = u.value) == null ? void 0 : y.crt_flg) !== 0;
9711
+ return ((E = u.value) == null ? void 0 : E.crt_flg) !== 0;
9700
9712
  case r.isUpdating.value:
9701
9713
  return ((T = u.value) == null ? void 0 : T.upt_flg) !== 0;
9702
9714
  case r.isCopying.value:
@@ -9706,25 +9718,25 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
9706
9718
  }
9707
9719
  return !1;
9708
9720
  }), g = computed(() => {
9709
- var y;
9710
- return r.isRetrieved.value && ((y = o.value) == null ? void 0 : y.available_flg) !== 0;
9721
+ var E;
9722
+ return r.isRetrieved.value && ((E = o.value) == null ? void 0 : E.available_flg) !== 0;
9711
9723
  }), b = computed(() => {
9712
- var y;
9713
- return r.isRetrieved.value && ((y = l.value) == null ? void 0 : y.available_flg) !== 0;
9714
- }), E = computed(() => {
9715
- var y;
9716
- return r.isRetrieved.value && ((y = c.value) == null ? void 0 : y.available_flg) !== 0;
9724
+ var E;
9725
+ return r.isRetrieved.value && ((E = l.value) == null ? void 0 : E.available_flg) !== 0;
9726
+ }), y = computed(() => {
9727
+ var E;
9728
+ return r.isRetrieved.value && ((E = c.value) == null ? void 0 : E.available_flg) !== 0;
9717
9729
  }), _ = computed(() => !!r.isOtherRequesting.value), p = computed(() => {
9718
- let y = "kg-var";
9719
- return e.KgBackgroundGray && (y += " kg-var--bg-gray"), !g.value && !b.value && !E.value && (y += " kg-var--empty"), y;
9730
+ let E = "kg-var";
9731
+ return e.KgBackgroundGray && (E += " kg-var--bg-gray"), !g.value && !b.value && !y.value && (E += " kg-var--empty"), E;
9720
9732
  });
9721
9733
  function m() {
9722
9734
  return createVNode(Spin, {
9723
9735
  spinning: _.value
9724
9736
  }, {
9725
9737
  default: () => {
9726
- var y, T;
9727
- return [t.default ? t.default() : createVNode(Fragment, null, [g.value && createVNode(KgSearch, null, null), b.value && createVNode(KgButton, null, null), E.value && createVNode(Fragment, null, [createVNode(KgTable, null, null), (T = (y = e.kgSlots) == null ? void 0 : y.afterKgTable) == null ? void 0 : T.call(y)]), d.value && createVNode(KgSubmit, null, null)])];
9738
+ var E, T;
9739
+ return [t.default ? t.default() : createVNode(Fragment, null, [g.value && createVNode(KgSearch, null, null), b.value && createVNode(KgButton, null, null), y.value && createVNode(Fragment, null, [createVNode(KgTable, null, null), (T = (E = e.kgSlots) == null ? void 0 : E.afterKgTable) == null ? void 0 : T.call(E)]), d.value && createVNode(KgSubmit, null, null)])];
9728
9740
  }
9729
9741
  });
9730
9742
  }
@@ -9753,13 +9765,13 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
9753
9765
  return (m = (p = d == null ? void 0 : d.value) == null ? void 0 : p.ret_fld) != null ? m : "";
9754
9766
  });
9755
9767
  u.onRowDoubleClick(async () => (await _(), !1));
9756
- function E() {
9768
+ function y() {
9757
9769
  r("update:visible", !1);
9758
9770
  }
9759
9771
  async function _() {
9760
- var p, m, y, T, k, A, C;
9772
+ var p, m, E, T, k, A, C;
9761
9773
  if (g.value) {
9762
- const M = (m = (p = u.selectedRows) == null ? void 0 : p.value) != null ? m : [], w = (y = M.map((R) => R[b.value])) != null ? y : [];
9774
+ const M = (m = (p = u.selectedRows) == null ? void 0 : p.value) != null ? m : [], w = (E = M.map((R) => R[b.value])) != null ? E : [];
9763
9775
  await s.store.emit(s.formID, "lookupBeforeOk", {
9764
9776
  var_nam: i,
9765
9777
  isMultiple: !0,
@@ -9798,7 +9810,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
9798
9810
  disabled: ((m = (p = u.selectedRows.value) == null ? void 0 : p.length) != null ? m : 0) === 0
9799
9811
  },
9800
9812
  wrapClassName: "kg-form-item-addon-lookup-modal",
9801
- onCancel: E,
9813
+ onCancel: y,
9802
9814
  onOk: _
9803
9815
  }, {
9804
9816
  default: () => [createVNode(KgVar, null, null)]
@@ -9893,7 +9905,7 @@ function _useRules(e) {
9893
9905
  const t = useKg(), r = useKgVar(), a = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), n = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), s = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName));
9894
9906
  return {
9895
9907
  rules: computed(() => {
9896
- var l, c, u, d, g, b, E, _, p, m;
9908
+ var l, c, u, d, g, b, y, _, p, m;
9897
9909
  let o = [];
9898
9910
  switch (e.kgContext) {
9899
9911
  case KG_FORM_CONTEXT.SEARCH:
@@ -9934,11 +9946,11 @@ function _useRules(e) {
9934
9946
  switch ((b = n.value) == null ? void 0 : b.data_type) {
9935
9947
  case KG_VAR_INPUT__DATA_TYPE.NUMBER:
9936
9948
  {
9937
- const y = (E = n.value) == null ? void 0 : E.min;
9938
- isNil(y) || (((_ = n.value) == null ? void 0 : _.min_include_flg) === 1 ? o.push({
9939
- validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) < y ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [y])) : Promise.resolve()
9949
+ const E = (y = n.value) == null ? void 0 : y.min;
9950
+ isNil(E) || (((_ = n.value) == null ? void 0 : _.min_include_flg) === 1 ? o.push({
9951
+ validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) < E ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [E])) : Promise.resolve()
9940
9952
  }) : o.push({
9941
- validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) <= y ? Promise.reject(t.t("kg.KgFormItem.mustGT", [y])) : Promise.resolve()
9953
+ validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) <= E ? Promise.reject(t.t("kg.KgFormItem.mustGT", [E])) : Promise.resolve()
9942
9954
  }));
9943
9955
  const T = (p = n.value) == null ? void 0 : p.max;
9944
9956
  isNil(T) || (((m = n.value) == null ? void 0 : m.max_include_flg) === 1 ? o.push({
@@ -9955,8 +9967,8 @@ function _useRules(e) {
9955
9967
  }
9956
9968
  function useKgFormItem(e) {
9957
9969
  const t = (e == null ? void 0 : e.kgVarName) || inject(KG_DI_VAR_NAME, e == null ? void 0 : e.kgVarName), r = (e == null ? void 0 : e.kgContext) || inject(DI_KG_CONTEXT, e == null ? void 0 : e.kgContext), a = useKgVar(), n = computed(() => a.store.getVarVariableConfig(a.formID, t)), s = computed(() => {
9958
- var b, E, _, p, m, y;
9959
- const o = ((b = n.value) == null ? void 0 : b.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, l = (E = n.value) == null ? void 0 : E.prf_ctrl_typ, c = (_ = n.value) == null ? void 0 : _.crt_ctrl_typ, u = (p = n.value) == null ? void 0 : p.upt_ctrl_typ, d = (m = n.value) == null ? void 0 : m.cpy_ctrl_typ, g = (y = n.value) == null ? void 0 : y.del_ctrl_typ;
9970
+ var b, y, _, p, m, E;
9971
+ const o = ((b = n.value) == null ? void 0 : b.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, l = (y = n.value) == null ? void 0 : y.prf_ctrl_typ, c = (_ = n.value) == null ? void 0 : _.crt_ctrl_typ, u = (p = n.value) == null ? void 0 : p.upt_ctrl_typ, d = (m = n.value) == null ? void 0 : m.cpy_ctrl_typ, g = (E = n.value) == null ? void 0 : E.del_ctrl_typ;
9960
9972
  switch (r) {
9961
9973
  case KG_FORM_CONTEXT.SEARCH:
9962
9974
  return l || o;
@@ -9974,9 +9986,9 @@ function useKgFormItem(e) {
9974
9986
  }
9975
9987
  return o;
9976
9988
  }), i = computed(() => {
9977
- var E, _, p, m, y, T;
9989
+ var y, _, p, m, E, T;
9978
9990
  let o;
9979
- const l = (E = n.value) == null ? void 0 : E.ctrl_prop, c = (_ = n.value) == null ? void 0 : _.prf_ctrl_prop, u = (p = n.value) == null ? void 0 : p.crt_ctrl_prop, d = (m = n.value) == null ? void 0 : m.upt_ctrl_prop, g = (y = n.value) == null ? void 0 : y.cpy_ctrl_prop, b = (T = n.value) == null ? void 0 : T.del_ctrl_prop;
9991
+ const l = (y = n.value) == null ? void 0 : y.ctrl_prop, c = (_ = n.value) == null ? void 0 : _.prf_ctrl_prop, u = (p = n.value) == null ? void 0 : p.crt_ctrl_prop, d = (m = n.value) == null ? void 0 : m.upt_ctrl_prop, g = (E = n.value) == null ? void 0 : E.cpy_ctrl_prop, b = (T = n.value) == null ? void 0 : T.del_ctrl_prop;
9980
9992
  switch (r) {
9981
9993
  case KG_FORM_CONTEXT.SEARCH:
9982
9994
  o = c || l;
@@ -10009,16 +10021,16 @@ function useKgFormItemSelect() {
10009
10021
  controlType: n,
10010
10022
  controlProperties: s
10011
10023
  } = useKgFormItem(), i = ref(!1), o = ref([]), l = computed(() => {
10012
- var b, E;
10013
- return (E = (b = a.value) == null ? void 0 : b.val_clm) != null ? E : "";
10024
+ var b, y;
10025
+ return (y = (b = a.value) == null ? void 0 : b.val_clm) != null ? y : "";
10014
10026
  }), c = computed(() => {
10015
- var b, E;
10016
- return (E = (b = a.value) == null ? void 0 : b.lbl_clm) != null ? E : "";
10027
+ var b, y;
10028
+ return (y = (b = a.value) == null ? void 0 : b.lbl_clm) != null ? y : "";
10017
10029
  }), u = computed(() => {
10018
- var E;
10019
- let b = KgVarUtil.parseCommandParameter((E = a.value) == null ? void 0 : E.cmd_prm);
10030
+ var y;
10031
+ let b = KgVarUtil.parseCommandParameter((y = a.value) == null ? void 0 : y.cmd_prm);
10020
10032
  return b = mapValues(b, (_) => {
10021
- var m, y;
10033
+ var m, E;
10022
10034
  let p = _;
10023
10035
  if (typeof _ == "string" && _.startsWith("{") && _.endsWith("}")) {
10024
10036
  let T = _.slice(1, -1), k = "";
@@ -10026,7 +10038,7 @@ function useKgFormItemSelect() {
10026
10038
  const A = T.split(".");
10027
10039
  T = A[0], k = A[1];
10028
10040
  }
10029
- t.value && T in t.value && (k ? p = (y = (m = t.value[`${T}_obj`]) == null ? void 0 : m[k]) != null ? y : void 0 : p = t.value[T], p || (p = "__kg__form_item_select__pid"));
10041
+ t.value && T in t.value && (k ? p = (E = (m = t.value[`${T}_obj`]) == null ? void 0 : m[k]) != null ? E : void 0 : p = t.value[T], p || (p = "__kg__form_item_select__pid"));
10030
10042
  }
10031
10043
  return p;
10032
10044
  }), b;
@@ -10034,21 +10046,21 @@ function useKgFormItemSelect() {
10034
10046
  async function d() {
10035
10047
  var T, k, A, C, M, w, I, R;
10036
10048
  let b = [];
10037
- const E = (T = a.value) == null ? void 0 : T.cmd, _ = (A = (k = a.value) == null ? void 0 : k.cmd_method) != null ? A : "GET", p = (M = (C = a.value) == null ? void 0 : C.val_clm) != null ? M : "", m = (I = (w = a.value) == null ? void 0 : w.lbl_clm) != null ? I : "";
10038
- if (!E || !p || !m) {
10049
+ const y = (T = a.value) == null ? void 0 : T.cmd, _ = (A = (k = a.value) == null ? void 0 : k.cmd_method) != null ? A : "GET", p = (M = (C = a.value) == null ? void 0 : C.val_clm) != null ? M : "", m = (I = (w = a.value) == null ? void 0 : w.lbl_clm) != null ? I : "";
10050
+ if (!y || !p || !m) {
10039
10051
  KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
10040
10052
  frm_id: r.formID,
10041
10053
  var_nam: e,
10042
- cmd: E,
10054
+ cmd: y,
10043
10055
  val_clm: p,
10044
10056
  lbl_clm: m
10045
10057
  });
10046
10058
  return;
10047
10059
  }
10048
- let y = null;
10060
+ let E = null;
10049
10061
  try {
10050
- i.value = !0, y = await ((R = httpClient()) == null ? void 0 : R.request({
10051
- url: E,
10062
+ i.value = !0, E = await ((R = httpClient()) == null ? void 0 : R.request({
10063
+ url: y,
10052
10064
  method: _,
10053
10065
  params: u.value
10054
10066
  }));
@@ -10056,59 +10068,59 @@ function useKgFormItemSelect() {
10056
10068
  } finally {
10057
10069
  i.value = !1;
10058
10070
  }
10059
- if (!isObjectLike(y))
10071
+ if (!isObjectLike(E))
10060
10072
  b = [];
10061
10073
  else
10062
10074
  switch (!0) {
10063
- case isArrayLike(y):
10064
- b = g(y);
10075
+ case isArrayLike(E):
10076
+ b = g(E);
10065
10077
  break;
10066
- case (y && "total" in y && "records" in y):
10067
- b = g(y.records);
10078
+ case (E && "total" in E && "records" in E):
10079
+ b = g(E.records);
10068
10080
  break;
10069
10081
  }
10070
10082
  if (b.length > 0) {
10071
- const P = b[0];
10072
- (!(p in P) || !(m in P)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
10083
+ const N = b[0];
10084
+ (!(p in N) || !(m in N)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
10073
10085
  frm_id: r.formID,
10074
10086
  var_nam: e,
10075
- cmd: E,
10087
+ cmd: y,
10076
10088
  val_clm: p,
10077
10089
  lbl_clm: m,
10078
- \u6240\u6709\u5217: Object.keys(P)
10090
+ \u6240\u6709\u5217: Object.keys(N)
10079
10091
  });
10080
10092
  }
10081
10093
  o.value = b;
10082
10094
  }
10083
10095
  function g(b) {
10084
- var p, m, y, T, k;
10096
+ var p, m, E, T, k;
10085
10097
  if (!b)
10086
10098
  return [];
10087
- const E = (m = (p = a.value) == null ? void 0 : p.val_clm) != null ? m : "", _ = (T = (y = a.value) == null ? void 0 : y.val_data_type) != null ? T : "string";
10099
+ const y = (m = (p = a.value) == null ? void 0 : p.val_clm) != null ? m : "", _ = (T = (E = a.value) == null ? void 0 : E.val_data_type) != null ? T : "string";
10088
10100
  switch (_) {
10089
10101
  case KG_POSSIBILITY_DATA_TYPE.STRING:
10090
10102
  b.forEach((A) => {
10091
- A[E] = String(A[E]);
10103
+ A[y] = String(A[y]);
10092
10104
  });
10093
10105
  break;
10094
10106
  case KG_POSSIBILITY_DATA_TYPE.NUMBER:
10095
10107
  b.forEach((A) => {
10096
- let C = Number(A[E]);
10097
- Number.isNaN(C) && (C = A[E], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${A[E]} \u8F6C\u6362\u4E3A ${_} \u7C7B\u578B`, {
10108
+ let C = Number(A[y]);
10109
+ Number.isNaN(C) && (C = A[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${A[y]} \u8F6C\u6362\u4E3A ${_} \u7C7B\u578B`, {
10098
10110
  frm_id: r.formID,
10099
10111
  var_nam: e,
10100
10112
  VarPossibility: a.value
10101
- })), A[E] = C;
10113
+ })), A[y] = C;
10102
10114
  });
10103
10115
  break;
10104
10116
  case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
10105
10117
  b.forEach((A) => {
10106
10118
  let C;
10107
- String(A[E]).toLowerCase() === "true" ? C = !0 : String(A[E]).toLowerCase() === "false" ? C = !1 : (C = A[E], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${A[E]} \u8F6C\u6362\u4E3A ${_} \u7C7B\u578B`, {
10119
+ String(A[y]).toLowerCase() === "true" ? C = !0 : String(A[y]).toLowerCase() === "false" ? C = !1 : (C = A[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${A[y]} \u8F6C\u6362\u4E3A ${_} \u7C7B\u578B`, {
10108
10120
  frm_id: r.formID,
10109
10121
  var_nam: e,
10110
10122
  VarPossibility: a.value
10111
- })), A[E] = C;
10123
+ })), A[y] = C;
10112
10124
  });
10113
10125
  break;
10114
10126
  }
@@ -10119,7 +10131,7 @@ function useKgFormItemSelect() {
10119
10131
  if ((k = A.value) != null && k.excludeValues)
10120
10132
  return b.filter((C) => {
10121
10133
  var M;
10122
- return !((M = A.value.excludeValues) != null && M.includes(C[E]));
10134
+ return !((M = A.value.excludeValues) != null && M.includes(C[y]));
10123
10135
  });
10124
10136
  }
10125
10137
  break;
@@ -10160,19 +10172,19 @@ const KgFormItemCheckboxGroup = defineComponent({
10160
10172
  watch(o, () => b(), {
10161
10173
  immediate: !0
10162
10174
  }), watch([() => e.value, c], ([p, m]) => {
10163
- const y = get(p, "length", 0);
10164
- if (y > 0 && m.length > 0) {
10175
+ const E = get(p, "length", 0);
10176
+ if (E > 0 && m.length > 0) {
10165
10177
  const T = intersection$1(p, m == null ? void 0 : m.map((k) => k[l.value]));
10166
- if (T.length < y) {
10178
+ if (T.length < E) {
10167
10179
  r("update:value", T);
10168
10180
  return;
10169
10181
  }
10170
10182
  }
10171
10183
  switch (!0) {
10172
- case (y > 0 && y === m.length):
10184
+ case (E > 0 && E === m.length):
10173
10185
  d.value = !0, g.value = !1;
10174
10186
  break;
10175
- case (y > 0 && y !== m.length):
10187
+ case (E > 0 && E !== m.length):
10176
10188
  d.value = !1, g.value = !0;
10177
10189
  break;
10178
10190
  default:
@@ -10184,11 +10196,11 @@ const KgFormItemCheckboxGroup = defineComponent({
10184
10196
  });
10185
10197
  async function b() {
10186
10198
  var p, m;
10187
- !((p = i.value) != null && p.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((m = c.value) == null ? void 0 : m.map((y) => y[l.value]), e.value)));
10199
+ !((p = i.value) != null && p.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((m = c.value) == null ? void 0 : m.map((E) => E[l.value]), e.value)));
10188
10200
  }
10189
- function E(p) {
10190
- var m, y, T;
10191
- p.target.checked ? _((y = (m = c.value) == null ? void 0 : m.map((k) => k[l.value])) != null ? y : []) : _([]), g.value = !1, (T = n.value) == null || T.validate(e.kgVarName);
10201
+ function y(p) {
10202
+ var m, E, T;
10203
+ p.target.checked ? _((E = (m = c.value) == null ? void 0 : m.map((k) => k[l.value])) != null ? E : []) : _([]), g.value = !1, (T = n.value) == null || T.validate(e.kgVarName);
10192
10204
  }
10193
10205
  function _(p) {
10194
10206
  r("update:value", p), r("kgChange", p);
@@ -10200,9 +10212,9 @@ const KgFormItemCheckboxGroup = defineComponent({
10200
10212
  }, [createVNode(Form.ItemRest, null, {
10201
10213
  default: () => [createVNode(Checkbox, {
10202
10214
  checked: d.value,
10203
- "onUpdate:checked": (y) => d.value = y,
10215
+ "onUpdate:checked": (E) => d.value = E,
10204
10216
  indeterminate: g.value,
10205
- onChange: E
10217
+ onChange: y
10206
10218
  }, _isSlot$b(p = a.t("kg.selectAll")) ? p : {
10207
10219
  default: () => [p]
10208
10220
  })]
@@ -10212,18 +10224,18 @@ const KgFormItemCheckboxGroup = defineComponent({
10212
10224
  }, {
10213
10225
  default: () => [createVNode(Row, {
10214
10226
  gutter: 12
10215
- }, _isSlot$b(m = c.value.map((y) => {
10227
+ }, _isSlot$b(m = c.value.map((E) => {
10216
10228
  var T, k;
10217
10229
  return createVNode(Col, {
10218
10230
  span: (k = (T = s.value) == null ? void 0 : T.span) != null ? k : 24
10219
10231
  }, {
10220
10232
  default: () => [createVNode(Checkbox, {
10221
- value: y[l.value],
10222
- "kg-value": y[l.value]
10233
+ value: E[l.value],
10234
+ "kg-value": E[l.value]
10223
10235
  }, {
10224
10236
  default: () => {
10225
10237
  var A, C;
10226
- return [y[(C = (A = i.value) == null ? void 0 : A.lbl_clm) != null ? C : ""]];
10238
+ return [E[(C = (A = i.value) == null ? void 0 : A.lbl_clm) != null ? C : ""]];
10227
10239
  }
10228
10240
  })]
10229
10241
  });
@@ -10381,9 +10393,9 @@ const KgFormItemRadioGroup = defineComponent({
10381
10393
  default: () => [createVNode(Row, {
10382
10394
  gutter: 12
10383
10395
  }, _isSlot$a(d = o.value.map((g) => {
10384
- var b, E;
10396
+ var b, y;
10385
10397
  return createVNode(Col, {
10386
- span: (E = (b = a.value) == null ? void 0 : b.span) != null ? E : 24
10398
+ span: (y = (b = a.value) == null ? void 0 : b.span) != null ? y : 24
10387
10399
  }, {
10388
10400
  default: () => [createVNode(Radio, {
10389
10401
  value: g[i.value],
@@ -10429,7 +10441,7 @@ const KgFormItemRadioGroup = defineComponent({
10429
10441
  switch (await g(), r("kgSelectDatasChange", d.value), e.kgMode) {
10430
10442
  case "multiple": {
10431
10443
  if (Array.isArray(e.value)) {
10432
- const m = e.value.filter((y) => d.value.find((T) => T[l.value] === y));
10444
+ const m = e.value.filter((E) => d.value.find((T) => T[l.value] === E));
10433
10445
  m.length > 0 ? r("update:value", m) : r("update:value", []);
10434
10446
  }
10435
10447
  break;
@@ -10439,8 +10451,8 @@ const KgFormItemRadioGroup = defineComponent({
10439
10451
  break;
10440
10452
  }
10441
10453
  }
10442
- function E(p) {
10443
- var m, y;
10454
+ function y(p) {
10455
+ var m, E;
10444
10456
  switch (e.kgMode) {
10445
10457
  case "multiple": {
10446
10458
  if (Array.isArray(p)) {
@@ -10453,7 +10465,7 @@ const KgFormItemRadioGroup = defineComponent({
10453
10465
  break;
10454
10466
  }
10455
10467
  default: {
10456
- const T = (y = toRaw(d.value.find((k) => k[l.value] === p))) != null ? y : null;
10468
+ const T = (E = toRaw(d.value.find((k) => k[l.value] === p))) != null ? E : null;
10457
10469
  r("kgSelectChange", T), s.store.emit(s.formID, "selectChange", {
10458
10470
  var_nam: e.kgVarName,
10459
10471
  rows: T
@@ -10478,10 +10490,10 @@ const KgFormItemRadioGroup = defineComponent({
10478
10490
  placeholder: e.kgPlaceholder,
10479
10491
  showArrow: !0,
10480
10492
  showSearch: !0,
10481
- filterOption: (m, y) => (y == null ? void 0 : y.value) !== null && (y == null ? void 0 : y.value) !== void 0 && String(y.value).toLowerCase().includes(m.toLowerCase()) || (y == null ? void 0 : y.label) !== null && (y == null ? void 0 : y.label) !== void 0 && String(y.label).toLowerCase().includes(m.toLowerCase()),
10493
+ filterOption: (m, E) => (E == null ? void 0 : E.value) !== null && (E == null ? void 0 : E.value) !== void 0 && String(E.value).toLowerCase().includes(m.toLowerCase()) || (E == null ? void 0 : E.label) !== null && (E == null ? void 0 : E.label) !== void 0 && String(E.label).toLowerCase().includes(m.toLowerCase()),
10482
10494
  dropdownClassName: e.kgMode === "multiple" ? "kg-form-item-select-dropdown kg-form-item-multi-select-dropdown" : "kg-form-item-select-dropdown",
10483
10495
  class: "kg-form-item-select",
10484
- onChange: E,
10496
+ onChange: y,
10485
10497
  "kg-value": e.value,
10486
10498
  "kg-cmd": (p = i.value) == null ? void 0 : p.cmd,
10487
10499
  "kg-val_clm": l.value,
@@ -10564,10 +10576,10 @@ const KgFormItemRadioGroup = defineComponent({
10564
10576
  value: D,
10565
10577
  values: V
10566
10578
  }) => {
10567
- var N;
10579
+ var P;
10568
10580
  switch (O) {
10569
10581
  case e.kgVarName:
10570
- F.value && ($ ? F.value[e.kgVarName] = V : F.value[e.kgVarName] = D), (N = n.value) == null || N.validate([e.kgVarName]);
10582
+ F.value && ($ ? F.value[e.kgVarName] = V : F.value[e.kgVarName] = D), (P = n.value) == null || P.validate([e.kgVarName]);
10571
10583
  break;
10572
10584
  }
10573
10585
  return !1;
@@ -10575,9 +10587,9 @@ const KgFormItemRadioGroup = defineComponent({
10575
10587
  const c = computed(() => i.store.getVarLookup(i.formID, e.kgVarName)), u = computed(() => i.store.getVarVariableConfig(i.formID, e.kgVarName)), d = computed(() => i.store.getVarProfileDetail(i.formID, e.kgVarName)), g = computed(() => i.store.getVarSubmitField(i.formID, e.kgVarName)), {
10576
10588
  rules: b
10577
10589
  } = _useRules(e), {
10578
- controlType: E
10590
+ controlType: y
10579
10591
  } = useKgFormItem(e), _ = computed(() => {
10580
- var F, $, D, V, N;
10592
+ var F, $, D, V, P;
10581
10593
  if (i.isRetrieving.value)
10582
10594
  return !0;
10583
10595
  let O = !1;
@@ -10600,7 +10612,7 @@ const KgFormItemRadioGroup = defineComponent({
10600
10612
  O = ((V = g.value) == null ? void 0 : V.cpy_ena_flg) === 0;
10601
10613
  break;
10602
10614
  case i.isDeleting.value:
10603
- O = ((N = g.value) == null ? void 0 : N.del_ena_flg) === 0;
10615
+ O = ((P = g.value) == null ? void 0 : P.del_ena_flg) === 0;
10604
10616
  break;
10605
10617
  }
10606
10618
  break;
@@ -10622,7 +10634,7 @@ const KgFormItemRadioGroup = defineComponent({
10622
10634
  }
10623
10635
  return O;
10624
10636
  }), m = computed(() => {
10625
- var F, $, D, V, N, B, H, L, x, Y;
10637
+ var F, $, D, V, P, B, Y, K, x, W;
10626
10638
  let O = 6;
10627
10639
  if (e.kgSpan !== void 0)
10628
10640
  O = e.kgSpan;
@@ -10637,22 +10649,22 @@ const KgFormItemRadioGroup = defineComponent({
10637
10649
  O = (V = (D = g.value) == null ? void 0 : D.crt_width) != null ? V : 6;
10638
10650
  break;
10639
10651
  case i.isUpdating.value:
10640
- O = (B = (N = g.value) == null ? void 0 : N.upt_width) != null ? B : 6;
10652
+ O = (B = (P = g.value) == null ? void 0 : P.upt_width) != null ? B : 6;
10641
10653
  break;
10642
10654
  case i.isCopying.value:
10643
- O = (L = (H = g.value) == null ? void 0 : H.cpy_width) != null ? L : 6;
10655
+ O = (K = (Y = g.value) == null ? void 0 : Y.cpy_width) != null ? K : 6;
10644
10656
  break;
10645
10657
  case i.isDeleting.value:
10646
- O = (Y = (x = g.value) == null ? void 0 : x.del_width) != null ? Y : 6;
10658
+ O = (W = (x = g.value) == null ? void 0 : x.del_width) != null ? W : 6;
10647
10659
  break;
10648
10660
  }
10649
10661
  }
10650
- return O = Number(O), new Array(24).fill(0).map((q, X) => X + 1).includes(O) ? O : (KgLogger.error("| \u6570\u636E\u6709\u8BEF | \u5BBD\u5EA6\u5FC5\u987B\u4E3A [1, 24] \u4E4B\u95F4\u7684\u6574\u6570.", {
10662
+ return O = Number(O), new Array(24).fill(0).map((q, J) => J + 1).includes(O) ? O : (KgLogger.error("| \u6570\u636E\u6709\u8BEF | \u5BBD\u5EA6\u5FC5\u987B\u4E3A [1, 24] \u4E4B\u95F4\u7684\u6574\u6570.", {
10651
10663
  VarProfileDetail: d.value,
10652
10664
  VarSubmitField: g.value
10653
10665
  }), 6);
10654
- }), y = computed(() => {
10655
- var F, $, D, V, N;
10666
+ }), E = computed(() => {
10667
+ var F, $, D, V, P;
10656
10668
  let O = null;
10657
10669
  if (e.kgSpan !== void 0)
10658
10670
  O = e.kgSpan;
@@ -10673,11 +10685,11 @@ const KgFormItemRadioGroup = defineComponent({
10673
10685
  O = (V = g.value) == null ? void 0 : V.cpy_width;
10674
10686
  break;
10675
10687
  case i.isDeleting.value:
10676
- O = (N = g.value) == null ? void 0 : N.del_width;
10688
+ O = (P = g.value) == null ? void 0 : P.del_width;
10677
10689
  break;
10678
10690
  }
10679
10691
  }
10680
- return O = Number(O), new Array(24).fill(0).map((B, H) => H + 1).includes(O) ? O : null;
10692
+ return O = Number(O), new Array(24).fill(0).map((B, Y) => Y + 1).includes(O) ? O : null;
10681
10693
  }), T = computed(() => {
10682
10694
  var D, V;
10683
10695
  const O = get(M.value, "$el.parentElement");
@@ -10692,7 +10704,7 @@ const KgFormItemRadioGroup = defineComponent({
10692
10704
  }), k = computed(() => {
10693
10705
  var F, $, D, V;
10694
10706
  let O = "kg-form-item";
10695
- switch (c.value && (O += " kg-form-item-lookup"), y.value !== null && (O += " kg-form-item--col-fixed"), e.kgContext) {
10707
+ switch (c.value && (O += " kg-form-item-lookup"), E.value !== null && (O += " kg-form-item--col-fixed"), e.kgContext) {
10696
10708
  case KG_FORM_CONTEXT.SEARCH:
10697
10709
  switch (!0) {
10698
10710
  case ((F = d.value) == null ? void 0 : F.vis_flg) === 0:
@@ -10723,7 +10735,7 @@ const KgFormItemRadioGroup = defineComponent({
10723
10735
  kgDisabled: _.value,
10724
10736
  id: C.value
10725
10737
  };
10726
- switch (E.value) {
10738
+ switch (y.value) {
10727
10739
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
10728
10740
  break;
10729
10741
  case KG_FORM_ITEM_TYPE.SELECT:
@@ -10767,7 +10779,7 @@ const KgFormItemRadioGroup = defineComponent({
10767
10779
  };
10768
10780
  return t.control(O);
10769
10781
  }
10770
- switch (E.value) {
10782
+ switch (y.value) {
10771
10783
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
10772
10784
  return createVNode(KgFormItemInputNumber, A.value, null);
10773
10785
  case KG_FORM_ITEM_TYPE.TEXT_AREA:
@@ -10818,7 +10830,7 @@ const KgFormItemRadioGroup = defineComponent({
10818
10830
  }, {
10819
10831
  default: () => {
10820
10832
  var V;
10821
- return KgVarUtil.getDynamicQueryOperatorSelectOptions((V = E.value) != null ? V : "");
10833
+ return KgVarUtil.getDynamicQueryOperatorSelectOptions((V = y.value) != null ? V : "");
10822
10834
  },
10823
10835
  suffixIcon: () => createVNode(CaretDownOutlined$1, {
10824
10836
  class: "ant-select-suffix"
@@ -10832,7 +10844,7 @@ const KgFormItemRadioGroup = defineComponent({
10832
10844
  title: i.t(e.kgVarName).value
10833
10845
  }, [i.t(e.kgVarName).value]) : null;
10834
10846
  }
10835
- function P() {
10847
+ function N() {
10836
10848
  var O;
10837
10849
  return !c.value || !((O = c.value) != null && O.lkp_id) ? null : createVNode(Form.ItemRest, null, {
10838
10850
  default: () => [createVNode(KgFormItemAddonLookup, {
@@ -10859,7 +10871,7 @@ const KgFormItemRadioGroup = defineComponent({
10859
10871
  validateFirst: !0,
10860
10872
  htmlFor: C.value
10861
10873
  }, {
10862
- default: () => createVNode(Fragment, null, [I(), w(), P()]),
10874
+ default: () => createVNode(Fragment, null, [I(), w(), N()]),
10863
10875
  label: () => R()
10864
10876
  })]
10865
10877
  });
@@ -11223,9 +11235,9 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
11223
11235
  }).bind(null, pinia())), store$5);
11224
11236
  function useKgSubmit(e) {
11225
11237
  const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
11226
- var p, m, y, T, k;
11238
+ var p, m, E, T, k;
11227
11239
  let l = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
11228
- const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (p = a.value) == null ? void 0 : p.display_type, g = (m = a.value) == null ? void 0 : m.crt_display_type, b = (y = a.value) == null ? void 0 : y.upt_display_type, E = (T = a.value) == null ? void 0 : T.cpy_display_type, _ = (k = a.value) == null ? void 0 : k.del_display_type;
11240
+ const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (p = a.value) == null ? void 0 : p.display_type, g = (m = a.value) == null ? void 0 : m.crt_display_type, b = (E = a.value) == null ? void 0 : E.upt_display_type, y = (T = a.value) == null ? void 0 : T.cpy_display_type, _ = (k = a.value) == null ? void 0 : k.del_display_type;
11229
11241
  switch (!0) {
11230
11242
  case (t.isCreating.value && (g === c || !g && d === c)):
11231
11243
  l = c;
@@ -11233,7 +11245,7 @@ function useKgSubmit(e) {
11233
11245
  case (t.isUpdating.value && (b === c || !b && d === c)):
11234
11246
  l = c;
11235
11247
  break;
11236
- case (t.isCopying.value && (E === c || !E && d === c)):
11248
+ case (t.isCopying.value && (y === c || !y && d === c)):
11237
11249
  l = c;
11238
11250
  break;
11239
11251
  case (t.isDeleting.value && (_ === c || !_)):
@@ -11247,7 +11259,7 @@ function useKgSubmit(e) {
11247
11259
  case (t.isUpdating.value && (b === u || !b && d === u)):
11248
11260
  l = u;
11249
11261
  break;
11250
- case (t.isCopying.value && (E === u || !E && d === u)):
11262
+ case (t.isCopying.value && (y === u || !y && d === u)):
11251
11263
  l = u;
11252
11264
  break;
11253
11265
  }
@@ -11297,8 +11309,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
11297
11309
  }) => {
11298
11310
  const u = s.store.getVarSubmitConfig(s.formID);
11299
11311
  return o = watch(c, (d) => {
11300
- var g, b, E, _, p, m, y, T, k, A, C, M;
11301
- d && (d.id = (g = u == null ? void 0 : u.id) != null ? g : null, d.frm_id = s.formID, d.resizable_flg = (b = u == null ? void 0 : u.resizable_flg) != null ? b : 1, d.fullscreen_flg = (E = u == null ? void 0 : u.fullscreen_flg) != null ? E : 1, d.dft_fullscreen_flg = (_ = u == null ? void 0 : u.dft_fullscreen_flg) != null ? _ : 0, d.responsive_flg = (p = u == null ? void 0 : u.responsive_flg) != null ? p : 1, d.max_width = (m = u == null ? void 0 : u.max_width) != null ? m : DEFAULT_MAX_WIDTH, d.min_width = (y = u == null ? void 0 : u.min_width) != null ? y : DEFAULT_MIN_WIDTH, d.dft_width = (T = u == null ? void 0 : u.dft_width) != null ? T : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (A = u == null ? void 0 : u.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (C = u == null ? void 0 : u.label_col_unit) != null ? C : KG_WIDTH_UNIT.SPAN, d.display_type = (M = u == null ? void 0 : u.display_type) != null ? M : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
11312
+ var g, b, y, _, p, m, E, T, k, A, C, M;
11313
+ d && (d.id = (g = u == null ? void 0 : u.id) != null ? g : null, d.frm_id = s.formID, d.resizable_flg = (b = u == null ? void 0 : u.resizable_flg) != null ? b : 1, d.fullscreen_flg = (y = u == null ? void 0 : u.fullscreen_flg) != null ? y : 1, d.dft_fullscreen_flg = (_ = u == null ? void 0 : u.dft_fullscreen_flg) != null ? _ : 0, d.responsive_flg = (p = u == null ? void 0 : u.responsive_flg) != null ? p : 1, d.max_width = (m = u == null ? void 0 : u.max_width) != null ? m : DEFAULT_MAX_WIDTH, d.min_width = (E = u == null ? void 0 : u.min_width) != null ? E : DEFAULT_MIN_WIDTH, d.dft_width = (T = u == null ? void 0 : u.dft_width) != null ? T : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (A = u == null ? void 0 : u.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (C = u == null ? void 0 : u.label_col_unit) != null ? C : KG_WIDTH_UNIT.SPAN, d.display_type = (M = u == null ? void 0 : u.display_type) != null ? M : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
11302
11314
  }, {
11303
11315
  immediate: !0
11304
11316
  }), KgUtil.hideLoading(), !1;
@@ -11347,7 +11359,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
11347
11359
  function b() {
11348
11360
  r("kgCancel");
11349
11361
  }
11350
- function E() {
11362
+ function y() {
11351
11363
  var m;
11352
11364
  return e.kgShowFullscreenButton === !1 || ((m = o.value) == null ? void 0 : m.fullscreen_flg) === 0 ? null : createVNode(Button, {
11353
11365
  onClick: d,
@@ -11376,7 +11388,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
11376
11388
  default: () => [createVNode(CloseOutlined$1, null, null)]
11377
11389
  });
11378
11390
  }
11379
- return () => createVNode(Fragment, null, [_(), E(), p()]);
11391
+ return () => createVNode(Fragment, null, [_(), y(), p()]);
11380
11392
  }
11381
11393
  }), 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;
11382
11394
  function _useFormModel$1() {
@@ -11401,8 +11413,8 @@ function _useFormModel$1() {
11401
11413
  }
11402
11414
  const d = r.selectedRow.value;
11403
11415
  u.forEach((g) => {
11404
- var E, _, p, m, y, T, k, A;
11405
- const b = (E = g.var_nam) != null ? E : "";
11416
+ var y, _, p, m, E, T, k, A;
11417
+ const b = (y = g.var_nam) != null ? y : "";
11406
11418
  switch (c.value[b] = void 0, !0) {
11407
11419
  case t.isCreating.value:
11408
11420
  c.value[b] = KgVarUtil.transformFormItemValue(t.formID, b, e, (_ = g.crt_dft_val) != null ? _ : void 0, "C");
@@ -11411,7 +11423,7 @@ function _useFormModel$1() {
11411
11423
  c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformFormItemValue(t.formID, b, e, (m = (p = g.upt_dft_val) != null ? p : d == null ? void 0 : d[b]) != null ? m : void 0, "U");
11412
11424
  break;
11413
11425
  case t.isCopying.value:
11414
- c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformFormItemValue(t.formID, b, e, (T = (y = g.cpy_dft_val) != null ? y : d == null ? void 0 : d[b]) != null ? T : void 0, "CP");
11426
+ c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformFormItemValue(t.formID, b, e, (T = (E = g.cpy_dft_val) != null ? E : d == null ? void 0 : d[b]) != null ? T : void 0, "CP");
11415
11427
  break;
11416
11428
  case t.isDeleting.value:
11417
11429
  c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformFormItemValue(t.formID, b, e, (A = (k = g.del_dft_val) != null ? k : d == null ? void 0 : d[b]) != null ? A : void 0, "D");
@@ -11485,9 +11497,9 @@ function _useClass(e, t) {
11485
11497
  const r = inject(DI_KG_VAR__KG_PROPS, null), a = useKgVar(), n = useKgSubmit(), s = computed(() => a.store.getVarSubmitConfig(a.formID)), i = computed(() => a.store.getVarSubmitFieldsForDeleteKey(a.formID));
11486
11498
  return {
11487
11499
  getClass: computed(() => {
11488
- var c, u, d, g, b, E, _;
11500
+ var c, u, d, g, b, y, _;
11489
11501
  let l = "kg-submit";
11490
- return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (b = (g = r == null ? void 0 : r.value) == null ? void 0 : g.KgSubmit) != null && b.kgClass ? l += ` ${(_ = (E = r == null ? void 0 : r.value) == null ? void 0 : E.KgSubmit) == null ? void 0 : _.kgClass}` : e.kgClass && (l += ` ${e.kgClass}`), l;
11502
+ return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (b = (g = r == null ? void 0 : r.value) == null ? void 0 : g.KgSubmit) != null && b.kgClass ? l += ` ${(_ = (y = r == null ? void 0 : r.value) == null ? void 0 : y.KgSubmit) == null ? void 0 : _.kgClass}` : e.kgClass && (l += ` ${e.kgClass}`), l;
11491
11503
  })
11492
11504
  };
11493
11505
  }
@@ -11563,106 +11575,106 @@ const getProps$p = () => ({
11563
11575
  inject(DI_KG_VAR__KG_PROPS, null);
11564
11576
  const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = useKgSearch();
11565
11577
  i.onSubmitSave(async () => (await ee(), !1)), i.onSubmitCancel(async () => (await z(), !1)), _useFormModel$1();
11566
- const u = computed(() => s.isDeleting.value && R.value.length === 0 && O.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), g = computed(() => s.store.getVarSubmitConfig(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), p = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), m = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), M = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), w = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), R = computed(() => {
11567
- var G, W, Z;
11578
+ const u = computed(() => s.isDeleting.value && R.value.length === 0 && O.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), g = computed(() => s.store.getVarSubmitConfig(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), p = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), m = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), M = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), w = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), R = computed(() => {
11579
+ var G, H, X;
11568
11580
  switch (!0) {
11569
11581
  case s.isCreating.value:
11570
11582
  return (G = b.value) != null ? G : [];
11571
11583
  case s.isUpdating.value:
11572
- return (W = _.value) != null ? W : [];
11584
+ return (H = _.value) != null ? H : [];
11573
11585
  case s.isCopying.value:
11574
- return (Z = m.value) != null ? Z : [];
11586
+ return (X = m.value) != null ? X : [];
11575
11587
  case s.isDeleting.value:
11576
11588
  return [];
11577
11589
  }
11578
11590
  return [];
11579
- }), P = computed(() => {
11580
- var G, W, Z;
11591
+ }), N = computed(() => {
11592
+ var G, H, X;
11581
11593
  switch (!0) {
11582
11594
  case s.isCreating.value:
11583
11595
  return (G = T.value) != null ? G : [];
11584
11596
  case s.isUpdating.value:
11585
- return (W = A.value) != null ? W : [];
11597
+ return (H = A.value) != null ? H : [];
11586
11598
  case s.isCopying.value:
11587
- return (Z = M.value) != null ? Z : [];
11599
+ return (X = M.value) != null ? X : [];
11588
11600
  case s.isDeleting.value:
11589
11601
  return [];
11590
11602
  }
11591
11603
  return [];
11592
11604
  }), O = computed(() => {
11593
- var G, W, Z, re;
11605
+ var G, H, X, re;
11594
11606
  switch (!0) {
11595
11607
  case s.isCreating.value:
11596
- return (G = E.value) != null ? G : [];
11608
+ return (G = y.value) != null ? G : [];
11597
11609
  case s.isUpdating.value:
11598
- return (W = p.value) != null ? W : [];
11610
+ return (H = p.value) != null ? H : [];
11599
11611
  case s.isCopying.value:
11600
- return (Z = y.value) != null ? Z : [];
11612
+ return (X = E.value) != null ? X : [];
11601
11613
  case s.isDeleting.value:
11602
11614
  return (re = I.value) != null ? re : [];
11603
11615
  }
11604
11616
  return [];
11605
11617
  }), F = computed(() => {
11606
- var G, W, Z, re;
11618
+ var G, H, X, re;
11607
11619
  switch (!0) {
11608
11620
  case s.isCreating.value:
11609
11621
  return (G = k.value) != null ? G : [];
11610
11622
  case s.isUpdating.value:
11611
- return (W = C.value) != null ? W : [];
11623
+ return (H = C.value) != null ? H : [];
11612
11624
  case s.isCopying.value:
11613
- return (Z = w.value) != null ? Z : [];
11625
+ return (X = w.value) != null ? X : [];
11614
11626
  case s.isDeleting.value:
11615
11627
  return (re = I.value) != null ? re : [];
11616
11628
  }
11617
11629
  return [];
11618
- }), $ = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), D = computed(() => $.value || d.value), V = computed(() => d.value), N = ref({
11630
+ }), $ = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), D = computed(() => $.value || d.value), V = computed(() => d.value), P = ref({
11619
11631
  kgWidth: 0
11620
11632
  }), B = computed(() => {
11621
11633
  var G;
11622
11634
  return !!(u.value || te.isFullscreen || ((G = g.value) == null ? void 0 : G.resizable_flg) === 0);
11623
- }), H = computed(() => {
11624
- var G, W;
11625
- return u.value ? 398 : (W = (G = g.value) == null ? void 0 : G.min_width) != null ? W : DEFAULT_MIN_WIDTH;
11626
- }), L = computed(() => {
11627
- var G, W;
11628
- return u.value ? 398 : (W = (G = g.value) == null ? void 0 : G.max_width) != null ? W : DEFAULT_MAX_WIDTH;
11629
- }), x = computed(() => u.value ? 398 : N.value.kgWidth), Y = ref(null);
11630
- _useResizeObserver$1(Y);
11631
- const q = _useTitle(), X = computed(() => u.value ? 400 : N.value.kgWidth && N.value.kgWidth > 0 ? "auto" : 0), J = computed(() => X.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), te = reactive({
11635
+ }), Y = computed(() => {
11636
+ var G, H;
11637
+ return u.value ? 398 : (H = (G = g.value) == null ? void 0 : G.min_width) != null ? H : DEFAULT_MIN_WIDTH;
11638
+ }), K = computed(() => {
11639
+ var G, H;
11640
+ return u.value ? 398 : (H = (G = g.value) == null ? void 0 : G.max_width) != null ? H : DEFAULT_MAX_WIDTH;
11641
+ }), x = computed(() => u.value ? 398 : P.value.kgWidth), W = ref(null);
11642
+ _useResizeObserver$1(W);
11643
+ const q = _useTitle(), J = computed(() => u.value ? 400 : P.value.kgWidth && P.value.kgWidth > 0 ? "auto" : 0), Z = computed(() => J.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), te = reactive({
11632
11644
  isFullscreen: !1
11633
11645
  }), {
11634
- getClass: le
11646
+ getClass: ie
11635
11647
  } = _useClass(e, te), {
11636
- getLayout: he
11648
+ getLayout: pe
11637
11649
  } = _useLayout(), {
11638
- getDefaultWidth: ge
11639
- } = _useDefaultWidth(), ae = computed(() => {
11640
- var G, W, Z;
11641
- switch (he.value) {
11650
+ getDefaultWidth: ce
11651
+ } = _useDefaultWidth(), se = computed(() => {
11652
+ var G, H, X;
11653
+ switch (pe.value) {
11642
11654
  case "horizontal":
11643
11655
  switch ((G = g.value) == null ? void 0 : G.label_col_unit) {
11644
11656
  case KG_WIDTH_UNIT.SPAN:
11645
11657
  return {
11646
- span: (W = g.value) == null ? void 0 : W.label_col
11658
+ span: (H = g.value) == null ? void 0 : H.label_col
11647
11659
  };
11648
11660
  default:
11649
11661
  return {
11650
11662
  style: {
11651
- width: `${(Z = g.value) == null ? void 0 : Z.label_col}px`
11663
+ width: `${(X = g.value) == null ? void 0 : X.label_col}px`
11652
11664
  }
11653
11665
  };
11654
11666
  }
11655
11667
  default:
11656
11668
  return;
11657
11669
  }
11658
- }), K = computed(() => {
11659
- var G, W;
11660
- switch (he.value) {
11670
+ }), L = computed(() => {
11671
+ var G, H;
11672
+ switch (pe.value) {
11661
11673
  case "horizontal":
11662
11674
  switch ((G = g.value) == null ? void 0 : G.label_col_unit) {
11663
11675
  case KG_WIDTH_UNIT.SPAN:
11664
11676
  return {
11665
- span: 24 - ((W = g.value) == null ? void 0 : W.label_col)
11677
+ span: 24 - ((H = g.value) == null ? void 0 : H.label_col)
11666
11678
  };
11667
11679
  default:
11668
11680
  return;
@@ -11671,12 +11683,12 @@ const getProps$p = () => ({
11671
11683
  return;
11672
11684
  }
11673
11685
  });
11674
- watch(J, (G, W) => {
11675
- G === !0 && U(), W === !0 && G === !1 && Q();
11686
+ watch(Z, (G, H) => {
11687
+ G === !0 && U(), H === !0 && G === !1 && Q();
11676
11688
  }, {
11677
11689
  immediate: !0
11678
- }), watch(ge, (G) => {
11679
- G && (N.value.kgWidth = G);
11690
+ }), watch(ce, (G) => {
11691
+ G && (P.value.kgWidth = G);
11680
11692
  }, {
11681
11693
  immediate: !0
11682
11694
  });
@@ -11688,25 +11700,25 @@ const getProps$p = () => ({
11688
11700
  isDeleting: s.isDeleting.value,
11689
11701
  row: o.selectedRow.value
11690
11702
  }))
11691
- return new Promise((W, Z) => {
11692
- var se;
11693
- const re = watch(l.model, async (oe) => {
11694
- oe && Object.keys(oe).length > 0 && (setTimeout(() => re()), await l.store.emit(s.formID, "open", {
11703
+ return new Promise((H, X) => {
11704
+ var ne;
11705
+ const re = watch(l.model, async (ae) => {
11706
+ ae && Object.keys(ae).length > 0 && (setTimeout(() => re()), await l.store.emit(s.formID, "open", {
11695
11707
  isCreating: s.isCreating.value,
11696
11708
  isUpdating: s.isUpdating.value,
11697
11709
  isCopying: s.isCopying.value,
11698
11710
  isDeleting: s.isDeleting.value,
11699
11711
  row: o.selectedRow.value,
11700
11712
  model: l.model
11701
- }), W());
11713
+ }), H());
11702
11714
  }, {
11703
11715
  immediate: !0
11704
11716
  });
11705
- ((se = g.value) == null ? void 0 : se.dft_fullscreen_flg) === 1 && !u.value && (te.isFullscreen = !0);
11717
+ ((ne = g.value) == null ? void 0 : ne.dft_fullscreen_flg) === 1 && !u.value && (te.isFullscreen = !0);
11706
11718
  });
11707
11719
  }
11708
11720
  async function Q() {
11709
- N.value.kgWidth = ge.value, te.isFullscreen = !1, await l.store.emit(s.formID, "close", null);
11721
+ P.value.kgWidth = ce.value, te.isFullscreen = !1, await l.store.emit(s.formID, "close", null);
11710
11722
  }
11711
11723
  function z() {
11712
11724
  switch (!0) {
@@ -11725,7 +11737,7 @@ const getProps$p = () => ({
11725
11737
  }
11726
11738
  }
11727
11739
  async function ee() {
11728
- var G, W;
11740
+ var G, H;
11729
11741
  try {
11730
11742
  if (await l.store.emit(s.formID, "beforeOk", {
11731
11743
  isCreating: s.isCreating.value,
@@ -11739,10 +11751,10 @@ const getProps$p = () => ({
11739
11751
  return;
11740
11752
  try {
11741
11753
  await ((G = l.formRef.value) == null ? void 0 : G.validate());
11742
- } catch (se) {
11743
- KgUtil.throwIfNotFormError(se);
11754
+ } catch (ne) {
11755
+ KgUtil.throwIfNotFormError(ne);
11744
11756
  }
11745
- if (await ((W = l.formRef.value) == null ? void 0 : W.validate()), await l.store.emit(s.formID, "afterValidate", {
11757
+ if (await ((H = l.formRef.value) == null ? void 0 : H.validate()), await l.store.emit(s.formID, "afterValidate", {
11746
11758
  isCreating: s.isCreating.value,
11747
11759
  isUpdating: s.isUpdating.value,
11748
11760
  isCopying: s.isCopying.value,
@@ -11754,25 +11766,25 @@ const getProps$p = () => ({
11754
11766
  return;
11755
11767
  switch (!0) {
11756
11768
  case s.isCreating.value:
11757
- await ve();
11769
+ await _e();
11758
11770
  break;
11759
11771
  case s.isUpdating.value:
11760
- await fe();
11772
+ await de();
11761
11773
  break;
11762
11774
  case s.isCopying.value:
11763
- await ie();
11775
+ await ge();
11764
11776
  break;
11765
11777
  case s.isDeleting.value:
11766
- await ue();
11778
+ await me();
11767
11779
  break;
11768
11780
  }
11769
- } catch (Z) {
11770
- KgUtil.throwIfNotFormError(Z);
11781
+ } catch (X) {
11782
+ KgUtil.throwIfNotFormError(X);
11771
11783
  }
11772
11784
  }
11773
- async function ve() {
11774
- var W, Z, re, se, oe, ce;
11775
- const G = (W = s.varButtonCreate.value) == null ? void 0 : W.cmd;
11785
+ async function _e() {
11786
+ var H, X, re, ne, ae, le;
11787
+ const G = (H = s.varButtonCreate.value) == null ? void 0 : H.cmd;
11776
11788
  if (!G) {
11777
11789
  KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
11778
11790
  VarButton: s.varButtonCreate.value
@@ -11781,7 +11793,7 @@ const getProps$p = () => ({
11781
11793
  }
11782
11794
  s.store.setIsCreatingRequesting(s.formID, !0);
11783
11795
  try {
11784
- let ne = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonCreate.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), de = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
11796
+ let oe = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (X = s.varButtonCreate.value) == null ? void 0 : X.cmd_prm) != null ? re : ""), s.formID, r)), ue = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
11785
11797
  if (await l.store.emit(s.formID, "beforeRequest", {
11786
11798
  isCreating: s.isCreating.value,
11787
11799
  isUpdating: s.isUpdating.value,
@@ -11790,16 +11802,16 @@ const getProps$p = () => ({
11790
11802
  row: o.selectedFirstRow.value,
11791
11803
  rows: o.selectedRows.value,
11792
11804
  model: l.model,
11793
- params: ne,
11794
- data: de
11805
+ params: oe,
11806
+ data: ue
11795
11807
  }))
11796
11808
  return;
11797
11809
  await httpClient().request({
11798
- method: (oe = (se = s.varButtonCreate.value) == null ? void 0 : se.cmd_method) != null ? oe : "POST",
11810
+ method: (ae = (ne = s.varButtonCreate.value) == null ? void 0 : ne.cmd_method) != null ? ae : "POST",
11799
11811
  url: G,
11800
- params: ne.value,
11801
- data: de.value
11802
- }), ((ce = s.varButtonCreate.value) == null ? void 0 : ce.show_success_message_flg) !== 0 && message.success(q.title.value + n.t("kg.succeed")), await l.store.emit(s.formID, "ok", {
11812
+ params: oe.value,
11813
+ data: ue.value
11814
+ }), ((le = s.varButtonCreate.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(q.title.value + n.t("kg.succeed")), await l.store.emit(s.formID, "ok", {
11803
11815
  isCreating: s.isCreating.value,
11804
11816
  isUpdating: s.isUpdating.value,
11805
11817
  isCopying: s.isCopying.value,
@@ -11809,15 +11821,15 @@ const getProps$p = () => ({
11809
11821
  }), s.store.setIsCreating(s.formID, !1), c.search({
11810
11822
  isSearchFirstPage: !0
11811
11823
  });
11812
- } catch (ne) {
11813
- console.error(ne), l.store.emit(s.formID, "error", ne);
11824
+ } catch (oe) {
11825
+ console.error(oe), l.store.emit(s.formID, "error", oe);
11814
11826
  } finally {
11815
11827
  s.store.setIsCreatingRequesting(s.formID, !1);
11816
11828
  }
11817
11829
  }
11818
- async function fe() {
11819
- var W, Z, re, se, oe, ce;
11820
- const G = (W = s.varButtonUpdate.value) == null ? void 0 : W.cmd;
11830
+ async function de() {
11831
+ var H, X, re, ne, ae, le;
11832
+ const G = (H = s.varButtonUpdate.value) == null ? void 0 : H.cmd;
11821
11833
  if (!G) {
11822
11834
  KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
11823
11835
  VarButton: s.varButtonUpdate.value
@@ -11826,7 +11838,7 @@ const getProps$p = () => ({
11826
11838
  }
11827
11839
  try {
11828
11840
  s.store.setIsUpdatingRequesting(s.formID, !0);
11829
- let ne = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonUpdate.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), de = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
11841
+ let oe = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (X = s.varButtonUpdate.value) == null ? void 0 : X.cmd_prm) != null ? re : ""), s.formID, r)), ue = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
11830
11842
  if (await l.store.emit(s.formID, "beforeRequest", {
11831
11843
  isCreating: s.isCreating.value,
11832
11844
  isUpdating: s.isUpdating.value,
@@ -11835,16 +11847,16 @@ const getProps$p = () => ({
11835
11847
  row: o.selectedRow.value,
11836
11848
  rows: o.selectedRows.value,
11837
11849
  model: l.model,
11838
- params: ne,
11839
- data: de
11850
+ params: oe,
11851
+ data: ue
11840
11852
  }))
11841
11853
  return;
11842
11854
  await httpClient().request({
11843
- method: (oe = (se = s.varButtonUpdate.value) == null ? void 0 : se.cmd_method) != null ? oe : "POST",
11855
+ method: (ae = (ne = s.varButtonUpdate.value) == null ? void 0 : ne.cmd_method) != null ? ae : "POST",
11844
11856
  url: G,
11845
- params: ne.value,
11846
- data: de.value
11847
- }), ((ce = s.varButtonUpdate.value) == null ? void 0 : ce.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await l.store.emit(s.formID, "ok", {
11857
+ params: oe.value,
11858
+ data: ue.value
11859
+ }), ((le = s.varButtonUpdate.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await l.store.emit(s.formID, "ok", {
11848
11860
  isCreating: s.isCreating.value,
11849
11861
  isUpdating: s.isUpdating.value,
11850
11862
  isCopying: s.isCopying.value,
@@ -11854,15 +11866,15 @@ const getProps$p = () => ({
11854
11866
  }), s.store.setIsUpdating(s.formID, !1), c.search({
11855
11867
  isPreserveSelectedRows: !0
11856
11868
  });
11857
- } catch (ne) {
11858
- console.error(ne), l.store.emit(s.formID, "error", ne);
11869
+ } catch (oe) {
11870
+ console.error(oe), l.store.emit(s.formID, "error", oe);
11859
11871
  } finally {
11860
11872
  s.store.setIsUpdatingRequesting(s.formID, !1);
11861
11873
  }
11862
11874
  }
11863
- async function ie() {
11864
- var W, Z, re, se, oe, ce, ne, de;
11865
- const G = (W = s.varButtonCopy.value) == null ? void 0 : W.cmd;
11875
+ async function ge() {
11876
+ var H, X, re, ne, ae, le, oe, ue;
11877
+ const G = (H = s.varButtonCopy.value) == null ? void 0 : H.cmd;
11866
11878
  if (!G) {
11867
11879
  KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
11868
11880
  VarButton: s.varButtonCopy.value
@@ -11871,11 +11883,11 @@ const getProps$p = () => ({
11871
11883
  }
11872
11884
  try {
11873
11885
  s.store.setIsCopyingRequesting(s.formID, !0);
11874
- let me = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonCopy.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), be = ref(KgUtil.parseParams({
11875
- ...(se = o.selectedFirstRow.value) != null ? se : {},
11886
+ let fe = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (X = s.varButtonCopy.value) == null ? void 0 : X.cmd_prm) != null ? re : ""), s.formID, r)), ye = ref(KgUtil.parseParams({
11887
+ ...(ne = o.selectedFirstRow.value) != null ? ne : {},
11876
11888
  ...toRaw(l.model.value)
11877
11889
  }, s.formID, r));
11878
- if (((oe = g.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete be.value.id, await l.store.emit(s.formID, "beforeRequest", {
11890
+ if (((ae = g.value) == null ? void 0 : ae.cpy_clear_id_flg) !== 0 && delete ye.value.id, await l.store.emit(s.formID, "beforeRequest", {
11879
11891
  isCreating: s.isCreating.value,
11880
11892
  isUpdating: s.isUpdating.value,
11881
11893
  isCopying: s.isCopying.value,
@@ -11883,16 +11895,16 @@ const getProps$p = () => ({
11883
11895
  row: o.selectedRow.value,
11884
11896
  rows: o.selectedRows.value,
11885
11897
  model: l.model,
11886
- params: me,
11887
- data: be
11898
+ params: fe,
11899
+ data: ye
11888
11900
  }))
11889
11901
  return;
11890
11902
  await httpClient().request({
11891
- method: (ne = (ce = s.varButtonCopy.value) == null ? void 0 : ce.cmd_method) != null ? ne : "POST",
11903
+ method: (oe = (le = s.varButtonCopy.value) == null ? void 0 : le.cmd_method) != null ? oe : "POST",
11892
11904
  url: G,
11893
- params: me.value,
11894
- data: be.value
11895
- }), ((de = s.varButtonCopy.value) == null ? void 0 : de.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), await l.store.emit(s.formID, "ok", {
11905
+ params: fe.value,
11906
+ data: ye.value
11907
+ }), ((ue = s.varButtonCopy.value) == null ? void 0 : ue.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), await l.store.emit(s.formID, "ok", {
11896
11908
  isCreating: s.isCreating.value,
11897
11909
  isUpdating: s.isUpdating.value,
11898
11910
  isCopying: s.isCopying.value,
@@ -11902,15 +11914,15 @@ const getProps$p = () => ({
11902
11914
  }), s.store.setIsCopying(s.formID, !1), c.search({
11903
11915
  isSearchFirstPage: !0
11904
11916
  });
11905
- } catch (me) {
11906
- console.error(me), l.store.emit(s.formID, "error", me);
11917
+ } catch (fe) {
11918
+ console.error(fe), l.store.emit(s.formID, "error", fe);
11907
11919
  } finally {
11908
11920
  s.store.setIsCopyingRequesting(s.formID, !1);
11909
11921
  }
11910
11922
  }
11911
- async function ue() {
11912
- var W, Z, re, se, oe, ce, ne, de, me, be;
11913
- const G = (W = s.varButtonDelete.value) == null ? void 0 : W.cmd;
11923
+ async function me() {
11924
+ var H, X, re, ne, ae, le, oe, ue, fe, ye;
11925
+ const G = (H = s.varButtonDelete.value) == null ? void 0 : H.cmd;
11914
11926
  if (!G) {
11915
11927
  KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
11916
11928
  VarButton: s.varButtonDelete.value
@@ -11919,12 +11931,12 @@ const getProps$p = () => ({
11919
11931
  }
11920
11932
  try {
11921
11933
  s.store.setIsDeletingRequesting(s.formID, !0);
11922
- let ye = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonDelete.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), Te = ref((se = o.selectedRows.value) != null ? se : []);
11923
- if (((oe = s.varButtonDelete.value) == null ? void 0 : oe.del_param_clm) !== "__kg__new_delete_param" && (ye = ref({
11924
- ids: (ne = (ce = o.selectedRows.value) == null ? void 0 : ce.map((Ie) => {
11934
+ let Ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (X = s.varButtonDelete.value) == null ? void 0 : X.cmd_prm) != null ? re : ""), s.formID, r)), Te = ref((ne = o.selectedRows.value) != null ? ne : []);
11935
+ if (((ae = s.varButtonDelete.value) == null ? void 0 : ae.del_param_clm) !== "__kg__new_delete_param" && (Ee = ref({
11936
+ ids: (oe = (le = o.selectedRows.value) == null ? void 0 : le.map((Ie) => {
11925
11937
  var ke, Ae, Me;
11926
11938
  return (Me = Ie[(Ae = (ke = s.varButtonDelete.value) == null ? void 0 : ke.del_param_clm) != null ? Ae : "id"]) != null ? Me : "";
11927
- })) != null ? ne : []
11939
+ })) != null ? oe : []
11928
11940
  }), Te = ref({})), await l.store.emit(s.formID, "beforeRequest", {
11929
11941
  isCreating: s.isCreating.value,
11930
11942
  isUpdating: s.isUpdating.value,
@@ -11933,18 +11945,18 @@ const getProps$p = () => ({
11933
11945
  row: o.selectedFirstRow.value,
11934
11946
  rows: o.selectedRows.value,
11935
11947
  model: l.model,
11936
- params: ye,
11948
+ params: Ee,
11937
11949
  data: Te
11938
11950
  }))
11939
11951
  return;
11940
11952
  await httpClient().request({
11941
- method: (me = (de = s.varButtonDelete.value) == null ? void 0 : de.cmd_method) != null ? me : "DELETE",
11953
+ method: (fe = (ue = s.varButtonDelete.value) == null ? void 0 : ue.cmd_method) != null ? fe : "DELETE",
11942
11954
  url: G,
11943
- params: ye.value,
11955
+ params: Ee.value,
11944
11956
  data: Te.value
11945
11957
  }, {
11946
11958
  joinParamsToUrl: !0
11947
- }), ((be = s.varButtonDelete.value) == null ? void 0 : be.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), await i.store.emit(s.formID, "deleteOk", {
11959
+ }), ((ye = s.varButtonDelete.value) == null ? void 0 : ye.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), await i.store.emit(s.formID, "deleteOk", {
11948
11960
  button: s.varButtonDelete.value,
11949
11961
  rows: o.selectedRows.value
11950
11962
  }), await l.store.emit(s.formID, "ok", {
@@ -11957,37 +11969,37 @@ const getProps$p = () => ({
11957
11969
  }), s.store.setIsDeleting(s.formID, !1), c.search({
11958
11970
  isSearchFirstPage: !0
11959
11971
  });
11960
- } catch (ye) {
11961
- console.error(ye), l.store.emit(s.formID, "error", ye);
11972
+ } catch (Ee) {
11973
+ console.error(Ee), l.store.emit(s.formID, "error", Ee);
11962
11974
  } finally {
11963
11975
  s.store.setIsDeletingRequesting(s.formID, !1);
11964
11976
  }
11965
11977
  }
11966
- function pe(G) {
11967
- var Z, re;
11968
- const W = (re = (Z = a == null ? void 0 : a.KgSubmit) == null ? void 0 : Z["KgForm.Item"]) == null ? void 0 : re[G.var_nam];
11969
- return isFunction$2(W) ? createVNode(KgForm.Item, {
11978
+ function he(G) {
11979
+ var X, re;
11980
+ const H = (re = (X = a == null ? void 0 : a.KgSubmit) == null ? void 0 : X["KgForm.Item"]) == null ? void 0 : re[G.var_nam];
11981
+ return isFunction$2(H) ? createVNode(KgForm.Item, {
11970
11982
  kgVarName: G.var_nam,
11971
11983
  kgContext: KG_FORM_CONTEXT.SUBMIT,
11972
11984
  kgRules: l.rules.value[G.var_nam],
11973
11985
  onKgSubmit: ee
11974
11986
  }, {
11975
11987
  control: ({
11976
- frm_id: se,
11977
- varName: oe,
11978
- props: ce,
11979
- model: ne,
11980
- varVariableConfig: de,
11981
- varProfileDetail: me,
11982
- varSubmitField: be
11983
- }) => W({
11984
- frm_id: se,
11985
- varName: oe,
11986
- props: ce,
11987
- model: ne,
11988
- varVariableConfig: de,
11989
- varProfileDetail: me,
11990
- varSubmitField: be
11988
+ frm_id: ne,
11989
+ varName: ae,
11990
+ props: le,
11991
+ model: oe,
11992
+ varVariableConfig: ue,
11993
+ varProfileDetail: fe,
11994
+ varSubmitField: ye
11995
+ }) => H({
11996
+ frm_id: ne,
11997
+ varName: ae,
11998
+ props: le,
11999
+ model: oe,
12000
+ varVariableConfig: ue,
12001
+ varProfileDetail: fe,
12002
+ varSubmitField: ye
11991
12003
  })
11992
12004
  }) : createVNode(KgForm.Item, {
11993
12005
  kgVarName: G.var_nam,
@@ -11996,15 +12008,15 @@ const getProps$p = () => ({
11996
12008
  onKgSubmit: ee
11997
12009
  }, null);
11998
12010
  }
11999
- function Se() {
12000
- let G, W;
12011
+ function ve() {
12012
+ let G, H;
12001
12013
  return createVNode(KgResizable, {
12002
12014
  kgType: l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
12003
- kgMinWidth: H.value,
12004
- kgMaxWidth: L.value,
12015
+ kgMinWidth: Y.value,
12016
+ kgMaxWidth: K.value,
12005
12017
  kgWidth: x.value,
12006
12018
  kgDisabled: B.value,
12007
- "onUpdate:kgWidth": (Z) => N.value.kgWidth = Z
12019
+ "onUpdate:kgWidth": (X) => P.value.kgWidth = X
12008
12020
  }, {
12009
12021
  default: () => [createVNode(Spin, {
12010
12022
  spinning: d.value
@@ -12012,20 +12024,20 @@ const getProps$p = () => ({
12012
12024
  default: () => [createVNode(KgForm, {
12013
12025
  ref: l.formRef,
12014
12026
  model: l.model.value,
12015
- layout: he.value,
12016
- labelCol: ae.value,
12017
- wrapperCol: K.value
12027
+ layout: pe.value,
12028
+ labelCol: se.value,
12029
+ wrapperCol: L.value
12018
12030
  }, {
12019
12031
  default: () => [createVNode("div", {
12020
- ref: Y
12032
+ ref: W
12021
12033
  }, [R.value.length > 0 && createVNode(Row, {
12022
12034
  gutter: 12
12023
- }, _isSlot$9(G = R.value.map(pe)) ? G : {
12035
+ }, _isSlot$9(G = R.value.map(he)) ? G : {
12024
12036
  default: () => [G]
12025
- }), P.value.length > 0 && F.value.length > 0 && createVNode(Divider, null, null), O.value.length > 0 && createVNode(Row, {
12037
+ }), N.value.length > 0 && F.value.length > 0 && createVNode(Divider, null, null), O.value.length > 0 && createVNode(Row, {
12026
12038
  gutter: 12
12027
- }, _isSlot$9(W = O.value.map(pe)) ? W : {
12028
- default: () => [W]
12039
+ }, _isSlot$9(H = O.value.map(he)) ? H : {
12040
+ default: () => [H]
12029
12041
  }), u.value && createVNode("div", {
12030
12042
  style: "text-align: center; padding: 6px 0 12px;"
12031
12043
  }, [n.t("kg.confirmDelete")])])]
@@ -12033,8 +12045,8 @@ const getProps$p = () => ({
12033
12045
  })]
12034
12046
  });
12035
12047
  }
12036
- function Ce() {
12037
- let G, W;
12048
+ function Se() {
12049
+ let G, H;
12038
12050
  return createVNode("div", null, [createVNode(Button, {
12039
12051
  type: "primary",
12040
12052
  ghost: !D.value,
@@ -12048,16 +12060,16 @@ const getProps$p = () => ({
12048
12060
  loading: $.value,
12049
12061
  danger: !!s.isDeleting.value,
12050
12062
  onClick: ee
12051
- }, _isSlot$9(W = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? W : {
12052
- default: () => [W]
12063
+ }, _isSlot$9(H = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? H : {
12064
+ default: () => [H]
12053
12065
  })]);
12054
12066
  }
12055
- function _e() {
12067
+ function be() {
12056
12068
  return createVNode("div", {
12057
12069
  title: q.title.value
12058
12070
  }, [q.title.value]);
12059
12071
  }
12060
- function Ee() {
12072
+ function Ce() {
12061
12073
  return createVNode(KgSubmitHeader, {
12062
12074
  isFullscreen: te.isFullscreen,
12063
12075
  "onUpdate:isFullscreen": (G) => te.isFullscreen = G,
@@ -12069,20 +12081,20 @@ const getProps$p = () => ({
12069
12081
  return onUnmounted(async () => {
12070
12082
  await Q();
12071
12083
  }), () => createVNode(Drawer, {
12072
- visible: J.value,
12084
+ visible: Z.value,
12073
12085
  placement: "right",
12074
12086
  closable: !1,
12075
12087
  maskClosable: !1,
12076
12088
  keyboard: !1,
12077
12089
  destroyOnClose: !0,
12078
- width: X.value,
12079
- class: le.value,
12090
+ width: J.value,
12091
+ class: ie.value,
12080
12092
  "kg-frm_id": s.formID
12081
12093
  }, {
12082
- title: _e,
12083
- extra: Ee,
12084
- default: Se,
12085
- footer: Ce
12094
+ title: be,
12095
+ extra: Ce,
12096
+ default: ve,
12097
+ footer: Se
12086
12098
  });
12087
12099
  }
12088
12100
  });
@@ -12370,7 +12382,7 @@ function useKgTable(e) {
12370
12382
  }), b = computed(() => {
12371
12383
  var p, m;
12372
12384
  return JSON.parse((m = (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opts) != null ? m : "[]");
12373
- }), E = computed(() => {
12385
+ }), y = computed(() => {
12374
12386
  var p;
12375
12387
  return (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opt;
12376
12388
  }), _ = computed(() => {
@@ -12391,7 +12403,7 @@ function useKgTable(e) {
12391
12403
  isShowBottomRight: d,
12392
12404
  id: g,
12393
12405
  pageSizeOptions: b,
12394
- pageSizeOption: E,
12406
+ pageSizeOption: y,
12395
12407
  profileFormID: _,
12396
12408
  onReady: onEventFactory(t.formID, r, "ready"),
12397
12409
  onRowDoubleClick: onEventFactory(t.formID, r, "rowDoubleClick"),
@@ -12487,8 +12499,8 @@ const getProps$o = () => ({
12487
12499
  }) => {
12488
12500
  const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
12489
12501
  return i = watch(l, (u) => {
12490
- var d, g, b, E, _, p, m, y, T, k, A;
12491
- u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (g = c == null ? void 0 : c.aut_load_flg) != null ? g : 0, u.mult_flg = (b = c == null ? void 0 : c.mult_flg) != null ? b : 0, u.show_check_column_flg = (E = c == null ? void 0 : c.show_check_column_flg) != null ? E : 0, u.show_bottom_left_flg = (_ = c == null ? void 0 : c.show_bottom_left_flg) != null ? _ : 1, u.show_bottom_right_flg = (p = c == null ? void 0 : c.show_bottom_right_flg) != null ? p : 1, u.convert_sort_field_to_under_score_flg = (m = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? m : 0, u.pg_size_opts = (y = c == null ? void 0 : c.pg_size_opts) != null ? y : "[10, 20, 50, 100]", u.pg_size_opt = (T = c == null ? void 0 : c.pg_size_opt) != null ? T : 10, u.cmd_prm = (k = c == null ? void 0 : c.cmd_prm) != null ? k : void 0, u.button_display_type = (A = c == null ? void 0 : c.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
12502
+ var d, g, b, y, _, p, m, E, T, k, A;
12503
+ u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (g = c == null ? void 0 : c.aut_load_flg) != null ? g : 0, u.mult_flg = (b = c == null ? void 0 : c.mult_flg) != null ? b : 0, u.show_check_column_flg = (y = c == null ? void 0 : c.show_check_column_flg) != null ? y : 0, u.show_bottom_left_flg = (_ = c == null ? void 0 : c.show_bottom_left_flg) != null ? _ : 1, u.show_bottom_right_flg = (p = c == null ? void 0 : c.show_bottom_right_flg) != null ? p : 1, u.convert_sort_field_to_under_score_flg = (m = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? m : 0, u.pg_size_opts = (E = c == null ? void 0 : c.pg_size_opts) != null ? E : "[10, 20, 50, 100]", u.pg_size_opt = (T = c == null ? void 0 : c.pg_size_opt) != null ? T : 10, u.cmd_prm = (k = c == null ? void 0 : c.cmd_prm) != null ? k : void 0, u.button_display_type = (A = c == null ? void 0 : c.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
12492
12504
  }, {
12493
12505
  immediate: !0
12494
12506
  }), KgUtil.hideLoading(), !1;
@@ -13198,7 +13210,7 @@ function _useTransferColumns(e, t) {
13198
13210
  class: "kg-not-clickable"
13199
13211
  }, {
13200
13212
  default: () => {
13201
- let c, u, d, g, b, E, _;
13213
+ let c, u, d, g, b, y, _;
13202
13214
  return createVNode(Fragment, null, [createVNode(Select.Option, {
13203
13215
  value: "DESC"
13204
13216
  }, _isSlot$7(c = r.t("kg.KgTableSettingConfigModalVarGridMaster.DESC")) ? c : {
@@ -13221,8 +13233,8 @@ function _useTransferColumns(e, t) {
13221
13233
  default: () => [b]
13222
13234
  }), createVNode(Select.Option, {
13223
13235
  value: "UPDATE_LINK"
13224
- }, _isSlot$7(E = r.t("kg.KgTableSettingConfigModalVarGridMaster.UPDATE_LINK")) ? E : {
13225
- default: () => [E]
13236
+ }, _isSlot$7(y = r.t("kg.KgTableSettingConfigModalVarGridMaster.UPDATE_LINK")) ? y : {
13237
+ default: () => [y]
13226
13238
  }), createVNode(Select.Option, {
13227
13239
  value: "ROUTE_LINK"
13228
13240
  }, _isSlot$7(_ = r.t("kg.KgTableSettingConfigModalVarGridMaster.ROUTE_LINK")) ? _ : {
@@ -13301,11 +13313,11 @@ function _useDragRow$1(e, t, r) {
13301
13313
  g.setAttribute("id", "__kg_table_config_fields_drag_image__");
13302
13314
  const {
13303
13315
  width: b,
13304
- height: E
13316
+ height: y
13305
13317
  } = u.parentElement.getBoundingClientRect();
13306
- b && E && (g.style.width = `${b + 2}px`, g.style.height = `${E + 2}px`), (p = d.dataTransfer) == null || p.setDragImage(g, -10, (E + 2) / 2);
13318
+ b && y && (g.style.width = `${b + 2}px`, g.style.height = `${y + 2}px`), (p = d.dataTransfer) == null || p.setDragImage(g, -10, (y + 2) / 2);
13307
13319
  const _ = await toCanvas(u.parentElement);
13308
- g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (E + 2) / 2);
13320
+ g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (y + 2) / 2);
13309
13321
  }, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
13310
13322
  u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
13311
13323
  const g = document.querySelector("#__kg_table_config_fields_drag_image__");
@@ -13329,8 +13341,8 @@ function _useDragRow$1(e, t, r) {
13329
13341
  d.preventDefault(), KgUtil.showLoading();
13330
13342
  const g = document.querySelector("#__kg_table_config_fields_drag_image__");
13331
13343
  g && document.body.removeChild(g), u.classList.remove("dragover", "dragover-right", "dragover-left");
13332
- const b = s == null ? void 0 : s.getAttribute("kg-var_nam"), E = u.getAttribute("kg-var_nam");
13333
- b !== E && l(b, E);
13344
+ const b = s == null ? void 0 : s.getAttribute("kg-var_nam"), y = u.getAttribute("kg-var_nam");
13345
+ b !== y && l(b, y);
13334
13346
  }, u.addEventListener("drop", u.__kg__drop__);
13335
13347
  }
13336
13348
  function o() {
@@ -13352,9 +13364,9 @@ function _useDragRow$1(e, t, r) {
13352
13364
  const g = t.value.findIndex((p) => p.var_nam === u), b = t.value.findIndex((p) => p.var_nam === d);
13353
13365
  if (g === -1 || b === -1)
13354
13366
  return;
13355
- const E = t.value.find((p) => p.var_nam === u), _ = [];
13367
+ const y = t.value.find((p) => p.var_nam === u), _ = [];
13356
13368
  t.value.forEach((p, m) => {
13357
- g > b ? m < b ? _.push(p) : m === b ? (_.push(E), _.push(p)) : m > b && m !== g && _.push(p) : g < b && (m < g ? _.push(p) : m === g || (m === b ? (_.push(p), _.push(E)) : _.push(p)));
13369
+ g > b ? m < b ? _.push(p) : m === b ? (_.push(y), _.push(p)) : m > b && m !== g && _.push(p) : g < b && (m < g ? _.push(p) : m === g || (m === b ? (_.push(p), _.push(y)) : _.push(p)));
13358
13370
  }), _.forEach((p, m) => {
13359
13371
  p.srtseq = m + 1;
13360
13372
  }), t.value = _, nextTick().finally(() => {
@@ -13387,16 +13399,16 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
13387
13399
  s.onReady(async () => (await n.store.patchVarProfileDetail(n.formID, "frm_id", {
13388
13400
  dft_val: a.formID
13389
13401
  }), !1)), o.onOpen(async ({
13390
- isCreating: y,
13402
+ isCreating: E,
13391
13403
  isUpdating: T,
13392
13404
  isCopying: k,
13393
13405
  row: A,
13394
13406
  model: C
13395
13407
  }) => {
13396
- var w, I, R, P, O;
13408
+ var w, I, R, N, O;
13397
13409
  const M = a.store.getSystemVarGridDetails(a.formID);
13398
13410
  switch (c.value = M ? cloneDeep(unref(toRaw(M))) : [], !0) {
13399
- case y: {
13411
+ case E: {
13400
13412
  u.value = [];
13401
13413
  break;
13402
13414
  }
@@ -13411,8 +13423,8 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
13411
13423
  }
13412
13424
  });
13413
13425
  c.value = c.value.map((D) => {
13414
- var N;
13415
- const V = (N = F == null ? void 0 : F.varGridDetails) == null ? void 0 : N.find((B) => B.var_nam === D.var_nam);
13426
+ var P;
13427
+ const V = (P = F == null ? void 0 : F.varGridDetails) == null ? void 0 : P.find((B) => B.var_nam === D.var_nam);
13416
13428
  return V ? {
13417
13429
  ...D,
13418
13430
  ...V,
@@ -13433,20 +13445,20 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
13433
13445
  }
13434
13446
  switch (!0) {
13435
13447
  case k: {
13436
- C.value.grd_var_nam = ((R = C.value.grd_var_nam) != null ? R : "") + "_COPY", C.value.grd_var_nam_dsc = ((O = (P = C.value.grd_var_nam_dsc) != null ? P : C.value.grd_var_nam) != null ? O : "") + "_COPY";
13448
+ C.value.grd_var_nam = ((R = C.value.grd_var_nam) != null ? R : "") + "_COPY", C.value.grd_var_nam_dsc = ((O = (N = C.value.grd_var_nam_dsc) != null ? N : C.value.grd_var_nam) != null ? O : "") + "_COPY";
13437
13449
  break;
13438
13450
  }
13439
13451
  }
13440
13452
  return !1;
13441
13453
  }), o.onBeforeOk(async ({
13442
- model: y
13454
+ model: E
13443
13455
  }) => {
13444
13456
  var k, A;
13445
- const T = y.value;
13457
+ const T = E.value;
13446
13458
  return T.frm_id = a.formID, T.varGridDetails = (A = (k = c.value) == null ? void 0 : k.filter((C) => u.value.includes(C.id))) != null ? A : [], !1;
13447
13459
  }), o.onOk(async () => (a.store.retrieve(a.formID), !1)), i.onUpdateBeforeClick(({
13448
- row: y
13449
- }) => (y == null ? void 0 : y.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((T) => {
13460
+ row: E
13461
+ }) => (E == null ? void 0 : E.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((T) => {
13450
13462
  KgUtil.confirm({
13451
13463
  content: r.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
13452
13464
  okButtonProps: {
@@ -13465,8 +13477,8 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
13465
13477
  rightColumns: b
13466
13478
  } = _useTransferColumns(e.hostFormID, c);
13467
13479
  _useDragRow$1(e.hostFormID, c, d);
13468
- const E = computed(() => {
13469
- const y = l.selectedRow.value;
13480
+ const y = computed(() => {
13481
+ const E = l.selectedRow.value;
13470
13482
  return {
13471
13483
  KgSubmit: {
13472
13484
  kgClass: "kg-submit--kg-table-setting-config-modal--var-grid-master"
@@ -13475,7 +13487,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
13475
13487
  kgDisabled: (T) => {
13476
13488
  switch (T.var_nam) {
13477
13489
  case "set-default":
13478
- if ((y == null ? void 0 : y.def_flg) === 1)
13490
+ if ((E == null ? void 0 : E.def_flg) === 1)
13479
13491
  return !0;
13480
13492
  break;
13481
13493
  }
@@ -13488,18 +13500,18 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
13488
13500
  varGridDetails: () => createVNode(Transfer, {
13489
13501
  dataSource: c.value,
13490
13502
  targetKeys: u.value,
13491
- "onUpdate:targetKeys": (y) => u.value = y,
13492
- rowKey: (y) => y.id,
13503
+ "onUpdate:targetKeys": (E) => u.value = E,
13504
+ rowKey: (E) => E.id,
13493
13505
  showSearch: !0,
13494
13506
  showSelectAll: !1,
13495
13507
  searchPlaceholder: " ",
13496
- filterOption: (y, T) => {
13508
+ filterOption: (E, T) => {
13497
13509
  var k;
13498
- return !!((k = T.var_nam) != null && k.includes(y));
13510
+ return !!((k = T.var_nam) != null && k.includes(E));
13499
13511
  }
13500
13512
  }, {
13501
13513
  children: ({
13502
- direction: y,
13514
+ direction: E,
13503
13515
  filteredItems: T,
13504
13516
  selectedKeys: k,
13505
13517
  disabled: A,
@@ -13507,25 +13519,25 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
13507
13519
  onItemSelect: M
13508
13520
  }) => {
13509
13521
  const w = T.sort((I, R) => {
13510
- var P, O;
13511
- return ((P = I.srtseq) != null ? P : 0) - ((O = R.srtseq) != null ? O : 0);
13522
+ var N, O;
13523
+ return ((N = I.srtseq) != null ? N : 0) - ((O = R.srtseq) != null ? O : 0);
13512
13524
  });
13513
13525
  return d.value = w, createVNode(Table, {
13514
13526
  pagination: !1,
13515
13527
  class: "kg-flex-table",
13516
13528
  size: "small",
13517
13529
  scroll: {
13518
- x: y === "left" ? "370px" : `${1552 + 32}px`,
13530
+ x: E === "left" ? "370px" : `${1552 + 32}px`,
13519
13531
  y: "auto"
13520
13532
  },
13521
- columns: y === "left" ? g() : b(),
13533
+ columns: E === "left" ? g() : b(),
13522
13534
  rowKey: "id",
13523
13535
  dataSource: w,
13524
13536
  customRow: (I) => {
13525
13537
  let R = {
13526
- onClick: (P) => m(P, I, y, k)
13538
+ onClick: (N) => m(N, I, E, k)
13527
13539
  };
13528
- return y === "right" && (R["kg-host-frm_id"] = a.formID, R["kg-var_nam"] = I.var_nam), R;
13540
+ return E === "right" && (R["kg-host-frm_id"] = a.formID, R["kg-var_nam"] = I.var_nam), R;
13529
13541
  },
13530
13542
  rowSelection: p({
13531
13543
  disabled: A,
@@ -13539,13 +13551,13 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
13539
13551
  }
13540
13552
  }
13541
13553
  }), p = ({
13542
- disabled: y,
13554
+ disabled: E,
13543
13555
  selectedKeys: T,
13544
13556
  onItemSelectAll: k,
13545
13557
  onItemSelect: A
13546
13558
  }) => ({
13547
13559
  getCheckboxProps: (C) => ({
13548
- disabled: y || C.disabled
13560
+ disabled: E || C.disabled
13549
13561
  }),
13550
13562
  onSelectAll(C, M) {
13551
13563
  const w = M.filter((I) => !I.disabled).map(({
@@ -13561,9 +13573,9 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
13561
13573
  selectedRowKeys: T,
13562
13574
  columnWidth: 32
13563
13575
  });
13564
- function m(y, T, k, A) {
13565
- if (!KgDomUtil.isNotClickable(y.target, ["ant-input"]))
13566
- switch (A.length = 0, y.detail) {
13576
+ function m(E, T, k, A) {
13577
+ if (!KgDomUtil.isNotClickable(E.target, ["ant-input"]))
13578
+ switch (A.length = 0, E.detail) {
13567
13579
  case 1:
13568
13580
  A[0] = T.id;
13569
13581
  break;
@@ -13581,7 +13593,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
13581
13593
  }
13582
13594
  return () => createVNode(KgVar, {
13583
13595
  class: "kg-table--config-modal--var-grid-master",
13584
- kgProps: E.value,
13596
+ kgProps: y.value,
13585
13597
  kgSlots: _.value
13586
13598
  }, null);
13587
13599
  }
@@ -13693,9 +13705,9 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
13693
13705
  return o.onOpen(async ({
13694
13706
  model: l
13695
13707
  }) => {
13696
- var u, d, g, b, E, _, p;
13708
+ var u, d, g, b, y, _, p;
13697
13709
  const c = s.currentVarGridMaster.value;
13698
- return l.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, l.value.grd_var_nam_dsc = `${(g = (d = c == null ? void 0 : c.grd_var_nam_dsc) != null ? d : c == null ? void 0 : c.grd_var_nam) != null ? g : ""}_COPY`, l.value.frm_id = (b = c == null ? void 0 : c.frm_id) != null ? b : "", l.value.usr_id = (E = c == null ? void 0 : c.usr_id) != null ? E : "", l.value.grp_nam = (_ = c == null ? void 0 : c.grp_nam) != null ? _ : "", l.value.varGridDetails = (p = c == null ? void 0 : c.varGridDetails) != null ? p : [], KgUtil.hideLoading(), !1;
13710
+ return l.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, l.value.grd_var_nam_dsc = `${(g = (d = c == null ? void 0 : c.grd_var_nam_dsc) != null ? d : c == null ? void 0 : c.grd_var_nam) != null ? g : ""}_COPY`, l.value.frm_id = (b = c == null ? void 0 : c.frm_id) != null ? b : "", l.value.usr_id = (y = c == null ? void 0 : c.usr_id) != null ? y : "", l.value.grp_nam = (_ = c == null ? void 0 : c.grp_nam) != null ? _ : "", l.value.varGridDetails = (p = c == null ? void 0 : c.varGridDetails) != null ? p : [], KgUtil.hideLoading(), !1;
13699
13711
  }), o.onBeforeOk(async ({
13700
13712
  model: l
13701
13713
  }) => (l.value, !1)), o.onOk(async () => (message.success(a.t("kg.KgTable.save-var-grid-master-as-success-message")), s.store.retrieve(s.formID), !1)), o.onClose(async () => (r("kgClose"), !1)), i.store.setIsCopying(i.formID, !0), () => createVNode(KgVar, null, null);
@@ -13728,7 +13740,7 @@ const getProps$j = () => ({
13728
13740
  }, {
13729
13741
  immediate: !0
13730
13742
  });
13731
- function E(C) {
13743
+ function y(C) {
13732
13744
  n.store.patchVarGridDetail(n.formID, C.var_nam, {
13733
13745
  vis_flg: C.vis_flg === 1 ? 0 : 1
13734
13746
  });
@@ -13759,7 +13771,7 @@ const getProps$j = () => ({
13759
13771
  async function m() {
13760
13772
  g.value.visible = !0;
13761
13773
  }
13762
- function y() {
13774
+ function E() {
13763
13775
  return createVNode(Menu.SubMenu, {
13764
13776
  key: "columns",
13765
13777
  title: a.t("kg.KgTable.column"),
@@ -13778,7 +13790,7 @@ const getProps$j = () => ({
13778
13790
  }, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((M) => createVNode("li", {
13779
13791
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
13780
13792
  onClick: (w) => {
13781
- w.preventDefault(), w.stopPropagation(), E(M);
13793
+ w.preventDefault(), w.stopPropagation(), y(M);
13782
13794
  },
13783
13795
  style: {
13784
13796
  display: i(M, c.value) ? "flex" : "none"
@@ -13849,7 +13861,7 @@ const getProps$j = () => ({
13849
13861
  popupClassName: "kg-table-setting--submenu-popup--row-height"
13850
13862
  }, {
13851
13863
  default: () => {
13852
- let I, R, P;
13864
+ let I, R, N;
13853
13865
  return createVNode(Fragment, null, [createVNode(Menu.Item, {
13854
13866
  key: "L",
13855
13867
  class: u.value === "L" ? "selected" : "",
@@ -13866,8 +13878,8 @@ const getProps$j = () => ({
13866
13878
  key: "H",
13867
13879
  class: u.value === "H" ? "selected" : "",
13868
13880
  onClick: () => s.store.setRowHeight(n.formID, "H")
13869
- }, _isSlot$6(P = a.t("kg.KgTable.rowHeightH")) ? P : {
13870
- default: () => [P]
13881
+ }, _isSlot$6(N = a.t("kg.KgTable.rowHeightH")) ? N : {
13882
+ default: () => [N]
13871
13883
  })]);
13872
13884
  },
13873
13885
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
@@ -13897,7 +13909,7 @@ const getProps$j = () => ({
13897
13909
  "onUpdate:openKeys": (C) => o.value = C,
13898
13910
  selectable: !1
13899
13911
  }, {
13900
- default: () => [y(), k(), T(), A()]
13912
+ default: () => [E(), k(), T(), A()]
13901
13913
  })
13902
13914
  }), d.value.visible && createVNode(KgTableSettingConfigModal, {
13903
13915
  visible: d.value.visible,
@@ -13955,7 +13967,7 @@ const getProps$h = () => ({
13955
13967
  s.onSubmitSave(async () => {
13956
13968
  var k;
13957
13969
  try {
13958
- await ((k = E.value) == null ? void 0 : k.validate());
13970
+ await ((k = y.value) == null ? void 0 : k.validate());
13959
13971
  } catch (A) {
13960
13972
  KgUtil.throwIfNotFormError(A);
13961
13973
  }
@@ -13986,7 +13998,7 @@ const getProps$h = () => ({
13986
13998
  }
13987
13999
  return isString$1(k) && (k = k.replaceAll("\\n", `
13988
14000
  `)), isNil(k) && (k = ""), k;
13989
- }), E = ref(null);
14001
+ }), y = ref(null);
13990
14002
  function _(k) {
13991
14003
  var A, C, M;
13992
14004
  if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
@@ -14017,7 +14029,7 @@ const getProps$h = () => ({
14017
14029
  }
14018
14030
  function m() {
14019
14031
  return createVNode(KgForm, {
14020
- ref: E,
14032
+ ref: y,
14021
14033
  model: i.model.value,
14022
14034
  layout: "vertical",
14023
14035
  wrapperCol: {
@@ -14036,8 +14048,8 @@ const getProps$h = () => ({
14036
14048
  })]
14037
14049
  });
14038
14050
  }
14039
- function y() {
14040
- var k, A, C, M, w, I, R, P, O, F, $;
14051
+ function E() {
14052
+ var k, A, C, M, w, I, R, N, O, F, $;
14041
14053
  if (u.value)
14042
14054
  return m();
14043
14055
  switch ((k = l.value) == null ? void 0 : k.display_type) {
@@ -14049,13 +14061,13 @@ const getProps$h = () => ({
14049
14061
  }, null);
14050
14062
  }
14051
14063
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
14052
- const D = KgUtil.tryParseJSON((M = l.value) == null ? void 0 : M.display_type_properties), V = isArrayLike(D) && D.find((N) => N.value === e.kgValue);
14064
+ const D = KgUtil.tryParseJSON((M = l.value) == null ? void 0 : M.display_type_properties), V = isArrayLike(D) && D.find((P) => P.value === e.kgValue);
14053
14065
  if (V) {
14054
- const N = n.t(V.varName).value;
14055
- return N ? createVNode(Tag, {
14066
+ const P = n.t(V.varName).value;
14067
+ return P ? createVNode(Tag, {
14056
14068
  color: (w = V.color) != null ? w : "default"
14057
- }, _isSlot$5(N) ? N : {
14058
- default: () => [N]
14069
+ }, _isSlot$5(P) ? P : {
14070
+ default: () => [P]
14059
14071
  }) : T();
14060
14072
  } else
14061
14073
  return T();
@@ -14063,7 +14075,7 @@ const getProps$h = () => ({
14063
14075
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
14064
14076
  const D = KgUtil.tryParseJSON((I = l.value) == null ? void 0 : I.display_type_properties);
14065
14077
  if (D.isTag && isArrayLike(D.tagColors)) {
14066
- const V = D.tagColors.find((N) => N.value === e.kgValue);
14078
+ const V = D.tagColors.find((P) => P.value === e.kgValue);
14067
14079
  return b.value ? createVNode(Tag, {
14068
14080
  color: (R = V == null ? void 0 : V.color) != null ? R : "default"
14069
14081
  }, {
@@ -14073,7 +14085,7 @@ const getProps$h = () => ({
14073
14085
  return T();
14074
14086
  }
14075
14087
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
14076
- const D = KgUtil.tryParseJSON((P = l.value) == null ? void 0 : P.display_type_properties), V = (F = (O = e.kgRow) == null ? void 0 : O[D.leftColumn]) != null ? F : 0;
14088
+ const D = KgUtil.tryParseJSON((N = l.value) == null ? void 0 : N.display_type_properties), V = (F = (O = e.kgRow) == null ? void 0 : O[D.leftColumn]) != null ? F : 0;
14077
14089
  switch (e.kgContext) {
14078
14090
  case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
14079
14091
  return V;
@@ -14122,7 +14134,7 @@ const getProps$h = () => ({
14122
14134
  class: g.value,
14123
14135
  title: b.value,
14124
14136
  "kg-value": e.kgValue
14125
- }, [y()]);
14137
+ }, [E()]);
14126
14138
  }
14127
14139
  });
14128
14140
  function _useRenderBodyCell() {
@@ -14139,19 +14151,19 @@ function _useRenderBodyCell() {
14139
14151
  text: d,
14140
14152
  value: g
14141
14153
  } = i, b = l.dataIndex;
14142
- let E = "";
14143
- l.customRender ? E = l.customRender({
14154
+ let y = "";
14155
+ l.customRender ? y = l.customRender({
14144
14156
  index: c,
14145
14157
  record: u,
14146
14158
  column: l,
14147
14159
  text: d,
14148
14160
  value: g,
14149
14161
  renderIndex: c
14150
- }) : E = g;
14162
+ }) : y = g;
14151
14163
  const _ = createVNode(KgTableCell, {
14152
14164
  kgContext: o,
14153
14165
  kgRow: u,
14154
- kgValue: E,
14166
+ kgValue: y,
14155
14167
  kgVarName: b,
14156
14168
  onKgUpdateLinkClick: () => n(u)
14157
14169
  }, null);
@@ -14181,7 +14193,7 @@ function _useColumns(e) {
14181
14193
  return ((b = r.store.getVarGridConfig(r.formID)) == null ? void 0 : b.show_check_column_flg) === 1;
14182
14194
  }), u = computed(() => {
14183
14195
  var T, k, A;
14184
- const b = useKg(), E = s.store.getDatas(r.formID), _ = (T = s.store.getTableWidth(r.formID)) != null ? T : 0, p = (k = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? k : 0, m = r.store.getCurrentVisibleVarGridDetails(r.formID), y = [{
14196
+ const b = useKg(), y = s.store.getDatas(r.formID), _ = (T = s.store.getTableWidth(r.formID)) != null ? T : 0, p = (k = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? k : 0, m = r.store.getCurrentVisibleVarGridDetails(r.formID), E = [{
14185
14197
  dataIndex: "index",
14186
14198
  width: KG_TABLE_TD_INDEX_WIDTH,
14187
14199
  fixed: "left",
@@ -14191,7 +14203,7 @@ function _useColumns(e) {
14191
14203
  index: C
14192
14204
  }) => C + 1
14193
14205
  }, ...(A = m == null ? void 0 : m.map((C, M) => {
14194
- var N, B, H;
14206
+ var P, B, Y;
14195
14207
  const w = C.var_nam;
14196
14208
  function I() {
14197
14209
  return C.width === "auto" ? "auto" : Number(C.width) || KG_TABLE_TD_DEFAULT_WIDTH;
@@ -14199,23 +14211,23 @@ function _useColumns(e) {
14199
14211
  function R() {
14200
14212
  return r.t(w).value;
14201
14213
  }
14202
- function P() {
14214
+ function N() {
14203
14215
  if (C.fix_left_flg === 1)
14204
14216
  return "left";
14205
14217
  if (C.fix_right_flg === 1)
14206
14218
  return "right";
14207
14219
  }
14208
14220
  function O() {
14209
- var L, x, Y, q;
14210
- return !(C.ord_flg !== 1 || (x = (L = t == null ? void 0 : t.value) == null ? void 0 : L.KgTable) != null && x.kgDisabled || isNil((q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) == null ? void 0 : q.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || E.length <= 0);
14221
+ var K, x, W, q;
14222
+ return !(C.ord_flg !== 1 || (x = (K = t == null ? void 0 : t.value) == null ? void 0 : K.KgTable) != null && x.kgDisabled || isNil((q = (W = t == null ? void 0 : t.value) == null ? void 0 : W.KgTable) == null ? void 0 : q.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || y.length <= 0);
14211
14223
  }
14212
14224
  function F() {
14213
- var L, x, Y, q, X, J;
14214
- if (((x = (L = b.option.value.KgTable) == null ? void 0 : L.filter) == null ? void 0 : x.on) === !0 && C.filter_flag === 1 && !((q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) != null && q.kgDisabled) && !(isNil((J = (X = t == null ? void 0 : t.value) == null ? void 0 : X.KgTable) == null ? void 0 : J.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(E.length <= 0))
14215
- return uniqBy(E.map((te) => {
14216
- var le;
14225
+ var K, x, W, q, J, Z;
14226
+ if (((x = (K = b.option.value.KgTable) == null ? void 0 : K.filter) == null ? void 0 : x.on) === !0 && C.filter_flag === 1 && !((q = (W = t == null ? void 0 : t.value) == null ? void 0 : W.KgTable) != null && q.kgDisabled) && !(isNil((Z = (J = t == null ? void 0 : t.value) == null ? void 0 : J.KgTable) == null ? void 0 : Z.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(y.length <= 0))
14227
+ return uniqBy(y.map((te) => {
14228
+ var ie;
14217
14229
  return {
14218
- value: (le = te == null ? void 0 : te[w]) != null ? le : "",
14230
+ value: (ie = te == null ? void 0 : te[w]) != null ? ie : "",
14219
14231
  text: i({
14220
14232
  column: {
14221
14233
  dataIndex: w
@@ -14228,8 +14240,8 @@ function _useColumns(e) {
14228
14240
  }), "value");
14229
14241
  }
14230
14242
  function $() {
14231
- var L, x, Y;
14232
- return ((x = (L = b.option.value.KgTable) == null ? void 0 : L.filter) == null ? void 0 : x.on) !== !0 ? null : ((Y = o.value) == null ? void 0 : Y[w]) || null;
14243
+ var K, x, W;
14244
+ return ((x = (K = b.option.value.KgTable) == null ? void 0 : K.filter) == null ? void 0 : x.on) !== !0 ? null : ((W = o.value) == null ? void 0 : W[w]) || null;
14233
14245
  }
14234
14246
  function D() {
14235
14247
  return ["left", "center", "right"].includes(C.align || "") ? C.align : "left";
@@ -14258,39 +14270,39 @@ function _useColumns(e) {
14258
14270
  minWidth: KG_TABLE_TD_MIN_WIDTH,
14259
14271
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
14260
14272
  align: D(),
14261
- fixed: P(),
14273
+ fixed: N(),
14262
14274
  sorter: O(),
14263
- sortOrder: ((N = l.value) == null ? void 0 : N.field) === w && (H = (B = l.value) == null ? void 0 : B.order) != null ? H : null,
14275
+ sortOrder: ((P = l.value) == null ? void 0 : P.field) === w && (Y = (B = l.value) == null ? void 0 : B.order) != null ? Y : null,
14264
14276
  filteredValue: $(),
14265
14277
  filters: F(),
14266
- onFilter: (L, x) => L === "" ? isNil(x == null ? void 0 : x[w]) || (x == null ? void 0 : x[w]) === "" : (x == null ? void 0 : x[w]) === L,
14278
+ onFilter: (K, x) => K === "" ? isNil(x == null ? void 0 : x[w]) || (x == null ? void 0 : x[w]) === "" : (x == null ? void 0 : x[w]) === K,
14267
14279
  customHeaderCell: () => ({
14268
14280
  "kg-frm_id": r.formID,
14269
14281
  "kg-var_nam": w,
14270
14282
  draggable: !0
14271
14283
  }),
14272
- customCell: (L) => {
14273
- var Y;
14284
+ customCell: (K) => {
14285
+ var W;
14274
14286
  const x = r.store.getVarSubmitField(r.formID, w);
14275
14287
  return {
14276
14288
  "kg-frm_id": r.formID,
14277
14289
  "kg-var_nam": w,
14278
- class: n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && L[s.id.value] === ((Y = s.selectedRow.value) == null ? void 0 : Y[s.id.value]) && (!!r.isCreating.value && (x == null ? void 0 : x.crt_flg) === 1 || !!r.isUpdating.value && (x == null ? void 0 : x.upt_flg) === 1 || !!r.isCopying.value && (x == null ? void 0 : x.cpy_flg) === 1 || !!r.isDeleting.value && (x == null ? void 0 : x.del_flg) === 1) ? "submitting" : ""
14290
+ class: n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && K[s.id.value] === ((W = s.selectedRow.value) == null ? void 0 : W[s.id.value]) && (!!r.isCreating.value && (x == null ? void 0 : x.crt_flg) === 1 || !!r.isUpdating.value && (x == null ? void 0 : x.upt_flg) === 1 || !!r.isCopying.value && (x == null ? void 0 : x.cpy_flg) === 1 || !!r.isDeleting.value && (x == null ? void 0 : x.del_flg) === 1) ? "submitting" : ""
14279
14291
  };
14280
14292
  }
14281
14293
  };
14282
14294
  })) != null ? A : []];
14283
- return (p === 0 || _ > p && !(m != null && m.find((C) => C.width === "auto"))) && y.push({
14295
+ return (p === 0 || _ > p && !(m != null && m.find((C) => C.width === "auto"))) && E.push({
14284
14296
  width: "auto",
14285
14297
  customRender: () => null
14286
- }), y;
14298
+ }), E;
14287
14299
  }), d = computed(() => {
14288
- var E;
14300
+ var y;
14289
14301
  let b = 0;
14290
- return c.value && (b += KG_TABLE_TD_CHECK_WIDTH), b += KG_TABLE_TD_INDEX_WIDTH, b += (E = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? E : 0, `${b}px`;
14302
+ return c.value && (b += KG_TABLE_TD_CHECK_WIDTH), b += KG_TABLE_TD_INDEX_WIDTH, b += (y = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? y : 0, `${b}px`;
14291
14303
  });
14292
14304
  let g = null;
14293
- return watch(r.currentVarGridMasteID, (b, E) => {
14305
+ return watch(r.currentVarGridMasteID, (b, y) => {
14294
14306
  l.value = {}, g == null || g(), g = watch(l, () => {
14295
14307
  g(), g = null, a.search({
14296
14308
  isSearchFirstPage: !0
@@ -14343,9 +14355,9 @@ function _useDragColumn(e, t) {
14343
14355
  width: d,
14344
14356
  height: g
14345
14357
  } = l.getBoundingClientRect();
14346
- d && g && (u.style.width = `${d + 2}px`, u.style.height = `${g + 2}px`), (b = c.dataTransfer) == null || b.setDragImage(u, -10, (g + 2) / 2), toCanvas(l).then((E) => {
14358
+ d && g && (u.style.width = `${d + 2}px`, u.style.height = `${g + 2}px`), (b = c.dataTransfer) == null || b.setDragImage(u, -10, (g + 2) / 2), toCanvas(l).then((y) => {
14347
14359
  var _;
14348
- u.appendChild(E), document.body.appendChild(u), (_ = c.dataTransfer) == null || _.setDragImage(u, -10, (g + 2) / 2);
14360
+ u.appendChild(y), document.body.appendChild(u), (_ = c.dataTransfer) == null || _.setDragImage(u, -10, (g + 2) / 2);
14349
14361
  });
14350
14362
  }, l.addEventListener("dragstart", l.__kg__dragstart__), l.__kg__dragend__ = (c) => {
14351
14363
  l.classList.remove("dragging"), l.parentElement.classList.remove("dragging");
@@ -14438,15 +14450,15 @@ const KgTable$1 = "", getProps$g = () => ({
14438
14450
  name: "KgTable",
14439
14451
  props: getProps$g(),
14440
14452
  setup: function(e) {
14441
- var ae;
14453
+ var se;
14442
14454
  const t = inject("$dayjs", dayjs), r = inject(DI_KG_VAR__KG_SLOTS, null), a = inject(DI_KG_VAR__KG_PROPS, null), n = useKg(), s = useKgVar(), i = useKgSearch(), o = useKgTable(), l = useKgSubmit();
14443
- i.onSearch(async (K) => (L(K), !1)), i.onReset(async () => (g.value = {}, L({
14455
+ i.onSearch(async (L) => (K(L), !1)), i.onReset(async () => (g.value = {}, K({
14444
14456
  isSearchFirstPage: !0
14445
14457
  }), !1)), o.store.$onAction(async ({
14446
- name: K,
14458
+ name: L,
14447
14459
  args: U
14448
14460
  }) => {
14449
- switch (K) {
14461
+ switch (L) {
14450
14462
  case "setRowSelect":
14451
14463
  if (U[0] === s.formID) {
14452
14464
  const Q = U[1], z = U[2], ee = Q[o.id.value];
@@ -14461,7 +14473,7 @@ const KgTable$1 = "", getProps$g = () => ({
14461
14473
  }
14462
14474
  break;
14463
14475
  case "clearDatas":
14464
- U[0] === s.formID && (o.store.setDatas(s.formID, []), D.total = 0, H(), c.value = []);
14476
+ U[0] === s.formID && (o.store.setDatas(s.formID, []), D.total = 0, Y(), c.value = []);
14465
14477
  break;
14466
14478
  }
14467
14479
  });
@@ -14471,52 +14483,52 @@ const KgTable$1 = "", getProps$g = () => ({
14471
14483
  sorterInfo: g,
14472
14484
  scrollX: b
14473
14485
  } = _useColumns(e), {
14474
- isLoading: E
14486
+ isLoading: y
14475
14487
  } = _useLoading(), _ = ref(null), {
14476
14488
  renderBodyCell: p
14477
14489
  } = _useRenderBodyCell();
14478
14490
  _useResizeObserver(_), _useDragColumn(_, u);
14479
14491
  const {
14480
14492
  datas: m,
14481
- transformDatas: y
14493
+ transformDatas: E
14482
14494
  } = _useDatas(), T = computed(() => {
14483
- var K, U;
14484
- return (U = (K = s.varButtonSearch.value) == null ? void 0 : K.cmd) != null ? U : null;
14495
+ var L, U;
14496
+ return (U = (L = s.varButtonSearch.value) == null ? void 0 : L.cmd) != null ? U : null;
14485
14497
  }), k = computed(() => {
14486
- var U, Q, z, ee, ve, fe, ie, ue, pe;
14487
- let K = {
14498
+ var U, Q, z, ee, _e, de, ge, me, he;
14499
+ let L = {
14488
14500
  pageNo: D.pageIndex,
14489
14501
  pageSize: D.pageSize,
14490
14502
  column: (Q = (U = g.value) == null ? void 0 : U.field) != null ? Q : void 0,
14491
14503
  order: g.value.order === "ascend" ? "asc" : g.value.order === "descend" ? "desc" : void 0,
14492
14504
  ...(ee = (z = i.model) == null ? void 0 : z.value) != null ? ee : {}
14493
14505
  };
14494
- return s.varButtonSearch.value && (K = {
14495
- ...K,
14496
- ...KgVarUtil.parseCommandParameter((fe = (ve = s.varButtonSearch.value) == null ? void 0 : ve.cmd_prm) != null ? fe : "")
14497
- }), (ie = s.varGridConfig.value) != null && ie.cmd_prm && (K = {
14498
- ...K,
14499
- ...KgVarUtil.parseCommandParameter((ue = s.varGridConfig.value.cmd_prm) != null ? ue : "")
14500
- }), ((pe = s.varGridConfig.value) == null ? void 0 : pe.convert_sort_field_to_under_score_flg) === 1 && K.column && (K.column = snakeCase$1(K.column)), K;
14506
+ return s.varButtonSearch.value && (L = {
14507
+ ...L,
14508
+ ...KgVarUtil.parseCommandParameter((de = (_e = s.varButtonSearch.value) == null ? void 0 : _e.cmd_prm) != null ? de : "")
14509
+ }), (ge = s.varGridConfig.value) != null && ge.cmd_prm && (L = {
14510
+ ...L,
14511
+ ...KgVarUtil.parseCommandParameter((me = s.varGridConfig.value.cmd_prm) != null ? me : "")
14512
+ }), ((he = s.varGridConfig.value) == null ? void 0 : he.convert_sort_field_to_under_score_flg) === 1 && L.column && (L.column = snakeCase$1(L.column)), L;
14501
14513
  }), A = computed(() => {
14502
- var K, U, Q, z;
14503
- if (!isNil((U = (K = a == null ? void 0 : a.value) == null ? void 0 : K.KgTable) == null ? void 0 : U.kgDisabled))
14514
+ var L, U, Q, z;
14515
+ if (!isNil((U = (L = a == null ? void 0 : a.value) == null ? void 0 : L.KgTable) == null ? void 0 : U.kgDisabled))
14504
14516
  return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgDisabled;
14505
14517
  if (!isNil(e.kgDisabled))
14506
14518
  return e.kgDisabled;
14507
14519
  }), C = computed(() => {
14508
- var K, U, Q, z;
14509
- if (!isNil((U = (K = a == null ? void 0 : a.value) == null ? void 0 : K.KgTable) == null ? void 0 : U.kgCheckboxDisabled))
14520
+ var L, U, Q, z;
14521
+ if (!isNil((U = (L = a == null ? void 0 : a.value) == null ? void 0 : L.KgTable) == null ? void 0 : U.kgCheckboxDisabled))
14510
14522
  return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgCheckboxDisabled;
14511
14523
  if (!isNil(e.kgCheckboxDisabled))
14512
14524
  return e.kgCheckboxDisabled;
14513
- }), M = computed(() => !!A.value || E.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), w = computed(() => !!A.value || E.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || D.total === 0), I = computed(() => {
14514
- var K;
14515
- return !!((K = r == null ? void 0 : r.KgTable) != null && K.expandedRowRender);
14525
+ }), M = computed(() => !!A.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), w = computed(() => !!A.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || D.total === 0), I = computed(() => {
14526
+ var L;
14527
+ return !!((L = r == null ? void 0 : r.KgTable) != null && L.expandedRowRender);
14516
14528
  }), R = computed(() => {
14517
- var K;
14518
- return ((K = s.varGridConfig.value) == null ? void 0 : K.show_check_column_flg) === 1;
14519
- }), P = computed(() => {
14529
+ var L;
14530
+ return ((L = s.varGridConfig.value) == null ? void 0 : L.show_check_column_flg) === 1;
14531
+ }), N = computed(() => {
14520
14532
  if (!!R.value)
14521
14533
  return {
14522
14534
  fixed: "left",
@@ -14524,76 +14536,76 @@ const KgTable$1 = "", getProps$g = () => ({
14524
14536
  hideSelectAll: !o.isMultiSelect.value,
14525
14537
  selectedRowKeys: $,
14526
14538
  preserveSelectedRowKeys: !1,
14527
- getCheckboxProps: (K) => {
14539
+ getCheckboxProps: (L) => {
14528
14540
  var U;
14529
14541
  return {
14530
- disabled: !!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || !!((U = C.value) != null && U.call(C, K))
14542
+ disabled: !!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || !!((U = C.value) != null && U.call(C, L))
14531
14543
  };
14532
14544
  },
14533
- onSelect: (K) => Y(K),
14534
- onChange: (K) => o.isMultiSelect.value && x(K)
14545
+ onSelect: (L) => W(L),
14546
+ onChange: (L) => o.isMultiSelect.value && x(L)
14535
14547
  };
14536
14548
  }), O = computed(() => {
14537
14549
  var U;
14538
- let K = "kg-table";
14539
- switch (((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (K += " kg-table--bottom-border"), !o.isShowBottomLeft.value && !o.isShowBottomRight.value && (K += " kg-table--no-bottom"), l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (K += " kg-table--submitting"), o.store.getRowHeight(s.formID)) {
14550
+ let L = "kg-table";
14551
+ switch (((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (L += " kg-table--bottom-border"), !o.isShowBottomLeft.value && !o.isShowBottomRight.value && (L += " kg-table--no-bottom"), l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (L += " kg-table--submitting"), o.store.getRowHeight(s.formID)) {
14540
14552
  case "L":
14541
- K += " kg-table--row-l";
14553
+ L += " kg-table--row-l";
14542
14554
  break;
14543
14555
  case "M":
14544
- K += " kg-table--row-m";
14556
+ L += " kg-table--row-m";
14545
14557
  break;
14546
14558
  case "H":
14547
- K += " kg-table--row-h";
14559
+ L += " kg-table--row-h";
14548
14560
  break;
14549
14561
  }
14550
- return K;
14562
+ return L;
14551
14563
  }), F = computed(() => {
14552
14564
  var U;
14553
- let K = "kg-table-bottom";
14554
- return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (K += " kg-table-bottom--border"), K;
14555
- }), $ = (ae = o.store.getSelectedRowKeys(s.formID)) != null ? ae : ref([]), D = reactive({
14565
+ let L = "kg-table-bottom";
14566
+ return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (L += " kg-table-bottom--border"), L;
14567
+ }), $ = (se = o.store.getSelectedRowKeys(s.formID)) != null ? se : ref([]), D = reactive({
14556
14568
  pageIndex: 1,
14557
14569
  pageSize: 10,
14558
14570
  total: 0
14559
- }), V = watch(o.pageSizeOption, (K) => {
14560
- K && (setTimeout(() => V()), D.pageSize = K, o.store.emit(s.formID, "ready", {}), o.store.setIsReady(s.formID, !0));
14571
+ }), V = watch(o.pageSizeOption, (L) => {
14572
+ L && (setTimeout(() => V()), D.pageSize = L, o.store.emit(s.formID, "ready", {}), o.store.setIsReady(s.formID, !0));
14561
14573
  }, {
14562
14574
  immediate: !0
14563
14575
  });
14564
- watch(o.pageSizeOptions, (K) => {
14565
- K.length > 0 && !K.includes(D.pageSize) && (D.pageSize = o.pageSizeOption.value);
14566
- }), watch([T, o.isReadAutomatically, i.isReady], ([K, U, Q]) => {
14567
- K && U && Q && !o.store.getIsRetrieved(s.formID) && L({
14576
+ watch(o.pageSizeOptions, (L) => {
14577
+ L.length > 0 && !L.includes(D.pageSize) && (D.pageSize = o.pageSizeOption.value);
14578
+ }), watch([T, o.isReadAutomatically, i.isReady], ([L, U, Q]) => {
14579
+ L && U && Q && !o.store.getIsRetrieved(s.formID) && K({
14568
14580
  isSearchFirstPage: !0
14569
14581
  });
14570
14582
  }, {
14571
14583
  immediate: !0
14572
- }), watch(s.isCreating, (K, U) => {
14573
- K === !0 ? N() : K === !1 && U === !0 && B();
14584
+ }), watch(s.isCreating, (L, U) => {
14585
+ L === !0 ? P() : L === !1 && U === !0 && B();
14574
14586
  }), onUnmounted(() => {
14575
14587
  o.store.dispose(s.formID);
14576
14588
  });
14577
- function N() {
14589
+ function P() {
14578
14590
  if (l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
14579
- const K = {
14591
+ const L = {
14580
14592
  [o.id.value]: KG_TABLE_TEMP_ID
14581
14593
  };
14582
- o.store.setDatas(s.formID, [K, ...m.value]), o.store.setSelectedRows(s.formID, [K]);
14594
+ o.store.setDatas(s.formID, [L, ...m.value]), o.store.setSelectedRows(s.formID, [L]);
14583
14595
  }
14584
14596
  }
14585
14597
  function B() {
14586
- const K = m.value.find((U) => U[o.id.value] === KG_TABLE_TEMP_ID);
14587
- K && (o.store.setDatas(s.formID, without$1(m.value, K)), o.store.setSelectedRows(s.formID, []));
14598
+ const L = m.value.find((U) => U[o.id.value] === KG_TABLE_TEMP_ID);
14599
+ L && (o.store.setDatas(s.formID, without$1(m.value, L)), o.store.setSelectedRows(s.formID, []));
14588
14600
  }
14589
- function H(K, U) {
14601
+ function Y(L, U) {
14590
14602
  var Q;
14591
- if (!(!!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!P.value) {
14603
+ if (!(!!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!N.value) {
14592
14604
  if (!U) {
14593
14605
  o.store.setSelectedRows(s.formID, []);
14594
14606
  return;
14595
14607
  }
14596
- switch (K == null ? void 0 : K.detail) {
14608
+ switch (L == null ? void 0 : L.detail) {
14597
14609
  case 1:
14598
14610
  switch ((Q = s.varGridConfig.value) == null ? void 0 : Q.operation_on_row_click) {
14599
14611
  case 0:
@@ -14611,9 +14623,9 @@ const KgTable$1 = "", getProps$g = () => ({
14611
14623
  }
14612
14624
  }
14613
14625
  }
14614
- function L(K = {}) {
14626
+ function K(L = {}) {
14615
14627
  KgLogger.debug(`${s.formID} | KgTable | retrieve() | \u6267\u884C\u5F00\u59CB.`, {
14616
- param: K
14628
+ param: L
14617
14629
  });
14618
14630
  const U = watch(o.isReady, (z) => {
14619
14631
  z && (setTimeout(() => U()), Q());
@@ -14621,99 +14633,111 @@ const KgTable$1 = "", getProps$g = () => ({
14621
14633
  immediate: !0
14622
14634
  });
14623
14635
  async function Q() {
14624
- var z, ee, ve, fe;
14636
+ var z, ee, _e, de, ge, me, he;
14625
14637
  if (KgLogger.debug(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u6267\u884C\u5F00\u59CB.`), !T.value) {
14626
- KgLogger.error(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.`, {
14638
+ KgLogger.error(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.`, {
14627
14639
  VarButton: s.varButtonSearch.value
14628
14640
  });
14629
14641
  return;
14630
14642
  }
14631
- K.isSearchFirstPage && (D.pageIndex = 1), o.store.setIsRetrieving(s.formID, !0);
14643
+ L.isSearchFirstPage && (D.pageIndex = 1), o.store.setIsRetrieving(s.formID, !0);
14632
14644
  try {
14633
- const ie = KgUtil.parseParams(k.value, o.profileFormID.value, t), ue = ref({});
14645
+ const ve = KgUtil.parseParams(k.value, o.profileFormID.value, t), Se = ref({});
14634
14646
  if (!await o.store.emit(s.formID, "beforeRetrieve", {
14635
- params: ie,
14636
- response: ue
14647
+ params: ve,
14648
+ response: Se
14637
14649
  })) {
14638
- const _e = ((ee = (z = n.option.value.KgSearch) == null ? void 0 : z.dynamicQuery) == null ? void 0 : ee.on) === !0 && ((ve = s.currentVarProfileMaster.value) == null ? void 0 : ve.dyn_flg) === 1;
14639
- ue.value = await httpClient().request({
14640
- method: "GET",
14650
+ const H = ((ee = (z = n.option.value.KgSearch) == null ? void 0 : z.dynamicQuery) == null ? void 0 : ee.on) === !0 && ((_e = s.currentVarProfileMaster.value) == null ? void 0 : _e.dyn_flg) === 1, {
14651
+ sql: X,
14652
+ whereSql: re,
14653
+ orderBySql: ne
14654
+ } = KgUtil.getQuerySql(k.value, o.profileFormID.value, t), ae = await httpClient().request({
14655
+ method: (ge = (de = s.varButtonSearch.value) == null ? void 0 : de.cmd_method) != null ? ge : "GET",
14641
14656
  url: T.value,
14642
- params: ie,
14657
+ params: ve,
14658
+ data: ve,
14643
14659
  headers: {
14644
- [KG_HTTP_HEADERS.KG_DYNAMIC_QUERY_ON]: _e,
14645
- [KG_HTTP_HEADERS.KG_DYNAMIC_QUERY_SQL]: (() => _e ? KgUtil.parseParamsForDynamicQuery(k.value, o.profileFormID.value, t) : "")()
14660
+ [KG_HTTP_HEADERS.KG_DYNAMIC_QUERY]: H,
14661
+ [KG_HTTP_HEADERS.KG_QUERY_SQL]: X,
14662
+ [KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL]: re,
14663
+ [KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]: ne
14646
14664
  }
14647
14665
  }, {
14666
+ isReturnNativeResponse: !0,
14648
14667
  successMessageMode: "none"
14649
- }), KgLogger.debug(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6210\u529F.`, {
14650
- params: ie,
14651
- response: ue.value
14668
+ });
14669
+ if (!ae.data)
14670
+ throw message.error(n.t("kg.KgTable.request-fail-no-data")), new Error(n.t("kg.KgTable.request-fail-no-data"));
14671
+ if (![0, 200].includes((me = ae.data.code) != null ? me : -1) || !ae.data.success)
14672
+ throw message.error(ae.data.message || n.t("kg.KgTable.request-fail-error")), new Error(ae.data.message || n.t("kg.KgTable.request-fail-error"));
14673
+ H && ae.headers[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY] !== "true" && message.warning(n.t("kg.KgTable.dynamic-query-is-off-in-server")), Se.value = ae.data.result, KgLogger.debug(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6210\u529F.`, {
14674
+ params: ve,
14675
+ response: Se.value
14652
14676
  });
14653
14677
  }
14654
14678
  const {
14655
- datas: pe,
14656
- total: Se
14657
- } = y(ue);
14679
+ datas: be,
14680
+ total: Ce
14681
+ } = E(Se);
14658
14682
  await o.store.emit(s.formID, "beforeSetDatas", {
14659
- datas: pe,
14660
- total: Se,
14661
- setDatas(_e) {
14662
- o.store.setDatas(s.formID, _e);
14683
+ datas: be,
14684
+ total: Ce,
14685
+ setDatas(H) {
14686
+ o.store.setDatas(s.formID, H);
14663
14687
  }
14664
- }), d.value = {}, o.store.setDatas(s.formID, pe.value), D.total = Se.value;
14665
- const Ce = cloneDeep($.value);
14666
- H(), c.value = [], await nextTick(), K.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, Ce.map((_e) => {
14667
- var Ee;
14668
- return (Ee = pe.value) == null ? void 0 : Ee.find((G) => G[o.id.value] === _e);
14669
- }).filter((_e) => !!_e)) : ((fe = s.varGridConfig.value) == null ? void 0 : fe.check_first_row_after_retrieve) === 1 && pe.value.length > 0 && o.store.setSelectedRows(s.formID, [pe.value[0]]), await o.store.emit(s.formID, "retrieve", {
14670
- page: ue.value,
14671
- datas: pe,
14672
- setDatas(_e) {
14673
- o.store.setDatas(s.formID, _e);
14688
+ }), d.value = {}, o.store.setDatas(s.formID, be.value), D.total = Ce.value;
14689
+ const G = cloneDeep($.value);
14690
+ Y(), c.value = [], await nextTick(), L.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, G.map((H) => {
14691
+ var X;
14692
+ return (X = be.value) == null ? void 0 : X.find((re) => re[o.id.value] === H);
14693
+ }).filter((H) => !!H)) : ((he = s.varGridConfig.value) == null ? void 0 : he.check_first_row_after_retrieve) === 1 && be.value.length > 0 && o.store.setSelectedRows(s.formID, [be.value[0]]), await o.store.emit(s.formID, "retrieve", {
14694
+ page: Se.value,
14695
+ datas: be,
14696
+ setDatas(H) {
14697
+ o.store.setDatas(s.formID, H);
14674
14698
  }
14675
14699
  }), o.store.setIsRetrieved(s.formID, !0);
14676
- } catch (ie) {
14677
- throw ie;
14700
+ } catch (ve) {
14701
+ throw ve;
14678
14702
  } finally {
14679
14703
  o.store.setIsRetrieving(s.formID, !1);
14680
14704
  }
14681
14705
  }
14682
14706
  }
14683
- function x(K) {
14684
- o.store.setSelectedRows(s.formID, K.map((U) => {
14707
+ function x(L) {
14708
+ o.store.setSelectedRows(s.formID, L.map((U) => {
14685
14709
  var Q;
14686
14710
  return (Q = m.value) == null ? void 0 : Q.find((z) => z[o.id.value] === U);
14687
14711
  }).filter((U) => !!U));
14688
14712
  }
14689
- function Y(K) {
14713
+ function W(L) {
14690
14714
  var U, Q;
14691
14715
  switch (o.isMultiSelect.value) {
14692
14716
  case !0:
14693
14717
  {
14694
- const z = K[o.id.value];
14718
+ const z = L[o.id.value];
14695
14719
  $.value.includes(z) ? $.value = without$1($.value, z) : $.value = [...(U = $.value) != null ? U : [], z];
14696
14720
  }
14697
14721
  break;
14698
14722
  case !1:
14699
14723
  {
14700
- const z = K[o.id.value];
14724
+ const z = L[o.id.value];
14701
14725
  (Q = $.value) != null && Q.includes(z) ? $.value = [] : $.value = [z];
14702
14726
  }
14703
14727
  break;
14704
14728
  }
14705
14729
  o.store.setSelectedRows(s.formID, $.value.map((z) => {
14706
14730
  var ee;
14707
- return (ee = m.value) == null ? void 0 : ee.find((ve) => ve[o.id.value] === z);
14731
+ return (ee = m.value) == null ? void 0 : ee.find((_e) => _e[o.id.value] === z);
14708
14732
  }).filter((z) => !!z));
14709
14733
  }
14710
- function q(K, U) {
14711
- U.width = K, s.store.setVarGridDetailWidth(s.formID, U.dataIndex, K);
14734
+ function q(L, U) {
14735
+ U.width = L, s.store.setVarGridDetailWidth(s.formID, U.dataIndex, L);
14712
14736
  }
14713
- async function X(K, U, Q, z) {
14737
+ async function J(L, U, Q, z) {
14714
14738
  switch (z.action) {
14715
14739
  case "sort": {
14716
- g.value = Q, g.value.order || (g.value.field = void 0), await nextTick(), L({
14740
+ g.value = Q, g.value.order || (g.value.field = void 0), await nextTick(), K({
14717
14741
  isSearchFirstPage: !0
14718
14742
  });
14719
14743
  break;
@@ -14722,23 +14746,23 @@ const KgTable$1 = "", getProps$g = () => ({
14722
14746
  d.value = U;
14723
14747
  }
14724
14748
  }
14725
- function J(K, U) {
14749
+ function Z(L, U) {
14726
14750
  var z;
14727
14751
  const Q = U[o.id.value];
14728
14752
  switch ((z = s.varGridConfig.value) == null ? void 0 : z.expand_accordion_flg) {
14729
14753
  case 0:
14730
- K ? c.value = uniq([...c.value, Q]) : c.value = without$1(c.value, Q);
14754
+ L ? c.value = uniq([...c.value, Q]) : c.value = without$1(c.value, Q);
14731
14755
  break;
14732
14756
  default:
14733
- K ? c.value = [Q] : c.value = [];
14757
+ L ? c.value = [Q] : c.value = [];
14734
14758
  break;
14735
14759
  }
14736
14760
  }
14737
- function te(K, U) {
14738
- U !== D.pageSize ? (D.pageIndex = 1, D.pageSize = U) : D.pageIndex = K, L();
14761
+ function te(L, U) {
14762
+ U !== D.pageSize ? (D.pageIndex = 1, D.pageSize = U) : D.pageIndex = L, K();
14739
14763
  }
14740
- function le({
14741
- title: K,
14764
+ function ie({
14765
+ title: L,
14742
14766
  column: U
14743
14767
  }) {
14744
14768
  switch (U.dataIndex) {
@@ -14748,13 +14772,13 @@ const KgTable$1 = "", getProps$g = () => ({
14748
14772
  }, null);
14749
14773
  default:
14750
14774
  return createVNode("pre", {
14751
- title: K
14752
- }, [K]);
14775
+ title: L
14776
+ }, [L]);
14753
14777
  }
14754
14778
  }
14755
- function he() {
14756
- var K;
14757
- return (K = r == null ? void 0 : r.KgTable) != null && K["summary.bodyCell"] ? createVNode(TableSummary, {
14779
+ function pe() {
14780
+ var L;
14781
+ return (L = r == null ? void 0 : r.KgTable) != null && L["summary.bodyCell"] ? createVNode(TableSummary, {
14758
14782
  fixed: "bottom"
14759
14783
  }, {
14760
14784
  default: () => [createVNode(TableSummary.Row, null, {
@@ -14763,17 +14787,17 @@ const KgTable$1 = "", getProps$g = () => ({
14763
14787
  }, null), R.value && createVNode(TableSummary.Cell, {
14764
14788
  index: I.value ? 1 : 0
14765
14789
  }, null), u.value.map((U, Q) => {
14766
- const z = String(U.dataIndex), ee = z ? s.store.getVarGridDetail(s.formID, z) : null, ve = (() => ["left", "center", "right"].includes((ee == null ? void 0 : ee.align) || "") ? ee == null ? void 0 : ee.align : "left")();
14767
- let fe = Q;
14768
- return I.value && R.value ? fe += 2 : (I.value || R.value) && (fe += 1), createVNode(TableSummary.Cell, {
14769
- index: fe,
14770
- align: ve
14790
+ const z = String(U.dataIndex), ee = z ? s.store.getVarGridDetail(s.formID, z) : null, _e = (() => ["left", "center", "right"].includes((ee == null ? void 0 : ee.align) || "") ? ee == null ? void 0 : ee.align : "left")();
14791
+ let de = Q;
14792
+ return I.value && R.value ? de += 2 : (I.value || R.value) && (de += 1), createVNode(TableSummary.Cell, {
14793
+ index: de,
14794
+ align: _e
14771
14795
  }, {
14772
14796
  default: () => {
14773
- var ie, ue;
14774
- return [(ue = (ie = r == null ? void 0 : r.KgTable) == null ? void 0 : ie["summary.bodyCell"]) == null ? void 0 : ue.call(ie, {
14797
+ var ge, me;
14798
+ return [(me = (ge = r == null ? void 0 : r.KgTable) == null ? void 0 : ge["summary.bodyCell"]) == null ? void 0 : me.call(ge, {
14775
14799
  column: U,
14776
- index: fe,
14800
+ index: de,
14777
14801
  varGridDetail: ee
14778
14802
  })];
14779
14803
  }
@@ -14782,11 +14806,11 @@ const KgTable$1 = "", getProps$g = () => ({
14782
14806
  })]
14783
14807
  }) : null;
14784
14808
  }
14785
- function ge() {
14809
+ function ce() {
14786
14810
  return !o.isReadAutomatically.value && !o.store.getIsRetrieved(s.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
14787
14811
  }
14788
14812
  return () => {
14789
- var K, U, Q;
14813
+ var L, U, Q;
14790
14814
  return createVNode("div", {
14791
14815
  class: O.value,
14792
14816
  "kg-frm_id": s.formID,
@@ -14802,24 +14826,24 @@ const KgTable$1 = "", getProps$g = () => ({
14802
14826
  showSorterTooltip: !1,
14803
14827
  columns: u.value,
14804
14828
  dataSource: m.value,
14805
- loading: E.value,
14829
+ loading: y.value,
14806
14830
  rowKey: o.id.value,
14807
- rowClassName: (U = (K = a == null ? void 0 : a.value) == null ? void 0 : K.KgTable) == null ? void 0 : U.kgRowClassName,
14831
+ rowClassName: (U = (L = a == null ? void 0 : a.value) == null ? void 0 : L.KgTable) == null ? void 0 : U.kgRowClassName,
14808
14832
  expandColumnWidth: 28,
14809
14833
  expandedRowKeys: c.value,
14810
- rowSelection: P.value,
14834
+ rowSelection: N.value,
14811
14835
  customRow: (z) => ({
14812
- onClick: (ee) => H(ee, z)
14836
+ onClick: (ee) => Y(ee, z)
14813
14837
  }),
14814
14838
  onResizeColumn: q,
14815
- onChange: X,
14816
- onExpand: J
14839
+ onChange: J,
14840
+ onExpand: Z
14817
14841
  }, {
14818
- headerCell: le,
14842
+ headerCell: ie,
14819
14843
  bodyCell: p,
14820
- emptyText: ge,
14844
+ emptyText: ce,
14821
14845
  expandedRowRender: (Q = r == null ? void 0 : r.KgTable) == null ? void 0 : Q.expandedRowRender,
14822
- summary: he
14846
+ summary: pe
14823
14847
  }), (o.isShowBottomLeft.value || o.isShowBottomRight.value) && createVNode("div", {
14824
14848
  class: F.value
14825
14849
  }, [createVNode("div", {
@@ -14876,8 +14900,8 @@ const KgTable$1 = "", getProps$g = () => ({
14876
14900
  attrs: t
14877
14901
  }) {
14878
14902
  const r = useKg(), a = useKgVar(), n = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
14879
- var u, d, g, b, E, _, p, m;
14880
- return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((_ = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? _ : 0) > 1 || ((p = s.value) == null ? void 0 : p.permission_type) === 2 && !r.p((m = s.value) == null ? void 0 : m.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14903
+ var u, d, g, b, y, _, p, m;
14904
+ return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((_ = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? _ : 0) > 1 || ((p = s.value) == null ? void 0 : p.permission_type) === 2 && !r.p((m = s.value) == null ? void 0 : m.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14881
14905
  });
14882
14906
  async function o() {
14883
14907
  e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
@@ -15084,7 +15108,7 @@ const KgButtonCreate = defineComponent({
15084
15108
  function b() {
15085
15109
  i.store.emit(s.formID, "submitSave", {});
15086
15110
  }
15087
- function E() {
15111
+ function y() {
15088
15112
  i.store.emit(s.formID, "submitCancel", {});
15089
15113
  }
15090
15114
  function _() {
@@ -15112,7 +15136,7 @@ const KgButtonCreate = defineComponent({
15112
15136
  default: () => [_(), p()]
15113
15137
  });
15114
15138
  }
15115
- function y() {
15139
+ function E() {
15116
15140
  return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
15117
15141
  type: "primary",
15118
15142
  onClick: b,
@@ -15123,20 +15147,20 @@ const KgButtonCreate = defineComponent({
15123
15147
  type: "primary",
15124
15148
  ghost: !d.value,
15125
15149
  disabled: d.value,
15126
- onClick: E
15150
+ onClick: y
15127
15151
  }, {
15128
15152
  default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
15129
15153
  })]);
15130
15154
  }
15131
- return () => createVNode(Fragment, null, [m(), y()]);
15155
+ return () => createVNode(Fragment, null, [m(), E()]);
15132
15156
  }
15133
15157
  }), KgButtonDelete = defineComponent({
15134
15158
  name: "KgButtonDelete",
15135
15159
  props: getProps$f(),
15136
15160
  setup(e) {
15137
15161
  const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), s = computed(() => {
15138
- var c, u, d, g, b, E, _, p;
15139
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((g = n.value) == null ? void 0 : g.dis_mult_select_flg) === 1 && ((E = (b = a.selectedRows.value) == null ? void 0 : b.length) != null ? E : 0) > 1 || ((_ = n.value) == null ? void 0 : _.permission_type) === 2 && !t.p((p = n.value) == null ? void 0 : p.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
15162
+ var c, u, d, g, b, y, _, p;
15163
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((g = n.value) == null ? void 0 : g.dis_mult_select_flg) === 1 && ((y = (b = a.selectedRows.value) == null ? void 0 : b.length) != null ? y : 0) > 1 || ((_ = n.value) == null ? void 0 : _.permission_type) === 2 && !t.p((p = n.value) == null ? void 0 : p.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
15140
15164
  });
15141
15165
  async function i() {
15142
15166
  e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
@@ -15173,31 +15197,31 @@ const KgButtonCreate = defineComponent({
15173
15197
  props: getProps$f(),
15174
15198
  setup(e) {
15175
15199
  const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), s = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
15176
- var E, _;
15177
- return s.value ? (_ = (E = s.value) == null ? void 0 : E.cmd) != null ? _ : "" : null;
15200
+ var y, _;
15201
+ return s.value ? (_ = (y = s.value) == null ? void 0 : y.cmd) != null ? _ : "" : null;
15178
15202
  }), o = computed(() => {
15179
- var E, _;
15180
- return (_ = (E = s.value) == null ? void 0 : E.cmd_method) != null ? _ : "GET";
15203
+ var y, _;
15204
+ return (_ = (y = s.value) == null ? void 0 : y.cmd_method) != null ? _ : "GET";
15181
15205
  }), l = computed(() => {
15182
- var _, p, m, y, T, k;
15183
- let E = {
15206
+ var _, p, m, E, T, k;
15207
+ let y = {
15184
15208
  pageNo: 1,
15185
15209
  pageSize: 9999999,
15186
15210
  ...(_ = a.model.value) != null ? _ : {}
15187
15211
  };
15188
- return s.value && (E = {
15189
- ...E,
15212
+ return s.value && (y = {
15213
+ ...y,
15190
15214
  ...KgVarUtil.parseCommandParameter((m = (p = s.value) == null ? void 0 : p.cmd_prm) != null ? m : "")
15191
- }), (y = r.varGridConfig.value) != null && y.cmd_prm && (E = {
15192
- ...E,
15215
+ }), (E = r.varGridConfig.value) != null && E.cmd_prm && (y = {
15216
+ ...y,
15193
15217
  ...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
15194
- }), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 && E.column && (E.column = snakeCase$1(E.column)), E;
15218
+ }), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 && y.column && (y.column = snakeCase$1(y.column)), y;
15195
15219
  }), c = computed(() => {
15196
- var E, _, p, m, y, T, k, A;
15197
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((E = s.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((p = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) === 0 || ((m = s.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
15220
+ var y, _, p, m, E, T, k, A;
15221
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((p = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) === 0 || ((m = s.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
15198
15222
  }), u = ref(!1);
15199
15223
  async function d() {
15200
- var E, _;
15224
+ var y, _;
15201
15225
  if (!(e.onKgClick && await e.onKgClick())) {
15202
15226
  if (!i.value) {
15203
15227
  KgLogger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -15215,7 +15239,7 @@ const KgButtonCreate = defineComponent({
15215
15239
  }, {
15216
15240
  joinParamsToUrl: !0,
15217
15241
  isTransformResponse: !1
15218
- }), m = (E = s.value) == null ? void 0 : E.export_excel_filename;
15242
+ }), m = (y = s.value) == null ? void 0 : y.export_excel_filename;
15219
15243
  KgUtil.downloadFile(p, `${m ? r.t(m).value : t.t("kg.export")}.${(_ = s.value) == null ? void 0 : _.export_excel_suffix}`);
15220
15244
  } catch (p) {
15221
15245
  throw p;
@@ -15235,14 +15259,14 @@ const KgButtonCreate = defineComponent({
15235
15259
  return e.kgText ? e.kgText : t.t("kg.export");
15236
15260
  }
15237
15261
  return () => {
15238
- var E, _, p, m;
15262
+ var y, _, p, m;
15239
15263
  return createVNode(Button, {
15240
15264
  type: "primary",
15241
15265
  disabled: c.value,
15242
15266
  ghost: !e.kgPrimary && !c.value,
15243
15267
  loading: u.value,
15244
15268
  onClick: d,
15245
- "kg-id": (E = s.value) == null ? void 0 : E.id,
15269
+ "kg-id": (y = s.value) == null ? void 0 : y.id,
15246
15270
  "kg-frm_id": (_ = s.value) == null ? void 0 : _.frm_id,
15247
15271
  "kg-var_nam": (p = s.value) == null ? void 0 : p.var_nam,
15248
15272
  "kg-cmd": (m = s.value) == null ? void 0 : m.cmd
@@ -15266,17 +15290,17 @@ const KgButtonCreate = defineComponent({
15266
15290
  var p, m;
15267
15291
  return (m = (p = o.value) == null ? void 0 : p.cmd_method) != null ? m : "POST";
15268
15292
  }), u = computed(() => {
15269
- var m, y, T;
15293
+ var m, E, T;
15270
15294
  let p = {
15271
15295
  ...(m = s.model.value) != null ? m : {}
15272
15296
  };
15273
15297
  return o.value && (p = {
15274
15298
  ...p,
15275
- ...KgVarUtil.parseCommandParameter((T = (y = o.value) == null ? void 0 : y.cmd_prm) != null ? T : "")
15299
+ ...KgVarUtil.parseCommandParameter((T = (E = o.value) == null ? void 0 : E.cmd_prm) != null ? T : "")
15276
15300
  }), p;
15277
15301
  }), d = computed(() => {
15278
- var p, m, y, T, k, A, C, M;
15279
- return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((p = o.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((y = (m = i.selectedRows.value) == null ? void 0 : m.length) != null ? y : 0) === 0 || ((T = o.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) > 1 || ((C = o.value) == null ? void 0 : C.permission_type) === 2 && !a.p((M = o.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
15302
+ var p, m, E, T, k, A, C, M;
15303
+ return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((p = o.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((E = (m = i.selectedRows.value) == null ? void 0 : m.length) != null ? E : 0) === 0 || ((T = o.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) > 1 || ((C = o.value) == null ? void 0 : C.permission_type) === 2 && !a.p((M = o.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
15280
15304
  }), g = ref(!1);
15281
15305
  async function b(p) {
15282
15306
  if (!l.value)
@@ -15287,7 +15311,7 @@ const KgButtonCreate = defineComponent({
15287
15311
  try {
15288
15312
  const m = new FormData();
15289
15313
  m.append("file", p);
15290
- const y = await httpClient().axiosInstance.request({
15314
+ const E = await httpClient().axiosInstance.request({
15291
15315
  method: c.value,
15292
15316
  baseURL: window._CONFIG.domianURL,
15293
15317
  url: l.value,
@@ -15308,7 +15332,7 @@ const KgButtonCreate = defineComponent({
15308
15332
  }
15309
15333
  return !1;
15310
15334
  }
15311
- function E() {
15335
+ function y() {
15312
15336
  return g.value ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
15313
15337
  class: "anticon"
15314
15338
  }, [createVNode(Icon, {
@@ -15325,7 +15349,7 @@ const KgButtonCreate = defineComponent({
15325
15349
  disabled: g.value
15326
15350
  }, {
15327
15351
  default: () => {
15328
- var p, m, y, T;
15352
+ var p, m, E, T;
15329
15353
  return [createVNode(Button, {
15330
15354
  class: r.class,
15331
15355
  type: "primary",
@@ -15334,10 +15358,10 @@ const KgButtonCreate = defineComponent({
15334
15358
  loading: g.value,
15335
15359
  "kg-id": (p = o.value) == null ? void 0 : p.id,
15336
15360
  "kg-frm_id": (m = o.value) == null ? void 0 : m.frm_id,
15337
- "kg-var_nam": (y = o.value) == null ? void 0 : y.var_nam,
15361
+ "kg-var_nam": (E = o.value) == null ? void 0 : E.var_nam,
15338
15362
  "kg-cmd": (T = o.value) == null ? void 0 : T.cmd
15339
15363
  }, {
15340
- default: () => [E(), _()]
15364
+ default: () => [y(), _()]
15341
15365
  })];
15342
15366
  }
15343
15367
  });
@@ -15347,29 +15371,29 @@ const KgButtonCreate = defineComponent({
15347
15371
  props: getProps$f(),
15348
15372
  setup(e) {
15349
15373
  const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), s = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
15350
- var E, _;
15351
- return s.value ? (_ = (E = s.value) == null ? void 0 : E.cmd) != null ? _ : "" : null;
15374
+ var y, _;
15375
+ return s.value ? (_ = (y = s.value) == null ? void 0 : y.cmd) != null ? _ : "" : null;
15352
15376
  }), o = computed(() => {
15353
- var E, _;
15354
- return (_ = (E = s.value) == null ? void 0 : E.cmd_method) != null ? _ : "GET";
15377
+ var y, _;
15378
+ return (_ = (y = s.value) == null ? void 0 : y.cmd_method) != null ? _ : "GET";
15355
15379
  }), l = computed(() => {
15356
- var _, p, m, y, T;
15357
- let E = {
15380
+ var _, p, m, E, T;
15381
+ let y = {
15358
15382
  ...(_ = a.model.value) != null ? _ : {}
15359
15383
  };
15360
- return s.value && (E = {
15361
- ...E,
15384
+ return s.value && (y = {
15385
+ ...y,
15362
15386
  ...KgVarUtil.parseCommandParameter((m = (p = s.value) == null ? void 0 : p.cmd_prm) != null ? m : "")
15363
- }), (y = r.varGridConfig.value) != null && y.cmd_prm && (E = {
15364
- ...E,
15387
+ }), (E = r.varGridConfig.value) != null && E.cmd_prm && (y = {
15388
+ ...y,
15365
15389
  ...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
15366
- }), E;
15390
+ }), y;
15367
15391
  }), c = computed(() => {
15368
- var E, _, p, m, y, T, k, A;
15369
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((E = s.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((p = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) === 0 || ((m = s.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
15392
+ var y, _, p, m, E, T, k, A;
15393
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((p = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) === 0 || ((m = s.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
15370
15394
  }), u = ref(!1);
15371
15395
  async function d() {
15372
- var E, _;
15396
+ var y, _;
15373
15397
  if (!i.value) {
15374
15398
  KgLogger.error("[KgButton] '\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
15375
15399
  VarButton: s.value
@@ -15386,7 +15410,7 @@ const KgButtonCreate = defineComponent({
15386
15410
  }, {
15387
15411
  joinParamsToUrl: !0,
15388
15412
  isTransformResponse: !1
15389
- }), m = (E = s.value) == null ? void 0 : E.export_excel_filename;
15413
+ }), m = (y = s.value) == null ? void 0 : y.export_excel_filename;
15390
15414
  KgUtil.downloadFile(p, `${m ? r.t(m).value : t.t("kg.importTemplate")}.${(_ = s.value) == null ? void 0 : _.export_excel_suffix}`);
15391
15415
  } catch (p) {
15392
15416
  throw p;
@@ -15405,14 +15429,14 @@ const KgButtonCreate = defineComponent({
15405
15429
  return e.kgText ? e.kgText : t.t("kg.downloadImportTemplate");
15406
15430
  }
15407
15431
  return () => {
15408
- var E, _, p, m;
15432
+ var y, _, p, m;
15409
15433
  return createVNode(Button, {
15410
15434
  type: "primary",
15411
15435
  disabled: c.value,
15412
15436
  ghost: !e.kgPrimary && !c.value,
15413
15437
  loading: u.value,
15414
15438
  onClick: d,
15415
- "kg-id": (E = s.value) == null ? void 0 : E.id,
15439
+ "kg-id": (y = s.value) == null ? void 0 : y.id,
15416
15440
  "kg-frm_id": (_ = s.value) == null ? void 0 : _.frm_id,
15417
15441
  "kg-var_nam": (p = s.value) == null ? void 0 : p.var_nam,
15418
15442
  "kg-cmd": (m = s.value) == null ? void 0 : m.cmd
@@ -15426,14 +15450,14 @@ const KgButtonCreate = defineComponent({
15426
15450
  props: getProps$f(),
15427
15451
  setup(e) {
15428
15452
  const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgButton(), s = useKgTable(), i = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
15429
- var d, g, b, E, _, p, m, y;
15430
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = i.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((b = (g = s.selectedRows.value) == null ? void 0 : g.length) != null ? b : 0) === 0 || ((E = i.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((p = (_ = s.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) > 1 || ((m = i.value) == null ? void 0 : m.permission_type) === 2 && !t.p((y = i.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
15453
+ var d, g, b, y, _, p, m, E;
15454
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = i.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((b = (g = s.selectedRows.value) == null ? void 0 : g.length) != null ? b : 0) === 0 || ((y = i.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((p = (_ = s.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) > 1 || ((m = i.value) == null ? void 0 : m.permission_type) === 2 && !t.p((E = i.value) == null ? void 0 : E.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
15431
15455
  });
15432
15456
  async function l() {
15433
- var E, _, p;
15457
+ var y, _, p;
15434
15458
  if (e.onKgClick && await e.onKgClick())
15435
15459
  return;
15436
- const d = (E = e.kgButton) == null ? void 0 : E.cmd;
15460
+ const d = (y = e.kgButton) == null ? void 0 : y.cmd;
15437
15461
  if (!d) {
15438
15462
  KgLogger.error("[KgButton] \u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
15439
15463
  VarButton: e.kgButton
@@ -15442,12 +15466,12 @@ const KgButtonCreate = defineComponent({
15442
15466
  }
15443
15467
  let g = null;
15444
15468
  const b = async () => {
15445
- var y, T, k, A, C, M;
15469
+ var E, T, k, A, C, M;
15446
15470
  g == null || g.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
15447
15471
  const m = s.selectedRows.value;
15448
15472
  try {
15449
15473
  const w = await httpClient().request({
15450
- method: (T = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? T : "POST",
15474
+ method: (T = (E = e.kgButton) == null ? void 0 : E.cmd_method) != null ? T : "POST",
15451
15475
  url: d,
15452
15476
  params: KgVarUtil.parseCommandParameter((A = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? A : ""),
15453
15477
  data: m != null ? m : []
@@ -15456,7 +15480,7 @@ const KgButtonCreate = defineComponent({
15456
15480
  if (((M = e.kgButton) == null ? void 0 : M.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
15457
15481
  datas: R
15458
15482
  }) => {
15459
- const P = R.value, O = intersectionWith$1(P, m != null ? m : [], (F, $) => (F == null ? void 0 : F[s.id.value]) === ($ == null ? void 0 : $[s.id.value]));
15483
+ const N = R.value, O = intersectionWith$1(N, m != null ? m : [], (F, $) => (F == null ? void 0 : F[s.id.value]) === ($ == null ? void 0 : $[s.id.value]));
15460
15484
  return O.length > 0 && s.store.setSelectedRows(r.formID, O), !1;
15461
15485
  }, !0), await n.store.emit(r.formID, "otherOk", {
15462
15486
  button: e.kgButton,
@@ -15497,7 +15521,7 @@ const KgButtonCreate = defineComponent({
15497
15521
  return e.kgText ? e.kgText : t.t("kg.button");
15498
15522
  }
15499
15523
  return () => {
15500
- var d, g, b, E;
15524
+ var d, g, b, y;
15501
15525
  return createVNode(Button, {
15502
15526
  type: "primary",
15503
15527
  disabled: o.value,
@@ -15507,7 +15531,7 @@ const KgButtonCreate = defineComponent({
15507
15531
  "kg-id": (d = i.value) == null ? void 0 : d.id,
15508
15532
  "kg-frm_id": (g = i.value) == null ? void 0 : g.frm_id,
15509
15533
  "kg-var_nam": (b = i.value) == null ? void 0 : b.var_nam,
15510
- "kg-cmd": (E = i.value) == null ? void 0 : E.cmd
15534
+ "kg-cmd": (y = i.value) == null ? void 0 : y.cmd
15511
15535
  }, {
15512
15536
  default: () => [c(), u()]
15513
15537
  });
@@ -15584,7 +15608,7 @@ const KgButtonCreate = defineComponent({
15584
15608
  function b() {
15585
15609
  o.store.emit(s.formID, "submitSave", {});
15586
15610
  }
15587
- function E() {
15611
+ function y() {
15588
15612
  o.store.emit(s.formID, "submitCancel", {});
15589
15613
  }
15590
15614
  function _() {
@@ -15613,7 +15637,7 @@ const KgButtonCreate = defineComponent({
15613
15637
  default: () => [_(), p()]
15614
15638
  });
15615
15639
  }
15616
- function y() {
15640
+ function E() {
15617
15641
  return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
15618
15642
  type: "primary",
15619
15643
  onClick: b,
@@ -15624,12 +15648,12 @@ const KgButtonCreate = defineComponent({
15624
15648
  type: "primary",
15625
15649
  ghost: !d.value,
15626
15650
  disabled: d.value,
15627
- onClick: E
15651
+ onClick: y
15628
15652
  }, {
15629
15653
  default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
15630
15654
  })]);
15631
15655
  }
15632
- return () => createVNode(Fragment, null, [m(), y()]);
15656
+ return () => createVNode(Fragment, null, [m(), E()]);
15633
15657
  }
15634
15658
  }), KgButton_Item = "";
15635
15659
  function _isSlot$4(e) {
@@ -15703,8 +15727,8 @@ const getProps$e = () => ({
15703
15727
  }
15704
15728
  function l(_) {
15705
15729
  return computed(() => {
15706
- var m, y;
15707
- const p = ((y = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgButton) == null ? void 0 : y.kgDisabled) || e.kgDisabled;
15730
+ var m, E;
15731
+ const p = ((E = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgButton) == null ? void 0 : E.kgDisabled) || e.kgDisabled;
15708
15732
  if (p) {
15709
15733
  const T = p(_);
15710
15734
  if (!isNil(T))
@@ -15732,7 +15756,7 @@ const getProps$e = () => ({
15732
15756
  return null;
15733
15757
  switch ((p = n.varGridConfig.value) == null ? void 0 : p.button_display_type) {
15734
15758
  case KG_BUTTON_DISPLAY_TYPE.SELECT:
15735
- return E();
15759
+ return y();
15736
15760
  default:
15737
15761
  return b();
15738
15762
  }
@@ -15754,7 +15778,7 @@ const getProps$e = () => ({
15754
15778
  var _;
15755
15779
  return (_ = n.varButtons.value) == null ? void 0 : _.filter((p) => p.typ !== KG_BUTTON_TYPE.SEARCH).map((p) => g(p));
15756
15780
  }
15757
- function E() {
15781
+ function y() {
15758
15782
  return createVNode(Dropdown, {
15759
15783
  trigger: "click",
15760
15784
  overlayClassName: "kg-button-dropdown"
@@ -15768,9 +15792,9 @@ const getProps$e = () => ({
15768
15792
  default: () => {
15769
15793
  var _, p;
15770
15794
  return [(p = (_ = n.varButtons.value) == null ? void 0 : _.filter((m) => m.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : p.filter((m) => !(m.permission_type !== 2 && !a.p(m.permission_code))).map((m) => {
15771
- let y;
15772
- return createVNode(Menu.Item, null, _isSlot$3(y = g(m)) ? y : {
15773
- default: () => [y]
15795
+ let E;
15796
+ return createVNode(Menu.Item, null, _isSlot$3(E = g(m)) ? E : {
15797
+ default: () => [E]
15774
15798
  });
15775
15799
  })];
15776
15800
  }
@@ -16264,11 +16288,11 @@ function _useDragRow(e, t, r) {
16264
16288
  g.setAttribute("id", "__kg_search_config_fields_drag_image__");
16265
16289
  const {
16266
16290
  width: b,
16267
- height: E
16291
+ height: y
16268
16292
  } = u.parentElement.getBoundingClientRect();
16269
- b && E && (g.style.width = `${b + 2}px`, g.style.height = `${E + 2}px`), (p = d.dataTransfer) == null || p.setDragImage(g, -10, (E + 2) / 2);
16293
+ b && y && (g.style.width = `${b + 2}px`, g.style.height = `${y + 2}px`), (p = d.dataTransfer) == null || p.setDragImage(g, -10, (y + 2) / 2);
16270
16294
  const _ = await toCanvas(u.parentElement);
16271
- g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (E + 2) / 2);
16295
+ g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (y + 2) / 2);
16272
16296
  }, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
16273
16297
  u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
16274
16298
  const g = document.querySelector("#__kg_search_config_fields_drag_image__");
@@ -16292,8 +16316,8 @@ function _useDragRow(e, t, r) {
16292
16316
  d.preventDefault(), KgUtil.showLoading();
16293
16317
  const g = document.querySelector("#__kg_search_config_fields_drag_image__");
16294
16318
  g && document.body.removeChild(g), u.classList.remove("dragover", "dragover-right", "dragover-left");
16295
- const b = s == null ? void 0 : s.getAttribute("kg-var_nam"), E = u.getAttribute("kg-var_nam");
16296
- b !== E && l(b, E);
16319
+ const b = s == null ? void 0 : s.getAttribute("kg-var_nam"), y = u.getAttribute("kg-var_nam");
16320
+ b !== y && l(b, y);
16297
16321
  }, u.addEventListener("drop", u.__kg__drop__);
16298
16322
  }
16299
16323
  function o() {
@@ -16315,9 +16339,9 @@ function _useDragRow(e, t, r) {
16315
16339
  const g = t.value.findIndex((p) => p.var_nam === u), b = t.value.findIndex((p) => p.var_nam === d);
16316
16340
  if (g === -1 || b === -1)
16317
16341
  return;
16318
- const E = t.value.find((p) => p.var_nam === u), _ = [];
16342
+ const y = t.value.find((p) => p.var_nam === u), _ = [];
16319
16343
  t.value.forEach((p, m) => {
16320
- g > b ? m < b ? _.push(p) : m === b ? (_.push(E), _.push(p)) : m > b && m !== g && _.push(p) : g < b && (m < g ? _.push(p) : m === g || (m === b ? (_.push(p), _.push(E)) : _.push(p)));
16344
+ g > b ? m < b ? _.push(p) : m === b ? (_.push(y), _.push(p)) : m > b && m !== g && _.push(p) : g < b && (m < g ? _.push(p) : m === g || (m === b ? (_.push(p), _.push(y)) : _.push(p)));
16321
16345
  }), _.forEach((p, m) => {
16322
16346
  p.srtseq = m + 1;
16323
16347
  }), t.value = _, nextTick().finally(() => {
@@ -16351,7 +16375,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
16351
16375
  isCreating: _,
16352
16376
  isUpdating: p,
16353
16377
  isCopying: m,
16354
- row: y,
16378
+ row: E,
16355
16379
  model: T
16356
16380
  }) => {
16357
16381
  var A, C, M, w, I;
@@ -16363,12 +16387,12 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
16363
16387
  }
16364
16388
  case p:
16365
16389
  case m: {
16366
- if (y != null && y.id)
16390
+ if (E != null && E.id)
16367
16391
  try {
16368
16392
  o.store.setIsLoading(a.formID, !0);
16369
16393
  const R = await QueryByID({
16370
16394
  params: {
16371
- id: y.id
16395
+ id: E.id
16372
16396
  }
16373
16397
  });
16374
16398
  l.value = l.value.map((O) => {
@@ -16380,8 +16404,8 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
16380
16404
  id: O.id
16381
16405
  } : O;
16382
16406
  });
16383
- const P = (C = (A = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : A.map((O) => O.var_nam)) != null ? C : [];
16384
- c.value = l.value.filter((O) => P.includes(O.var_nam)).map((O) => O.id);
16407
+ const N = (C = (A = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : A.map((O) => O.var_nam)) != null ? C : [];
16408
+ c.value = l.value.filter((O) => N.includes(O.var_nam)).map((O) => O.id);
16385
16409
  } catch (R) {
16386
16410
  throw R;
16387
16411
  } finally {
@@ -16402,9 +16426,9 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
16402
16426
  }), o.onBeforeOk(async ({
16403
16427
  model: _
16404
16428
  }) => {
16405
- var m, y;
16429
+ var m, E;
16406
16430
  const p = _.value;
16407
- return p.frm_id = r.formID, p.varProfileDetails = (y = (m = l.value) == null ? void 0 : m.filter((T) => c.value.includes(T.id))) != null ? y : [], !1;
16431
+ return p.frm_id = r.formID, p.varProfileDetails = (E = (m = l.value) == null ? void 0 : m.filter((T) => c.value.includes(T.id))) != null ? E : [], !1;
16408
16432
  }), o.onOk(async () => (r.store.retrieve(r.formID), !1)), i.onUpdateBeforeClick(({
16409
16433
  row: _
16410
16434
  }) => (_ == null ? void 0 : _.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((p) => {
@@ -16460,14 +16484,14 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
16460
16484
  direction: _,
16461
16485
  filteredItems: p,
16462
16486
  selectedKeys: m,
16463
- disabled: y,
16487
+ disabled: E,
16464
16488
  onItemSelectAll: T,
16465
16489
  onItemSelect: k
16466
16490
  }) => {
16467
16491
  var C, M;
16468
16492
  const A = p.sort((w, I) => {
16469
- var R, P;
16470
- return ((R = w.srtseq) != null ? R : 0) - ((P = I.srtseq) != null ? P : 0);
16493
+ var R, N;
16494
+ return ((R = w.srtseq) != null ? R : 0) - ((N = I.srtseq) != null ? N : 0);
16471
16495
  });
16472
16496
  return u.value = A, createVNode(Table, {
16473
16497
  pagination: !1,
@@ -16482,12 +16506,12 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
16482
16506
  dataSource: A,
16483
16507
  customRow: (w) => {
16484
16508
  let I = {
16485
- onClick: (R) => E(R, w, _, m)
16509
+ onClick: (R) => y(R, w, _, m)
16486
16510
  };
16487
16511
  return _ === "right" && (I["kg-host-frm_id"] = r.formID, I["kg-var_nam"] = w.var_nam), I;
16488
16512
  },
16489
16513
  rowSelection: b({
16490
- disabled: y,
16514
+ disabled: E,
16491
16515
  selectedKeys: m,
16492
16516
  onItemSelectAll: T,
16493
16517
  onItemSelect: k
@@ -16501,7 +16525,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
16501
16525
  disabled: _,
16502
16526
  selectedKeys: p,
16503
16527
  onItemSelectAll: m,
16504
- onItemSelect: y
16528
+ onItemSelect: E
16505
16529
  }) => ({
16506
16530
  getCheckboxProps: (T) => ({
16507
16531
  disabled: _ || T.disabled
@@ -16515,16 +16539,16 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
16515
16539
  onSelect({
16516
16540
  key: T
16517
16541
  }, k) {
16518
- y(T, k);
16542
+ E(T, k);
16519
16543
  },
16520
16544
  selectedRowKeys: p,
16521
16545
  columnWidth: 32
16522
16546
  });
16523
- function E(_, p, m, y) {
16547
+ function y(_, p, m, E) {
16524
16548
  if (!KgDomUtil.isNotClickable(_.target, ["ant-input"]))
16525
- switch (y.length = 0, _.detail) {
16549
+ switch (E.length = 0, _.detail) {
16526
16550
  case 1:
16527
- y[0] = p.id;
16551
+ E[0] = p.id;
16528
16552
  break;
16529
16553
  case 2:
16530
16554
  switch (m) {
@@ -16633,11 +16657,11 @@ function _useLayoutHeaderResizeObserver() {
16633
16657
  }
16634
16658
  function _useCommon() {
16635
16659
  const e = inject(DI_KG_VAR__KG_PROPS, null), t = useKgVar(), r = computed(() => t.store.getVarProfileConfig(t.formID)), a = computed(() => t.store.getFormLevel(t.formID)), n = ref(!0), s = computed(() => {
16636
- var g, b, E;
16660
+ var g, b, y;
16637
16661
  if (!n.value || a.value > 0)
16638
16662
  return !1;
16639
16663
  const d = (b = (g = e == null ? void 0 : e.value) == null ? void 0 : g.KgSearch) == null ? void 0 : b.kgHeaderTeleport;
16640
- return d !== void 0 ? d : ((E = r.value) == null ? void 0 : E.header_teleport_flg) !== 0;
16664
+ return d !== void 0 ? d : ((y = r.value) == null ? void 0 : y.header_teleport_flg) !== 0;
16641
16665
  }), i = computed(() => {
16642
16666
  var d;
16643
16667
  return ((d = r.value) == null ? void 0 : d.vis_flg) === 1;
@@ -16668,16 +16692,16 @@ function _useFormModel(e, t, r) {
16668
16692
  const u = ref({}), d = ref({});
16669
16693
  async function g() {
16670
16694
  var b;
16671
- ((b = n.currentVarProfileDetails.value) != null ? b : []).forEach((E) => {
16672
- var p, m, y;
16673
- const _ = (p = E.var_nam) != null ? p : "";
16674
- u.value[_] = KgVarUtil.transformFormItemValue(n.formID, _, a, (m = E.dft_val) != null ? m : void 0, "R"), d.value[_] = KgVarUtil.transformFormItemDynamicQueryOperator(n.formID, _, (y = E.dft_dyn_op) != null ? y : void 0);
16675
- }), r.value.kgHeight = o.value, s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value), i.value ? (c == null || c(), c = watch(t, async (E) => {
16676
- E && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
16695
+ ((b = n.currentVarProfileDetails.value) != null ? b : []).forEach((y) => {
16696
+ var p, m, E;
16697
+ const _ = (p = y.var_nam) != null ? p : "";
16698
+ u.value[_] = KgVarUtil.transformFormItemValue(n.formID, _, a, (m = y.dft_val) != null ? m : void 0, "R"), d.value[_] = KgVarUtil.transformFormItemDynamicQueryOperator(n.formID, _, (E = y.dft_dyn_op) != null ? E : void 0);
16699
+ }), r.value.kgHeight = o.value, s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value), i.value ? (c == null || c(), c = watch(t, async (y) => {
16700
+ y && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
16677
16701
  }, {
16678
16702
  immediate: !0
16679
- })) : (l == null || l(), l = watch(e, async (E) => {
16680
- E && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
16703
+ })) : (l == null || l(), l = watch(e, async (y) => {
16704
+ y && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
16681
16705
  }, {
16682
16706
  immediate: !0
16683
16707
  }));
@@ -16714,28 +16738,28 @@ const KgSearch$1 = "", getProps$9 = () => ({
16714
16738
  defaultHeight: u,
16715
16739
  maxHeight: d,
16716
16740
  minHeight: g
16717
- } = _useCommon(), b = ref(null), E = ref(null), _ = ref({
16741
+ } = _useCommon(), b = ref(null), y = ref(null), _ = ref({
16718
16742
  kgHeight: g.value
16719
16743
  });
16720
16744
  _useLayoutHeaderResizeObserver();
16721
- const p = _useFormModel(b, E, _), m = computed(() => {
16722
- var L, x, Y, q;
16723
- if (!isNil((x = (L = r == null ? void 0 : r.value) == null ? void 0 : L.KgSearch) == null ? void 0 : x.kgDisabled))
16724
- return (q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgSearch) == null ? void 0 : q.kgDisabled;
16745
+ const p = _useFormModel(b, y, _), m = computed(() => {
16746
+ var K, x, W, q;
16747
+ if (!isNil((x = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : x.kgDisabled))
16748
+ return (q = (W = r == null ? void 0 : r.value) == null ? void 0 : W.KgSearch) == null ? void 0 : q.kgDisabled;
16725
16749
  if (!isNil(e.kgDisabled))
16726
16750
  return e.kgDisabled;
16727
- }), y = computed(() => {
16728
- var L, x;
16729
- return !!(m.value || i.isRetrieving.value || ((L = n.varButtonSearch.value) == null ? void 0 : L.permission_type) === 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
16751
+ }), E = computed(() => {
16752
+ var K, x;
16753
+ return !!(m.value || i.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
16730
16754
  }), T = computed(() => !!(m.value || i.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), k = computed(() => !!(m.value || i.isRetrieving.value)), A = ref({
16731
16755
  visible: !1
16732
16756
  }), C = computed(() => _.value.kgHeight === g.value), M = computed(() => {
16733
- var L, x, Y;
16734
- if (n.t((L = n.varButtonSearch.value) == null ? void 0 : L.var_nam).value !== ((x = n.varButtonSearch.value) == null ? void 0 : x.var_nam))
16735
- return n.t((Y = n.varButtonSearch.value) == null ? void 0 : Y.var_nam).value;
16757
+ var K, x, W;
16758
+ if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((x = n.varButtonSearch.value) == null ? void 0 : x.var_nam))
16759
+ return n.t((W = n.varButtonSearch.value) == null ? void 0 : W.var_nam).value;
16736
16760
  }), w = computed(() => {
16737
- var L;
16738
- switch ((L = n.varButtonSearch.value) == null ? void 0 : L.primary_flg) {
16761
+ var K;
16762
+ switch ((K = n.varButtonSearch.value) == null ? void 0 : K.primary_flg) {
16739
16763
  case 1:
16740
16764
  return !0;
16741
16765
  case 0:
@@ -16743,17 +16767,17 @@ const KgSearch$1 = "", getProps$9 = () => ({
16743
16767
  default:
16744
16768
  return !0;
16745
16769
  }
16746
- }), I = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), R = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), P = computed(() => {
16747
- let L = "kg-search";
16748
- return o.value && (L += " kg-search--visible"), c.value && (L += " kg-search--teleport"), L;
16770
+ }), I = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), R = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), N = computed(() => {
16771
+ let K = "kg-search";
16772
+ return o.value && (K += " kg-search--visible"), c.value && (K += " kg-search--teleport"), K;
16749
16773
  });
16750
- async function O(L = {}) {
16751
- var x, Y;
16774
+ async function O(K = {}) {
16775
+ var x, W;
16752
16776
  if (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6267\u884C\u5F00\u59CB.`), i.isRetrieving.value) {
16753
16777
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u67E5\u8BE2.`);
16754
16778
  return;
16755
16779
  }
16756
- if (((x = n.varButtonSearch.value) == null ? void 0 : x.permission_type) === 2 && !a.p((Y = n.varButtonSearch.value) == null ? void 0 : Y.permission_code)) {
16780
+ if (((x = n.varButtonSearch.value) == null ? void 0 : x.permission_type) === 2 && !a.p((W = n.varButtonSearch.value) == null ? void 0 : W.permission_code)) {
16757
16781
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6CA1\u6709\u6743\u9650.`);
16758
16782
  return;
16759
16783
  }
@@ -16761,21 +16785,21 @@ const KgSearch$1 = "", getProps$9 = () => ({
16761
16785
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u521B\u5EFA/\u66F4\u65B0/\u590D\u5236/\u5220\u9664.`);
16762
16786
  return;
16763
16787
  }
16764
- o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), E.value && E.value.validate().then(async () => {
16765
- await s.store.emit(n.formID, "search", L);
16788
+ o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), y.value && y.value.validate().then(async () => {
16789
+ await s.store.emit(n.formID, "search", K);
16766
16790
  }).catch((q) => {
16767
16791
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
16768
16792
  e: q
16769
16793
  });
16770
- })) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search", L));
16794
+ })) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search", K));
16771
16795
  }
16772
16796
  s.store.setSearchFn(n.formID, O);
16773
16797
  async function F() {
16774
- p.initFormModel(), o.value ? E.value && E.value.validate().then(async () => {
16798
+ p.initFormModel(), o.value ? y.value && y.value.validate().then(async () => {
16775
16799
  await s.store.emit(n.formID, "reset", {});
16776
- }).catch((L) => {
16800
+ }).catch((K) => {
16777
16801
  KgLogger.debug(`${n.formID} | KgSearch | onReset() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
16778
- e: L
16802
+ e: K
16779
16803
  });
16780
16804
  }) : await s.store.emit(n.formID, "reset", {});
16781
16805
  }
@@ -16786,11 +16810,11 @@ const KgSearch$1 = "", getProps$9 = () => ({
16786
16810
  }), Promise.resolve(!0);
16787
16811
  }
16788
16812
  function D() {
16789
- var L;
16813
+ var K;
16790
16814
  return createVNode("div", {
16791
16815
  class: "title",
16792
- onClick: H
16793
- }, [((L = t == null ? void 0 : t.KgSearch) == null ? void 0 : L.left) && createVNode("div", {
16816
+ onClick: Y
16817
+ }, [((K = t == null ? void 0 : t.KgSearch) == null ? void 0 : K.left) && createVNode("div", {
16794
16818
  class: "kg-search-title-left",
16795
16819
  onClick: (x) => {
16796
16820
  x.stopPropagation(), x.preventDefault();
@@ -16798,16 +16822,16 @@ const KgSearch$1 = "", getProps$9 = () => ({
16798
16822
  }, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
16799
16823
  }
16800
16824
  function V() {
16801
- var L, x, Y, q;
16802
- return ((Y = (x = (L = n.varProfileMasters) == null ? void 0 : L.value) == null ? void 0 : x.length) != null ? Y : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
16825
+ var K, x, W, q;
16826
+ return ((W = (x = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : x.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
16803
16827
  value: (q = n.currentVarProfileMasterID.value) != null ? q : void 0,
16804
- "onUpdate:value": (X) => n.store.setCurrentVarProfileMasterID(n.formID, X),
16828
+ "onUpdate:value": (J) => n.store.setCurrentVarProfileMasterID(n.formID, J),
16805
16829
  disabled: T.value,
16806
16830
  class: "kg-search-profile-master-select"
16807
16831
  }, {
16808
16832
  default: () => {
16809
- var X, J;
16810
- return (J = (X = n.varProfileMasters) == null ? void 0 : X.value) == null ? void 0 : J.map((te) => createVNode(Select.Option, {
16833
+ var J, Z;
16834
+ return (Z = (J = n.varProfileMasters) == null ? void 0 : J.value) == null ? void 0 : Z.map((te) => createVNode(Select.Option, {
16811
16835
  value: te.id
16812
16836
  }, {
16813
16837
  default: () => [n.t(te == null ? void 0 : te.prf_var_nam).value]
@@ -16826,26 +16850,26 @@ const KgSearch$1 = "", getProps$9 = () => ({
16826
16850
  default: () => [createVNode(SettingOutlined$1, null, null)]
16827
16851
  }), createVNode(KgSearchConfigModal, {
16828
16852
  visible: A.value.visible,
16829
- "onUpdate:visible": (X) => A.value.visible = X,
16853
+ "onUpdate:visible": (J) => A.value.visible = J,
16830
16854
  hostFormID: n.formID
16831
16855
  }, null)]);
16832
16856
  }
16833
- function N() {
16834
- var L, x, Y, q, X;
16835
- return createVNode(Fragment, null, [V(), !(((L = n.varButtonSearch.value) == null ? void 0 : L.permission_type) !== 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code)) && createVNode(Button, {
16857
+ function P() {
16858
+ var K, x, W, q, J;
16859
+ return createVNode(Fragment, null, [V(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code)) && createVNode(Button, {
16836
16860
  type: "primary",
16837
- ghost: !y.value,
16838
- disabled: y.value,
16861
+ ghost: !E.value,
16862
+ disabled: E.value,
16839
16863
  onClick: F,
16840
16864
  class: "kg-search-btn-reset"
16841
16865
  }, {
16842
16866
  default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
16843
16867
  }), createVNode(KgButton.Item, {
16844
16868
  kgType: KG_BUTTON_TYPE.SEARCH,
16845
- kgVarName: (Y = n.varButtonSearch.value) == null ? void 0 : Y.var_nam,
16869
+ kgVarName: (W = n.varButtonSearch.value) == null ? void 0 : W.var_nam,
16846
16870
  kgIcon: (q = n.varButtonSearch.value) == null ? void 0 : q.icon,
16847
16871
  kgText: M.value,
16848
- kgColor: (X = n.varButtonSearch.value) == null ? void 0 : X.color,
16872
+ kgColor: (J = n.varButtonSearch.value) == null ? void 0 : J.color,
16849
16873
  kgPrimary: w.value,
16850
16874
  kgLoading: k.value,
16851
16875
  onKgClick: $
@@ -16856,19 +16880,19 @@ const KgSearch$1 = "", getProps$9 = () => ({
16856
16880
  spinning: R.value
16857
16881
  }, {
16858
16882
  default: () => {
16859
- var L;
16883
+ var K;
16860
16884
  return [createVNode(KgForm, {
16861
- ref: E,
16862
- model: (L = s.model.value) != null ? L : {}
16885
+ ref: y,
16886
+ model: (K = s.model.value) != null ? K : {}
16863
16887
  }, {
16864
16888
  default: () => [createVNode(Row, {
16865
16889
  gutter: 6
16866
16890
  }, {
16867
16891
  default: () => {
16868
16892
  var x;
16869
- return [(x = n.currentVarProfileDetails.value) == null ? void 0 : x.map((Y) => createVNode(KgForm.Item, {
16870
- key: Y.var_nam,
16871
- kgVarName: Y.var_nam,
16893
+ return [(x = n.currentVarProfileDetails.value) == null ? void 0 : x.map((W) => createVNode(KgForm.Item, {
16894
+ key: W.var_nam,
16895
+ kgVarName: W.var_nam,
16872
16896
  kgContext: KG_FORM_CONTEXT.SEARCH,
16873
16897
  onKgSubmit: () => O({
16874
16898
  isSearchFirstPage: !0
@@ -16880,17 +16904,17 @@ const KgSearch$1 = "", getProps$9 = () => ({
16880
16904
  }
16881
16905
  });
16882
16906
  }
16883
- function H() {
16907
+ function Y() {
16884
16908
  C.value ? _.value.kgHeight = u.value : _.value.kgHeight = g.value;
16885
16909
  }
16886
16910
  return () => createVNode(KgResizable, {
16887
16911
  ref: b,
16888
16912
  kgHeight: _.value.kgHeight,
16889
- "onUpdate:kgHeight": (L) => _.value.kgHeight = L,
16913
+ "onUpdate:kgHeight": (K) => _.value.kgHeight = K,
16890
16914
  kgMinHeight: g.value,
16891
16915
  kgMaxHeight: d.value,
16892
16916
  kgDisabled: !l.value,
16893
- kgClass: P.value,
16917
+ kgClass: N.value,
16894
16918
  "kg-frm_id": n.formID
16895
16919
  }, {
16896
16920
  default: () => [o.value && createVNode("div", {
@@ -16908,7 +16932,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
16908
16932
  }, {
16909
16933
  default: () => [D(), createVNode("div", {
16910
16934
  class: "ant-collapse-extra"
16911
- }, [N()])]
16935
+ }, [P()])]
16912
16936
  })])]
16913
16937
  }), createVNode("div", {
16914
16938
  class: "ant-collapse-content ant-collapse-content-active"
@@ -16979,8 +17003,8 @@ function useMagicKeys(e = {}) {
16979
17003
  d(_, !1);
16980
17004
  }
16981
17005
  function b(_, p) {
16982
- var m, y;
16983
- const T = (m = _.key) == null ? void 0 : m.toLowerCase(), k = (y = _.code) == null ? void 0 : y.toLowerCase(), A = [k, T].filter(Boolean);
17006
+ var m, E;
17007
+ const T = (m = _.key) == null ? void 0 : m.toLowerCase(), k = (E = _.code) == null ? void 0 : E.toLowerCase(), A = [k, T].filter(Boolean);
16984
17008
  k && (p ? i.add(_.code) : i.delete(_.code));
16985
17009
  for (const C of A)
16986
17010
  u.add(C), d(C, p);
@@ -16989,21 +17013,21 @@ function useMagicKeys(e = {}) {
16989
17013
  }), c.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && p && [...i, ...A].forEach((C) => c.add(C));
16990
17014
  }
16991
17015
  r && (useEventListener(r, "keydown", (_) => (b(_, !0), s(_)), { passive: n }), useEventListener(r, "keyup", (_) => (b(_, !1), s(_)), { passive: n }), useEventListener("blur", g, { passive: !0 }), useEventListener("focus", g, { passive: !0 }));
16992
- const E = new Proxy(l, {
17016
+ const y = new Proxy(l, {
16993
17017
  get(_, p, m) {
16994
17018
  if (typeof p != "string")
16995
17019
  return Reflect.get(_, p, m);
16996
17020
  if (p = p.toLowerCase(), p in a && (p = a[p]), !(p in l))
16997
17021
  if (/[+_-]/.test(p)) {
16998
17022
  const T = p.split(/[+_-]/g).map((k) => k.trim());
16999
- l[p] = computed(() => T.every((k) => unref(E[k])));
17023
+ l[p] = computed(() => T.every((k) => unref(y[k])));
17000
17024
  } else
17001
17025
  l[p] = ref(!1);
17002
- const y = Reflect.get(_, p, m);
17003
- return t ? unref(y) : y;
17026
+ const E = Reflect.get(_, p, m);
17027
+ return t ? unref(E) : E;
17004
17028
  }
17005
17029
  });
17006
- return E;
17030
+ return y;
17007
17031
  }
17008
17032
  var SwipeDirection;
17009
17033
  (function(e) {
@@ -17388,19 +17412,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
17388
17412
  onSelect: (O) => M(O)
17389
17413
  }), b = ref({
17390
17414
  visible: !1
17391
- }), E = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(i))), _ = computed(() => {
17415
+ }), y = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(i))), _ = computed(() => {
17392
17416
  var O;
17393
17417
  return !!u.value || ((O = a.getSelectedVarCatalog) == null ? void 0 : O.cust_lvl) === KG_CUSTOM_LEVEL.L0;
17394
17418
  }), p = computed(() => !!(!unref(u) || unref(n) || unref(s))), m = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
17395
17419
  watch(() => a.getSelectedVar, (O) => {
17396
- O ? y() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
17420
+ O ? E() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
17397
17421
  }, {
17398
17422
  immediate: !0
17399
17423
  }), watch(() => a.getSelectedVarCatalog, async (O) => {
17400
17424
  var F, $;
17401
17425
  l.value.var_text = (F = O == null ? void 0 : O.var_text) != null ? F : "", ($ = o.value) == null || $.clearValidate();
17402
17426
  });
17403
- async function y(O = !1) {
17427
+ async function E(O = !1) {
17404
17428
  var F, $, D;
17405
17429
  n.value = !0;
17406
17430
  try {
@@ -17417,11 +17441,11 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
17417
17441
  }
17418
17442
  });
17419
17443
  if (u.value = null, c.value = V != null ? V : [], O) {
17420
- const N = c.value.find((B) => {
17421
- var H;
17422
- return B.id === ((H = a.getSelectedVarCatalog) == null ? void 0 : H.id);
17444
+ const P = c.value.find((B) => {
17445
+ var Y;
17446
+ return B.id === ((Y = a.getSelectedVarCatalog) == null ? void 0 : Y.id);
17423
17447
  });
17424
- a.setSelectedVarCatalog(N != null ? N : null), d.value = N != null && N.id ? [N.id] : [];
17448
+ a.setSelectedVarCatalog(P != null ? P : null), d.value = P != null && P.id ? [P.id] : [];
17425
17449
  } else
17426
17450
  a.setSelectedVarCatalog(($ = c.value[0]) != null ? $ : null), d.value = (D = c.value[0]) != null && D.id ? [c.value[0].id] : [];
17427
17451
  } catch (V) {
@@ -17444,19 +17468,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
17444
17468
  successMessageMode: "none"
17445
17469
  }), message.success({
17446
17470
  content: t.t("kg.KgVarConfig.createSuccess")
17447
- }), await y()) : (await Edit({
17471
+ }), await E()) : (await Edit({
17448
17472
  data: D
17449
17473
  }, {
17450
17474
  successMessageMode: "none"
17451
17475
  }), message.success({
17452
17476
  content: t.t("kg.KgVarConfig.saveSuccess")
17453
- }), await y(!0)) : (await Add({
17477
+ }), await E(!0)) : (await Add({
17454
17478
  data: D
17455
17479
  }, {
17456
17480
  successMessageMode: "none"
17457
17481
  }), message.success({
17458
17482
  content: t.t("kg.KgVarConfig.createSuccess")
17459
- }), await y()), r.retrieve(e == null ? void 0 : e.value);
17483
+ }), await E()), r.retrieve(e == null ? void 0 : e.value);
17460
17484
  } catch (D) {
17461
17485
  KgUtil.throwIfNotFormError(D);
17462
17486
  } finally {
@@ -17497,7 +17521,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
17497
17521
  joinParamsToUrl: !0
17498
17522
  }), message.success({
17499
17523
  content: t.t("kg.KgVarConfig.deleteSuccess")
17500
- }), r.retrieve(e == null ? void 0 : e.value), await y();
17524
+ }), r.retrieve(e == null ? void 0 : e.value), await E();
17501
17525
  }
17502
17526
  });
17503
17527
  }
@@ -17518,7 +17542,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
17518
17542
  class: "buttons"
17519
17543
  }, [createVNode(Button, {
17520
17544
  onClick: w,
17521
- disabled: E.value,
17545
+ disabled: y.value,
17522
17546
  type: "primary"
17523
17547
  }, {
17524
17548
  default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
@@ -17572,7 +17596,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
17572
17596
  default: () => [F]
17573
17597
  })])]);
17574
17598
  }
17575
- function P(O) {
17599
+ function N(O) {
17576
17600
  var $;
17577
17601
  let F = "";
17578
17602
  return O.id || (F += " ant-table-row-create"), O.id === (($ = a.getSelectedVarCatalog) == null ? void 0 : $.id) && (F += " ant-table-row-selected "), F;
@@ -17591,7 +17615,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
17591
17615
  rowKey: "id",
17592
17616
  dataSource: c.value,
17593
17617
  loading: n.value,
17594
- rowClassName: P,
17618
+ rowClassName: N,
17595
17619
  rowSelection: g.value,
17596
17620
  customRow: (O) => ({
17597
17621
  onClick: () => M(O)
@@ -17932,15 +17956,15 @@ const KgWarehouse$1 = "", getProps = () => ({
17932
17956
  var A;
17933
17957
  const k = (A = s.value) == null ? void 0 : A.toUpperCase();
17934
17958
  return u.value.filter((C) => {
17935
- var M, w, I, R, P, O;
17936
- return ((w = (M = C.whDsc) == null ? void 0 : M.toUpperCase()) == null ? void 0 : w.includes(k)) || ((R = (I = C.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : R.includes(k)) || ((O = (P = C.adrId) == null ? void 0 : P.toUpperCase()) == null ? void 0 : O.includes(k));
17959
+ var M, w, I, R, N, O;
17960
+ return ((w = (M = C.whDsc) == null ? void 0 : M.toUpperCase()) == null ? void 0 : w.includes(k)) || ((R = (I = C.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : R.includes(k)) || ((O = (N = C.adrId) == null ? void 0 : N.toUpperCase()) == null ? void 0 : O.includes(k));
17937
17961
  });
17938
17962
  }), g = computed(() => {
17939
17963
  var k;
17940
17964
  return ((k = r.option.value.KgWarehouse) == null ? void 0 : k.on) !== !1;
17941
17965
  });
17942
17966
  watch(a.visible, (k) => {
17943
- !g.value || (k ? E() : _());
17967
+ !g.value || (k ? y() : _());
17944
17968
  }, {
17945
17969
  immediate: !0
17946
17970
  }), onMounted(() => {
@@ -17949,7 +17973,7 @@ const KgWarehouse$1 = "", getProps = () => ({
17949
17973
  function b() {
17950
17974
  !g.value || a.store.setVisible(!0);
17951
17975
  }
17952
- function E() {
17976
+ function y() {
17953
17977
  o.value = a.warehouse.value, m();
17954
17978
  }
17955
17979
  function _() {
@@ -17987,7 +18011,7 @@ const KgWarehouse$1 = "", getProps = () => ({
17987
18011
  l.value = !1;
17988
18012
  }
17989
18013
  }
17990
- function y(k, A) {
18014
+ function E(k, A) {
17991
18015
  var C;
17992
18016
  switch (k.detail) {
17993
18017
  case 1:
@@ -18050,7 +18074,7 @@ const KgWarehouse$1 = "", getProps = () => ({
18050
18074
  var A;
18051
18075
  return {
18052
18076
  class: k.id === ((A = o.value) == null ? void 0 : A.id) ? "selected" : "",
18053
- onClick: (C) => y(C, k)
18077
+ onClick: (C) => E(C, k)
18054
18078
  };
18055
18079
  }
18056
18080
  }, null)]
@@ -18170,6 +18194,7 @@ export {
18170
18194
  VarVariableConfig,
18171
18195
  VarVariableInput,
18172
18196
  WhDTO,
18197
+ __KG__RESPONSE__,
18173
18198
  createKgWarehouseGuard,
18174
18199
  httpClient,
18175
18200
  keys$1 as keys,