@kengic/vue 0.15.2-beta.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- var Le = Object.defineProperty;
2
- var $e = (e, t, r) => t in e ? Le(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var b = (e, t, r) => ($e(e, typeof t != "symbol" ? t + "" : t, r), r);
1
+ var Pe = Object.defineProperty;
2
+ var Le = (e, t, r) => t in e ? Pe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var b = (e, t, r) => (Le(e, typeof t != "symbol" ? t + "" : t, r), r);
4
4
  import { h, nextTick, createVNode, defineComponent, getCurrentInstance, inject, markRaw, ref, watch, reactive, effectScope, isRef, isReactive, toRef, toRaw, computed, onUnmounted, toRefs, unref, watchEffect, Fragment, isVNode, createTextVNode, onBeforeUnmount, onMounted, provide, mergeProps, onActivated, onDeactivated, Teleport, getCurrentScope, onScopeDispose } from "vue";
5
5
  import { Spin, Tooltip, Select, SelectOption, Button, Modal, Progress, Checkbox, Input, Transfer, Table, Tabs, message, Dropdown, Menu, Tag, Row, Pagination, TableSummary, Form, Divider, Col, DatePicker, InputNumber, Radio, Switch, Textarea, Drawer, Upload, ConfigProvider, Card, TabPane } from "ant-design-vue";
6
6
  const index$7 = "", en = {
@@ -392,7 +392,7 @@ const KG_APPS = ["data-manager", "business-manager", "wcs", "sys"];
392
392
  var KG_APP_PREFIX = /* @__PURE__ */ ((e) => (e.WMS_DATA_MANAGER = "/wms/data-manager", e.WMS_BUSINESS_MANAGER = "/wms/business-manager", e.WCS = "/wcs", e.SYS = "/sys", e))(KG_APP_PREFIX || {});
393
393
  const KG_APP_PREFIXS = ["/wms/data-manager", "/wms/business-manager", "/wcs", "/sys"];
394
394
  var KG_FORM_ITEM_TYPE = /* @__PURE__ */ ((e) => (e.INPUT = "INPUT", e.INPUT_PASSWORD = "INPUT_PASSWORD", e.INPUT_NUMBER = "INPUT_NUMBER", e.TEXT_AREA = "TEXT_AREA", e.CHECKBOX = "CHECKBOX", e.CHECKBOX_GROUP = "CHECKBOX_GROUP", e.RADIO_GROUP = "RADIO_GROUP", e.SWITCH = "SWITCH", e.SELECT = "SELECT", e.SELECT_MULTIPLE = "SELECT_MULTIPLE", e.DATE_DATE = "DATE_DATE", e.DATE_DATE_RANGE = "DATE_DATE_RANGE", e.DATE_TIME = "DATE_TIME", e.DATE_TIME_RANGE = "DATE_TIME_RANGE", e.DATE_DATETIME = "DATE_DATETIME", e.DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE", e.DATE_WEEK = "DATE_WEEK", e.DATE_MONTH = "DATE_MONTH", e.DATE_YEAR = "DATE_YEAR", e.BUTTON_UPLOAD = "BUTTON_UPLOAD", e))(KG_FORM_ITEM_TYPE || {}), KG_FORM_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e.TABLE = "TABLE", e))(KG_FORM_CONTEXT || {}), KG_TABLE_CELL_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.YN = "YN", e.ENUM = "ENUM", e.PROGRESS = "PROGRESS", e.FILE_SIZE = "FILE_SIZE", e.UPDATE_LINK = "UPDATE_LINK", e.ROUTE_LINK = "ROUTE_LINK", e.DESC = "DESC", e))(KG_TABLE_CELL_DISPLAY_TYPE || {}), KG_BUTTON_TYPE = /* @__PURE__ */ ((e) => (e.CREATE = "CREATE", e.UPDATE = "UPDATE", e.COPY = "COPY", e.DELETE = "DELETE", e.IMPORT = "IMPORT", e.IMPORT_TEMPLATE = "IMPORT_TEMPLATE", e.EXPORT = "EXPORT", e.SEARCH = "SEARCH", e.REFRESH = "REFRESH", e.OTHER = "OTHER", e))(KG_BUTTON_TYPE || {}), KG_BUTTON_COLOR = /* @__PURE__ */ ((e) => (e.DANGER = "DANGER", e.WARN = "WARN", e))(KG_BUTTON_COLOR || {}), KG_BUTTON_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.DEFAULT = "DEFAULT", e.SELECT = "SELECT", e))(KG_BUTTON_DISPLAY_TYPE || {}), KG_VAR_SUBMIT__DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.MODAL = "MODAL", e.DRAWER = "DRAWER", e.TABLE = "TABLE", e))(KG_VAR_SUBMIT__DISPLAY_TYPE || {}), KG_VAR_SUBMIT__LAYOUT = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(KG_VAR_SUBMIT__LAYOUT || {}), KG_VAR_INPUT__DATA_TYPE = /* @__PURE__ */ ((e) => (e.NUMBER = "NUMBER", e))(KG_VAR_INPUT__DATA_TYPE || {}), KG_CUSTOM_LEVEL = /* @__PURE__ */ ((e) => (e[e.L0 = 0] = "L0", e[e.L10 = 10] = "L10", e))(KG_CUSTOM_LEVEL || {}), KG_POSSIBILITY_DATA_TYPE = /* @__PURE__ */ ((e) => (e.STRING = "string", e.NUMBER = "number", e.BOOLEAN = "boolean", e))(KG_POSSIBILITY_DATA_TYPE || {}), KG_WIDTH_UNIT = /* @__PURE__ */ ((e) => (e.SPAN = "SPAN", e.PX = "PX", e))(KG_WIDTH_UNIT || {}), KG_EXCEL_SUFFIX = /* @__PURE__ */ ((e) => (e.XLS = "xls", e.XLSX = "xlsx", e))(KG_EXCEL_SUFFIX || {}), KG_DESCRIPTION_CODE_NAME = /* @__PURE__ */ ((e) => (e.YN = "yn", e.VAR_SUBMIT_LAYOUT = "var_submit_layout", e.VAR_SPAN = "var_span", e.VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type", e.VAR_WIDTH_UNIT = "var_width_unit", e))(KG_DESCRIPTION_CODE_NAME || {}), KG_DYNAMIC_QUERY_OPERATOR = /* @__PURE__ */ ((e) => (e.EQ = "eq", e.NE = "ne", e.GT = "gt", e.LT = "lt", e.GTE = "gte", e.LTE = "lte", e.START_WITH = "start", e.END_WITH = "end", e.CONTAIN = "contain", e.IN = "in", e.BETWEEN = "between", e))(KG_DYNAMIC_QUERY_OPERATOR || {}), KG_HTTP_HEADERS = /* @__PURE__ */ ((e) => (e.KG_DYNAMIC_QUERY = "Kg-Dynamic-Query", e.KG_QUERY_SQL = "Kg-Query-Sql", e.KG_QUERY_WHERE_SQL = "Kg-Query-Where-Sql", e.KG_QUERY_ORDER_BY_SQL = "Kg-Query-Order-By-Sql", e))(KG_HTTP_HEADERS || {});
395
- const __KG__RESPONSE__ = "__KG__RESPONSE__";
395
+ const __KG__RESPONSE__ = "__KG__RESPONSE__", KG_TMP_MENU_ID__DATA_MANAGER = "KG_TMP_MENU_ID__DATA_MANAGER", KG_TMP_MENU_ID__BUSINESS_MANAGER = "KG_TMP_MENU_ID__BUSINESS_MANAGER", KG_TMP_MENU_ID__WCS = "KG_TMP_MENU_ID__WCS", KG_TMP_MENU_ID__SYS = "KG_TMP_MENU_ID__SYS", KG_TMP_MENU_ID__PDA = "KG_TMP_MENU_ID__PDA";
396
396
  function bound01(e, t) {
397
397
  isOnePointZero(e) && (e = "100%");
398
398
  var r = isPercentage(e);
@@ -2301,12 +2301,12 @@ function sendQuery(e, t, r, a) {
2301
2301
  }), p = [];
2302
2302
  }
2303
2303
  function k(C, R, A) {
2304
- const D = R !== "success";
2304
+ const O = R !== "success";
2305
2305
  switch (p = p.filter((M) => M !== C), i) {
2306
2306
  case "pending":
2307
2307
  break;
2308
2308
  case "failed":
2309
- if (D || !e.dataAfterTimeout)
2309
+ if (O || !e.dataAfterTimeout)
2310
2310
  return;
2311
2311
  break;
2312
2312
  default:
@@ -2316,7 +2316,7 @@ function sendQuery(e, t, r, a) {
2316
2316
  u = A, v();
2317
2317
  return;
2318
2318
  }
2319
- if (D) {
2319
+ if (O) {
2320
2320
  u = A, p.length || (l.length ? I() : v());
2321
2321
  return;
2322
2322
  }
@@ -2346,8 +2346,8 @@ function sendQuery(e, t, r, a) {
2346
2346
  const R = {
2347
2347
  status: "pending",
2348
2348
  resource: C,
2349
- callback: (A, D) => {
2350
- k(R, A, D);
2349
+ callback: (A, O) => {
2350
+ k(R, A, O);
2351
2351
  }
2352
2352
  };
2353
2353
  p.push(R), c++, d = setTimeout(I, e.rotate), r(C, t, R.callback);
@@ -2870,7 +2870,7 @@ const emptyIcon = {
2870
2870
  ...t.data
2871
2871
  }, r);
2872
2872
  }
2873
- }), name = "@kengic/vue", version = "0.15.2-beta.0", data$1 = {
2873
+ }), name = "@kengic/vue", version = "0.16.0", data$1 = {
2874
2874
  width: 24,
2875
2875
  height: 24,
2876
2876
  body: '<path fill="currentColor" d="M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h11.175q.4 0 .763.15t.637.425l2.85 2.85q.275.275.425.638t.15.762V12.3q-.475-.2-.988-.263T19 12.05V7.825L16.175 5H5v14h6v2H5ZM5 5v14V5Zm8 17v-1.65q0-.2.075-.388t.225-.337l5.225-5.2q.225-.225.5-.325t.55-.1q.3 0 .575.113t.5.337l.925.925q.2.225.313.5t.112.55q0 .275-.1.563t-.325.512l-5.2 5.2q-.15.15-.338.225T15.65 23H14q-.425 0-.712-.287T13 22Zm7.5-5.575l-.925-.925l.925.925Zm-6 5.075h.95l3.025-3.05l-.45-.475l-.475-.45l-3.05 3.025v.95Zm3.525-3.525l-.475-.45l.925.925l-.45-.475ZM7 10h7q.425 0 .713-.288T15 9V7q0-.425-.288-.713T14 6H7q-.425 0-.713.288T6 7v2q0 .425.288.713T7 10Zm5 8h.1l2.9-2.875V15q0-1.25-.875-2.125T12 12q-1.25 0-2.125.875T9 15q0 1.25.875 2.125T12 18Z"/>'
@@ -2980,19 +2980,19 @@ function createSetupStore(e, t, r = {}, a, n) {
2980
2980
  !l && !y && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
2981
2981
  const _ = ref({});
2982
2982
  function g(A) {
2983
- let D;
2984
- c = u = !1, process.env.NODE_ENV !== "production" && (E = []), typeof A == "function" ? (A(a.state.value[e]), D = {
2983
+ let O;
2984
+ c = u = !1, process.env.NODE_ENV !== "production" && (E = []), typeof A == "function" ? (A(a.state.value[e]), O = {
2985
2985
  type: MutationType.patchFunction,
2986
2986
  storeId: e,
2987
2987
  events: E
2988
- }) : (mergeReactiveObjects(a.state.value[e], A), D = {
2988
+ }) : (mergeReactiveObjects(a.state.value[e], A), O = {
2989
2989
  type: MutationType.patchObject,
2990
2990
  payload: A,
2991
2991
  storeId: e,
2992
2992
  events: E
2993
2993
  }), nextTick().then(() => {
2994
2994
  c = !0;
2995
- }), u = !0, triggerSubscriptions(d, D, a.state.value[e]);
2995
+ }), u = !0, triggerSubscriptions(d, O, a.state.value[e]);
2996
2996
  }
2997
2997
  const m = process.env.NODE_ENV !== "production" ? () => {
2998
2998
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
@@ -3000,15 +3000,15 @@ function createSetupStore(e, t, r = {}, a, n) {
3000
3000
  function v() {
3001
3001
  s.stop(), d = [], p = [], a._s.delete(e);
3002
3002
  }
3003
- function T(A, D) {
3003
+ function T(A, O) {
3004
3004
  return function() {
3005
3005
  setActivePinia(a);
3006
- const M = Array.from(arguments), K = [], L = [];
3007
- function H(V) {
3008
- K.push(V);
3006
+ const M = Array.from(arguments), P = [], L = [];
3007
+ function H(K) {
3008
+ P.push(K);
3009
3009
  }
3010
- function w(V) {
3011
- L.push(V);
3010
+ function w(K) {
3011
+ L.push(K);
3012
3012
  }
3013
3013
  triggerSubscriptions(p, {
3014
3014
  args: M,
@@ -3017,13 +3017,13 @@ function createSetupStore(e, t, r = {}, a, n) {
3017
3017
  after: H,
3018
3018
  onError: w
3019
3019
  });
3020
- let O;
3020
+ let D;
3021
3021
  try {
3022
- O = D.apply(this && this.$id === e ? this : C, M);
3023
- } catch (V) {
3024
- throw triggerSubscriptions(L, V), V;
3022
+ D = O.apply(this && this.$id === e ? this : C, M);
3023
+ } catch (K) {
3024
+ throw triggerSubscriptions(L, K), K;
3025
3025
  }
3026
- return O instanceof Promise ? O.then((V) => (triggerSubscriptions(K, V), V)).catch((V) => (triggerSubscriptions(L, V), Promise.reject(V))) : (triggerSubscriptions(K, O), O);
3026
+ return D instanceof Promise ? D.then((K) => (triggerSubscriptions(P, K), K)).catch((K) => (triggerSubscriptions(L, K), Promise.reject(K))) : (triggerSubscriptions(P, D), D);
3027
3027
  };
3028
3028
  }
3029
3029
  const k = /* @__PURE__ */ markRaw({
@@ -3037,14 +3037,14 @@ function createSetupStore(e, t, r = {}, a, n) {
3037
3037
  $onAction: addSubscription.bind(null, p),
3038
3038
  $patch: g,
3039
3039
  $reset: m,
3040
- $subscribe(A, D = {}) {
3041
- const M = addSubscription(d, A, D.detached, () => K()), K = s.run(() => watch(() => a.state.value[e], (L) => {
3042
- (D.flush === "sync" ? u : c) && A({
3040
+ $subscribe(A, O = {}) {
3041
+ const M = addSubscription(d, A, O.detached, () => P()), P = s.run(() => watch(() => a.state.value[e], (L) => {
3042
+ (O.flush === "sync" ? u : c) && A({
3043
3043
  storeId: e,
3044
3044
  type: MutationType.direct,
3045
3045
  events: E
3046
3046
  }, L);
3047
- }, assign$1({}, i, D)));
3047
+ }, assign$1({}, i, O)));
3048
3048
  return M;
3049
3049
  },
3050
3050
  $dispose: v
@@ -3058,72 +3058,72 @@ function createSetupStore(e, t, r = {}, a, n) {
3058
3058
  a._s.set(e, C);
3059
3059
  const R = a._e.run(() => (s = effectScope(), s.run(() => t())));
3060
3060
  for (const A in R) {
3061
- const D = R[A];
3062
- if (isRef(D) && !isComputed(D) || isReactive(D))
3063
- process.env.NODE_ENV !== "production" && n ? set(_.value, A, toRef(R, A)) : l || (y && shouldHydrate(D) && (isRef(D) ? D.value = y[A] : mergeReactiveObjects(D, y[A])), a.state.value[e][A] = D), process.env.NODE_ENV !== "production" && k.state.push(A);
3064
- else if (typeof D == "function") {
3065
- const M = process.env.NODE_ENV !== "production" && n ? D : T(A, D);
3066
- R[A] = M, process.env.NODE_ENV !== "production" && (k.actions[A] = D), o.actions[A] = D;
3061
+ const O = R[A];
3062
+ if (isRef(O) && !isComputed(O) || isReactive(O))
3063
+ process.env.NODE_ENV !== "production" && n ? set(_.value, A, toRef(R, A)) : l || (y && shouldHydrate(O) && (isRef(O) ? O.value = y[A] : mergeReactiveObjects(O, y[A])), a.state.value[e][A] = O), process.env.NODE_ENV !== "production" && k.state.push(A);
3064
+ else if (typeof O == "function") {
3065
+ const M = process.env.NODE_ENV !== "production" && n ? O : T(A, O);
3066
+ R[A] = M, process.env.NODE_ENV !== "production" && (k.actions[A] = O), o.actions[A] = O;
3067
3067
  } else
3068
- process.env.NODE_ENV !== "production" && isComputed(D) && (k.getters[A] = l ? r.getters[A] : D, IS_CLIENT && (R._getters || (R._getters = markRaw([]))).push(A));
3068
+ process.env.NODE_ENV !== "production" && isComputed(O) && (k.getters[A] = l ? r.getters[A] : O, IS_CLIENT && (R._getters || (R._getters = markRaw([]))).push(A));
3069
3069
  }
3070
3070
  if (assign$1(C, R), assign$1(toRaw(C), R), Object.defineProperty(C, "$state", {
3071
3071
  get: () => process.env.NODE_ENV !== "production" && n ? _.value : a.state.value[e],
3072
3072
  set: (A) => {
3073
3073
  if (process.env.NODE_ENV !== "production" && n)
3074
3074
  throw new Error("cannot set hotState");
3075
- g((D) => {
3076
- assign$1(D, A);
3075
+ g((O) => {
3076
+ assign$1(O, A);
3077
3077
  });
3078
3078
  }
3079
3079
  }), process.env.NODE_ENV !== "production") {
3080
- C._hotUpdate = markRaw((D) => {
3081
- C._hotUpdating = !0, D._hmrPayload.state.forEach((M) => {
3080
+ C._hotUpdate = markRaw((O) => {
3081
+ C._hotUpdating = !0, O._hmrPayload.state.forEach((M) => {
3082
3082
  if (M in C.$state) {
3083
- const K = D.$state[M], L = C.$state[M];
3084
- typeof K == "object" && isPlainObject(K) && isPlainObject(L) ? patchObject(K, L) : D.$state[M] = L;
3083
+ const P = O.$state[M], L = C.$state[M];
3084
+ typeof P == "object" && isPlainObject(P) && isPlainObject(L) ? patchObject(P, L) : O.$state[M] = L;
3085
3085
  }
3086
- set(C, M, toRef(D.$state, M));
3086
+ set(C, M, toRef(O.$state, M));
3087
3087
  }), Object.keys(C.$state).forEach((M) => {
3088
- M in D.$state || del(C, M);
3089
- }), c = !1, u = !1, a.state.value[e] = toRef(D._hmrPayload, "hotState"), u = !0, nextTick().then(() => {
3088
+ M in O.$state || del(C, M);
3089
+ }), c = !1, u = !1, a.state.value[e] = toRef(O._hmrPayload, "hotState"), u = !0, nextTick().then(() => {
3090
3090
  c = !0;
3091
3091
  });
3092
- for (const M in D._hmrPayload.actions) {
3093
- const K = D[M];
3094
- set(C, M, T(M, K));
3092
+ for (const M in O._hmrPayload.actions) {
3093
+ const P = O[M];
3094
+ set(C, M, T(M, P));
3095
3095
  }
3096
- for (const M in D._hmrPayload.getters) {
3097
- const K = D._hmrPayload.getters[M], L = l ? computed(() => (setActivePinia(a), K.call(C, C))) : K;
3096
+ for (const M in O._hmrPayload.getters) {
3097
+ const P = O._hmrPayload.getters[M], L = l ? computed(() => (setActivePinia(a), P.call(C, C))) : P;
3098
3098
  set(C, M, L);
3099
3099
  }
3100
3100
  Object.keys(C._hmrPayload.getters).forEach((M) => {
3101
- M in D._hmrPayload.getters || del(C, M);
3101
+ M in O._hmrPayload.getters || del(C, M);
3102
3102
  }), Object.keys(C._hmrPayload.actions).forEach((M) => {
3103
- M in D._hmrPayload.actions || del(C, M);
3104
- }), C._hmrPayload = D._hmrPayload, C._getters = D._getters, C._hotUpdating = !1;
3103
+ M in O._hmrPayload.actions || del(C, M);
3104
+ }), C._hmrPayload = O._hmrPayload, C._getters = O._getters, C._hotUpdating = !1;
3105
3105
  });
3106
3106
  const A = {
3107
3107
  writable: !0,
3108
3108
  configurable: !0,
3109
3109
  enumerable: !1
3110
3110
  };
3111
- IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((D) => {
3112
- Object.defineProperty(C, D, {
3113
- value: C[D],
3111
+ IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((O) => {
3112
+ Object.defineProperty(C, O, {
3113
+ value: C[O],
3114
3114
  ...A
3115
3115
  });
3116
3116
  });
3117
3117
  }
3118
3118
  return a._p.forEach((A) => {
3119
3119
  if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
3120
- const D = s.run(() => A({
3120
+ const O = s.run(() => A({
3121
3121
  store: C,
3122
3122
  app: a._a,
3123
3123
  pinia: a,
3124
3124
  options: o
3125
3125
  }));
3126
- Object.keys(D || {}).forEach((M) => C._customProperties.add(M)), assign$1(C, D);
3126
+ Object.keys(O || {}).forEach((M) => C._customProperties.add(M)), assign$1(C, O);
3127
3127
  } else
3128
3128
  assign$1(C, s.run(() => A({
3129
3129
  store: C,
@@ -3353,6 +3353,101 @@ class KgRouteUtil {
3353
3353
  n[r] = a.t(n[r]), KgRouteUtil.translateMenus(n.children, r);
3354
3354
  }), t;
3355
3355
  }
3356
+ static transformMenus(t) {
3357
+ var c, u, d, p, E, y, _, g, m, v, T, k, I, C, R, A, O, M, P, L, H, w, D, K;
3358
+ if (!t)
3359
+ return [];
3360
+ const r = useKg(), a = {
3361
+ parentId: "",
3362
+ app: null,
3363
+ perms: null,
3364
+ permsType: null,
3365
+ icon: "NULL",
3366
+ component: "",
3367
+ componentName: "",
3368
+ url: "",
3369
+ redirect: null,
3370
+ menuType: 0,
3371
+ isLeaf: !1,
3372
+ route: !1,
3373
+ keepAlive: !1,
3374
+ description: null,
3375
+ delFlag: 0,
3376
+ createBy: null,
3377
+ createTime: null,
3378
+ updateBy: null,
3379
+ updateTime: null,
3380
+ alwaysShow: !1,
3381
+ hidden: !1,
3382
+ status: null,
3383
+ internalOrExternal: !1,
3384
+ leaf: !1
3385
+ }, n = {
3386
+ id: KG_TMP_MENU_ID__DATA_MANAGER,
3387
+ key: KG_TMP_MENU_ID__DATA_MANAGER,
3388
+ title: (u = (c = r.option.value.appTitle) == null ? void 0 : c[KG_APP.WMS_DATA_MANAGER]) != null ? u : "\u6570\u636E\u7BA1\u7406",
3389
+ name: (p = (d = r.option.value.appTitle) == null ? void 0 : d[KG_APP.WMS_DATA_MANAGER]) != null ? p : "\u6570\u636E\u7BA1\u7406",
3390
+ slotTitle: (y = (E = r.option.value.appTitle) == null ? void 0 : E[KG_APP.WMS_DATA_MANAGER]) != null ? y : "\u6570\u636E\u7BA1\u7406",
3391
+ sortNo: 1,
3392
+ children: [],
3393
+ ...a
3394
+ }, s = {
3395
+ id: KG_TMP_MENU_ID__BUSINESS_MANAGER,
3396
+ key: KG_TMP_MENU_ID__BUSINESS_MANAGER,
3397
+ title: (g = (_ = r.option.value.appTitle) == null ? void 0 : _[KG_APP.WMS_BUSINESS_MANAGER]) != null ? g : "\u4ED3\u5E93\u7BA1\u7406",
3398
+ name: (v = (m = r.option.value.appTitle) == null ? void 0 : m[KG_APP.WMS_BUSINESS_MANAGER]) != null ? v : "\u4ED3\u5E93\u7BA1\u7406",
3399
+ slotTitle: (k = (T = r.option.value.appTitle) == null ? void 0 : T[KG_APP.WMS_BUSINESS_MANAGER]) != null ? k : "\u4ED3\u5E93\u7BA1\u7406",
3400
+ sortNo: 2,
3401
+ children: [],
3402
+ ...a
3403
+ }, l = {
3404
+ id: KG_TMP_MENU_ID__WCS,
3405
+ key: KG_TMP_MENU_ID__WCS,
3406
+ title: (C = (I = r.option.value.appTitle) == null ? void 0 : I[KG_APP.WCS]) != null ? C : "WCS",
3407
+ name: (A = (R = r.option.value.appTitle) == null ? void 0 : R[KG_APP.WCS]) != null ? A : "WCS",
3408
+ slotTitle: (M = (O = r.option.value.appTitle) == null ? void 0 : O[KG_APP.WCS]) != null ? M : "WCS",
3409
+ sortNo: 3,
3410
+ children: [],
3411
+ ...a
3412
+ }, o = {
3413
+ id: KG_TMP_MENU_ID__SYS,
3414
+ key: KG_TMP_MENU_ID__SYS,
3415
+ title: (L = (P = r.option.value.appTitle) == null ? void 0 : P[KG_APP.SYS]) != null ? L : "\u7CFB\u7EDF\u914D\u7F6E",
3416
+ name: (w = (H = r.option.value.appTitle) == null ? void 0 : H[KG_APP.SYS]) != null ? w : "\u7CFB\u7EDF\u914D\u7F6E",
3417
+ slotTitle: (K = (D = r.option.value.appTitle) == null ? void 0 : D[KG_APP.SYS]) != null ? K : "\u7CFB\u7EDF\u914D\u7F6E",
3418
+ sortNo: 4,
3419
+ children: [],
3420
+ ...a
3421
+ }, i = {
3422
+ id: KG_TMP_MENU_ID__PDA,
3423
+ key: KG_TMP_MENU_ID__PDA,
3424
+ title: "PDA",
3425
+ name: "PDA",
3426
+ slotTitle: "PDA",
3427
+ sortNo: 5,
3428
+ children: [],
3429
+ ...a
3430
+ };
3431
+ return t.forEach((V) => {
3432
+ switch (!0) {
3433
+ case V.app === "PDA":
3434
+ V.parentId = KG_TMP_MENU_ID__PDA, i.children.push(V);
3435
+ break;
3436
+ case KgRouteUtil.isPathInApp(V.url, KG_APP.WMS_DATA_MANAGER):
3437
+ V.parentId = KG_TMP_MENU_ID__DATA_MANAGER, n.children.push(V);
3438
+ break;
3439
+ case KgRouteUtil.isPathInApp(V.url, KG_APP.WMS_BUSINESS_MANAGER):
3440
+ V.parentId = KG_TMP_MENU_ID__BUSINESS_MANAGER, s.children.push(V);
3441
+ break;
3442
+ case KgRouteUtil.isPathInApp(V.url, KG_APP.WCS):
3443
+ V.parentId = KG_TMP_MENU_ID__WCS, l.children.push(V);
3444
+ break;
3445
+ case KgRouteUtil.isPathInApp(V.url, KG_APP.SYS):
3446
+ V.parentId = KG_TMP_MENU_ID__SYS, o.children.push(V);
3447
+ break;
3448
+ }
3449
+ }), [n, s, l, o, i];
3450
+ }
3356
3451
  static isPathInApp(t, r) {
3357
3452
  if (!t || !r)
3358
3453
  return !1;
@@ -3424,19 +3519,19 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3424
3519
  e.exports = a();
3425
3520
  })(commonjsGlobal, function() {
3426
3521
  var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", p = "quarter", E = "year", y = "date", _ = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, m = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, v = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
3427
- var O = ["th", "st", "nd", "rd"], V = w % 100;
3428
- return "[" + w + (O[(V - 20) % 10] || O[V] || O[0]) + "]";
3429
- } }, T = function(w, O, V) {
3430
- var $ = String(w);
3431
- return !$ || $.length >= O ? w : "" + Array(O + 1 - $.length).join(V) + w;
3522
+ var D = ["th", "st", "nd", "rd"], K = w % 100;
3523
+ return "[" + w + (D[(K - 20) % 10] || D[K] || D[0]) + "]";
3524
+ } }, T = function(w, D, K) {
3525
+ var V = String(w);
3526
+ return !V || V.length >= D ? w : "" + Array(D + 1 - V.length).join(K) + w;
3432
3527
  }, k = { s: T, z: function(w) {
3433
- var O = -w.utcOffset(), V = Math.abs(O), $ = Math.floor(V / 60), P = V % 60;
3434
- return (O <= 0 ? "+" : "-") + T($, 2, "0") + ":" + T(P, 2, "0");
3435
- }, m: function w(O, V) {
3436
- if (O.date() < V.date())
3437
- return -w(V, O);
3438
- var $ = 12 * (V.year() - O.year()) + (V.month() - O.month()), P = O.clone().add($, d), G = V - P < 0, N = O.clone().add($ + (G ? -1 : 1), d);
3439
- return +(-($ + (V - P) / (G ? P - N : N - P)) || 0);
3528
+ var D = -w.utcOffset(), K = Math.abs(D), V = Math.floor(K / 60), N = K % 60;
3529
+ return (D <= 0 ? "+" : "-") + T(V, 2, "0") + ":" + T(N, 2, "0");
3530
+ }, m: function w(D, K) {
3531
+ if (D.date() < K.date())
3532
+ return -w(K, D);
3533
+ var V = 12 * (K.year() - D.year()) + (K.month() - D.month()), N = D.clone().add(V, d), G = K - N < 0, $ = D.clone().add(V + (G ? -1 : 1), d);
3534
+ return +(-(V + (K - N) / (G ? N - $ : $ - N)) || 0);
3440
3535
  }, a: function(w) {
3441
3536
  return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
3442
3537
  }, p: function(w) {
@@ -3447,88 +3542,88 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3447
3542
  C[I] = v;
3448
3543
  var R = "$isDayjsObject", A = function(w) {
3449
3544
  return w instanceof L || !(!w || !w[R]);
3450
- }, D = function w(O, V, $) {
3451
- var P;
3452
- if (!O)
3545
+ }, O = function w(D, K, V) {
3546
+ var N;
3547
+ if (!D)
3453
3548
  return I;
3454
- if (typeof O == "string") {
3455
- var G = O.toLowerCase();
3456
- C[G] && (P = G), V && (C[G] = V, P = G);
3457
- var N = O.split("-");
3458
- if (!P && N.length > 1)
3459
- return w(N[0]);
3549
+ if (typeof D == "string") {
3550
+ var G = D.toLowerCase();
3551
+ C[G] && (N = G), K && (C[G] = K, N = G);
3552
+ var $ = D.split("-");
3553
+ if (!N && $.length > 1)
3554
+ return w($[0]);
3460
3555
  } else {
3461
- var x = O.name;
3462
- C[x] = O, P = x;
3556
+ var B = D.name;
3557
+ C[B] = D, N = B;
3463
3558
  }
3464
- return !$ && P && (I = P), P || !$ && I;
3465
- }, M = function(w, O) {
3559
+ return !V && N && (I = N), N || !V && I;
3560
+ }, M = function(w, D) {
3466
3561
  if (A(w))
3467
3562
  return w.clone();
3468
- var V = typeof O == "object" ? O : {};
3469
- return V.date = w, V.args = arguments, new L(V);
3470
- }, K = k;
3471
- K.l = D, K.i = A, K.w = function(w, O) {
3472
- return M(w, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
3563
+ var K = typeof D == "object" ? D : {};
3564
+ return K.date = w, K.args = arguments, new L(K);
3565
+ }, P = k;
3566
+ P.l = O, P.i = A, P.w = function(w, D) {
3567
+ return M(w, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
3473
3568
  };
3474
3569
  var L = function() {
3475
- function w(V) {
3476
- this.$L = D(V.locale, null, !0), this.parse(V), this.$x = this.$x || V.x || {}, this[R] = !0;
3570
+ function w(K) {
3571
+ this.$L = O(K.locale, null, !0), this.parse(K), this.$x = this.$x || K.x || {}, this[R] = !0;
3477
3572
  }
3478
- var O = w.prototype;
3479
- return O.parse = function(V) {
3480
- this.$d = function($) {
3481
- var P = $.date, G = $.utc;
3482
- if (P === null)
3573
+ var D = w.prototype;
3574
+ return D.parse = function(K) {
3575
+ this.$d = function(V) {
3576
+ var N = V.date, G = V.utc;
3577
+ if (N === null)
3483
3578
  return new Date(NaN);
3484
- if (K.u(P))
3579
+ if (P.u(N))
3485
3580
  return new Date();
3486
- if (P instanceof Date)
3487
- return new Date(P);
3488
- if (typeof P == "string" && !/Z$/i.test(P)) {
3489
- var N = P.match(g);
3490
- if (N) {
3491
- var x = N[2] - 1 || 0, Y = (N[7] || "0").substring(0, 3);
3492
- return G ? new Date(Date.UTC(N[1], x, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, Y)) : new Date(N[1], x, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, Y);
3581
+ if (N instanceof Date)
3582
+ return new Date(N);
3583
+ if (typeof N == "string" && !/Z$/i.test(N)) {
3584
+ var $ = N.match(g);
3585
+ if ($) {
3586
+ var B = $[2] - 1 || 0, Y = ($[7] || "0").substring(0, 3);
3587
+ return G ? new Date(Date.UTC($[1], B, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, Y)) : new Date($[1], B, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, Y);
3493
3588
  }
3494
3589
  }
3495
- return new Date(P);
3496
- }(V), this.init();
3497
- }, O.init = function() {
3498
- var V = this.$d;
3499
- this.$y = V.getFullYear(), this.$M = V.getMonth(), this.$D = V.getDate(), this.$W = V.getDay(), this.$H = V.getHours(), this.$m = V.getMinutes(), this.$s = V.getSeconds(), this.$ms = V.getMilliseconds();
3500
- }, O.$utils = function() {
3501
- return K;
3502
- }, O.isValid = function() {
3590
+ return new Date(N);
3591
+ }(K), this.init();
3592
+ }, D.init = function() {
3593
+ var K = this.$d;
3594
+ this.$y = K.getFullYear(), this.$M = K.getMonth(), this.$D = K.getDate(), this.$W = K.getDay(), this.$H = K.getHours(), this.$m = K.getMinutes(), this.$s = K.getSeconds(), this.$ms = K.getMilliseconds();
3595
+ }, D.$utils = function() {
3596
+ return P;
3597
+ }, D.isValid = function() {
3503
3598
  return this.$d.toString() !== _;
3504
- }, O.isSame = function(V, $) {
3505
- var P = M(V);
3506
- return this.startOf($) <= P && P <= this.endOf($);
3507
- }, O.isAfter = function(V, $) {
3508
- return M(V) < this.startOf($);
3509
- }, O.isBefore = function(V, $) {
3510
- return this.endOf($) < M(V);
3511
- }, O.$g = function(V, $, P) {
3512
- return K.u(V) ? this[$] : this.set(P, V);
3513
- }, O.unix = function() {
3599
+ }, D.isSame = function(K, V) {
3600
+ var N = M(K);
3601
+ return this.startOf(V) <= N && N <= this.endOf(V);
3602
+ }, D.isAfter = function(K, V) {
3603
+ return M(K) < this.startOf(V);
3604
+ }, D.isBefore = function(K, V) {
3605
+ return this.endOf(V) < M(K);
3606
+ }, D.$g = function(K, V, N) {
3607
+ return P.u(K) ? this[V] : this.set(N, K);
3608
+ }, D.unix = function() {
3514
3609
  return Math.floor(this.valueOf() / 1e3);
3515
- }, O.valueOf = function() {
3610
+ }, D.valueOf = function() {
3516
3611
  return this.$d.getTime();
3517
- }, O.startOf = function(V, $) {
3518
- var P = this, G = !!K.u($) || $, N = K.p(V), x = function(pe, ae) {
3519
- var F = K.w(P.$u ? Date.UTC(P.$y, ae, pe) : new Date(P.$y, ae, pe), P);
3612
+ }, D.startOf = function(K, V) {
3613
+ var N = this, G = !!P.u(V) || V, $ = P.p(K), B = function(pe, ae) {
3614
+ var F = P.w(N.$u ? Date.UTC(N.$y, ae, pe) : new Date(N.$y, ae, pe), N);
3520
3615
  return G ? F : F.endOf(c);
3521
3616
  }, Y = function(pe, ae) {
3522
- return K.w(P.toDate()[pe].apply(P.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), P);
3617
+ return P.w(N.toDate()[pe].apply(N.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), N);
3523
3618
  }, q = this.$W, J = this.$M, X = this.$D, ee = "set" + (this.$u ? "UTC" : "");
3524
- switch (N) {
3619
+ switch ($) {
3525
3620
  case E:
3526
- return G ? x(1, 0) : x(31, 11);
3621
+ return G ? B(1, 0) : B(31, 11);
3527
3622
  case d:
3528
- return G ? x(1, J) : x(0, J + 1);
3623
+ return G ? B(1, J) : B(0, J + 1);
3529
3624
  case u:
3530
3625
  var le = this.$locale().weekStart || 0, he = (q < le ? q + 7 : q) - le;
3531
- return x(G ? X - he : X + (6 - he), J);
3626
+ return B(G ? X - he : X + (6 - he), J);
3532
3627
  case c:
3533
3628
  case y:
3534
3629
  return Y(ee + "Hours", 0);
@@ -3541,47 +3636,47 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3541
3636
  default:
3542
3637
  return this.clone();
3543
3638
  }
3544
- }, O.endOf = function(V) {
3545
- return this.startOf(V, !1);
3546
- }, O.$set = function(V, $) {
3547
- var P, G = K.p(V), N = "set" + (this.$u ? "UTC" : ""), x = (P = {}, P[c] = N + "Date", P[y] = N + "Date", P[d] = N + "Month", P[E] = N + "FullYear", P[i] = N + "Hours", P[o] = N + "Minutes", P[l] = N + "Seconds", P[s] = N + "Milliseconds", P)[G], Y = G === c ? this.$D + ($ - this.$W) : $;
3639
+ }, D.endOf = function(K) {
3640
+ return this.startOf(K, !1);
3641
+ }, D.$set = function(K, V) {
3642
+ var N, G = P.p(K), $ = "set" + (this.$u ? "UTC" : ""), B = (N = {}, N[c] = $ + "Date", N[y] = $ + "Date", N[d] = $ + "Month", N[E] = $ + "FullYear", N[i] = $ + "Hours", N[o] = $ + "Minutes", N[l] = $ + "Seconds", N[s] = $ + "Milliseconds", N)[G], Y = G === c ? this.$D + (V - this.$W) : V;
3548
3643
  if (G === d || G === E) {
3549
3644
  var q = this.clone().set(y, 1);
3550
- q.$d[x](Y), q.init(), this.$d = q.set(y, Math.min(this.$D, q.daysInMonth())).$d;
3645
+ q.$d[B](Y), q.init(), this.$d = q.set(y, Math.min(this.$D, q.daysInMonth())).$d;
3551
3646
  } else
3552
- x && this.$d[x](Y);
3647
+ B && this.$d[B](Y);
3553
3648
  return this.init(), this;
3554
- }, O.set = function(V, $) {
3555
- return this.clone().$set(V, $);
3556
- }, O.get = function(V) {
3557
- return this[K.p(V)]();
3558
- }, O.add = function(V, $) {
3559
- var P, G = this;
3560
- V = Number(V);
3561
- var N = K.p($), x = function(J) {
3649
+ }, D.set = function(K, V) {
3650
+ return this.clone().$set(K, V);
3651
+ }, D.get = function(K) {
3652
+ return this[P.p(K)]();
3653
+ }, D.add = function(K, V) {
3654
+ var N, G = this;
3655
+ K = Number(K);
3656
+ var $ = P.p(V), B = function(J) {
3562
3657
  var X = M(G);
3563
- return K.w(X.date(X.date() + Math.round(J * V)), G);
3658
+ return P.w(X.date(X.date() + Math.round(J * K)), G);
3564
3659
  };
3565
- if (N === d)
3566
- return this.set(d, this.$M + V);
3567
- if (N === E)
3568
- return this.set(E, this.$y + V);
3569
- if (N === c)
3570
- return x(1);
3571
- if (N === u)
3572
- return x(7);
3573
- var Y = (P = {}, P[o] = a, P[i] = n, P[l] = r, P)[N] || 1, q = this.$d.getTime() + V * Y;
3574
- return K.w(q, this);
3575
- }, O.subtract = function(V, $) {
3576
- return this.add(-1 * V, $);
3577
- }, O.format = function(V) {
3578
- var $ = this, P = this.$locale();
3660
+ if ($ === d)
3661
+ return this.set(d, this.$M + K);
3662
+ if ($ === E)
3663
+ return this.set(E, this.$y + K);
3664
+ if ($ === c)
3665
+ return B(1);
3666
+ if ($ === u)
3667
+ return B(7);
3668
+ var Y = (N = {}, N[o] = a, N[i] = n, N[l] = r, N)[$] || 1, q = this.$d.getTime() + K * Y;
3669
+ return P.w(q, this);
3670
+ }, D.subtract = function(K, V) {
3671
+ return this.add(-1 * K, V);
3672
+ }, D.format = function(K) {
3673
+ var V = this, N = this.$locale();
3579
3674
  if (!this.isValid())
3580
- return P.invalidDate || _;
3581
- var G = V || "YYYY-MM-DDTHH:mm:ssZ", N = K.z(this), x = this.$H, Y = this.$m, q = this.$M, J = P.weekdays, X = P.months, ee = P.meridiem, le = function(ae, F, U, Q) {
3582
- return ae && (ae[F] || ae($, G)) || U[F].slice(0, Q);
3675
+ return N.invalidDate || _;
3676
+ var G = K || "YYYY-MM-DDTHH:mm:ssZ", $ = P.z(this), B = this.$H, Y = this.$m, q = this.$M, J = N.weekdays, X = N.months, ee = N.meridiem, le = function(ae, F, U, Q) {
3677
+ return ae && (ae[F] || ae(V, G)) || U[F].slice(0, Q);
3583
3678
  }, he = function(ae) {
3584
- return K.s(x % 12 || 12, ae, "0");
3679
+ return P.s(B % 12 || 12, ae, "0");
3585
3680
  }, pe = ee || function(ae, F, U) {
3586
3681
  var Q = ae < 12 ? "AM" : "PM";
3587
3682
  return U ? Q.toLowerCase() : Q;
@@ -3590,64 +3685,64 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3590
3685
  return F || function(U) {
3591
3686
  switch (U) {
3592
3687
  case "YY":
3593
- return String($.$y).slice(-2);
3688
+ return String(V.$y).slice(-2);
3594
3689
  case "YYYY":
3595
- return K.s($.$y, 4, "0");
3690
+ return P.s(V.$y, 4, "0");
3596
3691
  case "M":
3597
3692
  return q + 1;
3598
3693
  case "MM":
3599
- return K.s(q + 1, 2, "0");
3694
+ return P.s(q + 1, 2, "0");
3600
3695
  case "MMM":
3601
- return le(P.monthsShort, q, X, 3);
3696
+ return le(N.monthsShort, q, X, 3);
3602
3697
  case "MMMM":
3603
3698
  return le(X, q);
3604
3699
  case "D":
3605
- return $.$D;
3700
+ return V.$D;
3606
3701
  case "DD":
3607
- return K.s($.$D, 2, "0");
3702
+ return P.s(V.$D, 2, "0");
3608
3703
  case "d":
3609
- return String($.$W);
3704
+ return String(V.$W);
3610
3705
  case "dd":
3611
- return le(P.weekdaysMin, $.$W, J, 2);
3706
+ return le(N.weekdaysMin, V.$W, J, 2);
3612
3707
  case "ddd":
3613
- return le(P.weekdaysShort, $.$W, J, 3);
3708
+ return le(N.weekdaysShort, V.$W, J, 3);
3614
3709
  case "dddd":
3615
- return J[$.$W];
3710
+ return J[V.$W];
3616
3711
  case "H":
3617
- return String(x);
3712
+ return String(B);
3618
3713
  case "HH":
3619
- return K.s(x, 2, "0");
3714
+ return P.s(B, 2, "0");
3620
3715
  case "h":
3621
3716
  return he(1);
3622
3717
  case "hh":
3623
3718
  return he(2);
3624
3719
  case "a":
3625
- return pe(x, Y, !0);
3720
+ return pe(B, Y, !0);
3626
3721
  case "A":
3627
- return pe(x, Y, !1);
3722
+ return pe(B, Y, !1);
3628
3723
  case "m":
3629
3724
  return String(Y);
3630
3725
  case "mm":
3631
- return K.s(Y, 2, "0");
3726
+ return P.s(Y, 2, "0");
3632
3727
  case "s":
3633
- return String($.$s);
3728
+ return String(V.$s);
3634
3729
  case "ss":
3635
- return K.s($.$s, 2, "0");
3730
+ return P.s(V.$s, 2, "0");
3636
3731
  case "SSS":
3637
- return K.s($.$ms, 3, "0");
3732
+ return P.s(V.$ms, 3, "0");
3638
3733
  case "Z":
3639
- return N;
3734
+ return $;
3640
3735
  }
3641
3736
  return null;
3642
- }(ae) || N.replace(":", "");
3737
+ }(ae) || $.replace(":", "");
3643
3738
  });
3644
- }, O.utcOffset = function() {
3739
+ }, D.utcOffset = function() {
3645
3740
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
3646
- }, O.diff = function(V, $, P) {
3647
- var G, N = this, x = K.p($), Y = M(V), q = (Y.utcOffset() - this.utcOffset()) * a, J = this - Y, X = function() {
3648
- return K.m(N, Y);
3741
+ }, D.diff = function(K, V, N) {
3742
+ var G, $ = this, B = P.p(V), Y = M(K), q = (Y.utcOffset() - this.utcOffset()) * a, J = this - Y, X = function() {
3743
+ return P.m($, Y);
3649
3744
  };
3650
- switch (x) {
3745
+ switch (B) {
3651
3746
  case E:
3652
3747
  G = X() / 12;
3653
3748
  break;
@@ -3675,35 +3770,35 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
3675
3770
  default:
3676
3771
  G = J;
3677
3772
  }
3678
- return P ? G : K.a(G);
3679
- }, O.daysInMonth = function() {
3773
+ return N ? G : P.a(G);
3774
+ }, D.daysInMonth = function() {
3680
3775
  return this.endOf(d).$D;
3681
- }, O.$locale = function() {
3776
+ }, D.$locale = function() {
3682
3777
  return C[this.$L];
3683
- }, O.locale = function(V, $) {
3684
- if (!V)
3778
+ }, D.locale = function(K, V) {
3779
+ if (!K)
3685
3780
  return this.$L;
3686
- var P = this.clone(), G = D(V, $, !0);
3687
- return G && (P.$L = G), P;
3688
- }, O.clone = function() {
3689
- return K.w(this.$d, this);
3690
- }, O.toDate = function() {
3781
+ var N = this.clone(), G = O(K, V, !0);
3782
+ return G && (N.$L = G), N;
3783
+ }, D.clone = function() {
3784
+ return P.w(this.$d, this);
3785
+ }, D.toDate = function() {
3691
3786
  return new Date(this.valueOf());
3692
- }, O.toJSON = function() {
3787
+ }, D.toJSON = function() {
3693
3788
  return this.isValid() ? this.toISOString() : null;
3694
- }, O.toISOString = function() {
3789
+ }, D.toISOString = function() {
3695
3790
  return this.$d.toISOString();
3696
- }, O.toString = function() {
3791
+ }, D.toString = function() {
3697
3792
  return this.$d.toUTCString();
3698
3793
  }, w;
3699
3794
  }(), H = L.prototype;
3700
3795
  return M.prototype = H, [["$ms", s], ["$s", l], ["$m", o], ["$H", i], ["$W", c], ["$M", d], ["$y", E], ["$D", y]].forEach(function(w) {
3701
- H[w[1]] = function(O) {
3702
- return this.$g(O, w[0], w[1]);
3796
+ H[w[1]] = function(D) {
3797
+ return this.$g(D, w[0], w[1]);
3703
3798
  };
3704
- }), M.extend = function(w, O) {
3705
- return w.$i || (w(O, L, M), w.$i = !0), M;
3706
- }, M.locale = D, M.isDayjs = A, M.unix = function(w) {
3799
+ }), M.extend = function(w, D) {
3800
+ return w.$i || (w(D, L, M), w.$i = !0), M;
3801
+ }, M.locale = O, M.isDayjs = A, M.unix = function(w) {
3707
3802
  return M(1e3 * w);
3708
3803
  }, M.en = C[I], M.Ls = C, M.p = {}, M;
3709
3804
  });
@@ -3752,10 +3847,10 @@ function filesize(e, {
3752
3847
  } = {}) {
3753
3848
  let m = y, v = Number(e), T = [], k = 0, I = EMPTY;
3754
3849
  u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
3755
- const C = a === 10 ? 1e3 : 1024, R = p === !0, A = v < 0, D = Math[_];
3850
+ const C = a === 10 ? 1e3 : 1024, R = p === !0, A = v < 0, O = Math[_];
3756
3851
  if (typeof e != "bigint" && isNaN(e))
3757
3852
  throw new TypeError(INVALID_NUMBER);
3758
- if (typeof D !== FUNCTION)
3853
+ if (typeof O !== FUNCTION)
3759
3854
  throw new TypeError(INVALID_ROUND);
3760
3855
  if (A && (v = -v), (m === -1 || isNaN(m)) && (m = Math.floor(Math.log(v) / Math.log(C)), m < 0 && (m = 0)), m > 8 && (g > 0 && (g += 8 - m), m = 8), d === EXPONENT)
3761
3856
  return m;
@@ -3764,11 +3859,11 @@ function filesize(e, {
3764
3859
  else {
3765
3860
  k = v / (a === 2 ? Math.pow(2, m * 10) : Math.pow(1e3, m)), t && (k = k * 8, k >= C && m < 8 && (k = k / C, m++));
3766
3861
  const M = Math.pow(10, m > 0 ? n : 0);
3767
- T[0] = D(k * M) / M, T[0] === C && m < 8 && y === -1 && (T[0] = 1, m++), I = T[1] = a === 10 && m === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][m];
3862
+ T[0] = O(k * M) / M, T[0] === C && m < 8 && y === -1 && (T[0] = 1, m++), I = T[1] = a === 10 && m === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][m];
3768
3863
  }
3769
3864
  if (A && (T[0] = -T[0]), g > 0 && (T[0] = T[0].toPrecision(g)), T[1] = c[T[1]] || T[1], s === !0 ? T[0] = T[0].toLocaleString() : s.length > 0 ? T[0] = T[0].toLocaleString(s, l) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
3770
- const M = o || PERIOD, K = T[0].toString().split(M), L = K[1] || EMPTY, H = L.length, w = n - H;
3771
- T[0] = `${K[0]}${M}${L.padEnd(H + w, ZERO)}`;
3865
+ const M = o || PERIOD, P = T[0].toString().split(M), L = P[1] || EMPTY, H = L.length, w = n - H;
3866
+ T[0] = `${P[0]}${M}${L.padEnd(H + w, ZERO)}`;
3772
3867
  }
3773
3868
  return R && (T[1] = E[m] ? E[m] : STRINGS.fullform[u][m] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), d === ARRAY ? T : d === OBJECT ? {
3774
3869
  value: T[0],
@@ -5133,8 +5228,8 @@ function debounce(e, t, r) {
5133
5228
  return c = C, o = setTimeout(m, t), u ? E(C) : l;
5134
5229
  }
5135
5230
  function _(C) {
5136
- var R = C - i, A = C - c, D = t - R;
5137
- return d ? nativeMin$1(D, s - A) : D;
5231
+ var R = C - i, A = C - c, O = t - R;
5232
+ return d ? nativeMin$1(O, s - A) : O;
5138
5233
  }
5139
5234
  function g(C) {
5140
5235
  var R = C - i, A = C - c;
@@ -8464,7 +8559,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$u = () => ({
8464
8559
  row: I,
8465
8560
  model: C
8466
8561
  }) => {
8467
- var A, D, M, K, L;
8562
+ var A, O, M, P, L;
8468
8563
  const R = a.store.getSystemVarGridDetails(a.formID);
8469
8564
  switch (c.value = R ? cloneDeep(unref(toRaw(R))) : [], !0) {
8470
8565
  case v: {
@@ -8481,17 +8576,17 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$u = () => ({
8481
8576
  id: I.id
8482
8577
  }
8483
8578
  });
8484
- c.value = c.value.map((O) => {
8485
- var $;
8486
- const V = ($ = H == null ? void 0 : H.varGridDetails) == null ? void 0 : $.find((P) => P.var_nam === O.var_nam);
8487
- return V ? {
8488
- ...O,
8489
- ...V,
8490
- id: O.id
8491
- } : O;
8579
+ c.value = c.value.map((D) => {
8580
+ var V;
8581
+ const K = (V = H == null ? void 0 : H.varGridDetails) == null ? void 0 : V.find((N) => N.var_nam === D.var_nam);
8582
+ return K ? {
8583
+ ...D,
8584
+ ...K,
8585
+ id: D.id
8586
+ } : D;
8492
8587
  });
8493
- const w = (D = (A = H == null ? void 0 : H.varGridDetails) == null ? void 0 : A.map((O) => O.var_nam)) != null ? D : [];
8494
- u.value = c.value.filter((O) => w.includes(O.var_nam)).map((O) => O.id);
8588
+ const w = (O = (A = H == null ? void 0 : H.varGridDetails) == null ? void 0 : A.map((D) => D.var_nam)) != null ? O : [];
8589
+ u.value = c.value.filter((D) => w.includes(D.var_nam)).map((D) => D.id);
8495
8590
  } catch (H) {
8496
8591
  throw H;
8497
8592
  } finally {
@@ -8504,7 +8599,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$u = () => ({
8504
8599
  }
8505
8600
  switch (!0) {
8506
8601
  case k: {
8507
- C.value.grd_var_nam = ((M = C.value.grd_var_nam) != null ? M : "") + "_COPY", C.value.grd_var_nam_dsc = ((L = (K = C.value.grd_var_nam_dsc) != null ? K : C.value.grd_var_nam) != null ? L : "") + "_COPY";
8602
+ C.value.grd_var_nam = ((M = C.value.grd_var_nam) != null ? M : "") + "_COPY", C.value.grd_var_nam_dsc = ((L = (P = C.value.grd_var_nam_dsc) != null ? P : C.value.grd_var_nam) != null ? L : "") + "_COPY";
8508
8603
  break;
8509
8604
  }
8510
8605
  }
@@ -8577,9 +8672,9 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$u = () => ({
8577
8672
  onItemSelectAll: C,
8578
8673
  onItemSelect: R
8579
8674
  }) => {
8580
- const A = T.sort((D, M) => {
8581
- var K, L;
8582
- return ((K = D.srtseq) != null ? K : 0) - ((L = M.srtseq) != null ? L : 0);
8675
+ const A = T.sort((O, M) => {
8676
+ var P, L;
8677
+ return ((P = O.srtseq) != null ? P : 0) - ((L = M.srtseq) != null ? L : 0);
8583
8678
  });
8584
8679
  return d.value = A, createVNode(Table, {
8585
8680
  pagination: !1,
@@ -8592,11 +8687,11 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$u = () => ({
8592
8687
  columns: v === "left" ? p() : E(),
8593
8688
  rowKey: "id",
8594
8689
  dataSource: A,
8595
- customRow: (D) => {
8690
+ customRow: (O) => {
8596
8691
  let M = {
8597
- onClick: (K) => m(K, D, v, k)
8692
+ onClick: (P) => m(P, O, v, k)
8598
8693
  };
8599
- return v === "right" && (M["kg-host-frm_id"] = a.formID, M["kg-var_nam"] = D.var_nam), M;
8694
+ return v === "right" && (M["kg-host-frm_id"] = a.formID, M["kg-var_nam"] = O.var_nam), M;
8600
8695
  },
8601
8696
  rowSelection: g({
8602
8697
  disabled: I,
@@ -8619,9 +8714,9 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$u = () => ({
8619
8714
  disabled: v || C.disabled
8620
8715
  }),
8621
8716
  onSelectAll(C, R) {
8622
- const A = R.filter((D) => !D.disabled).map(({
8623
- key: D
8624
- }) => D);
8717
+ const A = R.filter((O) => !O.disabled).map(({
8718
+ key: O
8719
+ }) => O);
8625
8720
  k(A, C);
8626
8721
  },
8627
8722
  onSelect({
@@ -8878,15 +8973,15 @@ const getProps$r = () => ({
8878
8973
  default: () => {
8879
8974
  var A;
8880
8975
  let C, R;
8881
- return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((D) => {
8976
+ return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((O) => {
8882
8977
  var M;
8883
8978
  return createVNode(Menu.Item, {
8884
- key: D.id,
8885
- class: D.id === ((M = n.currentVarGridMaster.value) == null ? void 0 : M.id) ? "selected" : "",
8886
- "kg-var_nam": D.grd_var_nam,
8887
- onClick: () => _(D)
8979
+ key: O.id,
8980
+ class: O.id === ((M = n.currentVarGridMaster.value) == null ? void 0 : M.id) ? "selected" : "",
8981
+ "kg-var_nam": O.grd_var_nam,
8982
+ onClick: () => _(O)
8888
8983
  }, {
8889
- default: () => [n.t(D.grd_var_nam).value]
8984
+ default: () => [n.t(O.grd_var_nam).value]
8890
8985
  });
8891
8986
  }), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
8892
8987
  key: "save-grid-view",
@@ -8920,13 +9015,13 @@ const getProps$r = () => ({
8920
9015
  popupClassName: "kg-table-setting--submenu-popup--row-height"
8921
9016
  }, {
8922
9017
  default: () => {
8923
- let D, M, K;
9018
+ let O, M, P;
8924
9019
  return createVNode(Fragment, null, [createVNode(Menu.Item, {
8925
9020
  key: "L",
8926
9021
  class: u.value === "L" ? "selected" : "",
8927
9022
  onClick: () => s.store.setRowHeight(n.formID, "L")
8928
- }, _isSlot$a(D = a.t("kg.KgTable.rowHeightL")) ? D : {
8929
- default: () => [D]
9023
+ }, _isSlot$a(O = a.t("kg.KgTable.rowHeightL")) ? O : {
9024
+ default: () => [O]
8930
9025
  }), createVNode(Menu.Item, {
8931
9026
  key: "M",
8932
9027
  class: u.value === "M" ? "selected" : "",
@@ -8937,8 +9032,8 @@ const getProps$r = () => ({
8937
9032
  key: "H",
8938
9033
  class: u.value === "H" ? "selected" : "",
8939
9034
  onClick: () => s.store.setRowHeight(n.formID, "H")
8940
- }, _isSlot$a(K = a.t("kg.KgTable.rowHeightH")) ? K : {
8941
- default: () => [K]
9035
+ }, _isSlot$a(P = a.t("kg.KgTable.rowHeightH")) ? P : {
9036
+ default: () => [P]
8942
9037
  })]);
8943
9038
  },
8944
9039
  expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
@@ -9033,8 +9128,8 @@ const getProps$p = () => ({
9033
9128
  return !1;
9034
9129
  });
9035
9130
  const i = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
9036
- var k, I, C, R, A, D;
9037
- return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((I = o.selectedRow.value) == null ? void 0 : I[o.id.value]) && (!!n.isCreating.value && ((C = c.value) == null ? void 0 : C.crt_flg) === 1 || !!n.isUpdating.value && ((R = c.value) == null ? void 0 : R.upt_flg) === 1 || !!n.isCopying.value && ((A = c.value) == null ? void 0 : A.cpy_flg) === 1 || !!n.isDeleting.value && ((D = c.value) == null ? void 0 : D.del_flg) === 1);
9131
+ var k, I, C, R, A, O;
9132
+ return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((I = o.selectedRow.value) == null ? void 0 : I[o.id.value]) && (!!n.isCreating.value && ((C = c.value) == null ? void 0 : C.crt_flg) === 1 || !!n.isUpdating.value && ((R = c.value) == null ? void 0 : R.upt_flg) === 1 || !!n.isCopying.value && ((A = c.value) == null ? void 0 : A.cpy_flg) === 1 || !!n.isDeleting.value && ((O = c.value) == null ? void 0 : O.del_flg) === 1);
9038
9133
  }), d = computed(() => {
9039
9134
  var k, I;
9040
9135
  return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((I = o.selectedRow.value) == null ? void 0 : I[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);
@@ -9043,7 +9138,7 @@ const getProps$p = () => ({
9043
9138
  let k = "kg-table-td";
9044
9139
  return ((I = i.value) == null ? void 0 : I.align) === "center" ? k += " kg-table-td--center" : ((C = i.value) == null ? void 0 : C.align) === "right" && (k += " kg-table-td--right"), u.value && (k += " kg-table-td--submitting"), k;
9045
9140
  }), E = computed(() => {
9046
- var I, C, R, A, D;
9141
+ var I, C, R, A, O;
9047
9142
  if (e.kgValue === KG_TABLE_TEMP_ID)
9048
9143
  return "";
9049
9144
  let k = e.kgValue;
@@ -9051,7 +9146,7 @@ const getProps$p = () => ({
9051
9146
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
9052
9147
  {
9053
9148
  const M = KgUtil.tryParseJSON((C = i.value) == null ? void 0 : C.display_type_properties);
9054
- M.dscFieldName ? k = ((R = e.kgRow) == null ? void 0 : R[M.dscFieldName]) || e.kgValue : k = ((A = e.kgRow) == null ? void 0 : A[`${e.kgVarName}_dsc`]) || ((D = e.kgRow) == null ? void 0 : D[`${e.kgVarName}Dsc`]) || e.kgValue;
9149
+ M.dscFieldName ? k = ((R = e.kgRow) == null ? void 0 : R[M.dscFieldName]) || e.kgValue : k = ((A = e.kgRow) == null ? void 0 : A[`${e.kgVarName}_dsc`]) || ((O = e.kgRow) == null ? void 0 : O[`${e.kgVarName}Dsc`]) || e.kgValue;
9055
9150
  }
9056
9151
  break;
9057
9152
  }
@@ -9108,35 +9203,35 @@ const getProps$p = () => ({
9108
9203
  });
9109
9204
  }
9110
9205
  function v() {
9111
- var k, I, C, R, A, D, M, K, L, H, w;
9206
+ var k, I, C, R, A, O, M, P, L, H, w;
9112
9207
  if (u.value)
9113
9208
  return m();
9114
9209
  switch ((k = i.value) == null ? void 0 : k.display_type) {
9115
9210
  case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
9116
- const O = KgUtil.tryParseJSON((I = i.value) == null ? void 0 : I.display_type_properties);
9211
+ const D = KgUtil.tryParseJSON((I = i.value) == null ? void 0 : I.display_type_properties);
9117
9212
  return createVNode(KgYesOrNo, {
9118
- kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((C = O.yValue) != null ? C : 1),
9119
- kgNilAsFalse: O.nilAsFalse
9213
+ kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((C = D.yValue) != null ? C : 1),
9214
+ kgNilAsFalse: D.nilAsFalse
9120
9215
  }, null);
9121
9216
  }
9122
9217
  case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
9123
- const O = KgUtil.tryParseJSON((R = i.value) == null ? void 0 : R.display_type_properties), V = isArrayLike(O) && O.find(($) => $.value === e.kgValue);
9124
- if (V) {
9125
- const $ = n.t(V.varName).value;
9126
- return $ ? createVNode(Tag, {
9127
- color: (A = V.color) != null ? A : "default"
9128
- }, _isSlot$9($) ? $ : {
9129
- default: () => [$]
9218
+ const D = KgUtil.tryParseJSON((R = i.value) == null ? void 0 : R.display_type_properties), K = isArrayLike(D) && D.find((V) => V.value === e.kgValue);
9219
+ if (K) {
9220
+ const V = n.t(K.varName).value;
9221
+ return V ? createVNode(Tag, {
9222
+ color: (A = K.color) != null ? A : "default"
9223
+ }, _isSlot$9(V) ? V : {
9224
+ default: () => [V]
9130
9225
  }) : T();
9131
9226
  } else
9132
9227
  return T();
9133
9228
  }
9134
9229
  case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
9135
- const O = KgUtil.tryParseJSON((D = i.value) == null ? void 0 : D.display_type_properties);
9136
- if (O.isTag && isArrayLike(O.tagColors)) {
9137
- const V = O.tagColors.find(($) => $.value === e.kgValue);
9230
+ const D = KgUtil.tryParseJSON((O = i.value) == null ? void 0 : O.display_type_properties);
9231
+ if (D.isTag && isArrayLike(D.tagColors)) {
9232
+ const K = D.tagColors.find((V) => V.value === e.kgValue);
9138
9233
  return E.value ? createVNode(Tag, {
9139
- color: (M = V == null ? void 0 : V.color) != null ? M : "default"
9234
+ color: (M = K == null ? void 0 : K.color) != null ? M : "default"
9140
9235
  }, {
9141
9236
  default: () => [E.value]
9142
9237
  }) : T();
@@ -9144,15 +9239,15 @@ const getProps$p = () => ({
9144
9239
  return T();
9145
9240
  }
9146
9241
  case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
9147
- const O = KgUtil.tryParseJSON((K = i.value) == null ? void 0 : K.display_type_properties), V = (H = (L = e.kgRow) == null ? void 0 : L[O.leftColumn]) != null ? H : 0;
9242
+ const D = KgUtil.tryParseJSON((P = i.value) == null ? void 0 : P.display_type_properties), K = (H = (L = e.kgRow) == null ? void 0 : L[D.leftColumn]) != null ? H : 0;
9148
9243
  switch (e.kgContext) {
9149
9244
  case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
9150
- return V;
9245
+ return K;
9151
9246
  case KG_TABLE_CELL_CONTEXT.TABLE_CELL:
9152
9247
  return createVNode(KgProgressA, {
9153
- kgTextWidth: O.textWidth,
9154
- kgLeft: V,
9155
- kgRight: (w = e.kgRow) == null ? void 0 : w[O.rightColumn]
9248
+ kgTextWidth: D.textWidth,
9249
+ kgLeft: K,
9250
+ kgRight: (w = e.kgRow) == null ? void 0 : w[D.rightColumn]
9156
9251
  }, null);
9157
9252
  }
9158
9253
  break;
@@ -9262,27 +9357,27 @@ function _useColumns(e) {
9262
9357
  index: C
9263
9358
  }) => C + 1
9264
9359
  }, ...(I = m == null ? void 0 : m.map((C, R) => {
9265
- var $, P, G;
9360
+ var V, N, G;
9266
9361
  const A = C.var_nam;
9267
- function D() {
9362
+ function O() {
9268
9363
  return C.width === "auto" ? "auto" : Number(C.width) || KG_TABLE_TD_DEFAULT_WIDTH;
9269
9364
  }
9270
9365
  function M() {
9271
9366
  return r.t(A).value;
9272
9367
  }
9273
- function K() {
9368
+ function P() {
9274
9369
  if (C.fix_left_flg === 1)
9275
9370
  return "left";
9276
9371
  if (C.fix_right_flg === 1)
9277
9372
  return "right";
9278
9373
  }
9279
9374
  function L() {
9280
- var N, x, Y, q;
9281
- return !(C.ord_flg !== 1 || (x = (N = t == null ? void 0 : t.value) == null ? void 0 : N.KgTable) != null && x.kgDisabled || isNil((q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) == null ? void 0 : q.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || y.length <= 0);
9375
+ var $, B, Y, q;
9376
+ return !(C.ord_flg !== 1 || (B = ($ = t == null ? void 0 : t.value) == null ? void 0 : $.KgTable) != null && B.kgDisabled || isNil((q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) == null ? void 0 : q.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || y.length <= 0);
9282
9377
  }
9283
9378
  function H() {
9284
- var N, x, Y, q, J, X;
9285
- if (((x = (N = E.option.value.KgTable) == null ? void 0 : N.filter) == null ? void 0 : x.on) === !0 && C.filter_flag === 1 && !((q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) != null && q.kgDisabled) && !(isNil((X = (J = t == null ? void 0 : t.value) == null ? void 0 : J.KgTable) == null ? void 0 : X.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(y.length <= 0))
9379
+ var $, B, Y, q, J, X;
9380
+ if (((B = ($ = E.option.value.KgTable) == null ? void 0 : $.filter) == null ? void 0 : B.on) === !0 && C.filter_flag === 1 && !((q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) != null && q.kgDisabled) && !(isNil((X = (J = t == null ? void 0 : t.value) == null ? void 0 : J.KgTable) == null ? void 0 : X.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(y.length <= 0))
9286
9381
  return uniqBy(y.map((ee) => {
9287
9382
  var le;
9288
9383
  return {
@@ -9299,13 +9394,13 @@ function _useColumns(e) {
9299
9394
  }), "value");
9300
9395
  }
9301
9396
  function w() {
9302
- var N, x, Y;
9303
- return ((x = (N = E.option.value.KgTable) == null ? void 0 : N.filter) == null ? void 0 : x.on) !== !0 ? null : ((Y = o.value) == null ? void 0 : Y[A]) || null;
9397
+ var $, B, Y;
9398
+ return ((B = ($ = E.option.value.KgTable) == null ? void 0 : $.filter) == null ? void 0 : B.on) !== !0 ? null : ((Y = o.value) == null ? void 0 : Y[A]) || null;
9304
9399
  }
9305
- function O() {
9400
+ function D() {
9306
9401
  return ["left", "center", "right"].includes(C.align || "") ? C.align : "left";
9307
9402
  }
9308
- const V = D();
9403
+ const K = O();
9309
9404
  switch (C.ord) {
9310
9405
  case 0:
9311
9406
  (!i.value.field || !i.value.order) && (i.value = {
@@ -9324,29 +9419,29 @@ function _useColumns(e) {
9324
9419
  key: A,
9325
9420
  dataIndex: A,
9326
9421
  title: M(),
9327
- width: V,
9328
- resizable: typeof V == "number",
9422
+ width: K,
9423
+ resizable: typeof K == "number",
9329
9424
  minWidth: KG_TABLE_TD_MIN_WIDTH,
9330
9425
  maxWidth: KG_TABLE_TD_MAX_WIDTH,
9331
- align: O(),
9332
- fixed: K(),
9426
+ align: D(),
9427
+ fixed: P(),
9333
9428
  sorter: L(),
9334
- sortOrder: (($ = i.value) == null ? void 0 : $.field) === A && (G = (P = i.value) == null ? void 0 : P.order) != null ? G : null,
9429
+ sortOrder: ((V = i.value) == null ? void 0 : V.field) === A && (G = (N = i.value) == null ? void 0 : N.order) != null ? G : null,
9335
9430
  filteredValue: w(),
9336
9431
  filters: H(),
9337
- onFilter: (N, x) => N === "" ? isNil(x == null ? void 0 : x[A]) || (x == null ? void 0 : x[A]) === "" : (x == null ? void 0 : x[A]) === N,
9432
+ onFilter: ($, B) => $ === "" ? isNil(B == null ? void 0 : B[A]) || (B == null ? void 0 : B[A]) === "" : (B == null ? void 0 : B[A]) === $,
9338
9433
  customHeaderCell: () => ({
9339
9434
  "kg-frm_id": r.formID,
9340
9435
  "kg-var_nam": A,
9341
9436
  draggable: !0
9342
9437
  }),
9343
- customCell: (N) => {
9438
+ customCell: ($) => {
9344
9439
  var Y;
9345
- const x = r.store.getVarSubmitField(r.formID, A);
9440
+ const B = r.store.getVarSubmitField(r.formID, A);
9346
9441
  return {
9347
9442
  "kg-frm_id": r.formID,
9348
9443
  "kg-var_nam": A,
9349
- class: n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && N[s.id.value] === ((Y = s.selectedRow.value) == null ? void 0 : Y[s.id.value]) && (!!r.isCreating.value && (x == null ? void 0 : x.crt_flg) === 1 || !!r.isUpdating.value && (x == null ? void 0 : x.upt_flg) === 1 || !!r.isCopying.value && (x == null ? void 0 : x.cpy_flg) === 1 || !!r.isDeleting.value && (x == null ? void 0 : x.del_flg) === 1) ? "submitting" : ""
9444
+ class: n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && $[s.id.value] === ((Y = s.selectedRow.value) == null ? void 0 : Y[s.id.value]) && (!!r.isCreating.value && (B == null ? void 0 : B.crt_flg) === 1 || !!r.isUpdating.value && (B == null ? void 0 : B.upt_flg) === 1 || !!r.isCopying.value && (B == null ? void 0 : B.cpy_flg) === 1 || !!r.isDeleting.value && (B == null ? void 0 : B.del_flg) === 1) ? "submitting" : ""
9350
9445
  };
9351
9446
  }
9352
9447
  };
@@ -9511,7 +9606,7 @@ const KgTable$1 = "", getProps$o = () => ({
9511
9606
  setup: function(e) {
9512
9607
  var ae;
9513
9608
  const t = inject("$dayjs", dayjs), r = inject(DI_KG_VAR__KG_SLOTS, null), a = inject(DI_KG_VAR__KG_PROPS, null), n = useKg(), s = useKgVar(), l = useKgSearch(), o = useKgTable(), i = useKgSubmit();
9514
- l.onSearch(async (F) => (N(F), !1)), l.onReset(async () => (p.value = {}, !1)), o.store.$onAction(async ({
9609
+ l.onSearch(async (F) => ($(F), !1)), l.onReset(async () => (p.value = {}, !1)), o.store.$onAction(async ({
9515
9610
  name: F,
9516
9611
  args: U
9517
9612
  }) => {
@@ -9521,16 +9616,16 @@ const KgTable$1 = "", getProps$o = () => ({
9521
9616
  const Q = U[1], z = U[2], te = Q[o.id.value];
9522
9617
  switch (!0) {
9523
9618
  case (z && !w.value.includes(te)):
9524
- x([...w.value, te]);
9619
+ B([...w.value, te]);
9525
9620
  break;
9526
9621
  case (!z && w.value.includes(te)):
9527
- x(without$1(w.value, te));
9622
+ B(without$1(w.value, te));
9528
9623
  break;
9529
9624
  }
9530
9625
  }
9531
9626
  break;
9532
9627
  case "clearDatas":
9533
- U[0] === s.formID && (o.store.setDatas(s.formID, []), O.total = 0, G(), c.value = []);
9628
+ U[0] === s.formID && (o.store.setDatas(s.formID, []), D.total = 0, G(), c.value = []);
9534
9629
  break;
9535
9630
  }
9536
9631
  });
@@ -9554,8 +9649,8 @@ const KgTable$1 = "", getProps$o = () => ({
9554
9649
  }), k = computed(() => {
9555
9650
  var U, Q, z, te, ue, ie, _e, ve, Ce;
9556
9651
  let F = {
9557
- pageNo: O.pageIndex,
9558
- pageSize: O.pageSize,
9652
+ pageNo: D.pageIndex,
9653
+ pageSize: D.pageSize,
9559
9654
  column: (Q = (U = p.value) == null ? void 0 : U.field) != null ? Q : void 0,
9560
9655
  order: p.value.order === "ascend" ? "asc" : p.value.order === "descend" ? "desc" : void 0,
9561
9656
  ...(te = (z = l.model) == null ? void 0 : z.value) != null ? te : {}
@@ -9579,13 +9674,13 @@ const KgTable$1 = "", getProps$o = () => ({
9579
9674
  return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgCheckboxDisabled;
9580
9675
  if (!isNil(e.kgCheckboxDisabled))
9581
9676
  return e.kgCheckboxDisabled;
9582
- }), R = computed(() => !!I.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), A = computed(() => !!I.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || O.total === 0), D = computed(() => {
9677
+ }), R = computed(() => !!I.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), A = computed(() => !!I.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || D.total === 0), O = computed(() => {
9583
9678
  var F;
9584
9679
  return !!((F = r == null ? void 0 : r.KgTable) != null && F.expandedRowRender);
9585
9680
  }), M = computed(() => {
9586
9681
  var F;
9587
9682
  return ((F = s.varGridConfig.value) == null ? void 0 : F.show_check_column_flg) === 1;
9588
- }), K = computed(() => {
9683
+ }), P = computed(() => {
9589
9684
  if (!!M.value)
9590
9685
  return {
9591
9686
  fixed: "left",
@@ -9600,7 +9695,7 @@ const KgTable$1 = "", getProps$o = () => ({
9600
9695
  };
9601
9696
  },
9602
9697
  onSelect: (F) => Y(F),
9603
- onChange: (F) => o.isMultiSelect.value && x(F)
9698
+ onChange: (F) => o.isMultiSelect.value && B(F)
9604
9699
  };
9605
9700
  }), L = computed(() => {
9606
9701
  var U;
@@ -9621,29 +9716,29 @@ const KgTable$1 = "", getProps$o = () => ({
9621
9716
  var U;
9622
9717
  let F = "kg-table-bottom";
9623
9718
  return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (F += " kg-table-bottom--border"), F;
9624
- }), w = (ae = o.store.getSelectedRowKeys(s.formID)) != null ? ae : ref([]), O = reactive({
9719
+ }), w = (ae = o.store.getSelectedRowKeys(s.formID)) != null ? ae : ref([]), D = reactive({
9625
9720
  pageIndex: 1,
9626
9721
  pageSize: 10,
9627
9722
  total: 0
9628
- }), V = watch(o.pageSizeOption, (F) => {
9629
- F && (setTimeout(() => V()), O.pageSize = F, o.store.emit(s.formID, "ready", {}), o.store.setIsReady(s.formID, !0));
9723
+ }), K = watch(o.pageSizeOption, (F) => {
9724
+ F && (setTimeout(() => K()), D.pageSize = F, o.store.emit(s.formID, "ready", {}), o.store.setIsReady(s.formID, !0));
9630
9725
  }, {
9631
9726
  immediate: !0
9632
9727
  });
9633
9728
  watch(o.pageSizeOptions, (F) => {
9634
- F.length > 0 && !F.includes(O.pageSize) && (O.pageSize = o.pageSizeOption.value);
9729
+ F.length > 0 && !F.includes(D.pageSize) && (D.pageSize = o.pageSizeOption.value);
9635
9730
  }), watch([T, o.isReadAutomatically, l.isReady], ([F, U, Q]) => {
9636
- F && U && Q && !o.store.getIsRetrieved(s.formID) && N({
9731
+ F && U && Q && !o.store.getIsRetrieved(s.formID) && $({
9637
9732
  isSearchFirstPage: !0
9638
9733
  });
9639
9734
  }, {
9640
9735
  immediate: !0
9641
9736
  }), watch(s.isCreating, (F, U) => {
9642
- F === !0 ? $() : F === !1 && U === !0 && P();
9737
+ F === !0 ? V() : F === !1 && U === !0 && N();
9643
9738
  }), onUnmounted(() => {
9644
9739
  o.store.dispose(s.formID);
9645
9740
  });
9646
- function $() {
9741
+ function V() {
9647
9742
  if (i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
9648
9743
  const F = {
9649
9744
  [o.id.value]: KG_TABLE_TEMP_ID
@@ -9651,13 +9746,13 @@ const KgTable$1 = "", getProps$o = () => ({
9651
9746
  o.store.setDatas(s.formID, [F, ...m.value]), o.store.setSelectedRows(s.formID, [F]);
9652
9747
  }
9653
9748
  }
9654
- function P() {
9749
+ function N() {
9655
9750
  const F = m.value.find((U) => U[o.id.value] === KG_TABLE_TEMP_ID);
9656
9751
  F && (o.store.setDatas(s.formID, without$1(m.value, F)), o.store.setSelectedRows(s.formID, []));
9657
9752
  }
9658
9753
  function G(F, U) {
9659
9754
  var Q;
9660
- if (!(!!I.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!K.value) {
9755
+ if (!(!!I.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!P.value) {
9661
9756
  if (!U) {
9662
9757
  o.store.setSelectedRows(s.formID, []);
9663
9758
  return;
@@ -9680,7 +9775,7 @@ const KgTable$1 = "", getProps$o = () => ({
9680
9775
  }
9681
9776
  }
9682
9777
  }
9683
- function N(F = {}) {
9778
+ function $(F = {}) {
9684
9779
  KgLogger.debug(`${s.formID} | KgTable | retrieve() | \u6267\u884C\u5F00\u59CB.`, {
9685
9780
  param: F
9686
9781
  });
@@ -9697,7 +9792,7 @@ const KgTable$1 = "", getProps$o = () => ({
9697
9792
  });
9698
9793
  return;
9699
9794
  }
9700
- F.isSearchFirstPage && (O.pageIndex = 1), o.store.setIsRetrieving(s.formID, !0);
9795
+ F.isSearchFirstPage && (D.pageIndex = 1), o.store.setIsRetrieving(s.formID, !0);
9701
9796
  try {
9702
9797
  const be = KgUtil.parseParams(k.value, o.profileFormID.value, t), ye = ref({});
9703
9798
  if (!await o.store.emit(s.formID, "beforeRetrieve", {
@@ -9707,7 +9802,7 @@ const KgTable$1 = "", getProps$o = () => ({
9707
9802
  const ce = ((te = (z = n.option.value.KgSearch) == null ? void 0 : z.dynamicQuery) == null ? void 0 : te.on) === !0 && ((ue = s.currentVarProfileMaster.value) == null ? void 0 : ue.dyn_flg) === 1, {
9708
9803
  sql: Te,
9709
9804
  whereSql: Ae,
9710
- orderBySql: B
9805
+ orderBySql: x
9711
9806
  } = KgUtil.getQuerySql(k.value, o.profileFormID.value, null, t), W = await httpClient().request({
9712
9807
  method: (_e = (ie = s.varButtonSearch.value) == null ? void 0 : ie.cmd_method) != null ? _e : "GET",
9713
9808
  url: T.value,
@@ -9717,7 +9812,7 @@ const KgTable$1 = "", getProps$o = () => ({
9717
9812
  [KG_HTTP_HEADERS.KG_DYNAMIC_QUERY]: ce,
9718
9813
  [KG_HTTP_HEADERS.KG_QUERY_SQL]: Te,
9719
9814
  [KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL]: Ae,
9720
- [KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]: B
9815
+ [KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]: x
9721
9816
  }
9722
9817
  }, {
9723
9818
  isReturnNativeResponse: !0,
@@ -9742,7 +9837,7 @@ const KgTable$1 = "", getProps$o = () => ({
9742
9837
  setDatas(ce) {
9743
9838
  o.store.setDatas(s.formID, ce);
9744
9839
  }
9745
- }), d.value = {}, o.store.setDatas(s.formID, Ee.value), O.total = Me.value;
9840
+ }), d.value = {}, o.store.setDatas(s.formID, Ee.value), D.total = Me.value;
9746
9841
  const Ie = cloneDeep(w.value);
9747
9842
  G(), c.value = [], await nextTick(), F.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, Ie.map((ce) => {
9748
9843
  var Te;
@@ -9762,7 +9857,7 @@ const KgTable$1 = "", getProps$o = () => ({
9762
9857
  }
9763
9858
  }
9764
9859
  }
9765
- function x(F) {
9860
+ function B(F) {
9766
9861
  o.store.setSelectedRows(s.formID, F.map((U) => {
9767
9862
  var Q;
9768
9863
  return (Q = m.value) == null ? void 0 : Q.find((z) => z[o.id.value] === U);
@@ -9795,7 +9890,7 @@ const KgTable$1 = "", getProps$o = () => ({
9795
9890
  async function J(F, U, Q, z) {
9796
9891
  switch (z.action) {
9797
9892
  case "sort": {
9798
- p.value = Q, p.value.order || (p.value.field = void 0), await nextTick(), N({
9893
+ p.value = Q, p.value.order || (p.value.field = void 0), await nextTick(), $({
9799
9894
  isSearchFirstPage: !0
9800
9895
  });
9801
9896
  break;
@@ -9817,7 +9912,7 @@ const KgTable$1 = "", getProps$o = () => ({
9817
9912
  }
9818
9913
  }
9819
9914
  function ee(F, U) {
9820
- U !== O.pageSize ? (O.pageIndex = 1, O.pageSize = U) : O.pageIndex = F, N();
9915
+ U !== D.pageSize ? (D.pageIndex = 1, D.pageSize = U) : D.pageIndex = F, $();
9821
9916
  }
9822
9917
  function le({
9823
9918
  title: F,
@@ -9840,14 +9935,14 @@ const KgTable$1 = "", getProps$o = () => ({
9840
9935
  fixed: "bottom"
9841
9936
  }, {
9842
9937
  default: () => [createVNode(TableSummary.Row, null, {
9843
- default: () => [D.value && createVNode(TableSummary.Cell, {
9938
+ default: () => [O.value && createVNode(TableSummary.Cell, {
9844
9939
  index: 0
9845
9940
  }, null), M.value && createVNode(TableSummary.Cell, {
9846
- index: D.value ? 1 : 0
9941
+ index: O.value ? 1 : 0
9847
9942
  }, null), u.value.map((U, Q) => {
9848
9943
  const z = String(U.dataIndex), te = z ? s.store.getVarGridDetail(s.formID, z) : null, ue = (() => ["left", "center", "right"].includes((te == null ? void 0 : te.align) || "") ? te == null ? void 0 : te.align : "left")();
9849
9944
  let ie = Q;
9850
- return D.value && M.value ? ie += 2 : (D.value || M.value) && (ie += 1), createVNode(TableSummary.Cell, {
9945
+ return O.value && M.value ? ie += 2 : (O.value || M.value) && (ie += 1), createVNode(TableSummary.Cell, {
9851
9946
  index: ie,
9852
9947
  align: ue
9853
9948
  }, {
@@ -9889,7 +9984,7 @@ const KgTable$1 = "", getProps$o = () => ({
9889
9984
  rowClassName: (U = (F = a == null ? void 0 : a.value) == null ? void 0 : F.KgTable) == null ? void 0 : U.kgRowClassName,
9890
9985
  expandColumnWidth: 28,
9891
9986
  expandedRowKeys: c.value,
9892
- rowSelection: K.value,
9987
+ rowSelection: P.value,
9893
9988
  customRow: (z) => ({
9894
9989
  onClick: (te) => G(te, z)
9895
9990
  }),
@@ -9908,7 +10003,7 @@ const KgTable$1 = "", getProps$o = () => ({
9908
10003
  class: "left"
9909
10004
  }, [o.isShowBottomLeft.value && createVNode(KgTableInfo, {
9910
10005
  kgShowClearCheck: w.value.length > 0,
9911
- kgShowClearTable: O.total > 0,
10006
+ kgShowClearTable: D.total > 0,
9912
10007
  kgShowLocate: w.value.length === 1,
9913
10008
  kgTotal: w.value.length,
9914
10009
  kgDisabled: R.value
@@ -9916,10 +10011,10 @@ const KgTable$1 = "", getProps$o = () => ({
9916
10011
  class: "right"
9917
10012
  }, [o.isShowBottomRight.value && createVNode(Pagination, {
9918
10013
  size: "default",
9919
- current: O.pageIndex,
9920
- pageSize: O.pageSize,
10014
+ current: D.pageIndex,
10015
+ pageSize: D.pageSize,
9921
10016
  pageSizeOptions: o.pageSizeOptions.value.map((z) => String(z)),
9922
- total: O.total,
10017
+ total: D.total,
9923
10018
  showSizeChanger: !0,
9924
10019
  showQuickJumper: !1,
9925
10020
  hideOnSinglePage: !1,
@@ -10242,9 +10337,9 @@ function useKgFormItemSelect() {
10242
10337
  }), y;
10243
10338
  });
10244
10339
  async function p() {
10245
- var k, I, C, R, A, D, M, K;
10340
+ var k, I, C, R, A, O, M, P;
10246
10341
  let y = [];
10247
- const _ = (k = n.value) == null ? void 0 : k.cmd, g = (C = (I = n.value) == null ? void 0 : I.cmd_method) != null ? C : "GET", m = (A = (R = n.value) == null ? void 0 : R.val_clm) != null ? A : "", v = (M = (D = n.value) == null ? void 0 : D.lbl_clm) != null ? M : "";
10342
+ const _ = (k = n.value) == null ? void 0 : k.cmd, g = (C = (I = n.value) == null ? void 0 : I.cmd_method) != null ? C : "GET", m = (A = (R = n.value) == null ? void 0 : R.val_clm) != null ? A : "", v = (M = (O = n.value) == null ? void 0 : O.lbl_clm) != null ? M : "";
10248
10343
  if (!_ || !m || !v) {
10249
10344
  KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
10250
10345
  frm_id: a.formID,
@@ -10259,7 +10354,7 @@ function useKgFormItemSelect() {
10259
10354
  try {
10260
10355
  o.value = !0;
10261
10356
  const L = KgUtil.parseParams(d.value, null, e);
10262
- T = await ((K = httpClient()) == null ? void 0 : K.request({
10357
+ T = await ((P = httpClient()) == null ? void 0 : P.request({
10263
10358
  url: _,
10264
10359
  method: g,
10265
10360
  params: L,
@@ -10778,15 +10873,15 @@ const KgFormItem = defineComponent({
10778
10873
  const a = inject(DI_FORM_MODEL, computed(() => ({}))), n = inject(DI_FORM_REF, ref(null)), s = useKg(), l = useKgVar(), o = useKgForm(l.formID), i = useKgSearch(l.formID);
10779
10874
  o.onLookupOk(async ({
10780
10875
  var_nam: w,
10781
- model: O,
10782
- isMultiple: V,
10783
- value: $,
10784
- values: P
10876
+ model: D,
10877
+ isMultiple: K,
10878
+ value: V,
10879
+ values: N
10785
10880
  }) => {
10786
10881
  var G;
10787
10882
  switch (w) {
10788
10883
  case e.kgVarName:
10789
- O.value && (V ? O.value[e.kgVarName] = P : O.value[e.kgVarName] = $), (G = n.value) == null || G.validate([e.kgVarName]);
10884
+ D.value && (K ? D.value[e.kgVarName] = N : D.value[e.kgVarName] = V), (G = n.value) == null || G.validate([e.kgVarName]);
10790
10885
  break;
10791
10886
  }
10792
10887
  return !1;
@@ -10797,7 +10892,7 @@ const KgFormItem = defineComponent({
10797
10892
  } = _useRules(e), {
10798
10893
  controlType: _
10799
10894
  } = useKgFormItem(e), g = computed(() => {
10800
- var O, V, $, P, G;
10895
+ var D, K, V, N, G;
10801
10896
  if (l.isRetrieving.value)
10802
10897
  return !0;
10803
10898
  let w = !1;
@@ -10806,18 +10901,18 @@ const KgFormItem = defineComponent({
10806
10901
  else
10807
10902
  switch (e.kgContext) {
10808
10903
  case KG_FORM_CONTEXT.SEARCH:
10809
- w = ((O = d.value) == null ? void 0 : O.ena_flg) === 0;
10904
+ w = ((D = d.value) == null ? void 0 : D.ena_flg) === 0;
10810
10905
  break;
10811
10906
  case KG_FORM_CONTEXT.SUBMIT:
10812
10907
  switch (!0) {
10813
10908
  case l.isCreating.value:
10814
- w = ((V = p.value) == null ? void 0 : V.crt_ena_flg) === 0;
10909
+ w = ((K = p.value) == null ? void 0 : K.crt_ena_flg) === 0;
10815
10910
  break;
10816
10911
  case l.isUpdating.value:
10817
- w = (($ = p.value) == null ? void 0 : $.upt_ena_flg) === 0;
10912
+ w = ((V = p.value) == null ? void 0 : V.upt_ena_flg) === 0;
10818
10913
  break;
10819
10914
  case l.isCopying.value:
10820
- w = ((P = p.value) == null ? void 0 : P.cpy_ena_flg) === 0;
10915
+ w = ((N = p.value) == null ? void 0 : N.cpy_ena_flg) === 0;
10821
10916
  break;
10822
10917
  case l.isDeleting.value:
10823
10918
  w = ((G = p.value) == null ? void 0 : G.del_ena_flg) === 0;
@@ -10827,40 +10922,40 @@ const KgFormItem = defineComponent({
10827
10922
  }
10828
10923
  return w;
10829
10924
  }), m = computed(() => {
10830
- var O, V, $, P;
10925
+ var D, K, V, N;
10831
10926
  let w = " ";
10832
10927
  if (e.kgPlaceholder)
10833
10928
  w = e.kgPlaceholder;
10834
10929
  else
10835
10930
  switch (e.kgContext) {
10836
10931
  case KG_FORM_CONTEXT.SEARCH:
10837
- w = l.t((V = (O = d.value) == null ? void 0 : O.placeholder) != null ? V : " ").value;
10932
+ w = l.t((K = (D = d.value) == null ? void 0 : D.placeholder) != null ? K : " ").value;
10838
10933
  break;
10839
10934
  case KG_FORM_CONTEXT.SUBMIT:
10840
- w = l.t((P = ($ = p.value) == null ? void 0 : $.placeholder) != null ? P : " ").value;
10935
+ w = l.t((N = (V = p.value) == null ? void 0 : V.placeholder) != null ? N : " ").value;
10841
10936
  break;
10842
10937
  }
10843
10938
  return w;
10844
10939
  }), v = computed(() => {
10845
- var O, V, $, P, G, N, x, Y, q, J;
10940
+ var D, K, V, N, G, $, B, Y, q, J;
10846
10941
  let w = 6;
10847
10942
  if (e.kgSpan !== void 0)
10848
10943
  w = e.kgSpan;
10849
10944
  else
10850
10945
  switch (e.kgContext) {
10851
10946
  case KG_FORM_CONTEXT.SEARCH:
10852
- w = (V = (O = d.value) == null ? void 0 : O.width) != null ? V : 6;
10947
+ w = (K = (D = d.value) == null ? void 0 : D.width) != null ? K : 6;
10853
10948
  break;
10854
10949
  case KG_FORM_CONTEXT.SUBMIT:
10855
10950
  switch (!0) {
10856
10951
  case l.isCreating.value:
10857
- w = (P = ($ = p.value) == null ? void 0 : $.crt_width) != null ? P : 6;
10952
+ w = (N = (V = p.value) == null ? void 0 : V.crt_width) != null ? N : 6;
10858
10953
  break;
10859
10954
  case l.isUpdating.value:
10860
- w = (N = (G = p.value) == null ? void 0 : G.upt_width) != null ? N : 6;
10955
+ w = ($ = (G = p.value) == null ? void 0 : G.upt_width) != null ? $ : 6;
10861
10956
  break;
10862
10957
  case l.isCopying.value:
10863
- w = (Y = (x = p.value) == null ? void 0 : x.cpy_width) != null ? Y : 6;
10958
+ w = (Y = (B = p.value) == null ? void 0 : B.cpy_width) != null ? Y : 6;
10864
10959
  break;
10865
10960
  case l.isDeleting.value:
10866
10961
  w = (J = (q = p.value) == null ? void 0 : q.del_width) != null ? J : 6;
@@ -10872,59 +10967,59 @@ const KgFormItem = defineComponent({
10872
10967
  VarSubmitField: p.value
10873
10968
  }), 6);
10874
10969
  }), T = computed(() => {
10875
- var O, V, $, P, G;
10970
+ var D, K, V, N, G;
10876
10971
  let w = null;
10877
10972
  if (e.kgSpan !== void 0)
10878
10973
  w = e.kgSpan;
10879
10974
  else
10880
10975
  switch (e.kgContext) {
10881
10976
  case KG_FORM_CONTEXT.SEARCH:
10882
- w = (O = d.value) == null ? void 0 : O.width;
10977
+ w = (D = d.value) == null ? void 0 : D.width;
10883
10978
  break;
10884
10979
  case KG_FORM_CONTEXT.SUBMIT:
10885
10980
  switch (!0) {
10886
10981
  case l.isCreating.value:
10887
- w = (V = p.value) == null ? void 0 : V.crt_width;
10982
+ w = (K = p.value) == null ? void 0 : K.crt_width;
10888
10983
  break;
10889
10984
  case l.isUpdating.value:
10890
- w = ($ = p.value) == null ? void 0 : $.upt_width;
10985
+ w = (V = p.value) == null ? void 0 : V.upt_width;
10891
10986
  break;
10892
10987
  case l.isCopying.value:
10893
- w = (P = p.value) == null ? void 0 : P.cpy_width;
10988
+ w = (N = p.value) == null ? void 0 : N.cpy_width;
10894
10989
  break;
10895
10990
  case l.isDeleting.value:
10896
10991
  w = (G = p.value) == null ? void 0 : G.del_width;
10897
10992
  break;
10898
10993
  }
10899
10994
  }
10900
- return w = Number(w), new Array(24).fill(0).map((N, x) => x + 1).includes(w) ? w : null;
10995
+ return w = Number(w), new Array(24).fill(0).map(($, B) => B + 1).includes(w) ? w : null;
10901
10996
  }), k = computed(() => {
10902
- var $, P;
10997
+ var V, N;
10903
10998
  const w = get(A.value, "$el.parentElement");
10904
- if (w && !(($ = w.classList) != null && $.contains("ant-row")))
10999
+ if (w && !((V = w.classList) != null && V.contains("ant-row")))
10905
11000
  throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
10906
- let O = {};
10907
- const V = Math.abs(Number.parseInt((P = get(A.value, "$el.parentElement.style.marginLeft")) != null ? P : "0px"));
10908
- return Number.isNaN(V) || (O = {
10909
- paddingLeft: `${V}px !important`,
10910
- paddingRight: `${V}px !important`
10911
- }), O;
11001
+ let D = {};
11002
+ const K = Math.abs(Number.parseInt((N = get(A.value, "$el.parentElement.style.marginLeft")) != null ? N : "0px"));
11003
+ return Number.isNaN(K) || (D = {
11004
+ paddingLeft: `${K}px !important`,
11005
+ paddingRight: `${K}px !important`
11006
+ }), D;
10912
11007
  }), I = computed(() => {
10913
- var O, V, $, P;
11008
+ var D, K, V, N;
10914
11009
  let w = "kg-form-item";
10915
11010
  switch (c.value && (w += " kg-form-item-lookup"), T.value !== null && (w += " kg-form-item--col-fixed"), e.kgContext) {
10916
11011
  case KG_FORM_CONTEXT.SEARCH:
10917
11012
  switch (!0) {
10918
- case ((O = d.value) == null ? void 0 : O.vis_flg) === 0:
11013
+ case ((D = d.value) == null ? void 0 : D.vis_flg) === 0:
10919
11014
  w += " kg-form-item--invisible";
10920
11015
  break;
10921
11016
  }
10922
11017
  break;
10923
11018
  case KG_FORM_CONTEXT.SUBMIT:
10924
11019
  switch (!0) {
10925
- case (l.isCreating.value && ((V = p.value) == null ? void 0 : V.crt_vis_flg) === 0):
10926
- case (l.isUpdating.value && (($ = p.value) == null ? void 0 : $.upt_vis_flg) === 0):
10927
- case (l.isCopying.value && ((P = p.value) == null ? void 0 : P.cpy_vis_flg) === 0):
11020
+ case (l.isCreating.value && ((K = p.value) == null ? void 0 : K.crt_vis_flg) === 0):
11021
+ case (l.isUpdating.value && ((V = p.value) == null ? void 0 : V.upt_vis_flg) === 0):
11022
+ case (l.isCopying.value && ((N = p.value) == null ? void 0 : N.cpy_vis_flg) === 0):
10928
11023
  w += " kg-form-item--invisible";
10929
11024
  break;
10930
11025
  }
@@ -10932,12 +11027,12 @@ const KgFormItem = defineComponent({
10932
11027
  }
10933
11028
  return w;
10934
11029
  }), C = computed(() => {
10935
- var O;
11030
+ var D;
10936
11031
  const w = {
10937
11032
  ...e,
10938
- value: (O = a.value) == null ? void 0 : O[e.kgVarName],
10939
- "onUpdate:value": (V) => {
10940
- a.value && (a.value[e.kgVarName] = V);
11033
+ value: (D = a.value) == null ? void 0 : D[e.kgVarName],
11034
+ "onUpdate:value": (K) => {
11035
+ a.value && (a.value[e.kgVarName] = K);
10941
11036
  },
10942
11037
  kgPlaceholder: m.value,
10943
11038
  kgDisabled: g.value,
@@ -10974,14 +11069,14 @@ const KgFormItem = defineComponent({
10974
11069
  }
10975
11070
  return w;
10976
11071
  }), R = computed(() => encodeURIComponent(`${e.kgContext}~${l.formID}~${e.kgVarName}`)), A = ref(null);
10977
- function D() {
11072
+ function O() {
10978
11073
  return y.value ? null : createVNode(Form.Item, {
10979
11074
  name: e.kgVarName,
10980
11075
  rules: E.value,
10981
11076
  validateFirst: !0,
10982
11077
  htmlFor: R.value
10983
11078
  }, {
10984
- default: () => createVNode(Fragment, null, [K(), M(), H()]),
11079
+ default: () => createVNode(Fragment, null, [P(), M(), H()]),
10985
11080
  label: () => L()
10986
11081
  });
10987
11082
  }
@@ -11031,16 +11126,16 @@ const KgFormItem = defineComponent({
11031
11126
  return createVNode(KgFormItemInput, C.value, null);
11032
11127
  }
11033
11128
  }
11034
- function K() {
11035
- var w, O, V;
11036
- return ((O = (w = s.option.value.KgSearch) == null ? void 0 : w.dynamicQuery) == null ? void 0 : O.on) !== !0 || ((V = l.currentVarProfileMaster.value) == null ? void 0 : V.dyn_flg) !== 1 ? null : createVNode(Form.ItemRest, null, {
11129
+ function P() {
11130
+ var w, D, K;
11131
+ return ((D = (w = s.option.value.KgSearch) == null ? void 0 : w.dynamicQuery) == null ? void 0 : D.on) !== !0 || ((K = l.currentVarProfileMaster.value) == null ? void 0 : K.dyn_flg) !== 1 ? null : createVNode(Form.ItemRest, null, {
11037
11132
  default: () => {
11038
- var $;
11133
+ var V;
11039
11134
  return [createVNode(Select, {
11040
- value: ($ = i.operatorModel.value) == null ? void 0 : $[e.kgVarName],
11041
- "onUpdate:value": (P) => {
11135
+ value: (V = i.operatorModel.value) == null ? void 0 : V[e.kgVarName],
11136
+ "onUpdate:value": (N) => {
11042
11137
  i.store.patchOperatorModel(l.formID, {
11043
- [e.kgVarName]: P
11138
+ [e.kgVarName]: N
11044
11139
  });
11045
11140
  },
11046
11141
  disabled: g.value,
@@ -11048,8 +11143,8 @@ const KgFormItem = defineComponent({
11048
11143
  dropdownClassName: "kg-form-item-operator-select-dropdown"
11049
11144
  }, {
11050
11145
  default: () => {
11051
- var P;
11052
- return KgVarUtil.getDynamicQueryOperatorSelectOptions((P = _.value) != null ? P : "");
11146
+ var N;
11147
+ return KgVarUtil.getDynamicQueryOperatorSelectOptions((N = _.value) != null ? N : "");
11053
11148
  },
11054
11149
  suffixIcon: () => createVNode(CaretDownOutlined$1, {
11055
11150
  class: "ant-select-suffix"
@@ -11073,7 +11168,7 @@ const KgFormItem = defineComponent({
11073
11168
  });
11074
11169
  }
11075
11170
  return () => {
11076
- var O, V;
11171
+ var D, K;
11077
11172
  let w;
11078
11173
  return l.isRetrieving.value ? null : createVNode(Col, {
11079
11174
  ref: A,
@@ -11082,9 +11177,9 @@ const KgFormItem = defineComponent({
11082
11177
  style: k.value,
11083
11178
  "kg-frm_id": l.formID,
11084
11179
  "kg-var_nam": e.kgVarName,
11085
- "kg-lkp_id": (O = c.value) == null ? void 0 : O.lkp_id,
11086
- "kg-ret_fld": (V = c.value) == null ? void 0 : V.ret_fld
11087
- }, _isSlot$6(w = D()) ? w : {
11180
+ "kg-lkp_id": (D = c.value) == null ? void 0 : D.lkp_id,
11181
+ "kg-ret_fld": (K = c.value) == null ? void 0 : K.ret_fld
11182
+ }, _isSlot$6(w = O()) ? w : {
11088
11183
  default: () => [w]
11089
11184
  });
11090
11185
  };
@@ -12716,10 +12811,10 @@ function useKgVar(e, t, r = 0) {
12716
12811
  }), onUnmounted(() => {
12717
12812
  u.dispose(c);
12718
12813
  }));
12719
- const d = (X) => computed(() => u.t(c, X)), p = computed(() => u.isRetrieving(c)), E = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), _ = computed(() => u.isRetrieved(c)), g = computed(() => u.isCreating(c)), m = computed(() => u.isCreatingRequesting(c)), v = computed(() => u.isUpdating(c)), T = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), I = computed(() => u.isCopyingRequesting(c)), C = computed(() => u.isDeleting(c)), R = computed(() => u.isDeletingRequesting(c)), A = computed(() => u.isOtherRequesting(c)), D = computed(() => u.getVarButtons(c)), M = computed(() => u.getVarButtonSearch(c)), K = computed(() => u.getVarButtonCreate(c)), L = computed(() => u.getVarButtonUpdate(c)), H = computed(() => u.getVarButtonCopy(c)), w = computed(() => u.getVarButtonDelete(c)), O = computed(() => u.getVarProfileMasters(c)), V = computed(() => u.getCurrentVarProfileMasterID(c)), $ = computed(() => u.getCurrentVarProfileMaster(c)), P = computed(() => {
12814
+ const d = (X) => computed(() => u.t(c, X)), p = computed(() => u.isRetrieving(c)), E = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), _ = computed(() => u.isRetrieved(c)), g = computed(() => u.isCreating(c)), m = computed(() => u.isCreatingRequesting(c)), v = computed(() => u.isUpdating(c)), T = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), I = computed(() => u.isCopyingRequesting(c)), C = computed(() => u.isDeleting(c)), R = computed(() => u.isDeletingRequesting(c)), A = computed(() => u.isOtherRequesting(c)), O = computed(() => u.getVarButtons(c)), M = computed(() => u.getVarButtonSearch(c)), P = computed(() => u.getVarButtonCreate(c)), L = computed(() => u.getVarButtonUpdate(c)), H = computed(() => u.getVarButtonCopy(c)), w = computed(() => u.getVarButtonDelete(c)), D = computed(() => u.getVarProfileMasters(c)), K = computed(() => u.getCurrentVarProfileMasterID(c)), V = computed(() => u.getCurrentVarProfileMaster(c)), N = computed(() => {
12720
12815
  var X, ee;
12721
- return (ee = (X = $.value) == null ? void 0 : X.varProfileDetails) != null ? ee : null;
12722
- }), G = computed(() => u.getVarGridConfig(c)), N = computed(() => u.getVarGridMasters(c)), x = computed(() => u.getCurrentVarGridMasterID(c)), Y = computed(() => u.getCurrentVarGridMaster(c)), q = computed(() => u.getSystemVarGridDetails(c)), J = computed(() => u.getCurrentVarGridDetails(c));
12816
+ return (ee = (X = V.value) == null ? void 0 : X.varProfileDetails) != null ? ee : null;
12817
+ }), G = computed(() => u.getVarGridConfig(c)), $ = computed(() => u.getVarGridMasters(c)), B = computed(() => u.getCurrentVarGridMasterID(c)), Y = computed(() => u.getCurrentVarGridMaster(c)), q = computed(() => u.getSystemVarGridDetails(c)), J = computed(() => u.getCurrentVarGridDetails(c));
12723
12818
  return {
12724
12819
  formID: c,
12725
12820
  store: u,
@@ -12736,19 +12831,19 @@ function useKgVar(e, t, r = 0) {
12736
12831
  isDeleting: C,
12737
12832
  isDeletingRequesting: R,
12738
12833
  isOtherRequesting: A,
12739
- varButtons: D,
12834
+ varButtons: O,
12740
12835
  varButtonSearch: M,
12741
- varButtonCreate: K,
12836
+ varButtonCreate: P,
12742
12837
  varButtonUpdate: L,
12743
12838
  varButtonCopy: H,
12744
12839
  varButtonDelete: w,
12745
- varProfileMasters: O,
12746
- currentVarProfileMasterID: V,
12747
- currentVarProfileMaster: $,
12748
- currentVarProfileDetails: P,
12840
+ varProfileMasters: D,
12841
+ currentVarProfileMasterID: K,
12842
+ currentVarProfileMaster: V,
12843
+ currentVarProfileDetails: N,
12749
12844
  varGridConfig: G,
12750
- varGridMasters: N,
12751
- currentVarGridMasteID: x,
12845
+ varGridMasters: $,
12846
+ currentVarGridMasteID: B,
12752
12847
  currentVarGridMaster: Y,
12753
12848
  systemVarGridDetails: q,
12754
12849
  currentVarGridDetails: J,
@@ -13328,11 +13423,11 @@ const getProps$h = () => ({
13328
13423
  inject(DI_KG_VAR__KG_PROPS, null);
13329
13424
  const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
13330
13425
  l.onSubmitSave(async () => (await ie(), !1)), l.onSubmitCancel(async () => (await ue(), !1)), _useFormModel$1();
13331
- const u = computed(() => s.isDeleting.value && M.value.length === 0 && L.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), p = computed(() => s.store.getVarSubmitConfig(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), m = 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)), I = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), R = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), D = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), M = computed(() => {
13332
- var B, W, Z;
13426
+ const u = computed(() => s.isDeleting.value && M.value.length === 0 && L.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), p = computed(() => s.store.getVarSubmitConfig(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), m = 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)), I = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), R = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), O = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), M = computed(() => {
13427
+ var x, W, Z;
13333
13428
  switch (!0) {
13334
13429
  case s.isCreating.value:
13335
- return (B = E.value) != null ? B : [];
13430
+ return (x = E.value) != null ? x : [];
13336
13431
  case s.isUpdating.value:
13337
13432
  return (W = _.value) != null ? W : [];
13338
13433
  case s.isCopying.value:
@@ -13341,11 +13436,11 @@ const getProps$h = () => ({
13341
13436
  return [];
13342
13437
  }
13343
13438
  return [];
13344
- }), K = computed(() => {
13345
- var B, W, Z;
13439
+ }), P = computed(() => {
13440
+ var x, W, Z;
13346
13441
  switch (!0) {
13347
13442
  case s.isCreating.value:
13348
- return (B = T.value) != null ? B : [];
13443
+ return (x = T.value) != null ? x : [];
13349
13444
  case s.isUpdating.value:
13350
13445
  return (W = I.value) != null ? W : [];
13351
13446
  case s.isCopying.value:
@@ -13355,45 +13450,45 @@ const getProps$h = () => ({
13355
13450
  }
13356
13451
  return [];
13357
13452
  }), L = computed(() => {
13358
- var B, W, Z, re;
13453
+ var x, W, Z, re;
13359
13454
  switch (!0) {
13360
13455
  case s.isCreating.value:
13361
- return (B = y.value) != null ? B : [];
13456
+ return (x = y.value) != null ? x : [];
13362
13457
  case s.isUpdating.value:
13363
13458
  return (W = g.value) != null ? W : [];
13364
13459
  case s.isCopying.value:
13365
13460
  return (Z = v.value) != null ? Z : [];
13366
13461
  case s.isDeleting.value:
13367
- return (re = D.value) != null ? re : [];
13462
+ return (re = O.value) != null ? re : [];
13368
13463
  }
13369
13464
  return [];
13370
13465
  }), H = computed(() => {
13371
- var B, W, Z, re;
13466
+ var x, W, Z, re;
13372
13467
  switch (!0) {
13373
13468
  case s.isCreating.value:
13374
- return (B = k.value) != null ? B : [];
13469
+ return (x = k.value) != null ? x : [];
13375
13470
  case s.isUpdating.value:
13376
13471
  return (W = C.value) != null ? W : [];
13377
13472
  case s.isCopying.value:
13378
13473
  return (Z = A.value) != null ? Z : [];
13379
13474
  case s.isDeleting.value:
13380
- return (re = D.value) != null ? re : [];
13475
+ return (re = O.value) != null ? re : [];
13381
13476
  }
13382
13477
  return [];
13383
- }), w = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), O = computed(() => w.value || d.value), V = computed(() => d.value), $ = ref({
13478
+ }), w = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), D = computed(() => w.value || d.value), K = computed(() => d.value), V = ref({
13384
13479
  kgWidth: 0
13385
- }), P = computed(() => {
13386
- var B;
13387
- return !!(u.value || ee.isFullscreen || ((B = p.value) == null ? void 0 : B.resizable_flg) === 0);
13388
- }), G = computed(() => {
13389
- var B, W;
13390
- return u.value ? 398 : (W = (B = p.value) == null ? void 0 : B.min_width) != null ? W : DEFAULT_MIN_WIDTH;
13391
13480
  }), N = computed(() => {
13392
- var B, W;
13393
- return u.value ? 398 : (W = (B = p.value) == null ? void 0 : B.max_width) != null ? W : DEFAULT_MAX_WIDTH;
13394
- }), x = computed(() => u.value ? 398 : $.value.kgWidth), Y = ref(null);
13481
+ var x;
13482
+ return !!(u.value || ee.isFullscreen || ((x = p.value) == null ? void 0 : x.resizable_flg) === 0);
13483
+ }), G = computed(() => {
13484
+ var x, W;
13485
+ return u.value ? 398 : (W = (x = p.value) == null ? void 0 : x.min_width) != null ? W : DEFAULT_MIN_WIDTH;
13486
+ }), $ = computed(() => {
13487
+ var x, W;
13488
+ return u.value ? 398 : (W = (x = p.value) == null ? void 0 : x.max_width) != null ? W : DEFAULT_MAX_WIDTH;
13489
+ }), B = computed(() => u.value ? 398 : V.value.kgWidth), Y = ref(null);
13395
13490
  _useResizeObserver(Y);
13396
- const q = _useTitle(), J = computed(() => u.value ? 400 : $.value.kgWidth && $.value.kgWidth > 0 ? "auto" : 0), X = computed(() => J.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), ee = reactive({
13491
+ const q = _useTitle(), J = computed(() => u.value ? 400 : V.value.kgWidth && V.value.kgWidth > 0 ? "auto" : 0), X = computed(() => J.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), ee = reactive({
13397
13492
  isFullscreen: !1
13398
13493
  }), {
13399
13494
  getClass: le
@@ -13402,10 +13497,10 @@ const getProps$h = () => ({
13402
13497
  } = _useLayout(), {
13403
13498
  getDefaultWidth: pe
13404
13499
  } = _useDefaultWidth(), ae = computed(() => {
13405
- var B, W, Z;
13500
+ var x, W, Z;
13406
13501
  switch (he.value) {
13407
13502
  case "horizontal":
13408
- switch ((B = p.value) == null ? void 0 : B.label_col_unit) {
13503
+ switch ((x = p.value) == null ? void 0 : x.label_col_unit) {
13409
13504
  case KG_WIDTH_UNIT.SPAN:
13410
13505
  return {
13411
13506
  span: (W = p.value) == null ? void 0 : W.label_col
@@ -13421,10 +13516,10 @@ const getProps$h = () => ({
13421
13516
  return;
13422
13517
  }
13423
13518
  }), F = computed(() => {
13424
- var B, W;
13519
+ var x, W;
13425
13520
  switch (he.value) {
13426
13521
  case "horizontal":
13427
- switch ((B = p.value) == null ? void 0 : B.label_col_unit) {
13522
+ switch ((x = p.value) == null ? void 0 : x.label_col_unit) {
13428
13523
  case KG_WIDTH_UNIT.SPAN:
13429
13524
  return {
13430
13525
  span: 24 - ((W = p.value) == null ? void 0 : W.label_col)
@@ -13436,16 +13531,16 @@ const getProps$h = () => ({
13436
13531
  return;
13437
13532
  }
13438
13533
  }), U = computed(() => {
13439
- const B = s.store.getVarSubmitConfigProps(s.formID);
13534
+ const x = s.store.getVarSubmitConfigProps(s.formID);
13440
13535
  switch (!0) {
13441
13536
  case s.isCreating.value:
13442
- return B["footer.ok-button.text-var-name.creating"] ? s.t(B["footer.ok-button.text-var-name.creating"]).value : n.t("kg.save");
13537
+ return x["footer.ok-button.text-var-name.creating"] ? s.t(x["footer.ok-button.text-var-name.creating"]).value : n.t("kg.save");
13443
13538
  case s.isUpdating.value:
13444
- return B["footer.ok-button.text-var-name.updating"] ? s.t(B["footer.ok-button.text-var-name.updating"]).value : n.t("kg.save");
13539
+ return x["footer.ok-button.text-var-name.updating"] ? s.t(x["footer.ok-button.text-var-name.updating"]).value : n.t("kg.save");
13445
13540
  case s.isCopying.value:
13446
- return B["footer.ok-button.text-var-name.copying"] ? s.t(B["footer.ok-button.text-var-name.copying"]).value : n.t("kg.save");
13541
+ return x["footer.ok-button.text-var-name.copying"] ? s.t(x["footer.ok-button.text-var-name.copying"]).value : n.t("kg.save");
13447
13542
  case s.isDeleting.value:
13448
- return B["footer.ok-button.text-var-name.deleting"] ? s.t(B["footer.ok-button.text-var-name.deleting"]).value : n.t("kg.delete");
13543
+ return x["footer.ok-button.text-var-name.deleting"] ? s.t(x["footer.ok-button.text-var-name.deleting"]).value : n.t("kg.delete");
13449
13544
  }
13450
13545
  return n.t("kg.save");
13451
13546
  }), Q = computed(() => i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL && !ee.isFullscreen);
@@ -13456,12 +13551,12 @@ const getProps$h = () => ({
13456
13551
  containerElementSelector: ".ant-drawer-content-wrapper",
13457
13552
  handleElementSelector: ".ant-drawer-header",
13458
13553
  contentElementSelector: ".ant-drawer-content-wrapper"
13459
- }), watch(X, (B, W) => {
13460
- B === !0 && z(), W === !0 && B === !1 && te();
13554
+ }), watch(X, (x, W) => {
13555
+ x === !0 && z(), W === !0 && x === !1 && te();
13461
13556
  }, {
13462
13557
  immediate: !0
13463
- }), watch(pe, (B) => {
13464
- B && ($.value.kgWidth = B);
13558
+ }), watch(pe, (x) => {
13559
+ x && (V.value.kgWidth = x);
13465
13560
  }, {
13466
13561
  immediate: !0
13467
13562
  });
@@ -13491,7 +13586,7 @@ const getProps$h = () => ({
13491
13586
  });
13492
13587
  }
13493
13588
  async function te() {
13494
- $.value.kgWidth = pe.value, ee.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
13589
+ V.value.kgWidth = pe.value, ee.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
13495
13590
  }
13496
13591
  function ue() {
13497
13592
  switch (!0) {
@@ -13510,7 +13605,7 @@ const getProps$h = () => ({
13510
13605
  }
13511
13606
  }
13512
13607
  async function ie() {
13513
- var B, W;
13608
+ var x, W;
13514
13609
  try {
13515
13610
  if (await i.store.emit(s.formID, "beforeOk", {
13516
13611
  isCreating: s.isCreating.value,
@@ -13523,7 +13618,7 @@ const getProps$h = () => ({
13523
13618
  }))
13524
13619
  return;
13525
13620
  try {
13526
- await ((B = i.formRef.value) == null ? void 0 : B.validate());
13621
+ await ((x = i.formRef.value) == null ? void 0 : x.validate());
13527
13622
  } catch (se) {
13528
13623
  KgUtil.throwIfNotFormError(se);
13529
13624
  }
@@ -13557,8 +13652,8 @@ const getProps$h = () => ({
13557
13652
  }
13558
13653
  async function _e() {
13559
13654
  var W, Z, re, se, oe, de, ge;
13560
- const B = (W = s.varButtonCreate.value) == null ? void 0 : W.cmd;
13561
- if (!B) {
13655
+ const x = (W = s.varButtonCreate.value) == null ? void 0 : W.cmd;
13656
+ if (!x) {
13562
13657
  KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
13563
13658
  VarButton: s.varButtonCreate.value
13564
13659
  });
@@ -13581,7 +13676,7 @@ const getProps$h = () => ({
13581
13676
  return;
13582
13677
  const Se = await httpClient().request({
13583
13678
  method: (oe = (se = s.varButtonCreate.value) == null ? void 0 : se.cmd_method) != null ? oe : "POST",
13584
- url: B,
13679
+ url: x,
13585
13680
  params: ne.value,
13586
13681
  data: fe.value
13587
13682
  });
@@ -13604,8 +13699,8 @@ const getProps$h = () => ({
13604
13699
  }
13605
13700
  async function ve() {
13606
13701
  var W, Z, re, se, oe, de, ge;
13607
- const B = (W = s.varButtonUpdate.value) == null ? void 0 : W.cmd;
13608
- if (!B) {
13702
+ const x = (W = s.varButtonUpdate.value) == null ? void 0 : W.cmd;
13703
+ if (!x) {
13609
13704
  KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
13610
13705
  VarButton: s.varButtonUpdate.value
13611
13706
  });
@@ -13628,7 +13723,7 @@ const getProps$h = () => ({
13628
13723
  return;
13629
13724
  await httpClient().request({
13630
13725
  method: (oe = (se = s.varButtonUpdate.value) == null ? void 0 : se.cmd_method) != null ? oe : "POST",
13631
- url: B,
13726
+ url: x,
13632
13727
  params: ne.value,
13633
13728
  data: fe.value
13634
13729
  }), ((de = s.varButtonUpdate.value) == null ? void 0 : de.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.setIsUpdating(s.formID, !1), ((ge = s.varButtonUpdate.value) == null ? void 0 : ge.reload_all_after_done_flg) !== 0 && c.search({
@@ -13649,8 +13744,8 @@ const getProps$h = () => ({
13649
13744
  }
13650
13745
  async function Ce() {
13651
13746
  var W, Z, re, se, oe, de, ge, ne, fe;
13652
- const B = (W = s.varButtonCopy.value) == null ? void 0 : W.cmd;
13653
- if (!B) {
13747
+ const x = (W = s.varButtonCopy.value) == null ? void 0 : W.cmd;
13748
+ if (!x) {
13654
13749
  KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
13655
13750
  VarButton: s.varButtonCopy.value
13656
13751
  });
@@ -13676,7 +13771,7 @@ const getProps$h = () => ({
13676
13771
  return;
13677
13772
  await httpClient().request({
13678
13773
  method: (ge = (de = s.varButtonCopy.value) == null ? void 0 : de.cmd_method) != null ? ge : "POST",
13679
- url: B,
13774
+ url: x,
13680
13775
  params: me.value,
13681
13776
  data: Se.value
13682
13777
  }), ((ne = s.varButtonCopy.value) == null ? void 0 : ne.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.setIsCopying(s.formID, !1), ((fe = s.varButtonCopy.value) == null ? void 0 : fe.reload_all_after_done_flg) !== 0 && c.search({
@@ -13697,8 +13792,8 @@ const getProps$h = () => ({
13697
13792
  }
13698
13793
  async function be() {
13699
13794
  var W, Z, re, se, oe, de, ge, ne, fe, me, Se;
13700
- const B = (W = s.varButtonDelete.value) == null ? void 0 : W.cmd;
13701
- if (!B) {
13795
+ const x = (W = s.varButtonDelete.value) == null ? void 0 : W.cmd;
13796
+ if (!x) {
13702
13797
  KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
13703
13798
  VarButton: s.varButtonDelete.value
13704
13799
  });
@@ -13708,9 +13803,9 @@ const getProps$h = () => ({
13708
13803
  s.store.setIsDeletingRequesting(s.formID, !0);
13709
13804
  let ke = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonDelete.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), we = ref((se = o.selectedRows.value) != null ? se : []);
13710
13805
  if (((oe = s.varButtonDelete.value) == null ? void 0 : oe.del_param_clm) !== "__kg__new_delete_param" && (ke = ref({
13711
- ids: (ge = (de = o.selectedRows.value) == null ? void 0 : de.map((Ke) => {
13712
- var De, Re, Ve;
13713
- return (Ve = Ke[(Re = (De = s.varButtonDelete.value) == null ? void 0 : De.del_param_clm) != null ? Re : "id"]) != null ? Ve : "";
13806
+ ids: (ge = (de = o.selectedRows.value) == null ? void 0 : de.map((Ve) => {
13807
+ var Oe, Re, Ke;
13808
+ return (Ke = Ve[(Re = (Oe = s.varButtonDelete.value) == null ? void 0 : Oe.del_param_clm) != null ? Re : "id"]) != null ? Ke : "";
13714
13809
  })) != null ? ge : []
13715
13810
  }), we = ref({})), await i.store.emit(s.formID, "beforeRequest", {
13716
13811
  isCreating: s.isCreating.value,
@@ -13726,7 +13821,7 @@ const getProps$h = () => ({
13726
13821
  return;
13727
13822
  await httpClient().request({
13728
13823
  method: (fe = (ne = s.varButtonDelete.value) == null ? void 0 : ne.cmd_method) != null ? fe : "DELETE",
13729
- url: B,
13824
+ url: x,
13730
13825
  params: ke.value,
13731
13826
  data: we.value
13732
13827
  }, {
@@ -13750,13 +13845,13 @@ const getProps$h = () => ({
13750
13845
  s.store.setIsDeletingRequesting(s.formID, !1);
13751
13846
  }
13752
13847
  }
13753
- function ye(B) {
13848
+ function ye(x) {
13754
13849
  var Z, re;
13755
- const W = (re = (Z = a == null ? void 0 : a.KgSubmit) == null ? void 0 : Z["KgForm.Item"]) == null ? void 0 : re[B.var_nam];
13850
+ const W = (re = (Z = a == null ? void 0 : a.KgSubmit) == null ? void 0 : Z["KgForm.Item"]) == null ? void 0 : re[x.var_nam];
13756
13851
  return isFunction$2(W) ? createVNode(KgForm.Item, {
13757
- kgVarName: B.var_nam,
13852
+ kgVarName: x.var_nam,
13758
13853
  kgContext: KG_FORM_CONTEXT.SUBMIT,
13759
- kgRules: i.rules.value[B.var_nam],
13854
+ kgRules: i.rules.value[x.var_nam],
13760
13855
  onKgSubmit: ie
13761
13856
  }, {
13762
13857
  control: ({
@@ -13777,21 +13872,21 @@ const getProps$h = () => ({
13777
13872
  varSubmitField: me
13778
13873
  })
13779
13874
  }) : createVNode(KgForm.Item, {
13780
- kgVarName: B.var_nam,
13875
+ kgVarName: x.var_nam,
13781
13876
  kgContext: KG_FORM_CONTEXT.SUBMIT,
13782
- kgRules: i.rules.value[B.var_nam],
13877
+ kgRules: i.rules.value[x.var_nam],
13783
13878
  onKgSubmit: ie
13784
13879
  }, null);
13785
13880
  }
13786
- function Oe() {
13787
- let B, W;
13881
+ function De() {
13882
+ let x, W;
13788
13883
  return createVNode(KgResizable, {
13789
13884
  kgType: i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
13790
13885
  kgMinWidth: G.value,
13791
- kgMaxWidth: N.value,
13792
- kgWidth: x.value,
13793
- kgDisabled: P.value,
13794
- "onUpdate:kgWidth": (Z) => $.value.kgWidth = Z
13886
+ kgMaxWidth: $.value,
13887
+ kgWidth: B.value,
13888
+ kgDisabled: N.value,
13889
+ "onUpdate:kgWidth": (Z) => V.value.kgWidth = Z
13795
13890
  }, {
13796
13891
  default: () => [createVNode(Spin, {
13797
13892
  spinning: d.value
@@ -13807,9 +13902,9 @@ const getProps$h = () => ({
13807
13902
  ref: Y
13808
13903
  }, [M.value.length > 0 && createVNode(Row, {
13809
13904
  gutter: 12
13810
- }, _isSlot$5(B = M.value.map(ye)) ? B : {
13811
- default: () => [B]
13812
- }), K.value.length > 0 && H.value.length > 0 && createVNode(Divider, null, null), L.value.length > 0 && createVNode(Row, {
13905
+ }, _isSlot$5(x = M.value.map(ye)) ? x : {
13906
+ default: () => [x]
13907
+ }), P.value.length > 0 && H.value.length > 0 && createVNode(Divider, null, null), L.value.length > 0 && createVNode(Row, {
13813
13908
  gutter: 12
13814
13909
  }, _isSlot$5(W = L.value.map(ye)) ? W : {
13815
13910
  default: () => [W]
@@ -13821,17 +13916,17 @@ const getProps$h = () => ({
13821
13916
  });
13822
13917
  }
13823
13918
  function Ee() {
13824
- let B;
13919
+ let x;
13825
13920
  return createVNode("div", null, [createVNode(Button, {
13826
13921
  type: "primary",
13827
- ghost: !O.value,
13828
- disabled: O.value,
13922
+ ghost: !D.value,
13923
+ disabled: D.value,
13829
13924
  onClick: ue
13830
- }, _isSlot$5(B = n.t("kg.cancel")) ? B : {
13831
- default: () => [B]
13925
+ }, _isSlot$5(x = n.t("kg.cancel")) ? x : {
13926
+ default: () => [x]
13832
13927
  }), createVNode(Button, {
13833
13928
  type: "primary",
13834
- disabled: V.value,
13929
+ disabled: K.value,
13835
13930
  loading: w.value,
13836
13931
  danger: !!s.isDeleting.value,
13837
13932
  onClick: ie
@@ -13847,7 +13942,7 @@ const getProps$h = () => ({
13847
13942
  function Ie() {
13848
13943
  return createVNode(KgSubmitHeader, {
13849
13944
  isFullscreen: ee.isFullscreen,
13850
- "onUpdate:isFullscreen": (B) => ee.isFullscreen = B,
13945
+ "onUpdate:isFullscreen": (x) => ee.isFullscreen = x,
13851
13946
  kgShowFullscreenButton: !u.value,
13852
13947
  kgShowConfigButton: !u.value && e.kgShowConfigButton,
13853
13948
  onKgCancel: ue
@@ -13868,7 +13963,7 @@ const getProps$h = () => ({
13868
13963
  }, {
13869
13964
  title: Me,
13870
13965
  extra: Ie,
13871
- default: Oe,
13966
+ default: De,
13872
13967
  footer: Ee
13873
13968
  });
13874
13969
  }
@@ -14165,8 +14260,8 @@ const KgButtonCreate = defineComponent({
14165
14260
  attrs: a
14166
14261
  }) {
14167
14262
  const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
14168
- var T, k, I, C, R, A, D, M;
14169
- return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((I = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (R = o.selectedRows.value) == null ? void 0 : R.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((D = c.value) == null ? void 0 : D.permission_code) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14263
+ var T, k, I, C, R, A, O, M;
14264
+ return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((I = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (R = o.selectedRows.value) == null ? void 0 : R.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((O = c.value) == null ? void 0 : O.permission_code) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14170
14265
  }), d = computed(() => !!s.isCreatingRequesting.value);
14171
14266
  async function p() {
14172
14267
  e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
@@ -14555,7 +14650,7 @@ const KgButtonCreate = defineComponent({
14555
14650
  if (((R = e.kgButton) == null ? void 0 : R.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
14556
14651
  datas: M
14557
14652
  }) => {
14558
- const K = M.value, L = intersectionWith$1(K, m != null ? m : [], (H, w) => (H == null ? void 0 : H[s.id.value]) === (w == null ? void 0 : w[s.id.value]));
14653
+ const P = M.value, L = intersectionWith$1(P, m != null ? m : [], (H, w) => (H == null ? void 0 : H[s.id.value]) === (w == null ? void 0 : w[s.id.value]));
14559
14654
  return L.length > 0 && s.store.setSelectedRows(r.formID, L), !1;
14560
14655
  }, !0), await n.store.emit(r.formID, "otherOk", {
14561
14656
  button: e.kgButton,
@@ -14673,8 +14768,8 @@ const KgButtonCreate = defineComponent({
14673
14768
  }
14674
14769
  });
14675
14770
  const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
14676
- var T, k, I, C, R, A, D, M;
14677
- return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((I = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (R = l.selectedRows.value) == null ? void 0 : R.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((D = c.value) == null ? void 0 : D.permission_code) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14771
+ var T, k, I, C, R, A, O, M;
14772
+ return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((I = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (R = l.selectedRows.value) == null ? void 0 : R.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((O = c.value) == null ? void 0 : O.permission_code) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14678
14773
  }), d = computed(() => !!s.isUpdatingRequesting.value);
14679
14774
  async function p() {
14680
14775
  e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
@@ -15465,7 +15560,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15465
15560
  row: v,
15466
15561
  model: T
15467
15562
  }) => {
15468
- var I, C, R, A, D;
15563
+ var I, C, R, A, O;
15469
15564
  const k = r.store.getSystemVarProfileDetails(r.formID);
15470
15565
  switch (i.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
15471
15566
  case _: {
@@ -15484,15 +15579,15 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15484
15579
  });
15485
15580
  i.value = i.value.map((L) => {
15486
15581
  var w;
15487
- const H = (w = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : w.find((O) => O.var_nam === L.var_nam);
15582
+ const H = (w = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : w.find((D) => D.var_nam === L.var_nam);
15488
15583
  return H ? {
15489
15584
  ...L,
15490
15585
  ...H,
15491
15586
  id: L.id
15492
15587
  } : L;
15493
15588
  });
15494
- const K = (C = (I = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : I.map((L) => L.var_nam)) != null ? C : [];
15495
- c.value = i.value.filter((L) => K.includes(L.var_nam)).map((L) => L.id);
15589
+ const P = (C = (I = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : I.map((L) => L.var_nam)) != null ? C : [];
15590
+ c.value = i.value.filter((L) => P.includes(L.var_nam)).map((L) => L.id);
15496
15591
  } catch (M) {
15497
15592
  throw M;
15498
15593
  } finally {
@@ -15505,7 +15600,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15505
15600
  }
15506
15601
  switch (!0) {
15507
15602
  case m: {
15508
- T.value.prf_var_nam = ((R = T.value.prf_var_nam) != null ? R : "") + "_COPY", T.value.prf_var_nam_dsc = ((D = (A = T.value.prf_var_nam_dsc) != null ? A : T.value.prf_var_nam) != null ? D : "") + "_COPY";
15603
+ T.value.prf_var_nam = ((R = T.value.prf_var_nam) != null ? R : "") + "_COPY", T.value.prf_var_nam_dsc = ((O = (A = T.value.prf_var_nam_dsc) != null ? A : T.value.prf_var_nam) != null ? O : "") + "_COPY";
15509
15604
  break;
15510
15605
  }
15511
15606
  }
@@ -15576,9 +15671,9 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15576
15671
  onItemSelect: k
15577
15672
  }) => {
15578
15673
  var C, R;
15579
- const I = g.sort((A, D) => {
15580
- var M, K;
15581
- return ((M = A.srtseq) != null ? M : 0) - ((K = D.srtseq) != null ? K : 0);
15674
+ const I = g.sort((A, O) => {
15675
+ var M, P;
15676
+ return ((M = A.srtseq) != null ? M : 0) - ((P = O.srtseq) != null ? P : 0);
15582
15677
  });
15583
15678
  return u.value = I, createVNode(Table, {
15584
15679
  pagination: !1,
@@ -15592,10 +15687,10 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15592
15687
  rowKey: "id",
15593
15688
  dataSource: I,
15594
15689
  customRow: (A) => {
15595
- let D = {
15690
+ let O = {
15596
15691
  onClick: (M) => y(M, A, _, m)
15597
15692
  };
15598
- return _ === "right" && (D["kg-host-frm_id"] = r.formID, D["kg-var_nam"] = A.var_nam), D;
15693
+ return _ === "right" && (O["kg-host-frm_id"] = r.formID, O["kg-var_nam"] = A.var_nam), O;
15599
15694
  },
15600
15695
  rowSelection: E({
15601
15696
  disabled: v,
@@ -15830,23 +15925,23 @@ const KgSearch$1 = "", getProps$9 = () => ({
15830
15925
  });
15831
15926
  _useLayoutHeaderResizeObserver();
15832
15927
  const g = _useFormModel(E, y, _), m = computed(() => {
15833
- var N, x, Y, q;
15834
- if (!isNil((x = (N = r == null ? void 0 : r.value) == null ? void 0 : N.KgSearch) == null ? void 0 : x.kgDisabled))
15928
+ var $, B, Y, q;
15929
+ if (!isNil((B = ($ = r == null ? void 0 : r.value) == null ? void 0 : $.KgSearch) == null ? void 0 : B.kgDisabled))
15835
15930
  return (q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgSearch) == null ? void 0 : q.kgDisabled;
15836
15931
  if (!isNil(e.kgDisabled))
15837
15932
  return e.kgDisabled;
15838
15933
  }), v = computed(() => {
15839
- var N, x;
15840
- return !!(m.value || l.isRetrieving.value || KgAuthUtil.getPermissionType((N = n.varButtonSearch.value) == null ? void 0 : N.permission_code) === 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
15934
+ var $, B;
15935
+ return !!(m.value || l.isRetrieving.value || KgAuthUtil.getPermissionType(($ = n.varButtonSearch.value) == null ? void 0 : $.permission_code) === 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
15841
15936
  }), T = computed(() => !!(m.value || l.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), k = computed(() => !!(m.value || l.isRetrieving.value)), I = ref({
15842
15937
  visible: !1
15843
15938
  }), C = computed(() => _.value.kgHeight === p.value), R = computed(() => {
15844
- var N, x, Y;
15845
- if (n.t((N = n.varButtonSearch.value) == null ? void 0 : N.var_nam).value !== ((x = n.varButtonSearch.value) == null ? void 0 : x.var_nam))
15939
+ var $, B, Y;
15940
+ if (n.t(($ = n.varButtonSearch.value) == null ? void 0 : $.var_nam).value !== ((B = n.varButtonSearch.value) == null ? void 0 : B.var_nam))
15846
15941
  return n.t((Y = n.varButtonSearch.value) == null ? void 0 : Y.var_nam).value;
15847
15942
  }), A = computed(() => {
15848
- var N;
15849
- switch ((N = n.varButtonSearch.value) == null ? void 0 : N.primary_flg) {
15943
+ var $;
15944
+ switch (($ = n.varButtonSearch.value) == null ? void 0 : $.primary_flg) {
15850
15945
  case 1:
15851
15946
  return !0;
15852
15947
  case 0:
@@ -15854,17 +15949,17 @@ const KgSearch$1 = "", getProps$9 = () => ({
15854
15949
  default:
15855
15950
  return !0;
15856
15951
  }
15857
- }), D = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), M = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), K = computed(() => {
15858
- let N = "kg-search";
15859
- return o.value && (N += " kg-search--visible"), c.value && (N += " kg-search--teleport"), N;
15952
+ }), O = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), M = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), P = computed(() => {
15953
+ let $ = "kg-search";
15954
+ return o.value && ($ += " kg-search--visible"), c.value && ($ += " kg-search--teleport"), $;
15860
15955
  });
15861
- async function L(N = {}) {
15862
- var x, Y;
15956
+ async function L($ = {}) {
15957
+ var B, Y;
15863
15958
  if (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6267\u884C\u5F00\u59CB.`), l.isRetrieving.value) {
15864
15959
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u67E5\u8BE2.`);
15865
15960
  return;
15866
15961
  }
15867
- if (KgAuthUtil.getPermissionType((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code) === 2 && !a.p((Y = n.varButtonSearch.value) == null ? void 0 : Y.permission_code)) {
15962
+ if (KgAuthUtil.getPermissionType((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code) === 2 && !a.p((Y = n.varButtonSearch.value) == null ? void 0 : Y.permission_code)) {
15868
15963
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6CA1\u6709\u6743\u9650.`);
15869
15964
  return;
15870
15965
  }
@@ -15873,20 +15968,20 @@ const KgSearch$1 = "", getProps$9 = () => ({
15873
15968
  return;
15874
15969
  }
15875
15970
  o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), y.value && y.value.validate().then(async () => {
15876
- await s.store.emit(n.formID, "search", N);
15971
+ await s.store.emit(n.formID, "search", $);
15877
15972
  }).catch((q) => {
15878
15973
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
15879
15974
  e: q
15880
15975
  });
15881
- })) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search", N));
15976
+ })) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search", $));
15882
15977
  }
15883
15978
  s.store.setSearchFn(n.formID, L);
15884
15979
  async function H() {
15885
15980
  g.initFormModel(), o.value ? y.value && y.value.validate().then(async () => {
15886
15981
  await s.store.emit(n.formID, "reset", {});
15887
- }).catch((N) => {
15982
+ }).catch(($) => {
15888
15983
  KgLogger.debug(`${n.formID} | KgSearch | onReset() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
15889
- e: N
15984
+ e: $
15890
15985
  });
15891
15986
  }) : await s.store.emit(n.formID, "reset", {});
15892
15987
  }
@@ -15896,21 +15991,21 @@ const KgSearch$1 = "", getProps$9 = () => ({
15896
15991
  isSearchFirstPage: !0
15897
15992
  }), Promise.resolve(!0);
15898
15993
  }
15899
- function O() {
15900
- var N;
15994
+ function D() {
15995
+ var $;
15901
15996
  return createVNode("div", {
15902
15997
  class: "title",
15903
15998
  onClick: G
15904
- }, [((N = t == null ? void 0 : t.KgSearch) == null ? void 0 : N.left) && createVNode("div", {
15999
+ }, [(($ = t == null ? void 0 : t.KgSearch) == null ? void 0 : $.left) && createVNode("div", {
15905
16000
  class: "kg-search-title-left",
15906
- onClick: (x) => {
15907
- x.stopPropagation(), x.preventDefault();
16001
+ onClick: (B) => {
16002
+ B.stopPropagation(), B.preventDefault();
15908
16003
  }
15909
16004
  }, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
15910
16005
  }
15911
- function V() {
15912
- var N, x, Y, q;
15913
- return ((Y = (x = (N = n.varProfileMasters) == null ? void 0 : N.value) == null ? void 0 : x.length) != null ? Y : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
16006
+ function K() {
16007
+ var $, B, Y, q;
16008
+ return ((Y = (B = ($ = n.varProfileMasters) == null ? void 0 : $.value) == null ? void 0 : B.length) != null ? Y : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
15914
16009
  value: (q = n.currentVarProfileMasterID.value) != null ? q : void 0,
15915
16010
  "onUpdate:value": (J) => n.store.setCurrentVarProfileMasterID(n.formID, J),
15916
16011
  disabled: T.value,
@@ -15941,9 +16036,9 @@ const KgSearch$1 = "", getProps$9 = () => ({
15941
16036
  hostFormID: n.formID
15942
16037
  }, null)]);
15943
16038
  }
15944
- function $() {
15945
- var N, x, Y;
15946
- return createVNode(Fragment, null, [V(), createVNode(Button, {
16039
+ function V() {
16040
+ var $, B, Y;
16041
+ return createVNode(Fragment, null, [K(), createVNode(Button, {
15947
16042
  type: "primary",
15948
16043
  ghost: !v.value,
15949
16044
  disabled: v.value,
@@ -15953,8 +16048,8 @@ const KgSearch$1 = "", getProps$9 = () => ({
15953
16048
  default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
15954
16049
  }), createVNode(KgButton.Item, {
15955
16050
  kgType: KG_BUTTON_TYPE.SEARCH,
15956
- kgVarName: (N = n.varButtonSearch.value) == null ? void 0 : N.var_nam,
15957
- kgIcon: (x = n.varButtonSearch.value) == null ? void 0 : x.icon,
16051
+ kgVarName: ($ = n.varButtonSearch.value) == null ? void 0 : $.var_nam,
16052
+ kgIcon: (B = n.varButtonSearch.value) == null ? void 0 : B.icon,
15958
16053
  kgText: R.value,
15959
16054
  kgColor: (Y = n.varButtonSearch.value) == null ? void 0 : Y.color,
15960
16055
  kgPrimary: A.value,
@@ -15962,22 +16057,22 @@ const KgSearch$1 = "", getProps$9 = () => ({
15962
16057
  onKgClick: w
15963
16058
  }, null)]);
15964
16059
  }
15965
- function P() {
16060
+ function N() {
15966
16061
  return createVNode(Spin, {
15967
16062
  spinning: M.value
15968
16063
  }, {
15969
16064
  default: () => {
15970
- var N;
16065
+ var $;
15971
16066
  return [createVNode(KgForm, {
15972
16067
  ref: y,
15973
- model: (N = s.model.value) != null ? N : {}
16068
+ model: ($ = s.model.value) != null ? $ : {}
15974
16069
  }, {
15975
16070
  default: () => [createVNode(Row, {
15976
16071
  gutter: 6
15977
16072
  }, {
15978
16073
  default: () => {
15979
- var x;
15980
- return [(x = n.currentVarProfileDetails.value) == null ? void 0 : x.map((Y) => createVNode(KgForm.Item, {
16074
+ var B;
16075
+ return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((Y) => createVNode(KgForm.Item, {
15981
16076
  key: Y.var_nam,
15982
16077
  kgVarName: Y.var_nam,
15983
16078
  kgContext: KG_FORM_CONTEXT.SEARCH,
@@ -15997,11 +16092,11 @@ const KgSearch$1 = "", getProps$9 = () => ({
15997
16092
  return () => createVNode(KgResizable, {
15998
16093
  ref: E,
15999
16094
  kgHeight: _.value.kgHeight,
16000
- "onUpdate:kgHeight": (N) => _.value.kgHeight = N,
16095
+ "onUpdate:kgHeight": ($) => _.value.kgHeight = $,
16001
16096
  kgMinHeight: p.value,
16002
16097
  kgMaxHeight: d.value,
16003
16098
  kgDisabled: !i.value,
16004
- kgClass: K.value,
16099
+ kgClass: P.value,
16005
16100
  "kg-frm_id": n.formID
16006
16101
  }, {
16007
16102
  default: () => [o.value && createVNode("div", {
@@ -16015,17 +16110,17 @@ const KgSearch$1 = "", getProps$9 = () => ({
16015
16110
  default: () => [createVNode("div", {
16016
16111
  class: "ant-collapse-header"
16017
16112
  }, [createVNode(Spin, {
16018
- spinning: D.value
16113
+ spinning: O.value
16019
16114
  }, {
16020
- default: () => [O(), createVNode("div", {
16115
+ default: () => [D(), createVNode("div", {
16021
16116
  class: "ant-collapse-extra"
16022
- }, [$()])]
16117
+ }, [V()])]
16023
16118
  })])]
16024
16119
  }), createVNode("div", {
16025
16120
  class: "ant-collapse-content ant-collapse-content-active"
16026
16121
  }, [createVNode("div", {
16027
16122
  class: "ant-collapse-content-box"
16028
- }, [P()])])])])]
16123
+ }, [N()])])])])]
16029
16124
  });
16030
16125
  }
16031
16126
  });
@@ -16512,11 +16607,11 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16512
16607
  i.value.var_text = (H = L == null ? void 0 : L.var_text) != null ? H : "", (w = o.value) == null || w.clearValidate();
16513
16608
  });
16514
16609
  async function v(L = !1) {
16515
- var H, w, O;
16610
+ var H, w, D;
16516
16611
  n.value = !0;
16517
16612
  try {
16518
16613
  const {
16519
- records: V
16614
+ records: K
16520
16615
  } = await List({
16521
16616
  params: {
16522
16617
  pageNo: 1,
@@ -16527,16 +16622,16 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16527
16622
  order: "asc"
16528
16623
  }
16529
16624
  });
16530
- if (u.value = null, c.value = V != null ? V : [], L) {
16531
- const $ = c.value.find((P) => {
16625
+ if (u.value = null, c.value = K != null ? K : [], L) {
16626
+ const V = c.value.find((N) => {
16532
16627
  var G;
16533
- return P.id === ((G = a.getSelectedVarCatalog) == null ? void 0 : G.id);
16628
+ return N.id === ((G = a.getSelectedVarCatalog) == null ? void 0 : G.id);
16534
16629
  });
16535
- a.setSelectedVarCatalog($ != null ? $ : null), d.value = $ != null && $.id ? [$.id] : [];
16630
+ a.setSelectedVarCatalog(V != null ? V : null), d.value = V != null && V.id ? [V.id] : [];
16536
16631
  } else
16537
- a.setSelectedVarCatalog((w = c.value[0]) != null ? w : null), d.value = (O = c.value[0]) != null && O.id ? [c.value[0].id] : [];
16538
- } catch (V) {
16539
- KgLogger.debug(V == null ? void 0 : V.message);
16632
+ a.setSelectedVarCatalog((w = c.value[0]) != null ? w : null), d.value = (D = c.value[0]) != null && D.id ? [c.value[0].id] : [];
16633
+ } catch (K) {
16634
+ KgLogger.debug(K == null ? void 0 : K.message);
16540
16635
  } finally {
16541
16636
  n.value = !1;
16542
16637
  }
@@ -16545,31 +16640,31 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16545
16640
  var L, H, w;
16546
16641
  try {
16547
16642
  s.value = !0, await ((L = o.value) == null ? void 0 : L.validate());
16548
- const O = new VarCatalog({
16643
+ const D = new VarCatalog({
16549
16644
  ...(H = a.getSelectedVarCatalog) != null ? H : {},
16550
16645
  var_text: (w = i.value) == null ? void 0 : w.var_text
16551
16646
  });
16552
- O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add({
16553
- data: O
16647
+ D.id ? D.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (D.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(D, "id"), await Add({
16648
+ data: D
16554
16649
  }, {
16555
16650
  successMessageMode: "none"
16556
16651
  }), message.success({
16557
16652
  content: t.t("kg.KgVarConfig.createSuccess")
16558
16653
  }), await v()) : (await Edit({
16559
- data: O
16654
+ data: D
16560
16655
  }, {
16561
16656
  successMessageMode: "none"
16562
16657
  }), message.success({
16563
16658
  content: t.t("kg.KgVarConfig.saveSuccess")
16564
16659
  }), await v(!0)) : (await Add({
16565
- data: O
16660
+ data: D
16566
16661
  }, {
16567
16662
  successMessageMode: "none"
16568
16663
  }), message.success({
16569
16664
  content: t.t("kg.KgVarConfig.createSuccess")
16570
16665
  }), await v()), r.retrieve(e == null ? void 0 : e.value);
16571
- } catch (O) {
16572
- KgUtil.throwIfNotFormError(O);
16666
+ } catch (D) {
16667
+ KgUtil.throwIfNotFormError(D);
16573
16668
  } finally {
16574
16669
  s.value = !1;
16575
16670
  }
@@ -16578,14 +16673,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16578
16673
  isAllForm: L,
16579
16674
  isAllLanguage: H
16580
16675
  }) {
16581
- var w, O, V;
16676
+ var w, D, K;
16582
16677
  u.value = new VarCatalog({
16583
16678
  id: "",
16584
16679
  cust_lvl: KG_CUSTOM_LEVEL.L10,
16585
16680
  grp_nam: (w = a.getSelectedVar) == null ? void 0 : w.grp_nam,
16586
- var_nam: (O = a.getSelectedVar) == null ? void 0 : O.var_nam,
16681
+ var_nam: (D = a.getSelectedVar) == null ? void 0 : D.var_nam,
16587
16682
  frm_id: L || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
16588
- locale_id: H ? "ALL" : (V = t.locale) == null ? void 0 : V.value,
16683
+ locale_id: H ? "ALL" : (K = t.locale) == null ? void 0 : K.value,
16589
16684
  var_text: ""
16590
16685
  }), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
16591
16686
  }
@@ -16624,7 +16719,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16624
16719
  function A() {
16625
16720
  E.value.visible = !0;
16626
16721
  }
16627
- function D() {
16722
+ function O() {
16628
16723
  return createVNode("div", {
16629
16724
  class: "buttons"
16630
16725
  }, [createVNode(Button, {
@@ -16683,14 +16778,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16683
16778
  default: () => [H]
16684
16779
  })])]);
16685
16780
  }
16686
- function K(L) {
16781
+ function P(L) {
16687
16782
  var w;
16688
16783
  let H = "";
16689
16784
  return L.id || (H += " ant-table-row-create"), L.id === ((w = a.getSelectedVarCatalog) == null ? void 0 : w.id) && (H += " ant-table-row-selected "), H;
16690
16785
  }
16691
16786
  return () => createVNode("div", {
16692
16787
  class: "kg-var-config-modal-var-var-catalog"
16693
- }, [D(), createVNode(Table, {
16788
+ }, [O(), createVNode(Table, {
16694
16789
  pagination: !1,
16695
16790
  class: "kg-flex-table",
16696
16791
  size: "small",
@@ -16702,7 +16797,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16702
16797
  rowKey: "id",
16703
16798
  dataSource: c.value,
16704
16799
  loading: n.value,
16705
- rowClassName: K,
16800
+ rowClassName: P,
16706
16801
  rowSelection: p.value,
16707
16802
  customRow: (L) => ({
16708
16803
  onClick: () => R(L)
@@ -17043,8 +17138,8 @@ const KgWarehouse$1 = "", getProps = () => ({
17043
17138
  var I;
17044
17139
  const k = (I = s.value) == null ? void 0 : I.toUpperCase();
17045
17140
  return u.value.filter((C) => {
17046
- var R, A, D, M, K, L;
17047
- return ((A = (R = C.whDsc) == null ? void 0 : R.toUpperCase()) == null ? void 0 : A.includes(k)) || ((M = (D = C.whId) == null ? void 0 : D.toUpperCase()) == null ? void 0 : M.includes(k)) || ((L = (K = C.adrId) == null ? void 0 : K.toUpperCase()) == null ? void 0 : L.includes(k));
17141
+ var R, A, O, M, P, L;
17142
+ return ((A = (R = C.whDsc) == null ? void 0 : R.toUpperCase()) == null ? void 0 : A.includes(k)) || ((M = (O = C.whId) == null ? void 0 : O.toUpperCase()) == null ? void 0 : M.includes(k)) || ((L = (P = C.adrId) == null ? void 0 : P.toUpperCase()) == null ? void 0 : L.includes(k));
17048
17143
  });
17049
17144
  }), p = computed(() => {
17050
17145
  var k;
@@ -17315,31 +17410,31 @@ class KgUtil {
17315
17410
  }
17316
17411
  case (!!n && n.isDayjs(g)): {
17317
17412
  const A = g;
17318
- let D = r ? this.parseParamFromDayJS(y, A, r) : A.format("YYYY-MM-DD HH:mm:ss");
17413
+ let O = r ? this.parseParamFromDayJS(y, A, r) : A.format("YYYY-MM-DD HH:mm:ss");
17319
17414
  switch (m) {
17320
17415
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
17321
- let M = D, K = "";
17416
+ let M = O, P = "";
17322
17417
  switch (!0) {
17323
17418
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
17324
- K = A.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
17419
+ P = A.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
17325
17420
  break;
17326
17421
  }
17327
17422
  case /\d\d-\d\d-\d\d/.test(M): {
17328
- M = `${M} 00:00:00`, K = A.add(1, "day").format("YYYY-MM-DD 00:00:00");
17423
+ M = `${M} 00:00:00`, P = A.add(1, "day").format("YYYY-MM-DD 00:00:00");
17329
17424
  break;
17330
17425
  }
17331
17426
  case /\d\d:\d\d:\d\d/.test(M): {
17332
- M = A.format("1900-01-01 HH:mm:ss"), K = A.add(1, "second").format("1900-01-01 HH:mm:ss");
17427
+ M = A.format("1900-01-01 HH:mm:ss"), P = A.add(1, "second").format("1900-01-01 HH:mm:ss");
17333
17428
  break;
17334
17429
  }
17335
17430
  default:
17336
17431
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
17337
17432
  }
17338
- D = ` AND (${v} < '${M}' OR ${v} >= '${K}')`;
17433
+ O = ` AND (${v} < '${M}' OR ${v} >= '${P}')`;
17339
17434
  break;
17340
17435
  }
17341
17436
  case KG_DYNAMIC_QUERY_OPERATOR.LT: {
17342
- let M = D;
17437
+ let M = O;
17343
17438
  switch (!0) {
17344
17439
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M):
17345
17440
  break;
@@ -17354,53 +17449,53 @@ class KgUtil {
17354
17449
  default:
17355
17450
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
17356
17451
  }
17357
- D = ` AND (${v} < '${M}')`;
17452
+ O = ` AND (${v} < '${M}')`;
17358
17453
  break;
17359
17454
  }
17360
17455
  case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
17361
- let M = D, K = "";
17456
+ let M = O, P = "";
17362
17457
  switch (!0) {
17363
17458
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
17364
- K = A.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
17459
+ P = A.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
17365
17460
  break;
17366
17461
  }
17367
17462
  case /\d\d-\d\d-\d\d/.test(M): {
17368
- K = A.add(1, "day").format("YYYY-MM-DD 00:00:00");
17463
+ P = A.add(1, "day").format("YYYY-MM-DD 00:00:00");
17369
17464
  break;
17370
17465
  }
17371
17466
  case /\d\d:\d\d:\d\d/.test(M): {
17372
- K = A.add(1, "second").format("1900-01-01 HH:mm:ss");
17467
+ P = A.add(1, "second").format("1900-01-01 HH:mm:ss");
17373
17468
  break;
17374
17469
  }
17375
17470
  default:
17376
17471
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
17377
17472
  }
17378
- D = ` AND (${v} < '${K}')`;
17473
+ O = ` AND (${v} < '${P}')`;
17379
17474
  break;
17380
17475
  }
17381
17476
  case KG_DYNAMIC_QUERY_OPERATOR.GT: {
17382
- let M = D, K = "";
17477
+ let M = O, P = "";
17383
17478
  switch (!0) {
17384
17479
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
17385
- K = A.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
17480
+ P = A.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
17386
17481
  break;
17387
17482
  }
17388
17483
  case /\d\d-\d\d-\d\d/.test(M): {
17389
- K = A.add(1, "day").format("YYYY-MM-DD 00:00:00");
17484
+ P = A.add(1, "day").format("YYYY-MM-DD 00:00:00");
17390
17485
  break;
17391
17486
  }
17392
17487
  case /\d\d:\d\d:\d\d/.test(M): {
17393
- K = A.add(1, "second").format("1900-01-01 HH:mm:ss");
17488
+ P = A.add(1, "second").format("1900-01-01 HH:mm:ss");
17394
17489
  break;
17395
17490
  }
17396
17491
  default:
17397
17492
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
17398
17493
  }
17399
- D = ` AND (${v} >= '${K}')`;
17494
+ O = ` AND (${v} >= '${P}')`;
17400
17495
  break;
17401
17496
  }
17402
17497
  case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
17403
- let M = D;
17498
+ let M = O;
17404
17499
  switch (!0) {
17405
17500
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M):
17406
17501
  break;
@@ -17415,53 +17510,53 @@ class KgUtil {
17415
17510
  default:
17416
17511
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
17417
17512
  }
17418
- D = ` AND (${v} >= '${M}')`;
17513
+ O = ` AND (${v} >= '${M}')`;
17419
17514
  break;
17420
17515
  }
17421
17516
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
17422
17517
  default: {
17423
- let M = D, K = "";
17518
+ let M = O, P = "";
17424
17519
  switch (!0) {
17425
17520
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
17426
- K = A.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
17521
+ P = A.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
17427
17522
  break;
17428
17523
  }
17429
17524
  case /\d\d-\d\d-\d\d/.test(M): {
17430
- M = `${M} 00:00:00`, K = A.add(1, "day").format("YYYY-MM-DD 00:00:00");
17525
+ M = `${M} 00:00:00`, P = A.add(1, "day").format("YYYY-MM-DD 00:00:00");
17431
17526
  break;
17432
17527
  }
17433
17528
  case /\d\d:\d\d:\d\d/.test(M): {
17434
- M = `1900-01-01 ${M}`, K = A.add(1, "second").format("1900-01-01 HH:mm:ss");
17529
+ M = `1900-01-01 ${M}`, P = A.add(1, "second").format("1900-01-01 HH:mm:ss");
17435
17530
  break;
17436
17531
  }
17437
17532
  default:
17438
17533
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
17439
17534
  }
17440
- D = ` AND (${v} >= '${M}' AND ${v} < '${K}')`;
17535
+ O = ` AND (${v} >= '${M}' AND ${v} < '${P}')`;
17441
17536
  break;
17442
17537
  }
17443
17538
  }
17444
- u[y] = D;
17539
+ u[y] = O;
17445
17540
  break;
17446
17541
  }
17447
17542
  case (!!n && isArray$1(g) && g.length === 2 && n.isDayjs(g[0]) && n.isDayjs(g[1])): {
17448
- const A = g[0], D = g[1];
17449
- let M = this.parseParamFromDayJS(y, A, r), K = "", L = "";
17543
+ const A = g[0], O = g[1];
17544
+ let M = this.parseParamFromDayJS(y, A, r), P = "", L = "";
17450
17545
  switch (!0) {
17451
17546
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
17452
- K = D.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
17547
+ P = O.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
17453
17548
  break;
17454
17549
  }
17455
17550
  case /\d\d-\d\d-\d\d/.test(M): {
17456
- M = `${M} 00:00:00`, K = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
17551
+ M = `${M} 00:00:00`, P = O.add(1, "day").format("YYYY-MM-DD 00:00:00");
17457
17552
  break;
17458
17553
  }
17459
17554
  case /\d\d:\d\d:\d\d/.test(M): {
17460
- M = `1900-01-01 ${M}`, K = D.add(1, "second").format("1900-01-01 HH:mm:ss");
17555
+ M = `1900-01-01 ${M}`, P = O.add(1, "second").format("1900-01-01 HH:mm:ss");
17461
17556
  break;
17462
17557
  }
17463
17558
  }
17464
- K ? L = ` AND (${v} >= '${M}' AND ${v} < '${K}')` : L = ` AND (${v} >= '${M}')`, u[y] = L;
17559
+ P ? L = ` AND (${v} >= '${M}' AND ${v} < '${P}')` : L = ` AND (${v} >= '${M}')`, u[y] = L;
17465
17560
  break;
17466
17561
  }
17467
17562
  case Array.isArray(g): {
@@ -17469,7 +17564,7 @@ class KgUtil {
17469
17564
  u[y] = void 0;
17470
17565
  break;
17471
17566
  }
17472
- const A = g.map((D) => `N'${String(D)}'`).join(", ");
17567
+ const A = g.map((O) => `N'${String(O)}'`).join(", ");
17473
17568
  u[y] = ` AND (${v} IN (${A}))`;
17474
17569
  break;
17475
17570
  }
@@ -18370,6 +18465,11 @@ export {
18370
18465
  KG_TABLE_TD_MAX_WIDTH,
18371
18466
  KG_TABLE_TD_MIN_WIDTH,
18372
18467
  KG_TABLE_TEMP_ID,
18468
+ KG_TMP_MENU_ID__BUSINESS_MANAGER,
18469
+ KG_TMP_MENU_ID__DATA_MANAGER,
18470
+ KG_TMP_MENU_ID__PDA,
18471
+ KG_TMP_MENU_ID__SYS,
18472
+ KG_TMP_MENU_ID__WCS,
18373
18473
  KG_VAR_INPUT__DATA_TYPE,
18374
18474
  KG_VAR_SUBMIT__DISPLAY_TYPE,
18375
18475
  KG_VAR_SUBMIT__LAYOUT,