@kengic/vue 0.6.2-beta.0 → 0.6.3-beta.0

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 U = O.w(D.$u ? Date.UTC(D.$y, F, L) : new Date(D.$y, F, L), D);
4017
+ return B ? U : U.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, U, z, J) {
4079
+ return F && (F[U] || F(w, B)) || z[U].slice(0, J);
4080
+ }, de = function(F) {
4081
+ return O.s(H % 12 || 12, F, "0");
4082
+ }, ge = D.meridiem || function(F, U, 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, U) {
4087
+ return U || 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,10 +10310,10 @@ 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 U(), !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(() => {
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
10317
  var G, W, Q;
10318
10318
  switch (!0) {
10319
10319
  case n.isCreating.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
10345
  var G;
10346
- return !!(c.value || q.isFullscreen || ((G = v.value) == null ? void 0 : G.resizable_flg) === 0);
10346
+ return !!(c.value || q.isFullscreen || ((G = b.value) == null ? void 0 : G.resizable_flg) === 0);
10347
10347
  }), $ = computed(() => {
10348
10348
  var G, W;
10349
- return c.value ? 398 : (W = (G = v.value) == null ? void 0 : G.min_width) != null ? W : DEFAULT_MIN_WIDTH;
10349
+ return c.value ? 398 : (W = (G = b.value) == null ? void 0 : G.min_width) != null ? W : DEFAULT_MIN_WIDTH;
10350
10350
  }), w = computed(() => {
10351
10351
  var G, W;
10352
- return c.value ? 398 : (W = (G = v.value) == null ? void 0 : G.max_width) != null ? W : DEFAULT_MAX_WIDTH;
10352
+ return c.value ? 398 : (W = (G = b.value) == null ? void 0 : G.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(() => {
10363
+ } = _useDefaultWidth(), de = computed(() => {
10364
10364
  var G, 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 ((G = b.value) == null ? void 0 : G.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(() => {
10382
+ }), ge = computed(() => {
10383
10383
  var G, W;
10384
10384
  switch (ae.value) {
10385
10385
  case "horizontal":
10386
- switch ((G = v.value) == null ? void 0 : G.label_col_unit) {
10386
+ switch ((G = b.value) == null ? void 0 : G.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;
@@ -10396,7 +10396,7 @@ const getProps$n = () => ({
10396
10396
  }
10397
10397
  });
10398
10398
  watch(Y, (G, W) => {
10399
- G === !0 && F(), W === !0 && G === !1 && U();
10399
+ G === !0 && L(), W === !0 && G === !1 && F();
10400
10400
  }, {
10401
10401
  immediate: !0
10402
10402
  }), watch(ne, (G) => {
@@ -10404,7 +10404,7 @@ const getProps$n = () => ({
10404
10404
  }, {
10405
10405
  immediate: !0
10406
10406
  });
10407
- function F() {
10407
+ function L() {
10408
10408
  var W;
10409
10409
  const G = watch(s.model, (Q) => {
10410
10410
  Q && Object.keys(Q).length > 0 && (setTimeout(() => G()), s.store.emit(n.formID, "open", {
@@ -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 U() {
10427
10427
  switch (!0) {
10428
10428
  case n.isCreating.value:
10429
10429
  n.store.setIsCreating(n.formID, !1);
@@ -10439,7 +10439,7 @@ const getProps$n = () => ({
10439
10439
  break;
10440
10440
  }
10441
10441
  }
10442
- async function J() {
10442
+ async function z() {
10443
10443
  var G, W;
10444
10444
  try {
10445
10445
  if (await s.store.emit(n.formID, "beforeOk", {
@@ -10469,23 +10469,23 @@ 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
10490
  const G = (W = g.value) == null ? void 0 : W.cmd;
10491
10491
  if (!G) {
@@ -10521,7 +10521,7 @@ 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
10526
  const G = (W = p.value) == null ? void 0 : W.cmd;
10527
10527
  if (!G) {
@@ -10557,7 +10557,7 @@ 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
10562
  const G = (W = m.value) == null ? void 0 : W.cmd;
10563
10563
  if (!G) {
@@ -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,23 +10580,23 @@ 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
10589
  url: G,
10590
- params: ge.value,
10591
- data: fe.value
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
10601
  const G = (W = _.value) == null ? void 0 : W.cmd;
10602
10602
  if (!G) {
@@ -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", {
@@ -10646,7 +10646,7 @@ const getProps$n = () => ({
10646
10646
  kgVarName: G.var_nam,
10647
10647
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10648
10648
  kgRules: s.rules.value[G.var_nam],
10649
- onKgSubmit: J
10649
+ onKgSubmit: z
10650
10650
  }, {
10651
10651
  control: ({
10652
10652
  varName: re,
@@ -10667,7 +10667,7 @@ const getProps$n = () => ({
10667
10667
  kgVarName: G.var_nam,
10668
10668
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10669
10669
  kgRules: s.rules.value[G.var_nam],
10670
- onKgSubmit: J
10670
+ onKgSubmit: z
10671
10671
  }, null);
10672
10672
  }
10673
10673
  function ye() {
@@ -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 : {
10697
+ }, _isSlot$8(G = M.value.map(_e)) ? G : {
10698
10698
  default: () => [G]
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;"
@@ -10713,16 +10713,16 @@ const getProps$n = () => ({
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 : {
10716
+ onClick: U
10717
+ }, _isSlot$8(G = a.t("kg.cancel")) ? G : {
10718
10718
  default: () => [G]
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
  }
@@ -10737,7 +10737,7 @@ const getProps$n = () => ({
10737
10737
  "onUpdate:isFullscreen": (G) => q.isFullscreen = G,
10738
10738
  kgShowFullscreenButton: !c.value,
10739
10739
  kgShowConfigButton: !c.value && e.kgShowConfigButton,
10740
- onKgCancel: z
10740
+ onKgCancel: U
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(() => {
@@ -11670,14 +11674,14 @@ 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, U, z, J, X, ce, fe;
11681
11685
  let L = {
11682
11686
  pageNo: O.pageIndex,
11683
11687
  pageSize: O.pageSize,
@@ -11689,9 +11693,9 @@ const KgTable$1 = "", KgTable = defineComponent({
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 {
@@ -11885,37 +11889,70 @@ 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((U, z) => {
11899
+ const J = i.store.getVarGridDetail(i.formID, U.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: U,
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
11920
  record: U,
11892
- value: z,
11893
- text: J
11921
+ text: z,
11922
+ value: J
11894
11923
  }) {
11924
+ var fe;
11895
11925
  let X = "";
11896
11926
  L.customRender ? X = L.customRender({
11897
11927
  index: F,
11898
11928
  record: U,
11899
11929
  column: L,
11900
- text: J,
11901
- value: z,
11930
+ text: z,
11931
+ value: J,
11902
11932
  renderIndex: F
11903
- }) : X = z;
11904
- const de = createVNode(KgTableCell, {
11933
+ }) : X = J;
11934
+ const ce = createVNode(KgTableCell, {
11905
11935
  kgRow: U,
11906
11936
  kgValue: X,
11907
11937
  kgVarName: L.dataIndex,
11908
11938
  onKgUpdateLinkClick: () => Z(U)
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
+ column: L,
11944
+ index: F,
11945
+ record: U,
11946
+ text: z,
11947
+ value: J,
11948
+ row: U,
11949
+ varGridDetail: _e,
11950
+ defaultRender: ce
11951
+ });
11952
+ } else
11953
+ return ce;
11917
11954
  }
11918
- function ce() {
11955
+ function ge() {
11919
11956
  return !u.isReadAutomatically.value && !u.store.getIsRetrieved(i.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
11920
11957
  }
11921
11958
  return () => {
@@ -11923,7 +11960,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11923
11960
  return createVNode("div", {
11924
11961
  class: k.value,
11925
11962
  "kg-frm-id": i.formID,
11926
- ref: v
11963
+ ref: b
11927
11964
  }, [createVNode(Table, {
11928
11965
  class: "kg-flex-table",
11929
11966
  size: "small",
@@ -11935,7 +11972,7 @@ const KgTable$1 = "", KgTable = defineComponent({
11935
11972
  showSorterTooltip: !1,
11936
11973
  columns: m.value,
11937
11974
  dataSource: M.value,
11938
- loading: b.value,
11975
+ loading: v.value,
11939
11976
  rowKey: u.id.value,
11940
11977
  rowSelection: I.value,
11941
11978
  expandColumnWidth: 28,
@@ -11948,9 +11985,10 @@ const KgTable$1 = "", KgTable = defineComponent({
11948
11985
  onExpand: Y
11949
11986
  }, {
11950
11987
  headerCell: ae,
11951
- bodyCell: ne,
11952
- emptyText: ce,
11953
- expandedRowRender: (L = n == null ? void 0 : n.KgTable) == null ? void 0 : L.expandedRowRender
11988
+ bodyCell: de,
11989
+ emptyText: ge,
11990
+ expandedRowRender: (L = n == null ? void 0 : n.KgTable) == null ? void 0 : L.expandedRowRender,
11991
+ summary: ne
11954
11992
  }), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
11955
11993
  class: V.value
11956
11994
  }, [createVNode("div", {
@@ -12002,31 +12040,37 @@ const KgTable$1 = "", KgTable = defineComponent({
12002
12040
  }), KgButtonCopy = defineComponent({
12003
12041
  name: "KgButtonCopy",
12004
12042
  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;
12043
+ setup(e, {
12044
+ attrs: t
12045
+ }) {
12046
+ const r = useKg(), a = useKgVar(), n = useKgTable(), o = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
12047
+ var c, g, p, m, _, v, b, y;
12048
+ 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
12049
  });
12010
- async function i() {
12011
- e.onKgClick && await e.onKgClick() || r.store.setIsCopying(r.formID, !0);
12050
+ async function s() {
12051
+ e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
12012
12052
  }
12013
- function s() {
12053
+ function l() {
12014
12054
  return e.kgIcon ? createVNode("span", {
12015
12055
  class: "anticon"
12016
12056
  }, [createVNode(Icon, {
12017
12057
  icon: e.kgIcon
12018
12058
  }, null)]) : createVNode(CopyOutlined$1, null, null);
12019
12059
  }
12020
- function l() {
12021
- return e.kgText ? e.kgText : t.t("kg.copy");
12060
+ function u() {
12061
+ return e.kgText ? e.kgText : r.t("kg.copy");
12022
12062
  }
12023
12063
  return () => createVNode(Button, {
12024
12064
  type: "primary",
12025
- disabled: o.value,
12026
- ghost: !e.kgPrimary && !o.value,
12027
- onClick: i
12065
+ disabled: i.value,
12066
+ ghost: !e.kgPrimary && !i.value,
12067
+ onClick: s,
12068
+ "kg-var-btn-id": t["kg-var-btn-id"],
12069
+ "kg-frm-id": t["kg-frm-id"],
12070
+ "kg-var-nam": t["kg-var-nam"],
12071
+ "kg-cmd": t["kg-cmd"]
12028
12072
  }, {
12029
- default: () => [s(), l()]
12073
+ default: () => [l(), u()]
12030
12074
  });
12031
12075
  }
12032
12076
  });
@@ -12190,22 +12234,23 @@ const KgButtonCreate = defineComponent({
12190
12234
  props: getProps$f(),
12191
12235
  setup(e, {
12192
12236
  slots: t,
12193
- emit: r
12237
+ emit: r,
12238
+ attrs: a
12194
12239
  }) {
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");
12240
+ const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), u = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), c = computed(() => {
12241
+ var E, T, I, k, V, M, A, O;
12242
+ 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;
12243
+ }), g = computed(() => !!o.isCreatingRequesting.value);
12244
+ async function p() {
12245
+ e.onKgClick && await e.onKgClick() || o.store.setIsCreating(o.formID, !0);
12204
12246
  }
12205
12247
  function m() {
12206
- o.store.emit(n.formID, "submitCancel");
12248
+ i.store.emit(o.formID, "submitSave");
12207
12249
  }
12208
12250
  function _() {
12251
+ i.store.emit(o.formID, "submitCancel");
12252
+ }
12253
+ function v() {
12209
12254
  return e.kgIcon ? createVNode("span", {
12210
12255
  class: "anticon"
12211
12256
  }, [createVNode(Icon, {
@@ -12213,47 +12258,46 @@ const KgButtonCreate = defineComponent({
12213
12258
  }, null)]) : createVNode(PlusOutlined$1, null, null);
12214
12259
  }
12215
12260
  function b() {
12216
- return e.kgText ? e.kgText : a.t("kg.create");
12261
+ return e.kgText ? e.kgText : n.t("kg.create");
12217
12262
  }
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, {
12263
+ function y() {
12264
+ return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isCreating.value ? null : createVNode(Button, {
12221
12265
  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
12266
+ disabled: c.value,
12267
+ onClick: p,
12268
+ "kg-var-btn-id": a["kg-var-btn-id"],
12269
+ "kg-frm-id": a["kg-frm-id"],
12270
+ "kg-var-nam": a["kg-var-nam"],
12271
+ "kg-cmd": a["kg-cmd"]
12228
12272
  }, {
12229
- default: () => [_(), b()]
12273
+ default: () => [v(), b()]
12230
12274
  });
12231
12275
  }
12232
- function y() {
12233
- return s.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !n.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
12276
+ function C() {
12277
+ return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !o.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
12234
12278
  type: "primary",
12235
- onClick: p,
12236
- disabled: !!n.isCreatingRequesting.value
12279
+ onClick: m,
12280
+ disabled: !!o.isCreatingRequesting.value
12237
12281
  }, {
12238
- default: () => [n.isCreatingRequesting.value ? createVNode(LoadingOutlined$1, null, null) : createVNode(CheckOutlined$1, null, null), a.t("kg.save")]
12282
+ default: () => [o.isCreatingRequesting.value ? createVNode(LoadingOutlined$1, null, null) : createVNode(CheckOutlined$1, null, null), n.t("kg.save")]
12239
12283
  }), createVNode(Button, {
12240
12284
  type: "primary",
12241
- ghost: !c.value,
12242
- disabled: c.value,
12243
- onClick: m
12285
+ ghost: !g.value,
12286
+ disabled: g.value,
12287
+ onClick: _
12244
12288
  }, {
12245
- default: () => [createVNode(StopOutlined$1, null, null), a.t("kg.cancel")]
12289
+ default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
12246
12290
  })]);
12247
12291
  }
12248
- return () => createVNode(Fragment, null, [v(), y()]);
12292
+ return () => createVNode(Fragment, null, [y(), C()]);
12249
12293
  }
12250
12294
  }), KgButtonDelete = defineComponent({
12251
12295
  name: "KgButtonDelete",
12252
12296
  props: getProps$f(),
12253
12297
  setup(e) {
12254
12298
  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;
12299
+ var u, c, g, p, m, _, v, b;
12300
+ 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
12301
  });
12258
12302
  async function i() {
12259
12303
  e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
@@ -12283,29 +12327,29 @@ const KgButtonCreate = defineComponent({
12283
12327
  props: getProps$f(),
12284
12328
  setup(e) {
12285
12329
  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;
12330
+ var _, v;
12331
+ return o.value ? (v = (_ = o.value) == null ? void 0 : _.cmd) != null ? v : "" : null;
12288
12332
  }), s = computed(() => {
12289
- var _, b;
12290
- return (b = (_ = o.value) == null ? void 0 : _.cmd_method) != null ? b : "GET";
12333
+ var _, v;
12334
+ return (v = (_ = o.value) == null ? void 0 : _.cmd_method) != null ? v : "GET";
12291
12335
  }), l = computed(() => {
12292
- var b, v, y, C, E, T;
12336
+ var v, b, y, C, E, T;
12293
12337
  let _ = {
12294
- ...(b = a.model.value) != null ? b : {}
12338
+ ...(v = a.model.value) != null ? v : {}
12295
12339
  };
12296
12340
  return o.value && (_ = {
12297
12341
  ..._,
12298
- ...KgVarUtil.parseCommandParameter((y = (v = o.value) == null ? void 0 : v.cmd_prm) != null ? y : "")
12342
+ ...KgVarUtil.parseCommandParameter((y = (b = o.value) == null ? void 0 : b.cmd_prm) != null ? y : "")
12299
12343
  }), (C = r.varGridConfig.value) != null && C.cmd_prm && (_ = {
12300
12344
  ..._,
12301
12345
  ...KgVarUtil.parseCommandParameter((E = r.varGridConfig.value.cmd_prm) != null ? E : "")
12302
12346
  }), ((T = r.varGridConfig.value) == null ? void 0 : T.convert_sort_field_to_under_score_flg) === 1 && _.column && (_.column = snakeCase$1(_.column)), _;
12303
12347
  }), 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;
12348
+ var _, v, b, y, C, E, T, I;
12349
+ 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
12350
  }), c = ref(!1);
12307
12351
  async function g() {
12308
- var _, b, v;
12352
+ var _, v, b;
12309
12353
  if (!(e.onKgClick && await e.onKgClick())) {
12310
12354
  if (!i.value) {
12311
12355
  Logger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -12324,7 +12368,7 @@ const KgButtonCreate = defineComponent({
12324
12368
  joinParamsToUrl: !0,
12325
12369
  isTransformResponse: !1
12326
12370
  });
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}`);
12371
+ 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
12372
  } catch (y) {
12329
12373
  throw y;
12330
12374
  } finally {
@@ -12360,28 +12404,28 @@ const KgButtonCreate = defineComponent({
12360
12404
  attrs: r
12361
12405
  }) {
12362
12406
  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;
12407
+ var v, b;
12408
+ return s.value ? (b = (v = s.value) == null ? void 0 : v.cmd) != null ? b : "" : null;
12365
12409
  }), u = computed(() => {
12366
- var b, v;
12367
- return (v = (b = s.value) == null ? void 0 : b.cmd_method) != null ? v : "POST";
12410
+ var v, b;
12411
+ return (b = (v = s.value) == null ? void 0 : v.cmd_method) != null ? b : "POST";
12368
12412
  });
12369
12413
  computed(() => {
12370
- var v, y, C;
12371
- let b = {
12372
- ...(v = o.model.value) != null ? v : {}
12414
+ var b, y, C;
12415
+ let v = {
12416
+ ...(b = o.model.value) != null ? b : {}
12373
12417
  };
12374
- return s.value && (b = {
12375
- ...b,
12418
+ return s.value && (v = {
12419
+ ...v,
12376
12420
  ...KgVarUtil.parseCommandParameter((C = (y = s.value) == null ? void 0 : y.cmd_prm) != null ? C : "")
12377
- }), b;
12421
+ }), v;
12378
12422
  });
12379
12423
  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;
12424
+ var v, b, y, C, E, T, I, k;
12425
+ 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
12426
  }), g = ref(!1);
12383
- async function p(b) {
12384
- var v, y;
12427
+ async function p(v) {
12428
+ var b, y;
12385
12429
  if (!l.value)
12386
12430
  return Logger.error("[KgButton] '\u5BFC\u5165\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
12387
12431
  VarButton: s.value
@@ -12389,7 +12433,7 @@ const KgButtonCreate = defineComponent({
12389
12433
  g.value = !0;
12390
12434
  try {
12391
12435
  const C = new FormData();
12392
- C.append("file", b), await httpClient().axiosInstance.request({
12436
+ C.append("file", v), await httpClient().axiosInstance.request({
12393
12437
  method: u.value,
12394
12438
  baseURL: window._CONFIG.domianURL,
12395
12439
  url: l.value,
@@ -12398,7 +12442,7 @@ const KgButtonCreate = defineComponent({
12398
12442
  "Content-Type": "multipart/form-data;charset=UTF-8",
12399
12443
  ignoreCancelToken: !0
12400
12444
  }
12401
- }), message.success(a.t("kg.importSuccess")), (y = (v = o.search).value) == null || y.call(v, !0);
12445
+ }), message.success(a.t("kg.importSuccess")), (y = (b = o.search).value) == null || y.call(b, !0);
12402
12446
  } catch (C) {
12403
12447
  throw C;
12404
12448
  } finally {
@@ -12444,8 +12488,8 @@ const KgButtonCreate = defineComponent({
12444
12488
  var p, m;
12445
12489
  return (m = (p = n.value) == null ? void 0 : p.cmd_method) != null ? m : "GET";
12446
12490
  }), 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;
12491
+ var p, m, _, v, b, y, C, E;
12492
+ 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
12493
  }), l = ref(!1);
12450
12494
  async function u() {
12451
12495
  var p;
@@ -12500,11 +12544,11 @@ const KgButtonCreate = defineComponent({
12500
12544
  props: getProps$f(),
12501
12545
  setup(e) {
12502
12546
  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;
12547
+ var c, g, p, m, _, v, b, y;
12548
+ 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
12549
  });
12506
12550
  async function s() {
12507
- var m, _, b;
12551
+ var m, _, v;
12508
12552
  if (e.onKgClick && await e.onKgClick())
12509
12553
  return;
12510
12554
  const c = (m = e.kgButton) == null ? void 0 : m.cmd;
@@ -12518,13 +12562,13 @@ const KgButtonCreate = defineComponent({
12518
12562
  const p = async () => {
12519
12563
  var y, C, E, T, I, k, V;
12520
12564
  g == null || g.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
12521
- const v = n.selectedRows.value;
12565
+ const b = n.selectedRows.value;
12522
12566
  try {
12523
12567
  await httpClient().request({
12524
12568
  method: (C = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? C : "POST",
12525
12569
  url: c,
12526
12570
  params: KgVarUtil.parseCommandParameter((T = (E = e.kgButton) == null ? void 0 : E.cmd_prm) != null ? T : ""),
12527
- data: v != null ? v : []
12571
+ data: b != null ? b : []
12528
12572
  }), ((I = e.kgButton) == null ? void 0 : I.reload_all_after_done_flg) === 1 && ((V = (k = a.search).value) == null || V.call(k, !0));
12529
12573
  } catch (M) {
12530
12574
  console.error(M);
@@ -12533,10 +12577,10 @@ const KgButtonCreate = defineComponent({
12533
12577
  }
12534
12578
  };
12535
12579
  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({
12580
+ const b = KgUtil.tryParseJSON((v = e.kgButton) == null ? void 0 : v.modal_props);
12581
+ typeof b.content == "string" && (b.content = r.t(b.content).value), g = KgUtil.confirm({
12538
12582
  onOk: () => p(),
12539
- ...v
12583
+ ...b
12540
12584
  });
12541
12585
  } else
12542
12586
  p();
@@ -12596,71 +12640,71 @@ const KgButtonCreate = defineComponent({
12596
12640
  props: getProps$f(),
12597
12641
  setup(e, {
12598
12642
  slots: t,
12599
- emit: r
12643
+ emit: r,
12644
+ attrs: a
12600
12645
  }) {
12601
- const a = useKg(), n = useKgVar(), o = useKgTable(), i = useKgButton(), s = useKgSubmit();
12602
- i.store.$onAction(async ({
12603
- name: v,
12604
- args: y
12646
+ const n = useKg(), o = useKgVar(), i = useKgTable(), s = useKgButton(), l = useKgSubmit();
12647
+ s.store.$onAction(async ({
12648
+ name: y,
12649
+ args: C
12605
12650
  }) => {
12606
- switch (v) {
12651
+ switch (y) {
12607
12652
  case "click":
12608
- y[0] === n.formID && await c();
12653
+ C[0] === o.formID && await g();
12609
12654
  break;
12610
12655
  }
12611
12656
  });
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;
12657
+ const u = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), c = computed(() => {
12658
+ var y, C, E, T, I, k, V, M;
12659
+ 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
12660
  });
12616
- async function c() {
12617
- e.onKgClick && await e.onKgClick() || await i.store.emit(n.formID, "updateBeforeClick", {
12661
+ async function g() {
12662
+ e.onKgClick && await e.onKgClick() || await s.store.emit(o.formID, "updateBeforeClick", {
12618
12663
  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);
12664
+ row: i.selectedRow.value
12665
+ }) || o.store.setIsUpdating(o.formID, !0);
12624
12666
  }
12625
12667
  function p() {
12668
+ o.store.setIsUpdating(o.formID, !1);
12669
+ }
12670
+ function m() {
12626
12671
  return e.kgIcon ? createVNode("span", {
12627
12672
  class: "anticon"
12628
12673
  }, [createVNode(Icon, {
12629
12674
  icon: e.kgIcon
12630
12675
  }, null)]) : createVNode(EditOutlined$1, null, null);
12631
12676
  }
12632
- function m() {
12633
- return e.kgText ? e.kgText : a.t("kg.update");
12634
- }
12635
12677
  function _() {
12636
- var v, y, C, E;
12637
- return s.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && n.isUpdating.value ? null : createVNode(Button, {
12678
+ return e.kgText ? e.kgText : n.t("kg.update");
12679
+ }
12680
+ function v() {
12681
+ return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isUpdating.value ? null : createVNode(Button, {
12638
12682
  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
12683
+ disabled: c.value,
12684
+ ghost: !e.kgPrimary && !c.value,
12685
+ onClick: g,
12686
+ "kg-var-btn-id": a["kg-var-btn-id"],
12687
+ "kg-frm-id": a["kg-frm-id"],
12688
+ "kg-var-nam": a["kg-var-nam"],
12689
+ "kg-cmd": a["kg-cmd"]
12646
12690
  }, {
12647
- default: () => [p(), m()]
12691
+ default: () => [m(), _()]
12648
12692
  });
12649
12693
  }
12650
12694
  function b() {
12651
- return s.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !n.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
12695
+ return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !o.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
12652
12696
  type: "primary"
12653
12697
  }, {
12654
- default: () => [createVNode(CheckOutlined$1, null, null), a.t("kg.save")]
12698
+ default: () => [createVNode(CheckOutlined$1, null, null), n.t("kg.save")]
12655
12699
  }), createVNode(Button, {
12656
12700
  type: "primary",
12657
12701
  ghost: !0,
12658
- onClick: g
12702
+ onClick: p
12659
12703
  }, {
12660
- default: () => [createVNode(StopOutlined$1, null, null), a.t("kg.cancel")]
12704
+ default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
12661
12705
  })]);
12662
12706
  }
12663
- return () => createVNode(Fragment, null, [_(), b()]);
12707
+ return () => createVNode(Fragment, null, [v(), b()]);
12664
12708
  }
12665
12709
  }), KgButton_Item = "";
12666
12710
  function _isSlot$4(e) {
@@ -12798,10 +12842,10 @@ const getProps$e = () => ({
12798
12842
  overlay: () => createVNode(Menu, null, {
12799
12843
  default: () => {
12800
12844
  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]
12845
+ 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) => {
12846
+ let b;
12847
+ return createVNode(Menu.Item, null, _isSlot$3(b = c(v)) ? b : {
12848
+ default: () => [b]
12805
12849
  });
12806
12850
  })];
12807
12851
  }
@@ -13225,8 +13269,8 @@ const leftVarProfileDetailColumns = (e) => {
13225
13269
  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
13270
  i.onOpen(async ({
13227
13271
  isCreating: _,
13228
- isUpdating: b,
13229
- isCopying: v,
13272
+ isUpdating: v,
13273
+ isCopying: b,
13230
13274
  row: y,
13231
13275
  model: C
13232
13276
  }) => {
@@ -13236,8 +13280,8 @@ const leftVarProfileDetailColumns = (e) => {
13236
13280
  case _:
13237
13281
  u.value = [];
13238
13282
  break;
13239
- case b:
13240
13283
  case v:
13284
+ case b:
13241
13285
  if (y != null && y.id)
13242
13286
  try {
13243
13287
  i.store.setIsLoading(a.formID, !0);
@@ -13267,7 +13311,7 @@ const leftVarProfileDetailColumns = (e) => {
13267
13311
  break;
13268
13312
  }
13269
13313
  switch (!0) {
13270
- case v:
13314
+ case b:
13271
13315
  C.value.prf_var_nam = ((k = C.value.prf_var_nam) != null ? k : "") + "_COPY";
13272
13316
  break;
13273
13317
  }
@@ -13275,22 +13319,22 @@ const leftVarProfileDetailColumns = (e) => {
13275
13319
  }), i.onBeforeOk(async ({
13276
13320
  model: _
13277
13321
  }) => {
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;
13322
+ var b, y;
13323
+ const v = _.value;
13324
+ 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
13325
  }), i.onOk(async () => (s.store.retrieve(s.formID), !1)), o.onUpdateBeforeClick(({
13282
13326
  row: _
13283
- }) => (_ == null ? void 0 : _.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((b) => {
13327
+ }) => (_ == null ? void 0 : _.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((v) => {
13284
13328
  KgUtil.confirm({
13285
13329
  content: r.t("kg.KgSearchConfigModal.canNotUpdateSystemVarProfileMaster"),
13286
13330
  okButtonProps: {
13287
13331
  danger: !1
13288
13332
  },
13289
13333
  onOk: () => {
13290
- a.store.setIsCopying(a.formID, !0), b(!0);
13334
+ a.store.setIsCopying(a.formID, !0), v(!0);
13291
13335
  },
13292
13336
  onCancel: () => {
13293
- b(!0);
13337
+ v(!0);
13294
13338
  }
13295
13339
  });
13296
13340
  }) : Promise.resolve(!1)), o.onDeleteOk(() => (s.store.retrieve(s.formID), Promise.resolve(!1)));
@@ -13299,8 +13343,8 @@ const leftVarProfileDetailColumns = (e) => {
13299
13343
  "KgForm.Item": {
13300
13344
  varProfileDetails: ({
13301
13345
  varName: _,
13302
- props: b,
13303
- model: v,
13346
+ props: v,
13347
+ model: b,
13304
13348
  varVariableConfig: y,
13305
13349
  varProfileDetail: C,
13306
13350
  varSubmitField: E
@@ -13354,8 +13398,8 @@ const leftVarProfileDetailColumns = (e) => {
13354
13398
  });
13355
13399
  const g = ({
13356
13400
  disabled: _,
13357
- selectedKeys: b,
13358
- onItemSelectAll: v,
13401
+ selectedKeys: v,
13402
+ onItemSelectAll: b,
13359
13403
  onItemSelect: y
13360
13404
  }) => ({
13361
13405
  getCheckboxProps: (C) => ({
@@ -13365,39 +13409,39 @@ const leftVarProfileDetailColumns = (e) => {
13365
13409
  const T = E.filter((I) => !I.disabled).map(({
13366
13410
  key: I
13367
13411
  }) => I);
13368
- v(T, C);
13412
+ b(T, C);
13369
13413
  },
13370
13414
  onSelect({
13371
13415
  key: C
13372
13416
  }, E) {
13373
13417
  y(C, E);
13374
13418
  },
13375
- selectedRowKeys: b,
13419
+ selectedRowKeys: v,
13376
13420
  columnWidth: 32
13377
13421
  });
13378
13422
  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, {
13423
+ const _ = watch(n.isReady, async (v) => {
13424
+ var b, y;
13425
+ v && n.model.value && (setTimeout(() => _(), 0), n.store.patchModel(a.formID, {
13382
13426
  frm_id: e.hostFormID
13383
- }), (y = (v = n.search).value) == null || y.call(v));
13427
+ }), (y = (b = n.search).value) == null || y.call(b));
13384
13428
  }, {
13385
13429
  immediate: !0
13386
13430
  });
13387
13431
  }
13388
- function m(_, b, v, y) {
13432
+ function m(_, v, b, y) {
13389
13433
  if (!KgDomUtil.isNotClickable(_.target, ["ant-input"]))
13390
13434
  switch (y.length = 0, _.detail) {
13391
13435
  case 1:
13392
- y[0] = b.id;
13436
+ y[0] = v.id;
13393
13437
  break;
13394
13438
  case 2:
13395
- switch (v) {
13439
+ switch (b) {
13396
13440
  case "left":
13397
- u.value.push(b.id);
13441
+ u.value.push(v.id);
13398
13442
  break;
13399
13443
  case "right":
13400
- u.value = without$1(u.value, b.id);
13444
+ u.value = without$1(u.value, v.id);
13401
13445
  break;
13402
13446
  }
13403
13447
  break;
@@ -13544,7 +13588,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13544
13588
  name: "KgSearch",
13545
13589
  props: getProps$9(),
13546
13590
  setup(e) {
13547
- const t = inject(DI_KG_SLOTS, null), r = useKg(), a = useKgVar(), n = useKgSearch(), o = useKgTable(), {
13591
+ const t = inject(DI_KG_VAR__KG_SLOTS, null), r = useKg(), a = useKgVar(), n = useKgSearch(), o = useKgTable(), {
13548
13592
  isVisible: i,
13549
13593
  isResizable: s,
13550
13594
  isHeaderTeleport: l,
@@ -13558,7 +13602,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13558
13602
  const _ = computed(() => {
13559
13603
  var w, D;
13560
13604
  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({
13605
+ }), 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
13606
  visible: !1
13563
13607
  }), C = computed(() => m.value.kgHeight === g.value), E = computed(() => {
13564
13608
  var w, D, B;
@@ -13626,7 +13670,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13626
13670
  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
13671
  value: (x = a.currentVarProfileMasterID.value) != null ? x : void 0,
13628
13672
  "onUpdate:value": (H) => a.store.setCurrentVarProfileMasterID(a.formID, H),
13629
- disabled: b.value,
13673
+ disabled: v.value,
13630
13674
  class: "kg-search-profile-master-select"
13631
13675
  }, {
13632
13676
  default: () => {
@@ -13639,7 +13683,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13639
13683
  },
13640
13684
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
13641
13685
  }), createVNode(Button, {
13642
- disabled: b.value,
13686
+ disabled: v.value,
13643
13687
  onClick: () => {
13644
13688
  y.value.visible = !0;
13645
13689
  },
@@ -13669,7 +13713,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13669
13713
  kgText: E.value,
13670
13714
  kgColor: (H = a.varButtonSearch.value) == null ? void 0 : H.color,
13671
13715
  kgPrimary: T.value,
13672
- kgLoading: v.value,
13716
+ kgLoading: b.value,
13673
13717
  onKgClick: O
13674
13718
  }, null)]);
13675
13719
  }
@@ -13789,35 +13833,35 @@ function useMagicKeys(e = {}) {
13789
13833
  } = e, i = reactive(/* @__PURE__ */ new Set()), s = { toJSON() {
13790
13834
  return {};
13791
13835
  }, 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);
13836
+ function g(v, b) {
13837
+ v in l && (t ? l[v] = b : l[v].value = b);
13794
13838
  }
13795
13839
  function p() {
13796
- for (const b of c)
13797
- g(b, !1);
13840
+ for (const v of c)
13841
+ g(v, !1);
13798
13842
  }
13799
- function m(b, v) {
13843
+ function m(v, b) {
13800
13844
  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));
13845
+ const E = (y = v.key) == null ? void 0 : y.toLowerCase(), T = (C = v.code) == null ? void 0 : C.toLowerCase(), I = [T, E].filter(Boolean);
13846
+ T && (b ? i.add(v.code) : i.delete(v.code));
13803
13847
  for (const k of I)
13804
- c.add(k), g(k, v);
13805
- E === "meta" && !v ? (u.forEach((k) => {
13848
+ c.add(k), g(k, b);
13849
+ E === "meta" && !b ? (u.forEach((k) => {
13806
13850
  i.delete(k), g(k, !1);
13807
- }), u.clear()) : typeof b.getModifierState == "function" && b.getModifierState("Meta") && v && [...i, ...I].forEach((k) => u.add(k));
13851
+ }), u.clear()) : typeof v.getModifierState == "function" && v.getModifierState("Meta") && b && [...i, ...I].forEach((k) => u.add(k));
13808
13852
  }
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 }));
13853
+ 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
13854
  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])));
13855
+ get(v, b, y) {
13856
+ if (typeof b != "string")
13857
+ return Reflect.get(v, b, y);
13858
+ if (b = b.toLowerCase(), b in a && (b = a[b]), !(b in l))
13859
+ if (/[+_-]/.test(b)) {
13860
+ const E = b.split(/[+_-]/g).map((T) => T.trim());
13861
+ l[b] = computed(() => E.every((T) => unref(_[T])));
13818
13862
  } else
13819
- l[v] = ref(!1);
13820
- const C = Reflect.get(b, v, y);
13863
+ l[b] = ref(!1);
13864
+ const C = Reflect.get(v, b, y);
13821
13865
  return t ? unref(C) : C;
13822
13866
  }
13823
13867
  });
@@ -14206,10 +14250,10 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14206
14250
  onSelect: (P) => V(P)
14207
14251
  }), m = ref({
14208
14252
  visible: !1
14209
- }), _ = computed(() => !!(unref(c) || unref(n) || unref(o) || unref(i))), b = computed(() => {
14253
+ }), _ = computed(() => !!(unref(c) || unref(n) || unref(o) || unref(i))), v = computed(() => {
14210
14254
  var P;
14211
14255
  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)));
14256
+ }), b = computed(() => !!(!unref(c) || unref(n) || unref(o))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
14213
14257
  watch(() => a.getSelectedVar, (P) => {
14214
14258
  P ? C() : (c.value = null, u.value = [], a.setSelectedVarCatalog(null));
14215
14259
  }, {
@@ -14342,8 +14386,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14342
14386
  default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
14343
14387
  }), createVNode(Button, {
14344
14388
  onClick: k,
14345
- disabled: b.value,
14346
- ghost: !b.value,
14389
+ disabled: v.value,
14390
+ ghost: !v.value,
14347
14391
  type: "primary",
14348
14392
  danger: !0
14349
14393
  }, {
@@ -14377,7 +14421,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14377
14421
  }), createVNode("div", {
14378
14422
  class: "buttons"
14379
14423
  }, [createVNode(Button, {
14380
- disabled: v.value,
14424
+ disabled: b.value,
14381
14425
  onClick: I
14382
14426
  }, _isSlot(P = t.t("common.cancelText")) ? P : {
14383
14427
  default: () => [P]
@@ -14763,7 +14807,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14763
14807
  return ((I = (T = r.option.value) == null ? void 0 : T.KgWarehouse) == null ? void 0 : I.enable) !== !1;
14764
14808
  });
14765
14809
  watch(a.visible, (T) => {
14766
- !p.value || (T ? _() : b());
14810
+ !p.value || (T ? _() : v());
14767
14811
  }, {
14768
14812
  immediate: !0
14769
14813
  }), onMounted(() => {
@@ -14775,10 +14819,10 @@ const KgWarehouse$1 = "", getProps = () => ({
14775
14819
  function _() {
14776
14820
  s.value = a.warehouse.value, y();
14777
14821
  }
14778
- function b() {
14822
+ function v() {
14779
14823
  o.value = "", c.value = [], s.value = null;
14780
14824
  }
14781
- function v() {
14825
+ function b() {
14782
14826
  var T;
14783
14827
  !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
14828
  content: r.t("kg.KgWarehouse.reloadMessage"),
@@ -14817,7 +14861,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14817
14861
  ((k = s.value) == null ? void 0 : k.id) === I.id ? s.value = null : s.value = I;
14818
14862
  break;
14819
14863
  case 2:
14820
- s.value = I, v();
14864
+ s.value = I, b();
14821
14865
  break;
14822
14866
  }
14823
14867
  }
@@ -14845,7 +14889,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14845
14889
  okButtonProps: {
14846
14890
  disabled: l.value || !s.value
14847
14891
  },
14848
- onOk: v
14892
+ onOk: b
14849
14893
  }, {
14850
14894
  default: () => [createVNode(Input, {
14851
14895
  value: o.value,
@@ -14916,7 +14960,7 @@ export {
14916
14960
  DEFAULT_MAX_WIDTH,
14917
14961
  DEFAULT_MIN_WIDTH,
14918
14962
  DEFAULT_WIDTH,
14919
- DI_KG_SLOTS,
14963
+ DI_KG_VAR__KG_SLOTS,
14920
14964
  I18N,
14921
14965
  ID_CREATE,
14922
14966
  IPage,