@kengic/vue 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
package/dist/kengic-vue.js
CHANGED
@@ -2713,7 +2713,11 @@ var UploadOutlined = function(t, r) {
|
|
2713
2713
|
};
|
2714
2714
|
UploadOutlined.displayName = "UploadOutlined";
|
2715
2715
|
UploadOutlined.inheritAttrs = !1;
|
2716
|
-
const UploadOutlined$1 = UploadOutlined, data$
|
2716
|
+
const UploadOutlined$1 = UploadOutlined, data$a = {
|
2717
|
+
width: 1024,
|
2718
|
+
height: 1024,
|
2719
|
+
body: '<path fill="currentColor" d="M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244s244 109.2 244 244s-109.2 244-244 244z"/><path fill="currentColor" d="M512 392c-32.1 0-62.1 12.4-84.8 35.2c-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8C574.1 404.4 544.1 392 512 392z"/>'
|
2720
|
+
}, data$9 = {
|
2717
2721
|
width: 1024,
|
2718
2722
|
height: 1024,
|
2719
2723
|
body: '<path fill="currentColor" d="M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4c0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50s-22.4 50-50 50s-50-22.4-50-50zm180 266H566v-60h260v60z"/>'
|
@@ -2736,15 +2740,15 @@ const UploadOutlined$1 = UploadOutlined, data$9 = {
|
|
2736
2740
|
}, data$4 = {
|
2737
2741
|
width: 1024,
|
2738
2742
|
height: 1024,
|
2739
|
-
body: '<path fill="currentColor" d="
|
2743
|
+
body: '<path fill="currentColor" d="M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216s216-96.7 216-216s-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM640 812a32 32 0 1 0 64 0a32 32 0 1 0-64 0zm12-64h40c4.4 0 8-3.6 8-8V628c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"/>'
|
2740
2744
|
}, data$3 = {
|
2741
2745
|
width: 1024,
|
2742
2746
|
height: 1024,
|
2743
|
-
body: '<path fill="currentColor" d="
|
2747
|
+
body: '<path fill="currentColor" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372s372 166.6 372 372s-166.6 372-372 372z"/><path fill="currentColor" d="M464 336a48 48 0 1 0 96 0a48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"/>'
|
2744
2748
|
}, data$2 = {
|
2745
2749
|
width: 1024,
|
2746
2750
|
height: 1024,
|
2747
|
-
body: '<path fill="currentColor" d="
|
2751
|
+
body: '<path fill="currentColor" d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8Z"/><path fill="currentColor" d="M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8Z"/>'
|
2748
2752
|
}, data$1 = {
|
2749
2753
|
width: 1024,
|
2750
2754
|
height: 1024,
|
@@ -2752,7 +2756,7 @@ const UploadOutlined$1 = UploadOutlined, data$9 = {
|
|
2752
2756
|
}, data = {
|
2753
2757
|
width: 1024,
|
2754
2758
|
height: 1024,
|
2755
|
-
body: '<path fill="currentColor" d="
|
2759
|
+
body: '<path fill="currentColor" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372c0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372c0 89-31.3 170.8-83.5 234.8z"/>'
|
2756
2760
|
}, matchIconName = /^[a-z0-9]+(-[a-z0-9]+)*$/, stringToIcon = (e, t, r, a = "") => {
|
2757
2761
|
const n = e.split(":");
|
2758
2762
|
if (e.slice(0, 1) === "@") {
|
@@ -3353,9 +3357,9 @@ function sendQuery(e, t, r, a) {
|
|
3353
3357
|
T.status === "pending" && (T.status = "aborted");
|
3354
3358
|
}), g = [];
|
3355
3359
|
}
|
3356
|
-
function k(T, $,
|
3360
|
+
function k(T, $, M) {
|
3357
3361
|
const w = $ !== "success";
|
3358
|
-
switch (g = g.filter((
|
3362
|
+
switch (g = g.filter((I) => I !== T), l) {
|
3359
3363
|
case "pending":
|
3360
3364
|
break;
|
3361
3365
|
case "failed":
|
@@ -3366,19 +3370,19 @@ function sendQuery(e, t, r, a) {
|
|
3366
3370
|
return;
|
3367
3371
|
}
|
3368
3372
|
if ($ === "abort") {
|
3369
|
-
u =
|
3373
|
+
u = M, C();
|
3370
3374
|
return;
|
3371
3375
|
}
|
3372
3376
|
if (w) {
|
3373
|
-
u =
|
3377
|
+
u = M, g.length || (i.length ? A() : C());
|
3374
3378
|
return;
|
3375
3379
|
}
|
3376
3380
|
if (y(), E(), !e.random) {
|
3377
|
-
const
|
3378
|
-
|
3381
|
+
const I = e.resources.indexOf(T.resource);
|
3382
|
+
I !== -1 && I !== e.index && (e.index = I);
|
3379
3383
|
}
|
3380
|
-
l = "completed", v.forEach((
|
3381
|
-
M
|
3384
|
+
l = "completed", v.forEach((I) => {
|
3385
|
+
I(M);
|
3382
3386
|
});
|
3383
3387
|
}
|
3384
3388
|
function A() {
|
@@ -3399,8 +3403,8 @@ function sendQuery(e, t, r, a) {
|
|
3399
3403
|
const $ = {
|
3400
3404
|
status: "pending",
|
3401
3405
|
resource: T,
|
3402
|
-
callback: (
|
3403
|
-
k($,
|
3406
|
+
callback: (M, w) => {
|
3407
|
+
k($, M, w);
|
3404
3408
|
}
|
3405
3409
|
};
|
3406
3410
|
g.push($), c++, d = setTimeout(A, e.rotate), r(T, t, $.callback);
|
@@ -3946,8 +3950,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3946
3950
|
}, m: function V(O, D) {
|
3947
3951
|
if (O.date() < D.date())
|
3948
3952
|
return -V(D, O);
|
3949
|
-
var U = 12 * (D.year() - O.year()) + (D.month() - O.month()), F = O.clone().add(U, d),
|
3950
|
-
return +(-(U + (D - F) / (
|
3953
|
+
var U = 12 * (D.year() - O.year()) + (D.month() - O.month()), F = O.clone().add(U, d), N = D - F < 0, B = O.clone().add(U + (N ? -1 : 1), d);
|
3954
|
+
return +(-(U + (D - F) / (N ? F - B : B - F)) || 0);
|
3951
3955
|
}, a: function(V) {
|
3952
3956
|
return V < 0 ? Math.ceil(V) || 0 : Math.floor(V);
|
3953
3957
|
}, p: function(V) {
|
@@ -3956,15 +3960,15 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3956
3960
|
return V === void 0;
|
3957
3961
|
} }, A = "en", T = {};
|
3958
3962
|
T[A] = C;
|
3959
|
-
var $ = "$isDayjsObject",
|
3963
|
+
var $ = "$isDayjsObject", M = function(V) {
|
3960
3964
|
return V instanceof P || !(!V || !V[$]);
|
3961
3965
|
}, w = function V(O, D, U) {
|
3962
3966
|
var F;
|
3963
3967
|
if (!O)
|
3964
3968
|
return A;
|
3965
3969
|
if (typeof O == "string") {
|
3966
|
-
var
|
3967
|
-
T[
|
3970
|
+
var N = O.toLowerCase();
|
3971
|
+
T[N] && (F = N), D && (T[N] = D, F = N);
|
3968
3972
|
var B = O.split("-");
|
3969
3973
|
if (!F && B.length > 1)
|
3970
3974
|
return V(B[0]);
|
@@ -3973,14 +3977,14 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3973
3977
|
T[W] = O, F = W;
|
3974
3978
|
}
|
3975
3979
|
return !U && F && (A = F), F || !U && A;
|
3976
|
-
},
|
3977
|
-
if (
|
3980
|
+
}, I = function(V, O) {
|
3981
|
+
if (M(V))
|
3978
3982
|
return V.clone();
|
3979
3983
|
var D = typeof O == "object" ? O : {};
|
3980
3984
|
return D.date = V, D.args = arguments, new P(D);
|
3981
|
-
},
|
3982
|
-
|
3983
|
-
return
|
3985
|
+
}, K = k;
|
3986
|
+
K.l = w, K.i = M, K.w = function(V, O) {
|
3987
|
+
return I(V, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
3984
3988
|
};
|
3985
3989
|
var P = function() {
|
3986
3990
|
function V(D) {
|
@@ -3989,10 +3993,10 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3989
3993
|
var O = V.prototype;
|
3990
3994
|
return O.parse = function(D) {
|
3991
3995
|
this.$d = function(U) {
|
3992
|
-
var F = U.date,
|
3996
|
+
var F = U.date, N = U.utc;
|
3993
3997
|
if (F === null)
|
3994
3998
|
return new Date(NaN);
|
3995
|
-
if (
|
3999
|
+
if (K.u(F))
|
3996
4000
|
return new Date();
|
3997
4001
|
if (F instanceof Date)
|
3998
4002
|
return new Date(F);
|
@@ -4000,7 +4004,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4000
4004
|
var B = F.match(_);
|
4001
4005
|
if (B) {
|
4002
4006
|
var W = B[2] - 1 || 0, X = (B[7] || "0").substring(0, 3);
|
4003
|
-
return
|
4007
|
+
return N ? new Date(Date.UTC(B[1], W, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, X)) : new Date(B[1], W, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, X);
|
4004
4008
|
}
|
4005
4009
|
}
|
4006
4010
|
return new Date(F);
|
@@ -4009,37 +4013,37 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4009
4013
|
var D = this.$d;
|
4010
4014
|
this.$y = D.getFullYear(), this.$M = D.getMonth(), this.$D = D.getDate(), this.$W = D.getDay(), this.$H = D.getHours(), this.$m = D.getMinutes(), this.$s = D.getSeconds(), this.$ms = D.getMilliseconds();
|
4011
4015
|
}, O.$utils = function() {
|
4012
|
-
return
|
4016
|
+
return K;
|
4013
4017
|
}, O.isValid = function() {
|
4014
4018
|
return this.$d.toString() !== p;
|
4015
4019
|
}, O.isSame = function(D, U) {
|
4016
|
-
var F =
|
4020
|
+
var F = I(D);
|
4017
4021
|
return this.startOf(U) <= F && F <= this.endOf(U);
|
4018
4022
|
}, O.isAfter = function(D, U) {
|
4019
|
-
return
|
4023
|
+
return I(D) < this.startOf(U);
|
4020
4024
|
}, O.isBefore = function(D, U) {
|
4021
|
-
return this.endOf(U) <
|
4025
|
+
return this.endOf(U) < I(D);
|
4022
4026
|
}, O.$g = function(D, U, F) {
|
4023
|
-
return
|
4027
|
+
return K.u(D) ? this[U] : this.set(F, D);
|
4024
4028
|
}, O.unix = function() {
|
4025
4029
|
return Math.floor(this.valueOf() / 1e3);
|
4026
4030
|
}, O.valueOf = function() {
|
4027
4031
|
return this.$d.getTime();
|
4028
4032
|
}, O.startOf = function(D, U) {
|
4029
|
-
var F = this,
|
4030
|
-
var le =
|
4031
|
-
return
|
4033
|
+
var F = this, N = !!K.u(U) || U, B = K.p(D), W = function(ce, ne) {
|
4034
|
+
var le = K.w(F.$u ? Date.UTC(F.$y, ne, ce) : new Date(F.$y, ne, ce), F);
|
4035
|
+
return N ? le : le.endOf(c);
|
4032
4036
|
}, X = function(ce, ne) {
|
4033
|
-
return
|
4037
|
+
return K.w(F.toDate()[ce].apply(F.toDate("s"), (N ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), F);
|
4034
4038
|
}, q = this.$W, Z = this.$M, ee = this.$D, se = "set" + (this.$u ? "UTC" : "");
|
4035
4039
|
switch (B) {
|
4036
4040
|
case v:
|
4037
|
-
return
|
4041
|
+
return N ? W(1, 0) : W(31, 11);
|
4038
4042
|
case d:
|
4039
|
-
return
|
4043
|
+
return N ? W(1, Z) : W(0, Z + 1);
|
4040
4044
|
case u:
|
4041
4045
|
var oe = this.$locale().weekStart || 0, ge = (q < oe ? q + 7 : q) - oe;
|
4042
|
-
return W(
|
4046
|
+
return W(N ? ee - ge : ee + (6 - ge), Z);
|
4043
4047
|
case c:
|
4044
4048
|
case y:
|
4045
4049
|
return X(se + "Hours", 0);
|
@@ -4055,8 +4059,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4055
4059
|
}, O.endOf = function(D) {
|
4056
4060
|
return this.startOf(D, !1);
|
4057
4061
|
}, O.$set = function(D, U) {
|
4058
|
-
var F,
|
4059
|
-
if (
|
4062
|
+
var F, N = K.p(D), B = "set" + (this.$u ? "UTC" : ""), W = (F = {}, F[c] = B + "Date", F[y] = B + "Date", F[d] = B + "Month", F[v] = B + "FullYear", F[l] = B + "Hours", F[o] = B + "Minutes", F[i] = B + "Seconds", F[s] = B + "Milliseconds", F)[N], X = N === c ? this.$D + (U - this.$W) : U;
|
4063
|
+
if (N === d || N === v) {
|
4060
4064
|
var q = this.clone().set(y, 1);
|
4061
4065
|
q.$d[W](X), q.init(), this.$d = q.set(y, Math.min(this.$D, q.daysInMonth())).$d;
|
4062
4066
|
} else
|
@@ -4065,13 +4069,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4065
4069
|
}, O.set = function(D, U) {
|
4066
4070
|
return this.clone().$set(D, U);
|
4067
4071
|
}, O.get = function(D) {
|
4068
|
-
return this[
|
4072
|
+
return this[K.p(D)]();
|
4069
4073
|
}, O.add = function(D, U) {
|
4070
|
-
var F,
|
4074
|
+
var F, N = this;
|
4071
4075
|
D = Number(D);
|
4072
|
-
var B =
|
4073
|
-
var ee =
|
4074
|
-
return
|
4076
|
+
var B = K.p(U), W = function(Z) {
|
4077
|
+
var ee = I(N);
|
4078
|
+
return K.w(ee.date(ee.date() + Math.round(Z * D)), N);
|
4075
4079
|
};
|
4076
4080
|
if (B === d)
|
4077
4081
|
return this.set(d, this.$M + D);
|
@@ -4082,32 +4086,32 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4082
4086
|
if (B === u)
|
4083
4087
|
return W(7);
|
4084
4088
|
var X = (F = {}, F[o] = a, F[l] = n, F[i] = r, F)[B] || 1, q = this.$d.getTime() + D * X;
|
4085
|
-
return
|
4089
|
+
return K.w(q, this);
|
4086
4090
|
}, O.subtract = function(D, U) {
|
4087
4091
|
return this.add(-1 * D, U);
|
4088
4092
|
}, O.format = function(D) {
|
4089
4093
|
var U = this, F = this.$locale();
|
4090
4094
|
if (!this.isValid())
|
4091
4095
|
return F.invalidDate || p;
|
4092
|
-
var
|
4093
|
-
return ne && (ne[le] || ne(U,
|
4096
|
+
var N = D || "YYYY-MM-DDTHH:mm:ssZ", B = K.z(this), W = this.$H, X = this.$m, q = this.$M, Z = F.weekdays, ee = F.months, se = F.meridiem, oe = function(ne, le, de, fe) {
|
4097
|
+
return ne && (ne[le] || ne(U, N)) || de[le].slice(0, fe);
|
4094
4098
|
}, ge = function(ne) {
|
4095
|
-
return
|
4099
|
+
return K.s(W % 12 || 12, ne, "0");
|
4096
4100
|
}, ce = se || function(ne, le, de) {
|
4097
4101
|
var fe = ne < 12 ? "AM" : "PM";
|
4098
4102
|
return de ? fe.toLowerCase() : fe;
|
4099
4103
|
};
|
4100
|
-
return
|
4104
|
+
return N.replace(b, function(ne, le) {
|
4101
4105
|
return le || function(de) {
|
4102
4106
|
switch (de) {
|
4103
4107
|
case "YY":
|
4104
4108
|
return String(U.$y).slice(-2);
|
4105
4109
|
case "YYYY":
|
4106
|
-
return
|
4110
|
+
return K.s(U.$y, 4, "0");
|
4107
4111
|
case "M":
|
4108
4112
|
return q + 1;
|
4109
4113
|
case "MM":
|
4110
|
-
return
|
4114
|
+
return K.s(q + 1, 2, "0");
|
4111
4115
|
case "MMM":
|
4112
4116
|
return oe(F.monthsShort, q, ee, 3);
|
4113
4117
|
case "MMMM":
|
@@ -4115,7 +4119,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4115
4119
|
case "D":
|
4116
4120
|
return U.$D;
|
4117
4121
|
case "DD":
|
4118
|
-
return
|
4122
|
+
return K.s(U.$D, 2, "0");
|
4119
4123
|
case "d":
|
4120
4124
|
return String(U.$W);
|
4121
4125
|
case "dd":
|
@@ -4127,7 +4131,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4127
4131
|
case "H":
|
4128
4132
|
return String(W);
|
4129
4133
|
case "HH":
|
4130
|
-
return
|
4134
|
+
return K.s(W, 2, "0");
|
4131
4135
|
case "h":
|
4132
4136
|
return ge(1);
|
4133
4137
|
case "hh":
|
@@ -4139,13 +4143,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4139
4143
|
case "m":
|
4140
4144
|
return String(X);
|
4141
4145
|
case "mm":
|
4142
|
-
return
|
4146
|
+
return K.s(X, 2, "0");
|
4143
4147
|
case "s":
|
4144
4148
|
return String(U.$s);
|
4145
4149
|
case "ss":
|
4146
|
-
return
|
4150
|
+
return K.s(U.$s, 2, "0");
|
4147
4151
|
case "SSS":
|
4148
|
-
return
|
4152
|
+
return K.s(U.$ms, 3, "0");
|
4149
4153
|
case "Z":
|
4150
4154
|
return B;
|
4151
4155
|
}
|
@@ -4155,38 +4159,38 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4155
4159
|
}, O.utcOffset = function() {
|
4156
4160
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4157
4161
|
}, O.diff = function(D, U, F) {
|
4158
|
-
var
|
4159
|
-
return
|
4162
|
+
var N, B = this, W = K.p(U), X = I(D), q = (X.utcOffset() - this.utcOffset()) * a, Z = this - X, ee = function() {
|
4163
|
+
return K.m(B, X);
|
4160
4164
|
};
|
4161
4165
|
switch (W) {
|
4162
4166
|
case v:
|
4163
|
-
|
4167
|
+
N = ee() / 12;
|
4164
4168
|
break;
|
4165
4169
|
case d:
|
4166
|
-
|
4170
|
+
N = ee();
|
4167
4171
|
break;
|
4168
4172
|
case g:
|
4169
|
-
|
4173
|
+
N = ee() / 3;
|
4170
4174
|
break;
|
4171
4175
|
case u:
|
4172
|
-
|
4176
|
+
N = (Z - q) / 6048e5;
|
4173
4177
|
break;
|
4174
4178
|
case c:
|
4175
|
-
|
4179
|
+
N = (Z - q) / 864e5;
|
4176
4180
|
break;
|
4177
4181
|
case l:
|
4178
|
-
|
4182
|
+
N = Z / n;
|
4179
4183
|
break;
|
4180
4184
|
case o:
|
4181
|
-
|
4185
|
+
N = Z / a;
|
4182
4186
|
break;
|
4183
4187
|
case i:
|
4184
|
-
|
4188
|
+
N = Z / r;
|
4185
4189
|
break;
|
4186
4190
|
default:
|
4187
|
-
|
4191
|
+
N = Z;
|
4188
4192
|
}
|
4189
|
-
return F ?
|
4193
|
+
return F ? N : K.a(N);
|
4190
4194
|
}, O.daysInMonth = function() {
|
4191
4195
|
return this.endOf(d).$D;
|
4192
4196
|
}, O.$locale = function() {
|
@@ -4194,10 +4198,10 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4194
4198
|
}, O.locale = function(D, U) {
|
4195
4199
|
if (!D)
|
4196
4200
|
return this.$L;
|
4197
|
-
var F = this.clone(),
|
4198
|
-
return
|
4201
|
+
var F = this.clone(), N = w(D, U, !0);
|
4202
|
+
return N && (F.$L = N), F;
|
4199
4203
|
}, O.clone = function() {
|
4200
|
-
return
|
4204
|
+
return K.w(this.$d, this);
|
4201
4205
|
}, O.toDate = function() {
|
4202
4206
|
return new Date(this.valueOf());
|
4203
4207
|
}, O.toJSON = function() {
|
@@ -4208,15 +4212,15 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4208
4212
|
return this.$d.toUTCString();
|
4209
4213
|
}, V;
|
4210
4214
|
}(), H = P.prototype;
|
4211
|
-
return
|
4215
|
+
return I.prototype = H, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", v], ["$D", y]].forEach(function(V) {
|
4212
4216
|
H[V[1]] = function(O) {
|
4213
4217
|
return this.$g(O, V[0], V[1]);
|
4214
4218
|
};
|
4215
|
-
}),
|
4216
|
-
return V.$i || (V(O, P,
|
4217
|
-
},
|
4218
|
-
return
|
4219
|
-
},
|
4219
|
+
}), I.extend = function(V, O) {
|
4220
|
+
return V.$i || (V(O, P, I), V.$i = !0), I;
|
4221
|
+
}, I.locale = w, I.isDayjs = M, I.unix = function(V) {
|
4222
|
+
return I(1e3 * V);
|
4223
|
+
}, I.en = T[A], I.Ls = T, I.p = {}, I;
|
4220
4224
|
});
|
4221
4225
|
})(dayjs_min);
|
4222
4226
|
const dayjs = dayjs_min.exports;
|
@@ -4263,23 +4267,23 @@ function filesize(e, {
|
|
4263
4267
|
} = {}) {
|
4264
4268
|
let b = y, C = Number(e), E = [], k = 0, A = EMPTY;
|
4265
4269
|
u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
|
4266
|
-
const T = a === 10 ? 1e3 : 1024, $ = g === !0,
|
4270
|
+
const T = a === 10 ? 1e3 : 1024, $ = g === !0, M = C < 0, w = Math[p];
|
4267
4271
|
if (typeof e != "bigint" && isNaN(e))
|
4268
4272
|
throw new TypeError(INVALID_NUMBER);
|
4269
4273
|
if (typeof w !== FUNCTION)
|
4270
4274
|
throw new TypeError(INVALID_ROUND);
|
4271
|
-
if (
|
4275
|
+
if (M && (C = -C), (b === -1 || isNaN(b)) && (b = Math.floor(Math.log(C) / Math.log(T)), b < 0 && (b = 0)), b > 8 && (_ > 0 && (_ += 8 - b), b = 8), d === EXPONENT)
|
4272
4276
|
return b;
|
4273
4277
|
if (C === 0)
|
4274
4278
|
E[0] = 0, A = E[1] = STRINGS.symbol[u][t ? BITS : BYTES][b];
|
4275
4279
|
else {
|
4276
4280
|
k = C / (a === 2 ? Math.pow(2, b * 10) : Math.pow(1e3, b)), t && (k = k * 8, k >= T && b < 8 && (k = k / T, b++));
|
4277
|
-
const
|
4278
|
-
E[0] = w(k *
|
4281
|
+
const I = Math.pow(10, b > 0 ? n : 0);
|
4282
|
+
E[0] = w(k * I) / I, E[0] === T && b < 8 && y === -1 && (E[0] = 1, b++), A = E[1] = a === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][b];
|
4279
4283
|
}
|
4280
|
-
if (
|
4281
|
-
const
|
4282
|
-
E[0] = `${
|
4284
|
+
if (M && (E[0] = -E[0]), _ > 0 && (E[0] = E[0].toPrecision(_)), E[1] = c[E[1]] || E[1], s === !0 ? E[0] = E[0].toLocaleString() : s.length > 0 ? E[0] = E[0].toLocaleString(s, i) : o.length > 0 && (E[0] = E[0].toString().replace(PERIOD, o)), r && Number.isInteger(E[0]) === !1 && n > 0) {
|
4285
|
+
const I = o || PERIOD, K = E[0].toString().split(I), P = K[1] || EMPTY, H = P.length, V = n - H;
|
4286
|
+
E[0] = `${K[0]}${I}${P.padEnd(H + V, ZERO)}`;
|
4283
4287
|
}
|
4284
4288
|
return $ && (E[1] = v[b] ? v[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), d === ARRAY ? E : d === OBJECT ? {
|
4285
4289
|
value: E[0],
|
@@ -5630,19 +5634,19 @@ function debounce(e, t, r) {
|
|
5630
5634
|
throw new TypeError(FUNC_ERROR_TEXT);
|
5631
5635
|
t = toNumber(t) || 0, isObject$2(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? nativeMax$1(toNumber(r.maxWait) || 0, t) : s, g = "trailing" in r ? !!r.trailing : g);
|
5632
5636
|
function v(T) {
|
5633
|
-
var $ = a,
|
5634
|
-
return a = n = void 0, c = T, i = e.apply(
|
5637
|
+
var $ = a, M = n;
|
5638
|
+
return a = n = void 0, c = T, i = e.apply(M, $), i;
|
5635
5639
|
}
|
5636
5640
|
function y(T) {
|
5637
5641
|
return c = T, o = setTimeout(b, t), u ? v(T) : i;
|
5638
5642
|
}
|
5639
5643
|
function p(T) {
|
5640
|
-
var $ = T - l,
|
5641
|
-
return d ? nativeMin$1(w, s -
|
5644
|
+
var $ = T - l, M = T - c, w = t - $;
|
5645
|
+
return d ? nativeMin$1(w, s - M) : w;
|
5642
5646
|
}
|
5643
5647
|
function _(T) {
|
5644
|
-
var $ = T - l,
|
5645
|
-
return l === void 0 || $ >= t || $ < 0 || d &&
|
5648
|
+
var $ = T - l, M = T - c;
|
5649
|
+
return l === void 0 || $ >= t || $ < 0 || d && M >= s;
|
5646
5650
|
}
|
5647
5651
|
function b() {
|
5648
5652
|
var T = now$1();
|
@@ -6803,22 +6807,22 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6803
6807
|
const l = {
|
6804
6808
|
deep: !0
|
6805
6809
|
};
|
6806
|
-
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (
|
6807
|
-
c ? v =
|
6810
|
+
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (M) => {
|
6811
|
+
c ? v = M : c == !1 && !T._hotUpdating && (Array.isArray(v) ? v.push(M) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
6808
6812
|
});
|
6809
6813
|
let c, u, d = markRaw([]), g = markRaw([]), v;
|
6810
6814
|
const y = a.state.value[e];
|
6811
6815
|
!i && !y && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
6812
6816
|
const p = ref({});
|
6813
|
-
function _(
|
6817
|
+
function _(M) {
|
6814
6818
|
let w;
|
6815
|
-
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof
|
6819
|
+
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof M == "function" ? (M(a.state.value[e]), w = {
|
6816
6820
|
type: MutationType.patchFunction,
|
6817
6821
|
storeId: e,
|
6818
6822
|
events: v
|
6819
|
-
}) : (mergeReactiveObjects(a.state.value[e],
|
6823
|
+
}) : (mergeReactiveObjects(a.state.value[e], M), w = {
|
6820
6824
|
type: MutationType.patchObject,
|
6821
|
-
payload:
|
6825
|
+
payload: M,
|
6822
6826
|
storeId: e,
|
6823
6827
|
events: v
|
6824
6828
|
}), nextTick().then(() => {
|
@@ -6831,30 +6835,30 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6831
6835
|
function C() {
|
6832
6836
|
s.stop(), d = [], g = [], a._s.delete(e);
|
6833
6837
|
}
|
6834
|
-
function E(
|
6838
|
+
function E(M, w) {
|
6835
6839
|
return function() {
|
6836
6840
|
setActivePinia(a);
|
6837
|
-
const
|
6841
|
+
const I = Array.from(arguments), K = [], P = [];
|
6838
6842
|
function H(D) {
|
6839
|
-
|
6843
|
+
K.push(D);
|
6840
6844
|
}
|
6841
6845
|
function V(D) {
|
6842
6846
|
P.push(D);
|
6843
6847
|
}
|
6844
6848
|
triggerSubscriptions(g, {
|
6845
|
-
args:
|
6846
|
-
name:
|
6849
|
+
args: I,
|
6850
|
+
name: M,
|
6847
6851
|
store: T,
|
6848
6852
|
after: H,
|
6849
6853
|
onError: V
|
6850
6854
|
});
|
6851
6855
|
let O;
|
6852
6856
|
try {
|
6853
|
-
O = w.apply(this && this.$id === e ? this : T,
|
6857
|
+
O = w.apply(this && this.$id === e ? this : T, I);
|
6854
6858
|
} catch (D) {
|
6855
6859
|
throw triggerSubscriptions(P, D), D;
|
6856
6860
|
}
|
6857
|
-
return O instanceof Promise ? O.then((D) => (triggerSubscriptions(
|
6861
|
+
return O instanceof Promise ? O.then((D) => (triggerSubscriptions(K, D), D)).catch((D) => (triggerSubscriptions(P, D), Promise.reject(D))) : (triggerSubscriptions(K, O), O);
|
6858
6862
|
};
|
6859
6863
|
}
|
6860
6864
|
const k = /* @__PURE__ */ markRaw({
|
@@ -6868,15 +6872,15 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6868
6872
|
$onAction: addSubscription.bind(null, g),
|
6869
6873
|
$patch: _,
|
6870
6874
|
$reset: b,
|
6871
|
-
$subscribe(
|
6872
|
-
const
|
6873
|
-
(w.flush === "sync" ? u : c) &&
|
6875
|
+
$subscribe(M, w = {}) {
|
6876
|
+
const I = addSubscription(d, M, w.detached, () => K()), K = s.run(() => watch(() => a.state.value[e], (P) => {
|
6877
|
+
(w.flush === "sync" ? u : c) && M({
|
6874
6878
|
storeId: e,
|
6875
6879
|
type: MutationType.direct,
|
6876
6880
|
events: v
|
6877
6881
|
}, P);
|
6878
6882
|
}, assign$1({}, l, w)));
|
6879
|
-
return
|
6883
|
+
return I;
|
6880
6884
|
},
|
6881
6885
|
$dispose: C
|
6882
6886
|
}, T = reactive(assign$1(
|
@@ -6888,53 +6892,53 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6888
6892
|
));
|
6889
6893
|
a._s.set(e, T);
|
6890
6894
|
const $ = a._e.run(() => (s = effectScope(), s.run(() => t())));
|
6891
|
-
for (const
|
6892
|
-
const w = $[
|
6895
|
+
for (const M in $) {
|
6896
|
+
const w = $[M];
|
6893
6897
|
if (isRef(w) && !isComputed(w) || isReactive(w))
|
6894
|
-
process.env.NODE_ENV !== "production" && n ? set(p.value,
|
6898
|
+
process.env.NODE_ENV !== "production" && n ? set(p.value, M, toRef($, M)) : i || (y && shouldHydrate(w) && (isRef(w) ? w.value = y[M] : mergeReactiveObjects(w, y[M])), a.state.value[e][M] = w), process.env.NODE_ENV !== "production" && k.state.push(M);
|
6895
6899
|
else if (typeof w == "function") {
|
6896
|
-
const
|
6897
|
-
$[
|
6900
|
+
const I = process.env.NODE_ENV !== "production" && n ? w : E(M, w);
|
6901
|
+
$[M] = I, process.env.NODE_ENV !== "production" && (k.actions[M] = w), o.actions[M] = w;
|
6898
6902
|
} else
|
6899
|
-
process.env.NODE_ENV !== "production" && isComputed(w) && (k.getters[
|
6903
|
+
process.env.NODE_ENV !== "production" && isComputed(w) && (k.getters[M] = i ? r.getters[M] : w, IS_CLIENT && ($._getters || ($._getters = markRaw([]))).push(M));
|
6900
6904
|
}
|
6901
6905
|
if (assign$1(T, $), assign$1(toRaw(T), $), Object.defineProperty(T, "$state", {
|
6902
6906
|
get: () => process.env.NODE_ENV !== "production" && n ? p.value : a.state.value[e],
|
6903
|
-
set: (
|
6907
|
+
set: (M) => {
|
6904
6908
|
if (process.env.NODE_ENV !== "production" && n)
|
6905
6909
|
throw new Error("cannot set hotState");
|
6906
6910
|
_((w) => {
|
6907
|
-
assign$1(w,
|
6911
|
+
assign$1(w, M);
|
6908
6912
|
});
|
6909
6913
|
}
|
6910
6914
|
}), process.env.NODE_ENV !== "production") {
|
6911
6915
|
T._hotUpdate = markRaw((w) => {
|
6912
|
-
T._hotUpdating = !0, w._hmrPayload.state.forEach((
|
6913
|
-
if (
|
6914
|
-
const
|
6915
|
-
typeof
|
6916
|
+
T._hotUpdating = !0, w._hmrPayload.state.forEach((I) => {
|
6917
|
+
if (I in T.$state) {
|
6918
|
+
const K = w.$state[I], P = T.$state[I];
|
6919
|
+
typeof K == "object" && isPlainObject(K) && isPlainObject(P) ? patchObject(K, P) : w.$state[I] = P;
|
6916
6920
|
}
|
6917
|
-
set(T,
|
6918
|
-
}), Object.keys(T.$state).forEach((
|
6919
|
-
|
6921
|
+
set(T, I, toRef(w.$state, I));
|
6922
|
+
}), Object.keys(T.$state).forEach((I) => {
|
6923
|
+
I in w.$state || del(T, I);
|
6920
6924
|
}), c = !1, u = !1, a.state.value[e] = toRef(w._hmrPayload, "hotState"), u = !0, nextTick().then(() => {
|
6921
6925
|
c = !0;
|
6922
6926
|
});
|
6923
|
-
for (const
|
6924
|
-
const
|
6925
|
-
set(T,
|
6927
|
+
for (const I in w._hmrPayload.actions) {
|
6928
|
+
const K = w[I];
|
6929
|
+
set(T, I, E(I, K));
|
6926
6930
|
}
|
6927
|
-
for (const
|
6928
|
-
const
|
6929
|
-
set(T,
|
6931
|
+
for (const I in w._hmrPayload.getters) {
|
6932
|
+
const K = w._hmrPayload.getters[I], P = i ? computed(() => (setActivePinia(a), K.call(T, T))) : K;
|
6933
|
+
set(T, I, P);
|
6930
6934
|
}
|
6931
|
-
Object.keys(T._hmrPayload.getters).forEach((
|
6932
|
-
|
6933
|
-
}), Object.keys(T._hmrPayload.actions).forEach((
|
6934
|
-
|
6935
|
+
Object.keys(T._hmrPayload.getters).forEach((I) => {
|
6936
|
+
I in w._hmrPayload.getters || del(T, I);
|
6937
|
+
}), Object.keys(T._hmrPayload.actions).forEach((I) => {
|
6938
|
+
I in w._hmrPayload.actions || del(T, I);
|
6935
6939
|
}), T._hmrPayload = w._hmrPayload, T._getters = w._getters, T._hotUpdating = !1;
|
6936
6940
|
});
|
6937
|
-
const
|
6941
|
+
const M = {
|
6938
6942
|
writable: !0,
|
6939
6943
|
configurable: !0,
|
6940
6944
|
enumerable: !1
|
@@ -6942,21 +6946,21 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6942
6946
|
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((w) => {
|
6943
6947
|
Object.defineProperty(T, w, {
|
6944
6948
|
value: T[w],
|
6945
|
-
...
|
6949
|
+
...M
|
6946
6950
|
});
|
6947
6951
|
});
|
6948
6952
|
}
|
6949
|
-
return a._p.forEach((
|
6953
|
+
return a._p.forEach((M) => {
|
6950
6954
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6951
|
-
const w = s.run(() =>
|
6955
|
+
const w = s.run(() => M({
|
6952
6956
|
store: T,
|
6953
6957
|
app: a._a,
|
6954
6958
|
pinia: a,
|
6955
6959
|
options: o
|
6956
6960
|
}));
|
6957
|
-
Object.keys(w || {}).forEach((
|
6961
|
+
Object.keys(w || {}).forEach((I) => T._customProperties.add(I)), assign$1(T, w);
|
6958
6962
|
} else
|
6959
|
-
assign$1(T, s.run(() =>
|
6963
|
+
assign$1(T, s.run(() => M({
|
6960
6964
|
store: T,
|
6961
6965
|
app: a._a,
|
6962
6966
|
pinia: a,
|
@@ -7075,16 +7079,17 @@ function pinia() {
|
|
7075
7079
|
throw new Error("[@kengic/vue] pinia \u4E3A\u7A7A.");
|
7076
7080
|
return _pinia;
|
7077
7081
|
}
|
7078
|
-
addIcon("ant-design:plus-outlined", data$
|
7082
|
+
addIcon("ant-design:plus-outlined", data$2);
|
7079
7083
|
addIcon("ant-design:edit-outlined", data$5);
|
7080
7084
|
addIcon("ant-design:delete-outlined", data$7);
|
7081
|
-
addIcon("ant-design:stop-outlined", data
|
7085
|
+
addIcon("ant-design:stop-outlined", data);
|
7082
7086
|
addIcon("ant-design:audit-outlined", data$9);
|
7087
|
+
addIcon("ant-design:exception-outlined", data$4);
|
7083
7088
|
addIcon("ant-design:check-outlined", data$8);
|
7084
7089
|
addIcon("ant-design:download-outlined", data$6);
|
7085
|
-
addIcon("ant-design:info-circle-outlined", data$
|
7090
|
+
addIcon("ant-design:info-circle-outlined", data$3);
|
7086
7091
|
addIcon("ant-design:printer-outlined", data$1);
|
7087
|
-
addIcon("ant-design:aim-outlined", data);
|
7092
|
+
addIcon("ant-design:aim-outlined", data$a);
|
7088
7093
|
function setup(e) {
|
7089
7094
|
var r;
|
7090
7095
|
if (!(e != null && e.pinia) || !(e != null && e.locale) || !(e != null && e.i18n) || !e.pFunction)
|
@@ -8781,10 +8786,10 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8781
8786
|
} = await GetAll({ params: { frm_id: e } });
|
8782
8787
|
this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, g != null ? g : []), this.varPossibilityMap.set(e, p != null ? p : []), this.varVariableConfigMap.set(e, v != null ? v : []), this.varVariableInputMap.set(e, y != null ? y : []), this.varButtonMap.set(e, transformVarButtons(_)), this.varButtonConfigMap.set(e, transformVarButtonConfig(b != null ? b : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(C)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(E)), this.varProfileConfigMap.set(e, transformVarProfileConfig(A != null ? A : null)), this.varProfileMap.set(e, {
|
8783
8788
|
varProfile: k != null ? k : null,
|
8784
|
-
currentVarProfileMasterID: (s = (n = ((t = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : t.find((
|
8789
|
+
currentVarProfileMasterID: (s = (n = ((t = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : t.find((M) => M.def_flg === 1)) || ((r = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : r.find((M) => M.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((a = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : a.find(() => !0))) == null ? void 0 : n.id) != null ? s : null
|
8785
8790
|
}), this.varGridConfigMap.set(e, transformVarGridConfig($ != null ? $ : null)), this.varGridMap.set(e, {
|
8786
8791
|
varGrid: transformVarGridDTO(T),
|
8787
|
-
currentVarGridMasterID: (u = (c = ((i = T == null ? void 0 : T.varGridMasters) == null ? void 0 : i.find((
|
8792
|
+
currentVarGridMasterID: (u = (c = ((i = T == null ? void 0 : T.varGridMasters) == null ? void 0 : i.find((M) => M.def_flg === 1)) || ((o = T == null ? void 0 : T.varGridMasters) == null ? void 0 : o.find((M) => M.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((l = T == null ? void 0 : T.varGridMasters) == null ? void 0 : l.find(() => !0))) == null ? void 0 : c.id) != null ? u : null
|
8788
8793
|
}), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
|
8789
8794
|
} catch (d) {
|
8790
8795
|
throw d;
|
@@ -8994,10 +8999,10 @@ function useKgVar(e, t, r = 0) {
|
|
8994
8999
|
const d = (q) => computed(() => {
|
8995
9000
|
var Z, ee, se;
|
8996
9001
|
return (se = (ee = (Z = u.getVarCatalog(c, q)) == null ? void 0 : Z.var_text) != null ? ee : q) != null ? se : "";
|
8997
|
-
}), g = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), C = computed(() => u.isUpdatingRequesting(c)), E = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)), A = computed(() => u.isDeleting(c)), T = computed(() => u.isDeletingRequesting(c)), $ = computed(() => u.isOtherRequesting(c)),
|
9002
|
+
}), g = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), C = computed(() => u.isUpdatingRequesting(c)), E = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)), A = computed(() => u.isDeleting(c)), T = computed(() => u.isDeletingRequesting(c)), $ = computed(() => u.isOtherRequesting(c)), M = computed(() => u.getVarButtons(c)), w = computed(() => u.getVarButtonSearch(c)), I = computed(() => u.getVarButtonCreate(c)), K = computed(() => u.getVarButtonUpdate(c)), P = computed(() => u.getVarButtonCopy(c)), H = computed(() => u.getVarButtonDelete(c)), V = computed(() => u.getVarProfileMasters(c)), O = computed(() => u.getCurrentVarProfileMaster(c)), D = computed(() => u.getCurrentVarProfileMasterID(c)), U = computed(() => {
|
8998
9003
|
var q, Z;
|
8999
9004
|
return (Z = (q = O.value) == null ? void 0 : q.varProfileDetails) != null ? Z : null;
|
9000
|
-
}), F = computed(() => u.getVarGridConfig(c)),
|
9005
|
+
}), F = computed(() => u.getVarGridConfig(c)), N = computed(() => u.getVarGridMasters(c)), B = computed(() => u.getCurrentVarGridMaster(c)), W = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
|
9001
9006
|
return {
|
9002
9007
|
formID: c,
|
9003
9008
|
store: u,
|
@@ -9013,10 +9018,10 @@ function useKgVar(e, t, r = 0) {
|
|
9013
9018
|
isDeleting: A,
|
9014
9019
|
isDeletingRequesting: T,
|
9015
9020
|
isOtherRequesting: $,
|
9016
|
-
varButtons:
|
9021
|
+
varButtons: M,
|
9017
9022
|
varButtonSearch: w,
|
9018
|
-
varButtonCreate:
|
9019
|
-
varButtonUpdate:
|
9023
|
+
varButtonCreate: I,
|
9024
|
+
varButtonUpdate: K,
|
9020
9025
|
varButtonCopy: P,
|
9021
9026
|
varButtonDelete: H,
|
9022
9027
|
varProfileMasters: V,
|
@@ -9024,7 +9029,7 @@ function useKgVar(e, t, r = 0) {
|
|
9024
9029
|
currentVarProfileMasterID: D,
|
9025
9030
|
currentVarProfileDetails: U,
|
9026
9031
|
varGridConfig: F,
|
9027
|
-
varGridMasters:
|
9032
|
+
varGridMasters: N,
|
9028
9033
|
currentVarGridMaster: B,
|
9029
9034
|
systemVarGridDetails: W,
|
9030
9035
|
currentVarGridDetails: X,
|
@@ -9380,7 +9385,7 @@ function useKgFormItemSelect() {
|
|
9380
9385
|
}), d;
|
9381
9386
|
});
|
9382
9387
|
async function c() {
|
9383
|
-
var b, C, E, k, A, T, $,
|
9388
|
+
var b, C, E, k, A, T, $, M;
|
9384
9389
|
let d = [];
|
9385
9390
|
const g = (b = a.value) == null ? void 0 : b.cmd, v = (E = (C = a.value) == null ? void 0 : C.cmd_method) != null ? E : "GET", y = (A = (k = a.value) == null ? void 0 : k.val_clm) != null ? A : "", p = ($ = (T = a.value) == null ? void 0 : T.lbl_clm) != null ? $ : "";
|
9386
9391
|
if (!g || !y || !p) {
|
@@ -9395,7 +9400,7 @@ function useKgFormItemSelect() {
|
|
9395
9400
|
}
|
9396
9401
|
let _ = null;
|
9397
9402
|
try {
|
9398
|
-
_ = await ((
|
9403
|
+
_ = await ((M = httpClient()) == null ? void 0 : M.request({
|
9399
9404
|
url: g,
|
9400
9405
|
method: v,
|
9401
9406
|
params: l.value
|
@@ -9864,16 +9869,16 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9864
9869
|
useKg();
|
9865
9870
|
const s = useKgVar();
|
9866
9871
|
useKgForm(s.formID).onLookupOk(async ({
|
9867
|
-
var_nam:
|
9872
|
+
var_nam: M,
|
9868
9873
|
model: w,
|
9869
|
-
isMultiple:
|
9870
|
-
value:
|
9874
|
+
isMultiple: I,
|
9875
|
+
value: K,
|
9871
9876
|
values: P
|
9872
9877
|
}) => {
|
9873
9878
|
var H;
|
9874
|
-
switch (
|
9879
|
+
switch (M) {
|
9875
9880
|
case e.kgVarName:
|
9876
|
-
w.value && (
|
9881
|
+
w.value && (I ? w.value[e.kgVarName] = P : w.value[e.kgVarName] = K), (H = n.value) == null || H.validate([e.kgVarName]);
|
9877
9882
|
break;
|
9878
9883
|
}
|
9879
9884
|
return !1;
|
@@ -9883,117 +9888,117 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9883
9888
|
} = _useRules(e), {
|
9884
9889
|
controlType: g
|
9885
9890
|
} = useKgFormItem(e), v = computed(() => {
|
9886
|
-
var w,
|
9891
|
+
var w, I, K, P, H;
|
9887
9892
|
if (s.isRetrieving.value)
|
9888
9893
|
return !0;
|
9889
|
-
let
|
9894
|
+
let M = !1;
|
9890
9895
|
if (e.kgDisabled !== void 0)
|
9891
|
-
|
9896
|
+
M = e.kgDisabled;
|
9892
9897
|
else
|
9893
9898
|
switch (e.kgContext) {
|
9894
9899
|
case KG_FORM_CONTEXT.SEARCH:
|
9895
|
-
|
9900
|
+
M = ((w = c.value) == null ? void 0 : w.ena_flg) === 0;
|
9896
9901
|
break;
|
9897
9902
|
case KG_FORM_CONTEXT.SUBMIT:
|
9898
9903
|
switch (!0) {
|
9899
9904
|
case s.isCreating.value:
|
9900
|
-
|
9905
|
+
M = ((I = u.value) == null ? void 0 : I.crt_ena_flg) === 0;
|
9901
9906
|
break;
|
9902
9907
|
case s.isUpdating.value:
|
9903
|
-
|
9908
|
+
M = ((K = u.value) == null ? void 0 : K.upt_ena_flg) === 0;
|
9904
9909
|
break;
|
9905
9910
|
case s.isCopying.value:
|
9906
|
-
|
9911
|
+
M = ((P = u.value) == null ? void 0 : P.cpy_ena_flg) === 0;
|
9907
9912
|
break;
|
9908
9913
|
case s.isDeleting.value:
|
9909
|
-
|
9914
|
+
M = ((H = u.value) == null ? void 0 : H.del_ena_flg) === 0;
|
9910
9915
|
break;
|
9911
9916
|
}
|
9912
9917
|
break;
|
9913
9918
|
}
|
9914
|
-
return
|
9919
|
+
return M;
|
9915
9920
|
}), y = computed(() => {
|
9916
|
-
var w,
|
9917
|
-
let
|
9921
|
+
var w, I, K, P;
|
9922
|
+
let M = " ";
|
9918
9923
|
if (e.kgPlaceholder)
|
9919
|
-
|
9924
|
+
M = e.kgPlaceholder;
|
9920
9925
|
else
|
9921
9926
|
switch (e.kgContext) {
|
9922
9927
|
case KG_FORM_CONTEXT.SEARCH:
|
9923
|
-
|
9928
|
+
M = s.t((I = (w = c.value) == null ? void 0 : w.placeholder) != null ? I : " ").value;
|
9924
9929
|
break;
|
9925
9930
|
case KG_FORM_CONTEXT.SUBMIT:
|
9926
|
-
|
9931
|
+
M = s.t((P = (K = u.value) == null ? void 0 : K.placeholder) != null ? P : " ").value;
|
9927
9932
|
break;
|
9928
9933
|
}
|
9929
|
-
return
|
9934
|
+
return M;
|
9930
9935
|
}), p = computed(() => {
|
9931
|
-
var w,
|
9932
|
-
let
|
9936
|
+
var w, I, K, P, H, V, O, D, U, F;
|
9937
|
+
let M = 6;
|
9933
9938
|
if (e.kgSpan !== void 0)
|
9934
|
-
|
9939
|
+
M = e.kgSpan;
|
9935
9940
|
else
|
9936
9941
|
switch (e.kgContext) {
|
9937
9942
|
case KG_FORM_CONTEXT.SEARCH:
|
9938
|
-
|
9943
|
+
M = (I = (w = c.value) == null ? void 0 : w.width) != null ? I : 6;
|
9939
9944
|
break;
|
9940
9945
|
case KG_FORM_CONTEXT.SUBMIT:
|
9941
9946
|
switch (!0) {
|
9942
9947
|
case s.isCreating.value:
|
9943
|
-
|
9948
|
+
M = (P = (K = u.value) == null ? void 0 : K.crt_width) != null ? P : 6;
|
9944
9949
|
break;
|
9945
9950
|
case s.isUpdating.value:
|
9946
|
-
|
9951
|
+
M = (V = (H = u.value) == null ? void 0 : H.upt_width) != null ? V : 6;
|
9947
9952
|
break;
|
9948
9953
|
case s.isCopying.value:
|
9949
|
-
|
9954
|
+
M = (D = (O = u.value) == null ? void 0 : O.cpy_width) != null ? D : 6;
|
9950
9955
|
break;
|
9951
9956
|
case s.isDeleting.value:
|
9952
|
-
|
9957
|
+
M = (F = (U = u.value) == null ? void 0 : U.del_width) != null ? F : 6;
|
9953
9958
|
break;
|
9954
9959
|
}
|
9955
9960
|
}
|
9956
|
-
return Math.min(24, Math.max(1,
|
9961
|
+
return Math.min(24, Math.max(1, M));
|
9957
9962
|
}), _ = computed(() => {
|
9958
|
-
var
|
9959
|
-
const
|
9960
|
-
if (
|
9963
|
+
var K, P;
|
9964
|
+
const M = get(k.value, "$el.parentElement");
|
9965
|
+
if (M && !((K = M.classList) != null && K.contains("ant-row")))
|
9961
9966
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
9962
9967
|
let w = {};
|
9963
|
-
const
|
9964
|
-
return Number.isNaN(
|
9965
|
-
paddingLeft: `${
|
9966
|
-
paddingRight: `${
|
9968
|
+
const I = Math.abs(Number.parseInt((P = get(k.value, "$el.parentElement.style.marginLeft")) != null ? P : "0px"));
|
9969
|
+
return Number.isNaN(I) || (w = {
|
9970
|
+
paddingLeft: `${I}px !important`,
|
9971
|
+
paddingRight: `${I}px !important`
|
9967
9972
|
}), w;
|
9968
9973
|
}), b = computed(() => {
|
9969
|
-
var w,
|
9970
|
-
let
|
9971
|
-
switch (o.value && (
|
9974
|
+
var w, I, K, P;
|
9975
|
+
let M = "kg-form-item";
|
9976
|
+
switch (o.value && (M += " kg-form-item-lookup"), e.kgContext) {
|
9972
9977
|
case KG_FORM_CONTEXT.SEARCH:
|
9973
9978
|
switch (!0) {
|
9974
9979
|
case ((w = c.value) == null ? void 0 : w.vis_flg) === 0:
|
9975
|
-
|
9980
|
+
M += " kg-form-item--invisible";
|
9976
9981
|
break;
|
9977
9982
|
}
|
9978
9983
|
break;
|
9979
9984
|
case KG_FORM_CONTEXT.SUBMIT:
|
9980
9985
|
switch (!0) {
|
9981
|
-
case (s.isCreating.value && ((
|
9982
|
-
case (s.isUpdating.value && ((
|
9986
|
+
case (s.isCreating.value && ((I = u.value) == null ? void 0 : I.crt_vis_flg) === 0):
|
9987
|
+
case (s.isUpdating.value && ((K = u.value) == null ? void 0 : K.upt_vis_flg) === 0):
|
9983
9988
|
case (s.isCopying.value && ((P = u.value) == null ? void 0 : P.cpy_vis_flg) === 0):
|
9984
|
-
|
9989
|
+
M += " kg-form-item--invisible";
|
9985
9990
|
break;
|
9986
9991
|
}
|
9987
9992
|
break;
|
9988
9993
|
}
|
9989
|
-
return
|
9994
|
+
return M;
|
9990
9995
|
}), C = computed(() => {
|
9991
9996
|
var w;
|
9992
|
-
const
|
9997
|
+
const M = {
|
9993
9998
|
...e,
|
9994
9999
|
value: (w = a.value) == null ? void 0 : w[e.kgVarName],
|
9995
|
-
"onUpdate:value": (
|
9996
|
-
a.value && (a.value[e.kgVarName] =
|
10000
|
+
"onUpdate:value": (I) => {
|
10001
|
+
a.value && (a.value[e.kgVarName] = I);
|
9997
10002
|
},
|
9998
10003
|
kgPlaceholder: y.value,
|
9999
10004
|
kgDisabled: v.value,
|
@@ -10007,29 +10012,29 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10007
10012
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
10008
10013
|
break;
|
10009
10014
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
10010
|
-
|
10015
|
+
M.kgShowTime = !1;
|
10011
10016
|
break;
|
10012
10017
|
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
10013
|
-
|
10018
|
+
M.kgShowTime = !1;
|
10014
10019
|
break;
|
10015
10020
|
case KG_FORM_ITEM_TYPE.DATE_TIME:
|
10016
|
-
|
10021
|
+
M.kgPicker = "time";
|
10017
10022
|
break;
|
10018
10023
|
case KG_FORM_ITEM_TYPE.DATE_TIME_RANGE:
|
10019
|
-
|
10024
|
+
M.kgPicker = "time";
|
10020
10025
|
break;
|
10021
10026
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
10022
|
-
|
10027
|
+
M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
10023
10028
|
break;
|
10024
10029
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
10025
|
-
|
10030
|
+
M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
10026
10031
|
break;
|
10027
10032
|
}
|
10028
|
-
return
|
10033
|
+
return M;
|
10029
10034
|
}), E = computed(() => encodeURIComponent(`${e.kgContext}~${s.formID}~${e.kgVarName}`)), k = ref(null);
|
10030
10035
|
function A() {
|
10031
10036
|
if (t.control) {
|
10032
|
-
const
|
10037
|
+
const M = {
|
10033
10038
|
frm_id: s.formID,
|
10034
10039
|
varName: e.kgVarName,
|
10035
10040
|
props: C,
|
@@ -10038,7 +10043,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10038
10043
|
varProfileDetail: c,
|
10039
10044
|
varSubmitField: u
|
10040
10045
|
};
|
10041
|
-
return t.control(
|
10046
|
+
return t.control(M);
|
10042
10047
|
}
|
10043
10048
|
switch (g.value) {
|
10044
10049
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
@@ -10077,8 +10082,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10077
10082
|
}, [s.t(e.kgVarName).value]) : null;
|
10078
10083
|
}
|
10079
10084
|
function $() {
|
10080
|
-
var
|
10081
|
-
return !o.value || !((
|
10085
|
+
var M;
|
10086
|
+
return !o.value || !((M = o.value) != null && M.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
10082
10087
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
10083
10088
|
kgDisabled: v.value,
|
10084
10089
|
kgLookupID: o.value.lkp_id
|
@@ -10086,7 +10091,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10086
10091
|
});
|
10087
10092
|
}
|
10088
10093
|
return () => {
|
10089
|
-
var
|
10094
|
+
var M, w;
|
10090
10095
|
return s.isRetrieving.value ? null : createVNode(Col, {
|
10091
10096
|
ref: k,
|
10092
10097
|
span: p.value,
|
@@ -10094,7 +10099,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10094
10099
|
style: _.value,
|
10095
10100
|
"kg-frm_id": s.formID,
|
10096
10101
|
"kg-var_nam": e.kgVarName,
|
10097
|
-
"kg-lkp_id": (
|
10102
|
+
"kg-lkp_id": (M = o.value) == null ? void 0 : M.lkp_id,
|
10098
10103
|
"kg-ret_fld": (w = o.value) == null ? void 0 : w.ret_fld
|
10099
10104
|
}, {
|
10100
10105
|
default: () => [createVNode(Form.Item, {
|
@@ -10257,7 +10262,7 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
10257
10262
|
dispose(e) {
|
10258
10263
|
if (!e)
|
10259
10264
|
return KgLogger.error("formID \u4E3A\u7A7A."), null;
|
10260
|
-
this.isLoadingMap.delete(e), this.modelMap.delete(e);
|
10265
|
+
this.openListenersMap.delete(e), this.beforeOkListenersMap.delete(e), this.afterValidateListenersMap.delete(e), this.beforeRequestListenersMap.delete(e), this.okListenersMap.delete(e), this.errorListenersMap.delete(e), this.closeListenersMap.delete(e), this.lookupOkListenersMap.delete(e), this.isLoadingMap.delete(e), this.modelMap.delete(e), this.formRefMap.delete(e), this.rulesMap.delete(e);
|
10261
10266
|
},
|
10262
10267
|
addEventListener(e, t, r) {
|
10263
10268
|
switch (t) {
|
@@ -10792,12 +10797,12 @@ const getProps$p = () => ({
|
|
10792
10797
|
return (J = E.value) != null ? J : [];
|
10793
10798
|
}
|
10794
10799
|
return [];
|
10795
|
-
}), T = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), $ = computed(() => T.value || d.value),
|
10800
|
+
}), T = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), $ = computed(() => T.value || d.value), M = computed(() => d.value), w = ref({
|
10796
10801
|
kgWidth: 0
|
10797
|
-
}),
|
10802
|
+
}), I = computed(() => {
|
10798
10803
|
var R;
|
10799
10804
|
return !!(u.value || F.isFullscreen || ((R = g.value) == null ? void 0 : R.resizable_flg) === 0);
|
10800
|
-
}),
|
10805
|
+
}), K = computed(() => {
|
10801
10806
|
var R, x;
|
10802
10807
|
return u.value ? 398 : (x = (R = g.value) == null ? void 0 : R.min_width) != null ? x : DEFAULT_MIN_WIDTH;
|
10803
10808
|
}), P = computed(() => {
|
@@ -10808,7 +10813,7 @@ const getProps$p = () => ({
|
|
10808
10813
|
const O = _useTitle(), D = computed(() => u.value ? 400 : w.value.kgWidth && w.value.kgWidth > 0 ? "auto" : 0), U = computed(() => D.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), F = reactive({
|
10809
10814
|
isFullscreen: !1
|
10810
10815
|
}), {
|
10811
|
-
getClass:
|
10816
|
+
getClass: N
|
10812
10817
|
} = _useClass(e, F), {
|
10813
10818
|
getLayout: B
|
10814
10819
|
} = _useLayout(), {
|
@@ -11160,10 +11165,10 @@ const getProps$p = () => ({
|
|
11160
11165
|
let R, x;
|
11161
11166
|
return createVNode(KgResizable, {
|
11162
11167
|
kgType: l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
11163
|
-
kgMinWidth:
|
11168
|
+
kgMinWidth: K.value,
|
11164
11169
|
kgMaxWidth: P.value,
|
11165
11170
|
kgWidth: H.value,
|
11166
|
-
kgDisabled:
|
11171
|
+
kgDisabled: I.value,
|
11167
11172
|
"onUpdate:kgWidth": (z) => w.value.kgWidth = z
|
11168
11173
|
}, {
|
11169
11174
|
default: () => [createVNode(Spin, {
|
@@ -11204,7 +11209,7 @@ const getProps$p = () => ({
|
|
11204
11209
|
default: () => [R]
|
11205
11210
|
}), createVNode(Button, {
|
11206
11211
|
type: "primary",
|
11207
|
-
disabled:
|
11212
|
+
disabled: M.value,
|
11208
11213
|
loading: T.value,
|
11209
11214
|
danger: !!s.isDeleting.value,
|
11210
11215
|
onClick: oe
|
@@ -11236,7 +11241,7 @@ const getProps$p = () => ({
|
|
11236
11241
|
keyboard: !1,
|
11237
11242
|
destroyOnClose: !0,
|
11238
11243
|
width: D.value,
|
11239
|
-
class:
|
11244
|
+
class: N.value,
|
11240
11245
|
"kg-frm_id": s.formID
|
11241
11246
|
}, {
|
11242
11247
|
title: G,
|
@@ -11340,7 +11345,7 @@ const useKgTableStore = () => (store$4 || (store$4 = defineStore("KgTable", {
|
|
11340
11345
|
dispose(e) {
|
11341
11346
|
if (!e)
|
11342
11347
|
return KgLogger.error("formID \u4E3A\u7A7A."), null;
|
11343
|
-
this.selectedRowsMap.delete(e), this.isRetrievedMap.delete(e);
|
11348
|
+
this.datasMap.delete(e), this.selectedRowKeysMap.delete(e), this.selectedRowsMap.delete(e), this.isRetrievedMap.delete(e), this.isRetrievingMap.delete(e), this.tableWidthMap.delete(e), this.rowDoubleClickListenersMap.delete(e), this.beforeRetrieveListenersMap.delete(e), this.beforeSetDatasListenersMap.delete(e), this.retrieveListenersMap.delete(e);
|
11344
11349
|
},
|
11345
11350
|
addEventListener(e, t, r) {
|
11346
11351
|
if (!e) {
|
@@ -11558,8 +11563,8 @@ const getProps$n = () => ({
|
|
11558
11563
|
return !1;
|
11559
11564
|
});
|
11560
11565
|
const l = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
|
11561
|
-
var k, A, T, $,
|
11562
|
-
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((T = c.value) == null ? void 0 : T.crt_flg) === 1 || !!n.isUpdating.value && (($ = c.value) == null ? void 0 : $.upt_flg) === 1 || !!n.isCopying.value && ((
|
11566
|
+
var k, A, T, $, M, w;
|
11567
|
+
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((T = c.value) == null ? void 0 : T.crt_flg) === 1 || !!n.isUpdating.value && (($ = c.value) == null ? void 0 : $.upt_flg) === 1 || !!n.isCopying.value && ((M = c.value) == null ? void 0 : M.cpy_flg) === 1 || !!n.isDeleting.value && ((w = c.value) == null ? void 0 : w.del_flg) === 1);
|
11563
11568
|
}), d = computed(() => {
|
11564
11569
|
var k, A;
|
11565
11570
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && !!n.isCreatingRequesting.value || !!n.isUpdating.value && !!n.isUpdatingRequesting.value || !!n.isCopying.value && !!n.isCopyingRequesting.value || !!n.isDeleting.value && !!n.isDeletingRequesting.value);
|
@@ -11568,15 +11573,15 @@ const getProps$n = () => ({
|
|
11568
11573
|
let k = "kg-table-td";
|
11569
11574
|
return ((A = l.value) == null ? void 0 : A.align) === "center" ? k += " kg-table-td--center" : ((T = l.value) == null ? void 0 : T.align) === "right" && (k += " kg-table-td--right"), u.value && (k += " kg-table-td--submitting"), k;
|
11570
11575
|
}), v = computed(() => {
|
11571
|
-
var A, T, $,
|
11576
|
+
var A, T, $, M, w;
|
11572
11577
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
11573
11578
|
return "";
|
11574
11579
|
let k = e.kgValue;
|
11575
11580
|
switch ((A = l.value) == null ? void 0 : A.display_type) {
|
11576
11581
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
11577
11582
|
{
|
11578
|
-
const
|
11579
|
-
|
11583
|
+
const I = KgUtil.tryParseJSON((T = l.value) == null ? void 0 : T.display_type_properties);
|
11584
|
+
I.dscFieldName ? k = (($ = e.kgRow) == null ? void 0 : $[I.dscFieldName]) || e.kgValue : k = ((M = e.kgRow) == null ? void 0 : M[`${e.kgVarName}_dsc`]) || ((w = e.kgRow) == null ? void 0 : w[`${e.kgVarName}Dsc`]) || e.kgValue;
|
11580
11585
|
}
|
11581
11586
|
break;
|
11582
11587
|
}
|
@@ -11593,9 +11598,9 @@ const getProps$n = () => ({
|
|
11593
11598
|
case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
|
11594
11599
|
{
|
11595
11600
|
k.stopPropagation(), k.preventDefault();
|
11596
|
-
const
|
11601
|
+
const M = KgUtil.tryParseJSON((T = l.value) == null ? void 0 : T.display_type_properties);
|
11597
11602
|
($ = a.router.value) == null || $.push({
|
11598
|
-
path:
|
11603
|
+
path: M.path,
|
11599
11604
|
query: e.kgRow
|
11600
11605
|
});
|
11601
11606
|
}
|
@@ -11626,7 +11631,7 @@ const getProps$n = () => ({
|
|
11626
11631
|
});
|
11627
11632
|
}
|
11628
11633
|
function C() {
|
11629
|
-
var k, A, T, $,
|
11634
|
+
var k, A, T, $, M, w, I, K, P, H;
|
11630
11635
|
if (u.value)
|
11631
11636
|
return b();
|
11632
11637
|
switch ((k = l.value) == null ? void 0 : k.display_type) {
|
@@ -11642,7 +11647,7 @@ const getProps$n = () => ({
|
|
11642
11647
|
if (O) {
|
11643
11648
|
const D = n.t(O.varName).value;
|
11644
11649
|
return D ? createVNode(Tag, {
|
11645
|
-
color: (
|
11650
|
+
color: (M = O.color) != null ? M : "default"
|
11646
11651
|
}, _isSlot$7(D) ? D : {
|
11647
11652
|
default: () => [D]
|
11648
11653
|
}) : E();
|
@@ -11654,7 +11659,7 @@ const getProps$n = () => ({
|
|
11654
11659
|
if (V.isTag && isArrayLike(V.tagColors)) {
|
11655
11660
|
const O = V.tagColors.find((D) => D.value === e.kgValue);
|
11656
11661
|
return v.value ? createVNode(Tag, {
|
11657
|
-
color: (
|
11662
|
+
color: (I = O == null ? void 0 : O.color) != null ? I : "default"
|
11658
11663
|
}, {
|
11659
11664
|
default: () => [v.value]
|
11660
11665
|
}) : E();
|
@@ -11662,7 +11667,7 @@ const getProps$n = () => ({
|
|
11662
11667
|
return E();
|
11663
11668
|
}
|
11664
11669
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
11665
|
-
const V = KgUtil.tryParseJSON((
|
11670
|
+
const V = KgUtil.tryParseJSON((K = l.value) == null ? void 0 : K.display_type_properties);
|
11666
11671
|
return createVNode(KgProgressA, {
|
11667
11672
|
kgTextWidth: V.textWidth,
|
11668
11673
|
kgLeft: (P = e.kgRow) == null ? void 0 : P[V.leftColumn],
|
@@ -12643,8 +12648,8 @@ function _useColumns(e) {
|
|
12643
12648
|
return "right";
|
12644
12649
|
}
|
12645
12650
|
function A() {
|
12646
|
-
var
|
12647
|
-
return !((w = (
|
12651
|
+
var M, w, I, K;
|
12652
|
+
return !((w = (M = t == null ? void 0 : t.value) == null ? void 0 : M.KgTable) != null && w.kgDisabled || isNil((K = (I = t == null ? void 0 : t.value) == null ? void 0 : I.KgTable) == null ? void 0 : K.kgDisabled) && e.kgDisabled || p.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
|
12648
12653
|
}
|
12649
12654
|
function T() {
|
12650
12655
|
return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
|
@@ -12666,13 +12671,13 @@ function _useColumns(e) {
|
|
12666
12671
|
"kg-var_nam": _,
|
12667
12672
|
draggable: !0
|
12668
12673
|
}),
|
12669
|
-
customCell: (
|
12670
|
-
var
|
12674
|
+
customCell: (M) => {
|
12675
|
+
var I;
|
12671
12676
|
const w = r.store.getVarSubmitField(r.formID, _);
|
12672
12677
|
return {
|
12673
12678
|
"kg-frm_id": r.formID,
|
12674
12679
|
"kg-var_nam": _,
|
12675
|
-
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE &&
|
12680
|
+
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && M[n.id.value] === ((I = n.selectedRow.value) == null ? void 0 : I[n.id.value]) && (!!r.isCreating.value && (w == null ? void 0 : w.crt_flg) === 1 || !!r.isUpdating.value && (w == null ? void 0 : w.upt_flg) === 1 || !!r.isCopying.value && (w == null ? void 0 : w.cpy_flg) === 1 || !!r.isDeleting.value && (w == null ? void 0 : w.del_flg) === 1) ? "submitting" : ""
|
12676
12681
|
};
|
12677
12682
|
}
|
12678
12683
|
};
|
@@ -12850,13 +12855,13 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12850
12855
|
return (R = (Y = s == null ? void 0 : s.value) == null ? void 0 : Y.KgTable) == null ? void 0 : R.kgCheckboxDisabled;
|
12851
12856
|
if (!isNil(e.kgCheckboxDisabled))
|
12852
12857
|
return e.kgCheckboxDisabled;
|
12853
|
-
}), T = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), $ = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || O.total === 0),
|
12858
|
+
}), T = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), $ = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || O.total === 0), M = computed(() => {
|
12854
12859
|
var L;
|
12855
12860
|
return !!((L = n == null ? void 0 : n.KgTable) != null && L.expandedRowRender);
|
12856
12861
|
}), w = computed(() => {
|
12857
12862
|
var L;
|
12858
12863
|
return ((L = o.varGridConfig.value) == null ? void 0 : L.show_check_column_flg) === 1;
|
12859
|
-
}),
|
12864
|
+
}), I = computed(() => {
|
12860
12865
|
if (!!w.value)
|
12861
12866
|
return {
|
12862
12867
|
fixed: "left",
|
@@ -12873,7 +12878,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12873
12878
|
onSelect: (L) => q(L),
|
12874
12879
|
onChange: (L) => u.isMultiSelect.value && X(L)
|
12875
12880
|
};
|
12876
|
-
}),
|
12881
|
+
}), K = computed(() => {
|
12877
12882
|
var G;
|
12878
12883
|
let L = "kg-table";
|
12879
12884
|
return ((G = o.varGridConfig.value) == null ? void 0 : G.show_bottom_border_flg) === 1 && (L += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (L += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value) && (L += " kg-table--submitting"), L;
|
@@ -12900,7 +12905,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12900
12905
|
}, {
|
12901
12906
|
immediate: !0
|
12902
12907
|
}), watch(o.isCreating, (L, G) => {
|
12903
|
-
L === !0 ? F() : L === !1 && G === !0 &&
|
12908
|
+
L === !0 ? F() : L === !1 && G === !0 && N();
|
12904
12909
|
}), onUnmounted(() => {
|
12905
12910
|
u.store.dispose(o.formID);
|
12906
12911
|
});
|
@@ -12912,13 +12917,13 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12912
12917
|
u.store.setDatas(o.formID, [L, ...H.value]), u.store.setSelectedRows(o.formID, [L]);
|
12913
12918
|
}
|
12914
12919
|
}
|
12915
|
-
function
|
12920
|
+
function N() {
|
12916
12921
|
const L = H.value.find((G) => G[u.id.value] === KG_TABLE_TEMP_ID);
|
12917
12922
|
L && (u.store.setDatas(o.formID, without$1(H.value, L)), u.store.setSelectedRows(o.formID, []));
|
12918
12923
|
}
|
12919
12924
|
function B(L, G) {
|
12920
12925
|
var Y;
|
12921
|
-
if (!(!!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!
|
12926
|
+
if (!(!!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!I.value) {
|
12922
12927
|
if (!G) {
|
12923
12928
|
u.store.setSelectedRows(o.formID, []);
|
12924
12929
|
return;
|
@@ -13085,14 +13090,14 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13085
13090
|
fixed: "bottom"
|
13086
13091
|
}, {
|
13087
13092
|
default: () => [createVNode(TableSummary.Row, null, {
|
13088
|
-
default: () => [
|
13093
|
+
default: () => [M.value && createVNode(TableSummary.Cell, {
|
13089
13094
|
index: 0
|
13090
13095
|
}, null), w.value && createVNode(TableSummary.Cell, {
|
13091
|
-
index:
|
13096
|
+
index: M.value ? 1 : 0
|
13092
13097
|
}, null), y.value.map((G, Y) => {
|
13093
13098
|
const R = o.store.getVarGridDetail(o.formID, G.dataIndex);
|
13094
13099
|
let x = Y;
|
13095
|
-
return
|
13100
|
+
return M.value && w.value ? x += 2 : (M.value || w.value) && (x += 1), createVNode(TableSummary.Cell, {
|
13096
13101
|
index: x
|
13097
13102
|
}, {
|
13098
13103
|
default: () => {
|
@@ -13152,7 +13157,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13152
13157
|
return () => {
|
13153
13158
|
var L, G, Y;
|
13154
13159
|
return createVNode("div", {
|
13155
|
-
class:
|
13160
|
+
class: K.value,
|
13156
13161
|
"kg-frm_id": o.formID,
|
13157
13162
|
ref: b
|
13158
13163
|
}, [createVNode(Table, {
|
@@ -13171,7 +13176,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13171
13176
|
rowClassName: (G = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : G.kgRowClassName,
|
13172
13177
|
expandColumnWidth: 28,
|
13173
13178
|
expandedRowKeys: v.value,
|
13174
|
-
rowSelection:
|
13179
|
+
rowSelection: I.value,
|
13175
13180
|
customRow: (R) => ({
|
13176
13181
|
onClick: (x) => B(x, R)
|
13177
13182
|
}),
|
@@ -13293,6 +13298,11 @@ const useKgButtonStore = () => (store$3 || (store$3 = defineStore("KgButton", {
|
|
13293
13298
|
}
|
13294
13299
|
},
|
13295
13300
|
actions: {
|
13301
|
+
dispose(e) {
|
13302
|
+
if (!e)
|
13303
|
+
return KgLogger.error("formID \u4E3A\u7A7A."), null;
|
13304
|
+
this.clickListenersMap.delete(e), this.updateBeforeClickListenersMap.delete(e), this.deleteOkListenersMap.delete(e), this.otherOkListenersMap.delete(e), this.submitSaveListenersMap.delete(e), this.submitCancelListenersMap.delete(e);
|
13305
|
+
},
|
13296
13306
|
addEventListener(e, t, r) {
|
13297
13307
|
switch (t) {
|
13298
13308
|
case "click":
|
@@ -13434,8 +13444,8 @@ const KgButtonCreate = defineComponent({
|
|
13434
13444
|
attrs: a
|
13435
13445
|
}) {
|
13436
13446
|
const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
13437
|
-
var E, k, A, T, $,
|
13438
|
-
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((
|
13447
|
+
var E, k, A, T, $, M, w, I;
|
13448
|
+
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((M = ($ = o.selectedRows.value) == null ? void 0 : $.length) != null ? M : 0) > 1 || ((w = c.value) == null ? void 0 : w.permission_type) === 2 && !n.p((I = c.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13439
13449
|
}), d = computed(() => !!s.isCreatingRequesting.value);
|
13440
13450
|
async function g() {
|
13441
13451
|
e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
|
@@ -13803,7 +13813,7 @@ const KgButtonCreate = defineComponent({
|
|
13803
13813
|
g == null || g.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
13804
13814
|
const b = s.selectedRows.value;
|
13805
13815
|
try {
|
13806
|
-
const
|
13816
|
+
const M = await httpClient().request({
|
13807
13817
|
method: (E = (C = e.kgButton) == null ? void 0 : C.cmd_method) != null ? E : "POST",
|
13808
13818
|
url: d,
|
13809
13819
|
params: KgVarUtil.parseCommandParameter((A = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? A : ""),
|
@@ -13811,23 +13821,23 @@ const KgButtonCreate = defineComponent({
|
|
13811
13821
|
});
|
13812
13822
|
if (((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1) {
|
13813
13823
|
if ((($ = e.kgButton) == null ? void 0 : $.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
|
13814
|
-
datas:
|
13824
|
+
datas: I
|
13815
13825
|
}) => {
|
13816
|
-
const
|
13826
|
+
const K = I.value, P = intersectionWith$1(K, b != null ? b : [], (H, V) => (H == null ? void 0 : H[s.id.value]) === (V == null ? void 0 : V[s.id.value]));
|
13817
13827
|
return P.length > 0 && s.store.setSelectedRows(r.formID, P), !1;
|
13818
13828
|
}, !0), await n.store.emit(r.formID, "otherOk", {
|
13819
13829
|
button: e.kgButton,
|
13820
|
-
data:
|
13830
|
+
data: M
|
13821
13831
|
}))
|
13822
13832
|
return;
|
13823
13833
|
a.search(!0);
|
13824
13834
|
} else if (await n.store.emit(r.formID, "otherOk", {
|
13825
13835
|
button: e.kgButton,
|
13826
|
-
data:
|
13836
|
+
data: M
|
13827
13837
|
}))
|
13828
13838
|
return;
|
13829
|
-
} catch (
|
13830
|
-
console.error(
|
13839
|
+
} catch (M) {
|
13840
|
+
console.error(M);
|
13831
13841
|
} finally {
|
13832
13842
|
r.store.setIsOtherRequesting(r.formID, !1), g == null || g.hideLoading();
|
13833
13843
|
}
|
@@ -13927,8 +13937,8 @@ const KgButtonCreate = defineComponent({
|
|
13927
13937
|
}
|
13928
13938
|
});
|
13929
13939
|
const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
13930
|
-
var E, k, A, T, $,
|
13931
|
-
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || i.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((
|
13940
|
+
var E, k, A, T, $, M, w, I;
|
13941
|
+
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || i.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((M = ($ = i.selectedRows.value) == null ? void 0 : $.length) != null ? M : 0) > 1 || ((w = c.value) == null ? void 0 : w.permission_type) === 2 && !n.p((I = c.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13932
13942
|
}), d = computed(() => !!s.isUpdatingRequesting.value);
|
13933
13943
|
async function g() {
|
13934
13944
|
e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
|
@@ -14132,7 +14142,9 @@ const getProps$e = () => ({
|
|
14132
14142
|
})
|
14133
14143
|
});
|
14134
14144
|
}
|
14135
|
-
return () =>
|
14145
|
+
return onUnmounted(() => {
|
14146
|
+
s.store.dispose(n.formID);
|
14147
|
+
}), () => createVNode("div", {
|
14136
14148
|
class: "kg-button",
|
14137
14149
|
"kg-frm_id": n.formID
|
14138
14150
|
}, [createVNode(Spin, {
|
@@ -14165,11 +14177,11 @@ const FORM_ID__VAR_PROFILE_CONFIG = "kg-search.VarProfileConfig", getProps$d = (
|
|
14165
14177
|
let store$2 = null;
|
14166
14178
|
const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
|
14167
14179
|
state: () => ({
|
14168
|
-
isReadyMap: /* @__PURE__ */ new Map(),
|
14169
|
-
modelMap: /* @__PURE__ */ new Map(),
|
14170
14180
|
onSearchListenersMap: /* @__PURE__ */ new Map(),
|
14171
14181
|
onResetListenersMap: /* @__PURE__ */ new Map(),
|
14172
14182
|
onReadyListenersMap: /* @__PURE__ */ new Map(),
|
14183
|
+
isReadyMap: /* @__PURE__ */ new Map(),
|
14184
|
+
modelMap: /* @__PURE__ */ new Map(),
|
14173
14185
|
searchFnMap: /* @__PURE__ */ new Map(),
|
14174
14186
|
resetFnMap: /* @__PURE__ */ new Map()
|
14175
14187
|
}),
|
@@ -14215,7 +14227,7 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
|
|
14215
14227
|
dispose(e) {
|
14216
14228
|
if (!e)
|
14217
14229
|
return KgLogger.error("formID \u4E3A\u7A7A."), null;
|
14218
|
-
this.isReadyMap.delete(e), this.modelMap.delete(e), this.searchFnMap.delete(e), this.resetFnMap.delete(e);
|
14230
|
+
this.onSearchListenersMap.delete(e), this.onResetListenersMap.delete(e), this.onReadyListenersMap.delete(e), this.isReadyMap.delete(e), this.modelMap.delete(e), this.searchFnMap.delete(e), this.resetFnMap.delete(e);
|
14219
14231
|
},
|
14220
14232
|
addEventListener(e, t, r) {
|
14221
14233
|
switch (t) {
|
@@ -14651,24 +14663,24 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
14651
14663
|
if (C != null && C.id)
|
14652
14664
|
try {
|
14653
14665
|
s.store.setIsLoading(r.formID, !0);
|
14654
|
-
const
|
14666
|
+
const M = await QueryByID({
|
14655
14667
|
params: {
|
14656
14668
|
id: C.id
|
14657
14669
|
}
|
14658
14670
|
});
|
14659
|
-
o.value = o.value.map((
|
14671
|
+
o.value = o.value.map((I) => {
|
14660
14672
|
var P;
|
14661
|
-
const
|
14662
|
-
return
|
14663
|
-
...
|
14664
|
-
...
|
14665
|
-
id:
|
14666
|
-
} :
|
14673
|
+
const K = (P = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : P.find((H) => H.var_nam === I.var_nam);
|
14674
|
+
return K ? {
|
14675
|
+
...I,
|
14676
|
+
...K,
|
14677
|
+
id: I.id
|
14678
|
+
} : I;
|
14667
14679
|
});
|
14668
|
-
const w = (T = (A =
|
14669
|
-
l.value = o.value.filter((
|
14670
|
-
} catch (
|
14671
|
-
throw
|
14680
|
+
const w = (T = (A = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : A.map((I) => I.var_nam)) != null ? T : [];
|
14681
|
+
l.value = o.value.filter((I) => w.includes(I.var_nam)).map((I) => I.id);
|
14682
|
+
} catch (M) {
|
14683
|
+
throw M;
|
14672
14684
|
} finally {
|
14673
14685
|
s.store.setIsLoading(r.formID, !1);
|
14674
14686
|
}
|
@@ -14735,8 +14747,8 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
14735
14747
|
onItemSelect: k
|
14736
14748
|
}) => {
|
14737
14749
|
const A = _.sort((T, $) => {
|
14738
|
-
var
|
14739
|
-
return ((
|
14750
|
+
var M, w;
|
14751
|
+
return ((M = T.srtseq) != null ? M : 0) - ((w = $.srtseq) != null ? w : 0);
|
14740
14752
|
});
|
14741
14753
|
return c.value = A, createVNode(Table, {
|
14742
14754
|
pagination: !1,
|
@@ -14751,7 +14763,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
14751
14763
|
dataSource: A,
|
14752
14764
|
customRow: (T) => {
|
14753
14765
|
let $ = {
|
14754
|
-
onClick: (
|
14766
|
+
onClick: (M) => y(M, T, p, b)
|
14755
14767
|
};
|
14756
14768
|
return p === "right" && ($["kg-host-frm_id"] = i.formID, $["kg-var_nam"] = T.var_nam), $;
|
14757
14769
|
},
|
@@ -14997,23 +15009,23 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14997
15009
|
});
|
14998
15010
|
_useLayoutHeaderResizeObserver();
|
14999
15011
|
const p = _useFormModel(v, y), _ = computed(() => {
|
15000
|
-
var
|
15001
|
-
if (!isNil((B = (
|
15012
|
+
var N, B, W, X;
|
15013
|
+
if (!isNil((B = (N = r == null ? void 0 : r.value) == null ? void 0 : N.KgSearch) == null ? void 0 : B.kgDisabled))
|
15002
15014
|
return (X = (W = r == null ? void 0 : r.value) == null ? void 0 : W.KgSearch) == null ? void 0 : X.kgDisabled;
|
15003
15015
|
if (!isNil(e.kgDisabled))
|
15004
15016
|
return e.kgDisabled;
|
15005
15017
|
}), b = computed(() => {
|
15006
|
-
var
|
15007
|
-
return !!(_.value || i.isRetrieving.value || ((
|
15018
|
+
var N, B;
|
15019
|
+
return !!(_.value || i.isRetrieving.value || ((N = n.varButtonSearch.value) == null ? void 0 : N.permission_type) === 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
15008
15020
|
}), C = computed(() => !!(_.value || i.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), E = computed(() => !!(_.value || i.isRetrieving.value)), k = ref({
|
15009
15021
|
visible: !1
|
15010
15022
|
}), A = computed(() => y.value.kgHeight === g.value), T = computed(() => {
|
15011
|
-
var
|
15012
|
-
if (n.t((
|
15023
|
+
var N, B, W;
|
15024
|
+
if (n.t((N = n.varButtonSearch.value) == null ? void 0 : N.var_nam).value !== ((B = n.varButtonSearch.value) == null ? void 0 : B.var_nam))
|
15013
15025
|
return n.t((W = n.varButtonSearch.value) == null ? void 0 : W.var_nam).value;
|
15014
15026
|
}), $ = computed(() => {
|
15015
|
-
var
|
15016
|
-
switch ((
|
15027
|
+
var N;
|
15028
|
+
switch ((N = n.varButtonSearch.value) == null ? void 0 : N.primary_flg) {
|
15017
15029
|
case 1:
|
15018
15030
|
return !0;
|
15019
15031
|
case 0:
|
@@ -15021,50 +15033,50 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15021
15033
|
default:
|
15022
15034
|
return !0;
|
15023
15035
|
}
|
15024
|
-
}),
|
15025
|
-
let
|
15026
|
-
return o.value && (
|
15036
|
+
}), M = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), w = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), I = computed(() => {
|
15037
|
+
let N = "kg-search";
|
15038
|
+
return o.value && (N += " kg-search--visible"), c.value && (N += " kg-search--teleport"), N;
|
15027
15039
|
});
|
15028
15040
|
onUnmounted(() => {
|
15029
15041
|
s.store.dispose(n.formID);
|
15030
15042
|
});
|
15031
|
-
async function N
|
15043
|
+
async function K(N = !1) {
|
15032
15044
|
if (b.value) {
|
15033
15045
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u91CD\u7F6E\u6309\u94AE\u7981\u7528.`);
|
15034
15046
|
return;
|
15035
15047
|
}
|
15036
15048
|
o.value ? v.value && v.value.validate().then(async () => {
|
15037
15049
|
await s.store.emit(n.formID, "search", {
|
15038
|
-
resetPageIndex:
|
15050
|
+
resetPageIndex: N
|
15039
15051
|
});
|
15040
15052
|
}).catch((B) => {
|
15041
15053
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
15042
15054
|
e: B
|
15043
15055
|
});
|
15044
15056
|
}) : await s.store.emit(n.formID, "search", {
|
15045
|
-
resetPageIndex:
|
15057
|
+
resetPageIndex: N
|
15046
15058
|
});
|
15047
15059
|
}
|
15048
|
-
s.store.setSearchFn(n.formID,
|
15060
|
+
s.store.setSearchFn(n.formID, K);
|
15049
15061
|
async function P() {
|
15050
15062
|
p.initFormModel(), o.value ? v.value && v.value.validate().then(async () => {
|
15051
15063
|
await s.store.emit(n.formID, "reset", {});
|
15052
|
-
}).catch((
|
15064
|
+
}).catch((N) => {
|
15053
15065
|
KgLogger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
15054
|
-
e:
|
15066
|
+
e: N
|
15055
15067
|
});
|
15056
15068
|
}) : await s.store.emit(n.formID, "reset", {});
|
15057
15069
|
}
|
15058
15070
|
s.store.setResetFn(n.formID, P);
|
15059
15071
|
function H() {
|
15060
|
-
return
|
15072
|
+
return K(!0), Promise.resolve(!0);
|
15061
15073
|
}
|
15062
15074
|
function V() {
|
15063
|
-
var
|
15075
|
+
var N;
|
15064
15076
|
return createVNode("div", {
|
15065
15077
|
class: "title",
|
15066
15078
|
onClick: F
|
15067
|
-
}, [((
|
15079
|
+
}, [((N = t == null ? void 0 : t.KgSearch) == null ? void 0 : N.left) && createVNode("div", {
|
15068
15080
|
class: "kg-search-title-left",
|
15069
15081
|
onClick: (B) => {
|
15070
15082
|
B.stopPropagation(), B.preventDefault();
|
@@ -15072,8 +15084,8 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15072
15084
|
}, [t.KgSearch.left()]), A.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
|
15073
15085
|
}
|
15074
15086
|
function O() {
|
15075
|
-
var
|
15076
|
-
return ((W = (B = (
|
15087
|
+
var N, B, W, X;
|
15088
|
+
return ((W = (B = (N = n.varProfileMasters) == null ? void 0 : N.value) == null ? void 0 : B.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
15077
15089
|
value: (X = n.currentVarProfileMasterID.value) != null ? X : void 0,
|
15078
15090
|
"onUpdate:value": (q) => n.store.setCurrentVarProfileMasterID(n.formID, q),
|
15079
15091
|
disabled: C.value,
|
@@ -15105,8 +15117,8 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15105
15117
|
}, null)]);
|
15106
15118
|
}
|
15107
15119
|
function D() {
|
15108
|
-
var
|
15109
|
-
return createVNode(Fragment, null, [O(), !(((
|
15120
|
+
var N, B, W, X, q;
|
15121
|
+
return createVNode(Fragment, null, [O(), !(((N = n.varButtonSearch.value) == null ? void 0 : N.permission_type) !== 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
|
15110
15122
|
type: "primary",
|
15111
15123
|
ghost: !b.value,
|
15112
15124
|
disabled: b.value,
|
@@ -15130,10 +15142,10 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15130
15142
|
spinning: w.value
|
15131
15143
|
}, {
|
15132
15144
|
default: () => {
|
15133
|
-
var
|
15145
|
+
var N;
|
15134
15146
|
return [createVNode(KgForm, {
|
15135
15147
|
ref: v,
|
15136
|
-
model: (
|
15148
|
+
model: (N = s.model.value) != null ? N : {}
|
15137
15149
|
}, {
|
15138
15150
|
default: () => [createVNode(Row, {
|
15139
15151
|
gutter: 6
|
@@ -15144,7 +15156,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15144
15156
|
key: W.var_nam,
|
15145
15157
|
kgVarName: W.var_nam,
|
15146
15158
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
15147
|
-
onKgSubmit: () =>
|
15159
|
+
onKgSubmit: () => K(!0)
|
15148
15160
|
}, null))];
|
15149
15161
|
}
|
15150
15162
|
})]
|
@@ -15157,11 +15169,11 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15157
15169
|
}
|
15158
15170
|
return () => createVNode(KgResizable, {
|
15159
15171
|
kgHeight: y.value.kgHeight,
|
15160
|
-
"onUpdate:kgHeight": (
|
15172
|
+
"onUpdate:kgHeight": (N) => y.value.kgHeight = N,
|
15161
15173
|
kgMinHeight: g.value,
|
15162
15174
|
kgMaxHeight: d.value,
|
15163
15175
|
kgDisabled: !l.value,
|
15164
|
-
kgClass:
|
15176
|
+
kgClass: I.value,
|
15165
15177
|
"kg-frm_id": n.formID
|
15166
15178
|
}, {
|
15167
15179
|
default: () => [o.value && createVNode("div", {
|
@@ -15175,7 +15187,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15175
15187
|
default: () => [createVNode("div", {
|
15176
15188
|
class: "ant-collapse-header"
|
15177
15189
|
}, [createVNode(Spin, {
|
15178
|
-
spinning:
|
15190
|
+
spinning: M.value
|
15179
15191
|
}, {
|
15180
15192
|
default: () => [V(), createVNode("div", {
|
15181
15193
|
class: "ant-collapse-extra"
|
@@ -15689,8 +15701,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15689
15701
|
});
|
15690
15702
|
if (u.value = null, c.value = D != null ? D : [], P) {
|
15691
15703
|
const U = c.value.find((F) => {
|
15692
|
-
var
|
15693
|
-
return F.id === ((
|
15704
|
+
var N;
|
15705
|
+
return F.id === ((N = a.getSelectedVarCatalog) == null ? void 0 : N.id);
|
15694
15706
|
});
|
15695
15707
|
a.setSelectedVarCatalog(U != null ? U : null), d.value = U != null && U.id ? [U.id] : [];
|
15696
15708
|
} else
|
@@ -15781,14 +15793,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15781
15793
|
}
|
15782
15794
|
}) : (a.setSelectedVarCatalog(unref(P)), d.value = [P.id]));
|
15783
15795
|
}
|
15784
|
-
function
|
15796
|
+
function M() {
|
15785
15797
|
v.value.visible = !0;
|
15786
15798
|
}
|
15787
15799
|
function w() {
|
15788
15800
|
return createVNode("div", {
|
15789
15801
|
class: "buttons"
|
15790
15802
|
}, [createVNode(Button, {
|
15791
|
-
onClick:
|
15803
|
+
onClick: M,
|
15792
15804
|
disabled: y.value,
|
15793
15805
|
type: "primary"
|
15794
15806
|
}, {
|
@@ -15803,7 +15815,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15803
15815
|
default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
|
15804
15816
|
})]);
|
15805
15817
|
}
|
15806
|
-
function
|
15818
|
+
function I() {
|
15807
15819
|
let P, H;
|
15808
15820
|
return createVNode("div", {
|
15809
15821
|
class: "form"
|
@@ -15843,7 +15855,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15843
15855
|
default: () => [H]
|
15844
15856
|
})])]);
|
15845
15857
|
}
|
15846
|
-
function
|
15858
|
+
function K(P) {
|
15847
15859
|
var V;
|
15848
15860
|
let H = "";
|
15849
15861
|
return P.id || (H += " ant-table-row-create"), P.id === ((V = a.getSelectedVarCatalog) == null ? void 0 : V.id) && (H += " ant-table-row-selected "), H;
|
@@ -15862,12 +15874,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15862
15874
|
rowKey: "id",
|
15863
15875
|
dataSource: c.value,
|
15864
15876
|
loading: n.value,
|
15865
|
-
rowClassName:
|
15877
|
+
rowClassName: K,
|
15866
15878
|
rowSelection: g.value,
|
15867
15879
|
customRow: (P) => ({
|
15868
15880
|
onClick: () => $(P)
|
15869
15881
|
})
|
15870
|
-
}, null),
|
15882
|
+
}, null), I(), createVNode(KgVarConfigModalVarCreateModal, {
|
15871
15883
|
visible: v.value.visible,
|
15872
15884
|
"onUpdate:visible": (P) => v.value.visible = P,
|
15873
15885
|
onKgOk: k
|
@@ -16193,18 +16205,18 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16193
16205
|
customRender: ({
|
16194
16206
|
record: k
|
16195
16207
|
}) => {
|
16196
|
-
var T, $,
|
16208
|
+
var T, $, M;
|
16197
16209
|
const A = k;
|
16198
16210
|
return createVNode("div", null, [createVNode("div", null, [(T = A.whDsc) != null ? T : " ", createTextVNode(" - "), ($ = A.whId) != null ? $ : " "]), createVNode("div", {
|
16199
16211
|
class: "address"
|
16200
|
-
}, [(
|
16212
|
+
}, [(M = A.adrId) != null ? M : " "])]);
|
16201
16213
|
}
|
16202
16214
|
}]), u = ref([]), d = computed(() => {
|
16203
16215
|
var A;
|
16204
16216
|
const k = (A = s.value) == null ? void 0 : A.toUpperCase();
|
16205
16217
|
return u.value.filter((T) => {
|
16206
|
-
var $,
|
16207
|
-
return ((
|
16218
|
+
var $, M, w, I, K, P;
|
16219
|
+
return ((M = ($ = T.whDsc) == null ? void 0 : $.toUpperCase()) == null ? void 0 : M.includes(k)) || ((I = (w = T.whId) == null ? void 0 : w.toUpperCase()) == null ? void 0 : I.includes(k)) || ((P = (K = T.adrId) == null ? void 0 : K.toUpperCase()) == null ? void 0 : P.includes(k));
|
16208
16220
|
});
|
16209
16221
|
}), g = computed(() => {
|
16210
16222
|
var k, A;
|