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

Sign up to get free protection for your applications and to get access to all the features.
@@ -2462,7 +2462,7 @@ const emptyIcon = {
2462
2462
  ...t.data
2463
2463
  }, r);
2464
2464
  }
2465
- }), version = "0.21.5-beta.2";
2465
+ }), version = "0.21.5-beta.3";
2466
2466
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
2467
2467
  const freeGlobal$1 = freeGlobal;
2468
2468
  var freeSelf = typeof self == "object" && self && self.Object === Object && self, root = freeGlobal$1 || freeSelf || Function("return this")();
@@ -4164,16 +4164,13 @@ class KgLogger {
4164
4164
  }
4165
4165
  static debugDDA(t, r, a, n, s = {}, i = !0) {
4166
4166
  KgLogger.debug(
4167
- `${(t != null ? t : "").padEnd(100, " ")} | ${(r != null ? r : "").padEnd(32, " ")} | ${(a != null ? a : "").padEnd(
4168
- 32,
4169
- " "
4170
- )} | ${n}.`,
4167
+ `${(t != null ? t : "").padEnd(100, " ")} | ${(r != null ? r : "").padEnd(32, " ")} | ${(a != null ? a : "").padEnd(32, " ")} | ${n}.`,
4171
4168
  s,
4172
4169
  i
4173
4170
  );
4174
4171
  }
4175
4172
  }
