@kengic/vue 0.10.2-beta.0 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +945 -896
- package/dist/src/src/components/KgForm/index.hooks.d.ts +7 -1
- package/dist/src/src/components/KgForm/index.store.d.ts +17 -7
- package/dist/src/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +2 -2
- package/dist/src/src/components/KgSubmit/index.hooks.d.ts +7 -1
- package/dist/src/src/components/KgSubmit/index.store.d.ts +14 -3
- package/dist/src/src/components/KgVar/index.store.d.ts +6 -2
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -3318,8 +3318,8 @@ function sendQuery(e, t, r, a) {
|
|
3318
3318
|
if (e.random) {
|
3319
3319
|
let k = e.resources.slice(0);
|
3320
3320
|
for (l = []; k.length > 1; ) {
|
3321
|
-
const
|
3322
|
-
l.push(k[
|
3321
|
+
const V = Math.floor(Math.random() * k.length);
|
3322
|
+
l.push(k[V]), k = k.slice(0, V).concat(k.slice(V + 1));
|
3323
3323
|
}
|
3324
3324
|
l = l.concat(k);
|
3325
3325
|
} else
|
@@ -3335,8 +3335,8 @@ function sendQuery(e, t, r, a) {
|
|
3335
3335
|
k.status === "pending" && (k.status = "aborted");
|
3336
3336
|
}), m = [];
|
3337
3337
|
}
|
3338
|
-
function g(k,
|
3339
|
-
|
3338
|
+
function g(k, V) {
|
3339
|
+
V && (v = []), typeof k == "function" && v.push(k);
|
3340
3340
|
}
|
3341
3341
|
function b() {
|
3342
3342
|
return {
|
@@ -3359,9 +3359,9 @@ function sendQuery(e, t, r, a) {
|
|
3359
3359
|
k.status === "pending" && (k.status = "aborted");
|
3360
3360
|
}), m = [];
|
3361
3361
|
}
|
3362
|
-
function T(k,
|
3363
|
-
const I =
|
3364
|
-
switch (m = m.filter((
|
3362
|
+
function T(k, V, w) {
|
3363
|
+
const I = V !== "success";
|
3364
|
+
switch (m = m.filter((A) => A !== k), i) {
|
3365
3365
|
case "pending":
|
3366
3366
|
break;
|
3367
3367
|
case "failed":
|
@@ -3371,23 +3371,23 @@ function sendQuery(e, t, r, a) {
|
|
3371
3371
|
default:
|
3372
3372
|
return;
|
3373
3373
|
}
|
3374
|
-
if (
|
3375
|
-
u =
|
3374
|
+
if (V === "abort") {
|
3375
|
+
u = w, E();
|
3376
3376
|
return;
|
3377
3377
|
}
|
3378
3378
|
if (I) {
|
3379
|
-
u =
|
3379
|
+
u = w, m.length || (l.length ? M() : E());
|
3380
3380
|
return;
|
3381
3381
|
}
|
3382
3382
|
if (y(), C(), !e.random) {
|
3383
|
-
const
|
3384
|
-
|
3383
|
+
const A = e.resources.indexOf(k.resource);
|
3384
|
+
A !== -1 && A !== e.index && (e.index = A);
|
3385
3385
|
}
|
3386
|
-
i = "completed", v.forEach((
|
3387
|
-
|
3386
|
+
i = "completed", v.forEach((A) => {
|
3387
|
+
A(w);
|
3388
3388
|
});
|
3389
3389
|
}
|
3390
|
-
function
|
3390
|
+
function M() {
|
3391
3391
|
if (i !== "pending")
|
3392
3392
|
return;
|
3393
3393
|
y();
|
@@ -3402,16 +3402,16 @@ function sendQuery(e, t, r, a) {
|
|
3402
3402
|
E();
|
3403
3403
|
return;
|
3404
3404
|
}
|
3405
|
-
const
|
3405
|
+
const V = {
|
3406
3406
|
status: "pending",
|
3407
3407
|
resource: k,
|
3408
|
-
callback: (
|
3409
|
-
T(
|
3408
|
+
callback: (w, I) => {
|
3409
|
+
T(V, w, I);
|
3410
3410
|
}
|
3411
3411
|
};
|
3412
|
-
m.push(
|
3412
|
+
m.push(V), c++, d = setTimeout(M, e.rotate), r(k, t, V.callback);
|
3413
3413
|
}
|
3414
|
-
return setTimeout(
|
3414
|
+
return setTimeout(M), b;
|
3415
3415
|
}
|
3416
3416
|
function initRedundancy(e) {
|
3417
3417
|
const t = {
|
@@ -3929,7 +3929,7 @@ const emptyIcon = {
|
|
3929
3929
|
...t.data
|
3930
3930
|
}, r);
|
3931
3931
|
}
|
3932
|
-
}), name = "@kengic/vue", version = "0.10.2
|
3932
|
+
}), name = "@kengic/vue", version = "0.10.2";
|
3933
3933
|
class KgDomUtil {
|
3934
3934
|
static isNotClickable(t, r = []) {
|
3935
3935
|
return !t || [...r, "kg-not-clickable"].some((a) => t.classList.contains(a)) ? !0 : t.parentElement && t.parentElement.tagName !== "BODY" ? KgDomUtil.isNotClickable(t.parentElement) : !1;
|
@@ -3940,62 +3940,62 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3940
3940
|
(function(r, a) {
|
3941
3941
|
e.exports = a();
|
3942
3942
|
})(commonjsGlobal, function() {
|
3943
|
-
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", y = "date", p = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, E = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(
|
3944
|
-
var
|
3945
|
-
return "[" +
|
3946
|
-
} }, C = function(
|
3947
|
-
var G = String(
|
3948
|
-
return !G || G.length >=
|
3949
|
-
}, T = { s: C, z: function(
|
3950
|
-
var
|
3951
|
-
return (
|
3952
|
-
}, m: function O
|
3953
|
-
if (
|
3954
|
-
return -
|
3955
|
-
var G = 12 * (
|
3956
|
-
return +(-(G + (
|
3957
|
-
}, a: function(
|
3958
|
-
return
|
3959
|
-
}, p: function(
|
3960
|
-
return { M: d, y: v, w: u, d: c, D: y, h: i, m: o, s: l, ms: s, Q: m }[
|
3961
|
-
}, u: function(
|
3962
|
-
return
|
3963
|
-
} },
|
3964
|
-
k[
|
3965
|
-
var
|
3966
|
-
return
|
3967
|
-
}, I = function O
|
3943
|
+
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", y = "date", p = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, E = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(D) {
|
3944
|
+
var O = ["th", "st", "nd", "rd"], R = D % 100;
|
3945
|
+
return "[" + D + (O[(R - 20) % 10] || O[R] || O[0]) + "]";
|
3946
|
+
} }, C = function(D, O, R) {
|
3947
|
+
var G = String(D);
|
3948
|
+
return !G || G.length >= O ? D : "" + Array(O + 1 - G.length).join(R) + D;
|
3949
|
+
}, T = { s: C, z: function(D) {
|
3950
|
+
var O = -D.utcOffset(), R = Math.abs(O), G = Math.floor(R / 60), F = R % 60;
|
3951
|
+
return (O <= 0 ? "+" : "-") + C(G, 2, "0") + ":" + C(F, 2, "0");
|
3952
|
+
}, m: function D(O, R) {
|
3953
|
+
if (O.date() < R.date())
|
3954
|
+
return -D(R, O);
|
3955
|
+
var G = 12 * (R.year() - O.year()) + (R.month() - O.month()), F = O.clone().add(G, d), K = R - F < 0, x = O.clone().add(G + (K ? -1 : 1), d);
|
3956
|
+
return +(-(G + (R - F) / (K ? F - x : x - F)) || 0);
|
3957
|
+
}, a: function(D) {
|
3958
|
+
return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
|
3959
|
+
}, p: function(D) {
|
3960
|
+
return { M: d, y: v, w: u, d: c, D: y, h: i, m: o, s: l, ms: s, Q: m }[D] || String(D || "").toLowerCase().replace(/s$/, "");
|
3961
|
+
}, u: function(D) {
|
3962
|
+
return D === void 0;
|
3963
|
+
} }, M = "en", k = {};
|
3964
|
+
k[M] = E;
|
3965
|
+
var V = "$isDayjsObject", w = function(D) {
|
3966
|
+
return D instanceof N || !(!D || !D[V]);
|
3967
|
+
}, I = function D(O, R, G) {
|
3968
3968
|
var F;
|
3969
|
-
if (!
|
3970
|
-
return
|
3971
|
-
if (typeof
|
3972
|
-
var
|
3973
|
-
k[
|
3974
|
-
var
|
3975
|
-
if (!F &&
|
3976
|
-
return
|
3969
|
+
if (!O)
|
3970
|
+
return M;
|
3971
|
+
if (typeof O == "string") {
|
3972
|
+
var K = O.toLowerCase();
|
3973
|
+
k[K] && (F = K), R && (k[K] = R, F = K);
|
3974
|
+
var x = O.split("-");
|
3975
|
+
if (!F && x.length > 1)
|
3976
|
+
return D(x[0]);
|
3977
3977
|
} else {
|
3978
|
-
var
|
3979
|
-
k[
|
3978
|
+
var W = O.name;
|
3979
|
+
k[W] = O, F = W;
|
3980
3980
|
}
|
3981
|
-
return !G && F && (
|
3982
|
-
},
|
3983
|
-
if (D
|
3984
|
-
return
|
3985
|
-
var
|
3986
|
-
return
|
3981
|
+
return !G && F && (M = F), F || !G && M;
|
3982
|
+
}, A = function(D, O) {
|
3983
|
+
if (w(D))
|
3984
|
+
return D.clone();
|
3985
|
+
var R = typeof O == "object" ? O : {};
|
3986
|
+
return R.date = D, R.args = arguments, new N(R);
|
3987
3987
|
}, P = T;
|
3988
|
-
P.l = I, P.i =
|
3989
|
-
return
|
3988
|
+
P.l = I, P.i = w, P.w = function(D, O) {
|
3989
|
+
return A(D, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
3990
3990
|
};
|
3991
3991
|
var N = function() {
|
3992
|
-
function
|
3993
|
-
this.$L = I(
|
3992
|
+
function D(R) {
|
3993
|
+
this.$L = I(R.locale, null, !0), this.parse(R), this.$x = this.$x || R.x || {}, this[V] = !0;
|
3994
3994
|
}
|
3995
|
-
var
|
3996
|
-
return
|
3995
|
+
var O = D.prototype;
|
3996
|
+
return O.parse = function(R) {
|
3997
3997
|
this.$d = function(G) {
|
3998
|
-
var F = G.date,
|
3998
|
+
var F = G.date, K = G.utc;
|
3999
3999
|
if (F === null)
|
4000
4000
|
return new Date(NaN);
|
4001
4001
|
if (P.u(F))
|
@@ -4003,107 +4003,107 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4003
4003
|
if (F instanceof Date)
|
4004
4004
|
return new Date(F);
|
4005
4005
|
if (typeof F == "string" && !/Z$/i.test(F)) {
|
4006
|
-
var
|
4007
|
-
if (
|
4008
|
-
var
|
4009
|
-
return
|
4006
|
+
var x = F.match(g);
|
4007
|
+
if (x) {
|
4008
|
+
var W = x[2] - 1 || 0, X = (x[7] || "0").substring(0, 3);
|
4009
|
+
return K ? new Date(Date.UTC(x[1], W, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, X)) : new Date(x[1], W, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, X);
|
4010
4010
|
}
|
4011
4011
|
}
|
4012
4012
|
return new Date(F);
|
4013
|
-
}(
|
4014
|
-
},
|
4015
|
-
var
|
4016
|
-
this.$y =
|
4017
|
-
},
|
4013
|
+
}(R), this.init();
|
4014
|
+
}, O.init = function() {
|
4015
|
+
var R = this.$d;
|
4016
|
+
this.$y = R.getFullYear(), this.$M = R.getMonth(), this.$D = R.getDate(), this.$W = R.getDay(), this.$H = R.getHours(), this.$m = R.getMinutes(), this.$s = R.getSeconds(), this.$ms = R.getMilliseconds();
|
4017
|
+
}, O.$utils = function() {
|
4018
4018
|
return P;
|
4019
|
-
},
|
4019
|
+
}, O.isValid = function() {
|
4020
4020
|
return this.$d.toString() !== p;
|
4021
|
-
},
|
4022
|
-
var F =
|
4021
|
+
}, O.isSame = function(R, G) {
|
4022
|
+
var F = A(R);
|
4023
4023
|
return this.startOf(G) <= F && F <= this.endOf(G);
|
4024
|
-
},
|
4025
|
-
return
|
4026
|
-
},
|
4027
|
-
return this.endOf(G) <
|
4028
|
-
},
|
4029
|
-
return P.u(
|
4030
|
-
},
|
4024
|
+
}, O.isAfter = function(R, G) {
|
4025
|
+
return A(R) < this.startOf(G);
|
4026
|
+
}, O.isBefore = function(R, G) {
|
4027
|
+
return this.endOf(G) < A(R);
|
4028
|
+
}, O.$g = function(R, G, F) {
|
4029
|
+
return P.u(R) ? this[G] : this.set(F, R);
|
4030
|
+
}, O.unix = function() {
|
4031
4031
|
return Math.floor(this.valueOf() / 1e3);
|
4032
|
-
},
|
4032
|
+
}, O.valueOf = function() {
|
4033
4033
|
return this.$d.getTime();
|
4034
|
-
},
|
4035
|
-
var F = this,
|
4034
|
+
}, O.startOf = function(R, G) {
|
4035
|
+
var F = this, K = !!P.u(G) || G, x = P.p(R), W = function(ce, ne) {
|
4036
4036
|
var le = P.w(F.$u ? Date.UTC(F.$y, ne, ce) : new Date(F.$y, ne, ce), F);
|
4037
|
-
return
|
4038
|
-
},
|
4039
|
-
return P.w(F.toDate()[ce].apply(F.toDate("s"), (
|
4040
|
-
}, z = this.$W,
|
4041
|
-
switch (
|
4037
|
+
return K ? le : le.endOf(c);
|
4038
|
+
}, X = function(ce, ne) {
|
4039
|
+
return P.w(F.toDate()[ce].apply(F.toDate("s"), (K ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), F);
|
4040
|
+
}, z = this.$W, ee = this.$M, re = this.$D, ie = "set" + (this.$u ? "UTC" : "");
|
4041
|
+
switch (x) {
|
4042
4042
|
case v:
|
4043
|
-
return
|
4043
|
+
return K ? W(1, 0) : W(31, 11);
|
4044
4044
|
case d:
|
4045
|
-
return
|
4045
|
+
return K ? W(1, ee) : W(0, ee + 1);
|
4046
4046
|
case u:
|
4047
4047
|
var se = this.$locale().weekStart || 0, ge = (z < se ? z + 7 : z) - se;
|
4048
|
-
return
|
4048
|
+
return W(K ? re - ge : re + (6 - ge), ee);
|
4049
4049
|
case c:
|
4050
4050
|
case y:
|
4051
|
-
return
|
4051
|
+
return X(ie + "Hours", 0);
|
4052
4052
|
case i:
|
4053
|
-
return
|
4053
|
+
return X(ie + "Minutes", 1);
|
4054
4054
|
case o:
|
4055
|
-
return
|
4055
|
+
return X(ie + "Seconds", 2);
|
4056
4056
|
case l:
|
4057
|
-
return
|
4057
|
+
return X(ie + "Milliseconds", 3);
|
4058
4058
|
default:
|
4059
4059
|
return this.clone();
|
4060
4060
|
}
|
4061
|
-
},
|
4062
|
-
return this.startOf(
|
4063
|
-
},
|
4064
|
-
var F,
|
4065
|
-
if (
|
4061
|
+
}, O.endOf = function(R) {
|
4062
|
+
return this.startOf(R, !1);
|
4063
|
+
}, O.$set = function(R, G) {
|
4064
|
+
var F, K = P.p(R), x = "set" + (this.$u ? "UTC" : ""), W = (F = {}, F[c] = x + "Date", F[y] = x + "Date", F[d] = x + "Month", F[v] = x + "FullYear", F[i] = x + "Hours", F[o] = x + "Minutes", F[l] = x + "Seconds", F[s] = x + "Milliseconds", F)[K], X = K === c ? this.$D + (G - this.$W) : G;
|
4065
|
+
if (K === d || K === v) {
|
4066
4066
|
var z = this.clone().set(y, 1);
|
4067
|
-
z.$d[
|
4067
|
+
z.$d[W](X), z.init(), this.$d = z.set(y, Math.min(this.$D, z.daysInMonth())).$d;
|
4068
4068
|
} else
|
4069
|
-
|
4069
|
+
W && this.$d[W](X);
|
4070
4070
|
return this.init(), this;
|
4071
|
-
},
|
4072
|
-
return this.clone().$set(
|
4073
|
-
},
|
4074
|
-
return this[P.p(
|
4075
|
-
},
|
4076
|
-
var F,
|
4077
|
-
|
4078
|
-
var
|
4079
|
-
var re =
|
4080
|
-
return P.w(re.date(re.date() + Math.round(
|
4071
|
+
}, O.set = function(R, G) {
|
4072
|
+
return this.clone().$set(R, G);
|
4073
|
+
}, O.get = function(R) {
|
4074
|
+
return this[P.p(R)]();
|
4075
|
+
}, O.add = function(R, G) {
|
4076
|
+
var F, K = this;
|
4077
|
+
R = Number(R);
|
4078
|
+
var x = P.p(G), W = function(ee) {
|
4079
|
+
var re = A(K);
|
4080
|
+
return P.w(re.date(re.date() + Math.round(ee * R)), K);
|
4081
4081
|
};
|
4082
|
-
if (
|
4083
|
-
return this.set(d, this.$M +
|
4084
|
-
if (
|
4085
|
-
return this.set(v, this.$y +
|
4086
|
-
if (
|
4087
|
-
return
|
4088
|
-
if (
|
4089
|
-
return
|
4090
|
-
var
|
4082
|
+
if (x === d)
|
4083
|
+
return this.set(d, this.$M + R);
|
4084
|
+
if (x === v)
|
4085
|
+
return this.set(v, this.$y + R);
|
4086
|
+
if (x === c)
|
4087
|
+
return W(1);
|
4088
|
+
if (x === u)
|
4089
|
+
return W(7);
|
4090
|
+
var X = (F = {}, F[o] = a, F[i] = n, F[l] = r, F)[x] || 1, z = this.$d.getTime() + R * X;
|
4091
4091
|
return P.w(z, this);
|
4092
|
-
},
|
4093
|
-
return this.add(-1 *
|
4094
|
-
},
|
4092
|
+
}, O.subtract = function(R, G) {
|
4093
|
+
return this.add(-1 * R, G);
|
4094
|
+
}, O.format = function(R) {
|
4095
4095
|
var G = this, F = this.$locale();
|
4096
4096
|
if (!this.isValid())
|
4097
4097
|
return F.invalidDate || p;
|
4098
|
-
var
|
4099
|
-
return ne && (ne[le] || ne(G,
|
4098
|
+
var K = R || "YYYY-MM-DDTHH:mm:ssZ", x = P.z(this), W = this.$H, X = this.$m, z = this.$M, ee = F.weekdays, re = F.months, ie = F.meridiem, se = function(ne, le, de, fe) {
|
4099
|
+
return ne && (ne[le] || ne(G, K)) || de[le].slice(0, fe);
|
4100
4100
|
}, ge = function(ne) {
|
4101
|
-
return P.s(
|
4101
|
+
return P.s(W % 12 || 12, ne, "0");
|
4102
4102
|
}, ce = ie || function(ne, le, de) {
|
4103
4103
|
var fe = ne < 12 ? "AM" : "PM";
|
4104
4104
|
return de ? fe.toLowerCase() : fe;
|
4105
4105
|
};
|
4106
|
-
return
|
4106
|
+
return K.replace(b, function(ne, le) {
|
4107
4107
|
return le || function(de) {
|
4108
4108
|
switch (de) {
|
4109
4109
|
case "YY":
|
@@ -4125,27 +4125,27 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4125
4125
|
case "d":
|
4126
4126
|
return String(G.$W);
|
4127
4127
|
case "dd":
|
4128
|
-
return se(F.weekdaysMin, G.$W,
|
4128
|
+
return se(F.weekdaysMin, G.$W, ee, 2);
|
4129
4129
|
case "ddd":
|
4130
|
-
return se(F.weekdaysShort, G.$W,
|
4130
|
+
return se(F.weekdaysShort, G.$W, ee, 3);
|
4131
4131
|
case "dddd":
|
4132
|
-
return
|
4132
|
+
return ee[G.$W];
|
4133
4133
|
case "H":
|
4134
|
-
return String(
|
4134
|
+
return String(W);
|
4135
4135
|
case "HH":
|
4136
|
-
return P.s(
|
4136
|
+
return P.s(W, 2, "0");
|
4137
4137
|
case "h":
|
4138
4138
|
return ge(1);
|
4139
4139
|
case "hh":
|
4140
4140
|
return ge(2);
|
4141
4141
|
case "a":
|
4142
|
-
return ce(
|
4142
|
+
return ce(W, X, !0);
|
4143
4143
|
case "A":
|
4144
|
-
return ce(
|
4144
|
+
return ce(W, X, !1);
|
4145
4145
|
case "m":
|
4146
|
-
return String(
|
4146
|
+
return String(X);
|
4147
4147
|
case "mm":
|
4148
|
-
return P.s(
|
4148
|
+
return P.s(X, 2, "0");
|
4149
4149
|
case "s":
|
4150
4150
|
return String(G.$s);
|
4151
4151
|
case "ss":
|
@@ -4153,76 +4153,76 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4153
4153
|
case "SSS":
|
4154
4154
|
return P.s(G.$ms, 3, "0");
|
4155
4155
|
case "Z":
|
4156
|
-
return
|
4156
|
+
return x;
|
4157
4157
|
}
|
4158
4158
|
return null;
|
4159
|
-
}(ne) ||
|
4159
|
+
}(ne) || x.replace(":", "");
|
4160
4160
|
});
|
4161
|
-
},
|
4161
|
+
}, O.utcOffset = function() {
|
4162
4162
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4163
|
-
},
|
4164
|
-
var
|
4165
|
-
return P.m(
|
4163
|
+
}, O.diff = function(R, G, F) {
|
4164
|
+
var K, x = this, W = P.p(G), X = A(R), z = (X.utcOffset() - this.utcOffset()) * a, ee = this - X, re = function() {
|
4165
|
+
return P.m(x, X);
|
4166
4166
|
};
|
4167
|
-
switch (
|
4167
|
+
switch (W) {
|
4168
4168
|
case v:
|
4169
|
-
|
4169
|
+
K = re() / 12;
|
4170
4170
|
break;
|
4171
4171
|
case d:
|
4172
|
-
|
4172
|
+
K = re();
|
4173
4173
|
break;
|
4174
4174
|
case m:
|
4175
|
-
|
4175
|
+
K = re() / 3;
|
4176
4176
|
break;
|
4177
4177
|
case u:
|
4178
|
-
|
4178
|
+
K = (ee - z) / 6048e5;
|
4179
4179
|
break;
|
4180
4180
|
case c:
|
4181
|
-
|
4181
|
+
K = (ee - z) / 864e5;
|
4182
4182
|
break;
|
4183
4183
|
case i:
|
4184
|
-
|
4184
|
+
K = ee / n;
|
4185
4185
|
break;
|
4186
4186
|
case o:
|
4187
|
-
|
4187
|
+
K = ee / a;
|
4188
4188
|
break;
|
4189
4189
|
case l:
|
4190
|
-
|
4190
|
+
K = ee / r;
|
4191
4191
|
break;
|
4192
4192
|
default:
|
4193
|
-
|
4193
|
+
K = ee;
|
4194
4194
|
}
|
4195
|
-
return F ?
|
4196
|
-
},
|
4195
|
+
return F ? K : P.a(K);
|
4196
|
+
}, O.daysInMonth = function() {
|
4197
4197
|
return this.endOf(d).$D;
|
4198
|
-
},
|
4198
|
+
}, O.$locale = function() {
|
4199
4199
|
return k[this.$L];
|
4200
|
-
},
|
4201
|
-
if (!
|
4200
|
+
}, O.locale = function(R, G) {
|
4201
|
+
if (!R)
|
4202
4202
|
return this.$L;
|
4203
|
-
var F = this.clone(),
|
4204
|
-
return
|
4205
|
-
},
|
4203
|
+
var F = this.clone(), K = I(R, G, !0);
|
4204
|
+
return K && (F.$L = K), F;
|
4205
|
+
}, O.clone = function() {
|
4206
4206
|
return P.w(this.$d, this);
|
4207
|
-
},
|
4207
|
+
}, O.toDate = function() {
|
4208
4208
|
return new Date(this.valueOf());
|
4209
|
-
},
|
4209
|
+
}, O.toJSON = function() {
|
4210
4210
|
return this.isValid() ? this.toISOString() : null;
|
4211
|
-
},
|
4211
|
+
}, O.toISOString = function() {
|
4212
4212
|
return this.$d.toISOString();
|
4213
|
-
},
|
4213
|
+
}, O.toString = function() {
|
4214
4214
|
return this.$d.toUTCString();
|
4215
|
-
},
|
4215
|
+
}, D;
|
4216
4216
|
}(), U = N.prototype;
|
4217
|
-
return
|
4218
|
-
U[
|
4219
|
-
return this.$g(
|
4217
|
+
return A.prototype = U, [["$ms", s], ["$s", l], ["$m", o], ["$H", i], ["$W", c], ["$M", d], ["$y", v], ["$D", y]].forEach(function(D) {
|
4218
|
+
U[D[1]] = function(O) {
|
4219
|
+
return this.$g(O, D[0], D[1]);
|
4220
4220
|
};
|
4221
|
-
}),
|
4222
|
-
return
|
4223
|
-
},
|
4224
|
-
return
|
4225
|
-
},
|
4221
|
+
}), A.extend = function(D, O) {
|
4222
|
+
return D.$i || (D(O, N, A), D.$i = !0), A;
|
4223
|
+
}, A.locale = I, A.isDayjs = w, A.unix = function(D) {
|
4224
|
+
return A(1e3 * D);
|
4225
|
+
}, A.en = k[M], A.Ls = k, A.p = {}, A;
|
4226
4226
|
});
|
4227
4227
|
})(dayjs_min);
|
4228
4228
|
const dayjs = dayjs_min.exports;
|
@@ -4267,31 +4267,31 @@ function filesize(e, {
|
|
4267
4267
|
roundingMethod: p = ROUND,
|
4268
4268
|
precision: g = 0
|
4269
4269
|
} = {}) {
|
4270
|
-
let b = y, E = Number(e), C = [], T = 0,
|
4270
|
+
let b = y, E = Number(e), C = [], T = 0, M = EMPTY;
|
4271
4271
|
u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
|
4272
|
-
const k = a === 10 ? 1e3 : 1024,
|
4272
|
+
const k = a === 10 ? 1e3 : 1024, V = m === !0, w = E < 0, I = Math[p];
|
4273
4273
|
if (typeof e != "bigint" && isNaN(e))
|
4274
4274
|
throw new TypeError(INVALID_NUMBER);
|
4275
4275
|
if (typeof I !== FUNCTION)
|
4276
4276
|
throw new TypeError(INVALID_ROUND);
|
4277
|
-
if (
|
4277
|
+
if (w && (E = -E), (b === -1 || isNaN(b)) && (b = Math.floor(Math.log(E) / Math.log(k)), b < 0 && (b = 0)), b > 8 && (g > 0 && (g += 8 - b), b = 8), d === EXPONENT)
|
4278
4278
|
return b;
|
4279
4279
|
if (E === 0)
|
4280
|
-
C[0] = 0,
|
4280
|
+
C[0] = 0, M = C[1] = STRINGS.symbol[u][t ? BITS : BYTES][b];
|
4281
4281
|
else {
|
4282
4282
|
T = E / (a === 2 ? Math.pow(2, b * 10) : Math.pow(1e3, b)), t && (T = T * 8, T >= k && b < 8 && (T = T / k, b++));
|
4283
|
-
const
|
4284
|
-
C[0] = I(T *
|
4283
|
+
const A = Math.pow(10, b > 0 ? n : 0);
|
4284
|
+
C[0] = I(T * A) / A, C[0] === k && b < 8 && y === -1 && (C[0] = 1, b++), M = C[1] = a === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][b];
|
4285
4285
|
}
|
4286
|
-
if (
|
4287
|
-
const
|
4288
|
-
C[0] = `${P[0]}${
|
4286
|
+
if (w && (C[0] = -C[0]), g > 0 && (C[0] = C[0].toPrecision(g)), C[1] = c[C[1]] || C[1], s === !0 ? C[0] = C[0].toLocaleString() : s.length > 0 ? C[0] = C[0].toLocaleString(s, l) : o.length > 0 && (C[0] = C[0].toString().replace(PERIOD, o)), r && Number.isInteger(C[0]) === !1 && n > 0) {
|
4287
|
+
const A = o || PERIOD, P = C[0].toString().split(A), N = P[1] || EMPTY, U = N.length, D = n - U;
|
4288
|
+
C[0] = `${P[0]}${A}${N.padEnd(U + D, ZERO)}`;
|
4289
4289
|
}
|
4290
|
-
return
|
4290
|
+
return V && (C[1] = v[b] ? v[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), d === ARRAY ? C : d === OBJECT ? {
|
4291
4291
|
value: C[0],
|
4292
4292
|
symbol: C[1],
|
4293
4293
|
exponent: b,
|
4294
|
-
unit:
|
4294
|
+
unit: M
|
4295
4295
|
} : C.join(i);
|
4296
4296
|
}
|
4297
4297
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
@@ -5482,8 +5482,8 @@ function equalObjects(e, t, r, a, n, s) {
|
|
5482
5482
|
g || (g = m == "constructor");
|
5483
5483
|
}
|
5484
5484
|
if (p && !g) {
|
5485
|
-
var T = e.constructor,
|
5486
|
-
T !=
|
5485
|
+
var T = e.constructor, M = t.constructor;
|
5486
|
+
T != M && "constructor" in e && "constructor" in t && !(typeof T == "function" && T instanceof T && typeof M == "function" && M instanceof M) && (p = !1);
|
5487
5487
|
}
|
5488
5488
|
return s.delete(e), s.delete(t), p;
|
5489
5489
|
}
|
@@ -5636,19 +5636,19 @@ function debounce(e, t, r) {
|
|
5636
5636
|
throw new TypeError(FUNC_ERROR_TEXT);
|
5637
5637
|
t = toNumber(t) || 0, isObject$2(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? nativeMax$1(toNumber(r.maxWait) || 0, t) : s, m = "trailing" in r ? !!r.trailing : m);
|
5638
5638
|
function v(k) {
|
5639
|
-
var
|
5640
|
-
return a = n = void 0, c = k, l = e.apply(
|
5639
|
+
var V = a, w = n;
|
5640
|
+
return a = n = void 0, c = k, l = e.apply(w, V), l;
|
5641
5641
|
}
|
5642
5642
|
function y(k) {
|
5643
5643
|
return c = k, o = setTimeout(b, t), u ? v(k) : l;
|
5644
5644
|
}
|
5645
5645
|
function p(k) {
|
5646
|
-
var
|
5647
|
-
return d ? nativeMin$1(I, s -
|
5646
|
+
var V = k - i, w = k - c, I = t - V;
|
5647
|
+
return d ? nativeMin$1(I, s - w) : I;
|
5648
5648
|
}
|
5649
5649
|
function g(k) {
|
5650
|
-
var
|
5651
|
-
return i === void 0 ||
|
5650
|
+
var V = k - i, w = k - c;
|
5651
|
+
return i === void 0 || V >= t || V < 0 || d && w >= s;
|
5652
5652
|
}
|
5653
5653
|
function b() {
|
5654
5654
|
var k = now$1();
|
@@ -5665,9 +5665,9 @@ function debounce(e, t, r) {
|
|
5665
5665
|
function T() {
|
5666
5666
|
return o === void 0 ? l : E(now$1());
|
5667
5667
|
}
|
5668
|
-
function
|
5669
|
-
var k = now$1(),
|
5670
|
-
if (a = arguments, n = this, i = k,
|
5668
|
+
function M() {
|
5669
|
+
var k = now$1(), V = g(k);
|
5670
|
+
if (a = arguments, n = this, i = k, V) {
|
5671
5671
|
if (o === void 0)
|
5672
5672
|
return y(i);
|
5673
5673
|
if (d)
|
@@ -5675,7 +5675,7 @@ function debounce(e, t, r) {
|
|
5675
5675
|
}
|
5676
5676
|
return o === void 0 && (o = setTimeout(b, t)), l;
|
5677
5677
|
}
|
5678
|
-
return
|
5678
|
+
return M.cancel = C, M.flush = T, M;
|
5679
5679
|
}
|
5680
5680
|
function isArrayLikeObject(e) {
|
5681
5681
|
return isObjectLike(e) && isArrayLike(e);
|
@@ -7175,22 +7175,22 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7175
7175
|
const i = {
|
7176
7176
|
deep: !0
|
7177
7177
|
};
|
7178
|
-
process.env.NODE_ENV !== "production" && !isVue2 && (i.onTrigger = (
|
7179
|
-
c ? v =
|
7178
|
+
process.env.NODE_ENV !== "production" && !isVue2 && (i.onTrigger = (w) => {
|
7179
|
+
c ? v = w : c == !1 && !k._hotUpdating && (Array.isArray(v) ? v.push(w) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
7180
7180
|
});
|
7181
7181
|
let c, u, d = markRaw([]), m = markRaw([]), v;
|
7182
7182
|
const y = a.state.value[e];
|
7183
7183
|
!l && !y && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
7184
7184
|
const p = ref({});
|
7185
|
-
function g(
|
7185
|
+
function g(w) {
|
7186
7186
|
let I;
|
7187
|
-
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof
|
7187
|
+
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof w == "function" ? (w(a.state.value[e]), I = {
|
7188
7188
|
type: MutationType.patchFunction,
|
7189
7189
|
storeId: e,
|
7190
7190
|
events: v
|
7191
|
-
}) : (mergeReactiveObjects(a.state.value[e],
|
7191
|
+
}) : (mergeReactiveObjects(a.state.value[e], w), I = {
|
7192
7192
|
type: MutationType.patchObject,
|
7193
|
-
payload:
|
7193
|
+
payload: w,
|
7194
7194
|
storeId: e,
|
7195
7195
|
events: v
|
7196
7196
|
}), nextTick().then(() => {
|
@@ -7203,30 +7203,30 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7203
7203
|
function E() {
|
7204
7204
|
s.stop(), d = [], m = [], a._s.delete(e);
|
7205
7205
|
}
|
7206
|
-
function C(
|
7206
|
+
function C(w, I) {
|
7207
7207
|
return function() {
|
7208
7208
|
setActivePinia(a);
|
7209
|
-
const
|
7210
|
-
function U(
|
7211
|
-
P.push(
|
7209
|
+
const A = Array.from(arguments), P = [], N = [];
|
7210
|
+
function U(R) {
|
7211
|
+
P.push(R);
|
7212
7212
|
}
|
7213
|
-
function
|
7214
|
-
N.push(
|
7213
|
+
function D(R) {
|
7214
|
+
N.push(R);
|
7215
7215
|
}
|
7216
7216
|
triggerSubscriptions(m, {
|
7217
|
-
args:
|
7218
|
-
name:
|
7217
|
+
args: A,
|
7218
|
+
name: w,
|
7219
7219
|
store: k,
|
7220
7220
|
after: U,
|
7221
|
-
onError:
|
7221
|
+
onError: D
|
7222
7222
|
});
|
7223
|
-
let
|
7223
|
+
let O;
|
7224
7224
|
try {
|
7225
|
-
|
7226
|
-
} catch (
|
7227
|
-
throw triggerSubscriptions(N,
|
7225
|
+
O = I.apply(this && this.$id === e ? this : k, A);
|
7226
|
+
} catch (R) {
|
7227
|
+
throw triggerSubscriptions(N, R), R;
|
7228
7228
|
}
|
7229
|
-
return
|
7229
|
+
return O instanceof Promise ? O.then((R) => (triggerSubscriptions(P, R), R)).catch((R) => (triggerSubscriptions(N, R), Promise.reject(R))) : (triggerSubscriptions(P, O), O);
|
7230
7230
|
};
|
7231
7231
|
}
|
7232
7232
|
const T = /* @__PURE__ */ markRaw({
|
@@ -7234,21 +7234,21 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7234
7234
|
getters: {},
|
7235
7235
|
state: [],
|
7236
7236
|
hotState: p
|
7237
|
-
}),
|
7237
|
+
}), M = {
|
7238
7238
|
_p: a,
|
7239
7239
|
$id: e,
|
7240
7240
|
$onAction: addSubscription.bind(null, m),
|
7241
7241
|
$patch: g,
|
7242
7242
|
$reset: b,
|
7243
|
-
$subscribe(
|
7244
|
-
const
|
7245
|
-
(I.flush === "sync" ? u : c) &&
|
7243
|
+
$subscribe(w, I = {}) {
|
7244
|
+
const A = addSubscription(d, w, I.detached, () => P()), P = s.run(() => watch(() => a.state.value[e], (N) => {
|
7245
|
+
(I.flush === "sync" ? u : c) && w({
|
7246
7246
|
storeId: e,
|
7247
7247
|
type: MutationType.direct,
|
7248
7248
|
events: v
|
7249
7249
|
}, N);
|
7250
7250
|
}, assign$1({}, i, I)));
|
7251
|
-
return
|
7251
|
+
return A;
|
7252
7252
|
},
|
7253
7253
|
$dispose: E
|
7254
7254
|
}, k = reactive(assign$1(
|
@@ -7256,57 +7256,57 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7256
7256
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
7257
7257
|
_hmrPayload: T
|
7258
7258
|
} : {},
|
7259
|
-
|
7259
|
+
M
|
7260
7260
|
));
|
7261
7261
|
a._s.set(e, k);
|
7262
|
-
const
|
7263
|
-
for (const
|
7264
|
-
const I =
|
7262
|
+
const V = a._e.run(() => (s = effectScope(), s.run(() => t())));
|
7263
|
+
for (const w in V) {
|
7264
|
+
const I = V[w];
|
7265
7265
|
if (isRef(I) && !isComputed(I) || isReactive(I))
|
7266
|
-
process.env.NODE_ENV !== "production" && n ? set(p.value,
|
7266
|
+
process.env.NODE_ENV !== "production" && n ? set(p.value, w, toRef(V, w)) : l || (y && shouldHydrate(I) && (isRef(I) ? I.value = y[w] : mergeReactiveObjects(I, y[w])), a.state.value[e][w] = I), process.env.NODE_ENV !== "production" && T.state.push(w);
|
7267
7267
|
else if (typeof I == "function") {
|
7268
|
-
const
|
7269
|
-
|
7268
|
+
const A = process.env.NODE_ENV !== "production" && n ? I : C(w, I);
|
7269
|
+
V[w] = A, process.env.NODE_ENV !== "production" && (T.actions[w] = I), o.actions[w] = I;
|
7270
7270
|
} else
|
7271
|
-
process.env.NODE_ENV !== "production" && isComputed(I) && (T.getters[
|
7271
|
+
process.env.NODE_ENV !== "production" && isComputed(I) && (T.getters[w] = l ? r.getters[w] : I, IS_CLIENT && (V._getters || (V._getters = markRaw([]))).push(w));
|
7272
7272
|
}
|
7273
|
-
if (assign$1(k,
|
7273
|
+
if (assign$1(k, V), assign$1(toRaw(k), V), Object.defineProperty(k, "$state", {
|
7274
7274
|
get: () => process.env.NODE_ENV !== "production" && n ? p.value : a.state.value[e],
|
7275
|
-
set: (
|
7275
|
+
set: (w) => {
|
7276
7276
|
if (process.env.NODE_ENV !== "production" && n)
|
7277
7277
|
throw new Error("cannot set hotState");
|
7278
7278
|
g((I) => {
|
7279
|
-
assign$1(I,
|
7279
|
+
assign$1(I, w);
|
7280
7280
|
});
|
7281
7281
|
}
|
7282
7282
|
}), process.env.NODE_ENV !== "production") {
|
7283
7283
|
k._hotUpdate = markRaw((I) => {
|
7284
|
-
k._hotUpdating = !0, I._hmrPayload.state.forEach((
|
7285
|
-
if (
|
7286
|
-
const P = I.$state[
|
7287
|
-
typeof P == "object" && isPlainObject(P) && isPlainObject(N) ? patchObject(P, N) : I.$state[
|
7284
|
+
k._hotUpdating = !0, I._hmrPayload.state.forEach((A) => {
|
7285
|
+
if (A in k.$state) {
|
7286
|
+
const P = I.$state[A], N = k.$state[A];
|
7287
|
+
typeof P == "object" && isPlainObject(P) && isPlainObject(N) ? patchObject(P, N) : I.$state[A] = N;
|
7288
7288
|
}
|
7289
|
-
set(k,
|
7290
|
-
}), Object.keys(k.$state).forEach((
|
7291
|
-
|
7289
|
+
set(k, A, toRef(I.$state, A));
|
7290
|
+
}), Object.keys(k.$state).forEach((A) => {
|
7291
|
+
A in I.$state || del(k, A);
|
7292
7292
|
}), c = !1, u = !1, a.state.value[e] = toRef(I._hmrPayload, "hotState"), u = !0, nextTick().then(() => {
|
7293
7293
|
c = !0;
|
7294
7294
|
});
|
7295
|
-
for (const
|
7296
|
-
const P = I[
|
7297
|
-
set(k,
|
7295
|
+
for (const A in I._hmrPayload.actions) {
|
7296
|
+
const P = I[A];
|
7297
|
+
set(k, A, C(A, P));
|
7298
7298
|
}
|
7299
|
-
for (const
|
7300
|
-
const P = I._hmrPayload.getters[
|
7301
|
-
set(k,
|
7299
|
+
for (const A in I._hmrPayload.getters) {
|
7300
|
+
const P = I._hmrPayload.getters[A], N = l ? computed(() => (setActivePinia(a), P.call(k, k))) : P;
|
7301
|
+
set(k, A, N);
|
7302
7302
|
}
|
7303
|
-
Object.keys(k._hmrPayload.getters).forEach((
|
7304
|
-
|
7305
|
-
}), Object.keys(k._hmrPayload.actions).forEach((
|
7306
|
-
|
7303
|
+
Object.keys(k._hmrPayload.getters).forEach((A) => {
|
7304
|
+
A in I._hmrPayload.getters || del(k, A);
|
7305
|
+
}), Object.keys(k._hmrPayload.actions).forEach((A) => {
|
7306
|
+
A in I._hmrPayload.actions || del(k, A);
|
7307
7307
|
}), k._hmrPayload = I._hmrPayload, k._getters = I._getters, k._hotUpdating = !1;
|
7308
7308
|
});
|
7309
|
-
const
|
7309
|
+
const w = {
|
7310
7310
|
writable: !0,
|
7311
7311
|
configurable: !0,
|
7312
7312
|
enumerable: !1
|
@@ -7314,21 +7314,21 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7314
7314
|
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
|
7315
7315
|
Object.defineProperty(k, I, {
|
7316
7316
|
value: k[I],
|
7317
|
-
...
|
7317
|
+
...w
|
7318
7318
|
});
|
7319
7319
|
});
|
7320
7320
|
}
|
7321
|
-
return a._p.forEach((
|
7321
|
+
return a._p.forEach((w) => {
|
7322
7322
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
7323
|
-
const I = s.run(() =>
|
7323
|
+
const I = s.run(() => w({
|
7324
7324
|
store: k,
|
7325
7325
|
app: a._a,
|
7326
7326
|
pinia: a,
|
7327
7327
|
options: o
|
7328
7328
|
}));
|
7329
|
-
Object.keys(I || {}).forEach((
|
7329
|
+
Object.keys(I || {}).forEach((A) => k._customProperties.add(A)), assign$1(k, I);
|
7330
7330
|
} else
|
7331
|
-
assign$1(k, s.run(() =>
|
7331
|
+
assign$1(k, s.run(() => w({
|
7332
7332
|
store: k,
|
7333
7333
|
app: a._a,
|
7334
7334
|
pinia: a,
|
@@ -9145,8 +9145,8 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
9145
9145
|
}
|
9146
9146
|
this.formIDs = [...this.formIDs, e].sort((t, r) => t.level - r.level), await this.retrieve(e.formID), store_legacy.set("KgVar.formIDs", this.formIDs);
|
9147
9147
|
},
|
9148
|
-
|
9149
|
-
this.formIDs = this.formIDs.filter((t) => t.formID !== e), this.isRetrievingMap.delete(e), this.isRetrievingVarProfileMasterMap.delete(e), this.isCreatingMap.delete(e), this.isCreatingRequestingMap.delete(e), this.isUpdatingMap.delete(e), this.isUpdatingRequestingMap.delete(e), this.isCopyingMap.delete(e), this.isCopyingRequestingMap.delete(e), this.isDeletingMap.delete(e), this.isDeletingRequestingMap.delete(e), this.isOtherRequestingMap.delete(e), this.varCatalogMap.delete(e), this.varLookupMap.delete(e), this.varPossibilityMap.delete(e), this.varVariableConfigMap.delete(e), this.varButtonMap.delete(e), this.varSubmitConfigMap.delete(e), this.varSubmitFieldMap.delete(e), this.varProfileConfigMap.delete(e), this.varProfileMap.delete(e), this.varGridConfigMap.delete(e), this.varGridMap.delete(e), store_legacy.set("KgVar.formIDs", this.formIDs);
|
9148
|
+
dispose(e) {
|
9149
|
+
this.formIDs = this.formIDs.filter((t) => t.formID !== e), this.isRetrievingMap.delete(e), this.isRetrievedMap.delete(e), this.isRetrievingVarProfileMasterMap.delete(e), this.isRetrievingVarGridMasterMap.delete(e), this.isCreatingMap.delete(e), this.isCreatingRequestingMap.delete(e), this.isUpdatingMap.delete(e), this.isUpdatingRequestingMap.delete(e), this.isCopyingMap.delete(e), this.isCopyingRequestingMap.delete(e), this.isDeletingMap.delete(e), this.isDeletingRequestingMap.delete(e), this.isOtherRequestingMap.delete(e), this.varCatalogMap.delete(e), this.varLookupMap.delete(e), this.varPossibilityMap.delete(e), this.varVariableConfigMap.delete(e), this.varVariableInputMap.delete(e), this.varButtonMap.delete(e), this.varButtonConfigMap.delete(e), this.varSubmitConfigMap.delete(e), this.varSubmitFieldMap.delete(e), this.varProfileConfigMap.delete(e), this.varProfileMap.delete(e), this.varGridConfigMap.delete(e), this.varGridMap.delete(e), this.onRetrieveListenersMap.delete(e), store_legacy.set("KgVar.formIDs", this.formIDs);
|
9150
9150
|
},
|
9151
9151
|
async retrieve(e) {
|
9152
9152
|
var t, r, a, n, s, l, o, i, c, u;
|
@@ -9164,16 +9164,16 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
9164
9164
|
varSubmitConfig: E,
|
9165
9165
|
varSubmitFields: C,
|
9166
9166
|
varProfile: T,
|
9167
|
-
varProfileConfig:
|
9167
|
+
varProfileConfig: M,
|
9168
9168
|
varGrid: k,
|
9169
|
-
varGridConfig:
|
9169
|
+
varGridConfig: V
|
9170
9170
|
} = await GetAll({ params: { frm_id: e } });
|
9171
|
-
this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, m != null ? m : []), 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(g)), this.varButtonConfigMap.set(e, transformVarButtonConfig(b != null ? b : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(E)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(C)), this.varProfileConfigMap.set(e, transformVarProfileConfig(
|
9171
|
+
this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, m != null ? m : []), 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(g)), this.varButtonConfigMap.set(e, transformVarButtonConfig(b != null ? b : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(E)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(C)), this.varProfileConfigMap.set(e, transformVarProfileConfig(M != null ? M : null)), this.varProfileMap.set(e, {
|
9172
9172
|
varProfile: T != null ? T : null,
|
9173
|
-
currentVarProfileMasterID: (s = (n = ((t = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : t.find((
|
9174
|
-
}), this.varGridConfigMap.set(e, transformVarGridConfig(
|
9173
|
+
currentVarProfileMasterID: (s = (n = ((t = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : t.find((w) => w.def_flg === 1)) || ((r = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : r.find((w) => w.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((a = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : a.find(() => !0))) == null ? void 0 : n.id) != null ? s : null
|
9174
|
+
}), this.varGridConfigMap.set(e, transformVarGridConfig(V != null ? V : null)), this.varGridMap.set(e, {
|
9175
9175
|
varGrid: transformVarGridDTO(k),
|
9176
|
-
currentVarGridMasterID: (u = (c = ((l = k == null ? void 0 : k.varGridMasters) == null ? void 0 : l.find((
|
9176
|
+
currentVarGridMasterID: (u = (c = ((l = k == null ? void 0 : k.varGridMasters) == null ? void 0 : l.find((w) => w.def_flg === 1)) || ((o = k == null ? void 0 : k.varGridMasters) == null ? void 0 : o.find((w) => w.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((i = k == null ? void 0 : k.varGridMasters) == null ? void 0 : i.find(() => !0))) == null ? void 0 : c.id) != null ? u : null
|
9177
9177
|
}), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
|
9178
9178
|
} catch (d) {
|
9179
9179
|
throw d;
|
@@ -9272,7 +9272,7 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
9272
9272
|
return;
|
9273
9273
|
const o = this.getVarProfileDetail(e, t);
|
9274
9274
|
if (!o) {
|
9275
|
-
KgLogger.error("\
|
9275
|
+
KgLogger.error("KgVarStore.patchVarProfileDetail() | VarProfileDetail \u4E3A\u7A7A.", { frm_id: e, var_nam: t }), n();
|
9276
9276
|
return;
|
9277
9277
|
}
|
9278
9278
|
setTimeout(() => {
|
@@ -9304,22 +9304,22 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
9304
9304
|
!a || (Object.assign(a, r), this.varPossibilityMap.set(e, this.varPossibilityMap.get(e)));
|
9305
9305
|
},
|
9306
9306
|
patchVarPossibilityCommandParameter(e, t, r) {
|
9307
|
-
|
9308
|
-
|
9309
|
-
|
9310
|
-
|
9311
|
-
|
9312
|
-
|
9313
|
-
|
9314
|
-
|
9315
|
-
|
9316
|
-
|
9317
|
-
l
|
9318
|
-
}
|
9319
|
-
}
|
9320
|
-
|
9321
|
-
|
9322
|
-
);
|
9307
|
+
return !e || !t ? Promise.resolve() : new Promise((a, n) => {
|
9308
|
+
const s = watch(
|
9309
|
+
() => this.getVarPossibility(e, t),
|
9310
|
+
(l) => {
|
9311
|
+
var o;
|
9312
|
+
if (l) {
|
9313
|
+
setTimeout(() => s(), 0);
|
9314
|
+
let i = JSON.parse((o = l.cmd_prm) != null ? o : "{}");
|
9315
|
+
Object.entries(r).forEach(([c, u]) => {
|
9316
|
+
i[c] = u;
|
9317
|
+
}), l.cmd_prm = JSON.stringify(i), this.varPossibilityMap.set(e, this.varPossibilityMap.get(e)), a();
|
9318
|
+
}
|
9319
|
+
},
|
9320
|
+
{ immediate: !0 }
|
9321
|
+
);
|
9322
|
+
});
|
9323
9323
|
},
|
9324
9324
|
dragSortCurrentVarGridDetails(e, t, r) {
|
9325
9325
|
if (!e || !t || !r || t === r)
|
@@ -9378,12 +9378,12 @@ function useKgVar(e, t, r = 0) {
|
|
9378
9378
|
t && getCurrentInstance() && (provide(KG_DI_FORM_ID, c), onMounted(() => {
|
9379
9379
|
u.enter({ formID: c, level: r });
|
9380
9380
|
}), onUnmounted(() => {
|
9381
|
-
u.
|
9381
|
+
u.dispose(c);
|
9382
9382
|
}));
|
9383
|
-
const d = (z) => computed(() => u.t(c, z)), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), g = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), E = computed(() => u.isUpdatingRequesting(c)), C = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)),
|
9384
|
-
var z,
|
9385
|
-
return (
|
9386
|
-
}), F = computed(() => u.getVarGridConfig(c)),
|
9383
|
+
const d = (z) => computed(() => u.t(c, z)), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), g = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), E = computed(() => u.isUpdatingRequesting(c)), C = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)), M = computed(() => u.isDeleting(c)), k = computed(() => u.isDeletingRequesting(c)), V = computed(() => u.isOtherRequesting(c)), w = computed(() => u.getVarButtons(c)), I = computed(() => u.getVarButtonSearch(c)), A = computed(() => u.getVarButtonCreate(c)), P = computed(() => u.getVarButtonUpdate(c)), N = computed(() => u.getVarButtonCopy(c)), U = computed(() => u.getVarButtonDelete(c)), D = computed(() => u.getVarProfileMasters(c)), O = computed(() => u.getCurrentVarProfileMaster(c)), R = computed(() => u.getCurrentVarProfileMasterID(c)), G = computed(() => {
|
9384
|
+
var z, ee;
|
9385
|
+
return (ee = (z = O.value) == null ? void 0 : z.varProfileDetails) != null ? ee : null;
|
9386
|
+
}), F = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), x = computed(() => u.getCurrentVarGridMaster(c)), W = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
|
9387
9387
|
return {
|
9388
9388
|
formID: c,
|
9389
9389
|
store: u,
|
@@ -9396,24 +9396,24 @@ function useKgVar(e, t, r = 0) {
|
|
9396
9396
|
isUpdatingRequesting: E,
|
9397
9397
|
isCopying: C,
|
9398
9398
|
isCopyingRequesting: T,
|
9399
|
-
isDeleting:
|
9399
|
+
isDeleting: M,
|
9400
9400
|
isDeletingRequesting: k,
|
9401
|
-
isOtherRequesting:
|
9402
|
-
varButtons:
|
9401
|
+
isOtherRequesting: V,
|
9402
|
+
varButtons: w,
|
9403
9403
|
varButtonSearch: I,
|
9404
|
-
varButtonCreate:
|
9404
|
+
varButtonCreate: A,
|
9405
9405
|
varButtonUpdate: P,
|
9406
9406
|
varButtonCopy: N,
|
9407
9407
|
varButtonDelete: U,
|
9408
|
-
varProfileMasters:
|
9409
|
-
currentVarProfileMaster:
|
9410
|
-
currentVarProfileMasterID:
|
9408
|
+
varProfileMasters: D,
|
9409
|
+
currentVarProfileMaster: O,
|
9410
|
+
currentVarProfileMasterID: R,
|
9411
9411
|
currentVarProfileDetails: G,
|
9412
9412
|
varGridConfig: F,
|
9413
|
-
varGridMasters:
|
9414
|
-
currentVarGridMaster:
|
9415
|
-
systemVarGridDetails:
|
9416
|
-
currentVarGridDetails:
|
9413
|
+
varGridMasters: K,
|
9414
|
+
currentVarGridMaster: x,
|
9415
|
+
systemVarGridDetails: W,
|
9416
|
+
currentVarGridDetails: X,
|
9417
9417
|
setIsCreating: s,
|
9418
9418
|
setIsUpdating: l,
|
9419
9419
|
setIsCopying: o,
|
@@ -9486,63 +9486,61 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9486
9486
|
slots: t,
|
9487
9487
|
emit: r
|
9488
9488
|
}) {
|
9489
|
-
const a = inject(KG_DI_HOST_FORM_ID, ""), n = useKgVar(a), s = useKgForm(n.formID), l = inject(KG_DI_VAR_NAME, ""), o = inject(KG_DI_LOOKUP_ID, ""), i = inject(DI_FORM_MODEL, computed(() => ({})))
|
9490
|
-
|
9491
|
-
|
9492
|
-
|
9493
|
-
|
9494
|
-
|
9495
|
-
var p, g;
|
9496
|
-
return (g = (p = u == null ? void 0 : u.value) == null ? void 0 : p.ret_fld) != null ? g : "";
|
9489
|
+
const a = inject(KG_DI_HOST_FORM_ID, ""), n = useKgVar(a), s = useKgForm(n.formID), l = inject(KG_DI_VAR_NAME, ""), o = inject(KG_DI_LOOKUP_ID, ""), i = inject(DI_FORM_MODEL, computed(() => ({}))), c = useKgVar(o, !0, n.store.getFormLevel(n.formID) + 1), u = useKgTable(c.formID), d = computed(() => n.store.getVarLookup(n.formID, l)), m = computed(() => {
|
9490
|
+
var g;
|
9491
|
+
return ((g = d == null ? void 0 : d.value) == null ? void 0 : g.mult_flg) === 1;
|
9492
|
+
}), v = computed(() => {
|
9493
|
+
var g, b;
|
9494
|
+
return (b = (g = d == null ? void 0 : d.value) == null ? void 0 : g.ret_fld) != null ? b : "";
|
9497
9495
|
});
|
9498
|
-
|
9499
|
-
function
|
9496
|
+
u.onRowDoubleClick(async () => (await p(), !1));
|
9497
|
+
function y() {
|
9500
9498
|
r("update:visible", !1);
|
9501
9499
|
}
|
9502
|
-
async function
|
9503
|
-
var
|
9504
|
-
if (
|
9505
|
-
const
|
9500
|
+
async function p() {
|
9501
|
+
var g, b, E, C, T, M, k;
|
9502
|
+
if (m.value) {
|
9503
|
+
const V = (b = (g = u.selectedRows) == null ? void 0 : g.value) != null ? b : [], w = (E = V.map((A) => A[v.value])) != null ? E : [];
|
9506
9504
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
9507
9505
|
var_nam: l,
|
9508
9506
|
isMultiple: !0,
|
9509
|
-
values:
|
9510
|
-
rows:
|
9507
|
+
values: w,
|
9508
|
+
rows: V
|
9511
9509
|
}) || (s.store.emit(s.formID, "lookupOk", {
|
9512
9510
|
var_nam: l,
|
9513
9511
|
model: i,
|
9514
9512
|
isMultiple: !0,
|
9515
|
-
values:
|
9516
|
-
rows:
|
9513
|
+
values: w,
|
9514
|
+
rows: V
|
9517
9515
|
}), r("update:visible", !1));
|
9518
9516
|
} else {
|
9519
|
-
const
|
9517
|
+
const V = (M = (T = (C = u.selectedRows) == null ? void 0 : C.value) == null ? void 0 : T[0]) != null ? M : null, w = (k = V == null ? void 0 : V[v.value]) != null ? k : "";
|
9520
9518
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
9521
9519
|
var_nam: l,
|
9522
9520
|
isMultiple: !1,
|
9523
|
-
value:
|
9524
|
-
row:
|
9521
|
+
value: w,
|
9522
|
+
row: V
|
9525
9523
|
}) || (s.store.emit(s.formID, "lookupOk", {
|
9526
9524
|
var_nam: l,
|
9527
9525
|
model: i,
|
9528
9526
|
isMultiple: !1,
|
9529
|
-
value:
|
9530
|
-
row:
|
9527
|
+
value: w,
|
9528
|
+
row: V
|
9531
9529
|
}), r("update:visible", !1));
|
9532
9530
|
}
|
9533
9531
|
}
|
9534
9532
|
return () => {
|
9535
|
-
var
|
9533
|
+
var g, b;
|
9536
9534
|
return createVNode(KgModal, {
|
9537
9535
|
visible: e.visible,
|
9538
9536
|
title: n.t(l).value,
|
9539
9537
|
destroyOnClose: !0,
|
9540
9538
|
okButtonProps: {
|
9541
|
-
disabled: ((
|
9539
|
+
disabled: ((b = (g = u.selectedRows.value) == null ? void 0 : g.length) != null ? b : 0) === 0
|
9542
9540
|
},
|
9543
9541
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
9544
|
-
onCancel:
|
9545
|
-
onOk:
|
9542
|
+
onCancel: y,
|
9543
|
+
onOk: p
|
9546
9544
|
}, {
|
9547
9545
|
default: () => [createVNode(KgVar, null, null)]
|
9548
9546
|
});
|
@@ -9561,21 +9559,24 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9561
9559
|
slots: t,
|
9562
9560
|
emit: r
|
9563
9561
|
}) {
|
9564
|
-
const a = inject(KG_DI_FORM_ID, "");
|
9562
|
+
const a = inject(KG_DI_FORM_ID, ""), n = inject(KG_DI_VAR_NAME, "");
|
9565
9563
|
provide(KG_DI_HOST_FORM_ID, a), provide(KG_DI_LOOKUP_ID, e.kgLookupID);
|
9566
|
-
const
|
9567
|
-
function
|
9568
|
-
|
9564
|
+
const s = useKgForm(a), l = ref(!1);
|
9565
|
+
async function o() {
|
9566
|
+
l.value = !0, await s.store.emit(s.formID, "lookupBeforeOpen", {
|
9567
|
+
var_nam: n,
|
9568
|
+
lookupFormID: e.kgLookupID
|
9569
|
+
});
|
9569
9570
|
}
|
9570
9571
|
return () => createVNode(Fragment, null, [createVNode(Button, {
|
9571
|
-
onClick:
|
9572
|
+
onClick: o,
|
9572
9573
|
class: "kg-form-item-addon-lookup",
|
9573
9574
|
disabled: e.kgDisabled
|
9574
9575
|
}, {
|
9575
9576
|
default: () => [createVNode(SearchOutlined$1, null, null)]
|
9576
|
-
}),
|
9577
|
-
visible:
|
9578
|
-
"onUpdate:visible": (
|
9577
|
+
}), l.value ? createVNode(KgFormItemAddonLookupModal, {
|
9578
|
+
visible: l.value,
|
9579
|
+
"onUpdate:visible": (i) => l.value = i
|
9579
9580
|
}, null) : null]);
|
9580
9581
|
}
|
9581
9582
|
}), getProps$s = () => ({
|
@@ -9676,15 +9677,15 @@ function _useRules(e) {
|
|
9676
9677
|
{
|
9677
9678
|
const E = (y = n.value) == null ? void 0 : y.min;
|
9678
9679
|
isNil(E) || (((p = n.value) == null ? void 0 : p.min_include_flg) === 1 ? o.push({
|
9679
|
-
validator: (T,
|
9680
|
+
validator: (T, M) => M == null || M === "" || typeof M == "string" && M.trim() === "" ? Promise.resolve() : Number(M) < E ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [E])) : Promise.resolve()
|
9680
9681
|
}) : o.push({
|
9681
|
-
validator: (T,
|
9682
|
+
validator: (T, M) => M == null || M === "" || typeof M == "string" && M.trim() === "" ? Promise.resolve() : Number(M) <= E ? Promise.reject(t.t("kg.KgFormItem.mustGT", [E])) : Promise.resolve()
|
9682
9683
|
}));
|
9683
9684
|
const C = (g = n.value) == null ? void 0 : g.max;
|
9684
9685
|
isNil(C) || (((b = n.value) == null ? void 0 : b.max_include_flg) === 1 ? o.push({
|
9685
|
-
validator: (T,
|
9686
|
+
validator: (T, M) => M == null || M === "" || typeof M == "string" && M.trim() === "" ? Promise.resolve() : Number(M) > C ? Promise.reject(t.t("kg.KgFormItem.mustLTE", [C])) : Promise.resolve()
|
9686
9687
|
}) : o.push({
|
9687
|
-
validator: (T,
|
9688
|
+
validator: (T, M) => M == null || M === "" || typeof M == "string" && M.trim() === "" ? Promise.resolve() : Number(M) >= C ? Promise.reject(t.t("kg.KgFormItem.mustLT", [C])) : Promise.resolve()
|
9688
9689
|
}));
|
9689
9690
|
}
|
9690
9691
|
break;
|
@@ -9763,18 +9764,18 @@ function useKgFormItemSelect() {
|
|
9763
9764
|
if (typeof p == "string" && p.startsWith("{") && p.endsWith("}")) {
|
9764
9765
|
let C = p.slice(1, -1), T = "";
|
9765
9766
|
if (C.includes(".")) {
|
9766
|
-
const
|
9767
|
-
C =
|
9767
|
+
const M = C.split(".");
|
9768
|
+
C = M[0], T = M[1];
|
9768
9769
|
}
|
9769
|
-
t.value && C in t.value && (T ? g = (E = (b = t.value[`${C}_obj`]) == null ? void 0 : b[T]) != null ? E : void 0 : g = t.value[C], g || (g = "
|
9770
|
+
t.value && C in t.value && (T ? g = (E = (b = t.value[`${C}_obj`]) == null ? void 0 : b[T]) != null ? E : void 0 : g = t.value[C], g || (g = "__kg__form_item_select__pid"));
|
9770
9771
|
}
|
9771
9772
|
return g;
|
9772
9773
|
}), v;
|
9773
9774
|
});
|
9774
9775
|
async function d() {
|
9775
|
-
var C, T,
|
9776
|
+
var C, T, M, k, V, w, I, A;
|
9776
9777
|
let v = [];
|
9777
|
-
const y = (C = a.value) == null ? void 0 : C.cmd, p = (
|
9778
|
+
const y = (C = a.value) == null ? void 0 : C.cmd, p = (M = (T = a.value) == null ? void 0 : T.cmd_method) != null ? M : "GET", g = (V = (k = a.value) == null ? void 0 : k.val_clm) != null ? V : "", b = (I = (w = a.value) == null ? void 0 : w.lbl_clm) != null ? I : "";
|
9778
9779
|
if (!y || !g || !b) {
|
9779
9780
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9780
9781
|
frm_id: r.formID,
|
@@ -9787,7 +9788,7 @@ function useKgFormItemSelect() {
|
|
9787
9788
|
}
|
9788
9789
|
let E = null;
|
9789
9790
|
try {
|
9790
|
-
l.value = !0, E = await ((
|
9791
|
+
l.value = !0, E = await ((A = httpClient()) == null ? void 0 : A.request({
|
9791
9792
|
url: y,
|
9792
9793
|
method: p,
|
9793
9794
|
params: u.value
|
@@ -9827,39 +9828,39 @@ function useKgFormItemSelect() {
|
|
9827
9828
|
const y = (b = (g = a.value) == null ? void 0 : g.val_clm) != null ? b : "", p = (C = (E = a.value) == null ? void 0 : E.val_data_type) != null ? C : "string";
|
9828
9829
|
switch (p) {
|
9829
9830
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
9830
|
-
v.forEach((
|
9831
|
-
|
9831
|
+
v.forEach((M) => {
|
9832
|
+
M[y] = String(M[y]);
|
9832
9833
|
});
|
9833
9834
|
break;
|
9834
9835
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
9835
|
-
v.forEach((
|
9836
|
-
let k = Number(
|
9837
|
-
Number.isNaN(k) && (k =
|
9836
|
+
v.forEach((M) => {
|
9837
|
+
let k = Number(M[y]);
|
9838
|
+
Number.isNaN(k) && (k = M[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${M[y]} \u8F6C\u6362\u4E3A ${p} \u7C7B\u578B`, {
|
9838
9839
|
frm_id: r.formID,
|
9839
9840
|
var_nam: e,
|
9840
9841
|
VarPossibility: a.value
|
9841
|
-
})),
|
9842
|
+
})), M[y] = k;
|
9842
9843
|
});
|
9843
9844
|
break;
|
9844
9845
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
9845
|
-
v.forEach((
|
9846
|
+
v.forEach((M) => {
|
9846
9847
|
let k;
|
9847
|
-
String(
|
9848
|
+
String(M[y]).toLowerCase() === "true" ? k = !0 : String(M[y]).toLowerCase() === "false" ? k = !1 : (k = M[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${M[y]} \u8F6C\u6362\u4E3A ${p} \u7C7B\u578B`, {
|
9848
9849
|
frm_id: r.formID,
|
9849
9850
|
var_nam: e,
|
9850
9851
|
VarPossibility: a.value
|
9851
|
-
})),
|
9852
|
+
})), M[y] = k;
|
9852
9853
|
});
|
9853
9854
|
break;
|
9854
9855
|
}
|
9855
9856
|
switch (n.value) {
|
9856
9857
|
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
9857
9858
|
{
|
9858
|
-
const
|
9859
|
-
if ((T =
|
9859
|
+
const M = s;
|
9860
|
+
if ((T = M.value) != null && T.excludeValues)
|
9860
9861
|
return v.filter((k) => {
|
9861
|
-
var
|
9862
|
-
return !((
|
9862
|
+
var V;
|
9863
|
+
return !((V = M.value.excludeValues) != null && V.includes(k[y]));
|
9863
9864
|
});
|
9864
9865
|
}
|
9865
9866
|
break;
|
@@ -9962,8 +9963,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9962
9963
|
"kg-value": E[i.value]
|
9963
9964
|
}, {
|
9964
9965
|
default: () => {
|
9965
|
-
var
|
9966
|
-
return [E[(k = (
|
9966
|
+
var M, k;
|
9967
|
+
return [E[(k = (M = l.value) == null ? void 0 : M.lbl_clm) != null ? k : ""]];
|
9967
9968
|
}
|
9968
9969
|
})]
|
9969
9970
|
});
|
@@ -10158,7 +10159,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10158
10159
|
datas: d,
|
10159
10160
|
retrieveDatas: m
|
10160
10161
|
} = useKgFormItemSelect();
|
10161
|
-
watch(o, () =>
|
10162
|
+
watch(o, () => {
|
10163
|
+
v();
|
10164
|
+
}, {
|
10162
10165
|
immediate: !0
|
10163
10166
|
});
|
10164
10167
|
async function v() {
|
@@ -10220,6 +10223,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10220
10223
|
dropdownClassName: e.kgMode === "multiple" ? "kg-form-item-select-dropdown kg-form-item-multi-select-dropdown" : "kg-form-item-select-dropdown",
|
10221
10224
|
class: "kg-form-item-select",
|
10222
10225
|
onChange: y,
|
10226
|
+
"kg-value": e.value,
|
10223
10227
|
"kg-cmd": (g = l.value) == null ? void 0 : g.cmd,
|
10224
10228
|
"kg-val_clm": i.value,
|
10225
10229
|
"kg-lbl_clm": c.value
|
@@ -10297,16 +10301,16 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10297
10301
|
useKg();
|
10298
10302
|
const s = useKgVar(), l = useKgForm(s.formID), o = useKgSearch(s.formID);
|
10299
10303
|
l.onLookupOk(async ({
|
10300
|
-
var_nam:
|
10304
|
+
var_nam: A,
|
10301
10305
|
model: P,
|
10302
10306
|
isMultiple: N,
|
10303
10307
|
value: U,
|
10304
|
-
values:
|
10308
|
+
values: D
|
10305
10309
|
}) => {
|
10306
|
-
var
|
10307
|
-
switch (
|
10310
|
+
var O;
|
10311
|
+
switch (A) {
|
10308
10312
|
case e.kgVarName:
|
10309
|
-
P.value && (N ? P.value[e.kgVarName] =
|
10313
|
+
P.value && (N ? P.value[e.kgVarName] = D : P.value[e.kgVarName] = U), (O = n.value) == null || O.validate([e.kgVarName]);
|
10310
10314
|
break;
|
10311
10315
|
}
|
10312
10316
|
return !1;
|
@@ -10316,96 +10320,96 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10316
10320
|
} = _useRules(e), {
|
10317
10321
|
controlType: v
|
10318
10322
|
} = useKgFormItem(e), y = computed(() => {
|
10319
|
-
var P, N, U,
|
10323
|
+
var P, N, U, D, O;
|
10320
10324
|
if (s.isRetrieving.value)
|
10321
10325
|
return !0;
|
10322
|
-
let
|
10326
|
+
let A = !1;
|
10323
10327
|
if (e.kgDisabled !== void 0)
|
10324
|
-
|
10328
|
+
A = e.kgDisabled;
|
10325
10329
|
else
|
10326
10330
|
switch (e.kgContext) {
|
10327
10331
|
case KG_FORM_CONTEXT.SEARCH:
|
10328
|
-
|
10332
|
+
A = ((P = u.value) == null ? void 0 : P.ena_flg) === 0;
|
10329
10333
|
break;
|
10330
10334
|
case KG_FORM_CONTEXT.SUBMIT:
|
10331
10335
|
switch (!0) {
|
10332
10336
|
case s.isCreating.value:
|
10333
|
-
|
10337
|
+
A = ((N = d.value) == null ? void 0 : N.crt_ena_flg) === 0;
|
10334
10338
|
break;
|
10335
10339
|
case s.isUpdating.value:
|
10336
|
-
|
10340
|
+
A = ((U = d.value) == null ? void 0 : U.upt_ena_flg) === 0;
|
10337
10341
|
break;
|
10338
10342
|
case s.isCopying.value:
|
10339
|
-
|
10343
|
+
A = ((D = d.value) == null ? void 0 : D.cpy_ena_flg) === 0;
|
10340
10344
|
break;
|
10341
10345
|
case s.isDeleting.value:
|
10342
|
-
|
10346
|
+
A = ((O = d.value) == null ? void 0 : O.del_ena_flg) === 0;
|
10343
10347
|
break;
|
10344
10348
|
}
|
10345
10349
|
break;
|
10346
10350
|
}
|
10347
|
-
return
|
10351
|
+
return A;
|
10348
10352
|
}), p = computed(() => {
|
10349
|
-
var P, N, U,
|
10350
|
-
let
|
10353
|
+
var P, N, U, D;
|
10354
|
+
let A = " ";
|
10351
10355
|
if (e.kgPlaceholder)
|
10352
|
-
|
10356
|
+
A = e.kgPlaceholder;
|
10353
10357
|
else
|
10354
10358
|
switch (e.kgContext) {
|
10355
10359
|
case KG_FORM_CONTEXT.SEARCH:
|
10356
|
-
|
10360
|
+
A = s.t((N = (P = u.value) == null ? void 0 : P.placeholder) != null ? N : " ").value;
|
10357
10361
|
break;
|
10358
10362
|
case KG_FORM_CONTEXT.SUBMIT:
|
10359
|
-
|
10363
|
+
A = s.t((D = (U = d.value) == null ? void 0 : U.placeholder) != null ? D : " ").value;
|
10360
10364
|
break;
|
10361
10365
|
}
|
10362
|
-
return
|
10366
|
+
return A;
|
10363
10367
|
}), g = computed(() => {
|
10364
|
-
var P, N, U,
|
10365
|
-
let
|
10368
|
+
var P, N, U, D, O, R, G, F, K, x;
|
10369
|
+
let A = 6;
|
10366
10370
|
if (e.kgSpan !== void 0)
|
10367
|
-
|
10371
|
+
A = e.kgSpan;
|
10368
10372
|
else
|
10369
10373
|
switch (e.kgContext) {
|
10370
10374
|
case KG_FORM_CONTEXT.SEARCH:
|
10371
|
-
|
10375
|
+
A = (N = (P = u.value) == null ? void 0 : P.width) != null ? N : 6;
|
10372
10376
|
break;
|
10373
10377
|
case KG_FORM_CONTEXT.SUBMIT:
|
10374
10378
|
switch (!0) {
|
10375
10379
|
case s.isCreating.value:
|
10376
|
-
|
10380
|
+
A = (D = (U = d.value) == null ? void 0 : U.crt_width) != null ? D : 6;
|
10377
10381
|
break;
|
10378
10382
|
case s.isUpdating.value:
|
10379
|
-
|
10383
|
+
A = (R = (O = d.value) == null ? void 0 : O.upt_width) != null ? R : 6;
|
10380
10384
|
break;
|
10381
10385
|
case s.isCopying.value:
|
10382
|
-
|
10386
|
+
A = (F = (G = d.value) == null ? void 0 : G.cpy_width) != null ? F : 6;
|
10383
10387
|
break;
|
10384
10388
|
case s.isDeleting.value:
|
10385
|
-
|
10389
|
+
A = (x = (K = d.value) == null ? void 0 : K.del_width) != null ? x : 6;
|
10386
10390
|
break;
|
10387
10391
|
}
|
10388
10392
|
}
|
10389
|
-
return Math.min(24, Math.max(1,
|
10393
|
+
return Math.min(24, Math.max(1, A));
|
10390
10394
|
}), b = computed(() => {
|
10391
|
-
var U,
|
10392
|
-
const
|
10393
|
-
if (
|
10395
|
+
var U, D;
|
10396
|
+
const A = get(M.value, "$el.parentElement");
|
10397
|
+
if (A && !((U = A.classList) != null && U.contains("ant-row")))
|
10394
10398
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
10395
10399
|
let P = {};
|
10396
|
-
const N = Math.abs(Number.parseInt((
|
10400
|
+
const N = Math.abs(Number.parseInt((D = get(M.value, "$el.parentElement.style.marginLeft")) != null ? D : "0px"));
|
10397
10401
|
return Number.isNaN(N) || (P = {
|
10398
10402
|
paddingLeft: `${N}px !important`,
|
10399
10403
|
paddingRight: `${N}px !important`
|
10400
10404
|
}), P;
|
10401
10405
|
}), E = computed(() => {
|
10402
|
-
var P, N, U,
|
10403
|
-
let
|
10404
|
-
switch (i.value && (
|
10406
|
+
var P, N, U, D;
|
10407
|
+
let A = "kg-form-item";
|
10408
|
+
switch (i.value && (A += " kg-form-item-lookup"), e.kgContext) {
|
10405
10409
|
case KG_FORM_CONTEXT.SEARCH:
|
10406
10410
|
switch (!0) {
|
10407
10411
|
case ((P = u.value) == null ? void 0 : P.vis_flg) === 0:
|
10408
|
-
|
10412
|
+
A += " kg-form-item--invisible";
|
10409
10413
|
break;
|
10410
10414
|
}
|
10411
10415
|
break;
|
@@ -10413,16 +10417,16 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10413
10417
|
switch (!0) {
|
10414
10418
|
case (s.isCreating.value && ((N = d.value) == null ? void 0 : N.crt_vis_flg) === 0):
|
10415
10419
|
case (s.isUpdating.value && ((U = d.value) == null ? void 0 : U.upt_vis_flg) === 0):
|
10416
|
-
case (s.isCopying.value && ((
|
10417
|
-
|
10420
|
+
case (s.isCopying.value && ((D = d.value) == null ? void 0 : D.cpy_vis_flg) === 0):
|
10421
|
+
A += " kg-form-item--invisible";
|
10418
10422
|
break;
|
10419
10423
|
}
|
10420
10424
|
break;
|
10421
10425
|
}
|
10422
|
-
return
|
10426
|
+
return A;
|
10423
10427
|
}), C = computed(() => {
|
10424
10428
|
var P;
|
10425
|
-
const
|
10429
|
+
const A = {
|
10426
10430
|
...e,
|
10427
10431
|
value: (P = a.value) == null ? void 0 : P[e.kgVarName],
|
10428
10432
|
"onUpdate:value": (N) => {
|
@@ -10438,34 +10442,34 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10438
10442
|
case KG_FORM_ITEM_TYPE.SELECT:
|
10439
10443
|
break;
|
10440
10444
|
case KG_FORM_ITEM_TYPE.SELECT_MULTIPLE:
|
10441
|
-
|
10445
|
+
A.kgMode = "multiple";
|
10442
10446
|
break;
|
10443
10447
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
10444
10448
|
break;
|
10445
10449
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
10446
|
-
|
10450
|
+
A.kgShowTime = !1;
|
10447
10451
|
break;
|
10448
10452
|
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
10449
|
-
|
10453
|
+
A.kgShowTime = !1;
|
10450
10454
|
break;
|
10451
10455
|
case KG_FORM_ITEM_TYPE.DATE_TIME:
|
10452
|
-
|
10456
|
+
A.kgPicker = "time";
|
10453
10457
|
break;
|
10454
10458
|
case KG_FORM_ITEM_TYPE.DATE_TIME_RANGE:
|
10455
|
-
|
10459
|
+
A.kgPicker = "time";
|
10456
10460
|
break;
|
10457
10461
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
10458
|
-
|
10462
|
+
A.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
10459
10463
|
break;
|
10460
10464
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
10461
|
-
|
10465
|
+
A.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
10462
10466
|
break;
|
10463
10467
|
}
|
10464
|
-
return
|
10465
|
-
}), T = computed(() => encodeURIComponent(`${e.kgContext}~${s.formID}~${e.kgVarName}`)),
|
10468
|
+
return A;
|
10469
|
+
}), T = computed(() => encodeURIComponent(`${e.kgContext}~${s.formID}~${e.kgVarName}`)), M = ref(null);
|
10466
10470
|
function k() {
|
10467
10471
|
if (t.control) {
|
10468
|
-
const
|
10472
|
+
const A = {
|
10469
10473
|
frm_id: s.formID,
|
10470
10474
|
varName: e.kgVarName,
|
10471
10475
|
props: C,
|
@@ -10474,7 +10478,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10474
10478
|
varProfileDetail: u,
|
10475
10479
|
varSubmitField: d
|
10476
10480
|
};
|
10477
|
-
return t.control(
|
10481
|
+
return t.control(A);
|
10478
10482
|
}
|
10479
10483
|
switch (v.value) {
|
10480
10484
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
@@ -10509,9 +10513,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10509
10513
|
return createVNode(KgFormItemInput, C.value, null);
|
10510
10514
|
}
|
10511
10515
|
}
|
10512
|
-
function
|
10513
|
-
var
|
10514
|
-
return ((
|
10516
|
+
function V() {
|
10517
|
+
var A;
|
10518
|
+
return ((A = s.currentVarProfileMaster.value) == null ? void 0 : A.dyn_flg) !== 1 ? null : createVNode(Form.ItemRest, null, {
|
10515
10519
|
default: () => {
|
10516
10520
|
var P;
|
10517
10521
|
return [createVNode(Select, {
|
@@ -10536,14 +10540,14 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10536
10540
|
}
|
10537
10541
|
});
|
10538
10542
|
}
|
10539
|
-
function
|
10543
|
+
function w() {
|
10540
10544
|
return e.kgShowLabel ? createVNode("span", {
|
10541
10545
|
title: s.t(e.kgVarName).value
|
10542
10546
|
}, [s.t(e.kgVarName).value]) : null;
|
10543
10547
|
}
|
10544
10548
|
function I() {
|
10545
|
-
var
|
10546
|
-
return !i.value || !((
|
10549
|
+
var A;
|
10550
|
+
return !i.value || !((A = i.value) != null && A.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
10547
10551
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
10548
10552
|
kgDisabled: y.value,
|
10549
10553
|
kgLookupID: i.value.lkp_id
|
@@ -10551,15 +10555,15 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10551
10555
|
});
|
10552
10556
|
}
|
10553
10557
|
return () => {
|
10554
|
-
var
|
10558
|
+
var A, P;
|
10555
10559
|
return s.isRetrieving.value ? null : createVNode(Col, {
|
10556
|
-
ref:
|
10560
|
+
ref: M,
|
10557
10561
|
span: g.value,
|
10558
10562
|
class: E.value,
|
10559
10563
|
style: b.value,
|
10560
10564
|
"kg-frm_id": s.formID,
|
10561
10565
|
"kg-var_nam": e.kgVarName,
|
10562
|
-
"kg-lkp_id": (
|
10566
|
+
"kg-lkp_id": (A = i.value) == null ? void 0 : A.lkp_id,
|
10563
10567
|
"kg-ret_fld": (P = i.value) == null ? void 0 : P.ret_fld
|
10564
10568
|
}, {
|
10565
10569
|
default: () => [createVNode(Form.Item, {
|
@@ -10568,8 +10572,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10568
10572
|
validateFirst: !0,
|
10569
10573
|
htmlFor: T.value
|
10570
10574
|
}, {
|
10571
|
-
default: () => createVNode(Fragment, null, [
|
10572
|
-
label: () =>
|
10575
|
+
default: () => createVNode(Fragment, null, [V(), k(), I()]),
|
10576
|
+
label: () => w()
|
10573
10577
|
})]
|
10574
10578
|
});
|
10575
10579
|
};
|
@@ -10607,8 +10611,9 @@ let store$6 = null;
|
|
10607
10611
|
const useKgFormStore = () => (store$6 || (store$6 = defineStore("KgForm", {
|
10608
10612
|
state: () => ({
|
10609
10613
|
selectChangeListenersMap: /* @__PURE__ */ new Map(),
|
10610
|
-
|
10611
|
-
lookupBeforeOkListenersMap: /* @__PURE__ */ new Map()
|
10614
|
+
lookupBeforeOpenListenersMap: /* @__PURE__ */ new Map(),
|
10615
|
+
lookupBeforeOkListenersMap: /* @__PURE__ */ new Map(),
|
10616
|
+
lookupOkListenersMap: /* @__PURE__ */ new Map()
|
10612
10617
|
}),
|
10613
10618
|
getters: {},
|
10614
10619
|
actions: {
|
@@ -10620,6 +10625,12 @@ const useKgFormStore = () => (store$6 || (store$6 = defineStore("KgForm", {
|
|
10620
10625
|
this.selectChangeListenersMap.set(e, [...a != null ? a : [], r]);
|
10621
10626
|
}
|
10622
10627
|
break;
|
10628
|
+
case "lookupBeforeOpen":
|
10629
|
+
{
|
10630
|
+
const a = this.lookupBeforeOpenListenersMap.get(e);
|
10631
|
+
this.lookupBeforeOpenListenersMap.set(e, [...a != null ? a : [], r]);
|
10632
|
+
}
|
10633
|
+
break;
|
10623
10634
|
case "lookupBeforeOk":
|
10624
10635
|
{
|
10625
10636
|
const a = this.lookupBeforeOkListenersMap.get(e);
|
@@ -10643,6 +10654,13 @@ const useKgFormStore = () => (store$6 || (store$6 = defineStore("KgForm", {
|
|
10643
10654
|
} else
|
10644
10655
|
this.selectChangeListenersMap.set(e, []);
|
10645
10656
|
break;
|
10657
|
+
case "lookupBeforeOpen":
|
10658
|
+
if (r) {
|
10659
|
+
const a = this.lookupBeforeOpenListenersMap.get(e);
|
10660
|
+
this.lookupBeforeOpenListenersMap.set(e, without$1(a, r));
|
10661
|
+
} else
|
10662
|
+
this.lookupBeforeOpenListenersMap.set(e, []);
|
10663
|
+
break;
|
10646
10664
|
case "lookupBeforeOk":
|
10647
10665
|
if (r) {
|
10648
10666
|
const a = this.lookupBeforeOkListenersMap.get(e);
|
@@ -10665,6 +10683,9 @@ const useKgFormStore = () => (store$6 || (store$6 = defineStore("KgForm", {
|
|
10665
10683
|
case "selectChange":
|
10666
10684
|
a = this.selectChangeListenersMap.get(e);
|
10667
10685
|
break;
|
10686
|
+
case "lookupBeforeOpen":
|
10687
|
+
a = this.lookupBeforeOpenListenersMap.get(e);
|
10688
|
+
break;
|
10668
10689
|
case "lookupBeforeOk":
|
10669
10690
|
a = this.lookupBeforeOkListenersMap.get(e);
|
10670
10691
|
break;
|
@@ -10690,6 +10711,7 @@ function useKgForm(e) {
|
|
10690
10711
|
formID: t.formID,
|
10691
10712
|
store: r,
|
10692
10713
|
onSelectChange: onEventFactory(t.formID, r, "selectChange"),
|
10714
|
+
onLookupBeforeOpen: onEventFactory(t.formID, r, "lookupBeforeOpen"),
|
10693
10715
|
onLookupBeforeOk: onEventFactory(t.formID, r, "lookupBeforeOk"),
|
10694
10716
|
onLookupOk: onEventFactory(t.formID, r, "lookupOk")
|
10695
10717
|
};
|
@@ -10698,6 +10720,7 @@ KgForm.Item = KgFormItem;
|
|
10698
10720
|
let store$5 = null;
|
10699
10721
|
const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
10700
10722
|
state: () => ({
|
10723
|
+
beforeOpenListenersMap: /* @__PURE__ */ new Map(),
|
10701
10724
|
openListenersMap: /* @__PURE__ */ new Map(),
|
10702
10725
|
beforeOkListenersMap: /* @__PURE__ */ new Map(),
|
10703
10726
|
afterValidateListenersMap: /* @__PURE__ */ new Map(),
|
@@ -10744,10 +10767,16 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
10744
10767
|
dispose(e) {
|
10745
10768
|
if (!e)
|
10746
10769
|
return KgLogger.error("formID \u4E3A\u7A7A."), null;
|
10747
|
-
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.isLoadingMap.delete(e), this.modelMap.delete(e), this.formRefMap.delete(e), this.rulesMap.delete(e);
|
10770
|
+
this.beforeOpenListenersMap.delete(e), 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.isLoadingMap.delete(e), this.modelMap.delete(e), this.formRefMap.delete(e), this.rulesMap.delete(e);
|
10748
10771
|
},
|
10749
10772
|
addEventListener(e, t, r) {
|
10750
10773
|
switch (t) {
|
10774
|
+
case "beforeOpen":
|
10775
|
+
{
|
10776
|
+
const a = this.beforeOpenListenersMap.get(e);
|
10777
|
+
this.beforeOpenListenersMap.set(e, [...a != null ? a : [], r]);
|
10778
|
+
}
|
10779
|
+
break;
|
10751
10780
|
case "open":
|
10752
10781
|
{
|
10753
10782
|
const a = this.openListenersMap.get(e);
|
@@ -10794,6 +10823,13 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
10794
10823
|
},
|
10795
10824
|
removeEventListener(e, t, r) {
|
10796
10825
|
switch (t) {
|
10826
|
+
case "beforeOpen":
|
10827
|
+
if (r) {
|
10828
|
+
const a = this.beforeOpenListenersMap.get(e);
|
10829
|
+
this.beforeOpenListenersMap.set(e, without$1(a, r));
|
10830
|
+
} else
|
10831
|
+
this.beforeOpenListenersMap.set(e, []);
|
10832
|
+
break;
|
10797
10833
|
case "open":
|
10798
10834
|
if (r) {
|
10799
10835
|
const a = this.openListenersMap.get(e);
|
@@ -10848,6 +10884,9 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
10848
10884
|
emit(e, t, r) {
|
10849
10885
|
let a, n = Promise.resolve(!1);
|
10850
10886
|
switch (t) {
|
10887
|
+
case "beforeOpen":
|
10888
|
+
a = this.beforeOpenListenersMap.get(e);
|
10889
|
+
break;
|
10851
10890
|
case "open":
|
10852
10891
|
a = this.openListenersMap.get(e);
|
10853
10892
|
break;
|
@@ -10937,6 +10976,7 @@ function useKgSubmit(e) {
|
|
10937
10976
|
formRef: l,
|
10938
10977
|
rules: o,
|
10939
10978
|
displayType: n,
|
10979
|
+
onBeforeOpen: onEventFactory(t.formID, r, "beforeOpen"),
|
10940
10980
|
onOpen: onEventFactory(t.formID, r, "open"),
|
10941
10981
|
onBeforeOk: onEventFactory(t.formID, r, "beforeOk"),
|
10942
10982
|
onAfterValidate: onEventFactory(t.formID, r, "afterValidate"),
|
@@ -10970,8 +11010,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10970
11010
|
}) => {
|
10971
11011
|
const u = s.store.getVarSubmitConfig(s.formID);
|
10972
11012
|
return o = watch(c, (d) => {
|
10973
|
-
var m, v, y, p, g, b, E, C, T,
|
10974
|
-
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (y = u == null ? void 0 : u.fullscreen_flg) != null ? y : 1, d.dft_fullscreen_flg = (p = u == null ? void 0 : u.dft_fullscreen_flg) != null ? p : 0, d.responsive_flg = (g = u == null ? void 0 : u.responsive_flg) != null ? g : 1, d.max_width = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (E = u == null ? void 0 : u.min_width) != null ? E : DEFAULT_MIN_WIDTH, d.dft_width = (C = u == null ? void 0 : u.dft_width) != null ? C : DEFAULT_WIDTH, d.layout = (T = u == null ? void 0 : u.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (
|
11013
|
+
var m, v, y, p, g, b, E, C, T, M, k, V;
|
11014
|
+
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (y = u == null ? void 0 : u.fullscreen_flg) != null ? y : 1, d.dft_fullscreen_flg = (p = u == null ? void 0 : u.dft_fullscreen_flg) != null ? p : 0, d.responsive_flg = (g = u == null ? void 0 : u.responsive_flg) != null ? g : 1, d.max_width = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (E = u == null ? void 0 : u.min_width) != null ? E : DEFAULT_MIN_WIDTH, d.dft_width = (C = u == null ? void 0 : u.dft_width) != null ? C : DEFAULT_WIDTH, d.layout = (T = u == null ? void 0 : u.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (M = u == null ? void 0 : u.label_col) != null ? M : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (k = u == null ? void 0 : u.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, d.display_type = (V = u == null ? void 0 : u.display_type) != null ? V : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
10975
11015
|
}, {
|
10976
11016
|
immediate: !0
|
10977
11017
|
}), KgUtil.hideLoading(), !1;
|
@@ -11074,7 +11114,7 @@ function _useFormModel$1() {
|
|
11074
11114
|
}
|
11075
11115
|
const d = r.selectedRow.value;
|
11076
11116
|
u.forEach((m) => {
|
11077
|
-
var y, p, g, b, E, C, T,
|
11117
|
+
var y, p, g, b, E, C, T, M;
|
11078
11118
|
const v = (y = m.var_nam) != null ? y : "";
|
11079
11119
|
switch (c.value[v] = void 0, !0) {
|
11080
11120
|
case t.isCreating.value:
|
@@ -11087,7 +11127,7 @@ function _useFormModel$1() {
|
|
11087
11127
|
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (C = (E = m.cpy_dft_val) != null ? E : d == null ? void 0 : d[v]) != null ? C : void 0, "CP");
|
11088
11128
|
break;
|
11089
11129
|
case t.isDeleting.value:
|
11090
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (
|
11130
|
+
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (M = (T = m.del_dft_val) != null ? T : d == null ? void 0 : d[v]) != null ? M : void 0, "D");
|
11091
11131
|
break;
|
11092
11132
|
}
|
11093
11133
|
}), a.store.setModel(t.formID, c.value);
|
@@ -11236,66 +11276,66 @@ const getProps$p = () => ({
|
|
11236
11276
|
inject(DI_KG_VAR__KG_PROPS, null);
|
11237
11277
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
|
11238
11278
|
l.onSubmitSave(async () => (await se(), !1)), l.onSubmitCancel(async () => (await ie(), !1)), _useFormModel$1();
|
11239
|
-
const u = computed(() => s.isDeleting.value && T.value.length === 0 &&
|
11240
|
-
var $,
|
11279
|
+
const u = computed(() => s.isDeleting.value && T.value.length === 0 && M.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), m = computed(() => s.store.getVarSubmitConfig(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), p = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), T = computed(() => {
|
11280
|
+
var $, B, Y;
|
11241
11281
|
switch (!0) {
|
11242
11282
|
case s.isCreating.value:
|
11243
11283
|
return ($ = v.value) != null ? $ : [];
|
11244
11284
|
case s.isUpdating.value:
|
11245
|
-
return (
|
11285
|
+
return (B = p.value) != null ? B : [];
|
11246
11286
|
case s.isCopying.value:
|
11247
|
-
return (
|
11287
|
+
return (Y = b.value) != null ? Y : [];
|
11248
11288
|
case s.isDeleting.value:
|
11249
11289
|
return [];
|
11250
11290
|
}
|
11251
11291
|
return [];
|
11252
|
-
}),
|
11253
|
-
var $,
|
11292
|
+
}), M = computed(() => {
|
11293
|
+
var $, B, Y, J;
|
11254
11294
|
switch (!0) {
|
11255
11295
|
case s.isCreating.value:
|
11256
11296
|
return ($ = y.value) != null ? $ : [];
|
11257
11297
|
case s.isUpdating.value:
|
11258
|
-
return (
|
11298
|
+
return (B = g.value) != null ? B : [];
|
11259
11299
|
case s.isCopying.value:
|
11260
|
-
return (
|
11300
|
+
return (Y = E.value) != null ? Y : [];
|
11261
11301
|
case s.isDeleting.value:
|
11262
11302
|
return (J = C.value) != null ? J : [];
|
11263
11303
|
}
|
11264
11304
|
return [];
|
11265
|
-
}), k = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)),
|
11305
|
+
}), k = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), V = computed(() => k.value || d.value), w = computed(() => d.value), I = ref({
|
11266
11306
|
kgWidth: 0
|
11267
|
-
}),
|
11307
|
+
}), A = computed(() => {
|
11268
11308
|
var $;
|
11269
11309
|
return !!(u.value || F.isFullscreen || (($ = m.value) == null ? void 0 : $.resizable_flg) === 0);
|
11270
11310
|
}), P = computed(() => {
|
11271
|
-
var $,
|
11272
|
-
return u.value ? 398 : (
|
11311
|
+
var $, B;
|
11312
|
+
return u.value ? 398 : (B = ($ = m.value) == null ? void 0 : $.min_width) != null ? B : DEFAULT_MIN_WIDTH;
|
11273
11313
|
}), N = computed(() => {
|
11274
|
-
var $,
|
11275
|
-
return u.value ? 398 : (
|
11276
|
-
}), U = computed(() => u.value ? 398 : I.value.kgWidth),
|
11277
|
-
_useResizeObserver$1(
|
11278
|
-
const
|
11314
|
+
var $, B;
|
11315
|
+
return u.value ? 398 : (B = ($ = m.value) == null ? void 0 : $.max_width) != null ? B : DEFAULT_MAX_WIDTH;
|
11316
|
+
}), U = computed(() => u.value ? 398 : I.value.kgWidth), D = ref(null);
|
11317
|
+
_useResizeObserver$1(D);
|
11318
|
+
const O = _useTitle(), R = computed(() => u.value ? 400 : I.value.kgWidth && I.value.kgWidth > 0 ? "auto" : 0), G = computed(() => R.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), F = reactive({
|
11279
11319
|
isFullscreen: !1
|
11280
11320
|
}), {
|
11281
|
-
getClass:
|
11321
|
+
getClass: K
|
11282
11322
|
} = _useClass(e, F), {
|
11283
|
-
getLayout:
|
11323
|
+
getLayout: x
|
11284
11324
|
} = _useLayout(), {
|
11285
|
-
getDefaultWidth:
|
11286
|
-
} = _useDefaultWidth(),
|
11287
|
-
var $,
|
11288
|
-
switch (
|
11325
|
+
getDefaultWidth: W
|
11326
|
+
} = _useDefaultWidth(), X = computed(() => {
|
11327
|
+
var $, B, Y;
|
11328
|
+
switch (x.value) {
|
11289
11329
|
case "horizontal":
|
11290
11330
|
switch (($ = m.value) == null ? void 0 : $.label_col_unit) {
|
11291
11331
|
case KG_WIDTH_UNIT.SPAN:
|
11292
11332
|
return {
|
11293
|
-
span: (
|
11333
|
+
span: (B = m.value) == null ? void 0 : B.label_col
|
11294
11334
|
};
|
11295
11335
|
default:
|
11296
11336
|
return {
|
11297
11337
|
style: {
|
11298
|
-
width: `${(
|
11338
|
+
width: `${(Y = m.value) == null ? void 0 : Y.label_col}px`
|
11299
11339
|
}
|
11300
11340
|
};
|
11301
11341
|
}
|
@@ -11303,13 +11343,13 @@ const getProps$p = () => ({
|
|
11303
11343
|
return;
|
11304
11344
|
}
|
11305
11345
|
}), z = computed(() => {
|
11306
|
-
var $,
|
11307
|
-
switch (
|
11346
|
+
var $, B;
|
11347
|
+
switch (x.value) {
|
11308
11348
|
case "horizontal":
|
11309
11349
|
switch (($ = m.value) == null ? void 0 : $.label_col_unit) {
|
11310
11350
|
case KG_WIDTH_UNIT.SPAN:
|
11311
11351
|
return {
|
11312
|
-
span: 24 - ((
|
11352
|
+
span: 24 - ((B = m.value) == null ? void 0 : B.label_col)
|
11313
11353
|
};
|
11314
11354
|
default:
|
11315
11355
|
return;
|
@@ -11318,33 +11358,42 @@ const getProps$p = () => ({
|
|
11318
11358
|
return;
|
11319
11359
|
}
|
11320
11360
|
});
|
11321
|
-
watch(G, ($,
|
11322
|
-
$ === !0 &&
|
11361
|
+
watch(G, ($, B) => {
|
11362
|
+
$ === !0 && ee(), B === !0 && $ === !1 && re();
|
11323
11363
|
}, {
|
11324
11364
|
immediate: !0
|
11325
|
-
}), watch(
|
11365
|
+
}), watch(W, ($) => {
|
11326
11366
|
$ && (I.value.kgWidth = $);
|
11327
11367
|
}, {
|
11328
11368
|
immediate: !0
|
11329
11369
|
});
|
11330
|
-
function
|
11331
|
-
|
11332
|
-
|
11333
|
-
|
11334
|
-
|
11335
|
-
|
11336
|
-
|
11337
|
-
|
11338
|
-
|
11339
|
-
|
11340
|
-
|
11341
|
-
|
11342
|
-
|
11343
|
-
|
11344
|
-
|
11370
|
+
async function ee() {
|
11371
|
+
if (!await i.store.emit(s.formID, "beforeOpen", {
|
11372
|
+
isCreating: s.isCreating.value,
|
11373
|
+
isUpdating: s.isUpdating.value,
|
11374
|
+
isCopying: s.isCopying.value,
|
11375
|
+
isDeleting: s.isDeleting.value,
|
11376
|
+
row: o.selectedRow.value
|
11377
|
+
}))
|
11378
|
+
return new Promise((B, Y) => {
|
11379
|
+
var Q;
|
11380
|
+
const J = watch(i.model, async (Z) => {
|
11381
|
+
Z && Object.keys(Z).length > 0 && (setTimeout(() => J()), await i.store.emit(s.formID, "open", {
|
11382
|
+
isCreating: s.isCreating.value,
|
11383
|
+
isUpdating: s.isUpdating.value,
|
11384
|
+
isCopying: s.isCopying.value,
|
11385
|
+
isDeleting: s.isDeleting.value,
|
11386
|
+
row: o.selectedRow.value,
|
11387
|
+
model: i.model
|
11388
|
+
}), B());
|
11389
|
+
}, {
|
11390
|
+
immediate: !0
|
11391
|
+
});
|
11392
|
+
((Q = m.value) == null ? void 0 : Q.dft_fullscreen_flg) === 1 && !u.value && (F.isFullscreen = !0);
|
11393
|
+
});
|
11345
11394
|
}
|
11346
11395
|
async function re() {
|
11347
|
-
I.value.kgWidth =
|
11396
|
+
I.value.kgWidth = W.value, F.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
|
11348
11397
|
}
|
11349
11398
|
function ie() {
|
11350
11399
|
switch (!0) {
|
@@ -11363,7 +11412,7 @@ const getProps$p = () => ({
|
|
11363
11412
|
}
|
11364
11413
|
}
|
11365
11414
|
async function se() {
|
11366
|
-
var $,
|
11415
|
+
var $, B;
|
11367
11416
|
try {
|
11368
11417
|
if (await i.store.emit(s.formID, "beforeOk", {
|
11369
11418
|
isCreating: s.isCreating.value,
|
@@ -11377,10 +11426,10 @@ const getProps$p = () => ({
|
|
11377
11426
|
return;
|
11378
11427
|
try {
|
11379
11428
|
await (($ = i.formRef.value) == null ? void 0 : $.validate());
|
11380
|
-
} catch (
|
11381
|
-
KgUtil.throwIfNotFormError(
|
11429
|
+
} catch (Q) {
|
11430
|
+
KgUtil.throwIfNotFormError(Q);
|
11382
11431
|
}
|
11383
|
-
if (await ((
|
11432
|
+
if (await ((B = i.formRef.value) == null ? void 0 : B.validate()), await i.store.emit(s.formID, "afterValidate", {
|
11384
11433
|
isCreating: s.isCreating.value,
|
11385
11434
|
isUpdating: s.isUpdating.value,
|
11386
11435
|
isCopying: s.isCopying.value,
|
@@ -11404,13 +11453,13 @@ const getProps$p = () => ({
|
|
11404
11453
|
await le();
|
11405
11454
|
break;
|
11406
11455
|
}
|
11407
|
-
} catch (
|
11408
|
-
KgUtil.throwIfNotFormError(
|
11456
|
+
} catch (Y) {
|
11457
|
+
KgUtil.throwIfNotFormError(Y);
|
11409
11458
|
}
|
11410
11459
|
}
|
11411
11460
|
async function ge() {
|
11412
|
-
var
|
11413
|
-
const $ = (
|
11461
|
+
var B, Y, J, Q, Z, ae;
|
11462
|
+
const $ = (B = s.varButtonCreate.value) == null ? void 0 : B.cmd;
|
11414
11463
|
if (!$) {
|
11415
11464
|
KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11416
11465
|
VarButton: s.varButtonCreate.value
|
@@ -11419,7 +11468,7 @@ const getProps$p = () => ({
|
|
11419
11468
|
}
|
11420
11469
|
s.store.setIsCreatingRequesting(s.formID, !0);
|
11421
11470
|
try {
|
11422
|
-
let te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (
|
11471
|
+
let te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (Y = s.varButtonCreate.value) == null ? void 0 : Y.cmd_prm) != null ? J : ""), s.formID, r)), oe = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
|
11423
11472
|
if (await i.store.emit(s.formID, "beforeRequest", {
|
11424
11473
|
isCreating: s.isCreating.value,
|
11425
11474
|
isUpdating: s.isUpdating.value,
|
@@ -11433,11 +11482,11 @@ const getProps$p = () => ({
|
|
11433
11482
|
}))
|
11434
11483
|
return;
|
11435
11484
|
await httpClient().request({
|
11436
|
-
method: (
|
11485
|
+
method: (Z = (Q = s.varButtonCreate.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
11437
11486
|
url: $,
|
11438
11487
|
params: te.value,
|
11439
11488
|
data: oe.value
|
11440
|
-
}), ((ae = s.varButtonCreate.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(
|
11489
|
+
}), ((ae = s.varButtonCreate.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(O.title.value + n.t("kg.succeed")), await i.store.emit(s.formID, "ok", {
|
11441
11490
|
isCreating: s.isCreating.value,
|
11442
11491
|
isUpdating: s.isUpdating.value,
|
11443
11492
|
isCopying: s.isCopying.value,
|
@@ -11452,8 +11501,8 @@ const getProps$p = () => ({
|
|
11452
11501
|
}
|
11453
11502
|
}
|
11454
11503
|
async function ce() {
|
11455
|
-
var
|
11456
|
-
const $ = (
|
11504
|
+
var B, Y, J, Q, Z, ae;
|
11505
|
+
const $ = (B = s.varButtonUpdate.value) == null ? void 0 : B.cmd;
|
11457
11506
|
if (!$) {
|
11458
11507
|
KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11459
11508
|
VarButton: s.varButtonUpdate.value
|
@@ -11462,7 +11511,7 @@ const getProps$p = () => ({
|
|
11462
11511
|
}
|
11463
11512
|
try {
|
11464
11513
|
s.store.setIsUpdatingRequesting(s.formID, !0);
|
11465
|
-
let te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (
|
11514
|
+
let te = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (Y = s.varButtonUpdate.value) == null ? void 0 : Y.cmd_prm) != null ? J : ""), s.formID, r)), oe = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
|
11466
11515
|
if (await i.store.emit(s.formID, "beforeRequest", {
|
11467
11516
|
isCreating: s.isCreating.value,
|
11468
11517
|
isUpdating: s.isUpdating.value,
|
@@ -11476,7 +11525,7 @@ const getProps$p = () => ({
|
|
11476
11525
|
}))
|
11477
11526
|
return;
|
11478
11527
|
await httpClient().request({
|
11479
|
-
method: (
|
11528
|
+
method: (Z = (Q = s.varButtonUpdate.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
11480
11529
|
url: $,
|
11481
11530
|
params: te.value,
|
11482
11531
|
data: oe.value
|
@@ -11495,8 +11544,8 @@ const getProps$p = () => ({
|
|
11495
11544
|
}
|
11496
11545
|
}
|
11497
11546
|
async function ne() {
|
11498
|
-
var
|
11499
|
-
const $ = (
|
11547
|
+
var B, Y, J, Q, Z, ae, te, oe;
|
11548
|
+
const $ = (B = s.varButtonCopy.value) == null ? void 0 : B.cmd;
|
11500
11549
|
if (!$) {
|
11501
11550
|
KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11502
11551
|
VarButton: s.varButtonCopy.value
|
@@ -11505,11 +11554,11 @@ const getProps$p = () => ({
|
|
11505
11554
|
}
|
11506
11555
|
try {
|
11507
11556
|
s.store.setIsCopyingRequesting(s.formID, !0);
|
11508
|
-
let ue = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (
|
11509
|
-
...(
|
11557
|
+
let ue = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (Y = s.varButtonCopy.value) == null ? void 0 : Y.cmd_prm) != null ? J : ""), s.formID, r)), pe = ref(KgUtil.parseParams({
|
11558
|
+
...(Q = o.selectedFirstRow.value) != null ? Q : {},
|
11510
11559
|
...toRaw(i.model.value)
|
11511
11560
|
}, s.formID, r));
|
11512
|
-
if (((
|
11561
|
+
if (((Z = m.value) == null ? void 0 : Z.cpy_clear_id_flg) !== 0 && delete pe.value.id, await i.store.emit(s.formID, "beforeRequest", {
|
11513
11562
|
isCreating: s.isCreating.value,
|
11514
11563
|
isUpdating: s.isUpdating.value,
|
11515
11564
|
isCopying: s.isCopying.value,
|
@@ -11541,8 +11590,8 @@ const getProps$p = () => ({
|
|
11541
11590
|
}
|
11542
11591
|
}
|
11543
11592
|
async function le() {
|
11544
|
-
var
|
11545
|
-
const $ = (
|
11593
|
+
var B, Y, J, Q, Z, ae, te, oe, ue, pe;
|
11594
|
+
const $ = (B = s.varButtonDelete.value) == null ? void 0 : B.cmd;
|
11546
11595
|
if (!$) {
|
11547
11596
|
KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11548
11597
|
VarButton: s.varButtonDelete.value
|
@@ -11551,8 +11600,8 @@ const getProps$p = () => ({
|
|
11551
11600
|
}
|
11552
11601
|
try {
|
11553
11602
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
11554
|
-
let me = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (
|
11555
|
-
if (((
|
11603
|
+
let me = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (Y = s.varButtonDelete.value) == null ? void 0 : Y.cmd_prm) != null ? J : ""), s.formID, r)), _e = ref((Q = o.selectedRows.value) != null ? Q : []);
|
11604
|
+
if (((Z = s.varButtonDelete.value) == null ? void 0 : Z.del_param_clm) !== "__kg__new_delete_param" && (me = ref({
|
11556
11605
|
ids: (te = (ae = o.selectedRows.value) == null ? void 0 : ae.map((ye) => {
|
11557
11606
|
var he, ve, be;
|
11558
11607
|
return (be = ye[(ve = (he = s.varButtonDelete.value) == null ? void 0 : he.del_param_clm) != null ? ve : "id"]) != null ? be : "";
|
@@ -11594,25 +11643,25 @@ const getProps$p = () => ({
|
|
11594
11643
|
}
|
11595
11644
|
}
|
11596
11645
|
function de($) {
|
11597
|
-
var
|
11598
|
-
const
|
11599
|
-
return isFunction$2(
|
11646
|
+
var Y, J;
|
11647
|
+
const B = (J = (Y = a == null ? void 0 : a.KgSubmit) == null ? void 0 : Y["KgForm.Item"]) == null ? void 0 : J[$.var_nam];
|
11648
|
+
return isFunction$2(B) ? createVNode(KgForm.Item, {
|
11600
11649
|
kgVarName: $.var_nam,
|
11601
11650
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
11602
11651
|
kgRules: i.rules.value[$.var_nam],
|
11603
11652
|
onKgSubmit: se
|
11604
11653
|
}, {
|
11605
11654
|
control: ({
|
11606
|
-
frm_id:
|
11607
|
-
varName:
|
11655
|
+
frm_id: Q,
|
11656
|
+
varName: Z,
|
11608
11657
|
props: ae,
|
11609
11658
|
model: te,
|
11610
11659
|
varVariableConfig: oe,
|
11611
11660
|
varProfileDetail: ue,
|
11612
11661
|
varSubmitField: pe
|
11613
|
-
}) =>
|
11614
|
-
frm_id:
|
11615
|
-
varName:
|
11662
|
+
}) => B({
|
11663
|
+
frm_id: Q,
|
11664
|
+
varName: Z,
|
11616
11665
|
props: ae,
|
11617
11666
|
model: te,
|
11618
11667
|
varVariableConfig: oe,
|
@@ -11627,14 +11676,14 @@ const getProps$p = () => ({
|
|
11627
11676
|
}, null);
|
11628
11677
|
}
|
11629
11678
|
function fe() {
|
11630
|
-
let $,
|
11679
|
+
let $, B;
|
11631
11680
|
return createVNode(KgResizable, {
|
11632
11681
|
kgType: i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
11633
11682
|
kgMinWidth: P.value,
|
11634
11683
|
kgMaxWidth: N.value,
|
11635
11684
|
kgWidth: U.value,
|
11636
|
-
kgDisabled:
|
11637
|
-
"onUpdate:kgWidth": (
|
11685
|
+
kgDisabled: A.value,
|
11686
|
+
"onUpdate:kgWidth": (Y) => I.value.kgWidth = Y
|
11638
11687
|
}, {
|
11639
11688
|
default: () => [createVNode(Spin, {
|
11640
11689
|
spinning: d.value
|
@@ -11642,20 +11691,20 @@ const getProps$p = () => ({
|
|
11642
11691
|
default: () => [createVNode(KgForm, {
|
11643
11692
|
ref: i.formRef,
|
11644
11693
|
model: i.model.value,
|
11645
|
-
layout:
|
11646
|
-
labelCol:
|
11694
|
+
layout: x.value,
|
11695
|
+
labelCol: X.value,
|
11647
11696
|
wrapperCol: z.value
|
11648
11697
|
}, {
|
11649
11698
|
default: () => [createVNode("div", {
|
11650
|
-
ref:
|
11699
|
+
ref: D
|
11651
11700
|
}, [T.value.length > 0 && createVNode(Row, {
|
11652
11701
|
gutter: 12
|
11653
11702
|
}, _isSlot$8($ = T.value.map(de)) ? $ : {
|
11654
11703
|
default: () => [$]
|
11655
|
-
}), T.value.length > 0 &&
|
11704
|
+
}), T.value.length > 0 && M.value.length > 0 && createVNode(Divider, null, null), M.value.length > 0 && createVNode(Row, {
|
11656
11705
|
gutter: 12
|
11657
|
-
}, _isSlot$8(
|
11658
|
-
default: () => [
|
11706
|
+
}, _isSlot$8(B = M.value.map(de)) ? B : {
|
11707
|
+
default: () => [B]
|
11659
11708
|
}), u.value && createVNode("div", {
|
11660
11709
|
style: "text-align: center; padding: 6px 0 12px;"
|
11661
11710
|
}, [n.t("kg.confirmDelete")])])]
|
@@ -11663,29 +11712,29 @@ const getProps$p = () => ({
|
|
11663
11712
|
})]
|
11664
11713
|
});
|
11665
11714
|
}
|
11666
|
-
function
|
11667
|
-
let $,
|
11715
|
+
function L() {
|
11716
|
+
let $, B;
|
11668
11717
|
return createVNode("div", null, [createVNode(Button, {
|
11669
11718
|
type: "primary",
|
11670
|
-
ghost: !
|
11671
|
-
disabled:
|
11719
|
+
ghost: !V.value,
|
11720
|
+
disabled: V.value,
|
11672
11721
|
onClick: ie
|
11673
11722
|
}, _isSlot$8($ = n.t("kg.cancel")) ? $ : {
|
11674
11723
|
default: () => [$]
|
11675
11724
|
}), createVNode(Button, {
|
11676
11725
|
type: "primary",
|
11677
|
-
disabled:
|
11726
|
+
disabled: w.value,
|
11678
11727
|
loading: k.value,
|
11679
11728
|
danger: !!s.isDeleting.value,
|
11680
11729
|
onClick: se
|
11681
|
-
}, _isSlot$8(
|
11682
|
-
default: () => [
|
11730
|
+
}, _isSlot$8(B = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? B : {
|
11731
|
+
default: () => [B]
|
11683
11732
|
})]);
|
11684
11733
|
}
|
11685
11734
|
function H() {
|
11686
11735
|
return createVNode("div", {
|
11687
|
-
title:
|
11688
|
-
}, [
|
11736
|
+
title: O.title.value
|
11737
|
+
}, [O.title.value]);
|
11689
11738
|
}
|
11690
11739
|
function q() {
|
11691
11740
|
return createVNode(KgSubmitHeader, {
|
@@ -11703,14 +11752,14 @@ const getProps$p = () => ({
|
|
11703
11752
|
maskClosable: !1,
|
11704
11753
|
keyboard: !1,
|
11705
11754
|
destroyOnClose: !0,
|
11706
|
-
width:
|
11707
|
-
class:
|
11755
|
+
width: R.value,
|
11756
|
+
class: K.value,
|
11708
11757
|
"kg-frm_id": s.formID
|
11709
11758
|
}, {
|
11710
11759
|
title: H,
|
11711
11760
|
extra: q,
|
11712
11761
|
default: fe,
|
11713
|
-
footer:
|
11762
|
+
footer: L
|
11714
11763
|
});
|
11715
11764
|
}
|
11716
11765
|
}), KgYesOrNo$1 = "", getProps$o = () => ({
|
@@ -12029,31 +12078,31 @@ const getProps$n = () => ({
|
|
12029
12078
|
var T;
|
12030
12079
|
try {
|
12031
12080
|
await ((T = y.value) == null ? void 0 : T.validate());
|
12032
|
-
} catch (
|
12033
|
-
KgUtil.throwIfNotFormError(
|
12081
|
+
} catch (M) {
|
12082
|
+
KgUtil.throwIfNotFormError(M);
|
12034
12083
|
}
|
12035
12084
|
return !1;
|
12036
12085
|
});
|
12037
12086
|
const i = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
|
12038
|
-
var T,
|
12039
|
-
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[o.id.value]) === ((
|
12087
|
+
var T, M, k, V, w, I;
|
12088
|
+
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[o.id.value]) === ((M = o.selectedRow.value) == null ? void 0 : M[o.id.value]) && (!!n.isCreating.value && ((k = c.value) == null ? void 0 : k.crt_flg) === 1 || !!n.isUpdating.value && ((V = c.value) == null ? void 0 : V.upt_flg) === 1 || !!n.isCopying.value && ((w = c.value) == null ? void 0 : w.cpy_flg) === 1 || !!n.isDeleting.value && ((I = c.value) == null ? void 0 : I.del_flg) === 1);
|
12040
12089
|
}), d = computed(() => {
|
12041
|
-
var T,
|
12042
|
-
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[o.id.value]) === ((
|
12090
|
+
var T, M;
|
12091
|
+
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[o.id.value]) === ((M = o.selectedRow.value) == null ? void 0 : M[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);
|
12043
12092
|
}), m = computed(() => {
|
12044
|
-
var
|
12093
|
+
var M, k;
|
12045
12094
|
let T = "kg-table-td";
|
12046
|
-
return ((
|
12095
|
+
return ((M = i.value) == null ? void 0 : M.align) === "center" ? T += " kg-table-td--center" : ((k = i.value) == null ? void 0 : k.align) === "right" && (T += " kg-table-td--right"), u.value && (T += " kg-table-td--submitting"), T;
|
12047
12096
|
}), v = computed(() => {
|
12048
|
-
var
|
12097
|
+
var M, k, V, w, I;
|
12049
12098
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
12050
12099
|
return "";
|
12051
12100
|
let T = e.kgValue;
|
12052
|
-
switch ((
|
12101
|
+
switch ((M = i.value) == null ? void 0 : M.display_type) {
|
12053
12102
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
12054
12103
|
{
|
12055
|
-
const
|
12056
|
-
|
12104
|
+
const A = KgUtil.tryParseJSON((k = i.value) == null ? void 0 : k.display_type_properties);
|
12105
|
+
A.dscFieldName ? T = ((V = e.kgRow) == null ? void 0 : V[A.dscFieldName]) || e.kgValue : T = ((w = e.kgRow) == null ? void 0 : w[`${e.kgVarName}_dsc`]) || ((I = e.kgRow) == null ? void 0 : I[`${e.kgVarName}Dsc`]) || e.kgValue;
|
12057
12106
|
}
|
12058
12107
|
break;
|
12059
12108
|
}
|
@@ -12061,18 +12110,18 @@ const getProps$n = () => ({
|
|
12061
12110
|
`)), T;
|
12062
12111
|
}), y = ref(null);
|
12063
12112
|
function p(T) {
|
12064
|
-
var
|
12113
|
+
var M, k, V;
|
12065
12114
|
if (T.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
12066
|
-
switch ((
|
12115
|
+
switch ((M = i.value) == null ? void 0 : M.display_type) {
|
12067
12116
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
12068
12117
|
T.stopPropagation(), T.preventDefault(), r("kgUpdateLinkClick");
|
12069
12118
|
break;
|
12070
12119
|
case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
|
12071
12120
|
{
|
12072
12121
|
T.stopPropagation(), T.preventDefault();
|
12073
|
-
const
|
12074
|
-
(
|
12075
|
-
path:
|
12122
|
+
const w = KgUtil.tryParseJSON((k = i.value) == null ? void 0 : k.display_type_properties);
|
12123
|
+
(V = a.router.value) == null || V.push({
|
12124
|
+
path: w.path,
|
12076
12125
|
query: e.kgRow
|
12077
12126
|
});
|
12078
12127
|
}
|
@@ -12103,35 +12152,35 @@ const getProps$n = () => ({
|
|
12103
12152
|
});
|
12104
12153
|
}
|
12105
12154
|
function E() {
|
12106
|
-
var T,
|
12155
|
+
var T, M, k, V, w, I, A, P, N, U;
|
12107
12156
|
if (u.value)
|
12108
12157
|
return b();
|
12109
12158
|
switch ((T = i.value) == null ? void 0 : T.display_type) {
|
12110
12159
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
12111
|
-
const
|
12160
|
+
const D = KgUtil.tryParseJSON((M = i.value) == null ? void 0 : M.display_type_properties);
|
12112
12161
|
return createVNode(KgYesOrNo, {
|
12113
|
-
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((k =
|
12114
|
-
kgNilAsFalse:
|
12162
|
+
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((k = D.yValue) != null ? k : 1),
|
12163
|
+
kgNilAsFalse: D.nilAsFalse
|
12115
12164
|
}, null);
|
12116
12165
|
}
|
12117
12166
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
12118
|
-
const
|
12119
|
-
if (
|
12120
|
-
const
|
12121
|
-
return
|
12122
|
-
color: (
|
12123
|
-
}, _isSlot$7(
|
12124
|
-
default: () => [
|
12167
|
+
const D = KgUtil.tryParseJSON((V = i.value) == null ? void 0 : V.display_type_properties), O = isArrayLike(D) && D.find((R) => R.value === e.kgValue);
|
12168
|
+
if (O) {
|
12169
|
+
const R = n.t(O.varName).value;
|
12170
|
+
return R ? createVNode(Tag, {
|
12171
|
+
color: (w = O.color) != null ? w : "default"
|
12172
|
+
}, _isSlot$7(R) ? R : {
|
12173
|
+
default: () => [R]
|
12125
12174
|
}) : C();
|
12126
12175
|
} else
|
12127
12176
|
return C();
|
12128
12177
|
}
|
12129
12178
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
12130
|
-
const
|
12131
|
-
if (
|
12132
|
-
const
|
12179
|
+
const D = KgUtil.tryParseJSON((I = i.value) == null ? void 0 : I.display_type_properties);
|
12180
|
+
if (D.isTag && isArrayLike(D.tagColors)) {
|
12181
|
+
const O = D.tagColors.find((R) => R.value === e.kgValue);
|
12133
12182
|
return v.value ? createVNode(Tag, {
|
12134
|
-
color: (
|
12183
|
+
color: (A = O == null ? void 0 : O.color) != null ? A : "default"
|
12135
12184
|
}, {
|
12136
12185
|
default: () => [v.value]
|
12137
12186
|
}) : C();
|
@@ -12139,11 +12188,11 @@ const getProps$n = () => ({
|
|
12139
12188
|
return C();
|
12140
12189
|
}
|
12141
12190
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
12142
|
-
const
|
12191
|
+
const D = KgUtil.tryParseJSON((P = i.value) == null ? void 0 : P.display_type_properties);
|
12143
12192
|
return createVNode(KgProgressA, {
|
12144
|
-
kgTextWidth:
|
12145
|
-
kgLeft: (N = e.kgRow) == null ? void 0 : N[
|
12146
|
-
kgRight: (U = e.kgRow) == null ? void 0 : U[
|
12193
|
+
kgTextWidth: D.textWidth,
|
12194
|
+
kgLeft: (N = e.kgRow) == null ? void 0 : N[D.leftColumn],
|
12195
|
+
kgRight: (U = e.kgRow) == null ? void 0 : U[D.rightColumn]
|
12147
12196
|
}, null);
|
12148
12197
|
}
|
12149
12198
|
case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
|
@@ -12157,10 +12206,10 @@ const getProps$n = () => ({
|
|
12157
12206
|
}
|
12158
12207
|
}
|
12159
12208
|
function C(T = !1) {
|
12160
|
-
let
|
12161
|
-
return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (
|
12209
|
+
let M = "";
|
12210
|
+
return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (M += "kg-table-td-update-link"), createVNode("pre", {
|
12162
12211
|
innerHTML: v.value,
|
12163
|
-
class:
|
12212
|
+
class: M,
|
12164
12213
|
onClick: p
|
12165
12214
|
}, null);
|
12166
12215
|
}
|
@@ -12257,8 +12306,8 @@ const getProps$m = () => ({
|
|
12257
12306
|
}) => {
|
12258
12307
|
const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
12259
12308
|
return l = watch(i, (u) => {
|
12260
|
-
var d, m, v, y, p, g, b, E, C, T,
|
12261
|
-
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (y = c == null ? void 0 : c.show_check_column_flg) != null ? y : 0, u.show_bottom_left_flg = (p = c == null ? void 0 : c.show_bottom_left_flg) != null ? p : 1, u.show_bottom_right_flg = (g = c == null ? void 0 : c.show_bottom_right_flg) != null ? g : 1, u.convert_sort_field_to_under_score_flg = (b = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? b : 0, u.pg_size_opts = (E = c == null ? void 0 : c.pg_size_opts) != null ? E : "[10, 20, 50, 100]", u.pg_size_opt = (C = c == null ? void 0 : c.pg_size_opt) != null ? C : 10, u.cmd_prm = (T = c == null ? void 0 : c.cmd_prm) != null ? T : void 0, u.button_display_type = (
|
12309
|
+
var d, m, v, y, p, g, b, E, C, T, M;
|
12310
|
+
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (y = c == null ? void 0 : c.show_check_column_flg) != null ? y : 0, u.show_bottom_left_flg = (p = c == null ? void 0 : c.show_bottom_left_flg) != null ? p : 1, u.show_bottom_right_flg = (g = c == null ? void 0 : c.show_bottom_right_flg) != null ? g : 1, u.convert_sort_field_to_under_score_flg = (b = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? b : 0, u.pg_size_opts = (E = c == null ? void 0 : c.pg_size_opts) != null ? E : "[10, 20, 50, 100]", u.pg_size_opt = (C = c == null ? void 0 : c.pg_size_opt) != null ? C : 10, u.cmd_prm = (T = c == null ? void 0 : c.cmd_prm) != null ? T : void 0, u.button_display_type = (M = c == null ? void 0 : c.button_display_type) != null ? M : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
12262
12311
|
}, {
|
12263
12312
|
immediate: !0
|
12264
12313
|
}), KgUtil.hideLoading(), !1;
|
@@ -12553,8 +12602,8 @@ const getProps$h = () => ({
|
|
12553
12602
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
12554
12603
|
}, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((T) => createVNode("li", {
|
12555
12604
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
12556
|
-
onClick: (
|
12557
|
-
|
12605
|
+
onClick: (M) => {
|
12606
|
+
M.preventDefault(), M.stopPropagation(), v(T);
|
12558
12607
|
},
|
12559
12608
|
style: {
|
12560
12609
|
display: l(T, o.value) ? "flex" : "none"
|
@@ -12566,8 +12615,8 @@ const getProps$h = () => ({
|
|
12566
12615
|
}, {
|
12567
12616
|
default: () => [createVNode("pre", null, [n.t(T.var_nam).value])]
|
12568
12617
|
}), createVNode(HolderOutlined$1, {
|
12569
|
-
onClick: (
|
12570
|
-
|
12618
|
+
onClick: (M) => {
|
12619
|
+
M.preventDefault(), M.stopPropagation();
|
12571
12620
|
}
|
12572
12621
|
}, null)]))])]);
|
12573
12622
|
},
|
@@ -12581,13 +12630,13 @@ const getProps$h = () => ({
|
|
12581
12630
|
popupClassName: "kg-table-setting-submenu-popup-masters"
|
12582
12631
|
}, {
|
12583
12632
|
default: () => {
|
12584
|
-
var
|
12633
|
+
var M;
|
12585
12634
|
let C, T;
|
12586
|
-
return createVNode(Fragment, null, [(
|
12587
|
-
var
|
12635
|
+
return createVNode(Fragment, null, [(M = n.varGridMasters.value) == null ? void 0 : M.map((k) => {
|
12636
|
+
var V;
|
12588
12637
|
return createVNode(Menu.Item, {
|
12589
12638
|
key: k.id,
|
12590
|
-
class: k.id === ((
|
12639
|
+
class: k.id === ((V = n.currentVarGridMaster.value) == null ? void 0 : V.id) ? "selected" : "",
|
12591
12640
|
"kg-var_nam": k.grd_var_nam,
|
12592
12641
|
onClick: () => n.store.setCurrentVarGridMasterID(n.formID, k.id)
|
12593
12642
|
}, {
|
@@ -13119,23 +13168,23 @@ function _useColumns(e) {
|
|
13119
13168
|
if (p.fix_right_flg === 1)
|
13120
13169
|
return "right";
|
13121
13170
|
}
|
13122
|
-
function
|
13123
|
-
var
|
13124
|
-
return !((I = (
|
13171
|
+
function M() {
|
13172
|
+
var w, I, A, P;
|
13173
|
+
return !((I = (w = t == null ? void 0 : t.value) == null ? void 0 : w.KgTable) != null && I.kgDisabled || isNil((P = (A = t == null ? void 0 : t.value) == null ? void 0 : A.KgTable) == null ? void 0 : P.kgDisabled) && e.kgDisabled || p.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
|
13125
13174
|
}
|
13126
13175
|
function k() {
|
13127
13176
|
return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
|
13128
13177
|
}
|
13129
|
-
const
|
13178
|
+
const V = b();
|
13130
13179
|
return {
|
13131
13180
|
dataIndex: g,
|
13132
13181
|
title: E(),
|
13133
|
-
width:
|
13134
|
-
resizable: typeof
|
13182
|
+
width: V,
|
13183
|
+
resizable: typeof V == "number",
|
13135
13184
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
13136
13185
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
13137
13186
|
fixed: T(),
|
13138
|
-
sorter:
|
13187
|
+
sorter: M(),
|
13139
13188
|
align: k(),
|
13140
13189
|
defaultSortOrder: C(),
|
13141
13190
|
customHeaderCell: () => ({
|
@@ -13143,13 +13192,13 @@ function _useColumns(e) {
|
|
13143
13192
|
"kg-var_nam": g,
|
13144
13193
|
draggable: !0
|
13145
13194
|
}),
|
13146
|
-
customCell: (
|
13147
|
-
var
|
13195
|
+
customCell: (w) => {
|
13196
|
+
var A;
|
13148
13197
|
const I = r.store.getVarSubmitField(r.formID, g);
|
13149
13198
|
return {
|
13150
13199
|
"kg-frm_id": r.formID,
|
13151
13200
|
"kg-var_nam": g,
|
13152
|
-
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE &&
|
13201
|
+
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && w[n.id.value] === ((A = n.selectedRow.value) == null ? void 0 : A[n.id.value]) && (!!r.isCreating.value && (I == null ? void 0 : I.crt_flg) === 1 || !!r.isUpdating.value && (I == null ? void 0 : I.upt_flg) === 1 || !!r.isCopying.value && (I == null ? void 0 : I.cpy_flg) === 1 || !!r.isDeleting.value && (I == null ? void 0 : I.del_flg) === 1) ? "submitting" : ""
|
13153
13202
|
};
|
13154
13203
|
}
|
13155
13204
|
};
|
@@ -13266,27 +13315,27 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13266
13315
|
var fe;
|
13267
13316
|
const a = inject("$dayjs", dayjs), n = inject(DI_KG_VAR__KG_SLOTS, null), s = inject(DI_KG_VAR__KG_PROPS, null), l = useKg(), o = useKgVar(), i = useKgSearch(), c = useKgButton(), u = useKgTable(), d = useKgSubmit();
|
13268
13317
|
i.onSearch(async ({
|
13269
|
-
resetPageIndex:
|
13270
|
-
}) => (
|
13271
|
-
name:
|
13318
|
+
resetPageIndex: L
|
13319
|
+
}) => (W(L), !1)), i.onReset(async () => (W(!0), !1)), u.store.$onAction(async ({
|
13320
|
+
name: L,
|
13272
13321
|
args: H
|
13273
13322
|
}) => {
|
13274
|
-
switch (
|
13323
|
+
switch (L) {
|
13275
13324
|
case "setRowSelect":
|
13276
13325
|
if (H[0] === o.formID) {
|
13277
|
-
const q = H[1], $ = H[2],
|
13326
|
+
const q = H[1], $ = H[2], B = q[u.id.value];
|
13278
13327
|
switch (!0) {
|
13279
|
-
case ($ && !
|
13280
|
-
|
13328
|
+
case ($ && !D.value.includes(B)):
|
13329
|
+
X([...D.value, B]);
|
13281
13330
|
break;
|
13282
|
-
case (!$ &&
|
13283
|
-
|
13331
|
+
case (!$ && D.value.includes(B)):
|
13332
|
+
X(without$1(D.value, B));
|
13284
13333
|
break;
|
13285
13334
|
}
|
13286
13335
|
}
|
13287
13336
|
break;
|
13288
13337
|
case "clearDatas":
|
13289
|
-
H[0] === o.formID && (u.store.setDatas(o.formID, []),
|
13338
|
+
H[0] === o.formID && (u.store.setDatas(o.formID, []), O.total = 0, x(), v.value = []);
|
13290
13339
|
break;
|
13291
13340
|
}
|
13292
13341
|
});
|
@@ -13298,109 +13347,109 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13298
13347
|
} = _useLoading(), b = ref(null);
|
13299
13348
|
_useResizeObserver(b), _useDragColumn(b, y);
|
13300
13349
|
const E = computed(() => {
|
13301
|
-
var
|
13302
|
-
return (H = (
|
13350
|
+
var L, H;
|
13351
|
+
return (H = (L = o.varButtonSearch.value) == null ? void 0 : L.cmd) != null ? H : null;
|
13303
13352
|
}), C = computed(() => {
|
13304
|
-
var H, q, $,
|
13305
|
-
let
|
13306
|
-
pageNo:
|
13307
|
-
pageSize:
|
13308
|
-
...
|
13353
|
+
var H, q, $, B, Y, J, Q;
|
13354
|
+
let L = {
|
13355
|
+
pageNo: O.pageIndex,
|
13356
|
+
pageSize: O.pageSize,
|
13357
|
+
...R,
|
13309
13358
|
...(q = (H = i.model) == null ? void 0 : H.value) != null ? q : {}
|
13310
13359
|
};
|
13311
|
-
return o.varButtonSearch.value && (
|
13312
|
-
...
|
13313
|
-
...KgVarUtil.parseCommandParameter((
|
13314
|
-
}), (
|
13315
|
-
...
|
13360
|
+
return o.varButtonSearch.value && (L = {
|
13361
|
+
...L,
|
13362
|
+
...KgVarUtil.parseCommandParameter((B = ($ = o.varButtonSearch.value) == null ? void 0 : $.cmd_prm) != null ? B : "")
|
13363
|
+
}), (Y = o.varGridConfig.value) != null && Y.cmd_prm && (L = {
|
13364
|
+
...L,
|
13316
13365
|
...KgVarUtil.parseCommandParameter((J = o.varGridConfig.value.cmd_prm) != null ? J : "")
|
13317
|
-
}), ((
|
13366
|
+
}), ((Q = o.varGridConfig.value) == null ? void 0 : Q.convert_sort_field_to_under_score_flg) === 1 && L.column && (L.column = snakeCase$1(L.column)), L;
|
13318
13367
|
}), T = computed(() => {
|
13319
|
-
var
|
13320
|
-
if (!isNil((H = (
|
13368
|
+
var L, H, q, $;
|
13369
|
+
if (!isNil((H = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : H.kgDisabled))
|
13321
13370
|
return ($ = (q = s == null ? void 0 : s.value) == null ? void 0 : q.KgTable) == null ? void 0 : $.kgDisabled;
|
13322
13371
|
if (!isNil(e.kgDisabled))
|
13323
13372
|
return e.kgDisabled;
|
13324
|
-
}),
|
13325
|
-
var
|
13326
|
-
if (!isNil((H = (
|
13373
|
+
}), M = computed(() => {
|
13374
|
+
var L, H, q, $;
|
13375
|
+
if (!isNil((H = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : H.kgCheckboxDisabled))
|
13327
13376
|
return ($ = (q = s == null ? void 0 : s.value) == null ? void 0 : q.KgTable) == null ? void 0 : $.kgCheckboxDisabled;
|
13328
13377
|
if (!isNil(e.kgCheckboxDisabled))
|
13329
13378
|
return e.kgCheckboxDisabled;
|
13330
|
-
}), k = computed(() => !!T.value || g.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value),
|
13331
|
-
var
|
13332
|
-
return !!((
|
13379
|
+
}), k = computed(() => !!T.value || g.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), V = computed(() => !!T.value || g.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || O.total === 0), w = computed(() => {
|
13380
|
+
var L;
|
13381
|
+
return !!((L = n == null ? void 0 : n.KgTable) != null && L.expandedRowRender);
|
13333
13382
|
}), I = computed(() => {
|
13334
|
-
var
|
13335
|
-
return ((
|
13336
|
-
}),
|
13383
|
+
var L;
|
13384
|
+
return ((L = o.varGridConfig.value) == null ? void 0 : L.show_check_column_flg) === 1;
|
13385
|
+
}), A = computed(() => {
|
13337
13386
|
if (!!I.value)
|
13338
13387
|
return {
|
13339
13388
|
fixed: "left",
|
13340
13389
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
13341
13390
|
hideSelectAll: !u.isMultiSelect.value,
|
13342
|
-
selectedRowKeys:
|
13391
|
+
selectedRowKeys: D,
|
13343
13392
|
preserveSelectedRowKeys: !1,
|
13344
|
-
getCheckboxProps: (
|
13393
|
+
getCheckboxProps: (L) => {
|
13345
13394
|
var H;
|
13346
13395
|
return {
|
13347
|
-
disabled: !!T.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || !!((H =
|
13396
|
+
disabled: !!T.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || !!((H = M.value) != null && H.call(M, L))
|
13348
13397
|
};
|
13349
13398
|
},
|
13350
|
-
onSelect: (
|
13351
|
-
onChange: (
|
13399
|
+
onSelect: (L) => z(L),
|
13400
|
+
onChange: (L) => u.isMultiSelect.value && X(L)
|
13352
13401
|
};
|
13353
13402
|
}), P = computed(() => {
|
13354
13403
|
var H;
|
13355
|
-
let
|
13356
|
-
return ((H = o.varGridConfig.value) == null ? void 0 : H.show_bottom_border_flg) === 1 && (
|
13404
|
+
let L = "kg-table";
|
13405
|
+
return ((H = o.varGridConfig.value) == null ? void 0 : H.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;
|
13357
13406
|
}), N = computed(() => {
|
13358
13407
|
var H;
|
13359
|
-
let
|
13360
|
-
return ((H = o.varGridConfig.value) == null ? void 0 : H.show_bottom_border_flg) === 1 && (
|
13361
|
-
}), U = computed(() => u.store.getDatas(o.formID)),
|
13408
|
+
let L = "kg-table-bottom";
|
13409
|
+
return ((H = o.varGridConfig.value) == null ? void 0 : H.show_bottom_border_flg) === 1 && (L += " kg-table-bottom--border"), L;
|
13410
|
+
}), U = computed(() => u.store.getDatas(o.formID)), D = (fe = u.store.getSelectedRowKeys(o.formID)) != null ? fe : ref([]), O = reactive({
|
13362
13411
|
pageIndex: 1,
|
13363
13412
|
pageSize: 10,
|
13364
13413
|
total: 0
|
13365
|
-
}),
|
13414
|
+
}), R = reactive({
|
13366
13415
|
column: void 0,
|
13367
13416
|
order: void 0
|
13368
|
-
}), G = watch(u.pageSizeOption, (
|
13369
|
-
|
13417
|
+
}), G = watch(u.pageSizeOption, (L) => {
|
13418
|
+
L && (setTimeout(() => G()), O.pageSize = L, m.value = !0, KgLogger.debug(`${o.formID} | KgTable | isReadReady: ${m.value}`));
|
13370
13419
|
}, {
|
13371
13420
|
immediate: !0
|
13372
13421
|
});
|
13373
|
-
watch(u.pageSizeOptions, (
|
13374
|
-
|
13375
|
-
}), watch([E, u.isReadAutomatically, i.isReady], ([
|
13376
|
-
|
13422
|
+
watch(u.pageSizeOptions, (L) => {
|
13423
|
+
L.length > 0 && !L.includes(O.pageSize) && (O.pageSize = u.pageSizeOption.value);
|
13424
|
+
}), watch([E, u.isReadAutomatically, i.isReady], ([L, H, q]) => {
|
13425
|
+
L && H && q && !u.store.getIsRetrieved(o.formID) && W(!0);
|
13377
13426
|
}, {
|
13378
13427
|
immediate: !0
|
13379
|
-
}), watch(o.isCreating, (
|
13380
|
-
|
13428
|
+
}), watch(o.isCreating, (L, H) => {
|
13429
|
+
L === !0 ? F() : L === !1 && H === !0 && K();
|
13381
13430
|
}), onUnmounted(() => {
|
13382
13431
|
u.store.dispose(o.formID);
|
13383
13432
|
});
|
13384
13433
|
function F() {
|
13385
13434
|
if (d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
|
13386
|
-
const
|
13435
|
+
const L = {
|
13387
13436
|
[u.id.value]: KG_TABLE_TEMP_ID
|
13388
13437
|
};
|
13389
|
-
u.store.setDatas(o.formID, [
|
13438
|
+
u.store.setDatas(o.formID, [L, ...U.value]), u.store.setSelectedRows(o.formID, [L]);
|
13390
13439
|
}
|
13391
13440
|
}
|
13392
|
-
function
|
13393
|
-
const
|
13394
|
-
|
13441
|
+
function K() {
|
13442
|
+
const L = U.value.find((H) => H[u.id.value] === KG_TABLE_TEMP_ID);
|
13443
|
+
L && (u.store.setDatas(o.formID, without$1(U.value, L)), u.store.setSelectedRows(o.formID, []));
|
13395
13444
|
}
|
13396
|
-
function
|
13445
|
+
function x(L, H) {
|
13397
13446
|
var q;
|
13398
|
-
if (!(!!T.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!
|
13447
|
+
if (!(!!T.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!A.value) {
|
13399
13448
|
if (!H) {
|
13400
13449
|
u.store.setSelectedRows(o.formID, []);
|
13401
13450
|
return;
|
13402
13451
|
}
|
13403
|
-
switch (
|
13452
|
+
switch (L == null ? void 0 : L.detail) {
|
13404
13453
|
case 1:
|
13405
13454
|
switch ((q = o.varGridConfig.value) == null ? void 0 : q.operation_on_row_click) {
|
13406
13455
|
case 0:
|
@@ -13418,7 +13467,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13418
13467
|
}
|
13419
13468
|
}
|
13420
13469
|
}
|
13421
|
-
function
|
13470
|
+
function W(L = !1) {
|
13422
13471
|
KgLogger.debug(`${o.formID} | KgTable | retrieve() | \u8FDB\u5165\u65B9\u6CD5.`);
|
13423
13472
|
const H = watch(m, ($) => {
|
13424
13473
|
$ && (setTimeout(() => H()), q());
|
@@ -13426,47 +13475,47 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13426
13475
|
immediate: !0
|
13427
13476
|
});
|
13428
13477
|
async function q() {
|
13429
|
-
var $,
|
13478
|
+
var $, B, Y;
|
13430
13479
|
if (KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u8FDB\u5165\u65B9\u6CD5.`), !E.value) {
|
13431
13480
|
KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
13432
13481
|
VarButton: o.varButtonSearch.value
|
13433
13482
|
});
|
13434
13483
|
return;
|
13435
13484
|
}
|
13436
|
-
|
13485
|
+
L && (O.pageIndex = 1), u.store.setIsRetrieving(o.formID, !0);
|
13437
13486
|
try {
|
13438
|
-
const J = KgUtil.parseParams(C.value, u.profileFormID.value, a),
|
13487
|
+
const J = KgUtil.parseParams(C.value, u.profileFormID.value, a), Q = ref({});
|
13439
13488
|
await u.store.emit(o.formID, "beforeRetrieve", {
|
13440
13489
|
params: J,
|
13441
|
-
response:
|
13442
|
-
}) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : (
|
13490
|
+
response: Q
|
13491
|
+
}) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : (Q.value = await httpClient().request({
|
13443
13492
|
method: "GET",
|
13444
13493
|
url: E.value,
|
13445
13494
|
params: J
|
13446
13495
|
}, {
|
13447
13496
|
successMessageMode: "none"
|
13448
13497
|
}), KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u63A5\u53E3\u8C03\u7528\u6210\u529F.`));
|
13449
|
-
let
|
13498
|
+
let Z = ref([]), ae = ref(0);
|
13450
13499
|
switch (!0) {
|
13451
|
-
case !
|
13452
|
-
|
13500
|
+
case !Q.value:
|
13501
|
+
Z.value = [], ae.value = 0;
|
13453
13502
|
break;
|
13454
|
-
case isArrayLike(
|
13455
|
-
|
13503
|
+
case isArrayLike(Q.value):
|
13504
|
+
Z.value = Q.value, ae.value = Q.value.length;
|
13456
13505
|
break;
|
13457
|
-
case ("total" in
|
13458
|
-
|
13506
|
+
case ("total" in Q.value && "records" in Q.value):
|
13507
|
+
Z.value = ($ = Q.value.records) != null ? $ : [], ae.value = (B = Q.value.total) != null ? B : 0;
|
13459
13508
|
break;
|
13460
13509
|
}
|
13461
13510
|
await u.store.emit(o.formID, "beforeSetDatas", {
|
13462
|
-
datas:
|
13511
|
+
datas: Z,
|
13463
13512
|
total: ae,
|
13464
13513
|
setDatas(te) {
|
13465
13514
|
u.store.setDatas(o.formID, te);
|
13466
13515
|
}
|
13467
|
-
}), u.store.setDatas(o.formID,
|
13468
|
-
page:
|
13469
|
-
datas:
|
13516
|
+
}), u.store.setDatas(o.formID, Z.value), O.total = ae.value, x(), v.value = [], await nextTick(), ((Y = o.varGridConfig.value) == null ? void 0 : Y.check_first_row_after_retrieve) === 1 && Z.value.length > 0 && u.store.setSelectedRows(o.formID, [Z.value[0]]), await u.store.emit(o.formID, "retrieve", {
|
13517
|
+
page: Q.value,
|
13518
|
+
datas: Z,
|
13470
13519
|
setDatas(te) {
|
13471
13520
|
u.store.setDatas(o.formID, te);
|
13472
13521
|
}
|
@@ -13478,71 +13527,71 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13478
13527
|
}
|
13479
13528
|
}
|
13480
13529
|
}
|
13481
|
-
function
|
13482
|
-
u.store.setSelectedRows(o.formID,
|
13530
|
+
function X(L) {
|
13531
|
+
u.store.setSelectedRows(o.formID, L.map((H) => {
|
13483
13532
|
var q;
|
13484
13533
|
return (q = U.value) == null ? void 0 : q.find(($) => $[u.id.value] === H);
|
13485
13534
|
}).filter((H) => !!H));
|
13486
13535
|
}
|
13487
|
-
function z(
|
13536
|
+
function z(L) {
|
13488
13537
|
var H, q;
|
13489
13538
|
switch (u.isMultiSelect.value) {
|
13490
13539
|
case !0:
|
13491
13540
|
{
|
13492
|
-
const $ =
|
13493
|
-
|
13541
|
+
const $ = L[u.id.value];
|
13542
|
+
D.value.includes($) ? D.value = without$1(D.value, $) : D.value = [...(H = D.value) != null ? H : [], $];
|
13494
13543
|
}
|
13495
13544
|
break;
|
13496
13545
|
case !1:
|
13497
13546
|
{
|
13498
|
-
const $ =
|
13499
|
-
(q =
|
13547
|
+
const $ = L[u.id.value];
|
13548
|
+
(q = D.value) != null && q.includes($) ? D.value = [] : D.value = [$];
|
13500
13549
|
}
|
13501
13550
|
break;
|
13502
13551
|
}
|
13503
|
-
u.store.setSelectedRows(o.formID,
|
13504
|
-
var
|
13505
|
-
return (
|
13552
|
+
u.store.setSelectedRows(o.formID, D.value.map(($) => {
|
13553
|
+
var B;
|
13554
|
+
return (B = U.value) == null ? void 0 : B.find((Y) => Y[u.id.value] === $);
|
13506
13555
|
}).filter(($) => !!$));
|
13507
13556
|
}
|
13508
|
-
function
|
13509
|
-
H.width =
|
13557
|
+
function ee(L, H) {
|
13558
|
+
H.width = L, o.store.setVarGridDetailWidth(o.formID, H.dataIndex, L);
|
13510
13559
|
}
|
13511
|
-
async function re(
|
13512
|
-
var
|
13560
|
+
async function re(L, H, q, $) {
|
13561
|
+
var B;
|
13513
13562
|
switch ($.action) {
|
13514
13563
|
case "sort":
|
13515
13564
|
{
|
13516
13565
|
await nextTick();
|
13517
|
-
let
|
13518
|
-
|
13566
|
+
let Y = q;
|
13567
|
+
Y.order ? (R.column = (B = Y.field) != null ? B : void 0, R.order = Y.order === "ascend" ? "asc" : Y.order === "descend" ? "desc" : void 0) : (R.column = void 0, R.order = void 0), W(!0);
|
13519
13568
|
}
|
13520
13569
|
break;
|
13521
13570
|
}
|
13522
13571
|
}
|
13523
|
-
function ie(
|
13572
|
+
function ie(L, H) {
|
13524
13573
|
var $;
|
13525
13574
|
const q = H[u.id.value];
|
13526
13575
|
switch (($ = o.varGridConfig.value) == null ? void 0 : $.expand_accordion_flg) {
|
13527
13576
|
case 0:
|
13528
|
-
|
13577
|
+
L ? v.value = uniq([...v.value, q]) : v.value = without$1(v.value, q);
|
13529
13578
|
break;
|
13530
13579
|
default:
|
13531
|
-
|
13580
|
+
L ? v.value = [q] : v.value = [];
|
13532
13581
|
break;
|
13533
13582
|
}
|
13534
13583
|
}
|
13535
|
-
function se(
|
13536
|
-
H !==
|
13584
|
+
function se(L, H) {
|
13585
|
+
H !== O.pageSize ? (O.pageIndex = 1, O.pageSize = H) : O.pageIndex = L, W();
|
13537
13586
|
}
|
13538
|
-
function ge(
|
13539
|
-
u.store.setSelectedRows(o.formID, [
|
13587
|
+
function ge(L) {
|
13588
|
+
u.store.setSelectedRows(o.formID, [L].map((H) => {
|
13540
13589
|
var q;
|
13541
13590
|
return (q = U.value) == null ? void 0 : q.find(($) => $[u.id.value] === H[u.id.value]);
|
13542
13591
|
}).filter((H) => !!H)), c.click(o.formID, KG_BUTTON_TYPE.UPDATE);
|
13543
13592
|
}
|
13544
13593
|
function ce({
|
13545
|
-
title:
|
13594
|
+
title: L,
|
13546
13595
|
column: H
|
13547
13596
|
}) {
|
13548
13597
|
switch (H.dataIndex) {
|
@@ -13552,32 +13601,32 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13552
13601
|
}, null);
|
13553
13602
|
default:
|
13554
13603
|
return createVNode("pre", {
|
13555
|
-
title:
|
13556
|
-
}, [
|
13604
|
+
title: L
|
13605
|
+
}, [L]);
|
13557
13606
|
}
|
13558
13607
|
}
|
13559
13608
|
function ne() {
|
13560
|
-
var
|
13561
|
-
return (
|
13609
|
+
var L;
|
13610
|
+
return (L = n == null ? void 0 : n.KgTable) != null && L["summary.bodyCell"] ? createVNode(TableSummary, {
|
13562
13611
|
fixed: "bottom"
|
13563
13612
|
}, {
|
13564
13613
|
default: () => [createVNode(TableSummary.Row, null, {
|
13565
|
-
default: () => [
|
13614
|
+
default: () => [w.value && createVNode(TableSummary.Cell, {
|
13566
13615
|
index: 0
|
13567
13616
|
}, null), I.value && createVNode(TableSummary.Cell, {
|
13568
|
-
index:
|
13617
|
+
index: w.value ? 1 : 0
|
13569
13618
|
}, null), y.value.map((H, q) => {
|
13570
|
-
const $ = o.store.getVarGridDetail(o.formID, H.dataIndex),
|
13571
|
-
let
|
13572
|
-
return
|
13573
|
-
index:
|
13574
|
-
align:
|
13619
|
+
const $ = o.store.getVarGridDetail(o.formID, H.dataIndex), B = (() => ["left", "center", "right"].includes(($ == null ? void 0 : $.align) || "") ? $ == null ? void 0 : $.align : "left")();
|
13620
|
+
let Y = q;
|
13621
|
+
return w.value && I.value ? Y += 2 : (w.value || I.value) && (Y += 1), createVNode(TableSummary.Cell, {
|
13622
|
+
index: Y,
|
13623
|
+
align: B
|
13575
13624
|
}, {
|
13576
13625
|
default: () => {
|
13577
|
-
var J,
|
13578
|
-
return [(
|
13626
|
+
var J, Q;
|
13627
|
+
return [(Q = (J = n == null ? void 0 : n.KgTable) == null ? void 0 : J["summary.bodyCell"]) == null ? void 0 : Q.call(J, {
|
13579
13628
|
column: H,
|
13580
|
-
index:
|
13629
|
+
index: Y,
|
13581
13630
|
varGridDetail: $
|
13582
13631
|
})];
|
13583
13632
|
}
|
@@ -13587,38 +13636,38 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13587
13636
|
}) : null;
|
13588
13637
|
}
|
13589
13638
|
function le({
|
13590
|
-
column:
|
13639
|
+
column: L,
|
13591
13640
|
index: H,
|
13592
13641
|
record: q,
|
13593
13642
|
text: $,
|
13594
|
-
value:
|
13643
|
+
value: B
|
13595
13644
|
}) {
|
13596
|
-
var
|
13597
|
-
let
|
13598
|
-
|
13645
|
+
var Q;
|
13646
|
+
let Y = "";
|
13647
|
+
L.customRender ? Y = L.customRender({
|
13599
13648
|
index: H,
|
13600
13649
|
record: q,
|
13601
|
-
column:
|
13650
|
+
column: L,
|
13602
13651
|
text: $,
|
13603
|
-
value:
|
13652
|
+
value: B,
|
13604
13653
|
renderIndex: H
|
13605
|
-
}) :
|
13654
|
+
}) : Y = B;
|
13606
13655
|
const J = createVNode(KgTableCell, {
|
13607
13656
|
kgRow: q,
|
13608
|
-
kgValue:
|
13609
|
-
kgVarName:
|
13657
|
+
kgValue: Y,
|
13658
|
+
kgVarName: L.dataIndex,
|
13610
13659
|
onKgUpdateLinkClick: () => ge(q)
|
13611
13660
|
}, null);
|
13612
|
-
if ((
|
13613
|
-
const
|
13661
|
+
if ((Q = n == null ? void 0 : n.KgTable) != null && Q.bodyCell) {
|
13662
|
+
const Z = L.dataIndex ? o.store.getVarGridDetail(o.formID, L.dataIndex) : null;
|
13614
13663
|
return n.KgTable.bodyCell({
|
13615
|
-
column:
|
13664
|
+
column: L,
|
13616
13665
|
index: H,
|
13617
13666
|
record: q,
|
13618
13667
|
text: $,
|
13619
|
-
value:
|
13668
|
+
value: B,
|
13620
13669
|
row: q,
|
13621
|
-
varGridDetail:
|
13670
|
+
varGridDetail: Z,
|
13622
13671
|
defaultRender: J
|
13623
13672
|
});
|
13624
13673
|
} else
|
@@ -13628,7 +13677,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13628
13677
|
return !u.isReadAutomatically.value && !u.store.getIsRetrieved(o.formID) ? l.t("kg.KgTable.emptyText") : l.t("kg.emptyText");
|
13629
13678
|
}
|
13630
13679
|
return () => {
|
13631
|
-
var
|
13680
|
+
var L, H, q;
|
13632
13681
|
return createVNode("div", {
|
13633
13682
|
class: P.value,
|
13634
13683
|
"kg-frm_id": o.formID,
|
@@ -13646,14 +13695,14 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13646
13695
|
dataSource: U.value,
|
13647
13696
|
loading: g.value,
|
13648
13697
|
rowKey: u.id.value,
|
13649
|
-
rowClassName: (H = (
|
13698
|
+
rowClassName: (H = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : H.kgRowClassName,
|
13650
13699
|
expandColumnWidth: 28,
|
13651
13700
|
expandedRowKeys: v.value,
|
13652
|
-
rowSelection:
|
13701
|
+
rowSelection: A.value,
|
13653
13702
|
customRow: ($) => ({
|
13654
|
-
onClick: (
|
13703
|
+
onClick: (B) => x(B, $)
|
13655
13704
|
}),
|
13656
|
-
onResizeColumn:
|
13705
|
+
onResizeColumn: ee,
|
13657
13706
|
onChange: re,
|
13658
13707
|
onExpand: ie
|
13659
13708
|
}, {
|
@@ -13667,32 +13716,32 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13667
13716
|
}, [createVNode("div", {
|
13668
13717
|
class: "left"
|
13669
13718
|
}, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
13670
|
-
kgShowClearCheck:
|
13671
|
-
kgShowClearTable:
|
13672
|
-
kgShowLocate:
|
13673
|
-
kgTotal:
|
13719
|
+
kgShowClearCheck: D.value.length > 0,
|
13720
|
+
kgShowClearTable: O.total > 0,
|
13721
|
+
kgShowLocate: D.value.length === 1,
|
13722
|
+
kgTotal: D.value.length,
|
13674
13723
|
kgDisabled: k.value
|
13675
13724
|
}, null)]), createVNode("div", {
|
13676
13725
|
class: "right"
|
13677
13726
|
}, [u.isShowBottomRight.value && createVNode(Pagination, {
|
13678
13727
|
size: "default",
|
13679
|
-
current:
|
13680
|
-
pageSize:
|
13728
|
+
current: O.pageIndex,
|
13729
|
+
pageSize: O.pageSize,
|
13681
13730
|
pageSizeOptions: u.pageSizeOptions.value.map(($) => String($)),
|
13682
|
-
total:
|
13731
|
+
total: O.total,
|
13683
13732
|
showSizeChanger: !0,
|
13684
13733
|
showQuickJumper: !1,
|
13685
13734
|
hideOnSinglePage: !1,
|
13686
|
-
disabled:
|
13735
|
+
disabled: V.value,
|
13687
13736
|
locale: {
|
13688
13737
|
page: ""
|
13689
13738
|
},
|
13690
|
-
showTotal: ($,
|
13691
|
-
from:
|
13692
|
-
to:
|
13739
|
+
showTotal: ($, B) => l.t("kg.KgTable.totalText", {
|
13740
|
+
from: B[0],
|
13741
|
+
to: B[1],
|
13693
13742
|
total: $
|
13694
13743
|
}),
|
13695
|
-
onChange: ($,
|
13744
|
+
onChange: ($, B) => se($, B)
|
13696
13745
|
}, null)])])]);
|
13697
13746
|
};
|
13698
13747
|
}
|
@@ -13917,8 +13966,8 @@ const KgButtonCreate = defineComponent({
|
|
13917
13966
|
attrs: a
|
13918
13967
|
}) {
|
13919
13968
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
13920
|
-
var C, T,
|
13921
|
-
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((
|
13969
|
+
var C, T, M, k, V, w, I, A;
|
13970
|
+
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((M = (T = o.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) === 0 || ((k = c.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((w = (V = o.selectedRows.value) == null ? void 0 : V.length) != null ? w : 0) > 1 || ((I = c.value) == null ? void 0 : I.permission_type) === 2 && !n.p((A = c.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13922
13971
|
}), d = computed(() => !!s.isCreatingRequesting.value);
|
13923
13972
|
async function m() {
|
13924
13973
|
e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
|
@@ -13940,7 +13989,7 @@ const KgButtonCreate = defineComponent({
|
|
13940
13989
|
return e.kgText ? e.kgText : n.t("kg.create");
|
13941
13990
|
}
|
13942
13991
|
function b() {
|
13943
|
-
var C, T,
|
13992
|
+
var C, T, M, k;
|
13944
13993
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isCreating.value ? null : createVNode(Button, {
|
13945
13994
|
type: "primary",
|
13946
13995
|
disabled: u.value,
|
@@ -13948,7 +13997,7 @@ const KgButtonCreate = defineComponent({
|
|
13948
13997
|
class: a.class,
|
13949
13998
|
"kg-id": (C = c.value) == null ? void 0 : C.id,
|
13950
13999
|
"kg-frm_id": (T = c.value) == null ? void 0 : T.frm_id,
|
13951
|
-
"kg-var_nam": (
|
14000
|
+
"kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
|
13952
14001
|
"kg-cmd": (k = c.value) == null ? void 0 : k.cmd
|
13953
14002
|
}, {
|
13954
14003
|
default: () => [p(), g()]
|
@@ -14035,8 +14084,8 @@ const KgButtonCreate = defineComponent({
|
|
14035
14084
|
...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
|
14036
14085
|
}), ((T = r.varGridConfig.value) == null ? void 0 : T.convert_sort_field_to_under_score_flg) === 1 && y.column && (y.column = snakeCase$1(y.column)), y;
|
14037
14086
|
}), c = computed(() => {
|
14038
|
-
var y, p, g, b, E, C, T,
|
14039
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((g = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((C = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? C : 0) > 1 || ((T = s.value) == null ? void 0 : T.permission_type) === 2 && !t.p((
|
14087
|
+
var y, p, g, b, E, C, T, M;
|
14088
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((g = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((C = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? C : 0) > 1 || ((T = s.value) == null ? void 0 : T.permission_type) === 2 && !t.p((M = s.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14040
14089
|
}), u = ref(!1);
|
14041
14090
|
async function d() {
|
14042
14091
|
var y, p;
|
@@ -14117,8 +14166,8 @@ const KgButtonCreate = defineComponent({
|
|
14117
14166
|
...KgVarUtil.parseCommandParameter((C = (E = o.value) == null ? void 0 : E.cmd_prm) != null ? C : "")
|
14118
14167
|
}), g;
|
14119
14168
|
}), d = computed(() => {
|
14120
|
-
var g, b, E, C, T,
|
14121
|
-
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((g = o.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((E = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? E : 0) === 0 || ((C = o.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((
|
14169
|
+
var g, b, E, C, T, M, k, V;
|
14170
|
+
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((g = o.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((E = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? E : 0) === 0 || ((C = o.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((M = (T = l.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) > 1 || ((k = o.value) == null ? void 0 : k.permission_type) === 2 && !a.p((V = o.value) == null ? void 0 : V.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14122
14171
|
}), m = ref(!1);
|
14123
14172
|
async function v(g) {
|
14124
14173
|
if (!i.value)
|
@@ -14205,8 +14254,8 @@ const KgButtonCreate = defineComponent({
|
|
14205
14254
|
...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
|
14206
14255
|
}), y;
|
14207
14256
|
}), c = computed(() => {
|
14208
|
-
var y, p, g, b, E, C, T,
|
14209
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((g = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((C = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? C : 0) > 1 || ((T = s.value) == null ? void 0 : T.permission_type) === 2 && !t.p((
|
14257
|
+
var y, p, g, b, E, C, T, M;
|
14258
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((g = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((C = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? C : 0) > 1 || ((T = s.value) == null ? void 0 : T.permission_type) === 2 && !t.p((M = s.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14210
14259
|
}), u = ref(!1);
|
14211
14260
|
async function d() {
|
14212
14261
|
var y, p;
|
@@ -14282,35 +14331,35 @@ const KgButtonCreate = defineComponent({
|
|
14282
14331
|
}
|
14283
14332
|
let m = null;
|
14284
14333
|
const v = async () => {
|
14285
|
-
var E, C, T,
|
14334
|
+
var E, C, T, M, k, V;
|
14286
14335
|
m == null || m.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
14287
14336
|
const b = s.selectedRows.value;
|
14288
14337
|
try {
|
14289
|
-
const
|
14338
|
+
const w = await httpClient().request({
|
14290
14339
|
method: (C = (E = e.kgButton) == null ? void 0 : E.cmd_method) != null ? C : "POST",
|
14291
14340
|
url: d,
|
14292
|
-
params: KgVarUtil.parseCommandParameter((
|
14341
|
+
params: KgVarUtil.parseCommandParameter((M = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? M : ""),
|
14293
14342
|
data: b != null ? b : []
|
14294
14343
|
});
|
14295
14344
|
if (((k = e.kgButton) == null ? void 0 : k.reload_all_after_done_flg) === 1) {
|
14296
|
-
if (((
|
14297
|
-
datas:
|
14345
|
+
if (((V = e.kgButton) == null ? void 0 : V.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
|
14346
|
+
datas: A
|
14298
14347
|
}) => {
|
14299
|
-
const P =
|
14348
|
+
const P = A.value, N = intersectionWith$1(P, b != null ? b : [], (U, D) => (U == null ? void 0 : U[s.id.value]) === (D == null ? void 0 : D[s.id.value]));
|
14300
14349
|
return N.length > 0 && s.store.setSelectedRows(r.formID, N), !1;
|
14301
14350
|
}, !0), await n.store.emit(r.formID, "otherOk", {
|
14302
14351
|
button: e.kgButton,
|
14303
|
-
data:
|
14352
|
+
data: w
|
14304
14353
|
}))
|
14305
14354
|
return;
|
14306
14355
|
a.search(!0);
|
14307
14356
|
} else if (await n.store.emit(r.formID, "otherOk", {
|
14308
14357
|
button: e.kgButton,
|
14309
|
-
data:
|
14358
|
+
data: w
|
14310
14359
|
}))
|
14311
14360
|
return;
|
14312
|
-
} catch (
|
14313
|
-
console.error(
|
14361
|
+
} catch (w) {
|
14362
|
+
console.error(w);
|
14314
14363
|
} finally {
|
14315
14364
|
r.store.setIsOtherRequesting(r.formID, !1), m == null || m.hideLoading();
|
14316
14365
|
}
|
@@ -14410,8 +14459,8 @@ const KgButtonCreate = defineComponent({
|
|
14410
14459
|
}
|
14411
14460
|
});
|
14412
14461
|
const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
14413
|
-
var C, T,
|
14414
|
-
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((
|
14462
|
+
var C, T, M, k, V, w, I, A;
|
14463
|
+
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((M = (T = l.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) === 0 || ((k = c.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((w = (V = l.selectedRows.value) == null ? void 0 : V.length) != null ? w : 0) > 1 || ((I = c.value) == null ? void 0 : I.permission_type) === 2 && !n.p((A = c.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14415
14464
|
}), d = computed(() => !!s.isUpdatingRequesting.value);
|
14416
14465
|
async function m() {
|
14417
14466
|
e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
|
@@ -14436,7 +14485,7 @@ const KgButtonCreate = defineComponent({
|
|
14436
14485
|
return e.kgText ? e.kgText : n.t("kg.update");
|
14437
14486
|
}
|
14438
14487
|
function b() {
|
14439
|
-
var C, T,
|
14488
|
+
var C, T, M, k;
|
14440
14489
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isUpdating.value ? null : createVNode(Button, {
|
14441
14490
|
type: "primary",
|
14442
14491
|
disabled: u.value,
|
@@ -14445,7 +14494,7 @@ const KgButtonCreate = defineComponent({
|
|
14445
14494
|
class: a.class,
|
14446
14495
|
"kg-id": (C = c.value) == null ? void 0 : C.id,
|
14447
14496
|
"kg-frm_id": (T = c.value) == null ? void 0 : T.frm_id,
|
14448
|
-
"kg-var_nam": (
|
14497
|
+
"kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
|
14449
14498
|
"kg-cmd": (k = c.value) == null ? void 0 : k.cmd
|
14450
14499
|
}, {
|
14451
14500
|
default: () => [p(), g()]
|
@@ -15177,9 +15226,9 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15177
15226
|
row: C,
|
15178
15227
|
model: T
|
15179
15228
|
}) => {
|
15180
|
-
var k,
|
15181
|
-
const
|
15182
|
-
switch (i.value =
|
15229
|
+
var k, V, w;
|
15230
|
+
const M = o.store.getSystemVarProfileDetails(o.formID);
|
15231
|
+
switch (i.value = M ? cloneDeep(unref(toRaw(M))) : [], !0) {
|
15183
15232
|
case g: {
|
15184
15233
|
c.value = [];
|
15185
15234
|
break;
|
@@ -15196,15 +15245,15 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15196
15245
|
});
|
15197
15246
|
i.value = i.value.map((P) => {
|
15198
15247
|
var U;
|
15199
|
-
const N = (U = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : U.find((
|
15248
|
+
const N = (U = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : U.find((D) => D.var_nam === P.var_nam);
|
15200
15249
|
return N ? {
|
15201
15250
|
...P,
|
15202
15251
|
...N,
|
15203
15252
|
id: P.id
|
15204
15253
|
} : P;
|
15205
15254
|
});
|
15206
|
-
const
|
15207
|
-
c.value = i.value.filter((P) =>
|
15255
|
+
const A = (V = (k = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : k.map((P) => P.var_nam)) != null ? V : [];
|
15256
|
+
c.value = i.value.filter((P) => A.includes(P.var_nam)).map((P) => P.id);
|
15208
15257
|
} catch (I) {
|
15209
15258
|
throw I;
|
15210
15259
|
} finally {
|
@@ -15217,7 +15266,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15217
15266
|
}
|
15218
15267
|
switch (!0) {
|
15219
15268
|
case E: {
|
15220
|
-
T.value.prf_var_nam = ((
|
15269
|
+
T.value.prf_var_nam = ((w = T.value.prf_var_nam) != null ? w : "") + "_COPY";
|
15221
15270
|
break;
|
15222
15271
|
}
|
15223
15272
|
}
|
@@ -15285,11 +15334,11 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15285
15334
|
selectedKeys: E,
|
15286
15335
|
disabled: C,
|
15287
15336
|
onItemSelectAll: T,
|
15288
|
-
onItemSelect:
|
15337
|
+
onItemSelect: M
|
15289
15338
|
}) => {
|
15290
|
-
const k = b.sort((
|
15291
|
-
var I,
|
15292
|
-
return ((I =
|
15339
|
+
const k = b.sort((V, w) => {
|
15340
|
+
var I, A;
|
15341
|
+
return ((I = V.srtseq) != null ? I : 0) - ((A = w.srtseq) != null ? A : 0);
|
15293
15342
|
});
|
15294
15343
|
return u.value = k, createVNode(Table, {
|
15295
15344
|
pagination: !1,
|
@@ -15302,17 +15351,17 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15302
15351
|
columns: g === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
15303
15352
|
rowKey: "id",
|
15304
15353
|
dataSource: k,
|
15305
|
-
customRow: (
|
15306
|
-
let
|
15307
|
-
onClick: (I) => p(I,
|
15354
|
+
customRow: (V) => {
|
15355
|
+
let w = {
|
15356
|
+
onClick: (I) => p(I, V, g, E)
|
15308
15357
|
};
|
15309
|
-
return g === "right" && (
|
15358
|
+
return g === "right" && (w["kg-host-frm_id"] = o.formID, w["kg-var_nam"] = V.var_nam), w;
|
15310
15359
|
},
|
15311
15360
|
rowSelection: v({
|
15312
15361
|
disabled: C,
|
15313
15362
|
selectedKeys: E,
|
15314
15363
|
onItemSelectAll: T,
|
15315
|
-
onItemSelect:
|
15364
|
+
onItemSelect: M
|
15316
15365
|
})
|
15317
15366
|
}, null);
|
15318
15367
|
}
|
@@ -15332,16 +15381,16 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15332
15381
|
getCheckboxProps: (T) => ({
|
15333
15382
|
disabled: g || T.disabled
|
15334
15383
|
}),
|
15335
|
-
onSelectAll(T,
|
15336
|
-
const k =
|
15337
|
-
key:
|
15338
|
-
}) =>
|
15384
|
+
onSelectAll(T, M) {
|
15385
|
+
const k = M.filter((V) => !V.disabled).map(({
|
15386
|
+
key: V
|
15387
|
+
}) => V);
|
15339
15388
|
E(k, T);
|
15340
15389
|
},
|
15341
15390
|
onSelect({
|
15342
15391
|
key: T
|
15343
|
-
},
|
15344
|
-
C(T,
|
15392
|
+
}, M) {
|
15393
|
+
C(T, M);
|
15345
15394
|
},
|
15346
15395
|
selectedRowKeys: b,
|
15347
15396
|
columnWidth: 32
|
@@ -15550,23 +15599,23 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15550
15599
|
});
|
15551
15600
|
_useLayoutHeaderResizeObserver();
|
15552
15601
|
const p = _useFormModel(v, y), g = computed(() => {
|
15553
|
-
var
|
15554
|
-
if (!isNil((
|
15555
|
-
return (
|
15602
|
+
var K, x, W, X;
|
15603
|
+
if (!isNil((x = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : x.kgDisabled))
|
15604
|
+
return (X = (W = r == null ? void 0 : r.value) == null ? void 0 : W.KgSearch) == null ? void 0 : X.kgDisabled;
|
15556
15605
|
if (!isNil(e.kgDisabled))
|
15557
15606
|
return e.kgDisabled;
|
15558
15607
|
}), b = computed(() => {
|
15559
|
-
var
|
15560
|
-
return !!(g.value || l.isRetrieving.value || ((
|
15608
|
+
var K, x;
|
15609
|
+
return !!(g.value || l.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
15561
15610
|
}), E = computed(() => !!(g.value || l.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), C = computed(() => !!(g.value || l.isRetrieving.value)), T = ref({
|
15562
15611
|
visible: !1
|
15563
|
-
}),
|
15564
|
-
var
|
15565
|
-
if (n.t((
|
15566
|
-
return n.t((
|
15567
|
-
}),
|
15568
|
-
var
|
15569
|
-
switch ((
|
15612
|
+
}), M = computed(() => y.value.kgHeight === m.value), k = computed(() => {
|
15613
|
+
var K, x, W;
|
15614
|
+
if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((x = n.varButtonSearch.value) == null ? void 0 : x.var_nam))
|
15615
|
+
return n.t((W = n.varButtonSearch.value) == null ? void 0 : W.var_nam).value;
|
15616
|
+
}), V = computed(() => {
|
15617
|
+
var K;
|
15618
|
+
switch ((K = n.varButtonSearch.value) == null ? void 0 : K.primary_flg) {
|
15570
15619
|
case 1:
|
15571
15620
|
return !0;
|
15572
15621
|
case 0:
|
@@ -15574,34 +15623,34 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15574
15623
|
default:
|
15575
15624
|
return !0;
|
15576
15625
|
}
|
15577
|
-
}),
|
15578
|
-
let
|
15579
|
-
return o.value && (
|
15626
|
+
}), w = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), I = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), A = computed(() => {
|
15627
|
+
let K = "kg-search";
|
15628
|
+
return o.value && (K += " kg-search--visible"), c.value && (K += " kg-search--teleport"), K;
|
15580
15629
|
});
|
15581
|
-
async function P(
|
15630
|
+
async function P(K = !1) {
|
15582
15631
|
if (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8FDB\u5165\u65B9\u6CD5.`), b.value) {
|
15583
15632
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u91CD\u7F6E\u6309\u94AE\u7981\u7528.`);
|
15584
15633
|
return;
|
15585
15634
|
}
|
15586
15635
|
o.value ? v.value && v.value.validate().then(async () => {
|
15587
15636
|
await s.store.emit(n.formID, "search", {
|
15588
|
-
resetPageIndex:
|
15637
|
+
resetPageIndex: K
|
15589
15638
|
});
|
15590
|
-
}).catch((
|
15639
|
+
}).catch((x) => {
|
15591
15640
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
15592
|
-
e:
|
15641
|
+
e: x
|
15593
15642
|
});
|
15594
15643
|
}) : await s.store.emit(n.formID, "search", {
|
15595
|
-
resetPageIndex:
|
15644
|
+
resetPageIndex: K
|
15596
15645
|
});
|
15597
15646
|
}
|
15598
15647
|
s.store.setSearchFn(n.formID, P);
|
15599
15648
|
async function N() {
|
15600
15649
|
p.initFormModel(), o.value ? v.value && v.value.validate().then(async () => {
|
15601
15650
|
await s.store.emit(n.formID, "reset", {});
|
15602
|
-
}).catch((
|
15651
|
+
}).catch((K) => {
|
15603
15652
|
KgLogger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
15604
|
-
e:
|
15653
|
+
e: K
|
15605
15654
|
});
|
15606
15655
|
}) : await s.store.emit(n.formID, "reset", {});
|
15607
15656
|
}
|
@@ -15609,29 +15658,29 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15609
15658
|
function U() {
|
15610
15659
|
return P(!0), Promise.resolve(!0);
|
15611
15660
|
}
|
15612
|
-
function
|
15613
|
-
var
|
15661
|
+
function D() {
|
15662
|
+
var K;
|
15614
15663
|
return createVNode("div", {
|
15615
15664
|
class: "title",
|
15616
15665
|
onClick: F
|
15617
|
-
}, [((
|
15666
|
+
}, [((K = t == null ? void 0 : t.KgSearch) == null ? void 0 : K.left) && createVNode("div", {
|
15618
15667
|
class: "kg-search-title-left",
|
15619
|
-
onClick: (
|
15620
|
-
|
15668
|
+
onClick: (x) => {
|
15669
|
+
x.stopPropagation(), x.preventDefault();
|
15621
15670
|
}
|
15622
|
-
}, [t.KgSearch.left()]),
|
15671
|
+
}, [t.KgSearch.left()]), M.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
|
15623
15672
|
}
|
15624
|
-
function
|
15625
|
-
var
|
15626
|
-
return ((
|
15627
|
-
value: (
|
15673
|
+
function O() {
|
15674
|
+
var K, x, W, X;
|
15675
|
+
return ((W = (x = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : x.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
15676
|
+
value: (X = n.currentVarProfileMasterID.value) != null ? X : void 0,
|
15628
15677
|
"onUpdate:value": (z) => n.store.setCurrentVarProfileMasterID(n.formID, z),
|
15629
15678
|
disabled: E.value,
|
15630
15679
|
class: "kg-search-profile-master-select"
|
15631
15680
|
}, {
|
15632
15681
|
default: () => {
|
15633
|
-
var z,
|
15634
|
-
return (
|
15682
|
+
var z, ee;
|
15683
|
+
return (ee = (z = n.varProfileMasters) == null ? void 0 : z.value) == null ? void 0 : ee.map((re) => createVNode(Select.Option, {
|
15635
15684
|
value: re.id
|
15636
15685
|
}, {
|
15637
15686
|
default: () => [n.t(re == null ? void 0 : re.prf_var_nam).value]
|
@@ -15654,9 +15703,9 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15654
15703
|
hostFormID: n.formID
|
15655
15704
|
}, null)]);
|
15656
15705
|
}
|
15657
|
-
function
|
15658
|
-
var
|
15659
|
-
return createVNode(Fragment, null, [
|
15706
|
+
function R() {
|
15707
|
+
var K, x, W, X, z;
|
15708
|
+
return createVNode(Fragment, null, [O(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code)) && createVNode(Button, {
|
15660
15709
|
type: "primary",
|
15661
15710
|
ghost: !b.value,
|
15662
15711
|
disabled: b.value,
|
@@ -15666,11 +15715,11 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15666
15715
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
15667
15716
|
}), createVNode(KgButton.Item, {
|
15668
15717
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
15669
|
-
kgVarName: (
|
15670
|
-
kgIcon: (
|
15718
|
+
kgVarName: (W = n.varButtonSearch.value) == null ? void 0 : W.var_nam,
|
15719
|
+
kgIcon: (X = n.varButtonSearch.value) == null ? void 0 : X.icon,
|
15671
15720
|
kgText: k.value,
|
15672
15721
|
kgColor: (z = n.varButtonSearch.value) == null ? void 0 : z.color,
|
15673
|
-
kgPrimary:
|
15722
|
+
kgPrimary: V.value,
|
15674
15723
|
kgLoading: C.value,
|
15675
15724
|
onKgClick: U
|
15676
15725
|
}, null)]);
|
@@ -15680,19 +15729,19 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15680
15729
|
spinning: I.value
|
15681
15730
|
}, {
|
15682
15731
|
default: () => {
|
15683
|
-
var
|
15732
|
+
var K;
|
15684
15733
|
return [createVNode(KgForm, {
|
15685
15734
|
ref: v,
|
15686
|
-
model: (
|
15735
|
+
model: (K = s.model.value) != null ? K : {}
|
15687
15736
|
}, {
|
15688
15737
|
default: () => [createVNode(Row, {
|
15689
15738
|
gutter: 6
|
15690
15739
|
}, {
|
15691
15740
|
default: () => {
|
15692
|
-
var
|
15693
|
-
return [(
|
15694
|
-
key:
|
15695
|
-
kgVarName:
|
15741
|
+
var x;
|
15742
|
+
return [(x = n.currentVarProfileDetails.value) == null ? void 0 : x.map((W) => createVNode(KgForm.Item, {
|
15743
|
+
key: W.var_nam,
|
15744
|
+
kgVarName: W.var_nam,
|
15696
15745
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
15697
15746
|
onKgSubmit: () => P(!0)
|
15698
15747
|
}, null))];
|
@@ -15703,15 +15752,15 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15703
15752
|
});
|
15704
15753
|
}
|
15705
15754
|
function F() {
|
15706
|
-
|
15755
|
+
M.value ? y.value.kgHeight = u.value : y.value.kgHeight = m.value;
|
15707
15756
|
}
|
15708
15757
|
return () => createVNode(KgResizable, {
|
15709
15758
|
kgHeight: y.value.kgHeight,
|
15710
|
-
"onUpdate:kgHeight": (
|
15759
|
+
"onUpdate:kgHeight": (K) => y.value.kgHeight = K,
|
15711
15760
|
kgMinHeight: m.value,
|
15712
15761
|
kgMaxHeight: d.value,
|
15713
15762
|
kgDisabled: !i.value,
|
15714
|
-
kgClass:
|
15763
|
+
kgClass: A.value,
|
15715
15764
|
"kg-frm_id": n.formID
|
15716
15765
|
}, {
|
15717
15766
|
default: () => [o.value && createVNode("div", {
|
@@ -15725,11 +15774,11 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15725
15774
|
default: () => [createVNode("div", {
|
15726
15775
|
class: "ant-collapse-header"
|
15727
15776
|
}, [createVNode(Spin, {
|
15728
|
-
spinning:
|
15777
|
+
spinning: w.value
|
15729
15778
|
}, {
|
15730
|
-
default: () => [
|
15779
|
+
default: () => [D(), createVNode("div", {
|
15731
15780
|
class: "ant-collapse-extra"
|
15732
|
-
}, [
|
15781
|
+
}, [R()])]
|
15733
15782
|
})])]
|
15734
15783
|
}), createVNode("div", {
|
15735
15784
|
class: "ant-collapse-content ant-collapse-content-active"
|
@@ -15801,13 +15850,13 @@ function useMagicKeys(e = {}) {
|
|
15801
15850
|
}
|
15802
15851
|
function v(p, g) {
|
15803
15852
|
var b, E;
|
15804
|
-
const C = (b = p.key) == null ? void 0 : b.toLowerCase(), T = (E = p.code) == null ? void 0 : E.toLowerCase(),
|
15853
|
+
const C = (b = p.key) == null ? void 0 : b.toLowerCase(), T = (E = p.code) == null ? void 0 : E.toLowerCase(), M = [T, C].filter(Boolean);
|
15805
15854
|
T && (g ? l.add(p.code) : l.delete(p.code));
|
15806
|
-
for (const k of
|
15855
|
+
for (const k of M)
|
15807
15856
|
u.add(k), d(k, g);
|
15808
15857
|
C === "meta" && !g ? (c.forEach((k) => {
|
15809
15858
|
l.delete(k), d(k, !1);
|
15810
|
-
}), c.clear()) : typeof p.getModifierState == "function" && p.getModifierState("Meta") && g && [...l, ...
|
15859
|
+
}), c.clear()) : typeof p.getModifierState == "function" && p.getModifierState("Meta") && g && [...l, ...M].forEach((k) => c.add(k));
|
15811
15860
|
}
|
15812
15861
|
r && (useEventListener(r, "keydown", (p) => (v(p, !0), s(p)), { passive: n }), useEventListener(r, "keyup", (p) => (v(p, !1), s(p)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
|
15813
15862
|
const y = new Proxy(i, {
|
@@ -16206,7 +16255,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16206
16255
|
columnWidth: 32,
|
16207
16256
|
hideSelectAll: !0,
|
16208
16257
|
selectedRowKeys: d,
|
16209
|
-
onSelect: (N) =>
|
16258
|
+
onSelect: (N) => V(N)
|
16210
16259
|
}), v = ref({
|
16211
16260
|
visible: !1
|
16212
16261
|
}), y = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(l))), p = computed(() => {
|
@@ -16218,15 +16267,15 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16218
16267
|
}, {
|
16219
16268
|
immediate: !0
|
16220
16269
|
}), watch(() => a.getSelectedVarCatalog, async (N) => {
|
16221
|
-
var U,
|
16222
|
-
i.value.var_text = (U = N == null ? void 0 : N.var_text) != null ? U : "", (
|
16270
|
+
var U, D;
|
16271
|
+
i.value.var_text = (U = N == null ? void 0 : N.var_text) != null ? U : "", (D = o.value) == null || D.clearValidate();
|
16223
16272
|
});
|
16224
16273
|
async function E(N = !1) {
|
16225
|
-
var U,
|
16274
|
+
var U, D, O;
|
16226
16275
|
n.value = !0;
|
16227
16276
|
try {
|
16228
16277
|
const {
|
16229
|
-
records:
|
16278
|
+
records: R
|
16230
16279
|
} = await List({
|
16231
16280
|
params: {
|
16232
16281
|
pageNo: 1,
|
@@ -16237,49 +16286,49 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16237
16286
|
order: "asc"
|
16238
16287
|
}
|
16239
16288
|
});
|
16240
|
-
if (u.value = null, c.value =
|
16289
|
+
if (u.value = null, c.value = R != null ? R : [], N) {
|
16241
16290
|
const G = c.value.find((F) => {
|
16242
|
-
var
|
16243
|
-
return F.id === ((
|
16291
|
+
var K;
|
16292
|
+
return F.id === ((K = a.getSelectedVarCatalog) == null ? void 0 : K.id);
|
16244
16293
|
});
|
16245
16294
|
a.setSelectedVarCatalog(G != null ? G : null), d.value = G != null && G.id ? [G.id] : [];
|
16246
16295
|
} else
|
16247
|
-
a.setSelectedVarCatalog((
|
16248
|
-
} catch (
|
16249
|
-
KgLogger.debug(
|
16296
|
+
a.setSelectedVarCatalog((D = c.value[0]) != null ? D : null), d.value = (O = c.value[0]) != null && O.id ? [c.value[0].id] : [];
|
16297
|
+
} catch (R) {
|
16298
|
+
KgLogger.debug(R == null ? void 0 : R.message);
|
16250
16299
|
} finally {
|
16251
16300
|
n.value = !1;
|
16252
16301
|
}
|
16253
16302
|
}
|
16254
16303
|
async function C() {
|
16255
|
-
var N, U,
|
16304
|
+
var N, U, D;
|
16256
16305
|
try {
|
16257
16306
|
s.value = !0, await ((N = o.value) == null ? void 0 : N.validate());
|
16258
|
-
const
|
16307
|
+
const O = new VarCatalog({
|
16259
16308
|
...(U = a.getSelectedVarCatalog) != null ? U : {},
|
16260
|
-
var_text: (
|
16309
|
+
var_text: (D = i.value) == null ? void 0 : D.var_text
|
16261
16310
|
});
|
16262
|
-
|
16263
|
-
data:
|
16311
|
+
O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add({
|
16312
|
+
data: O
|
16264
16313
|
}, {
|
16265
16314
|
successMessageMode: "none"
|
16266
16315
|
}), message.success({
|
16267
16316
|
content: t.t("kg.KgVarConfig.createSuccess")
|
16268
16317
|
}), await E()) : (await Edit({
|
16269
|
-
data:
|
16318
|
+
data: O
|
16270
16319
|
}, {
|
16271
16320
|
successMessageMode: "none"
|
16272
16321
|
}), message.success({
|
16273
16322
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
16274
16323
|
}), await E(!0)) : (await Add({
|
16275
|
-
data:
|
16324
|
+
data: O
|
16276
16325
|
}, {
|
16277
16326
|
successMessageMode: "none"
|
16278
16327
|
}), message.success({
|
16279
16328
|
content: t.t("kg.KgVarConfig.createSuccess")
|
16280
16329
|
}), await E()), r.retrieve(e == null ? void 0 : e.value);
|
16281
|
-
} catch (
|
16282
|
-
KgUtil.throwIfNotFormError(
|
16330
|
+
} catch (O) {
|
16331
|
+
KgUtil.throwIfNotFormError(O);
|
16283
16332
|
} finally {
|
16284
16333
|
s.value = !1;
|
16285
16334
|
}
|
@@ -16288,18 +16337,18 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16288
16337
|
isAllForm: N,
|
16289
16338
|
isAllLanguage: U
|
16290
16339
|
}) {
|
16291
|
-
var
|
16340
|
+
var D, O, R;
|
16292
16341
|
u.value = new VarCatalog({
|
16293
16342
|
id: "",
|
16294
16343
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
16295
|
-
grp_nam: (
|
16296
|
-
var_nam: (
|
16344
|
+
grp_nam: (D = a.getSelectedVar) == null ? void 0 : D.grp_nam,
|
16345
|
+
var_nam: (O = a.getSelectedVar) == null ? void 0 : O.var_nam,
|
16297
16346
|
frm_id: N || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
16298
|
-
locale_id: U ? "ALL" : (
|
16347
|
+
locale_id: U ? "ALL" : (R = t.locale) == null ? void 0 : R.value,
|
16299
16348
|
var_text: ""
|
16300
16349
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
16301
16350
|
}
|
16302
|
-
function
|
16351
|
+
function M() {
|
16303
16352
|
var U;
|
16304
16353
|
c.value = without$1(c.value, u.value), u.value = null;
|
16305
16354
|
const N = (U = c.value[0]) != null ? U : null;
|
@@ -16322,7 +16371,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16322
16371
|
}
|
16323
16372
|
});
|
16324
16373
|
}
|
16325
|
-
function
|
16374
|
+
function V(N) {
|
16326
16375
|
var U;
|
16327
16376
|
((U = a.getSelectedVarCatalog) == null ? void 0 : U.id) !== N.id && (unref(u) ? KgUtil.confirm({
|
16328
16377
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
@@ -16331,14 +16380,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16331
16380
|
}
|
16332
16381
|
}) : (a.setSelectedVarCatalog(unref(N)), d.value = [N.id]));
|
16333
16382
|
}
|
16334
|
-
function
|
16383
|
+
function w() {
|
16335
16384
|
v.value.visible = !0;
|
16336
16385
|
}
|
16337
16386
|
function I() {
|
16338
16387
|
return createVNode("div", {
|
16339
16388
|
class: "buttons"
|
16340
16389
|
}, [createVNode(Button, {
|
16341
|
-
onClick:
|
16390
|
+
onClick: w,
|
16342
16391
|
disabled: y.value,
|
16343
16392
|
type: "primary"
|
16344
16393
|
}, {
|
@@ -16353,7 +16402,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16353
16402
|
default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
|
16354
16403
|
})]);
|
16355
16404
|
}
|
16356
|
-
function
|
16405
|
+
function A() {
|
16357
16406
|
let N, U;
|
16358
16407
|
return createVNode("div", {
|
16359
16408
|
class: "form"
|
@@ -16371,7 +16420,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16371
16420
|
}, {
|
16372
16421
|
default: () => [createVNode(Textarea, {
|
16373
16422
|
value: i.value.var_text,
|
16374
|
-
"onUpdate:value": (
|
16423
|
+
"onUpdate:value": (D) => i.value.var_text = D,
|
16375
16424
|
disabled: !a.getSelectedVarCatalog
|
16376
16425
|
}, null), createVNode("button", {
|
16377
16426
|
hidden: !0
|
@@ -16381,7 +16430,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16381
16430
|
class: "buttons"
|
16382
16431
|
}, [createVNode(Button, {
|
16383
16432
|
disabled: g.value,
|
16384
|
-
onClick:
|
16433
|
+
onClick: M
|
16385
16434
|
}, _isSlot(N = t.t("common.cancelText")) ? N : {
|
16386
16435
|
default: () => [N]
|
16387
16436
|
}), createVNode(Button, {
|
@@ -16394,9 +16443,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16394
16443
|
})])]);
|
16395
16444
|
}
|
16396
16445
|
function P(N) {
|
16397
|
-
var
|
16446
|
+
var D;
|
16398
16447
|
let U = "";
|
16399
|
-
return N.id || (U += " ant-table-row-create"), N.id === ((
|
16448
|
+
return N.id || (U += " ant-table-row-create"), N.id === ((D = a.getSelectedVarCatalog) == null ? void 0 : D.id) && (U += " ant-table-row-selected "), U;
|
16400
16449
|
}
|
16401
16450
|
return () => createVNode("div", {
|
16402
16451
|
class: "kg-var-config-modal-var-var-catalog"
|
@@ -16415,9 +16464,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16415
16464
|
rowClassName: P,
|
16416
16465
|
rowSelection: m.value,
|
16417
16466
|
customRow: (N) => ({
|
16418
|
-
onClick: () =>
|
16467
|
+
onClick: () => V(N)
|
16419
16468
|
})
|
16420
|
-
}, null),
|
16469
|
+
}, null), A(), createVNode(KgVarConfigModalVarCreateModal, {
|
16421
16470
|
visible: v.value.visible,
|
16422
16471
|
"onUpdate:visible": (N) => v.value.visible = N,
|
16423
16472
|
onKgOk: T
|
@@ -16743,22 +16792,22 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16743
16792
|
customRender: ({
|
16744
16793
|
record: T
|
16745
16794
|
}) => {
|
16746
|
-
var k,
|
16747
|
-
const
|
16748
|
-
return createVNode("div", null, [createVNode("div", null, [(k =
|
16795
|
+
var k, V, w;
|
16796
|
+
const M = T;
|
16797
|
+
return createVNode("div", null, [createVNode("div", null, [(k = M.whDsc) != null ? k : " ", createTextVNode(" - "), (V = M.whId) != null ? V : " "]), createVNode("div", {
|
16749
16798
|
class: "address"
|
16750
|
-
}, [(
|
16799
|
+
}, [(w = M.adrId) != null ? w : " "])]);
|
16751
16800
|
}
|
16752
16801
|
}]), u = ref([]), d = computed(() => {
|
16753
|
-
var
|
16754
|
-
const T = (
|
16802
|
+
var M;
|
16803
|
+
const T = (M = s.value) == null ? void 0 : M.toUpperCase();
|
16755
16804
|
return u.value.filter((k) => {
|
16756
|
-
var
|
16757
|
-
return ((
|
16805
|
+
var V, w, I, A, P, N;
|
16806
|
+
return ((w = (V = k.whDsc) == null ? void 0 : V.toUpperCase()) == null ? void 0 : w.includes(T)) || ((A = (I = k.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : A.includes(T)) || ((N = (P = k.adrId) == null ? void 0 : P.toUpperCase()) == null ? void 0 : N.includes(T));
|
16758
16807
|
});
|
16759
16808
|
}), m = computed(() => {
|
16760
|
-
var T,
|
16761
|
-
return ((
|
16809
|
+
var T, M;
|
16810
|
+
return ((M = (T = r.option.value) == null ? void 0 : T.KgWarehouse) == null ? void 0 : M.enable) !== !1;
|
16762
16811
|
});
|
16763
16812
|
watch(a.visible, (T) => {
|
16764
16813
|
!m.value || (T ? y() : p());
|
@@ -16808,14 +16857,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16808
16857
|
i.value = !1;
|
16809
16858
|
}
|
16810
16859
|
}
|
16811
|
-
function E(T,
|
16860
|
+
function E(T, M) {
|
16812
16861
|
var k;
|
16813
16862
|
switch (T.detail) {
|
16814
16863
|
case 1:
|
16815
|
-
((k = o.value) == null ? void 0 : k.id) ===
|
16864
|
+
((k = o.value) == null ? void 0 : k.id) === M.id ? o.value = null : o.value = M;
|
16816
16865
|
break;
|
16817
16866
|
case 2:
|
16818
|
-
o.value =
|
16867
|
+
o.value = M, g();
|
16819
16868
|
break;
|
16820
16869
|
}
|
16821
16870
|
}
|
@@ -16825,8 +16874,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16825
16874
|
placement: "bottomRight"
|
16826
16875
|
}, {
|
16827
16876
|
default: () => {
|
16828
|
-
var T,
|
16829
|
-
return [((T = l.value) == null ? void 0 : T.whDsc) || ((
|
16877
|
+
var T, M;
|
16878
|
+
return [((T = l.value) == null ? void 0 : T.whDsc) || ((M = l.value) == null ? void 0 : M.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
16830
16879
|
}
|
16831
16880
|
}), createVNode(KgModal, {
|
16832
16881
|
visible: a.visible.value,
|
@@ -16868,9 +16917,9 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16868
16917
|
columns: c,
|
16869
16918
|
class: "kg-flex-table",
|
16870
16919
|
customRow: (T) => {
|
16871
|
-
var
|
16920
|
+
var M;
|
16872
16921
|
return {
|
16873
|
-
class: T.id === ((
|
16922
|
+
class: T.id === ((M = o.value) == null ? void 0 : M.id) ? "selected" : "",
|
16874
16923
|
onClick: (k) => E(k, T)
|
16875
16924
|
};
|
16876
16925
|
}
|