@kengic/vue 0.26.3-beta.3 → 0.26.3-beta.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +1179 -1088
- package/dist/src/components/KgTable/KgTable.d.ts +6 -6
- package/dist/src/consts/i18n/en.d.ts +1 -0
- package/dist/src/consts/i18n/es_ES.d.ts +1 -0
- package/dist/src/consts/i18n/fr_FR.d.ts +1 -0
- package/dist/src/consts/i18n/km_KH.d.ts +1 -0
- package/dist/src/consts/i18n/ko_KR.d.ts +1 -0
- package/dist/src/consts/i18n/vi_VN.d.ts +1 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +1 -0
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -1868,12 +1868,12 @@ function sendQuery(e, a, r, n) {
|
|
1868
1868
|
}), m = [];
|
1869
1869
|
}
|
1870
1870
|
function A(D, y, F) {
|
1871
|
-
const
|
1871
|
+
const L = y !== "success";
|
1872
1872
|
switch (m = m.filter((N) => N !== D), c) {
|
1873
1873
|
case "pending":
|
1874
1874
|
break;
|
1875
1875
|
case "failed":
|
1876
|
-
if (
|
1876
|
+
if (L || !e.dataAfterTimeout)
|
1877
1877
|
return;
|
1878
1878
|
break;
|
1879
1879
|
default:
|
@@ -1883,7 +1883,7 @@ function sendQuery(e, a, r, n) {
|
|
1883
1883
|
d = F, C();
|
1884
1884
|
return;
|
1885
1885
|
}
|
1886
|
-
if (
|
1886
|
+
if (L) {
|
1887
1887
|
d = F, m.length || (o.length ? O() : C());
|
1888
1888
|
return;
|
1889
1889
|
}
|
@@ -1913,8 +1913,8 @@ function sendQuery(e, a, r, n) {
|
|
1913
1913
|
const y = {
|
1914
1914
|
status: "pending",
|
1915
1915
|
resource: D,
|
1916
|
-
callback: (F,
|
1917
|
-
A(y, F,
|
1916
|
+
callback: (F, L) => {
|
1917
|
+
A(y, F, L);
|
1918
1918
|
}
|
1919
1919
|
};
|
1920
1920
|
m.push(y), _++, g = setTimeout(O, e.rotate), r(D, a, y.callback);
|
@@ -2437,7 +2437,7 @@ const emptyIcon = {
|
|
2437
2437
|
...a.data
|
2438
2438
|
}, r);
|
2439
2439
|
}
|
2440
|
-
}), version = "0.26.3-beta.
|
2440
|
+
}), version = "0.26.3-beta.5";
|
2441
2441
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
2442
2442
|
const freeGlobal$1 = freeGlobal;
|
2443
2443
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self, root = freeGlobal$1 || freeSelf || Function("return this")();
|
@@ -3840,8 +3840,8 @@ function debounce(e, a, r) {
|
|
3840
3840
|
return _ = D, l = setTimeout(T, a), d ? b(D) : o;
|
3841
3841
|
}
|
3842
3842
|
function p(D) {
|
3843
|
-
var y = D - c, F = D - _,
|
3844
|
-
return g ? nativeMin$2(
|
3843
|
+
var y = D - c, F = D - _, L = a - y;
|
3844
|
+
return g ? nativeMin$2(L, s - F) : L;
|
3845
3845
|
}
|
3846
3846
|
function E(D) {
|
3847
3847
|
var y = D - c, F = D - _;
|
@@ -4490,6 +4490,7 @@ const ____DEBUG____ = KgLogger.debug, ____INFO_____ = KgLogger.info, ____WARN___
|
|
4490
4490
|
},
|
4491
4491
|
action: "Action",
|
4492
4492
|
add: "Add",
|
4493
|
+
allUser: "Anyone",
|
4493
4494
|
asc: "Ascending",
|
4494
4495
|
button: "Button",
|
4495
4496
|
cancel: "Cancel",
|
@@ -4753,6 +4754,7 @@ const ____DEBUG____ = KgLogger.debug, ____INFO_____ = KgLogger.info, ____WARN___
|
|
4753
4754
|
},
|
4754
4755
|
action: "\u64CD\u4F5C",
|
4755
4756
|
add: "\u65B0\u589E",
|
4757
|
+
allUser: "\u6240\u6709\u7528\u6237",
|
4756
4758
|
asc: "\u5347\u5E8F",
|
4757
4759
|
button: "\u6309\u94AE",
|
4758
4760
|
cancel: "\u53D6\u6D88",
|
@@ -5016,6 +5018,7 @@ const ____DEBUG____ = KgLogger.debug, ____INFO_____ = KgLogger.info, ____WARN___
|
|
5016
5018
|
},
|
5017
5019
|
action: "\u64CD\u4F5C",
|
5018
5020
|
add: "\u65B0\u589E",
|
5021
|
+
allUser: "\u6240\u6709\u7528\u6237",
|
5019
5022
|
asc: "\u5347\u5E8F",
|
5020
5023
|
button: "\u6309\u94AE",
|
5021
5024
|
cancel: "\u53D6\u6D88",
|
@@ -5279,6 +5282,7 @@ const ____DEBUG____ = KgLogger.debug, ____INFO_____ = KgLogger.info, ____WARN___
|
|
5279
5282
|
},
|
5280
5283
|
action: "\u64CD\u4F5C",
|
5281
5284
|
add: "\u65B0\u589E",
|
5285
|
+
allUser: "\u6240\u6709\u7528\u6237",
|
5282
5286
|
asc: "\u5347\u5E8F",
|
5283
5287
|
button: "\u6309\u94AE",
|
5284
5288
|
cancel: "\u53D6\u6D88",
|
@@ -5542,6 +5546,7 @@ const ____DEBUG____ = KgLogger.debug, ____INFO_____ = KgLogger.info, ____WARN___
|
|
5542
5546
|
},
|
5543
5547
|
action: "\u64CD\u4F5C",
|
5544
5548
|
add: "\u65B0\u589E",
|
5549
|
+
allUser: "\u6240\u6709\u7528\u6237",
|
5545
5550
|
asc: "\u5347\u5E8F",
|
5546
5551
|
button: "\u6309\u94AE",
|
5547
5552
|
cancel: "\u53D6\u6D88",
|
@@ -5805,6 +5810,7 @@ const ____DEBUG____ = KgLogger.debug, ____INFO_____ = KgLogger.info, ____WARN___
|
|
5805
5810
|
},
|
5806
5811
|
action: "\u64CD\u4F5C",
|
5807
5812
|
add: "\u65B0\u589E",
|
5813
|
+
allUser: "\u6240\u6709\u7528\u6237",
|
5808
5814
|
asc: "\u5347\u5E8F",
|
5809
5815
|
button: "\u6309\u94AE",
|
5810
5816
|
cancel: "\u53D6\u6D88",
|
@@ -6068,6 +6074,7 @@ const ____DEBUG____ = KgLogger.debug, ____INFO_____ = KgLogger.info, ____WARN___
|
|
6068
6074
|
},
|
6069
6075
|
action: "\u64CD\u4F5C",
|
6070
6076
|
add: "\u65B0\u589E",
|
6077
|
+
allUser: "\u6240\u6709\u7528\u6237",
|
6071
6078
|
asc: "\u5347\u5E8F",
|
6072
6079
|
button: "\u6309\u94AE",
|
6073
6080
|
cancel: "\u53D6\u6D88",
|
@@ -6184,7 +6191,7 @@ class KgRouteUtil {
|
|
6184
6191
|
}), a;
|
6185
6192
|
}
|
6186
6193
|
static transformMenus(a) {
|
6187
|
-
var m, b, v, p, E, T, C, k, A, O, D, y, F,
|
6194
|
+
var m, b, v, p, E, T, C, k, A, O, D, y, F, L, N, V, w, K, P, G, B, x, Y, z, W, $, H, Q, Z, oe, _e, ge, fe, de;
|
6188
6195
|
if (!a)
|
6189
6196
|
return [];
|
6190
6197
|
const r = useKg(), n = (ee) => {
|
@@ -6244,8 +6251,8 @@ class KgRouteUtil {
|
|
6244
6251
|
children: [],
|
6245
6252
|
id: KG_TMP_MENU_ID__WCS,
|
6246
6253
|
key: KG_TMP_MENU_ID__WCS,
|
6247
|
-
name: (
|
6248
|
-
slotTitle: (
|
6254
|
+
name: (L = (F = r.option.value.appTitle) == null ? void 0 : F[KG_APP.WCS]) != null ? L : "WCS",
|
6255
|
+
slotTitle: (V = (N = r.option.value.appTitle) == null ? void 0 : N[KG_APP.WCS]) != null ? V : "WCS",
|
6249
6256
|
sortNo: 3,
|
6250
6257
|
title: (K = (w = r.option.value.appTitle) == null ? void 0 : w[KG_APP.WCS]) != null ? K : "WCS",
|
6251
6258
|
...u,
|
@@ -6254,9 +6261,9 @@ class KgRouteUtil {
|
|
6254
6261
|
}, c = {
|
6255
6262
|
id: KG_TMP_MENU_ID__SYS,
|
6256
6263
|
key: KG_TMP_MENU_ID__SYS,
|
6257
|
-
title: (
|
6264
|
+
title: (G = (P = r.option.value.appTitle) == null ? void 0 : P[KG_APP.SYS]) != null ? G : "\u7CFB\u7EDF\u914D\u7F6E",
|
6258
6265
|
name: (x = (B = r.option.value.appTitle) == null ? void 0 : B[KG_APP.SYS]) != null ? x : "\u7CFB\u7EDF\u914D\u7F6E",
|
6259
|
-
slotTitle: (z = (
|
6266
|
+
slotTitle: (z = (Y = r.option.value.appTitle) == null ? void 0 : Y[KG_APP.SYS]) != null ? z : "\u7CFB\u7EDF\u914D\u7F6E",
|
6260
6267
|
sortNo: 4,
|
6261
6268
|
children: [],
|
6262
6269
|
...u,
|
@@ -6293,11 +6300,11 @@ class KgRouteUtil {
|
|
6293
6300
|
}
|
6294
6301
|
});
|
6295
6302
|
let d = [];
|
6296
|
-
((
|
6303
|
+
(($ = (W = s.children) == null ? void 0 : W.length) != null ? $ : 0 > 0) && d.push(s), ((Q = (H = o.children) == null ? void 0 : H.length) != null ? Q : 0 > 0) && d.push(o), ((oe = (Z = l.children) == null ? void 0 : Z.length) != null ? oe : 0 > 0) && d.push(l), ((ge = (_e = c.children) == null ? void 0 : _e.length) != null ? ge : 0 > 0) && d.push(c), ((de = (fe = _.children) == null ? void 0 : fe.length) != null ? de : 0 > 0) && d.push(_);
|
6297
6304
|
const g = (ee) => {
|
6298
6305
|
ee.sort((ae, q) => {
|
6299
|
-
var
|
6300
|
-
return Number((
|
6306
|
+
var M, I;
|
6307
|
+
return Number((M = ae == null ? void 0 : ae.sortNo) != null ? M : 0) - Number((I = q == null ? void 0 : q.sortNo) != null ? I : 0);
|
6301
6308
|
}), ee.forEach((ae) => {
|
6302
6309
|
ae.children && g(ae.children);
|
6303
6310
|
});
|
@@ -6407,112 +6414,112 @@ var dayjs_min = { exports: {} };
|
|
6407
6414
|
(function(r, n) {
|
6408
6415
|
e.exports = n();
|
6409
6416
|
})(commonjsGlobal, function() {
|
6410
|
-
var r = 1e3, n = 6e4, u = 36e5, s = "millisecond", o = "second", l = "minute", c = "hour", _ = "day", d = "week", g = "month", m = "quarter", b = "year", v = "date", p = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|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(
|
6411
|
-
var
|
6412
|
-
return "[" +
|
6413
|
-
} }, k = function(
|
6414
|
-
var x = String(
|
6415
|
-
return !x || x.length >=
|
6416
|
-
}, A = { s: k, z: function(
|
6417
|
-
var
|
6418
|
-
return (
|
6419
|
-
}, m: function
|
6420
|
-
if (
|
6421
|
-
return -
|
6422
|
-
var x = 12 * (B.year() -
|
6423
|
-
return +(-(x + (B -
|
6424
|
-
}, a: function(
|
6425
|
-
return
|
6426
|
-
}, p: function(
|
6427
|
-
return { M: g, y: b, w: d, d: _, D: v, h: c, m: l, s: o, ms: s, Q: m }[
|
6428
|
-
}, u: function(
|
6429
|
-
return
|
6417
|
+
var r = 1e3, n = 6e4, u = 36e5, s = "millisecond", o = "second", l = "minute", c = "hour", _ = "day", d = "week", g = "month", m = "quarter", b = "year", v = "date", p = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|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(P) {
|
6418
|
+
var G = ["th", "st", "nd", "rd"], B = P % 100;
|
6419
|
+
return "[" + P + (G[(B - 20) % 10] || G[B] || G[0]) + "]";
|
6420
|
+
} }, k = function(P, G, B) {
|
6421
|
+
var x = String(P);
|
6422
|
+
return !x || x.length >= G ? P : "" + Array(G + 1 - x.length).join(B) + P;
|
6423
|
+
}, A = { s: k, z: function(P) {
|
6424
|
+
var G = -P.utcOffset(), B = Math.abs(G), x = Math.floor(B / 60), Y = B % 60;
|
6425
|
+
return (G <= 0 ? "+" : "-") + k(x, 2, "0") + ":" + k(Y, 2, "0");
|
6426
|
+
}, m: function P(G, B) {
|
6427
|
+
if (G.date() < B.date())
|
6428
|
+
return -P(B, G);
|
6429
|
+
var x = 12 * (B.year() - G.year()) + (B.month() - G.month()), Y = G.clone().add(x, g), z = B - Y < 0, W = G.clone().add(x + (z ? -1 : 1), g);
|
6430
|
+
return +(-(x + (B - Y) / (z ? Y - W : W - Y)) || 0);
|
6431
|
+
}, a: function(P) {
|
6432
|
+
return P < 0 ? Math.ceil(P) || 0 : Math.floor(P);
|
6433
|
+
}, p: function(P) {
|
6434
|
+
return { M: g, y: b, w: d, d: _, D: v, h: c, m: l, s: o, ms: s, Q: m }[P] || String(P || "").toLowerCase().replace(/s$/, "");
|
6435
|
+
}, u: function(P) {
|
6436
|
+
return P === void 0;
|
6430
6437
|
} }, O = "en", D = {};
|
6431
6438
|
D[O] = C;
|
6432
|
-
var y = "$isDayjsObject", F = function(
|
6433
|
-
return
|
6434
|
-
},
|
6435
|
-
var
|
6436
|
-
if (
|
6439
|
+
var y = "$isDayjsObject", F = function(P) {
|
6440
|
+
return P instanceof w || !(!P || !P[y]);
|
6441
|
+
}, L = function P(G, B, x) {
|
6442
|
+
var Y;
|
6443
|
+
if (!G)
|
6437
6444
|
return O;
|
6438
|
-
if (typeof
|
6439
|
-
var z =
|
6440
|
-
D[z] && (
|
6441
|
-
var
|
6442
|
-
if (!
|
6443
|
-
return
|
6445
|
+
if (typeof G == "string") {
|
6446
|
+
var z = G.toLowerCase();
|
6447
|
+
D[z] && (Y = z), B && (D[z] = B, Y = z);
|
6448
|
+
var W = G.split("-");
|
6449
|
+
if (!Y && W.length > 1)
|
6450
|
+
return P(W[0]);
|
6444
6451
|
} else {
|
6445
|
-
var
|
6446
|
-
D[
|
6447
|
-
}
|
6448
|
-
return !x &&
|
6449
|
-
}, N = function(
|
6450
|
-
if (F(
|
6451
|
-
return
|
6452
|
-
var B = typeof
|
6453
|
-
return B.date =
|
6454
|
-
},
|
6455
|
-
|
6456
|
-
return N(
|
6452
|
+
var $ = G.name;
|
6453
|
+
D[$] = G, Y = $;
|
6454
|
+
}
|
6455
|
+
return !x && Y && (O = Y), Y || !x && O;
|
6456
|
+
}, N = function(P, G) {
|
6457
|
+
if (F(P))
|
6458
|
+
return P.clone();
|
6459
|
+
var B = typeof G == "object" ? G : {};
|
6460
|
+
return B.date = P, B.args = arguments, new w(B);
|
6461
|
+
}, V = A;
|
6462
|
+
V.l = L, V.i = F, V.w = function(P, G) {
|
6463
|
+
return N(P, { locale: G.$L, utc: G.$u, x: G.$x, $offset: G.$offset });
|
6457
6464
|
};
|
6458
6465
|
var w = function() {
|
6459
|
-
function
|
6460
|
-
this.$L =
|
6466
|
+
function P(B) {
|
6467
|
+
this.$L = L(B.locale, null, !0), this.parse(B), this.$x = this.$x || B.x || {}, this[y] = !0;
|
6461
6468
|
}
|
6462
|
-
var
|
6463
|
-
return
|
6469
|
+
var G = P.prototype;
|
6470
|
+
return G.parse = function(B) {
|
6464
6471
|
this.$d = function(x) {
|
6465
|
-
var
|
6466
|
-
if (
|
6472
|
+
var Y = x.date, z = x.utc;
|
6473
|
+
if (Y === null)
|
6467
6474
|
return new Date(NaN);
|
6468
|
-
if (
|
6475
|
+
if (V.u(Y))
|
6469
6476
|
return new Date();
|
6470
|
-
if (
|
6471
|
-
return new Date(
|
6472
|
-
if (typeof
|
6473
|
-
var
|
6474
|
-
if (
|
6475
|
-
var
|
6476
|
-
return z ? new Date(Date.UTC(
|
6477
|
+
if (Y instanceof Date)
|
6478
|
+
return new Date(Y);
|
6479
|
+
if (typeof Y == "string" && !/Z$/i.test(Y)) {
|
6480
|
+
var W = Y.match(E);
|
6481
|
+
if (W) {
|
6482
|
+
var $ = W[2] - 1 || 0, H = (W[7] || "0").substring(0, 3);
|
6483
|
+
return z ? new Date(Date.UTC(W[1], $, W[3] || 1, W[4] || 0, W[5] || 0, W[6] || 0, H)) : new Date(W[1], $, W[3] || 1, W[4] || 0, W[5] || 0, W[6] || 0, H);
|
6477
6484
|
}
|
6478
6485
|
}
|
6479
|
-
return new Date(
|
6486
|
+
return new Date(Y);
|
6480
6487
|
}(B), this.init();
|
6481
|
-
},
|
6488
|
+
}, G.init = function() {
|
6482
6489
|
var B = this.$d;
|
6483
6490
|
this.$y = B.getFullYear(), this.$M = B.getMonth(), this.$D = B.getDate(), this.$W = B.getDay(), this.$H = B.getHours(), this.$m = B.getMinutes(), this.$s = B.getSeconds(), this.$ms = B.getMilliseconds();
|
6484
|
-
},
|
6485
|
-
return
|
6486
|
-
},
|
6491
|
+
}, G.$utils = function() {
|
6492
|
+
return V;
|
6493
|
+
}, G.isValid = function() {
|
6487
6494
|
return this.$d.toString() !== p;
|
6488
|
-
},
|
6489
|
-
var
|
6490
|
-
return this.startOf(x) <=
|
6491
|
-
},
|
6495
|
+
}, G.isSame = function(B, x) {
|
6496
|
+
var Y = N(B);
|
6497
|
+
return this.startOf(x) <= Y && Y <= this.endOf(x);
|
6498
|
+
}, G.isAfter = function(B, x) {
|
6492
6499
|
return N(B) < this.startOf(x);
|
6493
|
-
},
|
6500
|
+
}, G.isBefore = function(B, x) {
|
6494
6501
|
return this.endOf(x) < N(B);
|
6495
|
-
},
|
6496
|
-
return
|
6497
|
-
},
|
6502
|
+
}, G.$g = function(B, x, Y) {
|
6503
|
+
return V.u(B) ? this[x] : this.set(Y, B);
|
6504
|
+
}, G.unix = function() {
|
6498
6505
|
return Math.floor(this.valueOf() / 1e3);
|
6499
|
-
},
|
6506
|
+
}, G.valueOf = function() {
|
6500
6507
|
return this.$d.getTime();
|
6501
|
-
},
|
6502
|
-
var
|
6503
|
-
var ae =
|
6508
|
+
}, G.startOf = function(B, x) {
|
6509
|
+
var Y = this, z = !!V.u(x) || x, W = V.p(B), $ = function(de, ee) {
|
6510
|
+
var ae = V.w(Y.$u ? Date.UTC(Y.$y, ee, de) : new Date(Y.$y, ee, de), Y);
|
6504
6511
|
return z ? ae : ae.endOf(_);
|
6505
6512
|
}, H = function(de, ee) {
|
6506
|
-
return
|
6513
|
+
return V.w(Y.toDate()[de].apply(Y.toDate("s"), (z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ee)), Y);
|
6507
6514
|
}, Q = this.$W, Z = this.$M, oe = this.$D, _e = "set" + (this.$u ? "UTC" : "");
|
6508
|
-
switch (
|
6515
|
+
switch (W) {
|
6509
6516
|
case b:
|
6510
|
-
return z ?
|
6517
|
+
return z ? $(1, 0) : $(31, 11);
|
6511
6518
|
case g:
|
6512
|
-
return z ?
|
6519
|
+
return z ? $(1, Z) : $(0, Z + 1);
|
6513
6520
|
case d:
|
6514
6521
|
var ge = this.$locale().weekStart || 0, fe = (Q < ge ? Q + 7 : Q) - ge;
|
6515
|
-
return
|
6522
|
+
return $(z ? oe - fe : oe + (6 - fe), Z);
|
6516
6523
|
case _:
|
6517
6524
|
case v:
|
6518
6525
|
return H(_e + "Hours", 0);
|
@@ -6525,50 +6532,50 @@ var dayjs_min = { exports: {} };
|
|
6525
6532
|
default:
|
6526
6533
|
return this.clone();
|
6527
6534
|
}
|
6528
|
-
},
|
6535
|
+
}, G.endOf = function(B) {
|
6529
6536
|
return this.startOf(B, !1);
|
6530
|
-
},
|
6531
|
-
var
|
6537
|
+
}, G.$set = function(B, x) {
|
6538
|
+
var Y, z = V.p(B), W = "set" + (this.$u ? "UTC" : ""), $ = (Y = {}, Y[_] = W + "Date", Y[v] = W + "Date", Y[g] = W + "Month", Y[b] = W + "FullYear", Y[c] = W + "Hours", Y[l] = W + "Minutes", Y[o] = W + "Seconds", Y[s] = W + "Milliseconds", Y)[z], H = z === _ ? this.$D + (x - this.$W) : x;
|
6532
6539
|
if (z === g || z === b) {
|
6533
6540
|
var Q = this.clone().set(v, 1);
|
6534
|
-
Q.$d[
|
6541
|
+
Q.$d[$](H), Q.init(), this.$d = Q.set(v, Math.min(this.$D, Q.daysInMonth())).$d;
|
6535
6542
|
} else
|
6536
|
-
|
6543
|
+
$ && this.$d[$](H);
|
6537
6544
|
return this.init(), this;
|
6538
|
-
},
|
6545
|
+
}, G.set = function(B, x) {
|
6539
6546
|
return this.clone().$set(B, x);
|
6540
|
-
},
|
6541
|
-
return this[
|
6542
|
-
},
|
6543
|
-
var
|
6547
|
+
}, G.get = function(B) {
|
6548
|
+
return this[V.p(B)]();
|
6549
|
+
}, G.add = function(B, x) {
|
6550
|
+
var Y, z = this;
|
6544
6551
|
B = Number(B);
|
6545
|
-
var
|
6552
|
+
var W = V.p(x), $ = function(Z) {
|
6546
6553
|
var oe = N(z);
|
6547
|
-
return
|
6554
|
+
return V.w(oe.date(oe.date() + Math.round(Z * B)), z);
|
6548
6555
|
};
|
6549
|
-
if (
|
6556
|
+
if (W === g)
|
6550
6557
|
return this.set(g, this.$M + B);
|
6551
|
-
if (
|
6558
|
+
if (W === b)
|
6552
6559
|
return this.set(b, this.$y + B);
|
6553
|
-
if (
|
6554
|
-
return
|
6555
|
-
if (
|
6556
|
-
return
|
6557
|
-
var H = (
|
6558
|
-
return
|
6559
|
-
},
|
6560
|
+
if (W === _)
|
6561
|
+
return $(1);
|
6562
|
+
if (W === d)
|
6563
|
+
return $(7);
|
6564
|
+
var H = (Y = {}, Y[l] = n, Y[c] = u, Y[o] = r, Y)[W] || 1, Q = this.$d.getTime() + B * H;
|
6565
|
+
return V.w(Q, this);
|
6566
|
+
}, G.subtract = function(B, x) {
|
6560
6567
|
return this.add(-1 * B, x);
|
6561
|
-
},
|
6562
|
-
var x = this,
|
6568
|
+
}, G.format = function(B) {
|
6569
|
+
var x = this, Y = this.$locale();
|
6563
6570
|
if (!this.isValid())
|
6564
|
-
return
|
6565
|
-
var z = B || "YYYY-MM-DDTHH:mm:ssZ",
|
6566
|
-
return ee && (ee[ae] || ee(x, z)) || q[ae].slice(0,
|
6571
|
+
return Y.invalidDate || p;
|
6572
|
+
var z = B || "YYYY-MM-DDTHH:mm:ssZ", W = V.z(this), $ = this.$H, H = this.$m, Q = this.$M, Z = Y.weekdays, oe = Y.months, _e = Y.meridiem, ge = function(ee, ae, q, M) {
|
6573
|
+
return ee && (ee[ae] || ee(x, z)) || q[ae].slice(0, M);
|
6567
6574
|
}, fe = function(ee) {
|
6568
|
-
return
|
6575
|
+
return V.s($ % 12 || 12, ee, "0");
|
6569
6576
|
}, de = _e || function(ee, ae, q) {
|
6570
|
-
var
|
6571
|
-
return q ?
|
6577
|
+
var M = ee < 12 ? "AM" : "PM";
|
6578
|
+
return q ? M.toLowerCase() : M;
|
6572
6579
|
};
|
6573
6580
|
return z.replace(T, function(ee, ae) {
|
6574
6581
|
return ae || function(q) {
|
@@ -6576,62 +6583,62 @@ var dayjs_min = { exports: {} };
|
|
6576
6583
|
case "YY":
|
6577
6584
|
return String(x.$y).slice(-2);
|
6578
6585
|
case "YYYY":
|
6579
|
-
return
|
6586
|
+
return V.s(x.$y, 4, "0");
|
6580
6587
|
case "M":
|
6581
6588
|
return Q + 1;
|
6582
6589
|
case "MM":
|
6583
|
-
return
|
6590
|
+
return V.s(Q + 1, 2, "0");
|
6584
6591
|
case "MMM":
|
6585
|
-
return ge(
|
6592
|
+
return ge(Y.monthsShort, Q, oe, 3);
|
6586
6593
|
case "MMMM":
|
6587
6594
|
return ge(oe, Q);
|
6588
6595
|
case "D":
|
6589
6596
|
return x.$D;
|
6590
6597
|
case "DD":
|
6591
|
-
return
|
6598
|
+
return V.s(x.$D, 2, "0");
|
6592
6599
|
case "d":
|
6593
6600
|
return String(x.$W);
|
6594
6601
|
case "dd":
|
6595
|
-
return ge(
|
6602
|
+
return ge(Y.weekdaysMin, x.$W, Z, 2);
|
6596
6603
|
case "ddd":
|
6597
|
-
return ge(
|
6604
|
+
return ge(Y.weekdaysShort, x.$W, Z, 3);
|
6598
6605
|
case "dddd":
|
6599
6606
|
return Z[x.$W];
|
6600
6607
|
case "H":
|
6601
|
-
return String(
|
6608
|
+
return String($);
|
6602
6609
|
case "HH":
|
6603
|
-
return
|
6610
|
+
return V.s($, 2, "0");
|
6604
6611
|
case "h":
|
6605
6612
|
return fe(1);
|
6606
6613
|
case "hh":
|
6607
6614
|
return fe(2);
|
6608
6615
|
case "a":
|
6609
|
-
return de(
|
6616
|
+
return de($, H, !0);
|
6610
6617
|
case "A":
|
6611
|
-
return de(
|
6618
|
+
return de($, H, !1);
|
6612
6619
|
case "m":
|
6613
6620
|
return String(H);
|
6614
6621
|
case "mm":
|
6615
|
-
return
|
6622
|
+
return V.s(H, 2, "0");
|
6616
6623
|
case "s":
|
6617
6624
|
return String(x.$s);
|
6618
6625
|
case "ss":
|
6619
|
-
return
|
6626
|
+
return V.s(x.$s, 2, "0");
|
6620
6627
|
case "SSS":
|
6621
|
-
return
|
6628
|
+
return V.s(x.$ms, 3, "0");
|
6622
6629
|
case "Z":
|
6623
|
-
return
|
6630
|
+
return W;
|
6624
6631
|
}
|
6625
6632
|
return null;
|
6626
|
-
}(ee) ||
|
6633
|
+
}(ee) || W.replace(":", "");
|
6627
6634
|
});
|
6628
|
-
},
|
6635
|
+
}, G.utcOffset = function() {
|
6629
6636
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
6630
|
-
},
|
6631
|
-
var z,
|
6632
|
-
return
|
6637
|
+
}, G.diff = function(B, x, Y) {
|
6638
|
+
var z, W = this, $ = V.p(x), H = N(B), Q = (H.utcOffset() - this.utcOffset()) * n, Z = this - H, oe = function() {
|
6639
|
+
return V.m(W, H);
|
6633
6640
|
};
|
6634
|
-
switch (
|
6641
|
+
switch ($) {
|
6635
6642
|
case b:
|
6636
6643
|
z = oe() / 12;
|
6637
6644
|
break;
|
@@ -6659,36 +6666,36 @@ var dayjs_min = { exports: {} };
|
|
6659
6666
|
default:
|
6660
6667
|
z = Z;
|
6661
6668
|
}
|
6662
|
-
return
|
6663
|
-
},
|
6669
|
+
return Y ? z : V.a(z);
|
6670
|
+
}, G.daysInMonth = function() {
|
6664
6671
|
return this.endOf(g).$D;
|
6665
|
-
},
|
6672
|
+
}, G.$locale = function() {
|
6666
6673
|
return D[this.$L];
|
6667
|
-
},
|
6674
|
+
}, G.locale = function(B, x) {
|
6668
6675
|
if (!B)
|
6669
6676
|
return this.$L;
|
6670
|
-
var
|
6671
|
-
return z && (
|
6672
|
-
},
|
6673
|
-
return
|
6674
|
-
},
|
6677
|
+
var Y = this.clone(), z = L(B, x, !0);
|
6678
|
+
return z && (Y.$L = z), Y;
|
6679
|
+
}, G.clone = function() {
|
6680
|
+
return V.w(this.$d, this);
|
6681
|
+
}, G.toDate = function() {
|
6675
6682
|
return new Date(this.valueOf());
|
6676
|
-
},
|
6683
|
+
}, G.toJSON = function() {
|
6677
6684
|
return this.isValid() ? this.toISOString() : null;
|
6678
|
-
},
|
6685
|
+
}, G.toISOString = function() {
|
6679
6686
|
return this.$d.toISOString();
|
6680
|
-
},
|
6687
|
+
}, G.toString = function() {
|
6681
6688
|
return this.$d.toUTCString();
|
6682
|
-
},
|
6689
|
+
}, P;
|
6683
6690
|
}(), K = w.prototype;
|
6684
|
-
return N.prototype = K, [["$ms", s], ["$s", o], ["$m", l], ["$H", c], ["$W", _], ["$M", g], ["$y", b], ["$D", v]].forEach(function(
|
6685
|
-
K[
|
6686
|
-
return this.$g(
|
6691
|
+
return N.prototype = K, [["$ms", s], ["$s", o], ["$m", l], ["$H", c], ["$W", _], ["$M", g], ["$y", b], ["$D", v]].forEach(function(P) {
|
6692
|
+
K[P[1]] = function(G) {
|
6693
|
+
return this.$g(G, P[0], P[1]);
|
6687
6694
|
};
|
6688
|
-
}), N.extend = function(
|
6689
|
-
return
|
6690
|
-
}, N.locale =
|
6691
|
-
return N(1e3 *
|
6695
|
+
}), N.extend = function(P, G) {
|
6696
|
+
return P.$i || (P(G, w, N), P.$i = !0), N;
|
6697
|
+
}, N.locale = L, N.isDayjs = F, N.unix = function(P) {
|
6698
|
+
return N(1e3 * P);
|
6692
6699
|
}, N.en = D[O], N.Ls = D, N.p = {}, N;
|
6693
6700
|
});
|
6694
6701
|
})(dayjs_min);
|
@@ -6736,10 +6743,10 @@ function filesize(e, {
|
|
6736
6743
|
} = {}) {
|
6737
6744
|
let T = v, C = Number(e), k = [], A = 0, O = EMPTY;
|
6738
6745
|
d === SI ? (n = 10, d = JEDEC) : d === IEC || d === JEDEC ? n = 2 : n === 2 ? d = IEC : (n = 10, d = JEDEC);
|
6739
|
-
const D = n === 10 ? 1e3 : 1024, y = m === !0, F = C < 0,
|
6746
|
+
const D = n === 10 ? 1e3 : 1024, y = m === !0, F = C < 0, L = Math[p];
|
6740
6747
|
if (typeof e != "bigint" && isNaN(e))
|
6741
6748
|
throw new TypeError(INVALID_NUMBER);
|
6742
|
-
if (typeof
|
6749
|
+
if (typeof L !== FUNCTION)
|
6743
6750
|
throw new TypeError(INVALID_ROUND);
|
6744
6751
|
if (F && (C = -C), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(C) / Math.log(D)), T < 0 && (T = 0)), T > 8 && (E > 0 && (E += 8 - T), T = 8), g === EXPONENT)
|
6745
6752
|
return T;
|
@@ -6748,11 +6755,11 @@ function filesize(e, {
|
|
6748
6755
|
else {
|
6749
6756
|
A = C / (n === 2 ? Math.pow(2, T * 10) : Math.pow(1e3, T)), a && (A = A * 8, A >= D && T < 8 && (A = A / D, T++));
|
6750
6757
|
const N = Math.pow(10, T > 0 ? u : 0);
|
6751
|
-
k[0] =
|
6758
|
+
k[0] = L(A * N) / N, k[0] === D && T < 8 && v === -1 && (k[0] = 1, T++), O = k[1] = n === 10 && T === 1 ? a ? SI_KBIT : SI_KBYTE : STRINGS.symbol[d][a ? BITS : BYTES][T];
|
6752
6759
|
}
|
6753
6760
|
if (F && (k[0] = -k[0]), E > 0 && (k[0] = k[0].toPrecision(E)), k[1] = _[k[1]] || k[1], s === !0 ? k[0] = k[0].toLocaleString() : s.length > 0 ? k[0] = k[0].toLocaleString(s, o) : l.length > 0 && (k[0] = k[0].toString().replace(PERIOD, l)), r && Number.isInteger(k[0]) === !1 && u > 0) {
|
6754
|
-
const N = l || PERIOD,
|
6755
|
-
k[0] = `${
|
6761
|
+
const N = l || PERIOD, V = k[0].toString().split(N), w = V[1] || EMPTY, K = w.length, P = u - K;
|
6762
|
+
k[0] = `${V[0]}${N}${w.padEnd(K + P, ZERO)}`;
|
6756
6763
|
}
|
6757
6764
|
return y && (k[1] = b[T] ? b[T] : STRINGS.fullform[d][T] + (a ? BIT : BYTE) + (k[0] === 1 ? EMPTY : S)), g === ARRAY ? k : g === OBJECT ? {
|
6758
6765
|
value: k[0],
|
@@ -7277,6 +7284,8 @@ class KgVarUtil {
|
|
7277
7284
|
return C.map((A) => String(A));
|
7278
7285
|
case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.DEFAULT:
|
7279
7286
|
return C;
|
7287
|
+
default:
|
7288
|
+
return C;
|
7280
7289
|
}
|
7281
7290
|
} catch {
|
7282
7291
|
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${m} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
|
@@ -7286,7 +7295,6 @@ class KgVarUtil {
|
|
7286
7295
|
});
|
7287
7296
|
return;
|
7288
7297
|
}
|
7289
|
-
break;
|
7290
7298
|
}
|
7291
7299
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.SELECT: {
|
7292
7300
|
if (isNil(_))
|
@@ -7476,152 +7484,152 @@ class KgVarUtil {
|
|
7476
7484
|
};
|
7477
7485
|
const c = ["pageNo", "pageSize", "column", "order"], _ = useKg(), d = u ? useKgVar(u) : null, g = n ? useKgVar(n) : null, m = s != null ? s : (k = (C = g == null ? void 0 : g.kgSearch) == null ? void 0 : C.dynamicQueryOperatorModel) == null ? void 0 : k.value, b = {};
|
7478
7486
|
Object.keys(l).sort().forEach((F) => {
|
7479
|
-
var K,
|
7487
|
+
var K, P, G, B, x, Y;
|
7480
7488
|
if (c.includes(F) || F.endsWith("_obj"))
|
7481
7489
|
return;
|
7482
|
-
const
|
7490
|
+
const L = n ? (K = g == null ? void 0 : g.store) == null ? void 0 : K.getVarProfileDetail(n, F) : null;
|
7483
7491
|
let N = F;
|
7484
|
-
const
|
7492
|
+
const V = l[F];
|
7485
7493
|
let w = m == null ? void 0 : m[F];
|
7486
|
-
switch ((((
|
7487
|
-
case (!!o && o.isDayjs(
|
7488
|
-
const z =
|
7489
|
-
let
|
7494
|
+
switch ((((G = (P = _.option.value.KgSearch) == null ? void 0 : P.dynamicQuery) == null ? void 0 : G.on) !== !0 || n && ((Y = (x = (B = g == null ? void 0 : g.kgSearch) == null ? void 0 : B.currentVarProfileMaster) == null ? void 0 : x.value) == null ? void 0 : Y.dyn_flg) !== 1) && (w = KG_DYNAMIC_QUERY_OPERATOR.EQ), n && (L == null ? void 0 : L.use_underscore_when_dynamic_query_flag) !== 0 && (N = F.split(".").map((z) => KgUtil.snakeCase(z)).join(".")), !0) {
|
7495
|
+
case (!!o && o.isDayjs(V)): {
|
7496
|
+
const z = V;
|
7497
|
+
let W = n ? KgUtil.parseParamFromDayjs({
|
7490
7498
|
formID: n,
|
7491
7499
|
key: F,
|
7492
7500
|
value: z
|
7493
7501
|
}) : z.format("YYYY-MM-DD HH:mm:ss");
|
7494
7502
|
switch (w) {
|
7495
7503
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
7496
|
-
let
|
7504
|
+
let $ = W, H = "";
|
7497
7505
|
switch (!0) {
|
7498
|
-
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(
|
7506
|
+
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test($): {
|
7499
7507
|
H = z.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
7500
7508
|
break;
|
7501
7509
|
}
|
7502
|
-
case /\d\d-\d\d-\d\d/.test(
|
7503
|
-
|
7510
|
+
case /\d\d-\d\d-\d\d/.test($): {
|
7511
|
+
$ = `${$} 00:00:00`, H = z.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
7504
7512
|
break;
|
7505
7513
|
}
|
7506
|
-
case /\d\d:\d\d:\d\d/.test(
|
7507
|
-
|
7514
|
+
case /\d\d:\d\d:\d\d/.test($): {
|
7515
|
+
$ = z.format("1900-01-01 HH:mm:ss"), H = z.add(1, "second").format("1900-01-01 HH:mm:ss");
|
7508
7516
|
break;
|
7509
7517
|
}
|
7510
7518
|
default:
|
7511
7519
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
7512
7520
|
}
|
7513
|
-
|
7521
|
+
W = ` AND (${N} < '${$}' OR ${N} >= '${H}')`;
|
7514
7522
|
break;
|
7515
7523
|
}
|
7516
7524
|
case KG_DYNAMIC_QUERY_OPERATOR.LT: {
|
7517
|
-
let
|
7525
|
+
let $ = W;
|
7518
7526
|
switch (!0) {
|
7519
|
-
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(
|
7527
|
+
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test($):
|
7520
7528
|
break;
|
7521
|
-
case /\d\d-\d\d-\d\d/.test(
|
7522
|
-
|
7529
|
+
case /\d\d-\d\d-\d\d/.test($): {
|
7530
|
+
$ = `${$} 00:00:00`;
|
7523
7531
|
break;
|
7524
7532
|
}
|
7525
|
-
case /\d\d:\d\d:\d\d/.test(
|
7526
|
-
|
7533
|
+
case /\d\d:\d\d:\d\d/.test($): {
|
7534
|
+
$ = `1900-01-01 ${$}`;
|
7527
7535
|
break;
|
7528
7536
|
}
|
7529
7537
|
default:
|
7530
7538
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
7531
7539
|
}
|
7532
|
-
|
7540
|
+
W = ` AND (${N} < '${$}')`;
|
7533
7541
|
break;
|
7534
7542
|
}
|
7535
7543
|
case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
|
7536
|
-
let
|
7544
|
+
let $ = W, H = "";
|
7537
7545
|
switch (!0) {
|
7538
|
-
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(
|
7546
|
+
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test($): {
|
7539
7547
|
H = z.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
7540
7548
|
break;
|
7541
7549
|
}
|
7542
|
-
case /\d\d-\d\d-\d\d/.test(
|
7550
|
+
case /\d\d-\d\d-\d\d/.test($): {
|
7543
7551
|
H = z.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
7544
7552
|
break;
|
7545
7553
|
}
|
7546
|
-
case /\d\d:\d\d:\d\d/.test(
|
7554
|
+
case /\d\d:\d\d:\d\d/.test($): {
|
7547
7555
|
H = z.add(1, "second").format("1900-01-01 HH:mm:ss");
|
7548
7556
|
break;
|
7549
7557
|
}
|
7550
7558
|
default:
|
7551
7559
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
7552
7560
|
}
|
7553
|
-
|
7561
|
+
W = ` AND (${N} < '${H}')`;
|
7554
7562
|
break;
|
7555
7563
|
}
|
7556
7564
|
case KG_DYNAMIC_QUERY_OPERATOR.GT: {
|
7557
|
-
let
|
7565
|
+
let $ = W, H = "";
|
7558
7566
|
switch (!0) {
|
7559
|
-
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(
|
7567
|
+
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test($): {
|
7560
7568
|
H = z.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
7561
7569
|
break;
|
7562
7570
|
}
|
7563
|
-
case /\d\d-\d\d-\d\d/.test(
|
7571
|
+
case /\d\d-\d\d-\d\d/.test($): {
|
7564
7572
|
H = z.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
7565
7573
|
break;
|
7566
7574
|
}
|
7567
|
-
case /\d\d:\d\d:\d\d/.test(
|
7575
|
+
case /\d\d:\d\d:\d\d/.test($): {
|
7568
7576
|
H = z.add(1, "second").format("1900-01-01 HH:mm:ss");
|
7569
7577
|
break;
|
7570
7578
|
}
|
7571
7579
|
default:
|
7572
7580
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
7573
7581
|
}
|
7574
|
-
|
7582
|
+
W = ` AND (${N} >= '${H}')`;
|
7575
7583
|
break;
|
7576
7584
|
}
|
7577
7585
|
case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
|
7578
|
-
let
|
7586
|
+
let $ = W;
|
7579
7587
|
switch (!0) {
|
7580
|
-
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(
|
7588
|
+
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test($):
|
7581
7589
|
break;
|
7582
|
-
case /\d\d-\d\d-\d\d/.test(
|
7583
|
-
|
7590
|
+
case /\d\d-\d\d-\d\d/.test($): {
|
7591
|
+
$ = `${$} 00:00:00`;
|
7584
7592
|
break;
|
7585
7593
|
}
|
7586
|
-
case /\d\d:\d\d:\d\d/.test(
|
7587
|
-
|
7594
|
+
case /\d\d:\d\d:\d\d/.test($): {
|
7595
|
+
$ = `1900-01-01 ${$}`;
|
7588
7596
|
break;
|
7589
7597
|
}
|
7590
7598
|
default:
|
7591
7599
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
7592
7600
|
}
|
7593
|
-
|
7601
|
+
W = ` AND (${N} >= '${$}')`;
|
7594
7602
|
break;
|
7595
7603
|
}
|
7596
7604
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
7597
7605
|
default: {
|
7598
|
-
let
|
7606
|
+
let $ = W, H = "";
|
7599
7607
|
switch (!0) {
|
7600
|
-
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(
|
7608
|
+
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test($): {
|
7601
7609
|
H = z.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
7602
7610
|
break;
|
7603
7611
|
}
|
7604
|
-
case /\d\d-\d\d-\d\d/.test(
|
7605
|
-
|
7612
|
+
case /\d\d-\d\d-\d\d/.test($): {
|
7613
|
+
$ = `${$} 00:00:00`, H = z.add(1, "day").format("YYYY-MM-DD 00:00:00");
|
7606
7614
|
break;
|
7607
7615
|
}
|
7608
|
-
case /\d\d:\d\d:\d\d/.test(
|
7609
|
-
|
7616
|
+
case /\d\d:\d\d:\d\d/.test($): {
|
7617
|
+
$ = `1900-01-01 ${$}`, H = z.add(1, "second").format("1900-01-01 HH:mm:ss");
|
7610
7618
|
break;
|
7611
7619
|
}
|
7612
7620
|
default:
|
7613
7621
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
7614
7622
|
}
|
7615
|
-
|
7623
|
+
W = ` AND (${N} >= '${$}' AND ${N} < '${H}')`;
|
7616
7624
|
break;
|
7617
7625
|
}
|
7618
7626
|
}
|
7619
|
-
b[F] =
|
7627
|
+
b[F] = W;
|
7620
7628
|
break;
|
7621
7629
|
}
|
7622
|
-
case (!!o && isArray$2(
|
7623
|
-
const z =
|
7624
|
-
let
|
7630
|
+
case (!!o && isArray$2(V) && V.length === 2 && o.isDayjs(V[0]) && o.isDayjs(V[1])): {
|
7631
|
+
const z = V[0], W = V[1];
|
7632
|
+
let $ = "", H = KgUtil.parseParamFromDayjs({
|
7625
7633
|
formID: n,
|
7626
7634
|
key: F,
|
7627
7635
|
value: z
|
@@ -7632,45 +7640,45 @@ class KgVarUtil {
|
|
7632
7640
|
formID: n,
|
7633
7641
|
isPad: !0,
|
7634
7642
|
key: F,
|
7635
|
-
value:
|
7643
|
+
value: W
|
7636
7644
|
});
|
7637
7645
|
break;
|
7638
7646
|
}
|
7639
7647
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(H): {
|
7640
|
-
|
7648
|
+
W.isValid() && (Q = W.add(1, "second").format("YYYY-MM-DD HH:mm:ss"));
|
7641
7649
|
break;
|
7642
7650
|
}
|
7643
7651
|
case /\d\d-\d\d-\d\d/.test(H): {
|
7644
|
-
H = `${H} 00:00:00`,
|
7652
|
+
H = `${H} 00:00:00`, W.isValid() && (Q = W.add(1, "day").format("YYYY-MM-DD 00:00:00"));
|
7645
7653
|
break;
|
7646
7654
|
}
|
7647
7655
|
case /\d\d:\d\d:\d\d/.test(H): {
|
7648
|
-
H = `1900-01-01 ${H}`,
|
7656
|
+
H = `1900-01-01 ${H}`, W.isValid() && (Q = W.add(1, "second").format("1900-01-01 HH:mm:ss"));
|
7649
7657
|
break;
|
7650
7658
|
}
|
7651
7659
|
}
|
7652
|
-
H && (
|
7660
|
+
H && ($ += ` AND (${N} >= N'${H}')`), Q && ($ += ` AND (${N} < N'${Q}')`), b[F] = $;
|
7653
7661
|
break;
|
7654
7662
|
}
|
7655
|
-
case Array.isArray(
|
7656
|
-
if (
|
7663
|
+
case Array.isArray(V): {
|
7664
|
+
if (V.length === 0) {
|
7657
7665
|
b[F] = void 0;
|
7658
7666
|
break;
|
7659
7667
|
}
|
7660
|
-
const z =
|
7668
|
+
const z = V.map((W) => `N'${String(W)}'`).join(", ");
|
7661
7669
|
b[F] = ` AND (${N} IN (${z}))`;
|
7662
7670
|
break;
|
7663
7671
|
}
|
7664
|
-
case isObjectLike(
|
7672
|
+
case isObjectLike(V):
|
7665
7673
|
throw ____ERROR____("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.", {
|
7666
|
-
value:
|
7674
|
+
value: V
|
7667
7675
|
}), new Error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.");
|
7668
|
-
case typeof
|
7669
|
-
if (
|
7676
|
+
case typeof V == "string": {
|
7677
|
+
if (V.trim() === "") {
|
7670
7678
|
b[F] = void 0;
|
7671
7679
|
break;
|
7672
7680
|
}
|
7673
|
-
let z = KgUtil.parseParamFromString(
|
7681
|
+
let z = KgUtil.parseParamFromString(V);
|
7674
7682
|
switch (w) {
|
7675
7683
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
7676
7684
|
z = ` AND (${N} <> N'${z}')`;
|
@@ -7697,48 +7705,48 @@ class KgVarUtil {
|
|
7697
7705
|
b[F] = z;
|
7698
7706
|
break;
|
7699
7707
|
}
|
7700
|
-
case typeof
|
7708
|
+
case typeof V == "number": {
|
7701
7709
|
let z = "";
|
7702
7710
|
switch (w) {
|
7703
7711
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
7704
|
-
z = ` AND (${N} <> ${
|
7712
|
+
z = ` AND (${N} <> ${V})`;
|
7705
7713
|
break;
|
7706
7714
|
}
|
7707
7715
|
case KG_DYNAMIC_QUERY_OPERATOR.LT: {
|
7708
|
-
z = ` AND (${N} < ${
|
7716
|
+
z = ` AND (${N} < ${V})`;
|
7709
7717
|
break;
|
7710
7718
|
}
|
7711
7719
|
case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
|
7712
|
-
z = ` AND (${N} <= ${
|
7720
|
+
z = ` AND (${N} <= ${V})`;
|
7713
7721
|
break;
|
7714
7722
|
}
|
7715
7723
|
case KG_DYNAMIC_QUERY_OPERATOR.GT: {
|
7716
|
-
z = ` AND (${N} > ${
|
7724
|
+
z = ` AND (${N} > ${V})`;
|
7717
7725
|
break;
|
7718
7726
|
}
|
7719
7727
|
case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
|
7720
|
-
z = ` AND (${N} >= ${
|
7728
|
+
z = ` AND (${N} >= ${V})`;
|
7721
7729
|
break;
|
7722
7730
|
}
|
7723
7731
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
7724
7732
|
default: {
|
7725
|
-
z = ` AND (${N} = ${
|
7733
|
+
z = ` AND (${N} = ${V})`;
|
7726
7734
|
break;
|
7727
7735
|
}
|
7728
7736
|
}
|
7729
7737
|
b[F] = z;
|
7730
7738
|
break;
|
7731
7739
|
}
|
7732
|
-
case typeof
|
7740
|
+
case typeof V == "boolean": {
|
7733
7741
|
let z = "";
|
7734
7742
|
switch (w) {
|
7735
7743
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
7736
|
-
z = ` AND (${N} <> ${
|
7744
|
+
z = ` AND (${N} <> ${V ? 1 : 0})`;
|
7737
7745
|
break;
|
7738
7746
|
}
|
7739
7747
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
7740
7748
|
default: {
|
7741
|
-
z = ` AND (${N} = ${
|
7749
|
+
z = ` AND (${N} = ${V ? 1 : 0})`;
|
7742
7750
|
break;
|
7743
7751
|
}
|
7744
7752
|
}
|
@@ -7746,73 +7754,73 @@ class KgVarUtil {
|
|
7746
7754
|
break;
|
7747
7755
|
}
|
7748
7756
|
default: {
|
7749
|
-
b[F] =
|
7757
|
+
b[F] = V;
|
7750
7758
|
break;
|
7751
7759
|
}
|
7752
7760
|
}
|
7753
7761
|
});
|
7754
|
-
let p = `WHERE (1 = 1)${reduce(b, (F,
|
7755
|
-
var w, K,
|
7756
|
-
const
|
7757
|
-
return (
|
7762
|
+
let p = `WHERE (1 = 1)${reduce(b, (F, L, N) => {
|
7763
|
+
var w, K, P, G;
|
7764
|
+
const V = n ? (w = g == null ? void 0 : g.store) == null ? void 0 : w.getVarProfileDetail(n, N) : null;
|
7765
|
+
return (V == null ? void 0 : V.exclude_from_where_sql_flag) === 1 || !V && Object.keys(KgVarUtil.parseRequestParamsToJSON((G = (P = (K = d == null ? void 0 : d.varGridConfig) == null ? void 0 : K.value) == null ? void 0 : P.cmd_prm) != null ? G : "")).includes(N) || !L ? F : F + L;
|
7758
7766
|
}, "")}`;
|
7759
7767
|
p = encodeURIComponent(p);
|
7760
7768
|
let E = "";
|
7761
7769
|
{
|
7762
7770
|
if (!l.column) {
|
7763
|
-
const
|
7771
|
+
const L = (A = d == null ? void 0 : d.currentVarGridDetails) == null ? void 0 : A.value;
|
7764
7772
|
switch (!0) {
|
7765
|
-
case !!(
|
7766
|
-
var
|
7767
|
-
return last(((
|
7773
|
+
case !!(L != null && L.find((N) => {
|
7774
|
+
var V;
|
7775
|
+
return last(((V = N.var_nam) != null ? V : "").split(".")) === "insDt";
|
7768
7776
|
})):
|
7769
7777
|
l.column = "insDt", l.order = "desc";
|
7770
7778
|
break;
|
7771
|
-
case !!(
|
7772
|
-
var
|
7773
|
-
return last(((
|
7779
|
+
case !!(L != null && L.find((N) => {
|
7780
|
+
var V;
|
7781
|
+
return last(((V = N.var_nam) != null ? V : "").split(".")) === "ins_dt";
|
7774
7782
|
})):
|
7775
7783
|
l.column = "ins_dt", l.order = "desc";
|
7776
7784
|
break;
|
7777
|
-
case !!(
|
7778
|
-
var
|
7779
|
-
return last(((
|
7785
|
+
case !!(L != null && L.find((N) => {
|
7786
|
+
var V;
|
7787
|
+
return last(((V = N.var_nam) != null ? V : "").split(".")) === "insdt";
|
7780
7788
|
})):
|
7781
7789
|
l.column = "insdt", l.order = "desc";
|
7782
7790
|
break;
|
7783
|
-
case !!(
|
7784
|
-
var
|
7785
|
-
return last(((
|
7791
|
+
case !!(L != null && L.find((N) => {
|
7792
|
+
var V;
|
7793
|
+
return last(((V = N.var_nam) != null ? V : "").split(".")) === "adddte";
|
7786
7794
|
})):
|
7787
7795
|
l.column = "adddte", l.order = "desc";
|
7788
7796
|
break;
|
7789
|
-
case !!(
|
7790
|
-
var
|
7791
|
-
return last(((
|
7797
|
+
case !!(L != null && L.find((N) => {
|
7798
|
+
var V;
|
7799
|
+
return last(((V = N.var_nam) != null ? V : "").split(".")) === "moddte";
|
7792
7800
|
})):
|
7793
7801
|
l.column = "moddte", l.order = "desc";
|
7794
7802
|
break;
|
7795
|
-
case !!(
|
7796
|
-
var
|
7797
|
-
return last(((
|
7803
|
+
case !!(L != null && L.find((N) => {
|
7804
|
+
var V;
|
7805
|
+
return last(((V = N.var_nam) != null ? V : "").split(".")) === "createTime";
|
7798
7806
|
})):
|
7799
7807
|
l.column = "createTime", l.order = "desc";
|
7800
7808
|
break;
|
7801
|
-
case !!(
|
7802
|
-
var
|
7803
|
-
return last(((
|
7809
|
+
case !!(L != null && L.find((N) => {
|
7810
|
+
var V;
|
7811
|
+
return last(((V = N.var_nam) != null ? V : "").split(".")) === "create_time";
|
7804
7812
|
})):
|
7805
7813
|
l.column = "create_time", l.order = "desc";
|
7806
7814
|
break;
|
7807
|
-
case !!(
|
7808
|
-
var
|
7809
|
-
return last(((
|
7815
|
+
case !!(L != null && L.find((N) => {
|
7816
|
+
var V;
|
7817
|
+
return last(((V = N.var_nam) != null ? V : "").split(".")) === "modifyTime";
|
7810
7818
|
})):
|
7811
7819
|
l.column = "modifyTime", l.order = "desc";
|
7812
7820
|
break;
|
7813
|
-
case !!(
|
7814
|
-
var
|
7815
|
-
return last(((
|
7821
|
+
case !!(L != null && L.find((N) => {
|
7822
|
+
var V;
|
7823
|
+
return last(((V = N.var_nam) != null ? V : "").split(".")) === "modify_time";
|
7816
7824
|
})):
|
7817
7825
|
l.column = "modify_time", l.order = "desc";
|
7818
7826
|
break;
|
@@ -7822,17 +7830,17 @@ class KgVarUtil {
|
|
7822
7830
|
}
|
7823
7831
|
}
|
7824
7832
|
let F = l.column;
|
7825
|
-
((y = d == null ? void 0 : d.varGridConfig.value) == null ? void 0 : y.convert_sort_field_to_under_score_flg) === 1 && (F = l.column.split(".").map((
|
7833
|
+
((y = d == null ? void 0 : d.varGridConfig.value) == null ? void 0 : y.convert_sort_field_to_under_score_flg) === 1 && (F = l.column.split(".").map((L) => KgUtil.snakeCase(L)).join(".")), F && (E = `ORDER BY ${F}`, l.order === "asc" ? E += " ASC" : l.order === "desc" && (E += " DESC"), E = encodeURIComponent(E.trim()));
|
7826
7834
|
}
|
7827
7835
|
let T = "";
|
7828
7836
|
if (!isNil(l.pageNo)) {
|
7829
7837
|
const F = Number.parseInt(l.pageNo);
|
7830
7838
|
if (Number.isNaN(F) || F <= 0)
|
7831
7839
|
throw new Error("\u53C2\u6570 pageNo \u975E\u6CD5.");
|
7832
|
-
const
|
7833
|
-
if (Number.isNaN(
|
7840
|
+
const L = Number.parseInt(l.pageSize);
|
7841
|
+
if (Number.isNaN(L) || L <= 0)
|
7834
7842
|
throw new Error("\u53C2\u6570 pageSize \u975E\u6CD5.");
|
7835
|
-
T = ` OFFSET ${(F - 1) *
|
7843
|
+
T = ` OFFSET ${(F - 1) * L} ROWS FETCH NEXT ${L} ROWS ONLY`;
|
7836
7844
|
}
|
7837
7845
|
return {
|
7838
7846
|
offsetSql: T,
|
@@ -8034,19 +8042,19 @@ function createSetupStore(e, a, r = {}, n, u) {
|
|
8034
8042
|
!o && !v && (process.env.NODE_ENV === "production" || !u) && (n.state.value[e] = {});
|
8035
8043
|
const p = ref({});
|
8036
8044
|
function E(F) {
|
8037
|
-
let
|
8038
|
-
_ = d = !1, process.env.NODE_ENV !== "production" && (b = []), typeof F == "function" ? (F(n.state.value[e]),
|
8045
|
+
let L;
|
8046
|
+
_ = d = !1, process.env.NODE_ENV !== "production" && (b = []), typeof F == "function" ? (F(n.state.value[e]), L = {
|
8039
8047
|
type: MutationType.patchFunction,
|
8040
8048
|
storeId: e,
|
8041
8049
|
events: b
|
8042
|
-
}) : (mergeReactiveObjects(n.state.value[e], F),
|
8050
|
+
}) : (mergeReactiveObjects(n.state.value[e], F), L = {
|
8043
8051
|
type: MutationType.patchObject,
|
8044
8052
|
payload: F,
|
8045
8053
|
storeId: e,
|
8046
8054
|
events: b
|
8047
8055
|
}), nextTick().then(() => {
|
8048
8056
|
_ = !0;
|
8049
|
-
}), d = !0, triggerSubscriptions(g,
|
8057
|
+
}), d = !0, triggerSubscriptions(g, L, n.state.value[e]);
|
8050
8058
|
}
|
8051
8059
|
const T = process.env.NODE_ENV !== "production" ? () => {
|
8052
8060
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
@@ -8054,14 +8062,14 @@ function createSetupStore(e, a, r = {}, n, u) {
|
|
8054
8062
|
function C() {
|
8055
8063
|
s.stop(), g = [], m = [], n._s.delete(e);
|
8056
8064
|
}
|
8057
|
-
function k(F,
|
8065
|
+
function k(F, L) {
|
8058
8066
|
return function() {
|
8059
8067
|
setActivePinia(n);
|
8060
|
-
const N = Array.from(arguments),
|
8068
|
+
const N = Array.from(arguments), V = [], w = [];
|
8061
8069
|
function K(B) {
|
8062
|
-
|
8070
|
+
V.push(B);
|
8063
8071
|
}
|
8064
|
-
function
|
8072
|
+
function P(B) {
|
8065
8073
|
w.push(B);
|
8066
8074
|
}
|
8067
8075
|
triggerSubscriptions(m, {
|
@@ -8069,15 +8077,15 @@ function createSetupStore(e, a, r = {}, n, u) {
|
|
8069
8077
|
name: F,
|
8070
8078
|
store: D,
|
8071
8079
|
after: K,
|
8072
|
-
onError:
|
8080
|
+
onError: P
|
8073
8081
|
});
|
8074
|
-
let
|
8082
|
+
let G;
|
8075
8083
|
try {
|
8076
|
-
|
8084
|
+
G = L.apply(this && this.$id === e ? this : D, N);
|
8077
8085
|
} catch (B) {
|
8078
8086
|
throw triggerSubscriptions(w, B), B;
|
8079
8087
|
}
|
8080
|
-
return
|
8088
|
+
return G instanceof Promise ? G.then((B) => (triggerSubscriptions(V, B), B)).catch((B) => (triggerSubscriptions(w, B), Promise.reject(B))) : (triggerSubscriptions(V, G), G);
|
8081
8089
|
};
|
8082
8090
|
}
|
8083
8091
|
const A = /* @__PURE__ */ markRaw({
|
@@ -8091,14 +8099,14 @@ function createSetupStore(e, a, r = {}, n, u) {
|
|
8091
8099
|
$onAction: addSubscription.bind(null, m),
|
8092
8100
|
$patch: E,
|
8093
8101
|
$reset: T,
|
8094
|
-
$subscribe(F,
|
8095
|
-
const N = addSubscription(g, F,
|
8096
|
-
(
|
8102
|
+
$subscribe(F, L = {}) {
|
8103
|
+
const N = addSubscription(g, F, L.detached, () => V()), V = s.run(() => watch(() => n.state.value[e], (w) => {
|
8104
|
+
(L.flush === "sync" ? d : _) && F({
|
8097
8105
|
storeId: e,
|
8098
8106
|
type: MutationType.direct,
|
8099
8107
|
events: b
|
8100
8108
|
}, w);
|
8101
|
-
}, assign$2({}, c,
|
8109
|
+
}, assign$2({}, c, L)));
|
8102
8110
|
return N;
|
8103
8111
|
},
|
8104
8112
|
$dispose: C
|
@@ -8112,72 +8120,72 @@ function createSetupStore(e, a, r = {}, n, u) {
|
|
8112
8120
|
n._s.set(e, D);
|
8113
8121
|
const y = n._e.run(() => (s = effectScope(), s.run(() => a())));
|
8114
8122
|
for (const F in y) {
|
8115
|
-
const
|
8116
|
-
if (isRef(
|
8117
|
-
process.env.NODE_ENV !== "production" && u ? set(p.value, F, toRef(y, F)) : o || (v && shouldHydrate(
|
8118
|
-
else if (typeof
|
8119
|
-
const N = process.env.NODE_ENV !== "production" && u ?
|
8120
|
-
y[F] = N, process.env.NODE_ENV !== "production" && (A.actions[F] =
|
8123
|
+
const L = y[F];
|
8124
|
+
if (isRef(L) && !isComputed(L) || isReactive(L))
|
8125
|
+
process.env.NODE_ENV !== "production" && u ? set(p.value, F, toRef(y, F)) : o || (v && shouldHydrate(L) && (isRef(L) ? L.value = v[F] : mergeReactiveObjects(L, v[F])), n.state.value[e][F] = L), process.env.NODE_ENV !== "production" && A.state.push(F);
|
8126
|
+
else if (typeof L == "function") {
|
8127
|
+
const N = process.env.NODE_ENV !== "production" && u ? L : k(F, L);
|
8128
|
+
y[F] = N, process.env.NODE_ENV !== "production" && (A.actions[F] = L), l.actions[F] = L;
|
8121
8129
|
} else
|
8122
|
-
process.env.NODE_ENV !== "production" && isComputed(
|
8130
|
+
process.env.NODE_ENV !== "production" && isComputed(L) && (A.getters[F] = o ? r.getters[F] : L, IS_CLIENT && (y._getters || (y._getters = markRaw([]))).push(F));
|
8123
8131
|
}
|
8124
8132
|
if (assign$2(D, y), assign$2(toRaw(D), y), Object.defineProperty(D, "$state", {
|
8125
8133
|
get: () => process.env.NODE_ENV !== "production" && u ? p.value : n.state.value[e],
|
8126
8134
|
set: (F) => {
|
8127
8135
|
if (process.env.NODE_ENV !== "production" && u)
|
8128
8136
|
throw new Error("cannot set hotState");
|
8129
|
-
E((
|
8130
|
-
assign$2(
|
8137
|
+
E((L) => {
|
8138
|
+
assign$2(L, F);
|
8131
8139
|
});
|
8132
8140
|
}
|
8133
8141
|
}), process.env.NODE_ENV !== "production") {
|
8134
|
-
D._hotUpdate = markRaw((
|
8135
|
-
D._hotUpdating = !0,
|
8142
|
+
D._hotUpdate = markRaw((L) => {
|
8143
|
+
D._hotUpdating = !0, L._hmrPayload.state.forEach((N) => {
|
8136
8144
|
if (N in D.$state) {
|
8137
|
-
const
|
8138
|
-
typeof
|
8145
|
+
const V = L.$state[N], w = D.$state[N];
|
8146
|
+
typeof V == "object" && isPlainObject$1(V) && isPlainObject$1(w) ? patchObject(V, w) : L.$state[N] = w;
|
8139
8147
|
}
|
8140
|
-
set(D, N, toRef(
|
8148
|
+
set(D, N, toRef(L.$state, N));
|
8141
8149
|
}), Object.keys(D.$state).forEach((N) => {
|
8142
|
-
N in
|
8143
|
-
}), _ = !1, d = !1, n.state.value[e] = toRef(
|
8150
|
+
N in L.$state || del(D, N);
|
8151
|
+
}), _ = !1, d = !1, n.state.value[e] = toRef(L._hmrPayload, "hotState"), d = !0, nextTick().then(() => {
|
8144
8152
|
_ = !0;
|
8145
8153
|
});
|
8146
|
-
for (const N in
|
8147
|
-
const
|
8148
|
-
set(D, N, k(N,
|
8154
|
+
for (const N in L._hmrPayload.actions) {
|
8155
|
+
const V = L[N];
|
8156
|
+
set(D, N, k(N, V));
|
8149
8157
|
}
|
8150
|
-
for (const N in
|
8151
|
-
const
|
8158
|
+
for (const N in L._hmrPayload.getters) {
|
8159
|
+
const V = L._hmrPayload.getters[N], w = o ? computed(() => (setActivePinia(n), V.call(D, D))) : V;
|
8152
8160
|
set(D, N, w);
|
8153
8161
|
}
|
8154
8162
|
Object.keys(D._hmrPayload.getters).forEach((N) => {
|
8155
|
-
N in
|
8163
|
+
N in L._hmrPayload.getters || del(D, N);
|
8156
8164
|
}), Object.keys(D._hmrPayload.actions).forEach((N) => {
|
8157
|
-
N in
|
8158
|
-
}), D._hmrPayload =
|
8165
|
+
N in L._hmrPayload.actions || del(D, N);
|
8166
|
+
}), D._hmrPayload = L._hmrPayload, D._getters = L._getters, D._hotUpdating = !1;
|
8159
8167
|
});
|
8160
8168
|
const F = {
|
8161
8169
|
writable: !0,
|
8162
8170
|
configurable: !0,
|
8163
8171
|
enumerable: !1
|
8164
8172
|
};
|
8165
|
-
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
8166
|
-
Object.defineProperty(D,
|
8167
|
-
value: D[
|
8173
|
+
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((L) => {
|
8174
|
+
Object.defineProperty(D, L, {
|
8175
|
+
value: D[L],
|
8168
8176
|
...F
|
8169
8177
|
});
|
8170
8178
|
});
|
8171
8179
|
}
|
8172
8180
|
return n._p.forEach((F) => {
|
8173
8181
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
8174
|
-
const
|
8182
|
+
const L = s.run(() => F({
|
8175
8183
|
store: D,
|
8176
8184
|
app: n._a,
|
8177
8185
|
pinia: n,
|
8178
8186
|
options: l
|
8179
8187
|
}));
|
8180
|
-
Object.keys(
|
8188
|
+
Object.keys(L || {}).forEach((N) => D._customProperties.add(N)), assign$2(D, L);
|
8181
8189
|
} else
|
8182
8190
|
assign$2(D, s.run(() => F({
|
8183
8191
|
store: D,
|
@@ -8457,8 +8465,8 @@ function requireCore() {
|
|
8457
8465
|
k[O + y >>> 2] |= F << 24 - (O + y) % 4 * 8;
|
8458
8466
|
}
|
8459
8467
|
else
|
8460
|
-
for (var
|
8461
|
-
k[O +
|
8468
|
+
for (var L = 0; L < D; L += 4)
|
8469
|
+
k[O + L >>> 2] = A[L >>> 2];
|
8462
8470
|
return this.sigBytes += D, this;
|
8463
8471
|
},
|
8464
8472
|
clamp: function() {
|
@@ -8519,15 +8527,15 @@ function requireCore() {
|
|
8519
8527
|
typeof C == "string" && (C = p.parse(C)), this._data.concat(C), this._nDataBytes += C.sigBytes;
|
8520
8528
|
},
|
8521
8529
|
_process: function(C) {
|
8522
|
-
var k, A = this._data, O = A.words, D = A.sigBytes, y = this.blockSize, F = y * 4,
|
8523
|
-
C ?
|
8524
|
-
var N =
|
8530
|
+
var k, A = this._data, O = A.words, D = A.sigBytes, y = this.blockSize, F = y * 4, L = D / F;
|
8531
|
+
C ? L = n.ceil(L) : L = n.max((L | 0) - this._minBufferSize, 0);
|
8532
|
+
var N = L * y, V = n.min(N * 4, D);
|
8525
8533
|
if (N) {
|
8526
8534
|
for (var w = 0; w < N; w += y)
|
8527
8535
|
this._doProcessBlock(O, w);
|
8528
|
-
k = O.splice(0, N), A.sigBytes -=
|
8536
|
+
k = O.splice(0, N), A.sigBytes -= V;
|
8529
8537
|
}
|
8530
|
-
return new g.init(k,
|
8538
|
+
return new g.init(k, V);
|
8531
8539
|
},
|
8532
8540
|
clone: function() {
|
8533
8541
|
var C = d.clone.call(this);
|
@@ -8645,8 +8653,8 @@ function requireMd5() {
|
|
8645
8653
|
var C = E + T, k = p[C];
|
8646
8654
|
p[C] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
8647
8655
|
}
|
8648
|
-
var A = this._hash.words, O = p[E + 0], D = p[E + 1], y = p[E + 2], F = p[E + 3],
|
8649
|
-
|
8656
|
+
var A = this._hash.words, O = p[E + 0], D = p[E + 1], y = p[E + 2], F = p[E + 3], L = p[E + 4], N = p[E + 5], V = p[E + 6], w = p[E + 7], K = p[E + 8], P = p[E + 9], G = p[E + 10], B = p[E + 11], x = p[E + 12], Y = p[E + 13], z = p[E + 14], W = p[E + 15], $ = A[0], H = A[1], Q = A[2], Z = A[3];
|
8657
|
+
$ = g($, H, Q, Z, O, 7, _[0]), Z = g(Z, $, H, Q, D, 12, _[1]), Q = g(Q, Z, $, H, y, 17, _[2]), H = g(H, Q, Z, $, F, 22, _[3]), $ = g($, H, Q, Z, L, 7, _[4]), Z = g(Z, $, H, Q, N, 12, _[5]), Q = g(Q, Z, $, H, V, 17, _[6]), H = g(H, Q, Z, $, w, 22, _[7]), $ = g($, H, Q, Z, K, 7, _[8]), Z = g(Z, $, H, Q, P, 12, _[9]), Q = g(Q, Z, $, H, G, 17, _[10]), H = g(H, Q, Z, $, B, 22, _[11]), $ = g($, H, Q, Z, x, 7, _[12]), Z = g(Z, $, H, Q, Y, 12, _[13]), Q = g(Q, Z, $, H, z, 17, _[14]), H = g(H, Q, Z, $, W, 22, _[15]), $ = m($, H, Q, Z, D, 5, _[16]), Z = m(Z, $, H, Q, V, 9, _[17]), Q = m(Q, Z, $, H, B, 14, _[18]), H = m(H, Q, Z, $, O, 20, _[19]), $ = m($, H, Q, Z, N, 5, _[20]), Z = m(Z, $, H, Q, G, 9, _[21]), Q = m(Q, Z, $, H, W, 14, _[22]), H = m(H, Q, Z, $, L, 20, _[23]), $ = m($, H, Q, Z, P, 5, _[24]), Z = m(Z, $, H, Q, z, 9, _[25]), Q = m(Q, Z, $, H, F, 14, _[26]), H = m(H, Q, Z, $, K, 20, _[27]), $ = m($, H, Q, Z, Y, 5, _[28]), Z = m(Z, $, H, Q, y, 9, _[29]), Q = m(Q, Z, $, H, w, 14, _[30]), H = m(H, Q, Z, $, x, 20, _[31]), $ = b($, H, Q, Z, N, 4, _[32]), Z = b(Z, $, H, Q, K, 11, _[33]), Q = b(Q, Z, $, H, B, 16, _[34]), H = b(H, Q, Z, $, z, 23, _[35]), $ = b($, H, Q, Z, D, 4, _[36]), Z = b(Z, $, H, Q, L, 11, _[37]), Q = b(Q, Z, $, H, w, 16, _[38]), H = b(H, Q, Z, $, G, 23, _[39]), $ = b($, H, Q, Z, Y, 4, _[40]), Z = b(Z, $, H, Q, O, 11, _[41]), Q = b(Q, Z, $, H, F, 16, _[42]), H = b(H, Q, Z, $, V, 23, _[43]), $ = b($, H, Q, Z, P, 4, _[44]), Z = b(Z, $, H, Q, x, 11, _[45]), Q = b(Q, Z, $, H, W, 16, _[46]), H = b(H, Q, Z, $, y, 23, _[47]), $ = v($, H, Q, Z, O, 6, _[48]), Z = v(Z, $, H, Q, w, 10, _[49]), Q = v(Q, Z, $, H, z, 15, _[50]), H = v(H, Q, Z, $, N, 21, _[51]), $ = v($, H, Q, Z, x, 6, _[52]), Z = v(Z, $, H, Q, F, 10, _[53]), Q = v(Q, Z, $, H, G, 15, _[54]), H = v(H, Q, Z, $, D, 21, _[55]), $ = v($, H, Q, Z, K, 6, _[56]), Z = v(Z, $, H, Q, W, 10, _[57]), Q = v(Q, Z, $, H, V, 15, _[58]), H = v(H, Q, Z, $, Y, 21, _[59]), $ = v($, H, Q, Z, L, 6, _[60]), Z = v(Z, $, H, Q, B, 10, _[61]), Q = v(Q, Z, $, H, y, 15, _[62]), H = v(H, Q, Z, $, P, 21, _[63]), A[0] = A[0] + $ | 0, A[1] = A[1] + H | 0, A[2] = A[2] + Q | 0, A[3] = A[3] + Z | 0;
|
8650
8658
|
},
|
8651
8659
|
_doFinalize: function() {
|
8652
8660
|
var p = this._data, E = p.words, T = this._nDataBytes * 8, C = p.sigBytes * 8;
|
@@ -8808,14 +8816,14 @@ function requireCipherCore() {
|
|
8808
8816
|
_.Utf8;
|
8809
8817
|
var d = _.Base64, g = u.algo, m = g.EvpKDF, b = s.Cipher = c.extend({
|
8810
8818
|
cfg: o.extend(),
|
8811
|
-
createEncryptor: function(N,
|
8812
|
-
return this.create(this._ENC_XFORM_MODE, N,
|
8819
|
+
createEncryptor: function(N, V) {
|
8820
|
+
return this.create(this._ENC_XFORM_MODE, N, V);
|
8813
8821
|
},
|
8814
|
-
createDecryptor: function(N,
|
8815
|
-
return this.create(this._DEC_XFORM_MODE, N,
|
8822
|
+
createDecryptor: function(N, V) {
|
8823
|
+
return this.create(this._DEC_XFORM_MODE, N, V);
|
8816
8824
|
},
|
8817
|
-
init: function(N,
|
8818
|
-
this.cfg = this.cfg.extend(w), this._xformMode = N, this._key =
|
8825
|
+
init: function(N, V, w) {
|
8826
|
+
this.cfg = this.cfg.extend(w), this._xformMode = N, this._key = V, this.reset();
|
8819
8827
|
},
|
8820
8828
|
reset: function() {
|
8821
8829
|
c.reset.call(this), this._doReset();
|
@@ -8825,24 +8833,24 @@ function requireCipherCore() {
|
|
8825
8833
|
},
|
8826
8834
|
finalize: function(N) {
|
8827
8835
|
N && this._append(N);
|
8828
|
-
var
|
8829
|
-
return
|
8836
|
+
var V = this._doFinalize();
|
8837
|
+
return V;
|
8830
8838
|
},
|
8831
8839
|
keySize: 128 / 32,
|
8832
8840
|
ivSize: 128 / 32,
|
8833
8841
|
_ENC_XFORM_MODE: 1,
|
8834
8842
|
_DEC_XFORM_MODE: 2,
|
8835
8843
|
_createHelper: function() {
|
8836
|
-
function N(
|
8837
|
-
return typeof
|
8844
|
+
function N(V) {
|
8845
|
+
return typeof V == "string" ? L : D;
|
8838
8846
|
}
|
8839
|
-
return function(
|
8847
|
+
return function(V) {
|
8840
8848
|
return {
|
8841
|
-
encrypt: function(w, K,
|
8842
|
-
return N(K).encrypt(
|
8849
|
+
encrypt: function(w, K, P) {
|
8850
|
+
return N(K).encrypt(V, w, K, P);
|
8843
8851
|
},
|
8844
|
-
decrypt: function(w, K,
|
8845
|
-
return N(K).decrypt(
|
8852
|
+
decrypt: function(w, K, P) {
|
8853
|
+
return N(K).decrypt(V, w, K, P);
|
8846
8854
|
}
|
8847
8855
|
};
|
8848
8856
|
};
|
@@ -8856,45 +8864,45 @@ function requireCipherCore() {
|
|
8856
8864
|
blockSize: 1
|
8857
8865
|
});
|
8858
8866
|
var v = u.mode = {}, p = s.BlockCipherMode = o.extend({
|
8859
|
-
createEncryptor: function(N,
|
8860
|
-
return this.Encryptor.create(N,
|
8867
|
+
createEncryptor: function(N, V) {
|
8868
|
+
return this.Encryptor.create(N, V);
|
8861
8869
|
},
|
8862
|
-
createDecryptor: function(N,
|
8863
|
-
return this.Decryptor.create(N,
|
8870
|
+
createDecryptor: function(N, V) {
|
8871
|
+
return this.Decryptor.create(N, V);
|
8864
8872
|
},
|
8865
|
-
init: function(N,
|
8866
|
-
this._cipher = N, this._iv =
|
8873
|
+
init: function(N, V) {
|
8874
|
+
this._cipher = N, this._iv = V;
|
8867
8875
|
}
|
8868
8876
|
}), E = v.CBC = function() {
|
8869
8877
|
var N = p.extend();
|
8870
8878
|
N.Encryptor = N.extend({
|
8871
8879
|
processBlock: function(w, K) {
|
8872
|
-
var
|
8873
|
-
|
8880
|
+
var P = this._cipher, G = P.blockSize;
|
8881
|
+
V.call(this, w, K, G), P.encryptBlock(w, K), this._prevBlock = w.slice(K, K + G);
|
8874
8882
|
}
|
8875
8883
|
}), N.Decryptor = N.extend({
|
8876
8884
|
processBlock: function(w, K) {
|
8877
|
-
var
|
8878
|
-
|
8885
|
+
var P = this._cipher, G = P.blockSize, B = w.slice(K, K + G);
|
8886
|
+
P.decryptBlock(w, K), V.call(this, w, K, G), this._prevBlock = B;
|
8879
8887
|
}
|
8880
8888
|
});
|
8881
|
-
function
|
8882
|
-
var
|
8883
|
-
B ? (
|
8884
|
-
for (var x = 0; x <
|
8885
|
-
w[K + x] ^=
|
8889
|
+
function V(w, K, P) {
|
8890
|
+
var G, B = this._iv;
|
8891
|
+
B ? (G = B, this._iv = n) : G = this._prevBlock;
|
8892
|
+
for (var x = 0; x < P; x++)
|
8893
|
+
w[K + x] ^= G[x];
|
8886
8894
|
}
|
8887
8895
|
return N;
|
8888
8896
|
}(), T = u.pad = {}, C = T.Pkcs7 = {
|
8889
|
-
pad: function(N,
|
8890
|
-
for (var w =
|
8891
|
-
|
8892
|
-
var x = l.create(
|
8897
|
+
pad: function(N, V) {
|
8898
|
+
for (var w = V * 4, K = w - N.sigBytes % w, P = K << 24 | K << 16 | K << 8 | K, G = [], B = 0; B < K; B += 4)
|
8899
|
+
G.push(P);
|
8900
|
+
var x = l.create(G, K);
|
8893
8901
|
N.concat(x);
|
8894
8902
|
},
|
8895
8903
|
unpad: function(N) {
|
8896
|
-
var
|
8897
|
-
N.sigBytes -=
|
8904
|
+
var V = N.words[N.sigBytes - 1 >>> 2] & 255;
|
8905
|
+
N.sigBytes -= V;
|
8898
8906
|
}
|
8899
8907
|
};
|
8900
8908
|
s.BlockCipher = b.extend({
|
@@ -8905,15 +8913,15 @@ function requireCipherCore() {
|
|
8905
8913
|
reset: function() {
|
8906
8914
|
var N;
|
8907
8915
|
b.reset.call(this);
|
8908
|
-
var
|
8916
|
+
var V = this.cfg, w = V.iv, K = V.mode;
|
8909
8917
|
this._xformMode == this._ENC_XFORM_MODE ? N = K.createEncryptor : (N = K.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == N ? this._mode.init(this, w && w.words) : (this._mode = N.call(K, this, w && w.words), this._mode.__creator = N);
|
8910
8918
|
},
|
8911
|
-
_doProcessBlock: function(N,
|
8912
|
-
this._mode.processBlock(N,
|
8919
|
+
_doProcessBlock: function(N, V) {
|
8920
|
+
this._mode.processBlock(N, V);
|
8913
8921
|
},
|
8914
8922
|
_doFinalize: function() {
|
8915
|
-
var N,
|
8916
|
-
return this._xformMode == this._ENC_XFORM_MODE ? (
|
8923
|
+
var N, V = this.cfg.padding;
|
8924
|
+
return this._xformMode == this._ENC_XFORM_MODE ? (V.pad(this._data, this.blockSize), N = this._process(!0)) : (N = this._process(!0), V.unpad(N)), N;
|
8917
8925
|
},
|
8918
8926
|
blockSize: 128 / 32
|
8919
8927
|
});
|
@@ -8926,22 +8934,22 @@ function requireCipherCore() {
|
|
8926
8934
|
}
|
8927
8935
|
}), A = u.format = {}, O = A.OpenSSL = {
|
8928
8936
|
stringify: function(N) {
|
8929
|
-
var
|
8930
|
-
return K ?
|
8937
|
+
var V, w = N.ciphertext, K = N.salt;
|
8938
|
+
return K ? V = l.create([1398893684, 1701076831]).concat(K).concat(w) : V = w, V.toString(d);
|
8931
8939
|
},
|
8932
8940
|
parse: function(N) {
|
8933
|
-
var
|
8934
|
-
return K[0] == 1398893684 && K[1] == 1701076831 && (
|
8941
|
+
var V, w = d.parse(N), K = w.words;
|
8942
|
+
return K[0] == 1398893684 && K[1] == 1701076831 && (V = l.create(K.slice(2, 4)), K.splice(0, 4), w.sigBytes -= 16), k.create({ ciphertext: w, salt: V });
|
8935
8943
|
}
|
8936
8944
|
}, D = s.SerializableCipher = o.extend({
|
8937
8945
|
cfg: o.extend({
|
8938
8946
|
format: O
|
8939
8947
|
}),
|
8940
|
-
encrypt: function(N,
|
8948
|
+
encrypt: function(N, V, w, K) {
|
8941
8949
|
K = this.cfg.extend(K);
|
8942
|
-
var
|
8950
|
+
var P = N.createEncryptor(w, K), G = P.finalize(V), B = P.cfg;
|
8943
8951
|
return k.create({
|
8944
|
-
ciphertext:
|
8952
|
+
ciphertext: G,
|
8945
8953
|
key: w,
|
8946
8954
|
iv: B.iv,
|
8947
8955
|
algorithm: N,
|
@@ -8951,37 +8959,37 @@ function requireCipherCore() {
|
|
8951
8959
|
formatter: K.format
|
8952
8960
|
});
|
8953
8961
|
},
|
8954
|
-
decrypt: function(N,
|
8955
|
-
K = this.cfg.extend(K),
|
8956
|
-
var
|
8957
|
-
return
|
8962
|
+
decrypt: function(N, V, w, K) {
|
8963
|
+
K = this.cfg.extend(K), V = this._parse(V, K.format);
|
8964
|
+
var P = N.createDecryptor(w, K).finalize(V.ciphertext);
|
8965
|
+
return P;
|
8958
8966
|
},
|
8959
|
-
_parse: function(N,
|
8960
|
-
return typeof N == "string" ?
|
8967
|
+
_parse: function(N, V) {
|
8968
|
+
return typeof N == "string" ? V.parse(N, this) : N;
|
8961
8969
|
}
|
8962
8970
|
}), y = u.kdf = {}, F = y.OpenSSL = {
|
8963
|
-
execute: function(N,
|
8971
|
+
execute: function(N, V, w, K) {
|
8964
8972
|
K || (K = l.random(64 / 8));
|
8965
|
-
var
|
8966
|
-
return
|
8973
|
+
var P = m.create({ keySize: V + w }).compute(N, K), G = l.create(P.words.slice(V), w * 4);
|
8974
|
+
return P.sigBytes = V * 4, k.create({ key: P, iv: G, salt: K });
|
8967
8975
|
}
|
8968
|
-
},
|
8976
|
+
}, L = s.PasswordBasedCipher = D.extend({
|
8969
8977
|
cfg: D.cfg.extend({
|
8970
8978
|
kdf: F
|
8971
8979
|
}),
|
8972
|
-
encrypt: function(N,
|
8980
|
+
encrypt: function(N, V, w, K) {
|
8973
8981
|
K = this.cfg.extend(K);
|
8974
|
-
var
|
8975
|
-
K.iv =
|
8976
|
-
var
|
8977
|
-
return
|
8982
|
+
var P = K.kdf.execute(w, N.keySize, N.ivSize);
|
8983
|
+
K.iv = P.iv;
|
8984
|
+
var G = D.encrypt.call(this, N, V, P.key, K);
|
8985
|
+
return G.mixIn(P), G;
|
8978
8986
|
},
|
8979
|
-
decrypt: function(N,
|
8980
|
-
K = this.cfg.extend(K),
|
8981
|
-
var
|
8982
|
-
K.iv =
|
8983
|
-
var
|
8984
|
-
return
|
8987
|
+
decrypt: function(N, V, w, K) {
|
8988
|
+
K = this.cfg.extend(K), V = this._parse(V, K.format);
|
8989
|
+
var P = K.kdf.execute(w, N.keySize, N.ivSize, V.salt);
|
8990
|
+
K.iv = P.iv;
|
8991
|
+
var G = D.decrypt.call(this, N, V, P.key, K);
|
8992
|
+
return G;
|
8985
8993
|
}
|
8986
8994
|
});
|
8987
8995
|
}();
|
@@ -9000,25 +9008,25 @@ function requireCipherCore() {
|
|
9000
9008
|
for (var O = 0, D = 0, A = 0; A < 256; A++) {
|
9001
9009
|
var y = D ^ D << 1 ^ D << 2 ^ D << 3 ^ D << 4;
|
9002
9010
|
y = y >>> 8 ^ y & 255 ^ 99, l[O] = y, c[y] = O;
|
9003
|
-
var F = k[O],
|
9004
|
-
_[O] =
|
9005
|
-
var
|
9006
|
-
b[y] =
|
9011
|
+
var F = k[O], L = k[F], N = k[L], V = k[y] * 257 ^ y * 16843008;
|
9012
|
+
_[O] = V << 24 | V >>> 8, d[O] = V << 16 | V >>> 16, g[O] = V << 8 | V >>> 24, m[O] = V;
|
9013
|
+
var V = N * 16843009 ^ L * 65537 ^ F * 257 ^ O * 16843008;
|
9014
|
+
b[y] = V << 24 | V >>> 8, v[y] = V << 16 | V >>> 16, p[y] = V << 8 | V >>> 24, E[y] = V, O ? (O = F ^ k[k[k[N ^ F]]], D ^= k[k[D]]) : O = D = 1;
|
9007
9015
|
}
|
9008
9016
|
})();
|
9009
9017
|
var T = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], C = o.AES = s.extend({
|
9010
9018
|
_doReset: function() {
|
9011
9019
|
var k;
|
9012
9020
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
9013
|
-
for (var A = this._keyPriorReset = this._key, O = A.words, D = A.sigBytes / 4, y = this._nRounds = D + 6, F = (y + 1) * 4,
|
9014
|
-
N < D ?
|
9015
|
-
for (var
|
9021
|
+
for (var A = this._keyPriorReset = this._key, O = A.words, D = A.sigBytes / 4, y = this._nRounds = D + 6, F = (y + 1) * 4, L = this._keySchedule = [], N = 0; N < F; N++)
|
9022
|
+
N < D ? L[N] = O[N] : (k = L[N - 1], N % D ? D > 6 && N % D == 4 && (k = l[k >>> 24] << 24 | l[k >>> 16 & 255] << 16 | l[k >>> 8 & 255] << 8 | l[k & 255]) : (k = k << 8 | k >>> 24, k = l[k >>> 24] << 24 | l[k >>> 16 & 255] << 16 | l[k >>> 8 & 255] << 8 | l[k & 255], k ^= T[N / D | 0] << 24), L[N] = L[N - D] ^ k);
|
9023
|
+
for (var V = this._invKeySchedule = [], w = 0; w < F; w++) {
|
9016
9024
|
var N = F - w;
|
9017
9025
|
if (w % 4)
|
9018
|
-
var k =
|
9026
|
+
var k = L[N];
|
9019
9027
|
else
|
9020
|
-
var k =
|
9021
|
-
w < 4 || N <= 4 ?
|
9028
|
+
var k = L[N - 4];
|
9029
|
+
w < 4 || N <= 4 ? V[w] = k : V[w] = b[l[k >>> 24]] ^ v[l[k >>> 16 & 255]] ^ p[l[k >>> 8 & 255]] ^ E[l[k & 255]];
|
9022
9030
|
}
|
9023
9031
|
}
|
9024
9032
|
},
|
@@ -9031,13 +9039,13 @@ function requireCipherCore() {
|
|
9031
9039
|
var O = k[A + 1];
|
9032
9040
|
k[A + 1] = k[A + 3], k[A + 3] = O;
|
9033
9041
|
},
|
9034
|
-
_doCryptBlock: function(k, A, O, D, y, F,
|
9035
|
-
for (var
|
9036
|
-
var
|
9037
|
-
w =
|
9042
|
+
_doCryptBlock: function(k, A, O, D, y, F, L, N) {
|
9043
|
+
for (var V = this._nRounds, w = k[A] ^ O[0], K = k[A + 1] ^ O[1], P = k[A + 2] ^ O[2], G = k[A + 3] ^ O[3], B = 4, x = 1; x < V; x++) {
|
9044
|
+
var Y = D[w >>> 24] ^ y[K >>> 16 & 255] ^ F[P >>> 8 & 255] ^ L[G & 255] ^ O[B++], z = D[K >>> 24] ^ y[P >>> 16 & 255] ^ F[G >>> 8 & 255] ^ L[w & 255] ^ O[B++], W = D[P >>> 24] ^ y[G >>> 16 & 255] ^ F[w >>> 8 & 255] ^ L[K & 255] ^ O[B++], $ = D[G >>> 24] ^ y[w >>> 16 & 255] ^ F[K >>> 8 & 255] ^ L[P & 255] ^ O[B++];
|
9045
|
+
w = Y, K = z, P = W, G = $;
|
9038
9046
|
}
|
9039
|
-
var
|
9040
|
-
k[A] =
|
9047
|
+
var Y = (N[w >>> 24] << 24 | N[K >>> 16 & 255] << 16 | N[P >>> 8 & 255] << 8 | N[G & 255]) ^ O[B++], z = (N[K >>> 24] << 24 | N[P >>> 16 & 255] << 16 | N[G >>> 8 & 255] << 8 | N[w & 255]) ^ O[B++], W = (N[P >>> 24] << 24 | N[G >>> 16 & 255] << 16 | N[w >>> 8 & 255] << 8 | N[K & 255]) ^ O[B++], $ = (N[G >>> 24] << 24 | N[w >>> 16 & 255] << 16 | N[K >>> 8 & 255] << 8 | N[P & 255]) ^ O[B++];
|
9048
|
+
k[A] = Y, k[A + 1] = z, k[A + 2] = W, k[A + 3] = $;
|
9041
9049
|
},
|
9042
9050
|
keySize: 256 / 32
|
9043
9051
|
});
|
@@ -9994,325 +10002,325 @@ function createTokenizer(e, a = {}) {
|
|
9994
10002
|
inLinked: !1,
|
9995
10003
|
text: ""
|
9996
10004
|
}, _ = () => c, { onError: d } = a;
|
9997
|
-
function g(
|
10005
|
+
function g(M, I, U, ...J) {
|
9998
10006
|
const re = _();
|
9999
10007
|
if (I.column += U, I.offset += U, d) {
|
10000
|
-
const ne = createLocation(re.startLoc, I), ie = createCompileError(
|
10008
|
+
const ne = createLocation(re.startLoc, I), ie = createCompileError(M, ne, {
|
10001
10009
|
domain: ERROR_DOMAIN$1,
|
10002
10010
|
args: J
|
10003
10011
|
});
|
10004
10012
|
d(ie);
|
10005
10013
|
}
|
10006
10014
|
}
|
10007
|
-
function m(
|
10008
|
-
|
10015
|
+
function m(M, I, U) {
|
10016
|
+
M.endLoc = s(), M.currentType = I;
|
10009
10017
|
const J = { type: I };
|
10010
|
-
return r && (J.loc = createLocation(
|
10018
|
+
return r && (J.loc = createLocation(M.startLoc, M.endLoc)), U != null && (J.value = U), J;
|
10011
10019
|
}
|
10012
|
-
const b = (
|
10013
|
-
function v(
|
10014
|
-
return
|
10020
|
+
const b = (M) => m(M, 14);
|
10021
|
+
function v(M, I) {
|
10022
|
+
return M.currentChar() === I ? (M.next(), I) : (g(CompileErrorCodes.EXPECTED_TOKEN, s(), 0, I), "");
|
10015
10023
|
}
|
10016
|
-
function p(
|
10024
|
+
function p(M) {
|
10017
10025
|
let I = "";
|
10018
|
-
for (;
|
10019
|
-
I +=
|
10026
|
+
for (; M.currentPeek() === CHAR_SP || M.currentPeek() === CHAR_LF; )
|
10027
|
+
I += M.currentPeek(), M.peek();
|
10020
10028
|
return I;
|
10021
10029
|
}
|
10022
|
-
function E(
|
10023
|
-
const I = p(
|
10024
|
-
return
|
10030
|
+
function E(M) {
|
10031
|
+
const I = p(M);
|
10032
|
+
return M.skipToPeek(), I;
|
10025
10033
|
}
|
10026
|
-
function T(
|
10027
|
-
if (
|
10034
|
+
function T(M) {
|
10035
|
+
if (M === EOF)
|
10028
10036
|
return !1;
|
10029
|
-
const I =
|
10037
|
+
const I = M.charCodeAt(0);
|
10030
10038
|
return I >= 97 && I <= 122 || I >= 65 && I <= 90 || I === 95;
|
10031
10039
|
}
|
10032
|
-
function C(
|
10033
|
-
if (
|
10040
|
+
function C(M) {
|
10041
|
+
if (M === EOF)
|
10034
10042
|
return !1;
|
10035
|
-
const I =
|
10043
|
+
const I = M.charCodeAt(0);
|
10036
10044
|
return I >= 48 && I <= 57;
|
10037
10045
|
}
|
10038
|
-
function k(
|
10046
|
+
function k(M, I) {
|
10039
10047
|
const { currentType: U } = I;
|
10040
10048
|
if (U !== 2)
|
10041
10049
|
return !1;
|
10042
|
-
p(
|
10043
|
-
const J = T(
|
10044
|
-
return
|
10050
|
+
p(M);
|
10051
|
+
const J = T(M.currentPeek());
|
10052
|
+
return M.resetPeek(), J;
|
10045
10053
|
}
|
10046
|
-
function A(
|
10054
|
+
function A(M, I) {
|
10047
10055
|
const { currentType: U } = I;
|
10048
10056
|
if (U !== 2)
|
10049
10057
|
return !1;
|
10050
|
-
p(
|
10051
|
-
const J =
|
10052
|
-
return
|
10058
|
+
p(M);
|
10059
|
+
const J = M.currentPeek() === "-" ? M.peek() : M.currentPeek(), re = C(J);
|
10060
|
+
return M.resetPeek(), re;
|
10053
10061
|
}
|
10054
|
-
function O(
|
10062
|
+
function O(M, I) {
|
10055
10063
|
const { currentType: U } = I;
|
10056
10064
|
if (U !== 2)
|
10057
10065
|
return !1;
|
10058
|
-
p(
|
10059
|
-
const J =
|
10060
|
-
return
|
10066
|
+
p(M);
|
10067
|
+
const J = M.currentPeek() === LITERAL_DELIMITER;
|
10068
|
+
return M.resetPeek(), J;
|
10061
10069
|
}
|
10062
|
-
function D(
|
10070
|
+
function D(M, I) {
|
10063
10071
|
const { currentType: U } = I;
|
10064
10072
|
if (U !== 8)
|
10065
10073
|
return !1;
|
10066
|
-
p(
|
10067
|
-
const J =
|
10068
|
-
return
|
10074
|
+
p(M);
|
10075
|
+
const J = M.currentPeek() === ".";
|
10076
|
+
return M.resetPeek(), J;
|
10069
10077
|
}
|
10070
|
-
function y(
|
10078
|
+
function y(M, I) {
|
10071
10079
|
const { currentType: U } = I;
|
10072
10080
|
if (U !== 9)
|
10073
10081
|
return !1;
|
10074
|
-
p(
|
10075
|
-
const J = T(
|
10076
|
-
return
|
10082
|
+
p(M);
|
10083
|
+
const J = T(M.currentPeek());
|
10084
|
+
return M.resetPeek(), J;
|
10077
10085
|
}
|
10078
|
-
function F(
|
10086
|
+
function F(M, I) {
|
10079
10087
|
const { currentType: U } = I;
|
10080
10088
|
if (!(U === 8 || U === 12))
|
10081
10089
|
return !1;
|
10082
|
-
p(
|
10083
|
-
const J =
|
10084
|
-
return
|
10090
|
+
p(M);
|
10091
|
+
const J = M.currentPeek() === ":";
|
10092
|
+
return M.resetPeek(), J;
|
10085
10093
|
}
|
10086
|
-
function
|
10094
|
+
function L(M, I) {
|
10087
10095
|
const { currentType: U } = I;
|
10088
10096
|
if (U !== 10)
|
10089
10097
|
return !1;
|
10090
10098
|
const J = () => {
|
10091
|
-
const ne =
|
10092
|
-
return ne === "{" ? T(
|
10099
|
+
const ne = M.currentPeek();
|
10100
|
+
return ne === "{" ? T(M.peek()) : ne === "@" || ne === "%" || ne === "|" || ne === ":" || ne === "." || ne === CHAR_SP || !ne ? !1 : ne === CHAR_LF ? (M.peek(), J()) : T(ne);
|
10093
10101
|
}, re = J();
|
10094
|
-
return
|
10102
|
+
return M.resetPeek(), re;
|
10095
10103
|
}
|
10096
|
-
function N(
|
10097
|
-
p(
|
10098
|
-
const I =
|
10099
|
-
return
|
10104
|
+
function N(M) {
|
10105
|
+
p(M);
|
10106
|
+
const I = M.currentPeek() === "|";
|
10107
|
+
return M.resetPeek(), I;
|
10100
10108
|
}
|
10101
|
-
function M
|
10102
|
-
const I = p(
|
10103
|
-
return
|
10109
|
+
function V(M) {
|
10110
|
+
const I = p(M), U = M.currentPeek() === "%" && M.peek() === "{";
|
10111
|
+
return M.resetPeek(), {
|
10104
10112
|
isModulo: U,
|
10105
10113
|
hasSpace: I.length > 0
|
10106
10114
|
};
|
10107
10115
|
}
|
10108
|
-
function w(
|
10116
|
+
function w(M, I = !0) {
|
10109
10117
|
const U = (re = !1, ne = "", ie = !1) => {
|
10110
|
-
const ue =
|
10111
|
-
return ue === "{" ? ne === "%" ? !1 : re : ue === "@" || !ue ? ne === "%" ? !0 : re : ue === "%" ? (
|
10118
|
+
const ue = M.currentPeek();
|
10119
|
+
return ue === "{" ? ne === "%" ? !1 : re : ue === "@" || !ue ? ne === "%" ? !0 : re : ue === "%" ? (M.peek(), U(re, "%", !0)) : ue === "|" ? ne === "%" || ie ? !0 : !(ne === CHAR_SP || ne === CHAR_LF) : ue === CHAR_SP ? (M.peek(), U(!0, CHAR_SP, ie)) : ue === CHAR_LF ? (M.peek(), U(!0, CHAR_LF, ie)) : !0;
|
10112
10120
|
}, J = U();
|
10113
|
-
return I &&
|
10121
|
+
return I && M.resetPeek(), J;
|
10114
10122
|
}
|
10115
|
-
function K(
|
10116
|
-
const U =
|
10117
|
-
return U === EOF ? EOF : I(U) ? (
|
10123
|
+
function K(M, I) {
|
10124
|
+
const U = M.currentChar();
|
10125
|
+
return U === EOF ? EOF : I(U) ? (M.next(), U) : null;
|
10118
10126
|
}
|
10119
|
-
function
|
10120
|
-
return K(
|
10127
|
+
function P(M) {
|
10128
|
+
return K(M, (U) => {
|
10121
10129
|
const J = U.charCodeAt(0);
|
10122
10130
|
return J >= 97 && J <= 122 || J >= 65 && J <= 90 || J >= 48 && J <= 57 || J === 95 || J === 36;
|
10123
10131
|
});
|
10124
10132
|
}
|
10125
|
-
function
|
10126
|
-
return K(
|
10133
|
+
function G(M) {
|
10134
|
+
return K(M, (U) => {
|
10127
10135
|
const J = U.charCodeAt(0);
|
10128
10136
|
return J >= 48 && J <= 57;
|
10129
10137
|
});
|
10130
10138
|
}
|
10131
|
-
function B(
|
10132
|
-
return K(
|
10139
|
+
function B(M) {
|
10140
|
+
return K(M, (U) => {
|
10133
10141
|
const J = U.charCodeAt(0);
|
10134
10142
|
return J >= 48 && J <= 57 || J >= 65 && J <= 70 || J >= 97 && J <= 102;
|
10135
10143
|
});
|
10136
10144
|
}
|
10137
|
-
function x(
|
10145
|
+
function x(M) {
|
10138
10146
|
let I = "", U = "";
|
10139
|
-
for (; I =
|
10147
|
+
for (; I = G(M); )
|
10140
10148
|
U += I;
|
10141
10149
|
return U;
|
10142
10150
|
}
|
10143
|
-
function
|
10144
|
-
E(
|
10145
|
-
const I =
|
10146
|
-
return I !== "%" && g(CompileErrorCodes.EXPECTED_TOKEN, s(), 0, I),
|
10151
|
+
function Y(M) {
|
10152
|
+
E(M);
|
10153
|
+
const I = M.currentChar();
|
10154
|
+
return I !== "%" && g(CompileErrorCodes.EXPECTED_TOKEN, s(), 0, I), M.next(), "%";
|
10147
10155
|
}
|
10148
|
-
function z(
|
10156
|
+
function z(M) {
|
10149
10157
|
let I = "";
|
10150
10158
|
for (; ; ) {
|
10151
|
-
const U =
|
10159
|
+
const U = M.currentChar();
|
10152
10160
|
if (U === "{" || U === "}" || U === "@" || U === "|" || !U)
|
10153
10161
|
break;
|
10154
10162
|
if (U === "%")
|
10155
|
-
if (w(
|
10156
|
-
I += U,
|
10163
|
+
if (w(M))
|
10164
|
+
I += U, M.next();
|
10157
10165
|
else
|
10158
10166
|
break;
|
10159
10167
|
else if (U === CHAR_SP || U === CHAR_LF)
|
10160
|
-
if (w(
|
10161
|
-
I += U,
|
10168
|
+
if (w(M))
|
10169
|
+
I += U, M.next();
|
10162
10170
|
else {
|
10163
|
-
if (N(
|
10171
|
+
if (N(M))
|
10164
10172
|
break;
|
10165
|
-
I += U,
|
10173
|
+
I += U, M.next();
|
10166
10174
|
}
|
10167
10175
|
else
|
10168
|
-
I += U,
|
10176
|
+
I += U, M.next();
|
10169
10177
|
}
|
10170
10178
|
return I;
|
10171
10179
|
}
|
10172
|
-
function
|
10173
|
-
E(
|
10180
|
+
function W(M) {
|
10181
|
+
E(M);
|
10174
10182
|
let I = "", U = "";
|
10175
|
-
for (; I =
|
10183
|
+
for (; I = P(M); )
|
10176
10184
|
U += I;
|
10177
|
-
return
|
10185
|
+
return M.currentChar() === EOF && g(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, s(), 0), U;
|
10178
10186
|
}
|
10179
|
-
function
|
10180
|
-
E(
|
10187
|
+
function $(M) {
|
10188
|
+
E(M);
|
10181
10189
|
let I = "";
|
10182
|
-
return
|
10190
|
+
return M.currentChar() === "-" ? (M.next(), I += `-${x(M)}`) : I += x(M), M.currentChar() === EOF && g(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, s(), 0), I;
|
10183
10191
|
}
|
10184
|
-
function H(
|
10185
|
-
E(
|
10192
|
+
function H(M) {
|
10193
|
+
E(M), v(M, "'");
|
10186
10194
|
let I = "", U = "";
|
10187
10195
|
const J = (ne) => ne !== LITERAL_DELIMITER && ne !== CHAR_LF;
|
10188
|
-
for (; I = K(
|
10189
|
-
I === "\\" ? U += Q(
|
10190
|
-
const re =
|
10191
|
-
return re === CHAR_LF || re === EOF ? (g(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), re === CHAR_LF && (
|
10196
|
+
for (; I = K(M, J); )
|
10197
|
+
I === "\\" ? U += Q(M) : U += I;
|
10198
|
+
const re = M.currentChar();
|
10199
|
+
return re === CHAR_LF || re === EOF ? (g(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, s(), 0), re === CHAR_LF && (M.next(), v(M, "'")), U) : (v(M, "'"), U);
|
10192
10200
|
}
|
10193
|
-
function Q(
|
10194
|
-
const I =
|
10201
|
+
function Q(M) {
|
10202
|
+
const I = M.currentChar();
|
10195
10203
|
switch (I) {
|
10196
10204
|
case "\\":
|
10197
10205
|
case "'":
|
10198
|
-
return
|
10206
|
+
return M.next(), `\\${I}`;
|
10199
10207
|
case "u":
|
10200
|
-
return Z(
|
10208
|
+
return Z(M, I, 4);
|
10201
10209
|
case "U":
|
10202
|
-
return Z(
|
10210
|
+
return Z(M, I, 6);
|
10203
10211
|
default:
|
10204
10212
|
return g(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE, s(), 0, I), "";
|
10205
10213
|
}
|
10206
10214
|
}
|
10207
|
-
function Z(
|
10208
|
-
v(
|
10215
|
+
function Z(M, I, U) {
|
10216
|
+
v(M, I);
|
10209
10217
|
let J = "";
|
10210
10218
|
for (let re = 0; re < U; re++) {
|
10211
|
-
const ne = B(
|
10219
|
+
const ne = B(M);
|
10212
10220
|
if (!ne) {
|
10213
|
-
g(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${I}${J}${
|
10221
|
+
g(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${I}${J}${M.currentChar()}`);
|
10214
10222
|
break;
|
10215
10223
|
}
|
10216
10224
|
J += ne;
|
10217
10225
|
}
|
10218
10226
|
return `\\${I}${J}`;
|
10219
10227
|
}
|
10220
|
-
function oe(
|
10221
|
-
E(
|
10228
|
+
function oe(M) {
|
10229
|
+
E(M);
|
10222
10230
|
let I = "", U = "";
|
10223
10231
|
const J = (re) => re !== "{" && re !== "}" && re !== CHAR_SP && re !== CHAR_LF;
|
10224
|
-
for (; I = K(
|
10232
|
+
for (; I = K(M, J); )
|
10225
10233
|
U += I;
|
10226
10234
|
return U;
|
10227
10235
|
}
|
10228
|
-
function _e(
|
10236
|
+
function _e(M) {
|
10229
10237
|
let I = "", U = "";
|
10230
|
-
for (; I =
|
10238
|
+
for (; I = P(M); )
|
10231
10239
|
U += I;
|
10232
10240
|
return U;
|
10233
10241
|
}
|
10234
|
-
function ge(
|
10242
|
+
function ge(M) {
|
10235
10243
|
const I = (U = !1, J) => {
|
10236
|
-
const re =
|
10237
|
-
return re === "{" || re === "%" || re === "@" || re === "|" || !re || re === CHAR_SP ? J : re === CHAR_LF ? (J += re,
|
10244
|
+
const re = M.currentChar();
|
10245
|
+
return re === "{" || re === "%" || re === "@" || re === "|" || !re || re === CHAR_SP ? J : re === CHAR_LF ? (J += re, M.next(), I(U, J)) : (J += re, M.next(), I(!0, J));
|
10238
10246
|
};
|
10239
10247
|
return I(!1, "");
|
10240
10248
|
}
|
10241
|
-
function fe(
|
10242
|
-
E(
|
10243
|
-
const I = v(
|
10244
|
-
return E(
|
10249
|
+
function fe(M) {
|
10250
|
+
E(M);
|
10251
|
+
const I = v(M, "|");
|
10252
|
+
return E(M), I;
|
10245
10253
|
}
|
10246
|
-
function de(
|
10254
|
+
function de(M, I) {
|
10247
10255
|
let U = null;
|
10248
|
-
switch (
|
10256
|
+
switch (M.currentChar()) {
|
10249
10257
|
case "{":
|
10250
|
-
return I.braceNest >= 1 && g(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER, s(), 0),
|
10258
|
+
return I.braceNest >= 1 && g(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER, s(), 0), M.next(), U = m(I, 2, "{"), E(M), I.braceNest++, U;
|
10251
10259
|
case "}":
|
10252
|
-
return I.braceNest > 0 && I.currentType === 2 && g(CompileErrorCodes.EMPTY_PLACEHOLDER, s(), 0),
|
10260
|
+
return I.braceNest > 0 && I.currentType === 2 && g(CompileErrorCodes.EMPTY_PLACEHOLDER, s(), 0), M.next(), U = m(I, 3, "}"), I.braceNest--, I.braceNest > 0 && E(M), I.inLinked && I.braceNest === 0 && (I.inLinked = !1), U;
|
10253
10261
|
case "@":
|
10254
|
-
return I.braceNest > 0 && g(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, s(), 0), U = ee(
|
10262
|
+
return I.braceNest > 0 && g(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, s(), 0), U = ee(M, I) || b(I), I.braceNest = 0, U;
|
10255
10263
|
default:
|
10256
10264
|
let re = !0, ne = !0, ie = !0;
|
10257
|
-
if (N(
|
10258
|
-
return I.braceNest > 0 && g(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, s(), 0), U = m(I, 1, fe(
|
10265
|
+
if (N(M))
|
10266
|
+
return I.braceNest > 0 && g(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, s(), 0), U = m(I, 1, fe(M)), I.braceNest = 0, I.inLinked = !1, U;
|
10259
10267
|
if (I.braceNest > 0 && (I.currentType === 5 || I.currentType === 6 || I.currentType === 7))
|
10260
|
-
return g(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, s(), 0), I.braceNest = 0, ae(
|
10261
|
-
if (re = k(
|
10262
|
-
return U = m(I, 5,
|
10263
|
-
if (ne = A(
|
10264
|
-
return U = m(I, 6,
|
10265
|
-
if (ie = O(
|
10266
|
-
return U = m(I, 7, H(
|
10268
|
+
return g(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, s(), 0), I.braceNest = 0, ae(M, I);
|
10269
|
+
if (re = k(M, I))
|
10270
|
+
return U = m(I, 5, W(M)), E(M), U;
|
10271
|
+
if (ne = A(M, I))
|
10272
|
+
return U = m(I, 6, $(M)), E(M), U;
|
10273
|
+
if (ie = O(M, I))
|
10274
|
+
return U = m(I, 7, H(M)), E(M), U;
|
10267
10275
|
if (!re && !ne && !ie)
|
10268
|
-
return U = m(I, 13, oe(
|
10276
|
+
return U = m(I, 13, oe(M)), g(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, U.value), E(M), U;
|
10269
10277
|
break;
|
10270
10278
|
}
|
10271
10279
|
return U;
|
10272
10280
|
}
|
10273
|
-
function ee(
|
10281
|
+
function ee(M, I) {
|
10274
10282
|
const { currentType: U } = I;
|
10275
10283
|
let J = null;
|
10276
|
-
const re =
|
10284
|
+
const re = M.currentChar();
|
10277
10285
|
switch ((U === 8 || U === 9 || U === 12 || U === 10) && (re === CHAR_LF || re === CHAR_SP) && g(CompileErrorCodes.INVALID_LINKED_FORMAT, s(), 0), re) {
|
10278
10286
|
case "@":
|
10279
|
-
return
|
10287
|
+
return M.next(), J = m(I, 8, "@"), I.inLinked = !0, J;
|
10280
10288
|
case ".":
|
10281
|
-
return E(
|
10289
|
+
return E(M), M.next(), m(I, 9, ".");
|
10282
10290
|
case ":":
|
10283
|
-
return E(
|
10291
|
+
return E(M), M.next(), m(I, 10, ":");
|
10284
10292
|
default:
|
10285
|
-
return N(
|
10293
|
+
return N(M) ? (J = m(I, 1, fe(M)), I.braceNest = 0, I.inLinked = !1, J) : D(M, I) || F(M, I) ? (E(M), ee(M, I)) : y(M, I) ? (E(M), m(I, 12, _e(M))) : L(M, I) ? (E(M), re === "{" ? de(M, I) || J : m(I, 11, ge(M))) : (U === 8 && g(CompileErrorCodes.INVALID_LINKED_FORMAT, s(), 0), I.braceNest = 0, I.inLinked = !1, ae(M, I));
|
10286
10294
|
}
|
10287
10295
|
}
|
10288
|
-
function ae(
|
10296
|
+
function ae(M, I) {
|
10289
10297
|
let U = { type: 14 };
|
10290
10298
|
if (I.braceNest > 0)
|
10291
|
-
return de(
|
10299
|
+
return de(M, I) || b(I);
|
10292
10300
|
if (I.inLinked)
|
10293
|
-
return ee(
|
10294
|
-
switch (
|
10301
|
+
return ee(M, I) || b(I);
|
10302
|
+
switch (M.currentChar()) {
|
10295
10303
|
case "{":
|
10296
|
-
return de(
|
10304
|
+
return de(M, I) || b(I);
|
10297
10305
|
case "}":
|
10298
|
-
return g(CompileErrorCodes.UNBALANCED_CLOSING_BRACE, s(), 0),
|
10306
|
+
return g(CompileErrorCodes.UNBALANCED_CLOSING_BRACE, s(), 0), M.next(), m(I, 3, "}");
|
10299
10307
|
case "@":
|
10300
|
-
return ee(
|
10308
|
+
return ee(M, I) || b(I);
|
10301
10309
|
default:
|
10302
|
-
if (N(
|
10303
|
-
return U = m(I, 1, fe(
|
10304
|
-
const { isModulo: re, hasSpace: ne } = M
|
10310
|
+
if (N(M))
|
10311
|
+
return U = m(I, 1, fe(M)), I.braceNest = 0, I.inLinked = !1, U;
|
10312
|
+
const { isModulo: re, hasSpace: ne } = V(M);
|
10305
10313
|
if (re)
|
10306
|
-
return ne ? m(I, 0, z(
|
10307
|
-
if (w(
|
10308
|
-
return m(I, 0, z(
|
10314
|
+
return ne ? m(I, 0, z(M)) : m(I, 4, Y(M));
|
10315
|
+
if (w(M))
|
10316
|
+
return m(I, 0, z(M));
|
10309
10317
|
break;
|
10310
10318
|
}
|
10311
10319
|
return U;
|
10312
10320
|
}
|
10313
10321
|
function q() {
|
10314
|
-
const { currentType:
|
10315
|
-
return c.lastType =
|
10322
|
+
const { currentType: M, offset: I, startLoc: U, endLoc: J } = c;
|
10323
|
+
return c.lastType = M, c.lastOffset = I, c.lastStartLoc = U, c.lastEndLoc = J, c.offset = u(), c.startLoc = s(), n.currentChar() === EOF ? m(c, 14) : ae(n, c);
|
10316
10324
|
}
|
10317
10325
|
return {
|
10318
10326
|
nextToken: q,
|
@@ -10423,19 +10431,19 @@ function createParser(e = {}) {
|
|
10423
10431
|
O.items = [];
|
10424
10432
|
let D = null;
|
10425
10433
|
do {
|
10426
|
-
const
|
10427
|
-
switch (D = null,
|
10434
|
+
const L = D || T.nextToken();
|
10435
|
+
switch (D = null, L.type) {
|
10428
10436
|
case 0:
|
10429
|
-
|
10437
|
+
L.value == null && n(T, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, C.lastStartLoc, 0, getTokenCaption(L)), O.items.push(o(T, L.value || ""));
|
10430
10438
|
break;
|
10431
10439
|
case 6:
|
10432
|
-
|
10440
|
+
L.value == null && n(T, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, C.lastStartLoc, 0, getTokenCaption(L)), O.items.push(l(T, L.value || ""));
|
10433
10441
|
break;
|
10434
10442
|
case 5:
|
10435
|
-
|
10443
|
+
L.value == null && n(T, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, C.lastStartLoc, 0, getTokenCaption(L)), O.items.push(c(T, L.value || ""));
|
10436
10444
|
break;
|
10437
10445
|
case 7:
|
10438
|
-
|
10446
|
+
L.value == null && n(T, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, C.lastStartLoc, 0, getTokenCaption(L)), O.items.push(_(T, L.value || ""));
|
10439
10447
|
break;
|
10440
10448
|
case 8:
|
10441
10449
|
const N = m(T);
|
@@ -10932,9 +10940,9 @@ const setFallbackContext = (e) => {
|
|
10932
10940
|
}, getFallbackContext = () => _fallbackContext;
|
10933
10941
|
let _cid = 0;
|
10934
10942
|
function createCoreContext(e = {}) {
|
10935
|
-
const a = isString$1(e.version) ? e.version : VERSION$1, r = isString$1(e.locale) ? e.locale : DEFAULT_LOCALE, n = isArray(e.fallbackLocale) || isPlainObject(e.fallbackLocale) || isString$1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r, u = isPlainObject(e.messages) ? e.messages : { [r]: {} }, s = isPlainObject(e.datetimeFormats) ? e.datetimeFormats : { [r]: {} }, o = isPlainObject(e.numberFormats) ? e.numberFormats : { [r]: {} }, l = assign$1({}, e.modifiers || {}, getDefaultLinkedModifiers()), c = e.pluralRules || {}, _ = isFunction$2(e.missing) ? e.missing : null, d = isBoolean(e.missingWarn) || isRegExp(e.missingWarn) ? e.missingWarn : !0, g = isBoolean(e.fallbackWarn) || isRegExp(e.fallbackWarn) ? e.fallbackWarn : !0, m = !!e.fallbackFormat, b = !!e.unresolving, v = isFunction$2(e.postTranslation) ? e.postTranslation : null, p = isPlainObject(e.processor) ? e.processor : null, E = isBoolean(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, T = !!e.escapeParameter, C = isFunction$2(e.messageCompiler) ? e.messageCompiler : _compiler, k = isFunction$2(e.messageResolver) ? e.messageResolver : _resolver || resolveWithKeyValue, A = isFunction$2(e.localeFallbacker) ? e.localeFallbacker : _fallbacker || fallbackWithSimple, O = isObject$2(e.fallbackContext) ? e.fallbackContext : void 0, D = isFunction$2(e.onWarn) ? e.onWarn : warn, y = e, F = isObject$2(y.__datetimeFormatters) ? y.__datetimeFormatters : /* @__PURE__ */ new Map(),
|
10943
|
+
const a = isString$1(e.version) ? e.version : VERSION$1, r = isString$1(e.locale) ? e.locale : DEFAULT_LOCALE, n = isArray(e.fallbackLocale) || isPlainObject(e.fallbackLocale) || isString$1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r, u = isPlainObject(e.messages) ? e.messages : { [r]: {} }, s = isPlainObject(e.datetimeFormats) ? e.datetimeFormats : { [r]: {} }, o = isPlainObject(e.numberFormats) ? e.numberFormats : { [r]: {} }, l = assign$1({}, e.modifiers || {}, getDefaultLinkedModifiers()), c = e.pluralRules || {}, _ = isFunction$2(e.missing) ? e.missing : null, d = isBoolean(e.missingWarn) || isRegExp(e.missingWarn) ? e.missingWarn : !0, g = isBoolean(e.fallbackWarn) || isRegExp(e.fallbackWarn) ? e.fallbackWarn : !0, m = !!e.fallbackFormat, b = !!e.unresolving, v = isFunction$2(e.postTranslation) ? e.postTranslation : null, p = isPlainObject(e.processor) ? e.processor : null, E = isBoolean(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, T = !!e.escapeParameter, C = isFunction$2(e.messageCompiler) ? e.messageCompiler : _compiler, k = isFunction$2(e.messageResolver) ? e.messageResolver : _resolver || resolveWithKeyValue, A = isFunction$2(e.localeFallbacker) ? e.localeFallbacker : _fallbacker || fallbackWithSimple, O = isObject$2(e.fallbackContext) ? e.fallbackContext : void 0, D = isFunction$2(e.onWarn) ? e.onWarn : warn, y = e, F = isObject$2(y.__datetimeFormatters) ? y.__datetimeFormatters : /* @__PURE__ */ new Map(), L = isObject$2(y.__numberFormatters) ? y.__numberFormatters : /* @__PURE__ */ new Map(), N = isObject$2(y.__meta) ? y.__meta : {};
|
10936
10944
|
_cid++;
|
10937
|
-
const
|
10945
|
+
const V = {
|
10938
10946
|
version: a,
|
10939
10947
|
cid: _cid,
|
10940
10948
|
locale: r,
|
@@ -10958,7 +10966,7 @@ function createCoreContext(e = {}) {
|
|
10958
10966
|
onWarn: D,
|
10959
10967
|
__meta: N
|
10960
10968
|
};
|
10961
|
-
return
|
10969
|
+
return V.datetimeFormats = s, V.numberFormats = o, V.__datetimeFormatters = F, V.__numberFormatters = L, process.env.NODE_ENV !== "production" && (V.__v_emitter = y.__v_emitter != null ? y.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && initI18nDevTools(V, a, N), V;
|
10962
10970
|
}
|
10963
10971
|
function isTranslateFallbackWarn(e, a) {
|
10964
10972
|
return e instanceof RegExp ? e.test(a) : e;
|
@@ -11041,7 +11049,7 @@ function translate(e, ...a) {
|
|
11041
11049
|
}, F = isMessageFunction(A) ? A : compileMessageFormat(e, c, C, A, O, y);
|
11042
11050
|
if (D)
|
11043
11051
|
return A;
|
11044
|
-
const
|
11052
|
+
const L = getMessageContextOptions(e, C, k, _), N = createMessageContext(L), V = evaluateMessage(e, F, N), w = n ? n(V, c) : V;
|
11045
11053
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
11046
11054
|
const K = {
|
11047
11055
|
timestamp: Date.now(),
|
@@ -11208,8 +11216,8 @@ function datetime(e, ...a) {
|
|
11208
11216
|
return new Intl.DateTimeFormat(p, g).format(_);
|
11209
11217
|
let T = {}, C, k = null, A = p, O = null;
|
11210
11218
|
const D = "datetime format";
|
11211
|
-
for (let
|
11212
|
-
if (C = O = E[
|
11219
|
+
for (let L = 0; L < E.length; L++) {
|
11220
|
+
if (C = O = E[L], process.env.NODE_ENV !== "production" && p !== C && isTranslateFallbackWarn(b, c) && s(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_DATE_FORMAT, {
|
11213
11221
|
key: c,
|
11214
11222
|
target: C
|
11215
11223
|
})), process.env.NODE_ENV !== "production" && p !== C) {
|
@@ -11301,8 +11309,8 @@ function number(e, ...a) {
|
|
11301
11309
|
return new Intl.NumberFormat(p, g).format(_);
|
11302
11310
|
let T = {}, C, k = null, A = p, O = null;
|
11303
11311
|
const D = "number format";
|
11304
|
-
for (let
|
11305
|
-
if (C = O = E[
|
11312
|
+
for (let L = 0; L < E.length; L++) {
|
11313
|
+
if (C = O = E[L], process.env.NODE_ENV !== "production" && p !== C && isTranslateFallbackWarn(b, c) && s(getWarnMessage$1(CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT, {
|
11306
11314
|
key: c,
|
11307
11315
|
target: C
|
11308
11316
|
})), process.env.NODE_ENV !== "production" && p !== C) {
|
@@ -11576,19 +11584,19 @@ function createComposer(e = {}, a) {
|
|
11576
11584
|
set: (X) => {
|
11577
11585
|
s.value = X, O.locale = s.value;
|
11578
11586
|
}
|
11579
|
-
}),
|
11587
|
+
}), L = computed({
|
11580
11588
|
get: () => o.value,
|
11581
11589
|
set: (X) => {
|
11582
11590
|
o.value = X, O.fallbackLocale = o.value, updateFallbackLocale(O, s.value, X);
|
11583
11591
|
}
|
11584
|
-
}), N = computed(() => l.value),
|
11592
|
+
}), N = computed(() => l.value), V = /* @__PURE__ */ computed(() => c.value), w = /* @__PURE__ */ computed(() => _.value);
|
11585
11593
|
function K() {
|
11586
11594
|
return isFunction$2(E) ? E : null;
|
11587
11595
|
}
|
11588
|
-
function
|
11596
|
+
function P(X) {
|
11589
11597
|
E = X, O.postTranslation = X;
|
11590
11598
|
}
|
11591
|
-
function
|
11599
|
+
function G() {
|
11592
11600
|
return v;
|
11593
11601
|
}
|
11594
11602
|
function B(X) {
|
@@ -11597,7 +11605,7 @@ function createComposer(e = {}, a) {
|
|
11597
11605
|
function x(X, te) {
|
11598
11606
|
return X !== "translate" || !te.resolvedMessage;
|
11599
11607
|
}
|
11600
|
-
const
|
11608
|
+
const Y = (X, te, me, ce, Ee, Te) => {
|
11601
11609
|
y();
|
11602
11610
|
let he;
|
11603
11611
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__)
|
@@ -11630,19 +11638,19 @@ function createComposer(e = {}, a) {
|
|
11630
11638
|
}
|
11631
11639
|
};
|
11632
11640
|
function z(...X) {
|
11633
|
-
return
|
11641
|
+
return Y((te) => Reflect.apply(translate, null, [te, ...X]), () => parseTranslateArgs(...X), "translate", (te) => Reflect.apply(te.t, te, [...X]), (te) => te, (te) => isString$1(te));
|
11634
11642
|
}
|
11635
|
-
function
|
11643
|
+
function W(...X) {
|
11636
11644
|
const [te, me, ce] = X;
|
11637
11645
|
if (ce && !isObject$2(ce))
|
11638
11646
|
throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);
|
11639
11647
|
return z(te, me, assign$1({ resolvedMessage: !0 }, ce || {}));
|
11640
11648
|
}
|
11641
|
-
function
|
11642
|
-
return
|
11649
|
+
function $(...X) {
|
11650
|
+
return Y((te) => Reflect.apply(datetime, null, [te, ...X]), () => parseDateTimeArgs(...X), "datetime format", (te) => Reflect.apply(te.d, te, [...X]), () => MISSING_RESOLVE_VALUE, (te) => isString$1(te));
|
11643
11651
|
}
|
11644
11652
|
function H(...X) {
|
11645
|
-
return
|
11653
|
+
return Y((te) => Reflect.apply(number, null, [te, ...X]), () => parseNumberArgs(...X), "number format", (te) => Reflect.apply(te.n, te, [...X]), () => MISSING_RESOLVE_VALUE, (te) => isString$1(te));
|
11646
11654
|
}
|
11647
11655
|
function Q(X) {
|
11648
11656
|
return X.map((te) => isString$1(te) || isNumber(te) || isBoolean(te) ? createTextNode(String(te)) : te);
|
@@ -11653,7 +11661,7 @@ function createComposer(e = {}, a) {
|
|
11653
11661
|
type: "vnode"
|
11654
11662
|
};
|
11655
11663
|
function _e(...X) {
|
11656
|
-
return
|
11664
|
+
return Y(
|
11657
11665
|
(te) => {
|
11658
11666
|
let me;
|
11659
11667
|
const ce = te;
|
@@ -11672,7 +11680,7 @@ function createComposer(e = {}, a) {
|
|
11672
11680
|
);
|
11673
11681
|
}
|
11674
11682
|
function ge(...X) {
|
11675
|
-
return
|
11683
|
+
return Y(
|
11676
11684
|
(te) => Reflect.apply(number, null, [te, ...X]),
|
11677
11685
|
() => parseNumberArgs(...X),
|
11678
11686
|
"number format",
|
@@ -11682,7 +11690,7 @@ function createComposer(e = {}, a) {
|
|
11682
11690
|
);
|
11683
11691
|
}
|
11684
11692
|
function fe(...X) {
|
11685
|
-
return
|
11693
|
+
return Y(
|
11686
11694
|
(te) => Reflect.apply(datetime, null, [te, ...X]),
|
11687
11695
|
() => parseDateTimeArgs(...X),
|
11688
11696
|
"datetime format",
|
@@ -11695,7 +11703,7 @@ function createComposer(e = {}, a) {
|
|
11695
11703
|
A = X, O.pluralRules = A;
|
11696
11704
|
}
|
11697
11705
|
function ee(X, te) {
|
11698
|
-
const me = isString$1(te) ? te : s.value, ce =
|
11706
|
+
const me = isString$1(te) ? te : s.value, ce = M(me);
|
11699
11707
|
return O.messageResolver(ce, X) !== null;
|
11700
11708
|
}
|
11701
11709
|
function ae(X) {
|
@@ -11714,7 +11722,7 @@ function createComposer(e = {}, a) {
|
|
11714
11722
|
const te = ae(X);
|
11715
11723
|
return te != null ? te : r ? r.tm(X) || {} : {};
|
11716
11724
|
}
|
11717
|
-
function
|
11725
|
+
function M(X) {
|
11718
11726
|
return l.value[X] || {};
|
11719
11727
|
}
|
11720
11728
|
function I(X, te) {
|
@@ -11749,7 +11757,7 @@ function createComposer(e = {}, a) {
|
|
11749
11757
|
const se = {
|
11750
11758
|
id: composerID,
|
11751
11759
|
locale: F,
|
11752
|
-
fallbackLocale:
|
11760
|
+
fallbackLocale: L,
|
11753
11761
|
get inheritLocale() {
|
11754
11762
|
return u;
|
11755
11763
|
},
|
@@ -11806,16 +11814,16 @@ function createComposer(e = {}, a) {
|
|
11806
11814
|
C = X, O.escapeParameter = X;
|
11807
11815
|
},
|
11808
11816
|
t: z,
|
11809
|
-
getLocaleMessage:
|
11817
|
+
getLocaleMessage: M,
|
11810
11818
|
setLocaleMessage: I,
|
11811
11819
|
mergeLocaleMessage: U,
|
11812
11820
|
getPostTranslationHandler: K,
|
11813
|
-
setPostTranslationHandler:
|
11814
|
-
getMissingHandler:
|
11821
|
+
setPostTranslationHandler: P,
|
11822
|
+
getMissingHandler: G,
|
11815
11823
|
setMissingHandler: B,
|
11816
11824
|
[SetPluralRulesSymbol]: de
|
11817
11825
|
};
|
11818
|
-
return se.datetimeFormats =
|
11826
|
+
return se.datetimeFormats = V, se.numberFormats = w, se.rt = W, se.te = ee, se.tm = q, se.d = $, se.n = H, se.getDateTimeFormat = J, se.setDateTimeFormat = re, se.mergeDateTimeFormat = ne, se.getNumberFormat = ie, se.setNumberFormat = ue, se.mergeNumberFormat = le, se[InejctWithOption] = e.__injectWithOption, se[TransrateVNodeSymbol] = _e, se[DatetimePartsSymbol] = fe, se[NumberPartsSymbol] = ge, process.env.NODE_ENV !== "production" && (se[EnableEmitter] = (X) => {
|
11819
11827
|
O.__v_emitter = X;
|
11820
11828
|
}, se[DisableEmitter] = () => {
|
11821
11829
|
O.__v_emitter = void 0;
|
@@ -11828,8 +11836,8 @@ function convertComposerOptions(e) {
|
|
11828
11836
|
if (isPlainObject(e.sharedMessages)) {
|
11829
11837
|
const O = e.sharedMessages;
|
11830
11838
|
v = Object.keys(O).reduce((y, F) => {
|
11831
|
-
const
|
11832
|
-
return assign$1(
|
11839
|
+
const L = y[F] || (y[F] = {});
|
11840
|
+
return assign$1(L, O[F]), y;
|
11833
11841
|
}, v || {});
|
11834
11842
|
}
|
11835
11843
|
const { __i18n: p, __root: E, __injectWithOption: T } = e, C = e.datetimeFormats, k = e.numberFormats, A = e.flatJson;
|
@@ -12669,17 +12677,17 @@ function useI18nForLegacy(e, a, r, n = {}) {
|
|
12669
12677
|
set: (I) => {
|
12670
12678
|
s.value && (s.value.fallbackLocale.value = I), c.value = I;
|
12671
12679
|
}
|
12672
|
-
}),
|
12680
|
+
}), L = computed(() => s.value ? s.value.messages.value : _.value), N = computed(() => d.value), V = computed(() => g.value);
|
12673
12681
|
function w() {
|
12674
12682
|
return s.value ? s.value.getPostTranslationHandler() : T;
|
12675
12683
|
}
|
12676
12684
|
function K(I) {
|
12677
12685
|
s.value && s.value.setPostTranslationHandler(I);
|
12678
12686
|
}
|
12679
|
-
function
|
12687
|
+
function P() {
|
12680
12688
|
return s.value ? s.value.getMissingHandler() : E;
|
12681
12689
|
}
|
12682
|
-
function
|
12690
|
+
function G(I) {
|
12683
12691
|
s.value && s.value.setMissingHandler(I);
|
12684
12692
|
}
|
12685
12693
|
function B(I) {
|
@@ -12688,16 +12696,16 @@ function useI18nForLegacy(e, a, r, n = {}) {
|
|
12688
12696
|
function x(...I) {
|
12689
12697
|
return s.value ? B(() => Reflect.apply(s.value.t, null, [...I])) : B(() => "");
|
12690
12698
|
}
|
12691
|
-
function
|
12699
|
+
function Y(...I) {
|
12692
12700
|
return s.value ? Reflect.apply(s.value.rt, null, [...I]) : "";
|
12693
12701
|
}
|
12694
12702
|
function z(...I) {
|
12695
12703
|
return s.value ? B(() => Reflect.apply(s.value.d, null, [...I])) : B(() => "");
|
12696
12704
|
}
|
12697
|
-
function
|
12705
|
+
function W(...I) {
|
12698
12706
|
return s.value ? B(() => Reflect.apply(s.value.n, null, [...I])) : B(() => "");
|
12699
12707
|
}
|
12700
|
-
function
|
12708
|
+
function $(I) {
|
12701
12709
|
return s.value ? s.value.tm(I) : {};
|
12702
12710
|
}
|
12703
12711
|
function H(I, U) {
|
@@ -12736,9 +12744,9 @@ function useI18nForLegacy(e, a, r, n = {}) {
|
|
12736
12744
|
},
|
12737
12745
|
locale: y,
|
12738
12746
|
fallbackLocale: F,
|
12739
|
-
messages:
|
12747
|
+
messages: L,
|
12740
12748
|
datetimeFormats: N,
|
12741
|
-
numberFormats:
|
12749
|
+
numberFormats: V,
|
12742
12750
|
get inheritLocale() {
|
12743
12751
|
return s.value ? s.value.inheritLocale : o;
|
12744
12752
|
},
|
@@ -12796,12 +12804,12 @@ function useI18nForLegacy(e, a, r, n = {}) {
|
|
12796
12804
|
t: x,
|
12797
12805
|
getPostTranslationHandler: w,
|
12798
12806
|
setPostTranslationHandler: K,
|
12799
|
-
getMissingHandler:
|
12800
|
-
setMissingHandler:
|
12801
|
-
rt:
|
12807
|
+
getMissingHandler: P,
|
12808
|
+
setMissingHandler: G,
|
12809
|
+
rt: Y,
|
12802
12810
|
d: z,
|
12803
|
-
n:
|
12804
|
-
tm:
|
12811
|
+
n: W,
|
12812
|
+
tm: $,
|
12805
12813
|
te: H,
|
12806
12814
|
getLocaleMessage: Q,
|
12807
12815
|
setLocaleMessage: Z,
|
@@ -12813,7 +12821,7 @@ function useI18nForLegacy(e, a, r, n = {}) {
|
|
12813
12821
|
setNumberFormat: ee,
|
12814
12822
|
mergeNumberFormat: ae
|
12815
12823
|
};
|
12816
|
-
function
|
12824
|
+
function M(I) {
|
12817
12825
|
I.locale.value = l.value, I.fallbackLocale.value = c.value, Object.keys(_.value).forEach((U) => {
|
12818
12826
|
I.mergeLocaleMessage(U, _.value[U]);
|
12819
12827
|
}), Object.keys(d.value).forEach((U) => {
|
@@ -12826,7 +12834,7 @@ function useI18nForLegacy(e, a, r, n = {}) {
|
|
12826
12834
|
if (e.proxy == null || e.proxy.$i18n == null)
|
12827
12835
|
throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
12828
12836
|
const I = s.value = e.proxy.$i18n.__composer;
|
12829
|
-
a === "global" ? (l.value = I.locale.value, c.value = I.fallbackLocale.value, _.value = I.messages.value, d.value = I.datetimeFormats.value, g.value = I.numberFormats.value) : u &&
|
12837
|
+
a === "global" ? (l.value = I.locale.value, c.value = I.fallbackLocale.value, _.value = I.messages.value, d.value = I.datetimeFormats.value, g.value = I.numberFormats.value) : u && M(I);
|
12830
12838
|
}), q;
|
12831
12839
|
}
|
12832
12840
|
const globalExportProps = [
|
@@ -12937,7 +12945,7 @@ class Memory {
|
|
12937
12945
|
});
|
12938
12946
|
}
|
12939
12947
|
clear() {
|
12940
|
-
|
12948
|
+
Object.keys(this.cache).forEach((a) => {
|
12941
12949
|
const r = this.cache[a];
|
12942
12950
|
r.timeoutId && clearTimeout(r.timeoutId);
|
12943
12951
|
}), this.cache = {
|
@@ -13029,7 +13037,7 @@ const getProps$L = () => ({
|
|
13029
13037
|
await n(l), a.value = [l], window.location.reload();
|
13030
13038
|
}
|
13031
13039
|
function o(l) {
|
13032
|
-
|
13040
|
+
unref(u) !== l.event && s(l.event);
|
13033
13041
|
}
|
13034
13042
|
return watchEffect(() => {
|
13035
13043
|
a.value = [unref(u)];
|
@@ -13241,23 +13249,23 @@ function useWindowSize(e = {}) {
|
|
13241
13249
|
}
|
13242
13250
|
const KG_MODAL_BORDER_WIDTH = 1, KG_MODAL_SCROLL_WIDTH = 17;
|
13243
13251
|
function useDragToMove(e) {
|
13244
|
-
var
|
13252
|
+
var L, N, V;
|
13245
13253
|
const {
|
13246
13254
|
getProps: a,
|
13247
13255
|
domRef: r
|
13248
13256
|
} = e;
|
13249
|
-
if (((
|
13257
|
+
if (((V = (N = (L = useKg().option.value) == null ? void 0 : L.KgModal) == null ? void 0 : N.drag) == null ? void 0 : V.on) !== !0)
|
13250
13258
|
return;
|
13251
13259
|
const {
|
13252
13260
|
width: u,
|
13253
13261
|
height: s
|
13254
13262
|
} = useWindowSize();
|
13255
13263
|
let o = computed(() => {
|
13256
|
-
var w, K,
|
13257
|
-
return (B = (
|
13264
|
+
var w, K, P, G, B;
|
13265
|
+
return (B = (G = (P = (K = (w = r.value) == null ? void 0 : w.parentElement) == null ? void 0 : K.parentElement) == null ? void 0 : P.parentElement) == null ? void 0 : G.parentElement) != null ? B : null;
|
13258
13266
|
}), l = computed(() => {
|
13259
|
-
var w, K,
|
13260
|
-
return (
|
13267
|
+
var w, K, P, G;
|
13268
|
+
return (G = (P = (K = (w = r.value) == null ? void 0 : w.parentElement) == null ? void 0 : K.parentElement) == null ? void 0 : P.parentElement) != null ? G : null;
|
13261
13269
|
}), c = computed(() => {
|
13262
13270
|
var w, K;
|
13263
13271
|
return (K = (w = o.value) == null ? void 0 : w.querySelector(".ant-modal-header")) != null ? K : null;
|
@@ -13268,14 +13276,14 @@ function useDragToMove(e) {
|
|
13268
13276
|
remove: () => {
|
13269
13277
|
}
|
13270
13278
|
};
|
13271
|
-
watch([() => a.value.visible, () => a.value.kgIsDragToMove, o, l, c], ([w, K,
|
13272
|
-
!w || !K || !
|
13279
|
+
watch([() => a.value.visible, () => a.value.kgIsDragToMove, o, l, c], ([w, K, P, G, B]) => {
|
13280
|
+
!w || !K || !P || !G || !B || getComputedStyle(P).display === "none" || P.getAttribute("data-drag") !== null && !a.value.destroyOnClose || (P.setAttribute("data-drag", "true"), B.style.cursor = "move", B.onmousedown = D);
|
13273
13281
|
}, {
|
13274
13282
|
immediate: !0
|
13275
13283
|
});
|
13276
|
-
function k(w, K,
|
13277
|
-
return w.addEventListener(K,
|
13278
|
-
remove: () => w.removeEventListener(K,
|
13284
|
+
function k(w, K, P) {
|
13285
|
+
return w.addEventListener(K, P), {
|
13286
|
+
remove: () => w.removeEventListener(K, P)
|
13279
13287
|
};
|
13280
13288
|
}
|
13281
13289
|
function A() {
|
@@ -13287,9 +13295,9 @@ function useDragToMove(e) {
|
|
13287
13295
|
} = w != null ? w : {};
|
13288
13296
|
if (!l.value)
|
13289
13297
|
return;
|
13290
|
-
let
|
13291
|
-
-
|
13292
|
-
const B = p +
|
13298
|
+
let P = K.clientX - b, G = K.clientY - v;
|
13299
|
+
-P > _ ? P = -_ : P > d && (P = d), -G > g ? G = -g : G > m && (G = m);
|
13300
|
+
const B = p + P, x = E + G;
|
13293
13301
|
l.value.style.left = `${B}px`, l.value.style.top = `${x}px`;
|
13294
13302
|
}
|
13295
13303
|
function D(w) {
|
@@ -13319,8 +13327,8 @@ function useDragToResize(e) {
|
|
13319
13327
|
height: s
|
13320
13328
|
} = useWindowSize(), o = 48, l = 400;
|
13321
13329
|
let c = null, _ = computed(() => {
|
13322
|
-
var B, x,
|
13323
|
-
return (z = (
|
13330
|
+
var B, x, Y, z;
|
13331
|
+
return (z = (Y = (x = (B = n.value) == null ? void 0 : B.parentElement) == null ? void 0 : x.parentElement) == null ? void 0 : Y.parentElement) != null ? z : null;
|
13324
13332
|
}), d = computed(() => {
|
13325
13333
|
var B, x;
|
13326
13334
|
return (x = (B = _.value) == null ? void 0 : B.querySelector(".ant-modal-header")) != null ? x : null;
|
@@ -13361,17 +13369,17 @@ function useDragToResize(e) {
|
|
13361
13369
|
}, {
|
13362
13370
|
immediate: !0
|
13363
13371
|
});
|
13364
|
-
watch([_, p, E], ([B, x,
|
13365
|
-
B &&
|
13372
|
+
watch([_, p, E], ([B, x, Y]) => {
|
13373
|
+
B && Y > x && (B.style.height = `${x}px`);
|
13366
13374
|
}, {
|
13367
13375
|
immediate: !0
|
13368
13376
|
});
|
13369
|
-
function F(B, x,
|
13370
|
-
return B.addEventListener(x,
|
13371
|
-
remove: () => B.removeEventListener(x,
|
13377
|
+
function F(B, x, Y) {
|
13378
|
+
return B.addEventListener(x, Y), {
|
13379
|
+
remove: () => B.removeEventListener(x, Y)
|
13372
13380
|
};
|
13373
13381
|
}
|
13374
|
-
function
|
13382
|
+
function L() {
|
13375
13383
|
O.remove(), D.remove();
|
13376
13384
|
}
|
13377
13385
|
function N(B) {
|
@@ -13381,13 +13389,13 @@ function useDragToResize(e) {
|
|
13381
13389
|
}
|
13382
13390
|
const {
|
13383
13391
|
event: x
|
13384
|
-
} = B != null ? B : {},
|
13385
|
-
let z = Math.min(v.value, Math.max(b.value, T +
|
13392
|
+
} = B != null ? B : {}, Y = x.pageX;
|
13393
|
+
let z = Math.min(v.value, Math.max(b.value, T + Y - k));
|
13386
13394
|
_.value.offsetLeft + z > u.value && (z = u.value - _.value.offsetLeft);
|
13387
|
-
const
|
13388
|
-
z !==
|
13395
|
+
const W = _.value.offsetWidth, H = Number(getComputedStyle(_.value).left.replace(/px/g, "")) + (z - W) / 2;
|
13396
|
+
z !== W && (m.value = `${z}px`, _.value.style.width = `${z}px`, _.value.style.left = `${H}px`);
|
13389
13397
|
}
|
13390
|
-
function
|
13398
|
+
function V(B) {
|
13391
13399
|
var _e, ge, fe, de, ee, ae;
|
13392
13400
|
if (!_.value) {
|
13393
13401
|
____ERROR____("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
|
@@ -13395,8 +13403,8 @@ function useDragToResize(e) {
|
|
13395
13403
|
}
|
13396
13404
|
const {
|
13397
13405
|
event: x
|
13398
|
-
} = B != null ? B : {},
|
13399
|
-
let H = Math.min(p.value, Math.max(
|
13406
|
+
} = B != null ? B : {}, Y = x.pageY, z = (ge = (_e = d.value) == null ? void 0 : _e.clientHeight) != null ? ge : o, W = (de = (fe = g.value) == null ? void 0 : fe.clientHeight) != null ? de : 0, $ = Math.min((ae = (ee = r.value) == null ? void 0 : ee.kgMinHeight) != null ? ae : z + W + KG_MODAL_BORDER_WIDTH * 2, s.value);
|
13407
|
+
let H = Math.min(p.value, Math.max($, C + Y - A));
|
13400
13408
|
_.value.offsetTop + H > s.value && (H = s.value - _.value.offsetTop);
|
13401
13409
|
const Q = _.value.offsetHeight, oe = Number(getComputedStyle(_.value).top.replace(/px/g, "")) + (H - Q) / 2;
|
13402
13410
|
H !== Q && (_.value.style.height = `${H}px`, _.value.style.top = `${oe}px`);
|
@@ -13404,13 +13412,13 @@ function useDragToResize(e) {
|
|
13404
13412
|
function w(B) {
|
13405
13413
|
const {
|
13406
13414
|
event: x,
|
13407
|
-
handleType:
|
13415
|
+
handleType: Y
|
13408
13416
|
} = B != null ? B : {};
|
13409
13417
|
if (!_.value) {
|
13410
13418
|
____ERROR____("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
|
13411
13419
|
return;
|
13412
13420
|
}
|
13413
|
-
switch (x.pageX, x.pageY,
|
13421
|
+
switch (x.pageX, x.pageY, Y) {
|
13414
13422
|
case "top-left":
|
13415
13423
|
break;
|
13416
13424
|
case "top":
|
@@ -13426,13 +13434,13 @@ function useDragToResize(e) {
|
|
13426
13434
|
case "bottom-right": {
|
13427
13435
|
N({
|
13428
13436
|
event: x
|
13429
|
-
}),
|
13437
|
+
}), V({
|
13430
13438
|
event: x
|
13431
13439
|
});
|
13432
13440
|
break;
|
13433
13441
|
}
|
13434
13442
|
case "bottom": {
|
13435
|
-
|
13443
|
+
V({
|
13436
13444
|
event: x
|
13437
13445
|
});
|
13438
13446
|
break;
|
@@ -13442,32 +13450,32 @@ function useDragToResize(e) {
|
|
13442
13450
|
function K(B) {
|
13443
13451
|
const {
|
13444
13452
|
event: x,
|
13445
|
-
handleType:
|
13453
|
+
handleType: Y
|
13446
13454
|
} = B != null ? B : {};
|
13447
|
-
if (x.stopPropagation(), x.preventDefault(),
|
13455
|
+
if (x.stopPropagation(), x.preventDefault(), L(), !(x instanceof MouseEvent && x.which !== 1)) {
|
13448
13456
|
if (!_.value) {
|
13449
13457
|
____ERROR____("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
|
13450
13458
|
return;
|
13451
13459
|
}
|
13452
|
-
k = x.pageX, A = x.pageY, T = _.value.offsetWidth, C = _.value.offsetHeight, Number(getComputedStyle(_.value).top.replace(/px/g, "")), O = F(document.documentElement, "mousemove", (z) =>
|
13460
|
+
k = x.pageX, A = x.pageY, T = _.value.offsetWidth, C = _.value.offsetHeight, Number(getComputedStyle(_.value).top.replace(/px/g, "")), O = F(document.documentElement, "mousemove", (z) => P({
|
13453
13461
|
event: z,
|
13454
|
-
handleType:
|
13455
|
-
})), D = F(document.documentElement, "mouseup", (z) =>
|
13462
|
+
handleType: Y
|
13463
|
+
})), D = F(document.documentElement, "mouseup", (z) => G({
|
13456
13464
|
event: z,
|
13457
|
-
handleType:
|
13465
|
+
handleType: Y
|
13458
13466
|
}));
|
13459
13467
|
}
|
13460
13468
|
}
|
13461
|
-
function
|
13469
|
+
function P(B) {
|
13462
13470
|
w(B);
|
13463
13471
|
}
|
13464
|
-
function
|
13465
|
-
w(B),
|
13472
|
+
function G(B) {
|
13473
|
+
w(B), L();
|
13466
13474
|
}
|
13467
13475
|
return onBeforeUnmount(() => {
|
13468
13476
|
c == null || c.disconnect();
|
13469
13477
|
}), onUnmounted(() => {
|
13470
|
-
|
13478
|
+
L();
|
13471
13479
|
}), {
|
13472
13480
|
onMousedown: K,
|
13473
13481
|
width: m
|
@@ -13799,9 +13807,9 @@ const getProps$H = () => ({
|
|
13799
13807
|
function A(y) {
|
13800
13808
|
y.stopPropagation(), y.preventDefault(), E(), !(y instanceof MouseEvent && y.which !== 1) && (c = y.pageX, _ = y.pageY, o = e.kgHeight, l = e.kgHeight, d = O(document.documentElement, "mouseup", k), g = O(document.documentElement, "mousemove", C));
|
13801
13809
|
}
|
13802
|
-
function O(y, F,
|
13803
|
-
return y.addEventListener(F,
|
13804
|
-
remove: () => y.removeEventListener(F,
|
13810
|
+
function O(y, F, L) {
|
13811
|
+
return y.addEventListener(F, L), {
|
13812
|
+
remove: () => y.removeEventListener(F, L)
|
13805
13813
|
};
|
13806
13814
|
}
|
13807
13815
|
function D(y) {
|
@@ -13952,12 +13960,12 @@ const getProps$H = () => ({
|
|
13952
13960
|
var_nam: u
|
13953
13961
|
}), r("update:visible", !1);
|
13954
13962
|
} else {
|
13955
|
-
const y = (O = (A = (k = _.kgTable.selectedRows) == null ? void 0 : k.value) == null ? void 0 : A[0]) != null ? O : null, F = (D = y == null ? void 0 : y[m.value]) != null ? D : "",
|
13963
|
+
const y = (O = (A = (k = _.kgTable.selectedRows) == null ? void 0 : k.value) == null ? void 0 : A[0]) != null ? O : null, F = (D = y == null ? void 0 : y[m.value]) != null ? D : "", L = y ? [y] : [], N = [F];
|
13956
13964
|
if (await c.kgForm.store.emit(c.kgForm.formID, "lookupBeforeOk", {
|
13957
13965
|
context: o,
|
13958
13966
|
isMultiple: !1,
|
13959
13967
|
row: y,
|
13960
|
-
rows:
|
13968
|
+
rows: L,
|
13961
13969
|
value: F,
|
13962
13970
|
values: N,
|
13963
13971
|
var_nam: u
|
@@ -13968,7 +13976,7 @@ const getProps$H = () => ({
|
|
13968
13976
|
isMultiple: !1,
|
13969
13977
|
model: l,
|
13970
13978
|
row: y,
|
13971
|
-
rows:
|
13979
|
+
rows: L,
|
13972
13980
|
value: F,
|
13973
13981
|
values: N,
|
13974
13982
|
var_nam: u
|
@@ -14210,32 +14218,32 @@ function _useFormRules(e) {
|
|
14210
14218
|
return Promise.resolve();
|
14211
14219
|
}
|
14212
14220
|
function p(A, O) {
|
14213
|
-
var y, F,
|
14221
|
+
var y, F, L, N, V, w, K, P;
|
14214
14222
|
if (c(O))
|
14215
14223
|
return Promise.resolve();
|
14216
14224
|
const D = Number(O);
|
14217
|
-
return !isNil((y = n.value) == null ? void 0 : y.min) && ((F = n.value) == null ? void 0 : F.min_include_flg) === 1 && D < ((
|
14225
|
+
return !isNil((y = n.value) == null ? void 0 : y.min) && ((F = n.value) == null ? void 0 : F.min_include_flg) === 1 && D < ((L = n.value) == null ? void 0 : L.min) ? Promise.reject(a.t("kg.KgFormItem.formValidationMessageForGTE", [(N = n.value) == null ? void 0 : N.min])) : !isNil((V = n.value) == null ? void 0 : V.min) && ((w = n.value) == null ? void 0 : w.min_include_flg) !== 1 && D <= ((K = n.value) == null ? void 0 : K.min) ? Promise.reject(a.t("kg.KgFormItem.formValidationMessageForGT", [(P = n.value) == null ? void 0 : P.min])) : Promise.resolve();
|
14218
14226
|
}
|
14219
14227
|
function E(A, O) {
|
14220
|
-
var y, F,
|
14228
|
+
var y, F, L, N, V, w, K, P;
|
14221
14229
|
if (c(O))
|
14222
14230
|
return Promise.resolve();
|
14223
14231
|
const D = Number(O);
|
14224
|
-
return !isNil((y = n.value) == null ? void 0 : y.max) && ((F = n.value) == null ? void 0 : F.max_include_flg) === 1 && D > ((
|
14232
|
+
return !isNil((y = n.value) == null ? void 0 : y.max) && ((F = n.value) == null ? void 0 : F.max_include_flg) === 1 && D > ((L = n.value) == null ? void 0 : L.max) ? Promise.reject(a.t("kg.KgFormItem.formValidationMessageForLTE", [(N = n.value) == null ? void 0 : N.max])) : !isNil((V = n.value) == null ? void 0 : V.max) && ((w = n.value) == null ? void 0 : w.max_include_flg) !== 1 && D >= ((K = n.value) == null ? void 0 : K.max) ? Promise.reject(a.t("kg.KgFormItem.formValidationMessageForLT", [(P = n.value) == null ? void 0 : P.max])) : Promise.resolve();
|
14225
14233
|
}
|
14226
14234
|
function T(A, O) {
|
14227
|
-
var y, F,
|
14235
|
+
var y, F, L;
|
14228
14236
|
const D = String(O);
|
14229
|
-
return !isNil((y = n.value) == null ? void 0 : y.min_length) && D.length < ((F = n.value) == null ? void 0 : F.min_length) ? Promise.reject(a.t("kg.KgFormItem.formValidationMessageForMinLength", [(
|
14237
|
+
return !isNil((y = n.value) == null ? void 0 : y.min_length) && D.length < ((F = n.value) == null ? void 0 : F.min_length) ? Promise.reject(a.t("kg.KgFormItem.formValidationMessageForMinLength", [(L = n.value) == null ? void 0 : L.min_length])) : Promise.resolve();
|
14230
14238
|
}
|
14231
14239
|
function C(A, O) {
|
14232
|
-
var y, F,
|
14240
|
+
var y, F, L;
|
14233
14241
|
const D = String(O);
|
14234
|
-
return !isNil((y = n.value) == null ? void 0 : y.max_length) && D.length > ((F = n.value) == null ? void 0 : F.max_length) ? Promise.reject(a.t("kg.KgFormItem.formValidationMessageForMaxLength", [(
|
14242
|
+
return !isNil((y = n.value) == null ? void 0 : y.max_length) && D.length > ((F = n.value) == null ? void 0 : F.max_length) ? Promise.reject(a.t("kg.KgFormItem.formValidationMessageForMaxLength", [(L = n.value) == null ? void 0 : L.max_length])) : Promise.resolve();
|
14235
14243
|
}
|
14236
14244
|
function k(A, O) {
|
14237
|
-
var
|
14238
|
-
const D = String(O), y = String((
|
14245
|
+
var L;
|
14246
|
+
const D = String(O), y = String((L = n.value) == null ? void 0 : L.regular_expression);
|
14239
14247
|
return y ? new RegExp(y).test(D) ? Promise.resolve() : Promise.reject(a.t("kg.KgFormItem.formValidationMessageForRegularExpression", [y])) : Promise.resolve();
|
14240
14248
|
}
|
14241
14249
|
return {
|
@@ -14314,24 +14322,24 @@ function useKgFormItemSelect(e) {
|
|
14314
14322
|
}), E;
|
14315
14323
|
});
|
14316
14324
|
async function v() {
|
14317
|
-
var O, D, y, F,
|
14325
|
+
var O, D, y, F, L, N, V, w, K, P, G, B, x;
|
14318
14326
|
let E = ref([]);
|
14319
|
-
const T = (O = o.value) == null ? void 0 : O.data_source_type, C = (y = (D = o.value) == null ? void 0 : D.val_clm) != null ? y : "", k = (
|
14327
|
+
const T = (O = o.value) == null ? void 0 : O.data_source_type, C = (y = (D = o.value) == null ? void 0 : D.val_clm) != null ? y : "", k = (L = (F = o.value) == null ? void 0 : F.lbl_clm) != null ? L : "", A = ref({});
|
14320
14328
|
try {
|
14321
14329
|
_.value = !0;
|
14322
|
-
const
|
14330
|
+
const Y = KgUtil.parseParams(b.value, null, r);
|
14323
14331
|
if (!await s.kgForm.store.emit(s.formID, "selectBeforeRequest", {
|
14324
14332
|
context: (N = a.kgContext) != null ? N : KG_FORM_CONTEXT.SUBMIT,
|
14325
|
-
params:
|
14333
|
+
params: Y,
|
14326
14334
|
response: A,
|
14327
14335
|
varName: n
|
14328
14336
|
}))
|
14329
14337
|
switch (T) {
|
14330
14338
|
case KG__VAR_CONFIG_POSSIBILITY__DATA_SOURCE_TYPE.API: {
|
14331
|
-
const
|
14332
|
-
if (!
|
14333
|
-
____ERROR____(
|
14334
|
-
cmd:
|
14339
|
+
const W = (V = o.value) == null ? void 0 : V.cmd, $ = (K = (w = o.value) == null ? void 0 : w.cmd_method) != null ? K : "GET";
|
14340
|
+
if (!W || !C || !k) {
|
14341
|
+
____ERROR____(`${s.formID} | KgFormItemSelect.requestDatas() | \u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.`, {
|
14342
|
+
cmd: W,
|
14335
14343
|
formID: s.formID,
|
14336
14344
|
lbl_clm: k,
|
14337
14345
|
val_clm: C,
|
@@ -14339,21 +14347,21 @@ function useKgFormItemSelect(e) {
|
|
14339
14347
|
});
|
14340
14348
|
return;
|
14341
14349
|
}
|
14342
|
-
A.value = await ((
|
14343
|
-
url:
|
14344
|
-
method:
|
14345
|
-
params:
|
14346
|
-
data:
|
14350
|
+
A.value = await ((P = httpClient()) == null ? void 0 : P.request({
|
14351
|
+
url: W,
|
14352
|
+
method: $,
|
14353
|
+
params: Y,
|
14354
|
+
data: Y
|
14347
14355
|
}, {
|
14348
|
-
|
14349
|
-
|
14356
|
+
dayjs: r,
|
14357
|
+
dynamicQueryOperatorModel: {}
|
14350
14358
|
}));
|
14351
14359
|
break;
|
14352
14360
|
}
|
14353
14361
|
case KG__VAR_CONFIG_POSSIBILITY__DATA_SOURCE_TYPE.SQL: {
|
14354
14362
|
A.value = await ExecuteQuery({
|
14355
14363
|
params: {
|
14356
|
-
id: (B = (
|
14364
|
+
id: (B = (G = o.value) == null ? void 0 : G.id) != null ? B : ""
|
14357
14365
|
}
|
14358
14366
|
});
|
14359
14367
|
break;
|
@@ -14371,13 +14379,13 @@ function useKgFormItemSelect(e) {
|
|
14371
14379
|
break;
|
14372
14380
|
}
|
14373
14381
|
if (E.value.length > 0) {
|
14374
|
-
const
|
14375
|
-
(!(C in
|
14382
|
+
const W = E.value[0];
|
14383
|
+
(!(C in W) || !(k in W)) && ____ERROR____(`${s.formID} | KgFormItemSelect.requestDatas() | \u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217\u6216\u663E\u793A\u5217\u6709\u8BEF.`, {
|
14376
14384
|
formID: s.formID,
|
14377
14385
|
lbl_clm: k,
|
14378
14386
|
val_clm: C,
|
14379
14387
|
varName: n,
|
14380
|
-
\u6240\u6709\u5217: Object.keys(
|
14388
|
+
\u6240\u6709\u5217: Object.keys(W)
|
14381
14389
|
});
|
14382
14390
|
}
|
14383
14391
|
await s.kgForm.store.emit(s.formID, "selectBeforeSetDatas", {
|
@@ -14388,9 +14396,9 @@ function useKgFormItemSelect(e) {
|
|
14388
14396
|
isDeleting: s.isDeleting.value,
|
14389
14397
|
isUpdating: s.isUpdating.value,
|
14390
14398
|
varName: n
|
14391
|
-
}), d.value = E.value.map((
|
14392
|
-
...
|
14393
|
-
id: String(
|
14399
|
+
}), d.value = E.value.map((W, $) => ({
|
14400
|
+
...W,
|
14401
|
+
id: String(W.id || Date.now() + $)
|
14394
14402
|
}));
|
14395
14403
|
} catch {
|
14396
14404
|
} finally {
|
@@ -14410,22 +14418,22 @@ function useKgFormItemSelect(e) {
|
|
14410
14418
|
break;
|
14411
14419
|
case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.NUMBER:
|
14412
14420
|
E.forEach((F) => {
|
14413
|
-
let
|
14414
|
-
Number.isNaN(
|
14421
|
+
let L = Number(F[T]);
|
14422
|
+
Number.isNaN(L) && (L = F[T], ____ERROR____(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${F[T]} \u8F6C\u6362\u4E3A ${C} \u7C7B\u578B`, {
|
14415
14423
|
frm_id: s.formID,
|
14416
14424
|
var_nam: n,
|
14417
14425
|
VarConfigPossibility: o.value
|
14418
|
-
})), F[T] =
|
14426
|
+
})), F[T] = L;
|
14419
14427
|
});
|
14420
14428
|
break;
|
14421
14429
|
case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.BOOLEAN:
|
14422
14430
|
E.forEach((F) => {
|
14423
|
-
let
|
14424
|
-
String(F[T]).toLowerCase() === "true" ?
|
14431
|
+
let L;
|
14432
|
+
String(F[T]).toLowerCase() === "true" ? L = !0 : String(F[T]).toLowerCase() === "false" ? L = !1 : (L = F[T], ____ERROR____(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${F[T]} \u8F6C\u6362\u4E3A ${C} \u7C7B\u578B`, {
|
14425
14433
|
frm_id: s.formID,
|
14426
14434
|
var_nam: n,
|
14427
14435
|
VarConfigPossibility: o.value
|
14428
|
-
})), F[T] =
|
14436
|
+
})), F[T] = L;
|
14429
14437
|
});
|
14430
14438
|
break;
|
14431
14439
|
}
|
@@ -14434,9 +14442,9 @@ function useKgFormItemSelect(e) {
|
|
14434
14442
|
{
|
14435
14443
|
const F = c;
|
14436
14444
|
if ((y = F.value) != null && y.excludeValues)
|
14437
|
-
return E.filter((
|
14445
|
+
return E.filter((L) => {
|
14438
14446
|
var N;
|
14439
|
-
return !((N = F.value.excludeValues) != null && N.includes(
|
14447
|
+
return !((N = F.value.excludeValues) != null && N.includes(L[T]));
|
14440
14448
|
});
|
14441
14449
|
}
|
14442
14450
|
break;
|
@@ -14916,8 +14924,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
14916
14924
|
switch (e.kgMode) {
|
14917
14925
|
case "multiple": {
|
14918
14926
|
if (Array.isArray(C)) {
|
14919
|
-
const
|
14920
|
-
r("kgSelectChange",
|
14927
|
+
const L = (k = toRaw(g.value.filter((N) => C.includes(N[c.value])))) != null ? k : null;
|
14928
|
+
r("kgSelectChange", L), await s.kgForm.store.emit(s.kgForm.formID, "selectChange", {
|
14921
14929
|
context: (A = e.kgContext) != null ? A : KG_FORM_CONTEXT.SUBMIT,
|
14922
14930
|
formModel: e.kgContext === KG_FORM_CONTEXT.SEARCH ? s.kgSearch.formModel : s.kgSubmit.formModel,
|
14923
14931
|
isCopying: s.isCopying.value,
|
@@ -14926,16 +14934,16 @@ const KgFormItemRadioGroup = defineComponent({
|
|
14926
14934
|
isMultiple: !0,
|
14927
14935
|
isUpdating: s.isUpdating.value,
|
14928
14936
|
model: e.kgContext === KG_FORM_CONTEXT.SEARCH ? s.kgSearch.formModel : s.kgSubmit.formModel,
|
14929
|
-
rows:
|
14937
|
+
rows: L,
|
14930
14938
|
values: C,
|
14931
14939
|
var_nam: (O = e.kgVarName) != null ? O : ""
|
14932
|
-
}), n.value[`${e.kgVarName}_obj`] =
|
14940
|
+
}), n.value[`${e.kgVarName}_obj`] = L;
|
14933
14941
|
}
|
14934
14942
|
break;
|
14935
14943
|
}
|
14936
14944
|
default: {
|
14937
|
-
const
|
14938
|
-
r("kgSelectChange",
|
14945
|
+
const L = (D = toRaw(g.value.find((N) => N[c.value] === C))) != null ? D : null;
|
14946
|
+
r("kgSelectChange", L), await s.kgForm.store.emit(s.kgForm.formID, "selectChange", {
|
14939
14947
|
context: (y = e.kgContext) != null ? y : KG_FORM_CONTEXT.SUBMIT,
|
14940
14948
|
formModel: e.kgContext === KG_FORM_CONTEXT.SEARCH ? s.kgSearch.formModel : s.kgSubmit.formModel,
|
14941
14949
|
isCopying: s.isCopying.value,
|
@@ -14944,17 +14952,19 @@ const KgFormItemRadioGroup = defineComponent({
|
|
14944
14952
|
isMultiple: !1,
|
14945
14953
|
isUpdating: s.isUpdating.value,
|
14946
14954
|
model: e.kgContext === KG_FORM_CONTEXT.SEARCH ? s.kgSearch.formModel : s.kgSubmit.formModel,
|
14947
|
-
rows: [
|
14955
|
+
rows: [L],
|
14948
14956
|
values: [C],
|
14949
14957
|
var_nam: (F = e.kgVarName) != null ? F : ""
|
14950
|
-
}), n.value[`${e.kgVarName}_obj`] =
|
14958
|
+
}), n.value[`${e.kgVarName}_obj`] = L;
|
14951
14959
|
break;
|
14952
14960
|
}
|
14953
14961
|
}
|
14954
14962
|
}
|
14955
14963
|
function T(C) {
|
14956
14964
|
var k, A, O;
|
14957
|
-
|
14965
|
+
____DEBUG____(`${s.formID} | ${e.kgVarName} | KgFormItemSelect | onUpdateValue()`, {
|
14966
|
+
value: C
|
14967
|
+
}), r("update:value", C), s.kgForm.store.emit(s.kgForm.formID, "change", {
|
14958
14968
|
context: (k = e.kgContext) != null ? k : KG_FORM_CONTEXT.SUBMIT,
|
14959
14969
|
isCopying: s.isCopying.value,
|
14960
14970
|
isCreating: s.isCreating.value,
|
@@ -15092,25 +15102,25 @@ const KgFormItem = defineComponent({
|
|
15092
15102
|
provide(KG__DI__KG_FORM_ITEM__VAR_NAME, e.kgVarName), provide(KG__DI__KG_FORM_ITEM__CONTEXT, e.kgContext);
|
15093
15103
|
const u = useKgVar();
|
15094
15104
|
u.kgForm.onLookupOk(async ({
|
15095
|
-
var_nam:
|
15096
|
-
model:
|
15105
|
+
var_nam: P,
|
15106
|
+
model: G,
|
15097
15107
|
isMultiple: B,
|
15098
15108
|
values: x
|
15099
15109
|
}) => {
|
15100
|
-
var
|
15101
|
-
switch (
|
15110
|
+
var Y, z, W, $, H;
|
15111
|
+
switch (P) {
|
15102
15112
|
case e.kgVarName: {
|
15103
|
-
if (
|
15113
|
+
if (G.value) {
|
15104
15114
|
let Q;
|
15105
|
-
B ? Q = x : Q = (
|
15115
|
+
B ? Q = x : Q = (Y = x == null ? void 0 : x[0]) != null ? Y : null, G.value[e.kgVarName] = Q, u.kgForm.store.emit(u.kgForm.formID, "change", {
|
15106
15116
|
context: (z = e.kgContext) != null ? z : KG_FORM_CONTEXT.SUBMIT,
|
15107
15117
|
isCopying: u.isCopying.value,
|
15108
15118
|
isCreating: u.isCreating.value,
|
15109
15119
|
isDeleting: u.isDeleting.value,
|
15110
15120
|
isUpdating: u.isUpdating.value,
|
15111
15121
|
value: Q,
|
15112
|
-
varName: (
|
15113
|
-
variableName: (
|
15122
|
+
varName: (W = e.kgVarName) != null ? W : "",
|
15123
|
+
variableName: ($ = e.kgVarName) != null ? $ : ""
|
15114
15124
|
});
|
15115
15125
|
}
|
15116
15126
|
(H = n.value) == null || H.validate([e.kgVarName]);
|
@@ -15149,20 +15159,20 @@ const KgFormItem = defineComponent({
|
|
15149
15159
|
return null;
|
15150
15160
|
}
|
15151
15161
|
}), d = computed(() => {
|
15152
|
-
var
|
15162
|
+
var P, G, B, x, Y;
|
15153
15163
|
switch (e.kgContext) {
|
15154
15164
|
case KG_FORM_CONTEXT.SEARCH:
|
15155
15165
|
return (B = u.kgSubmit.getVarSubmitDetails({
|
15156
|
-
buttonVarName: (
|
15157
|
-
searchProfileVarName: (
|
15166
|
+
buttonVarName: (P = u.kgButton.searchButton.value) == null ? void 0 : P.var_nam,
|
15167
|
+
searchProfileVarName: (G = c.value) == null ? void 0 : G.prf_var_nam,
|
15158
15168
|
varName: e.kgVarName
|
15159
15169
|
})[0]) != null ? B : null;
|
15160
15170
|
case KG_FORM_CONTEXT.SUBMIT:
|
15161
15171
|
case KG_FORM_CONTEXT.TABLE:
|
15162
|
-
return (
|
15172
|
+
return (Y = u.kgSubmit.getVarSubmitDetails({
|
15163
15173
|
buttonVarName: (x = u.kgButton.currentButton.value) == null ? void 0 : x.var_nam,
|
15164
15174
|
varName: e.kgVarName
|
15165
|
-
})[0]) != null ?
|
15175
|
+
})[0]) != null ? Y : null;
|
15166
15176
|
}
|
15167
15177
|
}), {
|
15168
15178
|
formRules: g,
|
@@ -15170,70 +15180,70 @@ const KgFormItem = defineComponent({
|
|
15170
15180
|
} = _useFormRules(e), {
|
15171
15181
|
controlType: b
|
15172
15182
|
} = useKgFormItem(e), v = computed(() => {
|
15173
|
-
var
|
15183
|
+
var G;
|
15174
15184
|
if (u.isRetrieving.value)
|
15175
15185
|
return !0;
|
15176
|
-
let
|
15177
|
-
return e.kgDisabled !== void 0 ?
|
15186
|
+
let P = !1;
|
15187
|
+
return e.kgDisabled !== void 0 ? P = e.kgDisabled : P = ((G = d.value) == null ? void 0 : G.enable_flag) === 0, P;
|
15178
15188
|
}), p = computed(() => {
|
15179
|
-
var
|
15180
|
-
let
|
15181
|
-
return e.kgPlaceholder ?
|
15189
|
+
var G, B;
|
15190
|
+
let P = " ";
|
15191
|
+
return e.kgPlaceholder ? P = e.kgPlaceholder : P = u.t((B = (G = d.value) == null ? void 0 : G.placeholder) != null ? B : " ").value, P;
|
15182
15192
|
}), E = computed(() => {
|
15183
|
-
var
|
15184
|
-
let
|
15193
|
+
var G, B, x, Y;
|
15194
|
+
let P = KG__SPAN._12;
|
15185
15195
|
if (e.kgSpan !== void 0)
|
15186
|
-
|
15196
|
+
P = e.kgSpan;
|
15187
15197
|
else
|
15188
15198
|
switch (e.kgContext) {
|
15189
15199
|
case KG_FORM_CONTEXT.SEARCH:
|
15190
|
-
|
15200
|
+
P = (B = (G = d.value) == null ? void 0 : G.width) != null ? B : KG__SPAN._6;
|
15191
15201
|
break;
|
15192
15202
|
case KG_FORM_CONTEXT.SUBMIT:
|
15193
|
-
|
15203
|
+
P = (Y = (x = d.value) == null ? void 0 : x.width) != null ? Y : KG__SPAN._12;
|
15194
15204
|
break;
|
15195
15205
|
case KG_FORM_CONTEXT.TABLE:
|
15196
15206
|
break;
|
15197
15207
|
}
|
15198
|
-
return
|
15208
|
+
return P = Number(P), P;
|
15199
15209
|
}), T = computed(() => {
|
15200
|
-
var
|
15201
|
-
let
|
15210
|
+
var G, B, x, Y;
|
15211
|
+
let P = null;
|
15202
15212
|
if (e.kgSpan !== void 0)
|
15203
|
-
|
15213
|
+
P = e.kgSpan;
|
15204
15214
|
else
|
15205
15215
|
switch (e.kgContext) {
|
15206
15216
|
case KG_FORM_CONTEXT.SEARCH:
|
15207
|
-
|
15217
|
+
P = (B = (G = d.value) == null ? void 0 : G.width) != null ? B : null;
|
15208
15218
|
break;
|
15209
15219
|
case KG_FORM_CONTEXT.SUBMIT:
|
15210
|
-
|
15220
|
+
P = (Y = (x = d.value) == null ? void 0 : x.width) != null ? Y : null;
|
15211
15221
|
break;
|
15212
15222
|
case KG_FORM_CONTEXT.TABLE:
|
15213
|
-
|
15223
|
+
P = null;
|
15214
15224
|
break;
|
15215
15225
|
}
|
15216
|
-
return
|
15226
|
+
return P = Number(P), P;
|
15217
15227
|
}), C = computed(() => {
|
15218
|
-
var x,
|
15219
|
-
const
|
15220
|
-
if (
|
15228
|
+
var x, Y;
|
15229
|
+
const P = get(F.value, "$el.parentElement");
|
15230
|
+
if (P && !((x = P.classList) != null && x.contains("ant-row")))
|
15221
15231
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
15222
|
-
let
|
15223
|
-
const B = Math.abs(Number.parseInt((
|
15224
|
-
return Number.isNaN(B) || (
|
15232
|
+
let G = {};
|
15233
|
+
const B = Math.abs(Number.parseInt((Y = get(F.value, "$el.parentElement.style.marginLeft")) != null ? Y : "0px"));
|
15234
|
+
return Number.isNaN(B) || (G = {
|
15225
15235
|
paddingLeft: `${B}px !important`,
|
15226
15236
|
paddingRight: `${B}px !important`
|
15227
|
-
}),
|
15237
|
+
}), G;
|
15228
15238
|
}), k = computed(() => {
|
15229
|
-
var
|
15230
|
-
let
|
15231
|
-
return o.value && (
|
15239
|
+
var G;
|
15240
|
+
let P = "kg-form-item";
|
15241
|
+
return o.value && (P += " kg-form-item-lookup"), T.value && (P += " kg-form-item--col-fixed"), ((G = d.value) == null ? void 0 : G.visible_flag) === 0 && (P += " kg-form-item--invisible"), P;
|
15232
15242
|
}), A = computed(() => {
|
15233
|
-
var
|
15234
|
-
const
|
15243
|
+
var G;
|
15244
|
+
const P = {
|
15235
15245
|
...e,
|
15236
|
-
value: (
|
15246
|
+
value: (G = r.value) == null ? void 0 : G[e.kgVarName],
|
15237
15247
|
"onUpdate:value": (B) => {
|
15238
15248
|
r.value && (r.value[e.kgVarName] = B);
|
15239
15249
|
},
|
@@ -15247,37 +15257,37 @@ const KgFormItem = defineComponent({
|
|
15247
15257
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.SELECT:
|
15248
15258
|
break;
|
15249
15259
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.SELECT_MULTIPLE:
|
15250
|
-
|
15260
|
+
P.kgMode = "multiple";
|
15251
15261
|
break;
|
15252
15262
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.SWITCH:
|
15253
15263
|
break;
|
15254
15264
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATE:
|
15255
|
-
|
15265
|
+
P.kgShowTime = !1;
|
15256
15266
|
break;
|
15257
15267
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATE_RANGE:
|
15258
|
-
|
15268
|
+
P.kgShowTime = !1;
|
15259
15269
|
break;
|
15260
15270
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_TIME:
|
15261
|
-
|
15271
|
+
P.kgPicker = "time";
|
15262
15272
|
break;
|
15263
15273
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_TIME_RANGE:
|
15264
|
-
|
15274
|
+
P.kgPicker = "time";
|
15265
15275
|
break;
|
15266
15276
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATETIME:
|
15267
|
-
|
15277
|
+
P.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
15268
15278
|
break;
|
15269
15279
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATETIME_RANGE:
|
15270
|
-
|
15280
|
+
P.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
15271
15281
|
break;
|
15272
15282
|
}
|
15273
|
-
return
|
15283
|
+
return P;
|
15274
15284
|
}), O = computed(() => {
|
15275
|
-
var
|
15276
|
-
if (!((
|
15285
|
+
var P, G, B;
|
15286
|
+
if (!((P = s.value) != null && P.tip))
|
15277
15287
|
return !1;
|
15278
15288
|
switch (e.kgContext) {
|
15279
15289
|
case KG_FORM_CONTEXT.SEARCH: {
|
15280
|
-
if (u.kgSubmit.searchVarSubmitConfig$Layout.value === KG__VAR_SUBMIT_CONFIG__LAYOUT.VERTICAL && ((
|
15290
|
+
if (u.kgSubmit.searchVarSubmitConfig$Layout.value === KG__VAR_SUBMIT_CONFIG__LAYOUT.VERTICAL && ((G = s.value) == null ? void 0 : G.placement) === KG__VAR_CONFIG_TIP__PLACEMENT.BOTTOM)
|
15281
15291
|
return !1;
|
15282
15292
|
break;
|
15283
15293
|
}
|
@@ -15290,12 +15300,12 @@ const KgFormItem = defineComponent({
|
|
15290
15300
|
}
|
15291
15301
|
return !0;
|
15292
15302
|
}), D = computed(() => {
|
15293
|
-
var
|
15294
|
-
if (!((
|
15303
|
+
var P, G, B;
|
15304
|
+
if (!((P = s.value) != null && P.tip))
|
15295
15305
|
return !1;
|
15296
15306
|
switch (e.kgContext) {
|
15297
15307
|
case KG_FORM_CONTEXT.SEARCH: {
|
15298
|
-
if (u.kgSubmit.searchVarSubmitConfig$Layout.value === KG__VAR_SUBMIT_CONFIG__LAYOUT.VERTICAL && ((
|
15308
|
+
if (u.kgSubmit.searchVarSubmitConfig$Layout.value === KG__VAR_SUBMIT_CONFIG__LAYOUT.VERTICAL && ((G = s.value) == null ? void 0 : G.placement) === KG__VAR_CONFIG_TIP__PLACEMENT.BOTTOM)
|
15299
15309
|
return !0;
|
15300
15310
|
break;
|
15301
15311
|
}
|
@@ -15308,7 +15318,7 @@ const KgFormItem = defineComponent({
|
|
15308
15318
|
}
|
15309
15319
|
return !1;
|
15310
15320
|
}), y = computed(() => encodeURIComponent(`${e.kgContext}~${u.formID}~${e.kgVarName}`)), F = ref(null);
|
15311
|
-
function
|
15321
|
+
function L() {
|
15312
15322
|
return m.value ? null : createVNode(Form.Item, {
|
15313
15323
|
name: e.kgVarName,
|
15314
15324
|
rules: g.value,
|
@@ -15318,7 +15328,7 @@ const KgFormItem = defineComponent({
|
|
15318
15328
|
kgDisabled: v.value,
|
15319
15329
|
kgControlType: b.value
|
15320
15330
|
}, null), N(), w(), K()]),
|
15321
|
-
label: () =>
|
15331
|
+
label: () => V()
|
15322
15332
|
});
|
15323
15333
|
}
|
15324
15334
|
function N() {
|
@@ -15370,8 +15380,8 @@ const KgFormItem = defineComponent({
|
|
15370
15380
|
return createVNode(KgFormItemInput, A.value, null);
|
15371
15381
|
}
|
15372
15382
|
}
|
15373
|
-
function
|
15374
|
-
var
|
15383
|
+
function V() {
|
15384
|
+
var P, G;
|
15375
15385
|
return e.kgShowLabel ? createVNode("div", null, [createVNode("div", null, [createVNode("label", {
|
15376
15386
|
class: "title",
|
15377
15387
|
title: u.t(e.kgVarName).value,
|
@@ -15389,12 +15399,12 @@ const KgFormItem = defineComponent({
|
|
15389
15399
|
}
|
15390
15400
|
})]), D.value && createVNode("div", {
|
15391
15401
|
class: "tip",
|
15392
|
-
innerHTML: (
|
15402
|
+
innerHTML: (G = (P = s.value) == null ? void 0 : P.tip) != null ? G : ""
|
15393
15403
|
}, null)]) : null;
|
15394
15404
|
}
|
15395
15405
|
function w() {
|
15396
|
-
var
|
15397
|
-
return !o.value || !((
|
15406
|
+
var P;
|
15407
|
+
return !o.value || !((P = o.value) != null && P.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
15398
15408
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
15399
15409
|
kgDisabled: v.value,
|
15400
15410
|
kgLookupID: o.value.lkp_id
|
@@ -15414,19 +15424,19 @@ const KgFormItem = defineComponent({
|
|
15414
15424
|
});
|
15415
15425
|
}
|
15416
15426
|
return () => {
|
15417
|
-
var
|
15418
|
-
let
|
15427
|
+
var G, B;
|
15428
|
+
let P;
|
15419
15429
|
return u.isRetrieving.value ? null : createVNode(Col, {
|
15420
15430
|
"kg-form_id": u.formID,
|
15421
15431
|
"kg-var_name": e.kgVarName,
|
15422
|
-
"kg-lkp_id": (
|
15432
|
+
"kg-lkp_id": (G = o.value) == null ? void 0 : G.lkp_id,
|
15423
15433
|
"kg-ret_fld": (B = o.value) == null ? void 0 : B.ret_fld,
|
15424
15434
|
ref: F,
|
15425
15435
|
class: k.value,
|
15426
15436
|
span: E.value,
|
15427
15437
|
style: C.value
|
15428
|
-
}, _isSlot$a(
|
15429
|
-
default: () => [
|
15438
|
+
}, _isSlot$a(P = L()) ? P : {
|
15439
|
+
default: () => [P]
|
15430
15440
|
});
|
15431
15441
|
};
|
15432
15442
|
}
|
@@ -15829,7 +15839,7 @@ const getProps$B = () => ({
|
|
15829
15839
|
const r = inject("$dayjs", dayjs), n = inject(KG__DI__KG_VAR__KG_SLOTS, null);
|
15830
15840
|
inject(KG__DI__KG_VAR__KG_PROPS, null);
|
15831
15841
|
const u = useKg(), s = useKgVar();
|
15832
|
-
s.kgButton.onSubmitSave(async () => (await
|
15842
|
+
s.kgButton.onSubmitSave(async () => (await G(), !1)), s.kgButton.onSubmitCancel(async () => (await P(), !1)), _useFormModel$1();
|
15833
15843
|
const o = computed(() => s.isDeleting.value && s.kgSubmit.currentVarSubmitDetailsForKey.value.length === 0 && s.kgSubmit.currentVarSubmitDetailsForNotKey.value.length === 0), l = computed(() => s.kgSubmit.store.isLoading(s.formID)), c = computed(() => s.kgButton.isCurrentButtonRequesting.value || !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), _ = computed(() => c.value || l.value), d = computed(() => l.value), g = ref(!1), m = computed(() => {
|
15834
15844
|
var ee;
|
15835
15845
|
return o.value ? SUBMIT_DEFAULT_MIN_WIDTH : (ee = s.kgSubmit.currentVarSubmitConfig.value) == null ? void 0 : ee.min_width;
|
@@ -15874,7 +15884,7 @@ const getProps$B = () => ({
|
|
15874
15884
|
default:
|
15875
15885
|
return;
|
15876
15886
|
}
|
15877
|
-
}),
|
15887
|
+
}), L = computed(() => {
|
15878
15888
|
var ee, ae;
|
15879
15889
|
switch (s.kgSubmit.currentVarSubmitConfig$Layout.value) {
|
15880
15890
|
case KG__VAR_SUBMIT_CONFIG__LAYOUT.HORIZONTAL:
|
@@ -15892,7 +15902,7 @@ const getProps$B = () => ({
|
|
15892
15902
|
}), N = computed(() => {
|
15893
15903
|
var ee, ae;
|
15894
15904
|
return (ee = s.kgSubmit.currentVarSubmitConfig$Props.value.okButton) != null && ee.textVarName ? s.t((ae = s.kgSubmit.currentVarSubmitConfig$Props.value.okButton) == null ? void 0 : ae.textVarName).value : u.t("kg.ok");
|
15895
|
-
}),
|
15905
|
+
}), V = ref([(de = s.kgSubmit.currentVarSubmitDetailSectionsForVisible.value[0]) != null ? de : ""]);
|
15896
15906
|
watch(A, (ee, ae) => {
|
15897
15907
|
ee === !0 && w(), ae === !0 && ee === !1 && K();
|
15898
15908
|
}, {
|
@@ -15908,8 +15918,8 @@ const getProps$B = () => ({
|
|
15908
15918
|
}))
|
15909
15919
|
return new Promise((ae, q) => {
|
15910
15920
|
var I;
|
15911
|
-
const
|
15912
|
-
U && Object.keys(U).length > 0 && (setTimeout(() =>
|
15921
|
+
const M = watch(s.kgSubmit.formModel, async (U) => {
|
15922
|
+
U && Object.keys(U).length > 0 && (setTimeout(() => M()), await s.kgSubmit.store.emit(s.formID, "open", {
|
15913
15923
|
isCopying: s.isCopying.value,
|
15914
15924
|
isCreating: s.isCreating.value,
|
15915
15925
|
isDeleting: s.isDeleting.value,
|
@@ -15926,10 +15936,10 @@ const getProps$B = () => ({
|
|
15926
15936
|
async function K() {
|
15927
15937
|
await s.kgSubmit.store.emit(s.formID, "close", null);
|
15928
15938
|
}
|
15929
|
-
async function
|
15939
|
+
async function P() {
|
15930
15940
|
s.kgButton.setCurrentButton(null);
|
15931
15941
|
}
|
15932
|
-
async function
|
15942
|
+
async function G() {
|
15933
15943
|
var ee, ae;
|
15934
15944
|
try {
|
15935
15945
|
if (!s.kgSubmit.formRef.value || await s.kgSubmit.store.emit(s.formID, "beforeOk", {
|
@@ -15964,13 +15974,13 @@ const getProps$B = () => ({
|
|
15964
15974
|
await x();
|
15965
15975
|
break;
|
15966
15976
|
case s.isCopying.value:
|
15967
|
-
await
|
15977
|
+
await Y();
|
15968
15978
|
break;
|
15969
15979
|
case s.isDeleting.value:
|
15970
15980
|
await z();
|
15971
15981
|
break;
|
15972
15982
|
default: {
|
15973
|
-
await
|
15983
|
+
await W();
|
15974
15984
|
break;
|
15975
15985
|
}
|
15976
15986
|
}
|
@@ -15982,7 +15992,7 @@ const getProps$B = () => ({
|
|
15982
15992
|
}
|
15983
15993
|
}
|
15984
15994
|
async function B() {
|
15985
|
-
var ee, ae, q,
|
15995
|
+
var ee, ae, q, M, I, U, J, re, ne, ie;
|
15986
15996
|
s.store.setIsCreatingRequesting(s.formID, !0);
|
15987
15997
|
try {
|
15988
15998
|
let ue = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((ae = (ee = s.varButtonCreate.value) == null ? void 0 : ee.cmd_prm) != null ? ae : ""), s.formID, r)), le = ref(KgUtil.parseParams(toRaw(s.kgSubmit.formModel.value), s.formID, r));
|
@@ -16001,7 +16011,7 @@ const getProps$B = () => ({
|
|
16001
16011
|
const X = (q = s.varButtonCreate.value) == null ? void 0 : q.cmd;
|
16002
16012
|
if (!X)
|
16003
16013
|
throw message.error(u.t("\u300C\u521B\u5EFA\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u521B\u5EFA\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
16004
|
-
le.value.selectedRows = (
|
16014
|
+
le.value.selectedRows = (M = s.kgTable.selectedRows.value) != null ? M : [];
|
16005
16015
|
const te = (U = (I = s.varButtonCreate.value) == null ? void 0 : I.cmd_method) != null ? U : "POST", me = await httpClient().request({
|
16006
16016
|
url: X,
|
16007
16017
|
method: te,
|
@@ -16030,7 +16040,7 @@ const getProps$B = () => ({
|
|
16030
16040
|
}
|
16031
16041
|
}
|
16032
16042
|
async function x() {
|
16033
|
-
var ee, ae, q,
|
16043
|
+
var ee, ae, q, M, I, U, J, re, ne, ie;
|
16034
16044
|
try {
|
16035
16045
|
s.store.setIsUpdatingRequesting(s.formID, !0);
|
16036
16046
|
let ue = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((ae = (ee = s.varButtonUpdate.value) == null ? void 0 : ee.cmd_prm) != null ? ae : ""), s.formID, r)), le = ref(KgUtil.parseParams(toRaw(s.kgSubmit.formModel.value), s.formID, r));
|
@@ -16049,7 +16059,7 @@ const getProps$B = () => ({
|
|
16049
16059
|
const X = (q = s.varButtonUpdate.value) == null ? void 0 : q.cmd;
|
16050
16060
|
if (!X)
|
16051
16061
|
throw message.error(u.t("\u300C\u66F4\u65B0\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u66F4\u65B0\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
16052
|
-
le.value.selectedRows = (
|
16062
|
+
le.value.selectedRows = (M = s.kgTable.selectedRows.value) != null ? M : [];
|
16053
16063
|
const te = (U = (I = s.varButtonUpdate.value) == null ? void 0 : I.cmd_method) != null ? U : "POST", me = await httpClient().request({
|
16054
16064
|
url: X,
|
16055
16065
|
method: te,
|
@@ -16077,15 +16087,15 @@ const getProps$B = () => ({
|
|
16077
16087
|
s.store.setIsUpdatingRequesting(s.formID, !1);
|
16078
16088
|
}
|
16079
16089
|
}
|
16080
|
-
async function
|
16081
|
-
var ee, ae, q,
|
16090
|
+
async function Y() {
|
16091
|
+
var ee, ae, q, M, I, U, J, re, ne, ie, ue, le;
|
16082
16092
|
try {
|
16083
16093
|
s.store.setIsCopyingRequesting(s.formID, !0);
|
16084
16094
|
let se = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((ae = (ee = s.varButtonCopy.value) == null ? void 0 : ee.cmd_prm) != null ? ae : ""), s.formID, r)), X = ref(KgUtil.parseParams({
|
16085
16095
|
...(q = s.kgTable.selectedFirstRow.value) != null ? q : {},
|
16086
16096
|
...toRaw(s.kgSubmit.formModel.value)
|
16087
16097
|
}, s.formID, r));
|
16088
|
-
if (((
|
16098
|
+
if (((M = s.kgSubmit.currentVarSubmitConfig.value) == null ? void 0 : M.set_id_to_null_flag) !== 0 && delete X.value.id, await s.kgSubmit.store.emit(s.formID, "beforeRequest", {
|
16089
16099
|
isCreating: s.isCreating.value,
|
16090
16100
|
isUpdating: s.isUpdating.value,
|
16091
16101
|
isCopying: s.isCopying.value,
|
@@ -16129,11 +16139,11 @@ const getProps$B = () => ({
|
|
16129
16139
|
}
|
16130
16140
|
}
|
16131
16141
|
async function z() {
|
16132
|
-
var ee, ae, q,
|
16142
|
+
var ee, ae, q, M, I, U, J, re, ne, ie, ue, le, se;
|
16133
16143
|
try {
|
16134
16144
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
16135
16145
|
let X = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((ae = (ee = s.varButtonDelete.value) == null ? void 0 : ee.cmd_prm) != null ? ae : ""), s.formID, r)), te = ref((q = s.kgTable.selectedRows.value) != null ? q : []);
|
16136
|
-
if (((
|
16146
|
+
if (((M = s.varButtonDelete.value) == null ? void 0 : M.del_param_clm) !== "__kg__new_delete_param" && (X = ref({
|
16137
16147
|
ids: (U = (I = s.kgTable.selectedRows.value) == null ? void 0 : I.map((he) => {
|
16138
16148
|
var pe, ve, be;
|
16139
16149
|
return (be = he[(ve = (pe = s.varButtonDelete.value) == null ? void 0 : pe.del_param_clm) != null ? ve : "id"]) != null ? be : "";
|
@@ -16182,8 +16192,8 @@ const getProps$B = () => ({
|
|
16182
16192
|
s.store.setIsDeletingRequesting(s.formID, !1);
|
16183
16193
|
}
|
16184
16194
|
}
|
16185
|
-
async function
|
16186
|
-
var ee, ae, q,
|
16195
|
+
async function W() {
|
16196
|
+
var ee, ae, q, M;
|
16187
16197
|
try {
|
16188
16198
|
s.kgButton.setIsCurrentButtonRequesting({
|
16189
16199
|
isRequesting: !0
|
@@ -16212,7 +16222,7 @@ const getProps$B = () => ({
|
|
16212
16222
|
params: U.value,
|
16213
16223
|
data: J.value,
|
16214
16224
|
headers: {
|
16215
|
-
[KG_HTTP_HEADERS.KG_BUTTON_VAR_NAME]: (
|
16225
|
+
[KG_HTTP_HEADERS.KG_BUTTON_VAR_NAME]: (M = I == null ? void 0 : I.var_nam) != null ? M : "",
|
16216
16226
|
[KG_HTTP_HEADERS.KG_FORM_ID]: s.formID
|
16217
16227
|
}
|
16218
16228
|
});
|
@@ -16235,17 +16245,17 @@ const getProps$B = () => ({
|
|
16235
16245
|
});
|
16236
16246
|
}
|
16237
16247
|
}
|
16238
|
-
function
|
16248
|
+
function $(ee) {
|
16239
16249
|
var I, U, J, re;
|
16240
|
-
const ae = ee.var_nam, q = (U = (I = n == null ? void 0 : n.KgSubmit) == null ? void 0 : I["KgForm.Item.control"]) == null ? void 0 : U[ae],
|
16250
|
+
const ae = ee.var_nam, q = (U = (I = n == null ? void 0 : n.KgSubmit) == null ? void 0 : I["KgForm.Item.control"]) == null ? void 0 : U[ae], M = (re = (J = n == null ? void 0 : n.KgSubmit) == null ? void 0 : J["KgForm.Item.controlRight"]) == null ? void 0 : re[ae];
|
16241
16251
|
return createVNode(KgForm.Item, {
|
16242
16252
|
key: ae,
|
16243
16253
|
kgVarName: ae,
|
16244
16254
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
16245
|
-
onKgSubmit:
|
16255
|
+
onKgSubmit: G
|
16246
16256
|
}, {
|
16247
16257
|
control: isFunction$3(q) ? (ne) => q(ne) : void 0,
|
16248
|
-
controlRight: isFunction$3(
|
16258
|
+
controlRight: isFunction$3(M) ? (ne) => M(ne) : void 0
|
16249
16259
|
});
|
16250
16260
|
}
|
16251
16261
|
function H() {
|
@@ -16255,11 +16265,11 @@ const getProps$B = () => ({
|
|
16255
16265
|
let ee, ae;
|
16256
16266
|
return createVNode(Fragment, null, [s.kgSubmit.currentVarSubmitDetailsForKey.value.length > 0 && createVNode(Row, {
|
16257
16267
|
gutter: 12
|
16258
|
-
}, _isSlot$9(ee = s.kgSubmit.currentVarSubmitDetailsForKey.value.map(
|
16268
|
+
}, _isSlot$9(ee = s.kgSubmit.currentVarSubmitDetailsForKey.value.map($)) ? ee : {
|
16259
16269
|
default: () => [ee]
|
16260
16270
|
}), s.kgSubmit.currentVarSubmitDetailsForKeyAndVisible.value.length > 0 && s.kgSubmit.currentVarSubmitDetailsForNotKeyAndVisible.value.length > 0 && createVNode(Divider, null, null), s.kgSubmit.currentVarSubmitDetailsForNotKey.value.length > 0 && createVNode(Row, {
|
16261
16271
|
gutter: 12
|
16262
|
-
}, _isSlot$9(ae = s.kgSubmit.currentVarSubmitDetailsForNotKey.value.map(
|
16272
|
+
}, _isSlot$9(ae = s.kgSubmit.currentVarSubmitDetailsForNotKey.value.map($)) ? ae : {
|
16263
16273
|
default: () => [ae]
|
16264
16274
|
}), o.value && createVNode("div", {
|
16265
16275
|
style: "text-align: center; padding: 6px 0 12px;"
|
@@ -16271,7 +16281,7 @@ const getProps$B = () => ({
|
|
16271
16281
|
class: "section"
|
16272
16282
|
}, [createVNode(Menu, {
|
16273
16283
|
mode: "inline",
|
16274
|
-
selectedKeys:
|
16284
|
+
selectedKeys: V.value,
|
16275
16285
|
onSelect: fe
|
16276
16286
|
}, _isSlot$9(ee = s.kgSubmit.currentVarSubmitDetailSectionsForVisible.value.map((ae) => createVNode(Menu.Item, {
|
16277
16287
|
key: ae
|
@@ -16286,7 +16296,7 @@ const getProps$B = () => ({
|
|
16286
16296
|
}, {
|
16287
16297
|
default: () => {
|
16288
16298
|
var q;
|
16289
|
-
return [(q = s.kgSubmit.currentVarSubmitDetailsForVisible.value.filter((
|
16299
|
+
return [(q = s.kgSubmit.currentVarSubmitDetailsForVisible.value.filter((M) => M.section === ae)) == null ? void 0 : q.map($)];
|
16290
16300
|
}
|
16291
16301
|
})]))])]);
|
16292
16302
|
}
|
@@ -16301,7 +16311,7 @@ const getProps$B = () => ({
|
|
16301
16311
|
model: (ee = s.kgSubmit.formModel.value) != null ? ee : void 0,
|
16302
16312
|
layout: s.kgSubmit.currentVarSubmitConfig$Layout.value,
|
16303
16313
|
labelCol: F.value,
|
16304
|
-
wrapperCol:
|
16314
|
+
wrapperCol: L.value
|
16305
16315
|
}, {
|
16306
16316
|
default: () => [createVNode("div", {
|
16307
16317
|
ref: T
|
@@ -16316,7 +16326,7 @@ const getProps$B = () => ({
|
|
16316
16326
|
type: "primary",
|
16317
16327
|
ghost: !_.value,
|
16318
16328
|
disabled: _.value,
|
16319
|
-
onClick:
|
16329
|
+
onClick: P
|
16320
16330
|
}, _isSlot$9(ee = u.t("kg.cancel")) ? ee : {
|
16321
16331
|
default: () => [ee]
|
16322
16332
|
}), createVNode(Button, {
|
@@ -16324,7 +16334,7 @@ const getProps$B = () => ({
|
|
16324
16334
|
disabled: d.value,
|
16325
16335
|
loading: c.value,
|
16326
16336
|
danger: !!s.isDeleting.value,
|
16327
|
-
onClick:
|
16337
|
+
onClick: G
|
16328
16338
|
}, {
|
16329
16339
|
default: () => [N.value]
|
16330
16340
|
})]);
|
@@ -16336,7 +16346,7 @@ const getProps$B = () => ({
|
|
16336
16346
|
}, null);
|
16337
16347
|
}
|
16338
16348
|
function fe(ee) {
|
16339
|
-
|
16349
|
+
V.value = ee.selectedKeys;
|
16340
16350
|
}
|
16341
16351
|
return onUnmounted(async () => {
|
16342
16352
|
s.kgSubmit.store.dispose(s.formID), await K();
|
@@ -16357,7 +16367,7 @@ const getProps$B = () => ({
|
|
16357
16367
|
kgMaxHeight: p.value,
|
16358
16368
|
kgIsShowFullscreenButton: E.value,
|
16359
16369
|
kgIsDefaultFullscreen: g.value,
|
16360
|
-
onCancel:
|
16370
|
+
onCancel: P
|
16361
16371
|
}, {
|
16362
16372
|
title: ge,
|
16363
16373
|
default: oe,
|
@@ -18461,29 +18471,67 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
18461
18471
|
setup(e) {
|
18462
18472
|
var v, p;
|
18463
18473
|
const a = (p = inject(KG__DI__FORM_ID, null)) != null ? p : (v = inject(KG__DI__KG_VAR_CONFIG__HOST_FORM_ID, null)) == null ? void 0 : v.value, r = useKg(), n = useKgVar(a), u = useKgVar(FORM_ID__TABLE__VAR_GRID_MASTER);
|
18464
|
-
u.kgSearch.onReady(async () => (u.kgSearch.formModel.value && (u.kgSearch.formModel.value.frm_id = n.formID), !1)), u.
|
18474
|
+
u.kgSearch.onReady(async () => (u.kgSearch.formModel.value && (u.kgSearch.formModel.value.frm_id = n.formID), !1)), u.kgForm.onSelectBeforeRequest(async ({
|
18475
|
+
context: E,
|
18476
|
+
response: T,
|
18477
|
+
varName: C
|
18478
|
+
}) => {
|
18479
|
+
var k, A, O, D, y, F, L, N, V, w, K, P, G, B, x, Y;
|
18480
|
+
switch (E) {
|
18481
|
+
case KG_FORM_CONTEXT.SEARCH: {
|
18482
|
+
switch (C) {
|
18483
|
+
case "usr_id":
|
18484
|
+
return T.value = [{
|
18485
|
+
value: "ALL",
|
18486
|
+
label: r.t("kg.allUser")
|
18487
|
+
}, {
|
18488
|
+
value: (D = (O = (A = (k = r.store).getUseUserStore) == null ? void 0 : A.call(k)) == null ? void 0 : O.userInfo) == null ? void 0 : D.username,
|
18489
|
+
label: (N = (L = (F = (y = r.store).getUseUserStore) == null ? void 0 : F.call(y)) == null ? void 0 : L.userInfo) == null ? void 0 : N.realname
|
18490
|
+
}], !0;
|
18491
|
+
}
|
18492
|
+
break;
|
18493
|
+
}
|
18494
|
+
case KG_FORM_CONTEXT.SUBMIT:
|
18495
|
+
case KG_FORM_CONTEXT.TABLE: {
|
18496
|
+
switch (C) {
|
18497
|
+
case "usr_id":
|
18498
|
+
return T.value = [{
|
18499
|
+
value: "ALL",
|
18500
|
+
label: r.t("kg.allUser")
|
18501
|
+
}, {
|
18502
|
+
value: (P = (K = (w = (V = r.store).getUseUserStore) == null ? void 0 : w.call(V)) == null ? void 0 : K.userInfo) == null ? void 0 : P.username,
|
18503
|
+
label: (Y = (x = (B = (G = r.store).getUseUserStore) == null ? void 0 : B.call(G)) == null ? void 0 : x.userInfo) == null ? void 0 : Y.realname
|
18504
|
+
}], !0;
|
18505
|
+
}
|
18506
|
+
break;
|
18507
|
+
}
|
18508
|
+
}
|
18509
|
+
return !1;
|
18510
|
+
}), u.kgTable.onBeforeSetDatas(async ({
|
18465
18511
|
datas: E
|
18466
|
-
}) => (
|
18512
|
+
}) => (E.value.forEach((T) => {
|
18513
|
+
T.usr_id === "ALL" && (T.usr_id_dsc = r.t("kg.allUser"));
|
18514
|
+
}), transformVarGridMasters(E.value), !1)), u.kgSubmit.onOpen(async () => {
|
18467
18515
|
var E, T, C, k, A, O, D, y;
|
18468
18516
|
switch (s.value = transformVarGridDetails(cloneDeep(toRaw(((E = n.varVariables.value) != null ? E : []).filter((F) => {
|
18469
|
-
var
|
18470
|
-
return ![...(N = (
|
18471
|
-
var
|
18472
|
-
return (
|
18473
|
-
})) != null ? N : [], ...(w = (
|
18474
|
-
var
|
18475
|
-
return (
|
18517
|
+
var L, N, V, w;
|
18518
|
+
return ![...(N = (L = n.varGridMasters.value) == null ? void 0 : L.map((K) => {
|
18519
|
+
var P;
|
18520
|
+
return (P = K.grd_var_nam) != null ? P : "";
|
18521
|
+
})) != null ? N : [], ...(w = (V = n.varProfileMasters.value) == null ? void 0 : V.map((K) => {
|
18522
|
+
var P;
|
18523
|
+
return (P = K.prf_var_nam) != null ? P : "";
|
18476
18524
|
})) != null ? w : [], ...n.kgButton.varButtons.value.map((K) => {
|
18477
|
-
var
|
18478
|
-
return (
|
18525
|
+
var P;
|
18526
|
+
return (P = K.var_nam) != null ? P : "";
|
18479
18527
|
}), ...n.kgButton.varButtons.value.map((K) => {
|
18480
|
-
var
|
18481
|
-
return (
|
18528
|
+
var P;
|
18529
|
+
return (P = K.export_excel_filename) != null ? P : "";
|
18482
18530
|
}), KG__VAR_BUTTON__TYPE.SEARCH, KG__VAR_BUTTON__TYPE.CREATE, KG__VAR_BUTTON__TYPE.UPDATE, KG__VAR_BUTTON__TYPE.COPY, KG__VAR_BUTTON__TYPE.DELETE, KG__VAR_BUTTON__TYPE.IMPORT, KG__VAR_BUTTON__TYPE.IMPORT_TEMPLATE, KG__VAR_BUTTON__TYPE.EXPORT, KG__VAR_BUTTON__TYPE.OTHER].includes(F.var_nam);
|
18483
|
-
}).map((F,
|
18531
|
+
}).map((F, L) => ({
|
18484
18532
|
id: F.var_nam,
|
18485
18533
|
var_nam: F.var_nam,
|
18486
|
-
srtseq:
|
18534
|
+
srtseq: L
|
18487
18535
|
}))))), !0) {
|
18488
18536
|
case u.isCreating.value: {
|
18489
18537
|
o.value = [];
|
@@ -18501,15 +18549,15 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
18501
18549
|
});
|
18502
18550
|
s.value = s.value.map((N) => {
|
18503
18551
|
var w;
|
18504
|
-
const
|
18505
|
-
return
|
18552
|
+
const V = (w = F == null ? void 0 : F.varGridDetails) == null ? void 0 : w.find((K) => K.var_nam === N.var_nam);
|
18553
|
+
return V ? {
|
18506
18554
|
...N,
|
18507
|
-
...
|
18508
|
-
id:
|
18555
|
+
...V,
|
18556
|
+
id: V.var_nam
|
18509
18557
|
} : N;
|
18510
18558
|
});
|
18511
|
-
const
|
18512
|
-
o.value = s.value.filter((N) =>
|
18559
|
+
const L = (A = (k = F == null ? void 0 : F.varGridDetails) == null ? void 0 : k.map((N) => N.var_nam)) != null ? A : [];
|
18560
|
+
o.value = s.value.filter((N) => L.includes(N.var_nam)).map((N) => N.id);
|
18513
18561
|
} catch (F) {
|
18514
18562
|
throw F;
|
18515
18563
|
} finally {
|
@@ -18601,8 +18649,8 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
18601
18649
|
onItemSelect: O
|
18602
18650
|
}) => {
|
18603
18651
|
const D = T.sort((y, F) => {
|
18604
|
-
var
|
18605
|
-
return ((
|
18652
|
+
var L, N;
|
18653
|
+
return ((L = y.srtseq) != null ? L : 0) - ((N = F.srtseq) != null ? N : 0);
|
18606
18654
|
});
|
18607
18655
|
return l.value = D, createVNode(Table, {
|
18608
18656
|
pagination: !1,
|
@@ -18617,7 +18665,7 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
18617
18665
|
dataSource: D,
|
18618
18666
|
customRow: (y) => {
|
18619
18667
|
let F = {
|
18620
|
-
onClick: (
|
18668
|
+
onClick: (L) => b(L, y, E, C)
|
18621
18669
|
};
|
18622
18670
|
return E === "right" && (F["kg-host-frm_id"] = n.formID, F["kg-var_name"] = y.var_nam), F;
|
18623
18671
|
},
|
@@ -18869,7 +18917,7 @@ const getProps$w = () => ({
|
|
18869
18917
|
slots: a,
|
18870
18918
|
emit: r
|
18871
18919
|
}) {
|
18872
|
-
var y, F,
|
18920
|
+
var y, F, L, N, V;
|
18873
18921
|
const n = useKg(), u = useKgVar(), {
|
18874
18922
|
filterVarGridDetailByKey: s
|
18875
18923
|
} = _useServices(), o = ref([]), l = computed(() => o.value.includes("1")), c = ref(""), _ = computed(() => u.kgTable.store.getRowHeight(u.formID)), d = ref({
|
@@ -18877,7 +18925,7 @@ const getProps$w = () => ({
|
|
18877
18925
|
}), g = ref({
|
18878
18926
|
visible: !1
|
18879
18927
|
}), m = computed(() => isNil(e.kgDisabled) ? !!u.isCreating.value || !!u.isCreating.value || !!u.isCreating.value || !!u.isCreating.value : e.kgDisabled), b = ref(null);
|
18880
|
-
_useObserveMenuItemColumns(l), ((
|
18928
|
+
_useObserveMenuItemColumns(l), ((V = (N = (L = (F = (y = n.option.value) == null ? void 0 : y.KgTable) == null ? void 0 : F.Setting) == null ? void 0 : L.columns) == null ? void 0 : N.dragToSort) == null ? void 0 : V.isOn) === !0 && _useDragToSortRow$1({
|
18881
18929
|
columnsRef: b
|
18882
18930
|
}), watch(l, (w) => {
|
18883
18931
|
w || (c.value = "");
|
@@ -18935,15 +18983,15 @@ const getProps$w = () => ({
|
|
18935
18983
|
}, null), createVNode("ul", {
|
18936
18984
|
ref: b,
|
18937
18985
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
18938
|
-
}, [(w = u.currentVarGridDetails.value) == null ? void 0 : w.map((K,
|
18986
|
+
}, [(w = u.currentVarGridDetails.value) == null ? void 0 : w.map((K, P) => createVNode("li", {
|
18939
18987
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
18940
|
-
onClick: (
|
18941
|
-
|
18988
|
+
onClick: (G) => {
|
18989
|
+
G.preventDefault(), G.stopPropagation(), v(K);
|
18942
18990
|
},
|
18943
18991
|
style: {
|
18944
18992
|
display: s(K, c.value) ? "flex" : "none"
|
18945
18993
|
},
|
18946
|
-
"kg-index":
|
18994
|
+
"kg-index": P,
|
18947
18995
|
"kg-var_name": K.var_nam
|
18948
18996
|
}, [createVNode(Checkbox, {
|
18949
18997
|
checked: K.vis_flg === 1,
|
@@ -18952,8 +19000,8 @@ const getProps$w = () => ({
|
|
18952
19000
|
default: () => [createVNode("pre", null, [u.t(K.var_nam).value])]
|
18953
19001
|
}), createVNode(HolderOutlined$1, {
|
18954
19002
|
draggable: !0,
|
18955
|
-
onClick: (
|
18956
|
-
|
19003
|
+
onClick: (G) => {
|
19004
|
+
G.preventDefault(), G.stopPropagation();
|
18957
19005
|
}
|
18958
19006
|
}, null)]))])]);
|
18959
19007
|
},
|
@@ -18967,17 +19015,17 @@ const getProps$w = () => ({
|
|
18967
19015
|
popupClassName: "kg-table--setting--submenu-popup--var-grid-masters"
|
18968
19016
|
}, {
|
18969
19017
|
default: () => {
|
18970
|
-
var
|
19018
|
+
var P;
|
18971
19019
|
let w, K;
|
18972
|
-
return createVNode(Fragment, null, [(
|
19020
|
+
return createVNode(Fragment, null, [(P = u.varGridMasters.value) == null ? void 0 : P.map((G) => {
|
18973
19021
|
var B;
|
18974
19022
|
return createVNode(Menu.Item, {
|
18975
|
-
key:
|
18976
|
-
class:
|
18977
|
-
"kg-var_name":
|
18978
|
-
onClick: () => p(
|
19023
|
+
key: G.id,
|
19024
|
+
class: G.id === ((B = u.currentVarGridMaster.value) == null ? void 0 : B.id) ? "selected" : "",
|
19025
|
+
"kg-var_name": G.grd_var_nam,
|
19026
|
+
onClick: () => p(G)
|
18979
19027
|
}, {
|
18980
|
-
default: () => [u.t(
|
19028
|
+
default: () => [u.t(G.grd_var_nam).value]
|
18981
19029
|
});
|
18982
19030
|
}), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
|
18983
19031
|
key: "save-grid-view",
|
@@ -19004,20 +19052,20 @@ const getProps$w = () => ({
|
|
19004
19052
|
});
|
19005
19053
|
}
|
19006
19054
|
function A() {
|
19007
|
-
var w, K,
|
19008
|
-
return ((
|
19055
|
+
var w, K, P;
|
19056
|
+
return ((P = (K = (w = n.option.value.KgTable) == null ? void 0 : w.Setting) == null ? void 0 : K.rowHeight) == null ? void 0 : P.on) !== !0 ? null : createVNode(Menu.SubMenu, {
|
19009
19057
|
key: "row-height",
|
19010
19058
|
title: n.t("kg.KgTable.rowHeight"),
|
19011
19059
|
popupClassName: "kg-table--setting--submenu-popup--row-height"
|
19012
19060
|
}, {
|
19013
19061
|
default: () => {
|
19014
|
-
let
|
19062
|
+
let G, B, x;
|
19015
19063
|
return createVNode(Fragment, null, [createVNode(Menu.Item, {
|
19016
19064
|
key: "L",
|
19017
19065
|
class: _.value === "L" ? "selected" : "",
|
19018
19066
|
onClick: () => u.kgTable.store.setRowHeight(u.formID, "L")
|
19019
|
-
}, _isSlot$7(
|
19020
|
-
default: () => [
|
19067
|
+
}, _isSlot$7(G = n.t("kg.KgTable.rowHeightL")) ? G : {
|
19068
|
+
default: () => [G]
|
19021
19069
|
}), createVNode(Menu.Item, {
|
19022
19070
|
key: "M",
|
19023
19071
|
class: _.value === "M" ? "selected" : "",
|
@@ -19802,7 +19850,7 @@ function _useColumns(e) {
|
|
19802
19850
|
index: k
|
19803
19851
|
}) => k + 1
|
19804
19852
|
}, ...(C = v == null ? void 0 : v.map((k, A) => {
|
19805
|
-
var
|
19853
|
+
var P, G, B;
|
19806
19854
|
const O = k.var_nam;
|
19807
19855
|
function D() {
|
19808
19856
|
return k.width === "auto" ? "auto" : Number(k.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
@@ -19816,13 +19864,13 @@ function _useColumns(e) {
|
|
19816
19864
|
if (k.fix_right_flg === 1)
|
19817
19865
|
return "right";
|
19818
19866
|
}
|
19819
|
-
function
|
19820
|
-
var x,
|
19821
|
-
return !(k.ord_flg !== 1 || (
|
19867
|
+
function L() {
|
19868
|
+
var x, Y, z, W;
|
19869
|
+
return !(k.ord_flg !== 1 || (Y = (x = a == null ? void 0 : a.value) == null ? void 0 : x.KgTable) != null && Y.kgDisabled || isNil((W = (z = a == null ? void 0 : a.value) == null ? void 0 : z.KgTable) == null ? void 0 : W.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || g.length <= 0);
|
19822
19870
|
}
|
19823
19871
|
function N() {
|
19824
|
-
var x,
|
19825
|
-
if (((
|
19872
|
+
var x, Y, z, W, $, H;
|
19873
|
+
if (((Y = (x = d.option.value.KgTable) == null ? void 0 : x.filter) == null ? void 0 : Y.on) === !0 && k.filter_flag === 1 && !((W = (z = a == null ? void 0 : a.value) == null ? void 0 : z.KgTable) != null && W.kgDisabled) && !(isNil((H = ($ = a == null ? void 0 : a.value) == null ? void 0 : $.KgTable) == null ? void 0 : H.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(g.length <= 0))
|
19826
19874
|
return uniqBy(g.map((Q) => {
|
19827
19875
|
var Z;
|
19828
19876
|
return {
|
@@ -19838,9 +19886,9 @@ function _useColumns(e) {
|
|
19838
19886
|
};
|
19839
19887
|
}), "value");
|
19840
19888
|
}
|
19841
|
-
function
|
19842
|
-
var x,
|
19843
|
-
return ((
|
19889
|
+
function V() {
|
19890
|
+
var x, Y, z;
|
19891
|
+
return ((Y = (x = d.option.value.KgTable) == null ? void 0 : x.filter) == null ? void 0 : Y.on) !== !0 ? null : ((z = u.value) == null ? void 0 : z[O]) || null;
|
19844
19892
|
}
|
19845
19893
|
function w() {
|
19846
19894
|
return ["left", "center", "right"].includes(k.align || "") ? k.align : "left";
|
@@ -19870,11 +19918,11 @@ function _useColumns(e) {
|
|
19870
19918
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
19871
19919
|
align: w(),
|
19872
19920
|
fixed: F(),
|
19873
|
-
sorter:
|
19874
|
-
sortOrder: ((
|
19875
|
-
filteredValue:
|
19921
|
+
sorter: L(),
|
19922
|
+
sortOrder: ((P = s.value) == null ? void 0 : P.field) === O && (B = (G = s.value) == null ? void 0 : G.order) != null ? B : null,
|
19923
|
+
filteredValue: V(),
|
19876
19924
|
filters: N(),
|
19877
|
-
onFilter: (x,
|
19925
|
+
onFilter: (x, Y) => x === "" ? isNil(Y == null ? void 0 : Y[O]) || (Y == null ? void 0 : Y[O]) === "" : (Y == null ? void 0 : Y[O]) === x,
|
19878
19926
|
customHeaderCell: () => ({
|
19879
19927
|
"kg-form_id": r.formID,
|
19880
19928
|
"kg-var_name": O,
|
@@ -19882,14 +19930,14 @@ function _useColumns(e) {
|
|
19882
19930
|
}),
|
19883
19931
|
customCell: (x) => {
|
19884
19932
|
var H, Q, Z;
|
19885
|
-
const
|
19933
|
+
const Y = x[r.kgTable.idKey.value], z = (H = r.kgTable.selectedRow.value) == null ? void 0 : H[r.kgTable.idKey.value], W = r.kgSubmit.currentVarSubmitConfig$DisplayType.value, $ = (Z = r.kgSubmit.getVarSubmitDetails({
|
19886
19934
|
buttonVarName: (Q = r.kgButton.currentButton.value) == null ? void 0 : Q.var_nam,
|
19887
19935
|
varName: O
|
19888
19936
|
})[0]) != null ? Z : null;
|
19889
19937
|
return {
|
19890
19938
|
"kg-form_id": r.formID,
|
19891
19939
|
"kg-var_name": O,
|
19892
|
-
class:
|
19940
|
+
class: W === KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE.TABLE && Y === z && !!$ ? "submitting" : ""
|
19893
19941
|
};
|
19894
19942
|
}
|
19895
19943
|
};
|
@@ -20087,11 +20135,11 @@ function _useDatas() {
|
|
20087
20135
|
};
|
20088
20136
|
}
|
20089
20137
|
const KgTable$1 = "", getProps$r = () => ({
|
20138
|
+
kgCheckboxDisabled: Function,
|
20090
20139
|
kgDisabled: {
|
20091
20140
|
type: Boolean,
|
20092
20141
|
default: void 0
|
20093
20142
|
},
|
20094
|
-
kgCheckboxDisabled: Function,
|
20095
20143
|
kgRowClassName: Function
|
20096
20144
|
}), KgTable = defineComponent({
|
20097
20145
|
name: "KgTable",
|
@@ -20099,14 +20147,14 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20099
20147
|
setup: function(e) {
|
20100
20148
|
var ae;
|
20101
20149
|
const a = inject("$dayjs", dayjs), r = inject(KG__DI__KG_VAR__KG_SLOTS, null), n = inject(KG__DI__KG_VAR__KG_PROPS, null), u = useKg(), s = useKgVar();
|
20102
|
-
s.kgSearch.onSearch(async (q) => (
|
20150
|
+
s.kgSearch.onSearch(async (q) => ($(q), !1)), s.kgSearch.onReset(async () => (d.value = {}, !1)), s.kgTable.store.$onAction(async ({
|
20103
20151
|
name: q,
|
20104
|
-
args:
|
20152
|
+
args: M
|
20105
20153
|
}) => {
|
20106
20154
|
switch (q) {
|
20107
20155
|
case "setRowSelect":
|
20108
|
-
if (
|
20109
|
-
const I =
|
20156
|
+
if (M[0] === s.formID) {
|
20157
|
+
const I = M[1], U = M[2], J = I[s.kgTable.idKey.value];
|
20110
20158
|
switch (!0) {
|
20111
20159
|
case (U && !K.value.includes(J)):
|
20112
20160
|
H([...K.value, J]);
|
@@ -20118,10 +20166,10 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20118
20166
|
}
|
20119
20167
|
break;
|
20120
20168
|
case "clearDatas":
|
20121
|
-
|
20169
|
+
M[0] === s.formID && (s.kgTable.store.setDatas({
|
20122
20170
|
frmId: s.formID,
|
20123
20171
|
datas: []
|
20124
|
-
}),
|
20172
|
+
}), P.total = 0, W({
|
20125
20173
|
isContinueWhenKgDisabled: !0
|
20126
20174
|
}), l.value = []);
|
20127
20175
|
break;
|
@@ -20142,14 +20190,14 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20142
20190
|
transformDatas: p,
|
20143
20191
|
requestDescriptions: E
|
20144
20192
|
} = _useDatas(), T = computed(() => {
|
20145
|
-
var q,
|
20146
|
-
return (
|
20193
|
+
var q, M;
|
20194
|
+
return (M = (q = s.kgButton.searchButton.value) == null ? void 0 : q.cmd) != null ? M : null;
|
20147
20195
|
}), C = computed(() => {
|
20148
|
-
var
|
20196
|
+
var M, I, U, J, re, ne, ie, ue, le;
|
20149
20197
|
let q = {
|
20150
|
-
pageNo:
|
20151
|
-
pageSize:
|
20152
|
-
column: (I = (
|
20198
|
+
pageNo: P.pageIndex,
|
20199
|
+
pageSize: P.pageSize,
|
20200
|
+
column: (I = (M = d.value) == null ? void 0 : M.field) != null ? I : void 0,
|
20153
20201
|
order: d.value.order === "ascend" ? "asc" : d.value.order === "descend" ? "desc" : void 0,
|
20154
20202
|
...(J = (U = s.kgSearch.formModel) == null ? void 0 : U.value) != null ? J : {},
|
20155
20203
|
...KgVarUtil.parseRequestParamsToJSON((ne = (re = s.kgButton.searchButton.value) == null ? void 0 : re.cmd_prm) != null ? ne : ""),
|
@@ -20157,11 +20205,16 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20157
20205
|
...k.value
|
20158
20206
|
};
|
20159
20207
|
return ((le = s.varGridConfig.value) == null ? void 0 : le.convert_sort_field_to_under_score_flg) === 1 && q.column && (q.column = KgUtil.snakeCase(q.column)), q;
|
20208
|
+
}, {
|
20209
|
+
onTrack(q) {
|
20210
|
+
},
|
20211
|
+
onTrigger(q) {
|
20212
|
+
}
|
20160
20213
|
}), k = computed(() => {
|
20161
|
-
var
|
20214
|
+
var M, I, U;
|
20162
20215
|
let q = {};
|
20163
20216
|
if (s.parent.value) {
|
20164
|
-
const J = (U = (I = (
|
20217
|
+
const J = (U = (I = (M = s.parent.value) == null ? void 0 : M.varChildDetails) == null ? void 0 : I.value) == null ? void 0 : U.find((ne) => ne.child_form_id === s.formID), re = KgUtil.tryParseJSON(J == null ? void 0 : J.foreign_keys);
|
20165
20218
|
Object.keys(re).forEach((ne) => {
|
20166
20219
|
var ie, ue, le, se, X;
|
20167
20220
|
q[re[ne]] = (X = (se = (le = (ue = (ie = s.parent.value) == null ? void 0 : ie.kgTable) == null ? void 0 : ue.selectedRow) == null ? void 0 : le.value) == null ? void 0 : se[ne]) != null ? X : "__KG__NULL__";
|
@@ -20169,25 +20222,25 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20169
20222
|
}
|
20170
20223
|
return q;
|
20171
20224
|
}), A = computed(() => {
|
20172
|
-
var q,
|
20173
|
-
if (!isNil((
|
20225
|
+
var q, M, I, U;
|
20226
|
+
if (!isNil((M = (q = n == null ? void 0 : n.value) == null ? void 0 : q.KgTable) == null ? void 0 : M.kgDisabled))
|
20174
20227
|
return (U = (I = n == null ? void 0 : n.value) == null ? void 0 : I.KgTable) == null ? void 0 : U.kgDisabled;
|
20175
20228
|
if (!isNil(e.kgDisabled))
|
20176
20229
|
return e.kgDisabled;
|
20177
20230
|
}), O = computed(() => {
|
20178
|
-
var q,
|
20179
|
-
if (!isNil((
|
20231
|
+
var q, M, I, U;
|
20232
|
+
if (!isNil((M = (q = n == null ? void 0 : n.value) == null ? void 0 : q.KgTable) == null ? void 0 : M.kgCheckboxDisabled))
|
20180
20233
|
return (U = (I = n == null ? void 0 : n.value) == null ? void 0 : I.KgTable) == null ? void 0 : U.kgCheckboxDisabled;
|
20181
20234
|
if (!isNil(e.kgCheckboxDisabled))
|
20182
20235
|
return e.kgCheckboxDisabled;
|
20183
|
-
}), D = computed(() => !!A.value || m.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), y = computed(() => !!A.value || m.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value ||
|
20236
|
+
}), D = computed(() => !!A.value || m.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), y = computed(() => !!A.value || m.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || P.total === 0), F = computed(() => {
|
20184
20237
|
var q;
|
20185
20238
|
return !!((q = r == null ? void 0 : r.KgTable) != null && q.expandedRowRender);
|
20186
|
-
}),
|
20239
|
+
}), L = computed(() => {
|
20187
20240
|
var q;
|
20188
20241
|
return ((q = s.varGridConfig.value) == null ? void 0 : q.show_check_column_flg) === 1;
|
20189
20242
|
}), N = computed(() => {
|
20190
|
-
if (!!
|
20243
|
+
if (!!L.value)
|
20191
20244
|
return {
|
20192
20245
|
fixed: "left",
|
20193
20246
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
@@ -20195,18 +20248,18 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20195
20248
|
selectedRowKeys: K,
|
20196
20249
|
preserveSelectedRowKeys: !1,
|
20197
20250
|
getCheckboxProps: (q) => {
|
20198
|
-
var
|
20251
|
+
var M;
|
20199
20252
|
return {
|
20200
|
-
disabled: !!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || !!((
|
20253
|
+
disabled: !!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || !!((M = O.value) != null && M.call(O, q))
|
20201
20254
|
};
|
20202
20255
|
},
|
20203
20256
|
onSelect: (q) => Q(q),
|
20204
20257
|
onChange: (q) => s.kgTable.isMultiSelect.value && H(q)
|
20205
20258
|
};
|
20206
|
-
}),
|
20207
|
-
var
|
20259
|
+
}), V = computed(() => {
|
20260
|
+
var M;
|
20208
20261
|
let q = "kg-table";
|
20209
|
-
switch (((
|
20262
|
+
switch (((M = s.varGridConfig.value) == null ? void 0 : M.show_bottom_border_flg) === 1 && (q += " kg-table--bottom-border"), !s.kgTable.isShowBottomLeft.value && !s.kgTable.isShowBottomRight.value && (q += " kg-table--no-bottom"), s.kgSubmit.currentVarSubmitConfig$DisplayType.value === KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE.TABLE && (q += " kg-table--submitting"), s.kgTable.store.getRowHeight(s.formID)) {
|
20210
20263
|
case "L":
|
20211
20264
|
q += " kg-table--row-low";
|
20212
20265
|
break;
|
@@ -20219,38 +20272,38 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20219
20272
|
}
|
20220
20273
|
return o.value && (q += " kg-table--is-shift-keydown"), q;
|
20221
20274
|
}), w = computed(() => {
|
20222
|
-
var
|
20275
|
+
var M;
|
20223
20276
|
let q = "kg-table-bottom";
|
20224
|
-
return ((
|
20225
|
-
}), K = (ae = s.kgTable.store.getSelectedRowKeys(s.formID)) != null ? ae : ref([]),
|
20277
|
+
return ((M = s.varGridConfig.value) == null ? void 0 : M.show_bottom_border_flg) === 1 && (q += " kg-table-bottom--border"), q;
|
20278
|
+
}), K = (ae = s.kgTable.store.getSelectedRowKeys(s.formID)) != null ? ae : ref([]), P = reactive({
|
20226
20279
|
pageIndex: 1,
|
20227
20280
|
pageSize: 10,
|
20228
20281
|
total: 0
|
20229
|
-
}),
|
20230
|
-
q && (setTimeout(() =>
|
20282
|
+
}), G = watch(s.kgTable.pageSizeOption, (q) => {
|
20283
|
+
q && (setTimeout(() => G()), P.pageSize = q, s.kgTable.store.emit(s.formID, "ready", {}), s.kgTable.store.setIsReady(s.formID, !0));
|
20231
20284
|
}, {
|
20232
20285
|
immediate: !0
|
20233
20286
|
});
|
20234
20287
|
watch(s.kgTable.pageSizeOptions, (q) => {
|
20235
|
-
q.length > 0 && !q.includes(
|
20236
|
-
}), watch([s.kgTable.isAutoRequest, s.kgSearch.isReady, s.kgTable.isRequested], ([q,
|
20288
|
+
q.length > 0 && !q.includes(P.pageSize) && (P.pageSize = s.kgTable.pageSizeOption.value);
|
20289
|
+
}), watch([s.kgTable.isAutoRequest, s.kgSearch.isReady, s.kgTable.isRequested], ([q, M, I]) => {
|
20237
20290
|
____DEBUG____(`${s.formID} | KgTable | watch:[kgVar.kgTable.isAutoRequest, kgVar.kgSearch.isReady, kgVar.kgTable.isRequested]`, {
|
20238
20291
|
isAutoRequest: q,
|
20239
|
-
isReady:
|
20292
|
+
isReady: M,
|
20240
20293
|
isRequested: I
|
20241
|
-
}), q &&
|
20294
|
+
}), q && M && !I && $({
|
20242
20295
|
isSearchFirstPage: !0
|
20243
20296
|
});
|
20244
20297
|
}, {
|
20245
20298
|
immediate: !0
|
20246
20299
|
}), watch(() => JSON.stringify(k.value), () => {
|
20247
|
-
|
20300
|
+
$({
|
20248
20301
|
isSearchFirstPage: !0
|
20249
20302
|
});
|
20250
20303
|
}), watch(C, (q) => {
|
20251
20304
|
s.kgTable.store.setRequestParams(s.formID, q);
|
20252
|
-
}), watch(s.isCreating, (q,
|
20253
|
-
q === !0 ?
|
20305
|
+
}), watch(s.isCreating, (q, M) => {
|
20306
|
+
q === !0 ? Y() : q === !1 && M === !0 && z();
|
20254
20307
|
});
|
20255
20308
|
function B(q) {
|
20256
20309
|
q.shiftKey && (o.value = !0);
|
@@ -20258,7 +20311,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20258
20311
|
function x(q) {
|
20259
20312
|
q.shiftKey || (o.value = !1);
|
20260
20313
|
}
|
20261
|
-
function
|
20314
|
+
function Y() {
|
20262
20315
|
if (s.kgSubmit.currentVarSubmitConfig$DisplayType.value === KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE.TABLE) {
|
20263
20316
|
const q = {
|
20264
20317
|
[s.kgTable.idKey.value]: KG_TABLE_TEMP_ID
|
@@ -20270,24 +20323,24 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20270
20323
|
}
|
20271
20324
|
}
|
20272
20325
|
function z() {
|
20273
|
-
const q = s.kgTable.datas.value.find((
|
20326
|
+
const q = s.kgTable.datas.value.find((M) => M[s.kgTable.idKey.value] === KG_TABLE_TEMP_ID);
|
20274
20327
|
q && (s.kgTable.store.setDatas({
|
20275
20328
|
frmId: s.formID,
|
20276
20329
|
datas: without$1(s.kgTable.datas.value, q)
|
20277
20330
|
}), s.kgTable.store.setSelectedRows(s.formID, []));
|
20278
20331
|
}
|
20279
|
-
function
|
20332
|
+
function W(q = {}) {
|
20280
20333
|
var re, ne;
|
20281
20334
|
____DEBUG____(`${s.formID} | KgTable | onRowClick() | \u8FDB\u5165\u65B9\u6CD5.`, {
|
20282
20335
|
param: q
|
20283
20336
|
});
|
20284
20337
|
const {
|
20285
|
-
event:
|
20338
|
+
event: M,
|
20286
20339
|
row: I,
|
20287
20340
|
isContinueWhenKgDisabled: U = !1
|
20288
20341
|
} = q, J = document.getSelection();
|
20289
20342
|
if ((J == null ? void 0 : J.type) === "Range")
|
20290
|
-
if (
|
20343
|
+
if (M != null && M.shiftKey)
|
20291
20344
|
____DEBUG____(`${s.formID} | KgTable | onRowClick() | \u6309\u4F4F\u4E86 SHIFT \u952E, \u56E0\u6B64\u6E05\u7A7A\u9009\u62E9\u7684\u6587\u672C.`, {
|
20292
20345
|
param: q
|
20293
20346
|
}), J.removeAllRanges();
|
@@ -20311,7 +20364,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20311
20364
|
____DEBUG____("KgTable | onRowClick() | \u6E05\u7A7A\u6240\u6709\u52FE\u9009\u7684\u884C."), s.kgTable.store.setSelectedRows(s.formID, []);
|
20312
20365
|
return;
|
20313
20366
|
}
|
20314
|
-
switch (
|
20367
|
+
switch (M == null ? void 0 : M.detail) {
|
20315
20368
|
case 1:
|
20316
20369
|
switch ((re = s.varGridConfig.value) == null ? void 0 : re.operation_on_row_click) {
|
20317
20370
|
case 0:
|
@@ -20324,7 +20377,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20324
20377
|
case !0: {
|
20325
20378
|
const ie = s.kgTable.idKey.value;
|
20326
20379
|
switch (!0) {
|
20327
|
-
case (
|
20380
|
+
case (M == null ? void 0 : M.shiftKey): {
|
20328
20381
|
const ue = last(s.kgTable.selectedRows.value);
|
20329
20382
|
if (ue) {
|
20330
20383
|
const le = s.kgTable.datas.value.findIndex((X) => X[ie] === ue[ie]), se = s.kgTable.datas.value.findIndex((X) => X[ie] === I[ie]);
|
@@ -20336,8 +20389,8 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20336
20389
|
s.kgTable.store.setSelectedRows(s.formID, [I]);
|
20337
20390
|
break;
|
20338
20391
|
}
|
20339
|
-
case (
|
20340
|
-
case (
|
20392
|
+
case (M == null ? void 0 : M.ctrlKey):
|
20393
|
+
case (M == null ? void 0 : M.metaKey): {
|
20341
20394
|
K.value.includes(I[ie]) ? (____DEBUG____(`${s.formID} | KgTable | onRowClick() | CTRL \u79FB\u9664\u4E00\u884C\u52FE\u9009.`, {
|
20342
20395
|
row: I
|
20343
20396
|
}), K.value = without$1(K.value, I[ie])) : (____DEBUG____(`${s.formID} | KgTable | onRowClick() | CTRL \u6DFB\u52A0\u4E00\u884C\u52FE\u9009.`, {
|
@@ -20348,7 +20401,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20348
20401
|
}).filter((ue) => !!ue));
|
20349
20402
|
break;
|
20350
20403
|
}
|
20351
|
-
case (!(
|
20404
|
+
case (!(M != null && M.shiftKey) && !(M != null && M.ctrlKey)): {
|
20352
20405
|
s.kgTable.store.setSelectedRows(s.formID, [I]);
|
20353
20406
|
break;
|
20354
20407
|
}
|
@@ -20374,18 +20427,18 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20374
20427
|
break;
|
20375
20428
|
}
|
20376
20429
|
}
|
20377
|
-
function
|
20430
|
+
function $(q = {}) {
|
20378
20431
|
____DEBUG____(`${s.formID} | KgTable | request() | \u8FDB\u5165\u65B9\u6CD5.`, {
|
20379
20432
|
param: q
|
20380
20433
|
});
|
20381
|
-
const
|
20382
|
-
U && (setTimeout(() =>
|
20434
|
+
const M = watch(s.kgTable.isReady, (U) => {
|
20435
|
+
U && (setTimeout(() => M()), I());
|
20383
20436
|
}, {
|
20384
20437
|
immediate: !0
|
20385
20438
|
});
|
20386
20439
|
async function I() {
|
20387
20440
|
var U, J, re, ne, ie, ue, le;
|
20388
|
-
____DEBUG____(`${s.formID} | KgTable | request().requestDatas() | \u8FDB\u5165\u65B9\u6CD5.`), q.isSearchFirstPage && (
|
20441
|
+
____DEBUG____(`${s.formID} | KgTable | request().requestDatas() | \u8FDB\u5165\u65B9\u6CD5.`), q.isSearchFirstPage && (P.pageIndex = 1), s.kgTable.store.setIsRequesting(s.formID, !0);
|
20389
20442
|
try {
|
20390
20443
|
const se = ref({}), X = C.value;
|
20391
20444
|
await s.kgTable.store.emit(s.formID, "beforeParseRequestParameter", {
|
@@ -20450,7 +20503,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20450
20503
|
frmId: s.formID,
|
20451
20504
|
datas: ce.value,
|
20452
20505
|
isPreserveSelectedRows: !0
|
20453
|
-
}),
|
20506
|
+
}), P.total = Ee.value, E(), _.value = {}, W({
|
20454
20507
|
isContinueWhenKgDisabled: !0
|
20455
20508
|
}), l.value = [], await nextTick(), q.isPreserveSelectedRows ? s.kgTable.store.setSelectedRows(s.formID, he.map((ve) => {
|
20456
20509
|
var be;
|
@@ -20470,14 +20523,14 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20470
20523
|
}
|
20471
20524
|
}
|
20472
20525
|
function H(q) {
|
20473
|
-
s.kgTable.store.setSelectedRows(s.formID, q.map((
|
20526
|
+
s.kgTable.store.setSelectedRows(s.formID, q.map((M) => {
|
20474
20527
|
var I;
|
20475
|
-
return (I = s.kgTable.datas.value) == null ? void 0 : I.find((U) => U[s.kgTable.idKey.value] ===
|
20476
|
-
}).filter((
|
20528
|
+
return (I = s.kgTable.datas.value) == null ? void 0 : I.find((U) => U[s.kgTable.idKey.value] === M);
|
20529
|
+
}).filter((M) => !!M));
|
20477
20530
|
}
|
20478
20531
|
function Q(q) {
|
20479
20532
|
var U, J;
|
20480
|
-
const
|
20533
|
+
const M = s.kgTable.idKey.value, I = q[M];
|
20481
20534
|
switch (s.kgTable.isMultiSelect.value) {
|
20482
20535
|
case !0: {
|
20483
20536
|
K.value.includes(I) ? K.value = without$1(K.value, I) : K.value = [...(U = K.value) != null ? U : [], I];
|
@@ -20490,32 +20543,32 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20490
20543
|
}
|
20491
20544
|
s.kgTable.store.setSelectedRows(s.formID, K.value.map((re) => {
|
20492
20545
|
var ne;
|
20493
|
-
return (ne = s.kgTable.datas.value) == null ? void 0 : ne.find((ie) => ie[
|
20546
|
+
return (ne = s.kgTable.datas.value) == null ? void 0 : ne.find((ie) => ie[M] === re);
|
20494
20547
|
}).filter((re) => !!re));
|
20495
20548
|
}
|
20496
|
-
function Z(q,
|
20497
|
-
|
20498
|
-
varName:
|
20549
|
+
function Z(q, M) {
|
20550
|
+
M.width = Number(q.toFixed(2)), s.kgTable.patchVarGridDetail({
|
20551
|
+
varName: M.dataIndex,
|
20499
20552
|
properties: {
|
20500
20553
|
width: q.toFixed(2)
|
20501
20554
|
}
|
20502
20555
|
});
|
20503
20556
|
}
|
20504
|
-
async function oe(q,
|
20557
|
+
async function oe(q, M, I, U) {
|
20505
20558
|
switch (U.action) {
|
20506
20559
|
case "sort": {
|
20507
|
-
d.value = I, d.value.order || (d.value.field = void 0), await nextTick(),
|
20560
|
+
d.value = I, d.value.order || (d.value.field = void 0), await nextTick(), $({
|
20508
20561
|
isSearchFirstPage: !0
|
20509
20562
|
});
|
20510
20563
|
break;
|
20511
20564
|
}
|
20512
20565
|
case "filter":
|
20513
|
-
_.value =
|
20566
|
+
_.value = M;
|
20514
20567
|
}
|
20515
20568
|
}
|
20516
|
-
function _e(q,
|
20569
|
+
function _e(q, M) {
|
20517
20570
|
var U;
|
20518
|
-
const I =
|
20571
|
+
const I = M[s.kgTable.idKey.value];
|
20519
20572
|
switch ((U = s.varGridConfig.value) == null ? void 0 : U.expand_accordion_flg) {
|
20520
20573
|
case 0:
|
20521
20574
|
q ? l.value = uniq([...l.value, I]) : l.value = without$1(l.value, I);
|
@@ -20525,15 +20578,15 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20525
20578
|
break;
|
20526
20579
|
}
|
20527
20580
|
}
|
20528
|
-
function ge(q,
|
20529
|
-
|
20581
|
+
function ge(q, M) {
|
20582
|
+
M !== P.pageSize ? (P.pageIndex = 1, P.pageSize = M) : P.pageIndex = q, $();
|
20530
20583
|
}
|
20531
20584
|
function fe(q) {
|
20532
20585
|
const {
|
20533
|
-
column:
|
20586
|
+
column: M
|
20534
20587
|
} = q;
|
20535
20588
|
return createVNode(KgTableHeaderCell, {
|
20536
|
-
column:
|
20589
|
+
column: M,
|
20537
20590
|
kgDisabled: A.value
|
20538
20591
|
}, null);
|
20539
20592
|
}
|
@@ -20545,21 +20598,21 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20545
20598
|
default: () => [createVNode(TableSummary.Row, null, {
|
20546
20599
|
default: () => [F.value && createVNode(TableSummary.Cell, {
|
20547
20600
|
index: 0
|
20548
|
-
}, null),
|
20601
|
+
}, null), L.value && createVNode(TableSummary.Cell, {
|
20549
20602
|
index: F.value ? 1 : 0
|
20550
|
-
}, null), c.value.map((
|
20551
|
-
const U = String(
|
20603
|
+
}, null), c.value.map((M, I) => {
|
20604
|
+
const U = String(M.dataIndex), J = U ? s.kgTable.getVarGridDetail({
|
20552
20605
|
varName: U
|
20553
20606
|
}) : null, re = (() => ["left", "center", "right"].includes((J == null ? void 0 : J.align) || "") ? J == null ? void 0 : J.align : "left")();
|
20554
20607
|
let ne = I;
|
20555
|
-
return F.value &&
|
20608
|
+
return F.value && L.value ? ne += 2 : (F.value || L.value) && (ne += 1), createVNode(TableSummary.Cell, {
|
20556
20609
|
index: ne,
|
20557
20610
|
align: re
|
20558
20611
|
}, {
|
20559
20612
|
default: () => {
|
20560
20613
|
var ie, ue;
|
20561
20614
|
return [(ue = (ie = r == null ? void 0 : r.KgTable) == null ? void 0 : ie["summary.bodyCell"]) == null ? void 0 : ue.call(ie, {
|
20562
|
-
column:
|
20615
|
+
column: M,
|
20563
20616
|
index: ne,
|
20564
20617
|
varGridDetail: J
|
20565
20618
|
})];
|
@@ -20577,10 +20630,10 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20577
20630
|
}), onUnmounted(() => {
|
20578
20631
|
s.kgTable.store.dispose(s.formID), window.removeEventListener("keydown", B), window.removeEventListener("keyup", x);
|
20579
20632
|
}), () => {
|
20580
|
-
var q,
|
20633
|
+
var q, M, I;
|
20581
20634
|
return createVNode("div", {
|
20582
20635
|
"kg-form_id": s.formID,
|
20583
|
-
class:
|
20636
|
+
class: V.value,
|
20584
20637
|
ref: b
|
20585
20638
|
}, [createVNode(Table, {
|
20586
20639
|
class: "kg-flex-table",
|
@@ -20595,12 +20648,12 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20595
20648
|
dataSource: s.kgTable.datas.value,
|
20596
20649
|
loading: m.value,
|
20597
20650
|
rowKey: s.kgTable.idKey.value,
|
20598
|
-
rowClassName: (
|
20651
|
+
rowClassName: (M = (q = n == null ? void 0 : n.value) == null ? void 0 : q.KgTable) == null ? void 0 : M.kgRowClassName,
|
20599
20652
|
expandColumnWidth: 28,
|
20600
20653
|
expandedRowKeys: l.value,
|
20601
20654
|
rowSelection: N.value,
|
20602
20655
|
customRow: (U) => ({
|
20603
|
-
onClick: (J) =>
|
20656
|
+
onClick: (J) => W({
|
20604
20657
|
event: J,
|
20605
20658
|
row: U
|
20606
20659
|
})
|
@@ -20620,7 +20673,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20620
20673
|
class: "left"
|
20621
20674
|
}, [s.kgTable.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
20622
20675
|
kgShowClearCheck: K.value.length > 0,
|
20623
|
-
kgShowClearTable:
|
20676
|
+
kgShowClearTable: P.total > 0,
|
20624
20677
|
kgShowLocate: K.value.length > 0,
|
20625
20678
|
kgTotal: K.value.length,
|
20626
20679
|
kgDisabled: D.value
|
@@ -20628,10 +20681,10 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
20628
20681
|
class: "right"
|
20629
20682
|
}, [s.kgTable.isShowBottomRight.value && createVNode(Pagination, {
|
20630
20683
|
size: "default",
|
20631
|
-
current:
|
20632
|
-
pageSize:
|
20684
|
+
current: P.pageIndex,
|
20685
|
+
pageSize: P.pageSize,
|
20633
20686
|
pageSizeOptions: s.kgTable.pageSizeOptions.value.map((U) => String(U)),
|
20634
|
-
total:
|
20687
|
+
total: P.total,
|
20635
20688
|
showSizeChanger: !0,
|
20636
20689
|
showQuickJumper: !1,
|
20637
20690
|
hideOnSinglePage: !1,
|
@@ -23510,24 +23563,62 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
23510
23563
|
setup(e) {
|
23511
23564
|
var m, b;
|
23512
23565
|
const a = (b = inject(KG__DI__FORM_ID, null)) != null ? b : (m = inject(KG__DI__KG_VAR_CONFIG__HOST_FORM_ID, null)) == null ? void 0 : m.value, r = useKg(), n = useKgVar(a), u = useKgVar(FORM_ID__SEARCH__VAR_PROFILE_MASTER);
|
23513
|
-
u.kgSearch.onReady(async () => (u.kgSearch.formModel.value && (u.kgSearch.formModel.value.frm_id = n.formID), !1)), u.
|
23566
|
+
u.kgSearch.onReady(async () => (u.kgSearch.formModel.value && (u.kgSearch.formModel.value.frm_id = n.formID), !1)), u.kgForm.onSelectBeforeRequest(async ({
|
23567
|
+
context: v,
|
23568
|
+
response: p,
|
23569
|
+
varName: E
|
23570
|
+
}) => {
|
23571
|
+
var T, C, k, A, O, D, y, F, L, N, V, w, K, P, G, B;
|
23572
|
+
switch (v) {
|
23573
|
+
case KG_FORM_CONTEXT.SEARCH: {
|
23574
|
+
switch (E) {
|
23575
|
+
case "usr_id":
|
23576
|
+
return p.value = [{
|
23577
|
+
value: "ALL",
|
23578
|
+
label: r.t("kg.allUser")
|
23579
|
+
}, {
|
23580
|
+
value: (A = (k = (C = (T = r.store).getUseUserStore) == null ? void 0 : C.call(T)) == null ? void 0 : k.userInfo) == null ? void 0 : A.username,
|
23581
|
+
label: (F = (y = (D = (O = r.store).getUseUserStore) == null ? void 0 : D.call(O)) == null ? void 0 : y.userInfo) == null ? void 0 : F.realname
|
23582
|
+
}], !0;
|
23583
|
+
}
|
23584
|
+
break;
|
23585
|
+
}
|
23586
|
+
case KG_FORM_CONTEXT.SUBMIT:
|
23587
|
+
case KG_FORM_CONTEXT.TABLE: {
|
23588
|
+
switch (E) {
|
23589
|
+
case "usr_id":
|
23590
|
+
return p.value = [{
|
23591
|
+
value: "ALL",
|
23592
|
+
label: r.t("kg.allUser")
|
23593
|
+
}, {
|
23594
|
+
value: (w = (V = (N = (L = r.store).getUseUserStore) == null ? void 0 : N.call(L)) == null ? void 0 : V.userInfo) == null ? void 0 : w.username,
|
23595
|
+
label: (B = (G = (P = (K = r.store).getUseUserStore) == null ? void 0 : P.call(K)) == null ? void 0 : G.userInfo) == null ? void 0 : B.realname
|
23596
|
+
}], !0;
|
23597
|
+
}
|
23598
|
+
break;
|
23599
|
+
}
|
23600
|
+
}
|
23601
|
+
return !1;
|
23602
|
+
}), u.kgTable.onBeforeSetDatas(async ({
|
23514
23603
|
datas: v
|
23515
|
-
}) => (
|
23604
|
+
}) => (v.value.forEach((p) => {
|
23605
|
+
p.usr_id === "ALL" && (p.usr_id_dsc = r.t("kg.allUser"));
|
23606
|
+
}), transformVarProfileMasters(v.value), !1)), u.kgSubmit.onOpen(async () => {
|
23516
23607
|
var v, p, E, T, C, k, A;
|
23517
23608
|
switch (s.value = transformVarProfileDetails(cloneDeep(toRaw((v = n.varVariables.value) != null ? v : []).filter((O) => {
|
23518
|
-
var D, y, F,
|
23609
|
+
var D, y, F, L;
|
23519
23610
|
return ![...(y = (D = n.varGridMasters.value) == null ? void 0 : D.map((N) => {
|
23520
|
-
var
|
23521
|
-
return (
|
23522
|
-
})) != null ? y : [], ...(
|
23523
|
-
var
|
23524
|
-
return (
|
23525
|
-
})) != null ?
|
23526
|
-
var
|
23527
|
-
return (
|
23611
|
+
var V;
|
23612
|
+
return (V = N.grd_var_nam) != null ? V : "";
|
23613
|
+
})) != null ? y : [], ...(L = (F = n.varProfileMasters.value) == null ? void 0 : F.map((N) => {
|
23614
|
+
var V;
|
23615
|
+
return (V = N.prf_var_nam) != null ? V : "";
|
23616
|
+
})) != null ? L : [], ...n.kgButton.varButtons.value.map((N) => {
|
23617
|
+
var V;
|
23618
|
+
return (V = N.var_nam) != null ? V : "";
|
23528
23619
|
}), ...n.kgButton.varButtons.value.map((N) => {
|
23529
|
-
var
|
23530
|
-
return (
|
23620
|
+
var V;
|
23621
|
+
return (V = N.export_excel_filename) != null ? V : "";
|
23531
23622
|
}), KG__VAR_BUTTON__TYPE.SEARCH, KG__VAR_BUTTON__TYPE.CREATE, KG__VAR_BUTTON__TYPE.UPDATE, KG__VAR_BUTTON__TYPE.COPY, KG__VAR_BUTTON__TYPE.DELETE, KG__VAR_BUTTON__TYPE.IMPORT, KG__VAR_BUTTON__TYPE.IMPORT_TEMPLATE, KG__VAR_BUTTON__TYPE.EXPORT, KG__VAR_BUTTON__TYPE.OTHER].includes(O.var_nam);
|
23532
23623
|
}).map((O, D) => ({
|
23533
23624
|
id: O.var_nam,
|
@@ -23549,8 +23640,8 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
23549
23640
|
}
|
23550
23641
|
});
|
23551
23642
|
transformVarProfileMasters([O]), s.value = s.value.map((y) => {
|
23552
|
-
var
|
23553
|
-
const F = (
|
23643
|
+
var L;
|
23644
|
+
const F = (L = O == null ? void 0 : O.varProfileDetails) == null ? void 0 : L.find((N) => N.var_nam === y.var_nam);
|
23554
23645
|
return F ? {
|
23555
23646
|
...y,
|
23556
23647
|
...F,
|
@@ -23647,8 +23738,8 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
23647
23738
|
}) => {
|
23648
23739
|
var O, D;
|
23649
23740
|
const A = p.sort((y, F) => {
|
23650
|
-
var
|
23651
|
-
return ((
|
23741
|
+
var L, N;
|
23742
|
+
return ((L = y.srtseq) != null ? L : 0) - ((N = F.srtseq) != null ? N : 0);
|
23652
23743
|
});
|
23653
23744
|
return v === "right" && (l.value = A), createVNode(Table, {
|
23654
23745
|
pagination: !1,
|
@@ -23663,7 +23754,7 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
23663
23754
|
dataSource: A,
|
23664
23755
|
customRow: (y) => {
|
23665
23756
|
let F = {
|
23666
|
-
onClick: (
|
23757
|
+
onClick: (L) => g(L, y, v, E)
|
23667
23758
|
};
|
23668
23759
|
return v === "right" && (F["kg-host-frm_id"] = n.formID, F["kg-var_name"] = y.var_nam), F;
|
23669
23760
|
},
|
@@ -26195,19 +26286,19 @@ const KgVarConfig$1 = "", KgVarConfig = defineComponent({
|
|
26195
26286
|
varProfileMasters: D,
|
26196
26287
|
varGridConfig: y,
|
26197
26288
|
varGridMasters: F,
|
26198
|
-
varSubmitConfigs:
|
26289
|
+
varSubmitConfigs: L,
|
26199
26290
|
varSubmitDetails: N,
|
26200
|
-
varVariables:
|
26201
|
-
} = await GetAll({ params: { frm_id: e } }), w = g != null ? g : null, K =
|
26202
|
-
createDefaultVarSubmitDetailsForVarProfileDetails(ge, Q,
|
26291
|
+
varVariables: V
|
26292
|
+
} = await GetAll({ params: { frm_id: e } }), w = g != null ? g : null, K = V != null ? V : [], P = transformVarConfigControls(p), G = E != null ? E : [], B = transformVarConfigInputs(T), x = transformVarConfigLookups(C), Y = transformVarConfigPossibilities(k), z = transformVarConfigTips(A), W = transformVarButtons(m), $ = transformVarButtonConfig(b), H = transformVarSubmitConfigs(L), Q = transformVarSubmitDetails(N), Z = transformVarProfileConfig(O), oe = transformVarProfileMasters(D), _e = transformVarGridConfig(y), ge = transformVarGridMasters(F), fe = transformVarChildDetails(v), de = (s = (u = (D == null ? void 0 : D.find((q) => q.id === this.getCurrentVarProfileMasterID(e))) || (D == null ? void 0 : D.find((q) => q.def_flg === 1)) || (D == null ? void 0 : D.find((q) => q.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (D == null ? void 0 : D.find(() => !0))) == null ? void 0 : u.id) != null ? s : null, ee = (l = (o = (F == null ? void 0 : F.find((q) => q.id === this.getCurrentVarGridMasterID(e))) || (F == null ? void 0 : F.find((q) => q.def_flg === 1)) || (F == null ? void 0 : F.find((q) => q.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (F == null ? void 0 : F.find(() => !0))) == null ? void 0 : o.id) != null ? l : null;
|
26293
|
+
createDefaultVarSubmitDetailsForVarProfileDetails(ge, Q, W), this.varDdaMap.set(e, w), this.varVariableMap.set(e, K), this.varConfigControlMap.set(e, P), this.varConfigDescriptionMap.set(e, G), this.varConfigInputMap.set(e, B), this.varConfigLookupMap.set(e, x), this.varConfigPossibilityMap.set(e, Y), this.varConfigTipMap.set(e, z), this.varButtonMap.set(e, W), this.varButtonConfigMap.set(e, $), this.varSubmitConfigMap.set(e, H), this.varSubmitDetailMap.set(e, Q), this.varProfileConfigMap.set(e, Z), this.varProfileMasterMap.set(e, { varProfileMasters: oe, currentVarProfileMasterID: de }), this.varGridConfigMap.set(e, _e), this.varGridMasterMap.set(e, { varGridMasters: ge, currentVarGridMasterID: ee }), this.varChildDetailMap.set(e, fe), await Promise.all([
|
26203
26294
|
this.setCurrentVarGridMasterID(e, this.getCurrentVarGridMasterID(e)),
|
26204
26295
|
this.setCurrentVarProfileMasterID(e, this.getCurrentVarProfileMasterID(e))
|
26205
26296
|
]);
|
26206
26297
|
const ae = uniq(
|
26207
26298
|
(d = (_ = (c = this.getCurrentVarGridDetails(e)) == null ? void 0 : c.map((q) => {
|
26208
26299
|
var I, U, J;
|
26209
|
-
const
|
26210
|
-
return !((I =
|
26300
|
+
const M = KgUtil.tryParseJSON(q.display_type_properties);
|
26301
|
+
return !((I = M.description) != null && I.codeName) || ((U = M.description) == null ? void 0 : U.isDefer) === !0 ? null : (J = M.description) == null ? void 0 : J.codeName;
|
26211
26302
|
})) == null ? void 0 : _.filter((q) => !!q)) != null ? d : []
|
26212
26303
|
);
|
26213
26304
|
for (let q of ae)
|
@@ -27068,10 +27159,10 @@ const KgVar = defineComponent({
|
|
27068
27159
|
_ == null || _.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
27069
27160
|
const v = r.kgTable.selectedRows.value;
|
27070
27161
|
try {
|
27071
|
-
const
|
27162
|
+
const L = KgVarUtil.parseRequestParamsToJSON((E = (p = e.kgButton) == null ? void 0 : p.cmd_prm) != null ? E : ""), N = (C = (T = e.kgButton) == null ? void 0 : T.cmd_method) != null ? C : "POST", V = await httpClient().request({
|
27072
27163
|
url: c,
|
27073
27164
|
method: N,
|
27074
|
-
params:
|
27165
|
+
params: L,
|
27075
27166
|
data: v != null ? v : [],
|
27076
27167
|
headers: {
|
27077
27168
|
[KG_HTTP_HEADERS.KG_FORM_ID]: r.formID,
|
@@ -27083,15 +27174,15 @@ const KgVar = defineComponent({
|
|
27083
27174
|
((D = e.kgButton) == null ? void 0 : D.re_select_after_reload_flg) !== 0 && (w = !1, r.kgTable.onAfterRequest(async ({
|
27084
27175
|
datas: K
|
27085
27176
|
}) => {
|
27086
|
-
const
|
27087
|
-
return
|
27177
|
+
const P = K.value, G = intersectionWith$1(P, v != null ? v : [], (B, x) => (B == null ? void 0 : B[r.kgTable.idKey.value]) === (x == null ? void 0 : x[r.kgTable.idKey.value]));
|
27178
|
+
return G.length > 0 && r.kgTable.store.setSelectedRows(r.formID, G), !1;
|
27088
27179
|
}, !0)), ((y = e.kgButton) == null ? void 0 : y.show_success_message_flg) !== 0 && message.success(a.t("kg.executeSuccess")), r.kgSearch.search({
|
27089
27180
|
isSearchFirstPage: w
|
27090
27181
|
});
|
27091
27182
|
} else
|
27092
27183
|
((F = e.kgButton) == null ? void 0 : F.show_success_message_flg) !== 0 && message.success(a.t("kg.executeSuccess"));
|
27093
|
-
} catch (
|
27094
|
-
console.error(
|
27184
|
+
} catch (L) {
|
27185
|
+
console.error(L);
|
27095
27186
|
} finally {
|
27096
27187
|
r.store.setIsOtherRequesting(r.formID, !1), _ == null || _.hideLoading();
|
27097
27188
|
}
|
@@ -27976,29 +28067,29 @@ const getProps$a = () => ({
|
|
27976
28067
|
}), b = ref({
|
27977
28068
|
kgHeight: m.value
|
27978
28069
|
}), v = computed(() => {
|
27979
|
-
var
|
27980
|
-
if (!isNil((
|
28070
|
+
var W, $, H, Q;
|
28071
|
+
if (!isNil(($ = (W = r == null ? void 0 : r.value) == null ? void 0 : W.KgSearch) == null ? void 0 : $.kgDisabled))
|
27981
28072
|
return (Q = (H = r == null ? void 0 : r.value) == null ? void 0 : H.KgSearch) == null ? void 0 : Q.kgDisabled;
|
27982
28073
|
if (!isNil(e.kgDisabled))
|
27983
28074
|
return e.kgDisabled;
|
27984
28075
|
}), p = computed(() => {
|
27985
|
-
var
|
27986
|
-
return ((
|
28076
|
+
var W;
|
28077
|
+
return ((W = u.varProfileConfig.value) == null ? void 0 : W.resizable_flg) === 0 || d.value <= HEADER_HEIGHT + BORDER_BOTTOM_WIDTH;
|
27987
28078
|
}), E = computed(() => {
|
27988
|
-
var
|
27989
|
-
return !!(v.value || u.kgTable.isRetrieving.value || KgAuthUtil.getPermissionType((
|
28079
|
+
var W, $;
|
28080
|
+
return !!(v.value || u.kgTable.isRetrieving.value || KgAuthUtil.getPermissionType((W = u.kgButton.searchButton.value) == null ? void 0 : W.permission_code) === 2 && !n.p(($ = u.kgButton.searchButton.value) == null ? void 0 : $.permission_code) || u.isCreating.value || u.isUpdating.value || u.isCopying.value || u.isDeleting.value);
|
27990
28081
|
}), T = computed(() => !!(v.value || u.kgTable.isRetrieving.value || u.isCreating.value || u.isUpdating.value || u.isCopying.value || u.isDeleting.value)), C = computed(() => !!u.kgTable.isRetrieving.value), k = ref({
|
27991
28082
|
visible: !1
|
27992
28083
|
}), A = computed(() => b.value.kgHeight === m.value), O = computed(() => {
|
27993
28084
|
var H;
|
27994
28085
|
if (!u.kgButton.searchButton.value)
|
27995
28086
|
return;
|
27996
|
-
const
|
27997
|
-
if (
|
27998
|
-
return
|
28087
|
+
const W = (H = u.kgButton.searchButton.value) == null ? void 0 : H.var_nam, $ = u.t(W).value;
|
28088
|
+
if (!!$ && !!W && $ !== W)
|
28089
|
+
return $;
|
27999
28090
|
}), D = computed(() => {
|
28000
|
-
var
|
28001
|
-
switch ((
|
28091
|
+
var W;
|
28092
|
+
switch ((W = u.kgButton.searchButton.value) == null ? void 0 : W.primary_flg) {
|
28002
28093
|
case 1:
|
28003
28094
|
return !0;
|
28004
28095
|
case 0:
|
@@ -28006,9 +28097,9 @@ const getProps$a = () => ({
|
|
28006
28097
|
default:
|
28007
28098
|
return !0;
|
28008
28099
|
}
|
28009
|
-
}), y = computed(() => !!(u.isRetrieving.value || u.isRetrievingVarProfileMaster.value)), F = computed(() => !!u.isRetrieving.value || !!u.isRetrievingVarProfileMaster.value),
|
28010
|
-
let
|
28011
|
-
return s.value && (
|
28100
|
+
}), y = computed(() => !!(u.isRetrieving.value || u.isRetrievingVarProfileMaster.value)), F = computed(() => !!u.isRetrieving.value || !!u.isRetrievingVarProfileMaster.value), L = computed(() => {
|
28101
|
+
let W = "kg-search";
|
28102
|
+
return s.value && (W += " kg-search--visible"), W;
|
28012
28103
|
}), N = computed(() => {
|
28013
28104
|
switch (u.kgSubmit.searchVarSubmitConfig$Layout.value) {
|
28014
28105
|
case KG__VAR_SUBMIT_CONFIG__LAYOUT.HORIZONTAL:
|
@@ -28028,7 +28119,7 @@ const getProps$a = () => ({
|
|
28028
28119
|
default:
|
28029
28120
|
return;
|
28030
28121
|
}
|
28031
|
-
}),
|
28122
|
+
}), V = computed(() => {
|
28032
28123
|
switch (u.kgSubmit.searchVarSubmitConfig$Layout.value) {
|
28033
28124
|
case KG__VAR_SUBMIT_CONFIG__LAYOUT.HORIZONTAL:
|
28034
28125
|
switch (u.kgSubmit.searchVarSubmitConfig$LabelColumnUnit.value) {
|
@@ -28043,18 +28134,18 @@ const getProps$a = () => ({
|
|
28043
28134
|
return;
|
28044
28135
|
}
|
28045
28136
|
});
|
28046
|
-
watch(d, (
|
28047
|
-
b.value.kgHeight =
|
28137
|
+
watch(d, (W) => {
|
28138
|
+
b.value.kgHeight = W;
|
28048
28139
|
}, {
|
28049
28140
|
immediate: !0
|
28050
28141
|
});
|
28051
|
-
async function w(
|
28052
|
-
var
|
28142
|
+
async function w(W = {}) {
|
28143
|
+
var $, H;
|
28053
28144
|
if (____DEBUG____(`${u.formID} | KgSearch | onSearch() | \u8FDB\u5165\u65B9\u6CD5.`), u.kgTable.isRetrieving.value) {
|
28054
28145
|
____DEBUG____(`${u.formID} | KgSearch | onSearch() | \u6B63\u5728\u67E5\u8BE2.`);
|
28055
28146
|
return;
|
28056
28147
|
}
|
28057
|
-
if (KgAuthUtil.getPermissionType((
|
28148
|
+
if (KgAuthUtil.getPermissionType(($ = u.kgButton.searchButton.value) == null ? void 0 : $.permission_code) === 2 && !n.p((H = u.kgButton.searchButton.value) == null ? void 0 : H.permission_code)) {
|
28058
28149
|
____DEBUG____(`${u.formID} | KgSearch | onSearch() | \u6CA1\u6709\u6743\u9650.`);
|
28059
28150
|
return;
|
28060
28151
|
}
|
@@ -28063,44 +28154,44 @@ const getProps$a = () => ({
|
|
28063
28154
|
return;
|
28064
28155
|
}
|
28065
28156
|
s.value ? (____DEBUG____(`${u.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), c.value && c.value.validate().then(async () => {
|
28066
|
-
await u.kgSearch.store.emit(u.formID, "search",
|
28157
|
+
await u.kgSearch.store.emit(u.formID, "search", W);
|
28067
28158
|
}).catch((Q) => {
|
28068
28159
|
____DEBUG____(`${u.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
28069
28160
|
e: Q
|
28070
28161
|
});
|
28071
|
-
})) : (____DEBUG____(`${u.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await u.kgSearch.store.emit(u.formID, "search",
|
28162
|
+
})) : (____DEBUG____(`${u.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await u.kgSearch.store.emit(u.formID, "search", W));
|
28072
28163
|
}
|
28073
28164
|
u.kgSearch.store.setSearchFn(u.formID, w);
|
28074
28165
|
async function K() {
|
28075
28166
|
_(), s.value ? c.value && c.value.validate().then(async () => {
|
28076
28167
|
await u.kgSearch.store.emit(u.formID, "reset", {});
|
28077
|
-
}).catch((
|
28168
|
+
}).catch((W) => {
|
28078
28169
|
____DEBUG____(`${u.formID} | KgSearch | onReset() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
28079
|
-
e:
|
28170
|
+
e: W
|
28080
28171
|
});
|
28081
28172
|
}) : await u.kgSearch.store.emit(u.formID, "reset", {});
|
28082
28173
|
}
|
28083
28174
|
u.kgSearch.store.setResetFn(u.formID, K);
|
28084
|
-
function
|
28175
|
+
function P() {
|
28085
28176
|
return w({
|
28086
28177
|
isSearchFirstPage: !0
|
28087
28178
|
}), Promise.resolve(!0);
|
28088
28179
|
}
|
28089
|
-
function
|
28090
|
-
var
|
28180
|
+
function G() {
|
28181
|
+
var W;
|
28091
28182
|
return createVNode("div", {
|
28092
28183
|
class: "title",
|
28093
28184
|
onClick: z
|
28094
|
-
}, [((
|
28185
|
+
}, [((W = a == null ? void 0 : a.KgSearch) == null ? void 0 : W.left) && createVNode("div", {
|
28095
28186
|
class: "kg-search-title-left",
|
28096
|
-
onClick: (
|
28097
|
-
|
28187
|
+
onClick: ($) => {
|
28188
|
+
$.stopPropagation(), $.preventDefault();
|
28098
28189
|
}
|
28099
28190
|
}, [a.KgSearch.left()]), A.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [n.t("kg.KgSearch.title")])]);
|
28100
28191
|
}
|
28101
28192
|
function B() {
|
28102
|
-
var
|
28103
|
-
return ((
|
28193
|
+
var W, $, H, Q;
|
28194
|
+
return (($ = (W = u.varProfileMasters.value) == null ? void 0 : W.length) != null ? $ : 0) === 0 || ((H = u.varProfileConfig.value) == null ? void 0 : H.show_config_button_flag) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
28104
28195
|
value: (Q = u.currentVarProfileMasterID.value) != null ? Q : void 0,
|
28105
28196
|
"onUpdate:value": (Z) => u.store.setCurrentVarProfileMasterID(u.formID, Z),
|
28106
28197
|
disabled: T.value,
|
@@ -28128,7 +28219,7 @@ const getProps$a = () => ({
|
|
28128
28219
|
})]);
|
28129
28220
|
}
|
28130
28221
|
function x() {
|
28131
|
-
var
|
28222
|
+
var W, $, H;
|
28132
28223
|
return createVNode(Fragment, null, [B(), createVNode(Button, {
|
28133
28224
|
type: "primary",
|
28134
28225
|
ghost: !E.value,
|
@@ -28139,41 +28230,41 @@ const getProps$a = () => ({
|
|
28139
28230
|
default: () => [createVNode(ReloadOutlined$1, null, null), n.t("kg.reset")]
|
28140
28231
|
}), createVNode(KgButton.Item, {
|
28141
28232
|
kgType: KG__VAR_BUTTON__TYPE.SEARCH,
|
28142
|
-
kgVarName: (
|
28143
|
-
kgIcon: (
|
28233
|
+
kgVarName: (W = u.kgButton.searchButton.value) == null ? void 0 : W.var_nam,
|
28234
|
+
kgIcon: ($ = u.kgButton.searchButton.value) == null ? void 0 : $.icon,
|
28144
28235
|
kgText: O.value,
|
28145
28236
|
kgColor: (H = u.kgButton.searchButton.value) == null ? void 0 : H.color,
|
28146
28237
|
kgPrimary: D.value,
|
28147
28238
|
kgDisabled: E.value,
|
28148
28239
|
kgLoading: C.value,
|
28149
|
-
onKgClick:
|
28240
|
+
onKgClick: P
|
28150
28241
|
}, null)]);
|
28151
28242
|
}
|
28152
|
-
function
|
28153
|
-
let
|
28243
|
+
function Y() {
|
28244
|
+
let W;
|
28154
28245
|
return createVNode(Spin, {
|
28155
28246
|
spinning: F.value
|
28156
28247
|
}, {
|
28157
28248
|
default: () => {
|
28158
|
-
var
|
28249
|
+
var $;
|
28159
28250
|
return [createVNode(KgForm, {
|
28160
28251
|
ref: c,
|
28161
|
-
model: (
|
28252
|
+
model: ($ = u.kgSearch.formModel.value) != null ? $ : {},
|
28162
28253
|
layout: u.kgSubmit.searchVarSubmitConfig$Layout.value,
|
28163
28254
|
labelCol: N.value,
|
28164
|
-
wrapperCol:
|
28255
|
+
wrapperCol: V.value
|
28165
28256
|
}, {
|
28166
28257
|
default: () => [createVNode(Row, {
|
28167
28258
|
gutter: 6
|
28168
|
-
}, _isSlot$1(
|
28259
|
+
}, _isSlot$1(W = u.kgSearch.currentVarProfileDetails.value.map((H) => createVNode(KgForm.Item, {
|
28169
28260
|
key: H.var_nam,
|
28170
28261
|
kgVarName: H.var_nam,
|
28171
28262
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
28172
28263
|
onKgSubmit: () => w({
|
28173
28264
|
isSearchFirstPage: !0
|
28174
28265
|
})
|
28175
|
-
}, null))) ?
|
28176
|
-
default: () => [
|
28266
|
+
}, null))) ? W : {
|
28267
|
+
default: () => [W]
|
28177
28268
|
})]
|
28178
28269
|
})];
|
28179
28270
|
}
|
@@ -28188,11 +28279,11 @@ const getProps$a = () => ({
|
|
28188
28279
|
"kg-form_id": u.formID,
|
28189
28280
|
ref: o,
|
28190
28281
|
kgHeight: b.value.kgHeight,
|
28191
|
-
"onUpdate:kgHeight": (
|
28282
|
+
"onUpdate:kgHeight": (W) => b.value.kgHeight = W,
|
28192
28283
|
kgMinHeight: m.value,
|
28193
28284
|
kgMaxHeight: g.value,
|
28194
28285
|
kgDisabled: p.value,
|
28195
|
-
kgClass:
|
28286
|
+
kgClass: L.value
|
28196
28287
|
}, {
|
28197
28288
|
default: () => [s.value && createVNode(Fragment, null, [createVNode("div", {
|
28198
28289
|
class: "ant-collapse ant-collapse-icon-position-left"
|
@@ -28203,7 +28294,7 @@ const getProps$a = () => ({
|
|
28203
28294
|
}, [createVNode(Spin, {
|
28204
28295
|
spinning: y.value
|
28205
28296
|
}, {
|
28206
|
-
default: () => [
|
28297
|
+
default: () => [G(), createVNode("div", {
|
28207
28298
|
class: "ant-collapse-extra"
|
28208
28299
|
}, [x()])]
|
28209
28300
|
})]), createVNode("div", {
|
@@ -28211,9 +28302,9 @@ const getProps$a = () => ({
|
|
28211
28302
|
}, [createVNode("div", {
|
28212
28303
|
class: "ant-collapse-content-box",
|
28213
28304
|
ref: l
|
28214
|
-
}, [
|
28305
|
+
}, [Y()])])])]), k.value.visible && createVNode(KgSearchConfigModal, {
|
28215
28306
|
visible: k.value.visible,
|
28216
|
-
"onUpdate:visible": (
|
28307
|
+
"onUpdate:visible": (W) => k.value.visible = W
|
28217
28308
|
}, null)])]
|
28218
28309
|
});
|
28219
28310
|
}
|
@@ -29160,8 +29251,8 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
29160
29251
|
var O;
|
29161
29252
|
const A = (O = s.value) == null ? void 0 : O.toUpperCase();
|
29162
29253
|
return _.value.filter((D) => {
|
29163
|
-
var y, F,
|
29164
|
-
return ((F = (y = D.whDsc) == null ? void 0 : y.toUpperCase()) == null ? void 0 : F.includes(A)) || ((N = (
|
29254
|
+
var y, F, L, N, V, w;
|
29255
|
+
return ((F = (y = D.whDsc) == null ? void 0 : y.toUpperCase()) == null ? void 0 : F.includes(A)) || ((N = (L = D.whId) == null ? void 0 : L.toUpperCase()) == null ? void 0 : N.includes(A)) || ((w = (V = D.adrId) == null ? void 0 : V.toUpperCase()) == null ? void 0 : w.includes(A));
|
29165
29256
|
});
|
29166
29257
|
}), g = computed(() => {
|
29167
29258
|
var A;
|
@@ -29980,17 +30071,17 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
29980
30071
|
n.value = N != null ? N : [];
|
29981
30072
|
}
|
29982
30073
|
function m(N) {
|
29983
|
-
u.value.frmId = N != null ? N : "", u.value.varButtons.forEach((
|
30074
|
+
u.value.frmId = N != null ? N : "", u.value.varButtons.forEach((V) => V.frm_id = N), u.value.varVariables.forEach((V) => V.frm_id = N), u.value.varDda.frm_id = N != null ? N : "", u.value.varGridConfig.frm_id = N != null ? N : "", u.value.varGridDetails.forEach((V) => V.frm_id = N), u.value.varGridMaster.frm_id = N != null ? N : "", u.value.varProfileConfig.frm_id = N != null ? N : "", u.value.varProfileDetails.forEach((V) => V.frm_id = N), u.value.varProfileMaster.frm_id = N != null ? N : "", u.value.varSubmitConfigs.forEach((V) => V.frm_id = N), u.value.varSubmitDetails.forEach((V) => V.frm_id = N), u.value.varConfigDescriptions.forEach((V) => V.frm_id = N);
|
29984
30075
|
}
|
29985
30076
|
function b(N) {
|
29986
|
-
const { properties:
|
29987
|
-
Object.entries(
|
30077
|
+
const { properties: V = {} } = N;
|
30078
|
+
Object.entries(V).forEach(([w, K]) => {
|
29988
30079
|
w in u.value.sysPermissions[0] && u.value.sysPermissions[0][w] !== K && (u.value.sysPermissions[0][w] = K);
|
29989
30080
|
});
|
29990
30081
|
}
|
29991
30082
|
function v(N) {
|
29992
|
-
const { formID:
|
29993
|
-
u.value.varDda.frm_id =
|
30083
|
+
const { formID: V, frmNam: w } = N;
|
30084
|
+
u.value.varDda.frm_id = V, u.value.varDda.frm_nam = w;
|
29994
30085
|
}
|
29995
30086
|
function p(N) {
|
29996
30087
|
u.value.varButtons = [
|
@@ -30019,32 +30110,32 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
30019
30110
|
], F();
|
30020
30111
|
}
|
30021
30112
|
function E(N) {
|
30022
|
-
const { varName:
|
30113
|
+
const { varName: V, properties: w = {} } = N, K = u.value.varButtons.find((B) => B.var_nam === V);
|
30023
30114
|
if (!K)
|
30024
30115
|
return;
|
30025
|
-
let
|
30116
|
+
let P = !1;
|
30026
30117
|
if (Object.entries(w).forEach(([B, x]) => {
|
30027
|
-
B in K && K[B] !== x && (K[B] = x,
|
30028
|
-
}), !
|
30118
|
+
B in K && K[B] !== x && (K[B] = x, P = !0);
|
30119
|
+
}), !P)
|
30029
30120
|
return;
|
30030
|
-
const
|
30031
|
-
|
30121
|
+
const G = [...u.value.varButtons];
|
30122
|
+
G.splice(u.value.varButtons.indexOf(K), 1, { ...K }), u.value.varButtons = toRaw(G);
|
30032
30123
|
}
|
30033
30124
|
function T(N) {
|
30034
|
-
const { varName:
|
30125
|
+
const { varName: V } = N, w = u.value.varButtons.find((P) => P.var_nam === V);
|
30035
30126
|
if (!w)
|
30036
30127
|
return;
|
30037
30128
|
const K = [...u.value.varButtons];
|
30038
30129
|
K.splice(u.value.varButtons.indexOf(w), 1), u.value.varButtons = toRaw(K);
|
30039
30130
|
}
|
30040
30131
|
function C(N) {
|
30041
|
-
var
|
30042
|
-
const { varName:
|
30043
|
-
if (!
|
30132
|
+
var P;
|
30133
|
+
const { varName: V, varText: w } = N;
|
30134
|
+
if (!V)
|
30044
30135
|
return;
|
30045
|
-
const K = u.value.varConfigDescriptions.find((
|
30136
|
+
const K = u.value.varConfigDescriptions.find((G) => G.var_nam === V);
|
30046
30137
|
if (K) {
|
30047
|
-
K.var_text = w ||
|
30138
|
+
K.var_text = w || V;
|
30048
30139
|
return;
|
30049
30140
|
}
|
30050
30141
|
u.value.varConfigDescriptions = [
|
@@ -30053,29 +30144,29 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
30053
30144
|
cust_lvl: KG_CUSTOM_LEVEL.L0,
|
30054
30145
|
frm_id: c.value,
|
30055
30146
|
grp_nam: "WMS",
|
30056
|
-
locale_id: (
|
30057
|
-
var_nam:
|
30058
|
-
var_text: w ||
|
30147
|
+
locale_id: (P = e.locale) == null ? void 0 : P.value,
|
30148
|
+
var_nam: V,
|
30149
|
+
var_text: w || V
|
30059
30150
|
}
|
30060
30151
|
];
|
30061
30152
|
}
|
30062
30153
|
function k(N) {
|
30063
|
-
u.value.varProfileDetails = N.map((
|
30064
|
-
...
|
30154
|
+
u.value.varProfileDetails = N.map((V) => ({
|
30155
|
+
...V,
|
30065
30156
|
frm_id: c.value,
|
30066
30157
|
grp_nam: "WMS"
|
30067
30158
|
}));
|
30068
30159
|
}
|
30069
30160
|
function A(N) {
|
30070
|
-
u.value.varGridDetails = N.map((
|
30071
|
-
...
|
30161
|
+
u.value.varGridDetails = N.map((V) => ({
|
30162
|
+
...V,
|
30072
30163
|
frm_id: c.value,
|
30073
30164
|
grp_nam: "WMS"
|
30074
30165
|
}));
|
30075
30166
|
}
|
30076
30167
|
function O(N) {
|
30077
|
-
u.value.varSubmitDetails = N.map((
|
30078
|
-
...
|
30168
|
+
u.value.varSubmitDetails = N.map((V) => ({
|
30169
|
+
...V,
|
30079
30170
|
cust_lvl: KG_CUSTOM_LEVEL.L0,
|
30080
30171
|
enable_flag: 1,
|
30081
30172
|
frm_id: c.value,
|
@@ -30084,8 +30175,8 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
30084
30175
|
}));
|
30085
30176
|
}
|
30086
30177
|
function D(N) {
|
30087
|
-
var
|
30088
|
-
return N && (K = (w = (
|
30178
|
+
var V, w, K;
|
30179
|
+
return N && (K = (w = (V = u.value.varConfigDescriptions) == null ? void 0 : V.find((P) => P.var_nam === N)) == null ? void 0 : w.var_text) != null ? K : "";
|
30089
30180
|
}
|
30090
30181
|
function y() {
|
30091
30182
|
var N;
|
@@ -30174,16 +30265,16 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
30174
30265
|
}
|
30175
30266
|
function F() {
|
30176
30267
|
var N;
|
30177
|
-
(N = u.value.varButtons) == null || N.forEach((
|
30268
|
+
(N = u.value.varButtons) == null || N.forEach((V) => {
|
30178
30269
|
var w, K;
|
30179
|
-
|
30270
|
+
V.typDsc = (K = (w = a.value.find((P) => P.codval === V.typ)) == null ? void 0 : w.shortDsc) != null ? K : "";
|
30180
30271
|
});
|
30181
30272
|
}
|
30182
|
-
async function
|
30183
|
-
var
|
30273
|
+
async function L() {
|
30274
|
+
var V;
|
30184
30275
|
const { records: N } = await List$1({
|
30185
30276
|
params: {
|
30186
|
-
localeId: (
|
30277
|
+
localeId: (V = e.locale) == null ? void 0 : V.value,
|
30187
30278
|
codnam: "var_button_type",
|
30188
30279
|
pageNo: 1,
|
30189
30280
|
pageSize: 999
|
@@ -30191,7 +30282,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
30191
30282
|
});
|
30192
30283
|
a.value = N != null ? N : [], F();
|
30193
30284
|
}
|
30194
|
-
return y(),
|
30285
|
+
return y(), L(), {
|
30195
30286
|
createVarButton: p,
|
30196
30287
|
updateVarConfigDescription: C,
|
30197
30288
|
createVarDdaQuery: u,
|
@@ -31616,15 +31707,15 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
31616
31707
|
var_nam: y,
|
31617
31708
|
grp_nam: "WMS"
|
31618
31709
|
})), O.varConfigDescriptions = toRaw(O.varConfigDescriptions.filter((y) => D.includes(y.var_nam))), O.varButtons.forEach((y, F) => {
|
31619
|
-
var
|
31710
|
+
var L, N, V;
|
31620
31711
|
delete y.id, O.sysPermissions.push({
|
31621
31712
|
app: "WEB",
|
31622
31713
|
delFlag: 0,
|
31623
31714
|
leaf: !0,
|
31624
31715
|
menuType: 2,
|
31625
|
-
name: (N = (
|
31716
|
+
name: (N = (L = O.varConfigDescriptions.find((w) => w.var_nam === y.var_nam)) == null ? void 0 : L.var_text) != null ? N : "",
|
31626
31717
|
parentId: "",
|
31627
|
-
perms: (
|
31718
|
+
perms: (V = y.permission_code) != null ? V : "",
|
31628
31719
|
permsType: "0",
|
31629
31720
|
route: !1,
|
31630
31721
|
sortNo: F + 1,
|