@kengic/vue 0.13.6 → 0.13.8

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 Ve = Object.defineProperty;
2
- var Ke = (e, t, r) => t in e ? Ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var v = (e, t, r) => (Ke(e, typeof t != "symbol" ? t + "" : t, r), r);
1
+ var Ke = Object.defineProperty;
2
+ var Le = (e, t, r) => t in e ? Ke(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var v = (e, t, r) => (Le(e, typeof t != "symbol" ? t + "" : t, r), r);
4
4
  import { Spin, Tooltip, Select, SelectOption, Button, Modal, Progress, Form, Checkbox, Divider, Row, Col, DatePicker, Input, InputNumber, Radio, Switch, Textarea, message, Drawer, Transfer, Table, Tabs, Dropdown, Menu, Tag, Pagination, TableSummary, Upload, ConfigProvider, Card, TabPane } from "ant-design-vue";
5
5
  import { h, nextTick, createVNode, defineComponent, getCurrentInstance, inject, markRaw, ref, watch, reactive, effectScope, isRef, isReactive, toRef, toRaw, computed, onUnmounted, toRefs, unref, watchEffect, Fragment, isVNode, createTextVNode, provide, onMounted, mergeProps, onBeforeUnmount, onActivated, onDeactivated, Teleport, getCurrentScope, onScopeDispose } from "vue";
6
6
  const index$7 = "", en = {
@@ -403,7 +403,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
403
403
  (function(r, a) {
404
404
  e.exports = a();
405
405
  })(commonjsGlobal, function() {
406
- var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", g = "quarter", E = "year", y = "date", _ = "Invalid Date", p = /^(\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, b = { 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) {
406
+ var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", g = "quarter", E = "year", b = "date", _ = "Invalid Date", p = /^(\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, y = { 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) {
407
407
  var D = ["th", "st", "nd", "rd"], R = w % 100;
408
408
  return "[" + w + (D[(R - 20) % 10] || D[R] || D[0]) + "]";
409
409
  } }, T = function(w, D, R) {
@@ -415,16 +415,16 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
415
415
  }, m: function w(D, R) {
416
416
  if (D.date() < R.date())
417
417
  return -w(R, D);
418
- var $ = 12 * (R.year() - D.year()) + (R.month() - D.month()), P = D.clone().add($, d), U = R - P < 0, N = D.clone().add($ + (U ? -1 : 1), d);
419
- return +(-($ + (R - P) / (U ? P - N : N - P)) || 0);
418
+ var $ = 12 * (R.year() - D.year()) + (R.month() - D.month()), P = D.clone().add($, d), G = R - P < 0, N = D.clone().add($ + (G ? -1 : 1), d);
419
+ return +(-($ + (R - P) / (G ? P - N : N - P)) || 0);
420
420
  }, a: function(w) {
421
421
  return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
422
422
  }, p: function(w) {
423
- return { M: d, y: E, w: u, d: c, D: y, h: i, m: o, s: l, ms: s, Q: g }[w] || String(w || "").toLowerCase().replace(/s$/, "");
423
+ return { M: d, y: E, w: u, d: c, D: b, h: i, m: o, s: l, ms: s, Q: g }[w] || String(w || "").toLowerCase().replace(/s$/, "");
424
424
  }, u: function(w) {
425
425
  return w === void 0;
426
426
  } }, I = "en", C = {};
427
- C[I] = b;
427
+ C[I] = y;
428
428
  var V = "$isDayjsObject", A = function(w) {
429
429
  return w instanceof L || !(!w || !w[V]);
430
430
  }, O = function w(D, R, $) {
@@ -432,8 +432,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
432
432
  if (!D)
433
433
  return I;
434
434
  if (typeof D == "string") {
435
- var U = D.toLowerCase();
436
- C[U] && (P = U), R && (C[U] = R, P = U);
435
+ var G = D.toLowerCase();
436
+ C[G] && (P = G), R && (C[G] = R, P = G);
437
437
  var N = D.split("-");
438
438
  if (!P && N.length > 1)
439
439
  return w(N[0]);
@@ -458,7 +458,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
458
458
  var D = w.prototype;
459
459
  return D.parse = function(R) {
460
460
  this.$d = function($) {
461
- var P = $.date, U = $.utc;
461
+ var P = $.date, G = $.utc;
462
462
  if (P === null)
463
463
  return new Date(NaN);
464
464
  if (K.u(P))
@@ -469,7 +469,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
469
469
  var N = P.match(p);
470
470
  if (N) {
471
471
  var x = N[2] - 1 || 0, Y = (N[7] || "0").substring(0, 3);
472
- return U ? 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);
472
+ 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);
473
473
  }
474
474
  }
475
475
  return new Date(P);
@@ -495,22 +495,22 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
495
495
  }, D.valueOf = function() {
496
496
  return this.$d.getTime();
497
497
  }, D.startOf = function(R, $) {
498
- var P = this, U = !!K.u($) || $, N = K.p(R), x = function(ge, ae) {
498
+ var P = this, G = !!K.u($) || $, N = K.p(R), x = function(ge, ae) {
499
499
  var F = K.w(P.$u ? Date.UTC(P.$y, ae, ge) : new Date(P.$y, ae, ge), P);
500
- return U ? F : F.endOf(c);
500
+ return G ? F : F.endOf(c);
501
501
  }, Y = function(ge, ae) {
502
- return K.w(P.toDate()[ge].apply(P.toDate("s"), (U ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), P);
502
+ return K.w(P.toDate()[ge].apply(P.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), P);
503
503
  }, q = this.$W, X = this.$M, J = this.$D, ee = "set" + (this.$u ? "UTC" : "");
504
504
  switch (N) {
505
505
  case E:
506
- return U ? x(1, 0) : x(31, 11);
506
+ return G ? x(1, 0) : x(31, 11);
507
507
  case d:
508
- return U ? x(1, X) : x(0, X + 1);
508
+ return G ? x(1, X) : x(0, X + 1);
509
509
  case u:
510
- var ie = this.$locale().weekStart || 0, me = (q < ie ? q + 7 : q) - ie;
511
- return x(U ? J - me : J + (6 - me), X);
510
+ var le = this.$locale().weekStart || 0, me = (q < le ? q + 7 : q) - le;
511
+ return x(G ? J - me : J + (6 - me), X);
512
512
  case c:
513
- case y:
513
+ case b:
514
514
  return Y(ee + "Hours", 0);
515
515
  case i:
516
516
  return Y(ee + "Minutes", 1);
@@ -524,10 +524,10 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
524
524
  }, D.endOf = function(R) {
525
525
  return this.startOf(R, !1);
526
526
  }, D.$set = function(R, $) {
527
- var P, U = K.p(R), 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)[U], Y = U === c ? this.$D + ($ - this.$W) : $;
528
- if (U === d || U === E) {
529
- var q = this.clone().set(y, 1);
530
- q.$d[x](Y), q.init(), this.$d = q.set(y, Math.min(this.$D, q.daysInMonth())).$d;
527
+ var P, G = K.p(R), N = "set" + (this.$u ? "UTC" : ""), x = (P = {}, P[c] = N + "Date", P[b] = 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) : $;
528
+ if (G === d || G === E) {
529
+ var q = this.clone().set(b, 1);
530
+ q.$d[x](Y), q.init(), this.$d = q.set(b, Math.min(this.$D, q.daysInMonth())).$d;
531
531
  } else
532
532
  x && this.$d[x](Y);
533
533
  return this.init(), this;
@@ -536,11 +536,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
536
536
  }, D.get = function(R) {
537
537
  return this[K.p(R)]();
538
538
  }, D.add = function(R, $) {
539
- var P, U = this;
539
+ var P, G = this;
540
540
  R = Number(R);
541
541
  var N = K.p($), x = function(X) {
542
- var J = M(U);
543
- return K.w(J.date(J.date() + Math.round(X * R)), U);
542
+ var J = M(G);
543
+ return K.w(J.date(J.date() + Math.round(X * R)), G);
544
544
  };
545
545
  if (N === d)
546
546
  return this.set(d, this.$M + R);
@@ -558,17 +558,17 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
558
558
  var $ = this, P = this.$locale();
559
559
  if (!this.isValid())
560
560
  return P.invalidDate || _;
561
- var U = R || "YYYY-MM-DDTHH:mm:ssZ", N = K.z(this), x = this.$H, Y = this.$m, q = this.$M, X = P.weekdays, J = P.months, ee = P.meridiem, ie = function(ae, F, B, Q) {
562
- return ae && (ae[F] || ae($, U)) || B[F].slice(0, Q);
561
+ var G = R || "YYYY-MM-DDTHH:mm:ssZ", N = K.z(this), x = this.$H, Y = this.$m, q = this.$M, X = P.weekdays, J = P.months, ee = P.meridiem, le = function(ae, F, U, Q) {
562
+ return ae && (ae[F] || ae($, G)) || U[F].slice(0, Q);
563
563
  }, me = function(ae) {
564
564
  return K.s(x % 12 || 12, ae, "0");
565
- }, ge = ee || function(ae, F, B) {
565
+ }, ge = ee || function(ae, F, U) {
566
566
  var Q = ae < 12 ? "AM" : "PM";
567
- return B ? Q.toLowerCase() : Q;
567
+ return U ? Q.toLowerCase() : Q;
568
568
  };
569
- return U.replace(m, function(ae, F) {
570
- return F || function(B) {
571
- switch (B) {
569
+ return G.replace(m, function(ae, F) {
570
+ return F || function(U) {
571
+ switch (U) {
572
572
  case "YY":
573
573
  return String($.$y).slice(-2);
574
574
  case "YYYY":
@@ -578,9 +578,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
578
578
  case "MM":
579
579
  return K.s(q + 1, 2, "0");
580
580
  case "MMM":
581
- return ie(P.monthsShort, q, J, 3);
581
+ return le(P.monthsShort, q, J, 3);
582
582
  case "MMMM":
583
- return ie(J, q);
583
+ return le(J, q);
584
584
  case "D":
585
585
  return $.$D;
586
586
  case "DD":
@@ -588,9 +588,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
588
588
  case "d":
589
589
  return String($.$W);
590
590
  case "dd":
591
- return ie(P.weekdaysMin, $.$W, X, 2);
591
+ return le(P.weekdaysMin, $.$W, X, 2);
592
592
  case "ddd":
593
- return ie(P.weekdaysShort, $.$W, X, 3);
593
+ return le(P.weekdaysShort, $.$W, X, 3);
594
594
  case "dddd":
595
595
  return X[$.$W];
596
596
  case "H":
@@ -624,38 +624,38 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
624
624
  }, D.utcOffset = function() {
625
625
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
626
626
  }, D.diff = function(R, $, P) {
627
- var U, N = this, x = K.p($), Y = M(R), q = (Y.utcOffset() - this.utcOffset()) * a, X = this - Y, J = function() {
627
+ var G, N = this, x = K.p($), Y = M(R), q = (Y.utcOffset() - this.utcOffset()) * a, X = this - Y, J = function() {
628
628
  return K.m(N, Y);
629
629
  };
630
630
  switch (x) {
631
631
  case E:
632
- U = J() / 12;
632
+ G = J() / 12;
633
633
  break;
634
634
  case d:
635
- U = J();
635
+ G = J();
636
636
  break;
637
637
  case g:
638
- U = J() / 3;
638
+ G = J() / 3;
639
639
  break;
640
640
  case u:
641
- U = (X - q) / 6048e5;
641
+ G = (X - q) / 6048e5;
642
642
  break;
643
643
  case c:
644
- U = (X - q) / 864e5;
644
+ G = (X - q) / 864e5;
645
645
  break;
646
646
  case i:
647
- U = X / n;
647
+ G = X / n;
648
648
  break;
649
649
  case o:
650
- U = X / a;
650
+ G = X / a;
651
651
  break;
652
652
  case l:
653
- U = X / r;
653
+ G = X / r;
654
654
  break;
655
655
  default:
656
- U = X;
656
+ G = X;
657
657
  }
658
- return P ? U : K.a(U);
658
+ return P ? G : K.a(G);
659
659
  }, D.daysInMonth = function() {
660
660
  return this.endOf(d).$D;
661
661
  }, D.$locale = function() {
@@ -663,8 +663,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
663
663
  }, D.locale = function(R, $) {
664
664
  if (!R)
665
665
  return this.$L;
666
- var P = this.clone(), U = O(R, $, !0);
667
- return U && (P.$L = U), P;
666
+ var P = this.clone(), G = O(R, $, !0);
667
+ return G && (P.$L = G), P;
668
668
  }, D.clone = function() {
669
669
  return K.w(this.$d, this);
670
670
  }, D.toDate = function() {
@@ -677,7 +677,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
677
677
  return this.$d.toUTCString();
678
678
  }, w;
679
679
  }(), H = L.prototype;
680
- return M.prototype = H, [["$ms", s], ["$s", l], ["$m", o], ["$H", i], ["$W", c], ["$M", d], ["$y", E], ["$D", y]].forEach(function(w) {
680
+ return M.prototype = H, [["$ms", s], ["$s", l], ["$m", o], ["$H", i], ["$W", c], ["$M", d], ["$y", E], ["$D", b]].forEach(function(w) {
681
681
  H[w[1]] = function(D) {
682
682
  return this.$g(D, w[0], w[1]);
683
683
  };
@@ -726,25 +726,25 @@ function filesize(e, {
726
726
  output: d = STRING,
727
727
  fullform: g = !1,
728
728
  fullforms: E = [],
729
- exponent: y = -1,
729
+ exponent: b = -1,
730
730
  roundingMethod: _ = ROUND,
731
731
  precision: p = 0
732
732
  } = {}) {
733
- let m = y, b = Number(e), T = [], k = 0, I = EMPTY;
733
+ let m = b, y = Number(e), T = [], k = 0, I = EMPTY;
734
734
  u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
735
- const C = a === 10 ? 1e3 : 1024, V = g === !0, A = b < 0, O = Math[_];
735
+ const C = a === 10 ? 1e3 : 1024, V = g === !0, A = y < 0, O = Math[_];
736
736
  if (typeof e != "bigint" && isNaN(e))
737
737
  throw new TypeError(INVALID_NUMBER);
738
738
  if (typeof O !== FUNCTION)
739
739
  throw new TypeError(INVALID_ROUND);
740
- if (A && (b = -b), (m === -1 || isNaN(m)) && (m = Math.floor(Math.log(b) / Math.log(C)), m < 0 && (m = 0)), m > 8 && (p > 0 && (p += 8 - m), m = 8), d === EXPONENT)
740
+ if (A && (y = -y), (m === -1 || isNaN(m)) && (m = Math.floor(Math.log(y) / Math.log(C)), m < 0 && (m = 0)), m > 8 && (p > 0 && (p += 8 - m), m = 8), d === EXPONENT)
741
741
  return m;
742
- if (b === 0)
742
+ if (y === 0)
743
743
  T[0] = 0, I = T[1] = STRINGS.symbol[u][t ? BITS : BYTES][m];
744
744
  else {
745
- k = b / (a === 2 ? Math.pow(2, m * 10) : Math.pow(1e3, m)), t && (k = k * 8, k >= C && m < 8 && (k = k / C, m++));
745
+ k = y / (a === 2 ? Math.pow(2, m * 10) : Math.pow(1e3, m)), t && (k = k * 8, k >= C && m < 8 && (k = k / C, m++));
746
746
  const M = Math.pow(10, m > 0 ? n : 0);
747
- 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];
747
+ T[0] = O(k * M) / M, T[0] === C && m < 8 && b === -1 && (T[0] = 1, m++), I = T[1] = a === 10 && m === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][m];
748
748
  }
749
749
  if (A && (T[0] = -T[0]), p > 0 && (T[0] = T[0].toPrecision(p)), 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) {
750
750
  const M = o || PERIOD, K = T[0].toString().split(M), L = K[1] || EMPTY, H = L.length, w = n - H;
@@ -1804,7 +1804,7 @@ function baseClone(e, t, r, a, n, s) {
1804
1804
  }) : isMap$1(e) && e.forEach(function(p, m) {
1805
1805
  l.set(m, baseClone(p, t, r, m, e, s));
1806
1806
  });
1807
- var y = c ? i ? getAllKeysIn : getAllKeys : i ? keysIn : keys$1, _ = u ? void 0 : y(e);
1807
+ var b = c ? i ? getAllKeysIn : getAllKeys : i ? keysIn : keys$1, _ = u ? void 0 : b(e);
1808
1808
  return arrayEach(_ || e, function(p, m) {
1809
1809
  _ && (m = p, p = e[m]), assignValue(l, m, baseClone(p, t, r, m, e, s));
1810
1810
  }), l;
@@ -1853,9 +1853,9 @@ function equalArrays(e, t, r, a, n, s) {
1853
1853
  return c == t && u == e;
1854
1854
  var d = -1, g = !0, E = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
1855
1855
  for (s.set(e, t), s.set(t, e); ++d < o; ) {
1856
- var y = e[d], _ = t[d];
1856
+ var b = e[d], _ = t[d];
1857
1857
  if (a)
1858
- var p = l ? a(_, y, d, t, e, s) : a(y, _, d, e, t, s);
1858
+ var p = l ? a(_, b, d, t, e, s) : a(b, _, d, e, t, s);
1859
1859
  if (p !== void 0) {
1860
1860
  if (p)
1861
1861
  continue;
@@ -1863,14 +1863,14 @@ function equalArrays(e, t, r, a, n, s) {
1863
1863
  break;
1864
1864
  }
1865
1865
  if (E) {
1866
- if (!arraySome(t, function(m, b) {
1867
- if (!cacheHas(E, b) && (y === m || n(y, m, r, a, s)))
1868
- return E.push(b);
1866
+ if (!arraySome(t, function(m, y) {
1867
+ if (!cacheHas(E, y) && (b === m || n(b, m, r, a, s)))
1868
+ return E.push(y);
1869
1869
  })) {
1870
1870
  g = !1;
1871
1871
  break;
1872
1872
  }
1873
- } else if (!(y === _ || n(y, _, r, a, s))) {
1873
+ } else if (!(b === _ || n(b, _, r, a, s))) {
1874
1874
  g = !1;
1875
1875
  break;
1876
1876
  }
@@ -1935,17 +1935,17 @@ function equalObjects(e, t, r, a, n, s) {
1935
1935
  if (!(l ? g in t : hasOwnProperty$1.call(t, g)))
1936
1936
  return !1;
1937
1937
  }
1938
- var E = s.get(e), y = s.get(t);
1939
- if (E && y)
1940
- return E == t && y == e;
1938
+ var E = s.get(e), b = s.get(t);
1939
+ if (E && b)
1940
+ return E == t && b == e;
1941
1941
  var _ = !0;
1942
1942
  s.set(e, t), s.set(t, e);
1943
1943
  for (var p = l; ++d < i; ) {
1944
1944
  g = o[d];
1945
- var m = e[g], b = t[g];
1945
+ var m = e[g], y = t[g];
1946
1946
  if (a)
1947
- var T = l ? a(b, m, g, t, e, s) : a(m, b, g, e, t, s);
1948
- if (!(T === void 0 ? m === b || n(m, b, r, a, s) : T)) {
1947
+ var T = l ? a(y, m, g, t, e, s) : a(m, y, g, e, t, s);
1948
+ if (!(T === void 0 ? m === y || n(m, y, r, a, s) : T)) {
1949
1949
  _ = !1;
1950
1950
  break;
1951
1951
  }
@@ -1970,9 +1970,9 @@ function baseIsEqualDeep(e, t, r, a, n, s) {
1970
1970
  if (g && !u)
1971
1971
  return s || (s = new Stack()), l || isTypedArray$1(e) ? equalArrays(e, t, r, a, n, s) : equalByTag(e, t, i, r, a, n, s);
1972
1972
  if (!(r & COMPARE_PARTIAL_FLAG$2)) {
1973
- var E = u && hasOwnProperty.call(e, "__wrapped__"), y = d && hasOwnProperty.call(t, "__wrapped__");
1974
- if (E || y) {
1975
- var _ = E ? e.value() : e, p = y ? t.value() : t;
1973
+ var E = u && hasOwnProperty.call(e, "__wrapped__"), b = d && hasOwnProperty.call(t, "__wrapped__");
1974
+ if (E || b) {
1975
+ var _ = E ? e.value() : e, p = b ? t.value() : t;
1976
1976
  return s || (s = new Stack()), n(_, p, r, a, s);
1977
1977
  }
1978
1978
  }
@@ -2109,7 +2109,7 @@ function debounce(e, t, r) {
2109
2109
  var V = a, A = n;
2110
2110
  return a = n = void 0, c = C, l = e.apply(A, V), l;
2111
2111
  }
2112
- function y(C) {
2112
+ function b(C) {
2113
2113
  return c = C, o = setTimeout(m, t), u ? E(C) : l;
2114
2114
  }
2115
2115
  function _(C) {
@@ -2123,23 +2123,23 @@ function debounce(e, t, r) {
2123
2123
  function m() {
2124
2124
  var C = now$1();
2125
2125
  if (p(C))
2126
- return b(C);
2126
+ return y(C);
2127
2127
  o = setTimeout(m, _(C));
2128
2128
  }
2129
- function b(C) {
2129
+ function y(C) {
2130
2130
  return o = void 0, g && a ? E(C) : (a = n = void 0, l);
2131
2131
  }
2132
2132
  function T() {
2133
2133
  o !== void 0 && clearTimeout(o), c = 0, a = i = n = o = void 0;
2134
2134
  }
2135
2135
  function k() {
2136
- return o === void 0 ? l : b(now$1());
2136
+ return o === void 0 ? l : y(now$1());
2137
2137
  }
2138
2138
  function I() {
2139
2139
  var C = now$1(), V = p(C);
2140
2140
  if (a = arguments, n = this, i = C, V) {
2141
2141
  if (o === void 0)
2142
- return y(i);
2142
+ return b(i);
2143
2143
  if (d)
2144
2144
  return clearTimeout(o), o = setTimeout(m, t), E(i);
2145
2145
  }
@@ -2232,14 +2232,14 @@ function baseIntersection(e, t, r) {
2232
2232
  var d = -1, g = o[0];
2233
2233
  e:
2234
2234
  for (; ++d < n && c.length < i; ) {
2235
- var E = u[d], y = t ? t(E) : E;
2236
- if (E = r || E !== 0 ? E : 0, !(g ? cacheHas(g, y) : a(c, y, r))) {
2235
+ var E = u[d], b = t ? t(E) : E;
2236
+ if (E = r || E !== 0 ? E : 0, !(g ? cacheHas(g, b) : a(c, b, r))) {
2237
2237
  for (l = s; --l; ) {
2238
2238
  var _ = o[l];
2239
- if (!(_ ? cacheHas(_, y) : a(e[l], y, r)))
2239
+ if (!(_ ? cacheHas(_, b) : a(e[l], b, r)))
2240
2240
  continue e;
2241
2241
  }
2242
- g && g.push(y), c.push(E);
2242
+ g && g.push(b), c.push(E);
2243
2243
  }
2244
2244
  }
2245
2245
  return c;
@@ -3128,12 +3128,12 @@ setTwoToneColor("#1890ff");
3128
3128
  var Icon$1 = function(t, r) {
3129
3129
  var a, n = _objectSpread$k({}, t, r.attrs), s = n.class, l = n.icon, o = n.spin, i = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, g = _objectWithoutProperties(n, _excluded), E = (a = {
3130
3130
  anticon: !0
3131
- }, _defineProperty$k(a, "anticon-".concat(l.name), Boolean(l.name)), _defineProperty$k(a, s, s), a), y = o === "" || !!o || l.name === "loading" ? "anticon-spin" : "", _ = c;
3131
+ }, _defineProperty$k(a, "anticon-".concat(l.name), Boolean(l.name)), _defineProperty$k(a, s, s), a), b = o === "" || !!o || l.name === "loading" ? "anticon-spin" : "", _ = c;
3132
3132
  _ === void 0 && d && (_ = -1, g.tabindex = _);
3133
3133
  var p = i ? {
3134
3134
  msTransform: "rotate(".concat(i, "deg)"),
3135
3135
  transform: "rotate(".concat(i, "deg)")
3136
- } : void 0, m = normalizeTwoToneColors(u), b = _slicedToArray(m, 2), T = b[0], k = b[1];
3136
+ } : void 0, m = normalizeTwoToneColors(u), y = _slicedToArray(m, 2), T = y[0], k = y[1];
3137
3137
  return createVNode("span", _objectSpread$k({
3138
3138
  role: "img",
3139
3139
  "aria-label": l.name
@@ -3141,7 +3141,7 @@ var Icon$1 = function(t, r) {
3141
3141
  onClick: d,
3142
3142
  class: E
3143
3143
  }), [createVNode(VueIcon, {
3144
- class: y,
3144
+ class: b,
3145
3145
  icon: l,
3146
3146
  primaryColor: T,
3147
3147
  secondaryColor: k,
@@ -3953,16 +3953,16 @@ function iconToSVG(e, t) {
3953
3953
  height: r.height
3954
3954
  };
3955
3955
  let s = r.body;
3956
- [r, a].forEach((y) => {
3957
- const _ = [], p = y.hFlip, m = y.vFlip;
3958
- let b = y.rotate;
3959
- p ? m ? b += 2 : (_.push(
3956
+ [r, a].forEach((b) => {
3957
+ const _ = [], p = b.hFlip, m = b.vFlip;
3958
+ let y = b.rotate;
3959
+ p ? m ? y += 2 : (_.push(
3960
3960
  "translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
3961
3961
  ), _.push("scale(-1 1)"), n.top = n.left = 0) : m && (_.push(
3962
3962
  "translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
3963
3963
  ), _.push("scale(1 -1)"), n.top = n.left = 0);
3964
3964
  let T;
3965
- switch (b < 0 && (b -= Math.floor(b / 4) * 4), b = b % 4, b) {
3965
+ switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
3966
3966
  case 1:
3967
3967
  T = n.height / 2 + n.top, _.unshift(
3968
3968
  "rotate(90 " + T.toString() + " " + T.toString() + ")"
@@ -3979,13 +3979,13 @@ function iconToSVG(e, t) {
3979
3979
  );
3980
3980
  break;
3981
3981
  }
3982
- b % 2 === 1 && (n.left !== n.top && (T = n.left, n.left = n.top, n.top = T), n.width !== n.height && (T = n.width, n.width = n.height, n.height = T)), _.length && (s = '<g transform="' + _.join(" ") + '">' + s + "</g>");
3982
+ y % 2 === 1 && (n.left !== n.top && (T = n.left, n.left = n.top, n.top = T), n.width !== n.height && (T = n.width, n.width = n.height, n.height = T)), _.length && (s = '<g transform="' + _.join(" ") + '">' + s + "</g>");
3983
3983
  });
3984
3984
  const l = a.width, o = a.height, i = n.width, c = n.height;
3985
3985
  let u, d;
3986
3986
  l === null ? (d = o === null ? "1em" : o === "auto" ? c : o, u = calculateSize(d, i / c)) : (u = l === "auto" ? i : l, d = o === null ? calculateSize(u, c / i) : o === "auto" ? c : o);
3987
- const g = {}, E = (y, _) => {
3988
- isUnsetKeyword(_) || (g[y] = _.toString());
3987
+ const g = {}, E = (b, _) => {
3988
+ isUnsetKeyword(_) || (g[b] = _.toString());
3989
3989
  };
3990
3990
  return E("width", u), E("height", d), g.viewBox = n.left.toString() + " " + n.top.toString() + " " + i.toString() + " " + c.toString(), {
3991
3991
  attributes: g,
@@ -4270,11 +4270,11 @@ function sendQuery(e, t, r, a) {
4270
4270
  const o = Date.now();
4271
4271
  let i = "pending", c = 0, u, d = null, g = [], E = [];
4272
4272
  typeof a == "function" && E.push(a);
4273
- function y() {
4273
+ function b() {
4274
4274
  d && (clearTimeout(d), d = null);
4275
4275
  }
4276
4276
  function _() {
4277
- i === "pending" && (i = "aborted"), y(), g.forEach((C) => {
4277
+ i === "pending" && (i = "aborted"), b(), g.forEach((C) => {
4278
4278
  C.status === "pending" && (C.status = "aborted");
4279
4279
  }), g = [];
4280
4280
  }
@@ -4292,7 +4292,7 @@ function sendQuery(e, t, r, a) {
4292
4292
  abort: _
4293
4293
  };
4294
4294
  }
4295
- function b() {
4295
+ function y() {
4296
4296
  i = "failed", E.forEach((C) => {
4297
4297
  C(void 0, u);
4298
4298
  });
@@ -4315,14 +4315,14 @@ function sendQuery(e, t, r, a) {
4315
4315
  return;
4316
4316
  }
4317
4317
  if (V === "abort") {
4318
- u = A, b();
4318
+ u = A, y();
4319
4319
  return;
4320
4320
  }
4321
4321
  if (O) {
4322
- u = A, g.length || (l.length ? I() : b());
4322
+ u = A, g.length || (l.length ? I() : y());
4323
4323
  return;
4324
4324
  }
4325
- if (y(), T(), !e.random) {
4325
+ if (b(), T(), !e.random) {
4326
4326
  const M = e.resources.indexOf(C.resource);
4327
4327
  M !== -1 && M !== e.index && (e.index = M);
4328
4328
  }
@@ -4333,16 +4333,16 @@ function sendQuery(e, t, r, a) {
4333
4333
  function I() {
4334
4334
  if (i !== "pending")
4335
4335
  return;
4336
- y();
4336
+ b();
4337
4337
  const C = l.shift();
4338
4338
  if (C === void 0) {
4339
4339
  if (g.length) {
4340
4340
  d = setTimeout(() => {
4341
- y(), i === "pending" && (T(), b());
4341
+ b(), i === "pending" && (T(), y());
4342
4342
  }, e.timeout);
4343
4343
  return;
4344
4344
  }
4345
- b();
4345
+ y();
4346
4346
  return;
4347
4347
  }
4348
4348
  const V = {
@@ -4770,14 +4770,14 @@ const render = (e, t) => {
4770
4770
  let _ = 0, p = t.id;
4771
4771
  return typeof p == "string" && (p = p.replace(/-/g, "_")), a.innerHTML = replaceIDs(i.body, p ? () => p + "ID" + _++ : "iconifyVue"), h("svg", a);
4772
4772
  }
4773
- const { body: u, width: d, height: g } = e, E = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1), y = iconToHTML(u, {
4773
+ const { body: u, width: d, height: g } = e, E = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1), b = iconToHTML(u, {
4774
4774
  ...c,
4775
4775
  width: d + "",
4776
4776
  height: g + ""
4777
4777
  });
4778
4778
  return a.style = {
4779
4779
  ...s,
4780
- "--svg": svgToURL(y),
4780
+ "--svg": svgToURL(b),
4781
4781
  width: fixSize(c.width),
4782
4782
  height: fixSize(c.height),
4783
4783
  ...commonProps,
@@ -4872,7 +4872,7 @@ const emptyIcon = {
4872
4872
  ...t.data
4873
4873
  }, r);
4874
4874
  }
4875
- }), name = "@kengic/vue", version = "0.13.6", data$1 = {
4875
+ }), name = "@kengic/vue", version = "0.13.8", data$1 = {
4876
4876
  width: 24,
4877
4877
  height: 24,
4878
4878
  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"/>'
@@ -4978,8 +4978,8 @@ function createSetupStore(e, t, r = {}, a, n) {
4978
4978
  c ? E = A : c == !1 && !C._hotUpdating && (Array.isArray(E) ? E.push(A) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
4979
4979
  });
4980
4980
  let c, u, d = markRaw([]), g = markRaw([]), E;
4981
- const y = a.state.value[e];
4982
- !l && !y && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
4981
+ const b = a.state.value[e];
4982
+ !l && !b && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
4983
4983
  const _ = ref({});
4984
4984
  function p(A) {
4985
4985
  let O;
@@ -4999,7 +4999,7 @@ function createSetupStore(e, t, r = {}, a, n) {
4999
4999
  const m = process.env.NODE_ENV !== "production" ? () => {
5000
5000
  throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
5001
5001
  } : noop$1;
5002
- function b() {
5002
+ function y() {
5003
5003
  s.stop(), d = [], g = [], a._s.delete(e);
5004
5004
  }
5005
5005
  function T(A, O) {
@@ -5049,7 +5049,7 @@ function createSetupStore(e, t, r = {}, a, n) {
5049
5049
  }, assign$1({}, i, O)));
5050
5050
  return M;
5051
5051
  },
5052
- $dispose: b
5052
+ $dispose: y
5053
5053
  }, C = reactive(assign$1(
5054
5054
  process.env.NODE_ENV !== "production" && IS_CLIENT ? {
5055
5055
  _customProperties: markRaw(/* @__PURE__ */ new Set()),
@@ -5062,7 +5062,7 @@ function createSetupStore(e, t, r = {}, a, n) {
5062
5062
  for (const A in V) {
5063
5063
  const O = V[A];
5064
5064
  if (isRef(O) && !isComputed(O) || isReactive(O))
5065
- process.env.NODE_ENV !== "production" && n ? set(_.value, A, toRef(V, 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);
5065
+ process.env.NODE_ENV !== "production" && n ? set(_.value, A, toRef(V, A)) : l || (b && shouldHydrate(O) && (isRef(O) ? O.value = b[A] : mergeReactiveObjects(O, b[A])), a.state.value[e][A] = O), process.env.NODE_ENV !== "production" && k.state.push(A);
5066
5066
  else if (typeof O == "function") {
5067
5067
  const M = process.env.NODE_ENV !== "production" && n ? O : T(A, O);
5068
5068
  V[A] = M, process.env.NODE_ENV !== "production" && (k.actions[A] = O), o.actions[A] = O;
@@ -5135,7 +5135,7 @@ function createSetupStore(e, t, r = {}, a, n) {
5135
5135
  })));
5136
5136
  }), process.env.NODE_ENV !== "production" && C.$state && typeof C.$state == "object" && typeof C.$state.constructor == "function" && !C.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
5137
5137
  state: () => new MyClass()
5138
- Found in store "${C.$id}".`), y && l && r.hydrate && r.hydrate(C.$state, y), c = !0, u = !0, C;
5138
+ Found in store "${C.$id}".`), b && l && r.hydrate && r.hydrate(C.$state, b), c = !0, u = !0, C;
5139
5139
  }
5140
5140
  function defineStore(e, t, r) {
5141
5141
  let a, n;
@@ -5245,11 +5245,11 @@ function useKgDragModal(e) {
5245
5245
  if (!o)
5246
5246
  return;
5247
5247
  document.body.classList.add("kg-modal-dragging");
5248
- const i = o.clientX, c = o.clientY, u = document.body.clientWidth, d = document.documentElement.clientHeight, g = l.offsetWidth, E = l.offsetHeight, y = l.offsetLeft, _ = u - l.offsetLeft - g, p = l.offsetTop, m = d - l.offsetTop - E, b = t(l, "left"), T = t(l, "top");
5249
- let k = +b, I = +T;
5250
- b.includes("%") ? (k = +document.body.clientWidth * (+b.replace(/%/g, "") / 100), I = +document.body.clientHeight * (+T.replace(/%/g, "") / 100)) : (k = +b.replace(/px/g, ""), I = +T.replace(/px/g, "")), document.onmousemove = function(C) {
5248
+ const i = o.clientX, c = o.clientY, u = document.body.clientWidth, d = document.documentElement.clientHeight, g = l.offsetWidth, E = l.offsetHeight, b = l.offsetLeft, _ = u - l.offsetLeft - g, p = l.offsetTop, m = d - l.offsetTop - E, y = t(l, "left"), T = t(l, "top");
5249
+ let k = +y, I = +T;
5250
+ y.includes("%") ? (k = +document.body.clientWidth * (+y.replace(/%/g, "") / 100), I = +document.body.clientHeight * (+T.replace(/%/g, "") / 100)) : (k = +y.replace(/px/g, ""), I = +T.replace(/px/g, "")), document.onmousemove = function(C) {
5251
5251
  let V = C.clientX - i, A = C.clientY - c;
5252
- -V > y ? V = -y : V > _ && (V = _), -A > p ? A = -p : A > m && (A = m), l.style.cssText += `;left:${V + k}px;top:${A + I}px;`;
5252
+ -V > b ? V = -b : V > _ && (V = _), -A > p ? A = -p : A > m && (A = m), l.style.cssText += `;left:${V + k}px;top:${A + I}px;`;
5253
5253
  }, document.onmouseup = () => {
5254
5254
  document.body.classList.remove("kg-modal-dragging"), document.onmousemove = null, document.onmouseup = null;
5255
5255
  };
@@ -5719,18 +5719,18 @@ const KgModal_Close = "", getProps$A = () => ({
5719
5719
  slots: r
5720
5720
  }) {
5721
5721
  if (e.kgMaxHeight < e.kgMinHeight) {
5722
- const b = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
5723
- throw KgLogger.error(b, {
5722
+ const y = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
5723
+ throw KgLogger.error(y, {
5724
5724
  kgMaxHeight: e.kgMaxHeight,
5725
5725
  kgMinHeight: e.kgMinHeight
5726
- }), new Error(b);
5726
+ }), new Error(y);
5727
5727
  }
5728
5728
  if (e.kgMaxWidth < e.kgMinWidth) {
5729
- const b = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
5730
- throw KgLogger.error(b, {
5729
+ const y = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
5730
+ throw KgLogger.error(y, {
5731
5731
  kgMaxWidth: e.kgMaxWidth,
5732
5732
  kgMinWidth: e.kgMinWidth
5733
- }), new Error(b);
5733
+ }), new Error(y);
5734
5734
  }
5735
5735
  let a = 0, n = 0, s = 0, l = 0, o = {
5736
5736
  remove: () => {
@@ -5753,22 +5753,22 @@ const KgModal_Close = "", getProps$A = () => ({
5753
5753
  };
5754
5754
  }
5755
5755
  }), u = computed(() => {
5756
- let b = "";
5757
- switch (e.kgClass && (b += `${e.kgClass} `), b += "kg-resizable", e.kgDisabled && (b += " kg-resizable--disabled"), e.kgType) {
5756
+ let y = "";
5757
+ switch (e.kgClass && (y += `${e.kgClass} `), y += "kg-resizable", e.kgDisabled && (y += " kg-resizable--disabled"), e.kgType) {
5758
5758
  case "left":
5759
- b += " kg-resizable--left";
5759
+ y += " kg-resizable--left";
5760
5760
  break;
5761
5761
  case "right":
5762
- b += " kg-resizable--right";
5762
+ y += " kg-resizable--right";
5763
5763
  break;
5764
5764
  case "top":
5765
- b += " kg-resizable--top";
5765
+ y += " kg-resizable--top";
5766
5766
  break;
5767
5767
  case "bottom":
5768
- b += " kg-resizable--bottom";
5768
+ y += " kg-resizable--bottom";
5769
5769
  break;
5770
5770
  }
5771
- return b;
5771
+ return y;
5772
5772
  });
5773
5773
  function d() {
5774
5774
  o.remove(), i.remove();
@@ -5776,41 +5776,41 @@ const KgModal_Close = "", getProps$A = () => ({
5776
5776
  onUnmounted(() => {
5777
5777
  d();
5778
5778
  });
5779
- const g = (b) => {
5779
+ const g = (y) => {
5780
5780
  switch (e.kgType) {
5781
5781
  case "top":
5782
- t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (b.pageY - l))));
5782
+ t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (y.pageY - l))));
5783
5783
  break;
5784
5784
  case "bottom":
5785
- t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (b.pageY - l))));
5785
+ t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (y.pageY - l))));
5786
5786
  break;
5787
5787
  case "left":
5788
- t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (b.pageX - s))));
5788
+ t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (y.pageX - s))));
5789
5789
  break;
5790
5790
  case "right":
5791
- t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (b.pageX - s))));
5791
+ t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (y.pageX - s))));
5792
5792
  break;
5793
5793
  }
5794
5794
  };
5795
- function E(b) {
5796
- g(b);
5795
+ function E(y) {
5796
+ g(y);
5797
5797
  }
5798
- function y(b) {
5799
- g(b), d();
5798
+ function b(y) {
5799
+ g(y), d();
5800
5800
  }
5801
- function _(b) {
5802
- b.stopPropagation(), b.preventDefault(), d(), !(b instanceof MouseEvent && b.which !== 1) && (s = b.pageX, l = b.pageY, a = e.kgWidth, n = e.kgHeight, o = p(document.documentElement, "mousemove", E), i = p(document.documentElement, "mouseup", y));
5801
+ function _(y) {
5802
+ y.stopPropagation(), y.preventDefault(), d(), !(y instanceof MouseEvent && y.which !== 1) && (s = y.pageX, l = y.pageY, a = e.kgWidth, n = e.kgHeight, o = p(document.documentElement, "mousemove", E), i = p(document.documentElement, "mouseup", b));
5803
5803
  }
5804
- function p(b, T, k) {
5805
- return b.addEventListener(T, k), {
5806
- remove: () => b.removeEventListener(T, k)
5804
+ function p(y, T, k) {
5805
+ return y.addEventListener(T, k), {
5806
+ remove: () => y.removeEventListener(T, k)
5807
5807
  };
5808
5808
  }
5809
- function m(b) {
5810
- b.stopPropagation(), b.preventDefault();
5809
+ function m(y) {
5810
+ y.stopPropagation(), y.preventDefault();
5811
5811
  }
5812
5812
  return () => {
5813
- var b;
5813
+ var y;
5814
5814
  return createVNode("div", {
5815
5815
  class: u.value,
5816
5816
  style: c.value
@@ -5820,7 +5820,7 @@ const KgModal_Close = "", getProps$A = () => ({
5820
5820
  onMousedown: _
5821
5821
  }, [createVNode("div", {
5822
5822
  class: "kg-resizable-handle-line"
5823
- }, null)]), (b = r.default) == null ? void 0 : b.call(r)]);
5823
+ }, null)]), (y = r.default) == null ? void 0 : y.call(r)]);
5824
5824
  };
5825
5825
  }
5826
5826
  });
@@ -5890,7 +5890,7 @@ class KgVarUtil {
5890
5890
  return r;
5891
5891
  }
5892
5892
  static transformFormItemValue(t, r, a, n, s) {
5893
- var g, E, y;
5893
+ var g, E, b;
5894
5894
  const l = useKg(), o = useKgVar(t);
5895
5895
  let i = n;
5896
5896
  const c = /(.*)?({(.*)?})(.*)?/.exec(i);
@@ -5901,7 +5901,7 @@ class KgVarUtil {
5901
5901
  i = i.replace("{NOW}", a().format("YYYY-MM-DD HH:mm:ss"));
5902
5902
  break;
5903
5903
  case "{USER.username}":
5904
- i = i.replace("{USER.username}", (y = (E = (g = l.store).getUseUserStore) == null ? void 0 : E.call(g).userInfo) == null ? void 0 : y.username);
5904
+ i = i.replace("{USER.username}", (b = (E = (g = l.store).getUseUserStore) == null ? void 0 : E.call(g).userInfo) == null ? void 0 : b.username);
5905
5905
  break;
5906
5906
  }
5907
5907
  }
@@ -5909,14 +5909,14 @@ class KgVarUtil {
5909
5909
  if (!u)
5910
5910
  return i;
5911
5911
  const d = (() => {
5912
- const _ = u.ctrl_typ, p = u.prf_ctrl_typ, m = u.crt_ctrl_typ, b = u.upt_ctrl_typ, T = u.cpy_ctrl_typ, k = u.del_ctrl_typ;
5912
+ const _ = u.ctrl_typ, p = u.prf_ctrl_typ, m = u.crt_ctrl_typ, y = u.upt_ctrl_typ, T = u.cpy_ctrl_typ, k = u.del_ctrl_typ;
5913
5913
  switch (s) {
5914
5914
  case "R":
5915
5915
  return p || _;
5916
5916
  case "C":
5917
5917
  return m || _;
5918
5918
  case "U":
5919
- return b || _;
5919
+ return y || _;
5920
5920
  case "CP":
5921
5921
  return T || _;
5922
5922
  case "D":
@@ -6013,8 +6013,8 @@ class KgVarUtil {
6013
6013
  const p = o.store.getVarPossibility(t, r);
6014
6014
  switch (p == null ? void 0 : p.val_data_type) {
6015
6015
  case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
6016
- const m = _.map((b) => Number(b));
6017
- if (m.some((b) => Number.isNaN(m))) {
6016
+ const m = _.map((y) => Number(y));
6017
+ if (m.some((y) => Number.isNaN(m))) {
6018
6018
  KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
6019
6019
  frm_id: t,
6020
6020
  var_nam: r,
@@ -6346,13 +6346,13 @@ function createStore(e, t, r) {
6346
6346
  var u = this[c];
6347
6347
  this[c] = function() {
6348
6348
  var g = slice(arguments, 0), E = this;
6349
- function y() {
6349
+ function b() {
6350
6350
  if (!!u)
6351
6351
  return each$6(arguments, function(p, m) {
6352
6352
  g[m] = p;
6353
6353
  }), u.apply(E, g);
6354
6354
  }
6355
- var _ = [y].concat(g);
6355
+ var _ = [b].concat(g);
6356
6356
  return i.apply(E, _);
6357
6357
  };
6358
6358
  },
@@ -7066,6 +7066,14 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
7066
7066
  return t ? (r = e.varSubmitConfigMap.get(t)) != null ? r : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
7067
7067
  };
7068
7068
  },
7069
+ getVarSubmitConfigProps(e) {
7070
+ return (t) => {
7071
+ if (!t)
7072
+ return KgLogger.error("frm_id \u4E3A\u7A7A."), {};
7073
+ const r = e.varSubmitConfigMap.get(t);
7074
+ return r ? KgUtil.tryParseJSON(r.props) : {};
7075
+ };
7076
+ },
7069
7077
  getVarSubmitFields(e) {
7070
7078
  return (t) => {
7071
7079
  var r;
@@ -7446,17 +7454,17 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
7446
7454
  varButtons: d,
7447
7455
  varSubmitConfig: g,
7448
7456
  varSubmitFields: E,
7449
- varProfileMasters: y,
7457
+ varProfileMasters: b,
7450
7458
  varProfileConfig: _,
7451
7459
  varGridMasters: p,
7452
7460
  varGridConfig: m
7453
7461
  } = await GetAll({ params: { frm_id: e } });
7454
7462
  this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, c != null ? c : []), this.varVariableConfigMap.set(e, o != null ? o : []), this.varVariableInputMap.set(e, i != null ? i : []), this.varButtonMap.set(e, transformVarButtons(d)), this.varButtonConfigMap.set(e, transformVarButtonConfig(u != null ? u : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(g)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(E)), this.varProfileConfigMap.set(e, transformVarProfileConfig(_ != null ? _ : null)), this.varProfileMasterMap.set(e, {
7455
- varProfileMasters: transformVarProfileMasterDTOs(y),
7456
- currentVarProfileMasterID: (r = (t = (y == null ? void 0 : y.find((b) => b.id === this.getCurrentVarProfileMasterID(e))) || (y == null ? void 0 : y.find((b) => b.def_flg === 1)) || (y == null ? void 0 : y.find((b) => b.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (y == null ? void 0 : y.find(() => !0))) == null ? void 0 : t.id) != null ? r : null
7463
+ varProfileMasters: transformVarProfileMasterDTOs(b),
7464
+ currentVarProfileMasterID: (r = (t = (b == null ? void 0 : b.find((y) => y.id === this.getCurrentVarProfileMasterID(e))) || (b == null ? void 0 : b.find((y) => y.def_flg === 1)) || (b == null ? void 0 : b.find((y) => y.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (b == null ? void 0 : b.find(() => !0))) == null ? void 0 : t.id) != null ? r : null
7457
7465
  }), this.varGridConfigMap.set(e, transformVarGridConfig(m != null ? m : null)), this.varGridMasterMap.set(e, {
7458
7466
  varGridMasters: transformVarGridMasterDTOs(p),
7459
- currentVarGridMasterID: (n = (a = (p == null ? void 0 : p.find((b) => b.id === this.getCurrentVarGridMasterID(e))) || (p == null ? void 0 : p.find((b) => b.def_flg === 1)) || (p == null ? void 0 : p.find((b) => b.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (p == null ? void 0 : p.find(() => !0))) == null ? void 0 : a.id) != null ? n : null
7467
+ currentVarGridMasterID: (n = (a = (p == null ? void 0 : p.find((y) => y.id === this.getCurrentVarGridMasterID(e))) || (p == null ? void 0 : p.find((y) => y.def_flg === 1)) || (p == null ? void 0 : p.find((y) => y.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (p == null ? void 0 : p.find(() => !0))) == null ? void 0 : a.id) != null ? n : null
7460
7468
  }), await Promise.all([
7461
7469
  this.setCurrentVarGridMasterID(e, this.getCurrentVarGridMasterID(e)),
7462
7470
  this.setCurrentVarProfileMasterID(e, this.getCurrentVarProfileMasterID(e))
@@ -7667,20 +7675,20 @@ function useKgVar(e, t, r = 0) {
7667
7675
  }), onUnmounted(() => {
7668
7676
  u.dispose(c);
7669
7677
  }));
7670
- const d = (J) => computed(() => u.t(c, J)), g = computed(() => u.isRetrieving(c)), E = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), _ = computed(() => u.isRetrieved(c)), p = computed(() => u.isCreating(c)), m = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), T = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), I = computed(() => u.isCopyingRequesting(c)), C = computed(() => u.isDeleting(c)), V = computed(() => u.isDeletingRequesting(c)), A = computed(() => u.isOtherRequesting(c)), O = 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)), D = computed(() => u.getVarProfileMasters(c)), R = computed(() => u.getCurrentVarProfileMasterID(c)), $ = computed(() => u.getCurrentVarProfileMaster(c)), P = computed(() => {
7678
+ const d = (J) => computed(() => u.t(c, J)), g = computed(() => u.isRetrieving(c)), E = computed(() => u.isRetrievingVarProfileMaster(c)), b = computed(() => u.isRetrievingVarGridMaster(c)), _ = computed(() => u.isRetrieved(c)), p = computed(() => u.isCreating(c)), m = computed(() => u.isCreatingRequesting(c)), y = computed(() => u.isUpdating(c)), T = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), I = computed(() => u.isCopyingRequesting(c)), C = computed(() => u.isDeleting(c)), V = computed(() => u.isDeletingRequesting(c)), A = computed(() => u.isOtherRequesting(c)), O = 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)), D = computed(() => u.getVarProfileMasters(c)), R = computed(() => u.getCurrentVarProfileMasterID(c)), $ = computed(() => u.getCurrentVarProfileMaster(c)), P = computed(() => {
7671
7679
  var J, ee;
7672
7680
  return (ee = (J = $.value) == null ? void 0 : J.varProfileDetails) != null ? ee : null;
7673
- }), U = computed(() => u.getVarGridConfig(c)), N = computed(() => u.getVarGridMasters(c)), x = computed(() => u.getCurrentVarGridMasterID(c)), Y = computed(() => u.getCurrentVarGridMaster(c)), q = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
7681
+ }), 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)), X = computed(() => u.getCurrentVarGridDetails(c));
7674
7682
  return {
7675
7683
  formID: c,
7676
7684
  store: u,
7677
7685
  isRetrieving: g,
7678
7686
  isRetrievingVarProfileMaster: E,
7679
- isRetrievingVarGridMaster: y,
7687
+ isRetrievingVarGridMaster: b,
7680
7688
  isRetrieved: _,
7681
7689
  isCreating: p,
7682
7690
  isCreatingRequesting: m,
7683
- isUpdating: b,
7691
+ isUpdating: y,
7684
7692
  isUpdatingRequesting: T,
7685
7693
  isCopying: k,
7686
7694
  isCopyingRequesting: I,
@@ -7697,7 +7705,7 @@ function useKgVar(e, t, r = 0) {
7697
7705
  currentVarProfileMasterID: R,
7698
7706
  currentVarProfileMaster: $,
7699
7707
  currentVarProfileDetails: P,
7700
- varGridConfig: U,
7708
+ varGridConfig: G,
7701
7709
  varGridMasters: N,
7702
7710
  currentVarGridMasteID: x,
7703
7711
  currentVarGridMaster: Y,
@@ -7726,10 +7734,10 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
7726
7734
  }) {
7727
7735
  provide(DI_KG_VAR__KG_PROPS, computed(() => e.kgProps)), provide(DI_KG_VAR__KG_SLOTS, e.kgSlots);
7728
7736
  const r = useKgVar(), a = useKgSearch(r.formID), n = useKgButton(r.formID), s = useKgSubmit(r.formID), l = useKgTable(r.formID), o = computed(() => r.store.getVarProfileConfig(r.formID)), i = computed(() => r.store.getVarButtonConfig(r.formID)), c = computed(() => r.store.getVarGridConfig(r.formID)), u = computed(() => r.store.getVarSubmitConfig(r.formID)), d = computed(() => {
7729
- var b, T, k, I;
7737
+ var y, T, k, I;
7730
7738
  switch (!0) {
7731
7739
  case r.isCreating.value:
7732
- return ((b = u.value) == null ? void 0 : b.crt_flg) !== 0;
7740
+ return ((y = u.value) == null ? void 0 : y.crt_flg) !== 0;
7733
7741
  case r.isUpdating.value:
7734
7742
  return ((T = u.value) == null ? void 0 : T.upt_flg) !== 0;
7735
7743
  case r.isCopying.value:
@@ -7739,25 +7747,25 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
7739
7747
  }
7740
7748
  return !1;
7741
7749
  }), g = computed(() => {
7742
- var b;
7743
- return r.isRetrieved.value && ((b = o.value) == null ? void 0 : b.available_flg) !== 0;
7750
+ var y;
7751
+ return r.isRetrieved.value && ((y = o.value) == null ? void 0 : y.available_flg) !== 0;
7744
7752
  }), E = computed(() => {
7745
- var b;
7746
- return r.isRetrieved.value && ((b = i.value) == null ? void 0 : b.available_flg) !== 0;
7747
- }), y = computed(() => {
7748
- var b;
7749
- return r.isRetrieved.value && ((b = c.value) == null ? void 0 : b.available_flg) !== 0;
7753
+ var y;
7754
+ return r.isRetrieved.value && ((y = i.value) == null ? void 0 : y.available_flg) !== 0;
7755
+ }), b = computed(() => {
7756
+ var y;
7757
+ return r.isRetrieved.value && ((y = c.value) == null ? void 0 : y.available_flg) !== 0;
7750
7758
  }), _ = computed(() => !!r.isOtherRequesting.value), p = computed(() => {
7751
- let b = "kg-var";
7752
- return e.KgBackgroundGray && (b += " kg-var--bg-gray"), !g.value && !E.value && !y.value && (b += " kg-var--empty"), b;
7759
+ let y = "kg-var";
7760
+ return e.KgBackgroundGray && (y += " kg-var--bg-gray"), !g.value && !E.value && !b.value && (y += " kg-var--empty"), y;
7753
7761
  });
7754
7762
  function m() {
7755
7763
  return createVNode(Spin, {
7756
7764
  spinning: _.value
7757
7765
  }, {
7758
7766
  default: () => {
7759
- var b, T;
7760
- return [t.default ? t.default() : createVNode(Fragment, null, [g.value && createVNode(KgSearch, null, null), E.value && createVNode(KgButton, null, null), y.value && createVNode(Fragment, null, [createVNode(KgTable, null, null), (T = (b = e.kgSlots) == null ? void 0 : b.afterKgTable) == null ? void 0 : T.call(b)]), d.value && createVNode(KgSubmit, null, null)])];
7767
+ var y, T;
7768
+ return [t.default ? t.default() : createVNode(Fragment, null, [g.value && createVNode(KgSearch, null, null), E.value && createVNode(KgButton, null, null), b.value && createVNode(Fragment, null, [createVNode(KgTable, null, null), (T = (y = e.kgSlots) == null ? void 0 : y.afterKgTable) == null ? void 0 : T.call(y)]), d.value && createVNode(KgSubmit, null, null)])];
7761
7769
  }
7762
7770
  });
7763
7771
  }
@@ -7786,13 +7794,13 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
7786
7794
  return (m = (p = d == null ? void 0 : d.value) == null ? void 0 : p.ret_fld) != null ? m : "";
7787
7795
  });
7788
7796
  u.onRowDoubleClick(async () => (await _(), !1));
7789
- function y() {
7797
+ function b() {
7790
7798
  r("update:visible", !1);
7791
7799
  }
7792
7800
  async function _() {
7793
- var p, m, b, T, k, I, C;
7801
+ var p, m, y, T, k, I, C;
7794
7802
  if (g.value) {
7795
- const V = (m = (p = u.selectedRows) == null ? void 0 : p.value) != null ? m : [], A = (b = V.map((M) => M[E.value])) != null ? b : [];
7803
+ const V = (m = (p = u.selectedRows) == null ? void 0 : p.value) != null ? m : [], A = (y = V.map((M) => M[E.value])) != null ? y : [];
7796
7804
  await s.store.emit(s.formID, "lookupBeforeOk", {
7797
7805
  var_nam: l,
7798
7806
  isMultiple: !0,
@@ -7831,7 +7839,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
7831
7839
  disabled: ((m = (p = u.selectedRows.value) == null ? void 0 : p.length) != null ? m : 0) === 0
7832
7840
  },
7833
7841
  wrapClassName: "kg-form-item-addon-lookup-modal",
7834
- onCancel: y,
7842
+ onCancel: b,
7835
7843
  onOk: _
7836
7844
  }, {
7837
7845
  default: () => [createVNode(KgVar, null, null)]
@@ -7968,11 +7976,11 @@ function _useRules(e) {
7968
7976
  switch (d == null ? void 0 : d.data_type) {
7969
7977
  case KG_VAR_INPUT__DATA_TYPE.NUMBER:
7970
7978
  {
7971
- const y = d == null ? void 0 : d.min;
7972
- isNil(y) || ((d == null ? void 0 : d.min_include_flg) === 1 ? E.push({
7973
- validator: (p, m) => m == null || m === "" || typeof m == "string" && m.trim() === "" ? Promise.resolve() : Number(m) < y ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [y])) : Promise.resolve()
7979
+ const b = d == null ? void 0 : d.min;
7980
+ isNil(b) || ((d == null ? void 0 : d.min_include_flg) === 1 ? E.push({
7981
+ validator: (p, m) => m == null || m === "" || typeof m == "string" && m.trim() === "" ? Promise.resolve() : Number(m) < b ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [b])) : Promise.resolve()
7974
7982
  }) : E.push({
7975
- validator: (p, m) => m == null || m === "" || typeof m == "string" && m.trim() === "" ? Promise.resolve() : Number(m) <= y ? Promise.reject(t.t("kg.KgFormItem.mustGT", [y])) : Promise.resolve()
7983
+ validator: (p, m) => m == null || m === "" || typeof m == "string" && m.trim() === "" ? Promise.resolve() : Number(m) <= b ? Promise.reject(t.t("kg.KgFormItem.mustGT", [b])) : Promise.resolve()
7976
7984
  }));
7977
7985
  const _ = d == null ? void 0 : d.max;
7978
7986
  isNil(_) || ((d == null ? void 0 : d.max_include_flg) === 1 ? E.push({
@@ -7996,8 +8004,8 @@ function _useRules(e) {
7996
8004
  }
7997
8005
  function useKgFormItem(e) {
7998
8006
  const t = (e == null ? void 0 : e.kgVarName) || inject(KG_DI_VAR_NAME, e == null ? void 0 : e.kgVarName), r = (e == null ? void 0 : e.kgContext) || inject(DI_KG_CONTEXT, e == null ? void 0 : e.kgContext), a = useKgVar(), n = computed(() => a.store.getVarVariableConfig(a.formID, t)), s = computed(() => {
7999
- var E, y, _, p, m, b;
8000
- const o = ((E = n.value) == null ? void 0 : E.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, i = (y = n.value) == null ? void 0 : y.prf_ctrl_typ, c = (_ = n.value) == null ? void 0 : _.crt_ctrl_typ, u = (p = n.value) == null ? void 0 : p.upt_ctrl_typ, d = (m = n.value) == null ? void 0 : m.cpy_ctrl_typ, g = (b = n.value) == null ? void 0 : b.del_ctrl_typ;
8007
+ var E, b, _, p, m, y;
8008
+ const o = ((E = n.value) == null ? void 0 : E.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, i = (b = n.value) == null ? void 0 : b.prf_ctrl_typ, c = (_ = n.value) == null ? void 0 : _.crt_ctrl_typ, u = (p = n.value) == null ? void 0 : p.upt_ctrl_typ, d = (m = n.value) == null ? void 0 : m.cpy_ctrl_typ, g = (y = n.value) == null ? void 0 : y.del_ctrl_typ;
8001
8009
  switch (r) {
8002
8010
  case KG_FORM_CONTEXT.SEARCH:
8003
8011
  return i || o;
@@ -8015,9 +8023,9 @@ function useKgFormItem(e) {
8015
8023
  }
8016
8024
  return o;
8017
8025
  }), l = computed(() => {
8018
- var y, _, p, m, b, T;
8026
+ var b, _, p, m, y, T;
8019
8027
  let o;
8020
- const i = (y = n.value) == null ? void 0 : y.ctrl_prop, c = (_ = n.value) == null ? void 0 : _.prf_ctrl_prop, u = (p = n.value) == null ? void 0 : p.crt_ctrl_prop, d = (m = n.value) == null ? void 0 : m.upt_ctrl_prop, g = (b = n.value) == null ? void 0 : b.cpy_ctrl_prop, E = (T = n.value) == null ? void 0 : T.del_ctrl_prop;
8028
+ const i = (b = n.value) == null ? void 0 : b.ctrl_prop, c = (_ = n.value) == null ? void 0 : _.prf_ctrl_prop, u = (p = n.value) == null ? void 0 : p.crt_ctrl_prop, d = (m = n.value) == null ? void 0 : m.upt_ctrl_prop, g = (y = n.value) == null ? void 0 : y.cpy_ctrl_prop, E = (T = n.value) == null ? void 0 : T.del_ctrl_prop;
8021
8029
  switch (r) {
8022
8030
  case KG_FORM_CONTEXT.SEARCH:
8023
8031
  o = c || i;
@@ -8050,16 +8058,16 @@ function useKgFormItemSelect() {
8050
8058
  controlType: s,
8051
8059
  controlProperties: l
8052
8060
  } = useKgFormItem(), o = ref(!1), i = ref([]), c = computed(() => {
8053
- var y, _;
8054
- return (_ = (y = n.value) == null ? void 0 : y.val_clm) != null ? _ : "";
8061
+ var b, _;
8062
+ return (_ = (b = n.value) == null ? void 0 : b.val_clm) != null ? _ : "";
8055
8063
  }), u = computed(() => {
8056
- var y, _;
8057
- return (_ = (y = n.value) == null ? void 0 : y.lbl_clm) != null ? _ : "";
8064
+ var b, _;
8065
+ return (_ = (b = n.value) == null ? void 0 : b.lbl_clm) != null ? _ : "";
8058
8066
  }), d = computed(() => {
8059
8067
  var _;
8060
- let y = KgVarUtil.parseCommandParameter((_ = n.value) == null ? void 0 : _.cmd_prm);
8061
- return y = mapValues(y, (p) => {
8062
- var b, T;
8068
+ let b = KgVarUtil.parseCommandParameter((_ = n.value) == null ? void 0 : _.cmd_prm);
8069
+ return b = mapValues(b, (p) => {
8070
+ var y, T;
8063
8071
  let m = p;
8064
8072
  if (typeof p == "string" && p.startsWith("{") && p.endsWith("}")) {
8065
8073
  let k = p.slice(1, -1), I = "";
@@ -8067,22 +8075,22 @@ function useKgFormItemSelect() {
8067
8075
  const C = k.split(".");
8068
8076
  k = C[0], I = C[1];
8069
8077
  }
8070
- r.value && k in r.value && (I ? m = (T = (b = r.value[`${k}_obj`]) == null ? void 0 : b[I]) != null ? T : void 0 : m = r.value[k], m || (m = "__kg__form_item_select__pid"));
8078
+ r.value && k in r.value && (I ? m = (T = (y = r.value[`${k}_obj`]) == null ? void 0 : y[I]) != null ? T : void 0 : m = r.value[k], m || (m = "__kg__form_item_select__pid"));
8071
8079
  }
8072
8080
  return m;
8073
- }), y;
8081
+ }), b;
8074
8082
  });
8075
8083
  async function g() {
8076
8084
  var k, I, C, V, A, O, M, K;
8077
- let y = [];
8078
- const _ = (k = n.value) == null ? void 0 : k.cmd, p = (C = (I = n.value) == null ? void 0 : I.cmd_method) != null ? C : "GET", m = (A = (V = n.value) == null ? void 0 : V.val_clm) != null ? A : "", b = (M = (O = n.value) == null ? void 0 : O.lbl_clm) != null ? M : "";
8079
- if (!_ || !m || !b) {
8085
+ let b = [];
8086
+ const _ = (k = n.value) == null ? void 0 : k.cmd, p = (C = (I = n.value) == null ? void 0 : I.cmd_method) != null ? C : "GET", m = (A = (V = n.value) == null ? void 0 : V.val_clm) != null ? A : "", y = (M = (O = n.value) == null ? void 0 : O.lbl_clm) != null ? M : "";
8087
+ if (!_ || !m || !y) {
8080
8088
  KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
8081
8089
  frm_id: a.formID,
8082
8090
  var_nam: t,
8083
8091
  cmd: _,
8084
8092
  val_clm: m,
8085
- lbl_clm: b
8093
+ lbl_clm: y
8086
8094
  });
8087
8095
  return;
8088
8096
  }
@@ -8104,42 +8112,42 @@ function useKgFormItemSelect() {
8104
8112
  o.value = !1;
8105
8113
  }
8106
8114
  if (!isObjectLike(T))
8107
- y = [];
8115
+ b = [];
8108
8116
  else
8109
8117
  switch (!0) {
8110
8118
  case isArrayLike(T):
8111
- y = E(T);
8119
+ b = E(T);
8112
8120
  break;
8113
8121
  case (T && "total" in T && "records" in T):
8114
- y = E(T.records);
8122
+ b = E(T.records);
8115
8123
  break;
8116
8124
  }
8117
- if (y.length > 0) {
8118
- const L = y[0];
8119
- (!(m in L) || !(b in L)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
8125
+ if (b.length > 0) {
8126
+ const L = b[0];
8127
+ (!(m in L) || !(y in L)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
8120
8128
  frm_id: a.formID,
8121
8129
  var_nam: t,
8122
8130
  cmd: _,
8123
8131
  val_clm: m,
8124
- lbl_clm: b,
8132
+ lbl_clm: y,
8125
8133
  \u6240\u6709\u5217: Object.keys(L)
8126
8134
  });
8127
8135
  }
8128
- i.value = y;
8136
+ i.value = b;
8129
8137
  }
8130
- function E(y) {
8131
- var m, b, T, k, I;
8132
- if (!y)
8138
+ function E(b) {
8139
+ var m, y, T, k, I;
8140
+ if (!b)
8133
8141
  return [];
8134
- const _ = (b = (m = n.value) == null ? void 0 : m.val_clm) != null ? b : "", p = (k = (T = n.value) == null ? void 0 : T.val_data_type) != null ? k : "string";
8142
+ const _ = (y = (m = n.value) == null ? void 0 : m.val_clm) != null ? y : "", p = (k = (T = n.value) == null ? void 0 : T.val_data_type) != null ? k : "string";
8135
8143
  switch (p) {
8136
8144
  case KG_POSSIBILITY_DATA_TYPE.STRING:
8137
- y.forEach((C) => {
8145
+ b.forEach((C) => {
8138
8146
  C[_] = String(C[_]);
8139
8147
  });
8140
8148
  break;
8141
8149
  case KG_POSSIBILITY_DATA_TYPE.NUMBER:
8142
- y.forEach((C) => {
8150
+ b.forEach((C) => {
8143
8151
  let V = Number(C[_]);
8144
8152
  Number.isNaN(V) && (V = C[_], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${C[_]} \u8F6C\u6362\u4E3A ${p} \u7C7B\u578B`, {
8145
8153
  frm_id: a.formID,
@@ -8149,7 +8157,7 @@ function useKgFormItemSelect() {
8149
8157
  });
8150
8158
  break;
8151
8159
  case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
8152
- y.forEach((C) => {
8160
+ b.forEach((C) => {
8153
8161
  let V;
8154
8162
  String(C[_]).toLowerCase() === "true" ? V = !0 : String(C[_]).toLowerCase() === "false" ? V = !1 : (V = C[_], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${C[_]} \u8F6C\u6362\u4E3A ${p} \u7C7B\u578B`, {
8155
8163
  frm_id: a.formID,
@@ -8164,14 +8172,14 @@ function useKgFormItemSelect() {
8164
8172
  {
8165
8173
  const C = l;
8166
8174
  if ((I = C.value) != null && I.excludeValues)
8167
- return y.filter((V) => {
8175
+ return b.filter((V) => {
8168
8176
  var A;
8169
8177
  return !((A = C.value.excludeValues) != null && A.includes(V[_]));
8170
8178
  });
8171
8179
  }
8172
8180
  break;
8173
8181
  }
8174
- return y;
8182
+ return b;
8175
8183
  }
8176
8184
  return {
8177
8185
  varPossibility: n,
@@ -8207,19 +8215,19 @@ const KgFormItemCheckboxGroup = defineComponent({
8207
8215
  watch(o, () => E(), {
8208
8216
  immediate: !0
8209
8217
  }), watch([() => e.value, c], ([p, m]) => {
8210
- const b = get(p, "length", 0);
8211
- if (b > 0 && m.length > 0) {
8218
+ const y = get(p, "length", 0);
8219
+ if (y > 0 && m.length > 0) {
8212
8220
  const T = intersection$1(p, m == null ? void 0 : m.map((k) => k[i.value]));
8213
- if (T.length < b) {
8221
+ if (T.length < y) {
8214
8222
  r("update:value", T);
8215
8223
  return;
8216
8224
  }
8217
8225
  }
8218
8226
  switch (!0) {
8219
- case (b > 0 && b === m.length):
8227
+ case (y > 0 && y === m.length):
8220
8228
  d.value = !0, g.value = !1;
8221
8229
  break;
8222
- case (b > 0 && b !== m.length):
8230
+ case (y > 0 && y !== m.length):
8223
8231
  d.value = !1, g.value = !0;
8224
8232
  break;
8225
8233
  default:
@@ -8231,11 +8239,11 @@ const KgFormItemCheckboxGroup = defineComponent({
8231
8239
  });
8232
8240
  async function E() {
8233
8241
  var p, m;
8234
- !((p = l.value) != null && p.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((m = c.value) == null ? void 0 : m.map((b) => b[i.value]), e.value)));
8242
+ !((p = l.value) != null && p.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((m = c.value) == null ? void 0 : m.map((y) => y[i.value]), e.value)));
8235
8243
  }
8236
- function y(p) {
8237
- var m, b, T;
8238
- p.target.checked ? _((b = (m = c.value) == null ? void 0 : m.map((k) => k[i.value])) != null ? b : []) : _([]), g.value = !1, (T = n.value) == null || T.validate(e.kgVarName);
8244
+ function b(p) {
8245
+ var m, y, T;
8246
+ p.target.checked ? _((y = (m = c.value) == null ? void 0 : m.map((k) => k[i.value])) != null ? y : []) : _([]), g.value = !1, (T = n.value) == null || T.validate(e.kgVarName);
8239
8247
  }
8240
8248
  function _(p) {
8241
8249
  r("update:value", p), r("kgChange", p);
@@ -8247,9 +8255,9 @@ const KgFormItemCheckboxGroup = defineComponent({
8247
8255
  }, [createVNode(Form.ItemRest, null, {
8248
8256
  default: () => [createVNode(Checkbox, {
8249
8257
  checked: d.value,
8250
- "onUpdate:checked": (b) => d.value = b,
8258
+ "onUpdate:checked": (y) => d.value = y,
8251
8259
  indeterminate: g.value,
8252
- onChange: y
8260
+ onChange: b
8253
8261
  }, _isSlot$c(p = a.t("kg.selectAll")) ? p : {
8254
8262
  default: () => [p]
8255
8263
  })]
@@ -8259,18 +8267,18 @@ const KgFormItemCheckboxGroup = defineComponent({
8259
8267
  }, {
8260
8268
  default: () => [createVNode(Row, {
8261
8269
  gutter: 12
8262
- }, _isSlot$c(m = c.value.map((b) => {
8270
+ }, _isSlot$c(m = c.value.map((y) => {
8263
8271
  var T, k;
8264
8272
  return createVNode(Col, {
8265
8273
  span: (k = (T = s.value) == null ? void 0 : T.span) != null ? k : 24
8266
8274
  }, {
8267
8275
  default: () => [createVNode(Checkbox, {
8268
- value: b[i.value],
8269
- "kg-value": b[i.value]
8276
+ value: y[i.value],
8277
+ "kg-value": y[i.value]
8270
8278
  }, {
8271
8279
  default: () => {
8272
8280
  var I, C;
8273
- return [b[(C = (I = l.value) == null ? void 0 : I.lbl_clm) != null ? C : ""]];
8281
+ return [y[(C = (I = l.value) == null ? void 0 : I.lbl_clm) != null ? C : ""]];
8274
8282
  }
8275
8283
  })]
8276
8284
  });
@@ -8428,9 +8436,9 @@ const KgFormItemRadioGroup = defineComponent({
8428
8436
  default: () => [createVNode(Row, {
8429
8437
  gutter: 12
8430
8438
  }, _isSlot$b(d = o.value.map((g) => {
8431
- var E, y;
8439
+ var E, b;
8432
8440
  return createVNode(Col, {
8433
- span: (y = (E = a.value) == null ? void 0 : E.span) != null ? y : 24
8441
+ span: (b = (E = a.value) == null ? void 0 : E.span) != null ? b : 24
8434
8442
  }, {
8435
8443
  default: () => [createVNode(Radio, {
8436
8444
  value: g[l.value],
@@ -8476,7 +8484,7 @@ const KgFormItemRadioGroup = defineComponent({
8476
8484
  switch (await g(), r("kgSelectDatasChange", d.value), e.kgMode) {
8477
8485
  case "multiple": {
8478
8486
  if (Array.isArray(e.value)) {
8479
- const m = e.value.filter((b) => d.value.find((T) => T[i.value] === b));
8487
+ const m = e.value.filter((y) => d.value.find((T) => T[i.value] === y));
8480
8488
  m.length > 0 ? r("update:value", m) : r("update:value", []);
8481
8489
  }
8482
8490
  break;
@@ -8486,8 +8494,8 @@ const KgFormItemRadioGroup = defineComponent({
8486
8494
  break;
8487
8495
  }
8488
8496
  }
8489
- function y(p) {
8490
- var m, b;
8497
+ function b(p) {
8498
+ var m, y;
8491
8499
  switch (e.kgMode) {
8492
8500
  case "multiple": {
8493
8501
  if (Array.isArray(p)) {
@@ -8500,7 +8508,7 @@ const KgFormItemRadioGroup = defineComponent({
8500
8508
  break;
8501
8509
  }
8502
8510
  default: {
8503
- const T = (b = toRaw(d.value.find((k) => k[i.value] === p))) != null ? b : null;
8511
+ const T = (y = toRaw(d.value.find((k) => k[i.value] === p))) != null ? y : null;
8504
8512
  r("kgSelectChange", T), s.store.emit(s.formID, "selectChange", {
8505
8513
  var_nam: e.kgVarName,
8506
8514
  rows: T
@@ -8525,10 +8533,10 @@ const KgFormItemRadioGroup = defineComponent({
8525
8533
  placeholder: e.kgPlaceholder,
8526
8534
  showArrow: !0,
8527
8535
  showSearch: !0,
8528
- filterOption: (m, b) => (b == null ? void 0 : b.value) !== null && (b == null ? void 0 : b.value) !== void 0 && String(b.value).toLowerCase().includes(m.toLowerCase()) || (b == null ? void 0 : b.label) !== null && (b == null ? void 0 : b.label) !== void 0 && String(b.label).toLowerCase().includes(m.toLowerCase()),
8536
+ filterOption: (m, y) => (y == null ? void 0 : y.value) !== null && (y == null ? void 0 : y.value) !== void 0 && String(y.value).toLowerCase().includes(m.toLowerCase()) || (y == null ? void 0 : y.label) !== null && (y == null ? void 0 : y.label) !== void 0 && String(y.label).toLowerCase().includes(m.toLowerCase()),
8529
8537
  dropdownClassName: e.kgMode === "multiple" ? "kg-form-item-select-dropdown kg-form-item-multi-select-dropdown" : "kg-form-item-select-dropdown",
8530
8538
  class: "kg-form-item-select",
8531
- onChange: y,
8539
+ onChange: b,
8532
8540
  "kg-value": e.value,
8533
8541
  "kg-cmd": (p = l.value) == null ? void 0 : p.cmd,
8534
8542
  "kg-val_clm": i.value,
@@ -8615,21 +8623,21 @@ const KgFormItem = defineComponent({
8615
8623
  value: $,
8616
8624
  values: P
8617
8625
  }) => {
8618
- var U;
8626
+ var G;
8619
8627
  switch (w) {
8620
8628
  case e.kgVarName:
8621
- D.value && (R ? D.value[e.kgVarName] = P : D.value[e.kgVarName] = $), (U = n.value) == null || U.validate([e.kgVarName]);
8629
+ D.value && (R ? D.value[e.kgVarName] = P : D.value[e.kgVarName] = $), (G = n.value) == null || G.validate([e.kgVarName]);
8622
8630
  break;
8623
8631
  }
8624
8632
  return !1;
8625
8633
  });
8626
8634
  const c = computed(() => l.store.getVarLookup(l.formID, e.kgVarName)), u = computed(() => l.store.getVarVariableConfig(l.formID, e.kgVarName)), d = computed(() => l.store.getVarProfileDetail(l.formID, e.kgVarName)), g = computed(() => l.store.getVarSubmitField(l.formID, e.kgVarName)), {
8627
8635
  rules: E,
8628
- isRulesLoading: y
8636
+ isRulesLoading: b
8629
8637
  } = _useRules(e), {
8630
8638
  controlType: _
8631
8639
  } = useKgFormItem(e), p = computed(() => {
8632
- var D, R, $, P, U;
8640
+ var D, R, $, P, G;
8633
8641
  if (l.isRetrieving.value)
8634
8642
  return !0;
8635
8643
  let w = !1;
@@ -8652,7 +8660,7 @@ const KgFormItem = defineComponent({
8652
8660
  w = ((P = g.value) == null ? void 0 : P.cpy_ena_flg) === 0;
8653
8661
  break;
8654
8662
  case l.isDeleting.value:
8655
- w = ((U = g.value) == null ? void 0 : U.del_ena_flg) === 0;
8663
+ w = ((G = g.value) == null ? void 0 : G.del_ena_flg) === 0;
8656
8664
  break;
8657
8665
  }
8658
8666
  break;
@@ -8673,8 +8681,8 @@ const KgFormItem = defineComponent({
8673
8681
  break;
8674
8682
  }
8675
8683
  return w;
8676
- }), b = computed(() => {
8677
- var D, R, $, P, U, N, x, Y, q, X;
8684
+ }), y = computed(() => {
8685
+ var D, R, $, P, G, N, x, Y, q, X;
8678
8686
  let w = 6;
8679
8687
  if (e.kgSpan !== void 0)
8680
8688
  w = e.kgSpan;
@@ -8689,7 +8697,7 @@ const KgFormItem = defineComponent({
8689
8697
  w = (P = ($ = g.value) == null ? void 0 : $.crt_width) != null ? P : 6;
8690
8698
  break;
8691
8699
  case l.isUpdating.value:
8692
- w = (N = (U = g.value) == null ? void 0 : U.upt_width) != null ? N : 6;
8700
+ w = (N = (G = g.value) == null ? void 0 : G.upt_width) != null ? N : 6;
8693
8701
  break;
8694
8702
  case l.isCopying.value:
8695
8703
  w = (Y = (x = g.value) == null ? void 0 : x.cpy_width) != null ? Y : 6;
@@ -8704,7 +8712,7 @@ const KgFormItem = defineComponent({
8704
8712
  VarSubmitField: g.value
8705
8713
  }), 6);
8706
8714
  }), T = computed(() => {
8707
- var D, R, $, P, U;
8715
+ var D, R, $, P, G;
8708
8716
  let w = null;
8709
8717
  if (e.kgSpan !== void 0)
8710
8718
  w = e.kgSpan;
@@ -8725,7 +8733,7 @@ const KgFormItem = defineComponent({
8725
8733
  w = (P = g.value) == null ? void 0 : P.cpy_width;
8726
8734
  break;
8727
8735
  case l.isDeleting.value:
8728
- w = (U = g.value) == null ? void 0 : U.del_width;
8736
+ w = (G = g.value) == null ? void 0 : G.del_width;
8729
8737
  break;
8730
8738
  }
8731
8739
  }
@@ -8807,7 +8815,7 @@ const KgFormItem = defineComponent({
8807
8815
  return w;
8808
8816
  }), V = computed(() => encodeURIComponent(`${e.kgContext}~${l.formID}~${e.kgVarName}`)), A = ref(null);
8809
8817
  function O() {
8810
- return y.value ? null : createVNode(Form.Item, {
8818
+ return b.value ? null : createVNode(Form.Item, {
8811
8819
  name: e.kgVarName,
8812
8820
  rules: E.value,
8813
8821
  validateFirst: !0,
@@ -8909,7 +8917,7 @@ const KgFormItem = defineComponent({
8909
8917
  let w;
8910
8918
  return l.isRetrieving.value ? null : createVNode(Col, {
8911
8919
  ref: A,
8912
- span: b.value,
8920
+ span: y.value,
8913
8921
  class: I.value,
8914
8922
  style: k.value,
8915
8923
  "kg-frm_id": l.formID,
@@ -9287,9 +9295,9 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
9287
9295
  }).bind(null, pinia())), store$5);
9288
9296
  function useKgSubmit(e) {
9289
9297
  const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
9290
- var p, m, b, T, k;
9298
+ var p, m, y, T, k;
9291
9299
  let i = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
9292
- const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (p = a.value) == null ? void 0 : p.display_type, g = (m = a.value) == null ? void 0 : m.crt_display_type, E = (b = a.value) == null ? void 0 : b.upt_display_type, y = (T = a.value) == null ? void 0 : T.cpy_display_type, _ = (k = a.value) == null ? void 0 : k.del_display_type;
9300
+ const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (p = a.value) == null ? void 0 : p.display_type, g = (m = a.value) == null ? void 0 : m.crt_display_type, E = (y = a.value) == null ? void 0 : y.upt_display_type, b = (T = a.value) == null ? void 0 : T.cpy_display_type, _ = (k = a.value) == null ? void 0 : k.del_display_type;
9293
9301
  switch (!0) {
9294
9302
  case (t.isCreating.value && (g === c || !g && d === c)):
9295
9303
  i = c;
@@ -9297,7 +9305,7 @@ function useKgSubmit(e) {
9297
9305
  case (t.isUpdating.value && (E === c || !E && d === c)):
9298
9306
  i = c;
9299
9307
  break;
9300
- case (t.isCopying.value && (y === c || !y && d === c)):
9308
+ case (t.isCopying.value && (b === c || !b && d === c)):
9301
9309
  i = c;
9302
9310
  break;
9303
9311
  case (t.isDeleting.value && (_ === c || !_)):
@@ -9311,7 +9319,7 @@ function useKgSubmit(e) {
9311
9319
  case (t.isUpdating.value && (E === u || !E && d === u)):
9312
9320
  i = u;
9313
9321
  break;
9314
- case (t.isCopying.value && (y === u || !y && d === u)):
9322
+ case (t.isCopying.value && (b === u || !b && d === u)):
9315
9323
  i = u;
9316
9324
  break;
9317
9325
  }
@@ -9361,8 +9369,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9361
9369
  }) => {
9362
9370
  const u = s.store.getVarSubmitConfig(s.formID);
9363
9371
  return o = watch(c, (d) => {
9364
- var g, E, y, _, p, m, b, T, k, I, C, V;
9365
- d && (d.id = (g = u == null ? void 0 : u.id) != null ? g : null, d.frm_id = s.formID, d.resizable_flg = (E = u == null ? void 0 : u.resizable_flg) != null ? E : 1, d.fullscreen_flg = (y = u == null ? void 0 : u.fullscreen_flg) != null ? y : 1, d.dft_fullscreen_flg = (_ = u == null ? void 0 : u.dft_fullscreen_flg) != null ? _ : 0, d.responsive_flg = (p = u == null ? void 0 : u.responsive_flg) != null ? p : 1, d.max_width = (m = u == null ? void 0 : u.max_width) != null ? m : DEFAULT_MAX_WIDTH, d.min_width = (b = u == null ? void 0 : u.min_width) != null ? b : DEFAULT_MIN_WIDTH, d.dft_width = (T = u == null ? void 0 : u.dft_width) != null ? T : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (I = u == null ? void 0 : u.label_col) != null ? I : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (C = u == null ? void 0 : u.label_col_unit) != null ? C : KG_WIDTH_UNIT.SPAN, d.display_type = (V = u == null ? void 0 : u.display_type) != null ? V : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
9372
+ var g, E, b, _, p, m, y, T, k, I, C, V;
9373
+ d && (d.id = (g = u == null ? void 0 : u.id) != null ? g : null, d.frm_id = s.formID, d.resizable_flg = (E = u == null ? void 0 : u.resizable_flg) != null ? E : 1, d.fullscreen_flg = (b = u == null ? void 0 : u.fullscreen_flg) != null ? b : 1, d.dft_fullscreen_flg = (_ = u == null ? void 0 : u.dft_fullscreen_flg) != null ? _ : 0, d.responsive_flg = (p = u == null ? void 0 : u.responsive_flg) != null ? p : 1, d.max_width = (m = u == null ? void 0 : u.max_width) != null ? m : DEFAULT_MAX_WIDTH, d.min_width = (y = u == null ? void 0 : u.min_width) != null ? y : DEFAULT_MIN_WIDTH, d.dft_width = (T = u == null ? void 0 : u.dft_width) != null ? T : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (I = u == null ? void 0 : u.label_col) != null ? I : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (C = u == null ? void 0 : u.label_col_unit) != null ? C : KG_WIDTH_UNIT.SPAN, d.display_type = (V = u == null ? void 0 : u.display_type) != null ? V : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
9366
9374
  }, {
9367
9375
  immediate: !0
9368
9376
  }), KgUtil.hideLoading(), !1;
@@ -9411,7 +9419,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9411
9419
  function E() {
9412
9420
  r("kgCancel");
9413
9421
  }
9414
- function y() {
9422
+ function b() {
9415
9423
  var m;
9416
9424
  return e.kgShowFullscreenButton === !1 || ((m = o.value) == null ? void 0 : m.fullscreen_flg) === 0 ? null : createVNode(Button, {
9417
9425
  onClick: d,
@@ -9440,7 +9448,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
9440
9448
  default: () => [createVNode(CloseOutlined$1, null, null)]
9441
9449
  });
9442
9450
  }
9443
- return () => createVNode(Fragment, null, [_(), y(), p()]);
9451
+ return () => createVNode(Fragment, null, [_(), b(), p()]);
9444
9452
  }
9445
9453
  }), DEFAULT_MIN_WIDTH = 300, DEFAULT_MAX_WIDTH = 1182, DEFAULT_WIDTH = 594, DEFAULT_LAYOUT = "vertical", DEFAULT_LABEL_COL_FOR_SPAN = 4, DEFAULT_LABEL_COL_FOR_PX = 100;
9446
9454
  function _useFormModel$1() {
@@ -9465,8 +9473,8 @@ function _useFormModel$1() {
9465
9473
  }
9466
9474
  const d = r.selectedRow.value;
9467
9475
  u.forEach((g) => {
9468
- var y, _, p, m, b, T, k, I;
9469
- const E = (y = g.var_nam) != null ? y : "";
9476
+ var b, _, p, m, y, T, k, I;
9477
+ const E = (b = g.var_nam) != null ? b : "";
9470
9478
  switch (c.value[E] = void 0, !0) {
9471
9479
  case t.isCreating.value: {
9472
9480
  c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (_ = g.crt_dft_val) != null ? _ : void 0, "C");
@@ -9477,7 +9485,7 @@ function _useFormModel$1() {
9477
9485
  break;
9478
9486
  }
9479
9487
  case t.isCopying.value: {
9480
- c.value.id = d == null ? void 0 : d.id, c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (T = (b = g.cpy_dft_val) != null ? b : d == null ? void 0 : d[E]) != null ? T : void 0, "CP");
9488
+ c.value.id = d == null ? void 0 : d.id, c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (T = (y = g.cpy_dft_val) != null ? y : d == null ? void 0 : d[E]) != null ? T : void 0, "CP");
9481
9489
  break;
9482
9490
  }
9483
9491
  case t.isDeleting.value: {
@@ -9553,9 +9561,9 @@ function _useClass(e, t) {
9553
9561
  const r = inject(DI_KG_VAR__KG_PROPS, null), a = useKgVar(), n = useKgSubmit(), s = computed(() => a.store.getVarSubmitConfig(a.formID)), l = computed(() => a.store.getVarSubmitFieldsForDeleteKey(a.formID));
9554
9562
  return {
9555
9563
  getClass: computed(() => {
9556
- var c, u, d, g, E, y, _;
9564
+ var c, u, d, g, E, b, _;
9557
9565
  let i = "kg-submit";
9558
- return t.isFullscreen && (i += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (i += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? i += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (i += " kg-submit--table"), a.isDeleting.value && ((d = (u = l.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (i += " kg-submit--delete-message"), (E = (g = r == null ? void 0 : r.value) == null ? void 0 : g.KgSubmit) != null && E.kgClass ? i += ` ${(_ = (y = r == null ? void 0 : r.value) == null ? void 0 : y.KgSubmit) == null ? void 0 : _.kgClass}` : e.kgClass && (i += ` ${e.kgClass}`), i;
9566
+ return t.isFullscreen && (i += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (i += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? i += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (i += " kg-submit--table"), a.isDeleting.value && ((d = (u = l.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (i += " kg-submit--delete-message"), (E = (g = r == null ? void 0 : r.value) == null ? void 0 : g.KgSubmit) != null && E.kgClass ? i += ` ${(_ = (b = r == null ? void 0 : r.value) == null ? void 0 : b.KgSubmit) == null ? void 0 : _.kgClass}` : e.kgClass && (i += ` ${e.kgClass}`), i;
9559
9567
  })
9560
9568
  };
9561
9569
  }
@@ -9627,16 +9635,16 @@ const getProps$p = () => ({
9627
9635
  setup(e, {
9628
9636
  attrs: t
9629
9637
  }) {
9630
- var ue, Ce, ke;
9638
+ var Ce, ke, Me;
9631
9639
  const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
9632
9640
  inject(DI_KG_VAR__KG_PROPS, null);
9633
9641
  const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
9634
- l.onSubmitSave(async () => (await le(), !1)), l.onSubmitCancel(async () => (await te(), !1)), _useFormModel$1();
9635
- const u = computed(() => s.isDeleting.value && M.value.length === 0 && L.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), g = 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)), p = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), m = 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)), I = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), V = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), O = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), M = computed(() => {
9636
- var G, W, Z;
9642
+ l.onSubmitSave(async () => (await ie(), !1)), l.onSubmitCancel(async () => (await ue(), !1)), _useFormModel$1();
9643
+ const u = computed(() => s.isDeleting.value && M.value.length === 0 && L.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), g = computed(() => s.store.getVarSubmitConfig(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), p = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), m = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), y = 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)), V = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), O = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), M = computed(() => {
9644
+ var B, W, Z;
9637
9645
  switch (!0) {
9638
9646
  case s.isCreating.value:
9639
- return (G = E.value) != null ? G : [];
9647
+ return (B = E.value) != null ? B : [];
9640
9648
  case s.isUpdating.value:
9641
9649
  return (W = _.value) != null ? W : [];
9642
9650
  case s.isCopying.value:
@@ -9646,10 +9654,10 @@ const getProps$p = () => ({
9646
9654
  }
9647
9655
  return [];
9648
9656
  }), K = computed(() => {
9649
- var G, W, Z;
9657
+ var B, W, Z;
9650
9658
  switch (!0) {
9651
9659
  case s.isCreating.value:
9652
- return (G = T.value) != null ? G : [];
9660
+ return (B = T.value) != null ? B : [];
9653
9661
  case s.isUpdating.value:
9654
9662
  return (W = I.value) != null ? W : [];
9655
9663
  case s.isCopying.value:
@@ -9659,23 +9667,23 @@ const getProps$p = () => ({
9659
9667
  }
9660
9668
  return [];
9661
9669
  }), L = computed(() => {
9662
- var G, W, Z, re;
9670
+ var B, W, Z, re;
9663
9671
  switch (!0) {
9664
9672
  case s.isCreating.value:
9665
- return (G = y.value) != null ? G : [];
9673
+ return (B = b.value) != null ? B : [];
9666
9674
  case s.isUpdating.value:
9667
9675
  return (W = p.value) != null ? W : [];
9668
9676
  case s.isCopying.value:
9669
- return (Z = b.value) != null ? Z : [];
9677
+ return (Z = y.value) != null ? Z : [];
9670
9678
  case s.isDeleting.value:
9671
9679
  return (re = O.value) != null ? re : [];
9672
9680
  }
9673
9681
  return [];
9674
9682
  }), H = computed(() => {
9675
- var G, W, Z, re;
9683
+ var B, W, Z, re;
9676
9684
  switch (!0) {
9677
9685
  case s.isCreating.value:
9678
- return (G = k.value) != null ? G : [];
9686
+ return (B = k.value) != null ? B : [];
9679
9687
  case s.isUpdating.value:
9680
9688
  return (W = C.value) != null ? W : [];
9681
9689
  case s.isCopying.value:
@@ -9687,29 +9695,29 @@ const getProps$p = () => ({
9687
9695
  }), 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), R = computed(() => d.value), $ = ref({
9688
9696
  kgWidth: 0
9689
9697
  }), P = computed(() => {
9690
- var G;
9691
- return !!(u.value || ee.isFullscreen || ((G = g.value) == null ? void 0 : G.resizable_flg) === 0);
9692
- }), U = computed(() => {
9693
- var G, W;
9694
- return u.value ? 398 : (W = (G = g.value) == null ? void 0 : G.min_width) != null ? W : DEFAULT_MIN_WIDTH;
9698
+ var B;
9699
+ return !!(u.value || ee.isFullscreen || ((B = g.value) == null ? void 0 : B.resizable_flg) === 0);
9700
+ }), G = computed(() => {
9701
+ var B, W;
9702
+ return u.value ? 398 : (W = (B = g.value) == null ? void 0 : B.min_width) != null ? W : DEFAULT_MIN_WIDTH;
9695
9703
  }), N = computed(() => {
9696
- var G, W;
9697
- return u.value ? 398 : (W = (G = g.value) == null ? void 0 : G.max_width) != null ? W : DEFAULT_MAX_WIDTH;
9704
+ var B, W;
9705
+ return u.value ? 398 : (W = (B = g.value) == null ? void 0 : B.max_width) != null ? W : DEFAULT_MAX_WIDTH;
9698
9706
  }), x = computed(() => u.value ? 398 : $.value.kgWidth), Y = ref(null);
9699
9707
  _useResizeObserver$1(Y);
9700
9708
  const q = _useTitle(), X = computed(() => u.value ? 400 : $.value.kgWidth && $.value.kgWidth > 0 ? "auto" : 0), J = computed(() => X.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), ee = reactive({
9701
9709
  isFullscreen: !1
9702
9710
  }), {
9703
- getClass: ie
9711
+ getClass: le
9704
9712
  } = _useClass(e, ee), {
9705
9713
  getLayout: me
9706
9714
  } = _useLayout(), {
9707
9715
  getDefaultWidth: ge
9708
9716
  } = _useDefaultWidth(), ae = computed(() => {
9709
- var G, W, Z;
9717
+ var B, W, Z;
9710
9718
  switch (me.value) {
9711
9719
  case "horizontal":
9712
- switch ((G = g.value) == null ? void 0 : G.label_col_unit) {
9720
+ switch ((B = g.value) == null ? void 0 : B.label_col_unit) {
9713
9721
  case KG_WIDTH_UNIT.SPAN:
9714
9722
  return {
9715
9723
  span: (W = g.value) == null ? void 0 : W.label_col
@@ -9725,10 +9733,10 @@ const getProps$p = () => ({
9725
9733
  return;
9726
9734
  }
9727
9735
  }), F = computed(() => {
9728
- var G, W;
9736
+ var B, W;
9729
9737
  switch (me.value) {
9730
9738
  case "horizontal":
9731
- switch ((G = g.value) == null ? void 0 : G.label_col_unit) {
9739
+ switch ((B = g.value) == null ? void 0 : B.label_col_unit) {
9732
9740
  case KG_WIDTH_UNIT.SPAN:
9733
9741
  return {
9734
9742
  span: 24 - ((W = g.value) == null ? void 0 : W.label_col)
@@ -9739,24 +9747,37 @@ const getProps$p = () => ({
9739
9747
  default:
9740
9748
  return;
9741
9749
  }
9742
- }), B = computed(() => i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL && !ee.isFullscreen);
9743
- ((ke = (Ce = (ue = n.option.value) == null ? void 0 : ue.KgModal) == null ? void 0 : Ce.drag) == null ? void 0 : ke.on) === !0 && useKgDragModal({
9750
+ }), U = computed(() => {
9751
+ const B = s.store.getVarSubmitConfigProps(s.formID);
9752
+ switch (!0) {
9753
+ case s.isCreating.value:
9754
+ return B["footer.ok-button.text-var-name.creating"] ? s.t(B["footer.ok-button.text-var-name.creating"]).value : n.t("kg.save");
9755
+ case s.isUpdating.value:
9756
+ return B["footer.ok-button.text-var-name.updating"] ? s.t(B["footer.ok-button.text-var-name.updating"]).value : n.t("kg.save");
9757
+ case s.isCopying.value:
9758
+ return B["footer.ok-button.text-var-name.copying"] ? s.t(B["footer.ok-button.text-var-name.copying"]).value : n.t("kg.save");
9759
+ case s.isDeleting.value:
9760
+ return B["footer.ok-button.text-var-name.deleting"] ? s.t(B["footer.ok-button.text-var-name.deleting"]).value : n.t("kg.delete");
9761
+ }
9762
+ return n.t("kg.save");
9763
+ }), Q = computed(() => i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL && !ee.isFullscreen);
9764
+ ((Me = (ke = (Ce = n.option.value) == null ? void 0 : Ce.KgModal) == null ? void 0 : ke.drag) == null ? void 0 : Me.on) === !0 && useKgDragModal({
9744
9765
  visible: J,
9745
- draggable: B,
9766
+ draggable: Q,
9746
9767
  destroyOnClose: ref(!0),
9747
9768
  containerElementSelector: ".ant-drawer-content-wrapper",
9748
9769
  handleElementSelector: ".ant-drawer-header",
9749
9770
  contentElementSelector: ".ant-drawer-content-wrapper"
9750
- }), watch(J, (G, W) => {
9751
- G === !0 && Q(), W === !0 && G === !1 && z();
9771
+ }), watch(J, (B, W) => {
9772
+ B === !0 && z(), W === !0 && B === !1 && te();
9752
9773
  }, {
9753
9774
  immediate: !0
9754
- }), watch(ge, (G) => {
9755
- G && ($.value.kgWidth = G);
9775
+ }), watch(ge, (B) => {
9776
+ B && ($.value.kgWidth = B);
9756
9777
  }, {
9757
9778
  immediate: !0
9758
9779
  });
9759
- async function Q() {
9780
+ async function z() {
9760
9781
  if (!await i.store.emit(s.formID, "beforeOpen", {
9761
9782
  isCreating: s.isCreating.value,
9762
9783
  isUpdating: s.isUpdating.value,
@@ -9781,10 +9802,10 @@ const getProps$p = () => ({
9781
9802
  ((se = g.value) == null ? void 0 : se.dft_fullscreen_flg) === 1 && !u.value && (ee.isFullscreen = !0);
9782
9803
  });
9783
9804
  }
9784
- async function z() {
9805
+ async function te() {
9785
9806
  $.value.kgWidth = ge.value, ee.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
9786
9807
  }
9787
- function te() {
9808
+ function ue() {
9788
9809
  switch (!0) {
9789
9810
  case s.isCreating.value:
9790
9811
  s.store.setIsCreating(s.formID, !1);
@@ -9800,8 +9821,8 @@ const getProps$p = () => ({
9800
9821
  break;
9801
9822
  }
9802
9823
  }
9803
- async function le() {
9804
- var G, W;
9824
+ async function ie() {
9825
+ var B, W;
9805
9826
  try {
9806
9827
  if (await i.store.emit(s.formID, "beforeOk", {
9807
9828
  isCreating: s.isCreating.value,
@@ -9814,7 +9835,7 @@ const getProps$p = () => ({
9814
9835
  }))
9815
9836
  return;
9816
9837
  try {
9817
- await ((G = i.formRef.value) == null ? void 0 : G.validate());
9838
+ await ((B = i.formRef.value) == null ? void 0 : B.validate());
9818
9839
  } catch (se) {
9819
9840
  KgUtil.throwIfNotFormError(se);
9820
9841
  }
@@ -9833,13 +9854,13 @@ const getProps$p = () => ({
9833
9854
  await fe();
9834
9855
  break;
9835
9856
  case s.isUpdating.value:
9836
- await pe();
9857
+ await he();
9837
9858
  break;
9838
9859
  case s.isCopying.value:
9839
- await he();
9860
+ await Se();
9840
9861
  break;
9841
9862
  case s.isDeleting.value:
9842
- await Ee();
9863
+ await ve();
9843
9864
  break;
9844
9865
  }
9845
9866
  } catch (Z) {
@@ -9848,8 +9869,8 @@ const getProps$p = () => ({
9848
9869
  }
9849
9870
  async function fe() {
9850
9871
  var W, Z, re, se, oe, ce;
9851
- const G = (W = s.varButtonCreate.value) == null ? void 0 : W.cmd;
9852
- if (!G) {
9872
+ const B = (W = s.varButtonCreate.value) == null ? void 0 : W.cmd;
9873
+ if (!B) {
9853
9874
  KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
9854
9875
  VarButton: s.varButtonCreate.value
9855
9876
  });
@@ -9872,7 +9893,7 @@ const getProps$p = () => ({
9872
9893
  return;
9873
9894
  await httpClient().request({
9874
9895
  method: (oe = (se = s.varButtonCreate.value) == null ? void 0 : se.cmd_method) != null ? oe : "POST",
9875
- url: G,
9896
+ url: B,
9876
9897
  params: ne.value,
9877
9898
  data: de.value
9878
9899
  }), ((ce = s.varButtonCreate.value) == null ? void 0 : ce.show_success_message_flg) !== 0 && message.success(q.title.value + n.t("kg.succeed")), await i.store.emit(s.formID, "ok", {
@@ -9891,10 +9912,10 @@ const getProps$p = () => ({
9891
9912
  s.store.setIsCreatingRequesting(s.formID, !1);
9892
9913
  }
9893
9914
  }
9894
- async function pe() {
9915
+ async function he() {
9895
9916
  var W, Z, re, se, oe, ce;
9896
- const G = (W = s.varButtonUpdate.value) == null ? void 0 : W.cmd;
9897
- if (!G) {
9917
+ const B = (W = s.varButtonUpdate.value) == null ? void 0 : W.cmd;
9918
+ if (!B) {
9898
9919
  KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
9899
9920
  VarButton: s.varButtonUpdate.value
9900
9921
  });
@@ -9917,7 +9938,7 @@ const getProps$p = () => ({
9917
9938
  return;
9918
9939
  await httpClient().request({
9919
9940
  method: (oe = (se = s.varButtonUpdate.value) == null ? void 0 : se.cmd_method) != null ? oe : "POST",
9920
- url: G,
9941
+ url: B,
9921
9942
  params: ne.value,
9922
9943
  data: de.value
9923
9944
  }), ((ce = s.varButtonUpdate.value) == null ? void 0 : ce.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await i.store.emit(s.formID, "ok", {
@@ -9936,10 +9957,10 @@ const getProps$p = () => ({
9936
9957
  s.store.setIsUpdatingRequesting(s.formID, !1);
9937
9958
  }
9938
9959
  }
9939
- async function he() {
9960
+ async function Se() {
9940
9961
  var W, Z, re, se, oe, ce, ne, de;
9941
- const G = (W = s.varButtonCopy.value) == null ? void 0 : W.cmd;
9942
- if (!G) {
9962
+ const B = (W = s.varButtonCopy.value) == null ? void 0 : W.cmd;
9963
+ if (!B) {
9943
9964
  KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
9944
9965
  VarButton: s.varButtonCopy.value
9945
9966
  });
@@ -9947,11 +9968,11 @@ const getProps$p = () => ({
9947
9968
  }
9948
9969
  try {
9949
9970
  s.store.setIsCopyingRequesting(s.formID, !0);
9950
- let _e = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonCopy.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), ye = ref(KgUtil.parseParams({
9971
+ let _e = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonCopy.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), Ee = ref(KgUtil.parseParams({
9951
9972
  ...(se = o.selectedFirstRow.value) != null ? se : {},
9952
9973
  ...toRaw(i.model.value)
9953
9974
  }, s.formID, r));
9954
- if (((oe = g.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete ye.value.id, await i.store.emit(s.formID, "beforeRequest", {
9975
+ if (((oe = g.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete Ee.value.id, await i.store.emit(s.formID, "beforeRequest", {
9955
9976
  isCreating: s.isCreating.value,
9956
9977
  isUpdating: s.isUpdating.value,
9957
9978
  isCopying: s.isCopying.value,
@@ -9960,14 +9981,14 @@ const getProps$p = () => ({
9960
9981
  rows: o.selectedRows.value,
9961
9982
  model: i.model,
9962
9983
  params: _e,
9963
- data: ye
9984
+ data: Ee
9964
9985
  }))
9965
9986
  return;
9966
9987
  await httpClient().request({
9967
9988
  method: (ne = (ce = s.varButtonCopy.value) == null ? void 0 : ce.cmd_method) != null ? ne : "POST",
9968
- url: G,
9989
+ url: B,
9969
9990
  params: _e.value,
9970
- data: ye.value
9991
+ data: Ee.value
9971
9992
  }), ((de = s.varButtonCopy.value) == null ? void 0 : de.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), await i.store.emit(s.formID, "ok", {
9972
9993
  isCreating: s.isCreating.value,
9973
9994
  isUpdating: s.isUpdating.value,
@@ -9984,10 +10005,10 @@ const getProps$p = () => ({
9984
10005
  s.store.setIsCopyingRequesting(s.formID, !1);
9985
10006
  }
9986
10007
  }
9987
- async function Ee() {
9988
- var W, Z, re, se, oe, ce, ne, de, _e, ye;
9989
- const G = (W = s.varButtonDelete.value) == null ? void 0 : W.cmd;
9990
- if (!G) {
10008
+ async function ve() {
10009
+ var W, Z, re, se, oe, ce, ne, de, _e, Ee;
10010
+ const B = (W = s.varButtonDelete.value) == null ? void 0 : W.cmd;
10011
+ if (!B) {
9991
10012
  KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
9992
10013
  VarButton: s.varButtonDelete.value
9993
10014
  });
@@ -9995,13 +10016,13 @@ const getProps$p = () => ({
9995
10016
  }
9996
10017
  try {
9997
10018
  s.store.setIsDeletingRequesting(s.formID, !0);
9998
- let Te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonDelete.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), Ie = ref((se = o.selectedRows.value) != null ? se : []);
10019
+ let Te = 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 : []);
9999
10020
  if (((oe = s.varButtonDelete.value) == null ? void 0 : oe.del_param_clm) !== "__kg__new_delete_param" && (Te = ref({
10000
- ids: (ne = (ce = o.selectedRows.value) == null ? void 0 : ce.map((Re) => {
10001
- var we, De, Oe;
10002
- return (Oe = Re[(De = (we = s.varButtonDelete.value) == null ? void 0 : we.del_param_clm) != null ? De : "id"]) != null ? Oe : "";
10021
+ ids: (ne = (ce = o.selectedRows.value) == null ? void 0 : ce.map((Ve) => {
10022
+ var De, Oe, Re;
10023
+ return (Re = Ve[(Oe = (De = s.varButtonDelete.value) == null ? void 0 : De.del_param_clm) != null ? Oe : "id"]) != null ? Re : "";
10003
10024
  })) != null ? ne : []
10004
- }), Ie = ref({})), await i.store.emit(s.formID, "beforeRequest", {
10025
+ }), we = ref({})), await i.store.emit(s.formID, "beforeRequest", {
10005
10026
  isCreating: s.isCreating.value,
10006
10027
  isUpdating: s.isUpdating.value,
10007
10028
  isCopying: s.isCopying.value,
@@ -10010,17 +10031,17 @@ const getProps$p = () => ({
10010
10031
  rows: o.selectedRows.value,
10011
10032
  model: i.model,
10012
10033
  params: Te,
10013
- data: Ie
10034
+ data: we
10014
10035
  }))
10015
10036
  return;
10016
10037
  await httpClient().request({
10017
10038
  method: (_e = (de = s.varButtonDelete.value) == null ? void 0 : de.cmd_method) != null ? _e : "DELETE",
10018
- url: G,
10039
+ url: B,
10019
10040
  params: Te.value,
10020
- data: Ie.value
10041
+ data: we.value
10021
10042
  }, {
10022
10043
  joinParamsToUrl: !0
10023
- }), ((ye = s.varButtonDelete.value) == null ? void 0 : ye.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), await l.store.emit(s.formID, "deleteOk", {
10044
+ }), ((Ee = s.varButtonDelete.value) == null ? void 0 : Ee.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), await l.store.emit(s.formID, "deleteOk", {
10024
10045
  button: s.varButtonDelete.value,
10025
10046
  rows: o.selectedRows.value
10026
10047
  }), await i.store.emit(s.formID, "ok", {
@@ -10039,14 +10060,14 @@ const getProps$p = () => ({
10039
10060
  s.store.setIsDeletingRequesting(s.formID, !1);
10040
10061
  }
10041
10062
  }
10042
- function ve(G) {
10063
+ function be(B) {
10043
10064
  var Z, re;
10044
- const W = (re = (Z = a == null ? void 0 : a.KgSubmit) == null ? void 0 : Z["KgForm.Item"]) == null ? void 0 : re[G.var_nam];
10065
+ const W = (re = (Z = a == null ? void 0 : a.KgSubmit) == null ? void 0 : Z["KgForm.Item"]) == null ? void 0 : re[B.var_nam];
10045
10066
  return isFunction$2(W) ? createVNode(KgForm.Item, {
10046
- kgVarName: G.var_nam,
10067
+ kgVarName: B.var_nam,
10047
10068
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10048
- kgRules: i.rules.value[G.var_nam],
10049
- onKgSubmit: le
10069
+ kgRules: i.rules.value[B.var_nam],
10070
+ onKgSubmit: ie
10050
10071
  }, {
10051
10072
  control: ({
10052
10073
  frm_id: se,
@@ -10055,7 +10076,7 @@ const getProps$p = () => ({
10055
10076
  model: ne,
10056
10077
  varVariableConfig: de,
10057
10078
  varProfileDetail: _e,
10058
- varSubmitField: ye
10079
+ varSubmitField: Ee
10059
10080
  }) => W({
10060
10081
  frm_id: se,
10061
10082
  varName: oe,
@@ -10063,20 +10084,20 @@ const getProps$p = () => ({
10063
10084
  model: ne,
10064
10085
  varVariableConfig: de,
10065
10086
  varProfileDetail: _e,
10066
- varSubmitField: ye
10087
+ varSubmitField: Ee
10067
10088
  })
10068
10089
  }) : createVNode(KgForm.Item, {
10069
- kgVarName: G.var_nam,
10090
+ kgVarName: B.var_nam,
10070
10091
  kgContext: KG_FORM_CONTEXT.SUBMIT,
10071
- kgRules: i.rules.value[G.var_nam],
10072
- onKgSubmit: le
10092
+ kgRules: i.rules.value[B.var_nam],
10093
+ onKgSubmit: ie
10073
10094
  }, null);
10074
10095
  }
10075
- function Se() {
10076
- let G, W;
10096
+ function ye() {
10097
+ let B, W;
10077
10098
  return createVNode(KgResizable, {
10078
10099
  kgType: i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
10079
- kgMinWidth: U.value,
10100
+ kgMinWidth: G.value,
10080
10101
  kgMaxWidth: N.value,
10081
10102
  kgWidth: x.value,
10082
10103
  kgDisabled: P.value,
@@ -10096,11 +10117,11 @@ const getProps$p = () => ({
10096
10117
  ref: Y
10097
10118
  }, [M.value.length > 0 && createVNode(Row, {
10098
10119
  gutter: 12
10099
- }, _isSlot$9(G = M.value.map(ve)) ? G : {
10100
- default: () => [G]
10120
+ }, _isSlot$9(B = M.value.map(be)) ? B : {
10121
+ default: () => [B]
10101
10122
  }), K.value.length > 0 && H.value.length > 0 && createVNode(Divider, null, null), L.value.length > 0 && createVNode(Row, {
10102
10123
  gutter: 12
10103
- }, _isSlot$9(W = L.value.map(ve)) ? W : {
10124
+ }, _isSlot$9(W = L.value.map(be)) ? W : {
10104
10125
  default: () => [W]
10105
10126
  }), u.value && createVNode("div", {
10106
10127
  style: "text-align: center; padding: 6px 0 12px;"
@@ -10109,41 +10130,41 @@ const getProps$p = () => ({
10109
10130
  })]
10110
10131
  });
10111
10132
  }
10112
- function be() {
10113
- let G, W;
10133
+ function Ae() {
10134
+ let B;
10114
10135
  return createVNode("div", null, [createVNode(Button, {
10115
10136
  type: "primary",
10116
10137
  ghost: !D.value,
10117
10138
  disabled: D.value,
10118
- onClick: te
10119
- }, _isSlot$9(G = n.t("kg.cancel")) ? G : {
10120
- default: () => [G]
10139
+ onClick: ue
10140
+ }, _isSlot$9(B = n.t("kg.cancel")) ? B : {
10141
+ default: () => [B]
10121
10142
  }), createVNode(Button, {
10122
10143
  type: "primary",
10123
10144
  disabled: R.value,
10124
10145
  loading: w.value,
10125
10146
  danger: !!s.isDeleting.value,
10126
- onClick: le
10127
- }, _isSlot$9(W = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? W : {
10128
- default: () => [W]
10147
+ onClick: ie
10148
+ }, {
10149
+ default: () => [U.value]
10129
10150
  })]);
10130
10151
  }
10131
- function Ae() {
10152
+ function Ie() {
10132
10153
  return createVNode("div", {
10133
10154
  title: q.title.value
10134
10155
  }, [q.title.value]);
10135
10156
  }
10136
- function Me() {
10157
+ function pe() {
10137
10158
  return createVNode(KgSubmitHeader, {
10138
10159
  isFullscreen: ee.isFullscreen,
10139
- "onUpdate:isFullscreen": (G) => ee.isFullscreen = G,
10160
+ "onUpdate:isFullscreen": (B) => ee.isFullscreen = B,
10140
10161
  kgShowFullscreenButton: !u.value,
10141
10162
  kgShowConfigButton: !u.value && e.kgShowConfigButton,
10142
- onKgCancel: te
10163
+ onKgCancel: ue
10143
10164
  }, null);
10144
10165
  }
10145
10166
  return onUnmounted(async () => {
10146
- await z();
10167
+ await te();
10147
10168
  }), () => createVNode(Drawer, {
10148
10169
  visible: J.value,
10149
10170
  placement: "right",
@@ -10152,13 +10173,13 @@ const getProps$p = () => ({
10152
10173
  keyboard: !1,
10153
10174
  destroyOnClose: !0,
10154
10175
  width: X.value,
10155
- class: ie.value,
10176
+ class: le.value,
10156
10177
  "kg-frm_id": s.formID
10157
10178
  }, {
10158
- title: Ae,
10159
- extra: Me,
10160
- default: Se,
10161
- footer: be
10179
+ title: Ie,
10180
+ extra: pe,
10181
+ default: ye,
10182
+ footer: Ae
10162
10183
  });
10163
10184
  }
10164
10185
  });
@@ -10446,7 +10467,7 @@ function useKgTable(e) {
10446
10467
  }), E = computed(() => {
10447
10468
  var p, m;
10448
10469
  return JSON.parse((m = (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opts) != null ? m : "[]");
10449
- }), y = computed(() => {
10470
+ }), b = computed(() => {
10450
10471
  var p;
10451
10472
  return (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opt;
10452
10473
  }), _ = computed(() => {
@@ -10467,7 +10488,7 @@ function useKgTable(e) {
10467
10488
  isShowBottomRight: d,
10468
10489
  id: g,
10469
10490
  pageSizeOptions: E,
10470
- pageSizeOption: y,
10491
+ pageSizeOption: b,
10471
10492
  profileFormID: _,
10472
10493
  onReady: onEventFactory(t.formID, r, "ready"),
10473
10494
  onRowDoubleClick: onEventFactory(t.formID, r, "rowDoubleClick"),
@@ -11148,6 +11169,7 @@ class VarSubmitConfig {
11148
11169
  v(this, "layout");
11149
11170
  v(this, "max_width");
11150
11171
  v(this, "min_width");
11172
+ v(this, "props");
11151
11173
  v(this, "resizable_flg");
11152
11174
  v(this, "responsive_flg");
11153
11175
  v(this, "upt_dft_width");
@@ -11184,6 +11206,7 @@ class VarSubmitConfig {
11184
11206
  case "layout":
11185
11207
  case "max_width":
11186
11208
  case "min_width":
11209
+ case "props":
11187
11210
  case "resizable_flg":
11188
11211
  case "responsive_flg":
11189
11212
  case "upt_dft_width":
@@ -11412,8 +11435,8 @@ const KgTable_Setting = "", FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig",
11412
11435
  }) => {
11413
11436
  const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
11414
11437
  return l = watch(i, (u) => {
11415
- var d, g, E, y, _, p, m, b, T, k, I;
11416
- u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (g = c == null ? void 0 : c.aut_load_flg) != null ? g : 0, u.mult_flg = (E = c == null ? void 0 : c.mult_flg) != null ? E : 0, u.show_check_column_flg = (y = c == null ? void 0 : c.show_check_column_flg) != null ? y : 0, u.show_bottom_left_flg = (_ = c == null ? void 0 : c.show_bottom_left_flg) != null ? _ : 1, u.show_bottom_right_flg = (p = c == null ? void 0 : c.show_bottom_right_flg) != null ? p : 1, u.convert_sort_field_to_under_score_flg = (m = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? m : 0, u.pg_size_opts = (b = c == null ? void 0 : c.pg_size_opts) != null ? b : "[10, 20, 50, 100]", u.pg_size_opt = (T = c == null ? void 0 : c.pg_size_opt) != null ? T : 10, u.cmd_prm = (k = c == null ? void 0 : c.cmd_prm) != null ? k : void 0, u.button_display_type = (I = c == null ? void 0 : c.button_display_type) != null ? I : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
11438
+ var d, g, E, b, _, p, m, y, T, k, I;
11439
+ u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (g = c == null ? void 0 : c.aut_load_flg) != null ? g : 0, u.mult_flg = (E = c == null ? void 0 : c.mult_flg) != null ? E : 0, u.show_check_column_flg = (b = c == null ? void 0 : c.show_check_column_flg) != null ? b : 0, u.show_bottom_left_flg = (_ = c == null ? void 0 : c.show_bottom_left_flg) != null ? _ : 1, u.show_bottom_right_flg = (p = c == null ? void 0 : c.show_bottom_right_flg) != null ? p : 1, u.convert_sort_field_to_under_score_flg = (m = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? m : 0, u.pg_size_opts = (y = c == null ? void 0 : c.pg_size_opts) != null ? y : "[10, 20, 50, 100]", u.pg_size_opt = (T = c == null ? void 0 : c.pg_size_opt) != null ? T : 10, u.cmd_prm = (k = c == null ? void 0 : c.cmd_prm) != null ? k : void 0, u.button_display_type = (I = c == null ? void 0 : c.button_display_type) != null ? I : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
11417
11440
  }, {
11418
11441
  immediate: !0
11419
11442
  }), KgUtil.hideLoading(), !1;
@@ -12123,7 +12146,7 @@ function _useTransferColumns(e, t) {
12123
12146
  class: "kg-not-clickable"
12124
12147
  }, {
12125
12148
  default: () => {
12126
- let c, u, d, g, E, y, _;
12149
+ let c, u, d, g, E, b, _;
12127
12150
  return createVNode(Fragment, null, [createVNode(Select.Option, {
12128
12151
  value: "DESC"
12129
12152
  }, _isSlot$7(c = r.t("kg.KgTableSettingConfigModalVarGridMaster.DESC")) ? c : {
@@ -12146,8 +12169,8 @@ function _useTransferColumns(e, t) {
12146
12169
  default: () => [E]
12147
12170
  }), createVNode(Select.Option, {
12148
12171
  value: "UPDATE_LINK"
12149
- }, _isSlot$7(y = r.t("kg.KgTableSettingConfigModalVarGridMaster.UPDATE_LINK")) ? y : {
12150
- default: () => [y]
12172
+ }, _isSlot$7(b = r.t("kg.KgTableSettingConfigModalVarGridMaster.UPDATE_LINK")) ? b : {
12173
+ default: () => [b]
12151
12174
  }), createVNode(Select.Option, {
12152
12175
  value: "ROUTE_LINK"
12153
12176
  }, _isSlot$7(_ = r.t("kg.KgTableSettingConfigModalVarGridMaster.ROUTE_LINK")) ? _ : {
@@ -12226,11 +12249,11 @@ function _useDragRow$1(e, t, r) {
12226
12249
  g.setAttribute("id", "__kg_table_config_fields_drag_image__");
12227
12250
  const {
12228
12251
  width: E,
12229
- height: y
12252
+ height: b
12230
12253
  } = u.parentElement.getBoundingClientRect();
12231
- E && y && (g.style.width = `${E + 2}px`, g.style.height = `${y + 2}px`), (p = d.dataTransfer) == null || p.setDragImage(g, -10, (y + 2) / 2);
12254
+ E && b && (g.style.width = `${E + 2}px`, g.style.height = `${b + 2}px`), (p = d.dataTransfer) == null || p.setDragImage(g, -10, (b + 2) / 2);
12232
12255
  const _ = await toCanvas(u.parentElement);
12233
- g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (y + 2) / 2);
12256
+ g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (b + 2) / 2);
12234
12257
  }, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
12235
12258
  u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
12236
12259
  const g = document.querySelector("#__kg_table_config_fields_drag_image__");
@@ -12254,8 +12277,8 @@ function _useDragRow$1(e, t, r) {
12254
12277
  d.preventDefault(), KgUtil.showLoading();
12255
12278
  const g = document.querySelector("#__kg_table_config_fields_drag_image__");
12256
12279
  g && document.body.removeChild(g), u.classList.remove("dragover", "dragover-right", "dragover-left");
12257
- const E = s == null ? void 0 : s.getAttribute("kg-var_nam"), y = u.getAttribute("kg-var_nam");
12258
- E !== y && i(E, y);
12280
+ const E = s == null ? void 0 : s.getAttribute("kg-var_nam"), b = u.getAttribute("kg-var_nam");
12281
+ E !== b && i(E, b);
12259
12282
  }, u.addEventListener("drop", u.__kg__drop__);
12260
12283
  }
12261
12284
  function o() {
@@ -12277,9 +12300,9 @@ function _useDragRow$1(e, t, r) {
12277
12300
  const g = t.value.findIndex((p) => p.var_nam === u), E = t.value.findIndex((p) => p.var_nam === d);
12278
12301
  if (g === -1 || E === -1)
12279
12302
  return;
12280
- const y = t.value.find((p) => p.var_nam === u), _ = [];
12303
+ const b = t.value.find((p) => p.var_nam === u), _ = [];
12281
12304
  t.value.forEach((p, m) => {
12282
- g > E ? m < E ? _.push(p) : m === E ? (_.push(y), _.push(p)) : m > E && m !== g && _.push(p) : g < E && (m < g ? _.push(p) : m === g || (m === E ? (_.push(p), _.push(y)) : _.push(p)));
12305
+ g > E ? m < E ? _.push(p) : m === E ? (_.push(b), _.push(p)) : m > E && m !== g && _.push(p) : g < E && (m < g ? _.push(p) : m === g || (m === E ? (_.push(p), _.push(b)) : _.push(p)));
12283
12306
  }), _.forEach((p, m) => {
12284
12307
  p.srtseq = m + 1;
12285
12308
  }), t.value = _, nextTick().finally(() => {
@@ -12312,7 +12335,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
12312
12335
  s.onReady(async () => (await n.store.patchVarProfileDetail(n.formID, "frm_id", {
12313
12336
  dft_val: a.formID
12314
12337
  }), !1)), o.onOpen(async ({
12315
- isCreating: b,
12338
+ isCreating: y,
12316
12339
  isUpdating: T,
12317
12340
  isCopying: k,
12318
12341
  row: I,
@@ -12321,7 +12344,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
12321
12344
  var A, O, M, K, L;
12322
12345
  const V = a.store.getSystemVarGridDetails(a.formID);
12323
12346
  switch (c.value = V ? cloneDeep(unref(toRaw(V))) : [], !0) {
12324
- case b: {
12347
+ case y: {
12325
12348
  u.value = [];
12326
12349
  break;
12327
12350
  }
@@ -12364,14 +12387,14 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
12364
12387
  }
12365
12388
  return !1;
12366
12389
  }), o.onBeforeOk(async ({
12367
- model: b
12390
+ model: y
12368
12391
  }) => {
12369
12392
  var k, I;
12370
- const T = b.value;
12393
+ const T = y.value;
12371
12394
  return T.frm_id = a.formID, T.varGridDetails = (I = (k = c.value) == null ? void 0 : k.filter((C) => u.value.includes(C.id))) != null ? I : [], !1;
12372
12395
  }), o.onOk(async () => (a.store.retrieve(a.formID), !1)), l.onUpdateBeforeClick(({
12373
- row: b
12374
- }) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((T) => {
12396
+ row: y
12397
+ }) => (y == null ? void 0 : y.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((T) => {
12375
12398
  KgUtil.confirm({
12376
12399
  content: r.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
12377
12400
  okButtonProps: {
@@ -12390,8 +12413,8 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
12390
12413
  rightColumns: E
12391
12414
  } = _useTransferColumns(e.hostFormID, c);
12392
12415
  _useDragRow$1(e.hostFormID, c, d);
12393
- const y = computed(() => {
12394
- const b = i.selectedRow.value;
12416
+ const b = computed(() => {
12417
+ const y = i.selectedRow.value;
12395
12418
  return {
12396
12419
  KgSubmit: {
12397
12420
  kgClass: "kg-submit--kg-table-setting-config-modal--var-grid-master"
@@ -12400,7 +12423,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
12400
12423
  kgDisabled: (T) => {
12401
12424
  switch (T.var_nam) {
12402
12425
  case "set-default":
12403
- if ((b == null ? void 0 : b.def_flg) === 1)
12426
+ if ((y == null ? void 0 : y.def_flg) === 1)
12404
12427
  return !0;
12405
12428
  break;
12406
12429
  }
@@ -12413,18 +12436,18 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
12413
12436
  varGridDetails: () => createVNode(Transfer, {
12414
12437
  dataSource: c.value,
12415
12438
  targetKeys: u.value,
12416
- "onUpdate:targetKeys": (b) => u.value = b,
12417
- rowKey: (b) => b.id,
12439
+ "onUpdate:targetKeys": (y) => u.value = y,
12440
+ rowKey: (y) => y.id,
12418
12441
  showSearch: !0,
12419
12442
  showSelectAll: !1,
12420
12443
  searchPlaceholder: " ",
12421
- filterOption: (b, T) => {
12444
+ filterOption: (y, T) => {
12422
12445
  var k;
12423
- return !!((k = T.var_nam) != null && k.includes(b));
12446
+ return !!((k = T.var_nam) != null && k.includes(y));
12424
12447
  }
12425
12448
  }, {
12426
12449
  children: ({
12427
- direction: b,
12450
+ direction: y,
12428
12451
  filteredItems: T,
12429
12452
  selectedKeys: k,
12430
12453
  disabled: I,
@@ -12440,17 +12463,17 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
12440
12463
  class: "kg-flex-table",
12441
12464
  size: "small",
12442
12465
  scroll: {
12443
- x: b === "left" ? "370px" : `${1552 + 32}px`,
12466
+ x: y === "left" ? "370px" : `${1552 + 32}px`,
12444
12467
  y: "auto"
12445
12468
  },
12446
- columns: b === "left" ? g() : E(),
12469
+ columns: y === "left" ? g() : E(),
12447
12470
  rowKey: "id",
12448
12471
  dataSource: A,
12449
12472
  customRow: (O) => {
12450
12473
  let M = {
12451
- onClick: (K) => m(K, O, b, k)
12474
+ onClick: (K) => m(K, O, y, k)
12452
12475
  };
12453
- return b === "right" && (M["kg-host-frm_id"] = a.formID, M["kg-var_nam"] = O.var_nam), M;
12476
+ return y === "right" && (M["kg-host-frm_id"] = a.formID, M["kg-var_nam"] = O.var_nam), M;
12454
12477
  },
12455
12478
  rowSelection: p({
12456
12479
  disabled: I,
@@ -12464,13 +12487,13 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
12464
12487
  }
12465
12488
  }
12466
12489
  }), p = ({
12467
- disabled: b,
12490
+ disabled: y,
12468
12491
  selectedKeys: T,
12469
12492
  onItemSelectAll: k,
12470
12493
  onItemSelect: I
12471
12494
  }) => ({
12472
12495
  getCheckboxProps: (C) => ({
12473
- disabled: b || C.disabled
12496
+ disabled: y || C.disabled
12474
12497
  }),
12475
12498
  onSelectAll(C, V) {
12476
12499
  const A = V.filter((O) => !O.disabled).map(({
@@ -12486,9 +12509,9 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
12486
12509
  selectedRowKeys: T,
12487
12510
  columnWidth: 32
12488
12511
  });
12489
- function m(b, T, k, I) {
12490
- if (!KgDomUtil.isNotClickable(b.target, ["ant-input"]))
12491
- switch (I.length = 0, b.detail) {
12512
+ function m(y, T, k, I) {
12513
+ if (!KgDomUtil.isNotClickable(y.target, ["ant-input"]))
12514
+ switch (I.length = 0, y.detail) {
12492
12515
  case 1:
12493
12516
  I[0] = T.id;
12494
12517
  break;
@@ -12506,7 +12529,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
12506
12529
  }
12507
12530
  return () => createVNode(KgVar, {
12508
12531
  class: "kg-table--config-modal--var-grid-master",
12509
- kgProps: y.value,
12532
+ kgProps: b.value,
12510
12533
  kgSlots: _.value
12511
12534
  }, null);
12512
12535
  }
@@ -12618,9 +12641,9 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
12618
12641
  return o.onOpen(async ({
12619
12642
  model: i
12620
12643
  }) => {
12621
- var u, d, g, E, y, _, p;
12644
+ var u, d, g, E, b, _, p;
12622
12645
  const c = s.currentVarGridMaster.value;
12623
- return i.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, i.value.grd_var_nam_dsc = `${(g = (d = c == null ? void 0 : c.grd_var_nam_dsc) != null ? d : c == null ? void 0 : c.grd_var_nam) != null ? g : ""}_COPY`, i.value.frm_id = (E = c == null ? void 0 : c.frm_id) != null ? E : "", i.value.usr_id = (y = c == null ? void 0 : c.usr_id) != null ? y : "", i.value.grp_nam = (_ = c == null ? void 0 : c.grp_nam) != null ? _ : "", i.value.varGridDetails = (p = c == null ? void 0 : c.varGridDetails) != null ? p : [], KgUtil.hideLoading(), !1;
12646
+ return i.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, i.value.grd_var_nam_dsc = `${(g = (d = c == null ? void 0 : c.grd_var_nam_dsc) != null ? d : c == null ? void 0 : c.grd_var_nam) != null ? g : ""}_COPY`, i.value.frm_id = (E = c == null ? void 0 : c.frm_id) != null ? E : "", i.value.usr_id = (b = c == null ? void 0 : c.usr_id) != null ? b : "", i.value.grp_nam = (_ = c == null ? void 0 : c.grp_nam) != null ? _ : "", i.value.varGridDetails = (p = c == null ? void 0 : c.varGridDetails) != null ? p : [], KgUtil.hideLoading(), !1;
12624
12647
  }), o.onBeforeOk(async ({
12625
12648
  model: i
12626
12649
  }) => (i.value, !1)), o.onOk(async () => (message.success(a.t("kg.KgTable.save-var-grid-master-as-success-message")), s.store.retrieve(s.formID), !1)), o.onClose(async () => (r("kgClose"), !1)), l.store.setIsCopying(l.formID, !0), () => createVNode(KgVar, null, null);
@@ -12653,7 +12676,7 @@ const getProps$j = () => ({
12653
12676
  }, {
12654
12677
  immediate: !0
12655
12678
  });
12656
- function y(C) {
12679
+ function b(C) {
12657
12680
  n.store.patchVarGridDetail(n.formID, C.var_nam, {
12658
12681
  vis_flg: C.vis_flg === 1 ? 0 : 1
12659
12682
  });
@@ -12684,7 +12707,7 @@ const getProps$j = () => ({
12684
12707
  async function m() {
12685
12708
  g.value.visible = !0;
12686
12709
  }
12687
- function b() {
12710
+ function y() {
12688
12711
  return createVNode(Menu.SubMenu, {
12689
12712
  key: "columns",
12690
12713
  title: a.t("kg.KgTable.column"),
@@ -12703,7 +12726,7 @@ const getProps$j = () => ({
12703
12726
  }, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((V) => createVNode("li", {
12704
12727
  class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
12705
12728
  onClick: (A) => {
12706
- A.preventDefault(), A.stopPropagation(), y(V);
12729
+ A.preventDefault(), A.stopPropagation(), b(V);
12707
12730
  },
12708
12731
  style: {
12709
12732
  display: l(V, c.value) ? "flex" : "none"
@@ -12822,7 +12845,7 @@ const getProps$j = () => ({
12822
12845
  "onUpdate:openKeys": (C) => o.value = C,
12823
12846
  selectable: !1
12824
12847
  }, {
12825
- default: () => [b(), k(), T(), I()]
12848
+ default: () => [y(), k(), T(), I()]
12826
12849
  })
12827
12850
  }), d.value.visible && createVNode(KgTableSettingConfigModal, {
12828
12851
  visible: d.value.visible,
@@ -12880,7 +12903,7 @@ const getProps$h = () => ({
12880
12903
  s.onSubmitSave(async () => {
12881
12904
  var k;
12882
12905
  try {
12883
- await ((k = y.value) == null ? void 0 : k.validate());
12906
+ await ((k = b.value) == null ? void 0 : k.validate());
12884
12907
  } catch (I) {
12885
12908
  KgUtil.throwIfNotFormError(I);
12886
12909
  }
@@ -12911,7 +12934,7 @@ const getProps$h = () => ({
12911
12934
  }
12912
12935
  return isString$1(k) && (k = k.replaceAll("\\n", `
12913
12936
  `)), isNil(k) && (k = ""), k;
12914
- }), y = ref(null);
12937
+ }), b = ref(null);
12915
12938
  function _(k) {
12916
12939
  var I, C, V;
12917
12940
  if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
@@ -12942,7 +12965,7 @@ const getProps$h = () => ({
12942
12965
  }
12943
12966
  function m() {
12944
12967
  return createVNode(KgForm, {
12945
- ref: y,
12968
+ ref: b,
12946
12969
  model: l.model.value,
12947
12970
  layout: "vertical",
12948
12971
  wrapperCol: {
@@ -12961,7 +12984,7 @@ const getProps$h = () => ({
12961
12984
  })]
12962
12985
  });
12963
12986
  }
12964
- function b() {
12987
+ function y() {
12965
12988
  var k, I, C, V, A, O, M, K, L, H, w;
12966
12989
  if (u.value)
12967
12990
  return m();
@@ -13047,7 +13070,7 @@ const getProps$h = () => ({
13047
13070
  class: g.value,
13048
13071
  title: E.value,
13049
13072
  "kg-value": e.kgValue
13050
- }, [b()]);
13073
+ }, [y()]);
13051
13074
  }
13052
13075
  });
13053
13076
  function _useRenderBodyCell() {
@@ -13064,19 +13087,19 @@ function _useRenderBodyCell() {
13064
13087
  text: d,
13065
13088
  value: g
13066
13089
  } = l, E = i.dataIndex;
13067
- let y = "";
13068
- i.customRender ? y = i.customRender({
13090
+ let b = "";
13091
+ i.customRender ? b = i.customRender({
13069
13092
  index: c,
13070
13093
  record: u,
13071
13094
  column: i,
13072
13095
  text: d,
13073
13096
  value: g,
13074
13097
  renderIndex: c
13075
- }) : y = g;
13098
+ }) : b = g;
13076
13099
  const _ = createVNode(KgTableCell, {
13077
13100
  kgContext: o,
13078
13101
  kgRow: u,
13079
- kgValue: y,
13102
+ kgValue: b,
13080
13103
  kgVarName: E,
13081
13104
  onKgUpdateLinkClick: () => n(u)
13082
13105
  }, null);
@@ -13106,7 +13129,7 @@ function _useColumns(e) {
13106
13129
  return ((E = r.store.getVarGridConfig(r.formID)) == null ? void 0 : E.show_check_column_flg) === 1;
13107
13130
  }), u = computed(() => {
13108
13131
  var T, k, I;
13109
- const E = useKg(), y = s.store.getDatas(r.formID), _ = (T = s.store.getTableWidth(r.formID)) != null ? T : 0, p = (k = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? k : 0, m = r.store.getCurrentVisibleVarGridDetails(r.formID), b = [{
13132
+ const E = useKg(), b = s.store.getDatas(r.formID), _ = (T = s.store.getTableWidth(r.formID)) != null ? T : 0, p = (k = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? k : 0, m = r.store.getCurrentVisibleVarGridDetails(r.formID), y = [{
13110
13133
  dataIndex: "index",
13111
13134
  width: KG_TABLE_TD_INDEX_WIDTH,
13112
13135
  fixed: "left",
@@ -13116,7 +13139,7 @@ function _useColumns(e) {
13116
13139
  index: C
13117
13140
  }) => C + 1
13118
13141
  }, ...(I = m == null ? void 0 : m.map((C, V) => {
13119
- var $, P, U;
13142
+ var $, P, G;
13120
13143
  const A = C.var_nam;
13121
13144
  function O() {
13122
13145
  return C.width === "auto" ? "auto" : Number(C.width) || KG_TABLE_TD_DEFAULT_WIDTH;
@@ -13132,15 +13155,15 @@ function _useColumns(e) {
13132
13155
  }
13133
13156
  function L() {
13134
13157
  var N, x, Y, q;
13135
- 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);
13158
+ 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 || b.length <= 0);
13136
13159
  }
13137
13160
  function H() {
13138
13161
  var N, x, Y, q, X, J;
13139
- 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((J = (X = t == null ? void 0 : t.value) == null ? void 0 : X.KgTable) == null ? void 0 : J.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(y.length <= 0))
13140
- return uniqBy(y.map((ee) => {
13141
- var ie;
13162
+ 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((J = (X = t == null ? void 0 : t.value) == null ? void 0 : X.KgTable) == null ? void 0 : J.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(b.length <= 0))
13163
+ return uniqBy(b.map((ee) => {
13164
+ var le;
13142
13165
  return {
13143
- value: (ie = ee == null ? void 0 : ee[A]) != null ? ie : "",
13166
+ value: (le = ee == null ? void 0 : ee[A]) != null ? le : "",
13144
13167
  text: l({
13145
13168
  column: {
13146
13169
  dataIndex: A
@@ -13185,7 +13208,7 @@ function _useColumns(e) {
13185
13208
  align: D(),
13186
13209
  fixed: K(),
13187
13210
  sorter: L(),
13188
- sortOrder: (($ = i.value) == null ? void 0 : $.field) === A && (U = (P = i.value) == null ? void 0 : P.order) != null ? U : null,
13211
+ sortOrder: (($ = i.value) == null ? void 0 : $.field) === A && (G = (P = i.value) == null ? void 0 : P.order) != null ? G : null,
13189
13212
  filteredValue: w(),
13190
13213
  filters: H(),
13191
13214
  onFilter: (N, x) => N === "" ? isNil(x == null ? void 0 : x[A]) || (x == null ? void 0 : x[A]) === "" : (x == null ? void 0 : x[A]) === N,
@@ -13205,17 +13228,17 @@ function _useColumns(e) {
13205
13228
  }
13206
13229
  };
13207
13230
  })) != null ? I : []];
13208
- return (p === 0 || _ > p && !(m != null && m.find((C) => C.width === "auto"))) && b.push({
13231
+ return (p === 0 || _ > p && !(m != null && m.find((C) => C.width === "auto"))) && y.push({
13209
13232
  width: "auto",
13210
13233
  customRender: () => null
13211
- }), b;
13234
+ }), y;
13212
13235
  }), d = computed(() => {
13213
- var y;
13236
+ var b;
13214
13237
  let E = 0;
13215
- return c.value && (E += KG_TABLE_TD_CHECK_WIDTH), E += KG_TABLE_TD_INDEX_WIDTH, E += (y = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? y : 0, `${E}px`;
13238
+ return c.value && (E += KG_TABLE_TD_CHECK_WIDTH), E += KG_TABLE_TD_INDEX_WIDTH, E += (b = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? b : 0, `${E}px`;
13216
13239
  });
13217
13240
  let g = null;
13218
- return watch(r.currentVarGridMasteID, (E, y) => {
13241
+ return watch(r.currentVarGridMasteID, (E, b) => {
13219
13242
  i.value = {}, g == null || g(), g = watch(i, () => {
13220
13243
  g(), g = null, a.search({
13221
13244
  isSearchFirstPage: !0
@@ -13268,9 +13291,9 @@ function _useDragColumn(e, t) {
13268
13291
  width: d,
13269
13292
  height: g
13270
13293
  } = i.getBoundingClientRect();
13271
- d && g && (u.style.width = `${d + 2}px`, u.style.height = `${g + 2}px`), (E = c.dataTransfer) == null || E.setDragImage(u, -10, (g + 2) / 2), toCanvas(i).then((y) => {
13294
+ d && g && (u.style.width = `${d + 2}px`, u.style.height = `${g + 2}px`), (E = c.dataTransfer) == null || E.setDragImage(u, -10, (g + 2) / 2), toCanvas(i).then((b) => {
13272
13295
  var _;
13273
- u.appendChild(y), document.body.appendChild(u), (_ = c.dataTransfer) == null || _.setDragImage(u, -10, (g + 2) / 2);
13296
+ u.appendChild(b), document.body.appendChild(u), (_ = c.dataTransfer) == null || _.setDragImage(u, -10, (g + 2) / 2);
13274
13297
  });
13275
13298
  }, i.addEventListener("dragstart", i.__kg__dragstart__), i.__kg__dragend__ = (c) => {
13276
13299
  i.classList.remove("dragging"), i.parentElement.classList.remove("dragging");
@@ -13365,16 +13388,14 @@ const KgTable$1 = "", getProps$g = () => ({
13365
13388
  setup: function(e) {
13366
13389
  var ae;
13367
13390
  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();
13368
- l.onSearch(async (F) => (N(F), !1)), l.onReset(async () => (g.value = {}, N({
13369
- isSearchFirstPage: !0
13370
- }), !1)), o.store.$onAction(async ({
13391
+ l.onSearch(async (F) => (N(F), !1)), l.onReset(async () => (g.value = {}, !1)), o.store.$onAction(async ({
13371
13392
  name: F,
13372
- args: B
13393
+ args: U
13373
13394
  }) => {
13374
13395
  switch (F) {
13375
13396
  case "setRowSelect":
13376
- if (B[0] === s.formID) {
13377
- const Q = B[1], z = B[2], te = Q[o.id.value];
13397
+ if (U[0] === s.formID) {
13398
+ const Q = U[1], z = U[2], te = Q[o.id.value];
13378
13399
  switch (!0) {
13379
13400
  case (z && !w.value.includes(te)):
13380
13401
  x([...w.value, te]);
@@ -13386,7 +13407,7 @@ const KgTable$1 = "", getProps$g = () => ({
13386
13407
  }
13387
13408
  break;
13388
13409
  case "clearDatas":
13389
- B[0] === s.formID && (o.store.setDatas(s.formID, []), D.total = 0, U(), c.value = []);
13410
+ U[0] === s.formID && (o.store.setDatas(s.formID, []), D.total = 0, G(), c.value = []);
13390
13411
  break;
13391
13412
  }
13392
13413
  });
@@ -13396,46 +13417,46 @@ const KgTable$1 = "", getProps$g = () => ({
13396
13417
  sorterInfo: g,
13397
13418
  scrollX: E
13398
13419
  } = _useColumns(e), {
13399
- isLoading: y
13420
+ isLoading: b
13400
13421
  } = _useLoading(), _ = ref(null), {
13401
13422
  renderBodyCell: p
13402
13423
  } = _useRenderBodyCell();
13403
13424
  _useResizeObserver(_), _useDragColumn(_, u);
13404
13425
  const {
13405
13426
  datas: m,
13406
- transformDatas: b
13427
+ transformDatas: y
13407
13428
  } = _useDatas(), T = computed(() => {
13408
- var F, B;
13409
- return (B = (F = s.varButtonSearch.value) == null ? void 0 : F.cmd) != null ? B : null;
13429
+ var F, U;
13430
+ return (U = (F = s.varButtonSearch.value) == null ? void 0 : F.cmd) != null ? U : null;
13410
13431
  }), k = computed(() => {
13411
- var B, Q, z, te, le, fe, pe, he, Ee;
13432
+ var U, Q, z, te, ue, ie, fe, he, Se;
13412
13433
  let F = {
13413
13434
  pageNo: D.pageIndex,
13414
13435
  pageSize: D.pageSize,
13415
- column: (Q = (B = g.value) == null ? void 0 : B.field) != null ? Q : void 0,
13436
+ column: (Q = (U = g.value) == null ? void 0 : U.field) != null ? Q : void 0,
13416
13437
  order: g.value.order === "ascend" ? "asc" : g.value.order === "descend" ? "desc" : void 0,
13417
13438
  ...(te = (z = l.model) == null ? void 0 : z.value) != null ? te : {}
13418
13439
  };
13419
13440
  return s.varButtonSearch.value && (F = {
13420
13441
  ...F,
13421
- ...KgVarUtil.parseCommandParameter((fe = (le = s.varButtonSearch.value) == null ? void 0 : le.cmd_prm) != null ? fe : "")
13422
- }), (pe = s.varGridConfig.value) != null && pe.cmd_prm && (F = {
13442
+ ...KgVarUtil.parseCommandParameter((ie = (ue = s.varButtonSearch.value) == null ? void 0 : ue.cmd_prm) != null ? ie : "")
13443
+ }), (fe = s.varGridConfig.value) != null && fe.cmd_prm && (F = {
13423
13444
  ...F,
13424
13445
  ...KgVarUtil.parseCommandParameter((he = s.varGridConfig.value.cmd_prm) != null ? he : "")
13425
- }), ((Ee = s.varGridConfig.value) == null ? void 0 : Ee.convert_sort_field_to_under_score_flg) === 1 && F.column && (F.column = snakeCase$1(F.column)), F;
13446
+ }), ((Se = s.varGridConfig.value) == null ? void 0 : Se.convert_sort_field_to_under_score_flg) === 1 && F.column && (F.column = snakeCase$1(F.column)), F;
13426
13447
  }), I = computed(() => {
13427
- var F, B, Q, z;
13428
- if (!isNil((B = (F = a == null ? void 0 : a.value) == null ? void 0 : F.KgTable) == null ? void 0 : B.kgDisabled))
13448
+ var F, U, Q, z;
13449
+ if (!isNil((U = (F = a == null ? void 0 : a.value) == null ? void 0 : F.KgTable) == null ? void 0 : U.kgDisabled))
13429
13450
  return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgDisabled;
13430
13451
  if (!isNil(e.kgDisabled))
13431
13452
  return e.kgDisabled;
13432
13453
  }), C = computed(() => {
13433
- var F, B, Q, z;
13434
- if (!isNil((B = (F = a == null ? void 0 : a.value) == null ? void 0 : F.KgTable) == null ? void 0 : B.kgCheckboxDisabled))
13454
+ var F, U, Q, z;
13455
+ if (!isNil((U = (F = a == null ? void 0 : a.value) == null ? void 0 : F.KgTable) == null ? void 0 : U.kgCheckboxDisabled))
13435
13456
  return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgCheckboxDisabled;
13436
13457
  if (!isNil(e.kgCheckboxDisabled))
13437
13458
  return e.kgCheckboxDisabled;
13438
- }), V = 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(() => {
13459
+ }), V = computed(() => !!I.value || b.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), A = computed(() => !!I.value || b.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || D.total === 0), O = computed(() => {
13439
13460
  var F;
13440
13461
  return !!((F = r == null ? void 0 : r.KgTable) != null && F.expandedRowRender);
13441
13462
  }), M = computed(() => {
@@ -13450,18 +13471,18 @@ const KgTable$1 = "", getProps$g = () => ({
13450
13471
  selectedRowKeys: w,
13451
13472
  preserveSelectedRowKeys: !1,
13452
13473
  getCheckboxProps: (F) => {
13453
- var B;
13474
+ var U;
13454
13475
  return {
13455
- disabled: !!I.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || !!((B = C.value) != null && B.call(C, F))
13476
+ disabled: !!I.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || !!((U = C.value) != null && U.call(C, F))
13456
13477
  };
13457
13478
  },
13458
13479
  onSelect: (F) => Y(F),
13459
13480
  onChange: (F) => o.isMultiSelect.value && x(F)
13460
13481
  };
13461
13482
  }), L = computed(() => {
13462
- var B;
13483
+ var U;
13463
13484
  let F = "kg-table";
13464
- switch (((B = s.varGridConfig.value) == null ? void 0 : B.show_bottom_border_flg) === 1 && (F += " kg-table--bottom-border"), !o.isShowBottomLeft.value && !o.isShowBottomRight.value && (F += " kg-table--no-bottom"), i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (F += " kg-table--submitting"), o.store.getRowHeight(s.formID)) {
13485
+ switch (((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (F += " kg-table--bottom-border"), !o.isShowBottomLeft.value && !o.isShowBottomRight.value && (F += " kg-table--no-bottom"), i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (F += " kg-table--submitting"), o.store.getRowHeight(s.formID)) {
13465
13486
  case "L":
13466
13487
  F += " kg-table--row-l";
13467
13488
  break;
@@ -13474,9 +13495,9 @@ const KgTable$1 = "", getProps$g = () => ({
13474
13495
  }
13475
13496
  return F;
13476
13497
  }), H = computed(() => {
13477
- var B;
13498
+ var U;
13478
13499
  let F = "kg-table-bottom";
13479
- return ((B = s.varGridConfig.value) == null ? void 0 : B.show_bottom_border_flg) === 1 && (F += " kg-table-bottom--border"), F;
13500
+ return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (F += " kg-table-bottom--border"), F;
13480
13501
  }), w = (ae = o.store.getSelectedRowKeys(s.formID)) != null ? ae : ref([]), D = reactive({
13481
13502
  pageIndex: 1,
13482
13503
  pageSize: 10,
@@ -13488,14 +13509,14 @@ const KgTable$1 = "", getProps$g = () => ({
13488
13509
  });
13489
13510
  watch(o.pageSizeOptions, (F) => {
13490
13511
  F.length > 0 && !F.includes(D.pageSize) && (D.pageSize = o.pageSizeOption.value);
13491
- }), watch([T, o.isReadAutomatically, l.isReady], ([F, B, Q]) => {
13492
- F && B && Q && !o.store.getIsRetrieved(s.formID) && N({
13512
+ }), watch([T, o.isReadAutomatically, l.isReady], ([F, U, Q]) => {
13513
+ F && U && Q && !o.store.getIsRetrieved(s.formID) && N({
13493
13514
  isSearchFirstPage: !0
13494
13515
  });
13495
13516
  }, {
13496
13517
  immediate: !0
13497
- }), watch(s.isCreating, (F, B) => {
13498
- F === !0 ? $() : F === !1 && B === !0 && P();
13518
+ }), watch(s.isCreating, (F, U) => {
13519
+ F === !0 ? $() : F === !1 && U === !0 && P();
13499
13520
  }), onUnmounted(() => {
13500
13521
  o.store.dispose(s.formID);
13501
13522
  });
@@ -13508,13 +13529,13 @@ const KgTable$1 = "", getProps$g = () => ({
13508
13529
  }
13509
13530
  }
13510
13531
  function P() {
13511
- const F = m.value.find((B) => B[o.id.value] === KG_TABLE_TEMP_ID);
13532
+ const F = m.value.find((U) => U[o.id.value] === KG_TABLE_TEMP_ID);
13512
13533
  F && (o.store.setDatas(s.formID, without$1(m.value, F)), o.store.setSelectedRows(s.formID, []));
13513
13534
  }
13514
- function U(F, B) {
13535
+ function G(F, U) {
13515
13536
  var Q;
13516
13537
  if (!(!!I.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!K.value) {
13517
- if (!B) {
13538
+ if (!U) {
13518
13539
  o.store.setSelectedRows(s.formID, []);
13519
13540
  return;
13520
13541
  }
@@ -13524,13 +13545,13 @@ const KgTable$1 = "", getProps$g = () => ({
13524
13545
  case 0:
13525
13546
  break;
13526
13547
  case 1:
13527
- o.store.setSelectedRows(s.formID, [B]);
13548
+ o.store.setSelectedRows(s.formID, [U]);
13528
13549
  break;
13529
13550
  }
13530
13551
  break;
13531
13552
  case 2:
13532
13553
  o.store.emit(s.formID, "rowDoubleClick", {
13533
- row: B
13554
+ row: U
13534
13555
  });
13535
13556
  break;
13536
13557
  }
@@ -13540,13 +13561,13 @@ const KgTable$1 = "", getProps$g = () => ({
13540
13561
  KgLogger.debug(`${s.formID} | KgTable | retrieve() | \u6267\u884C\u5F00\u59CB.`, {
13541
13562
  param: F
13542
13563
  });
13543
- const B = watch(o.isReady, (z) => {
13544
- z && (setTimeout(() => B()), Q());
13564
+ const U = watch(o.isReady, (z) => {
13565
+ z && (setTimeout(() => U()), Q());
13545
13566
  }, {
13546
13567
  immediate: !0
13547
13568
  });
13548
13569
  async function Q() {
13549
- var z, te, le, fe, pe, he, Ee;
13570
+ var z, te, ue, ie, fe, he, Se;
13550
13571
  if (KgLogger.debug(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u6267\u884C\u5F00\u59CB.`), !T.value) {
13551
13572
  KgLogger.error(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.`, {
13552
13573
  VarButton: s.varButtonSearch.value
@@ -13555,59 +13576,59 @@ const KgTable$1 = "", getProps$g = () => ({
13555
13576
  }
13556
13577
  F.isSearchFirstPage && (D.pageIndex = 1), o.store.setIsRetrieving(s.formID, !0);
13557
13578
  try {
13558
- const ve = KgUtil.parseParams(k.value, o.profileFormID.value, t), Se = ref({});
13579
+ const ve = KgUtil.parseParams(k.value, o.profileFormID.value, t), be = ref({});
13559
13580
  if (!await o.store.emit(s.formID, "beforeRetrieve", {
13560
13581
  params: ve,
13561
- response: Se
13582
+ response: be
13562
13583
  })) {
13563
- const ue = ((te = (z = n.option.value.KgSearch) == null ? void 0 : z.dynamicQuery) == null ? void 0 : te.on) === !0 && ((le = s.currentVarProfileMaster.value) == null ? void 0 : le.dyn_flg) === 1, {
13584
+ const pe = ((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, {
13564
13585
  sql: Ce,
13565
13586
  whereSql: ke,
13566
- orderBySql: G
13567
- } = KgUtil.getQuerySql(k.value, o.profileFormID.value, null, t), W = await httpClient().request({
13568
- method: (pe = (fe = s.varButtonSearch.value) == null ? void 0 : fe.cmd_method) != null ? pe : "GET",
13587
+ orderBySql: Me
13588
+ } = KgUtil.getQuerySql(k.value, o.profileFormID.value, null, t), B = await httpClient().request({
13589
+ method: (fe = (ie = s.varButtonSearch.value) == null ? void 0 : ie.cmd_method) != null ? fe : "GET",
13569
13590
  url: T.value,
13570
13591
  params: ve,
13571
13592
  data: ve,
13572
13593
  headers: {
13573
- [KG_HTTP_HEADERS.KG_DYNAMIC_QUERY]: ue,
13594
+ [KG_HTTP_HEADERS.KG_DYNAMIC_QUERY]: pe,
13574
13595
  [KG_HTTP_HEADERS.KG_QUERY_SQL]: Ce,
13575
13596
  [KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL]: ke,
13576
- [KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]: G
13597
+ [KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]: Me
13577
13598
  }
13578
13599
  }, {
13579
13600
  isReturnNativeResponse: !0,
13580
13601
  successMessageMode: "none"
13581
13602
  });
13582
- if (!W.data)
13603
+ if (!B.data)
13583
13604
  throw message.error(n.t("kg.KgTable.request-fail-no-data")), new Error(n.t("kg.KgTable.request-fail-no-data"));
13584
- if (![0, 200].includes((he = W.data.code) != null ? he : -1) || !W.data.success)
13585
- throw message.error(W.data.message || n.t("kg.KgTable.request-fail-error")), new Error(W.data.message || n.t("kg.KgTable.request-fail-error"));
13586
- ue && W.headers[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY.toLowerCase()] !== "true" && message.warning(n.t("kg.KgTable.dynamic-query-is-off-in-server")), Se.value = W.data.result, KgLogger.debug(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6210\u529F.`, {
13605
+ if (![0, 200].includes((he = B.data.code) != null ? he : -1) || !B.data.success)
13606
+ throw message.error(B.data.message || n.t("kg.KgTable.request-fail-error")), new Error(B.data.message || n.t("kg.KgTable.request-fail-error"));
13607
+ pe && B.headers[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY.toLowerCase()] !== "true" && message.warning(n.t("kg.KgTable.dynamic-query-is-off-in-server")), be.value = B.data.result, KgLogger.debug(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6210\u529F.`, {
13587
13608
  params: ve,
13588
- response: Se.value
13609
+ response: be.value
13589
13610
  });
13590
13611
  }
13591
13612
  const {
13592
- datas: be,
13613
+ datas: ye,
13593
13614
  total: Ae
13594
- } = b(Se);
13615
+ } = y(be);
13595
13616
  await o.store.emit(s.formID, "beforeSetDatas", {
13596
- datas: be,
13617
+ datas: ye,
13597
13618
  total: Ae,
13598
- setDatas(ue) {
13599
- o.store.setDatas(s.formID, ue);
13619
+ setDatas(pe) {
13620
+ o.store.setDatas(s.formID, pe);
13600
13621
  }
13601
- }), d.value = {}, o.store.setDatas(s.formID, be.value), D.total = Ae.value;
13602
- const Me = cloneDeep(w.value);
13603
- U(), c.value = [], await nextTick(), F.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, Me.map((ue) => {
13622
+ }), d.value = {}, o.store.setDatas(s.formID, ye.value), D.total = Ae.value;
13623
+ const Ie = cloneDeep(w.value);
13624
+ G(), c.value = [], await nextTick(), F.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, Ie.map((pe) => {
13604
13625
  var Ce;
13605
- return (Ce = be.value) == null ? void 0 : Ce.find((ke) => ke[o.id.value] === ue);
13606
- }).filter((ue) => !!ue)) : ((Ee = s.varGridConfig.value) == null ? void 0 : Ee.check_first_row_after_retrieve) === 1 && be.value.length > 0 && o.store.setSelectedRows(s.formID, [be.value[0]]), await o.store.emit(s.formID, "retrieve", {
13607
- page: Se.value,
13608
- datas: be,
13609
- setDatas(ue) {
13610
- o.store.setDatas(s.formID, ue);
13626
+ return (Ce = ye.value) == null ? void 0 : Ce.find((ke) => ke[o.id.value] === pe);
13627
+ }).filter((pe) => !!pe)) : ((Se = s.varGridConfig.value) == null ? void 0 : Se.check_first_row_after_retrieve) === 1 && ye.value.length > 0 && o.store.setSelectedRows(s.formID, [ye.value[0]]), await o.store.emit(s.formID, "retrieve", {
13628
+ page: be.value,
13629
+ datas: ye,
13630
+ setDatas(pe) {
13631
+ o.store.setDatas(s.formID, pe);
13611
13632
  }
13612
13633
  }), o.store.setIsRetrieved(s.formID, !0);
13613
13634
  } catch (ve) {
@@ -13618,18 +13639,18 @@ const KgTable$1 = "", getProps$g = () => ({
13618
13639
  }
13619
13640
  }
13620
13641
  function x(F) {
13621
- o.store.setSelectedRows(s.formID, F.map((B) => {
13642
+ o.store.setSelectedRows(s.formID, F.map((U) => {
13622
13643
  var Q;
13623
- return (Q = m.value) == null ? void 0 : Q.find((z) => z[o.id.value] === B);
13624
- }).filter((B) => !!B));
13644
+ return (Q = m.value) == null ? void 0 : Q.find((z) => z[o.id.value] === U);
13645
+ }).filter((U) => !!U));
13625
13646
  }
13626
13647
  function Y(F) {
13627
- var B, Q;
13648
+ var U, Q;
13628
13649
  switch (o.isMultiSelect.value) {
13629
13650
  case !0:
13630
13651
  {
13631
13652
  const z = F[o.id.value];
13632
- w.value.includes(z) ? w.value = without$1(w.value, z) : w.value = [...(B = w.value) != null ? B : [], z];
13653
+ w.value.includes(z) ? w.value = without$1(w.value, z) : w.value = [...(U = w.value) != null ? U : [], z];
13633
13654
  }
13634
13655
  break;
13635
13656
  case !1:
@@ -13641,13 +13662,13 @@ const KgTable$1 = "", getProps$g = () => ({
13641
13662
  }
13642
13663
  o.store.setSelectedRows(s.formID, w.value.map((z) => {
13643
13664
  var te;
13644
- return (te = m.value) == null ? void 0 : te.find((le) => le[o.id.value] === z);
13665
+ return (te = m.value) == null ? void 0 : te.find((ue) => ue[o.id.value] === z);
13645
13666
  }).filter((z) => !!z));
13646
13667
  }
13647
- function q(F, B) {
13648
- B.width = F, s.store.setVarGridDetailWidth(s.formID, B.dataIndex, F);
13668
+ function q(F, U) {
13669
+ U.width = F, s.store.setVarGridDetailWidth(s.formID, U.dataIndex, F);
13649
13670
  }
13650
- async function X(F, B, Q, z) {
13671
+ async function X(F, U, Q, z) {
13651
13672
  switch (z.action) {
13652
13673
  case "sort": {
13653
13674
  g.value = Q, g.value.order || (g.value.field = void 0), await nextTick(), N({
@@ -13656,12 +13677,12 @@ const KgTable$1 = "", getProps$g = () => ({
13656
13677
  break;
13657
13678
  }
13658
13679
  case "filter":
13659
- d.value = B;
13680
+ d.value = U;
13660
13681
  }
13661
13682
  }
13662
- function J(F, B) {
13683
+ function J(F, U) {
13663
13684
  var z;
13664
- const Q = B[o.id.value];
13685
+ const Q = U[o.id.value];
13665
13686
  switch ((z = s.varGridConfig.value) == null ? void 0 : z.expand_accordion_flg) {
13666
13687
  case 0:
13667
13688
  F ? c.value = uniq([...c.value, Q]) : c.value = without$1(c.value, Q);
@@ -13671,14 +13692,14 @@ const KgTable$1 = "", getProps$g = () => ({
13671
13692
  break;
13672
13693
  }
13673
13694
  }
13674
- function ee(F, B) {
13675
- B !== D.pageSize ? (D.pageIndex = 1, D.pageSize = B) : D.pageIndex = F, N();
13695
+ function ee(F, U) {
13696
+ U !== D.pageSize ? (D.pageIndex = 1, D.pageSize = U) : D.pageIndex = F, N();
13676
13697
  }
13677
- function ie({
13698
+ function le({
13678
13699
  title: F,
13679
- column: B
13700
+ column: U
13680
13701
  }) {
13681
- switch (B.dataIndex) {
13702
+ switch (U.dataIndex) {
13682
13703
  case "index":
13683
13704
  return createVNode(KgTableSetting, {
13684
13705
  kgDisabled: I.value
@@ -13699,18 +13720,18 @@ const KgTable$1 = "", getProps$g = () => ({
13699
13720
  index: 0
13700
13721
  }, null), M.value && createVNode(TableSummary.Cell, {
13701
13722
  index: O.value ? 1 : 0
13702
- }, null), u.value.map((B, Q) => {
13703
- const z = String(B.dataIndex), te = z ? s.store.getVarGridDetail(s.formID, z) : null, le = (() => ["left", "center", "right"].includes((te == null ? void 0 : te.align) || "") ? te == null ? void 0 : te.align : "left")();
13704
- let fe = Q;
13705
- return O.value && M.value ? fe += 2 : (O.value || M.value) && (fe += 1), createVNode(TableSummary.Cell, {
13706
- index: fe,
13707
- align: le
13723
+ }, null), u.value.map((U, Q) => {
13724
+ 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")();
13725
+ let ie = Q;
13726
+ return O.value && M.value ? ie += 2 : (O.value || M.value) && (ie += 1), createVNode(TableSummary.Cell, {
13727
+ index: ie,
13728
+ align: ue
13708
13729
  }, {
13709
13730
  default: () => {
13710
- var pe, he;
13711
- return [(he = (pe = r == null ? void 0 : r.KgTable) == null ? void 0 : pe["summary.bodyCell"]) == null ? void 0 : he.call(pe, {
13712
- column: B,
13713
- index: fe,
13731
+ var fe, he;
13732
+ return [(he = (fe = r == null ? void 0 : r.KgTable) == null ? void 0 : fe["summary.bodyCell"]) == null ? void 0 : he.call(fe, {
13733
+ column: U,
13734
+ index: ie,
13714
13735
  varGridDetail: te
13715
13736
  })];
13716
13737
  }
@@ -13723,7 +13744,7 @@ const KgTable$1 = "", getProps$g = () => ({
13723
13744
  return !o.isReadAutomatically.value && !o.store.getIsRetrieved(s.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
13724
13745
  }
13725
13746
  return () => {
13726
- var F, B, Q;
13747
+ var F, U, Q;
13727
13748
  return createVNode("div", {
13728
13749
  class: L.value,
13729
13750
  "kg-frm_id": s.formID,
@@ -13739,20 +13760,20 @@ const KgTable$1 = "", getProps$g = () => ({
13739
13760
  showSorterTooltip: !1,
13740
13761
  columns: u.value,
13741
13762
  dataSource: m.value,
13742
- loading: y.value,
13763
+ loading: b.value,
13743
13764
  rowKey: o.id.value,
13744
- rowClassName: (B = (F = a == null ? void 0 : a.value) == null ? void 0 : F.KgTable) == null ? void 0 : B.kgRowClassName,
13765
+ rowClassName: (U = (F = a == null ? void 0 : a.value) == null ? void 0 : F.KgTable) == null ? void 0 : U.kgRowClassName,
13745
13766
  expandColumnWidth: 28,
13746
13767
  expandedRowKeys: c.value,
13747
13768
  rowSelection: K.value,
13748
13769
  customRow: (z) => ({
13749
- onClick: (te) => U(te, z)
13770
+ onClick: (te) => G(te, z)
13750
13771
  }),
13751
13772
  onResizeColumn: q,
13752
13773
  onChange: X,
13753
13774
  onExpand: J
13754
13775
  }, {
13755
- headerCell: ie,
13776
+ headerCell: le,
13756
13777
  bodyCell: p,
13757
13778
  emptyText: ge,
13758
13779
  expandedRowRender: (Q = r == null ? void 0 : r.KgTable) == null ? void 0 : Q.expandedRowRender,
@@ -13813,8 +13834,8 @@ const KgTable$1 = "", getProps$g = () => ({
13813
13834
  attrs: t
13814
13835
  }) {
13815
13836
  const r = useKg(), a = useKgVar(), n = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), l = computed(() => {
13816
- var u, d, g, E, y, _, p, m;
13817
- return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? g : 0) === 0 || ((E = s.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((_ = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? _ : 0) > 1 || ((p = s.value) == null ? void 0 : p.permission_type) === 2 && !r.p((m = s.value) == null ? void 0 : m.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13837
+ var u, d, g, E, b, _, p, m;
13838
+ return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? g : 0) === 0 || ((E = s.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((_ = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? _ : 0) > 1 || ((p = s.value) == null ? void 0 : p.permission_type) === 2 && !r.p((m = s.value) == null ? void 0 : m.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
13818
13839
  });
13819
13840
  async function o() {
13820
13841
  e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
@@ -14021,7 +14042,7 @@ const KgButtonCreate = defineComponent({
14021
14042
  function E() {
14022
14043
  l.store.emit(s.formID, "submitSave", {});
14023
14044
  }
14024
- function y() {
14045
+ function b() {
14025
14046
  l.store.emit(s.formID, "submitCancel", {});
14026
14047
  }
14027
14048
  function _() {
@@ -14049,7 +14070,7 @@ const KgButtonCreate = defineComponent({
14049
14070
  default: () => [_(), p()]
14050
14071
  });
14051
14072
  }
14052
- function b() {
14073
+ function y() {
14053
14074
  return i.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
14054
14075
  type: "primary",
14055
14076
  onClick: E,
@@ -14060,20 +14081,20 @@ const KgButtonCreate = defineComponent({
14060
14081
  type: "primary",
14061
14082
  ghost: !d.value,
14062
14083
  disabled: d.value,
14063
- onClick: y
14084
+ onClick: b
14064
14085
  }, {
14065
14086
  default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
14066
14087
  })]);
14067
14088
  }
14068
- return () => createVNode(Fragment, null, [m(), b()]);
14089
+ return () => createVNode(Fragment, null, [m(), y()]);
14069
14090
  }
14070
14091
  }), KgButtonDelete = defineComponent({
14071
14092
  name: "KgButtonDelete",
14072
14093
  props: getProps$f(),
14073
14094
  setup(e) {
14074
14095
  const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), s = computed(() => {
14075
- var c, u, d, g, E, y, _, p;
14076
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((g = n.value) == null ? void 0 : g.dis_mult_select_flg) === 1 && ((y = (E = a.selectedRows.value) == null ? void 0 : E.length) != null ? y : 0) > 1 || ((_ = n.value) == null ? void 0 : _.permission_type) === 2 && !t.p((p = n.value) == null ? void 0 : p.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14096
+ var c, u, d, g, E, b, _, p;
14097
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((g = n.value) == null ? void 0 : g.dis_mult_select_flg) === 1 && ((b = (E = a.selectedRows.value) == null ? void 0 : E.length) != null ? b : 0) > 1 || ((_ = n.value) == null ? void 0 : _.permission_type) === 2 && !t.p((p = n.value) == null ? void 0 : p.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14077
14098
  });
14078
14099
  async function l() {
14079
14100
  e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
@@ -14110,31 +14131,31 @@ const KgButtonCreate = defineComponent({
14110
14131
  props: getProps$f(),
14111
14132
  setup(e) {
14112
14133
  const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), s = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), l = computed(() => {
14113
- var y, _;
14114
- return s.value ? (_ = (y = s.value) == null ? void 0 : y.cmd) != null ? _ : "" : null;
14134
+ var b, _;
14135
+ return s.value ? (_ = (b = s.value) == null ? void 0 : b.cmd) != null ? _ : "" : null;
14115
14136
  }), o = computed(() => {
14116
- var y, _;
14117
- return (_ = (y = s.value) == null ? void 0 : y.cmd_method) != null ? _ : "GET";
14137
+ var b, _;
14138
+ return (_ = (b = s.value) == null ? void 0 : b.cmd_method) != null ? _ : "GET";
14118
14139
  }), i = computed(() => {
14119
- var _, p, m, b, T, k;
14120
- let y = {
14140
+ var _, p, m, y, T, k;
14141
+ let b = {
14121
14142
  pageNo: 1,
14122
14143
  pageSize: 9999999,
14123
14144
  ...(_ = a.model.value) != null ? _ : {}
14124
14145
  };
14125
- return s.value && (y = {
14126
- ...y,
14146
+ return s.value && (b = {
14147
+ ...b,
14127
14148
  ...KgVarUtil.parseCommandParameter((m = (p = s.value) == null ? void 0 : p.cmd_prm) != null ? m : "")
14128
- }), (b = r.varGridConfig.value) != null && b.cmd_prm && (y = {
14129
- ...y,
14149
+ }), (y = r.varGridConfig.value) != null && y.cmd_prm && (b = {
14150
+ ...b,
14130
14151
  ...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
14131
- }), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 && y.column && (y.column = snakeCase$1(y.column)), y;
14152
+ }), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 && b.column && (b.column = snakeCase$1(b.column)), b;
14132
14153
  }), c = computed(() => {
14133
- var y, _, p, m, b, T, k, I;
14134
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((p = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) === 0 || ((m = s.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((I = s.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14154
+ var b, _, p, m, y, T, k, I;
14155
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((b = s.value) == null ? void 0 : b.dis_no_select_flg) === 1 && ((p = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) === 0 || ((m = s.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((I = s.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14135
14156
  }), u = ref(!1);
14136
14157
  async function d() {
14137
- var y, _;
14158
+ var b, _;
14138
14159
  if (!(e.onKgClick && await e.onKgClick())) {
14139
14160
  if (!l.value) {
14140
14161
  KgLogger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
@@ -14152,7 +14173,7 @@ const KgButtonCreate = defineComponent({
14152
14173
  }, {
14153
14174
  joinParamsToUrl: !0,
14154
14175
  isTransformResponse: !1
14155
- }), m = (y = s.value) == null ? void 0 : y.export_excel_filename;
14176
+ }), m = (b = s.value) == null ? void 0 : b.export_excel_filename;
14156
14177
  KgUtil.downloadFile(p, `${m ? r.t(m).value : t.t("kg.export")}.${(_ = s.value) == null ? void 0 : _.export_excel_suffix}`);
14157
14178
  } catch (p) {
14158
14179
  throw p;
@@ -14172,14 +14193,14 @@ const KgButtonCreate = defineComponent({
14172
14193
  return e.kgText ? e.kgText : t.t("kg.export");
14173
14194
  }
14174
14195
  return () => {
14175
- var y, _, p, m;
14196
+ var b, _, p, m;
14176
14197
  return createVNode(Button, {
14177
14198
  type: "primary",
14178
14199
  disabled: c.value,
14179
14200
  ghost: !e.kgPrimary && !c.value,
14180
14201
  loading: u.value,
14181
14202
  onClick: d,
14182
- "kg-id": (y = s.value) == null ? void 0 : y.id,
14203
+ "kg-id": (b = s.value) == null ? void 0 : b.id,
14183
14204
  "kg-frm_id": (_ = s.value) == null ? void 0 : _.frm_id,
14184
14205
  "kg-var_nam": (p = s.value) == null ? void 0 : p.var_nam,
14185
14206
  "kg-cmd": (m = s.value) == null ? void 0 : m.cmd
@@ -14203,17 +14224,17 @@ const KgButtonCreate = defineComponent({
14203
14224
  var p, m;
14204
14225
  return (m = (p = o.value) == null ? void 0 : p.cmd_method) != null ? m : "POST";
14205
14226
  }), u = computed(() => {
14206
- var m, b, T;
14227
+ var m, y, T;
14207
14228
  let p = {
14208
14229
  ...(m = s.model.value) != null ? m : {}
14209
14230
  };
14210
14231
  return o.value && (p = {
14211
14232
  ...p,
14212
- ...KgVarUtil.parseCommandParameter((T = (b = o.value) == null ? void 0 : b.cmd_prm) != null ? T : "")
14233
+ ...KgVarUtil.parseCommandParameter((T = (y = o.value) == null ? void 0 : y.cmd_prm) != null ? T : "")
14213
14234
  }), p;
14214
14235
  }), d = computed(() => {
14215
- var p, m, b, T, k, I, C, V;
14216
- return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((p = o.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((b = (m = l.selectedRows.value) == null ? void 0 : m.length) != null ? b : 0) === 0 || ((T = o.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((I = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) > 1 || ((C = o.value) == null ? void 0 : C.permission_type) === 2 && !a.p((V = o.value) == null ? void 0 : V.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14236
+ var p, m, y, T, k, I, C, V;
14237
+ return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((p = o.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((y = (m = l.selectedRows.value) == null ? void 0 : m.length) != null ? y : 0) === 0 || ((T = o.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((I = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) > 1 || ((C = o.value) == null ? void 0 : C.permission_type) === 2 && !a.p((V = o.value) == null ? void 0 : V.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14217
14238
  }), g = ref(!1);
14218
14239
  async function E(p) {
14219
14240
  if (!i.value)
@@ -14224,7 +14245,7 @@ const KgButtonCreate = defineComponent({
14224
14245
  try {
14225
14246
  const m = new FormData();
14226
14247
  m.append("file", p);
14227
- const b = await httpClient().axiosInstance.request({
14248
+ const y = await httpClient().axiosInstance.request({
14228
14249
  method: c.value,
14229
14250
  baseURL: window._CONFIG.domianURL,
14230
14251
  url: i.value,
@@ -14245,7 +14266,7 @@ const KgButtonCreate = defineComponent({
14245
14266
  }
14246
14267
  return !1;
14247
14268
  }
14248
- function y() {
14269
+ function b() {
14249
14270
  return g.value ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
14250
14271
  class: "anticon"
14251
14272
  }, [createVNode(Icon, {
@@ -14262,7 +14283,7 @@ const KgButtonCreate = defineComponent({
14262
14283
  disabled: g.value
14263
14284
  }, {
14264
14285
  default: () => {
14265
- var p, m, b, T;
14286
+ var p, m, y, T;
14266
14287
  return [createVNode(Button, {
14267
14288
  class: r.class,
14268
14289
  type: "primary",
@@ -14271,10 +14292,10 @@ const KgButtonCreate = defineComponent({
14271
14292
  loading: g.value,
14272
14293
  "kg-id": (p = o.value) == null ? void 0 : p.id,
14273
14294
  "kg-frm_id": (m = o.value) == null ? void 0 : m.frm_id,
14274
- "kg-var_nam": (b = o.value) == null ? void 0 : b.var_nam,
14295
+ "kg-var_nam": (y = o.value) == null ? void 0 : y.var_nam,
14275
14296
  "kg-cmd": (T = o.value) == null ? void 0 : T.cmd
14276
14297
  }, {
14277
- default: () => [y(), _()]
14298
+ default: () => [b(), _()]
14278
14299
  })];
14279
14300
  }
14280
14301
  });
@@ -14284,29 +14305,29 @@ const KgButtonCreate = defineComponent({
14284
14305
  props: getProps$f(),
14285
14306
  setup(e) {
14286
14307
  const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), s = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), l = computed(() => {
14287
- var y, _;
14288
- return s.value ? (_ = (y = s.value) == null ? void 0 : y.cmd) != null ? _ : "" : null;
14308
+ var b, _;
14309
+ return s.value ? (_ = (b = s.value) == null ? void 0 : b.cmd) != null ? _ : "" : null;
14289
14310
  }), o = computed(() => {
14290
- var y, _;
14291
- return (_ = (y = s.value) == null ? void 0 : y.cmd_method) != null ? _ : "GET";
14311
+ var b, _;
14312
+ return (_ = (b = s.value) == null ? void 0 : b.cmd_method) != null ? _ : "GET";
14292
14313
  }), i = computed(() => {
14293
- var _, p, m, b, T;
14294
- let y = {
14314
+ var _, p, m, y, T;
14315
+ let b = {
14295
14316
  ...(_ = a.model.value) != null ? _ : {}
14296
14317
  };
14297
- return s.value && (y = {
14298
- ...y,
14318
+ return s.value && (b = {
14319
+ ...b,
14299
14320
  ...KgVarUtil.parseCommandParameter((m = (p = s.value) == null ? void 0 : p.cmd_prm) != null ? m : "")
14300
- }), (b = r.varGridConfig.value) != null && b.cmd_prm && (y = {
14301
- ...y,
14321
+ }), (y = r.varGridConfig.value) != null && y.cmd_prm && (b = {
14322
+ ...b,
14302
14323
  ...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
14303
- }), y;
14324
+ }), b;
14304
14325
  }), c = computed(() => {
14305
- var y, _, p, m, b, T, k, I;
14306
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((p = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) === 0 || ((m = s.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((I = s.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14326
+ var b, _, p, m, y, T, k, I;
14327
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((b = s.value) == null ? void 0 : b.dis_no_select_flg) === 1 && ((p = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) === 0 || ((m = s.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((I = s.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14307
14328
  }), u = ref(!1);
14308
14329
  async function d() {
14309
- var y, _;
14330
+ var b, _;
14310
14331
  if (!l.value) {
14311
14332
  KgLogger.error("[KgButton] '\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
14312
14333
  VarButton: s.value
@@ -14323,7 +14344,7 @@ const KgButtonCreate = defineComponent({
14323
14344
  }, {
14324
14345
  joinParamsToUrl: !0,
14325
14346
  isTransformResponse: !1
14326
- }), m = (y = s.value) == null ? void 0 : y.export_excel_filename;
14347
+ }), m = (b = s.value) == null ? void 0 : b.export_excel_filename;
14327
14348
  KgUtil.downloadFile(p, `${m ? r.t(m).value : t.t("kg.importTemplate")}.${(_ = s.value) == null ? void 0 : _.export_excel_suffix}`);
14328
14349
  } catch (p) {
14329
14350
  throw p;
@@ -14342,14 +14363,14 @@ const KgButtonCreate = defineComponent({
14342
14363
  return e.kgText ? e.kgText : t.t("kg.downloadImportTemplate");
14343
14364
  }
14344
14365
  return () => {
14345
- var y, _, p, m;
14366
+ var b, _, p, m;
14346
14367
  return createVNode(Button, {
14347
14368
  type: "primary",
14348
14369
  disabled: c.value,
14349
14370
  ghost: !e.kgPrimary && !c.value,
14350
14371
  loading: u.value,
14351
14372
  onClick: d,
14352
- "kg-id": (y = s.value) == null ? void 0 : y.id,
14373
+ "kg-id": (b = s.value) == null ? void 0 : b.id,
14353
14374
  "kg-frm_id": (_ = s.value) == null ? void 0 : _.frm_id,
14354
14375
  "kg-var_nam": (p = s.value) == null ? void 0 : p.var_nam,
14355
14376
  "kg-cmd": (m = s.value) == null ? void 0 : m.cmd
@@ -14363,14 +14384,14 @@ const KgButtonCreate = defineComponent({
14363
14384
  props: getProps$f(),
14364
14385
  setup(e) {
14365
14386
  const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgButton(), s = useKgTable(), l = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
14366
- var d, g, E, y, _, p, m, b;
14367
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = l.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((E = (g = s.selectedRows.value) == null ? void 0 : g.length) != null ? E : 0) === 0 || ((y = l.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((p = (_ = s.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) > 1 || ((m = l.value) == null ? void 0 : m.permission_type) === 2 && !t.p((b = l.value) == null ? void 0 : b.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14387
+ var d, g, E, b, _, p, m, y;
14388
+ return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = l.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((E = (g = s.selectedRows.value) == null ? void 0 : g.length) != null ? E : 0) === 0 || ((b = l.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((p = (_ = s.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) > 1 || ((m = l.value) == null ? void 0 : m.permission_type) === 2 && !t.p((y = l.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14368
14389
  });
14369
14390
  async function i() {
14370
- var y, _, p;
14391
+ var b, _, p;
14371
14392
  if (e.onKgClick && await e.onKgClick())
14372
14393
  return;
14373
- const d = (y = e.kgButton) == null ? void 0 : y.cmd;
14394
+ const d = (b = e.kgButton) == null ? void 0 : b.cmd;
14374
14395
  if (!d) {
14375
14396
  KgLogger.error("[KgButton] \u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
14376
14397
  VarButton: e.kgButton
@@ -14379,12 +14400,12 @@ const KgButtonCreate = defineComponent({
14379
14400
  }
14380
14401
  let g = null;
14381
14402
  const E = async () => {
14382
- var b, T, k, I, C, V;
14403
+ var y, T, k, I, C, V;
14383
14404
  g == null || g.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
14384
14405
  const m = s.selectedRows.value;
14385
14406
  try {
14386
14407
  const A = await httpClient().request({
14387
- method: (T = (b = e.kgButton) == null ? void 0 : b.cmd_method) != null ? T : "POST",
14408
+ method: (T = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? T : "POST",
14388
14409
  url: d,
14389
14410
  params: KgVarUtil.parseCommandParameter((I = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? I : ""),
14390
14411
  data: m != null ? m : []
@@ -14434,7 +14455,7 @@ const KgButtonCreate = defineComponent({
14434
14455
  return e.kgText ? e.kgText : t.t("kg.button");
14435
14456
  }
14436
14457
  return () => {
14437
- var d, g, E, y;
14458
+ var d, g, E, b;
14438
14459
  return createVNode(Button, {
14439
14460
  type: "primary",
14440
14461
  disabled: o.value,
@@ -14444,7 +14465,7 @@ const KgButtonCreate = defineComponent({
14444
14465
  "kg-id": (d = l.value) == null ? void 0 : d.id,
14445
14466
  "kg-frm_id": (g = l.value) == null ? void 0 : g.frm_id,
14446
14467
  "kg-var_nam": (E = l.value) == null ? void 0 : E.var_nam,
14447
- "kg-cmd": (y = l.value) == null ? void 0 : y.cmd
14468
+ "kg-cmd": (b = l.value) == null ? void 0 : b.cmd
14448
14469
  }, {
14449
14470
  default: () => [c(), u()]
14450
14471
  });
@@ -14521,7 +14542,7 @@ const KgButtonCreate = defineComponent({
14521
14542
  function E() {
14522
14543
  o.store.emit(s.formID, "submitSave", {});
14523
14544
  }
14524
- function y() {
14545
+ function b() {
14525
14546
  o.store.emit(s.formID, "submitCancel", {});
14526
14547
  }
14527
14548
  function _() {
@@ -14550,7 +14571,7 @@ const KgButtonCreate = defineComponent({
14550
14571
  default: () => [_(), p()]
14551
14572
  });
14552
14573
  }
14553
- function b() {
14574
+ function y() {
14554
14575
  return i.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
14555
14576
  type: "primary",
14556
14577
  onClick: E,
@@ -14561,12 +14582,12 @@ const KgButtonCreate = defineComponent({
14561
14582
  type: "primary",
14562
14583
  ghost: !d.value,
14563
14584
  disabled: d.value,
14564
- onClick: y
14585
+ onClick: b
14565
14586
  }, {
14566
14587
  default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
14567
14588
  })]);
14568
14589
  }
14569
- return () => createVNode(Fragment, null, [m(), b()]);
14590
+ return () => createVNode(Fragment, null, [m(), y()]);
14570
14591
  }
14571
14592
  }), KgButton_Item = "";
14572
14593
  function _isSlot$4(e) {
@@ -14640,8 +14661,8 @@ const getProps$e = () => ({
14640
14661
  }
14641
14662
  function i(_) {
14642
14663
  return computed(() => {
14643
- var m, b;
14644
- const p = ((b = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgButton) == null ? void 0 : b.kgDisabled) || e.kgDisabled;
14664
+ var m, y;
14665
+ const p = ((y = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgButton) == null ? void 0 : y.kgDisabled) || e.kgDisabled;
14645
14666
  if (p) {
14646
14667
  const T = p(_);
14647
14668
  if (!isNil(T))
@@ -14669,7 +14690,7 @@ const getProps$e = () => ({
14669
14690
  return null;
14670
14691
  switch ((p = n.varGridConfig.value) == null ? void 0 : p.button_display_type) {
14671
14692
  case KG_BUTTON_DISPLAY_TYPE.SELECT:
14672
- return y();
14693
+ return b();
14673
14694
  default:
14674
14695
  return E();
14675
14696
  }
@@ -14691,7 +14712,7 @@ const getProps$e = () => ({
14691
14712
  var _;
14692
14713
  return (_ = n.varButtons.value) == null ? void 0 : _.filter((p) => p.typ !== KG_BUTTON_TYPE.SEARCH).map((p) => g(p));
14693
14714
  }
14694
- function y() {
14715
+ function b() {
14695
14716
  return createVNode(Dropdown, {
14696
14717
  trigger: "click",
14697
14718
  overlayClassName: "kg-button-dropdown"
@@ -14705,9 +14726,9 @@ const getProps$e = () => ({
14705
14726
  default: () => {
14706
14727
  var _, p;
14707
14728
  return [(p = (_ = n.varButtons.value) == null ? void 0 : _.filter((m) => m.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : p.filter((m) => !(m.permission_type !== 2 && !a.p(m.permission_code))).map((m) => {
14708
- let b;
14709
- return createVNode(Menu.Item, null, _isSlot$3(b = g(m)) ? b : {
14710
- default: () => [b]
14729
+ let y;
14730
+ return createVNode(Menu.Item, null, _isSlot$3(y = g(m)) ? y : {
14731
+ default: () => [y]
14711
14732
  });
14712
14733
  })];
14713
14734
  }
@@ -15201,11 +15222,11 @@ function _useDragRow(e, t, r) {
15201
15222
  g.setAttribute("id", "__kg_search_config_fields_drag_image__");
15202
15223
  const {
15203
15224
  width: E,
15204
- height: y
15225
+ height: b
15205
15226
  } = u.parentElement.getBoundingClientRect();
15206
- E && y && (g.style.width = `${E + 2}px`, g.style.height = `${y + 2}px`), (p = d.dataTransfer) == null || p.setDragImage(g, -10, (y + 2) / 2);
15227
+ E && b && (g.style.width = `${E + 2}px`, g.style.height = `${b + 2}px`), (p = d.dataTransfer) == null || p.setDragImage(g, -10, (b + 2) / 2);
15207
15228
  const _ = await toCanvas(u.parentElement);
15208
- g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (y + 2) / 2);
15229
+ g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (b + 2) / 2);
15209
15230
  }, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
15210
15231
  u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
15211
15232
  const g = document.querySelector("#__kg_search_config_fields_drag_image__");
@@ -15229,8 +15250,8 @@ function _useDragRow(e, t, r) {
15229
15250
  d.preventDefault(), KgUtil.showLoading();
15230
15251
  const g = document.querySelector("#__kg_search_config_fields_drag_image__");
15231
15252
  g && document.body.removeChild(g), u.classList.remove("dragover", "dragover-right", "dragover-left");
15232
- const E = s == null ? void 0 : s.getAttribute("kg-var_nam"), y = u.getAttribute("kg-var_nam");
15233
- E !== y && i(E, y);
15253
+ const E = s == null ? void 0 : s.getAttribute("kg-var_nam"), b = u.getAttribute("kg-var_nam");
15254
+ E !== b && i(E, b);
15234
15255
  }, u.addEventListener("drop", u.__kg__drop__);
15235
15256
  }
15236
15257
  function o() {
@@ -15252,9 +15273,9 @@ function _useDragRow(e, t, r) {
15252
15273
  const g = t.value.findIndex((p) => p.var_nam === u), E = t.value.findIndex((p) => p.var_nam === d);
15253
15274
  if (g === -1 || E === -1)
15254
15275
  return;
15255
- const y = t.value.find((p) => p.var_nam === u), _ = [];
15276
+ const b = t.value.find((p) => p.var_nam === u), _ = [];
15256
15277
  t.value.forEach((p, m) => {
15257
- g > E ? m < E ? _.push(p) : m === E ? (_.push(y), _.push(p)) : m > E && m !== g && _.push(p) : g < E && (m < g ? _.push(p) : m === g || (m === E ? (_.push(p), _.push(y)) : _.push(p)));
15278
+ g > E ? m < E ? _.push(p) : m === E ? (_.push(b), _.push(p)) : m > E && m !== g && _.push(p) : g < E && (m < g ? _.push(p) : m === g || (m === E ? (_.push(p), _.push(b)) : _.push(p)));
15258
15279
  }), _.forEach((p, m) => {
15259
15280
  p.srtseq = m + 1;
15260
15281
  }), t.value = _, nextTick().finally(() => {
@@ -15288,7 +15309,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15288
15309
  isCreating: _,
15289
15310
  isUpdating: p,
15290
15311
  isCopying: m,
15291
- row: b,
15312
+ row: y,
15292
15313
  model: T
15293
15314
  }) => {
15294
15315
  var I, C, V, A, O;
@@ -15300,12 +15321,12 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15300
15321
  }
15301
15322
  case p:
15302
15323
  case m: {
15303
- if (b != null && b.id)
15324
+ if (y != null && y.id)
15304
15325
  try {
15305
15326
  o.store.setIsLoading(a.formID, !0);
15306
15327
  const M = await QueryByID({
15307
15328
  params: {
15308
- id: b.id
15329
+ id: y.id
15309
15330
  }
15310
15331
  });
15311
15332
  i.value = i.value.map((L) => {
@@ -15339,9 +15360,9 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15339
15360
  }), o.onBeforeOk(async ({
15340
15361
  model: _
15341
15362
  }) => {
15342
- var m, b;
15363
+ var m, y;
15343
15364
  const p = _.value;
15344
- return p.frm_id = r.formID, p.varProfileDetails = (b = (m = i.value) == null ? void 0 : m.filter((T) => c.value.includes(T.id))) != null ? b : [], !1;
15365
+ return p.frm_id = r.formID, p.varProfileDetails = (y = (m = i.value) == null ? void 0 : m.filter((T) => c.value.includes(T.id))) != null ? y : [], !1;
15345
15366
  }), o.onOk(async () => (r.store.retrieve(r.formID), !1)), l.onUpdateBeforeClick(({
15346
15367
  row: _
15347
15368
  }) => (_ == null ? void 0 : _.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((p) => {
@@ -15397,7 +15418,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15397
15418
  direction: _,
15398
15419
  filteredItems: p,
15399
15420
  selectedKeys: m,
15400
- disabled: b,
15421
+ disabled: y,
15401
15422
  onItemSelectAll: T,
15402
15423
  onItemSelect: k
15403
15424
  }) => {
@@ -15419,12 +15440,12 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15419
15440
  dataSource: I,
15420
15441
  customRow: (A) => {
15421
15442
  let O = {
15422
- onClick: (M) => y(M, A, _, m)
15443
+ onClick: (M) => b(M, A, _, m)
15423
15444
  };
15424
15445
  return _ === "right" && (O["kg-host-frm_id"] = r.formID, O["kg-var_nam"] = A.var_nam), O;
15425
15446
  },
15426
15447
  rowSelection: E({
15427
- disabled: b,
15448
+ disabled: y,
15428
15449
  selectedKeys: m,
15429
15450
  onItemSelectAll: T,
15430
15451
  onItemSelect: k
@@ -15438,7 +15459,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15438
15459
  disabled: _,
15439
15460
  selectedKeys: p,
15440
15461
  onItemSelectAll: m,
15441
- onItemSelect: b
15462
+ onItemSelect: y
15442
15463
  }) => ({
15443
15464
  getCheckboxProps: (T) => ({
15444
15465
  disabled: _ || T.disabled
@@ -15452,16 +15473,16 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
15452
15473
  onSelect({
15453
15474
  key: T
15454
15475
  }, k) {
15455
- b(T, k);
15476
+ y(T, k);
15456
15477
  },
15457
15478
  selectedRowKeys: p,
15458
15479
  columnWidth: 32
15459
15480
  });
15460
- function y(_, p, m, b) {
15481
+ function b(_, p, m, y) {
15461
15482
  if (!KgDomUtil.isNotClickable(_.target, ["ant-input"]))
15462
- switch (b.length = 0, _.detail) {
15483
+ switch (y.length = 0, _.detail) {
15463
15484
  case 1:
15464
- b[0] = p.id;
15485
+ y[0] = p.id;
15465
15486
  break;
15466
15487
  case 2:
15467
15488
  switch (m) {
@@ -15570,11 +15591,11 @@ function _useLayoutHeaderResizeObserver() {
15570
15591
  }
15571
15592
  function _useCommon() {
15572
15593
  const e = inject(DI_KG_VAR__KG_PROPS, null), t = useKgVar(), r = computed(() => t.store.getVarProfileConfig(t.formID)), a = computed(() => t.store.getFormLevel(t.formID)), n = ref(!0), s = computed(() => {
15573
- var g, E, y;
15594
+ var g, E, b;
15574
15595
  if (!n.value || a.value > 0)
15575
15596
  return !1;
15576
15597
  const d = (E = (g = e == null ? void 0 : e.value) == null ? void 0 : g.KgSearch) == null ? void 0 : E.kgHeaderTeleport;
15577
- return d !== void 0 ? d : ((y = r.value) == null ? void 0 : y.header_teleport_flg) !== 0;
15598
+ return d !== void 0 ? d : ((b = r.value) == null ? void 0 : b.header_teleport_flg) !== 0;
15578
15599
  }), l = computed(() => {
15579
15600
  var d;
15580
15601
  return ((d = r.value) == null ? void 0 : d.vis_flg) === 1;
@@ -15605,16 +15626,16 @@ function _useFormModel(e, t, r) {
15605
15626
  const u = ref({}), d = ref({});
15606
15627
  async function g() {
15607
15628
  var E;
15608
- ((E = n.currentVarProfileDetails.value) != null ? E : []).forEach((y) => {
15609
- var p, m, b;
15610
- const _ = (p = y.var_nam) != null ? p : "";
15611
- u.value[_] = KgVarUtil.transformFormItemValue(n.formID, _, a, (m = y.dft_val) != null ? m : void 0, "R"), d.value[_] = KgVarUtil.transformFormItemDynamicQueryOperator(n.formID, _, (b = y.dft_dyn_op) != null ? b : void 0);
15612
- }), r.value.kgHeight = o.value, s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value), l.value ? (c == null || c(), c = watch(t, async (y) => {
15613
- y && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
15629
+ ((E = n.currentVarProfileDetails.value) != null ? E : []).forEach((b) => {
15630
+ var p, m, y;
15631
+ const _ = (p = b.var_nam) != null ? p : "";
15632
+ u.value[_] = KgVarUtil.transformFormItemValue(n.formID, _, a, (m = b.dft_val) != null ? m : void 0, "R"), d.value[_] = KgVarUtil.transformFormItemDynamicQueryOperator(n.formID, _, (y = b.dft_dyn_op) != null ? y : void 0);
15633
+ }), r.value.kgHeight = o.value, s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value), l.value ? (c == null || c(), c = watch(t, async (b) => {
15634
+ b && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
15614
15635
  }, {
15615
15636
  immediate: !0
15616
- })) : (i == null || i(), i = watch(e, async (y) => {
15617
- y && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
15637
+ })) : (i == null || i(), i = watch(e, async (b) => {
15638
+ b && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
15618
15639
  }, {
15619
15640
  immediate: !0
15620
15641
  }));
@@ -15651,17 +15672,17 @@ const KgSearch$1 = "", getProps$9 = () => ({
15651
15672
  defaultHeight: u,
15652
15673
  maxHeight: d,
15653
15674
  minHeight: g
15654
- } = _useCommon(), E = ref(null), y = ref(null), _ = ref({
15675
+ } = _useCommon(), E = ref(null), b = ref(null), _ = ref({
15655
15676
  kgHeight: g.value
15656
15677
  });
15657
15678
  _useLayoutHeaderResizeObserver();
15658
- const p = _useFormModel(E, y, _), m = computed(() => {
15679
+ const p = _useFormModel(E, b, _), m = computed(() => {
15659
15680
  var N, x, Y, q;
15660
15681
  if (!isNil((x = (N = r == null ? void 0 : r.value) == null ? void 0 : N.KgSearch) == null ? void 0 : x.kgDisabled))
15661
15682
  return (q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgSearch) == null ? void 0 : q.kgDisabled;
15662
15683
  if (!isNil(e.kgDisabled))
15663
15684
  return e.kgDisabled;
15664
- }), b = computed(() => {
15685
+ }), y = computed(() => {
15665
15686
  var N, x;
15666
15687
  return !!(m.value || l.isRetrieving.value || ((N = n.varButtonSearch.value) == null ? void 0 : N.permission_type) === 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);
15667
15688
  }), 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({
@@ -15698,7 +15719,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
15698
15719
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u521B\u5EFA/\u66F4\u65B0/\u590D\u5236/\u5220\u9664.`);
15699
15720
  return;
15700
15721
  }
15701
- o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), y.value && y.value.validate().then(async () => {
15722
+ o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), b.value && b.value.validate().then(async () => {
15702
15723
  await s.store.emit(n.formID, "search", N);
15703
15724
  }).catch((q) => {
15704
15725
  KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
@@ -15708,7 +15729,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
15708
15729
  }
15709
15730
  s.store.setSearchFn(n.formID, L);
15710
15731
  async function H() {
15711
- p.initFormModel(), o.value ? y.value && y.value.validate().then(async () => {
15732
+ p.initFormModel(), o.value ? b.value && b.value.validate().then(async () => {
15712
15733
  await s.store.emit(n.formID, "reset", {});
15713
15734
  }).catch((N) => {
15714
15735
  KgLogger.debug(`${n.formID} | KgSearch | onReset() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
@@ -15726,7 +15747,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
15726
15747
  var N;
15727
15748
  return createVNode("div", {
15728
15749
  class: "title",
15729
- onClick: U
15750
+ onClick: G
15730
15751
  }, [((N = t == null ? void 0 : t.KgSearch) == null ? void 0 : N.left) && createVNode("div", {
15731
15752
  class: "kg-search-title-left",
15732
15753
  onClick: (x) => {
@@ -15771,8 +15792,8 @@ const KgSearch$1 = "", getProps$9 = () => ({
15771
15792
  var N, x, Y, q, X;
15772
15793
  return createVNode(Fragment, null, [R(), !(((N = n.varButtonSearch.value) == null ? void 0 : N.permission_type) !== 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code)) && createVNode(Button, {
15773
15794
  type: "primary",
15774
- ghost: !b.value,
15775
- disabled: b.value,
15795
+ ghost: !y.value,
15796
+ disabled: y.value,
15776
15797
  onClick: H,
15777
15798
  class: "kg-search-btn-reset"
15778
15799
  }, {
@@ -15795,7 +15816,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
15795
15816
  default: () => {
15796
15817
  var N;
15797
15818
  return [createVNode(KgForm, {
15798
- ref: y,
15819
+ ref: b,
15799
15820
  model: (N = s.model.value) != null ? N : {}
15800
15821
  }, {
15801
15822
  default: () => [createVNode(Row, {
@@ -15817,7 +15838,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
15817
15838
  }
15818
15839
  });
15819
15840
  }
15820
- function U() {
15841
+ function G() {
15821
15842
  C.value ? _.value.kgHeight = u.value : _.value.kgHeight = g.value;
15822
15843
  }
15823
15844
  return () => createVNode(KgResizable, {
@@ -15916,8 +15937,8 @@ function useMagicKeys(e = {}) {
15916
15937
  d(_, !1);
15917
15938
  }
15918
15939
  function E(_, p) {
15919
- var m, b;
15920
- const T = (m = _.key) == null ? void 0 : m.toLowerCase(), k = (b = _.code) == null ? void 0 : b.toLowerCase(), I = [k, T].filter(Boolean);
15940
+ var m, y;
15941
+ const T = (m = _.key) == null ? void 0 : m.toLowerCase(), k = (y = _.code) == null ? void 0 : y.toLowerCase(), I = [k, T].filter(Boolean);
15921
15942
  k && (p ? l.add(_.code) : l.delete(_.code));
15922
15943
  for (const C of I)
15923
15944
  u.add(C), d(C, p);
@@ -15926,21 +15947,21 @@ function useMagicKeys(e = {}) {
15926
15947
  }), c.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && p && [...l, ...I].forEach((C) => c.add(C));
15927
15948
  }
15928
15949
  r && (useEventListener(r, "keydown", (_) => (E(_, !0), s(_)), { passive: n }), useEventListener(r, "keyup", (_) => (E(_, !1), s(_)), { passive: n }), useEventListener("blur", g, { passive: !0 }), useEventListener("focus", g, { passive: !0 }));
15929
- const y = new Proxy(i, {
15950
+ const b = new Proxy(i, {
15930
15951
  get(_, p, m) {
15931
15952
  if (typeof p != "string")
15932
15953
  return Reflect.get(_, p, m);
15933
15954
  if (p = p.toLowerCase(), p in a && (p = a[p]), !(p in i))
15934
15955
  if (/[+_-]/.test(p)) {
15935
15956
  const T = p.split(/[+_-]/g).map((k) => k.trim());
15936
- i[p] = computed(() => T.every((k) => unref(y[k])));
15957
+ i[p] = computed(() => T.every((k) => unref(b[k])));
15937
15958
  } else
15938
15959
  i[p] = ref(!1);
15939
- const b = Reflect.get(_, p, m);
15940
- return t ? unref(b) : b;
15960
+ const y = Reflect.get(_, p, m);
15961
+ return t ? unref(y) : y;
15941
15962
  }
15942
15963
  });
15943
- return y;
15964
+ return b;
15944
15965
  }
15945
15966
  var SwipeDirection;
15946
15967
  (function(e) {
@@ -16325,19 +16346,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16325
16346
  onSelect: (L) => V(L)
16326
16347
  }), E = ref({
16327
16348
  visible: !1
16328
- }), y = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(l))), _ = computed(() => {
16349
+ }), b = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(l))), _ = computed(() => {
16329
16350
  var L;
16330
16351
  return !!u.value || ((L = a.getSelectedVarCatalog) == null ? void 0 : L.cust_lvl) === KG_CUSTOM_LEVEL.L0;
16331
16352
  }), p = computed(() => !!(!unref(u) || unref(n) || unref(s))), m = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
16332
16353
  watch(() => a.getSelectedVar, (L) => {
16333
- L ? b() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
16354
+ L ? y() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
16334
16355
  }, {
16335
16356
  immediate: !0
16336
16357
  }), watch(() => a.getSelectedVarCatalog, async (L) => {
16337
16358
  var H, w;
16338
16359
  i.value.var_text = (H = L == null ? void 0 : L.var_text) != null ? H : "", (w = o.value) == null || w.clearValidate();
16339
16360
  });
16340
- async function b(L = !1) {
16361
+ async function y(L = !1) {
16341
16362
  var H, w, D;
16342
16363
  n.value = !0;
16343
16364
  try {
@@ -16355,8 +16376,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16355
16376
  });
16356
16377
  if (u.value = null, c.value = R != null ? R : [], L) {
16357
16378
  const $ = c.value.find((P) => {
16358
- var U;
16359
- return P.id === ((U = a.getSelectedVarCatalog) == null ? void 0 : U.id);
16379
+ var G;
16380
+ return P.id === ((G = a.getSelectedVarCatalog) == null ? void 0 : G.id);
16360
16381
  });
16361
16382
  a.setSelectedVarCatalog($ != null ? $ : null), d.value = $ != null && $.id ? [$.id] : [];
16362
16383
  } else
@@ -16381,19 +16402,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16381
16402
  successMessageMode: "none"
16382
16403
  }), message.success({
16383
16404
  content: t.t("kg.KgVarConfig.createSuccess")
16384
- }), await b()) : (await Edit({
16405
+ }), await y()) : (await Edit({
16385
16406
  data: D
16386
16407
  }, {
16387
16408
  successMessageMode: "none"
16388
16409
  }), message.success({
16389
16410
  content: t.t("kg.KgVarConfig.saveSuccess")
16390
- }), await b(!0)) : (await Add({
16411
+ }), await y(!0)) : (await Add({
16391
16412
  data: D
16392
16413
  }, {
16393
16414
  successMessageMode: "none"
16394
16415
  }), message.success({
16395
16416
  content: t.t("kg.KgVarConfig.createSuccess")
16396
- }), await b()), r.retrieve(e == null ? void 0 : e.value);
16417
+ }), await y()), r.retrieve(e == null ? void 0 : e.value);
16397
16418
  } catch (D) {
16398
16419
  KgUtil.throwIfNotFormError(D);
16399
16420
  } finally {
@@ -16434,7 +16455,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16434
16455
  joinParamsToUrl: !0
16435
16456
  }), message.success({
16436
16457
  content: t.t("kg.KgVarConfig.deleteSuccess")
16437
- }), r.retrieve(e == null ? void 0 : e.value), await b();
16458
+ }), r.retrieve(e == null ? void 0 : e.value), await y();
16438
16459
  }
16439
16460
  });
16440
16461
  }
@@ -16455,7 +16476,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
16455
16476
  class: "buttons"
16456
16477
  }, [createVNode(Button, {
16457
16478
  onClick: A,
16458
- disabled: y.value,
16479
+ disabled: b.value,
16459
16480
  type: "primary"
16460
16481
  }, {
16461
16482
  default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
@@ -16877,7 +16898,7 @@ const KgWarehouse$1 = "", getProps = () => ({
16877
16898
  return ((k = r.option.value.KgWarehouse) == null ? void 0 : k.on) !== !1;
16878
16899
  });
16879
16900
  watch(a.visible, (k) => {
16880
- !g.value || (k ? y() : _());
16901
+ !g.value || (k ? b() : _());
16881
16902
  }, {
16882
16903
  immediate: !0
16883
16904
  }), onMounted(() => {
@@ -16886,7 +16907,7 @@ const KgWarehouse$1 = "", getProps = () => ({
16886
16907
  function E() {
16887
16908
  !g.value || a.store.setVisible(!0);
16888
16909
  }
16889
- function y() {
16910
+ function b() {
16890
16911
  o.value = a.warehouse.value, m();
16891
16912
  }
16892
16913
  function _() {
@@ -16924,7 +16945,7 @@ const KgWarehouse$1 = "", getProps = () => ({
16924
16945
  i.value = !1;
16925
16946
  }
16926
16947
  }
16927
- function b(k, I) {
16948
+ function y(k, I) {
16928
16949
  var C;
16929
16950
  switch (k.detail) {
16930
16951
  case 1:
@@ -16987,7 +17008,7 @@ const KgWarehouse$1 = "", getProps = () => ({
16987
17008
  var I;
16988
17009
  return {
16989
17010
  class: k.id === ((I = o.value) == null ? void 0 : I.id) ? "selected" : "",
16990
- onClick: (C) => b(C, k)
17011
+ onClick: (C) => y(C, k)
16991
17012
  };
16992
17013
  }
16993
17014
  }, null)]
@@ -17075,10 +17096,10 @@ class KgUtil {
17075
17096
  break;
17076
17097
  }
17077
17098
  case (!!a && a.isDayjs(o)):
17078
- s[l] = this.parseParamFromDayJS(l, o, r);
17099
+ s[l] = this.parseParamFromDayJS(l, o, r, !0);
17079
17100
  break;
17080
17101
  case (!!a && isArray$1(o) && o.length === 2 && a.isDayjs(o[0]) && a.isDayjs(o[1])):
17081
- s[l] = void 0, s[`${l}_begin`] = this.parseParamFromDayJS(l, o[0], r), s[`${l}_end`] = this.parseParamFromDayJS(l, o[1], r);
17102
+ s[l] = void 0, s[`${l}_begin`] = this.parseParamFromDayJS(l, o[0], r, !0), s[`${l}_end`] = this.parseParamFromDayJS(l, o[1], r, !0);
17082
17103
  break;
17083
17104
  case isObjectLike(o):
17084
17105
  s[l] = this.parseParams(o, r, a);
@@ -17124,24 +17145,24 @@ class KgUtil {
17124
17145
  if (!s || !isObjectLike(s))
17125
17146
  return { sql: "", whereSql: "", orderBySql: "" };
17126
17147
  const l = ["pageNo", "pageSize", "column", "order"], o = useKg(), i = r ? useKgVar(r) : null, c = r ? useKgSearch(r).operatorModel.value : a, u = {};
17127
- Object.keys(s).sort().forEach((y) => {
17148
+ Object.keys(s).sort().forEach((b) => {
17128
17149
  var T, k, I, C, V;
17129
- if (l.includes(y)) {
17130
- u[y] = s[y];
17150
+ if (l.includes(b)) {
17151
+ u[b] = s[b];
17131
17152
  return;
17132
17153
  }
17133
- const _ = r ? (T = i == null ? void 0 : i.store) == null ? void 0 : T.getVarProfileDetail(r, y) : null, p = s[y];
17134
- let m = c == null ? void 0 : c[y];
17154
+ const _ = r ? (T = i == null ? void 0 : i.store) == null ? void 0 : T.getVarProfileDetail(r, b) : null, p = s[b];
17155
+ let m = c == null ? void 0 : c[b];
17135
17156
  (((I = (k = o.option.value.KgSearch) == null ? void 0 : k.dynamicQuery) == null ? void 0 : I.on) !== !0 || r && ((V = (C = i == null ? void 0 : i.currentVarProfileMaster) == null ? void 0 : C.value) == null ? void 0 : V.dyn_flg) !== 1) && (m = KG_DYNAMIC_QUERY_OPERATOR.EQ);
17136
- let b = y;
17137
- switch (r && (_ == null ? void 0 : _.use_underscore_when_dynamic_query_flag) !== 0 && (b = y.split(".").map((A) => snakeCase$1(A)).join(".")), !0) {
17138
- case y.endsWith("_obj"): {
17139
- u[y] = void 0;
17157
+ let y = b;
17158
+ switch (r && (_ == null ? void 0 : _.use_underscore_when_dynamic_query_flag) !== 0 && (y = b.split(".").map((A) => snakeCase$1(A)).join(".")), !0) {
17159
+ case b.endsWith("_obj"): {
17160
+ u[b] = void 0;
17140
17161
  break;
17141
17162
  }
17142
17163
  case (!!n && n.isDayjs(p)): {
17143
17164
  const A = p;
17144
- let O = r ? this.parseParamFromDayJS(y, A, r) : A.format("YYYY-MM-DD HH:mm:ss");
17165
+ let O = r ? this.parseParamFromDayJS(b, A, r) : A.format("YYYY-MM-DD HH:mm:ss");
17145
17166
  switch (m) {
17146
17167
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
17147
17168
  let M = O, K = "";
@@ -17151,7 +17172,7 @@ class KgUtil {
17151
17172
  break;
17152
17173
  }
17153
17174
  case /\d\d-\d\d-\d\d/.test(M): {
17154
- K = A.add(1, "day").format("YYYY-MM-DD");
17175
+ M = `${M} 00:00:00`, K = A.add(1, "day").format("YYYY-MM-DD 00:00:00");
17155
17176
  break;
17156
17177
  }
17157
17178
  case /\d\d:\d\d:\d\d/.test(M): {
@@ -17161,7 +17182,7 @@ class KgUtil {
17161
17182
  default:
17162
17183
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
17163
17184
  }
17164
- O = ` AND (${b} < '${M}' OR ${b} >= '${K}')`;
17185
+ O = ` AND (${y} < '${M}' OR ${y} >= '${K}')`;
17165
17186
  break;
17166
17187
  }
17167
17188
  case KG_DYNAMIC_QUERY_OPERATOR.LT: {
@@ -17169,16 +17190,18 @@ class KgUtil {
17169
17190
  switch (!0) {
17170
17191
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M):
17171
17192
  break;
17172
- case /\d\d-\d\d-\d\d/.test(M):
17193
+ case /\d\d-\d\d-\d\d/.test(M): {
17194
+ M = `${M} 00:00:00`;
17173
17195
  break;
17196
+ }
17174
17197
  case /\d\d:\d\d:\d\d/.test(M): {
17175
- M = A.format("1970-01-01 HH:mm:ss");
17198
+ M = `1970-01-01 ${M}`;
17176
17199
  break;
17177
17200
  }
17178
17201
  default:
17179
17202
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
17180
17203
  }
17181
- O = ` AND (${b} < '${M}')`;
17204
+ O = ` AND (${y} < '${M}')`;
17182
17205
  break;
17183
17206
  }
17184
17207
  case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
@@ -17189,7 +17212,7 @@ class KgUtil {
17189
17212
  break;
17190
17213
  }
17191
17214
  case /\d\d-\d\d-\d\d/.test(M): {
17192
- K = A.add(1, "day").format("YYYY-MM-DD");
17215
+ K = A.add(1, "day").format("YYYY-MM-DD 00:00:00");
17193
17216
  break;
17194
17217
  }
17195
17218
  case /\d\d:\d\d:\d\d/.test(M): {
@@ -17199,7 +17222,7 @@ class KgUtil {
17199
17222
  default:
17200
17223
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
17201
17224
  }
17202
- O = ` AND (${b} < '${K}')`;
17225
+ O = ` AND (${y} < '${K}')`;
17203
17226
  break;
17204
17227
  }
17205
17228
  case KG_DYNAMIC_QUERY_OPERATOR.GT: {
@@ -17210,17 +17233,17 @@ class KgUtil {
17210
17233
  break;
17211
17234
  }
17212
17235
  case /\d\d-\d\d-\d\d/.test(M): {
17213
- K = A.add(1, "day").format("YYYY-MM-DD");
17236
+ K = A.add(1, "day").format("YYYY-MM-DD 00:00:00");
17214
17237
  break;
17215
17238
  }
17216
17239
  case /\d\d:\d\d:\d\d/.test(M): {
17217
- M = A.format("1970-01-01 HH:mm:ss"), K = A.add(1, "second").format("1970-01-01 HH:mm:ss");
17240
+ K = A.add(1, "second").format("1970-01-01 HH:mm:ss");
17218
17241
  break;
17219
17242
  }
17220
17243
  default:
17221
17244
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
17222
17245
  }
17223
- O = ` AND (${b} >= '${K}')`;
17246
+ O = ` AND (${y} >= '${K}')`;
17224
17247
  break;
17225
17248
  }
17226
17249
  case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
@@ -17228,16 +17251,18 @@ class KgUtil {
17228
17251
  switch (!0) {
17229
17252
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M):
17230
17253
  break;
17231
- case /\d\d-\d\d-\d\d/.test(M):
17254
+ case /\d\d-\d\d-\d\d/.test(M): {
17255
+ M = `${M} 00:00:00`;
17232
17256
  break;
17257
+ }
17233
17258
  case /\d\d:\d\d:\d\d/.test(M): {
17234
- M = A.format("1970-01-01 HH:mm:ss");
17259
+ M = `1970-01-01 ${M}`;
17235
17260
  break;
17236
17261
  }
17237
17262
  default:
17238
17263
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
17239
17264
  }
17240
- O = ` AND (${b} >= '${M}')`;
17265
+ O = ` AND (${y} >= '${M}')`;
17241
17266
  break;
17242
17267
  }
17243
17268
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
@@ -17249,160 +17274,160 @@ class KgUtil {
17249
17274
  break;
17250
17275
  }
17251
17276
  case /\d\d-\d\d-\d\d/.test(M): {
17252
- K = A.add(1, "day").format("YYYY-MM-DD");
17277
+ M = `${M} 00:00:00`, K = A.add(1, "day").format("YYYY-MM-DD 00:00:00");
17253
17278
  break;
17254
17279
  }
17255
17280
  case /\d\d:\d\d:\d\d/.test(M): {
17256
- M = A.format("1970-01-01 HH:mm:ss"), K = A.add(1, "second").format("1970-01-01 HH:mm:ss");
17281
+ M = `1970-01-01 ${M}`, K = A.add(1, "second").format("1970-01-01 HH:mm:ss");
17257
17282
  break;
17258
17283
  }
17259
17284
  default:
17260
17285
  throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
17261
17286
  }
17262
- O = ` AND (${b} >= '${M}' AND ${b} < '${K}')`;
17287
+ O = ` AND (${y} >= '${M}' AND ${y} < '${K}')`;
17263
17288
  break;
17264
17289
  }
17265
17290
  }
17266
- u[y] = O;
17291
+ u[b] = O;
17267
17292
  break;
17268
17293
  }
17269
17294
  case (!!n && isArray$1(p) && p.length === 2 && n.isDayjs(p[0]) && n.isDayjs(p[1])): {
17270
17295
  const A = p[0], O = p[1];
17271
- let M = this.parseParamFromDayJS(y, A, r), K = "", L = "";
17296
+ let M = this.parseParamFromDayJS(b, A, r), K = "", L = "";
17272
17297
  switch (!0) {
17273
17298
  case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
17274
17299
  K = O.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
17275
17300
  break;
17276
17301
  }
17277
17302
  case /\d\d-\d\d-\d\d/.test(M): {
17278
- K = O.add(1, "day").format("YYYY-MM-DD");
17303
+ M = `${M} 00:00:00`, K = O.add(1, "day").format("YYYY-MM-DD 00:00:00");
17279
17304
  break;
17280
17305
  }
17281
17306
  case /\d\d:\d\d:\d\d/.test(M): {
17282
- M = A.format("1970-01-01 HH:mm:ss"), K = O.add(1, "second").format("1970-01-01 HH:mm:ss");
17307
+ M = `1970-01-01 ${M}`, K = O.add(1, "second").format("1970-01-01 HH:mm:ss");
17283
17308
  break;
17284
17309
  }
17285
17310
  }
17286
- K ? L = ` AND (${b} >= '${M}' AND ${b} < '${K}')` : L = ` AND (${b} >= '${M}')`, u[y] = L;
17311
+ K ? L = ` AND (${y} >= '${M}' AND ${y} < '${K}')` : L = ` AND (${y} >= '${M}')`, u[b] = L;
17287
17312
  break;
17288
17313
  }
17289
17314
  case Array.isArray(p): {
17290
17315
  if (p.length === 0) {
17291
- u[y] = void 0;
17316
+ u[b] = void 0;
17292
17317
  break;
17293
17318
  }
17294
17319
  const A = p.map((O) => `N'${String(O)}'`).join(", ");
17295
- u[y] = ` AND (${b} IN (${A}))`;
17320
+ u[b] = ` AND (${y} IN (${A}))`;
17296
17321
  break;
17297
17322
  }
17298
17323
  case isObjectLike(p):
17299
17324
  throw KgLogger.error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.", { value: p }), new Error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.");
17300
17325
  case typeof p == "string": {
17301
17326
  if (p.trim() === "") {
17302
- u[y] = void 0;
17327
+ u[b] = void 0;
17303
17328
  break;
17304
17329
  }
17305
17330
  let A = this.parseParamFromString(p);
17306
17331
  switch (m) {
17307
17332
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
17308
- A = ` AND (${b} <> N'${A}')`;
17333
+ A = ` AND (${y} <> N'${A}')`;
17309
17334
  break;
17310
17335
  }
17311
17336
  case KG_DYNAMIC_QUERY_OPERATOR.START_WITH: {
17312
- A = ` AND (${b} LIKE N'${A}%')`;
17337
+ A = ` AND (${y} LIKE N'${A}%')`;
17313
17338
  break;
17314
17339
  }
17315
17340
  case KG_DYNAMIC_QUERY_OPERATOR.END_WITH: {
17316
- A = ` AND (${b} LIKE N'%${A}')`;
17341
+ A = ` AND (${y} LIKE N'%${A}')`;
17317
17342
  break;
17318
17343
  }
17319
17344
  case KG_DYNAMIC_QUERY_OPERATOR.CONTAIN: {
17320
- A = ` AND (${b} LIKE N'%${A}%')`;
17345
+ A = ` AND (${y} LIKE N'%${A}%')`;
17321
17346
  break;
17322
17347
  }
17323
17348
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
17324
17349
  default: {
17325
- A = ` AND (${b} = N'${A}')`;
17350
+ A = ` AND (${y} = N'${A}')`;
17326
17351
  break;
17327
17352
  }
17328
17353
  }
17329
- u[y] = A;
17354
+ u[b] = A;
17330
17355
  break;
17331
17356
  }
17332
17357
  case typeof p == "number": {
17333
17358
  let A = "";
17334
17359
  switch (m) {
17335
17360
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
17336
- A = ` AND (${b} <> ${p})`;
17361
+ A = ` AND (${y} <> ${p})`;
17337
17362
  break;
17338
17363
  }
17339
17364
  case KG_DYNAMIC_QUERY_OPERATOR.LT: {
17340
- A = ` AND (${b} < ${p})`;
17365
+ A = ` AND (${y} < ${p})`;
17341
17366
  break;
17342
17367
  }
17343
17368
  case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
17344
- A = ` AND (${b} <= ${p})`;
17369
+ A = ` AND (${y} <= ${p})`;
17345
17370
  break;
17346
17371
  }
17347
17372
  case KG_DYNAMIC_QUERY_OPERATOR.GT: {
17348
- A = ` AND (${b} > ${p})`;
17373
+ A = ` AND (${y} > ${p})`;
17349
17374
  break;
17350
17375
  }
17351
17376
  case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
17352
- A = ` AND (${b} >= ${p})`;
17377
+ A = ` AND (${y} >= ${p})`;
17353
17378
  break;
17354
17379
  }
17355
17380
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
17356
17381
  default: {
17357
- A = ` AND (${b} = ${p})`;
17382
+ A = ` AND (${y} = ${p})`;
17358
17383
  break;
17359
17384
  }
17360
17385
  }
17361
- u[y] = A;
17386
+ u[b] = A;
17362
17387
  break;
17363
17388
  }
17364
17389
  case typeof p == "boolean": {
17365
17390
  let A = "";
17366
17391
  switch (m) {
17367
17392
  case KG_DYNAMIC_QUERY_OPERATOR.NE: {
17368
- A = ` AND (${b} <> ${p ? 1 : 0})`;
17393
+ A = ` AND (${y} <> ${p ? 1 : 0})`;
17369
17394
  break;
17370
17395
  }
17371
17396
  case KG_DYNAMIC_QUERY_OPERATOR.EQ:
17372
17397
  default: {
17373
- A = ` AND (${b} = ${p ? 1 : 0})`;
17398
+ A = ` AND (${y} = ${p ? 1 : 0})`;
17374
17399
  break;
17375
17400
  }
17376
17401
  }
17377
- u[y] = A;
17402
+ u[b] = A;
17378
17403
  break;
17379
17404
  }
17380
17405
  default: {
17381
- u[y] = p;
17406
+ u[b] = p;
17382
17407
  break;
17383
17408
  }
17384
17409
  }
17385
17410
  });
17386
- let g = `WHERE 1 = 1${reduce(
17411
+ let g = `WHERE (1 = 1)${reduce(
17387
17412
  u,
17388
- (y, _, p) => l.includes(p) || !_ ? y : y + _,
17413
+ (b, _, p) => l.includes(p) || !_ ? b : b + _,
17389
17414
  ""
17390
17415
  )}`;
17391
17416
  g = encodeURIComponent(g);
17392
17417
  let E = "";
17393
17418
  if (s.column) {
17394
- const y = r && i ? i.store.getVarProfileDetail(r, s.column) : null;
17419
+ const b = r && i ? i.store.getVarProfileDetail(r, s.column) : null;
17395
17420
  let _ = s.column;
17396
- y && (y == null ? void 0 : y.use_underscore_when_dynamic_query_flag) !== 0 && (_ = s.column.split(".").map((p) => snakeCase$1(p)).join(".")), E = `ORDER BY ${_}`, s.order === "asc" ? E += " ASC" : s.order === "desc" && (E += " DESC");
17421
+ b && (b == null ? void 0 : b.use_underscore_when_dynamic_query_flag) !== 0 && (_ = s.column.split(".").map((p) => snakeCase$1(p)).join(".")), E = `ORDER BY ${_}`, s.order === "asc" ? E += " ASC" : s.order === "desc" && (E += " DESC");
17397
17422
  }
17398
17423
  if (!isNil(s.pageNo)) {
17399
- const y = Number.parseInt(s.pageNo);
17400
- if (Number.isNaN(y) || y <= 0)
17424
+ const b = Number.parseInt(s.pageNo);
17425
+ if (Number.isNaN(b) || b <= 0)
17401
17426
  throw new Error("\u53C2\u6570 pageNo \u975E\u6CD5.");
17402
17427
  const _ = Number.parseInt(s.pageSize);
17403
17428
  if (Number.isNaN(_) || _ <= 0)
17404
17429
  throw new Error("\u53C2\u6570 pageSize \u975E\u6CD5.");
17405
- E += ` OFFSET ${(y - 1) * _} ROWS FETCH NEXT ${_} ROWS ONLY`;
17430
+ E += ` OFFSET ${(b - 1) * _} ROWS FETCH NEXT ${_} ROWS ONLY`;
17406
17431
  }
17407
17432
  return E = encodeURIComponent(E.trim()), { sql: `${g} ${E}`.trim(), whereSql: g, orderBySql: E };
17408
17433
  }
@@ -17424,34 +17449,34 @@ class KgUtil {
17424
17449
  } else
17425
17450
  return t;
17426
17451
  }
17427
- static parseParamFromDayJS(t, r, a) {
17452
+ static parseParamFromDayJS(t, r, a, n) {
17428
17453
  if (!a)
17429
17454
  return r.format("YYYY-MM-DD HH:mm:ss");
17430
- const n = useKgVar(a), s = useKgTable(a), l = n.store.getVarVariableConfig(a, t);
17431
- if (!l)
17455
+ const s = useKgVar(a), l = useKgTable(a), o = s.store.getVarVariableConfig(a, t);
17456
+ if (!o)
17432
17457
  return r;
17433
17458
  switch ((() => {
17434
- const i = l.ctrl_typ, c = l.prf_ctrl_typ, u = l.crt_ctrl_typ, d = l.upt_ctrl_typ, g = l.cpy_ctrl_typ, E = l.del_ctrl_typ;
17459
+ const c = o.ctrl_typ, u = o.prf_ctrl_typ, d = o.crt_ctrl_typ, g = o.upt_ctrl_typ, E = o.cpy_ctrl_typ, b = o.del_ctrl_typ;
17435
17460
  switch (!0) {
17436
- case s.isRetrieving.value:
17437
- return c || i;
17438
- case n.isCreating.value:
17439
- return u || i;
17440
- case n.isUpdating.value:
17441
- return d || i;
17442
- case n.isCopying.value:
17443
- return g || i;
17444
- case n.isDeleting.value:
17445
- return E || i;
17461
+ case l.isRetrieving.value:
17462
+ return u || c;
17463
+ case s.isCreating.value:
17464
+ return d || c;
17465
+ case s.isUpdating.value:
17466
+ return g || c;
17467
+ case s.isCopying.value:
17468
+ return E || c;
17469
+ case s.isDeleting.value:
17470
+ return b || c;
17446
17471
  }
17447
- return i;
17472
+ return c;
17448
17473
  })()) {
17449
17474
  case KG_FORM_ITEM_TYPE.DATE_DATE:
17450
17475
  case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
17451
- return r.format("YYYY-MM-DD");
17476
+ return n ? r.format("YYYY-MM-DD 00:00:00") : r.format("YYYY-MM-DD");
17452
17477
  case KG_FORM_ITEM_TYPE.DATE_TIME:
17453
17478
  case KG_FORM_ITEM_TYPE.DATE_TIME_RANGE:
17454
- return r.format("HH:mm:ss");
17479
+ return n ? r.format("1970-01-01 HH:mm:ss") : r.format("HH:mm:ss");
17455
17480
  case KG_FORM_ITEM_TYPE.DATE_DATETIME:
17456
17481
  case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
17457
17482
  return r.format("YYYY-MM-DD HH:mm:ss");