act-plus 1.1.76 → 1.1.78
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 +6 -6
- package/lib/{dialogAddField-a77ac6b5.js → dialogAddField-6b36374f.js} +2 -2
- package/lib/{dialogConfigBtn-eebcdf33.js → dialogConfigBtn-bc3654e4.js} +2 -2
- package/lib/{dialogSiteComponentsParams-f85afc5d.js → dialogSiteComponentsParams-50ddae0f.js} +1 -1
- package/lib/{index-af485fe8.js → index-07ea7c6f.js} +1 -1
- package/lib/{index-49141176.js → index-4b01c50e.js} +1 -1
- package/lib/{index-b0a25bbc.js → index-7c99a393.js} +2 -2
- package/lib/{index-77ef0d15.js → index-96a5d15c.js} +1 -1
- package/lib/{index-581c47e6.js → index-9b985e07.js} +1 -1
- package/lib/{index-2426df0a.js → index-ada2bff9.js} +1 -1
- package/lib/{index-a7bca3db.js → index-c5b44aa1.js} +1 -1
- package/lib/{index-9744cb23.js → index-c69e0f9a.js} +462 -455
- package/lib/{index-b7b9f03f.js → index-d37c9fc1.js} +1 -1
- package/package.json +1 -1
- package/style.css +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, S = () => l, I = () => 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,19 +177,19 @@ 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:
|
|
192
|
+
column: S,
|
|
193
193
|
peekOffset: I,
|
|
194
194
|
charAt: O,
|
|
195
195
|
currentChar: R,
|
|
@@ -197,7 +197,7 @@ function po(e) {
|
|
|
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,7 +231,7 @@ 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 S = (d) => p(
|
|
235
235
|
d,
|
|
236
236
|
13
|
|
237
237
|
/* TokenTypes.EOF */
|
|
@@ -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;
|
|
@@ -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) || S(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) || S(c);
|
|
561
561
|
if (c.inLinked)
|
|
562
|
-
return Ke(d, c) ||
|
|
562
|
+
return Ke(d, c) || S(c);
|
|
563
563
|
switch (d.currentChar()) {
|
|
564
564
|
case "{":
|
|
565
|
-
return ze(d, c) ||
|
|
565
|
+
return ze(d, c) || S(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) || S(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 S(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
723
|
function I(m, A, b, f) {
|
|
724
|
-
const
|
|
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 = S(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 = S(m);
|
|
736
|
+
return A.currentType === 13 ? v : I(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 S() {
|
|
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: S,
|
|
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,7 +1545,7 @@ function gr(e) {
|
|
|
1545
1545
|
]();
|
|
1546
1546
|
}
|
|
1547
1547
|
};
|
|
1548
|
-
function
|
|
1548
|
+
function S() {
|
|
1549
1549
|
const I = e[n + 1];
|
|
1550
1550
|
if (a === 5 && I === "'" || a === 6 && I === '"')
|
|
1551
1551
|
return n++, s = "\\" + I, p[
|
|
@@ -1554,8 +1554,8 @@ function gr(e) {
|
|
|
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 === "\\" && S())) {
|
|
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, S = ce(e.fallbackWarn) || Qt(e.fallbackWarn) ? e.fallbackWarn : !0, I = !!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,11 +1641,11 @@ 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:
|
|
1648
|
+
fallbackWarn: S,
|
|
1649
1649
|
fallbackFormat: I,
|
|
1650
1650
|
unresolving: O,
|
|
1651
1651
|
postTranslation: R,
|
|
@@ -1653,9 +1653,9 @@ function vr(e = {}) {
|
|
|
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, S = ce(T.fallbackWarn) ? T.fallbackWarn : e.fallbackWarn, I = !!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(S, 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)), I ? 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, S = ce(T.fallbackWarn) ? T.fallbackWarn : e.fallbackWarn, I = !!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(S, 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)), I ? 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, S = ne(e.processor) && pe(e.processor.interpolate) ? e.processor.interpolate : Fr, I = 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
1914
|
type: I,
|
|
1915
|
-
interpolate:
|
|
1915
|
+
interpolate: S,
|
|
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, S = !!g.resolvedMessage, I = B(g.default) || ce(g.default) ? ce(g.default) ? o ? i : () => i : g.default : n ? o ? i : () => i : null, O = n || I != null && (B(I) || pe(I)), R = qn(e, g);
|
|
1924
|
+
p && Br(g);
|
|
1925
|
+
let [m, A, b] = S ? [
|
|
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 (!S && !(B(f) || _t(f) || We(f)) && O && (f = I, v = f), !S && (!(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,16 +1956,16 @@ 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, S = null, I = 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
1971
|
from: I,
|
|
@@ -1975,20 +1975,20 @@ function ul(e, t, n, a, l, o) {
|
|
|
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)), (S = i(h, t)) === null && (S = h[t]), process.env.NODE_ENV !== "production" && Xe) {
|
|
1979
|
+
const v = window.performance.now(), w = e.__v_emitter;
|
|
1980
|
+
w && A && S && w.emit("message-resolve", {
|
|
1981
1981
|
type: "message-resolve",
|
|
1982
1982
|
key: t,
|
|
1983
|
-
message:
|
|
1984
|
-
time:
|
|
1983
|
+
message: S,
|
|
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(S) || _t(S) || We(S))
|
|
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 && (S = v);
|
|
2000
2000
|
}
|
|
2001
2001
|
I = O;
|
|
2002
2002
|
}
|
|
2003
|
-
return [
|
|
2003
|
+
return [S, 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(), S = e.__v_emitter;
|
|
2020
|
+
S && i && S.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,
|
|
2084
|
+
messages: (S, I) => {
|
|
2085
|
+
let O = r(n, S);
|
|
2086
2086
|
if (O == null && (T || I)) {
|
|
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
|
+
S,
|
|
2091
2091
|
t,
|
|
2092
2092
|
s,
|
|
2093
2093
|
i,
|
|
2094
|
-
|
|
2094
|
+
g
|
|
2095
2095
|
);
|
|
2096
|
-
O = r(R,
|
|
2096
|
+
O = r(R, S);
|
|
2097
2097
|
}
|
|
2098
2098
|
if (B(O) || _t(O)) {
|
|
2099
2099
|
let R = !1;
|
|
2100
|
-
const A = cl(e,
|
|
2100
|
+
const A = cl(e, S, t, O, S, () => {
|
|
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, S = t ? t.fallbackWarn : ce(e.fallbackWarn) || Qt(e.fallbackWarn) ? e.fallbackWarn : !0, I = 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: S,
|
|
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,18 +2414,18 @@ 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) && (I && (yn(
|
|
2424
|
+
if (process.env.NODE_ENV !== "production" && t && B(rt) && dt(ie, on) && (I && (yn(S, 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 } =
|
|
2428
|
+
const { __v_emitter: Pt } = _;
|
|
2429
2429
|
Pt && I && Pt.emit("fallback", {
|
|
2430
2430
|
type: ie,
|
|
2431
2431
|
key: rt,
|
|
@@ -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,13 +2578,13 @@ 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 S;
|
|
2585
2585
|
},
|
|
2586
2586
|
set fallbackWarn(C) {
|
|
2587
|
-
|
|
2587
|
+
S = C, _.fallbackWarn = S;
|
|
2588
2588
|
},
|
|
2589
2589
|
get fallbackRoot() {
|
|
2590
2590
|
return I;
|
|
@@ -2596,19 +2596,19 @@ function Xn(e = {}) {
|
|
|
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,13 +2887,13 @@ 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 : {},
|
|
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, S = ce(e.sync) ? e.sync : !0;
|
|
2891
2891
|
let I = e.messages;
|
|
2892
2892
|
if (ne(e.sharedMessages)) {
|
|
2893
|
-
const
|
|
2894
|
-
I = Object.keys(
|
|
2895
|
-
const F =
|
|
2896
|
-
return Ne(F,
|
|
2893
|
+
const v = e.sharedMessages;
|
|
2894
|
+
I = Object.keys(v).reduce((_, P) => {
|
|
2895
|
+
const F = _[P] || (_[P] = {});
|
|
2896
|
+
return Ne(F, v[P]), _;
|
|
2897
2897
|
}, I || {});
|
|
2898
2898
|
}
|
|
2899
2899
|
const { __i18n: O, __root: R, __injectWithOption: m } = e, A = e.datetimeFormats, b = e.numberFormats, f = e.flatJson;
|
|
@@ -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: S,
|
|
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, S) => n.includes(S) ? Ne(de(), p, { [S]: e.format[S] }) : p, de()));
|
|
3232
3232
|
const i = a(e.value, r, s);
|
|
3233
|
-
let
|
|
3234
|
-
Ee(i) ?
|
|
3235
|
-
const I = l[p.type], O = I ? I({ [p.type]: p.value, index:
|
|
3236
|
-
return hs(O) && (O[0].key = `${p.type}-${
|
|
3237
|
-
}) : B(i) && (
|
|
3233
|
+
let g = [r.key];
|
|
3234
|
+
Ee(i) ? g = i.map((p, S) => {
|
|
3235
|
+
const I = l[p.type], O = I ? I({ [p.type]: p.value, index: S, parts: i }) : [p.value];
|
|
3236
|
+
return hs(O) && (O[0].key = `${p.type}-${S}`), 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, S) {
|
|
3360
|
+
l.set(p, S);
|
|
3361
3361
|
}
|
|
3362
3362
|
function T(p) {
|
|
3363
3363
|
l.delete(p);
|
|
@@ -3368,13 +3368,13 @@ 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, ...S) {
|
|
3372
|
+
if (process.env.NODE_ENV !== "production" && (p.__VUE_I18N__ = h), p.__VUE_I18N_SYMBOL__ = s, p.provide(p.__VUE_I18N_SYMBOL__, h), ne(S[0])) {
|
|
3373
|
+
const R = S[0];
|
|
3374
3374
|
h.__composerExtend = R.__composerExtend, h.__vueI18nExtend = R.__vueI18nExtend;
|
|
3375
3375
|
}
|
|
3376
3376
|
let I = null;
|
|
3377
|
-
!n && a && (I = Ps(p, h.global)), __VUE_I18N_FULL_INSTALL__ && ks(p, h, ...
|
|
3377
|
+
!n && a && (I = Ps(p, h.global)), __VUE_I18N_FULL_INSTALL__ && ks(p, h, ...S), __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
|
I && I(), h.dispose(), O();
|
|
@@ -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
|
-
I.setAttribute("href",
|
|
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" }), S = (window.URL || window.webkitURL).createObjectURL(h), I = document.createElement("a");
|
|
3706
|
+
I.setAttribute("href", S);
|
|
3707
|
+
const O = g.lastIndexOf(".");
|
|
3708
|
+
g = `${g.slice(0, O)}_${xe().format("YYYYMMDD") + g.slice(O)}`, I.setAttribute("download", g), document.body.appendChild(I), I.click(), document.body.removeChild(I), window.URL.revokeObjectURL(S);
|
|
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), S = document.createElement("a");
|
|
3732
|
+
S.style.display = "none", S.setAttribute("href", p), S.setAttribute("target", "_blank"), S.setAttribute("download", g), document.body.appendChild(S), S.click(), document.body.removeChild(S), 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-9b985e07.js"),
|
|
3869
3869
|
loadingComponent: fn,
|
|
3870
3870
|
delay: 20
|
|
3871
3871
|
}), l = it({
|
|
3872
|
-
loader: () => import("./index-
|
|
3872
|
+
loader: () => import("./index-07ea7c6f.js"),
|
|
3873
3873
|
loadingComponent: fn,
|
|
3874
3874
|
delay: 20
|
|
3875
3875
|
}), o = it({
|
|
3876
|
-
loader: () => import("./index-
|
|
3876
|
+
loader: () => import("./index-96a5d15c.js"),
|
|
3877
3877
|
loadingComponent: fn,
|
|
3878
3878
|
delay: 20
|
|
3879
|
-
}), r = it(() => import("./index-
|
|
3879
|
+
}), r = it(() => import("./index-7c99a393.js")), s = it(() => import("./index-4b01c50e.js")), { t: i } = Tn(), g = Re("actModules"), T = Re("apiPrefix"), h = Re("request"), p = Re("themeColor"), S = Re("cacheTokenType"), I = 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
|
-
var W,
|
|
3903
|
-
const u = ((
|
|
3904
|
-
dt.value = A.maxHeight > 0 ? A.maxHeight : (J =
|
|
3902
|
+
var W, V, x, M, U, X, J;
|
|
3903
|
+
const u = ((V = (W = Be.value) == null ? void 0 : W.$el) == null ? void 0 : V.offsetHeight) || 0, E = ((M = (x = le.value) == null ? void 0 : x.$el) == null ? void 0 : M.offsetHeight) || 0, Q = ((X = (U = z.value) == null ? void 0 : U.$el) == null ? void 0 : X.offsetHeight) || 0, j = u - E - Q - 6;
|
|
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) => {
|
|
@@ -3911,24 +3911,24 @@ const ii = {
|
|
|
3911
3911
|
}, Rt = (u) => {
|
|
3912
3912
|
if (!u || !u.tableQueryDefaultValue)
|
|
3913
3913
|
return;
|
|
3914
|
-
const
|
|
3914
|
+
const Q = ze(u)["value-format"] || "YYYY-MM-DD HH:mm:ss";
|
|
3915
3915
|
if (u.fieldType == "date" && u.tableQueryDefaultValue == "nowYear")
|
|
3916
|
-
return xe().format(
|
|
3916
|
+
return xe().format(Q);
|
|
3917
3917
|
if (u.fieldType == "date" && u.tableQueryDefaultValue == "yearAgo")
|
|
3918
|
-
return xe().subtract(1, "year").format(
|
|
3918
|
+
return xe().subtract(1, "year").format(Q);
|
|
3919
3919
|
if (u.fieldType == "dateRange" && u.tableQueryDefaultValue.includes("&")) {
|
|
3920
3920
|
const j = u.tableQueryDefaultValue.split("&");
|
|
3921
|
-
return [xe(j[0]).subtract(6, "month").format(
|
|
3921
|
+
return [xe(j[0]).subtract(6, "month").format(Q), xe(j[1]).format(Q)];
|
|
3922
3922
|
}
|
|
3923
3923
|
if (u.fieldType == "dateRange" && u.tableQueryDefaultValue == "yearAgo")
|
|
3924
|
-
return [xe().subtract(1, "year").format(
|
|
3924
|
+
return [xe().subtract(1, "year").format(Q), xe().format(Q)];
|
|
3925
3925
|
if (u.fieldType == "dateRange" && u.tableQueryDefaultValue == "sixMonthsAgo")
|
|
3926
|
-
return [xe().subtract(6, "month").format(
|
|
3926
|
+
return [xe().subtract(6, "month").format(Q), xe().format(Q)];
|
|
3927
3927
|
}, Gt = (u, E) => {
|
|
3928
3928
|
if (!(E.row && Object.keys(E.row).length))
|
|
3929
3929
|
return;
|
|
3930
|
-
const j = (E.row[u.fieldKey] ?? "").split(";"), W = j && j.length ? j[0] : "",
|
|
3931
|
-
return /(gif|jpg|jpeg|png|pdf|bmp|webp|GIF|JPG|PDF|PNG|JPEG)$/.test(
|
|
3930
|
+
const j = (E.row[u.fieldKey] ?? "").split(";"), W = j && j.length ? j[0] : "", V = W.substring(W.lastIndexOf(".") + 1);
|
|
3931
|
+
return /(gif|jpg|jpeg|png|pdf|bmp|webp|GIF|JPG|PDF|PNG|JPEG)$/.test(V);
|
|
3932
3932
|
}, jt = (u, E) => {
|
|
3933
3933
|
if (!(E.row && Object.keys(E.row).length))
|
|
3934
3934
|
return;
|
|
@@ -3937,30 +3937,30 @@ const ii = {
|
|
|
3937
3937
|
}, qt = (u, E) => {
|
|
3938
3938
|
if (!(E.row && Object.keys(E.row).length))
|
|
3939
3939
|
return;
|
|
3940
|
-
const
|
|
3941
|
-
return
|
|
3942
|
-
}, Ze = (u) => u === "true", ze = (u) => new Function("", u.fieldUiProps)() || {}, Ke = async (u, E) => Reflect.has(
|
|
3940
|
+
const Q = E.row[u.fieldKey] ?? null;
|
|
3941
|
+
return Q ? Q.split(";") : [];
|
|
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
|
-
const { customComponentUrl: E, customComponentName:
|
|
3953
|
-
u[
|
|
3952
|
+
const { customComponentUrl: E, customComponentName: Q } = u, j = await Ke(E);
|
|
3953
|
+
u[Q] = j;
|
|
3954
3954
|
}
|
|
3955
3955
|
return u;
|
|
3956
3956
|
})
|
|
3957
3957
|
);
|
|
3958
3958
|
}, d = async () => {
|
|
3959
|
-
const u =
|
|
3959
|
+
const u = _.fields.filter((E) => (E.formCustomComponentes ?? []).some((Q) => Q.permissionCode == "tableShow" && Q.isFieldCustom));
|
|
3960
3960
|
he.value = await Promise.all(
|
|
3961
3961
|
u.map(async (E) => {
|
|
3962
|
-
const
|
|
3963
|
-
return E.customTableHeaderName = W, E.customTableHeaderUrl = j, E[`customTableHeaderInstance_${W}`] =
|
|
3962
|
+
const Q = E.formCustomComponentes.find((x) => x.permissionCode == "tableShow"), { customComponentUrl: j, customComponentName: W } = Q, V = await Ke(j);
|
|
3963
|
+
return E.customTableHeaderName = W, E.customTableHeaderUrl = j, E[`customTableHeaderInstance_${W}`] = V, E.headerItem = {
|
|
3964
3964
|
label: E.fieldName,
|
|
3965
3965
|
prop: E.fieldKey,
|
|
3966
3966
|
align: E.tableCellAlignType,
|
|
@@ -3974,7 +3974,7 @@ const ii = {
|
|
|
3974
3974
|
}, c = (u, E) => {
|
|
3975
3975
|
switch (u) {
|
|
3976
3976
|
case "array":
|
|
3977
|
-
return typeof E == "string" ? E.toString().split().sort((
|
|
3977
|
+
return typeof E == "string" ? E.toString().split().sort((Q, j) => Q.sort - j.sort) : [E];
|
|
3978
3978
|
case "number":
|
|
3979
3979
|
return Number(E);
|
|
3980
3980
|
case "boolean":
|
|
@@ -3984,58 +3984,58 @@ const ii = {
|
|
|
3984
3984
|
}
|
|
3985
3985
|
}, L = (u, E) => E[u.fieldKey] ? E[u.fieldKey].toString().includes("T") ? xe(E[u.fieldKey]).format("YYYY-MM-DD HH:mm:ss") : E[u.fieldKey] : "";
|
|
3986
3986
|
function K(u, E = {}) {
|
|
3987
|
-
return u.replace(/\{([^}]+)\}/g, (
|
|
3987
|
+
return u.replace(/\{([^}]+)\}/g, (Q, j) => {
|
|
3988
3988
|
const W = j.trim().split(".");
|
|
3989
|
-
let
|
|
3989
|
+
let V = E;
|
|
3990
3990
|
for (const x of W) {
|
|
3991
|
-
if (!
|
|
3991
|
+
if (!V || typeof V != "object")
|
|
3992
3992
|
break;
|
|
3993
|
-
|
|
3993
|
+
V = V[x];
|
|
3994
3994
|
}
|
|
3995
|
-
return
|
|
3995
|
+
return V !== void 0 ? V : Q;
|
|
3996
3996
|
});
|
|
3997
3997
|
}
|
|
3998
|
-
const ge = (u) => u ? K(u, A.matchData) : "", be = (u, E,
|
|
3998
|
+
const ge = (u) => u ? K(u, A.matchData) : "", be = (u, E, Q) => {
|
|
3999
3999
|
switch (u) {
|
|
4000
4000
|
case "LessThanOrEqual":
|
|
4001
|
-
return E <=
|
|
4001
|
+
return E <= Q;
|
|
4002
4002
|
case "LessThan":
|
|
4003
|
-
return E <
|
|
4003
|
+
return E < Q;
|
|
4004
4004
|
case "GreaterThanOrEqual":
|
|
4005
|
-
return E >=
|
|
4005
|
+
return E >= Q;
|
|
4006
4006
|
case "GreaterThan":
|
|
4007
|
-
return E >
|
|
4007
|
+
return E > Q;
|
|
4008
4008
|
case "NotEqual":
|
|
4009
|
-
return E !=
|
|
4009
|
+
return E != Q;
|
|
4010
4010
|
case "Equal":
|
|
4011
|
-
return E ==
|
|
4011
|
+
return E == Q;
|
|
4012
4012
|
default:
|
|
4013
|
-
return E ==
|
|
4013
|
+
return E == Q;
|
|
4014
4014
|
}
|
|
4015
4015
|
}, se = (u, E) => {
|
|
4016
4016
|
if (!u.matchFields.length)
|
|
4017
4017
|
return !0;
|
|
4018
|
-
const
|
|
4018
|
+
const Q = (x) => x.matchType == "default" ? E[x.matchFieldName] : A.matchData[x.matchType][x.matchFieldName];
|
|
4019
4019
|
let W = u.matchFields.reduce((x, M, U) => {
|
|
4020
|
-
const X =
|
|
4020
|
+
const X = Q(M), J = be(
|
|
4021
4021
|
M.matchCondition,
|
|
4022
4022
|
X,
|
|
4023
4023
|
M.fieldValue == "" ? null : M.fieldValue == "true" || M.fieldValue == "false" ? Ze(M.fieldValue) : M.fieldValue
|
|
4024
4024
|
);
|
|
4025
4025
|
return x += J, U !== u.matchFields.length - 1 && (x += M.spliceCondition || "&&"), x;
|
|
4026
|
-
}, "").split("||"),
|
|
4027
|
-
return new Function(`return ${
|
|
4028
|
-
}, C = (u, E) => Object.keys(E).length ? w.value.some((
|
|
4026
|
+
}, "").split("||"), V = W.reduce((x, M, U) => (x += `(${M})`, U < W.length - 1 && (x += "||"), x), "");
|
|
4027
|
+
return new Function(`return ${V}`)();
|
|
4028
|
+
}, C = (u, E) => Object.keys(E).length ? w.value.some((Q) => Q.unique == u.permissionCode) && se(u, E) : !1, D = async (u) => {
|
|
4029
4029
|
try {
|
|
4030
4030
|
f.pageLoading = !0;
|
|
4031
4031
|
const E = A.pageKey ?? O.params.key, {
|
|
4032
|
-
data: { pageConfigs:
|
|
4032
|
+
data: { pageConfigs: Q }
|
|
4033
4033
|
} = await Ye(E);
|
|
4034
|
-
return
|
|
4034
|
+
return _ = Q.pageConfig ? JSON.parse(Q.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
|
}
|
|
4038
|
-
}, ie = async (u = [], E = {},
|
|
4038
|
+
}, ie = async (u = [], E = {}, Q = !0, j = !1) => {
|
|
4039
4039
|
try {
|
|
4040
4040
|
const W = u.filter(
|
|
4041
4041
|
(M) => [
|
|
@@ -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
|
|
4071
|
+
return Q && _.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,53 +4078,53 @@ 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 {
|
|
4096
|
-
const E = (u || []).filter((
|
|
4097
|
-
let j = E.map((
|
|
4098
|
-
const x =
|
|
4096
|
+
const E = (u || []).filter((V) => V.useScenes.some((x) => ["tableShow"].includes(x))).sort((V, x) => V.sort - x.sort), Q = ["editor", "upload", "date"];
|
|
4097
|
+
let j = E.map((V) => {
|
|
4098
|
+
const x = V.formCustomComponentes.some((M) => M.permissionCode == "tableShow" && M.isFieldCustom);
|
|
4099
4099
|
return {
|
|
4100
|
-
label:
|
|
4101
|
-
prop:
|
|
4102
|
-
align:
|
|
4103
|
-
width:
|
|
4104
|
-
minWidth:
|
|
4105
|
-
showOverflowTooltip:
|
|
4106
|
-
sort:
|
|
4107
|
-
render: !!
|
|
4100
|
+
label: V.fieldName,
|
|
4101
|
+
prop: V.fieldKey,
|
|
4102
|
+
align: V.tableCellAlignType,
|
|
4103
|
+
width: V.tableCellWidthType == "default" ? V.tableCellWidth : "",
|
|
4104
|
+
minWidth: V.tableCellWidthType == "min" ? V.tableCellWidth : "",
|
|
4105
|
+
showOverflowTooltip: V.isTableCellOverflowTooltip || !1,
|
|
4106
|
+
sort: V.isTableCellSort || !1,
|
|
4107
|
+
render: !!V.fieldRequestUrl || V.tableCellContentType == "link" || Q.includes(V.fieldType),
|
|
4108
4108
|
isCustomTableHeader: x
|
|
4109
4109
|
};
|
|
4110
4110
|
});
|
|
4111
|
-
|
|
4112
|
-
const W = G.value.filter((
|
|
4113
|
-
|
|
4114
|
-
(
|
|
4111
|
+
_.tableConfig.isSerialNumber && j.unshift({ prop: "serialNumber", width: 80 }), _.tableConfig.isCheckRow && j.unshift({ prop: "checkbox", width: 50 });
|
|
4112
|
+
const W = G.value.filter((V) => w.value.some((x) => x.unique == V.permissionCode));
|
|
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
|
+
(V) => !!V.fieldRequestUrl && V.useScenes.includes("tableShow") || V.tableCellContentType == "link" || Q.includes(V.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;
|
|
4125
|
-
const
|
|
4126
|
-
if (W.fieldType === "date" &&
|
|
4127
|
-
const M =
|
|
4125
|
+
const V = ze(W);
|
|
4126
|
+
if (W.fieldType === "date" && V["value-format"] !== "YYYY") {
|
|
4127
|
+
const M = V != null && V.dayJsType ? zs[(x = W.fieldUiProps) == null ? void 0 : x.dayJsType] : "day", U = V["value-format"] || "YYYY-MM-DD HH:mm:ss";
|
|
4128
4128
|
j = [
|
|
4129
4129
|
...j,
|
|
4130
4130
|
{ field: W.fieldKey, operate: "GreaterThanOrEqual", value: xe(W[E]).startOf(M).format(U) },
|
|
@@ -4160,27 +4160,27 @@ const ii = {
|
|
|
4160
4160
|
}, []) : [], Ml = (u, E) => {
|
|
4161
4161
|
if (!u.dataList || !Reflect.has(E, u.fieldKey))
|
|
4162
4162
|
return "";
|
|
4163
|
-
const
|
|
4164
|
-
if (!
|
|
4163
|
+
const Q = E[u.fieldKey];
|
|
4164
|
+
if (!Q && Q !== 0 && Q !== !1)
|
|
4165
4165
|
return "";
|
|
4166
4166
|
const j = ze(u), W = Object.assign({ key: "key", value: "value" }, j.props || {});
|
|
4167
|
-
return ["virtualizedSelect", "virtualizedMultipleSelect"].includes(u.fieldType) && (W.key = W.label), ["multipleSelect", "select", "switch", "virtualizedSelect", "virtualizedMultipleSelect", "selectIcon"].includes(u.fieldType) ? (u.dataList || []).filter((
|
|
4168
|
-
const x = u.fieldType === "selectIcon" ? `btn-${
|
|
4169
|
-
return Array.isArray(
|
|
4170
|
-
}).map((
|
|
4167
|
+
return ["virtualizedSelect", "virtualizedMultipleSelect"].includes(u.fieldType) && (W.key = W.label), ["multipleSelect", "select", "switch", "virtualizedSelect", "virtualizedMultipleSelect", "selectIcon"].includes(u.fieldType) ? (u.dataList || []).filter((V) => {
|
|
4168
|
+
const x = u.fieldType === "selectIcon" ? `btn-${V[W.value]}` : V[W.value], M = x == "true" || x == "false" ? Ze(x) : x;
|
|
4169
|
+
return Array.isArray(Q) ? Q.some((U) => U == x == U) : typeof Q == "string" ? Q.split(";").includes(M) : Q == M;
|
|
4170
|
+
}).map((V) => V[W.key]).join(";") : Q;
|
|
4171
4171
|
}, Ge = async (u = []) => {
|
|
4172
4172
|
try {
|
|
4173
4173
|
f.tableLoading = !0;
|
|
4174
4174
|
const E = A.defaultParams.filter(
|
|
4175
|
-
(
|
|
4176
|
-
),
|
|
4177
|
-
field:
|
|
4178
|
-
operate:
|
|
4179
|
-
value: c(
|
|
4180
|
-
})), j = [...E, ...
|
|
4181
|
-
|
|
4175
|
+
(V) => !(_.fields ?? []).some((x) => x.fieldKey === V.field && x.tableQueryCondition === V.operate && x.useScenes.includes("tableSearch"))
|
|
4176
|
+
), Q = _.tableConfig.defaultParams.map((V) => ({
|
|
4177
|
+
field: V.submitFieldName,
|
|
4178
|
+
operate: V.matchValue,
|
|
4179
|
+
value: c(V.submitFieldType, V.defaultValue)
|
|
4180
|
+
})), j = [...E, ...Q, ...Pt(u)];
|
|
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,24 @@ 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(
|
|
4203
|
-
let
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4202
|
+
await d(), await Jt(), await ie(_.fields.filter((V) => V.useScenes.some((x) => ["tableSearch", "tableShow"].includes(x)))), v.value = "success";
|
|
4203
|
+
let Q = "";
|
|
4204
|
+
if (S === "sessionStorage")
|
|
4205
|
+
Q = sessionStorage.getItem("accessToken");
|
|
4206
|
+
else {
|
|
4207
|
+
const V = I.getPrefix();
|
|
4208
|
+
Q = I.getItemValue(`${V}accessToken`);
|
|
4209
|
+
}
|
|
4210
|
+
const W = JSON.parse(Gs.decode(Q.split(".")[1]))["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"];
|
|
4211
|
+
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
4212
|
} catch (u) {
|
|
4208
|
-
console.error(u),
|
|
4213
|
+
console.error(u), v.value = "end";
|
|
4209
4214
|
}
|
|
4210
4215
|
};
|
|
4211
4216
|
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(
|
|
@@ -4220,7 +4225,7 @@ const ii = {
|
|
|
4220
4225
|
}, Bl = (u) => {
|
|
4221
4226
|
m("operate", u), Ge(P);
|
|
4222
4227
|
}, rn = (u, E) => {
|
|
4223
|
-
const { exportFile:
|
|
4228
|
+
const { exportFile: Q, importFile: j, downloadFile: W } = Zs();
|
|
4224
4229
|
if (u.isCustomBtn) {
|
|
4225
4230
|
if (u.customType == "component" && !Reflect.has(u, [u.customComponentName])) {
|
|
4226
4231
|
Pe({
|
|
@@ -4233,7 +4238,7 @@ const ii = {
|
|
|
4233
4238
|
}
|
|
4234
4239
|
if (u.customType == "code") {
|
|
4235
4240
|
try {
|
|
4236
|
-
new Function("router", "route", "data", "configItem", u.codeStr)(R, O, E, u);
|
|
4241
|
+
new Function("router", "route", "data", "configItem", "cookieStorage", u.codeStr)(R, O, E, u, I);
|
|
4237
4242
|
} catch (M) {
|
|
4238
4243
|
console.error(M);
|
|
4239
4244
|
}
|
|
@@ -4291,7 +4296,7 @@ const ii = {
|
|
|
4291
4296
|
},
|
|
4292
4297
|
responseType: ["exportUrl"].includes(u.submitWay) ? "json" : "blob"
|
|
4293
4298
|
}).then((X) => {
|
|
4294
|
-
u.submitWay == "exportUrl" ? W(h, X.data) :
|
|
4299
|
+
u.submitWay == "exportUrl" ? W(h, X.data) : Q(X), m("operate", u), u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !1 : E[`loading${u.permissionCode}`] = !1;
|
|
4295
4300
|
}).catch((X) => {
|
|
4296
4301
|
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !1 : E[`loading${u.permissionCode}`] = !1;
|
|
4297
4302
|
});
|
|
@@ -4344,7 +4349,7 @@ const ii = {
|
|
|
4344
4349
|
return M;
|
|
4345
4350
|
}, {});
|
|
4346
4351
|
if (u.btnPostion === "header" && u.isPromptVerificationSelectTable == "1") {
|
|
4347
|
-
if (!
|
|
4352
|
+
if (!_.tableConfig.isCheckRow) {
|
|
4348
4353
|
Pe({ title: i("act.tip"), message: i("act.configTableRow"), type: "warning", duration: 2500 });
|
|
4349
4354
|
return;
|
|
4350
4355
|
}
|
|
@@ -4370,7 +4375,7 @@ const ii = {
|
|
|
4370
4375
|
}
|
|
4371
4376
|
if (u.submitWay === "messageBox") {
|
|
4372
4377
|
if (u.btnPostion === "header" && u.isPromptVerificationSelectTable == "1") {
|
|
4373
|
-
if (!
|
|
4378
|
+
if (!_.tableConfig.isCheckRow) {
|
|
4374
4379
|
Pe({ title: i("act.tip"), message: i("act.configTableRow"), type: "warning", duration: 2500 });
|
|
4375
4380
|
return;
|
|
4376
4381
|
}
|
|
@@ -4413,7 +4418,7 @@ const ii = {
|
|
|
4413
4418
|
return;
|
|
4414
4419
|
}
|
|
4415
4420
|
if (u.btnPostion === "header" && u.submitWay === "dialog" && (u.submitFields || []).some((x) => x.submitFieldMatchOrigin === "selections") && !f.tableSelection.length) {
|
|
4416
|
-
if (!
|
|
4421
|
+
if (!_.tableConfig.isCheckRow) {
|
|
4417
4422
|
Pe({ title: i("act.tip"), message: i("act.configTableRow"), type: "warning", duration: 2500 });
|
|
4418
4423
|
return;
|
|
4419
4424
|
}
|
|
@@ -4423,8 +4428,8 @@ const ii = {
|
|
|
4423
4428
|
}
|
|
4424
4429
|
return;
|
|
4425
4430
|
}
|
|
4426
|
-
let
|
|
4427
|
-
if (!
|
|
4431
|
+
let V = (_.fields || []).filter((x) => x.useScenes.includes(u.permissionCode)).map((x) => (x.customFiledsComponentes = x.formCustomComponentes.find((M) => M.permissionCode == u.permissionCode) || {}, x));
|
|
4432
|
+
if (!V.length) {
|
|
4428
4433
|
Pe({ title: i("act.tip"), message: i("act.buttonBindField"), type: "warning", duration: 2500 });
|
|
4429
4434
|
return;
|
|
4430
4435
|
}
|
|
@@ -4433,20 +4438,20 @@ const ii = {
|
|
|
4433
4438
|
dataItem: { ...u },
|
|
4434
4439
|
rowData: { ...E },
|
|
4435
4440
|
selections: f.tableSelection || [],
|
|
4436
|
-
formConfig:
|
|
4437
|
-
formList:
|
|
4441
|
+
formConfig: _.formConfig,
|
|
4442
|
+
formList: V
|
|
4438
4443
|
}, f.showFormDialog = !0;
|
|
4439
4444
|
return;
|
|
4440
4445
|
}
|
|
4441
|
-
}, xl = (u, E,
|
|
4442
|
-
m("onClickRow", u, E,
|
|
4446
|
+
}, xl = (u, E, Q) => {
|
|
4447
|
+
m("onClickRow", u, E, Q);
|
|
4443
4448
|
}, Vl = (u, E) => {
|
|
4444
4449
|
we.value = u, m("changeExpansionRow", u, E);
|
|
4445
4450
|
}, Ql = (u, E) => {
|
|
4446
4451
|
f.editorDialogTitle = `${i("act.preview")}${u.fieldName}`, f.dialogData = { ...E, editorContent: E[u.fieldKey] }, f.showEditorPreDialog = !0;
|
|
4447
4452
|
};
|
|
4448
4453
|
return t({ loadData: na, getDynamicFiltersData: Ct, getTableData: Ge, getTableSelection: Kt, setTableSelection: fe }), (u, E) => {
|
|
4449
|
-
const
|
|
4454
|
+
const Q = q("el-table-column"), j = q("el-image"), W = q("el-link"), V = q("a-svg-icon"), x = q("el-button"), M = q("el-dropdown-item"), U = q("el-dropdown-menu"), X = q("el-dropdown"), J = q("el-empty"), ye = q("el-card"), et = Vt("debounce"), ke = Vt("loading");
|
|
4450
4455
|
return nt((H(), oe(ye, {
|
|
4451
4456
|
class: "act-module",
|
|
4452
4457
|
ref_key: "actModuleRef",
|
|
@@ -4456,18 +4461,18 @@ const ii = {
|
|
|
4456
4461
|
default: k(() => {
|
|
4457
4462
|
var je, la;
|
|
4458
4463
|
return [
|
|
4459
|
-
y(
|
|
4464
|
+
y(v) === "success" ? (H(), Ae(Le, { key: 0 }, [
|
|
4460
4465
|
N(y(a), {
|
|
4461
4466
|
ref_key: "queryModuleRef",
|
|
4462
4467
|
ref: le,
|
|
4463
|
-
data: y(
|
|
4468
|
+
data: y(_),
|
|
4464
4469
|
onReset: aa,
|
|
4465
4470
|
onSearch: aa
|
|
4466
4471
|
}, null, 8, ["data"]),
|
|
4467
4472
|
N(y(l), {
|
|
4468
4473
|
ref_key: "headerButtonsModuleRef",
|
|
4469
4474
|
ref: z,
|
|
4470
|
-
data: y(
|
|
4475
|
+
data: y(_),
|
|
4471
4476
|
onOnOperate: rn
|
|
4472
4477
|
}, null, 8, ["data"]),
|
|
4473
4478
|
N(y(o), {
|
|
@@ -4481,7 +4486,7 @@ const ii = {
|
|
|
4481
4486
|
"onUpdate:selection": E[1] || (E[1] = (Z) => y(f).tableSelection = Z),
|
|
4482
4487
|
headers: y(F),
|
|
4483
4488
|
data: y(Y),
|
|
4484
|
-
showPagination: (la = (je = y(
|
|
4489
|
+
showPagination: (la = (je = y(_)) == null ? void 0 : je.tableConfig) == null ? void 0 : la.isPagination,
|
|
4485
4490
|
tableConfig: A.tableConfig,
|
|
4486
4491
|
maxHeight: dt.value,
|
|
4487
4492
|
onRefresh: Dt,
|
|
@@ -4509,7 +4514,7 @@ const ii = {
|
|
|
4509
4514
|
onClick: (Nt) => rn($, Z.row)
|
|
4510
4515
|
}, {
|
|
4511
4516
|
default: k(() => [
|
|
4512
|
-
$.btnIcon && !Z.row[`loading${$.permissionCode}`] ? (H(), oe(
|
|
4517
|
+
$.btnIcon && !Z.row[`loading${$.permissionCode}`] ? (H(), oe(V, {
|
|
4513
4518
|
key: 0,
|
|
4514
4519
|
class: "mr2",
|
|
4515
4520
|
name: $.btnIcon,
|
|
@@ -4535,7 +4540,7 @@ const ii = {
|
|
|
4535
4540
|
onClick: (Nt) => rn($, Z.row)
|
|
4536
4541
|
}, {
|
|
4537
4542
|
default: k(() => [
|
|
4538
|
-
$.btnIcon && !Z.row[`loading${$.permissionCode}`] ? (H(), oe(
|
|
4543
|
+
$.btnIcon && !Z.row[`loading${$.permissionCode}`] ? (H(), oe(V, {
|
|
4539
4544
|
key: 0,
|
|
4540
4545
|
class: "mr2",
|
|
4541
4546
|
name: $.btnIcon,
|
|
@@ -4581,7 +4586,7 @@ const ii = {
|
|
|
4581
4586
|
loading: Z.row[`loading${$.permissionCode}`]
|
|
4582
4587
|
}, {
|
|
4583
4588
|
default: k(() => [
|
|
4584
|
-
$.btnIcon && !Z.row[`loading${$.permissionCode}`] ? (H(), oe(
|
|
4589
|
+
$.btnIcon && !Z.row[`loading${$.permissionCode}`] ? (H(), oe(V, {
|
|
4585
4590
|
key: 0,
|
|
4586
4591
|
class: "mr2",
|
|
4587
4592
|
name: $.btnIcon,
|
|
@@ -4606,7 +4611,7 @@ const ii = {
|
|
|
4606
4611
|
loading: Z.row[`loading${$.permissionCode}`]
|
|
4607
4612
|
}, {
|
|
4608
4613
|
default: k(() => [
|
|
4609
|
-
$.btnIcon && !Z.row[`loading${$.permissionCode}`] ? (H(), oe(
|
|
4614
|
+
$.btnIcon && !Z.row[`loading${$.permissionCode}`] ? (H(), oe(V, {
|
|
4610
4615
|
key: 0,
|
|
4611
4616
|
class: "mr2",
|
|
4612
4617
|
name: $.btnIcon,
|
|
@@ -4647,9 +4652,9 @@ const ii = {
|
|
|
4647
4652
|
Z[`customTableHeaderInstance_${Z.customTableHeaderName}`] ? (H(), oe(Nn(Z[`customTableHeaderInstance_${Z.customTableHeaderName}`]), {
|
|
4648
4653
|
key: 0,
|
|
4649
4654
|
data: Z,
|
|
4650
|
-
configData: y(
|
|
4655
|
+
configData: y(_),
|
|
4651
4656
|
rowData: y(we)
|
|
4652
|
-
}, null, 8, ["data", "configData", "rowData"])) : (H(), oe(
|
|
4657
|
+
}, null, 8, ["data", "configData", "rowData"])) : (H(), oe(Q, {
|
|
4653
4658
|
key: 1,
|
|
4654
4659
|
label: Z.fieldName + y(i)("act.customTableHeader"),
|
|
4655
4660
|
width: "260"
|
|
@@ -4700,12 +4705,12 @@ const ii = {
|
|
|
4700
4705
|
title: y(f).editorDialogTitle,
|
|
4701
4706
|
data: y(f).dialogData
|
|
4702
4707
|
}, null, 8, ["visible", "title", "data"]),
|
|
4703
|
-
y(
|
|
4708
|
+
y(v) === "end" ? (H(), oe(J, {
|
|
4704
4709
|
key: 1,
|
|
4705
4710
|
description: y(i)("act.noConfigPage")
|
|
4706
4711
|
}, {
|
|
4707
4712
|
image: k(() => [
|
|
4708
|
-
N(
|
|
4713
|
+
N(V, {
|
|
4709
4714
|
name: "config-nodata",
|
|
4710
4715
|
width: "200",
|
|
4711
4716
|
height: "200"
|
|
@@ -4721,7 +4726,7 @@ const ii = {
|
|
|
4721
4726
|
]);
|
|
4722
4727
|
};
|
|
4723
4728
|
}
|
|
4724
|
-
}, Pl = /* @__PURE__ */ wt(fi, [["__scopeId", "data-v-
|
|
4729
|
+
}, Pl = /* @__PURE__ */ wt(fi, [["__scopeId", "data-v-5e51a3ae"]]), Hi = [
|
|
4725
4730
|
{ key: "按钮形式", value: "default" },
|
|
4726
4731
|
{ key: "文字形式", value: "text" }
|
|
4727
4732
|
], Yi = [
|
|
@@ -4848,7 +4853,7 @@ const ii = {
|
|
|
4848
4853
|
},
|
|
4849
4854
|
{ deep: !0, immediate: !0 }
|
|
4850
4855
|
), t({ formRef: o, form: r }), (s, i) => {
|
|
4851
|
-
const
|
|
4856
|
+
const g = q("el-input-number"), T = q("el-form-item"), h = q("el-col"), p = q("el-option"), S = q("el-select"), I = q("el-row"), O = q("el-form"), R = q("el-card");
|
|
4852
4857
|
return H(), oe(R, {
|
|
4853
4858
|
class: "form-card",
|
|
4854
4859
|
shadow: "hover",
|
|
@@ -4869,7 +4874,7 @@ const ii = {
|
|
|
4869
4874
|
default: k(() => [
|
|
4870
4875
|
N(T, { label: "弹窗宽度" }, {
|
|
4871
4876
|
default: k(() => [
|
|
4872
|
-
N(
|
|
4877
|
+
N(g, {
|
|
4873
4878
|
modelValue: y(r).dialogWidth,
|
|
4874
4879
|
"onUpdate:modelValue": i[0] || (i[0] = (m) => y(r).dialogWidth = m),
|
|
4875
4880
|
min: 800
|
|
@@ -4884,7 +4889,7 @@ const ii = {
|
|
|
4884
4889
|
default: k(() => [
|
|
4885
4890
|
N(T, { label: "排版列数" }, {
|
|
4886
4891
|
default: k(() => [
|
|
4887
|
-
N(
|
|
4892
|
+
N(g, {
|
|
4888
4893
|
modelValue: y(r).formRow,
|
|
4889
4894
|
"onUpdate:modelValue": i[1] || (i[1] = (m) => y(r).formRow = m),
|
|
4890
4895
|
min: 1,
|
|
@@ -4900,7 +4905,7 @@ const ii = {
|
|
|
4900
4905
|
default: k(() => [
|
|
4901
4906
|
N(T, { label: "label宽度" }, {
|
|
4902
4907
|
default: k(() => [
|
|
4903
|
-
N(
|
|
4908
|
+
N(g, {
|
|
4904
4909
|
modelValue: y(r).formLabelWidth,
|
|
4905
4910
|
"onUpdate:modelValue": i[2] || (i[2] = (m) => y(r).formLabelWidth = m),
|
|
4906
4911
|
min: 80
|
|
@@ -4919,7 +4924,7 @@ const ii = {
|
|
|
4919
4924
|
prop: "formLabelPosition"
|
|
4920
4925
|
}, {
|
|
4921
4926
|
default: k(() => [
|
|
4922
|
-
N(
|
|
4927
|
+
N(S, {
|
|
4923
4928
|
modelValue: y(r).formLabelPosition,
|
|
4924
4929
|
"onUpdate:modelValue": i[3] || (i[3] = (m) => y(r).formLabelPosition = m),
|
|
4925
4930
|
placeholder: "请选择"
|
|
@@ -4982,9 +4987,9 @@ const bi = {
|
|
|
4982
4987
|
if (h) {
|
|
4983
4988
|
if (!Object.keys(h).length)
|
|
4984
4989
|
return;
|
|
4985
|
-
const
|
|
4990
|
+
const S = { ...h, defaultParams: [...h.defaultParams || []] };
|
|
4986
4991
|
Object.keys(s.value).forEach((I) => {
|
|
4987
|
-
["defaultParams"].includes(I) ? s.value[I] = [...
|
|
4992
|
+
["defaultParams"].includes(I) ? s.value[I] = [...S[I] || []] : I === "tableMoreBtnSplitNumber" ? s.value[I] = Reflect.has(S, "tableMoreBtnSplitNumber") ? S[I] : 0 : I === "headerMoreBtnSplitNumber" ? s.value[I] = Reflect.has(S, "headerMoreBtnSplitNumber") ? S[I] : 0 : I === "isExecuteImmediatelyTableApi" ? s.value[I] = Reflect.has(S, "isExecuteImmediatelyTableApi") ? S[I] : !0 : s.value[I] = S[I];
|
|
4988
4993
|
});
|
|
4989
4994
|
}
|
|
4990
4995
|
},
|
|
@@ -4992,20 +4997,20 @@ const bi = {
|
|
|
4992
4997
|
);
|
|
4993
4998
|
const i = () => {
|
|
4994
4999
|
s.value.defaultParams.push({ submitFieldName: "", defaultValue: "", matchValue: "", submitFieldType: "" });
|
|
4995
|
-
},
|
|
5000
|
+
}, g = (h) => {
|
|
4996
5001
|
s.value.defaultParams.splice(h, 1);
|
|
4997
5002
|
}, T = (h) => {
|
|
4998
5003
|
h || (s.value.pageSize = 10);
|
|
4999
5004
|
};
|
|
5000
5005
|
return t({ formRef: r, form: s }), (h, p) => {
|
|
5001
|
-
const
|
|
5006
|
+
const S = q("el-input"), I = 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
5007
|
return H(), oe(P, {
|
|
5003
5008
|
class: "form-card",
|
|
5004
5009
|
shadow: "hover",
|
|
5005
5010
|
header: "表格配置"
|
|
5006
5011
|
}, {
|
|
5007
5012
|
default: k(() => [
|
|
5008
|
-
N(
|
|
5013
|
+
N(_, {
|
|
5009
5014
|
ref_key: "formRef",
|
|
5010
5015
|
ref: r,
|
|
5011
5016
|
model: y(s),
|
|
@@ -5023,7 +5028,7 @@ const bi = {
|
|
|
5023
5028
|
rules: [{ required: !0, message: "必填项", trigger: "blur" }]
|
|
5024
5029
|
}, {
|
|
5025
5030
|
default: k(() => [
|
|
5026
|
-
N(
|
|
5031
|
+
N(S, {
|
|
5027
5032
|
modelValue: y(s).dataUrl,
|
|
5028
5033
|
"onUpdate:modelValue": p[0] || (p[0] = (F) => y(s).dataUrl = F),
|
|
5029
5034
|
placeholder: "请输入",
|
|
@@ -5064,7 +5069,7 @@ const bi = {
|
|
|
5064
5069
|
prop: "defaultParams." + G + ".submitFieldName"
|
|
5065
5070
|
}, {
|
|
5066
5071
|
default: k(() => [
|
|
5067
|
-
N(
|
|
5072
|
+
N(S, {
|
|
5068
5073
|
modelValue: F.submitFieldName,
|
|
5069
5074
|
"onUpdate:modelValue": (Y) => F.submitFieldName = Y,
|
|
5070
5075
|
placeholder: "请输入",
|
|
@@ -5114,7 +5119,7 @@ const bi = {
|
|
|
5114
5119
|
prop: "defaultParams." + G + ".defaultValue"
|
|
5115
5120
|
}, {
|
|
5116
5121
|
default: k(() => [
|
|
5117
|
-
N(
|
|
5122
|
+
N(S, {
|
|
5118
5123
|
modelValue: F.defaultValue,
|
|
5119
5124
|
"onUpdate:modelValue": (Y) => F.defaultValue = Y,
|
|
5120
5125
|
placeholder: "请输入",
|
|
@@ -5167,7 +5172,7 @@ const bi = {
|
|
|
5167
5172
|
type: "danger",
|
|
5168
5173
|
icon: "Minus",
|
|
5169
5174
|
circle: "",
|
|
5170
|
-
onClick: (Y) =>
|
|
5175
|
+
onClick: (Y) => g(G)
|
|
5171
5176
|
}, null, 8, ["onClick"])
|
|
5172
5177
|
]),
|
|
5173
5178
|
_: 2
|
|
@@ -5181,7 +5186,7 @@ const bi = {
|
|
|
5181
5186
|
default: k(() => [
|
|
5182
5187
|
N(I, { label: "多选列" }, {
|
|
5183
5188
|
default: k(() => [
|
|
5184
|
-
N(
|
|
5189
|
+
N(v, {
|
|
5185
5190
|
modelValue: y(s).isCheckRow,
|
|
5186
5191
|
"onUpdate:modelValue": p[1] || (p[1] = (F) => y(s).isCheckRow = F)
|
|
5187
5192
|
}, null, 8, ["modelValue"])
|
|
@@ -5195,7 +5200,7 @@ const bi = {
|
|
|
5195
5200
|
default: k(() => [
|
|
5196
5201
|
N(I, { label: "操作列" }, {
|
|
5197
5202
|
default: k(() => [
|
|
5198
|
-
N(
|
|
5203
|
+
N(v, {
|
|
5199
5204
|
modelValue: y(s).isOperateRow,
|
|
5200
5205
|
"onUpdate:modelValue": p[2] || (p[2] = (F) => y(s).isOperateRow = F)
|
|
5201
5206
|
}, null, 8, ["modelValue"])
|
|
@@ -5209,7 +5214,7 @@ const bi = {
|
|
|
5209
5214
|
default: k(() => [
|
|
5210
5215
|
N(I, { label: "分页" }, {
|
|
5211
5216
|
default: k(() => [
|
|
5212
|
-
N(
|
|
5217
|
+
N(v, {
|
|
5213
5218
|
modelValue: y(s).isPagination,
|
|
5214
5219
|
"onUpdate:modelValue": p[3] || (p[3] = (F) => y(s).isPagination = F),
|
|
5215
5220
|
onChange: T
|
|
@@ -5224,7 +5229,7 @@ const bi = {
|
|
|
5224
5229
|
default: k(() => [
|
|
5225
5230
|
N(I, { label: "序号列" }, {
|
|
5226
5231
|
default: k(() => [
|
|
5227
|
-
N(
|
|
5232
|
+
N(v, {
|
|
5228
5233
|
modelValue: y(s).isSerialNumber,
|
|
5229
5234
|
"onUpdate:modelValue": p[4] || (p[4] = (F) => y(s).isSerialNumber = F)
|
|
5230
5235
|
}, null, 8, ["modelValue"])
|
|
@@ -5238,7 +5243,7 @@ const bi = {
|
|
|
5238
5243
|
default: k(() => [
|
|
5239
5244
|
N(I, { label: "排序" }, {
|
|
5240
5245
|
default: k(() => [
|
|
5241
|
-
N(
|
|
5246
|
+
N(v, {
|
|
5242
5247
|
modelValue: y(s).isSort,
|
|
5243
5248
|
"onUpdate:modelValue": p[5] || (p[5] = (F) => y(s).isSort = F)
|
|
5244
5249
|
}, null, 8, ["modelValue"])
|
|
@@ -5252,7 +5257,7 @@ const bi = {
|
|
|
5252
5257
|
default: k(() => [
|
|
5253
5258
|
N(I, { label: "展/收查询条件" }, {
|
|
5254
5259
|
default: k(() => [
|
|
5255
|
-
N(
|
|
5260
|
+
N(v, {
|
|
5256
5261
|
modelValue: y(s).isExpandQuery,
|
|
5257
5262
|
"onUpdate:modelValue": p[6] || (p[6] = (F) => y(s).isExpandQuery = F),
|
|
5258
5263
|
onChange: T
|
|
@@ -5267,7 +5272,7 @@ const bi = {
|
|
|
5267
5272
|
default: k(() => [
|
|
5268
5273
|
N(I, { label: "立即执行接口" }, {
|
|
5269
5274
|
default: k(() => [
|
|
5270
|
-
N(
|
|
5275
|
+
N(v, {
|
|
5271
5276
|
modelValue: y(s).isExecuteImmediatelyTableApi,
|
|
5272
5277
|
"onUpdate:modelValue": p[7] || (p[7] = (F) => y(s).isExecuteImmediatelyTableApi = F)
|
|
5273
5278
|
}, null, 8, ["modelValue"])
|
|
@@ -5417,7 +5422,7 @@ const hi = {
|
|
|
5417
5422
|
},
|
|
5418
5423
|
emits: ["update:modelValue"],
|
|
5419
5424
|
setup(e, { expose: t, emit: n }) {
|
|
5420
|
-
const a = An(), l = Re("apiPrefix"), o = Re("request"), r = it(() => import("./dialogConfigBtn-
|
|
5425
|
+
const a = An(), l = Re("apiPrefix"), o = Re("request"), r = it(() => import("./dialogConfigBtn-bc3654e4.js")), s = e, i = () => ({
|
|
5421
5426
|
sort: 0,
|
|
5422
5427
|
permissionCode: null,
|
|
5423
5428
|
requestUrl: "",
|
|
@@ -5444,7 +5449,7 @@ const hi = {
|
|
|
5444
5449
|
tableLoading: !1,
|
|
5445
5450
|
showConfigBtnDialog: !1,
|
|
5446
5451
|
dialogData: {}
|
|
5447
|
-
}))()), h = ae(null), p = 0,
|
|
5452
|
+
}))()), h = ae(null), p = 0, S = ae([]), I = ae([]), O = [
|
|
5448
5453
|
{ prop: "checkbox", width: 60 },
|
|
5449
5454
|
{ prop: "serialNumber", width: 80 },
|
|
5450
5455
|
{ label: "按钮名称", prop: "btnName", minWidth: 200 },
|
|
@@ -5455,36 +5460,36 @@ const hi = {
|
|
|
5455
5460
|
{ label: "排序", prop: "sort", width: 180, render: !0 },
|
|
5456
5461
|
{ label: "操作", prop: "operate", width: 120, render: !0, fixed: "right" }
|
|
5457
5462
|
], R = ae([]);
|
|
5458
|
-
const m = (
|
|
5459
|
-
I.value.includes(
|
|
5460
|
-
}, f = async (
|
|
5463
|
+
const m = (_) => o({ url: `${l}/sysMenus/getAllList`, method: "post", data: _ }), A = (_) => o({ url: `${l}/sysMenus/getMenuOfOperate`, method: "get", params: _ }), b = (_, P) => {
|
|
5464
|
+
I.value.includes(_.permissionCode) || I.value.push(_.permissionCode), Object.assign(R.value[p], _), P(!0);
|
|
5465
|
+
}, f = async (_) => {
|
|
5461
5466
|
try {
|
|
5462
5467
|
T.tableLoading = !0;
|
|
5463
5468
|
const P = s.id ? s.id : a.params.id, { data: F } = await A({ id: P });
|
|
5464
|
-
I.value = (F || []).filter((G) => (
|
|
5465
|
-
let te = i(), he = (
|
|
5469
|
+
I.value = (F || []).filter((G) => (_ || []).some((Y) => Y.permissionCode == G.unique)).map((G) => G.unique), R.value = (F || []).map((G, Y) => {
|
|
5470
|
+
let te = i(), he = (_ || []).find((re) => re.permissionCode == G.unique) || {};
|
|
5466
5471
|
return { ...te, btnIcon: G.icon || "", ...he, btnName: G.name, permissionCode: G.unique, sort: he.sort ? he.sort : (Y + 1) * 10 };
|
|
5467
5472
|
}).sort((G, Y) => G.sort - Y.sort), T.tableLoading = !1;
|
|
5468
5473
|
} catch (P) {
|
|
5469
5474
|
T.tableLoading = !1, console.error(P);
|
|
5470
5475
|
}
|
|
5471
|
-
},
|
|
5472
|
-
Ie("associationMenuList",
|
|
5476
|
+
}, v = () => h.value.getSelectionRows() || [];
|
|
5477
|
+
Ie("associationMenuList", S), Ie("createDefaultButtonItem", i), ct(
|
|
5473
5478
|
() => s.modelValue,
|
|
5474
|
-
async (
|
|
5479
|
+
async (_, P) => {
|
|
5475
5480
|
try {
|
|
5476
5481
|
const F = s.id ? s.id : a.params.id;
|
|
5477
|
-
|
|
5482
|
+
S.value = (await m({ dynamicFilters: [{ field: "parentId", operate: "Equal", value: F }] })).data || [], await f(_);
|
|
5478
5483
|
} catch (F) {
|
|
5479
5484
|
T.tableLoading = !1, console.error(F);
|
|
5480
5485
|
}
|
|
5481
5486
|
},
|
|
5482
5487
|
{ deep: !0 }
|
|
5483
5488
|
);
|
|
5484
|
-
const w = (
|
|
5485
|
-
T.dialogData =
|
|
5489
|
+
const w = (_) => {
|
|
5490
|
+
T.dialogData = _.row, p = _.$index, T.showConfigBtnDialog = !0;
|
|
5486
5491
|
};
|
|
5487
|
-
return t({ getTableSelectionRows:
|
|
5492
|
+
return t({ getTableSelectionRows: v }), (_, P) => {
|
|
5488
5493
|
const F = q("el-tag"), G = q("el-input-number"), Y = q("el-button"), te = q("a-table"), he = q("el-card");
|
|
5489
5494
|
return H(), oe(he, {
|
|
5490
5495
|
class: "form-card",
|
|
@@ -5562,7 +5567,7 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5562
5567
|
},
|
|
5563
5568
|
emits: ["update:modelValue"],
|
|
5564
5569
|
setup(e, { emit: t }) {
|
|
5565
|
-
const n = it(() => import("./dialogAddField-
|
|
5570
|
+
const n = it(() => import("./dialogAddField-6b36374f.js")), a = t, l = e;
|
|
5566
5571
|
Re("configData")();
|
|
5567
5572
|
let r = xt((() => ({
|
|
5568
5573
|
tableLoading: !1,
|
|
@@ -5579,28 +5584,28 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5579
5584
|
// { label: '场景自定义', prop: 'formCustomComponentes', width: 200, render: true },
|
|
5580
5585
|
{ label: "排序", prop: "sort", width: 200, render: !0 },
|
|
5581
5586
|
{ label: "操作", prop: "operate", width: 170, render: !0, fixed: "right" }
|
|
5582
|
-
],
|
|
5587
|
+
], g = ae([]);
|
|
5583
5588
|
_i[0].options.map((b) => ({ btnName: b.key, permissionCode: b.value }));
|
|
5584
5589
|
const T = (b) => {
|
|
5585
5590
|
if (!Reflect.has(b, "fieldType"))
|
|
5586
5591
|
return "";
|
|
5587
|
-
const f = mi.find((
|
|
5592
|
+
const f = mi.find((v) => v.value == b.fieldType);
|
|
5588
5593
|
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(),
|
|
5594
|
+
}, 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(), S = (b, f) => {
|
|
5590
5595
|
if (s == null) {
|
|
5591
|
-
const
|
|
5592
|
-
|
|
5596
|
+
const v = g.value.length;
|
|
5597
|
+
g.value.push({ ...b, sort: (v + 1) * 10 });
|
|
5593
5598
|
} else
|
|
5594
|
-
|
|
5599
|
+
g.value[s] = {
|
|
5595
5600
|
...b,
|
|
5596
5601
|
postRequestParams: [...b.postRequestParams],
|
|
5597
5602
|
useScenes: [...b.useScenes],
|
|
5598
5603
|
formCustomComponentes: [...b.formCustomComponentes]
|
|
5599
5604
|
};
|
|
5600
|
-
a("update:modelValue",
|
|
5605
|
+
a("update:modelValue", g.value), f(!0);
|
|
5601
5606
|
}, I = async () => {
|
|
5602
5607
|
try {
|
|
5603
|
-
r.tableLoading = !0,
|
|
5608
|
+
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
5609
|
} catch (b) {
|
|
5605
5610
|
r.tableLoading = !1, console.error(b);
|
|
5606
5611
|
}
|
|
@@ -5617,12 +5622,12 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5617
5622
|
}, R = (b) => {
|
|
5618
5623
|
s = b.$index, r.dialogData = b.row, r.showAddFieldDialog = !0;
|
|
5619
5624
|
}, m = () => {
|
|
5620
|
-
a("update:modelValue",
|
|
5625
|
+
a("update:modelValue", g.value);
|
|
5621
5626
|
}, A = (b) => {
|
|
5622
|
-
|
|
5627
|
+
g.value.splice(b.$index, 1), a("update:modelValue", g.value);
|
|
5623
5628
|
};
|
|
5624
5629
|
return (b, f) => {
|
|
5625
|
-
const
|
|
5630
|
+
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
5631
|
return H(), oe(G, {
|
|
5627
5632
|
class: "form-card",
|
|
5628
5633
|
shadow: "hover"
|
|
@@ -5630,7 +5635,7 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5630
5635
|
header: k(() => [
|
|
5631
5636
|
Te("div", Ci, [
|
|
5632
5637
|
f[3] || (f[3] = Te("div", { class: "card-header-title" }, "字段配置", -1)),
|
|
5633
|
-
N(
|
|
5638
|
+
N(v, {
|
|
5634
5639
|
class: "card-header-operate",
|
|
5635
5640
|
type: "primary",
|
|
5636
5641
|
icon: "Plus",
|
|
@@ -5647,14 +5652,14 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5647
5652
|
N(F, {
|
|
5648
5653
|
loading: y(r).tableLoading,
|
|
5649
5654
|
headers: y(i),
|
|
5650
|
-
data: y(
|
|
5655
|
+
data: y(g),
|
|
5651
5656
|
showPagination: !1
|
|
5652
5657
|
}, {
|
|
5653
5658
|
fieldType: k(({ scope: Y }) => [
|
|
5654
5659
|
Se(Qe(T(Y.row)), 1)
|
|
5655
5660
|
]),
|
|
5656
5661
|
useScenes: k(({ scope: Y }) => [
|
|
5657
|
-
(H(!0), Ae(Le, null, Je(h(Y.row), (te, he) => (H(), oe(
|
|
5662
|
+
(H(!0), Ae(Le, null, Je(h(Y.row), (te, he) => (H(), oe(_, {
|
|
5658
5663
|
key: he,
|
|
5659
5664
|
value: te.isFieldCustom ? "C" : "",
|
|
5660
5665
|
offset: [-5, 5]
|
|
@@ -5697,7 +5702,7 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5697
5702
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
5698
5703
|
]),
|
|
5699
5704
|
operate: k(({ scope: Y }) => [
|
|
5700
|
-
N(
|
|
5705
|
+
N(v, {
|
|
5701
5706
|
type: "primary",
|
|
5702
5707
|
text: "",
|
|
5703
5708
|
size: "small",
|
|
@@ -5709,7 +5714,7 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5709
5714
|
])),
|
|
5710
5715
|
_: 2
|
|
5711
5716
|
}, 1032, ["onClick"]),
|
|
5712
|
-
N(
|
|
5717
|
+
N(v, {
|
|
5713
5718
|
type: "danger",
|
|
5714
5719
|
text: "",
|
|
5715
5720
|
size: "small",
|
|
@@ -5730,7 +5735,7 @@ const Ci = { class: "card-header" }, Ti = {
|
|
|
5730
5735
|
title: y(r).dialogTitle,
|
|
5731
5736
|
configData: l.data,
|
|
5732
5737
|
data: y(r).dialogData,
|
|
5733
|
-
onRefresh:
|
|
5738
|
+
onRefresh: S
|
|
5734
5739
|
}, null, 8, ["visible", "title", "configData", "data"])
|
|
5735
5740
|
]),
|
|
5736
5741
|
_: 1
|
|
@@ -5753,17 +5758,17 @@ const ki = { class: "dialog-footer" }, Ii = {
|
|
|
5753
5758
|
dataBase: "",
|
|
5754
5759
|
api: ""
|
|
5755
5760
|
});
|
|
5756
|
-
let
|
|
5761
|
+
let g = xt((() => ({
|
|
5757
5762
|
loading: !1,
|
|
5758
5763
|
btnLoading: !1
|
|
5759
5764
|
}))()), T = ae([]), h = ae(null), p = ae(s());
|
|
5760
|
-
const
|
|
5765
|
+
const S = (b) => l({ url: `${a}/scripts/getAllDatabaseTable`, method: "get", data: b }), I = async () => {
|
|
5761
5766
|
try {
|
|
5762
|
-
|
|
5763
|
-
const { data: b } = await
|
|
5764
|
-
T.value = b || [],
|
|
5767
|
+
g.loading = !0;
|
|
5768
|
+
const { data: b } = await S();
|
|
5769
|
+
T.value = b || [], g.loading = !1;
|
|
5765
5770
|
} catch (b) {
|
|
5766
|
-
console.error(b),
|
|
5771
|
+
console.error(b), g.loading = !1;
|
|
5767
5772
|
}
|
|
5768
5773
|
};
|
|
5769
5774
|
ct(
|
|
@@ -5805,21 +5810,21 @@ const ki = { class: "dialog-footer" }, Ii = {
|
|
|
5805
5810
|
b && b.validate(async (f) => {
|
|
5806
5811
|
if (f)
|
|
5807
5812
|
try {
|
|
5808
|
-
|
|
5809
|
-
const { data:
|
|
5813
|
+
g.btnLoading = !0;
|
|
5814
|
+
const { data: v } = await l({ url: `${a}/scripts/getAllColumnsByTableName`, method: "get", params: { tableName: p.value.dataBase } }), w = (v || []).map((_) => {
|
|
5810
5815
|
let P = O();
|
|
5811
|
-
return P.fieldName =
|
|
5816
|
+
return P.fieldName = _.comment, P.fieldKey = _.name, P.fieldType = "string", P;
|
|
5812
5817
|
});
|
|
5813
5818
|
o("refresh", { formList: w }, () => {
|
|
5814
5819
|
m();
|
|
5815
|
-
}),
|
|
5816
|
-
} catch (
|
|
5817
|
-
console.error(
|
|
5820
|
+
}), g.btnLoading = !1;
|
|
5821
|
+
} catch (v) {
|
|
5822
|
+
console.error(v), g.btnLoading = !1;
|
|
5818
5823
|
}
|
|
5819
5824
|
});
|
|
5820
5825
|
};
|
|
5821
5826
|
return (b, f) => {
|
|
5822
|
-
const
|
|
5827
|
+
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
5828
|
return H(), oe(Y, {
|
|
5824
5829
|
"model-value": r.visible,
|
|
5825
5830
|
title: r.title,
|
|
@@ -5833,7 +5838,7 @@ const ki = { class: "dialog-footer" }, Ii = {
|
|
|
5833
5838
|
footer: k(() => [
|
|
5834
5839
|
Te("span", ki, [
|
|
5835
5840
|
N(G, {
|
|
5836
|
-
loading: y(
|
|
5841
|
+
loading: y(g).btnLoading,
|
|
5837
5842
|
onClick: m
|
|
5838
5843
|
}, {
|
|
5839
5844
|
default: k(() => f[3] || (f[3] = [
|
|
@@ -5843,7 +5848,7 @@ const ki = { class: "dialog-footer" }, Ii = {
|
|
|
5843
5848
|
}, 8, ["loading"]),
|
|
5844
5849
|
nt((H(), oe(G, {
|
|
5845
5850
|
type: "primary",
|
|
5846
|
-
loading: y(
|
|
5851
|
+
loading: y(g).btnLoading,
|
|
5847
5852
|
onClick: f[2] || (f[2] = (re) => A(y(h)))
|
|
5848
5853
|
}, {
|
|
5849
5854
|
default: k(() => f[4] || (f[4] = [
|
|
@@ -5864,7 +5869,7 @@ const ki = { class: "dialog-footer" }, Ii = {
|
|
|
5864
5869
|
"label-position": "top"
|
|
5865
5870
|
}, {
|
|
5866
5871
|
default: k(() => [
|
|
5867
|
-
N(
|
|
5872
|
+
N(_, {
|
|
5868
5873
|
label: "数据库",
|
|
5869
5874
|
"label-width": "120",
|
|
5870
5875
|
rules: [{ required: !1, message: "必填项", trigger: "change" }],
|
|
@@ -5879,7 +5884,7 @@ const ki = { class: "dialog-footer" }, Ii = {
|
|
|
5879
5884
|
filterable: ""
|
|
5880
5885
|
}, {
|
|
5881
5886
|
default: k(() => [
|
|
5882
|
-
(H(!0), Ae(Le, null, Je(y(T), (re, Be) => (H(), oe(
|
|
5887
|
+
(H(!0), Ae(Le, null, Je(y(T), (re, Be) => (H(), oe(v, {
|
|
5883
5888
|
key: re,
|
|
5884
5889
|
label: `${re.tableComment}【${re.tableName}】`,
|
|
5885
5890
|
value: re.tableName
|
|
@@ -5890,7 +5895,7 @@ const ki = { class: "dialog-footer" }, Ii = {
|
|
|
5890
5895
|
]),
|
|
5891
5896
|
_: 1
|
|
5892
5897
|
}),
|
|
5893
|
-
N(
|
|
5898
|
+
N(_, {
|
|
5894
5899
|
label: "接口地址(关键字)",
|
|
5895
5900
|
"label-width": "120",
|
|
5896
5901
|
rules: [{ required: !1, message: "必填项", trigger: "change" }],
|
|
@@ -5909,7 +5914,7 @@ const ki = { class: "dialog-footer" }, Ii = {
|
|
|
5909
5914
|
]),
|
|
5910
5915
|
_: 1
|
|
5911
5916
|
}, 8, ["model"])), [
|
|
5912
|
-
[te, y(
|
|
5917
|
+
[te, y(g).loading]
|
|
5913
5918
|
])
|
|
5914
5919
|
]),
|
|
5915
5920
|
_: 1
|
|
@@ -5925,12 +5930,12 @@ const vi = { class: "page-container" }, Li = { class: "submit-box" }, Oi = { cla
|
|
|
5925
5930
|
},
|
|
5926
5931
|
setup(e) {
|
|
5927
5932
|
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([]),
|
|
5933
|
+
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), S = ae(null), I = ae(null), O = ae({}), R = ae({}), m = ae([]), A = ae([]), b = xt({
|
|
5929
5934
|
pageLoading: !1,
|
|
5930
5935
|
saveBtnLoading: !1,
|
|
5931
5936
|
showDialogInitConfig: !1
|
|
5932
5937
|
});
|
|
5933
|
-
const f = (le) => l({ url: `${a}/pages/getPageDetail?key=${le}`, method: "get" }),
|
|
5938
|
+
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
5939
|
const { data: le } = await w({ dynamicFilters: [{ field: "url", operate: "Equal", value: "/pages" }] });
|
|
5935
5940
|
i.value = le || [];
|
|
5936
5941
|
}, F = async () => {
|
|
@@ -5947,14 +5952,14 @@ const vi = { class: "page-container" }, Li = { class: "submit-box" }, Oi = { cla
|
|
|
5947
5952
|
};
|
|
5948
5953
|
Ie("conditionList", () => T), Ie("pageKey", () => ae(s)), Ie("configData", () => h), qa(async () => {
|
|
5949
5954
|
try {
|
|
5950
|
-
b.pageLoading = !0, await P(),
|
|
5955
|
+
b.pageLoading = !0, await P(), g.value = t.params.id, T.value = (await _("Condition")).data || [], await F(), b.pageLoading = !1;
|
|
5951
5956
|
} catch (le) {
|
|
5952
5957
|
b.pageLoading = !1, console.error(le);
|
|
5953
5958
|
}
|
|
5954
5959
|
});
|
|
5955
5960
|
const Y = (le) => {
|
|
5956
5961
|
const z = i.value.find((He) => He.id == le);
|
|
5957
|
-
n.replace({ path: `/actConfig/${z.key}/${z.id}` }),
|
|
5962
|
+
n.replace({ path: `/actConfig/${z.key}/${z.id}` }), g.value = z.id, s = z.key, F();
|
|
5958
5963
|
}, te = () => {
|
|
5959
5964
|
b.showDialogInitConfig = !0;
|
|
5960
5965
|
}, he = ({ formList: le }, z) => {
|
|
@@ -5965,18 +5970,18 @@ const vi = { class: "page-container" }, Li = { class: "submit-box" }, Oi = { cla
|
|
|
5965
5970
|
key: s,
|
|
5966
5971
|
pageConfig: {
|
|
5967
5972
|
tableConfig: p.value.form,
|
|
5968
|
-
formConfig:
|
|
5973
|
+
formConfig: S.value.form,
|
|
5969
5974
|
buttons: I.value.getTableSelectionRows(),
|
|
5970
5975
|
fields: A.value
|
|
5971
5976
|
}
|
|
5972
5977
|
};
|
|
5973
|
-
le.pageConfig = JSON.stringify(le.pageConfig), b.saveBtnLoading = !0,
|
|
5978
|
+
le.pageConfig = JSON.stringify(le.pageConfig), b.saveBtnLoading = !0, v(le).then((z) => {
|
|
5974
5979
|
Pe({ title: "提示", message: "保存成功", type: "success", duration: 2500 }), G(), b.saveBtnLoading = !1;
|
|
5975
5980
|
}).catch((z) => {
|
|
5976
5981
|
b.saveBtnLoading = !1;
|
|
5977
5982
|
});
|
|
5978
5983
|
}, Be = async () => {
|
|
5979
|
-
Promise.all([p.value.formRef.validate(),
|
|
5984
|
+
Promise.all([p.value.formRef.validate(), S.value.formRef.validate()]).then((le) => {
|
|
5980
5985
|
le.every((z) => z) && re();
|
|
5981
5986
|
}).catch((le) => le);
|
|
5982
5987
|
};
|
|
@@ -6016,8 +6021,8 @@ const vi = { class: "page-container" }, Li = { class: "submit-box" }, Oi = { cla
|
|
|
6016
6021
|
]),
|
|
6017
6022
|
N(we, {
|
|
6018
6023
|
class: "menu-select",
|
|
6019
|
-
modelValue: y(
|
|
6020
|
-
"onUpdate:modelValue": z[1] || (z[1] = (fe) => It(
|
|
6024
|
+
modelValue: y(g),
|
|
6025
|
+
"onUpdate:modelValue": z[1] || (z[1] = (fe) => It(g) ? g.value = fe : g = fe),
|
|
6021
6026
|
placeholder: "菜单切换",
|
|
6022
6027
|
clearable: "",
|
|
6023
6028
|
filterable: "",
|
|
@@ -6074,7 +6079,7 @@ const vi = { class: "page-container" }, Li = { class: "submit-box" }, Oi = { cla
|
|
|
6074
6079
|
default: k(() => [
|
|
6075
6080
|
N(Ai, {
|
|
6076
6081
|
ref_key: "configFormRef",
|
|
6077
|
-
ref:
|
|
6082
|
+
ref: S,
|
|
6078
6083
|
modelValue: y(R),
|
|
6079
6084
|
"onUpdate:modelValue": z[4] || (z[4] = (fe) => It(R) ? R.value = fe : R = fe)
|
|
6080
6085
|
}, null, 8, ["modelValue"])
|
|
@@ -6215,22 +6220,24 @@ const vi = { class: "page-container" }, Li = { class: "submit-box" }, Oi = { cla
|
|
|
6215
6220
|
}
|
|
6216
6221
|
}, Ga = { ActPage: Pl, ActConfig: Ul }, ou = {
|
|
6217
6222
|
install(e, t) {
|
|
6218
|
-
var
|
|
6223
|
+
var p;
|
|
6219
6224
|
const {
|
|
6220
6225
|
modules: n,
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
},
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6226
|
+
apiPrefix: a,
|
|
6227
|
+
request: l,
|
|
6228
|
+
themeColor: o,
|
|
6229
|
+
cacheTokenType: r = "sessionStorage",
|
|
6230
|
+
cookieStorage: s,
|
|
6231
|
+
language: { messages: i = {}, en: g = "zhCn" }
|
|
6232
|
+
} = t, T = {
|
|
6233
|
+
act: Object.assign(_n[g].act, ((p = i[g]) == null ? void 0 : p.act) ?? {})
|
|
6234
|
+
}, h = yl({
|
|
6235
|
+
locale: g,
|
|
6236
|
+
fallbackLocale: g,
|
|
6237
|
+
messages: { ..._n, [g]: T }
|
|
6231
6238
|
});
|
|
6232
|
-
e.use(
|
|
6233
|
-
e.component(
|
|
6239
|
+
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((S) => {
|
|
6240
|
+
e.component(S, Ga[S]);
|
|
6234
6241
|
});
|
|
6235
6242
|
}
|
|
6236
6243
|
}, ru = {
|