@kengic/vue 0.6.2-beta.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ var Ee = Object.defineProperty;
2
2
  var ke = (e, t, r) => t in e ? Ee(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var d = (e, t, r) => (ke(e, typeof t != "symbol" ? t + "" : t, r), r);
4
4
  import { h, nextTick, createVNode, defineComponent, toRaw, unref, inject, getCurrentInstance, markRaw, ref, watch, reactive, effectScope, isRef, isReactive, toRef, computed, onUnmounted, toRefs, Fragment, isVNode, createTextVNode, provide, onMounted, mergeProps, Teleport, getCurrentScope, onScopeDispose } from "vue";
5
- import { Modal, Spin, Tooltip, Select, SelectOption, Button, Progress, Form, Checkbox, Divider, Row, Col, DatePicker, Input, InputNumber, Switch, message, Drawer, Tag, Tabs, Dropdown, Menu, Table, Pagination, Upload, ConfigProvider, Transfer, Radio, Textarea, Card, TabPane } from "ant-design-vue";
5
+ import { Modal, Spin, Tooltip, Select, SelectOption, Button, Progress, Form, Checkbox, Divider, Row, Col, DatePicker, Input, InputNumber, Switch, message, Drawer, Tag, Tabs, Dropdown, Menu, Table, Pagination, TableSummary, Upload, ConfigProvider, Transfer, Radio, Textarea, Card, TabPane } from "ant-design-vue";
6
6
  const index$7 = "";
7
7
  let _httpClient = null;
8
8
  function setupHttpClient(e) {
@@ -2177,9 +2177,9 @@ setTwoToneColor("#1890ff");
2177
2177
  var Icon$1 = function(t, r) {
2178
2178
  var a, n = _objectSpread$k({}, t, r.attrs), o = n.class, i = n.icon, s = n.spin, l = n.rotate, u = n.tabindex, c = n.twoToneColor, g = n.onClick, p = _objectWithoutProperties(n, _excluded), m = (a = {
2179
2179
  anticon: !0
2180
- }, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, o, o), a), _ = s === "" || !!s || i.name === "loading" ? "anticon-spin" : "", b = u;
2181
- b === void 0 && g && (b = -1, p.tabindex = b);
2182
- var v = l ? {
2180
+ }, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, o, o), a), _ = s === "" || !!s || i.name === "loading" ? "anticon-spin" : "", v = u;
2181
+ v === void 0 && g && (v = -1, p.tabindex = v);
2182
+ var b = l ? {
2183
2183
  msTransform: "rotate(".concat(l, "deg)"),
2184
2184
  transform: "rotate(".concat(l, "deg)")
2185
2185
  } : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), E = C[0], T = C[1];
@@ -2194,7 +2194,7 @@ var Icon$1 = function(t, r) {
2194
2194
  icon: i,
2195
2195
  primaryColor: E,
2196
2196
  secondaryColor: T,
2197
- style: v
2197
+ style: b
2198
2198
  }, null)]);
2199
2199
  };
