@kengic/vue 0.9.2 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
- var ve = Object.defineProperty;
2
- var be = (e, t, r) => t in e ? ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var m = (e, t, r) => (be(e, typeof t != "symbol" ? t + "" : t, r), r);
1
+ var Se = Object.defineProperty;
2
+ var Ce = (e, t, r) => t in e ? Se(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var m = (e, t, r) => (Ce(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, onBeforeUnmount, onActivated, onDeactivated, Teleport, getCurrentScope, onScopeDispose } from "vue";
5
5
  import { Modal, Spin, Tooltip, Select, SelectOption, Button, Progress, Form, Checkbox, Divider, Row, Col, DatePicker, Input, InputNumber, Radio, Switch, Textarea, message, Drawer, Tag, Tabs, Dropdown, Menu, Table, Pagination, TableSummary, Upload, ConfigProvider, Transfer, Card, TabPane } from "ant-design-vue";
6
6
  const index$7 = "";
@@ -3312,8 +3312,8 @@ function sendQuery(e, t, r, a) {
3312
3312
  if (e.random) {
3313
3313
  let T = e.resources.slice(0);
3314
3314
  for (i = []; T.length > 1; ) {
3315
- const D = Math.floor(Math.random() * T.length);
3316
- i.push(T[D]), T = T.slice(0, D).concat(T.slice(D + 1));
3315
+ const $ = Math.floor(Math.random() * T.length);
3316
+ i.push(T[$]), T = T.slice(0, $).concat(T.slice($ + 1));
3317
3317
  }
3318
3318
  i = i.concat(T);
3319
3319
  } else
@@ -3329,8 +3329,8 @@ function sendQuery(e, t, r, a) {
3329
3329
  T.status === "pending" && (T.status = "aborted");
3330
3330
  }), g = [];
3331
3331
  }
3332
- function _(T, D) {
3333
- D && (v = []), typeof T == "function" && v.push(T);
3332
+ function _(T, $) {
3333
+ $ && (v = []), typeof T == "function" && v.push(T);
3334
3334
  }
3335
3335
  function b() {
3336
3336
  return {
@@ -3353,8 +3353,8 @@ function sendQuery(e, t, r, a) {
3353
3353
  T.status === "pending" && (T.status = "aborted");
3354
3354
  }), g = [];
3355
3355
  }
3356
- function k(T, D, I) {
3357
- const w = D !== "success";
3356
+ function k(T, $, I) {
3357
+ const w = $ !== "success";
3358
3358
  switch (g = g.filter((M) => M !== T), l) {
3359
3359
  case "pending":
3360
3360
  break;
@@ -3365,7 +3365,7 @@ function sendQuery(e, t, r, a) {
3365
3365
  default:
3366
3366
  return;
3367
3367
  }
3368
- if (D === "abort") {
3368
+ if ($ === "abort") {
3369
3369
  u = I, C();
3370
3370
  return;
3371
3371
  }
@@ -3396,14 +3396,14 @@ function sendQuery(e, t, r, a) {
3396
3396
  C();
3397
3397
  return;
3398
3398
  }
3399
- const D = {
3399
+ const $ = {
3400
3400
  status: "pending",
3401
3401
  resource: T,
3402
3402
  callback: (I, w) => {
3403
- k(D, I, w);
3403
+ k($, I, w);
3404
3404
  }
3405
3405
  };
3406
- g.push(D), c++, d = setTimeout(A, e.rotate), r(T, t, D.callback);
3406
+ g.push($), c++, d = setTimeout(A, e.rotate), r(T, t, $.callback);
3407
3407
  }
3408
3408
  return setTimeout(A), b;
3409
3409
  }
@@ -3934,60 +3934,60 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3934
3934
  (function(r, a) {
3935
3935
  e.exports = a();
3936
3936
  })(commonjsGlobal, function() {
3937
- var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", g = "quarter", v = "year", y = "date", p = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|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($) {
3938
- var V = ["th", "st", "nd", "rd"], O = $ % 100;
3939
- return "[" + $ + (V[(O - 20) % 10] || V[O] || V[0]) + "]";
3940
- } }, E = function($, V, O) {
3941
- var U = String($);
3942
- return !U || U.length >= V ? $ : "" + Array(V + 1 - U.length).join(O) + $;
3943
- }, k = { s: E, z: function($) {
3944
- var V = -$.utcOffset(), O = Math.abs(V), U = Math.floor(O / 60), F = O % 60;
3945
- return (V <= 0 ? "+" : "-") + E(U, 2, "0") + ":" + E(F, 2, "0");
3946
- }, m: function $(V, O) {
3947
- if (V.date() < O.date())
3948
- return -$(O, V);
3949
- var U = 12 * (O.year() - V.year()) + (O.month() - V.month()), F = V.clone().add(U, d), K = O - F < 0, x = V.clone().add(U + (K ? -1 : 1), d);
3950
- return +(-(U + (O - F) / (K ? F - x : x - F)) || 0);
3951
- }, a: function($) {
3952
- return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
3953
- }, p: function($) {
3954
- return { M: d, y: v, w: u, d: c, D: y, h: l, m: o, s: i, ms: s, Q: g }[$] || String($ || "").toLowerCase().replace(/s$/, "");
3955
- }, u: function($) {
3956
- return $ === void 0;
3937
+ var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", g = "quarter", v = "year", y = "date", p = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|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(V) {
3938
+ var O = ["th", "st", "nd", "rd"], D = V % 100;
3939
+ return "[" + V + (O[(D - 20) % 10] || O[D] || O[0]) + "]";
3940
+ } }, E = function(V, O, D) {
3941
+ var U = String(V);
3942
+ return !U || U.length >= O ? V : "" + Array(O + 1 - U.length).join(D) + V;
3943
+ }, k = { s: E, z: function(V) {
3944
+ var O = -V.utcOffset(), D = Math.abs(O), U = Math.floor(D / 60), F = D % 60;
3945
+ return (O <= 0 ? "+" : "-") + E(U, 2, "0") + ":" + E(F, 2, "0");
3946
+ }, m: function V(O, D) {
3947
+ if (O.date() < D.date())
3948
+ return -V(D, O);
3949
+ var U = 12 * (D.year() - O.year()) + (D.month() - O.month()), F = O.clone().add(U, d), K = D - F < 0, B = O.clone().add(U + (K ? -1 : 1), d);
3950
+ return +(-(U + (D - F) / (K ? F - B : B - F)) || 0);
3951
+ }, a: function(V) {
3952
+ return V < 0 ? Math.ceil(V) || 0 : Math.floor(V);
3953
+ }, p: function(V) {
3954
+ return { M: d, y: v, w: u, d: c, D: y, h: l, m: o, s: i, ms: s, Q: g }[V] || String(V || "").toLowerCase().replace(/s$/, "");
3955
+ }, u: function(V) {
3956
+ return V === void 0;
3957
3957
  } }, A = "en", T = {};
3958
3958
  T[A] = C;
3959
- var D = "$isDayjsObject", I = function($) {
3960
- return $ instanceof R || !(!$ || !$[D]);
3961
- }, w = function $(V, O, U) {
3959
+ var $ = "$isDayjsObject", I = function(V) {
3960
+ return V instanceof P || !(!V || !V[$]);
3961
+ }, w = function V(O, D, U) {
3962
3962
  var F;
3963
- if (!V)
3963
+ if (!O)
3964
3964
  return A;
3965
- if (typeof V == "string") {
3966
- var K = V.toLowerCase();
3967
- T[K] && (F = K), O && (T[K] = O, F = K);
3968
- var x = V.split("-");
3969
- if (!F && x.length > 1)
3970
- return $(x[0]);
3965
+ if (typeof O == "string") {
3966
+ var K = O.toLowerCase();
3967
+ T[K] && (F = K), D && (T[K] = D, F = K);
3968
+ var B = O.split("-");
3969
+ if (!F && B.length > 1)
3970
+ return V(B[0]);
3971
3971
  } else {
3972
- var z = V.name;
3973
- T[z] = V, F = z;
3972
+ var W = O.name;
3973
+ T[W] = O, F = W;
3974
3974
  }
3975
3975
  return !U && F && (A = F), F || !U && A;
3976
- }, M = function($, V) {
3977
- if (I($))
3978
- return $.clone();
3979
- var O = typeof V == "object" ? V : {};
3980
- return O.date = $, O.args = arguments, new R(O);
3976
+ }, M = function(V, O) {
3977
+ if (I(V))
3978
+ return V.clone();
3979
+ var D = typeof O == "object" ? O : {};
3980
+ return D.date = V, D.args = arguments, new P(D);
3981
3981
  }, N = k;
3982
- N.l = w, N.i = I, N.w = function($, V) {
3983
- return M($, { locale: V.$L, utc: V.$u, x: V.$x, $offset: V.$offset });
3982
+ N.l = w, N.i = I, N.w = function(V, O) {
3983
+ return M(V, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
3984
3984
  };
3985
- var R = function() {
3986
- function $(O) {
3987
- this.$L = w(O.locale, null, !0), this.parse(O), this.$x = this.$x || O.x || {}, this[D] = !0;
3985
+ var P = function() {
3986
+ function V(D) {
3987
+ this.$L = w(D.locale, null, !0), this.parse(D), this.$x = this.$x || D.x || {}, this[$] = !0;
3988
3988
  }
3989
- var V = $.prototype;
3990
- return V.parse = function(O) {
3989
+ var O = V.prototype;
3990
+ return O.parse = function(D) {
3991
3991
  this.$d = function(U) {
3992
3992
  var F = U.date, K = U.utc;
3993
3993
  if (F === null)
@@ -3997,108 +3997,108 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3997
3997
  if (F instanceof Date)
3998
3998
  return new Date(F);
3999
3999
  if (typeof F == "string" && !/Z$/i.test(F)) {
4000
- var x = F.match(_);
4001
- if (x) {
4002
- var z = x[2] - 1 || 0, Q = (x[7] || "0").substring(0, 3);
4003
- return K ? new Date(Date.UTC(x[1], z, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Q)) : new Date(x[1], z, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Q);
4000
+ var B = F.match(_);
4001
+ if (B) {
4002
+ var W = B[2] - 1 || 0, X = (B[7] || "0").substring(0, 3);
4003
+ return K ? new Date(Date.UTC(B[1], W, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, X)) : new Date(B[1], W, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, X);
4004
4004
  }
4005
4005
  }
4006
4006
  return new Date(F);
4007
- }(O), this.init();
4008
- }, V.init = function() {
4009
- var O = this.$d;
4010
- this.$y = O.getFullYear(), this.$M = O.getMonth(), this.$D = O.getDate(), this.$W = O.getDay(), this.$H = O.getHours(), this.$m = O.getMinutes(), this.$s = O.getSeconds(), this.$ms = O.getMilliseconds();
4011
- }, V.$utils = function() {
4007
+ }(D), this.init();
4008
+ }, O.init = function() {
4009
+ var D = this.$d;
4010
+ this.$y = D.getFullYear(), this.$M = D.getMonth(), this.$D = D.getDate(), this.$W = D.getDay(), this.$H = D.getHours(), this.$m = D.getMinutes(), this.$s = D.getSeconds(), this.$ms = D.getMilliseconds();
4011
+ }, O.$utils = function() {
4012
4012
  return N;
4013
- }, V.isValid = function() {
4013
+ }, O.isValid = function() {
4014
4014
  return this.$d.toString() !== p;
4015
- }, V.isSame = function(O, U) {
4016
- var F = M(O);
4015
+ }, O.isSame = function(D, U) {
4016
+ var F = M(D);
4017
4017
  return this.startOf(U) <= F && F <= this.endOf(U);
4018
- }, V.isAfter = function(O, U) {
4019
- return M(O) < this.startOf(U);
4020
- }, V.isBefore = function(O, U) {
4021
- return this.endOf(U) < M(O);
4022
- }, V.$g = function(O, U, F) {
4023
- return N.u(O) ? this[U] : this.set(F, O);
4024
- }, V.unix = function() {
4018
+ }, O.isAfter = function(D, U) {
4019
+ return M(D) < this.startOf(U);
4020
+ }, O.isBefore = function(D, U) {
4021
+ return this.endOf(U) < M(D);
4022
+ }, O.$g = function(D, U, F) {
4023
+ return N.u(D) ? this[U] : this.set(F, D);
4024
+ }, O.unix = function() {
4025
4025
  return Math.floor(this.valueOf() / 1e3);
4026
- }, V.valueOf = function() {
4026
+ }, O.valueOf = function() {
4027
4027
  return this.$d.getTime();
4028
- }, V.startOf = function(O, U) {
4029
- var F = this, K = !!N.u(U) || U, x = N.p(O), z = function(ce, ne) {
4030
- var ue = N.w(F.$u ? Date.UTC(F.$y, ne, ce) : new Date(F.$y, ne, ce), F);
4031
- return K ? ue : ue.endOf(c);
4032
- }, Q = function(ce, ne) {
4028
+ }, O.startOf = function(D, U) {
4029
+ var F = this, K = !!N.u(U) || U, B = N.p(D), W = function(ce, ne) {
4030
+ var le = N.w(F.$u ? Date.UTC(F.$y, ne, ce) : new Date(F.$y, ne, ce), F);
4031
+ return K ? le : le.endOf(c);
4032
+ }, X = function(ce, ne) {
4033
4033
  return N.w(F.toDate()[ce].apply(F.toDate("s"), (K ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), F);
4034
- }, q = this.$W, Z = this.$M, te = this.$D, oe = "set" + (this.$u ? "UTC" : "");
4035
- switch (x) {
4034
+ }, q = this.$W, Z = this.$M, ee = this.$D, se = "set" + (this.$u ? "UTC" : "");
4035
+ switch (B) {
4036
4036
  case v:
4037
- return K ? z(1, 0) : z(31, 11);
4037
+ return K ? W(1, 0) : W(31, 11);
4038
4038
  case d:
4039
- return K ? z(1, Z) : z(0, Z + 1);
4039
+ return K ? W(1, Z) : W(0, Z + 1);
4040
4040
  case u:
4041
- var ie = this.$locale().weekStart || 0, fe = (q < ie ? q + 7 : q) - ie;
4042
- return z(K ? te - fe : te + (6 - fe), Z);
4041
+ var oe = this.$locale().weekStart || 0, ge = (q < oe ? q + 7 : q) - oe;
4042
+ return W(K ? ee - ge : ee + (6 - ge), Z);
4043
4043
  case c:
4044
4044
  case y:
4045
- return Q(oe + "Hours", 0);
4045
+ return X(se + "Hours", 0);
4046
4046
  case l:
4047
- return Q(oe + "Minutes", 1);
4047
+ return X(se + "Minutes", 1);
4048
4048
  case o:
4049
- return Q(oe + "Seconds", 2);
4049
+ return X(se + "Seconds", 2);
4050
4050
  case i:
4051
- return Q(oe + "Milliseconds", 3);
4051
+ return X(se + "Milliseconds", 3);
4052
4052
  default:
4053
4053
  return this.clone();
4054
4054
  }
4055
- }, V.endOf = function(O) {
4056
- return this.startOf(O, !1);
4057
- }, V.$set = function(O, U) {
4058
- var F, K = N.p(O), x = "set" + (this.$u ? "UTC" : ""), z = (F = {}, F[c] = x + "Date", F[y] = x + "Date", F[d] = x + "Month", F[v] = x + "FullYear", F[l] = x + "Hours", F[o] = x + "Minutes", F[i] = x + "Seconds", F[s] = x + "Milliseconds", F)[K], Q = K === c ? this.$D + (U - this.$W) : U;
4055
+ }, O.endOf = function(D) {
4056
+ return this.startOf(D, !1);
4057
+ }, O.$set = function(D, U) {
4058
+ var F, K = N.p(D), B = "set" + (this.$u ? "UTC" : ""), W = (F = {}, F[c] = B + "Date", F[y] = B + "Date", F[d] = B + "Month", F[v] = B + "FullYear", F[l] = B + "Hours", F[o] = B + "Minutes", F[i] = B + "Seconds", F[s] = B + "Milliseconds", F)[K], X = K === c ? this.$D + (U - this.$W) : U;
4059
4059
  if (K === d || K === v) {
4060
4060
  var q = this.clone().set(y, 1);
4061
- q.$d[z](Q), q.init(), this.$d = q.set(y, Math.min(this.$D, q.daysInMonth())).$d;
4061
+ q.$d[W](X), q.init(), this.$d = q.set(y, Math.min(this.$D, q.daysInMonth())).$d;
4062
4062
  } else
4063
- z && this.$d[z](Q);
4063
+ W && this.$d[W](X);
4064
4064
  return this.init(), this;
4065
- }, V.set = function(O, U) {
4066
- return this.clone().$set(O, U);
4067
- }, V.get = function(O) {
4068
- return this[N.p(O)]();
4069
- }, V.add = function(O, U) {
4065
+ }, O.set = function(D, U) {
4066
+ return this.clone().$set(D, U);
4067
+ }, O.get = function(D) {
4068
+ return this[N.p(D)]();
4069
+ }, O.add = function(D, U) {
4070
4070
  var F, K = this;
4071
- O = Number(O);
4072
- var x = N.p(U), z = function(Z) {
4073
- var te = M(K);
4074
- return N.w(te.date(te.date() + Math.round(Z * O)), K);
4071
+ D = Number(D);
4072
+ var B = N.p(U), W = function(Z) {
4073
+ var ee = M(K);
4074
+ return N.w(ee.date(ee.date() + Math.round(Z * D)), K);
4075
4075
  };
4076
- if (x === d)
4077
- return this.set(d, this.$M + O);
4078
- if (x === v)
4079
- return this.set(v, this.$y + O);
4080
- if (x === c)
4081
- return z(1);
4082
- if (x === u)
4083
- return z(7);
4084
- var Q = (F = {}, F[o] = a, F[l] = n, F[i] = r, F)[x] || 1, q = this.$d.getTime() + O * Q;
4076
+ if (B === d)
4077
+ return this.set(d, this.$M + D);
4078
+ if (B === v)
4079
+ return this.set(v, this.$y + D);
4080
+ if (B === c)
4081
+ return W(1);
4082
+ if (B === u)
4083
+ return W(7);
4084
+ var X = (F = {}, F[o] = a, F[l] = n, F[i] = r, F)[B] || 1, q = this.$d.getTime() + D * X;
4085
4085
  return N.w(q, this);
4086
- }, V.subtract = function(O, U) {
4087
- return this.add(-1 * O, U);
4088
- }, V.format = function(O) {
4086
+ }, O.subtract = function(D, U) {
4087
+ return this.add(-1 * D, U);
4088
+ }, O.format = function(D) {
4089
4089
  var U = this, F = this.$locale();
4090
4090
  if (!this.isValid())
4091
4091
  return F.invalidDate || p;
4092
- var K = O || "YYYY-MM-DDTHH:mm:ssZ", x = N.z(this), z = this.$H, Q = this.$m, q = this.$M, Z = F.weekdays, te = F.months, oe = F.meridiem, ie = function(ne, ue, de, P) {
4093
- return ne && (ne[ue] || ne(U, K)) || de[ue].slice(0, P);
4094
- }, fe = function(ne) {
4095
- return N.s(z % 12 || 12, ne, "0");
4096
- }, ce = oe || function(ne, ue, de) {
4097
- var P = ne < 12 ? "AM" : "PM";
4098
- return de ? P.toLowerCase() : P;
4092
+ var K = D || "YYYY-MM-DDTHH:mm:ssZ", B = N.z(this), W = this.$H, X = this.$m, q = this.$M, Z = F.weekdays, ee = F.months, se = F.meridiem, oe = function(ne, le, de, fe) {
4093
+ return ne && (ne[le] || ne(U, K)) || de[le].slice(0, fe);
4094
+ }, ge = function(ne) {
4095
+ return N.s(W % 12 || 12, ne, "0");
4096
+ }, ce = se || function(ne, le, de) {
4097
+ var fe = ne < 12 ? "AM" : "PM";
4098
+ return de ? fe.toLowerCase() : fe;
4099
4099
  };
4100
- return K.replace(b, function(ne, ue) {
4101
- return ue || function(de) {
4100
+ return K.replace(b, function(ne, le) {
4101
+ return le || function(de) {
4102
4102
  switch (de) {
4103
4103
  case "YY":
4104
4104
  return String(U.$y).slice(-2);
@@ -4109,9 +4109,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4109
4109
  case "MM":
4110
4110
  return N.s(q + 1, 2, "0");
4111
4111
  case "MMM":
4112
- return ie(F.monthsShort, q, te, 3);
4112
+ return oe(F.monthsShort, q, ee, 3);
4113
4113
  case "MMMM":
4114
- return ie(te, q);
4114
+ return oe(ee, q);
4115
4115
  case "D":
4116
4116
  return U.$D;
4117
4117
  case "DD":
@@ -4119,27 +4119,27 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4119
4119
  case "d":
4120
4120
  return String(U.$W);
4121
4121
  case "dd":
4122
- return ie(F.weekdaysMin, U.$W, Z, 2);
4122
+ return oe(F.weekdaysMin, U.$W, Z, 2);
4123
4123
  case "ddd":
4124
- return ie(F.weekdaysShort, U.$W, Z, 3);
4124
+ return oe(F.weekdaysShort, U.$W, Z, 3);
4125
4125
  case "dddd":
4126
4126
  return Z[U.$W];
4127
4127
  case "H":
4128
- return String(z);
4128
+ return String(W);
4129
4129
  case "HH":
4130
- return N.s(z, 2, "0");
4130
+ return N.s(W, 2, "0");
4131
4131
  case "h":
4132
- return fe(1);
4132
+ return ge(1);
4133
4133
  case "hh":
4134
- return fe(2);
4134
+ return ge(2);
4135
4135
  case "a":
4136
- return ce(z, Q, !0);
4136
+ return ce(W, X, !0);
4137
4137
  case "A":
4138
- return ce(z, Q, !1);
4138
+ return ce(W, X, !1);
4139
4139
  case "m":
4140
- return String(Q);
4140
+ return String(X);
4141
4141
  case "mm":
4142
- return N.s(Q, 2, "0");
4142
+ return N.s(X, 2, "0");
4143
4143
  case "s":
4144
4144
  return String(U.$s);
4145
4145
  case "ss":
@@ -4147,26 +4147,26 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4147
4147
  case "SSS":
4148
4148
  return N.s(U.$ms, 3, "0");
4149
4149
  case "Z":
4150
- return x;
4150
+ return B;
4151
4151
  }
4152
4152
  return null;
4153
- }(ne) || x.replace(":", "");
4153
+ }(ne) || B.replace(":", "");
4154
4154
  });
4155
- }, V.utcOffset = function() {
4155
+ }, O.utcOffset = function() {
4156
4156
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4157
- }, V.diff = function(O, U, F) {
4158
- var K, x = this, z = N.p(U), Q = M(O), q = (Q.utcOffset() - this.utcOffset()) * a, Z = this - Q, te = function() {
4159
- return N.m(x, Q);
4157
+ }, O.diff = function(D, U, F) {
4158
+ var K, B = this, W = N.p(U), X = M(D), q = (X.utcOffset() - this.utcOffset()) * a, Z = this - X, ee = function() {
4159
+ return N.m(B, X);
4160
4160
  };
4161
- switch (z) {
4161
+ switch (W) {
4162
4162
  case v:
4163
- K = te() / 12;
4163
+ K = ee() / 12;
4164
4164
  break;
4165
4165
  case d:
4166
- K = te();
4166
+ K = ee();
4167
4167
  break;
4168
4168
  case g:
4169
- K = te() / 3;
4169
+ K = ee() / 3;
4170
4170
  break;
4171
4171
  case u:
4172
4172
  K = (Z - q) / 6048e5;
@@ -4187,35 +4187,35 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4187
4187
  K = Z;
4188
4188
  }
4189
4189
  return F ? K : N.a(K);
4190
- }, V.daysInMonth = function() {
4190
+ }, O.daysInMonth = function() {
4191
4191
  return this.endOf(d).$D;
4192
- }, V.$locale = function() {
4192
+ }, O.$locale = function() {
4193
4193
  return T[this.$L];
4194
- }, V.locale = function(O, U) {
4195
- if (!O)
4194
+ }, O.locale = function(D, U) {
4195
+ if (!D)
4196
4196
  return this.$L;
4197
- var F = this.clone(), K = w(O, U, !0);
4197
+ var F = this.clone(), K = w(D, U, !0);
4198
4198
  return K && (F.$L = K), F;
4199
- }, V.clone = function() {
4199
+ }, O.clone = function() {
4200
4200
  return N.w(this.$d, this);
4201
- }, V.toDate = function() {
4201
+ }, O.toDate = function() {
4202
4202
  return new Date(this.valueOf());
4203
- }, V.toJSON = function() {
4203
+ }, O.toJSON = function() {
4204
4204
  return this.isValid() ? this.toISOString() : null;
4205
- }, V.toISOString = function() {
4205
+ }, O.toISOString = function() {
4206
4206
  return this.$d.toISOString();
4207
- }, V.toString = function() {
4207
+ }, O.toString = function() {
4208
4208
  return this.$d.toUTCString();
4209
- }, $;
4210
- }(), B = R.prototype;
4211
- return M.prototype = B, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", v], ["$D", y]].forEach(function($) {
4212
- B[$[1]] = function(V) {
4213
- return this.$g(V, $[0], $[1]);
4209
+ }, V;
4210
+ }(), H = P.prototype;
4211
+ return M.prototype = H, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", v], ["$D", y]].forEach(function(V) {
4212
+ H[V[1]] = function(O) {
4213
+ return this.$g(O, V[0], V[1]);
4214
4214
  };
4215
- }), M.extend = function($, V) {
4216
- return $.$i || ($(V, R, M), $.$i = !0), M;
4217
- }, M.locale = w, M.isDayjs = I, M.unix = function($) {
4218
- return M(1e3 * $);
4215
+ }), M.extend = function(V, O) {
4216
+ return V.$i || (V(O, P, M), V.$i = !0), M;
4217
+ }, M.locale = w, M.isDayjs = I, M.unix = function(V) {
4218
+ return M(1e3 * V);
4219
4219
  }, M.en = T[A], M.Ls = T, M.p = {}, M;
4220
4220
  });
4221
4221
  })(dayjs_min);
@@ -4263,7 +4263,7 @@ function filesize(e, {
4263
4263
  } = {}) {
4264
4264
  let b = y, C = Number(e), E = [], k = 0, A = EMPTY;
4265
4265
  u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
4266
- const T = a === 10 ? 1e3 : 1024, D = g === !0, I = C < 0, w = Math[p];
4266
+ const T = a === 10 ? 1e3 : 1024, $ = g === !0, I = C < 0, w = Math[p];
4267
4267
  if (typeof e != "bigint" && isNaN(e))
4268
4268
  throw new TypeError(INVALID_NUMBER);
4269
4269
  if (typeof w !== FUNCTION)
@@ -4278,10 +4278,10 @@ function filesize(e, {
4278
4278
  E[0] = w(k * M) / M, E[0] === T && b < 8 && y === -1 && (E[0] = 1, b++), A = E[1] = a === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][b];
4279
4279
  }
4280
4280
  if (I && (E[0] = -E[0]), _ > 0 && (E[0] = E[0].toPrecision(_)), E[1] = c[E[1]] || E[1], s === !0 ? E[0] = E[0].toLocaleString() : s.length > 0 ? E[0] = E[0].toLocaleString(s, i) : o.length > 0 && (E[0] = E[0].toString().replace(PERIOD, o)), r && Number.isInteger(E[0]) === !1 && n > 0) {
4281
- const M = o || PERIOD, N = E[0].toString().split(M), R = N[1] || EMPTY, B = R.length, $ = n - B;
4282
- E[0] = `${N[0]}${M}${R.padEnd(B + $, ZERO)}`;
4281
+ const M = o || PERIOD, N = E[0].toString().split(M), P = N[1] || EMPTY, H = P.length, V = n - H;
4282
+ E[0] = `${N[0]}${M}${P.padEnd(H + V, ZERO)}`;
4283
4283
  }
4284
- return D && (E[1] = v[b] ? v[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), d === ARRAY ? E : d === OBJECT ? {
4284
+ return $ && (E[1] = v[b] ? v[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), d === ARRAY ? E : d === OBJECT ? {
4285
4285
  value: E[0],
4286
4286
  symbol: E[1],
4287
4287
  exponent: b,
@@ -5630,19 +5630,19 @@ function debounce(e, t, r) {
5630
5630
  throw new TypeError(FUNC_ERROR_TEXT);
5631
5631
  t = toNumber(t) || 0, isObject$2(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? nativeMax$1(toNumber(r.maxWait) || 0, t) : s, g = "trailing" in r ? !!r.trailing : g);
5632
5632
  function v(T) {
5633
- var D = a, I = n;
5634
- return a = n = void 0, c = T, i = e.apply(I, D), i;
5633
+ var $ = a, I = n;
5634
+ return a = n = void 0, c = T, i = e.apply(I, $), i;
5635
5635
  }
5636
5636
  function y(T) {
5637
5637
  return c = T, o = setTimeout(b, t), u ? v(T) : i;
5638
5638
  }
5639
5639
  function p(T) {
5640
- var D = T - l, I = T - c, w = t - D;
5640
+ var $ = T - l, I = T - c, w = t - $;
5641
5641
  return d ? nativeMin$1(w, s - I) : w;
5642
5642
  }
5643
5643
  function _(T) {
5644
- var D = T - l, I = T - c;
5645
- return l === void 0 || D >= t || D < 0 || d && I >= s;
5644
+ var $ = T - l, I = T - c;
5645
+ return l === void 0 || $ >= t || $ < 0 || d && I >= s;
5646
5646
  }
5647
5647
  function b() {
5648
5648
  var T = now$1();
@@ -5660,8 +5660,8 @@ function debounce(e, t, r) {
5660
5660
  return o === void 0 ? i : C(now$1());
5661
5661
  }
5662
5662
  function A() {
5663
- var T = now$1(), D = _(T);
5664
- if (a = arguments, n = this, l = T, D) {
5663
+ var T = now$1(), $ = _(T);
5664
+ if (a = arguments, n = this, l = T, $) {
5665
5665
  if (o === void 0)
5666
5666
  return y(l);
5667
5667
  if (d)
@@ -6834,27 +6834,27 @@ function createSetupStore(e, t, r = {}, a, n) {
6834
6834
  function E(I, w) {
6835
6835
  return function() {
6836
6836
  setActivePinia(a);
6837
- const M = Array.from(arguments), N = [], R = [];
6838
- function B(O) {
6839
- N.push(O);
6837
+ const M = Array.from(arguments), N = [], P = [];
6838
+ function H(D) {
6839
+ N.push(D);
6840
6840
  }
6841
- function $(O) {
6842
- R.push(O);
6841
+ function V(D) {
6842
+ P.push(D);
6843
6843
  }
6844
6844
  triggerSubscriptions(g, {
6845
6845
  args: M,
6846
6846
  name: I,
6847
6847
  store: T,
6848
- after: B,
6849
- onError: $
6848
+ after: H,
6849
+ onError: V
6850
6850
  });
6851
- let V;
6851
+ let O;
6852
6852
  try {
6853
- V = w.apply(this && this.$id === e ? this : T, M);
6854
- } catch (O) {
6855
- throw triggerSubscriptions(R, O), O;
6853
+ O = w.apply(this && this.$id === e ? this : T, M);
6854
+ } catch (D) {
6855
+ throw triggerSubscriptions(P, D), D;
6856
6856
  }
6857
- return V instanceof Promise ? V.then((O) => (triggerSubscriptions(N, O), O)).catch((O) => (triggerSubscriptions(R, O), Promise.reject(O))) : (triggerSubscriptions(N, V), V);
6857
+ return O instanceof Promise ? O.then((D) => (triggerSubscriptions(N, D), D)).catch((D) => (triggerSubscriptions(P, D), Promise.reject(D))) : (triggerSubscriptions(N, O), O);
6858
6858
  };
6859
6859
  }
6860
6860
  const k = /* @__PURE__ */ markRaw({
@@ -6869,12 +6869,12 @@ function createSetupStore(e, t, r = {}, a, n) {
6869
6869
  $patch: _,
6870
6870
  $reset: b,
6871
6871
  $subscribe(I, w = {}) {
6872
- const M = addSubscription(d, I, w.detached, () => N()), N = s.run(() => watch(() => a.state.value[e], (R) => {
6872
+ const M = addSubscription(d, I, w.detached, () => N()), N = s.run(() => watch(() => a.state.value[e], (P) => {
6873
6873
  (w.flush === "sync" ? u : c) && I({
6874
6874
  storeId: e,
6875
6875
  type: MutationType.direct,
6876
6876
  events: v
6877
- }, R);
6877
+ }, P);
6878
6878
  }, assign$1({}, l, w)));
6879
6879
  return M;
6880
6880
  },
@@ -6887,18 +6887,18 @@ function createSetupStore(e, t, r = {}, a, n) {
6887
6887
  A
6888
6888
  ));
6889
6889
  a._s.set(e, T);
6890
- const D = a._e.run(() => (s = effectScope(), s.run(() => t())));
6891
- for (const I in D) {
6892
- const w = D[I];
6890
+ const $ = a._e.run(() => (s = effectScope(), s.run(() => t())));
6891
+ for (const I in $) {
6892
+ const w = $[I];
6893
6893
  if (isRef(w) && !isComputed(w) || isReactive(w))
6894
- process.env.NODE_ENV !== "production" && n ? set(p.value, I, toRef(D, I)) : i || (y && shouldHydrate(w) && (isRef(w) ? w.value = y[I] : mergeReactiveObjects(w, y[I])), a.state.value[e][I] = w), process.env.NODE_ENV !== "production" && k.state.push(I);
6894
+ process.env.NODE_ENV !== "production" && n ? set(p.value, I, toRef($, I)) : i || (y && shouldHydrate(w) && (isRef(w) ? w.value = y[I] : mergeReactiveObjects(w, y[I])), a.state.value[e][I] = w), process.env.NODE_ENV !== "production" && k.state.push(I);
6895
6895
  else if (typeof w == "function") {
6896
6896
  const M = process.env.NODE_ENV !== "production" && n ? w : E(I, w);
6897
- D[I] = M, process.env.NODE_ENV !== "production" && (k.actions[I] = w), o.actions[I] = w;
6897
+ $[I] = M, process.env.NODE_ENV !== "production" && (k.actions[I] = w), o.actions[I] = w;
6898
6898
  } else
6899
- process.env.NODE_ENV !== "production" && isComputed(w) && (k.getters[I] = i ? r.getters[I] : w, IS_CLIENT && (D._getters || (D._getters = markRaw([]))).push(I));
6899
+ process.env.NODE_ENV !== "production" && isComputed(w) && (k.getters[I] = i ? r.getters[I] : w, IS_CLIENT && ($._getters || ($._getters = markRaw([]))).push(I));
6900
6900
  }
6901
- if (assign$1(T, D), assign$1(toRaw(T), D), Object.defineProperty(T, "$state", {
6901
+ if (assign$1(T, $), assign$1(toRaw(T), $), Object.defineProperty(T, "$state", {
6902
6902
  get: () => process.env.NODE_ENV !== "production" && n ? p.value : a.state.value[e],
6903
6903
  set: (I) => {
6904
6904
  if (process.env.NODE_ENV !== "production" && n)
@@ -6911,8 +6911,8 @@ function createSetupStore(e, t, r = {}, a, n) {
6911
6911
  T._hotUpdate = markRaw((w) => {
6912
6912
  T._hotUpdating = !0, w._hmrPayload.state.forEach((M) => {
6913
6913
  if (M in T.$state) {
6914
- const N = w.$state[M], R = T.$state[M];
6915
- typeof N == "object" && isPlainObject(N) && isPlainObject(R) ? patchObject(N, R) : w.$state[M] = R;
6914
+ const N = w.$state[M], P = T.$state[M];
6915
+ typeof N == "object" && isPlainObject(N) && isPlainObject(P) ? patchObject(N, P) : w.$state[M] = P;
6916
6916
  }
6917
6917
  set(T, M, toRef(w.$state, M));
6918
6918
  }), Object.keys(T.$state).forEach((M) => {
@@ -6925,8 +6925,8 @@ function createSetupStore(e, t, r = {}, a, n) {
6925
6925
  set(T, M, E(M, N));
6926
6926
  }
6927
6927
  for (const M in w._hmrPayload.getters) {
6928
- const N = w._hmrPayload.getters[M], R = i ? computed(() => (setActivePinia(a), N.call(T, T))) : N;
6929
- set(T, M, R);
6928
+ const N = w._hmrPayload.getters[M], P = i ? computed(() => (setActivePinia(a), N.call(T, T))) : N;
6929
+ set(T, M, P);
6930
6930
  }
6931
6931
  Object.keys(T._hmrPayload.getters).forEach((M) => {
6932
6932
  M in w._hmrPayload.getters || del(T, M);
@@ -8777,12 +8777,12 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
8777
8777
  varProfile: k,
8778
8778
  varProfileConfig: A,
8779
8779
  varGrid: T,
8780
- varGridConfig: D
8780
+ varGridConfig: $
8781
8781
  } = await GetAll({ params: { frm_id: e } });
8782
8782
  this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, g != null ? g : []), this.varPossibilityMap.set(e, p != null ? p : []), this.varVariableConfigMap.set(e, v != null ? v : []), this.varVariableInputMap.set(e, y != null ? y : []), this.varButtonMap.set(e, transformVarButtons(_)), this.varButtonConfigMap.set(e, transformVarButtonConfig(b != null ? b : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(C)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(E)), this.varProfileConfigMap.set(e, transformVarProfileConfig(A != null ? A : null)), this.varProfileMap.set(e, {
8783
8783
  varProfile: k != null ? k : null,
8784
8784
  currentVarProfileMasterID: (s = (n = ((t = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : t.find((I) => I.def_flg === 1)) || ((r = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : r.find((I) => I.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((a = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : a.find(() => !0))) == null ? void 0 : n.id) != null ? s : null
8785
- }), this.varGridConfigMap.set(e, transformVarGridConfig(D != null ? D : null)), this.varGridMap.set(e, {
8785
+ }), this.varGridConfigMap.set(e, transformVarGridConfig($ != null ? $ : null)), this.varGridMap.set(e, {
8786
8786
  varGrid: transformVarGridDTO(T),
8787
8787
  currentVarGridMasterID: (u = (c = ((i = T == null ? void 0 : T.varGridMasters) == null ? void 0 : i.find((I) => I.def_flg === 1)) || ((o = T == null ? void 0 : T.varGridMasters) == null ? void 0 : o.find((I) => I.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((l = T == null ? void 0 : T.varGridMasters) == null ? void 0 : l.find(() => !0))) == null ? void 0 : c.id) != null ? u : null
8788
8788
  }), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
@@ -8992,12 +8992,12 @@ function useKgVar(e, t, r = 0) {
8992
8992
  u.leave(c);
8993
8993
  }));
8994
8994
  const d = (q) => computed(() => {
8995
- var Z, te, oe;
8996
- return (oe = (te = (Z = u.getVarCatalog(c, q)) == null ? void 0 : Z.var_text) != null ? te : q) != null ? oe : "";
8997
- }), g = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), C = computed(() => u.isUpdatingRequesting(c)), E = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)), A = computed(() => u.isDeleting(c)), T = computed(() => u.isDeletingRequesting(c)), D = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), w = computed(() => u.getVarButtonSearch(c)), M = computed(() => u.getVarButtonCreate(c)), N = computed(() => u.getVarButtonUpdate(c)), R = computed(() => u.getVarButtonCopy(c)), B = computed(() => u.getVarButtonDelete(c)), $ = computed(() => u.getVarProfileMasters(c)), V = computed(() => u.getCurrentVarProfileMaster(c)), O = computed(() => u.getCurrentVarProfileMasterID(c)), U = computed(() => {
8995
+ var Z, ee, se;
8996
+ return (se = (ee = (Z = u.getVarCatalog(c, q)) == null ? void 0 : Z.var_text) != null ? ee : q) != null ? se : "";
8997
+ }), g = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), C = computed(() => u.isUpdatingRequesting(c)), E = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)), A = computed(() => u.isDeleting(c)), T = computed(() => u.isDeletingRequesting(c)), $ = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), w = computed(() => u.getVarButtonSearch(c)), M = computed(() => u.getVarButtonCreate(c)), N = computed(() => u.getVarButtonUpdate(c)), P = computed(() => u.getVarButtonCopy(c)), H = computed(() => u.getVarButtonDelete(c)), V = computed(() => u.getVarProfileMasters(c)), O = computed(() => u.getCurrentVarProfileMaster(c)), D = computed(() => u.getCurrentVarProfileMasterID(c)), U = computed(() => {
8998
8998
  var q, Z;
8999
- return (Z = (q = V.value) == null ? void 0 : q.varProfileDetails) != null ? Z : null;
9000
- }), F = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), x = computed(() => u.getCurrentVarGridMaster(c)), z = computed(() => u.getSystemVarGridDetails(c)), Q = computed(() => u.getCurrentVarGridDetails(c));
8999
+ return (Z = (q = O.value) == null ? void 0 : q.varProfileDetails) != null ? Z : null;
9000
+ }), F = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), B = computed(() => u.getCurrentVarGridMaster(c)), W = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
9001
9001
  return {
9002
9002
  formID: c,
9003
9003
  store: u,
@@ -9012,22 +9012,22 @@ function useKgVar(e, t, r = 0) {
9012
9012
  isCopyingRequesting: k,
9013
9013
  isDeleting: A,
9014
9014
  isDeletingRequesting: T,
9015
- isOtherRequesting: D,
9015
+ isOtherRequesting: $,
9016
9016
  varButtons: I,
9017
9017
  varButtonSearch: w,
9018
9018
  varButtonCreate: M,
9019
9019
  varButtonUpdate: N,
9020
- varButtonCopy: R,
9021
- varButtonDelete: B,
9022
- varProfileMasters: $,
9023
- currentVarProfileMaster: V,
9024
- currentVarProfileMasterID: O,
9020
+ varButtonCopy: P,
9021
+ varButtonDelete: H,
9022
+ varProfileMasters: V,
9023
+ currentVarProfileMaster: O,
9024
+ currentVarProfileMasterID: D,
9025
9025
  currentVarProfileDetails: U,
9026
9026
  varGridConfig: F,
9027
9027
  varGridMasters: K,
9028
- currentVarGridMaster: x,
9029
- systemVarGridDetails: z,
9030
- currentVarGridDetails: Q,
9028
+ currentVarGridMaster: B,
9029
+ systemVarGridDetails: W,
9030
+ currentVarGridDetails: X,
9031
9031
  setIsCreating: s,
9032
9032
  setIsUpdating: i,
9033
9033
  setIsCopying: o,
@@ -9114,31 +9114,31 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
9114
9114
  async function y() {
9115
9115
  var p, _, b, C, E, k, A;
9116
9116
  if (d.value) {
9117
- const T = (_ = (p = c.selectedRows) == null ? void 0 : p.value) != null ? _ : [], D = (b = T.map((w) => w[g.value])) != null ? b : [];
9117
+ const T = (_ = (p = c.selectedRows) == null ? void 0 : p.value) != null ? _ : [], $ = (b = T.map((w) => w[g.value])) != null ? b : [];
9118
9118
  await s.store.emit(s.formID, "lookupBeforeOk", {
9119
9119
  var_nam: i,
9120
9120
  isMultiple: !0,
9121
- values: D,
9121
+ values: $,
9122
9122
  rows: T
9123
9123
  }) || (s.store.emit(s.formID, "lookupOk", {
9124
9124
  var_nam: i,
9125
9125
  model: l,
9126
9126
  isMultiple: !0,
9127
- values: D,
9127
+ values: $,
9128
9128
  rows: T
9129
9129
  }), r("update:visible", !1));
9130
9130
  } else {
9131
- const T = (k = (E = (C = c.selectedRows) == null ? void 0 : C.value) == null ? void 0 : E[0]) != null ? k : null, D = (A = T == null ? void 0 : T[g.value]) != null ? A : "";
9131
+ const T = (k = (E = (C = c.selectedRows) == null ? void 0 : C.value) == null ? void 0 : E[0]) != null ? k : null, $ = (A = T == null ? void 0 : T[g.value]) != null ? A : "";
9132
9132
  await s.store.emit(s.formID, "lookupBeforeOk", {
9133
9133
  var_nam: i,
9134
9134
  isMultiple: !1,
9135
- value: D,
9135
+ value: $,
9136
9136
  row: T
9137
9137
  }) || (s.store.emit(s.formID, "lookupOk", {
9138
9138
  var_nam: i,
9139
9139
  model: l,
9140
9140
  isMultiple: !1,
9141
- value: D,
9141
+ value: $,
9142
9142
  row: T
9143
9143
  }), r("update:visible", !1));
9144
9144
  }
@@ -9380,9 +9380,9 @@ function useKgFormItemSelect() {
9380
9380
  }), d;
9381
9381
  });
9382
9382
  async function c() {
9383
- var b, C, E, k, A, T, D, I;
9383
+ var b, C, E, k, A, T, $, I;
9384
9384
  let d = [];
9385
- const g = (b = a.value) == null ? void 0 : b.cmd, v = (E = (C = a.value) == null ? void 0 : C.cmd_method) != null ? E : "GET", y = (A = (k = a.value) == null ? void 0 : k.val_clm) != null ? A : "", p = (D = (T = a.value) == null ? void 0 : T.lbl_clm) != null ? D : "";
9385
+ const g = (b = a.value) == null ? void 0 : b.cmd, v = (E = (C = a.value) == null ? void 0 : C.cmd_method) != null ? E : "GET", y = (A = (k = a.value) == null ? void 0 : k.val_clm) != null ? A : "", p = ($ = (T = a.value) == null ? void 0 : T.lbl_clm) != null ? $ : "";
9386
9386
  if (!g || !y || !p) {
9387
9387
  KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
9388
9388
  frm_id: r.formID,
@@ -9868,12 +9868,12 @@ const KgFormItemRadioGroup = defineComponent({
9868
9868
  model: w,
9869
9869
  isMultiple: M,
9870
9870
  value: N,
9871
- values: R
9871
+ values: P
9872
9872
  }) => {
9873
- var B;
9873
+ var H;
9874
9874
  switch (I) {
9875
9875
  case e.kgVarName:
9876
- w.value && (M ? w.value[e.kgVarName] = R : w.value[e.kgVarName] = N), (B = n.value) == null || B.validate([e.kgVarName]);
9876
+ w.value && (M ? w.value[e.kgVarName] = P : w.value[e.kgVarName] = N), (H = n.value) == null || H.validate([e.kgVarName]);
9877
9877
  break;
9878
9878
  }
9879
9879
  return !1;
@@ -9883,7 +9883,7 @@ const KgFormItemRadioGroup = defineComponent({
9883
9883
  } = _useRules(e), {
9884
9884
  controlType: g
9885
9885
  } = useKgFormItem(e), v = computed(() => {
9886
- var w, M, N, R, B;
9886
+ var w, M, N, P, H;
9887
9887
  if (s.isRetrieving.value)
9888
9888
  return !0;
9889
9889
  let I = !1;
@@ -9903,17 +9903,17 @@ const KgFormItemRadioGroup = defineComponent({
9903
9903
  I = ((N = u.value) == null ? void 0 : N.upt_ena_flg) === 0;
9904
9904
  break;
9905
9905
  case s.isCopying.value:
9906
- I = ((R = u.value) == null ? void 0 : R.cpy_ena_flg) === 0;
9906
+ I = ((P = u.value) == null ? void 0 : P.cpy_ena_flg) === 0;
9907
9907
  break;
9908
9908
  case s.isDeleting.value:
9909
- I = ((B = u.value) == null ? void 0 : B.del_ena_flg) === 0;
9909
+ I = ((H = u.value) == null ? void 0 : H.del_ena_flg) === 0;
9910
9910
  break;
9911
9911
  }
9912
9912
  break;
9913
9913
  }
9914
9914
  return I;
9915
9915
  }), y = computed(() => {
9916
- var w, M, N, R;
9916
+ var w, M, N, P;
9917
9917
  let I = " ";
9918
9918
  if (e.kgPlaceholder)
9919
9919
  I = e.kgPlaceholder;
@@ -9923,12 +9923,12 @@ const KgFormItemRadioGroup = defineComponent({
9923
9923
  I = s.t((M = (w = c.value) == null ? void 0 : w.placeholder) != null ? M : " ").value;
9924
9924
  break;
9925
9925
  case KG_FORM_CONTEXT.SUBMIT:
9926
- I = s.t((R = (N = u.value) == null ? void 0 : N.placeholder) != null ? R : " ").value;
9926
+ I = s.t((P = (N = u.value) == null ? void 0 : N.placeholder) != null ? P : " ").value;
9927
9927
  break;
9928
9928
  }
9929
9929
  return I;
9930
9930
  }), p = computed(() => {
9931
- var w, M, N, R, B, $, V, O, U, F;
9931
+ var w, M, N, P, H, V, O, D, U, F;
9932
9932
  let I = 6;
9933
9933
  if (e.kgSpan !== void 0)
9934
9934
  I = e.kgSpan;
@@ -9940,13 +9940,13 @@ const KgFormItemRadioGroup = defineComponent({
9940
9940
  case KG_FORM_CONTEXT.SUBMIT:
9941
9941
  switch (!0) {
9942
9942
  case s.isCreating.value:
9943
- I = (R = (N = u.value) == null ? void 0 : N.crt_width) != null ? R : 6;
9943
+ I = (P = (N = u.value) == null ? void 0 : N.crt_width) != null ? P : 6;
9944
9944
  break;
9945
9945
  case s.isUpdating.value:
9946
- I = ($ = (B = u.value) == null ? void 0 : B.upt_width) != null ? $ : 6;
9946
+ I = (V = (H = u.value) == null ? void 0 : H.upt_width) != null ? V : 6;
9947
9947
  break;
9948
9948
  case s.isCopying.value:
9949
- I = (O = (V = u.value) == null ? void 0 : V.cpy_width) != null ? O : 6;
9949
+ I = (D = (O = u.value) == null ? void 0 : O.cpy_width) != null ? D : 6;
9950
9950
  break;
9951
9951
  case s.isDeleting.value:
9952
9952
  I = (F = (U = u.value) == null ? void 0 : U.del_width) != null ? F : 6;
@@ -9955,18 +9955,18 @@ const KgFormItemRadioGroup = defineComponent({
9955
9955
  }
9956
9956
  return Math.min(24, Math.max(1, I));
9957
9957
  }), _ = computed(() => {
9958
- var N, R;
9958
+ var N, P;
9959
9959
  const I = get(k.value, "$el.parentElement");
9960
9960
  if (I && !((N = I.classList) != null && N.contains("ant-row")))
9961
9961
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
9962
9962
  let w = {};
9963
- const M = Math.abs(Number.parseInt((R = get(k.value, "$el.parentElement.style.marginLeft")) != null ? R : "0px"));
9963
+ const M = Math.abs(Number.parseInt((P = get(k.value, "$el.parentElement.style.marginLeft")) != null ? P : "0px"));
9964
9964
  return Number.isNaN(M) || (w = {
9965
9965
  paddingLeft: `${M}px !important`,
9966
9966
  paddingRight: `${M}px !important`
9967
9967
  }), w;
9968
9968
  }), b = computed(() => {
9969
- var w, M, N, R;
9969
+ var w, M, N, P;
9970
9970
  let I = "kg-form-item";
9971
9971
  switch (o.value && (I += " kg-form-item-lookup"), e.kgContext) {
9972
9972
  case KG_FORM_CONTEXT.SEARCH:
@@ -9980,7 +9980,7 @@ const KgFormItemRadioGroup = defineComponent({
9980
9980
  switch (!0) {
9981
9981
  case (s.isCreating.value && ((M = u.value) == null ? void 0 : M.crt_vis_flg) === 0):
9982
9982
  case (s.isUpdating.value && ((N = u.value) == null ? void 0 : N.upt_vis_flg) === 0):
9983
- case (s.isCopying.value && ((R = u.value) == null ? void 0 : R.cpy_vis_flg) === 0):
9983
+ case (s.isCopying.value && ((P = u.value) == null ? void 0 : P.cpy_vis_flg) === 0):
9984
9984
  I += " kg-form-item--invisible";
9985
9985
  break;
9986
9986
  }
@@ -10076,7 +10076,7 @@ const KgFormItemRadioGroup = defineComponent({
10076
10076
  title: s.t(e.kgVarName).value
10077
10077
  }, [s.t(e.kgVarName).value]) : null;
10078
10078
  }
10079
- function D() {
10079
+ function $() {
10080
10080
  var I;
10081
10081
  return !o.value || !((I = o.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
10082
10082
  default: () => [createVNode(KgFormItemAddonLookup, {
@@ -10103,7 +10103,7 @@ const KgFormItemRadioGroup = defineComponent({
10103
10103
  validateFirst: !0,
10104
10104
  htmlFor: E.value
10105
10105
  }, {
10106
- default: () => createVNode(Fragment, null, [A(), D()]),
10106
+ default: () => createVNode(Fragment, null, [A(), $()]),
10107
10107
  label: () => T()
10108
10108
  })]
10109
10109
  });
@@ -10500,8 +10500,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
10500
10500
  }) => {
10501
10501
  const u = s.store.getVarSubmitConfig(s.formID);
10502
10502
  return o = watch(c, (d) => {
10503
- var g, v, y, p, _, b, C, E, k, A, T, D;
10504
- d && (d.id = (g = u == null ? void 0 : u.id) != null ? g : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (y = u == null ? void 0 : u.fullscreen_flg) != null ? y : 1, d.dft_fullscreen_flg = (p = u == null ? void 0 : u.dft_fullscreen_flg) != null ? p : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 1, d.max_width = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (C = u == null ? void 0 : u.min_width) != null ? C : DEFAULT_MIN_WIDTH, d.dft_width = (E = u == null ? void 0 : u.dft_width) != null ? E : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (A = u == null ? void 0 : u.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (T = u == null ? void 0 : u.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN, d.display_type = (D = u == null ? void 0 : u.display_type) != null ? D : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
10503
+ var g, v, y, p, _, b, C, E, k, A, T, $;
10504
+ d && (d.id = (g = u == null ? void 0 : u.id) != null ? g : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (y = u == null ? void 0 : u.fullscreen_flg) != null ? y : 1, d.dft_fullscreen_flg = (p = u == null ? void 0 : u.dft_fullscreen_flg) != null ? p : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 1, d.max_width = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (C = u == null ? void 0 : u.min_width) != null ? C : DEFAULT_MIN_WIDTH, d.dft_width = (E = u == null ? void 0 : u.dft_width) != null ? E : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (A = u == null ? void 0 : u.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (T = u == null ? void 0 : u.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN, d.display_type = ($ = u == null ? void 0 : u.display_type) != null ? $ : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
10505
10505
  }, {
10506
10506
  immediate: !0
10507
10507
  }), KgUtil.hideLoading(), !1;
@@ -10765,67 +10765,67 @@ const getProps$p = () => ({
10765
10765
  const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
10766
10766
  inject(DI_KG_VAR__KG_PROPS, null);
10767
10767
  const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = useKgSearch();
10768
- i.onSubmitSave(async () => (await ie(), !1)), i.onSubmitCancel(async () => (await oe(), !1)), _useFormModel$1();
10768
+ i.onSubmitSave(async () => (await oe(), !1)), i.onSubmitCancel(async () => (await se(), !1)), _useFormModel$1();
10769
10769
  const u = computed(() => s.isDeleting.value && k.value.length === 0 && A.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), g = computed(() => s.store.getVarSubmitConfig(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), p = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), k = computed(() => {
10770
- var L, G, Y;
10770
+ var R, x, z;
10771
10771
  switch (!0) {
10772
10772
  case s.isCreating.value:
10773
- return (L = v.value) != null ? L : [];
10773
+ return (R = v.value) != null ? R : [];
10774
10774
  case s.isUpdating.value:
10775
- return (G = p.value) != null ? G : [];
10775
+ return (x = p.value) != null ? x : [];
10776
10776
  case s.isCopying.value:
10777
- return (Y = b.value) != null ? Y : [];
10777
+ return (z = b.value) != null ? z : [];
10778
10778
  case s.isDeleting.value:
10779
10779
  return [];
10780
10780
  }
10781
10781
  return [];
10782
10782
  }), A = computed(() => {
10783
- var L, G, Y, J;
10783
+ var R, x, z, J;
10784
10784
  switch (!0) {
10785
10785
  case s.isCreating.value:
10786
- return (L = y.value) != null ? L : [];
10786
+ return (R = y.value) != null ? R : [];
10787
10787
  case s.isUpdating.value:
10788
- return (G = _.value) != null ? G : [];
10788
+ return (x = _.value) != null ? x : [];
10789
10789
  case s.isCopying.value:
10790
- return (Y = C.value) != null ? Y : [];
10790
+ return (z = C.value) != null ? z : [];
10791
10791
  case s.isDeleting.value:
10792
10792
  return (J = E.value) != null ? J : [];
10793
10793
  }
10794
10794
  return [];
10795
- }), T = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), D = computed(() => T.value || d.value), I = computed(() => d.value), w = ref({
10795
+ }), T = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), $ = computed(() => T.value || d.value), I = computed(() => d.value), w = ref({
10796
10796
  kgWidth: 0
10797
10797
  }), M = computed(() => {
10798
- var L;
10799
- return !!(u.value || F.isFullscreen || ((L = g.value) == null ? void 0 : L.resizable_flg) === 0);
10798
+ var R;
10799
+ return !!(u.value || F.isFullscreen || ((R = g.value) == null ? void 0 : R.resizable_flg) === 0);
10800
10800
  }), N = computed(() => {
10801
- var L, G;
10802
- return u.value ? 398 : (G = (L = g.value) == null ? void 0 : L.min_width) != null ? G : DEFAULT_MIN_WIDTH;
10803
- }), R = computed(() => {
10804
- var L, G;
10805
- return u.value ? 398 : (G = (L = g.value) == null ? void 0 : L.max_width) != null ? G : DEFAULT_MAX_WIDTH;
10806
- }), B = computed(() => u.value ? 398 : w.value.kgWidth), $ = ref(null);
10807
- _useResizeObserver$1($);
10808
- const V = _useTitle(), O = computed(() => u.value ? 400 : w.value.kgWidth && w.value.kgWidth > 0 ? "auto" : 0), U = computed(() => O.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), F = reactive({
10801
+ var R, x;
10802
+ return u.value ? 398 : (x = (R = g.value) == null ? void 0 : R.min_width) != null ? x : DEFAULT_MIN_WIDTH;
10803
+ }), P = computed(() => {
10804
+ var R, x;
10805
+ return u.value ? 398 : (x = (R = g.value) == null ? void 0 : R.max_width) != null ? x : DEFAULT_MAX_WIDTH;
10806
+ }), H = computed(() => u.value ? 398 : w.value.kgWidth), V = ref(null);
10807
+ _useResizeObserver$1(V);
10808
+ const O = _useTitle(), D = computed(() => u.value ? 400 : w.value.kgWidth && w.value.kgWidth > 0 ? "auto" : 0), U = computed(() => D.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), F = reactive({
10809
10809
  isFullscreen: !1
10810
10810
  }), {
10811
10811
  getClass: K
10812
10812
  } = _useClass(e, F), {
10813
- getLayout: x
10813
+ getLayout: B
10814
10814
  } = _useLayout(), {
10815
- getDefaultWidth: z
10816
- } = _useDefaultWidth(), Q = computed(() => {
10817
- var L, G, Y;
10818
- switch (x.value) {
10815
+ getDefaultWidth: W
10816
+ } = _useDefaultWidth(), X = computed(() => {
10817
+ var R, x, z;
10818
+ switch (B.value) {
10819
10819
  case "horizontal":
10820
- switch ((L = g.value) == null ? void 0 : L.label_col_unit) {
10820
+ switch ((R = g.value) == null ? void 0 : R.label_col_unit) {
10821
10821
  case KG_WIDTH_UNIT.SPAN:
10822
10822
  return {
10823
- span: (G = g.value) == null ? void 0 : G.label_col
10823
+ span: (x = g.value) == null ? void 0 : x.label_col
10824
10824
  };
10825
10825
  default:
10826
10826
  return {
10827
10827
  style: {
10828
- width: `${(Y = g.value) == null ? void 0 : Y.label_col}px`
10828
+ width: `${(z = g.value) == null ? void 0 : z.label_col}px`
10829
10829
  }
10830
10830
  };
10831
10831
  }
@@ -10833,13 +10833,13 @@ const getProps$p = () => ({
10833
10833
  return;
10834
10834
  }
10835
10835
  }), q = computed(() => {
10836
- var L, G;
10837
- switch (x.value) {
10836
+ var R, x;
10837
+ switch (B.value) {
10838
10838
  case "horizontal":
10839
- switch ((L = g.value) == null ? void 0 : L.label_col_unit) {
10839
+ switch ((R = g.value) == null ? void 0 : R.label_col_unit) {
10840
10840
  case KG_WIDTH_UNIT.SPAN:
10841
10841
  return {
10842
- span: 24 - ((G = g.value) == null ? void 0 : G.label_col)
10842
+ span: 24 - ((x = g.value) == null ? void 0 : x.label_col)
10843
10843
  };
10844
10844
  default:
10845
10845
  return;
@@ -10848,19 +10848,19 @@ const getProps$p = () => ({
10848
10848
  return;
10849
10849
  }
10850
10850
  });
10851
- watch(U, (L, G) => {
10852
- L === !0 && Z(), G === !0 && L === !1 && te();
10851
+ watch(U, (R, x) => {
10852
+ R === !0 && Z(), x === !0 && R === !1 && ee();
10853
10853
  }, {
10854
10854
  immediate: !0
10855
- }), watch(z, (L) => {
10856
- L && (w.value.kgWidth = L);
10855
+ }), watch(W, (R) => {
10856
+ R && (w.value.kgWidth = R);
10857
10857
  }, {
10858
10858
  immediate: !0
10859
10859
  });
10860
10860
  function Z() {
10861
- var G;
10862
- const L = watch(l.model, (Y) => {
10863
- Y && Object.keys(Y).length > 0 && (setTimeout(() => L()), l.store.emit(s.formID, "open", {
10861
+ var x;
10862
+ const R = watch(l.model, (z) => {
10863
+ z && Object.keys(z).length > 0 && (setTimeout(() => R()), l.store.emit(s.formID, "open", {
10864
10864
  isCreating: s.isCreating.value,
10865
10865
  isUpdating: s.isUpdating.value,
10866
10866
  isCopying: s.isCopying.value,
@@ -10871,12 +10871,12 @@ const getProps$p = () => ({
10871
10871
  }, {
10872
10872
  immediate: !0
10873
10873
  });
10874
- ((G = g.value) == null ? void 0 : G.dft_fullscreen_flg) === 1 && !u.value && (F.isFullscreen = !0);
10874
+ ((x = g.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && !u.value && (F.isFullscreen = !0);
10875
10875
  }
10876
- async function te() {
10877
- w.value.kgWidth = z.value, F.isFullscreen = !1, await l.store.emit(s.formID, "close", null);
10876
+ async function ee() {
10877
+ w.value.kgWidth = W.value, F.isFullscreen = !1, await l.store.emit(s.formID, "close", null);
10878
10878
  }
10879
- function oe() {
10879
+ function se() {
10880
10880
  switch (!0) {
10881
10881
  case s.isCreating.value:
10882
10882
  s.store.setIsCreating(s.formID, !1);
@@ -10892,8 +10892,8 @@ const getProps$p = () => ({
10892
10892
  break;
10893
10893
  }
10894
10894
  }
10895
- async function ie() {
10896
- var L, G;
10895
+ async function oe() {
10896
+ var R, x;
10897
10897
  try {
10898
10898
  if (await l.store.emit(s.formID, "beforeOk", {
10899
10899
  isCreating: s.isCreating.value,
@@ -10906,11 +10906,11 @@ const getProps$p = () => ({
10906
10906
  }))
10907
10907
  return;
10908
10908
  try {
10909
- await ((L = l.formRef.value) == null ? void 0 : L.validate());
10910
- } catch (ee) {
10911
- KgUtil.throwIfNotFormError(ee);
10909
+ await ((R = l.formRef.value) == null ? void 0 : R.validate());
10910
+ } catch (Q) {
10911
+ KgUtil.throwIfNotFormError(Q);
10912
10912
  }
10913
- if (await ((G = l.formRef.value) == null ? void 0 : G.validate()), await l.store.emit(s.formID, "afterValidate", {
10913
+ if (await ((x = l.formRef.value) == null ? void 0 : x.validate()), await l.store.emit(s.formID, "afterValidate", {
10914
10914
  isCreating: s.isCreating.value,
10915
10915
  isUpdating: s.isUpdating.value,
10916
10916
  isCopying: s.isCopying.value,
@@ -10922,7 +10922,7 @@ const getProps$p = () => ({
10922
10922
  return;
10923
10923
  switch (!0) {
10924
10924
  case s.isCreating.value:
10925
- await fe();
10925
+ await ge();
10926
10926
  break;
10927
10927
  case s.isUpdating.value:
10928
10928
  await ce();
@@ -10931,17 +10931,17 @@ const getProps$p = () => ({
10931
10931
  await ne();
10932
10932
  break;
10933
10933
  case s.isDeleting.value:
10934
- await ue();
10934
+ await le();
10935
10935
  break;
10936
10936
  }
10937
- } catch (Y) {
10938
- KgUtil.throwIfNotFormError(Y);
10937
+ } catch (z) {
10938
+ KgUtil.throwIfNotFormError(z);
10939
10939
  }
10940
10940
  }
10941
- async function fe() {
10942
- var G, Y, J, ee, ae, se;
10943
- const L = (G = s.varButtonCreate.value) == null ? void 0 : G.cmd;
10944
- if (!L) {
10941
+ async function ge() {
10942
+ var x, z, J, Q, te, ae;
10943
+ const R = (x = s.varButtonCreate.value) == null ? void 0 : x.cmd;
10944
+ if (!R) {
10945
10945
  KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10946
10946
  VarButton: s.varButtonCreate.value
10947
10947
  });
@@ -10949,7 +10949,7 @@ const getProps$p = () => ({
10949
10949
  }
10950
10950
  s.store.setIsCreatingRequesting(s.formID, !0);
10951
10951
  try {
10952
- let re = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (Y = s.varButtonCreate.value) == null ? void 0 : Y.cmd_prm) != null ? J : ""), s.formID, r)), le = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
10952
+ let re = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = s.varButtonCreate.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), s.formID, r)), ie = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
10953
10953
  if (await l.store.emit(s.formID, "beforeRequest", {
10954
10954
  isCreating: s.isCreating.value,
10955
10955
  isUpdating: s.isUpdating.value,
@@ -10959,15 +10959,15 @@ const getProps$p = () => ({
10959
10959
  rows: o.selectedRows.value,
10960
10960
  model: l.model,
10961
10961
  params: re,
10962
- data: le
10962
+ data: ie
10963
10963
  }))
10964
10964
  return;
10965
10965
  await httpClient().request({
10966
- method: (ae = (ee = s.varButtonCreate.value) == null ? void 0 : ee.cmd_method) != null ? ae : "POST",
10967
- url: L,
10966
+ method: (te = (Q = s.varButtonCreate.value) == null ? void 0 : Q.cmd_method) != null ? te : "POST",
10967
+ url: R,
10968
10968
  params: re.value,
10969
- data: le.value
10970
- }), ((se = s.varButtonCreate.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(V.title.value + n.t("kg.succeed")), await l.store.emit(s.formID, "ok", {
10969
+ data: ie.value
10970
+ }), ((ae = s.varButtonCreate.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(O.title.value + n.t("kg.succeed")), await l.store.emit(s.formID, "ok", {
10971
10971
  isCreating: s.isCreating.value,
10972
10972
  isUpdating: s.isUpdating.value,
10973
10973
  isCopying: s.isCopying.value,
@@ -10982,9 +10982,9 @@ const getProps$p = () => ({
10982
10982
  }
10983
10983
  }
10984
10984
  async function ce() {
10985
- var G, Y, J, ee, ae, se;
10986
- const L = (G = s.varButtonUpdate.value) == null ? void 0 : G.cmd;
10987
- if (!L) {
10985
+ var x, z, J, Q, te, ae;
10986
+ const R = (x = s.varButtonUpdate.value) == null ? void 0 : x.cmd;
10987
+ if (!R) {
10988
10988
  KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
10989
10989
  VarButton: s.varButtonUpdate.value
10990
10990
  });
@@ -10992,7 +10992,7 @@ const getProps$p = () => ({
10992
10992
  }
10993
10993
  try {
10994
10994
  s.store.setIsUpdatingRequesting(s.formID, !0);
10995
- let re = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (Y = s.varButtonUpdate.value) == null ? void 0 : Y.cmd_prm) != null ? J : ""), s.formID, r)), le = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
10995
+ let re = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = s.varButtonUpdate.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), s.formID, r)), ie = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
10996
10996
  if (await l.store.emit(s.formID, "beforeRequest", {
10997
10997
  isCreating: s.isCreating.value,
10998
10998
  isUpdating: s.isUpdating.value,
@@ -11002,15 +11002,15 @@ const getProps$p = () => ({
11002
11002
  rows: o.selectedRows.value,
11003
11003
  model: l.model,
11004
11004
  params: re,
11005
- data: le
11005
+ data: ie
11006
11006
  }))
11007
11007
  return;
11008
11008
  await httpClient().request({
11009
- method: (ae = (ee = s.varButtonUpdate.value) == null ? void 0 : ee.cmd_method) != null ? ae : "POST",
11010
- url: L,
11009
+ method: (te = (Q = s.varButtonUpdate.value) == null ? void 0 : Q.cmd_method) != null ? te : "POST",
11010
+ url: R,
11011
11011
  params: re.value,
11012
- data: le.value
11013
- }), ((se = s.varButtonUpdate.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await l.store.emit(s.formID, "ok", {
11012
+ data: ie.value
11013
+ }), ((ae = s.varButtonUpdate.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await l.store.emit(s.formID, "ok", {
11014
11014
  isCreating: s.isCreating.value,
11015
11015
  isUpdating: s.isUpdating.value,
11016
11016
  isCopying: s.isCopying.value,
@@ -11025,9 +11025,9 @@ const getProps$p = () => ({
11025
11025
  }
11026
11026
  }
11027
11027
  async function ne() {
11028
- var G, Y, J, ee, ae, se, re, le;
11029
- const L = (G = s.varButtonCopy.value) == null ? void 0 : G.cmd;
11030
- if (!L) {
11028
+ var x, z, J, Q, te, ae, re, ie;
11029
+ const R = (x = s.varButtonCopy.value) == null ? void 0 : x.cmd;
11030
+ if (!R) {
11031
11031
  KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
11032
11032
  VarButton: s.varButtonCopy.value
11033
11033
  });
@@ -11035,11 +11035,11 @@ const getProps$p = () => ({
11035
11035
  }
11036
11036
  try {
11037
11037
  s.store.setIsCopyingRequesting(s.formID, !0);
11038
- let ge = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (Y = s.varButtonCopy.value) == null ? void 0 : Y.cmd_prm) != null ? J : ""), s.formID, r)), pe = ref(KgUtil.parseParams({
11039
- ...(ee = o.selectedFirstRow.value) != null ? ee : {},
11038
+ let ue = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = s.varButtonCopy.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), s.formID, r)), pe = ref(KgUtil.parseParams({
11039
+ ...(Q = o.selectedFirstRow.value) != null ? Q : {},
11040
11040
  ...toRaw(l.model.value)
11041
11041
  }, s.formID, r));
11042
- if (((ae = g.value) == null ? void 0 : ae.cpy_clear_id_flg) !== 0 && delete pe.value.id, await l.store.emit(s.formID, "beforeRequest", {
11042
+ if (((te = g.value) == null ? void 0 : te.cpy_clear_id_flg) !== 0 && delete pe.value.id, await l.store.emit(s.formID, "beforeRequest", {
11043
11043
  isCreating: s.isCreating.value,
11044
11044
  isUpdating: s.isUpdating.value,
11045
11045
  isCopying: s.isCopying.value,
@@ -11047,16 +11047,16 @@ const getProps$p = () => ({
11047
11047
  row: o.selectedRow.value,
11048
11048
  rows: o.selectedRows.value,
11049
11049
  model: l.model,
11050
- params: ge,
11050
+ params: ue,
11051
11051
  data: pe
11052
11052
  }))
11053
11053
  return;
11054
11054
  await httpClient().request({
11055
- method: (re = (se = s.varButtonCopy.value) == null ? void 0 : se.cmd_method) != null ? re : "POST",
11056
- url: L,
11057
- params: ge.value,
11055
+ method: (re = (ae = s.varButtonCopy.value) == null ? void 0 : ae.cmd_method) != null ? re : "POST",
11056
+ url: R,
11057
+ params: ue.value,
11058
11058
  data: pe.value
11059
- }), ((le = s.varButtonCopy.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), await l.store.emit(s.formID, "ok", {
11059
+ }), ((ie = s.varButtonCopy.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), await l.store.emit(s.formID, "ok", {
11060
11060
  isCreating: s.isCreating.value,
11061
11061
  isUpdating: s.isUpdating.value,
11062
11062
  isCopying: s.isCopying.value,
@@ -11064,16 +11064,16 @@ const getProps$p = () => ({
11064
11064
  row: o.selectedFirstRow.value,
11065
11065
  model: l.model
11066
11066
  }), s.store.setIsCopying(s.formID, !1), c.search(!0);
11067
- } catch (ge) {
11068
- console.error(ge), l.store.emit(s.formID, "error", ge);
11067
+ } catch (ue) {
11068
+ console.error(ue), l.store.emit(s.formID, "error", ue);
11069
11069
  } finally {
11070
11070
  s.store.setIsCopyingRequesting(s.formID, !1);
11071
11071
  }
11072
11072
  }
11073
- async function ue() {
11074
- var G, Y, J, ee, ae, se;
11075
- const L = (G = s.varButtonDelete.value) == null ? void 0 : G.cmd;
11076
- if (!L) {
11073
+ async function le() {
11074
+ var x, z, J, Q, te, ae, re, ie, ue, pe;
11075
+ const R = (x = s.varButtonDelete.value) == null ? void 0 : x.cmd;
11076
+ if (!R) {
11077
11077
  KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
11078
11078
  VarButton: s.varButtonDelete.value
11079
11079
  });
@@ -11081,13 +11081,13 @@ const getProps$p = () => ({
11081
11081
  }
11082
11082
  try {
11083
11083
  s.store.setIsDeletingRequesting(s.formID, !0);
11084
- let re = ref({
11085
- ids: (J = (Y = o.selectedRows.value) == null ? void 0 : Y.map((pe) => {
11086
- var me, _e, he;
11087
- return (he = pe[(_e = (me = s.varButtonDelete.value) == null ? void 0 : me.del_param_clm) != null ? _e : "id"]) != null ? he : "";
11088
- })) != null ? J : []
11089
- }), le = ref({});
11090
- if (await l.store.emit(s.formID, "beforeRequest", {
11084
+ let me = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = s.varButtonDelete.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), s.formID, r)), _e = ref((Q = o.selectedRows.value) != null ? Q : []);
11085
+ if (((te = s.varButtonDelete.value) == null ? void 0 : te.del_param_clm) !== "__kg__new_delete_param" && (me = ref({
11086
+ ids: (re = (ae = o.selectedRows.value) == null ? void 0 : ae.map((ye) => {
11087
+ var he, ve, be;
11088
+ return (be = ye[(ve = (he = s.varButtonDelete.value) == null ? void 0 : he.del_param_clm) != null ? ve : "id"]) != null ? be : "";
11089
+ })) != null ? re : []
11090
+ }), _e = ref({})), await l.store.emit(s.formID, "beforeRequest", {
11091
11091
  isCreating: s.isCreating.value,
11092
11092
  isUpdating: s.isUpdating.value,
11093
11093
  isCopying: s.isCopying.value,
@@ -11095,18 +11095,21 @@ const getProps$p = () => ({
11095
11095
  row: o.selectedFirstRow.value,
11096
11096
  rows: o.selectedRows.value,
11097
11097
  model: l.model,
11098
- params: re,
11099
- data: le
11098
+ params: me,
11099
+ data: _e
11100
11100
  }))
11101
11101
  return;
11102
11102
  await httpClient().request({
11103
- method: (ae = (ee = s.varButtonDelete.value) == null ? void 0 : ee.cmd_method) != null ? ae : "DELETE",
11104
- url: L,
11105
- params: re.value,
11106
- data: le.value
11103
+ method: (ue = (ie = s.varButtonDelete.value) == null ? void 0 : ie.cmd_method) != null ? ue : "DELETE",
11104
+ url: R,
11105
+ params: me.value,
11106
+ data: _e.value
11107
11107
  }, {
11108
11108
  joinParamsToUrl: !0
11109
- }), ((se = s.varButtonDelete.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), await l.store.emit(s.formID, "ok", {
11109
+ }), ((pe = s.varButtonDelete.value) == null ? void 0 : pe.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), await i.store.emit(s.formID, "deleteOk", {
11110
+ button: s.varButtonDelete.value,
11111
+ rows: o.selectedRows.value
11112
+ }), await l.store.emit(s.formID, "ok", {
11110
11113
  isCreating: s.isCreating.value,
11111
11114
  isUpdating: s.isUpdating.value,
11112
11115
  isCopying: s.isCopying.value,
@@ -11114,54 +11117,54 @@ const getProps$p = () => ({
11114
11117
  row: o.selectedFirstRow.value,
11115
11118
  model: l.model
11116
11119
  }), s.store.setIsDeleting(s.formID, !1), c.search(!0);
11117
- } catch (re) {
11118
- console.error(re), l.store.emit(s.formID, "error", re);
11120
+ } catch (me) {
11121
+ console.error(me), l.store.emit(s.formID, "error", me);
11119
11122
  } finally {
11120
11123
  s.store.setIsDeletingRequesting(s.formID, !1);
11121
11124
  }
11122
11125
  }
11123
- function de(L) {
11124
- var Y, J;
11125
- const G = (J = (Y = a == null ? void 0 : a.KgSubmit) == null ? void 0 : Y["KgForm.Item"]) == null ? void 0 : J[L.var_nam];
11126
- return isFunction$2(G) ? createVNode(KgForm.Item, {
11127
- kgVarName: L.var_nam,
11126
+ function de(R) {
11127
+ var z, J;
11128
+ const x = (J = (z = a == null ? void 0 : a.KgSubmit) == null ? void 0 : z["KgForm.Item"]) == null ? void 0 : J[R.var_nam];
11129
+ return isFunction$2(x) ? createVNode(KgForm.Item, {
11130
+ kgVarName: R.var_nam,
11128
11131
  kgContext: KG_FORM_CONTEXT.SUBMIT,
11129
- kgRules: l.rules.value[L.var_nam],
11130
- onKgSubmit: ie
11132
+ kgRules: l.rules.value[R.var_nam],
11133
+ onKgSubmit: oe
11131
11134
  }, {
11132
11135
  control: ({
11133
- frm_id: ee,
11134
- varName: ae,
11135
- props: se,
11136
+ frm_id: Q,
11137
+ varName: te,
11138
+ props: ae,
11136
11139
  model: re,
11137
- varVariableConfig: le,
11138
- varProfileDetail: ge,
11140
+ varVariableConfig: ie,
11141
+ varProfileDetail: ue,
11139
11142
  varSubmitField: pe
11140
- }) => G({
11141
- frm_id: ee,
11142
- varName: ae,
11143
- props: se,
11143
+ }) => x({
11144
+ frm_id: Q,
11145
+ varName: te,
11146
+ props: ae,
11144
11147
  model: re,
11145
- varVariableConfig: le,
11146
- varProfileDetail: ge,
11148
+ varVariableConfig: ie,
11149
+ varProfileDetail: ue,
11147
11150
  varSubmitField: pe
11148
11151
  })
11149
11152
  }) : createVNode(KgForm.Item, {
11150
- kgVarName: L.var_nam,
11153
+ kgVarName: R.var_nam,
11151
11154
  kgContext: KG_FORM_CONTEXT.SUBMIT,
11152
- kgRules: l.rules.value[L.var_nam],
11153
- onKgSubmit: ie
11155
+ kgRules: l.rules.value[R.var_nam],
11156
+ onKgSubmit: oe
11154
11157
  }, null);
11155
11158
  }
11156
- function P() {
11157
- let L, G;
11159
+ function fe() {
11160
+ let R, x;
11158
11161
  return createVNode(KgResizable, {
11159
11162
  kgType: l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
11160
11163
  kgMinWidth: N.value,
11161
- kgMaxWidth: R.value,
11162
- kgWidth: B.value,
11164
+ kgMaxWidth: P.value,
11165
+ kgWidth: H.value,
11163
11166
  kgDisabled: M.value,
11164
- "onUpdate:kgWidth": (Y) => w.value.kgWidth = Y
11167
+ "onUpdate:kgWidth": (z) => w.value.kgWidth = z
11165
11168
  }, {
11166
11169
  default: () => [createVNode(Spin, {
11167
11170
  spinning: d.value
@@ -11169,20 +11172,20 @@ const getProps$p = () => ({
11169
11172
  default: () => [createVNode(KgForm, {
11170
11173
  ref: l.formRef,
11171
11174
  model: l.model.value,
11172
- layout: x.value,
11173
- labelCol: Q.value,
11175
+ layout: B.value,
11176
+ labelCol: X.value,
11174
11177
  wrapperCol: q.value
11175
11178
  }, {
11176
11179
  default: () => [createVNode("div", {
11177
- ref: $
11180
+ ref: V
11178
11181
  }, [k.value.length > 0 && createVNode(Row, {
11179
11182
  gutter: 12
11180
- }, _isSlot$8(L = k.value.map(de)) ? L : {
11181
- default: () => [L]
11183
+ }, _isSlot$8(R = k.value.map(de)) ? R : {
11184
+ default: () => [R]
11182
11185
  }), k.value.length > 0 && A.value.length > 0 && createVNode(Divider, null, null), A.value.length > 0 && createVNode(Row, {
11183
11186
  gutter: 12
11184
- }, _isSlot$8(G = A.value.map(de)) ? G : {
11185
- default: () => [G]
11187
+ }, _isSlot$8(x = A.value.map(de)) ? x : {
11188
+ default: () => [x]
11186
11189
  }), u.value && createVNode("div", {
11187
11190
  style: "text-align: center; padding: 6px 0 12px;"
11188
11191
  }, [n.t("kg.confirmDelete")])])]
@@ -11190,37 +11193,37 @@ const getProps$p = () => ({
11190
11193
  })]
11191
11194
  });
11192
11195
  }
11193
- function H() {
11194
- let L, G;
11196
+ function L() {
11197
+ let R, x;
11195
11198
  return createVNode("div", null, [createVNode(Button, {
11196
11199
  type: "primary",
11197
- ghost: !D.value,
11198
- disabled: D.value,
11199
- onClick: oe
11200
- }, _isSlot$8(L = n.t("kg.cancel")) ? L : {
11201
- default: () => [L]
11200
+ ghost: !$.value,
11201
+ disabled: $.value,
11202
+ onClick: se
11203
+ }, _isSlot$8(R = n.t("kg.cancel")) ? R : {
11204
+ default: () => [R]
11202
11205
  }), createVNode(Button, {
11203
11206
  type: "primary",
11204
11207
  disabled: I.value,
11205
11208
  loading: T.value,
11206
11209
  danger: !!s.isDeleting.value,
11207
- onClick: ie
11208
- }, _isSlot$8(G = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? G : {
11209
- default: () => [G]
11210
+ onClick: oe
11211
+ }, _isSlot$8(x = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? x : {
11212
+ default: () => [x]
11210
11213
  })]);
11211
11214
  }
11212
- function X() {
11215
+ function G() {
11213
11216
  return createVNode("div", {
11214
- title: V.title.value
11215
- }, [V.title.value]);
11217
+ title: O.title.value
11218
+ }, [O.title.value]);
11216
11219
  }
11217
- function W() {
11220
+ function Y() {
11218
11221
  return createVNode(KgSubmitHeader, {
11219
11222
  isFullscreen: F.isFullscreen,
11220
- "onUpdate:isFullscreen": (L) => F.isFullscreen = L,
11223
+ "onUpdate:isFullscreen": (R) => F.isFullscreen = R,
11221
11224
  kgShowFullscreenButton: !u.value,
11222
11225
  kgShowConfigButton: !u.value && e.kgShowConfigButton,
11223
- onKgCancel: oe
11226
+ onKgCancel: se
11224
11227
  }, null);
11225
11228
  }
11226
11229
  return onUnmounted(() => {
@@ -11232,14 +11235,14 @@ const getProps$p = () => ({
11232
11235
  maskClosable: !1,
11233
11236
  keyboard: !1,
11234
11237
  destroyOnClose: !0,
11235
- width: O.value,
11238
+ width: D.value,
11236
11239
  class: K.value,
11237
11240
  "kg-frm_id": s.formID
11238
11241
  }, {
11239
- title: X,
11240
- extra: W,
11241
- default: P,
11242
- footer: H
11242
+ title: G,
11243
+ extra: Y,
11244
+ default: fe,
11245
+ footer: L
11243
11246
  });
11244
11247
  }
11245
11248
  }), KgYesOrNo$1 = "", getProps$o = () => ({
@@ -11555,8 +11558,8 @@ const getProps$n = () => ({
11555
11558
  return !1;
11556
11559
  });
11557
11560
  const l = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
11558
- var k, A, T, D, I, w;
11559
- return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((T = c.value) == null ? void 0 : T.crt_flg) === 1 || !!n.isUpdating.value && ((D = c.value) == null ? void 0 : D.upt_flg) === 1 || !!n.isCopying.value && ((I = c.value) == null ? void 0 : I.cpy_flg) === 1 || !!n.isDeleting.value && ((w = c.value) == null ? void 0 : w.del_flg) === 1);
11561
+ var k, A, T, $, I, w;
11562
+ return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((T = c.value) == null ? void 0 : T.crt_flg) === 1 || !!n.isUpdating.value && (($ = c.value) == null ? void 0 : $.upt_flg) === 1 || !!n.isCopying.value && ((I = c.value) == null ? void 0 : I.cpy_flg) === 1 || !!n.isDeleting.value && ((w = c.value) == null ? void 0 : w.del_flg) === 1);
11560
11563
  }), d = computed(() => {
11561
11564
  var k, A;
11562
11565
  return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.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);
@@ -11565,7 +11568,7 @@ const getProps$n = () => ({
11565
11568
  let k = "kg-table-td";
11566
11569
  return ((A = l.value) == null ? void 0 : A.align) === "center" ? k += " kg-table-td--center" : ((T = l.value) == null ? void 0 : T.align) === "right" && (k += " kg-table-td--right"), u.value && (k += " kg-table-td--submitting"), k;
11567
11570
  }), v = computed(() => {
11568
- var A, T, D, I, w;
11571
+ var A, T, $, I, w;
11569
11572
  if (e.kgValue === KG_TABLE_TEMP_ID)
11570
11573
  return "";
11571
11574
  let k = e.kgValue;
@@ -11573,7 +11576,7 @@ const getProps$n = () => ({
11573
11576
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
11574
11577
  {
11575
11578
  const M = KgUtil.tryParseJSON((T = l.value) == null ? void 0 : T.display_type_properties);
11576
- M.dscFieldName ? k = ((D = e.kgRow) == null ? void 0 : D[M.dscFieldName]) || e.kgValue : k = ((I = e.kgRow) == null ? void 0 : I[`${e.kgVarName}_dsc`]) || ((w = e.kgRow) == null ? void 0 : w[`${e.kgVarName}Dsc`]) || e.kgValue;
11579
+ M.dscFieldName ? k = (($ = e.kgRow) == null ? void 0 : $[M.dscFieldName]) || e.kgValue : k = ((I = e.kgRow) == null ? void 0 : I[`${e.kgVarName}_dsc`]) || ((w = e.kgRow) == null ? void 0 : w[`${e.kgVarName}Dsc`]) || e.kgValue;
11577
11580
  }
11578
11581
  break;
11579
11582
  }
@@ -11581,7 +11584,7 @@ const getProps$n = () => ({
11581
11584
  `)), k;
11582
11585
  }), y = ref(null);
11583
11586
  function p(k) {
11584
- var A, T, D;
11587
+ var A, T, $;
11585
11588
  if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
11586
11589
  switch ((A = l.value) == null ? void 0 : A.display_type) {
11587
11590
  case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
@@ -11591,7 +11594,7 @@ const getProps$n = () => ({
11591
11594
  {
11592
11595
  k.stopPropagation(), k.preventDefault();
11593
11596
  const I = KgUtil.tryParseJSON((T = l.value) == null ? void 0 : T.display_type_properties);
11594
- (D = a.router.value) == null || D.push({
11597
+ ($ = a.router.value) == null || $.push({
11595
11598
  path: I.path,
11596
11599
  query: e.kgRow
11597
11600
  });
@@ -11623,35 +11626,35 @@ const getProps$n = () => ({
11623
11626
  });
11624
11627
  }
11625
11628
  function C() {
11626
- var k, A, T, D, I, w, M, N, R, B;
11629
+ var k, A, T, $, I, w, M, N, P, H;
11627
11630
  if (u.value)
11628
11631
  return b();
11629
11632
  switch ((k = l.value) == null ? void 0 : k.display_type) {
11630
11633
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
11631
- const $ = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
11634
+ const V = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
11632
11635
  return createVNode(KgYesOrNo, {
11633
- kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((T = $.yValue) != null ? T : 1),
11634
- kgNilAsFalse: $.nilAsFalse
11636
+ kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((T = V.yValue) != null ? T : 1),
11637
+ kgNilAsFalse: V.nilAsFalse
11635
11638
  }, null);
11636
11639
  }
11637
11640
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
11638
- const $ = KgUtil.tryParseJSON((D = l.value) == null ? void 0 : D.display_type_properties), V = isArrayLike($) && $.find((O) => O.value === e.kgValue);
11639
- if (V) {
11640
- const O = n.t(V.varName).value;
11641
- return O ? createVNode(Tag, {
11642
- color: (I = V.color) != null ? I : "default"
11643
- }, _isSlot$7(O) ? O : {
11644
- default: () => [O]
11641
+ const V = KgUtil.tryParseJSON(($ = l.value) == null ? void 0 : $.display_type_properties), O = isArrayLike(V) && V.find((D) => D.value === e.kgValue);
11642
+ if (O) {
11643
+ const D = n.t(O.varName).value;
11644
+ return D ? createVNode(Tag, {
11645
+ color: (I = O.color) != null ? I : "default"
11646
+ }, _isSlot$7(D) ? D : {
11647
+ default: () => [D]
11645
11648
  }) : E();
11646
11649
  } else
11647
11650
  return E();
11648
11651
  }
11649
11652
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
11650
- const $ = KgUtil.tryParseJSON((w = l.value) == null ? void 0 : w.display_type_properties);
11651
- if ($.isTag && isArrayLike($.tagColors)) {
11652
- const V = $.tagColors.find((O) => O.value === e.kgValue);
11653
+ const V = KgUtil.tryParseJSON((w = l.value) == null ? void 0 : w.display_type_properties);
11654
+ if (V.isTag && isArrayLike(V.tagColors)) {
11655
+ const O = V.tagColors.find((D) => D.value === e.kgValue);
11653
11656
  return v.value ? createVNode(Tag, {
11654
- color: (M = V == null ? void 0 : V.color) != null ? M : "default"
11657
+ color: (M = O == null ? void 0 : O.color) != null ? M : "default"
11655
11658
  }, {
11656
11659
  default: () => [v.value]
11657
11660
  }) : E();
@@ -11659,11 +11662,11 @@ const getProps$n = () => ({
11659
11662
  return E();
11660
11663
  }
11661
11664
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
11662
- const $ = KgUtil.tryParseJSON((N = l.value) == null ? void 0 : N.display_type_properties);
11665
+ const V = KgUtil.tryParseJSON((N = l.value) == null ? void 0 : N.display_type_properties);
11663
11666
  return createVNode(KgProgressA, {
11664
- kgTextWidth: $.textWidth,
11665
- kgLeft: (R = e.kgRow) == null ? void 0 : R[$.leftColumn],
11666
- kgRight: (B = e.kgRow) == null ? void 0 : B[$.rightColumn]
11667
+ kgTextWidth: V.textWidth,
11668
+ kgLeft: (P = e.kgRow) == null ? void 0 : P[V.leftColumn],
11669
+ kgRight: (H = e.kgRow) == null ? void 0 : H[V.rightColumn]
11667
11670
  }, null);
11668
11671
  }
11669
11672
  case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
@@ -11859,10 +11862,7 @@ const getProps$m = () => ({
11859
11862
  }) => !1), i.onOk(async () => (r.store.retrieve(r.formID), !1)), i.onBeforeRequest(async ({
11860
11863
  params: c,
11861
11864
  data: u
11862
- }) => {
11863
- const d = o.selectedRows.value;
11864
- return c.value = {}, u.value = d, !1;
11865
- }), s.onUpdateBeforeClick(async ({
11865
+ }) => !1), s.onUpdateBeforeClick(async ({
11866
11866
  row: c
11867
11867
  }) => !1);
11868
11868
  const l = computed(() => {
@@ -11992,17 +11992,15 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
11992
11992
  emit: r
11993
11993
  }) {
11994
11994
  KgUtil.showLoading();
11995
- const a = inject(KG_DI_FORM_ID, null), n = useKgVar(a);
11996
- useKgVar(FORM_ID__VAR_GRID_MASTER__SAVE, !0, n.store.getFormLevel(n.formID) + 1);
11997
- const s = useKgSubmit(FORM_ID__VAR_GRID_MASTER__SAVE);
11998
- return s.onOpen(async ({
11999
- model: i
11995
+ const a = inject(KG_DI_FORM_ID, null), n = useKgVar(a), s = useKgVar(FORM_ID__VAR_GRID_MASTER__SAVE, !0, n.store.getFormLevel(n.formID) + 1), i = useKgSubmit(s.formID);
11996
+ return i.onOpen(async ({
11997
+ model: o
12000
11998
  }) => {
12001
- var o, l, c, u, d, g, v, y, p, _;
12002
- return i.value.grd_var_nam = `${(l = (o = n.currentVarGridMaster.value) == null ? void 0 : o.grd_var_nam) != null ? l : ""}_COPY`, i.value.frm_id = (u = (c = n.currentVarGridMaster.value) == null ? void 0 : c.frm_id) != null ? u : "", i.value.usr_id = (g = (d = n.currentVarGridMaster.value) == null ? void 0 : d.usr_id) != null ? g : "", i.value.grp_nam = (y = (v = n.currentVarGridMaster.value) == null ? void 0 : v.grp_nam) != null ? y : "", i.value.varGridDetails = (_ = (p = n.currentVarGridMaster.value) == null ? void 0 : p.varGridDetails) != null ? _ : [], KgUtil.hideLoading(), !1;
12003
- }), s.onBeforeOk(async ({
12004
- model: i
12005
- }) => (i.value, !1)), s.onOk(async () => (n.store.retrieve(n.formID), !1)), () => createVNode(KgSubmit, null, null);
11999
+ var l, c, u, d, g, v, y, p, _, b;
12000
+ return o.value.grd_var_nam = `${(c = (l = n.currentVarGridMaster.value) == null ? void 0 : l.grd_var_nam) != null ? c : ""}_COPY`, o.value.frm_id = (d = (u = n.currentVarGridMaster.value) == null ? void 0 : u.frm_id) != null ? d : "", o.value.usr_id = (v = (g = n.currentVarGridMaster.value) == null ? void 0 : g.usr_id) != null ? v : "", o.value.grp_nam = (p = (y = n.currentVarGridMaster.value) == null ? void 0 : y.grp_nam) != null ? p : "", o.value.varGridDetails = (b = (_ = n.currentVarGridMaster.value) == null ? void 0 : _.varGridDetails) != null ? b : [], KgUtil.hideLoading(), !1;
12001
+ }), i.onBeforeOk(async ({
12002
+ model: o
12003
+ }) => (o.value, !1)), i.onOk(async () => (n.store.retrieve(n.formID), !1)), () => createVNode(KgSubmit, null, null);
12006
12004
  }
12007
12005
  });
12008
12006
  function _isSlot$5(e) {
@@ -12109,10 +12107,10 @@ const getProps$h = () => ({
12109
12107
  var A;
12110
12108
  let E, k;
12111
12109
  return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((T) => {
12112
- var D;
12110
+ var $;
12113
12111
  return createVNode(Menu.Item, {
12114
12112
  key: T.id,
12115
- class: T.id === ((D = n.currentVarGridMaster.value) == null ? void 0 : D.id) ? "selected" : "",
12113
+ class: T.id === (($ = n.currentVarGridMaster.value) == null ? void 0 : $.id) ? "selected" : "",
12116
12114
  "kg-var_nam": T.grd_var_nam,
12117
12115
  onClick: () => n.store.setCurrentVarGridMasterID(n.formID, T.id)
12118
12116
  }, {
@@ -12651,12 +12649,12 @@ function _useColumns(e) {
12651
12649
  function T() {
12652
12650
  return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
12653
12651
  }
12654
- const D = b();
12652
+ const $ = b();
12655
12653
  return {
12656
12654
  dataIndex: _,
12657
12655
  title: C(),
12658
- width: D,
12659
- resizable: typeof D == "number",
12656
+ width: $,
12657
+ resizable: typeof $ == "number",
12660
12658
  minWidth: KG_TABLE_TD_MIN_WIDTH,
12661
12659
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
12662
12660
  fixed: k(),
@@ -12779,6 +12777,7 @@ const KgTable$1 = "", getProps$g = () => ({
12779
12777
  type: Boolean,
12780
12778
  default: void 0
12781
12779
  },
12780
+ kgCheckboxDisabled: Function,
12782
12781
  kgRowClassName: Function
12783
12782
  }), KgTable = defineComponent({
12784
12783
  name: "KgTable",
@@ -12787,30 +12786,30 @@ const KgTable$1 = "", getProps$g = () => ({
12787
12786
  slots: t,
12788
12787
  emit: r
12789
12788
  }) {
12790
- var de;
12789
+ var fe;
12791
12790
  const a = inject("$dayjs", dayjs), n = inject(DI_KG_VAR__KG_SLOTS, null), s = inject(DI_KG_VAR__KG_PROPS, null), i = useKg(), o = useKgVar(), l = useKgSearch(), c = useKgButton(), u = useKgTable(), d = useKgSubmit();
12792
12791
  l.onSearch(async ({
12793
- resetPageIndex: P
12794
- }) => (x(P), !1)), l.onReset(async () => (x(!0), !1)), u.store.$onAction(async ({
12795
- name: P,
12796
- args: H
12792
+ resetPageIndex: L
12793
+ }) => (W(L), !1)), l.onReset(async () => (W(!0), !1)), u.store.$onAction(async ({
12794
+ name: L,
12795
+ args: G
12797
12796
  }) => {
12798
- switch (P) {
12797
+ switch (L) {
12799
12798
  case "setRowSelect":
12800
- if (H[0] === o.formID) {
12801
- const X = H[1], W = H[2], L = X[u.id.value];
12799
+ if (G[0] === o.formID) {
12800
+ const Y = G[1], R = G[2], x = Y[u.id.value];
12802
12801
  switch (!0) {
12803
- case (W && !B.value.includes(L)):
12804
- z([...B.value, L]);
12802
+ case (R && !V.value.includes(x)):
12803
+ X([...V.value, x]);
12805
12804
  break;
12806
- case (!W && B.value.includes(L)):
12807
- z(without$1(B.value, L));
12805
+ case (!R && V.value.includes(x)):
12806
+ X(without$1(V.value, x));
12808
12807
  break;
12809
12808
  }
12810
12809
  }
12811
12810
  break;
12812
12811
  case "clearDatas":
12813
- H[0] === o.formID && (u.store.setDatas(o.formID, []), $.total = 0, K(), v.value = []);
12812
+ G[0] === o.formID && (u.store.setDatas(o.formID, []), O.total = 0, B(), v.value = []);
12814
12813
  break;
12815
12814
  }
12816
12815
  });
@@ -12822,277 +12821,286 @@ const KgTable$1 = "", getProps$g = () => ({
12822
12821
  } = _useLoading(), b = ref(null);
12823
12822
  _useResizeObserver(b), _useDragColumn(b, y);
12824
12823
  const C = computed(() => {
12825
- var P, H;
12826
- return (H = (P = o.varButtonSearch.value) == null ? void 0 : P.cmd) != null ? H : null;
12824
+ var L, G;
12825
+ return (G = (L = o.varButtonSearch.value) == null ? void 0 : L.cmd) != null ? G : null;
12827
12826
  }), E = computed(() => {
12828
- var H, X, W, L, G, Y, J;
12829
- let P = {
12830
- pageNo: $.pageIndex,
12831
- pageSize: $.pageSize,
12832
- ...V,
12833
- ...(X = (H = l.model) == null ? void 0 : H.value) != null ? X : {}
12827
+ var G, Y, R, x, z, J, Q;
12828
+ let L = {
12829
+ pageNo: O.pageIndex,
12830
+ pageSize: O.pageSize,
12831
+ ...D,
12832
+ ...(Y = (G = l.model) == null ? void 0 : G.value) != null ? Y : {}
12834
12833
  };
12835
- return o.varButtonSearch.value && (P = {
12836
- ...P,
12837
- ...KgVarUtil.parseCommandParameter((L = (W = o.varButtonSearch.value) == null ? void 0 : W.cmd_prm) != null ? L : "")
12838
- }), (G = o.varGridConfig.value) != null && G.cmd_prm && (P = {
12839
- ...P,
12840
- ...KgVarUtil.parseCommandParameter((Y = o.varGridConfig.value.cmd_prm) != null ? Y : "")
12841
- }), ((J = o.varGridConfig.value) == null ? void 0 : J.convert_sort_field_to_under_score_flg) === 1 && P.column && (P.column = snakeCase$1(P.column)), P;
12834
+ return o.varButtonSearch.value && (L = {
12835
+ ...L,
12836
+ ...KgVarUtil.parseCommandParameter((x = (R = o.varButtonSearch.value) == null ? void 0 : R.cmd_prm) != null ? x : "")
12837
+ }), (z = o.varGridConfig.value) != null && z.cmd_prm && (L = {
12838
+ ...L,
12839
+ ...KgVarUtil.parseCommandParameter((J = o.varGridConfig.value.cmd_prm) != null ? J : "")
12840
+ }), ((Q = o.varGridConfig.value) == null ? void 0 : Q.convert_sort_field_to_under_score_flg) === 1 && L.column && (L.column = snakeCase$1(L.column)), L;
12842
12841
  }), k = computed(() => {
12843
- var P, H, X, W;
12844
- if (!isNil((H = (P = s == null ? void 0 : s.value) == null ? void 0 : P.KgTable) == null ? void 0 : H.kgDisabled))
12845
- return (W = (X = s == null ? void 0 : s.value) == null ? void 0 : X.KgTable) == null ? void 0 : W.kgDisabled;
12842
+ var L, G, Y, R;
12843
+ if (!isNil((G = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : G.kgDisabled))
12844
+ return (R = (Y = s == null ? void 0 : s.value) == null ? void 0 : Y.KgTable) == null ? void 0 : R.kgDisabled;
12846
12845
  if (!isNil(e.kgDisabled))
12847
12846
  return e.kgDisabled;
12848
- }), A = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), T = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || $.total === 0), D = computed(() => {
12849
- var P;
12850
- return !!((P = n == null ? void 0 : n.KgTable) != null && P.expandedRowRender);
12851
- }), I = computed(() => {
12852
- var P;
12853
- return ((P = o.varGridConfig.value) == null ? void 0 : P.show_check_column_flg) === 1;
12847
+ }), A = computed(() => {
12848
+ var L, G, Y, R;
12849
+ if (!isNil((G = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : G.kgCheckboxDisabled))
12850
+ return (R = (Y = s == null ? void 0 : s.value) == null ? void 0 : Y.KgTable) == null ? void 0 : R.kgCheckboxDisabled;
12851
+ if (!isNil(e.kgCheckboxDisabled))
12852
+ return e.kgCheckboxDisabled;
12853
+ }), T = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), $ = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || O.total === 0), I = computed(() => {
12854
+ var L;
12855
+ return !!((L = n == null ? void 0 : n.KgTable) != null && L.expandedRowRender);
12854
12856
  }), w = computed(() => {
12855
- if (!!I.value)
12857
+ var L;
12858
+ return ((L = o.varGridConfig.value) == null ? void 0 : L.show_check_column_flg) === 1;
12859
+ }), M = computed(() => {
12860
+ if (!!w.value)
12856
12861
  return {
12857
12862
  fixed: "left",
12858
12863
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
12859
12864
  hideSelectAll: !u.isMultiSelect.value,
12860
- selectedRowKeys: B,
12865
+ selectedRowKeys: V,
12861
12866
  preserveSelectedRowKeys: !1,
12862
- getCheckboxProps: (P) => ({
12863
- disabled: !!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value
12864
- }),
12865
- onSelect: (P) => Q(P),
12866
- onChange: (P) => u.isMultiSelect.value && z(P)
12867
+ getCheckboxProps: (L) => {
12868
+ var G;
12869
+ return {
12870
+ disabled: !!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || !!((G = A.value) != null && G.call(A, L))
12871
+ };
12872
+ },
12873
+ onSelect: (L) => q(L),
12874
+ onChange: (L) => u.isMultiSelect.value && X(L)
12867
12875
  };
12868
- }), M = computed(() => {
12869
- var H;
12870
- let P = "kg-table";
12871
- return ((H = o.varGridConfig.value) == null ? void 0 : H.show_bottom_border_flg) === 1 && (P += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (P += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value) && (P += " kg-table--submitting"), P;
12872
12876
  }), N = computed(() => {
12873
- var H;
12874
- let P = "kg-table-bottom";
12875
- return ((H = o.varGridConfig.value) == null ? void 0 : H.show_bottom_border_flg) === 1 && (P += " kg-table-bottom--border"), P;
12876
- }), R = computed(() => u.store.getDatas(o.formID)), B = (de = u.store.getSelectedRowKeys(o.formID)) != null ? de : ref([]), $ = reactive({
12877
+ var G;
12878
+ let L = "kg-table";
12879
+ return ((G = o.varGridConfig.value) == null ? void 0 : G.show_bottom_border_flg) === 1 && (L += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (L += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value) && (L += " kg-table--submitting"), L;
12880
+ }), P = computed(() => {
12881
+ var G;
12882
+ let L = "kg-table-bottom";
12883
+ return ((G = o.varGridConfig.value) == null ? void 0 : G.show_bottom_border_flg) === 1 && (L += " kg-table-bottom--border"), L;
12884
+ }), H = computed(() => u.store.getDatas(o.formID)), V = (fe = u.store.getSelectedRowKeys(o.formID)) != null ? fe : ref([]), O = reactive({
12877
12885
  pageIndex: 1,
12878
12886
  pageSize: 10,
12879
12887
  total: 0
12880
- }), V = reactive({
12888
+ }), D = reactive({
12881
12889
  column: void 0,
12882
12890
  order: void 0
12883
- }), O = watch(u.pageSizeOption, (P) => {
12884
- P && (setTimeout(() => O()), $.pageSize = P, g.value = !0, KgLogger.debug(`${o.formID} | KgTable | isReadReady: ${g.value}`));
12891
+ }), U = watch(u.pageSizeOption, (L) => {
12892
+ L && (setTimeout(() => U()), O.pageSize = L, g.value = !0, KgLogger.debug(`${o.formID} | KgTable | isReadReady: ${g.value}`));
12885
12893
  }, {
12886
12894
  immediate: !0
12887
12895
  });
12888
- watch(u.pageSizeOptions, (P) => {
12889
- P.length > 0 && !P.includes($.pageSize) && ($.pageSize = u.pageSizeOption.value);
12890
- }), watch([C, u.isReadAutomatically, l.isReady], ([P, H, X]) => {
12891
- P && H && X && !u.store.getIsRetrieved(o.formID) && x(!0);
12896
+ watch(u.pageSizeOptions, (L) => {
12897
+ L.length > 0 && !L.includes(O.pageSize) && (O.pageSize = u.pageSizeOption.value);
12898
+ }), watch([C, u.isReadAutomatically, l.isReady], ([L, G, Y]) => {
12899
+ L && G && Y && !u.store.getIsRetrieved(o.formID) && W(!0);
12892
12900
  }, {
12893
12901
  immediate: !0
12894
- }), watch(o.isCreating, (P, H) => {
12895
- P === !0 ? U() : P === !1 && H === !0 && F();
12902
+ }), watch(o.isCreating, (L, G) => {
12903
+ L === !0 ? F() : L === !1 && G === !0 && K();
12896
12904
  }), onUnmounted(() => {
12897
12905
  u.store.dispose(o.formID);
12898
12906
  });
12899
- function U() {
12907
+ function F() {
12900
12908
  if (d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
12901
- const P = {
12909
+ const L = {
12902
12910
  [u.id.value]: KG_TABLE_TEMP_ID
12903
12911
  };
12904
- u.store.setDatas(o.formID, [P, ...R.value]), u.store.setSelectedRows(o.formID, [P]);
12912
+ u.store.setDatas(o.formID, [L, ...H.value]), u.store.setSelectedRows(o.formID, [L]);
12905
12913
  }
12906
12914
  }
12907
- function F() {
12908
- const P = R.value.find((H) => H[u.id.value] === KG_TABLE_TEMP_ID);
12909
- P && (u.store.setDatas(o.formID, without$1(R.value, P)), u.store.setSelectedRows(o.formID, []));
12915
+ function K() {
12916
+ const L = H.value.find((G) => G[u.id.value] === KG_TABLE_TEMP_ID);
12917
+ L && (u.store.setDatas(o.formID, without$1(H.value, L)), u.store.setSelectedRows(o.formID, []));
12910
12918
  }
12911
- function K(P, H) {
12912
- var X;
12913
- if (!(!!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!w.value) {
12914
- if (!H) {
12919
+ function B(L, G) {
12920
+ var Y;
12921
+ if (!(!!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!M.value) {
12922
+ if (!G) {
12915
12923
  u.store.setSelectedRows(o.formID, []);
12916
12924
  return;
12917
12925
  }
12918
- switch (P == null ? void 0 : P.detail) {
12926
+ switch (L == null ? void 0 : L.detail) {
12919
12927
  case 1:
12920
- switch ((X = o.varGridConfig.value) == null ? void 0 : X.operation_on_row_click) {
12928
+ switch ((Y = o.varGridConfig.value) == null ? void 0 : Y.operation_on_row_click) {
12921
12929
  case 0:
12922
12930
  break;
12923
12931
  case 1:
12924
- u.store.setSelectedRows(o.formID, [H]);
12932
+ u.store.setSelectedRows(o.formID, [G]);
12925
12933
  break;
12926
12934
  }
12927
12935
  break;
12928
12936
  case 2:
12929
12937
  u.store.emit(o.formID, "rowDoubleClick", {
12930
- row: H
12938
+ row: G
12931
12939
  });
12932
12940
  break;
12933
12941
  }
12934
12942
  }
12935
12943
  }
12936
- function x(P = !1) {
12944
+ function W(L = !1) {
12937
12945
  KgLogger.debug(`${o.formID} | KgTable | retrieve() | \u8FDB\u5165\u65B9\u6CD5.`);
12938
- const H = watch(g, (W) => {
12939
- W && (setTimeout(() => H()), X());
12946
+ const G = watch(g, (R) => {
12947
+ R && (setTimeout(() => G()), Y());
12940
12948
  }, {
12941
12949
  immediate: !0
12942
12950
  });
12943
- async function X() {
12944
- var W, L, G;
12951
+ async function Y() {
12952
+ var R, x, z;
12945
12953
  if (KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !C.value) {
12946
12954
  KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
12947
12955
  VarButton: o.varButtonSearch.value
12948
12956
  });
12949
12957
  return;
12950
12958
  }
12951
- P && ($.pageIndex = 1), u.store.setIsRetrieving(o.formID, !0);
12959
+ L && (O.pageIndex = 1), u.store.setIsRetrieving(o.formID, !0);
12952
12960
  try {
12953
- const Y = KgUtil.parseParams(E.value, u.profileFormID.value, a), J = ref({});
12961
+ const J = KgUtil.parseParams(E.value, u.profileFormID.value, a), Q = ref({});
12954
12962
  await u.store.emit(o.formID, "beforeRetrieve", {
12955
- params: Y,
12956
- response: J
12957
- }) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : (J.value = await httpClient().request({
12963
+ params: J,
12964
+ response: Q
12965
+ }) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : (Q.value = await httpClient().request({
12958
12966
  method: "GET",
12959
12967
  url: C.value,
12960
- params: Y
12968
+ params: J
12961
12969
  }, {
12962
12970
  successMessageMode: "none"
12963
12971
  }), KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u67E5\u8BE2\u63A5\u53E3\u8C03\u7528\u6210\u529F.`));
12964
- let ee = ref([]), ae = ref(0);
12972
+ let te = ref([]), ae = ref(0);
12965
12973
  switch (!0) {
12966
- case !J.value:
12967
- ee.value = [], ae.value = 0;
12974
+ case !Q.value:
12975
+ te.value = [], ae.value = 0;
12968
12976
  break;
12969
- case isArrayLike(J.value):
12970
- ee.value = J.value, ae.value = J.value.length;
12977
+ case isArrayLike(Q.value):
12978
+ te.value = Q.value, ae.value = Q.value.length;
12971
12979
  break;
12972
- case ("total" in J.value && "records" in J.value):
12973
- ee.value = (W = J.value.records) != null ? W : [], ae.value = (L = J.value.total) != null ? L : 0;
12980
+ case ("total" in Q.value && "records" in Q.value):
12981
+ te.value = (R = Q.value.records) != null ? R : [], ae.value = (x = Q.value.total) != null ? x : 0;
12974
12982
  break;
12975
12983
  }
12976
12984
  await u.store.emit(o.formID, "beforeSetDatas", {
12977
- datas: ee,
12985
+ datas: te,
12978
12986
  total: ae,
12979
- setDatas(se) {
12980
- u.store.setDatas(o.formID, se);
12987
+ setDatas(re) {
12988
+ u.store.setDatas(o.formID, re);
12981
12989
  }
12982
- }), u.store.setDatas(o.formID, ee.value), $.total = ae.value, K(), v.value = [], await nextTick(), ((G = o.varGridConfig.value) == null ? void 0 : G.check_first_row_after_retrieve) === 1 && ee.value.length > 0 && u.store.setSelectedRows(o.formID, [ee.value[0]]), await u.store.emit(o.formID, "retrieve", {
12983
- page: J.value,
12984
- datas: ee,
12985
- setDatas(se) {
12986
- u.store.setDatas(o.formID, se);
12990
+ }), u.store.setDatas(o.formID, te.value), O.total = ae.value, B(), v.value = [], await nextTick(), ((z = o.varGridConfig.value) == null ? void 0 : z.check_first_row_after_retrieve) === 1 && te.value.length > 0 && u.store.setSelectedRows(o.formID, [te.value[0]]), await u.store.emit(o.formID, "retrieve", {
12991
+ page: Q.value,
12992
+ datas: te,
12993
+ setDatas(re) {
12994
+ u.store.setDatas(o.formID, re);
12987
12995
  }
12988
12996
  }), u.store.setIsRetrieved(o.formID, !0);
12989
- } catch (Y) {
12990
- throw Y;
12997
+ } catch (J) {
12998
+ throw J;
12991
12999
  } finally {
12992
13000
  u.store.setIsRetrieving(o.formID, !1);
12993
13001
  }
12994
13002
  }
12995
13003
  }
12996
- function z(P) {
12997
- u.store.setSelectedRows(o.formID, P.map((H) => {
12998
- var X;
12999
- return (X = R.value) == null ? void 0 : X.find((W) => W[u.id.value] === H);
13000
- }).filter((H) => !!H));
13004
+ function X(L) {
13005
+ u.store.setSelectedRows(o.formID, L.map((G) => {
13006
+ var Y;
13007
+ return (Y = H.value) == null ? void 0 : Y.find((R) => R[u.id.value] === G);
13008
+ }).filter((G) => !!G));
13001
13009
  }
13002
- function Q(P) {
13003
- var H, X;
13010
+ function q(L) {
13011
+ var G, Y;
13004
13012
  switch (u.isMultiSelect.value) {
13005
13013
  case !0:
13006
13014
  {
13007
- const W = P[u.id.value];
13008
- B.value.includes(W) ? B.value = without$1(B.value, W) : B.value = [...(H = B.value) != null ? H : [], W];
13015
+ const R = L[u.id.value];
13016
+ V.value.includes(R) ? V.value = without$1(V.value, R) : V.value = [...(G = V.value) != null ? G : [], R];
13009
13017
  }
13010
13018
  break;
13011
13019
  case !1:
13012
13020
  {
13013
- const W = P[u.id.value];
13014
- (X = B.value) != null && X.includes(W) ? B.value = [] : B.value = [W];
13021
+ const R = L[u.id.value];
13022
+ (Y = V.value) != null && Y.includes(R) ? V.value = [] : V.value = [R];
13015
13023
  }
13016
13024
  break;
13017
13025
  }
13018
- u.store.setSelectedRows(o.formID, B.value.map((W) => {
13019
- var L;
13020
- return (L = R.value) == null ? void 0 : L.find((G) => G[u.id.value] === W);
13021
- }).filter((W) => !!W));
13026
+ u.store.setSelectedRows(o.formID, V.value.map((R) => {
13027
+ var x;
13028
+ return (x = H.value) == null ? void 0 : x.find((z) => z[u.id.value] === R);
13029
+ }).filter((R) => !!R));
13022
13030
  }
13023
- function q(P, H) {
13024
- H.width = P, o.store.setVarGridDetailWidth(o.formID, H.dataIndex, P);
13031
+ function Z(L, G) {
13032
+ G.width = L, o.store.setVarGridDetailWidth(o.formID, G.dataIndex, L);
13025
13033
  }
13026
- async function Z(P, H, X, W) {
13027
- var L;
13028
- switch (W.action) {
13034
+ async function ee(L, G, Y, R) {
13035
+ var x;
13036
+ switch (R.action) {
13029
13037
  case "sort":
13030
13038
  {
13031
13039
  await nextTick();
13032
- let G = X;
13033
- G.order ? (V.column = (L = G.field) != null ? L : void 0, V.order = G.order === "ascend" ? "asc" : G.order === "descend" ? "desc" : void 0) : (V.column = void 0, V.order = void 0), x(!0);
13040
+ let z = Y;
13041
+ z.order ? (D.column = (x = z.field) != null ? x : void 0, D.order = z.order === "ascend" ? "asc" : z.order === "descend" ? "desc" : void 0) : (D.column = void 0, D.order = void 0), W(!0);
13034
13042
  }
13035
13043
  break;
13036
13044
  }
13037
13045
  }
13038
- function te(P, H) {
13039
- var W;
13040
- const X = H[u.id.value];
13041
- switch ((W = o.varGridConfig.value) == null ? void 0 : W.expand_accordion_flg) {
13046
+ function se(L, G) {
13047
+ var R;
13048
+ const Y = G[u.id.value];
13049
+ switch ((R = o.varGridConfig.value) == null ? void 0 : R.expand_accordion_flg) {
13042
13050
  case 0:
13043
- P ? v.value = uniq([...v.value, X]) : v.value = without$1(v.value, X);
13051
+ L ? v.value = uniq([...v.value, Y]) : v.value = without$1(v.value, Y);
13044
13052
  break;
13045
13053
  default:
13046
- P ? v.value = [X] : v.value = [];
13054
+ L ? v.value = [Y] : v.value = [];
13047
13055
  break;
13048
13056
  }
13049
13057
  }
13050
- function oe(P, H) {
13051
- H !== $.pageSize ? ($.pageIndex = 1, $.pageSize = H) : $.pageIndex = P, x();
13058
+ function oe(L, G) {
13059
+ G !== O.pageSize ? (O.pageIndex = 1, O.pageSize = G) : O.pageIndex = L, W();
13052
13060
  }
13053
- function ie(P) {
13054
- u.store.setSelectedRows(o.formID, [P].map((H) => {
13055
- var X;
13056
- return (X = R.value) == null ? void 0 : X.find((W) => W[u.id.value] === H[u.id.value]);
13057
- }).filter((H) => !!H)), c.click(o.formID, KG_BUTTON_TYPE.UPDATE);
13061
+ function ge(L) {
13062
+ u.store.setSelectedRows(o.formID, [L].map((G) => {
13063
+ var Y;
13064
+ return (Y = H.value) == null ? void 0 : Y.find((R) => R[u.id.value] === G[u.id.value]);
13065
+ }).filter((G) => !!G)), c.click(o.formID, KG_BUTTON_TYPE.UPDATE);
13058
13066
  }
13059
- function fe({
13060
- title: P,
13061
- column: H
13067
+ function ce({
13068
+ title: L,
13069
+ column: G
13062
13070
  }) {
13063
- switch (H.dataIndex) {
13071
+ switch (G.dataIndex) {
13064
13072
  case "index":
13065
13073
  return createVNode(KgTableSetting, {
13066
13074
  kgDisabled: k.value
13067
13075
  }, null);
13068
13076
  default:
13069
13077
  return createVNode("pre", {
13070
- title: P
13071
- }, [P]);
13078
+ title: L
13079
+ }, [L]);
13072
13080
  }
13073
13081
  }
13074
- function ce() {
13075
- var P;
13076
- return (P = n == null ? void 0 : n.KgTable) != null && P["summary.bodyCell"] ? createVNode(TableSummary, {
13082
+ function ne() {
13083
+ var L;
13084
+ return (L = n == null ? void 0 : n.KgTable) != null && L["summary.bodyCell"] ? createVNode(TableSummary, {
13077
13085
  fixed: "bottom"
13078
13086
  }, {
13079
13087
  default: () => [createVNode(TableSummary.Row, null, {
13080
- default: () => [D.value && createVNode(TableSummary.Cell, {
13088
+ default: () => [I.value && createVNode(TableSummary.Cell, {
13081
13089
  index: 0
13082
- }, null), I.value && createVNode(TableSummary.Cell, {
13083
- index: D.value ? 1 : 0
13084
- }, null), y.value.map((H, X) => {
13085
- const W = o.store.getVarGridDetail(o.formID, H.dataIndex);
13086
- let L = X;
13087
- return D.value && I.value ? L += 2 : (D.value || I.value) && (L += 1), createVNode(TableSummary.Cell, {
13088
- index: L
13090
+ }, null), w.value && createVNode(TableSummary.Cell, {
13091
+ index: I.value ? 1 : 0
13092
+ }, null), y.value.map((G, Y) => {
13093
+ const R = o.store.getVarGridDetail(o.formID, G.dataIndex);
13094
+ let x = Y;
13095
+ return I.value && w.value ? x += 2 : (I.value || w.value) && (x += 1), createVNode(TableSummary.Cell, {
13096
+ index: x
13089
13097
  }, {
13090
13098
  default: () => {
13091
- var G, Y;
13092
- return [(Y = (G = n == null ? void 0 : n.KgTable) == null ? void 0 : G["summary.bodyCell"]) == null ? void 0 : Y.call(G, {
13093
- column: H,
13094
- index: L,
13095
- varGridDetail: W
13099
+ var z, J;
13100
+ return [(J = (z = n == null ? void 0 : n.KgTable) == null ? void 0 : z["summary.bodyCell"]) == null ? void 0 : J.call(z, {
13101
+ column: G,
13102
+ index: x,
13103
+ varGridDetail: R
13096
13104
  })];
13097
13105
  }
13098
13106
  });
@@ -13100,51 +13108,51 @@ const KgTable$1 = "", getProps$g = () => ({
13100
13108
  })]
13101
13109
  }) : null;
13102
13110
  }
13103
- function ne({
13104
- column: P,
13105
- index: H,
13106
- record: X,
13107
- text: W,
13108
- value: L
13111
+ function le({
13112
+ column: L,
13113
+ index: G,
13114
+ record: Y,
13115
+ text: R,
13116
+ value: x
13109
13117
  }) {
13110
- var J;
13111
- let G = "";
13112
- P.customRender ? G = P.customRender({
13113
- index: H,
13114
- record: X,
13115
- column: P,
13116
- text: W,
13117
- value: L,
13118
- renderIndex: H
13119
- }) : G = L;
13120
- const Y = createVNode(KgTableCell, {
13121
- kgRow: X,
13122
- kgValue: G,
13123
- kgVarName: P.dataIndex,
13124
- onKgUpdateLinkClick: () => ie(X)
13118
+ var Q;
13119
+ let z = "";
13120
+ L.customRender ? z = L.customRender({
13121
+ index: G,
13122
+ record: Y,
13123
+ column: L,
13124
+ text: R,
13125
+ value: x,
13126
+ renderIndex: G
13127
+ }) : z = x;
13128
+ const J = createVNode(KgTableCell, {
13129
+ kgRow: Y,
13130
+ kgValue: z,
13131
+ kgVarName: L.dataIndex,
13132
+ onKgUpdateLinkClick: () => ge(Y)
13125
13133
  }, null);
13126
- if ((J = n == null ? void 0 : n.KgTable) != null && J.bodyCell) {
13127
- const ee = P.dataIndex ? o.store.getVarGridDetail(o.formID, P.dataIndex) : null;
13134
+ if ((Q = n == null ? void 0 : n.KgTable) != null && Q.bodyCell) {
13135
+ const te = L.dataIndex ? o.store.getVarGridDetail(o.formID, L.dataIndex) : null;
13128
13136
  return n.KgTable.bodyCell({
13129
- column: P,
13130
- index: H,
13131
- record: X,
13132
- text: W,
13133
- value: L,
13134
- row: X,
13135
- varGridDetail: ee,
13136
- defaultRender: Y
13137
+ column: L,
13138
+ index: G,
13139
+ record: Y,
13140
+ text: R,
13141
+ value: x,
13142
+ row: Y,
13143
+ varGridDetail: te,
13144
+ defaultRender: J
13137
13145
  });
13138
13146
  } else
13139
- return Y;
13147
+ return J;
13140
13148
  }
13141
- function ue() {
13149
+ function de() {
13142
13150
  return !u.isReadAutomatically.value && !u.store.getIsRetrieved(o.formID) ? i.t("kg.KgTable.emptyText") : i.t("kg.emptyText");
13143
13151
  }
13144
13152
  return () => {
13145
- var P, H, X;
13153
+ var L, G, Y;
13146
13154
  return createVNode("div", {
13147
- class: M.value,
13155
+ class: N.value,
13148
13156
  "kg-frm_id": o.formID,
13149
13157
  ref: b
13150
13158
  }, [createVNode(Table, {
@@ -13157,56 +13165,56 @@ const KgTable$1 = "", getProps$g = () => ({
13157
13165
  pagination: !1,
13158
13166
  showSorterTooltip: !1,
13159
13167
  columns: y.value,
13160
- dataSource: R.value,
13168
+ dataSource: H.value,
13161
13169
  loading: _.value,
13162
13170
  rowKey: u.id.value,
13163
- rowClassName: (H = (P = s == null ? void 0 : s.value) == null ? void 0 : P.KgTable) == null ? void 0 : H.kgRowClassName,
13171
+ rowClassName: (G = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : G.kgRowClassName,
13164
13172
  expandColumnWidth: 28,
13165
13173
  expandedRowKeys: v.value,
13166
- rowSelection: w.value,
13167
- customRow: (W) => ({
13168
- onClick: (L) => K(L, W)
13174
+ rowSelection: M.value,
13175
+ customRow: (R) => ({
13176
+ onClick: (x) => B(x, R)
13169
13177
  }),
13170
- onResizeColumn: q,
13171
- onChange: Z,
13172
- onExpand: te
13178
+ onResizeColumn: Z,
13179
+ onChange: ee,
13180
+ onExpand: se
13173
13181
  }, {
13174
- headerCell: fe,
13175
- bodyCell: ne,
13176
- emptyText: ue,
13177
- expandedRowRender: (X = n == null ? void 0 : n.KgTable) == null ? void 0 : X.expandedRowRender,
13178
- summary: ce
13182
+ headerCell: ce,
13183
+ bodyCell: le,
13184
+ emptyText: de,
13185
+ expandedRowRender: (Y = n == null ? void 0 : n.KgTable) == null ? void 0 : Y.expandedRowRender,
13186
+ summary: ne
13179
13187
  }), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
13180
- class: N.value
13188
+ class: P.value
13181
13189
  }, [createVNode("div", {
13182
13190
  class: "left"
13183
13191
  }, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
13184
- kgShowClearCheck: B.value.length > 0,
13185
- kgShowClearTable: $.total > 0,
13186
- kgShowLocate: B.value.length === 1,
13187
- kgTotal: B.value.length,
13188
- kgDisabled: A.value
13192
+ kgShowClearCheck: V.value.length > 0,
13193
+ kgShowClearTable: O.total > 0,
13194
+ kgShowLocate: V.value.length === 1,
13195
+ kgTotal: V.value.length,
13196
+ kgDisabled: T.value
13189
13197
  }, null)]), createVNode("div", {
13190
13198
  class: "right"
13191
13199
  }, [u.isShowBottomRight.value && createVNode(Pagination, {
13192
13200
  size: "default",
13193
- current: $.pageIndex,
13194
- pageSize: $.pageSize,
13195
- pageSizeOptions: u.pageSizeOptions.value.map((W) => String(W)),
13196
- total: $.total,
13201
+ current: O.pageIndex,
13202
+ pageSize: O.pageSize,
13203
+ pageSizeOptions: u.pageSizeOptions.value.map((R) => String(R)),
13204
+ total: O.total,
13197
13205
  showSizeChanger: !0,
13198
13206
  showQuickJumper: !1,
13199
13207
  hideOnSinglePage: !1,
13200
- disabled: T.value,
13208
+ disabled: $.value,
13201
13209
  locale: {
13202
13210
  page: ""
13203
13211
  },
13204
- showTotal: (W, L) => i.t("kg.KgTable.totalText", {
13205
- from: L[0],
13206
- to: L[1],
13207
- total: W
13212
+ showTotal: (R, x) => i.t("kg.KgTable.totalText", {
13213
+ from: x[0],
13214
+ to: x[1],
13215
+ total: R
13208
13216
  }),
13209
- onChange: (W, L) => oe(W, L)
13217
+ onChange: (R, x) => oe(R, x)
13210
13218
  }, null)])])]);
13211
13219
  };
13212
13220
  }
@@ -13426,8 +13434,8 @@ const KgButtonCreate = defineComponent({
13426
13434
  attrs: a
13427
13435
  }) {
13428
13436
  const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
13429
- var E, k, A, T, D, I, w, M;
13430
- return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((I = (D = o.selectedRows.value) == null ? void 0 : D.length) != null ? I : 0) > 1 || ((w = c.value) == null ? void 0 : w.permission_type) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13437
+ var E, k, A, T, $, I, w, M;
13438
+ return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((I = ($ = o.selectedRows.value) == null ? void 0 : $.length) != null ? I : 0) > 1 || ((w = c.value) == null ? void 0 : w.permission_type) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13431
13439
  }), d = computed(() => !!s.isCreatingRequesting.value);
13432
13440
  async function g() {
13433
13441
  e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
@@ -13626,8 +13634,8 @@ const KgButtonCreate = defineComponent({
13626
13634
  ...KgVarUtil.parseCommandParameter((E = (C = o.value) == null ? void 0 : C.cmd_prm) != null ? E : "")
13627
13635
  }), _;
13628
13636
  }), d = computed(() => {
13629
- var _, b, C, E, k, A, T, D;
13630
- return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = o.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((C = (b = i.selectedRows.value) == null ? void 0 : b.length) != null ? C : 0) === 0 || ((E = o.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !a.p((D = o.value) == null ? void 0 : D.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13637
+ var _, b, C, E, k, A, T, $;
13638
+ return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = o.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((C = (b = i.selectedRows.value) == null ? void 0 : b.length) != null ? C : 0) === 0 || ((E = o.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !a.p(($ = o.value) == null ? void 0 : $.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13631
13639
  }), g = ref(!1);
13632
13640
  async function v(_) {
13633
13641
  if (!l.value)
@@ -13791,7 +13799,7 @@ const KgButtonCreate = defineComponent({
13791
13799
  }
13792
13800
  let g = null;
13793
13801
  const v = async () => {
13794
- var C, E, k, A, T, D;
13802
+ var C, E, k, A, T, $;
13795
13803
  g == null || g.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
13796
13804
  const b = s.selectedRows.value;
13797
13805
  try {
@@ -13802,11 +13810,11 @@ const KgButtonCreate = defineComponent({
13802
13810
  data: b != null ? b : []
13803
13811
  });
13804
13812
  if (((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1) {
13805
- if (((D = e.kgButton) == null ? void 0 : D.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
13813
+ if ((($ = e.kgButton) == null ? void 0 : $.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
13806
13814
  datas: M
13807
13815
  }) => {
13808
- const N = M.value, R = intersectionWith$1(N, b != null ? b : [], (B, $) => (B == null ? void 0 : B[s.id.value]) === ($ == null ? void 0 : $[s.id.value]));
13809
- return R.length > 0 && s.store.setSelectedRows(r.formID, R), !1;
13816
+ const N = M.value, P = intersectionWith$1(N, b != null ? b : [], (H, V) => (H == null ? void 0 : H[s.id.value]) === (V == null ? void 0 : V[s.id.value]));
13817
+ return P.length > 0 && s.store.setSelectedRows(r.formID, P), !1;
13810
13818
  }, !0), await n.store.emit(r.formID, "otherOk", {
13811
13819
  button: e.kgButton,
13812
13820
  data: I
@@ -13919,8 +13927,8 @@ const KgButtonCreate = defineComponent({
13919
13927
  }
13920
13928
  });
13921
13929
  const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
13922
- var E, k, A, T, D, I, w, M;
13923
- return s.isCreating.value || s.isCopying.value || s.isDeleting.value || i.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((I = (D = i.selectedRows.value) == null ? void 0 : D.length) != null ? I : 0) > 1 || ((w = c.value) == null ? void 0 : w.permission_type) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13930
+ var E, k, A, T, $, I, w, M;
13931
+ return s.isCreating.value || s.isCopying.value || s.isDeleting.value || i.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((I = ($ = i.selectedRows.value) == null ? void 0 : $.length) != null ? I : 0) > 1 || ((w = c.value) == null ? void 0 : w.permission_type) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13924
13932
  }), d = computed(() => !!s.isUpdatingRequesting.value);
13925
13933
  async function g() {
13926
13934
  e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
@@ -14632,7 +14640,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
14632
14640
  row: C,
14633
14641
  model: E
14634
14642
  }) => {
14635
- var A, T, D;
14643
+ var A, T, $;
14636
14644
  const k = i.store.getSystemVarProfileDetails(i.formID);
14637
14645
  switch (o.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
14638
14646
  case p:
@@ -14649,8 +14657,8 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
14649
14657
  }
14650
14658
  });
14651
14659
  o.value = o.value.map((M) => {
14652
- var R;
14653
- const N = (R = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : R.find((B) => B.var_nam === M.var_nam);
14660
+ var P;
14661
+ const N = (P = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : P.find((H) => H.var_nam === M.var_nam);
14654
14662
  return N ? {
14655
14663
  ...M,
14656
14664
  ...N,
@@ -14670,7 +14678,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
14670
14678
  }
14671
14679
  switch (!0) {
14672
14680
  case b:
14673
- E.value.prf_var_nam = ((D = E.value.prf_var_nam) != null ? D : "") + "_COPY";
14681
+ E.value.prf_var_nam = (($ = E.value.prf_var_nam) != null ? $ : "") + "_COPY";
14674
14682
  break;
14675
14683
  }
14676
14684
  return !1;
@@ -14695,7 +14703,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
14695
14703
  _(!0);
14696
14704
  }
14697
14705
  });
14698
- }) : Promise.resolve(!1)), n.onDeleteOk(() => (i.store.retrieve(i.formID), Promise.resolve(!1)));
14706
+ }) : Promise.resolve(!1));
14699
14707
  const o = ref([]), l = ref([]), c = ref([]);
14700
14708
  _useDragRow(e.hostFormID, o, c);
14701
14709
  const u = ref({
@@ -14726,9 +14734,9 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
14726
14734
  onItemSelectAll: E,
14727
14735
  onItemSelect: k
14728
14736
  }) => {
14729
- const A = _.sort((T, D) => {
14737
+ const A = _.sort((T, $) => {
14730
14738
  var I, w;
14731
- return ((I = T.srtseq) != null ? I : 0) - ((w = D.srtseq) != null ? w : 0);
14739
+ return ((I = T.srtseq) != null ? I : 0) - ((w = $.srtseq) != null ? w : 0);
14732
14740
  });
14733
14741
  return c.value = A, createVNode(Table, {
14734
14742
  pagination: !1,
@@ -14742,10 +14750,10 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
14742
14750
  rowKey: "id",
14743
14751
  dataSource: A,
14744
14752
  customRow: (T) => {
14745
- let D = {
14753
+ let $ = {
14746
14754
  onClick: (I) => y(I, T, p, b)
14747
14755
  };
14748
- return p === "right" && (D["kg-host-frm_id"] = i.formID, D["kg-var_nam"] = T.var_nam), D;
14756
+ return p === "right" && ($["kg-host-frm_id"] = i.formID, $["kg-var_nam"] = T.var_nam), $;
14749
14757
  },
14750
14758
  rowSelection: g({
14751
14759
  disabled: C,
@@ -14989,21 +14997,21 @@ const KgSearch$1 = "", getProps$9 = () => ({
14989
14997
  });
14990
14998
  _useLayoutHeaderResizeObserver();
14991
14999
  const p = _useFormModel(v, y), _ = computed(() => {
14992
- var K, x, z, Q;
14993
- if (!isNil((x = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : x.kgDisabled))
14994
- return (Q = (z = r == null ? void 0 : r.value) == null ? void 0 : z.KgSearch) == null ? void 0 : Q.kgDisabled;
15000
+ var K, B, W, X;
15001
+ if (!isNil((B = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : B.kgDisabled))
15002
+ return (X = (W = r == null ? void 0 : r.value) == null ? void 0 : W.KgSearch) == null ? void 0 : X.kgDisabled;
14995
15003
  if (!isNil(e.kgDisabled))
14996
15004
  return e.kgDisabled;
14997
15005
  }), b = computed(() => {
14998
- var K, x;
14999
- return !!(_.value || i.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
15006
+ var K, B;
15007
+ return !!(_.value || i.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
15000
15008
  }), C = computed(() => !!(_.value || i.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), E = computed(() => !!(_.value || i.isRetrieving.value)), k = ref({
15001
15009
  visible: !1
15002
15010
  }), A = computed(() => y.value.kgHeight === g.value), T = computed(() => {
15003
- var K, x, z;
15004
- if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((x = n.varButtonSearch.value) == null ? void 0 : x.var_nam))
15005
- return n.t((z = n.varButtonSearch.value) == null ? void 0 : z.var_nam).value;
15006
- }), D = computed(() => {
15011
+ var K, B, W;
15012
+ if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((B = n.varButtonSearch.value) == null ? void 0 : B.var_nam))
15013
+ return n.t((W = n.varButtonSearch.value) == null ? void 0 : W.var_nam).value;
15014
+ }), $ = computed(() => {
15007
15015
  var K;
15008
15016
  switch ((K = n.varButtonSearch.value) == null ? void 0 : K.primary_flg) {
15009
15017
  case 1:
@@ -15029,16 +15037,16 @@ const KgSearch$1 = "", getProps$9 = () => ({
15029
15037
  await s.store.emit(n.formID, "search", {
15030
15038
  resetPageIndex: K
15031
15039
  });
15032
- }).catch((x) => {
15040
+ }).catch((B) => {
15033
15041
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
15034
- e: x
15042
+ e: B
15035
15043
  });
15036
15044
  }) : await s.store.emit(n.formID, "search", {
15037
15045
  resetPageIndex: K
15038
15046
  });
15039
15047
  }
15040
15048
  s.store.setSearchFn(n.formID, N);
15041
- async function R() {
15049
+ async function P() {
15042
15050
  p.initFormModel(), o.value ? v.value && v.value.validate().then(async () => {
15043
15051
  await s.store.emit(n.formID, "reset", {});
15044
15052
  }).catch((K) => {
@@ -15047,36 +15055,36 @@ const KgSearch$1 = "", getProps$9 = () => ({
15047
15055
  });
15048
15056
  }) : await s.store.emit(n.formID, "reset", {});
15049
15057
  }
15050
- s.store.setResetFn(n.formID, R);
15051
- function B() {
15058
+ s.store.setResetFn(n.formID, P);
15059
+ function H() {
15052
15060
  return N(!0), Promise.resolve(!0);
15053
15061
  }
15054
- function $() {
15062
+ function V() {
15055
15063
  var K;
15056
15064
  return createVNode("div", {
15057
15065
  class: "title",
15058
15066
  onClick: F
15059
15067
  }, [((K = t == null ? void 0 : t.KgSearch) == null ? void 0 : K.left) && createVNode("div", {
15060
15068
  class: "kg-search-title-left",
15061
- onClick: (x) => {
15062
- x.stopPropagation(), x.preventDefault();
15069
+ onClick: (B) => {
15070
+ B.stopPropagation(), B.preventDefault();
15063
15071
  }
15064
15072
  }, [t.KgSearch.left()]), A.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
15065
15073
  }
15066
- function V() {
15067
- var K, x, z, Q;
15068
- return ((z = (x = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : x.length) != null ? z : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
15069
- value: (Q = n.currentVarProfileMasterID.value) != null ? Q : void 0,
15074
+ function O() {
15075
+ var K, B, W, X;
15076
+ return ((W = (B = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : B.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
15077
+ value: (X = n.currentVarProfileMasterID.value) != null ? X : void 0,
15070
15078
  "onUpdate:value": (q) => n.store.setCurrentVarProfileMasterID(n.formID, q),
15071
15079
  disabled: C.value,
15072
15080
  class: "kg-search-profile-master-select"
15073
15081
  }, {
15074
15082
  default: () => {
15075
15083
  var q, Z;
15076
- return (Z = (q = n.varProfileMasters) == null ? void 0 : q.value) == null ? void 0 : Z.map((te) => createVNode(Select.Option, {
15077
- value: te.id
15084
+ return (Z = (q = n.varProfileMasters) == null ? void 0 : q.value) == null ? void 0 : Z.map((ee) => createVNode(Select.Option, {
15085
+ value: ee.id
15078
15086
  }, {
15079
- default: () => [n.t(te == null ? void 0 : te.prf_var_nam).value]
15087
+ default: () => [n.t(ee == null ? void 0 : ee.prf_var_nam).value]
15080
15088
  }));
15081
15089
  },
15082
15090
  suffixIcon: () => createVNode(CaretDownOutlined$1, {
@@ -15096,25 +15104,25 @@ const KgSearch$1 = "", getProps$9 = () => ({
15096
15104
  hostFormID: n.formID
15097
15105
  }, null)]);
15098
15106
  }
15099
- function O() {
15100
- var K, x, z, Q, q;
15101
- return createVNode(Fragment, null, [V(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code)) && createVNode(Button, {
15107
+ function D() {
15108
+ var K, B, W, X, q;
15109
+ return createVNode(Fragment, null, [O(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
15102
15110
  type: "primary",
15103
15111
  ghost: !b.value,
15104
15112
  disabled: b.value,
15105
- onClick: R,
15113
+ onClick: P,
15106
15114
  class: "kg-search-btn-reset"
15107
15115
  }, {
15108
15116
  default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
15109
15117
  }), createVNode(KgButton.Item, {
15110
15118
  kgType: KG_BUTTON_TYPE.SEARCH,
15111
- kgVarName: (z = n.varButtonSearch.value) == null ? void 0 : z.var_nam,
15112
- kgIcon: (Q = n.varButtonSearch.value) == null ? void 0 : Q.icon,
15119
+ kgVarName: (W = n.varButtonSearch.value) == null ? void 0 : W.var_nam,
15120
+ kgIcon: (X = n.varButtonSearch.value) == null ? void 0 : X.icon,
15113
15121
  kgText: T.value,
15114
15122
  kgColor: (q = n.varButtonSearch.value) == null ? void 0 : q.color,
15115
- kgPrimary: D.value,
15123
+ kgPrimary: $.value,
15116
15124
  kgLoading: E.value,
15117
- onKgClick: B
15125
+ onKgClick: H
15118
15126
  }, null)]);
15119
15127
  }
15120
15128
  function U() {
@@ -15131,10 +15139,10 @@ const KgSearch$1 = "", getProps$9 = () => ({
15131
15139
  gutter: 6
15132
15140
  }, {
15133
15141
  default: () => {
15134
- var x;
15135
- return [(x = n.currentVarProfileDetails.value) == null ? void 0 : x.map((z) => createVNode(KgForm.Item, {
15136
- key: z.var_nam,
15137
- kgVarName: z.var_nam,
15142
+ var B;
15143
+ return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((W) => createVNode(KgForm.Item, {
15144
+ key: W.var_nam,
15145
+ kgVarName: W.var_nam,
15138
15146
  kgContext: KG_FORM_CONTEXT.SEARCH,
15139
15147
  onKgSubmit: () => N(!0)
15140
15148
  }, null))];
@@ -15169,9 +15177,9 @@ const KgSearch$1 = "", getProps$9 = () => ({
15169
15177
  }, [createVNode(Spin, {
15170
15178
  spinning: I.value
15171
15179
  }, {
15172
- default: () => [$(), createVNode("div", {
15180
+ default: () => [V(), createVNode("div", {
15173
15181
  class: "ant-collapse-extra"
15174
- }, [O()])]
15182
+ }, [D()])]
15175
15183
  })])]
15176
15184
  }), createVNode("div", {
15177
15185
  class: "ant-collapse-content ant-collapse-content-active"
@@ -15648,112 +15656,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
15648
15656
  columnWidth: 32,
15649
15657
  hideSelectAll: !0,
15650
15658
  selectedRowKeys: d,
15651
- onSelect: (R) => D(R)
15659
+ onSelect: (P) => $(P)
15652
15660
  }), v = ref({
15653
15661
  visible: !1
15654
15662
  }), y = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(i))), p = computed(() => {
15655
- var R;
15656
- return !!u.value || ((R = a.getSelectedVarCatalog) == null ? void 0 : R.cust_lvl) === KG_CUSTOM_LEVEL.L0;
15663
+ var P;
15664
+ return !!u.value || ((P = a.getSelectedVarCatalog) == null ? void 0 : P.cust_lvl) === KG_CUSTOM_LEVEL.L0;
15657
15665
  }), _ = computed(() => !!(!unref(u) || unref(n) || unref(s))), b = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
15658
- watch(() => a.getSelectedVar, (R) => {
15659
- R ? C() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
15666
+ watch(() => a.getSelectedVar, (P) => {
15667
+ P ? C() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
15660
15668
  }, {
15661
15669
  immediate: !0
15662
- }), watch(() => a.getSelectedVarCatalog, async (R) => {
15663
- var B, $;
15664
- l.value.var_text = (B = R == null ? void 0 : R.var_text) != null ? B : "", ($ = o.value) == null || $.clearValidate();
15670
+ }), watch(() => a.getSelectedVarCatalog, async (P) => {
15671
+ var H, V;
15672
+ l.value.var_text = (H = P == null ? void 0 : P.var_text) != null ? H : "", (V = o.value) == null || V.clearValidate();
15665
15673
  });
15666
- async function C(R = !1) {
15667
- var B, $, V;
15674
+ async function C(P = !1) {
15675
+ var H, V, O;
15668
15676
  n.value = !0;
15669
15677
  try {
15670
15678
  const {
15671
- records: O
15679
+ records: D
15672
15680
  } = await List({
15673
15681
  params: {
15674
15682
  pageNo: 1,
15675
15683
  pageSize: 999,
15676
15684
  frm_id: e == null ? void 0 : e.value,
15677
- var_nam: (B = a.getSelectedVar) == null ? void 0 : B.var_nam,
15685
+ var_nam: (H = a.getSelectedVar) == null ? void 0 : H.var_nam,
15678
15686
  column: "frm_id,locale_id,cust_lvl",
15679
15687
  order: "asc"
15680
15688
  }
15681
15689
  });
15682
- if (u.value = null, c.value = O != null ? O : [], R) {
15690
+ if (u.value = null, c.value = D != null ? D : [], P) {
15683
15691
  const U = c.value.find((F) => {
15684
15692
  var K;
15685
15693
  return F.id === ((K = a.getSelectedVarCatalog) == null ? void 0 : K.id);
15686
15694
  });
15687
15695
  a.setSelectedVarCatalog(U != null ? U : null), d.value = U != null && U.id ? [U.id] : [];
15688
15696
  } else
15689
- a.setSelectedVarCatalog(($ = c.value[0]) != null ? $ : null), d.value = (V = c.value[0]) != null && V.id ? [c.value[0].id] : [];
15690
- } catch (O) {
15691
- KgLogger.debug(O == null ? void 0 : O.message);
15697
+ a.setSelectedVarCatalog((V = c.value[0]) != null ? V : null), d.value = (O = c.value[0]) != null && O.id ? [c.value[0].id] : [];
15698
+ } catch (D) {
15699
+ KgLogger.debug(D == null ? void 0 : D.message);
15692
15700
  } finally {
15693
15701
  n.value = !1;
15694
15702
  }
15695
15703
  }
15696
15704
  async function E() {
15697
- var R, B, $;
15705
+ var P, H, V;
15698
15706
  try {
15699
- s.value = !0, await ((R = o.value) == null ? void 0 : R.validate());
15700
- const V = new VarCatalog({
15701
- ...(B = a.getSelectedVarCatalog) != null ? B : {},
15702
- var_text: ($ = l.value) == null ? void 0 : $.var_text
15707
+ s.value = !0, await ((P = o.value) == null ? void 0 : P.validate());
15708
+ const O = new VarCatalog({
15709
+ ...(H = a.getSelectedVarCatalog) != null ? H : {},
15710
+ var_text: (V = l.value) == null ? void 0 : V.var_text
15703
15711
  });
15704
- V.id ? V.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (V.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(V, "id"), await Add({
15705
- data: V
15712
+ O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add({
15713
+ data: O
15706
15714
  }, {
15707
15715
  successMessageMode: "none"
15708
15716
  }), message.success({
15709
15717
  content: t.t("kg.KgVarConfig.createSuccess")
15710
15718
  }), await C()) : (await Edit({
15711
- data: V
15719
+ data: O
15712
15720
  }, {
15713
15721
  successMessageMode: "none"
15714
15722
  }), message.success({
15715
15723
  content: t.t("kg.KgVarConfig.saveSuccess")
15716
15724
  }), await C(!0)) : (await Add({
15717
- data: V
15725
+ data: O
15718
15726
  }, {
15719
15727
  successMessageMode: "none"
15720
15728
  }), message.success({
15721
15729
  content: t.t("kg.KgVarConfig.createSuccess")
15722
15730
  }), await C()), r.retrieve(e == null ? void 0 : e.value);
15723
- } catch (V) {
15724
- KgUtil.throwIfNotFormError(V);
15731
+ } catch (O) {
15732
+ KgUtil.throwIfNotFormError(O);
15725
15733
  } finally {
15726
15734
  s.value = !1;
15727
15735
  }
15728
15736
  }
15729
15737
  function k({
15730
- isAllForm: R,
15731
- isAllLanguage: B
15738
+ isAllForm: P,
15739
+ isAllLanguage: H
15732
15740
  }) {
15733
- var $, V, O;
15741
+ var V, O, D;
15734
15742
  u.value = new VarCatalog({
15735
15743
  id: "",
15736
15744
  cust_lvl: KG_CUSTOM_LEVEL.L10,
15737
- grp_nam: ($ = a.getSelectedVar) == null ? void 0 : $.grp_nam,
15738
- var_nam: (V = a.getSelectedVar) == null ? void 0 : V.var_nam,
15739
- frm_id: R || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
15740
- locale_id: B ? "ALL" : (O = t.locale) == null ? void 0 : O.value,
15745
+ grp_nam: (V = a.getSelectedVar) == null ? void 0 : V.grp_nam,
15746
+ var_nam: (O = a.getSelectedVar) == null ? void 0 : O.var_nam,
15747
+ frm_id: P || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
15748
+ locale_id: H ? "ALL" : (D = t.locale) == null ? void 0 : D.value,
15741
15749
  var_text: ""
15742
15750
  }), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
15743
15751
  }
15744
15752
  function A() {
15745
- var B;
15753
+ var H;
15746
15754
  c.value = without$1(c.value, u.value), u.value = null;
15747
- const R = (B = c.value[0]) != null ? B : null;
15748
- a.setSelectedVarCatalog(R), d.value = R ? [R.id] : [];
15755
+ const P = (H = c.value[0]) != null ? H : null;
15756
+ a.setSelectedVarCatalog(P), d.value = P ? [P.id] : [];
15749
15757
  }
15750
15758
  function T() {
15751
15759
  KgUtil.confirm({
15752
15760
  onOk: async () => {
15753
- var R;
15761
+ var P;
15754
15762
  await Delete({
15755
15763
  params: {
15756
- id: (R = a.getSelectedVarCatalog) == null ? void 0 : R.id
15764
+ id: (P = a.getSelectedVarCatalog) == null ? void 0 : P.id
15757
15765
  }
15758
15766
  }, {
15759
15767
  successMessageMode: "none",
@@ -15764,14 +15772,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
15764
15772
  }
15765
15773
  });
15766
15774
  }
15767
- function D(R) {
15768
- var B;
15769
- ((B = a.getSelectedVarCatalog) == null ? void 0 : B.id) !== R.id && (unref(u) ? KgUtil.confirm({
15775
+ function $(P) {
15776
+ var H;
15777
+ ((H = a.getSelectedVarCatalog) == null ? void 0 : H.id) !== P.id && (unref(u) ? KgUtil.confirm({
15770
15778
  content: t.t("kg.KgVarConfig.discardConfirmMessage"),
15771
15779
  onOk: () => {
15772
- c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(R)), d.value = [R.id];
15780
+ c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(P)), d.value = [P.id];
15773
15781
  }
15774
- }) : (a.setSelectedVarCatalog(unref(R)), d.value = [R.id]));
15782
+ }) : (a.setSelectedVarCatalog(unref(P)), d.value = [P.id]));
15775
15783
  }
15776
15784
  function I() {
15777
15785
  v.value.visible = !0;
@@ -15796,7 +15804,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
15796
15804
  })]);
15797
15805
  }
15798
15806
  function M() {
15799
- let R, B;
15807
+ let P, H;
15800
15808
  return createVNode("div", {
15801
15809
  class: "form"
15802
15810
  }, [createVNode(Form, {
@@ -15813,7 +15821,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
15813
15821
  }, {
15814
15822
  default: () => [createVNode(Textarea, {
15815
15823
  value: l.value.var_text,
15816
- "onUpdate:value": ($) => l.value.var_text = $,
15824
+ "onUpdate:value": (V) => l.value.var_text = V,
15817
15825
  disabled: !a.getSelectedVarCatalog
15818
15826
  }, null), createVNode("button", {
15819
15827
  hidden: !0
@@ -15824,21 +15832,21 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
15824
15832
  }, [createVNode(Button, {
15825
15833
  disabled: _.value,
15826
15834
  onClick: A
15827
- }, _isSlot(R = t.t("common.cancelText")) ? R : {
15828
- default: () => [R]
15835
+ }, _isSlot(P = t.t("common.cancelText")) ? P : {
15836
+ default: () => [P]
15829
15837
  }), createVNode(Button, {
15830
15838
  loading: s.value,
15831
15839
  disabled: b.value,
15832
15840
  onClick: E,
15833
15841
  type: "primary"
15834
- }, _isSlot(B = t.t("common.save")) ? B : {
15835
- default: () => [B]
15842
+ }, _isSlot(H = t.t("common.save")) ? H : {
15843
+ default: () => [H]
15836
15844
  })])]);
15837
15845
  }
15838
- function N(R) {
15839
- var $;
15840
- let B = "";
15841
- return R.id || (B += " ant-table-row-create"), R.id === (($ = a.getSelectedVarCatalog) == null ? void 0 : $.id) && (B += " ant-table-row-selected "), B;
15846
+ function N(P) {
15847
+ var V;
15848
+ let H = "";
15849
+ return P.id || (H += " ant-table-row-create"), P.id === ((V = a.getSelectedVarCatalog) == null ? void 0 : V.id) && (H += " ant-table-row-selected "), H;
15842
15850
  }
15843
15851
  return () => createVNode("div", {
15844
15852
  class: "kg-var-config-modal-var-var-catalog"
@@ -15856,12 +15864,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
15856
15864
  loading: n.value,
15857
15865
  rowClassName: N,
15858
15866
  rowSelection: g.value,
15859
- customRow: (R) => ({
15860
- onClick: () => D(R)
15867
+ customRow: (P) => ({
15868
+ onClick: () => $(P)
15861
15869
  })
15862
15870
  }, null), M(), createVNode(KgVarConfigModalVarCreateModal, {
15863
15871
  visible: v.value.visible,
15864
- "onUpdate:visible": (R) => v.value.visible = R,
15872
+ "onUpdate:visible": (P) => v.value.visible = P,
15865
15873
  onKgOk: k
15866
15874
  }, null)]);
15867
15875
  }
@@ -16185,9 +16193,9 @@ const KgWarehouse$1 = "", getProps = () => ({
16185
16193
  customRender: ({
16186
16194
  record: k
16187
16195
  }) => {
16188
- var T, D, I;
16196
+ var T, $, I;
16189
16197
  const A = k;
16190
- return createVNode("div", null, [createVNode("div", null, [(T = A.whDsc) != null ? T : " ", createTextVNode(" - "), (D = A.whId) != null ? D : " "]), createVNode("div", {
16198
+ return createVNode("div", null, [createVNode("div", null, [(T = A.whDsc) != null ? T : " ", createTextVNode(" - "), ($ = A.whId) != null ? $ : " "]), createVNode("div", {
16191
16199
  class: "address"
16192
16200
  }, [(I = A.adrId) != null ? I : " "])]);
16193
16201
  }
@@ -16195,8 +16203,8 @@ const KgWarehouse$1 = "", getProps = () => ({
16195
16203
  var A;
16196
16204
  const k = (A = s.value) == null ? void 0 : A.toUpperCase();
16197
16205
  return u.value.filter((T) => {
16198
- var D, I, w, M, N, R;
16199
- return ((I = (D = T.whDsc) == null ? void 0 : D.toUpperCase()) == null ? void 0 : I.includes(k)) || ((M = (w = T.whId) == null ? void 0 : w.toUpperCase()) == null ? void 0 : M.includes(k)) || ((R = (N = T.adrId) == null ? void 0 : N.toUpperCase()) == null ? void 0 : R.includes(k));
16206
+ var $, I, w, M, N, P;
16207
+ return ((I = ($ = T.whDsc) == null ? void 0 : $.toUpperCase()) == null ? void 0 : I.includes(k)) || ((M = (w = T.whId) == null ? void 0 : w.toUpperCase()) == null ? void 0 : M.includes(k)) || ((P = (N = T.adrId) == null ? void 0 : N.toUpperCase()) == null ? void 0 : P.includes(k));
16200
16208
  });
16201
16209
  }), g = computed(() => {
16202
16210
  var k, A;