@kengic/vue 0.6.14 → 0.6.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/kengic-vue.js
CHANGED
|
@@ -3932,16 +3932,16 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
3932
3932
|
var O = ["th", "st", "nd", "rd"], D = V % 100;
|
|
3933
3933
|
return "[" + V + (O[(D - 20) % 10] || O[D] || O[0]) + "]";
|
|
3934
3934
|
} }, k = function(V, O, D) {
|
|
3935
|
-
var
|
|
3936
|
-
return !
|
|
3935
|
+
var N = String(V);
|
|
3936
|
+
return !N || N.length >= O ? V : "" + Array(O + 1 - N.length).join(D) + V;
|
|
3937
3937
|
}, T = { s: k, z: function(V) {
|
|
3938
|
-
var O = -V.utcOffset(), D = Math.abs(O),
|
|
3939
|
-
return (O <= 0 ? "+" : "-") + k(
|
|
3938
|
+
var O = -V.utcOffset(), D = Math.abs(O), N = Math.floor(D / 60), L = D % 60;
|
|
3939
|
+
return (O <= 0 ? "+" : "-") + k(N, 2, "0") + ":" + k(L, 2, "0");
|
|
3940
3940
|
}, m: function V(O, D) {
|
|
3941
3941
|
if (O.date() < D.date())
|
|
3942
3942
|
return -V(D, O);
|
|
3943
|
-
var
|
|
3944
|
-
return +(-(
|
|
3943
|
+
var N = 12 * (D.year() - O.year()) + (D.month() - O.month()), L = O.clone().add(N, d), H = D - L < 0, K = O.clone().add(N + (H ? -1 : 1), d);
|
|
3944
|
+
return +(-(N + (D - L) / (H ? L - K : K - L)) || 0);
|
|
3945
3945
|
}, a: function(V) {
|
|
3946
3946
|
return V < 0 ? Math.ceil(V) || 0 : Math.floor(V);
|
|
3947
3947
|
}, p: function(V) {
|
|
@@ -3951,39 +3951,39 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
3951
3951
|
} }, M = "en", E = {};
|
|
3952
3952
|
E[M] = y;
|
|
3953
3953
|
var P = function(V) {
|
|
3954
|
-
return V instanceof
|
|
3955
|
-
}, I = function V(O, D,
|
|
3954
|
+
return V instanceof U;
|
|
3955
|
+
}, I = function V(O, D, N) {
|
|
3956
3956
|
var L;
|
|
3957
3957
|
if (!O)
|
|
3958
3958
|
return M;
|
|
3959
3959
|
if (typeof O == "string") {
|
|
3960
|
-
var
|
|
3961
|
-
E[
|
|
3962
|
-
var
|
|
3963
|
-
if (!L &&
|
|
3964
|
-
return V(
|
|
3960
|
+
var H = O.toLowerCase();
|
|
3961
|
+
E[H] && (L = H), D && (E[H] = D, L = H);
|
|
3962
|
+
var K = O.split("-");
|
|
3963
|
+
if (!L && K.length > 1)
|
|
3964
|
+
return V(K[0]);
|
|
3965
3965
|
} else {
|
|
3966
|
-
var
|
|
3967
|
-
E[
|
|
3966
|
+
var G = O.name;
|
|
3967
|
+
E[G] = O, L = G;
|
|
3968
3968
|
}
|
|
3969
|
-
return !
|
|
3969
|
+
return !N && L && (M = L), L || !N && M;
|
|
3970
3970
|
}, A = function(V, O) {
|
|
3971
3971
|
if (P(V))
|
|
3972
3972
|
return V.clone();
|
|
3973
3973
|
var D = typeof O == "object" ? O : {};
|
|
3974
|
-
return D.date = V, D.args = arguments, new
|
|
3974
|
+
return D.date = V, D.args = arguments, new U(D);
|
|
3975
3975
|
}, w = T;
|
|
3976
3976
|
w.l = I, w.i = P, w.w = function(V, O) {
|
|
3977
3977
|
return A(V, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
|
3978
3978
|
};
|
|
3979
|
-
var
|
|
3979
|
+
var U = function() {
|
|
3980
3980
|
function V(D) {
|
|
3981
3981
|
this.$L = I(D.locale, null, !0), this.parse(D);
|
|
3982
3982
|
}
|
|
3983
3983
|
var O = V.prototype;
|
|
3984
3984
|
return O.parse = function(D) {
|
|
3985
|
-
this.$d = function(
|
|
3986
|
-
var L =
|
|
3985
|
+
this.$d = function(N) {
|
|
3986
|
+
var L = N.date, H = N.utc;
|
|
3987
3987
|
if (L === null)
|
|
3988
3988
|
return new Date(NaN);
|
|
3989
3989
|
if (w.u(L))
|
|
@@ -3991,10 +3991,10 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
3991
3991
|
if (L instanceof Date)
|
|
3992
3992
|
return new Date(L);
|
|
3993
3993
|
if (typeof L == "string" && !/Z$/i.test(L)) {
|
|
3994
|
-
var
|
|
3995
|
-
if (
|
|
3996
|
-
var
|
|
3997
|
-
return
|
|
3994
|
+
var K = L.match(_);
|
|
3995
|
+
if (K) {
|
|
3996
|
+
var G = K[2] - 1 || 0, Y = (K[7] || "0").substring(0, 3);
|
|
3997
|
+
return H ? new Date(Date.UTC(K[1], G, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, Y)) : new Date(K[1], G, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, Y);
|
|
3998
3998
|
}
|
|
3999
3999
|
}
|
|
4000
4000
|
return new Date(L);
|
|
@@ -4006,108 +4006,108 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
4006
4006
|
return w;
|
|
4007
4007
|
}, O.isValid = function() {
|
|
4008
4008
|
return this.$d.toString() !== g;
|
|
4009
|
-
}, O.isSame = function(D,
|
|
4009
|
+
}, O.isSame = function(D, N) {
|
|
4010
4010
|
var L = A(D);
|
|
4011
|
-
return this.startOf(
|
|
4012
|
-
}, O.isAfter = function(D,
|
|
4013
|
-
return A(D) < this.startOf(
|
|
4014
|
-
}, O.isBefore = function(D,
|
|
4015
|
-
return this.endOf(
|
|
4016
|
-
}, O.$g = function(D,
|
|
4017
|
-
return w.u(D) ? this[
|
|
4011
|
+
return this.startOf(N) <= L && L <= this.endOf(N);
|
|
4012
|
+
}, O.isAfter = function(D, N) {
|
|
4013
|
+
return A(D) < this.startOf(N);
|
|
4014
|
+
}, O.isBefore = function(D, N) {
|
|
4015
|
+
return this.endOf(N) < A(D);
|
|
4016
|
+
}, O.$g = function(D, N, L) {
|
|
4017
|
+
return w.u(D) ? this[N] : this.set(L, D);
|
|
4018
4018
|
}, O.unix = function() {
|
|
4019
4019
|
return Math.floor(this.valueOf() / 1e3);
|
|
4020
4020
|
}, O.valueOf = function() {
|
|
4021
4021
|
return this.$d.getTime();
|
|
4022
|
-
}, O.startOf = function(D,
|
|
4023
|
-
var L = this,
|
|
4024
|
-
var ue = w.w(L.$u ? Date.UTC(L.$y,
|
|
4025
|
-
return
|
|
4026
|
-
}, Y = function(ce,
|
|
4027
|
-
return w.w(L.toDate()[ce].apply(L.toDate("s"), (
|
|
4028
|
-
},
|
|
4029
|
-
switch (
|
|
4022
|
+
}, O.startOf = function(D, N) {
|
|
4023
|
+
var L = this, H = !!w.u(N) || N, K = w.p(D), G = function(ce, ae) {
|
|
4024
|
+
var ue = w.w(L.$u ? Date.UTC(L.$y, ae, ce) : new Date(L.$y, ae, ce), L);
|
|
4025
|
+
return H ? ue : ue.endOf(c);
|
|
4026
|
+
}, Y = function(ce, ae) {
|
|
4027
|
+
return w.w(L.toDate()[ce].apply(L.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), L);
|
|
4028
|
+
}, Q = this.$W, q = this.$M, te = this.$D, re = "set" + (this.$u ? "UTC" : "");
|
|
4029
|
+
switch (K) {
|
|
4030
4030
|
case v:
|
|
4031
|
-
return
|
|
4031
|
+
return H ? G(1, 0) : G(31, 11);
|
|
4032
4032
|
case d:
|
|
4033
|
-
return
|
|
4033
|
+
return H ? G(1, q) : G(0, q + 1);
|
|
4034
4034
|
case u:
|
|
4035
|
-
var ne = this.$locale().weekStart || 0, le = (
|
|
4036
|
-
return H
|
|
4035
|
+
var ne = this.$locale().weekStart || 0, le = (Q < ne ? Q + 7 : Q) - ne;
|
|
4036
|
+
return G(H ? te - le : te + (6 - le), q);
|
|
4037
4037
|
case c:
|
|
4038
4038
|
case C:
|
|
4039
|
-
return Y(
|
|
4039
|
+
return Y(re + "Hours", 0);
|
|
4040
4040
|
case l:
|
|
4041
|
-
return Y(
|
|
4041
|
+
return Y(re + "Minutes", 1);
|
|
4042
4042
|
case s:
|
|
4043
|
-
return Y(
|
|
4043
|
+
return Y(re + "Seconds", 2);
|
|
4044
4044
|
case i:
|
|
4045
|
-
return Y(
|
|
4045
|
+
return Y(re + "Milliseconds", 3);
|
|
4046
4046
|
default:
|
|
4047
4047
|
return this.clone();
|
|
4048
4048
|
}
|
|
4049
4049
|
}, O.endOf = function(D) {
|
|
4050
4050
|
return this.startOf(D, !1);
|
|
4051
|
-
}, O.$set = function(D,
|
|
4052
|
-
var L,
|
|
4053
|
-
if (
|
|
4054
|
-
var
|
|
4055
|
-
|
|
4051
|
+
}, O.$set = function(D, N) {
|
|
4052
|
+
var L, H = w.p(D), K = "set" + (this.$u ? "UTC" : ""), G = (L = {}, L[c] = K + "Date", L[C] = K + "Date", L[d] = K + "Month", L[v] = K + "FullYear", L[l] = K + "Hours", L[s] = K + "Minutes", L[i] = K + "Seconds", L[o] = K + "Milliseconds", L)[H], Y = H === c ? this.$D + (N - this.$W) : N;
|
|
4053
|
+
if (H === d || H === v) {
|
|
4054
|
+
var Q = this.clone().set(C, 1);
|
|
4055
|
+
Q.$d[G](Y), Q.init(), this.$d = Q.set(C, Math.min(this.$D, Q.daysInMonth())).$d;
|
|
4056
4056
|
} else
|
|
4057
|
-
|
|
4057
|
+
G && this.$d[G](Y);
|
|
4058
4058
|
return this.init(), this;
|
|
4059
|
-
}, O.set = function(D,
|
|
4060
|
-
return this.clone().$set(D,
|
|
4059
|
+
}, O.set = function(D, N) {
|
|
4060
|
+
return this.clone().$set(D, N);
|
|
4061
4061
|
}, O.get = function(D) {
|
|
4062
4062
|
return this[w.p(D)]();
|
|
4063
|
-
}, O.add = function(D,
|
|
4064
|
-
var L,
|
|
4063
|
+
}, O.add = function(D, N) {
|
|
4064
|
+
var L, H = this;
|
|
4065
4065
|
D = Number(D);
|
|
4066
|
-
var
|
|
4067
|
-
var
|
|
4068
|
-
return w.w(
|
|
4066
|
+
var K = w.p(N), G = function(q) {
|
|
4067
|
+
var te = A(H);
|
|
4068
|
+
return w.w(te.date(te.date() + Math.round(q * D)), H);
|
|
4069
4069
|
};
|
|
4070
|
-
if (
|
|
4070
|
+
if (K === d)
|
|
4071
4071
|
return this.set(d, this.$M + D);
|
|
4072
|
-
if (
|
|
4072
|
+
if (K === v)
|
|
4073
4073
|
return this.set(v, this.$y + D);
|
|
4074
|
-
if (
|
|
4075
|
-
return
|
|
4076
|
-
if (
|
|
4077
|
-
return
|
|
4078
|
-
var Y = (L = {}, L[s] = a, L[l] = n, L[i] = r, L)[
|
|
4079
|
-
return w.w(
|
|
4080
|
-
}, O.subtract = function(D,
|
|
4081
|
-
return this.add(-1 * D,
|
|
4074
|
+
if (K === c)
|
|
4075
|
+
return G(1);
|
|
4076
|
+
if (K === u)
|
|
4077
|
+
return G(7);
|
|
4078
|
+
var Y = (L = {}, L[s] = a, L[l] = n, L[i] = r, L)[K] || 1, Q = this.$d.getTime() + D * Y;
|
|
4079
|
+
return w.w(Q, this);
|
|
4080
|
+
}, O.subtract = function(D, N) {
|
|
4081
|
+
return this.add(-1 * D, N);
|
|
4082
4082
|
}, O.format = function(D) {
|
|
4083
|
-
var
|
|
4083
|
+
var N = this, L = this.$locale();
|
|
4084
4084
|
if (!this.isValid())
|
|
4085
4085
|
return L.invalidDate || g;
|
|
4086
|
-
var
|
|
4087
|
-
return
|
|
4088
|
-
}, ne = function(
|
|
4089
|
-
return w.s(
|
|
4090
|
-
}, le = L.meridiem || function(
|
|
4091
|
-
var de =
|
|
4086
|
+
var H = D || "YYYY-MM-DDTHH:mm:ssZ", K = w.z(this), G = this.$H, Y = this.$m, Q = this.$M, q = L.weekdays, te = L.months, re = function(ae, ue, fe, de) {
|
|
4087
|
+
return ae && (ae[ue] || ae(N, H)) || fe[ue].slice(0, de);
|
|
4088
|
+
}, ne = function(ae) {
|
|
4089
|
+
return w.s(G % 12 || 12, ae, "0");
|
|
4090
|
+
}, le = L.meridiem || function(ae, ue, fe) {
|
|
4091
|
+
var de = ae < 12 ? "AM" : "PM";
|
|
4092
4092
|
return fe ? de.toLowerCase() : de;
|
|
4093
|
-
}, ce = { YY: String(this.$y).slice(-2), YYYY: this.$y, M:
|
|
4094
|
-
return
|
|
4095
|
-
return ue || ce[
|
|
4093
|
+
}, ce = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Q + 1, MM: w.s(Q + 1, 2, "0"), MMM: re(L.monthsShort, Q, te, 3), MMMM: re(te, Q), D: this.$D, DD: w.s(this.$D, 2, "0"), d: String(this.$W), dd: re(L.weekdaysMin, this.$W, q, 2), ddd: re(L.weekdaysShort, this.$W, q, 3), dddd: q[this.$W], H: String(G), HH: w.s(G, 2, "0"), h: ne(1), hh: ne(2), a: le(G, Y, !0), A: le(G, Y, !1), m: String(Y), mm: w.s(Y, 2, "0"), s: String(this.$s), ss: w.s(this.$s, 2, "0"), SSS: w.s(this.$ms, 3, "0"), Z: K };
|
|
4094
|
+
return H.replace(b, function(ae, ue) {
|
|
4095
|
+
return ue || ce[ae] || K.replace(":", "");
|
|
4096
4096
|
});
|
|
4097
4097
|
}, O.utcOffset = function() {
|
|
4098
4098
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
4099
|
-
}, O.diff = function(D,
|
|
4100
|
-
var
|
|
4101
|
-
return
|
|
4099
|
+
}, O.diff = function(D, N, L) {
|
|
4100
|
+
var H, K = w.p(N), G = A(D), Y = (G.utcOffset() - this.utcOffset()) * a, Q = this - G, q = w.m(this, G);
|
|
4101
|
+
return q = (H = {}, H[v] = q / 12, H[d] = q, H[m] = q / 3, H[u] = (Q - Y) / 6048e5, H[c] = (Q - Y) / 864e5, H[l] = Q / n, H[s] = Q / a, H[i] = Q / r, H)[K] || Q, L ? q : w.a(q);
|
|
4102
4102
|
}, O.daysInMonth = function() {
|
|
4103
4103
|
return this.endOf(d).$D;
|
|
4104
4104
|
}, O.$locale = function() {
|
|
4105
4105
|
return E[this.$L];
|
|
4106
|
-
}, O.locale = function(D,
|
|
4106
|
+
}, O.locale = function(D, N) {
|
|
4107
4107
|
if (!D)
|
|
4108
4108
|
return this.$L;
|
|
4109
|
-
var L = this.clone(),
|
|
4110
|
-
return
|
|
4109
|
+
var L = this.clone(), H = I(D, N, !0);
|
|
4110
|
+
return H && (L.$L = H), L;
|
|
4111
4111
|
}, O.clone = function() {
|
|
4112
4112
|
return w.w(this.$d, this);
|
|
4113
4113
|
}, O.toDate = function() {
|
|
@@ -4119,13 +4119,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
|
4119
4119
|
}, O.toString = function() {
|
|
4120
4120
|
return this.$d.toUTCString();
|
|
4121
4121
|
}, V;
|
|
4122
|
-
}(), $ =
|
|
4122
|
+
}(), $ = U.prototype;
|
|
4123
4123
|
return A.prototype = $, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", c], ["$M", d], ["$y", v], ["$D", C]].forEach(function(V) {
|
|
4124
4124
|
$[V[1]] = function(O) {
|
|
4125
4125
|
return this.$g(O, V[0], V[1]);
|
|
4126
4126
|
};
|
|
4127
4127
|
}), A.extend = function(V, O) {
|
|
4128
|
-
return V.$i || (V(O,
|
|
4128
|
+
return V.$i || (V(O, U, A), V.$i = !0), A;
|
|
4129
4129
|
}, A.locale = I, A.isDayjs = P, A.unix = function(V) {
|
|
4130
4130
|
return A(1e3 * V);
|
|
4131
4131
|
}, A.en = E[M], A.Ls = E, A.p = {}, A;
|
|
@@ -4190,8 +4190,8 @@ function filesize(e, {
|
|
|
4190
4190
|
k[0] = A(T * w) / w, k[0] === E && b < 8 && C === -1 && (k[0] = 1, b++), M = k[1] = a === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][b];
|
|
4191
4191
|
}
|
|
4192
4192
|
if (I && (k[0] = -k[0]), _ > 0 && (k[0] = k[0].toPrecision(_)), k[1] = c[k[1]] || k[1], o === !0 ? k[0] = k[0].toLocaleString() : o.length > 0 ? k[0] = k[0].toLocaleString(o, i) : s.length > 0 && (k[0] = k[0].toString().replace(PERIOD, s)), r && Number.isInteger(k[0]) === !1 && n > 0) {
|
|
4193
|
-
const w = s || PERIOD,
|
|
4194
|
-
k[0] = `${
|
|
4193
|
+
const w = s || PERIOD, U = k[0].toString().split(w), $ = U[1] || EMPTY, V = $.length, O = n - V;
|
|
4194
|
+
k[0] = `${U[0]}${w}${$.padEnd(V + O, ZERO)}`;
|
|
4195
4195
|
}
|
|
4196
4196
|
return P && (k[1] = v[b] ? v[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (k[0] === 1 ? EMPTY : S)), d === ARRAY ? k : d === OBJECT ? {
|
|
4197
4197
|
value: k[0],
|
|
@@ -6672,12 +6672,12 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
|
6672
6672
|
function k(I, A) {
|
|
6673
6673
|
return function() {
|
|
6674
6674
|
setActivePinia(a);
|
|
6675
|
-
const w = Array.from(arguments),
|
|
6676
|
-
function V(
|
|
6677
|
-
|
|
6675
|
+
const w = Array.from(arguments), U = [], $ = [];
|
|
6676
|
+
function V(N) {
|
|
6677
|
+
U.push(N);
|
|
6678
6678
|
}
|
|
6679
|
-
function O(
|
|
6680
|
-
$.push(
|
|
6679
|
+
function O(N) {
|
|
6680
|
+
$.push(N);
|
|
6681
6681
|
}
|
|
6682
6682
|
triggerSubscriptions(m, {
|
|
6683
6683
|
args: w,
|
|
@@ -6689,10 +6689,10 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
|
6689
6689
|
let D;
|
|
6690
6690
|
try {
|
|
6691
6691
|
D = A.apply(this && this.$id === e ? this : E, w);
|
|
6692
|
-
} catch (
|
|
6693
|
-
throw triggerSubscriptions($,
|
|
6692
|
+
} catch (N) {
|
|
6693
|
+
throw triggerSubscriptions($, N), N;
|
|
6694
6694
|
}
|
|
6695
|
-
return D instanceof Promise ? D.then((
|
|
6695
|
+
return D instanceof Promise ? D.then((N) => (triggerSubscriptions(U, N), N)).catch((N) => (triggerSubscriptions($, N), Promise.reject(N))) : (triggerSubscriptions(U, D), D);
|
|
6696
6696
|
};
|
|
6697
6697
|
}
|
|
6698
6698
|
const T = /* @__PURE__ */ markRaw({
|
|
@@ -6707,7 +6707,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
|
6707
6707
|
$patch: _,
|
|
6708
6708
|
$reset: b,
|
|
6709
6709
|
$subscribe(I, A = {}) {
|
|
6710
|
-
const w = addSubscription(d, I, A.detached, () =>
|
|
6710
|
+
const w = addSubscription(d, I, A.detached, () => U()), U = o.run(() => watch(() => a.state.value[e], ($) => {
|
|
6711
6711
|
(A.flush === "sync" ? u : c) && I({
|
|
6712
6712
|
storeId: e,
|
|
6713
6713
|
type: MutationType.direct,
|
|
@@ -6749,8 +6749,8 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
|
6749
6749
|
E._hotUpdate = markRaw((A) => {
|
|
6750
6750
|
E._hotUpdating = !0, A._hmrPayload.state.forEach((w) => {
|
|
6751
6751
|
if (w in E.$state) {
|
|
6752
|
-
const
|
|
6753
|
-
typeof
|
|
6752
|
+
const U = A.$state[w], $ = E.$state[w];
|
|
6753
|
+
typeof U == "object" && isPlainObject(U) && isPlainObject($) ? patchObject(U, $) : A.$state[w] = $;
|
|
6754
6754
|
}
|
|
6755
6755
|
set(E, w, toRef(A.$state, w));
|
|
6756
6756
|
}), Object.keys(E.$state).forEach((w) => {
|
|
@@ -6759,11 +6759,11 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
|
6759
6759
|
c = !0;
|
|
6760
6760
|
});
|
|
6761
6761
|
for (const w in A._hmrPayload.actions) {
|
|
6762
|
-
const
|
|
6763
|
-
set(E, w, k(w,
|
|
6762
|
+
const U = A[w];
|
|
6763
|
+
set(E, w, k(w, U));
|
|
6764
6764
|
}
|
|
6765
6765
|
for (const w in A._hmrPayload.getters) {
|
|
6766
|
-
const
|
|
6766
|
+
const U = A._hmrPayload.getters[w], $ = i ? computed(() => (setActivePinia(a), U.call(E, E))) : U;
|
|
6767
6767
|
set(E, w, $);
|
|
6768
6768
|
}
|
|
6769
6769
|
Object.keys(E._hmrPayload.getters).forEach((w) => {
|
|
@@ -7016,7 +7016,7 @@ const useKgAppSelectStore = () => (store$8 || (store$8 = defineStore("KgAppSelec
|
|
|
7016
7016
|
this.currentApp = e;
|
|
7017
7017
|
let r = KgRouteUtil.getAppIndexPath(e);
|
|
7018
7018
|
const { path: a } = unref(t.router.value.currentRoute);
|
|
7019
|
-
r !== a && (await this.emit("gotoApp", e), await t.router.value.push(r));
|
|
7019
|
+
r !== a && (await this.emit("gotoApp", { app: e }), await t.router.value.push(r));
|
|
7020
7020
|
},
|
|
7021
7021
|
async gotoPath(e) {
|
|
7022
7022
|
const t = useKg();
|
|
@@ -7028,7 +7028,7 @@ const useKgAppSelectStore = () => (store$8 || (store$8 = defineStore("KgAppSelec
|
|
|
7028
7028
|
if (r !== this.currentApp) {
|
|
7029
7029
|
this.currentApp = r;
|
|
7030
7030
|
const a = unref(t.router.value.currentRoute).path;
|
|
7031
|
-
e !== a && (await this.emit("gotoPath", e), await t.router.value.push(e));
|
|
7031
|
+
e !== a && (await this.emit("gotoPath", { path: e }), await t.router.value.push(e));
|
|
7032
7032
|
} else {
|
|
7033
7033
|
const a = unref(t.router.value.currentRoute).path;
|
|
7034
7034
|
e !== a && await t.router.value.push(e);
|
|
@@ -8696,25 +8696,40 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
|
8696
8696
|
!a || (a.width = String(r));
|
|
8697
8697
|
},
|
|
8698
8698
|
patchVarGridDetail(e, t, r) {
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
l in o && (o[l] = c);
|
|
8699
|
+
return !e || !t ? Promise.resolve() : new Promise((a) => {
|
|
8700
|
+
const n = watch(
|
|
8701
|
+
() => this.isRetrievedMap.get(e),
|
|
8702
|
+
(o) => {
|
|
8703
|
+
if (o) {
|
|
8704
|
+
const i = this.getVarGridDetail(e, t);
|
|
8705
|
+
i && setTimeout(() => {
|
|
8706
|
+
n(), Object.entries(r).forEach(([s, l]) => {
|
|
8707
|
+
s in i && (i[s] = l);
|
|
8708
|
+
}), a();
|
|
8710
8709
|
});
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8714
|
-
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
|
|
8710
|
+
}
|
|
8711
|
+
},
|
|
8712
|
+
{ immediate: !0 }
|
|
8713
|
+
);
|
|
8714
|
+
});
|
|
8715
|
+
},
|
|
8716
|
+
patchVarProfileDetail(e, t, r) {
|
|
8717
|
+
return !e || !t ? Promise.resolve() : new Promise((a) => {
|
|
8718
|
+
const n = watch(
|
|
8719
|
+
() => this.isRetrievedMap.get(e),
|
|
8720
|
+
(o) => {
|
|
8721
|
+
if (o) {
|
|
8722
|
+
const i = this.getVarProfileDetail(e, t);
|
|
8723
|
+
i && setTimeout(() => {
|
|
8724
|
+
n(), Object.entries(r).forEach(([s, l]) => {
|
|
8725
|
+
s in i && (i[s] = l);
|
|
8726
|
+
}), a();
|
|
8727
|
+
});
|
|
8728
|
+
}
|
|
8729
|
+
},
|
|
8730
|
+
{ immediate: !0 }
|
|
8731
|
+
);
|
|
8732
|
+
});
|
|
8718
8733
|
},
|
|
8719
8734
|
setVarPossibility(e, t, r) {
|
|
8720
8735
|
if (!e || !t)
|
|
@@ -8766,14 +8781,14 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
|
8766
8781
|
function useKgVar(e, t, r = 0) {
|
|
8767
8782
|
var a, n;
|
|
8768
8783
|
try {
|
|
8769
|
-
let o = function(
|
|
8770
|
-
u.setIsCreating(c,
|
|
8771
|
-
}, i = function(
|
|
8772
|
-
u.setIsUpdating(c,
|
|
8773
|
-
}, s = function(
|
|
8774
|
-
u.setIsCopying(c,
|
|
8775
|
-
}, l = function(
|
|
8776
|
-
u.setIsDeleting(c,
|
|
8784
|
+
let o = function(q) {
|
|
8785
|
+
u.setIsCreating(c, q);
|
|
8786
|
+
}, i = function(q) {
|
|
8787
|
+
u.setIsUpdating(c, q);
|
|
8788
|
+
}, s = function(q) {
|
|
8789
|
+
u.setIsCopying(c, q);
|
|
8790
|
+
}, l = function(q) {
|
|
8791
|
+
u.setIsDeleting(c, q);
|
|
8777
8792
|
}, c = e || inject(KG_DI_FORM_ID, "");
|
|
8778
8793
|
if (!c)
|
|
8779
8794
|
throw new Error("useKgVar() | \u5FC5\u987B\u4F20\u5165 formID \u53C2\u6570.");
|
|
@@ -8783,13 +8798,13 @@ function useKgVar(e, t, r = 0) {
|
|
|
8783
8798
|
}), onUnmounted(() => {
|
|
8784
8799
|
u.leave(c);
|
|
8785
8800
|
}));
|
|
8786
|
-
const d = (
|
|
8787
|
-
var
|
|
8788
|
-
return (ne = (
|
|
8789
|
-
}), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), C = computed(() => u.isRetrievingVarGridMaster(c)), g = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), y = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)), M = computed(() => u.isDeleting(c)), E = computed(() => u.isDeletingRequesting(c)), P = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), A = computed(() => u.getVarButtonSearch(c)), w = computed(() => u.getVarButtonCreate(c)),
|
|
8790
|
-
var
|
|
8791
|
-
return (
|
|
8792
|
-
}),
|
|
8801
|
+
const d = (q) => computed(() => {
|
|
8802
|
+
var te, re, ne;
|
|
8803
|
+
return (ne = (re = (te = u.getVarCatalog(c, q)) == null ? void 0 : te.var_text) != null ? re : q) != null ? ne : "";
|
|
8804
|
+
}), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), C = computed(() => u.isRetrievingVarGridMaster(c)), g = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), y = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)), M = computed(() => u.isDeleting(c)), E = computed(() => u.isDeletingRequesting(c)), P = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), A = computed(() => u.getVarButtonSearch(c)), w = computed(() => u.getVarButtonCreate(c)), U = computed(() => u.getVarButtonUpdate(c)), $ = computed(() => u.getVarButtonCopy(c)), V = computed(() => u.getVarButtonDelete(c)), O = computed(() => u.getVarProfileMasters(c)), D = computed(() => u.getCurrentVarProfileMaster(c)), N = computed(() => u.getCurrentVarProfileMasterID(c)), L = computed(() => {
|
|
8805
|
+
var q, te;
|
|
8806
|
+
return (te = (q = D.value) == null ? void 0 : q.varProfileDetails) != null ? te : null;
|
|
8807
|
+
}), H = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), G = computed(() => u.getCurrentVarGridMaster(c)), Y = computed(() => u.getSystemVarGridDetails(c)), Q = computed(() => u.getCurrentVarGridDetails(c));
|
|
8793
8808
|
return {
|
|
8794
8809
|
formID: c,
|
|
8795
8810
|
store: u,
|
|
@@ -8808,18 +8823,18 @@ function useKgVar(e, t, r = 0) {
|
|
|
8808
8823
|
varButtons: I,
|
|
8809
8824
|
varButtonSearch: A,
|
|
8810
8825
|
varButtonCreate: w,
|
|
8811
|
-
varButtonUpdate:
|
|
8826
|
+
varButtonUpdate: U,
|
|
8812
8827
|
varButtonCopy: $,
|
|
8813
8828
|
varButtonDelete: V,
|
|
8814
8829
|
varProfileMasters: O,
|
|
8815
8830
|
currentVarProfileMaster: D,
|
|
8816
|
-
currentVarProfileMasterID:
|
|
8831
|
+
currentVarProfileMasterID: N,
|
|
8817
8832
|
currentVarProfileDetails: L,
|
|
8818
|
-
varGridConfig:
|
|
8819
|
-
varGridMasters:
|
|
8820
|
-
currentVarGridMaster:
|
|
8833
|
+
varGridConfig: H,
|
|
8834
|
+
varGridMasters: K,
|
|
8835
|
+
currentVarGridMaster: G,
|
|
8821
8836
|
systemVarGridDetails: Y,
|
|
8822
|
-
currentVarGridDetails:
|
|
8837
|
+
currentVarGridDetails: Q,
|
|
8823
8838
|
setIsCreating: o,
|
|
8824
8839
|
setIsUpdating: i,
|
|
8825
8840
|
setIsCopying: s,
|
|
@@ -9650,13 +9665,13 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9650
9665
|
var_nam: I,
|
|
9651
9666
|
model: A,
|
|
9652
9667
|
isMultiple: w,
|
|
9653
|
-
value:
|
|
9668
|
+
value: U,
|
|
9654
9669
|
values: $
|
|
9655
9670
|
}) => {
|
|
9656
9671
|
var V;
|
|
9657
9672
|
switch (I) {
|
|
9658
9673
|
case e.kgVarName:
|
|
9659
|
-
A.value && (w ? A.value[e.kgVarName] = $ : A.value[e.kgVarName] =
|
|
9674
|
+
A.value && (w ? A.value[e.kgVarName] = $ : A.value[e.kgVarName] = U), (V = n.value) == null || V.validate([e.kgVarName]);
|
|
9660
9675
|
break;
|
|
9661
9676
|
}
|
|
9662
9677
|
return !1;
|
|
@@ -9666,7 +9681,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9666
9681
|
} = _useRules(e), {
|
|
9667
9682
|
controlType: m
|
|
9668
9683
|
} = useKgFormItem(e), v = computed(() => {
|
|
9669
|
-
var A, w,
|
|
9684
|
+
var A, w, U, $, V;
|
|
9670
9685
|
if (o.isRetrieving.value)
|
|
9671
9686
|
return !0;
|
|
9672
9687
|
let I = !1;
|
|
@@ -9683,7 +9698,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9683
9698
|
I = ((w = u.value) == null ? void 0 : w.crt_ena_flg) === 0;
|
|
9684
9699
|
break;
|
|
9685
9700
|
case o.isUpdating.value:
|
|
9686
|
-
I = ((
|
|
9701
|
+
I = ((U = u.value) == null ? void 0 : U.upt_ena_flg) === 0;
|
|
9687
9702
|
break;
|
|
9688
9703
|
case o.isCopying.value:
|
|
9689
9704
|
I = (($ = u.value) == null ? void 0 : $.cpy_ena_flg) === 0;
|
|
@@ -9696,7 +9711,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9696
9711
|
}
|
|
9697
9712
|
return I;
|
|
9698
9713
|
}), C = computed(() => {
|
|
9699
|
-
var A, w,
|
|
9714
|
+
var A, w, U, $;
|
|
9700
9715
|
let I = " ";
|
|
9701
9716
|
if (e.kgPlaceholder)
|
|
9702
9717
|
I = e.kgPlaceholder;
|
|
@@ -9706,12 +9721,12 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9706
9721
|
I = o.t((w = (A = c.value) == null ? void 0 : A.placeholder) != null ? w : " ").value;
|
|
9707
9722
|
break;
|
|
9708
9723
|
case KG_FORM_CONTEXT.SUBMIT:
|
|
9709
|
-
I = o.t(($ = (
|
|
9724
|
+
I = o.t(($ = (U = u.value) == null ? void 0 : U.placeholder) != null ? $ : " ").value;
|
|
9710
9725
|
break;
|
|
9711
9726
|
}
|
|
9712
9727
|
return I;
|
|
9713
9728
|
}), g = computed(() => {
|
|
9714
|
-
var A, w,
|
|
9729
|
+
var A, w, U, $, V, O, D, N, L, H;
|
|
9715
9730
|
let I = 6;
|
|
9716
9731
|
if (e.kgSpan !== void 0)
|
|
9717
9732
|
I = e.kgSpan;
|
|
@@ -9723,24 +9738,24 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9723
9738
|
case KG_FORM_CONTEXT.SUBMIT:
|
|
9724
9739
|
switch (!0) {
|
|
9725
9740
|
case o.isCreating.value:
|
|
9726
|
-
I = ($ = (
|
|
9741
|
+
I = ($ = (U = u.value) == null ? void 0 : U.crt_width) != null ? $ : 6;
|
|
9727
9742
|
break;
|
|
9728
9743
|
case o.isUpdating.value:
|
|
9729
9744
|
I = (O = (V = u.value) == null ? void 0 : V.upt_width) != null ? O : 6;
|
|
9730
9745
|
break;
|
|
9731
9746
|
case o.isCopying.value:
|
|
9732
|
-
I = (
|
|
9747
|
+
I = (N = (D = u.value) == null ? void 0 : D.cpy_width) != null ? N : 6;
|
|
9733
9748
|
break;
|
|
9734
9749
|
case o.isDeleting.value:
|
|
9735
|
-
I = (
|
|
9750
|
+
I = (H = (L = u.value) == null ? void 0 : L.del_width) != null ? H : 6;
|
|
9736
9751
|
break;
|
|
9737
9752
|
}
|
|
9738
9753
|
}
|
|
9739
9754
|
return Math.min(24, Math.max(1, I));
|
|
9740
9755
|
}), _ = computed(() => {
|
|
9741
|
-
var
|
|
9756
|
+
var U, $;
|
|
9742
9757
|
const I = get(T.value, "$el.parentElement");
|
|
9743
|
-
if (I && !((
|
|
9758
|
+
if (I && !((U = I.classList) != null && U.contains("ant-row")))
|
|
9744
9759
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
|
9745
9760
|
let A = {};
|
|
9746
9761
|
const w = Math.abs(Number.parseInt(($ = get(T.value, "$el.parentElement.style.marginLeft")) != null ? $ : "0px"));
|
|
@@ -9749,7 +9764,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9749
9764
|
paddingRight: `${w}px !important`
|
|
9750
9765
|
}), A;
|
|
9751
9766
|
}), b = computed(() => {
|
|
9752
|
-
var A, w,
|
|
9767
|
+
var A, w, U, $;
|
|
9753
9768
|
let I = "kg-form-item";
|
|
9754
9769
|
switch (s.value && (I += " kg-form-item-lookup"), e.kgContext) {
|
|
9755
9770
|
case KG_FORM_CONTEXT.SEARCH:
|
|
@@ -9762,7 +9777,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9762
9777
|
case KG_FORM_CONTEXT.SUBMIT:
|
|
9763
9778
|
switch (!0) {
|
|
9764
9779
|
case (o.isCreating.value && ((w = u.value) == null ? void 0 : w.crt_vis_flg) === 0):
|
|
9765
|
-
case (o.isUpdating.value && ((
|
|
9780
|
+
case (o.isUpdating.value && ((U = u.value) == null ? void 0 : U.upt_vis_flg) === 0):
|
|
9766
9781
|
case (o.isCopying.value && (($ = u.value) == null ? void 0 : $.cpy_vis_flg) === 0):
|
|
9767
9782
|
I += " kg-form-item--invisible";
|
|
9768
9783
|
break;
|
|
@@ -9900,10 +9915,6 @@ const KgFormItemRadioGroup = defineComponent({
|
|
|
9900
9915
|
...e
|
|
9901
9916
|
}));
|
|
9902
9917
|
return provide(DI_FORM_MODEL, computed(() => e.model)), provide(DI_FORM_REF, n), r({
|
|
9903
|
-
resetFields(i) {
|
|
9904
|
-
var s;
|
|
9905
|
-
return (s = n.value) == null ? void 0 : s.resetFields(i);
|
|
9906
|
-
},
|
|
9907
9918
|
clearValidate(i) {
|
|
9908
9919
|
var s;
|
|
9909
9920
|
return (s = n.value) == null ? void 0 : s.clearValidate(i);
|
|
@@ -10378,28 +10389,29 @@ function _useFormModel$1() {
|
|
|
10378
10389
|
return [];
|
|
10379
10390
|
}), c = ref({});
|
|
10380
10391
|
return watch(l, (u) => {
|
|
10381
|
-
if (c.value = {}, u != null && u.length) {
|
|
10382
|
-
|
|
10383
|
-
|
|
10384
|
-
var C, g, _, b, y, k, T, M;
|
|
10385
|
-
const v = (C = m.var_nam) != null ? C : "";
|
|
10386
|
-
switch (c.value[v] = void 0, !0) {
|
|
10387
|
-
case t.isCreating.value:
|
|
10388
|
-
c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (g = m.crt_dft_val) != null ? g : void 0, "C");
|
|
10389
|
-
break;
|
|
10390
|
-
case t.isUpdating.value:
|
|
10391
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (b = (_ = m.upt_dft_val) != null ? _ : d == null ? void 0 : d[v]) != null ? b : void 0, "U");
|
|
10392
|
-
break;
|
|
10393
|
-
case t.isCopying.value:
|
|
10394
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (k = (y = m.cpy_dft_val) != null ? y : d == null ? void 0 : d[v]) != null ? k : void 0, "CP");
|
|
10395
|
-
break;
|
|
10396
|
-
case t.isDeleting.value:
|
|
10397
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (M = (T = m.del_dft_val) != null ? T : d == null ? void 0 : d[v]) != null ? M : void 0, "D");
|
|
10398
|
-
break;
|
|
10399
|
-
}
|
|
10400
|
-
});
|
|
10392
|
+
if (c.value = {}, !(u != null && u.length)) {
|
|
10393
|
+
a.store.setModel(t.formID, c.value);
|
|
10394
|
+
return;
|
|
10401
10395
|
}
|
|
10402
|
-
|
|
10396
|
+
const d = r.selectedRow.value;
|
|
10397
|
+
u.forEach((m) => {
|
|
10398
|
+
var C, g, _, b, y, k, T, M;
|
|
10399
|
+
const v = (C = m.var_nam) != null ? C : "";
|
|
10400
|
+
switch (c.value[v] = void 0, !0) {
|
|
10401
|
+
case t.isCreating.value:
|
|
10402
|
+
c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (g = m.crt_dft_val) != null ? g : void 0, "C");
|
|
10403
|
+
break;
|
|
10404
|
+
case t.isUpdating.value:
|
|
10405
|
+
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (b = (_ = m.upt_dft_val) != null ? _ : d == null ? void 0 : d[v]) != null ? b : void 0, "U");
|
|
10406
|
+
break;
|
|
10407
|
+
case t.isCopying.value:
|
|
10408
|
+
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (k = (y = m.cpy_dft_val) != null ? y : d == null ? void 0 : d[v]) != null ? k : void 0, "CP");
|
|
10409
|
+
break;
|
|
10410
|
+
case t.isDeleting.value:
|
|
10411
|
+
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (M = (T = m.del_dft_val) != null ? T : d == null ? void 0 : d[v]) != null ? M : void 0, "D");
|
|
10412
|
+
break;
|
|
10413
|
+
}
|
|
10414
|
+
}), a.store.setModel(t.formID, c.value);
|
|
10403
10415
|
}, {
|
|
10404
10416
|
immediate: !0
|
|
10405
10417
|
}), {
|
|
@@ -10546,12 +10558,12 @@ const getProps$p = () => ({
|
|
|
10546
10558
|
const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), c = useKgSearch();
|
|
10547
10559
|
i.onSubmitSave(async () => (await le(), !1)), i.onSubmitCancel(async () => (await ne(), !1)), _useFormModel$1();
|
|
10548
10560
|
const u = computed(() => o.isDeleting.value && T.value.length === 0 && M.value.length === 0), d = computed(() => l.store.isLoading(o.formID)), m = computed(() => o.store.getVarSubmitConfig(o.formID)), v = computed(() => o.store.getVarSubmitFieldsForCreateKey(o.formID)), C = computed(() => o.store.getVarSubmitFieldsForCreateNotKey(o.formID)), g = computed(() => o.store.getVarSubmitFieldsForUpdateKey(o.formID)), _ = computed(() => o.store.getVarSubmitFieldsForUpdateNotKey(o.formID)), b = computed(() => o.store.getVarSubmitFieldsForCopyKey(o.formID)), y = computed(() => o.store.getVarSubmitFieldsForCopyNotKey(o.formID)), k = computed(() => o.store.getVarSubmitFieldsForDelete(o.formID)), T = computed(() => {
|
|
10549
|
-
var F,
|
|
10561
|
+
var F, B, z;
|
|
10550
10562
|
switch (!0) {
|
|
10551
10563
|
case o.isCreating.value:
|
|
10552
10564
|
return (F = v.value) != null ? F : [];
|
|
10553
10565
|
case o.isUpdating.value:
|
|
10554
|
-
return (
|
|
10566
|
+
return (B = g.value) != null ? B : [];
|
|
10555
10567
|
case o.isCopying.value:
|
|
10556
10568
|
return (z = b.value) != null ? z : [];
|
|
10557
10569
|
case o.isDeleting.value:
|
|
@@ -10559,12 +10571,12 @@ const getProps$p = () => ({
|
|
|
10559
10571
|
}
|
|
10560
10572
|
return [];
|
|
10561
10573
|
}), M = computed(() => {
|
|
10562
|
-
var F,
|
|
10574
|
+
var F, B, z, J;
|
|
10563
10575
|
switch (!0) {
|
|
10564
10576
|
case o.isCreating.value:
|
|
10565
10577
|
return (F = C.value) != null ? F : [];
|
|
10566
10578
|
case o.isUpdating.value:
|
|
10567
|
-
return (
|
|
10579
|
+
return (B = _.value) != null ? B : [];
|
|
10568
10580
|
case o.isCopying.value:
|
|
10569
10581
|
return (z = y.value) != null ? z : [];
|
|
10570
10582
|
case o.isDeleting.value:
|
|
@@ -10575,31 +10587,31 @@ const getProps$p = () => ({
|
|
|
10575
10587
|
kgWidth: 0
|
|
10576
10588
|
}), w = computed(() => {
|
|
10577
10589
|
var F;
|
|
10578
|
-
return !!(u.value ||
|
|
10579
|
-
}),
|
|
10580
|
-
var F,
|
|
10581
|
-
return u.value ? 398 : (
|
|
10590
|
+
return !!(u.value || H.isFullscreen || ((F = m.value) == null ? void 0 : F.resizable_flg) === 0);
|
|
10591
|
+
}), U = computed(() => {
|
|
10592
|
+
var F, B;
|
|
10593
|
+
return u.value ? 398 : (B = (F = m.value) == null ? void 0 : F.min_width) != null ? B : DEFAULT_MIN_WIDTH;
|
|
10582
10594
|
}), $ = computed(() => {
|
|
10583
|
-
var F,
|
|
10584
|
-
return u.value ? 398 : (
|
|
10595
|
+
var F, B;
|
|
10596
|
+
return u.value ? 398 : (B = (F = m.value) == null ? void 0 : F.max_width) != null ? B : DEFAULT_MAX_WIDTH;
|
|
10585
10597
|
}), V = computed(() => u.value ? 398 : A.value.kgWidth), O = ref(null);
|
|
10586
10598
|
_useResizeObserver$1(O);
|
|
10587
|
-
const D = _useTitle(),
|
|
10599
|
+
const D = _useTitle(), N = computed(() => u.value ? 400 : A.value.kgWidth && A.value.kgWidth > 0 ? "auto" : 0), L = computed(() => N.value === 0 ? !1 : !!(o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value)), H = reactive({
|
|
10588
10600
|
isFullscreen: !1
|
|
10589
10601
|
}), {
|
|
10590
|
-
getClass:
|
|
10591
|
-
} = _useClass(e,
|
|
10592
|
-
getLayout:
|
|
10602
|
+
getClass: K
|
|
10603
|
+
} = _useClass(e, H), {
|
|
10604
|
+
getLayout: G
|
|
10593
10605
|
} = _useLayout(), {
|
|
10594
10606
|
getDefaultWidth: Y
|
|
10595
|
-
} = _useDefaultWidth(),
|
|
10596
|
-
var F,
|
|
10597
|
-
switch (
|
|
10607
|
+
} = _useDefaultWidth(), Q = computed(() => {
|
|
10608
|
+
var F, B, z;
|
|
10609
|
+
switch (G.value) {
|
|
10598
10610
|
case "horizontal":
|
|
10599
10611
|
switch ((F = m.value) == null ? void 0 : F.label_col_unit) {
|
|
10600
10612
|
case KG_WIDTH_UNIT.SPAN:
|
|
10601
10613
|
return {
|
|
10602
|
-
span: (
|
|
10614
|
+
span: (B = m.value) == null ? void 0 : B.label_col
|
|
10603
10615
|
};
|
|
10604
10616
|
default:
|
|
10605
10617
|
return {
|
|
@@ -10611,14 +10623,14 @@ const getProps$p = () => ({
|
|
|
10611
10623
|
default:
|
|
10612
10624
|
return;
|
|
10613
10625
|
}
|
|
10614
|
-
}),
|
|
10615
|
-
var F,
|
|
10616
|
-
switch (
|
|
10626
|
+
}), q = computed(() => {
|
|
10627
|
+
var F, B;
|
|
10628
|
+
switch (G.value) {
|
|
10617
10629
|
case "horizontal":
|
|
10618
10630
|
switch ((F = m.value) == null ? void 0 : F.label_col_unit) {
|
|
10619
10631
|
case KG_WIDTH_UNIT.SPAN:
|
|
10620
10632
|
return {
|
|
10621
|
-
span: 24 - ((
|
|
10633
|
+
span: 24 - ((B = m.value) == null ? void 0 : B.label_col)
|
|
10622
10634
|
};
|
|
10623
10635
|
default:
|
|
10624
10636
|
return;
|
|
@@ -10627,8 +10639,8 @@ const getProps$p = () => ({
|
|
|
10627
10639
|
return;
|
|
10628
10640
|
}
|
|
10629
10641
|
});
|
|
10630
|
-
watch(L, (F,
|
|
10631
|
-
F === !0 &&
|
|
10642
|
+
watch(L, (F, B) => {
|
|
10643
|
+
F === !0 && te(), B === !0 && F === !1 && re();
|
|
10632
10644
|
}, {
|
|
10633
10645
|
immediate: !0
|
|
10634
10646
|
}), watch(Y, (F) => {
|
|
@@ -10636,8 +10648,8 @@ const getProps$p = () => ({
|
|
|
10636
10648
|
}, {
|
|
10637
10649
|
immediate: !0
|
|
10638
10650
|
});
|
|
10639
|
-
function
|
|
10640
|
-
var
|
|
10651
|
+
function te() {
|
|
10652
|
+
var B;
|
|
10641
10653
|
const F = watch(l.model, (z) => {
|
|
10642
10654
|
z && Object.keys(z).length > 0 && (setTimeout(() => F()), l.store.emit(o.formID, "open", {
|
|
10643
10655
|
isCreating: o.isCreating.value,
|
|
@@ -10650,10 +10662,10 @@ const getProps$p = () => ({
|
|
|
10650
10662
|
}, {
|
|
10651
10663
|
immediate: !0
|
|
10652
10664
|
});
|
|
10653
|
-
((
|
|
10665
|
+
((B = m.value) == null ? void 0 : B.dft_fullscreen_flg) === 1 && !u.value && (H.isFullscreen = !0);
|
|
10654
10666
|
}
|
|
10655
|
-
async function
|
|
10656
|
-
A.value.kgWidth = Y.value,
|
|
10667
|
+
async function re() {
|
|
10668
|
+
A.value.kgWidth = Y.value, H.isFullscreen = !1, await l.store.emit(o.formID, "close", null);
|
|
10657
10669
|
}
|
|
10658
10670
|
function ne() {
|
|
10659
10671
|
switch (!0) {
|
|
@@ -10672,7 +10684,7 @@ const getProps$p = () => ({
|
|
|
10672
10684
|
}
|
|
10673
10685
|
}
|
|
10674
10686
|
async function le() {
|
|
10675
|
-
var F,
|
|
10687
|
+
var F, B;
|
|
10676
10688
|
try {
|
|
10677
10689
|
if (await l.store.emit(o.formID, "beforeOk", {
|
|
10678
10690
|
isCreating: o.isCreating.value,
|
|
@@ -10686,10 +10698,10 @@ const getProps$p = () => ({
|
|
|
10686
10698
|
return;
|
|
10687
10699
|
try {
|
|
10688
10700
|
await ((F = l.formRef.value) == null ? void 0 : F.validate());
|
|
10689
|
-
} catch (
|
|
10690
|
-
KgUtil.throwIfNotFormError(
|
|
10701
|
+
} catch (Z) {
|
|
10702
|
+
KgUtil.throwIfNotFormError(Z);
|
|
10691
10703
|
}
|
|
10692
|
-
if (await ((
|
|
10704
|
+
if (await ((B = l.formRef.value) == null ? void 0 : B.validate()), await l.store.emit(o.formID, "afterValidate", {
|
|
10693
10705
|
isCreating: o.isCreating.value,
|
|
10694
10706
|
isUpdating: o.isUpdating.value,
|
|
10695
10707
|
isCopying: o.isCopying.value,
|
|
@@ -10704,7 +10716,7 @@ const getProps$p = () => ({
|
|
|
10704
10716
|
await ce();
|
|
10705
10717
|
break;
|
|
10706
10718
|
case o.isUpdating.value:
|
|
10707
|
-
await
|
|
10719
|
+
await ae();
|
|
10708
10720
|
break;
|
|
10709
10721
|
case o.isCopying.value:
|
|
10710
10722
|
await ue();
|
|
@@ -10718,8 +10730,8 @@ const getProps$p = () => ({
|
|
|
10718
10730
|
}
|
|
10719
10731
|
}
|
|
10720
10732
|
async function ce() {
|
|
10721
|
-
var
|
|
10722
|
-
const F = (
|
|
10733
|
+
var B, z, J, Z, oe, se;
|
|
10734
|
+
const F = (B = o.varButtonCreate.value) == null ? void 0 : B.cmd;
|
|
10723
10735
|
if (!F) {
|
|
10724
10736
|
KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
|
10725
10737
|
VarButton: o.varButtonCreate.value
|
|
@@ -10728,7 +10740,7 @@ const getProps$p = () => ({
|
|
|
10728
10740
|
}
|
|
10729
10741
|
o.store.setIsCreatingRequesting(o.formID, !0);
|
|
10730
10742
|
try {
|
|
10731
|
-
let
|
|
10743
|
+
let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = o.varButtonCreate.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), o.formID, r)), ie = ref(KgUtil.parseParams(toRaw(l.model.value), o.formID, r));
|
|
10732
10744
|
if (await l.store.emit(o.formID, "beforeRequest", {
|
|
10733
10745
|
isCreating: o.isCreating.value,
|
|
10734
10746
|
isUpdating: o.isUpdating.value,
|
|
@@ -10737,14 +10749,14 @@ const getProps$p = () => ({
|
|
|
10737
10749
|
row: s.selectedFirstRow.value,
|
|
10738
10750
|
rows: s.selectedRows.value,
|
|
10739
10751
|
model: l.model,
|
|
10740
|
-
params:
|
|
10752
|
+
params: ee,
|
|
10741
10753
|
data: ie
|
|
10742
10754
|
}))
|
|
10743
10755
|
return;
|
|
10744
10756
|
await httpClient().request({
|
|
10745
|
-
method: (oe = (
|
|
10757
|
+
method: (oe = (Z = o.varButtonCreate.value) == null ? void 0 : Z.cmd_method) != null ? oe : "POST",
|
|
10746
10758
|
url: F,
|
|
10747
|
-
params:
|
|
10759
|
+
params: ee.value,
|
|
10748
10760
|
data: ie.value
|
|
10749
10761
|
}), ((se = o.varButtonCreate.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(D.title.value + n.t("kg.succeed")), await l.store.emit(o.formID, "ok", {
|
|
10750
10762
|
isCreating: o.isCreating.value,
|
|
@@ -10754,15 +10766,15 @@ const getProps$p = () => ({
|
|
|
10754
10766
|
row: s.selectedFirstRow.value,
|
|
10755
10767
|
model: l.model
|
|
10756
10768
|
}), o.store.setIsCreating(o.formID, !1), c.search(!0);
|
|
10757
|
-
} catch (
|
|
10758
|
-
console.error(
|
|
10769
|
+
} catch (ee) {
|
|
10770
|
+
console.error(ee), l.store.emit(o.formID, "error", ee);
|
|
10759
10771
|
} finally {
|
|
10760
10772
|
o.store.setIsCreatingRequesting(o.formID, !1);
|
|
10761
10773
|
}
|
|
10762
10774
|
}
|
|
10763
|
-
async function
|
|
10764
|
-
var
|
|
10765
|
-
const F = (
|
|
10775
|
+
async function ae() {
|
|
10776
|
+
var B, z, J, Z, oe, se;
|
|
10777
|
+
const F = (B = o.varButtonUpdate.value) == null ? void 0 : B.cmd;
|
|
10766
10778
|
if (!F) {
|
|
10767
10779
|
KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
|
10768
10780
|
VarButton: o.varButtonUpdate.value
|
|
@@ -10771,7 +10783,7 @@ const getProps$p = () => ({
|
|
|
10771
10783
|
}
|
|
10772
10784
|
try {
|
|
10773
10785
|
o.store.setIsUpdatingRequesting(o.formID, !0);
|
|
10774
|
-
let
|
|
10786
|
+
let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = o.varButtonUpdate.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), o.formID, r)), ie = ref(KgUtil.parseParams(toRaw(l.model.value), o.formID, r));
|
|
10775
10787
|
if (await l.store.emit(o.formID, "beforeRequest", {
|
|
10776
10788
|
isCreating: o.isCreating.value,
|
|
10777
10789
|
isUpdating: o.isUpdating.value,
|
|
@@ -10780,14 +10792,14 @@ const getProps$p = () => ({
|
|
|
10780
10792
|
row: s.selectedRow.value,
|
|
10781
10793
|
rows: s.selectedRows.value,
|
|
10782
10794
|
model: l.model,
|
|
10783
|
-
params:
|
|
10795
|
+
params: ee,
|
|
10784
10796
|
data: ie
|
|
10785
10797
|
}))
|
|
10786
10798
|
return;
|
|
10787
10799
|
await httpClient().request({
|
|
10788
|
-
method: (oe = (
|
|
10800
|
+
method: (oe = (Z = o.varButtonUpdate.value) == null ? void 0 : Z.cmd_method) != null ? oe : "POST",
|
|
10789
10801
|
url: F,
|
|
10790
|
-
params:
|
|
10802
|
+
params: ee.value,
|
|
10791
10803
|
data: ie.value
|
|
10792
10804
|
}), ((se = o.varButtonUpdate.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await l.store.emit(o.formID, "ok", {
|
|
10793
10805
|
isCreating: o.isCreating.value,
|
|
@@ -10797,15 +10809,15 @@ const getProps$p = () => ({
|
|
|
10797
10809
|
row: s.selectedFirstRow.value,
|
|
10798
10810
|
model: l.model
|
|
10799
10811
|
}), o.store.setIsUpdating(o.formID, !1), c.search();
|
|
10800
|
-
} catch (
|
|
10801
|
-
console.error(
|
|
10812
|
+
} catch (ee) {
|
|
10813
|
+
console.error(ee), l.store.emit(o.formID, "error", ee);
|
|
10802
10814
|
} finally {
|
|
10803
10815
|
o.store.setIsUpdatingRequesting(o.formID, !1);
|
|
10804
10816
|
}
|
|
10805
10817
|
}
|
|
10806
10818
|
async function ue() {
|
|
10807
|
-
var
|
|
10808
|
-
const F = (
|
|
10819
|
+
var B, z, J, Z, oe, se, ee, ie;
|
|
10820
|
+
const F = (B = o.varButtonCopy.value) == null ? void 0 : B.cmd;
|
|
10809
10821
|
if (!F) {
|
|
10810
10822
|
KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
|
10811
10823
|
VarButton: o.varButtonCopy.value
|
|
@@ -10815,7 +10827,7 @@ const getProps$p = () => ({
|
|
|
10815
10827
|
try {
|
|
10816
10828
|
o.store.setIsCopyingRequesting(o.formID, !0);
|
|
10817
10829
|
let ge = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = o.varButtonCopy.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), o.formID, r)), pe = ref(KgUtil.parseParams({
|
|
10818
|
-
...(
|
|
10830
|
+
...(Z = s.selectedFirstRow.value) != null ? Z : {},
|
|
10819
10831
|
...toRaw(l.model.value)
|
|
10820
10832
|
}, o.formID, r));
|
|
10821
10833
|
if (((oe = m.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete pe.value.id, await l.store.emit(o.formID, "beforeRequest", {
|
|
@@ -10831,7 +10843,7 @@ const getProps$p = () => ({
|
|
|
10831
10843
|
}))
|
|
10832
10844
|
return;
|
|
10833
10845
|
await httpClient().request({
|
|
10834
|
-
method: (
|
|
10846
|
+
method: (ee = (se = o.varButtonCopy.value) == null ? void 0 : se.cmd_method) != null ? ee : "POST",
|
|
10835
10847
|
url: F,
|
|
10836
10848
|
params: ge.value,
|
|
10837
10849
|
data: pe.value
|
|
@@ -10850,8 +10862,8 @@ const getProps$p = () => ({
|
|
|
10850
10862
|
}
|
|
10851
10863
|
}
|
|
10852
10864
|
async function fe() {
|
|
10853
|
-
var
|
|
10854
|
-
const F = (
|
|
10865
|
+
var B, z, J, Z, oe, se;
|
|
10866
|
+
const F = (B = o.varButtonDelete.value) == null ? void 0 : B.cmd;
|
|
10855
10867
|
if (!F) {
|
|
10856
10868
|
KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
|
10857
10869
|
VarButton: o.varButtonDelete.value
|
|
@@ -10860,7 +10872,7 @@ const getProps$p = () => ({
|
|
|
10860
10872
|
}
|
|
10861
10873
|
try {
|
|
10862
10874
|
o.store.setIsDeletingRequesting(o.formID, !0);
|
|
10863
|
-
let
|
|
10875
|
+
let ee = ref({
|
|
10864
10876
|
ids: (J = (z = s.selectedRows.value) == null ? void 0 : z.map((pe) => {
|
|
10865
10877
|
var me, _e, he;
|
|
10866
10878
|
return (he = pe[(_e = (me = o.varButtonDelete.value) == null ? void 0 : me.del_param_clm) != null ? _e : "id"]) != null ? he : "";
|
|
@@ -10874,14 +10886,14 @@ const getProps$p = () => ({
|
|
|
10874
10886
|
row: s.selectedFirstRow.value,
|
|
10875
10887
|
rows: s.selectedRows.value,
|
|
10876
10888
|
model: l.model,
|
|
10877
|
-
params:
|
|
10889
|
+
params: ee,
|
|
10878
10890
|
data: ie
|
|
10879
10891
|
}))
|
|
10880
10892
|
return;
|
|
10881
10893
|
await httpClient().request({
|
|
10882
|
-
method: (oe = (
|
|
10894
|
+
method: (oe = (Z = o.varButtonDelete.value) == null ? void 0 : Z.cmd_method) != null ? oe : "DELETE",
|
|
10883
10895
|
url: F,
|
|
10884
|
-
params:
|
|
10896
|
+
params: ee.value,
|
|
10885
10897
|
data: ie.value
|
|
10886
10898
|
}, {
|
|
10887
10899
|
joinParamsToUrl: !0
|
|
@@ -10893,33 +10905,33 @@ const getProps$p = () => ({
|
|
|
10893
10905
|
row: s.selectedFirstRow.value,
|
|
10894
10906
|
model: l.model
|
|
10895
10907
|
}), o.store.setIsDeleting(o.formID, !1), c.search(!0);
|
|
10896
|
-
} catch (
|
|
10897
|
-
console.error(
|
|
10908
|
+
} catch (ee) {
|
|
10909
|
+
console.error(ee), l.store.emit(o.formID, "error", ee);
|
|
10898
10910
|
} finally {
|
|
10899
10911
|
o.store.setIsDeletingRequesting(o.formID, !1);
|
|
10900
10912
|
}
|
|
10901
10913
|
}
|
|
10902
10914
|
function de(F) {
|
|
10903
10915
|
var z, J;
|
|
10904
|
-
const
|
|
10905
|
-
return isFunction$2(
|
|
10916
|
+
const B = (J = (z = a == null ? void 0 : a.KgSubmit) == null ? void 0 : z["KgForm.Item"]) == null ? void 0 : J[F.var_nam];
|
|
10917
|
+
return isFunction$2(B) ? createVNode(KgForm.Item, {
|
|
10906
10918
|
kgVarName: F.var_nam,
|
|
10907
10919
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
|
10908
10920
|
kgRules: l.rules.value[F.var_nam],
|
|
10909
10921
|
onKgSubmit: le
|
|
10910
10922
|
}, {
|
|
10911
10923
|
control: ({
|
|
10912
|
-
varName:
|
|
10924
|
+
varName: Z,
|
|
10913
10925
|
props: oe,
|
|
10914
10926
|
model: se,
|
|
10915
|
-
varVariableConfig:
|
|
10927
|
+
varVariableConfig: ee,
|
|
10916
10928
|
varProfileDetail: ie,
|
|
10917
10929
|
varSubmitField: ge
|
|
10918
|
-
}) =>
|
|
10919
|
-
varName:
|
|
10930
|
+
}) => B({
|
|
10931
|
+
varName: Z,
|
|
10920
10932
|
props: oe,
|
|
10921
10933
|
model: se,
|
|
10922
|
-
varVariableConfig:
|
|
10934
|
+
varVariableConfig: ee,
|
|
10923
10935
|
varProfileDetail: ie,
|
|
10924
10936
|
varSubmitField: ge
|
|
10925
10937
|
})
|
|
@@ -10931,10 +10943,10 @@ const getProps$p = () => ({
|
|
|
10931
10943
|
}, null);
|
|
10932
10944
|
}
|
|
10933
10945
|
function R() {
|
|
10934
|
-
let F,
|
|
10946
|
+
let F, B;
|
|
10935
10947
|
return createVNode(KgResizable, {
|
|
10936
10948
|
kgType: l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
|
10937
|
-
kgMinWidth:
|
|
10949
|
+
kgMinWidth: U.value,
|
|
10938
10950
|
kgMaxWidth: $.value,
|
|
10939
10951
|
kgWidth: V.value,
|
|
10940
10952
|
kgDisabled: w.value,
|
|
@@ -10946,9 +10958,9 @@ const getProps$p = () => ({
|
|
|
10946
10958
|
default: () => [createVNode(KgForm, {
|
|
10947
10959
|
ref: l.formRef,
|
|
10948
10960
|
model: l.model.value,
|
|
10949
|
-
layout:
|
|
10950
|
-
labelCol:
|
|
10951
|
-
wrapperCol:
|
|
10961
|
+
layout: G.value,
|
|
10962
|
+
labelCol: Q.value,
|
|
10963
|
+
wrapperCol: q.value
|
|
10952
10964
|
}, {
|
|
10953
10965
|
default: () => [createVNode("div", {
|
|
10954
10966
|
ref: O
|
|
@@ -10958,8 +10970,8 @@ const getProps$p = () => ({
|
|
|
10958
10970
|
default: () => [F]
|
|
10959
10971
|
}), T.value.length > 0 && M.value.length > 0 && createVNode(Divider, null, null), M.value.length > 0 && createVNode(Row, {
|
|
10960
10972
|
gutter: 12
|
|
10961
|
-
}, _isSlot$8(
|
|
10962
|
-
default: () => [
|
|
10973
|
+
}, _isSlot$8(B = M.value.map(de)) ? B : {
|
|
10974
|
+
default: () => [B]
|
|
10963
10975
|
}), u.value && createVNode("div", {
|
|
10964
10976
|
style: "text-align: center; padding: 6px 0 12px;"
|
|
10965
10977
|
}, [n.t("kg.confirmDelete")])])]
|
|
@@ -10967,8 +10979,8 @@ const getProps$p = () => ({
|
|
|
10967
10979
|
})]
|
|
10968
10980
|
});
|
|
10969
10981
|
}
|
|
10970
|
-
function
|
|
10971
|
-
let F,
|
|
10982
|
+
function x() {
|
|
10983
|
+
let F, B;
|
|
10972
10984
|
return createVNode("div", null, [createVNode(Button, {
|
|
10973
10985
|
type: "primary",
|
|
10974
10986
|
ghost: !P.value,
|
|
@@ -10982,8 +10994,8 @@ const getProps$p = () => ({
|
|
|
10982
10994
|
loading: E.value,
|
|
10983
10995
|
danger: !!o.isDeleting.value,
|
|
10984
10996
|
onClick: le
|
|
10985
|
-
}, _isSlot$8(
|
|
10986
|
-
default: () => [
|
|
10997
|
+
}, _isSlot$8(B = n.t(o.isDeleting.value ? "kg.delete" : "kg.save")) ? B : {
|
|
10998
|
+
default: () => [B]
|
|
10987
10999
|
})]);
|
|
10988
11000
|
}
|
|
10989
11001
|
function W() {
|
|
@@ -10991,10 +11003,10 @@ const getProps$p = () => ({
|
|
|
10991
11003
|
title: D.title.value
|
|
10992
11004
|
}, [D.title.value]);
|
|
10993
11005
|
}
|
|
10994
|
-
function
|
|
11006
|
+
function X() {
|
|
10995
11007
|
return createVNode(KgSubmitHeader, {
|
|
10996
|
-
isFullscreen:
|
|
10997
|
-
"onUpdate:isFullscreen": (F) =>
|
|
11008
|
+
isFullscreen: H.isFullscreen,
|
|
11009
|
+
"onUpdate:isFullscreen": (F) => H.isFullscreen = F,
|
|
10998
11010
|
kgShowFullscreenButton: !u.value,
|
|
10999
11011
|
kgShowConfigButton: !u.value && e.kgShowConfigButton,
|
|
11000
11012
|
onKgCancel: ne
|
|
@@ -11009,14 +11021,14 @@ const getProps$p = () => ({
|
|
|
11009
11021
|
maskClosable: !1,
|
|
11010
11022
|
keyboard: !1,
|
|
11011
11023
|
destroyOnClose: !0,
|
|
11012
|
-
width:
|
|
11013
|
-
class:
|
|
11024
|
+
width: N.value,
|
|
11025
|
+
class: K.value,
|
|
11014
11026
|
"kg-frm_id": o.formID
|
|
11015
11027
|
}, {
|
|
11016
11028
|
title: W,
|
|
11017
|
-
extra:
|
|
11029
|
+
extra: X,
|
|
11018
11030
|
default: R,
|
|
11019
|
-
footer:
|
|
11031
|
+
footer: x
|
|
11020
11032
|
});
|
|
11021
11033
|
}
|
|
11022
11034
|
}), KgYesOrNo$1 = "", getProps$o = () => ({
|
|
@@ -11360,7 +11372,7 @@ const getProps$n = () => ({
|
|
|
11360
11372
|
});
|
|
11361
11373
|
}
|
|
11362
11374
|
function y() {
|
|
11363
|
-
var T, M, E, P, I, A, w,
|
|
11375
|
+
var T, M, E, P, I, A, w, U, $, V;
|
|
11364
11376
|
if (u.value)
|
|
11365
11377
|
return b();
|
|
11366
11378
|
switch ((T = l.value) == null ? void 0 : T.display_type) {
|
|
@@ -11372,13 +11384,13 @@ const getProps$n = () => ({
|
|
|
11372
11384
|
}, null);
|
|
11373
11385
|
}
|
|
11374
11386
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
|
11375
|
-
const O = KgUtil.tryParseJSON((P = l.value) == null ? void 0 : P.display_type_properties), D = isArrayLike(O) && O.find((
|
|
11387
|
+
const O = KgUtil.tryParseJSON((P = l.value) == null ? void 0 : P.display_type_properties), D = isArrayLike(O) && O.find((N) => N.value === e.kgValue);
|
|
11376
11388
|
if (D) {
|
|
11377
|
-
const
|
|
11378
|
-
return
|
|
11389
|
+
const N = n.t(D.varName).value;
|
|
11390
|
+
return N ? createVNode(Tag, {
|
|
11379
11391
|
color: (I = D.color) != null ? I : "default"
|
|
11380
|
-
}, _isSlot$7(
|
|
11381
|
-
default: () => [
|
|
11392
|
+
}, _isSlot$7(N) ? N : {
|
|
11393
|
+
default: () => [N]
|
|
11382
11394
|
}) : k();
|
|
11383
11395
|
} else
|
|
11384
11396
|
return k();
|
|
@@ -11386,7 +11398,7 @@ const getProps$n = () => ({
|
|
|
11386
11398
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
|
11387
11399
|
const O = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
|
|
11388
11400
|
if (O.isTag && isArrayLike(O.tagColors)) {
|
|
11389
|
-
const D = O.tagColors.find((
|
|
11401
|
+
const D = O.tagColors.find((N) => N.value === e.kgValue);
|
|
11390
11402
|
return v.value ? createVNode(Tag, {
|
|
11391
11403
|
color: (w = D == null ? void 0 : D.color) != null ? w : "default"
|
|
11392
11404
|
}, {
|
|
@@ -11396,7 +11408,7 @@ const getProps$n = () => ({
|
|
|
11396
11408
|
return k();
|
|
11397
11409
|
}
|
|
11398
11410
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
|
11399
|
-
const O = KgUtil.tryParseJSON((
|
|
11411
|
+
const O = KgUtil.tryParseJSON((U = l.value) == null ? void 0 : U.display_type_properties);
|
|
11400
11412
|
return createVNode(KgProgressA, {
|
|
11401
11413
|
kgTextWidth: O.textWidth,
|
|
11402
11414
|
kgLeft: ($ = e.kgRow) == null ? void 0 : $[O.leftColumn],
|
|
@@ -11903,8 +11915,8 @@ function _useColumns(e) {
|
|
|
11903
11915
|
return "right";
|
|
11904
11916
|
}
|
|
11905
11917
|
function M() {
|
|
11906
|
-
var I, A, w,
|
|
11907
|
-
return !((A = (I = t == null ? void 0 : t.value) == null ? void 0 : I.KgTable) != null && A.kgDisabled || isNil((
|
|
11918
|
+
var I, A, w, U;
|
|
11919
|
+
return !((A = (I = t == null ? void 0 : t.value) == null ? void 0 : I.KgTable) != null && A.kgDisabled || isNil((U = (w = t == null ? void 0 : t.value) == null ? void 0 : w.KgTable) == null ? void 0 : U.kgDisabled) && e.kgDisabled || g.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
|
|
11908
11920
|
}
|
|
11909
11921
|
function E() {
|
|
11910
11922
|
return ["left", "center", "right"].includes(g.align || "") ? g.align : "left";
|
|
@@ -11987,26 +11999,26 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
11987
11999
|
const a = inject("$dayjs", dayjs), n = inject(DI_KG_VAR__KG_SLOTS, null), o = inject(DI_KG_VAR__KG_PROPS, null), i = useKg(), s = useKgVar(), l = useKgSearch(), c = useKgButton(), u = useKgTable(), d = useKgSubmit();
|
|
11988
12000
|
l.onSearch(async ({
|
|
11989
12001
|
resetPageIndex: R
|
|
11990
|
-
}) => (
|
|
12002
|
+
}) => (G(R), !1)), l.onReset(async () => (G(!0), !1)), u.store.$onAction(async ({
|
|
11991
12003
|
name: R,
|
|
11992
|
-
args:
|
|
12004
|
+
args: x
|
|
11993
12005
|
}) => {
|
|
11994
12006
|
switch (R) {
|
|
11995
12007
|
case "setRowSelect":
|
|
11996
|
-
if (
|
|
11997
|
-
const W =
|
|
12008
|
+
if (x[0] === s.formID) {
|
|
12009
|
+
const W = x[1], X = x[2], F = W[u.id.value];
|
|
11998
12010
|
switch (!0) {
|
|
11999
|
-
case (
|
|
12011
|
+
case (X && !V.value.includes(F)):
|
|
12000
12012
|
Y([...V.value, F]);
|
|
12001
12013
|
break;
|
|
12002
|
-
case (!
|
|
12014
|
+
case (!X && V.value.includes(F)):
|
|
12003
12015
|
Y(without$1(V.value, F));
|
|
12004
12016
|
break;
|
|
12005
12017
|
}
|
|
12006
12018
|
}
|
|
12007
12019
|
break;
|
|
12008
12020
|
case "clearDatas":
|
|
12009
|
-
|
|
12021
|
+
x[0] === s.formID && ($.value = [], O.total = 0, K(), v.value = []);
|
|
12010
12022
|
break;
|
|
12011
12023
|
}
|
|
12012
12024
|
});
|
|
@@ -12018,27 +12030,27 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12018
12030
|
} = _useLoading(), b = ref(null);
|
|
12019
12031
|
_useResizeObserver(b);
|
|
12020
12032
|
const y = computed(() => {
|
|
12021
|
-
var R,
|
|
12022
|
-
return (
|
|
12033
|
+
var R, x;
|
|
12034
|
+
return (x = (R = s.varButtonSearch.value) == null ? void 0 : R.cmd) != null ? x : null;
|
|
12023
12035
|
}), k = computed(() => {
|
|
12024
|
-
var
|
|
12036
|
+
var x, W, X, F, B, z, J;
|
|
12025
12037
|
let R = {
|
|
12026
12038
|
pageNo: O.pageIndex,
|
|
12027
12039
|
pageSize: O.pageSize,
|
|
12028
12040
|
...D,
|
|
12029
|
-
...(W = (
|
|
12041
|
+
...(W = (x = l.model) == null ? void 0 : x.value) != null ? W : {}
|
|
12030
12042
|
};
|
|
12031
12043
|
return s.varButtonSearch.value && (R = {
|
|
12032
12044
|
...R,
|
|
12033
|
-
...KgVarUtil.parseCommandParameter((F = (
|
|
12034
|
-
}), (
|
|
12045
|
+
...KgVarUtil.parseCommandParameter((F = (X = s.varButtonSearch.value) == null ? void 0 : X.cmd_prm) != null ? F : "")
|
|
12046
|
+
}), (B = s.varGridConfig.value) != null && B.cmd_prm && (R = {
|
|
12035
12047
|
...R,
|
|
12036
12048
|
...KgVarUtil.parseCommandParameter((z = s.varGridConfig.value.cmd_prm) != null ? z : "")
|
|
12037
12049
|
}), ((J = s.varGridConfig.value) == null ? void 0 : J.convert_sort_field_to_under_score_flg) === 1 && R.column && (R.column = snakeCase$1(R.column)), R;
|
|
12038
12050
|
}), T = computed(() => {
|
|
12039
|
-
var R,
|
|
12040
|
-
if (!isNil((
|
|
12041
|
-
return (
|
|
12051
|
+
var R, x, W, X;
|
|
12052
|
+
if (!isNil((x = (R = o == null ? void 0 : o.value) == null ? void 0 : R.KgTable) == null ? void 0 : x.kgDisabled))
|
|
12053
|
+
return (X = (W = o == null ? void 0 : o.value) == null ? void 0 : W.KgTable) == null ? void 0 : X.kgDisabled;
|
|
12042
12054
|
if (!isNil(e.kgDisabled))
|
|
12043
12055
|
return e.kgDisabled;
|
|
12044
12056
|
}), M = computed(() => !!T.value || _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), E = computed(() => !!T.value || _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || O.total === 0), P = computed(() => {
|
|
@@ -12058,17 +12070,17 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12058
12070
|
getCheckboxProps: (R) => ({
|
|
12059
12071
|
disabled: !!T.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value
|
|
12060
12072
|
}),
|
|
12061
|
-
onSelect: (R) =>
|
|
12073
|
+
onSelect: (R) => Q(R),
|
|
12062
12074
|
onChange: (R) => u.isMultiSelect.value && Y(R)
|
|
12063
12075
|
};
|
|
12064
12076
|
}), w = computed(() => {
|
|
12065
|
-
var
|
|
12077
|
+
var x;
|
|
12066
12078
|
let R = "kg-table";
|
|
12067
|
-
return ((
|
|
12068
|
-
}),
|
|
12069
|
-
var
|
|
12079
|
+
return ((x = s.varGridConfig.value) == null ? void 0 : x.show_bottom_border_flg) === 1 && (R += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (R += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (R += " kg-table--submitting"), R;
|
|
12080
|
+
}), U = computed(() => {
|
|
12081
|
+
var x;
|
|
12070
12082
|
let R = "kg-table-bottom";
|
|
12071
|
-
return ((
|
|
12083
|
+
return ((x = s.varGridConfig.value) == null ? void 0 : x.show_bottom_border_flg) === 1 && (R += " kg-table-bottom--border"), R;
|
|
12072
12084
|
}), $ = ref([]), V = (de = u.store.getSelectedRowKeys(s.formID)) != null ? de : ref([]), O = reactive({
|
|
12073
12085
|
pageIndex: 1,
|
|
12074
12086
|
pageSize: 10,
|
|
@@ -12076,19 +12088,19 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12076
12088
|
}), D = reactive({
|
|
12077
12089
|
column: void 0,
|
|
12078
12090
|
order: void 0
|
|
12079
|
-
}),
|
|
12080
|
-
R && (setTimeout(() =>
|
|
12091
|
+
}), N = watch(u.pageSizeOption, (R) => {
|
|
12092
|
+
R && (setTimeout(() => N()), O.pageSize = R, m.value = !0, KgLogger.debug(`${s.formID} | KgTable | isReadReady: ${m.value}`));
|
|
12081
12093
|
}, {
|
|
12082
12094
|
immediate: !0
|
|
12083
12095
|
});
|
|
12084
12096
|
watch(u.pageSizeOptions, (R) => {
|
|
12085
12097
|
R.length > 0 && !R.includes(O.pageSize) && (O.pageSize = u.pageSizeOption.value);
|
|
12086
|
-
}), watch([y, u.isReadAutomatically, l.isReady], ([R,
|
|
12087
|
-
R &&
|
|
12098
|
+
}), watch([y, u.isReadAutomatically, l.isReady], ([R, x, W]) => {
|
|
12099
|
+
R && x && W && !u.store.getIsRetrieved(s.formID) && G(!0);
|
|
12088
12100
|
}, {
|
|
12089
12101
|
immediate: !0
|
|
12090
|
-
}), watch(s.isCreating, (R,
|
|
12091
|
-
R === !0 ? L() : R === !1 &&
|
|
12102
|
+
}), watch(s.isCreating, (R, x) => {
|
|
12103
|
+
R === !0 ? L() : R === !1 && x === !0 && H();
|
|
12092
12104
|
}), onUnmounted(() => {
|
|
12093
12105
|
u.store.dispose(s.formID);
|
|
12094
12106
|
});
|
|
@@ -12100,14 +12112,14 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12100
12112
|
$.value = [R, ...$.value], u.store.setSelectedRows(s.formID, [R]);
|
|
12101
12113
|
}
|
|
12102
12114
|
}
|
|
12103
|
-
function
|
|
12104
|
-
const R = $.value.find((
|
|
12115
|
+
function H() {
|
|
12116
|
+
const R = $.value.find((x) => x[u.id.value] === KG_TABLE_TEMP_ID);
|
|
12105
12117
|
R && ($.value = without$1($.value, R), u.store.setSelectedRows(s.formID, []));
|
|
12106
12118
|
}
|
|
12107
|
-
function
|
|
12119
|
+
function K(R, x) {
|
|
12108
12120
|
var W;
|
|
12109
12121
|
if (!(!!T.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!A.value) {
|
|
12110
|
-
if (!
|
|
12122
|
+
if (!x) {
|
|
12111
12123
|
u.store.setSelectedRows(s.formID, []);
|
|
12112
12124
|
return;
|
|
12113
12125
|
}
|
|
@@ -12117,27 +12129,27 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12117
12129
|
case 0:
|
|
12118
12130
|
break;
|
|
12119
12131
|
case 1:
|
|
12120
|
-
u.store.setSelectedRows(s.formID, [
|
|
12132
|
+
u.store.setSelectedRows(s.formID, [x]);
|
|
12121
12133
|
break;
|
|
12122
12134
|
}
|
|
12123
12135
|
break;
|
|
12124
12136
|
case 2:
|
|
12125
12137
|
u.store.emit(s.formID, "rowDoubleClick", {
|
|
12126
|
-
row:
|
|
12138
|
+
row: x
|
|
12127
12139
|
});
|
|
12128
12140
|
break;
|
|
12129
12141
|
}
|
|
12130
12142
|
}
|
|
12131
12143
|
}
|
|
12132
|
-
function
|
|
12144
|
+
function G(R = !1) {
|
|
12133
12145
|
KgLogger.debug(`${s.formID} | KgTable | retrieve() | \u8FDB\u5165\u65B9\u6CD5.`);
|
|
12134
|
-
const
|
|
12135
|
-
|
|
12146
|
+
const x = watch(m, (X) => {
|
|
12147
|
+
X && (setTimeout(() => x()), W());
|
|
12136
12148
|
}, {
|
|
12137
12149
|
immediate: !0
|
|
12138
12150
|
});
|
|
12139
12151
|
async function W() {
|
|
12140
|
-
var
|
|
12152
|
+
var X, F;
|
|
12141
12153
|
if (KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !y.value) {
|
|
12142
12154
|
KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
|
12143
12155
|
VarButton: s.varButtonSearch.value
|
|
@@ -12146,89 +12158,89 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12146
12158
|
}
|
|
12147
12159
|
R && (O.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
|
|
12148
12160
|
try {
|
|
12149
|
-
const
|
|
12161
|
+
const B = KgUtil.parseParams(k.value, u.profileFormID.value, a), z = ref({});
|
|
12150
12162
|
await u.store.emit(s.formID, "beforeRetrieve", {
|
|
12151
|
-
params:
|
|
12163
|
+
params: B,
|
|
12152
12164
|
response: z
|
|
12153
12165
|
}) ? KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : z.value = await httpClient().request({
|
|
12154
12166
|
method: "GET",
|
|
12155
12167
|
url: y.value,
|
|
12156
|
-
params:
|
|
12168
|
+
params: B
|
|
12157
12169
|
}, {
|
|
12158
12170
|
successMessageMode: "none"
|
|
12159
12171
|
});
|
|
12160
|
-
let J = ref([]),
|
|
12172
|
+
let J = ref([]), Z = ref(0);
|
|
12161
12173
|
switch (!0) {
|
|
12162
12174
|
case !z.value:
|
|
12163
|
-
J.value = [],
|
|
12175
|
+
J.value = [], Z.value = 0;
|
|
12164
12176
|
break;
|
|
12165
12177
|
case isArrayLike(z.value):
|
|
12166
|
-
J.value = z.value,
|
|
12178
|
+
J.value = z.value, Z.value = z.value.length;
|
|
12167
12179
|
break;
|
|
12168
12180
|
case ("total" in z.value && "records" in z.value):
|
|
12169
|
-
J.value = (
|
|
12181
|
+
J.value = (X = z.value.records) != null ? X : [], Z.value = (F = z.value.total) != null ? F : 0;
|
|
12170
12182
|
break;
|
|
12171
12183
|
}
|
|
12172
12184
|
await u.store.emit(s.formID, "beforeSetDatas", {
|
|
12173
12185
|
datas: J,
|
|
12174
|
-
total:
|
|
12175
|
-
}), $.value = J.value, O.total =
|
|
12186
|
+
total: Z
|
|
12187
|
+
}), $.value = J.value, O.total = Z.value, K(), v.value = [], await nextTick(), await u.store.emit(s.formID, "retrieve", {
|
|
12176
12188
|
page: z.value,
|
|
12177
12189
|
datas: $
|
|
12178
12190
|
}), u.store.setIsRetrieved(s.formID, !0);
|
|
12179
|
-
} catch (
|
|
12180
|
-
throw
|
|
12191
|
+
} catch (B) {
|
|
12192
|
+
throw B;
|
|
12181
12193
|
} finally {
|
|
12182
12194
|
u.store.setIsRetrieving(s.formID, !1);
|
|
12183
12195
|
}
|
|
12184
12196
|
}
|
|
12185
12197
|
}
|
|
12186
12198
|
function Y(R) {
|
|
12187
|
-
u.store.setSelectedRows(s.formID, R.map((
|
|
12199
|
+
u.store.setSelectedRows(s.formID, R.map((x) => {
|
|
12188
12200
|
var W;
|
|
12189
|
-
return (W = $.value) == null ? void 0 : W.find((
|
|
12190
|
-
}).filter((
|
|
12201
|
+
return (W = $.value) == null ? void 0 : W.find((X) => X[u.id.value] === x);
|
|
12202
|
+
}).filter((x) => !!x));
|
|
12191
12203
|
}
|
|
12192
|
-
function
|
|
12193
|
-
var
|
|
12204
|
+
function Q(R) {
|
|
12205
|
+
var x, W;
|
|
12194
12206
|
switch (u.isMultiSelect.value) {
|
|
12195
12207
|
case !0:
|
|
12196
12208
|
{
|
|
12197
|
-
const
|
|
12198
|
-
V.value.includes(
|
|
12209
|
+
const X = R[u.id.value];
|
|
12210
|
+
V.value.includes(X) ? V.value = without$1(V.value, X) : V.value = [...(x = V.value) != null ? x : [], X];
|
|
12199
12211
|
}
|
|
12200
12212
|
break;
|
|
12201
12213
|
case !1:
|
|
12202
12214
|
{
|
|
12203
|
-
const
|
|
12204
|
-
(W = V.value) != null && W.includes(
|
|
12215
|
+
const X = R[u.id.value];
|
|
12216
|
+
(W = V.value) != null && W.includes(X) ? V.value = [] : V.value = [X];
|
|
12205
12217
|
}
|
|
12206
12218
|
break;
|
|
12207
12219
|
}
|
|
12208
|
-
u.store.setSelectedRows(s.formID, V.value.map((
|
|
12220
|
+
u.store.setSelectedRows(s.formID, V.value.map((X) => {
|
|
12209
12221
|
var F;
|
|
12210
|
-
return (F = $.value) == null ? void 0 : F.find((
|
|
12211
|
-
}).filter((
|
|
12222
|
+
return (F = $.value) == null ? void 0 : F.find((B) => B[u.id.value] === X);
|
|
12223
|
+
}).filter((X) => !!X));
|
|
12212
12224
|
}
|
|
12213
|
-
function
|
|
12214
|
-
|
|
12225
|
+
function q(R, x) {
|
|
12226
|
+
x.width = R, s.store.setVarGridDetailWidth(s.formID, x.dataIndex, R);
|
|
12215
12227
|
}
|
|
12216
|
-
async function
|
|
12228
|
+
async function te(R, x, W, X) {
|
|
12217
12229
|
var F;
|
|
12218
|
-
switch (
|
|
12230
|
+
switch (X.action) {
|
|
12219
12231
|
case "sort":
|
|
12220
12232
|
{
|
|
12221
12233
|
await nextTick();
|
|
12222
|
-
let
|
|
12223
|
-
|
|
12234
|
+
let B = W;
|
|
12235
|
+
B.order ? (D.column = (F = B.field) != null ? F : void 0, D.order = B.order === "ascend" ? "asc" : B.order === "descend" ? "desc" : void 0) : (D.column = void 0, D.order = void 0), G(!0);
|
|
12224
12236
|
}
|
|
12225
12237
|
break;
|
|
12226
12238
|
}
|
|
12227
12239
|
}
|
|
12228
|
-
function
|
|
12229
|
-
var
|
|
12230
|
-
const W =
|
|
12231
|
-
switch ((
|
|
12240
|
+
function re(R, x) {
|
|
12241
|
+
var X;
|
|
12242
|
+
const W = x[u.id.value];
|
|
12243
|
+
switch ((X = s.varGridConfig.value) == null ? void 0 : X.expand_accordion_flg) {
|
|
12232
12244
|
case 0:
|
|
12233
12245
|
R ? v.value = uniq([...v.value, W]) : v.value = without$1(v.value, W);
|
|
12234
12246
|
break;
|
|
@@ -12237,20 +12249,20 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12237
12249
|
break;
|
|
12238
12250
|
}
|
|
12239
12251
|
}
|
|
12240
|
-
function ne(R,
|
|
12241
|
-
|
|
12252
|
+
function ne(R, x) {
|
|
12253
|
+
x !== O.pageSize ? (O.pageIndex = 1, O.pageSize = x) : O.pageIndex = R, G();
|
|
12242
12254
|
}
|
|
12243
12255
|
function le(R) {
|
|
12244
|
-
u.store.setSelectedRows(s.formID, [R].map((
|
|
12256
|
+
u.store.setSelectedRows(s.formID, [R].map((x) => {
|
|
12245
12257
|
var W;
|
|
12246
|
-
return (W = $.value) == null ? void 0 : W.find((
|
|
12247
|
-
}).filter((
|
|
12258
|
+
return (W = $.value) == null ? void 0 : W.find((X) => X[u.id.value] === x[u.id.value]);
|
|
12259
|
+
}).filter((x) => !!x)), c.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
|
12248
12260
|
}
|
|
12249
12261
|
function ce({
|
|
12250
12262
|
title: R,
|
|
12251
|
-
column:
|
|
12263
|
+
column: x
|
|
12252
12264
|
}) {
|
|
12253
|
-
switch (
|
|
12265
|
+
switch (x.dataIndex) {
|
|
12254
12266
|
case "index":
|
|
12255
12267
|
return createVNode(KgTableSetting, {
|
|
12256
12268
|
kgDisabled: T.value
|
|
@@ -12259,7 +12271,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12259
12271
|
return createVNode("pre", null, [R]);
|
|
12260
12272
|
}
|
|
12261
12273
|
}
|
|
12262
|
-
function
|
|
12274
|
+
function ae() {
|
|
12263
12275
|
var R;
|
|
12264
12276
|
return (R = n == null ? void 0 : n.KgTable) != null && R["summary.bodyCell"] ? createVNode(TableSummary, {
|
|
12265
12277
|
fixed: "bottom"
|
|
@@ -12269,18 +12281,18 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12269
12281
|
index: 0
|
|
12270
12282
|
}, null), I.value && createVNode(TableSummary.Cell, {
|
|
12271
12283
|
index: P.value ? 1 : 0
|
|
12272
|
-
}, null), C.value.map((
|
|
12273
|
-
const
|
|
12284
|
+
}, null), C.value.map((x, W) => {
|
|
12285
|
+
const X = s.store.getVarGridDetail(s.formID, x.dataIndex);
|
|
12274
12286
|
let F = W;
|
|
12275
12287
|
return P.value && I.value ? F += 2 : (P.value || I.value) && (F += 1), createVNode(TableSummary.Cell, {
|
|
12276
12288
|
index: F
|
|
12277
12289
|
}, {
|
|
12278
12290
|
default: () => {
|
|
12279
|
-
var
|
|
12280
|
-
return [(z = (
|
|
12281
|
-
column:
|
|
12291
|
+
var B, z;
|
|
12292
|
+
return [(z = (B = n == null ? void 0 : n.KgTable) == null ? void 0 : B["summary.bodyCell"]) == null ? void 0 : z.call(B, {
|
|
12293
|
+
column: x,
|
|
12282
12294
|
index: F,
|
|
12283
|
-
varGridDetail:
|
|
12295
|
+
varGridDetail: X
|
|
12284
12296
|
})];
|
|
12285
12297
|
}
|
|
12286
12298
|
});
|
|
@@ -12290,37 +12302,37 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12290
12302
|
}
|
|
12291
12303
|
function ue({
|
|
12292
12304
|
column: R,
|
|
12293
|
-
index:
|
|
12305
|
+
index: x,
|
|
12294
12306
|
record: W,
|
|
12295
|
-
text:
|
|
12307
|
+
text: X,
|
|
12296
12308
|
value: F
|
|
12297
12309
|
}) {
|
|
12298
12310
|
var J;
|
|
12299
|
-
let
|
|
12300
|
-
R.customRender ?
|
|
12301
|
-
index:
|
|
12311
|
+
let B = "";
|
|
12312
|
+
R.customRender ? B = R.customRender({
|
|
12313
|
+
index: x,
|
|
12302
12314
|
record: W,
|
|
12303
12315
|
column: R,
|
|
12304
|
-
text:
|
|
12316
|
+
text: X,
|
|
12305
12317
|
value: F,
|
|
12306
|
-
renderIndex:
|
|
12307
|
-
}) :
|
|
12318
|
+
renderIndex: x
|
|
12319
|
+
}) : B = F;
|
|
12308
12320
|
const z = createVNode(KgTableCell, {
|
|
12309
12321
|
kgRow: W,
|
|
12310
|
-
kgValue:
|
|
12322
|
+
kgValue: B,
|
|
12311
12323
|
kgVarName: R.dataIndex,
|
|
12312
12324
|
onKgUpdateLinkClick: () => le(W)
|
|
12313
12325
|
}, null);
|
|
12314
12326
|
if ((J = n == null ? void 0 : n.KgTable) != null && J.bodyCell) {
|
|
12315
|
-
const
|
|
12327
|
+
const Z = R.dataIndex ? s.store.getVarGridDetail(s.formID, R.dataIndex) : null;
|
|
12316
12328
|
return n.KgTable.bodyCell({
|
|
12317
12329
|
column: R,
|
|
12318
|
-
index:
|
|
12330
|
+
index: x,
|
|
12319
12331
|
record: W,
|
|
12320
|
-
text:
|
|
12332
|
+
text: X,
|
|
12321
12333
|
value: F,
|
|
12322
12334
|
row: W,
|
|
12323
|
-
varGridDetail:
|
|
12335
|
+
varGridDetail: Z,
|
|
12324
12336
|
defaultRender: z
|
|
12325
12337
|
});
|
|
12326
12338
|
} else
|
|
@@ -12351,20 +12363,20 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12351
12363
|
expandColumnWidth: 28,
|
|
12352
12364
|
expandedRowKeys: v.value,
|
|
12353
12365
|
rowSelection: A.value,
|
|
12354
|
-
customRow: (
|
|
12355
|
-
onClick: (W) =>
|
|
12366
|
+
customRow: (x) => ({
|
|
12367
|
+
onClick: (W) => K(W, x)
|
|
12356
12368
|
}),
|
|
12357
|
-
onResizeColumn:
|
|
12358
|
-
onChange:
|
|
12359
|
-
onExpand:
|
|
12369
|
+
onResizeColumn: q,
|
|
12370
|
+
onChange: te,
|
|
12371
|
+
onExpand: re
|
|
12360
12372
|
}, {
|
|
12361
12373
|
headerCell: ce,
|
|
12362
12374
|
bodyCell: ue,
|
|
12363
12375
|
emptyText: fe,
|
|
12364
12376
|
expandedRowRender: (R = n == null ? void 0 : n.KgTable) == null ? void 0 : R.expandedRowRender,
|
|
12365
|
-
summary:
|
|
12377
|
+
summary: ae
|
|
12366
12378
|
}), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
|
|
12367
|
-
class:
|
|
12379
|
+
class: U.value
|
|
12368
12380
|
}, [createVNode("div", {
|
|
12369
12381
|
class: "left"
|
|
12370
12382
|
}, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
|
@@ -12379,7 +12391,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12379
12391
|
size: "default",
|
|
12380
12392
|
current: O.pageIndex,
|
|
12381
12393
|
pageSize: O.pageSize,
|
|
12382
|
-
pageSizeOptions: u.pageSizeOptions.value.map((
|
|
12394
|
+
pageSizeOptions: u.pageSizeOptions.value.map((x) => String(x)),
|
|
12383
12395
|
total: O.total,
|
|
12384
12396
|
showSizeChanger: !0,
|
|
12385
12397
|
showQuickJumper: !1,
|
|
@@ -12388,12 +12400,12 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
|
12388
12400
|
locale: {
|
|
12389
12401
|
page: ""
|
|
12390
12402
|
},
|
|
12391
|
-
showTotal: (
|
|
12403
|
+
showTotal: (x, W) => i.t("kg.KgTable.totalText", {
|
|
12392
12404
|
from: W[0],
|
|
12393
12405
|
to: W[1],
|
|
12394
|
-
total:
|
|
12406
|
+
total: x
|
|
12395
12407
|
}),
|
|
12396
|
-
onChange: (
|
|
12408
|
+
onChange: (x, W) => ne(x, W)
|
|
12397
12409
|
}, null)])])]);
|
|
12398
12410
|
};
|
|
12399
12411
|
}
|
|
@@ -12972,7 +12984,7 @@ const KgButtonCreate = defineComponent({
|
|
|
12972
12984
|
}), ((M = e.kgButton) == null ? void 0 : M.reload_all_after_done_flg) === 1 && (((E = e.kgButton) == null ? void 0 : E.re_select_after_reload_flg) !== 0 && n.onRetrieve(async ({
|
|
12973
12985
|
datas: P
|
|
12974
12986
|
}) => {
|
|
12975
|
-
const I = P.value, A = intersectionWith$1(I, _ != null ? _ : [], (w,
|
|
12987
|
+
const I = P.value, A = intersectionWith$1(I, _ != null ? _ : [], (w, U) => (w == null ? void 0 : w[n.id.value]) === (U == null ? void 0 : U[n.id.value]));
|
|
12976
12988
|
return A.length > 0 && n.store.setSelectedRows(r.formID, A), !1;
|
|
12977
12989
|
}, !0), a.search(!0));
|
|
12978
12990
|
} catch (P) {
|
|
@@ -13457,7 +13469,11 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
|
|
|
13457
13469
|
const a = watch(
|
|
13458
13470
|
() => this.modelMap.get(e),
|
|
13459
13471
|
(n) => {
|
|
13460
|
-
n &&
|
|
13472
|
+
n && setTimeout(() => {
|
|
13473
|
+
a(), Object.entries(t).forEach(([o, i]) => {
|
|
13474
|
+
o in n && (n[o] = i);
|
|
13475
|
+
}), r();
|
|
13476
|
+
});
|
|
13461
13477
|
},
|
|
13462
13478
|
{ immediate: !0 }
|
|
13463
13479
|
);
|
|
@@ -13715,10 +13731,10 @@ const leftVarProfileDetailColumns = (e) => {
|
|
|
13715
13731
|
});
|
|
13716
13732
|
l.value = l.value.map((w) => {
|
|
13717
13733
|
var $;
|
|
13718
|
-
const
|
|
13719
|
-
return
|
|
13734
|
+
const U = ($ = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : $.find((V) => V.var_nam === w.var_nam);
|
|
13735
|
+
return U ? {
|
|
13720
13736
|
...w,
|
|
13721
|
-
...
|
|
13737
|
+
...U,
|
|
13722
13738
|
id: w.id
|
|
13723
13739
|
} : w;
|
|
13724
13740
|
});
|
|
@@ -13806,8 +13822,8 @@ const leftVarProfileDetailColumns = (e) => {
|
|
|
13806
13822
|
columns: M === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
|
13807
13823
|
rowKey: "id",
|
|
13808
13824
|
dataSource: E,
|
|
13809
|
-
customRow: (
|
|
13810
|
-
onClick: ($) => C($,
|
|
13825
|
+
customRow: (U) => ({
|
|
13826
|
+
onClick: ($) => C($, U, M, P)
|
|
13811
13827
|
}),
|
|
13812
13828
|
rowSelection: m({
|
|
13813
13829
|
disabled: I,
|
|
@@ -14001,20 +14017,28 @@ function _useFormModel(e, t) {
|
|
|
14001
14017
|
} = _useCommon();
|
|
14002
14018
|
let s;
|
|
14003
14019
|
const l = ref({});
|
|
14004
|
-
|
|
14005
|
-
|
|
14006
|
-
|
|
14007
|
-
|
|
14008
|
-
|
|
14009
|
-
|
|
14010
|
-
|
|
14020
|
+
async function c() {
|
|
14021
|
+
var u;
|
|
14022
|
+
((u = a.currentVarProfileDetails.value) != null ? u : []).forEach((d) => {
|
|
14023
|
+
var v, C;
|
|
14024
|
+
const m = (v = d.var_nam) != null ? v : "";
|
|
14025
|
+
l.value[m] = KgVarUtil.transformValueByControlType(a.formID, m, r, (C = d.dft_val) != null ? C : void 0, "R");
|
|
14026
|
+
}), t.value.kgHeight = i.value, n.store.setModel(a.formID, l.value), o.value ? (s == null || s(), s = watch(e, async (d) => {
|
|
14027
|
+
d && (await n.store.emit(a.formID, "ready", {}), n.store.setIsReady(a.formID, !0));
|
|
14011
14028
|
}, {
|
|
14012
14029
|
immediate: !0
|
|
14013
|
-
})) : (await n.store.emit(a.formID, "ready", {}), n.store.setIsReady(a.formID, !0))
|
|
14030
|
+
})) : (await n.store.emit(a.formID, "ready", {}), n.store.setIsReady(a.formID, !0));
|
|
14031
|
+
}
|
|
14032
|
+
return watch(a.currentVarProfileDetails, async (u) => {
|
|
14033
|
+
if (l.value = {}, isNil(u)) {
|
|
14034
|
+
n.store.setModel(a.formID, l.value);
|
|
14035
|
+
return;
|
|
14036
|
+
}
|
|
14037
|
+
await c();
|
|
14014
14038
|
}, {
|
|
14015
14039
|
immediate: !0
|
|
14016
14040
|
}), {
|
|
14017
|
-
|
|
14041
|
+
initFormModel: c
|
|
14018
14042
|
};
|
|
14019
14043
|
}
|
|
14020
14044
|
const KgSearch$1 = "", getProps$9 = () => ({
|
|
@@ -14040,25 +14064,25 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
|
14040
14064
|
} = _useCommon(), v = ref(null), C = ref({
|
|
14041
14065
|
kgHeight: m.value
|
|
14042
14066
|
});
|
|
14043
|
-
_useLayoutHeaderResizeObserver()
|
|
14044
|
-
const g = computed(() => {
|
|
14045
|
-
var
|
|
14046
|
-
if (!isNil((
|
|
14047
|
-
return (
|
|
14067
|
+
_useLayoutHeaderResizeObserver();
|
|
14068
|
+
const g = _useFormModel(v, C), _ = computed(() => {
|
|
14069
|
+
var K, G, Y, Q;
|
|
14070
|
+
if (!isNil((G = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : G.kgDisabled))
|
|
14071
|
+
return (Q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgSearch) == null ? void 0 : Q.kgDisabled;
|
|
14048
14072
|
if (!isNil(e.kgDisabled))
|
|
14049
14073
|
return e.kgDisabled;
|
|
14050
|
-
}),
|
|
14051
|
-
var
|
|
14052
|
-
return !!(
|
|
14053
|
-
}),
|
|
14074
|
+
}), b = computed(() => {
|
|
14075
|
+
var K, G;
|
|
14076
|
+
return !!(_.value || i.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((G = n.varButtonSearch.value) == null ? void 0 : G.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
|
14077
|
+
}), y = computed(() => !!(_.value || i.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), k = computed(() => !!(_.value || i.isRetrieving.value)), T = ref({
|
|
14054
14078
|
visible: !1
|
|
14055
|
-
}),
|
|
14056
|
-
var
|
|
14057
|
-
if (n.t((
|
|
14058
|
-
return n.t((
|
|
14059
|
-
}),
|
|
14060
|
-
var
|
|
14061
|
-
switch ((
|
|
14079
|
+
}), M = computed(() => C.value.kgHeight === m.value), E = computed(() => {
|
|
14080
|
+
var K, G, Y;
|
|
14081
|
+
if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((G = n.varButtonSearch.value) == null ? void 0 : G.var_nam))
|
|
14082
|
+
return n.t((Y = n.varButtonSearch.value) == null ? void 0 : Y.var_nam).value;
|
|
14083
|
+
}), P = computed(() => {
|
|
14084
|
+
var K;
|
|
14085
|
+
switch ((K = n.varButtonSearch.value) == null ? void 0 : K.primary_flg) {
|
|
14062
14086
|
case 1:
|
|
14063
14087
|
return !0;
|
|
14064
14088
|
case 0:
|
|
@@ -14066,124 +14090,123 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
|
14066
14090
|
default:
|
|
14067
14091
|
return !0;
|
|
14068
14092
|
}
|
|
14069
|
-
}),
|
|
14070
|
-
let
|
|
14071
|
-
return s.value && (
|
|
14093
|
+
}), I = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), A = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), w = computed(() => {
|
|
14094
|
+
let K = "kg-search";
|
|
14095
|
+
return s.value && (K += " kg-search--visible"), c.value && (K += " kg-search--teleport"), K;
|
|
14072
14096
|
});
|
|
14073
14097
|
onUnmounted(() => {
|
|
14074
14098
|
o.store.dispose(n.formID);
|
|
14075
14099
|
});
|
|
14076
|
-
async function
|
|
14077
|
-
|
|
14100
|
+
async function U(K = !1) {
|
|
14101
|
+
b.value || (s.value ? v.value && v.value.validate().then(async () => {
|
|
14078
14102
|
await o.store.emit(n.formID, "search", {
|
|
14079
|
-
resetPageIndex:
|
|
14103
|
+
resetPageIndex: K
|
|
14080
14104
|
});
|
|
14081
|
-
}).catch((
|
|
14105
|
+
}).catch((G) => {
|
|
14082
14106
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
|
14083
|
-
e:
|
|
14107
|
+
e: G
|
|
14084
14108
|
});
|
|
14085
14109
|
}) : await o.store.emit(n.formID, "search", {
|
|
14086
|
-
resetPageIndex:
|
|
14110
|
+
resetPageIndex: K
|
|
14087
14111
|
}));
|
|
14088
14112
|
}
|
|
14089
|
-
o.store.setSearchFn(n.formID,
|
|
14090
|
-
async function
|
|
14091
|
-
|
|
14092
|
-
(N = v.value) == null || N.resetFields(), s.value ? v.value && v.value.validate().then(async () => {
|
|
14113
|
+
o.store.setSearchFn(n.formID, U);
|
|
14114
|
+
async function $() {
|
|
14115
|
+
g.initFormModel(), s.value ? v.value && v.value.validate().then(async () => {
|
|
14093
14116
|
await o.store.emit(n.formID, "reset", {});
|
|
14094
|
-
}).catch((
|
|
14117
|
+
}).catch((K) => {
|
|
14095
14118
|
KgLogger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
|
14096
|
-
e:
|
|
14119
|
+
e: K
|
|
14097
14120
|
});
|
|
14098
14121
|
}) : await o.store.emit(n.formID, "reset", {});
|
|
14099
14122
|
}
|
|
14100
|
-
o.store.setResetFn(n.formID,
|
|
14101
|
-
function $() {
|
|
14102
|
-
return w(!0), Promise.resolve(!0);
|
|
14103
|
-
}
|
|
14123
|
+
o.store.setResetFn(n.formID, $);
|
|
14104
14124
|
function V() {
|
|
14105
|
-
|
|
14125
|
+
return U(!0), Promise.resolve(!0);
|
|
14126
|
+
}
|
|
14127
|
+
function O() {
|
|
14128
|
+
var K;
|
|
14106
14129
|
return createVNode("div", {
|
|
14107
14130
|
class: "title",
|
|
14108
|
-
onClick:
|
|
14109
|
-
}, [((
|
|
14131
|
+
onClick: H
|
|
14132
|
+
}, [((K = t == null ? void 0 : t.KgSearch) == null ? void 0 : K.left) && createVNode("div", {
|
|
14110
14133
|
class: "kg-search-title-left",
|
|
14111
|
-
onClick: (
|
|
14112
|
-
|
|
14134
|
+
onClick: (G) => {
|
|
14135
|
+
G.stopPropagation(), G.preventDefault();
|
|
14113
14136
|
}
|
|
14114
|
-
}, [t.KgSearch.left()]),
|
|
14137
|
+
}, [t.KgSearch.left()]), M.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
|
|
14115
14138
|
}
|
|
14116
|
-
function
|
|
14117
|
-
var
|
|
14118
|
-
return ((
|
|
14119
|
-
value: (
|
|
14120
|
-
"onUpdate:value": (
|
|
14121
|
-
disabled:
|
|
14139
|
+
function D() {
|
|
14140
|
+
var K, G, Y, Q;
|
|
14141
|
+
return ((Y = (G = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : G.length) != null ? Y : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
|
14142
|
+
value: (Q = n.currentVarProfileMasterID.value) != null ? Q : void 0,
|
|
14143
|
+
"onUpdate:value": (q) => n.store.setCurrentVarProfileMasterID(n.formID, q),
|
|
14144
|
+
disabled: y.value,
|
|
14122
14145
|
class: "kg-search-profile-master-select"
|
|
14123
14146
|
}, {
|
|
14124
14147
|
default: () => {
|
|
14125
|
-
var
|
|
14126
|
-
return (
|
|
14127
|
-
value:
|
|
14148
|
+
var q, te;
|
|
14149
|
+
return (te = (q = n.varProfileMasters) == null ? void 0 : q.value) == null ? void 0 : te.map((re) => createVNode(Select.Option, {
|
|
14150
|
+
value: re.id
|
|
14128
14151
|
}, {
|
|
14129
|
-
default: () => [n.t(
|
|
14152
|
+
default: () => [n.t(re == null ? void 0 : re.prf_var_nam).value]
|
|
14130
14153
|
}));
|
|
14131
14154
|
},
|
|
14132
14155
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
|
14133
14156
|
}), createVNode(Button, {
|
|
14134
|
-
disabled:
|
|
14157
|
+
disabled: y.value,
|
|
14135
14158
|
onClick: () => {
|
|
14136
|
-
|
|
14159
|
+
T.value.visible = !0;
|
|
14137
14160
|
},
|
|
14138
14161
|
class: "kg-search-profile-master-btn"
|
|
14139
14162
|
}, {
|
|
14140
14163
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
|
14141
14164
|
}), createVNode(KgSearchConfigModal, {
|
|
14142
|
-
visible:
|
|
14143
|
-
"onUpdate:visible": (
|
|
14165
|
+
visible: T.value.visible,
|
|
14166
|
+
"onUpdate:visible": (q) => T.value.visible = q,
|
|
14144
14167
|
hostFormID: n.formID
|
|
14145
14168
|
}, null)]);
|
|
14146
14169
|
}
|
|
14147
|
-
function
|
|
14148
|
-
var
|
|
14149
|
-
return createVNode(Fragment, null, [
|
|
14170
|
+
function N() {
|
|
14171
|
+
var K, G, Y, Q, q;
|
|
14172
|
+
return createVNode(Fragment, null, [D(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((G = n.varButtonSearch.value) == null ? void 0 : G.permission_code)) && createVNode(Button, {
|
|
14150
14173
|
type: "primary",
|
|
14151
|
-
ghost: !
|
|
14152
|
-
disabled:
|
|
14153
|
-
onClick:
|
|
14174
|
+
ghost: !b.value,
|
|
14175
|
+
disabled: b.value,
|
|
14176
|
+
onClick: $,
|
|
14154
14177
|
class: "kg-search-btn-reset"
|
|
14155
14178
|
}, {
|
|
14156
14179
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
|
14157
14180
|
}), createVNode(KgButton.Item, {
|
|
14158
14181
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
|
14159
|
-
kgVarName: (
|
|
14160
|
-
kgIcon: (
|
|
14161
|
-
kgText:
|
|
14162
|
-
kgColor: (
|
|
14163
|
-
kgPrimary:
|
|
14164
|
-
kgLoading:
|
|
14165
|
-
onKgClick:
|
|
14182
|
+
kgVarName: (Y = n.varButtonSearch.value) == null ? void 0 : Y.var_nam,
|
|
14183
|
+
kgIcon: (Q = n.varButtonSearch.value) == null ? void 0 : Q.icon,
|
|
14184
|
+
kgText: E.value,
|
|
14185
|
+
kgColor: (q = n.varButtonSearch.value) == null ? void 0 : q.color,
|
|
14186
|
+
kgPrimary: P.value,
|
|
14187
|
+
kgLoading: k.value,
|
|
14188
|
+
onKgClick: V
|
|
14166
14189
|
}, null)]);
|
|
14167
14190
|
}
|
|
14168
|
-
function
|
|
14191
|
+
function L() {
|
|
14169
14192
|
return createVNode(Spin, {
|
|
14170
|
-
spinning:
|
|
14193
|
+
spinning: A.value
|
|
14171
14194
|
}, {
|
|
14172
14195
|
default: () => {
|
|
14173
|
-
var
|
|
14196
|
+
var K;
|
|
14174
14197
|
return [createVNode(KgForm, {
|
|
14175
14198
|
ref: v,
|
|
14176
|
-
model: (
|
|
14199
|
+
model: (K = o.model.value) != null ? K : {}
|
|
14177
14200
|
}, {
|
|
14178
14201
|
default: () => [createVNode(Row, {
|
|
14179
14202
|
gutter: 6
|
|
14180
14203
|
}, {
|
|
14181
14204
|
default: () => {
|
|
14182
|
-
var
|
|
14183
|
-
return [(
|
|
14184
|
-
kgVarName:
|
|
14205
|
+
var G;
|
|
14206
|
+
return [(G = n.currentVarProfileDetails.value) == null ? void 0 : G.map((Y) => createVNode(KgForm.Item, {
|
|
14207
|
+
kgVarName: Y.var_nam,
|
|
14185
14208
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
|
14186
|
-
onKgSubmit: () =>
|
|
14209
|
+
onKgSubmit: () => U(!0)
|
|
14187
14210
|
}, null))];
|
|
14188
14211
|
}
|
|
14189
14212
|
})]
|
|
@@ -14191,16 +14214,16 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
|
14191
14214
|
}
|
|
14192
14215
|
});
|
|
14193
14216
|
}
|
|
14194
|
-
function
|
|
14195
|
-
|
|
14217
|
+
function H() {
|
|
14218
|
+
M.value ? C.value.kgHeight = u.value : C.value.kgHeight = m.value;
|
|
14196
14219
|
}
|
|
14197
14220
|
return () => createVNode(KgResizable, {
|
|
14198
14221
|
kgHeight: C.value.kgHeight,
|
|
14199
|
-
"onUpdate:kgHeight": (
|
|
14222
|
+
"onUpdate:kgHeight": (K) => C.value.kgHeight = K,
|
|
14200
14223
|
kgMinHeight: m.value,
|
|
14201
14224
|
kgMaxHeight: d.value,
|
|
14202
14225
|
kgDisabled: !l.value,
|
|
14203
|
-
kgClass:
|
|
14226
|
+
kgClass: w.value,
|
|
14204
14227
|
"kg-frm_id": n.formID
|
|
14205
14228
|
}, {
|
|
14206
14229
|
default: () => [s.value && createVNode("div", {
|
|
@@ -14214,17 +14237,17 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
|
14214
14237
|
default: () => [createVNode("div", {
|
|
14215
14238
|
class: "ant-collapse-header"
|
|
14216
14239
|
}, [createVNode(Spin, {
|
|
14217
|
-
spinning:
|
|
14240
|
+
spinning: I.value
|
|
14218
14241
|
}, {
|
|
14219
|
-
default: () => [
|
|
14242
|
+
default: () => [O(), createVNode("div", {
|
|
14220
14243
|
class: "ant-collapse-extra"
|
|
14221
|
-
}, [
|
|
14244
|
+
}, [N()])]
|
|
14222
14245
|
})])]
|
|
14223
14246
|
}), createVNode("div", {
|
|
14224
14247
|
class: "ant-collapse-content ant-collapse-content-active"
|
|
14225
14248
|
}, [createVNode("div", {
|
|
14226
14249
|
class: "ant-collapse-content-box"
|
|
14227
|
-
}, [
|
|
14250
|
+
}, [L()])])])])]
|
|
14228
14251
|
});
|
|
14229
14252
|
}
|
|
14230
14253
|
});
|
|
@@ -14715,7 +14738,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
|
14715
14738
|
n.value = !0;
|
|
14716
14739
|
try {
|
|
14717
14740
|
const {
|
|
14718
|
-
records:
|
|
14741
|
+
records: N
|
|
14719
14742
|
} = await List({
|
|
14720
14743
|
params: {
|
|
14721
14744
|
pageNo: 1,
|
|
@@ -14726,16 +14749,16 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
|
14726
14749
|
order: "asc"
|
|
14727
14750
|
}
|
|
14728
14751
|
});
|
|
14729
|
-
if (u.value = null, c.value =
|
|
14730
|
-
const L = c.value.find((
|
|
14731
|
-
var
|
|
14732
|
-
return
|
|
14752
|
+
if (u.value = null, c.value = N != null ? N : [], $) {
|
|
14753
|
+
const L = c.value.find((H) => {
|
|
14754
|
+
var K;
|
|
14755
|
+
return H.id === ((K = a.getSelectedVarCatalog) == null ? void 0 : K.id);
|
|
14733
14756
|
});
|
|
14734
14757
|
a.setSelectedVarCatalog(L != null ? L : null), d.value = L != null && L.id ? [L.id] : [];
|
|
14735
14758
|
} else
|
|
14736
14759
|
a.setSelectedVarCatalog((O = c.value[0]) != null ? O : null), d.value = (D = c.value[0]) != null && D.id ? [c.value[0].id] : [];
|
|
14737
|
-
} catch (
|
|
14738
|
-
KgLogger.debug(
|
|
14760
|
+
} catch (N) {
|
|
14761
|
+
KgLogger.debug(N == null ? void 0 : N.message);
|
|
14739
14762
|
} finally {
|
|
14740
14763
|
n.value = !1;
|
|
14741
14764
|
}
|
|
@@ -14777,14 +14800,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
|
14777
14800
|
isAllForm: $,
|
|
14778
14801
|
isAllLanguage: V
|
|
14779
14802
|
}) {
|
|
14780
|
-
var O, D,
|
|
14803
|
+
var O, D, N;
|
|
14781
14804
|
u.value = new VarCatalog({
|
|
14782
14805
|
id: "",
|
|
14783
14806
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
|
14784
14807
|
grp_nam: (O = a.getSelectedVar) == null ? void 0 : O.grp_nam,
|
|
14785
14808
|
var_nam: (D = a.getSelectedVar) == null ? void 0 : D.var_nam,
|
|
14786
14809
|
frm_id: $ || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
|
14787
|
-
locale_id: V ? "ALL" : (
|
|
14810
|
+
locale_id: V ? "ALL" : (N = t.locale) == null ? void 0 : N.value,
|
|
14788
14811
|
var_text: ""
|
|
14789
14812
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
|
14790
14813
|
}
|
|
@@ -14882,7 +14905,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
|
14882
14905
|
default: () => [V]
|
|
14883
14906
|
})])]);
|
|
14884
14907
|
}
|
|
14885
|
-
function
|
|
14908
|
+
function U($) {
|
|
14886
14909
|
var O;
|
|
14887
14910
|
let V = "";
|
|
14888
14911
|
return $.id || (V += " ant-table-row-create"), $.id === ((O = a.getSelectedVarCatalog) == null ? void 0 : O.id) && (V += " ant-table-row-selected "), V;
|
|
@@ -14901,7 +14924,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
|
14901
14924
|
rowKey: "id",
|
|
14902
14925
|
dataSource: c.value,
|
|
14903
14926
|
loading: n.value,
|
|
14904
|
-
rowClassName:
|
|
14927
|
+
rowClassName: U,
|
|
14905
14928
|
rowSelection: m.value,
|
|
14906
14929
|
customRow: ($) => ({
|
|
14907
14930
|
onClick: () => P($)
|
|
@@ -15242,8 +15265,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
|
15242
15265
|
var M;
|
|
15243
15266
|
const T = (M = o.value) == null ? void 0 : M.toUpperCase();
|
|
15244
15267
|
return u.value.filter((E) => {
|
|
15245
|
-
var P, I, A, w,
|
|
15246
|
-
return ((I = (P = E.whDsc) == null ? void 0 : P.toUpperCase()) == null ? void 0 : I.includes(T)) || ((w = (A = E.whId) == null ? void 0 : A.toUpperCase()) == null ? void 0 : w.includes(T)) || (($ = (
|
|
15268
|
+
var P, I, A, w, U, $;
|
|
15269
|
+
return ((I = (P = E.whDsc) == null ? void 0 : P.toUpperCase()) == null ? void 0 : I.includes(T)) || ((w = (A = E.whId) == null ? void 0 : A.toUpperCase()) == null ? void 0 : w.includes(T)) || (($ = (U = E.adrId) == null ? void 0 : U.toUpperCase()) == null ? void 0 : $.includes(T));
|
|
15247
15270
|
});
|
|
15248
15271
|
}), m = computed(() => {
|
|
15249
15272
|
var T, M;
|