2200
2200
  Icon$1.props = {
@@ -2991,38 +2991,38 @@ function iconToSVG(e, t) {
2991
2991
  };
2992
2992
  let o = r.body;
2993
2993
  [r, a].forEach((_) => {
2994
- const b = [], v = _.hFlip, y = _.vFlip;
2994
+ const v = [], b = _.hFlip, y = _.vFlip;
2995
2995
  let C = _.rotate;
2996
- v ? y ? C += 2 : (b.push(
2996
+ b ? y ? C += 2 : (v.push(
2997
2997
  "translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
2998
- ), b.push("scale(-1 1)"), n.top = n.left = 0) : y && (b.push(
2998
+ ), v.push("scale(-1 1)"), n.top = n.left = 0) : y && (v.push(
2999
2999
  "translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
3000
- ), b.push("scale(1 -1)"), n.top = n.left = 0);
3000
+ ), v.push("scale(1 -1)"), n.top = n.left = 0);
3001
3001
  let E;
3002
3002
  switch (C < 0 && (C -= Math.floor(C / 4) * 4), C = C % 4, C) {
3003
3003
  case 1:
3004
- E = n.height / 2 + n.top, b.unshift(
3004
+ E = n.height / 2 + n.top, v.unshift(
3005
3005
  "rotate(90 " + E.toString() + " " + E.toString() + ")"
3006
3006
  );
3007
3007
  break;
3008
3008
  case 2:
3009
- b.unshift(
3009
+ v.unshift(
3010
3010
  "rotate(180 " + (n.width / 2 + n.left).toString() + " " + (n.height / 2 + n.top).toString() + ")"
3011
3011
  );
3012
3012
  break;
3013
3013
  case 3:
3014
- E = n.width / 2 + n.left, b.unshift(
3014
+ E = n.width / 2 + n.left, v.unshift(
3015
3015
  "rotate(-90 " + E.toString() + " " + E.toString() + ")"
3016
3016
  );
3017
3017
  break;
3018
3018
  }
3019
- C % 2 === 1 && (n.left !== n.top && (E = n.left, n.left = n.top, n.top = E), n.width !== n.height && (E = n.width, n.width = n.height, n.height = E)), b.length && (o = '<g transform="' + b.join(" ") + '">' + o + "</g>");
3019
+ C % 2 === 1 && (n.left !== n.top && (E = n.left, n.left = n.top, n.top = E), n.width !== n.height && (E = n.width, n.width = n.height, n.height = E)), v.length && (o = '<g transform="' + v.join(" ") + '">' + o + "</g>");
3020
3020
  });
3021
3021
  const i = a.width, s = a.height, l = n.width, u = n.height;
3022
3022
  let c, g;
3023
3023
  i === null ? (g = s === null ? "1em" : s === "auto" ? u : s, c = calculateSize(g, l / u)) : (c = i === "auto" ? l : i, g = s === null ? calculateSize(c, u / l) : s === "auto" ? u : s);
3024
- const p = {}, m = (_, b) => {
3025
- isUnsetKeyword(b) || (p[_] = b.toString());
3024
+ const p = {}, m = (_, v) => {
3025
+ isUnsetKeyword(v) || (p[_] = v.toString());
3026
3026
  };
3027
3027
  return m("width", c), m("height", g), p.viewBox = n.left.toString() + " " + n.top.toString() + " " + l.toString() + " " + u.toString(), {
3028
3028
  attributes: p,
@@ -3310,12 +3310,12 @@ function sendQuery(e, t, r, a) {
3310
3310
  function _() {
3311
3311
  g && (clearTimeout(g), g = null);
3312
3312
  }
3313
- function b() {
3313
+ function v() {
3314
3314
  l === "pending" && (l = "aborted"), _(), p.forEach((k) => {
3315
3315
  k.status === "pending" && (k.status = "aborted");
3316
3316
  }), p = [];
3317
3317
  }
3318
- function v(k, V) {
3318
+ function b(k, V) {
3319
3319
  V && (m = []), typeof k == "function" && m.push(k);
3320
3320
  }
3321
3321
  function y() {
@@ -3325,8 +3325,8 @@ function sendQuery(e, t, r, a) {
3325
3325
  status: l,
3326
3326
  queriesSent: u,
3327
3327
  queriesPending: p.length,
3328
- subscribe: v,
3329
- abort: b
3328
+ subscribe: b,
3329
+ abort: v
3330
3330
  };
3331
3331
  }
3332
3332
  function C() {
@@ -3765,10 +3765,10 @@ function fixSize(e) {
3765
3765
  }
3766
3766
  const render = (e, t) => {
3767
3767
  const r = mergeCustomisations(defaultExtendedIconCustomisations, t), a = { ...svgDefaults }, n = t.mode || "svg", o = {}, i = t.style, s = typeof i == "object" && !(i instanceof Array) ? i : {};
3768
- for (let b in t) {
3769
- const v = t[b];
3770
- if (v !== void 0)
3771
- switch (b) {
3768
+ for (let v in t) {
3769
+ const b = t[v];
3770
+ if (b !== void 0)
3771
+ switch (v) {
3772
3772
  case "icon":
3773
3773
  case "style":
3774
3774
  case "onLoad":
@@ -3777,24 +3777,24 @@ const render = (e, t) => {
3777
3777
  case "inline":
3778
3778
  case "hFlip":
3779
3779
  case "vFlip":
3780
- r[b] = v === !0 || v === "true" || v === 1;
3780
+ r[v] = b === !0 || b === "true" || b === 1;
3781
3781
  break;
3782
3782
  case "flip":
3783
- typeof v == "string" && flipFromString(r, v);
3783
+ typeof b == "string" && flipFromString(r, b);
3784
3784
  break;
3785
3785
  case "color":
3786
- o.color = v;
3786
+ o.color = b;
3787
3787
  break;
3788
3788
  case "rotate":
3789
- typeof v == "string" ? r[b] = rotateFromString(v) : typeof v == "number" && (r[b] = v);
3789
+ typeof b == "string" ? r[v] = rotateFromString(b) : typeof b == "number" && (r[v] = b);
3790
3790
  break;
3791
3791
  case "ariaHidden":
3792
3792
  case "aria-hidden":
3793
- v !== !0 && v !== "true" && delete a["aria-hidden"];
3793
+ b !== !0 && b !== "true" && delete a["aria-hidden"];
3794
3794
  break;
3795
3795
  default: {
3796
- const y = customisationAliases[b];
3797
- y ? (v === !0 || v === "true" || v === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[b] === void 0 && (a[b] = v);
3796
+ const y = customisationAliases[v];
3797
+ y ? (b === !0 || b === "true" || b === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[v] === void 0 && (a[v] = b);
3798
3798
  }
3799
3799
  }
3800
3800
  }
@@ -3804,8 +3804,8 @@ const render = (e, t) => {
3804
3804
  ...o,
3805
3805
  ...s
3806
3806
  }, Object.assign(a, u);
3807
- let b = 0, v = t.id;
3808
- return typeof v == "string" && (v = v.replace(/-/g, "_")), a.innerHTML = replaceIDs(l.body, v ? () => v + "ID" + b++ : "iconifyVue"), h("svg", a);
3807
+ let v = 0, b = t.id;
3808
+ return typeof b == "string" && (b = b.replace(/-/g, "_")), a.innerHTML = replaceIDs(l.body, b ? () => b + "ID" + v++ : "iconifyVue"), h("svg", a);
3809
3809
  }
3810
3810
  const { body: c, width: g, height: p } = e, m = n === "mask" || (n === "bg" ? !1 : c.indexOf("currentColor") !== -1), _ = iconToHTML(c, {
3811
3811
  ...u,
@@ -3920,7 +3920,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3920
3920
  (function(r, a) {
3921
3921
  e.exports = a();
3922
3922
  })(commonjsGlobal, function() {
3923
- var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", m = "year", _ = "date", b = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
3923
+ var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", m = "year", _ = "date", v = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
3924
3924
  var N = ["th", "st", "nd", "rd"], $ = R % 100;
3925
3925
  return "[" + R + (N[($ - 20) % 10] || N[$] || N[0]) + "]";
3926
3926
  } }, E = function(R, N, $) {
@@ -3983,7 +3983,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3983
3983
  if (D instanceof Date)
3984
3984
  return new Date(D);
3985
3985
  if (typeof D == "string" && !/Z$/i.test(D)) {
3986
- var x = D.match(v);
3986
+ var x = D.match(b);
3987
3987
  if (x) {
3988
3988
  var H = x[2] - 1 || 0, Y = (x[7] || "0").substring(0, 3);
3989
3989
  return B ? new Date(Date.UTC(x[1], H, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Y)) : new Date(x[1], H, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Y);
@@ -3997,7 +3997,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3997
3997
  }, N.$utils = function() {
3998
3998
  return O;
3999
3999
  }, N.isValid = function() {
4000
- return this.$d.toString() !== b;
4000
+ return this.$d.toString() !== v;
4001
4001
  }, N.isSame = function($, w) {
4002
4002
  var D = A($);
4003
4003
  return this.startOf(w) <= D && D <= this.endOf(w);
@@ -4012,11 +4012,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4012
4012
  }, N.valueOf = function() {
4013
4013
  return this.$d.getTime();
4014
4014
  }, N.startOf = function($, w) {
4015
- var D = this, B = !!O.u(w) || w, x = O.p($), H = function(F, U) {
4016
- var z = O.w(D.$u ? Date.UTC(D.$y, U, F) : new Date(D.$y, U, F), D);
4017
- return B ? z : z.endOf(u);
4018
- }, Y = function(F, U) {
4019
- return O.w(D.toDate()[F].apply(D.toDate("s"), (B ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(U)), D);
4015
+ var D = this, B = !!O.u(w) || w, x = O.p($), H = function(L, F) {
4016
+ var G = O.w(D.$u ? Date.UTC(D.$y, F, L) : new Date(D.$y, F, L), D);
4017
+ return B ? G : G.endOf(u);
4018
+ }, Y = function(L, F) {
4019
+ return O.w(D.toDate()[L].apply(D.toDate("s"), (B ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(F)), D);
4020
4020
  }, q = this.$W, Z = this.$M, ae = this.$D, ne = "set" + (this.$u ? "UTC" : "");
4021
4021
  switch (x) {
4022
4022
  case m:
@@ -4024,8 +4024,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4024
4024
  case g:
4025
4025
  return B ? H(1, Z) : H(0, Z + 1);
4026
4026
  case c:
4027
- var ce = this.$locale().weekStart || 0, L = (q < ce ? q + 7 : q) - ce;
4028
- return H(B ? ae - L : ae + (6 - L), Z);
4027
+ var de = this.$locale().weekStart || 0, ge = (q < de ? q + 7 : q) - de;
4028
+ return H(B ? ae - ge : ae + (6 - ge), Z);
4029
4029
  case u:
4030
4030
  case _:
4031
4031
  return Y(ne + "Hours", 0);
@@ -4074,17 +4074,17 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4074
4074
  }, N.format = function($) {
4075
4075
  var w = this, D = this.$locale();
4076
4076
  if (!this.isValid())
4077
- return D.invalidDate || b;
4078
- var B = $ || "YYYY-MM-DDTHH:mm:ssZ", x = O.z(this), H = this.$H, Y = this.$m, q = this.$M, Z = D.weekdays, ae = D.months, ne = function(U, z, J, X) {
4079
- return U && (U[z] || U(w, B)) || J[z].slice(0, X);
4080
- }, ce = function(U) {
4081
- return O.s(H % 12 || 12, U, "0");
4082
- }, L = D.meridiem || function(U, z, J) {
4083
- var X = U < 12 ? "AM" : "PM";
4084
- return J ? X.toLowerCase() : X;
4085
- }, F = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: q + 1, MM: O.s(q + 1, 2, "0"), MMM: ne(D.monthsShort, q, ae, 3), MMMM: ne(ae, q), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: ne(D.weekdaysMin, this.$W, Z, 2), ddd: ne(D.weekdaysShort, this.$W, Z, 3), dddd: Z[this.$W], H: String(H), HH: O.s(H, 2, "0"), h: ce(1), hh: ce(2), a: L(H, Y, !0), A: L(H, Y, !1), m: String(Y), mm: O.s(Y, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: x };
4086
- return B.replace(y, function(U, z) {
4087
- return z || F[U] || x.replace(":", "");
4077
+ return D.invalidDate || v;
4078
+ var B = $ || "YYYY-MM-DDTHH:mm:ssZ", x = O.z(this), H = this.$H, Y = this.$m, q = this.$M, Z = D.weekdays, ae = D.months, ne = function(F, G, z, J) {
4079
+ return F && (F[G] || F(w, B)) || z[G].slice(0, J);
4080
+ }, de = function(F) {
4081
+ return O.s(H % 12 || 12, F, "0");
4082
+ }, ge = D.meridiem || function(F, G, z) {
4083
+ var J = F < 12 ? "AM" : "PM";
4084
+ return z ? J.toLowerCase() : J;
4085
+ }, L = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: q + 1, MM: O.s(q + 1, 2, "0"), MMM: ne(D.monthsShort, q, ae, 3), MMMM: ne(ae, q), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: ne(D.weekdaysMin, this.$W, Z, 2), ddd: ne(D.weekdaysShort, this.$W, Z, 3), dddd: Z[this.$W], H: String(H), HH: O.s(H, 2, "0"), h: de(1), hh: de(2), a: ge(H, Y, !0), A: ge(H, Y, !1), m: String(Y), mm: O.s(Y, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: x };
4086
+ return B.replace(y, function(F, G) {
4087
+ return G || L[F] || x.replace(":", "");
4088
4088
  });
4089
4089
  }, N.utcOffset = function() {
4090
4090
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
@@ -4162,17 +4162,17 @@ function filesize(e, {
4162
4162
  fullform: p = !1,
4163
4163
  fullforms: m = [],
4164
4164
  exponent: _ = -1,
4165
- roundingMethod: b = ROUND,
4166
- precision: v = 0
4165
+ roundingMethod: v = ROUND,
4166
+ precision: b = 0
4167
4167
  } = {}) {
4168
4168
  let y = _, C = Number(e), E = [], T = 0, I = EMPTY;
4169
4169
  a === -1 && c.length === 0 ? (a = 10, c = JEDEC) : a === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, a = c === IEC ? 2 : 10) : (a = a === 2 ? 2 : 10, c = a === 10 || c === JEDEC ? JEDEC : IEC);
4170
- const k = a === 10 ? 1e3 : 1024, V = p === !0, M = C < 0, A = Math[b];
4170
+ const k = a === 10 ? 1e3 : 1024, V = p === !0, M = C < 0, A = Math[v];
4171
4171
  if (typeof e != "bigint" && isNaN(e))
4172
4172
  throw new TypeError(INVALID_NUMBER);
4173
4173
  if (typeof A !== FUNCTION)
4174
4174
  throw new TypeError(INVALID_ROUND);
4175
- if (M && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(k)), y < 0 && (y = 0)), y > 8 && (v > 0 && (v += 8 - y), y = 8), g === EXPONENT)
4175
+ if (M && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(k)), y < 0 && (y = 0)), y > 8 && (b > 0 && (b += 8 - y), y = 8), g === EXPONENT)
4176
4176
  return y;
4177
4177
  if (C === 0)
4178
4178
  E[0] = 0, I = E[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
@@ -4181,7 +4181,7 @@ function filesize(e, {
4181
4181
  const O = Math.pow(10, y > 0 ? n : 0);
4182
4182
  E[0] = A(T * O) / O, E[0] === k && y < 8 && _ === -1 && (E[0] = 1, y++), I = E[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
4183
4183
  }
4184
- if (M && (E[0] = -E[0]), v > 0 && (E[0] = E[0].toPrecision(v)), E[1] = u[E[1]] || E[1], o === !0 ? E[0] = E[0].toLocaleString() : o.length > 0 ? E[0] = E[0].toLocaleString(o, i) : s.length > 0 && (E[0] = E[0].toString().replace(PERIOD, s)), r && Number.isInteger(E[0]) === !1 && n > 0) {
4184
+ if (M && (E[0] = -E[0]), b > 0 && (E[0] = E[0].toPrecision(b)), E[1] = u[E[1]] || E[1], o === !0 ? E[0] = E[0].toLocaleString() : o.length > 0 ? E[0] = E[0].toLocaleString(o, i) : s.length > 0 && (E[0] = E[0].toString().replace(PERIOD, s)), r && Number.isInteger(E[0]) === !1 && n > 0) {
4185
4185
  const O = s || PERIOD, K = E[0].toString().split(O), P = K[1] || EMPTY, R = P.length, N = n - R;
4186
4186
  E[0] = `${K[0]}${O}${P.padEnd(R + N, ZERO)}`;
4187
4187
  }
@@ -5234,14 +5234,14 @@ function baseClone(e, t, r, a, n, o) {
5234
5234
  var m = o.get(e);
5235
5235
  if (m)
5236
5236
  return m;
5237
- o.set(e, i), isSet$1(e) ? e.forEach(function(v) {
5238
- i.add(baseClone(v, t, r, v, e, o));
5239
- }) : isMap$1(e) && e.forEach(function(v, y) {
5240
- i.set(y, baseClone(v, t, r, y, e, o));
5237
+ o.set(e, i), isSet$1(e) ? e.forEach(function(b) {
5238
+ i.add(baseClone(b, t, r, b, e, o));
5239
+ }) : isMap$1(e) && e.forEach(function(b, y) {
5240
+ i.set(y, baseClone(b, t, r, y, e, o));
5241
5241
  });
5242
- var _ = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, b = c ? void 0 : _(e);
5243
- return arrayEach(b || e, function(v, y) {
5244
- b && (y = v, v = e[y]), assignValue(i, y, baseClone(v, t, r, y, e, o));
5242
+ var _ = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, v = c ? void 0 : _(e);
5243
+ return arrayEach(v || e, function(b, y) {
5244
+ v && (y = b, b = e[y]), assignValue(i, y, baseClone(b, t, r, y, e, o));
5245
5245
  }), i;
5246
5246
  }
5247
5247
  var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
@@ -5281,11 +5281,11 @@ function equalArrays(e, t, r, a, n, o) {
5281
5281
  return u == t && c == e;
5282
5282
  var g = -1, p = !0, m = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
5283
5283
  for (o.set(e, t), o.set(t, e); ++g < s; ) {
5284
- var _ = e[g], b = t[g];
5284
+ var _ = e[g], v = t[g];
5285
5285
  if (a)
5286
- var v = i ? a(b, _, g, t, e, o) : a(_, b, g, e, t, o);
5287
- if (v !== void 0) {
5288
- if (v)
5286
+ var b = i ? a(v, _, g, t, e, o) : a(_, v, g, e, t, o);
5287
+ if (b !== void 0) {
5288
+ if (b)
5289
5289
  continue;
5290
5290
  p = !1;
5291
5291
  break;
@@ -5298,7 +5298,7 @@ function equalArrays(e, t, r, a, n, o) {
5298
5298
  p = !1;
5299
5299
  break;
5300
5300
  }
5301
- } else if (!(_ === b || n(_, b, r, a, o))) {
5301
+ } else if (!(_ === v || n(_, v, r, a, o))) {
5302
5302
  p = !1;
5303
5303
  break;
5304
5304
  }
@@ -5366,24 +5366,24 @@ function equalObjects(e, t, r, a, n, o) {
5366
5366
  var m = o.get(e), _ = o.get(t);
5367
5367
  if (m && _)
5368
5368
  return m == t && _ == e;
5369
- var b = !0;
5369
+ var v = !0;
5370
5370
  o.set(e, t), o.set(t, e);
5371
- for (var v = i; ++g < l; ) {
5371
+ for (var b = i; ++g < l; ) {
5372
5372
  p = s[g];
5373
5373
  var y = e[p], C = t[p];
5374
5374
  if (a)
5375
5375
  var E = i ? a(C, y, p, t, e, o) : a(y, C, p, e, t, o);
5376
5376
  if (!(E === void 0 ? y === C || n(y, C, r, a, o) : E)) {
5377
- b = !1;
5377
+ v = !1;
5378
5378
  break;
5379
5379
  }
5380
- v || (v = p == "constructor");
5380
+ b || (b = p == "constructor");
5381
5381
  }
5382
- if (b && !v) {
5382
+ if (v && !b) {
5383
5383
  var T = e.constructor, I = t.constructor;
5384
- T != I && "constructor" in e && "constructor" in t && !(typeof T == "function" && T instanceof T && typeof I == "function" && I instanceof I) && (b = !1);
5384
+ T != I && "constructor" in e && "constructor" in t && !(typeof T == "function" && T instanceof T && typeof I == "function" && I instanceof I) && (v = !1);
5385
5385
  }
5386
- return o.delete(e), o.delete(t), b;
5386
+ return o.delete(e), o.delete(t), v;
5387
5387
  }
5388
5388
  var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
5389
5389
  function baseIsEqualDeep(e, t, r, a, n, o) {
@@ -5400,8 +5400,8 @@ function baseIsEqualDeep(e, t, r, a, n, o) {
5400
5400
  if (!(r & COMPARE_PARTIAL_FLAG$2)) {
5401
5401
  var m = c && hasOwnProperty.call(e, "__wrapped__"), _ = g && hasOwnProperty.call(t, "__wrapped__");
5402
5402
  if (m || _) {
5403
- var b = m ? e.value() : e, v = _ ? t.value() : t;
5404
- return o || (o = new Stack()), n(b, v, r, a, o);
5403
+ var v = m ? e.value() : e, b = _ ? t.value() : t;
5404
+ return o || (o = new Stack()), n(v, b, r, a, o);
5405
5405
  }
5406
5406
  }
5407
5407
  return p ? (o || (o = new Stack()), equalObjects(e, t, r, a, n, o)) : !1;
@@ -5597,8 +5597,8 @@ function baseIntersection(e, t, r) {
5597
5597
  var m = c[g], _ = t ? t(m) : m;
5598
5598
  if (m = r || m !== 0 ? m : 0, !(p ? cacheHas(p, _) : a(u, _, r))) {
5599
5599
  for (i = o; --i; ) {
5600
- var b = s[i];
5601
- if (!(b ? cacheHas(b, _) : a(e[i], _, r)))
5600
+ var v = s[i];
5601
+ if (!(v ? cacheHas(v, _) : a(e[i], _, r)))
5602
5602
  continue e;
5603
5603
  }
5604
5604
  p && p.push(_), u.push(m);
@@ -6423,8 +6423,8 @@ class KgVarUtil {
6423
6423
  const _ = i.store.getVarPossibility(t, r);
6424
6424
  switch (_ == null ? void 0 : _.val_data_type) {
6425
6425
  case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
6426
- const b = m.map((v) => Number(v));
6427
- if (b.some((v) => Number.isNaN(b))) {
6426
+ const v = m.map((b) => Number(b));
6427
+ if (v.some((b) => Number.isNaN(v))) {
6428
6428
  Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
6429
6429
  frm_id: t,
6430
6430
  var_nam: r,
@@ -6433,13 +6433,13 @@ class KgVarUtil {
6433
6433
  });
6434
6434
  return;
6435
6435
  }
6436
- return b;
6436
+ return v;
6437
6437
  }
6438
6438
  case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
6439
- return m.map((b) => Boolean(b));
6439
+ return m.map((v) => Boolean(v));
6440
6440
  case KG_POSSIBILITY_DATA_TYPE.STRING:
6441
6441
  default:
6442
- return m.map((b) => String(b));
6442
+ return m.map((v) => String(v));
6443
6443
  }
6444
6444
  } catch {
6445
6445
  Logger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
@@ -6581,8 +6581,8 @@ function createSetupStore(e, t, r = {}, a, n) {
6581
6581
  let u, c, g = markRaw([]), p = markRaw([]), m;
6582
6582
  const _ = a.state.value[e];
6583
6583
  !i && !_ && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
6584
- const b = ref({});
6585
- function v(M) {
6584
+ const v = ref({});
6585
+ function b(M) {
6586
6586
  let A;
6587
6587
  u = c = !1, process.env.NODE_ENV !== "production" && (m = []), typeof M == "function" ? (M(a.state.value[e]), A = {
6588
6588
  type: MutationType.patchFunction,
@@ -6633,12 +6633,12 @@ function createSetupStore(e, t, r = {}, a, n) {
6633
6633
  actions: {},
6634
6634
  getters: {},
6635
6635
  state: [],
6636
- hotState: b
6636
+ hotState: v
6637
6637
  }), I = {
6638
6638
  _p: a,
6639
6639
  $id: e,
6640
6640
  $onAction: addSubscription.bind(null, p),
6641
- $patch: v,
6641
+ $patch: b,
6642
6642
  $reset: y,
6643
6643
  $subscribe(M, A = {}) {
6644
6644
  const O = addSubscription(g, M, A.detached, () => K()), K = o.run(() => watch(() => a.state.value[e], (P) => {
@@ -6663,7 +6663,7 @@ function createSetupStore(e, t, r = {}, a, n) {
6663
6663
  for (const M in V) {
6664
6664
  const A = V[M];
6665
6665
  if (isRef(A) && !isComputed(A) || isReactive(A))
6666
- process.env.NODE_ENV !== "production" && n ? set(b.value, M, toRef(V, M)) : i || (_ && shouldHydrate(A) && (isRef(A) ? A.value = _[M] : mergeReactiveObjects(A, _[M])), a.state.value[e][M] = A), process.env.NODE_ENV !== "production" && T.state.push(M);
6666
+ process.env.NODE_ENV !== "production" && n ? set(v.value, M, toRef(V, M)) : i || (_ && shouldHydrate(A) && (isRef(A) ? A.value = _[M] : mergeReactiveObjects(A, _[M])), a.state.value[e][M] = A), process.env.NODE_ENV !== "production" && T.state.push(M);
6667
6667
  else if (typeof A == "function") {
6668
6668
  const O = process.env.NODE_ENV !== "production" && n ? A : E(M, A);
6669
6669
  V[M] = O, process.env.NODE_ENV !== "production" && (T.actions[M] = A), s.actions[M] = A;
@@ -6671,11 +6671,11 @@ function createSetupStore(e, t, r = {}, a, n) {
6671
6671
  process.env.NODE_ENV !== "production" && isComputed(A) && (T.getters[M] = i ? r.getters[M] : A, IS_CLIENT && (V._getters || (V._getters = markRaw([]))).push(M));
6672
6672
  }
6673
6673
  if (assign$1(k, V), assign$1(toRaw(k), V), Object.defineProperty(k, "$state", {
6674
- get: () => process.env.NODE_ENV !== "production" && n ? b.value : a.state.value[e],
6674
+ get: () => process.env.NODE_ENV !== "production" && n ? v.value : a.state.value[e],
6675
6675
  set: (M) => {
6676
6676
  if (process.env.NODE_ENV !== "production" && n)
6677
6677
  throw new Error("cannot set hotState");
6678
- v((A) => {
6678
+ b((A) => {
6679
6679
  assign$1(A, M);
6680
6680
  });
6681
6681
  }
@@ -6986,7 +6986,7 @@ function useKgAppSelect() {
6986
6986
  };
6987
6987
  }
6988
6988
  const KgAppSelect$1 = "";
6989
- function _isSlot$9(e) {
6989
+ function _isSlot$a(e) {
6990
6990
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
6991
6991
  }
6992
6992
  const getProps$z = () => ({
@@ -7026,7 +7026,7 @@ const getProps$z = () => ({
7026
7026
  let o;
7027
7027
  return createVNode(SelectOption, {
7028
7028
  value: a
7029
- }, _isSlot$9(o = t.t(n)) ? o : {
7029
+ }, _isSlot$a(o = t.t(n)) ? o : {
7030
7030
  default: () => [o]
7031
7031
  });
7032
7032
  })]),
@@ -7341,10 +7341,10 @@ const KgModal_Close = "", getProps$y = () => ({
7341
7341
  function _(C) {
7342
7342
  p(C), g();
7343
7343
  }
7344
- function b(C) {
7345
- C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX, i = C.pageY, a = e.kgWidth, n = e.kgHeight, s = v(document.documentElement, "mousemove", m), l = v(document.documentElement, "mouseup", _));
7344
+ function v(C) {
7345
+ C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX, i = C.pageY, a = e.kgWidth, n = e.kgHeight, s = b(document.documentElement, "mousemove", m), l = b(document.documentElement, "mouseup", _));
7346
7346
  }
7347
- function v(C, E, T) {
7347
+ function b(C, E, T) {
7348
7348
  return C.addEventListener(E, T), {
7349
7349
  remove: () => C.removeEventListener(E, T)
7350
7350
  };
@@ -7360,7 +7360,7 @@ const KgModal_Close = "", getProps$y = () => ({
7360
7360
  }, [createVNode("div", {
7361
7361
  class: "kg-resizable-handle",
7362
7362
  onClick: y,
7363
- onMousedown: b
7363
+ onMousedown: v
7364
7364
  }, [createVNode("div", {
7365
7365
  class: "kg-resizable-handle-line"
7366
7366
  }, null)]), (C = r.default) == null ? void 0 : C.call(r)]);
@@ -7518,12 +7518,12 @@ function createStore(e, t, r) {
7518
7518
  var p = slice(arguments, 0), m = this;
7519
7519
  function _() {
7520
7520
  if (!!c)
7521
- return each$6(arguments, function(v, y) {
7522
- p[y] = v;
7521
+ return each$6(arguments, function(b, y) {
7522
+ p[y] = b;
7523
7523
  }), c.apply(m, p);
7524
7524
  }
7525
- var b = [_].concat(p);
7526
- return l.apply(m, b);
7525
+ var v = [_].concat(p);
7526
+ return l.apply(m, v);
7527
7527
  };
7528
7528
  },
7529
7529
  _serialize: function(l) {
@@ -8539,15 +8539,15 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8539
8539
  varButtons: p,
8540
8540
  varButtonConfig: m,
8541
8541
  varSubmitConfig: _,
8542
- varSubmitFields: b,
8543
- varProfile: v,
8542
+ varSubmitFields: v,
8543
+ varProfile: b,
8544
8544
  varProfileConfig: y,
8545
8545
  varGrid: C,
8546
8546
  varGridConfig: E
8547
8547
  } = await GetAll({ params: { frm_id: e } });
8548
- this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varButtonConfigMap.set(e, m != null ? m : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(_)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(b)), this.varProfileConfigMap.set(e, transformVarProfileConfig(y != null ? y : null)), this.varProfileMap.set(e, {
8549
- varProfile: v != null ? v : null,
8550
- currentVarProfileMasterID: (a = (r = (t = v == null ? void 0 : v.varProfileMasters) == null ? void 0 : t.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? a : null
8548
+ this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varButtonConfigMap.set(e, m != null ? m : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(_)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(v)), this.varProfileConfigMap.set(e, transformVarProfileConfig(y != null ? y : null)), this.varProfileMap.set(e, {
8549
+ varProfile: b != null ? b : null,
8550
+ currentVarProfileMasterID: (a = (r = (t = b == null ? void 0 : b.varProfileMasters) == null ? void 0 : t.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? a : null
8551
8551
  }), this.varGridConfigMap.set(e, transformVarGridConfig(E != null ? E : null)), this.varGridMap.set(e, {
8552
8552
  varGrid: transformVarGridDTO(C),
8553
8553
  currentVarGridMasterID: (i = (o = (n = C == null ? void 0 : C.varGridMasters) == null ? void 0 : n.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? i : null
@@ -8701,7 +8701,7 @@ function useKgVar(e, t, r = 0) {
8701
8701
  const l = (H) => computed(() => {
8702
8702
  var Y, q, Z;
8703
8703
  return (Z = (q = (Y = s.getVarCatalog(i, H)) == null ? void 0 : Y.var_text) != null ? q : H) != null ? Z : "";
8704
- }), u = computed(() => s.isRetrievingVar(i)), c = computed(() => s.isRetrievingVarProfileMaster(i)), g = computed(() => s.isRetrievingVarGridMaster(i)), p = computed(() => s.isCreating(i)), m = computed(() => s.isCreatingRequesting(i)), _ = computed(() => s.isUpdating(i)), b = computed(() => s.isUpdatingRequesting(i)), v = computed(() => s.isCopying(i)), y = computed(() => s.isCopyingRequesting(i)), C = computed(() => s.isDeleting(i)), E = computed(() => s.isDeletingRequesting(i)), T = computed(() => s.isOtherRequesting(i)), I = computed(() => s.getVarButtons(i)), k = computed(() => s.getVarButtonSearch(i)), V = computed(() => s.getVarButtonCreate(i)), M = computed(() => s.getVarButtonUpdate(i)), A = computed(() => s.getVarButtonCopy(i)), O = computed(() => s.getVarButtonDelete(i)), K = computed(() => s.getVarProfileMasters(i)), P = computed(() => s.getCurrentVarProfileMaster(i)), R = computed(() => s.getCurrentVarProfileMasterID(i)), N = computed(() => {
8704
+ }), u = computed(() => s.isRetrievingVar(i)), c = computed(() => s.isRetrievingVarProfileMaster(i)), g = computed(() => s.isRetrievingVarGridMaster(i)), p = computed(() => s.isCreating(i)), m = computed(() => s.isCreatingRequesting(i)), _ = computed(() => s.isUpdating(i)), v = computed(() => s.isUpdatingRequesting(i)), b = computed(() => s.isCopying(i)), y = computed(() => s.isCopyingRequesting(i)), C = computed(() => s.isDeleting(i)), E = computed(() => s.isDeletingRequesting(i)), T = computed(() => s.isOtherRequesting(i)), I = computed(() => s.getVarButtons(i)), k = computed(() => s.getVarButtonSearch(i)), V = computed(() => s.getVarButtonCreate(i)), M = computed(() => s.getVarButtonUpdate(i)), A = computed(() => s.getVarButtonCopy(i)), O = computed(() => s.getVarButtonDelete(i)), K = computed(() => s.getVarProfileMasters(i)), P = computed(() => s.getCurrentVarProfileMaster(i)), R = computed(() => s.getCurrentVarProfileMasterID(i)), N = computed(() => {
8705
8705
  var H, Y;
8706
8706
  return (Y = (H = P.value) == null ? void 0 : H.varProfileDetails) != null ? Y : null;
8707
8707
  }), $ = computed(() => s.getVarGridConfig(i)), w = computed(() => s.getVarGridMasters(i)), D = computed(() => s.getCurrentVarGridMaster(i)), B = computed(() => s.getSystemVarGridDetails(i)), x = computed(() => s.getCurrentVarGridDetails(i));
@@ -8714,8 +8714,8 @@ function useKgVar(e, t, r = 0) {
8714
8714
  isCreating: p,
8715
8715
  isCreatingRequesting: m,
8716
8716
  isUpdating: _,
8717
- isUpdatingRequesting: b,
8718
- isCopying: v,
8717
+ isUpdatingRequesting: v,
8718
+ isCopying: b,
8719
8719
  isCopyingRequesting: y,
8720
8720
  isDeleting: C,
8721
8721
  isDeletingRequesting: E,
@@ -8742,7 +8742,7 @@ function useKgVar(e, t, r = 0) {
8742
8742
  throw (n = (a = o == null ? void 0 : o.message) == null ? void 0 : a.includes) != null && n.call(a, "getActivePinia was called with no active Pinia.") && (o.message = "\u5728\u7EC4\u4EF6\u5916\u8C03\u7528 useVar() \u65F6, \u9700\u8981\u5728\u51FD\u6570\u5185\u90E8\u8C03\u7528."), o;
8743
8743
  }
8744
8744
  }
8745
- const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
8745
+ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
8746
8746
  kgSlots: Object,
8747
8747
  KgBackgroundGray: Boolean,
8748
8748
  kgSubmitClass: String
@@ -8752,11 +8752,11 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
8752
8752
  setup(e, {
8753
8753
  slots: t
8754
8754
  }) {
8755
- provide(DI_KG_SLOTS, e.kgSlots);
8755
+ provide(DI_KG_VAR__KG_SLOTS, e.kgSlots);
8756
8756
  const r = useKgVar();
8757
8757
  KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE;
8758
8758
  const a = computed(() => r.store.getVarSubmitConfig(r.formID)), n = computed(() => r.store.getVarProfileConfig(r.formID)), o = computed(() => r.store.getVarButtonConfig(r.formID)), i = computed(() => {
8759
- var p, m, _, b;
8759
+ var p, m, _, v;
8760
8760
  switch (!0) {
8761
8761
  case r.isCreating.value:
8762
8762
  return ((p = a.value) == null ? void 0 : p.crt_flg) !== 0;
@@ -8765,7 +8765,7 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
8765
8765
  case r.isCopying.value:
8766
8766
  return ((_ = a.value) == null ? void 0 : _.cpy_flg) !== 0;
8767
8767
  case r.isDeleting.value:
8768
- return ((b = a.value) == null ? void 0 : b.del_flg) !== 0;
8768
+ return ((v = a.value) == null ? void 0 : v.del_flg) !== 0;
8769
8769
  }
8770
8770
  return !1;
8771
8771
  }), s = computed(() => {
@@ -8853,17 +8853,17 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
8853
8853
  var _;
8854
8854
  return ((_ = u == null ? void 0 : u.value) == null ? void 0 : _.mult_flg) === 1;
8855
8855
  }), g = computed(() => {
8856
- var _, b;
8857
- return (b = (_ = u == null ? void 0 : u.value) == null ? void 0 : _.ret_fld) != null ? b : "";
8856
+ var _, v;
8857
+ return (v = (_ = u == null ? void 0 : u.value) == null ? void 0 : _.ret_fld) != null ? v : "";
8858
8858
  });
8859
8859
  l.onRowDoubleClick(() => m());
8860
8860
  function p() {
8861
8861
  r("update:visible", !1);
8862
8862
  }
8863
8863
  function m() {
8864
- var _, b, v, y, C, E, T;
8864
+ var _, v, b, y, C, E, T;
8865
8865
  if (c.value) {
8866
- const I = (b = (_ = l.selectedRows) == null ? void 0 : _.value) != null ? b : [], k = (v = I.map((V) => V[g.value])) != null ? v : [];
8866
+ const I = (v = (_ = l.selectedRows) == null ? void 0 : _.value) != null ? v : [], k = (b = I.map((V) => V[g.value])) != null ? b : [];
8867
8867
  (!s || s(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
8868
8868
  } else {
8869
8869
  const I = (E = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? E : null, k = (T = I == null ? void 0 : I[g.value]) != null ? T : "";
@@ -8871,13 +8871,13 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
8871
8871
  }
8872
8872
  }
8873
8873
  return () => {
8874
- var _, b;
8874
+ var _, v;
8875
8875
  return createVNode(KgModal, {
8876
8876
  visible: e.visible,
8877
8877
  title: n.t(o).value,
8878
8878
  destroyOnClose: !0,
8879
8879
  okButtonProps: {
8880
- disabled: ((b = (_ = l.selectedRows.value) == null ? void 0 : _.length) != null ? b : 0) === 0
8880
+ disabled: ((v = (_ = l.selectedRows.value) == null ? void 0 : _.length) != null ? v : 0) === 0
8881
8881
  },
8882
8882
  wrapClassName: "kg-form-item-addon-lookup-modal",
8883
8883
  onCancel: p,
@@ -8952,35 +8952,35 @@ function _useServices$2(e) {
8952
8952
  break;
8953
8953
  case KG_POSSIBILITY_DATA_TYPE.NUMBER:
8954
8954
  i.forEach((_) => {
8955
- let b = Number(_[s]);
8956
- Number.isNaN(b) && (b = _[s], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${_[s]} \u8F6C\u6362\u4E3A ${l} \u7C7B\u578B`, {
8955
+ let v = Number(_[s]);
8956
+ Number.isNaN(v) && (v = _[s], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${_[s]} \u8F6C\u6362\u4E3A ${l} \u7C7B\u578B`, {
8957
8957
  frm_id: t.formID,
8958
8958
  var_nam: e.kgVarName,
8959
8959
  VarPossibility: r.value
8960
- })), _[s] = b;
8960
+ })), _[s] = v;
8961
8961
  });
8962
8962
  break;
8963
8963
  case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
8964
8964
  i.forEach((_) => {
8965
- let b;
8966
- String(_[s]).toLowerCase() === "true" ? b = !0 : String(_[s]).toLowerCase() === "false" ? b = !1 : (b = _[s], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${_[s]} \u8F6C\u6362\u4E3A ${l} \u7C7B\u578B`, {
8965
+ let v;
8966
+ String(_[s]).toLowerCase() === "true" ? v = !0 : String(_[s]).toLowerCase() === "false" ? v = !1 : (v = _[s], Logger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${_[s]} \u8F6C\u6362\u4E3A ${l} \u7C7B\u578B`, {
8967
8967
  frm_id: t.formID,
8968
8968
  var_nam: e.kgVarName,
8969
8969
  VarPossibility: r.value
8970
- })), _[s] = b;
8970
+ })), _[s] = v;
8971
8971
  });
8972
8972
  break;
8973
8973
  }
8974
8974
  return (m = n.value) != null && m.excludeValues ? i.filter((_) => {
8975
- var b;
8976
- return !((b = n.value.excludeValues) != null && b.includes(_[s]));
8975
+ var v;
8976
+ return !((v = n.value.excludeValues) != null && v.includes(_[s]));
8977
8977
  }) : i;
8978
8978
  }
8979
8979
  return {
8980
8980
  transformDatas: o
8981
8981
  };
8982
8982
  }
8983
- function _isSlot$8(e) {
8983
+ function _isSlot$9(e) {
8984
8984
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
8985
8985
  }
8986
8986
  const KgFormItemCheckboxGroup = defineComponent({
@@ -9010,7 +9010,7 @@ const KgFormItemCheckboxGroup = defineComponent({
9010
9010
  });
9011
9011
  watch(m, () => {
9012
9012
  var C;
9013
- (C = g.value) != null && C.id && b();
9013
+ (C = g.value) != null && C.id && v();
9014
9014
  }, {
9015
9015
  immediate: !0
9016
9016
  }), watch([() => e.value, c], ([C, E]) => {
@@ -9037,7 +9037,7 @@ const KgFormItemCheckboxGroup = defineComponent({
9037
9037
  }, {
9038
9038
  immediate: !0
9039
9039
  });
9040
- async function b() {
9040
+ async function v() {
9041
9041
  var V, M, A, O, K, P, R, N, $;
9042
9042
  const C = (V = g.value) == null ? void 0 : V.cmd, E = (A = (M = g.value) == null ? void 0 : M.cmd_method) != null ? A : "GET", T = (K = (O = g.value) == null ? void 0 : O.val_clm) != null ? K : "", I = (R = (P = g.value) == null ? void 0 : P.lbl_clm) != null ? R : "";
9043
9043
  if (!C || !T || !I) {
@@ -9084,7 +9084,7 @@ const KgFormItemCheckboxGroup = defineComponent({
9084
9084
  }
9085
9085
  r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1(($ = c.value) == null ? void 0 : $.map((w) => w[T]), e.value));
9086
9086
  }
9087
- function v(C) {
9087
+ function b(C) {
9088
9088
  var E, T, I;
9089
9089
  C.target.checked ? y((T = (E = c.value) == null ? void 0 : E.map((k) => {
9090
9090
  var V, M;
@@ -9103,8 +9103,8 @@ const KgFormItemCheckboxGroup = defineComponent({
9103
9103
  checked: l.value,
9104
9104
  "onUpdate:checked": (T) => l.value = T,
9105
9105
  indeterminate: u.value,
9106
- onChange: v
9107
- }, _isSlot$8(C = a.t("kg.selectAll")) ? C : {
9106
+ onChange: b
9107
+ }, _isSlot$9(C = a.t("kg.selectAll")) ? C : {
9108
9108
  default: () => [C]
9109
9109
  })]
9110
9110
  }), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
@@ -9113,7 +9113,7 @@ const KgFormItemCheckboxGroup = defineComponent({
9113
9113
  }, {
9114
9114
  default: () => [createVNode(Row, {
9115
9115
  gutter: 12
9116
- }, _isSlot$8(E = c.value.map((T) => {
9116
+ }, _isSlot$9(E = c.value.map((T) => {
9117
9117
  var I, k;
9118
9118
  return createVNode(Col, {
9119
9119
  span: (k = (I = _.value) == null ? void 0 : I.span) != null ? k : 24
@@ -9296,17 +9296,17 @@ const KgFormItemSelect = defineComponent({
9296
9296
  var m;
9297
9297
  let p = KgVarUtil.parseCommandParameter((m = s.value) == null ? void 0 : m.cmd_prm);
9298
9298
  return p = mapValues(p, (_) => {
9299
- var b, v;
9299
+ var b, y;
9300
+ let v = _;
9300
9301
  if (typeof _ == "string" && _.startsWith("{") && _.endsWith("}")) {
9301
- let y = _.slice(1, -1), C = "";
9302
- if (y.includes(".")) {
9303
- const E = y.split(".");
9304
- y = E[0], C = E[1];
9302
+ let C = _.slice(1, -1), E = "";
9303
+ if (C.includes(".")) {
9304
+ const T = C.split(".");
9305
+ C = T[0], E = T[1];
9305
9306
  }
9306
- if (n.value && y in n.value)
9307
- return C ? (v = (b = n.value[`${y}_obj`]) == null ? void 0 : b[C]) != null ? v : void 0 : n.value[y];
9307
+ n.value && C in n.value && (E ? v = (y = (b = n.value[`${C}_obj`]) == null ? void 0 : b[E]) != null ? y : void 0 : v = n.value[C], v || (v = "__KG__FORM_ITEM_SELECT__PID"));
9308
9308
  }
9309
- return _;
9309
+ return v;
9310
9310
  }), p;
9311
9311
  });
9312
9312
  watch(l, () => {
@@ -9317,45 +9317,45 @@ const KgFormItemSelect = defineComponent({
9317
9317
  });
9318
9318
  async function u() {
9319
9319
  var y, C, E, T, I, k, V, M;
9320
- const p = (y = s.value) == null ? void 0 : y.cmd, m = (E = (C = s.value) == null ? void 0 : C.cmd_method) != null ? E : "GET", _ = (I = (T = s.value) == null ? void 0 : T.val_clm) != null ? I : "", b = (V = (k = s.value) == null ? void 0 : k.lbl_clm) != null ? V : "";
9321
- if (!p || !_ || !b) {
9320
+ const p = (y = s.value) == null ? void 0 : y.cmd, m = (E = (C = s.value) == null ? void 0 : C.cmd_method) != null ? E : "GET", _ = (I = (T = s.value) == null ? void 0 : T.val_clm) != null ? I : "", v = (V = (k = s.value) == null ? void 0 : k.lbl_clm) != null ? V : "";
9321
+ if (!p || !_ || !v) {
9322
9322
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
9323
9323
  frm_id: a.formID,
9324
9324
  var_nam: e.kgVarName,
9325
9325
  cmd: p,
9326
9326
  val_clm: _,
9327
- lbl_clm: b
9327
+ lbl_clm: v
9328
9328
  });
9329
9329
  return;
9330
9330
  }
9331
- let v = null;
9331
+ let b = null;
9332
9332
  try {
9333
- v = await ((M = httpClient()) == null ? void 0 : M.request({
9333
+ b = await ((M = httpClient()) == null ? void 0 : M.request({
9334
9334
  url: p,
9335
9335
  method: m,
9336
9336
  params: l.value
9337
9337
  }));
9338
9338
  } catch {
9339
9339
  }
9340
- if (!isObjectLike(v))
9340
+ if (!isObjectLike(b))
9341
9341
  i.value = [];
9342
9342
  else
9343
9343
  switch (!0) {
9344
- case isArrayLike(v):
9345
- i.value = o(v);
9344
+ case isArrayLike(b):
9345
+ i.value = o(b);
9346
9346
  break;
9347
- case (v && "total" in v && "records" in v):
9348
- i.value = o(v.records);
9347
+ case (b && "total" in b && "records" in b):
9348
+ i.value = o(b.records);
9349
9349
  break;
9350
9350
  }
9351
9351
  if (i.value.length > 0) {
9352
9352
  const A = i.value[0];
9353
- (!(_ in A) || !(b in A)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
9353
+ (!(_ in A) || !(v in A)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
9354
9354
  frm_id: a.formID,
9355
9355
  var_nam: e.kgVarName,
9356
9356
  cmd: p,
9357
9357
  val_clm: _,
9358
- lbl_clm: b,
9358
+ lbl_clm: v,
9359
9359
  \u6240\u6709\u5217: Object.keys(A)
9360
9360
  });
9361
9361
  }
@@ -9363,9 +9363,9 @@ const KgFormItemSelect = defineComponent({
9363
9363
  }
9364
9364
  function c(p) {
9365
9365
  var _;
9366
- const m = (_ = toRaw(i.value.find((b) => {
9367
- var v, y;
9368
- return b[(y = (v = s.value) == null ? void 0 : v.val_clm) != null ? y : ""] === p;
9366
+ const m = (_ = toRaw(i.value.find((v) => {
9367
+ var b, y;
9368
+ return v[(y = (b = s.value) == null ? void 0 : b.val_clm) != null ? y : ""] === p;
9369
9369
  }))) != null ? _ : null;
9370
9370
  r("kgSelectChange", m), n.value[`${e.kgVarName}_obj`] = m;
9371
9371
  }
@@ -9389,15 +9389,15 @@ const KgFormItemSelect = defineComponent({
9389
9389
  "kg-val-clm": (m = s.value) == null ? void 0 : m.val_clm,
9390
9390
  "kg-lbl-clm": (_ = s.value) == null ? void 0 : _.lbl_clm
9391
9391
  }, {
9392
- default: () => i.value.map((b) => {
9393
- var v, y, C, E;
9392
+ default: () => i.value.map((v) => {
9393
+ var b, y, C, E;
9394
9394
  return createVNode(Select.Option, {
9395
- "kg-value": b[(y = (v = s.value) == null ? void 0 : v.val_clm) != null ? y : ""],
9396
- value: b[(E = (C = s.value) == null ? void 0 : C.val_clm) != null ? E : ""]
9395
+ "kg-value": v[(y = (b = s.value) == null ? void 0 : b.val_clm) != null ? y : ""],
9396
+ value: v[(E = (C = s.value) == null ? void 0 : C.val_clm) != null ? E : ""]
9397
9397
  }, {
9398
9398
  default: () => {
9399
9399
  var T, I;
9400
- return [b[(I = (T = s.value) == null ? void 0 : T.lbl_clm) != null ? I : ""]];
9400
+ return [v[(I = (T = s.value) == null ? void 0 : T.lbl_clm) != null ? I : ""]];
9401
9401
  }
9402
9402
  });
9403
9403
  }),
@@ -9430,7 +9430,7 @@ function _useRules(e) {
9430
9430
  const t = useKg(), r = useKgVar(), a = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), n = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), o = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName));
9431
9431
  return {
9432
9432
  rules: computed(() => {
9433
- var l, u, c, g, p, m, _, b;
9433
+ var l, u, c, g, p, m, _, v;
9434
9434
  let s = [];
9435
9435
  switch (e.kgContext) {
9436
9436
  case KG_FORM_CONTEXT.SEARCH:
@@ -9470,11 +9470,11 @@ function _useRules(e) {
9470
9470
  }
9471
9471
  switch ((m = n.value) == null ? void 0 : m.data_type) {
9472
9472
  case KG_VAR_INPUT__DATA_TYPE.NUMBER:
9473
- const v = (_ = n.value) == null ? void 0 : _.min;
9474
- isNil(v) || (((b = n.value) == null ? void 0 : b.min_include_flg) === 1 ? s.push({
9475
- validator: (y, C) => Number(C) < v ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [v])) : Promise.resolve()
9473
+ const b = (_ = n.value) == null ? void 0 : _.min;
9474
+ isNil(b) || (((v = n.value) == null ? void 0 : v.min_include_flg) === 1 ? s.push({
9475
+ validator: (y, C) => Number(C) < b ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [b])) : Promise.resolve()
9476
9476
  }) : s.push({
9477
- validator: (y, C) => Number(C) <= v ? Promise.reject(t.t("kg.KgFormItem.mustGT", [v])) : Promise.resolve()
9477
+ validator: (y, C) => Number(C) <= b ? Promise.reject(t.t("kg.KgFormItem.mustGT", [b])) : Promise.resolve()
9478
9478
  }));
9479
9479
  break;
9480
9480
  }
@@ -9576,7 +9576,7 @@ const KgFormItem = defineComponent({
9576
9576
  paddingLeft: `${O}px !important`,
9577
9577
  paddingRight: `${O}px !important`
9578
9578
  }), A;
9579
- }), b = computed(() => {
9579
+ }), v = computed(() => {
9580
9580
  var A, O, K, P;
9581
9581
  let M = "kg-form-item";
9582
9582
  switch (i.value && (M += " kg-form-item-lookup"), e.kgContext) {
@@ -9598,7 +9598,7 @@ const KgFormItem = defineComponent({
9598
9598
  break;
9599
9599
  }
9600
9600
  return M;
9601
- }), v = computed(() => {
9601
+ }), b = computed(() => {
9602
9602
  var A;
9603
9603
  const M = {
9604
9604
  ...e,
@@ -9659,7 +9659,7 @@ const KgFormItem = defineComponent({
9659
9659
  if (t.control) {
9660
9660
  const M = {
9661
9661
  varName: e.kgVarName,
9662
- props: v,
9662
+ props: b,
9663
9663
  model: n,
9664
9664
  varVariableConfig: s,
9665
9665
  varProfileDetail: l,
@@ -9669,31 +9669,31 @@ const KgFormItem = defineComponent({
9669
9669
  }
9670
9670
  switch (y.value) {
9671
9671
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
9672
- return createVNode(KgFormItemInputNumber, v.value, null);
9672
+ return createVNode(KgFormItemInputNumber, b.value, null);
9673
9673
  case KG_FORM_ITEM_TYPE.SELECT:
9674
- return createVNode(KgFormItemSelect, v.value, null);
9674
+ return createVNode(KgFormItemSelect, b.value, null);
9675
9675
  case KG_FORM_ITEM_TYPE.SWITCH:
9676
9676
  switch (e.kgContext) {
9677
9677
  case KG_FORM_CONTEXT.SEARCH:
9678
- return createVNode(KgFormItemSelect, v.value, null);
9678
+ return createVNode(KgFormItemSelect, b.value, null);
9679
9679
  case KG_FORM_CONTEXT.SUBMIT:
9680
9680
  default:
9681
- return createVNode(KgFormItemSwitch, v.value, null);
9681
+ return createVNode(KgFormItemSwitch, b.value, null);
9682
9682
  }
9683
9683
  case KG_FORM_ITEM_TYPE.CHECKBOX:
9684
- return createVNode(KgFormItemCheckbox, v.value, null);
9684
+ return createVNode(KgFormItemCheckbox, b.value, null);
9685
9685
  case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
9686
- return createVNode(KgFormItemCheckboxGroup, v.value, null);
9686
+ return createVNode(KgFormItemCheckboxGroup, b.value, null);
9687
9687
  case KG_FORM_ITEM_TYPE.DATE_DATE:
9688
- return createVNode(KgFormItemDate, v.value, null);
9688
+ return createVNode(KgFormItemDate, b.value, null);
9689
9689
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
9690
- return createVNode(KgFormItemDate, v.value, null);
9690
+ return createVNode(KgFormItemDate, b.value, null);
9691
9691
  case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
9692
- return createVNode(KgFormItemDateRange, v.value, null);
9692
+ return createVNode(KgFormItemDateRange, b.value, null);
9693
9693
  case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
9694
- return createVNode(KgFormItemDateRange, v.value, null);
9694
+ return createVNode(KgFormItemDateRange, b.value, null);
9695
9695
  default:
9696
- return createVNode(KgFormItemInput, v.value, null);
9696
+ return createVNode(KgFormItemInput, b.value, null);
9697
9697
  }
9698
9698
  }
9699
9699
  function k() {
@@ -9720,7 +9720,7 @@ const KgFormItem = defineComponent({
9720
9720
  "kg-lkp-id": (M = i.value) == null ? void 0 : M.lkp_id,
9721
9721
  "kg-lkp-ret-fld": (A = i.value) == null ? void 0 : A.ret_fld,
9722
9722
  span: m.value,
9723
- class: b.value,
9723
+ class: v.value,
9724
9724
  style: _.value
9725
9725
  }, {
9726
9726
  default: () => [createVNode(Form.Item, {
@@ -9979,21 +9979,7 @@ function useKgSubmit(e) {
9979
9979
  const c = computed(() => {
9980
9980
  var k, V, M, A, O;
9981
9981
  let _ = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
9982
- const b = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, v = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, y = (k = a.value) == null ? void 0 : k.display_type, C = (V = a.value) == null ? void 0 : V.crt_display_type, E = (M = a.value) == null ? void 0 : M.upt_display_type, T = (A = a.value) == null ? void 0 : A.cpy_display_type, I = (O = a.value) == null ? void 0 : O.del_display_type;
9983
- switch (!0) {
9984
- case (t.isCreating.value && (C === b || !C && y === b)):
9985
- _ = b;
9986
- break;
9987
- case (t.isUpdating.value && (E === b || !E && y === b)):
9988
- _ = b;
9989
- break;
9990
- case (t.isCopying.value && (T === b || !T && y === b)):
9991
- _ = b;
9992
- break;
9993
- case (t.isDeleting.value && (I === b || !I)):
9994
- _ = b;
9995
- break;
9996
- }
9982
+ const v = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, b = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, y = (k = a.value) == null ? void 0 : k.display_type, C = (V = a.value) == null ? void 0 : V.crt_display_type, E = (M = a.value) == null ? void 0 : M.upt_display_type, T = (A = a.value) == null ? void 0 : A.cpy_display_type, I = (O = a.value) == null ? void 0 : O.del_display_type;
9997
9983
  switch (!0) {
9998
9984
  case (t.isCreating.value && (C === v || !C && y === v)):
9999
9985
  _ = v;
@@ -10004,6 +9990,20 @@ function useKgSubmit(e) {
10004
9990
  case (t.isCopying.value && (T === v || !T && y === v)):
10005
9991
  _ = v;
10006
9992
  break;
9993
+ case (t.isDeleting.value && (I === v || !I)):
9994
+ _ = v;
9995
+ break;
9996
+ }
9997
+ switch (!0) {
9998
+ case (t.isCreating.value && (C === b || !C && y === b)):
9999
+ _ = b;
10000
+ break;
10001
+ case (t.isUpdating.value && (E === b || !E && y === b)):
10002
+ _ = b;
10003
+ break;
10004
+ case (t.isCopying.value && (T === b || !T && y === b)):
10005
+ _ = b;
10006
+ break;
10007
10007
  }
10008
10008
  return _;
10009
10009
  }), g = computed(() => {
@@ -10048,8 +10048,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10048
10048
  }) => {
10049
10049
  const c = o.store.getVarSubmitConfig(o.formID);
10050
10050
  return s = watch(u, (g) => {
10051
- var p, m, _, b, v, y, C, E, T, I, k, V;
10052
- g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (m = c == null ? void 0 : c.resizable_flg) != null ? m : 1, g.fullscreen_flg = (_ = c == null ? void 0 : c.fullscreen_flg) != null ? _ : 1, g.dft_fullscreen_flg = (b = c == null ? void 0 : c.dft_fullscreen_flg) != null ? b : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (E = c == null ? void 0 : c.dft_width) != null ? E : DEFAULT_WIDTH, g.layout = (T = c == null ? void 0 : c.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (I = c == null ? void 0 : c.label_col) != null ? I : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (V = c == null ? void 0 : c.display_type) != null ? V : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
10051
+ var p, m, _, v, b, y, C, E, T, I, k, V;
10052
+ g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (m = c == null ? void 0 : c.resizable_flg) != null ? m : 1, g.fullscreen_flg = (_ = c == null ? void 0 : c.fullscreen_flg) != null ? _ : 1, g.dft_fullscreen_flg = (v = c == null ? void 0 : c.dft_fullscreen_flg) != null ? v : 0, g.responsive_flg = (b = c == null ? void 0 : c.responsive_flg) != null ? b : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (E = c == null ? void 0 : c.dft_width) != null ? E : DEFAULT_WIDTH, g.layout = (T = c == null ? void 0 : c.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (I = c == null ? void 0 : c.label_col) != null ? I : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (V = c == null ? void 0 : c.display_type) != null ? V : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
10053
10053
  }, {
10054
10054
  immediate: !0
10055
10055
  }), !1;
@@ -10107,7 +10107,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10107
10107
  default: () => [e.isFullscreen ? createVNode(FullscreenExitOutlined$1, null, null) : createVNode(FullscreenOutlined$1, null, null)]
10108
10108
  });
10109
10109
  }
10110
- function b() {
10110
+ function v() {
10111
10111
  return e.kgShowConfigButton ? createVNode(Fragment, null, [createVNode(Button, {
10112
10112
  disabled: u.value || l.value,
10113
10113
  onClick: p,
@@ -10118,7 +10118,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10118
10118
  hostFormID: n.formID
10119
10119
  }, null)]) : null;
10120
10120
  }
10121
- function v() {
10121
+ function b() {
10122
10122
  return createVNode(Button, {
10123
10123
  disabled: u.value || l.value,
10124
10124
  class: "kg-submit--btn-close",
@@ -10127,7 +10127,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10127
10127
  default: () => [createVNode(CloseOutlined$1, null, null)]
10128
10128
  });
10129
10129
  }
10130
- return () => createVNode(Fragment, null, [b(), _(), v()]);
10130
+ return () => createVNode(Fragment, null, [v(), _(), b()]);
10131
10131
  }
10132
10132
  }), 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;
10133
10133
  function _useFormModel$1() {
@@ -10149,14 +10149,14 @@ function _useFormModel$1() {
10149
10149
  if (u.value = {}, c != null && c.length) {
10150
10150
  const g = r.selectedRow.value;
10151
10151
  c.forEach((p) => {
10152
- var _, b, v, y, C, E, T, I;
10152
+ var _, v, b, y, C, E, T, I;
10153
10153
  const m = (_ = p.var_nam) != null ? _ : "";
10154
10154
  switch (u.value[m] = void 0, !0) {
10155
10155
  case t.isCreating.value:
10156
- u.value[m] = KgVarUtil.transformValueByControlType(t.formID, m, e, (b = p.crt_dft_val) != null ? b : void 0);
10156
+ u.value[m] = KgVarUtil.transformValueByControlType(t.formID, m, e, (v = p.crt_dft_val) != null ? v : void 0);
10157
10157
  break;
10158
10158
  case t.isUpdating.value:
10159
- u.value.id = g == null ? void 0 : g.id, u.value[m] = KgVarUtil.transformValueByControlType(t.formID, m, e, (y = (v = p.upt_dft_val) != null ? v : g == null ? void 0 : g[m]) != null ? y : void 0);
10159
+ u.value.id = g == null ? void 0 : g.id, u.value[m] = KgVarUtil.transformValueByControlType(t.formID, m, e, (y = (b = p.upt_dft_val) != null ? b : g == null ? void 0 : g[m]) != null ? y : void 0);
10160
10160
  break;
10161
10161
  case t.isCopying.value:
10162
10162
  u.value.id = g == null ? void 0 : g.id, u.value[m] = KgVarUtil.transformValueByControlType(t.formID, m, e, (E = (C = p.cpy_dft_val) != null ? C : g == null ? void 0 : g[m]) != null ? E : void 0);
@@ -10294,7 +10294,7 @@ function _useDefaultWidth() {
10294
10294
  };
10295
10295
  }
10296
10296
  const KgSubmit$1 = "";
10297
- function _isSlot$7(e) {
10297
+ function _isSlot$8(e) {
10298
10298
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
10299
10299
  }
10300
10300
  const getProps$n = () => ({
@@ -10310,14 +10310,14 @@ const getProps$n = () => ({
10310
10310
  attrs: t
10311
10311
  }) {
10312
10312
  const r = inject("$dayjs", dayjs), a = useKg(), n = useKgVar(), o = useKgButton(), i = useKgTable(), s = useKgSubmit(), l = useKgSearch();
10313
- o.onSubmitSave(async () => (await J(), !1)), o.onSubmitCancel(async () => (await z(), !1));
10314
- const u = inject(DI_KG_SLOTS, null);
10313
+ o.onSubmitSave(async () => (await z(), !1)), o.onSubmitCancel(async () => (await G(), !1));
10314
+ const u = inject(DI_KG_VAR__KG_SLOTS, null);
10315
10315
  _useFormModel$1(), KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE;
10316
- const c = computed(() => n.isDeleting.value && M.value.length === 0 && A.value.length === 0), g = computed(() => n.store.getVarButtonCreate(n.formID)), p = computed(() => n.store.getVarButtonUpdate(n.formID)), m = computed(() => n.store.getVarButtonCopy(n.formID)), _ = computed(() => n.store.getVarButtonDelete(n.formID)), b = computed(() => s.store.isLoading(n.formID)), v = computed(() => n.store.getVarSubmitConfig(n.formID)), y = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), C = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), E = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), I = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), k = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), V = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), M = computed(() => {
10317
- var G, W, Q;
10316
+ const c = computed(() => n.isDeleting.value && M.value.length === 0 && A.value.length === 0), g = computed(() => n.store.getVarButtonCreate(n.formID)), p = computed(() => n.store.getVarButtonUpdate(n.formID)), m = computed(() => n.store.getVarButtonCopy(n.formID)), _ = computed(() => n.store.getVarButtonDelete(n.formID)), v = computed(() => s.store.isLoading(n.formID)), b = computed(() => n.store.getVarSubmitConfig(n.formID)), y = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), C = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), E = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), I = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), k = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), V = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), M = computed(() => {
10317
+ var U, W, Q;
10318
10318
  switch (!0) {
10319
10319
  case n.isCreating.value:
10320
- return (G = y.value) != null ? G : [];
10320
+ return (U = y.value) != null ? U : [];
10321
10321
  case n.isUpdating.value:
10322
10322
  return (W = E.value) != null ? W : [];
10323
10323
  case n.isCopying.value:
@@ -10327,10 +10327,10 @@ const getProps$n = () => ({
10327
10327
  }
10328
10328
  return [];
10329
10329
  }), A = computed(() => {
10330
- var G, W, Q, te;
10330
+ var U, W, Q, te;
10331
10331
  switch (!0) {
10332
10332
  case n.isCreating.value:
10333
- return (G = C.value) != null ? G : [];
10333
+ return (U = C.value) != null ? U : [];
10334
10334
  case n.isUpdating.value:
10335
10335
  return (W = T.value) != null ? W : [];
10336
10336
  case n.isCopying.value:
@@ -10339,17 +10339,17 @@ const getProps$n = () => ({
10339
10339
  return (te = V.value) != null ? te : [];
10340
10340
  }
10341
10341
  return [];
10342
- }), O = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID) || !!n.store.isDeletingRequesting(n.formID)), K = computed(() => O.value || b.value), P = computed(() => b.value), R = ref({
10342
+ }), O = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID) || !!n.store.isDeletingRequesting(n.formID)), K = computed(() => O.value || v.value), P = computed(() => v.value), R = ref({
10343
10343
  kgWidth: 0
10344
10344
  }), N = computed(() => {
10345
- var G;
10346
- return !!(c.value || q.isFullscreen || ((G = v.value) == null ? void 0 : G.resizable_flg) === 0);
10345
+ var U;
10346
+ return !!(c.value || q.isFullscreen || ((U = b.value) == null ? void 0 : U.resizable_flg) === 0);
10347
10347
  }), $ = computed(() => {
10348
- var G, W;
10349
- return c.value ? 398 : (W = (G = v.value) == null ? void 0 : G.min_width) != null ? W : DEFAULT_MIN_WIDTH;
10348
+ var U, W;
10349
+ return c.value ? 398 : (W = (U = b.value) == null ? void 0 : U.min_width) != null ? W : DEFAULT_MIN_WIDTH;
10350
10350
  }), w = computed(() => {
10351
- var G, W;
10352
- return c.value ? 398 : (W = (G = v.value) == null ? void 0 : G.max_width) != null ? W : DEFAULT_MAX_WIDTH;
10351
+ var U, W;
10352
+ return c.value ? 398 : (W = (U = b.value) == null ? void 0 : U.max_width) != null ? W : DEFAULT_MAX_WIDTH;
10353
10353
  }), D = computed(() => c.value ? 398 : R.value.kgWidth), B = ref(null);
10354
10354
  _useResizeObserver$1(B);
10355
10355
  const x = _useTitle(), H = computed(() => c.value ? 400 : R.value.kgWidth && R.value.kgWidth > 0 ? R.value.kgWidth + 2 : 0), Y = computed(() => H.value === 0 ? !1 : !!(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), q = reactive({
@@ -10360,33 +10360,33 @@ const getProps$n = () => ({
10360
10360
  getLayout: ae
10361
10361
  } = _useLayout(), {
10362
10362
  getDefaultWidth: ne
10363
- } = _useDefaultWidth(), ce = computed(() => {
10364
- var G, W, Q;
10363
+ } = _useDefaultWidth(), de = computed(() => {
10364
+ var U, W, Q;
10365
10365
  switch (ae.value) {
10366
10366
  case "horizontal":
10367
- switch ((G = v.value) == null ? void 0 : G.label_col_unit) {
10367
+ switch ((U = b.value) == null ? void 0 : U.label_col_unit) {
10368
10368
  case KG_WIDTH_UNIT.SPAN:
10369
10369
  return {
10370
- span: (W = v.value) == null ? void 0 : W.label_col
10370
+ span: (W = b.value) == null ? void 0 : W.label_col
10371
10371
  };
10372
10372
  default:
10373
10373
  return {
10374
10374
  style: {
10375
- width: `${(Q = v.value) == null ? void 0 : Q.label_col}px`
10375
+ width: `${(Q = b.value) == null ? void 0 : Q.label_col}px`
10376
10376
  }
10377
10377
  };
10378
10378
  }
10379
10379
  default:
10380
10380
  return;
10381
10381
  }
10382
- }), L = computed(() => {
10383
- var G, W;
10382
+ }), ge = computed(() => {
10383
+ var U, W;
10384
10384
  switch (ae.value) {
10385
10385
  case "horizontal":
10386
- switch ((G = v.value) == null ? void 0 : G.label_col_unit) {
10386
+ switch ((U = b.value) == null ? void 0 : U.label_col_unit) {
10387
10387
  case KG_WIDTH_UNIT.SPAN:
10388
10388
  return {
10389
- span: 24 - ((W = v.value) == null ? void 0 : W.label_col)
10389
+ span: 24 - ((W = b.value) == null ? void 0 : W.label_col)
10390
10390
  };
10391
10391
  default:
10392
10392
  return;
@@ -10395,19 +10395,19 @@ const getProps$n = () => ({
10395
10395
  return;
10396
10396
  }
10397
10397
  });
10398
- watch(Y, (G, W) => {
10399
- G === !0 && F(), W === !0 && G === !1 && U();
10398
+ watch(Y, (U, W) => {
10399
+ U === !0 && L(), W === !0 && U === !1 && F();
10400
10400
  }, {
10401
10401
  immediate: !0
10402
- }), watch(ne, (G) => {
10403
- G && (R.value.kgWidth = G);
10402
+ }), watch(ne, (U) => {
10403
+ U && (R.value.kgWidth = U);
10404
10404
  }, {
10405
10405
  immediate: !0
10406
10406
  });
10407
- function F() {
10407
+ function L() {
10408
10408
  var W;
10409
- const G = watch(s.model, (Q) => {
10410
- Q && Object.keys(Q).length > 0 && (setTimeout(() => G()), s.store.emit(n.formID, "open", {
10409
+ const U = watch(s.model, (Q) => {
10410
+ Q && Object.keys(Q).length > 0 && (setTimeout(() => U()), s.store.emit(n.formID, "open", {
10411
10411
  isCreating: n.isCreating.value,
10412
10412
  isUpdating: n.isUpdating.value,
10413
10413
  isCopying: n.isCopying.value,
@@ -10418,12 +10418,12 @@ const getProps$n = () => ({
10418
10418
  }, {
10419
10419
  immediate: !0
10420
10420
  });
10421
- ((W = v.value) == null ? void 0 : W.dft_fullscreen_flg) === 1 && !c.value && (q.isFullscreen = !0);
10421
+ ((W = b.value) == null ? void 0 : W.dft_fullscreen_flg) === 1 && !c.value && (q.isFullscreen = !0);
10422
10422
  }
10423
- function U() {
10423
+ function F() {
10424
10424
  R.value.kgWidth = ne.value, q.isFullscreen = !1, s.store.emit(n.formID, "close");
10425
10425
  }
10426
- function z() {
10426
+ function G() {
10427
10427
  switch (!0) {
10428
10428
  case n.isCreating.value:
10429
10429
  n.store.setIsCreating(n.formID, !1);
@@ -10439,8 +10439,8 @@ const getProps$n = () => ({
10439
10439
  break;
10440
10440
  }
10441
10441
  }
10442
- async function J() {
10443
- var G, W;
10442
+ async function z() {
10443
+ var U, W;
10444
10444
  try {
10445
10445
  if (await s.store.emit(n.formID, "beforeOk", {
10446
10446
  isCreating: n.isCreating.value,
@@ -10453,7 +10453,7 @@ const getProps$n = () => ({
10453
10453
  }))
10454
10454
  return;
10455
10455
  try {
10456
- await ((G = s.formRef.value) == null ? void 0 : G.validate());
10456
+ await ((U = s.formRef.value) == null ? void 0 : U.validate());
10457
10457
  } catch (re) {
10458
10458
  KgUtil.throwIfNotFormError(re);
10459
10459
  }
@@ -10469,26 +10469,26 @@ const getProps$n = () => ({
10469
10469
  return;
10470
10470
  switch (!0) {
10471
10471
  case n.isCreating.value:
10472
- await X();
10472
+ await J();
10473
10473
  break;
10474
10474
  case n.isUpdating.value:
10475
- await de();
10475
+ await X();
10476
10476
  break;
10477
10477
  case n.isCopying.value:
10478
- await pe();
10478
+ await ce();
10479
10479
  break;
10480
10480
  case n.isDeleting.value:
10481
- await be();
10481
+ await fe();
10482
10482
  break;
10483
10483
  }
10484
10484
  } catch (Q) {
10485
10485
  KgUtil.throwIfNotFormError(Q);
10486
10486
  }
10487
10487
  }
10488
- async function X() {
10488
+ async function J() {
10489
10489
  var W, Q, te, re, oe, se, ie, le;
10490
- const G = (W = g.value) == null ? void 0 : W.cmd;
10491
- if (!G) {
10490
+ const U = (W = g.value) == null ? void 0 : W.cmd;
10491
+ if (!U) {
10492
10492
  Logger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10493
10493
  VarButton: g.value
10494
10494
  });
@@ -10511,7 +10511,7 @@ const getProps$n = () => ({
10511
10511
  return;
10512
10512
  await httpClient().request({
10513
10513
  method: (oe = (re = g.value) == null ? void 0 : re.cmd_method) != null ? oe : "POST",
10514
- url: G,
10514
+ url: U,
10515
10515
  params: ee.value,
10516
10516
  data: ue.value
10517
10517
  }), ((se = g.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(x.title.value + a.t("kg.succeed")), s.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (le = (ie = l.search).value) == null || le.call(ie, !0);
@@ -10521,10 +10521,10 @@ const getProps$n = () => ({
10521
10521
  n.store.setIsCreatingRequesting(n.formID, !1);
10522
10522
  }
10523
10523
  }
10524
- async function de() {
10524
+ async function X() {
10525
10525
  var W, Q, te, re, oe, se, ie, le;
10526
- const G = (W = p.value) == null ? void 0 : W.cmd;
10527
- if (!G) {
10526
+ const U = (W = p.value) == null ? void 0 : W.cmd;
10527
+ if (!U) {
10528
10528
  Logger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10529
10529
  VarButton: p.value
10530
10530
  });
@@ -10547,7 +10547,7 @@ const getProps$n = () => ({
10547
10547
  return;
10548
10548
  await httpClient().request({
10549
10549
  method: (oe = (re = p.value) == null ? void 0 : re.cmd_method) != null ? oe : "POST",
10550
- url: G,
10550
+ url: U,
10551
10551
  params: ee.value,
10552
10552
  data: ue.value
10553
10553
  }), ((se = p.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(a.t("kg.updateSuccess")), s.store.emit(n.formID, "ok"), n.store.setIsUpdating(n.formID, !1), (le = (ie = l.search).value) == null || le.call(ie);
@@ -10557,10 +10557,10 @@ const getProps$n = () => ({
10557
10557
  n.store.setIsUpdatingRequesting(n.formID, !1);
10558
10558
  }
10559
10559
  }
10560
- async function pe() {
10560
+ async function ce() {
10561
10561
  var W, Q, te, re, oe, se, ie, le, ee, ue;
10562
- const G = (W = m.value) == null ? void 0 : W.cmd;
10563
- if (!G) {
10562
+ const U = (W = m.value) == null ? void 0 : W.cmd;
10563
+ if (!U) {
10564
10564
  Logger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10565
10565
  VarButton: m.value
10566
10566
  });
@@ -10568,11 +10568,11 @@ const getProps$n = () => ({
10568
10568
  }
10569
10569
  try {
10570
10570
  n.store.setIsCopyingRequesting(n.formID, !0);
10571
- let ge = ref(KgVarUtil.parseCommandParameter((te = (Q = m.value) == null ? void 0 : Q.cmd_prm) != null ? te : "")), fe = ref({
10571
+ let pe = ref(KgVarUtil.parseCommandParameter((te = (Q = m.value) == null ? void 0 : Q.cmd_prm) != null ? te : "")), me = ref({
10572
10572
  ...(re = i.selectedFirstRow.value) != null ? re : {},
10573
10573
  ...toRaw(s.model.value)
10574
10574
  });
10575
- if (((oe = v.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete fe.value.id, await s.store.emit(n.formID, "beforeRequest", {
10575
+ if (((oe = b.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete me.value.id, await s.store.emit(n.formID, "beforeRequest", {
10576
10576
  isCreating: n.isCreating.value,
10577
10577
  isUpdating: n.isUpdating.value,
10578
10578
  isCopying: n.isCopying.value,
@@ -10580,26 +10580,26 @@ const getProps$n = () => ({
10580
10580
  row: i.selectedRow.value,
10581
10581
  rows: i.selectedRows.value,
10582
10582
  model: s.model,
10583
- params: ge,
10584
- data: fe
10583
+ params: pe,
10584
+ data: me
10585
10585
  }))
10586
10586
  return;
10587
10587
  await httpClient().request({
10588
10588
  method: (ie = (se = m.value) == null ? void 0 : se.cmd_method) != null ? ie : "POST",
10589
- url: G,
10590
- params: ge.value,
10591
- data: fe.value
10589
+ url: U,
10590
+ params: pe.value,
10591
+ data: me.value
10592
10592
  }), ((le = m.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(a.t("kg.copySuccess")), s.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (ue = (ee = l.search).value) == null || ue.call(ee, !0);
10593
- } catch (ge) {
10594
- console.error(ge);
10593
+ } catch (pe) {
10594
+ console.error(pe);
10595
10595
  } finally {
10596
10596
  n.store.setIsCopyingRequesting(n.formID, !1);
10597
10597
  }
10598
10598
  }
10599
- async function be() {
10599
+ async function fe() {
10600
10600
  var W, Q, te, re, oe, se, ie, le;
10601
- const G = (W = _.value) == null ? void 0 : W.cmd;
10602
- if (!G) {
10601
+ const U = (W = _.value) == null ? void 0 : W.cmd;
10602
+ if (!U) {
10603
10603
  Logger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10604
10604
  VarButton: _.value
10605
10605
  });
@@ -10608,9 +10608,9 @@ const getProps$n = () => ({
10608
10608
  try {
10609
10609
  n.store.setIsDeletingRequesting(n.formID, !0);
10610
10610
  let ee = ref({
10611
- ids: (te = (Q = i.selectedRows.value) == null ? void 0 : Q.map((fe) => {
10612
- var me, he, ve;
10613
- return (ve = fe[(he = (me = _.value) == null ? void 0 : me.del_param_clm) != null ? he : "id"]) != null ? ve : "";
10611
+ ids: (te = (Q = i.selectedRows.value) == null ? void 0 : Q.map((me) => {
10612
+ var he, ve, be;
10613
+ return (be = me[(ve = (he = _.value) == null ? void 0 : he.del_param_clm) != null ? ve : "id"]) != null ? be : "";
10614
10614
  })) != null ? te : []
10615
10615
  }), ue = ref({});
10616
10616
  if (await s.store.emit(n.formID, "beforeRequest", {
@@ -10627,7 +10627,7 @@ const getProps$n = () => ({
10627
10627
  return;
10628
10628
  await httpClient().request({
10629
10629
  method: (oe = (re = _.value) == null ? void 0 : re.cmd_method) != null ? oe : "DELETE",
10630
- url: G,
10630
+ url: U,
10631
10631
  params: ee.value,
10632
10632
  data: ue.value
10633
10633
  }, {
@@ -10639,14 +10639,14 @@ const getProps$n = () => ({
10639
10639
  n.store.setIsDeletingRequesting(n.formID, !1);
10640
10640
  }
10641
10641
  }
10642
- function _e(G) {
10642
+ function _e(U) {
10643
10643
  var Q, te;
10644
- const W = (te = (Q = u == null ? void 0 : u.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : te[G.var_nam];
10644
+ const W = (te = (Q = u == null ? void 0 : u.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : te[U.var_nam];
10645
10645
  return isFunction$2(W) ? createVNode(KgForm.Item, {
10646
- kgVarName: G.var_nam,
10646
+ kgVarName: U.var_nam,
10647
10647
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10648
- kgRules: s.rules.value[G.var_nam],
10649
- onKgSubmit: J
10648
+ kgRules: s.rules.value[U.var_nam],
10649
+ onKgSubmit: z
10650
10650
  }, {
10651
10651
  control: ({
10652
10652
  varName: re,
@@ -10664,14 +10664,14 @@ const getProps$n = () => ({
10664
10664
  varSubmitField: ee
10665
10665
  })
10666
10666
  }) : createVNode(KgForm.Item, {
10667
- kgVarName: G.var_nam,
10667
+ kgVarName: U.var_nam,
10668
10668
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10669
- kgRules: s.rules.value[G.var_nam],
10670
- onKgSubmit: J
10669
+ kgRules: s.rules.value[U.var_nam],
10670
+ onKgSubmit: z
10671
10671
  }, null);
10672
10672
  }
10673
10673
  function ye() {
10674
- let G, W;
10674
+ let U, W;
10675
10675
  return createVNode(KgResizable, {
10676
10676
  kgType: s.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
10677
10677
  kgMinWidth: $.value,
@@ -10681,24 +10681,24 @@ const getProps$n = () => ({
10681
10681
  "onUpdate:kgWidth": (Q) => R.value.kgWidth = Q
10682
10682
  }, {
10683
10683
  default: () => [createVNode(Spin, {
10684
- spinning: b.value
10684
+ spinning: v.value
10685
10685
  }, {
10686
10686
  default: () => [createVNode(KgForm, {
10687
10687
  ref: s.formRef,
10688
10688
  model: s.model.value,
10689
10689
  layout: ae.value,
10690
- labelCol: ce.value,
10691
- wrapperCol: L.value
10690
+ labelCol: de.value,
10691
+ wrapperCol: ge.value
10692
10692
  }, {
10693
10693
  default: () => [createVNode("div", {
10694
10694
  ref: B
10695
10695
  }, [M.value.length > 0 && createVNode(Row, {
10696
10696
  gutter: 12
10697
- }, _isSlot$7(G = M.value.map(_e)) ? G : {
10698
- default: () => [G]
10697
+ }, _isSlot$8(U = M.value.map(_e)) ? U : {
10698
+ default: () => [U]
10699
10699
  }), M.value.length > 0 && A.value.length > 0 && createVNode(Divider, null, null), A.value.length > 0 && createVNode(Row, {
10700
10700
  gutter: 12
10701
- }, _isSlot$7(W = A.value.map(_e)) ? W : {
10701
+ }, _isSlot$8(W = A.value.map(_e)) ? W : {
10702
10702
  default: () => [W]
10703
10703
  }), c.value && createVNode("div", {
10704
10704
  style: "text-align: center; padding: 6px 0 12px;"
@@ -10708,21 +10708,21 @@ const getProps$n = () => ({
10708
10708
  });
10709
10709
  }
10710
10710
  function Se() {
10711
- let G, W;
10711
+ let U, W;
10712
10712
  return createVNode("div", null, [createVNode(Button, {
10713
10713
  type: "primary",
10714
10714
  ghost: !K.value,
10715
10715
  disabled: K.value,
10716
- onClick: z
10717
- }, _isSlot$7(G = a.t("kg.cancel")) ? G : {
10718
- default: () => [G]
10716
+ onClick: G
10717
+ }, _isSlot$8(U = a.t("kg.cancel")) ? U : {
10718
+ default: () => [U]
10719
10719
  }), createVNode(Button, {
10720
10720
  type: "primary",
10721
10721
  disabled: P.value,
10722
10722
  loading: O.value,
10723
10723
  danger: !!n.isDeleting.value,
10724
- onClick: J
10725
- }, _isSlot$7(W = a.t(n.isDeleting.value ? "kg.delete" : "kg.save")) ? W : {
10724
+ onClick: z
10725
+ }, _isSlot$8(W = a.t(n.isDeleting.value ? "kg.delete" : "kg.save")) ? W : {
10726
10726
  default: () => [W]
10727
10727
  })]);
10728
10728
  }
@@ -10734,10 +10734,10 @@ const getProps$n = () => ({
10734
10734
  function Te() {
10735
10735
  return createVNode(KgSubmitHeader, {
10736
10736
  isFullscreen: q.isFullscreen,
10737
- "onUpdate:isFullscreen": (G) => q.isFullscreen = G,
10737
+ "onUpdate:isFullscreen": (U) => q.isFullscreen = U,
10738
10738
  kgShowFullscreenButton: !c.value,
10739
10739
  kgShowConfigButton: !c.value && e.kgShowConfigButton,
10740
- onKgCancel: z
10740
+ onKgCancel: G
10741
10741
  }, null);
10742
10742
  }
10743
10743
  return onUnmounted(() => {
@@ -10932,10 +10932,10 @@ function useKgTable(e) {
10932
10932
  }), _ = computed(() => {
10933
10933
  var y, C;
10934
10934
  return JSON.parse((C = (y = t.varGridConfig.value) == null ? void 0 : y.pg_size_opts) != null ? C : "[]");
10935
- }), b = computed(() => {
10935
+ }), v = computed(() => {
10936
10936
  var y;
10937
10937
  return (y = t.varGridConfig.value) == null ? void 0 : y.pg_size_opt;
10938
- }), v = computed(() => {
10938
+ }), b = computed(() => {
10939
10939
  var y;
10940
10940
  return ((y = t.varGridConfig.value) == null ? void 0 : y.prf_frm_id) || t.formID;
10941
10941
  });
@@ -10952,8 +10952,8 @@ function useKgTable(e) {
10952
10952
  isShowBottomRight: p,
10953
10953
  id: m,
10954
10954
  pageSizeOptions: _,
10955
- pageSizeOption: b,
10956
- profileFormID: v,
10955
+ pageSizeOption: v,
10956
+ profileFormID: b,
10957
10957
  onRowDoubleClick: a,
10958
10958
  onRetrieve: n
10959
10959
  };
@@ -11007,7 +11007,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
11007
11007
  return isString$1(T) && (T = T.replaceAll("\\n", `
11008
11008
  `)), T;
11009
11009
  }), _ = ref(null);
11010
- function b(T) {
11010
+ function v(T) {
11011
11011
  var I, k, V;
11012
11012
  if (T.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
11013
11013
  switch ((I = l.value) == null ? void 0 : I.display_type) {
@@ -11026,7 +11026,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
11026
11026
  break;
11027
11027
  }
11028
11028
  }
11029
- function v() {
11029
+ function b() {
11030
11030
  }
11031
11031
  function y() {
11032
11032
  return createVNode(KgForm, {
@@ -11044,7 +11044,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
11044
11044
  kgRules: i.rules.value[e.kgVarName],
11045
11045
  kgSpan: 24,
11046
11046
  kgDisabled: g.value ? !0 : void 0,
11047
- onKgSubmit: v
11047
+ onKgSubmit: b
11048
11048
  }, null)]
11049
11049
  })]
11050
11050
  });
@@ -11092,7 +11092,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
11092
11092
  return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (I += "kg-table-td-update-link"), createVNode("pre", {
11093
11093
  innerHTML: m.value,
11094
11094
  class: I,
11095
- onClick: b
11095
+ onClick: v
11096
11096
  }, null);
11097
11097
  }
11098
11098
  return () => createVNode("div", {
@@ -11101,7 +11101,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
11101
11101
  }, [C()]);
11102
11102
  }
11103
11103
  }), KgTable_Info = "";
11104
- function _isSlot$6(e) {
11104
+ function _isSlot$7(e) {
11105
11105
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
11106
11106
  }
11107
11107
  const getProps$k = () => ({
@@ -11143,14 +11143,14 @@ const getProps$k = () => ({
11143
11143
  onClick: n,
11144
11144
  class: "btn-clear-check",
11145
11145
  type: "link"
11146
- }, _isSlot$6(s = a.t("kg.KgTableInfo.clearCheck")) ? s : {
11146
+ }, _isSlot$7(s = a.t("kg.KgTableInfo.clearCheck")) ? s : {
11147
11147
  default: () => [s]
11148
11148
  }), e.kgShowLocate && createVNode(Button, {
11149
11149
  disabled: e.kgDisabled,
11150
11150
  onClick: i,
11151
11151
  class: "btn-locate-check",
11152
11152
  type: "link"
11153
- }, _isSlot$6(l = a.t("kg.KgTableInfo.locate")) ? l : {
11153
+ }, _isSlot$7(l = a.t("kg.KgTableInfo.locate")) ? l : {
11154
11154
  default: () => [l]
11155
11155
  })]
11156
11156
  })]), e.kgShowClearTable && createVNode(Button, {
@@ -11158,7 +11158,7 @@ const getProps$k = () => ({
11158
11158
  onClick: o,
11159
11159
  class: "btn-clear-table",
11160
11160
  danger: !0
11161
- }, _isSlot$6(u = a.t("kg.KgTableInfo.clearTable")) ? u : {
11161
+ }, _isSlot$7(u = a.t("kg.KgTableInfo.clearTable")) ? u : {
11162
11162
  default: () => [u]
11163
11163
  })]);
11164
11164
  };
@@ -11185,8 +11185,8 @@ const getProps$k = () => ({
11185
11185
  }) => {
11186
11186
  const u = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
11187
11187
  return i = watch(l, (c) => {
11188
- var g, p, m, _, b, v, y, C, E, T, I;
11189
- c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = a == null ? void 0 : a.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (m = u == null ? void 0 : u.mult_flg) != null ? m : 0, c.show_check_column_flg = (_ = u == null ? void 0 : u.show_check_column_flg) != null ? _ : 0, c.show_bottom_left_flg = (b = u == null ? void 0 : u.show_bottom_left_flg) != null ? b : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (E = u == null ? void 0 : u.pg_size_opt) != null ? E : 10, c.cmd_prm = (T = u == null ? void 0 : u.cmd_prm) != null ? T : void 0, c.button_display_type = (I = u == null ? void 0 : u.button_display_type) != null ? I : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
11188
+ var g, p, m, _, v, b, y, C, E, T, I;
11189
+ c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = a == null ? void 0 : a.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (m = u == null ? void 0 : u.mult_flg) != null ? m : 0, c.show_check_column_flg = (_ = u == null ? void 0 : u.show_check_column_flg) != null ? _ : 0, c.show_bottom_left_flg = (v = u == null ? void 0 : u.show_bottom_left_flg) != null ? v : 1, c.show_bottom_right_flg = (b = u == null ? void 0 : u.show_bottom_right_flg) != null ? b : 1, c.convert_sort_field_to_under_score_flg = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (E = u == null ? void 0 : u.pg_size_opt) != null ? E : 10, c.cmd_prm = (T = u == null ? void 0 : u.cmd_prm) != null ? T : void 0, c.button_display_type = (I = u == null ? void 0 : u.button_display_type) != null ? I : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
11190
11190
  }, {
11191
11191
  immediate: !0
11192
11192
  }), !1;
@@ -11375,14 +11375,14 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
11375
11375
  return o.onOpen(async ({
11376
11376
  model: i
11377
11377
  }) => {
11378
- var s, l, u, c, g, p, m, _, b, v;
11379
- return i.value.grd_var_nam = `${(l = (s = n.currentVarGridMaster.value) == null ? void 0 : s.grd_var_nam) != null ? l : ""}_COPY`, i.value.frm_id = (c = (u = n.currentVarGridMaster.value) == null ? void 0 : u.frm_id) != null ? c : "", i.value.usr_id = (p = (g = n.currentVarGridMaster.value) == null ? void 0 : g.usr_id) != null ? p : "", i.value.grp_nam = (_ = (m = n.currentVarGridMaster.value) == null ? void 0 : m.grp_nam) != null ? _ : "", i.value.varGridDetails = (v = (b = n.currentVarGridMaster.value) == null ? void 0 : b.varGridDetails) != null ? v : [], !1;
11378
+ var s, l, u, c, g, p, m, _, v, b;
11379
+ return i.value.grd_var_nam = `${(l = (s = n.currentVarGridMaster.value) == null ? void 0 : s.grd_var_nam) != null ? l : ""}_COPY`, i.value.frm_id = (c = (u = n.currentVarGridMaster.value) == null ? void 0 : u.frm_id) != null ? c : "", i.value.usr_id = (p = (g = n.currentVarGridMaster.value) == null ? void 0 : g.usr_id) != null ? p : "", i.value.grp_nam = (_ = (m = n.currentVarGridMaster.value) == null ? void 0 : m.grp_nam) != null ? _ : "", i.value.varGridDetails = (b = (v = n.currentVarGridMaster.value) == null ? void 0 : v.varGridDetails) != null ? b : [], !1;
11380
11380
  }), o.onBeforeOk(async ({
11381
11381
  model: i
11382
11382
  }) => (i.value, !1)), o.onOk(async () => (n.store.retrieve(n.formID), !1)), () => createVNode(KgSubmit, null, null);
11383
11383
  }
11384
11384
  });
11385
- function _isSlot$5(e) {
11385
+ function _isSlot$6(e) {
11386
11386
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
11387
11387
  }
11388
11388
  const KgTableSetting = defineComponent({
@@ -11426,10 +11426,10 @@ const KgTableSetting = defineComponent({
11426
11426
  })
11427
11427
  }), message.success(a.t("kg.updateSuccess"));
11428
11428
  }
11429
- async function b() {
11429
+ async function v() {
11430
11430
  p.value = !0, await nextTick(), n.store.setIsCopying(FORM_ID__VAR_GRID_MASTER__SAVE, !0);
11431
11431
  }
11432
- function v() {
11432
+ function b() {
11433
11433
  return createVNode(Menu.SubMenu, {
11434
11434
  key: "1",
11435
11435
  title: a.t("kg.KgTable.column"),
@@ -11490,12 +11490,12 @@ const KgTableSetting = defineComponent({
11490
11490
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
11491
11491
  key: "save-grid-view",
11492
11492
  onClick: _
11493
- }, _isSlot$5(E = a.t("kg.KgTable.saveVarGridMaster")) ? E : {
11493
+ }, _isSlot$6(E = a.t("kg.KgTable.saveVarGridMaster")) ? E : {
11494
11494
  default: () => [E]
11495
11495
  }), createVNode(Menu.Item, {
11496
11496
  key: "save-grid-view-as",
11497
- onClick: b
11498
- }, _isSlot$5(T = a.t("kg.KgTable.saveVarGridMasterAs")) ? T : {
11497
+ onClick: v
11498
+ }, _isSlot$6(T = a.t("kg.KgTable.saveVarGridMasterAs")) ? T : {
11499
11499
  default: () => [T]
11500
11500
  })]);
11501
11501
  },
@@ -11509,7 +11509,7 @@ const KgTableSetting = defineComponent({
11509
11509
  onClick: () => {
11510
11510
  c.visible = !0;
11511
11511
  }
11512
- }, _isSlot$5(E = a.t("kg.KgTable.config")) ? E : {
11512
+ }, _isSlot$6(E = a.t("kg.KgTable.config")) ? E : {
11513
11513
  default: () => [E]
11514
11514
  });
11515
11515
  }
@@ -11526,7 +11526,7 @@ const KgTableSetting = defineComponent({
11526
11526
  "onUpdate:openKeys": (E) => l.value = E,
11527
11527
  selectable: !1
11528
11528
  }, {
11529
- default: () => [v(), y(), C()]
11529
+ default: () => [b(), y(), C()]
11530
11530
  })
11531
11531
  }), c.visible && createVNode(KgTableSettingConfigModal, {
11532
11532
  visible: c.visible,
@@ -11552,10 +11552,10 @@ function _useColumns() {
11552
11552
  }) => m + 1
11553
11553
  }, ...(p = l == null ? void 0 : l.map((m) => {
11554
11554
  const _ = m.var_nam;
11555
- function b() {
11555
+ function v() {
11556
11556
  return m.width === "auto" ? "auto" : Number(m.width) || KG_TABLE_TD_DEFAULT_WIDTH;
11557
11557
  }
11558
- function v() {
11558
+ function b() {
11559
11559
  return e.t(_).value;
11560
11560
  }
11561
11561
  function y() {
@@ -11573,10 +11573,10 @@ function _useColumns() {
11573
11573
  function T() {
11574
11574
  return ["left", "center", "right"].includes(m.align || "") ? m.align : "left";
11575
11575
  }
11576
- const I = b();
11576
+ const I = v();
11577
11577
  return {
11578
11578
  dataIndex: _,
11579
- title: v(),
11579
+ title: b(),
11580
11580
  width: I,
11581
11581
  resizable: typeof I == "number",
11582
11582
  minWidth: KG_TABLE_TD_MIN_WIDTH,
@@ -11635,13 +11635,17 @@ function _useResizeObserver(e) {
11635
11635
  a == null || a.disconnect();
11636
11636
  }), {};
11637
11637
  }
11638
- const KgTable$1 = "", KgTable = defineComponent({
11638
+ const KgTable$1 = "";
11639
+ function _isSlot$5(e) {
11640
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
11641
+ }
11642
+ const KgTable = defineComponent({
11639
11643
  name: "KgTable",
11640
11644
  setup: function(e, {
11641
11645
  slots: t,
11642
11646
  emit: r
11643
11647
  }) {
11644
- const a = inject("$dayjs", dayjs), n = inject(DI_KG_SLOTS, null), o = useKg(), i = useKgVar(), s = useKgSearch(), l = useKgButton(), u = useKgTable(), c = useKgSubmit();
11648
+ const a = inject("$dayjs", dayjs), n = inject(DI_KG_VAR__KG_SLOTS, null), o = useKg(), i = useKgVar(), s = useKgSearch(), l = useKgButton(), u = useKgTable(), c = useKgSubmit();
11645
11649
  s.onSearch((L) => {
11646
11650
  w(L);
11647
11651
  }), s.onReset(() => {
@@ -11653,13 +11657,13 @@ const KgTable$1 = "", KgTable = defineComponent({
11653
11657
  switch (L) {
11654
11658
  case "setSelecte":
11655
11659
  if (F[0] === i.formID) {
11656
- const U = F[1], z = F[2];
11660
+ const G = F[1], z = F[2];
11657
11661
  switch (!0) {
11658
- case (z && !A.value.includes(U[u.id.value])):
11659
- D([...A.value, U[u.id.value]]);
11662
+ case (z && !A.value.includes(G[u.id.value])):
11663
+ D([...A.value, G[u.id.value]]);
11660
11664
  break;
11661
- case (!z && A.value.includes(U[u.id.value])):
11662
- D(without$1(A.value, U[u.id.value]));
11665
+ case (!z && A.value.includes(G[u.id.value])):
11666
+ D(without$1(A.value, G[u.id.value]));
11663
11667
  break;
11664
11668
  }
11665
11669
  }
@@ -11670,28 +11674,28 @@ const KgTable$1 = "", KgTable = defineComponent({
11670
11674
  columns: m,
11671
11675
  scrollX: _
11672
11676
  } = _useColumns(), {
11673
- isLoading: b
11674
- } = _useLoading(), v = ref(null);
11675
- _useResizeObserver(v);
11677
+ isLoading: v
11678
+ } = _useLoading(), b = ref(null);
11679
+ _useResizeObserver(b);
11676
11680
  const y = computed(() => {
11677
11681
  var L, F;
11678
11682
  return (F = (L = i.varButtonSearch.value) == null ? void 0 : L.cmd) != null ? F : null;
11679
11683
  }), C = computed(() => {
11680
- var F, U, z, J, X, de, pe;
11684
+ var F, G, z, J, X, ce, fe;
11681
11685
  let L = {
11682
11686
  pageNo: O.pageIndex,
11683
11687
  pageSize: O.pageSize,
11684
11688
  ...K,
11685
- ...(U = (F = s.model) == null ? void 0 : F.value) != null ? U : {}
11689
+ ...(G = (F = s.model) == null ? void 0 : F.value) != null ? G : {}
11686
11690
  };
11687
11691
  return i.varButtonSearch.value && (L = {
11688
11692
  ...L,
11689
11693
  ...KgVarUtil.parseCommandParameter((J = (z = i.varButtonSearch.value) == null ? void 0 : z.cmd_prm) != null ? J : "")
11690
11694
  }), (X = i.varGridConfig.value) != null && X.cmd_prm && (L = {
11691
11695
  ...L,
11692
- ...KgVarUtil.parseCommandParameter((de = i.varGridConfig.value.cmd_prm) != null ? de : "")
11693
- }), ((pe = i.varGridConfig.value) == null ? void 0 : pe.convert_sort_field_to_under_score_flg) === 1 && L.column && (L.column = snakeCase$1(L.column)), L;
11694
- }), E = computed(() => b.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || O.total === 0), T = computed(() => b.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value), I = computed(() => {
11696
+ ...KgVarUtil.parseCommandParameter((ce = i.varGridConfig.value.cmd_prm) != null ? ce : "")
11697
+ }), ((fe = i.varGridConfig.value) == null ? void 0 : fe.convert_sort_field_to_under_score_flg) === 1 && L.column && (L.column = snakeCase$1(L.column)), L;
11698
+ }), E = computed(() => v.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || O.total === 0), T = computed(() => v.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value), I = computed(() => {
11695
11699
  var L;
11696
11700
  if (((L = i.varGridConfig.value) == null ? void 0 : L.show_check_column_flg) === 1)
11697
11701
  return {
@@ -11726,8 +11730,8 @@ const KgTable$1 = "", KgTable = defineComponent({
11726
11730
  });
11727
11731
  watch(u.pageSizeOptions, (L) => {
11728
11732
  L.length > 0 && !L.includes(O.pageSize) && (O.pageSize = u.pageSizeOption.value);
11729
- }), watch([y, u.isReadAutomatically, s.isReady], ([L, F, U]) => {
11730
- L && F && U && !u.store.getIsRetrieved(i.formID) && w(!0);
11733
+ }), watch([y, u.isReadAutomatically, s.isReady], ([L, F, G]) => {
11734
+ L && F && G && !u.store.getIsRetrieved(i.formID) && w(!0);
11731
11735
  }, {
11732
11736
  immediate: !0
11733
11737
  }), watch(i.isCreating, (L, F) => {
@@ -11755,10 +11759,10 @@ const KgTable$1 = "", KgTable = defineComponent({
11755
11759
  }
11756
11760
  switch (L == null ? void 0 : L.detail) {
11757
11761
  case 1:
11758
- A.value = [F[u.id.value]], u.store.setSelectedRows(i.formID, A.value.map((U) => {
11762
+ A.value = [F[u.id.value]], u.store.setSelectedRows(i.formID, A.value.map((G) => {
11759
11763
  var z;
11760
- return (z = M.value) == null ? void 0 : z.find((J) => J[u.id.value] === U);
11761
- }).filter((U) => !!U));
11764
+ return (z = M.value) == null ? void 0 : z.find((J) => J[u.id.value] === G);
11765
+ }).filter((G) => !!G));
11762
11766
  break;
11763
11767
  case 2:
11764
11768
  u.store.emit(i.formID, "rowDoubleClick", F);
@@ -11768,11 +11772,11 @@ const KgTable$1 = "", KgTable = defineComponent({
11768
11772
  }
11769
11773
  function w(L = !1) {
11770
11774
  const F = watch(g, (z) => {
11771
- z && (setTimeout(() => F()), U());
11775
+ z && (setTimeout(() => F()), G());
11772
11776
  }, {
11773
11777
  immediate: !0
11774
11778
  });
11775
- async function U() {
11779
+ async function G() {
11776
11780
  var z, J;
11777
11781
  if (!y.value) {
11778
11782
  Logger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -11813,12 +11817,12 @@ const KgTable$1 = "", KgTable = defineComponent({
11813
11817
  }
11814
11818
  function D(L) {
11815
11819
  A.value = L, u.store.setSelectedRows(i.formID, A.value.map((F) => {
11816
- var U;
11817
- return (U = M.value) == null ? void 0 : U.find((z) => z[u.id.value] === F);
11820
+ var G;
11821
+ return (G = M.value) == null ? void 0 : G.find((z) => z[u.id.value] === F);
11818
11822
  }).filter((F) => !!F));
11819
11823
  }
11820
11824
  function B(L) {
11821
- var F, U;
11825
+ var F, G;
11822
11826
  switch (u.isMultiSelect.value) {
11823
11827
  case !0:
11824
11828
  {
@@ -11829,7 +11833,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11829
11833
  case !1:
11830
11834
  {
11831
11835
  const z = L[u.id.value];
11832
- (U = A.value) != null && U.includes(z) ? A.value = [] : A.value = [z];
11836
+ (G = A.value) != null && G.includes(z) ? A.value = [] : A.value = [z];
11833
11837
  }
11834
11838
  break;
11835
11839
  }
@@ -11841,13 +11845,13 @@ const KgTable$1 = "", KgTable = defineComponent({
11841
11845
  function x(L, F) {
11842
11846
  F.width = L, i.store.setVarGridDetailWidth(i.formID, F.dataIndex, L);
11843
11847
  }
11844
- async function H(L, F, U, z) {
11848
+ async function H(L, F, G, z) {
11845
11849
  var J;
11846
11850
  switch (z.action) {
11847
11851
  case "sort":
11848
11852
  {
11849
11853
  await nextTick();
11850
- let X = U;
11854
+ let X = G;
11851
11855
  X.order ? (K.column = (J = X.field) != null ? J : void 0, K.order = X.order === "ascend" ? "asc" : X.order === "descend" ? "desc" : void 0) : (K.column = void 0, K.order = void 0), w(!0);
11852
11856
  }
11853
11857
  break;
@@ -11855,13 +11859,13 @@ const KgTable$1 = "", KgTable = defineComponent({
11855
11859
  }
11856
11860
  function Y(L, F) {
11857
11861
  var z;
11858
- const U = F[u.id.value];
11862
+ const G = F[u.id.value];
11859
11863
  switch ((z = i.varGridConfig.value) == null ? void 0 : z.expand_accordion_flg) {
11860
11864
  case 0:
11861
- L ? p.value = uniq([...p.value, U]) : p.value = without$1(p.value, U);
11865
+ L ? p.value = uniq([...p.value, G]) : p.value = without$1(p.value, G);
11862
11866
  break;
11863
11867
  default:
11864
- L ? p.value = [U] : p.value = [];
11868
+ L ? p.value = [G] : p.value = [];
11865
11869
  break;
11866
11870
  }
11867
11871
  }
@@ -11870,8 +11874,8 @@ const KgTable$1 = "", KgTable = defineComponent({
11870
11874
  }
11871
11875
  function Z(L) {
11872
11876
  A.value = [L[u.id.value]], u.store.setSelectedRows(i.formID, A.value.map((F) => {
11873
- var U;
11874
- return (U = M.value) == null ? void 0 : U.find((z) => z[u.id.value] === F);
11877
+ var G;
11878
+ return (G = M.value) == null ? void 0 : G.find((z) => z[u.id.value] === F);
11875
11879
  }).filter((F) => !!F)), l.click(i.formID, KG_BUTTON_TYPE.UPDATE);
11876
11880
  }
11877
11881
  function ae({
@@ -11885,37 +11889,68 @@ const KgTable$1 = "", KgTable = defineComponent({
11885
11889
  return createVNode("pre", null, [L]);
11886
11890
  }
11887
11891
  }
11888
- function ne({
11892
+ function ne() {
11893
+ var F;
11894
+ let L;
11895
+ return (F = n == null ? void 0 : n.KgTable) != null && F["summary.bodyCell"] ? createVNode(TableSummary, {
11896
+ fixed: "bottom"
11897
+ }, {
11898
+ default: () => [createVNode(TableSummary.Row, null, _isSlot$5(L = m.value.map((G, z) => {
11899
+ const J = i.store.getVarGridDetail(i.formID, G.dataIndex);
11900
+ return createVNode(TableSummary.Cell, {
11901
+ index: z
11902
+ }, {
11903
+ default: () => {
11904
+ var X, ce;
11905
+ return [(ce = (X = n == null ? void 0 : n.KgTable) == null ? void 0 : X["summary.bodyCell"]) == null ? void 0 : ce.call(X, {
11906
+ column: G,
11907
+ index: z,
11908
+ varGridDetail: J
11909
+ })];
11910
+ }
11911
+ });
11912
+ })) ? L : {
11913
+ default: () => [L]
11914
+ })]
11915
+ }) : null;
11916
+ }
11917
+ function de({
11889
11918
  column: L,
11890
11919
  index: F,
11891
- record: U,
11920
+ record: G,
11892
11921
  value: z,
11893
11922
  text: J
11894
11923
  }) {
11924
+ var fe;
11895
11925
  let X = "";
11896
11926
  L.customRender ? X = L.customRender({
11897
11927
  index: F,
11898
- record: U,
11928
+ record: G,
11899
11929
  column: L,
11900
11930
  text: J,
11901
11931
  value: z,
11902
11932
  renderIndex: F
11903
11933
  }) : X = z;
11904
- const de = createVNode(KgTableCell, {
11905
- kgRow: U,
11934
+ const ce = createVNode(KgTableCell, {
11935
+ kgRow: G,
11906
11936
  kgValue: X,
11907
11937
  kgVarName: L.dataIndex,
11908
- onKgUpdateLinkClick: () => Z(U)
11938
+ onKgUpdateLinkClick: () => Z(G)
11909
11939
  }, null);
11910
- return t.bodyCell ? t.bodyCell({
11911
- value: z,
11912
- record: U,
11913
- index: F,
11914
- column: L,
11915
- defaultRender: de
11916
- }) : de;
11940
+ if ((fe = n == null ? void 0 : n.KgTable) != null && fe.bodyCell) {
11941
+ const _e = i.store.getVarGridDetail(i.formID, L.dataIndex);
11942
+ return n.KgTable.bodyCell({
11943
+ row: G,
11944
+ index: F,
11945
+ value: z,
11946
+ column: L,
11947
+ varGridDetail: _e,
11948
+ defaultRender: ce
11949
+ });
11950
+ } else
11951
+ return ce;
11917
11952
  }
11918
- function ce() {
11953
+ function ge() {
11919
11954
  return !u.isReadAutomatically.value && !u.store.getIsRetrieved(i.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
11920
11955
  }
11921
11956
  return () => {
@@ -11923,7 +11958,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11923
11958
  return createVNode("div", {
11924
11959
  class: k.value,
11925
11960
  "kg-frm-id": i.formID,
11926
- ref: v
11961
+ ref: b
11927
11962
  }, [createVNode(Table, {
11928
11963
  class: "kg-flex-table",
11929
11964
  size: "small",
@@ -11935,22 +11970,23 @@ const KgTable$1 = "", KgTable = defineComponent({
11935
11970
  showSorterTooltip: !1,
11936
11971
  columns: m.value,
11937
11972
  dataSource: M.value,
11938
- loading: b.value,
11973
+ loading: v.value,
11939
11974
  rowKey: u.id.value,
11940
11975
  rowSelection: I.value,
11941
11976
  expandColumnWidth: 28,
11942
11977
  expandedRowKeys: p.value,
11943
11978
  customRow: (F) => ({
11944
- onClick: (U) => $(U, F)
11979
+ onClick: (G) => $(G, F)
11945
11980
  }),
11946
11981
  onResizeColumn: x,
11947
11982
  onChange: H,
11948
11983
  onExpand: Y
11949
11984
  }, {
11950
11985
  headerCell: ae,
11951
- bodyCell: ne,
11952
- emptyText: ce,
11953
- expandedRowRender: (L = n == null ? void 0 : n.KgTable) == null ? void 0 : L.expandedRowRender
11986
+ bodyCell: de,
11987
+ emptyText: ge,
11988
+ expandedRowRender: (L = n == null ? void 0 : n.KgTable) == null ? void 0 : L.expandedRowRender,
11989
+ summary: ne
11954
11990
  }), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
11955
11991
  class: V.value
11956
11992
  }, [createVNode("div", {
@@ -11976,12 +12012,12 @@ const KgTable$1 = "", KgTable = defineComponent({
11976
12012
  locale: {
11977
12013
  page: ""
11978
12014
  },
11979
- showTotal: (F, U) => o.t("kg.KgTable.totalText", {
11980
- from: U[0],
11981
- to: U[1],
12015
+ showTotal: (F, G) => o.t("kg.KgTable.totalText", {
12016
+ from: G[0],
12017
+ to: G[1],
11982
12018
  total: F
11983
12019
  }),
11984
- onChange: (F, U) => q(F, U)
12020
+ onChange: (F, G) => q(F, G)
11985
12021
  }, null)])])]);
11986
12022
  };
11987
12023
  }
@@ -12002,31 +12038,37 @@ const KgTable$1 = "", KgTable = defineComponent({
12002
12038
  }), KgButtonCopy = defineComponent({
12003
12039
  name: "KgButtonCopy",
12004
12040
  props: getProps$f(),
12005
- setup(e) {
12006
- const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
12007
- var u, c, g, p, m, _, b, v;
12008
- return r.isCreating.value || r.isUpdating.value || r.isDeleting.value || a.isRetrieving.value || ((u = n.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (c = a.selectedRows.value) == null ? void 0 : c.length) != null ? g : 0) === 0 || ((p = n.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((_ = (m = a.selectedRows.value) == null ? void 0 : m.length) != null ? _ : 0) > 1 || ((b = n.value) == null ? void 0 : b.permission_type) === 2 && !t.p((v = n.value) == null ? void 0 : v.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12041
+ setup(e, {
12042
+ attrs: t
12043
+ }) {
12044
+ const r = useKg(), a = useKgVar(), n = useKgTable(), o = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
12045
+ var c, g, p, m, _, v, b, y;
12046
+ return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((c = o.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((p = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? p : 0) === 0 || ((m = o.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((v = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? v : 0) > 1 || ((b = o.value) == null ? void 0 : b.permission_type) === 2 && !r.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12009
12047
  });
12010
- async function i() {
12011
- e.onKgClick && await e.onKgClick() || r.store.setIsCopying(r.formID, !0);
12048
+ async function s() {
12049
+ e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
12012
12050
  }
12013
- function s() {
12051
+ function l() {
12014
12052
  return e.kgIcon ? createVNode("span", {
12015
12053
  class: "anticon"
12016
12054
  }, [createVNode(Icon, {
12017
12055
  icon: e.kgIcon
12018
12056
  }, null)]) : createVNode(CopyOutlined$1, null, null);
12019
12057
  }
12020
- function l() {
12021
- return e.kgText ? e.kgText : t.t("kg.copy");
12058
+ function u() {
12059
+ return e.kgText ? e.kgText : r.t("kg.copy");
12022
12060
  }
12023
12061
  return () => createVNode(Button, {
12024
12062
  type: "primary",
12025
- disabled: o.value,
12026
- ghost: !e.kgPrimary && !o.value,
12027
- onClick: i
12063
+ disabled: i.value,
12064
+ ghost: !e.kgPrimary && !i.value,
12065
+ onClick: s,
12066
+ "kg-var-btn-id": t["kg-var-btn-id"],
12067
+ "kg-frm-id": t["kg-frm-id"],
12068
+ "kg-var-nam": t["kg-var-nam"],
12069
+ "kg-cmd": t["kg-cmd"]
12028
12070
  }, {
12029
- default: () => [s(), l()]
12071
+ default: () => [l(), u()]
12030
12072
  });
12031
12073
  }
12032
12074
  });
@@ -12190,22 +12232,23 @@ const KgButtonCreate = defineComponent({
12190
12232
  props: getProps$f(),
12191
12233
  setup(e, {
12192
12234
  slots: t,
12193
- emit: r
12235
+ emit: r,
12236
+ attrs: a
12194
12237
  }) {
12195
- const a = useKg(), n = useKgVar(), o = useKgButton(), i = useKgTable(), s = useKgSubmit(), l = computed(() => n.store.getVarButton(n.formID, e.kgVarName)), u = computed(() => {
12196
- var C, E, T, I, k, V, M, A;
12197
- return n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((C = l.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((T = (E = i.selectedRows.value) == null ? void 0 : E.length) != null ? T : 0) === 0 || ((I = l.value) == null ? void 0 : I.dis_mult_select_flg) === 1 && ((V = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? V : 0) > 1 || ((M = l.value) == null ? void 0 : M.permission_type) === 2 && !a.p((A = l.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12198
- }), c = computed(() => !!n.isCreatingRequesting.value);
12199
- async function g() {
12200
- e.onKgClick && await e.onKgClick() || n.store.setIsCreating(n.formID, !0);
12201
- }
12202
- function p() {
12203
- o.store.emit(n.formID, "submitSave");
12238
+ const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), u = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), c = computed(() => {
12239
+ var E, T, I, k, V, M, A, O;
12240
+ return o.isUpdating.value || o.isCopying.value || o.isDeleting.value || s.isRetrieving.value || ((E = u.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((I = (T = s.selectedRows.value) == null ? void 0 : T.length) != null ? I : 0) === 0 || ((k = u.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((M = (V = s.selectedRows.value) == null ? void 0 : V.length) != null ? M : 0) > 1 || ((A = u.value) == null ? void 0 : A.permission_type) === 2 && !n.p((O = u.value) == null ? void 0 : O.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12241
+ }), g = computed(() => !!o.isCreatingRequesting.value);
12242
+ async function p() {
12243
+ e.onKgClick && await e.onKgClick() || o.store.setIsCreating(o.formID, !0);
12204
12244
  }
12205
12245
  function m() {
12206
- o.store.emit(n.formID, "submitCancel");
12246
+ i.store.emit(o.formID, "submitSave");
12207
12247
  }
12208
12248
  function _() {
12249
+ i.store.emit(o.formID, "submitCancel");
12250
+ }
12251
+ function v() {
12209
12252
  return e.kgIcon ? createVNode("span", {
12210
12253
  class: "anticon"
12211
12254
  }, [createVNode(Icon, {
@@ -12213,47 +12256,46 @@ const KgButtonCreate = defineComponent({
12213
12256
  }, null)]) : createVNode(PlusOutlined$1, null, null);
12214
12257
  }
12215
12258
  function b() {
12216
- return e.kgText ? e.kgText : a.t("kg.create");
12259
+ return e.kgText ? e.kgText : n.t("kg.create");
12217
12260
  }
12218
- function v() {
12219
- var C, E, T, I;
12220
- return s.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && n.isCreating.value ? null : createVNode(Button, {
12261
+ function y() {
12262
+ return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isCreating.value ? null : createVNode(Button, {
12221
12263
  type: "primary",
12222
- disabled: u.value,
12223
- onClick: g,
12224
- "kg-var-btn-id": (C = l.value) == null ? void 0 : C.id,
12225
- "kg-frm-id": (E = l.value) == null ? void 0 : E.frm_id,
12226
- "kg-var-nam": (T = l.value) == null ? void 0 : T.var_nam,
12227
- "kg-cmd": (I = l.value) == null ? void 0 : I.cmd
12264
+ disabled: c.value,
12265
+ onClick: p,
12266
+ "kg-var-btn-id": a["kg-var-btn-id"],
12267
+ "kg-frm-id": a["kg-frm-id"],
12268
+ "kg-var-nam": a["kg-var-nam"],
12269
+ "kg-cmd": a["kg-cmd"]
12228
12270
  }, {
12229
- default: () => [_(), b()]
12271
+ default: () => [v(), b()]
12230
12272
  });
12231
12273
  }
12232
- function y() {
12233
- return s.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !n.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
12274
+ function C() {
12275
+ return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !o.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
12234
12276
  type: "primary",
12235
- onClick: p,
12236
- disabled: !!n.isCreatingRequesting.value
12277
+ onClick: m,
12278
+ disabled: !!o.isCreatingRequesting.value
12237
12279
  }, {
12238
- default: () => [n.isCreatingRequesting.value ? createVNode(LoadingOutlined$1, null, null) : createVNode(CheckOutlined$1, null, null), a.t("kg.save")]
12280
+ default: () => [o.isCreatingRequesting.value ? createVNode(LoadingOutlined$1, null, null) : createVNode(CheckOutlined$1, null, null), n.t("kg.save")]
12239
12281
  }), createVNode(Button, {
12240
12282
  type: "primary",
12241
- ghost: !c.value,
12242
- disabled: c.value,
12243
- onClick: m
12283
+ ghost: !g.value,
12284
+ disabled: g.value,
12285
+ onClick: _
12244
12286
  }, {
12245
- default: () => [createVNode(StopOutlined$1, null, null), a.t("kg.cancel")]
12287
+ default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
12246
12288
  })]);
12247
12289
  }
12248
- return () => createVNode(Fragment, null, [v(), y()]);
12290
+ return () => createVNode(Fragment, null, [y(), C()]);
12249
12291
  }
12250
12292
  }), KgButtonDelete = defineComponent({
12251
12293
  name: "KgButtonDelete",
12252
12294
  props: getProps$f(),
12253
12295
  setup(e) {
12254
12296
  const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
12255
- var u, c, g, p, m, _, b, v;
12256
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((u = n.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (c = a.selectedRows.value) == null ? void 0 : c.length) != null ? g : 0) === 0 || ((p = n.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((_ = (m = a.selectedRows.value) == null ? void 0 : m.length) != null ? _ : 0) > 1 || ((b = n.value) == null ? void 0 : b.permission_type) === 2 && !t.p((v = n.value) == null ? void 0 : v.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12297
+ var u, c, g, p, m, _, v, b;
12298
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((u = n.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (c = a.selectedRows.value) == null ? void 0 : c.length) != null ? g : 0) === 0 || ((p = n.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((_ = (m = a.selectedRows.value) == null ? void 0 : m.length) != null ? _ : 0) > 1 || ((v = n.value) == null ? void 0 : v.permission_type) === 2 && !t.p((b = n.value) == null ? void 0 : b.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12257
12299
  });
12258
12300
  async function i() {
12259
12301
  e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
@@ -12283,29 +12325,29 @@ const KgButtonCreate = defineComponent({
12283
12325
  props: getProps$f(),
12284
12326
  setup(e) {
12285
12327
  const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
12286
- var _, b;
12287
- return o.value ? (b = (_ = o.value) == null ? void 0 : _.cmd) != null ? b : "" : null;
12328
+ var _, v;
12329
+ return o.value ? (v = (_ = o.value) == null ? void 0 : _.cmd) != null ? v : "" : null;
12288
12330
  }), s = computed(() => {
12289
- var _, b;
12290
- return (b = (_ = o.value) == null ? void 0 : _.cmd_method) != null ? b : "GET";
12331
+ var _, v;
12332
+ return (v = (_ = o.value) == null ? void 0 : _.cmd_method) != null ? v : "GET";
12291
12333
  }), l = computed(() => {
12292
- var b, v, y, C, E, T;
12334
+ var v, b, y, C, E, T;
12293
12335
  let _ = {
12294
- ...(b = a.model.value) != null ? b : {}
12336
+ ...(v = a.model.value) != null ? v : {}
12295
12337
  };
12296
12338
  return o.value && (_ = {
12297
12339
  ..._,
12298
- ...KgVarUtil.parseCommandParameter((y = (v = o.value) == null ? void 0 : v.cmd_prm) != null ? y : "")
12340
+ ...KgVarUtil.parseCommandParameter((y = (b = o.value) == null ? void 0 : b.cmd_prm) != null ? y : "")
12299
12341
  }), (C = r.varGridConfig.value) != null && C.cmd_prm && (_ = {
12300
12342
  ..._,
12301
12343
  ...KgVarUtil.parseCommandParameter((E = r.varGridConfig.value.cmd_prm) != null ? E : "")
12302
12344
  }), ((T = r.varGridConfig.value) == null ? void 0 : T.convert_sort_field_to_under_score_flg) === 1 && _.column && (_.column = snakeCase$1(_.column)), _;
12303
12345
  }), u = computed(() => {
12304
- var _, b, v, y, C, E, T, I;
12305
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((_ = o.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((v = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? v : 0) === 0 || ((y = o.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((E = (C = n.selectedRows.value) == null ? void 0 : C.length) != null ? E : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !t.p((I = o.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12346
+ var _, v, b, y, C, E, T, I;
12347
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((_ = o.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((b = (v = n.selectedRows.value) == null ? void 0 : v.length) != null ? b : 0) === 0 || ((y = o.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((E = (C = n.selectedRows.value) == null ? void 0 : C.length) != null ? E : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !t.p((I = o.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12306
12348
  }), c = ref(!1);
12307
12349
  async function g() {
12308
- var _, b, v;
12350
+ var _, v, b;
12309
12351
  if (!(e.onKgClick && await e.onKgClick())) {
12310
12352
  if (!i.value) {
12311
12353
  Logger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -12324,7 +12366,7 @@ const KgButtonCreate = defineComponent({
12324
12366
  joinParamsToUrl: !0,
12325
12367
  isTransformResponse: !1
12326
12368
  });
12327
- KgUtil.downloadFile(y, `${r.t((b = (_ = o.value) == null ? void 0 : _.export_excel_filename) != null ? b : "export").value}.${(v = o.value) == null ? void 0 : v.export_excel_suffix}`);
12369
+ KgUtil.downloadFile(y, `${r.t((v = (_ = o.value) == null ? void 0 : _.export_excel_filename) != null ? v : "export").value}.${(b = o.value) == null ? void 0 : b.export_excel_suffix}`);
12328
12370
  } catch (y) {
12329
12371
  throw y;
12330
12372
  } finally {
@@ -12360,28 +12402,28 @@ const KgButtonCreate = defineComponent({
12360
12402
  attrs: r
12361
12403
  }) {
12362
12404
  const a = useKg(), n = useKgVar(), o = useKgSearch(), i = useKgTable(), s = computed(() => n.store.getVarButton(n.formID, e.kgVarName)), l = computed(() => {
12363
- var b, v;
12364
- return s.value ? (v = (b = s.value) == null ? void 0 : b.cmd) != null ? v : "" : null;
12405
+ var v, b;
12406
+ return s.value ? (b = (v = s.value) == null ? void 0 : v.cmd) != null ? b : "" : null;
12365
12407
  }), u = computed(() => {
12366
- var b, v;
12367
- return (v = (b = s.value) == null ? void 0 : b.cmd_method) != null ? v : "POST";
12408
+ var v, b;
12409
+ return (b = (v = s.value) == null ? void 0 : v.cmd_method) != null ? b : "POST";
12368
12410
  });
12369
12411
  computed(() => {
12370
- var v, y, C;
12371
- let b = {
12372
- ...(v = o.model.value) != null ? v : {}
12412
+ var b, y, C;
12413
+ let v = {
12414
+ ...(b = o.model.value) != null ? b : {}
12373
12415
  };
12374
- return s.value && (b = {
12375
- ...b,
12416
+ return s.value && (v = {
12417
+ ...v,
12376
12418
  ...KgVarUtil.parseCommandParameter((C = (y = s.value) == null ? void 0 : y.cmd_prm) != null ? C : "")
12377
- }), b;
12419
+ }), v;
12378
12420
  });
12379
12421
  const c = computed(() => {
12380
- var b, v, y, C, E, T, I, k;
12381
- return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((b = s.value) == null ? void 0 : b.dis_no_select_flg) === 1 && ((y = (v = i.selectedRows.value) == null ? void 0 : v.length) != null ? y : 0) === 0 || ((C = s.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((T = (E = i.selectedRows.value) == null ? void 0 : E.length) != null ? T : 0) > 1 || ((I = s.value) == null ? void 0 : I.permission_type) === 2 && !a.p((k = s.value) == null ? void 0 : k.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12422
+ var v, b, y, C, E, T, I, k;
12423
+ return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((v = s.value) == null ? void 0 : v.dis_no_select_flg) === 1 && ((y = (b = i.selectedRows.value) == null ? void 0 : b.length) != null ? y : 0) === 0 || ((C = s.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((T = (E = i.selectedRows.value) == null ? void 0 : E.length) != null ? T : 0) > 1 || ((I = s.value) == null ? void 0 : I.permission_type) === 2 && !a.p((k = s.value) == null ? void 0 : k.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12382
12424
  }), g = ref(!1);
12383
- async function p(b) {
12384
- var v, y;
12425
+ async function p(v) {
12426
+ var b, y;
12385
12427
  if (!l.value)
12386
12428
  return Logger.error("[KgButton] '\u5BFC\u5165\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
12387
12429
  VarButton: s.value
@@ -12389,7 +12431,7 @@ const KgButtonCreate = defineComponent({
12389
12431
  g.value = !0;
12390
12432
  try {
12391
12433
  const C = new FormData();
12392
- C.append("file", b), await httpClient().axiosInstance.request({
12434
+ C.append("file", v), await httpClient().axiosInstance.request({
12393
12435
  method: u.value,
12394
12436
  baseURL: window._CONFIG.domianURL,
12395
12437
  url: l.value,
@@ -12398,7 +12440,7 @@ const KgButtonCreate = defineComponent({
12398
12440
  "Content-Type": "multipart/form-data;charset=UTF-8",
12399
12441
  ignoreCancelToken: !0
12400
12442
  }
12401
- }), message.success(a.t("kg.importSuccess")), (y = (v = o.search).value) == null || y.call(v, !0);
12443
+ }), message.success(a.t("kg.importSuccess")), (y = (b = o.search).value) == null || y.call(b, !0);
12402
12444
  } catch (C) {
12403
12445
  throw C;
12404
12446
  } finally {
@@ -12444,8 +12486,8 @@ const KgButtonCreate = defineComponent({
12444
12486
  var p, m;
12445
12487
  return (m = (p = n.value) == null ? void 0 : p.cmd_method) != null ? m : "GET";
12446
12488
  }), s = computed(() => {
12447
- var p, m, _, b, v, y, C, E;
12448
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((p = n.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((_ = (m = a.selectedRows.value) == null ? void 0 : m.length) != null ? _ : 0) === 0 || ((b = n.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((y = (v = a.selectedRows.value) == null ? void 0 : v.length) != null ? y : 0) > 1 || ((C = n.value) == null ? void 0 : C.permission_type) === 2 && !t.p((E = n.value) == null ? void 0 : E.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12489
+ var p, m, _, v, b, y, C, E;
12490
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((p = n.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((_ = (m = a.selectedRows.value) == null ? void 0 : m.length) != null ? _ : 0) === 0 || ((v = n.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((y = (b = a.selectedRows.value) == null ? void 0 : b.length) != null ? y : 0) > 1 || ((C = n.value) == null ? void 0 : C.permission_type) === 2 && !t.p((E = n.value) == null ? void 0 : E.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12449
12491
  }), l = ref(!1);
12450
12492
  async function u() {
12451
12493
  var p;
@@ -12500,11 +12542,11 @@ const KgButtonCreate = defineComponent({
12500
12542
  props: getProps$f(),
12501
12543
  setup(e) {
12502
12544
  const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
12503
- var c, g, p, m, _, b, v, y;
12504
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((c = o.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((p = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? p : 0) === 0 || ((m = o.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((b = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? b : 0) > 1 || ((v = o.value) == null ? void 0 : v.permission_type) === 2 && !t.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12545
+ var c, g, p, m, _, v, b, y;
12546
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((c = o.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((p = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? p : 0) === 0 || ((m = o.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((v = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? v : 0) > 1 || ((b = o.value) == null ? void 0 : b.permission_type) === 2 && !t.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12505
12547
  });
12506
12548
  async function s() {
12507
- var m, _, b;
12549
+ var m, _, v;
12508
12550
  if (e.onKgClick && await e.onKgClick())
12509
12551
  return;
12510
12552
  const c = (m = e.kgButton) == null ? void 0 : m.cmd;
@@ -12518,13 +12560,13 @@ const KgButtonCreate = defineComponent({
12518
12560
  const p = async () => {
12519
12561
  var y, C, E, T, I, k, V;
12520
12562
  g == null || g.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
12521
- const v = n.selectedRows.value;
12563
+ const b = n.selectedRows.value;
12522
12564
  try {
12523
12565
  await httpClient().request({
12524
12566
  method: (C = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? C : "POST",
12525
12567
  url: c,
12526
12568
  params: KgVarUtil.parseCommandParameter((T = (E = e.kgButton) == null ? void 0 : E.cmd_prm) != null ? T : ""),
12527
- data: v != null ? v : []
12569
+ data: b != null ? b : []
12528
12570
  }), ((I = e.kgButton) == null ? void 0 : I.reload_all_after_done_flg) === 1 && ((V = (k = a.search).value) == null || V.call(k, !0));
12529
12571
  } catch (M) {
12530
12572
  console.error(M);
@@ -12533,10 +12575,10 @@ const KgButtonCreate = defineComponent({
12533
12575
  }
12534
12576
  };
12535
12577
  if (((_ = e.kgButton) == null ? void 0 : _.show_modal_flg) === 1) {
12536
- const v = KgUtil.tryParseJSON((b = e.kgButton) == null ? void 0 : b.modal_props);
12537
- typeof v.content == "string" && (v.content = r.t(v.content).value), g = KgUtil.confirm({
12578
+ const b = KgUtil.tryParseJSON((v = e.kgButton) == null ? void 0 : v.modal_props);
12579
+ typeof b.content == "string" && (b.content = r.t(b.content).value), g = KgUtil.confirm({
12538
12580
  onOk: () => p(),
12539
- ...v
12581
+ ...b
12540
12582
  });
12541
12583
  } else
12542
12584
  p();
@@ -12596,71 +12638,71 @@ const KgButtonCreate = defineComponent({
12596
12638
  props: getProps$f(),
12597
12639
  setup(e, {
12598
12640
  slots: t,
12599
- emit: r
12641
+ emit: r,
12642
+ attrs: a
12600
12643
  }) {
12601
- const a = useKg(), n = useKgVar(), o = useKgTable(), i = useKgButton(), s = useKgSubmit();
12602
- i.store.$onAction(async ({
12603
- name: v,
12604
- args: y
12644
+ const n = useKg(), o = useKgVar(), i = useKgTable(), s = useKgButton(), l = useKgSubmit();
12645
+ s.store.$onAction(async ({
12646
+ name: y,
12647
+ args: C
12605
12648
  }) => {
12606
- switch (v) {
12649
+ switch (y) {
12607
12650
  case "click":
12608
- y[0] === n.formID && await c();
12651
+ C[0] === o.formID && await g();
12609
12652
  break;
12610
12653
  }
12611
12654
  });
12612
- const l = computed(() => n.store.getVarButton(n.formID, e.kgVarName)), u = computed(() => {
12613
- var v, y, C, E, T, I, k, V;
12614
- return n.isCreating.value || n.isCopying.value || n.isDeleting.value || ((v = l.value) == null ? void 0 : v.dis_no_select_flg) === 1 && ((C = (y = o.selectedRows.value) == null ? void 0 : y.length) != null ? C : 0) === 0 || ((E = l.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((I = (T = o.selectedRows.value) == null ? void 0 : T.length) != null ? I : 0) > 1 || ((k = l.value) == null ? void 0 : k.permission_type) === 2 && !a.p((V = l.value) == null ? void 0 : V.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12655
+ const u = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), c = computed(() => {
12656
+ var y, C, E, T, I, k, V, M;
12657
+ return o.isCreating.value || o.isCopying.value || o.isDeleting.value || ((y = u.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((E = (C = i.selectedRows.value) == null ? void 0 : C.length) != null ? E : 0) === 0 || ((T = u.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((k = (I = i.selectedRows.value) == null ? void 0 : I.length) != null ? k : 0) > 1 || ((V = u.value) == null ? void 0 : V.permission_type) === 2 && !n.p((M = u.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12615
12658
  });
12616
- async function c() {
12617
- e.onKgClick && await e.onKgClick() || await i.store.emit(n.formID, "updateBeforeClick", {
12659
+ async function g() {
12660
+ e.onKgClick && await e.onKgClick() || await s.store.emit(o.formID, "updateBeforeClick", {
12618
12661
  button: e.kgButton,
12619
- row: o.selectedRow.value
12620
- }) || n.store.setIsUpdating(n.formID, !0);
12621
- }
12622
- function g() {
12623
- n.store.setIsUpdating(n.formID, !1);
12662
+ row: i.selectedRow.value
12663
+ }) || o.store.setIsUpdating(o.formID, !0);
12624
12664
  }
12625
12665
  function p() {
12666
+ o.store.setIsUpdating(o.formID, !1);
12667
+ }
12668
+ function m() {
12626
12669
  return e.kgIcon ? createVNode("span", {
12627
12670
  class: "anticon"
12628
12671
  }, [createVNode(Icon, {
12629
12672
  icon: e.kgIcon
12630
12673
  }, null)]) : createVNode(EditOutlined$1, null, null);
12631
12674
  }
12632
- function m() {
12633
- return e.kgText ? e.kgText : a.t("kg.update");
12634
- }
12635
12675
  function _() {
12636
- var v, y, C, E;
12637
- return s.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && n.isUpdating.value ? null : createVNode(Button, {
12676
+ return e.kgText ? e.kgText : n.t("kg.update");
12677
+ }
12678
+ function v() {
12679
+ return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isUpdating.value ? null : createVNode(Button, {
12638
12680
  type: "primary",
12639
- disabled: u.value,
12640
- ghost: !e.kgPrimary && !u.value,
12641
- onClick: c,
12642
- "kg-var-btn-id": (v = l.value) == null ? void 0 : v.id,
12643
- "kg-frm-id": (y = l.value) == null ? void 0 : y.frm_id,
12644
- "kg-var-nam": (C = l.value) == null ? void 0 : C.var_nam,
12645
- "kg-cmd": (E = l.value) == null ? void 0 : E.cmd
12681
+ disabled: c.value,
12682
+ ghost: !e.kgPrimary && !c.value,
12683
+ onClick: g,
12684
+ "kg-var-btn-id": a["kg-var-btn-id"],
12685
+ "kg-frm-id": a["kg-frm-id"],
12686
+ "kg-var-nam": a["kg-var-nam"],
12687
+ "kg-cmd": a["kg-cmd"]
12646
12688
  }, {
12647
- default: () => [p(), m()]
12689
+ default: () => [m(), _()]
12648
12690
  });
12649
12691
  }
12650
12692
  function b() {
12651
- return s.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !n.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
12693
+ return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !o.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
12652
12694
  type: "primary"
12653
12695
  }, {
12654
- default: () => [createVNode(CheckOutlined$1, null, null), a.t("kg.save")]
12696
+ default: () => [createVNode(CheckOutlined$1, null, null), n.t("kg.save")]
12655
12697
  }), createVNode(Button, {
12656
12698
  type: "primary",
12657
12699
  ghost: !0,
12658
- onClick: g
12700
+ onClick: p
12659
12701
  }, {
12660
- default: () => [createVNode(StopOutlined$1, null, null), a.t("kg.cancel")]
12702
+ default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
12661
12703
  })]);
12662
12704
  }
12663
- return () => createVNode(Fragment, null, [_(), b()]);
12705
+ return () => createVNode(Fragment, null, [v(), b()]);
12664
12706
  }
12665
12707
  }), KgButton_Item = "";
12666
12708
  function _isSlot$4(e) {
@@ -12798,10 +12840,10 @@ const getProps$e = () => ({
12798
12840
  overlay: () => createVNode(Menu, null, {
12799
12841
  default: () => {
12800
12842
  var m, _;
12801
- return [(_ = (m = r.varButtons.value) == null ? void 0 : m.filter((b) => b.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : _.filter((b) => !(b.permission_type !== 2 && !t.p(b.permission_code))).map((b) => {
12802
- let v;
12803
- return createVNode(Menu.Item, null, _isSlot$3(v = c(b)) ? v : {
12804
- default: () => [v]
12843
+ return [(_ = (m = r.varButtons.value) == null ? void 0 : m.filter((v) => v.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : _.filter((v) => !(v.permission_type !== 2 && !t.p(v.permission_code))).map((v) => {
12844
+ let b;
12845
+ return createVNode(Menu.Item, null, _isSlot$3(b = c(v)) ? b : {
12846
+ default: () => [b]
12805
12847
  });
12806
12848
  })];
12807
12849
  }
@@ -13225,8 +13267,8 @@ const leftVarProfileDetailColumns = (e) => {
13225
13267
  const r = useKg(), a = useKgVar(FORM_ID__VAR_PROFILE_MASTER, !0, 1), n = useKgSearch(FORM_ID__VAR_PROFILE_MASTER), o = useKgButton(FORM_ID__VAR_PROFILE_MASTER), i = useKgSubmit(FORM_ID__VAR_PROFILE_MASTER), s = useKgVar(e.hostFormID);
13226
13268
  i.onOpen(async ({
13227
13269
  isCreating: _,
13228
- isUpdating: b,
13229
- isCopying: v,
13270
+ isUpdating: v,
13271
+ isCopying: b,
13230
13272
  row: y,
13231
13273
  model: C
13232
13274
  }) => {
@@ -13236,8 +13278,8 @@ const leftVarProfileDetailColumns = (e) => {
13236
13278
  case _:
13237
13279
  u.value = [];
13238
13280
  break;
13239
- case b:
13240
13281
  case v:
13282
+ case b:
13241
13283
  if (y != null && y.id)
13242
13284
  try {
13243
13285
  i.store.setIsLoading(a.formID, !0);
@@ -13267,7 +13309,7 @@ const leftVarProfileDetailColumns = (e) => {
13267
13309
  break;
13268
13310
  }
13269
13311
  switch (!0) {
13270
- case v:
13312
+ case b:
13271
13313
  C.value.prf_var_nam = ((k = C.value.prf_var_nam) != null ? k : "") + "_COPY";
13272
13314
  break;
13273
13315
  }
@@ -13275,22 +13317,22 @@ const leftVarProfileDetailColumns = (e) => {
13275
13317
  }), i.onBeforeOk(async ({
13276
13318
  model: _
13277
13319
  }) => {
13278
- var v, y;
13279
- const b = _.value;
13280
- return b.frm_id = s.formID, b.varProfileDetails = (y = (v = l.value) == null ? void 0 : v.filter((C) => u.value.includes(C.id))) != null ? y : [], !1;
13320
+ var b, y;
13321
+ const v = _.value;
13322
+ return v.frm_id = s.formID, v.varProfileDetails = (y = (b = l.value) == null ? void 0 : b.filter((C) => u.value.includes(C.id))) != null ? y : [], !1;
13281
13323
  }), i.onOk(async () => (s.store.retrieve(s.formID), !1)), o.onUpdateBeforeClick(({
13282
13324
  row: _
13283
- }) => (_ == null ? void 0 : _.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((b) => {
13325
+ }) => (_ == null ? void 0 : _.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((v) => {
13284
13326
  KgUtil.confirm({
13285
13327
  content: r.t("kg.KgSearchConfigModal.canNotUpdateSystemVarProfileMaster"),
13286
13328
  okButtonProps: {
13287
13329
  danger: !1
13288
13330
  },
13289
13331
  onOk: () => {
13290
- a.store.setIsCopying(a.formID, !0), b(!0);
13332
+ a.store.setIsCopying(a.formID, !0), v(!0);
13291
13333
  },
13292
13334
  onCancel: () => {
13293
- b(!0);
13335
+ v(!0);
13294
13336
  }
13295
13337
  });
13296
13338
  }) : Promise.resolve(!1)), o.onDeleteOk(() => (s.store.retrieve(s.formID), Promise.resolve(!1)));
@@ -13299,8 +13341,8 @@ const leftVarProfileDetailColumns = (e) => {
13299
13341
  "KgForm.Item": {
13300
13342
  varProfileDetails: ({
13301
13343
  varName: _,
13302
- props: b,
13303
- model: v,
13344
+ props: v,
13345
+ model: b,
13304
13346
  varVariableConfig: y,
13305
13347
  varProfileDetail: C,
13306
13348
  varSubmitField: E
@@ -13354,8 +13396,8 @@ const leftVarProfileDetailColumns = (e) => {
13354
13396
  });
13355
13397
  const g = ({
13356
13398
  disabled: _,
13357
- selectedKeys: b,
13358
- onItemSelectAll: v,
13399
+ selectedKeys: v,
13400
+ onItemSelectAll: b,
13359
13401
  onItemSelect: y
13360
13402
  }) => ({
13361
13403
  getCheckboxProps: (C) => ({
@@ -13365,39 +13407,39 @@ const leftVarProfileDetailColumns = (e) => {
13365
13407
  const T = E.filter((I) => !I.disabled).map(({
13366
13408
  key: I
13367
13409
  }) => I);
13368
- v(T, C);
13410
+ b(T, C);
13369
13411
  },
13370
13412
  onSelect({
13371
13413
  key: C
13372
13414
  }, E) {
13373
13415
  y(C, E);
13374
13416
  },
13375
- selectedRowKeys: b,
13417
+ selectedRowKeys: v,
13376
13418
  columnWidth: 32
13377
13419
  });
13378
13420
  async function p() {
13379
- const _ = watch(n.isReady, async (b) => {
13380
- var v, y;
13381
- b && n.model.value && (setTimeout(() => _(), 0), n.store.patchModel(a.formID, {
13421
+ const _ = watch(n.isReady, async (v) => {
13422
+ var b, y;
13423
+ v && n.model.value && (setTimeout(() => _(), 0), n.store.patchModel(a.formID, {
13382
13424
  frm_id: e.hostFormID
13383
- }), (y = (v = n.search).value) == null || y.call(v));
13425
+ }), (y = (b = n.search).value) == null || y.call(b));
13384
13426
  }, {
13385
13427
  immediate: !0
13386
13428
  });
13387
13429
  }
13388
- function m(_, b, v, y) {
13430
+ function m(_, v, b, y) {
13389
13431
  if (!KgDomUtil.isNotClickable(_.target, ["ant-input"]))
13390
13432
  switch (y.length = 0, _.detail) {
13391
13433
  case 1:
13392
- y[0] = b.id;
13434
+ y[0] = v.id;
13393
13435
  break;
13394
13436
  case 2:
13395
- switch (v) {
13437
+ switch (b) {
13396
13438
  case "left":
13397
- u.value.push(b.id);
13439
+ u.value.push(v.id);
13398
13440
  break;
13399
13441
  case "right":
13400
- u.value = without$1(u.value, b.id);
13442
+ u.value = without$1(u.value, v.id);
13401
13443
  break;
13402
13444
  }
13403
13445
  break;
@@ -13544,7 +13586,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13544
13586
  name: "KgSearch",
13545
13587
  props: getProps$9(),
13546
13588
  setup(e) {
13547
- const t = inject(DI_KG_SLOTS, null), r = useKg(), a = useKgVar(), n = useKgSearch(), o = useKgTable(), {
13589
+ const t = inject(DI_KG_VAR__KG_SLOTS, null), r = useKg(), a = useKgVar(), n = useKgSearch(), o = useKgTable(), {
13548
13590
  isVisible: i,
13549
13591
  isResizable: s,
13550
13592
  isHeaderTeleport: l,
@@ -13558,7 +13600,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13558
13600
  const _ = computed(() => {
13559
13601
  var w, D;
13560
13602
  return !!(o.isRetrieving.value || ((w = a.varButtonSearch.value) == null ? void 0 : w.permission_type) === 2 && !r.p((D = a.varButtonSearch.value) == null ? void 0 : D.permission_code) || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value);
13561
- }), b = computed(() => !!(o.isRetrieving.value || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value)), v = computed(() => !!o.isRetrieving.value), y = ref({
13603
+ }), v = computed(() => !!(o.isRetrieving.value || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value)), b = computed(() => !!o.isRetrieving.value), y = ref({
13562
13604
  visible: !1
13563
13605
  }), C = computed(() => m.value.kgHeight === g.value), E = computed(() => {
13564
13606
  var w, D, B;
@@ -13626,7 +13668,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13626
13668
  return ((B = (D = (w = a.varProfileMasters) == null ? void 0 : w.value) == null ? void 0 : D.length) != null ? B : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
13627
13669
  value: (x = a.currentVarProfileMasterID.value) != null ? x : void 0,
13628
13670
  "onUpdate:value": (H) => a.store.setCurrentVarProfileMasterID(a.formID, H),
13629
- disabled: b.value,
13671
+ disabled: v.value,
13630
13672
  class: "kg-search-profile-master-select"
13631
13673
  }, {
13632
13674
  default: () => {
@@ -13639,7 +13681,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13639
13681
  },
13640
13682
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
13641
13683
  }), createVNode(Button, {
13642
- disabled: b.value,
13684
+ disabled: v.value,
13643
13685
  onClick: () => {
13644
13686
  y.value.visible = !0;
13645
13687
  },
@@ -13669,7 +13711,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13669
13711
  kgText: E.value,
13670
13712
  kgColor: (H = a.varButtonSearch.value) == null ? void 0 : H.color,
13671
13713
  kgPrimary: T.value,
13672
- kgLoading: v.value,
13714
+ kgLoading: b.value,
13673
13715
  onKgClick: O
13674
13716
  }, null)]);
13675
13717
  }
@@ -13789,35 +13831,35 @@ function useMagicKeys(e = {}) {
13789
13831
  } = e, i = reactive(/* @__PURE__ */ new Set()), s = { toJSON() {
13790
13832
  return {};
13791
13833
  }, current: i }, l = t ? reactive(s) : s, u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
13792
- function g(b, v) {
13793
- b in l && (t ? l[b] = v : l[b].value = v);
13834
+ function g(v, b) {
13835
+ v in l && (t ? l[v] = b : l[v].value = b);
13794
13836
  }
13795
13837
  function p() {
13796
- for (const b of c)
13797
- g(b, !1);
13838
+ for (const v of c)
13839
+ g(v, !1);
13798
13840
  }
13799
- function m(b, v) {
13841
+ function m(v, b) {
13800
13842
  var y, C;
13801
- const E = (y = b.key) == null ? void 0 : y.toLowerCase(), T = (C = b.code) == null ? void 0 : C.toLowerCase(), I = [T, E].filter(Boolean);
13802
- T && (v ? i.add(b.code) : i.delete(b.code));
13843
+ const E = (y = v.key) == null ? void 0 : y.toLowerCase(), T = (C = v.code) == null ? void 0 : C.toLowerCase(), I = [T, E].filter(Boolean);
13844
+ T && (b ? i.add(v.code) : i.delete(v.code));
13803
13845
  for (const k of I)
13804
- c.add(k), g(k, v);
13805
- E === "meta" && !v ? (u.forEach((k) => {
13846
+ c.add(k), g(k, b);
13847
+ E === "meta" && !b ? (u.forEach((k) => {
13806
13848
  i.delete(k), g(k, !1);
13807
- }), u.clear()) : typeof b.getModifierState == "function" && b.getModifierState("Meta") && v && [...i, ...I].forEach((k) => u.add(k));
13849
+ }), u.clear()) : typeof v.getModifierState == "function" && v.getModifierState("Meta") && b && [...i, ...I].forEach((k) => u.add(k));
13808
13850
  }
13809
- r && (useEventListener(r, "keydown", (b) => (m(b, !0), o(b)), { passive: n }), useEventListener(r, "keyup", (b) => (m(b, !1), o(b)), { passive: n }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
13851
+ r && (useEventListener(r, "keydown", (v) => (m(v, !0), o(v)), { passive: n }), useEventListener(r, "keyup", (v) => (m(v, !1), o(v)), { passive: n }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
13810
13852
  const _ = new Proxy(l, {
13811
- get(b, v, y) {
13812
- if (typeof v != "string")
13813
- return Reflect.get(b, v, y);
13814
- if (v = v.toLowerCase(), v in a && (v = a[v]), !(v in l))
13815
- if (/[+_-]/.test(v)) {
13816
- const E = v.split(/[+_-]/g).map((T) => T.trim());
13817
- l[v] = computed(() => E.every((T) => unref(_[T])));
13853
+ get(v, b, y) {
13854
+ if (typeof b != "string")
13855
+ return Reflect.get(v, b, y);
13856
+ if (b = b.toLowerCase(), b in a && (b = a[b]), !(b in l))
13857
+ if (/[+_-]/.test(b)) {
13858
+ const E = b.split(/[+_-]/g).map((T) => T.trim());
13859
+ l[b] = computed(() => E.every((T) => unref(_[T])));
13818
13860
  } else
13819
- l[v] = ref(!1);
13820
- const C = Reflect.get(b, v, y);
13861
+ l[b] = ref(!1);
13862
+ const C = Reflect.get(v, b, y);
13821
13863
  return t ? unref(C) : C;
13822
13864
  }
13823
13865
  });
@@ -14206,10 +14248,10 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14206
14248
  onSelect: (P) => V(P)
14207
14249
  }), m = ref({
14208
14250
  visible: !1
14209
- }), _ = computed(() => !!(unref(c) || unref(n) || unref(o) || unref(i))), b = computed(() => {
14251
+ }), _ = computed(() => !!(unref(c) || unref(n) || unref(o) || unref(i))), v = computed(() => {
14210
14252
  var P;
14211
14253
  return !!c.value || ((P = a.getSelectedVarCatalog) == null ? void 0 : P.cust_lvl) === KG_CUSTOM_LEVEL.L0;
14212
- }), v = computed(() => !!(!unref(c) || unref(n) || unref(o))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
14254
+ }), b = computed(() => !!(!unref(c) || unref(n) || unref(o))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
14213
14255
  watch(() => a.getSelectedVar, (P) => {
14214
14256
  P ? C() : (c.value = null, u.value = [], a.setSelectedVarCatalog(null));
14215
14257
  }, {
@@ -14342,8 +14384,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14342
14384
  default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
14343
14385
  }), createVNode(Button, {
14344
14386
  onClick: k,
14345
- disabled: b.value,
14346
- ghost: !b.value,
14387
+ disabled: v.value,
14388
+ ghost: !v.value,
14347
14389
  type: "primary",
14348
14390
  danger: !0
14349
14391
  }, {
@@ -14377,7 +14419,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14377
14419
  }), createVNode("div", {
14378
14420
  class: "buttons"
14379
14421
  }, [createVNode(Button, {
14380
- disabled: v.value,
14422
+ disabled: b.value,
14381
14423
  onClick: I
14382
14424
  }, _isSlot(P = t.t("common.cancelText")) ? P : {
14383
14425
  default: () => [P]
@@ -14763,7 +14805,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14763
14805
  return ((I = (T = r.option.value) == null ? void 0 : T.KgWarehouse) == null ? void 0 : I.enable) !== !1;
14764
14806
  });
14765
14807
  watch(a.visible, (T) => {
14766
- !p.value || (T ? _() : b());
14808
+ !p.value || (T ? _() : v());
14767
14809
  }, {
14768
14810
  immediate: !0
14769
14811
  }), onMounted(() => {
@@ -14775,10 +14817,10 @@ const KgWarehouse$1 = "", getProps = () => ({
14775
14817
  function _() {
14776
14818
  s.value = a.warehouse.value, y();
14777
14819
  }
14778
- function b() {
14820
+ function v() {
14779
14821
  o.value = "", c.value = [], s.value = null;
14780
14822
  }
14781
- function v() {
14823
+ function b() {
14782
14824
  var T;
14783
14825
  !s.value || (e.kgInvisible ? (a.store.setWarehouse(s.value), t("kgOk")) : s.value.id !== ((T = a.warehouse.value) == null ? void 0 : T.id) && (a.store.setWarehouse(s.value), KgUtil.confirm({
14784
14826
  content: r.t("kg.KgWarehouse.reloadMessage"),
@@ -14817,7 +14859,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14817
14859
  ((k = s.value) == null ? void 0 : k.id) === I.id ? s.value = null : s.value = I;
14818
14860
  break;
14819
14861
  case 2:
14820
- s.value = I, v();
14862
+ s.value = I, b();
14821
14863
  break;
14822
14864
  }
14823
14865
  }
@@ -14845,7 +14887,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14845
14887
  okButtonProps: {
14846
14888
  disabled: l.value || !s.value
14847
14889
  },
14848
- onOk: v
14890
+ onOk: b
14849
14891
  }, {
14850
14892
  default: () => [createVNode(Input, {
14851
14893
  value: o.value,
@@ -14916,7 +14958,7 @@ export {
14916
14958
  DEFAULT_MAX_WIDTH,
14917
14959
  DEFAULT_MIN_WIDTH,
14918
14960
  DEFAULT_WIDTH,
14919
- DI_KG_SLOTS,
14961
+ DI_KG_VAR__KG_SLOTS,
14920
14962
  I18N,
14921
14963
  ID_CREATE,
14922
14964
  IPage,