@kengic/vue 0.13.8 → 0.13.9
Sign up to get free protection for your applications and to get access to all the features.
package/dist/kengic-vue.js
CHANGED
@@ -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", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", g = "quarter", E = "year",
|
407
|
-
var
|
408
|
-
return "[" + w + (
|
409
|
-
} }, T = function(w,
|
406
|
+
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", g = "quarter", E = "year", y = "date", p = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, m = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
|
407
|
+
var O = ["th", "st", "nd", "rd"], R = w % 100;
|
408
|
+
return "[" + w + (O[(R - 20) % 10] || O[R] || O[0]) + "]";
|
409
|
+
} }, T = function(w, O, R) {
|
410
410
|
var $ = String(w);
|
411
|
-
return !$ || $.length >=
|
411
|
+
return !$ || $.length >= O ? w : "" + Array(O + 1 - $.length).join(R) + w;
|
412
412
|
}, k = { s: T, z: function(w) {
|
413
|
-
var
|
414
|
-
return (
|
415
|
-
}, m: function w(
|
416
|
-
if (
|
417
|
-
return -w(R,
|
418
|
-
var $ = 12 * (R.year() -
|
413
|
+
var O = -w.utcOffset(), R = Math.abs(O), $ = Math.floor(R / 60), P = R % 60;
|
414
|
+
return (O <= 0 ? "+" : "-") + T($, 2, "0") + ":" + T(P, 2, "0");
|
415
|
+
}, m: function w(O, R) {
|
416
|
+
if (O.date() < R.date())
|
417
|
+
return -w(R, O);
|
418
|
+
var $ = 12 * (R.year() - O.year()) + (R.month() - O.month()), P = O.clone().add($, d), G = R - P < 0, N = O.clone().add($ + (G ? -1 : 1), d);
|
419
419
|
return +(-($ + (R - P) / (G ? P - N : N - P)) || 0);
|
420
420
|
}, a: function(w) {
|
421
421
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
422
422
|
}, p: function(w) {
|
423
|
-
return { M: d, y: E, w: u, d: c, D:
|
423
|
+
return { M: d, y: E, w: u, d: c, D: y, h: i, m: o, s: l, ms: s, Q: g }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
424
424
|
}, u: function(w) {
|
425
425
|
return w === void 0;
|
426
426
|
} }, I = "en", C = {};
|
427
|
-
C[I] =
|
427
|
+
C[I] = b;
|
428
428
|
var V = "$isDayjsObject", A = function(w) {
|
429
429
|
return w instanceof L || !(!w || !w[V]);
|
430
|
-
},
|
430
|
+
}, D = function w(O, R, $) {
|
431
431
|
var P;
|
432
|
-
if (!
|
432
|
+
if (!O)
|
433
433
|
return I;
|
434
|
-
if (typeof
|
435
|
-
var G =
|
434
|
+
if (typeof O == "string") {
|
435
|
+
var G = O.toLowerCase();
|
436
436
|
C[G] && (P = G), R && (C[G] = R, P = G);
|
437
|
-
var N =
|
437
|
+
var N = O.split("-");
|
438
438
|
if (!P && N.length > 1)
|
439
439
|
return w(N[0]);
|
440
440
|
} else {
|
441
|
-
var x =
|
442
|
-
C[x] =
|
441
|
+
var x = O.name;
|
442
|
+
C[x] = O, P = x;
|
443
443
|
}
|
444
444
|
return !$ && P && (I = P), P || !$ && I;
|
445
|
-
}, M = function(w,
|
445
|
+
}, M = function(w, O) {
|
446
446
|
if (A(w))
|
447
447
|
return w.clone();
|
448
|
-
var R = typeof
|
448
|
+
var R = typeof O == "object" ? O : {};
|
449
449
|
return R.date = w, R.args = arguments, new L(R);
|
450
450
|
}, K = k;
|
451
|
-
K.l =
|
452
|
-
return M(w, { locale:
|
451
|
+
K.l = D, K.i = A, K.w = function(w, O) {
|
452
|
+
return M(w, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
453
453
|
};
|
454
454
|
var L = function() {
|
455
455
|
function w(R) {
|
456
|
-
this.$L =
|
456
|
+
this.$L = D(R.locale, null, !0), this.parse(R), this.$x = this.$x || R.x || {}, this[V] = !0;
|
457
457
|
}
|
458
|
-
var
|
459
|
-
return
|
458
|
+
var O = w.prototype;
|
459
|
+
return O.parse = function(R) {
|
460
460
|
this.$d = function($) {
|
461
461
|
var P = $.date, G = $.utc;
|
462
462
|
if (P === null)
|
@@ -466,7 +466,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
466
466
|
if (P instanceof Date)
|
467
467
|
return new Date(P);
|
468
468
|
if (typeof P == "string" && !/Z$/i.test(P)) {
|
469
|
-
var N = P.match(
|
469
|
+
var N = P.match(_);
|
470
470
|
if (N) {
|
471
471
|
var x = N[2] - 1 || 0, Y = (N[7] || "0").substring(0, 3);
|
472
472
|
return G ? new Date(Date.UTC(N[1], x, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, Y)) : new Date(N[1], x, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, Y);
|
@@ -474,27 +474,27 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
474
474
|
}
|
475
475
|
return new Date(P);
|
476
476
|
}(R), this.init();
|
477
|
-
},
|
477
|
+
}, O.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
|
+
}, O.$utils = function() {
|
481
481
|
return K;
|
482
|
-
},
|
483
|
-
return this.$d.toString() !==
|
484
|
-
},
|
482
|
+
}, O.isValid = function() {
|
483
|
+
return this.$d.toString() !== p;
|
484
|
+
}, O.isSame = function(R, $) {
|
485
485
|
var P = M(R);
|
486
486
|
return this.startOf($) <= P && P <= this.endOf($);
|
487
|
-
},
|
487
|
+
}, O.isAfter = function(R, $) {
|
488
488
|
return M(R) < this.startOf($);
|
489
|
-
},
|
489
|
+
}, O.isBefore = function(R, $) {
|
490
490
|
return this.endOf($) < M(R);
|
491
|
-
},
|
491
|
+
}, O.$g = function(R, $, P) {
|
492
492
|
return K.u(R) ? this[$] : this.set(P, R);
|
493
|
-
},
|
493
|
+
}, O.unix = function() {
|
494
494
|
return Math.floor(this.valueOf() / 1e3);
|
495
|
-
},
|
495
|
+
}, O.valueOf = function() {
|
496
496
|
return this.$d.getTime();
|
497
|
-
},
|
497
|
+
}, O.startOf = function(R, $) {
|
498
498
|
var P = this, G = !!K.u($) || $, N = K.p(R), x = function(ge, ae) {
|
499
499
|
var F = K.w(P.$u ? Date.UTC(P.$y, ae, ge) : new Date(P.$y, ae, ge), P);
|
500
500
|
return G ? F : F.endOf(c);
|
@@ -510,7 +510,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
510
510
|
var le = this.$locale().weekStart || 0, me = (q < le ? q + 7 : q) - le;
|
511
511
|
return x(G ? J - me : J + (6 - me), X);
|
512
512
|
case c:
|
513
|
-
case
|
513
|
+
case y:
|
514
514
|
return Y(ee + "Hours", 0);
|
515
515
|
case i:
|
516
516
|
return Y(ee + "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
|
+
}, O.endOf = function(R) {
|
525
525
|
return this.startOf(R, !1);
|
526
|
-
},
|
527
|
-
var P, G = K.p(R), N = "set" + (this.$u ? "UTC" : ""), x = (P = {}, P[c] = N + "Date", P[
|
526
|
+
}, O.$set = function(R, $) {
|
527
|
+
var P, G = K.p(R), N = "set" + (this.$u ? "UTC" : ""), x = (P = {}, P[c] = N + "Date", P[y] = N + "Date", P[d] = N + "Month", P[E] = N + "FullYear", P[i] = N + "Hours", P[o] = N + "Minutes", P[l] = N + "Seconds", P[s] = N + "Milliseconds", P)[G], Y = G === c ? this.$D + ($ - this.$W) : $;
|
528
528
|
if (G === d || G === E) {
|
529
|
-
var q = this.clone().set(
|
530
|
-
q.$d[x](Y), q.init(), this.$d = q.set(
|
529
|
+
var q = this.clone().set(y, 1);
|
530
|
+
q.$d[x](Y), q.init(), this.$d = q.set(y, Math.min(this.$D, q.daysInMonth())).$d;
|
531
531
|
} else
|
532
532
|
x && this.$d[x](Y);
|
533
533
|
return this.init(), this;
|
534
|
-
},
|
534
|
+
}, O.set = function(R, $) {
|
535
535
|
return this.clone().$set(R, $);
|
536
|
-
},
|
536
|
+
}, O.get = function(R) {
|
537
537
|
return this[K.p(R)]();
|
538
|
-
},
|
538
|
+
}, O.add = function(R, $) {
|
539
539
|
var P, G = this;
|
540
540
|
R = Number(R);
|
541
541
|
var N = K.p($), x = function(X) {
|
@@ -552,12 +552,12 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
552
552
|
return x(7);
|
553
553
|
var Y = (P = {}, P[o] = a, P[i] = n, P[l] = r, P)[N] || 1, q = this.$d.getTime() + R * Y;
|
554
554
|
return K.w(q, this);
|
555
|
-
},
|
555
|
+
}, O.subtract = function(R, $) {
|
556
556
|
return this.add(-1 * R, $);
|
557
|
-
},
|
557
|
+
}, O.format = function(R) {
|
558
558
|
var $ = this, P = this.$locale();
|
559
559
|
if (!this.isValid())
|
560
|
-
return P.invalidDate ||
|
560
|
+
return P.invalidDate || p;
|
561
561
|
var G = R || "YYYY-MM-DDTHH:mm:ssZ", N = K.z(this), x = this.$H, Y = this.$m, q = this.$M, X = P.weekdays, J = P.months, ee = P.meridiem, le = function(ae, F, U, Q) {
|
562
562
|
return ae && (ae[F] || ae($, G)) || U[F].slice(0, Q);
|
563
563
|
}, me = function(ae) {
|
@@ -621,9 +621,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
621
621
|
return null;
|
622
622
|
}(ae) || N.replace(":", "");
|
623
623
|
});
|
624
|
-
},
|
624
|
+
}, O.utcOffset = function() {
|
625
625
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
626
|
-
},
|
626
|
+
}, O.diff = function(R, $, P) {
|
627
627
|
var G, N = this, x = K.p($), Y = M(R), q = (Y.utcOffset() - this.utcOffset()) * a, X = this - Y, J = function() {
|
628
628
|
return K.m(N, Y);
|
629
629
|
};
|
@@ -656,34 +656,34 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
656
656
|
G = X;
|
657
657
|
}
|
658
658
|
return P ? G : K.a(G);
|
659
|
-
},
|
659
|
+
}, O.daysInMonth = function() {
|
660
660
|
return this.endOf(d).$D;
|
661
|
-
},
|
661
|
+
}, O.$locale = function() {
|
662
662
|
return C[this.$L];
|
663
|
-
},
|
663
|
+
}, O.locale = function(R, $) {
|
664
664
|
if (!R)
|
665
665
|
return this.$L;
|
666
|
-
var P = this.clone(), G =
|
666
|
+
var P = this.clone(), G = D(R, $, !0);
|
667
667
|
return G && (P.$L = G), P;
|
668
|
-
},
|
668
|
+
}, O.clone = function() {
|
669
669
|
return K.w(this.$d, this);
|
670
|
-
},
|
670
|
+
}, O.toDate = function() {
|
671
671
|
return new Date(this.valueOf());
|
672
|
-
},
|
672
|
+
}, O.toJSON = function() {
|
673
673
|
return this.isValid() ? this.toISOString() : null;
|
674
|
-
},
|
674
|
+
}, O.toISOString = function() {
|
675
675
|
return this.$d.toISOString();
|
676
|
-
},
|
676
|
+
}, O.toString = function() {
|
677
677
|
return this.$d.toUTCString();
|
678
678
|
}, w;
|
679
679
|
}(), H = L.prototype;
|
680
|
-
return M.prototype = H, [["$ms", s], ["$s", l], ["$m", o], ["$H", i], ["$W", c], ["$M", d], ["$y", E], ["$D",
|
681
|
-
H[w[1]] = function(
|
682
|
-
return this.$g(
|
680
|
+
return M.prototype = H, [["$ms", s], ["$s", l], ["$m", o], ["$H", i], ["$W", c], ["$M", d], ["$y", E], ["$D", y]].forEach(function(w) {
|
681
|
+
H[w[1]] = function(O) {
|
682
|
+
return this.$g(O, w[0], w[1]);
|
683
683
|
};
|
684
|
-
}), M.extend = function(w,
|
685
|
-
return w.$i || (w(
|
686
|
-
}, M.locale =
|
684
|
+
}), M.extend = function(w, O) {
|
685
|
+
return w.$i || (w(O, L, M), w.$i = !0), M;
|
686
|
+
}, M.locale = D, M.isDayjs = A, M.unix = function(w) {
|
687
687
|
return M(1e3 * w);
|
688
688
|
}, M.en = C[I], M.Ls = C, M.p = {}, M;
|
689
689
|
});
|
@@ -726,27 +726,27 @@ function filesize(e, {
|
|
726
726
|
output: d = STRING,
|
727
727
|
fullform: g = !1,
|
728
728
|
fullforms: E = [],
|
729
|
-
exponent:
|
730
|
-
roundingMethod:
|
731
|
-
precision:
|
729
|
+
exponent: y = -1,
|
730
|
+
roundingMethod: p = ROUND,
|
731
|
+
precision: _ = 0
|
732
732
|
} = {}) {
|
733
|
-
let m =
|
733
|
+
let m = y, b = Number(e), T = [], k = 0, I = EMPTY;
|
734
734
|
u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
|
735
|
-
const C = a === 10 ? 1e3 : 1024, V = g === !0, A =
|
735
|
+
const C = a === 10 ? 1e3 : 1024, V = g === !0, A = b < 0, D = Math[p];
|
736
736
|
if (typeof e != "bigint" && isNaN(e))
|
737
737
|
throw new TypeError(INVALID_NUMBER);
|
738
|
-
if (typeof
|
738
|
+
if (typeof D !== FUNCTION)
|
739
739
|
throw new TypeError(INVALID_ROUND);
|
740
|
-
if (A && (
|
740
|
+
if (A && (b = -b), (m === -1 || isNaN(m)) && (m = Math.floor(Math.log(b) / Math.log(C)), m < 0 && (m = 0)), m > 8 && (_ > 0 && (_ += 8 - m), m = 8), d === EXPONENT)
|
741
741
|
return m;
|
742
|
-
if (
|
742
|
+
if (b === 0)
|
743
743
|
T[0] = 0, I = T[1] = STRINGS.symbol[u][t ? BITS : BYTES][m];
|
744
744
|
else {
|
745
|
-
k =
|
745
|
+
k = b / (a === 2 ? Math.pow(2, m * 10) : Math.pow(1e3, m)), t && (k = k * 8, k >= C && m < 8 && (k = k / C, m++));
|
746
746
|
const M = Math.pow(10, m > 0 ? n : 0);
|
747
|
-
T[0] =
|
747
|
+
T[0] = D(k * M) / M, T[0] === C && m < 8 && y === -1 && (T[0] = 1, m++), I = T[1] = a === 10 && m === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][m];
|
748
748
|
}
|
749
|
-
if (A && (T[0] = -T[0]),
|
749
|
+
if (A && (T[0] = -T[0]), _ > 0 && (T[0] = T[0].toPrecision(_)), T[1] = c[T[1]] || T[1], s === !0 ? T[0] = T[0].toLocaleString() : s.length > 0 ? T[0] = T[0].toLocaleString(s, l) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
|
750
750
|
const M = o || PERIOD, K = T[0].toString().split(M), L = K[1] || EMPTY, H = L.length, w = n - H;
|
751
751
|
T[0] = `${K[0]}${M}${L.padEnd(H + w, ZERO)}`;
|
752
752
|
}
|
@@ -1799,14 +1799,14 @@ function baseClone(e, t, r, a, n, s) {
|
|
1799
1799
|
var E = s.get(e);
|
1800
1800
|
if (E)
|
1801
1801
|
return E;
|
1802
|
-
s.set(e, l), isSet$1(e) ? e.forEach(function(
|
1803
|
-
l.add(baseClone(
|
1804
|
-
}) : isMap$1(e) && e.forEach(function(
|
1805
|
-
l.set(m, baseClone(
|
1802
|
+
s.set(e, l), isSet$1(e) ? e.forEach(function(_) {
|
1803
|
+
l.add(baseClone(_, t, r, _, e, s));
|
1804
|
+
}) : isMap$1(e) && e.forEach(function(_, m) {
|
1805
|
+
l.set(m, baseClone(_, t, r, m, e, s));
|
1806
1806
|
});
|
1807
|
-
var
|
1808
|
-
return arrayEach(
|
1809
|
-
|
1807
|
+
var y = c ? i ? getAllKeysIn : getAllKeys : i ? keysIn : keys$1, p = u ? void 0 : y(e);
|
1808
|
+
return arrayEach(p || e, function(_, m) {
|
1809
|
+
p && (m = _, _ = e[m]), assignValue(l, m, baseClone(_, t, r, m, e, s));
|
1810
1810
|
}), l;
|
1811
1811
|
}
|
1812
1812
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
@@ -1853,24 +1853,24 @@ function equalArrays(e, t, r, a, n, s) {
|
|
1853
1853
|
return c == t && u == e;
|
1854
1854
|
var d = -1, g = !0, E = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
1855
1855
|
for (s.set(e, t), s.set(t, e); ++d < o; ) {
|
1856
|
-
var
|
1856
|
+
var y = e[d], p = t[d];
|
1857
1857
|
if (a)
|
1858
|
-
var
|
1859
|
-
if (
|
1860
|
-
if (
|
1858
|
+
var _ = l ? a(p, y, d, t, e, s) : a(y, p, d, e, t, s);
|
1859
|
+
if (_ !== void 0) {
|
1860
|
+
if (_)
|
1861
1861
|
continue;
|
1862
1862
|
g = !1;
|
1863
1863
|
break;
|
1864
1864
|
}
|
1865
1865
|
if (E) {
|
1866
|
-
if (!arraySome(t, function(m,
|
1867
|
-
if (!cacheHas(E,
|
1868
|
-
return E.push(
|
1866
|
+
if (!arraySome(t, function(m, b) {
|
1867
|
+
if (!cacheHas(E, b) && (y === m || n(y, m, r, a, s)))
|
1868
|
+
return E.push(b);
|
1869
1869
|
})) {
|
1870
1870
|
g = !1;
|
1871
1871
|
break;
|
1872
1872
|
}
|
1873
|
-
} else if (!(
|
1873
|
+
} else if (!(y === p || n(y, p, r, a, s))) {
|
1874
1874
|
g = !1;
|
1875
1875
|
break;
|
1876
1876
|
}
|
@@ -1935,27 +1935,27 @@ function equalObjects(e, t, r, a, n, s) {
|
|
1935
1935
|
if (!(l ? g in t : hasOwnProperty$1.call(t, g)))
|
1936
1936
|
return !1;
|
1937
1937
|
}
|
1938
|
-
var E = s.get(e),
|
1939
|
-
if (E &&
|
1940
|
-
return E == t &&
|
1941
|
-
var
|
1938
|
+
var E = s.get(e), y = s.get(t);
|
1939
|
+
if (E && y)
|
1940
|
+
return E == t && y == e;
|
1941
|
+
var p = !0;
|
1942
1942
|
s.set(e, t), s.set(t, e);
|
1943
|
-
for (var
|
1943
|
+
for (var _ = l; ++d < i; ) {
|
1944
1944
|
g = o[d];
|
1945
|
-
var m = e[g],
|
1945
|
+
var m = e[g], b = t[g];
|
1946
1946
|
if (a)
|
1947
|
-
var T = l ? a(
|
1948
|
-
if (!(T === void 0 ? m ===
|
1949
|
-
|
1947
|
+
var T = l ? a(b, m, g, t, e, s) : a(m, b, g, e, t, s);
|
1948
|
+
if (!(T === void 0 ? m === b || n(m, b, r, a, s) : T)) {
|
1949
|
+
p = !1;
|
1950
1950
|
break;
|
1951
1951
|
}
|
1952
|
-
|
1952
|
+
_ || (_ = g == "constructor");
|
1953
1953
|
}
|
1954
|
-
if (
|
1954
|
+
if (p && !_) {
|
1955
1955
|
var k = e.constructor, I = t.constructor;
|
1956
|
-
k != I && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof I == "function" && I instanceof I) && (
|
1956
|
+
k != I && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof I == "function" && I instanceof I) && (p = !1);
|
1957
1957
|
}
|
1958
|
-
return s.delete(e), s.delete(t),
|
1958
|
+
return s.delete(e), s.delete(t), p;
|
1959
1959
|
}
|
1960
1960
|
var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
|
1961
1961
|
function baseIsEqualDeep(e, t, r, a, n, s) {
|
@@ -1970,10 +1970,10 @@ function baseIsEqualDeep(e, t, r, a, n, s) {
|
|
1970
1970
|
if (g && !u)
|
1971
1971
|
return s || (s = new Stack()), l || isTypedArray$1(e) ? equalArrays(e, t, r, a, n, s) : equalByTag(e, t, i, r, a, n, s);
|
1972
1972
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
1973
|
-
var E = u && hasOwnProperty.call(e, "__wrapped__"),
|
1974
|
-
if (E ||
|
1975
|
-
var
|
1976
|
-
return s || (s = new Stack()), n(
|
1973
|
+
var E = u && hasOwnProperty.call(e, "__wrapped__"), y = d && hasOwnProperty.call(t, "__wrapped__");
|
1974
|
+
if (E || y) {
|
1975
|
+
var p = E ? e.value() : e, _ = y ? t.value() : t;
|
1976
|
+
return s || (s = new Stack()), n(p, _, r, a, s);
|
1977
1977
|
}
|
1978
1978
|
}
|
1979
1979
|
return g ? (s || (s = new Stack()), equalObjects(e, t, r, a, n, s)) : !1;
|
@@ -2109,37 +2109,37 @@ function debounce(e, t, r) {
|
|
2109
2109
|
var V = a, A = n;
|
2110
2110
|
return a = n = void 0, c = C, l = e.apply(A, V), l;
|
2111
2111
|
}
|
2112
|
-
function
|
2112
|
+
function y(C) {
|
2113
2113
|
return c = C, o = setTimeout(m, t), u ? E(C) : l;
|
2114
2114
|
}
|
2115
|
-
function _(C) {
|
2116
|
-
var V = C - i, A = C - c, O = t - V;
|
2117
|
-
return d ? nativeMin$1(O, s - A) : O;
|
2118
|
-
}
|
2119
2115
|
function p(C) {
|
2116
|
+
var V = C - i, A = C - c, D = t - V;
|
2117
|
+
return d ? nativeMin$1(D, s - A) : D;
|
2118
|
+
}
|
2119
|
+
function _(C) {
|
2120
2120
|
var V = C - i, A = C - c;
|
2121
2121
|
return i === void 0 || V >= t || V < 0 || d && A >= s;
|
2122
2122
|
}
|
2123
2123
|
function m() {
|
2124
2124
|
var C = now$1();
|
2125
|
-
if (
|
2126
|
-
return
|
2127
|
-
o = setTimeout(m,
|
2125
|
+
if (_(C))
|
2126
|
+
return b(C);
|
2127
|
+
o = setTimeout(m, p(C));
|
2128
2128
|
}
|
2129
|
-
function
|
2129
|
+
function b(C) {
|
2130
2130
|
return o = void 0, g && a ? E(C) : (a = n = void 0, l);
|
2131
2131
|
}
|
2132
2132
|
function T() {
|
2133
2133
|
o !== void 0 && clearTimeout(o), c = 0, a = i = n = o = void 0;
|
2134
2134
|
}
|
2135
2135
|
function k() {
|
2136
|
-
return o === void 0 ? l :
|
2136
|
+
return o === void 0 ? l : b(now$1());
|
2137
2137
|
}
|
2138
2138
|
function I() {
|
2139
|
-
var C = now$1(), V =
|
2139
|
+
var C = now$1(), V = _(C);
|
2140
2140
|
if (a = arguments, n = this, i = C, V) {
|
2141
2141
|
if (o === void 0)
|
2142
|
-
return
|
2142
|
+
return y(i);
|
2143
2143
|
if (d)
|
2144
2144
|
return clearTimeout(o), o = setTimeout(m, t), E(i);
|
2145
2145
|
}
|
@@ -2232,14 +2232,14 @@ function baseIntersection(e, t, r) {
|
|
2232
2232
|
var d = -1, g = o[0];
|
2233
2233
|
e:
|
2234
2234
|
for (; ++d < n && c.length < i; ) {
|
2235
|
-
var E = u[d],
|
2236
|
-
if (E = r || E !== 0 ? E : 0, !(g ? cacheHas(g,
|
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 (l = s; --l; ) {
|
2238
|
-
var
|
2239
|
-
if (!(
|
2238
|
+
var p = o[l];
|
2239
|
+
if (!(p ? cacheHas(p, y) : a(e[l], 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;
|
@@ -3128,12 +3128,12 @@ setTwoToneColor("#1890ff");
|
|
3128
3128
|
var Icon$1 = function(t, r) {
|
3129
3129
|
var a, n = _objectSpread$k({}, t, r.attrs), s = n.class, l = n.icon, o = n.spin, i = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, g = _objectWithoutProperties(n, _excluded), E = (a = {
|
3130
3130
|
anticon: !0
|
3131
|
-
}, _defineProperty$k(a, "anticon-".concat(l.name), Boolean(l.name)), _defineProperty$k(a, s, s), a),
|
3132
|
-
|
3133
|
-
var
|
3131
|
+
}, _defineProperty$k(a, "anticon-".concat(l.name), Boolean(l.name)), _defineProperty$k(a, s, s), a), y = o === "" || !!o || l.name === "loading" ? "anticon-spin" : "", p = c;
|
3132
|
+
p === void 0 && d && (p = -1, g.tabindex = p);
|
3133
|
+
var _ = i ? {
|
3134
3134
|
msTransform: "rotate(".concat(i, "deg)"),
|
3135
3135
|
transform: "rotate(".concat(i, "deg)")
|
3136
|
-
} : void 0, m = normalizeTwoToneColors(u),
|
3136
|
+
} : void 0, m = normalizeTwoToneColors(u), b = _slicedToArray(m, 2), T = b[0], k = b[1];
|
3137
3137
|
return createVNode("span", _objectSpread$k({
|
3138
3138
|
role: "img",
|
3139
3139
|
"aria-label": l.name
|
@@ -3141,11 +3141,11 @@ var Icon$1 = function(t, r) {
|
|
3141
3141
|
onClick: d,
|
3142
3142
|
class: E
|
3143
3143
|
}), [createVNode(VueIcon, {
|
3144
|
-
class:
|
3144
|
+
class: y,
|
3145
3145
|
icon: l,
|
3146
3146
|
primaryColor: T,
|
3147
3147
|
secondaryColor: k,
|
3148
|
-
style:
|
3148
|
+
style: _
|
3149
3149
|
}, null)]);
|
3150
3150
|
};
|
3151
3151
|
Icon$1.props = {
|
@@ -3953,39 +3953,39 @@ function iconToSVG(e, t) {
|
|
3953
3953
|
height: r.height
|
3954
3954
|
};
|
3955
3955
|
let s = r.body;
|
3956
|
-
[r, a].forEach((
|
3957
|
-
const
|
3958
|
-
let
|
3959
|
-
|
3956
|
+
[r, a].forEach((y) => {
|
3957
|
+
const p = [], _ = y.hFlip, m = y.vFlip;
|
3958
|
+
let b = y.rotate;
|
3959
|
+
_ ? m ? b += 2 : (p.push(
|
3960
3960
|
"translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
|
3961
|
-
),
|
3961
|
+
), p.push("scale(-1 1)"), n.top = n.left = 0) : m && (p.push(
|
3962
3962
|
"translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
|
3963
|
-
),
|
3963
|
+
), p.push("scale(1 -1)"), n.top = n.left = 0);
|
3964
3964
|
let T;
|
3965
|
-
switch (
|
3965
|
+
switch (b < 0 && (b -= Math.floor(b / 4) * 4), b = b % 4, b) {
|
3966
3966
|
case 1:
|
3967
|
-
T = n.height / 2 + n.top,
|
3967
|
+
T = n.height / 2 + n.top, p.unshift(
|
3968
3968
|
"rotate(90 " + T.toString() + " " + T.toString() + ")"
|
3969
3969
|
);
|
3970
3970
|
break;
|
3971
3971
|
case 2:
|
3972
|
-
|
3972
|
+
p.unshift(
|
3973
3973
|
"rotate(180 " + (n.width / 2 + n.left).toString() + " " + (n.height / 2 + n.top).toString() + ")"
|
3974
3974
|
);
|
3975
3975
|
break;
|
3976
3976
|
case 3:
|
3977
|
-
T = n.width / 2 + n.left,
|
3977
|
+
T = n.width / 2 + n.left, p.unshift(
|
3978
3978
|
"rotate(-90 " + T.toString() + " " + T.toString() + ")"
|
3979
3979
|
);
|
3980
3980
|
break;
|
3981
3981
|
}
|
3982
|
-
|
3982
|
+
b % 2 === 1 && (n.left !== n.top && (T = n.left, n.left = n.top, n.top = T), n.width !== n.height && (T = n.width, n.width = n.height, n.height = T)), p.length && (s = '<g transform="' + p.join(" ") + '">' + s + "</g>");
|
3983
3983
|
});
|
3984
3984
|
const l = a.width, o = a.height, i = n.width, c = n.height;
|
3985
3985
|
let u, d;
|
3986
3986
|
l === null ? (d = o === null ? "1em" : o === "auto" ? c : o, u = calculateSize(d, i / c)) : (u = l === "auto" ? i : l, d = o === null ? calculateSize(u, c / i) : o === "auto" ? c : o);
|
3987
|
-
const g = {}, E = (
|
3988
|
-
isUnsetKeyword(
|
3987
|
+
const g = {}, E = (y, p) => {
|
3988
|
+
isUnsetKeyword(p) || (g[y] = p.toString());
|
3989
3989
|
};
|
3990
3990
|
return E("width", u), E("height", d), g.viewBox = n.left.toString() + " " + n.top.toString() + " " + i.toString() + " " + c.toString(), {
|
3991
3991
|
attributes: g,
|
@@ -4270,15 +4270,15 @@ function sendQuery(e, t, r, a) {
|
|
4270
4270
|
const o = Date.now();
|
4271
4271
|
let i = "pending", c = 0, u, d = null, g = [], E = [];
|
4272
4272
|
typeof a == "function" && E.push(a);
|
4273
|
-
function
|
4273
|
+
function y() {
|
4274
4274
|
d && (clearTimeout(d), d = null);
|
4275
4275
|
}
|
4276
|
-
function
|
4277
|
-
i === "pending" && (i = "aborted"),
|
4276
|
+
function p() {
|
4277
|
+
i === "pending" && (i = "aborted"), y(), g.forEach((C) => {
|
4278
4278
|
C.status === "pending" && (C.status = "aborted");
|
4279
4279
|
}), g = [];
|
4280
4280
|
}
|
4281
|
-
function
|
4281
|
+
function _(C, V) {
|
4282
4282
|
V && (E = []), typeof C == "function" && E.push(C);
|
4283
4283
|
}
|
4284
4284
|
function m() {
|
@@ -4288,11 +4288,11 @@ function sendQuery(e, t, r, a) {
|
|
4288
4288
|
status: i,
|
4289
4289
|
queriesSent: c,
|
4290
4290
|
queriesPending: g.length,
|
4291
|
-
subscribe:
|
4292
|
-
abort:
|
4291
|
+
subscribe: _,
|
4292
|
+
abort: p
|
4293
4293
|
};
|
4294
4294
|
}
|
4295
|
-
function
|
4295
|
+
function b() {
|
4296
4296
|
i = "failed", E.forEach((C) => {
|
4297
4297
|
C(void 0, u);
|
4298
4298
|
});
|
@@ -4303,26 +4303,26 @@ function sendQuery(e, t, r, a) {
|
|
4303
4303
|
}), g = [];
|
4304
4304
|
}
|
4305
4305
|
function k(C, V, A) {
|
4306
|
-
const
|
4306
|
+
const D = V !== "success";
|
4307
4307
|
switch (g = g.filter((M) => M !== C), i) {
|
4308
4308
|
case "pending":
|
4309
4309
|
break;
|
4310
4310
|
case "failed":
|
4311
|
-
if (
|
4311
|
+
if (D || !e.dataAfterTimeout)
|
4312
4312
|
return;
|
4313
4313
|
break;
|
4314
4314
|
default:
|
4315
4315
|
return;
|
4316
4316
|
}
|
4317
4317
|
if (V === "abort") {
|
4318
|
-
u = A,
|
4318
|
+
u = A, b();
|
4319
4319
|
return;
|
4320
4320
|
}
|
4321
|
-
if (
|
4322
|
-
u = A, g.length || (l.length ? I() :
|
4321
|
+
if (D) {
|
4322
|
+
u = A, g.length || (l.length ? I() : b());
|
4323
4323
|
return;
|
4324
4324
|
}
|
4325
|
-
if (
|
4325
|
+
if (y(), T(), !e.random) {
|
4326
4326
|
const M = e.resources.indexOf(C.resource);
|
4327
4327
|
M !== -1 && M !== e.index && (e.index = M);
|
4328
4328
|
}
|
@@ -4333,23 +4333,23 @@ function sendQuery(e, t, r, a) {
|
|
4333
4333
|
function I() {
|
4334
4334
|
if (i !== "pending")
|
4335
4335
|
return;
|
4336
|
-
|
4336
|
+
y();
|
4337
4337
|
const C = l.shift();
|
4338
4338
|
if (C === void 0) {
|
4339
4339
|
if (g.length) {
|
4340
4340
|
d = setTimeout(() => {
|
4341
|
-
|
4341
|
+
y(), i === "pending" && (T(), b());
|
4342
4342
|
}, e.timeout);
|
4343
4343
|
return;
|
4344
4344
|
}
|
4345
|
-
|
4345
|
+
b();
|
4346
4346
|
return;
|
4347
4347
|
}
|
4348
4348
|
const V = {
|
4349
4349
|
status: "pending",
|
4350
4350
|
resource: C,
|
4351
|
-
callback: (A,
|
4352
|
-
k(V, A,
|
4351
|
+
callback: (A, D) => {
|
4352
|
+
k(V, A, D);
|
4353
4353
|
}
|
4354
4354
|
};
|
4355
4355
|
g.push(V), c++, d = setTimeout(I, e.rotate), r(C, t, V.callback);
|
@@ -4728,10 +4728,10 @@ function fixSize(e) {
|
|
4728
4728
|
}
|
4729
4729
|
const render = (e, t) => {
|
4730
4730
|
const r = mergeCustomisations(defaultExtendedIconCustomisations, t), a = { ...svgDefaults }, n = t.mode || "svg", s = {}, l = t.style, o = typeof l == "object" && !(l instanceof Array) ? l : {};
|
4731
|
-
for (let
|
4732
|
-
const
|
4733
|
-
if (
|
4734
|
-
switch (
|
4731
|
+
for (let p in t) {
|
4732
|
+
const _ = t[p];
|
4733
|
+
if (_ !== void 0)
|
4734
|
+
switch (p) {
|
4735
4735
|
case "icon":
|
4736
4736
|
case "style":
|
4737
4737
|
case "onLoad":
|
@@ -4740,24 +4740,24 @@ const render = (e, t) => {
|
|
4740
4740
|
case "inline":
|
4741
4741
|
case "hFlip":
|
4742
4742
|
case "vFlip":
|
4743
|
-
r[
|
4743
|
+
r[p] = _ === !0 || _ === "true" || _ === 1;
|
4744
4744
|
break;
|
4745
4745
|
case "flip":
|
4746
|
-
typeof
|
4746
|
+
typeof _ == "string" && flipFromString(r, _);
|
4747
4747
|
break;
|
4748
4748
|
case "color":
|
4749
|
-
s.color =
|
4749
|
+
s.color = _;
|
4750
4750
|
break;
|
4751
4751
|
case "rotate":
|
4752
|
-
typeof
|
4752
|
+
typeof _ == "string" ? r[p] = rotateFromString(_) : typeof _ == "number" && (r[p] = _);
|
4753
4753
|
break;
|
4754
4754
|
case "ariaHidden":
|
4755
4755
|
case "aria-hidden":
|
4756
|
-
|
4756
|
+
_ !== !0 && _ !== "true" && delete a["aria-hidden"];
|
4757
4757
|
break;
|
4758
4758
|
default: {
|
4759
|
-
const m = customisationAliases[
|
4760
|
-
m ? (
|
4759
|
+
const m = customisationAliases[p];
|
4760
|
+
m ? (_ === !0 || _ === "true" || _ === 1) && (r[m] = !0) : defaultExtendedIconCustomisations[p] === void 0 && (a[p] = _);
|
4761
4761
|
}
|
4762
4762
|
}
|
4763
4763
|
}
|
@@ -4767,17 +4767,17 @@ const render = (e, t) => {
|
|
4767
4767
|
...s,
|
4768
4768
|
...o
|
4769
4769
|
}, Object.assign(a, c);
|
4770
|
-
let
|
4771
|
-
return typeof
|
4770
|
+
let p = 0, _ = t.id;
|
4771
|
+
return typeof _ == "string" && (_ = _.replace(/-/g, "_")), a.innerHTML = replaceIDs(i.body, _ ? () => _ + "ID" + p++ : "iconifyVue"), h("svg", a);
|
4772
4772
|
}
|
4773
|
-
const { body: u, width: d, height: g } = e, E = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1),
|
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,
|
@@ -4872,7 +4872,7 @@ const emptyIcon = {
|
|
4872
4872
|
...t.data
|
4873
4873
|
}, r);
|
4874
4874
|
}
|
4875
|
-
}), name = "@kengic/vue", version = "0.13.
|
4875
|
+
}), name = "@kengic/vue", version = "0.13.9", data$1 = {
|
4876
4876
|
width: 24,
|
4877
4877
|
height: 24,
|
4878
4878
|
body: '<path fill="currentColor" d="M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h11.175q.4 0 .763.15t.637.425l2.85 2.85q.275.275.425.638t.15.762V12.3q-.475-.2-.988-.263T19 12.05V7.825L16.175 5H5v14h6v2H5ZM5 5v14V5Zm8 17v-1.65q0-.2.075-.388t.225-.337l5.225-5.2q.225-.225.5-.325t.55-.1q.3 0 .575.113t.5.337l.925.925q.2.225.313.5t.112.55q0 .275-.1.563t-.325.512l-5.2 5.2q-.15.15-.338.225T15.65 23H14q-.425 0-.712-.287T13 22Zm7.5-5.575l-.925-.925l.925.925Zm-6 5.075h.95l3.025-3.05l-.45-.475l-.475-.45l-3.05 3.025v.95Zm3.525-3.525l-.475-.45l.925.925l-.45-.475ZM7 10h7q.425 0 .713-.288T15 9V7q0-.425-.288-.713T14 6H7q-.425 0-.713.288T6 7v2q0 .425.288.713T7 10Zm5 8h.1l2.9-2.875V15q0-1.25-.875-2.125T12 12q-1.25 0-2.125.875T9 15q0 1.25.875 2.125T12 18Z"/>'
|
@@ -4978,31 +4978,31 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
4978
4978
|
c ? E = A : c == !1 && !C._hotUpdating && (Array.isArray(E) ? E.push(A) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
4979
4979
|
});
|
4980
4980
|
let c, u, d = markRaw([]), g = markRaw([]), E;
|
4981
|
-
const
|
4982
|
-
!l && !
|
4983
|
-
const
|
4984
|
-
function
|
4985
|
-
let
|
4986
|
-
c = u = !1, process.env.NODE_ENV !== "production" && (E = []), typeof A == "function" ? (A(a.state.value[e]),
|
4981
|
+
const y = a.state.value[e];
|
4982
|
+
!l && !y && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
4983
|
+
const p = ref({});
|
4984
|
+
function _(A) {
|
4985
|
+
let D;
|
4986
|
+
c = u = !1, process.env.NODE_ENV !== "production" && (E = []), typeof A == "function" ? (A(a.state.value[e]), D = {
|
4987
4987
|
type: MutationType.patchFunction,
|
4988
4988
|
storeId: e,
|
4989
4989
|
events: E
|
4990
|
-
}) : (mergeReactiveObjects(a.state.value[e], A),
|
4990
|
+
}) : (mergeReactiveObjects(a.state.value[e], A), D = {
|
4991
4991
|
type: MutationType.patchObject,
|
4992
4992
|
payload: A,
|
4993
4993
|
storeId: e,
|
4994
4994
|
events: E
|
4995
4995
|
}), nextTick().then(() => {
|
4996
4996
|
c = !0;
|
4997
|
-
}), u = !0, triggerSubscriptions(d,
|
4997
|
+
}), u = !0, triggerSubscriptions(d, D, a.state.value[e]);
|
4998
4998
|
}
|
4999
4999
|
const m = process.env.NODE_ENV !== "production" ? () => {
|
5000
5000
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
5001
5001
|
} : noop$1;
|
5002
|
-
function
|
5002
|
+
function b() {
|
5003
5003
|
s.stop(), d = [], g = [], a._s.delete(e);
|
5004
5004
|
}
|
5005
|
-
function T(A,
|
5005
|
+
function T(A, D) {
|
5006
5006
|
return function() {
|
5007
5007
|
setActivePinia(a);
|
5008
5008
|
const M = Array.from(arguments), K = [], L = [];
|
@@ -5019,37 +5019,37 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
5019
5019
|
after: H,
|
5020
5020
|
onError: w
|
5021
5021
|
});
|
5022
|
-
let
|
5022
|
+
let O;
|
5023
5023
|
try {
|
5024
|
-
|
5024
|
+
O = D.apply(this && this.$id === e ? this : C, M);
|
5025
5025
|
} catch (R) {
|
5026
5026
|
throw triggerSubscriptions(L, R), R;
|
5027
5027
|
}
|
5028
|
-
return
|
5028
|
+
return O instanceof Promise ? O.then((R) => (triggerSubscriptions(K, R), R)).catch((R) => (triggerSubscriptions(L, R), Promise.reject(R))) : (triggerSubscriptions(K, O), O);
|
5029
5029
|
};
|
5030
5030
|
}
|
5031
5031
|
const k = /* @__PURE__ */ markRaw({
|
5032
5032
|
actions: {},
|
5033
5033
|
getters: {},
|
5034
5034
|
state: [],
|
5035
|
-
hotState:
|
5035
|
+
hotState: p
|
5036
5036
|
}), I = {
|
5037
5037
|
_p: a,
|
5038
5038
|
$id: e,
|
5039
5039
|
$onAction: addSubscription.bind(null, g),
|
5040
|
-
$patch:
|
5040
|
+
$patch: _,
|
5041
5041
|
$reset: m,
|
5042
|
-
$subscribe(A,
|
5043
|
-
const M = addSubscription(d, A,
|
5044
|
-
(
|
5042
|
+
$subscribe(A, D = {}) {
|
5043
|
+
const M = addSubscription(d, A, D.detached, () => K()), K = s.run(() => watch(() => a.state.value[e], (L) => {
|
5044
|
+
(D.flush === "sync" ? u : c) && A({
|
5045
5045
|
storeId: e,
|
5046
5046
|
type: MutationType.direct,
|
5047
5047
|
events: E
|
5048
5048
|
}, L);
|
5049
|
-
}, assign$1({}, i,
|
5049
|
+
}, assign$1({}, i, D)));
|
5050
5050
|
return M;
|
5051
5051
|
},
|
5052
|
-
$dispose:
|
5052
|
+
$dispose: b
|
5053
5053
|
}, C = reactive(assign$1(
|
5054
5054
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
5055
5055
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
@@ -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 A in V) {
|
5063
|
-
const
|
5064
|
-
if (isRef(
|
5065
|
-
process.env.NODE_ENV !== "production" && n ? set(
|
5066
|
-
else if (typeof
|
5067
|
-
const M = process.env.NODE_ENV !== "production" && n ?
|
5068
|
-
V[A] = M, process.env.NODE_ENV !== "production" && (k.actions[A] =
|
5063
|
+
const D = V[A];
|
5064
|
+
if (isRef(D) && !isComputed(D) || isReactive(D))
|
5065
|
+
process.env.NODE_ENV !== "production" && n ? set(p.value, A, toRef(V, A)) : l || (y && shouldHydrate(D) && (isRef(D) ? D.value = y[A] : mergeReactiveObjects(D, y[A])), a.state.value[e][A] = D), process.env.NODE_ENV !== "production" && k.state.push(A);
|
5066
|
+
else if (typeof D == "function") {
|
5067
|
+
const M = process.env.NODE_ENV !== "production" && n ? D : T(A, D);
|
5068
|
+
V[A] = M, process.env.NODE_ENV !== "production" && (k.actions[A] = D), o.actions[A] = D;
|
5069
5069
|
} else
|
5070
|
-
process.env.NODE_ENV !== "production" && isComputed(
|
5070
|
+
process.env.NODE_ENV !== "production" && isComputed(D) && (k.getters[A] = l ? r.getters[A] : D, IS_CLIENT && (V._getters || (V._getters = markRaw([]))).push(A));
|
5071
5071
|
}
|
5072
5072
|
if (assign$1(C, V), assign$1(toRaw(C), V), Object.defineProperty(C, "$state", {
|
5073
|
-
get: () => process.env.NODE_ENV !== "production" && n ?
|
5073
|
+
get: () => process.env.NODE_ENV !== "production" && n ? p.value : a.state.value[e],
|
5074
5074
|
set: (A) => {
|
5075
5075
|
if (process.env.NODE_ENV !== "production" && n)
|
5076
5076
|
throw new Error("cannot set hotState");
|
5077
|
-
|
5078
|
-
assign$1(
|
5077
|
+
_((D) => {
|
5078
|
+
assign$1(D, A);
|
5079
5079
|
});
|
5080
5080
|
}
|
5081
5081
|
}), process.env.NODE_ENV !== "production") {
|
5082
|
-
C._hotUpdate = markRaw((
|
5083
|
-
C._hotUpdating = !0,
|
5082
|
+
C._hotUpdate = markRaw((D) => {
|
5083
|
+
C._hotUpdating = !0, D._hmrPayload.state.forEach((M) => {
|
5084
5084
|
if (M in C.$state) {
|
5085
|
-
const K =
|
5086
|
-
typeof K == "object" && isPlainObject(K) && isPlainObject(L) ? patchObject(K, L) :
|
5085
|
+
const K = D.$state[M], L = C.$state[M];
|
5086
|
+
typeof K == "object" && isPlainObject(K) && isPlainObject(L) ? patchObject(K, L) : D.$state[M] = L;
|
5087
5087
|
}
|
5088
|
-
set(C, M, toRef(
|
5088
|
+
set(C, M, toRef(D.$state, M));
|
5089
5089
|
}), Object.keys(C.$state).forEach((M) => {
|
5090
|
-
M in
|
5091
|
-
}), c = !1, u = !1, a.state.value[e] = toRef(
|
5090
|
+
M in D.$state || del(C, M);
|
5091
|
+
}), c = !1, u = !1, a.state.value[e] = toRef(D._hmrPayload, "hotState"), u = !0, nextTick().then(() => {
|
5092
5092
|
c = !0;
|
5093
5093
|
});
|
5094
|
-
for (const M in
|
5095
|
-
const K =
|
5094
|
+
for (const M in D._hmrPayload.actions) {
|
5095
|
+
const K = D[M];
|
5096
5096
|
set(C, M, T(M, K));
|
5097
5097
|
}
|
5098
|
-
for (const M in
|
5099
|
-
const K =
|
5098
|
+
for (const M in D._hmrPayload.getters) {
|
5099
|
+
const K = D._hmrPayload.getters[M], L = l ? computed(() => (setActivePinia(a), K.call(C, C))) : K;
|
5100
5100
|
set(C, M, L);
|
5101
5101
|
}
|
5102
5102
|
Object.keys(C._hmrPayload.getters).forEach((M) => {
|
5103
|
-
M in
|
5103
|
+
M in D._hmrPayload.getters || del(C, M);
|
5104
5104
|
}), Object.keys(C._hmrPayload.actions).forEach((M) => {
|
5105
|
-
M in
|
5106
|
-
}), C._hmrPayload =
|
5105
|
+
M in D._hmrPayload.actions || del(C, M);
|
5106
|
+
}), C._hmrPayload = D._hmrPayload, C._getters = D._getters, C._hotUpdating = !1;
|
5107
5107
|
});
|
5108
5108
|
const A = {
|
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((D) => {
|
5114
|
+
Object.defineProperty(C, D, {
|
5115
|
+
value: C[D],
|
5116
5116
|
...A
|
5117
5117
|
});
|
5118
5118
|
});
|
5119
5119
|
}
|
5120
5120
|
return a._p.forEach((A) => {
|
5121
5121
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
5122
|
-
const
|
5122
|
+
const D = s.run(() => A({
|
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(D || {}).forEach((M) => C._customProperties.add(M)), assign$1(C, D);
|
5129
5129
|
} else
|
5130
5130
|
assign$1(C, s.run(() => A({
|
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 && l && 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;
|
@@ -5245,11 +5245,11 @@ function useKgDragModal(e) {
|
|
5245
5245
|
if (!o)
|
5246
5246
|
return;
|
5247
5247
|
document.body.classList.add("kg-modal-dragging");
|
5248
|
-
const i = o.clientX, c = o.clientY, u = document.body.clientWidth, d = document.documentElement.clientHeight, g = l.offsetWidth, E = l.offsetHeight,
|
5249
|
-
let k = +
|
5250
|
-
|
5248
|
+
const i = o.clientX, c = o.clientY, u = document.body.clientWidth, d = document.documentElement.clientHeight, g = l.offsetWidth, E = l.offsetHeight, y = l.offsetLeft, p = u - l.offsetLeft - g, _ = l.offsetTop, m = d - l.offsetTop - E, b = t(l, "left"), T = t(l, "top");
|
5249
|
+
let k = +b, I = +T;
|
5250
|
+
b.includes("%") ? (k = +document.body.clientWidth * (+b.replace(/%/g, "") / 100), I = +document.body.clientHeight * (+T.replace(/%/g, "") / 100)) : (k = +b.replace(/px/g, ""), I = +T.replace(/px/g, "")), document.onmousemove = function(C) {
|
5251
5251
|
let V = C.clientX - i, A = C.clientY - c;
|
5252
|
-
-V >
|
5252
|
+
-V > y ? V = -y : V > p && (V = p), -A > _ ? A = -_ : A > m && (A = m), l.style.cssText += `;left:${V + k}px;top:${A + I}px;`;
|
5253
5253
|
}, document.onmouseup = () => {
|
5254
5254
|
document.body.classList.remove("kg-modal-dragging"), document.onmousemove = null, document.onmouseup = null;
|
5255
5255
|
};
|
@@ -5719,18 +5719,18 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
5719
5719
|
slots: r
|
5720
5720
|
}) {
|
5721
5721
|
if (e.kgMaxHeight < e.kgMinHeight) {
|
5722
|
-
const
|
5723
|
-
throw KgLogger.error(
|
5722
|
+
const b = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
|
5723
|
+
throw KgLogger.error(b, {
|
5724
5724
|
kgMaxHeight: e.kgMaxHeight,
|
5725
5725
|
kgMinHeight: e.kgMinHeight
|
5726
|
-
}), new Error(
|
5726
|
+
}), new Error(b);
|
5727
5727
|
}
|
5728
5728
|
if (e.kgMaxWidth < e.kgMinWidth) {
|
5729
|
-
const
|
5730
|
-
throw KgLogger.error(
|
5729
|
+
const b = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
|
5730
|
+
throw KgLogger.error(b, {
|
5731
5731
|
kgMaxWidth: e.kgMaxWidth,
|
5732
5732
|
kgMinWidth: e.kgMinWidth
|
5733
|
-
}), new Error(
|
5733
|
+
}), new Error(b);
|
5734
5734
|
}
|
5735
5735
|
let a = 0, n = 0, s = 0, l = 0, o = {
|
5736
5736
|
remove: () => {
|
@@ -5753,22 +5753,22 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
5753
5753
|
};
|
5754
5754
|
}
|
5755
5755
|
}), u = computed(() => {
|
5756
|
-
let
|
5757
|
-
switch (e.kgClass && (
|
5756
|
+
let b = "";
|
5757
|
+
switch (e.kgClass && (b += `${e.kgClass} `), b += "kg-resizable", e.kgDisabled && (b += " kg-resizable--disabled"), e.kgType) {
|
5758
5758
|
case "left":
|
5759
|
-
|
5759
|
+
b += " kg-resizable--left";
|
5760
5760
|
break;
|
5761
5761
|
case "right":
|
5762
|
-
|
5762
|
+
b += " kg-resizable--right";
|
5763
5763
|
break;
|
5764
5764
|
case "top":
|
5765
|
-
|
5765
|
+
b += " kg-resizable--top";
|
5766
5766
|
break;
|
5767
5767
|
case "bottom":
|
5768
|
-
|
5768
|
+
b += " kg-resizable--bottom";
|
5769
5769
|
break;
|
5770
5770
|
}
|
5771
|
-
return
|
5771
|
+
return b;
|
5772
5772
|
});
|
5773
5773
|
function d() {
|
5774
5774
|
o.remove(), i.remove();
|
@@ -5776,51 +5776,51 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
5776
5776
|
onUnmounted(() => {
|
5777
5777
|
d();
|
5778
5778
|
});
|
5779
|
-
const g = (
|
5779
|
+
const g = (b) => {
|
5780
5780
|
switch (e.kgType) {
|
5781
5781
|
case "top":
|
5782
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (
|
5782
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (b.pageY - l))));
|
5783
5783
|
break;
|
5784
5784
|
case "bottom":
|
5785
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (
|
5785
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (b.pageY - l))));
|
5786
5786
|
break;
|
5787
5787
|
case "left":
|
5788
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (
|
5788
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (b.pageX - s))));
|
5789
5789
|
break;
|
5790
5790
|
case "right":
|
5791
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (
|
5791
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (b.pageX - s))));
|
5792
5792
|
break;
|
5793
5793
|
}
|
5794
5794
|
};
|
5795
|
-
function E(
|
5796
|
-
g(
|
5795
|
+
function E(b) {
|
5796
|
+
g(b);
|
5797
5797
|
}
|
5798
|
-
function b
|
5799
|
-
g(
|
5798
|
+
function y(b) {
|
5799
|
+
g(b), d();
|
5800
5800
|
}
|
5801
|
-
function
|
5802
|
-
|
5801
|
+
function p(b) {
|
5802
|
+
b.stopPropagation(), b.preventDefault(), d(), !(b instanceof MouseEvent && b.which !== 1) && (s = b.pageX, l = b.pageY, a = e.kgWidth, n = e.kgHeight, o = _(document.documentElement, "mousemove", E), i = _(document.documentElement, "mouseup", y));
|
5803
5803
|
}
|
5804
|
-
function
|
5805
|
-
return
|
5806
|
-
remove: () =>
|
5804
|
+
function _(b, T, k) {
|
5805
|
+
return b.addEventListener(T, k), {
|
5806
|
+
remove: () => b.removeEventListener(T, k)
|
5807
5807
|
};
|
5808
5808
|
}
|
5809
|
-
function m(
|
5810
|
-
|
5809
|
+
function m(b) {
|
5810
|
+
b.stopPropagation(), b.preventDefault();
|
5811
5811
|
}
|
5812
5812
|
return () => {
|
5813
|
-
var
|
5813
|
+
var b;
|
5814
5814
|
return createVNode("div", {
|
5815
5815
|
class: u.value,
|
5816
5816
|
style: c.value
|
5817
5817
|
}, [createVNode("div", {
|
5818
5818
|
class: "kg-resizable-handle",
|
5819
5819
|
onClick: m,
|
5820
|
-
onMousedown:
|
5820
|
+
onMousedown: p
|
5821
5821
|
}, [createVNode("div", {
|
5822
5822
|
class: "kg-resizable-handle-line"
|
5823
|
-
}, null)]), (
|
5823
|
+
}, null)]), (b = r.default) == null ? void 0 : b.call(r)]);
|
5824
5824
|
};
|
5825
5825
|
}
|
5826
5826
|
});
|
@@ -5890,18 +5890,18 @@ class KgVarUtil {
|
|
5890
5890
|
return r;
|
5891
5891
|
}
|
5892
5892
|
static transformFormItemValue(t, r, a, n, s) {
|
5893
|
-
var g, E,
|
5893
|
+
var g, E, y;
|
5894
5894
|
const l = useKg(), o = useKgVar(t);
|
5895
5895
|
let i = n;
|
5896
5896
|
const c = /(.*)?({(.*)?})(.*)?/.exec(i);
|
5897
5897
|
if (c) {
|
5898
|
-
const
|
5899
|
-
switch (c[2].slice(1, -1),
|
5898
|
+
const p = c[2];
|
5899
|
+
switch (c[2].slice(1, -1), p) {
|
5900
5900
|
case "{NOW}":
|
5901
5901
|
i = i.replace("{NOW}", a().format("YYYY-MM-DD HH:mm:ss"));
|
5902
5902
|
break;
|
5903
5903
|
case "{USER.username}":
|
5904
|
-
i = i.replace("{USER.username}", (
|
5904
|
+
i = i.replace("{USER.username}", (y = (E = (g = l.store).getUseUserStore) == null ? void 0 : E.call(g).userInfo) == null ? void 0 : y.username);
|
5905
5905
|
break;
|
5906
5906
|
}
|
5907
5907
|
}
|
@@ -5909,20 +5909,20 @@ class KgVarUtil {
|
|
5909
5909
|
if (!u)
|
5910
5910
|
return i;
|
5911
5911
|
const d = (() => {
|
5912
|
-
const
|
5912
|
+
const p = u.ctrl_typ, _ = u.prf_ctrl_typ, m = u.crt_ctrl_typ, b = u.upt_ctrl_typ, T = u.cpy_ctrl_typ, k = u.del_ctrl_typ;
|
5913
5913
|
switch (s) {
|
5914
5914
|
case "R":
|
5915
|
-
return
|
5915
|
+
return _ || p;
|
5916
5916
|
case "C":
|
5917
|
-
return m ||
|
5917
|
+
return m || p;
|
5918
5918
|
case "U":
|
5919
|
-
return
|
5919
|
+
return b || p;
|
5920
5920
|
case "CP":
|
5921
|
-
return T ||
|
5921
|
+
return T || p;
|
5922
5922
|
case "D":
|
5923
|
-
return k ||
|
5923
|
+
return k || p;
|
5924
5924
|
}
|
5925
|
-
return
|
5925
|
+
return p;
|
5926
5926
|
})();
|
5927
5927
|
switch (d) {
|
5928
5928
|
case KG_FORM_ITEM_TYPE.INPUT:
|
@@ -5932,8 +5932,8 @@ class KgVarUtil {
|
|
5932
5932
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER: {
|
5933
5933
|
if (isNil(i))
|
5934
5934
|
return;
|
5935
|
-
const
|
5936
|
-
if (Number.isNaN(
|
5935
|
+
const p = Number(i);
|
5936
|
+
if (Number.isNaN(p)) {
|
5937
5937
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
|
5938
5938
|
frm_id: t,
|
5939
5939
|
var_nam: r,
|
@@ -5941,14 +5941,14 @@ class KgVarUtil {
|
|
5941
5941
|
});
|
5942
5942
|
return;
|
5943
5943
|
}
|
5944
|
-
return
|
5944
|
+
return p;
|
5945
5945
|
}
|
5946
5946
|
case KG_FORM_ITEM_TYPE.CHECKBOX:
|
5947
5947
|
case KG_FORM_ITEM_TYPE.SWITCH: {
|
5948
5948
|
if (isNil(i))
|
5949
5949
|
return 0;
|
5950
|
-
const
|
5951
|
-
if (Number.isNaN(
|
5950
|
+
const p = Number(i);
|
5951
|
+
if (Number.isNaN(p)) {
|
5952
5952
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
|
5953
5953
|
frm_id: t,
|
5954
5954
|
var_nam: r,
|
@@ -5956,7 +5956,7 @@ class KgVarUtil {
|
|
5956
5956
|
});
|
5957
5957
|
return;
|
5958
5958
|
}
|
5959
|
-
if (![0, 1].includes(
|
5959
|
+
if (![0, 1].includes(p)) {
|
5960
5960
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A 0 \u6216 1.`, {
|
5961
5961
|
frm_id: t,
|
5962
5962
|
var_nam: r,
|
@@ -5964,14 +5964,14 @@ class KgVarUtil {
|
|
5964
5964
|
});
|
5965
5965
|
return;
|
5966
5966
|
}
|
5967
|
-
return
|
5967
|
+
return p;
|
5968
5968
|
}
|
5969
5969
|
case KG_FORM_ITEM_TYPE.DATE_TIME: {
|
5970
5970
|
if (isNil(i) || i.trim() === "")
|
5971
5971
|
return;
|
5972
|
-
const
|
5973
|
-
if (
|
5974
|
-
return
|
5972
|
+
const p = a(`1970-01-01 ${i}`);
|
5973
|
+
if (p != null && p.isValid())
|
5974
|
+
return p;
|
5975
5975
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u65F6\u95F4\u7C7B\u578B.`, {
|
5976
5976
|
frm_id: t,
|
5977
5977
|
var_nam: r,
|
@@ -5986,9 +5986,9 @@ class KgVarUtil {
|
|
5986
5986
|
case KG_FORM_ITEM_TYPE.DATE_YEAR: {
|
5987
5987
|
if (isNil(i))
|
5988
5988
|
return;
|
5989
|
-
const
|
5990
|
-
if (
|
5991
|
-
return
|
5989
|
+
const p = a(i);
|
5990
|
+
if (p != null && p.isValid())
|
5991
|
+
return p;
|
5992
5992
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u65E5\u671F\u7C7B\u578B.`, {
|
5993
5993
|
frm_id: t,
|
5994
5994
|
var_nam: r,
|
@@ -6001,8 +6001,8 @@ class KgVarUtil {
|
|
6001
6001
|
if (isNil(i))
|
6002
6002
|
return [];
|
6003
6003
|
try {
|
6004
|
-
const
|
6005
|
-
if (!isArray$1(
|
6004
|
+
const p = JSON.parse(i);
|
6005
|
+
if (!isArray$1(p)) {
|
6006
6006
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
|
6007
6007
|
frm_id: t,
|
6008
6008
|
var_nam: r,
|
@@ -6010,26 +6010,26 @@ class KgVarUtil {
|
|
6010
6010
|
});
|
6011
6011
|
return;
|
6012
6012
|
}
|
6013
|
-
const
|
6014
|
-
switch (
|
6013
|
+
const _ = o.store.getVarPossibility(t, r);
|
6014
|
+
switch (_ == null ? void 0 : _.val_data_type) {
|
6015
6015
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
|
6016
|
-
const m =
|
6017
|
-
if (m.some((
|
6016
|
+
const m = p.map((b) => Number(b));
|
6017
|
+
if (m.some((b) => Number.isNaN(m))) {
|
6018
6018
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
|
6019
6019
|
frm_id: t,
|
6020
6020
|
var_nam: r,
|
6021
6021
|
value: i,
|
6022
|
-
VarPossibility:
|
6022
|
+
VarPossibility: _
|
6023
6023
|
});
|
6024
6024
|
return;
|
6025
6025
|
}
|
6026
6026
|
return m;
|
6027
6027
|
}
|
6028
6028
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
6029
|
-
return
|
6029
|
+
return p.map((m) => Boolean(m));
|
6030
6030
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
6031
6031
|
default:
|
6032
|
-
return
|
6032
|
+
return p.map((m) => String(m));
|
6033
6033
|
}
|
6034
6034
|
} catch {
|
6035
6035
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
|
@@ -6043,20 +6043,20 @@ class KgVarUtil {
|
|
6043
6043
|
case KG_FORM_ITEM_TYPE.SELECT: {
|
6044
6044
|
if (isNil(i))
|
6045
6045
|
return;
|
6046
|
-
const
|
6047
|
-
switch (
|
6046
|
+
const p = o.store.getVarPossibility(t, r);
|
6047
|
+
switch (p == null ? void 0 : p.val_data_type) {
|
6048
6048
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
|
6049
|
-
const
|
6050
|
-
if (Number.isNaN(
|
6049
|
+
const _ = Number(i);
|
6050
|
+
if (Number.isNaN(_)) {
|
6051
6051
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u5B57\u7C7B\u578B.`, {
|
6052
6052
|
frm_id: t,
|
6053
6053
|
var_nam: r,
|
6054
6054
|
value: i,
|
6055
|
-
VarPossibility:
|
6055
|
+
VarPossibility: p
|
6056
6056
|
});
|
6057
6057
|
return;
|
6058
6058
|
}
|
6059
|
-
return
|
6059
|
+
return _;
|
6060
6060
|
}
|
6061
6061
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
6062
6062
|
return Boolean(i);
|
@@ -6346,14 +6346,14 @@ function createStore(e, t, r) {
|
|
6346
6346
|
var u = this[c];
|
6347
6347
|
this[c] = function() {
|
6348
6348
|
var g = slice(arguments, 0), E = this;
|
6349
|
-
function
|
6349
|
+
function y() {
|
6350
6350
|
if (!!u)
|
6351
|
-
return each$6(arguments, function(
|
6352
|
-
g[m] =
|
6351
|
+
return each$6(arguments, function(_, m) {
|
6352
|
+
g[m] = _;
|
6353
6353
|
}), u.apply(E, g);
|
6354
6354
|
}
|
6355
|
-
var
|
6356
|
-
return i.apply(E,
|
6355
|
+
var p = [y].concat(g);
|
6356
|
+
return i.apply(E, p);
|
6357
6357
|
};
|
6358
6358
|
},
|
6359
6359
|
_serialize: function(i) {
|
@@ -7454,17 +7454,17 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
7454
7454
|
varButtons: d,
|
7455
7455
|
varSubmitConfig: g,
|
7456
7456
|
varSubmitFields: E,
|
7457
|
-
varProfileMasters:
|
7458
|
-
varProfileConfig:
|
7459
|
-
varGridMasters:
|
7457
|
+
varProfileMasters: y,
|
7458
|
+
varProfileConfig: p,
|
7459
|
+
varGridMasters: _,
|
7460
7460
|
varGridConfig: m
|
7461
7461
|
} = await GetAll({ params: { frm_id: e } });
|
7462
|
-
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, c != null ? c : []), this.varVariableConfigMap.set(e, o != null ? o : []), this.varVariableInputMap.set(e, i != null ? i : []), this.varButtonMap.set(e, transformVarButtons(d)), this.varButtonConfigMap.set(e, transformVarButtonConfig(u != null ? u : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(g)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(E)), this.varProfileConfigMap.set(e, transformVarProfileConfig(
|
7463
|
-
varProfileMasters: transformVarProfileMasterDTOs(
|
7464
|
-
currentVarProfileMasterID: (r = (t = (
|
7462
|
+
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, c != null ? c : []), this.varVariableConfigMap.set(e, o != null ? o : []), this.varVariableInputMap.set(e, i != null ? i : []), this.varButtonMap.set(e, transformVarButtons(d)), this.varButtonConfigMap.set(e, transformVarButtonConfig(u != null ? u : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(g)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(E)), this.varProfileConfigMap.set(e, transformVarProfileConfig(p != null ? p : null)), this.varProfileMasterMap.set(e, {
|
7463
|
+
varProfileMasters: transformVarProfileMasterDTOs(y),
|
7464
|
+
currentVarProfileMasterID: (r = (t = (y == null ? void 0 : y.find((b) => b.id === this.getCurrentVarProfileMasterID(e))) || (y == null ? void 0 : y.find((b) => b.def_flg === 1)) || (y == null ? void 0 : y.find((b) => b.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (y == null ? void 0 : y.find(() => !0))) == null ? void 0 : t.id) != null ? r : null
|
7465
7465
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(m != null ? m : null)), this.varGridMasterMap.set(e, {
|
7466
|
-
varGridMasters: transformVarGridMasterDTOs(
|
7467
|
-
currentVarGridMasterID: (n = (a = (
|
7466
|
+
varGridMasters: transformVarGridMasterDTOs(_),
|
7467
|
+
currentVarGridMasterID: (n = (a = (_ == null ? void 0 : _.find((b) => b.id === this.getCurrentVarGridMasterID(e))) || (_ == null ? void 0 : _.find((b) => b.def_flg === 1)) || (_ == null ? void 0 : _.find((b) => b.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (_ == null ? void 0 : _.find(() => !0))) == null ? void 0 : a.id) != null ? n : null
|
7468
7468
|
}), await Promise.all([
|
7469
7469
|
this.setCurrentVarGridMasterID(e, this.getCurrentVarGridMasterID(e)),
|
7470
7470
|
this.setCurrentVarProfileMasterID(e, this.getCurrentVarProfileMasterID(e))
|
@@ -7675,7 +7675,7 @@ function useKgVar(e, t, r = 0) {
|
|
7675
7675
|
}), onUnmounted(() => {
|
7676
7676
|
u.dispose(c);
|
7677
7677
|
}));
|
7678
|
-
const d = (J) => computed(() => u.t(c, J)), g = computed(() => u.isRetrieving(c)), E = computed(() => u.isRetrievingVarProfileMaster(c)),
|
7678
|
+
const d = (J) => computed(() => u.t(c, J)), g = computed(() => u.isRetrieving(c)), E = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isRetrieved(c)), _ = computed(() => u.isCreating(c)), m = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), T = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), I = computed(() => u.isCopyingRequesting(c)), C = computed(() => u.isDeleting(c)), V = computed(() => u.isDeletingRequesting(c)), A = computed(() => u.isOtherRequesting(c)), D = computed(() => u.getVarButtons(c)), M = computed(() => u.getVarButtonSearch(c)), K = computed(() => u.getVarButtonCreate(c)), L = computed(() => u.getVarButtonUpdate(c)), H = computed(() => u.getVarButtonCopy(c)), w = computed(() => u.getVarButtonDelete(c)), O = computed(() => u.getVarProfileMasters(c)), R = computed(() => u.getCurrentVarProfileMasterID(c)), $ = computed(() => u.getCurrentVarProfileMaster(c)), P = computed(() => {
|
7679
7679
|
var J, ee;
|
7680
7680
|
return (ee = (J = $.value) == null ? void 0 : J.varProfileDetails) != null ? ee : null;
|
7681
7681
|
}), G = computed(() => u.getVarGridConfig(c)), N = computed(() => u.getVarGridMasters(c)), x = computed(() => u.getCurrentVarGridMasterID(c)), Y = computed(() => u.getCurrentVarGridMaster(c)), q = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
|
@@ -7684,24 +7684,24 @@ function useKgVar(e, t, r = 0) {
|
|
7684
7684
|
store: u,
|
7685
7685
|
isRetrieving: g,
|
7686
7686
|
isRetrievingVarProfileMaster: E,
|
7687
|
-
isRetrievingVarGridMaster:
|
7688
|
-
isRetrieved:
|
7689
|
-
isCreating:
|
7687
|
+
isRetrievingVarGridMaster: y,
|
7688
|
+
isRetrieved: p,
|
7689
|
+
isCreating: _,
|
7690
7690
|
isCreatingRequesting: m,
|
7691
|
-
isUpdating:
|
7691
|
+
isUpdating: b,
|
7692
7692
|
isUpdatingRequesting: T,
|
7693
7693
|
isCopying: k,
|
7694
7694
|
isCopyingRequesting: I,
|
7695
7695
|
isDeleting: C,
|
7696
7696
|
isDeletingRequesting: V,
|
7697
7697
|
isOtherRequesting: A,
|
7698
|
-
varButtons:
|
7698
|
+
varButtons: D,
|
7699
7699
|
varButtonSearch: M,
|
7700
7700
|
varButtonCreate: K,
|
7701
7701
|
varButtonUpdate: L,
|
7702
7702
|
varButtonCopy: H,
|
7703
7703
|
varButtonDelete: w,
|
7704
|
-
varProfileMasters:
|
7704
|
+
varProfileMasters: O,
|
7705
7705
|
currentVarProfileMasterID: R,
|
7706
7706
|
currentVarProfileMaster: $,
|
7707
7707
|
currentVarProfileDetails: P,
|
@@ -7734,10 +7734,10 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
7734
7734
|
}) {
|
7735
7735
|
provide(DI_KG_VAR__KG_PROPS, computed(() => e.kgProps)), provide(DI_KG_VAR__KG_SLOTS, e.kgSlots);
|
7736
7736
|
const r = useKgVar(), a = useKgSearch(r.formID), n = useKgButton(r.formID), s = useKgSubmit(r.formID), l = useKgTable(r.formID), o = computed(() => r.store.getVarProfileConfig(r.formID)), i = computed(() => r.store.getVarButtonConfig(r.formID)), c = computed(() => r.store.getVarGridConfig(r.formID)), u = computed(() => r.store.getVarSubmitConfig(r.formID)), d = computed(() => {
|
7737
|
-
var
|
7737
|
+
var b, T, k, I;
|
7738
7738
|
switch (!0) {
|
7739
7739
|
case r.isCreating.value:
|
7740
|
-
return ((
|
7740
|
+
return ((b = u.value) == null ? void 0 : b.crt_flg) !== 0;
|
7741
7741
|
case r.isUpdating.value:
|
7742
7742
|
return ((T = u.value) == null ? void 0 : T.upt_flg) !== 0;
|
7743
7743
|
case r.isCopying.value:
|
@@ -7747,32 +7747,32 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
7747
7747
|
}
|
7748
7748
|
return !1;
|
7749
7749
|
}), g = computed(() => {
|
7750
|
-
var
|
7751
|
-
return r.isRetrieved.value && ((
|
7750
|
+
var b;
|
7751
|
+
return r.isRetrieved.value && ((b = o.value) == null ? void 0 : b.available_flg) !== 0;
|
7752
7752
|
}), E = computed(() => {
|
7753
|
-
var
|
7754
|
-
return r.isRetrieved.value && ((
|
7755
|
-
}),
|
7756
|
-
var
|
7757
|
-
return r.isRetrieved.value && ((
|
7758
|
-
}),
|
7759
|
-
let
|
7760
|
-
return e.KgBackgroundGray && (
|
7753
|
+
var b;
|
7754
|
+
return r.isRetrieved.value && ((b = i.value) == null ? void 0 : b.available_flg) !== 0;
|
7755
|
+
}), y = computed(() => {
|
7756
|
+
var b;
|
7757
|
+
return r.isRetrieved.value && ((b = c.value) == null ? void 0 : b.available_flg) !== 0;
|
7758
|
+
}), p = computed(() => !!r.isOtherRequesting.value), _ = computed(() => {
|
7759
|
+
let b = "kg-var";
|
7760
|
+
return e.KgBackgroundGray && (b += " kg-var--bg-gray"), !g.value && !E.value && !y.value && (b += " kg-var--empty"), b;
|
7761
7761
|
});
|
7762
7762
|
function m() {
|
7763
7763
|
return createVNode(Spin, {
|
7764
|
-
spinning:
|
7764
|
+
spinning: p.value
|
7765
7765
|
}, {
|
7766
7766
|
default: () => {
|
7767
|
-
var
|
7768
|
-
return [t.default ? t.default() : createVNode(Fragment, null, [g.value && createVNode(KgSearch, null, null), E.value && createVNode(KgButton, null, null),
|
7767
|
+
var b, T;
|
7768
|
+
return [t.default ? t.default() : createVNode(Fragment, null, [g.value && createVNode(KgSearch, null, null), E.value && createVNode(KgButton, null, null), y.value && createVNode(Fragment, null, [createVNode(KgTable, null, null), (T = (b = e.kgSlots) == null ? void 0 : b.afterKgTable) == null ? void 0 : T.call(b)]), d.value && createVNode(KgSubmit, null, null)])];
|
7769
7769
|
}
|
7770
7770
|
});
|
7771
7771
|
}
|
7772
7772
|
return onUnmounted(() => {
|
7773
7773
|
a.store.dispose(r.formID), n.store.dispose(r.formID), l.store.dispose(r.formID), s.store.dispose(r.formID);
|
7774
7774
|
}), () => createVNode("div", {
|
7775
|
-
class:
|
7775
|
+
class: _.value
|
7776
7776
|
}, [m()]);
|
7777
7777
|
}
|
7778
7778
|
}), KgForm_Item_Addon_Lookup = "", KgForm_Item_Addon_Lookup_Modal = "", getProps$u = () => ({
|
@@ -7787,20 +7787,20 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
7787
7787
|
emit: r
|
7788
7788
|
}) {
|
7789
7789
|
const a = inject(KG_DI_HOST_FORM_ID, ""), n = useKgVar(a), s = useKgForm(n.formID), l = inject(KG_DI_VAR_NAME, ""), o = inject(KG_DI_LOOKUP_ID, ""), i = 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, l)), g = computed(() => {
|
7790
|
-
var
|
7791
|
-
return ((
|
7790
|
+
var _;
|
7791
|
+
return ((_ = d == null ? void 0 : d.value) == null ? void 0 : _.mult_flg) === 1;
|
7792
7792
|
}), E = computed(() => {
|
7793
|
-
var
|
7794
|
-
return (m = (
|
7793
|
+
var _, m;
|
7794
|
+
return (m = (_ = d == null ? void 0 : d.value) == null ? void 0 : _.ret_fld) != null ? m : "";
|
7795
7795
|
});
|
7796
|
-
u.onRowDoubleClick(async () => (await
|
7797
|
-
function
|
7796
|
+
u.onRowDoubleClick(async () => (await p(), !1));
|
7797
|
+
function y() {
|
7798
7798
|
r("update:visible", !1);
|
7799
7799
|
}
|
7800
|
-
async function
|
7801
|
-
var
|
7800
|
+
async function p() {
|
7801
|
+
var _, m, b, T, k, I, C;
|
7802
7802
|
if (g.value) {
|
7803
|
-
const V = (m = (
|
7803
|
+
const V = (m = (_ = u.selectedRows) == null ? void 0 : _.value) != null ? m : [], A = (b = V.map((M) => M[E.value])) != null ? b : [];
|
7804
7804
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
7805
7805
|
var_nam: l,
|
7806
7806
|
isMultiple: !0,
|
@@ -7830,17 +7830,17 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
7830
7830
|
}
|
7831
7831
|
}
|
7832
7832
|
return () => {
|
7833
|
-
var
|
7833
|
+
var _, m;
|
7834
7834
|
return createVNode(KgModal, {
|
7835
7835
|
visible: e.visible,
|
7836
7836
|
title: n.t(l).value,
|
7837
7837
|
destroyOnClose: !0,
|
7838
7838
|
okButtonProps: {
|
7839
|
-
disabled: ((m = (
|
7839
|
+
disabled: ((m = (_ = u.selectedRows.value) == null ? void 0 : _.length) != null ? m : 0) === 0
|
7840
7840
|
},
|
7841
7841
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
7842
|
-
onCancel:
|
7843
|
-
onOk:
|
7842
|
+
onCancel: y,
|
7843
|
+
onOk: p
|
7844
7844
|
}, {
|
7845
7845
|
default: () => [createVNode(KgVar, null, null)]
|
7846
7846
|
});
|
@@ -7976,17 +7976,17 @@ function _useRules(e) {
|
|
7976
7976
|
switch (d == null ? void 0 : d.data_type) {
|
7977
7977
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
7978
7978
|
{
|
7979
|
-
const
|
7980
|
-
isNil(
|
7981
|
-
validator: (
|
7979
|
+
const y = d == null ? void 0 : d.min;
|
7980
|
+
isNil(y) || ((d == null ? void 0 : d.min_include_flg) === 1 ? E.push({
|
7981
|
+
validator: (_, m) => m == null || m === "" || typeof m == "string" && m.trim() === "" ? Promise.resolve() : Number(m) < y ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [y])) : Promise.resolve()
|
7982
7982
|
}) : E.push({
|
7983
|
-
validator: (
|
7983
|
+
validator: (_, m) => m == null || m === "" || typeof m == "string" && m.trim() === "" ? Promise.resolve() : Number(m) <= y ? Promise.reject(t.t("kg.KgFormItem.mustGT", [y])) : Promise.resolve()
|
7984
7984
|
}));
|
7985
|
-
const
|
7986
|
-
isNil(
|
7987
|
-
validator: (
|
7985
|
+
const p = d == null ? void 0 : d.max;
|
7986
|
+
isNil(p) || ((d == null ? void 0 : d.max_include_flg) === 1 ? E.push({
|
7987
|
+
validator: (_, m) => m == null || m === "" || typeof m == "string" && m.trim() === "" ? Promise.resolve() : Number(m) > p ? Promise.reject(t.t("kg.KgFormItem.mustLTE", [p])) : Promise.resolve()
|
7988
7988
|
}) : E.push({
|
7989
|
-
validator: (
|
7989
|
+
validator: (_, m) => m == null || m === "" || typeof m == "string" && m.trim() === "" ? Promise.resolve() : Number(m) >= p ? Promise.reject(t.t("kg.KgFormItem.mustLT", [p])) : Promise.resolve()
|
7990
7990
|
}));
|
7991
7991
|
}
|
7992
7992
|
break;
|
@@ -8004,8 +8004,8 @@ function _useRules(e) {
|
|
8004
8004
|
}
|
8005
8005
|
function useKgFormItem(e) {
|
8006
8006
|
const t = (e == null ? void 0 : e.kgVarName) || inject(KG_DI_VAR_NAME, e == null ? void 0 : e.kgVarName), r = (e == null ? void 0 : e.kgContext) || inject(DI_KG_CONTEXT, e == null ? void 0 : e.kgContext), a = useKgVar(), n = computed(() => a.store.getVarVariableConfig(a.formID, t)), s = computed(() => {
|
8007
|
-
var E,
|
8008
|
-
const o = ((E = n.value) == null ? void 0 : E.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, i = (
|
8007
|
+
var E, y, p, _, m, b;
|
8008
|
+
const o = ((E = n.value) == null ? void 0 : E.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, i = (y = n.value) == null ? void 0 : y.prf_ctrl_typ, c = (p = n.value) == null ? void 0 : p.crt_ctrl_typ, u = (_ = n.value) == null ? void 0 : _.upt_ctrl_typ, d = (m = n.value) == null ? void 0 : m.cpy_ctrl_typ, g = (b = n.value) == null ? void 0 : b.del_ctrl_typ;
|
8009
8009
|
switch (r) {
|
8010
8010
|
case KG_FORM_CONTEXT.SEARCH:
|
8011
8011
|
return i || o;
|
@@ -8023,9 +8023,9 @@ function useKgFormItem(e) {
|
|
8023
8023
|
}
|
8024
8024
|
return o;
|
8025
8025
|
}), l = computed(() => {
|
8026
|
-
var
|
8026
|
+
var y, p, _, m, b, T;
|
8027
8027
|
let o;
|
8028
|
-
const i = (
|
8028
|
+
const i = (y = n.value) == null ? void 0 : y.ctrl_prop, c = (p = n.value) == null ? void 0 : p.prf_ctrl_prop, u = (_ = n.value) == null ? void 0 : _.crt_ctrl_prop, d = (m = n.value) == null ? void 0 : m.upt_ctrl_prop, g = (b = n.value) == null ? void 0 : b.cpy_ctrl_prop, E = (T = n.value) == null ? void 0 : T.del_ctrl_prop;
|
8029
8029
|
switch (r) {
|
8030
8030
|
case KG_FORM_CONTEXT.SEARCH:
|
8031
8031
|
o = c || i;
|
@@ -8058,39 +8058,39 @@ function useKgFormItemSelect() {
|
|
8058
8058
|
controlType: s,
|
8059
8059
|
controlProperties: l
|
8060
8060
|
} = useKgFormItem(), o = ref(!1), i = ref([]), c = computed(() => {
|
8061
|
-
var
|
8062
|
-
return (
|
8061
|
+
var y, p;
|
8062
|
+
return (p = (y = n.value) == null ? void 0 : y.val_clm) != null ? p : "";
|
8063
8063
|
}), u = computed(() => {
|
8064
|
-
var
|
8065
|
-
return (
|
8064
|
+
var y, p;
|
8065
|
+
return (p = (y = n.value) == null ? void 0 : y.lbl_clm) != null ? p : "";
|
8066
8066
|
}), d = computed(() => {
|
8067
|
-
var
|
8068
|
-
let
|
8069
|
-
return
|
8070
|
-
var
|
8071
|
-
let m =
|
8072
|
-
if (typeof
|
8073
|
-
let k =
|
8067
|
+
var p;
|
8068
|
+
let y = KgVarUtil.parseCommandParameter((p = n.value) == null ? void 0 : p.cmd_prm);
|
8069
|
+
return y = mapValues(y, (_) => {
|
8070
|
+
var b, T;
|
8071
|
+
let m = _;
|
8072
|
+
if (typeof _ == "string" && _.startsWith("{") && _.endsWith("}")) {
|
8073
|
+
let k = _.slice(1, -1), I = "";
|
8074
8074
|
if (k.includes(".")) {
|
8075
8075
|
const C = k.split(".");
|
8076
8076
|
k = C[0], I = C[1];
|
8077
8077
|
}
|
8078
|
-
r.value && k in r.value && (I ? m = (T = (
|
8078
|
+
r.value && k in r.value && (I ? m = (T = (b = r.value[`${k}_obj`]) == null ? void 0 : b[I]) != null ? T : void 0 : m = r.value[k], m || (m = "__kg__form_item_select__pid"));
|
8079
8079
|
}
|
8080
8080
|
return m;
|
8081
|
-
}),
|
8081
|
+
}), y;
|
8082
8082
|
});
|
8083
8083
|
async function g() {
|
8084
|
-
var k, I, C, V, A,
|
8085
|
-
let
|
8086
|
-
const
|
8087
|
-
if (!
|
8084
|
+
var k, I, C, V, A, D, M, K;
|
8085
|
+
let y = [];
|
8086
|
+
const p = (k = n.value) == null ? void 0 : k.cmd, _ = (C = (I = n.value) == null ? void 0 : I.cmd_method) != null ? C : "GET", m = (A = (V = n.value) == null ? void 0 : V.val_clm) != null ? A : "", b = (M = (D = n.value) == null ? void 0 : D.lbl_clm) != null ? M : "";
|
8087
|
+
if (!p || !m || !b) {
|
8088
8088
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
8089
8089
|
frm_id: a.formID,
|
8090
8090
|
var_nam: t,
|
8091
|
-
cmd:
|
8091
|
+
cmd: p,
|
8092
8092
|
val_clm: m,
|
8093
|
-
lbl_clm:
|
8093
|
+
lbl_clm: b
|
8094
8094
|
});
|
8095
8095
|
return;
|
8096
8096
|
}
|
@@ -8099,8 +8099,8 @@ function useKgFormItemSelect() {
|
|
8099
8099
|
o.value = !0;
|
8100
8100
|
const L = KgUtil.parseParams(d.value, null, e);
|
8101
8101
|
T = await ((K = httpClient()) == null ? void 0 : K.request({
|
8102
|
-
url:
|
8103
|
-
method:
|
8102
|
+
url: p,
|
8103
|
+
method: _,
|
8104
8104
|
params: L,
|
8105
8105
|
data: L
|
8106
8106
|
}, {
|
@@ -8112,58 +8112,58 @@ function useKgFormItemSelect() {
|
|
8112
8112
|
o.value = !1;
|
8113
8113
|
}
|
8114
8114
|
if (!isObjectLike(T))
|
8115
|
-
|
8115
|
+
y = [];
|
8116
8116
|
else
|
8117
8117
|
switch (!0) {
|
8118
8118
|
case isArrayLike(T):
|
8119
|
-
|
8119
|
+
y = E(T);
|
8120
8120
|
break;
|
8121
8121
|
case (T && "total" in T && "records" in T):
|
8122
|
-
|
8122
|
+
y = E(T.records);
|
8123
8123
|
break;
|
8124
8124
|
}
|
8125
|
-
if (
|
8126
|
-
const L =
|
8127
|
-
(!(m in L) || !(
|
8125
|
+
if (y.length > 0) {
|
8126
|
+
const L = y[0];
|
8127
|
+
(!(m in L) || !(b in L)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
8128
8128
|
frm_id: a.formID,
|
8129
8129
|
var_nam: t,
|
8130
|
-
cmd:
|
8130
|
+
cmd: p,
|
8131
8131
|
val_clm: m,
|
8132
|
-
lbl_clm:
|
8132
|
+
lbl_clm: b,
|
8133
8133
|
\u6240\u6709\u5217: Object.keys(L)
|
8134
8134
|
});
|
8135
8135
|
}
|
8136
|
-
i.value =
|
8136
|
+
i.value = y;
|
8137
8137
|
}
|
8138
|
-
function E(
|
8139
|
-
var m,
|
8140
|
-
if (!
|
8138
|
+
function E(y) {
|
8139
|
+
var m, b, T, k, I;
|
8140
|
+
if (!y)
|
8141
8141
|
return [];
|
8142
|
-
const
|
8143
|
-
switch (
|
8142
|
+
const p = (b = (m = n.value) == null ? void 0 : m.val_clm) != null ? b : "", _ = (k = (T = n.value) == null ? void 0 : T.val_data_type) != null ? k : "string";
|
8143
|
+
switch (_) {
|
8144
8144
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
8145
|
-
|
8146
|
-
C[
|
8145
|
+
y.forEach((C) => {
|
8146
|
+
C[p] = String(C[p]);
|
8147
8147
|
});
|
8148
8148
|
break;
|
8149
8149
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
8150
|
-
|
8151
|
-
let V = Number(C[
|
8152
|
-
Number.isNaN(V) && (V = C[
|
8150
|
+
y.forEach((C) => {
|
8151
|
+
let V = Number(C[p]);
|
8152
|
+
Number.isNaN(V) && (V = C[p], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${C[p]} \u8F6C\u6362\u4E3A ${_} \u7C7B\u578B`, {
|
8153
8153
|
frm_id: a.formID,
|
8154
8154
|
var_nam: t,
|
8155
8155
|
VarPossibility: n.value
|
8156
|
-
})), C[
|
8156
|
+
})), C[p] = V;
|
8157
8157
|
});
|
8158
8158
|
break;
|
8159
8159
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
8160
|
-
|
8160
|
+
y.forEach((C) => {
|
8161
8161
|
let V;
|
8162
|
-
String(C[
|
8162
|
+
String(C[p]).toLowerCase() === "true" ? V = !0 : String(C[p]).toLowerCase() === "false" ? V = !1 : (V = C[p], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${C[p]} \u8F6C\u6362\u4E3A ${_} \u7C7B\u578B`, {
|
8163
8163
|
frm_id: a.formID,
|
8164
8164
|
var_nam: t,
|
8165
8165
|
VarPossibility: n.value
|
8166
|
-
})), C[
|
8166
|
+
})), C[p] = V;
|
8167
8167
|
});
|
8168
8168
|
break;
|
8169
8169
|
}
|
@@ -8172,14 +8172,14 @@ function useKgFormItemSelect() {
|
|
8172
8172
|
{
|
8173
8173
|
const C = l;
|
8174
8174
|
if ((I = C.value) != null && I.excludeValues)
|
8175
|
-
return
|
8175
|
+
return y.filter((V) => {
|
8176
8176
|
var A;
|
8177
|
-
return !((A = C.value.excludeValues) != null && A.includes(V[
|
8177
|
+
return !((A = C.value.excludeValues) != null && A.includes(V[p]));
|
8178
8178
|
});
|
8179
8179
|
}
|
8180
8180
|
break;
|
8181
8181
|
}
|
8182
|
-
return
|
8182
|
+
return y;
|
8183
8183
|
}
|
8184
8184
|
return {
|
8185
8185
|
varPossibility: n,
|
@@ -8214,20 +8214,20 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8214
8214
|
} = useKgFormItemSelect(), d = ref(!1), g = ref(!1);
|
8215
8215
|
watch(o, () => E(), {
|
8216
8216
|
immediate: !0
|
8217
|
-
}), watch([() => e.value, c], ([
|
8218
|
-
const
|
8219
|
-
if (
|
8220
|
-
const T = intersection$1(
|
8221
|
-
if (T.length <
|
8217
|
+
}), watch([() => e.value, c], ([_, m]) => {
|
8218
|
+
const b = get(_, "length", 0);
|
8219
|
+
if (b > 0 && m.length > 0) {
|
8220
|
+
const T = intersection$1(_, m == null ? void 0 : m.map((k) => k[i.value]));
|
8221
|
+
if (T.length < b) {
|
8222
8222
|
r("update:value", T);
|
8223
8223
|
return;
|
8224
8224
|
}
|
8225
8225
|
}
|
8226
8226
|
switch (!0) {
|
8227
|
-
case (
|
8227
|
+
case (b > 0 && b === m.length):
|
8228
8228
|
d.value = !0, g.value = !1;
|
8229
8229
|
break;
|
8230
|
-
case (
|
8230
|
+
case (b > 0 && b !== m.length):
|
8231
8231
|
d.value = !1, g.value = !0;
|
8232
8232
|
break;
|
8233
8233
|
default:
|
@@ -8238,47 +8238,47 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8238
8238
|
immediate: !0
|
8239
8239
|
});
|
8240
8240
|
async function E() {
|
8241
|
-
var
|
8242
|
-
!((
|
8241
|
+
var _, m;
|
8242
|
+
!((_ = l.value) != null && _.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((m = c.value) == null ? void 0 : m.map((b) => b[i.value]), e.value)));
|
8243
8243
|
}
|
8244
|
-
function
|
8245
|
-
var m,
|
8246
|
-
|
8244
|
+
function y(_) {
|
8245
|
+
var m, b, T;
|
8246
|
+
_.target.checked ? p((b = (m = c.value) == null ? void 0 : m.map((k) => k[i.value])) != null ? b : []) : p([]), g.value = !1, (T = n.value) == null || T.validate(e.kgVarName);
|
8247
8247
|
}
|
8248
|
-
function _
|
8249
|
-
r("update:value",
|
8248
|
+
function p(_) {
|
8249
|
+
r("update:value", _), r("kgChange", _);
|
8250
8250
|
}
|
8251
8251
|
return () => {
|
8252
|
-
let
|
8252
|
+
let _, m;
|
8253
8253
|
return createVNode("div", {
|
8254
8254
|
class: "kg-form-item-checkbox-group"
|
8255
8255
|
}, [createVNode(Form.ItemRest, null, {
|
8256
8256
|
default: () => [createVNode(Checkbox, {
|
8257
8257
|
checked: d.value,
|
8258
|
-
"onUpdate:checked": (
|
8258
|
+
"onUpdate:checked": (b) => d.value = b,
|
8259
8259
|
indeterminate: g.value,
|
8260
|
-
onChange:
|
8261
|
-
}, _isSlot$c(
|
8262
|
-
default: () => [
|
8260
|
+
onChange: y
|
8261
|
+
}, _isSlot$c(_ = a.t("kg.selectAll")) ? _ : {
|
8262
|
+
default: () => [_]
|
8263
8263
|
})]
|
8264
8264
|
}), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
|
8265
8265
|
value: e.value,
|
8266
|
-
"onUpdate:value":
|
8266
|
+
"onUpdate:value": p
|
8267
8267
|
}, {
|
8268
8268
|
default: () => [createVNode(Row, {
|
8269
8269
|
gutter: 12
|
8270
|
-
}, _isSlot$c(m = c.value.map((
|
8270
|
+
}, _isSlot$c(m = c.value.map((b) => {
|
8271
8271
|
var T, k;
|
8272
8272
|
return createVNode(Col, {
|
8273
8273
|
span: (k = (T = s.value) == null ? void 0 : T.span) != null ? k : 24
|
8274
8274
|
}, {
|
8275
8275
|
default: () => [createVNode(Checkbox, {
|
8276
|
-
value:
|
8277
|
-
"kg-value":
|
8276
|
+
value: b[i.value],
|
8277
|
+
"kg-value": b[i.value]
|
8278
8278
|
}, {
|
8279
8279
|
default: () => {
|
8280
8280
|
var I, C;
|
8281
|
-
return [
|
8281
|
+
return [b[(C = (I = l.value) == null ? void 0 : I.lbl_clm) != null ? C : ""]];
|
8282
8282
|
}
|
8283
8283
|
})]
|
8284
8284
|
});
|
@@ -8436,17 +8436,17 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8436
8436
|
default: () => [createVNode(Row, {
|
8437
8437
|
gutter: 12
|
8438
8438
|
}, _isSlot$b(d = o.value.map((g) => {
|
8439
|
-
var E,
|
8439
|
+
var E, y;
|
8440
8440
|
return createVNode(Col, {
|
8441
|
-
span: (
|
8441
|
+
span: (y = (E = a.value) == null ? void 0 : E.span) != null ? y : 24
|
8442
8442
|
}, {
|
8443
8443
|
default: () => [createVNode(Radio, {
|
8444
8444
|
value: g[l.value],
|
8445
8445
|
"kg-value": g[l.value]
|
8446
8446
|
}, {
|
8447
8447
|
default: () => {
|
8448
|
-
var
|
8449
|
-
return [g[(
|
8448
|
+
var p, _;
|
8449
|
+
return [g[(_ = (p = n.value) == null ? void 0 : p.lbl_clm) != null ? _ : ""]];
|
8450
8450
|
}
|
8451
8451
|
})]
|
8452
8452
|
});
|
@@ -8479,12 +8479,12 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8479
8479
|
immediate: !0
|
8480
8480
|
});
|
8481
8481
|
async function E() {
|
8482
|
-
var
|
8483
|
-
if (!!((
|
8482
|
+
var _;
|
8483
|
+
if (!!((_ = l.value) != null && _.id))
|
8484
8484
|
switch (await g(), r("kgSelectDatasChange", d.value), e.kgMode) {
|
8485
8485
|
case "multiple": {
|
8486
8486
|
if (Array.isArray(e.value)) {
|
8487
|
-
const m = e.value.filter((
|
8487
|
+
const m = e.value.filter((b) => d.value.find((T) => T[i.value] === b));
|
8488
8488
|
m.length > 0 ? r("update:value", m) : r("update:value", []);
|
8489
8489
|
}
|
8490
8490
|
break;
|
@@ -8494,12 +8494,12 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8494
8494
|
break;
|
8495
8495
|
}
|
8496
8496
|
}
|
8497
|
-
function
|
8498
|
-
var m,
|
8497
|
+
function y(_) {
|
8498
|
+
var m, b;
|
8499
8499
|
switch (e.kgMode) {
|
8500
8500
|
case "multiple": {
|
8501
|
-
if (Array.isArray(
|
8502
|
-
const T = (m = toRaw(d.value.filter((k) =>
|
8501
|
+
if (Array.isArray(_)) {
|
8502
|
+
const T = (m = toRaw(d.value.filter((k) => _.includes(k[i.value])))) != null ? m : null;
|
8503
8503
|
r("kgSelectChange", T), s.store.emit(s.formID, "selectChange", {
|
8504
8504
|
var_nam: e.kgVarName,
|
8505
8505
|
rows: T
|
@@ -8508,7 +8508,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8508
8508
|
break;
|
8509
8509
|
}
|
8510
8510
|
default: {
|
8511
|
-
const T = (
|
8511
|
+
const T = (b = toRaw(d.value.find((k) => k[i.value] === _))) != null ? b : null;
|
8512
8512
|
r("kgSelectChange", T), s.store.emit(s.formID, "selectChange", {
|
8513
8513
|
var_nam: e.kgVarName,
|
8514
8514
|
rows: T
|
@@ -8517,14 +8517,14 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8517
8517
|
}
|
8518
8518
|
}
|
8519
8519
|
}
|
8520
|
-
function _
|
8521
|
-
r("update:value",
|
8520
|
+
function p(_) {
|
8521
|
+
r("update:value", _), r("kgChange", _);
|
8522
8522
|
}
|
8523
8523
|
return () => {
|
8524
|
-
var
|
8524
|
+
var _;
|
8525
8525
|
return createVNode(Select, {
|
8526
8526
|
value: e.value,
|
8527
|
-
"onUpdate:value":
|
8527
|
+
"onUpdate:value": p,
|
8528
8528
|
id: t.id,
|
8529
8529
|
disabled: e.kgDisabled,
|
8530
8530
|
allowClear: e.kgAllowClear,
|
@@ -8533,12 +8533,12 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8533
8533
|
placeholder: e.kgPlaceholder,
|
8534
8534
|
showArrow: !0,
|
8535
8535
|
showSearch: !0,
|
8536
|
-
filterOption: (m,
|
8536
|
+
filterOption: (m, b) => (b == null ? void 0 : b.value) !== null && (b == null ? void 0 : b.value) !== void 0 && String(b.value).toLowerCase().includes(m.toLowerCase()) || (b == null ? void 0 : b.label) !== null && (b == null ? void 0 : b.label) !== void 0 && String(b.label).toLowerCase().includes(m.toLowerCase()),
|
8537
8537
|
dropdownClassName: e.kgMode === "multiple" ? "kg-form-item-select-dropdown kg-form-item-multi-select-dropdown" : "kg-form-item-select-dropdown",
|
8538
8538
|
class: "kg-form-item-select",
|
8539
|
-
onChange:
|
8539
|
+
onChange: y,
|
8540
8540
|
"kg-value": e.value,
|
8541
|
-
"kg-cmd": (
|
8541
|
+
"kg-cmd": (_ = l.value) == null ? void 0 : _.cmd,
|
8542
8542
|
"kg-val_clm": i.value,
|
8543
8543
|
"kg-lbl_clm": c.value
|
8544
8544
|
}, {
|
@@ -8618,7 +8618,7 @@ const KgFormItem = defineComponent({
|
|
8618
8618
|
const a = inject(DI_FORM_MODEL, computed(() => ({}))), n = inject(DI_FORM_REF, ref(null)), s = useKg(), l = useKgVar(), o = useKgForm(l.formID), i = useKgSearch(l.formID);
|
8619
8619
|
o.onLookupOk(async ({
|
8620
8620
|
var_nam: w,
|
8621
|
-
model:
|
8621
|
+
model: O,
|
8622
8622
|
isMultiple: R,
|
8623
8623
|
value: $,
|
8624
8624
|
values: P
|
@@ -8626,18 +8626,18 @@ const KgFormItem = defineComponent({
|
|
8626
8626
|
var G;
|
8627
8627
|
switch (w) {
|
8628
8628
|
case e.kgVarName:
|
8629
|
-
|
8629
|
+
O.value && (R ? O.value[e.kgVarName] = P : O.value[e.kgVarName] = $), (G = n.value) == null || G.validate([e.kgVarName]);
|
8630
8630
|
break;
|
8631
8631
|
}
|
8632
8632
|
return !1;
|
8633
8633
|
});
|
8634
8634
|
const c = computed(() => l.store.getVarLookup(l.formID, e.kgVarName)), u = computed(() => l.store.getVarVariableConfig(l.formID, e.kgVarName)), d = computed(() => l.store.getVarProfileDetail(l.formID, e.kgVarName)), g = computed(() => l.store.getVarSubmitField(l.formID, e.kgVarName)), {
|
8635
8635
|
rules: E,
|
8636
|
-
isRulesLoading:
|
8636
|
+
isRulesLoading: y
|
8637
8637
|
} = _useRules(e), {
|
8638
|
-
controlType:
|
8639
|
-
} = useKgFormItem(e),
|
8640
|
-
var
|
8638
|
+
controlType: p
|
8639
|
+
} = useKgFormItem(e), _ = computed(() => {
|
8640
|
+
var O, R, $, P, G;
|
8641
8641
|
if (l.isRetrieving.value)
|
8642
8642
|
return !0;
|
8643
8643
|
let w = !1;
|
@@ -8646,7 +8646,7 @@ const KgFormItem = defineComponent({
|
|
8646
8646
|
else
|
8647
8647
|
switch (e.kgContext) {
|
8648
8648
|
case KG_FORM_CONTEXT.SEARCH:
|
8649
|
-
w = ((
|
8649
|
+
w = ((O = d.value) == null ? void 0 : O.ena_flg) === 0;
|
8650
8650
|
break;
|
8651
8651
|
case KG_FORM_CONTEXT.SUBMIT:
|
8652
8652
|
switch (!0) {
|
@@ -8667,29 +8667,29 @@ const KgFormItem = defineComponent({
|
|
8667
8667
|
}
|
8668
8668
|
return w;
|
8669
8669
|
}), m = computed(() => {
|
8670
|
-
var
|
8670
|
+
var O, R, $, P;
|
8671
8671
|
let w = " ";
|
8672
8672
|
if (e.kgPlaceholder)
|
8673
8673
|
w = e.kgPlaceholder;
|
8674
8674
|
else
|
8675
8675
|
switch (e.kgContext) {
|
8676
8676
|
case KG_FORM_CONTEXT.SEARCH:
|
8677
|
-
w = l.t((R = (
|
8677
|
+
w = l.t((R = (O = d.value) == null ? void 0 : O.placeholder) != null ? R : " ").value;
|
8678
8678
|
break;
|
8679
8679
|
case KG_FORM_CONTEXT.SUBMIT:
|
8680
8680
|
w = l.t((P = ($ = g.value) == null ? void 0 : $.placeholder) != null ? P : " ").value;
|
8681
8681
|
break;
|
8682
8682
|
}
|
8683
8683
|
return w;
|
8684
|
-
}),
|
8685
|
-
var
|
8684
|
+
}), b = computed(() => {
|
8685
|
+
var O, R, $, P, G, N, x, Y, q, X;
|
8686
8686
|
let w = 6;
|
8687
8687
|
if (e.kgSpan !== void 0)
|
8688
8688
|
w = e.kgSpan;
|
8689
8689
|
else
|
8690
8690
|
switch (e.kgContext) {
|
8691
8691
|
case KG_FORM_CONTEXT.SEARCH:
|
8692
|
-
w = (R = (
|
8692
|
+
w = (R = (O = d.value) == null ? void 0 : O.width) != null ? R : 6;
|
8693
8693
|
break;
|
8694
8694
|
case KG_FORM_CONTEXT.SUBMIT:
|
8695
8695
|
switch (!0) {
|
@@ -8712,14 +8712,14 @@ const KgFormItem = defineComponent({
|
|
8712
8712
|
VarSubmitField: g.value
|
8713
8713
|
}), 6);
|
8714
8714
|
}), T = computed(() => {
|
8715
|
-
var
|
8715
|
+
var O, R, $, P, G;
|
8716
8716
|
let w = null;
|
8717
8717
|
if (e.kgSpan !== void 0)
|
8718
8718
|
w = e.kgSpan;
|
8719
8719
|
else
|
8720
8720
|
switch (e.kgContext) {
|
8721
8721
|
case KG_FORM_CONTEXT.SEARCH:
|
8722
|
-
w = (
|
8722
|
+
w = (O = d.value) == null ? void 0 : O.width;
|
8723
8723
|
break;
|
8724
8724
|
case KG_FORM_CONTEXT.SUBMIT:
|
8725
8725
|
switch (!0) {
|
@@ -8743,19 +8743,19 @@ const KgFormItem = defineComponent({
|
|
8743
8743
|
const w = get(A.value, "$el.parentElement");
|
8744
8744
|
if (w && !(($ = w.classList) != null && $.contains("ant-row")))
|
8745
8745
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
8746
|
-
let
|
8746
|
+
let O = {};
|
8747
8747
|
const R = Math.abs(Number.parseInt((P = get(A.value, "$el.parentElement.style.marginLeft")) != null ? P : "0px"));
|
8748
|
-
return Number.isNaN(R) || (
|
8748
|
+
return Number.isNaN(R) || (O = {
|
8749
8749
|
paddingLeft: `${R}px !important`,
|
8750
8750
|
paddingRight: `${R}px !important`
|
8751
|
-
}),
|
8751
|
+
}), O;
|
8752
8752
|
}), I = computed(() => {
|
8753
|
-
var
|
8753
|
+
var O, R, $, P;
|
8754
8754
|
let w = "kg-form-item";
|
8755
8755
|
switch (c.value && (w += " kg-form-item-lookup"), T.value !== null && (w += " kg-form-item--col-fixed"), e.kgContext) {
|
8756
8756
|
case KG_FORM_CONTEXT.SEARCH:
|
8757
8757
|
switch (!0) {
|
8758
|
-
case ((
|
8758
|
+
case ((O = d.value) == null ? void 0 : O.vis_flg) === 0:
|
8759
8759
|
w += " kg-form-item--invisible";
|
8760
8760
|
break;
|
8761
8761
|
}
|
@@ -8772,18 +8772,18 @@ const KgFormItem = defineComponent({
|
|
8772
8772
|
}
|
8773
8773
|
return w;
|
8774
8774
|
}), C = computed(() => {
|
8775
|
-
var
|
8775
|
+
var O;
|
8776
8776
|
const w = {
|
8777
8777
|
...e,
|
8778
|
-
value: (
|
8778
|
+
value: (O = a.value) == null ? void 0 : O[e.kgVarName],
|
8779
8779
|
"onUpdate:value": (R) => {
|
8780
8780
|
a.value && (a.value[e.kgVarName] = R);
|
8781
8781
|
},
|
8782
8782
|
kgPlaceholder: m.value,
|
8783
|
-
kgDisabled:
|
8783
|
+
kgDisabled: _.value,
|
8784
8784
|
id: V.value
|
8785
8785
|
};
|
8786
|
-
switch (
|
8786
|
+
switch (p.value) {
|
8787
8787
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
8788
8788
|
break;
|
8789
8789
|
case KG_FORM_ITEM_TYPE.SELECT:
|
@@ -8814,8 +8814,8 @@ const KgFormItem = defineComponent({
|
|
8814
8814
|
}
|
8815
8815
|
return w;
|
8816
8816
|
}), V = computed(() => encodeURIComponent(`${e.kgContext}~${l.formID}~${e.kgVarName}`)), A = ref(null);
|
8817
|
-
function
|
8818
|
-
return
|
8817
|
+
function D() {
|
8818
|
+
return y.value ? null : createVNode(Form.Item, {
|
8819
8819
|
name: e.kgVarName,
|
8820
8820
|
rules: E.value,
|
8821
8821
|
validateFirst: !0,
|
@@ -8838,7 +8838,7 @@ const KgFormItem = defineComponent({
|
|
8838
8838
|
};
|
8839
8839
|
return t.control(w);
|
8840
8840
|
}
|
8841
|
-
switch (
|
8841
|
+
switch (p.value) {
|
8842
8842
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
8843
8843
|
return createVNode(KgFormItemInputNumber, C.value, null);
|
8844
8844
|
case KG_FORM_ITEM_TYPE.TEXT_AREA:
|
@@ -8872,8 +8872,8 @@ const KgFormItem = defineComponent({
|
|
8872
8872
|
}
|
8873
8873
|
}
|
8874
8874
|
function K() {
|
8875
|
-
var w,
|
8876
|
-
return ((
|
8875
|
+
var w, O, R;
|
8876
|
+
return ((O = (w = s.option.value.KgSearch) == null ? void 0 : w.dynamicQuery) == null ? void 0 : O.on) !== !0 || ((R = l.currentVarProfileMaster.value) == null ? void 0 : R.dyn_flg) !== 1 ? null : createVNode(Form.ItemRest, null, {
|
8877
8877
|
default: () => {
|
8878
8878
|
var $;
|
8879
8879
|
return [createVNode(Select, {
|
@@ -8883,13 +8883,13 @@ const KgFormItem = defineComponent({
|
|
8883
8883
|
[e.kgVarName]: P
|
8884
8884
|
});
|
8885
8885
|
},
|
8886
|
-
disabled:
|
8886
|
+
disabled: _.value,
|
8887
8887
|
class: "kg-form-item-operator-select",
|
8888
8888
|
dropdownClassName: "kg-form-item-operator-select-dropdown"
|
8889
8889
|
}, {
|
8890
8890
|
default: () => {
|
8891
8891
|
var P;
|
8892
|
-
return KgVarUtil.getDynamicQueryOperatorSelectOptions((P =
|
8892
|
+
return KgVarUtil.getDynamicQueryOperatorSelectOptions((P = p.value) != null ? P : "");
|
8893
8893
|
},
|
8894
8894
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
8895
8895
|
class: "ant-select-suffix"
|
@@ -8907,24 +8907,24 @@ const KgFormItem = defineComponent({
|
|
8907
8907
|
var w;
|
8908
8908
|
return !c.value || !((w = c.value) != null && w.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
8909
8909
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
8910
|
-
kgDisabled:
|
8910
|
+
kgDisabled: _.value,
|
8911
8911
|
kgLookupID: c.value.lkp_id
|
8912
8912
|
}, null)]
|
8913
8913
|
});
|
8914
8914
|
}
|
8915
8915
|
return () => {
|
8916
|
-
var
|
8916
|
+
var O, R;
|
8917
8917
|
let w;
|
8918
8918
|
return l.isRetrieving.value ? null : createVNode(Col, {
|
8919
8919
|
ref: A,
|
8920
|
-
span:
|
8920
|
+
span: b.value,
|
8921
8921
|
class: I.value,
|
8922
8922
|
style: k.value,
|
8923
8923
|
"kg-frm_id": l.formID,
|
8924
8924
|
"kg-var_nam": e.kgVarName,
|
8925
|
-
"kg-lkp_id": (
|
8925
|
+
"kg-lkp_id": (O = c.value) == null ? void 0 : O.lkp_id,
|
8926
8926
|
"kg-ret_fld": (R = c.value) == null ? void 0 : R.ret_fld
|
8927
|
-
}, _isSlot$a(w =
|
8927
|
+
}, _isSlot$a(w = D()) ? w : {
|
8928
8928
|
default: () => [w]
|
8929
8929
|
});
|
8930
8930
|
};
|
@@ -9295,9 +9295,9 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
9295
9295
|
}).bind(null, pinia())), store$5);
|
9296
9296
|
function useKgSubmit(e) {
|
9297
9297
|
const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
|
9298
|
-
var
|
9298
|
+
var _, m, b, T, k;
|
9299
9299
|
let i = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
9300
|
-
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (
|
9300
|
+
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, g = (m = a.value) == null ? void 0 : m.crt_display_type, E = (b = a.value) == null ? void 0 : b.upt_display_type, y = (T = a.value) == null ? void 0 : T.cpy_display_type, p = (k = a.value) == null ? void 0 : k.del_display_type;
|
9301
9301
|
switch (!0) {
|
9302
9302
|
case (t.isCreating.value && (g === c || !g && d === c)):
|
9303
9303
|
i = c;
|
@@ -9305,10 +9305,10 @@ function useKgSubmit(e) {
|
|
9305
9305
|
case (t.isUpdating.value && (E === c || !E && d === c)):
|
9306
9306
|
i = c;
|
9307
9307
|
break;
|
9308
|
-
case (t.isCopying.value && (
|
9308
|
+
case (t.isCopying.value && (y === c || !y && d === c)):
|
9309
9309
|
i = c;
|
9310
9310
|
break;
|
9311
|
-
case (t.isDeleting.value && (
|
9311
|
+
case (t.isDeleting.value && (p === c || !p)):
|
9312
9312
|
i = c;
|
9313
9313
|
break;
|
9314
9314
|
}
|
@@ -9319,7 +9319,7 @@ function useKgSubmit(e) {
|
|
9319
9319
|
case (t.isUpdating.value && (E === u || !E && d === u)):
|
9320
9320
|
i = u;
|
9321
9321
|
break;
|
9322
|
-
case (t.isCopying.value && (
|
9322
|
+
case (t.isCopying.value && (y === u || !y && d === u)):
|
9323
9323
|
i = u;
|
9324
9324
|
break;
|
9325
9325
|
}
|
@@ -9369,8 +9369,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9369
9369
|
}) => {
|
9370
9370
|
const u = s.store.getVarSubmitConfig(s.formID);
|
9371
9371
|
return o = watch(c, (d) => {
|
9372
|
-
var g, E,
|
9373
|
-
d && (d.id = (g = u == null ? void 0 : u.id) != null ? g : null, d.frm_id = s.formID, d.resizable_flg = (E = u == null ? void 0 : u.resizable_flg) != null ? E : 1, d.fullscreen_flg = (
|
9372
|
+
var g, E, y, p, _, m, b, T, k, I, C, V;
|
9373
|
+
d && (d.id = (g = u == null ? void 0 : u.id) != null ? g : null, d.frm_id = s.formID, d.resizable_flg = (E = u == null ? void 0 : u.resizable_flg) != null ? E : 1, d.fullscreen_flg = (y = u == null ? void 0 : u.fullscreen_flg) != null ? y : 1, d.dft_fullscreen_flg = (p = u == null ? void 0 : u.dft_fullscreen_flg) != null ? p : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 1, d.max_width = (m = u == null ? void 0 : u.max_width) != null ? m : DEFAULT_MAX_WIDTH, d.min_width = (b = u == null ? void 0 : u.min_width) != null ? b : DEFAULT_MIN_WIDTH, d.dft_width = (T = u == null ? void 0 : u.dft_width) != null ? T : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (I = u == null ? void 0 : u.label_col) != null ? I : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (C = u == null ? void 0 : u.label_col_unit) != null ? C : KG_WIDTH_UNIT.SPAN, d.display_type = (V = u == null ? void 0 : u.display_type) != null ? V : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
9374
9374
|
}, {
|
9375
9375
|
immediate: !0
|
9376
9376
|
}), KgUtil.hideLoading(), !1;
|
@@ -9419,7 +9419,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9419
9419
|
function E() {
|
9420
9420
|
r("kgCancel");
|
9421
9421
|
}
|
9422
|
-
function
|
9422
|
+
function y() {
|
9423
9423
|
var m;
|
9424
9424
|
return e.kgShowFullscreenButton === !1 || ((m = o.value) == null ? void 0 : m.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
9425
9425
|
onClick: d,
|
@@ -9428,7 +9428,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9428
9428
|
default: () => [e.isFullscreen ? createVNode(FullscreenExitOutlined$1, null, null) : createVNode(FullscreenOutlined$1, null, null)]
|
9429
9429
|
});
|
9430
9430
|
}
|
9431
|
-
function
|
9431
|
+
function p() {
|
9432
9432
|
return e.kgShowConfigButton ? createVNode(Fragment, null, [createVNode(Button, {
|
9433
9433
|
disabled: c.value || i.value,
|
9434
9434
|
onClick: g,
|
@@ -9439,7 +9439,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9439
9439
|
hostFormID: n.formID
|
9440
9440
|
}, null)]) : null;
|
9441
9441
|
}
|
9442
|
-
function
|
9442
|
+
function _() {
|
9443
9443
|
return createVNode(Button, {
|
9444
9444
|
disabled: c.value || i.value,
|
9445
9445
|
class: "kg-submit--btn-close",
|
@@ -9448,7 +9448,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9448
9448
|
default: () => [createVNode(CloseOutlined$1, null, null)]
|
9449
9449
|
});
|
9450
9450
|
}
|
9451
|
-
return () => createVNode(Fragment, null, [
|
9451
|
+
return () => createVNode(Fragment, null, [p(), y(), _()]);
|
9452
9452
|
}
|
9453
9453
|
}), DEFAULT_MIN_WIDTH = 300, DEFAULT_MAX_WIDTH = 1182, DEFAULT_WIDTH = 594, DEFAULT_LAYOUT = "vertical", DEFAULT_LABEL_COL_FOR_SPAN = 4, DEFAULT_LABEL_COL_FOR_PX = 100;
|
9454
9454
|
function _useFormModel$1() {
|
@@ -9473,19 +9473,19 @@ function _useFormModel$1() {
|
|
9473
9473
|
}
|
9474
9474
|
const d = r.selectedRow.value;
|
9475
9475
|
u.forEach((g) => {
|
9476
|
-
var
|
9477
|
-
const E = (
|
9476
|
+
var y, p, _, m, b, T, k, I;
|
9477
|
+
const E = (y = g.var_nam) != null ? y : "";
|
9478
9478
|
switch (c.value[E] = void 0, !0) {
|
9479
9479
|
case t.isCreating.value: {
|
9480
|
-
c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (
|
9480
|
+
c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (p = g.crt_dft_val) != null ? p : void 0, "C");
|
9481
9481
|
break;
|
9482
9482
|
}
|
9483
9483
|
case t.isUpdating.value: {
|
9484
|
-
c.value.id = d == null ? void 0 : d.id, c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (m = (
|
9484
|
+
c.value.id = d == null ? void 0 : d.id, c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (m = (_ = g.upt_dft_val) != null ? _ : d == null ? void 0 : d[E]) != null ? m : void 0, "U");
|
9485
9485
|
break;
|
9486
9486
|
}
|
9487
9487
|
case t.isCopying.value: {
|
9488
|
-
c.value.id = d == null ? void 0 : d.id, c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (T = (
|
9488
|
+
c.value.id = d == null ? void 0 : d.id, c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (T = (b = g.cpy_dft_val) != null ? b : d == null ? void 0 : d[E]) != null ? T : void 0, "CP");
|
9489
9489
|
break;
|
9490
9490
|
}
|
9491
9491
|
case t.isDeleting.value: {
|
@@ -9561,9 +9561,9 @@ function _useClass(e, t) {
|
|
9561
9561
|
const r = inject(DI_KG_VAR__KG_PROPS, null), a = useKgVar(), n = useKgSubmit(), s = computed(() => a.store.getVarSubmitConfig(a.formID)), l = computed(() => a.store.getVarSubmitFieldsForDeleteKey(a.formID));
|
9562
9562
|
return {
|
9563
9563
|
getClass: computed(() => {
|
9564
|
-
var c, u, d, g, E,
|
9564
|
+
var c, u, d, g, E, y, p;
|
9565
9565
|
let i = "kg-submit";
|
9566
|
-
return t.isFullscreen && (i += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (i += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? i += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (i += " kg-submit--table"), a.isDeleting.value && ((d = (u = l.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (i += " kg-submit--delete-message"), (E = (g = r == null ? void 0 : r.value) == null ? void 0 : g.KgSubmit) != null && E.kgClass ? i += ` ${(
|
9566
|
+
return t.isFullscreen && (i += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (i += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? i += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (i += " kg-submit--table"), a.isDeleting.value && ((d = (u = l.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (i += " kg-submit--delete-message"), (E = (g = r == null ? void 0 : r.value) == null ? void 0 : g.KgSubmit) != null && E.kgClass ? i += ` ${(p = (y = r == null ? void 0 : r.value) == null ? void 0 : y.KgSubmit) == null ? void 0 : p.kgClass}` : e.kgClass && (i += ` ${e.kgClass}`), i;
|
9567
9567
|
})
|
9568
9568
|
};
|
9569
9569
|
}
|
@@ -9640,13 +9640,13 @@ const getProps$p = () => ({
|
|
9640
9640
|
inject(DI_KG_VAR__KG_PROPS, null);
|
9641
9641
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
|
9642
9642
|
l.onSubmitSave(async () => (await ie(), !1)), l.onSubmitCancel(async () => (await ue(), !1)), _useFormModel$1();
|
9643
|
-
const u = computed(() => s.isDeleting.value && M.value.length === 0 && L.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), g = computed(() => s.store.getVarSubmitConfig(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)),
|
9643
|
+
const u = computed(() => s.isDeleting.value && M.value.length === 0 && L.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), g = computed(() => s.store.getVarSubmitConfig(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), p = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), m = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), V = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), D = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), M = computed(() => {
|
9644
9644
|
var B, W, Z;
|
9645
9645
|
switch (!0) {
|
9646
9646
|
case s.isCreating.value:
|
9647
9647
|
return (B = E.value) != null ? B : [];
|
9648
9648
|
case s.isUpdating.value:
|
9649
|
-
return (W =
|
9649
|
+
return (W = p.value) != null ? W : [];
|
9650
9650
|
case s.isCopying.value:
|
9651
9651
|
return (Z = m.value) != null ? Z : [];
|
9652
9652
|
case s.isDeleting.value:
|
@@ -9670,13 +9670,13 @@ const getProps$p = () => ({
|
|
9670
9670
|
var B, W, Z, re;
|
9671
9671
|
switch (!0) {
|
9672
9672
|
case s.isCreating.value:
|
9673
|
-
return (B =
|
9673
|
+
return (B = y.value) != null ? B : [];
|
9674
9674
|
case s.isUpdating.value:
|
9675
|
-
return (W =
|
9675
|
+
return (W = _.value) != null ? W : [];
|
9676
9676
|
case s.isCopying.value:
|
9677
|
-
return (Z =
|
9677
|
+
return (Z = b.value) != null ? Z : [];
|
9678
9678
|
case s.isDeleting.value:
|
9679
|
-
return (re =
|
9679
|
+
return (re = D.value) != null ? re : [];
|
9680
9680
|
}
|
9681
9681
|
return [];
|
9682
9682
|
}), H = computed(() => {
|
@@ -9689,10 +9689,10 @@ const getProps$p = () => ({
|
|
9689
9689
|
case s.isCopying.value:
|
9690
9690
|
return (Z = A.value) != null ? Z : [];
|
9691
9691
|
case s.isDeleting.value:
|
9692
|
-
return (re =
|
9692
|
+
return (re = D.value) != null ? re : [];
|
9693
9693
|
}
|
9694
9694
|
return [];
|
9695
|
-
}), w = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)),
|
9695
|
+
}), w = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), O = computed(() => w.value || d.value), R = computed(() => d.value), $ = ref({
|
9696
9696
|
kgWidth: 0
|
9697
9697
|
}), P = computed(() => {
|
9698
9698
|
var B;
|
@@ -10019,8 +10019,8 @@ const getProps$p = () => ({
|
|
10019
10019
|
let Te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Z = s.varButtonDelete.value) == null ? void 0 : Z.cmd_prm) != null ? re : ""), s.formID, r)), we = ref((se = o.selectedRows.value) != null ? se : []);
|
10020
10020
|
if (((oe = s.varButtonDelete.value) == null ? void 0 : oe.del_param_clm) !== "__kg__new_delete_param" && (Te = ref({
|
10021
10021
|
ids: (ne = (ce = o.selectedRows.value) == null ? void 0 : ce.map((Ve) => {
|
10022
|
-
var
|
10023
|
-
return (Re = Ve[(
|
10022
|
+
var Oe, De, Re;
|
10023
|
+
return (Re = Ve[(De = (Oe = s.varButtonDelete.value) == null ? void 0 : Oe.del_param_clm) != null ? De : "id"]) != null ? Re : "";
|
10024
10024
|
})) != null ? ne : []
|
10025
10025
|
}), we = ref({})), await i.store.emit(s.formID, "beforeRequest", {
|
10026
10026
|
isCreating: s.isCreating.value,
|
@@ -10134,8 +10134,8 @@ const getProps$p = () => ({
|
|
10134
10134
|
let B;
|
10135
10135
|
return createVNode("div", null, [createVNode(Button, {
|
10136
10136
|
type: "primary",
|
10137
|
-
ghost: !
|
10138
|
-
disabled:
|
10137
|
+
ghost: !O.value,
|
10138
|
+
disabled: O.value,
|
10139
10139
|
onClick: ue
|
10140
10140
|
}, _isSlot$9(B = n.t("kg.cancel")) ? B : {
|
10141
10141
|
default: () => [B]
|
@@ -10450,29 +10450,29 @@ const useKgTableStore = () => (store$4 || (store$4 = defineStore("KgTable", {
|
|
10450
10450
|
}).bind(null, pinia())), store$4);
|
10451
10451
|
function useKgTable(e) {
|
10452
10452
|
const t = useKgVar(e), r = useKgTableStore()(), a = computed(() => r.getIsReady(t.formID)), n = computed(() => r.getIsRetrieving(t.formID)), s = computed(() => r.getSelectedRows(t.formID)), l = computed(() => r.getSelectedFirstRow(t.formID)), o = computed(() => r.getSelectedRow(t.formID)), i = computed(() => {
|
10453
|
-
var
|
10454
|
-
return ((
|
10453
|
+
var _;
|
10454
|
+
return ((_ = t.varGridConfig.value) == null ? void 0 : _.mult_flg) === 1;
|
10455
10455
|
}), c = computed(() => {
|
10456
|
-
var
|
10457
|
-
return ((
|
10456
|
+
var _;
|
10457
|
+
return ((_ = t.varGridConfig.value) == null ? void 0 : _.aut_load_flg) === 1;
|
10458
10458
|
}), u = computed(() => {
|
10459
|
-
var
|
10460
|
-
return !!((
|
10459
|
+
var _, m;
|
10460
|
+
return !!((_ = t.varGridConfig.value) != null && _.id) && ((m = t.varGridConfig.value) == null ? void 0 : m.show_bottom_left_flg) !== 0;
|
10461
10461
|
}), d = computed(() => {
|
10462
|
-
var
|
10463
|
-
return !!((
|
10462
|
+
var _, m;
|
10463
|
+
return !!((_ = t.varGridConfig.value) != null && _.id) && ((m = t.varGridConfig.value) == null ? void 0 : m.show_bottom_right_flg) !== 0;
|
10464
10464
|
}), g = computed(() => {
|
10465
|
-
var
|
10466
|
-
return (m = (
|
10465
|
+
var _, m;
|
10466
|
+
return (m = (_ = t.varGridConfig.value) == null ? void 0 : _.id_clm) != null ? m : "id";
|
10467
10467
|
}), E = computed(() => {
|
10468
|
-
var
|
10469
|
-
return JSON.parse((m = (
|
10470
|
-
}),
|
10471
|
-
var
|
10472
|
-
return (
|
10473
|
-
}),
|
10474
|
-
var
|
10475
|
-
return ((
|
10468
|
+
var _, m;
|
10469
|
+
return JSON.parse((m = (_ = t.varGridConfig.value) == null ? void 0 : _.pg_size_opts) != null ? m : "[]");
|
10470
|
+
}), y = computed(() => {
|
10471
|
+
var _;
|
10472
|
+
return (_ = t.varGridConfig.value) == null ? void 0 : _.pg_size_opt;
|
10473
|
+
}), p = computed(() => {
|
10474
|
+
var _;
|
10475
|
+
return ((_ = t.varGridConfig.value) == null ? void 0 : _.prf_frm_id) || t.formID;
|
10476
10476
|
});
|
10477
10477
|
return {
|
10478
10478
|
formID: t.formID,
|
@@ -10488,8 +10488,8 @@ function useKgTable(e) {
|
|
10488
10488
|
isShowBottomRight: d,
|
10489
10489
|
id: g,
|
10490
10490
|
pageSizeOptions: E,
|
10491
|
-
pageSizeOption:
|
10492
|
-
profileFormID:
|
10491
|
+
pageSizeOption: y,
|
10492
|
+
profileFormID: p,
|
10493
10493
|
onReady: onEventFactory(t.formID, r, "ready"),
|
10494
10494
|
onRowDoubleClick: onEventFactory(t.formID, r, "rowDoubleClick"),
|
10495
10495
|
onBeforeRetrieve: onEventFactory(t.formID, r, "beforeRetrieve"),
|
@@ -11435,8 +11435,8 @@ const KgTable_Setting = "", FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig",
|
|
11435
11435
|
}) => {
|
11436
11436
|
const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
11437
11437
|
return l = watch(i, (u) => {
|
11438
|
-
var d, g, E,
|
11439
|
-
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (g = c == null ? void 0 : c.aut_load_flg) != null ? g : 0, u.mult_flg = (E = c == null ? void 0 : c.mult_flg) != null ? E : 0, u.show_check_column_flg = (
|
11438
|
+
var d, g, E, y, p, _, m, b, T, k, I;
|
11439
|
+
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (g = c == null ? void 0 : c.aut_load_flg) != null ? g : 0, u.mult_flg = (E = c == null ? void 0 : c.mult_flg) != null ? E : 0, u.show_check_column_flg = (y = c == null ? void 0 : c.show_check_column_flg) != null ? y : 0, u.show_bottom_left_flg = (p = c == null ? void 0 : c.show_bottom_left_flg) != null ? p : 1, u.show_bottom_right_flg = (_ = c == null ? void 0 : c.show_bottom_right_flg) != null ? _ : 1, u.convert_sort_field_to_under_score_flg = (m = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? m : 0, u.pg_size_opts = (b = c == null ? void 0 : c.pg_size_opts) != null ? b : "[10, 20, 50, 100]", u.pg_size_opt = (T = c == null ? void 0 : c.pg_size_opt) != null ? T : 10, u.cmd_prm = (k = c == null ? void 0 : c.cmd_prm) != null ? k : void 0, u.button_display_type = (I = c == null ? void 0 : c.button_display_type) != null ? I : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
11440
11440
|
}, {
|
11441
11441
|
immediate: !0
|
11442
11442
|
}), KgUtil.hideLoading(), !1;
|
@@ -12146,7 +12146,7 @@ function _useTransferColumns(e, t) {
|
|
12146
12146
|
class: "kg-not-clickable"
|
12147
12147
|
}, {
|
12148
12148
|
default: () => {
|
12149
|
-
let c, u, d, g, E,
|
12149
|
+
let c, u, d, g, E, y, p;
|
12150
12150
|
return createVNode(Fragment, null, [createVNode(Select.Option, {
|
12151
12151
|
value: "DESC"
|
12152
12152
|
}, _isSlot$7(c = r.t("kg.KgTableSettingConfigModalVarGridMaster.DESC")) ? c : {
|
@@ -12169,12 +12169,12 @@ function _useTransferColumns(e, t) {
|
|
12169
12169
|
default: () => [E]
|
12170
12170
|
}), createVNode(Select.Option, {
|
12171
12171
|
value: "UPDATE_LINK"
|
12172
|
-
}, _isSlot$7(
|
12173
|
-
default: () => [
|
12172
|
+
}, _isSlot$7(y = r.t("kg.KgTableSettingConfigModalVarGridMaster.UPDATE_LINK")) ? y : {
|
12173
|
+
default: () => [y]
|
12174
12174
|
}), createVNode(Select.Option, {
|
12175
12175
|
value: "ROUTE_LINK"
|
12176
|
-
}, _isSlot$7(
|
12177
|
-
default: () => [
|
12176
|
+
}, _isSlot$7(p = r.t("kg.KgTableSettingConfigModalVarGridMaster.ROUTE_LINK")) ? p : {
|
12177
|
+
default: () => [p]
|
12178
12178
|
})]);
|
12179
12179
|
},
|
12180
12180
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
@@ -12243,17 +12243,17 @@ function _useDragRow$1(e, t, r) {
|
|
12243
12243
|
if (n = filter(document.querySelectorAll(`tr[kg-host-frm_id="${e}"] > td.handler`), () => !0), n)
|
12244
12244
|
for (let u of n)
|
12245
12245
|
u.__kg__dragstart__ = async (d) => {
|
12246
|
-
var
|
12246
|
+
var _, m;
|
12247
12247
|
s = u.parentElement, u.classList.add("dragging"), u.parentElement.classList.add("dragging");
|
12248
12248
|
const g = document.createElement("span");
|
12249
12249
|
g.setAttribute("id", "__kg_table_config_fields_drag_image__");
|
12250
12250
|
const {
|
12251
12251
|
width: E,
|
12252
|
-
height:
|
12252
|
+
height: y
|
12253
12253
|
} = u.parentElement.getBoundingClientRect();
|
12254
|
-
E &&
|
12255
|
-
const
|
12256
|
-
g.appendChild(
|
12254
|
+
E && y && (g.style.width = `${E + 2}px`, g.style.height = `${y + 2}px`), (_ = d.dataTransfer) == null || _.setDragImage(g, -10, (y + 2) / 2);
|
12255
|
+
const p = await toCanvas(u.parentElement);
|
12256
|
+
g.appendChild(p), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (y + 2) / 2);
|
12257
12257
|
}, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
|
12258
12258
|
u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
|
12259
12259
|
const g = document.querySelector("#__kg_table_config_fields_drag_image__");
|
@@ -12277,8 +12277,8 @@ function _useDragRow$1(e, t, r) {
|
|
12277
12277
|
d.preventDefault(), KgUtil.showLoading();
|
12278
12278
|
const g = document.querySelector("#__kg_table_config_fields_drag_image__");
|
12279
12279
|
g && document.body.removeChild(g), u.classList.remove("dragover", "dragover-right", "dragover-left");
|
12280
|
-
const E = s == null ? void 0 : s.getAttribute("kg-var_nam"),
|
12281
|
-
E !==
|
12280
|
+
const E = s == null ? void 0 : s.getAttribute("kg-var_nam"), y = u.getAttribute("kg-var_nam");
|
12281
|
+
E !== y && i(E, y);
|
12282
12282
|
}, u.addEventListener("drop", u.__kg__drop__);
|
12283
12283
|
}
|
12284
12284
|
function o() {
|
@@ -12297,15 +12297,15 @@ function _useDragRow$1(e, t, r) {
|
|
12297
12297
|
}
|
12298
12298
|
function i(u, d) {
|
12299
12299
|
setTimeout(() => {
|
12300
|
-
const g = t.value.findIndex((
|
12300
|
+
const g = t.value.findIndex((_) => _.var_nam === u), E = t.value.findIndex((_) => _.var_nam === d);
|
12301
12301
|
if (g === -1 || E === -1)
|
12302
12302
|
return;
|
12303
|
-
const
|
12304
|
-
t.value.forEach((
|
12305
|
-
g > E ? m < E ?
|
12306
|
-
}),
|
12307
|
-
|
12308
|
-
}), t.value =
|
12303
|
+
const y = t.value.find((_) => _.var_nam === u), p = [];
|
12304
|
+
t.value.forEach((_, m) => {
|
12305
|
+
g > E ? m < E ? p.push(_) : m === E ? (p.push(y), p.push(_)) : m > E && m !== g && p.push(_) : g < E && (m < g ? p.push(_) : m === g || (m === E ? (p.push(_), p.push(y)) : p.push(_)));
|
12306
|
+
}), p.forEach((_, m) => {
|
12307
|
+
_.srtseq = m + 1;
|
12308
|
+
}), t.value = p, nextTick().finally(() => {
|
12309
12309
|
KgUtil.hideLoading();
|
12310
12310
|
});
|
12311
12311
|
});
|
@@ -12335,16 +12335,16 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12335
12335
|
s.onReady(async () => (await n.store.patchVarProfileDetail(n.formID, "frm_id", {
|
12336
12336
|
dft_val: a.formID
|
12337
12337
|
}), !1)), o.onOpen(async ({
|
12338
|
-
isCreating:
|
12338
|
+
isCreating: b,
|
12339
12339
|
isUpdating: T,
|
12340
12340
|
isCopying: k,
|
12341
12341
|
row: I,
|
12342
12342
|
model: C
|
12343
12343
|
}) => {
|
12344
|
-
var A,
|
12344
|
+
var A, D, M, K, L;
|
12345
12345
|
const V = a.store.getSystemVarGridDetails(a.formID);
|
12346
12346
|
switch (c.value = V ? cloneDeep(unref(toRaw(V))) : [], !0) {
|
12347
|
-
case
|
12347
|
+
case b: {
|
12348
12348
|
u.value = [];
|
12349
12349
|
break;
|
12350
12350
|
}
|
@@ -12358,17 +12358,17 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12358
12358
|
id: I.id
|
12359
12359
|
}
|
12360
12360
|
});
|
12361
|
-
c.value = c.value.map((
|
12361
|
+
c.value = c.value.map((O) => {
|
12362
12362
|
var $;
|
12363
|
-
const R = ($ = H == null ? void 0 : H.varGridDetails) == null ? void 0 : $.find((P) => P.var_nam ===
|
12363
|
+
const R = ($ = H == null ? void 0 : H.varGridDetails) == null ? void 0 : $.find((P) => P.var_nam === O.var_nam);
|
12364
12364
|
return R ? {
|
12365
|
-
...
|
12365
|
+
...O,
|
12366
12366
|
...R,
|
12367
|
-
id:
|
12368
|
-
} :
|
12367
|
+
id: O.id
|
12368
|
+
} : O;
|
12369
12369
|
});
|
12370
|
-
const w = (
|
12371
|
-
u.value = c.value.filter((
|
12370
|
+
const w = (D = (A = H == null ? void 0 : H.varGridDetails) == null ? void 0 : A.map((O) => O.var_nam)) != null ? D : [];
|
12371
|
+
u.value = c.value.filter((O) => w.includes(O.var_nam)).map((O) => O.id);
|
12372
12372
|
} catch (H) {
|
12373
12373
|
throw H;
|
12374
12374
|
} finally {
|
@@ -12387,14 +12387,14 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12387
12387
|
}
|
12388
12388
|
return !1;
|
12389
12389
|
}), o.onBeforeOk(async ({
|
12390
|
-
model:
|
12390
|
+
model: b
|
12391
12391
|
}) => {
|
12392
12392
|
var k, I;
|
12393
|
-
const T =
|
12393
|
+
const T = b.value;
|
12394
12394
|
return T.frm_id = a.formID, T.varGridDetails = (I = (k = c.value) == null ? void 0 : k.filter((C) => u.value.includes(C.id))) != null ? I : [], !1;
|
12395
12395
|
}), o.onOk(async () => (a.store.retrieve(a.formID), !1)), l.onUpdateBeforeClick(({
|
12396
|
-
row:
|
12397
|
-
}) => (
|
12396
|
+
row: b
|
12397
|
+
}) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((T) => {
|
12398
12398
|
KgUtil.confirm({
|
12399
12399
|
content: r.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
|
12400
12400
|
okButtonProps: {
|
@@ -12413,8 +12413,8 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12413
12413
|
rightColumns: E
|
12414
12414
|
} = _useTransferColumns(e.hostFormID, c);
|
12415
12415
|
_useDragRow$1(e.hostFormID, c, d);
|
12416
|
-
const
|
12417
|
-
const
|
12416
|
+
const y = computed(() => {
|
12417
|
+
const b = i.selectedRow.value;
|
12418
12418
|
return {
|
12419
12419
|
KgSubmit: {
|
12420
12420
|
kgClass: "kg-submit--kg-table-setting-config-modal--var-grid-master"
|
@@ -12423,59 +12423,59 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12423
12423
|
kgDisabled: (T) => {
|
12424
12424
|
switch (T.var_nam) {
|
12425
12425
|
case "set-default":
|
12426
|
-
if ((
|
12426
|
+
if ((b == null ? void 0 : b.def_flg) === 1)
|
12427
12427
|
return !0;
|
12428
12428
|
break;
|
12429
12429
|
}
|
12430
12430
|
}
|
12431
12431
|
}
|
12432
12432
|
};
|
12433
|
-
}),
|
12433
|
+
}), p = ref({
|
12434
12434
|
KgSubmit: {
|
12435
12435
|
"KgForm.Item": {
|
12436
12436
|
varGridDetails: () => createVNode(Transfer, {
|
12437
12437
|
dataSource: c.value,
|
12438
12438
|
targetKeys: u.value,
|
12439
|
-
"onUpdate:targetKeys": (
|
12440
|
-
rowKey: (
|
12439
|
+
"onUpdate:targetKeys": (b) => u.value = b,
|
12440
|
+
rowKey: (b) => b.id,
|
12441
12441
|
showSearch: !0,
|
12442
12442
|
showSelectAll: !1,
|
12443
12443
|
searchPlaceholder: " ",
|
12444
|
-
filterOption: (
|
12444
|
+
filterOption: (b, T) => {
|
12445
12445
|
var k;
|
12446
|
-
return !!((k = T.var_nam) != null && k.includes(
|
12446
|
+
return !!((k = T.var_nam) != null && k.includes(b));
|
12447
12447
|
}
|
12448
12448
|
}, {
|
12449
12449
|
children: ({
|
12450
|
-
direction:
|
12450
|
+
direction: b,
|
12451
12451
|
filteredItems: T,
|
12452
12452
|
selectedKeys: k,
|
12453
12453
|
disabled: I,
|
12454
12454
|
onItemSelectAll: C,
|
12455
12455
|
onItemSelect: V
|
12456
12456
|
}) => {
|
12457
|
-
const A = T.sort((
|
12457
|
+
const A = T.sort((D, M) => {
|
12458
12458
|
var K, L;
|
12459
|
-
return ((K =
|
12459
|
+
return ((K = D.srtseq) != null ? K : 0) - ((L = M.srtseq) != null ? L : 0);
|
12460
12460
|
});
|
12461
12461
|
return d.value = A, createVNode(Table, {
|
12462
12462
|
pagination: !1,
|
12463
12463
|
class: "kg-flex-table",
|
12464
12464
|
size: "small",
|
12465
12465
|
scroll: {
|
12466
|
-
x:
|
12466
|
+
x: b === "left" ? "370px" : `${1552 + 32}px`,
|
12467
12467
|
y: "auto"
|
12468
12468
|
},
|
12469
|
-
columns:
|
12469
|
+
columns: b === "left" ? g() : E(),
|
12470
12470
|
rowKey: "id",
|
12471
12471
|
dataSource: A,
|
12472
|
-
customRow: (
|
12472
|
+
customRow: (D) => {
|
12473
12473
|
let M = {
|
12474
|
-
onClick: (K) => m(K,
|
12474
|
+
onClick: (K) => m(K, D, b, k)
|
12475
12475
|
};
|
12476
|
-
return
|
12476
|
+
return b === "right" && (M["kg-host-frm_id"] = a.formID, M["kg-var_nam"] = D.var_nam), M;
|
12477
12477
|
},
|
12478
|
-
rowSelection:
|
12478
|
+
rowSelection: _({
|
12479
12479
|
disabled: I,
|
12480
12480
|
selectedKeys: k,
|
12481
12481
|
onItemSelectAll: C,
|
@@ -12486,19 +12486,19 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12486
12486
|
})
|
12487
12487
|
}
|
12488
12488
|
}
|
12489
|
-
}),
|
12490
|
-
disabled:
|
12489
|
+
}), _ = ({
|
12490
|
+
disabled: b,
|
12491
12491
|
selectedKeys: T,
|
12492
12492
|
onItemSelectAll: k,
|
12493
12493
|
onItemSelect: I
|
12494
12494
|
}) => ({
|
12495
12495
|
getCheckboxProps: (C) => ({
|
12496
|
-
disabled:
|
12496
|
+
disabled: b || C.disabled
|
12497
12497
|
}),
|
12498
12498
|
onSelectAll(C, V) {
|
12499
|
-
const A = V.filter((
|
12500
|
-
key:
|
12501
|
-
}) =>
|
12499
|
+
const A = V.filter((D) => !D.disabled).map(({
|
12500
|
+
key: D
|
12501
|
+
}) => D);
|
12502
12502
|
k(A, C);
|
12503
12503
|
},
|
12504
12504
|
onSelect({
|
@@ -12509,9 +12509,9 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12509
12509
|
selectedRowKeys: T,
|
12510
12510
|
columnWidth: 32
|
12511
12511
|
});
|
12512
|
-
function m(
|
12513
|
-
if (!KgDomUtil.isNotClickable(
|
12514
|
-
switch (I.length = 0,
|
12512
|
+
function m(b, T, k, I) {
|
12513
|
+
if (!KgDomUtil.isNotClickable(b.target, ["ant-input"]))
|
12514
|
+
switch (I.length = 0, b.detail) {
|
12515
12515
|
case 1:
|
12516
12516
|
I[0] = T.id;
|
12517
12517
|
break;
|
@@ -12529,8 +12529,8 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
12529
12529
|
}
|
12530
12530
|
return () => createVNode(KgVar, {
|
12531
12531
|
class: "kg-table--config-modal--var-grid-master",
|
12532
|
-
kgProps:
|
12533
|
-
kgSlots:
|
12532
|
+
kgProps: y.value,
|
12533
|
+
kgSlots: p.value
|
12534
12534
|
}, null);
|
12535
12535
|
}
|
12536
12536
|
}), getProps$l = () => ({
|
@@ -12641,9 +12641,9 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
12641
12641
|
return o.onOpen(async ({
|
12642
12642
|
model: i
|
12643
12643
|
}) => {
|
12644
|
-
var u, d, g, E,
|
12644
|
+
var u, d, g, E, y, p, _;
|
12645
12645
|
const c = s.currentVarGridMaster.value;
|
12646
|
-
return i.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, i.value.grd_var_nam_dsc = `${(g = (d = c == null ? void 0 : c.grd_var_nam_dsc) != null ? d : c == null ? void 0 : c.grd_var_nam) != null ? g : ""}_COPY`, i.value.frm_id = (E = c == null ? void 0 : c.frm_id) != null ? E : "", i.value.usr_id = (
|
12646
|
+
return i.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, i.value.grd_var_nam_dsc = `${(g = (d = c == null ? void 0 : c.grd_var_nam_dsc) != null ? d : c == null ? void 0 : c.grd_var_nam) != null ? g : ""}_COPY`, i.value.frm_id = (E = c == null ? void 0 : c.frm_id) != null ? E : "", i.value.usr_id = (y = c == null ? void 0 : c.usr_id) != null ? y : "", i.value.grp_nam = (p = c == null ? void 0 : c.grp_nam) != null ? p : "", i.value.varGridDetails = (_ = c == null ? void 0 : c.varGridDetails) != null ? _ : [], KgUtil.hideLoading(), !1;
|
12647
12647
|
}), o.onBeforeOk(async ({
|
12648
12648
|
model: i
|
12649
12649
|
}) => (i.value, !1)), o.onOk(async () => (message.success(a.t("kg.KgTable.save-var-grid-master-as-success-message")), s.store.retrieve(s.formID), !1)), o.onClose(async () => (r("kgClose"), !1)), l.store.setIsCopying(l.formID, !0), () => createVNode(KgVar, null, null);
|
@@ -12676,15 +12676,15 @@ const getProps$j = () => ({
|
|
12676
12676
|
}, {
|
12677
12677
|
immediate: !0
|
12678
12678
|
});
|
12679
|
-
function
|
12679
|
+
function y(C) {
|
12680
12680
|
n.store.patchVarGridDetail(n.formID, C.var_nam, {
|
12681
12681
|
vis_flg: C.vis_flg === 1 ? 0 : 1
|
12682
12682
|
});
|
12683
12683
|
}
|
12684
|
-
function
|
12684
|
+
function p(C) {
|
12685
12685
|
n.store.setCurrentVarGridMasterID(n.formID, C.id);
|
12686
12686
|
}
|
12687
|
-
async function
|
12687
|
+
async function _() {
|
12688
12688
|
var C;
|
12689
12689
|
if (((C = n.currentVarGridMaster.value) == null ? void 0 : C.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
|
12690
12690
|
KgUtil.confirm({
|
@@ -12707,7 +12707,7 @@ const getProps$j = () => ({
|
|
12707
12707
|
async function m() {
|
12708
12708
|
g.value.visible = !0;
|
12709
12709
|
}
|
12710
|
-
function
|
12710
|
+
function b() {
|
12711
12711
|
return createVNode(Menu.SubMenu, {
|
12712
12712
|
key: "columns",
|
12713
12713
|
title: a.t("kg.KgTable.column"),
|
@@ -12726,7 +12726,7 @@ const getProps$j = () => ({
|
|
12726
12726
|
}, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((V) => createVNode("li", {
|
12727
12727
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
12728
12728
|
onClick: (A) => {
|
12729
|
-
A.preventDefault(), A.stopPropagation(),
|
12729
|
+
A.preventDefault(), A.stopPropagation(), y(V);
|
12730
12730
|
},
|
12731
12731
|
style: {
|
12732
12732
|
display: l(V, c.value) ? "flex" : "none"
|
@@ -12755,19 +12755,19 @@ const getProps$j = () => ({
|
|
12755
12755
|
default: () => {
|
12756
12756
|
var A;
|
12757
12757
|
let C, V;
|
12758
|
-
return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((
|
12758
|
+
return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((D) => {
|
12759
12759
|
var M;
|
12760
12760
|
return createVNode(Menu.Item, {
|
12761
|
-
key:
|
12762
|
-
class:
|
12763
|
-
"kg-var_nam":
|
12764
|
-
onClick: () =>
|
12761
|
+
key: D.id,
|
12762
|
+
class: D.id === ((M = n.currentVarGridMaster.value) == null ? void 0 : M.id) ? "selected" : "",
|
12763
|
+
"kg-var_nam": D.grd_var_nam,
|
12764
|
+
onClick: () => p(D)
|
12765
12765
|
}, {
|
12766
|
-
default: () => [n.t(
|
12766
|
+
default: () => [n.t(D.grd_var_nam).value]
|
12767
12767
|
});
|
12768
12768
|
}), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
|
12769
12769
|
key: "save-grid-view",
|
12770
|
-
onClick:
|
12770
|
+
onClick: _,
|
12771
12771
|
icon: createVNode(Icon, {
|
12772
12772
|
icon: "material-symbols:save-outline-rounded"
|
12773
12773
|
}, null)
|
@@ -12797,13 +12797,13 @@ const getProps$j = () => ({
|
|
12797
12797
|
popupClassName: "kg-table-setting--submenu-popup--row-height"
|
12798
12798
|
}, {
|
12799
12799
|
default: () => {
|
12800
|
-
let
|
12800
|
+
let D, M, K;
|
12801
12801
|
return createVNode(Fragment, null, [createVNode(Menu.Item, {
|
12802
12802
|
key: "L",
|
12803
12803
|
class: u.value === "L" ? "selected" : "",
|
12804
12804
|
onClick: () => s.store.setRowHeight(n.formID, "L")
|
12805
|
-
}, _isSlot$6(
|
12806
|
-
default: () => [
|
12805
|
+
}, _isSlot$6(D = a.t("kg.KgTable.rowHeightL")) ? D : {
|
12806
|
+
default: () => [D]
|
12807
12807
|
}), createVNode(Menu.Item, {
|
12808
12808
|
key: "M",
|
12809
12809
|
class: u.value === "M" ? "selected" : "",
|
@@ -12845,7 +12845,7 @@ const getProps$j = () => ({
|
|
12845
12845
|
"onUpdate:openKeys": (C) => o.value = C,
|
12846
12846
|
selectable: !1
|
12847
12847
|
}, {
|
12848
|
-
default: () => [
|
12848
|
+
default: () => [b(), k(), T(), I()]
|
12849
12849
|
})
|
12850
12850
|
}), d.value.visible && createVNode(KgTableSettingConfigModal, {
|
12851
12851
|
visible: d.value.visible,
|
@@ -12903,15 +12903,15 @@ const getProps$h = () => ({
|
|
12903
12903
|
s.onSubmitSave(async () => {
|
12904
12904
|
var k;
|
12905
12905
|
try {
|
12906
|
-
await ((k =
|
12906
|
+
await ((k = y.value) == null ? void 0 : k.validate());
|
12907
12907
|
} catch (I) {
|
12908
12908
|
KgUtil.throwIfNotFormError(I);
|
12909
12909
|
}
|
12910
12910
|
return !1;
|
12911
12911
|
});
|
12912
12912
|
const i = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
|
12913
|
-
var k, I, C, V, A,
|
12914
|
-
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((I = o.selectedRow.value) == null ? void 0 : I[o.id.value]) && (!!n.isCreating.value && ((C = c.value) == null ? void 0 : C.crt_flg) === 1 || !!n.isUpdating.value && ((V = c.value) == null ? void 0 : V.upt_flg) === 1 || !!n.isCopying.value && ((A = c.value) == null ? void 0 : A.cpy_flg) === 1 || !!n.isDeleting.value && ((
|
12913
|
+
var k, I, C, V, A, D;
|
12914
|
+
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((I = o.selectedRow.value) == null ? void 0 : I[o.id.value]) && (!!n.isCreating.value && ((C = c.value) == null ? void 0 : C.crt_flg) === 1 || !!n.isUpdating.value && ((V = c.value) == null ? void 0 : V.upt_flg) === 1 || !!n.isCopying.value && ((A = c.value) == null ? void 0 : A.cpy_flg) === 1 || !!n.isDeleting.value && ((D = c.value) == null ? void 0 : D.del_flg) === 1);
|
12915
12915
|
}), d = computed(() => {
|
12916
12916
|
var k, I;
|
12917
12917
|
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((I = o.selectedRow.value) == null ? void 0 : I[o.id.value]) && (!!n.isCreating.value && !!n.isCreatingRequesting.value || !!n.isUpdating.value && !!n.isUpdatingRequesting.value || !!n.isCopying.value && !!n.isCopyingRequesting.value || !!n.isDeleting.value && !!n.isDeletingRequesting.value);
|
@@ -12920,7 +12920,7 @@ const getProps$h = () => ({
|
|
12920
12920
|
let k = "kg-table-td";
|
12921
12921
|
return ((I = i.value) == null ? void 0 : I.align) === "center" ? k += " kg-table-td--center" : ((C = i.value) == null ? void 0 : C.align) === "right" && (k += " kg-table-td--right"), u.value && (k += " kg-table-td--submitting"), k;
|
12922
12922
|
}), E = computed(() => {
|
12923
|
-
var I, C, V, A,
|
12923
|
+
var I, C, V, A, D;
|
12924
12924
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
12925
12925
|
return "";
|
12926
12926
|
let k = e.kgValue;
|
@@ -12928,14 +12928,14 @@ const getProps$h = () => ({
|
|
12928
12928
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
12929
12929
|
{
|
12930
12930
|
const M = KgUtil.tryParseJSON((C = i.value) == null ? void 0 : C.display_type_properties);
|
12931
|
-
M.dscFieldName ? k = ((V = e.kgRow) == null ? void 0 : V[M.dscFieldName]) || e.kgValue : k = ((A = e.kgRow) == null ? void 0 : A[`${e.kgVarName}_dsc`]) || ((
|
12931
|
+
M.dscFieldName ? k = ((V = e.kgRow) == null ? void 0 : V[M.dscFieldName]) || e.kgValue : k = ((A = e.kgRow) == null ? void 0 : A[`${e.kgVarName}_dsc`]) || ((D = e.kgRow) == null ? void 0 : D[`${e.kgVarName}Dsc`]) || e.kgValue;
|
12932
12932
|
}
|
12933
12933
|
break;
|
12934
12934
|
}
|
12935
12935
|
return isString$1(k) && (k = k.replaceAll("\\n", `
|
12936
12936
|
`)), isNil(k) && (k = ""), k;
|
12937
|
-
}),
|
12938
|
-
function
|
12937
|
+
}), y = ref(null);
|
12938
|
+
function p(k) {
|
12939
12939
|
var I, C, V;
|
12940
12940
|
if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
12941
12941
|
switch (e.kgContext) {
|
@@ -12961,11 +12961,11 @@ const getProps$h = () => ({
|
|
12961
12961
|
}
|
12962
12962
|
}
|
12963
12963
|
}
|
12964
|
-
function
|
12964
|
+
function _() {
|
12965
12965
|
}
|
12966
12966
|
function m() {
|
12967
12967
|
return createVNode(KgForm, {
|
12968
|
-
ref:
|
12968
|
+
ref: y,
|
12969
12969
|
model: l.model.value,
|
12970
12970
|
layout: "vertical",
|
12971
12971
|
wrapperCol: {
|
@@ -12979,25 +12979,25 @@ const getProps$h = () => ({
|
|
12979
12979
|
kgRules: l.rules.value[e.kgVarName],
|
12980
12980
|
kgSpan: 24,
|
12981
12981
|
kgDisabled: d.value ? !0 : void 0,
|
12982
|
-
onKgSubmit:
|
12982
|
+
onKgSubmit: _
|
12983
12983
|
}, null)]
|
12984
12984
|
})]
|
12985
12985
|
});
|
12986
12986
|
}
|
12987
|
-
function
|
12988
|
-
var k, I, C, V, A,
|
12987
|
+
function b() {
|
12988
|
+
var k, I, C, V, A, D, M, K, L, H, w;
|
12989
12989
|
if (u.value)
|
12990
12990
|
return m();
|
12991
12991
|
switch ((k = i.value) == null ? void 0 : k.display_type) {
|
12992
12992
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
12993
|
-
const
|
12993
|
+
const O = KgUtil.tryParseJSON((I = i.value) == null ? void 0 : I.display_type_properties);
|
12994
12994
|
return createVNode(KgYesOrNo, {
|
12995
|
-
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((C =
|
12996
|
-
kgNilAsFalse:
|
12995
|
+
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((C = O.yValue) != null ? C : 1),
|
12996
|
+
kgNilAsFalse: O.nilAsFalse
|
12997
12997
|
}, null);
|
12998
12998
|
}
|
12999
12999
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
13000
|
-
const
|
13000
|
+
const O = KgUtil.tryParseJSON((V = i.value) == null ? void 0 : V.display_type_properties), R = isArrayLike(O) && O.find(($) => $.value === e.kgValue);
|
13001
13001
|
if (R) {
|
13002
13002
|
const $ = n.t(R.varName).value;
|
13003
13003
|
return $ ? createVNode(Tag, {
|
@@ -13009,9 +13009,9 @@ const getProps$h = () => ({
|
|
13009
13009
|
return T();
|
13010
13010
|
}
|
13011
13011
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
13012
|
-
const
|
13013
|
-
if (
|
13014
|
-
const R =
|
13012
|
+
const O = KgUtil.tryParseJSON((D = i.value) == null ? void 0 : D.display_type_properties);
|
13013
|
+
if (O.isTag && isArrayLike(O.tagColors)) {
|
13014
|
+
const R = O.tagColors.find(($) => $.value === e.kgValue);
|
13015
13015
|
return E.value ? createVNode(Tag, {
|
13016
13016
|
color: (M = R == null ? void 0 : R.color) != null ? M : "default"
|
13017
13017
|
}, {
|
@@ -13021,15 +13021,15 @@ const getProps$h = () => ({
|
|
13021
13021
|
return T();
|
13022
13022
|
}
|
13023
13023
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
13024
|
-
const
|
13024
|
+
const O = KgUtil.tryParseJSON((K = i.value) == null ? void 0 : K.display_type_properties), R = (H = (L = e.kgRow) == null ? void 0 : L[O.leftColumn]) != null ? H : 0;
|
13025
13025
|
switch (e.kgContext) {
|
13026
13026
|
case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
|
13027
13027
|
return R;
|
13028
13028
|
case KG_TABLE_CELL_CONTEXT.TABLE_CELL:
|
13029
13029
|
return createVNode(KgProgressA, {
|
13030
|
-
kgTextWidth:
|
13030
|
+
kgTextWidth: O.textWidth,
|
13031
13031
|
kgLeft: R,
|
13032
|
-
kgRight: (w = e.kgRow) == null ? void 0 : w[
|
13032
|
+
kgRight: (w = e.kgRow) == null ? void 0 : w[O.rightColumn]
|
13033
13033
|
}, null);
|
13034
13034
|
}
|
13035
13035
|
break;
|
@@ -13063,14 +13063,14 @@ const getProps$h = () => ({
|
|
13063
13063
|
return k && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (I += "kg-table-td-update-link"), createVNode("pre", {
|
13064
13064
|
innerHTML: E.value,
|
13065
13065
|
class: I,
|
13066
|
-
onClick:
|
13066
|
+
onClick: p
|
13067
13067
|
}, null);
|
13068
13068
|
}
|
13069
13069
|
return () => createVNode("div", {
|
13070
13070
|
class: g.value,
|
13071
13071
|
title: E.value,
|
13072
13072
|
"kg-value": e.kgValue
|
13073
|
-
}, [
|
13073
|
+
}, [b()]);
|
13074
13074
|
}
|
13075
13075
|
});
|
13076
13076
|
function _useRenderBodyCell() {
|
@@ -13087,25 +13087,25 @@ function _useRenderBodyCell() {
|
|
13087
13087
|
text: d,
|
13088
13088
|
value: g
|
13089
13089
|
} = l, E = i.dataIndex;
|
13090
|
-
let
|
13091
|
-
i.customRender ?
|
13090
|
+
let y = "";
|
13091
|
+
i.customRender ? y = i.customRender({
|
13092
13092
|
index: c,
|
13093
13093
|
record: u,
|
13094
13094
|
column: i,
|
13095
13095
|
text: d,
|
13096
13096
|
value: g,
|
13097
13097
|
renderIndex: c
|
13098
|
-
}) :
|
13099
|
-
const
|
13098
|
+
}) : y = g;
|
13099
|
+
const p = createVNode(KgTableCell, {
|
13100
13100
|
kgContext: o,
|
13101
13101
|
kgRow: u,
|
13102
|
-
kgValue:
|
13102
|
+
kgValue: y,
|
13103
13103
|
kgVarName: E,
|
13104
13104
|
onKgUpdateLinkClick: () => n(u)
|
13105
13105
|
}, null);
|
13106
13106
|
if (!((m = e == null ? void 0 : e.KgTable) != null && m.bodyCell))
|
13107
|
-
return
|
13108
|
-
const
|
13107
|
+
return p;
|
13108
|
+
const _ = t.store.getVarGridDetail(t.formID, E);
|
13109
13109
|
return e.KgTable.bodyCell({
|
13110
13110
|
column: i,
|
13111
13111
|
index: c,
|
@@ -13113,8 +13113,8 @@ function _useRenderBodyCell() {
|
|
13113
13113
|
text: d,
|
13114
13114
|
value: g,
|
13115
13115
|
row: u,
|
13116
|
-
varGridDetail:
|
13117
|
-
defaultRender:
|
13116
|
+
varGridDetail: _,
|
13117
|
+
defaultRender: p
|
13118
13118
|
});
|
13119
13119
|
}
|
13120
13120
|
return {
|
@@ -13129,7 +13129,7 @@ function _useColumns(e) {
|
|
13129
13129
|
return ((E = r.store.getVarGridConfig(r.formID)) == null ? void 0 : E.show_check_column_flg) === 1;
|
13130
13130
|
}), u = computed(() => {
|
13131
13131
|
var T, k, I;
|
13132
|
-
const E = useKg(),
|
13132
|
+
const E = useKg(), y = s.store.getDatas(r.formID), p = (T = s.store.getTableWidth(r.formID)) != null ? T : 0, _ = (k = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? k : 0, m = r.store.getCurrentVisibleVarGridDetails(r.formID), b = [{
|
13133
13133
|
dataIndex: "index",
|
13134
13134
|
width: KG_TABLE_TD_INDEX_WIDTH,
|
13135
13135
|
fixed: "left",
|
@@ -13141,7 +13141,7 @@ function _useColumns(e) {
|
|
13141
13141
|
}, ...(I = m == null ? void 0 : m.map((C, V) => {
|
13142
13142
|
var $, P, G;
|
13143
13143
|
const A = C.var_nam;
|
13144
|
-
function
|
13144
|
+
function D() {
|
13145
13145
|
return C.width === "auto" ? "auto" : Number(C.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
13146
13146
|
}
|
13147
13147
|
function M() {
|
@@ -13155,12 +13155,12 @@ function _useColumns(e) {
|
|
13155
13155
|
}
|
13156
13156
|
function L() {
|
13157
13157
|
var N, x, Y, q;
|
13158
|
-
return !(C.ord_flg !== 1 || (x = (N = t == null ? void 0 : t.value) == null ? void 0 : N.KgTable) != null && x.kgDisabled || isNil((q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) == null ? void 0 : q.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value ||
|
13158
|
+
return !(C.ord_flg !== 1 || (x = (N = t == null ? void 0 : t.value) == null ? void 0 : N.KgTable) != null && x.kgDisabled || isNil((q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) == null ? void 0 : q.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || y.length <= 0);
|
13159
13159
|
}
|
13160
13160
|
function H() {
|
13161
13161
|
var N, x, Y, q, X, J;
|
13162
|
-
if (((x = (N = E.option.value.KgTable) == null ? void 0 : N.filter) == null ? void 0 : x.on) === !0 && C.filter_flag === 1 && !((q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) != null && q.kgDisabled) && !(isNil((J = (X = t == null ? void 0 : t.value) == null ? void 0 : X.KgTable) == null ? void 0 : J.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(
|
13163
|
-
return uniqBy(
|
13162
|
+
if (((x = (N = E.option.value.KgTable) == null ? void 0 : N.filter) == null ? void 0 : x.on) === !0 && C.filter_flag === 1 && !((q = (Y = t == null ? void 0 : t.value) == null ? void 0 : Y.KgTable) != null && q.kgDisabled) && !(isNil((J = (X = t == null ? void 0 : t.value) == null ? void 0 : X.KgTable) == null ? void 0 : J.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(y.length <= 0))
|
13163
|
+
return uniqBy(y.map((ee) => {
|
13164
13164
|
var le;
|
13165
13165
|
return {
|
13166
13166
|
value: (le = ee == null ? void 0 : ee[A]) != null ? le : "",
|
@@ -13179,10 +13179,10 @@ function _useColumns(e) {
|
|
13179
13179
|
var N, x, Y;
|
13180
13180
|
return ((x = (N = E.option.value.KgTable) == null ? void 0 : N.filter) == null ? void 0 : x.on) !== !0 ? null : ((Y = o.value) == null ? void 0 : Y[A]) || null;
|
13181
13181
|
}
|
13182
|
-
function
|
13182
|
+
function O() {
|
13183
13183
|
return ["left", "center", "right"].includes(C.align || "") ? C.align : "left";
|
13184
13184
|
}
|
13185
|
-
const R =
|
13185
|
+
const R = D();
|
13186
13186
|
switch (C.ord) {
|
13187
13187
|
case 0:
|
13188
13188
|
(!i.value.field || !i.value.order) && (i.value = {
|
@@ -13205,7 +13205,7 @@ function _useColumns(e) {
|
|
13205
13205
|
resizable: typeof R == "number",
|
13206
13206
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
13207
13207
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
13208
|
-
align:
|
13208
|
+
align: O(),
|
13209
13209
|
fixed: K(),
|
13210
13210
|
sorter: L(),
|
13211
13211
|
sortOrder: (($ = i.value) == null ? void 0 : $.field) === A && (G = (P = i.value) == null ? void 0 : P.order) != null ? G : null,
|
@@ -13228,17 +13228,17 @@ function _useColumns(e) {
|
|
13228
13228
|
}
|
13229
13229
|
};
|
13230
13230
|
})) != null ? I : []];
|
13231
|
-
return (
|
13231
|
+
return (_ === 0 || p > _ && !(m != null && m.find((C) => C.width === "auto"))) && b.push({
|
13232
13232
|
width: "auto",
|
13233
13233
|
customRender: () => null
|
13234
|
-
}),
|
13234
|
+
}), b;
|
13235
13235
|
}), d = computed(() => {
|
13236
|
-
var
|
13236
|
+
var y;
|
13237
13237
|
let E = 0;
|
13238
|
-
return c.value && (E += KG_TABLE_TD_CHECK_WIDTH), E += KG_TABLE_TD_INDEX_WIDTH, E += (
|
13238
|
+
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`;
|
13239
13239
|
});
|
13240
13240
|
let g = null;
|
13241
|
-
return watch(r.currentVarGridMasteID, (E,
|
13241
|
+
return watch(r.currentVarGridMasteID, (E, y) => {
|
13242
13242
|
i.value = {}, g == null || g(), g = watch(i, () => {
|
13243
13243
|
g(), g = null, a.search({
|
13244
13244
|
isSearchFirstPage: !0
|
@@ -13291,9 +13291,9 @@ function _useDragColumn(e, t) {
|
|
13291
13291
|
width: d,
|
13292
13292
|
height: g
|
13293
13293
|
} = i.getBoundingClientRect();
|
13294
|
-
d && g && (u.style.width = `${d + 2}px`, u.style.height = `${g + 2}px`), (E = c.dataTransfer) == null || E.setDragImage(u, -10, (g + 2) / 2), toCanvas(i).then((
|
13295
|
-
var
|
13296
|
-
u.appendChild(
|
13294
|
+
d && g && (u.style.width = `${d + 2}px`, u.style.height = `${g + 2}px`), (E = c.dataTransfer) == null || E.setDragImage(u, -10, (g + 2) / 2), toCanvas(i).then((y) => {
|
13295
|
+
var p;
|
13296
|
+
u.appendChild(y), document.body.appendChild(u), (p = c.dataTransfer) == null || p.setDragImage(u, -10, (g + 2) / 2);
|
13297
13297
|
});
|
13298
13298
|
}, i.addEventListener("dragstart", i.__kg__dragstart__), i.__kg__dragend__ = (c) => {
|
13299
13299
|
i.classList.remove("dragging"), i.parentElement.classList.remove("dragging");
|
@@ -13407,7 +13407,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13407
13407
|
}
|
13408
13408
|
break;
|
13409
13409
|
case "clearDatas":
|
13410
|
-
U[0] === s.formID && (o.store.setDatas(s.formID, []),
|
13410
|
+
U[0] === s.formID && (o.store.setDatas(s.formID, []), O.total = 0, G(), c.value = []);
|
13411
13411
|
break;
|
13412
13412
|
}
|
13413
13413
|
});
|
@@ -13417,22 +13417,22 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13417
13417
|
sorterInfo: g,
|
13418
13418
|
scrollX: E
|
13419
13419
|
} = _useColumns(e), {
|
13420
|
-
isLoading:
|
13421
|
-
} = _useLoading(),
|
13422
|
-
renderBodyCell:
|
13420
|
+
isLoading: y
|
13421
|
+
} = _useLoading(), p = ref(null), {
|
13422
|
+
renderBodyCell: _
|
13423
13423
|
} = _useRenderBodyCell();
|
13424
|
-
_useResizeObserver(
|
13424
|
+
_useResizeObserver(p), _useDragColumn(p, u);
|
13425
13425
|
const {
|
13426
13426
|
datas: m,
|
13427
|
-
transformDatas:
|
13427
|
+
transformDatas: b
|
13428
13428
|
} = _useDatas(), T = computed(() => {
|
13429
13429
|
var F, U;
|
13430
13430
|
return (U = (F = s.varButtonSearch.value) == null ? void 0 : F.cmd) != null ? U : null;
|
13431
13431
|
}), k = computed(() => {
|
13432
13432
|
var U, Q, z, te, ue, ie, fe, he, Se;
|
13433
13433
|
let F = {
|
13434
|
-
pageNo:
|
13435
|
-
pageSize:
|
13434
|
+
pageNo: O.pageIndex,
|
13435
|
+
pageSize: O.pageSize,
|
13436
13436
|
column: (Q = (U = g.value) == null ? void 0 : U.field) != null ? Q : void 0,
|
13437
13437
|
order: g.value.order === "ascend" ? "asc" : g.value.order === "descend" ? "desc" : void 0,
|
13438
13438
|
...(te = (z = l.model) == null ? void 0 : z.value) != null ? te : {}
|
@@ -13456,7 +13456,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13456
13456
|
return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgCheckboxDisabled;
|
13457
13457
|
if (!isNil(e.kgCheckboxDisabled))
|
13458
13458
|
return e.kgCheckboxDisabled;
|
13459
|
-
}), V = computed(() => !!I.value ||
|
13459
|
+
}), V = computed(() => !!I.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), A = computed(() => !!I.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || O.total === 0), D = computed(() => {
|
13460
13460
|
var F;
|
13461
13461
|
return !!((F = r == null ? void 0 : r.KgTable) != null && F.expandedRowRender);
|
13462
13462
|
}), M = computed(() => {
|
@@ -13498,17 +13498,17 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13498
13498
|
var U;
|
13499
13499
|
let F = "kg-table-bottom";
|
13500
13500
|
return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (F += " kg-table-bottom--border"), F;
|
13501
|
-
}), w = (ae = o.store.getSelectedRowKeys(s.formID)) != null ? ae : ref([]),
|
13501
|
+
}), w = (ae = o.store.getSelectedRowKeys(s.formID)) != null ? ae : ref([]), O = reactive({
|
13502
13502
|
pageIndex: 1,
|
13503
13503
|
pageSize: 10,
|
13504
13504
|
total: 0
|
13505
13505
|
}), R = watch(o.pageSizeOption, (F) => {
|
13506
|
-
F && (setTimeout(() => R()),
|
13506
|
+
F && (setTimeout(() => R()), O.pageSize = F, o.store.emit(s.formID, "ready", {}), o.store.setIsReady(s.formID, !0));
|
13507
13507
|
}, {
|
13508
13508
|
immediate: !0
|
13509
13509
|
});
|
13510
13510
|
watch(o.pageSizeOptions, (F) => {
|
13511
|
-
F.length > 0 && !F.includes(
|
13511
|
+
F.length > 0 && !F.includes(O.pageSize) && (O.pageSize = o.pageSizeOption.value);
|
13512
13512
|
}), watch([T, o.isReadAutomatically, l.isReady], ([F, U, Q]) => {
|
13513
13513
|
F && U && Q && !o.store.getIsRetrieved(s.formID) && N({
|
13514
13514
|
isSearchFirstPage: !0
|
@@ -13574,7 +13574,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13574
13574
|
});
|
13575
13575
|
return;
|
13576
13576
|
}
|
13577
|
-
F.isSearchFirstPage && (
|
13577
|
+
F.isSearchFirstPage && (O.pageIndex = 1), o.store.setIsRetrieving(s.formID, !0);
|
13578
13578
|
try {
|
13579
13579
|
const ve = KgUtil.parseParams(k.value, o.profileFormID.value, t), be = ref({});
|
13580
13580
|
if (!await o.store.emit(s.formID, "beforeRetrieve", {
|
@@ -13612,14 +13612,14 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13612
13612
|
const {
|
13613
13613
|
datas: ye,
|
13614
13614
|
total: Ae
|
13615
|
-
} =
|
13615
|
+
} = b(be);
|
13616
13616
|
await o.store.emit(s.formID, "beforeSetDatas", {
|
13617
13617
|
datas: ye,
|
13618
13618
|
total: Ae,
|
13619
13619
|
setDatas(pe) {
|
13620
13620
|
o.store.setDatas(s.formID, pe);
|
13621
13621
|
}
|
13622
|
-
}), d.value = {}, o.store.setDatas(s.formID, ye.value),
|
13622
|
+
}), d.value = {}, o.store.setDatas(s.formID, ye.value), O.total = Ae.value;
|
13623
13623
|
const Ie = cloneDeep(w.value);
|
13624
13624
|
G(), c.value = [], await nextTick(), F.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, Ie.map((pe) => {
|
13625
13625
|
var Ce;
|
@@ -13693,7 +13693,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13693
13693
|
}
|
13694
13694
|
}
|
13695
13695
|
function ee(F, U) {
|
13696
|
-
U !==
|
13696
|
+
U !== O.pageSize ? (O.pageIndex = 1, O.pageSize = U) : O.pageIndex = F, N();
|
13697
13697
|
}
|
13698
13698
|
function le({
|
13699
13699
|
title: F,
|
@@ -13716,14 +13716,14 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13716
13716
|
fixed: "bottom"
|
13717
13717
|
}, {
|
13718
13718
|
default: () => [createVNode(TableSummary.Row, null, {
|
13719
|
-
default: () => [
|
13719
|
+
default: () => [D.value && createVNode(TableSummary.Cell, {
|
13720
13720
|
index: 0
|
13721
13721
|
}, null), M.value && createVNode(TableSummary.Cell, {
|
13722
|
-
index:
|
13722
|
+
index: D.value ? 1 : 0
|
13723
13723
|
}, null), u.value.map((U, Q) => {
|
13724
13724
|
const z = String(U.dataIndex), te = z ? s.store.getVarGridDetail(s.formID, z) : null, ue = (() => ["left", "center", "right"].includes((te == null ? void 0 : te.align) || "") ? te == null ? void 0 : te.align : "left")();
|
13725
13725
|
let ie = Q;
|
13726
|
-
return
|
13726
|
+
return D.value && M.value ? ie += 2 : (D.value || M.value) && (ie += 1), createVNode(TableSummary.Cell, {
|
13727
13727
|
index: ie,
|
13728
13728
|
align: ue
|
13729
13729
|
}, {
|
@@ -13748,7 +13748,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13748
13748
|
return createVNode("div", {
|
13749
13749
|
class: L.value,
|
13750
13750
|
"kg-frm_id": s.formID,
|
13751
|
-
ref:
|
13751
|
+
ref: p
|
13752
13752
|
}, [createVNode(Table, {
|
13753
13753
|
class: "kg-flex-table",
|
13754
13754
|
size: "small",
|
@@ -13760,7 +13760,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13760
13760
|
showSorterTooltip: !1,
|
13761
13761
|
columns: u.value,
|
13762
13762
|
dataSource: m.value,
|
13763
|
-
loading:
|
13763
|
+
loading: y.value,
|
13764
13764
|
rowKey: o.id.value,
|
13765
13765
|
rowClassName: (U = (F = a == null ? void 0 : a.value) == null ? void 0 : F.KgTable) == null ? void 0 : U.kgRowClassName,
|
13766
13766
|
expandColumnWidth: 28,
|
@@ -13774,7 +13774,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13774
13774
|
onExpand: J
|
13775
13775
|
}, {
|
13776
13776
|
headerCell: le,
|
13777
|
-
bodyCell:
|
13777
|
+
bodyCell: _,
|
13778
13778
|
emptyText: ge,
|
13779
13779
|
expandedRowRender: (Q = r == null ? void 0 : r.KgTable) == null ? void 0 : Q.expandedRowRender,
|
13780
13780
|
summary: me
|
@@ -13784,7 +13784,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13784
13784
|
class: "left"
|
13785
13785
|
}, [o.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
13786
13786
|
kgShowClearCheck: w.value.length > 0,
|
13787
|
-
kgShowClearTable:
|
13787
|
+
kgShowClearTable: O.total > 0,
|
13788
13788
|
kgShowLocate: w.value.length === 1,
|
13789
13789
|
kgTotal: w.value.length,
|
13790
13790
|
kgDisabled: V.value
|
@@ -13792,10 +13792,10 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13792
13792
|
class: "right"
|
13793
13793
|
}, [o.isShowBottomRight.value && createVNode(Pagination, {
|
13794
13794
|
size: "default",
|
13795
|
-
current:
|
13796
|
-
pageSize:
|
13795
|
+
current: O.pageIndex,
|
13796
|
+
pageSize: O.pageSize,
|
13797
13797
|
pageSizeOptions: o.pageSizeOptions.value.map((z) => String(z)),
|
13798
|
-
total:
|
13798
|
+
total: O.total,
|
13799
13799
|
showSizeChanger: !0,
|
13800
13800
|
showQuickJumper: !1,
|
13801
13801
|
hideOnSinglePage: !1,
|
@@ -13834,8 +13834,8 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13834
13834
|
attrs: t
|
13835
13835
|
}) {
|
13836
13836
|
const r = useKg(), a = useKgVar(), n = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), l = computed(() => {
|
13837
|
-
var u, d, g, E,
|
13838
|
-
return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? g : 0) === 0 || ((E = s.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((
|
13837
|
+
var u, d, g, E, y, p, _, m;
|
13838
|
+
return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? g : 0) === 0 || ((E = s.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((p = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? p : 0) > 1 || ((_ = s.value) == null ? void 0 : _.permission_type) === 2 && !r.p((m = s.value) == null ? void 0 : m.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13839
13839
|
});
|
13840
13840
|
async function o() {
|
13841
13841
|
e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
|
@@ -13874,6 +13874,7 @@ const useKgButtonStore = () => (store$3 || (store$3 = defineStore("KgButton", {
|
|
13874
13874
|
clickListenersMap: /* @__PURE__ */ new Map(),
|
13875
13875
|
updateBeforeClickListenersMap: /* @__PURE__ */ new Map(),
|
13876
13876
|
deleteOkListenersMap: /* @__PURE__ */ new Map(),
|
13877
|
+
importOkListenersMap: /* @__PURE__ */ new Map(),
|
13877
13878
|
otherOkListenersMap: /* @__PURE__ */ new Map(),
|
13878
13879
|
submitSaveListenersMap: /* @__PURE__ */ new Map(),
|
13879
13880
|
submitCancelListenersMap: /* @__PURE__ */ new Map()
|
@@ -13890,7 +13891,7 @@ const useKgButtonStore = () => (store$3 || (store$3 = defineStore("KgButton", {
|
|
13890
13891
|
dispose(e) {
|
13891
13892
|
if (!e)
|
13892
13893
|
return KgLogger.error("formID \u4E3A\u7A7A."), null;
|
13893
|
-
this.clickListenersMap.delete(e), this.updateBeforeClickListenersMap.delete(e), this.deleteOkListenersMap.delete(e), this.otherOkListenersMap.delete(e), this.submitSaveListenersMap.delete(e), this.submitCancelListenersMap.delete(e);
|
13894
|
+
this.clickListenersMap.delete(e), this.updateBeforeClickListenersMap.delete(e), this.deleteOkListenersMap.delete(e), this.importOkListenersMap.delete(e), this.otherOkListenersMap.delete(e), this.submitSaveListenersMap.delete(e), this.submitCancelListenersMap.delete(e);
|
13894
13895
|
},
|
13895
13896
|
addEventListener(e, t, r) {
|
13896
13897
|
switch (t) {
|
@@ -13912,6 +13913,12 @@ const useKgButtonStore = () => (store$3 || (store$3 = defineStore("KgButton", {
|
|
13912
13913
|
this.deleteOkListenersMap.set(e, [...a != null ? a : [], r]);
|
13913
13914
|
}
|
13914
13915
|
break;
|
13916
|
+
case "importOk":
|
13917
|
+
{
|
13918
|
+
const a = this.importOkListenersMap.get(e);
|
13919
|
+
this.importOkListenersMap.set(e, [...a != null ? a : [], r]);
|
13920
|
+
}
|
13921
|
+
break;
|
13915
13922
|
case "otherOk":
|
13916
13923
|
{
|
13917
13924
|
const a = this.otherOkListenersMap.get(e);
|
@@ -13955,6 +13962,13 @@ const useKgButtonStore = () => (store$3 || (store$3 = defineStore("KgButton", {
|
|
13955
13962
|
} else
|
13956
13963
|
this.deleteOkListenersMap.set(e, []);
|
13957
13964
|
break;
|
13965
|
+
case "importOk":
|
13966
|
+
if (r) {
|
13967
|
+
const a = this.importOkListenersMap.get(e);
|
13968
|
+
this.importOkListenersMap.set(e, without$1(a, r));
|
13969
|
+
} else
|
13970
|
+
this.importOkListenersMap.set(e, []);
|
13971
|
+
break;
|
13958
13972
|
case "otherOk":
|
13959
13973
|
if (r) {
|
13960
13974
|
const a = this.otherOkListenersMap.get(e);
|
@@ -13990,6 +14004,9 @@ const useKgButtonStore = () => (store$3 || (store$3 = defineStore("KgButton", {
|
|
13990
14004
|
case "deleteOk":
|
13991
14005
|
a = this.deleteOkListenersMap.get(e);
|
13992
14006
|
break;
|
14007
|
+
case "importOk":
|
14008
|
+
a = this.importOkListenersMap.get(e);
|
14009
|
+
break;
|
13993
14010
|
case "otherOk":
|
13994
14011
|
a = this.otherOkListenersMap.get(e);
|
13995
14012
|
break;
|
@@ -14018,6 +14035,7 @@ function useKgButton(e) {
|
|
14018
14035
|
onClick: onEventFactory(t.formID, r, "click"),
|
14019
14036
|
onUpdateBeforeClick: onEventFactory(t.formID, r, "updateBeforeClick"),
|
14020
14037
|
onDeleteOk: onEventFactory(t.formID, r, "deleteOk"),
|
14038
|
+
onImportOk: onEventFactory(t.formID, r, "importOk"),
|
14021
14039
|
onOtherOk: onEventFactory(t.formID, r, "otherOk"),
|
14022
14040
|
onSubmitSave: onEventFactory(t.formID, r, "submitSave"),
|
14023
14041
|
onSubmitCancel: onEventFactory(t.formID, r, "submitCancel")
|
@@ -14033,8 +14051,8 @@ const KgButtonCreate = defineComponent({
|
|
14033
14051
|
attrs: a
|
14034
14052
|
}) {
|
14035
14053
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
14036
|
-
var T, k, I, C, V, A,
|
14037
|
-
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((I = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (V = o.selectedRows.value) == null ? void 0 : V.length) != null ? A : 0) > 1 || ((
|
14054
|
+
var T, k, I, C, V, A, D, M;
|
14055
|
+
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((I = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (V = o.selectedRows.value) == null ? void 0 : V.length) != null ? A : 0) > 1 || ((D = c.value) == null ? void 0 : D.permission_type) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14038
14056
|
}), d = computed(() => !!s.isCreatingRequesting.value);
|
14039
14057
|
async function g() {
|
14040
14058
|
e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
|
@@ -14042,17 +14060,17 @@ const KgButtonCreate = defineComponent({
|
|
14042
14060
|
function E() {
|
14043
14061
|
l.store.emit(s.formID, "submitSave", {});
|
14044
14062
|
}
|
14045
|
-
function
|
14063
|
+
function y() {
|
14046
14064
|
l.store.emit(s.formID, "submitCancel", {});
|
14047
14065
|
}
|
14048
|
-
function
|
14066
|
+
function p() {
|
14049
14067
|
return e.kgIcon ? createVNode("span", {
|
14050
14068
|
class: "anticon"
|
14051
14069
|
}, [createVNode(Icon, {
|
14052
14070
|
icon: e.kgIcon
|
14053
14071
|
}, null)]) : createVNode(PlusOutlined$1, null, null);
|
14054
14072
|
}
|
14055
|
-
function
|
14073
|
+
function _() {
|
14056
14074
|
return e.kgText ? e.kgText : n.t("kg.create");
|
14057
14075
|
}
|
14058
14076
|
function m() {
|
@@ -14067,10 +14085,10 @@ const KgButtonCreate = defineComponent({
|
|
14067
14085
|
"kg-var_nam": (I = c.value) == null ? void 0 : I.var_nam,
|
14068
14086
|
"kg-cmd": (C = c.value) == null ? void 0 : C.cmd
|
14069
14087
|
}, {
|
14070
|
-
default: () => [
|
14088
|
+
default: () => [p(), _()]
|
14071
14089
|
});
|
14072
14090
|
}
|
14073
|
-
function
|
14091
|
+
function b() {
|
14074
14092
|
return i.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
14075
14093
|
type: "primary",
|
14076
14094
|
onClick: E,
|
@@ -14081,20 +14099,20 @@ const KgButtonCreate = defineComponent({
|
|
14081
14099
|
type: "primary",
|
14082
14100
|
ghost: !d.value,
|
14083
14101
|
disabled: d.value,
|
14084
|
-
onClick:
|
14102
|
+
onClick: y
|
14085
14103
|
}, {
|
14086
14104
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
14087
14105
|
})]);
|
14088
14106
|
}
|
14089
|
-
return () => createVNode(Fragment, null, [m(),
|
14107
|
+
return () => createVNode(Fragment, null, [m(), b()]);
|
14090
14108
|
}
|
14091
14109
|
}), KgButtonDelete = defineComponent({
|
14092
14110
|
name: "KgButtonDelete",
|
14093
14111
|
props: getProps$f(),
|
14094
14112
|
setup(e) {
|
14095
14113
|
const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), s = computed(() => {
|
14096
|
-
var c, u, d, g, E,
|
14097
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((g = n.value) == null ? void 0 : g.dis_mult_select_flg) === 1 && ((
|
14114
|
+
var c, u, d, g, E, y, p, _;
|
14115
|
+
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 || ((p = n.value) == null ? void 0 : p.permission_type) === 2 && !t.p((_ = n.value) == null ? void 0 : _.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14098
14116
|
});
|
14099
14117
|
async function l() {
|
14100
14118
|
e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
|
@@ -14131,31 +14149,31 @@ const KgButtonCreate = defineComponent({
|
|
14131
14149
|
props: getProps$f(),
|
14132
14150
|
setup(e) {
|
14133
14151
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), s = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), l = computed(() => {
|
14134
|
-
var
|
14135
|
-
return s.value ? (
|
14152
|
+
var y, p;
|
14153
|
+
return s.value ? (p = (y = s.value) == null ? void 0 : y.cmd) != null ? p : "" : null;
|
14136
14154
|
}), o = computed(() => {
|
14137
|
-
var
|
14138
|
-
return (
|
14155
|
+
var y, p;
|
14156
|
+
return (p = (y = s.value) == null ? void 0 : y.cmd_method) != null ? p : "GET";
|
14139
14157
|
}), i = computed(() => {
|
14140
|
-
var
|
14141
|
-
let
|
14158
|
+
var p, _, m, b, T, k;
|
14159
|
+
let y = {
|
14142
14160
|
pageNo: 1,
|
14143
14161
|
pageSize: 9999999,
|
14144
|
-
...(
|
14162
|
+
...(p = a.model.value) != null ? p : {}
|
14145
14163
|
};
|
14146
|
-
return s.value && (
|
14147
|
-
...
|
14148
|
-
...KgVarUtil.parseCommandParameter((m = (
|
14149
|
-
}), (
|
14150
|
-
...
|
14164
|
+
return s.value && (y = {
|
14165
|
+
...y,
|
14166
|
+
...KgVarUtil.parseCommandParameter((m = (_ = s.value) == null ? void 0 : _.cmd_prm) != null ? m : "")
|
14167
|
+
}), (b = r.varGridConfig.value) != null && b.cmd_prm && (y = {
|
14168
|
+
...y,
|
14151
14169
|
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
14152
|
-
}), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 &&
|
14170
|
+
}), ((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;
|
14153
14171
|
}), c = computed(() => {
|
14154
|
-
var
|
14155
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((
|
14172
|
+
var y, p, _, m, b, T, k, I;
|
14173
|
+
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 : p.length) != null ? _ : 0) === 0 || ((m = s.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((I = s.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14156
14174
|
}), u = ref(!1);
|
14157
14175
|
async function d() {
|
14158
|
-
var
|
14176
|
+
var y, p;
|
14159
14177
|
if (!(e.onKgClick && await e.onKgClick())) {
|
14160
14178
|
if (!l.value) {
|
14161
14179
|
KgLogger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -14165,7 +14183,7 @@ const KgButtonCreate = defineComponent({
|
|
14165
14183
|
}
|
14166
14184
|
u.value = !0;
|
14167
14185
|
try {
|
14168
|
-
const
|
14186
|
+
const _ = await httpClient().request({
|
14169
14187
|
method: o.value,
|
14170
14188
|
url: l.value,
|
14171
14189
|
params: i.value,
|
@@ -14173,10 +14191,10 @@ const KgButtonCreate = defineComponent({
|
|
14173
14191
|
}, {
|
14174
14192
|
joinParamsToUrl: !0,
|
14175
14193
|
isTransformResponse: !1
|
14176
|
-
}), m = (
|
14177
|
-
KgUtil.downloadFile(
|
14178
|
-
} catch (
|
14179
|
-
throw
|
14194
|
+
}), m = (y = s.value) == null ? void 0 : y.export_excel_filename;
|
14195
|
+
KgUtil.downloadFile(_, `${m ? r.t(m).value : t.t("kg.export")}.${(p = s.value) == null ? void 0 : p.export_excel_suffix}`);
|
14196
|
+
} catch (_) {
|
14197
|
+
throw _;
|
14180
14198
|
} finally {
|
14181
14199
|
u.value = !1;
|
14182
14200
|
}
|
@@ -14193,16 +14211,16 @@ const KgButtonCreate = defineComponent({
|
|
14193
14211
|
return e.kgText ? e.kgText : t.t("kg.export");
|
14194
14212
|
}
|
14195
14213
|
return () => {
|
14196
|
-
var
|
14214
|
+
var y, p, _, m;
|
14197
14215
|
return createVNode(Button, {
|
14198
14216
|
type: "primary",
|
14199
14217
|
disabled: c.value,
|
14200
14218
|
ghost: !e.kgPrimary && !c.value,
|
14201
14219
|
loading: u.value,
|
14202
14220
|
onClick: d,
|
14203
|
-
"kg-id": (
|
14204
|
-
"kg-frm_id": (
|
14205
|
-
"kg-var_nam": (
|
14221
|
+
"kg-id": (y = s.value) == null ? void 0 : y.id,
|
14222
|
+
"kg-frm_id": (p = s.value) == null ? void 0 : p.frm_id,
|
14223
|
+
"kg-var_nam": (_ = s.value) == null ? void 0 : _.var_nam,
|
14206
14224
|
"kg-cmd": (m = s.value) == null ? void 0 : m.cmd
|
14207
14225
|
}, {
|
14208
14226
|
default: () => [g(), E()]
|
@@ -14217,57 +14235,61 @@ const KgButtonCreate = defineComponent({
|
|
14217
14235
|
slots: t,
|
14218
14236
|
attrs: r
|
14219
14237
|
}) {
|
14220
|
-
const a = useKg(), n = useKgVar(), s = useKgSearch(), l =
|
14221
|
-
var
|
14222
|
-
return
|
14223
|
-
}), c = computed(() => {
|
14224
|
-
var p, m;
|
14225
|
-
return (m = (p = o.value) == null ? void 0 : p.cmd_method) != null ? m : "POST";
|
14238
|
+
const a = useKg(), n = useKgVar(), s = useKgSearch(), l = useKgButton(), o = useKgTable(), i = computed(() => n.store.getVarButton(n.formID, e.kgVarName)), c = computed(() => {
|
14239
|
+
var m, b;
|
14240
|
+
return i.value ? (b = (m = i.value) == null ? void 0 : m.cmd) != null ? b : "" : null;
|
14226
14241
|
}), u = computed(() => {
|
14227
|
-
var m,
|
14228
|
-
|
14229
|
-
...(m = s.model.value) != null ? m : {}
|
14230
|
-
};
|
14231
|
-
return o.value && (p = {
|
14232
|
-
...p,
|
14233
|
-
...KgVarUtil.parseCommandParameter((T = (y = o.value) == null ? void 0 : y.cmd_prm) != null ? T : "")
|
14234
|
-
}), p;
|
14242
|
+
var m, b;
|
14243
|
+
return (b = (m = i.value) == null ? void 0 : m.cmd_method) != null ? b : "POST";
|
14235
14244
|
}), d = computed(() => {
|
14236
|
-
var
|
14237
|
-
|
14238
|
-
|
14239
|
-
|
14240
|
-
|
14245
|
+
var b, T, k;
|
14246
|
+
let m = {
|
14247
|
+
...(b = s.model.value) != null ? b : {}
|
14248
|
+
};
|
14249
|
+
return i.value && (m = {
|
14250
|
+
...m,
|
14251
|
+
...KgVarUtil.parseCommandParameter((k = (T = i.value) == null ? void 0 : T.cmd_prm) != null ? k : "")
|
14252
|
+
}), m;
|
14253
|
+
}), g = computed(() => {
|
14254
|
+
var m, b, T, k, I, C, V, A;
|
14255
|
+
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || o.isRetrieving.value || ((m = i.value) == null ? void 0 : m.dis_no_select_flg) === 1 && ((T = (b = o.selectedRows.value) == null ? void 0 : b.length) != null ? T : 0) === 0 || ((k = i.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((C = (I = o.selectedRows.value) == null ? void 0 : I.length) != null ? C : 0) > 1 || ((V = i.value) == null ? void 0 : V.permission_type) === 2 && !a.p((A = i.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14256
|
+
}), E = ref(!1);
|
14257
|
+
async function y(m) {
|
14258
|
+
if (!c.value)
|
14241
14259
|
return KgLogger.error("[KgButton] '\u5BFC\u5165\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
14242
|
-
VarButton:
|
14260
|
+
VarButton: i.value
|
14243
14261
|
}), !1;
|
14244
|
-
|
14262
|
+
E.value = !0;
|
14245
14263
|
try {
|
14246
|
-
const
|
14247
|
-
|
14248
|
-
const
|
14249
|
-
method:
|
14264
|
+
const b = new FormData();
|
14265
|
+
b.append("file", m);
|
14266
|
+
const T = await httpClient().axiosInstance.request({
|
14267
|
+
method: u.value,
|
14250
14268
|
baseURL: window._CONFIG.domianURL,
|
14251
|
-
url:
|
14252
|
-
params: KgUtil.parseParams(
|
14253
|
-
data:
|
14269
|
+
url: c.value,
|
14270
|
+
params: KgUtil.parseParams(d.value),
|
14271
|
+
data: b,
|
14254
14272
|
headers: {
|
14255
14273
|
"Content-Type": "multipart/form-data;charset=UTF-8",
|
14256
14274
|
ignoreCancelToken: !0
|
14257
14275
|
}
|
14258
14276
|
});
|
14277
|
+
if (await l.store.emit(n.formID, "importOk", {
|
14278
|
+
button: i.value
|
14279
|
+
}))
|
14280
|
+
return !1;
|
14259
14281
|
message.success(a.t("kg.importSuccess")), s.search({
|
14260
14282
|
isSearchFirstPage: !0
|
14261
14283
|
});
|
14262
|
-
} catch (
|
14263
|
-
throw
|
14284
|
+
} catch (b) {
|
14285
|
+
throw b;
|
14264
14286
|
} finally {
|
14265
|
-
|
14287
|
+
E.value = !1;
|
14266
14288
|
}
|
14267
14289
|
return !1;
|
14268
14290
|
}
|
14269
|
-
function
|
14270
|
-
return
|
14291
|
+
function p() {
|
14292
|
+
return E.value ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
|
14271
14293
|
class: "anticon"
|
14272
14294
|
}, [createVNode(Icon, {
|
14273
14295
|
icon: e.kgIcon
|
@@ -14279,23 +14301,23 @@ const KgButtonCreate = defineComponent({
|
|
14279
14301
|
return () => createVNode(Upload, {
|
14280
14302
|
name: "file",
|
14281
14303
|
showUploadList: !1,
|
14282
|
-
beforeUpload:
|
14283
|
-
disabled:
|
14304
|
+
beforeUpload: y,
|
14305
|
+
disabled: E.value
|
14284
14306
|
}, {
|
14285
14307
|
default: () => {
|
14286
|
-
var
|
14308
|
+
var m, b, T, k;
|
14287
14309
|
return [createVNode(Button, {
|
14288
14310
|
class: r.class,
|
14289
14311
|
type: "primary",
|
14290
|
-
disabled:
|
14291
|
-
ghost: !e.kgPrimary && !
|
14292
|
-
loading:
|
14293
|
-
"kg-id": (
|
14294
|
-
"kg-frm_id": (
|
14295
|
-
"kg-var_nam": (
|
14296
|
-
"kg-cmd": (
|
14312
|
+
disabled: g.value,
|
14313
|
+
ghost: !e.kgPrimary && !g.value,
|
14314
|
+
loading: E.value,
|
14315
|
+
"kg-id": (m = i.value) == null ? void 0 : m.id,
|
14316
|
+
"kg-frm_id": (b = i.value) == null ? void 0 : b.frm_id,
|
14317
|
+
"kg-var_nam": (T = i.value) == null ? void 0 : T.var_nam,
|
14318
|
+
"kg-cmd": (k = i.value) == null ? void 0 : k.cmd
|
14297
14319
|
}, {
|
14298
|
-
default: () => [
|
14320
|
+
default: () => [p(), _()]
|
14299
14321
|
})];
|
14300
14322
|
}
|
14301
14323
|
});
|
@@ -14305,29 +14327,29 @@ const KgButtonCreate = defineComponent({
|
|
14305
14327
|
props: getProps$f(),
|
14306
14328
|
setup(e) {
|
14307
14329
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), s = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), l = computed(() => {
|
14308
|
-
var
|
14309
|
-
return s.value ? (
|
14330
|
+
var y, p;
|
14331
|
+
return s.value ? (p = (y = s.value) == null ? void 0 : y.cmd) != null ? p : "" : null;
|
14310
14332
|
}), o = computed(() => {
|
14311
|
-
var
|
14312
|
-
return (
|
14333
|
+
var y, p;
|
14334
|
+
return (p = (y = s.value) == null ? void 0 : y.cmd_method) != null ? p : "GET";
|
14313
14335
|
}), i = computed(() => {
|
14314
|
-
var
|
14315
|
-
let
|
14316
|
-
...(
|
14336
|
+
var p, _, m, b, T;
|
14337
|
+
let y = {
|
14338
|
+
...(p = a.model.value) != null ? p : {}
|
14317
14339
|
};
|
14318
|
-
return s.value && (
|
14319
|
-
...
|
14320
|
-
...KgVarUtil.parseCommandParameter((m = (
|
14321
|
-
}), (
|
14322
|
-
...
|
14340
|
+
return s.value && (y = {
|
14341
|
+
...y,
|
14342
|
+
...KgVarUtil.parseCommandParameter((m = (_ = s.value) == null ? void 0 : _.cmd_prm) != null ? m : "")
|
14343
|
+
}), (b = r.varGridConfig.value) != null && b.cmd_prm && (y = {
|
14344
|
+
...y,
|
14323
14345
|
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
14324
|
-
}),
|
14346
|
+
}), y;
|
14325
14347
|
}), c = computed(() => {
|
14326
|
-
var
|
14327
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((
|
14348
|
+
var y, p, _, m, b, T, k, I;
|
14349
|
+
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 : p.length) != null ? _ : 0) === 0 || ((m = s.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((I = s.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14328
14350
|
}), u = ref(!1);
|
14329
14351
|
async function d() {
|
14330
|
-
var
|
14352
|
+
var y, p;
|
14331
14353
|
if (!l.value) {
|
14332
14354
|
KgLogger.error("[KgButton] '\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
14333
14355
|
VarButton: s.value
|
@@ -14336,7 +14358,7 @@ const KgButtonCreate = defineComponent({
|
|
14336
14358
|
}
|
14337
14359
|
u.value = !0;
|
14338
14360
|
try {
|
14339
|
-
const
|
14361
|
+
const _ = await httpClient().request({
|
14340
14362
|
method: o.value,
|
14341
14363
|
url: l.value,
|
14342
14364
|
params: i.value,
|
@@ -14344,10 +14366,10 @@ const KgButtonCreate = defineComponent({
|
|
14344
14366
|
}, {
|
14345
14367
|
joinParamsToUrl: !0,
|
14346
14368
|
isTransformResponse: !1
|
14347
|
-
}), m = (
|
14348
|
-
KgUtil.downloadFile(
|
14349
|
-
} catch (
|
14350
|
-
throw
|
14369
|
+
}), m = (y = s.value) == null ? void 0 : y.export_excel_filename;
|
14370
|
+
KgUtil.downloadFile(_, `${m ? r.t(m).value : t.t("kg.importTemplate")}.${(p = s.value) == null ? void 0 : p.export_excel_suffix}`);
|
14371
|
+
} catch (_) {
|
14372
|
+
throw _;
|
14351
14373
|
} finally {
|
14352
14374
|
u.value = !1;
|
14353
14375
|
}
|
@@ -14363,16 +14385,16 @@ const KgButtonCreate = defineComponent({
|
|
14363
14385
|
return e.kgText ? e.kgText : t.t("kg.downloadImportTemplate");
|
14364
14386
|
}
|
14365
14387
|
return () => {
|
14366
|
-
var
|
14388
|
+
var y, p, _, m;
|
14367
14389
|
return createVNode(Button, {
|
14368
14390
|
type: "primary",
|
14369
14391
|
disabled: c.value,
|
14370
14392
|
ghost: !e.kgPrimary && !c.value,
|
14371
14393
|
loading: u.value,
|
14372
14394
|
onClick: d,
|
14373
|
-
"kg-id": (
|
14374
|
-
"kg-frm_id": (
|
14375
|
-
"kg-var_nam": (
|
14395
|
+
"kg-id": (y = s.value) == null ? void 0 : y.id,
|
14396
|
+
"kg-frm_id": (p = s.value) == null ? void 0 : p.frm_id,
|
14397
|
+
"kg-var_nam": (_ = s.value) == null ? void 0 : _.var_nam,
|
14376
14398
|
"kg-cmd": (m = s.value) == null ? void 0 : m.cmd
|
14377
14399
|
}, {
|
14378
14400
|
default: () => [g(), E()]
|
@@ -14384,14 +14406,14 @@ const KgButtonCreate = defineComponent({
|
|
14384
14406
|
props: getProps$f(),
|
14385
14407
|
setup(e) {
|
14386
14408
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgButton(), s = useKgTable(), l = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
14387
|
-
var d, g, E,
|
14388
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = l.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((E = (g = s.selectedRows.value) == null ? void 0 : g.length) != null ? E : 0) === 0 || ((
|
14409
|
+
var d, g, E, y, p, _, m, b;
|
14410
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = l.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((E = (g = s.selectedRows.value) == null ? void 0 : g.length) != null ? E : 0) === 0 || ((y = l.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((_ = (p = s.selectedRows.value) == null ? void 0 : p.length) != null ? _ : 0) > 1 || ((m = l.value) == null ? void 0 : m.permission_type) === 2 && !t.p((b = l.value) == null ? void 0 : b.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14389
14411
|
});
|
14390
14412
|
async function i() {
|
14391
|
-
var
|
14413
|
+
var y, p, _;
|
14392
14414
|
if (e.onKgClick && await e.onKgClick())
|
14393
14415
|
return;
|
14394
|
-
const d = (
|
14416
|
+
const d = (y = e.kgButton) == null ? void 0 : y.cmd;
|
14395
14417
|
if (!d) {
|
14396
14418
|
KgLogger.error("[KgButton] \u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
14397
14419
|
VarButton: e.kgButton
|
@@ -14400,12 +14422,12 @@ const KgButtonCreate = defineComponent({
|
|
14400
14422
|
}
|
14401
14423
|
let g = null;
|
14402
14424
|
const E = async () => {
|
14403
|
-
var
|
14425
|
+
var b, T, k, I, C, V;
|
14404
14426
|
g == null || g.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
14405
14427
|
const m = s.selectedRows.value;
|
14406
14428
|
try {
|
14407
14429
|
const A = await httpClient().request({
|
14408
|
-
method: (T = (
|
14430
|
+
method: (T = (b = e.kgButton) == null ? void 0 : b.cmd_method) != null ? T : "POST",
|
14409
14431
|
url: d,
|
14410
14432
|
params: KgVarUtil.parseCommandParameter((I = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? I : ""),
|
14411
14433
|
data: m != null ? m : []
|
@@ -14435,8 +14457,8 @@ const KgButtonCreate = defineComponent({
|
|
14435
14457
|
r.store.setIsOtherRequesting(r.formID, !1), g == null || g.hideLoading();
|
14436
14458
|
}
|
14437
14459
|
};
|
14438
|
-
if (((
|
14439
|
-
const m = KgUtil.tryParseJSON((
|
14460
|
+
if (((p = e.kgButton) == null ? void 0 : p.show_modal_flg) === 1) {
|
14461
|
+
const m = KgUtil.tryParseJSON((_ = e.kgButton) == null ? void 0 : _.modal_props);
|
14440
14462
|
typeof m.content == "string" && (m.content = r.t(m.content).value), g = KgUtil.confirm({
|
14441
14463
|
onOk: () => E(),
|
14442
14464
|
...m
|
@@ -14455,7 +14477,7 @@ const KgButtonCreate = defineComponent({
|
|
14455
14477
|
return e.kgText ? e.kgText : t.t("kg.button");
|
14456
14478
|
}
|
14457
14479
|
return () => {
|
14458
|
-
var d, g, E,
|
14480
|
+
var d, g, E, y;
|
14459
14481
|
return createVNode(Button, {
|
14460
14482
|
type: "primary",
|
14461
14483
|
disabled: o.value,
|
@@ -14465,7 +14487,7 @@ const KgButtonCreate = defineComponent({
|
|
14465
14487
|
"kg-id": (d = l.value) == null ? void 0 : d.id,
|
14466
14488
|
"kg-frm_id": (g = l.value) == null ? void 0 : g.frm_id,
|
14467
14489
|
"kg-var_nam": (E = l.value) == null ? void 0 : E.var_nam,
|
14468
|
-
"kg-cmd": (
|
14490
|
+
"kg-cmd": (y = l.value) == null ? void 0 : y.cmd
|
14469
14491
|
}, {
|
14470
14492
|
default: () => [c(), u()]
|
14471
14493
|
});
|
@@ -14530,8 +14552,8 @@ const KgButtonCreate = defineComponent({
|
|
14530
14552
|
}
|
14531
14553
|
});
|
14532
14554
|
const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
14533
|
-
var T, k, I, C, V, A,
|
14534
|
-
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((I = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (V = l.selectedRows.value) == null ? void 0 : V.length) != null ? A : 0) > 1 || ((
|
14555
|
+
var T, k, I, C, V, A, D, M;
|
14556
|
+
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((I = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((C = c.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (V = l.selectedRows.value) == null ? void 0 : V.length) != null ? A : 0) > 1 || ((D = c.value) == null ? void 0 : D.permission_type) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14535
14557
|
}), d = computed(() => !!s.isUpdatingRequesting.value);
|
14536
14558
|
async function g() {
|
14537
14559
|
e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
|
@@ -14542,17 +14564,17 @@ const KgButtonCreate = defineComponent({
|
|
14542
14564
|
function E() {
|
14543
14565
|
o.store.emit(s.formID, "submitSave", {});
|
14544
14566
|
}
|
14545
|
-
function
|
14567
|
+
function y() {
|
14546
14568
|
o.store.emit(s.formID, "submitCancel", {});
|
14547
14569
|
}
|
14548
|
-
function
|
14570
|
+
function p() {
|
14549
14571
|
return e.kgIcon ? createVNode("span", {
|
14550
14572
|
class: "anticon"
|
14551
14573
|
}, [createVNode(Icon, {
|
14552
14574
|
icon: e.kgIcon
|
14553
14575
|
}, null)]) : createVNode(EditOutlined$1, null, null);
|
14554
14576
|
}
|
14555
|
-
function
|
14577
|
+
function _() {
|
14556
14578
|
return e.kgText ? e.kgText : n.t("kg.update");
|
14557
14579
|
}
|
14558
14580
|
function m() {
|
@@ -14568,10 +14590,10 @@ const KgButtonCreate = defineComponent({
|
|
14568
14590
|
"kg-var_nam": (I = c.value) == null ? void 0 : I.var_nam,
|
14569
14591
|
"kg-cmd": (C = c.value) == null ? void 0 : C.cmd
|
14570
14592
|
}, {
|
14571
|
-
default: () => [
|
14593
|
+
default: () => [p(), _()]
|
14572
14594
|
});
|
14573
14595
|
}
|
14574
|
-
function
|
14596
|
+
function b() {
|
14575
14597
|
return i.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
14576
14598
|
type: "primary",
|
14577
14599
|
onClick: E,
|
@@ -14582,12 +14604,12 @@ const KgButtonCreate = defineComponent({
|
|
14582
14604
|
type: "primary",
|
14583
14605
|
ghost: !d.value,
|
14584
14606
|
disabled: d.value,
|
14585
|
-
onClick:
|
14607
|
+
onClick: y
|
14586
14608
|
}, {
|
14587
14609
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
14588
14610
|
})]);
|
14589
14611
|
}
|
14590
|
-
return () => createVNode(Fragment, null, [m(),
|
14612
|
+
return () => createVNode(Fragment, null, [m(), b()]);
|
14591
14613
|
}
|
14592
14614
|
}), KgButton_Item = "";
|
14593
14615
|
function _isSlot$4(e) {
|
@@ -14656,22 +14678,22 @@ const getProps$e = () => ({
|
|
14656
14678
|
props: getProps$e(),
|
14657
14679
|
setup(e) {
|
14658
14680
|
const t = inject(DI_KG_VAR__KG_SLOTS, null), r = inject(DI_KG_VAR__KG_PROPS, null), a = useKg(), n = useKgVar(), s = useKgButton(), l = computed(() => !1);
|
14659
|
-
function o(
|
14660
|
-
return s.store.emit(n.formID, "click",
|
14681
|
+
function o(p) {
|
14682
|
+
return s.store.emit(n.formID, "click", p);
|
14661
14683
|
}
|
14662
|
-
function i(
|
14684
|
+
function i(p) {
|
14663
14685
|
return computed(() => {
|
14664
|
-
var m,
|
14665
|
-
const
|
14666
|
-
if (
|
14667
|
-
const T = p
|
14686
|
+
var m, b;
|
14687
|
+
const _ = ((b = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgButton) == null ? void 0 : b.kgDisabled) || e.kgDisabled;
|
14688
|
+
if (_) {
|
14689
|
+
const T = _(p);
|
14668
14690
|
if (!isNil(T))
|
14669
14691
|
return T;
|
14670
14692
|
}
|
14671
14693
|
});
|
14672
14694
|
}
|
14673
|
-
function c(
|
14674
|
-
switch (
|
14695
|
+
function c(p) {
|
14696
|
+
switch (p.primary_flg) {
|
14675
14697
|
case 1:
|
14676
14698
|
return !0;
|
14677
14699
|
case 0:
|
@@ -14680,39 +14702,39 @@ const getProps$e = () => ({
|
|
14680
14702
|
return;
|
14681
14703
|
}
|
14682
14704
|
}
|
14683
|
-
function u(
|
14684
|
-
if (n.t(
|
14685
|
-
return n.t(
|
14705
|
+
function u(p) {
|
14706
|
+
if (n.t(p.var_nam).value !== p.var_nam)
|
14707
|
+
return n.t(p.var_nam).value;
|
14686
14708
|
}
|
14687
14709
|
function d() {
|
14688
|
-
var
|
14689
|
-
if (!n.varButtons.value || ((
|
14710
|
+
var p, _;
|
14711
|
+
if (!n.varButtons.value || ((p = n.varButtons.value) == null ? void 0 : p.length) === 0)
|
14690
14712
|
return null;
|
14691
|
-
switch ((
|
14713
|
+
switch ((_ = n.varGridConfig.value) == null ? void 0 : _.button_display_type) {
|
14692
14714
|
case KG_BUTTON_DISPLAY_TYPE.SELECT:
|
14693
|
-
return
|
14715
|
+
return y();
|
14694
14716
|
default:
|
14695
14717
|
return E();
|
14696
14718
|
}
|
14697
14719
|
}
|
14698
|
-
function g(
|
14720
|
+
function g(p) {
|
14699
14721
|
return createVNode(KgButtonItem, {
|
14700
|
-
kgButton:
|
14701
|
-
kgVarName:
|
14702
|
-
kgType:
|
14703
|
-
kgIcon:
|
14704
|
-
kgText: u(
|
14705
|
-
kgColor:
|
14706
|
-
kgPrimary: c(
|
14707
|
-
kgDisabled: i(
|
14708
|
-
onKgClick: () => o(
|
14722
|
+
kgButton: p,
|
14723
|
+
kgVarName: p.var_nam,
|
14724
|
+
kgType: p.typ,
|
14725
|
+
kgIcon: p.icon,
|
14726
|
+
kgText: u(p),
|
14727
|
+
kgColor: p.color,
|
14728
|
+
kgPrimary: c(p),
|
14729
|
+
kgDisabled: i(p).value,
|
14730
|
+
onKgClick: () => o(p)
|
14709
14731
|
}, null);
|
14710
14732
|
}
|
14711
14733
|
function E() {
|
14712
|
-
var
|
14713
|
-
return (
|
14734
|
+
var p;
|
14735
|
+
return (p = n.varButtons.value) == null ? void 0 : p.filter((_) => _.typ !== KG_BUTTON_TYPE.SEARCH).map((_) => g(_));
|
14714
14736
|
}
|
14715
|
-
function
|
14737
|
+
function y() {
|
14716
14738
|
return createVNode(Dropdown, {
|
14717
14739
|
trigger: "click",
|
14718
14740
|
overlayClassName: "kg-button-dropdown"
|
@@ -14724,11 +14746,11 @@ const getProps$e = () => ({
|
|
14724
14746
|
}),
|
14725
14747
|
overlay: () => createVNode(Menu, null, {
|
14726
14748
|
default: () => {
|
14727
|
-
var
|
14728
|
-
return [(
|
14729
|
-
let
|
14730
|
-
return createVNode(Menu.Item, null, _isSlot$3(
|
14731
|
-
default: () => [
|
14749
|
+
var p, _;
|
14750
|
+
return [(_ = (p = n.varButtons.value) == null ? void 0 : p.filter((m) => m.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : _.filter((m) => !(m.permission_type !== 2 && !a.p(m.permission_code))).map((m) => {
|
14751
|
+
let b;
|
14752
|
+
return createVNode(Menu.Item, null, _isSlot$3(b = g(m)) ? b : {
|
14753
|
+
default: () => [b]
|
14732
14754
|
});
|
14733
14755
|
})];
|
14734
14756
|
}
|
@@ -14742,8 +14764,8 @@ const getProps$e = () => ({
|
|
14742
14764
|
spinning: l.value
|
14743
14765
|
}, {
|
14744
14766
|
default: () => {
|
14745
|
-
var
|
14746
|
-
return [d(), (
|
14767
|
+
var p, _;
|
14768
|
+
return [d(), (_ = (p = t == null ? void 0 : t.KgButton) == null ? void 0 : p.right) == null ? void 0 : _.call(p)];
|
14747
14769
|
}
|
14748
14770
|
})]);
|
14749
14771
|
}
|
@@ -15216,17 +15238,17 @@ function _useDragRow(e, t, r) {
|
|
15216
15238
|
if (n = filter(document.querySelectorAll(`tr[kg-host-frm_id="${e}"] > td.handler`), () => !0), n)
|
15217
15239
|
for (let u of n)
|
15218
15240
|
u.__kg__dragstart__ = async (d) => {
|
15219
|
-
var
|
15241
|
+
var _, m;
|
15220
15242
|
s = u.parentElement, u.classList.add("dragging"), u.parentElement.classList.add("dragging");
|
15221
15243
|
const g = document.createElement("span");
|
15222
15244
|
g.setAttribute("id", "__kg_search_config_fields_drag_image__");
|
15223
15245
|
const {
|
15224
15246
|
width: E,
|
15225
|
-
height:
|
15247
|
+
height: y
|
15226
15248
|
} = u.parentElement.getBoundingClientRect();
|
15227
|
-
E &&
|
15228
|
-
const
|
15229
|
-
g.appendChild(
|
15249
|
+
E && y && (g.style.width = `${E + 2}px`, g.style.height = `${y + 2}px`), (_ = d.dataTransfer) == null || _.setDragImage(g, -10, (y + 2) / 2);
|
15250
|
+
const p = await toCanvas(u.parentElement);
|
15251
|
+
g.appendChild(p), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (y + 2) / 2);
|
15230
15252
|
}, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
|
15231
15253
|
u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
|
15232
15254
|
const g = document.querySelector("#__kg_search_config_fields_drag_image__");
|
@@ -15250,8 +15272,8 @@ function _useDragRow(e, t, r) {
|
|
15250
15272
|
d.preventDefault(), KgUtil.showLoading();
|
15251
15273
|
const g = document.querySelector("#__kg_search_config_fields_drag_image__");
|
15252
15274
|
g && document.body.removeChild(g), u.classList.remove("dragover", "dragover-right", "dragover-left");
|
15253
|
-
const E = s == null ? void 0 : s.getAttribute("kg-var_nam"),
|
15254
|
-
E !==
|
15275
|
+
const E = s == null ? void 0 : s.getAttribute("kg-var_nam"), y = u.getAttribute("kg-var_nam");
|
15276
|
+
E !== y && i(E, y);
|
15255
15277
|
}, u.addEventListener("drop", u.__kg__drop__);
|
15256
15278
|
}
|
15257
15279
|
function o() {
|
@@ -15270,15 +15292,15 @@ function _useDragRow(e, t, r) {
|
|
15270
15292
|
}
|
15271
15293
|
function i(u, d) {
|
15272
15294
|
setTimeout(() => {
|
15273
|
-
const g = t.value.findIndex((
|
15295
|
+
const g = t.value.findIndex((_) => _.var_nam === u), E = t.value.findIndex((_) => _.var_nam === d);
|
15274
15296
|
if (g === -1 || E === -1)
|
15275
15297
|
return;
|
15276
|
-
const
|
15277
|
-
t.value.forEach((
|
15278
|
-
g > E ? m < E ?
|
15279
|
-
}),
|
15280
|
-
|
15281
|
-
}), t.value =
|
15298
|
+
const y = t.value.find((_) => _.var_nam === u), p = [];
|
15299
|
+
t.value.forEach((_, m) => {
|
15300
|
+
g > E ? m < E ? p.push(_) : m === E ? (p.push(y), p.push(_)) : m > E && m !== g && p.push(_) : g < E && (m < g ? p.push(_) : m === g || (m === E ? (p.push(_), p.push(y)) : p.push(_)));
|
15301
|
+
}), p.forEach((_, m) => {
|
15302
|
+
_.srtseq = m + 1;
|
15303
|
+
}), t.value = p, nextTick().finally(() => {
|
15282
15304
|
KgUtil.hideLoading();
|
15283
15305
|
});
|
15284
15306
|
});
|
@@ -15306,32 +15328,32 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15306
15328
|
n.onReady(async () => (await a.store.patchVarProfileDetail(a.formID, "frm_id", {
|
15307
15329
|
dft_val: r.formID
|
15308
15330
|
}), !1)), o.onOpen(async ({
|
15309
|
-
isCreating:
|
15310
|
-
isUpdating:
|
15331
|
+
isCreating: p,
|
15332
|
+
isUpdating: _,
|
15311
15333
|
isCopying: m,
|
15312
|
-
row:
|
15334
|
+
row: b,
|
15313
15335
|
model: T
|
15314
15336
|
}) => {
|
15315
|
-
var I, C, V, A,
|
15337
|
+
var I, C, V, A, D;
|
15316
15338
|
const k = r.store.getSystemVarProfileDetails(r.formID);
|
15317
15339
|
switch (i.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
|
15318
|
-
case
|
15340
|
+
case p: {
|
15319
15341
|
c.value = [];
|
15320
15342
|
break;
|
15321
15343
|
}
|
15322
|
-
case
|
15344
|
+
case _:
|
15323
15345
|
case m: {
|
15324
|
-
if (
|
15346
|
+
if (b != null && b.id)
|
15325
15347
|
try {
|
15326
15348
|
o.store.setIsLoading(a.formID, !0);
|
15327
15349
|
const M = await QueryByID({
|
15328
15350
|
params: {
|
15329
|
-
id:
|
15351
|
+
id: b.id
|
15330
15352
|
}
|
15331
15353
|
});
|
15332
15354
|
i.value = i.value.map((L) => {
|
15333
15355
|
var w;
|
15334
|
-
const H = (w = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : w.find((
|
15356
|
+
const H = (w = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : w.find((O) => O.var_nam === L.var_nam);
|
15335
15357
|
return H ? {
|
15336
15358
|
...L,
|
15337
15359
|
...H,
|
@@ -15352,46 +15374,46 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15352
15374
|
}
|
15353
15375
|
switch (!0) {
|
15354
15376
|
case m: {
|
15355
|
-
T.value.prf_var_nam = ((V = T.value.prf_var_nam) != null ? V : "") + "_COPY", T.value.prf_var_nam_dsc = ((
|
15377
|
+
T.value.prf_var_nam = ((V = T.value.prf_var_nam) != null ? V : "") + "_COPY", T.value.prf_var_nam_dsc = ((D = (A = T.value.prf_var_nam_dsc) != null ? A : T.value.prf_var_nam) != null ? D : "") + "_COPY";
|
15356
15378
|
break;
|
15357
15379
|
}
|
15358
15380
|
}
|
15359
15381
|
return !1;
|
15360
15382
|
}), o.onBeforeOk(async ({
|
15361
|
-
model:
|
15383
|
+
model: p
|
15362
15384
|
}) => {
|
15363
|
-
var m,
|
15364
|
-
const
|
15365
|
-
return
|
15385
|
+
var m, b;
|
15386
|
+
const _ = p.value;
|
15387
|
+
return _.frm_id = r.formID, _.varProfileDetails = (b = (m = i.value) == null ? void 0 : m.filter((T) => c.value.includes(T.id))) != null ? b : [], !1;
|
15366
15388
|
}), o.onOk(async () => (r.store.retrieve(r.formID), !1)), l.onUpdateBeforeClick(({
|
15367
|
-
row:
|
15368
|
-
}) => (
|
15389
|
+
row: p
|
15390
|
+
}) => (p == null ? void 0 : p.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((_) => {
|
15369
15391
|
KgUtil.confirm({
|
15370
15392
|
content: t.t("kg.KgSearchConfigModal.canNotUpdateSystemVarProfileMaster"),
|
15371
15393
|
okButtonProps: {
|
15372
15394
|
danger: !1
|
15373
15395
|
},
|
15374
15396
|
onOk: () => {
|
15375
|
-
a.store.setIsCopying(a.formID, !0),
|
15397
|
+
a.store.setIsCopying(a.formID, !0), _(!0);
|
15376
15398
|
},
|
15377
15399
|
onCancel: () => {
|
15378
|
-
|
15400
|
+
_(!0);
|
15379
15401
|
}
|
15380
15402
|
});
|
15381
15403
|
}) : Promise.resolve(!1));
|
15382
15404
|
const i = ref([]), c = ref([]), u = ref([]);
|
15383
15405
|
_useDragRow(e.hostFormID, i, u);
|
15384
15406
|
const d = computed(() => {
|
15385
|
-
const
|
15407
|
+
const p = s.selectedRow.value;
|
15386
15408
|
return {
|
15387
15409
|
KgSubmit: {
|
15388
15410
|
kgClass: "kg-submit--search-config-modal--profile"
|
15389
15411
|
},
|
15390
15412
|
KgButton: {
|
15391
|
-
kgDisabled: (
|
15392
|
-
switch (
|
15413
|
+
kgDisabled: (_) => {
|
15414
|
+
switch (_.var_nam) {
|
15393
15415
|
case "set-default":
|
15394
|
-
if ((
|
15416
|
+
if ((p == null ? void 0 : p.def_flg) === 1)
|
15395
15417
|
return !0;
|
15396
15418
|
break;
|
15397
15419
|
}
|
@@ -15404,48 +15426,48 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15404
15426
|
varProfileDetails: () => createVNode(Transfer, {
|
15405
15427
|
dataSource: i.value,
|
15406
15428
|
targetKeys: c.value,
|
15407
|
-
"onUpdate:targetKeys": (
|
15408
|
-
rowKey: (
|
15429
|
+
"onUpdate:targetKeys": (p) => c.value = p,
|
15430
|
+
rowKey: (p) => p.id,
|
15409
15431
|
showSearch: !0,
|
15410
15432
|
showSelectAll: !1,
|
15411
15433
|
searchPlaceholder: " ",
|
15412
|
-
filterOption: (
|
15434
|
+
filterOption: (p, _) => {
|
15413
15435
|
var m;
|
15414
|
-
return !!((m =
|
15436
|
+
return !!((m = _.var_nam) != null && m.includes(p));
|
15415
15437
|
}
|
15416
15438
|
}, {
|
15417
15439
|
children: ({
|
15418
|
-
direction:
|
15419
|
-
filteredItems:
|
15440
|
+
direction: p,
|
15441
|
+
filteredItems: _,
|
15420
15442
|
selectedKeys: m,
|
15421
|
-
disabled:
|
15443
|
+
disabled: b,
|
15422
15444
|
onItemSelectAll: T,
|
15423
15445
|
onItemSelect: k
|
15424
15446
|
}) => {
|
15425
15447
|
var C, V;
|
15426
|
-
const I =
|
15448
|
+
const I = _.sort((A, D) => {
|
15427
15449
|
var M, K;
|
15428
|
-
return ((M = A.srtseq) != null ? M : 0) - ((K =
|
15450
|
+
return ((M = A.srtseq) != null ? M : 0) - ((K = D.srtseq) != null ? K : 0);
|
15429
15451
|
});
|
15430
15452
|
return u.value = I, createVNode(Table, {
|
15431
15453
|
pagination: !1,
|
15432
15454
|
class: "kg-flex-table",
|
15433
15455
|
size: "small",
|
15434
15456
|
scroll: {
|
15435
|
-
x:
|
15457
|
+
x: p === "left" ? "370px" : `${(((V = (C = t.option.value.KgSearch) == null ? void 0 : C.dynamicQuery) == null ? void 0 : V.on) !== !0 ? 1192 - 150 : 1192) + 32}px`,
|
15436
15458
|
y: "auto"
|
15437
15459
|
},
|
15438
|
-
columns:
|
15460
|
+
columns: p === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
15439
15461
|
rowKey: "id",
|
15440
15462
|
dataSource: I,
|
15441
15463
|
customRow: (A) => {
|
15442
|
-
let
|
15443
|
-
onClick: (M) =>
|
15464
|
+
let D = {
|
15465
|
+
onClick: (M) => y(M, A, p, m)
|
15444
15466
|
};
|
15445
|
-
return
|
15467
|
+
return p === "right" && (D["kg-host-frm_id"] = r.formID, D["kg-var_nam"] = A.var_nam), D;
|
15446
15468
|
},
|
15447
15469
|
rowSelection: E({
|
15448
|
-
disabled:
|
15470
|
+
disabled: b,
|
15449
15471
|
selectedKeys: m,
|
15450
15472
|
onItemSelectAll: T,
|
15451
15473
|
onItemSelect: k
|
@@ -15456,13 +15478,13 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15456
15478
|
}
|
15457
15479
|
}
|
15458
15480
|
}), E = ({
|
15459
|
-
disabled:
|
15460
|
-
selectedKeys:
|
15481
|
+
disabled: p,
|
15482
|
+
selectedKeys: _,
|
15461
15483
|
onItemSelectAll: m,
|
15462
|
-
onItemSelect:
|
15484
|
+
onItemSelect: b
|
15463
15485
|
}) => ({
|
15464
15486
|
getCheckboxProps: (T) => ({
|
15465
|
-
disabled:
|
15487
|
+
disabled: p || T.disabled
|
15466
15488
|
}),
|
15467
15489
|
onSelectAll(T, k) {
|
15468
15490
|
const I = k.filter((C) => !C.disabled).map(({
|
@@ -15473,24 +15495,24 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15473
15495
|
onSelect({
|
15474
15496
|
key: T
|
15475
15497
|
}, k) {
|
15476
|
-
|
15498
|
+
b(T, k);
|
15477
15499
|
},
|
15478
|
-
selectedRowKeys:
|
15500
|
+
selectedRowKeys: _,
|
15479
15501
|
columnWidth: 32
|
15480
15502
|
});
|
15481
|
-
function
|
15482
|
-
if (!KgDomUtil.isNotClickable(
|
15483
|
-
switch (
|
15503
|
+
function y(p, _, m, b) {
|
15504
|
+
if (!KgDomUtil.isNotClickable(p.target, ["ant-input"]))
|
15505
|
+
switch (b.length = 0, p.detail) {
|
15484
15506
|
case 1:
|
15485
|
-
|
15507
|
+
b[0] = _.id;
|
15486
15508
|
break;
|
15487
15509
|
case 2:
|
15488
15510
|
switch (m) {
|
15489
15511
|
case "left":
|
15490
|
-
c.value.push(
|
15512
|
+
c.value.push(_.id);
|
15491
15513
|
break;
|
15492
15514
|
case "right":
|
15493
|
-
c.value = without$1(c.value,
|
15515
|
+
c.value = without$1(c.value, _.id);
|
15494
15516
|
break;
|
15495
15517
|
}
|
15496
15518
|
break;
|
@@ -15591,11 +15613,11 @@ function _useLayoutHeaderResizeObserver() {
|
|
15591
15613
|
}
|
15592
15614
|
function _useCommon() {
|
15593
15615
|
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(() => {
|
15594
|
-
var g, E,
|
15616
|
+
var g, E, y;
|
15595
15617
|
if (!n.value || a.value > 0)
|
15596
15618
|
return !1;
|
15597
15619
|
const d = (E = (g = e == null ? void 0 : e.value) == null ? void 0 : g.KgSearch) == null ? void 0 : E.kgHeaderTeleport;
|
15598
|
-
return d !== void 0 ? d : ((
|
15620
|
+
return d !== void 0 ? d : ((y = r.value) == null ? void 0 : y.header_teleport_flg) !== 0;
|
15599
15621
|
}), l = computed(() => {
|
15600
15622
|
var d;
|
15601
15623
|
return ((d = r.value) == null ? void 0 : d.vis_flg) === 1;
|
@@ -15626,16 +15648,16 @@ function _useFormModel(e, t, r) {
|
|
15626
15648
|
const u = ref({}), d = ref({});
|
15627
15649
|
async function g() {
|
15628
15650
|
var E;
|
15629
|
-
((E = n.currentVarProfileDetails.value) != null ? E : []).forEach((
|
15630
|
-
var
|
15631
|
-
const
|
15632
|
-
u.value[
|
15633
|
-
}), r.value.kgHeight = o.value, s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value), l.value ? (c == null || c(), c = watch(t, async (
|
15634
|
-
|
15651
|
+
((E = n.currentVarProfileDetails.value) != null ? E : []).forEach((y) => {
|
15652
|
+
var _, m, b;
|
15653
|
+
const p = (_ = y.var_nam) != null ? _ : "";
|
15654
|
+
u.value[p] = KgVarUtil.transformFormItemValue(n.formID, p, a, (m = y.dft_val) != null ? m : void 0, "R"), d.value[p] = KgVarUtil.transformFormItemDynamicQueryOperator(n.formID, p, (b = y.dft_dyn_op) != null ? b : void 0);
|
15655
|
+
}), r.value.kgHeight = o.value, s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value), l.value ? (c == null || c(), c = watch(t, async (y) => {
|
15656
|
+
y && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
|
15635
15657
|
}, {
|
15636
15658
|
immediate: !0
|
15637
|
-
})) : (i == null || i(), i = watch(e, async (
|
15638
|
-
|
15659
|
+
})) : (i == null || i(), i = watch(e, async (y) => {
|
15660
|
+
y && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
|
15639
15661
|
}, {
|
15640
15662
|
immediate: !0
|
15641
15663
|
}));
|
@@ -15672,22 +15694,22 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15672
15694
|
defaultHeight: u,
|
15673
15695
|
maxHeight: d,
|
15674
15696
|
minHeight: g
|
15675
|
-
} = _useCommon(), E = ref(null),
|
15697
|
+
} = _useCommon(), E = ref(null), y = ref(null), p = ref({
|
15676
15698
|
kgHeight: g.value
|
15677
15699
|
});
|
15678
15700
|
_useLayoutHeaderResizeObserver();
|
15679
|
-
const
|
15701
|
+
const _ = _useFormModel(E, y, p), m = computed(() => {
|
15680
15702
|
var N, x, Y, q;
|
15681
15703
|
if (!isNil((x = (N = r == null ? void 0 : r.value) == null ? void 0 : N.KgSearch) == null ? void 0 : x.kgDisabled))
|
15682
15704
|
return (q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgSearch) == null ? void 0 : q.kgDisabled;
|
15683
15705
|
if (!isNil(e.kgDisabled))
|
15684
15706
|
return e.kgDisabled;
|
15685
|
-
}),
|
15707
|
+
}), b = computed(() => {
|
15686
15708
|
var N, x;
|
15687
15709
|
return !!(m.value || l.isRetrieving.value || ((N = n.varButtonSearch.value) == null ? void 0 : N.permission_type) === 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
15688
15710
|
}), T = computed(() => !!(m.value || l.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), k = computed(() => !!(m.value || l.isRetrieving.value)), I = ref({
|
15689
15711
|
visible: !1
|
15690
|
-
}), C = computed(() =>
|
15712
|
+
}), C = computed(() => p.value.kgHeight === g.value), V = computed(() => {
|
15691
15713
|
var N, x, Y;
|
15692
15714
|
if (n.t((N = n.varButtonSearch.value) == null ? void 0 : N.var_nam).value !== ((x = n.varButtonSearch.value) == null ? void 0 : x.var_nam))
|
15693
15715
|
return n.t((Y = n.varButtonSearch.value) == null ? void 0 : Y.var_nam).value;
|
@@ -15701,7 +15723,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15701
15723
|
default:
|
15702
15724
|
return !0;
|
15703
15725
|
}
|
15704
|
-
}),
|
15726
|
+
}), D = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), M = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), K = computed(() => {
|
15705
15727
|
let N = "kg-search";
|
15706
15728
|
return o.value && (N += " kg-search--visible"), c.value && (N += " kg-search--teleport"), N;
|
15707
15729
|
});
|
@@ -15719,7 +15741,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15719
15741
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u521B\u5EFA/\u66F4\u65B0/\u590D\u5236/\u5220\u9664.`);
|
15720
15742
|
return;
|
15721
15743
|
}
|
15722
|
-
o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`),
|
15744
|
+
o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), y.value && y.value.validate().then(async () => {
|
15723
15745
|
await s.store.emit(n.formID, "search", N);
|
15724
15746
|
}).catch((q) => {
|
15725
15747
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
@@ -15729,7 +15751,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15729
15751
|
}
|
15730
15752
|
s.store.setSearchFn(n.formID, L);
|
15731
15753
|
async function H() {
|
15732
|
-
|
15754
|
+
_.initFormModel(), o.value ? y.value && y.value.validate().then(async () => {
|
15733
15755
|
await s.store.emit(n.formID, "reset", {});
|
15734
15756
|
}).catch((N) => {
|
15735
15757
|
KgLogger.debug(`${n.formID} | KgSearch | onReset() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
@@ -15743,7 +15765,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15743
15765
|
isSearchFirstPage: !0
|
15744
15766
|
}), Promise.resolve(!0);
|
15745
15767
|
}
|
15746
|
-
function
|
15768
|
+
function O() {
|
15747
15769
|
var N;
|
15748
15770
|
return createVNode("div", {
|
15749
15771
|
class: "title",
|
@@ -15792,8 +15814,8 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15792
15814
|
var N, x, Y, q, X;
|
15793
15815
|
return createVNode(Fragment, null, [R(), !(((N = n.varButtonSearch.value) == null ? void 0 : N.permission_type) !== 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code)) && createVNode(Button, {
|
15794
15816
|
type: "primary",
|
15795
|
-
ghost: !
|
15796
|
-
disabled:
|
15817
|
+
ghost: !b.value,
|
15818
|
+
disabled: b.value,
|
15797
15819
|
onClick: H,
|
15798
15820
|
class: "kg-search-btn-reset"
|
15799
15821
|
}, {
|
@@ -15816,7 +15838,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15816
15838
|
default: () => {
|
15817
15839
|
var N;
|
15818
15840
|
return [createVNode(KgForm, {
|
15819
|
-
ref:
|
15841
|
+
ref: y,
|
15820
15842
|
model: (N = s.model.value) != null ? N : {}
|
15821
15843
|
}, {
|
15822
15844
|
default: () => [createVNode(Row, {
|
@@ -15839,12 +15861,12 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15839
15861
|
});
|
15840
15862
|
}
|
15841
15863
|
function G() {
|
15842
|
-
C.value ?
|
15864
|
+
C.value ? p.value.kgHeight = u.value : p.value.kgHeight = g.value;
|
15843
15865
|
}
|
15844
15866
|
return () => createVNode(KgResizable, {
|
15845
15867
|
ref: E,
|
15846
|
-
kgHeight:
|
15847
|
-
"onUpdate:kgHeight": (N) =>
|
15868
|
+
kgHeight: p.value.kgHeight,
|
15869
|
+
"onUpdate:kgHeight": (N) => p.value.kgHeight = N,
|
15848
15870
|
kgMinHeight: g.value,
|
15849
15871
|
kgMaxHeight: d.value,
|
15850
15872
|
kgDisabled: !i.value,
|
@@ -15862,9 +15884,9 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15862
15884
|
default: () => [createVNode("div", {
|
15863
15885
|
class: "ant-collapse-header"
|
15864
15886
|
}, [createVNode(Spin, {
|
15865
|
-
spinning:
|
15887
|
+
spinning: D.value
|
15866
15888
|
}, {
|
15867
|
-
default: () => [
|
15889
|
+
default: () => [O(), createVNode("div", {
|
15868
15890
|
class: "ant-collapse-extra"
|
15869
15891
|
}, [$()])]
|
15870
15892
|
})])]
|
@@ -15929,39 +15951,39 @@ function useMagicKeys(e = {}) {
|
|
15929
15951
|
} = e, l = reactive(/* @__PURE__ */ new Set()), o = { toJSON() {
|
15930
15952
|
return {};
|
15931
15953
|
}, current: l }, i = t ? reactive(o) : o, c = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
|
15932
|
-
function d(
|
15933
|
-
|
15954
|
+
function d(p, _) {
|
15955
|
+
p in i && (t ? i[p] = _ : i[p].value = _);
|
15934
15956
|
}
|
15935
15957
|
function g() {
|
15936
|
-
for (const
|
15937
|
-
d(
|
15958
|
+
for (const p of u)
|
15959
|
+
d(p, !1);
|
15938
15960
|
}
|
15939
|
-
function E(
|
15940
|
-
var m,
|
15941
|
-
const T = (m =
|
15942
|
-
k && (
|
15961
|
+
function E(p, _) {
|
15962
|
+
var m, b;
|
15963
|
+
const T = (m = p.key) == null ? void 0 : m.toLowerCase(), k = (b = p.code) == null ? void 0 : b.toLowerCase(), I = [k, T].filter(Boolean);
|
15964
|
+
k && (_ ? l.add(p.code) : l.delete(p.code));
|
15943
15965
|
for (const C of I)
|
15944
|
-
u.add(C), d(C,
|
15945
|
-
T === "meta" && !
|
15966
|
+
u.add(C), d(C, _);
|
15967
|
+
T === "meta" && !_ ? (c.forEach((C) => {
|
15946
15968
|
l.delete(C), d(C, !1);
|
15947
|
-
}), c.clear()) : typeof
|
15948
|
-
}
|
15949
|
-
r && (useEventListener(r, "keydown", (
|
15950
|
-
const
|
15951
|
-
get(
|
15952
|
-
if (typeof
|
15953
|
-
return Reflect.get(
|
15954
|
-
if (
|
15955
|
-
if (/[+_-]/.test(
|
15956
|
-
const T =
|
15957
|
-
i[
|
15969
|
+
}), c.clear()) : typeof p.getModifierState == "function" && p.getModifierState("Meta") && _ && [...l, ...I].forEach((C) => c.add(C));
|
15970
|
+
}
|
15971
|
+
r && (useEventListener(r, "keydown", (p) => (E(p, !0), s(p)), { passive: n }), useEventListener(r, "keyup", (p) => (E(p, !1), s(p)), { passive: n }), useEventListener("blur", g, { passive: !0 }), useEventListener("focus", g, { passive: !0 }));
|
15972
|
+
const y = new Proxy(i, {
|
15973
|
+
get(p, _, m) {
|
15974
|
+
if (typeof _ != "string")
|
15975
|
+
return Reflect.get(p, _, m);
|
15976
|
+
if (_ = _.toLowerCase(), _ in a && (_ = a[_]), !(_ in i))
|
15977
|
+
if (/[+_-]/.test(_)) {
|
15978
|
+
const T = _.split(/[+_-]/g).map((k) => k.trim());
|
15979
|
+
i[_] = computed(() => T.every((k) => unref(y[k])));
|
15958
15980
|
} else
|
15959
|
-
i[
|
15960
|
-
const
|
15961
|
-
return t ? unref(
|
15981
|
+
i[_] = ref(!1);
|
15982
|
+
const b = Reflect.get(p, _, m);
|
15983
|
+
return t ? unref(b) : b;
|
15962
15984
|
}
|
15963
15985
|
});
|
15964
|
-
return
|
15986
|
+
return y;
|
15965
15987
|
}
|
15966
15988
|
var SwipeDirection;
|
15967
15989
|
(function(e) {
|
@@ -16346,20 +16368,20 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16346
16368
|
onSelect: (L) => V(L)
|
16347
16369
|
}), E = ref({
|
16348
16370
|
visible: !1
|
16349
|
-
}),
|
16371
|
+
}), y = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(l))), p = computed(() => {
|
16350
16372
|
var L;
|
16351
16373
|
return !!u.value || ((L = a.getSelectedVarCatalog) == null ? void 0 : L.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
16352
|
-
}),
|
16374
|
+
}), _ = computed(() => !!(!unref(u) || unref(n) || unref(s))), m = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
16353
16375
|
watch(() => a.getSelectedVar, (L) => {
|
16354
|
-
L ?
|
16376
|
+
L ? b() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
|
16355
16377
|
}, {
|
16356
16378
|
immediate: !0
|
16357
16379
|
}), watch(() => a.getSelectedVarCatalog, async (L) => {
|
16358
16380
|
var H, w;
|
16359
16381
|
i.value.var_text = (H = L == null ? void 0 : L.var_text) != null ? H : "", (w = o.value) == null || w.clearValidate();
|
16360
16382
|
});
|
16361
|
-
async function
|
16362
|
-
var H, w,
|
16383
|
+
async function b(L = !1) {
|
16384
|
+
var H, w, O;
|
16363
16385
|
n.value = !0;
|
16364
16386
|
try {
|
16365
16387
|
const {
|
@@ -16381,7 +16403,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16381
16403
|
});
|
16382
16404
|
a.setSelectedVarCatalog($ != null ? $ : null), d.value = $ != null && $.id ? [$.id] : [];
|
16383
16405
|
} else
|
16384
|
-
a.setSelectedVarCatalog((w = c.value[0]) != null ? w : null), d.value = (
|
16406
|
+
a.setSelectedVarCatalog((w = c.value[0]) != null ? w : null), d.value = (O = c.value[0]) != null && O.id ? [c.value[0].id] : [];
|
16385
16407
|
} catch (R) {
|
16386
16408
|
KgLogger.debug(R == null ? void 0 : R.message);
|
16387
16409
|
} finally {
|
@@ -16392,31 +16414,31 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16392
16414
|
var L, H, w;
|
16393
16415
|
try {
|
16394
16416
|
s.value = !0, await ((L = o.value) == null ? void 0 : L.validate());
|
16395
|
-
const
|
16417
|
+
const O = new VarCatalog({
|
16396
16418
|
...(H = a.getSelectedVarCatalog) != null ? H : {},
|
16397
16419
|
var_text: (w = i.value) == null ? void 0 : w.var_text
|
16398
16420
|
});
|
16399
|
-
|
16400
|
-
data:
|
16421
|
+
O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add({
|
16422
|
+
data: O
|
16401
16423
|
}, {
|
16402
16424
|
successMessageMode: "none"
|
16403
16425
|
}), message.success({
|
16404
16426
|
content: t.t("kg.KgVarConfig.createSuccess")
|
16405
|
-
}), await
|
16406
|
-
data:
|
16427
|
+
}), await b()) : (await Edit({
|
16428
|
+
data: O
|
16407
16429
|
}, {
|
16408
16430
|
successMessageMode: "none"
|
16409
16431
|
}), message.success({
|
16410
16432
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
16411
|
-
}), await
|
16412
|
-
data:
|
16433
|
+
}), await b(!0)) : (await Add({
|
16434
|
+
data: O
|
16413
16435
|
}, {
|
16414
16436
|
successMessageMode: "none"
|
16415
16437
|
}), message.success({
|
16416
16438
|
content: t.t("kg.KgVarConfig.createSuccess")
|
16417
|
-
}), await
|
16418
|
-
} catch (
|
16419
|
-
KgUtil.throwIfNotFormError(
|
16439
|
+
}), await b()), r.retrieve(e == null ? void 0 : e.value);
|
16440
|
+
} catch (O) {
|
16441
|
+
KgUtil.throwIfNotFormError(O);
|
16420
16442
|
} finally {
|
16421
16443
|
s.value = !1;
|
16422
16444
|
}
|
@@ -16425,12 +16447,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16425
16447
|
isAllForm: L,
|
16426
16448
|
isAllLanguage: H
|
16427
16449
|
}) {
|
16428
|
-
var w,
|
16450
|
+
var w, O, R;
|
16429
16451
|
u.value = new VarCatalog({
|
16430
16452
|
id: "",
|
16431
16453
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
16432
16454
|
grp_nam: (w = a.getSelectedVar) == null ? void 0 : w.grp_nam,
|
16433
|
-
var_nam: (
|
16455
|
+
var_nam: (O = a.getSelectedVar) == null ? void 0 : O.var_nam,
|
16434
16456
|
frm_id: L || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
16435
16457
|
locale_id: H ? "ALL" : (R = t.locale) == null ? void 0 : R.value,
|
16436
16458
|
var_text: ""
|
@@ -16455,7 +16477,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16455
16477
|
joinParamsToUrl: !0
|
16456
16478
|
}), message.success({
|
16457
16479
|
content: t.t("kg.KgVarConfig.deleteSuccess")
|
16458
|
-
}), r.retrieve(e == null ? void 0 : e.value), await
|
16480
|
+
}), r.retrieve(e == null ? void 0 : e.value), await b();
|
16459
16481
|
}
|
16460
16482
|
});
|
16461
16483
|
}
|
@@ -16471,19 +16493,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16471
16493
|
function A() {
|
16472
16494
|
E.value.visible = !0;
|
16473
16495
|
}
|
16474
|
-
function
|
16496
|
+
function D() {
|
16475
16497
|
return createVNode("div", {
|
16476
16498
|
class: "buttons"
|
16477
16499
|
}, [createVNode(Button, {
|
16478
16500
|
onClick: A,
|
16479
|
-
disabled:
|
16501
|
+
disabled: y.value,
|
16480
16502
|
type: "primary"
|
16481
16503
|
}, {
|
16482
16504
|
default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
|
16483
16505
|
}), createVNode(Button, {
|
16484
16506
|
onClick: C,
|
16485
|
-
disabled:
|
16486
|
-
ghost: !
|
16507
|
+
disabled: p.value,
|
16508
|
+
ghost: !p.value,
|
16487
16509
|
type: "primary",
|
16488
16510
|
danger: !0
|
16489
16511
|
}, {
|
@@ -16517,7 +16539,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16517
16539
|
}), createVNode("div", {
|
16518
16540
|
class: "buttons"
|
16519
16541
|
}, [createVNode(Button, {
|
16520
|
-
disabled:
|
16542
|
+
disabled: _.value,
|
16521
16543
|
onClick: I
|
16522
16544
|
}, _isSlot(L = t.t("common.cancelText")) ? L : {
|
16523
16545
|
default: () => [L]
|
@@ -16537,7 +16559,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16537
16559
|
}
|
16538
16560
|
return () => createVNode("div", {
|
16539
16561
|
class: "kg-var-config-modal-var-var-catalog"
|
16540
|
-
}, [
|
16562
|
+
}, [D(), createVNode(Table, {
|
16541
16563
|
pagination: !1,
|
16542
16564
|
class: "kg-flex-table",
|
16543
16565
|
size: "small",
|
@@ -16890,15 +16912,15 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16890
16912
|
var I;
|
16891
16913
|
const k = (I = s.value) == null ? void 0 : I.toUpperCase();
|
16892
16914
|
return u.value.filter((C) => {
|
16893
|
-
var V, A,
|
16894
|
-
return ((A = (V = C.whDsc) == null ? void 0 : V.toUpperCase()) == null ? void 0 : A.includes(k)) || ((M = (
|
16915
|
+
var V, A, D, M, K, L;
|
16916
|
+
return ((A = (V = C.whDsc) == null ? void 0 : V.toUpperCase()) == null ? void 0 : A.includes(k)) || ((M = (D = C.whId) == null ? void 0 : D.toUpperCase()) == null ? void 0 : M.includes(k)) || ((L = (K = C.adrId) == null ? void 0 : K.toUpperCase()) == null ? void 0 : L.includes(k));
|
16895
16917
|
});
|
16896
16918
|
}), g = computed(() => {
|
16897
16919
|
var k;
|
16898
16920
|
return ((k = r.option.value.KgWarehouse) == null ? void 0 : k.on) !== !1;
|
16899
16921
|
});
|
16900
16922
|
watch(a.visible, (k) => {
|
16901
|
-
!g.value || (k ?
|
16923
|
+
!g.value || (k ? y() : p());
|
16902
16924
|
}, {
|
16903
16925
|
immediate: !0
|
16904
16926
|
}), onMounted(() => {
|
@@ -16907,13 +16929,13 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16907
16929
|
function E() {
|
16908
16930
|
!g.value || a.store.setVisible(!0);
|
16909
16931
|
}
|
16910
|
-
function
|
16932
|
+
function y() {
|
16911
16933
|
o.value = a.warehouse.value, m();
|
16912
16934
|
}
|
16913
|
-
function
|
16935
|
+
function p() {
|
16914
16936
|
s.value = "", u.value = [], o.value = null;
|
16915
16937
|
}
|
16916
|
-
function
|
16938
|
+
function _() {
|
16917
16939
|
var k;
|
16918
16940
|
!o.value || (e.kgInvisible ? (a.store.setWarehouse(o.value), t("kgOk")) : o.value.id !== ((k = a.warehouse.value) == null ? void 0 : k.id) && (a.store.setWarehouse(o.value), KgUtil.confirm({
|
16919
16941
|
content: r.t("kg.KgWarehouse.reloadMessage"),
|
@@ -16945,14 +16967,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16945
16967
|
i.value = !1;
|
16946
16968
|
}
|
16947
16969
|
}
|
16948
|
-
function
|
16970
|
+
function b(k, I) {
|
16949
16971
|
var C;
|
16950
16972
|
switch (k.detail) {
|
16951
16973
|
case 1:
|
16952
16974
|
((C = o.value) == null ? void 0 : C.id) === I.id ? o.value = null : o.value = I;
|
16953
16975
|
break;
|
16954
16976
|
case 2:
|
16955
|
-
o.value = I,
|
16977
|
+
o.value = I, _();
|
16956
16978
|
break;
|
16957
16979
|
}
|
16958
16980
|
}
|
@@ -16980,7 +17002,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16980
17002
|
okButtonProps: {
|
16981
17003
|
disabled: i.value || !o.value
|
16982
17004
|
},
|
16983
|
-
onOk:
|
17005
|
+
onOk: _
|
16984
17006
|
}, {
|
16985
17007
|
default: () => [createVNode(Input, {
|
16986
17008
|
value: s.value,
|
@@ -17008,7 +17030,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
17008
17030
|
var I;
|
17009
17031
|
return {
|
17010
17032
|
class: k.id === ((I = o.value) == null ? void 0 : I.id) ? "selected" : "",
|
17011
|
-
onClick: (C) =>
|
17033
|
+
onClick: (C) => b(C, k)
|
17012
17034
|
};
|
17013
17035
|
}
|
17014
17036
|
}, null)]
|
@@ -17145,27 +17167,27 @@ class KgUtil {
|
|
17145
17167
|
if (!s || !isObjectLike(s))
|
17146
17168
|
return { sql: "", whereSql: "", orderBySql: "" };
|
17147
17169
|
const l = ["pageNo", "pageSize", "column", "order"], o = useKg(), i = r ? useKgVar(r) : null, c = r ? useKgSearch(r).operatorModel.value : a, u = {};
|
17148
|
-
Object.keys(s).sort().forEach((
|
17170
|
+
Object.keys(s).sort().forEach((y) => {
|
17149
17171
|
var T, k, I, C, V;
|
17150
|
-
if (l.includes(
|
17151
|
-
u[
|
17172
|
+
if (l.includes(y)) {
|
17173
|
+
u[y] = s[y];
|
17152
17174
|
return;
|
17153
17175
|
}
|
17154
|
-
const
|
17155
|
-
let m = c == null ? void 0 : c[
|
17176
|
+
const p = r ? (T = i == null ? void 0 : i.store) == null ? void 0 : T.getVarProfileDetail(r, y) : null, _ = s[y];
|
17177
|
+
let m = c == null ? void 0 : c[y];
|
17156
17178
|
(((I = (k = o.option.value.KgSearch) == null ? void 0 : k.dynamicQuery) == null ? void 0 : I.on) !== !0 || r && ((V = (C = i == null ? void 0 : i.currentVarProfileMaster) == null ? void 0 : C.value) == null ? void 0 : V.dyn_flg) !== 1) && (m = KG_DYNAMIC_QUERY_OPERATOR.EQ);
|
17157
|
-
let
|
17158
|
-
switch (r && (
|
17159
|
-
case
|
17160
|
-
u[
|
17179
|
+
let b = y;
|
17180
|
+
switch (r && (p == null ? void 0 : p.use_underscore_when_dynamic_query_flag) !== 0 && (b = y.split(".").map((A) => snakeCase$1(A)).join(".")), !0) {
|
17181
|
+
case y.endsWith("_obj"): {
|
17182
|
+
u[y] = void 0;
|
17161
17183
|
break;
|
17162
17184
|
}
|
17163
|
-
case (!!n && n.isDayjs(
|
17164
|
-
const A =
|
17165
|
-
let
|
17185
|
+
case (!!n && n.isDayjs(_)): {
|
17186
|
+
const A = _;
|
17187
|
+
let D = r ? this.parseParamFromDayJS(y, A, r) : A.format("YYYY-MM-DD HH:mm:ss");
|
17166
17188
|
switch (m) {
|
17167
17189
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
17168
|
-
let M =
|
17190
|
+
let M = D, K = "";
|
17169
17191
|
switch (!0) {
|
17170
17192
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
|
17171
17193
|
K = A.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
@@ -17182,11 +17204,11 @@ class KgUtil {
|
|
17182
17204
|
default:
|
17183
17205
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
17184
17206
|
}
|
17185
|
-
|
17207
|
+
D = ` AND (${b} < '${M}' OR ${b} >= '${K}')`;
|
17186
17208
|
break;
|
17187
17209
|
}
|
17188
17210
|
case KG_DYNAMIC_QUERY_OPERATOR.LT: {
|
17189
|
-
let M =
|
17211
|
+
let M = D;
|
17190
17212
|
switch (!0) {
|
17191
17213
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M):
|
17192
17214
|
break;
|
@@ -17201,11 +17223,11 @@ class KgUtil {
|
|
17201
17223
|
default:
|
17202
17224
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
17203
17225
|
}
|
17204
|
-
|
17226
|
+
D = ` AND (${b} < '${M}')`;
|
17205
17227
|
break;
|
17206
17228
|
}
|
17207
17229
|
case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
|
17208
|
-
let M =
|
17230
|
+
let M = D, K = "";
|
17209
17231
|
switch (!0) {
|
17210
17232
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
|
17211
17233
|
K = A.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
@@ -17222,11 +17244,11 @@ class KgUtil {
|
|
17222
17244
|
default:
|
17223
17245
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
17224
17246
|
}
|
17225
|
-
|
17247
|
+
D = ` AND (${b} < '${K}')`;
|
17226
17248
|
break;
|
17227
17249
|
}
|
17228
17250
|
case KG_DYNAMIC_QUERY_OPERATOR.GT: {
|
17229
|
-
let M =
|
17251
|
+
let M = D, K = "";
|
17230
17252
|
switch (!0) {
|
17231
17253
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
|
17232
17254
|
K = A.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
@@ -17243,11 +17265,11 @@ class KgUtil {
|
|
17243
17265
|
default:
|
17244
17266
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
17245
17267
|
}
|
17246
|
-
|
17268
|
+
D = ` AND (${b} >= '${K}')`;
|
17247
17269
|
break;
|
17248
17270
|
}
|
17249
17271
|
case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
|
17250
|
-
let M =
|
17272
|
+
let M = D;
|
17251
17273
|
switch (!0) {
|
17252
17274
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M):
|
17253
17275
|
break;
|
@@ -17262,12 +17284,12 @@ class KgUtil {
|
|
17262
17284
|
default:
|
17263
17285
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
17264
17286
|
}
|
17265
|
-
|
17287
|
+
D = ` AND (${b} >= '${M}')`;
|
17266
17288
|
break;
|
17267
17289
|
}
|
17268
17290
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
17269
17291
|
default: {
|
17270
|
-
let M =
|
17292
|
+
let M = D, K = "";
|
17271
17293
|
switch (!0) {
|
17272
17294
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
|
17273
17295
|
K = A.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
@@ -17284,150 +17306,150 @@ class KgUtil {
|
|
17284
17306
|
default:
|
17285
17307
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
17286
17308
|
}
|
17287
|
-
|
17309
|
+
D = ` AND (${b} >= '${M}' AND ${b} < '${K}')`;
|
17288
17310
|
break;
|
17289
17311
|
}
|
17290
17312
|
}
|
17291
|
-
u[
|
17313
|
+
u[y] = D;
|
17292
17314
|
break;
|
17293
17315
|
}
|
17294
|
-
case (!!n && isArray$1(
|
17295
|
-
const A =
|
17296
|
-
let M = this.parseParamFromDayJS(
|
17316
|
+
case (!!n && isArray$1(_) && _.length === 2 && n.isDayjs(_[0]) && n.isDayjs(_[1])): {
|
17317
|
+
const A = _[0], D = _[1];
|
17318
|
+
let M = this.parseParamFromDayJS(y, A, r), K = "", L = "";
|
17297
17319
|
switch (!0) {
|
17298
17320
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(M): {
|
17299
|
-
K =
|
17321
|
+
K = D.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
17300
17322
|
break;
|
17301
17323
|
}
|
17302
17324
|
case /\d\d-\d\d-\d\d/.test(M): {
|
17303
|
-
M = `${M} 00:00:00`, K =
|
17325
|
+
M = `${M} 00:00:00`, K = D.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
17304
17326
|
break;
|
17305
17327
|
}
|
17306
17328
|
case /\d\d:\d\d:\d\d/.test(M): {
|
17307
|
-
M = `1970-01-01 ${M}`, K =
|
17329
|
+
M = `1970-01-01 ${M}`, K = D.add(1, "second").format("1970-01-01 HH:mm:ss");
|
17308
17330
|
break;
|
17309
17331
|
}
|
17310
17332
|
}
|
17311
|
-
K ? L = ` AND (${
|
17333
|
+
K ? L = ` AND (${b} >= '${M}' AND ${b} < '${K}')` : L = ` AND (${b} >= '${M}')`, u[y] = L;
|
17312
17334
|
break;
|
17313
17335
|
}
|
17314
|
-
case Array.isArray(
|
17315
|
-
if (
|
17316
|
-
u[
|
17336
|
+
case Array.isArray(_): {
|
17337
|
+
if (_.length === 0) {
|
17338
|
+
u[y] = void 0;
|
17317
17339
|
break;
|
17318
17340
|
}
|
17319
|
-
const A =
|
17320
|
-
u[
|
17341
|
+
const A = _.map((D) => `N'${String(D)}'`).join(", ");
|
17342
|
+
u[y] = ` AND (${b} IN (${A}))`;
|
17321
17343
|
break;
|
17322
17344
|
}
|
17323
|
-
case isObjectLike(
|
17324
|
-
throw KgLogger.error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.", { value:
|
17325
|
-
case typeof
|
17326
|
-
if (
|
17327
|
-
u[
|
17345
|
+
case isObjectLike(_):
|
17346
|
+
throw KgLogger.error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.", { value: _ }), new Error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.");
|
17347
|
+
case typeof _ == "string": {
|
17348
|
+
if (_.trim() === "") {
|
17349
|
+
u[y] = void 0;
|
17328
17350
|
break;
|
17329
17351
|
}
|
17330
|
-
let A = this.parseParamFromString(
|
17352
|
+
let A = this.parseParamFromString(_);
|
17331
17353
|
switch (m) {
|
17332
17354
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
17333
|
-
A = ` AND (${
|
17355
|
+
A = ` AND (${b} <> N'${A}')`;
|
17334
17356
|
break;
|
17335
17357
|
}
|
17336
17358
|
case KG_DYNAMIC_QUERY_OPERATOR.START_WITH: {
|
17337
|
-
A = ` AND (${
|
17359
|
+
A = ` AND (${b} LIKE N'${A}%')`;
|
17338
17360
|
break;
|
17339
17361
|
}
|
17340
17362
|
case KG_DYNAMIC_QUERY_OPERATOR.END_WITH: {
|
17341
|
-
A = ` AND (${
|
17363
|
+
A = ` AND (${b} LIKE N'%${A}')`;
|
17342
17364
|
break;
|
17343
17365
|
}
|
17344
17366
|
case KG_DYNAMIC_QUERY_OPERATOR.CONTAIN: {
|
17345
|
-
A = ` AND (${
|
17367
|
+
A = ` AND (${b} LIKE N'%${A}%')`;
|
17346
17368
|
break;
|
17347
17369
|
}
|
17348
17370
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
17349
17371
|
default: {
|
17350
|
-
A = ` AND (${
|
17372
|
+
A = ` AND (${b} = N'${A}')`;
|
17351
17373
|
break;
|
17352
17374
|
}
|
17353
17375
|
}
|
17354
|
-
u[
|
17376
|
+
u[y] = A;
|
17355
17377
|
break;
|
17356
17378
|
}
|
17357
|
-
case typeof
|
17379
|
+
case typeof _ == "number": {
|
17358
17380
|
let A = "";
|
17359
17381
|
switch (m) {
|
17360
17382
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
17361
|
-
A = ` AND (${
|
17383
|
+
A = ` AND (${b} <> ${_})`;
|
17362
17384
|
break;
|
17363
17385
|
}
|
17364
17386
|
case KG_DYNAMIC_QUERY_OPERATOR.LT: {
|
17365
|
-
A = ` AND (${
|
17387
|
+
A = ` AND (${b} < ${_})`;
|
17366
17388
|
break;
|
17367
17389
|
}
|
17368
17390
|
case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
|
17369
|
-
A = ` AND (${
|
17391
|
+
A = ` AND (${b} <= ${_})`;
|
17370
17392
|
break;
|
17371
17393
|
}
|
17372
17394
|
case KG_DYNAMIC_QUERY_OPERATOR.GT: {
|
17373
|
-
A = ` AND (${
|
17395
|
+
A = ` AND (${b} > ${_})`;
|
17374
17396
|
break;
|
17375
17397
|
}
|
17376
17398
|
case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
|
17377
|
-
A = ` AND (${
|
17399
|
+
A = ` AND (${b} >= ${_})`;
|
17378
17400
|
break;
|
17379
17401
|
}
|
17380
17402
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
17381
17403
|
default: {
|
17382
|
-
A = ` AND (${
|
17404
|
+
A = ` AND (${b} = ${_})`;
|
17383
17405
|
break;
|
17384
17406
|
}
|
17385
17407
|
}
|
17386
|
-
u[
|
17408
|
+
u[y] = A;
|
17387
17409
|
break;
|
17388
17410
|
}
|
17389
|
-
case typeof
|
17411
|
+
case typeof _ == "boolean": {
|
17390
17412
|
let A = "";
|
17391
17413
|
switch (m) {
|
17392
17414
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
17393
|
-
A = ` AND (${
|
17415
|
+
A = ` AND (${b} <> ${_ ? 1 : 0})`;
|
17394
17416
|
break;
|
17395
17417
|
}
|
17396
17418
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
17397
17419
|
default: {
|
17398
|
-
A = ` AND (${
|
17420
|
+
A = ` AND (${b} = ${_ ? 1 : 0})`;
|
17399
17421
|
break;
|
17400
17422
|
}
|
17401
17423
|
}
|
17402
|
-
u[
|
17424
|
+
u[y] = A;
|
17403
17425
|
break;
|
17404
17426
|
}
|
17405
17427
|
default: {
|
17406
|
-
u[
|
17428
|
+
u[y] = _;
|
17407
17429
|
break;
|
17408
17430
|
}
|
17409
17431
|
}
|
17410
17432
|
});
|
17411
17433
|
let g = `WHERE (1 = 1)${reduce(
|
17412
17434
|
u,
|
17413
|
-
(
|
17435
|
+
(y, p, _) => l.includes(_) || !p ? y : y + p,
|
17414
17436
|
""
|
17415
17437
|
)}`;
|
17416
17438
|
g = encodeURIComponent(g);
|
17417
17439
|
let E = "";
|
17418
17440
|
if (s.column) {
|
17419
|
-
const
|
17420
|
-
let
|
17421
|
-
|
17441
|
+
const y = r && i ? i.store.getVarProfileDetail(r, s.column) : null;
|
17442
|
+
let p = s.column;
|
17443
|
+
y && (y == null ? void 0 : y.use_underscore_when_dynamic_query_flag) !== 0 && (p = s.column.split(".").map((_) => snakeCase$1(_)).join(".")), E = `ORDER BY ${p}`, s.order === "asc" ? E += " ASC" : s.order === "desc" && (E += " DESC");
|
17422
17444
|
}
|
17423
17445
|
if (!isNil(s.pageNo)) {
|
17424
|
-
const
|
17425
|
-
if (Number.isNaN(
|
17446
|
+
const y = Number.parseInt(s.pageNo);
|
17447
|
+
if (Number.isNaN(y) || y <= 0)
|
17426
17448
|
throw new Error("\u53C2\u6570 pageNo \u975E\u6CD5.");
|
17427
|
-
const
|
17428
|
-
if (Number.isNaN(
|
17449
|
+
const p = Number.parseInt(s.pageSize);
|
17450
|
+
if (Number.isNaN(p) || p <= 0)
|
17429
17451
|
throw new Error("\u53C2\u6570 pageSize \u975E\u6CD5.");
|
17430
|
-
E += ` OFFSET ${(
|
17452
|
+
E += ` OFFSET ${(y - 1) * p} ROWS FETCH NEXT ${p} ROWS ONLY`;
|
17431
17453
|
}
|
17432
17454
|
return E = encodeURIComponent(E.trim()), { sql: `${g} ${E}`.trim(), whereSql: g, orderBySql: E };
|
17433
17455
|
}
|
@@ -17456,7 +17478,7 @@ class KgUtil {
|
|
17456
17478
|
if (!o)
|
17457
17479
|
return r;
|
17458
17480
|
switch ((() => {
|
17459
|
-
const c = o.ctrl_typ, u = o.prf_ctrl_typ, d = o.crt_ctrl_typ, g = o.upt_ctrl_typ, E = o.cpy_ctrl_typ,
|
17481
|
+
const c = o.ctrl_typ, u = o.prf_ctrl_typ, d = o.crt_ctrl_typ, g = o.upt_ctrl_typ, E = o.cpy_ctrl_typ, y = o.del_ctrl_typ;
|
17460
17482
|
switch (!0) {
|
17461
17483
|
case l.isRetrieving.value:
|
17462
17484
|
return u || c;
|
@@ -17467,7 +17489,7 @@ class KgUtil {
|
|
17467
17489
|
case s.isCopying.value:
|
17468
17490
|
return E || c;
|
17469
17491
|
case s.isDeleting.value:
|
17470
|
-
return
|
17492
|
+
return y || c;
|
17471
17493
|
}
|
17472
17494
|
return c;
|
17473
17495
|
})()) {
|