@kengic/vue 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/kengic-vue.js +170 -156
  2. package/package.json +1 -1
@@ -3917,7 +3917,7 @@ const emptyIcon = {
3917
3917
  ...t.data
3918
3918
  }, r);
3919
3919
  }
3920
- }), name = "@kengic/vue", version = "0.11.0", 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,23 +4014,23 @@ 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
4036
  }, q = this.$W, X = this.$M, J = this.$D, te = "set" + (this.$u ? "UTC" : "");
@@ -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
4062
  var q = this.clone().set(y, 1);
4063
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
  };
@@ -4085,27 +4085,27 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4085
4085
  return F(7);
4086
4086
  var Y = (x = {}, x[o] = a, x[i] = n, x[l] = r, x)[K] || 1, q = this.$d.getTime() + V * Y;
4087
4087
  return L.w(q, this);
4088
- }, I.subtract = function(V, P) {
4089
- return this.add(-1 * V, P);
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, ue = 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) {
4098
+ }, fe = te || function(ae, P, U) {
4099
4099
  var Q = ae < 12 ? "AM" : "PM";
4100
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
4110
  return q + 1;
4111
4111
  case "MM":
@@ -4115,17 +4115,17 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
4115
4115
  case "MMMM":
4116
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 ue(x.weekdaysMin, P.$W, X, 2);
4124
+ return ue(x.weekdaysMin, N.$W, X, 2);
4125
4125
  case "ddd":
4126
- return ue(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) {
@@ -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);
@@ -9476,9 +9476,9 @@ function useKgVar(e, t, r = 0) {
9476
9476
  }), onUnmounted(() => {
9477
9477
  u.dispose(c);
9478
9478
  }));
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)), 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(() => {
9480
9480
  var J, te;
9481
- return (te = (J = P.value) == null ? void 0 : J.varProfileDetails) != null ? te : null;
9481
+ return (te = (J = N.value) == null ? void 0 : J.varProfileDetails) != null ? te : null;
9482
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));
9483
9483
  return {
9484
9484
  formID: c,
@@ -9504,7 +9504,7 @@ function useKgVar(e, t, r = 0) {
9504
9504
  varButtonDelete: $,
9505
9505
  varProfileMasters: I,
9506
9506
  currentVarProfileMasterID: V,
9507
- currentVarProfileMaster: P,
9507
+ currentVarProfileMaster: N,
9508
9508
  currentVarProfileDetails: x,
9509
9509
  varGridConfig: H,
9510
9510
  varGridMasters: K,
@@ -10466,7 +10466,7 @@ const KgFormItemRadioGroup = defineComponent({
10466
10466
  }
10467
10467
  return M;
10468
10468
  }), g = computed(() => {
10469
- var L, R, B, $, I, V, P, x, H, K;
10469
+ var L, R, B, $, I, V, N, x, H, K;
10470
10470
  let M = 6;
10471
10471
  if (e.kgSpan !== void 0)
10472
10472
  M = e.kgSpan;
@@ -10484,7 +10484,7 @@ const KgFormItemRadioGroup = defineComponent({
10484
10484
  M = (V = (I = d.value) == null ? void 0 : I.upt_width) != null ? V : 6;
10485
10485
  break;
10486
10486
  case s.isCopying.value:
10487
- 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;
10488
10488
  break;
10489
10489
  case s.isDeleting.value:
10490
10490
  M = (K = (H = d.value) == null ? void 0 : H.del_width) != null ? K : 6;
@@ -11429,7 +11429,7 @@ const getProps$p = () => ({
11429
11429
  return (re = O.value) != null ? re : [];
11430
11430
  }
11431
11431
  return [];
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), 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({
11433
11433
  kgWidth: 0
11434
11434
  }), x = computed(() => {
11435
11435
  var G;
@@ -11440,9 +11440,9 @@ const getProps$p = () => ({
11440
11440
  }), K = computed(() => {
11441
11441
  var G, W;
11442
11442
  return u.value ? 398 : (W = (G = p.value) == null ? void 0 : G.max_width) != null ? W : DEFAULT_MAX_WIDTH;
11443
- }), F = computed(() => u.value ? 398 : P.value.kgWidth), Y = ref(null);
11443
+ }), F = computed(() => u.value ? 398 : N.value.kgWidth), Y = ref(null);
11444
11444
  _useResizeObserver$1(Y);
11445
- 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({
11446
11446
  isFullscreen: !1
11447
11447
  }), {
11448
11448
  getClass: ue
@@ -11469,7 +11469,7 @@ const getProps$p = () => ({
11469
11469
  default:
11470
11470
  return;
11471
11471
  }
11472
- }), N = computed(() => {
11472
+ }), P = computed(() => {
11473
11473
  var G, W;
11474
11474
  switch (_e.value) {
11475
11475
  case "horizontal":
@@ -11490,7 +11490,7 @@ const getProps$p = () => ({
11490
11490
  }, {
11491
11491
  immediate: !0
11492
11492
  }), watch(fe, (G) => {
11493
- G && (P.value.kgWidth = G);
11493
+ G && (N.value.kgWidth = G);
11494
11494
  }, {
11495
11495
  immediate: !0
11496
11496
  });
@@ -11520,7 +11520,7 @@ const getProps$p = () => ({
11520
11520
  });
11521
11521
  }
11522
11522
  async function Q() {
11523
- P.value.kgWidth = fe.value, te.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
11523
+ N.value.kgWidth = fe.value, te.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
11524
11524
  }
11525
11525
  function z() {
11526
11526
  switch (!0) {
@@ -11620,7 +11620,9 @@ const getProps$p = () => ({
11620
11620
  isDeleting: s.isDeleting.value,
11621
11621
  row: o.selectedFirstRow.value,
11622
11622
  model: i.model
11623
- }), s.store.setIsCreating(s.formID, !1), c.search(!0);
11623
+ }), s.store.setIsCreating(s.formID, !1), c.search({
11624
+ isSearchFirstPage: !0
11625
+ });
11624
11626
  } catch (ne) {
11625
11627
  console.error(ne), i.store.emit(s.formID, "error", ne);
11626
11628
  } finally {
@@ -11663,7 +11665,9 @@ const getProps$p = () => ({
11663
11665
  isDeleting: s.isDeleting.value,
11664
11666
  row: o.selectedFirstRow.value,
11665
11667
  model: i.model
11666
- }), s.store.setIsUpdating(s.formID, !1), c.search();
11668
+ }), s.store.setIsUpdating(s.formID, !1), c.search({
11669
+ isPreserveSelectedRows: !0
11670
+ });
11667
11671
  } catch (ne) {
11668
11672
  console.error(ne), i.store.emit(s.formID, "error", ne);
11669
11673
  } finally {
@@ -11709,7 +11713,9 @@ const getProps$p = () => ({
11709
11713
  isDeleting: s.isDeleting.value,
11710
11714
  row: o.selectedFirstRow.value,
11711
11715
  model: i.model
11712
- }), s.store.setIsCopying(s.formID, !1), c.search(!0);
11716
+ }), s.store.setIsCopying(s.formID, !1), c.search({
11717
+ isSearchFirstPage: !0
11718
+ });
11713
11719
  } catch (pe) {
11714
11720
  console.error(pe), i.store.emit(s.formID, "error", pe);
11715
11721
  } finally {
@@ -11762,7 +11768,9 @@ const getProps$p = () => ({
11762
11768
  isDeleting: s.isDeleting.value,
11763
11769
  row: o.selectedFirstRow.value,
11764
11770
  model: i.model
11765
- }), s.store.setIsDeleting(s.formID, !1), c.search(!0);
11771
+ }), s.store.setIsDeleting(s.formID, !1), c.search({
11772
+ isSearchFirstPage: !0
11773
+ });
11766
11774
  } catch (ye) {
11767
11775
  console.error(ye), i.store.emit(s.formID, "error", ye);
11768
11776
  } finally {
@@ -11810,7 +11818,7 @@ const getProps$p = () => ({
11810
11818
  kgMaxWidth: K.value,
11811
11819
  kgWidth: F.value,
11812
11820
  kgDisabled: x.value,
11813
- "onUpdate:kgWidth": (Z) => P.value.kgWidth = Z
11821
+ "onUpdate:kgWidth": (Z) => N.value.kgWidth = Z
11814
11822
  }, {
11815
11823
  default: () => [createVNode(Spin, {
11816
11824
  spinning: d.value
@@ -11820,7 +11828,7 @@ const getProps$p = () => ({
11820
11828
  model: i.model.value,
11821
11829
  layout: _e.value,
11822
11830
  labelCol: ae.value,
11823
- wrapperCol: N.value
11831
+ wrapperCol: P.value
11824
11832
  }, {
11825
11833
  default: () => [createVNode("div", {
11826
11834
  ref: Y
@@ -13217,8 +13225,8 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
13217
13225
  }
13218
13226
  });
13219
13227
  c.value = c.value.map((I) => {
13220
- var P;
13221
- 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);
13222
13230
  return V ? {
13223
13231
  ...I,
13224
13232
  ...V,
@@ -13855,13 +13863,13 @@ const getProps$h = () => ({
13855
13863
  }, null);
13856
13864
  }
13857
13865
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
13858
- 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);
13859
13867
  if (V) {
13860
- const P = n.t(V.varName).value;
13861
- return P ? createVNode(Tag, {
13868
+ const N = n.t(V.varName).value;
13869
+ return N ? createVNode(Tag, {
13862
13870
  color: (w = V.color) != null ? w : "default"
13863
- }, _isSlot$5(P) ? P : {
13864
- default: () => [P]
13871
+ }, _isSlot$5(N) ? N : {
13872
+ default: () => [N]
13865
13873
  }) : T();
13866
13874
  } else
13867
13875
  return T();
@@ -13869,7 +13877,7 @@ const getProps$h = () => ({
13869
13877
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
13870
13878
  const I = KgUtil.tryParseJSON((O = i.value) == null ? void 0 : O.display_type_properties);
13871
13879
  if (I.isTag && isArrayLike(I.tagColors)) {
13872
- const V = I.tagColors.find((P) => P.value === e.kgValue);
13880
+ const V = I.tagColors.find((N) => N.value === e.kgValue);
13873
13881
  return v.value ? createVNode(Tag, {
13874
13882
  color: (M = V == null ? void 0 : V.color) != null ? M : "default"
13875
13883
  }, {
@@ -13997,7 +14005,7 @@ function _useColumns(e) {
13997
14005
  index: C
13998
14006
  }) => C + 1
13999
14007
  }, ...(A = b == null ? void 0 : b.map((C, D) => {
14000
- var P, x, H;
14008
+ var N, x, H;
14001
14009
  const w = C.var_nam;
14002
14010
  function O() {
14003
14011
  return C.width === "auto" ? "auto" : Number(C.width) || KG_TABLE_TD_DEFAULT_WIDTH;
@@ -14066,7 +14074,7 @@ function _useColumns(e) {
14066
14074
  align: I(),
14067
14075
  fixed: L(),
14068
14076
  sorter: R(),
14069
- 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,
14070
14078
  filteredValue: $(),
14071
14079
  filters: B(),
14072
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,
@@ -14098,7 +14106,9 @@ function _useColumns(e) {
14098
14106
  let p = null;
14099
14107
  return watch(r.currentVarGridMasteID, (v, y) => {
14100
14108
  i.value = {}, p == null || p(), p = watch(i, () => {
14101
- p(), p = null, a.search(!0);
14109
+ p(), p = null, a.search({
14110
+ isSearchFirstPage: !0
14111
+ });
14102
14112
  }, {
14103
14113
  deep: !0
14104
14114
  });
@@ -14244,13 +14254,13 @@ const KgTable$1 = "", getProps$g = () => ({
14244
14254
  setup: function(e) {
14245
14255
  var ae;
14246
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();
14247
- l.onSearch(async (N) => (K(N), !1)), l.onReset(async () => (p.value = {}, K({
14257
+ l.onSearch(async (P) => (K(P), !1)), l.onReset(async () => (p.value = {}, K({
14248
14258
  isSearchFirstPage: !0
14249
14259
  }), !1)), o.store.$onAction(async ({
14250
- name: N,
14260
+ name: P,
14251
14261
  args: U
14252
14262
  }) => {
14253
- switch (N) {
14263
+ switch (P) {
14254
14264
  case "setRowSelect":
14255
14265
  if (U[0] === s.formID) {
14256
14266
  const Q = U[1], z = U[2], ee = Q[o.id.value];
@@ -14284,42 +14294,42 @@ const KgTable$1 = "", getProps$g = () => ({
14284
14294
  datas: b,
14285
14295
  transformDatas: E
14286
14296
  } = _useDatas(), T = computed(() => {
14287
- var N, U;
14288
- 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;
14289
14299
  }), k = computed(() => {
14290
14300
  var U, Q, z, ee, ce, le, oe, me, be;
14291
- let N = {
14301
+ let P = {
14292
14302
  pageNo: I.pageIndex,
14293
14303
  pageSize: I.pageSize,
14294
14304
  column: (Q = (U = p.value) == null ? void 0 : U.field) != null ? Q : void 0,
14295
14305
  order: p.value.order === "ascend" ? "asc" : p.value.order === "descend" ? "desc" : void 0,
14296
14306
  ...(ee = (z = l.model) == null ? void 0 : z.value) != null ? ee : {}
14297
14307
  };
14298
- return s.varButtonSearch.value && (N = {
14299
- ...N,
14308
+ return s.varButtonSearch.value && (P = {
14309
+ ...P,
14300
14310
  ...KgVarUtil.parseCommandParameter((le = (ce = s.varButtonSearch.value) == null ? void 0 : ce.cmd_prm) != null ? le : "")
14301
- }), (oe = s.varGridConfig.value) != null && oe.cmd_prm && (N = {
14302
- ...N,
14311
+ }), (oe = s.varGridConfig.value) != null && oe.cmd_prm && (P = {
14312
+ ...P,
14303
14313
  ...KgVarUtil.parseCommandParameter((me = s.varGridConfig.value.cmd_prm) != null ? me : "")
14304
- }), ((be = s.varGridConfig.value) == null ? void 0 : be.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;
14305
14315
  }), A = 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.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))
14308
14318
  return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgDisabled;
14309
14319
  if (!isNil(e.kgDisabled))
14310
14320
  return e.kgDisabled;
14311
14321
  }), C = computed(() => {
14312
- var N, U, Q, z;
14313
- if (!isNil((U = (N = a == null ? void 0 : a.value) == null ? void 0 : N.KgTable) == null ? void 0 : U.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))
14314
14324
  return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgCheckboxDisabled;
14315
14325
  if (!isNil(e.kgCheckboxDisabled))
14316
14326
  return e.kgCheckboxDisabled;
14317
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(() => {
14318
- var N;
14319
- 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);
14320
14330
  }), M = computed(() => {
14321
- var N;
14322
- 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;
14323
14333
  }), L = computed(() => {
14324
14334
  if (!!M.value)
14325
14335
  return {
@@ -14328,76 +14338,76 @@ const KgTable$1 = "", getProps$g = () => ({
14328
14338
  hideSelectAll: !o.isMultiSelect.value,
14329
14339
  selectedRowKeys: $,
14330
14340
  preserveSelectedRowKeys: !1,
14331
- getCheckboxProps: (N) => {
14341
+ getCheckboxProps: (P) => {
14332
14342
  var U;
14333
14343
  return {
14334
- 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))
14335
14345
  };
14336
14346
  },
14337
- onSelect: (N) => Y(N),
14338
- onChange: (N) => o.isMultiSelect.value && F(N)
14347
+ onSelect: (P) => Y(P),
14348
+ onChange: (P) => o.isMultiSelect.value && F(P)
14339
14349
  };
14340
14350
  }), R = computed(() => {
14341
14351
  var U;
14342
- let N = "kg-table";
14343
- 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)) {
14344
14354
  case "L":
14345
- N += " kg-table--row-l";
14355
+ P += " kg-table--row-l";
14346
14356
  break;
14347
14357
  case "M":
14348
- N += " kg-table--row-m";
14358
+ P += " kg-table--row-m";
14349
14359
  break;
14350
14360
  case "H":
14351
- N += " kg-table--row-h";
14361
+ P += " kg-table--row-h";
14352
14362
  break;
14353
14363
  }
14354
- return N;
14364
+ return P;
14355
14365
  }), B = computed(() => {
14356
14366
  var U;
14357
- let N = "kg-table-bottom";
14358
- 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;
14359
14369
  }), $ = (ae = o.store.getSelectedRowKeys(s.formID)) != null ? ae : ref([]), I = reactive({
14360
14370
  pageIndex: 1,
14361
14371
  pageSize: 10,
14362
14372
  total: 0
14363
- }), V = watch(o.pageSizeOption, (N) => {
14364
- 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));
14365
14375
  }, {
14366
14376
  immediate: !0
14367
14377
  });
14368
- watch(o.pageSizeOptions, (N) => {
14369
- N.length > 0 && !N.includes(I.pageSize) && (I.pageSize = o.pageSizeOption.value);
14370
- }), watch([T, o.isReadAutomatically, l.isReady], ([N, U, Q]) => {
14371
- N && U && Q && !o.store.getIsRetrieved(s.formID) && K({
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({
14372
14382
  isSearchFirstPage: !0
14373
14383
  });
14374
14384
  }, {
14375
14385
  immediate: !0
14376
- }), watch(s.isCreating, (N, U) => {
14377
- N === !0 ? P() : N === !1 && U === !0 && x();
14386
+ }), watch(s.isCreating, (P, U) => {
14387
+ P === !0 ? N() : P === !1 && U === !0 && x();
14378
14388
  }), onUnmounted(() => {
14379
14389
  o.store.dispose(s.formID);
14380
14390
  });
14381
- function P() {
14391
+ function N() {
14382
14392
  if (i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
14383
- const N = {
14393
+ const P = {
14384
14394
  [o.id.value]: KG_TABLE_TEMP_ID
14385
14395
  };
14386
- 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]);
14387
14397
  }
14388
14398
  }
14389
14399
  function x() {
14390
- const N = b.value.find((U) => U[o.id.value] === KG_TABLE_TEMP_ID);
14391
- 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, []));
14392
14402
  }
14393
- function H(N, U) {
14403
+ function H(P, U) {
14394
14404
  var Q;
14395
14405
  if (!(!!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!L.value) {
14396
14406
  if (!U) {
14397
14407
  o.store.setSelectedRows(s.formID, []);
14398
14408
  return;
14399
14409
  }
14400
- switch (N == null ? void 0 : N.detail) {
14410
+ switch (P == null ? void 0 : P.detail) {
14401
14411
  case 1:
14402
14412
  switch ((Q = s.varGridConfig.value) == null ? void 0 : Q.operation_on_row_click) {
14403
14413
  case 0:
@@ -14415,9 +14425,9 @@ const KgTable$1 = "", getProps$g = () => ({
14415
14425
  }
14416
14426
  }
14417
14427
  }
14418
- function K(N = {}) {
14428
+ function K(P = {}) {
14419
14429
  KgLogger.debug(`${s.formID} | KgTable | retrieve() | \u6267\u884C\u5F00\u59CB.`, {
14420
- param: N
14430
+ param: P
14421
14431
  });
14422
14432
  const U = watch(o.isReady, (z) => {
14423
14433
  z && (setTimeout(() => U()), Q());
@@ -14432,7 +14442,7 @@ const KgTable$1 = "", getProps$g = () => ({
14432
14442
  });
14433
14443
  return;
14434
14444
  }
14435
- N.isSearchFirstPage && (I.pageIndex = 1), o.store.setIsRetrieving(s.formID, !0);
14445
+ P.isSearchFirstPage && (I.pageIndex = 1), o.store.setIsRetrieving(s.formID, !0);
14436
14446
  try {
14437
14447
  const ce = KgUtil.parseParams(k.value, o.profileFormID.value, t), le = ref({});
14438
14448
  await o.store.emit(s.formID, "beforeRetrieve", {
@@ -14463,7 +14473,7 @@ const KgTable$1 = "", getProps$g = () => ({
14463
14473
  }
14464
14474
  }), d.value = {}, o.store.setDatas(s.formID, oe.value), I.total = me.value;
14465
14475
  const be = cloneDeep($.value);
14466
- H(), c.value = [], await nextTick(), N.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, be.map((he) => {
14476
+ H(), c.value = [], await nextTick(), P.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, be.map((he) => {
14467
14477
  var Se;
14468
14478
  return (Se = oe.value) == null ? void 0 : Se.find((Ee) => Ee[o.id.value] === he);
14469
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,24 +14490,24 @@ const KgTable$1 = "", getProps$g = () => ({
14480
14490
  }
14481
14491
  }
14482
14492
  }
14483
- function F(N) {
14484
- o.store.setSelectedRows(s.formID, N.map((U) => {
14493
+ function F(P) {
14494
+ o.store.setSelectedRows(s.formID, P.map((U) => {
14485
14495
  var Q;
14486
14496
  return (Q = b.value) == null ? void 0 : Q.find((z) => z[o.id.value] === U);
14487
14497
  }).filter((U) => !!U));
14488
14498
  }
14489
- function Y(N) {
14499
+ function Y(P) {
14490
14500
  var U, Q;
14491
14501
  switch (o.isMultiSelect.value) {
14492
14502
  case !0:
14493
14503
  {
14494
- const z = N[o.id.value];
14504
+ const z = P[o.id.value];
14495
14505
  $.value.includes(z) ? $.value = without$1($.value, z) : $.value = [...(U = $.value) != null ? U : [], z];
14496
14506
  }
14497
14507
  break;
14498
14508
  case !1:
14499
14509
  {
14500
- const z = N[o.id.value];
14510
+ const z = P[o.id.value];
14501
14511
  (Q = $.value) != null && Q.includes(z) ? $.value = [] : $.value = [z];
14502
14512
  }
14503
14513
  break;
@@ -14507,10 +14517,10 @@ const KgTable$1 = "", getProps$g = () => ({
14507
14517
  return (ee = b.value) == null ? void 0 : ee.find((ce) => ce[o.id.value] === z);
14508
14518
  }).filter((z) => !!z));
14509
14519
  }
14510
- function q(N, U) {
14511
- 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);
14512
14522
  }
14513
- async function X(N, U, Q, z) {
14523
+ async function X(P, U, Q, z) {
14514
14524
  switch (z.action) {
14515
14525
  case "sort": {
14516
14526
  p.value = Q, await nextTick(), K({
@@ -14522,23 +14532,23 @@ const KgTable$1 = "", getProps$g = () => ({
14522
14532
  d.value = U;
14523
14533
  }
14524
14534
  }
14525
- function J(N, U) {
14535
+ function J(P, U) {
14526
14536
  var z;
14527
14537
  const Q = U[o.id.value];
14528
14538
  switch ((z = s.varGridConfig.value) == null ? void 0 : z.expand_accordion_flg) {
14529
14539
  case 0:
14530
- 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);
14531
14541
  break;
14532
14542
  default:
14533
- N ? c.value = [Q] : c.value = [];
14543
+ P ? c.value = [Q] : c.value = [];
14534
14544
  break;
14535
14545
  }
14536
14546
  }
14537
- function te(N, U) {
14538
- 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();
14539
14549
  }
14540
14550
  function ue({
14541
- title: N,
14551
+ title: P,
14542
14552
  column: U
14543
14553
  }) {
14544
14554
  switch (U.dataIndex) {
@@ -14548,13 +14558,13 @@ const KgTable$1 = "", getProps$g = () => ({
14548
14558
  }, null);
14549
14559
  default:
14550
14560
  return createVNode("pre", {
14551
- title: N
14552
- }, [N]);
14561
+ title: P
14562
+ }, [P]);
14553
14563
  }
14554
14564
  }
14555
14565
  function _e() {
14556
- var N;
14557
- 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, {
14558
14568
  fixed: "bottom"
14559
14569
  }, {
14560
14570
  default: () => [createVNode(TableSummary.Row, null, {
@@ -14586,7 +14596,7 @@ const KgTable$1 = "", getProps$g = () => ({
14586
14596
  return !o.isReadAutomatically.value && !o.store.getIsRetrieved(s.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
14587
14597
  }
14588
14598
  return () => {
14589
- var N, U, Q;
14599
+ var P, U, Q;
14590
14600
  return createVNode("div", {
14591
14601
  class: R.value,
14592
14602
  "kg-frm_id": s.formID,
@@ -14604,7 +14614,7 @@ const KgTable$1 = "", getProps$g = () => ({
14604
14614
  dataSource: b.value,
14605
14615
  loading: y.value,
14606
14616
  rowKey: o.id.value,
14607
- 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,
14608
14618
  expandColumnWidth: 28,
14609
14619
  expandedRowKeys: c.value,
14610
14620
  rowSelection: L.value,
@@ -15098,7 +15108,9 @@ const KgButtonCreate = defineComponent({
15098
15108
  ignoreCancelToken: !0
15099
15109
  }
15100
15110
  });
15101
- message.success(a.t("kg.importSuccess")), s.search(!0);
15111
+ message.success(a.t("kg.importSuccess")), s.search({
15112
+ isSearchFirstPage: !0
15113
+ });
15102
15114
  } catch (b) {
15103
15115
  throw b;
15104
15116
  } finally {
@@ -15261,7 +15273,9 @@ const KgButtonCreate = defineComponent({
15261
15273
  data: w
15262
15274
  }))
15263
15275
  return;
15264
- a.search(!0);
15276
+ a.search({
15277
+ isSearchFirstPage: !0
15278
+ });
15265
15279
  } else if (await n.store.emit(r.formID, "otherOk", {
15266
15280
  button: e.kgButton,
15267
15281
  data: w
@@ -16625,7 +16639,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
16625
16639
  hostFormID: n.formID
16626
16640
  }, null)]);
16627
16641
  }
16628
- function P() {
16642
+ function N() {
16629
16643
  var K, F, Y, q, X;
16630
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, {
16631
16645
  type: "primary",
@@ -16703,7 +16717,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
16703
16717
  }, {
16704
16718
  default: () => [I(), createVNode("div", {
16705
16719
  class: "ant-collapse-extra"
16706
- }, [P()])]
16720
+ }, [N()])]
16707
16721
  })])]
16708
16722
  }), createVNode("div", {
16709
16723
  class: "ant-collapse-content ant-collapse-content-active"
@@ -17212,11 +17226,11 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
17212
17226
  }
17213
17227
  });
17214
17228
  if (u.value = null, c.value = V != null ? V : [], R) {
17215
- const P = c.value.find((x) => {
17229
+ const N = c.value.find((x) => {
17216
17230
  var H;
17217
17231
  return x.id === ((H = a.getSelectedVarCatalog) == null ? void 0 : H.id);
17218
17232
  });
17219
- 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] : [];
17220
17234
  } else
17221
17235
  a.setSelectedVarCatalog(($ = c.value[0]) != null ? $ : null), d.value = (I = c.value[0]) != null && I.id ? [c.value[0].id] : [];
17222
17236
  } catch (V) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",