4176
- const en = {
4173
+ const ____DEBUG____ = KgLogger.debug, ____INFO_____ = KgLogger.info, ____WARN_____ = KgLogger.warn, ____ERROR____ = KgLogger.error, en = {
4177
4174
  kg: {
4178
4175
  KgAppSelect: {
4179
4176
  businessManager: "Business Manager",
@@ -4702,7 +4699,7 @@ class KgRouteUtil {
4702
4699
  }), t;
4703
4700
  }
4704
4701
  static transformMenus(t) {
4705
- var b, y, g, m, _, E, v, T, k, A, C, O, M, K, R, V, P, D, w, I, N, F, L, x, $, U, H, J, W, te, re, se, ce, ae;
4702
+ var b, y, g, m, _, E, v, T, k, A, C, O, M, K, R, V, P, D, w, I, N, F, L, x, $, U, H, J, W, te, re, se, de, ae;
4706
4703
  if (!t)
4707
4704
  return [];
4708
4705
  const r = useKg(), a = (X) => {
@@ -4811,7 +4808,7 @@ class KgRouteUtil {
4811
4808
  }
4812
4809
  });
4813
4810
  let u = [];
4814
- ((U = ($ = s.children) == null ? void 0 : $.length) != null ? U : 0 > 0) && u.push(s), ((J = (H = i.children) == null ? void 0 : H.length) != null ? J : 0 > 0) && u.push(i), ((te = (W = o.children) == null ? void 0 : W.length) != null ? te : 0 > 0) && u.push(o), ((se = (re = l.children) == null ? void 0 : re.length) != null ? se : 0 > 0) && u.push(l), ((ae = (ce = c.children) == null ? void 0 : ce.length) != null ? ae : 0 > 0) && u.push(c);
4811
+ ((U = ($ = s.children) == null ? void 0 : $.length) != null ? U : 0 > 0) && u.push(s), ((J = (H = i.children) == null ? void 0 : H.length) != null ? J : 0 > 0) && u.push(i), ((te = (W = o.children) == null ? void 0 : W.length) != null ? te : 0 > 0) && u.push(o), ((se = (re = l.children) == null ? void 0 : re.length) != null ? se : 0 > 0) && u.push(l), ((ae = (de = c.children) == null ? void 0 : de.length) != null ? ae : 0 > 0) && u.push(c);
4815
4812
  const d = (X) => {
4816
4813
  X.sort((B, G) => {
4817
4814
  var Q, Y;
@@ -5009,8 +5006,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5009
5006
  case d:
5010
5007
  return x ? U(1, W) : U(0, W + 1);
5011
5008
  case u:
5012
- var se = this.$locale().weekStart || 0, ce = (J < se ? J + 7 : J) - se;
5013
- return U(x ? te - ce : te + (6 - ce), W);
5009
+ var se = this.$locale().weekStart || 0, de = (J < se ? J + 7 : J) - se;
5010
+ return U(x ? te - de : te + (6 - de), W);
5014
5011
  case c:
5015
5012
  case g:
5016
5013
  return H(re + "Hours", 0);
@@ -5062,7 +5059,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5062
5059
  return L.invalidDate || m;
5063
5060
  var x = N || "YYYY-MM-DDTHH:mm:ssZ", $ = V.z(this), U = this.$H, H = this.$m, J = this.$M, W = L.weekdays, te = L.months, re = L.meridiem, se = function(X, B, G, Q) {
5064
5061
  return X && (X[B] || X(F, x)) || G[B].slice(0, Q);
5065
- }, ce = function(X) {
5062
+ }, de = function(X) {
5066
5063
  return V.s(U % 12 || 12, X, "0");
5067
5064
  }, ae = re || function(X, B, G) {
5068
5065
  var Q = X < 12 ? "AM" : "PM";
@@ -5100,9 +5097,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5100
5097
  case "HH":
5101
5098
  return V.s(U, 2, "0");
5102
5099
  case "h":
5103
- return ce(1);
5100
+ return de(1);
5104
5101
  case "hh":
5105
- return ce(2);
5102
+ return de(2);
5106
5103
  case "a":
5107
5104
  return ae(U, H, !0);
5108
5105
  case "A":
@@ -7198,7 +7195,7 @@ function useDragToResize(e) {
7198
7195
  T.remove(), k.remove();
7199
7196
  }
7200
7197
  function M(P) {
7201
- var F, L, x, $, U, H, J, W, te, re, se, ce;
7198
+ var F, L, x, $, U, H, J, W, te, re, se, de;
7202
7199
  const {
7203
7200
  event: D,
7204
7201
  handleType: w
@@ -7229,12 +7226,12 @@ function useDragToResize(e) {
7229
7226
  const ae = l.value.offsetWidth, X = Math.min(b.value, Math.max(d.value, m + I - E)), B = (L = (F = c.value) == null ? void 0 : F.clientHeight) != null ? L : s, G = ($ = (x = u.value) == null ? void 0 : x.clientHeight) != null ? $ : 0, Q = Math.min((H = (U = t.value) == null ? void 0 : U.kgMinHeight) != null ? H : n.value, B + KG_MODAL_BORDER_WIDTH * 2 + G), Y = l.value.offsetHeight, Z = Math.min(y.value, Math.max(Q, _ + N - v));
7230
7227
  if (X === ae && Z === Y)
7231
7228
  return;
7232
- const ue = Number(getComputedStyle(l.value).top.replace(/px/g, "")) + (Z - Y) / 2, _e = Number(getComputedStyle(l.value).left.replace(/px/g, "")) + (X - ae) / 2;
7233
- l.value.style.width = `${X}px`, l.value.style.height = `${Z}px`, l.value.style.top = `${ue}px`, l.value.style.left = `${_e}px`;
7229
+ const ce = Number(getComputedStyle(l.value).top.replace(/px/g, "")) + (Z - Y) / 2, le = Number(getComputedStyle(l.value).left.replace(/px/g, "")) + (X - ae) / 2;
7230
+ l.value.style.width = `${X}px`, l.value.style.height = `${Z}px`, l.value.style.top = `${ce}px`, l.value.style.left = `${le}px`;
7234
7231
  break;
7235
7232
  }
7236
7233
  case "bottom": {
7237
- const ae = (W = (J = c.value) == null ? void 0 : J.clientHeight) != null ? W : s, X = (re = (te = u.value) == null ? void 0 : te.clientHeight) != null ? re : 0, B = Math.min((ce = (se = t.value) == null ? void 0 : se.kgMinHeight) != null ? ce : ae + X + KG_MODAL_BORDER_WIDTH * 2, n.value);
7234
+ const ae = (W = (J = c.value) == null ? void 0 : J.clientHeight) != null ? W : s, X = (re = (te = u.value) == null ? void 0 : te.clientHeight) != null ? re : 0, B = Math.min((de = (se = t.value) == null ? void 0 : se.kgMinHeight) != null ? de : ae + X + KG_MODAL_BORDER_WIDTH * 2, n.value);
7238
7235
  let G = Math.min(y.value, Math.max(B, _ + N - v));
7239
7236
  l.value.offsetTop + G > n.value && (G = n.value - l.value.offsetTop);
7240
7237
  const Q = l.value.offsetHeight, Y = Number(getComputedStyle(l.value).top.replace(/px/g, ""));
@@ -11338,7 +11335,7 @@ const KgTable$1 = "", getProps$y = () => ({
11338
11335
  var B, G;
11339
11336
  return (G = (B = s.varButtonSearch.value) == null ? void 0 : B.cmd) != null ? G : null;
11340
11337
  }), k = computed(() => {
11341
- var G, Q, Y, Z, fe, ue, de, _e, Ce;
11338
+ var G, Q, Y, Z, _e, ce, ge, le, ve;
11342
11339
  let B = {
11343
11340
  pageNo: I.pageIndex,
11344
11341
  pageSize: I.pageSize,
@@ -11348,11 +11345,11 @@ const KgTable$1 = "", getProps$y = () => ({
11348
11345
  };
11349
11346
  return s.varButtonSearch.value && (B = {
11350
11347
  ...B,
11351
- ...KgVarUtil.parseRequestParamsToJSON((ue = (fe = s.varButtonSearch.value) == null ? void 0 : fe.cmd_prm) != null ? ue : "")
11352
- }), (de = s.varGridConfig.value) != null && de.cmd_prm && (B = {
11348
+ ...KgVarUtil.parseRequestParamsToJSON((ce = (_e = s.varButtonSearch.value) == null ? void 0 : _e.cmd_prm) != null ? ce : "")
11349
+ }), (ge = s.varGridConfig.value) != null && ge.cmd_prm && (B = {
11353
11350
  ...B,
11354
- ...KgVarUtil.parseRequestParamsToJSON((_e = s.varGridConfig.value.cmd_prm) != null ? _e : "")
11355
- }), ((Ce = s.varGridConfig.value) == null ? void 0 : Ce.convert_sort_field_to_under_score_flg) === 1 && B.column && (B.column = snakeCase$1(B.column)), B;
11351
+ ...KgVarUtil.parseRequestParamsToJSON((le = s.varGridConfig.value.cmd_prm) != null ? le : "")
11352
+ }), ((ve = s.varGridConfig.value) == null ? void 0 : ve.convert_sort_field_to_under_score_flg) === 1 && B.column && (B.column = snakeCase$1(B.column)), B;
11356
11353
  }), A = computed(() => {
11357
11354
  var B, G, Q, Y;
11358
11355
  if (!isNil((G = (B = a == null ? void 0 : a.value) == null ? void 0 : B.KgTable) == null ? void 0 : G.kgDisabled))
@@ -11516,70 +11513,73 @@ const KgTable$1 = "", getProps$y = () => ({
11516
11513
  immediate: !0
11517
11514
  });
11518
11515
  async function Q() {
11519
- var Y, Z, fe, ue, de, _e, Ce;
11516
+ var Y, Z, _e, ce, ge;
11520
11517
  KgLogger.debug(`${s.formID} | KgTable | request() | requestDatas() | \u6267\u884C\u5F00\u59CB.`), B.isSearchFirstPage && (I.pageIndex = 1), o.store.setIsRequesting(s.formID, !0);
11521
11518
  try {
11522
- const Se = KgUtil.parseParams(k.value, o.kgSearchFormID.value, t), Te = ref({});
11519
+ const le = KgUtil.parseParams(k.value, o.kgSearchFormID.value, t), ve = ref({});
11523
11520
  if (!await o.store.emit(s.formID, "beforeSearch", {
11524
- params: Se,
11525
- response: Te
11521
+ params: le,
11522
+ response: ve
11526
11523
  })) {
11527
11524
  if (!T.value)
11528
11525
  throw KgLogger.error(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.`, {
11529
11526
  VarButton: s.varButtonSearch.value
11530
11527
  }), new Error("\u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.");
11531
- const ye = ((Z = (Y = n.option.value.KgSearch) == null ? void 0 : Y.dynamicQuery) == null ? void 0 : Z.on) === !0 && ((fe = s.currentVarProfileMaster.value) == null ? void 0 : fe.dyn_flg) === 1, {
11532
- sql: ke,
11533
- whereSql: Ae,
11534
- orderBySql: De
11535
- } = KgUtil.getQuerySql(k.value, o.kgSearchFormID.value, null, t), ve = await httpClient().request({
11528
+ const ye = ((Z = (Y = n.option.value.KgSearch) == null ? void 0 : Y.dynamicQuery) == null ? void 0 : Z.on) === !0 && ((_e = s.currentVarProfileMaster.value) == null ? void 0 : _e.dyn_flg) === 1, {
11529
+ sql: Ce,
11530
+ whereSql: ke,
11531
+ orderBySql: Oe
11532
+ } = KgUtil.getQuerySql(k.value, o.kgSearchFormID.value, null, t), Se = await httpClient().request({
11536
11533
  url: T.value,
11537
- method: (de = (ue = s.varButtonSearch.value) == null ? void 0 : ue.cmd_method) != null ? de : "GET",
11538
- params: Se,
11539
- data: Se,
11534
+ method: (() => {
11535
+ var Ae, Me;
11536
+ return s.formID === ".wms.business-manager.outbound.wave.print-tag-modal" ? "POST" : (Me = (Ae = s.varButtonSearch.value) == null ? void 0 : Ae.cmd_method) != null ? Me : "GET";
11537
+ })(),
11538
+ params: le,
11539
+ data: le,
11540
11540
  headers: {
11541
11541
  [KG_HTTP_HEADERS.KG_DYNAMIC_QUERY]: ye,
11542
- [KG_HTTP_HEADERS.KG_QUERY_SQL]: ke,
11543
- [KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL]: Ae,
11544
- [KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]: De
11542
+ [KG_HTTP_HEADERS.KG_QUERY_SQL]: Ce,
11543
+ [KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL]: ke,
11544
+ [KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]: Oe
11545
11545
  }
11546
11546
  }, {
11547
11547
  isReturnNativeResponse: !0,
11548
11548
  successMessageMode: "none"
11549
11549
  });
11550
- if (!ve.data)
11550
+ if (!Se.data)
11551
11551
  throw message.error(n.t("kg.KgTable.request-fail-no-data")), new Error(n.t("kg.KgTable.request-fail-no-data"));
11552
- if (![0, 200].includes((_e = ve.data.code) != null ? _e : -1) || !ve.data.success)
11553
- throw message.error(ve.data.message || n.t("kg.KgTable.request-fail-error")), new Error(ve.data.message || n.t("kg.KgTable.request-fail-error"));
11554
- ye && ve.headers[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY.toLowerCase()] !== "true" && message.warning(n.t("kg.KgTable.dynamic-query-is-off-in-server")), Te.value = ve.data.result, KgLogger.debug(`${s.formID} | KgTable | request() | requestDatas() | \u67E5\u8BE2\u6210\u529F.`, {
11555
- params: Se,
11556
- response: Te.value
11552
+ if (![0, 200].includes((ce = Se.data.code) != null ? ce : -1) || !Se.data.success)
11553
+ throw message.error(Se.data.message || n.t("kg.KgTable.request-fail-error")), new Error(Se.data.message || n.t("kg.KgTable.request-fail-error"));
11554
+ ye && Se.headers[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY.toLowerCase()] !== "true" && message.warning(n.t("kg.KgTable.dynamic-query-is-off-in-server")), ve.value = Se.data.result, KgLogger.debug(`${s.formID} | KgTable | request() | requestDatas() | \u67E5\u8BE2\u6210\u529F.`, {
11555
+ params: le,
11556
+ response: ve.value
11557
11557
  });
11558
11558
  }
11559
11559
  const {
11560
11560
  datas: Ee,
11561
- total: Oe
11562
- } = v(Te), Re = await o.store.emit(s.formID, "beforeSetDatas", {
11561
+ total: Te
11562
+ } = v(ve), Re = await o.store.emit(s.formID, "beforeSetDatas", {
11563
11563
  datas: Ee
11564
- }), we = cloneDeep(w.value);
11564
+ }), De = cloneDeep(w.value);
11565
11565
  o.store.setDatas({
11566
11566
  frmId: s.formID,
11567
11567
  datas: Ee.value,
11568
11568
  isPreserveSelectedRows: !0
11569
- }), I.total = Oe.value, d.value = {}, x({
11569
+ }), I.total = Te.value, d.value = {}, x({
11570
11570
  isContinueWhenKgDisabled: !0
11571
- }), c.value = [], await nextTick(), B.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, we.map((ye) => {
11572
- var ke;
11573
- return (ke = Ee.value) == null ? void 0 : ke.find((Ae) => Ae[o.id.value] === ye);
11574
- }).filter((ye) => !!ye)) : ((Ce = s.varGridConfig.value) == null ? void 0 : Ce.check_first_row_after_retrieve) === 1 && Ee.value.length > 0 && o.store.setSelectedRows(s.formID, [Ee.value[0]]);
11571
+ }), c.value = [], await nextTick(), B.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, De.map((ye) => {
11572
+ var Ce;
11573
+ return (Ce = Ee.value) == null ? void 0 : Ce.find((ke) => ke[o.id.value] === ye);
11574
+ }).filter((ye) => !!ye)) : ((ge = s.varGridConfig.value) == null ? void 0 : ge.check_first_row_after_retrieve) === 1 && Ee.value.length > 0 && o.store.setSelectedRows(s.formID, [Ee.value[0]]);
11575
11575
  const Ke = await o.store.emit(s.formID, "afterSearch", {
11576
- params: Se,
11577
- response: Te.value,
11576
+ params: le,
11577
+ response: ve.value,
11578
11578
  datas: Ee
11579
11579
  });
11580
11580
  o.store.setIsRequested(s.formID, !0);
11581
- } catch (Se) {
11582
- throw Se;
11581
+ } catch (le) {
11582
+ throw le;
11583
11583
  } finally {
11584
11584
  o.store.setIsRequesting(s.formID, !1);
11585
11585
  }
@@ -11609,7 +11609,7 @@ const KgTable$1 = "", getProps$y = () => ({
11609
11609
  }
11610
11610
  o.store.setSelectedRows(s.formID, w.value.map((Y) => {
11611
11611
  var Z;
11612
- return (Z = E.value) == null ? void 0 : Z.find((fe) => fe[o.id.value] === Y);
11612
+ return (Z = E.value) == null ? void 0 : Z.find((_e) => _e[o.id.value] === Y);
11613
11613
  }).filter((Y) => !!Y));
11614
11614
  }
11615
11615
  function J(B, G) {
@@ -11651,7 +11651,7 @@ const KgTable$1 = "", getProps$y = () => ({
11651
11651
  kgDisabled: A.value
11652
11652
  }, null);
11653
11653
  }
11654
- function ce() {
11654
+ function de() {
11655
11655
  var B;
11656
11656
  return (B = r == null ? void 0 : r.KgTable) != null && B["summary.bodyCell"] ? createVNode(TableSummary, {
11657
11657
  fixed: "bottom"
@@ -11662,17 +11662,17 @@ const KgTable$1 = "", getProps$y = () => ({
11662
11662
  }, null), R.value && createVNode(TableSummary.Cell, {
11663
11663
  index: K.value ? 1 : 0
11664
11664
  }, null), u.value.map((G, Q) => {
11665
- const Y = String(G.dataIndex), Z = Y ? s.store.getVarGridDetail(s.formID, Y) : null, fe = (() => ["left", "center", "right"].includes((Z == null ? void 0 : Z.align) || "") ? Z == null ? void 0 : Z.align : "left")();
11666
- let ue = Q;
11667
- return K.value && R.value ? ue += 2 : (K.value || R.value) && (ue += 1), createVNode(TableSummary.Cell, {
11668
- index: ue,
11669
- align: fe
11665
+ const Y = String(G.dataIndex), Z = Y ? s.store.getVarGridDetail(s.formID, Y) : null, _e = (() => ["left", "center", "right"].includes((Z == null ? void 0 : Z.align) || "") ? Z == null ? void 0 : Z.align : "left")();
11666
+ let ce = Q;
11667
+ return K.value && R.value ? ce += 2 : (K.value || R.value) && (ce += 1), createVNode(TableSummary.Cell, {
11668
+ index: ce,
11669
+ align: _e
11670
11670
  }, {
11671
11671
  default: () => {
11672
- var de, _e;
11673
- return [(_e = (de = r == null ? void 0 : r.KgTable) == null ? void 0 : de["summary.bodyCell"]) == null ? void 0 : _e.call(de, {
11672
+ var ge, le;
11673
+ return [(le = (ge = r == null ? void 0 : r.KgTable) == null ? void 0 : ge["summary.bodyCell"]) == null ? void 0 : le.call(ge, {
11674
11674
  column: G,
11675
- index: ue,
11675
+ index: ce,
11676
11676
  varGridDetail: Z
11677
11677
  })];
11678
11678
  }
@@ -11721,7 +11721,7 @@ const KgTable$1 = "", getProps$y = () => ({
11721
11721
  bodyCell: _,
11722
11722
  emptyText: ae,
11723
11723
  expandedRowRender: (Q = r == null ? void 0 : r.KgTable) == null ? void 0 : Q.expandedRowRender,
11724
- summary: ce
11724
+ summary: de
11725
11725
  }), (o.isShowBottomLeft.value || o.isShowBottomRight.value) && createVNode("div", {
11726
11726
  class: D.value
11727
11727
  }, [createVNode("div", {
@@ -13826,11 +13826,11 @@ const getProps$r = () => ({
13826
13826
  setup: function(e, {
13827
13827
  attrs: t
13828
13828
  }) {
13829
- var De, ve;
13829
+ var Ae, Me;
13830
13830
  const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
13831
13831
  inject(DI_KG_VAR__KG_PROPS, null);
13832
13832
  const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = useKgSearch();
13833
- i.onSubmitSave(async () => (await de(), !1)), i.onSubmitCancel(async () => (await ue(), !1)), _useFormModel$1();
13833
+ i.onSubmitSave(async () => (await ge(), !1)), i.onSubmitCancel(async () => (await ce(), !1)), _useFormModel$1();
13834
13834
  const u = computed(() => s.isDeleting.value && R.value.length === 0 && P.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), b = computed(() => s.store.getVarSubmitConfig(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), m = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), O = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), M = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), K = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), R = computed(() => {
13835
13835
  var q, z, ee;
13836
13836
  switch (!0) {
@@ -13902,7 +13902,7 @@ const getProps$r = () => ({
13902
13902
  _useResizeObserver(J);
13903
13903
  const W = _useTitle(), te = computed(() => u.value ? SUBMIT_DEFAULT_MIN_WIDTH : X.value), re = computed(() => te.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), {
13904
13904
  getClass: se,
13905
- getWrapClass: ce
13905
+ getWrapClass: de
13906
13906
  } = _useClass(e), {
13907
13907
  getLayout: ae
13908
13908
  } = _useLayout(), {
@@ -13954,9 +13954,9 @@ const getProps$r = () => ({
13954
13954
  return s.varSubmitConfigProps.value["footer.ok-button.text-var-name.deleting"] ? s.t(s.varSubmitConfigProps.value["footer.ok-button.text-var-name.deleting"]).value : n.t("kg.delete");
13955
13955
  }
13956
13956
  return n.t("kg.save");
13957
- }), Y = ref([(ve = (De = s.varSubmitFieldSectionsForVisible.value) == null ? void 0 : De[0]) != null ? ve : ""]);
13957
+ }), Y = ref([(Me = (Ae = s.varSubmitFieldSectionsForVisible.value) == null ? void 0 : Ae[0]) != null ? Me : ""]);
13958
13958
  watch(re, (q, z) => {
13959
- q === !0 && Z(), z === !0 && q === !1 && fe();
13959
+ q === !0 && Z(), z === !0 && q === !1 && _e();
13960
13960
  }, {
13961
13961
  immediate: !0
13962
13962
  });
@@ -13970,8 +13970,8 @@ const getProps$r = () => ({
13970
13970
  }))
13971
13971
  return new Promise((z, ee) => {
13972
13972
  var ie;
13973
- const ne = watch(l.model, async (le) => {
13974
- le && Object.keys(le).length > 0 && (setTimeout(() => ne()), await l.store.emit(s.formID, "open", {
13973
+ const ne = watch(l.model, async (ue) => {
13974
+ ue && Object.keys(ue).length > 0 && (setTimeout(() => ne()), await l.store.emit(s.formID, "open", {
13975
13975
  isCopying: s.isCopying.value,
13976
13976
  isCreating: s.isCreating.value,
13977
13977
  isDeleting: s.isDeleting.value,
@@ -13985,10 +13985,10 @@ const getProps$r = () => ({
13985
13985
  ((ie = b.value) == null ? void 0 : ie.dft_fullscreen_flg) === 1 && !u.value && (F.value = !0);
13986
13986
  });
13987
13987
  }
13988
- async function fe() {
13988
+ async function _e() {
13989
13989
  await l.store.emit(s.formID, "close", null);
13990
13990
  }
13991
- async function ue() {
13991
+ async function ce() {
13992
13992
  switch (!0) {
13993
13993
  case s.isCreating.value:
13994
13994
  s.store.setIsCreating(s.formID, !1);
@@ -14004,7 +14004,7 @@ const getProps$r = () => ({
14004
14004
  break;
14005
14005
  }
14006
14006
  }
14007
- async function de() {
14007
+ async function ge() {
14008
14008
  var q, z;
14009
14009
  try {
14010
14010
  if (!l.formRef.value || await l.store.emit(s.formID, "beforeOk", {
@@ -14035,24 +14035,24 @@ const getProps$r = () => ({
14035
14035
  return;
14036
14036
  switch (!0) {
14037
14037
  case s.isCreating.value:
14038
- await _e();
14038
+ await le();
14039
14039
  break;
14040
14040
  case s.isUpdating.value:
14041
- await Ce();
14041
+ await ve();
14042
14042
  break;
14043
14043
  case s.isCopying.value:
14044
- await Se();
14044
+ await we();
14045
14045
  break;
14046
14046
  case s.isDeleting.value:
14047
- await Te();
14047
+ await Ee();
14048
14048
  break;
14049
14049
  }
14050
14050
  } catch (ee) {
14051
14051
  KgUtil.throwIfNotFormError(ee);
14052
14052
  }
14053
14053
  }
14054
- async function _e() {
14055
- var q, z, ee, ne, ie, le, ge;
14054
+ async function le() {
14055
+ var q, z, ee, ne, ie, ue, fe;
14056
14056
  s.store.setIsCreatingRequesting(s.formID, !0);
14057
14057
  try {
14058
14058
  let oe = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((z = (q = s.varButtonCreate.value) == null ? void 0 : q.cmd_prm) != null ? z : ""), s.formID, r)), me = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
@@ -14077,7 +14077,7 @@ const getProps$r = () => ({
14077
14077
  params: oe.value,
14078
14078
  data: me.value
14079
14079
  });
14080
- ((le = s.varButtonCreate.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(W.title.value + n.t("kg.succeed")), s.store.setIsCreating(s.formID, !1), ((ge = s.varButtonCreate.value) == null ? void 0 : ge.reload_all_after_done_flg) !== 0 && c.search({
14080
+ ((ue = s.varButtonCreate.value) == null ? void 0 : ue.show_success_message_flg) !== 0 && message.success(W.title.value + n.t("kg.succeed")), s.store.setIsCreating(s.formID, !1), ((fe = s.varButtonCreate.value) == null ? void 0 : fe.reload_all_after_done_flg) !== 0 && c.search({
14081
14081
  isSearchFirstPage: !0
14082
14082
  }), await l.store.emit(s.formID, "ok", {
14083
14083
  isCreating: !0,
@@ -14094,8 +14094,8 @@ const getProps$r = () => ({
14094
14094
  s.store.setIsCreatingRequesting(s.formID, !1);
14095
14095
  }
14096
14096
  }
14097
- async function Ce() {
14098
- var q, z, ee, ne, ie, le, ge;
14097
+ async function ve() {
14098
+ var q, z, ee, ne, ie, ue, fe;
14099
14099
  try {
14100
14100
  s.store.setIsUpdatingRequesting(s.formID, !0);
14101
14101
  let oe = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((z = (q = s.varButtonUpdate.value) == null ? void 0 : q.cmd_prm) != null ? z : ""), s.formID, r)), me = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
@@ -14120,7 +14120,7 @@ const getProps$r = () => ({
14120
14120
  params: oe.value,
14121
14121
  data: me.value
14122
14122
  });
14123
- ((le = s.varButtonUpdate.value) == null ? void 0 : le.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({
14123
+ ((ue = s.varButtonUpdate.value) == null ? void 0 : ue.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.setIsUpdating(s.formID, !1), ((fe = s.varButtonUpdate.value) == null ? void 0 : fe.reload_all_after_done_flg) !== 0 && c.search({
14124
14124
  isPreserveSelectedRows: !0
14125
14125
  }), await l.store.emit(s.formID, "ok", {
14126
14126
  isCreating: !1,
@@ -14137,8 +14137,8 @@ const getProps$r = () => ({
14137
14137
  s.store.setIsUpdatingRequesting(s.formID, !1);
14138
14138
  }
14139
14139
  }
14140
- async function Se() {
14141
- var q, z, ee, ne, ie, le, ge, oe, me;
14140
+ async function we() {
14141
+ var q, z, ee, ne, ie, ue, fe, oe, me;
14142
14142
  try {
14143
14143
  s.store.setIsCopyingRequesting(s.formID, !0);
14144
14144
  let be = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((z = (q = s.varButtonCopy.value) == null ? void 0 : q.cmd_prm) != null ? z : ""), s.formID, r)), pe = ref(KgUtil.parseParams({
@@ -14157,12 +14157,12 @@ const getProps$r = () => ({
14157
14157
  data: pe
14158
14158
  }))
14159
14159
  return;
14160
- const Me = (ie = s.varButtonCopy.value) == null ? void 0 : ie.cmd;
14161
- if (!Me)
14160
+ const Ie = (ie = s.varButtonCopy.value) == null ? void 0 : ie.cmd;
14161
+ if (!Ie)
14162
14162
  throw message.error(n.t("\u300C\u590D\u5236\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u590D\u5236\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
14163
14163
  const Ne = await httpClient().request({
14164
- url: Me,
14165
- method: (ge = (le = s.varButtonCopy.value) == null ? void 0 : le.cmd_method) != null ? ge : "POST",
14164
+ url: Ie,
14165
+ method: (fe = (ue = s.varButtonCopy.value) == null ? void 0 : ue.cmd_method) != null ? fe : "POST",
14166
14166
  params: be.value,
14167
14167
  data: pe.value
14168
14168
  });
@@ -14183,16 +14183,16 @@ const getProps$r = () => ({
14183
14183
  s.store.setIsCopyingRequesting(s.formID, !1);
14184
14184
  }
14185
14185
  }
14186
- async function Te() {
14187
- var q, z, ee, ne, ie, le, ge, oe, me, be, pe;
14186
+ async function Ee() {
14187
+ var q, z, ee, ne, ie, ue, fe, oe, me, be, pe;
14188
14188
  try {
14189
14189
  s.store.setIsDeletingRequesting(s.formID, !0);
14190
- let he = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((z = (q = s.varButtonDelete.value) == null ? void 0 : q.cmd_prm) != null ? z : ""), s.formID, r)), Me = ref((ee = o.selectedRows.value) != null ? ee : []);
14190
+ let he = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((z = (q = s.varButtonDelete.value) == null ? void 0 : q.cmd_prm) != null ? z : ""), s.formID, r)), Ie = ref((ee = o.selectedRows.value) != null ? ee : []);
14191
14191
  if (((ne = s.varButtonDelete.value) == null ? void 0 : ne.del_param_clm) !== "__kg__new_delete_param" && (he = ref({
14192
- ids: (le = (ie = o.selectedRows.value) == null ? void 0 : ie.map((xe) => {
14192
+ ids: (ue = (ie = o.selectedRows.value) == null ? void 0 : ie.map((xe) => {
14193
14193
  var Pe, Le, $e;
14194
14194
  return ($e = xe[(Le = (Pe = s.varButtonDelete.value) == null ? void 0 : Pe.del_param_clm) != null ? Le : "id"]) != null ? $e : "";
14195
- })) != null ? le : []
14195
+ })) != null ? ue : []
14196
14196
  })), await l.store.emit(s.formID, "beforeRequest", {
14197
14197
  isCreating: s.isCreating.value,
14198
14198
  isUpdating: s.isUpdating.value,
@@ -14202,17 +14202,17 @@ const getProps$r = () => ({
14202
14202
  rows: o.selectedRows.value,
14203
14203
  model: l.model,
14204
14204
  params: he,
14205
- data: Me
14205
+ data: Ie
14206
14206
  }))
14207
14207
  return;
14208
- const Ve = (ge = s.varButtonDelete.value) == null ? void 0 : ge.cmd;
14208
+ const Ve = (fe = s.varButtonDelete.value) == null ? void 0 : fe.cmd;
14209
14209
  if (!Ve)
14210
14210
  throw message.error(n.t("\u300C\u5220\u9664\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u5220\u9664\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
14211
14211
  const Fe = (me = (oe = s.varButtonDelete.value) == null ? void 0 : oe.cmd_method) != null ? me : "POST", Be = await httpClient().request({
14212
14212
  url: Ve,
14213
14213
  method: Fe,
14214
14214
  params: he.value,
14215
- data: Me.value
14215
+ data: Ie.value
14216
14216
  }, {
14217
14217
  joinParamsToUrl: !0
14218
14218
  });
@@ -14236,43 +14236,43 @@ const getProps$r = () => ({
14236
14236
  s.store.setIsDeletingRequesting(s.formID, !1);
14237
14237
  }
14238
14238
  }
14239
- function Ie(q) {
14240
- var ne, ie, le, ge;
14241
- const z = (ie = (ne = a == null ? void 0 : a.KgSubmit) == null ? void 0 : ne["KgForm.Item.control"]) == null ? void 0 : ie[q.var_nam], ee = (ge = (le = a == null ? void 0 : a.KgSubmit) == null ? void 0 : le["KgForm.Item.controlRight"]) == null ? void 0 : ge[q.var_nam];
14239
+ function Te(q) {
14240
+ var ne, ie, ue, fe;
14241
+ const z = (ie = (ne = a == null ? void 0 : a.KgSubmit) == null ? void 0 : ne["KgForm.Item.control"]) == null ? void 0 : ie[q.var_nam], ee = (fe = (ue = a == null ? void 0 : a.KgSubmit) == null ? void 0 : ue["KgForm.Item.controlRight"]) == null ? void 0 : fe[q.var_nam];
14242
14242
  return createVNode(KgForm.Item, {
14243
14243
  kgVarName: q.var_nam,
14244
14244
  kgContext: KG_FORM_CONTEXT.SUBMIT,
14245
- onKgSubmit: de
14245
+ onKgSubmit: ge
14246
14246
  }, {
14247
14247
  control: isFunction$2(z) ? (oe) => z(oe) : void 0,
14248
14248
  controlRight: isFunction$2(ee) ? (oe) => ee(oe) : void 0
14249
14249
  });
14250
14250
  }
14251
- function Ee() {
14252
- return s.varSubmitFieldSectionsForVisible.value.length > 0 ? Re() : Oe();
14251
+ function Re() {
14252
+ return s.varSubmitFieldSectionsForVisible.value.length > 0 ? Ke() : De();
14253
14253
  }
14254
- function Oe() {
14254
+ function De() {
14255
14255
  let q, z;
14256
14256
  return createVNode(Fragment, null, [R.value.length > 0 && createVNode(Row, {
14257
14257
  gutter: 12
14258
- }, _isSlot$6(q = R.value.map(Ie)) ? q : {
14258
+ }, _isSlot$6(q = R.value.map(Te)) ? q : {
14259
14259
  default: () => [q]
14260
14260
  }), V.value.length > 0 && D.value.length > 0 && createVNode(Divider, null, null), P.value.length > 0 && createVNode(Row, {
14261
14261
  gutter: 12
14262
- }, _isSlot$6(z = P.value.map(Ie)) ? z : {
14262
+ }, _isSlot$6(z = P.value.map(Te)) ? z : {
14263
14263
  default: () => [z]
14264
14264
  }), u.value && createVNode("div", {
14265
14265
  style: "text-align: center; padding: 6px 0 12px;"
14266
14266
  }, [n.t("kg.confirmDelete")])]);
14267
14267
  }
14268
- function Re() {
14268
+ function Ke() {
14269
14269
  var q;
14270
14270
  return createVNode("div", {
14271
14271
  class: "section"
14272
14272
  }, [createVNode(Menu, {
14273
14273
  mode: "inline",
14274
14274
  selectedKeys: Y.value,
14275
- onSelect: Ae
14275
+ onSelect: Se
14276
14276
  }, {
14277
14277
  default: () => {
14278
14278
  var z;
@@ -14289,11 +14289,11 @@ const getProps$r = () => ({
14289
14289
  }, {
14290
14290
  default: () => {
14291
14291
  var ee, ne;
14292
- return [(ne = (ee = s.varSubmitFieldsForVisible.value) == null ? void 0 : ee.filter((ie) => ie.section === z)) == null ? void 0 : ne.map(Ie)];
14292
+ return [(ne = (ee = s.varSubmitFieldsForVisible.value) == null ? void 0 : ee.filter((ie) => ie.section === z)) == null ? void 0 : ne.map(Te)];
14293
14293
  }
14294
14294
  })]))])]);
14295
14295
  }
14296
- function we() {
14296
+ function ye() {
14297
14297
  return createVNode(Spin, {
14298
14298
  spinning: d.value
14299
14299
  }, {
@@ -14308,18 +14308,18 @@ const getProps$r = () => ({
14308
14308
  }, {
14309
14309
  default: () => [createVNode("div", {
14310
14310
  ref: J
14311
- }, [Ee()])]
14311
+ }, [Re()])]
14312
14312
  })];
14313
14313
  }
14314
14314
  });
14315
14315
  }
14316
- function Ke() {
14316
+ function Ce() {
14317
14317
  let q;
14318
14318
  return createVNode("div", null, [createVNode(Button, {
14319
14319
  type: "primary",
14320
14320
  ghost: !I.value,
14321
14321
  disabled: I.value,
14322
- onClick: ue
14322
+ onClick: ce
14323
14323
  }, _isSlot$6(q = n.t("kg.cancel")) ? q : {
14324
14324
  default: () => [q]
14325
14325
  }), createVNode(Button, {
@@ -14327,24 +14327,24 @@ const getProps$r = () => ({
14327
14327
  disabled: N.value,
14328
14328
  loading: w.value,
14329
14329
  danger: !!s.isDeleting.value,
14330
- onClick: de
14330
+ onClick: ge
14331
14331
  }, {
14332
14332
  default: () => [Q.value]
14333
14333
  })]);
14334
14334
  }
14335
- function ye() {
14335
+ function ke() {
14336
14336
  return createVNode("div", {
14337
14337
  title: W.title.value
14338
14338
  }, [W.title.value]);
14339
14339
  }
14340
- function ke() {
14340
+ function Oe() {
14341
14341
  return !!u.value || !e.kgIsShowVarSubmitConfigButton ? null : createVNode(KgSubmitVarSubmitConfigButton, null, null);
14342
14342
  }
14343
- function Ae(q) {
14343
+ function Se(q) {
14344
14344
  Y.value = q.selectedKeys;
14345
14345
  }
14346
14346
  return onUnmounted(async () => {
14347
- l.store.dispose(s.formID), await fe();
14347
+ l.store.dispose(s.formID), await _e();
14348
14348
  }), () => createVNode(KgModal, {
14349
14349
  visible: re.value,
14350
14350
  mask: l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE,
@@ -14353,7 +14353,7 @@ const getProps$r = () => ({
14353
14353
  destroyOnClose: !0,
14354
14354
  width: te.value,
14355
14355
  class: se.value,
14356
- wrapClassName: ce.value,
14356
+ wrapClassName: de.value,
14357
14357
  kgFullHeight: !1,
14358
14358
  kgMinWidth: L.value,
14359
14359
  kgMaxWidth: x.value,
@@ -14362,12 +14362,12 @@ const getProps$r = () => ({
14362
14362
  kgIsShowFullscreenButton: H.value,
14363
14363
  kgIsDefaultFullscreen: F.value,
14364
14364
  "kg-frm_id": s.formID,
14365
- onCancel: ue
14365
+ onCancel: ce
14366
14366
  }, {
14367
- title: ye,
14368
- kgModalHeaderButtonsExtra: ke,
14369
- default: we,
14370
- footer: Ke
14367
+ title: ke,
14368
+ kgModalHeaderButtonsExtra: Oe,
14369
+ default: ye,
14370
+ footer: Ce
14371
14371
  });
14372
14372
  }
14373
14373
  }), FORM_ID__KG_SEARCH__VAR_PROFILE_MASTER = "kg-search.VarProfileMaster", DEFAULT_PAGE_SIZES = "[10, 20, 50, 100]", DEFAULT_PAGE_SIZE = 10;
@@ -22322,6 +22322,10 @@ export {
22322
22322
  VarVariablePossibility,
22323
22323
  WhDTO,
22324
22324
  __KG__RESPONSE__,
22325
+ ____DEBUG____,
22326
+ ____ERROR____,
22327
+ ____INFO_____,
22328
+ ____WARN_____,
22325
22329
  createKgWarehouseGuard,
22326
22330
  getKgModalWidth,
22327
22331
  getPinia,
@@ -1 +1 @@
1
- export * from './build';
1
+ export * from './build';
@@ -62,4 +62,8 @@ declare class KgLogger {
62
62
  */
63
63
  static debugDDA(formID: string | null | undefined, component: string | null | undefined, method: string | null | undefined, message: string | null | undefined, args?: Record<string, any>, collapsed?: boolean): void;
64
64
  }
65
- export { KgLogger };
65
+ declare const ____DEBUG____: typeof KgLogger.debug;
66
+ declare const ____INFO_____: typeof KgLogger.info;
67
+ declare const ____WARN_____: typeof KgLogger.warn;
68
+ declare const ____ERROR____: typeof KgLogger.error;
69
+ export { KgLogger, ____DEBUG____, ____INFO_____, ____WARN_____, ____ERROR____ };
package/package.json CHANGED
@@ -1,21 +1,19 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.21.5-beta.2",
3
+ "version": "0.21.5-beta.3",
4
4
  "scripts": {
5
5
  "build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
7
7
  "--------------------------------------------------": "",
8
- "publish:all:beta": "npm run bump-version:beta && npm run publish:all",
9
- "publish:all:patch": "npm run bump-version:patch && npm run publish:all",
10
- "publish:all:minor": "npm run bump-version:minor && npm run publish:all",
11
8
  "publish:all:major": "npm run bump-version:major && npm run publish:all",
9
+ "publish:all:minor": "npm run bump-version:minor && npm run publish:all",
10
+ "publish:all:patch": "npm run bump-version:patch && npm run publish:all",
11
+ "publish:all:beta": "npm run bump-version:beta && npm run publish:all",
12
12
  "----- --------------------------------------------": "",
13
13
  "gen:apis:WMS": "npm run switch-node-version && kengic-pont generate-apis --config kg.config.ts --origin WMS",
14
14
  "--- ----------------------------------------------": "",
15
- "bump-to:luotao.wms-vue3--dev-3.1": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.ts",
16
- "copy-to:luotao.wms-vue3--dev-3.1": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.ts",
17
- "bump-to:luotao.wms-vue3--focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.focus.ts",
18
15
  "copy-to:luotao.wms-vue3--focus": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.focus.ts",
16
+ "bump-to:luotao.wms-vue3--focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.focus.ts",
19
17
  "- ------------------------------------------------": "",
20
18
  "cnpm:sync": "npm run switch-node-version && npx cnpm --yes sync @kengic/vue",
21
19
  "switch-node-version": "nvm use 18.16.0 && corepack enable && corepack prepare pnpm@7.30.5 --activate",