@kengic/vue 0.10.11 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3917,7 +3917,7 @@ const emptyIcon = {
3917
3917
  ...t.data
3918
3918
  }, r);
3919
3919
  }
3920
- }), name = "@kengic/vue", version = "0.10.11", data$1 = {
3920
+ }), name = "@kengic/vue", version = "0.11.1", data$1 = {
3921
3921
  width: 24,
3922
3922
  height: 24,
3923
3923
  body: '<path fill="currentColor" d="M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h11.175q.4 0 .763.15t.637.425l2.85 2.85q.275.275.425.638t.15.762V12.3q-.475-.2-.988-.263T19 12.05V7.825L16.175 5H5v14h6v2H5ZM5 5v14V5Zm8 17v-1.65q0-.2.075-.388t.225-.337l5.225-5.2q.225-.225.5-.325t.55-.1q.3 0 .575.113t.5.337l.925.925q.2.225.313.5t.112.55q0 .275-.1.563t-.325.512l-5.2 5.2q-.15.15-.338.225T15.65 23H14q-.425 0-.712-.287T13 22Zm7.5-5.575l-.925-.925l.925.925Zm-6 5.075h.95l3.025-3.05l-.45-.475l-.475-.45l-3.05 3.025v.95Zm3.525-3.525l-.475-.45l.925.925l-.45-.475ZM7 10h7q.425 0 .713-.288T15 9V7q0-.425-.288-.713T14 6H7q-.425 0-.713.288T6 7v2q0 .425.288.713T7 10Zm5 8h.1l2.9-2.875V15q0-1.25-.875-2.125T12 12q-1.25 0-2.125.875T9 15q0 1.25.875 2.125T12 18Z"/>'
@@ -3940,16 +3940,16 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3940
3940
  var I = ["th", "st", "nd", "rd"], V = $ % 100;
3941
3941
  return "[" + $ + (I[(V - 20) % 10] || I[V] || I[0]) + "]";
3942
3942
  } }, T = function($, I, V) {
3943
- var P = String($);
3944
- return !P || P.length >= I ? $ : "" + Array(I + 1 - P.length).join(V) + $;
3943
+ var N = String($);
3944
+ return !N || N.length >= I ? $ : "" + Array(I + 1 - N.length).join(V) + $;
3945
3945
  }, k = { s: T, z: function($) {
3946
- var I = -$.utcOffset(), V = Math.abs(I), P = Math.floor(V / 60), x = V % 60;
3947
- return (I <= 0 ? "+" : "-") + T(P, 2, "0") + ":" + T(x, 2, "0");
3946
+ var I = -$.utcOffset(), V = Math.abs(I), N = Math.floor(V / 60), x = V % 60;
3947
+ return (I <= 0 ? "+" : "-") + T(N, 2, "0") + ":" + T(x, 2, "0");
3948
3948
  }, m: function $(I, V) {
3949
3949
  if (I.date() < V.date())
3950
3950
  return -$(V, I);
3951
- var P = 12 * (V.year() - I.year()) + (V.month() - I.month()), x = I.clone().add(P, d), H = V - x < 0, K = I.clone().add(P + (H ? -1 : 1), d);
3952
- return +(-(P + (V - x) / (H ? x - K : K - x)) || 0);
3951
+ var N = 12 * (V.year() - I.year()) + (V.month() - I.month()), x = I.clone().add(N, d), H = V - x < 0, K = I.clone().add(N + (H ? -1 : 1), d);
3952
+ return +(-(N + (V - x) / (H ? x - K : K - x)) || 0);
3953
3953
  }, a: function($) {
3954
3954
  return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
3955
3955
  }, p: function($) {
@@ -3960,7 +3960,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3960
3960
  C[A] = E;
3961
3961
  var D = "$isDayjsObject", w = function($) {
3962
3962
  return $ instanceof R || !(!$ || !$[D]);
3963
- }, O = function $(I, V, P) {
3963
+ }, O = function $(I, V, N) {
3964
3964
  var x;
3965
3965
  if (!I)
3966
3966
  return A;
@@ -3974,7 +3974,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3974
3974
  var F = I.name;
3975
3975
  C[F] = I, x = F;
3976
3976
  }
3977
- return !P && x && (A = x), x || !P && A;
3977
+ return !N && x && (A = x), x || !N && A;
3978
3978
  }, M = function($, I) {
3979
3979
  if (w($))
3980
3980
  return $.clone();
@@ -3990,8 +3990,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3990
3990
  }
3991
3991
  var I = $.prototype;
3992
3992
  return I.parse = function(V) {
3993
- this.$d = function(P) {
3994
- var x = P.date, H = P.utc;
3993
+ this.$d = function(N) {
3994
+ var x = N.date, H = N.utc;
3995
3995
  if (x === null)
3996
3996
  return new Date(NaN);
3997
3997
  if (L.u(x))
@@ -4014,33 +4014,33 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4014
4014
  return L;
4015
4015
  }, I.isValid = function() {
4016
4016
  return this.$d.toString() !== _;
4017
- }, I.isSame = function(V, P) {
4017
+ }, I.isSame = function(V, N) {
4018
4018
  var x = M(V);
4019
- return this.startOf(P) <= x && x <= this.endOf(P);
4020
- }, I.isAfter = function(V, P) {
4021
- return M(V) < this.startOf(P);
4022
- }, I.isBefore = function(V, P) {
4023
- return this.endOf(P) < M(V);
4024
- }, I.$g = function(V, P, x) {
4025
- return L.u(V) ? this[P] : this.set(x, V);
4019
+ return this.startOf(N) <= x && x <= this.endOf(N);
4020
+ }, I.isAfter = function(V, N) {
4021
+ return M(V) < this.startOf(N);
4022
+ }, I.isBefore = function(V, N) {
4023
+ return this.endOf(N) < M(V);
4024
+ }, I.$g = function(V, N, x) {
4025
+ return L.u(V) ? this[N] : this.set(x, V);
4026
4026
  }, I.unix = function() {
4027
4027
  return Math.floor(this.valueOf() / 1e3);
4028
4028
  }, I.valueOf = function() {
4029
4029
  return this.$d.getTime();
4030
- }, I.startOf = function(V, P) {
4031
- var x = this, H = !!L.u(P) || P, K = L.p(V), F = function(fe, ae) {
4032
- var N = L.w(x.$u ? Date.UTC(x.$y, ae, fe) : new Date(x.$y, ae, fe), x);
4033
- return H ? N : N.endOf(c);
4030
+ }, I.startOf = function(V, N) {
4031
+ var x = this, H = !!L.u(N) || N, K = L.p(V), F = function(fe, ae) {
4032
+ var P = L.w(x.$u ? Date.UTC(x.$y, ae, fe) : new Date(x.$y, ae, fe), x);
4033
+ return H ? P : P.endOf(c);
4034
4034
  }, Y = function(fe, ae) {
4035
4035
  return L.w(x.toDate()[fe].apply(x.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), x);
4036
- }, Q = this.$W, X = this.$M, J = this.$D, te = "set" + (this.$u ? "UTC" : "");
4036
+ }, q = this.$W, X = this.$M, J = this.$D, te = "set" + (this.$u ? "UTC" : "");
4037
4037
  switch (K) {
4038
4038
  case v:
4039
4039
  return H ? F(1, 0) : F(31, 11);
4040
4040
  case d:
4041
4041
  return H ? F(1, X) : F(0, X + 1);
4042
4042
  case u:
4043
- var le = this.$locale().weekStart || 0, _e = (Q < le ? Q + 7 : Q) - le;
4043
+ var ue = this.$locale().weekStart || 0, _e = (q < ue ? q + 7 : q) - ue;
4044
4044
  return F(H ? J - _e : J + (6 - _e), X);
4045
4045
  case c:
4046
4046
  case y:
@@ -4056,22 +4056,22 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4056
4056
  }
4057
4057
  }, I.endOf = function(V) {
4058
4058
  return this.startOf(V, !1);
4059
- }, I.$set = function(V, P) {
4060
- var x, H = L.p(V), K = "set" + (this.$u ? "UTC" : ""), F = (x = {}, x[c] = K + "Date", x[y] = K + "Date", x[d] = K + "Month", x[v] = K + "FullYear", x[i] = K + "Hours", x[o] = K + "Minutes", x[l] = K + "Seconds", x[s] = K + "Milliseconds", x)[H], Y = H === c ? this.$D + (P - this.$W) : P;
4059
+ }, I.$set = function(V, N) {
4060
+ var x, H = L.p(V), K = "set" + (this.$u ? "UTC" : ""), F = (x = {}, x[c] = K + "Date", x[y] = K + "Date", x[d] = K + "Month", x[v] = K + "FullYear", x[i] = K + "Hours", x[o] = K + "Minutes", x[l] = K + "Seconds", x[s] = K + "Milliseconds", x)[H], Y = H === c ? this.$D + (N - this.$W) : N;
4061
4061
  if (H === d || H === v) {
4062
- var Q = this.clone().set(y, 1);
4063
- Q.$d[F](Y), Q.init(), this.$d = Q.set(y, Math.min(this.$D, Q.daysInMonth())).$d;
4062
+ var q = this.clone().set(y, 1);
4063
+ q.$d[F](Y), q.init(), this.$d = q.set(y, Math.min(this.$D, q.daysInMonth())).$d;
4064
4064
  } else
4065
4065
  F && this.$d[F](Y);
4066
4066
  return this.init(), this;
4067
- }, I.set = function(V, P) {
4068
- return this.clone().$set(V, P);
4067
+ }, I.set = function(V, N) {
4068
+ return this.clone().$set(V, N);
4069
4069
  }, I.get = function(V) {
4070
4070
  return this[L.p(V)]();
4071
- }, I.add = function(V, P) {
4071
+ }, I.add = function(V, N) {
4072
4072
  var x, H = this;
4073
4073
  V = Number(V);
4074
- var K = L.p(P), F = function(X) {
4074
+ var K = L.p(N), F = function(X) {
4075
4075
  var J = M(H);
4076
4076
  return L.w(J.date(J.date() + Math.round(X * V)), H);
4077
4077
  };
@@ -4083,49 +4083,49 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4083
4083
  return F(1);
4084
4084
  if (K === u)
4085
4085
  return F(7);
4086
- var Y = (x = {}, x[o] = a, x[i] = n, x[l] = r, x)[K] || 1, Q = this.$d.getTime() + V * Y;
4087
- return L.w(Q, this);
4088
- }, I.subtract = function(V, P) {
4089
- return this.add(-1 * V, P);
4086
+ var Y = (x = {}, x[o] = a, x[i] = n, x[l] = r, x)[K] || 1, q = this.$d.getTime() + V * Y;
4087
+ return L.w(q, this);
4088
+ }, I.subtract = function(V, N) {
4089
+ return this.add(-1 * V, N);
4090
4090
  }, I.format = function(V) {
4091
- var P = this, x = this.$locale();
4091
+ var N = this, x = this.$locale();
4092
4092
  if (!this.isValid())
4093
4093
  return x.invalidDate || _;
4094
- var H = V || "YYYY-MM-DDTHH:mm:ssZ", K = L.z(this), F = this.$H, Y = this.$m, Q = this.$M, X = x.weekdays, J = x.months, te = x.meridiem, le = function(ae, N, U, q) {
4095
- return ae && (ae[N] || ae(P, H)) || U[N].slice(0, q);
4094
+ var H = V || "YYYY-MM-DDTHH:mm:ssZ", K = L.z(this), F = this.$H, Y = this.$m, q = this.$M, X = x.weekdays, J = x.months, te = x.meridiem, ue = function(ae, P, U, Q) {
4095
+ return ae && (ae[P] || ae(N, H)) || U[P].slice(0, Q);
4096
4096
  }, _e = function(ae) {
4097
4097
  return L.s(F % 12 || 12, ae, "0");
4098
- }, fe = te || function(ae, N, U) {
4099
- var q = ae < 12 ? "AM" : "PM";
4100
- return U ? q.toLowerCase() : q;
4098
+ }, fe = te || function(ae, P, U) {
4099
+ var Q = ae < 12 ? "AM" : "PM";
4100
+ return U ? Q.toLowerCase() : Q;
4101
4101
  };
4102
- return H.replace(b, function(ae, N) {
4103
- return N || function(U) {
4102
+ return H.replace(b, function(ae, P) {
4103
+ return P || function(U) {
4104
4104
  switch (U) {
4105
4105
  case "YY":
4106
- return String(P.$y).slice(-2);
4106
+ return String(N.$y).slice(-2);
4107
4107
  case "YYYY":
4108
- return L.s(P.$y, 4, "0");
4108
+ return L.s(N.$y, 4, "0");
4109
4109
  case "M":
4110
- return Q + 1;
4110
+ return q + 1;
4111
4111
  case "MM":
4112
- return L.s(Q + 1, 2, "0");
4112
+ return L.s(q + 1, 2, "0");
4113
4113
  case "MMM":
4114
- return le(x.monthsShort, Q, J, 3);
4114
+ return ue(x.monthsShort, q, J, 3);
4115
4115
  case "MMMM":
4116
- return le(J, Q);
4116
+ return ue(J, q);
4117
4117
  case "D":
4118
- return P.$D;
4118
+ return N.$D;
4119
4119
  case "DD":
4120
- return L.s(P.$D, 2, "0");
4120
+ return L.s(N.$D, 2, "0");
4121
4121
  case "d":
4122
- return String(P.$W);
4122
+ return String(N.$W);
4123
4123
  case "dd":
4124
- return le(x.weekdaysMin, P.$W, X, 2);
4124
+ return ue(x.weekdaysMin, N.$W, X, 2);
4125
4125
  case "ddd":
4126
- return le(x.weekdaysShort, P.$W, X, 3);
4126
+ return ue(x.weekdaysShort, N.$W, X, 3);
4127
4127
  case "dddd":
4128
- return X[P.$W];
4128
+ return X[N.$W];
4129
4129
  case "H":
4130
4130
  return String(F);
4131
4131
  case "HH":
@@ -4143,11 +4143,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4143
4143
  case "mm":
4144
4144
  return L.s(Y, 2, "0");
4145
4145
  case "s":
4146
- return String(P.$s);
4146
+ return String(N.$s);
4147
4147
  case "ss":
4148
- return L.s(P.$s, 2, "0");
4148
+ return L.s(N.$s, 2, "0");
4149
4149
  case "SSS":
4150
- return L.s(P.$ms, 3, "0");
4150
+ return L.s(N.$ms, 3, "0");
4151
4151
  case "Z":
4152
4152
  return K;
4153
4153
  }
@@ -4156,8 +4156,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4156
4156
  });
4157
4157
  }, I.utcOffset = function() {
4158
4158
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
4159
- }, I.diff = function(V, P, x) {
4160
- var H, K = this, F = L.p(P), Y = M(V), Q = (Y.utcOffset() - this.utcOffset()) * a, X = this - Y, J = function() {
4159
+ }, I.diff = function(V, N, x) {
4160
+ var H, K = this, F = L.p(N), Y = M(V), q = (Y.utcOffset() - this.utcOffset()) * a, X = this - Y, J = function() {
4161
4161
  return L.m(K, Y);
4162
4162
  };
4163
4163
  switch (F) {
@@ -4171,10 +4171,10 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4171
4171
  H = J() / 3;
4172
4172
  break;
4173
4173
  case u:
4174
- H = (X - Q) / 6048e5;
4174
+ H = (X - q) / 6048e5;
4175
4175
  break;
4176
4176
  case c:
4177
- H = (X - Q) / 864e5;
4177
+ H = (X - q) / 864e5;
4178
4178
  break;
4179
4179
  case i:
4180
4180
  H = X / n;
@@ -4193,10 +4193,10 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4193
4193
  return this.endOf(d).$D;
4194
4194
  }, I.$locale = function() {
4195
4195
  return C[this.$L];
4196
- }, I.locale = function(V, P) {
4196
+ }, I.locale = function(V, N) {
4197
4197
  if (!V)
4198
4198
  return this.$L;
4199
- var x = this.clone(), H = O(V, P, !0);
4199
+ var x = this.clone(), H = O(V, N, !0);
4200
4200
  return H && (x.$L = H), x;
4201
4201
  }, I.clone = function() {
4202
4202
  return L.w(this.$d, this);
@@ -6295,6 +6295,9 @@ var KG_APP_PREFIX = /* @__PURE__ */ ((e) => (e.WMS_DATA_MANAGER = "/wms/data-man
6295
6295
  const KG_APP_PREFIXS = ["/wms/data-manager", "/wms/business-manager", "/wcs", "/sys"];
6296
6296
  var KG_FORM_ITEM_TYPE = /* @__PURE__ */ ((e) => (e.INPUT = "INPUT", e.INPUT_PASSWORD = "INPUT_PASSWORD", e.INPUT_NUMBER = "INPUT_NUMBER", e.TEXT_AREA = "TEXT_AREA", e.CHECKBOX = "CHECKBOX", e.CHECKBOX_GROUP = "CHECKBOX_GROUP", e.RADIO_GROUP = "RADIO_GROUP", e.SWITCH = "SWITCH", e.SELECT = "SELECT", e.SELECT_MULTIPLE = "SELECT_MULTIPLE", e.DATE_DATE = "DATE_DATE", e.DATE_DATE_RANGE = "DATE_DATE_RANGE", e.DATE_TIME = "DATE_TIME", e.DATE_TIME_RANGE = "DATE_TIME_RANGE", e.DATE_DATETIME = "DATE_DATETIME", e.DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE", e.DATE_WEEK = "DATE_WEEK", e.DATE_MONTH = "DATE_MONTH", e.DATE_YEAR = "DATE_YEAR", e.BUTTON_UPLOAD = "BUTTON_UPLOAD", e))(KG_FORM_ITEM_TYPE || {}), KG_FORM_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e.TABLE = "TABLE", e))(KG_FORM_CONTEXT || {}), KG_TABLE_CELL_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.YN = "YN", e.ENUM = "ENUM", e.PROGRESS = "PROGRESS", e.FILE_SIZE = "FILE_SIZE", e.UPDATE_LINK = "UPDATE_LINK", e.ROUTE_LINK = "ROUTE_LINK", e.DESC = "DESC", e))(KG_TABLE_CELL_DISPLAY_TYPE || {}), KG_BUTTON_TYPE = /* @__PURE__ */ ((e) => (e.CREATE = "CREATE", e.UPDATE = "UPDATE", e.COPY = "COPY", e.DELETE = "DELETE", e.IMPORT = "IMPORT", e.IMPORT_TEMPLATE = "IMPORT_TEMPLATE", e.EXPORT = "EXPORT", e.SEARCH = "SEARCH", e.REFRESH = "REFRESH", e.OTHER = "OTHER", e))(KG_BUTTON_TYPE || {}), KG_BUTTON_COLOR = /* @__PURE__ */ ((e) => (e.DANGER = "DANGER", e.WARN = "WARN", e))(KG_BUTTON_COLOR || {}), KG_BUTTON_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.DEFAULT = "DEFAULT", e.SELECT = "SELECT", e))(KG_BUTTON_DISPLAY_TYPE || {}), KG_VAR_SUBMIT__DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.MODAL = "MODAL", e.DRAWER = "DRAWER", e.TABLE = "TABLE", e))(KG_VAR_SUBMIT__DISPLAY_TYPE || {}), KG_VAR_SUBMIT__LAYOUT = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(KG_VAR_SUBMIT__LAYOUT || {}), KG_VAR_INPUT__DATA_TYPE = /* @__PURE__ */ ((e) => (e.NUMBER = "NUMBER", e))(KG_VAR_INPUT__DATA_TYPE || {}), KG_CUSTOM_LEVEL = /* @__PURE__ */ ((e) => (e[e.L0 = 0] = "L0", e[e.L10 = 10] = "L10", e))(KG_CUSTOM_LEVEL || {}), KG_POSSIBILITY_DATA_TYPE = /* @__PURE__ */ ((e) => (e.STRING = "string", e.NUMBER = "number", e.BOOLEAN = "boolean", e))(KG_POSSIBILITY_DATA_TYPE || {}), KG_WIDTH_UNIT = /* @__PURE__ */ ((e) => (e.SPAN = "SPAN", e.PX = "PX", e))(KG_WIDTH_UNIT || {}), KG_EXCEL_SUFFIX = /* @__PURE__ */ ((e) => (e.XLS = "xls", e.XLSX = "xlsx", e))(KG_EXCEL_SUFFIX || {}), KG_DESCRIPTION_CODE_NAME = /* @__PURE__ */ ((e) => (e.YN = "yn", e.VAR_SUBMIT_LAYOUT = "var_submit_layout", e.VAR_SPAN = "var_span", e.VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type", e.VAR_WIDTH_UNIT = "var_width_unit", e))(KG_DESCRIPTION_CODE_NAME || {}), KG_DYNAMIC_QUERY_OPERATOR = /* @__PURE__ */ ((e) => (e.EQ = "eq", e.NE = "ne", e.GT = "gt", e.LT = "lt", e.GTE = "gte", e.LTE = "lte", e.START_WITH = "start", e.END_WITH = "end", e.CONTAIN = "contain", e.IN = "in", e.BETWEEN = "between", e))(KG_DYNAMIC_QUERY_OPERATOR || {}), KG_HEADERS = /* @__PURE__ */ ((e) => (e.DYNAMIC_QUERY = "Kg-Dynamic-Query", e))(KG_HEADERS || {});
6297
6297
  class KgLogger {
6298
+ static deprecated(t, r = {}, a = !0) {
6299
+ KgLogger.log("deprecated", t, r, a);
6300
+ }
6298
6301
  static error(t, r = {}, a = !0) {
6299
6302
  KgLogger.log("error", t, r, a);
6300
6303
  }
@@ -6316,6 +6319,9 @@ class KgLogger {
6316
6319
  case "error":
6317
6320
  l = `[ERROR] ${r}`, o = "color:#f00;";
6318
6321
  break;
6322
+ case "deprecated":
6323
+ l = `[DEPRECATED] ${r}`, o = "color:#f00;";
6324
+ break;
6319
6325
  }
6320
6326
  n ? console.groupCollapsed(`%c[@kengic/vue] ${l}`, o) : console.group(`%c[@kengic/vue] ${l}`, o), toPairs$1(cloneDeep(a)).forEach((i) => {
6321
6327
  console.log(`%c${i[0]}:`, "color: #000; font-weight: bold;", i[1]);
@@ -9470,10 +9476,10 @@ function useKgVar(e, t, r = 0) {
9470
9476
  }), onUnmounted(() => {
9471
9477
  u.dispose(c);
9472
9478
  }));
9473
- const d = (J) => computed(() => u.t(c, J)), p = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), _ = computed(() => u.isRetrieved(c)), g = computed(() => u.isCreating(c)), b = computed(() => u.isCreatingRequesting(c)), E = computed(() => u.isUpdating(c)), T = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), A = computed(() => u.isCopyingRequesting(c)), C = computed(() => u.isDeleting(c)), D = computed(() => u.isDeletingRequesting(c)), w = computed(() => u.isOtherRequesting(c)), O = computed(() => u.getVarButtons(c)), M = computed(() => u.getVarButtonSearch(c)), L = computed(() => u.getVarButtonCreate(c)), R = computed(() => u.getVarButtonUpdate(c)), B = computed(() => u.getVarButtonCopy(c)), $ = computed(() => u.getVarButtonDelete(c)), I = computed(() => u.getVarProfileMasters(c)), V = computed(() => u.getCurrentVarProfileMasterID(c)), P = computed(() => u.getCurrentVarProfileMaster(c)), x = computed(() => {
9479
+ const d = (J) => computed(() => u.t(c, J)), p = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), _ = computed(() => u.isRetrieved(c)), g = computed(() => u.isCreating(c)), b = computed(() => u.isCreatingRequesting(c)), E = computed(() => u.isUpdating(c)), T = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), A = computed(() => u.isCopyingRequesting(c)), C = computed(() => u.isDeleting(c)), D = computed(() => u.isDeletingRequesting(c)), w = computed(() => u.isOtherRequesting(c)), O = computed(() => u.getVarButtons(c)), M = computed(() => u.getVarButtonSearch(c)), L = computed(() => u.getVarButtonCreate(c)), R = computed(() => u.getVarButtonUpdate(c)), B = computed(() => u.getVarButtonCopy(c)), $ = computed(() => u.getVarButtonDelete(c)), I = computed(() => u.getVarProfileMasters(c)), V = computed(() => u.getCurrentVarProfileMasterID(c)), N = computed(() => u.getCurrentVarProfileMaster(c)), x = computed(() => {
9474
9480
  var J, te;
9475
- return (te = (J = P.value) == null ? void 0 : J.varProfileDetails) != null ? te : null;
9476
- }), H = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), F = computed(() => u.getCurrentVarGridMasterID(c)), Y = computed(() => u.getCurrentVarGridMaster(c)), Q = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
9481
+ return (te = (J = N.value) == null ? void 0 : J.varProfileDetails) != null ? te : null;
9482
+ }), H = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), F = computed(() => u.getCurrentVarGridMasterID(c)), Y = computed(() => u.getCurrentVarGridMaster(c)), q = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
9477
9483
  return {
9478
9484
  formID: c,
9479
9485
  store: u,
@@ -9498,13 +9504,13 @@ function useKgVar(e, t, r = 0) {
9498
9504
  varButtonDelete: $,
9499
9505
  varProfileMasters: I,
9500
9506
  currentVarProfileMasterID: V,
9501
- currentVarProfileMaster: P,
9507
+ currentVarProfileMaster: N,
9502
9508
  currentVarProfileDetails: x,
9503
9509
  varGridConfig: H,
9504
9510
  varGridMasters: K,
9505
9511
  currentVarGridMasteID: F,
9506
9512
  currentVarGridMaster: Y,
9507
- systemVarGridDetails: Q,
9513
+ systemVarGridDetails: q,
9508
9514
  currentVarGridDetails: X,
9509
9515
  setIsCreating: s,
9510
9516
  setIsUpdating: l,
@@ -10460,7 +10466,7 @@ const KgFormItemRadioGroup = defineComponent({
10460
10466
  }
10461
10467
  return M;
10462
10468
  }), g = computed(() => {
10463
- var L, R, B, $, I, V, P, x, H, K;
10469
+ var L, R, B, $, I, V, N, x, H, K;
10464
10470
  let M = 6;
10465
10471
  if (e.kgSpan !== void 0)
10466
10472
  M = e.kgSpan;
@@ -10478,7 +10484,7 @@ const KgFormItemRadioGroup = defineComponent({
10478
10484
  M = (V = (I = d.value) == null ? void 0 : I.upt_width) != null ? V : 6;
10479
10485
  break;
10480
10486
  case s.isCopying.value:
10481
- M = (x = (P = d.value) == null ? void 0 : P.cpy_width) != null ? x : 6;
10487
+ M = (x = (N = d.value) == null ? void 0 : N.cpy_width) != null ? x : 6;
10482
10488
  break;
10483
10489
  case s.isDeleting.value:
10484
10490
  M = (K = (H = d.value) == null ? void 0 : H.del_width) != null ? K : 6;
@@ -11423,7 +11429,7 @@ const getProps$p = () => ({
11423
11429
  return (re = O.value) != null ? re : [];
11424
11430
  }
11425
11431
  return [];
11426
- }), $ = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), I = computed(() => $.value || d.value), V = computed(() => d.value), P = ref({
11432
+ }), $ = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), I = computed(() => $.value || d.value), V = computed(() => d.value), N = ref({
11427
11433
  kgWidth: 0
11428
11434
  }), x = computed(() => {
11429
11435
  var G;
@@ -11434,12 +11440,12 @@ const getProps$p = () => ({
11434
11440
  }), K = computed(() => {
11435
11441
  var G, W;
11436
11442
  return u.value ? 398 : (W = (G = p.value) == null ? void 0 : G.max_width) != null ? W : DEFAULT_MAX_WIDTH;
11437
- }), F = computed(() => u.value ? 398 : P.value.kgWidth), Y = ref(null);
11443
+ }), F = computed(() => u.value ? 398 : N.value.kgWidth), Y = ref(null);
11438
11444
  _useResizeObserver$1(Y);
11439
- const Q = _useTitle(), X = computed(() => u.value ? 400 : P.value.kgWidth && P.value.kgWidth > 0 ? "auto" : 0), J = computed(() => X.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), te = reactive({
11445
+ const q = _useTitle(), X = computed(() => u.value ? 400 : N.value.kgWidth && N.value.kgWidth > 0 ? "auto" : 0), J = computed(() => X.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), te = reactive({
11440
11446
  isFullscreen: !1
11441
11447
  }), {
11442
- getClass: le
11448
+ getClass: ue
11443
11449
  } = _useClass(e, te), {
11444
11450
  getLayout: _e
11445
11451
  } = _useLayout(), {
@@ -11463,7 +11469,7 @@ const getProps$p = () => ({
11463
11469
  default:
11464
11470
  return;
11465
11471
  }
11466
- }), N = computed(() => {
11472
+ }), P = computed(() => {
11467
11473
  var G, W;
11468
11474
  switch (_e.value) {
11469
11475
  case "horizontal":
@@ -11480,11 +11486,11 @@ const getProps$p = () => ({
11480
11486
  }
11481
11487
  });
11482
11488
  watch(J, (G, W) => {
11483
- G === !0 && U(), W === !0 && G === !1 && q();
11489
+ G === !0 && U(), W === !0 && G === !1 && Q();
11484
11490
  }, {
11485
11491
  immediate: !0
11486
11492
  }), watch(fe, (G) => {
11487
- G && (P.value.kgWidth = G);
11493
+ G && (N.value.kgWidth = G);
11488
11494
  }, {
11489
11495
  immediate: !0
11490
11496
  });
@@ -11498,8 +11504,8 @@ const getProps$p = () => ({
11498
11504
  }))
11499
11505
  return new Promise((W, Z) => {
11500
11506
  var se;
11501
- const re = watch(i.model, async (oe) => {
11502
- oe && Object.keys(oe).length > 0 && (setTimeout(() => re()), await i.store.emit(s.formID, "open", {
11507
+ const re = watch(i.model, async (ie) => {
11508
+ ie && Object.keys(ie).length > 0 && (setTimeout(() => re()), await i.store.emit(s.formID, "open", {
11503
11509
  isCreating: s.isCreating.value,
11504
11510
  isUpdating: s.isUpdating.value,
11505
11511
  isCopying: s.isCopying.value,
@@ -11513,8 +11519,8 @@ const getProps$p = () => ({
11513
11519
  ((se = p.value) == null ? void 0 : se.dft_fullscreen_flg) === 1 && !u.value && (te.isFullscreen = !0);
11514
11520
  });
11515
11521
  }
11516
- async function q() {
11517
- P.value.kgWidth = fe.value, te.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
11522
+ async function Q() {
11523
+ N.value.kgWidth = fe.value, te.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
11518
11524
  }
11519
11525
  function z() {
11520
11526
  switch (!0) {
@@ -11562,13 +11568,13 @@ const getProps$p = () => ({
11562
11568
  return;
11563
11569
  switch (!0) {
11564
11570
  case s.isCreating.value:
11565
- await ue();
11571
+ await ce();
11566
11572
  break;
11567
11573
  case s.isUpdating.value:
11568
- await ce();
11574
+ await le();
11569
11575
  break;
11570
11576
  case s.isCopying.value:
11571
- await ie();
11577
+ await oe();
11572
11578
  break;
11573
11579
  case s.isDeleting.value:
11574
11580
  await me();
@@ -11578,8 +11584,8 @@ const getProps$p = () => ({
11578
11584
  KgUtil.throwIfNotFormError(Z);
11579
11585
  }
11580
11586
  }
11581
- async function ue() {
11582
- var W, Z, re, se, oe, de;
11587
+ async function ce() {
11588
+ var W, Z, re, se, ie, de;
11583
11589
  const G = (W = s.varButtonCreate.value) == null ? void 0 : W.cmd;
11584
11590
  if (!G) {
11585
11591
  KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -11603,26 +11609,28 @@ const getProps$p = () => ({
11603
11609
  }))
11604
11610
  return;
11605
11611
  await httpClient().request({
11606
- method: (oe = (se = s.varButtonCreate.value) == null ? void 0 : se.cmd_method) != null ? oe : "POST",
11612
+ method: (ie = (se = s.varButtonCreate.value) == null ? void 0 : se.cmd_method) != null ? ie : "POST",
11607
11613
  url: G,
11608
11614
  params: ne.value,
11609
11615
  data: ge.value
11610
- }), ((de = s.varButtonCreate.value) == null ? void 0 : de.show_success_message_flg) !== 0 && message.success(Q.title.value + n.t("kg.succeed")), await i.store.emit(s.formID, "ok", {
11616
+ }), ((de = s.varButtonCreate.value) == null ? void 0 : de.show_success_message_flg) !== 0 && message.success(q.title.value + n.t("kg.succeed")), await i.store.emit(s.formID, "ok", {
11611
11617
  isCreating: s.isCreating.value,
11612
11618
  isUpdating: s.isUpdating.value,
11613
11619
  isCopying: s.isCopying.value,
11614
11620
  isDeleting: s.isDeleting.value,
11615
11621
  row: o.selectedFirstRow.value,
11616
11622
  model: i.model
11617
- }), s.store.setIsCreating(s.formID, !1), c.search(!0);
11623
+ }), s.store.setIsCreating(s.formID, !1), c.search({
11624
+ isSearchFirstPage: !0
11625
+ });
11618
11626
  } catch (ne) {
11619
11627
  console.error(ne), i.store.emit(s.formID, "error", ne);
11620
11628
  } finally {
11621
11629
  s.store.setIsCreatingRequesting(s.formID, !1);
11622
11630
  }
11623
11631
  }
11624
- async function ce() {
11625
- var W, Z, re, se, oe, de;
11632
+ async function le() {
11633
+ var W, Z, re, se, ie, de;
11626
11634
  const G = (W = s.varButtonUpdate.value) == null ? void 0 : W.cmd;
11627
11635
  if (!G) {
11628
11636
  KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -11646,7 +11654,7 @@ const getProps$p = () => ({
11646
11654
  }))
11647
11655
  return;
11648
11656
  await httpClient().request({
11649
- method: (oe = (se = s.varButtonUpdate.value) == null ? void 0 : se.cmd_method) != null ? oe : "POST",
11657
+ method: (ie = (se = s.varButtonUpdate.value) == null ? void 0 : se.cmd_method) != null ? ie : "POST",
11650
11658
  url: G,
11651
11659
  params: ne.value,
11652
11660
  data: ge.value
@@ -11657,15 +11665,17 @@ const getProps$p = () => ({
11657
11665
  isDeleting: s.isDeleting.value,
11658
11666
  row: o.selectedFirstRow.value,
11659
11667
  model: i.model
11660
- }), s.store.setIsUpdating(s.formID, !1), c.search();
11668
+ }), s.store.setIsUpdating(s.formID, !1), c.search({
11669
+ isPreserveSelectedRows: !0
11670
+ });
11661
11671
  } catch (ne) {
11662
11672
  console.error(ne), i.store.emit(s.formID, "error", ne);
11663
11673
  } finally {
11664
11674
  s.store.setIsUpdatingRequesting(s.formID, !1);
11665
11675
  }
11666
11676
  }
11667
- async function ie() {
11668
- var W, Z, re, se, oe, de, ne, ge;
11677
+ async function oe() {
11678
+ var W, Z, re, se, ie, de, ne, ge;
11669
11679
  const G = (W = s.varButtonCopy.value) == null ? void 0 : W.cmd;
11670
11680
  if (!G) {
11671
11681
  KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -11679,7 +11689,7 @@ const getProps$p = () => ({
11679
11689
  ...(se = o.selectedFirstRow.value) != null ? se : {},
11680
11690
  ...toRaw(i.model.value)
11681
11691
  }, s.formID, r));
11682
- if (((oe = p.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete ve.value.id, await i.store.emit(s.formID, "beforeRequest", {
11692
+ if (((ie = p.value) == null ? void 0 : ie.cpy_clear_id_flg) !== 0 && delete ve.value.id, await i.store.emit(s.formID, "beforeRequest", {
11683
11693
  isCreating: s.isCreating.value,
11684
11694
  isUpdating: s.isUpdating.value,
11685
11695
  isCopying: s.isCopying.value,
@@ -11703,7 +11713,9 @@ const getProps$p = () => ({
11703
11713
  isDeleting: s.isDeleting.value,
11704
11714
  row: o.selectedFirstRow.value,
11705
11715
  model: i.model
11706
- }), s.store.setIsCopying(s.formID, !1), c.search(!0);
11716
+ }), s.store.setIsCopying(s.formID, !1), c.search({
11717
+ isSearchFirstPage: !0
11718
+ });
11707
11719
  } catch (pe) {
11708
11720
  console.error(pe), i.store.emit(s.formID, "error", pe);
11709
11721
  } finally {
@@ -11711,7 +11723,7 @@ const getProps$p = () => ({
11711
11723
  }
11712
11724
  }
11713
11725
  async function me() {
11714
- var W, Z, re, se, oe, de, ne, ge, pe, ve;
11726
+ var W, Z, re, se, ie, de, ne, ge, pe, ve;
11715
11727
  const G = (W = s.varButtonDelete.value) == null ? void 0 : W.cmd;
11716
11728
  if (!G) {
11717
11729
  KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -11721,13 +11733,13 @@ const getProps$p = () => ({
11721
11733
  }
11722
11734
  try {
11723
11735
  s.store.setIsDeletingRequesting(s.formID, !0);
11724
- let be = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonDelete.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), ye = ref((se = o.selectedRows.value) != null ? se : []);
11725
- if (((oe = s.varButtonDelete.value) == null ? void 0 : oe.del_param_clm) !== "__kg__new_delete_param" && (be = ref({
11736
+ let ye = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonDelete.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), Ce = ref((se = o.selectedRows.value) != null ? se : []);
11737
+ if (((ie = s.varButtonDelete.value) == null ? void 0 : ie.del_param_clm) !== "__kg__new_delete_param" && (ye = ref({
11726
11738
  ids: (ne = (de = o.selectedRows.value) == null ? void 0 : de.map((Ie) => {
11727
- var Se, Ee, Ce;
11728
- return (Ce = Ie[(Ee = (Se = s.varButtonDelete.value) == null ? void 0 : Se.del_param_clm) != null ? Ee : "id"]) != null ? Ce : "";
11739
+ var Te, ke, Ae;
11740
+ return (Ae = Ie[(ke = (Te = s.varButtonDelete.value) == null ? void 0 : Te.del_param_clm) != null ? ke : "id"]) != null ? Ae : "";
11729
11741
  })) != null ? ne : []
11730
- }), ye = ref({})), await i.store.emit(s.formID, "beforeRequest", {
11742
+ }), Ce = ref({})), await i.store.emit(s.formID, "beforeRequest", {
11731
11743
  isCreating: s.isCreating.value,
11732
11744
  isUpdating: s.isUpdating.value,
11733
11745
  isCopying: s.isCopying.value,
@@ -11735,15 +11747,15 @@ const getProps$p = () => ({
11735
11747
  row: o.selectedFirstRow.value,
11736
11748
  rows: o.selectedRows.value,
11737
11749
  model: i.model,
11738
- params: be,
11739
- data: ye
11750
+ params: ye,
11751
+ data: Ce
11740
11752
  }))
11741
11753
  return;
11742
11754
  await httpClient().request({
11743
11755
  method: (pe = (ge = s.varButtonDelete.value) == null ? void 0 : ge.cmd_method) != null ? pe : "DELETE",
11744
11756
  url: G,
11745
- params: be.value,
11746
- data: ye.value
11757
+ params: ye.value,
11758
+ data: Ce.value
11747
11759
  }, {
11748
11760
  joinParamsToUrl: !0
11749
11761
  }), ((ve = s.varButtonDelete.value) == null ? void 0 : ve.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), await l.store.emit(s.formID, "deleteOk", {
@@ -11756,14 +11768,16 @@ const getProps$p = () => ({
11756
11768
  isDeleting: s.isDeleting.value,
11757
11769
  row: o.selectedFirstRow.value,
11758
11770
  model: i.model
11759
- }), s.store.setIsDeleting(s.formID, !1), c.search(!0);
11760
- } catch (be) {
11761
- console.error(be), i.store.emit(s.formID, "error", be);
11771
+ }), s.store.setIsDeleting(s.formID, !1), c.search({
11772
+ isSearchFirstPage: !0
11773
+ });
11774
+ } catch (ye) {
11775
+ console.error(ye), i.store.emit(s.formID, "error", ye);
11762
11776
  } finally {
11763
11777
  s.store.setIsDeletingRequesting(s.formID, !1);
11764
11778
  }
11765
11779
  }
11766
- function he(G) {
11780
+ function be(G) {
11767
11781
  var Z, re;
11768
11782
  const W = (re = (Z = a == null ? void 0 : a.KgSubmit) == null ? void 0 : Z["KgForm.Item"]) == null ? void 0 : re[G.var_nam];
11769
11783
  return isFunction$2(W) ? createVNode(KgForm.Item, {
@@ -11774,7 +11788,7 @@ const getProps$p = () => ({
11774
11788
  }, {
11775
11789
  control: ({
11776
11790
  frm_id: se,
11777
- varName: oe,
11791
+ varName: ie,
11778
11792
  props: de,
11779
11793
  model: ne,
11780
11794
  varVariableConfig: ge,
@@ -11782,7 +11796,7 @@ const getProps$p = () => ({
11782
11796
  varSubmitField: ve
11783
11797
  }) => W({
11784
11798
  frm_id: se,
11785
- varName: oe,
11799
+ varName: ie,
11786
11800
  props: de,
11787
11801
  model: ne,
11788
11802
  varVariableConfig: ge,
@@ -11796,7 +11810,7 @@ const getProps$p = () => ({
11796
11810
  onKgSubmit: ee
11797
11811
  }, null);
11798
11812
  }
11799
- function Te() {
11813
+ function he() {
11800
11814
  let G, W;
11801
11815
  return createVNode(KgResizable, {
11802
11816
  kgType: i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
@@ -11804,7 +11818,7 @@ const getProps$p = () => ({
11804
11818
  kgMaxWidth: K.value,
11805
11819
  kgWidth: F.value,
11806
11820
  kgDisabled: x.value,
11807
- "onUpdate:kgWidth": (Z) => P.value.kgWidth = Z
11821
+ "onUpdate:kgWidth": (Z) => N.value.kgWidth = Z
11808
11822
  }, {
11809
11823
  default: () => [createVNode(Spin, {
11810
11824
  spinning: d.value
@@ -11814,17 +11828,17 @@ const getProps$p = () => ({
11814
11828
  model: i.model.value,
11815
11829
  layout: _e.value,
11816
11830
  labelCol: ae.value,
11817
- wrapperCol: N.value
11831
+ wrapperCol: P.value
11818
11832
  }, {
11819
11833
  default: () => [createVNode("div", {
11820
11834
  ref: Y
11821
11835
  }, [M.value.length > 0 && createVNode(Row, {
11822
11836
  gutter: 12
11823
- }, _isSlot$9(G = M.value.map(he)) ? G : {
11837
+ }, _isSlot$9(G = M.value.map(be)) ? G : {
11824
11838
  default: () => [G]
11825
11839
  }), L.value.length > 0 && B.value.length > 0 && createVNode(Divider, null, null), R.value.length > 0 && createVNode(Row, {
11826
11840
  gutter: 12
11827
- }, _isSlot$9(W = R.value.map(he)) ? W : {
11841
+ }, _isSlot$9(W = R.value.map(be)) ? W : {
11828
11842
  default: () => [W]
11829
11843
  }), u.value && createVNode("div", {
11830
11844
  style: "text-align: center; padding: 6px 0 12px;"
@@ -11833,7 +11847,7 @@ const getProps$p = () => ({
11833
11847
  })]
11834
11848
  });
11835
11849
  }
11836
- function ke() {
11850
+ function Se() {
11837
11851
  let G, W;
11838
11852
  return createVNode("div", null, [createVNode(Button, {
11839
11853
  type: "primary",
@@ -11852,10 +11866,10 @@ const getProps$p = () => ({
11852
11866
  default: () => [W]
11853
11867
  })]);
11854
11868
  }
11855
- function Ae() {
11869
+ function Ee() {
11856
11870
  return createVNode("div", {
11857
- title: Q.title.value
11858
- }, [Q.title.value]);
11871
+ title: q.title.value
11872
+ }, [q.title.value]);
11859
11873
  }
11860
11874
  function Me() {
11861
11875
  return createVNode(KgSubmitHeader, {
@@ -11867,7 +11881,7 @@ const getProps$p = () => ({
11867
11881
  }, null);
11868
11882
  }
11869
11883
  return onUnmounted(async () => {
11870
- await q();
11884
+ await Q();
11871
11885
  }), () => createVNode(Drawer, {
11872
11886
  visible: J.value,
11873
11887
  placement: "right",
@@ -11876,13 +11890,13 @@ const getProps$p = () => ({
11876
11890
  keyboard: !1,
11877
11891
  destroyOnClose: !0,
11878
11892
  width: X.value,
11879
- class: le.value,
11893
+ class: ue.value,
11880
11894
  "kg-frm_id": s.formID
11881
11895
  }, {
11882
- title: Ae,
11896
+ title: Ee,
11883
11897
  extra: Me,
11884
- default: Te,
11885
- footer: ke
11898
+ default: he,
11899
+ footer: Se
11886
11900
  });
11887
11901
  }
11888
11902
  });
@@ -13211,8 +13225,8 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
13211
13225
  }
13212
13226
  });
13213
13227
  c.value = c.value.map((I) => {
13214
- var P;
13215
- const V = (P = B == null ? void 0 : B.varGridDetails) == null ? void 0 : P.find((x) => x.var_nam === I.var_nam);
13228
+ var N;
13229
+ const V = (N = B == null ? void 0 : B.varGridDetails) == null ? void 0 : N.find((x) => x.var_nam === I.var_nam);
13216
13230
  return V ? {
13217
13231
  ...I,
13218
13232
  ...V,
@@ -13849,13 +13863,13 @@ const getProps$h = () => ({
13849
13863
  }, null);
13850
13864
  }
13851
13865
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
13852
- const I = KgUtil.tryParseJSON((D = i.value) == null ? void 0 : D.display_type_properties), V = isArrayLike(I) && I.find((P) => P.value === e.kgValue);
13866
+ const I = KgUtil.tryParseJSON((D = i.value) == null ? void 0 : D.display_type_properties), V = isArrayLike(I) && I.find((N) => N.value === e.kgValue);
13853
13867
  if (V) {
13854
- const P = n.t(V.varName).value;
13855
- return P ? createVNode(Tag, {
13868
+ const N = n.t(V.varName).value;
13869
+ return N ? createVNode(Tag, {
13856
13870
  color: (w = V.color) != null ? w : "default"
13857
- }, _isSlot$5(P) ? P : {
13858
- default: () => [P]
13871
+ }, _isSlot$5(N) ? N : {
13872
+ default: () => [N]
13859
13873
  }) : T();
13860
13874
  } else
13861
13875
  return T();
@@ -13863,7 +13877,7 @@ const getProps$h = () => ({
13863
13877
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
13864
13878
  const I = KgUtil.tryParseJSON((O = i.value) == null ? void 0 : O.display_type_properties);
13865
13879
  if (I.isTag && isArrayLike(I.tagColors)) {
13866
- const V = I.tagColors.find((P) => P.value === e.kgValue);
13880
+ const V = I.tagColors.find((N) => N.value === e.kgValue);
13867
13881
  return v.value ? createVNode(Tag, {
13868
13882
  color: (M = V == null ? void 0 : V.color) != null ? M : "default"
13869
13883
  }, {
@@ -13991,7 +14005,7 @@ function _useColumns(e) {
13991
14005
  index: C
13992
14006
  }) => C + 1
13993
14007
  }, ...(A = b == null ? void 0 : b.map((C, D) => {
13994
- var P, x, H;
14008
+ var N, x, H;
13995
14009
  const w = C.var_nam;
13996
14010
  function O() {
13997
14011
  return C.width === "auto" ? "auto" : Number(C.width) || KG_TABLE_TD_DEFAULT_WIDTH;
@@ -14006,16 +14020,16 @@ function _useColumns(e) {
14006
14020
  return "right";
14007
14021
  }
14008
14022
  function R() {
14009
- var K, F, Y, Q;
14010
- return !(C.ord_flg !== 1 || (F = (K = t == null ? void 0 : t.value) == null ? void 0 : K.KgTable) != null && F.kgDisabled || isNil((Q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) == null ? void 0 : Q.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || y.length <= 0);
14023
+ var K, F, Y, q;
14024
+ return !(C.ord_flg !== 1 || (F = (K = t == null ? void 0 : t.value) == null ? void 0 : K.KgTable) != null && F.kgDisabled || isNil((q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) == null ? void 0 : q.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || y.length <= 0);
14011
14025
  }
14012
14026
  function B() {
14013
- var K, F, Y, Q, X, J;
14014
- if (((F = (K = v.option.value.KgTable) == null ? void 0 : K.filter) == null ? void 0 : F.on) === !0 && C.filter_flag === 1 && !((Q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) != null && Q.kgDisabled) && !(isNil((J = (X = t == null ? void 0 : t.value) == null ? void 0 : X.KgTable) == null ? void 0 : J.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(y.length <= 0))
14027
+ var K, F, Y, q, X, J;
14028
+ if (((F = (K = v.option.value.KgTable) == null ? void 0 : K.filter) == null ? void 0 : F.on) === !0 && C.filter_flag === 1 && !((q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) != null && q.kgDisabled) && !(isNil((J = (X = t == null ? void 0 : t.value) == null ? void 0 : X.KgTable) == null ? void 0 : J.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(y.length <= 0))
14015
14029
  return uniqBy(y.map((te) => {
14016
- var le;
14030
+ var ue;
14017
14031
  return {
14018
- value: (le = te == null ? void 0 : te[w]) != null ? le : "",
14032
+ value: (ue = te == null ? void 0 : te[w]) != null ? ue : "",
14019
14033
  text: l({
14020
14034
  column: {
14021
14035
  dataIndex: w
@@ -14060,7 +14074,7 @@ function _useColumns(e) {
14060
14074
  align: I(),
14061
14075
  fixed: L(),
14062
14076
  sorter: R(),
14063
- sortOrder: ((P = i.value) == null ? void 0 : P.field) === w && (H = (x = i.value) == null ? void 0 : x.order) != null ? H : null,
14077
+ sortOrder: ((N = i.value) == null ? void 0 : N.field) === w && (H = (x = i.value) == null ? void 0 : x.order) != null ? H : null,
14064
14078
  filteredValue: $(),
14065
14079
  filters: B(),
14066
14080
  onFilter: (K, F) => K === "" ? isNil(F == null ? void 0 : F[w]) || (F == null ? void 0 : F[w]) === "" : (F == null ? void 0 : F[w]) === K,
@@ -14092,7 +14106,9 @@ function _useColumns(e) {
14092
14106
  let p = null;
14093
14107
  return watch(r.currentVarGridMasteID, (v, y) => {
14094
14108
  i.value = {}, p == null || p(), p = watch(i, () => {
14095
- p(), p = null, a.search(!0);
14109
+ p(), p = null, a.search({
14110
+ isSearchFirstPage: !0
14111
+ });
14096
14112
  }, {
14097
14113
  deep: !0
14098
14114
  });
@@ -14238,16 +14254,16 @@ const KgTable$1 = "", getProps$g = () => ({
14238
14254
  setup: function(e) {
14239
14255
  var ae;
14240
14256
  const t = inject("$dayjs", dayjs), r = inject(DI_KG_VAR__KG_SLOTS, null), a = inject(DI_KG_VAR__KG_PROPS, null), n = useKg(), s = useKgVar(), l = useKgSearch(), o = useKgTable(), i = useKgSubmit();
14241
- l.onSearch(async ({
14242
- resetPageIndex: N
14243
- }) => (K(N), !1)), l.onReset(async () => (p.value = {}, K(!0), !1)), o.store.$onAction(async ({
14244
- name: N,
14257
+ l.onSearch(async (P) => (K(P), !1)), l.onReset(async () => (p.value = {}, K({
14258
+ isSearchFirstPage: !0
14259
+ }), !1)), o.store.$onAction(async ({
14260
+ name: P,
14245
14261
  args: U
14246
14262
  }) => {
14247
- switch (N) {
14263
+ switch (P) {
14248
14264
  case "setRowSelect":
14249
14265
  if (U[0] === s.formID) {
14250
- const q = U[1], z = U[2], ee = q[o.id.value];
14266
+ const Q = U[1], z = U[2], ee = Q[o.id.value];
14251
14267
  switch (!0) {
14252
14268
  case (z && !$.value.includes(ee)):
14253
14269
  F([...$.value, ee]);
@@ -14278,42 +14294,42 @@ const KgTable$1 = "", getProps$g = () => ({
14278
14294
  datas: b,
14279
14295
  transformDatas: E
14280
14296
  } = _useDatas(), T = computed(() => {
14281
- var N, U;
14282
- return (U = (N = s.varButtonSearch.value) == null ? void 0 : N.cmd) != null ? U : null;
14297
+ var P, U;
14298
+ return (U = (P = s.varButtonSearch.value) == null ? void 0 : P.cmd) != null ? U : null;
14283
14299
  }), k = computed(() => {
14284
- var U, q, z, ee, ue, ce, ie, me, he;
14285
- let N = {
14300
+ var U, Q, z, ee, ce, le, oe, me, be;
14301
+ let P = {
14286
14302
  pageNo: I.pageIndex,
14287
14303
  pageSize: I.pageSize,
14288
- column: (q = (U = p.value) == null ? void 0 : U.field) != null ? q : void 0,
14304
+ column: (Q = (U = p.value) == null ? void 0 : U.field) != null ? Q : void 0,
14289
14305
  order: p.value.order === "ascend" ? "asc" : p.value.order === "descend" ? "desc" : void 0,
14290
14306
  ...(ee = (z = l.model) == null ? void 0 : z.value) != null ? ee : {}
14291
14307
  };
14292
- return s.varButtonSearch.value && (N = {
14293
- ...N,
14294
- ...KgVarUtil.parseCommandParameter((ce = (ue = s.varButtonSearch.value) == null ? void 0 : ue.cmd_prm) != null ? ce : "")
14295
- }), (ie = s.varGridConfig.value) != null && ie.cmd_prm && (N = {
14296
- ...N,
14308
+ return s.varButtonSearch.value && (P = {
14309
+ ...P,
14310
+ ...KgVarUtil.parseCommandParameter((le = (ce = s.varButtonSearch.value) == null ? void 0 : ce.cmd_prm) != null ? le : "")
14311
+ }), (oe = s.varGridConfig.value) != null && oe.cmd_prm && (P = {
14312
+ ...P,
14297
14313
  ...KgVarUtil.parseCommandParameter((me = s.varGridConfig.value.cmd_prm) != null ? me : "")
14298
- }), ((he = s.varGridConfig.value) == null ? void 0 : he.convert_sort_field_to_under_score_flg) === 1 && N.column && (N.column = snakeCase$1(N.column)), N;
14314
+ }), ((be = s.varGridConfig.value) == null ? void 0 : be.convert_sort_field_to_under_score_flg) === 1 && P.column && (P.column = snakeCase$1(P.column)), P;
14299
14315
  }), A = computed(() => {
14300
- var N, U, q, z;
14301
- if (!isNil((U = (N = a == null ? void 0 : a.value) == null ? void 0 : N.KgTable) == null ? void 0 : U.kgDisabled))
14302
- return (z = (q = a == null ? void 0 : a.value) == null ? void 0 : q.KgTable) == null ? void 0 : z.kgDisabled;
14316
+ var P, U, Q, z;
14317
+ if (!isNil((U = (P = a == null ? void 0 : a.value) == null ? void 0 : P.KgTable) == null ? void 0 : U.kgDisabled))
14318
+ return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgDisabled;
14303
14319
  if (!isNil(e.kgDisabled))
14304
14320
  return e.kgDisabled;
14305
14321
  }), C = computed(() => {
14306
- var N, U, q, z;
14307
- if (!isNil((U = (N = a == null ? void 0 : a.value) == null ? void 0 : N.KgTable) == null ? void 0 : U.kgCheckboxDisabled))
14308
- return (z = (q = a == null ? void 0 : a.value) == null ? void 0 : q.KgTable) == null ? void 0 : z.kgCheckboxDisabled;
14322
+ var P, U, Q, z;
14323
+ if (!isNil((U = (P = a == null ? void 0 : a.value) == null ? void 0 : P.KgTable) == null ? void 0 : U.kgCheckboxDisabled))
14324
+ return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgCheckboxDisabled;
14309
14325
  if (!isNil(e.kgCheckboxDisabled))
14310
14326
  return e.kgCheckboxDisabled;
14311
14327
  }), D = computed(() => !!A.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), w = computed(() => !!A.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || I.total === 0), O = computed(() => {
14312
- var N;
14313
- return !!((N = r == null ? void 0 : r.KgTable) != null && N.expandedRowRender);
14328
+ var P;
14329
+ return !!((P = r == null ? void 0 : r.KgTable) != null && P.expandedRowRender);
14314
14330
  }), M = computed(() => {
14315
- var N;
14316
- return ((N = s.varGridConfig.value) == null ? void 0 : N.show_check_column_flg) === 1;
14331
+ var P;
14332
+ return ((P = s.varGridConfig.value) == null ? void 0 : P.show_check_column_flg) === 1;
14317
14333
  }), L = computed(() => {
14318
14334
  if (!!M.value)
14319
14335
  return {
@@ -14322,76 +14338,78 @@ const KgTable$1 = "", getProps$g = () => ({
14322
14338
  hideSelectAll: !o.isMultiSelect.value,
14323
14339
  selectedRowKeys: $,
14324
14340
  preserveSelectedRowKeys: !1,
14325
- getCheckboxProps: (N) => {
14341
+ getCheckboxProps: (P) => {
14326
14342
  var U;
14327
14343
  return {
14328
- disabled: !!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || !!((U = C.value) != null && U.call(C, N))
14344
+ disabled: !!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || !!((U = C.value) != null && U.call(C, P))
14329
14345
  };
14330
14346
  },
14331
- onSelect: (N) => Y(N),
14332
- onChange: (N) => o.isMultiSelect.value && F(N)
14347
+ onSelect: (P) => Y(P),
14348
+ onChange: (P) => o.isMultiSelect.value && F(P)
14333
14349
  };
14334
14350
  }), R = computed(() => {
14335
14351
  var U;
14336
- let N = "kg-table";
14337
- switch (((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (N += " kg-table--bottom-border"), !o.isShowBottomLeft.value && !o.isShowBottomRight.value && (N += " kg-table--no-bottom"), i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (N += " kg-table--submitting"), o.store.getRowHeight(s.formID)) {
14352
+ let P = "kg-table";
14353
+ switch (((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (P += " kg-table--bottom-border"), !o.isShowBottomLeft.value && !o.isShowBottomRight.value && (P += " kg-table--no-bottom"), i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (P += " kg-table--submitting"), o.store.getRowHeight(s.formID)) {
14338
14354
  case "L":
14339
- N += " kg-table--row-l";
14355
+ P += " kg-table--row-l";
14340
14356
  break;
14341
14357
  case "M":
14342
- N += " kg-table--row-m";
14358
+ P += " kg-table--row-m";
14343
14359
  break;
14344
14360
  case "H":
14345
- N += " kg-table--row-h";
14361
+ P += " kg-table--row-h";
14346
14362
  break;
14347
14363
  }
14348
- return N;
14364
+ return P;
14349
14365
  }), B = computed(() => {
14350
14366
  var U;
14351
- let N = "kg-table-bottom";
14352
- return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (N += " kg-table-bottom--border"), N;
14367
+ let P = "kg-table-bottom";
14368
+ return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (P += " kg-table-bottom--border"), P;
14353
14369
  }), $ = (ae = o.store.getSelectedRowKeys(s.formID)) != null ? ae : ref([]), I = reactive({
14354
14370
  pageIndex: 1,
14355
14371
  pageSize: 10,
14356
14372
  total: 0
14357
- }), V = watch(o.pageSizeOption, (N) => {
14358
- N && (setTimeout(() => V()), I.pageSize = N, o.store.emit(s.formID, "ready", {}), o.store.setIsReady(s.formID, !0));
14373
+ }), V = watch(o.pageSizeOption, (P) => {
14374
+ P && (setTimeout(() => V()), I.pageSize = P, o.store.emit(s.formID, "ready", {}), o.store.setIsReady(s.formID, !0));
14359
14375
  }, {
14360
14376
  immediate: !0
14361
14377
  });
14362
- watch(o.pageSizeOptions, (N) => {
14363
- N.length > 0 && !N.includes(I.pageSize) && (I.pageSize = o.pageSizeOption.value);
14364
- }), watch([T, o.isReadAutomatically, l.isReady], ([N, U, q]) => {
14365
- N && U && q && !o.store.getIsRetrieved(s.formID) && K(!0);
14378
+ watch(o.pageSizeOptions, (P) => {
14379
+ P.length > 0 && !P.includes(I.pageSize) && (I.pageSize = o.pageSizeOption.value);
14380
+ }), watch([T, o.isReadAutomatically, l.isReady], ([P, U, Q]) => {
14381
+ P && U && Q && !o.store.getIsRetrieved(s.formID) && K({
14382
+ isSearchFirstPage: !0
14383
+ });
14366
14384
  }, {
14367
14385
  immediate: !0
14368
- }), watch(s.isCreating, (N, U) => {
14369
- N === !0 ? P() : N === !1 && U === !0 && x();
14386
+ }), watch(s.isCreating, (P, U) => {
14387
+ P === !0 ? N() : P === !1 && U === !0 && x();
14370
14388
  }), onUnmounted(() => {
14371
14389
  o.store.dispose(s.formID);
14372
14390
  });
14373
- function P() {
14391
+ function N() {
14374
14392
  if (i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
14375
- const N = {
14393
+ const P = {
14376
14394
  [o.id.value]: KG_TABLE_TEMP_ID
14377
14395
  };
14378
- o.store.setDatas(s.formID, [N, ...b.value]), o.store.setSelectedRows(s.formID, [N]);
14396
+ o.store.setDatas(s.formID, [P, ...b.value]), o.store.setSelectedRows(s.formID, [P]);
14379
14397
  }
14380
14398
  }
14381
14399
  function x() {
14382
- const N = b.value.find((U) => U[o.id.value] === KG_TABLE_TEMP_ID);
14383
- N && (o.store.setDatas(s.formID, without$1(b.value, N)), o.store.setSelectedRows(s.formID, []));
14400
+ const P = b.value.find((U) => U[o.id.value] === KG_TABLE_TEMP_ID);
14401
+ P && (o.store.setDatas(s.formID, without$1(b.value, P)), o.store.setSelectedRows(s.formID, []));
14384
14402
  }
14385
- function H(N, U) {
14386
- var q;
14403
+ function H(P, U) {
14404
+ var Q;
14387
14405
  if (!(!!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!L.value) {
14388
14406
  if (!U) {
14389
14407
  o.store.setSelectedRows(s.formID, []);
14390
14408
  return;
14391
14409
  }
14392
- switch (N == null ? void 0 : N.detail) {
14410
+ switch (P == null ? void 0 : P.detail) {
14393
14411
  case 1:
14394
- switch ((q = s.varGridConfig.value) == null ? void 0 : q.operation_on_row_click) {
14412
+ switch ((Q = s.varGridConfig.value) == null ? void 0 : Q.operation_on_row_click) {
14395
14413
  case 0:
14396
14414
  break;
14397
14415
  case 1:
@@ -14407,14 +14425,16 @@ const KgTable$1 = "", getProps$g = () => ({
14407
14425
  }
14408
14426
  }
14409
14427
  }
14410
- function K(N = !1) {
14411
- KgLogger.debug(`${s.formID} | KgTable | retrieve() | \u6267\u884C\u5F00\u59CB.`);
14428
+ function K(P = {}) {
14429
+ KgLogger.debug(`${s.formID} | KgTable | retrieve() | \u6267\u884C\u5F00\u59CB.`, {
14430
+ param: P
14431
+ });
14412
14432
  const U = watch(o.isReady, (z) => {
14413
- z && (setTimeout(() => U()), q());
14433
+ z && (setTimeout(() => U()), Q());
14414
14434
  }, {
14415
14435
  immediate: !0
14416
14436
  });
14417
- async function q() {
14437
+ async function Q() {
14418
14438
  var z, ee;
14419
14439
  if (KgLogger.debug(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u6267\u884C\u5F00\u59CB.`), !T.value) {
14420
14440
  KgLogger.error(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.`, {
@@ -14422,105 +14442,113 @@ const KgTable$1 = "", getProps$g = () => ({
14422
14442
  });
14423
14443
  return;
14424
14444
  }
14425
- N && (I.pageIndex = 1), o.store.setIsRetrieving(s.formID, !0);
14445
+ P.isSearchFirstPage && (I.pageIndex = 1), o.store.setIsRetrieving(s.formID, !0);
14426
14446
  try {
14427
- const ue = KgUtil.parseParams(k.value, o.profileFormID.value, t), ce = ref({});
14447
+ const ce = KgUtil.parseParams(k.value, o.profileFormID.value, t), le = ref({});
14428
14448
  await o.store.emit(s.formID, "beforeRetrieve", {
14429
- params: ue,
14430
- response: ce
14431
- }) || (ce.value = await httpClient().request({
14449
+ params: ce,
14450
+ response: le
14451
+ }) || (le.value = await httpClient().request({
14432
14452
  method: "GET",
14433
14453
  url: T.value,
14434
- params: ue,
14454
+ params: ce,
14435
14455
  headers: {
14436
14456
  [KG_HEADERS.DYNAMIC_QUERY]: ((z = s.currentVarProfileMaster.value) == null ? void 0 : z.dyn_flg) === 1
14437
14457
  }
14438
14458
  }, {
14439
14459
  successMessageMode: "none"
14440
14460
  }), KgLogger.debug(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6210\u529F.`, {
14441
- params: ue
14461
+ params: ce,
14462
+ response: le.value
14442
14463
  }));
14443
14464
  const {
14444
- datas: ie,
14465
+ datas: oe,
14445
14466
  total: me
14446
- } = E(ce);
14467
+ } = E(le);
14447
14468
  await o.store.emit(s.formID, "beforeSetDatas", {
14448
- datas: ie,
14469
+ datas: oe,
14449
14470
  total: me,
14450
14471
  setDatas(he) {
14451
14472
  o.store.setDatas(s.formID, he);
14452
14473
  }
14453
- }), d.value = {}, o.store.setDatas(s.formID, ie.value), I.total = me.value, H(), c.value = [], await nextTick(), ((ee = s.varGridConfig.value) == null ? void 0 : ee.check_first_row_after_retrieve) === 1 && ie.value.length > 0 && o.store.setSelectedRows(s.formID, [ie.value[0]]), await o.store.emit(s.formID, "retrieve", {
14454
- page: ce.value,
14455
- datas: ie,
14474
+ }), d.value = {}, o.store.setDatas(s.formID, oe.value), I.total = me.value;
14475
+ const be = cloneDeep($.value);
14476
+ H(), c.value = [], await nextTick(), P.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, be.map((he) => {
14477
+ var Se;
14478
+ return (Se = oe.value) == null ? void 0 : Se.find((Ee) => Ee[o.id.value] === he);
14479
+ }).filter((he) => !!he)) : ((ee = s.varGridConfig.value) == null ? void 0 : ee.check_first_row_after_retrieve) === 1 && oe.value.length > 0 && o.store.setSelectedRows(s.formID, [oe.value[0]]), await o.store.emit(s.formID, "retrieve", {
14480
+ page: le.value,
14481
+ datas: oe,
14456
14482
  setDatas(he) {
14457
14483
  o.store.setDatas(s.formID, he);
14458
14484
  }
14459
14485
  }), o.store.setIsRetrieved(s.formID, !0);
14460
- } catch (ue) {
14461
- throw ue;
14486
+ } catch (ce) {
14487
+ throw ce;
14462
14488
  } finally {
14463
14489
  o.store.setIsRetrieving(s.formID, !1);
14464
14490
  }
14465
14491
  }
14466
14492
  }
14467
- function F(N) {
14468
- o.store.setSelectedRows(s.formID, N.map((U) => {
14469
- var q;
14470
- return (q = b.value) == null ? void 0 : q.find((z) => z[o.id.value] === U);
14493
+ function F(P) {
14494
+ o.store.setSelectedRows(s.formID, P.map((U) => {
14495
+ var Q;
14496
+ return (Q = b.value) == null ? void 0 : Q.find((z) => z[o.id.value] === U);
14471
14497
  }).filter((U) => !!U));
14472
14498
  }
14473
- function Y(N) {
14474
- var U, q;
14499
+ function Y(P) {
14500
+ var U, Q;
14475
14501
  switch (o.isMultiSelect.value) {
14476
14502
  case !0:
14477
14503
  {
14478
- const z = N[o.id.value];
14504
+ const z = P[o.id.value];
14479
14505
  $.value.includes(z) ? $.value = without$1($.value, z) : $.value = [...(U = $.value) != null ? U : [], z];
14480
14506
  }
14481
14507
  break;
14482
14508
  case !1:
14483
14509
  {
14484
- const z = N[o.id.value];
14485
- (q = $.value) != null && q.includes(z) ? $.value = [] : $.value = [z];
14510
+ const z = P[o.id.value];
14511
+ (Q = $.value) != null && Q.includes(z) ? $.value = [] : $.value = [z];
14486
14512
  }
14487
14513
  break;
14488
14514
  }
14489
14515
  o.store.setSelectedRows(s.formID, $.value.map((z) => {
14490
14516
  var ee;
14491
- return (ee = b.value) == null ? void 0 : ee.find((ue) => ue[o.id.value] === z);
14517
+ return (ee = b.value) == null ? void 0 : ee.find((ce) => ce[o.id.value] === z);
14492
14518
  }).filter((z) => !!z));
14493
14519
  }
14494
- function Q(N, U) {
14495
- U.width = N, s.store.setVarGridDetailWidth(s.formID, U.dataIndex, N);
14520
+ function q(P, U) {
14521
+ U.width = P, s.store.setVarGridDetailWidth(s.formID, U.dataIndex, P);
14496
14522
  }
14497
- async function X(N, U, q, z) {
14523
+ async function X(P, U, Q, z) {
14498
14524
  switch (z.action) {
14499
14525
  case "sort": {
14500
- p.value = q, await nextTick(), K(!0);
14526
+ p.value = Q, await nextTick(), K({
14527
+ isSearchFirstPage: !0
14528
+ });
14501
14529
  break;
14502
14530
  }
14503
14531
  case "filter":
14504
14532
  d.value = U;
14505
14533
  }
14506
14534
  }
14507
- function J(N, U) {
14535
+ function J(P, U) {
14508
14536
  var z;
14509
- const q = U[o.id.value];
14537
+ const Q = U[o.id.value];
14510
14538
  switch ((z = s.varGridConfig.value) == null ? void 0 : z.expand_accordion_flg) {
14511
14539
  case 0:
14512
- N ? c.value = uniq([...c.value, q]) : c.value = without$1(c.value, q);
14540
+ P ? c.value = uniq([...c.value, Q]) : c.value = without$1(c.value, Q);
14513
14541
  break;
14514
14542
  default:
14515
- N ? c.value = [q] : c.value = [];
14543
+ P ? c.value = [Q] : c.value = [];
14516
14544
  break;
14517
14545
  }
14518
14546
  }
14519
- function te(N, U) {
14520
- U !== I.pageSize ? (I.pageIndex = 1, I.pageSize = U) : I.pageIndex = N, K();
14547
+ function te(P, U) {
14548
+ U !== I.pageSize ? (I.pageIndex = 1, I.pageSize = U) : I.pageIndex = P, K();
14521
14549
  }
14522
- function le({
14523
- title: N,
14550
+ function ue({
14551
+ title: P,
14524
14552
  column: U
14525
14553
  }) {
14526
14554
  switch (U.dataIndex) {
@@ -14530,13 +14558,13 @@ const KgTable$1 = "", getProps$g = () => ({
14530
14558
  }, null);
14531
14559
  default:
14532
14560
  return createVNode("pre", {
14533
- title: N
14534
- }, [N]);
14561
+ title: P
14562
+ }, [P]);
14535
14563
  }
14536
14564
  }
14537
14565
  function _e() {
14538
- var N;
14539
- return (N = r == null ? void 0 : r.KgTable) != null && N["summary.bodyCell"] ? createVNode(TableSummary, {
14566
+ var P;
14567
+ return (P = r == null ? void 0 : r.KgTable) != null && P["summary.bodyCell"] ? createVNode(TableSummary, {
14540
14568
  fixed: "bottom"
14541
14569
  }, {
14542
14570
  default: () => [createVNode(TableSummary.Row, null, {
@@ -14544,18 +14572,18 @@ const KgTable$1 = "", getProps$g = () => ({
14544
14572
  index: 0
14545
14573
  }, null), M.value && createVNode(TableSummary.Cell, {
14546
14574
  index: O.value ? 1 : 0
14547
- }, null), u.value.map((U, q) => {
14548
- const z = String(U.dataIndex), ee = z ? s.store.getVarGridDetail(s.formID, z) : null, ue = (() => ["left", "center", "right"].includes((ee == null ? void 0 : ee.align) || "") ? ee == null ? void 0 : ee.align : "left")();
14549
- let ce = q;
14550
- return O.value && M.value ? ce += 2 : (O.value || M.value) && (ce += 1), createVNode(TableSummary.Cell, {
14551
- index: ce,
14552
- align: ue
14575
+ }, null), u.value.map((U, Q) => {
14576
+ const z = String(U.dataIndex), ee = z ? s.store.getVarGridDetail(s.formID, z) : null, ce = (() => ["left", "center", "right"].includes((ee == null ? void 0 : ee.align) || "") ? ee == null ? void 0 : ee.align : "left")();
14577
+ let le = Q;
14578
+ return O.value && M.value ? le += 2 : (O.value || M.value) && (le += 1), createVNode(TableSummary.Cell, {
14579
+ index: le,
14580
+ align: ce
14553
14581
  }, {
14554
14582
  default: () => {
14555
- var ie, me;
14556
- return [(me = (ie = r == null ? void 0 : r.KgTable) == null ? void 0 : ie["summary.bodyCell"]) == null ? void 0 : me.call(ie, {
14583
+ var oe, me;
14584
+ return [(me = (oe = r == null ? void 0 : r.KgTable) == null ? void 0 : oe["summary.bodyCell"]) == null ? void 0 : me.call(oe, {
14557
14585
  column: U,
14558
- index: ce,
14586
+ index: le,
14559
14587
  varGridDetail: ee
14560
14588
  })];
14561
14589
  }
@@ -14568,7 +14596,7 @@ const KgTable$1 = "", getProps$g = () => ({
14568
14596
  return !o.isReadAutomatically.value && !o.store.getIsRetrieved(s.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
14569
14597
  }
14570
14598
  return () => {
14571
- var N, U, q;
14599
+ var P, U, Q;
14572
14600
  return createVNode("div", {
14573
14601
  class: R.value,
14574
14602
  "kg-frm_id": s.formID,
@@ -14586,21 +14614,21 @@ const KgTable$1 = "", getProps$g = () => ({
14586
14614
  dataSource: b.value,
14587
14615
  loading: y.value,
14588
14616
  rowKey: o.id.value,
14589
- rowClassName: (U = (N = a == null ? void 0 : a.value) == null ? void 0 : N.KgTable) == null ? void 0 : U.kgRowClassName,
14617
+ rowClassName: (U = (P = a == null ? void 0 : a.value) == null ? void 0 : P.KgTable) == null ? void 0 : U.kgRowClassName,
14590
14618
  expandColumnWidth: 28,
14591
14619
  expandedRowKeys: c.value,
14592
14620
  rowSelection: L.value,
14593
14621
  customRow: (z) => ({
14594
14622
  onClick: (ee) => H(ee, z)
14595
14623
  }),
14596
- onResizeColumn: Q,
14624
+ onResizeColumn: q,
14597
14625
  onChange: X,
14598
14626
  onExpand: J
14599
14627
  }, {
14600
- headerCell: le,
14628
+ headerCell: ue,
14601
14629
  bodyCell: g,
14602
14630
  emptyText: fe,
14603
- expandedRowRender: (q = r == null ? void 0 : r.KgTable) == null ? void 0 : q.expandedRowRender,
14631
+ expandedRowRender: (Q = r == null ? void 0 : r.KgTable) == null ? void 0 : Q.expandedRowRender,
14604
14632
  summary: _e
14605
14633
  }), (o.isShowBottomLeft.value || o.isShowBottomRight.value) && createVNode("div", {
14606
14634
  class: B.value
@@ -15080,7 +15108,9 @@ const KgButtonCreate = defineComponent({
15080
15108
  ignoreCancelToken: !0
15081
15109
  }
15082
15110
  });
15083
- message.success(a.t("kg.importSuccess")), s.search(!0);
15111
+ message.success(a.t("kg.importSuccess")), s.search({
15112
+ isSearchFirstPage: !0
15113
+ });
15084
15114
  } catch (b) {
15085
15115
  throw b;
15086
15116
  } finally {
@@ -15243,7 +15273,9 @@ const KgButtonCreate = defineComponent({
15243
15273
  data: w
15244
15274
  }))
15245
15275
  return;
15246
- a.search(!0);
15276
+ a.search({
15277
+ isSearchFirstPage: !0
15278
+ });
15247
15279
  } else if (await n.store.emit(r.formID, "otherOk", {
15248
15280
  button: e.kgButton,
15249
15281
  data: w
@@ -15819,7 +15851,7 @@ function useKgSearch(e) {
15819
15851
  KgLogger.error(`${t.formID} | useKgSearch | search() | \u67E5\u8BE2\u51FD\u6570\u4E3A\u7A7A.`);
15820
15852
  return;
15821
15853
  }
15822
- d(i);
15854
+ typeof i == "boolean" ? (KgLogger.deprecated(`${t.formID} | useKgSearch | search() | \u65E7\u7684\u53C2\u6570\u683C\u5F0F\u5DF2\u5F03\u7528, \u8BF7\u4F7F\u7528\u65B0\u7684\u53C2\u6570\u683C\u5F0F.`), d({ isSearchFirstPage: i })) : d(i);
15823
15855
  }
15824
15856
  },
15825
15857
  { immediate: !0 }
@@ -16496,9 +16528,9 @@ const KgSearch$1 = "", getProps$9 = () => ({
16496
16528
  });
16497
16529
  _useLayoutHeaderResizeObserver();
16498
16530
  const g = _useFormModel(v, y, _), b = computed(() => {
16499
- var K, F, Y, Q;
16531
+ var K, F, Y, q;
16500
16532
  if (!isNil((F = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : F.kgDisabled))
16501
- return (Q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgSearch) == null ? void 0 : Q.kgDisabled;
16533
+ return (q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgSearch) == null ? void 0 : q.kgDisabled;
16502
16534
  if (!isNil(e.kgDisabled))
16503
16535
  return e.kgDisabled;
16504
16536
  }), E = computed(() => {
@@ -16524,22 +16556,27 @@ const KgSearch$1 = "", getProps$9 = () => ({
16524
16556
  let K = "kg-search";
16525
16557
  return o.value && (K += " kg-search--visible"), c.value && (K += " kg-search--teleport"), K;
16526
16558
  });
16527
- async function R(K = !1) {
16528
- if (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6267\u884C\u5F00\u59CB.`), E.value) {
16529
- KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u91CD\u7F6E\u6309\u94AE\u7981\u7528.`);
16559
+ async function R(K = {}) {
16560
+ var F, Y;
16561
+ if (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6267\u884C\u5F00\u59CB.`), l.isRetrieving.value) {
16562
+ KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u67E5\u8BE2.`);
16563
+ return;
16564
+ }
16565
+ if (((F = n.varButtonSearch.value) == null ? void 0 : F.permission_type) === 2 && !a.p((Y = n.varButtonSearch.value) == null ? void 0 : Y.permission_code)) {
16566
+ KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6CA1\u6709\u6743\u9650.`);
16567
+ return;
16568
+ }
16569
+ if (n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) {
16570
+ KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u521B\u5EFA/\u66F4\u65B0/\u590D\u5236/\u5220\u9664.`);
16530
16571
  return;
16531
16572
  }
16532
16573
  o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), y.value && y.value.validate().then(async () => {
16533
- await s.store.emit(n.formID, "search", {
16534
- resetPageIndex: K
16535
- });
16536
- }).catch((F) => {
16574
+ await s.store.emit(n.formID, "search", K);
16575
+ }).catch((q) => {
16537
16576
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
16538
- e: F
16577
+ e: q
16539
16578
  });
16540
- })) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search", {
16541
- resetPageIndex: K
16542
- }));
16579
+ })) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search", K));
16543
16580
  }
16544
16581
  s.store.setSearchFn(n.formID, R);
16545
16582
  async function B() {
@@ -16553,7 +16590,9 @@ const KgSearch$1 = "", getProps$9 = () => ({
16553
16590
  }
16554
16591
  s.store.setResetFn(n.formID, B);
16555
16592
  function $() {
16556
- return R(!0), Promise.resolve(!0);
16593
+ return R({
16594
+ isSearchFirstPage: !0
16595
+ }), Promise.resolve(!0);
16557
16596
  }
16558
16597
  function I() {
16559
16598
  var K;
@@ -16568,9 +16607,9 @@ const KgSearch$1 = "", getProps$9 = () => ({
16568
16607
  }, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
16569
16608
  }
16570
16609
  function V() {
16571
- var K, F, Y, Q;
16610
+ var K, F, Y, q;
16572
16611
  return ((Y = (F = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : F.length) != null ? Y : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
16573
- value: (Q = n.currentVarProfileMasterID.value) != null ? Q : void 0,
16612
+ value: (q = n.currentVarProfileMasterID.value) != null ? q : void 0,
16574
16613
  "onUpdate:value": (X) => n.store.setCurrentVarProfileMasterID(n.formID, X),
16575
16614
  disabled: T.value,
16576
16615
  class: "kg-search-profile-master-select"
@@ -16600,8 +16639,8 @@ const KgSearch$1 = "", getProps$9 = () => ({
16600
16639
  hostFormID: n.formID
16601
16640
  }, null)]);
16602
16641
  }
16603
- function P() {
16604
- var K, F, Y, Q, X;
16642
+ function N() {
16643
+ var K, F, Y, q, X;
16605
16644
  return createVNode(Fragment, null, [V(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((F = n.varButtonSearch.value) == null ? void 0 : F.permission_code)) && createVNode(Button, {
16606
16645
  type: "primary",
16607
16646
  ghost: !E.value,
@@ -16613,7 +16652,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
16613
16652
  }), createVNode(KgButton.Item, {
16614
16653
  kgType: KG_BUTTON_TYPE.SEARCH,
16615
16654
  kgVarName: (Y = n.varButtonSearch.value) == null ? void 0 : Y.var_nam,
16616
- kgIcon: (Q = n.varButtonSearch.value) == null ? void 0 : Q.icon,
16655
+ kgIcon: (q = n.varButtonSearch.value) == null ? void 0 : q.icon,
16617
16656
  kgText: D.value,
16618
16657
  kgColor: (X = n.varButtonSearch.value) == null ? void 0 : X.color,
16619
16658
  kgPrimary: w.value,
@@ -16640,7 +16679,9 @@ const KgSearch$1 = "", getProps$9 = () => ({
16640
16679
  key: Y.var_nam,
16641
16680
  kgVarName: Y.var_nam,
16642
16681
  kgContext: KG_FORM_CONTEXT.SEARCH,
16643
- onKgSubmit: () => R(!0)
16682
+ onKgSubmit: () => R({
16683
+ isSearchFirstPage: !0
16684
+ })
16644
16685
  }, null))];
16645
16686
  }
16646
16687
  })]
@@ -16676,7 +16717,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
16676
16717
  }, {
16677
16718
  default: () => [I(), createVNode("div", {
16678
16719
  class: "ant-collapse-extra"
16679
- }, [P()])]
16720
+ }, [N()])]
16680
16721
  })])]
16681
16722
  }), createVNode("div", {
16682
16723
  class: "ant-collapse-content ant-collapse-content-active"
@@ -17185,11 +17226,11 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
17185
17226
  }
17186
17227
  });
17187
17228
  if (u.value = null, c.value = V != null ? V : [], R) {
17188
- const P = c.value.find((x) => {
17229
+ const N = c.value.find((x) => {
17189
17230
  var H;
17190
17231
  return x.id === ((H = a.getSelectedVarCatalog) == null ? void 0 : H.id);
17191
17232
  });
17192
- a.setSelectedVarCatalog(P != null ? P : null), d.value = P != null && P.id ? [P.id] : [];
17233
+ a.setSelectedVarCatalog(N != null ? N : null), d.value = N != null && N.id ? [N.id] : [];
17193
17234
  } else
17194
17235
  a.setSelectedVarCatalog(($ = c.value[0]) != null ? $ : null), d.value = (I = c.value[0]) != null && I.id ? [c.value[0].id] : [];
17195
17236
  } catch (V) {