@kengic/vue 0.6.2 → 0.6.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kengic-vue.js +1031 -1024
- package/dist/src/components/KgTable/index.vm.d.ts +4 -2
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -2182,7 +2182,7 @@ var Icon$1 = function(t, r) {
|
|
2182
2182
|
var b = l ? {
|
2183
2183
|
msTransform: "rotate(".concat(l, "deg)"),
|
2184
2184
|
transform: "rotate(".concat(l, "deg)")
|
2185
|
-
} : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2),
|
2185
|
+
} : void 0, y = normalizeTwoToneColors(c), C = _slicedToArray(y, 2), k = C[0], T = C[1];
|
2186
2186
|
return createVNode("span", _objectSpread$k({
|
2187
2187
|
role: "img",
|
2188
2188
|
"aria-label": i.name
|
@@ -2192,7 +2192,7 @@ var Icon$1 = function(t, r) {
|
|
2192
2192
|
}), [createVNode(VueIcon, {
|
2193
2193
|
class: _,
|
2194
2194
|
icon: i,
|
2195
|
-
primaryColor:
|
2195
|
+
primaryColor: k,
|
2196
2196
|
secondaryColor: T,
|
2197
2197
|
style: b
|
2198
2198
|
}, null)]);
|
@@ -2998,11 +2998,11 @@ function iconToSVG(e, t) {
|
|
2998
2998
|
), v.push("scale(-1 1)"), n.top = n.left = 0) : y && (v.push(
|
2999
2999
|
"translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
|
3000
3000
|
), v.push("scale(1 -1)"), n.top = n.left = 0);
|
3001
|
-
let
|
3001
|
+
let k;
|
3002
3002
|
switch (C < 0 && (C -= Math.floor(C / 4) * 4), C = C % 4, C) {
|
3003
3003
|
case 1:
|
3004
|
-
|
3005
|
-
"rotate(90 " +
|
3004
|
+
k = n.height / 2 + n.top, v.unshift(
|
3005
|
+
"rotate(90 " + k.toString() + " " + k.toString() + ")"
|
3006
3006
|
);
|
3007
3007
|
break;
|
3008
3008
|
case 2:
|
@@ -3011,12 +3011,12 @@ function iconToSVG(e, t) {
|
|
3011
3011
|
);
|
3012
3012
|
break;
|
3013
3013
|
case 3:
|
3014
|
-
|
3015
|
-
"rotate(-90 " +
|
3014
|
+
k = n.width / 2 + n.left, v.unshift(
|
3015
|
+
"rotate(-90 " + k.toString() + " " + k.toString() + ")"
|
3016
3016
|
);
|
3017
3017
|
break;
|
3018
3018
|
}
|
3019
|
-
C % 2 === 1 && (n.left !== n.top && (
|
3019
|
+
C % 2 === 1 && (n.left !== n.top && (k = n.left, n.left = n.top, n.top = k), n.width !== n.height && (k = n.width, n.width = n.height, n.height = k)), v.length && (o = '<g transform="' + v.join(" ") + '">' + o + "</g>");
|
3020
3020
|
});
|
3021
3021
|
const i = a.width, s = a.height, l = n.width, u = n.height;
|
3022
3022
|
let c, g;
|
@@ -3296,12 +3296,12 @@ function sendQuery(e, t, r, a) {
|
|
3296
3296
|
const n = e.resources.length, o = e.random ? Math.floor(Math.random() * n) : e.index;
|
3297
3297
|
let i;
|
3298
3298
|
if (e.random) {
|
3299
|
-
let
|
3300
|
-
for (i = [];
|
3301
|
-
const
|
3302
|
-
i.push(
|
3299
|
+
let E = e.resources.slice(0);
|
3300
|
+
for (i = []; E.length > 1; ) {
|
3301
|
+
const $ = Math.floor(Math.random() * E.length);
|
3302
|
+
i.push(E[$]), E = E.slice(0, $).concat(E.slice($ + 1));
|
3303
3303
|
}
|
3304
|
-
i = i.concat(
|
3304
|
+
i = i.concat(E);
|
3305
3305
|
} else
|
3306
3306
|
i = e.resources.slice(o).concat(e.resources.slice(0, o));
|
3307
3307
|
const s = Date.now();
|
@@ -3311,12 +3311,12 @@ function sendQuery(e, t, r, a) {
|
|
3311
3311
|
g && (clearTimeout(g), g = null);
|
3312
3312
|
}
|
3313
3313
|
function v() {
|
3314
|
-
l === "pending" && (l = "aborted"), _(), p.forEach((
|
3315
|
-
|
3314
|
+
l === "pending" && (l = "aborted"), _(), p.forEach((E) => {
|
3315
|
+
E.status === "pending" && (E.status = "aborted");
|
3316
3316
|
}), p = [];
|
3317
3317
|
}
|
3318
|
-
function b(
|
3319
|
-
|
3318
|
+
function b(E, $) {
|
3319
|
+
$ && (m = []), typeof E == "function" && m.push(E);
|
3320
3320
|
}
|
3321
3321
|
function y() {
|
3322
3322
|
return {
|
@@ -3330,68 +3330,68 @@ function sendQuery(e, t, r, a) {
|
|
3330
3330
|
};
|
3331
3331
|
}
|
3332
3332
|
function C() {
|
3333
|
-
l = "failed", m.forEach((
|
3334
|
-
|
3333
|
+
l = "failed", m.forEach((E) => {
|
3334
|
+
E(void 0, c);
|
3335
3335
|
});
|
3336
3336
|
}
|
3337
|
-
function
|
3338
|
-
p.forEach((
|
3339
|
-
|
3337
|
+
function k() {
|
3338
|
+
p.forEach((E) => {
|
3339
|
+
E.status === "pending" && (E.status = "aborted");
|
3340
3340
|
}), p = [];
|
3341
3341
|
}
|
3342
|
-
function T(
|
3343
|
-
const
|
3344
|
-
switch (p = p.filter((O) => O !==
|
3342
|
+
function T(E, $, M) {
|
3343
|
+
const I = $ !== "success";
|
3344
|
+
switch (p = p.filter((O) => O !== E), l) {
|
3345
3345
|
case "pending":
|
3346
3346
|
break;
|
3347
3347
|
case "failed":
|
3348
|
-
if (
|
3348
|
+
if (I || !e.dataAfterTimeout)
|
3349
3349
|
return;
|
3350
3350
|
break;
|
3351
3351
|
default:
|
3352
3352
|
return;
|
3353
3353
|
}
|
3354
|
-
if (
|
3354
|
+
if ($ === "abort") {
|
3355
3355
|
c = M, C();
|
3356
3356
|
return;
|
3357
3357
|
}
|
3358
|
-
if (
|
3359
|
-
c = M, p.length || (i.length ?
|
3358
|
+
if (I) {
|
3359
|
+
c = M, p.length || (i.length ? A() : C());
|
3360
3360
|
return;
|
3361
3361
|
}
|
3362
|
-
if (_(),
|
3363
|
-
const O = e.resources.indexOf(
|
3362
|
+
if (_(), k(), !e.random) {
|
3363
|
+
const O = e.resources.indexOf(E.resource);
|
3364
3364
|
O !== -1 && O !== e.index && (e.index = O);
|
3365
3365
|
}
|
3366
3366
|
l = "completed", m.forEach((O) => {
|
3367
3367
|
O(M);
|
3368
3368
|
});
|
3369
3369
|
}
|
3370
|
-
function
|
3370
|
+
function A() {
|
3371
3371
|
if (l !== "pending")
|
3372
3372
|
return;
|
3373
3373
|
_();
|
3374
|
-
const
|
3375
|
-
if (
|
3374
|
+
const E = i.shift();
|
3375
|
+
if (E === void 0) {
|
3376
3376
|
if (p.length) {
|
3377
3377
|
g = setTimeout(() => {
|
3378
|
-
_(), l === "pending" && (
|
3378
|
+
_(), l === "pending" && (k(), C());
|
3379
3379
|
}, e.timeout);
|
3380
3380
|
return;
|
3381
3381
|
}
|
3382
3382
|
C();
|
3383
3383
|
return;
|
3384
3384
|
}
|
3385
|
-
const
|
3385
|
+
const $ = {
|
3386
3386
|
status: "pending",
|
3387
|
-
resource:
|
3388
|
-
callback: (M,
|
3389
|
-
T(
|
3387
|
+
resource: E,
|
3388
|
+
callback: (M, I) => {
|
3389
|
+
T($, M, I);
|
3390
3390
|
}
|
3391
3391
|
};
|
3392
|
-
p.push(
|
3392
|
+
p.push($), u++, g = setTimeout(A, e.rotate), r(E, t, $.callback);
|
3393
3393
|
}
|
3394
|
-
return setTimeout(
|
3394
|
+
return setTimeout(A), y;
|
3395
3395
|
}
|
3396
3396
|
function initRedundancy(e) {
|
3397
3397
|
const t = {
|
@@ -3920,207 +3920,207 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3920
3920
|
(function(r, a) {
|
3921
3921
|
e.exports = a();
|
3922
3922
|
})(commonjsGlobal, function() {
|
3923
|
-
var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", m = "year", _ = "date", v = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, C = { 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(
|
3924
|
-
var
|
3925
|
-
return "[" +
|
3926
|
-
} },
|
3927
|
-
var
|
3928
|
-
return !
|
3929
|
-
}, T = { s:
|
3930
|
-
var
|
3931
|
-
return (
|
3932
|
-
}, m: function R
|
3933
|
-
if (
|
3934
|
-
return -
|
3935
|
-
var
|
3936
|
-
return +(-(
|
3937
|
-
}, a: function(
|
3938
|
-
return
|
3939
|
-
}, p: function(
|
3940
|
-
return { M: g, y: m, w: c, d: u, D: _, h: l, m: s, s: i, ms: o, Q: p }[
|
3941
|
-
}, u: function(
|
3942
|
-
return
|
3943
|
-
} },
|
3944
|
-
|
3945
|
-
var
|
3946
|
-
return
|
3947
|
-
}, M = function R
|
3948
|
-
var
|
3949
|
-
if (!
|
3950
|
-
return
|
3951
|
-
if (typeof
|
3952
|
-
var B =
|
3953
|
-
|
3954
|
-
var x =
|
3955
|
-
if (!
|
3956
|
-
return
|
3923
|
+
var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", m = "year", _ = "date", v = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, C = { 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(N) {
|
3924
|
+
var R = ["th", "st", "nd", "rd"], D = N % 100;
|
3925
|
+
return "[" + N + (R[(D - 20) % 10] || R[D] || R[0]) + "]";
|
3926
|
+
} }, k = function(N, R, D) {
|
3927
|
+
var V = String(N);
|
3928
|
+
return !V || V.length >= R ? N : "" + Array(R + 1 - V.length).join(D) + N;
|
3929
|
+
}, T = { s: k, z: function(N) {
|
3930
|
+
var R = -N.utcOffset(), D = Math.abs(R), V = Math.floor(D / 60), P = D % 60;
|
3931
|
+
return (R <= 0 ? "+" : "-") + k(V, 2, "0") + ":" + k(P, 2, "0");
|
3932
|
+
}, m: function N(R, D) {
|
3933
|
+
if (R.date() < D.date())
|
3934
|
+
return -N(D, R);
|
3935
|
+
var V = 12 * (D.year() - R.year()) + (D.month() - R.month()), P = R.clone().add(V, g), B = D - P < 0, x = R.clone().add(V + (B ? -1 : 1), g);
|
3936
|
+
return +(-(V + (D - P) / (B ? P - x : x - P)) || 0);
|
3937
|
+
}, a: function(N) {
|
3938
|
+
return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
|
3939
|
+
}, p: function(N) {
|
3940
|
+
return { M: g, y: m, w: c, d: u, D: _, h: l, m: s, s: i, ms: o, Q: p }[N] || String(N || "").toLowerCase().replace(/s$/, "");
|
3941
|
+
}, u: function(N) {
|
3942
|
+
return N === void 0;
|
3943
|
+
} }, A = "en", E = {};
|
3944
|
+
E[A] = C;
|
3945
|
+
var $ = function(N) {
|
3946
|
+
return N instanceof F;
|
3947
|
+
}, M = function N(R, D, V) {
|
3948
|
+
var P;
|
3949
|
+
if (!R)
|
3950
|
+
return A;
|
3951
|
+
if (typeof R == "string") {
|
3952
|
+
var B = R.toLowerCase();
|
3953
|
+
E[B] && (P = B), D && (E[B] = D, P = B);
|
3954
|
+
var x = R.split("-");
|
3955
|
+
if (!P && x.length > 1)
|
3956
|
+
return N(x[0]);
|
3957
3957
|
} else {
|
3958
|
-
var
|
3959
|
-
|
3960
|
-
}
|
3961
|
-
return !
|
3962
|
-
},
|
3963
|
-
if (
|
3964
|
-
return
|
3965
|
-
var
|
3966
|
-
return
|
3958
|
+
var G = R.name;
|
3959
|
+
E[G] = R, P = G;
|
3960
|
+
}
|
3961
|
+
return !V && P && (A = P), P || !V && A;
|
3962
|
+
}, I = function(N, R) {
|
3963
|
+
if ($(N))
|
3964
|
+
return N.clone();
|
3965
|
+
var D = typeof R == "object" ? R : {};
|
3966
|
+
return D.date = N, D.args = arguments, new F(D);
|
3967
3967
|
}, O = T;
|
3968
|
-
O.l = M, O.i =
|
3969
|
-
return
|
3968
|
+
O.l = M, O.i = $, O.w = function(N, R) {
|
3969
|
+
return I(N, { locale: R.$L, utc: R.$u, x: R.$x, $offset: R.$offset });
|
3970
3970
|
};
|
3971
|
-
var
|
3972
|
-
function
|
3973
|
-
this.$L = M(
|
3974
|
-
}
|
3975
|
-
var
|
3976
|
-
return
|
3977
|
-
this.$d = function(
|
3978
|
-
var
|
3979
|
-
if (
|
3971
|
+
var F = function() {
|
3972
|
+
function N(D) {
|
3973
|
+
this.$L = M(D.locale, null, !0), this.parse(D);
|
3974
|
+
}
|
3975
|
+
var R = N.prototype;
|
3976
|
+
return R.parse = function(D) {
|
3977
|
+
this.$d = function(V) {
|
3978
|
+
var P = V.date, B = V.utc;
|
3979
|
+
if (P === null)
|
3980
3980
|
return new Date(NaN);
|
3981
|
-
if (O.u(
|
3981
|
+
if (O.u(P))
|
3982
3982
|
return new Date();
|
3983
|
-
if (
|
3984
|
-
return new Date(
|
3985
|
-
if (typeof
|
3986
|
-
var x =
|
3983
|
+
if (P instanceof Date)
|
3984
|
+
return new Date(P);
|
3985
|
+
if (typeof P == "string" && !/Z$/i.test(P)) {
|
3986
|
+
var x = P.match(b);
|
3987
3987
|
if (x) {
|
3988
|
-
var
|
3989
|
-
return B ? new Date(Date.UTC(x[1],
|
3988
|
+
var G = x[2] - 1 || 0, Y = (x[7] || "0").substring(0, 3);
|
3989
|
+
return B ? new Date(Date.UTC(x[1], G, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Y)) : new Date(x[1], G, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Y);
|
3990
3990
|
}
|
3991
3991
|
}
|
3992
|
-
return new Date(
|
3993
|
-
}(
|
3994
|
-
},
|
3995
|
-
var
|
3996
|
-
this.$y =
|
3997
|
-
},
|
3992
|
+
return new Date(P);
|
3993
|
+
}(D), this.$x = D.x || {}, this.init();
|
3994
|
+
}, R.init = function() {
|
3995
|
+
var D = this.$d;
|
3996
|
+
this.$y = D.getFullYear(), this.$M = D.getMonth(), this.$D = D.getDate(), this.$W = D.getDay(), this.$H = D.getHours(), this.$m = D.getMinutes(), this.$s = D.getSeconds(), this.$ms = D.getMilliseconds();
|
3997
|
+
}, R.$utils = function() {
|
3998
3998
|
return O;
|
3999
|
-
},
|
3999
|
+
}, R.isValid = function() {
|
4000
4000
|
return this.$d.toString() !== v;
|
4001
|
-
},
|
4002
|
-
var
|
4003
|
-
return this.startOf(
|
4004
|
-
},
|
4005
|
-
return
|
4006
|
-
},
|
4007
|
-
return this.endOf(
|
4008
|
-
},
|
4009
|
-
return O.u(
|
4010
|
-
},
|
4001
|
+
}, R.isSame = function(D, V) {
|
4002
|
+
var P = I(D);
|
4003
|
+
return this.startOf(V) <= P && P <= this.endOf(V);
|
4004
|
+
}, R.isAfter = function(D, V) {
|
4005
|
+
return I(D) < this.startOf(V);
|
4006
|
+
}, R.isBefore = function(D, V) {
|
4007
|
+
return this.endOf(V) < I(D);
|
4008
|
+
}, R.$g = function(D, V, P) {
|
4009
|
+
return O.u(D) ? this[V] : this.set(P, D);
|
4010
|
+
}, R.unix = function() {
|
4011
4011
|
return Math.floor(this.valueOf() / 1e3);
|
4012
|
-
},
|
4012
|
+
}, R.valueOf = function() {
|
4013
4013
|
return this.$d.getTime();
|
4014
|
-
},
|
4015
|
-
var
|
4016
|
-
var
|
4017
|
-
return B ?
|
4018
|
-
}, Y = function(
|
4019
|
-
return O.w(
|
4020
|
-
}, q = this.$W, Z = this.$M,
|
4014
|
+
}, R.startOf = function(D, V) {
|
4015
|
+
var P = this, B = !!O.u(V) || V, x = O.p(D), G = function(ge, te) {
|
4016
|
+
var L = O.w(P.$u ? Date.UTC(P.$y, te, ge) : new Date(P.$y, te, ge), P);
|
4017
|
+
return B ? L : L.endOf(u);
|
4018
|
+
}, Y = function(ge, te) {
|
4019
|
+
return O.w(P.toDate()[ge].apply(P.toDate("s"), (B ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), P);
|
4020
|
+
}, q = this.$W, Z = this.$M, ne = this.$D, oe = "set" + (this.$u ? "UTC" : "");
|
4021
4021
|
switch (x) {
|
4022
4022
|
case m:
|
4023
|
-
return B ?
|
4023
|
+
return B ? G(1, 0) : G(31, 11);
|
4024
4024
|
case g:
|
4025
|
-
return B ?
|
4025
|
+
return B ? G(1, Z) : G(0, Z + 1);
|
4026
4026
|
case c:
|
4027
|
-
var
|
4028
|
-
return
|
4027
|
+
var fe = this.$locale().weekStart || 0, pe = (q < fe ? q + 7 : q) - fe;
|
4028
|
+
return G(B ? ne - pe : ne + (6 - pe), Z);
|
4029
4029
|
case u:
|
4030
4030
|
case _:
|
4031
|
-
return Y(
|
4031
|
+
return Y(oe + "Hours", 0);
|
4032
4032
|
case l:
|
4033
|
-
return Y(
|
4033
|
+
return Y(oe + "Minutes", 1);
|
4034
4034
|
case s:
|
4035
|
-
return Y(
|
4035
|
+
return Y(oe + "Seconds", 2);
|
4036
4036
|
case i:
|
4037
|
-
return Y(
|
4037
|
+
return Y(oe + "Milliseconds", 3);
|
4038
4038
|
default:
|
4039
4039
|
return this.clone();
|
4040
4040
|
}
|
4041
|
-
},
|
4042
|
-
return this.startOf(
|
4043
|
-
},
|
4044
|
-
var
|
4041
|
+
}, R.endOf = function(D) {
|
4042
|
+
return this.startOf(D, !1);
|
4043
|
+
}, R.$set = function(D, V) {
|
4044
|
+
var P, B = O.p(D), x = "set" + (this.$u ? "UTC" : ""), G = (P = {}, P[u] = x + "Date", P[_] = x + "Date", P[g] = x + "Month", P[m] = x + "FullYear", P[l] = x + "Hours", P[s] = x + "Minutes", P[i] = x + "Seconds", P[o] = x + "Milliseconds", P)[B], Y = B === u ? this.$D + (V - this.$W) : V;
|
4045
4045
|
if (B === g || B === m) {
|
4046
4046
|
var q = this.clone().set(_, 1);
|
4047
|
-
q.$d[
|
4047
|
+
q.$d[G](Y), q.init(), this.$d = q.set(_, Math.min(this.$D, q.daysInMonth())).$d;
|
4048
4048
|
} else
|
4049
|
-
|
4049
|
+
G && this.$d[G](Y);
|
4050
4050
|
return this.init(), this;
|
4051
|
-
},
|
4052
|
-
return this.clone().$set(
|
4053
|
-
},
|
4054
|
-
return this[O.p(
|
4055
|
-
},
|
4056
|
-
var
|
4057
|
-
|
4058
|
-
var x = O.p(
|
4059
|
-
var
|
4060
|
-
return O.w(
|
4051
|
+
}, R.set = function(D, V) {
|
4052
|
+
return this.clone().$set(D, V);
|
4053
|
+
}, R.get = function(D) {
|
4054
|
+
return this[O.p(D)]();
|
4055
|
+
}, R.add = function(D, V) {
|
4056
|
+
var P, B = this;
|
4057
|
+
D = Number(D);
|
4058
|
+
var x = O.p(V), G = function(Z) {
|
4059
|
+
var ne = I(B);
|
4060
|
+
return O.w(ne.date(ne.date() + Math.round(Z * D)), B);
|
4061
4061
|
};
|
4062
4062
|
if (x === g)
|
4063
|
-
return this.set(g, this.$M +
|
4063
|
+
return this.set(g, this.$M + D);
|
4064
4064
|
if (x === m)
|
4065
|
-
return this.set(m, this.$y +
|
4065
|
+
return this.set(m, this.$y + D);
|
4066
4066
|
if (x === u)
|
4067
|
-
return
|
4067
|
+
return G(1);
|
4068
4068
|
if (x === c)
|
4069
|
-
return
|
4070
|
-
var Y = (
|
4069
|
+
return G(7);
|
4070
|
+
var Y = (P = {}, P[s] = a, P[l] = n, P[i] = r, P)[x] || 1, q = this.$d.getTime() + D * Y;
|
4071
4071
|
return O.w(q, this);
|
4072
|
-
},
|
4073
|
-
return this.add(-1 *
|
4074
|
-
},
|
4075
|
-
var
|
4072
|
+
}, R.subtract = function(D, V) {
|
4073
|
+
return this.add(-1 * D, V);
|
4074
|
+
}, R.format = function(D) {
|
4075
|
+
var V = this, P = this.$locale();
|
4076
4076
|
if (!this.isValid())
|
4077
|
-
return
|
4078
|
-
var B =
|
4079
|
-
return
|
4080
|
-
},
|
4081
|
-
return O.s(
|
4082
|
-
},
|
4083
|
-
var
|
4084
|
-
return
|
4085
|
-
},
|
4086
|
-
return B.replace(y, function(
|
4087
|
-
return
|
4077
|
+
return P.invalidDate || v;
|
4078
|
+
var B = D || "YYYY-MM-DDTHH:mm:ssZ", x = O.z(this), G = this.$H, Y = this.$m, q = this.$M, Z = P.weekdays, ne = P.months, oe = function(te, L, K, H) {
|
4079
|
+
return te && (te[L] || te(V, B)) || K[L].slice(0, H);
|
4080
|
+
}, fe = function(te) {
|
4081
|
+
return O.s(G % 12 || 12, te, "0");
|
4082
|
+
}, pe = P.meridiem || function(te, L, K) {
|
4083
|
+
var H = te < 12 ? "AM" : "PM";
|
4084
|
+
return K ? H.toLowerCase() : H;
|
4085
|
+
}, ge = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: q + 1, MM: O.s(q + 1, 2, "0"), MMM: oe(P.monthsShort, q, ne, 3), MMMM: oe(ne, q), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: oe(P.weekdaysMin, this.$W, Z, 2), ddd: oe(P.weekdaysShort, this.$W, Z, 3), dddd: Z[this.$W], H: String(G), HH: O.s(G, 2, "0"), h: fe(1), hh: fe(2), a: pe(G, Y, !0), A: pe(G, Y, !1), m: String(Y), mm: O.s(Y, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: x };
|
4086
|
+
return B.replace(y, function(te, L) {
|
4087
|
+
return L || ge[te] || x.replace(":", "");
|
4088
4088
|
});
|
4089
|
-
},
|
4089
|
+
}, R.utcOffset = function() {
|
4090
4090
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4091
|
-
},
|
4092
|
-
var B, x = O.p(
|
4093
|
-
return Z = (B = {}, B[m] = Z / 12, B[g] = Z, B[p] = Z / 3, B[c] = (q - Y) / 6048e5, B[u] = (q - Y) / 864e5, B[l] = q / n, B[s] = q / a, B[i] = q / r, B)[x] || q,
|
4094
|
-
},
|
4091
|
+
}, R.diff = function(D, V, P) {
|
4092
|
+
var B, x = O.p(V), G = I(D), Y = (G.utcOffset() - this.utcOffset()) * a, q = this - G, Z = O.m(this, G);
|
4093
|
+
return Z = (B = {}, B[m] = Z / 12, B[g] = Z, B[p] = Z / 3, B[c] = (q - Y) / 6048e5, B[u] = (q - Y) / 864e5, B[l] = q / n, B[s] = q / a, B[i] = q / r, B)[x] || q, P ? Z : O.a(Z);
|
4094
|
+
}, R.daysInMonth = function() {
|
4095
4095
|
return this.endOf(g).$D;
|
4096
|
-
},
|
4097
|
-
return
|
4098
|
-
},
|
4099
|
-
if (
|
4096
|
+
}, R.$locale = function() {
|
4097
|
+
return E[this.$L];
|
4098
|
+
}, R.locale = function(D, V) {
|
4099
|
+
if (!D)
|
4100
4100
|
return this.$L;
|
4101
|
-
var
|
4102
|
-
return B && (
|
4103
|
-
},
|
4101
|
+
var P = this.clone(), B = M(D, V, !0);
|
4102
|
+
return B && (P.$L = B), P;
|
4103
|
+
}, R.clone = function() {
|
4104
4104
|
return O.w(this.$d, this);
|
4105
|
-
},
|
4105
|
+
}, R.toDate = function() {
|
4106
4106
|
return new Date(this.valueOf());
|
4107
|
-
},
|
4107
|
+
}, R.toJSON = function() {
|
4108
4108
|
return this.isValid() ? this.toISOString() : null;
|
4109
|
-
},
|
4109
|
+
}, R.toISOString = function() {
|
4110
4110
|
return this.$d.toISOString();
|
4111
|
-
},
|
4111
|
+
}, R.toString = function() {
|
4112
4112
|
return this.$d.toUTCString();
|
4113
|
-
},
|
4114
|
-
}(),
|
4115
|
-
return
|
4116
|
-
|
4117
|
-
return this.$g(
|
4113
|
+
}, N;
|
4114
|
+
}(), w = F.prototype;
|
4115
|
+
return I.prototype = w, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", u], ["$M", g], ["$y", m], ["$D", _]].forEach(function(N) {
|
4116
|
+
w[N[1]] = function(R) {
|
4117
|
+
return this.$g(R, N[0], N[1]);
|
4118
4118
|
};
|
4119
|
-
}),
|
4120
|
-
return
|
4121
|
-
},
|
4122
|
-
return
|
4123
|
-
},
|
4119
|
+
}), I.extend = function(N, R) {
|
4120
|
+
return N.$i || (N(R, F, I), N.$i = !0), I;
|
4121
|
+
}, I.locale = M, I.isDayjs = $, I.unix = function(N) {
|
4122
|
+
return I(1e3 * N);
|
4123
|
+
}, I.en = E[A], I.Ls = E, I.p = {}, I;
|
4124
4124
|
});
|
4125
4125
|
})(dayjs_min);
|
4126
4126
|
const dayjs = dayjs_min.exports;
|
@@ -4165,32 +4165,32 @@ function filesize(e, {
|
|
4165
4165
|
roundingMethod: v = ROUND,
|
4166
4166
|
precision: b = 0
|
4167
4167
|
} = {}) {
|
4168
|
-
let y = _, C = Number(e),
|
4168
|
+
let y = _, C = Number(e), k = [], T = 0, A = EMPTY;
|
4169
4169
|
a === -1 && c.length === 0 ? (a = 10, c = JEDEC) : a === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, a = c === IEC ? 2 : 10) : (a = a === 2 ? 2 : 10, c = a === 10 || c === JEDEC ? JEDEC : IEC);
|
4170
|
-
const
|
4170
|
+
const E = a === 10 ? 1e3 : 1024, $ = p === !0, M = C < 0, I = Math[v];
|
4171
4171
|
if (typeof e != "bigint" && isNaN(e))
|
4172
4172
|
throw new TypeError(INVALID_NUMBER);
|
4173
|
-
if (typeof
|
4173
|
+
if (typeof I !== FUNCTION)
|
4174
4174
|
throw new TypeError(INVALID_ROUND);
|
4175
|
-
if (M && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(
|
4175
|
+
if (M && (C = -C), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(C) / Math.log(E)), y < 0 && (y = 0)), y > 8 && (b > 0 && (b += 8 - y), y = 8), g === EXPONENT)
|
4176
4176
|
return y;
|
4177
4177
|
if (C === 0)
|
4178
|
-
|
4178
|
+
k[0] = 0, A = k[1] = STRINGS.symbol[c][t ? BITS : BYTES][y];
|
4179
4179
|
else {
|
4180
|
-
T = C / (a === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (T = T * 8, T >=
|
4180
|
+
T = C / (a === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (T = T * 8, T >= E && y < 8 && (T = T / E, y++));
|
4181
4181
|
const O = Math.pow(10, y > 0 ? n : 0);
|
4182
|
-
|
4182
|
+
k[0] = I(T * O) / O, k[0] === E && y < 8 && _ === -1 && (k[0] = 1, y++), A = k[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
|
4183
4183
|
}
|
4184
|
-
if (M && (
|
4185
|
-
const O = s || PERIOD,
|
4186
|
-
|
4184
|
+
if (M && (k[0] = -k[0]), b > 0 && (k[0] = k[0].toPrecision(b)), k[1] = u[k[1]] || k[1], o === !0 ? k[0] = k[0].toLocaleString() : o.length > 0 ? k[0] = k[0].toLocaleString(o, i) : s.length > 0 && (k[0] = k[0].toString().replace(PERIOD, s)), r && Number.isInteger(k[0]) === !1 && n > 0) {
|
4185
|
+
const O = s || PERIOD, F = k[0].toString().split(O), w = F[1] || EMPTY, N = w.length, R = n - N;
|
4186
|
+
k[0] = `${F[0]}${O}${w.padEnd(N + R, ZERO)}`;
|
4187
4187
|
}
|
4188
|
-
return
|
4189
|
-
value:
|
4190
|
-
symbol:
|
4188
|
+
return $ && (k[1] = m[y] ? m[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (k[0] === 1 ? EMPTY : S)), g === ARRAY ? k : g === OBJECT ? {
|
4189
|
+
value: k[0],
|
4190
|
+
symbol: k[1],
|
4191
4191
|
exponent: y,
|
4192
|
-
unit:
|
4193
|
-
} :
|
4192
|
+
unit: A
|
4193
|
+
} : k.join(l);
|
4194
4194
|
}
|
4195
4195
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
4196
4196
|
const freeGlobal$1 = freeGlobal;
|
@@ -5372,16 +5372,16 @@ function equalObjects(e, t, r, a, n, o) {
|
|
5372
5372
|
p = s[g];
|
5373
5373
|
var y = e[p], C = t[p];
|
5374
5374
|
if (a)
|
5375
|
-
var
|
5376
|
-
if (!(
|
5375
|
+
var k = i ? a(C, y, p, t, e, o) : a(y, C, p, e, t, o);
|
5376
|
+
if (!(k === void 0 ? y === C || n(y, C, r, a, o) : k)) {
|
5377
5377
|
v = !1;
|
5378
5378
|
break;
|
5379
5379
|
}
|
5380
5380
|
b || (b = p == "constructor");
|
5381
5381
|
}
|
5382
5382
|
if (v && !b) {
|
5383
|
-
var T = e.constructor,
|
5384
|
-
T !=
|
5383
|
+
var T = e.constructor, A = t.constructor;
|
5384
|
+
T != A && "constructor" in e && "constructor" in t && !(typeof T == "function" && T instanceof T && typeof A == "function" && A instanceof A) && (v = !1);
|
5385
5385
|
}
|
5386
5386
|
return o.delete(e), o.delete(t), v;
|
5387
5387
|
}
|
@@ -6576,26 +6576,26 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6576
6576
|
deep: !0
|
6577
6577
|
};
|
6578
6578
|
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (M) => {
|
6579
|
-
u ? m = M : u == !1 && !
|
6579
|
+
u ? m = M : u == !1 && !E._hotUpdating && (Array.isArray(m) ? m.push(M) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
6580
6580
|
});
|
6581
6581
|
let u, c, g = markRaw([]), p = markRaw([]), m;
|
6582
6582
|
const _ = a.state.value[e];
|
6583
6583
|
!i && !_ && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
6584
6584
|
const v = ref({});
|
6585
6585
|
function b(M) {
|
6586
|
-
let
|
6587
|
-
u = c = !1, process.env.NODE_ENV !== "production" && (m = []), typeof M == "function" ? (M(a.state.value[e]),
|
6586
|
+
let I;
|
6587
|
+
u = c = !1, process.env.NODE_ENV !== "production" && (m = []), typeof M == "function" ? (M(a.state.value[e]), I = {
|
6588
6588
|
type: MutationType.patchFunction,
|
6589
6589
|
storeId: e,
|
6590
6590
|
events: m
|
6591
|
-
}) : (mergeReactiveObjects(a.state.value[e], M),
|
6591
|
+
}) : (mergeReactiveObjects(a.state.value[e], M), I = {
|
6592
6592
|
type: MutationType.patchObject,
|
6593
6593
|
payload: M,
|
6594
6594
|
storeId: e,
|
6595
6595
|
events: m
|
6596
6596
|
}), nextTick().then(() => {
|
6597
6597
|
u = !0;
|
6598
|
-
}), c = !0, triggerSubscriptions(g,
|
6598
|
+
}), c = !0, triggerSubscriptions(g, I, a.state.value[e]);
|
6599
6599
|
}
|
6600
6600
|
const y = process.env.NODE_ENV !== "production" ? () => {
|
6601
6601
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
@@ -6603,30 +6603,30 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6603
6603
|
function C() {
|
6604
6604
|
o.stop(), g = [], p = [], a._s.delete(e);
|
6605
6605
|
}
|
6606
|
-
function
|
6606
|
+
function k(M, I) {
|
6607
6607
|
return function() {
|
6608
6608
|
setActivePinia(a);
|
6609
|
-
const O = Array.from(arguments),
|
6610
|
-
function
|
6611
|
-
|
6609
|
+
const O = Array.from(arguments), F = [], w = [];
|
6610
|
+
function N(V) {
|
6611
|
+
F.push(V);
|
6612
6612
|
}
|
6613
|
-
function
|
6614
|
-
|
6613
|
+
function R(V) {
|
6614
|
+
w.push(V);
|
6615
6615
|
}
|
6616
6616
|
triggerSubscriptions(p, {
|
6617
6617
|
args: O,
|
6618
6618
|
name: M,
|
6619
|
-
store:
|
6620
|
-
after:
|
6621
|
-
onError:
|
6619
|
+
store: E,
|
6620
|
+
after: N,
|
6621
|
+
onError: R
|
6622
6622
|
});
|
6623
|
-
let
|
6623
|
+
let D;
|
6624
6624
|
try {
|
6625
|
-
|
6626
|
-
} catch (
|
6627
|
-
throw triggerSubscriptions(
|
6625
|
+
D = I.apply(this && this.$id === e ? this : E, O);
|
6626
|
+
} catch (V) {
|
6627
|
+
throw triggerSubscriptions(w, V), V;
|
6628
6628
|
}
|
6629
|
-
return
|
6629
|
+
return D instanceof Promise ? D.then((V) => (triggerSubscriptions(F, V), V)).catch((V) => (triggerSubscriptions(w, V), Promise.reject(V))) : (triggerSubscriptions(F, D), D);
|
6630
6630
|
};
|
6631
6631
|
}
|
6632
6632
|
const T = /* @__PURE__ */ markRaw({
|
@@ -6634,109 +6634,109 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6634
6634
|
getters: {},
|
6635
6635
|
state: [],
|
6636
6636
|
hotState: v
|
6637
|
-
}),
|
6637
|
+
}), A = {
|
6638
6638
|
_p: a,
|
6639
6639
|
$id: e,
|
6640
6640
|
$onAction: addSubscription.bind(null, p),
|
6641
6641
|
$patch: b,
|
6642
6642
|
$reset: y,
|
6643
|
-
$subscribe(M,
|
6644
|
-
const O = addSubscription(g, M,
|
6645
|
-
(
|
6643
|
+
$subscribe(M, I = {}) {
|
6644
|
+
const O = addSubscription(g, M, I.detached, () => F()), F = o.run(() => watch(() => a.state.value[e], (w) => {
|
6645
|
+
(I.flush === "sync" ? c : u) && M({
|
6646
6646
|
storeId: e,
|
6647
6647
|
type: MutationType.direct,
|
6648
6648
|
events: m
|
6649
|
-
},
|
6650
|
-
}, assign$1({}, l,
|
6649
|
+
}, w);
|
6650
|
+
}, assign$1({}, l, I)));
|
6651
6651
|
return O;
|
6652
6652
|
},
|
6653
6653
|
$dispose: C
|
6654
|
-
},
|
6654
|
+
}, E = reactive(assign$1(
|
6655
6655
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
6656
6656
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6657
6657
|
_hmrPayload: T
|
6658
6658
|
} : {},
|
6659
|
-
|
6659
|
+
A
|
6660
6660
|
));
|
6661
|
-
a._s.set(e,
|
6662
|
-
const
|
6663
|
-
for (const M in
|
6664
|
-
const
|
6665
|
-
if (isRef(
|
6666
|
-
process.env.NODE_ENV !== "production" && n ? set(v.value, M, toRef(
|
6667
|
-
else if (typeof
|
6668
|
-
const O = process.env.NODE_ENV !== "production" && n ?
|
6669
|
-
|
6661
|
+
a._s.set(e, E);
|
6662
|
+
const $ = a._e.run(() => (o = effectScope(), o.run(() => t())));
|
6663
|
+
for (const M in $) {
|
6664
|
+
const I = $[M];
|
6665
|
+
if (isRef(I) && !isComputed(I) || isReactive(I))
|
6666
|
+
process.env.NODE_ENV !== "production" && n ? set(v.value, M, toRef($, M)) : i || (_ && shouldHydrate(I) && (isRef(I) ? I.value = _[M] : mergeReactiveObjects(I, _[M])), a.state.value[e][M] = I), process.env.NODE_ENV !== "production" && T.state.push(M);
|
6667
|
+
else if (typeof I == "function") {
|
6668
|
+
const O = process.env.NODE_ENV !== "production" && n ? I : k(M, I);
|
6669
|
+
$[M] = O, process.env.NODE_ENV !== "production" && (T.actions[M] = I), s.actions[M] = I;
|
6670
6670
|
} else
|
6671
|
-
process.env.NODE_ENV !== "production" && isComputed(
|
6671
|
+
process.env.NODE_ENV !== "production" && isComputed(I) && (T.getters[M] = i ? r.getters[M] : I, IS_CLIENT && ($._getters || ($._getters = markRaw([]))).push(M));
|
6672
6672
|
}
|
6673
|
-
if (assign$1(
|
6673
|
+
if (assign$1(E, $), assign$1(toRaw(E), $), Object.defineProperty(E, "$state", {
|
6674
6674
|
get: () => process.env.NODE_ENV !== "production" && n ? v.value : a.state.value[e],
|
6675
6675
|
set: (M) => {
|
6676
6676
|
if (process.env.NODE_ENV !== "production" && n)
|
6677
6677
|
throw new Error("cannot set hotState");
|
6678
|
-
b((
|
6679
|
-
assign$1(
|
6678
|
+
b((I) => {
|
6679
|
+
assign$1(I, M);
|
6680
6680
|
});
|
6681
6681
|
}
|
6682
6682
|
}), process.env.NODE_ENV !== "production") {
|
6683
|
-
|
6684
|
-
|
6685
|
-
if (O in
|
6686
|
-
const
|
6687
|
-
typeof
|
6683
|
+
E._hotUpdate = markRaw((I) => {
|
6684
|
+
E._hotUpdating = !0, I._hmrPayload.state.forEach((O) => {
|
6685
|
+
if (O in E.$state) {
|
6686
|
+
const F = I.$state[O], w = E.$state[O];
|
6687
|
+
typeof F == "object" && isPlainObject(F) && isPlainObject(w) ? patchObject(F, w) : I.$state[O] = w;
|
6688
6688
|
}
|
6689
|
-
set(
|
6690
|
-
}), Object.keys(
|
6691
|
-
O in
|
6692
|
-
}), u = !1, c = !1, a.state.value[e] = toRef(
|
6689
|
+
set(E, O, toRef(I.$state, O));
|
6690
|
+
}), Object.keys(E.$state).forEach((O) => {
|
6691
|
+
O in I.$state || del(E, O);
|
6692
|
+
}), u = !1, c = !1, a.state.value[e] = toRef(I._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
|
6693
6693
|
u = !0;
|
6694
6694
|
});
|
6695
|
-
for (const O in
|
6696
|
-
const
|
6697
|
-
set(
|
6695
|
+
for (const O in I._hmrPayload.actions) {
|
6696
|
+
const F = I[O];
|
6697
|
+
set(E, O, k(O, F));
|
6698
6698
|
}
|
6699
|
-
for (const O in
|
6700
|
-
const
|
6701
|
-
set(
|
6699
|
+
for (const O in I._hmrPayload.getters) {
|
6700
|
+
const F = I._hmrPayload.getters[O], w = i ? computed(() => (setActivePinia(a), F.call(E, E))) : F;
|
6701
|
+
set(E, O, w);
|
6702
6702
|
}
|
6703
|
-
Object.keys(
|
6704
|
-
O in
|
6705
|
-
}), Object.keys(
|
6706
|
-
O in
|
6707
|
-
}),
|
6703
|
+
Object.keys(E._hmrPayload.getters).forEach((O) => {
|
6704
|
+
O in I._hmrPayload.getters || del(E, O);
|
6705
|
+
}), Object.keys(E._hmrPayload.actions).forEach((O) => {
|
6706
|
+
O in I._hmrPayload.actions || del(E, O);
|
6707
|
+
}), E._hmrPayload = I._hmrPayload, E._getters = I._getters, E._hotUpdating = !1;
|
6708
6708
|
});
|
6709
6709
|
const M = {
|
6710
6710
|
writable: !0,
|
6711
6711
|
configurable: !0,
|
6712
6712
|
enumerable: !1
|
6713
6713
|
};
|
6714
|
-
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
6715
|
-
Object.defineProperty(
|
6716
|
-
value:
|
6714
|
+
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
|
6715
|
+
Object.defineProperty(E, I, {
|
6716
|
+
value: E[I],
|
6717
6717
|
...M
|
6718
6718
|
});
|
6719
6719
|
});
|
6720
6720
|
}
|
6721
6721
|
return a._p.forEach((M) => {
|
6722
6722
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6723
|
-
const
|
6724
|
-
store:
|
6723
|
+
const I = o.run(() => M({
|
6724
|
+
store: E,
|
6725
6725
|
app: a._a,
|
6726
6726
|
pinia: a,
|
6727
6727
|
options: s
|
6728
6728
|
}));
|
6729
|
-
Object.keys(
|
6729
|
+
Object.keys(I || {}).forEach((O) => E._customProperties.add(O)), assign$1(E, I);
|
6730
6730
|
} else
|
6731
|
-
assign$1(
|
6732
|
-
store:
|
6731
|
+
assign$1(E, o.run(() => M({
|
6732
|
+
store: E,
|
6733
6733
|
app: a._a,
|
6734
6734
|
pinia: a,
|
6735
6735
|
options: s
|
6736
6736
|
})));
|
6737
|
-
}), process.env.NODE_ENV !== "production" &&
|
6737
|
+
}), process.env.NODE_ENV !== "production" && E.$state && typeof E.$state == "object" && typeof E.$state.constructor == "function" && !E.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
|
6738
6738
|
state: () => new MyClass()
|
6739
|
-
Found in store "${
|
6739
|
+
Found in store "${E.$id}".`), _ && i && r.hydrate && r.hydrate(E.$state, _), u = !0, c = !0, E;
|
6740
6740
|
}
|
6741
6741
|
function defineStore(e, t, r) {
|
6742
6742
|
let a, n;
|
@@ -6986,7 +6986,7 @@ function useKgAppSelect() {
|
|
6986
6986
|
};
|
6987
6987
|
}
|
6988
6988
|
const KgAppSelect$1 = "";
|
6989
|
-
function _isSlot$
|
6989
|
+
function _isSlot$9(e) {
|
6990
6990
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
|
6991
6991
|
}
|
6992
6992
|
const getProps$z = () => ({
|
@@ -7026,7 +7026,7 @@ const getProps$z = () => ({
|
|
7026
7026
|
let o;
|
7027
7027
|
return createVNode(SelectOption, {
|
7028
7028
|
value: a
|
7029
|
-
}, _isSlot$
|
7029
|
+
}, _isSlot$9(o = t.t(n)) ? o : {
|
7030
7030
|
default: () => [o]
|
7031
7031
|
});
|
7032
7032
|
})]),
|
@@ -7344,9 +7344,9 @@ const KgModal_Close = "", getProps$y = () => ({
|
|
7344
7344
|
function v(C) {
|
7345
7345
|
C.stopPropagation(), C.preventDefault(), g(), !(C instanceof MouseEvent && C.which !== 1) && (o = C.pageX, i = C.pageY, a = e.kgWidth, n = e.kgHeight, s = b(document.documentElement, "mousemove", m), l = b(document.documentElement, "mouseup", _));
|
7346
7346
|
}
|
7347
|
-
function b(C,
|
7348
|
-
return C.addEventListener(
|
7349
|
-
remove: () => C.removeEventListener(
|
7347
|
+
function b(C, k, T) {
|
7348
|
+
return C.addEventListener(k, T), {
|
7349
|
+
remove: () => C.removeEventListener(k, T)
|
7350
7350
|
};
|
7351
7351
|
}
|
7352
7352
|
function y(C) {
|
@@ -8543,12 +8543,12 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8543
8543
|
varProfile: b,
|
8544
8544
|
varProfileConfig: y,
|
8545
8545
|
varGrid: C,
|
8546
|
-
varGridConfig:
|
8546
|
+
varGridConfig: k
|
8547
8547
|
} = await GetAll({ params: { frm_id: e } });
|
8548
8548
|
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varButtonConfigMap.set(e, m != null ? m : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(_)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(v)), this.varProfileConfigMap.set(e, transformVarProfileConfig(y != null ? y : null)), this.varProfileMap.set(e, {
|
8549
8549
|
varProfile: b != null ? b : null,
|
8550
8550
|
currentVarProfileMasterID: (a = (r = (t = b == null ? void 0 : b.varProfileMasters) == null ? void 0 : t.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? a : null
|
8551
|
-
}), this.varGridConfigMap.set(e, transformVarGridConfig(
|
8551
|
+
}), this.varGridConfigMap.set(e, transformVarGridConfig(k != null ? k : null)), this.varGridMap.set(e, {
|
8552
8552
|
varGrid: transformVarGridDTO(C),
|
8553
8553
|
currentVarGridMasterID: (i = (o = (n = C == null ? void 0 : C.varGridMasters) == null ? void 0 : n.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? i : null
|
8554
8554
|
}), this.emit(e, "ready");
|
@@ -8686,8 +8686,8 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8686
8686
|
function useKgVar(e, t, r = 0) {
|
8687
8687
|
var a, n;
|
8688
8688
|
try {
|
8689
|
-
let o = function(
|
8690
|
-
return isFunction$2(
|
8689
|
+
let o = function(G) {
|
8690
|
+
return isFunction$2(G) ? (s.addEventListener(i, "ready", G), getCurrentInstance() && onUnmounted(() => s.removeEventListener(i, "ready", G)), () => s.removeEventListener(i, "ready", G)) : () => {
|
8691
8691
|
};
|
8692
8692
|
}, i = e || inject(KG_DI_FORM_ID, "");
|
8693
8693
|
if (!i)
|
@@ -8698,13 +8698,13 @@ function useKgVar(e, t, r = 0) {
|
|
8698
8698
|
}), onUnmounted(() => {
|
8699
8699
|
s.leave(i);
|
8700
8700
|
}));
|
8701
|
-
const l = (
|
8701
|
+
const l = (G) => computed(() => {
|
8702
8702
|
var Y, q, Z;
|
8703
|
-
return (Z = (q = (Y = s.getVarCatalog(i,
|
8704
|
-
}), u = computed(() => s.isRetrievingVar(i)), c = computed(() => s.isRetrievingVarProfileMaster(i)), g = computed(() => s.isRetrievingVarGridMaster(i)), p = computed(() => s.isCreating(i)), m = computed(() => s.isCreatingRequesting(i)), _ = computed(() => s.isUpdating(i)), v = computed(() => s.isUpdatingRequesting(i)), b = computed(() => s.isCopying(i)), y = computed(() => s.isCopyingRequesting(i)), C = computed(() => s.isDeleting(i)),
|
8705
|
-
var
|
8706
|
-
return (Y = (
|
8707
|
-
}),
|
8703
|
+
return (Z = (q = (Y = s.getVarCatalog(i, G)) == null ? void 0 : Y.var_text) != null ? q : G) != null ? Z : "";
|
8704
|
+
}), u = computed(() => s.isRetrievingVar(i)), c = computed(() => s.isRetrievingVarProfileMaster(i)), g = computed(() => s.isRetrievingVarGridMaster(i)), p = computed(() => s.isCreating(i)), m = computed(() => s.isCreatingRequesting(i)), _ = computed(() => s.isUpdating(i)), v = computed(() => s.isUpdatingRequesting(i)), b = computed(() => s.isCopying(i)), y = computed(() => s.isCopyingRequesting(i)), C = computed(() => s.isDeleting(i)), k = computed(() => s.isDeletingRequesting(i)), T = computed(() => s.isOtherRequesting(i)), A = computed(() => s.getVarButtons(i)), E = computed(() => s.getVarButtonSearch(i)), $ = computed(() => s.getVarButtonCreate(i)), M = computed(() => s.getVarButtonUpdate(i)), I = computed(() => s.getVarButtonCopy(i)), O = computed(() => s.getVarButtonDelete(i)), F = computed(() => s.getVarProfileMasters(i)), w = computed(() => s.getCurrentVarProfileMaster(i)), N = computed(() => s.getCurrentVarProfileMasterID(i)), R = computed(() => {
|
8705
|
+
var G, Y;
|
8706
|
+
return (Y = (G = w.value) == null ? void 0 : G.varProfileDetails) != null ? Y : null;
|
8707
|
+
}), D = computed(() => s.getVarGridConfig(i)), V = computed(() => s.getVarGridMasters(i)), P = computed(() => s.getCurrentVarGridMaster(i)), B = computed(() => s.getSystemVarGridDetails(i)), x = computed(() => s.getCurrentVarGridDetails(i));
|
8708
8708
|
return {
|
8709
8709
|
formID: i,
|
8710
8710
|
store: s,
|
@@ -8718,21 +8718,21 @@ function useKgVar(e, t, r = 0) {
|
|
8718
8718
|
isCopying: b,
|
8719
8719
|
isCopyingRequesting: y,
|
8720
8720
|
isDeleting: C,
|
8721
|
-
isDeletingRequesting:
|
8721
|
+
isDeletingRequesting: k,
|
8722
8722
|
isOtherRequesting: T,
|
8723
|
-
varButtons:
|
8724
|
-
varButtonSearch:
|
8725
|
-
varButtonCreate:
|
8723
|
+
varButtons: A,
|
8724
|
+
varButtonSearch: E,
|
8725
|
+
varButtonCreate: $,
|
8726
8726
|
varButtonUpdate: M,
|
8727
|
-
varButtonCopy:
|
8727
|
+
varButtonCopy: I,
|
8728
8728
|
varButtonDelete: O,
|
8729
|
-
varProfileMasters:
|
8730
|
-
currentVarProfileMaster:
|
8731
|
-
currentVarProfileMasterID:
|
8732
|
-
currentVarProfileDetails:
|
8733
|
-
varGridConfig:
|
8734
|
-
varGridMasters:
|
8735
|
-
currentVarGridMaster:
|
8729
|
+
varProfileMasters: F,
|
8730
|
+
currentVarProfileMaster: w,
|
8731
|
+
currentVarProfileMasterID: N,
|
8732
|
+
currentVarProfileDetails: R,
|
8733
|
+
varGridConfig: D,
|
8734
|
+
varGridMasters: V,
|
8735
|
+
currentVarGridMaster: P,
|
8736
8736
|
systemVarGridDetails: B,
|
8737
8737
|
currentVarGridDetails: x,
|
8738
8738
|
t: l,
|
@@ -8861,13 +8861,13 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), KgVar$1 = "", getProp
|
|
8861
8861
|
r("update:visible", !1);
|
8862
8862
|
}
|
8863
8863
|
function m() {
|
8864
|
-
var _, v, b, y, C,
|
8864
|
+
var _, v, b, y, C, k, T;
|
8865
8865
|
if (c.value) {
|
8866
|
-
const
|
8867
|
-
(!s || s(
|
8866
|
+
const A = (v = (_ = l.selectedRows) == null ? void 0 : _.value) != null ? v : [], E = (b = A.map(($) => $[g.value])) != null ? b : [];
|
8867
|
+
(!s || s(E, A)) && (r("kgOk", E, A), r("update:visible", !1));
|
8868
8868
|
} else {
|
8869
|
-
const
|
8870
|
-
(!s || s(
|
8869
|
+
const A = (k = (C = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : C[0]) != null ? k : null, E = (T = A == null ? void 0 : A[g.value]) != null ? T : "";
|
8870
|
+
(!s || s(E, A)) && (r("kgOk", E, A), r("update:visible", !1));
|
8871
8871
|
}
|
8872
8872
|
}
|
8873
8873
|
return () => {
|
@@ -8980,7 +8980,7 @@ function _useServices$2(e) {
|
|
8980
8980
|
transformDatas: o
|
8981
8981
|
};
|
8982
8982
|
}
|
8983
|
-
function _isSlot$
|
8983
|
+
function _isSlot$8(e) {
|
8984
8984
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
|
8985
8985
|
}
|
8986
8986
|
const KgFormItemCheckboxGroup = defineComponent({
|
@@ -8994,13 +8994,13 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8994
8994
|
const a = useKg(), n = useKgVar(), o = inject(DI_FORM_REF, ref(null)), i = inject(DI_FORM_MODEL, computed(() => ({}))), {
|
8995
8995
|
transformDatas: s
|
8996
8996
|
} = _useServices$2(e), l = ref(!1), u = ref(!1), c = ref([]), g = computed(() => n.store.getVarPossibility(n.formID, e.kgVarName)), p = computed(() => n.store.getVarVariableConfig(n.formID, e.kgVarName)), m = computed(() => {
|
8997
|
-
var
|
8998
|
-
let C = KgVarUtil.parseCommandParameter((
|
8997
|
+
var k;
|
8998
|
+
let C = KgVarUtil.parseCommandParameter((k = g.value) == null ? void 0 : k.cmd_prm);
|
8999
8999
|
return C = mapValues(C, (T) => {
|
9000
9000
|
if (typeof T == "string" && T.startsWith("{") && T.endsWith("}")) {
|
9001
|
-
const
|
9002
|
-
if (i.value &&
|
9003
|
-
return i.value[
|
9001
|
+
const A = T.slice(1, -1);
|
9002
|
+
if (i.value && A in i.value)
|
9003
|
+
return i.value[A];
|
9004
9004
|
}
|
9005
9005
|
return T;
|
9006
9006
|
}), C;
|
@@ -9013,21 +9013,21 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9013
9013
|
(C = g.value) != null && C.id && v();
|
9014
9014
|
}, {
|
9015
9015
|
immediate: !0
|
9016
|
-
}), watch([() => e.value, c], ([C,
|
9017
|
-
var
|
9016
|
+
}), watch([() => e.value, c], ([C, k]) => {
|
9017
|
+
var A, E;
|
9018
9018
|
const T = get(C, "length", 0);
|
9019
|
-
if (T > 0 &&
|
9020
|
-
const
|
9019
|
+
if (T > 0 && k.length > 0) {
|
9020
|
+
const $ = (E = (A = g.value) == null ? void 0 : A.val_clm) != null ? E : "", M = intersection$1(C, k == null ? void 0 : k.map((I) => I[$]));
|
9021
9021
|
if (M.length < T) {
|
9022
9022
|
r("update:value", M);
|
9023
9023
|
return;
|
9024
9024
|
}
|
9025
9025
|
}
|
9026
9026
|
switch (!0) {
|
9027
|
-
case (T > 0 && T ===
|
9027
|
+
case (T > 0 && T === k.length):
|
9028
9028
|
l.value = !0, u.value = !1;
|
9029
9029
|
break;
|
9030
|
-
case (T > 0 && T !==
|
9030
|
+
case (T > 0 && T !== k.length):
|
9031
9031
|
l.value = !1, u.value = !0;
|
9032
9032
|
break;
|
9033
9033
|
default:
|
@@ -9038,64 +9038,64 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9038
9038
|
immediate: !0
|
9039
9039
|
});
|
9040
9040
|
async function v() {
|
9041
|
-
var
|
9042
|
-
const C = (
|
9043
|
-
if (!C || !T || !
|
9041
|
+
var $, M, I, O, F, w, N, R, D;
|
9042
|
+
const C = ($ = g.value) == null ? void 0 : $.cmd, k = (I = (M = g.value) == null ? void 0 : M.cmd_method) != null ? I : "GET", T = (F = (O = g.value) == null ? void 0 : O.val_clm) != null ? F : "", A = (N = (w = g.value) == null ? void 0 : w.lbl_clm) != null ? N : "";
|
9043
|
+
if (!C || !T || !A) {
|
9044
9044
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9045
9045
|
frm_id: n.formID,
|
9046
9046
|
var_nam: e.kgVarName,
|
9047
9047
|
cmd: C,
|
9048
9048
|
val_clm: T,
|
9049
|
-
lbl_clm:
|
9049
|
+
lbl_clm: A
|
9050
9050
|
});
|
9051
9051
|
return;
|
9052
9052
|
}
|
9053
|
-
let
|
9053
|
+
let E = null;
|
9054
9054
|
try {
|
9055
|
-
|
9055
|
+
E = await ((R = httpClient()) == null ? void 0 : R.request({
|
9056
9056
|
url: C,
|
9057
|
-
method:
|
9057
|
+
method: k,
|
9058
9058
|
params: m.value,
|
9059
9059
|
data: m.value
|
9060
9060
|
}));
|
9061
9061
|
} catch {
|
9062
9062
|
}
|
9063
|
-
if (!isObjectLike(
|
9063
|
+
if (!isObjectLike(E))
|
9064
9064
|
c.value = [];
|
9065
9065
|
else
|
9066
9066
|
switch (!0) {
|
9067
|
-
case isArrayLike(
|
9068
|
-
c.value = s(
|
9067
|
+
case isArrayLike(E):
|
9068
|
+
c.value = s(E);
|
9069
9069
|
break;
|
9070
|
-
case (
|
9071
|
-
c.value = s(
|
9070
|
+
case (E && "total" in E && "records" in E):
|
9071
|
+
c.value = s(E.records);
|
9072
9072
|
break;
|
9073
9073
|
}
|
9074
9074
|
if (c.value.length > 0) {
|
9075
|
-
const
|
9076
|
-
(!(T in
|
9075
|
+
const V = c.value[0];
|
9076
|
+
(!(T in V) || !(A in V)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
9077
9077
|
frm_id: n.formID,
|
9078
9078
|
var_nam: e.kgVarName,
|
9079
9079
|
cmd: C,
|
9080
9080
|
val_clm: T,
|
9081
|
-
lbl_clm:
|
9082
|
-
\u6240\u6709\u5217: Object.keys(
|
9081
|
+
lbl_clm: A,
|
9082
|
+
\u6240\u6709\u5217: Object.keys(V)
|
9083
9083
|
});
|
9084
9084
|
}
|
9085
|
-
r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((
|
9085
|
+
r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((D = c.value) == null ? void 0 : D.map((V) => V[T]), e.value));
|
9086
9086
|
}
|
9087
9087
|
function b(C) {
|
9088
|
-
var
|
9089
|
-
C.target.checked ? y((T = (
|
9090
|
-
var
|
9091
|
-
return
|
9092
|
-
})) != null ? T : []) : y([]), u.value = !1, (
|
9088
|
+
var k, T, A;
|
9089
|
+
C.target.checked ? y((T = (k = c.value) == null ? void 0 : k.map((E) => {
|
9090
|
+
var $, M;
|
9091
|
+
return E[(M = ($ = g.value) == null ? void 0 : $.val_clm) != null ? M : ""];
|
9092
|
+
})) != null ? T : []) : y([]), u.value = !1, (A = o.value) == null || A.validate(e.kgVarName);
|
9093
9093
|
}
|
9094
9094
|
function y(C) {
|
9095
9095
|
r("update:value", C), r("kgChange", C);
|
9096
9096
|
}
|
9097
9097
|
return () => {
|
9098
|
-
let C,
|
9098
|
+
let C, k;
|
9099
9099
|
return createVNode("div", {
|
9100
9100
|
class: "kg-form-item-checkbox-group"
|
9101
9101
|
}, [createVNode(Form.ItemRest, null, {
|
@@ -9104,7 +9104,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9104
9104
|
"onUpdate:checked": (T) => l.value = T,
|
9105
9105
|
indeterminate: u.value,
|
9106
9106
|
onChange: b
|
9107
|
-
}, _isSlot$
|
9107
|
+
}, _isSlot$8(C = a.t("kg.selectAll")) ? C : {
|
9108
9108
|
default: () => [C]
|
9109
9109
|
})]
|
9110
9110
|
}), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
|
@@ -9113,26 +9113,26 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9113
9113
|
}, {
|
9114
9114
|
default: () => [createVNode(Row, {
|
9115
9115
|
gutter: 12
|
9116
|
-
}, _isSlot$
|
9117
|
-
var
|
9116
|
+
}, _isSlot$8(k = c.value.map((T) => {
|
9117
|
+
var A, E;
|
9118
9118
|
return createVNode(Col, {
|
9119
|
-
span: (
|
9119
|
+
span: (E = (A = _.value) == null ? void 0 : A.span) != null ? E : 24
|
9120
9120
|
}, {
|
9121
9121
|
default: () => {
|
9122
|
-
var
|
9122
|
+
var $, M, I, O;
|
9123
9123
|
return [createVNode(Checkbox, {
|
9124
|
-
value: T[(M = (
|
9125
|
-
"kg-value": T[(O = (
|
9124
|
+
value: T[(M = ($ = g.value) == null ? void 0 : $.val_clm) != null ? M : ""],
|
9125
|
+
"kg-value": T[(O = (I = g.value) == null ? void 0 : I.val_clm) != null ? O : ""]
|
9126
9126
|
}, {
|
9127
9127
|
default: () => {
|
9128
|
-
var
|
9129
|
-
return [T[(
|
9128
|
+
var F, w;
|
9129
|
+
return [T[(w = (F = g.value) == null ? void 0 : F.lbl_clm) != null ? w : ""]];
|
9130
9130
|
}
|
9131
9131
|
})];
|
9132
9132
|
}
|
9133
9133
|
});
|
9134
|
-
})) ?
|
9135
|
-
default: () => [
|
9134
|
+
})) ? k : {
|
9135
|
+
default: () => [k]
|
9136
9136
|
})]
|
9137
9137
|
})]);
|
9138
9138
|
};
|
@@ -9299,12 +9299,12 @@ const KgFormItemSelect = defineComponent({
|
|
9299
9299
|
var b, y;
|
9300
9300
|
let v = _;
|
9301
9301
|
if (typeof _ == "string" && _.startsWith("{") && _.endsWith("}")) {
|
9302
|
-
let C = _.slice(1, -1),
|
9302
|
+
let C = _.slice(1, -1), k = "";
|
9303
9303
|
if (C.includes(".")) {
|
9304
9304
|
const T = C.split(".");
|
9305
|
-
C = T[0],
|
9305
|
+
C = T[0], k = T[1];
|
9306
9306
|
}
|
9307
|
-
n.value && C in n.value && (
|
9307
|
+
n.value && C in n.value && (k ? v = (y = (b = n.value[`${C}_obj`]) == null ? void 0 : b[k]) != null ? y : void 0 : v = n.value[C], v || (v = "__KG__FORM_ITEM_SELECT__PID"));
|
9308
9308
|
}
|
9309
9309
|
return v;
|
9310
9310
|
}), p;
|
@@ -9316,8 +9316,8 @@ const KgFormItemSelect = defineComponent({
|
|
9316
9316
|
immediate: !0
|
9317
9317
|
});
|
9318
9318
|
async function u() {
|
9319
|
-
var y, C,
|
9320
|
-
const p = (y = s.value) == null ? void 0 : y.cmd, m = (
|
9319
|
+
var y, C, k, T, A, E, $, M;
|
9320
|
+
const p = (y = s.value) == null ? void 0 : y.cmd, m = (k = (C = s.value) == null ? void 0 : C.cmd_method) != null ? k : "GET", _ = (A = (T = s.value) == null ? void 0 : T.val_clm) != null ? A : "", v = ($ = (E = s.value) == null ? void 0 : E.lbl_clm) != null ? $ : "";
|
9321
9321
|
if (!p || !_ || !v) {
|
9322
9322
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9323
9323
|
frm_id: a.formID,
|
@@ -9349,17 +9349,17 @@ const KgFormItemSelect = defineComponent({
|
|
9349
9349
|
break;
|
9350
9350
|
}
|
9351
9351
|
if (i.value.length > 0) {
|
9352
|
-
const
|
9353
|
-
(!(_ in
|
9352
|
+
const I = i.value[0];
|
9353
|
+
(!(_ in I) || !(v in I)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
9354
9354
|
frm_id: a.formID,
|
9355
9355
|
var_nam: e.kgVarName,
|
9356
9356
|
cmd: p,
|
9357
9357
|
val_clm: _,
|
9358
9358
|
lbl_clm: v,
|
9359
|
-
\u6240\u6709\u5217: Object.keys(
|
9359
|
+
\u6240\u6709\u5217: Object.keys(I)
|
9360
9360
|
});
|
9361
9361
|
}
|
9362
|
-
r("kgSelectDatasChange", i.value), i.value.find((
|
9362
|
+
r("kgSelectDatasChange", i.value), i.value.find((I) => I[_] === e.value) || r("update:value", void 0);
|
9363
9363
|
}
|
9364
9364
|
function c(p) {
|
9365
9365
|
var _;
|
@@ -9390,14 +9390,14 @@ const KgFormItemSelect = defineComponent({
|
|
9390
9390
|
"kg-lbl-clm": (_ = s.value) == null ? void 0 : _.lbl_clm
|
9391
9391
|
}, {
|
9392
9392
|
default: () => i.value.map((v) => {
|
9393
|
-
var b, y, C,
|
9393
|
+
var b, y, C, k;
|
9394
9394
|
return createVNode(Select.Option, {
|
9395
9395
|
"kg-value": v[(y = (b = s.value) == null ? void 0 : b.val_clm) != null ? y : ""],
|
9396
|
-
value: v[(
|
9396
|
+
value: v[(k = (C = s.value) == null ? void 0 : C.val_clm) != null ? k : ""]
|
9397
9397
|
}, {
|
9398
9398
|
default: () => {
|
9399
|
-
var T,
|
9400
|
-
return [v[(
|
9399
|
+
var T, A;
|
9400
|
+
return [v[(A = (T = s.value) == null ? void 0 : T.lbl_clm) != null ? A : ""]];
|
9401
9401
|
}
|
9402
9402
|
});
|
9403
9403
|
}),
|
@@ -9494,7 +9494,7 @@ const KgFormItem = defineComponent({
|
|
9494
9494
|
const a = useKgVar(), n = inject(DI_FORM_MODEL, computed(() => ({}))), o = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), s = computed(() => a.store.getVarVariableConfig(a.formID, e.kgVarName)), l = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), u = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), {
|
9495
9495
|
rules: c
|
9496
9496
|
} = _useRules(e), g = computed(() => {
|
9497
|
-
var
|
9497
|
+
var I, O, F, w, N;
|
9498
9498
|
if (a.isRetrievingVar.value)
|
9499
9499
|
return !0;
|
9500
9500
|
let M = !1;
|
@@ -9503,7 +9503,7 @@ const KgFormItem = defineComponent({
|
|
9503
9503
|
else
|
9504
9504
|
switch (e.kgContext) {
|
9505
9505
|
case KG_FORM_CONTEXT.SEARCH:
|
9506
|
-
M = ((
|
9506
|
+
M = ((I = l.value) == null ? void 0 : I.ena_flg) === 0;
|
9507
9507
|
break;
|
9508
9508
|
case KG_FORM_CONTEXT.SUBMIT:
|
9509
9509
|
switch (!0) {
|
@@ -9511,78 +9511,78 @@ const KgFormItem = defineComponent({
|
|
9511
9511
|
M = ((O = u.value) == null ? void 0 : O.crt_ena_flg) === 0;
|
9512
9512
|
break;
|
9513
9513
|
case a.isUpdating.value:
|
9514
|
-
M = ((
|
9514
|
+
M = ((F = u.value) == null ? void 0 : F.upt_ena_flg) === 0;
|
9515
9515
|
break;
|
9516
9516
|
case a.isCopying.value:
|
9517
|
-
M = ((
|
9517
|
+
M = ((w = u.value) == null ? void 0 : w.cpy_ena_flg) === 0;
|
9518
9518
|
break;
|
9519
9519
|
case a.isDeleting.value:
|
9520
|
-
M = ((
|
9520
|
+
M = ((N = u.value) == null ? void 0 : N.del_ena_flg) === 0;
|
9521
9521
|
break;
|
9522
9522
|
}
|
9523
9523
|
break;
|
9524
9524
|
}
|
9525
9525
|
return M;
|
9526
9526
|
}), p = computed(() => {
|
9527
|
-
var
|
9527
|
+
var I, O, F, w;
|
9528
9528
|
let M = " ";
|
9529
9529
|
if (e.kgPlaceholder)
|
9530
9530
|
M = e.kgPlaceholder;
|
9531
9531
|
else
|
9532
9532
|
switch (e.kgContext) {
|
9533
9533
|
case KG_FORM_CONTEXT.SEARCH:
|
9534
|
-
M = a.t((O = (
|
9534
|
+
M = a.t((O = (I = l.value) == null ? void 0 : I.placeholder) != null ? O : " ").value;
|
9535
9535
|
break;
|
9536
9536
|
case KG_FORM_CONTEXT.SUBMIT:
|
9537
|
-
M = a.t((
|
9537
|
+
M = a.t((w = (F = u.value) == null ? void 0 : F.placeholder) != null ? w : " ").value;
|
9538
9538
|
break;
|
9539
9539
|
}
|
9540
9540
|
return M;
|
9541
9541
|
}), m = computed(() => {
|
9542
|
-
var
|
9542
|
+
var I, O, F, w, N, R, D, V, P, B;
|
9543
9543
|
let M = 6;
|
9544
9544
|
if (e.kgSpan !== void 0)
|
9545
9545
|
M = e.kgSpan;
|
9546
9546
|
else
|
9547
9547
|
switch (e.kgContext) {
|
9548
9548
|
case KG_FORM_CONTEXT.SEARCH:
|
9549
|
-
M = (O = (
|
9549
|
+
M = (O = (I = l.value) == null ? void 0 : I.width) != null ? O : 6;
|
9550
9550
|
break;
|
9551
9551
|
case KG_FORM_CONTEXT.SUBMIT:
|
9552
9552
|
switch (!0) {
|
9553
9553
|
case a.isCreating.value:
|
9554
|
-
M = (
|
9554
|
+
M = (w = (F = u.value) == null ? void 0 : F.crt_width) != null ? w : 6;
|
9555
9555
|
break;
|
9556
9556
|
case a.isUpdating.value:
|
9557
|
-
M = (
|
9557
|
+
M = (R = (N = u.value) == null ? void 0 : N.upt_width) != null ? R : 6;
|
9558
9558
|
break;
|
9559
9559
|
case a.isCopying.value:
|
9560
|
-
M = (
|
9560
|
+
M = (V = (D = u.value) == null ? void 0 : D.cpy_width) != null ? V : 6;
|
9561
9561
|
break;
|
9562
9562
|
case a.isDeleting.value:
|
9563
|
-
M = (B = (
|
9563
|
+
M = (B = (P = u.value) == null ? void 0 : P.del_width) != null ? B : 6;
|
9564
9564
|
break;
|
9565
9565
|
}
|
9566
9566
|
}
|
9567
9567
|
return Math.min(24, Math.max(1, M));
|
9568
9568
|
}), _ = computed(() => {
|
9569
|
-
var
|
9570
|
-
const M = get(
|
9571
|
-
if (M && !((
|
9569
|
+
var F, w;
|
9570
|
+
const M = get(k.value, "$el.parentElement");
|
9571
|
+
if (M && !((F = M.classList) != null && F.contains("ant-row")))
|
9572
9572
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
9573
|
-
let
|
9574
|
-
const O = Math.abs(Number.parseInt((
|
9575
|
-
return Number.isNaN(O) || (
|
9573
|
+
let I = {};
|
9574
|
+
const O = Math.abs(Number.parseInt((w = get(k.value, "$el.parentElement.style.marginLeft")) != null ? w : "0px"));
|
9575
|
+
return Number.isNaN(O) || (I = {
|
9576
9576
|
paddingLeft: `${O}px !important`,
|
9577
9577
|
paddingRight: `${O}px !important`
|
9578
|
-
}),
|
9578
|
+
}), I;
|
9579
9579
|
}), v = computed(() => {
|
9580
|
-
var
|
9580
|
+
var I, O, F, w;
|
9581
9581
|
let M = "kg-form-item";
|
9582
9582
|
switch (i.value && (M += " kg-form-item-lookup"), e.kgContext) {
|
9583
9583
|
case KG_FORM_CONTEXT.SEARCH:
|
9584
9584
|
switch (!0) {
|
9585
|
-
case ((
|
9585
|
+
case ((I = l.value) == null ? void 0 : I.vis_flg) === 0:
|
9586
9586
|
M += " kg-form-item--invisible";
|
9587
9587
|
break;
|
9588
9588
|
}
|
@@ -9590,8 +9590,8 @@ const KgFormItem = defineComponent({
|
|
9590
9590
|
case KG_FORM_CONTEXT.SUBMIT:
|
9591
9591
|
switch (!0) {
|
9592
9592
|
case (a.isCreating.value && ((O = u.value) == null ? void 0 : O.crt_vis_flg) === 0):
|
9593
|
-
case (a.isUpdating.value && ((
|
9594
|
-
case (a.isCopying.value && ((
|
9593
|
+
case (a.isUpdating.value && ((F = u.value) == null ? void 0 : F.upt_vis_flg) === 0):
|
9594
|
+
case (a.isCopying.value && ((w = u.value) == null ? void 0 : w.cpy_vis_flg) === 0):
|
9595
9595
|
M += " kg-form-item--invisible";
|
9596
9596
|
break;
|
9597
9597
|
}
|
@@ -9599,10 +9599,10 @@ const KgFormItem = defineComponent({
|
|
9599
9599
|
}
|
9600
9600
|
return M;
|
9601
9601
|
}), b = computed(() => {
|
9602
|
-
var
|
9602
|
+
var I;
|
9603
9603
|
const M = {
|
9604
9604
|
...e,
|
9605
|
-
value: (
|
9605
|
+
value: (I = n.value) == null ? void 0 : I[e.kgVarName],
|
9606
9606
|
"onUpdate:value": (O) => {
|
9607
9607
|
n.value && (n.value[e.kgVarName] = O);
|
9608
9608
|
},
|
@@ -9632,30 +9632,30 @@ const KgFormItem = defineComponent({
|
|
9632
9632
|
}
|
9633
9633
|
return M;
|
9634
9634
|
}), y = computed(() => {
|
9635
|
-
var
|
9636
|
-
const M = (
|
9635
|
+
var R, D, V, P, B, x;
|
9636
|
+
const M = (R = s.value) == null ? void 0 : R.ctrl_typ, I = (D = s.value) == null ? void 0 : D.prf_ctrl_typ, O = (V = s.value) == null ? void 0 : V.crt_ctrl_typ, F = (P = s.value) == null ? void 0 : P.upt_ctrl_typ, w = (B = s.value) == null ? void 0 : B.cpy_ctrl_typ, N = (x = s.value) == null ? void 0 : x.del_ctrl_typ;
|
9637
9637
|
switch (e.kgContext) {
|
9638
9638
|
case KG_FORM_CONTEXT.SEARCH:
|
9639
|
-
return
|
9639
|
+
return I || M;
|
9640
9640
|
case KG_FORM_CONTEXT.SUBMIT:
|
9641
9641
|
switch (!0) {
|
9642
9642
|
case a.isCreating.value:
|
9643
9643
|
return O || M;
|
9644
9644
|
case a.isUpdating.value:
|
9645
|
-
return
|
9645
|
+
return F || M;
|
9646
9646
|
case a.isCopying.value:
|
9647
|
-
return
|
9647
|
+
return w || M;
|
9648
9648
|
case a.isDeleting.value:
|
9649
|
-
return
|
9649
|
+
return N || M;
|
9650
9650
|
}
|
9651
9651
|
}
|
9652
9652
|
return M;
|
9653
|
-
}), C = computed(() => encodeURIComponent(`${e.kgContext}~${a.formID}~${e.kgVarName}`)),
|
9654
|
-
function T(M,
|
9653
|
+
}), C = computed(() => encodeURIComponent(`${e.kgContext}~${a.formID}~${e.kgVarName}`)), k = ref(null);
|
9654
|
+
function T(M, I) {
|
9655
9655
|
var O;
|
9656
|
-
n.value && (n.value[e.kgVarName] = M), r("kgLookupChange",
|
9656
|
+
n.value && (n.value[e.kgVarName] = M), r("kgLookupChange", I), (O = o.value) == null || O.validate([e.kgVarName]);
|
9657
9657
|
}
|
9658
|
-
function
|
9658
|
+
function A() {
|
9659
9659
|
if (t.control) {
|
9660
9660
|
const M = {
|
9661
9661
|
varName: e.kgVarName,
|
@@ -9696,12 +9696,12 @@ const KgFormItem = defineComponent({
|
|
9696
9696
|
return createVNode(KgFormItemInput, b.value, null);
|
9697
9697
|
}
|
9698
9698
|
}
|
9699
|
-
function
|
9699
|
+
function E() {
|
9700
9700
|
return e.kgShowLabel ? createVNode("span", {
|
9701
9701
|
title: a.t(e.kgVarName).value
|
9702
9702
|
}, [a.t(e.kgVarName).value]) : null;
|
9703
9703
|
}
|
9704
|
-
function
|
9704
|
+
function $() {
|
9705
9705
|
var M;
|
9706
9706
|
return !i.value || !((M = i.value) != null && M.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
9707
9707
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
@@ -9712,13 +9712,13 @@ const KgFormItem = defineComponent({
|
|
9712
9712
|
});
|
9713
9713
|
}
|
9714
9714
|
return () => {
|
9715
|
-
var M,
|
9715
|
+
var M, I;
|
9716
9716
|
return createVNode(Col, {
|
9717
|
-
ref:
|
9717
|
+
ref: k,
|
9718
9718
|
"kg-frm-id": a.formID,
|
9719
9719
|
"kg-var-nam": e.kgVarName,
|
9720
9720
|
"kg-lkp-id": (M = i.value) == null ? void 0 : M.lkp_id,
|
9721
|
-
"kg-lkp-ret-fld": (
|
9721
|
+
"kg-lkp-ret-fld": (I = i.value) == null ? void 0 : I.ret_fld,
|
9722
9722
|
span: m.value,
|
9723
9723
|
class: v.value,
|
9724
9724
|
style: _.value
|
@@ -9729,8 +9729,8 @@ const KgFormItem = defineComponent({
|
|
9729
9729
|
validateFirst: !0,
|
9730
9730
|
htmlFor: C.value
|
9731
9731
|
}, {
|
9732
|
-
default: () => createVNode(Fragment, null, [
|
9733
|
-
label: () =>
|
9732
|
+
default: () => createVNode(Fragment, null, [A(), $()]),
|
9733
|
+
label: () => E()
|
9734
9734
|
})]
|
9735
9735
|
});
|
9736
9736
|
};
|
@@ -9977,20 +9977,20 @@ function useKgSubmit(e) {
|
|
9977
9977
|
};
|
9978
9978
|
}
|
9979
9979
|
const c = computed(() => {
|
9980
|
-
var
|
9980
|
+
var E, $, M, I, O;
|
9981
9981
|
let _ = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
9982
|
-
const v = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, b = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, y = (
|
9982
|
+
const v = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, b = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, y = (E = a.value) == null ? void 0 : E.display_type, C = ($ = a.value) == null ? void 0 : $.crt_display_type, k = (M = a.value) == null ? void 0 : M.upt_display_type, T = (I = a.value) == null ? void 0 : I.cpy_display_type, A = (O = a.value) == null ? void 0 : O.del_display_type;
|
9983
9983
|
switch (!0) {
|
9984
9984
|
case (t.isCreating.value && (C === v || !C && y === v)):
|
9985
9985
|
_ = v;
|
9986
9986
|
break;
|
9987
|
-
case (t.isUpdating.value && (
|
9987
|
+
case (t.isUpdating.value && (k === v || !k && y === v)):
|
9988
9988
|
_ = v;
|
9989
9989
|
break;
|
9990
9990
|
case (t.isCopying.value && (T === v || !T && y === v)):
|
9991
9991
|
_ = v;
|
9992
9992
|
break;
|
9993
|
-
case (t.isDeleting.value && (
|
9993
|
+
case (t.isDeleting.value && (A === v || !A)):
|
9994
9994
|
_ = v;
|
9995
9995
|
break;
|
9996
9996
|
}
|
@@ -9998,7 +9998,7 @@ function useKgSubmit(e) {
|
|
9998
9998
|
case (t.isCreating.value && (C === b || !C && y === b)):
|
9999
9999
|
_ = b;
|
10000
10000
|
break;
|
10001
|
-
case (t.isUpdating.value && (
|
10001
|
+
case (t.isUpdating.value && (k === b || !k && y === b)):
|
10002
10002
|
_ = b;
|
10003
10003
|
break;
|
10004
10004
|
case (t.isCopying.value && (T === b || !T && y === b)):
|
@@ -10048,8 +10048,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10048
10048
|
}) => {
|
10049
10049
|
const c = o.store.getVarSubmitConfig(o.formID);
|
10050
10050
|
return s = watch(u, (g) => {
|
10051
|
-
var p, m, _, v, b, y, C,
|
10052
|
-
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (m = c == null ? void 0 : c.resizable_flg) != null ? m : 1, g.fullscreen_flg = (_ = c == null ? void 0 : c.fullscreen_flg) != null ? _ : 1, g.dft_fullscreen_flg = (v = c == null ? void 0 : c.dft_fullscreen_flg) != null ? v : 0, g.responsive_flg = (b = c == null ? void 0 : c.responsive_flg) != null ? b : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (
|
10051
|
+
var p, m, _, v, b, y, C, k, T, A, E, $;
|
10052
|
+
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (m = c == null ? void 0 : c.resizable_flg) != null ? m : 1, g.fullscreen_flg = (_ = c == null ? void 0 : c.fullscreen_flg) != null ? _ : 1, g.dft_fullscreen_flg = (v = c == null ? void 0 : c.dft_fullscreen_flg) != null ? v : 0, g.responsive_flg = (b = c == null ? void 0 : c.responsive_flg) != null ? b : 1, g.max_width = (y = c == null ? void 0 : c.max_width) != null ? y : DEFAULT_MAX_WIDTH, g.min_width = (C = c == null ? void 0 : c.min_width) != null ? C : DEFAULT_MIN_WIDTH, g.dft_width = (k = c == null ? void 0 : c.dft_width) != null ? k : DEFAULT_WIDTH, g.layout = (T = c == null ? void 0 : c.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (A = c == null ? void 0 : c.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (E = c == null ? void 0 : c.label_col_unit) != null ? E : KG_WIDTH_UNIT.SPAN, g.display_type = ($ = c == null ? void 0 : c.display_type) != null ? $ : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
10053
10053
|
}, {
|
10054
10054
|
immediate: !0
|
10055
10055
|
}), !1;
|
@@ -10149,7 +10149,7 @@ function _useFormModel$1() {
|
|
10149
10149
|
if (u.value = {}, c != null && c.length) {
|
10150
10150
|
const g = r.selectedRow.value;
|
10151
10151
|
c.forEach((p) => {
|
10152
|
-
var _, v, b, y, C,
|
10152
|
+
var _, v, b, y, C, k, T, A;
|
10153
10153
|
const m = (_ = p.var_nam) != null ? _ : "";
|
10154
10154
|
switch (u.value[m] = void 0, !0) {
|
10155
10155
|
case t.isCreating.value:
|
@@ -10159,10 +10159,10 @@ function _useFormModel$1() {
|
|
10159
10159
|
u.value.id = g == null ? void 0 : g.id, u.value[m] = KgVarUtil.transformValueByControlType(t.formID, m, e, (y = (b = p.upt_dft_val) != null ? b : g == null ? void 0 : g[m]) != null ? y : void 0);
|
10160
10160
|
break;
|
10161
10161
|
case t.isCopying.value:
|
10162
|
-
u.value.id = g == null ? void 0 : g.id, u.value[m] = KgVarUtil.transformValueByControlType(t.formID, m, e, (
|
10162
|
+
u.value.id = g == null ? void 0 : g.id, u.value[m] = KgVarUtil.transformValueByControlType(t.formID, m, e, (k = (C = p.cpy_dft_val) != null ? C : g == null ? void 0 : g[m]) != null ? k : void 0);
|
10163
10163
|
break;
|
10164
10164
|
case t.isDeleting.value:
|
10165
|
-
u.value.id = g == null ? void 0 : g.id, u.value[m] = KgVarUtil.transformValueByControlType(t.formID, m, e, (
|
10165
|
+
u.value.id = g == null ? void 0 : g.id, u.value[m] = KgVarUtil.transformValueByControlType(t.formID, m, e, (A = (T = p.del_dft_val) != null ? T : g == null ? void 0 : g[m]) != null ? A : void 0);
|
10166
10166
|
break;
|
10167
10167
|
}
|
10168
10168
|
});
|
@@ -10294,7 +10294,7 @@ function _useDefaultWidth() {
|
|
10294
10294
|
};
|
10295
10295
|
}
|
10296
10296
|
const KgSubmit$1 = "";
|
10297
|
-
function _isSlot$
|
10297
|
+
function _isSlot$7(e) {
|
10298
10298
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
|
10299
10299
|
}
|
10300
10300
|
const getProps$n = () => ({
|
@@ -10310,64 +10310,64 @@ const getProps$n = () => ({
|
|
10310
10310
|
attrs: t
|
10311
10311
|
}) {
|
10312
10312
|
const r = inject("$dayjs", dayjs), a = useKg(), n = useKgVar(), o = useKgButton(), i = useKgTable(), s = useKgSubmit(), l = useKgSearch();
|
10313
|
-
o.onSubmitSave(async () => (await
|
10313
|
+
o.onSubmitSave(async () => (await K(), !1)), o.onSubmitCancel(async () => (await L(), !1));
|
10314
10314
|
const u = inject(DI_KG_VAR__KG_SLOTS, null);
|
10315
10315
|
_useFormModel$1(), KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE;
|
10316
|
-
const c = computed(() => n.isDeleting.value && M.value.length === 0 &&
|
10317
|
-
var U,
|
10316
|
+
const c = computed(() => n.isDeleting.value && M.value.length === 0 && I.value.length === 0), g = computed(() => n.store.getVarButtonCreate(n.formID)), p = computed(() => n.store.getVarButtonUpdate(n.formID)), m = computed(() => n.store.getVarButtonCopy(n.formID)), _ = computed(() => n.store.getVarButtonDelete(n.formID)), v = computed(() => s.store.isLoading(n.formID)), b = computed(() => n.store.getVarSubmitConfig(n.formID)), y = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), C = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), k = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), A = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), E = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), $ = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), M = computed(() => {
|
10317
|
+
var U, z, Q;
|
10318
10318
|
switch (!0) {
|
10319
10319
|
case n.isCreating.value:
|
10320
10320
|
return (U = y.value) != null ? U : [];
|
10321
10321
|
case n.isUpdating.value:
|
10322
|
-
return (
|
10322
|
+
return (z = k.value) != null ? z : [];
|
10323
10323
|
case n.isCopying.value:
|
10324
|
-
return (Q =
|
10324
|
+
return (Q = A.value) != null ? Q : [];
|
10325
10325
|
case n.isDeleting.value:
|
10326
10326
|
return [];
|
10327
10327
|
}
|
10328
10328
|
return [];
|
10329
|
-
}),
|
10330
|
-
var U,
|
10329
|
+
}), I = computed(() => {
|
10330
|
+
var U, z, Q, re;
|
10331
10331
|
switch (!0) {
|
10332
10332
|
case n.isCreating.value:
|
10333
10333
|
return (U = C.value) != null ? U : [];
|
10334
10334
|
case n.isUpdating.value:
|
10335
|
-
return (
|
10335
|
+
return (z = T.value) != null ? z : [];
|
10336
10336
|
case n.isCopying.value:
|
10337
|
-
return (Q =
|
10337
|
+
return (Q = E.value) != null ? Q : [];
|
10338
10338
|
case n.isDeleting.value:
|
10339
|
-
return (
|
10339
|
+
return (re = $.value) != null ? re : [];
|
10340
10340
|
}
|
10341
10341
|
return [];
|
10342
|
-
}), O = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID) || !!n.store.isDeletingRequesting(n.formID)),
|
10342
|
+
}), O = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID) || !!n.store.isDeletingRequesting(n.formID)), F = computed(() => O.value || v.value), w = computed(() => v.value), N = ref({
|
10343
10343
|
kgWidth: 0
|
10344
|
-
}),
|
10344
|
+
}), R = computed(() => {
|
10345
10345
|
var U;
|
10346
10346
|
return !!(c.value || q.isFullscreen || ((U = b.value) == null ? void 0 : U.resizable_flg) === 0);
|
10347
|
-
}),
|
10348
|
-
var U,
|
10349
|
-
return c.value ? 398 : (
|
10350
|
-
}),
|
10351
|
-
var U,
|
10352
|
-
return c.value ? 398 : (
|
10353
|
-
}),
|
10347
|
+
}), D = computed(() => {
|
10348
|
+
var U, z;
|
10349
|
+
return c.value ? 398 : (z = (U = b.value) == null ? void 0 : U.min_width) != null ? z : DEFAULT_MIN_WIDTH;
|
10350
|
+
}), V = computed(() => {
|
10351
|
+
var U, z;
|
10352
|
+
return c.value ? 398 : (z = (U = b.value) == null ? void 0 : U.max_width) != null ? z : DEFAULT_MAX_WIDTH;
|
10353
|
+
}), P = computed(() => c.value ? 398 : N.value.kgWidth), B = ref(null);
|
10354
10354
|
_useResizeObserver$1(B);
|
10355
|
-
const x = _useTitle(),
|
10355
|
+
const x = _useTitle(), G = computed(() => c.value ? 400 : N.value.kgWidth && N.value.kgWidth > 0 ? N.value.kgWidth + 2 : 0), Y = computed(() => G.value === 0 ? !1 : !!(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), q = reactive({
|
10356
10356
|
isFullscreen: !1
|
10357
10357
|
}), {
|
10358
10358
|
getClass: Z
|
10359
10359
|
} = _useClass(e, q), {
|
10360
|
-
getLayout:
|
10360
|
+
getLayout: ne
|
10361
10361
|
} = _useLayout(), {
|
10362
|
-
getDefaultWidth:
|
10363
|
-
} = _useDefaultWidth(),
|
10364
|
-
var U,
|
10365
|
-
switch (
|
10362
|
+
getDefaultWidth: oe
|
10363
|
+
} = _useDefaultWidth(), fe = computed(() => {
|
10364
|
+
var U, z, Q;
|
10365
|
+
switch (ne.value) {
|
10366
10366
|
case "horizontal":
|
10367
10367
|
switch ((U = b.value) == null ? void 0 : U.label_col_unit) {
|
10368
10368
|
case KG_WIDTH_UNIT.SPAN:
|
10369
10369
|
return {
|
10370
|
-
span: (
|
10370
|
+
span: (z = b.value) == null ? void 0 : z.label_col
|
10371
10371
|
};
|
10372
10372
|
default:
|
10373
10373
|
return {
|
@@ -10379,14 +10379,14 @@ const getProps$n = () => ({
|
|
10379
10379
|
default:
|
10380
10380
|
return;
|
10381
10381
|
}
|
10382
|
-
}),
|
10383
|
-
var U,
|
10384
|
-
switch (
|
10382
|
+
}), pe = computed(() => {
|
10383
|
+
var U, z;
|
10384
|
+
switch (ne.value) {
|
10385
10385
|
case "horizontal":
|
10386
10386
|
switch ((U = b.value) == null ? void 0 : U.label_col_unit) {
|
10387
10387
|
case KG_WIDTH_UNIT.SPAN:
|
10388
10388
|
return {
|
10389
|
-
span: 24 - ((
|
10389
|
+
span: 24 - ((z = b.value) == null ? void 0 : z.label_col)
|
10390
10390
|
};
|
10391
10391
|
default:
|
10392
10392
|
return;
|
@@ -10395,17 +10395,17 @@ const getProps$n = () => ({
|
|
10395
10395
|
return;
|
10396
10396
|
}
|
10397
10397
|
});
|
10398
|
-
watch(Y, (U,
|
10399
|
-
U === !0 &&
|
10398
|
+
watch(Y, (U, z) => {
|
10399
|
+
U === !0 && ge(), z === !0 && U === !1 && te();
|
10400
10400
|
}, {
|
10401
10401
|
immediate: !0
|
10402
|
-
}), watch(
|
10403
|
-
U && (
|
10402
|
+
}), watch(oe, (U) => {
|
10403
|
+
U && (N.value.kgWidth = U);
|
10404
10404
|
}, {
|
10405
10405
|
immediate: !0
|
10406
10406
|
});
|
10407
|
-
function
|
10408
|
-
var
|
10407
|
+
function ge() {
|
10408
|
+
var z;
|
10409
10409
|
const U = watch(s.model, (Q) => {
|
10410
10410
|
Q && Object.keys(Q).length > 0 && (setTimeout(() => U()), s.store.emit(n.formID, "open", {
|
10411
10411
|
isCreating: n.isCreating.value,
|
@@ -10418,12 +10418,12 @@ const getProps$n = () => ({
|
|
10418
10418
|
}, {
|
10419
10419
|
immediate: !0
|
10420
10420
|
});
|
10421
|
-
((
|
10421
|
+
((z = b.value) == null ? void 0 : z.dft_fullscreen_flg) === 1 && !c.value && (q.isFullscreen = !0);
|
10422
10422
|
}
|
10423
|
-
function
|
10424
|
-
|
10423
|
+
function te() {
|
10424
|
+
N.value.kgWidth = oe.value, q.isFullscreen = !1, s.store.emit(n.formID, "close");
|
10425
10425
|
}
|
10426
|
-
function
|
10426
|
+
function L() {
|
10427
10427
|
switch (!0) {
|
10428
10428
|
case n.isCreating.value:
|
10429
10429
|
n.store.setIsCreating(n.formID, !1);
|
@@ -10439,8 +10439,8 @@ const getProps$n = () => ({
|
|
10439
10439
|
break;
|
10440
10440
|
}
|
10441
10441
|
}
|
10442
|
-
async function
|
10443
|
-
var U,
|
10442
|
+
async function K() {
|
10443
|
+
var U, z;
|
10444
10444
|
try {
|
10445
10445
|
if (await s.store.emit(n.formID, "beforeOk", {
|
10446
10446
|
isCreating: n.isCreating.value,
|
@@ -10454,10 +10454,10 @@ const getProps$n = () => ({
|
|
10454
10454
|
return;
|
10455
10455
|
try {
|
10456
10456
|
await ((U = s.formRef.value) == null ? void 0 : U.validate());
|
10457
|
-
} catch (
|
10458
|
-
KgUtil.throwIfNotFormError(
|
10457
|
+
} catch (ae) {
|
10458
|
+
KgUtil.throwIfNotFormError(ae);
|
10459
10459
|
}
|
10460
|
-
if (await ((
|
10460
|
+
if (await ((z = s.formRef.value) == null ? void 0 : z.validate()), await s.store.emit(n.formID, "afterValidate", {
|
10461
10461
|
isCreating: n.isCreating.value,
|
10462
10462
|
isUpdating: n.isUpdating.value,
|
10463
10463
|
isCopying: n.isCopying.value,
|
@@ -10469,25 +10469,25 @@ const getProps$n = () => ({
|
|
10469
10469
|
return;
|
10470
10470
|
switch (!0) {
|
10471
10471
|
case n.isCreating.value:
|
10472
|
-
await
|
10472
|
+
await H();
|
10473
10473
|
break;
|
10474
10474
|
case n.isUpdating.value:
|
10475
|
-
await
|
10475
|
+
await W();
|
10476
10476
|
break;
|
10477
10477
|
case n.isCopying.value:
|
10478
|
-
await
|
10478
|
+
await J();
|
10479
10479
|
break;
|
10480
10480
|
case n.isDeleting.value:
|
10481
|
-
await
|
10481
|
+
await X();
|
10482
10482
|
break;
|
10483
10483
|
}
|
10484
10484
|
} catch (Q) {
|
10485
10485
|
KgUtil.throwIfNotFormError(Q);
|
10486
10486
|
}
|
10487
10487
|
}
|
10488
|
-
async function
|
10489
|
-
var
|
10490
|
-
const U = (
|
10488
|
+
async function H() {
|
10489
|
+
var z, Q, re, ae, se, ie, le, ue;
|
10490
|
+
const U = (z = g.value) == null ? void 0 : z.cmd;
|
10491
10491
|
if (!U) {
|
10492
10492
|
Logger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10493
10493
|
VarButton: g.value
|
@@ -10496,7 +10496,7 @@ const getProps$n = () => ({
|
|
10496
10496
|
}
|
10497
10497
|
n.store.setIsCreatingRequesting(n.formID, !0);
|
10498
10498
|
try {
|
10499
|
-
let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((
|
10499
|
+
let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Q = g.value) == null ? void 0 : Q.cmd_prm) != null ? re : ""), n.formID, r)), de = ref(KgUtil.parseParams(toRaw(s.model.value), n.formID, r));
|
10500
10500
|
if (await s.store.emit(n.formID, "beforeRequest", {
|
10501
10501
|
isCreating: n.isCreating.value,
|
10502
10502
|
isUpdating: n.isUpdating.value,
|
@@ -10506,24 +10506,24 @@ const getProps$n = () => ({
|
|
10506
10506
|
rows: i.selectedRows.value,
|
10507
10507
|
model: s.model,
|
10508
10508
|
params: ee,
|
10509
|
-
data:
|
10509
|
+
data: de
|
10510
10510
|
}))
|
10511
10511
|
return;
|
10512
10512
|
await httpClient().request({
|
10513
|
-
method: (
|
10513
|
+
method: (se = (ae = g.value) == null ? void 0 : ae.cmd_method) != null ? se : "POST",
|
10514
10514
|
url: U,
|
10515
10515
|
params: ee.value,
|
10516
|
-
data:
|
10517
|
-
}), ((
|
10516
|
+
data: de.value
|
10517
|
+
}), ((ie = g.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(x.title.value + a.t("kg.succeed")), s.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (ue = (le = l.search).value) == null || ue.call(le, !0);
|
10518
10518
|
} catch (ee) {
|
10519
10519
|
console.error(ee);
|
10520
10520
|
} finally {
|
10521
10521
|
n.store.setIsCreatingRequesting(n.formID, !1);
|
10522
10522
|
}
|
10523
10523
|
}
|
10524
|
-
async function
|
10525
|
-
var
|
10526
|
-
const U = (
|
10524
|
+
async function W() {
|
10525
|
+
var z, Q, re, ae, se, ie, le, ue;
|
10526
|
+
const U = (z = p.value) == null ? void 0 : z.cmd;
|
10527
10527
|
if (!U) {
|
10528
10528
|
Logger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10529
10529
|
VarButton: p.value
|
@@ -10532,7 +10532,7 @@ const getProps$n = () => ({
|
|
10532
10532
|
}
|
10533
10533
|
try {
|
10534
10534
|
n.store.setIsUpdatingRequesting(n.formID, !0);
|
10535
|
-
let ee = ref(KgVarUtil.parseCommandParameter((
|
10535
|
+
let ee = ref(KgVarUtil.parseCommandParameter((re = (Q = p.value) == null ? void 0 : Q.cmd_prm) != null ? re : "")), de = ref(toRaw(s.model.value));
|
10536
10536
|
if (await s.store.emit(n.formID, "beforeRequest", {
|
10537
10537
|
isCreating: n.isCreating.value,
|
10538
10538
|
isUpdating: n.isUpdating.value,
|
@@ -10542,24 +10542,24 @@ const getProps$n = () => ({
|
|
10542
10542
|
rows: i.selectedRows.value,
|
10543
10543
|
model: s.model,
|
10544
10544
|
params: ee,
|
10545
|
-
data:
|
10545
|
+
data: de
|
10546
10546
|
}))
|
10547
10547
|
return;
|
10548
10548
|
await httpClient().request({
|
10549
|
-
method: (
|
10549
|
+
method: (se = (ae = p.value) == null ? void 0 : ae.cmd_method) != null ? se : "POST",
|
10550
10550
|
url: U,
|
10551
10551
|
params: ee.value,
|
10552
|
-
data:
|
10553
|
-
}), ((
|
10552
|
+
data: de.value
|
10553
|
+
}), ((ie = p.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(a.t("kg.updateSuccess")), s.store.emit(n.formID, "ok"), n.store.setIsUpdating(n.formID, !1), (ue = (le = l.search).value) == null || ue.call(le);
|
10554
10554
|
} catch (ee) {
|
10555
10555
|
console.error(ee);
|
10556
10556
|
} finally {
|
10557
10557
|
n.store.setIsUpdatingRequesting(n.formID, !1);
|
10558
10558
|
}
|
10559
10559
|
}
|
10560
|
-
async function
|
10561
|
-
var
|
10562
|
-
const U = (
|
10560
|
+
async function J() {
|
10561
|
+
var z, Q, re, ae, se, ie, le, ue, ee, de;
|
10562
|
+
const U = (z = m.value) == null ? void 0 : z.cmd;
|
10563
10563
|
if (!U) {
|
10564
10564
|
Logger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10565
10565
|
VarButton: m.value
|
@@ -10568,11 +10568,11 @@ const getProps$n = () => ({
|
|
10568
10568
|
}
|
10569
10569
|
try {
|
10570
10570
|
n.store.setIsCopyingRequesting(n.formID, !0);
|
10571
|
-
let
|
10572
|
-
...(
|
10571
|
+
let _e = ref(KgVarUtil.parseCommandParameter((re = (Q = m.value) == null ? void 0 : Q.cmd_prm) != null ? re : "")), he = ref({
|
10572
|
+
...(ae = i.selectedFirstRow.value) != null ? ae : {},
|
10573
10573
|
...toRaw(s.model.value)
|
10574
10574
|
});
|
10575
|
-
if (((
|
10575
|
+
if (((se = b.value) == null ? void 0 : se.cpy_clear_id_flg) !== 0 && delete he.value.id, await s.store.emit(n.formID, "beforeRequest", {
|
10576
10576
|
isCreating: n.isCreating.value,
|
10577
10577
|
isUpdating: n.isUpdating.value,
|
10578
10578
|
isCopying: n.isCopying.value,
|
@@ -10580,25 +10580,25 @@ const getProps$n = () => ({
|
|
10580
10580
|
row: i.selectedRow.value,
|
10581
10581
|
rows: i.selectedRows.value,
|
10582
10582
|
model: s.model,
|
10583
|
-
params:
|
10584
|
-
data:
|
10583
|
+
params: _e,
|
10584
|
+
data: he
|
10585
10585
|
}))
|
10586
10586
|
return;
|
10587
10587
|
await httpClient().request({
|
10588
|
-
method: (
|
10588
|
+
method: (le = (ie = m.value) == null ? void 0 : ie.cmd_method) != null ? le : "POST",
|
10589
10589
|
url: U,
|
10590
|
-
params:
|
10591
|
-
data:
|
10592
|
-
}), ((
|
10593
|
-
} catch (
|
10594
|
-
console.error(
|
10590
|
+
params: _e.value,
|
10591
|
+
data: he.value
|
10592
|
+
}), ((ue = m.value) == null ? void 0 : ue.show_success_message_flg) !== 0 && message.success(a.t("kg.copySuccess")), s.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (de = (ee = l.search).value) == null || de.call(ee, !0);
|
10593
|
+
} catch (_e) {
|
10594
|
+
console.error(_e);
|
10595
10595
|
} finally {
|
10596
10596
|
n.store.setIsCopyingRequesting(n.formID, !1);
|
10597
10597
|
}
|
10598
10598
|
}
|
10599
|
-
async function
|
10600
|
-
var
|
10601
|
-
const U = (
|
10599
|
+
async function X() {
|
10600
|
+
var z, Q, re, ae, se, ie, le, ue;
|
10601
|
+
const U = (z = _.value) == null ? void 0 : z.cmd;
|
10602
10602
|
if (!U) {
|
10603
10603
|
Logger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10604
10604
|
VarButton: _.value
|
@@ -10608,11 +10608,11 @@ const getProps$n = () => ({
|
|
10608
10608
|
try {
|
10609
10609
|
n.store.setIsDeletingRequesting(n.formID, !0);
|
10610
10610
|
let ee = ref({
|
10611
|
-
ids: (
|
10612
|
-
var
|
10613
|
-
return (
|
10614
|
-
})) != null ?
|
10615
|
-
}),
|
10611
|
+
ids: (re = (Q = i.selectedRows.value) == null ? void 0 : Q.map((he) => {
|
10612
|
+
var be, ye, Se;
|
10613
|
+
return (Se = he[(ye = (be = _.value) == null ? void 0 : be.del_param_clm) != null ? ye : "id"]) != null ? Se : "";
|
10614
|
+
})) != null ? re : []
|
10615
|
+
}), de = ref({});
|
10616
10616
|
if (await s.store.emit(n.formID, "beforeRequest", {
|
10617
10617
|
isCreating: n.isCreating.value,
|
10618
10618
|
isUpdating: n.isUpdating.value,
|
@@ -10622,63 +10622,63 @@ const getProps$n = () => ({
|
|
10622
10622
|
rows: i.selectedRows.value,
|
10623
10623
|
model: s.model,
|
10624
10624
|
params: ee,
|
10625
|
-
data:
|
10625
|
+
data: de
|
10626
10626
|
}))
|
10627
10627
|
return;
|
10628
10628
|
await httpClient().request({
|
10629
|
-
method: (
|
10629
|
+
method: (se = (ae = _.value) == null ? void 0 : ae.cmd_method) != null ? se : "DELETE",
|
10630
10630
|
url: U,
|
10631
10631
|
params: ee.value,
|
10632
|
-
data:
|
10632
|
+
data: de.value
|
10633
10633
|
}, {
|
10634
10634
|
joinParamsToUrl: !0
|
10635
|
-
}), ((
|
10635
|
+
}), ((ie = _.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(a.t("kg.deleteSuccess")), s.store.emit(n.formID, "ok"), n.store.setIsDeleting(n.formID, !1), (ue = (le = l.search).value) == null || ue.call(le, !0);
|
10636
10636
|
} catch (ee) {
|
10637
10637
|
console.error(ee);
|
10638
10638
|
} finally {
|
10639
10639
|
n.store.setIsDeletingRequesting(n.formID, !1);
|
10640
10640
|
}
|
10641
10641
|
}
|
10642
|
-
function
|
10643
|
-
var Q,
|
10644
|
-
const
|
10645
|
-
return isFunction$2(
|
10642
|
+
function ce(U) {
|
10643
|
+
var Q, re;
|
10644
|
+
const z = (re = (Q = u == null ? void 0 : u.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : re[U.var_nam];
|
10645
|
+
return isFunction$2(z) ? createVNode(KgForm.Item, {
|
10646
10646
|
kgVarName: U.var_nam,
|
10647
10647
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10648
10648
|
kgRules: s.rules.value[U.var_nam],
|
10649
|
-
onKgSubmit:
|
10649
|
+
onKgSubmit: K
|
10650
10650
|
}, {
|
10651
10651
|
control: ({
|
10652
|
-
varName:
|
10653
|
-
props:
|
10654
|
-
model:
|
10655
|
-
varVariableConfig:
|
10656
|
-
varProfileDetail:
|
10652
|
+
varName: ae,
|
10653
|
+
props: se,
|
10654
|
+
model: ie,
|
10655
|
+
varVariableConfig: le,
|
10656
|
+
varProfileDetail: ue,
|
10657
10657
|
varSubmitField: ee
|
10658
|
-
}) =>
|
10659
|
-
varName:
|
10660
|
-
props:
|
10661
|
-
model:
|
10662
|
-
varVariableConfig:
|
10663
|
-
varProfileDetail:
|
10658
|
+
}) => z({
|
10659
|
+
varName: ae,
|
10660
|
+
props: se,
|
10661
|
+
model: ie,
|
10662
|
+
varVariableConfig: le,
|
10663
|
+
varProfileDetail: ue,
|
10664
10664
|
varSubmitField: ee
|
10665
10665
|
})
|
10666
10666
|
}) : createVNode(KgForm.Item, {
|
10667
10667
|
kgVarName: U.var_nam,
|
10668
10668
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10669
10669
|
kgRules: s.rules.value[U.var_nam],
|
10670
|
-
onKgSubmit:
|
10670
|
+
onKgSubmit: K
|
10671
10671
|
}, null);
|
10672
10672
|
}
|
10673
|
-
function
|
10674
|
-
let U,
|
10673
|
+
function me() {
|
10674
|
+
let U, z;
|
10675
10675
|
return createVNode(KgResizable, {
|
10676
10676
|
kgType: s.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
10677
|
-
kgMinWidth:
|
10678
|
-
kgMaxWidth:
|
10679
|
-
kgWidth:
|
10680
|
-
kgDisabled:
|
10681
|
-
"onUpdate:kgWidth": (Q) =>
|
10677
|
+
kgMinWidth: D.value,
|
10678
|
+
kgMaxWidth: V.value,
|
10679
|
+
kgWidth: P.value,
|
10680
|
+
kgDisabled: R.value,
|
10681
|
+
"onUpdate:kgWidth": (Q) => N.value.kgWidth = Q
|
10682
10682
|
}, {
|
10683
10683
|
default: () => [createVNode(Spin, {
|
10684
10684
|
spinning: v.value
|
@@ -10686,20 +10686,20 @@ const getProps$n = () => ({
|
|
10686
10686
|
default: () => [createVNode(KgForm, {
|
10687
10687
|
ref: s.formRef,
|
10688
10688
|
model: s.model.value,
|
10689
|
-
layout:
|
10690
|
-
labelCol:
|
10691
|
-
wrapperCol:
|
10689
|
+
layout: ne.value,
|
10690
|
+
labelCol: fe.value,
|
10691
|
+
wrapperCol: pe.value
|
10692
10692
|
}, {
|
10693
10693
|
default: () => [createVNode("div", {
|
10694
10694
|
ref: B
|
10695
10695
|
}, [M.value.length > 0 && createVNode(Row, {
|
10696
10696
|
gutter: 12
|
10697
|
-
}, _isSlot$
|
10697
|
+
}, _isSlot$7(U = M.value.map(ce)) ? U : {
|
10698
10698
|
default: () => [U]
|
10699
|
-
}), M.value.length > 0 &&
|
10699
|
+
}), M.value.length > 0 && I.value.length > 0 && createVNode(Divider, null, null), I.value.length > 0 && createVNode(Row, {
|
10700
10700
|
gutter: 12
|
10701
|
-
}, _isSlot$
|
10702
|
-
default: () => [
|
10701
|
+
}, _isSlot$7(z = I.value.map(ce)) ? z : {
|
10702
|
+
default: () => [z]
|
10703
10703
|
}), c.value && createVNode("div", {
|
10704
10704
|
style: "text-align: center; padding: 6px 0 12px;"
|
10705
10705
|
}, [a.t("kg.confirmDelete")])])]
|
@@ -10707,23 +10707,23 @@ const getProps$n = () => ({
|
|
10707
10707
|
})]
|
10708
10708
|
});
|
10709
10709
|
}
|
10710
|
-
function
|
10711
|
-
let U,
|
10710
|
+
function ve() {
|
10711
|
+
let U, z;
|
10712
10712
|
return createVNode("div", null, [createVNode(Button, {
|
10713
10713
|
type: "primary",
|
10714
|
-
ghost: !
|
10715
|
-
disabled:
|
10716
|
-
onClick:
|
10717
|
-
}, _isSlot$
|
10714
|
+
ghost: !F.value,
|
10715
|
+
disabled: F.value,
|
10716
|
+
onClick: L
|
10717
|
+
}, _isSlot$7(U = a.t("kg.cancel")) ? U : {
|
10718
10718
|
default: () => [U]
|
10719
10719
|
}), createVNode(Button, {
|
10720
10720
|
type: "primary",
|
10721
|
-
disabled:
|
10721
|
+
disabled: w.value,
|
10722
10722
|
loading: O.value,
|
10723
10723
|
danger: !!n.isDeleting.value,
|
10724
|
-
onClick:
|
10725
|
-
}, _isSlot$
|
10726
|
-
default: () => [
|
10724
|
+
onClick: K
|
10725
|
+
}, _isSlot$7(z = a.t(n.isDeleting.value ? "kg.delete" : "kg.save")) ? z : {
|
10726
|
+
default: () => [z]
|
10727
10727
|
})]);
|
10728
10728
|
}
|
10729
10729
|
function Ce() {
|
@@ -10737,7 +10737,7 @@ const getProps$n = () => ({
|
|
10737
10737
|
"onUpdate:isFullscreen": (U) => q.isFullscreen = U,
|
10738
10738
|
kgShowFullscreenButton: !c.value,
|
10739
10739
|
kgShowConfigButton: !c.value && e.kgShowConfigButton,
|
10740
|
-
onKgCancel:
|
10740
|
+
onKgCancel: L
|
10741
10741
|
}, null);
|
10742
10742
|
}
|
10743
10743
|
return onUnmounted(() => {
|
@@ -10749,14 +10749,14 @@ const getProps$n = () => ({
|
|
10749
10749
|
maskClosable: !1,
|
10750
10750
|
keyboard: !1,
|
10751
10751
|
destroyOnClose: !0,
|
10752
|
-
width:
|
10752
|
+
width: G.value,
|
10753
10753
|
class: Z.value,
|
10754
10754
|
"kg-frm-id": n.formID
|
10755
10755
|
}, {
|
10756
10756
|
title: Ce,
|
10757
10757
|
extra: Te,
|
10758
|
-
default:
|
10759
|
-
footer:
|
10758
|
+
default: me,
|
10759
|
+
footer: ve
|
10760
10760
|
});
|
10761
10761
|
}
|
10762
10762
|
}), KgYesOrNo$1 = "", getProps$m = () => ({
|
@@ -10976,31 +10976,31 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
|
|
10976
10976
|
var T;
|
10977
10977
|
try {
|
10978
10978
|
await ((T = _.value) == null ? void 0 : T.validate());
|
10979
|
-
} catch (
|
10980
|
-
KgUtil.throwIfNotFormError(
|
10979
|
+
} catch (A) {
|
10980
|
+
KgUtil.throwIfNotFormError(A);
|
10981
10981
|
}
|
10982
10982
|
return !1;
|
10983
10983
|
});
|
10984
10984
|
const l = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), u = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), c = computed(() => {
|
10985
|
-
var T,
|
10986
|
-
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((
|
10985
|
+
var T, A, E, $, M, I;
|
10986
|
+
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((A = s.selectedRow.value) == null ? void 0 : A[s.id.value]) && (!!n.isCreating.value && ((E = u.value) == null ? void 0 : E.crt_flg) === 1 || !!n.isUpdating.value && (($ = u.value) == null ? void 0 : $.upt_flg) === 1 || !!n.isCopying.value && ((M = u.value) == null ? void 0 : M.cpy_flg) === 1 || !!n.isDeleting.value && ((I = u.value) == null ? void 0 : I.del_flg) === 1);
|
10987
10987
|
}), g = computed(() => {
|
10988
|
-
var T,
|
10989
|
-
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((
|
10988
|
+
var T, A;
|
10989
|
+
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((A = s.selectedRow.value) == null ? void 0 : A[s.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);
|
10990
10990
|
}), p = computed(() => {
|
10991
|
-
var
|
10991
|
+
var A, E;
|
10992
10992
|
let T = "kg-table-td";
|
10993
|
-
return ((
|
10993
|
+
return ((A = l.value) == null ? void 0 : A.align) === "center" ? T += " kg-table-td--center" : ((E = l.value) == null ? void 0 : E.align) === "right" && (T += " kg-table-td--right"), c.value && (T += " kg-table-td--submitting"), T;
|
10994
10994
|
}), m = computed(() => {
|
10995
|
-
var
|
10995
|
+
var A, E, $;
|
10996
10996
|
if (e.kgValue === ID_CREATE)
|
10997
10997
|
return "";
|
10998
10998
|
let T = e.kgValue;
|
10999
|
-
switch ((
|
10999
|
+
switch ((A = l.value) == null ? void 0 : A.display_type) {
|
11000
11000
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
11001
11001
|
{
|
11002
|
-
const M = KgUtil.tryParseJSON((
|
11003
|
-
T = (
|
11002
|
+
const M = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
|
11003
|
+
T = ($ = e.kgRow) == null ? void 0 : $[M.dscFieldName || `${e.kgVarName}_dsc`];
|
11004
11004
|
}
|
11005
11005
|
break;
|
11006
11006
|
}
|
@@ -11008,17 +11008,17 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
|
|
11008
11008
|
`)), T;
|
11009
11009
|
}), _ = ref(null);
|
11010
11010
|
function v(T) {
|
11011
|
-
var
|
11011
|
+
var A, E, $;
|
11012
11012
|
if (T.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
11013
|
-
switch ((
|
11013
|
+
switch ((A = l.value) == null ? void 0 : A.display_type) {
|
11014
11014
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
11015
11015
|
T.stopPropagation(), T.preventDefault(), r("kgUpdateLinkClick");
|
11016
11016
|
break;
|
11017
11017
|
case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
|
11018
11018
|
{
|
11019
11019
|
T.stopPropagation(), T.preventDefault();
|
11020
|
-
const M = KgUtil.tryParseJSON((
|
11021
|
-
(
|
11020
|
+
const M = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
|
11021
|
+
($ = a.router.value) == null || $.push({
|
11022
11022
|
path: M.path,
|
11023
11023
|
query: e.kgRow
|
11024
11024
|
});
|
@@ -11050,48 +11050,48 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
|
|
11050
11050
|
});
|
11051
11051
|
}
|
11052
11052
|
function C() {
|
11053
|
-
var T,
|
11053
|
+
var T, A, E, $, M, I, O, F;
|
11054
11054
|
if (c.value)
|
11055
11055
|
return y();
|
11056
11056
|
switch ((T = l.value) == null ? void 0 : T.display_type) {
|
11057
11057
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
11058
|
-
const
|
11058
|
+
const w = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
|
11059
11059
|
return createVNode(KgYesOrNo, {
|
11060
|
-
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((
|
11061
|
-
kgNilAsFalse:
|
11060
|
+
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((E = w.yValue) != null ? E : 1),
|
11061
|
+
kgNilAsFalse: w.nilAsFalse
|
11062
11062
|
}, null);
|
11063
11063
|
}
|
11064
11064
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
11065
|
-
const
|
11066
|
-
return
|
11067
|
-
color: (M =
|
11065
|
+
const w = KgUtil.tryParseJSON(($ = l.value) == null ? void 0 : $.display_type_properties), N = isArrayLike(w) && w.find((R) => R.value === e.kgValue);
|
11066
|
+
return N ? createVNode(Tag, {
|
11067
|
+
color: (M = N.color) != null ? M : "default"
|
11068
11068
|
}, {
|
11069
|
-
default: () => [n.t(
|
11070
|
-
}) :
|
11069
|
+
default: () => [n.t(N.varName).value]
|
11070
|
+
}) : k();
|
11071
11071
|
}
|
11072
11072
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
11073
|
-
const
|
11073
|
+
const w = KgUtil.tryParseJSON((I = l.value) == null ? void 0 : I.display_type_properties);
|
11074
11074
|
return createVNode(KgProgressA, {
|
11075
|
-
kgTextWidth:
|
11076
|
-
kgLeft: (O = e.kgRow) == null ? void 0 : O[
|
11077
|
-
kgRight: (
|
11075
|
+
kgTextWidth: w.textWidth,
|
11076
|
+
kgLeft: (O = e.kgRow) == null ? void 0 : O[w.leftColumn],
|
11077
|
+
kgRight: (F = e.kgRow) == null ? void 0 : F[w.rightColumn]
|
11078
11078
|
}, null);
|
11079
11079
|
}
|
11080
11080
|
case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
|
11081
11081
|
return KgUtil.getFileSize(e.kgValue);
|
11082
11082
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
11083
|
-
return
|
11083
|
+
return k(!0);
|
11084
11084
|
case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
|
11085
|
-
return
|
11085
|
+
return k(!0);
|
11086
11086
|
default:
|
11087
|
-
return
|
11087
|
+
return k();
|
11088
11088
|
}
|
11089
11089
|
}
|
11090
|
-
function
|
11091
|
-
let
|
11092
|
-
return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (
|
11090
|
+
function k(T = !1) {
|
11091
|
+
let A = "";
|
11092
|
+
return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (A += "kg-table-td-update-link"), createVNode("pre", {
|
11093
11093
|
innerHTML: m.value,
|
11094
|
-
class:
|
11094
|
+
class: A,
|
11095
11095
|
onClick: v
|
11096
11096
|
}, null);
|
11097
11097
|
}
|
@@ -11101,7 +11101,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
|
|
11101
11101
|
}, [C()]);
|
11102
11102
|
}
|
11103
11103
|
}), KgTable_Info = "";
|
11104
|
-
function _isSlot$
|
11104
|
+
function _isSlot$6(e) {
|
11105
11105
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
|
11106
11106
|
}
|
11107
11107
|
const getProps$k = () => ({
|
@@ -11143,14 +11143,14 @@ const getProps$k = () => ({
|
|
11143
11143
|
onClick: n,
|
11144
11144
|
class: "btn-clear-check",
|
11145
11145
|
type: "link"
|
11146
|
-
}, _isSlot$
|
11146
|
+
}, _isSlot$6(s = a.t("kg.KgTableInfo.clearCheck")) ? s : {
|
11147
11147
|
default: () => [s]
|
11148
11148
|
}), e.kgShowLocate && createVNode(Button, {
|
11149
11149
|
disabled: e.kgDisabled,
|
11150
11150
|
onClick: i,
|
11151
11151
|
class: "btn-locate-check",
|
11152
11152
|
type: "link"
|
11153
|
-
}, _isSlot$
|
11153
|
+
}, _isSlot$6(l = a.t("kg.KgTableInfo.locate")) ? l : {
|
11154
11154
|
default: () => [l]
|
11155
11155
|
})]
|
11156
11156
|
})]), e.kgShowClearTable && createVNode(Button, {
|
@@ -11158,7 +11158,7 @@ const getProps$k = () => ({
|
|
11158
11158
|
onClick: o,
|
11159
11159
|
class: "btn-clear-table",
|
11160
11160
|
danger: !0
|
11161
|
-
}, _isSlot$
|
11161
|
+
}, _isSlot$6(u = a.t("kg.KgTableInfo.clearTable")) ? u : {
|
11162
11162
|
default: () => [u]
|
11163
11163
|
})]);
|
11164
11164
|
};
|
@@ -11185,8 +11185,8 @@ const getProps$k = () => ({
|
|
11185
11185
|
}) => {
|
11186
11186
|
const u = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
11187
11187
|
return i = watch(l, (c) => {
|
11188
|
-
var g, p, m, _, v, b, y, C,
|
11189
|
-
c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = a == null ? void 0 : a.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (m = u == null ? void 0 : u.mult_flg) != null ? m : 0, c.show_check_column_flg = (_ = u == null ? void 0 : u.show_check_column_flg) != null ? _ : 0, c.show_bottom_left_flg = (v = u == null ? void 0 : u.show_bottom_left_flg) != null ? v : 1, c.show_bottom_right_flg = (b = u == null ? void 0 : u.show_bottom_right_flg) != null ? b : 1, c.convert_sort_field_to_under_score_flg = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (
|
11188
|
+
var g, p, m, _, v, b, y, C, k, T, A;
|
11189
|
+
c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = a == null ? void 0 : a.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (m = u == null ? void 0 : u.mult_flg) != null ? m : 0, c.show_check_column_flg = (_ = u == null ? void 0 : u.show_check_column_flg) != null ? _ : 0, c.show_bottom_left_flg = (v = u == null ? void 0 : u.show_bottom_left_flg) != null ? v : 1, c.show_bottom_right_flg = (b = u == null ? void 0 : u.show_bottom_right_flg) != null ? b : 1, c.convert_sort_field_to_under_score_flg = (y = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? y : 0, c.pg_size_opts = (C = u == null ? void 0 : u.pg_size_opts) != null ? C : "[10, 20, 50, 100]", c.pg_size_opt = (k = u == null ? void 0 : u.pg_size_opt) != null ? k : 10, c.cmd_prm = (T = u == null ? void 0 : u.cmd_prm) != null ? T : void 0, c.button_display_type = (A = u == null ? void 0 : u.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
11190
11190
|
}, {
|
11191
11191
|
immediate: !0
|
11192
11192
|
}), !1;
|
@@ -11382,7 +11382,7 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
11382
11382
|
}) => (i.value, !1)), o.onOk(async () => (n.store.retrieve(n.formID), !1)), () => createVNode(KgSubmit, null, null);
|
11383
11383
|
}
|
11384
11384
|
});
|
11385
|
-
function _isSlot$
|
11385
|
+
function _isSlot$5(e) {
|
11386
11386
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
|
11387
11387
|
}
|
11388
11388
|
const KgTableSetting = defineComponent({
|
@@ -11398,17 +11398,17 @@ const KgTableSetting = defineComponent({
|
|
11398
11398
|
} = _useServices(), s = ref(""), l = ref([]), u = computed(() => l.value.includes("1")), c = reactive({
|
11399
11399
|
visible: !1
|
11400
11400
|
}), g = computed(() => !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value), p = ref(!1);
|
11401
|
-
_useObserveMenuItemColumns(u), watch(u, (
|
11402
|
-
|
11401
|
+
_useObserveMenuItemColumns(u), watch(u, (k) => {
|
11402
|
+
k || (s.value = "");
|
11403
11403
|
}, {
|
11404
11404
|
immediate: !0
|
11405
11405
|
});
|
11406
|
-
function m(
|
11407
|
-
n.store.setVarGridDetailVisible(n.formID,
|
11406
|
+
function m(k) {
|
11407
|
+
n.store.setVarGridDetailVisible(n.formID, k.var_nam, k.vis_flg === 1 ? 0 : 1);
|
11408
11408
|
}
|
11409
11409
|
async function _() {
|
11410
|
-
var
|
11411
|
-
if (((
|
11410
|
+
var k;
|
11411
|
+
if (((k = n.currentVarGridMaster.value) == null ? void 0 : k.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
|
11412
11412
|
KgUtil.confirm({
|
11413
11413
|
content: a.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
|
11414
11414
|
okButtonProps: {
|
@@ -11436,7 +11436,7 @@ const KgTableSetting = defineComponent({
|
|
11436
11436
|
popupClassName: "kg-table-setting-submenu-popup-columns"
|
11437
11437
|
}, {
|
11438
11438
|
default: () => {
|
11439
|
-
var
|
11439
|
+
var k;
|
11440
11440
|
return createVNode("div", {
|
11441
11441
|
class: "columns"
|
11442
11442
|
}, [createVNode(Input, {
|
@@ -11445,10 +11445,10 @@ const KgTableSetting = defineComponent({
|
|
11445
11445
|
allowClear: !0
|
11446
11446
|
}, null), createVNode("ul", {
|
11447
11447
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
11448
|
-
}, [(
|
11448
|
+
}, [(k = n.currentVarGridDetails.value) == null ? void 0 : k.map((T) => createVNode("li", {
|
11449
11449
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
11450
|
-
onClick: (
|
11451
|
-
|
11450
|
+
onClick: (A) => {
|
11451
|
+
A.preventDefault(), A.stopPropagation(), m(T);
|
11452
11452
|
},
|
11453
11453
|
style: {
|
11454
11454
|
display: i(T, s.value) ? "flex" : "none"
|
@@ -11460,8 +11460,8 @@ const KgTableSetting = defineComponent({
|
|
11460
11460
|
}, {
|
11461
11461
|
default: () => [createVNode("pre", null, [n.t(T.var_nam).value])]
|
11462
11462
|
}), createVNode(HolderOutlined$1, {
|
11463
|
-
onClick: (
|
11464
|
-
|
11463
|
+
onClick: (A) => {
|
11464
|
+
A.preventDefault(), A.stopPropagation();
|
11465
11465
|
}
|
11466
11466
|
}, null)]))])]);
|
11467
11467
|
},
|
@@ -11475,27 +11475,27 @@ const KgTableSetting = defineComponent({
|
|
11475
11475
|
popupClassName: "kg-table-setting-submenu-popup-masters"
|
11476
11476
|
}, {
|
11477
11477
|
default: () => {
|
11478
|
-
var
|
11479
|
-
let
|
11480
|
-
return createVNode(Fragment, null, [(
|
11481
|
-
var
|
11478
|
+
var A;
|
11479
|
+
let k, T;
|
11480
|
+
return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((E) => {
|
11481
|
+
var $;
|
11482
11482
|
return createVNode(Menu.Item, {
|
11483
|
-
key:
|
11484
|
-
class:
|
11485
|
-
"kg-var-nam":
|
11486
|
-
onClick: () => n.store.setCurrentVarGridMasterID(n.formID,
|
11483
|
+
key: E.id,
|
11484
|
+
class: E.id === (($ = n.currentVarGridMaster.value) == null ? void 0 : $.id) ? "selected" : "",
|
11485
|
+
"kg-var-nam": E.grd_var_nam,
|
11486
|
+
onClick: () => n.store.setCurrentVarGridMasterID(n.formID, E.id)
|
11487
11487
|
}, {
|
11488
|
-
default: () => [n.t(
|
11488
|
+
default: () => [n.t(E.grd_var_nam).value]
|
11489
11489
|
});
|
11490
11490
|
}), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
|
11491
11491
|
key: "save-grid-view",
|
11492
11492
|
onClick: _
|
11493
|
-
}, _isSlot$
|
11494
|
-
default: () => [
|
11493
|
+
}, _isSlot$5(k = a.t("kg.KgTable.saveVarGridMaster")) ? k : {
|
11494
|
+
default: () => [k]
|
11495
11495
|
}), createVNode(Menu.Item, {
|
11496
11496
|
key: "save-grid-view-as",
|
11497
11497
|
onClick: v
|
11498
|
-
}, _isSlot$
|
11498
|
+
}, _isSlot$5(T = a.t("kg.KgTable.saveVarGridMasterAs")) ? T : {
|
11499
11499
|
default: () => [T]
|
11500
11500
|
})]);
|
11501
11501
|
},
|
@@ -11503,14 +11503,14 @@ const KgTableSetting = defineComponent({
|
|
11503
11503
|
});
|
11504
11504
|
}
|
11505
11505
|
function C() {
|
11506
|
-
let
|
11506
|
+
let k;
|
11507
11507
|
return createVNode(Menu.Item, {
|
11508
11508
|
key: "config-var-grid-master",
|
11509
11509
|
onClick: () => {
|
11510
11510
|
c.visible = !0;
|
11511
11511
|
}
|
11512
|
-
}, _isSlot$
|
11513
|
-
default: () => [
|
11512
|
+
}, _isSlot$5(k = a.t("kg.KgTable.config")) ? k : {
|
11513
|
+
default: () => [k]
|
11514
11514
|
});
|
11515
11515
|
}
|
11516
11516
|
return () => createVNode(Fragment, null, [createVNode(Dropdown, {
|
@@ -11523,14 +11523,14 @@ const KgTableSetting = defineComponent({
|
|
11523
11523
|
overlay: () => createVNode(Menu, {
|
11524
11524
|
triggerSubMenuAction: "click",
|
11525
11525
|
openKeys: l.value,
|
11526
|
-
"onUpdate:openKeys": (
|
11526
|
+
"onUpdate:openKeys": (k) => l.value = k,
|
11527
11527
|
selectable: !1
|
11528
11528
|
}, {
|
11529
11529
|
default: () => [b(), y(), C()]
|
11530
11530
|
})
|
11531
11531
|
}), c.visible && createVNode(KgTableSettingConfigModal, {
|
11532
11532
|
visible: c.visible,
|
11533
|
-
"onUpdate:visible": (
|
11533
|
+
"onUpdate:visible": (k) => c.visible = k,
|
11534
11534
|
hostFormID: n.formID
|
11535
11535
|
}, null), p.value && createVNode(KgTableSettingVarGridMasterSaveAs, null, null)]);
|
11536
11536
|
}
|
@@ -11567,35 +11567,35 @@ function _useColumns() {
|
|
11567
11567
|
if (m.fix_right_flg === 1)
|
11568
11568
|
return "right";
|
11569
11569
|
}
|
11570
|
-
function
|
11570
|
+
function k() {
|
11571
11571
|
return m.ord_flg === 1 && !(e.isCreating.value || e.isUpdating.value || e.isCopying.value || e.isDeleting.value);
|
11572
11572
|
}
|
11573
11573
|
function T() {
|
11574
11574
|
return ["left", "center", "right"].includes(m.align || "") ? m.align : "left";
|
11575
11575
|
}
|
11576
|
-
const
|
11576
|
+
const A = v();
|
11577
11577
|
return {
|
11578
11578
|
dataIndex: _,
|
11579
11579
|
title: b(),
|
11580
|
-
width:
|
11581
|
-
resizable: typeof
|
11580
|
+
width: A,
|
11581
|
+
resizable: typeof A == "number",
|
11582
11582
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
11583
11583
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
11584
11584
|
fixed: C(),
|
11585
|
-
sorter:
|
11585
|
+
sorter: k(),
|
11586
11586
|
align: T(),
|
11587
11587
|
defaultSortOrder: y(),
|
11588
11588
|
customHeaderCell: () => ({
|
11589
11589
|
"kg-frm-id": e.formID,
|
11590
11590
|
"kg-var-nam": _
|
11591
11591
|
}),
|
11592
|
-
customCell: (
|
11592
|
+
customCell: (E) => {
|
11593
11593
|
var M;
|
11594
|
-
const
|
11594
|
+
const $ = e.store.getVarSubmitField(e.formID, _);
|
11595
11595
|
return {
|
11596
11596
|
"kg-frm-id": e.formID,
|
11597
11597
|
"kg-var-nam": _,
|
11598
|
-
class: t.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE &&
|
11598
|
+
class: t.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && E[r.id.value] === ((M = r.selectedRow.value) == null ? void 0 : M[r.id.value]) && (!!e.isCreating.value && ($ == null ? void 0 : $.crt_flg) === 1 || !!e.isUpdating.value && ($ == null ? void 0 : $.upt_flg) === 1 || !!e.isCopying.value && ($ == null ? void 0 : $.cpy_flg) === 1 || !!e.isDeleting.value && ($ == null ? void 0 : $.del_flg) === 1) ? "submitting" : ""
|
11599
11599
|
};
|
11600
11600
|
}
|
11601
11601
|
};
|
@@ -11635,11 +11635,7 @@ function _useResizeObserver(e) {
|
|
11635
11635
|
a == null || a.disconnect();
|
11636
11636
|
}), {};
|
11637
11637
|
}
|
11638
|
-
const KgTable$1 = ""
|
11639
|
-
function _isSlot$5(e) {
|
11640
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
|
11641
|
-
}
|
11642
|
-
const KgTable = defineComponent({
|
11638
|
+
const KgTable$1 = "", KgTable = defineComponent({
|
11643
11639
|
name: "KgTable",
|
11644
11640
|
setup: function(e, {
|
11645
11641
|
slots: t,
|
@@ -11647,23 +11643,23 @@ const KgTable = defineComponent({
|
|
11647
11643
|
}) {
|
11648
11644
|
const a = inject("$dayjs", dayjs), n = inject(DI_KG_VAR__KG_SLOTS, null), o = useKg(), i = useKgVar(), s = useKgSearch(), l = useKgButton(), u = useKgTable(), c = useKgSubmit();
|
11649
11645
|
s.onSearch((L) => {
|
11650
|
-
|
11646
|
+
B(L);
|
11651
11647
|
}), s.onReset(() => {
|
11652
|
-
|
11648
|
+
B(!0);
|
11653
11649
|
}), u.store.$onAction(async ({
|
11654
11650
|
name: L,
|
11655
|
-
args:
|
11651
|
+
args: K
|
11656
11652
|
}) => {
|
11657
11653
|
switch (L) {
|
11658
11654
|
case "setSelecte":
|
11659
|
-
if (
|
11660
|
-
const
|
11655
|
+
if (K[0] === i.formID) {
|
11656
|
+
const H = K[1], W = K[2];
|
11661
11657
|
switch (!0) {
|
11662
|
-
case (
|
11663
|
-
|
11658
|
+
case (W && !F.value.includes(H[u.id.value])):
|
11659
|
+
x([...F.value, H[u.id.value]]);
|
11664
11660
|
break;
|
11665
|
-
case (!
|
11666
|
-
|
11661
|
+
case (!W && F.value.includes(H[u.id.value])):
|
11662
|
+
x(without$1(F.value, H[u.id.value]));
|
11667
11663
|
break;
|
11668
11664
|
}
|
11669
11665
|
}
|
@@ -11678,113 +11674,118 @@ const KgTable = defineComponent({
|
|
11678
11674
|
} = _useLoading(), b = ref(null);
|
11679
11675
|
_useResizeObserver(b);
|
11680
11676
|
const y = computed(() => {
|
11681
|
-
var L,
|
11682
|
-
return (
|
11677
|
+
var L, K;
|
11678
|
+
return (K = (L = i.varButtonSearch.value) == null ? void 0 : L.cmd) != null ? K : null;
|
11683
11679
|
}), C = computed(() => {
|
11684
|
-
var
|
11680
|
+
var K, H, W, J, X, ce, me;
|
11685
11681
|
let L = {
|
11686
|
-
pageNo:
|
11687
|
-
pageSize:
|
11688
|
-
...
|
11689
|
-
...(
|
11682
|
+
pageNo: w.pageIndex,
|
11683
|
+
pageSize: w.pageSize,
|
11684
|
+
...N,
|
11685
|
+
...(H = (K = s.model) == null ? void 0 : K.value) != null ? H : {}
|
11690
11686
|
};
|
11691
11687
|
return i.varButtonSearch.value && (L = {
|
11692
11688
|
...L,
|
11693
|
-
...KgVarUtil.parseCommandParameter((J = (
|
11689
|
+
...KgVarUtil.parseCommandParameter((J = (W = i.varButtonSearch.value) == null ? void 0 : W.cmd_prm) != null ? J : "")
|
11694
11690
|
}), (X = i.varGridConfig.value) != null && X.cmd_prm && (L = {
|
11695
11691
|
...L,
|
11696
11692
|
...KgVarUtil.parseCommandParameter((ce = i.varGridConfig.value.cmd_prm) != null ? ce : "")
|
11697
|
-
}), ((
|
11698
|
-
}),
|
11693
|
+
}), ((me = i.varGridConfig.value) == null ? void 0 : me.convert_sort_field_to_under_score_flg) === 1 && L.column && (L.column = snakeCase$1(L.column)), L;
|
11694
|
+
}), k = computed(() => v.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || w.total === 0), T = computed(() => v.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value), A = computed(() => {
|
11695
|
+
var L;
|
11696
|
+
return !!((L = n == null ? void 0 : n.KgTable) != null && L.expandedRowRender);
|
11697
|
+
}), E = computed(() => {
|
11699
11698
|
var L;
|
11700
|
-
|
11699
|
+
return ((L = i.varGridConfig.value) == null ? void 0 : L.show_check_column_flg) === 1;
|
11700
|
+
}), $ = computed(() => {
|
11701
|
+
if (!!E.value)
|
11701
11702
|
return {
|
11702
11703
|
fixed: "left",
|
11703
11704
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
11704
11705
|
hideSelectAll: !u.isMultiSelect.value,
|
11705
|
-
selectedRowKeys:
|
11706
|
+
selectedRowKeys: F,
|
11706
11707
|
preserveSelectedRowKeys: !1,
|
11707
|
-
getCheckboxProps: (
|
11708
|
+
getCheckboxProps: (L) => ({
|
11708
11709
|
disabled: !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value
|
11709
11710
|
}),
|
11710
|
-
onSelect: (
|
11711
|
-
onChange: (
|
11711
|
+
onSelect: (L) => G(L),
|
11712
|
+
onChange: (L) => u.isMultiSelect.value && x(L)
|
11712
11713
|
};
|
11713
|
-
}),
|
11714
|
-
var
|
11714
|
+
}), M = computed(() => {
|
11715
|
+
var K;
|
11715
11716
|
let L = "kg-table";
|
11716
|
-
return ((
|
11717
|
-
}),
|
11718
|
-
var
|
11717
|
+
return ((K = i.varGridConfig.value) == null ? void 0 : K.show_bottom_border_flg) === 1 && (L += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (L += " kg-table--no-bottom"), c.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value) && (L += " kg-table--submitting"), L;
|
11718
|
+
}), I = computed(() => {
|
11719
|
+
var K;
|
11719
11720
|
let L = "kg-table-bottom";
|
11720
|
-
return ((
|
11721
|
-
}),
|
11721
|
+
return ((K = i.varGridConfig.value) == null ? void 0 : K.show_bottom_border_flg) === 1 && (L += " kg-table-bottom--border"), L;
|
11722
|
+
}), O = ref([]), F = ref([]), w = reactive({
|
11722
11723
|
pageIndex: 1,
|
11723
11724
|
pageSize: 10,
|
11724
11725
|
total: 0
|
11725
|
-
}),
|
11726
|
+
}), N = reactive({
|
11726
11727
|
column: void 0,
|
11727
11728
|
order: void 0
|
11728
|
-
}),
|
11729
|
-
L && (setTimeout(() =>
|
11729
|
+
}), R = watch(u.pageSizeOption, (L) => {
|
11730
|
+
L && (setTimeout(() => R()), w.pageSize = L), g.value = !0;
|
11730
11731
|
});
|
11731
11732
|
watch(u.pageSizeOptions, (L) => {
|
11732
|
-
L.length > 0 && !L.includes(
|
11733
|
-
}), watch([y, u.isReadAutomatically, s.isReady], ([L,
|
11734
|
-
L &&
|
11733
|
+
L.length > 0 && !L.includes(w.pageSize) && (w.pageSize = u.pageSizeOption.value);
|
11734
|
+
}), watch([y, u.isReadAutomatically, s.isReady], ([L, K, H]) => {
|
11735
|
+
L && K && H && !u.store.getIsRetrieved(i.formID) && B(!0);
|
11735
11736
|
}, {
|
11736
11737
|
immediate: !0
|
11737
|
-
}), watch(i.isCreating, (L,
|
11738
|
-
L === !0 ?
|
11738
|
+
}), watch(i.isCreating, (L, K) => {
|
11739
|
+
L === !0 ? D() : L === !1 && K === !0 && V();
|
11739
11740
|
}), onUnmounted(() => {
|
11740
11741
|
u.store.dispose(i.formID);
|
11741
11742
|
});
|
11742
|
-
function
|
11743
|
+
function D() {
|
11743
11744
|
if (c.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
|
11744
11745
|
const L = {
|
11745
11746
|
[u.id.value]: ID_CREATE
|
11746
11747
|
};
|
11747
|
-
|
11748
|
+
O.value = [L, ...O.value], F.value = [ID_CREATE], u.store.setSelectedRows(i.formID, [L]);
|
11748
11749
|
}
|
11749
11750
|
}
|
11750
|
-
function
|
11751
|
-
const L =
|
11752
|
-
L && (
|
11751
|
+
function V() {
|
11752
|
+
const L = O.value.find((K) => K[u.id.value] === ID_CREATE);
|
11753
|
+
L && (O.value = without$1(O.value, L), F.value = [], u.store.setSelectedRows(i.formID, []));
|
11753
11754
|
}
|
11754
|
-
function
|
11755
|
-
if (!(!!i.isCreating.value || !!i.isCreating.value || !!i.isCreating.value || !!i.isCreating.value) &&
|
11756
|
-
if (!
|
11757
|
-
|
11755
|
+
function P(L, K) {
|
11756
|
+
if (!(!!i.isCreating.value || !!i.isCreating.value || !!i.isCreating.value || !!i.isCreating.value) && !!$.value) {
|
11757
|
+
if (!K) {
|
11758
|
+
F.value = [], u.store.setSelectedRows(i.formID, []);
|
11758
11759
|
return;
|
11759
11760
|
}
|
11760
11761
|
switch (L == null ? void 0 : L.detail) {
|
11761
11762
|
case 1:
|
11762
|
-
|
11763
|
-
var
|
11764
|
-
return (
|
11765
|
-
}).filter((
|
11763
|
+
F.value = [K[u.id.value]], u.store.setSelectedRows(i.formID, F.value.map((H) => {
|
11764
|
+
var W;
|
11765
|
+
return (W = O.value) == null ? void 0 : W.find((J) => J[u.id.value] === H);
|
11766
|
+
}).filter((H) => !!H));
|
11766
11767
|
break;
|
11767
11768
|
case 2:
|
11768
|
-
u.store.emit(i.formID, "rowDoubleClick",
|
11769
|
+
u.store.emit(i.formID, "rowDoubleClick", K);
|
11769
11770
|
break;
|
11770
11771
|
}
|
11771
11772
|
}
|
11772
11773
|
}
|
11773
|
-
function
|
11774
|
-
const
|
11775
|
-
|
11774
|
+
function B(L = !1) {
|
11775
|
+
const K = watch(g, (W) => {
|
11776
|
+
W && (setTimeout(() => K()), H());
|
11776
11777
|
}, {
|
11777
11778
|
immediate: !0
|
11778
11779
|
});
|
11779
|
-
async function
|
11780
|
-
var
|
11780
|
+
async function H() {
|
11781
|
+
var W, J;
|
11781
11782
|
if (!y.value) {
|
11782
11783
|
Logger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11783
11784
|
VarButton: i.varButtonSearch.value
|
11784
11785
|
});
|
11785
11786
|
return;
|
11786
11787
|
}
|
11787
|
-
L && (
|
11788
|
+
L && (w.pageIndex = 1), u.store.setIsRetrieving(i.formID, !0);
|
11788
11789
|
try {
|
11789
11790
|
const X = await httpClient().request({
|
11790
11791
|
method: "GET",
|
@@ -11795,19 +11796,19 @@ const KgTable = defineComponent({
|
|
11795
11796
|
});
|
11796
11797
|
switch (!0) {
|
11797
11798
|
case !X:
|
11798
|
-
|
11799
|
+
O.value = [], w.total = 0;
|
11799
11800
|
break;
|
11800
11801
|
case isArrayLike(X):
|
11801
|
-
|
11802
|
+
O.value = X, w.total = X.length;
|
11802
11803
|
break;
|
11803
11804
|
case ("total" in X && "records" in X):
|
11804
|
-
|
11805
|
+
O.value = (W = X.records) != null ? W : [], w.total = (J = X.total) != null ? J : 0;
|
11805
11806
|
break;
|
11806
11807
|
}
|
11807
11808
|
u.store.emit(i.formID, "retrieve", {
|
11808
11809
|
page: X,
|
11809
|
-
datas:
|
11810
|
-
}),
|
11810
|
+
datas: O
|
11811
|
+
}), P(), p.value = [], await nextTick(), u.store.setIsRetrieved(i.formID, !0);
|
11811
11812
|
} catch (X) {
|
11812
11813
|
throw X;
|
11813
11814
|
} finally {
|
@@ -11815,148 +11816,154 @@ const KgTable = defineComponent({
|
|
11815
11816
|
}
|
11816
11817
|
}
|
11817
11818
|
}
|
11818
|
-
function
|
11819
|
-
|
11820
|
-
var
|
11821
|
-
return (
|
11822
|
-
}).filter((
|
11819
|
+
function x(L) {
|
11820
|
+
F.value = L, u.store.setSelectedRows(i.formID, F.value.map((K) => {
|
11821
|
+
var H;
|
11822
|
+
return (H = O.value) == null ? void 0 : H.find((W) => W[u.id.value] === K);
|
11823
|
+
}).filter((K) => !!K));
|
11823
11824
|
}
|
11824
|
-
function
|
11825
|
-
var
|
11825
|
+
function G(L) {
|
11826
|
+
var K, H;
|
11826
11827
|
switch (u.isMultiSelect.value) {
|
11827
11828
|
case !0:
|
11828
11829
|
{
|
11829
|
-
const
|
11830
|
-
|
11830
|
+
const W = L[u.id.value];
|
11831
|
+
F.value.includes(W) ? F.value = without$1(F.value, W) : F.value = [...(K = F.value) != null ? K : [], W];
|
11831
11832
|
}
|
11832
11833
|
break;
|
11833
11834
|
case !1:
|
11834
11835
|
{
|
11835
|
-
const
|
11836
|
-
(
|
11836
|
+
const W = L[u.id.value];
|
11837
|
+
(H = F.value) != null && H.includes(W) ? F.value = [] : F.value = [W];
|
11837
11838
|
}
|
11838
11839
|
break;
|
11839
11840
|
}
|
11840
|
-
u.store.setSelectedRows(i.formID,
|
11841
|
+
u.store.setSelectedRows(i.formID, F.value.map((W) => {
|
11841
11842
|
var J;
|
11842
|
-
return (J =
|
11843
|
-
}).filter((
|
11843
|
+
return (J = O.value) == null ? void 0 : J.find((X) => X[u.id.value] === W);
|
11844
|
+
}).filter((W) => !!W));
|
11844
11845
|
}
|
11845
|
-
function
|
11846
|
-
|
11846
|
+
function Y(L, K) {
|
11847
|
+
K.width = L, i.store.setVarGridDetailWidth(i.formID, K.dataIndex, L);
|
11847
11848
|
}
|
11848
|
-
async function
|
11849
|
+
async function q(L, K, H, W) {
|
11849
11850
|
var J;
|
11850
|
-
switch (
|
11851
|
+
switch (W.action) {
|
11851
11852
|
case "sort":
|
11852
11853
|
{
|
11853
11854
|
await nextTick();
|
11854
|
-
let X =
|
11855
|
-
X.order ? (
|
11855
|
+
let X = H;
|
11856
|
+
X.order ? (N.column = (J = X.field) != null ? J : void 0, N.order = X.order === "ascend" ? "asc" : X.order === "descend" ? "desc" : void 0) : (N.column = void 0, N.order = void 0), B(!0);
|
11856
11857
|
}
|
11857
11858
|
break;
|
11858
11859
|
}
|
11859
11860
|
}
|
11860
|
-
function
|
11861
|
-
var
|
11862
|
-
const
|
11863
|
-
switch ((
|
11861
|
+
function Z(L, K) {
|
11862
|
+
var W;
|
11863
|
+
const H = K[u.id.value];
|
11864
|
+
switch ((W = i.varGridConfig.value) == null ? void 0 : W.expand_accordion_flg) {
|
11864
11865
|
case 0:
|
11865
|
-
L ? p.value = uniq([...p.value,
|
11866
|
+
L ? p.value = uniq([...p.value, H]) : p.value = without$1(p.value, H);
|
11866
11867
|
break;
|
11867
11868
|
default:
|
11868
|
-
L ? p.value = [
|
11869
|
+
L ? p.value = [H] : p.value = [];
|
11869
11870
|
break;
|
11870
11871
|
}
|
11871
11872
|
}
|
11872
|
-
function
|
11873
|
-
|
11873
|
+
function ne(L, K) {
|
11874
|
+
K !== w.pageSize ? (w.pageIndex = 1, w.pageSize = K) : w.pageIndex = L, B();
|
11874
11875
|
}
|
11875
|
-
function
|
11876
|
-
|
11877
|
-
var
|
11878
|
-
return (
|
11879
|
-
}).filter((
|
11876
|
+
function oe(L) {
|
11877
|
+
F.value = [L[u.id.value]], u.store.setSelectedRows(i.formID, F.value.map((K) => {
|
11878
|
+
var H;
|
11879
|
+
return (H = O.value) == null ? void 0 : H.find((W) => W[u.id.value] === K);
|
11880
|
+
}).filter((K) => !!K)), l.click(i.formID, KG_BUTTON_TYPE.UPDATE);
|
11880
11881
|
}
|
11881
|
-
function
|
11882
|
+
function fe({
|
11882
11883
|
title: L,
|
11883
|
-
column:
|
11884
|
+
column: K
|
11884
11885
|
}) {
|
11885
|
-
switch (
|
11886
|
+
switch (K.dataIndex) {
|
11886
11887
|
case "index":
|
11887
11888
|
return createVNode(KgTableSetting, null, null);
|
11888
11889
|
default:
|
11889
11890
|
return createVNode("pre", null, [L]);
|
11890
11891
|
}
|
11891
11892
|
}
|
11892
|
-
function
|
11893
|
-
var
|
11894
|
-
|
11895
|
-
return (F = n == null ? void 0 : n.KgTable) != null && F["summary.bodyCell"] ? createVNode(TableSummary, {
|
11893
|
+
function pe() {
|
11894
|
+
var L;
|
11895
|
+
return (L = n == null ? void 0 : n.KgTable) != null && L["summary.bodyCell"] ? createVNode(TableSummary, {
|
11896
11896
|
fixed: "bottom"
|
11897
11897
|
}, {
|
11898
|
-
default: () => [createVNode(TableSummary.Row, null,
|
11899
|
-
|
11900
|
-
|
11901
|
-
|
11902
|
-
|
11903
|
-
|
11904
|
-
|
11905
|
-
|
11906
|
-
|
11907
|
-
|
11908
|
-
|
11909
|
-
|
11910
|
-
|
11911
|
-
|
11912
|
-
|
11913
|
-
|
11898
|
+
default: () => [createVNode(TableSummary.Row, null, {
|
11899
|
+
default: () => [A.value && createVNode(TableSummary.Cell, {
|
11900
|
+
index: 0
|
11901
|
+
}, null), E.value && createVNode(TableSummary.Cell, {
|
11902
|
+
index: A.value ? 1 : 0
|
11903
|
+
}, null), m.value.map((K, H) => {
|
11904
|
+
const W = i.store.getVarGridDetail(i.formID, K.dataIndex);
|
11905
|
+
let J = H;
|
11906
|
+
return A.value && E.value ? J += 2 : (A.value || E.value) && (J += 1), createVNode(TableSummary.Cell, {
|
11907
|
+
index: J
|
11908
|
+
}, {
|
11909
|
+
default: () => {
|
11910
|
+
var X, ce;
|
11911
|
+
return [(ce = (X = n == null ? void 0 : n.KgTable) == null ? void 0 : X["summary.bodyCell"]) == null ? void 0 : ce.call(X, {
|
11912
|
+
column: K,
|
11913
|
+
index: J,
|
11914
|
+
varGridDetail: W
|
11915
|
+
})];
|
11916
|
+
}
|
11917
|
+
});
|
11918
|
+
})]
|
11914
11919
|
})]
|
11915
11920
|
}) : null;
|
11916
11921
|
}
|
11917
|
-
function
|
11922
|
+
function ge({
|
11918
11923
|
column: L,
|
11919
|
-
index:
|
11920
|
-
record:
|
11921
|
-
|
11922
|
-
|
11924
|
+
index: K,
|
11925
|
+
record: H,
|
11926
|
+
text: W,
|
11927
|
+
value: J
|
11923
11928
|
}) {
|
11924
|
-
var
|
11929
|
+
var me;
|
11925
11930
|
let X = "";
|
11926
11931
|
L.customRender ? X = L.customRender({
|
11927
|
-
index:
|
11928
|
-
record:
|
11932
|
+
index: K,
|
11933
|
+
record: H,
|
11929
11934
|
column: L,
|
11930
|
-
text:
|
11931
|
-
value:
|
11932
|
-
renderIndex:
|
11933
|
-
}) : X =
|
11935
|
+
text: W,
|
11936
|
+
value: J,
|
11937
|
+
renderIndex: K
|
11938
|
+
}) : X = J;
|
11934
11939
|
const ce = createVNode(KgTableCell, {
|
11935
|
-
kgRow:
|
11940
|
+
kgRow: H,
|
11936
11941
|
kgValue: X,
|
11937
11942
|
kgVarName: L.dataIndex,
|
11938
|
-
onKgUpdateLinkClick: () =>
|
11943
|
+
onKgUpdateLinkClick: () => oe(H)
|
11939
11944
|
}, null);
|
11940
|
-
if ((
|
11941
|
-
const
|
11945
|
+
if ((me = n == null ? void 0 : n.KgTable) != null && me.bodyCell) {
|
11946
|
+
const ve = i.store.getVarGridDetail(i.formID, L.dataIndex);
|
11942
11947
|
return n.KgTable.bodyCell({
|
11943
|
-
row: G,
|
11944
|
-
index: F,
|
11945
|
-
value: z,
|
11946
11948
|
column: L,
|
11947
|
-
|
11949
|
+
index: K,
|
11950
|
+
record: H,
|
11951
|
+
text: W,
|
11952
|
+
value: J,
|
11953
|
+
row: H,
|
11954
|
+
varGridDetail: ve,
|
11948
11955
|
defaultRender: ce
|
11949
11956
|
});
|
11950
11957
|
} else
|
11951
11958
|
return ce;
|
11952
11959
|
}
|
11953
|
-
function
|
11960
|
+
function te() {
|
11954
11961
|
return !u.isReadAutomatically.value && !u.store.getIsRetrieved(i.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
|
11955
11962
|
}
|
11956
11963
|
return () => {
|
11957
11964
|
var L;
|
11958
11965
|
return createVNode("div", {
|
11959
|
-
class:
|
11966
|
+
class: M.value,
|
11960
11967
|
"kg-frm-id": i.formID,
|
11961
11968
|
ref: b
|
11962
11969
|
}, [createVNode(Table, {
|
@@ -11969,55 +11976,55 @@ const KgTable = defineComponent({
|
|
11969
11976
|
pagination: !1,
|
11970
11977
|
showSorterTooltip: !1,
|
11971
11978
|
columns: m.value,
|
11972
|
-
dataSource:
|
11979
|
+
dataSource: O.value,
|
11973
11980
|
loading: v.value,
|
11974
11981
|
rowKey: u.id.value,
|
11975
|
-
rowSelection:
|
11982
|
+
rowSelection: $.value,
|
11976
11983
|
expandColumnWidth: 28,
|
11977
11984
|
expandedRowKeys: p.value,
|
11978
|
-
customRow: (
|
11979
|
-
onClick: (
|
11985
|
+
customRow: (K) => ({
|
11986
|
+
onClick: (H) => P(H, K)
|
11980
11987
|
}),
|
11981
|
-
onResizeColumn:
|
11982
|
-
onChange:
|
11983
|
-
onExpand:
|
11988
|
+
onResizeColumn: Y,
|
11989
|
+
onChange: q,
|
11990
|
+
onExpand: Z
|
11984
11991
|
}, {
|
11985
|
-
headerCell:
|
11986
|
-
bodyCell:
|
11987
|
-
emptyText:
|
11992
|
+
headerCell: fe,
|
11993
|
+
bodyCell: ge,
|
11994
|
+
emptyText: te,
|
11988
11995
|
expandedRowRender: (L = n == null ? void 0 : n.KgTable) == null ? void 0 : L.expandedRowRender,
|
11989
|
-
summary:
|
11996
|
+
summary: pe
|
11990
11997
|
}), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
|
11991
|
-
class:
|
11998
|
+
class: I.value
|
11992
11999
|
}, [createVNode("div", {
|
11993
12000
|
class: "left"
|
11994
12001
|
}, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
11995
|
-
kgShowClearCheck:
|
11996
|
-
kgShowClearTable:
|
11997
|
-
kgShowLocate:
|
11998
|
-
kgTotal:
|
12002
|
+
kgShowClearCheck: F.value.length > 0,
|
12003
|
+
kgShowClearTable: w.total > 0,
|
12004
|
+
kgShowLocate: F.value.length === 1,
|
12005
|
+
kgTotal: F.value.length,
|
11999
12006
|
kgDisabled: T.value
|
12000
12007
|
}, null)]), createVNode("div", {
|
12001
12008
|
class: "right"
|
12002
12009
|
}, [u.isShowBottomRight.value && createVNode(Pagination, {
|
12003
12010
|
size: "default",
|
12004
|
-
current:
|
12005
|
-
pageSize:
|
12006
|
-
pageSizeOptions: u.pageSizeOptions.value.map((
|
12007
|
-
total:
|
12011
|
+
current: w.pageIndex,
|
12012
|
+
pageSize: w.pageSize,
|
12013
|
+
pageSizeOptions: u.pageSizeOptions.value.map((K) => String(K)),
|
12014
|
+
total: w.total,
|
12008
12015
|
showSizeChanger: !0,
|
12009
12016
|
showQuickJumper: !1,
|
12010
12017
|
hideOnSinglePage: !1,
|
12011
|
-
disabled:
|
12018
|
+
disabled: k.value,
|
12012
12019
|
locale: {
|
12013
12020
|
page: ""
|
12014
12021
|
},
|
12015
|
-
showTotal: (
|
12016
|
-
from:
|
12017
|
-
to:
|
12018
|
-
total:
|
12022
|
+
showTotal: (K, H) => o.t("kg.KgTable.totalText", {
|
12023
|
+
from: H[0],
|
12024
|
+
to: H[1],
|
12025
|
+
total: K
|
12019
12026
|
}),
|
12020
|
-
onChange: (
|
12027
|
+
onChange: (K, H) => ne(K, H)
|
12021
12028
|
}, null)])])]);
|
12022
12029
|
};
|
12023
12030
|
}
|
@@ -12236,8 +12243,8 @@ const KgButtonCreate = defineComponent({
|
|
12236
12243
|
attrs: a
|
12237
12244
|
}) {
|
12238
12245
|
const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), u = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), c = computed(() => {
|
12239
|
-
var
|
12240
|
-
return o.isUpdating.value || o.isCopying.value || o.isDeleting.value || s.isRetrieving.value || ((
|
12246
|
+
var k, T, A, E, $, M, I, O;
|
12247
|
+
return o.isUpdating.value || o.isCopying.value || o.isDeleting.value || s.isRetrieving.value || ((k = u.value) == null ? void 0 : k.dis_no_select_flg) === 1 && ((A = (T = s.selectedRows.value) == null ? void 0 : T.length) != null ? A : 0) === 0 || ((E = u.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((M = ($ = s.selectedRows.value) == null ? void 0 : $.length) != null ? M : 0) > 1 || ((I = u.value) == null ? void 0 : I.permission_type) === 2 && !n.p((O = u.value) == null ? void 0 : O.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12241
12248
|
}), g = computed(() => !!o.isCreatingRequesting.value);
|
12242
12249
|
async function p() {
|
12243
12250
|
e.onKgClick && await e.onKgClick() || o.store.setIsCreating(o.formID, !0);
|
@@ -12331,7 +12338,7 @@ const KgButtonCreate = defineComponent({
|
|
12331
12338
|
var _, v;
|
12332
12339
|
return (v = (_ = o.value) == null ? void 0 : _.cmd_method) != null ? v : "GET";
|
12333
12340
|
}), l = computed(() => {
|
12334
|
-
var v, b, y, C,
|
12341
|
+
var v, b, y, C, k, T;
|
12335
12342
|
let _ = {
|
12336
12343
|
...(v = a.model.value) != null ? v : {}
|
12337
12344
|
};
|
@@ -12340,11 +12347,11 @@ const KgButtonCreate = defineComponent({
|
|
12340
12347
|
...KgVarUtil.parseCommandParameter((y = (b = o.value) == null ? void 0 : b.cmd_prm) != null ? y : "")
|
12341
12348
|
}), (C = r.varGridConfig.value) != null && C.cmd_prm && (_ = {
|
12342
12349
|
..._,
|
12343
|
-
...KgVarUtil.parseCommandParameter((
|
12350
|
+
...KgVarUtil.parseCommandParameter((k = r.varGridConfig.value.cmd_prm) != null ? k : "")
|
12344
12351
|
}), ((T = r.varGridConfig.value) == null ? void 0 : T.convert_sort_field_to_under_score_flg) === 1 && _.column && (_.column = snakeCase$1(_.column)), _;
|
12345
12352
|
}), u = computed(() => {
|
12346
|
-
var _, v, b, y, C,
|
12347
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((_ = o.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((b = (v = n.selectedRows.value) == null ? void 0 : v.length) != null ? b : 0) === 0 || ((y = o.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((
|
12353
|
+
var _, v, b, y, C, k, T, A;
|
12354
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((_ = o.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((b = (v = n.selectedRows.value) == null ? void 0 : v.length) != null ? b : 0) === 0 || ((y = o.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((k = (C = n.selectedRows.value) == null ? void 0 : C.length) != null ? k : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !t.p((A = o.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12348
12355
|
}), c = ref(!1);
|
12349
12356
|
async function g() {
|
12350
12357
|
var _, v, b;
|
@@ -12419,8 +12426,8 @@ const KgButtonCreate = defineComponent({
|
|
12419
12426
|
}), v;
|
12420
12427
|
});
|
12421
12428
|
const c = computed(() => {
|
12422
|
-
var v, b, y, C,
|
12423
|
-
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((v = s.value) == null ? void 0 : v.dis_no_select_flg) === 1 && ((y = (b = i.selectedRows.value) == null ? void 0 : b.length) != null ? y : 0) === 0 || ((C = s.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((T = (
|
12429
|
+
var v, b, y, C, k, T, A, E;
|
12430
|
+
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((v = s.value) == null ? void 0 : v.dis_no_select_flg) === 1 && ((y = (b = i.selectedRows.value) == null ? void 0 : b.length) != null ? y : 0) === 0 || ((C = s.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((T = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? T : 0) > 1 || ((A = s.value) == null ? void 0 : A.permission_type) === 2 && !a.p((E = s.value) == null ? void 0 : E.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12424
12431
|
}), g = ref(!1);
|
12425
12432
|
async function p(v) {
|
12426
12433
|
var b, y;
|
@@ -12486,8 +12493,8 @@ const KgButtonCreate = defineComponent({
|
|
12486
12493
|
var p, m;
|
12487
12494
|
return (m = (p = n.value) == null ? void 0 : p.cmd_method) != null ? m : "GET";
|
12488
12495
|
}), s = computed(() => {
|
12489
|
-
var p, m, _, v, b, y, C,
|
12490
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((p = n.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((_ = (m = a.selectedRows.value) == null ? void 0 : m.length) != null ? _ : 0) === 0 || ((v = n.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((y = (b = a.selectedRows.value) == null ? void 0 : b.length) != null ? y : 0) > 1 || ((C = n.value) == null ? void 0 : C.permission_type) === 2 && !t.p((
|
12496
|
+
var p, m, _, v, b, y, C, k;
|
12497
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((p = n.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((_ = (m = a.selectedRows.value) == null ? void 0 : m.length) != null ? _ : 0) === 0 || ((v = n.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((y = (b = a.selectedRows.value) == null ? void 0 : b.length) != null ? y : 0) > 1 || ((C = n.value) == null ? void 0 : C.permission_type) === 2 && !t.p((k = n.value) == null ? void 0 : k.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12491
12498
|
}), l = ref(!1);
|
12492
12499
|
async function u() {
|
12493
12500
|
var p;
|
@@ -12558,16 +12565,16 @@ const KgButtonCreate = defineComponent({
|
|
12558
12565
|
}
|
12559
12566
|
let g = null;
|
12560
12567
|
const p = async () => {
|
12561
|
-
var y, C,
|
12568
|
+
var y, C, k, T, A, E, $;
|
12562
12569
|
g == null || g.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
12563
12570
|
const b = n.selectedRows.value;
|
12564
12571
|
try {
|
12565
12572
|
await httpClient().request({
|
12566
12573
|
method: (C = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? C : "POST",
|
12567
12574
|
url: c,
|
12568
|
-
params: KgVarUtil.parseCommandParameter((T = (
|
12575
|
+
params: KgVarUtil.parseCommandParameter((T = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? T : ""),
|
12569
12576
|
data: b != null ? b : []
|
12570
|
-
}), ((
|
12577
|
+
}), ((A = e.kgButton) == null ? void 0 : A.reload_all_after_done_flg) === 1 && (($ = (E = a.search).value) == null || $.call(E, !0));
|
12571
12578
|
} catch (M) {
|
12572
12579
|
console.error(M);
|
12573
12580
|
} finally {
|
@@ -12653,8 +12660,8 @@ const KgButtonCreate = defineComponent({
|
|
12653
12660
|
}
|
12654
12661
|
});
|
12655
12662
|
const u = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), c = computed(() => {
|
12656
|
-
var y, C,
|
12657
|
-
return o.isCreating.value || o.isCopying.value || o.isDeleting.value || ((y = u.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((
|
12663
|
+
var y, C, k, T, A, E, $, M;
|
12664
|
+
return o.isCreating.value || o.isCopying.value || o.isDeleting.value || ((y = u.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((k = (C = i.selectedRows.value) == null ? void 0 : C.length) != null ? k : 0) === 0 || ((T = u.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((E = (A = i.selectedRows.value) == null ? void 0 : A.length) != null ? E : 0) > 1 || (($ = u.value) == null ? void 0 : $.permission_type) === 2 && !n.p((M = u.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12658
12665
|
});
|
12659
12666
|
async function g() {
|
12660
12667
|
e.onKgClick && await e.onKgClick() || await s.store.emit(o.formID, "updateBeforeClick", {
|
@@ -13272,9 +13279,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13272
13279
|
row: y,
|
13273
13280
|
model: C
|
13274
13281
|
}) => {
|
13275
|
-
var T,
|
13276
|
-
const
|
13277
|
-
switch (l.value =
|
13282
|
+
var T, A, E;
|
13283
|
+
const k = s.store.getSystemVarProfileDetails(s.formID);
|
13284
|
+
switch (l.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
|
13278
13285
|
case _:
|
13279
13286
|
u.value = [];
|
13280
13287
|
break;
|
@@ -13283,24 +13290,24 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13283
13290
|
if (y != null && y.id)
|
13284
13291
|
try {
|
13285
13292
|
i.store.setIsLoading(a.formID, !0);
|
13286
|
-
const
|
13293
|
+
const $ = await QueryByID({
|
13287
13294
|
params: {
|
13288
13295
|
id: y.id
|
13289
13296
|
}
|
13290
13297
|
});
|
13291
|
-
l.value = l.value.map((
|
13292
|
-
var
|
13293
|
-
const O = (
|
13298
|
+
l.value = l.value.map((I) => {
|
13299
|
+
var F;
|
13300
|
+
const O = (F = $ == null ? void 0 : $.varProfileDetails) == null ? void 0 : F.find((w) => w.var_nam === I.var_nam);
|
13294
13301
|
return O ? {
|
13295
|
-
...
|
13302
|
+
...I,
|
13296
13303
|
...O,
|
13297
|
-
id:
|
13298
|
-
} :
|
13304
|
+
id: I.id
|
13305
|
+
} : I;
|
13299
13306
|
});
|
13300
|
-
const M = (
|
13301
|
-
u.value = l.value.filter((
|
13302
|
-
} catch (
|
13303
|
-
throw
|
13307
|
+
const M = (A = (T = $ == null ? void 0 : $.varProfileDetails) == null ? void 0 : T.map((I) => I.var_nam)) != null ? A : [];
|
13308
|
+
u.value = l.value.filter((I) => M.includes(I.var_nam)).map((I) => I.id);
|
13309
|
+
} catch ($) {
|
13310
|
+
throw $;
|
13304
13311
|
} finally {
|
13305
13312
|
i.store.setIsLoading(a.formID, !1);
|
13306
13313
|
}
|
@@ -13310,7 +13317,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13310
13317
|
}
|
13311
13318
|
switch (!0) {
|
13312
13319
|
case b:
|
13313
|
-
C.value.prf_var_nam = ((
|
13320
|
+
C.value.prf_var_nam = ((E = C.value.prf_var_nam) != null ? E : "") + "_COPY";
|
13314
13321
|
break;
|
13315
13322
|
}
|
13316
13323
|
return !1;
|
@@ -13345,7 +13352,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13345
13352
|
model: b,
|
13346
13353
|
varVariableConfig: y,
|
13347
13354
|
varProfileDetail: C,
|
13348
|
-
varSubmitField:
|
13355
|
+
varSubmitField: k
|
13349
13356
|
}) => createVNode(Transfer, {
|
13350
13357
|
dataSource: l.value,
|
13351
13358
|
targetKeys: u.value,
|
@@ -13354,18 +13361,18 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13354
13361
|
showSearch: !0,
|
13355
13362
|
showSelectAll: !1,
|
13356
13363
|
searchPlaceholder: " ",
|
13357
|
-
filterOption: (T,
|
13358
|
-
var
|
13359
|
-
return !!((
|
13364
|
+
filterOption: (T, A) => {
|
13365
|
+
var E;
|
13366
|
+
return !!((E = A.var_nam) != null && E.includes(T));
|
13360
13367
|
}
|
13361
13368
|
}, {
|
13362
13369
|
children: ({
|
13363
13370
|
direction: T,
|
13364
|
-
filteredItems:
|
13365
|
-
selectedKeys:
|
13366
|
-
disabled:
|
13371
|
+
filteredItems: A,
|
13372
|
+
selectedKeys: E,
|
13373
|
+
disabled: $,
|
13367
13374
|
onItemSelectAll: M,
|
13368
|
-
onItemSelect:
|
13375
|
+
onItemSelect: I
|
13369
13376
|
}) => createVNode(Table, {
|
13370
13377
|
pagination: !1,
|
13371
13378
|
class: "kg-flex-table",
|
@@ -13376,15 +13383,15 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13376
13383
|
},
|
13377
13384
|
columns: T === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
13378
13385
|
rowKey: "id",
|
13379
|
-
dataSource:
|
13386
|
+
dataSource: A,
|
13380
13387
|
customRow: (O) => ({
|
13381
|
-
onClick: (
|
13388
|
+
onClick: (F) => m(F, O, T, E)
|
13382
13389
|
}),
|
13383
13390
|
rowSelection: g({
|
13384
|
-
disabled:
|
13385
|
-
selectedKeys:
|
13391
|
+
disabled: $,
|
13392
|
+
selectedKeys: E,
|
13386
13393
|
onItemSelectAll: M,
|
13387
|
-
onItemSelect:
|
13394
|
+
onItemSelect: I
|
13388
13395
|
})
|
13389
13396
|
}, null)
|
13390
13397
|
})
|
@@ -13403,16 +13410,16 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13403
13410
|
getCheckboxProps: (C) => ({
|
13404
13411
|
disabled: _ || C.disabled
|
13405
13412
|
}),
|
13406
|
-
onSelectAll(C,
|
13407
|
-
const T =
|
13408
|
-
key:
|
13409
|
-
}) =>
|
13413
|
+
onSelectAll(C, k) {
|
13414
|
+
const T = k.filter((A) => !A.disabled).map(({
|
13415
|
+
key: A
|
13416
|
+
}) => A);
|
13410
13417
|
b(T, C);
|
13411
13418
|
},
|
13412
13419
|
onSelect({
|
13413
13420
|
key: C
|
13414
|
-
},
|
13415
|
-
y(C,
|
13421
|
+
}, k) {
|
13422
|
+
y(C, k);
|
13416
13423
|
},
|
13417
13424
|
selectedRowKeys: v,
|
13418
13425
|
columnWidth: 32
|
@@ -13598,17 +13605,17 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13598
13605
|
});
|
13599
13606
|
_useLayoutHeaderResizeObserver(), _useFormModel(p, m), computed(() => a.store.getVarProfileConfig(a.formID));
|
13600
13607
|
const _ = computed(() => {
|
13601
|
-
var
|
13602
|
-
return !!(o.isRetrieving.value || ((
|
13608
|
+
var V, P;
|
13609
|
+
return !!(o.isRetrieving.value || ((V = a.varButtonSearch.value) == null ? void 0 : V.permission_type) === 2 && !r.p((P = a.varButtonSearch.value) == null ? void 0 : P.permission_code) || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value);
|
13603
13610
|
}), v = computed(() => !!(o.isRetrieving.value || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value)), b = computed(() => !!o.isRetrieving.value), y = ref({
|
13604
13611
|
visible: !1
|
13605
|
-
}), C = computed(() => m.value.kgHeight === g.value),
|
13606
|
-
var
|
13607
|
-
if (a.t((
|
13612
|
+
}), C = computed(() => m.value.kgHeight === g.value), k = computed(() => {
|
13613
|
+
var V, P, B;
|
13614
|
+
if (a.t((V = a.varButtonSearch.value) == null ? void 0 : V.var_nam).value !== ((P = a.varButtonSearch.value) == null ? void 0 : P.var_nam))
|
13608
13615
|
return a.t((B = a.varButtonSearch.value) == null ? void 0 : B.var_nam).value;
|
13609
13616
|
}), T = computed(() => {
|
13610
|
-
var
|
13611
|
-
switch ((
|
13617
|
+
var V;
|
13618
|
+
switch ((V = a.varButtonSearch.value) == null ? void 0 : V.primary_flg) {
|
13612
13619
|
case 1:
|
13613
13620
|
return !0;
|
13614
13621
|
case 0:
|
@@ -13616,64 +13623,64 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13616
13623
|
default:
|
13617
13624
|
return !0;
|
13618
13625
|
}
|
13619
|
-
}),
|
13620
|
-
let
|
13621
|
-
return i.value && (
|
13626
|
+
}), A = computed(() => !!(a.isRetrievingVar.value || a.isRetrievingVarProfileMaster.value || l.value && !!a.isOtherRequesting.value)), E = computed(() => !!a.isRetrievingVar.value || !!a.isRetrievingVarProfileMaster.value), $ = computed(() => {
|
13627
|
+
let V = "kg-search";
|
13628
|
+
return i.value && (V += " kg-search--visible"), l.value && (V += " kg-search--teleport"), V;
|
13622
13629
|
});
|
13623
13630
|
onUnmounted(() => {
|
13624
13631
|
n.store.dispose(a.formID);
|
13625
13632
|
});
|
13626
|
-
function M(
|
13633
|
+
function M(V = !1) {
|
13627
13634
|
_.value || (i.value ? p.value && p.value.validate().then(() => {
|
13628
13635
|
n.store.emit(a.formID, "search", {
|
13629
|
-
resetPageIndex:
|
13636
|
+
resetPageIndex: V
|
13630
13637
|
});
|
13631
|
-
}).catch((
|
13638
|
+
}).catch((P) => {
|
13632
13639
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
13633
|
-
e:
|
13640
|
+
e: P
|
13634
13641
|
});
|
13635
13642
|
}) : n.store.emit(a.formID, "search", {
|
13636
|
-
resetPageIndex:
|
13643
|
+
resetPageIndex: V
|
13637
13644
|
}));
|
13638
13645
|
}
|
13639
13646
|
n.store.setSearchFn(a.formID, M);
|
13640
|
-
function
|
13641
|
-
var
|
13642
|
-
(
|
13647
|
+
function I() {
|
13648
|
+
var V;
|
13649
|
+
(V = p.value) == null || V.resetFields(), i.value ? p.value && p.value.validate().then(() => {
|
13643
13650
|
n.store.emit(a.formID, "reset");
|
13644
|
-
}).catch((
|
13651
|
+
}).catch((P) => {
|
13645
13652
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
13646
|
-
e:
|
13653
|
+
e: P
|
13647
13654
|
});
|
13648
13655
|
}) : n.store.emit(a.formID, "reset");
|
13649
13656
|
}
|
13650
|
-
n.store.setResetFn(a.formID,
|
13657
|
+
n.store.setResetFn(a.formID, I);
|
13651
13658
|
function O() {
|
13652
13659
|
return M(!0), Promise.resolve(!0);
|
13653
13660
|
}
|
13654
|
-
function
|
13655
|
-
var
|
13661
|
+
function F() {
|
13662
|
+
var V;
|
13656
13663
|
return createVNode("div", {
|
13657
13664
|
class: "title",
|
13658
|
-
onClick:
|
13659
|
-
}, [((
|
13665
|
+
onClick: D
|
13666
|
+
}, [((V = t == null ? void 0 : t.KgSearch) == null ? void 0 : V.left) && createVNode("div", {
|
13660
13667
|
class: "kg-search-title-left",
|
13661
|
-
onClick: (
|
13662
|
-
|
13668
|
+
onClick: (P) => {
|
13669
|
+
P.stopPropagation(), P.preventDefault();
|
13663
13670
|
}
|
13664
13671
|
}, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
|
13665
13672
|
}
|
13666
|
-
function
|
13667
|
-
var
|
13668
|
-
return ((B = (
|
13673
|
+
function w() {
|
13674
|
+
var V, P, B, x;
|
13675
|
+
return ((B = (P = (V = a.varProfileMasters) == null ? void 0 : V.value) == null ? void 0 : P.length) != null ? B : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
13669
13676
|
value: (x = a.currentVarProfileMasterID.value) != null ? x : void 0,
|
13670
|
-
"onUpdate:value": (
|
13677
|
+
"onUpdate:value": (G) => a.store.setCurrentVarProfileMasterID(a.formID, G),
|
13671
13678
|
disabled: v.value,
|
13672
13679
|
class: "kg-search-profile-master-select"
|
13673
13680
|
}, {
|
13674
13681
|
default: () => {
|
13675
|
-
var
|
13676
|
-
return (Y = (
|
13682
|
+
var G, Y;
|
13683
|
+
return (Y = (G = a.varProfileMasters) == null ? void 0 : G.value) == null ? void 0 : Y.map((q) => createVNode(Select.Option, {
|
13677
13684
|
value: q.id
|
13678
13685
|
}, {
|
13679
13686
|
default: () => [a.t(q == null ? void 0 : q.prf_var_nam).value]
|
@@ -13690,17 +13697,17 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13690
13697
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
13691
13698
|
}), createVNode(KgSearchConfigModal, {
|
13692
13699
|
visible: y.value.visible,
|
13693
|
-
"onUpdate:visible": (
|
13700
|
+
"onUpdate:visible": (G) => y.value.visible = G,
|
13694
13701
|
hostFormID: a.formID
|
13695
13702
|
}, null)]);
|
13696
13703
|
}
|
13697
|
-
function
|
13698
|
-
var
|
13699
|
-
return createVNode(Fragment, null, [
|
13704
|
+
function N() {
|
13705
|
+
var V, P, B, x, G;
|
13706
|
+
return createVNode(Fragment, null, [w(), !(((V = a.varButtonSearch.value) == null ? void 0 : V.permission_type) !== 2 && !r.p((P = a.varButtonSearch.value) == null ? void 0 : P.permission_code)) && createVNode(Button, {
|
13700
13707
|
type: "primary",
|
13701
13708
|
ghost: !_.value,
|
13702
13709
|
disabled: _.value,
|
13703
|
-
onClick:
|
13710
|
+
onClick: I,
|
13704
13711
|
class: "kg-search-btn-reset"
|
13705
13712
|
}, {
|
13706
13713
|
default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
|
@@ -13708,29 +13715,29 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13708
13715
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
13709
13716
|
kgVarName: (B = a.varButtonSearch.value) == null ? void 0 : B.var_nam,
|
13710
13717
|
kgIcon: (x = a.varButtonSearch.value) == null ? void 0 : x.icon,
|
13711
|
-
kgText:
|
13712
|
-
kgColor: (
|
13718
|
+
kgText: k.value,
|
13719
|
+
kgColor: (G = a.varButtonSearch.value) == null ? void 0 : G.color,
|
13713
13720
|
kgPrimary: T.value,
|
13714
13721
|
kgLoading: b.value,
|
13715
13722
|
onKgClick: O
|
13716
13723
|
}, null)]);
|
13717
13724
|
}
|
13718
|
-
function
|
13725
|
+
function R() {
|
13719
13726
|
return createVNode(Spin, {
|
13720
|
-
spinning:
|
13727
|
+
spinning: E.value
|
13721
13728
|
}, {
|
13722
13729
|
default: () => {
|
13723
|
-
var
|
13730
|
+
var V;
|
13724
13731
|
return [createVNode(KgForm, {
|
13725
13732
|
ref: p,
|
13726
|
-
model: (
|
13733
|
+
model: (V = n.model.value) != null ? V : {}
|
13727
13734
|
}, {
|
13728
13735
|
default: () => [createVNode(Row, {
|
13729
13736
|
gutter: 6
|
13730
13737
|
}, {
|
13731
13738
|
default: () => {
|
13732
|
-
var
|
13733
|
-
return [(
|
13739
|
+
var P;
|
13740
|
+
return [(P = a.currentVarProfileDetails.value) == null ? void 0 : P.map((B) => createVNode(KgForm.Item, {
|
13734
13741
|
kgVarName: B.var_nam,
|
13735
13742
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
13736
13743
|
onKgSubmit: () => M(!0)
|
@@ -13741,16 +13748,16 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13741
13748
|
}
|
13742
13749
|
});
|
13743
13750
|
}
|
13744
|
-
function
|
13751
|
+
function D() {
|
13745
13752
|
C.value ? m.value.kgHeight = u.value : m.value.kgHeight = g.value;
|
13746
13753
|
}
|
13747
13754
|
return () => createVNode(KgResizable, {
|
13748
13755
|
kgHeight: m.value.kgHeight,
|
13749
|
-
"onUpdate:kgHeight": (
|
13756
|
+
"onUpdate:kgHeight": (V) => m.value.kgHeight = V,
|
13750
13757
|
kgMinHeight: g.value,
|
13751
13758
|
kgMaxHeight: c.value,
|
13752
13759
|
kgDisabled: !s.value,
|
13753
|
-
kgClass:
|
13760
|
+
kgClass: $.value,
|
13754
13761
|
"kg-frm-id": a.formID
|
13755
13762
|
}, {
|
13756
13763
|
default: () => [i.value && createVNode("div", {
|
@@ -13764,17 +13771,17 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13764
13771
|
default: () => [createVNode("div", {
|
13765
13772
|
class: "ant-collapse-header"
|
13766
13773
|
}, [createVNode(Spin, {
|
13767
|
-
spinning:
|
13774
|
+
spinning: A.value
|
13768
13775
|
}, {
|
13769
|
-
default: () => [
|
13776
|
+
default: () => [F(), createVNode("div", {
|
13770
13777
|
class: "ant-collapse-extra"
|
13771
|
-
}, [
|
13778
|
+
}, [N()])]
|
13772
13779
|
})])]
|
13773
13780
|
}), createVNode("div", {
|
13774
13781
|
class: "ant-collapse-content ant-collapse-content-active"
|
13775
13782
|
}, [createVNode("div", {
|
13776
13783
|
class: "ant-collapse-content-box"
|
13777
|
-
}, [
|
13784
|
+
}, [R()])])])])]
|
13778
13785
|
});
|
13779
13786
|
}
|
13780
13787
|
});
|
@@ -13840,13 +13847,13 @@ function useMagicKeys(e = {}) {
|
|
13840
13847
|
}
|
13841
13848
|
function m(v, b) {
|
13842
13849
|
var y, C;
|
13843
|
-
const
|
13850
|
+
const k = (y = v.key) == null ? void 0 : y.toLowerCase(), T = (C = v.code) == null ? void 0 : C.toLowerCase(), A = [T, k].filter(Boolean);
|
13844
13851
|
T && (b ? i.add(v.code) : i.delete(v.code));
|
13845
|
-
for (const
|
13846
|
-
c.add(
|
13847
|
-
|
13848
|
-
i.delete(
|
13849
|
-
}), u.clear()) : typeof v.getModifierState == "function" && v.getModifierState("Meta") && b && [...i, ...
|
13852
|
+
for (const E of A)
|
13853
|
+
c.add(E), g(E, b);
|
13854
|
+
k === "meta" && !b ? (u.forEach((E) => {
|
13855
|
+
i.delete(E), g(E, !1);
|
13856
|
+
}), u.clear()) : typeof v.getModifierState == "function" && v.getModifierState("Meta") && b && [...i, ...A].forEach((E) => u.add(E));
|
13850
13857
|
}
|
13851
13858
|
r && (useEventListener(r, "keydown", (v) => (m(v, !0), o(v)), { passive: n }), useEventListener(r, "keyup", (v) => (m(v, !1), o(v)), { passive: n }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
|
13852
13859
|
const _ = new Proxy(l, {
|
@@ -13855,8 +13862,8 @@ function useMagicKeys(e = {}) {
|
|
13855
13862
|
return Reflect.get(v, b, y);
|
13856
13863
|
if (b = b.toLowerCase(), b in a && (b = a[b]), !(b in l))
|
13857
13864
|
if (/[+_-]/.test(b)) {
|
13858
|
-
const
|
13859
|
-
l[b] = computed(() =>
|
13865
|
+
const k = b.split(/[+_-]/g).map((T) => T.trim());
|
13866
|
+
l[b] = computed(() => k.every((T) => unref(_[T])));
|
13860
13867
|
} else
|
13861
13868
|
l[b] = ref(!1);
|
13862
13869
|
const C = Reflect.get(v, b, y);
|
@@ -14245,112 +14252,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14245
14252
|
columnWidth: 32,
|
14246
14253
|
hideSelectAll: !0,
|
14247
14254
|
selectedRowKeys: g,
|
14248
|
-
onSelect: (
|
14255
|
+
onSelect: (w) => $(w)
|
14249
14256
|
}), m = ref({
|
14250
14257
|
visible: !1
|
14251
14258
|
}), _ = computed(() => !!(unref(c) || unref(n) || unref(o) || unref(i))), v = computed(() => {
|
14252
|
-
var
|
14253
|
-
return !!c.value || ((
|
14259
|
+
var w;
|
14260
|
+
return !!c.value || ((w = a.getSelectedVarCatalog) == null ? void 0 : w.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
14254
14261
|
}), b = computed(() => !!(!unref(c) || unref(n) || unref(o))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
14255
|
-
watch(() => a.getSelectedVar, (
|
14256
|
-
|
14262
|
+
watch(() => a.getSelectedVar, (w) => {
|
14263
|
+
w ? C() : (c.value = null, u.value = [], a.setSelectedVarCatalog(null));
|
14257
14264
|
}, {
|
14258
14265
|
immediate: !0
|
14259
|
-
}), watch(() => a.getSelectedVarCatalog, async (
|
14260
|
-
var
|
14261
|
-
l.value.var_text = (
|
14266
|
+
}), watch(() => a.getSelectedVarCatalog, async (w) => {
|
14267
|
+
var N, R;
|
14268
|
+
l.value.var_text = (N = w == null ? void 0 : w.var_text) != null ? N : "", (R = s.value) == null || R.clearValidate();
|
14262
14269
|
});
|
14263
|
-
async function C(
|
14264
|
-
var
|
14270
|
+
async function C(w = !1) {
|
14271
|
+
var N, R, D;
|
14265
14272
|
n.value = !0;
|
14266
14273
|
try {
|
14267
14274
|
const {
|
14268
|
-
records:
|
14275
|
+
records: V
|
14269
14276
|
} = await List({
|
14270
14277
|
params: {
|
14271
14278
|
pageNo: 1,
|
14272
14279
|
pageSize: 999,
|
14273
14280
|
frm_id: e == null ? void 0 : e.value,
|
14274
|
-
var_nam: (
|
14281
|
+
var_nam: (N = a.getSelectedVar) == null ? void 0 : N.var_nam,
|
14275
14282
|
column: "frm_id,locale_id,cust_lvl",
|
14276
14283
|
order: "asc"
|
14277
14284
|
}
|
14278
14285
|
});
|
14279
|
-
if (c.value = null, u.value =
|
14280
|
-
const
|
14286
|
+
if (c.value = null, u.value = V != null ? V : [], w) {
|
14287
|
+
const P = u.value.find((B) => {
|
14281
14288
|
var x;
|
14282
14289
|
return B.id === ((x = a.getSelectedVarCatalog) == null ? void 0 : x.id);
|
14283
14290
|
});
|
14284
|
-
a.setSelectedVarCatalog(
|
14291
|
+
a.setSelectedVarCatalog(P != null ? P : null), g.value = P != null && P.id ? [P.id] : [];
|
14285
14292
|
} else
|
14286
|
-
a.setSelectedVarCatalog((
|
14287
|
-
} catch (
|
14288
|
-
Logger.debug(
|
14293
|
+
a.setSelectedVarCatalog((R = u.value[0]) != null ? R : null), g.value = (D = u.value[0]) != null && D.id ? [u.value[0].id] : [];
|
14294
|
+
} catch (V) {
|
14295
|
+
Logger.debug(V == null ? void 0 : V.message);
|
14289
14296
|
} finally {
|
14290
14297
|
n.value = !1;
|
14291
14298
|
}
|
14292
14299
|
}
|
14293
|
-
async function
|
14294
|
-
var
|
14300
|
+
async function k() {
|
14301
|
+
var w, N, R;
|
14295
14302
|
try {
|
14296
|
-
o.value = !0, await ((
|
14297
|
-
const
|
14298
|
-
...(
|
14299
|
-
var_text: (
|
14303
|
+
o.value = !0, await ((w = s.value) == null ? void 0 : w.validate());
|
14304
|
+
const D = new VarCatalog({
|
14305
|
+
...(N = a.getSelectedVarCatalog) != null ? N : {},
|
14306
|
+
var_text: (R = l.value) == null ? void 0 : R.var_text
|
14300
14307
|
});
|
14301
|
-
|
14302
|
-
data:
|
14308
|
+
D.id ? D.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (D.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(D, "id"), await Add({
|
14309
|
+
data: D
|
14303
14310
|
}, {
|
14304
14311
|
successMessageMode: "none"
|
14305
14312
|
}), message.success({
|
14306
14313
|
content: t.t("kg.KgVarConfig.createSuccess")
|
14307
14314
|
}), await C()) : (await Edit({
|
14308
|
-
data:
|
14315
|
+
data: D
|
14309
14316
|
}, {
|
14310
14317
|
successMessageMode: "none"
|
14311
14318
|
}), message.success({
|
14312
14319
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
14313
14320
|
}), await C(!0)) : (await Add({
|
14314
|
-
data:
|
14321
|
+
data: D
|
14315
14322
|
}, {
|
14316
14323
|
successMessageMode: "none"
|
14317
14324
|
}), message.success({
|
14318
14325
|
content: t.t("kg.KgVarConfig.createSuccess")
|
14319
14326
|
}), await C()), r.retrieve(e == null ? void 0 : e.value);
|
14320
|
-
} catch (
|
14321
|
-
KgUtil.throwIfNotFormError(
|
14327
|
+
} catch (D) {
|
14328
|
+
KgUtil.throwIfNotFormError(D);
|
14322
14329
|
} finally {
|
14323
14330
|
o.value = !1;
|
14324
14331
|
}
|
14325
14332
|
}
|
14326
14333
|
function T({
|
14327
|
-
isAllForm:
|
14328
|
-
isAllLanguage:
|
14334
|
+
isAllForm: w,
|
14335
|
+
isAllLanguage: N
|
14329
14336
|
}) {
|
14330
|
-
var
|
14337
|
+
var R, D, V;
|
14331
14338
|
c.value = new VarCatalog({
|
14332
14339
|
id: "",
|
14333
14340
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
14334
|
-
grp_nam: (
|
14335
|
-
var_nam: (
|
14336
|
-
frm_id:
|
14337
|
-
locale_id:
|
14341
|
+
grp_nam: (R = a.getSelectedVar) == null ? void 0 : R.grp_nam,
|
14342
|
+
var_nam: (D = a.getSelectedVar) == null ? void 0 : D.var_nam,
|
14343
|
+
frm_id: w || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
14344
|
+
locale_id: N ? "ALL" : (V = t.locale) == null ? void 0 : V.value,
|
14338
14345
|
var_text: ""
|
14339
14346
|
}), u.value = [...u.value, c.value], a.setSelectedVarCatalog(unref(c)), g.value = [""];
|
14340
14347
|
}
|
14341
|
-
function
|
14342
|
-
var
|
14348
|
+
function A() {
|
14349
|
+
var N;
|
14343
14350
|
u.value = without$1(u.value, c.value), c.value = null;
|
14344
|
-
const
|
14345
|
-
a.setSelectedVarCatalog(
|
14351
|
+
const w = (N = u.value[0]) != null ? N : null;
|
14352
|
+
a.setSelectedVarCatalog(w), g.value = w ? [w.id] : [];
|
14346
14353
|
}
|
14347
|
-
function
|
14354
|
+
function E() {
|
14348
14355
|
KgUtil.confirm({
|
14349
14356
|
onOk: async () => {
|
14350
|
-
var
|
14357
|
+
var w;
|
14351
14358
|
await Delete({
|
14352
14359
|
params: {
|
14353
|
-
id: (
|
14360
|
+
id: (w = a.getSelectedVarCatalog) == null ? void 0 : w.id
|
14354
14361
|
}
|
14355
14362
|
}, {
|
14356
14363
|
successMessageMode: "none",
|
@@ -14361,19 +14368,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14361
14368
|
}
|
14362
14369
|
});
|
14363
14370
|
}
|
14364
|
-
function
|
14365
|
-
var
|
14366
|
-
((
|
14371
|
+
function $(w) {
|
14372
|
+
var N;
|
14373
|
+
((N = a.getSelectedVarCatalog) == null ? void 0 : N.id) !== w.id && (unref(c) ? KgUtil.confirm({
|
14367
14374
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
14368
14375
|
onOk: () => {
|
14369
|
-
u.value = without$1(u.value, c.value), c.value = null, a.setSelectedVarCatalog(unref(
|
14376
|
+
u.value = without$1(u.value, c.value), c.value = null, a.setSelectedVarCatalog(unref(w)), g.value = [w.id];
|
14370
14377
|
}
|
14371
|
-
}) : (a.setSelectedVarCatalog(unref(
|
14378
|
+
}) : (a.setSelectedVarCatalog(unref(w)), g.value = [w.id]));
|
14372
14379
|
}
|
14373
14380
|
function M() {
|
14374
14381
|
m.value.visible = !0;
|
14375
14382
|
}
|
14376
|
-
function
|
14383
|
+
function I() {
|
14377
14384
|
return createVNode("div", {
|
14378
14385
|
class: "buttons"
|
14379
14386
|
}, [createVNode(Button, {
|
@@ -14383,7 +14390,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14383
14390
|
}, {
|
14384
14391
|
default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
|
14385
14392
|
}), createVNode(Button, {
|
14386
|
-
onClick:
|
14393
|
+
onClick: E,
|
14387
14394
|
disabled: v.value,
|
14388
14395
|
ghost: !v.value,
|
14389
14396
|
type: "primary",
|
@@ -14393,13 +14400,13 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14393
14400
|
})]);
|
14394
14401
|
}
|
14395
14402
|
function O() {
|
14396
|
-
let
|
14403
|
+
let w, N;
|
14397
14404
|
return createVNode("div", {
|
14398
14405
|
class: "form"
|
14399
14406
|
}, [createVNode(Form, {
|
14400
14407
|
ref: s,
|
14401
14408
|
model: l.value,
|
14402
|
-
onSubmit:
|
14409
|
+
onSubmit: k
|
14403
14410
|
}, {
|
14404
14411
|
default: () => [createVNode(Form.Item, {
|
14405
14412
|
name: "var_text",
|
@@ -14410,7 +14417,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14410
14417
|
}, {
|
14411
14418
|
default: () => [createVNode(Textarea, {
|
14412
14419
|
value: l.value.var_text,
|
14413
|
-
"onUpdate:value": (
|
14420
|
+
"onUpdate:value": (R) => l.value.var_text = R,
|
14414
14421
|
disabled: !a.getSelectedVarCatalog
|
14415
14422
|
}, null), createVNode("button", {
|
14416
14423
|
hidden: !0
|
@@ -14420,26 +14427,26 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14420
14427
|
class: "buttons"
|
14421
14428
|
}, [createVNode(Button, {
|
14422
14429
|
disabled: b.value,
|
14423
|
-
onClick:
|
14424
|
-
}, _isSlot(
|
14425
|
-
default: () => [
|
14430
|
+
onClick: A
|
14431
|
+
}, _isSlot(w = t.t("common.cancelText")) ? w : {
|
14432
|
+
default: () => [w]
|
14426
14433
|
}), createVNode(Button, {
|
14427
14434
|
loading: o.value,
|
14428
14435
|
disabled: y.value,
|
14429
|
-
onClick:
|
14436
|
+
onClick: k,
|
14430
14437
|
type: "primary"
|
14431
|
-
}, _isSlot(
|
14432
|
-
default: () => [
|
14438
|
+
}, _isSlot(N = t.t("common.save")) ? N : {
|
14439
|
+
default: () => [N]
|
14433
14440
|
})])]);
|
14434
14441
|
}
|
14435
|
-
function
|
14436
|
-
var
|
14437
|
-
let
|
14438
|
-
return
|
14442
|
+
function F(w) {
|
14443
|
+
var R;
|
14444
|
+
let N = "";
|
14445
|
+
return w.id || (N += " ant-table-row-create"), w.id === ((R = a.getSelectedVarCatalog) == null ? void 0 : R.id) && (N += " ant-table-row-selected "), N;
|
14439
14446
|
}
|
14440
14447
|
return () => createVNode("div", {
|
14441
14448
|
class: "kg-var-config-modal-var-var-catalog"
|
14442
|
-
}, [
|
14449
|
+
}, [I(), createVNode(Table, {
|
14443
14450
|
pagination: !1,
|
14444
14451
|
class: "kg-flex-table",
|
14445
14452
|
size: "small",
|
@@ -14451,14 +14458,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14451
14458
|
rowKey: "id",
|
14452
14459
|
dataSource: u.value,
|
14453
14460
|
loading: n.value,
|
14454
|
-
rowClassName:
|
14461
|
+
rowClassName: F,
|
14455
14462
|
rowSelection: p.value,
|
14456
|
-
customRow: (
|
14457
|
-
onClick: () =>
|
14463
|
+
customRow: (w) => ({
|
14464
|
+
onClick: () => $(w)
|
14458
14465
|
})
|
14459
14466
|
}, null), O(), createVNode(KgVarConfigModalVarCreateModal, {
|
14460
14467
|
visible: m.value.visible,
|
14461
|
-
"onUpdate:visible": (
|
14468
|
+
"onUpdate:visible": (w) => m.value.visible = w,
|
14462
14469
|
onKgOk: T
|
14463
14470
|
}, null)]);
|
14464
14471
|
}
|
@@ -14776,8 +14783,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14776
14783
|
customRender: ({
|
14777
14784
|
record: T
|
14778
14785
|
}) => {
|
14779
|
-
var
|
14780
|
-
return T.id === ((
|
14786
|
+
var E;
|
14787
|
+
return T.id === ((E = s.value) == null ? void 0 : E.id) ? createVNode("img", {
|
14781
14788
|
src: WAREHOUSE_1890ff
|
14782
14789
|
}, null) : createVNode("img", {
|
14783
14790
|
src: WAREHOUSE_000000
|
@@ -14787,22 +14794,22 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14787
14794
|
customRender: ({
|
14788
14795
|
record: T
|
14789
14796
|
}) => {
|
14790
|
-
var
|
14791
|
-
const
|
14792
|
-
return createVNode("div", null, [createVNode("div", null, [(
|
14797
|
+
var E, $, M;
|
14798
|
+
const A = T;
|
14799
|
+
return createVNode("div", null, [createVNode("div", null, [(E = A.whDsc) != null ? E : " ", createTextVNode(" - "), ($ = A.whId) != null ? $ : " "]), createVNode("div", {
|
14793
14800
|
class: "address"
|
14794
|
-
}, [(M =
|
14801
|
+
}, [(M = A.adrId) != null ? M : " "])]);
|
14795
14802
|
}
|
14796
14803
|
}]), c = ref([]), g = computed(() => {
|
14797
|
-
var
|
14798
|
-
const T = (
|
14799
|
-
return c.value.filter((
|
14800
|
-
var
|
14801
|
-
return ((M = (
|
14804
|
+
var A;
|
14805
|
+
const T = (A = o.value) == null ? void 0 : A.toUpperCase();
|
14806
|
+
return c.value.filter((E) => {
|
14807
|
+
var $, M, I, O, F, w;
|
14808
|
+
return ((M = ($ = E.whDsc) == null ? void 0 : $.toUpperCase()) == null ? void 0 : M.includes(T)) || ((O = (I = E.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : O.includes(T)) || ((w = (F = E.adrId) == null ? void 0 : F.toUpperCase()) == null ? void 0 : w.includes(T));
|
14802
14809
|
});
|
14803
14810
|
}), p = computed(() => {
|
14804
|
-
var T,
|
14805
|
-
return ((
|
14811
|
+
var T, A;
|
14812
|
+
return ((A = (T = r.option.value) == null ? void 0 : T.KgWarehouse) == null ? void 0 : A.enable) !== !1;
|
14806
14813
|
});
|
14807
14814
|
watch(a.visible, (T) => {
|
14808
14815
|
!p.value || (T ? _() : v());
|
@@ -14852,25 +14859,25 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14852
14859
|
l.value = !1;
|
14853
14860
|
}
|
14854
14861
|
}
|
14855
|
-
function C(T,
|
14856
|
-
var
|
14862
|
+
function C(T, A) {
|
14863
|
+
var E;
|
14857
14864
|
switch (T.detail) {
|
14858
14865
|
case 1:
|
14859
|
-
((
|
14866
|
+
((E = s.value) == null ? void 0 : E.id) === A.id ? s.value = null : s.value = A;
|
14860
14867
|
break;
|
14861
14868
|
case 2:
|
14862
|
-
s.value =
|
14869
|
+
s.value = A, b();
|
14863
14870
|
break;
|
14864
14871
|
}
|
14865
14872
|
}
|
14866
|
-
function
|
14873
|
+
function k() {
|
14867
14874
|
return p.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
|
14868
14875
|
title: r.t("kg.KgWarehouse.warehouse"),
|
14869
14876
|
placement: "bottomRight"
|
14870
14877
|
}, {
|
14871
14878
|
default: () => {
|
14872
|
-
var T,
|
14873
|
-
return [((T = i.value) == null ? void 0 : T.whDsc) || ((
|
14879
|
+
var T, A;
|
14880
|
+
return [((T = i.value) == null ? void 0 : T.whDsc) || ((A = i.value) == null ? void 0 : A.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
14874
14881
|
}
|
14875
14882
|
}), createVNode(KgModal, {
|
14876
14883
|
visible: a.visible.value,
|
@@ -14912,10 +14919,10 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14912
14919
|
columns: u,
|
14913
14920
|
class: "kg-flex-table",
|
14914
14921
|
customRow: (T) => {
|
14915
|
-
var
|
14922
|
+
var A;
|
14916
14923
|
return {
|
14917
|
-
class: T.id === ((
|
14918
|
-
onClick: (
|
14924
|
+
class: T.id === ((A = s.value) == null ? void 0 : A.id) ? "selected" : "",
|
14925
|
+
onClick: (E) => C(E, T)
|
14919
14926
|
};
|
14920
14927
|
}
|
14921
14928
|
}, null)]
|
@@ -14924,7 +14931,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14924
14931
|
return () => createVNode("div", {
|
14925
14932
|
class: n.value,
|
14926
14933
|
onClick: m
|
14927
|
-
}, [
|
14934
|
+
}, [k()]);
|
14928
14935
|
}
|
14929
14936
|
});
|
14930
14937
|
function createKgWarehouseGuard(e, t) {
|