act-plus 1.1.76 → 1.1.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/act-plus.js +1 -1
- package/act-plus.umd.cjs +1 -1
- package/lib/{dialogAddField-a77ac6b5.js → dialogAddField-20b4a7ee.js} +2 -2
- package/lib/{dialogConfigBtn-eebcdf33.js → dialogConfigBtn-ab76d05a.js} +2 -2
- package/lib/{dialogSiteComponentsParams-f85afc5d.js → dialogSiteComponentsParams-8d86835d.js} +1 -1
- package/lib/{index-af485fe8.js → index-1d041fe2.js} +1 -1
- package/lib/{index-49141176.js → index-24a86341.js} +1 -1
- package/lib/{index-b0a25bbc.js → index-314fcc0c.js} +2 -2
- package/lib/{index-581c47e6.js → index-3f829e79.js} +1 -1
- package/lib/{index-b7b9f03f.js → index-990a6ca9.js} +1 -1
- package/lib/{index-a7bca3db.js → index-b65589b8.js} +1 -1
- package/lib/{index-2426df0a.js → index-c8107847.js} +1 -1
- package/lib/{index-77ef0d15.js → index-ccf27673.js} +1 -1
- package/lib/{index-9744cb23.js → index-ee35054a.js} +428 -426
- package/package.json +1 -1
|
@@ -47,16 +47,16 @@ function ao(e, t = 0, n = e.length) {
|
|
|
47
47
|
continue;
|
|
48
48
|
const i = s + 1;
|
|
49
49
|
o.push(`${i}${" ".repeat(3 - String(i).length)}| ${a[s]}`);
|
|
50
|
-
const
|
|
50
|
+
const g = a[s].length;
|
|
51
51
|
if (s === r) {
|
|
52
|
-
const T = t - (l -
|
|
52
|
+
const T = t - (l - g) + 1, h = Math.max(1, n > l ? g - T : n - t);
|
|
53
53
|
o.push(" | " + " ".repeat(T) + "^".repeat(h));
|
|
54
54
|
} else if (s > r) {
|
|
55
55
|
if (n > l) {
|
|
56
|
-
const T = Math.max(Math.min(n - l,
|
|
56
|
+
const T = Math.max(Math.min(n - l, g), 1);
|
|
57
57
|
o.push(" | " + "^".repeat(T));
|
|
58
58
|
}
|
|
59
|
-
l +=
|
|
59
|
+
l += g + 1;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
break;
|
|
@@ -167,7 +167,7 @@ const io = /<\/?[\w\s="/.':;#-\/]+>/, uo = (e) => io.test(e), st = " ", co = "\r
|
|
|
167
167
|
function po(e) {
|
|
168
168
|
const t = e;
|
|
169
169
|
let n = 0, a = 1, l = 1, o = 0;
|
|
170
|
-
const r = (
|
|
170
|
+
const r = (_) => t[_] === co && t[_ + 1] === De, s = (_) => t[_] === De, i = (_) => t[_] === mo, g = (_) => t[_] === fo, T = (_) => r(_) || s(_) || i(_) || g(_), h = () => n, p = () => a, I = () => l, S = () => o, O = (_) => r(_) || i(_) || g(_) ? De : t[_], R = () => O(n), m = () => O(n + o);
|
|
171
171
|
function A() {
|
|
172
172
|
return o = 0, T(n) && (a++, l = 0), r(n) && n++, n++, l++, t[n];
|
|
173
173
|
}
|
|
@@ -177,27 +177,27 @@ function po(e) {
|
|
|
177
177
|
function f() {
|
|
178
178
|
n = 0, a = 1, l = 1, o = 0;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
o =
|
|
180
|
+
function v(_ = 0) {
|
|
181
|
+
o = _;
|
|
182
182
|
}
|
|
183
183
|
function w() {
|
|
184
|
-
const
|
|
185
|
-
for (;
|
|
184
|
+
const _ = n + o;
|
|
185
|
+
for (; _ !== n; )
|
|
186
186
|
A();
|
|
187
187
|
o = 0;
|
|
188
188
|
}
|
|
189
189
|
return {
|
|
190
190
|
index: h,
|
|
191
191
|
line: p,
|
|
192
|
-
column:
|
|
193
|
-
peekOffset:
|
|
192
|
+
column: I,
|
|
193
|
+
peekOffset: S,
|
|
194
194
|
charAt: O,
|
|
195
195
|
currentChar: R,
|
|
196
196
|
currentPeek: m,
|
|
197
197
|
next: A,
|
|
198
198
|
peek: b,
|
|
199
199
|
reset: f,
|
|
200
|
-
resetPeek:
|
|
200
|
+
resetPeek: v,
|
|
201
201
|
skipToPeek: w
|
|
202
202
|
};
|
|
203
203
|
}
|
|
@@ -215,9 +215,9 @@ function Ao(e, t = {}) {
|
|
|
215
215
|
braceNest: 0,
|
|
216
216
|
inLinked: !1,
|
|
217
217
|
text: ""
|
|
218
|
-
},
|
|
218
|
+
}, g = () => i, { onError: T } = t;
|
|
219
219
|
function h(d, c, L, ...K) {
|
|
220
|
-
const ge =
|
|
220
|
+
const ge = g();
|
|
221
221
|
if (c.column += L, c.offset += L, T) {
|
|
222
222
|
const be = n ? Ln(ge.startLoc, c) : null, se = Ht(d, be, {
|
|
223
223
|
domain: _o,
|
|
@@ -231,12 +231,12 @@ function Ao(e, t = {}) {
|
|
|
231
231
|
const K = { type: c };
|
|
232
232
|
return n && (K.loc = Ln(d.startLoc, d.endLoc)), L != null && (K.value = L), K;
|
|
233
233
|
}
|
|
234
|
-
const
|
|
234
|
+
const I = (d) => p(
|
|
235
235
|
d,
|
|
236
236
|
13
|
|
237
237
|
/* TokenTypes.EOF */
|
|
238
238
|
);
|
|
239
|
-
function
|
|
239
|
+
function S(d, c) {
|
|
240
240
|
return d.currentChar() === c ? (d.next(), c) : (h(ee.EXPECTED_TOKEN, o(), 0, c), "");
|
|
241
241
|
}
|
|
242
242
|
function O(d) {
|
|
@@ -279,7 +279,7 @@ function Ao(e, t = {}) {
|
|
|
279
279
|
const K = d.currentPeek() === "-" ? d.peek() : d.currentPeek(), ge = A(K);
|
|
280
280
|
return d.resetPeek(), ge;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function v(d, c) {
|
|
283
283
|
const { currentType: L } = c;
|
|
284
284
|
if (L !== 2)
|
|
285
285
|
return !1;
|
|
@@ -295,7 +295,7 @@ function Ao(e, t = {}) {
|
|
|
295
295
|
const K = d.currentPeek() === ".";
|
|
296
296
|
return d.resetPeek(), K;
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function _(d, c) {
|
|
299
299
|
const { currentType: L } = c;
|
|
300
300
|
if (L !== 8)
|
|
301
301
|
return !1;
|
|
@@ -417,12 +417,12 @@ function Ao(e, t = {}) {
|
|
|
417
417
|
return d !== ca && d !== De;
|
|
418
418
|
}
|
|
419
419
|
function fe(d) {
|
|
420
|
-
R(d),
|
|
420
|
+
R(d), S(d, "'");
|
|
421
421
|
let c = "", L = "";
|
|
422
422
|
for (; c = te(d, Ct); )
|
|
423
423
|
c === "\\" ? L += Kt(d) : L += c;
|
|
424
424
|
const K = d.currentChar();
|
|
425
|
-
return K === De || K === pt ? (h(ee.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), K === De && (d.next(),
|
|
425
|
+
return K === De || K === pt ? (h(ee.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), K === De && (d.next(), S(d, "'")), L) : (S(d, "'"), L);
|
|
426
426
|
}
|
|
427
427
|
function Kt(d) {
|
|
428
428
|
const c = d.currentChar();
|
|
@@ -439,7 +439,7 @@ function Ao(e, t = {}) {
|
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
function Dt(d, c, L) {
|
|
442
|
-
|
|
442
|
+
S(d, c);
|
|
443
443
|
let K = "";
|
|
444
444
|
for (let ge = 0; ge < L; ge++) {
|
|
445
445
|
const be = we(d);
|
|
@@ -476,7 +476,7 @@ function Ao(e, t = {}) {
|
|
|
476
476
|
}
|
|
477
477
|
function Ze(d) {
|
|
478
478
|
R(d);
|
|
479
|
-
const c =
|
|
479
|
+
const c = S(
|
|
480
480
|
d,
|
|
481
481
|
"|"
|
|
482
482
|
/* TokenChars.Pipe */
|
|
@@ -501,7 +501,7 @@ function Ao(e, t = {}) {
|
|
|
501
501
|
/* TokenChars.BraceRight */
|
|
502
502
|
), c.braceNest--, c.braceNest > 0 && R(d), c.inLinked && c.braceNest === 0 && (c.inLinked = !1), L;
|
|
503
503
|
case "@":
|
|
504
|
-
return c.braceNest > 0 && h(ee.UNTERMINATED_CLOSING_BRACE, o(), 0), L = Ke(d, c) ||
|
|
504
|
+
return c.braceNest > 0 && h(ee.UNTERMINATED_CLOSING_BRACE, o(), 0), L = Ke(d, c) || I(c), c.braceNest = 0, L;
|
|
505
505
|
default: {
|
|
506
506
|
let ge = !0, be = !0, se = !0;
|
|
507
507
|
if (G(d))
|
|
@@ -512,7 +512,7 @@ function Ao(e, t = {}) {
|
|
|
512
512
|
return L = p(c, 4, yt(d)), R(d), L;
|
|
513
513
|
if (be = f(d, c))
|
|
514
514
|
return L = p(c, 5, ft(d)), R(d), L;
|
|
515
|
-
if (se =
|
|
515
|
+
if (se = v(d, c))
|
|
516
516
|
return L = p(c, 6, fe(d)), R(d), L;
|
|
517
517
|
if (!ge && !be && !se)
|
|
518
518
|
return L = p(c, 12, Gt(d)), h(ee.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, L.value), R(d), L;
|
|
@@ -548,7 +548,7 @@ function Ao(e, t = {}) {
|
|
|
548
548
|
/* TokenChars.LinkedDelimiter */
|
|
549
549
|
);
|
|
550
550
|
default:
|
|
551
|
-
return G(d) ? (K = p(c, 1, Ze(d)), c.braceNest = 0, c.inLinked = !1, K) : w(d, c) || P(d, c) ? (R(d), Ke(d, c)) :
|
|
551
|
+
return G(d) ? (K = p(c, 1, Ze(d)), c.braceNest = 0, c.inLinked = !1, K) : w(d, c) || P(d, c) ? (R(d), Ke(d, c)) : _(d, c) ? (R(d), p(c, 11, jt(d))) : F(d, c) ? (R(d), ge === "{" ? ze(d, c) || K : p(c, 10, qt(d))) : (L === 7 && h(ee.INVALID_LINKED_FORMAT, o(), 0), c.braceNest = 0, c.inLinked = !1, Tt(d, c));
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
function Tt(d, c) {
|
|
@@ -557,12 +557,12 @@ function Ao(e, t = {}) {
|
|
|
557
557
|
/* TokenTypes.EOF */
|
|
558
558
|
};
|
|
559
559
|
if (c.braceNest > 0)
|
|
560
|
-
return ze(d, c) ||
|
|
560
|
+
return ze(d, c) || I(c);
|
|
561
561
|
if (c.inLinked)
|
|
562
|
-
return Ke(d, c) ||
|
|
562
|
+
return Ke(d, c) || I(c);
|
|
563
563
|
switch (d.currentChar()) {
|
|
564
564
|
case "{":
|
|
565
|
-
return ze(d, c) ||
|
|
565
|
+
return ze(d, c) || I(c);
|
|
566
566
|
case "}":
|
|
567
567
|
return h(ee.UNBALANCED_CLOSING_BRACE, o(), 0), d.next(), p(
|
|
568
568
|
c,
|
|
@@ -571,7 +571,7 @@ function Ao(e, t = {}) {
|
|
|
571
571
|
/* TokenChars.BraceRight */
|
|
572
572
|
);
|
|
573
573
|
case "@":
|
|
574
|
-
return Ke(d, c) ||
|
|
574
|
+
return Ke(d, c) || I(c);
|
|
575
575
|
default: {
|
|
576
576
|
if (G(d))
|
|
577
577
|
return L = p(c, 1, Ze(d)), c.braceNest = 0, c.inLinked = !1, L;
|
|
@@ -594,7 +594,7 @@ function Ao(e, t = {}) {
|
|
|
594
594
|
nextToken: Jt,
|
|
595
595
|
currentOffset: l,
|
|
596
596
|
currentPosition: o,
|
|
597
|
-
context:
|
|
597
|
+
context: g
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
600
|
const bo = "parser", Eo = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
@@ -612,12 +612,12 @@ function ho(e, t, n) {
|
|
|
612
612
|
}
|
|
613
613
|
function yo(e = {}) {
|
|
614
614
|
const t = e.location !== !1, { onError: n } = e;
|
|
615
|
-
function a(m, A, b, f, ...
|
|
615
|
+
function a(m, A, b, f, ...v) {
|
|
616
616
|
const w = m.currentPosition();
|
|
617
617
|
if (w.offset += f, w.column += f, n) {
|
|
618
|
-
const
|
|
618
|
+
const _ = t ? Ln(b, w) : null, P = Ht(A, _, {
|
|
619
619
|
domain: bo,
|
|
620
|
-
args:
|
|
620
|
+
args: v
|
|
621
621
|
});
|
|
622
622
|
n(P);
|
|
623
623
|
}
|
|
@@ -634,20 +634,20 @@ function yo(e = {}) {
|
|
|
634
634
|
return f.value = A, o(f, m.currentOffset(), m.currentPosition()), f;
|
|
635
635
|
}
|
|
636
636
|
function s(m, A) {
|
|
637
|
-
const b = m.context(), { lastOffset: f, lastStartLoc:
|
|
637
|
+
const b = m.context(), { lastOffset: f, lastStartLoc: v } = b, w = l(5, f, v);
|
|
638
638
|
return w.index = parseInt(A, 10), m.nextToken(), o(w, m.currentOffset(), m.currentPosition()), w;
|
|
639
639
|
}
|
|
640
640
|
function i(m, A) {
|
|
641
|
-
const b = m.context(), { lastOffset: f, lastStartLoc:
|
|
641
|
+
const b = m.context(), { lastOffset: f, lastStartLoc: v } = b, w = l(4, f, v);
|
|
642
642
|
return w.key = A, m.nextToken(), o(w, m.currentOffset(), m.currentPosition()), w;
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
const b = m.context(), { lastOffset: f, lastStartLoc:
|
|
644
|
+
function g(m, A) {
|
|
645
|
+
const b = m.context(), { lastOffset: f, lastStartLoc: v } = b, w = l(9, f, v);
|
|
646
646
|
return w.value = A.replace(Eo, ho), m.nextToken(), o(w, m.currentOffset(), m.currentPosition()), w;
|
|
647
647
|
}
|
|
648
648
|
function T(m) {
|
|
649
|
-
const A = m.nextToken(), b = m.context(), { lastOffset: f, lastStartLoc:
|
|
650
|
-
return A.type !== 11 ? (a(m, ee.UNEXPECTED_EMPTY_LINKED_MODIFIER, b.lastStartLoc, 0), w.value = "", o(w, f,
|
|
649
|
+
const A = m.nextToken(), b = m.context(), { lastOffset: f, lastStartLoc: v } = b, w = l(8, f, v);
|
|
650
|
+
return A.type !== 11 ? (a(m, ee.UNEXPECTED_EMPTY_LINKED_MODIFIER, b.lastStartLoc, 0), w.value = "", o(w, f, v), {
|
|
651
651
|
nextConsumeToken: A,
|
|
652
652
|
node: w
|
|
653
653
|
}) : (A.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, b.lastStartLoc, 0, tt(A)), w.value = A.value || "", o(w, m.currentOffset(), m.currentPosition()), {
|
|
@@ -662,8 +662,8 @@ function yo(e = {}) {
|
|
|
662
662
|
const A = m.context(), b = l(6, A.offset, A.startLoc);
|
|
663
663
|
let f = m.nextToken();
|
|
664
664
|
if (f.type === 8) {
|
|
665
|
-
const
|
|
666
|
-
b.modifier =
|
|
665
|
+
const v = T(m);
|
|
666
|
+
b.modifier = v.node, f = v.nextConsumeToken || m.nextToken();
|
|
667
667
|
}
|
|
668
668
|
switch (f.type !== 9 && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, tt(f)), f = m.nextToken(), f.type === 2 && (f = m.nextToken()), f.type) {
|
|
669
669
|
case 10:
|
|
@@ -676,12 +676,12 @@ function yo(e = {}) {
|
|
|
676
676
|
f.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, tt(f)), b.key = s(m, f.value || "");
|
|
677
677
|
break;
|
|
678
678
|
case 6:
|
|
679
|
-
f.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, tt(f)), b.key =
|
|
679
|
+
f.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, tt(f)), b.key = g(m, f.value || "");
|
|
680
680
|
break;
|
|
681
681
|
default: {
|
|
682
682
|
a(m, ee.UNEXPECTED_EMPTY_LINKED_KEY, A.lastStartLoc, 0);
|
|
683
|
-
const
|
|
684
|
-
return w.value = "", o(w,
|
|
683
|
+
const v = m.context(), w = l(7, v.offset, v.startLoc);
|
|
684
|
+
return w.value = "", o(w, v.offset, v.startLoc), b.key = w, o(b, v.offset, v.startLoc), {
|
|
685
685
|
nextConsumeToken: f,
|
|
686
686
|
node: b
|
|
687
687
|
};
|
|
@@ -691,49 +691,49 @@ function yo(e = {}) {
|
|
|
691
691
|
node: b
|
|
692
692
|
};
|
|
693
693
|
}
|
|
694
|
-
function
|
|
695
|
-
const A = m.context(), b = A.currentType === 1 ? m.currentOffset() : A.offset, f = A.currentType === 1 ? A.endLoc : A.startLoc,
|
|
696
|
-
|
|
694
|
+
function I(m) {
|
|
695
|
+
const A = m.context(), b = A.currentType === 1 ? m.currentOffset() : A.offset, f = A.currentType === 1 ? A.endLoc : A.startLoc, v = l(2, b, f);
|
|
696
|
+
v.items = [];
|
|
697
697
|
let w = null;
|
|
698
698
|
do {
|
|
699
699
|
const F = w || m.nextToken();
|
|
700
700
|
switch (w = null, F.type) {
|
|
701
701
|
case 0:
|
|
702
|
-
F.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, tt(F)),
|
|
702
|
+
F.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, tt(F)), v.items.push(r(m, F.value || ""));
|
|
703
703
|
break;
|
|
704
704
|
case 5:
|
|
705
|
-
F.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, tt(F)),
|
|
705
|
+
F.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, tt(F)), v.items.push(s(m, F.value || ""));
|
|
706
706
|
break;
|
|
707
707
|
case 4:
|
|
708
|
-
F.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, tt(F)),
|
|
708
|
+
F.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, tt(F)), v.items.push(i(m, F.value || ""));
|
|
709
709
|
break;
|
|
710
710
|
case 6:
|
|
711
|
-
F.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, tt(F)),
|
|
711
|
+
F.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, tt(F)), v.items.push(g(m, F.value || ""));
|
|
712
712
|
break;
|
|
713
713
|
case 7: {
|
|
714
714
|
const G = p(m);
|
|
715
|
-
|
|
715
|
+
v.items.push(G.node), w = G.nextConsumeToken || null;
|
|
716
716
|
break;
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
719
|
} while (A.currentType !== 13 && A.currentType !== 1);
|
|
720
|
-
const
|
|
721
|
-
return o(
|
|
720
|
+
const _ = A.currentType === 1 ? A.lastOffset : m.currentOffset(), P = A.currentType === 1 ? A.lastEndLoc : m.currentPosition();
|
|
721
|
+
return o(v, _, P), v;
|
|
722
722
|
}
|
|
723
|
-
function
|
|
724
|
-
const
|
|
723
|
+
function S(m, A, b, f) {
|
|
724
|
+
const v = m.context();
|
|
725
725
|
let w = f.items.length === 0;
|
|
726
|
-
const
|
|
727
|
-
|
|
726
|
+
const _ = l(1, A, b);
|
|
727
|
+
_.cases = [], _.cases.push(f);
|
|
728
728
|
do {
|
|
729
|
-
const P =
|
|
730
|
-
w || (w = P.items.length === 0),
|
|
731
|
-
} while (
|
|
732
|
-
return w && a(m, ee.MUST_HAVE_MESSAGES_IN_PLURAL, b, 0), o(
|
|
729
|
+
const P = I(m);
|
|
730
|
+
w || (w = P.items.length === 0), _.cases.push(P);
|
|
731
|
+
} while (v.currentType !== 13);
|
|
732
|
+
return w && a(m, ee.MUST_HAVE_MESSAGES_IN_PLURAL, b, 0), o(_, m.currentOffset(), m.currentPosition()), _;
|
|
733
733
|
}
|
|
734
734
|
function O(m) {
|
|
735
|
-
const A = m.context(), { offset: b, startLoc: f } = A,
|
|
736
|
-
return A.currentType === 13 ?
|
|
735
|
+
const A = m.context(), { offset: b, startLoc: f } = A, v = I(m);
|
|
736
|
+
return A.currentType === 13 ? v : S(m, b, f, v);
|
|
737
737
|
}
|
|
738
738
|
function R(m) {
|
|
739
739
|
const A = Ao(m, Ne({}, e)), b = A.context(), f = l(0, b.offset, b.startLoc);
|
|
@@ -902,12 +902,12 @@ function So(e, t) {
|
|
|
902
902
|
};
|
|
903
903
|
r && e.loc && (s.source = e.loc.source);
|
|
904
904
|
const i = () => s;
|
|
905
|
-
function
|
|
905
|
+
function g(R, m) {
|
|
906
906
|
s.code += R;
|
|
907
907
|
}
|
|
908
908
|
function T(R, m = !0) {
|
|
909
909
|
const A = m ? l : "";
|
|
910
|
-
|
|
910
|
+
g(o ? A + " ".repeat(R) : A);
|
|
911
911
|
}
|
|
912
912
|
function h(R = !0) {
|
|
913
913
|
const m = ++s.indentLevel;
|
|
@@ -917,15 +917,15 @@ function So(e, t) {
|
|
|
917
917
|
const m = --s.indentLevel;
|
|
918
918
|
R && T(m);
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function I() {
|
|
921
921
|
T(s.indentLevel);
|
|
922
922
|
}
|
|
923
923
|
return {
|
|
924
924
|
context: i,
|
|
925
|
-
push:
|
|
925
|
+
push: g,
|
|
926
926
|
indent: h,
|
|
927
927
|
deindent: p,
|
|
928
|
-
newline:
|
|
928
|
+
newline: I,
|
|
929
929
|
helper: (R) => `_${R}`,
|
|
930
930
|
needIndent: () => s.needIndent
|
|
931
931
|
};
|
|
@@ -1027,10 +1027,10 @@ const Do = (e, t = {}) => {
|
|
|
1027
1027
|
needIndent: r
|
|
1028
1028
|
});
|
|
1029
1029
|
i.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), i.indent(r), s.length > 0 && (i.push(`const { ${Yn(s.map((h) => `${h}: _${h}`), ", ")} } = ctx`), i.newline()), i.push("return "), Wt(i, e), i.deindent(r), i.push("}"), delete e.helpers;
|
|
1030
|
-
const { code:
|
|
1030
|
+
const { code: g, map: T } = i.context();
|
|
1031
1031
|
return {
|
|
1032
1032
|
ast: e,
|
|
1033
|
-
code:
|
|
1033
|
+
code: g,
|
|
1034
1034
|
map: T ? T.toJSON() : void 0
|
|
1035
1035
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1036
1036
|
};
|
|
@@ -1507,7 +1507,7 @@ function pr(e) {
|
|
|
1507
1507
|
}
|
|
1508
1508
|
function gr(e) {
|
|
1509
1509
|
const t = [];
|
|
1510
|
-
let n = -1, a = 0, l = 0, o, r, s, i,
|
|
1510
|
+
let n = -1, a = 0, l = 0, o, r, s, i, g, T, h;
|
|
1511
1511
|
const p = [];
|
|
1512
1512
|
p[
|
|
1513
1513
|
0
|
|
@@ -1545,17 +1545,17 @@ function gr(e) {
|
|
|
1545
1545
|
]();
|
|
1546
1546
|
}
|
|
1547
1547
|
};
|
|
1548
|
-
function
|
|
1549
|
-
const
|
|
1550
|
-
if (a === 5 &&
|
|
1551
|
-
return n++, s = "\\" +
|
|
1548
|
+
function I() {
|
|
1549
|
+
const S = e[n + 1];
|
|
1550
|
+
if (a === 5 && S === "'" || a === 6 && S === '"')
|
|
1551
|
+
return n++, s = "\\" + S, p[
|
|
1552
1552
|
0
|
|
1553
1553
|
/* Actions.APPEND */
|
|
1554
1554
|
](), !0;
|
|
1555
1555
|
}
|
|
1556
1556
|
for (; a !== null; )
|
|
1557
|
-
if (n++, o = e[n], !(o === "\\" &&
|
|
1558
|
-
if (i = mr(o), h = ht[a],
|
|
1557
|
+
if (n++, o = e[n], !(o === "\\" && I())) {
|
|
1558
|
+
if (i = mr(o), h = ht[a], g = h[i] || h.l || 8, g === 8 || (a = g[0], g[1] !== void 0 && (T = p[g[1]], T && (s = o, T() === !1))))
|
|
1559
1559
|
return;
|
|
1560
1560
|
if (a === 7)
|
|
1561
1561
|
return t;
|
|
@@ -1631,9 +1631,9 @@ const ba = (e) => {
|
|
|
1631
1631
|
}, Sr = () => al;
|
|
1632
1632
|
let Ea = 0;
|
|
1633
1633
|
function vr(e = {}) {
|
|
1634
|
-
const t = pe(e.onWarn) ? e.onWarn : bt, n = B(e.version) ? e.version : hr, a = B(e.locale) || pe(e.locale) ? e.locale : tn, l = pe(a) ? tn : a, o = Ee(e.fallbackLocale) || ne(e.fallbackLocale) || B(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, r = ne(e.messages) ? e.messages : Sn(l), s = ne(e.datetimeFormats) ? e.datetimeFormats : Sn(l), i = ne(e.numberFormats) ? e.numberFormats : Sn(l),
|
|
1634
|
+
const t = pe(e.onWarn) ? e.onWarn : bt, n = B(e.version) ? e.version : hr, a = B(e.locale) || pe(e.locale) ? e.locale : tn, l = pe(a) ? tn : a, o = Ee(e.fallbackLocale) || ne(e.fallbackLocale) || B(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, r = ne(e.messages) ? e.messages : Sn(l), s = ne(e.datetimeFormats) ? e.datetimeFormats : Sn(l), i = ne(e.numberFormats) ? e.numberFormats : Sn(l), g = Ne(de(), e.modifiers, yr()), T = e.pluralRules || de(), h = pe(e.missing) ? e.missing : null, p = ce(e.missingWarn) || Qt(e.missingWarn) ? e.missingWarn : !0, I = ce(e.fallbackWarn) || Qt(e.fallbackWarn) ? e.fallbackWarn : !0, S = !!e.fallbackFormat, O = !!e.unresolving, R = pe(e.postTranslation) ? e.postTranslation : null, m = ne(e.processor) ? e.processor : null, A = ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter, f = pe(e.messageCompiler) ? e.messageCompiler : za;
|
|
1635
1635
|
process.env.NODE_ENV !== "production" && pe(e.messageCompiler) && Xa(Lt(Ue.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1636
|
-
const
|
|
1636
|
+
const v = pe(e.messageResolver) ? e.messageResolver : el || _r, w = pe(e.localeFallbacker) ? e.localeFallbacker : tl || sr, _ = ue(e.fallbackContext) ? e.fallbackContext : void 0, P = e, F = ue(P.__datetimeFormatters) ? P.__datetimeFormatters : /* @__PURE__ */ new Map(), G = ue(P.__numberFormatters) ? P.__numberFormatters : /* @__PURE__ */ new Map(), Y = ue(P.__meta) ? P.__meta : {};
|
|
1637
1637
|
Ea++;
|
|
1638
1638
|
const te = {
|
|
1639
1639
|
version: n,
|
|
@@ -1641,21 +1641,21 @@ function vr(e = {}) {
|
|
|
1641
1641
|
locale: a,
|
|
1642
1642
|
fallbackLocale: o,
|
|
1643
1643
|
messages: r,
|
|
1644
|
-
modifiers:
|
|
1644
|
+
modifiers: g,
|
|
1645
1645
|
pluralRules: T,
|
|
1646
1646
|
missing: h,
|
|
1647
1647
|
missingWarn: p,
|
|
1648
|
-
fallbackWarn:
|
|
1649
|
-
fallbackFormat:
|
|
1648
|
+
fallbackWarn: I,
|
|
1649
|
+
fallbackFormat: S,
|
|
1650
1650
|
unresolving: O,
|
|
1651
1651
|
postTranslation: R,
|
|
1652
1652
|
processor: m,
|
|
1653
1653
|
warnHtmlMessage: A,
|
|
1654
1654
|
escapeParameter: b,
|
|
1655
1655
|
messageCompiler: f,
|
|
1656
|
-
messageResolver:
|
|
1656
|
+
messageResolver: v,
|
|
1657
1657
|
localeFallbacker: w,
|
|
1658
|
-
fallbackContext:
|
|
1658
|
+
fallbackContext: _,
|
|
1659
1659
|
onWarn: t,
|
|
1660
1660
|
__meta: Y
|
|
1661
1661
|
};
|
|
@@ -1709,18 +1709,18 @@ function ya(e, ...t) {
|
|
|
1709
1709
|
const { datetimeFormats: n, unresolving: a, fallbackLocale: l, onWarn: o, localeFallbacker: r } = e, { __datetimeFormatters: s } = e;
|
|
1710
1710
|
if (process.env.NODE_ENV !== "production" && !rl.dateTimeFormat)
|
|
1711
1711
|
return o(Lt(Ue.CANNOT_FORMAT_DATE)), gn;
|
|
1712
|
-
const [i,
|
|
1712
|
+
const [i, g, T, h] = wn(...t), p = ce(T.missingWarn) ? T.missingWarn : e.missingWarn, I = ce(T.fallbackWarn) ? T.fallbackWarn : e.fallbackWarn, S = !!T.part, O = qn(e, T), R = r(
|
|
1713
1713
|
e,
|
|
1714
1714
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1715
1715
|
l,
|
|
1716
1716
|
O
|
|
1717
1717
|
);
|
|
1718
1718
|
if (!B(i) || i === "")
|
|
1719
|
-
return new Intl.DateTimeFormat(O, h).format(
|
|
1720
|
-
let m = {}, A, b = null, f = O,
|
|
1719
|
+
return new Intl.DateTimeFormat(O, h).format(g);
|
|
1720
|
+
let m = {}, A, b = null, f = O, v = null;
|
|
1721
1721
|
const w = "datetime format";
|
|
1722
1722
|
for (let F = 0; F < R.length; F++) {
|
|
1723
|
-
if (A =
|
|
1723
|
+
if (A = v = R[F], process.env.NODE_ENV !== "production" && O !== A && yn(I, i) && o(Lt(Ue.FALLBACK_TO_DATE_FORMAT, {
|
|
1724
1724
|
key: i,
|
|
1725
1725
|
target: A
|
|
1726
1726
|
})), process.env.NODE_ENV !== "production" && O !== A) {
|
|
@@ -1729,20 +1729,20 @@ function ya(e, ...t) {
|
|
|
1729
1729
|
type: w,
|
|
1730
1730
|
key: i,
|
|
1731
1731
|
from: f,
|
|
1732
|
-
to:
|
|
1732
|
+
to: v,
|
|
1733
1733
|
groupId: `${w}:${i}`
|
|
1734
1734
|
});
|
|
1735
1735
|
}
|
|
1736
1736
|
if (m = n[A] || {}, b = m[i], ne(b))
|
|
1737
1737
|
break;
|
|
1738
|
-
Jn(e, i, A, p, w), f =
|
|
1738
|
+
Jn(e, i, A, p, w), f = v;
|
|
1739
1739
|
}
|
|
1740
1740
|
if (!ne(b) || !B(A))
|
|
1741
1741
|
return a ? hn : i;
|
|
1742
|
-
let
|
|
1743
|
-
En(h) || (
|
|
1744
|
-
let P = s.get(
|
|
1745
|
-
return P || (P = new Intl.DateTimeFormat(A, Ne({}, b, h)), s.set(
|
|
1742
|
+
let _ = `${A}__${i}`;
|
|
1743
|
+
En(h) || (_ = `${_}__${JSON.stringify(h)}`);
|
|
1744
|
+
let P = s.get(_);
|
|
1745
|
+
return P || (P = new Intl.DateTimeFormat(A, Ne({}, b, h)), s.set(_, P)), S ? P.formatToParts(g) : P.format(g);
|
|
1746
1746
|
}
|
|
1747
1747
|
const sl = [
|
|
1748
1748
|
"localeMatcher",
|
|
@@ -1773,8 +1773,8 @@ function wn(...e) {
|
|
|
1773
1773
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1774
1774
|
if (!i)
|
|
1775
1775
|
throw ut(Oe.INVALID_ISO_DATE_ARGUMENT);
|
|
1776
|
-
const
|
|
1777
|
-
s = new Date(
|
|
1776
|
+
const g = i[3] ? i[3].trim().startsWith("T") ? `${i[1].trim()}${i[3].trim()}` : `${i[1].trim()}T${i[3].trim()}` : i[1].trim();
|
|
1777
|
+
s = new Date(g);
|
|
1778
1778
|
try {
|
|
1779
1779
|
s.toISOString();
|
|
1780
1780
|
} catch {
|
|
@@ -1803,18 +1803,18 @@ function Ta(e, ...t) {
|
|
|
1803
1803
|
const { numberFormats: n, unresolving: a, fallbackLocale: l, onWarn: o, localeFallbacker: r } = e, { __numberFormatters: s } = e;
|
|
1804
1804
|
if (process.env.NODE_ENV !== "production" && !rl.numberFormat)
|
|
1805
1805
|
return o(Lt(Ue.CANNOT_FORMAT_NUMBER)), gn;
|
|
1806
|
-
const [i,
|
|
1806
|
+
const [i, g, T, h] = Dn(...t), p = ce(T.missingWarn) ? T.missingWarn : e.missingWarn, I = ce(T.fallbackWarn) ? T.fallbackWarn : e.fallbackWarn, S = !!T.part, O = qn(e, T), R = r(
|
|
1807
1807
|
e,
|
|
1808
1808
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1809
1809
|
l,
|
|
1810
1810
|
O
|
|
1811
1811
|
);
|
|
1812
1812
|
if (!B(i) || i === "")
|
|
1813
|
-
return new Intl.NumberFormat(O, h).format(
|
|
1814
|
-
let m = {}, A, b = null, f = O,
|
|
1813
|
+
return new Intl.NumberFormat(O, h).format(g);
|
|
1814
|
+
let m = {}, A, b = null, f = O, v = null;
|
|
1815
1815
|
const w = "number format";
|
|
1816
1816
|
for (let F = 0; F < R.length; F++) {
|
|
1817
|
-
if (A =
|
|
1817
|
+
if (A = v = R[F], process.env.NODE_ENV !== "production" && O !== A && yn(I, i) && o(Lt(Ue.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1818
1818
|
key: i,
|
|
1819
1819
|
target: A
|
|
1820
1820
|
})), process.env.NODE_ENV !== "production" && O !== A) {
|
|
@@ -1823,20 +1823,20 @@ function Ta(e, ...t) {
|
|
|
1823
1823
|
type: w,
|
|
1824
1824
|
key: i,
|
|
1825
1825
|
from: f,
|
|
1826
|
-
to:
|
|
1826
|
+
to: v,
|
|
1827
1827
|
groupId: `${w}:${i}`
|
|
1828
1828
|
});
|
|
1829
1829
|
}
|
|
1830
1830
|
if (m = n[A] || {}, b = m[i], ne(b))
|
|
1831
1831
|
break;
|
|
1832
|
-
Jn(e, i, A, p, w), f =
|
|
1832
|
+
Jn(e, i, A, p, w), f = v;
|
|
1833
1833
|
}
|
|
1834
1834
|
if (!ne(b) || !B(A))
|
|
1835
1835
|
return a ? hn : i;
|
|
1836
|
-
let
|
|
1837
|
-
En(h) || (
|
|
1838
|
-
let P = s.get(
|
|
1839
|
-
return P || (P = new Intl.NumberFormat(A, Ne({}, b, h)), s.set(
|
|
1836
|
+
let _ = `${A}__${i}`;
|
|
1837
|
+
En(h) || (_ = `${_}__${JSON.stringify(h)}`);
|
|
1838
|
+
let P = s.get(_);
|
|
1839
|
+
return P || (P = new Intl.NumberFormat(A, Ne({}, b, h)), s.set(_, P)), S ? P.formatToParts(g) : P.format(g);
|
|
1840
1840
|
}
|
|
1841
1841
|
const il = [
|
|
1842
1842
|
"localeMatcher",
|
|
@@ -1891,28 +1891,28 @@ function Ur(e, t) {
|
|
|
1891
1891
|
function Mr(e = {}) {
|
|
1892
1892
|
const t = e.locale, n = Pr(e), a = ue(e.pluralRules) && B(t) && pe(e.pluralRules[t]) ? e.pluralRules[t] : ka, l = ue(e.pluralRules) && B(t) && pe(e.pluralRules[t]) ? ka : void 0, o = (m) => m[a(n, m.length, l)], r = e.list || [], s = (m) => r[m], i = e.named || de();
|
|
1893
1893
|
Ce(e.pluralIndex) && Ur(n, i);
|
|
1894
|
-
const
|
|
1894
|
+
const g = (m) => i[m];
|
|
1895
1895
|
function T(m, A) {
|
|
1896
1896
|
const b = pe(e.messages) ? e.messages(m, !!A) : ue(e.messages) ? e.messages[m] : !1;
|
|
1897
1897
|
return b || (e.parent ? e.parent.message(m) : wr);
|
|
1898
1898
|
}
|
|
1899
|
-
const h = (m) => e.modifiers ? e.modifiers[m] : Or, p = ne(e.processor) && pe(e.processor.normalize) ? e.processor.normalize : Rr,
|
|
1899
|
+
const h = (m) => e.modifiers ? e.modifiers[m] : Or, p = ne(e.processor) && pe(e.processor.normalize) ? e.processor.normalize : Rr, I = ne(e.processor) && pe(e.processor.interpolate) ? e.processor.interpolate : Fr, S = ne(e.processor) && B(e.processor.type) ? e.processor.type : Dr, R = {
|
|
1900
1900
|
list: s,
|
|
1901
|
-
named:
|
|
1901
|
+
named: g,
|
|
1902
1902
|
plural: o,
|
|
1903
1903
|
linked: (m, ...A) => {
|
|
1904
1904
|
const [b, f] = A;
|
|
1905
|
-
let
|
|
1906
|
-
A.length === 1 ? ue(b) ? (w = b.modifier || w,
|
|
1907
|
-
const
|
|
1905
|
+
let v = "text", w = "";
|
|
1906
|
+
A.length === 1 ? ue(b) ? (w = b.modifier || w, v = b.type || v) : B(b) && (w = b || w) : A.length === 2 && (B(b) && (w = b || w), B(f) && (v = f || v));
|
|
1907
|
+
const _ = T(m, !0)(R), P = (
|
|
1908
1908
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1909
|
-
|
|
1909
|
+
v === "vnode" && Ee(_) && w ? _[0] : _
|
|
1910
1910
|
);
|
|
1911
|
-
return w ? h(w)(P,
|
|
1911
|
+
return w ? h(w)(P, v) : P;
|
|
1912
1912
|
},
|
|
1913
1913
|
message: T,
|
|
1914
|
-
type:
|
|
1915
|
-
interpolate:
|
|
1914
|
+
type: S,
|
|
1915
|
+
interpolate: I,
|
|
1916
1916
|
normalize: p,
|
|
1917
1917
|
values: Ne(de(), r, i)
|
|
1918
1918
|
};
|
|
@@ -1920,24 +1920,24 @@ function Mr(e = {}) {
|
|
|
1920
1920
|
}
|
|
1921
1921
|
const Ia = () => "", We = (e) => pe(e);
|
|
1922
1922
|
function Sa(e, ...t) {
|
|
1923
|
-
const { fallbackFormat: n, postTranslation: a, unresolving: l, messageCompiler: o, fallbackLocale: r, messages: s } = e, [i,
|
|
1924
|
-
p && Br(
|
|
1925
|
-
let [m, A, b] =
|
|
1923
|
+
const { fallbackFormat: n, postTranslation: a, unresolving: l, messageCompiler: o, fallbackLocale: r, messages: s } = e, [i, g] = Rn(...t), T = ce(g.missingWarn) ? g.missingWarn : e.missingWarn, h = ce(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, p = ce(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, I = !!g.resolvedMessage, S = B(g.default) || ce(g.default) ? ce(g.default) ? o ? i : () => i : g.default : n ? o ? i : () => i : null, O = n || S != null && (B(S) || pe(S)), R = qn(e, g);
|
|
1924
|
+
p && Br(g);
|
|
1925
|
+
let [m, A, b] = I ? [
|
|
1926
1926
|
i,
|
|
1927
1927
|
R,
|
|
1928
1928
|
s[R] || de()
|
|
1929
|
-
] : ul(e, i, R, r, h, T), f = m,
|
|
1930
|
-
if (!
|
|
1929
|
+
] : ul(e, i, R, r, h, T), f = m, v = i;
|
|
1930
|
+
if (!I && !(B(f) || _t(f) || We(f)) && O && (f = S, v = f), !I && (!(B(f) || _t(f) || We(f)) || !B(A)))
|
|
1931
1931
|
return l ? hn : i;
|
|
1932
1932
|
if (process.env.NODE_ENV !== "production" && B(f) && e.messageCompiler == null)
|
|
1933
1933
|
return bt(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${i}'.`), i;
|
|
1934
1934
|
let w = !1;
|
|
1935
|
-
const
|
|
1935
|
+
const _ = () => {
|
|
1936
1936
|
w = !0;
|
|
1937
|
-
}, P = We(f) ? f : cl(e, i, A, f,
|
|
1937
|
+
}, P = We(f) ? f : cl(e, i, A, f, v, _);
|
|
1938
1938
|
if (w)
|
|
1939
1939
|
return f;
|
|
1940
|
-
const F = Wr(e, A, b,
|
|
1940
|
+
const F = Wr(e, A, b, g), G = Mr(F), Y = xr(e, P, G), te = a ? a(Y, i) : Y;
|
|
1941
1941
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1942
1942
|
const he = {
|
|
1943
1943
|
timestamp: Date.now(),
|
|
@@ -1956,39 +1956,39 @@ function Br(e) {
|
|
|
1956
1956
|
});
|
|
1957
1957
|
}
|
|
1958
1958
|
function ul(e, t, n, a, l, o) {
|
|
1959
|
-
const { messages: r, onWarn: s, messageResolver: i, localeFallbacker:
|
|
1960
|
-
let h = de(), p,
|
|
1959
|
+
const { messages: r, onWarn: s, messageResolver: i, localeFallbacker: g } = e, T = g(e, a, n);
|
|
1960
|
+
let h = de(), p, I = null, S = n, O = null;
|
|
1961
1961
|
const R = "translate";
|
|
1962
1962
|
for (let m = 0; m < T.length; m++) {
|
|
1963
1963
|
if (p = O = T[m], process.env.NODE_ENV !== "production" && n !== p && !ol(n, p) && yn(l, t) && s(Lt(Ue.FALLBACK_TO_TRANSLATE, {
|
|
1964
1964
|
key: t,
|
|
1965
1965
|
target: p
|
|
1966
1966
|
})), process.env.NODE_ENV !== "production" && n !== p) {
|
|
1967
|
-
const
|
|
1968
|
-
|
|
1967
|
+
const v = e.__v_emitter;
|
|
1968
|
+
v && v.emit("fallback", {
|
|
1969
1969
|
type: R,
|
|
1970
1970
|
key: t,
|
|
1971
|
-
from:
|
|
1971
|
+
from: S,
|
|
1972
1972
|
to: O,
|
|
1973
1973
|
groupId: `${R}:${t}`
|
|
1974
1974
|
});
|
|
1975
1975
|
}
|
|
1976
1976
|
h = r[p] || de();
|
|
1977
1977
|
let A = null, b, f;
|
|
1978
|
-
if (process.env.NODE_ENV !== "production" && Xe && (A = window.performance.now(), b = "intlify-message-resolve-start", f = "intlify-message-resolve-end", Me && Me(b)), (
|
|
1979
|
-
const
|
|
1980
|
-
w && A &&
|
|
1978
|
+
if (process.env.NODE_ENV !== "production" && Xe && (A = window.performance.now(), b = "intlify-message-resolve-start", f = "intlify-message-resolve-end", Me && Me(b)), (I = i(h, t)) === null && (I = h[t]), process.env.NODE_ENV !== "production" && Xe) {
|
|
1979
|
+
const v = window.performance.now(), w = e.__v_emitter;
|
|
1980
|
+
w && A && I && w.emit("message-resolve", {
|
|
1981
1981
|
type: "message-resolve",
|
|
1982
1982
|
key: t,
|
|
1983
|
-
message:
|
|
1984
|
-
time:
|
|
1983
|
+
message: I,
|
|
1984
|
+
time: v - A,
|
|
1985
1985
|
groupId: `${R}:${t}`
|
|
1986
1986
|
}), b && f && Me && vt && (Me(f), vt("intlify message resolve", b, f));
|
|
1987
1987
|
}
|
|
1988
|
-
if (B(
|
|
1988
|
+
if (B(I) || _t(I) || We(I))
|
|
1989
1989
|
break;
|
|
1990
1990
|
if (!Lr(p, T)) {
|
|
1991
|
-
const
|
|
1991
|
+
const v = Jn(
|
|
1992
1992
|
e,
|
|
1993
1993
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1994
1994
|
t,
|
|
@@ -1996,11 +1996,11 @@ function ul(e, t, n, a, l, o) {
|
|
|
1996
1996
|
o,
|
|
1997
1997
|
R
|
|
1998
1998
|
);
|
|
1999
|
-
|
|
1999
|
+
v !== t && (I = v);
|
|
2000
2000
|
}
|
|
2001
|
-
|
|
2001
|
+
S = O;
|
|
2002
2002
|
}
|
|
2003
|
-
return [
|
|
2003
|
+
return [I, p, h];
|
|
2004
2004
|
}
|
|
2005
2005
|
function cl(e, t, n, a, l, o) {
|
|
2006
2006
|
const { messageCompiler: r, warnHtmlMessage: s } = e;
|
|
@@ -2012,17 +2012,17 @@ function cl(e, t, n, a, l, o) {
|
|
|
2012
2012
|
const p = () => a;
|
|
2013
2013
|
return p.locale = n, p.key = t, p;
|
|
2014
2014
|
}
|
|
2015
|
-
let i = null,
|
|
2016
|
-
process.env.NODE_ENV !== "production" && Xe && (i = window.performance.now(),
|
|
2015
|
+
let i = null, g, T;
|
|
2016
|
+
process.env.NODE_ENV !== "production" && Xe && (i = window.performance.now(), g = "intlify-message-compilation-start", T = "intlify-message-compilation-end", Me && Me(g));
|
|
2017
2017
|
const h = r(a, Vr(e, n, l, a, s, o));
|
|
2018
2018
|
if (process.env.NODE_ENV !== "production" && Xe) {
|
|
2019
|
-
const p = window.performance.now(),
|
|
2020
|
-
|
|
2019
|
+
const p = window.performance.now(), I = e.__v_emitter;
|
|
2020
|
+
I && i && I.emit("message-compilation", {
|
|
2021
2021
|
type: "message-compilation",
|
|
2022
2022
|
message: a,
|
|
2023
2023
|
time: p - i,
|
|
2024
2024
|
groupId: `translate:${t}`
|
|
2025
|
-
}),
|
|
2025
|
+
}), g && T && Me && vt && (Me(T), vt("intlify message compilation", g, T));
|
|
2026
2026
|
}
|
|
2027
2027
|
return h.locale = n, h.key = t, h.source = a, h;
|
|
2028
2028
|
}
|
|
@@ -2055,15 +2055,15 @@ function Vr(e, t, n, a, l, o) {
|
|
|
2055
2055
|
warnHtmlMessage: l,
|
|
2056
2056
|
onError: (r) => {
|
|
2057
2057
|
if (o && o(r), process.env.NODE_ENV !== "production") {
|
|
2058
|
-
const s = Qr(a), i = `Message compilation error: ${r.message}`,
|
|
2058
|
+
const s = Qr(a), i = `Message compilation error: ${r.message}`, g = r.location && s && ao(s, r.location.start.offset, r.location.end.offset), T = e.__v_emitter;
|
|
2059
2059
|
T && s && T.emit("compile-error", {
|
|
2060
2060
|
message: s,
|
|
2061
2061
|
error: r.message,
|
|
2062
2062
|
start: r.location && r.location.start.offset,
|
|
2063
2063
|
end: r.location && r.location.end.offset,
|
|
2064
2064
|
groupId: `translate:${n}`
|
|
2065
|
-
}), console.error(
|
|
2066
|
-
${
|
|
2065
|
+
}), console.error(g ? `${i}
|
|
2066
|
+
${g}` : i);
|
|
2067
2067
|
} else
|
|
2068
2068
|
throw r;
|
|
2069
2069
|
},
|
|
@@ -2077,27 +2077,27 @@ function Qr(e) {
|
|
|
2077
2077
|
return e.loc.source;
|
|
2078
2078
|
}
|
|
2079
2079
|
function Wr(e, t, n, a) {
|
|
2080
|
-
const { modifiers: l, pluralRules: o, messageResolver: r, fallbackLocale: s, fallbackWarn: i, missingWarn:
|
|
2080
|
+
const { modifiers: l, pluralRules: o, messageResolver: r, fallbackLocale: s, fallbackWarn: i, missingWarn: g, fallbackContext: T } = e, p = {
|
|
2081
2081
|
locale: t,
|
|
2082
2082
|
modifiers: l,
|
|
2083
2083
|
pluralRules: o,
|
|
2084
|
-
messages: (
|
|
2085
|
-
let O = r(n,
|
|
2086
|
-
if (O == null && (T ||
|
|
2084
|
+
messages: (I, S) => {
|
|
2085
|
+
let O = r(n, I);
|
|
2086
|
+
if (O == null && (T || S)) {
|
|
2087
2087
|
const [, , R] = ul(
|
|
2088
2088
|
T || e,
|
|
2089
2089
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2090
|
-
|
|
2090
|
+
I,
|
|
2091
2091
|
t,
|
|
2092
2092
|
s,
|
|
2093
2093
|
i,
|
|
2094
|
-
|
|
2094
|
+
g
|
|
2095
2095
|
);
|
|
2096
|
-
O = r(R,
|
|
2096
|
+
O = r(R, I);
|
|
2097
2097
|
}
|
|
2098
2098
|
if (B(O) || _t(O)) {
|
|
2099
2099
|
let R = !1;
|
|
2100
|
-
const A = cl(e,
|
|
2100
|
+
const A = cl(e, I, t, O, I, () => {
|
|
2101
2101
|
R = !0;
|
|
2102
2102
|
});
|
|
2103
2103
|
return R ? Ia : A;
|
|
@@ -2168,11 +2168,11 @@ class Jr {
|
|
|
2168
2168
|
args: i,
|
|
2169
2169
|
resolve: () => {
|
|
2170
2170
|
}
|
|
2171
|
-
}), this.fallbacks[s](...i)) : (...i) => new Promise((
|
|
2171
|
+
}), this.fallbacks[s](...i)) : (...i) => new Promise((g) => {
|
|
2172
2172
|
this.targetQueue.push({
|
|
2173
2173
|
method: s,
|
|
2174
2174
|
args: i,
|
|
2175
|
-
resolve:
|
|
2175
|
+
resolve: g
|
|
2176
2176
|
});
|
|
2177
2177
|
})
|
|
2178
2178
|
});
|
|
@@ -2287,8 +2287,8 @@ function $n(e, t) {
|
|
|
2287
2287
|
const { messages: n, __i18n: a, messageResolver: l, flatJson: o } = t, r = ne(n) ? n : Ee(a) ? de() : { [e]: de() };
|
|
2288
2288
|
if (Ee(a) && a.forEach((s) => {
|
|
2289
2289
|
if ("locale" in s && "resource" in s) {
|
|
2290
|
-
const { locale: i, resource:
|
|
2291
|
-
i ? (r[i] = r[i] || de(), mn(
|
|
2290
|
+
const { locale: i, resource: g } = s;
|
|
2291
|
+
i ? (r[i] = r[i] || de(), mn(g, r[i])) : mn(g, r);
|
|
2292
2292
|
} else
|
|
2293
2293
|
B(s) && mn(JSON.parse(s), r);
|
|
2294
2294
|
}), l == null && o)
|
|
@@ -2346,22 +2346,22 @@ function Xn(e = {}) {
|
|
|
2346
2346
|
), i = o(
|
|
2347
2347
|
// prettier-ignore
|
|
2348
2348
|
t && r ? t.fallbackLocale.value : B(e.fallbackLocale) || Ee(e.fallbackLocale) || ne(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s.value
|
|
2349
|
-
),
|
|
2350
|
-
let p = t ? t.missingWarn : ce(e.missingWarn) || Qt(e.missingWarn) ? e.missingWarn : !0,
|
|
2351
|
-
const
|
|
2352
|
-
let w = e.pluralRules || t && t.pluralRules,
|
|
2353
|
-
|
|
2349
|
+
), g = o($n(s.value, e)), T = o(ne(e.datetimeFormats) ? e.datetimeFormats : { [s.value]: {} }), h = o(ne(e.numberFormats) ? e.numberFormats : { [s.value]: {} });
|
|
2350
|
+
let p = t ? t.missingWarn : ce(e.missingWarn) || Qt(e.missingWarn) ? e.missingWarn : !0, I = t ? t.fallbackWarn : ce(e.fallbackWarn) || Qt(e.fallbackWarn) ? e.fallbackWarn : !0, S = t ? t.fallbackRoot : ce(e.fallbackRoot) ? e.fallbackRoot : !0, O = !!e.fallbackFormat, R = pe(e.missing) ? e.missing : null, m = pe(e.missing) ? Da(e.missing) : null, A = pe(e.postTranslation) ? e.postTranslation : null, b = t ? t.warnHtmlMessage : ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, f = !!e.escapeParameter;
|
|
2351
|
+
const v = t ? t.modifiers : ne(e.modifiers) ? e.modifiers : {};
|
|
2352
|
+
let w = e.pluralRules || t && t.pluralRules, _;
|
|
2353
|
+
_ = (() => {
|
|
2354
2354
|
a && ba(null);
|
|
2355
2355
|
const C = {
|
|
2356
2356
|
version: Xr,
|
|
2357
2357
|
locale: s.value,
|
|
2358
2358
|
fallbackLocale: i.value,
|
|
2359
|
-
messages:
|
|
2360
|
-
modifiers:
|
|
2359
|
+
messages: g.value,
|
|
2360
|
+
modifiers: v,
|
|
2361
2361
|
pluralRules: w,
|
|
2362
2362
|
missing: m === null ? void 0 : m,
|
|
2363
2363
|
missingWarn: p,
|
|
2364
|
-
fallbackWarn:
|
|
2364
|
+
fallbackWarn: I,
|
|
2365
2365
|
fallbackFormat: O,
|
|
2366
2366
|
unresolving: !0,
|
|
2367
2367
|
postTranslation: A === null ? void 0 : A,
|
|
@@ -2371,15 +2371,15 @@ function Xn(e = {}) {
|
|
|
2371
2371
|
messageCompiler: e.messageCompiler,
|
|
2372
2372
|
__meta: { framework: "vue" }
|
|
2373
2373
|
};
|
|
2374
|
-
C.datetimeFormats = T.value, C.numberFormats = h.value, C.__datetimeFormatters = ne(
|
|
2374
|
+
C.datetimeFormats = T.value, C.numberFormats = h.value, C.__datetimeFormatters = ne(_) ? _.__datetimeFormatters : void 0, C.__numberFormatters = ne(_) ? _.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (C.__v_emitter = ne(_) ? _.__v_emitter : void 0);
|
|
2375
2375
|
const D = vr(C);
|
|
2376
2376
|
return a && ba(D), D;
|
|
2377
|
-
})(), $t(
|
|
2377
|
+
})(), $t(_, s.value, i.value);
|
|
2378
2378
|
function F() {
|
|
2379
2379
|
return [
|
|
2380
2380
|
s.value,
|
|
2381
2381
|
i.value,
|
|
2382
|
-
|
|
2382
|
+
g.value,
|
|
2383
2383
|
T.value,
|
|
2384
2384
|
h.value
|
|
2385
2385
|
];
|
|
@@ -2387,25 +2387,25 @@ function Xn(e = {}) {
|
|
|
2387
2387
|
const G = kt({
|
|
2388
2388
|
get: () => s.value,
|
|
2389
2389
|
set: (C) => {
|
|
2390
|
-
s.value = C,
|
|
2390
|
+
s.value = C, _.locale = s.value;
|
|
2391
2391
|
}
|
|
2392
2392
|
}), Y = kt({
|
|
2393
2393
|
get: () => i.value,
|
|
2394
2394
|
set: (C) => {
|
|
2395
|
-
i.value = C,
|
|
2395
|
+
i.value = C, _.fallbackLocale = i.value, $t(_, s.value, C);
|
|
2396
2396
|
}
|
|
2397
|
-
}), te = kt(() =>
|
|
2397
|
+
}), te = kt(() => g.value), he = /* @__PURE__ */ kt(() => T.value), re = /* @__PURE__ */ kt(() => h.value);
|
|
2398
2398
|
function Be() {
|
|
2399
2399
|
return pe(A) ? A : null;
|
|
2400
2400
|
}
|
|
2401
2401
|
function le(C) {
|
|
2402
|
-
A = C,
|
|
2402
|
+
A = C, _.postTranslation = C;
|
|
2403
2403
|
}
|
|
2404
2404
|
function z() {
|
|
2405
2405
|
return R;
|
|
2406
2406
|
}
|
|
2407
2407
|
function He(C) {
|
|
2408
|
-
C !== null && (m = Da(C)), R = C,
|
|
2408
|
+
C !== null && (m = Da(C)), R = C, _.missing = m;
|
|
2409
2409
|
}
|
|
2410
2410
|
function dt(C, D) {
|
|
2411
2411
|
return C !== "translate" || !D.resolvedMessage;
|
|
@@ -2414,26 +2414,26 @@ function Xn(e = {}) {
|
|
|
2414
2414
|
F();
|
|
2415
2415
|
let mt;
|
|
2416
2416
|
try {
|
|
2417
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (
|
|
2417
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (_.fallbackContext = t ? Sr() : void 0), mt = C(_);
|
|
2418
2418
|
} finally {
|
|
2419
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (
|
|
2419
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (_.fallbackContext = void 0);
|
|
2420
2420
|
}
|
|
2421
2421
|
if (ie !== "translate exists" && // for not `te` (e.g `t`)
|
|
2422
2422
|
Ce(mt) && mt === hn || ie === "translate exists" && !mt) {
|
|
2423
2423
|
const [rt, on] = D();
|
|
2424
|
-
if (process.env.NODE_ENV !== "production" && t && B(rt) && dt(ie, on) && (
|
|
2424
|
+
if (process.env.NODE_ENV !== "production" && t && B(rt) && dt(ie, on) && (S && (yn(I, rt) || ll(p, rt)) && bt(Cn(gt.FALLBACK_TO_ROOT, {
|
|
2425
2425
|
key: rt,
|
|
2426
2426
|
type: ie
|
|
2427
2427
|
})), process.env.NODE_ENV !== "production")) {
|
|
2428
|
-
const { __v_emitter: Pt } =
|
|
2429
|
-
Pt &&
|
|
2428
|
+
const { __v_emitter: Pt } = _;
|
|
2429
|
+
Pt && S && Pt.emit("fallback", {
|
|
2430
2430
|
type: ie,
|
|
2431
2431
|
key: rt,
|
|
2432
2432
|
to: "global",
|
|
2433
2433
|
groupId: `${ie}:${rt}`
|
|
2434
2434
|
});
|
|
2435
2435
|
}
|
|
2436
|
-
return t &&
|
|
2436
|
+
return t && S ? _e(t) : ot(rt);
|
|
2437
2437
|
} else {
|
|
2438
2438
|
if (Ft(mt))
|
|
2439
2439
|
return mt;
|
|
@@ -2482,21 +2482,21 @@ function Xn(e = {}) {
|
|
|
2482
2482
|
return we((D) => Reflect.apply(ya, null, [D, ...C]), () => wn(...C), "datetime format", (D) => D[Un](...C), Oa, (D) => B(D) || Ee(D));
|
|
2483
2483
|
}
|
|
2484
2484
|
function jt(C) {
|
|
2485
|
-
w = C,
|
|
2485
|
+
w = C, _.pluralRules = w;
|
|
2486
2486
|
}
|
|
2487
2487
|
function qt(C, D) {
|
|
2488
2488
|
return we(() => {
|
|
2489
2489
|
if (!C)
|
|
2490
2490
|
return !1;
|
|
2491
|
-
const ie = B(D) ? D : s.value, _e = Ke(ie), ot =
|
|
2491
|
+
const ie = B(D) ? D : s.value, _e = Ke(ie), ot = _.messageResolver(_e, C);
|
|
2492
2492
|
return _t(ot) || We(ot) || B(ot);
|
|
2493
2493
|
}, () => [C], "translate exists", (ie) => Reflect.apply(ie.te, ie, [C, D]), ts, (ie) => ce(ie));
|
|
2494
2494
|
}
|
|
2495
2495
|
function Ze(C) {
|
|
2496
2496
|
let D = null;
|
|
2497
|
-
const ie = Za(
|
|
2497
|
+
const ie = Za(_, i.value, s.value);
|
|
2498
2498
|
for (let _e = 0; _e < ie.length; _e++) {
|
|
2499
|
-
const ot =
|
|
2499
|
+
const ot = g.value[ie[_e]] || {}, Ft = _.messageResolver(ot, C);
|
|
2500
2500
|
if (Ft != null) {
|
|
2501
2501
|
D = Ft;
|
|
2502
2502
|
break;
|
|
@@ -2509,7 +2509,7 @@ function Xn(e = {}) {
|
|
|
2509
2509
|
return D ?? (t ? t.tm(C) || {} : {});
|
|
2510
2510
|
}
|
|
2511
2511
|
function Ke(C) {
|
|
2512
|
-
return
|
|
2512
|
+
return g.value[C] || {};
|
|
2513
2513
|
}
|
|
2514
2514
|
function Tt(C, D) {
|
|
2515
2515
|
if (l) {
|
|
@@ -2518,38 +2518,38 @@ function Xn(e = {}) {
|
|
|
2518
2518
|
$e(ie, _e) && an(ie[_e]);
|
|
2519
2519
|
D = ie[C];
|
|
2520
2520
|
}
|
|
2521
|
-
|
|
2521
|
+
g.value[C] = D, _.messages = g.value;
|
|
2522
2522
|
}
|
|
2523
2523
|
function Jt(C, D) {
|
|
2524
|
-
|
|
2524
|
+
g.value[C] = g.value[C] || {};
|
|
2525
2525
|
const ie = { [C]: D };
|
|
2526
2526
|
if (l)
|
|
2527
2527
|
for (const _e in ie)
|
|
2528
2528
|
$e(ie, _e) && an(ie[_e]);
|
|
2529
|
-
D = ie[C], mn(D,
|
|
2529
|
+
D = ie[C], mn(D, g.value[C]), _.messages = g.value;
|
|
2530
2530
|
}
|
|
2531
2531
|
function d(C) {
|
|
2532
2532
|
return T.value[C] || {};
|
|
2533
2533
|
}
|
|
2534
2534
|
function c(C, D) {
|
|
2535
|
-
T.value[C] = D,
|
|
2535
|
+
T.value[C] = D, _.datetimeFormats = T.value, Ca(_, C, D);
|
|
2536
2536
|
}
|
|
2537
2537
|
function L(C, D) {
|
|
2538
|
-
T.value[C] = Ne(T.value[C] || {}, D),
|
|
2538
|
+
T.value[C] = Ne(T.value[C] || {}, D), _.datetimeFormats = T.value, Ca(_, C, D);
|
|
2539
2539
|
}
|
|
2540
2540
|
function K(C) {
|
|
2541
2541
|
return h.value[C] || {};
|
|
2542
2542
|
}
|
|
2543
2543
|
function ge(C, D) {
|
|
2544
|
-
h.value[C] = D,
|
|
2544
|
+
h.value[C] = D, _.numberFormats = h.value, Na(_, C, D);
|
|
2545
2545
|
}
|
|
2546
2546
|
function be(C, D) {
|
|
2547
|
-
h.value[C] = Ne(h.value[C] || {}, D),
|
|
2547
|
+
h.value[C] = Ne(h.value[C] || {}, D), _.numberFormats = h.value, Na(_, C, D);
|
|
2548
2548
|
}
|
|
2549
2549
|
wa++, t && Xe && (ct(t.locale, (C) => {
|
|
2550
|
-
r && (s.value = C,
|
|
2550
|
+
r && (s.value = C, _.locale = C, $t(_, s.value, i.value));
|
|
2551
2551
|
}), ct(t.fallbackLocale, (C) => {
|
|
2552
|
-
r && (i.value = C,
|
|
2552
|
+
r && (i.value = C, _.fallbackLocale = C, $t(_, s.value, i.value));
|
|
2553
2553
|
}));
|
|
2554
2554
|
const se = {
|
|
2555
2555
|
id: wa,
|
|
@@ -2559,14 +2559,14 @@ function Xn(e = {}) {
|
|
|
2559
2559
|
return r;
|
|
2560
2560
|
},
|
|
2561
2561
|
set inheritLocale(C) {
|
|
2562
|
-
r = C, C && t && (s.value = t.locale.value, i.value = t.fallbackLocale.value, $t(
|
|
2562
|
+
r = C, C && t && (s.value = t.locale.value, i.value = t.fallbackLocale.value, $t(_, s.value, i.value));
|
|
2563
2563
|
},
|
|
2564
2564
|
get availableLocales() {
|
|
2565
|
-
return Object.keys(
|
|
2565
|
+
return Object.keys(g.value).sort();
|
|
2566
2566
|
},
|
|
2567
2567
|
messages: te,
|
|
2568
2568
|
get modifiers() {
|
|
2569
|
-
return
|
|
2569
|
+
return v;
|
|
2570
2570
|
},
|
|
2571
2571
|
get pluralRules() {
|
|
2572
2572
|
return w || {};
|
|
@@ -2578,37 +2578,37 @@ function Xn(e = {}) {
|
|
|
2578
2578
|
return p;
|
|
2579
2579
|
},
|
|
2580
2580
|
set missingWarn(C) {
|
|
2581
|
-
p = C,
|
|
2581
|
+
p = C, _.missingWarn = p;
|
|
2582
2582
|
},
|
|
2583
2583
|
get fallbackWarn() {
|
|
2584
|
-
return
|
|
2584
|
+
return I;
|
|
2585
2585
|
},
|
|
2586
2586
|
set fallbackWarn(C) {
|
|
2587
|
-
|
|
2587
|
+
I = C, _.fallbackWarn = I;
|
|
2588
2588
|
},
|
|
2589
2589
|
get fallbackRoot() {
|
|
2590
|
-
return
|
|
2590
|
+
return S;
|
|
2591
2591
|
},
|
|
2592
2592
|
set fallbackRoot(C) {
|
|
2593
|
-
|
|
2593
|
+
S = C;
|
|
2594
2594
|
},
|
|
2595
2595
|
get fallbackFormat() {
|
|
2596
2596
|
return O;
|
|
2597
2597
|
},
|
|
2598
2598
|
set fallbackFormat(C) {
|
|
2599
|
-
O = C,
|
|
2599
|
+
O = C, _.fallbackFormat = O;
|
|
2600
2600
|
},
|
|
2601
2601
|
get warnHtmlMessage() {
|
|
2602
2602
|
return b;
|
|
2603
2603
|
},
|
|
2604
2604
|
set warnHtmlMessage(C) {
|
|
2605
|
-
b = C,
|
|
2605
|
+
b = C, _.warnHtmlMessage = C;
|
|
2606
2606
|
},
|
|
2607
2607
|
get escapeParameter() {
|
|
2608
2608
|
return f;
|
|
2609
2609
|
},
|
|
2610
2610
|
set escapeParameter(C) {
|
|
2611
|
-
f = C,
|
|
2611
|
+
f = C, _.escapeParameter = C;
|
|
2612
2612
|
},
|
|
2613
2613
|
t: lt,
|
|
2614
2614
|
getLocaleMessage: Ke,
|
|
@@ -2621,9 +2621,9 @@ function Xn(e = {}) {
|
|
|
2621
2621
|
[fl]: jt
|
|
2622
2622
|
};
|
|
2623
2623
|
return se.datetimeFormats = he, se.numberFormats = re, se.rt = Ye, se.te = qt, se.tm = ze, se.d = yt, se.n = ft, se.getDateTimeFormat = d, se.setDateTimeFormat = c, se.mergeDateTimeFormat = L, se.getNumberFormat = K, se.setNumberFormat = ge, se.mergeNumberFormat = be, se[ml] = n, se[Pn] = Dt, se[Un] = Gt, se[Mn] = Rt, process.env.NODE_ENV !== "production" && (se[Ot] = (C) => {
|
|
2624
|
-
|
|
2624
|
+
_.__v_emitter = C;
|
|
2625
2625
|
}, se[nn] = () => {
|
|
2626
|
-
|
|
2626
|
+
_.__v_emitter = void 0;
|
|
2627
2627
|
}), se;
|
|
2628
2628
|
}
|
|
2629
2629
|
const _l = "vue-i18n: composer properties", vn = {
|
|
@@ -2851,7 +2851,7 @@ function ps(e) {
|
|
|
2851
2851
|
}
|
|
2852
2852
|
];
|
|
2853
2853
|
t[r] = s;
|
|
2854
|
-
const i = "Datetime formats info",
|
|
2854
|
+
const i = "Datetime formats info", g = [
|
|
2855
2855
|
{
|
|
2856
2856
|
type: i,
|
|
2857
2857
|
key: "numberFormats",
|
|
@@ -2859,7 +2859,7 @@ function ps(e) {
|
|
|
2859
2859
|
value: e.numberFormats.value
|
|
2860
2860
|
}
|
|
2861
2861
|
];
|
|
2862
|
-
t[i] =
|
|
2862
|
+
t[i] = g;
|
|
2863
2863
|
}
|
|
2864
2864
|
return t;
|
|
2865
2865
|
}
|
|
@@ -2887,20 +2887,20 @@ function gs(e, t) {
|
|
|
2887
2887
|
}
|
|
2888
2888
|
}
|
|
2889
2889
|
function _s(e) {
|
|
2890
|
-
const t = B(e.locale) ? e.locale : tn, n = B(e.fallbackLocale) || Ee(e.fallbackLocale) || ne(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, a = pe(e.missing) ? e.missing : void 0, l = ce(e.silentTranslationWarn) || Qt(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, o = ce(e.silentFallbackWarn) || Qt(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, r = ce(e.fallbackRoot) ? e.fallbackRoot : !0, s = !!e.formatFallbackMessages, i = ne(e.modifiers) ? e.modifiers : {},
|
|
2891
|
-
let
|
|
2890
|
+
const t = B(e.locale) ? e.locale : tn, n = B(e.fallbackLocale) || Ee(e.fallbackLocale) || ne(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, a = pe(e.missing) ? e.missing : void 0, l = ce(e.silentTranslationWarn) || Qt(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, o = ce(e.silentFallbackWarn) || Qt(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, r = ce(e.fallbackRoot) ? e.fallbackRoot : !0, s = !!e.formatFallbackMessages, i = ne(e.modifiers) ? e.modifiers : {}, g = e.pluralizationRules, T = pe(e.postTranslation) ? e.postTranslation : void 0, h = B(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, p = !!e.escapeParameterHtml, I = ce(e.sync) ? e.sync : !0;
|
|
2891
|
+
let S = e.messages;
|
|
2892
2892
|
if (ne(e.sharedMessages)) {
|
|
2893
|
-
const
|
|
2894
|
-
|
|
2895
|
-
const F =
|
|
2896
|
-
return Ne(F,
|
|
2897
|
-
},
|
|
2893
|
+
const v = e.sharedMessages;
|
|
2894
|
+
S = Object.keys(v).reduce((_, P) => {
|
|
2895
|
+
const F = _[P] || (_[P] = {});
|
|
2896
|
+
return Ne(F, v[P]), _;
|
|
2897
|
+
}, S || {});
|
|
2898
2898
|
}
|
|
2899
2899
|
const { __i18n: O, __root: R, __injectWithOption: m } = e, A = e.datetimeFormats, b = e.numberFormats, f = e.flatJson;
|
|
2900
2900
|
return {
|
|
2901
2901
|
locale: t,
|
|
2902
2902
|
fallbackLocale: n,
|
|
2903
|
-
messages:
|
|
2903
|
+
messages: S,
|
|
2904
2904
|
flatJson: f,
|
|
2905
2905
|
datetimeFormats: A,
|
|
2906
2906
|
numberFormats: b,
|
|
@@ -2910,12 +2910,12 @@ function _s(e) {
|
|
|
2910
2910
|
fallbackRoot: r,
|
|
2911
2911
|
fallbackFormat: s,
|
|
2912
2912
|
modifiers: i,
|
|
2913
|
-
pluralRules:
|
|
2913
|
+
pluralRules: g,
|
|
2914
2914
|
postTranslation: T,
|
|
2915
2915
|
warnHtmlMessage: h,
|
|
2916
2916
|
escapeParameter: p,
|
|
2917
2917
|
messageResolver: e.messageResolver,
|
|
2918
|
-
inheritLocale:
|
|
2918
|
+
inheritLocale: I,
|
|
2919
2919
|
__i18n: O,
|
|
2920
2920
|
__root: R,
|
|
2921
2921
|
__injectWithOption: m
|
|
@@ -3032,13 +3032,13 @@ function Vn(e = {}) {
|
|
|
3032
3032
|
// tc
|
|
3033
3033
|
tc(...l) {
|
|
3034
3034
|
const [o, r, s] = l, i = { plural: 1 };
|
|
3035
|
-
let
|
|
3035
|
+
let g = null, T = null;
|
|
3036
3036
|
if (process.env.NODE_ENV !== "production" && Xa(Cn(gt.DEPRECATE_TC)), !B(o))
|
|
3037
3037
|
throw Fe(me.INVALID_ARGUMENT);
|
|
3038
3038
|
const h = o;
|
|
3039
|
-
return B(r) ? i.locale = r : Ce(r) ? i.plural = r : Ee(r) ?
|
|
3039
|
+
return B(r) ? i.locale = r : Ce(r) ? i.plural = r : Ee(r) ? g = r : ne(r) && (T = r), B(s) ? i.locale = s : Ee(s) ? g = s : ne(s) && (T = s), Reflect.apply(t.t, t, [
|
|
3040
3040
|
h,
|
|
3041
|
-
|
|
3041
|
+
g || T || {},
|
|
3042
3042
|
i
|
|
3043
3043
|
]);
|
|
3044
3044
|
},
|
|
@@ -3215,8 +3215,8 @@ const Es = /* @__PURE__ */ At({
|
|
|
3215
3215
|
return () => {
|
|
3216
3216
|
const o = Object.keys(n).filter((h) => h !== "_"), r = de();
|
|
3217
3217
|
e.locale && (r.locale = e.locale), e.plural !== void 0 && (r.plural = B(e.plural) ? +e.plural : e.plural);
|
|
3218
|
-
const s = bs(t, o), i = l[Pn](e.keypath, s, r),
|
|
3219
|
-
return ja(T,
|
|
3218
|
+
const s = bs(t, o), i = l[Pn](e.keypath, s, r), g = Ne(de(), a), T = B(e.tag) || ue(e.tag) ? e.tag : El();
|
|
3219
|
+
return ja(T, g, i);
|
|
3220
3220
|
};
|
|
3221
3221
|
}
|
|
3222
3222
|
}), Pa = Es;
|
|
@@ -3228,15 +3228,15 @@ function hl(e, t, n, a) {
|
|
|
3228
3228
|
return () => {
|
|
3229
3229
|
const r = { part: !0 };
|
|
3230
3230
|
let s = de();
|
|
3231
|
-
e.locale && (r.locale = e.locale), B(e.format) ? r.key = e.format : ue(e.format) && (B(e.format.key) && (r.key = e.format.key), s = Object.keys(e.format).reduce((p,
|
|
3231
|
+
e.locale && (r.locale = e.locale), B(e.format) ? r.key = e.format : ue(e.format) && (B(e.format.key) && (r.key = e.format.key), s = Object.keys(e.format).reduce((p, I) => n.includes(I) ? Ne(de(), p, { [I]: e.format[I] }) : p, de()));
|
|
3232
3232
|
const i = a(e.value, r, s);
|
|
3233
|
-
let
|
|
3234
|
-
Ee(i) ?
|
|
3235
|
-
const
|
|
3236
|
-
return hs(O) && (O[0].key = `${p.type}-${
|
|
3237
|
-
}) : B(i) && (
|
|
3233
|
+
let g = [r.key];
|
|
3234
|
+
Ee(i) ? g = i.map((p, I) => {
|
|
3235
|
+
const S = l[p.type], O = S ? S({ [p.type]: p.value, index: I, parts: i }) : [p.value];
|
|
3236
|
+
return hs(O) && (O[0].key = `${p.type}-${I}`), O;
|
|
3237
|
+
}) : B(i) && (g = [i]);
|
|
3238
3238
|
const T = Ne(de(), o), h = B(e.tag) || ue(e.tag) ? e.tag : El();
|
|
3239
|
-
return ja(h, T,
|
|
3239
|
+
return ja(h, T, g);
|
|
3240
3240
|
};
|
|
3241
3241
|
}
|
|
3242
3242
|
const ys = /* @__PURE__ */ At({
|
|
@@ -3302,27 +3302,27 @@ function Ns(e) {
|
|
|
3302
3302
|
const { instance: s, value: i } = r;
|
|
3303
3303
|
if (!s || !s.$)
|
|
3304
3304
|
throw Fe(me.UNEXPECTED_ERROR);
|
|
3305
|
-
const
|
|
3305
|
+
const g = Ts(e, s.$), T = Ba(i);
|
|
3306
3306
|
return [
|
|
3307
|
-
Reflect.apply(
|
|
3308
|
-
|
|
3307
|
+
Reflect.apply(g.t, g, [...xa(T)]),
|
|
3308
|
+
g
|
|
3309
3309
|
];
|
|
3310
3310
|
};
|
|
3311
3311
|
return {
|
|
3312
3312
|
created: (r, s) => {
|
|
3313
|
-
const [i,
|
|
3314
|
-
Xe && e.global ===
|
|
3313
|
+
const [i, g] = t(s);
|
|
3314
|
+
Xe && e.global === g && (r.__i18nWatcher = ct(g.locale, () => {
|
|
3315
3315
|
s.instance && s.instance.$forceUpdate();
|
|
3316
|
-
})), r.__composer =
|
|
3316
|
+
})), r.__composer = g, r.textContent = i;
|
|
3317
3317
|
},
|
|
3318
3318
|
unmounted: (r) => {
|
|
3319
3319
|
Xe && r.__i18nWatcher && (r.__i18nWatcher(), r.__i18nWatcher = void 0, delete r.__i18nWatcher), r.__composer && (r.__composer = void 0, delete r.__composer);
|
|
3320
3320
|
},
|
|
3321
3321
|
beforeUpdate: (r, { value: s }) => {
|
|
3322
3322
|
if (r.__composer) {
|
|
3323
|
-
const i = r.__composer,
|
|
3323
|
+
const i = r.__composer, g = Ba(s);
|
|
3324
3324
|
r.textContent = Reflect.apply(i.t, i, [
|
|
3325
|
-
...xa(
|
|
3325
|
+
...xa(g)
|
|
3326
3326
|
]);
|
|
3327
3327
|
}
|
|
3328
3328
|
},
|
|
@@ -3356,8 +3356,8 @@ function yl(e = {}, t) {
|
|
|
3356
3356
|
function i(p) {
|
|
3357
3357
|
return l.get(p) || null;
|
|
3358
3358
|
}
|
|
3359
|
-
function
|
|
3360
|
-
l.set(p,
|
|
3359
|
+
function g(p, I) {
|
|
3360
|
+
l.set(p, I);
|
|
3361
3361
|
}
|
|
3362
3362
|
function T(p) {
|
|
3363
3363
|
l.delete(p);
|
|
@@ -3368,16 +3368,16 @@ function yl(e = {}, t) {
|
|
|
3368
3368
|
return __VUE_I18N_LEGACY_API__ && n ? "legacy" : "composition";
|
|
3369
3369
|
},
|
|
3370
3370
|
// install plugin
|
|
3371
|
-
async install(p, ...
|
|
3372
|
-
if (process.env.NODE_ENV !== "production" && (p.__VUE_I18N__ = h), p.__VUE_I18N_SYMBOL__ = s, p.provide(p.__VUE_I18N_SYMBOL__, h), ne(
|
|
3373
|
-
const R =
|
|
3371
|
+
async install(p, ...I) {
|
|
3372
|
+
if (process.env.NODE_ENV !== "production" && (p.__VUE_I18N__ = h), p.__VUE_I18N_SYMBOL__ = s, p.provide(p.__VUE_I18N_SYMBOL__, h), ne(I[0])) {
|
|
3373
|
+
const R = I[0];
|
|
3374
3374
|
h.__composerExtend = R.__composerExtend, h.__vueI18nExtend = R.__vueI18nExtend;
|
|
3375
3375
|
}
|
|
3376
|
-
let
|
|
3377
|
-
!n && a && (
|
|
3376
|
+
let S = null;
|
|
3377
|
+
!n && a && (S = Ps(p, h.global)), __VUE_I18N_FULL_INSTALL__ && ks(p, h, ...I), __VUE_I18N_LEGACY_API__ && n && p.mixin(As(r, r.__composer, h));
|
|
3378
3378
|
const O = p.unmount;
|
|
3379
3379
|
if (p.unmount = () => {
|
|
3380
|
-
|
|
3380
|
+
S && S(), h.dispose(), O();
|
|
3381
3381
|
}, process.env.NODE_ENV !== "production") {
|
|
3382
3382
|
if (!await os(p, h))
|
|
3383
3383
|
throw Fe(me.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
@@ -3404,7 +3404,7 @@ function yl(e = {}, t) {
|
|
|
3404
3404
|
// @internal
|
|
3405
3405
|
__getInstance: i,
|
|
3406
3406
|
// @internal
|
|
3407
|
-
__setInstance:
|
|
3407
|
+
__setInstance: g,
|
|
3408
3408
|
// @internal
|
|
3409
3409
|
__deleteInstance: T
|
|
3410
3410
|
};
|
|
@@ -3701,19 +3701,19 @@ const Cl = "3.7.7", Us = Cl, Yt = typeof Buffer == "function", Qa = typeof TextD
|
|
|
3701
3701
|
function e(r, s) {
|
|
3702
3702
|
try {
|
|
3703
3703
|
const i = decodeURI(r.headers["content-disposition"]);
|
|
3704
|
-
let
|
|
3705
|
-
const T =
|
|
3706
|
-
|
|
3707
|
-
const O =
|
|
3708
|
-
|
|
3704
|
+
let g = s || i.split("filename*=utf-8")[1];
|
|
3705
|
+
const T = g.substring(g.lastIndexOf(".") + 1), h = new Blob([r.data], { type: Xs[T] ?? "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }), I = (window.URL || window.webkitURL).createObjectURL(h), S = document.createElement("a");
|
|
3706
|
+
S.setAttribute("href", I);
|
|
3707
|
+
const O = g.lastIndexOf(".");
|
|
3708
|
+
g = `${g.slice(0, O)}_${xe().format("YYYYMMDD") + g.slice(O)}`, S.setAttribute("download", g), document.body.appendChild(S), S.click(), document.body.removeChild(S), window.URL.revokeObjectURL(I);
|
|
3709
3709
|
} catch (i) {
|
|
3710
3710
|
console.error(i);
|
|
3711
3711
|
}
|
|
3712
3712
|
}
|
|
3713
3713
|
function t({ multiple: r = !1 }, s) {
|
|
3714
3714
|
const i = document.createElement("input");
|
|
3715
|
-
i.style.display = "none", i.setAttribute("type", "file"), r && i.setAttribute("multiple", r), i.setAttribute("accept", "application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,.xml"), document.body.appendChild(i), i.click(), i.addEventListener("change", (
|
|
3716
|
-
s(
|
|
3715
|
+
i.style.display = "none", i.setAttribute("type", "file"), r && i.setAttribute("multiple", r), i.setAttribute("accept", "application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,.xml"), document.body.appendChild(i), i.click(), i.addEventListener("change", (g) => {
|
|
3716
|
+
s(g) && document.body.removeChild(i);
|
|
3717
3717
|
});
|
|
3718
3718
|
}
|
|
3719
3719
|
function n(r) {
|
|
@@ -3725,11 +3725,11 @@ const Cl = "3.7.7", Us = Cl, Yt = typeof Buffer == "function", Qa = typeof TextD
|
|
|
3725
3725
|
function l(r, s, i) {
|
|
3726
3726
|
if (!s)
|
|
3727
3727
|
return;
|
|
3728
|
-
let
|
|
3729
|
-
const T =
|
|
3730
|
-
|
|
3731
|
-
const p = URL.createObjectURL(h.data),
|
|
3732
|
-
|
|
3728
|
+
let g = i || n(s);
|
|
3729
|
+
const T = g.lastIndexOf(".");
|
|
3730
|
+
g = `${g.slice(0, T)}_${Date.now() + g.slice(T)}`, r({ url: s, method: "GET", responseType: "blob" }).then((h) => {
|
|
3731
|
+
const p = URL.createObjectURL(h.data), I = document.createElement("a");
|
|
3732
|
+
I.style.display = "none", I.setAttribute("href", p), I.setAttribute("target", "_blank"), I.setAttribute("download", g), document.body.appendChild(I), I.click(), document.body.removeChild(I), window.URL.revokeObjectURL(p);
|
|
3733
3733
|
});
|
|
3734
3734
|
}
|
|
3735
3735
|
function o(r) {
|
|
@@ -3865,18 +3865,18 @@ const ii = {
|
|
|
3865
3865
|
emits: ["onClickRow", "changeExpansionRow", "refresh", "load", "operate"],
|
|
3866
3866
|
setup(e, { expose: t, emit: n }) {
|
|
3867
3867
|
const a = it({
|
|
3868
|
-
loader: () => import("./index-
|
|
3868
|
+
loader: () => import("./index-3f829e79.js"),
|
|
3869
3869
|
loadingComponent: fn,
|
|
3870
3870
|
delay: 20
|
|
3871
3871
|
}), l = it({
|
|
3872
|
-
loader: () => import("./index-
|
|
3872
|
+
loader: () => import("./index-1d041fe2.js"),
|
|
3873
3873
|
loadingComponent: fn,
|
|
3874
3874
|
delay: 20
|
|
3875
3875
|
}), o = it({
|
|
3876
|
-
loader: () => import("./index-
|
|
3876
|
+
loader: () => import("./index-ccf27673.js"),
|
|
3877
3877
|
loadingComponent: fn,
|
|
3878
3878
|
delay: 20
|
|
3879
|
-
}), r = it(() => import("./index-
|
|
3879
|
+
}), r = it(() => import("./index-314fcc0c.js")), s = it(() => import("./index-24a86341.js")), { t: i } = Tn(), g = Re("actModules"), T = Re("apiPrefix"), h = Re("request"), p = Re("themeColor"), I = Re("cacheTokenType"), S = Re("cookieStorage"), O = An(), R = Ja(), m = n, A = e, b = () => ({
|
|
3880
3880
|
pageLoading: !1,
|
|
3881
3881
|
tableLoading: !1,
|
|
3882
3882
|
tableTotal: 0,
|
|
@@ -3891,17 +3891,17 @@ const ii = {
|
|
|
3891
3891
|
editorDialogTitle: "",
|
|
3892
3892
|
dialogData: {}
|
|
3893
3893
|
});
|
|
3894
|
-
let f = xt(b()),
|
|
3894
|
+
let f = xt(b()), v = ae("loading"), w = ae([]), _ = {}, P = [], F = ae([]), G = ae([]), Y = ae([]), te = ae([]), he = ae([]), re = ae({});
|
|
3895
3895
|
const Be = ae(null), le = ae(null), z = ae(null), He = ae(null), dt = ae(0);
|
|
3896
3896
|
let we = ae({});
|
|
3897
3897
|
const lt = (u) => h({ url: `${T}/sysOperate/getMenuOfOperateByRole`, method: "post", data: u }), Ye = (u) => h({ url: `${T}/pages/getPageDetail?key=${u}`, method: "get" }), yt = () => {
|
|
3898
|
-
f = xt(b()),
|
|
3898
|
+
f = xt(b()), v.value = "loading", w.value = [], _ = {}, P = [], F.value = [], G.value = [], Y.value = [], te.value = [], he.value = [], we.value = {};
|
|
3899
3899
|
}, ft = () => {
|
|
3900
3900
|
jl(() => {
|
|
3901
3901
|
setTimeout(() => {
|
|
3902
3902
|
var W, Q, x, M, U, X, J;
|
|
3903
3903
|
const u = ((Q = (W = Be.value) == null ? void 0 : W.$el) == null ? void 0 : Q.offsetHeight) || 0, E = ((M = (x = le.value) == null ? void 0 : x.$el) == null ? void 0 : M.offsetHeight) || 0, V = ((X = (U = z.value) == null ? void 0 : U.$el) == null ? void 0 : X.offsetHeight) || 0, j = u - E - V - 6;
|
|
3904
|
-
dt.value = A.maxHeight > 0 ? A.maxHeight : (J =
|
|
3904
|
+
dt.value = A.maxHeight > 0 ? A.maxHeight : (J = _ == null ? void 0 : _.tableConfig) != null && J.isPagination ? j - 48 : j;
|
|
3905
3905
|
}, 500);
|
|
3906
3906
|
});
|
|
3907
3907
|
}, Ct = () => [...Pt(P)], fe = (u) => {
|
|
@@ -3939,15 +3939,15 @@ const ii = {
|
|
|
3939
3939
|
return;
|
|
3940
3940
|
const V = E.row[u.fieldKey] ?? null;
|
|
3941
3941
|
return V ? V.split(";") : [];
|
|
3942
|
-
}, Ze = (u) => u === "true", ze = (u) => new Function("", u.fieldUiProps)() || {}, Ke = async (u, E) => Reflect.has(
|
|
3942
|
+
}, Ze = (u) => u === "true", ze = (u) => new Function("", u.fieldUiProps)() || {}, Ke = async (u, E) => Reflect.has(g, `/src/views${u}.vue`) ? oa(it(g[`/src/views${u}.vue`])) : null, Tt = async (u, E) => Reflect.has(g, `/src/views${u}.vue`) ? oa(
|
|
3943
3943
|
it({
|
|
3944
|
-
loader:
|
|
3944
|
+
loader: g[`/src/views${u}.vue`],
|
|
3945
3945
|
loadingComponent: fn,
|
|
3946
3946
|
delay: 20
|
|
3947
3947
|
})
|
|
3948
3948
|
) : null, Jt = async () => {
|
|
3949
|
-
|
|
3950
|
-
|
|
3949
|
+
_.buttons = await Promise.all(
|
|
3950
|
+
_.buttons.map(async (u) => {
|
|
3951
3951
|
if (u.isCustomBtn && u.customType == "component") {
|
|
3952
3952
|
const { customComponentUrl: E, customComponentName: V } = u, j = await Ke(E);
|
|
3953
3953
|
u[V] = j;
|
|
@@ -3956,7 +3956,7 @@ const ii = {
|
|
|
3956
3956
|
})
|
|
3957
3957
|
);
|
|
3958
3958
|
}, d = async () => {
|
|
3959
|
-
const u =
|
|
3959
|
+
const u = _.fields.filter((E) => (E.formCustomComponentes ?? []).some((V) => V.permissionCode == "tableShow" && V.isFieldCustom));
|
|
3960
3960
|
he.value = await Promise.all(
|
|
3961
3961
|
u.map(async (E) => {
|
|
3962
3962
|
const V = E.formCustomComponentes.find((x) => x.permissionCode == "tableShow"), { customComponentUrl: j, customComponentName: W } = V, Q = await Ke(j);
|
|
@@ -4031,7 +4031,7 @@ const ii = {
|
|
|
4031
4031
|
const E = A.pageKey ?? O.params.key, {
|
|
4032
4032
|
data: { pageConfigs: V }
|
|
4033
4033
|
} = await Ye(E);
|
|
4034
|
-
return
|
|
4034
|
+
return _ = V.pageConfig ? JSON.parse(V.pageConfig) : {}, f.tableQuery.pageSize = _.tableConfig.pageSize || 10, f.pageLoading = !1, Promise.resolve(Object.keys(_).length);
|
|
4035
4035
|
} catch (E) {
|
|
4036
4036
|
f.pageLoading = !1, console.error(E);
|
|
4037
4037
|
}
|
|
@@ -4068,7 +4068,7 @@ const ii = {
|
|
|
4068
4068
|
});
|
|
4069
4069
|
})
|
|
4070
4070
|
)).filter((M) => M.status === "fulfilled" && Reflect.has(M, "value")).map((M) => M.value);
|
|
4071
|
-
return V &&
|
|
4071
|
+
return V && _.fields.forEach((M) => {
|
|
4072
4072
|
const U = x.find((X) => M.fieldName == X.fieldName && M.fieldKey == X.fieldKey);
|
|
4073
4073
|
U && (M.dataList = (U == null ? void 0 : U.dataList) ?? []);
|
|
4074
4074
|
}), x;
|
|
@@ -4078,18 +4078,18 @@ const ii = {
|
|
|
4078
4078
|
}, _e = kt(() => {
|
|
4079
4079
|
const {
|
|
4080
4080
|
tableConfig: { tableMoreBtnSplitNumber: u }
|
|
4081
|
-
} =
|
|
4081
|
+
} = _;
|
|
4082
4082
|
return !u || u >= G.value.length;
|
|
4083
4083
|
}), ot = () => {
|
|
4084
4084
|
const {
|
|
4085
4085
|
tableConfig: { tableMoreBtnSplitNumber: u }
|
|
4086
|
-
} =
|
|
4086
|
+
} = _;
|
|
4087
4087
|
return _e.value ? G.value : G.value.slice(0, u);
|
|
4088
4088
|
}, Ft = () => {
|
|
4089
4089
|
var E;
|
|
4090
4090
|
const {
|
|
4091
4091
|
tableConfig: { tableMoreBtnSplitNumber: u }
|
|
4092
|
-
} =
|
|
4092
|
+
} = _;
|
|
4093
4093
|
return _e.value ? [] : G.value.slice(u, (E = G.value) == null ? void 0 : E.length);
|
|
4094
4094
|
}, mt = async (u) => {
|
|
4095
4095
|
try {
|
|
@@ -4108,17 +4108,17 @@ const ii = {
|
|
|
4108
4108
|
isCustomTableHeader: x
|
|
4109
4109
|
};
|
|
4110
4110
|
});
|
|
4111
|
-
|
|
4111
|
+
_.tableConfig.isSerialNumber && j.unshift({ prop: "serialNumber", width: 80 }), _.tableConfig.isCheckRow && j.unshift({ prop: "checkbox", width: 50 });
|
|
4112
4112
|
const W = G.value.filter((Q) => w.value.some((x) => x.unique == Q.permissionCode));
|
|
4113
|
-
|
|
4113
|
+
_.tableConfig.isOperateRow && W.length && j.push({ label: i("act.operate"), prop: "operate", width: _.tableConfig.tableOperateCellWidth, render: !0, fixed: "right" }), te.value = E.filter(
|
|
4114
4114
|
(Q) => !!Q.fieldRequestUrl && Q.useScenes.includes("tableShow") || Q.tableCellContentType == "link" || V.includes(Q.fieldType)
|
|
4115
4115
|
), F.value = j;
|
|
4116
4116
|
} catch (E) {
|
|
4117
4117
|
console.error(E);
|
|
4118
4118
|
}
|
|
4119
4119
|
}, rt = () => {
|
|
4120
|
-
G.value = (
|
|
4121
|
-
}, on = () =>
|
|
4120
|
+
G.value = (_.buttons || []).filter((u) => u.permissionCode !== 1001 && u.btnPostion.includes("table")).sort((u, E) => u.sort - E.sort).map((u) => (u.loading = !1, u.btnAlias && (u.btnName = u.btnAlias), u));
|
|
4121
|
+
}, on = () => _.fields.filter((u) => u.useScenes.includes("tableSearch")).map((u) => (["date", "dateRange"].includes(u.fieldType) ? u.queryValue = u.tableQueryDefaultValue ? u.tableQueryDefaultValue : Rt(u) : u.queryValue = (u == null ? void 0 : u.tableQueryDefaultValue) || void 0, A.defaultParams.some((E) => {
|
|
4122
4122
|
E.field == u.fieldKey && E.operate === u.tableQueryCondition && (u.queryValue = E.value);
|
|
4123
4123
|
}), u)), Pt = (u, E = "queryValue") => u ? (u || []).filter((j) => !!j[E]).reduce((j, W) => {
|
|
4124
4124
|
var x;
|
|
@@ -4172,15 +4172,15 @@ const ii = {
|
|
|
4172
4172
|
try {
|
|
4173
4173
|
f.tableLoading = !0;
|
|
4174
4174
|
const E = A.defaultParams.filter(
|
|
4175
|
-
(Q) => !(
|
|
4176
|
-
), V =
|
|
4175
|
+
(Q) => !(_.fields ?? []).some((x) => x.fieldKey === Q.field && x.tableQueryCondition === Q.operate && x.useScenes.includes("tableSearch"))
|
|
4176
|
+
), V = _.tableConfig.defaultParams.map((Q) => ({
|
|
4177
4177
|
field: Q.submitFieldName,
|
|
4178
4178
|
operate: Q.matchValue,
|
|
4179
4179
|
value: c(Q.submitFieldType, Q.defaultValue)
|
|
4180
4180
|
})), j = [...E, ...V, ...Pt(u)];
|
|
4181
|
-
|
|
4181
|
+
_.tableConfig.isPagination || (f.tableQuery.pageSize = 9999);
|
|
4182
4182
|
const { data: W } = await h({
|
|
4183
|
-
url:
|
|
4183
|
+
url: _.tableConfig.dataUrl,
|
|
4184
4184
|
method: "POST",
|
|
4185
4185
|
data: {
|
|
4186
4186
|
...f.tableQuery,
|
|
@@ -4193,19 +4193,19 @@ const ii = {
|
|
|
4193
4193
|
}
|
|
4194
4194
|
}, na = async () => {
|
|
4195
4195
|
try {
|
|
4196
|
-
|
|
4196
|
+
v.value = "loading";
|
|
4197
4197
|
const u = A.pageKey;
|
|
4198
4198
|
if (!await D(u)) {
|
|
4199
|
-
|
|
4199
|
+
v.value = "end";
|
|
4200
4200
|
return;
|
|
4201
4201
|
}
|
|
4202
|
-
await d(), await Jt(), await ie(
|
|
4202
|
+
await d(), await Jt(), await ie(_.fields.filter((Q) => Q.useScenes.some((x) => ["tableSearch", "tableShow"].includes(x)))), v.value = "success";
|
|
4203
4203
|
let V = "";
|
|
4204
|
-
|
|
4204
|
+
I === "sessionStorage" ? V = sessionStorage.getItem("accessToken") : V = S.getItemValue("accessToken");
|
|
4205
4205
|
const W = JSON.parse(Gs.decode(V.split(".")[1]))["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"];
|
|
4206
|
-
w.value = (await lt({ roleId: W, key: u })).data.datas || [], rt(), mt(
|
|
4206
|
+
w.value = (await lt({ roleId: W, key: u })).data.datas || [], rt(), mt(_.fields), ft(), P = on(), (!Reflect.has(_.tableConfig, "isExecuteImmediatelyTableApi") || _.tableConfig.isExecuteImmediatelyTableApi) && await Ge(P), m("load"), console.log(_);
|
|
4207
4207
|
} catch (u) {
|
|
4208
|
-
console.error(u),
|
|
4208
|
+
console.error(u), v.value = "end";
|
|
4209
4209
|
}
|
|
4210
4210
|
};
|
|
4211
4211
|
Ie("globalProps", A), Ie("loadComponents", Ke), Ie("defineAsyncLoadComponents", Tt), Ie("stringToBoolean", Ze), Ie("matchCondition", be), Ie("menuPermissionBtns", w), Ie("getTableData", Ge), Ie("tableBtnRefs", re.value), Ie("formatDataType", c), Ie("getFieldUiProps", ze), Ie("disposeRequestData", ie), Ie("disposeDate", Rt), Ie("getDefaultQueryValues", on), ct(
|
|
@@ -4344,7 +4344,7 @@ const ii = {
|
|
|
4344
4344
|
return M;
|
|
4345
4345
|
}, {});
|
|
4346
4346
|
if (u.btnPostion === "header" && u.isPromptVerificationSelectTable == "1") {
|
|
4347
|
-
if (!
|
|
4347
|
+
if (!_.tableConfig.isCheckRow) {
|
|
4348
4348
|
Pe({ title: i("act.tip"), message: i("act.configTableRow"), type: "warning", duration: 2500 });
|
|
4349
4349
|
return;
|
|
4350
4350
|
}
|
|
@@ -4370,7 +4370,7 @@ const ii = {
|
|
|
4370
4370
|
}
|
|
4371
4371
|
if (u.submitWay === "messageBox") {
|
|
4372
4372
|
if (u.btnPostion === "header" && u.isPromptVerificationSelectTable == "1") {
|
|
4373
|
-
if (!
|
|
4373
|
+
if (!_.tableConfig.isCheckRow) {
|
|
4374
4374
|
Pe({ title: i("act.tip"), message: i("act.configTableRow"), type: "warning", duration: 2500 });
|
|
4375
4375
|
return;
|
|
4376
4376
|
}
|
|
@@ -4413,7 +4413,7 @@ const ii = {
|
|
|
4413
4413
|
return;
|
|
4414
4414
|
}
|
|
4415
4415
|
if (u.btnPostion === "header" && u.submitWay === "dialog" && (u.submitFields || []).some((x) => x.submitFieldMatchOrigin === "selections") && !f.tableSelection.length) {
|
|
4416
|
-
if (!
|
|
4416
|
+
if (!_.tableConfig.isCheckRow) {
|
|
4417
4417
|
Pe({ title: i("act.tip"), message: i("act.configTableRow"), type: "warning", duration: 2500 });
|
|
4418
4418
|
return;
|
|
4419
4419
|
}
|
|
@@ -4423,7 +4423,7 @@ const ii = {
|
|
|
4423
4423
|
}
|
|
4424
4424
|
return;
|
|
4425
4425
|
}
|
|
4426
|
-
let Q = (
|
|
4426
|
+
let Q = (_.fields || []).filter((x) => x.useScenes.includes(u.permissionCode)).map((x) => (x.customFiledsComponentes = x.formCustomComponentes.find((M) => M.permissionCode == u.permissionCode) || {}, x));
|
|
4427
4427
|
if (!Q.length) {
|
|
4428
4428
|
Pe({ title: i("act.tip"), message: i("act.buttonBindField"), type: "warning", duration: 2500 });
|
|
4429
4429
|
return;
|
|
@@ -4433,7 +4433,7 @@ const ii = {
|
|
|
4433
4433
|
dataItem: { ...u },
|
|
4434
4434
|
rowData: { ...E },
|
|
4435
4435
|
selections: f.tableSelection || [],
|
|
4436
|
-
formConfig:
|
|
4436
|
+
formConfig: _.formConfig,
|
|
4437
4437
|
formList: Q
|
|
4438
4438
|
}, f.showFormDialog = !0;
|
|
4439
4439
|
return;
|
|
@@ -4456,18 +4456,18 @@ const ii = {
|
|
|
4456
4456
|
default: k(() => {
|
|
4457
4457
|
var je, la;
|
|
4458
4458
|
return [
|
|
4459
|
-
y(
|
|
4459
|
+
y(v) === "success" ? (H(), Ae(Le, { key: 0 }, [
|
|
4460
4460
|
N(y(a), {
|
|
4461
4461
|
ref_key: "queryModuleRef",
|
|
4462
4462
|
ref: le,
|
|
4463
|
-
data: y(
|
|
4463
|
+
data: y(_),
|
|
4464
4464
|
onReset: aa,
|
|
4465
4465
|
onSearch: aa
|
|
4466
4466
|
}, null, 8, ["data"]),
|
|
4467
4467
|
N(y(l), {
|
|
4468
4468
|
ref_key: "headerButtonsModuleRef",
|
|
4469
4469
|
ref: z,
|
|
4470
|
-
data: y(
|
|
4470
|
+
data: y(_),
|
|
4471
4471
|
onOnOperate: rn
|
|
4472
4472
|
}, null, 8, ["data"]),
|
|
4473
4473
|
N(y(o), {
|
|
@@ -4481,7 +4481,7 @@ const ii = {
|
|
|
4481
4481
|
"onUpdate:selection": E[1] || (E[1] = (Z) => y(f).tableSelection = Z),
|
|
4482
4482
|
headers: y(F),
|
|
4483
4483
|
data: y(Y),
|
|
4484
|
-
showPagination: (la = (je = y(
|
|
4484
|
+
showPagination: (la = (je = y(_)) == null ? void 0 : je.tableConfig) == null ? void 0 : la.isPagination,
|
|
4485
4485
|
tableConfig: A.tableConfig,
|
|
4486
4486
|
maxHeight: dt.value,
|
|
4487
4487
|
onRefresh: Dt,
|
|
@@ -4647,7 +4647,7 @@ const ii = {
|
|
|
4647
4647
|
Z[`customTableHeaderInstance_${Z.customTableHeaderName}`] ? (H(), oe(Nn(Z[`customTableHeaderInstance_${Z.customTableHeaderName}`]), {
|
|
4648
4648
|
key: 0,
|
|
4649
4649
|
data: Z,
|
|
4650
|
-
configData: y(
|
|
4650
|
+
configData: y(_),
|
|
4651
4651
|
rowData: y(we)
|
|
4652
4652
|
}, null, 8, ["data", "configData", "rowData"])) : (H(), oe(V, {
|
|
4653
4653
|
key: 1,
|
|
@@ -4700,7 +4700,7 @@ const ii = {
|
|
|
4700
4700
|
title: y(f).editorDialogTitle,
|
|
4701
4701
|
data: y(f).dialogData
|
|
4702
4702
|
}, null, 8, ["visible", "title", "data"]),
|
|
4703
|
-
y(
|
|
4703
|
+
y(v) === "end" ? (H(), oe(J, {
|
|
4704
4704
|
key: 1,
|
|
4705
4705
|
description: y(i)("act.noConfigPage")
|
|
4706
4706
|
}, {
|
|
@@ -4848,7 +4848,7 @@ const ii = {
|
|
|
4848
4848
|
},
|
|
4849
4849
|
{ deep: !0, immediate: !0 }
|
|
4850
4850
|
), t({ formRef: o, form: r }), (s, i) => {
|
|
4851
|
-
const
|
|
4851
|
+
const g = q("el-input-number"), T = q("el-form-item"), h = q("el-col"), p = q("el-option"), I = q("el-select"), S = q("el-row"), O = q("el-form"), R = q("el-card");
|
|
4852
4852
|
return H(), oe(R, {
|
|
4853
4853
|
class: "form-card",
|
|
4854
4854
|
shadow: "hover",
|
|
@@ -4863,13 +4863,13 @@ const ii = {
|
|
|
4863
4863
|
"label-width": "110px"
|
|
4864
4864
|
}, {
|
|
4865
4865
|
default: k(() => [
|
|
4866
|
-
N(
|
|
4866
|
+
N(S, null, {
|
|
4867
4867
|
default: k(() => [
|
|
4868
4868
|
N(h, { span: 8 }, {
|
|
4869
4869
|
default: k(() => [
|
|
4870
4870
|
N(T, { label: "弹窗宽度" }, {
|
|
4871
4871
|
default: k(() => [
|
|
4872
|
-
N(
|
|
4872
|
+
N(g, {
|
|
4873
4873
|
modelValue: y(r).dialogWidth,
|
|
4874
4874
|
"onUpdate:modelValue": i[0] || (i[0] = (m) => y(r).dialogWidth = m),
|
|
4875
4875
|
min: 800
|
|
@@ -4884,7 +4884,7 @@ const ii = {
|
|
|
4884
4884
|
default: k(() => [
|
|
4885
4885
|
N(T, { label: "排版列数" }, {
|
|
4886
4886
|
default: k(() => [
|
|
4887
|
-
N(
|
|
4887
|
+
N(g, {
|
|
4888
4888
|
modelValue: y(r).formRow,
|
|
4889
4889
|
"onUpdate:modelValue": i[1] || (i[1] = (m) => y(r).formRow = m),
|
|
4890
4890
|
min: 1,
|
|
@@ -4900,7 +4900,7 @@ const ii = {
|
|
|
4900
4900
|
default: k(() => [
|
|
4901
4901
|
N(T, { label: "label宽度" }, {
|
|
4902
4902
|
default: k(() => [
|
|
4903
|
-
N(
|
|
4903
|
+
N(g, {
|
|
4904
4904
|
modelValue: y(r).formLabelWidth,
|
|
4905
4905
|
"onUpdate:modelValue": i[2] || (i[2] = (m) => y(r).formLabelWidth = m),
|
|
4906
4906
|
min: 80
|
|
@@ -4919,7 +4919,7 @@ const ii = {
|
|
|
4919
4919
|
prop: "formLabelPosition"
|
|
4920
4920
|
}, {
|
|
4921
4921
|
default: k(() => [
|
|
4922
|
-
N(
|
|
4922
|
+
N(I, {
|
|
4923
4923
|
modelValue: y(r).formLabelPosition,
|
|
4924
4924
|
"onUpdate:modelValue": i[3] || (i[3] = (m) => y(r).formLabelPosition = m),
|
|
4925
4925
|
placeholder: "请选择"
|
|
@@ -4982,9 +4982,9 @@ const bi = {
|
|
|
4982
4982
|
if (h) {
|
|
4983
4983
|
if (!Object.keys(h).length)
|
|
4984
4984
|
return;
|
|
4985
|
-
const
|
|
4986
|
-
Object.keys(s.value).forEach((
|
|
4987
|
-
["defaultParams"].includes(
|
|
4985
|
+
const I = { ...h, defaultParams: [...h.defaultParams || []] };
|
|
4986
|
+
Object.keys(s.value).forEach((S) => {
|
|
4987
|
+
["defaultParams"].includes(S) ? s.value[S] = [...I[S] || []] : S === "tableMoreBtnSplitNumber" ? s.value[S] = Reflect.has(I, "tableMoreBtnSplitNumber") ? I[S] : 0 : S === "headerMoreBtnSplitNumber" ? s.value[S] = Reflect.has(I, "headerMoreBtnSplitNumber") ? I[S] : 0 : S === "isExecuteImmediatelyTableApi" ? s.value[S] = Reflect.has(I, "isExecuteImmediatelyTableApi") ? I[S] : !0 : s.value[S] = I[S];
|
|
4988
4988
|
});
|
|
4989
4989
|
}
|
|
4990
4990
|
},
|
|
@@ -4992,20 +4992,20 @@ const bi = {
|
|
|
4992
4992
|
);
|
|
4993
4993
|
const i = () => {
|
|
4994
4994
|
s.value.defaultParams.push({ submitFieldName: "", defaultValue: "", matchValue: "", submitFieldType: "" });
|
|
4995
|
-
},
|
|
4995
|
+
}, g = (h) => {
|
|
4996
4996
|
s.value.defaultParams.splice(h, 1);
|
|
4997
4997
|
}, T = (h) => {
|
|
4998
4998
|
h || (s.value.pageSize = 10);
|
|
4999
4999
|
};
|
|
5000
5000
|
return t({ formRef: r, form: s }), (h, p) => {
|
|
5001
|
-
const
|
|
5001
|
+
const I = q("el-input"), S = q("el-form-item"), O = q("el-col"), R = q("el-row"), m = q("el-button"), A = q("el-divider"), b = q("el-option"), f = q("el-select"), v = q("el-switch"), w = q("el-input-number"), _ = q("el-form"), P = q("el-card");
|
|
5002
5002
|
return H(), oe(P, {
|
|
5003
5003
|
class: "form-card",
|
|
5004
5004
|
shadow: "hover",
|
|
5005
5005
|
header: "表格配置"
|
|
5006
5006
|
}, {
|
|
5007
5007
|
default: k(() => [
|
|
5008
|
-
N(
|
|
5008
|
+
N(_, {
|
|
5009
5009
|
ref_key: "formRef",
|
|
5010
5010
|
ref: r,
|
|
5011
5011
|
model: y(s),
|
|
@@ -5017,13 +5017,13 @@ const bi = {
|
|
|
5017
5017
|
default: k(() => [
|
|
5018
5018
|
N(O, { span: 24 }, {
|
|
5019
5019
|
default: k(() => [
|
|
5020
|
-
N(
|
|
5020
|
+
N(S, {
|
|
5021
5021
|
label: "表格数据url",
|
|
5022
5022
|
prop: "dataUrl",
|
|
5023
5023
|
rules: [{ required: !0, message: "必填项", trigger: "blur" }]
|
|
5024
5024
|
}, {
|
|
5025
5025
|
default: k(() => [
|
|
5026
|
-
N(
|
|
5026
|
+
N(I, {
|
|
5027
5027
|
modelValue: y(s).dataUrl,
|
|
5028
5028
|
"onUpdate:modelValue": p[0] || (p[0] = (F) => y(s).dataUrl = F),
|
|
5029
5029
|
placeholder: "请输入",
|
|
@@ -5058,13 +5058,13 @@ const bi = {
|
|
|
5058
5058
|
default: k(() => [
|
|
5059
5059
|
N(O, { span: 12 }, {
|
|
5060
5060
|
default: k(() => [
|
|
5061
|
-
N(
|
|
5061
|
+
N(S, {
|
|
5062
5062
|
label: "字段",
|
|
5063
5063
|
rules: [{ required: !0, message: "必填项", trigger: "blur" }],
|
|
5064
5064
|
prop: "defaultParams." + G + ".submitFieldName"
|
|
5065
5065
|
}, {
|
|
5066
5066
|
default: k(() => [
|
|
5067
|
-
N(
|
|
5067
|
+
N(I, {
|
|
5068
5068
|
modelValue: F.submitFieldName,
|
|
5069
5069
|
"onUpdate:modelValue": (Y) => F.submitFieldName = Y,
|
|
5070
5070
|
placeholder: "请输入",
|
|
@@ -5078,7 +5078,7 @@ const bi = {
|
|
|
5078
5078
|
}, 1024),
|
|
5079
5079
|
N(O, { span: 12 }, {
|
|
5080
5080
|
default: k(() => [
|
|
5081
|
-
N(
|
|
5081
|
+
N(S, {
|
|
5082
5082
|
label: "匹配条件",
|
|
5083
5083
|
rules: [{ required: !0, message: "必填项", trigger: "change" }],
|
|
5084
5084
|
prop: "defaultParams." + G + ".matchValue"
|
|
@@ -5108,13 +5108,13 @@ const bi = {
|
|
|
5108
5108
|
}, 1024),
|
|
5109
5109
|
N(O, { span: 12 }, {
|
|
5110
5110
|
default: k(() => [
|
|
5111
|
-
N(
|
|
5111
|
+
N(S, {
|
|
5112
5112
|
label: "默认值",
|
|
5113
5113
|
rules: [{ required: !0, message: "必填项", trigger: "blur" }],
|
|
5114
5114
|
prop: "defaultParams." + G + ".defaultValue"
|
|
5115
5115
|
}, {
|
|
5116
5116
|
default: k(() => [
|
|
5117
|
-
N(
|
|
5117
|
+
N(I, {
|
|
5118
5118
|
modelValue: F.defaultValue,
|
|
5119
5119
|
"onUpdate:modelValue": (Y) => F.defaultValue = Y,
|
|
5120
5120
|
placeholder: "请输入",
|
|
@@ -5128,7 +5128,7 @@ const bi = {
|
|
|
5128
5128
|
}, 1024),
|
|
5129
5129
|
N(O, { span: 12 }, {
|
|
5130
5130
|
default: k(() => [
|
|
5131
|
-
N(
|
|
5131
|
+
N(S, {
|
|
5132
5132
|
label: "提交类型",
|
|
5133
5133
|
rules: [{ required: !0, message: "必填项", trigger: "change" }],
|
|
5134
5134
|
prop: "defaultParams." + G + ".submitFieldType"
|
|
@@ -5167,7 +5167,7 @@ const bi = {
|
|
|
5167
5167
|
type: "danger",
|
|
5168
5168
|
icon: "Minus",
|
|
5169
5169
|
circle: "",
|
|
5170
|
-
onClick: (Y) =>
|
|
5170
|
+
onClick: (Y) => g(G)
|
|
5171
5171
|
}, null, 8, ["onClick"])
|
|
5172
5172
|
]),
|
|
5173
5173
|
_: 2
|
|
@@ -5179,9 +5179,9 @@ const bi = {
|
|
|
5179
5179
|
default: k(() => [
|
|
5180
5180
|
N(O, { span: 6 }, {
|
|
5181
5181
|
default: k(() => [
|
|
5182
|
-
N(
|
|
5182
|
+
N(S, { label: "多选列" }, {
|
|
5183
5183
|
default: k(() => [
|
|
5184
|
-
N(
|
|
5184
|
+
N(v, {
|
|
5185
5185
|
modelValue: y(s).isCheckRow,
|
|
5186
5186
|
"onUpdate:modelValue": p[1] || (p[1] = (F) => y(s).isCheckRow = F)
|
|
5187
5187
|
}, null, 8, ["modelValue"])
|
|
@@ -5193,9 +5193,9 @@ const bi = {
|
|
|
5193
5193
|
}),
|
|
5194
5194
|
N(O, { span: 6 }, {
|
|
5195
5195
|
default: k(() => [
|
|
5196
|
-
N(
|
|
5196
|
+
N(S, { label: "操作列" }, {
|
|
5197
5197
|
default: k(() => [
|
|
5198
|
-
N(
|
|
5198
|
+
N(v, {
|
|
5199
5199
|
modelValue: y(s).isOperateRow,
|
|
5200
5200
|
"onUpdate:modelValue": p[2] || (p[2] = (F) => y(s).isOperateRow = F)
|
|
5201
5201
|
}, null, 8, ["modelValue"])
|
|
@@ -5207,9 +5207,9 @@ const bi = {
|
|
|
5207
5207
|
}),
|
|
5208
5208
|
N(O, { span: 6 }, {
|
|
5209
5209
|
default: k(() => [
|
|
5210
|
-
N(
|
|
5210
|
+
N(S, { label: "分页" }, {
|
|
5211
5211
|
default: k(() => [
|
|
5212
|
-
N(
|
|
5212
|
+
N(v, {
|
|
5213
5213
|
modelValue: y(s).isPagination,
|
|
5214
5214
|
"onUpdate:modelValue": p[3] || (p[3] = (F) => y(s).isPagination = F),
|
|
5215
5215
|
onChange: T
|
|
@@ -5222,9 +5222,9 @@ const bi = {
|
|
|
5222
5222
|
}),
|
|
5223
5223
|
N(O, { span: 6 }, {
|
|
5224
5224
|
default: k(() => [
|
|
5225
|
-
N(
|
|
5225
|
+
N(S, { label: "序号列" }, {
|
|
5226
5226
|
default: k(() => [
|
|
5227
|
-
N(
|
|
5227
|
+
N(v, {
|
|
5228
5228
|
modelValue: y(s).isSerialNumber,
|
|
5229
5229
|
"onUpdate:modelValue": p[4] || (p[4] = (F) => y(s).isSerialNumber = F)
|
|
5230
5230
|
}, null, 8, ["modelValue"])
|
|
@@ -5236,9 +5236,9 @@ const bi = {
|
|
|
5236
5236
|
}),
|
|
5237
5237
|
N(O, { span: 6 }, {
|
|
5238
5238
|
default: k(() => [
|
|
5239
|
-
N(
|
|
5239
|
+
N(S, { label: "排序" }, {
|
|
5240
5240
|
default: k(() => [
|
|
5241
|
-
N(
|
|
5241
|
+
N(v, {
|
|
5242
5242
|
modelValue: y(s).isSort,
|
|
5243
5243
|
"onUpdate:modelValue": p[5] || (p[5] = (F) => y(s).isSort = F)
|
|
5244
5244
|
}, null, 8, ["modelValue"])
|
|
@@ -5250,9 +5250,9 @@ const bi = {
|
|
|
5250
5250
|
}),
|
|
5251
5251
|
N(O, { span: 6 }, {
|
|
5252
5252
|
default: k(() => [
|
|
5253
|
-
N(
|
|
5253
|
+
N(S, { label: "展/收查询条件" }, {
|
|
5254
5254
|
default: k(() => [
|
|
5255
|
-
N(
|
|
5255
|
+
N(v, {
|
|
5256
5256
|
modelValue: y(s).isExpandQuery,
|
|
5257
5257
|
"onUpdate:modelValue": p[6] || (p[6] = (F) => y(s).isExpandQuery = F),
|
|
5258
5258
|
onChange: T
|
|
@@ -5265,9 +5265,9 @@ const bi = {
|
|
|
5265
5265
|
}),
|
|
5266
5266
|
N(O, { span: 6 }, {
|
|
5267
5267
|
default: k(() => [
|
|
5268
|
-
N(
|
|
5268
|
+
N(S, { label: "立即执行接口" }, {
|
|
5269
5269
|
default: k(() => [
|
|
5270
|
-
N(
|
|
5270
|
+
N(v, {
|
|
5271
5271
|
modelValue: y(s).isExecuteImmediatelyTableApi,
|
|
5272
5272
|
"onUpdate:modelValue": p[7] || (p[7] = (F) => y(s).isExecuteImmediatelyTableApi = F)
|
|
5273
5273
|
}, null, 8, ["modelValue"])
|
|
@@ -5287,7 +5287,7 @@ const bi = {
|
|
|
5287
5287
|
span: 8
|
|
5288
5288
|
}, {
|
|
5289
5289
|
default: k(() => [
|
|
5290
|
-
N(
|
|
5290
|
+
N(S, {
|
|
5291
5291
|
label: "操作列宽度",
|
|
5292
5292
|
"label-width": "150"
|
|
5293
5293
|
}, {
|
|
@@ -5308,7 +5308,7 @@ const bi = {
|
|
|
5308
5308
|
span: 8
|
|
5309
5309
|
}, {
|
|
5310
5310
|
default: k(() => [
|
|
5311
|
-
N(
|
|
5311
|
+
N(S, {
|
|
5312
5312
|
label: "分页页数",
|
|
5313
5313
|
prop: "pageSize",
|
|
5314
5314
|
"label-width": "150",
|
|
@@ -5328,7 +5328,7 @@ const bi = {
|
|
|
5328
5328
|
})) : Ve("", !0),
|
|
5329
5329
|
N(O, { span: 8 }, {
|
|
5330
5330
|
default: k(() => [
|
|
5331
|
-
N(
|
|
5331
|
+
N(S, {
|
|
5332
5332
|
label: "查询条件label宽度",
|
|
5333
5333
|
"label-width": "150"
|
|
5334
5334
|
}, {
|
|
@@ -5346,7 +5346,7 @@ const bi = {
|
|
|
5346
5346
|
}),
|
|
5347
5347
|
N(O, { span: 8 }, {
|
|
5348
5348
|
default: k(() => [
|
|
5349
|
-
N(
|
|
5349
|
+
N(S, {
|
|
5350
5350
|
label: "查询条件列数",
|
|
5351
5351
|
"label-width": "150"
|
|
5352
5352
|
}, {
|
|
@@ -5364,7 +5364,7 @@ const bi = {
|
|
|
5364
5364
|
}),
|
|
5365
5365
|
N(O, { span: 8 }, {
|
|
5366
5366
|
default: k(() => [
|
|
5367
|
-
N(
|
|
5367
|
+
N(S, {
|
|
5368
5368
|
label: "表格更多按钮分割数",
|
|
5369
5369
|
"label-width": "150"
|
|
5370
5370
|
}, {
|
|
@@ -5382,7 +5382,7 @@ const bi = {
|
|
|
5382
5382
|
}),
|
|
5383
5383
|
N(O, { span: 8 }, {
|
|
5384
5384
|
default: k(() => [
|
|
5385
|
-
N(
|
|
5385
|
+
N(S, {
|
|
5386
5386
|
label: "顶部更多按钮分割数",
|
|
5387
5387
|
"label-width": "150"
|
|
5388
5388
|
}, {
|
|
@@ -5417,7 +5417,7 @@ const hi = {
|
|
|
5417
5417
|
},
|
|
5418
5418
|
emits: ["update:modelValue"],
|
|
5419
5419
|
setup(e, { expose: t, emit: n }) {
|
|
5420
|
-
const a = An(), l = Re("apiPrefix"), o = Re("request"), r = it(() => import("./dialogConfigBtn-
|
|
5420
|
+
const a = An(), l = Re("apiPrefix"), o = Re("request"), r = it(() => import("./dialogConfigBtn-ab76d05a.js")), s = e, i = () => ({
|
|
5421
5421
|
sort: 0,
|
|
5422
5422
|
permissionCode: null,
|
|
5423
5423
|
requestUrl: "",
|
|
@@ -5444,7 +5444,7 @@ const hi = {
|
|
|
5444
5444
|
tableLoading: !1,
|
|
5445
5445
|
showConfigBtnDialog: !1,
|
|
5446
5446
|
dialogData: {}
|
|
5447
|
-
}))()), h = ae(null), p = 0,
|
|
5447
|
+
}))()), h = ae(null), p = 0, I = ae([]), S = ae([]), O = [
|
|
5448
5448
|
{ prop: "checkbox", width: 60 },
|
|
5449
5449
|
{ prop: "serialNumber", width: 80 },
|
|
5450
5450
|
{ label: "按钮名称", prop: "btnName", minWidth: 200 },
|
|
@@ -5455,36 +5455,36 @@ const hi = {
|
|
|
5455
5455
|
{ label: "排序", prop: "sort", width: 180, render: !0 },
|
|
5456
5456
|
{ label: "操作", prop: "operate", width: 120, render: !0, fixed: "right" }
|
|
5457
5457
|
], R = ae([]);
|
|
5458
|
-
const m = (
|
|
5459
|
-
|
|
5460
|
-
}, f = async (
|
|
5458
|
+
const m = (_) => o({ url: `${l}/sysMenus/getAllList`, method: "post", data: _ }), A = (_) => o({ url: `${l}/sysMenus/getMenuOfOperate`, method: "get", params: _ }), b = (_, P) => {
|
|
5459
|
+
S.value.includes(_.permissionCode) || S.value.push(_.permissionCode), Object.assign(R.value[p], _), P(!0);
|
|
5460
|
+
}, f = async (_) => {
|
|
5461
5461
|
try {
|
|
5462
5462
|
T.tableLoading = !0;
|
|
5463
5463
|
const P = s.id ? s.id : a.params.id, { data: F } = await A({ id: P });
|
|
5464
|
-
|
|
5465
|
-
let te = i(), he = (
|
|
5464
|
+
S.value = (F || []).filter((G) => (_ || []).some((Y) => Y.permissionCode == G.unique)).map((G) => G.unique), R.value = (F || []).map((G, Y) => {
|
|
5465
|
+
let te = i(), he = (_ || []).find((re) => re.permissionCode == G.unique) || {};
|
|
5466
5466
|
return { ...te, btnIcon: G.icon || "", ...he, btnName: G.name, permissionCode: G.unique, sort: he.sort ? he.sort : (Y + 1) * 10 };
|
|
5467
5467
|
}).sort((G, Y) => G.sort - Y.sort), T.tableLoading = !1;
|
|
5468
5468
|
} catch (P) {
|
|
5469
5469
|
T.tableLoading = !1, console.error(P);
|
|
5470
5470
|
}
|
|
5471
|
-
},
|
|
5472
|
-
Ie("associationMenuList",
|
|
5471
|
+
}, v = () => h.value.getSelectionRows() || [];
|
|
5472
|
+
Ie("associationMenuList", I), Ie("createDefaultButtonItem", i), ct(
|
|
5473
5473
|
() => s.modelValue,
|
|
5474
|
-
async (
|
|
5474
|
+
async (_, P) => {
|
|
5475
5475
|
try {
|
|
5476
5476
|
const F = s.id ? s.id : a.params.id;
|
|
5477
|
-
|
|
5477
|
+
I.value = (await m({ dynamicFilters: [{ field: "parentId", operate: "Equal", value: F }] })).data || [], await f(_);
|
|
5478
5478
|
} catch (F) {
|
|
5479
5479
|
T.tableLoading = !1, console.error(F);
|
|
5480
5480
|
}
|
|
5481
5481
|
},
|
|
5482
5482
|
{ deep: !0 }
|
|
5483
5483
|
);
|
|
5484
|
-
const w = (
|
|
5485
|
-
T.dialogData =
|
|
5484
|
+
const w = (_) => {
|
|
5485
|
+
T.dialogData = _.row, p = _.$index, T.showConfigBtnDialog = !0;
|
|
5486
5486
|
};
|
|
5487
|
-
return t({ getTableSelectionRows:
|
|
5487
|
+
return t({ getTableSelectionRows: v }), (_, P) => {
|
|
5488
5488
|
const F = q("el-tag"), G = q("el-input-number"), Y = q("el-button"), te = q("a-table"), he = q("el-card");
|
|
5489
5489
|
return H(), oe(he, {
|
|
5490
5490
|
class: "form-card",
|
|
@@ -5501,8 +5501,8 @@ const hi = {
|
|
|
5501
5501
|
ref: h,
|
|
5502
5502
|
loading: y(T).tableLoading,
|
|
5503
5503
|
rowKey: "permissionCode",
|
|
5504
|
-
selection: y(
|
|
5505
|
-
"onUpdate:selection": P[0] || (P[0] = (re) => It(
|
|
5504
|
+
selection: y(S),
|
|
5505
|
+
"onUpdate:selection": P[0] || (P[0] = (re) => It(S) ? S.value = re : S = re),
|
|
5506
5506
|
headers: y(O),
|
|
5507
5507
|
data: y(R),
|
|
5508
5508
|
showPagination: !1
|
|
@@ -5562,7 +5562,7 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5562
5562
|
},
|
|
5563
5563
|
emits: ["update:modelValue"],
|
|
5564
5564
|
setup(e, { emit: t }) {
|
|
5565
|
-
const n = it(() => import("./dialogAddField-
|
|
5565
|
+
const n = it(() => import("./dialogAddField-20b4a7ee.js")), a = t, l = e;
|
|
5566
5566
|
Re("configData")();
|
|
5567
5567
|
let r = xt((() => ({
|
|
5568
5568
|
tableLoading: !1,
|
|
@@ -5579,28 +5579,28 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5579
5579
|
// { label: '场景自定义', prop: 'formCustomComponentes', width: 200, render: true },
|
|
5580
5580
|
{ label: "排序", prop: "sort", width: 200, render: !0 },
|
|
5581
5581
|
{ label: "操作", prop: "operate", width: 170, render: !0, fixed: "right" }
|
|
5582
|
-
],
|
|
5582
|
+
], g = ae([]);
|
|
5583
5583
|
_i[0].options.map((b) => ({ btnName: b.key, permissionCode: b.value }));
|
|
5584
5584
|
const T = (b) => {
|
|
5585
5585
|
if (!Reflect.has(b, "fieldType"))
|
|
5586
5586
|
return "";
|
|
5587
|
-
const f = mi.find((
|
|
5587
|
+
const f = mi.find((v) => v.value == b.fieldType);
|
|
5588
5588
|
return (f == null ? void 0 : f.key) || "";
|
|
5589
|
-
}, h = (b) => Reflect.has(b, "useScenes") ? (b.formCustomComponentes ?? []).filter((f) => b.useScenes.includes(f.permissionCode)) : [], p = (b) => (b.formCustomComponentes || []).filter((f) => f.isFieldCustom).map((f) => `${f.btnName}:是`).join(),
|
|
5589
|
+
}, h = (b) => Reflect.has(b, "useScenes") ? (b.formCustomComponentes ?? []).filter((f) => b.useScenes.includes(f.permissionCode)) : [], p = (b) => (b.formCustomComponentes || []).filter((f) => f.isFieldCustom).map((f) => `${f.btnName}:是`).join(), I = (b, f) => {
|
|
5590
5590
|
if (s == null) {
|
|
5591
|
-
const
|
|
5592
|
-
|
|
5591
|
+
const v = g.value.length;
|
|
5592
|
+
g.value.push({ ...b, sort: (v + 1) * 10 });
|
|
5593
5593
|
} else
|
|
5594
|
-
|
|
5594
|
+
g.value[s] = {
|
|
5595
5595
|
...b,
|
|
5596
5596
|
postRequestParams: [...b.postRequestParams],
|
|
5597
5597
|
useScenes: [...b.useScenes],
|
|
5598
5598
|
formCustomComponentes: [...b.formCustomComponentes]
|
|
5599
5599
|
};
|
|
5600
|
-
a("update:modelValue",
|
|
5601
|
-
},
|
|
5600
|
+
a("update:modelValue", g.value), f(!0);
|
|
5601
|
+
}, S = async () => {
|
|
5602
5602
|
try {
|
|
5603
|
-
r.tableLoading = !0,
|
|
5603
|
+
r.tableLoading = !0, g.value = (l.modelValue || []).map((b) => ({ ...b, sort: b.sort ? b.sort : 0 })).sort((b, f) => b.sort - f.sort), r.tableLoading = !1;
|
|
5604
5604
|
} catch (b) {
|
|
5605
5605
|
r.tableLoading = !1, console.error(b);
|
|
5606
5606
|
}
|
|
@@ -5608,7 +5608,7 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5608
5608
|
ct(
|
|
5609
5609
|
() => l.modelValue,
|
|
5610
5610
|
async (b, f) => {
|
|
5611
|
-
await
|
|
5611
|
+
await S();
|
|
5612
5612
|
},
|
|
5613
5613
|
{ deep: !0, immediate: !0 }
|
|
5614
5614
|
);
|
|
@@ -5617,12 +5617,12 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5617
5617
|
}, R = (b) => {
|
|
5618
5618
|
s = b.$index, r.dialogData = b.row, r.showAddFieldDialog = !0;
|
|
5619
5619
|
}, m = () => {
|
|
5620
|
-
a("update:modelValue",
|
|
5620
|
+
a("update:modelValue", g.value);
|
|
5621
5621
|
}, A = (b) => {
|
|
5622
|
-
|
|
5622
|
+
g.value.splice(b.$index, 1), a("update:modelValue", g.value);
|
|
5623
5623
|
};
|
|
5624
5624
|
return (b, f) => {
|
|
5625
|
-
const
|
|
5625
|
+
const v = q("el-button"), w = q("el-tag"), _ = q("el-badge"), P = q("el-input-number"), F = q("a-table"), G = q("el-card");
|
|
5626
5626
|
return H(), oe(G, {
|
|
5627
5627
|
class: "form-card",
|
|
5628
5628
|
shadow: "hover"
|
|
@@ -5630,7 +5630,7 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5630
5630
|
header: k(() => [
|
|
5631
5631
|
Te("div", Ci, [
|
|
5632
5632
|
f[3] || (f[3] = Te("div", { class: "card-header-title" }, "字段配置", -1)),
|
|
5633
|
-
N(
|
|
5633
|
+
N(v, {
|
|
5634
5634
|
class: "card-header-operate",
|
|
5635
5635
|
type: "primary",
|
|
5636
5636
|
icon: "Plus",
|
|
@@ -5647,14 +5647,14 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5647
5647
|
N(F, {
|
|
5648
5648
|
loading: y(r).tableLoading,
|
|
5649
5649
|
headers: y(i),
|
|
5650
|
-
data: y(
|
|
5650
|
+
data: y(g),
|
|
5651
5651
|
showPagination: !1
|
|
5652
5652
|
}, {
|
|
5653
5653
|
fieldType: k(({ scope: Y }) => [
|
|
5654
5654
|
Se(Qe(T(Y.row)), 1)
|
|
5655
5655
|
]),
|
|
5656
5656
|
useScenes: k(({ scope: Y }) => [
|
|
5657
|
-
(H(!0), Ae(Le, null, Je(h(Y.row), (te, he) => (H(), oe(
|
|
5657
|
+
(H(!0), Ae(Le, null, Je(h(Y.row), (te, he) => (H(), oe(_, {
|
|
5658
5658
|
key: he,
|
|
5659
5659
|
value: te.isFieldCustom ? "C" : "",
|
|
5660
5660
|
offset: [-5, 5]
|
|
@@ -5697,7 +5697,7 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5697
5697
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
5698
5698
|
]),
|
|
5699
5699
|
operate: k(({ scope: Y }) => [
|
|
5700
|
-
N(
|
|
5700
|
+
N(v, {
|
|
5701
5701
|
type: "primary",
|
|
5702
5702
|
text: "",
|
|
5703
5703
|
size: "small",
|
|
@@ -5709,7 +5709,7 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5709
5709
|
])),
|
|
5710
5710
|
_: 2
|
|
5711
5711
|
}, 1032, ["onClick"]),
|
|
5712
|
-
N(
|
|
5712
|
+
N(v, {
|
|
5713
5713
|
type: "danger",
|
|
5714
5714
|
text: "",
|
|
5715
5715
|
size: "small",
|
|
@@ -5730,7 +5730,7 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5730
5730
|
title: y(r).dialogTitle,
|
|
5731
5731
|
configData: l.data,
|
|
5732
5732
|
data: y(r).dialogData,
|
|
5733
|
-
onRefresh:
|
|
5733
|
+
onRefresh: I
|
|
5734
5734
|
}, null, 8, ["visible", "title", "configData", "data"])
|
|
5735
5735
|
]),
|
|
5736
5736
|
_: 1
|
|
@@ -5753,23 +5753,23 @@ const ki = { class: "dialog-footer" }, Ii = {
|
|
|
5753
5753
|
dataBase: "",
|
|
5754
5754
|
api: ""
|
|
5755
5755
|
});
|
|
5756
|
-
let
|
|
5756
|
+
let g = xt((() => ({
|
|
5757
5757
|
loading: !1,
|
|
5758
5758
|
btnLoading: !1
|
|
5759
5759
|
}))()), T = ae([]), h = ae(null), p = ae(s());
|
|
5760
|
-
const
|
|
5760
|
+
const I = (b) => l({ url: `${a}/scripts/getAllDatabaseTable`, method: "get", data: b }), S = async () => {
|
|
5761
5761
|
try {
|
|
5762
|
-
|
|
5763
|
-
const { data: b } = await
|
|
5764
|
-
T.value = b || [],
|
|
5762
|
+
g.loading = !0;
|
|
5763
|
+
const { data: b } = await I();
|
|
5764
|
+
T.value = b || [], g.loading = !1;
|
|
5765
5765
|
} catch (b) {
|
|
5766
|
-
console.error(b),
|
|
5766
|
+
console.error(b), g.loading = !1;
|
|
5767
5767
|
}
|
|
5768
5768
|
};
|
|
5769
5769
|
ct(
|
|
5770
5770
|
() => r.visible,
|
|
5771
5771
|
async (b, f) => {
|
|
5772
|
-
b && await
|
|
5772
|
+
b && await S();
|
|
5773
5773
|
}
|
|
5774
5774
|
);
|
|
5775
5775
|
const O = () => ({
|
|
@@ -5805,21 +5805,21 @@ const ki = { class: "dialog-footer" }, Ii = {
|
|
|
5805
5805
|
b && b.validate(async (f) => {
|
|
5806
5806
|
if (f)
|
|
5807
5807
|
try {
|
|
5808
|
-
|
|
5809
|
-
const { data:
|
|
5808
|
+
g.btnLoading = !0;
|
|
5809
|
+
const { data: v } = await l({ url: `${a}/scripts/getAllColumnsByTableName`, method: "get", params: { tableName: p.value.dataBase } }), w = (v || []).map((_) => {
|
|
5810
5810
|
let P = O();
|
|
5811
|
-
return P.fieldName =
|
|
5811
|
+
return P.fieldName = _.comment, P.fieldKey = _.name, P.fieldType = "string", P;
|
|
5812
5812
|
});
|
|
5813
5813
|
o("refresh", { formList: w }, () => {
|
|
5814
5814
|
m();
|
|
5815
|
-
}),
|
|
5816
|
-
} catch (
|
|
5817
|
-
console.error(
|
|
5815
|
+
}), g.btnLoading = !1;
|
|
5816
|
+
} catch (v) {
|
|
5817
|
+
console.error(v), g.btnLoading = !1;
|
|
5818
5818
|
}
|
|
5819
5819
|
});
|
|
5820
5820
|
};
|
|
5821
5821
|
return (b, f) => {
|
|
5822
|
-
const
|
|
5822
|
+
const v = q("el-option"), w = q("el-select"), _ = q("el-form-item"), P = q("el-input"), F = q("el-form"), G = q("el-button"), Y = q("el-dialog"), te = Vt("loading"), he = Vt("debounce");
|
|
5823
5823
|
return H(), oe(Y, {
|
|
5824
5824
|
"model-value": r.visible,
|
|
5825
5825
|
title: r.title,
|
|
@@ -5833,7 +5833,7 @@ const ki = { class: "dialog-footer" }, Ii = {
|
|
|
5833
5833
|
footer: k(() => [
|
|
5834
5834
|
Te("span", ki, [
|
|
5835
5835
|
N(G, {
|
|
5836
|
-
loading: y(
|
|
5836
|
+
loading: y(g).btnLoading,
|
|
5837
5837
|
onClick: m
|
|
5838
5838
|
}, {
|
|
5839
5839
|
default: k(() => f[3] || (f[3] = [
|
|
@@ -5843,7 +5843,7 @@ const ki = { class: "dialog-footer" }, Ii = {
|
|
|
5843
5843
|
}, 8, ["loading"]),
|
|
5844
5844
|
nt((H(), oe(G, {
|
|
5845
5845
|
type: "primary",
|
|
5846
|
-
loading: y(
|
|
5846
|
+
loading: y(g).btnLoading,
|
|
5847
5847
|
onClick: f[2] || (f[2] = (re) => A(y(h)))
|
|
5848
5848
|
}, {
|
|
5849
5849
|
default: k(() => f[4] || (f[4] = [
|
|
@@ -5864,7 +5864,7 @@ const ki = { class: "dialog-footer" }, Ii = {
|
|
|
5864
5864
|
"label-position": "top"
|
|
5865
5865
|
}, {
|
|
5866
5866
|
default: k(() => [
|
|
5867
|
-
N(
|
|
5867
|
+
N(_, {
|
|
5868
5868
|
label: "数据库",
|
|
5869
5869
|
"label-width": "120",
|
|
5870
5870
|
rules: [{ required: !1, message: "必填项", trigger: "change" }],
|
|
@@ -5879,7 +5879,7 @@ const ki = { class: "dialog-footer" }, Ii = {
|
|
|
5879
5879
|
filterable: ""
|
|
5880
5880
|
}, {
|
|
5881
5881
|
default: k(() => [
|
|
5882
|
-
(H(!0), Ae(Le, null, Je(y(T), (re, Be) => (H(), oe(
|
|
5882
|
+
(H(!0), Ae(Le, null, Je(y(T), (re, Be) => (H(), oe(v, {
|
|
5883
5883
|
key: re,
|
|
5884
5884
|
label: `${re.tableComment}【${re.tableName}】`,
|
|
5885
5885
|
value: re.tableName
|
|
@@ -5890,7 +5890,7 @@ const ki = { class: "dialog-footer" }, Ii = {
|
|
|
5890
5890
|
]),
|
|
5891
5891
|
_: 1
|
|
5892
5892
|
}),
|
|
5893
|
-
N(
|
|
5893
|
+
N(_, {
|
|
5894
5894
|
label: "接口地址(关键字)",
|
|
5895
5895
|
"label-width": "120",
|
|
5896
5896
|
rules: [{ required: !1, message: "必填项", trigger: "change" }],
|
|
@@ -5909,7 +5909,7 @@ const ki = { class: "dialog-footer" }, Ii = {
|
|
|
5909
5909
|
]),
|
|
5910
5910
|
_: 1
|
|
5911
5911
|
}, 8, ["model"])), [
|
|
5912
|
-
[te, y(
|
|
5912
|
+
[te, y(g).loading]
|
|
5913
5913
|
])
|
|
5914
5914
|
]),
|
|
5915
5915
|
_: 1
|
|
@@ -5925,12 +5925,12 @@ const vi = { class: "page-container" }, Li = { class: "submit-box" }, Oi = { cla
|
|
|
5925
5925
|
},
|
|
5926
5926
|
setup(e) {
|
|
5927
5927
|
const t = An(), n = Ja(), a = Re("apiPrefix"), l = Re("request"), o = e;
|
|
5928
|
-
let r = o.id ?? void 0, s = o.pageKey ? o.pageKey : t.params.key, i = ae([]),
|
|
5928
|
+
let r = o.id ?? void 0, s = o.pageKey ? o.pageKey : t.params.key, i = ae([]), g = ae(), T = ae([]), h = ae({}), p = ae(null), I = ae(null), S = ae(null), O = ae({}), R = ae({}), m = ae([]), A = ae([]), b = xt({
|
|
5929
5929
|
pageLoading: !1,
|
|
5930
5930
|
saveBtnLoading: !1,
|
|
5931
5931
|
showDialogInitConfig: !1
|
|
5932
5932
|
});
|
|
5933
|
-
const f = (le) => l({ url: `${a}/pages/getPageDetail?key=${le}`, method: "get" }),
|
|
5933
|
+
const f = (le) => l({ url: `${a}/pages/getPageDetail?key=${le}`, method: "get" }), v = (le) => l({ url: `${a}/pageConfigs/createOrEdit`, method: "post", data: le }), w = (le) => l({ url: `${a}/sysMenus/getAllList`, method: "post", data: le }), _ = (le) => l({ url: `${a}/sysDataDictionaries/getDictionaryByGroup?groupName=${le}`, method: "get" }), P = async () => {
|
|
5934
5934
|
const { data: le } = await w({ dynamicFilters: [{ field: "url", operate: "Equal", value: "/pages" }] });
|
|
5935
5935
|
i.value = le || [];
|
|
5936
5936
|
}, F = async () => {
|
|
@@ -5947,14 +5947,14 @@ const vi = { class: "page-container" }, Li = { class: "submit-box" }, Oi = { cla
|
|
|
5947
5947
|
};
|
|
5948
5948
|
Ie("conditionList", () => T), Ie("pageKey", () => ae(s)), Ie("configData", () => h), qa(async () => {
|
|
5949
5949
|
try {
|
|
5950
|
-
b.pageLoading = !0, await P(),
|
|
5950
|
+
b.pageLoading = !0, await P(), g.value = t.params.id, T.value = (await _("Condition")).data || [], await F(), b.pageLoading = !1;
|
|
5951
5951
|
} catch (le) {
|
|
5952
5952
|
b.pageLoading = !1, console.error(le);
|
|
5953
5953
|
}
|
|
5954
5954
|
});
|
|
5955
5955
|
const Y = (le) => {
|
|
5956
5956
|
const z = i.value.find((He) => He.id == le);
|
|
5957
|
-
n.replace({ path: `/actConfig/${z.key}/${z.id}` }),
|
|
5957
|
+
n.replace({ path: `/actConfig/${z.key}/${z.id}` }), g.value = z.id, s = z.key, F();
|
|
5958
5958
|
}, te = () => {
|
|
5959
5959
|
b.showDialogInitConfig = !0;
|
|
5960
5960
|
}, he = ({ formList: le }, z) => {
|
|
@@ -5965,18 +5965,18 @@ const vi = { class: "page-container" }, Li = { class: "submit-box" }, Oi = { cla
|
|
|
5965
5965
|
key: s,
|
|
5966
5966
|
pageConfig: {
|
|
5967
5967
|
tableConfig: p.value.form,
|
|
5968
|
-
formConfig:
|
|
5969
|
-
buttons:
|
|
5968
|
+
formConfig: I.value.form,
|
|
5969
|
+
buttons: S.value.getTableSelectionRows(),
|
|
5970
5970
|
fields: A.value
|
|
5971
5971
|
}
|
|
5972
5972
|
};
|
|
5973
|
-
le.pageConfig = JSON.stringify(le.pageConfig), b.saveBtnLoading = !0,
|
|
5973
|
+
le.pageConfig = JSON.stringify(le.pageConfig), b.saveBtnLoading = !0, v(le).then((z) => {
|
|
5974
5974
|
Pe({ title: "提示", message: "保存成功", type: "success", duration: 2500 }), G(), b.saveBtnLoading = !1;
|
|
5975
5975
|
}).catch((z) => {
|
|
5976
5976
|
b.saveBtnLoading = !1;
|
|
5977
5977
|
});
|
|
5978
5978
|
}, Be = async () => {
|
|
5979
|
-
Promise.all([p.value.formRef.validate(),
|
|
5979
|
+
Promise.all([p.value.formRef.validate(), I.value.formRef.validate()]).then((le) => {
|
|
5980
5980
|
le.every((z) => z) && re();
|
|
5981
5981
|
}).catch((le) => le);
|
|
5982
5982
|
};
|
|
@@ -6016,8 +6016,8 @@ const vi = { class: "page-container" }, Li = { class: "submit-box" }, Oi = { cla
|
|
|
6016
6016
|
]),
|
|
6017
6017
|
N(we, {
|
|
6018
6018
|
class: "menu-select",
|
|
6019
|
-
modelValue: y(
|
|
6020
|
-
"onUpdate:modelValue": z[1] || (z[1] = (fe) => It(
|
|
6019
|
+
modelValue: y(g),
|
|
6020
|
+
"onUpdate:modelValue": z[1] || (z[1] = (fe) => It(g) ? g.value = fe : g = fe),
|
|
6021
6021
|
placeholder: "菜单切换",
|
|
6022
6022
|
clearable: "",
|
|
6023
6023
|
filterable: "",
|
|
@@ -6074,7 +6074,7 @@ const vi = { class: "page-container" }, Li = { class: "submit-box" }, Oi = { cla
|
|
|
6074
6074
|
default: k(() => [
|
|
6075
6075
|
N(Ai, {
|
|
6076
6076
|
ref_key: "configFormRef",
|
|
6077
|
-
ref:
|
|
6077
|
+
ref: I,
|
|
6078
6078
|
modelValue: y(R),
|
|
6079
6079
|
"onUpdate:modelValue": z[4] || (z[4] = (fe) => It(R) ? R.value = fe : R = fe)
|
|
6080
6080
|
}, null, 8, ["modelValue"])
|
|
@@ -6088,7 +6088,7 @@ const vi = { class: "page-container" }, Li = { class: "submit-box" }, Oi = { cla
|
|
|
6088
6088
|
default: k(() => [
|
|
6089
6089
|
N(yi, {
|
|
6090
6090
|
ref_key: "configBtnsRef",
|
|
6091
|
-
ref:
|
|
6091
|
+
ref: S,
|
|
6092
6092
|
modelValue: y(m),
|
|
6093
6093
|
"onUpdate:modelValue": z[5] || (z[5] = (fe) => It(m) ? m.value = fe : m = fe)
|
|
6094
6094
|
}, null, 8, ["modelValue"])
|
|
@@ -6215,22 +6215,24 @@ const vi = { class: "page-container" }, Li = { class: "submit-box" }, Oi = { cla
|
|
|
6215
6215
|
}
|
|
6216
6216
|
}, Ga = { ActPage: Pl, ActConfig: Ul }, ou = {
|
|
6217
6217
|
install(e, t) {
|
|
6218
|
-
var
|
|
6218
|
+
var p;
|
|
6219
6219
|
const {
|
|
6220
6220
|
modules: n,
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
},
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6221
|
+
apiPrefix: a,
|
|
6222
|
+
request: l,
|
|
6223
|
+
themeColor: o,
|
|
6224
|
+
cacheTokenType: r = "sessionStorage",
|
|
6225
|
+
cookieStorage: s,
|
|
6226
|
+
language: { messages: i = {}, en: g = "zhCn" }
|
|
6227
|
+
} = t, T = {
|
|
6228
|
+
act: Object.assign(_n[g].act, ((p = i[g]) == null ? void 0 : p.act) ?? {})
|
|
6229
|
+
}, h = yl({
|
|
6230
|
+
locale: g,
|
|
6231
|
+
fallbackLocale: g,
|
|
6232
|
+
messages: { ..._n, [g]: T }
|
|
6231
6233
|
});
|
|
6232
|
-
e.use(
|
|
6233
|
-
e.component(
|
|
6234
|
+
e.use(h), e.provide("actModules", n), e.provide("themeColor", o), e.provide("apiPrefix", a || "/api/v1"), e.provide("request", l), e.provide("cacheTokenType", r), e.provide("cookieStorage", s), e.directive("debounce", Di), Object.keys(Ga).forEach((I) => {
|
|
6235
|
+
e.component(I, Ga[I]);
|
|
6234
6236
|
});
|
|
6235
6237
|
}
|
|
6236
6238
|
}, ru = {
|