@kengic/vue 0.21.5-beta.4 → 0.21.5-beta.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  var Ue = Object.defineProperty;
2
2
  var Ge = (e, t, r) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var p = (e, t, r) => (Ge(e, typeof t != "symbol" ? t + "" : t, r), r);
4
- import { h, nextTick, createVNode, defineComponent, toRaw, unref, inject, Fragment, isVNode, getCurrentInstance, markRaw, ref, watch, reactive, effectScope, isRef, isReactive, toRef, computed, onUnmounted, toRefs, onMounted, onBeforeUnmount, getCurrentScope, onScopeDispose, createTextVNode, provide, mergeProps, onActivated, onDeactivated, Teleport } from "vue";
4
+ import { h, nextTick, createVNode, defineComponent, toRaw, unref, inject, Fragment, isVNode, getCurrentInstance, markRaw, ref, watch, reactive, effectScope, isRef, isReactive, toRef, computed, onUnmounted, toRefs, onMounted, onBeforeUnmount, getCurrentScope, onScopeDispose, createTextVNode, onActivated, provide, mergeProps, onDeactivated, Teleport } from "vue";
5
5
  import { Modal, Select, Spin, message, Tooltip, SelectOption, Image as Image$1, Button, Progress, Checkbox, Input, Transfer, Table, Tabs, Dropdown, Menu, Tag, Row, Pagination, TableSummary, Form, Divider, Col, DatePicker, InputNumber, Radio, Switch, Textarea, Upload, ConfigProvider, Card, TabPane, TreeSelect, Steps } from "ant-design-vue";
6
6
  const index$a = "";
7
7
  function bound01(e, t) {
@@ -2462,7 +2462,7 @@ const emptyIcon = {
2462
2462
  ...t.data
2463
2463
  }, r);
2464
2464
  }
2465
- }), version = "0.21.5-beta.4";
2465
+ }), version = "0.21.5-beta.6";
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")();
@@ -4699,7 +4699,7 @@ class KgRouteUtil {
4699
4699
  }), t;
4700
4700
  }
4701
4701
  static transformMenus(t) {
4702
- var m, y, _, v, g, E, b, T, k, A, C, I, M, N, R, V, P, O, w, D, K, F, L, x, $, U, H, J, W, te, re, se, de, ae;
4702
+ var m, y, _, v, g, E, b, T, k, A, C, I, M, N, R, V, P, O, w, D, K, F, L, x, $, U, H, J, W, te, re, se, ce, ae;
4703
4703
  if (!t)
4704
4704
  return [];
4705
4705
  const r = useKg(), a = (X) => {
@@ -4808,7 +4808,7 @@ class KgRouteUtil {
4808
4808
  }
4809
4809
  });
