@kengic/vue 0.13.4-beta.1 → 0.13.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +703 -690
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
var we = Object.defineProperty;
|
2
|
-
var
|
3
|
-
var m = (e, t, r) => (
|
2
|
+
var De = (e, t, r) => t in e ? we(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
3
|
+
var m = (e, t, r) => (De(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, Fragment, isVNode, createTextVNode, provide, onMounted, mergeProps, onBeforeUnmount, onActivated, onDeactivated, Teleport, getCurrentScope, onScopeDispose } from "vue";
|
6
6
|
const index$7 = "", en = {
|
@@ -403,60 +403,60 @@ 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", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", g = "quarter",
|
407
|
-
var
|
408
|
-
return "[" + K + (
|
409
|
-
} }, T = function(K,
|
406
|
+
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "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+)?$/, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, v = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(K) {
|
407
|
+
var D = ["th", "st", "nd", "rd"], R = K % 100;
|
408
|
+
return "[" + K + (D[(R - 20) % 10] || D[R] || D[0]) + "]";
|
409
|
+
} }, T = function(K, D, R) {
|
410
410
|
var N = String(K);
|
411
|
-
return !N || N.length >=
|
411
|
+
return !N || N.length >= D ? K : "" + Array(D + 1 - N.length).join(R) + K;
|
412
412
|
}, k = { s: T, z: function(K) {
|
413
|
-
var
|
414
|
-
return (
|
415
|
-
}, m: function K(
|
416
|
-
if (
|
417
|
-
return -K(R,
|
418
|
-
var N = 12 * (R.year() -
|
413
|
+
var D = -K.utcOffset(), R = Math.abs(D), N = Math.floor(R / 60), B = R % 60;
|
414
|
+
return (D <= 0 ? "+" : "-") + T(N, 2, "0") + ":" + T(B, 2, "0");
|
415
|
+
}, m: function K(D, R) {
|
416
|
+
if (D.date() < R.date())
|
417
|
+
return -K(R, D);
|
418
|
+
var N = 12 * (R.year() - D.year()) + (R.month() - D.month()), B = D.clone().add(N, d), Y = R - B < 0, $ = D.clone().add(N + (Y ? -1 : 1), d);
|
419
419
|
return +(-(N + (R - B) / (Y ? B - $ : $ - B)) || 0);
|
420
420
|
}, a: function(K) {
|
421
421
|
return K < 0 ? Math.ceil(K) || 0 : Math.floor(K);
|
422
422
|
}, p: function(K) {
|
423
|
-
return { M: d, y, w: u, d: c, D:
|
423
|
+
return { M: d, y: E, w: u, d: c, D: y, h: l, m: o, s: i, ms: s, Q: g }[K] || String(K || "").toLowerCase().replace(/s$/, "");
|
424
424
|
}, u: function(K) {
|
425
425
|
return K === void 0;
|
426
426
|
} }, A = "en", C = {};
|
427
427
|
C[A] = v;
|
428
428
|
var V = "$isDayjsObject", M = function(K) {
|
429
429
|
return K instanceof w || !(!K || !K[V]);
|
430
|
-
},
|
430
|
+
}, O = function K(D, R, N) {
|
431
431
|
var B;
|
432
|
-
if (!
|
432
|
+
if (!D)
|
433
433
|
return A;
|
434
|
-
if (typeof
|
435
|
-
var Y =
|
434
|
+
if (typeof D == "string") {
|
435
|
+
var Y = D.toLowerCase();
|
436
436
|
C[Y] && (B = Y), R && (C[Y] = R, B = Y);
|
437
|
-
var $ =
|
437
|
+
var $ = D.split("-");
|
438
438
|
if (!B && $.length > 1)
|
439
439
|
return K($[0]);
|
440
440
|
} else {
|
441
|
-
var x =
|
442
|
-
C[x] =
|
441
|
+
var x = D.name;
|
442
|
+
C[x] = D, B = x;
|
443
443
|
}
|
444
444
|
return !N && B && (A = B), B || !N && A;
|
445
|
-
}, I = function(K,
|
445
|
+
}, I = function(K, D) {
|
446
446
|
if (M(K))
|
447
447
|
return K.clone();
|
448
|
-
var R = typeof
|
448
|
+
var R = typeof D == "object" ? D : {};
|
449
449
|
return R.date = K, R.args = arguments, new w(R);
|
450
450
|
}, L = k;
|
451
|
-
L.l =
|
452
|
-
return I(K, { locale:
|
451
|
+
L.l = O, L.i = M, L.w = function(K, D) {
|
452
|
+
return I(K, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
|
453
453
|
};
|
454
454
|
var w = function() {
|
455
455
|
function K(R) {
|
456
|
-
this.$L =
|
456
|
+
this.$L = O(R.locale, null, !0), this.parse(R), this.$x = this.$x || R.x || {}, this[V] = !0;
|
457
457
|
}
|
458
|
-
var
|
459
|
-
return
|
458
|
+
var D = K.prototype;
|
459
|
+
return D.parse = function(R) {
|
460
460
|
this.$d = function(N) {
|
461
461
|
var B = N.date, Y = N.utc;
|
462
462
|
if (B === null)
|
@@ -474,27 +474,27 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
474
474
|
}
|
475
475
|
return new Date(B);
|
476
476
|
}(R), this.init();
|
477
|
-
},
|
477
|
+
}, D.init = function() {
|
478
478
|
var R = this.$d;
|
479
479
|
this.$y = R.getFullYear(), this.$M = R.getMonth(), this.$D = R.getDate(), this.$W = R.getDay(), this.$H = R.getHours(), this.$m = R.getMinutes(), this.$s = R.getSeconds(), this.$ms = R.getMilliseconds();
|
480
|
-
},
|
480
|
+
}, D.$utils = function() {
|
481
481
|
return L;
|
482
|
-
},
|
482
|
+
}, D.isValid = function() {
|
483
483
|
return this.$d.toString() !== _;
|
484
|
-
},
|
484
|
+
}, D.isSame = function(R, N) {
|
485
485
|
var B = I(R);
|
486
486
|
return this.startOf(N) <= B && B <= this.endOf(N);
|
487
|
-
},
|
487
|
+
}, D.isAfter = function(R, N) {
|
488
488
|
return I(R) < this.startOf(N);
|
489
|
-
},
|
489
|
+
}, D.isBefore = function(R, N) {
|
490
490
|
return this.endOf(N) < I(R);
|
491
|
-
},
|
491
|
+
}, D.$g = function(R, N, B) {
|
492
492
|
return L.u(R) ? this[N] : this.set(B, R);
|
493
|
-
},
|
493
|
+
}, D.unix = function() {
|
494
494
|
return Math.floor(this.valueOf() / 1e3);
|
495
|
-
},
|
495
|
+
}, D.valueOf = function() {
|
496
496
|
return this.$d.getTime();
|
497
|
-
},
|
497
|
+
}, D.startOf = function(R, N) {
|
498
498
|
var B = this, Y = !!L.u(N) || N, $ = L.p(R), x = function(ce, se) {
|
499
499
|
var P = L.w(B.$u ? Date.UTC(B.$y, se, ce) : new Date(B.$y, se, ce), B);
|
500
500
|
return Y ? P : P.endOf(c);
|
@@ -502,7 +502,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
502
502
|
return L.w(B.toDate()[ce].apply(B.toDate("s"), (Y ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(se)), B);
|
503
503
|
}, q = this.$W, J = this.$M, Z = this.$D, te = "set" + (this.$u ? "UTC" : "");
|
504
504
|
switch ($) {
|
505
|
-
case
|
505
|
+
case E:
|
506
506
|
return Y ? x(1, 0) : x(31, 11);
|
507
507
|
case d:
|
508
508
|
return Y ? x(1, J) : x(0, J + 1);
|
@@ -510,7 +510,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
510
510
|
var ie = this.$locale().weekStart || 0, pe = (q < ie ? q + 7 : q) - ie;
|
511
511
|
return x(Y ? Z - pe : Z + (6 - pe), J);
|
512
512
|
case c:
|
513
|
-
case
|
513
|
+
case y:
|
514
514
|
return W(te + "Hours", 0);
|
515
515
|
case l:
|
516
516
|
return W(te + "Minutes", 1);
|
@@ -521,21 +521,21 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
521
521
|
default:
|
522
522
|
return this.clone();
|
523
523
|
}
|
524
|
-
},
|
524
|
+
}, D.endOf = function(R) {
|
525
525
|
return this.startOf(R, !1);
|
526
|
-
},
|
527
|
-
var B, Y = L.p(R), $ = "set" + (this.$u ? "UTC" : ""), x = (B = {}, B[c] = $ + "Date", B[
|
528
|
-
if (Y === d || Y ===
|
529
|
-
var q = this.clone().set(
|
530
|
-
q.$d[x](W), q.init(), this.$d = q.set(
|
526
|
+
}, D.$set = function(R, N) {
|
527
|
+
var B, Y = L.p(R), $ = "set" + (this.$u ? "UTC" : ""), x = (B = {}, B[c] = $ + "Date", B[y] = $ + "Date", B[d] = $ + "Month", B[E] = $ + "FullYear", B[l] = $ + "Hours", B[o] = $ + "Minutes", B[i] = $ + "Seconds", B[s] = $ + "Milliseconds", B)[Y], W = Y === c ? this.$D + (N - this.$W) : N;
|
528
|
+
if (Y === d || Y === E) {
|
529
|
+
var q = this.clone().set(y, 1);
|
530
|
+
q.$d[x](W), q.init(), this.$d = q.set(y, Math.min(this.$D, q.daysInMonth())).$d;
|
531
531
|
} else
|
532
532
|
x && this.$d[x](W);
|
533
533
|
return this.init(), this;
|
534
|
-
},
|
534
|
+
}, D.set = function(R, N) {
|
535
535
|
return this.clone().$set(R, N);
|
536
|
-
},
|
536
|
+
}, D.get = function(R) {
|
537
537
|
return this[L.p(R)]();
|
538
|
-
},
|
538
|
+
}, D.add = function(R, N) {
|
539
539
|
var B, Y = this;
|
540
540
|
R = Number(R);
|
541
541
|
var $ = L.p(N), x = function(J) {
|
@@ -544,17 +544,17 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
544
544
|
};
|
545
545
|
if ($ === d)
|
546
546
|
return this.set(d, this.$M + R);
|
547
|
-
if ($ ===
|
548
|
-
return this.set(
|
547
|
+
if ($ === E)
|
548
|
+
return this.set(E, this.$y + R);
|
549
549
|
if ($ === c)
|
550
550
|
return x(1);
|
551
551
|
if ($ === u)
|
552
552
|
return x(7);
|
553
553
|
var W = (B = {}, B[o] = a, B[l] = n, B[i] = r, B)[$] || 1, q = this.$d.getTime() + R * W;
|
554
554
|
return L.w(q, this);
|
555
|
-
},
|
555
|
+
}, D.subtract = function(R, N) {
|
556
556
|
return this.add(-1 * R, N);
|
557
|
-
},
|
557
|
+
}, D.format = function(R) {
|
558
558
|
var N = this, B = this.$locale();
|
559
559
|
if (!this.isValid())
|
560
560
|
return B.invalidDate || _;
|
@@ -621,14 +621,14 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
621
621
|
return null;
|
622
622
|
}(se) || $.replace(":", "");
|
623
623
|
});
|
624
|
-
},
|
624
|
+
}, D.utcOffset = function() {
|
625
625
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
626
|
-
},
|
626
|
+
}, D.diff = function(R, N, B) {
|
627
627
|
var Y, $ = this, x = L.p(N), W = I(R), q = (W.utcOffset() - this.utcOffset()) * a, J = this - W, Z = function() {
|
628
628
|
return L.m($, W);
|
629
629
|
};
|
630
630
|
switch (x) {
|
631
|
-
case
|
631
|
+
case E:
|
632
632
|
Y = Z() / 12;
|
633
633
|
break;
|
634
634
|
case d:
|
@@ -656,34 +656,34 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
656
656
|
Y = J;
|
657
657
|
}
|
658
658
|
return B ? Y : L.a(Y);
|
659
|
-
},
|
659
|
+
}, D.daysInMonth = function() {
|
660
660
|
return this.endOf(d).$D;
|
661
|
-
},
|
661
|
+
}, D.$locale = function() {
|
662
662
|
return C[this.$L];
|
663
|
-
},
|
663
|
+
}, D.locale = function(R, N) {
|
664
664
|
if (!R)
|
665
665
|
return this.$L;
|
666
|
-
var B = this.clone(), Y =
|
666
|
+
var B = this.clone(), Y = O(R, N, !0);
|
667
667
|
return Y && (B.$L = Y), B;
|
668
|
-
},
|
668
|
+
}, D.clone = function() {
|
669
669
|
return L.w(this.$d, this);
|
670
|
-
},
|
670
|
+
}, D.toDate = function() {
|
671
671
|
return new Date(this.valueOf());
|
672
|
-
},
|
672
|
+
}, D.toJSON = function() {
|
673
673
|
return this.isValid() ? this.toISOString() : null;
|
674
|
-
},
|
674
|
+
}, D.toISOString = function() {
|
675
675
|
return this.$d.toISOString();
|
676
|
-
},
|
676
|
+
}, D.toString = function() {
|
677
677
|
return this.$d.toUTCString();
|
678
678
|
}, K;
|
679
679
|
}(), F = w.prototype;
|
680
|
-
return I.prototype = F, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y",
|
681
|
-
F[K[1]] = function(
|
682
|
-
return this.$g(
|
680
|
+
return I.prototype = F, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", E], ["$D", y]].forEach(function(K) {
|
681
|
+
F[K[1]] = function(D) {
|
682
|
+
return this.$g(D, K[0], K[1]);
|
683
683
|
};
|
684
|
-
}), I.extend = function(K,
|
685
|
-
return K.$i || (K(
|
686
|
-
}, I.locale =
|
684
|
+
}), I.extend = function(K, D) {
|
685
|
+
return K.$i || (K(D, w, I), K.$i = !0), I;
|
686
|
+
}, I.locale = O, I.isDayjs = M, I.unix = function(K) {
|
687
687
|
return I(1e3 * K);
|
688
688
|
}, I.en = C[A], I.Ls = C, I.p = {}, I;
|
689
689
|
});
|
@@ -725,17 +725,17 @@ function filesize(e, {
|
|
725
725
|
standard: u = EMPTY,
|
726
726
|
output: d = STRING,
|
727
727
|
fullform: g = !1,
|
728
|
-
fullforms:
|
729
|
-
exponent:
|
728
|
+
fullforms: E = [],
|
729
|
+
exponent: y = -1,
|
730
730
|
roundingMethod: _ = ROUND,
|
731
731
|
precision: p = 0
|
732
732
|
} = {}) {
|
733
|
-
let b =
|
733
|
+
let b = y, v = Number(e), T = [], k = 0, A = 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, M = v < 0,
|
735
|
+
const C = a === 10 ? 1e3 : 1024, V = g === !0, M = v < 0, O = Math[_];
|
736
736
|
if (typeof e != "bigint" && isNaN(e))
|
737
737
|
throw new TypeError(INVALID_NUMBER);
|
738
|
-
if (typeof
|
738
|
+
if (typeof O !== FUNCTION)
|
739
739
|
throw new TypeError(INVALID_ROUND);
|
740
740
|
if (M && (v = -v), (b === -1 || isNaN(b)) && (b = Math.floor(Math.log(v) / Math.log(C)), b < 0 && (b = 0)), b > 8 && (p > 0 && (p += 8 - b), b = 8), d === EXPONENT)
|
741
741
|
return b;
|
@@ -744,13 +744,13 @@ function filesize(e, {
|
|
744
744
|
else {
|
745
745
|
k = v / (a === 2 ? Math.pow(2, b * 10) : Math.pow(1e3, b)), t && (k = k * 8, k >= C && b < 8 && (k = k / C, b++));
|
746
746
|
const I = Math.pow(10, b > 0 ? n : 0);
|
747
|
-
T[0] =
|
747
|
+
T[0] = O(k * I) / I, T[0] === C && b < 8 && y === -1 && (T[0] = 1, b++), A = T[1] = a === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][b];
|
748
748
|
}
|
749
749
|
if (M && (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, i) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
|
750
750
|
const I = o || PERIOD, L = T[0].toString().split(I), w = L[1] || EMPTY, F = w.length, K = n - F;
|
751
751
|
T[0] = `${L[0]}${I}${w.padEnd(F + K, ZERO)}`;
|
752
752
|
}
|
753
|
-
return V && (T[1] =
|
753
|
+
return V && (T[1] = E[b] ? E[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), d === ARRAY ? T : d === OBJECT ? {
|
754
754
|
value: T[0],
|
755
755
|
symbol: T[1],
|
756
756
|
exponent: b,
|
@@ -1796,15 +1796,15 @@ function baseClone(e, t, r, a, n, s) {
|
|
1796
1796
|
}
|
1797
1797
|
}
|
1798
1798
|
s || (s = new Stack());
|
1799
|
-
var
|
1800
|
-
if (
|
1801
|
-
return
|
1799
|
+
var E = s.get(e);
|
1800
|
+
if (E)
|
1801
|
+
return E;
|
1802
1802
|
s.set(e, i), isSet$1(e) ? e.forEach(function(p) {
|
1803
1803
|
i.add(baseClone(p, t, r, p, e, s));
|
1804
1804
|
}) : isMap$1(e) && e.forEach(function(p, b) {
|
1805
1805
|
i.set(b, baseClone(p, t, r, b, e, s));
|
1806
1806
|
});
|
1807
|
-
var
|
1807
|
+
var y = c ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys$1, _ = u ? void 0 : y(e);
|
1808
1808
|
return arrayEach(_ || e, function(p, b) {
|
1809
1809
|
_ && (b = p, p = e[b]), assignValue(i, b, baseClone(p, t, r, b, e, s));
|
1810
1810
|
}), i;
|
@@ -1851,26 +1851,26 @@ function equalArrays(e, t, r, a, n, s) {
|
|
1851
1851
|
var c = s.get(e), u = s.get(t);
|
1852
1852
|
if (c && u)
|
1853
1853
|
return c == t && u == e;
|
1854
|
-
var d = -1, g = !0,
|
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
|
1856
|
+
var y = e[d], _ = t[d];
|
1857
1857
|
if (a)
|
1858
|
-
var p = i ? a(_,
|
1858
|
+
var p = i ? a(_, y, d, t, e, s) : a(y, _, d, e, t, s);
|
1859
1859
|
if (p !== void 0) {
|
1860
1860
|
if (p)
|
1861
1861
|
continue;
|
1862
1862
|
g = !1;
|
1863
1863
|
break;
|
1864
1864
|
}
|
1865
|
-
if (
|
1865
|
+
if (E) {
|
1866
1866
|
if (!arraySome(t, function(b, v) {
|
1867
|
-
if (!cacheHas(
|
1868
|
-
return
|
1867
|
+
if (!cacheHas(E, v) && (y === b || n(y, b, r, a, s)))
|
1868
|
+
return E.push(v);
|
1869
1869
|
})) {
|
1870
1870
|
g = !1;
|
1871
1871
|
break;
|
1872
1872
|
}
|
1873
|
-
} else if (!(
|
1873
|
+
} else if (!(y === _ || n(y, _, r, a, s))) {
|
1874
1874
|
g = !1;
|
1875
1875
|
break;
|
1876
1876
|
}
|
@@ -1935,9 +1935,9 @@ function equalObjects(e, t, r, a, n, s) {
|
|
1935
1935
|
if (!(i ? g in t : hasOwnProperty$1.call(t, g)))
|
1936
1936
|
return !1;
|
1937
1937
|
}
|
1938
|
-
var
|
1939
|
-
if (
|
1940
|
-
return
|
1938
|
+
var E = s.get(e), y = s.get(t);
|
1939
|
+
if (E && y)
|
1940
|
+
return E == t && y == e;
|
1941
1941
|
var _ = !0;
|
1942
1942
|
s.set(e, t), s.set(t, e);
|
1943
1943
|
for (var p = i; ++d < l; ) {
|
@@ -1970,9 +1970,9 @@ function baseIsEqualDeep(e, t, r, a, n, s) {
|
|
1970
1970
|
if (g && !u)
|
1971
1971
|
return s || (s = new Stack()), i || isTypedArray$1(e) ? equalArrays(e, t, r, a, n, s) : equalByTag(e, t, l, r, a, n, s);
|
1972
1972
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
1973
|
-
var
|
1974
|
-
if (
|
1975
|
-
var _ =
|
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;
|
1976
1976
|
return s || (s = new Stack()), n(_, p, r, a, s);
|
1977
1977
|
}
|
1978
1978
|
}
|
@@ -2105,16 +2105,16 @@ function debounce(e, t, r) {
|
|
2105
2105
|
if (typeof e != "function")
|
2106
2106
|
throw new TypeError(FUNC_ERROR_TEXT);
|
2107
2107
|
t = toNumber(t) || 0, isObject$2(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? nativeMax$1(toNumber(r.maxWait) || 0, t) : s, g = "trailing" in r ? !!r.trailing : g);
|
2108
|
-
function
|
2108
|
+
function E(C) {
|
2109
2109
|
var V = a, M = n;
|
2110
2110
|
return a = n = void 0, c = C, i = e.apply(M, V), i;
|
2111
2111
|
}
|
2112
|
-
function
|
2113
|
-
return c = C, o = setTimeout(b, t), u ?
|
2112
|
+
function y(C) {
|
2113
|
+
return c = C, o = setTimeout(b, t), u ? E(C) : i;
|
2114
2114
|
}
|
2115
2115
|
function _(C) {
|
2116
|
-
var V = C - l, M = C - c,
|
2117
|
-
return d ? nativeMin$1(
|
2116
|
+
var V = C - l, M = C - c, O = t - V;
|
2117
|
+
return d ? nativeMin$1(O, s - M) : O;
|
2118
2118
|
}
|
2119
2119
|
function p(C) {
|
2120
2120
|
var V = C - l, M = C - c;
|
@@ -2127,7 +2127,7 @@ function debounce(e, t, r) {
|
|
2127
2127
|
o = setTimeout(b, _(C));
|
2128
2128
|
}
|
2129
2129
|
function v(C) {
|
2130
|
-
return o = void 0, g && a ?
|
2130
|
+
return o = void 0, g && a ? E(C) : (a = n = void 0, i);
|
2131
2131
|
}
|
2132
2132
|
function T() {
|
2133
2133
|
o !== void 0 && clearTimeout(o), c = 0, a = l = n = o = void 0;
|
@@ -2139,9 +2139,9 @@ function debounce(e, t, r) {
|
|
2139
2139
|
var C = now$1(), V = p(C);
|
2140
2140
|
if (a = arguments, n = this, l = C, V) {
|
2141
2141
|
if (o === void 0)
|
2142
|
-
return
|
2142
|
+
return y(l);
|
2143
2143
|
if (d)
|
2144
|
-
return clearTimeout(o), o = setTimeout(b, t),
|
2144
|
+
return clearTimeout(o), o = setTimeout(b, t), E(l);
|
2145
2145
|
}
|
2146
2146
|
return o === void 0 && (o = setTimeout(b, t)), i;
|
2147
2147
|
}
|
@@ -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 < l; ) {
|
2235
|
-
var
|
2236
|
-
if (
|
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))) {
|
2237
2237
|
for (i = s; --i; ) {
|
2238
2238
|
var _ = o[i];
|
2239
|
-
if (!(_ ? cacheHas(_,
|
2239
|
+
if (!(_ ? cacheHas(_, y) : a(e[i], y, r)))
|
2240
2240
|
continue e;
|
2241
2241
|
}
|
2242
|
-
g && g.push(
|
2242
|
+
g && g.push(y), c.push(E);
|
2243
2243
|
}
|
2244
2244
|
}
|
2245
2245
|
return c;
|
@@ -2769,8 +2769,8 @@ function generate$1(e) {
|
|
2769
2769
|
r.push(c);
|
2770
2770
|
}
|
2771
2771
|
return t.theme === "dark" ? darkColorMap.map(function(u) {
|
2772
|
-
var d = u.index, g = u.opacity,
|
2773
|
-
return
|
2772
|
+
var d = u.index, g = u.opacity, E = toHex(mix(inputToRGB(t.backgroundColor || "#141414"), inputToRGB(r[d]), g * 100));
|
2773
|
+
return E;
|
2774
2774
|
}) : r;
|
2775
2775
|
}
|
2776
2776
|
var presetPrimaryColors = {
|
@@ -3126,9 +3126,9 @@ function _objectWithoutPropertiesLoose(e, t) {
|
|
3126
3126
|
}
|
3127
3127
|
setTwoToneColor("#1890ff");
|
3128
3128
|
var Icon$1 = function(t, r) {
|
3129
|
-
var a, n = _objectSpread$k({}, t, r.attrs), s = n.class, i = n.icon, o = n.spin, l = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, g = _objectWithoutProperties(n, _excluded),
|
3129
|
+
var a, n = _objectSpread$k({}, t, r.attrs), s = n.class, i = n.icon, o = n.spin, l = 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(i.name), Boolean(i.name)), _defineProperty$k(a, s, s), a),
|
3131
|
+
}, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, s, s), a), y = o === "" || !!o || i.name === "loading" ? "anticon-spin" : "", _ = c;
|
3132
3132
|
_ === void 0 && d && (_ = -1, g.tabindex = _);
|
3133
3133
|
var p = l ? {
|
3134
3134
|
msTransform: "rotate(".concat(l, "deg)"),
|
@@ -3139,9 +3139,9 @@ var Icon$1 = function(t, r) {
|
|
3139
3139
|
"aria-label": i.name
|
3140
3140
|
}, g, {
|
3141
3141
|
onClick: d,
|
3142
|
-
class:
|
3142
|
+
class: E
|
3143
3143
|
}), [createVNode(VueIcon, {
|
3144
|
-
class:
|
3144
|
+
class: y,
|
3145
3145
|
icon: i,
|
3146
3146
|
primaryColor: T,
|
3147
3147
|
secondaryColor: k,
|
@@ -3953,9 +3953,9 @@ function iconToSVG(e, t) {
|
|
3953
3953
|
height: r.height
|
3954
3954
|
};
|
3955
3955
|
let s = r.body;
|
3956
|
-
[r, a].forEach((
|
3957
|
-
const _ = [], p =
|
3958
|
-
let v =
|
3956
|
+
[r, a].forEach((y) => {
|
3957
|
+
const _ = [], p = y.hFlip, b = y.vFlip;
|
3958
|
+
let v = y.rotate;
|
3959
3959
|
p ? b ? v += 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) : b && (_.push(
|
@@ -3984,10 +3984,10 @@ function iconToSVG(e, t) {
|
|
3984
3984
|
const i = a.width, o = a.height, l = n.width, c = n.height;
|
3985
3985
|
let u, d;
|
3986
3986
|
i === null ? (d = o === null ? "1em" : o === "auto" ? c : o, u = calculateSize(d, l / c)) : (u = i === "auto" ? l : i, d = o === null ? calculateSize(u, c / l) : o === "auto" ? c : o);
|
3987
|
-
const g = {},
|
3988
|
-
isUnsetKeyword(_) || (g[
|
3987
|
+
const g = {}, E = (y, _) => {
|
3988
|
+
isUnsetKeyword(_) || (g[y] = _.toString());
|
3989
3989
|
};
|
3990
|
-
return
|
3990
|
+
return E("width", u), E("height", d), g.viewBox = n.left.toString() + " " + n.top.toString() + " " + l.toString() + " " + c.toString(), {
|
3991
3991
|
attributes: g,
|
3992
3992
|
body: s
|
3993
3993
|
};
|
@@ -4268,18 +4268,18 @@ function sendQuery(e, t, r, a) {
|
|
4268
4268
|
} else
|
4269
4269
|
i = e.resources.slice(s).concat(e.resources.slice(0, s));
|
4270
4270
|
const o = Date.now();
|
4271
|
-
let l = "pending", c = 0, u, d = null, g = [],
|
4272
|
-
typeof a == "function" &&
|
4273
|
-
function
|
4271
|
+
let l = "pending", c = 0, u, d = null, g = [], E = [];
|
4272
|
+
typeof a == "function" && E.push(a);
|
4273
|
+
function y() {
|
4274
4274
|
d && (clearTimeout(d), d = null);
|
4275
4275
|
}
|
4276
4276
|
function _() {
|
4277
|
-
l === "pending" && (l = "aborted"),
|
4277
|
+
l === "pending" && (l = "aborted"), y(), g.forEach((C) => {
|
4278
4278
|
C.status === "pending" && (C.status = "aborted");
|
4279
4279
|
}), g = [];
|
4280
4280
|
}
|
4281
4281
|
function p(C, V) {
|
4282
|
-
V && (
|
4282
|
+
V && (E = []), typeof C == "function" && E.push(C);
|
4283
4283
|
}
|
4284
4284
|
function b() {
|
4285
4285
|
return {
|
@@ -4293,7 +4293,7 @@ function sendQuery(e, t, r, a) {
|
|
4293
4293
|
};
|
4294
4294
|
}
|
4295
4295
|
function v() {
|
4296
|
-
l = "failed",
|
4296
|
+
l = "failed", E.forEach((C) => {
|
4297
4297
|
C(void 0, u);
|
4298
4298
|
});
|
4299
4299
|
}
|
@@ -4303,12 +4303,12 @@ function sendQuery(e, t, r, a) {
|
|
4303
4303
|
}), g = [];
|
4304
4304
|
}
|
4305
4305
|
function k(C, V, M) {
|
4306
|
-
const
|
4306
|
+
const O = V !== "success";
|
4307
4307
|
switch (g = g.filter((I) => I !== C), l) {
|
4308
4308
|
case "pending":
|
4309
4309
|
break;
|
4310
4310
|
case "failed":
|
4311
|
-
if (
|
4311
|
+
if (O || !e.dataAfterTimeout)
|
4312
4312
|
return;
|
4313
4313
|
break;
|
4314
4314
|
default:
|
@@ -4318,27 +4318,27 @@ function sendQuery(e, t, r, a) {
|
|
4318
4318
|
u = M, v();
|
4319
4319
|
return;
|
4320
4320
|
}
|
4321
|
-
if (
|
4321
|
+
if (O) {
|
4322
4322
|
u = M, g.length || (i.length ? A() : v());
|
4323
4323
|
return;
|
4324
4324
|
}
|
4325
|
-
if (
|
4325
|
+
if (y(), T(), !e.random) {
|
4326
4326
|
const I = e.resources.indexOf(C.resource);
|
4327
4327
|
I !== -1 && I !== e.index && (e.index = I);
|
4328
4328
|
}
|
4329
|
-
l = "completed",
|
4329
|
+
l = "completed", E.forEach((I) => {
|
4330
4330
|
I(M);
|
4331
4331
|
});
|
4332
4332
|
}
|
4333
4333
|
function A() {
|
4334
4334
|
if (l !== "pending")
|
4335
4335
|
return;
|
4336
|
-
|
4336
|
+
y();
|
4337
4337
|
const C = i.shift();
|
4338
4338
|
if (C === void 0) {
|
4339
4339
|
if (g.length) {
|
4340
4340
|
d = setTimeout(() => {
|
4341
|
-
|
4341
|
+
y(), l === "pending" && (T(), v());
|
4342
4342
|
}, e.timeout);
|
4343
4343
|
return;
|
4344
4344
|
}
|
@@ -4348,8 +4348,8 @@ function sendQuery(e, t, r, a) {
|
|
4348
4348
|
const V = {
|
4349
4349
|
status: "pending",
|
4350
4350
|
resource: C,
|
4351
|
-
callback: (M,
|
4352
|
-
k(V, M,
|
4351
|
+
callback: (M, O) => {
|
4352
|
+
k(V, M, O);
|
4353
4353
|
}
|
4354
4354
|
};
|
4355
4355
|
g.push(V), c++, d = setTimeout(A, e.rotate), r(C, t, V.callback);
|
@@ -4619,8 +4619,8 @@ const loadIcons = (e, t) => {
|
|
4619
4619
|
const d = n[c] || (n[c] = /* @__PURE__ */ Object.create(null));
|
4620
4620
|
d[u] || (d[u] = []);
|
4621
4621
|
}), a.pending.forEach((l) => {
|
4622
|
-
const { provider: c, prefix: u, name: d } = l, g = getStorage(c, u),
|
4623
|
-
|
4622
|
+
const { provider: c, prefix: u, name: d } = l, g = getStorage(c, u), E = g.pendingIcons || (g.pendingIcons = /* @__PURE__ */ new Set());
|
4623
|
+
E.has(d) || (E.add(d), n[c][u].push(d));
|
4624
4624
|
}), s.forEach((l) => {
|
4625
4625
|
const { provider: c, prefix: u } = l;
|
4626
4626
|
n[c][u].length && loadNewIcons(l, n[c][u]);
|
@@ -4770,18 +4770,18 @@ const render = (e, t) => {
|
|
4770
4770
|
let _ = 0, p = t.id;
|
4771
4771
|
return typeof p == "string" && (p = p.replace(/-/g, "_")), a.innerHTML = replaceIDs(l.body, p ? () => p + "ID" + _++ : "iconifyVue"), h("svg", a);
|
4772
4772
|
}
|
4773
|
-
const { body: u, width: d, height: g } = e,
|
4773
|
+
const { body: u, width: d, height: g } = e, E = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1), y = 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(
|
4780
|
+
"--svg": svgToURL(y),
|
4781
4781
|
width: fixSize(c.width),
|
4782
4782
|
height: fixSize(c.height),
|
4783
4783
|
...commonProps,
|
4784
|
-
...
|
4784
|
+
...E ? monotoneProps : coloredProps,
|
4785
4785
|
...o
|
4786
4786
|
}, h("span", a);
|
4787
4787
|
};
|
@@ -4872,7 +4872,7 @@ const emptyIcon = {
|
|
4872
4872
|
...t.data
|
4873
4873
|
}, r);
|
4874
4874
|
}
|
4875
|
-
}), name = "@kengic/vue", version = "0.13.4
|
4875
|
+
}), name = "@kengic/vue", version = "0.13.4", 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"/>'
|
@@ -4955,8 +4955,8 @@ function createOptionsStore(e, t, r, a) {
|
|
4955
4955
|
const u = process.env.NODE_ENV !== "production" && a ? toRefs(ref(n ? n() : {}).value) : toRefs(r.state.value[e]);
|
4956
4956
|
return assign$1(u, s, Object.keys(i || {}).reduce((d, g) => (d[g] = markRaw(computed(() => {
|
4957
4957
|
setActivePinia(r);
|
4958
|
-
const
|
4959
|
-
return i[g].call(
|
4958
|
+
const E = r._s.get(e);
|
4959
|
+
return i[g].call(E, E);
|
4960
4960
|
})), d), {}));
|
4961
4961
|
}
|
4962
4962
|
return l = createSetupStore(e, c, t, r, a), l.$reset = function() {
|
@@ -4975,26 +4975,26 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
4975
4975
|
deep: !0
|
4976
4976
|
};
|
4977
4977
|
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (M) => {
|
4978
|
-
c ?
|
4978
|
+
c ? E = M : c == !1 && !C._hotUpdating && (Array.isArray(E) ? E.push(M) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
4979
4979
|
});
|
4980
|
-
let c, u, d = markRaw([]), g = markRaw([]),
|
4981
|
-
const
|
4982
|
-
!i && !
|
4980
|
+
let c, u, d = markRaw([]), g = markRaw([]), E;
|
4981
|
+
const y = a.state.value[e];
|
4982
|
+
!i && !y && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
4983
4983
|
const _ = ref({});
|
4984
4984
|
function p(M) {
|
4985
|
-
let
|
4986
|
-
c = u = !1, process.env.NODE_ENV !== "production" && (
|
4985
|
+
let O;
|
4986
|
+
c = u = !1, process.env.NODE_ENV !== "production" && (E = []), typeof M == "function" ? (M(a.state.value[e]), O = {
|
4987
4987
|
type: MutationType.patchFunction,
|
4988
4988
|
storeId: e,
|
4989
|
-
events:
|
4990
|
-
}) : (mergeReactiveObjects(a.state.value[e], M),
|
4989
|
+
events: E
|
4990
|
+
}) : (mergeReactiveObjects(a.state.value[e], M), O = {
|
4991
4991
|
type: MutationType.patchObject,
|
4992
4992
|
payload: M,
|
4993
4993
|
storeId: e,
|
4994
|
-
events:
|
4994
|
+
events: E
|
4995
4995
|
}), nextTick().then(() => {
|
4996
4996
|
c = !0;
|
4997
|
-
}), u = !0, triggerSubscriptions(d,
|
4997
|
+
}), u = !0, triggerSubscriptions(d, O, a.state.value[e]);
|
4998
4998
|
}
|
4999
4999
|
const b = 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().`);
|
@@ -5002,7 +5002,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
5002
5002
|
function v() {
|
5003
5003
|
s.stop(), d = [], g = [], a._s.delete(e);
|
5004
5004
|
}
|
5005
|
-
function T(M,
|
5005
|
+
function T(M, O) {
|
5006
5006
|
return function() {
|
5007
5007
|
setActivePinia(a);
|
5008
5008
|
const I = Array.from(arguments), L = [], w = [];
|
@@ -5019,13 +5019,13 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
5019
5019
|
after: F,
|
5020
5020
|
onError: K
|
5021
5021
|
});
|
5022
|
-
let
|
5022
|
+
let D;
|
5023
5023
|
try {
|
5024
|
-
|
5024
|
+
D = O.apply(this && this.$id === e ? this : C, I);
|
5025
5025
|
} catch (R) {
|
5026
5026
|
throw triggerSubscriptions(w, R), R;
|
5027
5027
|
}
|
5028
|
-
return
|
5028
|
+
return D instanceof Promise ? D.then((R) => (triggerSubscriptions(L, R), R)).catch((R) => (triggerSubscriptions(w, R), Promise.reject(R))) : (triggerSubscriptions(L, D), D);
|
5029
5029
|
};
|
5030
5030
|
}
|
5031
5031
|
const k = /* @__PURE__ */ markRaw({
|
@@ -5039,14 +5039,14 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
5039
5039
|
$onAction: addSubscription.bind(null, g),
|
5040
5040
|
$patch: p,
|
5041
5041
|
$reset: b,
|
5042
|
-
$subscribe(M,
|
5043
|
-
const I = addSubscription(d, M,
|
5044
|
-
(
|
5042
|
+
$subscribe(M, O = {}) {
|
5043
|
+
const I = addSubscription(d, M, O.detached, () => L()), L = s.run(() => watch(() => a.state.value[e], (w) => {
|
5044
|
+
(O.flush === "sync" ? u : c) && M({
|
5045
5045
|
storeId: e,
|
5046
5046
|
type: MutationType.direct,
|
5047
|
-
events:
|
5047
|
+
events: E
|
5048
5048
|
}, w);
|
5049
|
-
}, assign$1({}, l,
|
5049
|
+
}, assign$1({}, l, O)));
|
5050
5050
|
return I;
|
5051
5051
|
},
|
5052
5052
|
$dispose: v
|
@@ -5060,72 +5060,72 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
5060
5060
|
a._s.set(e, C);
|
5061
5061
|
const V = a._e.run(() => (s = effectScope(), s.run(() => t())));
|
5062
5062
|
for (const M in V) {
|
5063
|
-
const
|
5064
|
-
if (isRef(
|
5065
|
-
process.env.NODE_ENV !== "production" && n ? set(_.value, M, toRef(V, M)) : i || (
|
5066
|
-
else if (typeof
|
5067
|
-
const I = process.env.NODE_ENV !== "production" && n ?
|
5068
|
-
V[M] = I, process.env.NODE_ENV !== "production" && (k.actions[M] =
|
5063
|
+
const O = V[M];
|
5064
|
+
if (isRef(O) && !isComputed(O) || isReactive(O))
|
5065
|
+
process.env.NODE_ENV !== "production" && n ? set(_.value, M, toRef(V, M)) : i || (y && shouldHydrate(O) && (isRef(O) ? O.value = y[M] : mergeReactiveObjects(O, y[M])), a.state.value[e][M] = O), process.env.NODE_ENV !== "production" && k.state.push(M);
|
5066
|
+
else if (typeof O == "function") {
|
5067
|
+
const I = process.env.NODE_ENV !== "production" && n ? O : T(M, O);
|
5068
|
+
V[M] = I, process.env.NODE_ENV !== "production" && (k.actions[M] = O), o.actions[M] = O;
|
5069
5069
|
} else
|
5070
|
-
process.env.NODE_ENV !== "production" && isComputed(
|
5070
|
+
process.env.NODE_ENV !== "production" && isComputed(O) && (k.getters[M] = i ? r.getters[M] : O, IS_CLIENT && (V._getters || (V._getters = markRaw([]))).push(M));
|
5071
5071
|
}
|
5072
5072
|
if (assign$1(C, V), assign$1(toRaw(C), V), Object.defineProperty(C, "$state", {
|
5073
5073
|
get: () => process.env.NODE_ENV !== "production" && n ? _.value : a.state.value[e],
|
5074
5074
|
set: (M) => {
|
5075
5075
|
if (process.env.NODE_ENV !== "production" && n)
|
5076
5076
|
throw new Error("cannot set hotState");
|
5077
|
-
p((
|
5078
|
-
assign$1(
|
5077
|
+
p((O) => {
|
5078
|
+
assign$1(O, M);
|
5079
5079
|
});
|
5080
5080
|
}
|
5081
5081
|
}), process.env.NODE_ENV !== "production") {
|
5082
|
-
C._hotUpdate = markRaw((
|
5083
|
-
C._hotUpdating = !0,
|
5082
|
+
C._hotUpdate = markRaw((O) => {
|
5083
|
+
C._hotUpdating = !0, O._hmrPayload.state.forEach((I) => {
|
5084
5084
|
if (I in C.$state) {
|
5085
|
-
const L =
|
5086
|
-
typeof L == "object" && isPlainObject(L) && isPlainObject(w) ? patchObject(L, w) :
|
5085
|
+
const L = O.$state[I], w = C.$state[I];
|
5086
|
+
typeof L == "object" && isPlainObject(L) && isPlainObject(w) ? patchObject(L, w) : O.$state[I] = w;
|
5087
5087
|
}
|
5088
|
-
set(C, I, toRef(
|
5088
|
+
set(C, I, toRef(O.$state, I));
|
5089
5089
|
}), Object.keys(C.$state).forEach((I) => {
|
5090
|
-
I in
|
5091
|
-
}), c = !1, u = !1, a.state.value[e] = toRef(
|
5090
|
+
I in O.$state || del(C, I);
|
5091
|
+
}), c = !1, u = !1, a.state.value[e] = toRef(O._hmrPayload, "hotState"), u = !0, nextTick().then(() => {
|
5092
5092
|
c = !0;
|
5093
5093
|
});
|
5094
|
-
for (const I in
|
5095
|
-
const L =
|
5094
|
+
for (const I in O._hmrPayload.actions) {
|
5095
|
+
const L = O[I];
|
5096
5096
|
set(C, I, T(I, L));
|
5097
5097
|
}
|
5098
|
-
for (const I in
|
5099
|
-
const L =
|
5098
|
+
for (const I in O._hmrPayload.getters) {
|
5099
|
+
const L = O._hmrPayload.getters[I], w = i ? computed(() => (setActivePinia(a), L.call(C, C))) : L;
|
5100
5100
|
set(C, I, w);
|
5101
5101
|
}
|
5102
5102
|
Object.keys(C._hmrPayload.getters).forEach((I) => {
|
5103
|
-
I in
|
5103
|
+
I in O._hmrPayload.getters || del(C, I);
|
5104
5104
|
}), Object.keys(C._hmrPayload.actions).forEach((I) => {
|
5105
|
-
I in
|
5106
|
-
}), C._hmrPayload =
|
5105
|
+
I in O._hmrPayload.actions || del(C, I);
|
5106
|
+
}), C._hmrPayload = O._hmrPayload, C._getters = O._getters, C._hotUpdating = !1;
|
5107
5107
|
});
|
5108
5108
|
const M = {
|
5109
5109
|
writable: !0,
|
5110
5110
|
configurable: !0,
|
5111
5111
|
enumerable: !1
|
5112
5112
|
};
|
5113
|
-
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
5114
|
-
Object.defineProperty(C,
|
5115
|
-
value: C[
|
5113
|
+
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((O) => {
|
5114
|
+
Object.defineProperty(C, O, {
|
5115
|
+
value: C[O],
|
5116
5116
|
...M
|
5117
5117
|
});
|
5118
5118
|
});
|
5119
5119
|
}
|
5120
5120
|
return a._p.forEach((M) => {
|
5121
5121
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
5122
|
-
const
|
5122
|
+
const O = s.run(() => M({
|
5123
5123
|
store: C,
|
5124
5124
|
app: a._a,
|
5125
5125
|
pinia: a,
|
5126
5126
|
options: o
|
5127
5127
|
}));
|
5128
|
-
Object.keys(
|
5128
|
+
Object.keys(O || {}).forEach((I) => C._customProperties.add(I)), assign$1(C, O);
|
5129
5129
|
} else
|
5130
5130
|
assign$1(C, s.run(() => M({
|
5131
5131
|
store: C,
|
@@ -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}".`),
|
5138
|
+
Found in store "${C.$id}".`), y && i && r.hydrate && r.hydrate(C.$state, y), c = !0, u = !0, C;
|
5139
5139
|
}
|
5140
5140
|
function defineStore(e, t, r) {
|
5141
5141
|
let a, n;
|
@@ -5750,14 +5750,14 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
5750
5750
|
break;
|
5751
5751
|
}
|
5752
5752
|
};
|
5753
|
-
function
|
5753
|
+
function E(v) {
|
5754
5754
|
g(v);
|
5755
5755
|
}
|
5756
|
-
function
|
5756
|
+
function y(v) {
|
5757
5757
|
g(v), d();
|
5758
5758
|
}
|
5759
5759
|
function _(v) {
|
5760
|
-
v.stopPropagation(), v.preventDefault(), d(), !(v instanceof MouseEvent && v.which !== 1) && (s = v.pageX, i = v.pageY, a = e.kgWidth, n = e.kgHeight, o = p(document.documentElement, "mousemove",
|
5760
|
+
v.stopPropagation(), v.preventDefault(), d(), !(v instanceof MouseEvent && v.which !== 1) && (s = v.pageX, i = v.pageY, a = e.kgWidth, n = e.kgHeight, o = p(document.documentElement, "mousemove", E), l = p(document.documentElement, "mouseup", y));
|
5761
5761
|
}
|
5762
5762
|
function p(v, T, k) {
|
5763
5763
|
return v.addEventListener(T, k), {
|
@@ -5848,7 +5848,7 @@ class KgVarUtil {
|
|
5848
5848
|
return r;
|
5849
5849
|
}
|
5850
5850
|
static transformFormItemValue(t, r, a, n, s) {
|
5851
|
-
var g,
|
5851
|
+
var g, E, y;
|
5852
5852
|
const i = useKg(), o = useKgVar(t);
|
5853
5853
|
let l = n;
|
5854
5854
|
const c = /(.*)?({(.*)?})(.*)?/.exec(l);
|
@@ -5859,7 +5859,7 @@ class KgVarUtil {
|
|
5859
5859
|
l = l.replace("{NOW}", a().format("YYYY-MM-DD HH:mm:ss"));
|
5860
5860
|
break;
|
5861
5861
|
case "{USER.username}":
|
5862
|
-
l = l.replace("{USER.username}", (
|
5862
|
+
l = l.replace("{USER.username}", (y = (E = (g = i.store).getUseUserStore) == null ? void 0 : E.call(g).userInfo) == null ? void 0 : y.username);
|
5863
5863
|
break;
|
5864
5864
|
}
|
5865
5865
|
}
|
@@ -6095,61 +6095,61 @@ class KgVarUtil {
|
|
6095
6095
|
}
|
6096
6096
|
static getDynamicQueryOperatorSelectOptions(t) {
|
6097
6097
|
let r, a, n, s, i, o, l, c, u, d, g;
|
6098
|
-
const
|
6098
|
+
const E = useKg();
|
6099
6099
|
return createVNode(Fragment, null, [[KG_FORM_ITEM_TYPE.INPUT, KG_FORM_ITEM_TYPE.TEXT_AREA, KG_FORM_ITEM_TYPE.INPUT_NUMBER, KG_FORM_ITEM_TYPE.DATE_DATE, KG_FORM_ITEM_TYPE.DATE_TIME, KG_FORM_ITEM_TYPE.DATE_DATETIME, KG_FORM_ITEM_TYPE.DATE_WEEK, KG_FORM_ITEM_TYPE.DATE_MONTH, KG_FORM_ITEM_TYPE.DATE_YEAR, KG_FORM_ITEM_TYPE.CHECKBOX, KG_FORM_ITEM_TYPE.SWITCH, KG_FORM_ITEM_TYPE.SELECT, KG_FORM_ITEM_TYPE.RADIO_GROUP].includes(t) && createVNode(Fragment, null, [createVNode(Select.Option, {
|
6100
|
-
title:
|
6100
|
+
title: E.t("kg.KgSearchConfigModal.EQ-desc"),
|
6101
6101
|
value: KG_DYNAMIC_QUERY_OPERATOR.EQ
|
6102
|
-
}, _isSlot$c(r =
|
6102
|
+
}, _isSlot$c(r = E.t("kg.KgSearchConfigModal.EQ")) ? r : {
|
6103
6103
|
default: () => [r]
|
6104
6104
|
}), createVNode(Select.Option, {
|
6105
|
-
title:
|
6105
|
+
title: E.t("kg.KgSearchConfigModal.NE-desc"),
|
6106
6106
|
value: KG_DYNAMIC_QUERY_OPERATOR.NE
|
6107
|
-
}, _isSlot$c(a =
|
6107
|
+
}, _isSlot$c(a = E.t("kg.KgSearchConfigModal.NE")) ? a : {
|
6108
6108
|
default: () => [a]
|
6109
6109
|
})]), [KG_FORM_ITEM_TYPE.INPUT_NUMBER, KG_FORM_ITEM_TYPE.DATE_DATE, KG_FORM_ITEM_TYPE.DATE_TIME, KG_FORM_ITEM_TYPE.DATE_DATETIME, KG_FORM_ITEM_TYPE.DATE_WEEK, KG_FORM_ITEM_TYPE.DATE_MONTH, KG_FORM_ITEM_TYPE.DATE_YEAR].includes(t) && createVNode(Fragment, null, [createVNode(Select.Option, {
|
6110
|
-
title:
|
6110
|
+
title: E.t("kg.KgSearchConfigModal.GT-desc"),
|
6111
6111
|
value: KG_DYNAMIC_QUERY_OPERATOR.GT
|
6112
|
-
}, _isSlot$c(n =
|
6112
|
+
}, _isSlot$c(n = E.t("kg.KgSearchConfigModal.GT")) ? n : {
|
6113
6113
|
default: () => [n]
|
6114
6114
|
}), createVNode(Select.Option, {
|
6115
|
-
title:
|
6115
|
+
title: E.t("kg.KgSearchConfigModal.GTE-desc"),
|
6116
6116
|
value: KG_DYNAMIC_QUERY_OPERATOR.GTE
|
6117
|
-
}, _isSlot$c(s =
|
6117
|
+
}, _isSlot$c(s = E.t("kg.KgSearchConfigModal.GTE")) ? s : {
|
6118
6118
|
default: () => [s]
|
6119
6119
|
}), createVNode(Select.Option, {
|
6120
|
-
title:
|
6120
|
+
title: E.t("kg.KgSearchConfigModal.LT-desc"),
|
6121
6121
|
value: KG_DYNAMIC_QUERY_OPERATOR.LT
|
6122
|
-
}, _isSlot$c(i =
|
6122
|
+
}, _isSlot$c(i = E.t("kg.KgSearchConfigModal.LT")) ? i : {
|
6123
6123
|
default: () => [i]
|
6124
6124
|
}), createVNode(Select.Option, {
|
6125
|
-
title:
|
6125
|
+
title: E.t("kg.KgSearchConfigModal.LTE-desc"),
|
6126
6126
|
value: KG_DYNAMIC_QUERY_OPERATOR.LTE
|
6127
|
-
}, _isSlot$c(o =
|
6127
|
+
}, _isSlot$c(o = E.t("kg.KgSearchConfigModal.LTE")) ? o : {
|
6128
6128
|
default: () => [o]
|
6129
6129
|
})]), [KG_FORM_ITEM_TYPE.INPUT, KG_FORM_ITEM_TYPE.TEXT_AREA].includes(t) && createVNode(Fragment, null, [createVNode(Select.Option, {
|
6130
|
-
title:
|
6130
|
+
title: E.t("kg.KgSearchConfigModal.START_WITH-desc"),
|
6131
6131
|
value: KG_DYNAMIC_QUERY_OPERATOR.START_WITH
|
6132
|
-
}, _isSlot$c(l =
|
6132
|
+
}, _isSlot$c(l = E.t("kg.KgSearchConfigModal.START_WITH")) ? l : {
|
6133
6133
|
default: () => [l]
|
6134
6134
|
}), createVNode(Select.Option, {
|
6135
|
-
title:
|
6135
|
+
title: E.t("kg.KgSearchConfigModal.END_WITH-desc"),
|
6136
6136
|
value: KG_DYNAMIC_QUERY_OPERATOR.END_WITH
|
6137
|
-
}, _isSlot$c(c =
|
6137
|
+
}, _isSlot$c(c = E.t("kg.KgSearchConfigModal.END_WITH")) ? c : {
|
6138
6138
|
default: () => [c]
|
6139
6139
|
}), createVNode(Select.Option, {
|
6140
|
-
title:
|
6140
|
+
title: E.t("kg.KgSearchConfigModal.CONTAIN-desc"),
|
6141
6141
|
value: KG_DYNAMIC_QUERY_OPERATOR.CONTAIN
|
6142
|
-
}, _isSlot$c(u =
|
6142
|
+
}, _isSlot$c(u = E.t("kg.KgSearchConfigModal.CONTAIN")) ? u : {
|
6143
6143
|
default: () => [u]
|
6144
6144
|
})]), [KG_FORM_ITEM_TYPE.CHECKBOX_GROUP, KG_FORM_ITEM_TYPE.SELECT_MULTIPLE].includes(t) && createVNode(Select.Option, {
|
6145
|
-
title:
|
6145
|
+
title: E.t("kg.KgSearchConfigModal.IN-desc"),
|
6146
6146
|
value: KG_DYNAMIC_QUERY_OPERATOR.IN
|
6147
|
-
}, _isSlot$c(d =
|
6147
|
+
}, _isSlot$c(d = E.t("kg.KgSearchConfigModal.IN")) ? d : {
|
6148
6148
|
default: () => [d]
|
6149
6149
|
}), [KG_FORM_ITEM_TYPE.DATE_DATE_RANGE, KG_FORM_ITEM_TYPE.DATE_TIME_RANGE, KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE].includes(t) && createVNode(Select.Option, {
|
6150
|
-
title:
|
6150
|
+
title: E.t("kg.KgSearchConfigModal.BETWEEN-desc"),
|
6151
6151
|
value: KG_DYNAMIC_QUERY_OPERATOR.BETWEEN
|
6152
|
-
}, _isSlot$c(g =
|
6152
|
+
}, _isSlot$c(g = E.t("kg.KgSearchConfigModal.BETWEEN")) ? g : {
|
6153
6153
|
default: () => [g]
|
6154
6154
|
})]);
|
6155
6155
|
}
|
@@ -6303,15 +6303,15 @@ function createStore(e, t, r) {
|
|
6303
6303
|
_assignPluginFnProp: function(l, c) {
|
6304
6304
|
var u = this[c];
|
6305
6305
|
this[c] = function() {
|
6306
|
-
var g = slice(arguments, 0),
|
6307
|
-
function
|
6306
|
+
var g = slice(arguments, 0), E = this;
|
6307
|
+
function y() {
|
6308
6308
|
if (!!u)
|
6309
6309
|
return each$6(arguments, function(p, b) {
|
6310
6310
|
g[b] = p;
|
6311
|
-
}), u.apply(
|
6311
|
+
}), u.apply(E, g);
|
6312
6312
|
}
|
6313
|
-
var _ = [
|
6314
|
-
return l.apply(
|
6313
|
+
var _ = [y].concat(g);
|
6314
|
+
return l.apply(E, _);
|
6315
6315
|
};
|
6316
6316
|
},
|
6317
6317
|
_serialize: function(l) {
|
@@ -6348,10 +6348,10 @@ function createStore(e, t, r) {
|
|
6348
6348
|
var d = l.call(this);
|
6349
6349
|
if (!isObject(d))
|
6350
6350
|
throw new Error("Plugins must return an object of function properties");
|
6351
|
-
each$6(d, function(g,
|
6351
|
+
each$6(d, function(g, E) {
|
6352
6352
|
if (!isFunction(g))
|
6353
|
-
throw new Error("Bad plugin property: " +
|
6354
|
-
c._assignPluginFnProp(g,
|
6353
|
+
throw new Error("Bad plugin property: " + E + " from plugin " + l.name + ". Plugins should only return functions.");
|
6354
|
+
c._assignPluginFnProp(g, E);
|
6355
6355
|
});
|
6356
6356
|
}
|
6357
6357
|
},
|
@@ -7403,15 +7403,15 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
7403
7403
|
varButtonConfig: u,
|
7404
7404
|
varButtons: d,
|
7405
7405
|
varSubmitConfig: g,
|
7406
|
-
varSubmitFields:
|
7407
|
-
varProfileMasters:
|
7406
|
+
varSubmitFields: E,
|
7407
|
+
varProfileMasters: y,
|
7408
7408
|
varProfileConfig: _,
|
7409
7409
|
varGridMasters: p,
|
7410
7410
|
varGridConfig: b
|
7411
7411
|
} = await GetAll({ params: { frm_id: e } });
|
7412
|
-
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, i != null ? i : []), this.varPossibilityMap.set(e, c != null ? c : []), this.varVariableConfigMap.set(e, o != null ? o : []), this.varVariableInputMap.set(e, l != null ? l : []), 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(
|
7413
|
-
varProfileMasters: transformVarProfileMasterDTOs(
|
7414
|
-
currentVarProfileMasterID: (r = (t = (
|
7412
|
+
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, i != null ? i : []), this.varPossibilityMap.set(e, c != null ? c : []), this.varVariableConfigMap.set(e, o != null ? o : []), this.varVariableInputMap.set(e, l != null ? l : []), 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, {
|
7413
|
+
varProfileMasters: transformVarProfileMasterDTOs(y),
|
7414
|
+
currentVarProfileMasterID: (r = (t = (y == null ? void 0 : y.find((v) => v.id === this.getCurrentVarProfileMasterID(e))) || (y == null ? void 0 : y.find((v) => v.def_flg === 1)) || (y == null ? void 0 : y.find((v) => v.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (y == null ? void 0 : y.find(() => !0))) == null ? void 0 : t.id) != null ? r : null
|
7415
7415
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(b != null ? b : null)), this.varGridMasterMap.set(e, {
|
7416
7416
|
varGridMasters: transformVarGridMasterDTOs(p),
|
7417
7417
|
currentVarGridMasterID: (n = (a = (p == null ? void 0 : p.find((v) => v.id === this.getCurrentVarGridMasterID(e))) || (p == null ? void 0 : p.find((v) => v.def_flg === 1)) || (p == null ? void 0 : p.find((v) => v.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (p == null ? void 0 : p.find(() => !0))) == null ? void 0 : a.id) != null ? n : null
|
@@ -7624,7 +7624,7 @@ function useKgVar(e, t, r = 0) {
|
|
7624
7624
|
}), onUnmounted(() => {
|
7625
7625
|
u.dispose(c);
|
7626
7626
|
}));
|
7627
|
-
const d = (Z) => computed(() => u.t(c, Z)), g = computed(() => u.isRetrieving(c)),
|
7627
|
+
const d = (Z) => computed(() => u.t(c, Z)), g = computed(() => u.isRetrieving(c)), E = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), _ = computed(() => u.isRetrieved(c)), p = computed(() => u.isCreating(c)), b = computed(() => u.isCreatingRequesting(c)), v = computed(() => u.isUpdating(c)), T = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), A = computed(() => u.isCopyingRequesting(c)), C = computed(() => u.isDeleting(c)), V = computed(() => u.isDeletingRequesting(c)), M = computed(() => u.isOtherRequesting(c)), O = computed(() => u.getVarButtons(c)), I = computed(() => u.getVarButtonSearch(c)), L = computed(() => u.getVarButtonCreate(c)), w = computed(() => u.getVarButtonUpdate(c)), F = computed(() => u.getVarButtonCopy(c)), K = computed(() => u.getVarButtonDelete(c)), D = computed(() => u.getVarProfileMasters(c)), R = computed(() => u.getCurrentVarProfileMasterID(c)), N = computed(() => u.getCurrentVarProfileMaster(c)), B = computed(() => {
|
7628
7628
|
var Z, te;
|
7629
7629
|
return (te = (Z = N.value) == null ? void 0 : Z.varProfileDetails) != null ? te : null;
|
7630
7630
|
}), Y = computed(() => u.getVarGridConfig(c)), $ = computed(() => u.getVarGridMasters(c)), x = computed(() => u.getCurrentVarGridMasterID(c)), W = computed(() => u.getCurrentVarGridMaster(c)), q = computed(() => u.getSystemVarGridDetails(c)), J = computed(() => u.getCurrentVarGridDetails(c));
|
@@ -7632,8 +7632,8 @@ function useKgVar(e, t, r = 0) {
|
|
7632
7632
|
formID: c,
|
7633
7633
|
store: u,
|
7634
7634
|
isRetrieving: g,
|
7635
|
-
isRetrievingVarProfileMaster:
|
7636
|
-
isRetrievingVarGridMaster:
|
7635
|
+
isRetrievingVarProfileMaster: E,
|
7636
|
+
isRetrievingVarGridMaster: y,
|
7637
7637
|
isRetrieved: _,
|
7638
7638
|
isCreating: p,
|
7639
7639
|
isCreatingRequesting: b,
|
@@ -7644,13 +7644,13 @@ function useKgVar(e, t, r = 0) {
|
|
7644
7644
|
isDeleting: C,
|
7645
7645
|
isDeletingRequesting: V,
|
7646
7646
|
isOtherRequesting: M,
|
7647
|
-
varButtons:
|
7647
|
+
varButtons: O,
|
7648
7648
|
varButtonSearch: I,
|
7649
7649
|
varButtonCreate: L,
|
7650
7650
|
varButtonUpdate: w,
|
7651
7651
|
varButtonCopy: F,
|
7652
7652
|
varButtonDelete: K,
|
7653
|
-
varProfileMasters:
|
7653
|
+
varProfileMasters: D,
|
7654
7654
|
currentVarProfileMasterID: R,
|
7655
7655
|
currentVarProfileMaster: N,
|
7656
7656
|
currentVarProfileDetails: B,
|
@@ -7698,15 +7698,15 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
7698
7698
|
}), g = computed(() => {
|
7699
7699
|
var v;
|
7700
7700
|
return r.isRetrieved.value && ((v = o.value) == null ? void 0 : v.available_flg) !== 0;
|
7701
|
-
}),
|
7701
|
+
}), E = computed(() => {
|
7702
7702
|
var v;
|
7703
7703
|
return r.isRetrieved.value && ((v = l.value) == null ? void 0 : v.available_flg) !== 0;
|
7704
|
-
}),
|
7704
|
+
}), y = computed(() => {
|
7705
7705
|
var v;
|
7706
7706
|
return r.isRetrieved.value && ((v = c.value) == null ? void 0 : v.available_flg) !== 0;
|
7707
7707
|
}), _ = computed(() => !!r.isOtherRequesting.value), p = computed(() => {
|
7708
7708
|
let v = "kg-var";
|
7709
|
-
return e.KgBackgroundGray && (v += " kg-var--bg-gray"), !g.value && !
|
7709
|
+
return e.KgBackgroundGray && (v += " kg-var--bg-gray"), !g.value && !E.value && !y.value && (v += " kg-var--empty"), v;
|
7710
7710
|
});
|
7711
7711
|
function b() {
|
7712
7712
|
return createVNode(Spin, {
|
@@ -7714,7 +7714,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
7714
7714
|
}, {
|
7715
7715
|
default: () => {
|
7716
7716
|
var v, T;
|
7717
|
-
return [t.default ? t.default() : createVNode(Fragment, null, [g.value && createVNode(KgSearch, null, null),
|
7717
|
+
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 = (v = e.kgSlots) == null ? void 0 : v.afterKgTable) == null ? void 0 : T.call(v)]), d.value && createVNode(KgSubmit, null, null)])];
|
7718
7718
|
}
|
7719
7719
|
});
|
7720
7720
|
}
|
@@ -7738,18 +7738,18 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
7738
7738
|
const a = inject(KG_DI_HOST_FORM_ID, ""), n = useKgVar(a), s = useKgForm(n.formID), i = inject(KG_DI_VAR_NAME, ""), o = inject(KG_DI_LOOKUP_ID, ""), l = inject(DI_FORM_MODEL, computed(() => ({}))), c = useKgVar(o, !0, n.store.getFormLevel(n.formID) + 1), u = useKgTable(c.formID), d = computed(() => n.store.getVarLookup(n.formID, i)), g = computed(() => {
|
7739
7739
|
var p;
|
7740
7740
|
return ((p = d == null ? void 0 : d.value) == null ? void 0 : p.mult_flg) === 1;
|
7741
|
-
}),
|
7741
|
+
}), E = computed(() => {
|
7742
7742
|
var p, b;
|
7743
7743
|
return (b = (p = d == null ? void 0 : d.value) == null ? void 0 : p.ret_fld) != null ? b : "";
|
7744
7744
|
});
|
7745
7745
|
u.onRowDoubleClick(async () => (await _(), !1));
|
7746
|
-
function
|
7746
|
+
function y() {
|
7747
7747
|
r("update:visible", !1);
|
7748
7748
|
}
|
7749
7749
|
async function _() {
|
7750
7750
|
var p, b, v, T, k, A, C;
|
7751
7751
|
if (g.value) {
|
7752
|
-
const V = (b = (p = u.selectedRows) == null ? void 0 : p.value) != null ? b : [], M = (v = V.map((I) => I[
|
7752
|
+
const V = (b = (p = u.selectedRows) == null ? void 0 : p.value) != null ? b : [], M = (v = V.map((I) => I[E.value])) != null ? v : [];
|
7753
7753
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
7754
7754
|
var_nam: i,
|
7755
7755
|
isMultiple: !0,
|
@@ -7763,7 +7763,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
7763
7763
|
rows: V
|
7764
7764
|
}), r("update:visible", !1));
|
7765
7765
|
} else {
|
7766
|
-
const V = (A = (k = (T = u.selectedRows) == null ? void 0 : T.value) == null ? void 0 : k[0]) != null ? A : null, M = (C = V == null ? void 0 : V[
|
7766
|
+
const V = (A = (k = (T = u.selectedRows) == null ? void 0 : T.value) == null ? void 0 : k[0]) != null ? A : null, M = (C = V == null ? void 0 : V[E.value]) != null ? C : "";
|
7767
7767
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
7768
7768
|
var_nam: i,
|
7769
7769
|
isMultiple: !1,
|
@@ -7788,7 +7788,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
7788
7788
|
disabled: ((b = (p = u.selectedRows.value) == null ? void 0 : p.length) != null ? b : 0) === 0
|
7789
7789
|
},
|
7790
7790
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
7791
|
-
onCancel:
|
7791
|
+
onCancel: y,
|
7792
7792
|
onOk: _
|
7793
7793
|
}, {
|
7794
7794
|
default: () => [createVNode(KgVar, null, null)]
|
@@ -7883,7 +7883,7 @@ function _useRules(e) {
|
|
7883
7883
|
const t = useKg(), r = useKgVar(), a = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), n = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), s = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName));
|
7884
7884
|
return {
|
7885
7885
|
rules: computed(() => {
|
7886
|
-
var l, c, u, d, g,
|
7886
|
+
var l, c, u, d, g, E, y, _, p, b;
|
7887
7887
|
let o = [];
|
7888
7888
|
switch (e.kgContext) {
|
7889
7889
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -7921,10 +7921,10 @@ function _useRules(e) {
|
|
7921
7921
|
}
|
7922
7922
|
break;
|
7923
7923
|
}
|
7924
|
-
switch ((
|
7924
|
+
switch ((E = n.value) == null ? void 0 : E.data_type) {
|
7925
7925
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
7926
7926
|
{
|
7927
|
-
const v = (
|
7927
|
+
const v = (y = n.value) == null ? void 0 : y.min;
|
7928
7928
|
isNil(v) || (((_ = n.value) == null ? void 0 : _.min_include_flg) === 1 ? o.push({
|
7929
7929
|
validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) < v ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [v])) : Promise.resolve()
|
7930
7930
|
}) : o.push({
|
@@ -7945,8 +7945,8 @@ function _useRules(e) {
|
|
7945
7945
|
}
|
7946
7946
|
function useKgFormItem(e) {
|
7947
7947
|
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(() => {
|
7948
|
-
var
|
7949
|
-
const o = ((
|
7948
|
+
var E, y, _, p, b, v;
|
7949
|
+
const o = ((E = n.value) == null ? void 0 : E.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, l = (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 = (b = n.value) == null ? void 0 : b.cpy_ctrl_typ, g = (v = n.value) == null ? void 0 : v.del_ctrl_typ;
|
7950
7950
|
switch (r) {
|
7951
7951
|
case KG_FORM_CONTEXT.SEARCH:
|
7952
7952
|
return l || o;
|
@@ -7964,9 +7964,9 @@ function useKgFormItem(e) {
|
|
7964
7964
|
}
|
7965
7965
|
return o;
|
7966
7966
|
}), i = computed(() => {
|
7967
|
-
var
|
7967
|
+
var y, _, p, b, v, T;
|
7968
7968
|
let o;
|
7969
|
-
const l = (
|
7969
|
+
const l = (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 = (b = n.value) == null ? void 0 : b.upt_ctrl_prop, g = (v = n.value) == null ? void 0 : v.cpy_ctrl_prop, E = (T = n.value) == null ? void 0 : T.del_ctrl_prop;
|
7970
7970
|
switch (r) {
|
7971
7971
|
case KG_FORM_CONTEXT.SEARCH:
|
7972
7972
|
o = c || l;
|
@@ -7983,7 +7983,7 @@ function useKgFormItem(e) {
|
|
7983
7983
|
o = g || l;
|
7984
7984
|
break;
|
7985
7985
|
case a.isDeleting.value:
|
7986
|
-
o =
|
7986
|
+
o = E || l;
|
7987
7987
|
break;
|
7988
7988
|
}
|
7989
7989
|
}
|
@@ -7999,15 +7999,15 @@ function useKgFormItemSelect() {
|
|
7999
7999
|
controlType: n,
|
8000
8000
|
controlProperties: s
|
8001
8001
|
} = useKgFormItem(), i = ref(!1), o = ref([]), l = computed(() => {
|
8002
|
-
var
|
8003
|
-
return (
|
8002
|
+
var E, y;
|
8003
|
+
return (y = (E = a.value) == null ? void 0 : E.val_clm) != null ? y : "";
|
8004
8004
|
}), c = computed(() => {
|
8005
|
-
var
|
8006
|
-
return (
|
8005
|
+
var E, y;
|
8006
|
+
return (y = (E = a.value) == null ? void 0 : E.lbl_clm) != null ? y : "";
|
8007
8007
|
}), u = computed(() => {
|
8008
|
-
var
|
8009
|
-
let
|
8010
|
-
return
|
8008
|
+
var y;
|
8009
|
+
let E = KgVarUtil.parseCommandParameter((y = a.value) == null ? void 0 : y.cmd_prm);
|
8010
|
+
return E = mapValues(E, (_) => {
|
8011
8011
|
var b, v;
|
8012
8012
|
let p = _;
|
8013
8013
|
if (typeof _ == "string" && _.startsWith("{") && _.endsWith("}")) {
|
@@ -8019,17 +8019,17 @@ function useKgFormItemSelect() {
|
|
8019
8019
|
t.value && T in t.value && (k ? p = (v = (b = t.value[`${T}_obj`]) == null ? void 0 : b[k]) != null ? v : void 0 : p = t.value[T], p || (p = "__kg__form_item_select__pid"));
|
8020
8020
|
}
|
8021
8021
|
return p;
|
8022
|
-
}),
|
8022
|
+
}), E;
|
8023
8023
|
});
|
8024
8024
|
async function d() {
|
8025
|
-
var T, k, A, C, V, M,
|
8026
|
-
let
|
8027
|
-
const
|
8028
|
-
if (!
|
8025
|
+
var T, k, A, C, V, M, O, I;
|
8026
|
+
let E = [];
|
8027
|
+
const y = (T = a.value) == null ? void 0 : T.cmd, _ = (A = (k = a.value) == null ? void 0 : k.cmd_method) != null ? A : "GET", p = (V = (C = a.value) == null ? void 0 : C.val_clm) != null ? V : "", b = (O = (M = a.value) == null ? void 0 : M.lbl_clm) != null ? O : "";
|
8028
|
+
if (!y || !p || !b) {
|
8029
8029
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
8030
8030
|
frm_id: r.formID,
|
8031
8031
|
var_nam: e,
|
8032
|
-
cmd:
|
8032
|
+
cmd: y,
|
8033
8033
|
val_clm: p,
|
8034
8034
|
lbl_clm: b
|
8035
8035
|
});
|
@@ -8038,7 +8038,7 @@ function useKgFormItemSelect() {
|
|
8038
8038
|
let v = null;
|
8039
8039
|
try {
|
8040
8040
|
i.value = !0, v = await ((I = httpClient()) == null ? void 0 : I.request({
|
8041
|
-
url:
|
8041
|
+
url: y,
|
8042
8042
|
method: _,
|
8043
8043
|
params: u.value
|
8044
8044
|
}));
|
@@ -8047,58 +8047,58 @@ function useKgFormItemSelect() {
|
|
8047
8047
|
i.value = !1;
|
8048
8048
|
}
|
8049
8049
|
if (!isObjectLike(v))
|
8050
|
-
|
8050
|
+
E = [];
|
8051
8051
|
else
|
8052
8052
|
switch (!0) {
|
8053
8053
|
case isArrayLike(v):
|
8054
|
-
|
8054
|
+
E = g(v);
|
8055
8055
|
break;
|
8056
8056
|
case (v && "total" in v && "records" in v):
|
8057
|
-
|
8057
|
+
E = g(v.records);
|
8058
8058
|
break;
|
8059
8059
|
}
|
8060
|
-
if (
|
8061
|
-
const L =
|
8060
|
+
if (E.length > 0) {
|
8061
|
+
const L = E[0];
|
8062
8062
|
(!(p 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.", {
|
8063
8063
|
frm_id: r.formID,
|
8064
8064
|
var_nam: e,
|
8065
|
-
cmd:
|
8065
|
+
cmd: y,
|
8066
8066
|
val_clm: p,
|
8067
8067
|
lbl_clm: b,
|
8068
8068
|
\u6240\u6709\u5217: Object.keys(L)
|
8069
8069
|
});
|
8070
8070
|
}
|
8071
|
-
o.value =
|
8071
|
+
o.value = E;
|
8072
8072
|
}
|
8073
|
-
function g(
|
8073
|
+
function g(E) {
|
8074
8074
|
var p, b, v, T, k;
|
8075
|
-
if (!
|
8075
|
+
if (!E)
|
8076
8076
|
return [];
|
8077
|
-
const
|
8077
|
+
const y = (b = (p = a.value) == null ? void 0 : p.val_clm) != null ? b : "", _ = (T = (v = a.value) == null ? void 0 : v.val_data_type) != null ? T : "string";
|
8078
8078
|
switch (_) {
|
8079
8079
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
8080
|
-
|
8081
|
-
A[
|
8080
|
+
E.forEach((A) => {
|
8081
|
+
A[y] = String(A[y]);
|
8082
8082
|
});
|
8083
8083
|
break;
|
8084
8084
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
8085
|
-
|
8086
|
-
let C = Number(A[
|
8087
|
-
Number.isNaN(C) && (C = A[
|
8085
|
+
E.forEach((A) => {
|
8086
|
+
let C = Number(A[y]);
|
8087
|
+
Number.isNaN(C) && (C = A[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${A[y]} \u8F6C\u6362\u4E3A ${_} \u7C7B\u578B`, {
|
8088
8088
|
frm_id: r.formID,
|
8089
8089
|
var_nam: e,
|
8090
8090
|
VarPossibility: a.value
|
8091
|
-
})), A[
|
8091
|
+
})), A[y] = C;
|
8092
8092
|
});
|
8093
8093
|
break;
|
8094
8094
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
8095
|
-
|
8095
|
+
E.forEach((A) => {
|
8096
8096
|
let C;
|
8097
|
-
String(A[
|
8097
|
+
String(A[y]).toLowerCase() === "true" ? C = !0 : String(A[y]).toLowerCase() === "false" ? C = !1 : (C = A[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${A[y]} \u8F6C\u6362\u4E3A ${_} \u7C7B\u578B`, {
|
8098
8098
|
frm_id: r.formID,
|
8099
8099
|
var_nam: e,
|
8100
8100
|
VarPossibility: a.value
|
8101
|
-
})), A[
|
8101
|
+
})), A[y] = C;
|
8102
8102
|
});
|
8103
8103
|
break;
|
8104
8104
|
}
|
@@ -8107,14 +8107,14 @@ function useKgFormItemSelect() {
|
|
8107
8107
|
{
|
8108
8108
|
const A = s;
|
8109
8109
|
if ((k = A.value) != null && k.excludeValues)
|
8110
|
-
return
|
8110
|
+
return E.filter((C) => {
|
8111
8111
|
var V;
|
8112
|
-
return !((V = A.value.excludeValues) != null && V.includes(C[
|
8112
|
+
return !((V = A.value.excludeValues) != null && V.includes(C[y]));
|
8113
8113
|
});
|
8114
8114
|
}
|
8115
8115
|
break;
|
8116
8116
|
}
|
8117
|
-
return
|
8117
|
+
return E;
|
8118
8118
|
}
|
8119
8119
|
return {
|
8120
8120
|
varPossibility: a,
|
@@ -8147,7 +8147,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8147
8147
|
datas: c,
|
8148
8148
|
retrieveDatas: u
|
8149
8149
|
} = useKgFormItemSelect(), d = ref(!1), g = ref(!1);
|
8150
|
-
watch(o, () =>
|
8150
|
+
watch(o, () => E(), {
|
8151
8151
|
immediate: !0
|
8152
8152
|
}), watch([() => e.value, c], ([p, b]) => {
|
8153
8153
|
const v = get(p, "length", 0);
|
@@ -8172,11 +8172,11 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8172
8172
|
}, {
|
8173
8173
|
immediate: !0
|
8174
8174
|
});
|
8175
|
-
async function
|
8175
|
+
async function E() {
|
8176
8176
|
var p, b;
|
8177
8177
|
!((p = i.value) != null && p.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((b = c.value) == null ? void 0 : b.map((v) => v[l.value]), e.value)));
|
8178
8178
|
}
|
8179
|
-
function
|
8179
|
+
function y(p) {
|
8180
8180
|
var b, v, T;
|
8181
8181
|
p.target.checked ? _((v = (b = c.value) == null ? void 0 : b.map((k) => k[l.value])) != null ? v : []) : _([]), g.value = !1, (T = n.value) == null || T.validate(e.kgVarName);
|
8182
8182
|
}
|
@@ -8192,7 +8192,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8192
8192
|
checked: d.value,
|
8193
8193
|
"onUpdate:checked": (v) => d.value = v,
|
8194
8194
|
indeterminate: g.value,
|
8195
|
-
onChange:
|
8195
|
+
onChange: y
|
8196
8196
|
}, _isSlot$b(p = a.t("kg.selectAll")) ? p : {
|
8197
8197
|
default: () => [p]
|
8198
8198
|
})]
|
@@ -8371,9 +8371,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8371
8371
|
default: () => [createVNode(Row, {
|
8372
8372
|
gutter: 12
|
8373
8373
|
}, _isSlot$a(d = o.value.map((g) => {
|
8374
|
-
var
|
8374
|
+
var E, y;
|
8375
8375
|
return createVNode(Col, {
|
8376
|
-
span: (
|
8376
|
+
span: (y = (E = a.value) == null ? void 0 : E.span) != null ? y : 24
|
8377
8377
|
}, {
|
8378
8378
|
default: () => [createVNode(Radio, {
|
8379
8379
|
value: g[i.value],
|
@@ -8409,11 +8409,11 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8409
8409
|
retrieveDatas: g
|
8410
8410
|
} = useKgFormItemSelect();
|
8411
8411
|
watch(o, () => {
|
8412
|
-
|
8412
|
+
E();
|
8413
8413
|
}, {
|
8414
8414
|
immediate: !0
|
8415
8415
|
});
|
8416
|
-
async function
|
8416
|
+
async function E() {
|
8417
8417
|
var p;
|
8418
8418
|
if (!!((p = i.value) != null && p.id))
|
8419
8419
|
switch (await g(), r("kgSelectDatasChange", d.value), e.kgMode) {
|
@@ -8429,7 +8429,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8429
8429
|
break;
|
8430
8430
|
}
|
8431
8431
|
}
|
8432
|
-
function
|
8432
|
+
function y(p) {
|
8433
8433
|
var b, v;
|
8434
8434
|
switch (e.kgMode) {
|
8435
8435
|
case "multiple": {
|
@@ -8471,7 +8471,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8471
8471
|
filterOption: (b, v) => (v == null ? void 0 : v.value) !== null && (v == null ? void 0 : v.value) !== void 0 && String(v.value).toLowerCase().includes(b.toLowerCase()) || (v == null ? void 0 : v.label) !== null && (v == null ? void 0 : v.label) !== void 0 && String(v.label).toLowerCase().includes(b.toLowerCase()),
|
8472
8472
|
dropdownClassName: e.kgMode === "multiple" ? "kg-form-item-select-dropdown kg-form-item-multi-select-dropdown" : "kg-form-item-select-dropdown",
|
8473
8473
|
class: "kg-form-item-select",
|
8474
|
-
onChange:
|
8474
|
+
onChange: y,
|
8475
8475
|
"kg-value": e.value,
|
8476
8476
|
"kg-cmd": (p = i.value) == null ? void 0 : p.cmd,
|
8477
8477
|
"kg-val_clm": l.value,
|
@@ -8551,23 +8551,23 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8551
8551
|
var_nam: w,
|
8552
8552
|
model: F,
|
8553
8553
|
isMultiple: K,
|
8554
|
-
value:
|
8554
|
+
value: D,
|
8555
8555
|
values: R
|
8556
8556
|
}) => {
|
8557
8557
|
var N;
|
8558
8558
|
switch (w) {
|
8559
8559
|
case e.kgVarName:
|
8560
|
-
F.value && (K ? F.value[e.kgVarName] = R : F.value[e.kgVarName] =
|
8560
|
+
F.value && (K ? F.value[e.kgVarName] = R : F.value[e.kgVarName] = D), (N = n.value) == null || N.validate([e.kgVarName]);
|
8561
8561
|
break;
|
8562
8562
|
}
|
8563
8563
|
return !1;
|
8564
8564
|
});
|
8565
8565
|
const c = computed(() => i.store.getVarLookup(i.formID, e.kgVarName)), u = computed(() => i.store.getVarVariableConfig(i.formID, e.kgVarName)), d = computed(() => i.store.getVarProfileDetail(i.formID, e.kgVarName)), g = computed(() => i.store.getVarSubmitField(i.formID, e.kgVarName)), {
|
8566
|
-
rules:
|
8566
|
+
rules: E
|
8567
8567
|
} = _useRules(e), {
|
8568
|
-
controlType:
|
8568
|
+
controlType: y
|
8569
8569
|
} = useKgFormItem(e), _ = computed(() => {
|
8570
|
-
var F, K,
|
8570
|
+
var F, K, D, R, N;
|
8571
8571
|
if (i.isRetrieving.value)
|
8572
8572
|
return !0;
|
8573
8573
|
let w = !1;
|
@@ -8584,7 +8584,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8584
8584
|
w = ((K = g.value) == null ? void 0 : K.crt_ena_flg) === 0;
|
8585
8585
|
break;
|
8586
8586
|
case i.isUpdating.value:
|
8587
|
-
w = ((
|
8587
|
+
w = ((D = g.value) == null ? void 0 : D.upt_ena_flg) === 0;
|
8588
8588
|
break;
|
8589
8589
|
case i.isCopying.value:
|
8590
8590
|
w = ((R = g.value) == null ? void 0 : R.cpy_ena_flg) === 0;
|
@@ -8597,7 +8597,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8597
8597
|
}
|
8598
8598
|
return w;
|
8599
8599
|
}), p = computed(() => {
|
8600
|
-
var F, K,
|
8600
|
+
var F, K, D, R;
|
8601
8601
|
let w = " ";
|
8602
8602
|
if (e.kgPlaceholder)
|
8603
8603
|
w = e.kgPlaceholder;
|
@@ -8607,12 +8607,12 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8607
8607
|
w = i.t((K = (F = d.value) == null ? void 0 : F.placeholder) != null ? K : " ").value;
|
8608
8608
|
break;
|
8609
8609
|
case KG_FORM_CONTEXT.SUBMIT:
|
8610
|
-
w = i.t((R = (
|
8610
|
+
w = i.t((R = (D = g.value) == null ? void 0 : D.placeholder) != null ? R : " ").value;
|
8611
8611
|
break;
|
8612
8612
|
}
|
8613
8613
|
return w;
|
8614
8614
|
}), b = computed(() => {
|
8615
|
-
var F, K,
|
8615
|
+
var F, K, D, R, N, B, Y, $, x, W;
|
8616
8616
|
let w = 6;
|
8617
8617
|
if (e.kgSpan !== void 0)
|
8618
8618
|
w = e.kgSpan;
|
@@ -8624,7 +8624,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8624
8624
|
case KG_FORM_CONTEXT.SUBMIT:
|
8625
8625
|
switch (!0) {
|
8626
8626
|
case i.isCreating.value:
|
8627
|
-
w = (R = (
|
8627
|
+
w = (R = (D = g.value) == null ? void 0 : D.crt_width) != null ? R : 6;
|
8628
8628
|
break;
|
8629
8629
|
case i.isUpdating.value:
|
8630
8630
|
w = (B = (N = g.value) == null ? void 0 : N.upt_width) != null ? B : 6;
|
@@ -8642,7 +8642,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8642
8642
|
VarSubmitField: g.value
|
8643
8643
|
}), 6);
|
8644
8644
|
}), v = computed(() => {
|
8645
|
-
var F, K,
|
8645
|
+
var F, K, D, R, N;
|
8646
8646
|
let w = null;
|
8647
8647
|
if (e.kgSpan !== void 0)
|
8648
8648
|
w = e.kgSpan;
|
@@ -8657,7 +8657,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8657
8657
|
w = (K = g.value) == null ? void 0 : K.crt_width;
|
8658
8658
|
break;
|
8659
8659
|
case i.isUpdating.value:
|
8660
|
-
w = (
|
8660
|
+
w = (D = g.value) == null ? void 0 : D.upt_width;
|
8661
8661
|
break;
|
8662
8662
|
case i.isCopying.value:
|
8663
8663
|
w = (R = g.value) == null ? void 0 : R.cpy_width;
|
@@ -8669,9 +8669,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8669
8669
|
}
|
8670
8670
|
return w = Number(w), new Array(24).fill(0).map((B, Y) => Y + 1).includes(w) ? w : null;
|
8671
8671
|
}), T = computed(() => {
|
8672
|
-
var
|
8672
|
+
var D, R;
|
8673
8673
|
const w = get(V.value, "$el.parentElement");
|
8674
|
-
if (w && !((
|
8674
|
+
if (w && !((D = w.classList) != null && D.contains("ant-row")))
|
8675
8675
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
8676
8676
|
let F = {};
|
8677
8677
|
const K = Math.abs(Number.parseInt((R = get(V.value, "$el.parentElement.style.marginLeft")) != null ? R : "0px"));
|
@@ -8680,7 +8680,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8680
8680
|
paddingRight: `${K}px !important`
|
8681
8681
|
}), F;
|
8682
8682
|
}), k = computed(() => {
|
8683
|
-
var F, K,
|
8683
|
+
var F, K, D, R;
|
8684
8684
|
let w = "kg-form-item";
|
8685
8685
|
switch (c.value && (w += " kg-form-item-lookup"), v.value !== null && (w += " kg-form-item--col-fixed"), e.kgContext) {
|
8686
8686
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -8693,7 +8693,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8693
8693
|
case KG_FORM_CONTEXT.SUBMIT:
|
8694
8694
|
switch (!0) {
|
8695
8695
|
case (i.isCreating.value && ((K = g.value) == null ? void 0 : K.crt_vis_flg) === 0):
|
8696
|
-
case (i.isUpdating.value && ((
|
8696
|
+
case (i.isUpdating.value && ((D = g.value) == null ? void 0 : D.upt_vis_flg) === 0):
|
8697
8697
|
case (i.isCopying.value && ((R = g.value) == null ? void 0 : R.cpy_vis_flg) === 0):
|
8698
8698
|
w += " kg-form-item--invisible";
|
8699
8699
|
break;
|
@@ -8713,7 +8713,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8713
8713
|
kgDisabled: _.value,
|
8714
8714
|
id: C.value
|
8715
8715
|
};
|
8716
|
-
switch (
|
8716
|
+
switch (y.value) {
|
8717
8717
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
8718
8718
|
break;
|
8719
8719
|
case KG_FORM_ITEM_TYPE.SELECT:
|
@@ -8757,7 +8757,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8757
8757
|
};
|
8758
8758
|
return t.control(w);
|
8759
8759
|
}
|
8760
|
-
switch (
|
8760
|
+
switch (y.value) {
|
8761
8761
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
8762
8762
|
return createVNode(KgFormItemInputNumber, A.value, null);
|
8763
8763
|
case KG_FORM_ITEM_TYPE.TEXT_AREA:
|
@@ -8790,13 +8790,13 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8790
8790
|
return createVNode(KgFormItemInput, A.value, null);
|
8791
8791
|
}
|
8792
8792
|
}
|
8793
|
-
function
|
8793
|
+
function O() {
|
8794
8794
|
var w, F, K;
|
8795
8795
|
return ((F = (w = s.option.value.KgSearch) == null ? void 0 : w.dynamicQuery) == null ? void 0 : F.on) !== !0 || ((K = i.currentVarProfileMaster.value) == null ? void 0 : K.dyn_flg) !== 1 ? null : createVNode(Form.ItemRest, null, {
|
8796
8796
|
default: () => {
|
8797
|
-
var
|
8797
|
+
var D;
|
8798
8798
|
return [createVNode(Select, {
|
8799
|
-
value: (
|
8799
|
+
value: (D = l.operatorModel.value) == null ? void 0 : D[e.kgVarName],
|
8800
8800
|
"onUpdate:value": (R) => {
|
8801
8801
|
l.store.patchOperatorModel(i.formID, {
|
8802
8802
|
[e.kgVarName]: R
|
@@ -8808,7 +8808,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8808
8808
|
}, {
|
8809
8809
|
default: () => {
|
8810
8810
|
var R;
|
8811
|
-
return KgVarUtil.getDynamicQueryOperatorSelectOptions((R =
|
8811
|
+
return KgVarUtil.getDynamicQueryOperatorSelectOptions((R = y.value) != null ? R : "");
|
8812
8812
|
},
|
8813
8813
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
8814
8814
|
class: "ant-select-suffix"
|
@@ -8845,11 +8845,11 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8845
8845
|
}, {
|
8846
8846
|
default: () => [createVNode(Form.Item, {
|
8847
8847
|
name: e.kgVarName,
|
8848
|
-
rules:
|
8848
|
+
rules: E.value,
|
8849
8849
|
validateFirst: !0,
|
8850
8850
|
htmlFor: C.value
|
8851
8851
|
}, {
|
8852
|
-
default: () => createVNode(Fragment, null, [
|
8852
|
+
default: () => createVNode(Fragment, null, [O(), M(), L()]),
|
8853
8853
|
label: () => I()
|
8854
8854
|
})]
|
8855
8855
|
});
|
@@ -9215,15 +9215,15 @@ function useKgSubmit(e) {
|
|
9215
9215
|
const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
|
9216
9216
|
var p, b, v, T, k;
|
9217
9217
|
let l = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
9218
|
-
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 = (b = a.value) == null ? void 0 : b.crt_display_type,
|
9218
|
+
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 = (b = a.value) == null ? void 0 : b.crt_display_type, E = (v = a.value) == null ? void 0 : v.upt_display_type, y = (T = a.value) == null ? void 0 : T.cpy_display_type, _ = (k = a.value) == null ? void 0 : k.del_display_type;
|
9219
9219
|
switch (!0) {
|
9220
9220
|
case (t.isCreating.value && (g === c || !g && d === c)):
|
9221
9221
|
l = c;
|
9222
9222
|
break;
|
9223
|
-
case (t.isUpdating.value && (
|
9223
|
+
case (t.isUpdating.value && (E === c || !E && d === c)):
|
9224
9224
|
l = c;
|
9225
9225
|
break;
|
9226
|
-
case (t.isCopying.value && (
|
9226
|
+
case (t.isCopying.value && (y === c || !y && d === c)):
|
9227
9227
|
l = c;
|
9228
9228
|
break;
|
9229
9229
|
case (t.isDeleting.value && (_ === c || !_)):
|
@@ -9234,10 +9234,10 @@ function useKgSubmit(e) {
|
|
9234
9234
|
case (t.isCreating.value && (g === u || !g && d === u)):
|
9235
9235
|
l = u;
|
9236
9236
|
break;
|
9237
|
-
case (t.isUpdating.value && (
|
9237
|
+
case (t.isUpdating.value && (E === u || !E && d === u)):
|
9238
9238
|
l = u;
|
9239
9239
|
break;
|
9240
|
-
case (t.isCopying.value && (
|
9240
|
+
case (t.isCopying.value && (y === u || !y && d === u)):
|
9241
9241
|
l = u;
|
9242
9242
|
break;
|
9243
9243
|
}
|
@@ -9287,8 +9287,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9287
9287
|
}) => {
|
9288
9288
|
const u = s.store.getVarSubmitConfig(s.formID);
|
9289
9289
|
return o = watch(c, (d) => {
|
9290
|
-
var g,
|
9291
|
-
d && (d.id = (g = u == null ? void 0 : u.id) != null ? g : null, d.frm_id = s.formID, d.resizable_flg = (
|
9290
|
+
var g, E, y, _, p, b, v, T, k, A, C, V;
|
9291
|
+
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 = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (v = u == null ? void 0 : u.min_width) != null ? v : 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 = (A = u == null ? void 0 : u.label_col) != null ? A : 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);
|
9292
9292
|
}, {
|
9293
9293
|
immediate: !0
|
9294
9294
|
}), KgUtil.hideLoading(), !1;
|
@@ -9334,10 +9334,10 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9334
9334
|
function g() {
|
9335
9335
|
u.value = !0;
|
9336
9336
|
}
|
9337
|
-
function
|
9337
|
+
function E() {
|
9338
9338
|
r("kgCancel");
|
9339
9339
|
}
|
9340
|
-
function
|
9340
|
+
function y() {
|
9341
9341
|
var b;
|
9342
9342
|
return e.kgShowFullscreenButton === !1 || ((b = o.value) == null ? void 0 : b.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
9343
9343
|
onClick: d,
|
@@ -9361,17 +9361,17 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9361
9361
|
return createVNode(Button, {
|
9362
9362
|
disabled: c.value || l.value,
|
9363
9363
|
class: "kg-submit--btn-close",
|
9364
|
-
onClick:
|
9364
|
+
onClick: E
|
9365
9365
|
}, {
|
9366
9366
|
default: () => [createVNode(CloseOutlined$1, null, null)]
|
9367
9367
|
});
|
9368
9368
|
}
|
9369
|
-
return () => createVNode(Fragment, null, [_(),
|
9369
|
+
return () => createVNode(Fragment, null, [_(), y(), p()]);
|
9370
9370
|
}
|
9371
9371
|
}), 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;
|
9372
9372
|
function _useFormModel$1() {
|
9373
9373
|
const e = inject("$dayjs", dayjs), t = useKgVar(), r = useKgTable(), a = useKgSubmit(), n = computed(() => t.store.getVarSubmitFieldsForCreate(t.formID)), s = computed(() => t.store.getVarSubmitFieldsForUpdate(t.formID)), i = computed(() => t.store.getVarSubmitFieldsForCopy(t.formID)), o = computed(() => t.store.getVarSubmitFieldsForDelete(t.formID)), l = computed(() => {
|
9374
|
-
var u, d, g,
|
9374
|
+
var u, d, g, E;
|
9375
9375
|
switch (!0) {
|
9376
9376
|
case t.isCreating.value:
|
9377
9377
|
return (u = n.value) != null ? u : [];
|
@@ -9380,7 +9380,7 @@ function _useFormModel$1() {
|
|
9380
9380
|
case t.isCopying.value:
|
9381
9381
|
return (g = i.value) != null ? g : [];
|
9382
9382
|
case t.isDeleting.value:
|
9383
|
-
return (
|
9383
|
+
return (E = o.value) != null ? E : [];
|
9384
9384
|
}
|
9385
9385
|
return [];
|
9386
9386
|
}), c = ref({});
|
@@ -9391,20 +9391,20 @@ function _useFormModel$1() {
|
|
9391
9391
|
}
|
9392
9392
|
const d = r.selectedRow.value;
|
9393
9393
|
u.forEach((g) => {
|
9394
|
-
var
|
9395
|
-
const
|
9396
|
-
switch (c.value[
|
9394
|
+
var y, _, p, b, v, T, k, A;
|
9395
|
+
const E = (y = g.var_nam) != null ? y : "";
|
9396
|
+
switch (c.value[E] = void 0, !0) {
|
9397
9397
|
case t.isCreating.value:
|
9398
|
-
c.value[
|
9398
|
+
c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (_ = g.crt_dft_val) != null ? _ : void 0, "C");
|
9399
9399
|
break;
|
9400
9400
|
case t.isUpdating.value:
|
9401
|
-
c.value.id = d == null ? void 0 : d.id, c.value[
|
9401
|
+
c.value.id = d == null ? void 0 : d.id, c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (b = (p = g.upt_dft_val) != null ? p : d == null ? void 0 : d[E]) != null ? b : void 0, "U");
|
9402
9402
|
break;
|
9403
9403
|
case t.isCopying.value:
|
9404
|
-
c.value.id = d == null ? void 0 : d.id, c.value[
|
9404
|
+
c.value.id = d == null ? void 0 : d.id, c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (T = (v = g.cpy_dft_val) != null ? v : d == null ? void 0 : d[E]) != null ? T : void 0, "CP");
|
9405
9405
|
break;
|
9406
9406
|
case t.isDeleting.value:
|
9407
|
-
c.value.id = d == null ? void 0 : d.id, c.value[
|
9407
|
+
c.value.id = d == null ? void 0 : d.id, c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (A = (k = g.del_dft_val) != null ? k : d == null ? void 0 : d[E]) != null ? A : void 0, "D");
|
9408
9408
|
break;
|
9409
9409
|
}
|
9410
9410
|
}), a.store.setModel(t.formID, c.value);
|
@@ -9475,9 +9475,9 @@ function _useClass(e, t) {
|
|
9475
9475
|
const r = inject(DI_KG_VAR__KG_PROPS, null), a = useKgVar(), n = useKgSubmit(), s = computed(() => a.store.getVarSubmitConfig(a.formID)), i = computed(() => a.store.getVarSubmitFieldsForDeleteKey(a.formID));
|
9476
9476
|
return {
|
9477
9477
|
getClass: computed(() => {
|
9478
|
-
var c, u, d, g,
|
9478
|
+
var c, u, d, g, E, y, _;
|
9479
9479
|
let l = "kg-submit";
|
9480
|
-
return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (
|
9480
|
+
return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (E = (g = r == null ? void 0 : r.value) == null ? void 0 : g.KgSubmit) != null && E.kgClass ? l += ` ${(_ = (y = r == null ? void 0 : r.value) == null ? void 0 : y.KgSubmit) == null ? void 0 : _.kgClass}` : e.kgClass && (l += ` ${e.kgClass}`), l;
|
9481
9481
|
})
|
9482
9482
|
};
|
9483
9483
|
}
|
@@ -9485,9 +9485,9 @@ function _useLayout() {
|
|
9485
9485
|
const e = useKgVar(), t = computed(() => e.store.getVarSubmitConfig(e.formID));
|
9486
9486
|
return {
|
9487
9487
|
getLayout: computed(() => {
|
9488
|
-
var c, u, d, g,
|
9488
|
+
var c, u, d, g, E;
|
9489
9489
|
let a = "vertical";
|
9490
|
-
const n = (c = t.value) == null ? void 0 : c.layout, s = (u = t.value) == null ? void 0 : u.crt_layout, i = (d = t.value) == null ? void 0 : d.upt_layout, o = (g = t.value) == null ? void 0 : g.cpy_layout, l = (
|
9490
|
+
const n = (c = t.value) == null ? void 0 : c.layout, s = (u = t.value) == null ? void 0 : u.crt_layout, i = (d = t.value) == null ? void 0 : d.upt_layout, o = (g = t.value) == null ? void 0 : g.cpy_layout, l = (E = t.value) == null ? void 0 : E.del_layout;
|
9491
9491
|
switch (!0) {
|
9492
9492
|
case (e.isCreating.value && (s === "horizontal" || !s && n === "horizontal")):
|
9493
9493
|
a = "horizontal";
|
@@ -9510,10 +9510,10 @@ function _useDefaultWidth() {
|
|
9510
9510
|
const e = useKgVar(), t = computed(() => e.store.getVarSubmitConfig(e.formID));
|
9511
9511
|
return {
|
9512
9512
|
getDefaultWidth: computed(() => {
|
9513
|
-
var c, u, d, g,
|
9513
|
+
var c, u, d, g, E;
|
9514
9514
|
if (!t.value)
|
9515
9515
|
return 0;
|
9516
|
-
const a = (c = t.value) == null ? void 0 : c.dft_width, n = (u = t.value) == null ? void 0 : u.crt_dft_width, s = (d = t.value) == null ? void 0 : d.upt_dft_width, i = (g = t.value) == null ? void 0 : g.cpy_dft_width, o = (
|
9516
|
+
const a = (c = t.value) == null ? void 0 : c.dft_width, n = (u = t.value) == null ? void 0 : u.crt_dft_width, s = (d = t.value) == null ? void 0 : d.upt_dft_width, i = (g = t.value) == null ? void 0 : g.cpy_dft_width, o = (E = t.value) == null ? void 0 : E.del_dft_width;
|
9517
9517
|
let l = a || DEFAULT_WIDTH;
|
9518
9518
|
switch (!0) {
|
9519
9519
|
case (e.isCreating.value && !!n):
|
@@ -9553,11 +9553,11 @@ const getProps$p = () => ({
|
|
9553
9553
|
inject(DI_KG_VAR__KG_PROPS, null);
|
9554
9554
|
const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = useKgSearch();
|
9555
9555
|
i.onSubmitSave(async () => (await ee(), !1)), i.onSubmitCancel(async () => (await z(), !1)), _useFormModel$1();
|
9556
|
-
const u = computed(() => s.isDeleting.value && I.value.length === 0 && w.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), g = computed(() => s.store.getVarSubmitConfig(s.formID)),
|
9556
|
+
const u = computed(() => s.isDeleting.value && I.value.length === 0 && w.value.length === 0), d = computed(() => l.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)), b = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), V = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), M = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), O = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), I = computed(() => {
|
9557
9557
|
var G, H, X;
|
9558
9558
|
switch (!0) {
|
9559
9559
|
case s.isCreating.value:
|
9560
|
-
return (G =
|
9560
|
+
return (G = E.value) != null ? G : [];
|
9561
9561
|
case s.isUpdating.value:
|
9562
9562
|
return (H = _.value) != null ? H : [];
|
9563
9563
|
case s.isCopying.value:
|
@@ -9583,13 +9583,13 @@ const getProps$p = () => ({
|
|
9583
9583
|
var G, H, X, re;
|
9584
9584
|
switch (!0) {
|
9585
9585
|
case s.isCreating.value:
|
9586
|
-
return (G =
|
9586
|
+
return (G = y.value) != null ? G : [];
|
9587
9587
|
case s.isUpdating.value:
|
9588
9588
|
return (H = p.value) != null ? H : [];
|
9589
9589
|
case s.isCopying.value:
|
9590
9590
|
return (X = v.value) != null ? X : [];
|
9591
9591
|
case s.isDeleting.value:
|
9592
|
-
return (re =
|
9592
|
+
return (re = O.value) != null ? re : [];
|
9593
9593
|
}
|
9594
9594
|
return [];
|
9595
9595
|
}), F = computed(() => {
|
@@ -9602,10 +9602,10 @@ const getProps$p = () => ({
|
|
9602
9602
|
case s.isCopying.value:
|
9603
9603
|
return (X = M.value) != null ? X : [];
|
9604
9604
|
case s.isDeleting.value:
|
9605
|
-
return (re =
|
9605
|
+
return (re = O.value) != null ? re : [];
|
9606
9606
|
}
|
9607
9607
|
return [];
|
9608
|
-
}), K = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)),
|
9608
|
+
}), K = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), D = computed(() => K.value || d.value), R = computed(() => d.value), N = ref({
|
9609
9609
|
kgWidth: 0
|
9610
9610
|
}), B = computed(() => {
|
9611
9611
|
var G;
|
@@ -10027,8 +10027,8 @@ const getProps$p = () => ({
|
|
10027
10027
|
let G, H;
|
10028
10028
|
return createVNode("div", null, [createVNode(Button, {
|
10029
10029
|
type: "primary",
|
10030
|
-
ghost: !
|
10031
|
-
disabled:
|
10030
|
+
ghost: !D.value,
|
10031
|
+
disabled: D.value,
|
10032
10032
|
onClick: z
|
10033
10033
|
}, _isSlot$9(G = n.t("kg.cancel")) ? G : {
|
10034
10034
|
default: () => [G]
|
@@ -10357,10 +10357,10 @@ function useKgTable(e) {
|
|
10357
10357
|
}), g = computed(() => {
|
10358
10358
|
var p, b;
|
10359
10359
|
return (b = (p = t.varGridConfig.value) == null ? void 0 : p.id_clm) != null ? b : "id";
|
10360
|
-
}),
|
10360
|
+
}), E = computed(() => {
|
10361
10361
|
var p, b;
|
10362
10362
|
return JSON.parse((b = (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opts) != null ? b : "[]");
|
10363
|
-
}),
|
10363
|
+
}), y = computed(() => {
|
10364
10364
|
var p;
|
10365
10365
|
return (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opt;
|
10366
10366
|
}), _ = computed(() => {
|
@@ -10380,8 +10380,8 @@ function useKgTable(e) {
|
|
10380
10380
|
isShowBottomLeft: u,
|
10381
10381
|
isShowBottomRight: d,
|
10382
10382
|
id: g,
|
10383
|
-
pageSizeOptions:
|
10384
|
-
pageSizeOption:
|
10383
|
+
pageSizeOptions: E,
|
10384
|
+
pageSizeOption: y,
|
10385
10385
|
profileFormID: _,
|
10386
10386
|
onReady: onEventFactory(t.formID, r, "ready"),
|
10387
10387
|
onRowDoubleClick: onEventFactory(t.formID, r, "rowDoubleClick"),
|
@@ -11326,8 +11326,8 @@ const KgTable_Setting = "", FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig",
|
|
11326
11326
|
}) => {
|
11327
11327
|
const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
11328
11328
|
return i = watch(l, (u) => {
|
11329
|
-
var d, g,
|
11330
|
-
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 = (
|
11329
|
+
var d, g, E, y, _, p, b, v, T, k, A;
|
11330
|
+
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 = (b = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? b : 0, u.pg_size_opts = (v = c == null ? void 0 : c.pg_size_opts) != null ? v : "[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 = (A = c == null ? void 0 : c.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
11331
11331
|
}, {
|
11332
11332
|
immediate: !0
|
11333
11333
|
}), KgUtil.hideLoading(), !1;
|
@@ -12037,7 +12037,7 @@ function _useTransferColumns(e, t) {
|
|
12037
12037
|
class: "kg-not-clickable"
|
12038
12038
|
}, {
|
12039
12039
|
default: () => {
|
12040
|
-
let c, u, d, g,
|
12040
|
+
let c, u, d, g, E, y, _;
|
12041
12041
|
return createVNode(Fragment, null, [createVNode(Select.Option, {
|
12042
12042
|
value: "DESC"
|
12043
12043
|
}, _isSlot$7(c = r.t("kg.KgTableSettingConfigModalVarGridMaster.DESC")) ? c : {
|
@@ -12056,12 +12056,12 @@ function _useTransferColumns(e, t) {
|
|
12056
12056
|
default: () => [g]
|
12057
12057
|
}), createVNode(Select.Option, {
|
12058
12058
|
value: "FILE_SIZE"
|
12059
|
-
}, _isSlot$7(
|
12060
|
-
default: () => [
|
12059
|
+
}, _isSlot$7(E = r.t("kg.KgTableSettingConfigModalVarGridMaster.FILE_SIZE")) ? E : {
|
12060
|
+
default: () => [E]
|
12061
12061
|
}), createVNode(Select.Option, {
|
12062
12062
|
value: "UPDATE_LINK"
|
12063
|
-
}, _isSlot$7(
|
12064
|
-
default: () => [
|
12063
|
+
}, _isSlot$7(y = r.t("kg.KgTableSettingConfigModalVarGridMaster.UPDATE_LINK")) ? y : {
|
12064
|
+
default: () => [y]
|
12065
12065
|
}), createVNode(Select.Option, {
|
12066
12066
|
value: "ROUTE_LINK"
|
12067
12067
|
}, _isSlot$7(_ = r.t("kg.KgTableSettingConfigModalVarGridMaster.ROUTE_LINK")) ? _ : {
|
@@ -12139,12 +12139,12 @@ function _useDragRow$1(e, t, r) {
|
|
12139
12139
|
const g = document.createElement("span");
|
12140
12140
|
g.setAttribute("id", "__kg_table_config_fields_drag_image__");
|
12141
12141
|
const {
|
12142
|
-
width:
|
12143
|
-
height:
|
12142
|
+
width: E,
|
12143
|
+
height: y
|
12144
12144
|
} = u.parentElement.getBoundingClientRect();
|
12145
|
-
|
12145
|
+
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);
|
12146
12146
|
const _ = await toCanvas(u.parentElement);
|
12147
|
-
g.appendChild(_), document.body.appendChild(g), (b = d.dataTransfer) == null || b.setDragImage(g, -10, (
|
12147
|
+
g.appendChild(_), document.body.appendChild(g), (b = d.dataTransfer) == null || b.setDragImage(g, -10, (y + 2) / 2);
|
12148
12148
|
}, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
|
12149
12149
|
u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
|
12150
12150
|
const g = document.querySelector("#__kg_table_config_fields_drag_image__");
|
@@ -12157,19 +12157,19 @@ function _useDragRow$1(e, t, r) {
|
|
12157
12157
|
if (a = filter(document.querySelectorAll(`tr[kg-host-frm_id="${e}"]`), () => !0), a)
|
12158
12158
|
for (let u of a)
|
12159
12159
|
u.__kg__dragover__ = (d) => {
|
12160
|
-
var g,
|
12161
|
-
d.preventDefault(), u.rowIndex > ((g = s == null ? void 0 : s.rowIndex) != null ? g : -1) ? u.classList.add("dragover", "dragover-right") : u.rowIndex < ((
|
12160
|
+
var g, E;
|
12161
|
+
d.preventDefault(), u.rowIndex > ((g = s == null ? void 0 : s.rowIndex) != null ? g : -1) ? u.classList.add("dragover", "dragover-right") : u.rowIndex < ((E = s == null ? void 0 : s.rowIndex) != null ? E : -1) && u.classList.add("dragover", "dragover-left");
|
12162
12162
|
}, u.addEventListener("dragover", u.__kg__dragover__, !1), u.__kg__dragenter__ = (d) => {
|
12163
|
-
var g,
|
12164
|
-
u.rowIndex > ((g = s == null ? void 0 : s.rowIndex) != null ? g : -1) ? u.classList.add("dragover", "dragover-right") : u.rowIndex < ((
|
12163
|
+
var g, E;
|
12164
|
+
u.rowIndex > ((g = s == null ? void 0 : s.rowIndex) != null ? g : -1) ? u.classList.add("dragover", "dragover-right") : u.rowIndex < ((E = s == null ? void 0 : s.rowIndex) != null ? E : -1) && u.classList.add("dragover", "dragover-left");
|
12165
12165
|
}, u.addEventListener("dragenter", u.__kg__dragenter__), u.__kg__dragleave__ = (d) => {
|
12166
12166
|
u.classList.remove("dragover", "dragover-right", "dragover-left");
|
12167
12167
|
}, u.addEventListener("dragleave", u.__kg__dragleave__), u.__kg__drop__ = (d) => {
|
12168
12168
|
d.preventDefault(), KgUtil.showLoading();
|
12169
12169
|
const g = document.querySelector("#__kg_table_config_fields_drag_image__");
|
12170
12170
|
g && document.body.removeChild(g), u.classList.remove("dragover", "dragover-right", "dragover-left");
|
12171
|
-
const
|
12172
|
-
|
12171
|
+
const E = s == null ? void 0 : s.getAttribute("kg-var_nam"), y = u.getAttribute("kg-var_nam");
|
12172
|
+
E !== y && l(E, y);
|
12173
12173
|
}, u.addEventListener("drop", u.__kg__drop__);
|
12174
12174
|
}
|
12175
12175
|
function o() {
|
@@ -12188,12 +12188,12 @@ function _useDragRow$1(e, t, r) {
|
|
12188
12188
|
}
|
12189
12189
|
function l(u, d) {
|
12190
12190
|
setTimeout(() => {
|
12191
|
-
const g = t.value.findIndex((p) => p.var_nam === u),
|
12192
|
-
if (g === -1 ||
|
12191
|
+
const g = t.value.findIndex((p) => p.var_nam === u), E = t.value.findIndex((p) => p.var_nam === d);
|
12192
|
+
if (g === -1 || E === -1)
|
12193
12193
|
return;
|
12194
|
-
const
|
12194
|
+
const y = t.value.find((p) => p.var_nam === u), _ = [];
|
12195
12195
|
t.value.forEach((p, b) => {
|
12196
|
-
g >
|
12196
|
+
g > E ? b < E ? _.push(p) : b === E ? (_.push(y), _.push(p)) : b > E && b !== g && _.push(p) : g < E && (b < g ? _.push(p) : b === g || (b === E ? (_.push(p), _.push(y)) : _.push(p)));
|
12197
12197
|
}), _.forEach((p, b) => {
|
12198
12198
|
p.srtseq = b + 1;
|
12199
12199
|
}), t.value = _, nextTick().finally(() => {
|
@@ -12232,7 +12232,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12232
12232
|
row: A,
|
12233
12233
|
model: C
|
12234
12234
|
}) => {
|
12235
|
-
var M,
|
12235
|
+
var M, O, I, L, w;
|
12236
12236
|
const V = a.store.getSystemVarGridDetails(a.formID);
|
12237
12237
|
switch (c.value = V ? cloneDeep(unref(toRaw(V))) : [], !0) {
|
12238
12238
|
case v: {
|
@@ -12249,17 +12249,17 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12249
12249
|
id: A.id
|
12250
12250
|
}
|
12251
12251
|
});
|
12252
|
-
c.value = c.value.map((
|
12252
|
+
c.value = c.value.map((D) => {
|
12253
12253
|
var N;
|
12254
|
-
const R = (N = F == null ? void 0 : F.varGridDetails) == null ? void 0 : N.find((B) => B.var_nam ===
|
12254
|
+
const R = (N = F == null ? void 0 : F.varGridDetails) == null ? void 0 : N.find((B) => B.var_nam === D.var_nam);
|
12255
12255
|
return R ? {
|
12256
|
-
...
|
12256
|
+
...D,
|
12257
12257
|
...R,
|
12258
|
-
id:
|
12259
|
-
} :
|
12258
|
+
id: D.id
|
12259
|
+
} : D;
|
12260
12260
|
});
|
12261
|
-
const K = (
|
12262
|
-
u.value = c.value.filter((
|
12261
|
+
const K = (O = (M = F == null ? void 0 : F.varGridDetails) == null ? void 0 : M.map((D) => D.var_nam)) != null ? O : [];
|
12262
|
+
u.value = c.value.filter((D) => K.includes(D.var_nam)).map((D) => D.id);
|
12263
12263
|
} catch (F) {
|
12264
12264
|
throw F;
|
12265
12265
|
} finally {
|
@@ -12301,10 +12301,10 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12301
12301
|
}) : Promise.resolve(!1));
|
12302
12302
|
const c = ref([]), u = ref([]), d = ref([]), {
|
12303
12303
|
leftColumns: g,
|
12304
|
-
rightColumns:
|
12304
|
+
rightColumns: E
|
12305
12305
|
} = _useTransferColumns(e.hostFormID, c);
|
12306
12306
|
_useDragRow$1(e.hostFormID, c, d);
|
12307
|
-
const
|
12307
|
+
const y = computed(() => {
|
12308
12308
|
const v = l.selectedRow.value;
|
12309
12309
|
return {
|
12310
12310
|
KgSubmit: {
|
@@ -12345,9 +12345,9 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12345
12345
|
onItemSelectAll: C,
|
12346
12346
|
onItemSelect: V
|
12347
12347
|
}) => {
|
12348
|
-
const M = T.sort((
|
12348
|
+
const M = T.sort((O, I) => {
|
12349
12349
|
var L, w;
|
12350
|
-
return ((L =
|
12350
|
+
return ((L = O.srtseq) != null ? L : 0) - ((w = I.srtseq) != null ? w : 0);
|
12351
12351
|
});
|
12352
12352
|
return d.value = M, createVNode(Table, {
|
12353
12353
|
pagination: !1,
|
@@ -12357,14 +12357,14 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12357
12357
|
x: v === "left" ? "370px" : `${1552 + 32}px`,
|
12358
12358
|
y: "auto"
|
12359
12359
|
},
|
12360
|
-
columns: v === "left" ? g() :
|
12360
|
+
columns: v === "left" ? g() : E(),
|
12361
12361
|
rowKey: "id",
|
12362
12362
|
dataSource: M,
|
12363
|
-
customRow: (
|
12363
|
+
customRow: (O) => {
|
12364
12364
|
let I = {
|
12365
|
-
onClick: (L) => b(L,
|
12365
|
+
onClick: (L) => b(L, O, v, k)
|
12366
12366
|
};
|
12367
|
-
return v === "right" && (I["kg-host-frm_id"] = a.formID, I["kg-var_nam"] =
|
12367
|
+
return v === "right" && (I["kg-host-frm_id"] = a.formID, I["kg-var_nam"] = O.var_nam), I;
|
12368
12368
|
},
|
12369
12369
|
rowSelection: p({
|
12370
12370
|
disabled: A,
|
@@ -12387,9 +12387,9 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12387
12387
|
disabled: v || C.disabled
|
12388
12388
|
}),
|
12389
12389
|
onSelectAll(C, V) {
|
12390
|
-
const M = V.filter((
|
12391
|
-
key:
|
12392
|
-
}) =>
|
12390
|
+
const M = V.filter((O) => !O.disabled).map(({
|
12391
|
+
key: O
|
12392
|
+
}) => O);
|
12393
12393
|
k(M, C);
|
12394
12394
|
},
|
12395
12395
|
onSelect({
|
@@ -12420,7 +12420,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12420
12420
|
}
|
12421
12421
|
return () => createVNode(KgVar, {
|
12422
12422
|
class: "kg-table--config-modal--var-grid-master",
|
12423
|
-
kgProps:
|
12423
|
+
kgProps: y.value,
|
12424
12424
|
kgSlots: _.value
|
12425
12425
|
}, null);
|
12426
12426
|
}
|
@@ -12532,9 +12532,9 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
12532
12532
|
return o.onOpen(async ({
|
12533
12533
|
model: l
|
12534
12534
|
}) => {
|
12535
|
-
var u, d, g,
|
12535
|
+
var u, d, g, E, y, _, p;
|
12536
12536
|
const c = s.currentVarGridMaster.value;
|
12537
|
-
return l.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, l.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`, l.value.frm_id = (
|
12537
|
+
return l.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, l.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`, l.value.frm_id = (E = c == null ? void 0 : c.frm_id) != null ? E : "", l.value.usr_id = (y = c == null ? void 0 : c.usr_id) != null ? y : "", l.value.grp_nam = (_ = c == null ? void 0 : c.grp_nam) != null ? _ : "", l.value.varGridDetails = (p = c == null ? void 0 : c.varGridDetails) != null ? p : [], KgUtil.hideLoading(), !1;
|
12538
12538
|
}), o.onBeforeOk(async ({
|
12539
12539
|
model: l
|
12540
12540
|
}) => (l.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)), i.store.setIsCopying(i.formID, !0), () => createVNode(KgVar, null, null);
|
@@ -12561,13 +12561,13 @@ const getProps$j = () => ({
|
|
12561
12561
|
visible: !1
|
12562
12562
|
}), g = ref({
|
12563
12563
|
visible: !1
|
12564
|
-
}),
|
12564
|
+
}), E = computed(() => isNil(e.kgDisabled) ? !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value : e.kgDisabled);
|
12565
12565
|
_useObserveMenuColumns(l), watch(l, (C) => {
|
12566
12566
|
C || (c.value = "");
|
12567
12567
|
}, {
|
12568
12568
|
immediate: !0
|
12569
12569
|
});
|
12570
|
-
function
|
12570
|
+
function y(C) {
|
12571
12571
|
n.store.patchVarGridDetail(n.formID, C.var_nam, {
|
12572
12572
|
vis_flg: C.vis_flg === 1 ? 0 : 1
|
12573
12573
|
});
|
@@ -12617,7 +12617,7 @@ const getProps$j = () => ({
|
|
12617
12617
|
}, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((V) => createVNode("li", {
|
12618
12618
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
12619
12619
|
onClick: (M) => {
|
12620
|
-
M.preventDefault(), M.stopPropagation(),
|
12620
|
+
M.preventDefault(), M.stopPropagation(), y(V);
|
12621
12621
|
},
|
12622
12622
|
style: {
|
12623
12623
|
display: i(V, c.value) ? "flex" : "none"
|
@@ -12646,15 +12646,15 @@ const getProps$j = () => ({
|
|
12646
12646
|
default: () => {
|
12647
12647
|
var M;
|
12648
12648
|
let C, V;
|
12649
|
-
return createVNode(Fragment, null, [(M = n.varGridMasters.value) == null ? void 0 : M.map((
|
12649
|
+
return createVNode(Fragment, null, [(M = n.varGridMasters.value) == null ? void 0 : M.map((O) => {
|
12650
12650
|
var I;
|
12651
12651
|
return createVNode(Menu.Item, {
|
12652
|
-
key:
|
12653
|
-
class:
|
12654
|
-
"kg-var_nam":
|
12655
|
-
onClick: () => _(
|
12652
|
+
key: O.id,
|
12653
|
+
class: O.id === ((I = n.currentVarGridMaster.value) == null ? void 0 : I.id) ? "selected" : "",
|
12654
|
+
"kg-var_nam": O.grd_var_nam,
|
12655
|
+
onClick: () => _(O)
|
12656
12656
|
}, {
|
12657
|
-
default: () => [n.t(
|
12657
|
+
default: () => [n.t(O.grd_var_nam).value]
|
12658
12658
|
});
|
12659
12659
|
}), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
|
12660
12660
|
key: "save-grid-view",
|
@@ -12688,13 +12688,13 @@ const getProps$j = () => ({
|
|
12688
12688
|
popupClassName: "kg-table-setting--submenu-popup--row-height"
|
12689
12689
|
}, {
|
12690
12690
|
default: () => {
|
12691
|
-
let
|
12691
|
+
let O, I, L;
|
12692
12692
|
return createVNode(Fragment, null, [createVNode(Menu.Item, {
|
12693
12693
|
key: "L",
|
12694
12694
|
class: u.value === "L" ? "selected" : "",
|
12695
12695
|
onClick: () => s.store.setRowHeight(n.formID, "L")
|
12696
|
-
}, _isSlot$6(
|
12697
|
-
default: () => [
|
12696
|
+
}, _isSlot$6(O = a.t("kg.KgTable.rowHeightL")) ? O : {
|
12697
|
+
default: () => [O]
|
12698
12698
|
}), createVNode(Menu.Item, {
|
12699
12699
|
key: "M",
|
12700
12700
|
class: u.value === "M" ? "selected" : "",
|
@@ -12724,7 +12724,7 @@ const getProps$j = () => ({
|
|
12724
12724
|
});
|
12725
12725
|
}
|
12726
12726
|
return () => createVNode(Fragment, null, [createVNode(Dropdown, {
|
12727
|
-
disabled:
|
12727
|
+
disabled: E.value,
|
12728
12728
|
class: "kg-table-setting",
|
12729
12729
|
overlayClassName: "kg-table-setting-dropdown",
|
12730
12730
|
trigger: "click"
|
@@ -12794,15 +12794,15 @@ const getProps$h = () => ({
|
|
12794
12794
|
s.onSubmitSave(async () => {
|
12795
12795
|
var k;
|
12796
12796
|
try {
|
12797
|
-
await ((k =
|
12797
|
+
await ((k = y.value) == null ? void 0 : k.validate());
|
12798
12798
|
} catch (A) {
|
12799
12799
|
KgUtil.throwIfNotFormError(A);
|
12800
12800
|
}
|
12801
12801
|
return !1;
|
12802
12802
|
});
|
12803
12803
|
const l = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
|
12804
|
-
var k, A, C, V, M,
|
12805
|
-
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((C = c.value) == null ? void 0 : C.crt_flg) === 1 || !!n.isUpdating.value && ((V = c.value) == null ? void 0 : V.upt_flg) === 1 || !!n.isCopying.value && ((M = c.value) == null ? void 0 : M.cpy_flg) === 1 || !!n.isDeleting.value && ((
|
12804
|
+
var k, A, C, V, M, O;
|
12805
|
+
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((C = c.value) == null ? void 0 : C.crt_flg) === 1 || !!n.isUpdating.value && ((V = c.value) == null ? void 0 : V.upt_flg) === 1 || !!n.isCopying.value && ((M = c.value) == null ? void 0 : M.cpy_flg) === 1 || !!n.isDeleting.value && ((O = c.value) == null ? void 0 : O.del_flg) === 1);
|
12806
12806
|
}), d = computed(() => {
|
12807
12807
|
var k, A;
|
12808
12808
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && !!n.isCreatingRequesting.value || !!n.isUpdating.value && !!n.isUpdatingRequesting.value || !!n.isCopying.value && !!n.isCopyingRequesting.value || !!n.isDeleting.value && !!n.isDeletingRequesting.value);
|
@@ -12810,8 +12810,8 @@ const getProps$h = () => ({
|
|
12810
12810
|
var A, C;
|
12811
12811
|
let k = "kg-table-td";
|
12812
12812
|
return ((A = l.value) == null ? void 0 : A.align) === "center" ? k += " kg-table-td--center" : ((C = l.value) == null ? void 0 : C.align) === "right" && (k += " kg-table-td--right"), u.value && (k += " kg-table-td--submitting"), k;
|
12813
|
-
}),
|
12814
|
-
var A, C, V, M,
|
12813
|
+
}), E = computed(() => {
|
12814
|
+
var A, C, V, M, O;
|
12815
12815
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
12816
12816
|
return "";
|
12817
12817
|
let k = e.kgValue;
|
@@ -12819,13 +12819,13 @@ const getProps$h = () => ({
|
|
12819
12819
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
12820
12820
|
{
|
12821
12821
|
const I = KgUtil.tryParseJSON((C = l.value) == null ? void 0 : C.display_type_properties);
|
12822
|
-
I.dscFieldName ? k = ((V = e.kgRow) == null ? void 0 : V[I.dscFieldName]) || e.kgValue : k = ((M = e.kgRow) == null ? void 0 : M[`${e.kgVarName}_dsc`]) || ((
|
12822
|
+
I.dscFieldName ? k = ((V = e.kgRow) == null ? void 0 : V[I.dscFieldName]) || e.kgValue : k = ((M = e.kgRow) == null ? void 0 : M[`${e.kgVarName}_dsc`]) || ((O = e.kgRow) == null ? void 0 : O[`${e.kgVarName}Dsc`]) || e.kgValue;
|
12823
12823
|
}
|
12824
12824
|
break;
|
12825
12825
|
}
|
12826
12826
|
return isString$1(k) && (k = k.replaceAll("\\n", `
|
12827
12827
|
`)), isNil(k) && (k = ""), k;
|
12828
|
-
}),
|
12828
|
+
}), y = ref(null);
|
12829
12829
|
function _(k) {
|
12830
12830
|
var A, C, V;
|
12831
12831
|
if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
@@ -12856,7 +12856,7 @@ const getProps$h = () => ({
|
|
12856
12856
|
}
|
12857
12857
|
function b() {
|
12858
12858
|
return createVNode(KgForm, {
|
12859
|
-
ref:
|
12859
|
+
ref: y,
|
12860
12860
|
model: i.model.value,
|
12861
12861
|
layout: "vertical",
|
12862
12862
|
wrapperCol: {
|
@@ -12876,19 +12876,19 @@ const getProps$h = () => ({
|
|
12876
12876
|
});
|
12877
12877
|
}
|
12878
12878
|
function v() {
|
12879
|
-
var k, A, C, V, M,
|
12879
|
+
var k, A, C, V, M, O, I, L, w, F, K;
|
12880
12880
|
if (u.value)
|
12881
12881
|
return b();
|
12882
12882
|
switch ((k = l.value) == null ? void 0 : k.display_type) {
|
12883
12883
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
12884
|
-
const
|
12884
|
+
const D = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
|
12885
12885
|
return createVNode(KgYesOrNo, {
|
12886
|
-
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((C =
|
12887
|
-
kgNilAsFalse:
|
12886
|
+
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((C = D.yValue) != null ? C : 1),
|
12887
|
+
kgNilAsFalse: D.nilAsFalse
|
12888
12888
|
}, null);
|
12889
12889
|
}
|
12890
12890
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
12891
|
-
const
|
12891
|
+
const D = KgUtil.tryParseJSON((V = l.value) == null ? void 0 : V.display_type_properties), R = isArrayLike(D) && D.find((N) => N.value === e.kgValue);
|
12892
12892
|
if (R) {
|
12893
12893
|
const N = n.t(R.varName).value;
|
12894
12894
|
return N ? createVNode(Tag, {
|
@@ -12900,27 +12900,27 @@ const getProps$h = () => ({
|
|
12900
12900
|
return T();
|
12901
12901
|
}
|
12902
12902
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
12903
|
-
const
|
12904
|
-
if (
|
12905
|
-
const R =
|
12906
|
-
return
|
12903
|
+
const D = KgUtil.tryParseJSON((O = l.value) == null ? void 0 : O.display_type_properties);
|
12904
|
+
if (D.isTag && isArrayLike(D.tagColors)) {
|
12905
|
+
const R = D.tagColors.find((N) => N.value === e.kgValue);
|
12906
|
+
return E.value ? createVNode(Tag, {
|
12907
12907
|
color: (I = R == null ? void 0 : R.color) != null ? I : "default"
|
12908
12908
|
}, {
|
12909
|
-
default: () => [
|
12909
|
+
default: () => [E.value]
|
12910
12910
|
}) : T();
|
12911
12911
|
} else
|
12912
12912
|
return T();
|
12913
12913
|
}
|
12914
12914
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
12915
|
-
const
|
12915
|
+
const D = KgUtil.tryParseJSON((L = l.value) == null ? void 0 : L.display_type_properties), R = (F = (w = e.kgRow) == null ? void 0 : w[D.leftColumn]) != null ? F : 0;
|
12916
12916
|
switch (e.kgContext) {
|
12917
12917
|
case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
|
12918
12918
|
return R;
|
12919
12919
|
case KG_TABLE_CELL_CONTEXT.TABLE_CELL:
|
12920
12920
|
return createVNode(KgProgressA, {
|
12921
|
-
kgTextWidth:
|
12921
|
+
kgTextWidth: D.textWidth,
|
12922
12922
|
kgLeft: R,
|
12923
|
-
kgRight: (K = e.kgRow) == null ? void 0 : K[
|
12923
|
+
kgRight: (K = e.kgRow) == null ? void 0 : K[D.rightColumn]
|
12924
12924
|
}, null);
|
12925
12925
|
}
|
12926
12926
|
break;
|
@@ -12952,14 +12952,14 @@ const getProps$h = () => ({
|
|
12952
12952
|
function T(k = !1) {
|
12953
12953
|
let A = "";
|
12954
12954
|
return k && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (A += "kg-table-td-update-link"), createVNode("pre", {
|
12955
|
-
innerHTML:
|
12955
|
+
innerHTML: E.value,
|
12956
12956
|
class: A,
|
12957
12957
|
onClick: _
|
12958
12958
|
}, null);
|
12959
12959
|
}
|
12960
12960
|
return () => createVNode("div", {
|
12961
12961
|
class: g.value,
|
12962
|
-
title:
|
12962
|
+
title: E.value,
|
12963
12963
|
"kg-value": e.kgValue
|
12964
12964
|
}, [v()]);
|
12965
12965
|
}
|
@@ -12977,26 +12977,26 @@ function _useRenderBodyCell() {
|
|
12977
12977
|
record: u,
|
12978
12978
|
text: d,
|
12979
12979
|
value: g
|
12980
|
-
} = i,
|
12981
|
-
let
|
12982
|
-
l.customRender ?
|
12980
|
+
} = i, E = l.dataIndex;
|
12981
|
+
let y = "";
|
12982
|
+
l.customRender ? y = l.customRender({
|
12983
12983
|
index: c,
|
12984
12984
|
record: u,
|
12985
12985
|
column: l,
|
12986
12986
|
text: d,
|
12987
12987
|
value: g,
|
12988
12988
|
renderIndex: c
|
12989
|
-
}) :
|
12989
|
+
}) : y = g;
|
12990
12990
|
const _ = createVNode(KgTableCell, {
|
12991
12991
|
kgContext: o,
|
12992
12992
|
kgRow: u,
|
12993
|
-
kgValue:
|
12994
|
-
kgVarName:
|
12993
|
+
kgValue: y,
|
12994
|
+
kgVarName: E,
|
12995
12995
|
onKgUpdateLinkClick: () => n(u)
|
12996
12996
|
}, null);
|
12997
12997
|
if (!((b = e == null ? void 0 : e.KgTable) != null && b.bodyCell))
|
12998
12998
|
return _;
|
12999
|
-
const p = t.store.getVarGridDetail(t.formID,
|
12999
|
+
const p = t.store.getVarGridDetail(t.formID, E);
|
13000
13000
|
return e.KgTable.bodyCell({
|
13001
13001
|
column: l,
|
13002
13002
|
index: c,
|
@@ -13016,11 +13016,11 @@ function _useColumns(e) {
|
|
13016
13016
|
const t = inject(DI_KG_VAR__KG_PROPS, null), r = useKgVar(), a = useKgSearch(), n = useKgSubmit(), s = useKgTable(), {
|
13017
13017
|
renderBodyCell: i
|
13018
13018
|
} = _useRenderBodyCell(), o = ref({}), l = ref({}), c = computed(() => {
|
13019
|
-
var
|
13020
|
-
return ((
|
13019
|
+
var E;
|
13020
|
+
return ((E = r.store.getVarGridConfig(r.formID)) == null ? void 0 : E.show_check_column_flg) === 1;
|
13021
13021
|
}), u = computed(() => {
|
13022
13022
|
var T, k, A;
|
13023
|
-
const
|
13023
|
+
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, b = r.store.getCurrentVisibleVarGridDetails(r.formID), v = [{
|
13024
13024
|
dataIndex: "index",
|
13025
13025
|
width: KG_TABLE_TD_INDEX_WIDTH,
|
13026
13026
|
fixed: "left",
|
@@ -13032,7 +13032,7 @@ function _useColumns(e) {
|
|
13032
13032
|
}, ...(A = b == null ? void 0 : b.map((C, V) => {
|
13033
13033
|
var N, B, Y;
|
13034
13034
|
const M = C.var_nam;
|
13035
|
-
function
|
13035
|
+
function O() {
|
13036
13036
|
return C.width === "auto" ? "auto" : Number(C.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
13037
13037
|
}
|
13038
13038
|
function I() {
|
@@ -13046,12 +13046,12 @@ function _useColumns(e) {
|
|
13046
13046
|
}
|
13047
13047
|
function w() {
|
13048
13048
|
var $, x, W, q;
|
13049
|
-
return !(C.ord_flg !== 1 || (x = ($ = t == null ? void 0 : t.value) == null ? void 0 : $.KgTable) != null && x.kgDisabled || isNil((q = (W = t == null ? void 0 : t.value) == null ? void 0 : W.KgTable) == null ? void 0 : q.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value ||
|
13049
|
+
return !(C.ord_flg !== 1 || (x = ($ = t == null ? void 0 : t.value) == null ? void 0 : $.KgTable) != null && x.kgDisabled || isNil((q = (W = t == null ? void 0 : t.value) == null ? void 0 : W.KgTable) == null ? void 0 : q.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || y.length <= 0);
|
13050
13050
|
}
|
13051
13051
|
function F() {
|
13052
13052
|
var $, x, W, q, J, Z;
|
13053
|
-
if (((x = ($ =
|
13054
|
-
return uniqBy(
|
13053
|
+
if (((x = ($ = E.option.value.KgTable) == null ? void 0 : $.filter) == null ? void 0 : x.on) === !0 && C.filter_flag === 1 && !((q = (W = t == null ? void 0 : t.value) == null ? void 0 : W.KgTable) != null && q.kgDisabled) && !(isNil((Z = (J = t == null ? void 0 : t.value) == null ? void 0 : J.KgTable) == null ? void 0 : Z.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(y.length <= 0))
|
13054
|
+
return uniqBy(y.map((te) => {
|
13055
13055
|
var ie;
|
13056
13056
|
return {
|
13057
13057
|
value: (ie = te == null ? void 0 : te[M]) != null ? ie : "",
|
@@ -13068,12 +13068,12 @@ function _useColumns(e) {
|
|
13068
13068
|
}
|
13069
13069
|
function K() {
|
13070
13070
|
var $, x, W;
|
13071
|
-
return ((x = ($ =
|
13071
|
+
return ((x = ($ = E.option.value.KgTable) == null ? void 0 : $.filter) == null ? void 0 : x.on) !== !0 ? null : ((W = o.value) == null ? void 0 : W[M]) || null;
|
13072
13072
|
}
|
13073
|
-
function
|
13073
|
+
function D() {
|
13074
13074
|
return ["left", "center", "right"].includes(C.align || "") ? C.align : "left";
|
13075
13075
|
}
|
13076
|
-
const R =
|
13076
|
+
const R = O();
|
13077
13077
|
switch (C.ord) {
|
13078
13078
|
case 0:
|
13079
13079
|
(!l.value.field || !l.value.order) && (l.value = {
|
@@ -13096,7 +13096,7 @@ function _useColumns(e) {
|
|
13096
13096
|
resizable: typeof R == "number",
|
13097
13097
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
13098
13098
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
13099
|
-
align:
|
13099
|
+
align: D(),
|
13100
13100
|
fixed: L(),
|
13101
13101
|
sorter: w(),
|
13102
13102
|
sortOrder: ((N = l.value) == null ? void 0 : N.field) === M && (Y = (B = l.value) == null ? void 0 : B.order) != null ? Y : null,
|
@@ -13124,12 +13124,12 @@ function _useColumns(e) {
|
|
13124
13124
|
customRender: () => null
|
13125
13125
|
}), v;
|
13126
13126
|
}), d = computed(() => {
|
13127
|
-
var
|
13128
|
-
let
|
13129
|
-
return c.value && (
|
13127
|
+
var y;
|
13128
|
+
let E = 0;
|
13129
|
+
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`;
|
13130
13130
|
});
|
13131
13131
|
let g = null;
|
13132
|
-
return watch(r.currentVarGridMasteID, (
|
13132
|
+
return watch(r.currentVarGridMasteID, (E, y) => {
|
13133
13133
|
l.value = {}, g == null || g(), g = watch(l, () => {
|
13134
13134
|
g(), g = null, a.search({
|
13135
13135
|
isSearchFirstPage: !0
|
@@ -13174,7 +13174,7 @@ function _useDragColumn(e, t) {
|
|
13174
13174
|
if (a = filter((o = e.value) == null ? void 0 : o.querySelectorAll("div.ant-table-header > table > thead > tr >th"), (l) => l.hasAttribute("kg-var_nam")), a)
|
13175
13175
|
for (let l of a)
|
13176
13176
|
l.__kg__dragstart__ = (c) => {
|
13177
|
-
var
|
13177
|
+
var E;
|
13178
13178
|
n = l, l.classList.add("dragging"), l.parentElement.classList.add("dragging");
|
13179
13179
|
const u = document.createElement("span");
|
13180
13180
|
u.setAttribute("id", "__kg_table_header_drag_image__");
|
@@ -13182,9 +13182,9 @@ function _useDragColumn(e, t) {
|
|
13182
13182
|
width: d,
|
13183
13183
|
height: g
|
13184
13184
|
} = l.getBoundingClientRect();
|
13185
|
-
d && g && (u.style.width = `${d + 2}px`, u.style.height = `${g + 2}px`), (
|
13185
|
+
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(l).then((y) => {
|
13186
13186
|
var _;
|
13187
|
-
u.appendChild(
|
13187
|
+
u.appendChild(y), document.body.appendChild(u), (_ = c.dataTransfer) == null || _.setDragImage(u, -10, (g + 2) / 2);
|
13188
13188
|
});
|
13189
13189
|
}, l.addEventListener("dragstart", l.__kg__dragstart__), l.__kg__dragend__ = (c) => {
|
13190
13190
|
l.classList.remove("dragging"), l.parentElement.classList.remove("dragging");
|
@@ -13206,8 +13206,8 @@ function _useDragColumn(e, t) {
|
|
13206
13206
|
c.preventDefault(), l.classList.remove("dragover", "dragover-right", "dragover-left");
|
13207
13207
|
const u = n == null ? void 0 : n.getAttribute("kg-frm_id"), d = l.getAttribute("kg-frm_id");
|
13208
13208
|
if (u === d) {
|
13209
|
-
const g = n == null ? void 0 : n.getAttribute("kg-var_nam"),
|
13210
|
-
g !==
|
13209
|
+
const g = n == null ? void 0 : n.getAttribute("kg-var_nam"), E = l.getAttribute("kg-var_nam");
|
13210
|
+
g !== E && r.store.dragSortCurrentVarGridDetails(r.formID, g, E);
|
13211
13211
|
}
|
13212
13212
|
}, l.addEventListener("drop", l.__kg__drop__);
|
13213
13213
|
}
|
@@ -13300,7 +13300,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13300
13300
|
}
|
13301
13301
|
break;
|
13302
13302
|
case "clearDatas":
|
13303
|
-
U[0] === s.formID && (o.store.setDatas(s.formID, []),
|
13303
|
+
U[0] === s.formID && (o.store.setDatas(s.formID, []), D.total = 0, Y(), c.value = []);
|
13304
13304
|
break;
|
13305
13305
|
}
|
13306
13306
|
});
|
@@ -13308,9 +13308,9 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13308
13308
|
columns: u,
|
13309
13309
|
filterInfo: d,
|
13310
13310
|
sorterInfo: g,
|
13311
|
-
scrollX:
|
13311
|
+
scrollX: E
|
13312
13312
|
} = _useColumns(e), {
|
13313
|
-
isLoading:
|
13313
|
+
isLoading: y
|
13314
13314
|
} = _useLoading(), _ = ref(null), {
|
13315
13315
|
renderBodyCell: p
|
13316
13316
|
} = _useRenderBodyCell();
|
@@ -13324,8 +13324,8 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13324
13324
|
}), k = computed(() => {
|
13325
13325
|
var U, Q, z, ee, _e, de, ge, me, he;
|
13326
13326
|
let P = {
|
13327
|
-
pageNo:
|
13328
|
-
pageSize:
|
13327
|
+
pageNo: D.pageIndex,
|
13328
|
+
pageSize: D.pageSize,
|
13329
13329
|
column: (Q = (U = g.value) == null ? void 0 : U.field) != null ? Q : void 0,
|
13330
13330
|
order: g.value.order === "ascend" ? "asc" : g.value.order === "descend" ? "desc" : void 0,
|
13331
13331
|
...(ee = (z = i.model) == null ? void 0 : z.value) != null ? ee : {}
|
@@ -13349,7 +13349,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13349
13349
|
return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgCheckboxDisabled;
|
13350
13350
|
if (!isNil(e.kgCheckboxDisabled))
|
13351
13351
|
return e.kgCheckboxDisabled;
|
13352
|
-
}), V = computed(() => !!A.value ||
|
13352
|
+
}), V = computed(() => !!A.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), M = computed(() => !!A.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || D.total === 0), O = computed(() => {
|
13353
13353
|
var P;
|
13354
13354
|
return !!((P = r == null ? void 0 : r.KgTable) != null && P.expandedRowRender);
|
13355
13355
|
}), I = computed(() => {
|
@@ -13391,17 +13391,17 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13391
13391
|
var U;
|
13392
13392
|
let P = "kg-table-bottom";
|
13393
13393
|
return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (P += " kg-table-bottom--border"), P;
|
13394
|
-
}), K = (se = o.store.getSelectedRowKeys(s.formID)) != null ? se : ref([]),
|
13394
|
+
}), K = (se = o.store.getSelectedRowKeys(s.formID)) != null ? se : ref([]), D = reactive({
|
13395
13395
|
pageIndex: 1,
|
13396
13396
|
pageSize: 10,
|
13397
13397
|
total: 0
|
13398
13398
|
}), R = watch(o.pageSizeOption, (P) => {
|
13399
|
-
P && (setTimeout(() => R()),
|
13399
|
+
P && (setTimeout(() => R()), D.pageSize = P, o.store.emit(s.formID, "ready", {}), o.store.setIsReady(s.formID, !0));
|
13400
13400
|
}, {
|
13401
13401
|
immediate: !0
|
13402
13402
|
});
|
13403
13403
|
watch(o.pageSizeOptions, (P) => {
|
13404
|
-
P.length > 0 && !P.includes(
|
13404
|
+
P.length > 0 && !P.includes(D.pageSize) && (D.pageSize = o.pageSizeOption.value);
|
13405
13405
|
}), watch([T, o.isReadAutomatically, i.isReady], ([P, U, Q]) => {
|
13406
13406
|
P && U && Q && !o.store.getIsRetrieved(s.formID) && $({
|
13407
13407
|
isSearchFirstPage: !0
|
@@ -13467,7 +13467,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13467
13467
|
});
|
13468
13468
|
return;
|
13469
13469
|
}
|
13470
|
-
P.isSearchFirstPage && (
|
13470
|
+
P.isSearchFirstPage && (D.pageIndex = 1), o.store.setIsRetrieving(s.formID, !0);
|
13471
13471
|
try {
|
13472
13472
|
const ve = KgUtil.parseParams(k.value, o.profileFormID.value, t), Ee = ref({});
|
13473
13473
|
if (!await o.store.emit(s.formID, "beforeRetrieve", {
|
@@ -13512,7 +13512,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13512
13512
|
setDatas(H) {
|
13513
13513
|
o.store.setDatas(s.formID, H);
|
13514
13514
|
}
|
13515
|
-
}), d.value = {}, o.store.setDatas(s.formID, be.value),
|
13515
|
+
}), d.value = {}, o.store.setDatas(s.formID, be.value), D.total = Ce.value;
|
13516
13516
|
const G = cloneDeep(K.value);
|
13517
13517
|
Y(), c.value = [], await nextTick(), P.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, G.map((H) => {
|
13518
13518
|
var X;
|
@@ -13586,7 +13586,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13586
13586
|
}
|
13587
13587
|
}
|
13588
13588
|
function te(P, U) {
|
13589
|
-
U !==
|
13589
|
+
U !== D.pageSize ? (D.pageIndex = 1, D.pageSize = U) : D.pageIndex = P, $();
|
13590
13590
|
}
|
13591
13591
|
function ie({
|
13592
13592
|
title: P,
|
@@ -13609,14 +13609,14 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13609
13609
|
fixed: "bottom"
|
13610
13610
|
}, {
|
13611
13611
|
default: () => [createVNode(TableSummary.Row, null, {
|
13612
|
-
default: () => [
|
13612
|
+
default: () => [O.value && createVNode(TableSummary.Cell, {
|
13613
13613
|
index: 0
|
13614
13614
|
}, null), I.value && createVNode(TableSummary.Cell, {
|
13615
|
-
index:
|
13615
|
+
index: O.value ? 1 : 0
|
13616
13616
|
}, null), u.value.map((U, Q) => {
|
13617
13617
|
const z = String(U.dataIndex), ee = z ? s.store.getVarGridDetail(s.formID, z) : null, _e = (() => ["left", "center", "right"].includes((ee == null ? void 0 : ee.align) || "") ? ee == null ? void 0 : ee.align : "left")();
|
13618
13618
|
let de = Q;
|
13619
|
-
return
|
13619
|
+
return O.value && I.value ? de += 2 : (O.value || I.value) && (de += 1), createVNode(TableSummary.Cell, {
|
13620
13620
|
index: de,
|
13621
13621
|
align: _e
|
13622
13622
|
}, {
|
@@ -13646,14 +13646,14 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13646
13646
|
class: "kg-flex-table",
|
13647
13647
|
size: "small",
|
13648
13648
|
scroll: {
|
13649
|
-
x:
|
13649
|
+
x: E.value,
|
13650
13650
|
y: "auto"
|
13651
13651
|
},
|
13652
13652
|
pagination: !1,
|
13653
13653
|
showSorterTooltip: !1,
|
13654
13654
|
columns: u.value,
|
13655
13655
|
dataSource: b.value,
|
13656
|
-
loading:
|
13656
|
+
loading: y.value,
|
13657
13657
|
rowKey: o.id.value,
|
13658
13658
|
rowClassName: (U = (P = a == null ? void 0 : a.value) == null ? void 0 : P.KgTable) == null ? void 0 : U.kgRowClassName,
|
13659
13659
|
expandColumnWidth: 28,
|
@@ -13677,7 +13677,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13677
13677
|
class: "left"
|
13678
13678
|
}, [o.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
13679
13679
|
kgShowClearCheck: K.value.length > 0,
|
13680
|
-
kgShowClearTable:
|
13680
|
+
kgShowClearTable: D.total > 0,
|
13681
13681
|
kgShowLocate: K.value.length === 1,
|
13682
13682
|
kgTotal: K.value.length,
|
13683
13683
|
kgDisabled: V.value
|
@@ -13685,10 +13685,10 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13685
13685
|
class: "right"
|
13686
13686
|
}, [o.isShowBottomRight.value && createVNode(Pagination, {
|
13687
13687
|
size: "default",
|
13688
|
-
current:
|
13689
|
-
pageSize:
|
13688
|
+
current: D.pageIndex,
|
13689
|
+
pageSize: D.pageSize,
|
13690
13690
|
pageSizeOptions: o.pageSizeOptions.value.map((z) => String(z)),
|
13691
|
-
total:
|
13691
|
+
total: D.total,
|
13692
13692
|
showSizeChanger: !0,
|
13693
13693
|
showQuickJumper: !1,
|
13694
13694
|
hideOnSinglePage: !1,
|
@@ -13727,8 +13727,8 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13727
13727
|
attrs: t
|
13728
13728
|
}) {
|
13729
13729
|
const r = useKg(), a = useKgVar(), n = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
|
13730
|
-
var u, d, g,
|
13731
|
-
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 || ((
|
13730
|
+
var u, d, g, E, y, _, p, b;
|
13731
|
+
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((b = s.value) == null ? void 0 : b.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13732
13732
|
});
|
13733
13733
|
async function o() {
|
13734
13734
|
e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
|
@@ -13744,7 +13744,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13744
13744
|
return e.kgText ? e.kgText : r.t("kg.copy");
|
13745
13745
|
}
|
13746
13746
|
return () => {
|
13747
|
-
var u, d, g,
|
13747
|
+
var u, d, g, E;
|
13748
13748
|
return createVNode(Button, {
|
13749
13749
|
type: "primary",
|
13750
13750
|
disabled: i.value,
|
@@ -13754,7 +13754,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13754
13754
|
"kg-id": (u = s.value) == null ? void 0 : u.id,
|
13755
13755
|
"kg-frm_id": (d = s.value) == null ? void 0 : d.frm_id,
|
13756
13756
|
"kg-var_nam": (g = s.value) == null ? void 0 : g.var_nam,
|
13757
|
-
"kg-cmd": (
|
13757
|
+
"kg-cmd": (E = s.value) == null ? void 0 : E.cmd
|
13758
13758
|
}, {
|
13759
13759
|
default: () => [l(), c()]
|
13760
13760
|
});
|
@@ -13926,16 +13926,16 @@ const KgButtonCreate = defineComponent({
|
|
13926
13926
|
attrs: a
|
13927
13927
|
}) {
|
13928
13928
|
const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
13929
|
-
var T, k, A, C, V, M,
|
13930
|
-
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((A = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((M = (V = o.selectedRows.value) == null ? void 0 : V.length) != null ? M : 0) > 1 || ((
|
13929
|
+
var T, k, A, C, V, M, O, I;
|
13930
|
+
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((A = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((M = (V = o.selectedRows.value) == null ? void 0 : V.length) != null ? M : 0) > 1 || ((O = c.value) == null ? void 0 : O.permission_type) === 2 && !n.p((I = c.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13931
13931
|
}), d = computed(() => !!s.isCreatingRequesting.value);
|
13932
13932
|
async function g() {
|
13933
13933
|
e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
|
13934
13934
|
}
|
13935
|
-
function
|
13935
|
+
function E() {
|
13936
13936
|
i.store.emit(s.formID, "submitSave", {});
|
13937
13937
|
}
|
13938
|
-
function
|
13938
|
+
function y() {
|
13939
13939
|
i.store.emit(s.formID, "submitCancel", {});
|
13940
13940
|
}
|
13941
13941
|
function _() {
|
@@ -13966,7 +13966,7 @@ const KgButtonCreate = defineComponent({
|
|
13966
13966
|
function v() {
|
13967
13967
|
return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
13968
13968
|
type: "primary",
|
13969
|
-
onClick:
|
13969
|
+
onClick: E,
|
13970
13970
|
disabled: !!s.isCreatingRequesting.value
|
13971
13971
|
}, {
|
13972
13972
|
default: () => [s.isCreatingRequesting.value ? createVNode(LoadingOutlined$1, null, null) : createVNode(CheckOutlined$1, null, null), n.t("kg.save")]
|
@@ -13974,7 +13974,7 @@ const KgButtonCreate = defineComponent({
|
|
13974
13974
|
type: "primary",
|
13975
13975
|
ghost: !d.value,
|
13976
13976
|
disabled: d.value,
|
13977
|
-
onClick:
|
13977
|
+
onClick: y
|
13978
13978
|
}, {
|
13979
13979
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
13980
13980
|
})]);
|
@@ -13986,8 +13986,8 @@ const KgButtonCreate = defineComponent({
|
|
13986
13986
|
props: getProps$f(),
|
13987
13987
|
setup(e) {
|
13988
13988
|
const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), s = computed(() => {
|
13989
|
-
var c, u, d, g,
|
13990
|
-
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 && ((
|
13989
|
+
var c, u, d, g, E, y, _, p;
|
13990
|
+
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;
|
13991
13991
|
});
|
13992
13992
|
async function i() {
|
13993
13993
|
e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
|
@@ -14024,31 +14024,31 @@ const KgButtonCreate = defineComponent({
|
|
14024
14024
|
props: getProps$f(),
|
14025
14025
|
setup(e) {
|
14026
14026
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), s = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
|
14027
|
-
var
|
14028
|
-
return s.value ? (_ = (
|
14027
|
+
var y, _;
|
14028
|
+
return s.value ? (_ = (y = s.value) == null ? void 0 : y.cmd) != null ? _ : "" : null;
|
14029
14029
|
}), o = computed(() => {
|
14030
|
-
var
|
14031
|
-
return (_ = (
|
14030
|
+
var y, _;
|
14031
|
+
return (_ = (y = s.value) == null ? void 0 : y.cmd_method) != null ? _ : "GET";
|
14032
14032
|
}), l = computed(() => {
|
14033
14033
|
var _, p, b, v, T, k;
|
14034
|
-
let
|
14034
|
+
let y = {
|
14035
14035
|
pageNo: 1,
|
14036
14036
|
pageSize: 9999999,
|
14037
14037
|
...(_ = a.model.value) != null ? _ : {}
|
14038
14038
|
};
|
14039
|
-
return s.value && (
|
14040
|
-
...
|
14039
|
+
return s.value && (y = {
|
14040
|
+
...y,
|
14041
14041
|
...KgVarUtil.parseCommandParameter((b = (p = s.value) == null ? void 0 : p.cmd_prm) != null ? b : "")
|
14042
|
-
}), (v = r.varGridConfig.value) != null && v.cmd_prm && (
|
14043
|
-
...
|
14042
|
+
}), (v = r.varGridConfig.value) != null && v.cmd_prm && (y = {
|
14043
|
+
...y,
|
14044
14044
|
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
14045
|
-
}), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 &&
|
14045
|
+
}), ((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;
|
14046
14046
|
}), c = computed(() => {
|
14047
|
-
var
|
14048
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((
|
14047
|
+
var y, _, p, b, v, T, k, A;
|
14048
|
+
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 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((T = (v = n.selectedRows.value) == null ? void 0 : v.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14049
14049
|
}), u = ref(!1);
|
14050
14050
|
async function d() {
|
14051
|
-
var
|
14051
|
+
var y, _;
|
14052
14052
|
if (!(e.onKgClick && await e.onKgClick())) {
|
14053
14053
|
if (!i.value) {
|
14054
14054
|
KgLogger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -14066,7 +14066,7 @@ const KgButtonCreate = defineComponent({
|
|
14066
14066
|
}, {
|
14067
14067
|
joinParamsToUrl: !0,
|
14068
14068
|
isTransformResponse: !1
|
14069
|
-
}), b = (
|
14069
|
+
}), b = (y = s.value) == null ? void 0 : y.export_excel_filename;
|
14070
14070
|
KgUtil.downloadFile(p, `${b ? r.t(b).value : t.t("kg.export")}.${(_ = s.value) == null ? void 0 : _.export_excel_suffix}`);
|
14071
14071
|
} catch (p) {
|
14072
14072
|
throw p;
|
@@ -14082,23 +14082,23 @@ const KgButtonCreate = defineComponent({
|
|
14082
14082
|
icon: e.kgIcon
|
14083
14083
|
}, null)]) : createVNode(UploadOutlined$1, null, null);
|
14084
14084
|
}
|
14085
|
-
function
|
14085
|
+
function E() {
|
14086
14086
|
return e.kgText ? e.kgText : t.t("kg.export");
|
14087
14087
|
}
|
14088
14088
|
return () => {
|
14089
|
-
var
|
14089
|
+
var y, _, p, b;
|
14090
14090
|
return createVNode(Button, {
|
14091
14091
|
type: "primary",
|
14092
14092
|
disabled: c.value,
|
14093
14093
|
ghost: !e.kgPrimary && !c.value,
|
14094
14094
|
loading: u.value,
|
14095
14095
|
onClick: d,
|
14096
|
-
"kg-id": (
|
14096
|
+
"kg-id": (y = s.value) == null ? void 0 : y.id,
|
14097
14097
|
"kg-frm_id": (_ = s.value) == null ? void 0 : _.frm_id,
|
14098
14098
|
"kg-var_nam": (p = s.value) == null ? void 0 : p.var_nam,
|
14099
14099
|
"kg-cmd": (b = s.value) == null ? void 0 : b.cmd
|
14100
14100
|
}, {
|
14101
|
-
default: () => [g(),
|
14101
|
+
default: () => [g(), E()]
|
14102
14102
|
});
|
14103
14103
|
};
|
14104
14104
|
}
|
@@ -14129,7 +14129,7 @@ const KgButtonCreate = defineComponent({
|
|
14129
14129
|
var p, b, v, T, k, A, C, V;
|
14130
14130
|
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((p = o.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((v = (b = i.selectedRows.value) == null ? void 0 : b.length) != null ? v : 0) === 0 || ((T = o.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 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;
|
14131
14131
|
}), g = ref(!1);
|
14132
|
-
async function
|
14132
|
+
async function E(p) {
|
14133
14133
|
if (!l.value)
|
14134
14134
|
return KgLogger.error("[KgButton] '\u5BFC\u5165\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
14135
14135
|
VarButton: o.value
|
@@ -14159,7 +14159,7 @@ const KgButtonCreate = defineComponent({
|
|
14159
14159
|
}
|
14160
14160
|
return !1;
|
14161
14161
|
}
|
14162
|
-
function
|
14162
|
+
function y() {
|
14163
14163
|
return g.value ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
|
14164
14164
|
class: "anticon"
|
14165
14165
|
}, [createVNode(Icon, {
|
@@ -14172,7 +14172,7 @@ const KgButtonCreate = defineComponent({
|
|
14172
14172
|
return () => createVNode(Upload, {
|
14173
14173
|
name: "file",
|
14174
14174
|
showUploadList: !1,
|
14175
|
-
beforeUpload:
|
14175
|
+
beforeUpload: E,
|
14176
14176
|
disabled: g.value
|
14177
14177
|
}, {
|
14178
14178
|
default: () => {
|
@@ -14188,7 +14188,7 @@ const KgButtonCreate = defineComponent({
|
|
14188
14188
|
"kg-var_nam": (v = o.value) == null ? void 0 : v.var_nam,
|
14189
14189
|
"kg-cmd": (T = o.value) == null ? void 0 : T.cmd
|
14190
14190
|
}, {
|
14191
|
-
default: () => [
|
14191
|
+
default: () => [y(), _()]
|
14192
14192
|
})];
|
14193
14193
|
}
|
14194
14194
|
});
|
@@ -14198,29 +14198,29 @@ const KgButtonCreate = defineComponent({
|
|
14198
14198
|
props: getProps$f(),
|
14199
14199
|
setup(e) {
|
14200
14200
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), s = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
|
14201
|
-
var
|
14202
|
-
return s.value ? (_ = (
|
14201
|
+
var y, _;
|
14202
|
+
return s.value ? (_ = (y = s.value) == null ? void 0 : y.cmd) != null ? _ : "" : null;
|
14203
14203
|
}), o = computed(() => {
|
14204
|
-
var
|
14205
|
-
return (_ = (
|
14204
|
+
var y, _;
|
14205
|
+
return (_ = (y = s.value) == null ? void 0 : y.cmd_method) != null ? _ : "GET";
|
14206
14206
|
}), l = computed(() => {
|
14207
14207
|
var _, p, b, v, T;
|
14208
|
-
let
|
14208
|
+
let y = {
|
14209
14209
|
...(_ = a.model.value) != null ? _ : {}
|
14210
14210
|
};
|
14211
|
-
return s.value && (
|
14212
|
-
...
|
14211
|
+
return s.value && (y = {
|
14212
|
+
...y,
|
14213
14213
|
...KgVarUtil.parseCommandParameter((b = (p = s.value) == null ? void 0 : p.cmd_prm) != null ? b : "")
|
14214
|
-
}), (v = r.varGridConfig.value) != null && v.cmd_prm && (
|
14215
|
-
...
|
14214
|
+
}), (v = r.varGridConfig.value) != null && v.cmd_prm && (y = {
|
14215
|
+
...y,
|
14216
14216
|
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
14217
|
-
}),
|
14217
|
+
}), y;
|
14218
14218
|
}), c = computed(() => {
|
14219
|
-
var
|
14220
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((
|
14219
|
+
var y, _, p, b, v, T, k, A;
|
14220
|
+
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 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((T = (v = n.selectedRows.value) == null ? void 0 : v.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14221
14221
|
}), u = ref(!1);
|
14222
14222
|
async function d() {
|
14223
|
-
var
|
14223
|
+
var y, _;
|
14224
14224
|
if (!i.value) {
|
14225
14225
|
KgLogger.error("[KgButton] '\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
14226
14226
|
VarButton: s.value
|
@@ -14237,7 +14237,7 @@ const KgButtonCreate = defineComponent({
|
|
14237
14237
|
}, {
|
14238
14238
|
joinParamsToUrl: !0,
|
14239
14239
|
isTransformResponse: !1
|
14240
|
-
}), b = (
|
14240
|
+
}), b = (y = s.value) == null ? void 0 : y.export_excel_filename;
|
14241
14241
|
KgUtil.downloadFile(p, `${b ? r.t(b).value : t.t("kg.importTemplate")}.${(_ = s.value) == null ? void 0 : _.export_excel_suffix}`);
|
14242
14242
|
} catch (p) {
|
14243
14243
|
throw p;
|
@@ -14252,23 +14252,23 @@ const KgButtonCreate = defineComponent({
|
|
14252
14252
|
icon: e.kgIcon
|
14253
14253
|
}, null)]) : createVNode(UploadOutlined$1, null, null);
|
14254
14254
|
}
|
14255
|
-
function
|
14255
|
+
function E() {
|
14256
14256
|
return e.kgText ? e.kgText : t.t("kg.downloadImportTemplate");
|
14257
14257
|
}
|
14258
14258
|
return () => {
|
14259
|
-
var
|
14259
|
+
var y, _, p, b;
|
14260
14260
|
return createVNode(Button, {
|
14261
14261
|
type: "primary",
|
14262
14262
|
disabled: c.value,
|
14263
14263
|
ghost: !e.kgPrimary && !c.value,
|
14264
14264
|
loading: u.value,
|
14265
14265
|
onClick: d,
|
14266
|
-
"kg-id": (
|
14266
|
+
"kg-id": (y = s.value) == null ? void 0 : y.id,
|
14267
14267
|
"kg-frm_id": (_ = s.value) == null ? void 0 : _.frm_id,
|
14268
14268
|
"kg-var_nam": (p = s.value) == null ? void 0 : p.var_nam,
|
14269
14269
|
"kg-cmd": (b = s.value) == null ? void 0 : b.cmd
|
14270
14270
|
}, {
|
14271
|
-
default: () => [g(),
|
14271
|
+
default: () => [g(), E()]
|
14272
14272
|
});
|
14273
14273
|
};
|
14274
14274
|
}
|
@@ -14277,14 +14277,14 @@ const KgButtonCreate = defineComponent({
|
|
14277
14277
|
props: getProps$f(),
|
14278
14278
|
setup(e) {
|
14279
14279
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgButton(), s = useKgTable(), i = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
14280
|
-
var d, g,
|
14281
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = i.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((
|
14280
|
+
var d, g, E, y, _, p, b, v;
|
14281
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = i.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 = i.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((p = (_ = s.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) > 1 || ((b = i.value) == null ? void 0 : b.permission_type) === 2 && !t.p((v = i.value) == null ? void 0 : v.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14282
14282
|
});
|
14283
14283
|
async function l() {
|
14284
|
-
var
|
14284
|
+
var y, _, p;
|
14285
14285
|
if (e.onKgClick && await e.onKgClick())
|
14286
14286
|
return;
|
14287
|
-
const d = (
|
14287
|
+
const d = (y = e.kgButton) == null ? void 0 : y.cmd;
|
14288
14288
|
if (!d) {
|
14289
14289
|
KgLogger.error("[KgButton] \u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
14290
14290
|
VarButton: e.kgButton
|
@@ -14292,7 +14292,7 @@ const KgButtonCreate = defineComponent({
|
|
14292
14292
|
return;
|
14293
14293
|
}
|
14294
14294
|
let g = null;
|
14295
|
-
const
|
14295
|
+
const E = async () => {
|
14296
14296
|
var v, T, k, A, C, V;
|
14297
14297
|
g == null || g.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
14298
14298
|
const b = s.selectedRows.value;
|
@@ -14331,11 +14331,11 @@ const KgButtonCreate = defineComponent({
|
|
14331
14331
|
if (((_ = e.kgButton) == null ? void 0 : _.show_modal_flg) === 1) {
|
14332
14332
|
const b = KgUtil.tryParseJSON((p = e.kgButton) == null ? void 0 : p.modal_props);
|
14333
14333
|
typeof b.content == "string" && (b.content = r.t(b.content).value), g = KgUtil.confirm({
|
14334
|
-
onOk: () =>
|
14334
|
+
onOk: () => E(),
|
14335
14335
|
...b
|
14336
14336
|
});
|
14337
14337
|
} else
|
14338
|
-
|
14338
|
+
E();
|
14339
14339
|
}
|
14340
14340
|
function c() {
|
14341
14341
|
return e.kgIcon ? createVNode("span", {
|
@@ -14348,7 +14348,7 @@ const KgButtonCreate = defineComponent({
|
|
14348
14348
|
return e.kgText ? e.kgText : t.t("kg.button");
|
14349
14349
|
}
|
14350
14350
|
return () => {
|
14351
|
-
var d, g,
|
14351
|
+
var d, g, E, y;
|
14352
14352
|
return createVNode(Button, {
|
14353
14353
|
type: "primary",
|
14354
14354
|
disabled: o.value,
|
@@ -14357,8 +14357,8 @@ const KgButtonCreate = defineComponent({
|
|
14357
14357
|
onClick: l,
|
14358
14358
|
"kg-id": (d = i.value) == null ? void 0 : d.id,
|
14359
14359
|
"kg-frm_id": (g = i.value) == null ? void 0 : g.frm_id,
|
14360
|
-
"kg-var_nam": (
|
14361
|
-
"kg-cmd": (
|
14360
|
+
"kg-var_nam": (E = i.value) == null ? void 0 : E.var_nam,
|
14361
|
+
"kg-cmd": (y = i.value) == null ? void 0 : y.cmd
|
14362
14362
|
}, {
|
14363
14363
|
default: () => [c(), u()]
|
14364
14364
|
});
|
@@ -14423,8 +14423,8 @@ const KgButtonCreate = defineComponent({
|
|
14423
14423
|
}
|
14424
14424
|
});
|
14425
14425
|
const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
14426
|
-
var T, k, A, C, V, M,
|
14427
|
-
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || i.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((M = (V = i.selectedRows.value) == null ? void 0 : V.length) != null ? M : 0) > 1 || ((
|
14426
|
+
var T, k, A, C, V, M, O, I;
|
14427
|
+
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || i.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((M = (V = i.selectedRows.value) == null ? void 0 : V.length) != null ? M : 0) > 1 || ((O = c.value) == null ? void 0 : O.permission_type) === 2 && !n.p((I = c.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14428
14428
|
}), d = computed(() => !!s.isUpdatingRequesting.value);
|
14429
14429
|
async function g() {
|
14430
14430
|
e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
|
@@ -14432,10 +14432,10 @@ const KgButtonCreate = defineComponent({
|
|
14432
14432
|
row: i.selectedRow.value
|
14433
14433
|
}) || s.store.setIsUpdating(s.formID, !0);
|
14434
14434
|
}
|
14435
|
-
function
|
14435
|
+
function E() {
|
14436
14436
|
o.store.emit(s.formID, "submitSave", {});
|
14437
14437
|
}
|
14438
|
-
function
|
14438
|
+
function y() {
|
14439
14439
|
o.store.emit(s.formID, "submitCancel", {});
|
14440
14440
|
}
|
14441
14441
|
function _() {
|
@@ -14467,7 +14467,7 @@ const KgButtonCreate = defineComponent({
|
|
14467
14467
|
function v() {
|
14468
14468
|
return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
14469
14469
|
type: "primary",
|
14470
|
-
onClick:
|
14470
|
+
onClick: E,
|
14471
14471
|
disabled: !!s.isUpdatingRequesting.value
|
14472
14472
|
}, {
|
14473
14473
|
default: () => [s.isUpdatingRequesting.value ? createVNode(LoadingOutlined$1, null, null) : createVNode(CheckOutlined$1, null, null), n.t("kg.save")]
|
@@ -14475,7 +14475,7 @@ const KgButtonCreate = defineComponent({
|
|
14475
14475
|
type: "primary",
|
14476
14476
|
ghost: !d.value,
|
14477
14477
|
disabled: d.value,
|
14478
|
-
onClick:
|
14478
|
+
onClick: y
|
14479
14479
|
}, {
|
14480
14480
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
14481
14481
|
})]);
|
@@ -14583,9 +14583,9 @@ const getProps$e = () => ({
|
|
14583
14583
|
return null;
|
14584
14584
|
switch ((p = n.varGridConfig.value) == null ? void 0 : p.button_display_type) {
|
14585
14585
|
case KG_BUTTON_DISPLAY_TYPE.SELECT:
|
14586
|
-
return E();
|
14587
|
-
default:
|
14588
14586
|
return y();
|
14587
|
+
default:
|
14588
|
+
return E();
|
14589
14589
|
}
|
14590
14590
|
}
|
14591
14591
|
function g(_) {
|
@@ -14601,11 +14601,11 @@ const getProps$e = () => ({
|
|
14601
14601
|
onKgClick: () => o(_)
|
14602
14602
|
}, null);
|
14603
14603
|
}
|
14604
|
-
function
|
14604
|
+
function E() {
|
14605
14605
|
var _;
|
14606
14606
|
return (_ = n.varButtons.value) == null ? void 0 : _.filter((p) => p.typ !== KG_BUTTON_TYPE.SEARCH).map((p) => g(p));
|
14607
14607
|
}
|
14608
|
-
function
|
14608
|
+
function y() {
|
14609
14609
|
return createVNode(Dropdown, {
|
14610
14610
|
trigger: "click",
|
14611
14611
|
overlayClassName: "kg-button-dropdown"
|
@@ -15114,12 +15114,12 @@ function _useDragRow(e, t, r) {
|
|
15114
15114
|
const g = document.createElement("span");
|
15115
15115
|
g.setAttribute("id", "__kg_search_config_fields_drag_image__");
|
15116
15116
|
const {
|
15117
|
-
width:
|
15118
|
-
height:
|
15117
|
+
width: E,
|
15118
|
+
height: y
|
15119
15119
|
} = u.parentElement.getBoundingClientRect();
|
15120
|
-
|
15120
|
+
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);
|
15121
15121
|
const _ = await toCanvas(u.parentElement);
|
15122
|
-
g.appendChild(_), document.body.appendChild(g), (b = d.dataTransfer) == null || b.setDragImage(g, -10, (
|
15122
|
+
g.appendChild(_), document.body.appendChild(g), (b = d.dataTransfer) == null || b.setDragImage(g, -10, (y + 2) / 2);
|
15123
15123
|
}, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
|
15124
15124
|
u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
|
15125
15125
|
const g = document.querySelector("#__kg_search_config_fields_drag_image__");
|
@@ -15132,19 +15132,19 @@ function _useDragRow(e, t, r) {
|
|
15132
15132
|
if (a = filter(document.querySelectorAll(`tr[kg-host-frm_id="${e}"]`), () => !0), a)
|
15133
15133
|
for (let u of a)
|
15134
15134
|
u.__kg__dragover__ = (d) => {
|
15135
|
-
var g,
|
15136
|
-
d.preventDefault(), u.rowIndex > ((g = s == null ? void 0 : s.rowIndex) != null ? g : -1) ? u.classList.add("dragover", "dragover-right") : u.rowIndex < ((
|
15135
|
+
var g, E;
|
15136
|
+
d.preventDefault(), u.rowIndex > ((g = s == null ? void 0 : s.rowIndex) != null ? g : -1) ? u.classList.add("dragover", "dragover-right") : u.rowIndex < ((E = s == null ? void 0 : s.rowIndex) != null ? E : -1) && u.classList.add("dragover", "dragover-left");
|
15137
15137
|
}, u.addEventListener("dragover", u.__kg__dragover__, !1), u.__kg__dragenter__ = (d) => {
|
15138
|
-
var g,
|
15139
|
-
u.rowIndex > ((g = s == null ? void 0 : s.rowIndex) != null ? g : -1) ? u.classList.add("dragover", "dragover-right") : u.rowIndex < ((
|
15138
|
+
var g, E;
|
15139
|
+
u.rowIndex > ((g = s == null ? void 0 : s.rowIndex) != null ? g : -1) ? u.classList.add("dragover", "dragover-right") : u.rowIndex < ((E = s == null ? void 0 : s.rowIndex) != null ? E : -1) && u.classList.add("dragover", "dragover-left");
|
15140
15140
|
}, u.addEventListener("dragenter", u.__kg__dragenter__), u.__kg__dragleave__ = (d) => {
|
15141
15141
|
u.classList.remove("dragover", "dragover-right", "dragover-left");
|
15142
15142
|
}, u.addEventListener("dragleave", u.__kg__dragleave__), u.__kg__drop__ = (d) => {
|
15143
15143
|
d.preventDefault(), KgUtil.showLoading();
|
15144
15144
|
const g = document.querySelector("#__kg_search_config_fields_drag_image__");
|
15145
15145
|
g && document.body.removeChild(g), u.classList.remove("dragover", "dragover-right", "dragover-left");
|
15146
|
-
const
|
15147
|
-
|
15146
|
+
const E = s == null ? void 0 : s.getAttribute("kg-var_nam"), y = u.getAttribute("kg-var_nam");
|
15147
|
+
E !== y && l(E, y);
|
15148
15148
|
}, u.addEventListener("drop", u.__kg__drop__);
|
15149
15149
|
}
|
15150
15150
|
function o() {
|
@@ -15163,12 +15163,12 @@ function _useDragRow(e, t, r) {
|
|
15163
15163
|
}
|
15164
15164
|
function l(u, d) {
|
15165
15165
|
setTimeout(() => {
|
15166
|
-
const g = t.value.findIndex((p) => p.var_nam === u),
|
15167
|
-
if (g === -1 ||
|
15166
|
+
const g = t.value.findIndex((p) => p.var_nam === u), E = t.value.findIndex((p) => p.var_nam === d);
|
15167
|
+
if (g === -1 || E === -1)
|
15168
15168
|
return;
|
15169
|
-
const
|
15169
|
+
const y = t.value.find((p) => p.var_nam === u), _ = [];
|
15170
15170
|
t.value.forEach((p, b) => {
|
15171
|
-
g >
|
15171
|
+
g > E ? b < E ? _.push(p) : b === E ? (_.push(y), _.push(p)) : b > E && b !== g && _.push(p) : g < E && (b < g ? _.push(p) : b === g || (b === E ? (_.push(p), _.push(y)) : _.push(p)));
|
15172
15172
|
}), _.forEach((p, b) => {
|
15173
15173
|
p.srtseq = b + 1;
|
15174
15174
|
}), t.value = _, nextTick().finally(() => {
|
@@ -15205,7 +15205,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15205
15205
|
row: v,
|
15206
15206
|
model: T
|
15207
15207
|
}) => {
|
15208
|
-
var A, C, V, M,
|
15208
|
+
var A, C, V, M, O;
|
15209
15209
|
const k = r.store.getSystemVarProfileDetails(r.formID);
|
15210
15210
|
switch (l.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
|
15211
15211
|
case _: {
|
@@ -15224,7 +15224,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15224
15224
|
});
|
15225
15225
|
l.value = l.value.map((w) => {
|
15226
15226
|
var K;
|
15227
|
-
const F = (K = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : K.find((
|
15227
|
+
const F = (K = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : K.find((D) => D.var_nam === w.var_nam);
|
15228
15228
|
return F ? {
|
15229
15229
|
...w,
|
15230
15230
|
...F,
|
@@ -15245,7 +15245,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15245
15245
|
}
|
15246
15246
|
switch (!0) {
|
15247
15247
|
case b: {
|
15248
|
-
T.value.prf_var_nam = ((V = T.value.prf_var_nam) != null ? V : "") + "_COPY", T.value.prf_var_nam_dsc = ((
|
15248
|
+
T.value.prf_var_nam = ((V = T.value.prf_var_nam) != null ? V : "") + "_COPY", T.value.prf_var_nam_dsc = ((O = (M = T.value.prf_var_nam_dsc) != null ? M : T.value.prf_var_nam) != null ? O : "") + "_COPY";
|
15249
15249
|
break;
|
15250
15250
|
}
|
15251
15251
|
}
|
@@ -15316,9 +15316,9 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15316
15316
|
onItemSelect: k
|
15317
15317
|
}) => {
|
15318
15318
|
var C, V;
|
15319
|
-
const A = p.sort((M,
|
15319
|
+
const A = p.sort((M, O) => {
|
15320
15320
|
var I, L;
|
15321
|
-
return ((I = M.srtseq) != null ? I : 0) - ((L =
|
15321
|
+
return ((I = M.srtseq) != null ? I : 0) - ((L = O.srtseq) != null ? L : 0);
|
15322
15322
|
});
|
15323
15323
|
return u.value = A, createVNode(Table, {
|
15324
15324
|
pagination: !1,
|
@@ -15332,12 +15332,12 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15332
15332
|
rowKey: "id",
|
15333
15333
|
dataSource: A,
|
15334
15334
|
customRow: (M) => {
|
15335
|
-
let
|
15336
|
-
onClick: (I) =>
|
15335
|
+
let O = {
|
15336
|
+
onClick: (I) => y(I, M, _, b)
|
15337
15337
|
};
|
15338
|
-
return _ === "right" && (
|
15338
|
+
return _ === "right" && (O["kg-host-frm_id"] = r.formID, O["kg-var_nam"] = M.var_nam), O;
|
15339
15339
|
},
|
15340
|
-
rowSelection:
|
15340
|
+
rowSelection: E({
|
15341
15341
|
disabled: v,
|
15342
15342
|
selectedKeys: b,
|
15343
15343
|
onItemSelectAll: T,
|
@@ -15348,7 +15348,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15348
15348
|
})
|
15349
15349
|
}
|
15350
15350
|
}
|
15351
|
-
}),
|
15351
|
+
}), E = ({
|
15352
15352
|
disabled: _,
|
15353
15353
|
selectedKeys: p,
|
15354
15354
|
onItemSelectAll: b,
|
@@ -15371,7 +15371,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15371
15371
|
selectedRowKeys: p,
|
15372
15372
|
columnWidth: 32
|
15373
15373
|
});
|
15374
|
-
function
|
15374
|
+
function y(_, p, b, v) {
|
15375
15375
|
if (!KgDomUtil.isNotClickable(_.target, ["ant-input"]))
|
15376
15376
|
switch (v.length = 0, _.detail) {
|
15377
15377
|
case 1:
|
@@ -15484,11 +15484,11 @@ function _useLayoutHeaderResizeObserver() {
|
|
15484
15484
|
}
|
15485
15485
|
function _useCommon() {
|
15486
15486
|
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(() => {
|
15487
|
-
var g,
|
15487
|
+
var g, E, y;
|
15488
15488
|
if (!n.value || a.value > 0)
|
15489
15489
|
return !1;
|
15490
|
-
const d = (
|
15491
|
-
return d !== void 0 ? d : ((
|
15490
|
+
const d = (E = (g = e == null ? void 0 : e.value) == null ? void 0 : g.KgSearch) == null ? void 0 : E.kgHeaderTeleport;
|
15491
|
+
return d !== void 0 ? d : ((y = r.value) == null ? void 0 : y.header_teleport_flg) !== 0;
|
15492
15492
|
}), i = computed(() => {
|
15493
15493
|
var d;
|
15494
15494
|
return ((d = r.value) == null ? void 0 : d.vis_flg) === 1;
|
@@ -15518,23 +15518,23 @@ function _useFormModel(e, t, r) {
|
|
15518
15518
|
let l, c;
|
15519
15519
|
const u = ref({}), d = ref({});
|
15520
15520
|
async function g() {
|
15521
|
-
var
|
15522
|
-
((
|
15521
|
+
var E;
|
15522
|
+
((E = n.currentVarProfileDetails.value) != null ? E : []).forEach((y) => {
|
15523
15523
|
var p, b, v;
|
15524
|
-
const _ = (p =
|
15525
|
-
u.value[_] = KgVarUtil.transformFormItemValue(n.formID, _, a, (b =
|
15526
|
-
}), r.value.kgHeight = o.value, s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value), i.value ? (c == null || c(), c = watch(t, async (
|
15527
|
-
|
15524
|
+
const _ = (p = y.var_nam) != null ? p : "";
|
15525
|
+
u.value[_] = KgVarUtil.transformFormItemValue(n.formID, _, a, (b = y.dft_val) != null ? b : void 0, "R"), d.value[_] = KgVarUtil.transformFormItemDynamicQueryOperator(n.formID, _, (v = y.dft_dyn_op) != null ? v : void 0);
|
15526
|
+
}), r.value.kgHeight = o.value, s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value), i.value ? (c == null || c(), c = watch(t, async (y) => {
|
15527
|
+
y && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
|
15528
15528
|
}, {
|
15529
15529
|
immediate: !0
|
15530
|
-
})) : (l == null || l(), l = watch(e, async (
|
15531
|
-
|
15530
|
+
})) : (l == null || l(), l = watch(e, async (y) => {
|
15531
|
+
y && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
|
15532
15532
|
}, {
|
15533
15533
|
immediate: !0
|
15534
15534
|
}));
|
15535
15535
|
}
|
15536
|
-
return watch(n.currentVarProfileDetails, async (
|
15537
|
-
if (u.value = {}, d.value = {}, isNil(
|
15536
|
+
return watch(n.currentVarProfileDetails, async (E) => {
|
15537
|
+
if (u.value = {}, d.value = {}, isNil(E)) {
|
15538
15538
|
s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value);
|
15539
15539
|
return;
|
15540
15540
|
}
|
@@ -15565,11 +15565,11 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15565
15565
|
defaultHeight: u,
|
15566
15566
|
maxHeight: d,
|
15567
15567
|
minHeight: g
|
15568
|
-
} = _useCommon(),
|
15568
|
+
} = _useCommon(), E = ref(null), y = ref(null), _ = ref({
|
15569
15569
|
kgHeight: g.value
|
15570
15570
|
});
|
15571
15571
|
_useLayoutHeaderResizeObserver();
|
15572
|
-
const p = _useFormModel(
|
15572
|
+
const p = _useFormModel(E, y, _), b = computed(() => {
|
15573
15573
|
var $, x, W, q;
|
15574
15574
|
if (!isNil((x = ($ = r == null ? void 0 : r.value) == null ? void 0 : $.KgSearch) == null ? void 0 : x.kgDisabled))
|
15575
15575
|
return (q = (W = r == null ? void 0 : r.value) == null ? void 0 : W.KgSearch) == null ? void 0 : q.kgDisabled;
|
@@ -15594,7 +15594,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15594
15594
|
default:
|
15595
15595
|
return !0;
|
15596
15596
|
}
|
15597
|
-
}),
|
15597
|
+
}), O = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), I = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), L = computed(() => {
|
15598
15598
|
let $ = "kg-search";
|
15599
15599
|
return o.value && ($ += " kg-search--visible"), c.value && ($ += " kg-search--teleport"), $;
|
15600
15600
|
});
|
@@ -15612,7 +15612,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15612
15612
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u521B\u5EFA/\u66F4\u65B0/\u590D\u5236/\u5220\u9664.`);
|
15613
15613
|
return;
|
15614
15614
|
}
|
15615
|
-
o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`),
|
15615
|
+
o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), y.value && y.value.validate().then(async () => {
|
15616
15616
|
await s.store.emit(n.formID, "search", $);
|
15617
15617
|
}).catch((q) => {
|
15618
15618
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
@@ -15622,7 +15622,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15622
15622
|
}
|
15623
15623
|
s.store.setSearchFn(n.formID, w);
|
15624
15624
|
async function F() {
|
15625
|
-
p.initFormModel(), o.value ?
|
15625
|
+
p.initFormModel(), o.value ? y.value && y.value.validate().then(async () => {
|
15626
15626
|
await s.store.emit(n.formID, "reset", {});
|
15627
15627
|
}).catch(($) => {
|
15628
15628
|
KgLogger.debug(`${n.formID} | KgSearch | onReset() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
@@ -15636,7 +15636,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15636
15636
|
isSearchFirstPage: !0
|
15637
15637
|
}), Promise.resolve(!0);
|
15638
15638
|
}
|
15639
|
-
function
|
15639
|
+
function D() {
|
15640
15640
|
var $;
|
15641
15641
|
return createVNode("div", {
|
15642
15642
|
class: "title",
|
@@ -15709,7 +15709,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15709
15709
|
default: () => {
|
15710
15710
|
var $;
|
15711
15711
|
return [createVNode(KgForm, {
|
15712
|
-
ref:
|
15712
|
+
ref: y,
|
15713
15713
|
model: ($ = s.model.value) != null ? $ : {}
|
15714
15714
|
}, {
|
15715
15715
|
default: () => [createVNode(Row, {
|
@@ -15735,7 +15735,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15735
15735
|
C.value ? _.value.kgHeight = u.value : _.value.kgHeight = g.value;
|
15736
15736
|
}
|
15737
15737
|
return () => createVNode(KgResizable, {
|
15738
|
-
ref:
|
15738
|
+
ref: E,
|
15739
15739
|
kgHeight: _.value.kgHeight,
|
15740
15740
|
"onUpdate:kgHeight": ($) => _.value.kgHeight = $,
|
15741
15741
|
kgMinHeight: g.value,
|
@@ -15755,9 +15755,9 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15755
15755
|
default: () => [createVNode("div", {
|
15756
15756
|
class: "ant-collapse-header"
|
15757
15757
|
}, [createVNode(Spin, {
|
15758
|
-
spinning:
|
15758
|
+
spinning: O.value
|
15759
15759
|
}, {
|
15760
|
-
default: () => [
|
15760
|
+
default: () => [D(), createVNode("div", {
|
15761
15761
|
class: "ant-collapse-extra"
|
15762
15762
|
}, [N()])]
|
15763
15763
|
})])]
|
@@ -15829,7 +15829,7 @@ function useMagicKeys(e = {}) {
|
|
15829
15829
|
for (const _ of u)
|
15830
15830
|
d(_, !1);
|
15831
15831
|
}
|
15832
|
-
function
|
15832
|
+
function E(_, p) {
|
15833
15833
|
var b, v;
|
15834
15834
|
const T = (b = _.key) == null ? void 0 : b.toLowerCase(), k = (v = _.code) == null ? void 0 : v.toLowerCase(), A = [k, T].filter(Boolean);
|
15835
15835
|
k && (p ? i.add(_.code) : i.delete(_.code));
|
@@ -15839,22 +15839,22 @@ function useMagicKeys(e = {}) {
|
|
15839
15839
|
i.delete(C), d(C, !1);
|
15840
15840
|
}), c.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && p && [...i, ...A].forEach((C) => c.add(C));
|
15841
15841
|
}
|
15842
|
-
r && (useEventListener(r, "keydown", (_) => (
|
15843
|
-
const
|
15842
|
+
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 }));
|
15843
|
+
const y = new Proxy(l, {
|
15844
15844
|
get(_, p, b) {
|
15845
15845
|
if (typeof p != "string")
|
15846
15846
|
return Reflect.get(_, p, b);
|
15847
15847
|
if (p = p.toLowerCase(), p in a && (p = a[p]), !(p in l))
|
15848
15848
|
if (/[+_-]/.test(p)) {
|
15849
15849
|
const T = p.split(/[+_-]/g).map((k) => k.trim());
|
15850
|
-
l[p] = computed(() => T.every((k) => unref(
|
15850
|
+
l[p] = computed(() => T.every((k) => unref(y[k])));
|
15851
15851
|
} else
|
15852
15852
|
l[p] = ref(!1);
|
15853
15853
|
const v = Reflect.get(_, p, b);
|
15854
15854
|
return t ? unref(v) : v;
|
15855
15855
|
}
|
15856
15856
|
});
|
15857
|
-
return
|
15857
|
+
return y;
|
15858
15858
|
}
|
15859
15859
|
var SwipeDirection;
|
15860
15860
|
(function(e) {
|
@@ -16237,9 +16237,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16237
16237
|
hideSelectAll: !0,
|
16238
16238
|
selectedRowKeys: d,
|
16239
16239
|
onSelect: (w) => V(w)
|
16240
|
-
}),
|
16240
|
+
}), E = ref({
|
16241
16241
|
visible: !1
|
16242
|
-
}),
|
16242
|
+
}), y = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(i))), _ = computed(() => {
|
16243
16243
|
var w;
|
16244
16244
|
return !!u.value || ((w = a.getSelectedVarCatalog) == null ? void 0 : w.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
16245
16245
|
}), p = computed(() => !!(!unref(u) || unref(n) || unref(s))), b = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
@@ -16252,7 +16252,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16252
16252
|
l.value.var_text = (F = w == null ? void 0 : w.var_text) != null ? F : "", (K = o.value) == null || K.clearValidate();
|
16253
16253
|
});
|
16254
16254
|
async function v(w = !1) {
|
16255
|
-
var F, K,
|
16255
|
+
var F, K, D;
|
16256
16256
|
n.value = !0;
|
16257
16257
|
try {
|
16258
16258
|
const {
|
@@ -16274,7 +16274,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16274
16274
|
});
|
16275
16275
|
a.setSelectedVarCatalog(N != null ? N : null), d.value = N != null && N.id ? [N.id] : [];
|
16276
16276
|
} else
|
16277
|
-
a.setSelectedVarCatalog((K = c.value[0]) != null ? K : null), d.value = (
|
16277
|
+
a.setSelectedVarCatalog((K = c.value[0]) != null ? K : null), d.value = (D = c.value[0]) != null && D.id ? [c.value[0].id] : [];
|
16278
16278
|
} catch (R) {
|
16279
16279
|
KgLogger.debug(R == null ? void 0 : R.message);
|
16280
16280
|
} finally {
|
@@ -16285,31 +16285,31 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16285
16285
|
var w, F, K;
|
16286
16286
|
try {
|
16287
16287
|
s.value = !0, await ((w = o.value) == null ? void 0 : w.validate());
|
16288
|
-
const
|
16288
|
+
const D = new VarCatalog({
|
16289
16289
|
...(F = a.getSelectedVarCatalog) != null ? F : {},
|
16290
16290
|
var_text: (K = l.value) == null ? void 0 : K.var_text
|
16291
16291
|
});
|
16292
|
-
|
16293
|
-
data:
|
16292
|
+
D.id ? D.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (D.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(D, "id"), await Add({
|
16293
|
+
data: D
|
16294
16294
|
}, {
|
16295
16295
|
successMessageMode: "none"
|
16296
16296
|
}), message.success({
|
16297
16297
|
content: t.t("kg.KgVarConfig.createSuccess")
|
16298
16298
|
}), await v()) : (await Edit({
|
16299
|
-
data:
|
16299
|
+
data: D
|
16300
16300
|
}, {
|
16301
16301
|
successMessageMode: "none"
|
16302
16302
|
}), message.success({
|
16303
16303
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
16304
16304
|
}), await v(!0)) : (await Add({
|
16305
|
-
data:
|
16305
|
+
data: D
|
16306
16306
|
}, {
|
16307
16307
|
successMessageMode: "none"
|
16308
16308
|
}), message.success({
|
16309
16309
|
content: t.t("kg.KgVarConfig.createSuccess")
|
16310
16310
|
}), await v()), r.retrieve(e == null ? void 0 : e.value);
|
16311
|
-
} catch (
|
16312
|
-
KgUtil.throwIfNotFormError(
|
16311
|
+
} catch (D) {
|
16312
|
+
KgUtil.throwIfNotFormError(D);
|
16313
16313
|
} finally {
|
16314
16314
|
s.value = !1;
|
16315
16315
|
}
|
@@ -16318,12 +16318,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16318
16318
|
isAllForm: w,
|
16319
16319
|
isAllLanguage: F
|
16320
16320
|
}) {
|
16321
|
-
var K,
|
16321
|
+
var K, D, R;
|
16322
16322
|
u.value = new VarCatalog({
|
16323
16323
|
id: "",
|
16324
16324
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
16325
16325
|
grp_nam: (K = a.getSelectedVar) == null ? void 0 : K.grp_nam,
|
16326
|
-
var_nam: (
|
16326
|
+
var_nam: (D = a.getSelectedVar) == null ? void 0 : D.var_nam,
|
16327
16327
|
frm_id: w || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
16328
16328
|
locale_id: F ? "ALL" : (R = t.locale) == null ? void 0 : R.value,
|
16329
16329
|
var_text: ""
|
@@ -16362,14 +16362,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16362
16362
|
}) : (a.setSelectedVarCatalog(unref(w)), d.value = [w.id]));
|
16363
16363
|
}
|
16364
16364
|
function M() {
|
16365
|
-
|
16365
|
+
E.value.visible = !0;
|
16366
16366
|
}
|
16367
|
-
function
|
16367
|
+
function O() {
|
16368
16368
|
return createVNode("div", {
|
16369
16369
|
class: "buttons"
|
16370
16370
|
}, [createVNode(Button, {
|
16371
16371
|
onClick: M,
|
16372
|
-
disabled:
|
16372
|
+
disabled: y.value,
|
16373
16373
|
type: "primary"
|
16374
16374
|
}, {
|
16375
16375
|
default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
|
@@ -16430,7 +16430,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16430
16430
|
}
|
16431
16431
|
return () => createVNode("div", {
|
16432
16432
|
class: "kg-var-config-modal-var-var-catalog"
|
16433
|
-
}, [
|
16433
|
+
}, [O(), createVNode(Table, {
|
16434
16434
|
pagination: !1,
|
16435
16435
|
class: "kg-flex-table",
|
16436
16436
|
size: "small",
|
@@ -16448,8 +16448,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16448
16448
|
onClick: () => V(w)
|
16449
16449
|
})
|
16450
16450
|
}, null), I(), createVNode(KgVarConfigModalVarCreateModal, {
|
16451
|
-
visible:
|
16452
|
-
"onUpdate:visible": (w) =>
|
16451
|
+
visible: E.value.visible,
|
16452
|
+
"onUpdate:visible": (w) => E.value.visible = w,
|
16453
16453
|
onKgOk: k
|
16454
16454
|
}, null)]);
|
16455
16455
|
}
|
@@ -16783,24 +16783,24 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16783
16783
|
var A;
|
16784
16784
|
const k = (A = s.value) == null ? void 0 : A.toUpperCase();
|
16785
16785
|
return u.value.filter((C) => {
|
16786
|
-
var V, M,
|
16787
|
-
return ((M = (V = C.whDsc) == null ? void 0 : V.toUpperCase()) == null ? void 0 : M.includes(k)) || ((I = (
|
16786
|
+
var V, M, O, I, L, w;
|
16787
|
+
return ((M = (V = C.whDsc) == null ? void 0 : V.toUpperCase()) == null ? void 0 : M.includes(k)) || ((I = (O = C.whId) == null ? void 0 : O.toUpperCase()) == null ? void 0 : I.includes(k)) || ((w = (L = C.adrId) == null ? void 0 : L.toUpperCase()) == null ? void 0 : w.includes(k));
|
16788
16788
|
});
|
16789
16789
|
}), g = computed(() => {
|
16790
16790
|
var k;
|
16791
16791
|
return ((k = r.option.value.KgWarehouse) == null ? void 0 : k.on) !== !1;
|
16792
16792
|
});
|
16793
16793
|
watch(a.visible, (k) => {
|
16794
|
-
!g.value || (k ?
|
16794
|
+
!g.value || (k ? y() : _());
|
16795
16795
|
}, {
|
16796
16796
|
immediate: !0
|
16797
16797
|
}), onMounted(() => {
|
16798
16798
|
a.store.emit("mounted");
|
16799
16799
|
});
|
16800
|
-
function
|
16800
|
+
function E() {
|
16801
16801
|
!g.value || a.store.setVisible(!0);
|
16802
16802
|
}
|
16803
|
-
function
|
16803
|
+
function y() {
|
16804
16804
|
o.value = a.warehouse.value, b();
|
16805
16805
|
}
|
16806
16806
|
function _() {
|
@@ -16909,7 +16909,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16909
16909
|
}
|
16910
16910
|
return () => createVNode("div", {
|
16911
16911
|
class: n.value,
|
16912
|
-
onClick:
|
16912
|
+
onClick: E
|
16913
16913
|
}, [T()]);
|
16914
16914
|
}
|
16915
16915
|
});
|
@@ -17038,27 +17038,27 @@ class KgUtil {
|
|
17038
17038
|
if (!s || !isObjectLike(s))
|
17039
17039
|
return { sql: "", whereSql: "", orderBySql: "" };
|
17040
17040
|
const i = ["pageNo", "pageSize", "column", "order"], o = useKg(), l = r ? useKgVar(r) : null, c = r ? useKgSearch(r).operatorModel.value : a, u = {};
|
17041
|
-
Object.keys(s).sort().forEach((
|
17041
|
+
Object.keys(s).sort().forEach((y) => {
|
17042
17042
|
var T, k, A, C, V;
|
17043
|
-
if (i.includes(
|
17044
|
-
u[
|
17043
|
+
if (i.includes(y)) {
|
17044
|
+
u[y] = s[y];
|
17045
17045
|
return;
|
17046
17046
|
}
|
17047
|
-
const _ = r ? (T = l == null ? void 0 : l.store) == null ? void 0 : T.getVarProfileDetail(r,
|
17048
|
-
let b = c == null ? void 0 : c[
|
17047
|
+
const _ = r ? (T = l == null ? void 0 : l.store) == null ? void 0 : T.getVarProfileDetail(r, y) : null, p = s[y];
|
17048
|
+
let b = c == null ? void 0 : c[y];
|
17049
17049
|
(((A = (k = o.option.value.KgSearch) == null ? void 0 : k.dynamicQuery) == null ? void 0 : A.on) !== !0 || r && ((V = (C = l == null ? void 0 : l.currentVarProfileMaster) == null ? void 0 : C.value) == null ? void 0 : V.dyn_flg) !== 1) && (b = KG_DYNAMIC_QUERY_OPERATOR.EQ);
|
17050
|
-
let v =
|
17051
|
-
switch (r && (_ == null ? void 0 : _.use_underscore_when_dynamic_query_flag) !== 0 && (v =
|
17052
|
-
case
|
17053
|
-
u[
|
17050
|
+
let v = y;
|
17051
|
+
switch (r && (_ == null ? void 0 : _.use_underscore_when_dynamic_query_flag) !== 0 && (v = y.split(".").map((M) => snakeCase$1(M)).join(".")), !0) {
|
17052
|
+
case y.endsWith("_obj"): {
|
17053
|
+
u[y] = void 0;
|
17054
17054
|
break;
|
17055
17055
|
}
|
17056
17056
|
case (!!n && n.isDayjs(p)): {
|
17057
17057
|
const M = p;
|
17058
|
-
let
|
17058
|
+
let O = r ? this.parseParamFromDayJS(y, M, r) : M.format("YYYY-MM-DD HH:mm:ss");
|
17059
17059
|
switch (b) {
|
17060
17060
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
17061
|
-
let I =
|
17061
|
+
let I = O, L = "";
|
17062
17062
|
switch (!0) {
|
17063
17063
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(I): {
|
17064
17064
|
L = M.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
@@ -17075,11 +17075,11 @@ class KgUtil {
|
|
17075
17075
|
default:
|
17076
17076
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
17077
17077
|
}
|
17078
|
-
|
17078
|
+
O = ` AND (${v} < '${I}' OR ${v} >= '${L}')`;
|
17079
17079
|
break;
|
17080
17080
|
}
|
17081
17081
|
case KG_DYNAMIC_QUERY_OPERATOR.LT: {
|
17082
|
-
let I =
|
17082
|
+
let I = O;
|
17083
17083
|
switch (!0) {
|
17084
17084
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(I):
|
17085
17085
|
break;
|
@@ -17092,11 +17092,11 @@ class KgUtil {
|
|
17092
17092
|
default:
|
17093
17093
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
17094
17094
|
}
|
17095
|
-
|
17095
|
+
O = ` AND (${v} < '${I}')`;
|
17096
17096
|
break;
|
17097
17097
|
}
|
17098
17098
|
case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
|
17099
|
-
let I =
|
17099
|
+
let I = O, L = "";
|
17100
17100
|
switch (!0) {
|
17101
17101
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(I): {
|
17102
17102
|
L = M.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
@@ -17113,11 +17113,11 @@ class KgUtil {
|
|
17113
17113
|
default:
|
17114
17114
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
17115
17115
|
}
|
17116
|
-
|
17116
|
+
O = ` AND (${v} < '${L}')`;
|
17117
17117
|
break;
|
17118
17118
|
}
|
17119
17119
|
case KG_DYNAMIC_QUERY_OPERATOR.GT: {
|
17120
|
-
let I =
|
17120
|
+
let I = O, L = "";
|
17121
17121
|
switch (!0) {
|
17122
17122
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(I): {
|
17123
17123
|
L = M.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
@@ -17134,11 +17134,11 @@ class KgUtil {
|
|
17134
17134
|
default:
|
17135
17135
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
17136
17136
|
}
|
17137
|
-
|
17137
|
+
O = ` AND (${v} >= '${L}')`;
|
17138
17138
|
break;
|
17139
17139
|
}
|
17140
17140
|
case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
|
17141
|
-
let I =
|
17141
|
+
let I = O;
|
17142
17142
|
switch (!0) {
|
17143
17143
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(I):
|
17144
17144
|
break;
|
@@ -17151,12 +17151,12 @@ class KgUtil {
|
|
17151
17151
|
default:
|
17152
17152
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
17153
17153
|
}
|
17154
|
-
|
17154
|
+
O = ` AND (${v} >= '${I}')`;
|
17155
17155
|
break;
|
17156
17156
|
}
|
17157
17157
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
17158
17158
|
default: {
|
17159
|
-
let I =
|
17159
|
+
let I = O, L = "";
|
17160
17160
|
switch (!0) {
|
17161
17161
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(I): {
|
17162
17162
|
L = M.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
@@ -17173,47 +17173,47 @@ class KgUtil {
|
|
17173
17173
|
default:
|
17174
17174
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
17175
17175
|
}
|
17176
|
-
|
17176
|
+
O = ` AND (${v} >= '${I}' AND ${v} < '${L}')`;
|
17177
17177
|
break;
|
17178
17178
|
}
|
17179
17179
|
}
|
17180
|
-
u[
|
17180
|
+
u[y] = O;
|
17181
17181
|
break;
|
17182
17182
|
}
|
17183
17183
|
case (!!n && isArray$1(p) && p.length === 2 && n.isDayjs(p[0]) && n.isDayjs(p[1])): {
|
17184
|
-
const M = p[0],
|
17185
|
-
let I = this.parseParamFromDayJS(
|
17184
|
+
const M = p[0], O = p[1];
|
17185
|
+
let I = this.parseParamFromDayJS(y, M, r), L = "", w = "";
|
17186
17186
|
switch (!0) {
|
17187
17187
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(I): {
|
17188
|
-
L =
|
17188
|
+
L = O.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
17189
17189
|
break;
|
17190
17190
|
}
|
17191
17191
|
case /\d\d-\d\d-\d\d/.test(I): {
|
17192
|
-
L =
|
17192
|
+
L = O.add(1, "day").format("YYYY-MM-DD");
|
17193
17193
|
break;
|
17194
17194
|
}
|
17195
17195
|
case /\d\d:\d\d:\d\d/.test(I): {
|
17196
|
-
I = M.format("1970-01-01 HH:mm:ss"), L =
|
17196
|
+
I = M.format("1970-01-01 HH:mm:ss"), L = O.add(1, "second").format("1970-01-01 HH:mm:ss");
|
17197
17197
|
break;
|
17198
17198
|
}
|
17199
17199
|
}
|
17200
|
-
L ? w = ` AND (${v} >= '${I}' AND ${v} < '${L}')` : w = ` AND (${v} >= '${I}')`, u[
|
17200
|
+
L ? w = ` AND (${v} >= '${I}' AND ${v} < '${L}')` : w = ` AND (${v} >= '${I}')`, u[y] = w;
|
17201
17201
|
break;
|
17202
17202
|
}
|
17203
17203
|
case Array.isArray(p): {
|
17204
17204
|
if (p.length === 0) {
|
17205
|
-
u[
|
17205
|
+
u[y] = void 0;
|
17206
17206
|
break;
|
17207
17207
|
}
|
17208
|
-
const M = p.map((
|
17209
|
-
u[
|
17208
|
+
const M = p.map((O) => `N'${String(O)}'`).join(", ");
|
17209
|
+
u[y] = ` AND (${v} IN (${M}))`;
|
17210
17210
|
break;
|
17211
17211
|
}
|
17212
17212
|
case isObjectLike(p):
|
17213
17213
|
throw KgLogger.error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.", { value: p }), new Error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.");
|
17214
17214
|
case typeof p == "string": {
|
17215
17215
|
if (p.trim() === "") {
|
17216
|
-
u[
|
17216
|
+
u[y] = void 0;
|
17217
17217
|
break;
|
17218
17218
|
}
|
17219
17219
|
let M = this.parseParamFromString(p);
|
@@ -17240,7 +17240,7 @@ class KgUtil {
|
|
17240
17240
|
break;
|
17241
17241
|
}
|
17242
17242
|
}
|
17243
|
-
u[
|
17243
|
+
u[y] = M;
|
17244
17244
|
break;
|
17245
17245
|
}
|
17246
17246
|
case typeof p == "number": {
|
@@ -17272,7 +17272,7 @@ class KgUtil {
|
|
17272
17272
|
break;
|
17273
17273
|
}
|
17274
17274
|
}
|
17275
|
-
u[
|
17275
|
+
u[y] = M;
|
17276
17276
|
break;
|
17277
17277
|
}
|
17278
17278
|
case typeof p == "boolean": {
|
@@ -17288,28 +17288,37 @@ class KgUtil {
|
|
17288
17288
|
break;
|
17289
17289
|
}
|
17290
17290
|
}
|
17291
|
-
u[
|
17291
|
+
u[y] = M;
|
17292
17292
|
break;
|
17293
17293
|
}
|
17294
17294
|
default: {
|
17295
|
-
u[
|
17295
|
+
u[y] = p;
|
17296
17296
|
break;
|
17297
17297
|
}
|
17298
17298
|
}
|
17299
17299
|
});
|
17300
17300
|
let g = `WHERE 1 = 1${reduce(
|
17301
17301
|
u,
|
17302
|
-
(
|
17302
|
+
(y, _, p) => i.includes(p) || !_ ? y : y + _,
|
17303
17303
|
""
|
17304
17304
|
)}`;
|
17305
17305
|
g = encodeURIComponent(g);
|
17306
|
-
let
|
17306
|
+
let E = "";
|
17307
17307
|
if (s.column) {
|
17308
|
-
const
|
17308
|
+
const y = r && l ? l.store.getVarProfileDetail(r, s.column) : null;
|
17309
17309
|
let _ = s.column;
|
17310
|
-
|
17310
|
+
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");
|
17311
|
+
}
|
17312
|
+
if (!isNil(s.pageNo)) {
|
17313
|
+
const y = Number.parseInt(s.pageNo);
|
17314
|
+
if (Number.isNaN(y) || y <= 0)
|
17315
|
+
throw new Error("\u53C2\u6570 pageNo \u975E\u6CD5.");
|
17316
|
+
const _ = Number.parseInt(s.pageSize);
|
17317
|
+
if (Number.isNaN(_) || _ <= 0)
|
17318
|
+
throw new Error("\u53C2\u6570 pageSize \u975E\u6CD5.");
|
17319
|
+
E += ` OFFSET ${(y - 1) * _} ROWS FETCH NEXT ${_} ROWS ONLY`;
|
17311
17320
|
}
|
17312
|
-
return
|
17321
|
+
return E = encodeURIComponent(E), { sql: `${g} ${E}`, whereSql: g, orderBySql: E };
|
17313
17322
|
}
|
17314
17323
|
static parseParamFromString(t) {
|
17315
17324
|
var n, s, i, o, l;
|
@@ -17336,7 +17345,7 @@ class KgUtil {
|
|
17336
17345
|
if (!i)
|
17337
17346
|
return r;
|
17338
17347
|
switch ((() => {
|
17339
|
-
const l = i.ctrl_typ, c = i.prf_ctrl_typ, u = i.crt_ctrl_typ, d = i.upt_ctrl_typ, g = i.cpy_ctrl_typ,
|
17348
|
+
const l = i.ctrl_typ, c = i.prf_ctrl_typ, u = i.crt_ctrl_typ, d = i.upt_ctrl_typ, g = i.cpy_ctrl_typ, E = i.del_ctrl_typ;
|
17340
17349
|
switch (!0) {
|
17341
17350
|
case s.isRetrieving.value:
|
17342
17351
|
return c || l;
|
@@ -17347,7 +17356,7 @@ class KgUtil {
|
|
17347
17356
|
case n.isCopying.value:
|
17348
17357
|
return g || l;
|
17349
17358
|
case n.isDeleting.value:
|
17350
|
-
return
|
17359
|
+
return E || l;
|
17351
17360
|
}
|
17352
17361
|
return l;
|
17353
17362
|
})()) {
|
@@ -17526,23 +17535,27 @@ function httpClient() {
|
|
17526
17535
|
throw new Error("\u6CA1\u6709\u8BBE\u7F6E httpClient \u5B9E\u4F8B.");
|
17527
17536
|
return _httpClient.request = new Proxy(_httpClient.request, {
|
17528
17537
|
apply(e, t, r) {
|
17529
|
-
var s;
|
17538
|
+
var s, i, o, l;
|
17530
17539
|
const a = r[0], n = r[1];
|
17531
17540
|
if (n != null && n.dynamicQueryOperators) {
|
17532
17541
|
if (!(n != null && n.dayjs))
|
17533
17542
|
throw new Error("\u53C2\u6570 options.dayjs \u4E3A\u7A7A. \u5F53\u524D\u53C2\u6570 options.dynamicQueryOperators \u4E0D\u4E3A\u7A7A, \u6240\u4EE5\u53C2\u6570 options.dayjs \u4E5F\u4E0D\u80FD\u4E3A\u7A7A.");
|
17534
|
-
let
|
17535
|
-
a.method === "GET" || a.method === "POST" && !a.data && a.params ?
|
17536
|
-
const { sql:
|
17543
|
+
let c = {};
|
17544
|
+
a.method === "GET" || a.method === "POST" && !a.data && a.params ? c = a.params : a.method === "POST" && a.data && (c = a.data);
|
17545
|
+
const { sql: u, whereSql: d, orderBySql: g } = KgUtil.getQuerySql(c, null, n == null ? void 0 : n.dynamicQueryOperators, n == null ? void 0 : n.dayjs);
|
17537
17546
|
a.headers = {
|
17538
17547
|
...(s = a.headers) != null ? s : {},
|
17539
17548
|
[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY]: !0,
|
17540
|
-
[KG_HTTP_HEADERS.KG_QUERY_SQL]:
|
17541
|
-
[KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL]:
|
17542
|
-
[KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]:
|
17549
|
+
[KG_HTTP_HEADERS.KG_QUERY_SQL]: u,
|
17550
|
+
[KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL]: d,
|
17551
|
+
[KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]: g
|
17543
17552
|
};
|
17544
17553
|
}
|
17545
|
-
return
|
17554
|
+
return (i = a.headers) != null && i[KG_HTTP_HEADERS.KG_QUERY_SQL] && (a.headers[KG_HTTP_HEADERS.KG_QUERY_SQL] = encodeURIComponent(decodeURIComponent(String(a.headers[KG_HTTP_HEADERS.KG_QUERY_SQL])))), (o = a.headers) != null && o[KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL] && (a.headers[KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL] = encodeURIComponent(
|
17555
|
+
decodeURIComponent(String(a.headers[KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL]))
|
17556
|
+
)), (l = a.headers) != null && l[KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL] && (a.headers[KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL] = encodeURIComponent(
|
17557
|
+
decodeURIComponent(String(a.headers[KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]))
|
17558
|
+
)), e.apply(t, [a, n]);
|
17546
17559
|
}
|
17547
17560
|
}), _httpClient;
|
17548
17561
|
}
|