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

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.3";
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,
@@ -10403,12 +10406,12 @@ const KgTable$1 = "", getProps$y = () => ({
10403
10406
  default: () => [createVNode(TableSummary.Row, null, {
10404
10407
  default: () => [I.value && createVNode(TableSummary.Cell, {
10405
10408
  index: 0
10406
- }, null), M.value && createVNode(TableSummary.Cell, {
10409
+ }, null), D.value && createVNode(TableSummary.Cell, {
10407
10410
  index: I.value ? 1 : 0
10408
10411
  }, null), u.value.map((G, z) => {
10409
10412
  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
10413
  let le = z;
10411
- return I.value && M.value ? le += 2 : (I.value || M.value) && (le += 1), createVNode(TableSummary.Cell, {
10414
+ return I.value && D.value ? le += 2 : (I.value || D.value) && (le += 1), createVNode(TableSummary.Cell, {
10412
10415
  index: le,
10413
10416
  align: ce
10414
10417
  }, {
@@ -10487,7 +10490,7 @@ const KgTable$1 = "", getProps$y = () => ({
10487
10490
  showSizeChanger: !0,
10488
10491
  showQuickJumper: !1,
10489
10492
  hideOnSinglePage: !1,
10490
- disabled: D.value,
10493
+ disabled: M.value,
10491
10494
  locale: {
10492
10495
  page: ""
10493
10496
  },
@@ -10525,31 +10528,31 @@ const KgTable$1 = "", getProps$y = () => ({
10525
10528
  async function m() {
10526
10529
  var _, y, v, T, k, A, C;
10527
10530
  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 : [];
10531
+ const w = (y = (_ = u.selectedRows) == null ? void 0 : _.value) != null ? y : [], M = (v = w.map((D) => D[E.value])) != null ? v : [];
10529
10532
  await s.store.emit(s.formID, "lookupBeforeOk", {
10530
10533
  var_nam: i,
10531
10534
  isMultiple: !0,
10532
- values: D,
10535
+ values: M,
10533
10536
  rows: w
10534
10537
  }) || (s.store.emit(s.formID, "lookupOk", {
10535
10538
  var_nam: i,
10536
10539
  model: l,
10537
10540
  isMultiple: !0,
10538
- values: D,
10541
+ values: M,
10539
10542
  rows: w
10540
10543
  }), r("update:visible", !1));
10541
10544
  } 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 : "";
10545
+ 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
10546
  await s.store.emit(s.formID, "lookupBeforeOk", {
10544
10547
  var_nam: i,
10545
10548
  isMultiple: !1,
10546
- value: D,
10549
+ value: M,
10547
10550
  row: w
10548
10551
  }) || (s.store.emit(s.formID, "lookupOk", {
10549
10552
  var_nam: i,
10550
10553
  model: l,
10551
10554
  isMultiple: !1,
10552
- value: D,
10555
+ value: M,
10553
10556
  row: w
10554
10557
  }), r("update:visible", !1));
10555
10558
  }
@@ -10818,9 +10821,9 @@ function useKgFormItemSelect() {
10818
10821
  }), m;
10819
10822
  });
10820
10823
  async function E() {
10821
- var A, C, w, D, I, M, K, P;
10824
+ var A, C, w, M, I, D, K, P;
10822
10825
  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 : "";
10826
+ 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
10827
  if (!_ || !v || !T) {
10825
10828
  KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
10826
10829
  frm_id: a.formID,
@@ -10892,22 +10895,22 @@ function useKgFormItemSelect() {
10892
10895
  break;
10893
10896
  case KG_POSSIBILITY_DATA_TYPE.NUMBER:
10894
10897
  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`, {
10898
+ let M = Number(w[_]);
10899
+ Number.isNaN(M) && (M = w[_], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${w[_]} \u8F6C\u6362\u4E3A ${y} \u7C7B\u578B`, {
10897
10900
  frm_id: a.formID,
10898
10901
  var_nam: t,
10899
10902
  VarVariablePossibility: s.value
10900
- })), w[_] = D;
10903
+ })), w[_] = M;
10901
10904
  });
10902
10905
  break;
10903
10906
  case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
10904
10907
  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`, {
10908
+ let M;
10909
+ 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
10910
  frm_id: a.formID,
10908
10911
  var_nam: t,
10909
10912
  VarVariablePossibility: s.value
10910
- })), w[_] = D;
10913
+ })), w[_] = M;
10911
10914
  });
10912
10915
  break;
10913
10916
  }
@@ -10916,9 +10919,9 @@ function useKgFormItemSelect() {
10916
10919
  {
10917
10920
  const w = o;
10918
10921
  if ((C = w.value) != null && C.excludeValues)
10919
- return m.filter((D) => {
10922
+ return m.filter((M) => {
10920
10923
  var I;
10921
- return !((I = w.value.excludeValues) != null && I.includes(D[_]));
10924
+ return !((I = w.value.excludeValues) != null && I.includes(M[_]));
10922
10925
  });
10923
10926
  }
10924
10927
  break;
@@ -11243,7 +11246,7 @@ const KgFormItemRadioGroup = defineComponent({
11243
11246
  switch (await m(), r("kgSelectDatasChange", g.value), e.kgMode) {
11244
11247
  case "multiple": {
11245
11248
  if (Array.isArray(e.value)) {
11246
- const C = e.value.filter((w) => g.value.find((D) => D[d.value] === w));
11249
+ const C = e.value.filter((w) => g.value.find((M) => M[d.value] === w));
11247
11250
  C.length > 0 ? r("update:value", C) : r("update:value", []);
11248
11251
  }
11249
11252
  break;
@@ -11258,34 +11261,34 @@ const KgFormItemRadioGroup = defineComponent({
11258
11261
  switch (e.kgMode) {
11259
11262
  case "multiple": {
11260
11263
  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", {
11264
+ const M = (C = toRaw(g.value.filter((I) => A.includes(I[d.value])))) != null ? C : null;
11265
+ r("kgSelectChange", M), await i.store.emit(i.formID, "selectChange", {
11263
11266
  var_nam: e.kgVarName,
11264
11267
  isMultiple: !0,
11265
11268
  values: A,
11266
- rows: D,
11269
+ rows: M,
11267
11270
  isCreating: s.isCreating.value,
11268
11271
  isUpdating: s.isUpdating.value,
11269
11272
  isCopying: s.isCopying.value,
11270
11273
  isDeleting: s.isDeleting.value,
11271
11274
  model: e.kgContext === KG_FORM_CONTEXT.SEARCH ? o.model : l.model
11272
- }), a.value[`${e.kgVarName}_obj`] = D;
11275
+ }), a.value[`${e.kgVarName}_obj`] = M;
11273
11276
  }
11274
11277
  break;
11275
11278
  }
11276
11279
  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", {
11280
+ const M = (w = toRaw(g.value.find((I) => I[d.value] === A))) != null ? w : null;
11281
+ r("kgSelectChange", M), await i.store.emit(i.formID, "selectChange", {
11279
11282
  var_nam: e.kgVarName,
11280
11283
  isMultiple: !1,
11281
11284
  values: [A],
11282
- rows: [D],
11285
+ rows: [M],
11283
11286
  isCreating: s.isCreating.value,
11284
11287
  isUpdating: s.isUpdating.value,
11285
11288
  isCopying: s.isCopying.value,
11286
11289
  isDeleting: s.isDeleting.value,
11287
11290
  model: e.kgContext === KG_FORM_CONTEXT.SEARCH ? o.model : l.model
11288
- }), a.value[`${e.kgVarName}_obj`] = D;
11291
+ }), a.value[`${e.kgVarName}_obj`] = M;
11289
11292
  break;
11290
11293
  }
11291
11294
  }
@@ -11521,11 +11524,11 @@ const KgFormItem = defineComponent({
11521
11524
  return O = Number(O), new Array(24).fill(0).map((F, H) => H + 1).includes(O) ? O : null;
11522
11525
  }), k = computed(() => {
11523
11526
  var N, x;
11524
- const O = get(D.value, "$el.parentElement");
11527
+ const O = get(M.value, "$el.parentElement");
11525
11528
  if (O && !((N = O.classList) != null && N.contains("ant-row")))
11526
11529
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
11527
11530
  let R = {};
11528
- const V = Math.abs(Number.parseInt((x = get(D.value, "$el.parentElement.style.marginLeft")) != null ? x : "0px"));
11531
+ const V = Math.abs(Number.parseInt((x = get(M.value, "$el.parentElement.style.marginLeft")) != null ? x : "0px"));
11529
11532
  return Number.isNaN(V) || (R = {
11530
11533
  paddingLeft: `${V}px !important`,
11531
11534
  paddingRight: `${V}px !important`
@@ -11594,7 +11597,7 @@ const KgFormItem = defineComponent({
11594
11597
  break;
11595
11598
  }
11596
11599
  return O;
11597
- }), w = computed(() => encodeURIComponent(`${e.kgContext}~${i.formID}~${e.kgVarName}`)), D = ref(null);
11600
+ }), w = computed(() => encodeURIComponent(`${e.kgContext}~${i.formID}~${e.kgVarName}`)), M = ref(null);
11598
11601
  function I() {
11599
11602
  return g.value ? null : createVNode(Form.Item, {
11600
11603
  name: e.kgVarName,
@@ -11602,11 +11605,11 @@ const KgFormItem = defineComponent({
11602
11605
  validateFirst: !0,
11603
11606
  htmlFor: w.value
11604
11607
  }, {
11605
- default: () => createVNode(Fragment, null, [K(), M(), U(), L()]),
11608
+ default: () => createVNode(Fragment, null, [K(), D(), U(), L()]),
11606
11609
  label: () => P()
11607
11610
  });
11608
11611
  }
11609
- function M() {
11612
+ function D() {
11610
11613
  if (isFunction$2(t.control))
11611
11614
  return t.control({
11612
11615
  frm_id: i.formID,
@@ -11706,7 +11709,7 @@ const KgFormItem = defineComponent({
11706
11709
  var R, V;
11707
11710
  let O;
11708
11711
  return i.isRetrieving.value ? null : createVNode(Col, {
11709
- ref: D,
11712
+ ref: M,
11710
11713
  span: v.value,
11711
11714
  class: A.value,
11712
11715
  style: k.value,
@@ -11976,7 +11979,7 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
11976
11979
  dispose(e) {
11977
11980
  if (!e)
11978
11981
  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);
11982
+ this.isLoadingMap.delete(e), this.modelMap.delete(e), this.formRefMap.delete(e), this.rulesMap.delete(e);
11980
11983
  },
11981
11984
  addEventListener(e, t, r) {
11982
11985
  switch (t) {
@@ -12852,7 +12855,7 @@ const getProps$r = () => ({
12852
12855
  inject(DI_KG_VAR__KG_PROPS, null);
12853
12856
  const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = useKgSearch();
12854
12857
  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(() => {
12858
+ 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
12859
  var q, W, X;
12857
12860
  switch (!0) {
12858
12861
  case s.isCreating.value:
@@ -12899,7 +12902,7 @@ const getProps$r = () => ({
12899
12902
  case s.isUpdating.value:
12900
12903
  return (W = C.value) != null ? W : [];
12901
12904
  case s.isCopying.value:
12902
- return (X = D.value) != null ? X : [];
12905
+ return (X = M.value) != null ? X : [];
12903
12906
  case s.isDeleting.value:
12904
12907
  return (ee = I.value) != null ? ee : [];
12905
12908
  }
@@ -13301,9 +13304,9 @@ const getProps$r = () => ({
13301
13304
  }, {
13302
13305
  default: () => [createVNode("div", {
13303
13306
  ref: H
13304
- }, [M.value.length > 0 && createVNode(Row, {
13307
+ }, [D.value.length > 0 && createVNode(Row, {
13305
13308
  gutter: 12
13306
- }, _isSlot$6(q = M.value.map(ye)) ? q : {
13309
+ }, _isSlot$6(q = D.value.map(ye)) ? q : {
13307
13310
  default: () => [q]
13308
13311
  }), K.value.length > 0 && U.value.length > 0 && createVNode(Divider, null, null), P.value.length > 0 && createVNode(Row, {
13309
13312
  gutter: 12
@@ -13351,7 +13354,7 @@ const getProps$r = () => ({
13351
13354
  }, null);
13352
13355
  }
13353
13356
  return onUnmounted(async () => {
13354
- await Z();
13357
+ l.store.dispose(s.formID), await Z();
13355
13358
  }), () => createVNode(Drawer, {
13356
13359
  visible: re.value,
13357
13360
  placement: "right",
@@ -14073,6 +14076,8 @@ function transformVarGridDetails(e) {
14073
14076
  "| \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
14077
  { VarGridDetail: n }
14075
14078
  ), n.fix_right_flg = 0);
14079
+ }), t.forEach((n) => {
14080
+ isNil(n.vis_flg) && (n.vis_flg = 1);
14076
14081
  }), t.forEach((n) => {
14077
14082
  n.width !== null && n.width !== void 0 && n.width !== "auto" && (Number.isNaN(Number(n.width)) || Number(n.width) < 0) && (KgLogger.error(
14078
14083
  `| \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 +14444,8 @@ const useKgVarStore = () => (store$4 || (store$4 = defineStore("KgVar", {
14439
14444
  return KgLogger.error("frm_id \u4E3A\u7A7A."), null;
14440
14445
  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
14446
  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;
14447
+ const o = ((s = this.getVarGridConfig(t)) == null ? void 0 : s.prf_frm_id) || t;
14448
+ r = e.varButtonMap.get(o), a = (i = r == null ? void 0 : r.find((l) => l.typ === KG_BUTTON_TYPE.SEARCH)) != null ? i : null;
14444
14449
  }
14445
14450
  return a;
14446
14451
  };
@@ -14495,13 +14500,20 @@ const useKgVarStore = () => (store$4 || (store$4 = defineStore("KgVar", {
14495
14500
  },
14496
14501
  getCurrentVarProfileMaster(e) {
14497
14502
  return (t) => {
14498
- var a, n;
14503
+ var s, i, o;
14499
14504
  if (!t)
14500
14505
  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;
14506
+ KgLogger.debug(`${t} | KgVarStore | getCurrentVarProfileMaster() | \u6267\u884C\u5F00\u59CB.`);
14507
+ const r = ((s = this.getVarGridConfig(t)) == null ? void 0 : s.prf_frm_id) || t, a = e.varProfileMasterMap.get(r);
14508
+ KgLogger.debug(
14509
+ `${t} | KgVarStore | getCurrentVarProfileMaster() | \u5F53\u524D\u89C6\u56FEID: ${a == null ? void 0 : a.currentVarProfileMasterID}`
14510
+ );
14511
+ const n = (o = (i = a == null ? void 0 : a.varProfileMasters) == null ? void 0 : i.find(
14512
+ (l) => l.id === (a == null ? void 0 : a.currentVarProfileMasterID)
14513
+ )) != null ? o : null;
14514
+ return KgLogger.debug(`${t} | KgVarStore | getCurrentVarProfileMaster() | \u83B7\u53D6\u5230\u4E86\u5F53\u524D\u89C6\u56FE.`, {
14515
+ currentVarProfileMaster: n
14516
+ }), n;
14505
14517
  };
14506
14518
  },
14507
14519
  getCurrentVarProfileMasterID(e) {
@@ -14675,7 +14687,7 @@ const useKgVarStore = () => (store$4 || (store$4 = defineStore("KgVar", {
14675
14687
  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
14688
  },
14677
14689
  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);
14690
+ 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
14691
  },
14680
14692
  async retrieve(e) {
14681
14693
  var t, r, a, n;
@@ -14920,7 +14932,7 @@ function useKgVar(e, t, r = 0) {
14920
14932
  }), onUnmounted(() => {
14921
14933
  i.dispose(s);
14922
14934
  }));
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(() => {
14935
+ 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
14936
  var F, H;
14925
14937
  return (H = (F = P.value) == null ? void 0 : F.varProfileDetails) != null ? H : null;
14926
14938
  }), 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 +14956,9 @@ function useKgVar(e, t, r = 0) {
14944
14956
  varButtonSearch: A,
14945
14957
  varButtonCreate: C,
14946
14958
  varButtonUpdate: w,
14947
- varButtonCopy: D,
14959
+ varButtonCopy: M,
14948
14960
  varButtonDelete: I,
14949
- varProfileMasters: M,
14961
+ varProfileMasters: D,
14950
14962
  currentVarProfileMasterID: K,
14951
14963
  currentVarProfileMaster: P,
14952
14964
  currentVarProfileDetails: U,
@@ -15034,62 +15046,6 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
15034
15046
  class: _.value
15035
15047
  }, [y()]);
15036
15048
  }
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
15049
  });
15094
15050
  let store$3 = null;
15095
15051
  const useKgButtonStore = () => (store$3 || (store$3 = defineStore("KgButton", {
@@ -15114,7 +15070,6 @@ const useKgButtonStore = () => (store$3 || (store$3 = defineStore("KgButton", {
15114
15070
  dispose(e) {
15115
15071
  if (!e)
15116
15072
  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
15073
  },
15119
15074
  addEventListener(e, t, r) {
15120
15075
  switch (t) {
@@ -15308,7 +15263,63 @@ function useKgButton(e) {
15308
15263
  )
15309
15264
  };
15310
15265
  }
15311
- const KgButtonCreate = defineComponent({
15266
+ const getProps$p = () => ({
15267
+ kgButton: Object,
15268
+ kgVarName: String,
15269
+ kgType: String,
15270
+ kgPrimary: { type: Boolean, default: void 0 },
15271
+ kgIcon: String,
15272
+ kgText: String,
15273
+ kgColor: String,
15274
+ kgDisabled: {
15275
+ type: Boolean,
15276
+ default: void 0
15277
+ },
15278
+ kgLoading: Boolean,
15279
+ onKgClick: Function
15280
+ }), KgButtonCopy = defineComponent({
15281
+ name: "KgButtonCopy",
15282
+ props: getProps$p(),
15283
+ inheritAttrs: !1,
15284
+ setup(e, {
15285
+ attrs: t
15286
+ }) {
15287
+ const r = useKg(), a = useKgVar(), n = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
15288
+ var u, d, b, E, g, m, _, y;
15289
+ 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;
15290
+ });
15291
+ async function o() {
15292
+ e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
15293
+ }
15294
+ function l() {
15295
+ return e.kgIcon ? createVNode("span", {
15296
+ class: "anticon"
15297
+ }, [createVNode(Icon, {
15298
+ icon: e.kgIcon
15299
+ }, null)]) : createVNode(CopyOutlined$1, null, null);
15300
+ }
15301
+ function c() {
15302
+ return e.kgText ? e.kgText : r.t("kg.copy");
15303
+ }
15304
+ return () => {
15305
+ var u, d, b, E, g, m;
15306
+ return createVNode(Button, {
15307
+ type: "primary",
15308
+ disabled: i.value,
15309
+ ghost: !e.kgPrimary && !i.value,
15310
+ onClick: o,
15311
+ "kg-id": (u = s.value) == null ? void 0 : u.id,
15312
+ "kg-frm_id": (d = s.value) == null ? void 0 : d.frm_id,
15313
+ "kg-var_nam": (b = s.value) == null ? void 0 : b.var_nam,
15314
+ "kg-cmd": (E = s.value) == null ? void 0 : E.cmd,
15315
+ "kg-permission": (m = (g = s.value) == null ? void 0 : g.permission_code) != null ? m : "",
15316
+ class: t.class
15317
+ }, {
15318
+ default: () => [l(), c()]
15319
+ });
15320
+ };
15321
+ }
15322
+ }), KgButtonCreate = defineComponent({
15312
15323
  name: "KgButtonCreate",
15313
15324
  props: getProps$p(),
15314
15325
  inheritAttrs: !1,
@@ -15318,8 +15329,8 @@ const KgButtonCreate = defineComponent({
15318
15329
  attrs: a
15319
15330
  }) {
15320
15331
  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;
15332
+ var T, k, A, C, w, M, I, D;
15333
+ 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
15334
  }), d = computed(() => !!s.isCreatingRequesting.value);
15324
15335
  async function b() {
15325
15336
  e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
@@ -15341,7 +15352,7 @@ const KgButtonCreate = defineComponent({
15341
15352
  return e.kgText ? e.kgText : n.t("kg.create");
15342
15353
  }
15343
15354
  function y() {
15344
- var T, k, A, C, w, D;
15355
+ var T, k, A, C, w, M;
15345
15356
  return createVNode(Button, {
15346
15357
  type: "primary",
15347
15358
  disabled: u.value,
@@ -15350,7 +15361,7 @@ const KgButtonCreate = defineComponent({
15350
15361
  "kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
15351
15362
  "kg-var_nam": (A = c.value) == null ? void 0 : A.var_nam,
15352
15363
  "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 : "",
15364
+ "kg-permission": (M = (w = c.value) == null ? void 0 : w.permission_code) != null ? M : "",
15354
15365
  class: a.class
15355
15366
  }, {
15356
15367
  default: () => [m(), _()]
@@ -15518,8 +15529,8 @@ const KgButtonCreate = defineComponent({
15518
15529
  ...KgVarUtil.parseRequestParamsToJSON((k = (T = l.value) == null ? void 0 : T.cmd_prm) != null ? k : "")
15519
15530
  }), y;
15520
15531
  }), 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;
15532
+ var y, v, T, k, A, C, w, M;
15533
+ 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
15534
  }), E = ref(!1);
15524
15535
  async function g(y) {
15525
15536
  if (!c.value)
@@ -15694,7 +15705,7 @@ const KgButtonCreate = defineComponent({
15694
15705
  b == null || b.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
15695
15706
  const y = s.selectedRows.value;
15696
15707
  try {
15697
- const D = await httpClient().request({
15708
+ const M = await httpClient().request({
15698
15709
  url: d,
15699
15710
  method: (T = (v = e.kgButton) == null ? void 0 : v.cmd_method) != null ? T : "POST",
15700
15711
  params: KgVarUtil.parseRequestParamsToJSON((A = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? A : ""),
@@ -15702,13 +15713,13 @@ const KgButtonCreate = defineComponent({
15702
15713
  });
15703
15714
  if (((C = e.kgButton) == null ? void 0 : C.reload_all_after_done_flg) === 1) {
15704
15715
  if (((w = e.kgButton) == null ? void 0 : w.re_select_after_reload_flg) !== 0 && s.onAfterSearch(async ({
15705
- datas: M
15716
+ datas: D
15706
15717
  }) => {
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]));
15718
+ 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
15719
  return P.length > 0 && s.store.setSelectedRows(r.formID, P), !1;
15709
15720
  }, !0), await n.store.emit(r.formID, "otherOk", {
15710
15721
  button: e.kgButton,
15711
- data: D
15722
+ data: M
15712
15723
  }))
15713
15724
  return;
15714
15725
  a.search({
@@ -15716,11 +15727,11 @@ const KgButtonCreate = defineComponent({
15716
15727
  });
15717
15728
  } else if (await n.store.emit(r.formID, "otherOk", {
15718
15729
  button: e.kgButton,
15719
- data: D
15730
+ data: M
15720
15731
  }))
15721
15732
  return;
15722
- } catch (D) {
15723
- console.error(D);
15733
+ } catch (M) {
15734
+ console.error(M);
15724
15735
  } finally {
15725
15736
  r.store.setIsOtherRequesting(r.formID, !1), b == null || b.hideLoading();
15726
15737
  }
@@ -15822,8 +15833,8 @@ const KgButtonCreate = defineComponent({
15822
15833
  }
15823
15834
  });
15824
15835
  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;
15836
+ var T, k, A, C, w, M, I, D;
15837
+ 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
15838
  }), d = computed(() => !!s.isUpdatingRequesting.value);
15828
15839
  async function b() {
15829
15840
  e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
@@ -15848,7 +15859,7 @@ const KgButtonCreate = defineComponent({
15848
15859
  return e.kgText ? e.kgText : n.t("kg.update");
15849
15860
  }
15850
15861
  function y() {
15851
- var T, k, A, C, w, D;
15862
+ var T, k, A, C, w, M;
15852
15863
  return createVNode(Button, {
15853
15864
  type: "primary",
15854
15865
  disabled: u.value,
@@ -15858,7 +15869,7 @@ const KgButtonCreate = defineComponent({
15858
15869
  "kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
15859
15870
  "kg-var_nam": (A = c.value) == null ? void 0 : A.var_nam,
15860
15871
  "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 : "",
15872
+ "kg-permission": (M = (w = c.value) == null ? void 0 : w.permission_code) != null ? M : "",
15862
15873
  class: a.class
15863
15874
  }, {
15864
15875
  default: () => [m(), _()]
@@ -16041,7 +16052,9 @@ const getProps$o = () => ({
16041
16052
  })
16042
16053
  });
16043
16054
  }
16044
- return () => createVNode("div", {
16055
+ return onUnmounted(async () => {
16056
+ s.store.dispose(n.formID);
16057
+ }), () => createVNode("div", {
16045
16058
  class: "kg-button",
16046
16059
  "kg-frm_id": n.formID
16047
16060
  }, [createVNode(Spin, {
@@ -16083,8 +16096,8 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
16083
16096
  var a;
16084
16097
  if (!t)
16085
16098
  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);
16099
+ const r = ((a = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : a.prf_frm_id) || t;
16100
+ return !!e.isReadyMap.get(r);
16088
16101
  };
16089
16102
  },
16090
16103
  getModel(e) {
@@ -16130,12 +16143,9 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
16130
16143
  KgLogger.warn("IKgSearchStore.dispose() | formID \u4E3A\u7A7A.");
16131
16144
  return;
16132
16145
  }
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);
16146
+ 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
16147
  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);
16148
+ this.isReadyMap.delete(a), this.modelMap.delete(a), this.operatorModelMap.delete(a), this.searchFnMap.delete(a), this.resetFnMap.delete(a);
16139
16149
  },
16140
16150
  addEventListener(e, t, r) {
16141
16151
  switch (t) {
@@ -16631,7 +16641,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
16631
16641
  row: v,
16632
16642
  model: T
16633
16643
  }) => {
16634
- var A, C, w, D, I;
16644
+ var A, C, w, M, I;
16635
16645
  const k = r.store.getSystemVarProfileDetails(r.formID);
16636
16646
  switch (l.value = k ? cloneDeep(toRaw(unref(k))) : [], !0) {
16637
16647
  case m: {
@@ -16643,24 +16653,24 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
16643
16653
  if (v != null && v.id)
16644
16654
  try {
16645
16655
  o.store.setIsLoading(a.formID, !0);
16646
- const M = await QueryByID({
16656
+ const D = await QueryByID({
16647
16657
  params: {
16648
16658
  id: v.id
16649
16659
  }
16650
16660
  });
16651
16661
  l.value = l.value.map((P) => {
16652
16662
  var L;
16653
- const U = (L = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : L.find((O) => O.var_nam === P.var_nam);
16663
+ const U = (L = D == null ? void 0 : D.varProfileDetails) == null ? void 0 : L.find((O) => O.var_nam === P.var_nam);
16654
16664
  return U ? {
16655
16665
  ...P,
16656
16666
  ...U,
16657
16667
  id: P.id
16658
16668
  } : P;
16659
16669
  });
16660
- const K = (C = (A = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : A.map((P) => P.var_nam)) != null ? C : [];
16670
+ const K = (C = (A = D == null ? void 0 : D.varProfileDetails) == null ? void 0 : A.map((P) => P.var_nam)) != null ? C : [];
16661
16671
  c.value = l.value.filter((P) => K.includes(P.var_nam)).map((P) => P.id);
16662
- } catch (M) {
16663
- throw M;
16672
+ } catch (D) {
16673
+ throw D;
16664
16674
  } finally {
16665
16675
  o.store.setIsLoading(a.formID, !1);
16666
16676
  }
@@ -16671,7 +16681,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
16671
16681
  }
16672
16682
  switch (!0) {
16673
16683
  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";
16684
+ 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
16685
  break;
16676
16686
  }
16677
16687
  }
@@ -16742,9 +16752,9 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
16742
16752
  onItemSelect: k
16743
16753
  }) => {
16744
16754
  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);
16755
+ const A = _.sort((M, I) => {
16756
+ var D, K;
16757
+ return ((D = M.srtseq) != null ? D : 0) - ((K = I.srtseq) != null ? K : 0);
16748
16758
  });
16749
16759
  return m === "right" && (u.value = A), createVNode(Table, {
16750
16760
  pagination: !1,
@@ -16757,11 +16767,11 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
16757
16767
  columns: m === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
16758
16768
  rowKey: "id",
16759
16769
  dataSource: A,
16760
- customRow: (D) => {
16770
+ customRow: (M) => {
16761
16771
  let I = {
16762
- onClick: (M) => g(M, D, m, y)
16772
+ onClick: (D) => g(D, M, m, y)
16763
16773
  };
16764
- return m === "right" && (I["kg-host-frm_id"] = r.formID, I["kg-var_nam"] = D.var_nam), I;
16774
+ return m === "right" && (I["kg-host-frm_id"] = r.formID, I["kg-var_nam"] = M.var_nam), I;
16765
16775
  },
16766
16776
  rowSelection: E({
16767
16777
  disabled: v,
@@ -17008,7 +17018,7 @@ const KgSearch$1 = "", getProps$j = () => ({
17008
17018
  var $, F, H;
17009
17019
  if (n.t(($ = n.varButtonSearch.value) == null ? void 0 : $.var_nam).value !== ((F = n.varButtonSearch.value) == null ? void 0 : F.var_nam))
17010
17020
  return n.t((H = n.varButtonSearch.value) == null ? void 0 : H.var_nam).value;
17011
- }), D = computed(() => {
17021
+ }), M = computed(() => {
17012
17022
  var $;
17013
17023
  switch (($ = n.varButtonSearch.value) == null ? void 0 : $.primary_flg) {
17014
17024
  case 1:
@@ -17018,7 +17028,7 @@ const KgSearch$1 = "", getProps$j = () => ({
17018
17028
  default:
17019
17029
  return !0;
17020
17030
  }
17021
- }), I = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), M = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), K = computed(() => {
17031
+ }), I = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), D = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), K = computed(() => {
17022
17032
  let $ = "kg-search";
17023
17033
  return o.value && ($ += " kg-search--visible"), c.value && ($ += " kg-search--teleport"), $;
17024
17034
  });
@@ -17099,7 +17109,7 @@ const KgSearch$1 = "", getProps$j = () => ({
17099
17109
  class: "kg-search-profile-master-btn"
17100
17110
  }, {
17101
17111
  default: () => [createVNode(SettingOutlined$1, null, null)]
17102
- }), createVNode(KgSearchConfigModal, {
17112
+ }), A.value.visible && createVNode(KgSearchConfigModal, {
17103
17113
  visible: A.value.visible,
17104
17114
  "onUpdate:visible": (J) => A.value.visible = J,
17105
17115
  hostFormID: n.formID
@@ -17121,7 +17131,7 @@ const KgSearch$1 = "", getProps$j = () => ({
17121
17131
  kgIcon: (F = n.varButtonSearch.value) == null ? void 0 : F.icon,
17122
17132
  kgText: w.value,
17123
17133
  kgColor: (H = n.varButtonSearch.value) == null ? void 0 : H.color,
17124
- kgPrimary: D.value,
17134
+ kgPrimary: M.value,
17125
17135
  kgDisabled: v.value,
17126
17136
  kgLoading: k.value,
17127
17137
  onKgClick: L
@@ -17129,7 +17139,7 @@ const KgSearch$1 = "", getProps$j = () => ({
17129
17139
  }
17130
17140
  function N() {
17131
17141
  return createVNode(Spin, {
17132
- spinning: M.value
17142
+ spinning: D.value
17133
17143
  }, {
17134
17144
  default: () => {
17135
17145
  var $;
@@ -17159,7 +17169,9 @@ const KgSearch$1 = "", getProps$j = () => ({
17159
17169
  function x() {
17160
17170
  C.value ? m.value.kgHeight = u.value : m.value.kgHeight = b.value;
17161
17171
  }
17162
- return () => createVNode(KgResizable, {
17172
+ return onUnmounted(async () => {
17173
+ s.store.dispose(n.formID);
17174
+ }), () => createVNode(KgResizable, {
17163
17175
  ref: E,
17164
17176
  kgHeight: m.value.kgHeight,
17165
17177
  "onUpdate:kgHeight": ($) => m.value.kgHeight = $,
@@ -17694,14 +17706,14 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17694
17706
  }
17695
17707
  }) : (a.setSelectedVarCatalog(unref(P)), d.value = [P.id]));
17696
17708
  }
17697
- function D() {
17709
+ function M() {
17698
17710
  E.value.visible = !0;
17699
17711
  }
17700
17712
  function I() {
17701
17713
  return createVNode("div", {
17702
17714
  class: "buttons"
17703
17715
  }, [createVNode(Button, {
17704
- onClick: D,
17716
+ onClick: M,
17705
17717
  disabled: g.value,
17706
17718
  type: "primary"
17707
17719
  }, {
@@ -17716,7 +17728,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17716
17728
  default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
17717
17729
  })]);
17718
17730
  }
17719
- function M() {
17731
+ function D() {
17720
17732
  let P, U;
17721
17733
  return createVNode("div", {
17722
17734
  class: "form"
@@ -17780,7 +17792,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
17780
17792
  customRow: (P) => ({
17781
17793
  onClick: () => w(P)
17782
17794
  })
17783
- }, null), M(), createVNode(KgVarConfigModalVarCreateModal, {
17795
+ }, null), D(), createVNode(KgVarConfigModalVarCreateModal, {
17784
17796
  visible: E.value.visible,
17785
17797
  "onUpdate:visible": (P) => E.value.visible = P,
17786
17798
  onKgOk: k
@@ -18017,16 +18029,23 @@ const useKgWarehouseStore = (e) => (store || (store = defineStore("KgWarehouse",
18017
18029
  return this.visible;
18018
18030
  },
18019
18031
  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
- }
18032
+ var a, n, s, i, o, l, c, u;
18033
+ const t = useKg();
18034
+ let r = this.warehouse;
18035
+ if (!r && ((a = t.option.value.KgWarehouse) == null ? void 0 : a.on) === !1) {
18036
+ const d = (n = t.option.value.KgWarehouse) == null ? void 0 : n.defaultWarehouseID;
18037
+ return d ? { whId: d } : null;
18038
+ }
18039
+ if (!r) {
18040
+ const d = store_legacy.get(LOCAL_STORAGE_KEY, null);
18041
+ if (isNil(d))
18042
+ return null;
18043
+ if (!isArray$1(d))
18044
+ return store_legacy.set(LOCAL_STORAGE_KEY, []), null;
18045
+ 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;
18046
+ r = (u = (c = d.find((E) => E.username === b)) == null ? void 0 : c.warehouse) != null ? u : null;
18028
18047
  }
18029
- return t;
18048
+ return r;
18030
18049
  }
18031
18050
  },
18032
18051
  actions: {
@@ -18058,12 +18077,17 @@ const useKgWarehouseStore = (e) => (store || (store = defineStore("KgWarehouse",
18058
18077
  this.visible = t;
18059
18078
  },
18060
18079
  setWarehouse(t) {
18061
- if (!t) {
18062
- this.warehouse = null, store_legacy.set(LOCAL_STORAGE_KEY, null);
18063
- return;
18080
+ var i, o, l, c;
18081
+ 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;
18082
+ let n = store_legacy.get(LOCAL_STORAGE_KEY, null);
18083
+ isArray$1(n) || (n = [], store_legacy.set(LOCAL_STORAGE_KEY, []));
18084
+ const s = n.find((u) => u.username === a);
18085
+ if (!t)
18086
+ this.warehouse = null, s && (s.warehouse = null, store_legacy.set(LOCAL_STORAGE_KEY, n));
18087
+ else {
18088
+ const u = toRaw(unref(t));
18089
+ this.warehouse = u, s ? s.warehouse = u : n.push({ username: a, warehouse: u }), store_legacy.set(LOCAL_STORAGE_KEY, n);
18064
18090
  }
18065
- const r = toRaw(unref(t));
18066
- this.warehouse = r, store_legacy.set(LOCAL_STORAGE_KEY, r);
18067
18091
  }
18068
18092
  }
18069
18093
  }).bind(null, e != null ? e : getPinia())), store);
@@ -18112,18 +18136,18 @@ const KgWarehouse$1 = "", getProps$a = () => ({
18112
18136
  customRender: ({
18113
18137
  record: k
18114
18138
  }) => {
18115
- var C, w, D;
18139
+ var C, w, M;
18116
18140
  const A = k;
18117
18141
  return createVNode("div", null, [createVNode("div", null, [(C = A.whDsc) != null ? C : " ", createTextVNode(" - "), (w = A.whId) != null ? w : " "]), createVNode("div", {
18118
18142
  class: "address"
18119
- }, [(D = A.adrnam) != null ? D : " "])]);
18143
+ }, [(M = A.adrnam) != null ? M : " "])]);
18120
18144
  }
18121
18145
  }]), c = ref([]), u = computed(() => {
18122
18146
  var A;
18123
18147
  const k = (A = s.value) == null ? void 0 : A.toUpperCase();
18124
18148
  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));
18149
+ var w, M, I, D, K, P;
18150
+ 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
18151
  });
18128
18152
  }), d = computed(() => {
18129
18153
  var k;
@@ -18260,32 +18284,42 @@ const KgWarehouse$1 = "", getProps$a = () => ({
18260
18284
  });
18261
18285
  function createKgWarehouseGuard(e, t) {
18262
18286
  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.`);
18287
+ var s;
18288
+ const a = useKg(t);
18289
+ if (((s = a.option.value.KgWarehouse) == null ? void 0 : s.on) === !1)
18290
+ return KgLogger.debug(`createKgWarehouseGuard() | ${r.path} | \u6CA1\u6709\u542F\u7528\u4ED3\u5E93\u9009\u62E9\u529F\u80FD.`), !0;
18291
+ if (r.path === "/login") {
18292
+ KgLogger.debug(`createKgWarehouseGuard() | ${r.path} | \u767B\u5F55\u9875\u9762.`);
18269
18293
  return;
18270
18294
  }
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}`);
18295
+ const n = useKgWarehouse(t);
18296
+ return n.onMounted(() => {
18297
+ var o, l, c, u, d, b;
18298
+ const i = (l = (o = a.store).getUseUserStore) == null ? void 0 : l.call(o);
18299
+ if (r.path === "/login") {
18300
+ KgLogger.debug(`createKgWarehouseGuard() | ${r.path} | \u767B\u5F55\u9875\u9762.`);
18277
18301
  return;
18278
18302
  }
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(
18303
+ if (!((c = i == null ? void 0 : i.getUserInfo) != null && c.username)) {
18304
+ KgLogger.debug(`createKgWarehouseGuard() | ${r.path} | \u5C1A\u672A\u767B\u5F55.`);
18305
+ return;
18306
+ }
18307
+ if (n.warehouse.value) {
18308
+ KgLogger.debug(`createKgWarehouseGuard() | ${r.path} | \u4ED3\u5E93\u5DF2\u9009: ${n.warehouse.value.whId}`);
18309
+ return;
18310
+ }
18311
+ if (((u = i == null ? void 0 : i.getUserWarehouses) == null ? void 0 : u.length) === 1) {
18312
+ const E = (d = i.getUserWarehouses) == null ? void 0 : d[0];
18313
+ n.store.setWarehouse(
18282
18314
  new WhDTO({ whId: E.wh_id, whDsc: E.wh_dsc })
18283
- ), KgLogger.debug(`createKgWarehouseGuard() | ${a} | \u9009\u62E9\u552F\u4E00\u4ED3\u5E93: ${E.wh_id}`);
18315
+ ), KgLogger.debug(`createKgWarehouseGuard() | ${r.path} | \u9009\u62E9\u552F\u4E00\u4ED3\u5E93: ${E.wh_id}`);
18284
18316
  } 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(
18317
+ const E = (b = i == null ? void 0 : i.getUserWarehouses) == null ? void 0 : b.find((g) => g.default_flag === 1);
18318
+ E ? (n.store.setWarehouse(
18287
18319
  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.`));
18320
+ ), KgLogger.debug(
18321
+ `createKgWarehouseGuard() | ${r.path} | \u9009\u62E9\u9ED8\u8BA4\u4ED3\u5E93: ${E.wh_id}`
18322
+ )) : (n.store.setVisible(!0), KgLogger.debug(`createKgWarehouseGuard() | ${r.path} | \u6253\u5F00\u4ED3\u5E93\u9009\u62E9\u5F39\u7A97.`));
18289
18323
  }
18290
18324
  }), !0;
18291
18325
  });
@@ -18403,68 +18437,68 @@ class KgUtil {
18403
18437
  let y = c == null ? void 0 : c[g];
18404
18438
  (((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
18439
  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) {
18440
+ 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
18441
  case g.endsWith("_obj"): {
18408
18442
  u[g] = void 0, delete u[g];
18409
18443
  break;
18410
18444
  }
18411
18445
  case (!!n && n.isDayjs(_)): {
18412
- const D = _;
18413
- let I = r ? this.parseParamFromDayJS(g, D, r) : D.format("YYYY-MM-DD HH:mm:ss");
18446
+ const M = _;
18447
+ let I = r ? this.parseParamFromDayJS(g, M, r) : M.format("YYYY-MM-DD HH:mm:ss");
18414
18448
  switch (y) {
18415
18449
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
18416
- let M = I, K = "";
18450
+ let D = I, K = "";
18417
18451
  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");
18452
+ case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(D): {
18453
+ K = M.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
18420
18454
  break;
18421
18455
  }
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");
18456
+ case /\d\d-\d\d-\d\d/.test(D): {
18457
+ D = `${D} 00:00:00`, K = M.add(1, "day").format("YYYY-MM-DD 00:00:00");
18424
18458
  break;
18425
18459
  }
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");
18460
+ case /\d\d:\d\d:\d\d/.test(D): {
18461
+ D = M.format("1900-01-01 HH:mm:ss"), K = M.add(1, "second").format("1900-01-01 HH:mm:ss");
18428
18462
  break;
18429
18463
  }
18430
18464
  default:
18431
18465
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
18432
18466
  }
18433
- I = ` AND (${v} < '${M}' OR ${v} >= '${K}')`;
18467
+ I = ` AND (${v} < '${D}' OR ${v} >= '${K}')`;
18434
18468
  break;
18435
18469
  }
18436
18470
  case KG_DYNAMIC_QUERY_OPERATOR.LT: {
18437
- let M = I;
18471
+ let D = I;
18438
18472
  switch (!0) {
18439
- case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M):
18473
+ case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(D):
18440
18474
  break;
18441
- case /\d\d-\d\d-\d\d/.test(M): {
18442
- M = `${M} 00:00:00`;
18475
+ case /\d\d-\d\d-\d\d/.test(D): {
18476
+ D = `${D} 00:00:00`;
18443
18477
  break;
18444
18478
  }
18445
- case /\d\d:\d\d:\d\d/.test(M): {
18446
- M = `1900-01-01 ${M}`;
18479
+ case /\d\d:\d\d:\d\d/.test(D): {
18480
+ D = `1900-01-01 ${D}`;
18447
18481
  break;
18448
18482
  }
18449
18483
  default:
18450
18484
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
18451
18485
  }
18452
- I = ` AND (${v} < '${M}')`;
18486
+ I = ` AND (${v} < '${D}')`;
18453
18487
  break;
18454
18488
  }
18455
18489
  case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
18456
- let M = I, K = "";
18490
+ let D = I, K = "";
18457
18491
  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");
18492
+ case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(D): {
18493
+ K = M.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
18460
18494
  break;
18461
18495
  }
18462
- case /\d\d-\d\d-\d\d/.test(M): {
18463
- K = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
18496
+ case /\d\d-\d\d-\d\d/.test(D): {
18497
+ K = M.add(1, "day").format("YYYY-MM-DD 00:00:00");
18464
18498
  break;
18465
18499
  }
18466
- case /\d\d:\d\d:\d\d/.test(M): {
18467
- K = D.add(1, "second").format("1900-01-01 HH:mm:ss");
18500
+ case /\d\d:\d\d:\d\d/.test(D): {
18501
+ K = M.add(1, "second").format("1900-01-01 HH:mm:ss");
18468
18502
  break;
18469
18503
  }
18470
18504
  default:
@@ -18474,18 +18508,18 @@ class KgUtil {
18474
18508
  break;
18475
18509
  }
18476
18510
  case KG_DYNAMIC_QUERY_OPERATOR.GT: {
18477
- let M = I, K = "";
18511
+ let D = I, K = "";
18478
18512
  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");
18513
+ case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(D): {
18514
+ K = M.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
18481
18515
  break;
18482
18516
  }
18483
- case /\d\d-\d\d-\d\d/.test(M): {
18484
- K = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
18517
+ case /\d\d-\d\d-\d\d/.test(D): {
18518
+ K = M.add(1, "day").format("YYYY-MM-DD 00:00:00");
18485
18519
  break;
18486
18520
  }
18487
- case /\d\d:\d\d:\d\d/.test(M): {
18488
- K = D.add(1, "second").format("1900-01-01 HH:mm:ss");
18521
+ case /\d\d:\d\d:\d\d/.test(D): {
18522
+ K = M.add(1, "second").format("1900-01-01 HH:mm:ss");
18489
18523
  break;
18490
18524
  }
18491
18525
  default:
@@ -18495,44 +18529,44 @@ class KgUtil {
18495
18529
  break;
18496
18530
  }
18497
18531
  case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
18498
- let M = I;
18532
+ let D = I;
18499
18533
  switch (!0) {
18500
- case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M):
18534
+ case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(D):
18501
18535
  break;
18502
- case /\d\d-\d\d-\d\d/.test(M): {
18503
- M = `${M} 00:00:00`;
18536
+ case /\d\d-\d\d-\d\d/.test(D): {
18537
+ D = `${D} 00:00:00`;
18504
18538
  break;
18505
18539
  }
18506
- case /\d\d:\d\d:\d\d/.test(M): {
18507
- M = `1900-01-01 ${M}`;
18540
+ case /\d\d:\d\d:\d\d/.test(D): {
18541
+ D = `1900-01-01 ${D}`;
18508
18542
  break;
18509
18543
  }
18510
18544
  default:
18511
18545
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
18512
18546
  }
18513
- I = ` AND (${v} >= '${M}')`;
18547
+ I = ` AND (${v} >= '${D}')`;
18514
18548
  break;
18515
18549
  }
18516
18550
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
18517
18551
  default: {
18518
- let M = I, K = "";
18552
+ let D = I, K = "";
18519
18553
  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");
18554
+ case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(D): {
18555
+ K = M.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
18522
18556
  break;
18523
18557
  }
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");
18558
+ case /\d\d-\d\d-\d\d/.test(D): {
18559
+ D = `${D} 00:00:00`, K = M.add(1, "day").format("YYYY-MM-DD 00:00:00");
18526
18560
  break;
18527
18561
  }
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");
18562
+ case /\d\d:\d\d:\d\d/.test(D): {
18563
+ D = `1900-01-01 ${D}`, K = M.add(1, "second").format("1900-01-01 HH:mm:ss");
18530
18564
  break;
18531
18565
  }
18532
18566
  default:
18533
18567
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
18534
18568
  }
18535
- I = ` AND (${v} >= '${M}' AND ${v} < '${K}')`;
18569
+ I = ` AND (${v} >= '${D}' AND ${v} < '${K}')`;
18536
18570
  break;
18537
18571
  }
18538
18572
  }
@@ -18540,23 +18574,27 @@ class KgUtil {
18540
18574
  break;
18541
18575
  }
18542
18576
  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 = "";
18577
+ const M = _[0], I = _[1];
18578
+ let D = "", K = this.parseParamFromDayJS(g, M, r), P = "";
18545
18579
  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");
18580
+ case !K: {
18581
+ P = this.parseParamFromDayJS(g, I, r, !0);
18582
+ break;
18583
+ }
18584
+ case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(K): {
18585
+ I.isValid() && (P = I.add(1, "second").format("YYYY-MM-DD HH:mm:ss"));
18548
18586
  break;
18549
18587
  }
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");
18588
+ case /\d\d-\d\d-\d\d/.test(K): {
18589
+ K = `${K} 00:00:00`, I.isValid() && (P = I.add(1, "day").format("YYYY-MM-DD 00:00:00"));
18552
18590
  break;
18553
18591
  }
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");
18592
+ case /\d\d:\d\d:\d\d/.test(K): {
18593
+ K = `1900-01-01 ${K}`, I.isValid() && (P = I.add(1, "second").format("1900-01-01 HH:mm:ss"));
18556
18594
  break;
18557
18595
  }
18558
18596
  }
18559
- K ? P = ` AND (${v} >= '${M}' AND ${v} < '${K}')` : P = ` AND (${v} >= '${M}')`, u[g] = P;
18597
+ K && (D += ` AND (${v} >= N'${K}')`), P && (D += ` AND (${v} < N'${P}')`), u[g] = D;
18560
18598
  break;
18561
18599
  }
18562
18600
  case Array.isArray(_): {
@@ -18564,8 +18602,8 @@ class KgUtil {
18564
18602
  u[g] = void 0;
18565
18603
  break;
18566
18604
  }
18567
- const D = _.map((I) => `N'${String(I)}'`).join(", ");
18568
- u[g] = ` AND (${v} IN (${D}))`;
18605
+ const M = _.map((I) => `N'${String(I)}'`).join(", ");
18606
+ u[g] = ` AND (${v} IN (${M}))`;
18569
18607
  break;
18570
18608
  }
18571
18609
  case isObjectLike(_):
@@ -18575,79 +18613,79 @@ class KgUtil {
18575
18613
  u[g] = void 0;
18576
18614
  break;
18577
18615
  }
18578
- let D = this.parseParamFromString(_);
18616
+ let M = this.parseParamFromString(_);
18579
18617
  switch (y) {
18580
18618
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
18581
- D = ` AND (${v} <> N'${D}')`;
18619
+ M = ` AND (${v} <> N'${M}')`;
18582
18620
  break;
18583
18621
  }
18584
18622
  case KG_DYNAMIC_QUERY_OPERATOR.START_WITH: {
18585
- D = ` AND (${v} LIKE N'${D}%')`;
18623
+ M = ` AND (${v} LIKE N'${M}%')`;
18586
18624
  break;
18587
18625
  }
18588
18626
  case KG_DYNAMIC_QUERY_OPERATOR.END_WITH: {
18589
- D = ` AND (${v} LIKE N'%${D}')`;
18627
+ M = ` AND (${v} LIKE N'%${M}')`;
18590
18628
  break;
18591
18629
  }
18592
18630
  case KG_DYNAMIC_QUERY_OPERATOR.CONTAIN: {
18593
- D = ` AND (${v} LIKE N'%${D}%')`;
18631
+ M = ` AND (${v} LIKE N'%${M}%')`;
18594
18632
  break;
18595
18633
  }
18596
18634
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
18597
18635
  default: {
18598
- D = ` AND (${v} = N'${D}')`;
18636
+ M = ` AND (${v} = N'${M}')`;
18599
18637
  break;
18600
18638
  }
18601
18639
  }
18602
- u[g] = D;
18640
+ u[g] = M;
18603
18641
  break;
18604
18642
  }
18605
18643
  case typeof _ == "number": {
18606
- let D = "";
18644
+ let M = "";
18607
18645
  switch (y) {
18608
18646
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
18609
- D = ` AND (${v} <> ${_})`;
18647
+ M = ` AND (${v} <> ${_})`;
18610
18648
  break;
18611
18649
  }
18612
18650
  case KG_DYNAMIC_QUERY_OPERATOR.LT: {
18613
- D = ` AND (${v} < ${_})`;
18651
+ M = ` AND (${v} < ${_})`;
18614
18652
  break;
18615
18653
  }
18616
18654
  case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
18617
- D = ` AND (${v} <= ${_})`;
18655
+ M = ` AND (${v} <= ${_})`;
18618
18656
  break;
18619
18657
  }
18620
18658
  case KG_DYNAMIC_QUERY_OPERATOR.GT: {
18621
- D = ` AND (${v} > ${_})`;
18659
+ M = ` AND (${v} > ${_})`;
18622
18660
  break;
18623
18661
  }
18624
18662
  case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
18625
- D = ` AND (${v} >= ${_})`;
18663
+ M = ` AND (${v} >= ${_})`;
18626
18664
  break;
18627
18665
  }
18628
18666
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
18629
18667
  default: {
18630
- D = ` AND (${v} = ${_})`;
18668
+ M = ` AND (${v} = ${_})`;
18631
18669
  break;
18632
18670
  }
18633
18671
  }
18634
- u[g] = D;
18672
+ u[g] = M;
18635
18673
  break;
18636
18674
  }
18637
18675
  case typeof _ == "boolean": {
18638
- let D = "";
18676
+ let M = "";
18639
18677
  switch (y) {
18640
18678
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
18641
- D = ` AND (${v} <> ${_ ? 1 : 0})`;
18679
+ M = ` AND (${v} <> ${_ ? 1 : 0})`;
18642
18680
  break;
18643
18681
  }
18644
18682
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
18645
18683
  default: {
18646
- D = ` AND (${v} = ${_ ? 1 : 0})`;
18684
+ M = ` AND (${v} = ${_ ? 1 : 0})`;
18647
18685
  break;
18648
18686
  }
18649
18687
  }
18650
- u[g] = D;
18688
+ u[g] = M;
18651
18689
  break;
18652
18690
  }
18653
18691
  default: {
@@ -19774,26 +19812,26 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
19774
19812
  r.value = I != null ? I : [];
19775
19813
  }
19776
19814
  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);
19815
+ 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
19816
  }
19779
19817
  function b(I) {
19780
- const { properties: M = {} } = I;
19781
- Object.entries(M).forEach(([K, P]) => {
19818
+ const { properties: D = {} } = I;
19819
+ Object.entries(D).forEach(([K, P]) => {
19782
19820
  K in a.value.sysPermission && a.value.sysPermission[K] !== P && (a.value.sysPermission[K] = P);
19783
19821
  });
19784
19822
  }
19785
19823
  function E(I) {
19786
- const { frmId: M, frmNam: K } = I;
19787
- a.value.varDda.frm_id = M, a.value.varDda.frm_nam = K;
19824
+ const { frmId: D, frmNam: K } = I;
19825
+ a.value.varDda.frm_id = D, a.value.varDda.frm_nam = K;
19788
19826
  }
19789
19827
  function g(I) {
19790
19828
  a.value.varButtons = [
19791
19829
  ...toRaw(a.value.varButtons),
19792
19830
  { ...I, ena_flg: 1, frm_id: o.value, id: `${Date.now()}`, show_success_message_flg: 1 }
19793
- ], D();
19831
+ ], M();
19794
19832
  }
19795
19833
  function m(I) {
19796
- const { varNam: M, properties: K = {} } = I, P = a.value.varButtons.find((O) => O.var_nam === M);
19834
+ const { varNam: D, properties: K = {} } = I, P = a.value.varButtons.find((O) => O.var_nam === D);
19797
19835
  if (!P)
19798
19836
  return;
19799
19837
  let U = !1;
@@ -19805,17 +19843,17 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
19805
19843
  L.splice(a.value.varButtons.indexOf(P), 1, { ...P }), a.value.varButtons = toRaw(L);
19806
19844
  }
19807
19845
  function _(I) {
19808
- const { varNam: M } = I, K = a.value.varButtons.find((U) => U.var_nam === M);
19846
+ const { varNam: D } = I, K = a.value.varButtons.find((U) => U.var_nam === D);
19809
19847
  if (!K)
19810
19848
  return;
19811
19849
  const P = [...a.value.varButtons];
19812
- P.splice(a.value.varButtons.indexOf(K), 1), a.value.varButtons = toRaw(P), D();
19850
+ P.splice(a.value.varButtons.indexOf(K), 1), a.value.varButtons = toRaw(P), M();
19813
19851
  }
19814
19852
  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 });
19853
+ const { varNam: D, varText: K } = I;
19854
+ if (!!D) {
19855
+ if (a.value.varVariableCatalogs.find((P) => P.var_nam === D)) {
19856
+ v({ varNam: D, varText: K });
19819
19857
  return;
19820
19858
  }
19821
19859
  a.value.varVariableCatalogs = [
@@ -19825,36 +19863,36 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
19825
19863
  frm_id: o.value,
19826
19864
  grp_nam: "WMS",
19827
19865
  locale_id: e.locale.value,
19828
- var_nam: M,
19829
- var_text: K || M
19866
+ var_nam: D,
19867
+ var_text: K || D
19830
19868
  }
19831
- ], D();
19869
+ ], M();
19832
19870
  }
19833
19871
  }
19834
19872
  function v(I) {
19835
- const { varNam: M, varText: K } = I;
19836
- if (!M)
19873
+ const { varNam: D, varText: K } = I;
19874
+ if (!D)
19837
19875
  return;
19838
- const P = a.value.varVariableCatalogs.find((U) => U.var_nam === M);
19839
- !P || (P.var_text = K || M);
19876
+ const P = a.value.varVariableCatalogs.find((U) => U.var_nam === D);
19877
+ !P || (P.var_text = K || D);
19840
19878
  }
19841
19879
  function T(I) {
19842
- a.value.varProfileDetails = I.map((M) => ({
19843
- ...M,
19880
+ a.value.varProfileDetails = I.map((D) => ({
19881
+ ...D,
19844
19882
  frm_id: o.value,
19845
19883
  grp_nam: "WMS"
19846
19884
  }));
19847
19885
  }
19848
19886
  function k(I) {
19849
- a.value.varGridDetails = I.map((M) => ({
19850
- ...M,
19887
+ a.value.varGridDetails = I.map((D) => ({
19888
+ ...D,
19851
19889
  frm_id: o.value,
19852
19890
  grp_nam: "WMS"
19853
19891
  }));
19854
19892
  }
19855
19893
  function A(I) {
19856
- a.value.varSubmitFields = I.map((M) => ({
19857
- ...M,
19894
+ a.value.varSubmitFields = I.map((D) => ({
19895
+ ...D,
19858
19896
  crt_ena_flg: 1,
19859
19897
  crt_flg: 1,
19860
19898
  crt_vis_flg: 1,
@@ -19866,8 +19904,8 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
19866
19904
  }));
19867
19905
  }
19868
19906
  function C(I) {
19869
- a.value.varVariableConfigs = I.map((M) => ({
19870
- ...M,
19907
+ a.value.varVariableConfigs = I.map((D) => ({
19908
+ ...D,
19871
19909
  ctrl_typ: KG_FORM_ITEM_TYPE.INPUT,
19872
19910
  cust_lvl: KG_CUSTOM_LEVEL.L0,
19873
19911
  frm_id: o.value,
@@ -19876,24 +19914,24 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
19876
19914
  }));
19877
19915
  }
19878
19916
  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 : "";
19917
+ var D, K, P;
19918
+ 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
19919
  }
19882
- function D() {
19920
+ function M() {
19883
19921
  const I = uniq(
19884
19922
  compact([
19885
- ...a.value.varButtons.map((M) => M.var_nam),
19886
- ...a.value.varGridDetails.map((M) => M.var_nam),
19923
+ ...a.value.varButtons.map((D) => D.var_nam),
19924
+ ...a.value.varGridDetails.map((D) => D.var_nam),
19887
19925
  a.value.varGridMaster.grd_var_nam,
19888
- ...a.value.varProfileDetails.map((M) => M.var_nam),
19926
+ ...a.value.varProfileDetails.map((D) => D.var_nam),
19889
19927
  a.value.varProfileMaster.prf_var_nam,
19890
- ...a.value.varSubmitFields.map((M) => M.var_nam)
19928
+ ...a.value.varSubmitFields.map((D) => D.var_nam)
19891
19929
  ])
19892
19930
  );
19893
19931
  a.value.varContexts = I.map(
19894
- (M) => new VarContext({ frm_id: o.value, var_nam: M, grp_nam: "WMS" })
19932
+ (D) => new VarContext({ frm_id: o.value, var_nam: D, grp_nam: "WMS" })
19895
19933
  ), a.value.varVariableCatalogs = toRaw(
19896
- a.value.varVariableCatalogs.filter((M) => I.includes(M.var_nam))
19934
+ a.value.varVariableCatalogs.filter((D) => I.includes(D.var_nam))
19897
19935
  );
19898
19936
  }
19899
19937
  return {
@@ -20704,8 +20742,8 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
20704
20742
  onItemSelect: T
20705
20743
  }) => {
20706
20744
  const k = m.sort((A, C) => {
20707
- var w, D;
20708
- return ((w = A.srtseq) != null ? w : 0) - ((D = C.srtseq) != null ? D : 0);
20745
+ var w, M;
20746
+ return ((w = A.srtseq) != null ? w : 0) - ((M = C.srtseq) != null ? M : 0);
20709
20747
  });
20710
20748
  return g === "right" && (i.value = k, k.find((A) => A.id === __KG__CREATE_ROW_ID__) || k.push({
20711
20749
  id: __KG__CREATE_ROW_ID__,
@@ -20946,8 +20984,8 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
20946
20984
  onItemSelect: T
20947
20985
  }) => {
20948
20986
  const k = m.sort((A, C) => {
20949
- var w, D;
20950
- return ((w = A.srtseq) != null ? w : 0) - ((D = C.srtseq) != null ? D : 0);
20987
+ var w, M;
20988
+ return ((w = A.srtseq) != null ? w : 0) - ((M = C.srtseq) != null ? M : 0);
20951
20989
  });
20952
20990
  return g === "right" && (i.value = k, k.find((A) => A.id === __KG__CREATE_ROW_ID__) || k.push({
20953
20991
  id: __KG__CREATE_ROW_ID__,
@@ -21187,8 +21225,8 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
21187
21225
  onItemSelect: T
21188
21226
  }) => {
21189
21227
  const k = m.sort((A, C) => {
21190
- var w, D;
21191
- return ((w = A.srtseq) != null ? w : 0) - ((D = C.srtseq) != null ? D : 0);
21228
+ var w, M;
21229
+ return ((w = A.srtseq) != null ? w : 0) - ((M = C.srtseq) != null ? M : 0);
21192
21230
  });
21193
21231
  return g === "right" && (i.value = k, k.find((A) => A.id === __KG__CREATE_ROW_ID__) || k.push({
21194
21232
  id: __KG__CREATE_ROW_ID__,
@@ -21237,7 +21275,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
21237
21275
  n.value !== 1 && (n.value -= 1);
21238
21276
  }
21239
21277
  async function v() {
21240
- var A, C, w, D, I, M;
21278
+ var A, C, w, M, I, D;
21241
21279
  switch (n.value) {
21242
21280
  case 1:
21243
21281
  try {
@@ -21259,7 +21297,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
21259
21297
  break;
21260
21298
  case 4:
21261
21299
  try {
21262
- await ((D = E.value) == null ? void 0 : D.onSubmit()), n.value += 1;
21300
+ await ((M = E.value) == null ? void 0 : M.onSubmit()), n.value += 1;
21263
21301
  } catch {
21264
21302
  }
21265
21303
  break;
@@ -21271,7 +21309,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
21271
21309
  break;
21272
21310
  case 6:
21273
21311
  try {
21274
- await ((M = m.value) == null ? void 0 : M.onSubmit()), n.value += 1;
21312
+ await ((D = m.value) == null ? void 0 : D.onSubmit()), n.value += 1;
21275
21313
  } catch {
21276
21314
  }
21277
21315
  break;
@@ -21282,7 +21320,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
21282
21320
  const A = toRaw(a.getCreateVarDdaQuery);
21283
21321
  A.varButtons.forEach((w) => {
21284
21322
  delete w.id;
21285
- }), console.log(JSON.stringify(A, null, 4));
21323
+ });
21286
21324
  try {
21287
21325
  await ((C = _.value) == null ? void 0 : C.onSubmit()), await Create({
21288
21326
  data: A