@kengic/vue 0.6.1-beta.1 → 0.6.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ var Ee = Object.defineProperty;
2
2
  var ke = (e, t, r) => t in e ? Ee(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var d = (e, t, r) => (ke(e, typeof t != "symbol" ? t + "" : t, r), r);
4
4
  import { h, nextTick, createVNode, defineComponent, toRaw, unref, inject, getCurrentInstance, markRaw, ref, watch, reactive, effectScope, isRef, isReactive, toRef, computed, onUnmounted, toRefs, Fragment, isVNode, createTextVNode, provide, onMounted, mergeProps, Teleport, getCurrentScope, onScopeDispose } from "vue";
5
- import { Modal, Spin, Tooltip, Select, SelectOption, Button, Progress, Form, Checkbox, Divider, Row, Col, DatePicker, Input, InputNumber, Switch, Drawer, message, 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, 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) {
@@ -2217,7 +2217,7 @@ var Icon$1 = function(t, r) {
2217
2217
  var p = l ? {
2218
2218
  msTransform: "rotate(".concat(l, "deg)"),
2219
2219
  transform: "rotate(".concat(l, "deg)")
2220
- } : void 0, C = normalizeTwoToneColors(c), y = _slicedToArray(C, 2), T = y[0], E = y[1];
2220
+ } : void 0, T = normalizeTwoToneColors(c), C = _slicedToArray(T, 2), E = C[0], y = C[1];
2221
2221
  return createVNode("span", _objectSpread$k({
2222
2222
  role: "img",
2223
2223
  "aria-label": s.name
@@ -2227,8 +2227,8 @@ var Icon$1 = function(t, r) {
2227
2227
  }), [createVNode(VueIcon, {
2228
2228
  class: _,
2229
2229
  icon: s,
2230
- primaryColor: T,
2231
- secondaryColor: E,
2230
+ primaryColor: E,
2231
+ secondaryColor: y,
2232
2232
  style: p
2233
2233
  }, null)]);
2234
2234
  };
@@ -3026,18 +3026,18 @@ function iconToSVG(e, t) {
3026
3026
  };
3027
3027
  let o = r.body;
3028
3028
  [r, a].forEach((_) => {
3029
- const v = [], p = _.hFlip, C = _.vFlip;
3030
- let y = _.rotate;
3031
- p ? C ? y += 2 : (v.push(
3029
+ const v = [], p = _.hFlip, T = _.vFlip;
3030
+ let C = _.rotate;
3031
+ p ? T ? C += 2 : (v.push(
3032
3032
  "translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
3033
- ), v.push("scale(-1 1)"), n.top = n.left = 0) : C && (v.push(
3033
+ ), v.push("scale(-1 1)"), n.top = n.left = 0) : T && (v.push(
3034
3034
  "translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
3035
3035
  ), v.push("scale(1 -1)"), n.top = n.left = 0);
3036
- let T;
3037
- switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
3036
+ let E;
3037
+ switch (C < 0 && (C -= Math.floor(C / 4) * 4), C = C % 4, C) {
3038
3038
  case 1:
3039
- T = n.height / 2 + n.top, v.unshift(
3040
- "rotate(90 " + T.toString() + " " + T.toString() + ")"
3039
+ E = n.height / 2 + n.top, v.unshift(
3040
+ "rotate(90 " + E.toString() + " " + E.toString() + ")"
3041
3041
  );
3042
3042
  break;
3043
3043
  case 2:
@@ -3046,12 +3046,12 @@ function iconToSVG(e, t) {
3046
3046
  );
3047
3047
  break;
3048
3048
  case 3:
3049
- T = n.width / 2 + n.left, v.unshift(
3050
- "rotate(-90 " + T.toString() + " " + T.toString() + ")"
3049
+ E = n.width / 2 + n.left, v.unshift(
3050
+ "rotate(-90 " + E.toString() + " " + E.toString() + ")"
3051
3051
  );
3052
3052
  break;
3053
3053
  }
3054
- y % 2 === 1 && (n.left !== n.top && (T = n.left, n.left = n.top, n.top = T), n.width !== n.height && (T = n.width, n.width = n.height, n.height = T)), v.length && (o = '<g transform="' + v.join(" ") + '">' + o + "</g>");
3054
+ 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>");
3055
3055
  });
3056
3056
  const s = a.width, i = a.height, l = n.width, u = n.height;
3057
3057
  let c, g;
@@ -3333,8 +3333,8 @@ function sendQuery(e, t, r, a) {
3333
3333
  if (e.random) {
3334
3334
  let k = e.resources.slice(0);
3335
3335
  for (s = []; k.length > 1; ) {
3336
- const R = Math.floor(Math.random() * k.length);
3337
- s.push(k[R]), k = k.slice(0, R).concat(k.slice(R + 1));
3336
+ const w = Math.floor(Math.random() * k.length);
3337
+ s.push(k[w]), k = k.slice(0, w).concat(k.slice(w + 1));
3338
3338
  }
3339
3339
  s = s.concat(k);
3340
3340
  } else
@@ -3350,10 +3350,10 @@ function sendQuery(e, t, r, a) {
3350
3350
  k.status === "pending" && (k.status = "aborted");
3351
3351
  }), m = [];
3352
3352
  }
3353
- function p(k, R) {
3354
- R && (b = []), typeof k == "function" && b.push(k);
3353
+ function p(k, w) {
3354
+ w && (b = []), typeof k == "function" && b.push(k);
3355
3355
  }
3356
- function C() {
3356
+ function T() {
3357
3357
  return {
3358
3358
  startTime: i,
3359
3359
  payload: t,
@@ -3364,18 +3364,18 @@ function sendQuery(e, t, r, a) {
3364
3364
  abort: v
3365
3365
  };
3366
3366
  }
3367
- function y() {
3367
+ function C() {
3368
3368
  l = "failed", b.forEach((k) => {
3369
3369
  k(void 0, c);
3370
3370
  });
3371
3371
  }
3372
- function T() {
3372
+ function E() {
3373
3373
  m.forEach((k) => {
3374
3374
  k.status === "pending" && (k.status = "aborted");
3375
3375
  }), m = [];
3376
3376
  }
3377
- function E(k, R, M) {
3378
- const A = R !== "success";
3377
+ function y(k, w, M) {
3378
+ const A = w !== "success";
3379
3379
  switch (m = m.filter((O) => O !== k), l) {
3380
3380
  case "pending":
3381
3381
  break;
@@ -3386,15 +3386,15 @@ function sendQuery(e, t, r, a) {
3386
3386
  default:
3387
3387
  return;
3388
3388
  }
3389
- if (R === "abort") {
3390
- c = M, y();
3389
+ if (w === "abort") {
3390
+ c = M, C();
3391
3391
  return;
3392
3392
  }
3393
3393
  if (A) {
3394
- c = M, m.length || (s.length ? I() : y());
3394
+ c = M, m.length || (s.length ? I() : C());
3395
3395
  return;
3396
3396
  }
3397
- if (_(), T(), !e.random) {
3397
+ if (_(), E(), !e.random) {
3398
3398
  const O = e.resources.indexOf(k.resource);
3399
3399
  O !== -1 && O !== e.index && (e.index = O);
3400
3400
  }
@@ -3410,23 +3410,23 @@ function sendQuery(e, t, r, a) {
3410
3410
  if (k === void 0) {
3411
3411
  if (m.length) {
3412
3412
  g = setTimeout(() => {
3413
- _(), l === "pending" && (T(), y());
3413
+ _(), l === "pending" && (E(), C());
3414
3414
  }, e.timeout);
3415
3415
  return;
3416
3416
  }
3417
- y();
3417
+ C();
3418
3418
  return;
3419
3419
  }
3420
- const R = {
3420
+ const w = {
3421
3421
  status: "pending",
3422
3422
  resource: k,
3423
3423
  callback: (M, A) => {
3424
- E(R, M, A);
3424
+ y(w, M, A);
3425
3425
  }
3426
3426
  };
3427
- m.push(R), u++, g = setTimeout(I, e.rotate), r(k, t, R.callback);
3427
+ m.push(w), u++, g = setTimeout(I, e.rotate), r(k, t, w.callback);
3428
3428
  }
3429
- return setTimeout(I), C;
3429
+ return setTimeout(I), T;
3430
3430
  }
3431
3431
  function initRedundancy(e) {
3432
3432
  const t = {
@@ -3828,8 +3828,8 @@ const render = (e, t) => {
3828
3828
  p !== !0 && p !== "true" && delete a["aria-hidden"];
3829
3829
  break;
3830
3830
  default: {
3831
- const C = customisationAliases[v];
3832
- C ? (p === !0 || p === "true" || p === 1) && (r[C] = !0) : defaultExtendedIconCustomisations[v] === void 0 && (a[v] = p);
3831
+ const T = customisationAliases[v];
3832
+ T ? (p === !0 || p === "true" || p === 1) && (r[T] = !0) : defaultExtendedIconCustomisations[v] === void 0 && (a[v] = p);
3833
3833
  }
3834
3834
  }
3835
3835
  }
@@ -3955,20 +3955,20 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3955
3955
  (function(r, a) {
3956
3956
  e.exports = a();
3957
3957
  })(commonjsGlobal, function() {
3958
- var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", m = "quarter", b = "year", _ = "date", v = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(P) {
3959
- var V = ["th", "st", "nd", "rd"], w = P % 100;
3960
- return "[" + P + (V[(w - 20) % 10] || V[w] || V[0]) + "]";
3961
- } }, T = function(P, V, w) {
3962
- var D = String(P);
3963
- return !D || D.length >= V ? P : "" + Array(V + 1 - D.length).join(w) + P;
3964
- }, E = { s: T, z: function(P) {
3965
- var V = -P.utcOffset(), w = Math.abs(V), D = Math.floor(w / 60), L = w % 60;
3966
- return (V <= 0 ? "+" : "-") + T(D, 2, "0") + ":" + T(L, 2, "0");
3967
- }, m: function P(V, w) {
3968
- if (V.date() < w.date())
3969
- return -P(w, V);
3970
- var D = 12 * (w.year() - V.year()) + (w.month() - V.month()), L = V.clone().add(D, g), H = w - L < 0, $ = V.clone().add(D + (H ? -1 : 1), g);
3971
- return +(-(D + (w - L) / (H ? L - $ : $ - L)) || 0);
3958
+ var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", m = "quarter", b = "year", _ = "date", v = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|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(P) {
3959
+ var D = ["th", "st", "nd", "rd"], V = P % 100;
3960
+ return "[" + P + (D[(V - 20) % 10] || D[V] || D[0]) + "]";
3961
+ } }, E = function(P, D, V) {
3962
+ var R = String(P);
3963
+ return !R || R.length >= D ? P : "" + Array(D + 1 - R.length).join(V) + P;
3964
+ }, y = { s: E, z: function(P) {
3965
+ var D = -P.utcOffset(), V = Math.abs(D), R = Math.floor(V / 60), L = V % 60;
3966
+ return (D <= 0 ? "+" : "-") + E(R, 2, "0") + ":" + E(L, 2, "0");
3967
+ }, m: function P(D, V) {
3968
+ if (D.date() < V.date())
3969
+ return -P(V, D);
3970
+ var R = 12 * (V.year() - D.year()) + (V.month() - D.month()), L = D.clone().add(R, g), H = V - L < 0, N = D.clone().add(R + (H ? -1 : 1), g);
3971
+ return +(-(R + (V - L) / (H ? L - N : N - L)) || 0);
3972
3972
  }, a: function(P) {
3973
3973
  return P < 0 ? Math.ceil(P) || 0 : Math.floor(P);
3974
3974
  }, p: function(P) {
@@ -3976,41 +3976,41 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3976
3976
  }, u: function(P) {
3977
3977
  return P === void 0;
3978
3978
  } }, I = "en", k = {};
3979
- k[I] = y;
3980
- var R = function(P) {
3981
- return P instanceof B;
3982
- }, M = function P(V, w, D) {
3979
+ k[I] = C;
3980
+ var w = function(P) {
3981
+ return P instanceof K;
3982
+ }, M = function P(D, V, R) {
3983
3983
  var L;
3984
- if (!V)
3984
+ if (!D)
3985
3985
  return I;
3986
- if (typeof V == "string") {
3987
- var H = V.toLowerCase();
3988
- k[H] && (L = H), w && (k[H] = w, L = H);
3989
- var $ = V.split("-");
3990
- if (!L && $.length > 1)
3991
- return P($[0]);
3986
+ if (typeof D == "string") {
3987
+ var H = D.toLowerCase();
3988
+ k[H] && (L = H), V && (k[H] = V, L = H);
3989
+ var N = D.split("-");
3990
+ if (!L && N.length > 1)
3991
+ return P(N[0]);
3992
3992
  } else {
3993
- var G = V.name;
3994
- k[G] = V, L = G;
3993
+ var x = D.name;
3994
+ k[x] = D, L = x;
3995
3995
  }
3996
- return !D && L && (I = L), L || !D && I;
3997
- }, A = function(P, V) {
3998
- if (R(P))
3996
+ return !R && L && (I = L), L || !R && I;
3997
+ }, A = function(P, D) {
3998
+ if (w(P))
3999
3999
  return P.clone();
4000
- var w = typeof V == "object" ? V : {};
4001
- return w.date = P, w.args = arguments, new B(w);
4002
- }, O = E;
4003
- O.l = M, O.i = R, O.w = function(P, V) {
4004
- return A(P, { locale: V.$L, utc: V.$u, x: V.$x, $offset: V.$offset });
4000
+ var V = typeof D == "object" ? D : {};
4001
+ return V.date = P, V.args = arguments, new K(V);
4002
+ }, O = y;
4003
+ O.l = M, O.i = w, O.w = function(P, D) {
4004
+ return A(P, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
4005
4005
  };
4006
- var B = function() {
4007
- function P(w) {
4008
- this.$L = M(w.locale, null, !0), this.parse(w);
4009
- }
4010
- var V = P.prototype;
4011
- return V.parse = function(w) {
4012
- this.$d = function(D) {
4013
- var L = D.date, H = D.utc;
4006
+ var K = function() {
4007
+ function P(V) {
4008
+ this.$L = M(V.locale, null, !0), this.parse(V);
4009
+ }
4010
+ var D = P.prototype;
4011
+ return D.parse = function(V) {
4012
+ this.$d = function(R) {
4013
+ var L = R.date, H = R.utc;
4014
4014
  if (L === null)
4015
4015
  return new Date(NaN);
4016
4016
  if (O.u(L))
@@ -4018,142 +4018,142 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4018
4018
  if (L instanceof Date)
4019
4019
  return new Date(L);
4020
4020
  if (typeof L == "string" && !/Z$/i.test(L)) {
4021
- var $ = L.match(p);
4022
- if ($) {
4023
- var G = $[2] - 1 || 0, q = ($[7] || "0").substring(0, 3);
4024
- return H ? new Date(Date.UTC($[1], G, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, q)) : new Date($[1], G, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, q);
4021
+ var N = L.match(p);
4022
+ if (N) {
4023
+ var x = N[2] - 1 || 0, q = (N[7] || "0").substring(0, 3);
4024
+ return H ? new Date(Date.UTC(N[1], x, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, q)) : new Date(N[1], x, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, q);
4025
4025
  }
4026
4026
  }
4027
4027
  return new Date(L);
4028
- }(w), this.$x = w.x || {}, this.init();
4029
- }, V.init = function() {
4030
- var w = this.$d;
4031
- this.$y = w.getFullYear(), this.$M = w.getMonth(), this.$D = w.getDate(), this.$W = w.getDay(), this.$H = w.getHours(), this.$m = w.getMinutes(), this.$s = w.getSeconds(), this.$ms = w.getMilliseconds();
4032
- }, V.$utils = function() {
4028
+ }(V), this.$x = V.x || {}, this.init();
4029
+ }, D.init = function() {
4030
+ var V = this.$d;
4031
+ this.$y = V.getFullYear(), this.$M = V.getMonth(), this.$D = V.getDate(), this.$W = V.getDay(), this.$H = V.getHours(), this.$m = V.getMinutes(), this.$s = V.getSeconds(), this.$ms = V.getMilliseconds();
4032
+ }, D.$utils = function() {
4033
4033
  return O;
4034
- }, V.isValid = function() {
4034
+ }, D.isValid = function() {
4035
4035
  return this.$d.toString() !== v;
4036
- }, V.isSame = function(w, D) {
4037
- var L = A(w);
4038
- return this.startOf(D) <= L && L <= this.endOf(D);
4039
- }, V.isAfter = function(w, D) {
4040
- return A(w) < this.startOf(D);
4041
- }, V.isBefore = function(w, D) {
4042
- return this.endOf(D) < A(w);
4043
- }, V.$g = function(w, D, L) {
4044
- return O.u(w) ? this[D] : this.set(L, w);
4045
- }, V.unix = function() {
4036
+ }, D.isSame = function(V, R) {
4037
+ var L = A(V);
4038
+ return this.startOf(R) <= L && L <= this.endOf(R);
4039
+ }, D.isAfter = function(V, R) {
4040
+ return A(V) < this.startOf(R);
4041
+ }, D.isBefore = function(V, R) {
4042
+ return this.endOf(R) < A(V);
4043
+ }, D.$g = function(V, R, L) {
4044
+ return O.u(V) ? this[R] : this.set(L, V);
4045
+ }, D.unix = function() {
4046
4046
  return Math.floor(this.valueOf() / 1e3);
4047
- }, V.valueOf = function() {
4047
+ }, D.valueOf = function() {
4048
4048
  return this.$d.getTime();
4049
- }, V.startOf = function(w, D) {
4050
- var L = this, H = !!O.u(D) || D, $ = O.p(w), G = function(K, U) {
4051
- var W = O.w(L.$u ? Date.UTC(L.$y, U, K) : new Date(L.$y, U, K), L);
4052
- return H ? W : W.endOf(u);
4053
- }, q = function(K, U) {
4054
- return O.w(L.toDate()[K].apply(L.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(U)), L);
4055
- }, Y = this.$W, J = this.$M, ne = this.$D, re = "set" + (this.$u ? "UTC" : "");
4056
- switch ($) {
4049
+ }, D.startOf = function(V, R) {
4050
+ var L = this, H = !!O.u(R) || R, N = O.p(V), x = function(B, U) {
4051
+ var z = O.w(L.$u ? Date.UTC(L.$y, U, B) : new Date(L.$y, U, B), L);
4052
+ return H ? z : z.endOf(u);
4053
+ }, q = function(B, U) {
4054
+ return O.w(L.toDate()[B].apply(L.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(U)), L);
4055
+ }, Y = this.$W, Q = this.$M, ae = this.$D, ee = "set" + (this.$u ? "UTC" : "");
4056
+ switch (N) {
4057
4057
  case b:
4058
- return H ? G(1, 0) : G(31, 11);
4058
+ return H ? x(1, 0) : x(31, 11);
4059
4059
  case g:
4060
- return H ? G(1, J) : G(0, J + 1);
4060
+ return H ? x(1, Q) : x(0, Q + 1);
4061
4061
  case c:
4062
- var de = this.$locale().weekStart || 0, F = (Y < de ? Y + 7 : Y) - de;
4063
- return G(H ? ne - F : ne + (6 - F), J);
4062
+ var ce = this.$locale().weekStart || 0, F = (Y < ce ? Y + 7 : Y) - ce;
4063
+ return x(H ? ae - F : ae + (6 - F), Q);
4064
4064
  case u:
4065
4065
  case _:
4066
- return q(re + "Hours", 0);
4066
+ return q(ee + "Hours", 0);
4067
4067
  case l:
4068
- return q(re + "Minutes", 1);
4068
+ return q(ee + "Minutes", 1);
4069
4069
  case i:
4070
- return q(re + "Seconds", 2);
4070
+ return q(ee + "Seconds", 2);
4071
4071
  case s:
4072
- return q(re + "Milliseconds", 3);
4072
+ return q(ee + "Milliseconds", 3);
4073
4073
  default:
4074
4074
  return this.clone();
4075
4075
  }
4076
- }, V.endOf = function(w) {
4077
- return this.startOf(w, !1);
4078
- }, V.$set = function(w, D) {
4079
- var L, H = O.p(w), $ = "set" + (this.$u ? "UTC" : ""), G = (L = {}, L[u] = $ + "Date", L[_] = $ + "Date", L[g] = $ + "Month", L[b] = $ + "FullYear", L[l] = $ + "Hours", L[i] = $ + "Minutes", L[s] = $ + "Seconds", L[o] = $ + "Milliseconds", L)[H], q = H === u ? this.$D + (D - this.$W) : D;
4076
+ }, D.endOf = function(V) {
4077
+ return this.startOf(V, !1);
4078
+ }, D.$set = function(V, R) {
4079
+ var L, H = O.p(V), N = "set" + (this.$u ? "UTC" : ""), x = (L = {}, L[u] = N + "Date", L[_] = N + "Date", L[g] = N + "Month", L[b] = N + "FullYear", L[l] = N + "Hours", L[i] = N + "Minutes", L[s] = N + "Seconds", L[o] = N + "Milliseconds", L)[H], q = H === u ? this.$D + (R - this.$W) : R;
4080
4080
  if (H === g || H === b) {
4081
4081
  var Y = this.clone().set(_, 1);
4082
- Y.$d[G](q), Y.init(), this.$d = Y.set(_, Math.min(this.$D, Y.daysInMonth())).$d;
4082
+ Y.$d[x](q), Y.init(), this.$d = Y.set(_, Math.min(this.$D, Y.daysInMonth())).$d;
4083
4083
  } else
4084
- G && this.$d[G](q);
4084
+ x && this.$d[x](q);
4085
4085
  return this.init(), this;
4086
- }, V.set = function(w, D) {
4087
- return this.clone().$set(w, D);
4088
- }, V.get = function(w) {
4089
- return this[O.p(w)]();
4090
- }, V.add = function(w, D) {
4086
+ }, D.set = function(V, R) {
4087
+ return this.clone().$set(V, R);
4088
+ }, D.get = function(V) {
4089
+ return this[O.p(V)]();
4090
+ }, D.add = function(V, R) {
4091
4091
  var L, H = this;
4092
- w = Number(w);
4093
- var $ = O.p(D), G = function(J) {
4094
- var ne = A(H);
4095
- return O.w(ne.date(ne.date() + Math.round(J * w)), H);
4092
+ V = Number(V);
4093
+ var N = O.p(R), x = function(Q) {
4094
+ var ae = A(H);
4095
+ return O.w(ae.date(ae.date() + Math.round(Q * V)), H);
4096
4096
  };
4097
- if ($ === g)
4098
- return this.set(g, this.$M + w);
4099
- if ($ === b)
4100
- return this.set(b, this.$y + w);
4101
- if ($ === u)
4102
- return G(1);
4103
- if ($ === c)
4104
- return G(7);
4105
- var q = (L = {}, L[i] = a, L[l] = n, L[s] = r, L)[$] || 1, Y = this.$d.getTime() + w * q;
4097
+ if (N === g)
4098
+ return this.set(g, this.$M + V);
4099
+ if (N === b)
4100
+ return this.set(b, this.$y + V);
4101
+ if (N === u)
4102
+ return x(1);
4103
+ if (N === c)
4104
+ return x(7);
4105
+ var q = (L = {}, L[i] = a, L[l] = n, L[s] = r, L)[N] || 1, Y = this.$d.getTime() + V * q;
4106
4106
  return O.w(Y, this);
4107
- }, V.subtract = function(w, D) {
4108
- return this.add(-1 * w, D);
4109
- }, V.format = function(w) {
4110
- var D = this, L = this.$locale();
4107
+ }, D.subtract = function(V, R) {
4108
+ return this.add(-1 * V, R);
4109
+ }, D.format = function(V) {
4110
+ var R = this, L = this.$locale();
4111
4111
  if (!this.isValid())
4112
4112
  return L.invalidDate || v;
4113
- var H = w || "YYYY-MM-DDTHH:mm:ssZ", $ = O.z(this), G = this.$H, q = this.$m, Y = this.$M, J = L.weekdays, ne = L.months, re = function(U, W, Z, X) {
4114
- return U && (U[W] || U(D, H)) || Z[W].slice(0, X);
4115
- }, de = function(U) {
4116
- return O.s(G % 12 || 12, U, "0");
4117
- }, F = L.meridiem || function(U, W, Z) {
4113
+ var H = V || "YYYY-MM-DDTHH:mm:ssZ", N = O.z(this), x = this.$H, q = this.$m, Y = this.$M, Q = L.weekdays, ae = L.months, ee = function(U, z, Z, X) {
4114
+ return U && (U[z] || U(R, H)) || Z[z].slice(0, X);
4115
+ }, ce = function(U) {
4116
+ return O.s(x % 12 || 12, U, "0");
4117
+ }, F = L.meridiem || function(U, z, Z) {
4118
4118
  var X = U < 12 ? "AM" : "PM";
4119
4119
  return Z ? X.toLowerCase() : X;
4120
- }, K = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: O.s(Y + 1, 2, "0"), MMM: re(L.monthsShort, Y, ne, 3), MMMM: re(ne, Y), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: re(L.weekdaysMin, this.$W, J, 2), ddd: re(L.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(G), HH: O.s(G, 2, "0"), h: de(1), hh: de(2), a: F(G, q, !0), A: F(G, q, !1), m: String(q), mm: O.s(q, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: $ };
4121
- return H.replace(C, function(U, W) {
4122
- return W || K[U] || $.replace(":", "");
4120
+ }, B = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: O.s(Y + 1, 2, "0"), MMM: ee(L.monthsShort, Y, ae, 3), MMMM: ee(ae, Y), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: ee(L.weekdaysMin, this.$W, Q, 2), ddd: ee(L.weekdaysShort, this.$W, Q, 3), dddd: Q[this.$W], H: String(x), HH: O.s(x, 2, "0"), h: ce(1), hh: ce(2), a: F(x, q, !0), A: F(x, q, !1), m: String(q), mm: O.s(q, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: N };
4121
+ return H.replace(T, function(U, z) {
4122
+ return z || B[U] || N.replace(":", "");
4123
4123
  });
4124
- }, V.utcOffset = function() {
4124
+ }, D.utcOffset = function() {
4125
4125
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4126
- }, V.diff = function(w, D, L) {
4127
- var H, $ = O.p(D), G = A(w), q = (G.utcOffset() - this.utcOffset()) * a, Y = this - G, J = O.m(this, G);
4128
- return J = (H = {}, H[b] = J / 12, H[g] = J, H[m] = J / 3, H[c] = (Y - q) / 6048e5, H[u] = (Y - q) / 864e5, H[l] = Y / n, H[i] = Y / a, H[s] = Y / r, H)[$] || Y, L ? J : O.a(J);
4129
- }, V.daysInMonth = function() {
4126
+ }, D.diff = function(V, R, L) {
4127
+ var H, N = O.p(R), x = A(V), q = (x.utcOffset() - this.utcOffset()) * a, Y = this - x, Q = O.m(this, x);
4128
+ return Q = (H = {}, H[b] = Q / 12, H[g] = Q, H[m] = Q / 3, H[c] = (Y - q) / 6048e5, H[u] = (Y - q) / 864e5, H[l] = Y / n, H[i] = Y / a, H[s] = Y / r, H)[N] || Y, L ? Q : O.a(Q);
4129
+ }, D.daysInMonth = function() {
4130
4130
  return this.endOf(g).$D;
4131
- }, V.$locale = function() {
4131
+ }, D.$locale = function() {
4132
4132
  return k[this.$L];
4133
- }, V.locale = function(w, D) {
4134
- if (!w)
4133
+ }, D.locale = function(V, R) {
4134
+ if (!V)
4135
4135
  return this.$L;
4136
- var L = this.clone(), H = M(w, D, !0);
4136
+ var L = this.clone(), H = M(V, R, !0);
4137
4137
  return H && (L.$L = H), L;
4138
- }, V.clone = function() {
4138
+ }, D.clone = function() {
4139
4139
  return O.w(this.$d, this);
4140
- }, V.toDate = function() {
4140
+ }, D.toDate = function() {
4141
4141
  return new Date(this.valueOf());
4142
- }, V.toJSON = function() {
4142
+ }, D.toJSON = function() {
4143
4143
  return this.isValid() ? this.toISOString() : null;
4144
- }, V.toISOString = function() {
4144
+ }, D.toISOString = function() {
4145
4145
  return this.$d.toISOString();
4146
- }, V.toString = function() {
4146
+ }, D.toString = function() {
4147
4147
  return this.$d.toUTCString();
4148
4148
  }, P;
4149
- }(), N = B.prototype;
4150
- return A.prototype = N, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", b], ["$D", _]].forEach(function(P) {
4151
- N[P[1]] = function(V) {
4152
- return this.$g(V, P[0], P[1]);
4149
+ }(), $ = K.prototype;
4150
+ return A.prototype = $, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", b], ["$D", _]].forEach(function(P) {
4151
+ $[P[1]] = function(D) {
4152
+ return this.$g(D, P[0], P[1]);
4153
4153
  };
4154
- }), A.extend = function(P, V) {
4155
- return P.$i || (P(V, B, A), P.$i = !0), A;
4156
- }, A.locale = M, A.isDayjs = R, A.unix = function(P) {
4154
+ }), A.extend = function(P, D) {
4155
+ return P.$i || (P(D, K, A), P.$i = !0), A;
4156
+ }, A.locale = M, A.isDayjs = w, A.unix = function(P) {
4157
4157
  return A(1e3 * P);
4158
4158
  }, A.en = k[I], A.Ls = k, A.p = {}, A;
4159
4159
  });
@@ -4200,32 +4200,32 @@ function filesize(e, {
4200
4200
  roundingMethod: v = ROUND,
4201
4201
  precision: p = 0
4202
4202
  } = {}) {
4203
- let C = _, y = Number(e), T = [], E = 0, I = EMPTY;
4203
+ let T = _, C = Number(e), E = [], y = 0, I = EMPTY;
4204
4204
  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);
4205
- const k = a === 10 ? 1e3 : 1024, R = m === !0, M = y < 0, A = Math[v];
4205
+ const k = a === 10 ? 1e3 : 1024, w = m === !0, M = C < 0, A = Math[v];
4206
4206
  if (typeof e != "bigint" && isNaN(e))
4207
4207
  throw new TypeError(INVALID_NUMBER);
4208
4208
  if (typeof A !== FUNCTION)
4209
4209
  throw new TypeError(INVALID_ROUND);
4210
- if (M && (y = -y), (C === -1 || isNaN(C)) && (C = Math.floor(Math.log(y) / Math.log(k)), C < 0 && (C = 0)), C > 8 && (p > 0 && (p += 8 - C), C = 8), g === EXPONENT)
4211
- return C;
4212
- if (y === 0)
4213
- T[0] = 0, I = T[1] = STRINGS.symbol[c][t ? BITS : BYTES][C];
4210
+ if (M && (C = -C), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(C) / Math.log(k)), T < 0 && (T = 0)), T > 8 && (p > 0 && (p += 8 - T), T = 8), g === EXPONENT)
4211
+ return T;
4212
+ if (C === 0)
4213
+ E[0] = 0, I = E[1] = STRINGS.symbol[c][t ? BITS : BYTES][T];
4214
4214
  else {
4215
- E = y / (a === 2 ? Math.pow(2, C * 10) : Math.pow(1e3, C)), t && (E = E * 8, E >= k && C < 8 && (E = E / k, C++));
4216
- const O = Math.pow(10, C > 0 ? n : 0);
4217
- T[0] = A(E * O) / O, T[0] === k && C < 8 && _ === -1 && (T[0] = 1, C++), I = T[1] = a === 10 && C === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][C];
4218
- }
4219
- if (M && (T[0] = -T[0]), p > 0 && (T[0] = T[0].toPrecision(p)), T[1] = u[T[1]] || T[1], o === !0 ? T[0] = T[0].toLocaleString() : o.length > 0 ? T[0] = T[0].toLocaleString(o, s) : i.length > 0 && (T[0] = T[0].toString().replace(PERIOD, i)), r && Number.isInteger(T[0]) === !1 && n > 0) {
4220
- const O = i || PERIOD, B = T[0].toString().split(O), N = B[1] || EMPTY, P = N.length, V = n - P;
4221
- T[0] = `${B[0]}${O}${N.padEnd(P + V, ZERO)}`;
4222
- }
4223
- return R && (T[1] = b[C] ? b[C] : STRINGS.fullform[c][C] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), g === ARRAY ? T : g === OBJECT ? {
4224
- value: T[0],
4225
- symbol: T[1],
4226
- exponent: C,
4215
+ y = C / (a === 2 ? Math.pow(2, T * 10) : Math.pow(1e3, T)), t && (y = y * 8, y >= k && T < 8 && (y = y / k, T++));
4216
+ const O = Math.pow(10, T > 0 ? n : 0);
4217
+ E[0] = A(y * O) / O, E[0] === k && T < 8 && _ === -1 && (E[0] = 1, T++), I = E[1] = a === 10 && T === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][T];
4218
+ }
4219
+ if (M && (E[0] = -E[0]), p > 0 && (E[0] = E[0].toPrecision(p)), E[1] = u[E[1]] || E[1], o === !0 ? E[0] = E[0].toLocaleString() : o.length > 0 ? E[0] = E[0].toLocaleString(o, s) : i.length > 0 && (E[0] = E[0].toString().replace(PERIOD, i)), r && Number.isInteger(E[0]) === !1 && n > 0) {
4220
+ const O = i || PERIOD, K = E[0].toString().split(O), $ = K[1] || EMPTY, P = $.length, D = n - P;
4221
+ E[0] = `${K[0]}${O}${$.padEnd(P + D, ZERO)}`;
4222
+ }
4223
+ return w && (E[1] = b[T] ? b[T] : STRINGS.fullform[c][T] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), g === ARRAY ? E : g === OBJECT ? {
4224
+ value: E[0],
4225
+ symbol: E[1],
4226
+ exponent: T,
4227
4227
  unit: I
4228
- } : T.join(l);
4228
+ } : E.join(l);
4229
4229
  }
4230
4230
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
4231
4231
  const freeGlobal$1 = freeGlobal;
@@ -5271,12 +5271,12 @@ function baseClone(e, t, r, a, n, o) {
5271
5271
  return b;
5272
5272
  o.set(e, s), isSet$1(e) ? e.forEach(function(p) {
5273
5273
  s.add(baseClone(p, t, r, p, e, o));
5274
- }) : isMap$1(e) && e.forEach(function(p, C) {
5275
- s.set(C, baseClone(p, t, r, C, e, o));
5274
+ }) : isMap$1(e) && e.forEach(function(p, T) {
5275
+ s.set(T, baseClone(p, t, r, T, e, o));
5276
5276
  });
5277
5277
  var _ = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, v = c ? void 0 : _(e);
5278
- return arrayEach(v || e, function(p, C) {
5279
- v && (C = p, p = e[C]), assignValue(s, C, baseClone(p, t, r, C, e, o));
5278
+ return arrayEach(v || e, function(p, T) {
5279
+ v && (T = p, p = e[T]), assignValue(s, T, baseClone(p, t, r, T, e, o));
5280
5280
  }), s;
5281
5281
  }
5282
5282
  var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
@@ -5326,9 +5326,9 @@ function equalArrays(e, t, r, a, n, o) {
5326
5326
  break;
5327
5327
  }
5328
5328
  if (b) {
5329
- if (!arraySome(t, function(C, y) {
5330
- if (!cacheHas(b, y) && (_ === C || n(_, C, r, a, o)))
5331
- return b.push(y);
5329
+ if (!arraySome(t, function(T, C) {
5330
+ if (!cacheHas(b, C) && (_ === T || n(_, T, r, a, o)))
5331
+ return b.push(C);
5332
5332
  })) {
5333
5333
  m = !1;
5334
5334
  break;
@@ -5405,18 +5405,18 @@ function equalObjects(e, t, r, a, n, o) {
5405
5405
  o.set(e, t), o.set(t, e);
5406
5406
  for (var p = s; ++g < l; ) {
5407
5407
  m = i[g];
5408
- var C = e[m], y = t[m];
5408
+ var T = e[m], C = t[m];
5409
5409
  if (a)
5410
- var T = s ? a(y, C, m, t, e, o) : a(C, y, m, e, t, o);
5411
- if (!(T === void 0 ? C === y || n(C, y, r, a, o) : T)) {
5410
+ var E = s ? a(C, T, m, t, e, o) : a(T, C, m, e, t, o);
5411
+ if (!(E === void 0 ? T === C || n(T, C, r, a, o) : E)) {
5412
5412
  v = !1;
5413
5413
  break;
5414
5414
  }
5415
5415
  p || (p = m == "constructor");
5416
5416
  }
5417
5417
  if (v && !p) {
5418
- var E = e.constructor, I = t.constructor;
5419
- E != I && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof I == "function" && I instanceof I) && (v = !1);
5418
+ var y = e.constructor, I = t.constructor;
5419
+ y != I && "constructor" in e && "constructor" in t && !(typeof y == "function" && y instanceof y && typeof I == "function" && I instanceof I) && (v = !1);
5420
5420
  }
5421
5421
  return o.delete(e), o.delete(t), v;
5422
5422
  }
@@ -6614,39 +6614,39 @@ function createSetupStore(e, t, r = {}, a, n) {
6614
6614
  u = !0;
6615
6615
  }), c = !0, triggerSubscriptions(g, A, a.state.value[e]);
6616
6616
  }
6617
- const C = process.env.NODE_ENV !== "production" ? () => {
6617
+ const T = process.env.NODE_ENV !== "production" ? () => {
6618
6618
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
6619
6619
  } : noop$1;
6620
- function y() {
6620
+ function C() {
6621
6621
  o.stop(), g = [], m = [], a._s.delete(e);
6622
6622
  }
6623
- function T(M, A) {
6623
+ function E(M, A) {
6624
6624
  return function() {
6625
6625
  setActivePinia(a);
6626
- const O = Array.from(arguments), B = [], N = [];
6627
- function P(D) {
6628
- B.push(D);
6626
+ const O = Array.from(arguments), K = [], $ = [];
6627
+ function P(R) {
6628
+ K.push(R);
6629
6629
  }
6630
- function V(D) {
6631
- N.push(D);
6630
+ function D(R) {
6631
+ $.push(R);
6632
6632
  }
6633
6633
  triggerSubscriptions(m, {
6634
6634
  args: O,
6635
6635
  name: M,
6636
6636
  store: k,
6637
6637
  after: P,
6638
- onError: V
6638
+ onError: D
6639
6639
  });
6640
- let w;
6640
+ let V;
6641
6641
  try {
6642
- w = A.apply(this && this.$id === e ? this : k, O);
6643
- } catch (D) {
6644
- throw triggerSubscriptions(N, D), D;
6642
+ V = A.apply(this && this.$id === e ? this : k, O);
6643
+ } catch (R) {
6644
+ throw triggerSubscriptions($, R), R;
6645
6645
  }
6646
- return w instanceof Promise ? w.then((D) => (triggerSubscriptions(B, D), D)).catch((D) => (triggerSubscriptions(N, D), Promise.reject(D))) : (triggerSubscriptions(B, w), w);
6646
+ return V instanceof Promise ? V.then((R) => (triggerSubscriptions(K, R), R)).catch((R) => (triggerSubscriptions($, R), Promise.reject(R))) : (triggerSubscriptions(K, V), V);
6647
6647
  };
6648
6648
  }
6649
- const E = /* @__PURE__ */ markRaw({
6649
+ const y = /* @__PURE__ */ markRaw({
6650
6650
  actions: {},
6651
6651
  getters: {},
6652
6652
  state: [],
@@ -6656,38 +6656,38 @@ function createSetupStore(e, t, r = {}, a, n) {
6656
6656
  $id: e,
6657
6657
  $onAction: addSubscription.bind(null, m),
6658
6658
  $patch: p,
6659
- $reset: C,
6659
+ $reset: T,
6660
6660
  $subscribe(M, A = {}) {
6661
- const O = addSubscription(g, M, A.detached, () => B()), B = o.run(() => watch(() => a.state.value[e], (N) => {
6661
+ const O = addSubscription(g, M, A.detached, () => K()), K = o.run(() => watch(() => a.state.value[e], ($) => {
6662
6662
  (A.flush === "sync" ? c : u) && M({
6663
6663
  storeId: e,
6664
6664
  type: MutationType.direct,
6665
6665
  events: b
6666
- }, N);
6666
+ }, $);
6667
6667
  }, assign$1({}, l, A)));
6668
6668
  return O;
6669
6669
  },
6670
- $dispose: y
6670
+ $dispose: C
6671
6671
  }, k = reactive(assign$1(
6672
6672
  process.env.NODE_ENV !== "production" && IS_CLIENT ? {
6673
6673
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
6674
- _hmrPayload: E
6674
+ _hmrPayload: y
6675
6675
  } : {},
6676
6676
  I
6677
6677
  ));
6678
6678
  a._s.set(e, k);
6679
- const R = a._e.run(() => (o = effectScope(), o.run(() => t())));
6680
- for (const M in R) {
6681
- const A = R[M];
6679
+ const w = a._e.run(() => (o = effectScope(), o.run(() => t())));
6680
+ for (const M in w) {
6681
+ const A = w[M];
6682
6682
  if (isRef(A) && !isComputed(A) || isReactive(A))
6683
- process.env.NODE_ENV !== "production" && n ? set(v.value, M, toRef(R, M)) : s || (_ && shouldHydrate(A) && (isRef(A) ? A.value = _[M] : mergeReactiveObjects(A, _[M])), a.state.value[e][M] = A), process.env.NODE_ENV !== "production" && E.state.push(M);
6683
+ process.env.NODE_ENV !== "production" && n ? set(v.value, M, toRef(w, M)) : s || (_ && shouldHydrate(A) && (isRef(A) ? A.value = _[M] : mergeReactiveObjects(A, _[M])), a.state.value[e][M] = A), process.env.NODE_ENV !== "production" && y.state.push(M);
6684
6684
  else if (typeof A == "function") {
6685
- const O = process.env.NODE_ENV !== "production" && n ? A : T(M, A);
6686
- R[M] = O, process.env.NODE_ENV !== "production" && (E.actions[M] = A), i.actions[M] = A;
6685
+ const O = process.env.NODE_ENV !== "production" && n ? A : E(M, A);
6686
+ w[M] = O, process.env.NODE_ENV !== "production" && (y.actions[M] = A), i.actions[M] = A;
6687
6687
  } else
6688
- process.env.NODE_ENV !== "production" && isComputed(A) && (E.getters[M] = s ? r.getters[M] : A, IS_CLIENT && (R._getters || (R._getters = markRaw([]))).push(M));
6688
+ process.env.NODE_ENV !== "production" && isComputed(A) && (y.getters[M] = s ? r.getters[M] : A, IS_CLIENT && (w._getters || (w._getters = markRaw([]))).push(M));
6689
6689
  }
6690
- if (assign$1(k, R), assign$1(toRaw(k), R), Object.defineProperty(k, "$state", {
6690
+ if (assign$1(k, w), assign$1(toRaw(k), w), Object.defineProperty(k, "$state", {
6691
6691
  get: () => process.env.NODE_ENV !== "production" && n ? v.value : a.state.value[e],
6692
6692
  set: (M) => {
6693
6693
  if (process.env.NODE_ENV !== "production" && n)
@@ -6700,8 +6700,8 @@ function createSetupStore(e, t, r = {}, a, n) {
6700
6700
  k._hotUpdate = markRaw((A) => {
6701
6701
  k._hotUpdating = !0, A._hmrPayload.state.forEach((O) => {
6702
6702
  if (O in k.$state) {
6703
- const B = A.$state[O], N = k.$state[O];
6704
- typeof B == "object" && isPlainObject(B) && isPlainObject(N) ? patchObject(B, N) : A.$state[O] = N;
6703
+ const K = A.$state[O], $ = k.$state[O];
6704
+ typeof K == "object" && isPlainObject(K) && isPlainObject($) ? patchObject(K, $) : A.$state[O] = $;
6705
6705
  }
6706
6706
  set(k, O, toRef(A.$state, O));
6707
6707
  }), Object.keys(k.$state).forEach((O) => {
@@ -6710,12 +6710,12 @@ function createSetupStore(e, t, r = {}, a, n) {
6710
6710
  u = !0;
6711
6711
  });
6712
6712
  for (const O in A._hmrPayload.actions) {
6713
- const B = A[O];
6714
- set(k, O, T(O, B));
6713
+ const K = A[O];
6714
+ set(k, O, E(O, K));
6715
6715
  }
6716
6716
  for (const O in A._hmrPayload.getters) {
6717
- const B = A._hmrPayload.getters[O], N = s ? computed(() => (setActivePinia(a), B.call(k, k))) : B;
6718
- set(k, O, N);
6717
+ const K = A._hmrPayload.getters[O], $ = s ? computed(() => (setActivePinia(a), K.call(k, k))) : K;
6718
+ set(k, O, $);
6719
6719
  }
6720
6720
  Object.keys(k._hmrPayload.getters).forEach((O) => {
6721
6721
  O in A._hmrPayload.getters || del(k, O);
@@ -7272,18 +7272,18 @@ const KgModal_Close = "", getProps$y = () => ({
7272
7272
  slots: r
7273
7273
  }) {
7274
7274
  if (e.kgMaxHeight < e.kgMinHeight) {
7275
- const y = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
7276
- throw Logger.error(y, {
7275
+ const C = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
7276
+ throw Logger.error(C, {
7277
7277
  kgMaxHeight: e.kgMaxHeight,
7278
7278
  kgMinHeight: e.kgMinHeight
7279
- }), new Error(y);
7279
+ }), new Error(C);
7280
7280
  }
7281
7281
  if (e.kgMaxWidth < e.kgMinWidth) {
7282
- const y = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
7283
- throw Logger.error(y, {
7282
+ const C = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
7283
+ throw Logger.error(C, {
7284
7284
  kgMaxWidth: e.kgMaxWidth,
7285
7285
  kgMinWidth: e.kgMinWidth
7286
- }), new Error(y);
7286
+ }), new Error(C);
7287
7287
  }
7288
7288
  let a = 0, n = 0, o = 0, s = 0, i = {
7289
7289
  remove: () => {
@@ -7306,22 +7306,22 @@ const KgModal_Close = "", getProps$y = () => ({
7306
7306
  };
7307
7307
  }
7308
7308
  }), c = computed(() => {
7309
- let y = "";
7310
- switch (e.kgClass && (y += `${e.kgClass} `), y += "kg-resizable", e.kgDisabled && (y += " kg-resizable--disabled"), e.kgType) {
7309
+ let C = "";
7310
+ switch (e.kgClass && (C += `${e.kgClass} `), C += "kg-resizable", e.kgDisabled && (C += " kg-resizable--disabled"), e.kgType) {
7311
7311
  case "left":
7312
- y += " kg-resizable--left";
7312
+ C += " kg-resizable--left";
7313
7313
  break;
7314
7314
  case "right":
7315
- y += " kg-resizable--right";
7315
+ C += " kg-resizable--right";
7316
7316
  break;
7317
7317
  case "top":
7318
- y += " kg-resizable--top";
7318
+ C += " kg-resizable--top";
7319
7319
  break;
7320
7320
  case "bottom":
7321
- y += " kg-resizable--bottom";
7321
+ C += " kg-resizable--bottom";
7322
7322
  break;
7323
7323
  }
7324
- return y;
7324
+ return C;
7325
7325
  });
7326
7326
  function g() {
7327
7327
  i.remove(), l.remove();
@@ -7329,51 +7329,51 @@ const KgModal_Close = "", getProps$y = () => ({
7329
7329
  onUnmounted(() => {
7330
7330
  g();
7331
7331
  });
7332
- const m = (y) => {
7332
+ const m = (C) => {
7333
7333
  switch (e.kgType) {
7334
7334
  case "top":
7335
- t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (y.pageY - s))));
7335
+ t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (C.pageY - s))));
7336
7336
  break;
7337
7337
  case "bottom":
7338
- t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (y.pageY - s))));
7338
+ t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (C.pageY - s))));
7339
7339
  break;
7340
7340
  case "left":
7341
- t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (y.pageX - o))));
7341
+ t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (C.pageX - o))));
7342
7342
  break;
7343
7343
  case "right":
7344
- t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (y.pageX - o))));
7344
+ t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (C.pageX - o))));
7345
7345
  break;
7346
7346
  }
7347
7347
  };
7348
- function b(y) {
7349
- m(y);
7348
+ function b(C) {
7349
+ m(C);
7350
7350
  }
7351
- function _(y) {
7352
- m(y), g();
7351
+ function _(C) {
7352
+ m(C), g();
7353
7353
  }
7354
- function v(y) {
7355
- y.stopPropagation(), y.preventDefault(), g(), !(y instanceof MouseEvent && y.which !== 1) && (o = y.pageX, s = y.pageY, a = e.kgWidth, n = e.kgHeight, i = p(document.documentElement, "mousemove", b), l = p(document.documentElement, "mouseup", _));
7354
+ function v(C) {
7355
+ C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX, s = C.pageY, a = e.kgWidth, n = e.kgHeight, i = p(document.documentElement, "mousemove", b), l = p(document.documentElement, "mouseup", _));
7356
7356
  }
7357
- function p(y, T, E) {
7358
- return y.addEventListener(T, E), {
7359
- remove: () => y.removeEventListener(T, E)
7357
+ function p(C, E, y) {
7358
+ return C.addEventListener(E, y), {
7359
+ remove: () => C.removeEventListener(E, y)
7360
7360
  };
7361
7361
  }
7362
- function C(y) {
7363
- y.stopPropagation(), y.preventDefault();
7362
+ function T(C) {
7363
+ C.stopPropagation(), C.preventDefault();
7364
7364
  }
7365
7365
  return () => {
7366
- var y;
7366
+ var C;
7367
7367
  return createVNode("div", {
7368
7368
  class: c.value,
7369
7369
  style: u.value
7370
7370
  }, [createVNode("div", {
7371
7371
  class: "kg-resizable-handle",
7372
- onClick: C,
7372
+ onClick: T,
7373
7373
  onMousedown: v
7374
7374
  }, [createVNode("div", {
7375
7375
  class: "kg-resizable-handle-line"
7376
- }, null)]), (y = r.default) == null ? void 0 : y.call(r)]);
7376
+ }, null)]), (C = r.default) == null ? void 0 : C.call(r)]);
7377
7377
  };
7378
7378
  }
7379
7379
  }), getProps$u = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_MODEL"), DI_FORM_REF = Symbol("DI_FORM_REF");
@@ -7528,8 +7528,8 @@ function createStore(e, t, r) {
7528
7528
  var m = slice(arguments, 0), b = this;
7529
7529
  function _() {
7530
7530
  if (!!c)
7531
- return each$6(arguments, function(p, C) {
7532
- m[C] = p;
7531
+ return each$6(arguments, function(p, T) {
7532
+ m[T] = p;
7533
7533
  }), c.apply(b, m);
7534
7534
  }
7535
7535
  var v = [_].concat(m);
@@ -8539,16 +8539,16 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8539
8539
  varSubmitConfig: _,
8540
8540
  varSubmitFields: v,
8541
8541
  varProfile: p,
8542
- varProfileConfig: C,
8543
- varGrid: y,
8544
- varGridConfig: T
8542
+ varProfileConfig: T,
8543
+ varGrid: C,
8544
+ varGridConfig: E
8545
8545
  } = await GetAll({ params: { frm_id: e } });
8546
- this.varCatalogMap.set(e, i != null ? i : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(m)), this.varButtonConfigMap.set(e, b != null ? b : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(_)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(v)), this.varProfileConfigMap.set(e, transformVarProfileConfig(C != null ? C : null)), this.varProfileMap.set(e, {
8546
+ this.varCatalogMap.set(e, i != null ? i : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(m)), this.varButtonConfigMap.set(e, b != null ? b : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(_)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(v)), this.varProfileConfigMap.set(e, transformVarProfileConfig(T != null ? T : null)), this.varProfileMap.set(e, {
8547
8547
  varProfile: p != null ? p : null,
8548
- currentVarProfileMasterID: (a = (r = (t = p == null ? void 0 : p.varProfileMasters) == null ? void 0 : t.find((E) => E.def_flg === 1 || E.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? a : null
8549
- }), this.varGridConfigMap.set(e, transformVarGridConfig(T != null ? T : null)), this.varGridMap.set(e, {
8550
- varGrid: transformVarGridDTO(y),
8551
- currentVarGridMasterID: (s = (o = (n = y == null ? void 0 : y.varGridMasters) == null ? void 0 : n.find((E) => E.def_flg === 1 || E.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
8548
+ currentVarProfileMasterID: (a = (r = (t = p == null ? void 0 : p.varProfileMasters) == null ? void 0 : t.find((y) => y.def_flg === 1 || y.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? a : null
8549
+ }), this.varGridConfigMap.set(e, transformVarGridConfig(E != null ? E : null)), this.varGridMap.set(e, {
8550
+ varGrid: transformVarGridDTO(C),
8551
+ currentVarGridMasterID: (s = (o = (n = C == null ? void 0 : C.varGridMasters) == null ? void 0 : n.find((y) => y.def_flg === 1 || y.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
8552
8552
  }), this.emit(e, "ready");
8553
8553
  } catch (i) {
8554
8554
  throw i;
@@ -8684,8 +8684,8 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
8684
8684
  function useKgVar(e, t, r = 0) {
8685
8685
  var a, n;
8686
8686
  try {
8687
- let o = function(D) {
8688
- return isFunction$2(D) ? (i.addEventListener(s, "ready", D), getCurrentInstance() && onUnmounted(() => i.removeEventListener(s, "ready", D)), () => i.removeEventListener(s, "ready", D)) : () => {
8687
+ let o = function(x) {
8688
+ return isFunction$2(x) ? (i.addEventListener(s, "ready", x), getCurrentInstance() && onUnmounted(() => i.removeEventListener(s, "ready", x)), () => i.removeEventListener(s, "ready", x)) : () => {
8689
8689
  };
8690
8690
  }, s = e || inject(KG_DI_FORM_ID, "");
8691
8691
  if (!s)
@@ -8696,13 +8696,13 @@ function useKgVar(e, t, r = 0) {
8696
8696
  }), onUnmounted(() => {
8697
8697
  i.leave(s);
8698
8698
  }));
8699
- const l = (D) => computed(() => {
8700
- var L, H, $;
8701
- return ($ = (H = (L = i.getVarCatalog(s, D)) == null ? void 0 : L.var_text) != null ? H : D) != null ? $ : "";
8702
- }), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), m = computed(() => i.isCreating(s)), b = computed(() => i.isUpdating(s)), _ = computed(() => i.isCopying(s)), v = computed(() => i.isDeleting(s)), p = computed(() => i.isOtherRequesting(s)), C = computed(() => i.getVarButtons(s)), y = computed(() => i.getVarButtonSearch(s)), T = computed(() => i.getVarButtonCreate(s)), E = computed(() => i.getVarButtonUpdate(s)), I = computed(() => i.getVarButtonCopy(s)), k = computed(() => i.getVarButtonDelete(s)), R = computed(() => i.getVarProfileMasters(s)), M = computed(() => i.getCurrentVarProfileMaster(s)), A = computed(() => i.getCurrentVarProfileMasterID(s)), O = computed(() => {
8703
- var D, L;
8704
- return (L = (D = M.value) == null ? void 0 : D.varProfileDetails) != null ? L : null;
8705
- }), B = computed(() => i.getVarGridConfig(s)), N = computed(() => i.getVarGridMasters(s)), P = computed(() => i.getCurrentVarGridMaster(s)), V = computed(() => i.getSystemVarGridDetails(s)), w = computed(() => i.getCurrentVarGridDetails(s));
8699
+ const l = (x) => computed(() => {
8700
+ var q, Y, Q;
8701
+ return (Q = (Y = (q = i.getVarCatalog(s, x)) == null ? void 0 : q.var_text) != null ? Y : x) != null ? Q : "";
8702
+ }), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), m = computed(() => i.isCreating(s)), b = computed(() => i.isCreatingRequesting(s)), _ = computed(() => i.isUpdating(s)), v = computed(() => i.isUpdatingRequesting(s)), p = computed(() => i.isCopying(s)), T = computed(() => i.isCopyingRequesting(s)), C = computed(() => i.isDeleting(s)), E = computed(() => i.isDeletingRequesting(s)), y = computed(() => i.isOtherRequesting(s)), I = computed(() => i.getVarButtons(s)), k = computed(() => i.getVarButtonSearch(s)), w = computed(() => i.getVarButtonCreate(s)), M = computed(() => i.getVarButtonUpdate(s)), A = computed(() => i.getVarButtonCopy(s)), O = computed(() => i.getVarButtonDelete(s)), K = computed(() => i.getVarProfileMasters(s)), $ = computed(() => i.getCurrentVarProfileMaster(s)), P = computed(() => i.getCurrentVarProfileMasterID(s)), D = computed(() => {
8703
+ var x, q;
8704
+ return (q = (x = $.value) == null ? void 0 : x.varProfileDetails) != null ? q : null;
8705
+ }), V = computed(() => i.getVarGridConfig(s)), R = computed(() => i.getVarGridMasters(s)), L = computed(() => i.getCurrentVarGridMaster(s)), H = computed(() => i.getSystemVarGridDetails(s)), N = computed(() => i.getCurrentVarGridDetails(s));
8706
8706
  return {
8707
8707
  formID: s,
8708
8708
  store: i,
@@ -8710,25 +8710,29 @@ function useKgVar(e, t, r = 0) {
8710
8710
  isRetrievingVarProfileMaster: c,
8711
8711
  isRetrievingVarGridMaster: g,
8712
8712
  isCreating: m,
8713
- isUpdating: b,
8714
- isCopying: _,
8715
- isDeleting: v,
8716
- isOtherRequesting: p,
8717
- varButtons: C,
8718
- varButtonSearch: y,
8719
- varButtonCreate: T,
8720
- varButtonUpdate: E,
8721
- varButtonCopy: I,
8722
- varButtonDelete: k,
8723
- varProfileMasters: R,
8724
- currentVarProfileMaster: M,
8725
- currentVarProfileMasterID: A,
8726
- currentVarProfileDetails: O,
8727
- varGridConfig: B,
8728
- varGridMasters: N,
8729
- currentVarGridMaster: P,
8730
- systemVarGridDetails: V,
8731
- currentVarGridDetails: w,
8713
+ isCreatingRequesting: b,
8714
+ isUpdating: _,
8715
+ isUpdatingRequesting: v,
8716
+ isCopying: p,
8717
+ isCopyingRequesting: T,
8718
+ isDeleting: C,
8719
+ isDeletingRequesting: E,
8720
+ isOtherRequesting: y,
8721
+ varButtons: I,
8722
+ varButtonSearch: k,
8723
+ varButtonCreate: w,
8724
+ varButtonUpdate: M,
8725
+ varButtonCopy: A,
8726
+ varButtonDelete: O,
8727
+ varProfileMasters: K,
8728
+ currentVarProfileMaster: $,
8729
+ currentVarProfileMasterID: P,
8730
+ currentVarProfileDetails: D,
8731
+ varGridConfig: V,
8732
+ varGridMasters: R,
8733
+ currentVarGridMaster: L,
8734
+ systemVarGridDetails: H,
8735
+ currentVarGridDetails: N,
8732
8736
  t: l,
8733
8737
  onReady: o
8734
8738
  };
@@ -8855,12 +8859,12 @@ const DI_KG_SLOTS = Symbol("DI_KG_SLOTS"), KgVar$1 = "", getProps$t = () => ({
8855
8859
  r("update:visible", !1);
8856
8860
  }
8857
8861
  function b() {
8858
- var _, v, p, C, y, T, E;
8862
+ var _, v, p, T, C, E, y;
8859
8863
  if (c.value) {
8860
- const I = (v = (_ = l.selectedRows) == null ? void 0 : _.value) != null ? v : [], k = (p = I.map((R) => R[g.value])) != null ? p : [];
8864
+ const I = (v = (_ = l.selectedRows) == null ? void 0 : _.value) != null ? v : [], k = (p = I.map((w) => w[g.value])) != null ? p : [];
8861
8865
  (!i || i(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
8862
8866
  } else {
8863
- const I = (T = (y = (C = l.selectedRows) == null ? void 0 : C.value) == null ? void 0 : y[0]) != null ? T : null, k = (E = I == null ? void 0 : I[g.value]) != null ? E : "";
8867
+ const I = (E = (C = (T = l.selectedRows) == null ? void 0 : T.value) == null ? void 0 : C[0]) != null ? E : null, k = (y = I == null ? void 0 : I[g.value]) != null ? y : "";
8864
8868
  (!i || i(k, I)) && (r("kgOk", k, I), r("update:visible", !1));
8865
8869
  }
8866
8870
  }
@@ -8988,40 +8992,40 @@ const KgFormItemCheckboxGroup = defineComponent({
8988
8992
  const a = useKg(), n = useKgVar(), o = inject(DI_FORM_REF, ref(null)), s = inject(DI_FORM_MODEL, computed(() => ({}))), {
8989
8993
  transformDatas: i
8990
8994
  } = _useServices$2(e), l = ref(!1), u = ref(!1), c = ref([]), g = computed(() => n.store.getVarPossibility(n.formID, e.kgVarName)), m = computed(() => n.store.getVariableConfig(n.formID, e.kgVarName)), b = computed(() => {
8991
- var T;
8992
- let y = KgVarUtil.parseCommandParameter((T = g.value) == null ? void 0 : T.cmd_prm);
8993
- return y = mapValues(y, (E) => {
8994
- if (typeof E == "string" && E.startsWith("{") && E.endsWith("}")) {
8995
- const I = E.slice(1, -1);
8995
+ var E;
8996
+ let C = KgVarUtil.parseCommandParameter((E = g.value) == null ? void 0 : E.cmd_prm);
8997
+ return C = mapValues(C, (y) => {
8998
+ if (typeof y == "string" && y.startsWith("{") && y.endsWith("}")) {
8999
+ const I = y.slice(1, -1);
8996
9000
  if (s.value && I in s.value)
8997
9001
  return s.value[I];
8998
9002
  }
8999
- return E;
9000
- }), y;
9003
+ return y;
9004
+ }), C;
9001
9005
  }), _ = computed(() => {
9002
- var y;
9003
- return KgUtil.tryParseJSON((y = m.value) == null ? void 0 : y.ctrl_prop);
9006
+ var C;
9007
+ return KgUtil.tryParseJSON((C = m.value) == null ? void 0 : C.ctrl_prop);
9004
9008
  });
9005
9009
  watch(b, () => {
9006
- var y;
9007
- (y = g.value) != null && y.id && v();
9010
+ var C;
9011
+ (C = g.value) != null && C.id && v();
9008
9012
  }, {
9009
9013
  immediate: !0
9010
- }), watch([() => e.value, c], ([y, T]) => {
9014
+ }), watch([() => e.value, c], ([C, E]) => {
9011
9015
  var I, k;
9012
- const E = get(y, "length", 0);
9013
- if (E > 0 && T.length > 0) {
9014
- const R = (k = (I = g.value) == null ? void 0 : I.val_clm) != null ? k : "", M = intersection$1(y, T == null ? void 0 : T.map((A) => A[R]));
9015
- if (M.length < E) {
9016
+ const y = get(C, "length", 0);
9017
+ if (y > 0 && E.length > 0) {
9018
+ const w = (k = (I = g.value) == null ? void 0 : I.val_clm) != null ? k : "", M = intersection$1(C, E == null ? void 0 : E.map((A) => A[w]));
9019
+ if (M.length < y) {
9016
9020
  r("update:value", M);
9017
9021
  return;
9018
9022
  }
9019
9023
  }
9020
9024
  switch (!0) {
9021
- case (E > 0 && E === T.length):
9025
+ case (y > 0 && y === E.length):
9022
9026
  l.value = !0, u.value = !1;
9023
9027
  break;
9024
- case (E > 0 && E !== T.length):
9028
+ case (y > 0 && y !== E.length):
9025
9029
  l.value = !1, u.value = !0;
9026
9030
  break;
9027
9031
  default:
@@ -9032,23 +9036,23 @@ const KgFormItemCheckboxGroup = defineComponent({
9032
9036
  immediate: !0
9033
9037
  });
9034
9038
  async function v() {
9035
- var R, M, A, O, B, N, P, V, w;
9036
- const y = (R = g.value) == null ? void 0 : R.cmd, T = (A = (M = g.value) == null ? void 0 : M.cmd_method) != null ? A : "GET", E = (B = (O = g.value) == null ? void 0 : O.val_clm) != null ? B : "", I = (P = (N = g.value) == null ? void 0 : N.lbl_clm) != null ? P : "";
9037
- if (!y || !E || !I) {
9039
+ var w, M, A, O, K, $, P, D, V;
9040
+ const C = (w = g.value) == null ? void 0 : w.cmd, E = (A = (M = g.value) == null ? void 0 : M.cmd_method) != null ? A : "GET", y = (K = (O = g.value) == null ? void 0 : O.val_clm) != null ? K : "", I = (P = ($ = g.value) == null ? void 0 : $.lbl_clm) != null ? P : "";
9041
+ if (!C || !y || !I) {
9038
9042
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
9039
9043
  frm_id: n.formID,
9040
9044
  var_nam: e.kgVarName,
9041
- cmd: y,
9042
- val_clm: E,
9045
+ cmd: C,
9046
+ val_clm: y,
9043
9047
  lbl_clm: I
9044
9048
  });
9045
9049
  return;
9046
9050
  }
9047
9051
  let k = null;
9048
9052
  try {
9049
- k = await ((V = httpClient()) == null ? void 0 : V.request({
9050
- url: y,
9051
- method: T,
9053
+ k = await ((D = httpClient()) == null ? void 0 : D.request({
9054
+ url: C,
9055
+ method: E,
9052
9056
  params: b.value,
9053
9057
  data: b.value
9054
9058
  }));
@@ -9066,67 +9070,67 @@ const KgFormItemCheckboxGroup = defineComponent({
9066
9070
  break;
9067
9071
  }
9068
9072
  if (c.value.length > 0) {
9069
- const D = c.value[0];
9070
- (!(E in D) || !(I in D)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
9073
+ const R = c.value[0];
9074
+ (!(y in R) || !(I in R)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
9071
9075
  frm_id: n.formID,
9072
9076
  var_nam: e.kgVarName,
9073
- cmd: y,
9074
- val_clm: E,
9077
+ cmd: C,
9078
+ val_clm: y,
9075
9079
  lbl_clm: I,
9076
- \u6240\u6709\u5217: Object.keys(D)
9080
+ \u6240\u6709\u5217: Object.keys(R)
9077
9081
  });
9078
9082
  }
9079
- r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((w = c.value) == null ? void 0 : w.map((D) => D[E]), e.value));
9083
+ r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((V = c.value) == null ? void 0 : V.map((R) => R[y]), e.value));
9080
9084
  }
9081
- function p(y) {
9082
- var T, E, I;
9083
- y.target.checked ? C((E = (T = c.value) == null ? void 0 : T.map((k) => {
9084
- var R, M;
9085
- return k[(M = (R = g.value) == null ? void 0 : R.val_clm) != null ? M : ""];
9086
- })) != null ? E : []) : C([]), u.value = !1, (I = o.value) == null || I.validate(e.kgVarName);
9085
+ function p(C) {
9086
+ var E, y, I;
9087
+ C.target.checked ? T((y = (E = c.value) == null ? void 0 : E.map((k) => {
9088
+ var w, M;
9089
+ return k[(M = (w = g.value) == null ? void 0 : w.val_clm) != null ? M : ""];
9090
+ })) != null ? y : []) : T([]), u.value = !1, (I = o.value) == null || I.validate(e.kgVarName);
9087
9091
  }
9088
- function C(y) {
9089
- r("update:value", y), r("kgChange", y);
9092
+ function T(C) {
9093
+ r("update:value", C), r("kgChange", C);
9090
9094
  }
9091
9095
  return () => {
9092
- let y, T;
9096
+ let C, E;
9093
9097
  return createVNode("div", {
9094
9098
  class: "kg-form-item-checkbox-group"
9095
9099
  }, [createVNode(Form.ItemRest, null, {
9096
9100
  default: () => [createVNode(Checkbox, {
9097
9101
  checked: l.value,
9098
- "onUpdate:checked": (E) => l.value = E,
9102
+ "onUpdate:checked": (y) => l.value = y,
9099
9103
  indeterminate: u.value,
9100
9104
  onChange: p
9101
- }, _isSlot$8(y = a.t("kg.selectAll")) ? y : {
9102
- default: () => [y]
9105
+ }, _isSlot$8(C = a.t("kg.selectAll")) ? C : {
9106
+ default: () => [C]
9103
9107
  })]
9104
9108
  }), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
9105
9109
  value: e.value,
9106
- "onUpdate:value": C
9110
+ "onUpdate:value": T
9107
9111
  }, {
9108
9112
  default: () => [createVNode(Row, {
9109
9113
  gutter: 12
9110
- }, _isSlot$8(T = c.value.map((E) => {
9114
+ }, _isSlot$8(E = c.value.map((y) => {
9111
9115
  var I, k;
9112
9116
  return createVNode(Col, {
9113
9117
  span: (k = (I = _.value) == null ? void 0 : I.span) != null ? k : 24
9114
9118
  }, {
9115
9119
  default: () => {
9116
- var R, M, A, O;
9120
+ var w, M, A, O;
9117
9121
  return [createVNode(Checkbox, {
9118
- value: E[(M = (R = g.value) == null ? void 0 : R.val_clm) != null ? M : ""],
9119
- "kg-value": E[(O = (A = g.value) == null ? void 0 : A.val_clm) != null ? O : ""]
9122
+ value: y[(M = (w = g.value) == null ? void 0 : w.val_clm) != null ? M : ""],
9123
+ "kg-value": y[(O = (A = g.value) == null ? void 0 : A.val_clm) != null ? O : ""]
9120
9124
  }, {
9121
9125
  default: () => {
9122
- var B, N;
9123
- return [E[(N = (B = g.value) == null ? void 0 : B.lbl_clm) != null ? N : ""]];
9126
+ var K, $;
9127
+ return [y[($ = (K = g.value) == null ? void 0 : K.lbl_clm) != null ? $ : ""]];
9124
9128
  }
9125
9129
  })];
9126
9130
  }
9127
9131
  });
9128
- })) ? T : {
9129
- default: () => [T]
9132
+ })) ? E : {
9133
+ default: () => [E]
9130
9134
  })]
9131
9135
  })]);
9132
9136
  };
@@ -9292,13 +9296,13 @@ const KgFormItemSelect = defineComponent({
9292
9296
  return m = mapValues(m, (_) => {
9293
9297
  var v, p;
9294
9298
  if (typeof _ == "string" && _.startsWith("{") && _.endsWith("}")) {
9295
- let C = _.slice(1, -1), y = "";
9296
- if (C.includes(".")) {
9297
- const T = C.split(".");
9298
- C = T[0], y = T[1];
9299
+ let T = _.slice(1, -1), C = "";
9300
+ if (T.includes(".")) {
9301
+ const E = T.split(".");
9302
+ T = E[0], C = E[1];
9299
9303
  }
9300
- if (n.value && C in n.value)
9301
- return y ? (p = (v = n.value[`${C}_obj`]) == null ? void 0 : v[y]) != null ? p : void 0 : n.value[C];
9304
+ if (n.value && T in n.value)
9305
+ return C ? (p = (v = n.value[`${T}_obj`]) == null ? void 0 : v[C]) != null ? p : void 0 : n.value[T];
9302
9306
  }
9303
9307
  return _;
9304
9308
  }), m;
@@ -9310,8 +9314,8 @@ const KgFormItemSelect = defineComponent({
9310
9314
  immediate: !0
9311
9315
  });
9312
9316
  async function u() {
9313
- var C, y, T, E, I, k, R, M;
9314
- const m = (C = i.value) == null ? void 0 : C.cmd, b = (T = (y = i.value) == null ? void 0 : y.cmd_method) != null ? T : "GET", _ = (I = (E = i.value) == null ? void 0 : E.val_clm) != null ? I : "", v = (R = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? R : "";
9317
+ var T, C, E, y, I, k, w, M;
9318
+ const m = (T = i.value) == null ? void 0 : T.cmd, b = (E = (C = i.value) == null ? void 0 : C.cmd_method) != null ? E : "GET", _ = (I = (y = i.value) == null ? void 0 : y.val_clm) != null ? I : "", v = (w = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? w : "";
9315
9319
  if (!m || !_ || !v) {
9316
9320
  Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
9317
9321
  frm_id: a.formID,
@@ -9358,8 +9362,8 @@ const KgFormItemSelect = defineComponent({
9358
9362
  function c(m) {
9359
9363
  var _;
9360
9364
  const b = (_ = toRaw(s.value.find((v) => {
9361
- var p, C;
9362
- return v[(C = (p = i.value) == null ? void 0 : p.val_clm) != null ? C : ""] === m;
9365
+ var p, T;
9366
+ return v[(T = (p = i.value) == null ? void 0 : p.val_clm) != null ? T : ""] === m;
9363
9367
  }))) != null ? _ : null;
9364
9368
  r("kgSelectChange", b), n.value[`${e.kgVarName}_obj`] = b;
9365
9369
  }
@@ -9384,14 +9388,14 @@ const KgFormItemSelect = defineComponent({
9384
9388
  "kg-lbl-clm": (_ = i.value) == null ? void 0 : _.lbl_clm
9385
9389
  }, {
9386
9390
  default: () => s.value.map((v) => {
9387
- var p, C, y, T;
9391
+ var p, T, C, E;
9388
9392
  return createVNode(Select.Option, {
9389
- "kg-value": v[(C = (p = i.value) == null ? void 0 : p.val_clm) != null ? C : ""],
9390
- value: v[(T = (y = i.value) == null ? void 0 : y.val_clm) != null ? T : ""]
9393
+ "kg-value": v[(T = (p = i.value) == null ? void 0 : p.val_clm) != null ? T : ""],
9394
+ value: v[(E = (C = i.value) == null ? void 0 : C.val_clm) != null ? E : ""]
9391
9395
  }, {
9392
9396
  default: () => {
9393
- var E, I;
9394
- return [v[(I = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? I : ""]];
9397
+ var y, I;
9398
+ return [v[(I = (y = i.value) == null ? void 0 : y.lbl_clm) != null ? I : ""]];
9395
9399
  }
9396
9400
  });
9397
9401
  }),
@@ -9466,9 +9470,9 @@ function _useRules(e) {
9466
9470
  case KG_VAR_INPUT__DATA_TYPE.NUMBER:
9467
9471
  const p = (_ = n.value) == null ? void 0 : _.min;
9468
9472
  isNil(p) || (((v = n.value) == null ? void 0 : v.min_include_flg) === 1 ? i.push({
9469
- validator: (C, y) => Number(y) < p ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [p])) : Promise.resolve()
9473
+ validator: (T, C) => Number(C) < p ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [p])) : Promise.resolve()
9470
9474
  }) : i.push({
9471
- validator: (C, y) => Number(y) <= p ? Promise.reject(t.t("kg.KgFormItem.mustGT", [p])) : Promise.resolve()
9475
+ validator: (T, C) => Number(C) <= p ? Promise.reject(t.t("kg.KgFormItem.mustGT", [p])) : Promise.resolve()
9472
9476
  }));
9473
9477
  break;
9474
9478
  }
@@ -9488,7 +9492,7 @@ const KgFormItem = defineComponent({
9488
9492
  const a = useKgVar(), n = inject(DI_FORM_MODEL, computed(() => ({}))), o = inject(DI_FORM_REF, ref(null)), s = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), i = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), l = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), u = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), {
9489
9493
  rules: c
9490
9494
  } = _useRules(e), g = computed(() => {
9491
- var A, O, B, N, P;
9495
+ var A, O, K, $, P;
9492
9496
  if (a.isRetrievingVar.value)
9493
9497
  return !0;
9494
9498
  let M = !1;
@@ -9505,10 +9509,10 @@ const KgFormItem = defineComponent({
9505
9509
  M = ((O = u.value) == null ? void 0 : O.crt_ena_flg) === 0;
9506
9510
  break;
9507
9511
  case a.isUpdating.value:
9508
- M = ((B = u.value) == null ? void 0 : B.upt_ena_flg) === 0;
9512
+ M = ((K = u.value) == null ? void 0 : K.upt_ena_flg) === 0;
9509
9513
  break;
9510
9514
  case a.isCopying.value:
9511
- M = ((N = u.value) == null ? void 0 : N.cpy_ena_flg) === 0;
9515
+ M = (($ = u.value) == null ? void 0 : $.cpy_ena_flg) === 0;
9512
9516
  break;
9513
9517
  case a.isDeleting.value:
9514
9518
  M = ((P = u.value) == null ? void 0 : P.del_ena_flg) === 0;
@@ -9518,7 +9522,7 @@ const KgFormItem = defineComponent({
9518
9522
  }
9519
9523
  return M;
9520
9524
  }), m = computed(() => {
9521
- var A, O, B, N;
9525
+ var A, O, K, $;
9522
9526
  let M = " ";
9523
9527
  if (e.kgPlaceholder)
9524
9528
  M = e.kgPlaceholder;
@@ -9528,12 +9532,12 @@ const KgFormItem = defineComponent({
9528
9532
  M = a.t((O = (A = l.value) == null ? void 0 : A.placeholder) != null ? O : " ").value;
9529
9533
  break;
9530
9534
  case KG_FORM_CONTEXT.SUBMIT:
9531
- M = a.t((N = (B = u.value) == null ? void 0 : B.placeholder) != null ? N : " ").value;
9535
+ M = a.t(($ = (K = u.value) == null ? void 0 : K.placeholder) != null ? $ : " ").value;
9532
9536
  break;
9533
9537
  }
9534
9538
  return M;
9535
9539
  }), b = computed(() => {
9536
- var A, O, B, N, P, V, w, D, L, H;
9540
+ var A, O, K, $, P, D, V, R, L, H;
9537
9541
  let M = 6;
9538
9542
  if (e.kgSpan !== void 0)
9539
9543
  M = e.kgSpan;
@@ -9545,13 +9549,13 @@ const KgFormItem = defineComponent({
9545
9549
  case KG_FORM_CONTEXT.SUBMIT:
9546
9550
  switch (!0) {
9547
9551
  case a.isCreating.value:
9548
- M = (N = (B = u.value) == null ? void 0 : B.crt_width) != null ? N : 6;
9552
+ M = ($ = (K = u.value) == null ? void 0 : K.crt_width) != null ? $ : 6;
9549
9553
  break;
9550
9554
  case a.isUpdating.value:
9551
- M = (V = (P = u.value) == null ? void 0 : P.upt_width) != null ? V : 6;
9555
+ M = (D = (P = u.value) == null ? void 0 : P.upt_width) != null ? D : 6;
9552
9556
  break;
9553
9557
  case a.isCopying.value:
9554
- M = (D = (w = u.value) == null ? void 0 : w.cpy_width) != null ? D : 6;
9558
+ M = (R = (V = u.value) == null ? void 0 : V.cpy_width) != null ? R : 6;
9555
9559
  break;
9556
9560
  case a.isDeleting.value:
9557
9561
  M = (H = (L = u.value) == null ? void 0 : L.del_width) != null ? H : 6;
@@ -9560,18 +9564,18 @@ const KgFormItem = defineComponent({
9560
9564
  }
9561
9565
  return Math.min(24, Math.max(1, M));
9562
9566
  }), _ = computed(() => {
9563
- var B, N;
9564
- const M = get(T.value, "$el.parentElement");
9565
- if (M && !((B = M.classList) != null && B.contains("ant-row")))
9567
+ var K, $;
9568
+ const M = get(E.value, "$el.parentElement");
9569
+ if (M && !((K = M.classList) != null && K.contains("ant-row")))
9566
9570
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
9567
9571
  let A = {};
9568
- const O = Math.abs(Number.parseInt((N = get(T.value, "$el.parentElement.style.marginLeft")) != null ? N : "0px"));
9572
+ const O = Math.abs(Number.parseInt(($ = get(E.value, "$el.parentElement.style.marginLeft")) != null ? $ : "0px"));
9569
9573
  return Number.isNaN(O) || (A = {
9570
9574
  paddingLeft: `${O}px !important`,
9571
9575
  paddingRight: `${O}px !important`
9572
9576
  }), A;
9573
9577
  }), v = computed(() => {
9574
- var A, O, B, N;
9578
+ var A, O, K, $;
9575
9579
  let M = "kg-form-item";
9576
9580
  switch (s.value && (M += " kg-form-item-lookup"), e.kgContext) {
9577
9581
  case KG_FORM_CONTEXT.SEARCH:
@@ -9584,8 +9588,8 @@ const KgFormItem = defineComponent({
9584
9588
  case KG_FORM_CONTEXT.SUBMIT:
9585
9589
  switch (!0) {
9586
9590
  case (a.isCreating.value && ((O = u.value) == null ? void 0 : O.crt_vis_flg) === 0):
9587
- case (a.isUpdating.value && ((B = u.value) == null ? void 0 : B.upt_vis_flg) === 0):
9588
- case (a.isCopying.value && ((N = u.value) == null ? void 0 : N.cpy_vis_flg) === 0):
9591
+ case (a.isUpdating.value && ((K = u.value) == null ? void 0 : K.upt_vis_flg) === 0):
9592
+ case (a.isCopying.value && (($ = u.value) == null ? void 0 : $.cpy_vis_flg) === 0):
9589
9593
  M += " kg-form-item--invisible";
9590
9594
  break;
9591
9595
  }
@@ -9602,9 +9606,9 @@ const KgFormItem = defineComponent({
9602
9606
  },
9603
9607
  kgPlaceholder: m.value,
9604
9608
  kgDisabled: g.value,
9605
- id: y.value
9609
+ id: C.value
9606
9610
  };
9607
- switch (C.value) {
9611
+ switch (T.value) {
9608
9612
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
9609
9613
  break;
9610
9614
  case KG_FORM_ITEM_TYPE.SELECT:
@@ -9625,11 +9629,11 @@ const KgFormItem = defineComponent({
9625
9629
  break;
9626
9630
  }
9627
9631
  return M;
9628
- }), C = computed(() => {
9632
+ }), T = computed(() => {
9629
9633
  var M;
9630
9634
  return (M = i.value) == null ? void 0 : M.ctrl_typ;
9631
- }), y = computed(() => encodeURIComponent(`${e.kgContext}~${a.formID}~${e.kgVarName}`)), T = ref(null);
9632
- function E(M, A) {
9635
+ }), C = computed(() => encodeURIComponent(`${e.kgContext}~${a.formID}~${e.kgVarName}`)), E = ref(null);
9636
+ function y(M, A) {
9633
9637
  var O;
9634
9638
  n.value && (n.value[e.kgVarName] = M), r("kgLookupChange", A), (O = o.value) == null || O.validate([e.kgVarName]);
9635
9639
  }
@@ -9645,7 +9649,7 @@ const KgFormItem = defineComponent({
9645
9649
  };
9646
9650
  return t.control(M);
9647
9651
  }
9648
- switch (C.value) {
9652
+ switch (T.value) {
9649
9653
  case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
9650
9654
  return createVNode(KgFormItemInputNumber, p.value, null);
9651
9655
  case KG_FORM_ITEM_TYPE.SELECT:
@@ -9679,12 +9683,12 @@ const KgFormItem = defineComponent({
9679
9683
  title: a.t(e.kgVarName).value
9680
9684
  }, [a.t(e.kgVarName).value]) : null;
9681
9685
  }
9682
- function R() {
9686
+ function w() {
9683
9687
  var M;
9684
9688
  return !s.value || !((M = s.value) != null && M.lkp_id) ? null : createVNode(Form.ItemRest, null, {
9685
9689
  default: () => [createVNode(KgFormItemAddonLookup, {
9686
9690
  kgDisabled: g.value,
9687
- onKgOk: E,
9691
+ onKgOk: y,
9688
9692
  kgLookupID: s.value.lkp_id
9689
9693
  }, null)]
9690
9694
  });
@@ -9692,7 +9696,7 @@ const KgFormItem = defineComponent({
9692
9696
  return () => {
9693
9697
  var M, A;
9694
9698
  return createVNode(Col, {
9695
- ref: T,
9699
+ ref: E,
9696
9700
  "kg-frm-id": a.formID,
9697
9701
  "kg-var-nam": e.kgVarName,
9698
9702
  "kg-lkp-id": (M = s.value) == null ? void 0 : M.lkp_id,
@@ -9705,9 +9709,9 @@ const KgFormItem = defineComponent({
9705
9709
  name: e.kgVarName,
9706
9710
  rules: c.value,
9707
9711
  validateFirst: !0,
9708
- htmlFor: y.value
9712
+ htmlFor: C.value
9709
9713
  }, {
9710
- default: () => createVNode(Fragment, null, [I(), R()]),
9714
+ default: () => createVNode(Fragment, null, [I(), w()]),
9711
9715
  label: () => k()
9712
9716
  })]
9713
9717
  });
@@ -9955,17 +9959,17 @@ function useKgSubmit(e) {
9955
9959
  };
9956
9960
  }
9957
9961
  const c = computed(() => {
9958
- var k, R, M, A, O;
9962
+ var k, w, M, A, O;
9959
9963
  let _ = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
9960
- const v = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, p = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, C = (k = a.value) == null ? void 0 : k.display_type, y = (R = a.value) == null ? void 0 : R.crt_display_type, T = (M = a.value) == null ? void 0 : M.upt_display_type, E = (A = a.value) == null ? void 0 : A.cpy_display_type, I = (O = a.value) == null ? void 0 : O.del_display_type;
9964
+ const v = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, p = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, T = (k = a.value) == null ? void 0 : k.display_type, C = (w = a.value) == null ? void 0 : w.crt_display_type, E = (M = a.value) == null ? void 0 : M.upt_display_type, y = (A = a.value) == null ? void 0 : A.cpy_display_type, I = (O = a.value) == null ? void 0 : O.del_display_type;
9961
9965
  switch (!0) {
9962
- case (t.isCreating.value && (y === v || !y && C === v)):
9966
+ case (t.isCreating.value && (C === v || !C && T === v)):
9963
9967
  _ = v;
9964
9968
  break;
9965
- case (t.isUpdating.value && (T === v || !T && C === v)):
9969
+ case (t.isUpdating.value && (E === v || !E && T === v)):
9966
9970
  _ = v;
9967
9971
  break;
9968
- case (t.isCopying.value && (E === v || !E && C === v)):
9972
+ case (t.isCopying.value && (y === v || !y && T === v)):
9969
9973
  _ = v;
9970
9974
  break;
9971
9975
  case (t.isDeleting.value && (I === v || !I)):
@@ -9973,13 +9977,13 @@ function useKgSubmit(e) {
9973
9977
  break;
9974
9978
  }
9975
9979
  switch (!0) {
9976
- case (t.isCreating.value && (y === p || !y && C === p)):
9980
+ case (t.isCreating.value && (C === p || !C && T === p)):
9977
9981
  _ = p;
9978
9982
  break;
9979
- case (t.isUpdating.value && (T === p || !T && C === p)):
9983
+ case (t.isUpdating.value && (E === p || !E && T === p)):
9980
9984
  _ = p;
9981
9985
  break;
9982
- case (t.isCopying.value && (E === p || !E && C === p)):
9986
+ case (t.isCopying.value && (y === p || !y && T === p)):
9983
9987
  _ = p;
9984
9988
  break;
9985
9989
  case (t.isDeleting.value && (I === p || !I)):
@@ -10029,8 +10033,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10029
10033
  }) => {
10030
10034
  const c = o.store.getVarSubmitConfig(o.formID);
10031
10035
  return i = watch(u, (g) => {
10032
- var m, b, _, v, p, C, y, T, E, I, k, R;
10033
- g && (g.id = (m = c == null ? void 0 : c.id) != null ? m : null, g.frm_id = o.formID, g.resizable_flg = (b = c == null ? void 0 : c.resizable_flg) != null ? b : 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 = (p = c == null ? void 0 : c.responsive_flg) != null ? p : 1, g.max_width = (C = c == null ? void 0 : c.max_width) != null ? C : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (T = c == null ? void 0 : c.dft_width) != null ? T : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (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 = (R = c == null ? void 0 : c.display_type) != null ? R : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
10036
+ var m, b, _, v, p, T, C, E, y, I, k, w;
10037
+ g && (g.id = (m = c == null ? void 0 : c.id) != null ? m : null, g.frm_id = o.formID, g.resizable_flg = (b = c == null ? void 0 : c.resizable_flg) != null ? b : 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 = (p = c == null ? void 0 : c.responsive_flg) != null ? p : 1, g.max_width = (T = c == null ? void 0 : c.max_width) != null ? T : 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 = (y = c == null ? void 0 : c.layout) != null ? y : 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 = (w = c == null ? void 0 : c.display_type) != null ? w : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
10034
10038
  }, {
10035
10039
  immediate: !0
10036
10040
  }), !1;
@@ -10080,8 +10084,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10080
10084
  r("kgCancel");
10081
10085
  }
10082
10086
  function _() {
10083
- var C;
10084
- return e.kgShowFullscreenButton === !1 || ((C = i.value) == null ? void 0 : C.fullscreen_flg) === 0 ? null : createVNode(Button, {
10087
+ var T;
10088
+ return e.kgShowFullscreenButton === !1 || ((T = i.value) == null ? void 0 : T.fullscreen_flg) === 0 ? null : createVNode(Button, {
10085
10089
  onClick: g,
10086
10090
  class: "kg-submit--btn-fullscreen"
10087
10091
  }, {
@@ -10130,20 +10134,20 @@ function _useFormModel() {
10130
10134
  if (u.value = {}, c != null && c.length) {
10131
10135
  const g = r.selectedRow.value;
10132
10136
  c.forEach((m) => {
10133
- var _, v, p, C, y, T, E, I;
10137
+ var _, v, p, T, C, E, y, I;
10134
10138
  const b = (_ = m.var_nam) != null ? _ : "";
10135
10139
  switch (u.value[b] = void 0, !0) {
10136
10140
  case t.isCreating.value:
10137
10141
  u.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (v = m.crt_dft_val) != null ? v : void 0);
10138
10142
  break;
10139
10143
  case t.isUpdating.value:
10140
- u.value.id = g == null ? void 0 : g.id, u.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (C = (p = m.upt_dft_val) != null ? p : g == null ? void 0 : g[b]) != null ? C : void 0);
10144
+ u.value.id = g == null ? void 0 : g.id, u.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (T = (p = m.upt_dft_val) != null ? p : g == null ? void 0 : g[b]) != null ? T : void 0);
10141
10145
  break;
10142
10146
  case t.isCopying.value:
10143
- u.value.id = g == null ? void 0 : g.id, u.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (T = (y = m.cpy_dft_val) != null ? y : g == null ? void 0 : g[b]) != null ? T : void 0);
10147
+ u.value.id = g == null ? void 0 : g.id, u.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (E = (C = m.cpy_dft_val) != null ? C : g == null ? void 0 : g[b]) != null ? E : void 0);
10144
10148
  break;
10145
10149
  case t.isDeleting.value:
10146
- u.value.id = g == null ? void 0 : g.id, u.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (I = (E = m.del_dft_val) != null ? E : g == null ? void 0 : g[b]) != null ? I : void 0);
10150
+ u.value.id = g == null ? void 0 : g.id, u.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (I = (y = m.del_dft_val) != null ? y : g == null ? void 0 : g[b]) != null ? I : void 0);
10147
10151
  break;
10148
10152
  }
10149
10153
  });
@@ -10218,7 +10222,7 @@ function _useClass(e, t) {
10218
10222
  getClass: computed(() => {
10219
10223
  var i;
10220
10224
  let s = "kg-submit";
10221
- return t.isFullscreen && (s += " kg-submit--fullscreen"), ((i = n.value) == null ? void 0 : i.responsive_flg) !== 0 && (s += " kg-submit--responsive"), a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL && (s += " kg-submit--modal"), e.kgClass && (s += ` ${e.kgClass}`), s;
10225
+ return t.isFullscreen && (s += " kg-submit--fullscreen"), ((i = n.value) == null ? void 0 : i.responsive_flg) !== 0 && (s += " kg-submit--responsive"), a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? s += " kg-submit--modal" : a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s += " kg-submit--table"), e.kgClass && (s += ` ${e.kgClass}`), s;
10222
10226
  })
10223
10227
  };
10224
10228
  }
@@ -10290,71 +10294,70 @@ const getProps$n = () => ({
10290
10294
  setup(e, {
10291
10295
  attrs: t
10292
10296
  }) {
10293
- const r = inject("$dayjs", dayjs), a = useKg(), n = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
10294
- _useFormModel();
10295
- const u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, c = computed(() => n.isDeleting.value && M.value.length === 0 && A.value.length === 0), g = computed(() => n.store.getVarButtonCreate(n.formID)), m = computed(() => n.store.getVarButtonUpdate(n.formID)), b = computed(() => n.store.getVarButtonCopy(n.formID)), _ = computed(() => n.store.getVarButtonDelete(n.formID)), v = computed(() => s.store.isLoading(n.formID)), p = computed(() => n.store.getVarSubmitConfig(n.formID)), C = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), y = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), E = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), I = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), k = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), R = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), M = computed(() => {
10296
- var x, z, Q;
10297
+ const r = inject("$dayjs", dayjs), a = useKg(), n = useKgVar(), o = useKgButton(), s = useKgTable(), i = useKgSubmit(), l = useKgSearch();
10298
+ o.onSubmitSave(async () => (await Z(), !1)), o.onSubmitCancel(async () => (await z(), !1));
10299
+ const u = inject(DI_KG_SLOTS, null);
10300
+ _useFormModel(), KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE;
10301
+ const c = computed(() => n.isDeleting.value && M.value.length === 0 && A.value.length === 0), g = computed(() => n.store.getVarButtonCreate(n.formID)), m = computed(() => n.store.getVarButtonUpdate(n.formID)), b = computed(() => n.store.getVarButtonCopy(n.formID)), _ = computed(() => n.store.getVarButtonDelete(n.formID)), v = computed(() => i.store.isLoading(n.formID)), p = computed(() => n.store.getVarSubmitConfig(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), C = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), E = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), y = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), I = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), k = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), w = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), M = computed(() => {
10302
+ var G, W, J;
10297
10303
  switch (!0) {
10298
10304
  case n.isCreating.value:
10299
- return (x = C.value) != null ? x : [];
10305
+ return (G = T.value) != null ? G : [];
10300
10306
  case n.isUpdating.value:
10301
- return (z = T.value) != null ? z : [];
10307
+ return (W = E.value) != null ? W : [];
10302
10308
  case n.isCopying.value:
10303
- return (Q = I.value) != null ? Q : [];
10309
+ return (J = I.value) != null ? J : [];
10304
10310
  case n.isDeleting.value:
10305
10311
  return [];
10306
10312
  }
10307
10313
  return [];
10308
10314
  }), A = computed(() => {
10309
- var x, z, Q, te;
10315
+ var G, W, J, re;
10310
10316
  switch (!0) {
10311
10317
  case n.isCreating.value:
10312
- return (x = y.value) != null ? x : [];
10318
+ return (G = C.value) != null ? G : [];
10313
10319
  case n.isUpdating.value:
10314
- return (z = E.value) != null ? z : [];
10320
+ return (W = y.value) != null ? W : [];
10315
10321
  case n.isCopying.value:
10316
- return (Q = k.value) != null ? Q : [];
10322
+ return (J = k.value) != null ? J : [];
10317
10323
  case n.isDeleting.value:
10318
- return (te = R.value) != null ? te : [];
10324
+ return (re = w.value) != null ? re : [];
10319
10325
  }
10320
10326
  return [];
10321
- }), O = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID) || !!n.store.isDeletingRequesting(n.formID)), B = computed(() => O.value || v.value), N = computed(() => v.value), P = ref({
10327
+ }), 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), $ = computed(() => v.value), P = ref({
10322
10328
  kgWidth: 0
10323
- }), V = computed(() => {
10324
- var x;
10325
- return !!(c.value || Y.isFullscreen || ((x = p.value) == null ? void 0 : x.resizable_flg) === 0);
10326
- }), w = computed(() => {
10327
- var x, z;
10328
- return c.value ? 398 : (z = (x = p.value) == null ? void 0 : x.min_width) != null ? z : DEFAULT_MIN_WIDTH;
10329
10329
  }), D = computed(() => {
10330
- var x, z;
10331
- return c.value ? 398 : (z = (x = p.value) == null ? void 0 : x.max_width) != null ? z : DEFAULT_MAX_WIDTH;
10330
+ var G;
10331
+ return !!(c.value || Y.isFullscreen || ((G = p.value) == null ? void 0 : G.resizable_flg) === 0);
10332
+ }), V = computed(() => {
10333
+ var G, W;
10334
+ return c.value ? 398 : (W = (G = p.value) == null ? void 0 : G.min_width) != null ? W : DEFAULT_MIN_WIDTH;
10335
+ }), R = computed(() => {
10336
+ var G, W;
10337
+ return c.value ? 398 : (W = (G = p.value) == null ? void 0 : G.max_width) != null ? W : DEFAULT_MAX_WIDTH;
10332
10338
  }), L = computed(() => c.value ? 398 : P.value.kgWidth), H = ref(null);
10333
10339
  _useResizeObserver$1(H);
10334
- const $ = _useTitle(), G = computed(() => c.value ? 400 : P.value.kgWidth && P.value.kgWidth > 0 ? P.value.kgWidth + 2 : 0), q = computed(() => {
10335
- var x, z, Q, te, ae, oe, se, ie, le, ee, ue, ce;
10336
- return G.value === 0 ? !1 : !!(n.isCreating.value && !(((x = p.value) == null ? void 0 : x.crt_display_type) === u || !((z = p.value) != null && z.crt_display_type) && ((Q = p.value) == null ? void 0 : Q.display_type) === u) || n.isUpdating.value && !(((te = p.value) == null ? void 0 : te.upt_display_type) === u || !((ae = p.value) != null && ae.upt_display_type) && ((oe = p.value) == null ? void 0 : oe.display_type) === u) || n.isCopying.value && !(((se = p.value) == null ? void 0 : se.cpy_display_type) === u || !((ie = p.value) != null && ie.cpy_display_type) && ((le = p.value) == null ? void 0 : le.display_type) === u) || n.isDeleting.value && !(((ee = p.value) == null ? void 0 : ee.del_display_type) === u || !((ue = p.value) != null && ue.del_display_type) && ((ce = p.value) == null ? void 0 : ce.display_type) === u));
10337
- }), Y = reactive({
10340
+ const N = _useTitle(), x = computed(() => c.value ? 400 : P.value.kgWidth && P.value.kgWidth > 0 ? P.value.kgWidth + 2 : 0), q = computed(() => x.value === 0 ? !1 : !!(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), Y = reactive({
10338
10341
  isFullscreen: !1
10339
10342
  }), {
10340
- getClass: J
10343
+ getClass: Q
10341
10344
  } = _useClass(e, Y), {
10342
- getLayout: ne
10345
+ getLayout: ae
10343
10346
  } = _useLayout(), {
10344
- getDefaultWidth: re
10345
- } = _useDefaultWidth(), de = computed(() => {
10346
- var x, z, Q;
10347
- switch (ne.value) {
10347
+ getDefaultWidth: ee
10348
+ } = _useDefaultWidth(), ce = computed(() => {
10349
+ var G, W, J;
10350
+ switch (ae.value) {
10348
10351
  case "horizontal":
10349
- switch ((x = p.value) == null ? void 0 : x.label_col_unit) {
10352
+ switch ((G = p.value) == null ? void 0 : G.label_col_unit) {
10350
10353
  case KG_WIDTH_UNIT.SPAN:
10351
10354
  return {
10352
- span: (z = p.value) == null ? void 0 : z.label_col
10355
+ span: (W = p.value) == null ? void 0 : W.label_col
10353
10356
  };
10354
10357
  default:
10355
10358
  return {
10356
10359
  style: {
10357
- width: `${(Q = p.value) == null ? void 0 : Q.label_col}px`
10360
+ width: `${(J = p.value) == null ? void 0 : J.label_col}px`
10358
10361
  }
10359
10362
  };
10360
10363
  }
@@ -10362,13 +10365,13 @@ const getProps$n = () => ({
10362
10365
  return;
10363
10366
  }
10364
10367
  }), F = computed(() => {
10365
- var x, z;
10366
- switch (ne.value) {
10368
+ var G, W;
10369
+ switch (ae.value) {
10367
10370
  case "horizontal":
10368
- switch ((x = p.value) == null ? void 0 : x.label_col_unit) {
10371
+ switch ((G = p.value) == null ? void 0 : G.label_col_unit) {
10369
10372
  case KG_WIDTH_UNIT.SPAN:
10370
10373
  return {
10371
- span: 24 - ((z = p.value) == null ? void 0 : z.label_col)
10374
+ span: 24 - ((W = p.value) == null ? void 0 : W.label_col)
10372
10375
  };
10373
10376
  default:
10374
10377
  return;
@@ -10377,35 +10380,35 @@ const getProps$n = () => ({
10377
10380
  return;
10378
10381
  }
10379
10382
  });
10380
- watch(q, (x, z) => {
10381
- x === !0 && K(), z === !0 && x === !1 && U();
10383
+ watch(q, (G, W) => {
10384
+ G === !0 && B(), W === !0 && G === !1 && U();
10382
10385
  }, {
10383
10386
  immediate: !0
10384
- }), watch(re, (x) => {
10385
- x && (P.value.kgWidth = x);
10387
+ }), watch(ee, (G) => {
10388
+ G && (P.value.kgWidth = G);
10386
10389
  }, {
10387
10390
  immediate: !0
10388
10391
  });
10389
- function K() {
10390
- var z;
10391
- const x = watch(s.model, (Q) => {
10392
- Q && Object.keys(Q).length > 0 && (setTimeout(() => x()), s.store.emit(n.formID, "open", {
10392
+ function B() {
10393
+ var W;
10394
+ const G = watch(i.model, (J) => {
10395
+ J && Object.keys(J).length > 0 && (setTimeout(() => G()), i.store.emit(n.formID, "open", {
10393
10396
  isCreating: n.isCreating.value,
10394
10397
  isUpdating: n.isUpdating.value,
10395
10398
  isCopying: n.isCopying.value,
10396
10399
  isDeleting: n.isDeleting.value,
10397
- row: o.selectedRow.value,
10398
- model: s.model
10400
+ row: s.selectedRow.value,
10401
+ model: i.model
10399
10402
  }));
10400
10403
  }, {
10401
10404
  immediate: !0
10402
10405
  });
10403
- ((z = p.value) == null ? void 0 : z.dft_fullscreen_flg) === 1 && !c.value && (Y.isFullscreen = !0);
10406
+ ((W = p.value) == null ? void 0 : W.dft_fullscreen_flg) === 1 && !c.value && (Y.isFullscreen = !0);
10404
10407
  }
10405
10408
  function U() {
10406
- P.value.kgWidth = re.value, Y.isFullscreen = !1, s.store.emit(n.formID, "close");
10409
+ P.value.kgWidth = ee.value, Y.isFullscreen = !1, i.store.emit(n.formID, "close");
10407
10410
  }
10408
- function W() {
10411
+ function z() {
10409
10412
  switch (!0) {
10410
10413
  case n.isCreating.value:
10411
10414
  n.store.setIsCreating(n.formID, !1);
@@ -10422,31 +10425,31 @@ const getProps$n = () => ({
10422
10425
  }
10423
10426
  }
10424
10427
  async function Z() {
10425
- var x, z;
10428
+ var G, W;
10426
10429
  try {
10427
- if (await s.store.emit(n.formID, "beforeOk", {
10430
+ if (await i.store.emit(n.formID, "beforeOk", {
10428
10431
  isCreating: n.isCreating.value,
10429
10432
  isUpdating: n.isUpdating.value,
10430
10433
  isCopying: n.isCopying.value,
10431
10434
  isDeleting: n.isDeleting.value,
10432
- row: o.selectedRow.value,
10433
- rules: s.rules,
10434
- model: s.model
10435
+ row: s.selectedRow.value,
10436
+ rules: i.rules,
10437
+ model: i.model
10435
10438
  }))
10436
10439
  return;
10437
10440
  try {
10438
- await ((x = s.formRef.value) == null ? void 0 : x.validate());
10439
- } catch (ae) {
10440
- KgUtil.throwIfNotFormError(ae);
10441
+ await ((G = i.formRef.value) == null ? void 0 : G.validate());
10442
+ } catch (ne) {
10443
+ KgUtil.throwIfNotFormError(ne);
10441
10444
  }
10442
- if (await ((z = s.formRef.value) == null ? void 0 : z.validate()), await s.store.emit(n.formID, "afterValidate", {
10445
+ if (await ((W = i.formRef.value) == null ? void 0 : W.validate()), await i.store.emit(n.formID, "afterValidate", {
10443
10446
  isCreating: n.isCreating.value,
10444
10447
  isUpdating: n.isUpdating.value,
10445
10448
  isCopying: n.isCopying.value,
10446
10449
  isDeleting: n.isDeleting.value,
10447
- row: o.selectedRow.value,
10448
- rows: o.selectedRows.value,
10449
- model: s.model
10450
+ row: s.selectedRow.value,
10451
+ rows: s.selectedRows.value,
10452
+ model: i.model
10450
10453
  }))
10451
10454
  return;
10452
10455
  switch (!0) {
@@ -10454,7 +10457,7 @@ const getProps$n = () => ({
10454
10457
  await X();
10455
10458
  break;
10456
10459
  case n.isUpdating.value:
10457
- await ge();
10460
+ await de();
10458
10461
  break;
10459
10462
  case n.isCopying.value:
10460
10463
  await pe();
@@ -10463,14 +10466,14 @@ const getProps$n = () => ({
10463
10466
  await be();
10464
10467
  break;
10465
10468
  }
10466
- } catch (Q) {
10467
- KgUtil.throwIfNotFormError(Q);
10469
+ } catch (J) {
10470
+ KgUtil.throwIfNotFormError(J);
10468
10471
  }
10469
10472
  }
10470
10473
  async function X() {
10471
- var z, Q, te, ae, oe, se, ie, le;
10472
- const x = (z = g.value) == null ? void 0 : z.cmd;
10473
- if (!x) {
10474
+ var W, J, re, ne, oe, se, ie, le;
10475
+ const G = (W = g.value) == null ? void 0 : W.cmd;
10476
+ if (!G) {
10474
10477
  Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10475
10478
  VarButton: g.value
10476
10479
  });
@@ -10478,35 +10481,35 @@ const getProps$n = () => ({
10478
10481
  }
10479
10482
  n.store.setIsCreatingRequesting(n.formID, !0);
10480
10483
  try {
10481
- let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((te = (Q = g.value) == null ? void 0 : Q.cmd_prm) != null ? te : ""), n.formID, r)), ue = ref(KgUtil.parseParams(toRaw(s.model.value), n.formID, r));
10482
- if (await s.store.emit(n.formID, "beforeRequest", {
10484
+ let te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (J = g.value) == null ? void 0 : J.cmd_prm) != null ? re : ""), n.formID, r)), ue = ref(KgUtil.parseParams(toRaw(i.model.value), n.formID, r));
10485
+ if (await i.store.emit(n.formID, "beforeRequest", {
10483
10486
  isCreating: n.isCreating.value,
10484
10487
  isUpdating: n.isUpdating.value,
10485
10488
  isCopying: n.isCopying.value,
10486
10489
  isDeleting: n.isDeleting.value,
10487
- row: o.selectedRow.value,
10488
- rows: o.selectedRows.value,
10489
- model: s.model,
10490
- params: ee,
10490
+ row: s.selectedRow.value,
10491
+ rows: s.selectedRows.value,
10492
+ model: i.model,
10493
+ params: te,
10491
10494
  data: ue
10492
10495
  }))
10493
10496
  return;
10494
10497
  await httpClient().request({
10495
- method: (oe = (ae = g.value) == null ? void 0 : ae.cmd_method) != null ? oe : "POST",
10496
- url: x,
10497
- params: ee.value,
10498
+ method: (oe = (ne = g.value) == null ? void 0 : ne.cmd_method) != null ? oe : "POST",
10499
+ url: G,
10500
+ params: te.value,
10498
10501
  data: ue.value
10499
- }), ((se = g.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success($.title.value + a.t("kg.succeed")), s.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (le = (ie = i.search).value) == null || le.call(ie, !0);
10500
- } catch (ee) {
10501
- console.error(ee);
10502
+ }), ((se = g.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(N.title.value + a.t("kg.succeed")), i.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (le = (ie = l.search).value) == null || le.call(ie, !0);
10503
+ } catch (te) {
10504
+ console.error(te);
10502
10505
  } finally {
10503
10506
  n.store.setIsCreatingRequesting(n.formID, !1);
10504
10507
  }
10505
10508
  }
10506
- async function ge() {
10507
- var z, Q, te, ae, oe, se, ie, le;
10508
- const x = (z = m.value) == null ? void 0 : z.cmd;
10509
- if (!x) {
10509
+ async function de() {
10510
+ var W, J, re, ne, oe, se, ie, le;
10511
+ const G = (W = m.value) == null ? void 0 : W.cmd;
10512
+ if (!G) {
10510
10513
  Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10511
10514
  VarButton: m.value
10512
10515
  });
@@ -10514,35 +10517,35 @@ const getProps$n = () => ({
10514
10517
  }
10515
10518
  try {
10516
10519
  n.store.setIsUpdatingRequesting(n.formID, !0);
10517
- let ee = ref(KgVarUtil.parseCommandParameter((te = (Q = m.value) == null ? void 0 : Q.cmd_prm) != null ? te : "")), ue = ref(toRaw(s.model.value));
10518
- if (await s.store.emit(n.formID, "beforeRequest", {
10520
+ let te = ref(KgVarUtil.parseCommandParameter((re = (J = m.value) == null ? void 0 : J.cmd_prm) != null ? re : "")), ue = ref(toRaw(i.model.value));
10521
+ if (await i.store.emit(n.formID, "beforeRequest", {
10519
10522
  isCreating: n.isCreating.value,
10520
10523
  isUpdating: n.isUpdating.value,
10521
10524
  isCopying: n.isCopying.value,
10522
10525
  isDeleting: n.isDeleting.value,
10523
- row: o.selectedRow.value,
10524
- rows: o.selectedRows.value,
10525
- model: s.model,
10526
- params: ee,
10526
+ row: s.selectedRow.value,
10527
+ rows: s.selectedRows.value,
10528
+ model: i.model,
10529
+ params: te,
10527
10530
  data: ue
10528
10531
  }))
10529
10532
  return;
10530
10533
  await httpClient().request({
10531
- method: (oe = (ae = m.value) == null ? void 0 : ae.cmd_method) != null ? oe : "POST",
10532
- url: x,
10533
- params: ee.value,
10534
+ method: (oe = (ne = m.value) == null ? void 0 : ne.cmd_method) != null ? oe : "POST",
10535
+ url: G,
10536
+ params: te.value,
10534
10537
  data: ue.value
10535
- }), ((se = m.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(a.t("kg.updateSuccess")), s.store.emit(n.formID, "ok"), n.store.setIsUpdating(n.formID, !1), (le = (ie = i.search).value) == null || le.call(ie);
10536
- } catch (ee) {
10537
- console.error(ee);
10538
+ }), ((se = m.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(a.t("kg.updateSuccess")), i.store.emit(n.formID, "ok"), n.store.setIsUpdating(n.formID, !1), (le = (ie = l.search).value) == null || le.call(ie);
10539
+ } catch (te) {
10540
+ console.error(te);
10538
10541
  } finally {
10539
10542
  n.store.setIsUpdatingRequesting(n.formID, !1);
10540
10543
  }
10541
10544
  }
10542
10545
  async function pe() {
10543
- var z, Q, te, ae, oe, se, ie, le, ee, ue;
10544
- const x = (z = b.value) == null ? void 0 : z.cmd;
10545
- if (!x) {
10546
+ var W, J, re, ne, oe, se, ie, le, te, ue;
10547
+ const G = (W = b.value) == null ? void 0 : W.cmd;
10548
+ if (!G) {
10546
10549
  Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10547
10550
  VarButton: b.value
10548
10551
  });
@@ -10550,38 +10553,38 @@ const getProps$n = () => ({
10550
10553
  }
10551
10554
  try {
10552
10555
  n.store.setIsCopyingRequesting(n.formID, !0);
10553
- let ce = ref(KgVarUtil.parseCommandParameter((te = (Q = b.value) == null ? void 0 : Q.cmd_prm) != null ? te : "")), fe = ref({
10554
- ...(ae = o.selectedRow.value) != null ? ae : {},
10555
- ...toRaw(s.model.value)
10556
+ let ge = ref(KgVarUtil.parseCommandParameter((re = (J = b.value) == null ? void 0 : J.cmd_prm) != null ? re : "")), fe = ref({
10557
+ ...(ne = s.selectedRow.value) != null ? ne : {},
10558
+ ...toRaw(i.model.value)
10556
10559
  });
10557
- if (((oe = p.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete fe.value.id, await s.store.emit(n.formID, "beforeRequest", {
10560
+ if (((oe = p.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete fe.value.id, await i.store.emit(n.formID, "beforeRequest", {
10558
10561
  isCreating: n.isCreating.value,
10559
10562
  isUpdating: n.isUpdating.value,
10560
10563
  isCopying: n.isCopying.value,
10561
10564
  isDeleting: n.isDeleting.value,
10562
- row: o.selectedRow.value,
10563
- rows: o.selectedRows.value,
10564
- model: s.model,
10565
- params: ce,
10565
+ row: s.selectedRow.value,
10566
+ rows: s.selectedRows.value,
10567
+ model: i.model,
10568
+ params: ge,
10566
10569
  data: fe
10567
10570
  }))
10568
10571
  return;
10569
10572
  await httpClient().request({
10570
10573
  method: (ie = (se = b.value) == null ? void 0 : se.cmd_method) != null ? ie : "POST",
10571
- url: x,
10572
- params: ce.value,
10574
+ url: G,
10575
+ params: ge.value,
10573
10576
  data: fe.value
10574
- }), ((le = b.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 = i.search).value) == null || ue.call(ee, !0);
10575
- } catch (ce) {
10576
- console.error(ce);
10577
+ }), ((le = b.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(a.t("kg.copySuccess")), i.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (ue = (te = l.search).value) == null || ue.call(te, !0);
10578
+ } catch (ge) {
10579
+ console.error(ge);
10577
10580
  } finally {
10578
10581
  n.store.setIsCopyingRequesting(n.formID, !1);
10579
10582
  }
10580
10583
  }
10581
10584
  async function be() {
10582
- var z, Q, te, ae, oe, se, ie, le;
10583
- const x = (z = _.value) == null ? void 0 : z.cmd;
10584
- if (!x) {
10585
+ var W, J, re, ne, oe, se, ie, le;
10586
+ const G = (W = _.value) == null ? void 0 : W.cmd;
10587
+ if (!G) {
10585
10588
  Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
10586
10589
  VarButton: _.value
10587
10590
  });
@@ -10589,99 +10592,99 @@ const getProps$n = () => ({
10589
10592
  }
10590
10593
  try {
10591
10594
  n.store.setIsDeletingRequesting(n.formID, !0);
10592
- let ee = ref({
10593
- ids: (te = (Q = o.selectedRows.value) == null ? void 0 : Q.map((fe) => {
10595
+ let te = ref({
10596
+ ids: (re = (J = s.selectedRows.value) == null ? void 0 : J.map((fe) => {
10594
10597
  var me, _e, ve;
10595
10598
  return (ve = fe[(_e = (me = _.value) == null ? void 0 : me.del_param_clm) != null ? _e : "id"]) != null ? ve : "";
10596
- })) != null ? te : []
10599
+ })) != null ? re : []
10597
10600
  }), ue = ref({});
10598
- if (await s.store.emit(n.formID, "beforeRequest", {
10601
+ if (await i.store.emit(n.formID, "beforeRequest", {
10599
10602
  isCreating: n.isCreating.value,
10600
10603
  isUpdating: n.isUpdating.value,
10601
10604
  isCopying: n.isCopying.value,
10602
10605
  isDeleting: n.isDeleting.value,
10603
- row: o.selectedRow.value,
10604
- rows: o.selectedRows.value,
10605
- model: s.model,
10606
- params: ee,
10606
+ row: s.selectedRow.value,
10607
+ rows: s.selectedRows.value,
10608
+ model: i.model,
10609
+ params: te,
10607
10610
  data: ue
10608
10611
  }))
10609
10612
  return;
10610
10613
  await httpClient().request({
10611
- method: (oe = (ae = _.value) == null ? void 0 : ae.cmd_method) != null ? oe : "DELETE",
10612
- url: x,
10613
- params: ee.value,
10614
+ method: (oe = (ne = _.value) == null ? void 0 : ne.cmd_method) != null ? oe : "DELETE",
10615
+ url: G,
10616
+ params: te.value,
10614
10617
  data: ue.value
10615
10618
  }, {
10616
10619
  joinParamsToUrl: !0
10617
- }), ((se = _.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(a.t("kg.deleteSuccess")), s.store.emit(n.formID, "ok"), n.store.setIsDeleting(n.formID, !1), (le = (ie = i.search).value) == null || le.call(ie, !0);
10618
- } catch (ee) {
10619
- console.error(ee);
10620
+ }), ((se = _.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(a.t("kg.deleteSuccess")), i.store.emit(n.formID, "ok"), n.store.setIsDeleting(n.formID, !1), (le = (ie = l.search).value) == null || le.call(ie, !0);
10621
+ } catch (te) {
10622
+ console.error(te);
10620
10623
  } finally {
10621
10624
  n.store.setIsDeletingRequesting(n.formID, !1);
10622
10625
  }
10623
10626
  }
10624
- function he(x) {
10625
- var Q, te;
10626
- const z = (te = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : te[x.var_nam];
10627
- return isFunction$2(z) ? createVNode(KgForm.Item, {
10628
- kgVarName: x.var_nam,
10627
+ function he(G) {
10628
+ var J, re;
10629
+ const W = (re = (J = u == null ? void 0 : u.KgSubmit) == null ? void 0 : J["KgForm.Item"]) == null ? void 0 : re[G.var_nam];
10630
+ return isFunction$2(W) ? createVNode(KgForm.Item, {
10631
+ kgVarName: G.var_nam,
10629
10632
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10630
- kgRules: s.rules.value[x.var_nam],
10633
+ kgRules: i.rules.value[G.var_nam],
10631
10634
  onKgSubmit: Z
10632
10635
  }, {
10633
10636
  control: ({
10634
- varName: ae,
10637
+ varName: ne,
10635
10638
  props: oe,
10636
10639
  model: se,
10637
10640
  varConfig: ie,
10638
10641
  varProfileDetail: le,
10639
- varSubmitField: ee
10640
- }) => z({
10641
- varName: ae,
10642
+ varSubmitField: te
10643
+ }) => W({
10644
+ varName: ne,
10642
10645
  props: oe,
10643
10646
  model: se,
10644
10647
  varConfig: ie,
10645
10648
  varProfileDetail: le,
10646
- varSubmitField: ee
10649
+ varSubmitField: te
10647
10650
  })
10648
10651
  }) : createVNode(KgForm.Item, {
10649
- kgVarName: x.var_nam,
10652
+ kgVarName: G.var_nam,
10650
10653
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10651
- kgRules: s.rules.value[x.var_nam],
10654
+ kgRules: i.rules.value[G.var_nam],
10652
10655
  onKgSubmit: Z
10653
10656
  }, null);
10654
10657
  }
10655
10658
  function ye() {
10656
- let x, z;
10659
+ let G, W;
10657
10660
  return createVNode(KgResizable, {
10658
- kgType: s.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
10659
- kgMinWidth: w.value,
10660
- kgMaxWidth: D.value,
10661
+ kgType: i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
10662
+ kgMinWidth: V.value,
10663
+ kgMaxWidth: R.value,
10661
10664
  kgWidth: L.value,
10662
- kgDisabled: V.value,
10663
- "onUpdate:kgWidth": (Q) => P.value.kgWidth = Q
10665
+ kgDisabled: D.value,
10666
+ "onUpdate:kgWidth": (J) => P.value.kgWidth = J
10664
10667
  }, {
10665
10668
  default: () => [createVNode(Spin, {
10666
10669
  spinning: v.value
10667
10670
  }, {
10668
10671
  default: () => [createVNode(KgForm, {
10669
- ref: s.formRef,
10670
- model: s.model.value,
10671
- layout: ne.value,
10672
- labelCol: de.value,
10672
+ ref: i.formRef,
10673
+ model: i.model.value,
10674
+ layout: ae.value,
10675
+ labelCol: ce.value,
10673
10676
  wrapperCol: F.value
10674
10677
  }, {
10675
10678
  default: () => [createVNode("div", {
10676
10679
  ref: H
10677
10680
  }, [M.value.length > 0 && createVNode(Row, {
10678
10681
  gutter: 12
10679
- }, _isSlot$7(x = M.value.map(he)) ? x : {
10680
- default: () => [x]
10682
+ }, _isSlot$7(G = M.value.map(he)) ? G : {
10683
+ default: () => [G]
10681
10684
  }), M.value.length > 0 && A.value.length > 0 && createVNode(Divider, null, null), A.value.length > 0 && createVNode(Row, {
10682
10685
  gutter: 12
10683
- }, _isSlot$7(z = A.value.map(he)) ? z : {
10684
- default: () => [z]
10686
+ }, _isSlot$7(W = A.value.map(he)) ? W : {
10687
+ default: () => [W]
10685
10688
  }), c.value && createVNode("div", {
10686
10689
  style: "text-align: center; padding: 6px 0 12px;"
10687
10690
  }, [a.t("kg.confirmDelete")])])]
@@ -10690,40 +10693,40 @@ const getProps$n = () => ({
10690
10693
  });
10691
10694
  }
10692
10695
  function Se() {
10693
- let x, z;
10696
+ let G, W;
10694
10697
  return createVNode("div", null, [createVNode(Button, {
10695
10698
  type: "primary",
10696
- ghost: !B.value,
10697
- disabled: B.value,
10698
- onClick: W
10699
- }, _isSlot$7(x = a.t("kg.cancel")) ? x : {
10700
- default: () => [x]
10699
+ ghost: !K.value,
10700
+ disabled: K.value,
10701
+ onClick: z
10702
+ }, _isSlot$7(G = a.t("kg.cancel")) ? G : {
10703
+ default: () => [G]
10701
10704
  }), createVNode(Button, {
10702
10705
  type: "primary",
10703
- disabled: N.value,
10706
+ disabled: $.value,
10704
10707
  loading: O.value,
10705
10708
  danger: !!n.isDeleting.value,
10706
10709
  onClick: Z
10707
- }, _isSlot$7(z = a.t(n.isDeleting.value ? "kg.delete" : "kg.save")) ? z : {
10708
- default: () => [z]
10710
+ }, _isSlot$7(W = a.t(n.isDeleting.value ? "kg.delete" : "kg.save")) ? W : {
10711
+ default: () => [W]
10709
10712
  })]);
10710
10713
  }
10711
10714
  function Ce() {
10712
10715
  return createVNode("div", {
10713
- title: $.title.value
10714
- }, [$.title.value]);
10716
+ title: N.title.value
10717
+ }, [N.title.value]);
10715
10718
  }
10716
10719
  function Te() {
10717
10720
  return createVNode(KgSubmitHeader, {
10718
10721
  isFullscreen: Y.isFullscreen,
10719
- "onUpdate:isFullscreen": (x) => Y.isFullscreen = x,
10722
+ "onUpdate:isFullscreen": (G) => Y.isFullscreen = G,
10720
10723
  kgShowFullscreenButton: !c.value,
10721
10724
  kgShowConfigButton: !c.value && e.kgShowConfigButton,
10722
- onKgCancel: W
10725
+ onKgCancel: z
10723
10726
  }, null);
10724
10727
  }
10725
10728
  return onUnmounted(() => {
10726
- s.store.dispose(n.formID);
10729
+ i.store.dispose(n.formID);
10727
10730
  }), () => createVNode(Drawer, {
10728
10731
  visible: q.value,
10729
10732
  placement: "right",
@@ -10731,8 +10734,8 @@ const getProps$n = () => ({
10731
10734
  maskClosable: !1,
10732
10735
  keyboard: !1,
10733
10736
  destroyOnClose: !0,
10734
- width: G.value,
10735
- class: J.value,
10737
+ width: x.value,
10738
+ class: Q.value,
10736
10739
  "kg-frm-id": n.formID
10737
10740
  }, {
10738
10741
  title: Ce,
@@ -10900,11 +10903,11 @@ function useKgTable(e) {
10900
10903
  var p;
10901
10904
  return ((p = t.varGridConfig.value) == null ? void 0 : p.show_bottom_right_flg) !== 0;
10902
10905
  }), m = computed(() => {
10903
- var p, C;
10904
- return (C = (p = t.varGridConfig.value) == null ? void 0 : p.id_clm) != null ? C : "id";
10906
+ var p, T;
10907
+ return (T = (p = t.varGridConfig.value) == null ? void 0 : p.id_clm) != null ? T : "id";
10905
10908
  }), b = computed(() => {
10906
- var p, C;
10907
- return JSON.parse((C = (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opts) != null ? C : "[]");
10909
+ var p, T;
10910
+ return JSON.parse((T = (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opts) != null ? T : "[]");
10908
10911
  }), _ = computed(() => {
10909
10912
  var p;
10910
10913
  return (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opt;
@@ -10930,7 +10933,7 @@ function useKgTable(e) {
10930
10933
  onRetrieve: n
10931
10934
  };
10932
10935
  }
10933
- const KgTable_Cell = "", getProps$l = () => ({
10936
+ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_MAX_WIDTH = 1920, KG_TABLE_TD_CHECK_WIDTH = 32, KG_TABLE_TD_INDEX_WIDTH = 40, ID_CREATE = "_ID_CREATE", KgTable_Cell = "", getProps$l = () => ({
10934
10937
  kgRow: Object,
10935
10938
  kgValue: [Object, String, Number, Boolean, Date],
10936
10939
  kgVarName: String,
@@ -10943,43 +10946,58 @@ const KgTable_Cell = "", getProps$l = () => ({
10943
10946
  slots: t,
10944
10947
  emit: r
10945
10948
  }) {
10946
- const a = useKg(), n = useKgVar(), o = useKgSubmit(), s = useKgTable(), i = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), l = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
10947
- var C, y, T, E, I, k;
10948
- return ((C = e.kgRow) == null ? void 0 : C[s.id.value]) === ((y = s.selectedRow.value) == null ? void 0 : y[s.id.value]) && (!!n.isCreating.value && ((T = l.value) == null ? void 0 : T.crt_flg) === 1 || !!n.isUpdating.value && ((E = l.value) == null ? void 0 : E.upt_flg) === 1 || !!n.isCopying.value && ((I = l.value) == null ? void 0 : I.cpy_flg) === 1 || !!n.isDeleting.value && ((k = l.value) == null ? void 0 : k.del_flg) === 1);
10949
- }), c = computed(() => {
10950
- var y, T;
10951
- let C = "kg-table-td";
10952
- return ((y = i.value) == null ? void 0 : y.align) === "center" ? C += " kg-table-td--center" : ((T = i.value) == null ? void 0 : T.align) === "right" && (C += " kg-table-td--right"), u.value && (C += " kg-table-td--submitting"), C;
10949
+ const a = useKg(), n = useKgVar(), o = useKgButton(), s = useKgSubmit(), i = useKgTable();
10950
+ o.onSubmitSave(async () => {
10951
+ var y;
10952
+ try {
10953
+ await ((y = _.value) == null ? void 0 : y.validate());
10954
+ } catch (I) {
10955
+ KgUtil.throwIfNotFormError(I);
10956
+ }
10957
+ return !1;
10958
+ });
10959
+ const l = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), u = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), c = computed(() => {
10960
+ var y, I, k, w, M, A;
10961
+ return s.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((y = e.kgRow) == null ? void 0 : y[i.id.value]) === ((I = i.selectedRow.value) == null ? void 0 : I[i.id.value]) && (!!n.isCreating.value && ((k = u.value) == null ? void 0 : k.crt_flg) === 1 || !!n.isUpdating.value && ((w = u.value) == null ? void 0 : w.upt_flg) === 1 || !!n.isCopying.value && ((M = u.value) == null ? void 0 : M.cpy_flg) === 1 || !!n.isDeleting.value && ((A = u.value) == null ? void 0 : A.del_flg) === 1);
10953
10962
  }), g = computed(() => {
10954
- let C = e.kgValue;
10955
- return isString$1(e.kgValue) && (C = e.kgValue.replaceAll("\\n", `
10956
- `)), C;
10957
- });
10958
- function m(C) {
10959
- var y, T, E;
10960
- if (C.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
10961
- switch ((y = i.value) == null ? void 0 : y.display_type) {
10963
+ var y, I;
10964
+ return s.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((y = e.kgRow) == null ? void 0 : y[i.id.value]) === ((I = i.selectedRow.value) == null ? void 0 : I[i.id.value]) && (!!n.isCreating.value && !!n.isCreatingRequesting.value || !!n.isUpdating.value && !!n.isUpdatingRequesting.value || !!n.isCopying.value && !!n.isCopyingRequesting.value || !!n.isDeleting.value && !!n.isDeletingRequesting.value);
10965
+ }), m = computed(() => {
10966
+ var I, k;
10967
+ let y = "kg-table-td";
10968
+ return ((I = l.value) == null ? void 0 : I.align) === "center" ? y += " kg-table-td--center" : ((k = l.value) == null ? void 0 : k.align) === "right" && (y += " kg-table-td--right"), c.value && (y += " kg-table-td--submitting"), y;
10969
+ }), b = computed(() => {
10970
+ if (e.kgValue === ID_CREATE)
10971
+ return "";
10972
+ let y = e.kgValue;
10973
+ return isString$1(e.kgValue) && (y = e.kgValue.replaceAll("\\n", `
10974
+ `)), y;
10975
+ }), _ = ref(null);
10976
+ function v(y) {
10977
+ var I, k, w;
10978
+ if (y.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
10979
+ switch ((I = l.value) == null ? void 0 : I.display_type) {
10962
10980
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
10963
- C.stopPropagation(), C.preventDefault(), r("kgUpdateLinkClick");
10981
+ y.stopPropagation(), y.preventDefault(), r("kgUpdateLinkClick");
10964
10982
  break;
10965
10983
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
10966
10984
  {
10967
- C.stopPropagation(), C.preventDefault();
10968
- const I = KgUtil.tryParseJSON((T = i.value) == null ? void 0 : T.display_type_properties);
10969
- (E = a.router.value) == null || E.push({
10970
- path: I.path,
10985
+ y.stopPropagation(), y.preventDefault();
10986
+ const M = KgUtil.tryParseJSON((k = l.value) == null ? void 0 : k.display_type_properties);
10987
+ (w = a.router.value) == null || w.push({
10988
+ path: M.path,
10971
10989
  query: e.kgRow
10972
10990
  });
10973
10991
  }
10974
10992
  break;
10975
10993
  }
10976
10994
  }
10977
- function b() {
10995
+ function p() {
10978
10996
  }
10979
- function _() {
10997
+ function T() {
10980
10998
  return createVNode(KgForm, {
10981
- ref: o.formRef,
10982
- model: o.model.value,
10999
+ ref: _,
11000
+ model: s.model.value,
10983
11001
  layout: "vertical",
10984
11002
  wrapperCol: {
10985
11003
  span: 24
@@ -10989,63 +11007,64 @@ const KgTable_Cell = "", getProps$l = () => ({
10989
11007
  default: () => [createVNode(KgForm.Item, {
10990
11008
  kgVarName: e.kgVarName,
10991
11009
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10992
- kgRules: o.rules.value[e.kgVarName],
11010
+ kgRules: s.rules.value[e.kgVarName],
10993
11011
  kgSpan: 24,
10994
- onKgSubmit: b
11012
+ kgDisabled: g.value,
11013
+ onKgSubmit: p
10995
11014
  }, null)]
10996
11015
  })]
10997
11016
  });
10998
11017
  }
10999
- function v() {
11000
- var C, y, T, E, I, k, R, M;
11001
- if (u.value)
11002
- return _();
11003
- switch ((C = i.value) == null ? void 0 : C.display_type) {
11018
+ function C() {
11019
+ var y, I, k, w, M, A, O, K;
11020
+ if (c.value)
11021
+ return T();
11022
+ switch ((y = l.value) == null ? void 0 : y.display_type) {
11004
11023
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
11005
- const A = KgUtil.tryParseJSON((y = i.value) == null ? void 0 : y.display_type_properties);
11024
+ const $ = KgUtil.tryParseJSON((I = l.value) == null ? void 0 : I.display_type_properties);
11006
11025
  return createVNode(KgYesOrNo, {
11007
- kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((T = A.yValue) != null ? T : 1),
11008
- kgNilAsFalse: A.nilAsFalse
11026
+ kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((k = $.yValue) != null ? k : 1),
11027
+ kgNilAsFalse: $.nilAsFalse
11009
11028
  }, null);
11010
11029
  }
11011
11030
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
11012
- const A = KgUtil.tryParseJSON((E = i.value) == null ? void 0 : E.display_type_properties), O = isArrayLike(A) && A.find((B) => B.value === e.kgValue);
11013
- return O ? createVNode(Tag, {
11014
- color: (I = O.color) != null ? I : "default"
11031
+ const $ = KgUtil.tryParseJSON((w = l.value) == null ? void 0 : w.display_type_properties), P = isArrayLike($) && $.find((D) => D.value === e.kgValue);
11032
+ return P ? createVNode(Tag, {
11033
+ color: (M = P.color) != null ? M : "default"
11015
11034
  }, {
11016
- default: () => [n.t(O.varName).value]
11017
- }) : p();
11035
+ default: () => [n.t(P.varName).value]
11036
+ }) : E();
11018
11037
  }
11019
11038
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
11020
- const A = KgUtil.tryParseJSON((k = i.value) == null ? void 0 : k.display_type_properties);
11039
+ const $ = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
11021
11040
  return createVNode(KgProgressA, {
11022
- kgTextWidth: A.textWidth,
11023
- kgLeft: (R = e.kgRow) == null ? void 0 : R[A.leftColumn],
11024
- kgRight: (M = e.kgRow) == null ? void 0 : M[A.rightColumn]
11041
+ kgTextWidth: $.textWidth,
11042
+ kgLeft: (O = e.kgRow) == null ? void 0 : O[$.leftColumn],
11043
+ kgRight: (K = e.kgRow) == null ? void 0 : K[$.rightColumn]
11025
11044
  }, null);
11026
11045
  }
11027
11046
  case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
11028
11047
  return KgUtil.getFileSize(e.kgValue);
11029
11048
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
11030
- return p(!0);
11049
+ return E(!0);
11031
11050
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
11032
- return p(!0);
11051
+ return E(!0);
11033
11052
  default:
11034
- return p();
11053
+ return E();
11035
11054
  }
11036
11055
  }
11037
- function p(C = !1) {
11038
- let y = "";
11039
- return C && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (y += "kg-table-td-update-link"), createVNode("pre", {
11040
- innerHTML: g.value,
11041
- class: y,
11042
- onClick: m
11056
+ function E(y = !1) {
11057
+ let I = "";
11058
+ return y && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (I += "kg-table-td-update-link"), createVNode("pre", {
11059
+ innerHTML: b.value,
11060
+ class: I,
11061
+ onClick: v
11043
11062
  }, null);
11044
11063
  }
11045
11064
  return () => createVNode("div", {
11046
- class: c.value,
11047
- title: g.value
11048
- }, [v()]);
11065
+ class: m.value,
11066
+ title: b.value
11067
+ }, [C()]);
11049
11068
  }
11050
11069
  }), KgTable_Info = "";
11051
11070
  function _isSlot$6(e) {
@@ -11132,8 +11151,8 @@ const getProps$k = () => ({
11132
11151
  }) => {
11133
11152
  const u = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
11134
11153
  return s = watch(l, (c) => {
11135
- var g, m, b, _, v, p, C, y, T, E, I;
11136
- 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 = (m = u == null ? void 0 : u.aut_load_flg) != null ? m : 0, c.mult_flg = (b = u == null ? void 0 : u.mult_flg) != null ? b : 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 = (p = u == null ? void 0 : u.show_bottom_right_flg) != null ? p : 1, c.convert_sort_field_to_under_score_flg = (C = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? C : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (T = u == null ? void 0 : u.pg_size_opt) != null ? T : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (I = u == null ? void 0 : u.button_display_type) != null ? I : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
11154
+ var g, m, b, _, v, p, T, C, E, y, I;
11155
+ 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 = (m = u == null ? void 0 : u.aut_load_flg) != null ? m : 0, c.mult_flg = (b = u == null ? void 0 : u.mult_flg) != null ? b : 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 = (p = u == null ? void 0 : u.show_bottom_right_flg) != null ? p : 1, c.convert_sort_field_to_under_score_flg = (T = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? T : 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 = (y = u == null ? void 0 : u.cmd_prm) != null ? y : void 0, c.button_display_type = (I = u == null ? void 0 : u.button_display_type) != null ? I : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
11137
11156
  }, {
11138
11157
  immediate: !0
11139
11158
  }), !1;
@@ -11209,7 +11228,7 @@ const getProps$k = () => ({
11209
11228
  const a = useKgButton(FORM_ID__VAR_GRID_MASTER), n = useKgSubmit(FORM_ID__VAR_GRID_MASTER);
11210
11229
  return n.onOpen(async () => !1), n.onBeforeOk(async ({
11211
11230
  model: o
11212
- }) => !1), n.onOk(async () => !1), a.onBeforeUpdate(async ({
11231
+ }) => !1), n.onOk(async () => !1), a.onUpdateBeforeClick(async ({
11213
11232
  row: o
11214
11233
  }) => !1), () => createVNode(KgVar, {
11215
11234
  class: "kg-table-config-modal-var-grid-master"
@@ -11345,17 +11364,17 @@ const KgTableSetting = defineComponent({
11345
11364
  } = _useServices(), i = ref(""), l = ref([]), u = computed(() => l.value.includes("1")), c = reactive({
11346
11365
  visible: !1
11347
11366
  }), g = computed(() => !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value), m = ref(!1);
11348
- _useObserveMenuItemColumns(u), watch(u, (T) => {
11349
- T || (i.value = "");
11367
+ _useObserveMenuItemColumns(u), watch(u, (E) => {
11368
+ E || (i.value = "");
11350
11369
  }, {
11351
11370
  immediate: !0
11352
11371
  });
11353
- function b(T) {
11354
- n.store.setVarGridDetailVisible(n.formID, T.var_nam, T.vis_flg === 1 ? 0 : 1);
11372
+ function b(E) {
11373
+ n.store.setVarGridDetailVisible(n.formID, E.var_nam, E.vis_flg === 1 ? 0 : 1);
11355
11374
  }
11356
11375
  async function _() {
11357
- var T;
11358
- if (((T = n.currentVarGridMaster.value) == null ? void 0 : T.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
11376
+ var E;
11377
+ if (((E = n.currentVarGridMaster.value) == null ? void 0 : E.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
11359
11378
  KgUtil.confirm({
11360
11379
  content: a.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
11361
11380
  okButtonProps: {
@@ -11383,29 +11402,29 @@ const KgTableSetting = defineComponent({
11383
11402
  popupClassName: "kg-table-setting-submenu-popup-columns"
11384
11403
  }, {
11385
11404
  default: () => {
11386
- var T;
11405
+ var E;
11387
11406
  return createVNode("div", {
11388
11407
  class: "columns"
11389
11408
  }, [createVNode(Input, {
11390
11409
  value: i.value,
11391
- "onUpdate:value": (E) => i.value = E,
11410
+ "onUpdate:value": (y) => i.value = y,
11392
11411
  allowClear: !0
11393
11412
  }, null), createVNode("ul", {
11394
11413
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
11395
- }, [(T = n.currentVarGridDetails.value) == null ? void 0 : T.map((E) => createVNode("li", {
11414
+ }, [(E = n.currentVarGridDetails.value) == null ? void 0 : E.map((y) => createVNode("li", {
11396
11415
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
11397
11416
  onClick: (I) => {
11398
- I.preventDefault(), I.stopPropagation(), b(E);
11417
+ I.preventDefault(), I.stopPropagation(), b(y);
11399
11418
  },
11400
11419
  style: {
11401
- display: s(E, i.value) ? "flex" : "none"
11420
+ display: s(y, i.value) ? "flex" : "none"
11402
11421
  },
11403
- "kg-var-nam": E.var_nam
11422
+ "kg-var-nam": y.var_nam
11404
11423
  }, [createVNode(Checkbox, {
11405
- checked: E.vis_flg === 1,
11424
+ checked: y.vis_flg === 1,
11406
11425
  disabled: !0
11407
11426
  }, {
11408
- default: () => [createVNode("pre", null, [n.t(E.var_nam).value])]
11427
+ default: () => [createVNode("pre", null, [n.t(y.var_nam).value])]
11409
11428
  }), createVNode(HolderOutlined$1, {
11410
11429
  onClick: (I) => {
11411
11430
  I.preventDefault(), I.stopPropagation();
@@ -11415,7 +11434,7 @@ const KgTableSetting = defineComponent({
11415
11434
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
11416
11435
  });
11417
11436
  }
11418
- function C() {
11437
+ function T() {
11419
11438
  return createVNode(Menu.SubMenu, {
11420
11439
  key: "2",
11421
11440
  title: a.t("kg.KgTable.varGridMasters"),
@@ -11423,12 +11442,12 @@ const KgTableSetting = defineComponent({
11423
11442
  }, {
11424
11443
  default: () => {
11425
11444
  var I;
11426
- let T, E;
11445
+ let E, y;
11427
11446
  return createVNode(Fragment, null, [(I = n.varGridMasters.value) == null ? void 0 : I.map((k) => {
11428
- var R;
11447
+ var w;
11429
11448
  return createVNode(Menu.Item, {
11430
11449
  key: k.id,
11431
- class: k.id === ((R = n.currentVarGridMaster.value) == null ? void 0 : R.id) ? "selected" : "",
11450
+ class: k.id === ((w = n.currentVarGridMaster.value) == null ? void 0 : w.id) ? "selected" : "",
11432
11451
  "kg-var-nam": k.grd_var_nam,
11433
11452
  onClick: () => n.store.setCurrentVarGridMasterID(n.formID, k.id)
11434
11453
  }, {
@@ -11437,27 +11456,27 @@ const KgTableSetting = defineComponent({
11437
11456
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
11438
11457
  key: "save-grid-view",
11439
11458
  onClick: _
11440
- }, _isSlot$5(T = a.t("kg.KgTable.saveVarGridMaster")) ? T : {
11441
- default: () => [T]
11459
+ }, _isSlot$5(E = a.t("kg.KgTable.saveVarGridMaster")) ? E : {
11460
+ default: () => [E]
11442
11461
  }), createVNode(Menu.Item, {
11443
11462
  key: "save-grid-view-as",
11444
11463
  onClick: v
11445
- }, _isSlot$5(E = a.t("kg.KgTable.saveVarGridMasterAs")) ? E : {
11446
- default: () => [E]
11464
+ }, _isSlot$5(y = a.t("kg.KgTable.saveVarGridMasterAs")) ? y : {
11465
+ default: () => [y]
11447
11466
  })]);
11448
11467
  },
11449
11468
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
11450
11469
  });
11451
11470
  }
11452
- function y() {
11453
- let T;
11471
+ function C() {
11472
+ let E;
11454
11473
  return createVNode(Menu.Item, {
11455
11474
  key: "config-var-grid-master",
11456
11475
  onClick: () => {
11457
11476
  c.visible = !0;
11458
11477
  }
11459
- }, _isSlot$5(T = a.t("kg.KgTable.config")) ? T : {
11460
- default: () => [T]
11478
+ }, _isSlot$5(E = a.t("kg.KgTable.config")) ? E : {
11479
+ default: () => [E]
11461
11480
  });
11462
11481
  }
11463
11482
  return () => createVNode(Fragment, null, [createVNode(Dropdown, {
@@ -11470,89 +11489,95 @@ const KgTableSetting = defineComponent({
11470
11489
  overlay: () => createVNode(Menu, {
11471
11490
  triggerSubMenuAction: "click",
11472
11491
  openKeys: l.value,
11473
- "onUpdate:openKeys": (T) => l.value = T,
11492
+ "onUpdate:openKeys": (E) => l.value = E,
11474
11493
  selectable: !1
11475
11494
  }, {
11476
- default: () => [p(), C(), y()]
11495
+ default: () => [p(), T(), C()]
11477
11496
  })
11478
11497
  }), c.visible && createVNode(KgTableSettingConfigModal, {
11479
11498
  visible: c.visible,
11480
- "onUpdate:visible": (T) => c.visible = T,
11499
+ "onUpdate:visible": (E) => c.visible = E,
11481
11500
  hostFormID: n.formID
11482
11501
  }, null), m.value && createVNode(KgTableSettingVarGridMasterSaveAs, null, null)]);
11483
11502
  }
11484
- }), KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_MAX_WIDTH = 1920, KG_TABLE_TD_CHECK_WIDTH = 32, KG_TABLE_TD_INDEX_WIDTH = 40, ID_CREATE = "_ID_CREATE";
11503
+ });
11485
11504
  function _useColumns() {
11486
- const e = useKgVar(), t = useKgTable(), r = computed(() => {
11487
- var o;
11488
- return ((o = e.store.getVarGridConfig(e.formID)) == null ? void 0 : o.show_check_column_flg) === 1;
11489
- }), a = computed(() => {
11490
- var u, c, g;
11491
- const o = (u = t.store.getTableWidth(e.formID)) != null ? u : 0, s = (c = e.store.getCurrentVisibleVarGridDetailsTotalWidth(e.formID)) != null ? c : 0, i = e.store.getCurrentVisibleVarGridDetails(e.formID), l = [{
11505
+ const e = useKgVar(), t = useKgSubmit(), r = useKgTable(), a = computed(() => {
11506
+ var s;
11507
+ return ((s = e.store.getVarGridConfig(e.formID)) == null ? void 0 : s.show_check_column_flg) === 1;
11508
+ }), n = computed(() => {
11509
+ var c, g, m;
11510
+ const s = (c = r.store.getTableWidth(e.formID)) != null ? c : 0, i = (g = e.store.getCurrentVisibleVarGridDetailsTotalWidth(e.formID)) != null ? g : 0, l = e.store.getCurrentVisibleVarGridDetails(e.formID), u = [{
11492
11511
  dataIndex: "index",
11493
11512
  width: KG_TABLE_TD_INDEX_WIDTH,
11494
11513
  fixed: "left",
11495
11514
  align: "center",
11496
11515
  className: "kg-table-td-index",
11497
11516
  customRender: ({
11498
- index: m
11499
- }) => m + 1
11500
- }, ...(g = i == null ? void 0 : i.map((m) => {
11501
- function b() {
11502
- return m.width === "auto" ? "auto" : Number(m.width) || KG_TABLE_TD_DEFAULT_WIDTH;
11503
- }
11504
- function _() {
11505
- return e.t(m.var_nam).value;
11506
- }
11517
+ index: b
11518
+ }) => b + 1
11519
+ }, ...(m = l == null ? void 0 : l.map((b) => {
11520
+ const _ = b.var_nam;
11507
11521
  function v() {
11508
- return m.ord === -1 ? null : m.ord === 0 ? "ascend" : m.ord === 1 ? "descend" : null;
11522
+ return b.width === "auto" ? "auto" : Number(b.width) || KG_TABLE_TD_DEFAULT_WIDTH;
11509
11523
  }
11510
11524
  function p() {
11511
- if (m.fix_left_flg === 1)
11525
+ return e.t(_).value;
11526
+ }
11527
+ function T() {
11528
+ return b.ord === -1 ? null : b.ord === 0 ? "ascend" : b.ord === 1 ? "descend" : null;
11529
+ }
11530
+ function C() {
11531
+ if (b.fix_left_flg === 1)
11512
11532
  return "left";
11513
- if (m.fix_right_flg === 1)
11533
+ if (b.fix_right_flg === 1)
11514
11534
  return "right";
11515
11535
  }
11516
- function C() {
11517
- return m.ord_flg === 1 && !(e.isCreating.value || e.isUpdating.value || e.isCopying.value || e.isDeleting.value);
11536
+ function E() {
11537
+ return b.ord_flg === 1 && !(e.isCreating.value || e.isUpdating.value || e.isCopying.value || e.isDeleting.value);
11518
11538
  }
11519
11539
  function y() {
11520
- return ["left", "center", "right"].includes(m.align || "") ? m.align : "left";
11540
+ return ["left", "center", "right"].includes(b.align || "") ? b.align : "left";
11521
11541
  }
11522
- const T = b();
11542
+ const I = v();
11523
11543
  return {
11524
- dataIndex: m.var_nam,
11525
- title: _(),
11526
- width: T,
11527
- resizable: typeof T == "number",
11544
+ dataIndex: _,
11545
+ title: p(),
11546
+ width: I,
11547
+ resizable: typeof I == "number",
11528
11548
  minWidth: KG_TABLE_TD_MIN_WIDTH,
11529
11549
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
11530
- fixed: p(),
11531
- sorter: C(),
11550
+ fixed: C(),
11551
+ sorter: E(),
11532
11552
  align: y(),
11533
- defaultSortOrder: v(),
11553
+ defaultSortOrder: T(),
11534
11554
  customHeaderCell: () => ({
11535
- "kg-frm-id": m.frm_id,
11536
- "kg-var-nam": m.var_nam
11555
+ "kg-frm-id": e.formID,
11556
+ "kg-var-nam": _
11537
11557
  }),
11538
- customCell: () => ({
11539
- "kg-frm-id": m.frm_id,
11540
- "kg-var-nam": m.var_nam
11541
- })
11558
+ customCell: (k) => {
11559
+ var M;
11560
+ const w = e.store.getVarSubmitField(e.formID, _);
11561
+ return {
11562
+ "kg-frm-id": e.formID,
11563
+ "kg-var-nam": _,
11564
+ class: t.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && k[r.id.value] === ((M = r.selectedRow.value) == null ? void 0 : M[r.id.value]) && (!!e.isCreating.value && (w == null ? void 0 : w.crt_flg) === 1 || !!e.isUpdating.value && (w == null ? void 0 : w.upt_flg) === 1 || !!e.isCopying.value && (w == null ? void 0 : w.cpy_flg) === 1 || !!e.isDeleting.value && (w == null ? void 0 : w.del_flg) === 1) ? "submitting" : ""
11565
+ };
11566
+ }
11542
11567
  };
11543
- })) != null ? g : []];
11544
- return (s === 0 || o > s && !(i != null && i.find((m) => m.width === "auto"))) && l.push({
11568
+ })) != null ? m : []];
11569
+ return (i === 0 || s > i && !(l != null && l.find((b) => b.width === "auto"))) && u.push({
11545
11570
  width: "auto",
11546
11571
  customRender: () => null
11547
- }), l;
11548
- }), n = computed(() => {
11549
- var s;
11550
- let o = 0;
11551
- return r.value && (o += KG_TABLE_TD_CHECK_WIDTH), o += KG_TABLE_TD_INDEX_WIDTH, o += (s = e.store.getCurrentVisibleVarGridDetailsTotalWidth(e.formID)) != null ? s : 0, `${o}px`;
11572
+ }), u;
11573
+ }), o = computed(() => {
11574
+ var i;
11575
+ let s = 0;
11576
+ return a.value && (s += KG_TABLE_TD_CHECK_WIDTH), s += KG_TABLE_TD_INDEX_WIDTH, s += (i = e.store.getCurrentVisibleVarGridDetailsTotalWidth(e.formID)) != null ? i : 0, `${s}px`;
11552
11577
  });
11553
11578
  return {
11554
- columns: a,
11555
- scrollX: n
11579
+ columns: n,
11580
+ scrollX: o
11556
11581
  };
11557
11582
  }
11558
11583
  function _useLoading() {
@@ -11584,22 +11609,22 @@ const KgTable$1 = "", KgTable = defineComponent({
11584
11609
  }) {
11585
11610
  const a = inject("$dayjs", dayjs), n = inject(DI_KG_SLOTS, null), o = useKg(), s = useKgVar(), i = useKgSearch(), l = useKgButton(), u = useKgTable(), c = useKgSubmit();
11586
11611
  i.onSearch((F) => {
11587
- D(F);
11612
+ R(F);
11588
11613
  }), i.onReset(() => {
11589
- D(!0);
11614
+ R(!0);
11590
11615
  }), u.store.$onAction(async ({
11591
11616
  name: F,
11592
- args: K
11617
+ args: B
11593
11618
  }) => {
11594
11619
  switch (F) {
11595
11620
  case "setSelecte":
11596
- if (K[0] === s.formID) {
11597
- const U = K[1], W = K[2];
11621
+ if (B[0] === s.formID) {
11622
+ const U = B[1], z = B[2];
11598
11623
  switch (!0) {
11599
- case (W && !A.value.includes(U[u.id.value])):
11624
+ case (z && !A.value.includes(U[u.id.value])):
11600
11625
  L([...A.value, U[u.id.value]]);
11601
11626
  break;
11602
- case (!W && A.value.includes(U[u.id.value])):
11627
+ case (!z && A.value.includes(U[u.id.value])):
11603
11628
  L(without$1(A.value, U[u.id.value]));
11604
11629
  break;
11605
11630
  }
@@ -11614,25 +11639,25 @@ const KgTable$1 = "", KgTable = defineComponent({
11614
11639
  isLoading: v
11615
11640
  } = _useLoading(), p = ref(null);
11616
11641
  _useResizeObserver(p);
11617
- const C = computed(() => {
11618
- var F, K;
11619
- return (K = (F = s.varButtonSearch.value) == null ? void 0 : F.cmd) != null ? K : null;
11620
- }), y = computed(() => {
11621
- var K, U, W, Z, X, ge, pe;
11642
+ const T = computed(() => {
11643
+ var F, B;
11644
+ return (B = (F = s.varButtonSearch.value) == null ? void 0 : F.cmd) != null ? B : null;
11645
+ }), C = computed(() => {
11646
+ var B, U, z, Z, X, de, pe;
11622
11647
  let F = {
11623
11648
  pageNo: O.pageIndex,
11624
11649
  pageSize: O.pageSize,
11625
- ...B,
11626
- ...(U = (K = i.model) == null ? void 0 : K.value) != null ? U : {}
11650
+ ...K,
11651
+ ...(U = (B = i.model) == null ? void 0 : B.value) != null ? U : {}
11627
11652
  };
11628
11653
  return s.varButtonSearch.value && (F = {
11629
11654
  ...F,
11630
- ...KgVarUtil.parseCommandParameter((Z = (W = s.varButtonSearch.value) == null ? void 0 : W.cmd_prm) != null ? Z : "")
11655
+ ...KgVarUtil.parseCommandParameter((Z = (z = s.varButtonSearch.value) == null ? void 0 : z.cmd_prm) != null ? Z : "")
11631
11656
  }), (X = s.varGridConfig.value) != null && X.cmd_prm && (F = {
11632
11657
  ...F,
11633
- ...KgVarUtil.parseCommandParameter((ge = s.varGridConfig.value.cmd_prm) != null ? ge : "")
11658
+ ...KgVarUtil.parseCommandParameter((de = s.varGridConfig.value.cmd_prm) != null ? de : "")
11634
11659
  }), ((pe = s.varGridConfig.value) == null ? void 0 : pe.convert_sort_field_to_under_score_flg) === 1 && F.column && (F.column = snakeCase$1(F.column)), F;
11635
- }), T = computed(() => v.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || O.total === 0), E = computed(() => v.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), I = computed(() => {
11660
+ }), E = computed(() => v.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || O.total === 0), y = computed(() => v.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), I = computed(() => {
11636
11661
  var F;
11637
11662
  if (((F = s.varGridConfig.value) == null ? void 0 : F.show_check_column_flg) === 1)
11638
11663
  return {
@@ -11641,38 +11666,38 @@ const KgTable$1 = "", KgTable = defineComponent({
11641
11666
  hideSelectAll: !u.isMultiSelect.value,
11642
11667
  selectedRowKeys: A,
11643
11668
  preserveSelectedRowKeys: !1,
11644
- getCheckboxProps: (K) => ({
11669
+ getCheckboxProps: (B) => ({
11645
11670
  disabled: !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value
11646
11671
  }),
11647
- onSelect: (K) => H(K),
11648
- onChange: (K) => u.isMultiSelect.value && L(K)
11672
+ onSelect: (B) => H(B),
11673
+ onChange: (B) => u.isMultiSelect.value && L(B)
11649
11674
  };
11650
11675
  }), k = computed(() => {
11651
- var K;
11676
+ var B;
11652
11677
  let F = "kg-table";
11653
- return ((K = s.varGridConfig.value) == null ? void 0 : K.show_bottom_border_flg) === 1 && (F += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (F += " kg-table--no-bottom"), c.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (F += " kg-table--submitting"), F;
11654
- }), R = computed(() => {
11655
- var K;
11678
+ return ((B = s.varGridConfig.value) == null ? void 0 : B.show_bottom_border_flg) === 1 && (F += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (F += " kg-table--no-bottom"), c.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (F += " kg-table--submitting"), F;
11679
+ }), w = computed(() => {
11680
+ var B;
11656
11681
  let F = "kg-table-bottom";
11657
- return ((K = s.varGridConfig.value) == null ? void 0 : K.show_bottom_border_flg) === 1 && (F += " kg-table-bottom--border"), F;
11682
+ return ((B = s.varGridConfig.value) == null ? void 0 : B.show_bottom_border_flg) === 1 && (F += " kg-table-bottom--border"), F;
11658
11683
  }), M = ref([]), A = ref([]), O = reactive({
11659
11684
  pageIndex: 1,
11660
11685
  pageSize: 10,
11661
11686
  total: 0
11662
- }), B = reactive({
11687
+ }), K = reactive({
11663
11688
  column: void 0,
11664
11689
  order: void 0
11665
- }), N = watch(u.pageSizeOption, (F) => {
11666
- F && (setTimeout(() => N()), O.pageSize = F), g.value = !0;
11690
+ }), $ = watch(u.pageSizeOption, (F) => {
11691
+ F && (setTimeout(() => $()), O.pageSize = F), g.value = !0;
11667
11692
  });
11668
11693
  watch(u.pageSizeOptions, (F) => {
11669
11694
  F.length > 0 && !F.includes(O.pageSize) && (O.pageSize = u.pageSizeOption.value);
11670
- }), watch([C, u.isReadAutomatically, i.isReady], ([F, K, U]) => {
11671
- F && K && U && !u.store.getIsRetrieved(s.formID) && D(!0);
11695
+ }), watch([T, u.isReadAutomatically, i.isReady], ([F, B, U]) => {
11696
+ F && B && U && !u.store.getIsRetrieved(s.formID) && R(!0);
11672
11697
  }, {
11673
11698
  immediate: !0
11674
- }), watch(s.isCreating, (F, K) => {
11675
- F === !0 ? P() : F === !1 && K === !0 && V();
11699
+ }), watch(s.isCreating, (F, B) => {
11700
+ F === !0 ? P() : F === !1 && B === !0 && D();
11676
11701
  }), onUnmounted(() => {
11677
11702
  u.store.dispose(s.formID);
11678
11703
  });
@@ -11684,38 +11709,38 @@ const KgTable$1 = "", KgTable = defineComponent({
11684
11709
  M.value = [F, ...M.value], A.value = [ID_CREATE], u.store.setSelectedRows(s.formID, [F]);
11685
11710
  }
11686
11711
  }
11687
- function V() {
11688
- const F = M.value.find((K) => K[u.id.value] === ID_CREATE);
11712
+ function D() {
11713
+ const F = M.value.find((B) => B[u.id.value] === ID_CREATE);
11689
11714
  F && (M.value = without$1(M.value, F), A.value = [], u.store.setSelectedRows(s.formID, []));
11690
11715
  }
11691
- function w(F, K) {
11716
+ function V(F, B) {
11692
11717
  if (!(!!s.isCreating.value || !!s.isCreating.value || !!s.isCreating.value || !!s.isCreating.value) && !!I.value) {
11693
- if (!K) {
11718
+ if (!B) {
11694
11719
  A.value = [], u.store.setSelectedRows(s.formID, []);
11695
11720
  return;
11696
11721
  }
11697
11722
  switch (F == null ? void 0 : F.detail) {
11698
11723
  case 1:
11699
- A.value = [K[u.id.value]], u.store.setSelectedRows(s.formID, A.value.map((U) => {
11700
- var W;
11701
- return (W = M.value) == null ? void 0 : W.find((Z) => Z[u.id.value] === U);
11724
+ A.value = [B[u.id.value]], u.store.setSelectedRows(s.formID, A.value.map((U) => {
11725
+ var z;
11726
+ return (z = M.value) == null ? void 0 : z.find((Z) => Z[u.id.value] === U);
11702
11727
  }).filter((U) => !!U));
11703
11728
  break;
11704
11729
  case 2:
11705
- u.store.emit(s.formID, "rowDoubleClick", K);
11730
+ u.store.emit(s.formID, "rowDoubleClick", B);
11706
11731
  break;
11707
11732
  }
11708
11733
  }
11709
11734
  }
11710
- function D(F = !1) {
11711
- const K = watch(g, (W) => {
11712
- W && (setTimeout(() => K()), U());
11735
+ function R(F = !1) {
11736
+ const B = watch(g, (z) => {
11737
+ z && (setTimeout(() => B()), U());
11713
11738
  }, {
11714
11739
  immediate: !0
11715
11740
  });
11716
11741
  async function U() {
11717
- var W, Z;
11718
- if (!C.value) {
11742
+ var z, Z;
11743
+ if (!T.value) {
11719
11744
  Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
11720
11745
  VarButton: s.varButtonSearch.value
11721
11746
  });
@@ -11725,8 +11750,8 @@ const KgTable$1 = "", KgTable = defineComponent({
11725
11750
  try {
11726
11751
  const X = await httpClient().request({
11727
11752
  method: "GET",
11728
- url: C.value,
11729
- params: KgUtil.parseParams(y.value, u.profileFormID.value, a)
11753
+ url: T.value,
11754
+ params: KgUtil.parseParams(C.value, u.profileFormID.value, a)
11730
11755
  }, {
11731
11756
  successMessageMode: "none"
11732
11757
  });
@@ -11738,13 +11763,13 @@ const KgTable$1 = "", KgTable = defineComponent({
11738
11763
  M.value = X, O.total = X.length;
11739
11764
  break;
11740
11765
  case ("total" in X && "records" in X):
11741
- M.value = (W = X.records) != null ? W : [], O.total = (Z = X.total) != null ? Z : 0;
11766
+ M.value = (z = X.records) != null ? z : [], O.total = (Z = X.total) != null ? Z : 0;
11742
11767
  break;
11743
11768
  }
11744
11769
  u.store.emit(s.formID, "retrieve", {
11745
11770
  page: X,
11746
11771
  datas: M
11747
- }), w(), m.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
11772
+ }), V(), m.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
11748
11773
  } catch (X) {
11749
11774
  throw X;
11750
11775
  } finally {
@@ -11753,51 +11778,51 @@ const KgTable$1 = "", KgTable = defineComponent({
11753
11778
  }
11754
11779
  }
11755
11780
  function L(F) {
11756
- A.value = F, u.store.setSelectedRows(s.formID, A.value.map((K) => {
11781
+ A.value = F, u.store.setSelectedRows(s.formID, A.value.map((B) => {
11757
11782
  var U;
11758
- return (U = M.value) == null ? void 0 : U.find((W) => W[u.id.value] === K);
11759
- }).filter((K) => !!K));
11783
+ return (U = M.value) == null ? void 0 : U.find((z) => z[u.id.value] === B);
11784
+ }).filter((B) => !!B));
11760
11785
  }
11761
11786
  function H(F) {
11762
- var K, U;
11787
+ var B, U;
11763
11788
  switch (u.isMultiSelect.value) {
11764
11789
  case !0:
11765
11790
  {
11766
- const W = F[u.id.value];
11767
- A.value.includes(W) ? A.value = without$1(A.value, W) : A.value = [...(K = A.value) != null ? K : [], W];
11791
+ const z = F[u.id.value];
11792
+ A.value.includes(z) ? A.value = without$1(A.value, z) : A.value = [...(B = A.value) != null ? B : [], z];
11768
11793
  }
11769
11794
  break;
11770
11795
  case !1:
11771
11796
  {
11772
- const W = F[u.id.value];
11773
- (U = A.value) != null && U.includes(W) ? A.value = [] : A.value = [W];
11797
+ const z = F[u.id.value];
11798
+ (U = A.value) != null && U.includes(z) ? A.value = [] : A.value = [z];
11774
11799
  }
11775
11800
  break;
11776
11801
  }
11777
- u.store.setSelectedRows(s.formID, A.value.map((W) => {
11802
+ u.store.setSelectedRows(s.formID, A.value.map((z) => {
11778
11803
  var Z;
11779
- return (Z = M.value) == null ? void 0 : Z.find((X) => X[u.id.value] === W);
11780
- }).filter((W) => !!W));
11804
+ return (Z = M.value) == null ? void 0 : Z.find((X) => X[u.id.value] === z);
11805
+ }).filter((z) => !!z));
11781
11806
  }
11782
- function $(F, K) {
11783
- K.width = F, s.store.setVarGridDetailWidth(s.formID, K.dataIndex, F);
11807
+ function N(F, B) {
11808
+ B.width = F, s.store.setVarGridDetailWidth(s.formID, B.dataIndex, F);
11784
11809
  }
11785
- async function G(F, K, U, W) {
11810
+ async function x(F, B, U, z) {
11786
11811
  var Z;
11787
- switch (W.action) {
11812
+ switch (z.action) {
11788
11813
  case "sort":
11789
11814
  {
11790
11815
  await nextTick();
11791
11816
  let X = U;
11792
- X.order ? (B.column = (Z = X.field) != null ? Z : void 0, B.order = X.order === "ascend" ? "asc" : X.order === "descend" ? "desc" : void 0) : (B.column = void 0, B.order = void 0), D(!0);
11817
+ X.order ? (K.column = (Z = X.field) != null ? Z : void 0, K.order = X.order === "ascend" ? "asc" : X.order === "descend" ? "desc" : void 0) : (K.column = void 0, K.order = void 0), R(!0);
11793
11818
  }
11794
11819
  break;
11795
11820
  }
11796
11821
  }
11797
- function q(F, K) {
11798
- var W;
11799
- const U = K[u.id.value];
11800
- switch ((W = s.varGridConfig.value) == null ? void 0 : W.expand_accordion_flg) {
11822
+ function q(F, B) {
11823
+ var z;
11824
+ const U = B[u.id.value];
11825
+ switch ((z = s.varGridConfig.value) == null ? void 0 : z.expand_accordion_flg) {
11801
11826
  case 0:
11802
11827
  F ? m.value = uniq([...m.value, U]) : m.value = without$1(m.value, U);
11803
11828
  break;
@@ -11806,57 +11831,57 @@ const KgTable$1 = "", KgTable = defineComponent({
11806
11831
  break;
11807
11832
  }
11808
11833
  }
11809
- function Y(F, K) {
11810
- K !== O.pageSize ? (O.pageIndex = 1, O.pageSize = K) : O.pageIndex = F, D();
11834
+ function Y(F, B) {
11835
+ B !== O.pageSize ? (O.pageIndex = 1, O.pageSize = B) : O.pageIndex = F, R();
11811
11836
  }
11812
- function J(F) {
11813
- A.value = [F[u.id.value]], u.store.setSelectedRows(s.formID, A.value.map((K) => {
11837
+ function Q(F) {
11838
+ A.value = [F[u.id.value]], u.store.setSelectedRows(s.formID, A.value.map((B) => {
11814
11839
  var U;
11815
- return (U = M.value) == null ? void 0 : U.find((W) => W[u.id.value] === K);
11816
- }).filter((K) => !!K)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
11840
+ return (U = M.value) == null ? void 0 : U.find((z) => z[u.id.value] === B);
11841
+ }).filter((B) => !!B)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
11817
11842
  }
11818
- function ne({
11843
+ function ae({
11819
11844
  title: F,
11820
- column: K
11845
+ column: B
11821
11846
  }) {
11822
- switch (K.dataIndex) {
11847
+ switch (B.dataIndex) {
11823
11848
  case "index":
11824
11849
  return createVNode(KgTableSetting, null, null);
11825
11850
  default:
11826
11851
  return createVNode("pre", null, [F]);
11827
11852
  }
11828
11853
  }
11829
- function re({
11854
+ function ee({
11830
11855
  column: F,
11831
- index: K,
11856
+ index: B,
11832
11857
  record: U,
11833
- value: W,
11858
+ value: z,
11834
11859
  text: Z
11835
11860
  }) {
11836
11861
  let X = "";
11837
11862
  F.customRender ? X = F.customRender({
11838
- index: K,
11863
+ index: B,
11839
11864
  record: U,
11840
11865
  column: F,
11841
11866
  text: Z,
11842
- value: W,
11843
- renderIndex: K
11844
- }) : X = W;
11845
- const ge = createVNode(KgTableCell, {
11867
+ value: z,
11868
+ renderIndex: B
11869
+ }) : X = z;
11870
+ const de = createVNode(KgTableCell, {
11846
11871
  kgRow: U,
11847
11872
  kgValue: X,
11848
11873
  kgVarName: F.dataIndex,
11849
- onKgUpdateLinkClick: () => J(U)
11874
+ onKgUpdateLinkClick: () => Q(U)
11850
11875
  }, null);
11851
11876
  return t.bodyCell ? t.bodyCell({
11852
- value: W,
11877
+ value: z,
11853
11878
  record: U,
11854
- index: K,
11879
+ index: B,
11855
11880
  column: F,
11856
- defaultRender: ge
11857
- }) : ge;
11881
+ defaultRender: de
11882
+ }) : de;
11858
11883
  }
11859
- function de() {
11884
+ function ce() {
11860
11885
  return !u.isReadAutomatically.value && !u.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
11861
11886
  }
11862
11887
  return () => {
@@ -11881,19 +11906,19 @@ const KgTable$1 = "", KgTable = defineComponent({
11881
11906
  rowSelection: I.value,
11882
11907
  expandColumnWidth: 28,
11883
11908
  expandedRowKeys: m.value,
11884
- customRow: (K) => ({
11885
- onClick: (U) => w(U, K)
11909
+ customRow: (B) => ({
11910
+ onClick: (U) => V(U, B)
11886
11911
  }),
11887
- onResizeColumn: $,
11888
- onChange: G,
11912
+ onResizeColumn: N,
11913
+ onChange: x,
11889
11914
  onExpand: q
11890
11915
  }, {
11891
- headerCell: ne,
11892
- bodyCell: re,
11893
- emptyText: de,
11916
+ headerCell: ae,
11917
+ bodyCell: ee,
11918
+ emptyText: ce,
11894
11919
  expandedRowRender: (F = n == null ? void 0 : n.KgTable) == null ? void 0 : F.expandedRowRender
11895
11920
  }), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
11896
- class: R.value
11921
+ class: w.value
11897
11922
  }, [createVNode("div", {
11898
11923
  class: "left"
11899
11924
  }, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
@@ -11901,28 +11926,28 @@ const KgTable$1 = "", KgTable = defineComponent({
11901
11926
  kgShowClearTable: O.total > 0,
11902
11927
  kgShowLocate: A.value.length === 1,
11903
11928
  kgTotal: A.value.length,
11904
- kgDisabled: E.value
11929
+ kgDisabled: y.value
11905
11930
  }, null)]), createVNode("div", {
11906
11931
  class: "right"
11907
11932
  }, [u.isShowBottomRight.value && createVNode(Pagination, {
11908
11933
  size: "default",
11909
11934
  current: O.pageIndex,
11910
11935
  pageSize: O.pageSize,
11911
- pageSizeOptions: u.pageSizeOptions.value.map((K) => String(K)),
11936
+ pageSizeOptions: u.pageSizeOptions.value.map((B) => String(B)),
11912
11937
  total: O.total,
11913
11938
  showSizeChanger: !0,
11914
11939
  showQuickJumper: !1,
11915
11940
  hideOnSinglePage: !1,
11916
- disabled: T.value,
11941
+ disabled: E.value,
11917
11942
  locale: {
11918
11943
  page: ""
11919
11944
  },
11920
- showTotal: (K, U) => o.t("kg.KgTable.totalText", {
11945
+ showTotal: (B, U) => o.t("kg.KgTable.totalText", {
11921
11946
  from: U[0],
11922
11947
  to: U[1],
11923
- total: K
11948
+ total: B
11924
11949
  }),
11925
- onChange: (K, U) => Y(K, U)
11950
+ onChange: (B, U) => Y(B, U)
11926
11951
  }, null)])])]);
11927
11952
  };
11928
11953
  }
@@ -11970,56 +11995,218 @@ const KgTable$1 = "", KgTable = defineComponent({
11970
11995
  default: () => [i(), l()]
11971
11996
  });
11972
11997
  }
11973
- }), KgButtonCreate = defineComponent({
11998
+ });
11999
+ let store$3 = null;
12000
+ const useKgButtonStore = () => (store$3 || (store$3 = defineStore("KgButton", {
12001
+ state: () => ({
12002
+ clickListenersMap: /* @__PURE__ */ new Map(),
12003
+ updateBeforeClickListenersMap: /* @__PURE__ */ new Map(),
12004
+ deleteOkListenersMap: /* @__PURE__ */ new Map(),
12005
+ submitSaveListenersMap: /* @__PURE__ */ new Map(),
12006
+ submitCancelListenersMap: /* @__PURE__ */ new Map()
12007
+ }),
12008
+ getters: {
12009
+ getClickListeners(e) {
12010
+ return (t) => {
12011
+ var r;
12012
+ return t ? (r = e.clickListenersMap.get(t)) != null ? r : null : (Logger.error("formID \u4E3A\u7A7A."), null);
12013
+ };
12014
+ }
12015
+ },
12016
+ actions: {
12017
+ addEventListener(e, t, r) {
12018
+ switch (t) {
12019
+ case "click":
12020
+ {
12021
+ const a = this.clickListenersMap.get(e);
12022
+ this.clickListenersMap.set(e, [...a != null ? a : [], r]);
12023
+ }
12024
+ break;
12025
+ case "updateBeforeClick":
12026
+ {
12027
+ const a = this.updateBeforeClickListenersMap.get(e);
12028
+ this.updateBeforeClickListenersMap.set(e, [...a != null ? a : [], r]);
12029
+ }
12030
+ break;
12031
+ case "deleteOk":
12032
+ {
12033
+ const a = this.deleteOkListenersMap.get(e);
12034
+ this.deleteOkListenersMap.set(e, [...a != null ? a : [], r]);
12035
+ }
12036
+ break;
12037
+ case "submitSave":
12038
+ {
12039
+ const a = this.submitSaveListenersMap.get(e);
12040
+ this.submitSaveListenersMap.set(e, [...a != null ? a : [], r]);
12041
+ }
12042
+ break;
12043
+ case "submitCancel":
12044
+ {
12045
+ const a = this.submitCancelListenersMap.get(e);
12046
+ this.submitCancelListenersMap.set(e, [...a != null ? a : [], r]);
12047
+ }
12048
+ break;
12049
+ }
12050
+ },
12051
+ removeEventListener(e, t, r) {
12052
+ switch (t) {
12053
+ case "click":
12054
+ if (r) {
12055
+ const a = this.clickListenersMap.get(e);
12056
+ this.clickListenersMap.set(e, without$1(a, r));
12057
+ } else
12058
+ this.clickListenersMap.set(e, []);
12059
+ break;
12060
+ case "updateBeforeClick":
12061
+ if (r) {
12062
+ const a = this.updateBeforeClickListenersMap.get(e);
12063
+ this.updateBeforeClickListenersMap.set(e, without$1(a, r));
12064
+ } else
12065
+ this.updateBeforeClickListenersMap.set(e, []);
12066
+ break;
12067
+ case "deleteOk":
12068
+ if (r) {
12069
+ const a = this.deleteOkListenersMap.get(e);
12070
+ this.deleteOkListenersMap.set(e, without$1(a, r));
12071
+ } else
12072
+ this.deleteOkListenersMap.set(e, []);
12073
+ break;
12074
+ case "submitSave":
12075
+ if (r) {
12076
+ const a = this.submitSaveListenersMap.get(e);
12077
+ this.submitSaveListenersMap.set(e, without$1(a, r));
12078
+ } else
12079
+ this.submitSaveListenersMap.set(e, []);
12080
+ break;
12081
+ case "submitCancel":
12082
+ if (r) {
12083
+ const a = this.submitCancelListenersMap.get(e);
12084
+ this.submitCancelListenersMap.set(e, without$1(a, r));
12085
+ } else
12086
+ this.submitCancelListenersMap.set(e, []);
12087
+ break;
12088
+ }
12089
+ },
12090
+ emit(e, t, r) {
12091
+ let a;
12092
+ switch (t) {
12093
+ case "click":
12094
+ a = this.clickListenersMap.get(e);
12095
+ break;
12096
+ case "updateBeforeClick":
12097
+ a = this.updateBeforeClickListenersMap.get(e);
12098
+ break;
12099
+ case "deleteOk":
12100
+ a = this.deleteOkListenersMap.get(e);
12101
+ break;
12102
+ case "submitSave":
12103
+ a = this.submitSaveListenersMap.get(e);
12104
+ break;
12105
+ case "submitCancel":
12106
+ a = this.submitCancelListenersMap.get(e);
12107
+ break;
12108
+ }
12109
+ if (a) {
12110
+ let n = Promise.resolve(!1);
12111
+ for (let o = 0; o < a.length; o++)
12112
+ n = a[o](r != null ? r : null);
12113
+ return n;
12114
+ }
12115
+ return Promise.resolve(!1);
12116
+ },
12117
+ click(e, t, r, a) {
12118
+ }
12119
+ }
12120
+ }).bind(null, pinia())), store$3);
12121
+ function useKgButton(e) {
12122
+ const t = useKgVar(e), r = useKgButtonStore()();
12123
+ function a(l) {
12124
+ return isFunction$2(l) ? (r.addEventListener(t.formID, "click", l), onUnmounted(() => r.removeEventListener(t.formID, "click", l)), () => r.removeEventListener(t.formID, "click", l)) : () => {
12125
+ };
12126
+ }
12127
+ function n(l) {
12128
+ return isFunction$2(l) ? (r.addEventListener(t.formID, "updateBeforeClick", l), onUnmounted(() => r.removeEventListener(t.formID, "updateBeforeClick", l)), () => r.removeEventListener(t.formID, "updateBeforeClick", l)) : () => {
12129
+ };
12130
+ }
12131
+ function o(l) {
12132
+ return isFunction$2(l) ? (r.addEventListener(t.formID, "deleteOk", l), onUnmounted(() => r.removeEventListener(t.formID, "deleteOk", l)), () => r.removeEventListener(t.formID, "deleteOk", l)) : () => {
12133
+ };
12134
+ }
12135
+ function s(l) {
12136
+ return isFunction$2(l) ? (r.addEventListener(t.formID, "submitSave", l), onUnmounted(() => r.removeEventListener(t.formID, "submitSave", l)), () => r.removeEventListener(t.formID, "submitSave", l)) : () => {
12137
+ };
12138
+ }
12139
+ function i(l) {
12140
+ return isFunction$2(l) ? (r.addEventListener(t.formID, "submitCancel", l), onUnmounted(() => r.removeEventListener(t.formID, "submitCancel", l)), () => r.removeEventListener(t.formID, "submitCancel", l)) : () => {
12141
+ };
12142
+ }
12143
+ return {
12144
+ formID: t.formID,
12145
+ store: r,
12146
+ click: r.click,
12147
+ onClick: a,
12148
+ onUpdateBeforeClick: n,
12149
+ onDeleteOk: o,
12150
+ onSubmitSave: s,
12151
+ onSubmitCancel: i
12152
+ };
12153
+ }
12154
+ const KgButtonCreate = defineComponent({
11974
12155
  name: "KgButtonCreate",
11975
12156
  props: getProps$f(),
11976
12157
  setup(e, {
11977
12158
  slots: t,
11978
12159
  emit: r
11979
12160
  }) {
11980
- const a = useKg(), n = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = computed(() => n.store.getVarButton(n.formID, e.kgVarName)), l = computed(() => {
11981
- var v, p, C, y, T, E, I, k;
11982
- return n.isUpdating.value || n.isCopying.value || n.isDeleting.value || o.isRetrieving.value || ((v = i.value) == null ? void 0 : v.dis_no_select_flg) === 1 && ((C = (p = o.selectedRows.value) == null ? void 0 : p.length) != null ? C : 0) === 0 || ((y = i.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((E = (T = o.selectedRows.value) == null ? void 0 : T.length) != null ? E : 0) > 1 || ((I = i.value) == null ? void 0 : I.permission_type) === 2 && !a.p((k = i.value) == null ? void 0 : k.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
11983
- });
11984
- async function u() {
12161
+ const a = useKg(), n = useKgVar(), o = useKgButton(), s = useKgTable(), i = useKgSubmit(), l = computed(() => n.store.getVarButton(n.formID, e.kgVarName)), u = computed(() => {
12162
+ var C, E, y, I, k, w, M, A;
12163
+ return n.isUpdating.value || n.isCopying.value || n.isDeleting.value || s.isRetrieving.value || ((C = l.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((y = (E = s.selectedRows.value) == null ? void 0 : E.length) != null ? y : 0) === 0 || ((I = l.value) == null ? void 0 : I.dis_mult_select_flg) === 1 && ((w = (k = s.selectedRows.value) == null ? void 0 : k.length) != null ? w : 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;
12164
+ }), c = computed(() => !!n.isCreatingRequesting.value);
12165
+ async function g() {
11985
12166
  e.onKgClick && await e.onKgClick() || n.store.setIsCreating(n.formID, !0);
11986
12167
  }
11987
- function c() {
11988
- n.store.setIsCreating(n.formID, !1);
12168
+ function m() {
12169
+ o.store.emit(n.formID, "submitSave");
11989
12170
  }
11990
- function g() {
12171
+ function b() {
12172
+ o.store.emit(n.formID, "submitCancel");
12173
+ }
12174
+ function _() {
11991
12175
  return e.kgIcon ? createVNode("span", {
11992
12176
  class: "anticon"
11993
12177
  }, [createVNode(Icon, {
11994
12178
  icon: e.kgIcon
11995
12179
  }, null)]) : createVNode(PlusOutlined$1, null, null);
11996
12180
  }
11997
- function m() {
12181
+ function v() {
11998
12182
  return e.kgText ? e.kgText : a.t("kg.create");
11999
12183
  }
12000
- function b() {
12001
- return s.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && n.isCreating.value ? null : createVNode(Button, {
12184
+ function p() {
12185
+ return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && n.isCreating.value ? null : createVNode(Button, {
12002
12186
  type: "primary",
12003
- disabled: l.value,
12004
- onClick: u
12187
+ disabled: u.value,
12188
+ onClick: g
12005
12189
  }, {
12006
- default: () => [g(), m()]
12190
+ default: () => [_(), v()]
12007
12191
  });
12008
12192
  }
12009
- function _() {
12010
- return s.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !n.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
12011
- type: "primary"
12193
+ function T() {
12194
+ return i.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !n.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
12195
+ type: "primary",
12196
+ onClick: m,
12197
+ disabled: !!n.isCreatingRequesting.value
12012
12198
  }, {
12013
- default: () => [createVNode(CheckOutlined$1, null, null), a.t("kg.save")]
12199
+ default: () => [n.isCreatingRequesting.value ? createVNode(LoadingOutlined$1, null, null) : createVNode(CheckOutlined$1, null, null), a.t("kg.save")]
12014
12200
  }), createVNode(Button, {
12015
12201
  type: "primary",
12016
- ghost: !0,
12017
- onClick: c
12202
+ ghost: !c.value,
12203
+ disabled: c.value,
12204
+ onClick: b
12018
12205
  }, {
12019
12206
  default: () => [createVNode(StopOutlined$1, null, null), a.t("kg.cancel")]
12020
12207
  })]);
12021
12208
  }
12022
- return () => createVNode(Fragment, null, [b(), _()]);
12209
+ return () => createVNode(Fragment, null, [p(), T()]);
12023
12210
  }
12024
12211
  }), KgButtonDelete = defineComponent({
12025
12212
  name: "KgButtonDelete",
@@ -12063,20 +12250,20 @@ const KgTable$1 = "", KgTable = defineComponent({
12063
12250
  var _, v;
12064
12251
  return (v = (_ = o.value) == null ? void 0 : _.cmd_method) != null ? v : "GET";
12065
12252
  }), l = computed(() => {
12066
- var v, p, C, y, T, E;
12253
+ var v, p, T, C, E, y;
12067
12254
  let _ = {
12068
12255
  ...(v = a.model.value) != null ? v : {}
12069
12256
  };
12070
12257
  return o.value && (_ = {
12071
12258
  ..._,
12072
- ...KgVarUtil.parseCommandParameter((C = (p = o.value) == null ? void 0 : p.cmd_prm) != null ? C : "")
12073
- }), (y = r.varGridConfig.value) != null && y.cmd_prm && (_ = {
12259
+ ...KgVarUtil.parseCommandParameter((T = (p = o.value) == null ? void 0 : p.cmd_prm) != null ? T : "")
12260
+ }), (C = r.varGridConfig.value) != null && C.cmd_prm && (_ = {
12074
12261
  ..._,
12075
- ...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
12076
- }), ((E = r.varGridConfig.value) == null ? void 0 : E.convert_sort_field_to_under_score_flg) === 1 && _.column && (_.column = snakeCase$1(_.column)), _;
12262
+ ...KgVarUtil.parseCommandParameter((E = r.varGridConfig.value.cmd_prm) != null ? E : "")
12263
+ }), ((y = r.varGridConfig.value) == null ? void 0 : y.convert_sort_field_to_under_score_flg) === 1 && _.column && (_.column = snakeCase$1(_.column)), _;
12077
12264
  }), u = computed(() => {
12078
- var _, v, p, C, y, T, E, I;
12079
- 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 && ((p = (v = n.selectedRows.value) == null ? void 0 : v.length) != null ? p : 0) === 0 || ((C = o.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((T = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? T : 0) > 1 || ((E = o.value) == null ? void 0 : E.permission_type) === 2 && !t.p((I = o.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12265
+ var _, v, p, T, C, E, y, I;
12266
+ 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 && ((p = (v = n.selectedRows.value) == null ? void 0 : v.length) != null ? p : 0) === 0 || ((T = o.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((E = (C = n.selectedRows.value) == null ? void 0 : C.length) != null ? E : 0) > 1 || ((y = o.value) == null ? void 0 : y.permission_type) === 2 && !t.p((I = o.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12080
12267
  }), c = ref(!1);
12081
12268
  async function g() {
12082
12269
  var _, v, p;
@@ -12089,7 +12276,7 @@ const KgTable$1 = "", KgTable = defineComponent({
12089
12276
  }
12090
12277
  c.value = !0;
12091
12278
  try {
12092
- const C = await httpClient().request({
12279
+ const T = await httpClient().request({
12093
12280
  method: i.value,
12094
12281
  url: s.value,
12095
12282
  params: l.value,
@@ -12098,9 +12285,9 @@ const KgTable$1 = "", KgTable = defineComponent({
12098
12285
  joinParamsToUrl: !0,
12099
12286
  isTransformResponse: !1
12100
12287
  });
12101
- KgUtil.downloadFile(C, `${r.t((v = (_ = o.value) == null ? void 0 : _.export_excel_filename) != null ? v : "export").value}.${(p = o.value) == null ? void 0 : p.export_excel_suffix}`);
12102
- } catch (C) {
12103
- throw C;
12288
+ KgUtil.downloadFile(T, `${r.t((v = (_ = o.value) == null ? void 0 : _.export_excel_filename) != null ? v : "export").value}.${(p = o.value) == null ? void 0 : p.export_excel_suffix}`);
12289
+ } catch (T) {
12290
+ throw T;
12104
12291
  } finally {
12105
12292
  c.value = !1;
12106
12293
  }
@@ -12141,40 +12328,40 @@ const KgTable$1 = "", KgTable = defineComponent({
12141
12328
  return (p = (v = i.value) == null ? void 0 : v.cmd_method) != null ? p : "POST";
12142
12329
  });
12143
12330
  computed(() => {
12144
- var p, C, y;
12331
+ var p, T, C;
12145
12332
  let v = {
12146
12333
  ...(p = o.model.value) != null ? p : {}
12147
12334
  };
12148
12335
  return i.value && (v = {
12149
12336
  ...v,
12150
- ...KgVarUtil.parseCommandParameter((y = (C = i.value) == null ? void 0 : C.cmd_prm) != null ? y : "")
12337
+ ...KgVarUtil.parseCommandParameter((C = (T = i.value) == null ? void 0 : T.cmd_prm) != null ? C : "")
12151
12338
  }), v;
12152
12339
  });
12153
12340
  const c = computed(() => {
12154
- var v, p, C, y, T, E, I, k;
12155
- return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || s.isRetrieving.value || ((v = i.value) == null ? void 0 : v.dis_no_select_flg) === 1 && ((C = (p = s.selectedRows.value) == null ? void 0 : p.length) != null ? C : 0) === 0 || ((y = i.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((E = (T = s.selectedRows.value) == null ? void 0 : T.length) != null ? E : 0) > 1 || ((I = i.value) == null ? void 0 : I.permission_type) === 2 && !a.p((k = i.value) == null ? void 0 : k.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12341
+ var v, p, T, C, E, y, I, k;
12342
+ return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || s.isRetrieving.value || ((v = i.value) == null ? void 0 : v.dis_no_select_flg) === 1 && ((T = (p = s.selectedRows.value) == null ? void 0 : p.length) != null ? T : 0) === 0 || ((C = i.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((y = (E = s.selectedRows.value) == null ? void 0 : E.length) != null ? y : 0) > 1 || ((I = i.value) == null ? void 0 : I.permission_type) === 2 && !a.p((k = i.value) == null ? void 0 : k.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12156
12343
  }), g = ref(!1);
12157
12344
  async function m(v) {
12158
- var p, C;
12345
+ var p, T;
12159
12346
  if (!l.value)
12160
12347
  return Logger.error("\u5BFC\u5165\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
12161
12348
  VarButton: i.value
12162
12349
  }), !1;
12163
12350
  g.value = !0;
12164
12351
  try {
12165
- const y = new FormData();
12166
- y.append("file", v), await httpClient().axiosInstance.request({
12352
+ const C = new FormData();
12353
+ C.append("file", v), await httpClient().axiosInstance.request({
12167
12354
  method: u.value,
12168
12355
  baseURL: window._CONFIG.domianURL,
12169
12356
  url: l.value,
12170
- data: y,
12357
+ data: C,
12171
12358
  headers: {
12172
12359
  "Content-Type": "multipart/form-data;charset=UTF-8",
12173
12360
  ignoreCancelToken: !0
12174
12361
  }
12175
- }), message.success(a.t("kg.importSuccess")), (C = (p = o.search).value) == null || C.call(p, !0);
12176
- } catch (y) {
12177
- throw y;
12362
+ }), message.success(a.t("kg.importSuccess")), (T = (p = o.search).value) == null || T.call(p, !0);
12363
+ } catch (C) {
12364
+ throw C;
12178
12365
  } finally {
12179
12366
  g.value = !1;
12180
12367
  }
@@ -12218,8 +12405,8 @@ const KgTable$1 = "", KgTable = defineComponent({
12218
12405
  var m, b;
12219
12406
  return (b = (m = n.value) == null ? void 0 : m.cmd_method) != null ? b : "GET";
12220
12407
  }), i = computed(() => {
12221
- var m, b, _, v, p, C, y, T;
12222
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((m = n.value) == null ? void 0 : m.dis_no_select_flg) === 1 && ((_ = (b = a.selectedRows.value) == null ? void 0 : b.length) != null ? _ : 0) === 0 || ((v = n.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((C = (p = a.selectedRows.value) == null ? void 0 : p.length) != null ? C : 0) > 1 || ((y = n.value) == null ? void 0 : y.permission_type) === 2 && !t.p((T = n.value) == null ? void 0 : T.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12408
+ var m, b, _, v, p, T, C, E;
12409
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((m = n.value) == null ? void 0 : m.dis_no_select_flg) === 1 && ((_ = (b = a.selectedRows.value) == null ? void 0 : b.length) != null ? _ : 0) === 0 || ((v = n.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((T = (p = a.selectedRows.value) == null ? void 0 : p.length) != null ? T : 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;
12223
12410
  }), l = ref(!1);
12224
12411
  async function u() {
12225
12412
  var m;
@@ -12274,8 +12461,8 @@ const KgTable$1 = "", KgTable = defineComponent({
12274
12461
  props: getProps$f(),
12275
12462
  setup(e) {
12276
12463
  const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), s = computed(() => {
12277
- var c, g, m, b, _, v, p, C;
12278
- 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 && ((m = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? m : 0) === 0 || ((b = o.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((v = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? v : 0) > 1 || ((p = o.value) == null ? void 0 : p.permission_type) === 2 && !t.p((C = o.value) == null ? void 0 : C.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12464
+ var c, g, m, b, _, v, p, T;
12465
+ 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 && ((m = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? m : 0) === 0 || ((b = o.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((v = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? v : 0) > 1 || ((p = o.value) == null ? void 0 : p.permission_type) === 2 && !t.p((T = o.value) == null ? void 0 : T.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12279
12466
  });
12280
12467
  async function i() {
12281
12468
  var b, _, v;
@@ -12290,16 +12477,16 @@ const KgTable$1 = "", KgTable = defineComponent({
12290
12477
  }
12291
12478
  let g = null;
12292
12479
  const m = async () => {
12293
- var C, y, T, E, I, k, R;
12480
+ var T, C, E, y, I, k, w;
12294
12481
  g == null || g.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
12295
12482
  const p = n.selectedRows.value;
12296
12483
  try {
12297
12484
  await httpClient().request({
12298
- method: (y = (C = e.kgButton) == null ? void 0 : C.cmd_method) != null ? y : "POST",
12485
+ method: (C = (T = e.kgButton) == null ? void 0 : T.cmd_method) != null ? C : "POST",
12299
12486
  url: c,
12300
- params: KgVarUtil.parseCommandParameter((E = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? E : ""),
12487
+ params: KgVarUtil.parseCommandParameter((y = (E = e.kgButton) == null ? void 0 : E.cmd_prm) != null ? y : ""),
12301
12488
  data: p != null ? p : []
12302
- }), ((I = e.kgButton) == null ? void 0 : I.reload_all_after_done_flg) === 1 && ((R = (k = a.search).value) == null || R.call(k, !0));
12489
+ }), ((I = e.kgButton) == null ? void 0 : I.reload_all_after_done_flg) === 1 && ((w = (k = a.search).value) == null || w.call(k, !0));
12303
12490
  } catch (M) {
12304
12491
  console.error(M);
12305
12492
  } finally {
@@ -12365,119 +12552,7 @@ const KgTable$1 = "", KgTable = defineComponent({
12365
12552
  default: () => [o(), s()]
12366
12553
  });
12367
12554
  }
12368
- });
12369
- let store$3 = null;
12370
- const useKgButtonStore = () => (store$3 || (store$3 = defineStore("KgButton", {
12371
- state: () => ({
12372
- clickListenersMap: /* @__PURE__ */ new Map(),
12373
- beforeUpdateListenersMap: /* @__PURE__ */ new Map(),
12374
- deleteOkListenersMap: /* @__PURE__ */ new Map()
12375
- }),
12376
- getters: {
12377
- getClickListeners(e) {
12378
- return (t) => {
12379
- var r;
12380
- return t ? (r = e.clickListenersMap.get(t)) != null ? r : null : (Logger.error("formID \u4E3A\u7A7A."), null);
12381
- };
12382
- }
12383
- },
12384
- actions: {
12385
- addEventListener(e, t, r) {
12386
- switch (t) {
12387
- case "click":
12388
- {
12389
- const a = this.clickListenersMap.get(e);
12390
- this.clickListenersMap.set(e, [...a != null ? a : [], r]);
12391
- }
12392
- break;
12393
- case "beforeUpdate":
12394
- {
12395
- const a = this.beforeUpdateListenersMap.get(e);
12396
- this.beforeUpdateListenersMap.set(e, [...a != null ? a : [], r]);
12397
- }
12398
- break;
12399
- case "deleteOk":
12400
- {
12401
- const a = this.deleteOkListenersMap.get(e);
12402
- this.deleteOkListenersMap.set(e, [...a != null ? a : [], r]);
12403
- }
12404
- break;
12405
- }
12406
- },
12407
- removeEventListener(e, t, r) {
12408
- switch (t) {
12409
- case "click":
12410
- if (r) {
12411
- const a = this.clickListenersMap.get(e);
12412
- this.clickListenersMap.set(e, without$1(a, r));
12413
- } else
12414
- this.clickListenersMap.set(e, []);
12415
- break;
12416
- case "beforeUpdate":
12417
- if (r) {
12418
- const a = this.beforeUpdateListenersMap.get(e);
12419
- this.beforeUpdateListenersMap.set(e, without$1(a, r));
12420
- } else
12421
- this.beforeUpdateListenersMap.set(e, []);
12422
- break;
12423
- case "deleteOk":
12424
- if (r) {
12425
- const a = this.deleteOkListenersMap.get(e);
12426
- this.deleteOkListenersMap.set(e, without$1(a, r));
12427
- } else
12428
- this.deleteOkListenersMap.set(e, []);
12429
- break;
12430
- }
12431
- },
12432
- emit(e, t, r) {
12433
- let a;
12434
- switch (t) {
12435
- case "click":
12436
- a = this.clickListenersMap.get(e);
12437
- break;
12438
- case "beforeUpdate":
12439
- a = this.beforeUpdateListenersMap.get(e);
12440
- break;
12441
- case "deleteOk":
12442
- a = this.deleteOkListenersMap.get(e);
12443
- break;
12444
- }
12445
- if (a) {
12446
- let n = Promise.resolve(!1);
12447
- for (let o = 0; o < a.length; o++)
12448
- n = a[o](r != null ? r : null);
12449
- return n;
12450
- }
12451
- return Promise.resolve(!1);
12452
- },
12453
- click(e, t, r, a) {
12454
- }
12455
- }
12456
- }).bind(null, pinia())), store$3);
12457
- function useKgButton(e) {
12458
- const t = useKgVar(e), r = useKgButtonStore()();
12459
- function a(s) {
12460
- return isFunction$2(s) ? (r.addEventListener(t.formID, "click", s), onUnmounted(() => r.removeEventListener(t.formID, "click", s)), () => r.removeEventListener(t.formID, "click", s)) : () => {
12461
- };
12462
- }
12463
- function n(s) {
12464
- return isFunction$2(s) ? (r.addEventListener(t.formID, "beforeUpdate", s), onUnmounted(() => r.removeEventListener(t.formID, "beforeUpdate", s)), () => r.removeEventListener(t.formID, "beforeUpdate", s)) : () => {
12465
- };
12466
- }
12467
- function o(s) {
12468
- return isFunction$2(s) ? (r.addEventListener(t.formID, "deleteOk", s), onUnmounted(() => r.removeEventListener(t.formID, "deleteOk", s)), () => r.removeEventListener(t.formID, "deleteOk", s)) : () => {
12469
- };
12470
- }
12471
- return {
12472
- formID: t.formID,
12473
- store: r,
12474
- click: r.click,
12475
- onClick: a,
12476
- onBeforeUpdate: n,
12477
- onDeleteOk: o
12478
- };
12479
- }
12480
- const KgButtonUpdate = defineComponent({
12555
+ }), KgButtonUpdate = defineComponent({
12481
12556
  name: "KgButtonUpdate",
12482
12557
  props: getProps$f(),
12483
12558
  setup(e, {
@@ -12487,20 +12562,20 @@ const KgButtonUpdate = defineComponent({
12487
12562
  const a = useKg(), n = useKgVar(), o = useKgTable(), s = useKgButton(), i = useKgSubmit();
12488
12563
  s.store.$onAction(async ({
12489
12564
  name: p,
12490
- args: C
12565
+ args: T
12491
12566
  }) => {
12492
12567
  switch (p) {
12493
12568
  case "click":
12494
- C[0] === n.formID && await c();
12569
+ T[0] === n.formID && await c();
12495
12570
  break;
12496
12571
  }
12497
12572
  });
12498
12573
  const l = computed(() => n.store.getVarButton(n.formID, e.kgVarName)), u = computed(() => {
12499
- var p, C, y, T, E, I, k, R;
12500
- return n.isCreating.value || n.isCopying.value || n.isDeleting.value || ((p = l.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((y = (C = o.selectedRows.value) == null ? void 0 : C.length) != null ? y : 0) === 0 || ((T = l.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((I = (E = o.selectedRows.value) == null ? void 0 : E.length) != null ? I : 0) > 1 || ((k = l.value) == null ? void 0 : k.permission_type) === 2 && !a.p((R = l.value) == null ? void 0 : R.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12574
+ var p, T, C, E, y, I, k, w;
12575
+ return n.isCreating.value || n.isCopying.value || n.isDeleting.value || ((p = l.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((C = (T = o.selectedRows.value) == null ? void 0 : T.length) != null ? C : 0) === 0 || ((E = l.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((I = (y = o.selectedRows.value) == null ? void 0 : y.length) != null ? I : 0) > 1 || ((k = l.value) == null ? void 0 : k.permission_type) === 2 && !a.p((w = l.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
12501
12576
  });
12502
12577
  async function c() {
12503
- e.onKgClick && await e.onKgClick() || await s.store.emit(n.formID, "beforeUpdate", {
12578
+ e.onKgClick && await e.onKgClick() || await s.store.emit(n.formID, "updateBeforeClick", {
12504
12579
  button: e.kgButton,
12505
12580
  row: o.selectedRow.value
12506
12581
  }) || n.store.setIsUpdating(n.formID, !0);
@@ -13108,38 +13183,38 @@ const leftVarProfileDetailColumns = (e) => {
13108
13183
  isCreating: _,
13109
13184
  isUpdating: v,
13110
13185
  isCopying: p,
13111
- row: C,
13112
- model: y
13186
+ row: T,
13187
+ model: C
13113
13188
  }) => {
13114
- var E, I, k;
13115
- const T = i.store.getSystemVarProfileDetails(i.formID);
13116
- switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
13189
+ var y, I, k;
13190
+ const E = i.store.getSystemVarProfileDetails(i.formID);
13191
+ switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
13117
13192
  case _:
13118
13193
  u.value = [];
13119
13194
  break;
13120
13195
  case v:
13121
13196
  case p:
13122
- if (C != null && C.id)
13197
+ if (T != null && T.id)
13123
13198
  try {
13124
13199
  s.store.setIsLoading(a.formID, !0);
13125
- const R = await QueryByID({
13200
+ const w = await QueryByID({
13126
13201
  params: {
13127
- id: C.id
13202
+ id: T.id
13128
13203
  }
13129
13204
  });
13130
13205
  l.value = l.value.map((A) => {
13131
- var B;
13132
- const O = (B = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : B.find((N) => N.var_nam === A.var_nam);
13206
+ var K;
13207
+ const O = (K = w == null ? void 0 : w.varProfileDetails) == null ? void 0 : K.find(($) => $.var_nam === A.var_nam);
13133
13208
  return O ? {
13134
13209
  ...A,
13135
13210
  ...O,
13136
13211
  id: A.id
13137
13212
  } : A;
13138
13213
  });
13139
- const M = (I = (E = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : E.map((A) => A.var_nam)) != null ? I : [];
13214
+ const M = (I = (y = w == null ? void 0 : w.varProfileDetails) == null ? void 0 : y.map((A) => A.var_nam)) != null ? I : [];
13140
13215
  u.value = l.value.filter((A) => M.includes(A.var_nam)).map((A) => A.id);
13141
- } catch (R) {
13142
- throw R;
13216
+ } catch (w) {
13217
+ throw w;
13143
13218
  } finally {
13144
13219
  s.store.setIsLoading(a.formID, !1);
13145
13220
  }
@@ -13149,17 +13224,17 @@ const leftVarProfileDetailColumns = (e) => {
13149
13224
  }
13150
13225
  switch (!0) {
13151
13226
  case p:
13152
- y.value.prf_var_nam = ((k = y.value.prf_var_nam) != null ? k : "") + "_COPY";
13227
+ C.value.prf_var_nam = ((k = C.value.prf_var_nam) != null ? k : "") + "_COPY";
13153
13228
  break;
13154
13229
  }
13155
13230
  return !1;
13156
13231
  }), s.onBeforeOk(async ({
13157
13232
  model: _
13158
13233
  }) => {
13159
- var p, C;
13234
+ var p, T;
13160
13235
  const v = _.value;
13161
- return v.frm_id = i.formID, v.varProfileDetails = (C = (p = l.value) == null ? void 0 : p.filter((y) => u.value.includes(y.id))) != null ? C : [], !1;
13162
- }), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
13236
+ return v.frm_id = i.formID, v.varProfileDetails = (T = (p = l.value) == null ? void 0 : p.filter((C) => u.value.includes(C.id))) != null ? T : [], !1;
13237
+ }), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onUpdateBeforeClick(({
13163
13238
  row: _
13164
13239
  }) => (_ == null ? void 0 : _.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((v) => {
13165
13240
  KgUtil.confirm({
@@ -13182,27 +13257,27 @@ const leftVarProfileDetailColumns = (e) => {
13182
13257
  varName: _,
13183
13258
  props: v,
13184
13259
  model: p,
13185
- varConfig: C,
13186
- varProfileDetail: y,
13187
- varSubmitField: T
13260
+ varConfig: T,
13261
+ varProfileDetail: C,
13262
+ varSubmitField: E
13188
13263
  }) => createVNode(Transfer, {
13189
13264
  dataSource: l.value,
13190
13265
  targetKeys: u.value,
13191
- "onUpdate:targetKeys": (E) => u.value = E,
13192
- rowKey: (E) => E.id,
13266
+ "onUpdate:targetKeys": (y) => u.value = y,
13267
+ rowKey: (y) => y.id,
13193
13268
  showSearch: !0,
13194
13269
  showSelectAll: !1,
13195
13270
  searchPlaceholder: " ",
13196
- filterOption: (E, I) => {
13271
+ filterOption: (y, I) => {
13197
13272
  var k;
13198
- return !!((k = I.var_nam) != null && k.includes(E));
13273
+ return !!((k = I.var_nam) != null && k.includes(y));
13199
13274
  }
13200
13275
  }, {
13201
13276
  children: ({
13202
- direction: E,
13277
+ direction: y,
13203
13278
  filteredItems: I,
13204
13279
  selectedKeys: k,
13205
- disabled: R,
13280
+ disabled: w,
13206
13281
  onItemSelectAll: M,
13207
13282
  onItemSelect: A
13208
13283
  }) => createVNode(Table, {
@@ -13210,17 +13285,17 @@ const leftVarProfileDetailColumns = (e) => {
13210
13285
  class: "kg-flex-table",
13211
13286
  size: "small",
13212
13287
  scroll: {
13213
- x: E === "left" ? "370px" : "1244px",
13288
+ x: y === "left" ? "370px" : "1244px",
13214
13289
  y: "auto"
13215
13290
  },
13216
- columns: E === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
13291
+ columns: y === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
13217
13292
  rowKey: "id",
13218
13293
  dataSource: I,
13219
13294
  customRow: (O) => ({
13220
- onClick: (B) => b(B, O, E, k)
13295
+ onClick: (K) => b(K, O, y, k)
13221
13296
  }),
13222
13297
  rowSelection: g({
13223
- disabled: R,
13298
+ disabled: w,
13224
13299
  selectedKeys: k,
13225
13300
  onItemSelectAll: M,
13226
13301
  onItemSelect: A
@@ -13237,40 +13312,40 @@ const leftVarProfileDetailColumns = (e) => {
13237
13312
  disabled: _,
13238
13313
  selectedKeys: v,
13239
13314
  onItemSelectAll: p,
13240
- onItemSelect: C
13315
+ onItemSelect: T
13241
13316
  }) => ({
13242
- getCheckboxProps: (y) => ({
13243
- disabled: _ || y.disabled
13317
+ getCheckboxProps: (C) => ({
13318
+ disabled: _ || C.disabled
13244
13319
  }),
13245
- onSelectAll(y, T) {
13246
- const E = T.filter((I) => !I.disabled).map(({
13320
+ onSelectAll(C, E) {
13321
+ const y = E.filter((I) => !I.disabled).map(({
13247
13322
  key: I
13248
13323
  }) => I);
13249
- p(E, y);
13324
+ p(y, C);
13250
13325
  },
13251
13326
  onSelect({
13252
- key: y
13253
- }, T) {
13254
- C(y, T);
13327
+ key: C
13328
+ }, E) {
13329
+ T(C, E);
13255
13330
  },
13256
13331
  selectedRowKeys: v,
13257
13332
  columnWidth: 32
13258
13333
  });
13259
13334
  async function m() {
13260
13335
  const _ = watch(n.isReady, async (v) => {
13261
- var p, C;
13336
+ var p, T;
13262
13337
  v && n.model.value && (setTimeout(() => _(), 0), n.store.patchModel(a.formID, {
13263
13338
  frm_id: e.hostFormID
13264
- }), (C = (p = n.search).value) == null || C.call(p));
13339
+ }), (T = (p = n.search).value) == null || T.call(p));
13265
13340
  }, {
13266
13341
  immediate: !0
13267
13342
  });
13268
13343
  }
13269
- function b(_, v, p, C) {
13344
+ function b(_, v, p, T) {
13270
13345
  if (!KgDomUtil.isNotClickable(_.target, ["ant-input"]))
13271
- switch (C.length = 0, _.detail) {
13346
+ switch (T.length = 0, _.detail) {
13272
13347
  case 1:
13273
- C[0] = v.id;
13348
+ T[0] = v.id;
13274
13349
  break;
13275
13350
  case 2:
13276
13351
  switch (p) {
@@ -13384,24 +13459,24 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13384
13459
  const t = inject(DI_KG_SLOTS, null), r = useKg(), a = useKgVar(), n = useKgSearch(), o = useKgTable();
13385
13460
  _useLayoutHeaderResizeObserver();
13386
13461
  const s = computed(() => a.store.getFormLevel(a.formID)), i = computed(() => a.store.getVarProfileConfig(a.formID)), l = computed(() => {
13387
- var $;
13388
- return s.value > 0 ? !1 : (($ = i.value) == null ? void 0 : $.header_teleport_flg) !== 0;
13462
+ var N;
13463
+ return s.value > 0 ? !1 : ((N = i.value) == null ? void 0 : N.header_teleport_flg) !== 0;
13389
13464
  }), u = computed(() => getDefaultHeight(a.currentVarProfileDetails.value, l.value)), c = computed(() => getMaxHeight(a.currentVarProfileDetails.value, l.value)), g = computed(() => l.value ? 1 : HEADER_HEIGHT), m = computed(() => {
13390
- var $, G;
13391
- return !!(o.isRetrieving.value || (($ = a.varButtonSearch.value) == null ? void 0 : $.permission_type) === 2 && !r.p((G = a.varButtonSearch.value) == null ? void 0 : G.permission_code) || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value);
13465
+ var N, x;
13466
+ return !!(o.isRetrieving.value || ((N = a.varButtonSearch.value) == null ? void 0 : N.permission_type) === 2 && !r.p((x = a.varButtonSearch.value) == null ? void 0 : x.permission_code) || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value);
13392
13467
  }), b = computed(() => !!(o.isRetrieving.value || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value)), _ = computed(() => !!o.isRetrieving.value), v = ref(null), p = ref({
13393
13468
  kgHeight: g.value
13394
- }), C = ref({
13469
+ }), T = ref({
13395
13470
  visible: !1
13396
13471
  });
13397
- let y;
13398
- const T = computed(() => p.value.kgHeight === g.value), E = computed(() => {
13399
- var $, G, q;
13400
- if (a.t(($ = a.varButtonSearch.value) == null ? void 0 : $.var_nam).value !== ((G = a.varButtonSearch.value) == null ? void 0 : G.var_nam))
13472
+ let C;
13473
+ const E = computed(() => p.value.kgHeight === g.value), y = computed(() => {
13474
+ var N, x, q;
13475
+ if (a.t((N = a.varButtonSearch.value) == null ? void 0 : N.var_nam).value !== ((x = a.varButtonSearch.value) == null ? void 0 : x.var_nam))
13401
13476
  return a.t((q = a.varButtonSearch.value) == null ? void 0 : q.var_nam).value;
13402
13477
  }), I = computed(() => {
13403
- var $;
13404
- switch (($ = a.varButtonSearch.value) == null ? void 0 : $.primary_flg) {
13478
+ var N;
13479
+ switch ((N = a.varButtonSearch.value) == null ? void 0 : N.primary_flg) {
13405
13480
  case 1:
13406
13481
  return !0;
13407
13482
  case 0:
@@ -13410,21 +13485,21 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13410
13485
  return !0;
13411
13486
  }
13412
13487
  }), k = computed(() => {
13413
- var $;
13414
- return (($ = i.value) == null ? void 0 : $.vis_flg) === 1;
13415
- }), R = computed(() => {
13416
- var $;
13417
- return (($ = i.value) == null ? void 0 : $.resizable_flg) !== 0;
13488
+ var N;
13489
+ return ((N = i.value) == null ? void 0 : N.vis_flg) === 1;
13490
+ }), w = computed(() => {
13491
+ var N;
13492
+ return ((N = i.value) == null ? void 0 : N.resizable_flg) !== 0;
13418
13493
  }), M = computed(() => !!(a.isRetrievingVar.value || a.isRetrievingVarProfileMaster.value || l.value && !!a.isOtherRequesting.value)), A = computed(() => !!a.isRetrievingVar.value || !!a.isRetrievingVarProfileMaster.value), O = computed(() => {
13419
- let $ = "kg-search";
13420
- return k.value && ($ += " kg-search--visible"), l.value && ($ += " kg-search--teleport"), $;
13421
- });
13422
- watch(a.currentVarProfileDetails, ($) => {
13423
- if ($) {
13424
- const G = {};
13425
- $.forEach((q) => {
13426
- G[q.var_nam] = "";
13427
- }), p.value.kgHeight = u.value, n.store.setModel(a.formID, reactive(G)), k.value ? (y == null || y(), y = watch(v, (q) => {
13494
+ let N = "kg-search";
13495
+ return k.value && (N += " kg-search--visible"), l.value && (N += " kg-search--teleport"), N;
13496
+ });
13497
+ watch(a.currentVarProfileDetails, (N) => {
13498
+ if (N) {
13499
+ const x = {};
13500
+ N.forEach((q) => {
13501
+ x[q.var_nam] = "";
13502
+ }), p.value.kgHeight = u.value, n.store.setModel(a.formID, reactive(x)), k.value ? (C == null || C(), C = watch(v, (q) => {
13428
13503
  q && (n.store.emit(a.formID, "ready"), n.store.setIsReady(a.formID, !0));
13429
13504
  }, {
13430
13505
  immediate: !0
@@ -13435,84 +13510,84 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13435
13510
  }), onUnmounted(() => {
13436
13511
  n.store.dispose(a.formID);
13437
13512
  });
13438
- function B($ = !1) {
13513
+ function K(N = !1) {
13439
13514
  m.value || (k.value ? v.value && v.value.validate().then(() => {
13440
13515
  n.store.emit(a.formID, "search", {
13441
- resetPageIndex: $
13516
+ resetPageIndex: N
13442
13517
  });
13443
- }).catch((G) => {
13518
+ }).catch((x) => {
13444
13519
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
13445
- e: G
13520
+ e: x
13446
13521
  });
13447
13522
  }) : n.store.emit(a.formID, "search", {
13448
- resetPageIndex: $
13523
+ resetPageIndex: N
13449
13524
  }));
13450
13525
  }
13451
- n.store.setSearchFn(a.formID, B);
13452
- function N() {
13453
- var $;
13454
- ($ = v.value) == null || $.resetFields(), k.value ? v.value && v.value.validate().then(() => {
13526
+ n.store.setSearchFn(a.formID, K);
13527
+ function $() {
13528
+ var N;
13529
+ (N = v.value) == null || N.resetFields(), k.value ? v.value && v.value.validate().then(() => {
13455
13530
  n.store.emit(a.formID, "reset");
13456
- }).catch((G) => {
13531
+ }).catch((x) => {
13457
13532
  Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
13458
- e: G
13533
+ e: x
13459
13534
  });
13460
13535
  }) : n.store.emit(a.formID, "reset");
13461
13536
  }
13462
- n.store.setResetFn(a.formID, N);
13537
+ n.store.setResetFn(a.formID, $);
13463
13538
  function P() {
13464
- return B(!0), Promise.resolve(!0);
13539
+ return K(!0), Promise.resolve(!0);
13465
13540
  }
13466
- function V() {
13467
- var $;
13541
+ function D() {
13542
+ var N;
13468
13543
  return createVNode("div", {
13469
13544
  class: "title",
13470
13545
  onClick: H
13471
- }, [(($ = t == null ? void 0 : t.KgSearch) == null ? void 0 : $.left) && createVNode("div", {
13546
+ }, [((N = t == null ? void 0 : t.KgSearch) == null ? void 0 : N.left) && createVNode("div", {
13472
13547
  class: "kg-search-title-left",
13473
- onClick: (G) => {
13474
- G.stopPropagation(), G.preventDefault();
13548
+ onClick: (x) => {
13549
+ x.stopPropagation(), x.preventDefault();
13475
13550
  }
13476
- }, [t.KgSearch.left()]), T.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
13551
+ }, [t.KgSearch.left()]), E.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
13477
13552
  }
13478
- function w() {
13479
- var $, G, q, Y;
13480
- return ((q = (G = ($ = a.varProfileMasters) == null ? void 0 : $.value) == null ? void 0 : G.length) != null ? q : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
13553
+ function V() {
13554
+ var N, x, q, Y;
13555
+ return ((q = (x = (N = a.varProfileMasters) == null ? void 0 : N.value) == null ? void 0 : x.length) != null ? q : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
13481
13556
  value: (Y = a.currentVarProfileMasterID.value) != null ? Y : void 0,
13482
- "onUpdate:value": (J) => a.store.setCurrentVarProfileMasterID(a.formID, J),
13557
+ "onUpdate:value": (Q) => a.store.setCurrentVarProfileMasterID(a.formID, Q),
13483
13558
  disabled: b.value,
13484
13559
  class: "kg-search-profile-master-select"
13485
13560
  }, {
13486
13561
  default: () => {
13487
- var J, ne;
13488
- return (ne = (J = a.varProfileMasters) == null ? void 0 : J.value) == null ? void 0 : ne.map((re) => createVNode(Select.Option, {
13489
- value: re.id
13562
+ var Q, ae;
13563
+ return (ae = (Q = a.varProfileMasters) == null ? void 0 : Q.value) == null ? void 0 : ae.map((ee) => createVNode(Select.Option, {
13564
+ value: ee.id
13490
13565
  }, {
13491
- default: () => [a.t(re == null ? void 0 : re.prf_var_nam).value]
13566
+ default: () => [a.t(ee == null ? void 0 : ee.prf_var_nam).value]
13492
13567
  }));
13493
13568
  },
13494
13569
  suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
13495
13570
  }), createVNode(Button, {
13496
13571
  disabled: b.value,
13497
13572
  onClick: () => {
13498
- C.value.visible = !0;
13573
+ T.value.visible = !0;
13499
13574
  },
13500
13575
  class: "kg-search-profile-master-btn"
13501
13576
  }, {
13502
13577
  default: () => [createVNode(SettingOutlined$1, null, null)]
13503
13578
  }), createVNode(KgSearchConfigModal, {
13504
- visible: C.value.visible,
13505
- "onUpdate:visible": (J) => C.value.visible = J,
13579
+ visible: T.value.visible,
13580
+ "onUpdate:visible": (Q) => T.value.visible = Q,
13506
13581
  hostFormID: a.formID
13507
13582
  }, null)]);
13508
13583
  }
13509
- function D() {
13510
- var $, G, q, Y, J;
13511
- return createVNode(Fragment, null, [w(), !((($ = a.varButtonSearch.value) == null ? void 0 : $.permission_type) !== 2 && !r.p((G = a.varButtonSearch.value) == null ? void 0 : G.permission_code)) && createVNode(Button, {
13584
+ function R() {
13585
+ var N, x, q, Y, Q;
13586
+ return createVNode(Fragment, null, [V(), !(((N = a.varButtonSearch.value) == null ? void 0 : N.permission_type) !== 2 && !r.p((x = a.varButtonSearch.value) == null ? void 0 : x.permission_code)) && createVNode(Button, {
13512
13587
  type: "primary",
13513
13588
  ghost: !m.value,
13514
13589
  disabled: m.value,
13515
- onClick: N,
13590
+ onClick: $,
13516
13591
  class: "kg-search-btn-reset"
13517
13592
  }, {
13518
13593
  default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
@@ -13520,8 +13595,8 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13520
13595
  kgType: KG_BUTTON_TYPE.SEARCH,
13521
13596
  kgVarName: (q = a.varButtonSearch.value) == null ? void 0 : q.var_nam,
13522
13597
  kgIcon: (Y = a.varButtonSearch.value) == null ? void 0 : Y.icon,
13523
- kgText: E.value,
13524
- kgColor: (J = a.varButtonSearch.value) == null ? void 0 : J.color,
13598
+ kgText: y.value,
13599
+ kgColor: (Q = a.varButtonSearch.value) == null ? void 0 : Q.color,
13525
13600
  kgPrimary: I.value,
13526
13601
  kgLoading: _.value,
13527
13602
  onKgClick: P
@@ -13532,20 +13607,20 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13532
13607
  spinning: A.value
13533
13608
  }, {
13534
13609
  default: () => {
13535
- var $;
13610
+ var N;
13536
13611
  return [createVNode(KgForm, {
13537
13612
  ref: v,
13538
- model: ($ = n.model.value) != null ? $ : {}
13613
+ model: (N = n.model.value) != null ? N : {}
13539
13614
  }, {
13540
13615
  default: () => [createVNode(Row, {
13541
13616
  gutter: 6
13542
13617
  }, {
13543
13618
  default: () => {
13544
- var G;
13545
- return [(G = a.currentVarProfileDetails.value) == null ? void 0 : G.map((q) => createVNode(KgForm.Item, {
13619
+ var x;
13620
+ return [(x = a.currentVarProfileDetails.value) == null ? void 0 : x.map((q) => createVNode(KgForm.Item, {
13546
13621
  kgVarName: q.var_nam,
13547
13622
  kgContext: KG_FORM_CONTEXT.SEARCH,
13548
- onKgSubmit: () => B(!0)
13623
+ onKgSubmit: () => K(!0)
13549
13624
  }, null))];
13550
13625
  }
13551
13626
  })]
@@ -13554,14 +13629,14 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13554
13629
  });
13555
13630
  }
13556
13631
  function H() {
13557
- T.value ? p.value.kgHeight = u.value : p.value.kgHeight = g.value;
13632
+ E.value ? p.value.kgHeight = u.value : p.value.kgHeight = g.value;
13558
13633
  }
13559
13634
  return () => createVNode(KgResizable, {
13560
13635
  kgHeight: p.value.kgHeight,
13561
- "onUpdate:kgHeight": ($) => p.value.kgHeight = $,
13636
+ "onUpdate:kgHeight": (N) => p.value.kgHeight = N,
13562
13637
  kgMinHeight: g.value,
13563
13638
  kgMaxHeight: c.value,
13564
- kgDisabled: !R.value,
13639
+ kgDisabled: !w.value,
13565
13640
  kgClass: O.value,
13566
13641
  "kg-frm-id": a.formID
13567
13642
  }, {
@@ -13578,9 +13653,9 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
13578
13653
  }, [createVNode(Spin, {
13579
13654
  spinning: M.value
13580
13655
  }, {
13581
- default: () => [V(), createVNode("div", {
13656
+ default: () => [D(), createVNode("div", {
13582
13657
  class: "ant-collapse-extra"
13583
- }, [D()])]
13658
+ }, [R()])]
13584
13659
  })])]
13585
13660
  }), createVNode("div", {
13586
13661
  class: "ant-collapse-content ant-collapse-content-active"
@@ -13651,28 +13726,28 @@ function useMagicKeys(e = {}) {
13651
13726
  g(v, !1);
13652
13727
  }
13653
13728
  function b(v, p) {
13654
- var C, y;
13655
- const T = (C = v.key) == null ? void 0 : C.toLowerCase(), E = (y = v.code) == null ? void 0 : y.toLowerCase(), I = [E, T].filter(Boolean);
13656
- E && (p ? s.add(v.code) : s.delete(v.code));
13729
+ var T, C;
13730
+ const E = (T = v.key) == null ? void 0 : T.toLowerCase(), y = (C = v.code) == null ? void 0 : C.toLowerCase(), I = [y, E].filter(Boolean);
13731
+ y && (p ? s.add(v.code) : s.delete(v.code));
13657
13732
  for (const k of I)
13658
13733
  c.add(k), g(k, p);
13659
- T === "meta" && !p ? (u.forEach((k) => {
13734
+ E === "meta" && !p ? (u.forEach((k) => {
13660
13735
  s.delete(k), g(k, !1);
13661
13736
  }), u.clear()) : typeof v.getModifierState == "function" && v.getModifierState("Meta") && p && [...s, ...I].forEach((k) => u.add(k));
13662
13737
  }
13663
13738
  r && (useEventListener(r, "keydown", (v) => (b(v, !0), o(v)), { passive: n }), useEventListener(r, "keyup", (v) => (b(v, !1), o(v)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
13664
13739
  const _ = new Proxy(l, {
13665
- get(v, p, C) {
13740
+ get(v, p, T) {
13666
13741
  if (typeof p != "string")
13667
- return Reflect.get(v, p, C);
13742
+ return Reflect.get(v, p, T);
13668
13743
  if (p = p.toLowerCase(), p in a && (p = a[p]), !(p in l))
13669
13744
  if (/[+_-]/.test(p)) {
13670
- const T = p.split(/[+_-]/g).map((E) => E.trim());
13671
- l[p] = computed(() => T.every((E) => unref(_[E])));
13745
+ const E = p.split(/[+_-]/g).map((y) => y.trim());
13746
+ l[p] = computed(() => E.every((y) => unref(_[y])));
13672
13747
  } else
13673
13748
  l[p] = ref(!1);
13674
- const y = Reflect.get(v, p, C);
13675
- return t ? unref(y) : y;
13749
+ const C = Reflect.get(v, p, T);
13750
+ return t ? unref(C) : C;
13676
13751
  }
13677
13752
  });
13678
13753
  return _;
@@ -13778,7 +13853,7 @@ const KgVarConfig_FormIDsModal = "", getProps$8 = () => ({
13778
13853
  const r = useKgButton(FORM_ID__VAR_BUTTON), a = useKgSubmit(FORM_ID__VAR_BUTTON);
13779
13854
  return useKgVar(e.hostFormID), a.onOpen(async () => !1), a.onBeforeOk(async ({
13780
13855
  model: n
13781
- }) => !1), a.onOk(async () => !1), r.onBeforeUpdate(async ({
13856
+ }) => !1), a.onOk(async () => !1), r.onUpdateBeforeClick(async ({
13782
13857
  row: n
13783
13858
  }) => !1), r.onDeleteOk(async () => !1), () => createVNode(KgVar, {
13784
13859
  class: "kg-var-config-modal-button"
@@ -13853,7 +13928,7 @@ const KgVarConfig_FormIDsModal = "", getProps$8 = () => ({
13853
13928
  const r = useKgButton(FORM_ID__VAR_SUBMIT_FIELD), a = useKgSubmit(FORM_ID__VAR_SUBMIT_FIELD);
13854
13929
  return useKgVar(e.hostFormID), a.onOpen(async () => !1), a.onBeforeOk(async ({
13855
13930
  model: n
13856
- }) => !1), a.onOk(async () => !1), r.onBeforeUpdate(async ({
13931
+ }) => !1), a.onOk(async () => !1), r.onUpdateBeforeClick(async ({
13857
13932
  row: n
13858
13933
  }) => !1), r.onDeleteOk(async () => !1), () => createVNode(KgVar, {
13859
13934
  class: "kg-var-config-modal-submit"
@@ -14057,27 +14132,27 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14057
14132
  columnWidth: 32,
14058
14133
  hideSelectAll: !0,
14059
14134
  selectedRowKeys: g,
14060
- onSelect: (N) => R(N)
14135
+ onSelect: ($) => w($)
14061
14136
  }), b = ref({
14062
14137
  visible: !1
14063
14138
  }), _ = computed(() => !!(unref(c) || unref(n) || unref(o) || unref(s))), v = computed(() => {
14064
- var N;
14065
- return !!c.value || ((N = a.getSelectedVarCatalog) == null ? void 0 : N.cust_lvl) === KG_CUSTOM_LEVEL.L0;
14066
- }), p = computed(() => !!(!unref(c) || unref(n) || unref(o))), C = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
14067
- watch(() => a.getSelectedVar, (N) => {
14068
- N ? y() : (c.value = null, u.value = [], a.setSelectedVarCatalog(null));
14139
+ var $;
14140
+ return !!c.value || (($ = a.getSelectedVarCatalog) == null ? void 0 : $.cust_lvl) === KG_CUSTOM_LEVEL.L0;
14141
+ }), p = computed(() => !!(!unref(c) || unref(n) || unref(o))), T = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
14142
+ watch(() => a.getSelectedVar, ($) => {
14143
+ $ ? C() : (c.value = null, u.value = [], a.setSelectedVarCatalog(null));
14069
14144
  }, {
14070
14145
  immediate: !0
14071
- }), watch(() => a.getSelectedVarCatalog, async (N) => {
14072
- var P, V;
14073
- l.value.var_text = (P = N == null ? void 0 : N.var_text) != null ? P : "", (V = i.value) == null || V.clearValidate();
14146
+ }), watch(() => a.getSelectedVarCatalog, async ($) => {
14147
+ var P, D;
14148
+ l.value.var_text = (P = $ == null ? void 0 : $.var_text) != null ? P : "", (D = i.value) == null || D.clearValidate();
14074
14149
  });
14075
- async function y(N = !1) {
14076
- var P, V, w;
14150
+ async function C($ = !1) {
14151
+ var P, D, V;
14077
14152
  n.value = !0;
14078
14153
  try {
14079
14154
  const {
14080
- records: D
14155
+ records: R
14081
14156
  } = await List({
14082
14157
  params: {
14083
14158
  pageNo: 1,
@@ -14088,99 +14163,99 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14088
14163
  order: "asc"
14089
14164
  }
14090
14165
  });
14091
- if (c.value = null, u.value = D != null ? D : [], N) {
14166
+ if (c.value = null, u.value = R != null ? R : [], $) {
14092
14167
  const L = u.value.find((H) => {
14093
- var $;
14094
- return H.id === (($ = a.getSelectedVarCatalog) == null ? void 0 : $.id);
14168
+ var N;
14169
+ return H.id === ((N = a.getSelectedVarCatalog) == null ? void 0 : N.id);
14095
14170
  });
14096
14171
  a.setSelectedVarCatalog(L != null ? L : null), g.value = L != null && L.id ? [L.id] : [];
14097
14172
  } else
14098
- a.setSelectedVarCatalog((V = u.value[0]) != null ? V : null), g.value = (w = u.value[0]) != null && w.id ? [u.value[0].id] : [];
14099
- } catch (D) {
14100
- Logger.debug(D == null ? void 0 : D.message);
14173
+ a.setSelectedVarCatalog((D = u.value[0]) != null ? D : null), g.value = (V = u.value[0]) != null && V.id ? [u.value[0].id] : [];
14174
+ } catch (R) {
14175
+ Logger.debug(R == null ? void 0 : R.message);
14101
14176
  } finally {
14102
14177
  n.value = !1;
14103
14178
  }
14104
14179
  }
14105
- async function T() {
14106
- var N, P, V;
14180
+ async function E() {
14181
+ var $, P, D;
14107
14182
  try {
14108
- o.value = !0, await ((N = i.value) == null ? void 0 : N.validate());
14109
- const w = new VarCatalog({
14183
+ o.value = !0, await (($ = i.value) == null ? void 0 : $.validate());
14184
+ const V = new VarCatalog({
14110
14185
  ...(P = a.getSelectedVarCatalog) != null ? P : {},
14111
- var_text: (V = l.value) == null ? void 0 : V.var_text
14186
+ var_text: (D = l.value) == null ? void 0 : D.var_text
14112
14187
  });
14113
- w.id ? w.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (w.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(w, "id"), await Add({
14114
- data: w
14188
+ V.id ? V.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (V.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(V, "id"), await Add({
14189
+ data: V
14115
14190
  }, {
14116
14191
  successMessageMode: "none"
14117
14192
  }), message.success({
14118
14193
  content: t.t("kg.KgVarConfig.createSuccess")
14119
- }), await y()) : (await Edit({
14120
- data: w
14194
+ }), await C()) : (await Edit({
14195
+ data: V
14121
14196
  }, {
14122
14197
  successMessageMode: "none"
14123
14198
  }), message.success({
14124
14199
  content: t.t("kg.KgVarConfig.saveSuccess")
14125
- }), await y(!0)) : (await Add({
14126
- data: w
14200
+ }), await C(!0)) : (await Add({
14201
+ data: V
14127
14202
  }, {
14128
14203
  successMessageMode: "none"
14129
14204
  }), message.success({
14130
14205
  content: t.t("kg.KgVarConfig.createSuccess")
14131
- }), await y()), r.retrieve(e == null ? void 0 : e.value);
14132
- } catch (w) {
14133
- KgUtil.throwIfNotFormError(w);
14206
+ }), await C()), r.retrieve(e == null ? void 0 : e.value);
14207
+ } catch (V) {
14208
+ KgUtil.throwIfNotFormError(V);
14134
14209
  } finally {
14135
14210
  o.value = !1;
14136
14211
  }
14137
14212
  }
14138
- function E({
14139
- isAllForm: N,
14213
+ function y({
14214
+ isAllForm: $,
14140
14215
  isAllLanguage: P
14141
14216
  }) {
14142
- var V, w, D;
14217
+ var D, V, R;
14143
14218
  c.value = new VarCatalog({
14144
14219
  id: "",
14145
14220
  cust_lvl: KG_CUSTOM_LEVEL.L10,
14146
- grp_nam: (V = a.getSelectedVar) == null ? void 0 : V.grp_nam,
14147
- var_nam: (w = a.getSelectedVar) == null ? void 0 : w.var_nam,
14148
- frm_id: N || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
14149
- locale_id: P ? "ALL" : (D = t.locale) == null ? void 0 : D.value,
14221
+ grp_nam: (D = a.getSelectedVar) == null ? void 0 : D.grp_nam,
14222
+ var_nam: (V = a.getSelectedVar) == null ? void 0 : V.var_nam,
14223
+ frm_id: $ || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
14224
+ locale_id: P ? "ALL" : (R = t.locale) == null ? void 0 : R.value,
14150
14225
  var_text: ""
14151
14226
  }), u.value = [...u.value, c.value], a.setSelectedVarCatalog(unref(c)), g.value = [""];
14152
14227
  }
14153
14228
  function I() {
14154
14229
  var P;
14155
14230
  u.value = without$1(u.value, c.value), c.value = null;
14156
- const N = (P = u.value[0]) != null ? P : null;
14157
- a.setSelectedVarCatalog(N), g.value = N ? [N.id] : [];
14231
+ const $ = (P = u.value[0]) != null ? P : null;
14232
+ a.setSelectedVarCatalog($), g.value = $ ? [$.id] : [];
14158
14233
  }
14159
14234
  function k() {
14160
14235
  KgUtil.confirm({
14161
14236
  onOk: async () => {
14162
- var N;
14237
+ var $;
14163
14238
  await Delete({
14164
14239
  params: {
14165
- id: (N = a.getSelectedVarCatalog) == null ? void 0 : N.id
14240
+ id: ($ = a.getSelectedVarCatalog) == null ? void 0 : $.id
14166
14241
  }
14167
14242
  }, {
14168
14243
  successMessageMode: "none",
14169
14244
  joinParamsToUrl: !0
14170
14245
  }), message.success({
14171
14246
  content: t.t("kg.KgVarConfig.deleteSuccess")
14172
- }), r.retrieve(e == null ? void 0 : e.value), await y();
14247
+ }), r.retrieve(e == null ? void 0 : e.value), await C();
14173
14248
  }
14174
14249
  });
14175
14250
  }
14176
- function R(N) {
14251
+ function w($) {
14177
14252
  var P;
14178
- ((P = a.getSelectedVarCatalog) == null ? void 0 : P.id) !== N.id && (unref(c) ? KgUtil.confirm({
14253
+ ((P = a.getSelectedVarCatalog) == null ? void 0 : P.id) !== $.id && (unref(c) ? KgUtil.confirm({
14179
14254
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
14180
14255
  onOk: () => {
14181
- u.value = without$1(u.value, c.value), c.value = null, a.setSelectedVarCatalog(unref(N)), g.value = [N.id];
14256
+ u.value = without$1(u.value, c.value), c.value = null, a.setSelectedVarCatalog(unref($)), g.value = [$.id];
14182
14257
  }
14183
- }) : (a.setSelectedVarCatalog(unref(N)), g.value = [N.id]));
14258
+ }) : (a.setSelectedVarCatalog(unref($)), g.value = [$.id]));
14184
14259
  }
14185
14260
  function M() {
14186
14261
  b.value.visible = !0;
@@ -14205,13 +14280,13 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14205
14280
  })]);
14206
14281
  }
14207
14282
  function O() {
14208
- let N, P;
14283
+ let $, P;
14209
14284
  return createVNode("div", {
14210
14285
  class: "form"
14211
14286
  }, [createVNode(Form, {
14212
14287
  ref: i,
14213
14288
  model: l.value,
14214
- onSubmit: T
14289
+ onSubmit: E
14215
14290
  }, {
14216
14291
  default: () => [createVNode(Form.Item, {
14217
14292
  name: "var_text",
@@ -14222,7 +14297,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14222
14297
  }, {
14223
14298
  default: () => [createVNode(Textarea, {
14224
14299
  value: l.value.var_text,
14225
- "onUpdate:value": (V) => l.value.var_text = V,
14300
+ "onUpdate:value": (D) => l.value.var_text = D,
14226
14301
  disabled: !a.getSelectedVarCatalog
14227
14302
  }, null), createVNode("button", {
14228
14303
  hidden: !0
@@ -14233,21 +14308,21 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14233
14308
  }, [createVNode(Button, {
14234
14309
  disabled: p.value,
14235
14310
  onClick: I
14236
- }, _isSlot(N = t.t("common.cancelText")) ? N : {
14237
- default: () => [N]
14311
+ }, _isSlot($ = t.t("common.cancelText")) ? $ : {
14312
+ default: () => [$]
14238
14313
  }), createVNode(Button, {
14239
14314
  loading: o.value,
14240
- disabled: C.value,
14241
- onClick: T,
14315
+ disabled: T.value,
14316
+ onClick: E,
14242
14317
  type: "primary"
14243
14318
  }, _isSlot(P = t.t("common.save")) ? P : {
14244
14319
  default: () => [P]
14245
14320
  })])]);
14246
14321
  }
14247
- function B(N) {
14248
- var V;
14322
+ function K($) {
14323
+ var D;
14249
14324
  let P = "";
14250
- return N.id || (P += " ant-table-row-create"), N.id === ((V = a.getSelectedVarCatalog) == null ? void 0 : V.id) && (P += " ant-table-row-selected "), P;
14325
+ return $.id || (P += " ant-table-row-create"), $.id === ((D = a.getSelectedVarCatalog) == null ? void 0 : D.id) && (P += " ant-table-row-selected "), P;
14251
14326
  }
14252
14327
  return () => createVNode("div", {
14253
14328
  class: "kg-var-config-modal-var-var-catalog"
@@ -14263,15 +14338,15 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
14263
14338
  rowKey: "id",
14264
14339
  dataSource: u.value,
14265
14340
  loading: n.value,
14266
- rowClassName: B,
14341
+ rowClassName: K,
14267
14342
  rowSelection: m.value,
14268
- customRow: (N) => ({
14269
- onClick: () => R(N)
14343
+ customRow: ($) => ({
14344
+ onClick: () => w($)
14270
14345
  })
14271
14346
  }, null), O(), createVNode(KgVarConfigModalVarCreateModal, {
14272
14347
  visible: b.value.visible,
14273
- "onUpdate:visible": (N) => b.value.visible = N,
14274
- onKgOk: E
14348
+ "onUpdate:visible": ($) => b.value.visible = $,
14349
+ onKgOk: y
14275
14350
  }, null)]);
14276
14351
  }
14277
14352
  }), columns = () => [{
@@ -14580,16 +14655,16 @@ const KgWarehouse$1 = "", getProps = () => ({
14580
14655
  emit: t
14581
14656
  }) {
14582
14657
  const r = useKg(), a = useKgWarehouse(), n = computed(() => {
14583
- let E = "jeecg-layout-header-action__item kg-warehouse";
14584
- return (!m.value || e.kgInvisible) && (E += " kg-warehouse--invisible"), E;
14658
+ let y = "jeecg-layout-header-action__item kg-warehouse";
14659
+ return (!m.value || e.kgInvisible) && (y += " kg-warehouse--invisible"), y;
14585
14660
  }), o = ref(""), s = a.warehouse, i = ref(null), l = ref(!1), u = reactive([{
14586
14661
  width: 80,
14587
14662
  align: "center",
14588
14663
  customRender: ({
14589
- record: E
14664
+ record: y
14590
14665
  }) => {
14591
14666
  var k;
14592
- return E.id === ((k = i.value) == null ? void 0 : k.id) ? createVNode("img", {
14667
+ return y.id === ((k = i.value) == null ? void 0 : k.id) ? createVNode("img", {
14593
14668
  src: WAREHOUSE_1890ff
14594
14669
  }, null) : createVNode("img", {
14595
14670
  src: WAREHOUSE_000000
@@ -14597,27 +14672,27 @@ const KgWarehouse$1 = "", getProps = () => ({
14597
14672
  }
14598
14673
  }, {
14599
14674
  customRender: ({
14600
- record: E
14675
+ record: y
14601
14676
  }) => {
14602
- var k, R, M;
14603
- const I = E;
14604
- return createVNode("div", null, [createVNode("div", null, [(k = I.whDsc) != null ? k : " ", createTextVNode(" - "), (R = I.whId) != null ? R : " "]), createVNode("div", {
14677
+ var k, w, M;
14678
+ const I = y;
14679
+ return createVNode("div", null, [createVNode("div", null, [(k = I.whDsc) != null ? k : " ", createTextVNode(" - "), (w = I.whId) != null ? w : " "]), createVNode("div", {
14605
14680
  class: "address"
14606
14681
  }, [(M = I.adrId) != null ? M : " "])]);
14607
14682
  }
14608
14683
  }]), c = ref([]), g = computed(() => {
14609
14684
  var I;
14610
- const E = (I = o.value) == null ? void 0 : I.toUpperCase();
14685
+ const y = (I = o.value) == null ? void 0 : I.toUpperCase();
14611
14686
  return c.value.filter((k) => {
14612
- var R, M, A, O, B, N;
14613
- return ((M = (R = k.whDsc) == null ? void 0 : R.toUpperCase()) == null ? void 0 : M.includes(E)) || ((O = (A = k.whId) == null ? void 0 : A.toUpperCase()) == null ? void 0 : O.includes(E)) || ((N = (B = k.adrId) == null ? void 0 : B.toUpperCase()) == null ? void 0 : N.includes(E));
14687
+ var w, M, A, O, K, $;
14688
+ return ((M = (w = k.whDsc) == null ? void 0 : w.toUpperCase()) == null ? void 0 : M.includes(y)) || ((O = (A = k.whId) == null ? void 0 : A.toUpperCase()) == null ? void 0 : O.includes(y)) || (($ = (K = k.adrId) == null ? void 0 : K.toUpperCase()) == null ? void 0 : $.includes(y));
14614
14689
  });
14615
14690
  }), m = computed(() => {
14616
- var E, I;
14617
- return ((I = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : I.enable) !== !1;
14691
+ var y, I;
14692
+ return ((I = (y = r.option.value) == null ? void 0 : y.KgWarehouse) == null ? void 0 : I.enable) !== !1;
14618
14693
  });
14619
- watch(a.visible, (E) => {
14620
- !m.value || (E ? _() : v());
14694
+ watch(a.visible, (y) => {
14695
+ !m.value || (y ? _() : v());
14621
14696
  }, {
14622
14697
  immediate: !0
14623
14698
  }), onMounted(() => {
@@ -14627,14 +14702,14 @@ const KgWarehouse$1 = "", getProps = () => ({
14627
14702
  !m.value || a.store.setVisible(!0);
14628
14703
  }
14629
14704
  function _() {
14630
- i.value = a.warehouse.value, C();
14705
+ i.value = a.warehouse.value, T();
14631
14706
  }
14632
14707
  function v() {
14633
14708
  o.value = "", c.value = [], i.value = null;
14634
14709
  }
14635
14710
  function p() {
14636
- var E;
14637
- !i.value || (e.kgInvisible ? (a.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((E = a.warehouse.value) == null ? void 0 : E.id) && (a.store.setWarehouse(i.value), KgUtil.confirm({
14711
+ var y;
14712
+ !i.value || (e.kgInvisible ? (a.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((y = a.warehouse.value) == null ? void 0 : y.id) && (a.store.setWarehouse(i.value), KgUtil.confirm({
14638
14713
  content: r.t("kg.KgWarehouse.reloadMessage"),
14639
14714
  kgHideCancelButton: !0,
14640
14715
  okButtonProps: {
@@ -14646,27 +14721,27 @@ const KgWarehouse$1 = "", getProps = () => ({
14646
14721
  }
14647
14722
  })), a.store.setVisible(!1));
14648
14723
  }
14649
- async function C() {
14724
+ async function T() {
14650
14725
  l.value = !0;
14651
14726
  try {
14652
14727
  const {
14653
- records: E
14728
+ records: y
14654
14729
  } = await ListVO({
14655
14730
  params: {
14656
14731
  pageNo: 1,
14657
14732
  pageSize: 999
14658
14733
  }
14659
14734
  });
14660
- c.value = E != null ? E : [];
14661
- } catch (E) {
14662
- console.error(E);
14735
+ c.value = y != null ? y : [];
14736
+ } catch (y) {
14737
+ console.error(y);
14663
14738
  } finally {
14664
14739
  l.value = !1;
14665
14740
  }
14666
14741
  }
14667
- function y(E, I) {
14742
+ function C(y, I) {
14668
14743
  var k;
14669
- switch (E.detail) {
14744
+ switch (y.detail) {
14670
14745
  case 1:
14671
14746
  ((k = i.value) == null ? void 0 : k.id) === I.id ? i.value = null : i.value = I;
14672
14747
  break;
@@ -14675,18 +14750,18 @@ const KgWarehouse$1 = "", getProps = () => ({
14675
14750
  break;
14676
14751
  }
14677
14752
  }
14678
- function T() {
14753
+ function E() {
14679
14754
  return m.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
14680
14755
  title: r.t("kg.KgWarehouse.warehouse"),
14681
14756
  placement: "bottomRight"
14682
14757
  }, {
14683
14758
  default: () => {
14684
- var E, I;
14685
- return [((E = s.value) == null ? void 0 : E.whDsc) || ((I = s.value) == null ? void 0 : I.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
14759
+ var y, I;
14760
+ return [((y = s.value) == null ? void 0 : y.whDsc) || ((I = s.value) == null ? void 0 : I.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
14686
14761
  }
14687
14762
  }), createVNode(KgModal, {
14688
14763
  visible: a.visible.value,
14689
- "onUpdate:visible": (E) => a.store.setVisible(E),
14764
+ "onUpdate:visible": (y) => a.store.setVisible(y),
14690
14765
  title: r.t("kg.KgWarehouse.title"),
14691
14766
  width: "500px",
14692
14767
  kgFullHeight: !1,
@@ -14703,7 +14778,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14703
14778
  }, {
14704
14779
  default: () => [createVNode(Input, {
14705
14780
  value: o.value,
14706
- "onUpdate:value": (E) => o.value = E,
14781
+ "onUpdate:value": (y) => o.value = y,
14707
14782
  allowClear: !0,
14708
14783
  disabled: l.value,
14709
14784
  placeholder: r.t("kg.search")
@@ -14723,11 +14798,11 @@ const KgWarehouse$1 = "", getProps = () => ({
14723
14798
  dataSource: g.value,
14724
14799
  columns: u,
14725
14800
  class: "kg-flex-table",
14726
- customRow: (E) => {
14801
+ customRow: (y) => {
14727
14802
  var I;
14728
14803
  return {
14729
- class: E.id === ((I = i.value) == null ? void 0 : I.id) ? "selected" : "",
14730
- onClick: (k) => y(k, E)
14804
+ class: y.id === ((I = i.value) == null ? void 0 : I.id) ? "selected" : "",
14805
+ onClick: (k) => C(k, y)
14731
14806
  };
14732
14807
  }
14733
14808
  }, null)]
@@ -14736,7 +14811,7 @@ const KgWarehouse$1 = "", getProps = () => ({
14736
14811
  return () => createVNode("div", {
14737
14812
  class: n.value,
14738
14813
  onClick: b
14739
- }, [T()]);
14814
+ }, [E()]);
14740
14815
  }
14741
14816
  });
14742
14817
  function createKgWarehouseGuard(e, t) {