4810
4810
  let u = [];
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);
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 = (ce = c.children) == null ? void 0 : ce.length) != null ? ae : 0 > 0) && u.push(c);
4812
4812
  const d = (X) => {
4813
4813
  X.sort((B, G) => {
4814
4814
  var Q, Y;
@@ -5006,8 +5006,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5006
5006
  case d:
5007
5007
  return x ? U(1, W) : U(0, W + 1);
5008
5008
  case u:
5009
- var se = this.$locale().weekStart || 0, de = (J < se ? J + 7 : J) - se;
5010
- return U(x ? te - de : te + (6 - de), W);
5009
+ var se = this.$locale().weekStart || 0, ce = (J < se ? J + 7 : J) - se;
5010
+ return U(x ? te - ce : te + (6 - ce), W);
5011
5011
  case c:
5012
5012
  case _:
5013
5013
  return H(re + "Hours", 0);
@@ -5059,7 +5059,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5059
5059
  return L.invalidDate || v;
5060
5060
  var x = K || "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) {
5061
5061
  return X && (X[B] || X(F, x)) || G[B].slice(0, Q);
5062
- }, de = function(X) {
5062
+ }, ce = function(X) {
5063
5063
  return V.s(U % 12 || 12, X, "0");
5064
5064
  }, ae = re || function(X, B, G) {
5065
5065
  var Q = X < 12 ? "AM" : "PM";
@@ -5097,9 +5097,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
5097
5097
  case "HH":
5098
5098
  return V.s(U, 2, "0");
5099
5099
  case "h":
5100
- return de(1);
5100
+ return ce(1);
5101
5101
  case "hh":
5102
- return de(2);
5102
+ return ce(2);
5103
5103
  case "a":
5104
5104
  return ae(U, H, !0);
5105
5105
  case "A":
@@ -7195,7 +7195,7 @@ function useDragToResize(e) {
7195
7195
  T.remove(), k.remove();
7196
7196
  }
7197
7197
  function M(P) {
7198
- var F, L, x, $, U, H, J, W, te, re, se, de;
7198
+ var F, L, x, $, U, H, J, W, te, re, se, ce;
7199
7199
  const {
7200
7200
  event: O,
7201
7201
  handleType: w
@@ -7226,12 +7226,12 @@ function useDragToResize(e) {
7226
7226
  const ae = l.value.offsetWidth, X = Math.min(m.value, Math.max(d.value, v + D - 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, g + K - b));
7227
7227
  if (X === ae && Z === Y)
7228
7228
  return;
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`;
7229
+ 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;
7230
+ l.value.style.width = `${X}px`, l.value.style.height = `${Z}px`, l.value.style.top = `${ue}px`, l.value.style.left = `${_e}px`;
7231
7231
  break;
7232
7232
  }
7233
7233
  case "bottom": {
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);
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((ce = (se = t.value) == null ? void 0 : se.kgMinHeight) != null ? ce : ae + X + KG_MODAL_BORDER_WIDTH * 2, n.value);
7235
7235
  let G = Math.min(y.value, Math.max(B, g + K - b));
7236
7236
  l.value.offsetTop + G > n.value && (G = n.value - l.value.offsetTop);
7237
7237
  const Q = l.value.offsetHeight, Y = Number(getComputedStyle(l.value).top.replace(/px/g, ""));
@@ -11196,6 +11196,28 @@ function _useResizeObserver$1(e) {
11196
11196
  a == null || a.disconnect();
11197
11197
  }), {};
11198
11198
  }
11199
+ function _useCacheScrollState(e) {
11200
+ let t = 0, r = 0, a = debounce((n) => {
11201
+ var s, i, o, l;
11202
+ t = (i = (s = n.target) == null ? void 0 : s.scrollLeft) != null ? i : 0, r = (l = (o = n.target) == null ? void 0 : o.scrollTop) != null ? l : 0;
11203
+ }, 200, {
11204
+ leading: !1,
11205
+ trailing: !0
11206
+ });
11207
+ return onActivated(() => {
11208
+ var s;
11209
+ const n = (s = e.value) == null ? void 0 : s.querySelector("div.ant-table-body");
11210
+ n && (n.scrollLeft = t, n.scrollTop = r);
11211
+ }), onMounted(() => {
11212
+ var s;
11213
+ const n = (s = e.value) == null ? void 0 : s.querySelector("div.ant-table-body");
11214
+ n == null || n.addEventListener("scroll", a);
11215
+ }), onBeforeUnmount(() => {
11216
+ var s;
11217
+ const n = (s = e.value) == null ? void 0 : s.querySelector("div.ant-table-body");
11218
+ n == null || n.removeEventListener("scroll", a);
11219
+ }), {};
11220
+ }
11199
11221
  function _useDragColumn(e, t) {
11200
11222
  const r = useKgVar();
11201
11223
  useKgTable();
@@ -11348,7 +11370,7 @@ const KgTable$1 = "", getProps$y = () => ({
11348
11370
  } = _useLoading(), v = ref(null), {
11349
11371
  renderBodyCell: g
11350
11372
  } = _useRenderBodyCell();
11351
- _useResizeObserver$1(v), _useDragColumn(v, u);
11373
+ _useCacheScrollState(v), _useResizeObserver$1(v), _useDragColumn(v, u);
11352
11374
  const {
11353
11375
  datas: E,
11354
11376
  transformDatas: b
@@ -11356,7 +11378,7 @@ const KgTable$1 = "", getProps$y = () => ({
11356
11378
  var B, G;
11357
11379
  return (G = (B = s.varButtonSearch.value) == null ? void 0 : B.cmd) != null ? G : null;
11358
11380
  }), k = computed(() => {
11359
- var G, Q, Y, Z, _e, ce, ge, le, ve;
11381
+ var G, Q, Y, Z, fe, ue, de, _e, pe;
11360
11382
  let B = {
11361
11383
  pageNo: D.pageIndex,
11362
11384
  pageSize: D.pageSize,
@@ -11366,11 +11388,11 @@ const KgTable$1 = "", getProps$y = () => ({
11366
11388
  };
11367
11389
  return s.varButtonSearch.value && (B = {
11368
11390
  ...B,
11369
- ...KgVarUtil.parseRequestParamsToJSON((ce = (_e = s.varButtonSearch.value) == null ? void 0 : _e.cmd_prm) != null ? ce : "")
11370
- }), (ge = s.varGridConfig.value) != null && ge.cmd_prm && (B = {
11391
+ ...KgVarUtil.parseRequestParamsToJSON((ue = (fe = s.varButtonSearch.value) == null ? void 0 : fe.cmd_prm) != null ? ue : "")
11392
+ }), (de = s.varGridConfig.value) != null && de.cmd_prm && (B = {
11371
11393
  ...B,
11372
- ...KgVarUtil.parseRequestParamsToJSON((le = s.varGridConfig.value.cmd_prm) != null ? le : "")
11373
- }), ((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;
11394
+ ...KgVarUtil.parseRequestParamsToJSON((_e = s.varGridConfig.value.cmd_prm) != null ? _e : "")
11395
+ }), ((pe = s.varGridConfig.value) == null ? void 0 : pe.convert_sort_field_to_under_score_flg) === 1 && B.column && (B.column = snakeCase$1(B.column)), B;
11374
11396
  }), A = computed(() => {
11375
11397
  var B, G, Q, Y;
11376
11398
  if (!isNil((G = (B = a == null ? void 0 : a.value) == null ? void 0 : B.KgTable) == null ? void 0 : G.kgDisabled))
@@ -11534,33 +11556,33 @@ const KgTable$1 = "", getProps$y = () => ({
11534
11556
  immediate: !0
11535
11557
  });
11536
11558
  async function Q() {
11537
- var Y, Z, _e, ce, ge;
11559
+ var Y, Z, fe, ue, de, _e;
11538
11560
  KgLogger.debug(`${s.formID} | KgTable | request() | requestDatas() | \u6267\u884C\u5F00\u59CB.`), B.isSearchFirstPage && (D.pageIndex = 1), o.store.setIsRequesting(s.formID, !0);
11539
11561
  try {
11540
- const le = KgUtil.parseParams(k.value, o.kgSearchFormID.value, t), ve = ref({});
11562
+ const pe = KgUtil.parseParams(k.value, o.kgSearchFormID.value, t), Ce = ref({});
11541
11563
  if (!await o.store.emit(s.formID, "beforeSearch", {
11542
- params: le,
11543
- response: ve
11564
+ params: pe,
11565
+ response: Ce
11544
11566
  })) {
11545
11567
  if (!T.value)
11546
11568
  throw KgLogger.error(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.`, {
11547
11569
  VarButton: s.varButtonSearch.value
11548
11570
  }), new Error("\u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.");
11549
- 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, {
11550
- sql: Ce,
11571
+ 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, {
11572
+ sql: Te,
11551
11573
  whereSql: ke,
11552
11574
  orderBySql: Oe
11553
- } = KgUtil.getQuerySql(k.value, o.kgSearchFormID.value, null, t), Se = await httpClient().request({
11575
+ } = KgUtil.getQuerySql(k.value, o.kgSearchFormID.value, null, t), me = await httpClient().request({
11554
11576
  url: T.value,
11555
11577
  method: (() => {
11556
- var Ae, Me;
11557
- 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";
11578
+ var Ae, q;
11579
+ return s.formID === ".wms.business-manager.outbound.wave.print-tag-modal" ? "POST" : (q = (Ae = s.varButtonSearch.value) == null ? void 0 : Ae.cmd_method) != null ? q : "GET";
11558
11580
  })(),
11559
- params: le,
11560
- data: le,
11581
+ params: pe,
11582
+ data: pe,
11561
11583
  headers: {
11562
11584
  [KG_HTTP_HEADERS.KG_DYNAMIC_QUERY]: ye,
11563
- [KG_HTTP_HEADERS.KG_QUERY_SQL]: Ce,
11585
+ [KG_HTTP_HEADERS.KG_QUERY_SQL]: Te,
11564
11586
  [KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL]: ke,
11565
11587
  [KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]: Oe
11566
11588
  }
@@ -11568,39 +11590,39 @@ const KgTable$1 = "", getProps$y = () => ({
11568
11590
  isReturnNativeResponse: !0,
11569
11591
  successMessageMode: "none"
11570
11592
  });
11571
- if (!Se.data)
11593
+ if (!me.data)
11572
11594
  throw message.error(n.t("kg.KgTable.request-fail-no-data")), new Error(n.t("kg.KgTable.request-fail-no-data"));
11573
- if (![0, 200].includes((ce = Se.data.code) != null ? ce : -1) || !Se.data.success)
11574
- 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"));
11575
- 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.`, {
11576
- params: le,
11577
- response: ve.value
11595
+ if (![0, 200].includes((ue = me.data.code) != null ? ue : -1) || !me.data.success)
11596
+ throw message.error(me.data.message || n.t("kg.KgTable.request-fail-error")), new Error(me.data.message || n.t("kg.KgTable.request-fail-error"));
11597
+ ye && me.headers[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY.toLowerCase()] !== "true" && message.warning(n.t("kg.KgTable.dynamic-query-is-off-in-server")), Ce.value = me.data.result, ((de = s.varButtonSearch.value) == null ? void 0 : de.show_success_message_flg) === 0 && me.data.message && message.success(me.data.message), KgLogger.debug(`${s.formID} | KgTable | request() | requestDatas() | \u67E5\u8BE2\u6210\u529F.`, {
11598
+ params: pe,
11599
+ response: Ce.value
11578
11600
  });
11579
11601
  }
11580
11602
  const {
11581
- datas: Ee,
11582
- total: Te
11583
- } = b(ve), Re = await o.store.emit(s.formID, "beforeSetDatas", {
11584
- datas: Ee
11603
+ datas: Se,
11604
+ total: Ie
11605
+ } = b(Ce), Re = await o.store.emit(s.formID, "beforeSetDatas", {
11606
+ datas: Se
11585
11607
  }), De = cloneDeep(w.value);
11586
11608
  o.store.setDatas({
11587
11609
  frmId: s.formID,
11588
- datas: Ee.value,
11610
+ datas: Se.value,
11589
11611
  isPreserveSelectedRows: !0
11590
- }), D.total = Te.value, d.value = {}, x({
11612
+ }), D.total = Ie.value, d.value = {}, x({
11591
11613
  isContinueWhenKgDisabled: !0
11592
11614
  }), c.value = [], await nextTick(), B.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, De.map((ye) => {
11593
- var Ce;
11594
- return (Ce = Ee.value) == null ? void 0 : Ce.find((ke) => ke[o.id.value] === ye);
11595
- }).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]]);
11615
+ var Te;
11616
+ return (Te = Se.value) == null ? void 0 : Te.find((ke) => ke[o.id.value] === ye);
11617
+ }).filter((ye) => !!ye)) : ((_e = s.varGridConfig.value) == null ? void 0 : _e.check_first_row_after_retrieve) === 1 && Se.value.length > 0 && o.store.setSelectedRows(s.formID, [Se.value[0]]);
11596
11618
  const Ke = await o.store.emit(s.formID, "afterSearch", {
11597
- params: le,
11598
- response: ve.value,
11599
- datas: Ee
11619
+ params: pe,
11620
+ response: Ce.value,
11621
+ datas: Se
11600
11622
  });
11601
11623
  o.store.setIsRequested(s.formID, !0);
11602
- } catch (le) {
11603
- throw le;
11624
+ } catch (pe) {
11625
+ throw pe;
11604
11626
  } finally {
11605
11627
  o.store.setIsRequesting(s.formID, !1);
11606
11628
  }
@@ -11630,7 +11652,7 @@ const KgTable$1 = "", getProps$y = () => ({
11630
11652
  }
11631
11653
  o.store.setSelectedRows(s.formID, w.value.map((Y) => {
11632
11654
  var Z;
11633
- return (Z = E.value) == null ? void 0 : Z.find((_e) => _e[o.id.value] === Y);
11655
+ return (Z = E.value) == null ? void 0 : Z.find((fe) => fe[o.id.value] === Y);
11634
11656
  }).filter((Y) => !!Y));
11635
11657
  }
11636
11658
  function J(B, G) {
@@ -11672,7 +11694,7 @@ const KgTable$1 = "", getProps$y = () => ({
11672
11694
  kgDisabled: A.value
11673
11695
  }, null);
11674
11696
  }
11675
- function de() {
11697
+ function ce() {
11676
11698
  var B;
11677
11699
  return (B = r == null ? void 0 : r.KgTable) != null && B["summary.bodyCell"] ? createVNode(TableSummary, {
11678
11700
  fixed: "bottom"
@@ -11683,17 +11705,17 @@ const KgTable$1 = "", getProps$y = () => ({
11683
11705
  }, null), R.value && createVNode(TableSummary.Cell, {
11684
11706
  index: N.value ? 1 : 0
11685
11707
  }, null), u.value.map((G, Q) => {
11686
- 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")();
11687
- let ce = Q;
11688
- return N.value && R.value ? ce += 2 : (N.value || R.value) && (ce += 1), createVNode(TableSummary.Cell, {
11689
- index: ce,
11690
- align: _e
11708
+ 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")();
11709
+ let ue = Q;
11710
+ return N.value && R.value ? ue += 2 : (N.value || R.value) && (ue += 1), createVNode(TableSummary.Cell, {
11711
+ index: ue,
11712
+ align: fe
11691
11713
  }, {
11692
11714
  default: () => {
11693
- var ge, le;
11694
- return [(le = (ge = r == null ? void 0 : r.KgTable) == null ? void 0 : ge["summary.bodyCell"]) == null ? void 0 : le.call(ge, {
11715
+ var de, _e;
11716
+ return [(_e = (de = r == null ? void 0 : r.KgTable) == null ? void 0 : de["summary.bodyCell"]) == null ? void 0 : _e.call(de, {
11695
11717
  column: G,
11696
- index: ce,
11718
+ index: ue,
11697
11719
  varGridDetail: Z
11698
11720
  })];
11699
11721
  }
@@ -11742,7 +11764,7 @@ const KgTable$1 = "", getProps$y = () => ({
11742
11764
  bodyCell: g,
11743
11765
  emptyText: ae,
11744
11766
  expandedRowRender: (Q = r == null ? void 0 : r.KgTable) == null ? void 0 : Q.expandedRowRender,
11745
- summary: de
11767
+ summary: ce
11746
11768
  }), (o.isShowBottomLeft.value || o.isShowBottomRight.value) && createVNode("div", {
11747
11769
  class: O.value
11748
11770
  }, [createVNode("div", {
@@ -13847,11 +13869,11 @@ const getProps$r = () => ({
13847
13869
  setup: function(e, {
13848
13870
  attrs: t
13849
13871
  }) {
13850
- var Ae, Me;
13872
+ var me, Ae;
13851
13873
  const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
13852
13874
  inject(DI_KG_VAR__KG_PROPS, null);
13853
13875
  const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = useKgSearch();
13854
- i.onSubmitSave(async () => (await ge(), !1)), i.onSubmitCancel(async () => (await ce(), !1)), _useFormModel$1();
13876
+ i.onSubmitSave(async () => (await de(), !1)), i.onSubmitCancel(async () => (await ue(), !1)), _useFormModel$1();
13855
13877
  const u = computed(() => s.isDeleting.value && R.value.length === 0 && P.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), m = computed(() => s.store.getVarSubmitConfig(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), b = 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)), I = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), M = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), N = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), R = computed(() => {
13856
13878
  var q, z, ee;
13857
13879
  switch (!0) {
@@ -13923,7 +13945,7 @@ const getProps$r = () => ({
13923
13945
  _useResizeObserver(J);
13924
13946
  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)), {
13925
13947
  getClass: se,
13926
- getWrapClass: de
13948
+ getWrapClass: ce
13927
13949
  } = _useClass(e), {
13928
13950
  getLayout: ae
13929
13951
  } = _useLayout(), {
@@ -13975,9 +13997,9 @@ const getProps$r = () => ({
13975
13997
  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");
13976
13998
  }
13977
13999
  return n.t("kg.save");
13978
- }), Y = ref([(Me = (Ae = s.varSubmitFieldSectionsForVisible.value) == null ? void 0 : Ae[0]) != null ? Me : ""]);
14000
+ }), Y = ref([(Ae = (me = s.varSubmitFieldSectionsForVisible.value) == null ? void 0 : me[0]) != null ? Ae : ""]);
13979
14001
  watch(re, (q, z) => {
13980
- q === !0 && Z(), z === !0 && q === !1 && _e();
14002
+ q === !0 && Z(), z === !0 && q === !1 && fe();
13981
14003
  }, {
13982
14004
  immediate: !0
13983
14005
  });
@@ -13991,8 +14013,8 @@ const getProps$r = () => ({
13991
14013
  }))
13992
14014
  return new Promise((z, ee) => {
13993
14015
  var ie;
13994
- const ne = watch(l.model, async (ue) => {
13995
- ue && Object.keys(ue).length > 0 && (setTimeout(() => ne()), await l.store.emit(s.formID, "open", {
14016
+ const ne = watch(l.model, async (le) => {
14017
+ le && Object.keys(le).length > 0 && (setTimeout(() => ne()), await l.store.emit(s.formID, "open", {
13996
14018
  isCopying: s.isCopying.value,
13997
14019
  isCreating: s.isCreating.value,
13998
14020
  isDeleting: s.isDeleting.value,
@@ -14006,10 +14028,10 @@ const getProps$r = () => ({
14006
14028
  ((ie = m.value) == null ? void 0 : ie.dft_fullscreen_flg) === 1 && !u.value && (F.value = !0);
14007
14029
  });
14008
14030
  }
14009
- async function _e() {
14031
+ async function fe() {
14010
14032
  await l.store.emit(s.formID, "close", null);
14011
14033
  }
14012
- async function ce() {
14034
+ async function ue() {
14013
14035
  switch (!0) {
14014
14036
  case s.isCreating.value:
14015
14037
  s.store.setIsCreating(s.formID, !1);
@@ -14025,7 +14047,7 @@ const getProps$r = () => ({
14025
14047
  break;
14026
14048
  }
14027
14049
  }
14028
- async function ge() {
14050
+ async function de() {
14029
14051
  var q, z;
14030
14052
  try {
14031
14053
  if (!l.formRef.value || await l.store.emit(s.formID, "beforeOk", {
@@ -14056,29 +14078,29 @@ const getProps$r = () => ({
14056
14078
  return;
14057
14079
  switch (!0) {
14058
14080
  case s.isCreating.value:
14059
- await le();
14081
+ await _e();
14060
14082
  break;
14061
14083
  case s.isUpdating.value:
14062
- await ve();
14084
+ await pe();
14063
14085
  break;
14064
14086
  case s.isCopying.value:
14065
- await we();
14087
+ await Ce();
14066
14088
  break;
14067
14089
  case s.isDeleting.value:
14068
- await Ee();
14090
+ await we();
14069
14091
  break;
14070
14092
  }
14071
14093
  } catch (ee) {
14072
14094
  KgUtil.throwIfNotFormError(ee);
14073
14095
  }
14074
14096
  }
14075
- async function le() {
14076
- var q, z, ee, ne, ie, ue, fe;
14097
+ async function _e() {
14098
+ var q, z, ee, ne, ie, le, ge;
14077
14099
  s.store.setIsCreatingRequesting(s.formID, !0);
14078
14100
  try {
14079
- 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));
14101
+ let oe = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((z = (q = s.varButtonCreate.value) == null ? void 0 : q.cmd_prm) != null ? z : ""), s.formID, r)), ve = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
14080
14102
  if (await l.store.emit(s.formID, "beforeRequest", {
14081
- data: me,
14103
+ data: ve,
14082
14104
  isCopying: s.isCopying.value,
14083
14105
  isCreating: s.isCreating.value,
14084
14106
  isDeleting: s.isDeleting.value,
@@ -14089,16 +14111,16 @@ const getProps$r = () => ({
14089
14111
  rows: o.selectedRows.value
14090
14112
  }))
14091
14113
  return;
14092
- const pe = (ee = s.varButtonCreate.value) == null ? void 0 : ee.cmd;
14093
- if (!pe)
14114
+ const he = (ee = s.varButtonCreate.value) == null ? void 0 : ee.cmd;
14115
+ if (!he)
14094
14116
  throw message.error(n.t("\u300C\u521B\u5EFA\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u521B\u5EFA\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
14095
- const he = await httpClient().request({
14096
- url: pe,
14117
+ const be = await httpClient().request({
14118
+ url: he,
14097
14119
  method: (ie = (ne = s.varButtonCreate.value) == null ? void 0 : ne.cmd_method) != null ? ie : "POST",
14098
14120
  params: oe.value,
14099
- data: me.value
14121
+ data: ve.value
14100
14122
  });
14101
- ((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({
14123
+ ((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({
14102
14124
  isSearchFirstPage: !0
14103
14125
  }), await l.store.emit(s.formID, "ok", {
14104
14126
  isCreating: !0,
@@ -14107,7 +14129,7 @@ const getProps$r = () => ({
14107
14129
  isDeleting: !1,
14108
14130
  row: o.selectedFirstRow.value,
14109
14131
  model: l.model,
14110
- result: he
14132
+ result: be
14111
14133
  });
14112
14134
  } catch (oe) {
14113
14135
  console.error(oe), l.store.emit(s.formID, "error", oe);
@@ -14115,11 +14137,11 @@ const getProps$r = () => ({
14115
14137
  s.store.setIsCreatingRequesting(s.formID, !1);
14116
14138
  }
14117
14139
  }
14118
- async function ve() {
14119
- var q, z, ee, ne, ie, ue, fe;
14140
+ async function pe() {
14141
+ var q, z, ee, ne, ie, le, ge;
14120
14142
  try {
14121
14143
  s.store.setIsUpdatingRequesting(s.formID, !0);
14122
- 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));
14144
+ let oe = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((z = (q = s.varButtonUpdate.value) == null ? void 0 : q.cmd_prm) != null ? z : ""), s.formID, r)), ve = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
14123
14145
  if (await l.store.emit(s.formID, "beforeRequest", {
14124
14146
  isCreating: s.isCreating.value,
14125
14147
  isUpdating: s.isUpdating.value,
@@ -14129,19 +14151,19 @@ const getProps$r = () => ({
14129
14151
  rows: o.selectedRows.value,
14130
14152
  model: l.model,
14131
14153
  params: oe,
14132
- data: me
14154
+ data: ve
14133
14155
  }))
14134
14156
  return;
14135
- const pe = (ee = s.varButtonUpdate.value) == null ? void 0 : ee.cmd;
14136
- if (!pe)
14157
+ const he = (ee = s.varButtonUpdate.value) == null ? void 0 : ee.cmd;
14158
+ if (!he)
14137
14159
  throw message.error(n.t("\u300C\u66F4\u65B0\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u66F4\u65B0\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
14138
- const he = await httpClient().request({
14139
- url: pe,
14160
+ const be = await httpClient().request({
14161
+ url: he,
14140
14162
  method: (ie = (ne = s.varButtonUpdate.value) == null ? void 0 : ne.cmd_method) != null ? ie : "POST",
14141
14163
  params: oe.value,
14142
- data: me.value
14164
+ data: ve.value
14143
14165
  });
14144
- ((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({
14166
+ ((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({
14145
14167
  isPreserveSelectedRows: !0
14146
14168
  }), await l.store.emit(s.formID, "ok", {
14147
14169
  isCreating: !1,
@@ -14150,7 +14172,7 @@ const getProps$r = () => ({
14150
14172
  isDeleting: !1,
14151
14173
  row: o.selectedFirstRow.value,
14152
14174
  model: l.model,
14153
- result: he
14175
+ result: be
14154
14176
  });
14155
14177
  } catch (oe) {
14156
14178
  console.error(oe), l.store.emit(s.formID, "error", oe);
@@ -14158,15 +14180,15 @@ const getProps$r = () => ({
14158
14180
  s.store.setIsUpdatingRequesting(s.formID, !1);
14159
14181
  }
14160
14182
  }
14161
- async function we() {
14162
- var q, z, ee, ne, ie, ue, fe, oe, me;
14183
+ async function Ce() {
14184
+ var q, z, ee, ne, ie, le, ge, oe, ve;
14163
14185
  try {
14164
14186
  s.store.setIsCopyingRequesting(s.formID, !0);
14165
- 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({
14187
+ let Ee = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((z = (q = s.varButtonCopy.value) == null ? void 0 : q.cmd_prm) != null ? z : ""), s.formID, r)), he = ref(KgUtil.parseParams({
14166
14188
  ...(ee = o.selectedFirstRow.value) != null ? ee : {},
14167
14189
  ...toRaw(l.model.value)
14168
14190
  }, s.formID, r));
14169
- if (((ne = m.value) == null ? void 0 : ne.cpy_clear_id_flg) !== 0 && delete pe.value.id, await l.store.emit(s.formID, "beforeRequest", {
14191
+ if (((ne = m.value) == null ? void 0 : ne.cpy_clear_id_flg) !== 0 && delete he.value.id, await l.store.emit(s.formID, "beforeRequest", {
14170
14192
  isCreating: s.isCreating.value,
14171
14193
  isUpdating: s.isUpdating.value,
14172
14194
  isCopying: s.isCopying.value,
@@ -14174,20 +14196,20 @@ const getProps$r = () => ({
14174
14196
  row: o.selectedRow.value,
14175
14197
  rows: o.selectedRows.value,
14176
14198
  model: l.model,
14177
- params: be,
14178
- data: pe
14199
+ params: Ee,
14200
+ data: he
14179
14201
  }))
14180
14202
  return;
14181
- const Ie = (ie = s.varButtonCopy.value) == null ? void 0 : ie.cmd;
14182
- if (!Ie)
14203
+ const Me = (ie = s.varButtonCopy.value) == null ? void 0 : ie.cmd;
14204
+ if (!Me)
14183
14205
  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");
14184
14206
  const Ne = await httpClient().request({
14185
- url: Ie,
14186
- method: (fe = (ue = s.varButtonCopy.value) == null ? void 0 : ue.cmd_method) != null ? fe : "POST",
14187
- params: be.value,
14188
- data: pe.value
14207
+ url: Me,
14208
+ method: (ge = (le = s.varButtonCopy.value) == null ? void 0 : le.cmd_method) != null ? ge : "POST",
14209
+ params: Ee.value,
14210
+ data: he.value
14189
14211
  });
14190
- ((oe = s.varButtonCopy.value) == null ? void 0 : oe.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.setIsCopying(s.formID, !1), ((me = s.varButtonCopy.value) == null ? void 0 : me.reload_all_after_done_flg) !== 0 && c.search({
14212
+ ((oe = s.varButtonCopy.value) == null ? void 0 : oe.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.setIsCopying(s.formID, !1), ((ve = s.varButtonCopy.value) == null ? void 0 : ve.reload_all_after_done_flg) !== 0 && c.search({
14191
14213
  isSearchFirstPage: !0
14192
14214
  }), await l.store.emit(s.formID, "ok", {
14193
14215
  isCreating: !1,
@@ -14198,22 +14220,22 @@ const getProps$r = () => ({
14198
14220
  model: l.model,
14199
14221
  result: Ne
14200
14222
  });
14201
- } catch (be) {
14202
- console.error(be), l.store.emit(s.formID, "error", be);
14223
+ } catch (Ee) {
14224
+ console.error(Ee), l.store.emit(s.formID, "error", Ee);
14203
14225
  } finally {
14204
14226
  s.store.setIsCopyingRequesting(s.formID, !1);
14205
14227
  }
14206
14228
  }
14207
- async function Ee() {
14208
- var q, z, ee, ne, ie, ue, fe, oe, me, be, pe;
14229
+ async function we() {
14230
+ var q, z, ee, ne, ie, le, ge, oe, ve, Ee, he;
14209
14231
  try {
14210
14232
  s.store.setIsDeletingRequesting(s.formID, !0);
14211
- 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 : []);
14212
- if (((ne = s.varButtonDelete.value) == null ? void 0 : ne.del_param_clm) !== "__kg__new_delete_param" && (he = ref({
14213
- ids: (ue = (ie = o.selectedRows.value) == null ? void 0 : ie.map((xe) => {
14233
+ let be = 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 : []);
14234
+ if (((ne = s.varButtonDelete.value) == null ? void 0 : ne.del_param_clm) !== "__kg__new_delete_param" && (be = ref({
14235
+ ids: (le = (ie = o.selectedRows.value) == null ? void 0 : ie.map((xe) => {
14214
14236
  var Pe, Le, $e;
14215
14237
  return ($e = xe[(Le = (Pe = s.varButtonDelete.value) == null ? void 0 : Pe.del_param_clm) != null ? Le : "id"]) != null ? $e : "";
14216
- })) != null ? ue : []
14238
+ })) != null ? le : []
14217
14239
  })), await l.store.emit(s.formID, "beforeRequest", {
14218
14240
  isCreating: s.isCreating.value,
14219
14241
  isUpdating: s.isUpdating.value,
@@ -14222,22 +14244,22 @@ const getProps$r = () => ({
14222
14244
  row: o.selectedFirstRow.value,
14223
14245
  rows: o.selectedRows.value,
14224
14246
  model: l.model,
14225
- params: he,
14226
- data: Ie
14247
+ params: be,
14248
+ data: Me
14227
14249
  }))
14228
14250
  return;
14229
- const Ve = (fe = s.varButtonDelete.value) == null ? void 0 : fe.cmd;
14251
+ const Ve = (ge = s.varButtonDelete.value) == null ? void 0 : ge.cmd;
14230
14252
  if (!Ve)
14231
14253
  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");
14232
- const Fe = (me = (oe = s.varButtonDelete.value) == null ? void 0 : oe.cmd_method) != null ? me : "POST", Be = await httpClient().request({
14254
+ const Fe = (ve = (oe = s.varButtonDelete.value) == null ? void 0 : oe.cmd_method) != null ? ve : "POST", Be = await httpClient().request({
14233
14255
  url: Ve,
14234
14256
  method: Fe,
14235
- params: he.value,
14236
- data: Ie.value
14257
+ params: be.value,
14258
+ data: Me.value
14237
14259
  }, {
14238
14260
  joinParamsToUrl: !0
14239
14261
  });
14240
- ((be = s.varButtonDelete.value) == null ? void 0 : be.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.setIsDeleting(s.formID, !1), ((pe = s.varButtonDelete.value) == null ? void 0 : pe.reload_all_after_done_flg) !== 0 && c.search({
14262
+ ((Ee = s.varButtonDelete.value) == null ? void 0 : Ee.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.setIsDeleting(s.formID, !1), ((he = s.varButtonDelete.value) == null ? void 0 : he.reload_all_after_done_flg) !== 0 && c.search({
14241
14263
  isSearchFirstPage: !0
14242
14264
  }), await l.store.emit(s.formID, "ok", {
14243
14265
  isCreating: !1,
@@ -14251,49 +14273,49 @@ const getProps$r = () => ({
14251
14273
  button: s.varButtonDelete.value,
14252
14274
  rows: o.selectedRows.value
14253
14275
  });
14254
- } catch (he) {
14255
- console.error(he), l.store.emit(s.formID, "error", he);
14276
+ } catch (be) {
14277
+ console.error(be), l.store.emit(s.formID, "error", be);
14256
14278
  } finally {
14257
14279
  s.store.setIsDeletingRequesting(s.formID, !1);
14258
14280
  }
14259
14281
  }
14260
- function Te(q) {
14261
- var ne, ie, ue, fe;
14262
- 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];
14282
+ function Se(q) {
14283
+ var ne, ie, le, ge;
14284
+ 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];
14263
14285
  return createVNode(KgForm.Item, {
14264
14286
  kgVarName: q.var_nam,
14265
14287
  kgContext: KG_FORM_CONTEXT.SUBMIT,
14266
- onKgSubmit: ge
14288
+ onKgSubmit: de
14267
14289
  }, {
14268
14290
  control: isFunction$2(z) ? (oe) => z(oe) : void 0,
14269
14291
  controlRight: isFunction$2(ee) ? (oe) => ee(oe) : void 0
14270
14292
  });
14271
14293
  }
14272
- function Re() {
14273
- return s.varSubmitFieldSectionsForVisible.value.length > 0 ? Ke() : De();
14294
+ function Ie() {
14295
+ return s.varSubmitFieldSectionsForVisible.value.length > 0 ? De() : Re();
14274
14296
  }
14275
- function De() {
14297
+ function Re() {
14276
14298
  let q, z;
14277
14299
  return createVNode(Fragment, null, [R.value.length > 0 && createVNode(Row, {
14278
14300
  gutter: 12
14279
- }, _isSlot$6(q = R.value.map(Te)) ? q : {
14301
+ }, _isSlot$6(q = R.value.map(Se)) ? q : {
14280
14302
  default: () => [q]
14281
14303
  }), V.value.length > 0 && O.value.length > 0 && createVNode(Divider, null, null), P.value.length > 0 && createVNode(Row, {
14282
14304
  gutter: 12
14283
- }, _isSlot$6(z = P.value.map(Te)) ? z : {
14305
+ }, _isSlot$6(z = P.value.map(Se)) ? z : {
14284
14306
  default: () => [z]
14285
14307
  }), u.value && createVNode("div", {
14286
14308
  style: "text-align: center; padding: 6px 0 12px;"
14287
14309
  }, [n.t("kg.confirmDelete")])]);
14288
14310
  }
14289
- function Ke() {
14311
+ function De() {
14290
14312
  var q;
14291
14313
  return createVNode("div", {
14292
14314
  class: "section"
14293
14315
  }, [createVNode(Menu, {
14294
14316
  mode: "inline",
14295
14317
  selectedKeys: Y.value,
14296
- onSelect: Se
14318
+ onSelect: Oe
14297
14319
  }, {
14298
14320
  default: () => {
14299
14321
  var z;
@@ -14310,11 +14332,11 @@ const getProps$r = () => ({
14310
14332
  }, {
14311
14333
  default: () => {
14312
14334
  var ee, ne;
14313
- return [(ne = (ee = s.varSubmitFieldsForVisible.value) == null ? void 0 : ee.filter((ie) => ie.section === z)) == null ? void 0 : ne.map(Te)];
14335
+ return [(ne = (ee = s.varSubmitFieldsForVisible.value) == null ? void 0 : ee.filter((ie) => ie.section === z)) == null ? void 0 : ne.map(Se)];
14314
14336
  }
14315
14337
  })]))])]);
14316
14338
  }
14317
- function ye() {
14339
+ function Ke() {
14318
14340
  return createVNode(Spin, {
14319
14341
  spinning: d.value
14320
14342
  }, {
@@ -14329,18 +14351,18 @@ const getProps$r = () => ({
14329
14351
  }, {
14330
14352
  default: () => [createVNode("div", {
14331
14353
  ref: J
14332
- }, [Re()])]
14354
+ }, [Ie()])]
14333
14355
  })];
14334
14356
  }
14335
14357
  });
14336
14358
  }
14337
- function Ce() {
14359
+ function ye() {
14338
14360
  let q;
14339
14361
  return createVNode("div", null, [createVNode(Button, {
14340
14362
  type: "primary",
14341
14363
  ghost: !D.value,
14342
14364
  disabled: D.value,
14343
- onClick: ce
14365
+ onClick: ue
14344
14366
  }, _isSlot$6(q = n.t("kg.cancel")) ? q : {
14345
14367
  default: () => [q]
14346
14368
  }), createVNode(Button, {
@@ -14348,24 +14370,24 @@ const getProps$r = () => ({
14348
14370
  disabled: K.value,
14349
14371
  loading: w.value,
14350
14372
  danger: !!s.isDeleting.value,
14351
- onClick: ge
14373
+ onClick: de
14352
14374
  }, {
14353
14375
  default: () => [Q.value]
14354
14376
  })]);
14355
14377
  }
14356
- function ke() {
14378
+ function Te() {
14357
14379
  return createVNode("div", {
14358
14380
  title: W.title.value
14359
14381
  }, [W.title.value]);
14360
14382
  }
14361
- function Oe() {
14383
+ function ke() {
14362
14384
  return !!u.value || !e.kgIsShowVarSubmitConfigButton ? null : createVNode(KgSubmitVarSubmitConfigButton, null, null);
14363
14385
  }
14364
- function Se(q) {
14386
+ function Oe(q) {
14365
14387
  Y.value = q.selectedKeys;
14366
14388
  }
14367
14389
  return onUnmounted(async () => {
14368
- l.store.dispose(s.formID), await _e();
14390
+ l.store.dispose(s.formID), await fe();
14369
14391
  }), () => createVNode(KgModal, {
14370
14392
  visible: re.value,
14371
14393
  mask: l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE,
@@ -14374,7 +14396,7 @@ const getProps$r = () => ({
14374
14396
  destroyOnClose: !0,
14375
14397
  width: te.value,
14376
14398
  class: se.value,
14377
- wrapClassName: de.value,
14399
+ wrapClassName: ce.value,
14378
14400
  kgFullHeight: !1,
14379
14401
  kgMinWidth: L.value,
14380
14402
  kgMaxWidth: x.value,
@@ -14383,12 +14405,12 @@ const getProps$r = () => ({
14383
14405
  kgIsShowFullscreenButton: H.value,
14384
14406
  kgIsDefaultFullscreen: F.value,
14385
14407
  "kg-frm_id": s.formID,
14386
- onCancel: ce
14408
+ onCancel: ue
14387
14409
  }, {
14388
- title: ke,
14389
- kgModalHeaderButtonsExtra: Oe,
14390
- default: ye,
14391
- footer: Ce
14410
+ title: Te,
14411
+ kgModalHeaderButtonsExtra: ke,
14412
+ default: Ke,
14413
+ footer: ye
14392
14414
  });
14393
14415
  }
14394
14416
  }), FORM_ID__KG_SEARCH__VAR_PROFILE_MASTER = "kg-search.VarProfileMaster", DEFAULT_PAGE_SIZES = "[10, 20, 50, 100]", DEFAULT_PAGE_SIZE = 10;
@@ -24,6 +24,8 @@ export declare type IUseLoading = {
24
24
  export declare function _useLoading(): IUseLoading;
25
25
  export declare type IUseResizeObserver = {};
26
26
  export declare function _useResizeObserver(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>): IUseResizeObserver;
27
+ export declare type ICacheScrollState = {};
28
+ export declare function _useCacheScrollState(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>): ICacheScrollState;
27
29
  export declare type IUseDragColumn = {};
28
30
  export declare function _useDragColumn(kgTableRef: Ref<UnwrapRef<HTMLDivElement | null>>, columns: ComputedRef<ColumnsType<IKgTableRow>>): IUseDragColumn;
29
31
  export interface IUseDatas {
package/package.json CHANGED
@@ -1,107 +1,107 @@
1
- {
2
- "name": "@kengic/vue",
3
- "version": "0.21.5-beta.4",
4
- "scripts": {
5
- "build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
6
- "build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
7
- "--------------------------------------------------": "",
8
- "publish:all:beta": "npm run bump-version:beta && npm run publish:all",
9
- "----- --------------------------------------------": "",
10
- "gen:apis:WMS": "npm run switch-node-version && kengic-pont generate-apis --config kg.config.ts --origin WMS",
11
- "--- ----------------------------------------------": "",
12
- "copy-to:luotao.wms-vue3--focus": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.focus.ts",
13
- "bump-to:luotao.wms-vue3--focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.focus.ts",
14
- "- ------------------------------------------------": "",
15
- "cnpm:sync": "npm run switch-node-version && npx cnpm --yes sync @kengic/vue",
16
- "switch-node-version": "nvm use 18.16.0 && corepack enable && corepack prepare pnpm@7.30.5 --activate",
17
- "-- -----------------------------------------------": "",
18
- "bump-version:beta": "npm run switch-node-version && tsx scripts/bump.ts beta",
19
- "---- ---------------------------------------------": "",
20
- "publish:all": "npm run switch-node-version && tsx scripts/publish.ts",
21
- "publish:npm": "npm run switch-node-version && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
22
- },
23
- "peerDependencies": {
24
- "vue": "3.2.43"
25
- },
26
- "dependencies": {
27
- "@ant-design/colors": "6.0.0",
28
- "@ant-design/icons-vue": "6.1.0",
29
- "@iconify-icons/akar-icons": "1.2.19",
30
- "@iconify-icons/ant-design": "1.2.5",
31
- "@iconify-icons/fluent-mdl2": "1.2.1",
32
- "@iconify-icons/material-symbols": "1.2.58",
33
- "@iconify-icons/mdi": "1.2.48",
34
- "@iconify-icons/ph": "1.2.5",
35
- "@iconify/vue": "4.1.1",
36
- "@kengic/pont": "1.2.11",
37
- "@rys-fe/vite-plugin-theme": "0.8.6",
38
- "@types/fs-extra": "9.0.13",
39
- "@types/inquirer": "8.2.5",
40
- "@types/lodash-es": "4.17.9",
41
- "@types/node": "18.18.4",
42
- "@types/semver": "7.5.3",
43
- "@types/store": "2.0.3",
44
- "@vitejs/plugin-legacy": "2.3.1",
45
- "@vitejs/plugin-vue": "3.2.0",
46
- "@vitejs/plugin-vue-jsx": "1.3.10",
47
- "@vueuse/core": "8.9.4",
48
- "@vueuse/shared": "8.9.4",
49
- "ant-design-vue": "3.2.14",
50
- "axios": "0.26.1",
51
- "chalk": "4.1.2",
52
- "dayjs": "1.11.10",
53
- "dotenv": "16.0.3",
54
- "filesize": "10.1.0",
55
- "fs-extra": "10.1.0",
56
- "html-to-image": "1.11.11",
57
- "inquirer": "8.2.5",
58
- "less": "4.1.3",
59
- "lodash-es": "4.17.21",
60
- "picocolors": "1.0.0",
61
- "pinia": "2.0.12",
62
- "prettier": "3.2.5",
63
- "rimraf": "3.0.2",
64
- "rollup": "2.79.1",
65
- "rollup-plugin-visualizer": "5.8.3",
66
- "semver": "7.5.4",
67
- "store": "2.0.12",
68
- "tsx": "3.12.3",
69
- "typescript": "~4.8.4",
70
- "vite": "3.2.5",
71
- "vite-plugin-compression": "0.5.1",
72
- "vite-plugin-html": "3.2.0",
73
- "vite-plugin-imagemin": "0.6.1",
74
- "vite-plugin-mkcert": "1.10.1",
75
- "vite-plugin-mock": "2.9.6",
76
- "vite-plugin-optimize-persist": "0.1.2",
77
- "vite-plugin-package-config": "0.1.1",
78
- "vite-plugin-purge-icons": "0.8.2",
79
- "vite-plugin-pwa": "0.12.8",
80
- "vite-plugin-style-import": "2.0.0",
81
- "vite-plugin-svg-icons": "2.0.1",
82
- "vite-plugin-vue-setup-extend": "0.4.0",
83
- "vite-plugin-windicss": "1.8.8",
84
- "vue": "3.2.43",
85
- "vue-router": "4.1.6",
86
- "vue-tsc": "1.8.27"
87
- },
88
- "devDependencies": {},
89
- "main": "./dist/kengic-vue.js",
90
- "module": "./dist/kengic-vue.js",
91
- "types": "./dist/src/index.d.ts",
92
- "exports": {
93
- ".": {
94
- "import": "./dist/kengic-vue.js"
95
- },
96
- "./dist/index.css": "./dist/index.css"
97
- },
98
- "prettier": {
99
- "endOfLine": "auto",
100
- "printWidth": 160,
101
- "semi": true,
102
- "singleAttributePerLine": true,
103
- "singleQuote": true,
104
- "tabWidth": 4,
105
- "trailingComma": "all"
106
- }
107
- }
1
+ {
2
+ "name": "@kengic/vue",
3
+ "version": "0.21.5-beta.6",
4
+ "scripts": {
5
+ "build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
6
+ "build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
7
+ "--------------------------------------------------": "",
8
+ "publish:all:beta": "npm run bump-version:beta && npm run publish:all",
9
+ "----- --------------------------------------------": "",
10
+ "gen:apis:WMS": "npm run switch-node-version && kengic-pont generate-apis --config kg.config.ts --origin WMS",
11
+ "--- ----------------------------------------------": "",
12
+ "copy-to:luotao.wms-vue3--focus": "npm run build:dev && tsx scripts/copy-to.luotao.wms-vue3.focus.ts",
13
+ "bump-to:luotao.wms-vue3--focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.wms-vue3.focus.ts",
14
+ "- ------------------------------------------------": "",
15
+ "cnpm:sync": "npm run switch-node-version && npx cnpm --yes sync @kengic/vue",
16
+ "switch-node-version": "nvm use 18.16.0 && corepack enable && corepack prepare pnpm@7.30.5 --activate",
17
+ "-- -----------------------------------------------": "",
18
+ "bump-version:beta": "npm run switch-node-version && tsx scripts/bump.ts beta",
19
+ "---- ---------------------------------------------": "",
20
+ "publish:all": "npm run switch-node-version && tsx scripts/publish.ts",
21
+ "publish:npm": "npm run switch-node-version && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public"
22
+ },
23
+ "peerDependencies": {
24
+ "vue": "3.2.43"
25
+ },
26
+ "dependencies": {
27
+ "@ant-design/colors": "6.0.0",
28
+ "@ant-design/icons-vue": "6.1.0",
29
+ "@iconify-icons/akar-icons": "1.2.19",
30
+ "@iconify-icons/ant-design": "1.2.5",
31
+ "@iconify-icons/fluent-mdl2": "1.2.1",
32
+ "@iconify-icons/material-symbols": "1.2.58",
33
+ "@iconify-icons/mdi": "1.2.48",
34
+ "@iconify-icons/ph": "1.2.5",
35
+ "@iconify/vue": "4.1.1",
36
+ "@kengic/pont": "1.2.11",
37
+ "@rys-fe/vite-plugin-theme": "0.8.6",
38
+ "@types/fs-extra": "9.0.13",
39
+ "@types/inquirer": "8.2.5",
40
+ "@types/lodash-es": "4.17.9",
41
+ "@types/node": "18.18.4",
42
+ "@types/semver": "7.5.3",
43
+ "@types/store": "2.0.3",
44
+ "@vitejs/plugin-legacy": "2.3.1",
45
+ "@vitejs/plugin-vue": "3.2.0",
46
+ "@vitejs/plugin-vue-jsx": "1.3.10",
47
+ "@vueuse/core": "8.9.4",
48
+ "@vueuse/shared": "8.9.4",
49
+ "ant-design-vue": "3.2.14",
50
+ "axios": "0.26.1",
51
+ "chalk": "4.1.2",
52
+ "dayjs": "1.11.10",
53
+ "dotenv": "16.0.3",
54
+ "filesize": "10.1.0",
55
+ "fs-extra": "10.1.0",
56
+ "html-to-image": "1.11.11",
57
+ "inquirer": "8.2.5",
58
+ "less": "4.1.3",
59
+ "lodash-es": "4.17.21",
60
+ "picocolors": "1.0.0",
61
+ "pinia": "2.0.12",
62
+ "prettier": "3.2.5",
63
+ "rimraf": "3.0.2",
64
+ "rollup": "2.79.1",
65
+ "rollup-plugin-visualizer": "5.8.3",
66
+ "semver": "7.5.4",
67
+ "store": "2.0.12",
68
+ "tsx": "3.12.3",
69
+ "typescript": "~4.8.4",
70
+ "vite": "3.2.5",
71
+ "vite-plugin-compression": "0.5.1",
72
+ "vite-plugin-html": "3.2.0",
73
+ "vite-plugin-imagemin": "0.6.1",
74
+ "vite-plugin-mkcert": "1.10.1",
75
+ "vite-plugin-mock": "2.9.6",
76
+ "vite-plugin-optimize-persist": "0.1.2",
77
+ "vite-plugin-package-config": "0.1.1",
78
+ "vite-plugin-purge-icons": "0.8.2",
79
+ "vite-plugin-pwa": "0.12.8",
80
+ "vite-plugin-style-import": "2.0.0",
81
+ "vite-plugin-svg-icons": "2.0.1",
82
+ "vite-plugin-vue-setup-extend": "0.4.0",
83
+ "vite-plugin-windicss": "1.8.8",
84
+ "vue": "3.2.43",
85
+ "vue-router": "4.1.6",
86
+ "vue-tsc": "1.8.27"
87
+ },
88
+ "devDependencies": {},
89
+ "main": "./dist/kengic-vue.js",
90
+ "module": "./dist/kengic-vue.js",
91
+ "types": "./dist/src/index.d.ts",
92
+ "exports": {
93
+ ".": {
94
+ "import": "./dist/kengic-vue.js"
95
+ },
96
+ "./dist/index.css": "./dist/index.css"
97
+ },
98
+ "prettier": {
99
+ "endOfLine": "auto",
100
+ "printWidth": 160,
101
+ "semi": true,
102
+ "singleAttributePerLine": true,
103
+ "singleQuote": true,
104
+ "tabWidth": 4,
105
+ "trailingComma": "all"
106
+ }
107
+ }