@kengic/vue 0.19.2-beta.2 → 0.19.2-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2360,9 +2360,9 @@ function sendQuery(e, t, r, a) {
2360
2360
  C.status === "pending" && (C.status = "aborted");
2361
2361
  }), b = [];
2362
2362
  }
2363
- function k(C, w, D) {
2363
+ function k(C, w, M) {
2364
2364
  const I = w !== "success";
2365
- switch (b = b.filter((M) => M !== C), l) {
2365
+ switch (b = b.filter((D) => D !== C), l) {
2366
2366
  case "pending":
2367
2367
  break;
2368
2368
  case "failed":
@@ -2373,19 +2373,19 @@ function sendQuery(e, t, r, a) {
2373
2373
  return;
2374
2374
  }
2375
2375
  if (w === "abort") {
2376
- u = D, v();
2376
+ u = M, v();
2377
2377
  return;
2378
2378
  }
2379
2379
  if (I) {
2380
- u = D, b.length || (i.length ? A() : v());
2380
+ u = M, b.length || (i.length ? A() : v());
2381
2381
  return;
2382
2382
  }
2383
2383
  if (g(), T(), !e.random) {
2384
- const M = e.resources.indexOf(C.resource);
2385
- M !== -1 && M !== e.index && (e.index = M);
2384
+ const D = e.resources.indexOf(C.resource);
2385
+ D !== -1 && D !== e.index && (e.index = D);
2386
2386
  }
2387
- l = "completed", E.forEach((M) => {
2388
- M(D);
2387
+ l = "completed", E.forEach((D) => {
2388
+ D(M);
2389
2389
  });
2390
2390
  }
2391
2391
  function A() {
@@ -2406,8 +2406,8 @@ function sendQuery(e, t, r, a) {
2406
2406
  const w = {
2407
2407
  status: "pending",
2408
2408
  resource: C,
2409
- callback: (D, I) => {
2410
- k(w, D, I);
2409
+ callback: (M, I) => {
2410
+ k(w, M, I);
2411
2411
  }
2412
2412
  };
2413
2413
  b.push(w), c++, d = setTimeout(A, e.rotate), r(C, t, w.callback);
@@ -2930,7 +2930,7 @@ const emptyIcon = {
2930
2930
  ...t.data
2931
2931
  }, r);
2932
2932
  }
2933
- }), version = "0.19.2-beta.2";
2933
+ }), version = "0.19.2-beta.4";
2934
2934
  var isVue2 = !1;
2935
2935
  function set(e, t, r) {
2936
2936
  return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, r), r) : (e[t] = r, r);
@@ -3129,22 +3129,22 @@ function createSetupStore(e, t, r = {}, a, n) {
3129
3129
  const l = {
3130
3130
  deep: !0
3131
3131
  };
3132
- process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (D) => {
3133
- c ? E = D : c == !1 && !C._hotUpdating && (Array.isArray(E) ? E.push(D) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
3132
+ process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (M) => {
3133
+ c ? E = M : c == !1 && !C._hotUpdating && (Array.isArray(E) ? E.push(M) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
3134
3134
  });
3135
3135
  let c, u, d = markRaw([]), b = markRaw([]), E;
3136
3136
  const g = a.state.value[e];
3137
3137
  !i && !g && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
3138
3138
  const m = ref({});
3139
- function _(D) {
3139
+ function _(M) {
3140
3140
  let I;
3141
- c = u = !1, process.env.NODE_ENV !== "production" && (E = []), typeof D == "function" ? (D(a.state.value[e]), I = {
3141
+ c = u = !1, process.env.NODE_ENV !== "production" && (E = []), typeof M == "function" ? (M(a.state.value[e]), I = {
3142
3142
  type: MutationType.patchFunction,
3143
3143
  storeId: e,
3144
3144
  events: E
3145
- }) : (mergeReactiveObjects(a.state.value[e], D), I = {
3145
+ }) : (mergeReactiveObjects(a.state.value[e], M), I = {
3146
3146
  type: MutationType.patchObject,
3147
- payload: D,
3147
+ payload: M,
3148
3148
  storeId: e,
3149
3149
  events: E
3150
3150
  }), nextTick().then(() => {
@@ -3157,10 +3157,10 @@ function createSetupStore(e, t, r = {}, a, n) {
3157
3157
  function v() {
3158
3158
  s.stop(), d = [], b = [], a._s.delete(e);
3159
3159
  }
3160
- function T(D, I) {
3160
+ function T(M, I) {
3161
3161
  return function() {
3162
3162
  setActivePinia(a);
3163
- const M = Array.from(arguments), K = [], P = [];
3163
+ const D = Array.from(arguments), K = [], P = [];
3164
3164
  function U(R) {
3165
3165
  K.push(R);
3166
3166
  }
@@ -3168,15 +3168,15 @@ function createSetupStore(e, t, r = {}, a, n) {
3168
3168
  P.push(R);
3169
3169
  }
3170
3170
  triggerSubscriptions(b, {
3171
- args: M,
3172
- name: D,
3171
+ args: D,
3172
+ name: M,
3173
3173
  store: C,
3174
3174
  after: U,
3175
3175
  onError: L
3176
3176
  });
3177
3177
  let O;
3178
3178
  try {
3179
- O = I.apply(this && this.$id === e ? this : C, M);
3179
+ O = I.apply(this && this.$id === e ? this : C, D);
3180
3180
  } catch (R) {
3181
3181
  throw triggerSubscriptions(P, R), R;
3182
3182
  }
@@ -3194,15 +3194,15 @@ function createSetupStore(e, t, r = {}, a, n) {
3194
3194
  $onAction: addSubscription.bind(null, b),
3195
3195
  $patch: _,
3196
3196
  $reset: y,
3197
- $subscribe(D, I = {}) {
3198
- const M = addSubscription(d, D, I.detached, () => K()), K = s.run(() => watch(() => a.state.value[e], (P) => {
3199
- (I.flush === "sync" ? u : c) && D({
3197
+ $subscribe(M, I = {}) {
3198
+ const D = addSubscription(d, M, I.detached, () => K()), K = s.run(() => watch(() => a.state.value[e], (P) => {
3199
+ (I.flush === "sync" ? u : c) && M({
3200
3200
  storeId: e,
3201
3201
  type: MutationType.direct,
3202
3202
  events: E
3203
3203
  }, P);
3204
3204
  }, assign$1({}, l, I)));
3205
- return M;
3205
+ return D;
3206
3206
  },
3207
3207
  $dispose: v
3208
3208
  }, C = reactive(assign$1(
@@ -3214,53 +3214,53 @@ function createSetupStore(e, t, r = {}, a, n) {
3214
3214
  ));
3215
3215
  a._s.set(e, C);
3216
3216
  const w = a._e.run(() => (s = effectScope(), s.run(() => t())));
3217
- for (const D in w) {
3218
- const I = w[D];
3217
+ for (const M in w) {
3218
+ const I = w[M];
3219
3219
  if (isRef(I) && !isComputed(I) || isReactive(I))
3220
- process.env.NODE_ENV !== "production" && n ? set(m.value, D, toRef(w, D)) : i || (g && shouldHydrate(I) && (isRef(I) ? I.value = g[D] : mergeReactiveObjects(I, g[D])), a.state.value[e][D] = I), process.env.NODE_ENV !== "production" && k.state.push(D);
3220
+ process.env.NODE_ENV !== "production" && n ? set(m.value, M, toRef(w, M)) : i || (g && shouldHydrate(I) && (isRef(I) ? I.value = g[M] : mergeReactiveObjects(I, g[M])), a.state.value[e][M] = I), process.env.NODE_ENV !== "production" && k.state.push(M);
3221
3221
  else if (typeof I == "function") {
3222
- const M = process.env.NODE_ENV !== "production" && n ? I : T(D, I);
3223
- w[D] = M, process.env.NODE_ENV !== "production" && (k.actions[D] = I), o.actions[D] = I;
3222
+ const D = process.env.NODE_ENV !== "production" && n ? I : T(M, I);
3223
+ w[M] = D, process.env.NODE_ENV !== "production" && (k.actions[M] = I), o.actions[M] = I;
3224
3224
  } else
3225
- process.env.NODE_ENV !== "production" && isComputed(I) && (k.getters[D] = i ? r.getters[D] : I, IS_CLIENT && (w._getters || (w._getters = markRaw([]))).push(D));
3225
+ process.env.NODE_ENV !== "production" && isComputed(I) && (k.getters[M] = i ? r.getters[M] : I, IS_CLIENT && (w._getters || (w._getters = markRaw([]))).push(M));
3226
3226
  }
3227
3227
  if (assign$1(C, w), assign$1(toRaw(C), w), Object.defineProperty(C, "$state", {
3228
3228
  get: () => process.env.NODE_ENV !== "production" && n ? m.value : a.state.value[e],
3229
- set: (D) => {
3229
+ set: (M) => {
3230
3230
  if (process.env.NODE_ENV !== "production" && n)
3231
3231
  throw new Error("cannot set hotState");
3232
3232
  _((I) => {
3233
- assign$1(I, D);
3233
+ assign$1(I, M);
3234
3234
  });
3235
3235
  }
3236
3236
  }), process.env.NODE_ENV !== "production") {
3237
3237
  C._hotUpdate = markRaw((I) => {
3238
- C._hotUpdating = !0, I._hmrPayload.state.forEach((M) => {
3239
- if (M in C.$state) {
3240
- const K = I.$state[M], P = C.$state[M];
3241
- typeof K == "object" && isPlainObject(K) && isPlainObject(P) ? patchObject(K, P) : I.$state[M] = P;
3238
+ C._hotUpdating = !0, I._hmrPayload.state.forEach((D) => {
3239
+ if (D in C.$state) {
3240
+ const K = I.$state[D], P = C.$state[D];
3241
+ typeof K == "object" && isPlainObject(K) && isPlainObject(P) ? patchObject(K, P) : I.$state[D] = P;
3242
3242
  }
3243
- set(C, M, toRef(I.$state, M));
3244
- }), Object.keys(C.$state).forEach((M) => {
3245
- M in I.$state || del(C, M);
3243
+ set(C, D, toRef(I.$state, D));
3244
+ }), Object.keys(C.$state).forEach((D) => {
3245
+ D in I.$state || del(C, D);
3246
3246
  }), c = !1, u = !1, a.state.value[e] = toRef(I._hmrPayload, "hotState"), u = !0, nextTick().then(() => {
3247
3247
  c = !0;
3248
3248
  });
3249
- for (const M in I._hmrPayload.actions) {
3250
- const K = I[M];
3251
- set(C, M, T(M, K));
3252
- }
3253
- for (const M in I._hmrPayload.getters) {
3254
- const K = I._hmrPayload.getters[M], P = i ? computed(() => (setActivePinia(a), K.call(C, C))) : K;
3255
- set(C, M, P);
3256
- }
3257
- Object.keys(C._hmrPayload.getters).forEach((M) => {
3258
- M in I._hmrPayload.getters || del(C, M);
3259
- }), Object.keys(C._hmrPayload.actions).forEach((M) => {
3260
- M in I._hmrPayload.actions || del(C, M);
3249
+ for (const D in I._hmrPayload.actions) {
3250
+ const K = I[D];
3251
+ set(C, D, T(D, K));
3252
+ }
3253
+ for (const D in I._hmrPayload.getters) {
3254
+ const K = I._hmrPayload.getters[D], P = i ? computed(() => (setActivePinia(a), K.call(C, C))) : K;
3255
+ set(C, D, P);
3256
+ }
3257
+ Object.keys(C._hmrPayload.getters).forEach((D) => {
3258
+ D in I._hmrPayload.getters || del(C, D);
3259
+ }), Object.keys(C._hmrPayload.actions).forEach((D) => {
3260
+ D in I._hmrPayload.actions || del(C, D);
3261
3261
  }), C._hmrPayload = I._hmrPayload, C._getters = I._getters, C._hotUpdating = !1;
3262
3262
  });
3263
- const D = {
3263
+ const M = {
3264
3264
  writable: !0,
3265
3265
  configurable: !0,
3266
3266
  enumerable: !1
@@ -3268,21 +3268,21 @@ function createSetupStore(e, t, r = {}, a, n) {
3268
3268
  IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
3269
3269
  Object.defineProperty(C, I, {
3270
3270
  value: C[I],
3271
- ...D
3271
+ ...M
3272
3272
  });
3273
3273
  });
3274
3274
  }
3275
- return a._p.forEach((D) => {
3275
+ return a._p.forEach((M) => {
3276
3276
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
3277
- const I = s.run(() => D({
3277
+ const I = s.run(() => M({
3278
3278
  store: C,
3279
3279
  app: a._a,
3280
3280
  pinia: a,
3281
3281
  options: o
3282
3282
  }));
3283
- Object.keys(I || {}).forEach((M) => C._customProperties.add(M)), assign$1(C, I);
3283
+ Object.keys(I || {}).forEach((D) => C._customProperties.add(D)), assign$1(C, I);
3284
3284
  } else
3285
- assign$1(C, s.run(() => D({
3285
+ assign$1(C, s.run(() => M({
3286
3286
  store: C,
3287
3287
  app: a._a,
3288
3288
  pinia: a,
@@ -4892,19 +4892,19 @@ function debounce(e, t, r) {
4892
4892
  throw new TypeError(FUNC_ERROR_TEXT);
4893
4893
  t = toNumber(t) || 0, isObject$2(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? nativeMax$3(toNumber(r.maxWait) || 0, t) : s, b = "trailing" in r ? !!r.trailing : b);
4894
4894
  function E(C) {
4895
- var w = a, D = n;
4896
- return a = n = void 0, c = C, i = e.apply(D, w), i;
4895
+ var w = a, M = n;
4896
+ return a = n = void 0, c = C, i = e.apply(M, w), i;
4897
4897
  }
4898
4898
  function g(C) {
4899
4899
  return c = C, o = setTimeout(y, t), u ? E(C) : i;
4900
4900
  }
4901
4901
  function m(C) {
4902
- var w = C - l, D = C - c, I = t - w;
4903
- return d ? nativeMin$2(I, s - D) : I;
4902
+ var w = C - l, M = C - c, I = t - w;
4903
+ return d ? nativeMin$2(I, s - M) : I;
4904
4904
  }
4905
4905
  function _(C) {
4906
- var w = C - l, D = C - c;
4907
- return l === void 0 || w >= t || w < 0 || d && D >= s;
4906
+ var w = C - l, M = C - c;
4907
+ return l === void 0 || w >= t || w < 0 || d && M >= s;
4908
4908
  }
4909
4909
  function y() {
4910
4910
  var C = now$1();
@@ -5308,7 +5308,7 @@ class KgRouteUtil {
5308
5308
  }), t;
5309
5309
  }
5310
5310
  static transformMenus(t) {
5311
- var u, d, b, E, g, m, _, y, v, T, k, A, C, w, D, I, M, K, P, U, L, O, R, V;
5311
+ var u, d, b, E, g, m, _, y, v, T, k, A, C, w, M, I, D, K, P, U, L, O, R, V;
5312
5312
  if (!t)
5313
5313
  return [];
5314
5314
  const r = useKg(), a = (N) => {
@@ -5369,9 +5369,9 @@ class KgRouteUtil {
5369
5369
  id: KG_TMP_MENU_ID__WCS,
5370
5370
  key: KG_TMP_MENU_ID__WCS,
5371
5371
  name: (w = (C = r.option.value.appTitle) == null ? void 0 : C[KG_APP.WCS]) != null ? w : "WCS",
5372
- slotTitle: (I = (D = r.option.value.appTitle) == null ? void 0 : D[KG_APP.WCS]) != null ? I : "WCS",
5372
+ slotTitle: (I = (M = r.option.value.appTitle) == null ? void 0 : M[KG_APP.WCS]) != null ? I : "WCS",
5373
5373
  sortNo: 3,
5374
- title: (K = (M = r.option.value.appTitle) == null ? void 0 : M[KG_APP.WCS]) != null ? K : "WCS",
5374
+ title: (K = (D = r.option.value.appTitle) == null ? void 0 : D[KG_APP.WCS]) != null ? K : "WCS",
5375
5375
  ...n,
5376
5376
  url: KG_APP_PREFIX.WCS,
5377
5377
  value: KG_TMP_MENU_ID__WCS
@@ -5524,7 +5524,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5524
5524
  return L === void 0;
5525
5525
  } }, A = "en", C = {};
5526
5526
  C[A] = v;
5527
- var w = "$isDayjsObject", D = function(L) {
5527
+ var w = "$isDayjsObject", M = function(L) {
5528
5528
  return L instanceof P || !(!L || !L[w]);
5529
5529
  }, I = function L(O, R, V) {
5530
5530
  var N;
@@ -5541,14 +5541,14 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5541
5541
  C[F] = O, N = F;
5542
5542
  }
5543
5543
  return !V && N && (A = N), N || !V && A;
5544
- }, M = function(L, O) {
5545
- if (D(L))
5544
+ }, D = function(L, O) {
5545
+ if (M(L))
5546
5546
  return L.clone();
5547
5547
  var R = typeof O == "object" ? O : {};
5548
5548
  return R.date = L, R.args = arguments, new P(R);
5549
5549
  }, K = k;
5550
- K.l = I, K.i = D, K.w = function(L, O) {
5551
- return M(L, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
5550
+ K.l = I, K.i = M, K.w = function(L, O) {
5551
+ return D(L, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
5552
5552
  };
5553
5553
  var P = function() {
5554
5554
  function L(R) {
@@ -5581,12 +5581,12 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5581
5581
  }, O.isValid = function() {
5582
5582
  return this.$d.toString() !== m;
5583
5583
  }, O.isSame = function(R, V) {
5584
- var N = M(R);
5584
+ var N = D(R);
5585
5585
  return this.startOf(V) <= N && N <= this.endOf(V);
5586
5586
  }, O.isAfter = function(R, V) {
5587
- return M(R) < this.startOf(V);
5587
+ return D(R) < this.startOf(V);
5588
5588
  }, O.isBefore = function(R, V) {
5589
- return this.endOf(V) < M(R);
5589
+ return this.endOf(V) < D(R);
5590
5590
  }, O.$g = function(R, V, N) {
5591
5591
  return K.u(R) ? this[V] : this.set(N, R);
5592
5592
  }, O.unix = function() {
@@ -5638,7 +5638,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5638
5638
  var N, x = this;
5639
5639
  R = Number(R);
5640
5640
  var $ = K.p(V), F = function(J) {
5641
- var re = M(x);
5641
+ var re = D(x);
5642
5642
  return K.w(re.date(re.date() + Math.round(J * R)), x);
5643
5643
  };
5644
5644
  if ($ === d)
@@ -5723,7 +5723,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5723
5723
  }, O.utcOffset = function() {
5724
5724
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
5725
5725
  }, O.diff = function(R, V, N) {
5726
- var x, $ = this, F = K.p(V), H = M(R), Q = (H.utcOffset() - this.utcOffset()) * a, J = this - H, re = function() {
5726
+ var x, $ = this, F = K.p(V), H = D(R), Q = (H.utcOffset() - this.utcOffset()) * a, J = this - H, re = function() {
5727
5727
  return K.m($, H);
5728
5728
  };
5729
5729
  switch (F) {
@@ -5776,15 +5776,15 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5776
5776
  return this.$d.toUTCString();
5777
5777
  }, L;
5778
5778
  }(), U = P.prototype;
5779
- return M.prototype = U, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", E], ["$D", g]].forEach(function(L) {
5779
+ return D.prototype = U, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", E], ["$D", g]].forEach(function(L) {
5780
5780
  U[L[1]] = function(O) {
5781
5781
  return this.$g(O, L[0], L[1]);
5782
5782
  };
5783
- }), M.extend = function(L, O) {
5784
- return L.$i || (L(O, P, M), L.$i = !0), M;
5785
- }, M.locale = I, M.isDayjs = D, M.unix = function(L) {
5786
- return M(1e3 * L);
5787
- }, M.en = C[A], M.Ls = C, M.p = {}, M;
5783
+ }), D.extend = function(L, O) {
5784
+ return L.$i || (L(O, P, D), L.$i = !0), D;
5785
+ }, D.locale = I, D.isDayjs = M, D.unix = function(L) {
5786
+ return D(1e3 * L);
5787
+ }, D.en = C[A], D.Ls = C, D.p = {}, D;
5788
5788
  });
5789
5789
  })(dayjs_min);
5790
5790
  const dayjs = dayjs_min.exports;
@@ -5831,23 +5831,23 @@ function filesize(e, {
5831
5831
  } = {}) {
5832
5832
  let y = g, v = Number(e), T = [], k = 0, A = EMPTY;
5833
5833
  u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
5834
- const C = a === 10 ? 1e3 : 1024, w = b === !0, D = v < 0, I = Math[m];
5834
+ const C = a === 10 ? 1e3 : 1024, w = b === !0, M = v < 0, I = Math[m];
5835
5835
  if (typeof e != "bigint" && isNaN(e))
5836
5836
  throw new TypeError(INVALID_NUMBER);
5837
5837
  if (typeof I !== FUNCTION)
5838
5838
  throw new TypeError(INVALID_ROUND);
5839
- if (D && (v = -v), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(v) / Math.log(C)), y < 0 && (y = 0)), y > 8 && (_ > 0 && (_ += 8 - y), y = 8), d === EXPONENT)
5839
+ if (M && (v = -v), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(v) / Math.log(C)), y < 0 && (y = 0)), y > 8 && (_ > 0 && (_ += 8 - y), y = 8), d === EXPONENT)
5840
5840
  return y;
5841
5841
  if (v === 0)
5842
5842
  T[0] = 0, A = T[1] = STRINGS.symbol[u][t ? BITS : BYTES][y];
5843
5843
  else {
5844
5844
  k = v / (a === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (k = k * 8, k >= C && y < 8 && (k = k / C, y++));
5845
- const M = Math.pow(10, y > 0 ? n : 0);
5846
- T[0] = I(k * M) / M, T[0] === C && y < 8 && g === -1 && (T[0] = 1, y++), A = T[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][y];
5845
+ const D = Math.pow(10, y > 0 ? n : 0);
5846
+ T[0] = I(k * D) / D, T[0] === C && y < 8 && g === -1 && (T[0] = 1, y++), A = T[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][y];
5847
5847
  }
5848
- if (D && (T[0] = -T[0]), _ > 0 && (T[0] = T[0].toPrecision(_)), T[1] = c[T[1]] || T[1], s === !0 ? T[0] = T[0].toLocaleString() : s.length > 0 ? T[0] = T[0].toLocaleString(s, i) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
5849
- const M = o || PERIOD, K = T[0].toString().split(M), P = K[1] || EMPTY, U = P.length, L = n - U;
5850
- T[0] = `${K[0]}${M}${P.padEnd(U + L, ZERO)}`;
5848
+ if (M && (T[0] = -T[0]), _ > 0 && (T[0] = T[0].toPrecision(_)), T[1] = c[T[1]] || T[1], s === !0 ? T[0] = T[0].toLocaleString() : s.length > 0 ? T[0] = T[0].toLocaleString(s, i) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
5849
+ const D = o || PERIOD, K = T[0].toString().split(D), P = K[1] || EMPTY, U = P.length, L = n - U;
5850
+ T[0] = `${K[0]}${D}${P.padEnd(U + L, ZERO)}`;
5851
5851
  }
5852
5852
  return w && (T[1] = E[y] ? E[y] : STRINGS.fullform[u][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), d === ARRAY ? T : d === OBJECT ? {
5853
5853
  value: T[0],
@@ -7627,7 +7627,7 @@ const useKgTableStore = defineStore("KgTable", {
7627
7627
  dispose(e) {
7628
7628
  if (!e)
7629
7629
  return KgLogger.error("formID \u4E3A\u7A7A."), null;
7630
- this.isReadyMap.delete(e), this.datasMap.delete(e), this.selectedRowKeysMap.delete(e), this.selectedRowsMap.delete(e), this.isRequestedMap.delete(e), this.isRequestingMap.delete(e), this.tableWidthMap.delete(e), this.rowDoubleClickListenersMap.delete(e), this.beforeRequestListenersMap.delete(e), this.beforeSetDatasListenersMap.delete(e), this.afterRequestListenersMap.delete(e);
7630
+ this.isReadyMap.delete(e), this.datasMap.delete(e), this.selectedRowKeysMap.delete(e), this.selectedRowsMap.delete(e), this.isRequestedMap.delete(e), this.isRequestingMap.delete(e), this.tableWidthMap.delete(e);
7631
7631
  },
7632
7632
  addEventListener(e, t, r) {
7633
7633
  if (!e) {
@@ -7937,19 +7937,17 @@ const KgTable_Setting = "", FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig",
7937
7937
  props: getProps$H(),
7938
7938
  setup: function(e) {
7939
7939
  KgUtil.showLoading();
7940
- const t = useKgVar(e.hostFormID), r = useKg(), a = useKgVar(FORM_ID__VAR_GRID_CONFIG, !0, t ? t.store.getFormLevel(t.formID) + 2 : 2);
7941
- let n = null;
7942
- const s = useKgSubmit(a.formID);
7943
- useKgTable(a.formID).onBeforeSearch(async ({
7940
+ const t = useKg(), r = useKgVar(e.hostFormID), a = useKgVar(FORM_ID__VAR_GRID_CONFIG, !0, r ? r.store.getFormLevel(r.formID) + 2 : 2), n = useKgSubmit(a.formID), s = useKgTable(a.formID);
7941
+ s.onBeforeSearch(async ({
7944
7942
  response: l
7945
- }) => (l.value = o.value ? [o.value] : [], !0), !0), s.onOpen(async ({
7943
+ }) => (l.value = o.value ? [o.value] : [], !0), !0), n.onOpen(async ({
7946
7944
  model: l
7947
- }) => (n = watch(l, (c) => {
7948
- var u, d, b, E, g, m, _, y, v, T, k, A, C, w, D, I, M, K, P, U, L, O;
7949
- c && (c.id = (d = (u = o.value) == null ? void 0 : u.id) != null ? d : null, c.frm_id = t == null ? void 0 : t.formID, c.aut_load_flg = (E = (b = o.value) == null ? void 0 : b.aut_load_flg) != null ? E : 0, c.mult_flg = (m = (g = o.value) == null ? void 0 : g.mult_flg) != null ? m : 0, c.show_check_column_flg = (y = (_ = o.value) == null ? void 0 : _.show_check_column_flg) != null ? y : 0, c.show_bottom_left_flg = (T = (v = o.value) == null ? void 0 : v.show_bottom_left_flg) != null ? T : 1, c.show_bottom_right_flg = (A = (k = o.value) == null ? void 0 : k.show_bottom_right_flg) != null ? A : 1, c.convert_sort_field_to_under_score_flg = (w = (C = o.value) == null ? void 0 : C.convert_sort_field_to_under_score_flg) != null ? w : 0, c.pg_size_opts = (I = (D = o.value) == null ? void 0 : D.pg_size_opts) != null ? I : "[10, 20, 50, 100]", c.pg_size_opt = (K = (M = o.value) == null ? void 0 : M.pg_size_opt) != null ? K : 10, c.cmd_prm = (U = (P = o.value) == null ? void 0 : P.cmd_prm) != null ? U : void 0, c.button_display_type = (O = (L = o.value) == null ? void 0 : L.button_display_type) != null ? O : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
7945
+ }) => (i = watch(l, (c) => {
7946
+ var u, d, b, E, g, m, _, y, v, T, k, A, C, w, M, I, D, K, P, U, L, O;
7947
+ c && (c.id = (d = (u = o.value) == null ? void 0 : u.id) != null ? d : null, c.frm_id = r == null ? void 0 : r.formID, c.aut_load_flg = (E = (b = o.value) == null ? void 0 : b.aut_load_flg) != null ? E : 0, c.mult_flg = (m = (g = o.value) == null ? void 0 : g.mult_flg) != null ? m : 0, c.show_check_column_flg = (y = (_ = o.value) == null ? void 0 : _.show_check_column_flg) != null ? y : 0, c.show_bottom_left_flg = (T = (v = o.value) == null ? void 0 : v.show_bottom_left_flg) != null ? T : 1, c.show_bottom_right_flg = (A = (k = o.value) == null ? void 0 : k.show_bottom_right_flg) != null ? A : 1, c.convert_sort_field_to_under_score_flg = (w = (C = o.value) == null ? void 0 : C.convert_sort_field_to_under_score_flg) != null ? w : 0, c.pg_size_opts = (I = (M = o.value) == null ? void 0 : M.pg_size_opts) != null ? I : "[10, 20, 50, 100]", c.pg_size_opt = (K = (D = o.value) == null ? void 0 : D.pg_size_opt) != null ? K : 10, c.cmd_prm = (U = (P = o.value) == null ? void 0 : P.cmd_prm) != null ? U : void 0, c.button_display_type = (O = (L = o.value) == null ? void 0 : L.button_display_type) != null ? O : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
7950
7948
  }, {
7951
7949
  immediate: !0
7952
- }), KgUtil.hideLoading(), !1)), s.onClose(async () => (n == null || n(), !1)), s.onBeforeOk(async ({
7950
+ }), KgUtil.hideLoading(), !1)), n.onClose(async () => (i == null || i(), !1)), n.onBeforeOk(async ({
7953
7951
  rules: l,
7954
7952
  model: c
7955
7953
  }) => {
@@ -7959,29 +7957,29 @@ const KgTable_Setting = "", FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig",
7959
7957
  switch (!0) {
7960
7958
  case !isArray$1(u):
7961
7959
  l.value.pg_size_opts = [{
7962
- validator: () => Promise.reject(r.t("kg.KgTableSettingVarGridConfig.invalidPageSizeOptions"))
7960
+ validator: () => Promise.reject(t.t("kg.KgTableSettingVarGridConfig.invalidPageSizeOptions"))
7963
7961
  }];
7964
7962
  break;
7965
7963
  case u.length < 1:
7966
7964
  l.value.pg_size_opts = [{
7967
- validator: () => Promise.reject(r.t("kg.KgTableSettingVarGridConfig.emptyPageSizeOptions"))
7965
+ validator: () => Promise.reject(t.t("kg.KgTableSettingVarGridConfig.emptyPageSizeOptions"))
7968
7966
  }];
7969
7967
  break;
7970
7968
  case u.some((d) => Number.isNaN(Number(d)) || Math.floor(Number(d)) <= 0):
7971
7969
  l.value.pg_size_opts = [{
7972
- validator: () => Promise.reject(r.t("kg.KgTableSettingVarGridConfig.invalidPageSizeOptions"))
7970
+ validator: () => Promise.reject(t.t("kg.KgTableSettingVarGridConfig.invalidPageSizeOptions"))
7973
7971
  }];
7974
7972
  break;
7975
7973
  default:
7976
7974
  switch (u = sortBy$1(uniq(u.map((d) => Math.floor(d)))), c.value.pg_size_opt || (c.value.pg_size_opt = u[0]), c.value.pg_size_opt = Number(c.value.pg_size_opt), !0) {
7977
7975
  case Number.isNaN(c.value.pg_size_opt):
7978
7976
  l.value.pg_size_opt = [{
7979
- validator: () => Promise.reject(r.t("kg.KgTableSettingVarGridConfig.invalidPageSizeOption"))
7977
+ validator: () => Promise.reject(t.t("kg.KgTableSettingVarGridConfig.invalidPageSizeOption"))
7980
7978
  }];
7981
7979
  break;
7982
7980
  case !u.includes(c.value.pg_size_opt):
7983
7981
  l.value.pg_size_opt = [{
7984
- validator: () => Promise.reject(r.t("kg.KgTableSettingVarGridConfig.invalidPageSizeOption"))
7982
+ validator: () => Promise.reject(t.t("kg.KgTableSettingVarGridConfig.invalidPageSizeOption"))
7985
7983
  }];
7986
7984
  break;
7987
7985
  default:
@@ -7991,7 +7989,7 @@ const KgTable_Setting = "", FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig",
7991
7989
  }
7992
7990
  } catch {
7993
7991
  l.value.pg_size_opts = [{
7994
- validator: () => Promise.reject(r.t("kg.KgTableSettingVarGridConfig.invalidPageSizeOptions"))
7992
+ validator: () => Promise.reject(t.t("kg.KgTableSettingVarGridConfig.invalidPageSizeOptions"))
7995
7993
  }];
7996
7994
  }
7997
7995
  if (c.value.cmd_prm)
@@ -7999,12 +7997,17 @@ const KgTable_Setting = "", FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig",
7999
7997
  JSON.parse(c.value.cmd_prm);
8000
7998
  } catch {
8001
7999
  l.value.cmd_prm = [{
8002
- validator: () => Promise.reject(r.t("kg.KgTableSettingVarGridConfig.invalidCommandParameter"))
8000
+ validator: () => Promise.reject(t.t("kg.KgTableSettingVarGridConfig.invalidCommandParameter"))
8003
8001
  }];
8004
8002
  }
8005
8003
  return await nextTick(), !1;
8006
- }), s.onOk(async () => (t == null || t.store.retrieve(t.formID), !1));
8007
- const o = computed(() => t == null ? void 0 : t.store.getVarGridConfig(t.formID));
8004
+ }), n.onOk(async () => (await (r == null ? void 0 : r.store.retrieve(r.formID)), s.store.setDatas({
8005
+ frmId: a.formID,
8006
+ datas: [o.value],
8007
+ isPreserveSelectedRows: !0
8008
+ }), !1));
8009
+ let i = null;
8010
+ const o = computed(() => r == null ? void 0 : r.store.getVarGridConfig(r.formID));
8008
8011
  return () => createVNode(KgVar, null, null);
8009
8012
  }
8010
8013
  }), FORM_ID__KG_TABLE__VAR_GRID_MASTER = "kg-table.VarGridMaster";
@@ -8852,7 +8855,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
8852
8855
  row: A,
8853
8856
  model: C
8854
8857
  }) => {
8855
- var D, I, M, K, P;
8858
+ var M, I, D, K, P;
8856
8859
  const w = a.store.getSystemVarGridDetails(a.formID);
8857
8860
  switch (c.value = w ? cloneDeep(toRaw(unref(w))) : [], !0) {
8858
8861
  case v: {
@@ -8878,7 +8881,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
8878
8881
  id: O.id
8879
8882
  } : O;
8880
8883
  });
8881
- const L = (I = (D = U == null ? void 0 : U.varGridDetails) == null ? void 0 : D.map((O) => O.var_nam)) != null ? I : [];
8884
+ const L = (I = (M = U == null ? void 0 : U.varGridDetails) == null ? void 0 : M.map((O) => O.var_nam)) != null ? I : [];
8882
8885
  u.value = c.value.filter((O) => L.includes(O.var_nam)).map((O) => O.id);
8883
8886
  } catch (U) {
8884
8887
  throw U;
@@ -8892,7 +8895,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
8892
8895
  }
8893
8896
  switch (!0) {
8894
8897
  case k: {
8895
- C.value.grd_var_nam = ((M = C.value.grd_var_nam) != null ? M : "") + "_COPY", C.value.grd_var_nam_dsc = ((P = (K = C.value.grd_var_nam_dsc) != null ? K : C.value.grd_var_nam) != null ? P : "") + "_COPY";
8898
+ C.value.grd_var_nam = ((D = C.value.grd_var_nam) != null ? D : "") + "_COPY", C.value.grd_var_nam_dsc = ((P = (K = C.value.grd_var_nam_dsc) != null ? K : C.value.grd_var_nam) != null ? P : "") + "_COPY";
8896
8899
  break;
8897
8900
  }
8898
8901
  }
@@ -8965,11 +8968,11 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
8965
8968
  onItemSelectAll: C,
8966
8969
  onItemSelect: w
8967
8970
  }) => {
8968
- const D = T.sort((I, M) => {
8971
+ const M = T.sort((I, D) => {
8969
8972
  var K, P;
8970
- return ((K = I.srtseq) != null ? K : 0) - ((P = M.srtseq) != null ? P : 0);
8973
+ return ((K = I.srtseq) != null ? K : 0) - ((P = D.srtseq) != null ? P : 0);
8971
8974
  });
8972
- return d.value = D, createVNode(Table, {
8975
+ return d.value = M, createVNode(Table, {
8973
8976
  pagination: !1,
8974
8977
  class: "kg-flex-table",
8975
8978
  size: "small",
@@ -8979,12 +8982,12 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
8979
8982
  },
8980
8983
  columns: v === "left" ? b() : E(),
8981
8984
  rowKey: "id",
8982
- dataSource: D,
8985
+ dataSource: M,
8983
8986
  customRow: (I) => {
8984
- let M = {
8987
+ let D = {
8985
8988
  onClick: (K) => y(K, I, v, k)
8986
8989
  };
8987
- return v === "right" && (M["kg-host-frm_id"] = a.formID, M["kg-var_nam"] = I.var_nam), M;
8990
+ return v === "right" && (D["kg-host-frm_id"] = a.formID, D["kg-var_nam"] = I.var_nam), D;
8988
8991
  },
8989
8992
  rowSelection: _({
8990
8993
  disabled: A,
@@ -9007,10 +9010,10 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
9007
9010
  disabled: v || C.disabled
9008
9011
  }),
9009
9012
  onSelectAll(C, w) {
9010
- const D = w.filter((I) => !I.disabled).map(({
9013
+ const M = w.filter((I) => !I.disabled).map(({
9011
9014
  key: I
9012
9015
  }) => I);
9013
- k(D, C);
9016
+ k(M, C);
9014
9017
  },
9015
9018
  onSelect({
9016
9019
  key: C
@@ -9236,8 +9239,8 @@ const getProps$D = () => ({
9236
9239
  class: "ant-dropdown-menu ant-dropdown-menu-vertical"
9237
9240
  }, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((w) => createVNode("li", {
9238
9241
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
9239
- onClick: (D) => {
9240
- D.preventDefault(), D.stopPropagation(), g(w);
9242
+ onClick: (M) => {
9243
+ M.preventDefault(), M.stopPropagation(), g(w);
9241
9244
  },
9242
9245
  style: {
9243
9246
  display: i(w, c.value) ? "flex" : "none"
@@ -9249,8 +9252,8 @@ const getProps$D = () => ({
9249
9252
  }, {
9250
9253
  default: () => [createVNode("pre", null, [n.t(w.var_nam).value])]
9251
9254
  }), createVNode(HolderOutlined$1, {
9252
- onClick: (D) => {
9253
- D.preventDefault(), D.stopPropagation();
9255
+ onClick: (M) => {
9256
+ M.preventDefault(), M.stopPropagation();
9254
9257
  }
9255
9258
  }, null)]))])]);
9256
9259
  },
@@ -9264,13 +9267,13 @@ const getProps$D = () => ({
9264
9267
  popupClassName: "kg-table-setting--submenu-popup--var-grid-masters"
9265
9268
  }, {
9266
9269
  default: () => {
9267
- var D;
9270
+ var M;
9268
9271
  let C, w;
9269
- return createVNode(Fragment, null, [(D = n.varGridMasters.value) == null ? void 0 : D.map((I) => {
9270
- var M;
9272
+ return createVNode(Fragment, null, [(M = n.varGridMasters.value) == null ? void 0 : M.map((I) => {
9273
+ var D;
9271
9274
  return createVNode(Menu.Item, {
9272
9275
  key: I.id,
9273
- class: I.id === ((M = n.currentVarGridMaster.value) == null ? void 0 : M.id) ? "selected" : "",
9276
+ class: I.id === ((D = n.currentVarGridMaster.value) == null ? void 0 : D.id) ? "selected" : "",
9274
9277
  "kg-var_nam": I.grd_var_nam,
9275
9278
  onClick: () => m(I)
9276
9279
  }, {
@@ -9301,14 +9304,14 @@ const getProps$D = () => ({
9301
9304
  });
9302
9305
  }
9303
9306
  function k() {
9304
- var C, w, D;
9305
- return ((D = (w = (C = a.option.value.KgTable) == null ? void 0 : C.Setting) == null ? void 0 : w.rowHeight) == null ? void 0 : D.on) !== !0 ? null : createVNode(Menu.SubMenu, {
9307
+ var C, w, M;
9308
+ return ((M = (w = (C = a.option.value.KgTable) == null ? void 0 : C.Setting) == null ? void 0 : w.rowHeight) == null ? void 0 : M.on) !== !0 ? null : createVNode(Menu.SubMenu, {
9306
9309
  key: "row-height",
9307
9310
  title: a.t("kg.KgTable.rowHeight"),
9308
9311
  popupClassName: "kg-table-setting--submenu-popup--row-height"
9309
9312
  }, {
9310
9313
  default: () => {
9311
- let I, M, K;
9314
+ let I, D, K;
9312
9315
  return createVNode(Fragment, null, [createVNode(Menu.Item, {
9313
9316
  key: "L",
9314
9317
  class: u.value === "L" ? "selected" : "",
@@ -9319,8 +9322,8 @@ const getProps$D = () => ({
9319
9322
  key: "M",
9320
9323
  class: u.value === "M" ? "selected" : "",
9321
9324
  onClick: () => s.store.setRowHeight(n.formID, "M")
9322
- }, _isSlot$d(M = a.t("kg.KgTable.rowHeightM")) ? M : {
9323
- default: () => [M]
9325
+ }, _isSlot$d(D = a.t("kg.KgTable.rowHeightM")) ? D : {
9326
+ default: () => [D]
9324
9327
  }), createVNode(Menu.Item, {
9325
9328
  key: "H",
9326
9329
  class: u.value === "H" ? "selected" : "",
@@ -9556,8 +9559,8 @@ const getProps$z = () => ({
9556
9559
  return !1;
9557
9560
  });
9558
9561
  const l = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
9559
- var k, A, C, w, D, I;
9560
- return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((C = c.value) == null ? void 0 : C.crt_flg) === 1 || !!n.isUpdating.value && ((w = c.value) == null ? void 0 : w.upt_flg) === 1 || !!n.isCopying.value && ((D = c.value) == null ? void 0 : D.cpy_flg) === 1 || !!n.isDeleting.value && ((I = c.value) == null ? void 0 : I.del_flg) === 1);
9562
+ var k, A, C, w, M, I;
9563
+ return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((C = c.value) == null ? void 0 : C.crt_flg) === 1 || !!n.isUpdating.value && ((w = c.value) == null ? void 0 : w.upt_flg) === 1 || !!n.isCopying.value && ((M = c.value) == null ? void 0 : M.cpy_flg) === 1 || !!n.isDeleting.value && ((I = c.value) == null ? void 0 : I.del_flg) === 1);
9561
9564
  }), d = computed(() => {
9562
9565
  var k, A;
9563
9566
  return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && !!n.isCreatingRequesting.value || !!n.isUpdating.value && !!n.isUpdatingRequesting.value || !!n.isCopying.value && !!n.isCopyingRequesting.value || !!n.isDeleting.value && !!n.isDeletingRequesting.value);
@@ -9566,15 +9569,15 @@ const getProps$z = () => ({
9566
9569
  let k = "kg-table--body-cell";
9567
9570
  return ((A = l.value) == null ? void 0 : A.align) === "center" ? k += " kg-table--body-cell--center" : ((C = l.value) == null ? void 0 : C.align) === "right" && (k += " kg-table--body-cell--right"), ((w = l.value) == null ? void 0 : w.ellipsis_flg) === 1 && (k += " kg-table--body-cell--ellipsis"), u.value && (k += " kg-table--body-cell--submitting"), k;
9568
9571
  }), E = computed(() => {
9569
- var A, C, w, D, I;
9572
+ var A, C, w, M, I;
9570
9573
  if (e.kgValue === KG_TABLE_TEMP_ID)
9571
9574
  return "";
9572
9575
  let k = e.kgValue;
9573
9576
  switch ((A = l.value) == null ? void 0 : A.display_type) {
9574
9577
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
9575
9578
  {
9576
- const M = KgUtil.tryParseJSON((C = l.value) == null ? void 0 : C.display_type_properties);
9577
- M.dscFieldName ? k = ((w = e.kgRow) == null ? void 0 : w[M.dscFieldName]) || e.kgValue : k = ((D = e.kgRow) == null ? void 0 : D[`${e.kgVarName}_dsc`]) || ((I = e.kgRow) == null ? void 0 : I[`${e.kgVarName}Dsc`]) || e.kgValue;
9579
+ const D = KgUtil.tryParseJSON((C = l.value) == null ? void 0 : C.display_type_properties);
9580
+ D.dscFieldName ? k = ((w = e.kgRow) == null ? void 0 : w[D.dscFieldName]) || e.kgValue : k = ((M = e.kgRow) == null ? void 0 : M[`${e.kgVarName}_dsc`]) || ((I = e.kgRow) == null ? void 0 : I[`${e.kgVarName}Dsc`]) || e.kgValue;
9578
9581
  }
9579
9582
  break;
9580
9583
  }
@@ -9595,9 +9598,9 @@ const getProps$z = () => ({
9595
9598
  case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
9596
9599
  {
9597
9600
  k.stopPropagation(), k.preventDefault();
9598
- const D = KgUtil.tryParseJSON((C = l.value) == null ? void 0 : C.display_type_properties);
9601
+ const M = KgUtil.tryParseJSON((C = l.value) == null ? void 0 : C.display_type_properties);
9599
9602
  (w = a.router.value) == null || w.push({
9600
- path: D.path,
9603
+ path: M.path,
9601
9604
  query: e.kgRow
9602
9605
  });
9603
9606
  }
@@ -9632,7 +9635,7 @@ const getProps$z = () => ({
9632
9635
  });
9633
9636
  }
9634
9637
  function v() {
9635
- var k, A, C, w, D, I, M, K, P, U, L;
9638
+ var k, A, C, w, M, I, D, K, P, U, L;
9636
9639
  if (u.value)
9637
9640
  return y();
9638
9641
  switch ((k = l.value) == null ? void 0 : k.display_type) {
@@ -9648,7 +9651,7 @@ const getProps$z = () => ({
9648
9651
  if (R) {
9649
9652
  const V = n.t(R.varName).value;
9650
9653
  return V ? createVNode(Tag, {
9651
- color: (D = R.color) != null ? D : "default"
9654
+ color: (M = R.color) != null ? M : "default"
9652
9655
  }, _isSlot$b(V) ? V : {
9653
9656
  default: () => [V]
9654
9657
  }) : T();
@@ -9660,7 +9663,7 @@ const getProps$z = () => ({
9660
9663
  if (O.isTag && isArrayLike(O.tagColors)) {
9661
9664
  const R = O.tagColors.find((V) => V.value === e.kgValue);
9662
9665
  return E.value ? createVNode(Tag, {
9663
- color: (M = R == null ? void 0 : R.color) != null ? M : "default"
9666
+ color: (D = R == null ? void 0 : R.color) != null ? D : "default"
9664
9667
  }, {
9665
9668
  default: () => [E.value]
9666
9669
  }) : T();
@@ -9787,12 +9790,12 @@ function _useColumns(e) {
9787
9790
  }) => C + 1
9788
9791
  }, ...(A = y == null ? void 0 : y.map((C, w) => {
9789
9792
  var V, N, x;
9790
- const D = C.var_nam;
9793
+ const M = C.var_nam;
9791
9794
  function I() {
9792
9795
  return C.width === "auto" ? "auto" : Number(C.width) || KG_TABLE_TD_DEFAULT_WIDTH;
9793
9796
  }
9794
- function M() {
9795
- return r.t(D).value;
9797
+ function D() {
9798
+ return r.t(M).value;
9796
9799
  }
9797
9800
  function K() {
9798
9801
  if (C.fix_left_flg === 1)
@@ -9810,21 +9813,21 @@ function _useColumns(e) {
9810
9813
  return uniqBy(g.map((te) => {
9811
9814
  var ie;
9812
9815
  return {
9813
- value: (ie = te == null ? void 0 : te[D]) != null ? ie : "",
9816
+ value: (ie = te == null ? void 0 : te[M]) != null ? ie : "",
9814
9817
  text: i({
9815
9818
  column: {
9816
- dataIndex: D
9819
+ dataIndex: M
9817
9820
  },
9818
9821
  index: w,
9819
9822
  record: te,
9820
- value: te == null ? void 0 : te[D]
9823
+ value: te == null ? void 0 : te[M]
9821
9824
  }, KG_TABLE_CELL_CONTEXT.TABLE_FILTER)
9822
9825
  };
9823
9826
  }), "value");
9824
9827
  }
9825
9828
  function L() {
9826
9829
  var $, F, H;
9827
- return ((F = ($ = E.option.value.KgTable) == null ? void 0 : $.filter) == null ? void 0 : F.on) !== !0 ? null : ((H = o.value) == null ? void 0 : H[D]) || null;
9830
+ return ((F = ($ = E.option.value.KgTable) == null ? void 0 : $.filter) == null ? void 0 : F.on) !== !0 ? null : ((H = o.value) == null ? void 0 : H[M]) || null;
9828
9831
  }
9829
9832
  function O() {
9830
9833
  return ["left", "center", "right"].includes(C.align || "") ? C.align : "left";
@@ -9833,21 +9836,21 @@ function _useColumns(e) {
9833
9836
  switch (C.ord) {
9834
9837
  case 0:
9835
9838
  (!l.value.field || !l.value.order) && (l.value = {
9836
- field: D,
9839
+ field: M,
9837
9840
  order: "ascend"
9838
9841
  });
9839
9842
  break;
9840
9843
  case 1:
9841
9844
  (!l.value.field || !l.value.order) && (l.value = {
9842
- field: D,
9845
+ field: M,
9843
9846
  order: "descend"
9844
9847
  });
9845
9848
  break;
9846
9849
  }
9847
9850
  return {
9848
- key: D,
9849
- dataIndex: D,
9850
- title: M(),
9851
+ key: M,
9852
+ dataIndex: M,
9853
+ title: D(),
9851
9854
  width: R,
9852
9855
  resizable: typeof R == "number",
9853
9856
  minWidth: KG_TABLE_TD_MIN_WIDTH,
@@ -9855,21 +9858,21 @@ function _useColumns(e) {
9855
9858
  align: O(),
9856
9859
  fixed: K(),
9857
9860
  sorter: P(),
9858
- sortOrder: ((V = l.value) == null ? void 0 : V.field) === D && (x = (N = l.value) == null ? void 0 : N.order) != null ? x : null,
9861
+ sortOrder: ((V = l.value) == null ? void 0 : V.field) === M && (x = (N = l.value) == null ? void 0 : N.order) != null ? x : null,
9859
9862
  filteredValue: L(),
9860
9863
  filters: U(),
9861
- onFilter: ($, F) => $ === "" ? isNil(F == null ? void 0 : F[D]) || (F == null ? void 0 : F[D]) === "" : (F == null ? void 0 : F[D]) === $,
9864
+ onFilter: ($, F) => $ === "" ? isNil(F == null ? void 0 : F[M]) || (F == null ? void 0 : F[M]) === "" : (F == null ? void 0 : F[M]) === $,
9862
9865
  customHeaderCell: () => ({
9863
9866
  "kg-frm_id": r.formID,
9864
- "kg-var_nam": D,
9867
+ "kg-var_nam": M,
9865
9868
  draggable: !0
9866
9869
  }),
9867
9870
  customCell: ($) => {
9868
9871
  var H;
9869
- const F = r.store.getVarSubmitField(r.formID, D);
9872
+ const F = r.store.getVarSubmitField(r.formID, M);
9870
9873
  return {
9871
9874
  "kg-frm_id": r.formID,
9872
- "kg-var_nam": D,
9875
+ "kg-var_nam": M,
9873
9876
  class: n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && $[s.id.value] === ((H = s.selectedRow.value) == null ? void 0 : H[s.id.value]) && (!!r.isCreating.value && (F == null ? void 0 : F.crt_flg) === 1 || !!r.isUpdating.value && (F == null ? void 0 : F.upt_flg) === 1 || !!r.isCopying.value && (F == null ? void 0 : F.cpy_flg) === 1 || !!r.isDeleting.value && (F == null ? void 0 : F.del_flg) === 1) ? "submitting" : ""
9874
9877
  };
9875
9878
  }
@@ -10108,14 +10111,14 @@ const KgTable$1 = "", getProps$y = () => ({
10108
10111
  return (Y = (z = a == null ? void 0 : a.value) == null ? void 0 : z.KgTable) == null ? void 0 : Y.kgCheckboxDisabled;
10109
10112
  if (!isNil(e.kgCheckboxDisabled))
10110
10113
  return e.kgCheckboxDisabled;
10111
- }), w = computed(() => !!A.value || g.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), D = computed(() => !!A.value || g.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || O.total === 0), I = computed(() => {
10114
+ }), w = computed(() => !!A.value || g.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), M = computed(() => !!A.value || g.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || O.total === 0), I = computed(() => {
10112
10115
  var B;
10113
10116
  return !!((B = r == null ? void 0 : r.KgTable) != null && B.expandedRowRender);
10114
- }), M = computed(() => {
10117
+ }), D = computed(() => {
10115
10118
  var B;
10116
10119
  return ((B = s.varGridConfig.value) == null ? void 0 : B.show_check_column_flg) === 1;
10117
10120
  }), K = computed(() => {
10118
- if (!!M.value)
10121
+ if (!!D.value)
10119
10122
  return {
10120
10123
  fixed: "left",
10121
10124
  columnWidth: KG_TABLE_TD_CHECK_WIDTH,
@@ -10304,13 +10307,12 @@ const KgTable$1 = "", getProps$y = () => ({
10304
10307
  total: Ae
10305
10308
  } = v(ye), Ie = await o.store.emit(s.formID, "beforeSetDatas", {
10306
10309
  datas: Ee
10307
- });
10310
+ }), ke = cloneDeep(L.value);
10308
10311
  o.store.setDatas({
10309
10312
  frmId: s.formID,
10310
- datas: Ee.value
10311
- }), O.total = Ae.value;
10312
- const ke = cloneDeep(L.value);
10313
- d.value = {}, x({
10313
+ datas: Ee.value,
10314
+ isPreserveSelectedRows: !0
10315
+ }), O.total = Ae.value, d.value = {}, x({
10314
10316
  isContinueWhenKgDisabled: !0
10315
10317
  }), c.value = [], await nextTick(), B.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, ke.map((Se) => {
10316
10318
  var q;
@@ -10403,12 +10405,12 @@ const KgTable$1 = "", getProps$y = () => ({
10403
10405
  default: () => [createVNode(TableSummary.Row, null, {
10404
10406
  default: () => [I.value && createVNode(TableSummary.Cell, {
10405
10407
  index: 0
10406
- }, null), M.value && createVNode(TableSummary.Cell, {
10408
+ }, null), D.value && createVNode(TableSummary.Cell, {
10407
10409
  index: I.value ? 1 : 0
10408
10410
  }, null), u.value.map((G, z) => {
10409
10411
  const Y = String(G.dataIndex), Z = Y ? s.store.getVarGridDetail(s.formID, Y) : null, ce = (() => ["left", "center", "right"].includes((Z == null ? void 0 : Z.align) || "") ? Z == null ? void 0 : Z.align : "left")();
10410
10412
  let le = z;
10411
- return I.value && M.value ? le += 2 : (I.value || M.value) && (le += 1), createVNode(TableSummary.Cell, {
10413
+ return I.value && D.value ? le += 2 : (I.value || D.value) && (le += 1), createVNode(TableSummary.Cell, {
10412
10414
  index: le,
10413
10415
  align: ce
10414
10416
  }, {
@@ -10487,7 +10489,7 @@ const KgTable$1 = "", getProps$y = () => ({
10487
10489
  showSizeChanger: !0,
10488
10490
  showQuickJumper: !1,
10489
10491
  hideOnSinglePage: !1,
10490
- disabled: D.value,
10492
+ disabled: M.value,
10491
10493
  locale: {
10492
10494
  page: ""
10493
10495
  },
@@ -10525,31 +10527,31 @@ const KgTable$1 = "", getProps$y = () => ({
10525
10527
  async function m() {
10526
10528
  var _, y, v, T, k, A, C;
10527
10529
  if (b.value) {
10528
- const w = (y = (_ = u.selectedRows) == null ? void 0 : _.value) != null ? y : [], D = (v = w.map((M) => M[E.value])) != null ? v : [];
10530
+ const w = (y = (_ = u.selectedRows) == null ? void 0 : _.value) != null ? y : [], M = (v = w.map((D) => D[E.value])) != null ? v : [];
10529
10531
  await s.store.emit(s.formID, "lookupBeforeOk", {
10530
10532
  var_nam: i,
10531
10533
  isMultiple: !0,
10532
- values: D,
10534
+ values: M,
10533
10535
  rows: w
10534
10536
  }) || (s.store.emit(s.formID, "lookupOk", {
10535
10537
  var_nam: i,
10536
10538
  model: l,
10537
10539
  isMultiple: !0,
10538
- values: D,
10540
+ values: M,
10539
10541
  rows: w
10540
10542
  }), r("update:visible", !1));
10541
10543
  } else {
10542
- const w = (A = (k = (T = u.selectedRows) == null ? void 0 : T.value) == null ? void 0 : k[0]) != null ? A : null, D = (C = w == null ? void 0 : w[E.value]) != null ? C : "";
10544
+ const w = (A = (k = (T = u.selectedRows) == null ? void 0 : T.value) == null ? void 0 : k[0]) != null ? A : null, M = (C = w == null ? void 0 : w[E.value]) != null ? C : "";
10543
10545
  await s.store.emit(s.formID, "lookupBeforeOk", {
10544
10546
  var_nam: i,
10545
10547
  isMultiple: !1,
10546
- value: D,
10548
+ value: M,
10547
10549
  row: w
10548
10550
  }) || (s.store.emit(s.formID, "lookupOk", {
10549
10551
  var_nam: i,
10550
10552
  model: l,
10551
10553
  isMultiple: !1,
10552
- value: D,
10554
+ value: M,
10553
10555
  row: w
10554
10556
  }), r("update:visible", !1));
10555
10557
  }
@@ -10818,9 +10820,9 @@ function useKgFormItemSelect() {
10818
10820
  }), m;
10819
10821
  });
10820
10822
  async function E() {
10821
- var A, C, w, D, I, M, K, P;
10823
+ var A, C, w, M, I, D, K, P;
10822
10824
  let m = ref([]);
10823
- const _ = (A = s.value) == null ? void 0 : A.cmd, y = (w = (C = s.value) == null ? void 0 : C.cmd_method) != null ? w : "GET", v = (I = (D = s.value) == null ? void 0 : D.val_clm) != null ? I : "", T = (K = (M = s.value) == null ? void 0 : M.lbl_clm) != null ? K : "";
10825
+ const _ = (A = s.value) == null ? void 0 : A.cmd, y = (w = (C = s.value) == null ? void 0 : C.cmd_method) != null ? w : "GET", v = (I = (M = s.value) == null ? void 0 : M.val_clm) != null ? I : "", T = (K = (D = s.value) == null ? void 0 : D.lbl_clm) != null ? K : "";
10824
10826
  if (!_ || !v || !T) {
10825
10827
  KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
10826
10828
  frm_id: a.formID,
@@ -10892,22 +10894,22 @@ function useKgFormItemSelect() {
10892
10894
  break;
10893
10895
  case KG_POSSIBILITY_DATA_TYPE.NUMBER:
10894
10896
  m.forEach((w) => {
10895
- let D = Number(w[_]);
10896
- Number.isNaN(D) && (D = w[_], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${w[_]} \u8F6C\u6362\u4E3A ${y} \u7C7B\u578B`, {
10897
+ let M = Number(w[_]);
10898
+ Number.isNaN(M) && (M = w[_], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${w[_]} \u8F6C\u6362\u4E3A ${y} \u7C7B\u578B`, {
10897
10899
  frm_id: a.formID,
10898
10900
  var_nam: t,
10899
10901
  VarVariablePossibility: s.value
10900
- })), w[_] = D;
10902
+ })), w[_] = M;
10901
10903
  });
10902
10904
  break;
10903
10905
  case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
10904
10906
  m.forEach((w) => {
10905
- let D;
10906
- String(w[_]).toLowerCase() === "true" ? D = !0 : String(w[_]).toLowerCase() === "false" ? D = !1 : (D = w[_], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${w[_]} \u8F6C\u6362\u4E3A ${y} \u7C7B\u578B`, {
10907
+ let M;
10908
+ String(w[_]).toLowerCase() === "true" ? M = !0 : String(w[_]).toLowerCase() === "false" ? M = !1 : (M = w[_], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${w[_]} \u8F6C\u6362\u4E3A ${y} \u7C7B\u578B`, {
10907
10909
  frm_id: a.formID,
10908
10910
  var_nam: t,
10909
10911
  VarVariablePossibility: s.value
10910
- })), w[_] = D;
10912
+ })), w[_] = M;
10911
10913
  });
10912
10914
  break;
10913
10915
  }
@@ -10916,9 +10918,9 @@ function useKgFormItemSelect() {
10916
10918
  {
10917
10919
  const w = o;
10918
10920
  if ((C = w.value) != null && C.excludeValues)
10919
- return m.filter((D) => {
10921
+ return m.filter((M) => {
10920
10922
  var I;
10921
- return !((I = w.value.excludeValues) != null && I.includes(D[_]));
10923
+ return !((I = w.value.excludeValues) != null && I.includes(M[_]));
10922
10924
  });
10923
10925
  }
10924
10926
  break;
@@ -11243,7 +11245,7 @@ const KgFormItemRadioGroup = defineComponent({
11243
11245
  switch (await m(), r("kgSelectDatasChange", g.value), e.kgMode) {
11244
11246
  case "multiple": {
11245
11247
  if (Array.isArray(e.value)) {
11246
- const C = e.value.filter((w) => g.value.find((D) => D[d.value] === w));
11248
+ const C = e.value.filter((w) => g.value.find((M) => M[d.value] === w));
11247
11249
  C.length > 0 ? r("update:value", C) : r("update:value", []);
11248
11250
  }
11249
11251
  break;
@@ -11258,34 +11260,34 @@ const KgFormItemRadioGroup = defineComponent({
11258
11260
  switch (e.kgMode) {
11259
11261
  case "multiple": {
11260
11262
  if (Array.isArray(A)) {
11261
- const D = (C = toRaw(g.value.filter((I) => A.includes(I[d.value])))) != null ? C : null;
11262
- r("kgSelectChange", D), await i.store.emit(i.formID, "selectChange", {
11263
+ const M = (C = toRaw(g.value.filter((I) => A.includes(I[d.value])))) != null ? C : null;
11264
+ r("kgSelectChange", M), await i.store.emit(i.formID, "selectChange", {
11263
11265
  var_nam: e.kgVarName,
11264
11266
  isMultiple: !0,
11265
11267
  values: A,
11266
- rows: D,
11268
+ rows: M,
11267
11269
  isCreating: s.isCreating.value,
11268
11270
  isUpdating: s.isUpdating.value,
11269
11271
  isCopying: s.isCopying.value,
11270
11272
  isDeleting: s.isDeleting.value,
11271
11273
  model: e.kgContext === KG_FORM_CONTEXT.SEARCH ? o.model : l.model
11272
- }), a.value[`${e.kgVarName}_obj`] = D;
11274
+ }), a.value[`${e.kgVarName}_obj`] = M;
11273
11275
  }
11274
11276
  break;
11275
11277
  }
11276
11278
  default: {
11277
- const D = (w = toRaw(g.value.find((I) => I[d.value] === A))) != null ? w : null;
11278
- r("kgSelectChange", D), await i.store.emit(i.formID, "selectChange", {
11279
+ const M = (w = toRaw(g.value.find((I) => I[d.value] === A))) != null ? w : null;
11280
+ r("kgSelectChange", M), await i.store.emit(i.formID, "selectChange", {
11279
11281
  var_nam: e.kgVarName,
11280
11282
  isMultiple: !1,
11281
11283
  values: [A],
11282
- rows: [D],
11284
+ rows: [M],
11283
11285
  isCreating: s.isCreating.value,
11284
11286
  isUpdating: s.isUpdating.value,
11285
11287
  isCopying: s.isCopying.value,
11286
11288
  isDeleting: s.isDeleting.value,
11287
11289
  model: e.kgContext === KG_FORM_CONTEXT.SEARCH ? o.model : l.model
11288
- }), a.value[`${e.kgVarName}_obj`] = D;
11290
+ }), a.value[`${e.kgVarName}_obj`] = M;
11289
11291
  break;
11290
11292
  }
11291
11293
  }
@@ -11521,11 +11523,11 @@ const KgFormItem = defineComponent({
11521
11523
  return O = Number(O), new Array(24).fill(0).map((F, H) => H + 1).includes(O) ? O : null;
11522
11524
  }), k = computed(() => {
11523
11525
  var N, x;
11524
- const O = get(D.value, "$el.parentElement");
11526
+ const O = get(M.value, "$el.parentElement");
11525
11527
  if (O && !((N = O.classList) != null && N.contains("ant-row")))
11526
11528
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
11527
11529
  let R = {};
11528
- const V = Math.abs(Number.parseInt((x = get(D.value, "$el.parentElement.style.marginLeft")) != null ? x : "0px"));
11530
+ const V = Math.abs(Number.parseInt((x = get(M.value, "$el.parentElement.style.marginLeft")) != null ? x : "0px"));
11529
11531
  return Number.isNaN(V) || (R = {
11530
11532
  paddingLeft: `${V}px !important`,
11531
11533
  paddingRight: `${V}px !important`
@@ -11594,7 +11596,7 @@ const KgFormItem = defineComponent({
11594
11596
  break;
11595
11597
  }
11596
11598
  return O;
11597
- }), w = computed(() => encodeURIComponent(`${e.kgContext}~${i.formID}~${e.kgVarName}`)), D = ref(null);
11599
+ }), w = computed(() => encodeURIComponent(`${e.kgContext}~${i.formID}~${e.kgVarName}`)), M = ref(null);
11598
11600
  function I() {
11599
11601
  return g.value ? null : createVNode(Form.Item, {
11600
11602
  name: e.kgVarName,
@@ -11602,11 +11604,11 @@ const KgFormItem = defineComponent({
11602
11604
  validateFirst: !0,
11603
11605
  htmlFor: w.value
11604
11606
  }, {
11605
- default: () => createVNode(Fragment, null, [K(), M(), U(), L()]),
11607
+ default: () => createVNode(Fragment, null, [K(), D(), U(), L()]),
11606
11608
  label: () => P()
11607
11609
  });
11608
11610
  }
11609
- function M() {
11611
+ function D() {
11610
11612
  if (isFunction$2(t.control))
11611
11613
  return t.control({
11612
11614
  frm_id: i.formID,
@@ -11706,7 +11708,7 @@ const KgFormItem = defineComponent({
11706
11708
  var R, V;
11707
11709
  let O;
11708
11710
  return i.isRetrieving.value ? null : createVNode(Col, {
11709
- ref: D,
11711
+ ref: M,
11710
11712
  span: v.value,
11711
11713
  class: A.value,
11712
11714
  style: k.value,
@@ -11976,7 +11978,7 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
11976
11978
  dispose(e) {
11977
11979
  if (!e)
11978
11980
  return KgLogger.error("formID \u4E3A\u7A7A."), null;
11979
- this.beforeOpenListenersMap.delete(e), this.openListenersMap.delete(e), this.beforeOkListenersMap.delete(e), this.afterValidateListenersMap.delete(e), this.beforeRequestListenersMap.delete(e), this.okListenersMap.delete(e), this.errorListenersMap.delete(e), this.closeListenersMap.delete(e), this.isLoadingMap.delete(e), this.modelMap.delete(e), this.formRefMap.delete(e), this.rulesMap.delete(e);
11981
+ this.isLoadingMap.delete(e), this.modelMap.delete(e), this.formRefMap.delete(e), this.rulesMap.delete(e);
11980
11982
  },
11981
11983
  addEventListener(e, t, r) {
11982
11984
  switch (t) {
@@ -12852,7 +12854,7 @@ const getProps$r = () => ({
12852
12854
  inject(DI_KG_VAR__KG_PROPS, null);
12853
12855
  const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = useKgSearch();
12854
12856
  i.onSubmitSave(async () => (await le(), !1)), i.onSubmitCancel(async () => (await ce(), !1)), _useFormModel$1();
12855
- const u = computed(() => s.isDeleting.value && M.value.length === 0 && P.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), b = computed(() => s.store.getVarSubmitConfig(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), m = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), w = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), D = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), M = computed(() => {
12857
+ const u = computed(() => s.isDeleting.value && D.value.length === 0 && P.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), b = computed(() => s.store.getVarSubmitConfig(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), m = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), w = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), M = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), D = computed(() => {
12856
12858
  var q, W, X;
12857
12859
  switch (!0) {
12858
12860
  case s.isCreating.value:
@@ -12899,7 +12901,7 @@ const getProps$r = () => ({
12899
12901
  case s.isUpdating.value:
12900
12902
  return (W = C.value) != null ? W : [];
12901
12903
  case s.isCopying.value:
12902
- return (X = D.value) != null ? X : [];
12904
+ return (X = M.value) != null ? X : [];
12903
12905
  case s.isDeleting.value:
12904
12906
  return (ee = I.value) != null ? ee : [];
12905
12907
  }
@@ -13301,9 +13303,9 @@ const getProps$r = () => ({
13301
13303
  }, {
13302
13304
  default: () => [createVNode("div", {
13303
13305
  ref: H
13304
- }, [M.value.length > 0 && createVNode(Row, {
13306
+ }, [D.value.length > 0 && createVNode(Row, {
13305
13307
  gutter: 12
13306
- }, _isSlot$6(q = M.value.map(ye)) ? q : {
13308
+ }, _isSlot$6(q = D.value.map(ye)) ? q : {
13307
13309
  default: () => [q]
13308
13310
  }), K.value.length > 0 && U.value.length > 0 && createVNode(Divider, null, null), P.value.length > 0 && createVNode(Row, {
13309
13311
  gutter: 12
@@ -13351,7 +13353,7 @@ const getProps$r = () => ({
13351
13353
  }, null);
13352
13354
  }
13353
13355
  return onUnmounted(async () => {
13354
- await Z();
13356
+ l.store.dispose(s.formID), await Z();
13355
13357
  }), () => createVNode(Drawer, {
13356
13358
  visible: re.value,
13357
13359
  placement: "right",
@@ -14073,6 +14075,8 @@ function transformVarGridDetails(e) {
14073
14075
  "| \u6570\u636E\u6709\u8BEF | var_grd_dtl.fix_left_flg \u548C var_grd_dtl.fix_right_flg \u4E0D\u80FD\u540C\u65F6\u4E3A 1, var_grd_dtl.fix_right_flg \u5C06\u88AB\u8BBE\u4E3A 0.",
14074
14076
  { VarGridDetail: n }
14075
14077
  ), n.fix_right_flg = 0);
14078
+ }), t.forEach((n) => {
14079
+ isNil(n.vis_flg) && (n.vis_flg = 1);
14076
14080
  }), t.forEach((n) => {
14077
14081
  n.width !== null && n.width !== void 0 && n.width !== "auto" && (Number.isNaN(Number(n.width)) || Number(n.width) < 0) && (KgLogger.error(
14078
14082
  `| \u6570\u636E\u6709\u8BEF | var_grd_dtl.width \u53EA\u80FD\u662F\u5927\u4E8E 0 \u7684\u6570\u503C\u6216\u8005 'auto', \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${KG_TABLE_TD_DEFAULT_WIDTH}.`,
@@ -14439,8 +14443,8 @@ const useKgVarStore = () => (store$4 || (store$4 = defineStore("KgVar", {
14439
14443
  return KgLogger.error("frm_id \u4E3A\u7A7A."), null;
14440
14444
  let r = e.varButtonMap.get(t), a = (n = r == null ? void 0 : r.find((o) => o.typ === KG_BUTTON_TYPE.SEARCH)) != null ? n : null;
14441
14445
  if (!a) {
14442
- const l = (s = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : s.prf_frm_id;
14443
- r = e.varButtonMap.get(l || t), a = (i = r == null ? void 0 : r.find((c) => c.typ === KG_BUTTON_TYPE.SEARCH)) != null ? i : null;
14446
+ const o = ((s = this.getVarGridConfig(t)) == null ? void 0 : s.prf_frm_id) || t;
14447
+ r = e.varButtonMap.get(o), a = (i = r == null ? void 0 : r.find((l) => l.typ === KG_BUTTON_TYPE.SEARCH)) != null ? i : null;
14444
14448
  }
14445
14449
  return a;
14446
14450
  };
@@ -14495,13 +14499,20 @@ const useKgVarStore = () => (store$4 || (store$4 = defineStore("KgVar", {
14495
14499
  },
14496
14500
  getCurrentVarProfileMaster(e) {
14497
14501
  return (t) => {
14498
- var a, n;
14502
+ var s, i, o;
14499
14503
  if (!t)
14500
14504
  return KgLogger.error("frm_id \u4E3A\u7A7A."), null;
14501
- const r = e.varProfileMasterMap.get(t);
14502
- return (n = (a = r == null ? void 0 : r.varProfileMasters) == null ? void 0 : a.find(
14503
- (s) => s.id === (r == null ? void 0 : r.currentVarProfileMasterID)
14504
- )) != null ? n : null;
14505
+ KgLogger.debug(`${t} | KgVarStore | getCurrentVarProfileMaster() | \u6267\u884C\u5F00\u59CB.`);
14506
+ const r = ((s = this.getVarGridConfig(t)) == null ? void 0 : s.prf_frm_id) || t, a = e.varProfileMasterMap.get(r);
14507
+ KgLogger.debug(
14508
+ `${t} | KgVarStore | getCurrentVarProfileMaster() | \u5F53\u524D\u89C6\u56FEID: ${a == null ? void 0 : a.currentVarProfileMasterID}`
14509
+ );
14510
+ const n = (o = (i = a == null ? void 0 : a.varProfileMasters) == null ? void 0 : i.find(
14511
+ (l) => l.id === (a == null ? void 0 : a.currentVarProfileMasterID)
14512
+ )) != null ? o : null;
14513
+ return KgLogger.debug(`${t} | KgVarStore | getCurrentVarProfileMaster() | \u83B7\u53D6\u5230\u4E86\u5F53\u524D\u89C6\u56FE.`, {
14514
+ currentVarProfileMaster: n
14515
+ }), n;
14505
14516
  };
14506
14517
  },
14507
14518
  getCurrentVarProfileMasterID(e) {
@@ -14675,7 +14686,7 @@ const useKgVarStore = () => (store$4 || (store$4 = defineStore("KgVar", {
14675
14686
  this.formIDs = [...this.formIDs, e].sort((t, r) => t.level - r.level), await this.retrieve(e.formID), store_legacy.set("KgVar.formIDs", this.formIDs);
14676
14687
  },
14677
14688
  dispose(e) {
14678
- this.formIDs = this.formIDs.filter((t) => t.formID !== e), this.isRetrievingMap.delete(e), this.isRequestedMap.delete(e), this.isRetrievingVarProfileMasterMap.delete(e), this.isRetrievingVarGridMasterMap.delete(e), this.isCreatingMap.delete(e), this.isCreatingRequestingMap.delete(e), this.isUpdatingMap.delete(e), this.isUpdatingRequestingMap.delete(e), this.isCopyingMap.delete(e), this.isCopyingRequestingMap.delete(e), this.isDeletingMap.delete(e), this.isDeletingRequestingMap.delete(e), this.isOtherRequestingMap.delete(e), this.varCatalogMap.delete(e), this.varLookupMap.delete(e), this.varPossibilityMap.delete(e), this.varVariableConfigMap.delete(e), this.varVariableInputMap.delete(e), this.varButtonMap.delete(e), this.varButtonConfigMap.delete(e), this.varSubmitConfigMap.delete(e), this.varSubmitFieldMap.delete(e), this.varProfileConfigMap.delete(e), this.varProfileMasterMap.delete(e), this.varGridConfigMap.delete(e), this.varGridMasterMap.delete(e), this.onRetrieveListenersMap.delete(e), store_legacy.set("KgVar.formIDs", this.formIDs);
14689
+ this.formIDs = this.formIDs.filter((t) => t.formID !== e), this.isRetrievingMap.delete(e), this.isRequestedMap.delete(e), this.isRetrievingVarProfileMasterMap.delete(e), this.isRetrievingVarGridMasterMap.delete(e), this.isCreatingMap.delete(e), this.isCreatingRequestingMap.delete(e), this.isUpdatingMap.delete(e), this.isUpdatingRequestingMap.delete(e), this.isCopyingMap.delete(e), this.isCopyingRequestingMap.delete(e), this.isDeletingMap.delete(e), this.isDeletingRequestingMap.delete(e), this.isOtherRequestingMap.delete(e), this.varCatalogMap.delete(e), this.varLookupMap.delete(e), this.varPossibilityMap.delete(e), this.varVariableConfigMap.delete(e), this.varVariableInputMap.delete(e), this.varButtonMap.delete(e), this.varButtonConfigMap.delete(e), this.varSubmitConfigMap.delete(e), this.varSubmitFieldMap.delete(e), this.varProfileConfigMap.delete(e), this.varProfileMasterMap.delete(e), this.varGridConfigMap.delete(e), this.varGridMasterMap.delete(e), store_legacy.set("KgVar.formIDs", this.formIDs);
14679
14690
  },
14680
14691
  async retrieve(e) {
14681
14692
  var t, r, a, n;
@@ -14920,7 +14931,7 @@ function useKgVar(e, t, r = 0) {
14920
14931
  }), onUnmounted(() => {
14921
14932
  i.dispose(s);
14922
14933
  }));
14923
- const o = computed(() => i.isRetrieving(s)), l = computed(() => i.isRetrievingVarProfileMaster(s)), c = computed(() => i.isRetrievingVarGridMaster(s)), u = computed(() => i.isSearched(s)), d = computed(() => i.isCreating(s)), b = computed(() => i.isCreatingRequesting(s)), E = computed(() => i.isUpdating(s)), g = computed(() => i.isUpdatingRequesting(s)), m = computed(() => i.isCopying(s)), _ = computed(() => i.isCopyingRequesting(s)), y = computed(() => i.isDeleting(s)), v = computed(() => i.isDeletingRequesting(s)), T = computed(() => i.isOtherRequesting(s)), k = computed(() => i.getVarButtons(s)), A = computed(() => i.getVarButtonSearch(s)), C = computed(() => i.getVarButtonCreate(s)), w = computed(() => i.getVarButtonUpdate(s)), D = computed(() => i.getVarButtonCopy(s)), I = computed(() => i.getVarButtonDelete(s)), M = computed(() => i.getVarProfileMasters(s)), K = computed(() => i.getCurrentVarProfileMasterID(s)), P = computed(() => i.getCurrentVarProfileMaster(s)), U = computed(() => {
14934
+ const o = computed(() => i.isRetrieving(s)), l = computed(() => i.isRetrievingVarProfileMaster(s)), c = computed(() => i.isRetrievingVarGridMaster(s)), u = computed(() => i.isSearched(s)), d = computed(() => i.isCreating(s)), b = computed(() => i.isCreatingRequesting(s)), E = computed(() => i.isUpdating(s)), g = computed(() => i.isUpdatingRequesting(s)), m = computed(() => i.isCopying(s)), _ = computed(() => i.isCopyingRequesting(s)), y = computed(() => i.isDeleting(s)), v = computed(() => i.isDeletingRequesting(s)), T = computed(() => i.isOtherRequesting(s)), k = computed(() => i.getVarButtons(s)), A = computed(() => i.getVarButtonSearch(s)), C = computed(() => i.getVarButtonCreate(s)), w = computed(() => i.getVarButtonUpdate(s)), M = computed(() => i.getVarButtonCopy(s)), I = computed(() => i.getVarButtonDelete(s)), D = computed(() => i.getVarProfileMasters(s)), K = computed(() => i.getCurrentVarProfileMasterID(s)), P = computed(() => i.getCurrentVarProfileMaster(s)), U = computed(() => {
14924
14935
  var F, H;
14925
14936
  return (H = (F = P.value) == null ? void 0 : F.varProfileDetails) != null ? H : null;
14926
14937
  }), L = computed(() => i.getVarGridConfig(s)), O = computed(() => i.getVarGridMasters(s)), R = computed(() => i.getCurrentVarGridMasterID(s)), V = computed(() => i.getCurrentVarGridMaster(s)), N = computed(() => i.getSystemVarGridDetails(s)), x = computed(() => i.getCurrentVarGridDetails(s)), $ = computed(() => i.getVarSubmitConfigProps(s));
@@ -14944,9 +14955,9 @@ function useKgVar(e, t, r = 0) {
14944
14955
  varButtonSearch: A,
14945
14956
  varButtonCreate: C,
14946
14957
  varButtonUpdate: w,
14947
- varButtonCopy: D,
14958
+ varButtonCopy: M,
14948
14959
  varButtonDelete: I,
14949
- varProfileMasters: M,
14960
+ varProfileMasters: D,
14950
14961
  currentVarProfileMasterID: K,
14951
14962
  currentVarProfileMaster: P,
14952
14963
  currentVarProfileDetails: U,
@@ -15034,62 +15045,6 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
15034
15045
  class: _.value
15035
15046
  }, [y()]);
15036
15047
  }
15037
- }), getProps$p = () => ({
15038
- kgButton: Object,
15039
- kgVarName: String,
15040
- kgType: String,
15041
- kgPrimary: { type: Boolean, default: void 0 },
15042
- kgIcon: String,
15043
- kgText: String,
15044
- kgColor: String,
15045
- kgDisabled: {
15046
- type: Boolean,
15047
- default: void 0
15048
- },
15049
- kgLoading: Boolean,
15050
- onKgClick: Function
15051
- }), KgButtonCopy = defineComponent({
15052
- name: "KgButtonCopy",
15053
- props: getProps$p(),
15054
- inheritAttrs: !1,
15055
- setup(e, {
15056
- attrs: t
15057
- }) {
15058
- const r = useKg(), a = useKgVar(), n = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
15059
- var u, d, b, E, g, m, _, y;
15060
- return isNil(e.kgDisabled) ? !!(a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((b = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? b : 0) === 0 || ((E = s.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((m = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? m : 0) > 1 || KgAuthUtil.getPermissionType((_ = s.value) == null ? void 0 : _.permission_code) === 2 && !r.p((y = s.value) == null ? void 0 : y.permission_code)) : e.kgDisabled;
15061
- });
15062
- async function o() {
15063
- e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
15064
- }
15065
- function l() {
15066
- return e.kgIcon ? createVNode("span", {
15067
- class: "anticon"
15068
- }, [createVNode(Icon, {
15069
- icon: e.kgIcon
15070
- }, null)]) : createVNode(CopyOutlined$1, null, null);
15071
- }
15072
- function c() {
15073
- return e.kgText ? e.kgText : r.t("kg.copy");
15074
- }
15075
- return () => {
15076
- var u, d, b, E, g, m;
15077
- return createVNode(Button, {
15078
- type: "primary",
15079
- disabled: i.value,
15080
- ghost: !e.kgPrimary && !i.value,
15081
- onClick: o,
15082
- "kg-id": (u = s.value) == null ? void 0 : u.id,
15083
- "kg-frm_id": (d = s.value) == null ? void 0 : d.frm_id,
15084
- "kg-var_nam": (b = s.value) == null ? void 0 : b.var_nam,
15085
- "kg-cmd": (E = s.value) == null ? void 0 : E.cmd,
15086
- "kg-permission": (m = (g = s.value) == null ? void 0 : g.permission_code) != null ? m : "",
15087
- class: t.class
15088
- }, {
15089
- default: () => [l(), c()]
15090
- });
15091
- };
15092
- }
15093
15048
  });
15094
15049
  let store$3 = null;
15095
15050
  const useKgButtonStore = () => (store$3 || (store$3 = defineStore("KgButton", {
@@ -15114,7 +15069,6 @@ const useKgButtonStore = () => (store$3 || (store$3 = defineStore("KgButton", {
15114
15069
  dispose(e) {
15115
15070
  if (!e)
15116
15071
  return KgLogger.error("formID \u4E3A\u7A7A."), null;
15117
- this.clickListenersMap.delete(e), this.updateBeforeClickListenersMap.delete(e), this.deleteOkListenersMap.delete(e), this.importOkListenersMap.delete(e), this.otherOkListenersMap.delete(e), this.submitSaveListenersMap.delete(e), this.submitCancelListenersMap.delete(e);
15118
15072
  },
15119
15073
  addEventListener(e, t, r) {
15120
15074
  switch (t) {
@@ -15308,7 +15262,63 @@ function useKgButton(e) {
15308
15262
  )
15309
15263
  };
15310
15264
  }
15311
- const KgButtonCreate = defineComponent({
15265
+ const getProps$p = () => ({
15266
+ kgButton: Object,
15267
+ kgVarName: String,
15268
+ kgType: String,
15269
+ kgPrimary: { type: Boolean, default: void 0 },
15270
+ kgIcon: String,
15271
+ kgText: String,
15272
+ kgColor: String,
15273
+ kgDisabled: {
15274
+ type: Boolean,
15275
+ default: void 0
15276
+ },
15277
+ kgLoading: Boolean,
15278
+ onKgClick: Function
15279
+ }), KgButtonCopy = defineComponent({
15280
+ name: "KgButtonCopy",
15281
+ props: getProps$p(),
15282
+ inheritAttrs: !1,
15283
+ setup(e, {
15284
+ attrs: t
15285
+ }) {
15286
+ const r = useKg(), a = useKgVar(), n = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
15287
+ var u, d, b, E, g, m, _, y;
15288
+ return isNil(e.kgDisabled) ? !!(a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((b = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? b : 0) === 0 || ((E = s.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((m = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? m : 0) > 1 || KgAuthUtil.getPermissionType((_ = s.value) == null ? void 0 : _.permission_code) === 2 && !r.p((y = s.value) == null ? void 0 : y.permission_code)) : e.kgDisabled;
15289
+ });
15290
+ async function o() {
15291
+ e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
15292
+ }
15293
+ function l() {
15294
+ return e.kgIcon ? createVNode("span", {
15295
+ class: "anticon"
15296
+ }, [createVNode(Icon, {
15297
+ icon: e.kgIcon
15298
+ }, null)]) : createVNode(CopyOutlined$1, null, null);
15299
+ }
15300
+ function c() {
15301
+ return e.kgText ? e.kgText : r.t("kg.copy");
15302
+ }
15303
+ return () => {
15304
+ var u, d, b, E, g, m;
15305
+ return createVNode(Button, {
15306
+ type: "primary",
15307
+ disabled: i.value,
15308
+ ghost: !e.kgPrimary && !i.value,
15309
+ onClick: o,
15310
+ "kg-id": (u = s.value) == null ? void 0 : u.id,
15311
+ "kg-frm_id": (d = s.value) == null ? void 0 : d.frm_id,
15312
+ "kg-var_nam": (b = s.value) == null ? void 0 : b.var_nam,
15313
+ "kg-cmd": (E = s.value) == null ? void 0 : E.cmd,
15314
+ "kg-permission": (m = (g = s.value) == null ? void 0 : g.permission_code) != null ? m : "",
15315
+ class: t.class
15316
+ }, {
15317
+ default: () => [l(), c()]
15318
+ });
15319
+ };
15320
+ }
15321
+ }), KgButtonCreate = defineComponent({
15312
15322
  name: "KgButtonCreate",
15313
15323
  props: getProps$p(),
15314
15324
  inheritAttrs: !1,
@@ -15318,8 +15328,8 @@ const KgButtonCreate = defineComponent({
15318
15328
  attrs: a
15319
15329
  }) {
15320
15330
  const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
15321
- var T, k, A, C, w, D, I, M;
15322
- return isNil(e.kgDisabled) ? !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((A = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((D = (w = o.selectedRows.value) == null ? void 0 : w.length) != null ? D : 0) > 1 || KgAuthUtil.getPermissionType((I = c.value) == null ? void 0 : I.permission_code) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code)) : e.kgDisabled;
15331
+ var T, k, A, C, w, M, I, D;
15332
+ return isNil(e.kgDisabled) ? !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((A = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((M = (w = o.selectedRows.value) == null ? void 0 : w.length) != null ? M : 0) > 1 || KgAuthUtil.getPermissionType((I = c.value) == null ? void 0 : I.permission_code) === 2 && !n.p((D = c.value) == null ? void 0 : D.permission_code)) : e.kgDisabled;
15323
15333
  }), d = computed(() => !!s.isCreatingRequesting.value);
15324
15334
  async function b() {
15325
15335
  e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
@@ -15341,7 +15351,7 @@ const KgButtonCreate = defineComponent({
15341
15351
  return e.kgText ? e.kgText : n.t("kg.create");
15342
15352
  }
15343
15353
  function y() {
15344
- var T, k, A, C, w, D;
15354
+ var T, k, A, C, w, M;
15345
15355
  return createVNode(Button, {
15346
15356
  type: "primary",
15347
15357
  disabled: u.value,
@@ -15350,7 +15360,7 @@ const KgButtonCreate = defineComponent({
15350
15360
  "kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
15351
15361
  "kg-var_nam": (A = c.value) == null ? void 0 : A.var_nam,
15352
15362
  "kg-cmd": (C = c.value) == null ? void 0 : C.cmd,
15353
- "kg-permission": (D = (w = c.value) == null ? void 0 : w.permission_code) != null ? D : "",
15363
+ "kg-permission": (M = (w = c.value) == null ? void 0 : w.permission_code) != null ? M : "",
15354
15364
  class: a.class
15355
15365
  }, {
15356
15366
  default: () => [m(), _()]
@@ -15518,8 +15528,8 @@ const KgButtonCreate = defineComponent({
15518
15528
  ...KgVarUtil.parseRequestParamsToJSON((k = (T = l.value) == null ? void 0 : T.cmd_prm) != null ? k : "")
15519
15529
  }), y;
15520
15530
  }), b = computed(() => {
15521
- var y, v, T, k, A, C, w, D;
15522
- return isNil(e.kgDisabled) ? !!(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || o.isRetrieving.value || ((y = l.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((T = (v = o.selectedRows.value) == null ? void 0 : v.length) != null ? T : 0) === 0 || ((k = l.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((C = (A = o.selectedRows.value) == null ? void 0 : A.length) != null ? C : 0) > 1 || KgAuthUtil.getPermissionType((w = l.value) == null ? void 0 : w.permission_code) === 2 && !a.p((D = l.value) == null ? void 0 : D.permission_code)) : e.kgDisabled;
15531
+ var y, v, T, k, A, C, w, M;
15532
+ return isNil(e.kgDisabled) ? !!(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || o.isRetrieving.value || ((y = l.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((T = (v = o.selectedRows.value) == null ? void 0 : v.length) != null ? T : 0) === 0 || ((k = l.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((C = (A = o.selectedRows.value) == null ? void 0 : A.length) != null ? C : 0) > 1 || KgAuthUtil.getPermissionType((w = l.value) == null ? void 0 : w.permission_code) === 2 && !a.p((M = l.value) == null ? void 0 : M.permission_code)) : e.kgDisabled;
15523
15533
  }), E = ref(!1);
15524
15534
  async function g(y) {
15525
15535
  if (!c.value)
@@ -15694,7 +15704,7 @@ const KgButtonCreate = defineComponent({
15694
15704
  b == null || b.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
15695
15705
  const y = s.selectedRows.value;
15696
15706
  try {
15697
- const D = await httpClient().request({
15707
+ const M = await httpClient().request({
15698
15708
  url: d,
15699
15709
  method: (T = (v = e.kgButton) == null ? void 0 : v.cmd_method) != null ? T : "POST",
15700
15710
  params: KgVarUtil.parseRequestParamsToJSON((A = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? A : ""),
@@ -15702,13 +15712,13 @@ const KgButtonCreate = defineComponent({
15702
15712
  });
15703
15713
  if (((C = e.kgButton) == null ? void 0 : C.reload_all_after_done_flg) === 1) {
15704
15714
  if (((w = e.kgButton) == null ? void 0 : w.re_select_after_reload_flg) !== 0 && s.onAfterSearch(async ({
15705
- datas: M
15715
+ datas: D
15706
15716
  }) => {
15707
- const K = M.value, P = intersectionWith$1(K, y != null ? y : [], (U, L) => (U == null ? void 0 : U[s.id.value]) === (L == null ? void 0 : L[s.id.value]));
15717
+ const K = D.value, P = intersectionWith$1(K, y != null ? y : [], (U, L) => (U == null ? void 0 : U[s.id.value]) === (L == null ? void 0 : L[s.id.value]));
15708
15718
  return P.length > 0 && s.store.setSelectedRows(r.formID, P), !1;
15709
15719
  }, !0), await n.store.emit(r.formID, "otherOk", {
15710
15720
  button: e.kgButton,
15711
- data: D
15721
+ data: M
15712
15722
  }))
15713
15723
  return;
15714
15724
  a.search({
@@ -15716,11 +15726,11 @@ const KgButtonCreate = defineComponent({
15716
15726
  });
15717
15727
  } else if (await n.store.emit(r.formID, "otherOk", {
15718
15728
  button: e.kgButton,
15719
- data: D
15729
+ data: M
15720
15730
  }))
15721
15731
  return;
15722
- } catch (D) {
15723
- console.error(D);
15732
+ } catch (M) {
15733
+ console.error(M);
15724
15734
  } finally {
15725
15735
  r.store.setIsOtherRequesting(r.formID, !1), b == null || b.hideLoading();
15726
15736
  }
@@ -15822,8 +15832,8 @@ const KgButtonCreate = defineComponent({
15822
15832
  }
15823
15833
  });
15824
15834
  const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
15825
- var T, k, A, C, w, D, I, M;
15826
- return isNil(e.kgDisabled) ? !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value || i.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((D = (w = i.selectedRows.value) == null ? void 0 : w.length) != null ? D : 0) > 1 || KgAuthUtil.getPermissionType((I = c.value) == null ? void 0 : I.permission_code) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code)) : e.kgDisabled;
15835
+ var T, k, A, C, w, M, I, D;
15836
+ return isNil(e.kgDisabled) ? !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value || i.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((M = (w = i.selectedRows.value) == null ? void 0 : w.length) != null ? M : 0) > 1 || KgAuthUtil.getPermissionType((I = c.value) == null ? void 0 : I.permission_code) === 2 && !n.p((D = c.value) == null ? void 0 : D.permission_code)) : e.kgDisabled;
15827
15837
  }), d = computed(() => !!s.isUpdatingRequesting.value);
15828
15838
  async function b() {
15829
15839
  e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
@@ -15848,7 +15858,7 @@ const KgButtonCreate = defineComponent({
15848
15858
  return e.kgText ? e.kgText : n.t("kg.update");
15849
15859
  }
15850
15860
  function y() {
15851
- var T, k, A, C, w, D;
15861
+ var T, k, A, C, w, M;
15852
15862
  return createVNode(Button, {
15853
15863
  type: "primary",
15854
15864
  disabled: u.value,
@@ -15858,7 +15868,7 @@ const KgButtonCreate = defineComponent({
15858
15868
  "kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
15859
15869
  "kg-var_nam": (A = c.value) == null ? void 0 : A.var_nam,
15860
15870
  "kg-cmd": (C = c.value) == null ? void 0 : C.cmd,
15861
- "kg-permission": (D = (w = c.value) == null ? void 0 : w.permission_code) != null ? D : "",
15871
+ "kg-permission": (M = (w = c.value) == null ? void 0 : w.permission_code) != null ? M : "",
15862
15872
  class: a.class
15863
15873
  }, {
15864
15874
  default: () => [m(), _()]
@@ -16041,7 +16051,9 @@ const getProps$o = () => ({
16041
16051
  })
16042
16052
  });
16043
16053
  }
16044
- return () => createVNode("div", {
16054
+ return onUnmounted(async () => {
16055
+ s.store.dispose(n.formID);
16056
+ }), () => createVNode("div", {
16045
16057
  class: "kg-button",
16046
16058
  "kg-frm_id": n.formID
16047
16059
  }, [createVNode(Spin, {
@@ -16083,8 +16095,8 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
16083
16095
  var a;
16084
16096
  if (!t)
16085
16097
  return KgLogger.error("formID \u4E3A\u7A7A."), !1;
16086
- const r = (a = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : a.prf_frm_id;
16087
- return !!e.isReadyMap.get(r || t);
16098
+ const r = ((a = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : a.prf_frm_id) || t;
16099
+ return !!e.isReadyMap.get(r);
16088
16100
  };
16089
16101
  },
16090
16102
  getModel(e) {
@@ -16130,12 +16142,9 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
16130
16142
  KgLogger.warn("IKgSearchStore.dispose() | formID \u4E3A\u7A7A.");
16131
16143
  return;
16132
16144
  }
16133
- const t = useKgVar(e);
16134
- if ([...t.store.getVarGridConfigMap.values()].find((a) => !!(a != null && a.prf_frm_id)))
16135
- return;
16136
- const r = [...t.store.getVarGridConfigMap.values()].filter((a) => (a == null ? void 0 : a.prf_frm_id) === e).map((a) => a == null ? void 0 : a.frm_id).filter((a) => !!a);
16145
+ const r = [...useKgVar(e).store.getVarGridConfigMap.values()].filter((a) => (a == null ? void 0 : a.prf_frm_id) === e).map((a) => a == null ? void 0 : a.frm_id).filter((a) => !!a);
16137
16146
  for (let a of [e, ...r])
16138
- this.onSearchListenersMap.delete(a), this.onResetListenersMap.delete(a), this.onReadyListenersMap.delete(a), this.isReadyMap.delete(a), this.modelMap.delete(a), this.operatorModelMap.delete(a), this.searchFnMap.delete(a), this.resetFnMap.delete(a);
16147
+ this.isReadyMap.delete(a), this.modelMap.delete(a), this.operatorModelMap.delete(a), this.searchFnMap.delete(a), this.resetFnMap.delete(a);
16139
16148
  },
16140
16149
  addEventListener(e, t, r) {
16141
16150
  switch (t) {
@@ -16631,7 +16640,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
16631
16640
  row: v,
16632
16641
  model: T
16633
16642
  }) => {
16634
- var A, C, w, D, I;
16643
+ var A, C, w, M, I;
16635
16644
  const k = r.store.getSystemVarProfileDetails(r.formID);
16636
16645
  switch (l.value = k ? cloneDeep(toRaw(unref(k))) : [], !0) {
16637
16646
  case m: {
@@ -16643,24 +16652,24 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
16643
16652
  if (v != null && v.id)
16644
16653
  try {
16645
16654
  o.store.setIsLoading(a.formID, !0);
16646
- const M = await QueryByID({
16655
+ const D = await QueryByID({
16647
16656
  params: {
16648
16657
  id: v.id
16649
16658
  }
16650
16659
  });
16651
16660
  l.value = l.value.map((P) => {
16652
16661
  var L;
16653
- const U = (L = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : L.find((O) => O.var_nam === P.var_nam);
16662
+ const U = (L = D == null ? void 0 : D.varProfileDetails) == null ? void 0 : L.find((O) => O.var_nam === P.var_nam);
16654
16663
  return U ? {
16655
16664
  ...P,
16656
16665
  ...U,
16657
16666
  id: P.id
16658
16667
  } : P;
16659
16668
  });
16660
- const K = (C = (A = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : A.map((P) => P.var_nam)) != null ? C : [];
16669
+ const K = (C = (A = D == null ? void 0 : D.varProfileDetails) == null ? void 0 : A.map((P) => P.var_nam)) != null ? C : [];
16661
16670
  c.value = l.value.filter((P) => K.includes(P.var_nam)).map((P) => P.id);
16662
- } catch (M) {
16663
- throw M;
16671
+ } catch (D) {
16672
+ throw D;
16664
16673
  } finally {
16665
16674
  o.store.setIsLoading(a.formID, !1);
16666
16675
  }
@@ -16671,7 +16680,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
16671
16680
  }
16672
16681
  switch (!0) {
16673
16682
  case y: {
16674
- T.value.prf_var_nam = ((w = T.value.prf_var_nam) != null ? w : "") + "_COPY", T.value.prf_var_nam_dsc = ((I = (D = T.value.prf_var_nam_dsc) != null ? D : T.value.prf_var_nam) != null ? I : "") + "_COPY";
16683
+ T.value.prf_var_nam = ((w = T.value.prf_var_nam) != null ? w : "") + "_COPY", T.value.prf_var_nam_dsc = ((I = (M = T.value.prf_var_nam_dsc) != null ? M : T.value.prf_var_nam) != null ? I : "") + "_COPY";
16675
16684
  break;
16676
16685
  }
16677
16686
  }
@@ -16742,9 +16751,9 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
16742
16751
  onItemSelect: k
16743
16752
  }) => {
16744
16753
  var C, w;
16745
- const A = _.sort((D, I) => {
16746
- var M, K;
16747
- return ((M = D.srtseq) != null ? M : 0) - ((K = I.srtseq) != null ? K : 0);
16754
+ const A = _.sort((M, I) => {
16755
+ var D, K;
16756
+ return ((D = M.srtseq) != null ? D : 0) - ((K = I.srtseq) != null ? K : 0);
16748
16757
  });
16749
16758
  return m === "right" && (u.value = A), createVNode(Table, {
16750
16759
  pagination: !1,
@@ -16757,11 +16766,11 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
16757
16766
  columns: m === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
16758
16767
  rowKey: "id",
16759
16768
  dataSource: A,
16760
- customRow: (D) => {
16769
+ customRow: (M) => {
16761
16770
  let I = {
16762
- onClick: (M) => g(M, D, m, y)
16771
+ onClick: (D) => g(D, M, m, y)
16763
16772
  };
16764
- return m === "right" && (I["kg-host-frm_id"] = r.formID, I["kg-var_nam"] = D.var_nam), I;
16773
+ return m === "right" && (I["kg-host-frm_id"] = r.formID, I["kg-var_nam"] = M.var_nam), I;
16765
16774
  },
16766
16775
  rowSelection: E({
16767
16776
  disabled: v,
@@ -17008,7 +17017,7 @@ const KgSearch$1 = "", getProps$j = () => ({
17008
17017
  var $, F, H;
17009
17018
  if (n.t(($ = n.varButtonSearch.value) == null ? void 0 : $.var_nam).value !== ((F = n.varButtonSearch.value) == null ? void 0 : F.var_nam))
17010
17019
  return n.t((H = n.varButtonSearch.value) == null ? void 0 : H.var_nam).value;
17011
- }), D = computed(() => {
17020
+ }), M = computed(() => {
17012
17021
  var $;
17013
17022
  switch (($ = n.varButtonSearch.value) == null ? void 0 : $.primary_flg) {
17014
17023
  case 1:
@@ -17018,7 +17027,7 @@ const KgSearch$1 = "", getProps$j = () => ({
17018
17027
  default:
17019
17028
  return !0;
17020
17029
  }
17021
- }), I = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), M = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), K = computed(() => {
17030
+ }), I = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), D = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), K = computed(() => {
17022
17031
  let $ = "kg-search";
17023
17032
  return o.value && ($ += " kg-search--visible"), c.value && ($ += " kg-search--teleport"), $;
17024
17033
  });
@@ -17099,7 +17108,7 @@ const KgSearch$1 = "", getProps$j = () => ({
17099
17108
  class: "kg-search-profile-master-btn"
17100
17109
  }, {
17101
17110
  default: () => [createVNode(SettingOutlined$1, null, null)]
17102
- }), createVNode(KgSearchConfigModal, {
17111
+ }), A.value.visible && createVNode(KgSearchConfigModal, {
17103
17112
  visible: A.value.visible,
17104
17113
  "onUpdate:visible": (J) => A.value.visible = J,
17105
17114
  hostFormID: n.formID
@@ -17121,7 +17130,7 @@ const KgSearch$1 = "", getProps$j = () => ({
17121
17130
  kgIcon: (F = n.varButtonSearch.value) == null ? void 0 : F.icon,
17122
17131
  kgText: w.value,
17123
17132
  kgColor: (H = n.varButtonSearch.value) == null ? void 0 : H.color,
17124
- kgPrimary: D.value,
17133
+ kgPrimary: M.value,
17125
17134
  kgDisabled: v.value,
17126
17135
  kgLoading: k.value,
17127
17136
  onKgClick: L
@@ -17129,7 +17138,7 @@ const KgSearch$1 = "", getProps$j = () => ({
17129
17138
  }
17130
17139
  function N() {
17131
17140
  return createVNode(Spin, {
17132
- spinning: M.value
17141
+ spinning: D.value
17133
17142
  }, {
17134
17143
  default: () => {
17135
17144
  var $;
@@ -17159,7 +17168,9 @@ const KgSearch$1 = "", getProps$j = () => ({
17159
17168
  function x() {
17160
17169
  C.value ? m.value.kgHeight = u.value : m.value.kgHeight = b.value;
17161
17170
  }
17162
- return () => createVNode(KgResizable, {
17171
+ return onUnmounted(async () => {
17172
+ s.store.dispose(n.formID);
17173
+ }), () => createVNode(KgResizable, {
17163
17174
  ref: E,
17164
17175
  kgHeight: m.value.kgHeight,
17165
17176
  "onUpdate:kgHeight": ($) => m.value.kgHeight = $,
@@ -17694,14 +17705,14 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17694
17705
  }
17695
17706
  }) : (a.setSelectedVarCatalog(unref(P)), d.value = [P.id]));
17696
17707
  }
17697
- function D() {
17708
+ function M() {
17698
17709
  E.value.visible = !0;
17699
17710
  }
17700
17711
  function I() {
17701
17712
  return createVNode("div", {
17702
17713
  class: "buttons"
17703
17714
  }, [createVNode(Button, {
17704
- onClick: D,
17715
+ onClick: M,
17705
17716
  disabled: g.value,
17706
17717
  type: "primary"
17707
17718
  }, {
@@ -17716,7 +17727,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17716
17727
  default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
17717
17728
  })]);
17718
17729
  }
17719
- function M() {
17730
+ function D() {
17720
17731
  let P, U;
17721
17732
  return createVNode("div", {
17722
17733
  class: "form"
@@ -17780,7 +17791,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17780
17791
  customRow: (P) => ({
17781
17792
  onClick: () => w(P)
17782
17793
  })
17783
- }, null), M(), createVNode(KgVarConfigModalVarCreateModal, {
17794
+ }, null), D(), createVNode(KgVarConfigModalVarCreateModal, {
17784
17795
  visible: E.value.visible,
17785
17796
  "onUpdate:visible": (P) => E.value.visible = P,
17786
17797
  onKgOk: k
@@ -18017,16 +18028,23 @@ const useKgWarehouseStore = (e) => (store || (store = defineStore("KgWarehouse",
18017
18028
  return this.visible;
18018
18029
  },
18019
18030
  getWarehouse() {
18020
- var r, a;
18021
- const t = this.warehouse || store_legacy.get(LOCAL_STORAGE_KEY, null);
18022
- if (!t) {
18023
- const n = useKg(e);
18024
- if (((r = n.option.value.KgWarehouse) == null ? void 0 : r.on) === !1) {
18025
- const s = (a = n.option.value.KgWarehouse) == null ? void 0 : a.defaultWarehouseID;
18026
- return s ? { whId: s } : null;
18027
- }
18031
+ var a, n, s, i, o, l, c, u;
18032
+ const t = useKg();
18033
+ let r = this.warehouse;
18034
+ if (!r && ((a = t.option.value.KgWarehouse) == null ? void 0 : a.on) === !1) {
18035
+ const d = (n = t.option.value.KgWarehouse) == null ? void 0 : n.defaultWarehouseID;
18036
+ return d ? { whId: d } : null;
18037
+ }
18038
+ if (!r) {
18039
+ const d = store_legacy.get(LOCAL_STORAGE_KEY, null);
18040
+ if (isNil(d))
18041
+ return null;
18042
+ if (!isArray$1(d))
18043
+ return store_legacy.set(LOCAL_STORAGE_KEY, []), null;
18044
+ const b = (l = (o = (i = (s = t.store).getUseUserStore) == null ? void 0 : i.call(s)) == null ? void 0 : o.userInfo) == null ? void 0 : l.username;
18045
+ r = (u = (c = d.find((E) => E.username === b)) == null ? void 0 : c.warehouse) != null ? u : null;
18028
18046
  }
18029
- return t;
18047
+ return r;
18030
18048
  }
18031
18049
  },
18032
18050
  actions: {
@@ -18058,12 +18076,17 @@ const useKgWarehouseStore = (e) => (store || (store = defineStore("KgWarehouse",
18058
18076
  this.visible = t;
18059
18077
  },
18060
18078
  setWarehouse(t) {
18061
- if (!t) {
18062
- this.warehouse = null, store_legacy.set(LOCAL_STORAGE_KEY, null);
18063
- return;
18079
+ var i, o, l, c;
18080
+ const a = (c = (l = (o = (i = useKg().store).getUseUserStore) == null ? void 0 : o.call(i)) == null ? void 0 : l.userInfo) == null ? void 0 : c.username;
18081
+ let n = store_legacy.get(LOCAL_STORAGE_KEY, null);
18082
+ isArray$1(n) || (n = [], store_legacy.set(LOCAL_STORAGE_KEY, []));
18083
+ const s = n.find((u) => u.username === a);
18084
+ if (!t)
18085
+ this.warehouse = null, s && (s.warehouse = null, store_legacy.set(LOCAL_STORAGE_KEY, n));
18086
+ else {
18087
+ const u = toRaw(unref(t));
18088
+ this.warehouse = u, s ? s.warehouse = u : n.push({ username: a, warehouse: u }), store_legacy.set(LOCAL_STORAGE_KEY, n);
18064
18089
  }
18065
- const r = toRaw(unref(t));
18066
- this.warehouse = r, store_legacy.set(LOCAL_STORAGE_KEY, r);
18067
18090
  }
18068
18091
  }
18069
18092
  }).bind(null, e != null ? e : getPinia())), store);
@@ -18112,18 +18135,18 @@ const KgWarehouse$1 = "", getProps$a = () => ({
18112
18135
  customRender: ({
18113
18136
  record: k
18114
18137
  }) => {
18115
- var C, w, D;
18138
+ var C, w, M;
18116
18139
  const A = k;
18117
18140
  return createVNode("div", null, [createVNode("div", null, [(C = A.whDsc) != null ? C : " ", createTextVNode(" - "), (w = A.whId) != null ? w : " "]), createVNode("div", {
18118
18141
  class: "address"
18119
- }, [(D = A.adrnam) != null ? D : " "])]);
18142
+ }, [(M = A.adrnam) != null ? M : " "])]);
18120
18143
  }
18121
18144
  }]), c = ref([]), u = computed(() => {
18122
18145
  var A;
18123
18146
  const k = (A = s.value) == null ? void 0 : A.toUpperCase();
18124
18147
  return c.value.filter((C) => {
18125
- var w, D, I, M, K, P;
18126
- return ((D = (w = C.whDsc) == null ? void 0 : w.toUpperCase()) == null ? void 0 : D.includes(k)) || ((M = (I = C.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : M.includes(k)) || ((P = (K = C.adrId) == null ? void 0 : K.toUpperCase()) == null ? void 0 : P.includes(k));
18148
+ var w, M, I, D, K, P;
18149
+ return ((M = (w = C.whDsc) == null ? void 0 : w.toUpperCase()) == null ? void 0 : M.includes(k)) || ((D = (I = C.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : D.includes(k)) || ((P = (K = C.adrId) == null ? void 0 : K.toUpperCase()) == null ? void 0 : P.includes(k));
18127
18150
  });
18128
18151
  }), d = computed(() => {
18129
18152
  var k;
@@ -18260,32 +18283,42 @@ const KgWarehouse$1 = "", getProps$a = () => ({
18260
18283
  });
18261
18284
  function createKgWarehouseGuard(e, t) {
18262
18285
  e.beforeEach(async (r) => {
18263
- var i;
18264
- const a = r.path, n = useKg(t);
18265
- if (((i = n.option.value.KgWarehouse) == null ? void 0 : i.on) === !1)
18266
- return KgLogger.debug(`createKgWarehouseGuard() | ${a} | \u6CA1\u6709\u542F\u7528\u4ED3\u5E93\u9009\u62E9\u529F\u80FD.`), !0;
18267
- if (a === "/login") {
18268
- KgLogger.debug(`createKgWarehouseGuard() | ${a} | \u767B\u5F55\u9875\u9762.`);
18286
+ var s;
18287
+ const a = useKg(t);
18288
+ if (((s = a.option.value.KgWarehouse) == null ? void 0 : s.on) === !1)
18289
+ return KgLogger.debug(`createKgWarehouseGuard() | ${r.path} | \u6CA1\u6709\u542F\u7528\u4ED3\u5E93\u9009\u62E9\u529F\u80FD.`), !0;
18290
+ if (r.path === "/login") {
18291
+ KgLogger.debug(`createKgWarehouseGuard() | ${r.path} | \u767B\u5F55\u9875\u9762.`);
18269
18292
  return;
18270
18293
  }
18271
- const s = useKgWarehouse(t);
18272
- return s.onMounted(() => {
18273
- var l, c, u, d, b;
18274
- const o = (c = (l = n.store).getUseUserStore) == null ? void 0 : c.call(l);
18275
- if (s.warehouse.value) {
18276
- KgLogger.debug(`createKgWarehouseGuard() | ${a} | \u4ED3\u5E93\u5DF2\u9009: ${s.warehouse.value.whId}`);
18294
+ const n = useKgWarehouse(t);
18295
+ return n.onMounted(() => {
18296
+ var o, l, c, u, d, b;
18297
+ const i = (l = (o = a.store).getUseUserStore) == null ? void 0 : l.call(o);
18298
+ if (r.path === "/login") {
18299
+ KgLogger.debug(`createKgWarehouseGuard() | ${r.path} | \u767B\u5F55\u9875\u9762.`);
18277
18300
  return;
18278
18301
  }
18279
- if (((u = o == null ? void 0 : o.getUserWarehouses) == null ? void 0 : u.length) === 1) {
18280
- const E = (d = o.getUserWarehouses) == null ? void 0 : d[0];
18281
- s.store.setWarehouse(
18302
+ if (!((c = i == null ? void 0 : i.getUserInfo) != null && c.username)) {
18303
+ KgLogger.debug(`createKgWarehouseGuard() | ${r.path} | \u5C1A\u672A\u767B\u5F55.`);
18304
+ return;
18305
+ }
18306
+ if (n.warehouse.value) {
18307
+ KgLogger.debug(`createKgWarehouseGuard() | ${r.path} | \u4ED3\u5E93\u5DF2\u9009: ${n.warehouse.value.whId}`);
18308
+ return;
18309
+ }
18310
+ if (((u = i == null ? void 0 : i.getUserWarehouses) == null ? void 0 : u.length) === 1) {
18311
+ const E = (d = i.getUserWarehouses) == null ? void 0 : d[0];
18312
+ n.store.setWarehouse(
18282
18313
  new WhDTO({ whId: E.wh_id, whDsc: E.wh_dsc })
18283
- ), KgLogger.debug(`createKgWarehouseGuard() | ${a} | \u9009\u62E9\u552F\u4E00\u4ED3\u5E93: ${E.wh_id}`);
18314
+ ), KgLogger.debug(`createKgWarehouseGuard() | ${r.path} | \u9009\u62E9\u552F\u4E00\u4ED3\u5E93: ${E.wh_id}`);
18284
18315
  } else {
18285
- const E = (b = o == null ? void 0 : o.getUserWarehouses) == null ? void 0 : b.find((g) => g.default_flag === 1);
18286
- E ? (s.store.setWarehouse(
18316
+ const E = (b = i == null ? void 0 : i.getUserWarehouses) == null ? void 0 : b.find((g) => g.default_flag === 1);
18317
+ E ? (n.store.setWarehouse(
18287
18318
  new WhDTO({ whId: E.wh_id, whDsc: E.wh_dsc })
18288
- ), KgLogger.debug(`createKgWarehouseGuard() | ${a} | \u9009\u62E9\u9ED8\u8BA4\u4ED3\u5E93: ${E.wh_id}`)) : (s.store.setVisible(!0), KgLogger.debug(`createKgWarehouseGuard() | ${a} | \u6253\u5F00\u4ED3\u5E93\u9009\u62E9\u5F39\u7A97.`));
18319
+ ), KgLogger.debug(
18320
+ `createKgWarehouseGuard() | ${r.path} | \u9009\u62E9\u9ED8\u8BA4\u4ED3\u5E93: ${E.wh_id}`
18321
+ )) : (n.store.setVisible(!0), KgLogger.debug(`createKgWarehouseGuard() | ${r.path} | \u6253\u5F00\u4ED3\u5E93\u9009\u62E9\u5F39\u7A97.`));
18289
18322
  }
18290
18323
  }), !0;
18291
18324
  });
@@ -18403,68 +18436,68 @@ class KgUtil {
18403
18436
  let y = c == null ? void 0 : c[g];
18404
18437
  (((A = (k = o.option.value.KgSearch) == null ? void 0 : k.dynamicQuery) == null ? void 0 : A.on) !== !0 || r && ((w = (C = l == null ? void 0 : l.currentVarProfileMaster) == null ? void 0 : C.value) == null ? void 0 : w.dyn_flg) !== 1) && (y = KG_DYNAMIC_QUERY_OPERATOR.EQ);
18405
18438
  let v = g;
18406
- switch (r && (m == null ? void 0 : m.use_underscore_when_dynamic_query_flag) !== 0 && (v = g.split(".").map((D) => snakeCase$1(D)).join(".")), !0) {
18439
+ switch (r && (m == null ? void 0 : m.use_underscore_when_dynamic_query_flag) !== 0 && (v = g.split(".").map((M) => snakeCase$1(M)).join(".")), !0) {
18407
18440
  case g.endsWith("_obj"): {
18408
18441
  u[g] = void 0, delete u[g];
18409
18442
  break;
18410
18443
  }
18411
18444
  case (!!n && n.isDayjs(_)): {
18412
- const D = _;
18413
- let I = r ? this.parseParamFromDayJS(g, D, r) : D.format("YYYY-MM-DD HH:mm:ss");
18445
+ const M = _;
18446
+ let I = r ? this.parseParamFromDayJS(g, M, r) : M.format("YYYY-MM-DD HH:mm:ss");
18414
18447
  switch (y) {
18415
18448
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
18416
- let M = I, K = "";
18449
+ let D = I, K = "";
18417
18450
  switch (!0) {
18418
- case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
18419
- K = D.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
18451
+ case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(D): {
18452
+ K = M.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
18420
18453
  break;
18421
18454
  }
18422
- case /\d\d-\d\d-\d\d/.test(M): {
18423
- M = `${M} 00:00:00`, K = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
18455
+ case /\d\d-\d\d-\d\d/.test(D): {
18456
+ D = `${D} 00:00:00`, K = M.add(1, "day").format("YYYY-MM-DD 00:00:00");
18424
18457
  break;
18425
18458
  }
18426
- case /\d\d:\d\d:\d\d/.test(M): {
18427
- M = D.format("1900-01-01 HH:mm:ss"), K = D.add(1, "second").format("1900-01-01 HH:mm:ss");
18459
+ case /\d\d:\d\d:\d\d/.test(D): {
18460
+ D = M.format("1900-01-01 HH:mm:ss"), K = M.add(1, "second").format("1900-01-01 HH:mm:ss");
18428
18461
  break;
18429
18462
  }
18430
18463
  default:
18431
18464
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
18432
18465
  }
18433
- I = ` AND (${v} < '${M}' OR ${v} >= '${K}')`;
18466
+ I = ` AND (${v} < '${D}' OR ${v} >= '${K}')`;
18434
18467
  break;
18435
18468
  }
18436
18469
  case KG_DYNAMIC_QUERY_OPERATOR.LT: {
18437
- let M = I;
18470
+ let D = I;
18438
18471
  switch (!0) {
18439
- case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M):
18472
+ case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(D):
18440
18473
  break;
18441
- case /\d\d-\d\d-\d\d/.test(M): {
18442
- M = `${M} 00:00:00`;
18474
+ case /\d\d-\d\d-\d\d/.test(D): {
18475
+ D = `${D} 00:00:00`;
18443
18476
  break;
18444
18477
  }
18445
- case /\d\d:\d\d:\d\d/.test(M): {
18446
- M = `1900-01-01 ${M}`;
18478
+ case /\d\d:\d\d:\d\d/.test(D): {
18479
+ D = `1900-01-01 ${D}`;
18447
18480
  break;
18448
18481
  }
18449
18482
  default:
18450
18483
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
18451
18484
  }
18452
- I = ` AND (${v} < '${M}')`;
18485
+ I = ` AND (${v} < '${D}')`;
18453
18486
  break;
18454
18487
  }
18455
18488
  case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
18456
- let M = I, K = "";
18489
+ let D = I, K = "";
18457
18490
  switch (!0) {
18458
- case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
18459
- K = D.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
18491
+ case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(D): {
18492
+ K = M.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
18460
18493
  break;
18461
18494
  }
18462
- case /\d\d-\d\d-\d\d/.test(M): {
18463
- K = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
18495
+ case /\d\d-\d\d-\d\d/.test(D): {
18496
+ K = M.add(1, "day").format("YYYY-MM-DD 00:00:00");
18464
18497
  break;
18465
18498
  }
18466
- case /\d\d:\d\d:\d\d/.test(M): {
18467
- K = D.add(1, "second").format("1900-01-01 HH:mm:ss");
18499
+ case /\d\d:\d\d:\d\d/.test(D): {
18500
+ K = M.add(1, "second").format("1900-01-01 HH:mm:ss");
18468
18501
  break;
18469
18502
  }
18470
18503
  default:
@@ -18474,18 +18507,18 @@ class KgUtil {
18474
18507
  break;
18475
18508
  }
18476
18509
  case KG_DYNAMIC_QUERY_OPERATOR.GT: {
18477
- let M = I, K = "";
18510
+ let D = I, K = "";
18478
18511
  switch (!0) {
18479
- case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
18480
- K = D.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
18512
+ case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(D): {
18513
+ K = M.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
18481
18514
  break;
18482
18515
  }
18483
- case /\d\d-\d\d-\d\d/.test(M): {
18484
- K = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
18516
+ case /\d\d-\d\d-\d\d/.test(D): {
18517
+ K = M.add(1, "day").format("YYYY-MM-DD 00:00:00");
18485
18518
  break;
18486
18519
  }
18487
- case /\d\d:\d\d:\d\d/.test(M): {
18488
- K = D.add(1, "second").format("1900-01-01 HH:mm:ss");
18520
+ case /\d\d:\d\d:\d\d/.test(D): {
18521
+ K = M.add(1, "second").format("1900-01-01 HH:mm:ss");
18489
18522
  break;
18490
18523
  }
18491
18524
  default:
@@ -18495,44 +18528,44 @@ class KgUtil {
18495
18528
  break;
18496
18529
  }
18497
18530
  case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
18498
- let M = I;
18531
+ let D = I;
18499
18532
  switch (!0) {
18500
- case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M):
18533
+ case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(D):
18501
18534
  break;
18502
- case /\d\d-\d\d-\d\d/.test(M): {
18503
- M = `${M} 00:00:00`;
18535
+ case /\d\d-\d\d-\d\d/.test(D): {
18536
+ D = `${D} 00:00:00`;
18504
18537
  break;
18505
18538
  }
18506
- case /\d\d:\d\d:\d\d/.test(M): {
18507
- M = `1900-01-01 ${M}`;
18539
+ case /\d\d:\d\d:\d\d/.test(D): {
18540
+ D = `1900-01-01 ${D}`;
18508
18541
  break;
18509
18542
  }
18510
18543
  default:
18511
18544
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
18512
18545
  }
18513
- I = ` AND (${v} >= '${M}')`;
18546
+ I = ` AND (${v} >= '${D}')`;
18514
18547
  break;
18515
18548
  }
18516
18549
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
18517
18550
  default: {
18518
- let M = I, K = "";
18551
+ let D = I, K = "";
18519
18552
  switch (!0) {
18520
- case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
18521
- K = D.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
18553
+ case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(D): {
18554
+ K = M.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
18522
18555
  break;
18523
18556
  }
18524
- case /\d\d-\d\d-\d\d/.test(M): {
18525
- M = `${M} 00:00:00`, K = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
18557
+ case /\d\d-\d\d-\d\d/.test(D): {
18558
+ D = `${D} 00:00:00`, K = M.add(1, "day").format("YYYY-MM-DD 00:00:00");
18526
18559
  break;
18527
18560
  }
18528
- case /\d\d:\d\d:\d\d/.test(M): {
18529
- M = `1900-01-01 ${M}`, K = D.add(1, "second").format("1900-01-01 HH:mm:ss");
18561
+ case /\d\d:\d\d:\d\d/.test(D): {
18562
+ D = `1900-01-01 ${D}`, K = M.add(1, "second").format("1900-01-01 HH:mm:ss");
18530
18563
  break;
18531
18564
  }
18532
18565
  default:
18533
18566
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
18534
18567
  }
18535
- I = ` AND (${v} >= '${M}' AND ${v} < '${K}')`;
18568
+ I = ` AND (${v} >= '${D}' AND ${v} < '${K}')`;
18536
18569
  break;
18537
18570
  }
18538
18571
  }
@@ -18540,23 +18573,27 @@ class KgUtil {
18540
18573
  break;
18541
18574
  }
18542
18575
  case (!!n && isArray$1(_) && _.length === 2 && n.isDayjs(_[0]) && n.isDayjs(_[1])): {
18543
- const D = _[0], I = _[1];
18544
- let M = this.parseParamFromDayJS(g, D, r), K = "", P = "";
18576
+ const M = _[0], I = _[1];
18577
+ let D = "", K = this.parseParamFromDayJS(g, M, r), P = "";
18545
18578
  switch (!0) {
18546
- case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
18547
- K = I.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
18579
+ case !K: {
18580
+ P = this.parseParamFromDayJS(g, I, r, !0);
18581
+ break;
18582
+ }
18583
+ case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(K): {
18584
+ I.isValid() && (P = I.add(1, "second").format("YYYY-MM-DD HH:mm:ss"));
18548
18585
  break;
18549
18586
  }
18550
- case /\d\d-\d\d-\d\d/.test(M): {
18551
- M = `${M} 00:00:00`, K = I.add(1, "day").format("YYYY-MM-DD 00:00:00");
18587
+ case /\d\d-\d\d-\d\d/.test(K): {
18588
+ K = `${K} 00:00:00`, I.isValid() && (P = I.add(1, "day").format("YYYY-MM-DD 00:00:00"));
18552
18589
  break;
18553
18590
  }
18554
- case /\d\d:\d\d:\d\d/.test(M): {
18555
- M = `1900-01-01 ${M}`, K = I.add(1, "second").format("1900-01-01 HH:mm:ss");
18591
+ case /\d\d:\d\d:\d\d/.test(K): {
18592
+ K = `1900-01-01 ${K}`, I.isValid() && (P = I.add(1, "second").format("1900-01-01 HH:mm:ss"));
18556
18593
  break;
18557
18594
  }
18558
18595
  }
18559
- K ? P = ` AND (${v} >= '${M}' AND ${v} < '${K}')` : P = ` AND (${v} >= '${M}')`, u[g] = P;
18596
+ K && (D += ` AND (${v} >= N'${K}')`), P && (D += ` AND (${v} < N'${P}')`), u[g] = D;
18560
18597
  break;
18561
18598
  }
18562
18599
  case Array.isArray(_): {
@@ -18564,8 +18601,8 @@ class KgUtil {
18564
18601
  u[g] = void 0;
18565
18602
  break;
18566
18603
  }
18567
- const D = _.map((I) => `N'${String(I)}'`).join(", ");
18568
- u[g] = ` AND (${v} IN (${D}))`;
18604
+ const M = _.map((I) => `N'${String(I)}'`).join(", ");
18605
+ u[g] = ` AND (${v} IN (${M}))`;
18569
18606
  break;
18570
18607
  }
18571
18608
  case isObjectLike(_):
@@ -18575,79 +18612,79 @@ class KgUtil {
18575
18612
  u[g] = void 0;
18576
18613
  break;
18577
18614
  }
18578
- let D = this.parseParamFromString(_);
18615
+ let M = this.parseParamFromString(_);
18579
18616
  switch (y) {
18580
18617
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
18581
- D = ` AND (${v} <> N'${D}')`;
18618
+ M = ` AND (${v} <> N'${M}')`;
18582
18619
  break;
18583
18620
  }
18584
18621
  case KG_DYNAMIC_QUERY_OPERATOR.START_WITH: {
18585
- D = ` AND (${v} LIKE N'${D}%')`;
18622
+ M = ` AND (${v} LIKE N'${M}%')`;
18586
18623
  break;
18587
18624
  }
18588
18625
  case KG_DYNAMIC_QUERY_OPERATOR.END_WITH: {
18589
- D = ` AND (${v} LIKE N'%${D}')`;
18626
+ M = ` AND (${v} LIKE N'%${M}')`;
18590
18627
  break;
18591
18628
  }
18592
18629
  case KG_DYNAMIC_QUERY_OPERATOR.CONTAIN: {
18593
- D = ` AND (${v} LIKE N'%${D}%')`;
18630
+ M = ` AND (${v} LIKE N'%${M}%')`;
18594
18631
  break;
18595
18632
  }
18596
18633
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
18597
18634
  default: {
18598
- D = ` AND (${v} = N'${D}')`;
18635
+ M = ` AND (${v} = N'${M}')`;
18599
18636
  break;
18600
18637
  }
18601
18638
  }
18602
- u[g] = D;
18639
+ u[g] = M;
18603
18640
  break;
18604
18641
  }
18605
18642
  case typeof _ == "number": {
18606
- let D = "";
18643
+ let M = "";
18607
18644
  switch (y) {
18608
18645
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
18609
- D = ` AND (${v} <> ${_})`;
18646
+ M = ` AND (${v} <> ${_})`;
18610
18647
  break;
18611
18648
  }
18612
18649
  case KG_DYNAMIC_QUERY_OPERATOR.LT: {
18613
- D = ` AND (${v} < ${_})`;
18650
+ M = ` AND (${v} < ${_})`;
18614
18651
  break;
18615
18652
  }
18616
18653
  case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
18617
- D = ` AND (${v} <= ${_})`;
18654
+ M = ` AND (${v} <= ${_})`;
18618
18655
  break;
18619
18656
  }
18620
18657
  case KG_DYNAMIC_QUERY_OPERATOR.GT: {
18621
- D = ` AND (${v} > ${_})`;
18658
+ M = ` AND (${v} > ${_})`;
18622
18659
  break;
18623
18660
  }
18624
18661
  case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
18625
- D = ` AND (${v} >= ${_})`;
18662
+ M = ` AND (${v} >= ${_})`;
18626
18663
  break;
18627
18664
  }
18628
18665
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
18629
18666
  default: {
18630
- D = ` AND (${v} = ${_})`;
18667
+ M = ` AND (${v} = ${_})`;
18631
18668
  break;
18632
18669
  }
18633
18670
  }
18634
- u[g] = D;
18671
+ u[g] = M;
18635
18672
  break;
18636
18673
  }
18637
18674
  case typeof _ == "boolean": {
18638
- let D = "";
18675
+ let M = "";
18639
18676
  switch (y) {
18640
18677
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
18641
- D = ` AND (${v} <> ${_ ? 1 : 0})`;
18678
+ M = ` AND (${v} <> ${_ ? 1 : 0})`;
18642
18679
  break;
18643
18680
  }
18644
18681
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
18645
18682
  default: {
18646
- D = ` AND (${v} = ${_ ? 1 : 0})`;
18683
+ M = ` AND (${v} = ${_ ? 1 : 0})`;
18647
18684
  break;
18648
18685
  }
18649
18686
  }
18650
- u[g] = D;
18687
+ u[g] = M;
18651
18688
  break;
18652
18689
  }
18653
18690
  default: {
@@ -19774,26 +19811,26 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
19774
19811
  r.value = I != null ? I : [];
19775
19812
  }
19776
19813
  function d(I) {
19777
- a.value.frmId = I != null ? I : "", a.value.varButtons.forEach((M) => M.frm_id = I), a.value.varContexts.forEach((M) => M.frm_id = I), a.value.varDda.frm_id = I != null ? I : "", a.value.varGridConfig.frm_id = I != null ? I : "", a.value.varGridDetails.forEach((M) => M.frm_id = I), a.value.varGridMaster.frm_id = I != null ? I : "", a.value.varProfileConfig.frm_id = I != null ? I : "", a.value.varProfileDetails.forEach((M) => M.frm_id = I), a.value.varProfileMaster.frm_id = I != null ? I : "", a.value.varSubmitConfig.frm_id = I != null ? I : "", a.value.varSubmitFields.forEach((M) => M.frm_id = I), a.value.varVariableCatalogs.forEach((M) => M.frm_id = I), a.value.varVariableConfigs.forEach((M) => M.frm_id = I);
19814
+ a.value.frmId = I != null ? I : "", a.value.varButtons.forEach((D) => D.frm_id = I), a.value.varContexts.forEach((D) => D.frm_id = I), a.value.varDda.frm_id = I != null ? I : "", a.value.varGridConfig.frm_id = I != null ? I : "", a.value.varGridDetails.forEach((D) => D.frm_id = I), a.value.varGridMaster.frm_id = I != null ? I : "", a.value.varProfileConfig.frm_id = I != null ? I : "", a.value.varProfileDetails.forEach((D) => D.frm_id = I), a.value.varProfileMaster.frm_id = I != null ? I : "", a.value.varSubmitConfig.frm_id = I != null ? I : "", a.value.varSubmitFields.forEach((D) => D.frm_id = I), a.value.varVariableCatalogs.forEach((D) => D.frm_id = I), a.value.varVariableConfigs.forEach((D) => D.frm_id = I);
19778
19815
  }
19779
19816
  function b(I) {
19780
- const { properties: M = {} } = I;
19781
- Object.entries(M).forEach(([K, P]) => {
19817
+ const { properties: D = {} } = I;
19818
+ Object.entries(D).forEach(([K, P]) => {
19782
19819
  K in a.value.sysPermission && a.value.sysPermission[K] !== P && (a.value.sysPermission[K] = P);
19783
19820
  });
19784
19821
  }
19785
19822
  function E(I) {
19786
- const { frmId: M, frmNam: K } = I;
19787
- a.value.varDda.frm_id = M, a.value.varDda.frm_nam = K;
19823
+ const { frmId: D, frmNam: K } = I;
19824
+ a.value.varDda.frm_id = D, a.value.varDda.frm_nam = K;
19788
19825
  }
19789
19826
  function g(I) {
19790
19827
  a.value.varButtons = [
19791
19828
  ...toRaw(a.value.varButtons),
19792
19829
  { ...I, ena_flg: 1, frm_id: o.value, id: `${Date.now()}`, show_success_message_flg: 1 }
19793
- ], D();
19830
+ ], M();
19794
19831
  }
19795
19832
  function m(I) {
19796
- const { varNam: M, properties: K = {} } = I, P = a.value.varButtons.find((O) => O.var_nam === M);
19833
+ const { varNam: D, properties: K = {} } = I, P = a.value.varButtons.find((O) => O.var_nam === D);
19797
19834
  if (!P)
19798
19835
  return;
19799
19836
  let U = !1;
@@ -19805,17 +19842,17 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
19805
19842
  L.splice(a.value.varButtons.indexOf(P), 1, { ...P }), a.value.varButtons = toRaw(L);
19806
19843
  }
19807
19844
  function _(I) {
19808
- const { varNam: M } = I, K = a.value.varButtons.find((U) => U.var_nam === M);
19845
+ const { varNam: D } = I, K = a.value.varButtons.find((U) => U.var_nam === D);
19809
19846
  if (!K)
19810
19847
  return;
19811
19848
  const P = [...a.value.varButtons];
19812
- P.splice(a.value.varButtons.indexOf(K), 1), a.value.varButtons = toRaw(P), D();
19849
+ P.splice(a.value.varButtons.indexOf(K), 1), a.value.varButtons = toRaw(P), M();
19813
19850
  }
19814
19851
  function y(I) {
19815
- const { varNam: M, varText: K } = I;
19816
- if (!!M) {
19817
- if (a.value.varVariableCatalogs.find((P) => P.var_nam === M)) {
19818
- v({ varNam: M, varText: K });
19852
+ const { varNam: D, varText: K } = I;
19853
+ if (!!D) {
19854
+ if (a.value.varVariableCatalogs.find((P) => P.var_nam === D)) {
19855
+ v({ varNam: D, varText: K });
19819
19856
  return;
19820
19857
  }
19821
19858
  a.value.varVariableCatalogs = [
@@ -19825,36 +19862,36 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
19825
19862
  frm_id: o.value,
19826
19863
  grp_nam: "WMS",
19827
19864
  locale_id: e.locale.value,
19828
- var_nam: M,
19829
- var_text: K || M
19865
+ var_nam: D,
19866
+ var_text: K || D
19830
19867
  }
19831
- ], D();
19868
+ ], M();
19832
19869
  }
19833
19870
  }
19834
19871
  function v(I) {
19835
- const { varNam: M, varText: K } = I;
19836
- if (!M)
19872
+ const { varNam: D, varText: K } = I;
19873
+ if (!D)
19837
19874
  return;
19838
- const P = a.value.varVariableCatalogs.find((U) => U.var_nam === M);
19839
- !P || (P.var_text = K || M);
19875
+ const P = a.value.varVariableCatalogs.find((U) => U.var_nam === D);
19876
+ !P || (P.var_text = K || D);
19840
19877
  }
19841
19878
  function T(I) {
19842
- a.value.varProfileDetails = I.map((M) => ({
19843
- ...M,
19879
+ a.value.varProfileDetails = I.map((D) => ({
19880
+ ...D,
19844
19881
  frm_id: o.value,
19845
19882
  grp_nam: "WMS"
19846
19883
  }));
19847
19884
  }
19848
19885
  function k(I) {
19849
- a.value.varGridDetails = I.map((M) => ({
19850
- ...M,
19886
+ a.value.varGridDetails = I.map((D) => ({
19887
+ ...D,
19851
19888
  frm_id: o.value,
19852
19889
  grp_nam: "WMS"
19853
19890
  }));
19854
19891
  }
19855
19892
  function A(I) {
19856
- a.value.varSubmitFields = I.map((M) => ({
19857
- ...M,
19893
+ a.value.varSubmitFields = I.map((D) => ({
19894
+ ...D,
19858
19895
  crt_ena_flg: 1,
19859
19896
  crt_flg: 1,
19860
19897
  crt_vis_flg: 1,
@@ -19866,8 +19903,8 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
19866
19903
  }));
19867
19904
  }
19868
19905
  function C(I) {
19869
- a.value.varVariableConfigs = I.map((M) => ({
19870
- ...M,
19906
+ a.value.varVariableConfigs = I.map((D) => ({
19907
+ ...D,
19871
19908
  ctrl_typ: KG_FORM_ITEM_TYPE.INPUT,
19872
19909
  cust_lvl: KG_CUSTOM_LEVEL.L0,
19873
19910
  frm_id: o.value,
@@ -19876,24 +19913,24 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
19876
19913
  }));
19877
19914
  }
19878
19915
  function w(I) {
19879
- var M, K, P;
19880
- return I && (P = (K = (M = a.value.varVariableCatalogs) == null ? void 0 : M.find((U) => U.var_nam === I)) == null ? void 0 : K.var_text) != null ? P : "";
19916
+ var D, K, P;
19917
+ return I && (P = (K = (D = a.value.varVariableCatalogs) == null ? void 0 : D.find((U) => U.var_nam === I)) == null ? void 0 : K.var_text) != null ? P : "";
19881
19918
  }
19882
- function D() {
19919
+ function M() {
19883
19920
  const I = uniq(
19884
19921
  compact([
19885
- ...a.value.varButtons.map((M) => M.var_nam),
19886
- ...a.value.varGridDetails.map((M) => M.var_nam),
19922
+ ...a.value.varButtons.map((D) => D.var_nam),
19923
+ ...a.value.varGridDetails.map((D) => D.var_nam),
19887
19924
  a.value.varGridMaster.grd_var_nam,
19888
- ...a.value.varProfileDetails.map((M) => M.var_nam),
19925
+ ...a.value.varProfileDetails.map((D) => D.var_nam),
19889
19926
  a.value.varProfileMaster.prf_var_nam,
19890
- ...a.value.varSubmitFields.map((M) => M.var_nam)
19927
+ ...a.value.varSubmitFields.map((D) => D.var_nam)
19891
19928
  ])
19892
19929
  );
19893
19930
  a.value.varContexts = I.map(
19894
- (M) => new VarContext({ frm_id: o.value, var_nam: M, grp_nam: "WMS" })
19931
+ (D) => new VarContext({ frm_id: o.value, var_nam: D, grp_nam: "WMS" })
19895
19932
  ), a.value.varVariableCatalogs = toRaw(
19896
- a.value.varVariableCatalogs.filter((M) => I.includes(M.var_nam))
19933
+ a.value.varVariableCatalogs.filter((D) => I.includes(D.var_nam))
19897
19934
  );
19898
19935
  }
19899
19936
  return {
@@ -20704,8 +20741,8 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
20704
20741
  onItemSelect: T
20705
20742
  }) => {
20706
20743
  const k = m.sort((A, C) => {
20707
- var w, D;
20708
- return ((w = A.srtseq) != null ? w : 0) - ((D = C.srtseq) != null ? D : 0);
20744
+ var w, M;
20745
+ return ((w = A.srtseq) != null ? w : 0) - ((M = C.srtseq) != null ? M : 0);
20709
20746
  });
20710
20747
  return g === "right" && (i.value = k, k.find((A) => A.id === __KG__CREATE_ROW_ID__) || k.push({
20711
20748
  id: __KG__CREATE_ROW_ID__,
@@ -20946,8 +20983,8 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
20946
20983
  onItemSelect: T
20947
20984
  }) => {
20948
20985
  const k = m.sort((A, C) => {
20949
- var w, D;
20950
- return ((w = A.srtseq) != null ? w : 0) - ((D = C.srtseq) != null ? D : 0);
20986
+ var w, M;
20987
+ return ((w = A.srtseq) != null ? w : 0) - ((M = C.srtseq) != null ? M : 0);
20951
20988
  });
20952
20989
  return g === "right" && (i.value = k, k.find((A) => A.id === __KG__CREATE_ROW_ID__) || k.push({
20953
20990
  id: __KG__CREATE_ROW_ID__,
@@ -21187,8 +21224,8 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
21187
21224
  onItemSelect: T
21188
21225
  }) => {
21189
21226
  const k = m.sort((A, C) => {
21190
- var w, D;
21191
- return ((w = A.srtseq) != null ? w : 0) - ((D = C.srtseq) != null ? D : 0);
21227
+ var w, M;
21228
+ return ((w = A.srtseq) != null ? w : 0) - ((M = C.srtseq) != null ? M : 0);
21192
21229
  });
21193
21230
  return g === "right" && (i.value = k, k.find((A) => A.id === __KG__CREATE_ROW_ID__) || k.push({
21194
21231
  id: __KG__CREATE_ROW_ID__,
@@ -21237,7 +21274,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
21237
21274
  n.value !== 1 && (n.value -= 1);
21238
21275
  }
21239
21276
  async function v() {
21240
- var A, C, w, D, I, M;
21277
+ var A, C, w, M, I, D;
21241
21278
  switch (n.value) {
21242
21279
  case 1:
21243
21280
  try {
@@ -21259,7 +21296,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
21259
21296
  break;
21260
21297
  case 4:
21261
21298
  try {
21262
- await ((D = E.value) == null ? void 0 : D.onSubmit()), n.value += 1;
21299
+ await ((M = E.value) == null ? void 0 : M.onSubmit()), n.value += 1;
21263
21300
  } catch {
21264
21301
  }
21265
21302
  break;
@@ -21271,7 +21308,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
21271
21308
  break;
21272
21309
  case 6:
21273
21310
  try {
21274
- await ((M = m.value) == null ? void 0 : M.onSubmit()), n.value += 1;
21311
+ await ((D = m.value) == null ? void 0 : D.onSubmit()), n.value += 1;
21275
21312
  } catch {
21276
21313
  }
21277
21314
  break;
@@ -21282,7 +21319,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
21282
21319
  const A = toRaw(a.getCreateVarDdaQuery);
21283
21320
  A.varButtons.forEach((w) => {
21284
21321
  delete w.id;
21285
- }), console.log(JSON.stringify(A, null, 4));
21322
+ });
21286
21323
  try {
21287
21324
  await ((C = _.value) == null ? void 0 : C.onSubmit()), await Create({
21288
21325
  data: A