act-plus 1.1.85 → 1.1.87
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 +29 -29
- package/lib/{dialogAddField-599a11f8.js → dialogAddField-16c2a9fa.js} +78 -57
- package/lib/{dialogConfigBtn-22fccdb6.js → dialogConfigBtn-3b5532ee.js} +114 -91
- package/lib/{dialogSiteComponentsParams-dab1bf57.js → dialogSiteComponentsParams-8747287e.js} +1 -1
- package/lib/{index-62f68aac.js → index-46b1de3c.js} +1 -1
- package/lib/{index-d1b62e93.js → index-54128923.js} +1159 -1154
- package/lib/{index-77a68bfe.js → index-5e6ba58b.js} +1 -1
- package/lib/{index-a5eda75c.js → index-8cd7f040.js} +1 -1
- package/lib/{index-8bebaea7.js → index-c28acc5c.js} +1 -1
- package/lib/{index-82fb989b.js → index-e391f7db.js} +1 -1
- package/lib/{index-cb6e6c06.js → index-e8b347a8.js} +74 -71
- package/lib/{index-a3cc5254.js → index-f88ed3ab.js} +1 -1
- package/lib/{index-935085ca.js → index-fc05088e.js} +148 -148
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Et, h as Ja, getCurrentInstance as Xt, effectScope as to, inject as Oe, onMounted as Xa, onUnmounted as no, computed as Lt, watch as dt, Fragment as ve, isRef as vt, ref as ae, shallowRef as ao, createVNode as
|
|
1
|
+
import { defineComponent as Et, h as Ja, getCurrentInstance as Xt, effectScope as to, inject as Oe, onMounted as Xa, onUnmounted as no, computed as Lt, watch as dt, Fragment as ve, isRef as vt, ref as ae, shallowRef as ao, createVNode as I, Text as lo, openBlock as K, createElementBlock as ge, createElementVNode as Ne, defineAsyncComponent as ut, reactive as Vt, provide as Te, resolveComponent as G, resolveDirective as Qt, withDirectives as lt, createBlock as re, withCtx as L, unref as T, createSlots as oo, renderList as Xe, resolveDynamicComponent as kn, createCommentVNode as Qe, createTextVNode as Ie, toDisplayString as We, markRaw as sa, nextTick as ro } from "vue";
|
|
2
2
|
import { useRoute as _n, useRouter as Za } from "vue-router";
|
|
3
3
|
import { dayjs as Ve, ElNotification as Re, ElMessageBox as so } from "element-plus";
|
|
4
4
|
/*!
|
|
@@ -67,16 +67,16 @@ function bo(e, t = 0, n = e.length) {
|
|
|
67
67
|
continue;
|
|
68
68
|
const i = s + 1;
|
|
69
69
|
o.push(`${i}${" ".repeat(3 - String(i).length)}| ${a[s]}`);
|
|
70
|
-
const
|
|
70
|
+
const g = a[s].length;
|
|
71
71
|
if (s === r) {
|
|
72
|
-
const
|
|
73
|
-
o.push(" | " + " ".repeat(
|
|
72
|
+
const b = t - (l - g) + 1, C = Math.max(1, n > l ? g - b : n - t);
|
|
73
|
+
o.push(" | " + " ".repeat(b) + "^".repeat(C));
|
|
74
74
|
} else if (s > r) {
|
|
75
75
|
if (n > l) {
|
|
76
|
-
const
|
|
77
|
-
o.push(" | " + "^".repeat(
|
|
76
|
+
const b = Math.max(Math.min(n - l, g), 1);
|
|
77
|
+
o.push(" | " + "^".repeat(b));
|
|
78
78
|
}
|
|
79
|
-
l +=
|
|
79
|
+
l += g + 1;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
break;
|
|
@@ -180,17 +180,17 @@ const To = /<\/?[\w\s="/.':;#-\/]+>/, No = (e) => To.test(e), it = " ", ko = "\r
|
|
|
180
180
|
function Lo(e) {
|
|
181
181
|
const t = e;
|
|
182
182
|
let n = 0, a = 1, l = 1, o = 0;
|
|
183
|
-
const r = (y) => t[y] === ko && t[y + 1] === Fe, s = (y) => t[y] === Fe, i = (y) => t[y] === Io,
|
|
183
|
+
const r = (y) => t[y] === ko && t[y + 1] === Fe, s = (y) => t[y] === Fe, i = (y) => t[y] === Io, g = (y) => t[y] === So, b = (y) => r(y) || s(y) || i(y) || g(y), C = () => n, f = () => a, O = () => l, k = () => o, v = (y) => r(y) || i(y) || g(y) ? Fe : t[y], w = () => v(n), m = () => v(n + o);
|
|
184
184
|
function A() {
|
|
185
|
-
return o = 0,
|
|
185
|
+
return o = 0, b(n) && (a++, l = 0), r(n) && n++, n++, l++, t[n];
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function p() {
|
|
188
188
|
return r(n + o) && o++, o++, t[n + o];
|
|
189
189
|
}
|
|
190
190
|
function _() {
|
|
191
191
|
n = 0, a = 1, l = 1, o = 0;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function h(y = 0) {
|
|
194
194
|
o = y;
|
|
195
195
|
}
|
|
196
196
|
function F() {
|
|
@@ -201,16 +201,16 @@ function Lo(e) {
|
|
|
201
201
|
}
|
|
202
202
|
return {
|
|
203
203
|
index: C,
|
|
204
|
-
line:
|
|
205
|
-
column:
|
|
204
|
+
line: f,
|
|
205
|
+
column: O,
|
|
206
206
|
peekOffset: k,
|
|
207
207
|
charAt: v,
|
|
208
|
-
currentChar:
|
|
208
|
+
currentChar: w,
|
|
209
209
|
currentPeek: m,
|
|
210
210
|
next: A,
|
|
211
|
-
peek:
|
|
211
|
+
peek: p,
|
|
212
212
|
reset: _,
|
|
213
|
-
resetPeek:
|
|
213
|
+
resetPeek: h,
|
|
214
214
|
skipToPeek: F
|
|
215
215
|
};
|
|
216
216
|
}
|
|
@@ -228,23 +228,23 @@ function wo(e, t = {}) {
|
|
|
228
228
|
braceNest: 0,
|
|
229
229
|
inLinked: !1,
|
|
230
230
|
text: ""
|
|
231
|
-
},
|
|
232
|
-
function C(c, d, R, ...
|
|
233
|
-
const _e =
|
|
234
|
-
if (d.column += R, d.offset += R,
|
|
231
|
+
}, g = () => i, { onError: b } = t;
|
|
232
|
+
function C(c, d, R, ...x) {
|
|
233
|
+
const _e = g();
|
|
234
|
+
if (d.column += R, d.offset += R, b) {
|
|
235
235
|
const Ae = n ? On(_e.startLoc, d) : null, oe = Yt(c, Ae, {
|
|
236
236
|
domain: Oo,
|
|
237
|
-
args:
|
|
237
|
+
args: x
|
|
238
238
|
});
|
|
239
|
-
|
|
239
|
+
b(oe);
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function f(c, d, R) {
|
|
243
243
|
c.endLoc = o(), c.currentType = d;
|
|
244
|
-
const
|
|
245
|
-
return n && (
|
|
244
|
+
const x = { type: d };
|
|
245
|
+
return n && (x.loc = On(c.startLoc, c.endLoc)), R != null && (x.value = R), x;
|
|
246
246
|
}
|
|
247
|
-
const
|
|
247
|
+
const O = (c) => f(
|
|
248
248
|
c,
|
|
249
249
|
13
|
|
250
250
|
/* TokenTypes.EOF */
|
|
@@ -258,7 +258,7 @@ function wo(e, t = {}) {
|
|
|
258
258
|
d += c.currentPeek(), c.peek();
|
|
259
259
|
return d;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function w(c) {
|
|
262
262
|
const d = v(c);
|
|
263
263
|
return c.skipToPeek(), d;
|
|
264
264
|
}
|
|
@@ -276,65 +276,65 @@ function wo(e, t = {}) {
|
|
|
276
276
|
const d = c.charCodeAt(0);
|
|
277
277
|
return d >= 48 && d <= 57;
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function p(c, d) {
|
|
280
280
|
const { currentType: R } = d;
|
|
281
281
|
if (R !== 2)
|
|
282
282
|
return !1;
|
|
283
283
|
v(c);
|
|
284
|
-
const
|
|
285
|
-
return c.resetPeek(),
|
|
284
|
+
const x = m(c.currentPeek());
|
|
285
|
+
return c.resetPeek(), x;
|
|
286
286
|
}
|
|
287
287
|
function _(c, d) {
|
|
288
288
|
const { currentType: R } = d;
|
|
289
289
|
if (R !== 2)
|
|
290
290
|
return !1;
|
|
291
291
|
v(c);
|
|
292
|
-
const
|
|
292
|
+
const x = c.currentPeek() === "-" ? c.peek() : c.currentPeek(), _e = A(x);
|
|
293
293
|
return c.resetPeek(), _e;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function h(c, d) {
|
|
296
296
|
const { currentType: R } = d;
|
|
297
297
|
if (R !== 2)
|
|
298
298
|
return !1;
|
|
299
299
|
v(c);
|
|
300
|
-
const
|
|
301
|
-
return c.resetPeek(),
|
|
300
|
+
const x = c.currentPeek() === ma;
|
|
301
|
+
return c.resetPeek(), x;
|
|
302
302
|
}
|
|
303
303
|
function F(c, d) {
|
|
304
304
|
const { currentType: R } = d;
|
|
305
305
|
if (R !== 7)
|
|
306
306
|
return !1;
|
|
307
307
|
v(c);
|
|
308
|
-
const
|
|
309
|
-
return c.resetPeek(),
|
|
308
|
+
const x = c.currentPeek() === ".";
|
|
309
|
+
return c.resetPeek(), x;
|
|
310
310
|
}
|
|
311
311
|
function y(c, d) {
|
|
312
312
|
const { currentType: R } = d;
|
|
313
313
|
if (R !== 8)
|
|
314
314
|
return !1;
|
|
315
315
|
v(c);
|
|
316
|
-
const
|
|
317
|
-
return c.resetPeek(),
|
|
316
|
+
const x = m(c.currentPeek());
|
|
317
|
+
return c.resetPeek(), x;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function S(c, d) {
|
|
320
320
|
const { currentType: R } = d;
|
|
321
321
|
if (!(R === 7 || R === 11))
|
|
322
322
|
return !1;
|
|
323
323
|
v(c);
|
|
324
|
-
const
|
|
325
|
-
return c.resetPeek(),
|
|
324
|
+
const x = c.currentPeek() === ":";
|
|
325
|
+
return c.resetPeek(), x;
|
|
326
326
|
}
|
|
327
327
|
function D(c, d) {
|
|
328
328
|
const { currentType: R } = d;
|
|
329
329
|
if (R !== 9)
|
|
330
330
|
return !1;
|
|
331
|
-
const
|
|
331
|
+
const x = () => {
|
|
332
332
|
const Ae = c.currentPeek();
|
|
333
|
-
return Ae === "{" ? m(c.peek()) : Ae === "@" || Ae === "|" || Ae === ":" || Ae === "." || Ae === it || !Ae ? !1 : Ae === Fe ? (c.peek(),
|
|
334
|
-
}, _e =
|
|
333
|
+
return Ae === "{" ? m(c.peek()) : Ae === "@" || Ae === "|" || Ae === ":" || Ae === "." || Ae === it || !Ae ? !1 : Ae === Fe ? (c.peek(), x()) : Y(c, !1);
|
|
334
|
+
}, _e = x();
|
|
335
335
|
return c.resetPeek(), _e;
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function $(c) {
|
|
338
338
|
v(c);
|
|
339
339
|
const d = c.currentPeek() === "|";
|
|
340
340
|
return c.resetPeek(), d;
|
|
@@ -343,8 +343,8 @@ function wo(e, t = {}) {
|
|
|
343
343
|
const R = (_e = !1, Ae = "") => {
|
|
344
344
|
const oe = c.currentPeek();
|
|
345
345
|
return oe === "{" || oe === "@" || !oe ? _e : oe === "|" ? !(Ae === it || Ae === Fe) : oe === it ? (c.peek(), R(!0, it)) : oe === Fe ? (c.peek(), R(!0, Fe)) : !0;
|
|
346
|
-
},
|
|
347
|
-
return d && c.resetPeek(),
|
|
346
|
+
}, x = R();
|
|
347
|
+
return d && c.resetPeek(), x;
|
|
348
348
|
}
|
|
349
349
|
function te(c, d) {
|
|
350
350
|
const R = c.currentChar();
|
|
@@ -405,7 +405,7 @@ function wo(e, t = {}) {
|
|
|
405
405
|
if (Y(c))
|
|
406
406
|
d += R, c.next();
|
|
407
407
|
else {
|
|
408
|
-
if (
|
|
408
|
+
if ($(c))
|
|
409
409
|
break;
|
|
410
410
|
d += R, c.next();
|
|
411
411
|
}
|
|
@@ -415,14 +415,14 @@ function wo(e, t = {}) {
|
|
|
415
415
|
return d;
|
|
416
416
|
}
|
|
417
417
|
function Ct(c) {
|
|
418
|
-
|
|
418
|
+
w(c);
|
|
419
419
|
let d = "", R = "";
|
|
420
420
|
for (; d = le(c); )
|
|
421
421
|
R += d;
|
|
422
422
|
return c.currentChar() === At && C(ee.UNTERMINATED_CLOSING_BRACE, o(), 0), R;
|
|
423
423
|
}
|
|
424
424
|
function mt(c) {
|
|
425
|
-
|
|
425
|
+
w(c);
|
|
426
426
|
let d = "";
|
|
427
427
|
return c.currentChar() === "-" ? (c.next(), d += `-${je(c)}`) : d += je(c), c.currentChar() === At && C(ee.UNTERMINATED_CLOSING_BRACE, o(), 0), d;
|
|
428
428
|
}
|
|
@@ -430,12 +430,12 @@ function wo(e, t = {}) {
|
|
|
430
430
|
return c !== ma && c !== Fe;
|
|
431
431
|
}
|
|
432
432
|
function fe(c) {
|
|
433
|
-
|
|
433
|
+
w(c), k(c, "'");
|
|
434
434
|
let d = "", R = "";
|
|
435
435
|
for (; d = te(c, Tt); )
|
|
436
436
|
d === "\\" ? R += jt(c) : R += d;
|
|
437
|
-
const
|
|
438
|
-
return
|
|
437
|
+
const x = c.currentChar();
|
|
438
|
+
return x === Fe || x === At ? (C(ee.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, o(), 0), x === Fe && (c.next(), k(c, "'")), R) : (k(c, "'"), R);
|
|
439
439
|
}
|
|
440
440
|
function jt(c) {
|
|
441
441
|
const d = c.currentChar();
|
|
@@ -453,22 +453,22 @@ function wo(e, t = {}) {
|
|
|
453
453
|
}
|
|
454
454
|
function Pt(c, d, R) {
|
|
455
455
|
k(c, d);
|
|
456
|
-
let
|
|
456
|
+
let x = "";
|
|
457
457
|
for (let _e = 0; _e < R; _e++) {
|
|
458
458
|
const Ae = Ue(c);
|
|
459
459
|
if (!Ae) {
|
|
460
|
-
C(ee.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${d}${
|
|
460
|
+
C(ee.INVALID_UNICODE_ESCAPE_SEQUENCE, o(), 0, `\\${d}${x}${c.currentChar()}`);
|
|
461
461
|
break;
|
|
462
462
|
}
|
|
463
|
-
|
|
463
|
+
x += Ae;
|
|
464
464
|
}
|
|
465
|
-
return `\\${d}${
|
|
465
|
+
return `\\${d}${x}`;
|
|
466
466
|
}
|
|
467
467
|
function Gt(c) {
|
|
468
468
|
return c !== "{" && c !== "}" && c !== it && c !== Fe;
|
|
469
469
|
}
|
|
470
470
|
function pt(c) {
|
|
471
|
-
|
|
471
|
+
w(c);
|
|
472
472
|
let d = "", R = "";
|
|
473
473
|
for (; d = te(c, Gt); )
|
|
474
474
|
R += d;
|
|
@@ -482,53 +482,53 @@ function wo(e, t = {}) {
|
|
|
482
482
|
}
|
|
483
483
|
function qt(c) {
|
|
484
484
|
const d = (R) => {
|
|
485
|
-
const
|
|
486
|
-
return
|
|
485
|
+
const x = c.currentChar();
|
|
486
|
+
return x === "{" || x === "@" || x === "|" || x === "(" || x === ")" || !x || x === it ? R : (R += x, c.next(), d(R));
|
|
487
487
|
};
|
|
488
488
|
return d("");
|
|
489
489
|
}
|
|
490
490
|
function Nt(c) {
|
|
491
|
-
|
|
491
|
+
w(c);
|
|
492
492
|
const d = k(
|
|
493
493
|
c,
|
|
494
494
|
"|"
|
|
495
495
|
/* TokenChars.Pipe */
|
|
496
496
|
);
|
|
497
|
-
return
|
|
497
|
+
return w(c), d;
|
|
498
498
|
}
|
|
499
499
|
function kt(c, d) {
|
|
500
500
|
let R = null;
|
|
501
501
|
switch (c.currentChar()) {
|
|
502
502
|
case "{":
|
|
503
|
-
return d.braceNest >= 1 && C(ee.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0), c.next(), R =
|
|
503
|
+
return d.braceNest >= 1 && C(ee.NOT_ALLOW_NEST_PLACEHOLDER, o(), 0), c.next(), R = f(
|
|
504
504
|
d,
|
|
505
505
|
2,
|
|
506
506
|
"{"
|
|
507
507
|
/* TokenChars.BraceLeft */
|
|
508
|
-
),
|
|
508
|
+
), w(c), d.braceNest++, R;
|
|
509
509
|
case "}":
|
|
510
|
-
return d.braceNest > 0 && d.currentType === 2 && C(ee.EMPTY_PLACEHOLDER, o(), 0), c.next(), R =
|
|
510
|
+
return d.braceNest > 0 && d.currentType === 2 && C(ee.EMPTY_PLACEHOLDER, o(), 0), c.next(), R = f(
|
|
511
511
|
d,
|
|
512
512
|
3,
|
|
513
513
|
"}"
|
|
514
514
|
/* TokenChars.BraceRight */
|
|
515
|
-
), d.braceNest--, d.braceNest > 0 &&
|
|
515
|
+
), d.braceNest--, d.braceNest > 0 && w(c), d.inLinked && d.braceNest === 0 && (d.inLinked = !1), R;
|
|
516
516
|
case "@":
|
|
517
|
-
return d.braceNest > 0 && C(ee.UNTERMINATED_CLOSING_BRACE, o(), 0), R = Be(c, d) ||
|
|
517
|
+
return d.braceNest > 0 && C(ee.UNTERMINATED_CLOSING_BRACE, o(), 0), R = Be(c, d) || O(d), d.braceNest = 0, R;
|
|
518
518
|
default: {
|
|
519
519
|
let _e = !0, Ae = !0, oe = !0;
|
|
520
|
-
if (
|
|
521
|
-
return d.braceNest > 0 && C(ee.UNTERMINATED_CLOSING_BRACE, o(), 0), R =
|
|
520
|
+
if ($(c))
|
|
521
|
+
return d.braceNest > 0 && C(ee.UNTERMINATED_CLOSING_BRACE, o(), 0), R = f(d, 1, Nt(c)), d.braceNest = 0, d.inLinked = !1, R;
|
|
522
522
|
if (d.braceNest > 0 && (d.currentType === 4 || d.currentType === 5 || d.currentType === 6))
|
|
523
523
|
return C(ee.UNTERMINATED_CLOSING_BRACE, o(), 0), d.braceNest = 0, et(c, d);
|
|
524
|
-
if (_e =
|
|
525
|
-
return R =
|
|
524
|
+
if (_e = p(c, d))
|
|
525
|
+
return R = f(d, 4, Ct(c)), w(c), R;
|
|
526
526
|
if (Ae = _(c, d))
|
|
527
|
-
return R =
|
|
528
|
-
if (oe =
|
|
529
|
-
return R =
|
|
527
|
+
return R = f(d, 5, mt(c)), w(c), R;
|
|
528
|
+
if (oe = h(c, d))
|
|
529
|
+
return R = f(d, 6, fe(c)), w(c), R;
|
|
530
530
|
if (!_e && !Ae && !oe)
|
|
531
|
-
return R =
|
|
531
|
+
return R = f(d, 12, pt(c)), C(ee.INVALID_TOKEN_IN_PLACEHOLDER, o(), 0, R.value), w(c), R;
|
|
532
532
|
break;
|
|
533
533
|
}
|
|
534
534
|
}
|
|
@@ -536,32 +536,32 @@ function wo(e, t = {}) {
|
|
|
536
536
|
}
|
|
537
537
|
function Be(c, d) {
|
|
538
538
|
const { currentType: R } = d;
|
|
539
|
-
let
|
|
539
|
+
let x = null;
|
|
540
540
|
const _e = c.currentChar();
|
|
541
541
|
switch ((R === 7 || R === 8 || R === 11 || R === 9) && (_e === Fe || _e === it) && C(ee.INVALID_LINKED_FORMAT, o(), 0), _e) {
|
|
542
542
|
case "@":
|
|
543
|
-
return c.next(),
|
|
543
|
+
return c.next(), x = f(
|
|
544
544
|
d,
|
|
545
545
|
7,
|
|
546
546
|
"@"
|
|
547
547
|
/* TokenChars.LinkedAlias */
|
|
548
|
-
), d.inLinked = !0,
|
|
548
|
+
), d.inLinked = !0, x;
|
|
549
549
|
case ".":
|
|
550
|
-
return
|
|
550
|
+
return w(c), c.next(), f(
|
|
551
551
|
d,
|
|
552
552
|
8,
|
|
553
553
|
"."
|
|
554
554
|
/* TokenChars.LinkedDot */
|
|
555
555
|
);
|
|
556
556
|
case ":":
|
|
557
|
-
return
|
|
557
|
+
return w(c), c.next(), f(
|
|
558
558
|
d,
|
|
559
559
|
9,
|
|
560
560
|
":"
|
|
561
561
|
/* TokenChars.LinkedDelimiter */
|
|
562
562
|
);
|
|
563
563
|
default:
|
|
564
|
-
return
|
|
564
|
+
return $(c) ? (x = f(d, 1, Nt(c)), d.braceNest = 0, d.inLinked = !1, x) : F(c, d) || S(c, d) ? (w(c), Be(c, d)) : y(c, d) ? (w(c), f(d, 11, Ut(c))) : D(c, d) ? (w(c), _e === "{" ? kt(c, d) || x : f(d, 10, qt(c))) : (R === 7 && C(ee.INVALID_LINKED_FORMAT, o(), 0), d.braceNest = 0, d.inLinked = !1, et(c, d));
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
function et(c, d) {
|
|
@@ -570,34 +570,34 @@ function wo(e, t = {}) {
|
|
|
570
570
|
/* TokenTypes.EOF */
|
|
571
571
|
};
|
|
572
572
|
if (d.braceNest > 0)
|
|
573
|
-
return kt(c, d) ||
|
|
573
|
+
return kt(c, d) || O(d);
|
|
574
574
|
if (d.inLinked)
|
|
575
|
-
return Be(c, d) ||
|
|
575
|
+
return Be(c, d) || O(d);
|
|
576
576
|
switch (c.currentChar()) {
|
|
577
577
|
case "{":
|
|
578
|
-
return kt(c, d) ||
|
|
578
|
+
return kt(c, d) || O(d);
|
|
579
579
|
case "}":
|
|
580
|
-
return C(ee.UNBALANCED_CLOSING_BRACE, o(), 0), c.next(),
|
|
580
|
+
return C(ee.UNBALANCED_CLOSING_BRACE, o(), 0), c.next(), f(
|
|
581
581
|
d,
|
|
582
582
|
3,
|
|
583
583
|
"}"
|
|
584
584
|
/* TokenChars.BraceRight */
|
|
585
585
|
);
|
|
586
586
|
case "@":
|
|
587
|
-
return Be(c, d) ||
|
|
587
|
+
return Be(c, d) || O(d);
|
|
588
588
|
default: {
|
|
589
|
-
if (
|
|
590
|
-
return R =
|
|
589
|
+
if ($(c))
|
|
590
|
+
return R = f(d, 1, Nt(c)), d.braceNest = 0, d.inLinked = !1, R;
|
|
591
591
|
if (Y(c))
|
|
592
|
-
return
|
|
592
|
+
return f(d, 0, Ge(c));
|
|
593
593
|
break;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
return R;
|
|
597
597
|
}
|
|
598
598
|
function St() {
|
|
599
|
-
const { currentType: c, offset: d, startLoc: R, endLoc:
|
|
600
|
-
return i.lastType = c, i.lastOffset = d, i.lastStartLoc = R, i.lastEndLoc =
|
|
599
|
+
const { currentType: c, offset: d, startLoc: R, endLoc: x } = i;
|
|
600
|
+
return i.lastType = c, i.lastOffset = d, i.lastStartLoc = R, i.lastEndLoc = x, i.offset = l(), i.startLoc = o(), a.currentChar() === At ? f(
|
|
601
601
|
i,
|
|
602
602
|
13
|
|
603
603
|
/* TokenTypes.EOF */
|
|
@@ -607,7 +607,7 @@ function wo(e, t = {}) {
|
|
|
607
607
|
nextToken: St,
|
|
608
608
|
currentOffset: l,
|
|
609
609
|
currentPosition: o,
|
|
610
|
-
context:
|
|
610
|
+
context: g
|
|
611
611
|
};
|
|
612
612
|
}
|
|
613
613
|
const Do = "parser", Ro = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
@@ -625,134 +625,134 @@ function Fo(e, t, n) {
|
|
|
625
625
|
}
|
|
626
626
|
function Po(e = {}) {
|
|
627
627
|
const t = e.location !== !1, { onError: n } = e;
|
|
628
|
-
function a(m, A,
|
|
628
|
+
function a(m, A, p, _, ...h) {
|
|
629
629
|
const F = m.currentPosition();
|
|
630
630
|
if (F.offset += _, F.column += _, n) {
|
|
631
|
-
const y = t ? On(
|
|
631
|
+
const y = t ? On(p, F) : null, S = Yt(A, y, {
|
|
632
632
|
domain: Do,
|
|
633
|
-
args:
|
|
633
|
+
args: h
|
|
634
634
|
});
|
|
635
|
-
n(
|
|
635
|
+
n(S);
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
|
-
function l(m, A,
|
|
638
|
+
function l(m, A, p) {
|
|
639
639
|
const _ = { type: m };
|
|
640
|
-
return t && (_.start = A, _.end = A, _.loc = { start:
|
|
640
|
+
return t && (_.start = A, _.end = A, _.loc = { start: p, end: p }), _;
|
|
641
641
|
}
|
|
642
|
-
function o(m, A,
|
|
643
|
-
t && (m.end = A, m.loc && (m.loc.end =
|
|
642
|
+
function o(m, A, p, _) {
|
|
643
|
+
t && (m.end = A, m.loc && (m.loc.end = p));
|
|
644
644
|
}
|
|
645
645
|
function r(m, A) {
|
|
646
|
-
const
|
|
646
|
+
const p = m.context(), _ = l(3, p.offset, p.startLoc);
|
|
647
647
|
return _.value = A, o(_, m.currentOffset(), m.currentPosition()), _;
|
|
648
648
|
}
|
|
649
649
|
function s(m, A) {
|
|
650
|
-
const
|
|
650
|
+
const p = m.context(), { lastOffset: _, lastStartLoc: h } = p, F = l(5, _, h);
|
|
651
651
|
return F.index = parseInt(A, 10), m.nextToken(), o(F, m.currentOffset(), m.currentPosition()), F;
|
|
652
652
|
}
|
|
653
653
|
function i(m, A) {
|
|
654
|
-
const
|
|
654
|
+
const p = m.context(), { lastOffset: _, lastStartLoc: h } = p, F = l(4, _, h);
|
|
655
655
|
return F.key = A, m.nextToken(), o(F, m.currentOffset(), m.currentPosition()), F;
|
|
656
656
|
}
|
|
657
|
-
function
|
|
658
|
-
const
|
|
657
|
+
function g(m, A) {
|
|
658
|
+
const p = m.context(), { lastOffset: _, lastStartLoc: h } = p, F = l(9, _, h);
|
|
659
659
|
return F.value = A.replace(Ro, Fo), m.nextToken(), o(F, m.currentOffset(), m.currentPosition()), F;
|
|
660
660
|
}
|
|
661
|
-
function
|
|
662
|
-
const A = m.nextToken(),
|
|
663
|
-
return A.type !== 11 ? (a(m, ee.UNEXPECTED_EMPTY_LINKED_MODIFIER,
|
|
661
|
+
function b(m) {
|
|
662
|
+
const A = m.nextToken(), p = m.context(), { lastOffset: _, lastStartLoc: h } = p, F = l(8, _, h);
|
|
663
|
+
return A.type !== 11 ? (a(m, ee.UNEXPECTED_EMPTY_LINKED_MODIFIER, p.lastStartLoc, 0), F.value = "", o(F, _, h), {
|
|
664
664
|
nextConsumeToken: A,
|
|
665
665
|
node: F
|
|
666
|
-
}) : (A.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
666
|
+
}) : (A.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, at(A)), F.value = A.value || "", o(F, m.currentOffset(), m.currentPosition()), {
|
|
667
667
|
node: F
|
|
668
668
|
});
|
|
669
669
|
}
|
|
670
670
|
function C(m, A) {
|
|
671
|
-
const
|
|
671
|
+
const p = m.context(), _ = l(7, p.offset, p.startLoc);
|
|
672
672
|
return _.value = A, o(_, m.currentOffset(), m.currentPosition()), _;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
const A = m.context(),
|
|
674
|
+
function f(m) {
|
|
675
|
+
const A = m.context(), p = l(6, A.offset, A.startLoc);
|
|
676
676
|
let _ = m.nextToken();
|
|
677
677
|
if (_.type === 8) {
|
|
678
|
-
const
|
|
679
|
-
|
|
678
|
+
const h = b(m);
|
|
679
|
+
p.modifier = h.node, _ = h.nextConsumeToken || m.nextToken();
|
|
680
680
|
}
|
|
681
681
|
switch (_.type !== 9 && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, at(_)), _ = m.nextToken(), _.type === 2 && (_ = m.nextToken()), _.type) {
|
|
682
682
|
case 10:
|
|
683
|
-
_.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, at(_)),
|
|
683
|
+
_.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, at(_)), p.key = C(m, _.value || "");
|
|
684
684
|
break;
|
|
685
685
|
case 4:
|
|
686
|
-
_.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, at(_)),
|
|
686
|
+
_.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, at(_)), p.key = i(m, _.value || "");
|
|
687
687
|
break;
|
|
688
688
|
case 5:
|
|
689
|
-
_.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, at(_)),
|
|
689
|
+
_.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, at(_)), p.key = s(m, _.value || "");
|
|
690
690
|
break;
|
|
691
691
|
case 6:
|
|
692
|
-
_.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, at(_)),
|
|
692
|
+
_.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, at(_)), p.key = g(m, _.value || "");
|
|
693
693
|
break;
|
|
694
694
|
default: {
|
|
695
695
|
a(m, ee.UNEXPECTED_EMPTY_LINKED_KEY, A.lastStartLoc, 0);
|
|
696
|
-
const
|
|
697
|
-
return F.value = "", o(F,
|
|
696
|
+
const h = m.context(), F = l(7, h.offset, h.startLoc);
|
|
697
|
+
return F.value = "", o(F, h.offset, h.startLoc), p.key = F, o(p, h.offset, h.startLoc), {
|
|
698
698
|
nextConsumeToken: _,
|
|
699
|
-
node:
|
|
699
|
+
node: p
|
|
700
700
|
};
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
|
-
return o(
|
|
704
|
-
node:
|
|
703
|
+
return o(p, m.currentOffset(), m.currentPosition()), {
|
|
704
|
+
node: p
|
|
705
705
|
};
|
|
706
706
|
}
|
|
707
|
-
function
|
|
708
|
-
const A = m.context(),
|
|
709
|
-
|
|
707
|
+
function O(m) {
|
|
708
|
+
const A = m.context(), p = A.currentType === 1 ? m.currentOffset() : A.offset, _ = A.currentType === 1 ? A.endLoc : A.startLoc, h = l(2, p, _);
|
|
709
|
+
h.items = [];
|
|
710
710
|
let F = null;
|
|
711
711
|
do {
|
|
712
712
|
const D = F || m.nextToken();
|
|
713
713
|
switch (F = null, D.type) {
|
|
714
714
|
case 0:
|
|
715
|
-
D.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, at(D)),
|
|
715
|
+
D.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, at(D)), h.items.push(r(m, D.value || ""));
|
|
716
716
|
break;
|
|
717
717
|
case 5:
|
|
718
|
-
D.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, at(D)),
|
|
718
|
+
D.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, at(D)), h.items.push(s(m, D.value || ""));
|
|
719
719
|
break;
|
|
720
720
|
case 4:
|
|
721
|
-
D.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, at(D)),
|
|
721
|
+
D.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, at(D)), h.items.push(i(m, D.value || ""));
|
|
722
722
|
break;
|
|
723
723
|
case 6:
|
|
724
|
-
D.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, at(D)),
|
|
724
|
+
D.value == null && a(m, ee.UNEXPECTED_LEXICAL_ANALYSIS, A.lastStartLoc, 0, at(D)), h.items.push(g(m, D.value || ""));
|
|
725
725
|
break;
|
|
726
726
|
case 7: {
|
|
727
|
-
const
|
|
728
|
-
|
|
727
|
+
const $ = f(m);
|
|
728
|
+
h.items.push($.node), F = $.nextConsumeToken || null;
|
|
729
729
|
break;
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
732
|
} while (A.currentType !== 13 && A.currentType !== 1);
|
|
733
|
-
const y = A.currentType === 1 ? A.lastOffset : m.currentOffset(),
|
|
734
|
-
return o(
|
|
733
|
+
const y = A.currentType === 1 ? A.lastOffset : m.currentOffset(), S = A.currentType === 1 ? A.lastEndLoc : m.currentPosition();
|
|
734
|
+
return o(h, y, S), h;
|
|
735
735
|
}
|
|
736
|
-
function k(m, A,
|
|
737
|
-
const
|
|
736
|
+
function k(m, A, p, _) {
|
|
737
|
+
const h = m.context();
|
|
738
738
|
let F = _.items.length === 0;
|
|
739
|
-
const y = l(1, A,
|
|
739
|
+
const y = l(1, A, p);
|
|
740
740
|
y.cases = [], y.cases.push(_);
|
|
741
741
|
do {
|
|
742
|
-
const
|
|
743
|
-
F || (F =
|
|
744
|
-
} while (
|
|
745
|
-
return F && a(m, ee.MUST_HAVE_MESSAGES_IN_PLURAL,
|
|
742
|
+
const S = O(m);
|
|
743
|
+
F || (F = S.items.length === 0), y.cases.push(S);
|
|
744
|
+
} while (h.currentType !== 13);
|
|
745
|
+
return F && a(m, ee.MUST_HAVE_MESSAGES_IN_PLURAL, p, 0), o(y, m.currentOffset(), m.currentPosition()), y;
|
|
746
746
|
}
|
|
747
747
|
function v(m) {
|
|
748
|
-
const A = m.context(), { offset:
|
|
749
|
-
return A.currentType === 13 ?
|
|
748
|
+
const A = m.context(), { offset: p, startLoc: _ } = A, h = O(m);
|
|
749
|
+
return A.currentType === 13 ? h : k(m, p, _, h);
|
|
750
750
|
}
|
|
751
|
-
function
|
|
752
|
-
const A = wo(m, ke({}, e)),
|
|
753
|
-
return t && _.loc && (_.loc.source = m), _.body = v(A), e.onCacheKey && (_.cacheKey = e.onCacheKey(m)),
|
|
751
|
+
function w(m) {
|
|
752
|
+
const A = wo(m, ke({}, e)), p = A.context(), _ = l(0, p.offset, p.startLoc);
|
|
753
|
+
return t && _.loc && (_.loc.source = m), _.body = v(A), e.onCacheKey && (_.cacheKey = e.onCacheKey(m)), p.currentType !== 13 && a(A, ee.UNEXPECTED_LEXICAL_ANALYSIS, p.lastStartLoc, 0, m[p.offset] || ""), o(_, A.currentOffset(), A.currentPosition()), _;
|
|
754
754
|
}
|
|
755
|
-
return { parse:
|
|
755
|
+
return { parse: w };
|
|
756
756
|
}
|
|
757
757
|
function at(e) {
|
|
758
758
|
if (e.type === 13)
|
|
@@ -915,31 +915,31 @@ function Qo(e, t) {
|
|
|
915
915
|
};
|
|
916
916
|
r && e.loc && (s.source = e.loc.source);
|
|
917
917
|
const i = () => s;
|
|
918
|
-
function
|
|
919
|
-
s.code +=
|
|
918
|
+
function g(w, m) {
|
|
919
|
+
s.code += w;
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function b(w, m = !0) {
|
|
922
922
|
const A = m ? l : "";
|
|
923
|
-
|
|
923
|
+
g(o ? A + " ".repeat(w) : A);
|
|
924
924
|
}
|
|
925
|
-
function C(
|
|
925
|
+
function C(w = !0) {
|
|
926
926
|
const m = ++s.indentLevel;
|
|
927
|
-
|
|
927
|
+
w && b(m);
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function f(w = !0) {
|
|
930
930
|
const m = --s.indentLevel;
|
|
931
|
-
|
|
931
|
+
w && b(m);
|
|
932
932
|
}
|
|
933
|
-
function
|
|
934
|
-
|
|
933
|
+
function O() {
|
|
934
|
+
b(s.indentLevel);
|
|
935
935
|
}
|
|
936
936
|
return {
|
|
937
937
|
context: i,
|
|
938
|
-
push:
|
|
938
|
+
push: g,
|
|
939
939
|
indent: C,
|
|
940
|
-
deindent:
|
|
941
|
-
newline:
|
|
942
|
-
helper: (
|
|
940
|
+
deindent: f,
|
|
941
|
+
newline: O,
|
|
942
|
+
helper: (w) => `_${w}`,
|
|
943
943
|
needIndent: () => s.needIndent
|
|
944
944
|
};
|
|
945
945
|
}
|
|
@@ -1040,11 +1040,11 @@ const jo = (e, t = {}) => {
|
|
|
1040
1040
|
needIndent: r
|
|
1041
1041
|
});
|
|
1042
1042
|
i.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), i.indent(r), s.length > 0 && (i.push(`const { ${Kn(s.map((C) => `${C}: _${C}`), ", ")} } = ctx`), i.newline()), i.push("return "), Ht(i, e), i.deindent(r), i.push("}"), delete e.helpers;
|
|
1043
|
-
const { code:
|
|
1043
|
+
const { code: g, map: b } = i.context();
|
|
1044
1044
|
return {
|
|
1045
1045
|
ast: e,
|
|
1046
|
-
code:
|
|
1047
|
-
map:
|
|
1046
|
+
code: g,
|
|
1047
|
+
map: b ? b.toJSON() : void 0
|
|
1048
1048
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1049
1049
|
};
|
|
1050
1050
|
};
|
|
@@ -1530,55 +1530,55 @@ function hr(e) {
|
|
|
1530
1530
|
}
|
|
1531
1531
|
function yr(e) {
|
|
1532
1532
|
const t = [];
|
|
1533
|
-
let n = -1, a = 0, l = 0, o, r, s, i,
|
|
1534
|
-
const
|
|
1535
|
-
|
|
1533
|
+
let n = -1, a = 0, l = 0, o, r, s, i, g, b, C;
|
|
1534
|
+
const f = [];
|
|
1535
|
+
f[
|
|
1536
1536
|
0
|
|
1537
1537
|
/* Actions.APPEND */
|
|
1538
1538
|
] = () => {
|
|
1539
1539
|
r === void 0 ? r = s : r += s;
|
|
1540
|
-
},
|
|
1540
|
+
}, f[
|
|
1541
1541
|
1
|
|
1542
1542
|
/* Actions.PUSH */
|
|
1543
1543
|
] = () => {
|
|
1544
1544
|
r !== void 0 && (t.push(r), r = void 0);
|
|
1545
|
-
},
|
|
1545
|
+
}, f[
|
|
1546
1546
|
2
|
|
1547
1547
|
/* Actions.INC_SUB_PATH_DEPTH */
|
|
1548
1548
|
] = () => {
|
|
1549
|
-
|
|
1549
|
+
f[
|
|
1550
1550
|
0
|
|
1551
1551
|
/* Actions.APPEND */
|
|
1552
1552
|
](), l++;
|
|
1553
|
-
},
|
|
1553
|
+
}, f[
|
|
1554
1554
|
3
|
|
1555
1555
|
/* Actions.PUSH_SUB_PATH */
|
|
1556
1556
|
] = () => {
|
|
1557
1557
|
if (l > 0)
|
|
1558
|
-
l--, a = 4,
|
|
1558
|
+
l--, a = 4, f[
|
|
1559
1559
|
0
|
|
1560
1560
|
/* Actions.APPEND */
|
|
1561
1561
|
]();
|
|
1562
1562
|
else {
|
|
1563
1563
|
if (l = 0, r === void 0 || (r = hr(r), r === !1))
|
|
1564
1564
|
return !1;
|
|
1565
|
-
|
|
1565
|
+
f[
|
|
1566
1566
|
1
|
|
1567
1567
|
/* Actions.PUSH */
|
|
1568
1568
|
]();
|
|
1569
1569
|
}
|
|
1570
1570
|
};
|
|
1571
|
-
function
|
|
1571
|
+
function O() {
|
|
1572
1572
|
const k = e[n + 1];
|
|
1573
1573
|
if (a === 5 && k === "'" || a === 6 && k === '"')
|
|
1574
|
-
return n++, s = "\\" + k,
|
|
1574
|
+
return n++, s = "\\" + k, f[
|
|
1575
1575
|
0
|
|
1576
1576
|
/* Actions.APPEND */
|
|
1577
1577
|
](), !0;
|
|
1578
1578
|
}
|
|
1579
1579
|
for (; a !== null; )
|
|
1580
|
-
if (n++, o = e[n], !(o === "\\" &&
|
|
1581
|
-
if (i = Er(o), C = yt[a],
|
|
1580
|
+
if (n++, o = e[n], !(o === "\\" && O())) {
|
|
1581
|
+
if (i = Er(o), C = yt[a], g = C[i] || C.l || 8, g === 8 || (a = g[0], g[1] !== void 0 && (b = f[g[1]], b && (s = o, b() === !1))))
|
|
1582
1582
|
return;
|
|
1583
1583
|
if (a === 7)
|
|
1584
1584
|
return t;
|
|
@@ -1657,9 +1657,9 @@ const ya = (e) => {
|
|
|
1657
1657
|
}, Rr = () => gl;
|
|
1658
1658
|
let Ca = 0;
|
|
1659
1659
|
function Fr(e = {}) {
|
|
1660
|
-
const t = pe(e.onWarn) ? e.onWarn : ft, n = B(e.version) ? e.version : Sr, a = B(e.locale) || pe(e.locale) ? e.locale : en, l = pe(a) ? en : a, o = Ee(e.fallbackLocale) || ne(e.fallbackLocale) || B(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, r = ne(e.messages) ? e.messages : Ln(l), s = ne(e.datetimeFormats) ? e.datetimeFormats : Ln(l), i = ne(e.numberFormats) ? e.numberFormats : Ln(l),
|
|
1660
|
+
const t = pe(e.onWarn) ? e.onWarn : ft, n = B(e.version) ? e.version : Sr, a = B(e.locale) || pe(e.locale) ? e.locale : en, l = pe(a) ? en : a, o = Ee(e.fallbackLocale) || ne(e.fallbackLocale) || B(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l, r = ne(e.messages) ? e.messages : Ln(l), s = ne(e.datetimeFormats) ? e.datetimeFormats : Ln(l), i = ne(e.numberFormats) ? e.numberFormats : Ln(l), g = ke(de(), e.modifiers, Ir()), b = e.pluralRules || de(), C = pe(e.missing) ? e.missing : null, f = ce(e.missingWarn) || Wt(e.missingWarn) ? e.missingWarn : !0, O = ce(e.fallbackWarn) || Wt(e.fallbackWarn) ? e.fallbackWarn : !0, k = !!e.fallbackFormat, v = !!e.unresolving, w = pe(e.postTranslation) ? e.postTranslation : null, m = ne(e.processor) ? e.processor : null, A = ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, p = !!e.escapeParameter, _ = pe(e.messageCompiler) ? e.messageCompiler : dl;
|
|
1661
1661
|
process.env.NODE_ENV !== "production" && pe(e.messageCompiler) && za(Dt(Me.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1662
|
-
const
|
|
1662
|
+
const h = pe(e.messageResolver) ? e.messageResolver : fl || Cr, F = pe(e.localeFallbacker) ? e.localeFallbacker : ml || mr, y = ie(e.fallbackContext) ? e.fallbackContext : void 0, S = e, D = ie(S.__datetimeFormatters) ? S.__datetimeFormatters : /* @__PURE__ */ new Map(), $ = ie(S.__numberFormatters) ? S.__numberFormatters : /* @__PURE__ */ new Map(), Y = ie(S.__meta) ? S.__meta : {};
|
|
1663
1663
|
Ca++;
|
|
1664
1664
|
const te = {
|
|
1665
1665
|
version: n,
|
|
@@ -1667,25 +1667,25 @@ function Fr(e = {}) {
|
|
|
1667
1667
|
locale: a,
|
|
1668
1668
|
fallbackLocale: o,
|
|
1669
1669
|
messages: r,
|
|
1670
|
-
modifiers:
|
|
1671
|
-
pluralRules:
|
|
1670
|
+
modifiers: g,
|
|
1671
|
+
pluralRules: b,
|
|
1672
1672
|
missing: C,
|
|
1673
|
-
missingWarn:
|
|
1674
|
-
fallbackWarn:
|
|
1673
|
+
missingWarn: f,
|
|
1674
|
+
fallbackWarn: O,
|
|
1675
1675
|
fallbackFormat: k,
|
|
1676
1676
|
unresolving: v,
|
|
1677
|
-
postTranslation:
|
|
1677
|
+
postTranslation: w,
|
|
1678
1678
|
processor: m,
|
|
1679
1679
|
warnHtmlMessage: A,
|
|
1680
|
-
escapeParameter:
|
|
1680
|
+
escapeParameter: p,
|
|
1681
1681
|
messageCompiler: _,
|
|
1682
|
-
messageResolver:
|
|
1682
|
+
messageResolver: h,
|
|
1683
1683
|
localeFallbacker: F,
|
|
1684
1684
|
fallbackContext: y,
|
|
1685
1685
|
onWarn: t,
|
|
1686
1686
|
__meta: Y
|
|
1687
1687
|
};
|
|
1688
|
-
return te.datetimeFormats = s, te.numberFormats = i, te.__datetimeFormatters = D, te.__numberFormatters =
|
|
1688
|
+
return te.datetimeFormats = s, te.numberFormats = i, te.__datetimeFormatters = D, te.__numberFormatters = $, process.env.NODE_ENV !== "production" && (te.__v_emitter = S.__v_emitter != null ? S.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && ir(te, n, Y), te;
|
|
1689
1689
|
}
|
|
1690
1690
|
const Ln = (e) => ({ [e]: de() });
|
|
1691
1691
|
function hn(e, t) {
|
|
@@ -1735,40 +1735,40 @@ function Na(e, ...t) {
|
|
|
1735
1735
|
const { datetimeFormats: n, unresolving: a, fallbackLocale: l, onWarn: o, localeFallbacker: r } = e, { __datetimeFormatters: s } = e;
|
|
1736
1736
|
if (process.env.NODE_ENV !== "production" && !bl.dateTimeFormat)
|
|
1737
1737
|
return o(Dt(Me.CANNOT_FORMAT_DATE)), pn;
|
|
1738
|
-
const [i,
|
|
1738
|
+
const [i, g, b, C] = Dn(...t), f = ce(b.missingWarn) ? b.missingWarn : e.missingWarn, O = ce(b.fallbackWarn) ? b.fallbackWarn : e.fallbackWarn, k = !!b.part, v = $n(e, b), w = r(
|
|
1739
1739
|
e,
|
|
1740
1740
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1741
1741
|
l,
|
|
1742
1742
|
v
|
|
1743
1743
|
);
|
|
1744
1744
|
if (!B(i) || i === "")
|
|
1745
|
-
return new Intl.DateTimeFormat(v, C).format(
|
|
1746
|
-
let m = {}, A,
|
|
1745
|
+
return new Intl.DateTimeFormat(v, C).format(g);
|
|
1746
|
+
let m = {}, A, p = null, _ = v, h = null;
|
|
1747
1747
|
const F = "datetime format";
|
|
1748
|
-
for (let D = 0; D <
|
|
1749
|
-
if (A =
|
|
1748
|
+
for (let D = 0; D < w.length; D++) {
|
|
1749
|
+
if (A = h = w[D], process.env.NODE_ENV !== "production" && v !== A && hn(O, i) && o(Dt(Me.FALLBACK_TO_DATE_FORMAT, {
|
|
1750
1750
|
key: i,
|
|
1751
1751
|
target: A
|
|
1752
1752
|
})), process.env.NODE_ENV !== "production" && v !== A) {
|
|
1753
|
-
const
|
|
1754
|
-
|
|
1753
|
+
const $ = e.__v_emitter;
|
|
1754
|
+
$ && $.emit("fallback", {
|
|
1755
1755
|
type: F,
|
|
1756
1756
|
key: i,
|
|
1757
1757
|
from: _,
|
|
1758
|
-
to:
|
|
1758
|
+
to: h,
|
|
1759
1759
|
groupId: `${F}:${i}`
|
|
1760
1760
|
});
|
|
1761
1761
|
}
|
|
1762
|
-
if (m = n[A] || {},
|
|
1762
|
+
if (m = n[A] || {}, p = m[i], ne(p))
|
|
1763
1763
|
break;
|
|
1764
|
-
Jn(e, i, A,
|
|
1764
|
+
Jn(e, i, A, f, F), _ = h;
|
|
1765
1765
|
}
|
|
1766
|
-
if (!ne(
|
|
1766
|
+
if (!ne(p) || !B(A))
|
|
1767
1767
|
return a ? En : i;
|
|
1768
1768
|
let y = `${A}__${i}`;
|
|
1769
1769
|
bn(C) || (y = `${y}__${JSON.stringify(C)}`);
|
|
1770
|
-
let
|
|
1771
|
-
return
|
|
1770
|
+
let S = s.get(y);
|
|
1771
|
+
return S || (S = new Intl.DateTimeFormat(A, ke({}, p, C)), s.set(y, S)), k ? S.formatToParts(g) : S.format(g);
|
|
1772
1772
|
}
|
|
1773
1773
|
const El = [
|
|
1774
1774
|
"localeMatcher",
|
|
@@ -1799,8 +1799,8 @@ function Dn(...e) {
|
|
|
1799
1799
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1800
1800
|
if (!i)
|
|
1801
1801
|
throw ct(we.INVALID_ISO_DATE_ARGUMENT);
|
|
1802
|
-
const
|
|
1803
|
-
s = new Date(
|
|
1802
|
+
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();
|
|
1803
|
+
s = new Date(g);
|
|
1804
1804
|
try {
|
|
1805
1805
|
s.toISOString();
|
|
1806
1806
|
} catch {
|
|
@@ -1829,40 +1829,40 @@ function Sa(e, ...t) {
|
|
|
1829
1829
|
const { numberFormats: n, unresolving: a, fallbackLocale: l, onWarn: o, localeFallbacker: r } = e, { __numberFormatters: s } = e;
|
|
1830
1830
|
if (process.env.NODE_ENV !== "production" && !bl.numberFormat)
|
|
1831
1831
|
return o(Dt(Me.CANNOT_FORMAT_NUMBER)), pn;
|
|
1832
|
-
const [i,
|
|
1832
|
+
const [i, g, b, C] = Rn(...t), f = ce(b.missingWarn) ? b.missingWarn : e.missingWarn, O = ce(b.fallbackWarn) ? b.fallbackWarn : e.fallbackWarn, k = !!b.part, v = $n(e, b), w = r(
|
|
1833
1833
|
e,
|
|
1834
1834
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1835
1835
|
l,
|
|
1836
1836
|
v
|
|
1837
1837
|
);
|
|
1838
1838
|
if (!B(i) || i === "")
|
|
1839
|
-
return new Intl.NumberFormat(v, C).format(
|
|
1840
|
-
let m = {}, A,
|
|
1839
|
+
return new Intl.NumberFormat(v, C).format(g);
|
|
1840
|
+
let m = {}, A, p = null, _ = v, h = null;
|
|
1841
1841
|
const F = "number format";
|
|
1842
|
-
for (let D = 0; D <
|
|
1843
|
-
if (A =
|
|
1842
|
+
for (let D = 0; D < w.length; D++) {
|
|
1843
|
+
if (A = h = w[D], process.env.NODE_ENV !== "production" && v !== A && hn(O, i) && o(Dt(Me.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1844
1844
|
key: i,
|
|
1845
1845
|
target: A
|
|
1846
1846
|
})), process.env.NODE_ENV !== "production" && v !== A) {
|
|
1847
|
-
const
|
|
1848
|
-
|
|
1847
|
+
const $ = e.__v_emitter;
|
|
1848
|
+
$ && $.emit("fallback", {
|
|
1849
1849
|
type: F,
|
|
1850
1850
|
key: i,
|
|
1851
1851
|
from: _,
|
|
1852
|
-
to:
|
|
1852
|
+
to: h,
|
|
1853
1853
|
groupId: `${F}:${i}`
|
|
1854
1854
|
});
|
|
1855
1855
|
}
|
|
1856
|
-
if (m = n[A] || {},
|
|
1856
|
+
if (m = n[A] || {}, p = m[i], ne(p))
|
|
1857
1857
|
break;
|
|
1858
|
-
Jn(e, i, A,
|
|
1858
|
+
Jn(e, i, A, f, F), _ = h;
|
|
1859
1859
|
}
|
|
1860
|
-
if (!ne(
|
|
1860
|
+
if (!ne(p) || !B(A))
|
|
1861
1861
|
return a ? En : i;
|
|
1862
1862
|
let y = `${A}__${i}`;
|
|
1863
1863
|
bn(C) || (y = `${y}__${JSON.stringify(C)}`);
|
|
1864
|
-
let
|
|
1865
|
-
return
|
|
1864
|
+
let S = s.get(y);
|
|
1865
|
+
return S || (S = new Intl.NumberFormat(A, ke({}, p, C)), s.set(y, S)), k ? S.formatToParts(g) : S.format(g);
|
|
1866
1866
|
}
|
|
1867
1867
|
const hl = [
|
|
1868
1868
|
"localeMatcher",
|
|
@@ -1917,55 +1917,55 @@ function Wr(e, t) {
|
|
|
1917
1917
|
function Hr(e = {}) {
|
|
1918
1918
|
const t = e.locale, n = Qr(e), a = ie(e.pluralRules) && B(t) && pe(e.pluralRules[t]) ? e.pluralRules[t] : La, l = ie(e.pluralRules) && B(t) && pe(e.pluralRules[t]) ? La : void 0, o = (m) => m[a(n, m.length, l)], r = e.list || [], s = (m) => r[m], i = e.named || de();
|
|
1919
1919
|
Ce(e.pluralIndex) && Wr(n, i);
|
|
1920
|
-
const
|
|
1921
|
-
function
|
|
1922
|
-
const
|
|
1923
|
-
return
|
|
1920
|
+
const g = (m) => i[m];
|
|
1921
|
+
function b(m, A) {
|
|
1922
|
+
const p = pe(e.messages) ? e.messages(m, !!A) : ie(e.messages) ? e.messages[m] : !1;
|
|
1923
|
+
return p || (e.parent ? e.parent.message(m) : Mr);
|
|
1924
1924
|
}
|
|
1925
|
-
const C = (m) => e.modifiers ? e.modifiers[m] : Ur,
|
|
1925
|
+
const C = (m) => e.modifiers ? e.modifiers[m] : Ur, f = ne(e.processor) && pe(e.processor.normalize) ? e.processor.normalize : xr, O = ne(e.processor) && pe(e.processor.interpolate) ? e.processor.interpolate : Vr, k = ne(e.processor) && B(e.processor.type) ? e.processor.type : Br, w = {
|
|
1926
1926
|
list: s,
|
|
1927
|
-
named:
|
|
1927
|
+
named: g,
|
|
1928
1928
|
plural: o,
|
|
1929
1929
|
linked: (m, ...A) => {
|
|
1930
|
-
const [
|
|
1931
|
-
let
|
|
1932
|
-
A.length === 1 ? ie(
|
|
1933
|
-
const y =
|
|
1930
|
+
const [p, _] = A;
|
|
1931
|
+
let h = "text", F = "";
|
|
1932
|
+
A.length === 1 ? ie(p) ? (F = p.modifier || F, h = p.type || h) : B(p) && (F = p || F) : A.length === 2 && (B(p) && (F = p || F), B(_) && (h = _ || h));
|
|
1933
|
+
const y = b(m, !0)(w), S = (
|
|
1934
1934
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1935
|
-
|
|
1935
|
+
h === "vnode" && Ee(y) && F ? y[0] : y
|
|
1936
1936
|
);
|
|
1937
|
-
return F ? C(F)(
|
|
1937
|
+
return F ? C(F)(S, h) : S;
|
|
1938
1938
|
},
|
|
1939
|
-
message:
|
|
1939
|
+
message: b,
|
|
1940
1940
|
type: k,
|
|
1941
|
-
interpolate:
|
|
1942
|
-
normalize:
|
|
1941
|
+
interpolate: O,
|
|
1942
|
+
normalize: f,
|
|
1943
1943
|
values: ke(de(), r, i)
|
|
1944
1944
|
};
|
|
1945
|
-
return
|
|
1945
|
+
return w;
|
|
1946
1946
|
}
|
|
1947
1947
|
const va = () => "", He = (e) => pe(e);
|
|
1948
1948
|
function Oa(e, ...t) {
|
|
1949
|
-
const { fallbackFormat: n, postTranslation: a, unresolving: l, messageCompiler: o, fallbackLocale: r, messages: s } = e, [i,
|
|
1950
|
-
|
|
1951
|
-
let [m, A,
|
|
1949
|
+
const { fallbackFormat: n, postTranslation: a, unresolving: l, messageCompiler: o, fallbackLocale: r, messages: s } = e, [i, g] = Fn(...t), b = ce(g.missingWarn) ? g.missingWarn : e.missingWarn, C = ce(g.fallbackWarn) ? g.fallbackWarn : e.fallbackWarn, f = ce(g.escapeParameter) ? g.escapeParameter : e.escapeParameter, O = !!g.resolvedMessage, k = B(g.default) || ce(g.default) ? ce(g.default) ? o ? i : () => i : g.default : n ? o ? i : () => i : null, v = n || k != null && (B(k) || pe(k)), w = $n(e, g);
|
|
1950
|
+
f && Yr(g);
|
|
1951
|
+
let [m, A, p] = O ? [
|
|
1952
1952
|
i,
|
|
1953
|
-
|
|
1954
|
-
s[
|
|
1955
|
-
] : yl(e, i,
|
|
1956
|
-
if (!
|
|
1953
|
+
w,
|
|
1954
|
+
s[w] || de()
|
|
1955
|
+
] : yl(e, i, w, r, C, b), _ = m, h = i;
|
|
1956
|
+
if (!O && !(B(_) || Ye(_) || He(_)) && v && (_ = k, h = _), !O && (!(B(_) || Ye(_) || He(_)) || !B(A)))
|
|
1957
1957
|
return l ? En : i;
|
|
1958
1958
|
if (process.env.NODE_ENV !== "production" && B(_) && e.messageCompiler == null)
|
|
1959
1959
|
return ft(`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;
|
|
1960
1960
|
let F = !1;
|
|
1961
1961
|
const y = () => {
|
|
1962
1962
|
F = !0;
|
|
1963
|
-
},
|
|
1963
|
+
}, S = He(_) ? _ : Cl(e, i, A, _, h, y);
|
|
1964
1964
|
if (F)
|
|
1965
1965
|
return _;
|
|
1966
|
-
const D = qr(e, A,
|
|
1966
|
+
const D = qr(e, A, p, g), $ = Hr(D), Y = Kr(e, S, $);
|
|
1967
1967
|
let te = a ? a(Y, i) : Y;
|
|
1968
|
-
if (
|
|
1968
|
+
if (f && B(te) && (te = po(te)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1969
1969
|
const he = {
|
|
1970
1970
|
timestamp: Date.now(),
|
|
1971
1971
|
key: B(i) ? i : He(_) ? _.key : "",
|
|
@@ -1983,73 +1983,73 @@ function Yr(e) {
|
|
|
1983
1983
|
});
|
|
1984
1984
|
}
|
|
1985
1985
|
function yl(e, t, n, a, l, o) {
|
|
1986
|
-
const { messages: r, onWarn: s, messageResolver: i, localeFallbacker:
|
|
1987
|
-
let C = de(),
|
|
1988
|
-
const
|
|
1989
|
-
for (let m = 0; m <
|
|
1990
|
-
if (
|
|
1986
|
+
const { messages: r, onWarn: s, messageResolver: i, localeFallbacker: g } = e, b = g(e, a, n);
|
|
1987
|
+
let C = de(), f, O = null, k = n, v = null;
|
|
1988
|
+
const w = "translate";
|
|
1989
|
+
for (let m = 0; m < b.length; m++) {
|
|
1990
|
+
if (f = v = b[m], process.env.NODE_ENV !== "production" && n !== f && !Al(n, f) && hn(l, t) && s(Dt(Me.FALLBACK_TO_TRANSLATE, {
|
|
1991
1991
|
key: t,
|
|
1992
|
-
target:
|
|
1993
|
-
})), process.env.NODE_ENV !== "production" && n !==
|
|
1994
|
-
const
|
|
1995
|
-
|
|
1996
|
-
type:
|
|
1992
|
+
target: f
|
|
1993
|
+
})), process.env.NODE_ENV !== "production" && n !== f) {
|
|
1994
|
+
const h = e.__v_emitter;
|
|
1995
|
+
h && h.emit("fallback", {
|
|
1996
|
+
type: w,
|
|
1997
1997
|
key: t,
|
|
1998
1998
|
from: k,
|
|
1999
1999
|
to: v,
|
|
2000
|
-
groupId: `${
|
|
2000
|
+
groupId: `${w}:${t}`
|
|
2001
2001
|
});
|
|
2002
2002
|
}
|
|
2003
|
-
C = r[
|
|
2004
|
-
let A = null,
|
|
2005
|
-
if (process.env.NODE_ENV !== "production" && ze && (A = window.performance.now(),
|
|
2006
|
-
const
|
|
2007
|
-
F && A &&
|
|
2003
|
+
C = r[f] || de();
|
|
2004
|
+
let A = null, p, _;
|
|
2005
|
+
if (process.env.NODE_ENV !== "production" && ze && (A = window.performance.now(), p = "intlify-message-resolve-start", _ = "intlify-message-resolve-end", xe && xe(p)), (O = i(C, t)) === null && (O = C[t]), process.env.NODE_ENV !== "production" && ze) {
|
|
2006
|
+
const h = window.performance.now(), F = e.__v_emitter;
|
|
2007
|
+
F && A && O && F.emit("message-resolve", {
|
|
2008
2008
|
type: "message-resolve",
|
|
2009
2009
|
key: t,
|
|
2010
|
-
message:
|
|
2011
|
-
time:
|
|
2012
|
-
groupId: `${
|
|
2013
|
-
}),
|
|
2010
|
+
message: O,
|
|
2011
|
+
time: h - A,
|
|
2012
|
+
groupId: `${w}:${t}`
|
|
2013
|
+
}), p && _ && xe && wt && (xe(_), wt("intlify message resolve", p, _));
|
|
2014
2014
|
}
|
|
2015
|
-
if (B(
|
|
2015
|
+
if (B(O) || Ye(O) || He(O))
|
|
2016
2016
|
break;
|
|
2017
|
-
if (!Pr(
|
|
2018
|
-
const
|
|
2017
|
+
if (!Pr(f, b)) {
|
|
2018
|
+
const h = Jn(
|
|
2019
2019
|
e,
|
|
2020
2020
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2021
2021
|
t,
|
|
2022
|
-
|
|
2022
|
+
f,
|
|
2023
2023
|
o,
|
|
2024
|
-
|
|
2024
|
+
w
|
|
2025
2025
|
);
|
|
2026
|
-
|
|
2026
|
+
h !== t && (O = h);
|
|
2027
2027
|
}
|
|
2028
2028
|
k = v;
|
|
2029
2029
|
}
|
|
2030
|
-
return [
|
|
2030
|
+
return [O, f, C];
|
|
2031
2031
|
}
|
|
2032
2032
|
function Cl(e, t, n, a, l, o) {
|
|
2033
2033
|
const { messageCompiler: r, warnHtmlMessage: s } = e;
|
|
2034
2034
|
if (He(a)) {
|
|
2035
|
-
const
|
|
2036
|
-
return
|
|
2035
|
+
const f = a;
|
|
2036
|
+
return f.locale = f.locale || n, f.key = f.key || t, f;
|
|
2037
2037
|
}
|
|
2038
2038
|
if (r == null) {
|
|
2039
|
-
const
|
|
2040
|
-
return
|
|
2039
|
+
const f = () => a;
|
|
2040
|
+
return f.locale = n, f.key = t, f;
|
|
2041
2041
|
}
|
|
2042
|
-
let i = null,
|
|
2043
|
-
process.env.NODE_ENV !== "production" && ze && (i = window.performance.now(),
|
|
2042
|
+
let i = null, g, b;
|
|
2043
|
+
process.env.NODE_ENV !== "production" && ze && (i = window.performance.now(), g = "intlify-message-compilation-start", b = "intlify-message-compilation-end", xe && xe(g));
|
|
2044
2044
|
const C = r(a, jr(e, n, l, a, s, o));
|
|
2045
2045
|
if (process.env.NODE_ENV !== "production" && ze) {
|
|
2046
|
-
const
|
|
2047
|
-
|
|
2046
|
+
const f = window.performance.now(), O = e.__v_emitter;
|
|
2047
|
+
O && i && O.emit("message-compilation", {
|
|
2048
2048
|
type: "message-compilation",
|
|
2049
2049
|
message: a,
|
|
2050
|
-
time:
|
|
2050
|
+
time: f - i,
|
|
2051
2051
|
groupId: `translate:${t}`
|
|
2052
|
-
}),
|
|
2052
|
+
}), g && b && xe && wt && (xe(b), wt("intlify message compilation", g, b));
|
|
2053
2053
|
}
|
|
2054
2054
|
return C.locale = n, C.key = t, C.source = a, C;
|
|
2055
2055
|
}
|
|
@@ -2082,15 +2082,15 @@ function jr(e, t, n, a, l, o) {
|
|
|
2082
2082
|
warnHtmlMessage: l,
|
|
2083
2083
|
onError: (r) => {
|
|
2084
2084
|
if (o && o(r), process.env.NODE_ENV !== "production") {
|
|
2085
|
-
const s = Gr(a), i = `Message compilation error: ${r.message}`,
|
|
2086
|
-
|
|
2085
|
+
const s = Gr(a), i = `Message compilation error: ${r.message}`, g = r.location && s && bo(s, r.location.start.offset, r.location.end.offset), b = e.__v_emitter;
|
|
2086
|
+
b && s && b.emit("compile-error", {
|
|
2087
2087
|
message: s,
|
|
2088
2088
|
error: r.message,
|
|
2089
2089
|
start: r.location && r.location.start.offset,
|
|
2090
2090
|
end: r.location && r.location.end.offset,
|
|
2091
2091
|
groupId: `translate:${n}`
|
|
2092
|
-
}), console.error(
|
|
2093
|
-
${
|
|
2092
|
+
}), console.error(g ? `${i}
|
|
2093
|
+
${g}` : i);
|
|
2094
2094
|
} else
|
|
2095
2095
|
throw r;
|
|
2096
2096
|
},
|
|
@@ -2104,35 +2104,35 @@ function Gr(e) {
|
|
|
2104
2104
|
return e.loc.source;
|
|
2105
2105
|
}
|
|
2106
2106
|
function qr(e, t, n, a) {
|
|
2107
|
-
const { modifiers: l, pluralRules: o, messageResolver: r, fallbackLocale: s, fallbackWarn: i, missingWarn:
|
|
2107
|
+
const { modifiers: l, pluralRules: o, messageResolver: r, fallbackLocale: s, fallbackWarn: i, missingWarn: g, fallbackContext: b } = e, f = {
|
|
2108
2108
|
locale: t,
|
|
2109
2109
|
modifiers: l,
|
|
2110
2110
|
pluralRules: o,
|
|
2111
|
-
messages: (
|
|
2112
|
-
let v = r(n,
|
|
2113
|
-
if (v == null && (
|
|
2114
|
-
const [, ,
|
|
2115
|
-
|
|
2111
|
+
messages: (O, k) => {
|
|
2112
|
+
let v = r(n, O);
|
|
2113
|
+
if (v == null && (b || k)) {
|
|
2114
|
+
const [, , w] = yl(
|
|
2115
|
+
b || e,
|
|
2116
2116
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2117
|
-
|
|
2117
|
+
O,
|
|
2118
2118
|
t,
|
|
2119
2119
|
s,
|
|
2120
2120
|
i,
|
|
2121
|
-
|
|
2121
|
+
g
|
|
2122
2122
|
);
|
|
2123
|
-
v = r(
|
|
2123
|
+
v = r(w, O);
|
|
2124
2124
|
}
|
|
2125
2125
|
if (B(v) || Ye(v)) {
|
|
2126
|
-
let
|
|
2127
|
-
const A = Cl(e,
|
|
2128
|
-
|
|
2126
|
+
let w = !1;
|
|
2127
|
+
const A = Cl(e, O, t, v, O, () => {
|
|
2128
|
+
w = !0;
|
|
2129
2129
|
});
|
|
2130
|
-
return
|
|
2130
|
+
return w ? va : A;
|
|
2131
2131
|
} else
|
|
2132
2132
|
return He(v) ? v : va;
|
|
2133
2133
|
}
|
|
2134
2134
|
};
|
|
2135
|
-
return e.processor && (
|
|
2135
|
+
return e.processor && (f.processor = e.processor), a.list && (f.list = a.list), a.named && (f.named = a.named), Ce(a.plural) && (f.pluralIndex = a.plural), f;
|
|
2136
2136
|
}
|
|
2137
2137
|
qo();
|
|
2138
2138
|
function $r() {
|
|
@@ -2195,11 +2195,11 @@ class ts {
|
|
|
2195
2195
|
args: i,
|
|
2196
2196
|
resolve: () => {
|
|
2197
2197
|
}
|
|
2198
|
-
}), this.fallbacks[s](...i)) : (...i) => new Promise((
|
|
2198
|
+
}), this.fallbacks[s](...i)) : (...i) => new Promise((g) => {
|
|
2199
2199
|
this.targetQueue.push({
|
|
2200
2200
|
method: s,
|
|
2201
2201
|
args: i,
|
|
2202
|
-
resolve:
|
|
2202
|
+
resolve: g
|
|
2203
2203
|
});
|
|
2204
2204
|
})
|
|
2205
2205
|
});
|
|
@@ -2319,8 +2319,8 @@ function Xn(e, t) {
|
|
|
2319
2319
|
const { messages: n, __i18n: a, messageResolver: l, flatJson: o } = t, r = ne(n) ? n : Ee(a) ? de() : { [e]: de() };
|
|
2320
2320
|
if (Ee(a) && a.forEach((s) => {
|
|
2321
2321
|
if ("locale" in s && "resource" in s) {
|
|
2322
|
-
const { locale: i, resource:
|
|
2323
|
-
i ? (r[i] = r[i] || de(), fn(
|
|
2322
|
+
const { locale: i, resource: g } = s;
|
|
2323
|
+
i ? (r[i] = r[i] || de(), fn(g, r[i])) : fn(g, r);
|
|
2324
2324
|
} else
|
|
2325
2325
|
B(s) && fn(JSON.parse(s), r);
|
|
2326
2326
|
}), l == null && o)
|
|
@@ -2357,7 +2357,7 @@ function Il(e, t, n) {
|
|
|
2357
2357
|
}
|
|
2358
2358
|
}
|
|
2359
2359
|
function wa(e) {
|
|
2360
|
-
return
|
|
2360
|
+
return I(lo, null, e, 0);
|
|
2361
2361
|
}
|
|
2362
2362
|
const Da = "__INTLIFY_META__", Ra = () => [], ss = () => !1;
|
|
2363
2363
|
let Fa = 0;
|
|
@@ -2378,9 +2378,9 @@ function Zn(e = {}) {
|
|
|
2378
2378
|
), i = o(
|
|
2379
2379
|
// prettier-ignore
|
|
2380
2380
|
t && r ? t.fallbackLocale.value : B(e.fallbackLocale) || Ee(e.fallbackLocale) || ne(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s.value
|
|
2381
|
-
),
|
|
2382
|
-
let
|
|
2383
|
-
const
|
|
2381
|
+
), g = o(Xn(s.value, e)), b = o(ne(e.datetimeFormats) ? e.datetimeFormats : { [s.value]: {} }), C = o(ne(e.numberFormats) ? e.numberFormats : { [s.value]: {} });
|
|
2382
|
+
let f = t ? t.missingWarn : ce(e.missingWarn) || Wt(e.missingWarn) ? e.missingWarn : !0, O = t ? t.fallbackWarn : ce(e.fallbackWarn) || Wt(e.fallbackWarn) ? e.fallbackWarn : !0, k = t ? t.fallbackRoot : ce(e.fallbackRoot) ? e.fallbackRoot : !0, v = !!e.fallbackFormat, w = pe(e.missing) ? e.missing : null, m = pe(e.missing) ? Pa(e.missing) : null, A = pe(e.postTranslation) ? e.postTranslation : null, p = t ? t.warnHtmlMessage : ce(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, _ = !!e.escapeParameter;
|
|
2383
|
+
const h = t ? t.modifiers : ne(e.modifiers) ? e.modifiers : {};
|
|
2384
2384
|
let F = e.pluralRules || t && t.pluralRules, y;
|
|
2385
2385
|
y = (() => {
|
|
2386
2386
|
a && ya(null);
|
|
@@ -2388,22 +2388,22 @@ function Zn(e = {}) {
|
|
|
2388
2388
|
version: as,
|
|
2389
2389
|
locale: s.value,
|
|
2390
2390
|
fallbackLocale: i.value,
|
|
2391
|
-
messages:
|
|
2392
|
-
modifiers:
|
|
2391
|
+
messages: g.value,
|
|
2392
|
+
modifiers: h,
|
|
2393
2393
|
pluralRules: F,
|
|
2394
2394
|
missing: m === null ? void 0 : m,
|
|
2395
|
-
missingWarn:
|
|
2396
|
-
fallbackWarn:
|
|
2395
|
+
missingWarn: f,
|
|
2396
|
+
fallbackWarn: O,
|
|
2397
2397
|
fallbackFormat: v,
|
|
2398
2398
|
unresolving: !0,
|
|
2399
2399
|
postTranslation: A === null ? void 0 : A,
|
|
2400
|
-
warnHtmlMessage:
|
|
2400
|
+
warnHtmlMessage: p,
|
|
2401
2401
|
escapeParameter: _,
|
|
2402
2402
|
messageResolver: e.messageResolver,
|
|
2403
2403
|
messageCompiler: e.messageCompiler,
|
|
2404
2404
|
__meta: { framework: "vue" }
|
|
2405
2405
|
};
|
|
2406
|
-
N.datetimeFormats =
|
|
2406
|
+
N.datetimeFormats = b.value, N.numberFormats = C.value, N.__datetimeFormatters = ne(y) ? y.__datetimeFormatters : void 0, N.__numberFormatters = ne(y) ? y.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (N.__v_emitter = ne(y) ? y.__v_emitter : void 0);
|
|
2407
2407
|
const P = Fr(N);
|
|
2408
2408
|
return a && ya(P), P;
|
|
2409
2409
|
})(), $t(y, s.value, i.value);
|
|
@@ -2411,12 +2411,12 @@ function Zn(e = {}) {
|
|
|
2411
2411
|
return [
|
|
2412
2412
|
s.value,
|
|
2413
2413
|
i.value,
|
|
2414
|
-
|
|
2415
|
-
|
|
2414
|
+
g.value,
|
|
2415
|
+
b.value,
|
|
2416
2416
|
C.value
|
|
2417
2417
|
];
|
|
2418
2418
|
}
|
|
2419
|
-
const
|
|
2419
|
+
const $ = Lt({
|
|
2420
2420
|
get: () => s.value,
|
|
2421
2421
|
set: (N) => {
|
|
2422
2422
|
s.value = N, y.locale = s.value;
|
|
@@ -2426,7 +2426,7 @@ function Zn(e = {}) {
|
|
|
2426
2426
|
set: (N) => {
|
|
2427
2427
|
i.value = N, y.fallbackLocale = i.value, $t(y, s.value, N);
|
|
2428
2428
|
}
|
|
2429
|
-
}), te = Lt(() =>
|
|
2429
|
+
}), te = Lt(() => g.value), he = /* @__PURE__ */ Lt(() => b.value), ue = /* @__PURE__ */ Lt(() => C.value);
|
|
2430
2430
|
function De() {
|
|
2431
2431
|
return pe(A) ? A : null;
|
|
2432
2432
|
}
|
|
@@ -2434,10 +2434,10 @@ function Zn(e = {}) {
|
|
|
2434
2434
|
A = N, y.postTranslation = N;
|
|
2435
2435
|
}
|
|
2436
2436
|
function z() {
|
|
2437
|
-
return
|
|
2437
|
+
return w;
|
|
2438
2438
|
}
|
|
2439
2439
|
function Ke(N) {
|
|
2440
|
-
N !== null && (m = Pa(N)),
|
|
2440
|
+
N !== null && (m = Pa(N)), w = N, y.missing = m;
|
|
2441
2441
|
}
|
|
2442
2442
|
function rt(N, P) {
|
|
2443
2443
|
return N !== "translate" || !P.resolvedMessage;
|
|
@@ -2453,7 +2453,7 @@ function Zn(e = {}) {
|
|
|
2453
2453
|
if (se !== "translate exists" && // for not `te` (e.g `t`)
|
|
2454
2454
|
Ce(_t) && _t === En || se === "translate exists" && !_t) {
|
|
2455
2455
|
const [st, Tn] = P();
|
|
2456
|
-
if (process.env.NODE_ENV !== "production" && t && B(st) && rt(se, Tn) && (k && (hn(
|
|
2456
|
+
if (process.env.NODE_ENV !== "production" && t && B(st) && rt(se, Tn) && (k && (hn(O, st) || _l(f, st)) && ft(yn(bt.FALLBACK_TO_ROOT, {
|
|
2457
2457
|
key: st,
|
|
2458
2458
|
type: se
|
|
2459
2459
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -2528,7 +2528,7 @@ function Zn(e = {}) {
|
|
|
2528
2528
|
let P = null;
|
|
2529
2529
|
const se = cl(y, i.value, s.value);
|
|
2530
2530
|
for (let be = 0; be < se.length; be++) {
|
|
2531
|
-
const tt =
|
|
2531
|
+
const tt = g.value[se[be]] || {}, gt = y.messageResolver(tt, N);
|
|
2532
2532
|
if (gt != null) {
|
|
2533
2533
|
P = gt;
|
|
2534
2534
|
break;
|
|
@@ -2541,7 +2541,7 @@ function Zn(e = {}) {
|
|
|
2541
2541
|
return P ?? (t ? t.tm(N) || {} : {});
|
|
2542
2542
|
}
|
|
2543
2543
|
function Be(N) {
|
|
2544
|
-
return
|
|
2544
|
+
return g.value[N] || {};
|
|
2545
2545
|
}
|
|
2546
2546
|
function et(N, P) {
|
|
2547
2547
|
if (l) {
|
|
@@ -2550,26 +2550,26 @@ function Zn(e = {}) {
|
|
|
2550
2550
|
Ze(se, be) && nn(se[be]);
|
|
2551
2551
|
P = se[N];
|
|
2552
2552
|
}
|
|
2553
|
-
|
|
2553
|
+
g.value[N] = P, y.messages = g.value;
|
|
2554
2554
|
}
|
|
2555
2555
|
function St(N, P) {
|
|
2556
|
-
|
|
2556
|
+
g.value[N] = g.value[N] || {};
|
|
2557
2557
|
const se = { [N]: P };
|
|
2558
2558
|
if (l)
|
|
2559
2559
|
for (const be in se)
|
|
2560
2560
|
Ze(se, be) && nn(se[be]);
|
|
2561
|
-
P = se[N], fn(P,
|
|
2561
|
+
P = se[N], fn(P, g.value[N]), y.messages = g.value;
|
|
2562
2562
|
}
|
|
2563
2563
|
function c(N) {
|
|
2564
|
-
return
|
|
2564
|
+
return b.value[N] || {};
|
|
2565
2565
|
}
|
|
2566
2566
|
function d(N, P) {
|
|
2567
|
-
|
|
2567
|
+
b.value[N] = P, y.datetimeFormats = b.value, ka(y, N, P);
|
|
2568
2568
|
}
|
|
2569
2569
|
function R(N, P) {
|
|
2570
|
-
|
|
2570
|
+
b.value[N] = ke(b.value[N] || {}, P), y.datetimeFormats = b.value, ka(y, N, P);
|
|
2571
2571
|
}
|
|
2572
|
-
function
|
|
2572
|
+
function x(N) {
|
|
2573
2573
|
return C.value[N] || {};
|
|
2574
2574
|
}
|
|
2575
2575
|
function _e(N, P) {
|
|
@@ -2585,7 +2585,7 @@ function Zn(e = {}) {
|
|
|
2585
2585
|
}));
|
|
2586
2586
|
const oe = {
|
|
2587
2587
|
id: Fa,
|
|
2588
|
-
locale:
|
|
2588
|
+
locale: $,
|
|
2589
2589
|
fallbackLocale: Y,
|
|
2590
2590
|
get inheritLocale() {
|
|
2591
2591
|
return r;
|
|
@@ -2594,11 +2594,11 @@ function Zn(e = {}) {
|
|
|
2594
2594
|
r = N, N && t && (s.value = t.locale.value, i.value = t.fallbackLocale.value, $t(y, s.value, i.value));
|
|
2595
2595
|
},
|
|
2596
2596
|
get availableLocales() {
|
|
2597
|
-
return Object.keys(
|
|
2597
|
+
return Object.keys(g.value).sort();
|
|
2598
2598
|
},
|
|
2599
2599
|
messages: te,
|
|
2600
2600
|
get modifiers() {
|
|
2601
|
-
return
|
|
2601
|
+
return h;
|
|
2602
2602
|
},
|
|
2603
2603
|
get pluralRules() {
|
|
2604
2604
|
return F || {};
|
|
@@ -2607,16 +2607,16 @@ function Zn(e = {}) {
|
|
|
2607
2607
|
return a;
|
|
2608
2608
|
},
|
|
2609
2609
|
get missingWarn() {
|
|
2610
|
-
return
|
|
2610
|
+
return f;
|
|
2611
2611
|
},
|
|
2612
2612
|
set missingWarn(N) {
|
|
2613
|
-
|
|
2613
|
+
f = N, y.missingWarn = f;
|
|
2614
2614
|
},
|
|
2615
2615
|
get fallbackWarn() {
|
|
2616
|
-
return
|
|
2616
|
+
return O;
|
|
2617
2617
|
},
|
|
2618
2618
|
set fallbackWarn(N) {
|
|
2619
|
-
|
|
2619
|
+
O = N, y.fallbackWarn = O;
|
|
2620
2620
|
},
|
|
2621
2621
|
get fallbackRoot() {
|
|
2622
2622
|
return k;
|
|
@@ -2631,10 +2631,10 @@ function Zn(e = {}) {
|
|
|
2631
2631
|
v = N, y.fallbackFormat = v;
|
|
2632
2632
|
},
|
|
2633
2633
|
get warnHtmlMessage() {
|
|
2634
|
-
return
|
|
2634
|
+
return p;
|
|
2635
2635
|
},
|
|
2636
2636
|
set warnHtmlMessage(N) {
|
|
2637
|
-
|
|
2637
|
+
p = N, y.warnHtmlMessage = N;
|
|
2638
2638
|
},
|
|
2639
2639
|
get escapeParameter() {
|
|
2640
2640
|
return _;
|
|
@@ -2652,7 +2652,7 @@ function Zn(e = {}) {
|
|
|
2652
2652
|
setMissingHandler: Ke,
|
|
2653
2653
|
[Nl]: Ut
|
|
2654
2654
|
};
|
|
2655
|
-
return oe.datetimeFormats = he, oe.numberFormats = ue, oe.rt = Ge, oe.te = qt, oe.tm = kt, oe.d = Ct, oe.n = mt, oe.getDateTimeFormat = c, oe.setDateTimeFormat = d, oe.mergeDateTimeFormat = R, oe.getNumberFormat =
|
|
2655
|
+
return oe.datetimeFormats = he, oe.numberFormats = ue, oe.rt = Ge, oe.te = qt, oe.tm = kt, oe.d = Ct, oe.n = mt, oe.getDateTimeFormat = c, oe.setDateTimeFormat = d, oe.mergeDateTimeFormat = R, oe.getNumberFormat = x, oe.setNumberFormat = _e, oe.mergeNumberFormat = Ae, oe[kl] = n, oe[Un] = Pt, oe[Mn] = pt, oe[Bn] = Gt, process.env.NODE_ENV !== "production" && (oe[Rt] = (N) => {
|
|
2656
2656
|
y.__v_emitter = N;
|
|
2657
2657
|
}, oe[tn] = () => {
|
|
2658
2658
|
y.__v_emitter = void 0;
|
|
@@ -2883,7 +2883,7 @@ function hs(e) {
|
|
|
2883
2883
|
}
|
|
2884
2884
|
];
|
|
2885
2885
|
t[r] = s;
|
|
2886
|
-
const i = "Datetime formats info",
|
|
2886
|
+
const i = "Datetime formats info", g = [
|
|
2887
2887
|
{
|
|
2888
2888
|
type: i,
|
|
2889
2889
|
key: "numberFormats",
|
|
@@ -2891,7 +2891,7 @@ function hs(e) {
|
|
|
2891
2891
|
value: e.numberFormats.value
|
|
2892
2892
|
}
|
|
2893
2893
|
];
|
|
2894
|
-
t[i] =
|
|
2894
|
+
t[i] = g;
|
|
2895
2895
|
}
|
|
2896
2896
|
return t;
|
|
2897
2897
|
}
|
|
@@ -2919,37 +2919,37 @@ function ys(e, t) {
|
|
|
2919
2919
|
}
|
|
2920
2920
|
}
|
|
2921
2921
|
function Cs(e) {
|
|
2922
|
-
const t = B(e.locale) ? e.locale : en, 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) || Wt(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, o = ce(e.silentFallbackWarn) || Wt(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, r = ce(e.fallbackRoot) ? e.fallbackRoot : !0, s = !!e.formatFallbackMessages, i = ne(e.modifiers) ? e.modifiers : {},
|
|
2922
|
+
const t = B(e.locale) ? e.locale : en, 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) || Wt(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, o = ce(e.silentFallbackWarn) || Wt(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, r = ce(e.fallbackRoot) ? e.fallbackRoot : !0, s = !!e.formatFallbackMessages, i = ne(e.modifiers) ? e.modifiers : {}, g = e.pluralizationRules, b = pe(e.postTranslation) ? e.postTranslation : void 0, C = B(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, f = !!e.escapeParameterHtml, O = ce(e.sync) ? e.sync : !0;
|
|
2923
2923
|
let k = e.messages;
|
|
2924
2924
|
if (ne(e.sharedMessages)) {
|
|
2925
|
-
const
|
|
2926
|
-
k = Object.keys(
|
|
2927
|
-
const D = y[
|
|
2928
|
-
return ke(D,
|
|
2925
|
+
const h = e.sharedMessages;
|
|
2926
|
+
k = Object.keys(h).reduce((y, S) => {
|
|
2927
|
+
const D = y[S] || (y[S] = {});
|
|
2928
|
+
return ke(D, h[S]), y;
|
|
2929
2929
|
}, k || {});
|
|
2930
2930
|
}
|
|
2931
|
-
const { __i18n: v, __root:
|
|
2931
|
+
const { __i18n: v, __root: w, __injectWithOption: m } = e, A = e.datetimeFormats, p = e.numberFormats, _ = e.flatJson;
|
|
2932
2932
|
return {
|
|
2933
2933
|
locale: t,
|
|
2934
2934
|
fallbackLocale: n,
|
|
2935
2935
|
messages: k,
|
|
2936
2936
|
flatJson: _,
|
|
2937
2937
|
datetimeFormats: A,
|
|
2938
|
-
numberFormats:
|
|
2938
|
+
numberFormats: p,
|
|
2939
2939
|
missing: a,
|
|
2940
2940
|
missingWarn: l,
|
|
2941
2941
|
fallbackWarn: o,
|
|
2942
2942
|
fallbackRoot: r,
|
|
2943
2943
|
fallbackFormat: s,
|
|
2944
2944
|
modifiers: i,
|
|
2945
|
-
pluralRules:
|
|
2946
|
-
postTranslation:
|
|
2945
|
+
pluralRules: g,
|
|
2946
|
+
postTranslation: b,
|
|
2947
2947
|
warnHtmlMessage: C,
|
|
2948
|
-
escapeParameter:
|
|
2948
|
+
escapeParameter: f,
|
|
2949
2949
|
messageResolver: e.messageResolver,
|
|
2950
|
-
inheritLocale:
|
|
2950
|
+
inheritLocale: O,
|
|
2951
2951
|
__i18n: v,
|
|
2952
|
-
__root:
|
|
2952
|
+
__root: w,
|
|
2953
2953
|
__injectWithOption: m
|
|
2954
2954
|
};
|
|
2955
2955
|
}
|
|
@@ -3064,13 +3064,13 @@ function Qn(e = {}) {
|
|
|
3064
3064
|
// tc
|
|
3065
3065
|
tc(...l) {
|
|
3066
3066
|
const [o, r, s] = l, i = { plural: 1 };
|
|
3067
|
-
let
|
|
3067
|
+
let g = null, b = null;
|
|
3068
3068
|
if (process.env.NODE_ENV !== "production" && za(yn(bt.DEPRECATE_TC)), !B(o))
|
|
3069
3069
|
throw Pe(me.INVALID_ARGUMENT);
|
|
3070
3070
|
const C = o;
|
|
3071
|
-
return B(r) ? i.locale = r : Ce(r) ? i.plural = r : Ee(r) ?
|
|
3071
|
+
return B(r) ? i.locale = r : Ce(r) ? i.plural = r : Ee(r) ? g = r : ne(r) && (b = r), B(s) ? i.locale = s : Ee(s) ? g = s : ne(s) && (b = s), Reflect.apply(t.t, t, [
|
|
3072
3072
|
C,
|
|
3073
|
-
|
|
3073
|
+
g || b || {},
|
|
3074
3074
|
i
|
|
3075
3075
|
]);
|
|
3076
3076
|
},
|
|
@@ -3247,8 +3247,8 @@ const ks = /* @__PURE__ */ Et({
|
|
|
3247
3247
|
return () => {
|
|
3248
3248
|
const o = Object.keys(n).filter((C) => C !== "_"), r = de();
|
|
3249
3249
|
e.locale && (r.locale = e.locale), e.plural !== void 0 && (r.plural = B(e.plural) ? +e.plural : e.plural);
|
|
3250
|
-
const s = Ns(t, o), i = l[Un](e.keypath, s, r),
|
|
3251
|
-
return Ja(
|
|
3250
|
+
const s = Ns(t, o), i = l[Un](e.keypath, s, r), g = ke(de(), a), b = B(e.tag) || ie(e.tag) ? e.tag : wl();
|
|
3251
|
+
return Ja(b, g, i);
|
|
3252
3252
|
};
|
|
3253
3253
|
}
|
|
3254
3254
|
}), Ba = ks;
|
|
@@ -3260,15 +3260,15 @@ function Dl(e, t, n, a) {
|
|
|
3260
3260
|
return () => {
|
|
3261
3261
|
const r = { part: !0 };
|
|
3262
3262
|
let s = de();
|
|
3263
|
-
e.locale && (r.locale = e.locale), B(e.format) ? r.key = e.format : ie(e.format) && (B(e.format.key) && (r.key = e.format.key), s = Object.keys(e.format).reduce((
|
|
3263
|
+
e.locale && (r.locale = e.locale), B(e.format) ? r.key = e.format : ie(e.format) && (B(e.format.key) && (r.key = e.format.key), s = Object.keys(e.format).reduce((f, O) => n.includes(O) ? ke(de(), f, { [O]: e.format[O] }) : f, de()));
|
|
3264
3264
|
const i = a(e.value, r, s);
|
|
3265
|
-
let
|
|
3266
|
-
Ee(i) ?
|
|
3267
|
-
const k = l[
|
|
3268
|
-
return Ss(v) && (v[0].key = `${
|
|
3269
|
-
}) : B(i) && (
|
|
3270
|
-
const
|
|
3271
|
-
return Ja(C,
|
|
3265
|
+
let g = [r.key];
|
|
3266
|
+
Ee(i) ? g = i.map((f, O) => {
|
|
3267
|
+
const k = l[f.type], v = k ? k({ [f.type]: f.value, index: O, parts: i }) : [f.value];
|
|
3268
|
+
return Ss(v) && (v[0].key = `${f.type}-${O}`), v;
|
|
3269
|
+
}) : B(i) && (g = [i]);
|
|
3270
|
+
const b = ke(de(), o), C = B(e.tag) || ie(e.tag) ? e.tag : wl();
|
|
3271
|
+
return Ja(C, b, g);
|
|
3272
3272
|
};
|
|
3273
3273
|
}
|
|
3274
3274
|
const Is = /* @__PURE__ */ Et({
|
|
@@ -3334,27 +3334,27 @@ function Os(e) {
|
|
|
3334
3334
|
const { instance: s, value: i } = r;
|
|
3335
3335
|
if (!s || !s.$)
|
|
3336
3336
|
throw Pe(me.UNEXPECTED_ERROR);
|
|
3337
|
-
const
|
|
3337
|
+
const g = vs(e, s.$), b = Qa(i);
|
|
3338
3338
|
return [
|
|
3339
|
-
Reflect.apply(
|
|
3340
|
-
|
|
3339
|
+
Reflect.apply(g.t, g, [...Wa(b)]),
|
|
3340
|
+
g
|
|
3341
3341
|
];
|
|
3342
3342
|
};
|
|
3343
3343
|
return {
|
|
3344
3344
|
created: (r, s) => {
|
|
3345
|
-
const [i,
|
|
3346
|
-
ze && e.global ===
|
|
3345
|
+
const [i, g] = t(s);
|
|
3346
|
+
ze && e.global === g && (r.__i18nWatcher = dt(g.locale, () => {
|
|
3347
3347
|
s.instance && s.instance.$forceUpdate();
|
|
3348
|
-
})), r.__composer =
|
|
3348
|
+
})), r.__composer = g, r.textContent = i;
|
|
3349
3349
|
},
|
|
3350
3350
|
unmounted: (r) => {
|
|
3351
3351
|
ze && r.__i18nWatcher && (r.__i18nWatcher(), r.__i18nWatcher = void 0, delete r.__i18nWatcher), r.__composer && (r.__composer = void 0, delete r.__composer);
|
|
3352
3352
|
},
|
|
3353
3353
|
beforeUpdate: (r, { value: s }) => {
|
|
3354
3354
|
if (r.__composer) {
|
|
3355
|
-
const i = r.__composer,
|
|
3355
|
+
const i = r.__composer, g = Qa(s);
|
|
3356
3356
|
r.textContent = Reflect.apply(i.t, i, [
|
|
3357
|
-
...Wa(
|
|
3357
|
+
...Wa(g)
|
|
3358
3358
|
]);
|
|
3359
3359
|
}
|
|
3360
3360
|
},
|
|
@@ -3385,14 +3385,14 @@ function ws(e, t, ...n) {
|
|
|
3385
3385
|
const Ds = /* @__PURE__ */ ot("global-vue-i18n");
|
|
3386
3386
|
function Rl(e = {}, t) {
|
|
3387
3387
|
const n = __VUE_I18N_LEGACY_API__ && ce(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__, a = ce(e.globalInjection) ? e.globalInjection : !0, l = /* @__PURE__ */ new Map(), [o, r] = Rs(e, n), s = /* @__PURE__ */ ot(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3388
|
-
function i(
|
|
3389
|
-
return l.get(
|
|
3388
|
+
function i(f) {
|
|
3389
|
+
return l.get(f) || null;
|
|
3390
3390
|
}
|
|
3391
|
-
function f
|
|
3392
|
-
l.set(
|
|
3391
|
+
function g(f, O) {
|
|
3392
|
+
l.set(f, O);
|
|
3393
3393
|
}
|
|
3394
|
-
function
|
|
3395
|
-
l.delete(
|
|
3394
|
+
function b(f) {
|
|
3395
|
+
l.delete(f);
|
|
3396
3396
|
}
|
|
3397
3397
|
const C = {
|
|
3398
3398
|
// mode
|
|
@@ -3400,18 +3400,18 @@ function Rl(e = {}, t) {
|
|
|
3400
3400
|
return __VUE_I18N_LEGACY_API__ && n ? "legacy" : "composition";
|
|
3401
3401
|
},
|
|
3402
3402
|
// install plugin
|
|
3403
|
-
async install(
|
|
3404
|
-
if (process.env.NODE_ENV !== "production" && (
|
|
3405
|
-
const
|
|
3406
|
-
C.__composerExtend =
|
|
3403
|
+
async install(f, ...O) {
|
|
3404
|
+
if (process.env.NODE_ENV !== "production" && (f.__VUE_I18N__ = C), f.__VUE_I18N_SYMBOL__ = s, f.provide(f.__VUE_I18N_SYMBOL__, C), ne(O[0])) {
|
|
3405
|
+
const w = O[0];
|
|
3406
|
+
C.__composerExtend = w.__composerExtend, C.__vueI18nExtend = w.__vueI18nExtend;
|
|
3407
3407
|
}
|
|
3408
3408
|
let k = null;
|
|
3409
|
-
!n && a && (k = Qs(
|
|
3410
|
-
const v =
|
|
3411
|
-
if (
|
|
3409
|
+
!n && a && (k = Qs(f, C.global)), __VUE_I18N_FULL_INSTALL__ && ws(f, C, ...O), __VUE_I18N_LEGACY_API__ && n && f.mixin(Ts(r, r.__composer, C));
|
|
3410
|
+
const v = f.unmount;
|
|
3411
|
+
if (f.unmount = () => {
|
|
3412
3412
|
k && k(), C.dispose(), v();
|
|
3413
3413
|
}, process.env.NODE_ENV !== "production") {
|
|
3414
|
-
if (!await ds(
|
|
3414
|
+
if (!await ds(f, C))
|
|
3415
3415
|
throw Pe(me.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3416
3416
|
const m = jn();
|
|
3417
3417
|
if (n) {
|
|
@@ -3436,9 +3436,9 @@ function Rl(e = {}, t) {
|
|
|
3436
3436
|
// @internal
|
|
3437
3437
|
__getInstance: i,
|
|
3438
3438
|
// @internal
|
|
3439
|
-
__setInstance:
|
|
3439
|
+
__setInstance: g,
|
|
3440
3440
|
// @internal
|
|
3441
|
-
__deleteInstance:
|
|
3441
|
+
__deleteInstance: b
|
|
3442
3442
|
};
|
|
3443
3443
|
return C;
|
|
3444
3444
|
}
|
|
@@ -3732,20 +3732,22 @@ const Fl = "3.7.8", Ws = Fl, Kt = typeof Buffer == "function", Ya = typeof TextD
|
|
|
3732
3732
|
}, li = () => {
|
|
3733
3733
|
function e(s, i) {
|
|
3734
3734
|
try {
|
|
3735
|
-
const
|
|
3736
|
-
let
|
|
3737
|
-
const C =
|
|
3735
|
+
const g = decodeURI(s.headers["content-disposition"]);
|
|
3736
|
+
let b = i || g.split("filename*=utf-8")[1];
|
|
3737
|
+
const C = b.substring(b.lastIndexOf(".") + 1), f = new Blob([s.data], { type: ai[C] ?? "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" }), k = (window.URL || window.webkitURL).createObjectURL(f), v = document.createElement("a");
|
|
3738
3738
|
v.setAttribute("href", k);
|
|
3739
|
-
const
|
|
3740
|
-
|
|
3741
|
-
} catch (
|
|
3742
|
-
console.error(
|
|
3739
|
+
const w = b.lastIndexOf(".");
|
|
3740
|
+
b = `${b.slice(0, w)}_${Ve().format("YYYYMMDD") + b.slice(w)}`, v.setAttribute("download", b), document.body.appendChild(v), v.click(), document.body.removeChild(v), window.URL.revokeObjectURL(k);
|
|
3741
|
+
} catch (g) {
|
|
3742
|
+
console.error(g);
|
|
3743
3743
|
}
|
|
3744
3744
|
}
|
|
3745
|
-
function t({ multiple: s = !1 },
|
|
3746
|
-
const
|
|
3747
|
-
|
|
3748
|
-
|
|
3745
|
+
function t({ multiple: s = !1, acceptTypes: i = "" }, g) {
|
|
3746
|
+
const b = document.createElement("input");
|
|
3747
|
+
b.style.display = "none", b.setAttribute("type", "file"), s && b.setAttribute("multiple", s);
|
|
3748
|
+
const C = "application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,.xml";
|
|
3749
|
+
b.setAttribute("accept", i || C), document.body.appendChild(b), b.click(), b.addEventListener("change", (f) => {
|
|
3750
|
+
g(f) && document.body.removeChild(b);
|
|
3749
3751
|
});
|
|
3750
3752
|
}
|
|
3751
3753
|
function n(s) {
|
|
@@ -3754,41 +3756,41 @@ const Fl = "3.7.8", Ws = Fl, Kt = typeof Buffer == "function", Ya = typeof TextD
|
|
|
3754
3756
|
function a(s) {
|
|
3755
3757
|
return s ? new URL((/* @__PURE__ */ Object.assign({ "../static/images/upload-excel.png": zs, "../static/images/upload-file.png": ei, "../static/images/upload-pdf.png": ti, "../static/images/upload-word.png": ni }))[`../static/${s}`], self.location).href : "";
|
|
3756
3758
|
}
|
|
3757
|
-
function l(s, i,
|
|
3759
|
+
function l(s, i, g) {
|
|
3758
3760
|
if (!i)
|
|
3759
3761
|
return;
|
|
3760
|
-
let
|
|
3761
|
-
const C =
|
|
3762
|
-
|
|
3763
|
-
const
|
|
3764
|
-
s({ url: i, method: "GET", responseType: "blob" }).then((
|
|
3765
|
-
let k =
|
|
3766
|
-
if (k.type === "application/json" &&
|
|
3762
|
+
let b = g || n(i);
|
|
3763
|
+
const C = b.lastIndexOf(".");
|
|
3764
|
+
b = `${b.slice(0, C)}_${Date.now() + b.slice(C)}`;
|
|
3765
|
+
const f = b.includes(".") ? b.split(".").pop().toLowerCase() : "";
|
|
3766
|
+
s({ url: i, method: "GET", responseType: "blob" }).then((O) => {
|
|
3767
|
+
let k = O.data;
|
|
3768
|
+
if (k.type === "application/json" && f !== "json") {
|
|
3767
3769
|
const v = new FileReader();
|
|
3768
3770
|
v.readAsText(k, "utf-8"), v.onload = function() {
|
|
3769
3771
|
try {
|
|
3770
|
-
const
|
|
3771
|
-
if (
|
|
3772
|
+
const w = JSON.parse(v.result);
|
|
3773
|
+
if (w.code && w.code !== 200 && w.code !== 0) {
|
|
3772
3774
|
Re.error({
|
|
3773
3775
|
title: "错误",
|
|
3774
|
-
message:
|
|
3776
|
+
message: w.msg || "下载失败"
|
|
3775
3777
|
});
|
|
3776
3778
|
return;
|
|
3777
3779
|
}
|
|
3778
|
-
} catch (
|
|
3779
|
-
console.error("解析 JSON 失败:",
|
|
3780
|
+
} catch (w) {
|
|
3781
|
+
console.error("解析 JSON 失败:", w);
|
|
3780
3782
|
}
|
|
3781
|
-
o(k,
|
|
3783
|
+
o(k, b);
|
|
3782
3784
|
};
|
|
3783
3785
|
return;
|
|
3784
3786
|
}
|
|
3785
|
-
o(k,
|
|
3787
|
+
o(k, b);
|
|
3786
3788
|
});
|
|
3787
3789
|
}
|
|
3788
3790
|
function o(s, i) {
|
|
3789
|
-
const
|
|
3790
|
-
|
|
3791
|
-
window.URL.revokeObjectURL(
|
|
3791
|
+
const g = URL.createObjectURL(s), b = document.createElement("a");
|
|
3792
|
+
b.style.display = "none", b.href = g, b.download = i, document.body.appendChild(b), b.click(), document.body.removeChild(b), setTimeout(() => {
|
|
3793
|
+
window.URL.revokeObjectURL(g);
|
|
3792
3794
|
}, 1e3);
|
|
3793
3795
|
}
|
|
3794
3796
|
function r(s) {
|
|
@@ -3925,18 +3927,18 @@ const pi = {
|
|
|
3925
3927
|
emits: ["changeSelection", "onClickRow", "changeExpansionRow", "refresh", "load", "operate"],
|
|
3926
3928
|
setup(e, { expose: t, emit: n }) {
|
|
3927
3929
|
const a = ut({
|
|
3928
|
-
loader: () => import("./index-
|
|
3930
|
+
loader: () => import("./index-e8b347a8.js"),
|
|
3929
3931
|
loadingComponent: dn,
|
|
3930
3932
|
delay: 20
|
|
3931
3933
|
}), l = ut({
|
|
3932
|
-
loader: () => import("./index-
|
|
3934
|
+
loader: () => import("./index-e391f7db.js"),
|
|
3933
3935
|
loadingComponent: dn,
|
|
3934
3936
|
delay: 20
|
|
3935
3937
|
}), o = ut({
|
|
3936
|
-
loader: () => import("./index-
|
|
3938
|
+
loader: () => import("./index-46b1de3c.js"),
|
|
3937
3939
|
loadingComponent: dn,
|
|
3938
3940
|
delay: 20
|
|
3939
|
-
}), r = ut(() => import("./index-
|
|
3941
|
+
}), r = ut(() => import("./index-fc05088e.js")), s = ut(() => import("./index-f88ed3ab.js")), { t: i } = Cn(), g = Oe("actModules"), b = Oe("apiPrefix"), C = Oe("request"), f = Oe("themeColor"), O = Oe("cacheTokenType"), k = Oe("cookieStorage"), v = Oe("menuAuthButtons"), w = _n(), m = Za(), A = n, p = e, _ = () => ({
|
|
3940
3942
|
pageLoading: !1,
|
|
3941
3943
|
tableLoading: !1,
|
|
3942
3944
|
tableTotal: 0,
|
|
@@ -3951,155 +3953,155 @@ const pi = {
|
|
|
3951
3953
|
editorDialogTitle: "",
|
|
3952
3954
|
dialogData: {}
|
|
3953
3955
|
});
|
|
3954
|
-
let
|
|
3956
|
+
let h = Vt(_()), F = ae("loading"), y = ae([]), S = {}, D = [], $ = ae([]), Y = ae([]), te = ae([]), he = ae([]), ue = ae([]), De = ae({});
|
|
3955
3957
|
const le = ae(null), z = ae(null), Ke = ae(null), rt = ae(null), Ue = ae(0);
|
|
3956
3958
|
let je = ae({});
|
|
3957
|
-
const Ge = (u) => C({ url: `${
|
|
3958
|
-
|
|
3959
|
+
const Ge = (u) => C({ url: `${b}/sysOperate/getMenuOfOperateByRole`, method: "post", data: u }), Ct = (u) => C({ url: `${b}/pages/getPageDetail?key=${u}`, method: "get" }), mt = () => {
|
|
3960
|
+
h = Vt(_()), F.value = "loading", y.value = [], S = {}, D = [], $.value = [], Y.value = [], te.value = [], he.value = [], ue.value = [], je.value = {};
|
|
3959
3961
|
}, Tt = () => {
|
|
3960
3962
|
ro(() => {
|
|
3961
3963
|
setTimeout(() => {
|
|
3962
|
-
var
|
|
3963
|
-
const u = ((
|
|
3964
|
-
Ue.value =
|
|
3964
|
+
var W, H, Q, M, U, q, J;
|
|
3965
|
+
const u = ((H = (W = le.value) == null ? void 0 : W.$el) == null ? void 0 : H.offsetHeight) || 0, E = ((M = (Q = z.value) == null ? void 0 : Q.$el) == null ? void 0 : M.offsetHeight) || 0, V = ((q = (U = Ke.value) == null ? void 0 : U.$el) == null ? void 0 : q.offsetHeight) || 0, j = u - E - V - 6;
|
|
3966
|
+
Ue.value = p.maxHeight > 0 ? p.maxHeight : (J = S == null ? void 0 : S.tableConfig) != null && J.isPagination ? j - 48 : j;
|
|
3965
3967
|
}, 500);
|
|
3966
3968
|
});
|
|
3967
3969
|
}, fe = () => [...Nn(D)], jt = (u) => {
|
|
3968
3970
|
rt.value.updateSelection(u);
|
|
3969
3971
|
}, Pt = () => {
|
|
3970
3972
|
rt.value.clearSelection();
|
|
3971
|
-
}, Gt = () =>
|
|
3973
|
+
}, Gt = () => h.tableSelection, pt = async () => {
|
|
3972
3974
|
await qe(D), A("refresh");
|
|
3973
3975
|
}, Ut = (u) => {
|
|
3974
3976
|
if (!u || !u.tableQueryDefaultValue)
|
|
3975
3977
|
return;
|
|
3976
|
-
const
|
|
3978
|
+
const V = et(u)["value-format"] || "YYYY-MM-DD HH:mm:ss";
|
|
3977
3979
|
if (u.fieldType == "date" && u.tableQueryDefaultValue == "nowYear")
|
|
3978
|
-
return Ve().format(
|
|
3980
|
+
return Ve().format(V);
|
|
3979
3981
|
if (u.fieldType == "date" && u.tableQueryDefaultValue == "yearAgo")
|
|
3980
|
-
return Ve().subtract(1, "year").format(
|
|
3982
|
+
return Ve().subtract(1, "year").format(V);
|
|
3981
3983
|
if (u.fieldType == "dateRange" && u.tableQueryDefaultValue.includes("&")) {
|
|
3982
3984
|
const j = u.tableQueryDefaultValue.split("&");
|
|
3983
|
-
return [Ve(j[0]).subtract(6, "month").format(
|
|
3985
|
+
return [Ve(j[0]).subtract(6, "month").format(V), Ve(j[1]).format(V)];
|
|
3984
3986
|
}
|
|
3985
3987
|
if (u.fieldType == "dateRange" && u.tableQueryDefaultValue == "yearAgo")
|
|
3986
|
-
return [Ve().subtract(1, "year").format(
|
|
3988
|
+
return [Ve().subtract(1, "year").format(V), Ve().format(V)];
|
|
3987
3989
|
if (u.fieldType == "dateRange" && u.tableQueryDefaultValue == "sixMonthsAgo")
|
|
3988
|
-
return [Ve().subtract(6, "month").format(
|
|
3989
|
-
}, qt = (u,
|
|
3990
|
-
if (!(
|
|
3990
|
+
return [Ve().subtract(6, "month").format(V), Ve().format(V)];
|
|
3991
|
+
}, qt = (u, E) => {
|
|
3992
|
+
if (!(E.row && Object.keys(E.row).length))
|
|
3991
3993
|
return;
|
|
3992
|
-
const j = (
|
|
3993
|
-
return /(gif|jpg|jpeg|png|pdf|bmp|webp|GIF|JPG|PDF|PNG|JPEG)$/.test(
|
|
3994
|
-
}, Nt = (u,
|
|
3995
|
-
if (!(
|
|
3994
|
+
const j = (E.row[u.fieldKey] ?? "").split(";"), W = j && j.length ? j[0] : "", H = W.substring(W.lastIndexOf(".") + 1);
|
|
3995
|
+
return /(gif|jpg|jpeg|png|pdf|bmp|webp|GIF|JPG|PDF|PNG|JPEG)$/.test(H);
|
|
3996
|
+
}, Nt = (u, E) => {
|
|
3997
|
+
if (!(E.row && Object.keys(E.row).length))
|
|
3996
3998
|
return;
|
|
3997
|
-
const j = (
|
|
3999
|
+
const j = (E.row[u.fieldKey] ?? "").split(";");
|
|
3998
4000
|
return j && j.length ? j[0] : "";
|
|
3999
|
-
}, kt = (u,
|
|
4000
|
-
if (!(
|
|
4001
|
+
}, kt = (u, E) => {
|
|
4002
|
+
if (!(E.row && Object.keys(E.row).length))
|
|
4001
4003
|
return;
|
|
4002
|
-
const
|
|
4003
|
-
return
|
|
4004
|
-
}, Be = (u) => u === "true", et = (u) => new Function("", u.fieldUiProps)() || {}, St = async (u,
|
|
4004
|
+
const V = E.row[u.fieldKey] ?? null;
|
|
4005
|
+
return V ? V.split(";") : [];
|
|
4006
|
+
}, Be = (u) => u === "true", et = (u) => new Function("", u.fieldUiProps)() || {}, St = async (u, E) => Reflect.has(g, `/src/views${u}.vue`) ? sa(ut(g[`/src/views${u}.vue`])) : null, c = async (u, E) => Reflect.has(g, `/src/views${u}.vue`) ? sa(
|
|
4005
4007
|
ut({
|
|
4006
|
-
loader:
|
|
4008
|
+
loader: g[`/src/views${u}.vue`],
|
|
4007
4009
|
loadingComponent: dn,
|
|
4008
4010
|
delay: 20
|
|
4009
4011
|
})
|
|
4010
4012
|
) : null, d = async () => {
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
+
S.buttons = await Promise.all(
|
|
4014
|
+
S.buttons.map(async (u) => {
|
|
4013
4015
|
if (u.isCustomBtn && u.customType == "component") {
|
|
4014
|
-
const { customComponentUrl:
|
|
4015
|
-
u[
|
|
4016
|
+
const { customComponentUrl: E, customComponentName: V } = u, j = await St(E);
|
|
4017
|
+
u[V] = j;
|
|
4016
4018
|
}
|
|
4017
4019
|
return u;
|
|
4018
4020
|
})
|
|
4019
4021
|
);
|
|
4020
4022
|
}, R = async () => {
|
|
4021
|
-
const u =
|
|
4023
|
+
const u = S.fields.filter((E) => (E.formCustomComponentes ?? []).some((V) => V.permissionCode == "tableShow" && V.isFieldCustom));
|
|
4022
4024
|
ue.value = await Promise.all(
|
|
4023
|
-
u.map(async (
|
|
4024
|
-
const
|
|
4025
|
-
return
|
|
4026
|
-
label:
|
|
4027
|
-
prop:
|
|
4028
|
-
align:
|
|
4029
|
-
width:
|
|
4030
|
-
minWidth:
|
|
4031
|
-
showOverflowTooltip:
|
|
4032
|
-
sort:
|
|
4033
|
-
},
|
|
4025
|
+
u.map(async (E) => {
|
|
4026
|
+
const V = E.formCustomComponentes.find((Q) => Q.permissionCode == "tableShow"), { customComponentUrl: j, customComponentName: W } = V, H = await St(j);
|
|
4027
|
+
return E.customTableHeaderName = W, E.customTableHeaderUrl = j, E[`customTableHeaderInstance_${W}`] = H, E.headerItem = {
|
|
4028
|
+
label: E.fieldName,
|
|
4029
|
+
prop: E.fieldKey,
|
|
4030
|
+
align: E.tableCellAlignType,
|
|
4031
|
+
width: E.tableCellWidthType == "default" ? E.tableCellWidth : "",
|
|
4032
|
+
minWidth: E.tableCellWidthType == "min" ? E.tableCellWidth : "",
|
|
4033
|
+
showOverflowTooltip: E.isTableCellOverflowTooltip || !1,
|
|
4034
|
+
sort: E.isTableCellSort || !1
|
|
4035
|
+
}, E;
|
|
4034
4036
|
})
|
|
4035
4037
|
);
|
|
4036
|
-
},
|
|
4038
|
+
}, x = (u, E) => {
|
|
4037
4039
|
switch (u) {
|
|
4038
4040
|
case "array":
|
|
4039
|
-
return typeof
|
|
4041
|
+
return typeof E == "string" ? E.toString().split().sort((V, j) => V.sort - j.sort) : [E];
|
|
4040
4042
|
case "number":
|
|
4041
|
-
return Number(
|
|
4043
|
+
return Number(E);
|
|
4042
4044
|
case "boolean":
|
|
4043
|
-
return Be(
|
|
4045
|
+
return Be(E);
|
|
4044
4046
|
default:
|
|
4045
|
-
return
|
|
4047
|
+
return E;
|
|
4046
4048
|
}
|
|
4047
|
-
}, _e = (u,
|
|
4048
|
-
function Ae(u,
|
|
4049
|
-
return u.replace(/\{([^}]+)\}/g, (
|
|
4050
|
-
const
|
|
4051
|
-
let
|
|
4052
|
-
for (const
|
|
4053
|
-
if (!
|
|
4049
|
+
}, _e = (u, E) => E[u.fieldKey] ? E[u.fieldKey].toString().includes("T") ? Ve(E[u.fieldKey]).format("YYYY-MM-DD HH:mm:ss") : E[u.fieldKey] : "";
|
|
4050
|
+
function Ae(u, E = {}) {
|
|
4051
|
+
return u.replace(/\{([^}]+)\}/g, (V, j) => {
|
|
4052
|
+
const W = j.trim().split(".");
|
|
4053
|
+
let H = E;
|
|
4054
|
+
for (const Q of W) {
|
|
4055
|
+
if (!H || typeof H != "object")
|
|
4054
4056
|
break;
|
|
4055
|
-
|
|
4057
|
+
H = H[Q];
|
|
4056
4058
|
}
|
|
4057
|
-
return
|
|
4059
|
+
return H !== void 0 ? H : V;
|
|
4058
4060
|
});
|
|
4059
4061
|
}
|
|
4060
|
-
const oe = (u) => u ? Ae(u,
|
|
4062
|
+
const oe = (u) => u ? Ae(u, p.matchData) : "", N = (u, E, V) => {
|
|
4061
4063
|
switch (u) {
|
|
4062
4064
|
case "LessThanOrEqual":
|
|
4063
|
-
return
|
|
4065
|
+
return E <= V;
|
|
4064
4066
|
case "LessThan":
|
|
4065
|
-
return
|
|
4067
|
+
return E < V;
|
|
4066
4068
|
case "GreaterThanOrEqual":
|
|
4067
|
-
return
|
|
4069
|
+
return E >= V;
|
|
4068
4070
|
case "GreaterThan":
|
|
4069
|
-
return
|
|
4071
|
+
return E > V;
|
|
4070
4072
|
case "NotEqual":
|
|
4071
|
-
return
|
|
4073
|
+
return E != V;
|
|
4072
4074
|
case "Equal":
|
|
4073
|
-
return
|
|
4075
|
+
return E == V;
|
|
4074
4076
|
default:
|
|
4075
|
-
return
|
|
4077
|
+
return E == V;
|
|
4076
4078
|
}
|
|
4077
|
-
}, P = (u,
|
|
4079
|
+
}, P = (u, E) => {
|
|
4078
4080
|
if (!u.matchFields.length)
|
|
4079
4081
|
return !0;
|
|
4080
|
-
const
|
|
4081
|
-
let
|
|
4082
|
-
const
|
|
4082
|
+
const V = (Q) => Q.matchType == "default" ? E[Q.matchFieldName] : p.matchData[Q.matchType][Q.matchFieldName];
|
|
4083
|
+
let W = u.matchFields.reduce((Q, M, U) => {
|
|
4084
|
+
const q = V(M), J = N(
|
|
4083
4085
|
M.matchCondition,
|
|
4084
|
-
|
|
4086
|
+
q,
|
|
4085
4087
|
M.fieldValue == "" ? null : M.fieldValue == "true" || M.fieldValue == "false" ? Be(M.fieldValue) : M.fieldValue
|
|
4086
4088
|
);
|
|
4087
|
-
return
|
|
4088
|
-
}, "").split("||"),
|
|
4089
|
-
return new Function(`return ${
|
|
4090
|
-
}, se = (u,
|
|
4089
|
+
return Q += J, U !== u.matchFields.length - 1 && (Q += M.spliceCondition || "&&"), Q;
|
|
4090
|
+
}, "").split("||"), H = W.reduce((Q, M, U) => (Q += `(${M})`, U < W.length - 1 && (Q += "||"), Q), "");
|
|
4091
|
+
return new Function(`return ${H}`)();
|
|
4092
|
+
}, se = (u, E) => Object.keys(E).length ? y.value.some((V) => V.unique == u.permissionCode) && P(u, E) : !1, be = async (u) => {
|
|
4091
4093
|
try {
|
|
4092
|
-
|
|
4093
|
-
const
|
|
4094
|
-
data: { pageConfigs:
|
|
4095
|
-
} = await Ct(
|
|
4096
|
-
return
|
|
4097
|
-
} catch (
|
|
4098
|
-
|
|
4094
|
+
h.pageLoading = !0;
|
|
4095
|
+
const E = p.pageKey ?? w.params.key, {
|
|
4096
|
+
data: { pageConfigs: V }
|
|
4097
|
+
} = await Ct(E);
|
|
4098
|
+
return S = V.pageConfig ? JSON.parse(V.pageConfig) : {}, h.tableQuery.pageSize = S.tableConfig.pageSize || 10, h.pageLoading = !1, Promise.resolve(Object.keys(S).length);
|
|
4099
|
+
} catch (E) {
|
|
4100
|
+
h.pageLoading = !1, console.error(E);
|
|
4099
4101
|
}
|
|
4100
|
-
}, tt = async (u = [],
|
|
4102
|
+
}, tt = async (u = [], E = {}, V = !0, j = !1) => {
|
|
4101
4103
|
try {
|
|
4102
|
-
const
|
|
4104
|
+
const W = u.filter(
|
|
4103
4105
|
(M) => [
|
|
4104
4106
|
"select",
|
|
4105
4107
|
"multipleSelect",
|
|
@@ -4110,15 +4112,15 @@ const pi = {
|
|
|
4110
4112
|
"fullLoadTreeSelect",
|
|
4111
4113
|
"provinceCascade"
|
|
4112
4114
|
].includes(M.fieldType) && (!Reflect.has(M, "dataList") || !M.dataList.length || j)
|
|
4113
|
-
),
|
|
4114
|
-
|
|
4115
|
-
const U = M.postRequestParams.filter((Se) => Se.submitType === "default").reduce((Se, $e) => (Se[$e.submitName] =
|
|
4115
|
+
), Q = (await Promise.allSettled(
|
|
4116
|
+
W.map(async (M) => {
|
|
4117
|
+
const U = M.postRequestParams.filter((Se) => Se.submitType === "default").reduce((Se, $e) => (Se[$e.submitName] = x($e.paramsType, $e.submitValue), Se), {}), q = M.postRequestParams.filter((Se) => Se.submitType === "match").reduce((Se, $e) => (Se[$e.submitName] = x($e.paramsType, E[$e.submitValue][$e.submitName]), Se), {}), J = M.postRequestParams.filter((Se) => Se.submitType === "dynamic").map((Se) => ({
|
|
4116
4118
|
field: Se.submitName,
|
|
4117
4119
|
operate: Se.submitMatchType,
|
|
4118
|
-
value:
|
|
4120
|
+
value: x(Se.paramsType, Se.submitValue)
|
|
4119
4121
|
}));
|
|
4120
4122
|
let ye = {};
|
|
4121
|
-
Object.keys(U).length && (ye = { ...ye, ...U }), Object.keys(
|
|
4123
|
+
Object.keys(U).length && (ye = { ...ye, ...U }), Object.keys(q).length && (ye = { ...ye, ...q }), J.length && (ye.dynamicFilters = J);
|
|
4122
4124
|
const { data: nt } = await C({
|
|
4123
4125
|
url: M.fieldRequestUrl,
|
|
4124
4126
|
method: M.fieldRequestType || "GET",
|
|
@@ -4130,169 +4132,172 @@ const pi = {
|
|
|
4130
4132
|
});
|
|
4131
4133
|
})
|
|
4132
4134
|
)).filter((M) => M.status === "fulfilled" && Reflect.has(M, "value")).map((M) => M.value);
|
|
4133
|
-
return
|
|
4134
|
-
const U =
|
|
4135
|
+
return V && S.fields.forEach((M) => {
|
|
4136
|
+
const U = Q.find((q) => M.fieldName == q.fieldName && M.fieldKey == q.fieldKey);
|
|
4135
4137
|
U && (M.dataList = (U == null ? void 0 : U.dataList) ?? []);
|
|
4136
|
-
}),
|
|
4137
|
-
} catch (
|
|
4138
|
-
console.error(
|
|
4138
|
+
}), Q;
|
|
4139
|
+
} catch (W) {
|
|
4140
|
+
console.error(W);
|
|
4139
4141
|
}
|
|
4140
4142
|
}, gt = Lt(() => {
|
|
4141
4143
|
const {
|
|
4142
4144
|
tableConfig: { tableMoreBtnSplitNumber: u }
|
|
4143
|
-
} =
|
|
4145
|
+
} = S;
|
|
4144
4146
|
return !u || u >= Y.value.length;
|
|
4145
4147
|
}), _t = () => {
|
|
4146
4148
|
const {
|
|
4147
4149
|
tableConfig: { tableMoreBtnSplitNumber: u }
|
|
4148
|
-
} =
|
|
4150
|
+
} = S;
|
|
4149
4151
|
return gt.value ? Y.value : Y.value.slice(0, u);
|
|
4150
4152
|
}, st = () => {
|
|
4151
|
-
var
|
|
4153
|
+
var E;
|
|
4152
4154
|
const {
|
|
4153
4155
|
tableConfig: { tableMoreBtnSplitNumber: u }
|
|
4154
|
-
} =
|
|
4155
|
-
return gt.value ? [] : Y.value.slice(u, (
|
|
4156
|
+
} = S;
|
|
4157
|
+
return gt.value ? [] : Y.value.slice(u, (E = Y.value) == null ? void 0 : E.length);
|
|
4156
4158
|
}, Tn = async (u) => {
|
|
4157
4159
|
try {
|
|
4158
|
-
const
|
|
4159
|
-
let j =
|
|
4160
|
-
const
|
|
4160
|
+
const E = (u || []).filter((H) => H.useScenes.some((Q) => ["tableShow"].includes(Q))).sort((H, Q) => H.sort - Q.sort), V = ["editor", "upload", "date"];
|
|
4161
|
+
let j = E.map((H) => {
|
|
4162
|
+
const Q = H.formCustomComponentes.some((M) => M.permissionCode == "tableShow" && M.isFieldCustom);
|
|
4161
4163
|
return {
|
|
4162
|
-
label:
|
|
4163
|
-
prop:
|
|
4164
|
-
align:
|
|
4165
|
-
width:
|
|
4166
|
-
minWidth:
|
|
4167
|
-
showOverflowTooltip:
|
|
4168
|
-
sort:
|
|
4169
|
-
render: !!
|
|
4170
|
-
isCustomTableHeader:
|
|
4164
|
+
label: H.fieldName,
|
|
4165
|
+
prop: H.fieldKey,
|
|
4166
|
+
align: H.tableCellAlignType,
|
|
4167
|
+
width: H.tableCellWidthType == "default" ? H.tableCellWidth : "",
|
|
4168
|
+
minWidth: H.tableCellWidthType == "min" ? H.tableCellWidth : "",
|
|
4169
|
+
showOverflowTooltip: H.isTableCellOverflowTooltip || !1,
|
|
4170
|
+
sort: H.isTableCellSort || !1,
|
|
4171
|
+
render: !!H.fieldRequestUrl || H.tableCellContentType == "link" || V.includes(H.fieldType),
|
|
4172
|
+
isCustomTableHeader: Q
|
|
4171
4173
|
};
|
|
4172
4174
|
});
|
|
4173
|
-
|
|
4174
|
-
const
|
|
4175
|
-
|
|
4176
|
-
(
|
|
4177
|
-
),
|
|
4178
|
-
} catch (
|
|
4179
|
-
console.error(
|
|
4175
|
+
S.tableConfig.isSerialNumber && j.unshift({ prop: "serialNumber", width: 80 }), S.tableConfig.isCheckRow && j.unshift({ prop: "checkbox", width: 50 });
|
|
4176
|
+
const W = Y.value.filter((H) => y.value.some((Q) => Q.unique == H.permissionCode));
|
|
4177
|
+
S.tableConfig.isOperateRow && W.length && j.push({ label: i("act.operate"), prop: "operate", width: S.tableConfig.tableOperateCellWidth, render: !0, fixed: "right" }), he.value = E.filter(
|
|
4178
|
+
(H) => !!H.fieldRequestUrl && H.useScenes.includes("tableShow") || H.tableCellContentType == "link" || V.includes(H.fieldType)
|
|
4179
|
+
), $.value = j;
|
|
4180
|
+
} catch (E) {
|
|
4181
|
+
console.error(E);
|
|
4180
4182
|
}
|
|
4181
4183
|
}, ln = () => {
|
|
4182
|
-
Y.value = (
|
|
4183
|
-
}, aa = () =>
|
|
4184
|
-
|
|
4185
|
-
}), u)), Nn = (u,
|
|
4186
|
-
var
|
|
4187
|
-
const
|
|
4188
|
-
if (
|
|
4189
|
-
const M =
|
|
4184
|
+
Y.value = (S.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));
|
|
4185
|
+
}, aa = () => S.fields.filter((u) => u.useScenes.includes("tableSearch")).map((u) => (["date", "dateRange"].includes(u.fieldType) ? u.queryValue = u.tableQueryDefaultValue ? u.tableQueryDefaultValue : Ut(u) : u.queryValue = (u == null ? void 0 : u.tableQueryDefaultValue) || void 0, p.defaultParams.some((E) => {
|
|
4186
|
+
E.field == u.fieldKey && E.operate === u.tableQueryCondition && (u.queryValue = E.value);
|
|
4187
|
+
}), u)), Nn = (u, E = "queryValue") => u ? (u || []).filter((j) => !!j[E]).reduce((j, W) => {
|
|
4188
|
+
var Q;
|
|
4189
|
+
const H = et(W);
|
|
4190
|
+
if (W.fieldType === "date" && H["value-format"] !== "YYYY") {
|
|
4191
|
+
const M = H != null && H.dayJsType ? oi[(Q = W.fieldUiProps) == null ? void 0 : Q.dayJsType] : "day", U = H["value-format"] || "YYYY-MM-DD HH:mm:ss";
|
|
4190
4192
|
j = [
|
|
4191
4193
|
...j,
|
|
4192
|
-
{ field:
|
|
4193
|
-
{ field:
|
|
4194
|
+
{ field: W.fieldKey, operate: "GreaterThanOrEqual", value: Ve(W[E]).startOf(M).format(U) },
|
|
4195
|
+
{ field: W.fieldKey, operate: "LessThanOrEqual", value: Ve(W[E]).endOf(M).format(U) }
|
|
4194
4196
|
];
|
|
4195
|
-
} else if (
|
|
4196
|
-
if (
|
|
4197
|
-
const M =
|
|
4197
|
+
} else if (W.fieldType === "dateRange" && W[E].length)
|
|
4198
|
+
if (W.fieldKey.includes("&")) {
|
|
4199
|
+
const M = W.fieldKey.split("&") || [];
|
|
4198
4200
|
j = [
|
|
4199
4201
|
...j,
|
|
4200
|
-
{ field: M[0], operate: "GreaterThanOrEqual", value:
|
|
4201
|
-
{ field: M[1], operate: "LessThanOrEqual", value:
|
|
4202
|
+
{ field: M[0], operate: "GreaterThanOrEqual", value: W.queryValue[0] },
|
|
4203
|
+
{ field: M[1], operate: "LessThanOrEqual", value: W.queryValue[1] }
|
|
4202
4204
|
];
|
|
4203
4205
|
} else
|
|
4204
4206
|
j = [
|
|
4205
4207
|
...j,
|
|
4206
|
-
{ field:
|
|
4207
|
-
{ field:
|
|
4208
|
+
{ field: W.fieldKey, operate: "GreaterThanOrEqual", value: W.queryValue[0] },
|
|
4209
|
+
{ field: W.fieldKey, operate: "LessThanOrEqual", value: W.queryValue[1] }
|
|
4208
4210
|
];
|
|
4209
|
-
else if (["provinceCascade"].includes(
|
|
4210
|
-
const M = (
|
|
4211
|
+
else if (["provinceCascade"].includes(W.fieldType) && W[E].length) {
|
|
4212
|
+
const M = (W.fieldKey.split("&") || []).map((U, q) => ({ field: U, operate: "Equal", value: W.queryValue[q] }));
|
|
4211
4213
|
j = [...j, ...M];
|
|
4212
4214
|
} else
|
|
4213
|
-
return Array.isArray(
|
|
4215
|
+
return Array.isArray(W[E]) && !W[E].length ? [...j] : [
|
|
4214
4216
|
...j,
|
|
4215
4217
|
{
|
|
4216
|
-
field:
|
|
4217
|
-
operate:
|
|
4218
|
-
value:
|
|
4218
|
+
field: W.fieldKey,
|
|
4219
|
+
operate: W.tableQueryCondition,
|
|
4220
|
+
value: W.tableQueryCondition === "In" && W[E] && typeof W[E] == "string" ? W[E].split(";") : W[E] == "true" || W[E] == "false" ? Be(W[E]) : W[E]
|
|
4219
4221
|
}
|
|
4220
4222
|
];
|
|
4221
4223
|
return j;
|
|
4222
|
-
}, []) : [], $l = (u,
|
|
4223
|
-
if (!u.dataList || !Reflect.has(
|
|
4224
|
+
}, []) : [], $l = (u, E) => {
|
|
4225
|
+
if (!u.dataList || !Reflect.has(E, u.fieldKey))
|
|
4224
4226
|
return "";
|
|
4225
|
-
const
|
|
4226
|
-
if (!
|
|
4227
|
+
const V = E[u.fieldKey];
|
|
4228
|
+
if (!V && V !== 0 && V !== !1)
|
|
4227
4229
|
return "";
|
|
4228
|
-
const j = et(u),
|
|
4229
|
-
return ["virtualizedSelect", "virtualizedMultipleSelect"].includes(u.fieldType) && (
|
|
4230
|
-
const
|
|
4231
|
-
return Array.isArray(
|
|
4232
|
-
}).map((
|
|
4230
|
+
const j = et(u), W = Object.assign({ key: "key", value: "value" }, j.props || {});
|
|
4231
|
+
return ["virtualizedSelect", "virtualizedMultipleSelect"].includes(u.fieldType) && (W.key = W.label), ["multipleSelect", "select", "switch", "virtualizedSelect", "virtualizedMultipleSelect", "selectIcon"].includes(u.fieldType) ? (u.dataList || []).filter((H) => {
|
|
4232
|
+
const Q = u.fieldType === "selectIcon" ? `btn-${H[W.value]}` : H[W.value], M = Q == "true" || Q == "false" ? Be(Q) : Q;
|
|
4233
|
+
return Array.isArray(V) ? V.some((U) => U == Q == U) : typeof V == "string" ? V.split(";").includes(M) : V == M;
|
|
4234
|
+
}).map((H) => H[W.key]).join(";") : V;
|
|
4233
4235
|
}, qe = async (u = []) => {
|
|
4236
|
+
var E, V, j;
|
|
4234
4237
|
try {
|
|
4235
|
-
E
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
field
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4238
|
+
if (!((E = S == null ? void 0 : S.tableConfig) != null && E.dataUrl))
|
|
4239
|
+
return;
|
|
4240
|
+
h.tableLoading = !0;
|
|
4241
|
+
const W = p.defaultParams.filter(
|
|
4242
|
+
(U) => !(S.fields ?? []).some((q) => q.fieldKey === U.field && q.tableQueryCondition === U.operate && q.useScenes.includes("tableSearch"))
|
|
4243
|
+
), H = (((V = S == null ? void 0 : S.tableConfig) == null ? void 0 : V.defaultParams) ?? []).map((U) => ({
|
|
4244
|
+
field: U.submitFieldName,
|
|
4245
|
+
operate: U.matchValue,
|
|
4246
|
+
value: x(U.submitFieldType, U.defaultValue)
|
|
4247
|
+
})), Q = [...W, ...H, ...Nn(u)];
|
|
4248
|
+
(j = S == null ? void 0 : S.tableConfig) != null && j.isPagination || (h.tableQuery.pageSize = 9999);
|
|
4249
|
+
const { data: M } = await C({
|
|
4250
|
+
url: S.tableConfig.dataUrl,
|
|
4246
4251
|
method: "POST",
|
|
4247
4252
|
data: {
|
|
4248
|
-
...
|
|
4249
|
-
dynamicFilters:
|
|
4253
|
+
...h.tableQuery,
|
|
4254
|
+
dynamicFilters: Q
|
|
4250
4255
|
}
|
|
4251
4256
|
});
|
|
4252
|
-
|
|
4253
|
-
} catch (
|
|
4254
|
-
|
|
4257
|
+
h.tableTotal = M.totalCount || 0, te.value = M.datas || [], h.tableLoading = !1;
|
|
4258
|
+
} catch (W) {
|
|
4259
|
+
h.tableLoading = !1, console.error(W);
|
|
4255
4260
|
}
|
|
4256
4261
|
}, la = async () => {
|
|
4257
4262
|
try {
|
|
4258
4263
|
F.value = "loading";
|
|
4259
|
-
const u =
|
|
4264
|
+
const u = p.pageKey;
|
|
4260
4265
|
if (!await be(u)) {
|
|
4261
4266
|
F.value = "end";
|
|
4262
4267
|
return;
|
|
4263
4268
|
}
|
|
4264
|
-
await R(), await d(), await tt(
|
|
4265
|
-
let
|
|
4266
|
-
if (
|
|
4267
|
-
|
|
4269
|
+
await R(), await d(), await tt(S.fields.filter((H) => H.useScenes.some((Q) => ["tableSearch", "tableShow"].includes(Q)))), F.value = "success";
|
|
4270
|
+
let V = "";
|
|
4271
|
+
if (O === "sessionStorage")
|
|
4272
|
+
V = sessionStorage.getItem("accessToken");
|
|
4268
4273
|
else {
|
|
4269
|
-
const
|
|
4270
|
-
|
|
4274
|
+
const H = k.getPrefix();
|
|
4275
|
+
V = k.getItemValue(`${H}accessToken`);
|
|
4271
4276
|
}
|
|
4272
|
-
const
|
|
4273
|
-
if (v) {
|
|
4274
|
-
const
|
|
4275
|
-
y.value = await v({ roleId:
|
|
4277
|
+
const W = JSON.parse(Zs.decode(V.split(".")[1]))["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"];
|
|
4278
|
+
if (v || p.menuId) {
|
|
4279
|
+
const H = p.menuId;
|
|
4280
|
+
y.value = await v({ roleId: W, menuId: H }) || [];
|
|
4276
4281
|
} else
|
|
4277
|
-
y.value = (await Ge({ roleId:
|
|
4278
|
-
ln(), Tn(
|
|
4282
|
+
y.value = (await Ge({ roleId: W, key: u })).data.datas || [];
|
|
4283
|
+
ln(), Tn(S.fields), Tt(), D = aa(), (!Reflect.has(S.tableConfig, "isExecuteImmediatelyTableApi") || S.tableConfig.isExecuteImmediatelyTableApi) && await qe(D), A("load"), console.log(S);
|
|
4279
4284
|
} catch (u) {
|
|
4280
4285
|
console.error(u), F.value = "end";
|
|
4281
4286
|
}
|
|
4282
4287
|
};
|
|
4283
|
-
Te("globalProps",
|
|
4284
|
-
() =>
|
|
4285
|
-
(u,
|
|
4288
|
+
Te("globalProps", p), Te("loadComponents", St), Te("defineAsyncLoadComponents", c), Te("stringToBoolean", Be), Te("matchCondition", N), Te("menuPermissionBtns", y), Te("getTableData", qe), Te("refreshTable", pt), Te("tableBtnRefs", De.value), Te("formatDataType", x), Te("getFieldUiProps", et), Te("disposeRequestData", tt), Te("disposeDate", Ut), Te("getDefaultQueryValues", aa), dt(
|
|
4289
|
+
() => p.pageKey,
|
|
4290
|
+
(u, E) => {
|
|
4286
4291
|
mt(), la();
|
|
4287
4292
|
},
|
|
4288
4293
|
{ immediate: !0 }
|
|
4289
4294
|
);
|
|
4290
|
-
const oa = async (u,
|
|
4291
|
-
D = u, await qe(u), A("refresh"),
|
|
4295
|
+
const oa = async (u, E) => {
|
|
4296
|
+
D = u, await qe(u), A("refresh"), E(!0);
|
|
4292
4297
|
}, Jl = (u) => {
|
|
4293
4298
|
A("operate", u), qe(D);
|
|
4294
|
-
}, on = (u,
|
|
4295
|
-
const { exportFile:
|
|
4299
|
+
}, on = (u, E) => {
|
|
4300
|
+
const { exportFile: V, importFile: j, downloadFile: W } = li();
|
|
4296
4301
|
if (u.isCustomBtn) {
|
|
4297
4302
|
if (u.customType == "component" && !Reflect.has(u, [u.customComponentName])) {
|
|
4298
4303
|
Re({
|
|
@@ -4305,14 +4310,14 @@ const pi = {
|
|
|
4305
4310
|
}
|
|
4306
4311
|
if (u.customType == "code") {
|
|
4307
4312
|
try {
|
|
4308
|
-
new Function("router", "route", "data", "configItem", "cookieStorage", u.codeStr)(m,
|
|
4313
|
+
new Function("router", "route", "data", "configItem", "cookieStorage", u.codeStr)(m, w, E, u, k);
|
|
4309
4314
|
} catch (M) {
|
|
4310
4315
|
console.error(M);
|
|
4311
4316
|
}
|
|
4312
4317
|
return;
|
|
4313
4318
|
}
|
|
4314
|
-
const
|
|
4315
|
-
De.value[
|
|
4319
|
+
const Q = `${u.customComponentName}-${u.permissionCode}`;
|
|
4320
|
+
De.value[Q] && De.value[Q].onTigger({ rowData: E, tableSelection: h.tableSelection });
|
|
4316
4321
|
return;
|
|
4317
4322
|
}
|
|
4318
4323
|
if (u.submitWay == "associationSubTable") {
|
|
@@ -4320,41 +4325,41 @@ const pi = {
|
|
|
4320
4325
|
return;
|
|
4321
4326
|
}
|
|
4322
4327
|
if (["export", "exportUrl"].includes(u.submitWay)) {
|
|
4323
|
-
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !0 :
|
|
4324
|
-
let
|
|
4325
|
-
if (
|
|
4326
|
-
|
|
4327
|
-
...
|
|
4328
|
+
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !0 : E[`loading${u.permissionCode}`] = !0;
|
|
4329
|
+
let Q = [...p.defaultParams, ...Nn(D)], M = (u.submitFields || []).reduce((q, J) => {
|
|
4330
|
+
if (J.matchType == "default")
|
|
4331
|
+
q = [
|
|
4332
|
+
...q,
|
|
4328
4333
|
{
|
|
4329
|
-
field:
|
|
4330
|
-
operate:
|
|
4331
|
-
value:
|
|
4334
|
+
field: J.submitFieldName,
|
|
4335
|
+
operate: J.submitFieldType === "array" ? "In" : "Equal",
|
|
4336
|
+
value: x(J.submitFieldType, J.matchFieldName)
|
|
4332
4337
|
}
|
|
4333
4338
|
];
|
|
4334
|
-
else if (
|
|
4335
|
-
const ye =
|
|
4336
|
-
|
|
4337
|
-
...
|
|
4339
|
+
else if (J.matchType == "match") {
|
|
4340
|
+
const ye = J.submitFieldMatchOrigin === "rowData" ? E : p.matchData[J.submitFieldMatchOrigin];
|
|
4341
|
+
q = [
|
|
4342
|
+
...q,
|
|
4338
4343
|
{
|
|
4339
|
-
field:
|
|
4340
|
-
operate:
|
|
4341
|
-
value:
|
|
4344
|
+
field: J.submitFieldName,
|
|
4345
|
+
operate: J.submitFieldType === "array" ? "In" : "Equal",
|
|
4346
|
+
value: x(J.submitFieldType, ye[J.matchFieldName])
|
|
4342
4347
|
}
|
|
4343
4348
|
];
|
|
4344
|
-
} else if (
|
|
4345
|
-
const ye =
|
|
4346
|
-
|
|
4347
|
-
...
|
|
4349
|
+
} else if (J.matchType == "selection") {
|
|
4350
|
+
const ye = h.tableSelection.map((nt) => nt[J.matchFieldName]);
|
|
4351
|
+
q = [
|
|
4352
|
+
...q,
|
|
4348
4353
|
{
|
|
4349
|
-
field:
|
|
4350
|
-
operate:
|
|
4351
|
-
value:
|
|
4354
|
+
field: J.submitFieldName,
|
|
4355
|
+
operate: J.submitFieldType === "array" ? "In" : "Equal",
|
|
4356
|
+
value: J.submitFieldType === "string" ? ye.join() : ye
|
|
4352
4357
|
}
|
|
4353
4358
|
];
|
|
4354
4359
|
}
|
|
4355
|
-
return
|
|
4360
|
+
return q;
|
|
4356
4361
|
}, []);
|
|
4357
|
-
const U = [...
|
|
4362
|
+
const U = [...Q, ...M];
|
|
4358
4363
|
C({
|
|
4359
4364
|
url: oe(u.requestUrl),
|
|
4360
4365
|
method: "post",
|
|
@@ -4362,31 +4367,31 @@ const pi = {
|
|
|
4362
4367
|
dynamicFilters: U
|
|
4363
4368
|
},
|
|
4364
4369
|
responseType: ["exportUrl"].includes(u.submitWay) ? "json" : "blob"
|
|
4365
|
-
}).then((
|
|
4366
|
-
u.submitWay == "exportUrl" ?
|
|
4367
|
-
}).catch((
|
|
4368
|
-
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !1 :
|
|
4370
|
+
}).then((q) => {
|
|
4371
|
+
u.submitWay == "exportUrl" ? W(C, q.data) : V(q), A("operate", u), u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !1 : E[`loading${u.permissionCode}`] = !1;
|
|
4372
|
+
}).catch((q) => {
|
|
4373
|
+
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !1 : E[`loading${u.permissionCode}`] = !1;
|
|
4369
4374
|
});
|
|
4370
4375
|
return;
|
|
4371
4376
|
}
|
|
4372
4377
|
if (["import", "batchImport"].includes(u.submitWay)) {
|
|
4373
|
-
j({ multiple: u.submitWay == "batchImport" }, (
|
|
4374
|
-
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !0 :
|
|
4378
|
+
j({ multiple: u.submitWay == "batchImport", acceptTypes: u.importAccept || "" }, (Q) => {
|
|
4379
|
+
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !0 : E[`loading${u.permissionCode}`] = !0;
|
|
4375
4380
|
const M = new FormData();
|
|
4376
4381
|
if ((u.submitFields || []).forEach((U) => {
|
|
4377
|
-
var
|
|
4382
|
+
var q, J;
|
|
4378
4383
|
if (U.matchType == "default")
|
|
4379
|
-
M.append(U.submitFieldName,
|
|
4384
|
+
M.append(U.submitFieldName, x(U.submitFieldType, U.matchFieldName));
|
|
4380
4385
|
else if (U.matchType == "match")
|
|
4381
|
-
(
|
|
4386
|
+
(q = Object.keys(E)) != null && q.length && M.append(U.submitFieldName, x(U.submitFieldType, E[U.matchFieldName]));
|
|
4382
4387
|
else if (U.matchType == "query") {
|
|
4383
|
-
const ye = ((
|
|
4384
|
-
M.append(U.submitFieldName,
|
|
4388
|
+
const ye = ((J = D.find((nt) => nt.fieldKey == U.matchFieldName)) == null ? void 0 : J.queryValue) ?? null;
|
|
4389
|
+
M.append(U.submitFieldName, x(U.submitFieldType, ye));
|
|
4385
4390
|
}
|
|
4386
4391
|
}), u.submitWay == "import")
|
|
4387
|
-
M.append(u.importFileName || "file",
|
|
4392
|
+
M.append(u.importFileName || "file", Q.target.files[0]);
|
|
4388
4393
|
else
|
|
4389
|
-
for (let U of
|
|
4394
|
+
for (let U of Q.target.files)
|
|
4390
4395
|
M.append(u.importFileName || "files", U);
|
|
4391
4396
|
return C({
|
|
4392
4397
|
url: oe(u.requestUrl),
|
|
@@ -4396,57 +4401,57 @@ const pi = {
|
|
|
4396
4401
|
},
|
|
4397
4402
|
data: M
|
|
4398
4403
|
}).then((U) => {
|
|
4399
|
-
Re({ title: i("act.tip"), message: `${U.msg}`, type: "success", duration: 2500 }), A("operate", u), qe(D), u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !1 :
|
|
4404
|
+
Re({ title: i("act.tip"), message: `${U.msg}`, type: "success", duration: 2500 }), A("operate", u), qe(D), u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !1 : E[`loading${u.permissionCode}`] = !1;
|
|
4400
4405
|
}).catch(() => {
|
|
4401
|
-
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !1 :
|
|
4406
|
+
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !1 : E[`loading${u.permissionCode}`] = !1;
|
|
4402
4407
|
});
|
|
4403
4408
|
});
|
|
4404
4409
|
return;
|
|
4405
4410
|
}
|
|
4406
4411
|
if (u.submitWay === "executeApi") {
|
|
4407
|
-
let
|
|
4408
|
-
var
|
|
4412
|
+
let Q = (u.submitFields || []).reduce((M, U) => {
|
|
4413
|
+
var q;
|
|
4409
4414
|
if (U.matchType == "default")
|
|
4410
|
-
M[U.submitFieldName] =
|
|
4415
|
+
M[U.submitFieldName] = x(U.submitFieldType, U.matchFieldName);
|
|
4411
4416
|
else if (U.matchType == "match") {
|
|
4412
|
-
const
|
|
4413
|
-
M[U.submitFieldName] =
|
|
4417
|
+
const J = U.submitFieldMatchOrigin === "rowData" ? E : p.matchData[U.submitFieldMatchOrigin];
|
|
4418
|
+
M[U.submitFieldName] = x(U.submitFieldType, J[U.matchFieldName]);
|
|
4414
4419
|
} else
|
|
4415
|
-
U.matchType == "query" && (M[U.submitFieldName] = ((
|
|
4420
|
+
U.matchType == "query" && (M[U.submitFieldName] = ((q = D.find((J) => J.fieldKey == U.matchFieldName)) == null ? void 0 : q.queryValue) ?? null);
|
|
4416
4421
|
return M;
|
|
4417
4422
|
}, {});
|
|
4418
4423
|
if (u.btnPostion === "header" && u.isPromptVerificationSelectTable == "1") {
|
|
4419
|
-
if (!
|
|
4424
|
+
if (!S.tableConfig.isCheckRow) {
|
|
4420
4425
|
Re({ title: i("act.tip"), message: i("act.configTableRow"), type: "warning", duration: 2500 });
|
|
4421
4426
|
return;
|
|
4422
4427
|
}
|
|
4423
|
-
if (!
|
|
4428
|
+
if (!h.tableSelection.length) {
|
|
4424
4429
|
Re({ title: i("act.tip"), message: `${i("act.pleaseSelcet")}${u.btnName}${i("act.data")}`, type: "warning", duration: 2500 });
|
|
4425
4430
|
return;
|
|
4426
4431
|
}
|
|
4427
4432
|
}
|
|
4428
4433
|
if (u.btnPostion === "header") {
|
|
4429
|
-
const M = (u.submitFields || []).filter((U) => U.matchType == "selection").reduce((U,
|
|
4430
|
-
Object.assign(
|
|
4434
|
+
const M = (u.submitFields || []).filter((U) => U.matchType == "selection").reduce((U, q) => (U[q.submitFieldName] = h.tableSelection.reduce((J, ye) => (q.submitFieldType === "array" ? J = [...J, ...x(q.submitFieldType, ye[q.matchFieldName])] : J = [...J, x(q.submitFieldType, ye[q.matchFieldName])], J), []), U), {});
|
|
4435
|
+
Object.assign(Q, M);
|
|
4431
4436
|
}
|
|
4432
|
-
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !0 :
|
|
4437
|
+
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !0 : E[`loading${u.permissionCode}`] = !0, C({
|
|
4433
4438
|
url: oe(u.requestUrl),
|
|
4434
4439
|
method: "post",
|
|
4435
|
-
data:
|
|
4440
|
+
data: Q
|
|
4436
4441
|
}).then((M) => {
|
|
4437
|
-
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !1 :
|
|
4442
|
+
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !1 : E[`loading${u.permissionCode}`] = !1, Re({ type: "success", title: i("act.tip"), message: `${u.btnName}${i("act.success")}`, duration: 2500 }), A("operate", u), qe(D);
|
|
4438
4443
|
}).catch((M) => {
|
|
4439
|
-
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !1 :
|
|
4444
|
+
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !1 : E[`loading${u.permissionCode}`] = !1;
|
|
4440
4445
|
});
|
|
4441
4446
|
return;
|
|
4442
4447
|
}
|
|
4443
4448
|
if (u.submitWay === "messageBox") {
|
|
4444
4449
|
if (u.btnPostion === "header" && u.isPromptVerificationSelectTable == "1") {
|
|
4445
|
-
if (!
|
|
4450
|
+
if (!S.tableConfig.isCheckRow) {
|
|
4446
4451
|
Re({ title: i("act.tip"), message: i("act.configTableRow"), type: "warning", duration: 2500 });
|
|
4447
4452
|
return;
|
|
4448
4453
|
}
|
|
4449
|
-
if (!
|
|
4454
|
+
if (!h.tableSelection.length) {
|
|
4450
4455
|
Re({ title: i("act.tip"), message: `${i("act.pleaseSelcet")}${u.btnName}${i("act.data")}`, type: "warning", duration: 2500 });
|
|
4451
4456
|
return;
|
|
4452
4457
|
}
|
|
@@ -4456,144 +4461,144 @@ const pi = {
|
|
|
4456
4461
|
cancelButtonText: i("act.cancel"),
|
|
4457
4462
|
type: "warning"
|
|
4458
4463
|
}).then(() => {
|
|
4459
|
-
let
|
|
4460
|
-
var
|
|
4464
|
+
let Q = (u.submitFields || []).reduce((M, U) => {
|
|
4465
|
+
var q;
|
|
4461
4466
|
if (U.matchType == "default")
|
|
4462
|
-
M[U.submitFieldName] =
|
|
4467
|
+
M[U.submitFieldName] = x(U.submitFieldType, U.matchFieldName);
|
|
4463
4468
|
else if (U.matchType == "match") {
|
|
4464
|
-
const
|
|
4465
|
-
M[U.submitFieldName] =
|
|
4469
|
+
const J = U.submitFieldMatchOrigin === "rowData" ? E : p.matchData[U.submitFieldMatchOrigin];
|
|
4470
|
+
M[U.submitFieldName] = x(U.submitFieldType, J[U.matchFieldName]);
|
|
4466
4471
|
} else
|
|
4467
|
-
U.matchType == "query" && (M[U.submitFieldName] = ((
|
|
4472
|
+
U.matchType == "query" && (M[U.submitFieldName] = ((q = D.find((J) => J.fieldKey == U.matchFieldName)) == null ? void 0 : q.queryValue) ?? null);
|
|
4468
4473
|
return M;
|
|
4469
4474
|
}, {});
|
|
4470
4475
|
if (u.btnPostion === "header") {
|
|
4471
|
-
const M = (u.submitFields || []).filter((U) => U.matchType == "selection").reduce((U,
|
|
4472
|
-
Object.assign(
|
|
4476
|
+
const M = (u.submitFields || []).filter((U) => U.matchType == "selection").reduce((U, q) => (U[q.submitFieldName] = h.tableSelection.reduce((J, ye) => (q.submitFieldType === "array" ? J = [...J, ...x(q.submitFieldType, ye[q.matchFieldName])] : J = [...J, x(q.submitFieldType, ye[q.matchFieldName])], J), []), U), {});
|
|
4477
|
+
Object.assign(Q, M);
|
|
4473
4478
|
}
|
|
4474
|
-
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !0 :
|
|
4479
|
+
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !0 : E[`loading${u.permissionCode}`] = !0, C({
|
|
4475
4480
|
url: oe(u.requestUrl),
|
|
4476
4481
|
method: "post",
|
|
4477
|
-
data:
|
|
4482
|
+
data: Q
|
|
4478
4483
|
}).then((M) => {
|
|
4479
|
-
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !1 :
|
|
4484
|
+
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !1 : E[`loading${u.permissionCode}`] = !1, Re({ type: "success", title: i("act.tip"), message: `${u.btnName}${i("act.success")}`, duration: 2500 }), A("operate", u), qe(D);
|
|
4480
4485
|
}).catch((M) => {
|
|
4481
|
-
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !1 :
|
|
4486
|
+
u.btnPostion === "header" ? u[`loading${u.permissionCode}`] = !1 : E[`loading${u.permissionCode}`] = !1;
|
|
4482
4487
|
});
|
|
4483
|
-
}).catch((
|
|
4488
|
+
}).catch((Q) => {
|
|
4484
4489
|
});
|
|
4485
4490
|
return;
|
|
4486
4491
|
}
|
|
4487
|
-
if (u.btnPostion === "header" && u.submitWay === "dialog" && (u.submitFields || []).some((
|
|
4488
|
-
if (!
|
|
4492
|
+
if (u.btnPostion === "header" && u.submitWay === "dialog" && (u.submitFields || []).some((Q) => Q.submitFieldMatchOrigin === "selections") && !h.tableSelection.length) {
|
|
4493
|
+
if (!S.tableConfig.isCheckRow) {
|
|
4489
4494
|
Re({ title: i("act.tip"), message: i("act.configTableRow"), type: "warning", duration: 2500 });
|
|
4490
4495
|
return;
|
|
4491
4496
|
}
|
|
4492
|
-
if (!
|
|
4497
|
+
if (!h.tableSelection.length) {
|
|
4493
4498
|
Re({ title: i("act.tip"), message: `${i("act.pleaseSelcet")}${u.btnName}${i("act.data")}`, type: "warning", duration: 2500 });
|
|
4494
4499
|
return;
|
|
4495
4500
|
}
|
|
4496
4501
|
return;
|
|
4497
4502
|
}
|
|
4498
|
-
let
|
|
4499
|
-
if (!
|
|
4503
|
+
let H = (S.fields || []).filter((Q) => Q.useScenes.includes(u.permissionCode)).map((Q) => (Q.customFiledsComponentes = Q.formCustomComponentes.find((M) => M.permissionCode == u.permissionCode) || {}, Q));
|
|
4504
|
+
if (!H.length) {
|
|
4500
4505
|
Re({ title: i("act.tip"), message: i("act.buttonBindField"), type: "warning", duration: 2500 });
|
|
4501
4506
|
return;
|
|
4502
4507
|
}
|
|
4503
4508
|
if (u.submitWay === "dialog") {
|
|
4504
|
-
|
|
4509
|
+
h.dialogTitle = u.btnName, h.dialogData = {
|
|
4505
4510
|
dataItem: { ...u },
|
|
4506
|
-
rowData: { ...
|
|
4507
|
-
selections:
|
|
4508
|
-
formConfig:
|
|
4509
|
-
formList:
|
|
4510
|
-
},
|
|
4511
|
+
rowData: { ...E },
|
|
4512
|
+
selections: h.tableSelection || [],
|
|
4513
|
+
formConfig: S.formConfig,
|
|
4514
|
+
formList: H
|
|
4515
|
+
}, h.showFormDialog = !0;
|
|
4511
4516
|
return;
|
|
4512
4517
|
}
|
|
4513
|
-
}, Xl = (u,
|
|
4514
|
-
A("onClickRow", u,
|
|
4515
|
-
}, Zl = (u,
|
|
4516
|
-
je.value = u, A("changeExpansionRow", u,
|
|
4518
|
+
}, Xl = (u, E, V) => {
|
|
4519
|
+
A("onClickRow", u, E, V);
|
|
4520
|
+
}, Zl = (u, E) => {
|
|
4521
|
+
je.value = u, A("changeExpansionRow", u, E);
|
|
4517
4522
|
}, zl = (u) => {
|
|
4518
4523
|
A("changeSelection", u);
|
|
4519
|
-
}, eo = (u,
|
|
4520
|
-
|
|
4524
|
+
}, eo = (u, E) => {
|
|
4525
|
+
h.editorDialogTitle = `${i("act.preview")}${u.fieldName}`, h.dialogData = { ...E, editorContent: E[u.fieldKey] }, h.showEditorPreDialog = !0;
|
|
4521
4526
|
};
|
|
4522
|
-
return t({ loadData: la, getDynamicFiltersData: fe, getTableData: qe, refreshTable: pt, getTableSelection: Gt, setTableSelection: jt, clearSelection: Pt }), (u,
|
|
4523
|
-
const
|
|
4527
|
+
return t({ loadData: la, getDynamicFiltersData: fe, getTableData: qe, refreshTable: pt, getTableSelection: Gt, setTableSelection: jt, clearSelection: Pt }), (u, E) => {
|
|
4528
|
+
const V = G("el-table-column"), j = G("el-image"), W = G("el-link"), H = G("a-svg-icon"), Q = G("el-button"), M = G("el-dropdown-item"), U = G("el-dropdown-menu"), q = G("el-dropdown"), J = G("el-empty"), ye = G("el-card"), nt = Qt("debounce"), Se = Qt("loading");
|
|
4524
4529
|
return lt((K(), re(ye, {
|
|
4525
4530
|
class: "act-module",
|
|
4526
4531
|
ref_key: "actModuleRef",
|
|
4527
4532
|
ref: le,
|
|
4528
4533
|
shadow: "never"
|
|
4529
4534
|
}, {
|
|
4530
|
-
default:
|
|
4535
|
+
default: L(() => {
|
|
4531
4536
|
var $e, ra;
|
|
4532
4537
|
return [
|
|
4533
4538
|
T(F) === "success" ? (K(), ge(ve, { key: 0 }, [
|
|
4534
|
-
|
|
4539
|
+
I(T(a), {
|
|
4535
4540
|
ref_key: "queryModuleRef",
|
|
4536
4541
|
ref: z,
|
|
4537
|
-
data: T(
|
|
4542
|
+
data: T(S),
|
|
4538
4543
|
onReset: oa,
|
|
4539
4544
|
onSearch: oa
|
|
4540
4545
|
}, null, 8, ["data"]),
|
|
4541
|
-
|
|
4546
|
+
I(T(l), {
|
|
4542
4547
|
ref_key: "headerButtonsModuleRef",
|
|
4543
4548
|
ref: Ke,
|
|
4544
|
-
data: T(
|
|
4549
|
+
data: T(S),
|
|
4545
4550
|
onOnOperate: on
|
|
4546
4551
|
}, null, 8, ["data"]),
|
|
4547
|
-
|
|
4552
|
+
I(T(o), {
|
|
4548
4553
|
ref_key: "aTableRef",
|
|
4549
4554
|
ref: rt,
|
|
4550
|
-
loading: T(
|
|
4551
|
-
total: T(
|
|
4552
|
-
tableQuery: T(
|
|
4553
|
-
"onUpdate:tableQuery":
|
|
4554
|
-
selection: T(
|
|
4555
|
-
"onUpdate:selection":
|
|
4556
|
-
headers: T(
|
|
4555
|
+
loading: T(h).tableLoading,
|
|
4556
|
+
total: T(h).tableTotal,
|
|
4557
|
+
tableQuery: T(h).tableQuery,
|
|
4558
|
+
"onUpdate:tableQuery": E[0] || (E[0] = (Z) => T(h).tableQuery = Z),
|
|
4559
|
+
selection: T(h).tableSelection,
|
|
4560
|
+
"onUpdate:selection": E[1] || (E[1] = (Z) => T(h).tableSelection = Z),
|
|
4561
|
+
headers: T($),
|
|
4557
4562
|
data: T(te),
|
|
4558
|
-
showPagination: (ra = ($e = T(
|
|
4559
|
-
tableConfig:
|
|
4563
|
+
showPagination: (ra = ($e = T(S)) == null ? void 0 : $e.tableConfig) == null ? void 0 : ra.isPagination,
|
|
4564
|
+
tableConfig: p.tableConfig,
|
|
4560
4565
|
maxHeight: Ue.value,
|
|
4561
4566
|
onRefresh: pt,
|
|
4562
4567
|
onOnRowClick: Xl,
|
|
4563
4568
|
onChangeExpand: Zl,
|
|
4564
4569
|
onChangeSelection: zl
|
|
4565
4570
|
}, oo({
|
|
4566
|
-
operate:
|
|
4567
|
-
(K(!0), ge(ve, null, Xe(_t(), (
|
|
4568
|
-
se(
|
|
4569
|
-
|
|
4571
|
+
operate: L(({ scope: Z }) => [
|
|
4572
|
+
(K(!0), ge(ve, null, Xe(_t(), (X, Je) => (K(), ge(ve, { key: Je }, [
|
|
4573
|
+
se(X, Z.row) ? (K(), ge(ve, { key: 0 }, [
|
|
4574
|
+
X.isCustomBtn && X.customType == "component" ? (K(), re(kn(X[X.customComponentName]), {
|
|
4570
4575
|
key: 0,
|
|
4571
4576
|
ref_for: !0,
|
|
4572
|
-
ref: (It) => T(De)[`${
|
|
4573
|
-
buttonData:
|
|
4577
|
+
ref: (It) => T(De)[`${X.customComponentName}-${X.permissionCode}`] = It,
|
|
4578
|
+
buttonData: X,
|
|
4574
4579
|
scope: Z,
|
|
4575
4580
|
onRefresh: qe,
|
|
4576
4581
|
onRefreshTable: pt
|
|
4577
4582
|
}, {
|
|
4578
|
-
default:
|
|
4579
|
-
lt((K(), re(
|
|
4583
|
+
default: L(() => [
|
|
4584
|
+
lt((K(), re(Q, {
|
|
4580
4585
|
class: "ml4",
|
|
4581
4586
|
type: "primary",
|
|
4582
4587
|
link: "",
|
|
4583
4588
|
size: "small",
|
|
4584
|
-
loading: Z.row[`loading${
|
|
4585
|
-
onClick: (It) => on(
|
|
4589
|
+
loading: Z.row[`loading${X.permissionCode}`],
|
|
4590
|
+
onClick: (It) => on(X, Z.row)
|
|
4586
4591
|
}, {
|
|
4587
|
-
default:
|
|
4588
|
-
|
|
4592
|
+
default: L(() => [
|
|
4593
|
+
X.btnIcon && !Z.row[`loading${X.permissionCode}`] ? (K(), re(H, {
|
|
4589
4594
|
key: 0,
|
|
4590
4595
|
class: "mr2",
|
|
4591
|
-
name:
|
|
4596
|
+
name: X.btnIcon,
|
|
4592
4597
|
width: "12",
|
|
4593
4598
|
height: "12",
|
|
4594
|
-
color: T(
|
|
4599
|
+
color: T(f)
|
|
4595
4600
|
}, null, 8, ["name", "color"])) : Qe("", !0),
|
|
4596
|
-
Ie(" " + We(Z.row[`loading${
|
|
4601
|
+
Ie(" " + We(Z.row[`loading${X.permissionCode}`] ? X.btnName + T(i)("act.loading") + "..." : X.btnName), 1)
|
|
4597
4602
|
]),
|
|
4598
4603
|
_: 2
|
|
4599
4604
|
}, 1032, ["loading", "onClick"])), [
|
|
@@ -4601,25 +4606,25 @@ const pi = {
|
|
|
4601
4606
|
])
|
|
4602
4607
|
]),
|
|
4603
4608
|
_: 2
|
|
4604
|
-
}, 1064, ["buttonData", "scope"])) : lt((K(), re(
|
|
4609
|
+
}, 1064, ["buttonData", "scope"])) : lt((K(), re(Q, {
|
|
4605
4610
|
key: 1,
|
|
4606
4611
|
class: "ml4",
|
|
4607
4612
|
type: "primary",
|
|
4608
4613
|
link: "",
|
|
4609
4614
|
size: "small",
|
|
4610
|
-
loading: Z.row[`loading${
|
|
4611
|
-
onClick: (It) => on(
|
|
4615
|
+
loading: Z.row[`loading${X.permissionCode}`],
|
|
4616
|
+
onClick: (It) => on(X, Z.row)
|
|
4612
4617
|
}, {
|
|
4613
|
-
default:
|
|
4614
|
-
|
|
4618
|
+
default: L(() => [
|
|
4619
|
+
X.btnIcon && !Z.row[`loading${X.permissionCode}`] ? (K(), re(H, {
|
|
4615
4620
|
key: 0,
|
|
4616
4621
|
class: "mr2",
|
|
4617
|
-
name:
|
|
4622
|
+
name: X.btnIcon,
|
|
4618
4623
|
width: "12",
|
|
4619
4624
|
height: "12",
|
|
4620
|
-
color: T(
|
|
4625
|
+
color: T(f)
|
|
4621
4626
|
}, null, 8, ["name", "color"])) : Qe("", !0),
|
|
4622
|
-
Ie(" " + We(Z.row[`loading${
|
|
4627
|
+
Ie(" " + We(Z.row[`loading${X.permissionCode}`] ? X.btnName + T(i)("act.loading") + "..." : X.btnName), 1)
|
|
4623
4628
|
]),
|
|
4624
4629
|
_: 2
|
|
4625
4630
|
}, 1032, ["loading", "onClick"])), [
|
|
@@ -4627,45 +4632,45 @@ const pi = {
|
|
|
4627
4632
|
])
|
|
4628
4633
|
], 64)) : Qe("", !0)
|
|
4629
4634
|
], 64))), 128)),
|
|
4630
|
-
gt.value ? Qe("", !0) : (K(), re(
|
|
4635
|
+
gt.value ? Qe("", !0) : (K(), re(q, {
|
|
4631
4636
|
key: 0,
|
|
4632
4637
|
class: "table-opreate-dropdown"
|
|
4633
4638
|
}, {
|
|
4634
|
-
dropdown:
|
|
4635
|
-
|
|
4636
|
-
default:
|
|
4637
|
-
(K(!0), ge(ve, null, Xe(st(), (
|
|
4639
|
+
dropdown: L(() => [
|
|
4640
|
+
I(U, null, {
|
|
4641
|
+
default: L(() => [
|
|
4642
|
+
(K(!0), ge(ve, null, Xe(st(), (X, Je) => (K(), re(M, {
|
|
4638
4643
|
key: Je,
|
|
4639
|
-
onClick: (It) => on(
|
|
4644
|
+
onClick: (It) => on(X, Z.row)
|
|
4640
4645
|
}, {
|
|
4641
|
-
default:
|
|
4642
|
-
se(
|
|
4643
|
-
|
|
4646
|
+
default: L(() => [
|
|
4647
|
+
se(X, Z.row) ? (K(), ge(ve, { key: 0 }, [
|
|
4648
|
+
X.isCustomBtn && X.customType == "component" ? (K(), re(kn(X[X.customComponentName]), {
|
|
4644
4649
|
key: 0,
|
|
4645
4650
|
ref_for: !0,
|
|
4646
|
-
ref: (It) => T(De)[`${
|
|
4647
|
-
buttonData:
|
|
4651
|
+
ref: (It) => T(De)[`${X.customComponentName}-${X.permissionCode}`] = It,
|
|
4652
|
+
buttonData: X,
|
|
4648
4653
|
scope: Z,
|
|
4649
4654
|
onRefresh: qe
|
|
4650
4655
|
}, {
|
|
4651
|
-
default:
|
|
4652
|
-
lt((K(), re(
|
|
4656
|
+
default: L(() => [
|
|
4657
|
+
lt((K(), re(Q, {
|
|
4653
4658
|
class: "ml4",
|
|
4654
4659
|
type: "primary",
|
|
4655
4660
|
link: "",
|
|
4656
4661
|
size: "small",
|
|
4657
|
-
loading: Z.row[`loading${
|
|
4662
|
+
loading: Z.row[`loading${X.permissionCode}`]
|
|
4658
4663
|
}, {
|
|
4659
|
-
default:
|
|
4660
|
-
|
|
4664
|
+
default: L(() => [
|
|
4665
|
+
X.btnIcon && !Z.row[`loading${X.permissionCode}`] ? (K(), re(H, {
|
|
4661
4666
|
key: 0,
|
|
4662
4667
|
class: "mr2",
|
|
4663
|
-
name:
|
|
4668
|
+
name: X.btnIcon,
|
|
4664
4669
|
width: "12",
|
|
4665
4670
|
height: "12",
|
|
4666
|
-
color: T(
|
|
4671
|
+
color: T(f)
|
|
4667
4672
|
}, null, 8, ["name", "color"])) : Qe("", !0),
|
|
4668
|
-
Ie(" " + We(Z.row[`loading${
|
|
4673
|
+
Ie(" " + We(Z.row[`loading${X.permissionCode}`] ? X.btnName + T(i)("act.loading") + "..." : X.btnName), 1)
|
|
4669
4674
|
]),
|
|
4670
4675
|
_: 2
|
|
4671
4676
|
}, 1032, ["loading"])), [
|
|
@@ -4673,24 +4678,24 @@ const pi = {
|
|
|
4673
4678
|
])
|
|
4674
4679
|
]),
|
|
4675
4680
|
_: 2
|
|
4676
|
-
}, 1064, ["buttonData", "scope"])) : lt((K(), re(
|
|
4681
|
+
}, 1064, ["buttonData", "scope"])) : lt((K(), re(Q, {
|
|
4677
4682
|
key: 1,
|
|
4678
4683
|
class: "ml4",
|
|
4679
4684
|
type: "primary",
|
|
4680
4685
|
link: "",
|
|
4681
4686
|
size: "small",
|
|
4682
|
-
loading: Z.row[`loading${
|
|
4687
|
+
loading: Z.row[`loading${X.permissionCode}`]
|
|
4683
4688
|
}, {
|
|
4684
|
-
default:
|
|
4685
|
-
|
|
4689
|
+
default: L(() => [
|
|
4690
|
+
X.btnIcon && !Z.row[`loading${X.permissionCode}`] ? (K(), re(H, {
|
|
4686
4691
|
key: 0,
|
|
4687
4692
|
class: "mr2",
|
|
4688
|
-
name:
|
|
4693
|
+
name: X.btnIcon,
|
|
4689
4694
|
width: "12",
|
|
4690
4695
|
height: "12",
|
|
4691
|
-
color: T(
|
|
4696
|
+
color: T(f)
|
|
4692
4697
|
}, null, 8, ["name", "color"])) : Qe("", !0),
|
|
4693
|
-
Ie(" " + We(Z.row[`loading${
|
|
4698
|
+
Ie(" " + We(Z.row[`loading${X.permissionCode}`] ? X.btnName + T(i)("act.loading") + "..." : X.btnName), 1)
|
|
4694
4699
|
]),
|
|
4695
4700
|
_: 2
|
|
4696
4701
|
}, 1032, ["loading"])), [
|
|
@@ -4704,8 +4709,8 @@ const pi = {
|
|
|
4704
4709
|
_: 2
|
|
4705
4710
|
}, 1024)
|
|
4706
4711
|
]),
|
|
4707
|
-
default:
|
|
4708
|
-
|
|
4712
|
+
default: L(() => [
|
|
4713
|
+
I(Q, {
|
|
4709
4714
|
class: "table-btn-more",
|
|
4710
4715
|
icon: T(ci),
|
|
4711
4716
|
size: "small",
|
|
@@ -4717,24 +4722,24 @@ const pi = {
|
|
|
4717
4722
|
]),
|
|
4718
4723
|
_: 2
|
|
4719
4724
|
}, [
|
|
4720
|
-
Xe(T(ue), (Z,
|
|
4725
|
+
Xe(T(ue), (Z, X) => ({
|
|
4721
4726
|
name: Z.fieldKey,
|
|
4722
|
-
fn:
|
|
4727
|
+
fn: L(() => [
|
|
4723
4728
|
Z[`customTableHeaderInstance_${Z.customTableHeaderName}`] ? (K(), re(kn(Z[`customTableHeaderInstance_${Z.customTableHeaderName}`]), {
|
|
4724
4729
|
key: 0,
|
|
4725
4730
|
data: Z,
|
|
4726
|
-
configData: T(
|
|
4731
|
+
configData: T(S),
|
|
4727
4732
|
rowData: T(je)
|
|
4728
|
-
}, null, 8, ["data", "configData", "rowData"])) : (K(), re(
|
|
4733
|
+
}, null, 8, ["data", "configData", "rowData"])) : (K(), re(V, {
|
|
4729
4734
|
key: 1,
|
|
4730
4735
|
label: Z.fieldName + T(i)("act.customTableHeader"),
|
|
4731
4736
|
width: "260"
|
|
4732
4737
|
}, null, 8, ["label"]))
|
|
4733
4738
|
])
|
|
4734
4739
|
})),
|
|
4735
|
-
Xe(T(he), (Z,
|
|
4740
|
+
Xe(T(he), (Z, X) => ({
|
|
4736
4741
|
name: Z.fieldKey,
|
|
4737
|
-
fn:
|
|
4742
|
+
fn: L(({ scope: Je }) => [
|
|
4738
4743
|
Z.tableCellContentType == "link" ? (K(), ge("span", pi, We(Je.row[Z.fieldKey]), 1)) : Z.fieldType == "editor" ? (K(), ge("span", {
|
|
4739
4744
|
key: 1,
|
|
4740
4745
|
class: "table-link",
|
|
@@ -4748,11 +4753,11 @@ const pi = {
|
|
|
4748
4753
|
"preview-teleported": "",
|
|
4749
4754
|
src: Nt(Z, Je)
|
|
4750
4755
|
}, {
|
|
4751
|
-
error:
|
|
4756
|
+
error: L(() => [
|
|
4752
4757
|
Ne("div", _i, We(Z("act.noImage")), 1)
|
|
4753
4758
|
]),
|
|
4754
4759
|
_: 2
|
|
4755
|
-
}, 1032, ["preview-src-list", "src"])) : (K(), re(
|
|
4760
|
+
}, 1032, ["preview-src-list", "src"])) : (K(), re(W, {
|
|
4756
4761
|
key: 1,
|
|
4757
4762
|
type: "primary"
|
|
4758
4763
|
}))
|
|
@@ -4763,25 +4768,25 @@ const pi = {
|
|
|
4763
4768
|
}))
|
|
4764
4769
|
]), 1032, ["loading", "total", "tableQuery", "selection", "headers", "data", "showPagination", "tableConfig", "maxHeight"])
|
|
4765
4770
|
], 64)) : Qe("", !0),
|
|
4766
|
-
|
|
4767
|
-
visible: T(
|
|
4768
|
-
"onUpdate:visible":
|
|
4769
|
-
title: T(
|
|
4770
|
-
data: T(
|
|
4771
|
+
I(T(r), {
|
|
4772
|
+
visible: T(h).showFormDialog,
|
|
4773
|
+
"onUpdate:visible": E[2] || (E[2] = (Z) => T(h).showFormDialog = Z),
|
|
4774
|
+
title: T(h).dialogTitle,
|
|
4775
|
+
data: T(h).dialogData,
|
|
4771
4776
|
onRefresh: Jl
|
|
4772
4777
|
}, null, 8, ["visible", "title", "data"]),
|
|
4773
|
-
|
|
4774
|
-
visible: T(
|
|
4775
|
-
"onUpdate:visible":
|
|
4776
|
-
title: T(
|
|
4777
|
-
data: T(
|
|
4778
|
+
I(T(s), {
|
|
4779
|
+
visible: T(h).showEditorPreDialog,
|
|
4780
|
+
"onUpdate:visible": E[3] || (E[3] = (Z) => T(h).showEditorPreDialog = Z),
|
|
4781
|
+
title: T(h).editorDialogTitle,
|
|
4782
|
+
data: T(h).dialogData
|
|
4778
4783
|
}, null, 8, ["visible", "title", "data"]),
|
|
4779
|
-
T(F) === "end" ? (K(), re(
|
|
4784
|
+
T(F) === "end" ? (K(), re(J, {
|
|
4780
4785
|
key: 1,
|
|
4781
4786
|
description: T(i)("act.noConfigPage")
|
|
4782
4787
|
}, {
|
|
4783
|
-
image:
|
|
4784
|
-
|
|
4788
|
+
image: L(() => [
|
|
4789
|
+
I(H, {
|
|
4785
4790
|
name: "config-nodata",
|
|
4786
4791
|
width: "200",
|
|
4787
4792
|
height: "200"
|
|
@@ -4793,11 +4798,11 @@ const pi = {
|
|
|
4793
4798
|
}),
|
|
4794
4799
|
_: 1
|
|
4795
4800
|
})), [
|
|
4796
|
-
[Se, T(
|
|
4801
|
+
[Se, T(h).pageLoading]
|
|
4797
4802
|
]);
|
|
4798
4803
|
};
|
|
4799
4804
|
}
|
|
4800
|
-
}, Gl = /* @__PURE__ */ Ft(bi, [["__scopeId", "data-v-
|
|
4805
|
+
}, Gl = /* @__PURE__ */ Ft(bi, [["__scopeId", "data-v-226b21a1"]]), $i = [
|
|
4801
4806
|
{ key: "按钮形式", value: "default" },
|
|
4802
4807
|
{ key: "文字形式", value: "text" }
|
|
4803
4808
|
], Ji = [
|
|
@@ -4924,28 +4929,28 @@ const pi = {
|
|
|
4924
4929
|
},
|
|
4925
4930
|
{ deep: !0, immediate: !0 }
|
|
4926
4931
|
), t({ formRef: o, form: r }), (s, i) => {
|
|
4927
|
-
const
|
|
4928
|
-
return K(), re(
|
|
4932
|
+
const g = G("el-input-number"), b = G("el-form-item"), C = G("el-col"), f = G("el-option"), O = G("el-select"), k = G("el-row"), v = G("el-form"), w = G("el-card");
|
|
4933
|
+
return K(), re(w, {
|
|
4929
4934
|
class: "form-card",
|
|
4930
4935
|
shadow: "hover",
|
|
4931
4936
|
header: "表单配置"
|
|
4932
4937
|
}, {
|
|
4933
|
-
default:
|
|
4934
|
-
|
|
4938
|
+
default: L(() => [
|
|
4939
|
+
I(v, {
|
|
4935
4940
|
ref_key: "formRef",
|
|
4936
4941
|
ref: o,
|
|
4937
4942
|
model: T(r),
|
|
4938
4943
|
"label-suffix": ":",
|
|
4939
4944
|
"label-width": "110px"
|
|
4940
4945
|
}, {
|
|
4941
|
-
default:
|
|
4942
|
-
|
|
4943
|
-
default:
|
|
4944
|
-
|
|
4945
|
-
default:
|
|
4946
|
-
|
|
4947
|
-
default:
|
|
4948
|
-
|
|
4946
|
+
default: L(() => [
|
|
4947
|
+
I(k, null, {
|
|
4948
|
+
default: L(() => [
|
|
4949
|
+
I(C, { span: 8 }, {
|
|
4950
|
+
default: L(() => [
|
|
4951
|
+
I(b, { label: "弹窗宽度" }, {
|
|
4952
|
+
default: L(() => [
|
|
4953
|
+
I(g, {
|
|
4949
4954
|
modelValue: T(r).dialogWidth,
|
|
4950
4955
|
"onUpdate:modelValue": i[0] || (i[0] = (m) => T(r).dialogWidth = m),
|
|
4951
4956
|
min: 800
|
|
@@ -4956,11 +4961,11 @@ const pi = {
|
|
|
4956
4961
|
]),
|
|
4957
4962
|
_: 1
|
|
4958
4963
|
}),
|
|
4959
|
-
|
|
4960
|
-
default:
|
|
4961
|
-
|
|
4962
|
-
default:
|
|
4963
|
-
|
|
4964
|
+
I(C, { span: 8 }, {
|
|
4965
|
+
default: L(() => [
|
|
4966
|
+
I(b, { label: "排版列数" }, {
|
|
4967
|
+
default: L(() => [
|
|
4968
|
+
I(g, {
|
|
4964
4969
|
modelValue: T(r).formRow,
|
|
4965
4970
|
"onUpdate:modelValue": i[1] || (i[1] = (m) => T(r).formRow = m),
|
|
4966
4971
|
min: 1,
|
|
@@ -4972,11 +4977,11 @@ const pi = {
|
|
|
4972
4977
|
]),
|
|
4973
4978
|
_: 1
|
|
4974
4979
|
}),
|
|
4975
|
-
|
|
4976
|
-
default:
|
|
4977
|
-
|
|
4978
|
-
default:
|
|
4979
|
-
|
|
4980
|
+
I(C, { span: 8 }, {
|
|
4981
|
+
default: L(() => [
|
|
4982
|
+
I(b, { label: "label宽度" }, {
|
|
4983
|
+
default: L(() => [
|
|
4984
|
+
I(g, {
|
|
4980
4985
|
modelValue: T(r).formLabelWidth,
|
|
4981
4986
|
"onUpdate:modelValue": i[2] || (i[2] = (m) => T(r).formLabelWidth = m),
|
|
4982
4987
|
min: 80
|
|
@@ -4987,21 +4992,21 @@ const pi = {
|
|
|
4987
4992
|
]),
|
|
4988
4993
|
_: 1
|
|
4989
4994
|
}),
|
|
4990
|
-
|
|
4991
|
-
default:
|
|
4992
|
-
|
|
4995
|
+
I(C, { span: 8 }, {
|
|
4996
|
+
default: L(() => [
|
|
4997
|
+
I(b, {
|
|
4993
4998
|
label: "label位置",
|
|
4994
4999
|
rules: [{ required: !0, message: "必填项", trigger: ["change"] }],
|
|
4995
5000
|
prop: "formLabelPosition"
|
|
4996
5001
|
}, {
|
|
4997
|
-
default:
|
|
4998
|
-
|
|
5002
|
+
default: L(() => [
|
|
5003
|
+
I(O, {
|
|
4999
5004
|
modelValue: T(r).formLabelPosition,
|
|
5000
5005
|
"onUpdate:modelValue": i[3] || (i[3] = (m) => T(r).formLabelPosition = m),
|
|
5001
5006
|
placeholder: "请选择"
|
|
5002
5007
|
}, {
|
|
5003
|
-
default:
|
|
5004
|
-
(K(!0), ge(ve, null, Xe(T(yi), (m, A) => (K(), re(
|
|
5008
|
+
default: L(() => [
|
|
5009
|
+
(K(!0), ge(ve, null, Xe(T(yi), (m, A) => (K(), re(f, {
|
|
5005
5010
|
key: A + "labelPosition",
|
|
5006
5011
|
label: m.key,
|
|
5007
5012
|
value: m.value
|
|
@@ -5054,13 +5059,13 @@ const Ni = {
|
|
|
5054
5059
|
let r = ae(null), s = ae(l());
|
|
5055
5060
|
dt(
|
|
5056
5061
|
() => a.modelValue,
|
|
5057
|
-
(C,
|
|
5062
|
+
(C, f) => {
|
|
5058
5063
|
if (C) {
|
|
5059
5064
|
if (!Object.keys(C).length)
|
|
5060
5065
|
return;
|
|
5061
|
-
const
|
|
5066
|
+
const O = { ...C, defaultParams: [...C.defaultParams || []] };
|
|
5062
5067
|
Object.keys(s.value).forEach((k) => {
|
|
5063
|
-
["defaultParams"].includes(k) ? s.value[k] = [...
|
|
5068
|
+
["defaultParams"].includes(k) ? s.value[k] = [...O[k] || []] : k === "tableMoreBtnSplitNumber" ? s.value[k] = Reflect.has(O, "tableMoreBtnSplitNumber") ? O[k] : 0 : k === "headerMoreBtnSplitNumber" ? s.value[k] = Reflect.has(O, "headerMoreBtnSplitNumber") ? O[k] : 0 : k === "isExecuteImmediatelyTableApi" ? s.value[k] = Reflect.has(O, "isExecuteImmediatelyTableApi") ? O[k] : !0 : s.value[k] = O[k];
|
|
5064
5069
|
});
|
|
5065
5070
|
}
|
|
5066
5071
|
},
|
|
@@ -5068,40 +5073,40 @@ const Ni = {
|
|
|
5068
5073
|
);
|
|
5069
5074
|
const i = () => {
|
|
5070
5075
|
s.value.defaultParams.push({ submitFieldName: "", defaultValue: "", matchValue: "", submitFieldType: "" });
|
|
5071
|
-
},
|
|
5076
|
+
}, g = (C) => {
|
|
5072
5077
|
s.value.defaultParams.splice(C, 1);
|
|
5073
|
-
},
|
|
5078
|
+
}, b = (C) => {
|
|
5074
5079
|
C || (s.value.pageSize = 10);
|
|
5075
5080
|
};
|
|
5076
|
-
return t({ formRef: r, form: s }), (C,
|
|
5077
|
-
const
|
|
5078
|
-
return K(), re(
|
|
5081
|
+
return t({ formRef: r, form: s }), (C, f) => {
|
|
5082
|
+
const O = G("el-input"), k = G("el-form-item"), v = G("el-col"), w = G("el-row"), m = G("el-button"), A = G("el-divider"), p = G("el-option"), _ = G("el-select"), h = G("el-switch"), F = G("el-input-number"), y = G("el-form"), S = G("el-card");
|
|
5083
|
+
return K(), re(S, {
|
|
5079
5084
|
class: "form-card",
|
|
5080
5085
|
shadow: "hover",
|
|
5081
5086
|
header: "表格配置"
|
|
5082
5087
|
}, {
|
|
5083
|
-
default:
|
|
5084
|
-
|
|
5088
|
+
default: L(() => [
|
|
5089
|
+
I(y, {
|
|
5085
5090
|
ref_key: "formRef",
|
|
5086
5091
|
ref: r,
|
|
5087
5092
|
model: T(s),
|
|
5088
5093
|
"label-suffix": ":",
|
|
5089
5094
|
"label-width": "120"
|
|
5090
5095
|
}, {
|
|
5091
|
-
default:
|
|
5092
|
-
|
|
5093
|
-
default:
|
|
5094
|
-
|
|
5095
|
-
default:
|
|
5096
|
-
|
|
5096
|
+
default: L(() => [
|
|
5097
|
+
I(w, null, {
|
|
5098
|
+
default: L(() => [
|
|
5099
|
+
I(v, { span: 24 }, {
|
|
5100
|
+
default: L(() => [
|
|
5101
|
+
I(k, {
|
|
5097
5102
|
label: "表格数据url",
|
|
5098
5103
|
prop: "dataUrl",
|
|
5099
5104
|
rules: [{ required: !0, message: "必填项", trigger: "blur" }]
|
|
5100
5105
|
}, {
|
|
5101
|
-
default:
|
|
5102
|
-
|
|
5106
|
+
default: L(() => [
|
|
5107
|
+
I(O, {
|
|
5103
5108
|
modelValue: T(s).dataUrl,
|
|
5104
|
-
"onUpdate:modelValue":
|
|
5109
|
+
"onUpdate:modelValue": f[0] || (f[0] = (D) => T(s).dataUrl = D),
|
|
5105
5110
|
placeholder: "请输入",
|
|
5106
5111
|
clearable: ""
|
|
5107
5112
|
}, null, 8, ["modelValue"])
|
|
@@ -5114,10 +5119,10 @@ const Ni = {
|
|
|
5114
5119
|
]),
|
|
5115
5120
|
_: 1
|
|
5116
5121
|
}),
|
|
5117
|
-
|
|
5118
|
-
default:
|
|
5119
|
-
|
|
5120
|
-
|
|
5122
|
+
I(A, { "content-position": "left" }, {
|
|
5123
|
+
default: L(() => [
|
|
5124
|
+
f[14] || (f[14] = Ie(" 表格默认参数配置 ", -1)),
|
|
5125
|
+
I(m, {
|
|
5121
5126
|
class: "add-icon-btn",
|
|
5122
5127
|
type: "primary",
|
|
5123
5128
|
icon: "Plus",
|
|
@@ -5127,20 +5132,20 @@ const Ni = {
|
|
|
5127
5132
|
]),
|
|
5128
5133
|
_: 1
|
|
5129
5134
|
}),
|
|
5130
|
-
(K(!0), ge(ve, null, Xe(T(s).defaultParams, (D,
|
|
5135
|
+
(K(!0), ge(ve, null, Xe(T(s).defaultParams, (D, $) => (K(), re(w, {
|
|
5131
5136
|
class: "table-post-params",
|
|
5132
|
-
key:
|
|
5137
|
+
key: $
|
|
5133
5138
|
}, {
|
|
5134
|
-
default:
|
|
5135
|
-
|
|
5136
|
-
default:
|
|
5137
|
-
|
|
5139
|
+
default: L(() => [
|
|
5140
|
+
I(v, { span: 12 }, {
|
|
5141
|
+
default: L(() => [
|
|
5142
|
+
I(k, {
|
|
5138
5143
|
label: "字段",
|
|
5139
5144
|
rules: [{ required: !0, message: "必填项", trigger: "blur" }],
|
|
5140
|
-
prop: "defaultParams." +
|
|
5145
|
+
prop: "defaultParams." + $ + ".submitFieldName"
|
|
5141
5146
|
}, {
|
|
5142
|
-
default:
|
|
5143
|
-
|
|
5147
|
+
default: L(() => [
|
|
5148
|
+
I(O, {
|
|
5144
5149
|
modelValue: D.submitFieldName,
|
|
5145
5150
|
"onUpdate:modelValue": (Y) => D.submitFieldName = Y,
|
|
5146
5151
|
placeholder: "请输入",
|
|
@@ -5152,23 +5157,23 @@ const Ni = {
|
|
|
5152
5157
|
]),
|
|
5153
5158
|
_: 2
|
|
5154
5159
|
}, 1024),
|
|
5155
|
-
|
|
5156
|
-
default:
|
|
5157
|
-
|
|
5160
|
+
I(v, { span: 12 }, {
|
|
5161
|
+
default: L(() => [
|
|
5162
|
+
I(k, {
|
|
5158
5163
|
label: "匹配条件",
|
|
5159
5164
|
rules: [{ required: !0, message: "必填项", trigger: "change" }],
|
|
5160
|
-
prop: "defaultParams." +
|
|
5165
|
+
prop: "defaultParams." + $ + ".matchValue"
|
|
5161
5166
|
}, {
|
|
5162
|
-
default:
|
|
5163
|
-
|
|
5167
|
+
default: L(() => [
|
|
5168
|
+
I(_, {
|
|
5164
5169
|
modelValue: D.matchValue,
|
|
5165
5170
|
"onUpdate:modelValue": (Y) => D.matchValue = Y,
|
|
5166
5171
|
placeholder: "请选择",
|
|
5167
5172
|
filterable: "",
|
|
5168
5173
|
clearable: ""
|
|
5169
5174
|
}, {
|
|
5170
|
-
default:
|
|
5171
|
-
(K(!0), ge(ve, null, Xe(T(o), (Y, te) => (K(), re(
|
|
5175
|
+
default: L(() => [
|
|
5176
|
+
(K(!0), ge(ve, null, Xe(T(o), (Y, te) => (K(), re(p, {
|
|
5172
5177
|
key: te,
|
|
5173
5178
|
label: Y.key,
|
|
5174
5179
|
value: Y.value
|
|
@@ -5182,15 +5187,15 @@ const Ni = {
|
|
|
5182
5187
|
]),
|
|
5183
5188
|
_: 2
|
|
5184
5189
|
}, 1024),
|
|
5185
|
-
|
|
5186
|
-
default:
|
|
5187
|
-
|
|
5190
|
+
I(v, { span: 12 }, {
|
|
5191
|
+
default: L(() => [
|
|
5192
|
+
I(k, {
|
|
5188
5193
|
label: "默认值",
|
|
5189
5194
|
rules: [{ required: !0, message: "必填项", trigger: "blur" }],
|
|
5190
|
-
prop: "defaultParams." +
|
|
5195
|
+
prop: "defaultParams." + $ + ".defaultValue"
|
|
5191
5196
|
}, {
|
|
5192
|
-
default:
|
|
5193
|
-
|
|
5197
|
+
default: L(() => [
|
|
5198
|
+
I(O, {
|
|
5194
5199
|
modelValue: D.defaultValue,
|
|
5195
5200
|
"onUpdate:modelValue": (Y) => D.defaultValue = Y,
|
|
5196
5201
|
placeholder: "请输入",
|
|
@@ -5202,23 +5207,23 @@ const Ni = {
|
|
|
5202
5207
|
]),
|
|
5203
5208
|
_: 2
|
|
5204
5209
|
}, 1024),
|
|
5205
|
-
|
|
5206
|
-
default:
|
|
5207
|
-
|
|
5210
|
+
I(v, { span: 12 }, {
|
|
5211
|
+
default: L(() => [
|
|
5212
|
+
I(k, {
|
|
5208
5213
|
label: "提交类型",
|
|
5209
5214
|
rules: [{ required: !0, message: "必填项", trigger: "change" }],
|
|
5210
|
-
prop: "defaultParams." +
|
|
5215
|
+
prop: "defaultParams." + $ + ".submitFieldType"
|
|
5211
5216
|
}, {
|
|
5212
|
-
default:
|
|
5213
|
-
|
|
5217
|
+
default: L(() => [
|
|
5218
|
+
I(_, {
|
|
5214
5219
|
modelValue: D.submitFieldType,
|
|
5215
5220
|
"onUpdate:modelValue": (Y) => D.submitFieldType = Y,
|
|
5216
5221
|
placeholder: "请选择",
|
|
5217
5222
|
filterable: "",
|
|
5218
5223
|
clearable: ""
|
|
5219
5224
|
}, {
|
|
5220
|
-
default:
|
|
5221
|
-
(K(!0), ge(ve, null, Xe(T(hi), (Y, te) => (K(), re(
|
|
5225
|
+
default: L(() => [
|
|
5226
|
+
(K(!0), ge(ve, null, Xe(T(hi), (Y, te) => (K(), re(p, {
|
|
5222
5227
|
key: te,
|
|
5223
5228
|
label: Y.key,
|
|
5224
5229
|
value: Y.value
|
|
@@ -5232,18 +5237,18 @@ const Ni = {
|
|
|
5232
5237
|
]),
|
|
5233
5238
|
_: 2
|
|
5234
5239
|
}, 1024),
|
|
5235
|
-
|
|
5236
|
-
|
|
5240
|
+
I(A, { "content-position": "left" }),
|
|
5241
|
+
I(v, {
|
|
5237
5242
|
class: "submit-operate",
|
|
5238
5243
|
span: 2
|
|
5239
5244
|
}, {
|
|
5240
|
-
default:
|
|
5241
|
-
|
|
5245
|
+
default: L(() => [
|
|
5246
|
+
I(m, {
|
|
5242
5247
|
class: "match-opreate",
|
|
5243
5248
|
type: "danger",
|
|
5244
5249
|
icon: "Minus",
|
|
5245
5250
|
circle: "",
|
|
5246
|
-
onClick: (Y) =>
|
|
5251
|
+
onClick: (Y) => g($)
|
|
5247
5252
|
}, null, 8, ["onClick"])
|
|
5248
5253
|
]),
|
|
5249
5254
|
_: 2
|
|
@@ -5251,15 +5256,15 @@ const Ni = {
|
|
|
5251
5256
|
]),
|
|
5252
5257
|
_: 2
|
|
5253
5258
|
}, 1024))), 128)),
|
|
5254
|
-
|
|
5255
|
-
default:
|
|
5256
|
-
|
|
5257
|
-
default:
|
|
5258
|
-
|
|
5259
|
-
default:
|
|
5260
|
-
|
|
5259
|
+
I(w, null, {
|
|
5260
|
+
default: L(() => [
|
|
5261
|
+
I(v, { span: 6 }, {
|
|
5262
|
+
default: L(() => [
|
|
5263
|
+
I(k, { label: "多选列" }, {
|
|
5264
|
+
default: L(() => [
|
|
5265
|
+
I(h, {
|
|
5261
5266
|
modelValue: T(s).isCheckRow,
|
|
5262
|
-
"onUpdate:modelValue":
|
|
5267
|
+
"onUpdate:modelValue": f[1] || (f[1] = (D) => T(s).isCheckRow = D)
|
|
5263
5268
|
}, null, 8, ["modelValue"])
|
|
5264
5269
|
]),
|
|
5265
5270
|
_: 1
|
|
@@ -5267,13 +5272,13 @@ const Ni = {
|
|
|
5267
5272
|
]),
|
|
5268
5273
|
_: 1
|
|
5269
5274
|
}),
|
|
5270
|
-
|
|
5271
|
-
default:
|
|
5272
|
-
|
|
5273
|
-
default:
|
|
5274
|
-
|
|
5275
|
+
I(v, { span: 6 }, {
|
|
5276
|
+
default: L(() => [
|
|
5277
|
+
I(k, { label: "操作列" }, {
|
|
5278
|
+
default: L(() => [
|
|
5279
|
+
I(h, {
|
|
5275
5280
|
modelValue: T(s).isOperateRow,
|
|
5276
|
-
"onUpdate:modelValue":
|
|
5281
|
+
"onUpdate:modelValue": f[2] || (f[2] = (D) => T(s).isOperateRow = D)
|
|
5277
5282
|
}, null, 8, ["modelValue"])
|
|
5278
5283
|
]),
|
|
5279
5284
|
_: 1
|
|
@@ -5281,14 +5286,14 @@ const Ni = {
|
|
|
5281
5286
|
]),
|
|
5282
5287
|
_: 1
|
|
5283
5288
|
}),
|
|
5284
|
-
|
|
5285
|
-
default:
|
|
5286
|
-
|
|
5287
|
-
default:
|
|
5288
|
-
|
|
5289
|
+
I(v, { span: 6 }, {
|
|
5290
|
+
default: L(() => [
|
|
5291
|
+
I(k, { label: "分页" }, {
|
|
5292
|
+
default: L(() => [
|
|
5293
|
+
I(h, {
|
|
5289
5294
|
modelValue: T(s).isPagination,
|
|
5290
|
-
"onUpdate:modelValue":
|
|
5291
|
-
onChange:
|
|
5295
|
+
"onUpdate:modelValue": f[3] || (f[3] = (D) => T(s).isPagination = D),
|
|
5296
|
+
onChange: b
|
|
5292
5297
|
}, null, 8, ["modelValue"])
|
|
5293
5298
|
]),
|
|
5294
5299
|
_: 1
|
|
@@ -5296,13 +5301,13 @@ const Ni = {
|
|
|
5296
5301
|
]),
|
|
5297
5302
|
_: 1
|
|
5298
5303
|
}),
|
|
5299
|
-
|
|
5300
|
-
default:
|
|
5301
|
-
|
|
5302
|
-
default:
|
|
5303
|
-
|
|
5304
|
+
I(v, { span: 6 }, {
|
|
5305
|
+
default: L(() => [
|
|
5306
|
+
I(k, { label: "序号列" }, {
|
|
5307
|
+
default: L(() => [
|
|
5308
|
+
I(h, {
|
|
5304
5309
|
modelValue: T(s).isSerialNumber,
|
|
5305
|
-
"onUpdate:modelValue":
|
|
5310
|
+
"onUpdate:modelValue": f[4] || (f[4] = (D) => T(s).isSerialNumber = D)
|
|
5306
5311
|
}, null, 8, ["modelValue"])
|
|
5307
5312
|
]),
|
|
5308
5313
|
_: 1
|
|
@@ -5310,13 +5315,13 @@ const Ni = {
|
|
|
5310
5315
|
]),
|
|
5311
5316
|
_: 1
|
|
5312
5317
|
}),
|
|
5313
|
-
|
|
5314
|
-
default:
|
|
5315
|
-
|
|
5316
|
-
default:
|
|
5317
|
-
|
|
5318
|
+
I(v, { span: 6 }, {
|
|
5319
|
+
default: L(() => [
|
|
5320
|
+
I(k, { label: "排序" }, {
|
|
5321
|
+
default: L(() => [
|
|
5322
|
+
I(h, {
|
|
5318
5323
|
modelValue: T(s).isSort,
|
|
5319
|
-
"onUpdate:modelValue":
|
|
5324
|
+
"onUpdate:modelValue": f[5] || (f[5] = (D) => T(s).isSort = D)
|
|
5320
5325
|
}, null, 8, ["modelValue"])
|
|
5321
5326
|
]),
|
|
5322
5327
|
_: 1
|
|
@@ -5324,14 +5329,14 @@ const Ni = {
|
|
|
5324
5329
|
]),
|
|
5325
5330
|
_: 1
|
|
5326
5331
|
}),
|
|
5327
|
-
|
|
5328
|
-
default:
|
|
5329
|
-
|
|
5330
|
-
default:
|
|
5331
|
-
|
|
5332
|
+
I(v, { span: 6 }, {
|
|
5333
|
+
default: L(() => [
|
|
5334
|
+
I(k, { label: "展/收查询条件" }, {
|
|
5335
|
+
default: L(() => [
|
|
5336
|
+
I(h, {
|
|
5332
5337
|
modelValue: T(s).isExpandQuery,
|
|
5333
|
-
"onUpdate:modelValue":
|
|
5334
|
-
onChange:
|
|
5338
|
+
"onUpdate:modelValue": f[6] || (f[6] = (D) => T(s).isExpandQuery = D),
|
|
5339
|
+
onChange: b
|
|
5335
5340
|
}, null, 8, ["modelValue"])
|
|
5336
5341
|
]),
|
|
5337
5342
|
_: 1
|
|
@@ -5339,13 +5344,13 @@ const Ni = {
|
|
|
5339
5344
|
]),
|
|
5340
5345
|
_: 1
|
|
5341
5346
|
}),
|
|
5342
|
-
|
|
5343
|
-
default:
|
|
5344
|
-
|
|
5345
|
-
default:
|
|
5346
|
-
|
|
5347
|
+
I(v, { span: 6 }, {
|
|
5348
|
+
default: L(() => [
|
|
5349
|
+
I(k, { label: "立即执行接口" }, {
|
|
5350
|
+
default: L(() => [
|
|
5351
|
+
I(h, {
|
|
5347
5352
|
modelValue: T(s).isExecuteImmediatelyTableApi,
|
|
5348
|
-
"onUpdate:modelValue":
|
|
5353
|
+
"onUpdate:modelValue": f[7] || (f[7] = (D) => T(s).isExecuteImmediatelyTableApi = D)
|
|
5349
5354
|
}, null, 8, ["modelValue"])
|
|
5350
5355
|
]),
|
|
5351
5356
|
_: 1
|
|
@@ -5356,21 +5361,21 @@ const Ni = {
|
|
|
5356
5361
|
]),
|
|
5357
5362
|
_: 1
|
|
5358
5363
|
}),
|
|
5359
|
-
|
|
5360
|
-
default:
|
|
5364
|
+
I(w, null, {
|
|
5365
|
+
default: L(() => [
|
|
5361
5366
|
T(s).isOperateRow ? (K(), re(v, {
|
|
5362
5367
|
key: 0,
|
|
5363
5368
|
span: 8
|
|
5364
5369
|
}, {
|
|
5365
|
-
default:
|
|
5366
|
-
|
|
5370
|
+
default: L(() => [
|
|
5371
|
+
I(k, {
|
|
5367
5372
|
label: "操作列宽度",
|
|
5368
5373
|
"label-width": "150"
|
|
5369
5374
|
}, {
|
|
5370
|
-
default:
|
|
5371
|
-
|
|
5375
|
+
default: L(() => [
|
|
5376
|
+
I(F, {
|
|
5372
5377
|
modelValue: T(s).tableOperateCellWidth,
|
|
5373
|
-
"onUpdate:modelValue":
|
|
5378
|
+
"onUpdate:modelValue": f[8] || (f[8] = (D) => T(s).tableOperateCellWidth = D),
|
|
5374
5379
|
min: 120
|
|
5375
5380
|
}, null, 8, ["modelValue"])
|
|
5376
5381
|
]),
|
|
@@ -5383,17 +5388,17 @@ const Ni = {
|
|
|
5383
5388
|
key: 1,
|
|
5384
5389
|
span: 8
|
|
5385
5390
|
}, {
|
|
5386
|
-
default:
|
|
5387
|
-
|
|
5391
|
+
default: L(() => [
|
|
5392
|
+
I(k, {
|
|
5388
5393
|
label: "分页页数",
|
|
5389
5394
|
prop: "pageSize",
|
|
5390
5395
|
"label-width": "150",
|
|
5391
5396
|
rules: [{ required: !0, message: "必填项", trigger: "blur" }]
|
|
5392
5397
|
}, {
|
|
5393
|
-
default:
|
|
5394
|
-
|
|
5398
|
+
default: L(() => [
|
|
5399
|
+
I(F, {
|
|
5395
5400
|
modelValue: T(s).pageSize,
|
|
5396
|
-
"onUpdate:modelValue":
|
|
5401
|
+
"onUpdate:modelValue": f[9] || (f[9] = (D) => T(s).pageSize = D),
|
|
5397
5402
|
min: 10
|
|
5398
5403
|
}, null, 8, ["modelValue"])
|
|
5399
5404
|
]),
|
|
@@ -5402,16 +5407,16 @@ const Ni = {
|
|
|
5402
5407
|
]),
|
|
5403
5408
|
_: 1
|
|
5404
5409
|
})) : Qe("", !0),
|
|
5405
|
-
|
|
5406
|
-
default:
|
|
5407
|
-
|
|
5410
|
+
I(v, { span: 8 }, {
|
|
5411
|
+
default: L(() => [
|
|
5412
|
+
I(k, {
|
|
5408
5413
|
label: "查询条件label宽度",
|
|
5409
5414
|
"label-width": "150"
|
|
5410
5415
|
}, {
|
|
5411
|
-
default:
|
|
5412
|
-
|
|
5416
|
+
default: L(() => [
|
|
5417
|
+
I(F, {
|
|
5413
5418
|
modelValue: T(s).tableQueryLabelWidth,
|
|
5414
|
-
"onUpdate:modelValue":
|
|
5419
|
+
"onUpdate:modelValue": f[10] || (f[10] = (D) => T(s).tableQueryLabelWidth = D),
|
|
5415
5420
|
min: 80
|
|
5416
5421
|
}, null, 8, ["modelValue"])
|
|
5417
5422
|
]),
|
|
@@ -5420,16 +5425,16 @@ const Ni = {
|
|
|
5420
5425
|
]),
|
|
5421
5426
|
_: 1
|
|
5422
5427
|
}),
|
|
5423
|
-
|
|
5424
|
-
default:
|
|
5425
|
-
|
|
5428
|
+
I(v, { span: 8 }, {
|
|
5429
|
+
default: L(() => [
|
|
5430
|
+
I(k, {
|
|
5426
5431
|
label: "查询条件列数",
|
|
5427
5432
|
"label-width": "150"
|
|
5428
5433
|
}, {
|
|
5429
|
-
default:
|
|
5430
|
-
|
|
5434
|
+
default: L(() => [
|
|
5435
|
+
I(F, {
|
|
5431
5436
|
modelValue: T(s).tableQueryRowWidth,
|
|
5432
|
-
"onUpdate:modelValue":
|
|
5437
|
+
"onUpdate:modelValue": f[11] || (f[11] = (D) => T(s).tableQueryRowWidth = D),
|
|
5433
5438
|
min: 1
|
|
5434
5439
|
}, null, 8, ["modelValue"])
|
|
5435
5440
|
]),
|
|
@@ -5438,16 +5443,16 @@ const Ni = {
|
|
|
5438
5443
|
]),
|
|
5439
5444
|
_: 1
|
|
5440
5445
|
}),
|
|
5441
|
-
|
|
5442
|
-
default:
|
|
5443
|
-
|
|
5446
|
+
I(v, { span: 8 }, {
|
|
5447
|
+
default: L(() => [
|
|
5448
|
+
I(k, {
|
|
5444
5449
|
label: "表格更多按钮分割数",
|
|
5445
5450
|
"label-width": "150"
|
|
5446
5451
|
}, {
|
|
5447
|
-
default:
|
|
5448
|
-
|
|
5452
|
+
default: L(() => [
|
|
5453
|
+
I(F, {
|
|
5449
5454
|
modelValue: T(s).tableMoreBtnSplitNumber,
|
|
5450
|
-
"onUpdate:modelValue":
|
|
5455
|
+
"onUpdate:modelValue": f[12] || (f[12] = (D) => T(s).tableMoreBtnSplitNumber = D),
|
|
5451
5456
|
min: 0
|
|
5452
5457
|
}, null, 8, ["modelValue"])
|
|
5453
5458
|
]),
|
|
@@ -5456,16 +5461,16 @@ const Ni = {
|
|
|
5456
5461
|
]),
|
|
5457
5462
|
_: 1
|
|
5458
5463
|
}),
|
|
5459
|
-
|
|
5460
|
-
default:
|
|
5461
|
-
|
|
5464
|
+
I(v, { span: 8 }, {
|
|
5465
|
+
default: L(() => [
|
|
5466
|
+
I(k, {
|
|
5462
5467
|
label: "顶部更多按钮分割数",
|
|
5463
5468
|
"label-width": "150"
|
|
5464
5469
|
}, {
|
|
5465
|
-
default:
|
|
5466
|
-
|
|
5470
|
+
default: L(() => [
|
|
5471
|
+
I(F, {
|
|
5467
5472
|
modelValue: T(s).headerMoreBtnSplitNumber,
|
|
5468
|
-
"onUpdate:modelValue":
|
|
5473
|
+
"onUpdate:modelValue": f[13] || (f[13] = (D) => T(s).headerMoreBtnSplitNumber = D),
|
|
5469
5474
|
min: 0
|
|
5470
5475
|
}, null, 8, ["modelValue"])
|
|
5471
5476
|
]),
|
|
@@ -5493,7 +5498,7 @@ const Si = {
|
|
|
5493
5498
|
},
|
|
5494
5499
|
emits: ["update:modelValue"],
|
|
5495
5500
|
setup(e, { expose: t, emit: n }) {
|
|
5496
|
-
const a = _n(), l = Oe("apiPrefix"), o = Oe("request"), r = ut(() => import("./dialogConfigBtn-
|
|
5501
|
+
const a = _n(), l = Oe("apiPrefix"), o = Oe("request"), r = ut(() => import("./dialogConfigBtn-3b5532ee.js")), s = e, i = () => ({
|
|
5497
5502
|
sort: 0,
|
|
5498
5503
|
permissionCode: null,
|
|
5499
5504
|
requestUrl: "",
|
|
@@ -5516,11 +5521,11 @@ const Si = {
|
|
|
5516
5521
|
submitFields: [],
|
|
5517
5522
|
matchFields: []
|
|
5518
5523
|
});
|
|
5519
|
-
let
|
|
5524
|
+
let b = Vt((() => ({
|
|
5520
5525
|
tableLoading: !1,
|
|
5521
5526
|
showConfigBtnDialog: !1,
|
|
5522
5527
|
dialogData: {}
|
|
5523
|
-
}))()), C = ae(null),
|
|
5528
|
+
}))()), C = ae(null), f = 0, O = ae([]), k = ae([]), v = [
|
|
5524
5529
|
{ prop: "checkbox", width: 60 },
|
|
5525
5530
|
{ prop: "serialNumber", width: 80 },
|
|
5526
5531
|
{ label: "按钮名称", prop: "btnName", minWidth: 200 },
|
|
@@ -5530,87 +5535,87 @@ const Si = {
|
|
|
5530
5535
|
{ label: "是否自定义", prop: "isCustomBtn", width: 120, render: !0 },
|
|
5531
5536
|
{ label: "排序", prop: "sort", width: 180, render: !0 },
|
|
5532
5537
|
{ label: "操作", prop: "operate", width: 120, render: !0, fixed: "right" }
|
|
5533
|
-
],
|
|
5534
|
-
const m = (y) => o({ url: `${l}/sysMenus/getAllList`, method: "post", data: y }), A = (y) => o({ url: `${l}/sysMenus/getMenuOfOperate`, method: "get", params: y }),
|
|
5535
|
-
k.value.includes(y.permissionCode) || k.value.push(y.permissionCode), Object.assign(
|
|
5538
|
+
], w = ae([]);
|
|
5539
|
+
const m = (y) => o({ url: `${l}/sysMenus/getAllList`, method: "post", data: y }), A = (y) => o({ url: `${l}/sysMenus/getMenuOfOperate`, method: "get", params: y }), p = (y, S) => {
|
|
5540
|
+
k.value.includes(y.permissionCode) || k.value.push(y.permissionCode), Object.assign(w.value[f], y), S(!0);
|
|
5536
5541
|
}, _ = async (y) => {
|
|
5537
5542
|
try {
|
|
5538
|
-
|
|
5539
|
-
const
|
|
5540
|
-
k.value = (D || []).filter((
|
|
5541
|
-
let te = i(), he = (y || []).find((ue) => ue.permissionCode ==
|
|
5542
|
-
return { ...te, btnIcon:
|
|
5543
|
-
}).sort((
|
|
5544
|
-
} catch (
|
|
5545
|
-
|
|
5543
|
+
b.tableLoading = !0;
|
|
5544
|
+
const S = s.id ? s.id : a.params.id, { data: D } = await A({ id: S });
|
|
5545
|
+
k.value = (D || []).filter(($) => (y || []).some((Y) => Y.permissionCode == $.unique)).map(($) => $.unique), w.value = (D || []).map(($, Y) => {
|
|
5546
|
+
let te = i(), he = (y || []).find((ue) => ue.permissionCode == $.unique) || {};
|
|
5547
|
+
return { ...te, btnIcon: $.icon || "", ...he, btnName: $.name, permissionCode: $.unique, sort: he.sort ? he.sort : (Y + 1) * 10 };
|
|
5548
|
+
}).sort(($, Y) => $.sort - Y.sort), b.tableLoading = !1;
|
|
5549
|
+
} catch (S) {
|
|
5550
|
+
b.tableLoading = !1, console.error(S);
|
|
5546
5551
|
}
|
|
5547
|
-
},
|
|
5548
|
-
Te("associationMenuList",
|
|
5552
|
+
}, h = () => C.value.getSelectionRows() || [];
|
|
5553
|
+
Te("associationMenuList", O), Te("createDefaultButtonItem", i), dt(
|
|
5549
5554
|
() => s.modelValue,
|
|
5550
|
-
async (y,
|
|
5555
|
+
async (y, S) => {
|
|
5551
5556
|
try {
|
|
5552
5557
|
const D = s.id ? s.id : a.params.id;
|
|
5553
|
-
|
|
5558
|
+
O.value = (await m({ dynamicFilters: [{ field: "parentId", operate: "Equal", value: D }] })).data || [], await _(y);
|
|
5554
5559
|
} catch (D) {
|
|
5555
|
-
|
|
5560
|
+
b.tableLoading = !1, console.error(D);
|
|
5556
5561
|
}
|
|
5557
5562
|
},
|
|
5558
5563
|
{ deep: !0 }
|
|
5559
5564
|
);
|
|
5560
5565
|
const F = (y) => {
|
|
5561
|
-
|
|
5566
|
+
b.dialogData = y.row, f = y.$index, b.showConfigBtnDialog = !0;
|
|
5562
5567
|
};
|
|
5563
|
-
return t({ getTableSelectionRows:
|
|
5564
|
-
const D = G("el-tag"),
|
|
5568
|
+
return t({ getTableSelectionRows: h }), (y, S) => {
|
|
5569
|
+
const D = G("el-tag"), $ = G("el-input-number"), Y = G("el-button"), te = G("a-table"), he = G("el-card");
|
|
5565
5570
|
return K(), re(he, {
|
|
5566
5571
|
class: "form-card",
|
|
5567
5572
|
shadow: "hover"
|
|
5568
5573
|
}, {
|
|
5569
|
-
header:
|
|
5574
|
+
header: L(() => [...S[2] || (S[2] = [
|
|
5570
5575
|
Ne("div", { class: "card-header" }, [
|
|
5571
5576
|
Ne("div", { class: "card-header-title" }, "按钮配置")
|
|
5572
5577
|
], -1)
|
|
5573
5578
|
])]),
|
|
5574
|
-
default:
|
|
5575
|
-
|
|
5579
|
+
default: L(() => [
|
|
5580
|
+
I(te, {
|
|
5576
5581
|
ref_key: "tableRef",
|
|
5577
5582
|
ref: C,
|
|
5578
|
-
loading: T(
|
|
5583
|
+
loading: T(b).tableLoading,
|
|
5579
5584
|
rowKey: "permissionCode",
|
|
5580
5585
|
selection: T(k),
|
|
5581
|
-
"onUpdate:selection":
|
|
5586
|
+
"onUpdate:selection": S[0] || (S[0] = (ue) => vt(k) ? k.value = ue : k = ue),
|
|
5582
5587
|
headers: T(v),
|
|
5583
|
-
data: T(
|
|
5588
|
+
data: T(w),
|
|
5584
5589
|
showPagination: !1
|
|
5585
5590
|
}, {
|
|
5586
|
-
isCustomBtn:
|
|
5587
|
-
|
|
5591
|
+
isCustomBtn: L(({ scope: ue }) => [
|
|
5592
|
+
I(D, {
|
|
5588
5593
|
type: "primary",
|
|
5589
5594
|
effect: "dark",
|
|
5590
5595
|
size: "small"
|
|
5591
5596
|
}, {
|
|
5592
|
-
default:
|
|
5597
|
+
default: L(() => [
|
|
5593
5598
|
Ie(We(ue.row.isCustomBtn ? "是" : "否"), 1)
|
|
5594
5599
|
]),
|
|
5595
5600
|
_: 2
|
|
5596
5601
|
}, 1024)
|
|
5597
5602
|
]),
|
|
5598
|
-
sort:
|
|
5599
|
-
|
|
5603
|
+
sort: L(({ scope: ue }) => [
|
|
5604
|
+
I($, {
|
|
5600
5605
|
modelValue: ue.row.sort,
|
|
5601
5606
|
"onUpdate:modelValue": (De) => ue.row.sort = De,
|
|
5602
5607
|
min: 0
|
|
5603
5608
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
5604
5609
|
]),
|
|
5605
|
-
operate:
|
|
5606
|
-
|
|
5610
|
+
operate: L(({ scope: ue }) => [
|
|
5611
|
+
I(Y, {
|
|
5607
5612
|
type: "primary",
|
|
5608
5613
|
text: "",
|
|
5609
5614
|
size: "small",
|
|
5610
5615
|
icon: "Aim",
|
|
5611
5616
|
onClick: (De) => F(ue)
|
|
5612
5617
|
}, {
|
|
5613
|
-
default:
|
|
5618
|
+
default: L(() => [...S[3] || (S[3] = [
|
|
5614
5619
|
Ie(" 配置 ", -1)
|
|
5615
5620
|
])]),
|
|
5616
5621
|
_: 1
|
|
@@ -5618,12 +5623,12 @@ const Si = {
|
|
|
5618
5623
|
]),
|
|
5619
5624
|
_: 1
|
|
5620
5625
|
}, 8, ["loading", "selection", "headers", "data"]),
|
|
5621
|
-
|
|
5622
|
-
visible: T(
|
|
5623
|
-
"onUpdate:visible":
|
|
5626
|
+
I(T(r), {
|
|
5627
|
+
visible: T(b).showConfigBtnDialog,
|
|
5628
|
+
"onUpdate:visible": S[1] || (S[1] = (ue) => T(b).showConfigBtnDialog = ue),
|
|
5624
5629
|
title: "配置按钮",
|
|
5625
|
-
data: T(
|
|
5626
|
-
onRefresh:
|
|
5630
|
+
data: T(b).dialogData,
|
|
5631
|
+
onRefresh: p
|
|
5627
5632
|
}, null, 8, ["visible", "data"])
|
|
5628
5633
|
]),
|
|
5629
5634
|
_: 1
|
|
@@ -5638,7 +5643,7 @@ const Li = { class: "card-header" }, vi = {
|
|
|
5638
5643
|
},
|
|
5639
5644
|
emits: ["update:modelValue"],
|
|
5640
5645
|
setup(e, { emit: t }) {
|
|
5641
|
-
const n = ut(() => import("./dialogAddField-
|
|
5646
|
+
const n = ut(() => import("./dialogAddField-16c2a9fa.js")), a = t, l = e;
|
|
5642
5647
|
Oe("configData")();
|
|
5643
5648
|
let r = Vt((() => ({
|
|
5644
5649
|
tableLoading: !1,
|
|
@@ -5655,94 +5660,94 @@ const Li = { class: "card-header" }, vi = {
|
|
|
5655
5660
|
// { label: '场景自定义', prop: 'formCustomComponentes', width: 200, render: true },
|
|
5656
5661
|
{ label: "排序", prop: "sort", width: 200, render: !0 },
|
|
5657
5662
|
{ label: "操作", prop: "operate", width: 170, render: !0, fixed: "right" }
|
|
5658
|
-
],
|
|
5659
|
-
Ci[0].options.map((
|
|
5660
|
-
const
|
|
5661
|
-
if (!Reflect.has(
|
|
5663
|
+
], g = ae([]);
|
|
5664
|
+
Ci[0].options.map((p) => ({ btnName: p.key, permissionCode: p.value }));
|
|
5665
|
+
const b = (p) => {
|
|
5666
|
+
if (!Reflect.has(p, "fieldType"))
|
|
5662
5667
|
return "";
|
|
5663
|
-
const _ = Ei.find((
|
|
5668
|
+
const _ = Ei.find((h) => h.value == p.fieldType);
|
|
5664
5669
|
return (_ == null ? void 0 : _.key) || "";
|
|
5665
|
-
}, C = (
|
|
5670
|
+
}, C = (p) => Reflect.has(p, "useScenes") ? (p.formCustomComponentes ?? []).filter((_) => p.useScenes.includes(_.permissionCode)) : [], f = (p) => (p.formCustomComponentes || []).filter((_) => _.isFieldCustom).map((_) => `${_.btnName}:是`).join(), O = (p, _) => {
|
|
5666
5671
|
if (s == null) {
|
|
5667
|
-
const
|
|
5668
|
-
|
|
5672
|
+
const h = g.value.length;
|
|
5673
|
+
g.value.push({ ...p, sort: (h + 1) * 10 });
|
|
5669
5674
|
} else
|
|
5670
|
-
|
|
5671
|
-
...
|
|
5672
|
-
postRequestParams: [...
|
|
5673
|
-
useScenes: [...
|
|
5674
|
-
formCustomComponentes: [...
|
|
5675
|
+
g.value[s] = {
|
|
5676
|
+
...p,
|
|
5677
|
+
postRequestParams: [...p.postRequestParams],
|
|
5678
|
+
useScenes: [...p.useScenes],
|
|
5679
|
+
formCustomComponentes: [...p.formCustomComponentes]
|
|
5675
5680
|
};
|
|
5676
|
-
a("update:modelValue",
|
|
5681
|
+
a("update:modelValue", g.value), _(!0);
|
|
5677
5682
|
}, k = async () => {
|
|
5678
5683
|
try {
|
|
5679
|
-
r.tableLoading = !0,
|
|
5680
|
-
} catch (
|
|
5681
|
-
r.tableLoading = !1, console.error(
|
|
5684
|
+
r.tableLoading = !0, g.value = (l.modelValue || []).map((p) => ({ ...p, sort: p.sort ? p.sort : 0 })).sort((p, _) => p.sort - _.sort), r.tableLoading = !1;
|
|
5685
|
+
} catch (p) {
|
|
5686
|
+
r.tableLoading = !1, console.error(p);
|
|
5682
5687
|
}
|
|
5683
5688
|
};
|
|
5684
5689
|
dt(
|
|
5685
5690
|
() => l.modelValue,
|
|
5686
|
-
async (
|
|
5691
|
+
async (p, _) => {
|
|
5687
5692
|
await k();
|
|
5688
5693
|
},
|
|
5689
5694
|
{ deep: !0, immediate: !0 }
|
|
5690
5695
|
);
|
|
5691
5696
|
const v = () => {
|
|
5692
5697
|
s = null, r.dialogData = {}, r.showAddFieldDialog = !0;
|
|
5693
|
-
},
|
|
5694
|
-
s =
|
|
5698
|
+
}, w = (p) => {
|
|
5699
|
+
s = p.$index, r.dialogData = p.row, r.showAddFieldDialog = !0;
|
|
5695
5700
|
}, m = () => {
|
|
5696
|
-
a("update:modelValue",
|
|
5697
|
-
}, A = (
|
|
5698
|
-
|
|
5701
|
+
a("update:modelValue", g.value);
|
|
5702
|
+
}, A = (p) => {
|
|
5703
|
+
g.value.splice(p.$index, 1), a("update:modelValue", g.value);
|
|
5699
5704
|
};
|
|
5700
|
-
return (
|
|
5701
|
-
const
|
|
5702
|
-
return K(), re(
|
|
5705
|
+
return (p, _) => {
|
|
5706
|
+
const h = G("el-button"), F = G("el-tag"), y = G("el-badge"), S = G("el-input-number"), D = G("a-table"), $ = G("el-card");
|
|
5707
|
+
return K(), re($, {
|
|
5703
5708
|
class: "form-card",
|
|
5704
5709
|
shadow: "hover"
|
|
5705
5710
|
}, {
|
|
5706
|
-
header:
|
|
5711
|
+
header: L(() => [
|
|
5707
5712
|
Ne("div", Li, [
|
|
5708
5713
|
_[3] || (_[3] = Ne("div", { class: "card-header-title" }, "字段配置", -1)),
|
|
5709
|
-
|
|
5714
|
+
I(h, {
|
|
5710
5715
|
class: "card-header-operate",
|
|
5711
5716
|
type: "primary",
|
|
5712
5717
|
icon: "Plus",
|
|
5713
5718
|
onClick: _[0] || (_[0] = (Y) => v())
|
|
5714
5719
|
}, {
|
|
5715
|
-
default:
|
|
5720
|
+
default: L(() => [..._[2] || (_[2] = [
|
|
5716
5721
|
Ie("添加字段", -1)
|
|
5717
5722
|
])]),
|
|
5718
5723
|
_: 1
|
|
5719
5724
|
})
|
|
5720
5725
|
])
|
|
5721
5726
|
]),
|
|
5722
|
-
default:
|
|
5723
|
-
|
|
5727
|
+
default: L(() => [
|
|
5728
|
+
I(D, {
|
|
5724
5729
|
loading: T(r).tableLoading,
|
|
5725
5730
|
headers: T(i),
|
|
5726
|
-
data: T(
|
|
5731
|
+
data: T(g),
|
|
5727
5732
|
showPagination: !1
|
|
5728
5733
|
}, {
|
|
5729
|
-
fieldType:
|
|
5730
|
-
Ie(We(
|
|
5734
|
+
fieldType: L(({ scope: Y }) => [
|
|
5735
|
+
Ie(We(b(Y.row)), 1)
|
|
5731
5736
|
]),
|
|
5732
|
-
useScenes:
|
|
5737
|
+
useScenes: L(({ scope: Y }) => [
|
|
5733
5738
|
(K(!0), ge(ve, null, Xe(C(Y.row), (te, he) => (K(), re(y, {
|
|
5734
5739
|
key: he,
|
|
5735
5740
|
value: te.isFieldCustom ? "C" : "",
|
|
5736
5741
|
offset: [-5, 5]
|
|
5737
5742
|
}, {
|
|
5738
|
-
default:
|
|
5739
|
-
|
|
5743
|
+
default: L(() => [
|
|
5744
|
+
I(F, {
|
|
5740
5745
|
style: { margin: "0 4px" },
|
|
5741
5746
|
type: "success",
|
|
5742
5747
|
effect: "dark",
|
|
5743
5748
|
size: "small"
|
|
5744
5749
|
}, {
|
|
5745
|
-
default:
|
|
5750
|
+
default: L(() => [
|
|
5746
5751
|
Ie(We(te.btnName), 1)
|
|
5747
5752
|
]),
|
|
5748
5753
|
_: 2
|
|
@@ -5751,48 +5756,48 @@ const Li = { class: "card-header" }, vi = {
|
|
|
5751
5756
|
_: 2
|
|
5752
5757
|
}, 1032, ["value"]))), 128))
|
|
5753
5758
|
]),
|
|
5754
|
-
formCustomComponentes:
|
|
5755
|
-
|
|
5759
|
+
formCustomComponentes: L(({ scope: Y }) => [
|
|
5760
|
+
f(Y.row) ? (K(), re(F, {
|
|
5756
5761
|
key: 0,
|
|
5757
5762
|
type: "primary",
|
|
5758
5763
|
effect: "dark",
|
|
5759
5764
|
size: "small"
|
|
5760
5765
|
}, {
|
|
5761
|
-
default:
|
|
5762
|
-
Ie(We(
|
|
5766
|
+
default: L(() => [
|
|
5767
|
+
Ie(We(f(Y.row)), 1)
|
|
5763
5768
|
]),
|
|
5764
5769
|
_: 2
|
|
5765
5770
|
}, 1024)) : Qe("", !0)
|
|
5766
5771
|
]),
|
|
5767
|
-
sort:
|
|
5768
|
-
S
|
|
5772
|
+
sort: L(({ scope: Y }) => [
|
|
5773
|
+
I(S, {
|
|
5769
5774
|
modelValue: Y.row.sort,
|
|
5770
5775
|
"onUpdate:modelValue": (te) => Y.row.sort = te,
|
|
5771
5776
|
min: 0,
|
|
5772
5777
|
onChange: m
|
|
5773
5778
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
5774
5779
|
]),
|
|
5775
|
-
operate:
|
|
5776
|
-
|
|
5780
|
+
operate: L(({ scope: Y }) => [
|
|
5781
|
+
I(h, {
|
|
5777
5782
|
type: "primary",
|
|
5778
5783
|
text: "",
|
|
5779
5784
|
size: "small",
|
|
5780
5785
|
icon: "EditPen",
|
|
5781
|
-
onClick: (te) =>
|
|
5786
|
+
onClick: (te) => w(Y)
|
|
5782
5787
|
}, {
|
|
5783
|
-
default:
|
|
5788
|
+
default: L(() => [..._[4] || (_[4] = [
|
|
5784
5789
|
Ie("编辑", -1)
|
|
5785
5790
|
])]),
|
|
5786
5791
|
_: 1
|
|
5787
5792
|
}, 8, ["onClick"]),
|
|
5788
|
-
|
|
5793
|
+
I(h, {
|
|
5789
5794
|
type: "danger",
|
|
5790
5795
|
text: "",
|
|
5791
5796
|
size: "small",
|
|
5792
5797
|
icon: "Delete",
|
|
5793
5798
|
onClick: (te) => A(Y)
|
|
5794
5799
|
}, {
|
|
5795
|
-
default:
|
|
5800
|
+
default: L(() => [..._[5] || (_[5] = [
|
|
5796
5801
|
Ie("删除", -1)
|
|
5797
5802
|
])]),
|
|
5798
5803
|
_: 1
|
|
@@ -5800,13 +5805,13 @@ const Li = { class: "card-header" }, vi = {
|
|
|
5800
5805
|
]),
|
|
5801
5806
|
_: 1
|
|
5802
5807
|
}, 8, ["loading", "headers", "data"]),
|
|
5803
|
-
|
|
5808
|
+
I(T(n), {
|
|
5804
5809
|
visible: T(r).showAddFieldDialog,
|
|
5805
5810
|
"onUpdate:visible": _[1] || (_[1] = (Y) => T(r).showAddFieldDialog = Y),
|
|
5806
5811
|
title: T(r).dialogTitle,
|
|
5807
5812
|
configData: l.data,
|
|
5808
5813
|
data: T(r).dialogData,
|
|
5809
|
-
onRefresh:
|
|
5814
|
+
onRefresh: O
|
|
5810
5815
|
}, null, 8, ["visible", "title", "configData", "data"])
|
|
5811
5816
|
]),
|
|
5812
5817
|
_: 1
|
|
@@ -5829,23 +5834,23 @@ const wi = { class: "dialog-footer" }, Di = {
|
|
|
5829
5834
|
dataBase: "",
|
|
5830
5835
|
api: ""
|
|
5831
5836
|
});
|
|
5832
|
-
let
|
|
5837
|
+
let g = Vt((() => ({
|
|
5833
5838
|
loading: !1,
|
|
5834
5839
|
btnLoading: !1
|
|
5835
|
-
}))()),
|
|
5836
|
-
const
|
|
5840
|
+
}))()), b = ae([]), C = ae(null), f = ae(s());
|
|
5841
|
+
const O = (p) => l({ url: `${a}/scripts/getAllDatabaseTable`, method: "get", data: p }), k = async () => {
|
|
5837
5842
|
try {
|
|
5838
|
-
|
|
5839
|
-
const { data:
|
|
5840
|
-
|
|
5841
|
-
} catch (
|
|
5842
|
-
console.error(
|
|
5843
|
+
g.loading = !0;
|
|
5844
|
+
const { data: p } = await O();
|
|
5845
|
+
b.value = p || [], g.loading = !1;
|
|
5846
|
+
} catch (p) {
|
|
5847
|
+
console.error(p), g.loading = !1;
|
|
5843
5848
|
}
|
|
5844
5849
|
};
|
|
5845
5850
|
dt(
|
|
5846
5851
|
() => r.visible,
|
|
5847
|
-
async (
|
|
5848
|
-
|
|
5852
|
+
async (p, _) => {
|
|
5853
|
+
p && await k();
|
|
5849
5854
|
}
|
|
5850
5855
|
);
|
|
5851
5856
|
const v = () => ({
|
|
@@ -5873,29 +5878,29 @@ const wi = { class: "dialog-footer" }, Di = {
|
|
|
5873
5878
|
tableCellContentType: "default",
|
|
5874
5879
|
isTableCellOverflowTooltip: !0,
|
|
5875
5880
|
isTableCellSort: !0
|
|
5876
|
-
}),
|
|
5877
|
-
m(),
|
|
5881
|
+
}), w = (p) => {
|
|
5882
|
+
m(), p();
|
|
5878
5883
|
}, m = () => {
|
|
5879
|
-
|
|
5880
|
-
}, A = (
|
|
5881
|
-
|
|
5884
|
+
f.value = Object.assign(f.value, s()), C.value.resetFields(), o("update:visible", !1);
|
|
5885
|
+
}, A = (p) => {
|
|
5886
|
+
p && p.validate(async (_) => {
|
|
5882
5887
|
if (_)
|
|
5883
5888
|
try {
|
|
5884
|
-
|
|
5885
|
-
const { data:
|
|
5886
|
-
let
|
|
5887
|
-
return
|
|
5889
|
+
g.btnLoading = !0;
|
|
5890
|
+
const { data: h } = await l({ url: `${a}/scripts/getAllColumnsByTableName`, method: "get", params: { tableName: f.value.dataBase } }), F = (h || []).map((y) => {
|
|
5891
|
+
let S = v();
|
|
5892
|
+
return S.fieldName = y.comment, S.fieldKey = y.name, S.fieldType = "string", S;
|
|
5888
5893
|
});
|
|
5889
5894
|
o("refresh", { formList: F }, () => {
|
|
5890
5895
|
m();
|
|
5891
|
-
}),
|
|
5892
|
-
} catch (
|
|
5893
|
-
console.error(
|
|
5896
|
+
}), g.btnLoading = !1;
|
|
5897
|
+
} catch (h) {
|
|
5898
|
+
console.error(h), g.btnLoading = !1;
|
|
5894
5899
|
}
|
|
5895
5900
|
});
|
|
5896
5901
|
};
|
|
5897
|
-
return (
|
|
5898
|
-
const
|
|
5902
|
+
return (p, _) => {
|
|
5903
|
+
const h = G("el-option"), F = G("el-select"), y = G("el-form-item"), S = G("el-input"), D = G("el-form"), $ = G("el-button"), Y = G("el-dialog"), te = Qt("loading"), he = Qt("debounce");
|
|
5899
5904
|
return K(), re(Y, {
|
|
5900
5905
|
"model-value": r.visible,
|
|
5901
5906
|
title: r.title,
|
|
@@ -5904,25 +5909,25 @@ const wi = { class: "dialog-footer" }, Di = {
|
|
|
5904
5909
|
draggable: "",
|
|
5905
5910
|
overflow: "",
|
|
5906
5911
|
"close-on-click-modal": !1,
|
|
5907
|
-
"before-close":
|
|
5912
|
+
"before-close": w
|
|
5908
5913
|
}, {
|
|
5909
|
-
footer:
|
|
5914
|
+
footer: L(() => [
|
|
5910
5915
|
Ne("span", wi, [
|
|
5911
|
-
|
|
5912
|
-
loading: T(
|
|
5916
|
+
I($, {
|
|
5917
|
+
loading: T(g).btnLoading,
|
|
5913
5918
|
onClick: m
|
|
5914
5919
|
}, {
|
|
5915
|
-
default:
|
|
5920
|
+
default: L(() => [..._[3] || (_[3] = [
|
|
5916
5921
|
Ie("取消", -1)
|
|
5917
5922
|
])]),
|
|
5918
5923
|
_: 1
|
|
5919
5924
|
}, 8, ["loading"]),
|
|
5920
|
-
lt((K(), re(
|
|
5925
|
+
lt((K(), re($, {
|
|
5921
5926
|
type: "primary",
|
|
5922
|
-
loading: T(
|
|
5927
|
+
loading: T(g).btnLoading,
|
|
5923
5928
|
onClick: _[2] || (_[2] = (ue) => A(T(C)))
|
|
5924
5929
|
}, {
|
|
5925
|
-
default:
|
|
5930
|
+
default: L(() => [..._[4] || (_[4] = [
|
|
5926
5931
|
Ie("保存", -1)
|
|
5927
5932
|
])]),
|
|
5928
5933
|
_: 1
|
|
@@ -5931,31 +5936,31 @@ const wi = { class: "dialog-footer" }, Di = {
|
|
|
5931
5936
|
])
|
|
5932
5937
|
])
|
|
5933
5938
|
]),
|
|
5934
|
-
default:
|
|
5939
|
+
default: L(() => [
|
|
5935
5940
|
lt((K(), re(D, {
|
|
5936
5941
|
ref_key: "formRef",
|
|
5937
5942
|
ref: C,
|
|
5938
|
-
model: T(
|
|
5943
|
+
model: T(f),
|
|
5939
5944
|
"label-suffix": ":",
|
|
5940
5945
|
"label-position": "top"
|
|
5941
5946
|
}, {
|
|
5942
|
-
default:
|
|
5943
|
-
|
|
5947
|
+
default: L(() => [
|
|
5948
|
+
I(y, {
|
|
5944
5949
|
label: "数据库",
|
|
5945
5950
|
"label-width": "120",
|
|
5946
5951
|
rules: [{ required: !1, message: "必填项", trigger: "change" }],
|
|
5947
5952
|
prop: "dataBase"
|
|
5948
5953
|
}, {
|
|
5949
|
-
default:
|
|
5950
|
-
|
|
5951
|
-
modelValue: T(
|
|
5952
|
-
"onUpdate:modelValue": _[0] || (_[0] = (ue) => T(
|
|
5954
|
+
default: L(() => [
|
|
5955
|
+
I(F, {
|
|
5956
|
+
modelValue: T(f).dataBase,
|
|
5957
|
+
"onUpdate:modelValue": _[0] || (_[0] = (ue) => T(f).dataBase = ue),
|
|
5953
5958
|
placeholder: "请选择数据库",
|
|
5954
5959
|
clearable: "",
|
|
5955
5960
|
filterable: ""
|
|
5956
5961
|
}, {
|
|
5957
|
-
default:
|
|
5958
|
-
(K(!0), ge(ve, null, Xe(T(
|
|
5962
|
+
default: L(() => [
|
|
5963
|
+
(K(!0), ge(ve, null, Xe(T(b), (ue, De) => (K(), re(h, {
|
|
5959
5964
|
key: ue,
|
|
5960
5965
|
label: `${ue.tableComment}【${ue.tableName}】`,
|
|
5961
5966
|
value: ue.tableName
|
|
@@ -5966,16 +5971,16 @@ const wi = { class: "dialog-footer" }, Di = {
|
|
|
5966
5971
|
]),
|
|
5967
5972
|
_: 1
|
|
5968
5973
|
}),
|
|
5969
|
-
|
|
5974
|
+
I(y, {
|
|
5970
5975
|
label: "接口地址(关键字)",
|
|
5971
5976
|
"label-width": "120",
|
|
5972
5977
|
rules: [{ required: !1, message: "必填项", trigger: "change" }],
|
|
5973
5978
|
prop: "api"
|
|
5974
5979
|
}, {
|
|
5975
|
-
default:
|
|
5976
|
-
S
|
|
5977
|
-
modelValue: T(
|
|
5978
|
-
"onUpdate:modelValue": _[1] || (_[1] = (ue) => T(
|
|
5980
|
+
default: L(() => [
|
|
5981
|
+
I(S, {
|
|
5982
|
+
modelValue: T(f).api,
|
|
5983
|
+
"onUpdate:modelValue": _[1] || (_[1] = (ue) => T(f).api = ue),
|
|
5979
5984
|
placeholder: "请输入接口地址(关键字)",
|
|
5980
5985
|
clearable: ""
|
|
5981
5986
|
}, null, 8, ["modelValue"])
|
|
@@ -5985,7 +5990,7 @@ const wi = { class: "dialog-footer" }, Di = {
|
|
|
5985
5990
|
]),
|
|
5986
5991
|
_: 1
|
|
5987
5992
|
}, 8, ["model"])), [
|
|
5988
|
-
[te, T(
|
|
5993
|
+
[te, T(g).loading]
|
|
5989
5994
|
])
|
|
5990
5995
|
]),
|
|
5991
5996
|
_: 1
|
|
@@ -6001,12 +6006,12 @@ const Fi = { class: "page-container" }, Pi = { class: "submit-box" }, Ui = { cla
|
|
|
6001
6006
|
},
|
|
6002
6007
|
setup(e) {
|
|
6003
6008
|
const t = _n(), n = Za(), a = Oe("apiPrefix"), l = Oe("request"), o = e;
|
|
6004
|
-
let r = o.id ?? void 0, s = o.pageKey ? o.pageKey : t.params.key, i = ae([]),
|
|
6009
|
+
let r = o.id ?? void 0, s = o.pageKey ? o.pageKey : t.params.key, i = ae([]), g = ae(), b = ae([]), C = ae({}), f = ae(null), O = ae(null), k = ae(null), v = ae({}), w = ae({}), m = ae([]), A = ae([]), p = Vt({
|
|
6005
6010
|
pageLoading: !1,
|
|
6006
6011
|
saveBtnLoading: !1,
|
|
6007
6012
|
showDialogInitConfig: !1
|
|
6008
6013
|
});
|
|
6009
|
-
const _ = (le) => l({ url: `${a}/pages/getPageDetail?key=${le}`, method: "get" }),
|
|
6014
|
+
const _ = (le) => l({ url: `${a}/pages/getPageDetail?key=${le}`, method: "get" }), h = (le) => l({ url: `${a}/pageConfigs/createOrEdit`, method: "post", data: le }), F = (le) => l({ url: `${a}/sysMenus/getAllList`, method: "post", data: le }), y = (le) => l({ url: `${a}/sysDataDictionaries/getDictionaryByGroup?groupName=${le}`, method: "get" }), S = async () => {
|
|
6010
6015
|
const { data: le } = await F({ dynamicFilters: [{ field: "url", operate: "Equal", value: "/pages" }] });
|
|
6011
6016
|
i.value = le || [];
|
|
6012
6017
|
}, D = async () => {
|
|
@@ -6014,25 +6019,25 @@ const Fi = { class: "page-container" }, Pi = { class: "submit-box" }, Ui = { cla
|
|
|
6014
6019
|
const {
|
|
6015
6020
|
data: { pageConfigs: le }
|
|
6016
6021
|
} = await _(s), z = JSON.parse(le.pageConfig) || {};
|
|
6017
|
-
r = le.pageId, console.log("pageConfigData", z), C.value = z, v.value = { ...z.tableConfig ?? {} },
|
|
6022
|
+
r = le.pageId, console.log("pageConfigData", z), C.value = z, v.value = { ...z.tableConfig ?? {} }, w.value = { ...z.formConfig ?? {} }, m.value = [...z.buttons ?? []], A.value = [...z.fields ?? []];
|
|
6018
6023
|
} catch (le) {
|
|
6019
6024
|
console.error(le);
|
|
6020
6025
|
}
|
|
6021
|
-
},
|
|
6022
|
-
v.value = {},
|
|
6026
|
+
}, $ = () => {
|
|
6027
|
+
v.value = {}, w.value = {}, m.value = [], A.value = [], D();
|
|
6023
6028
|
};
|
|
6024
|
-
Te("conditionList", () =>
|
|
6029
|
+
Te("conditionList", () => b), Te("pageKey", () => ae(s)), Te("configData", () => C), Xa(async () => {
|
|
6025
6030
|
try {
|
|
6026
|
-
|
|
6031
|
+
p.pageLoading = !0, await S(), g.value = t.params.id, b.value = (await y("Condition")).data || [], await D(), p.pageLoading = !1;
|
|
6027
6032
|
} catch (le) {
|
|
6028
|
-
|
|
6033
|
+
p.pageLoading = !1, console.error(le);
|
|
6029
6034
|
}
|
|
6030
6035
|
});
|
|
6031
6036
|
const Y = (le) => {
|
|
6032
6037
|
const z = i.value.find((Ke) => Ke.id == le);
|
|
6033
|
-
n.replace({ path: `/actConfig/${z.key}/${z.id}` }),
|
|
6038
|
+
n.replace({ path: `/actConfig/${z.key}/${z.id}` }), g.value = z.id, s = z.key, D();
|
|
6034
6039
|
}, te = () => {
|
|
6035
|
-
|
|
6040
|
+
p.showDialogInitConfig = !0;
|
|
6036
6041
|
}, he = ({ formList: le }, z) => {
|
|
6037
6042
|
A.value = [...le], z(!0);
|
|
6038
6043
|
}, ue = () => {
|
|
@@ -6040,66 +6045,66 @@ const Fi = { class: "page-container" }, Pi = { class: "submit-box" }, Ui = { cla
|
|
|
6040
6045
|
id: r,
|
|
6041
6046
|
key: s,
|
|
6042
6047
|
pageConfig: {
|
|
6043
|
-
tableConfig:
|
|
6044
|
-
formConfig:
|
|
6048
|
+
tableConfig: f.value.form,
|
|
6049
|
+
formConfig: O.value.form,
|
|
6045
6050
|
buttons: k.value.getTableSelectionRows(),
|
|
6046
6051
|
fields: A.value
|
|
6047
6052
|
}
|
|
6048
6053
|
};
|
|
6049
|
-
le.pageConfig = JSON.stringify(le.pageConfig),
|
|
6050
|
-
Re({ title: "提示", message: "保存成功", type: "success", duration: 2500 }),
|
|
6054
|
+
le.pageConfig = JSON.stringify(le.pageConfig), p.saveBtnLoading = !0, h(le).then((z) => {
|
|
6055
|
+
Re({ title: "提示", message: "保存成功", type: "success", duration: 2500 }), $(), p.saveBtnLoading = !1;
|
|
6051
6056
|
}).catch((z) => {
|
|
6052
|
-
|
|
6057
|
+
p.saveBtnLoading = !1;
|
|
6053
6058
|
});
|
|
6054
6059
|
}, De = async () => {
|
|
6055
|
-
Promise.all([
|
|
6060
|
+
Promise.all([f.value.formRef.validate(), O.value.formRef.validate()]).then((le) => {
|
|
6056
6061
|
le.every((z) => z) && ue();
|
|
6057
6062
|
}).catch((le) => le);
|
|
6058
6063
|
};
|
|
6059
6064
|
return (le, z) => {
|
|
6060
6065
|
const Ke = G("el-button"), rt = G("el-option"), Ue = G("el-select"), je = G("el-card"), Ge = G("el-col"), Ct = G("el-row"), mt = Qt("debounce"), Tt = Qt("loading");
|
|
6061
6066
|
return lt((K(), ge("div", Fi, [
|
|
6062
|
-
|
|
6067
|
+
I(Ct, {
|
|
6063
6068
|
style: { margin: "0" },
|
|
6064
6069
|
gutter: 12
|
|
6065
6070
|
}, {
|
|
6066
|
-
default:
|
|
6067
|
-
|
|
6071
|
+
default: L(() => [
|
|
6072
|
+
I(Ge, {
|
|
6068
6073
|
class: "header-operate",
|
|
6069
6074
|
span: 24
|
|
6070
6075
|
}, {
|
|
6071
|
-
default:
|
|
6072
|
-
|
|
6076
|
+
default: L(() => [
|
|
6077
|
+
I(je, {
|
|
6073
6078
|
class: "form-card",
|
|
6074
6079
|
shadow: "hover"
|
|
6075
6080
|
}, {
|
|
6076
|
-
default:
|
|
6081
|
+
default: L(() => [
|
|
6077
6082
|
Ne("div", Pi, [
|
|
6078
6083
|
z[10] || (z[10] = Ne("div", { class: "submit-box-l" }, null, -1)),
|
|
6079
6084
|
Ne("div", Ui, [
|
|
6080
6085
|
lt((K(), re(Ke, {
|
|
6081
6086
|
style: { width: "120px" },
|
|
6082
6087
|
type: "primary",
|
|
6083
|
-
loading: T(
|
|
6088
|
+
loading: T(p).initBtnLoading,
|
|
6084
6089
|
onClick: z[0] || (z[0] = (fe) => te())
|
|
6085
6090
|
}, {
|
|
6086
|
-
default:
|
|
6091
|
+
default: L(() => [...z[8] || (z[8] = [
|
|
6087
6092
|
Ie("一键初始化配置", -1)
|
|
6088
6093
|
])]),
|
|
6089
6094
|
_: 1
|
|
6090
6095
|
}, 8, ["loading"])), [
|
|
6091
6096
|
[mt]
|
|
6092
6097
|
]),
|
|
6093
|
-
|
|
6098
|
+
I(Ue, {
|
|
6094
6099
|
class: "menu-select",
|
|
6095
|
-
modelValue: T(
|
|
6096
|
-
"onUpdate:modelValue": z[1] || (z[1] = (fe) => vt(
|
|
6100
|
+
modelValue: T(g),
|
|
6101
|
+
"onUpdate:modelValue": z[1] || (z[1] = (fe) => vt(g) ? g.value = fe : g = fe),
|
|
6097
6102
|
placeholder: "菜单切换",
|
|
6098
6103
|
clearable: "",
|
|
6099
6104
|
filterable: "",
|
|
6100
6105
|
onChange: Y
|
|
6101
6106
|
}, {
|
|
6102
|
-
default:
|
|
6107
|
+
default: L(() => [
|
|
6103
6108
|
(K(!0), ge(ve, null, Xe(T(i), (fe) => (K(), re(rt, {
|
|
6104
6109
|
key: fe.id,
|
|
6105
6110
|
label: fe.name,
|
|
@@ -6111,10 +6116,10 @@ const Fi = { class: "page-container" }, Pi = { class: "submit-box" }, Ui = { cla
|
|
|
6111
6116
|
lt((K(), re(Ke, {
|
|
6112
6117
|
style: { width: "120px" },
|
|
6113
6118
|
type: "success",
|
|
6114
|
-
loading: T(
|
|
6119
|
+
loading: T(p).saveBtnLoading,
|
|
6115
6120
|
onClick: z[2] || (z[2] = (fe) => De(le.formRef))
|
|
6116
6121
|
}, {
|
|
6117
|
-
default:
|
|
6122
|
+
default: L(() => [...z[9] || (z[9] = [
|
|
6118
6123
|
Ie("保存", -1)
|
|
6119
6124
|
])]),
|
|
6120
6125
|
_: 1
|
|
@@ -6129,40 +6134,40 @@ const Fi = { class: "page-container" }, Pi = { class: "submit-box" }, Ui = { cla
|
|
|
6129
6134
|
]),
|
|
6130
6135
|
_: 1
|
|
6131
6136
|
}),
|
|
6132
|
-
|
|
6137
|
+
I(Ge, {
|
|
6133
6138
|
class: "mt12",
|
|
6134
6139
|
span: 12
|
|
6135
6140
|
}, {
|
|
6136
|
-
default:
|
|
6137
|
-
|
|
6141
|
+
default: L(() => [
|
|
6142
|
+
I(ki, {
|
|
6138
6143
|
ref_key: "configTableRef",
|
|
6139
|
-
ref:
|
|
6144
|
+
ref: f,
|
|
6140
6145
|
modelValue: T(v),
|
|
6141
6146
|
"onUpdate:modelValue": z[3] || (z[3] = (fe) => vt(v) ? v.value = fe : v = fe)
|
|
6142
6147
|
}, null, 8, ["modelValue"])
|
|
6143
6148
|
]),
|
|
6144
6149
|
_: 1
|
|
6145
6150
|
}),
|
|
6146
|
-
|
|
6151
|
+
I(Ge, {
|
|
6147
6152
|
class: "mt12",
|
|
6148
6153
|
span: 12
|
|
6149
6154
|
}, {
|
|
6150
|
-
default:
|
|
6151
|
-
|
|
6155
|
+
default: L(() => [
|
|
6156
|
+
I(Ti, {
|
|
6152
6157
|
ref_key: "configFormRef",
|
|
6153
|
-
ref:
|
|
6154
|
-
modelValue: T(
|
|
6155
|
-
"onUpdate:modelValue": z[4] || (z[4] = (fe) => vt(
|
|
6158
|
+
ref: O,
|
|
6159
|
+
modelValue: T(w),
|
|
6160
|
+
"onUpdate:modelValue": z[4] || (z[4] = (fe) => vt(w) ? w.value = fe : w = fe)
|
|
6156
6161
|
}, null, 8, ["modelValue"])
|
|
6157
6162
|
]),
|
|
6158
6163
|
_: 1
|
|
6159
6164
|
}),
|
|
6160
|
-
|
|
6165
|
+
I(Ge, {
|
|
6161
6166
|
class: "mt12",
|
|
6162
6167
|
span: 24
|
|
6163
6168
|
}, {
|
|
6164
|
-
default:
|
|
6165
|
-
|
|
6169
|
+
default: L(() => [
|
|
6170
|
+
I(Ii, {
|
|
6166
6171
|
ref_key: "configBtnsRef",
|
|
6167
6172
|
ref: k,
|
|
6168
6173
|
modelValue: T(m),
|
|
@@ -6171,12 +6176,12 @@ const Fi = { class: "page-container" }, Pi = { class: "submit-box" }, Ui = { cla
|
|
|
6171
6176
|
]),
|
|
6172
6177
|
_: 1
|
|
6173
6178
|
}),
|
|
6174
|
-
|
|
6179
|
+
I(Ge, {
|
|
6175
6180
|
class: "mt12",
|
|
6176
6181
|
span: 24
|
|
6177
6182
|
}, {
|
|
6178
|
-
default:
|
|
6179
|
-
|
|
6183
|
+
default: L(() => [
|
|
6184
|
+
I(Oi, {
|
|
6180
6185
|
modelValue: T(A),
|
|
6181
6186
|
"onUpdate:modelValue": z[6] || (z[6] = (fe) => vt(A) ? A.value = fe : A = fe)
|
|
6182
6187
|
}, null, 8, ["modelValue"])
|
|
@@ -6186,14 +6191,14 @@ const Fi = { class: "page-container" }, Pi = { class: "submit-box" }, Ui = { cla
|
|
|
6186
6191
|
]),
|
|
6187
6192
|
_: 1
|
|
6188
6193
|
}),
|
|
6189
|
-
|
|
6190
|
-
visible: T(
|
|
6191
|
-
"onUpdate:visible": z[7] || (z[7] = (fe) => T(
|
|
6194
|
+
I(Ri, {
|
|
6195
|
+
visible: T(p).showDialogInitConfig,
|
|
6196
|
+
"onUpdate:visible": z[7] || (z[7] = (fe) => T(p).showDialogInitConfig = fe),
|
|
6192
6197
|
title: "一键初始化配置",
|
|
6193
6198
|
onRefresh: he
|
|
6194
6199
|
}, null, 8, ["visible"])
|
|
6195
6200
|
])), [
|
|
6196
|
-
[Tt, T(
|
|
6201
|
+
[Tt, T(p).pageLoading]
|
|
6197
6202
|
]);
|
|
6198
6203
|
};
|
|
6199
6204
|
}
|
|
@@ -6291,7 +6296,7 @@ const Fi = { class: "page-container" }, Pi = { class: "submit-box" }, Ui = { cla
|
|
|
6291
6296
|
}
|
|
6292
6297
|
}, $a = { ActPage: Gl, ActConfig: ql }, du = {
|
|
6293
6298
|
install(e, t) {
|
|
6294
|
-
var
|
|
6299
|
+
var O;
|
|
6295
6300
|
const {
|
|
6296
6301
|
modules: n,
|
|
6297
6302
|
apiPrefix: a,
|
|
@@ -6299,16 +6304,16 @@ const Fi = { class: "page-container" }, Pi = { class: "submit-box" }, Ui = { cla
|
|
|
6299
6304
|
themeColor: o,
|
|
6300
6305
|
cacheTokenType: r = "sessionStorage",
|
|
6301
6306
|
cookieStorage: s,
|
|
6302
|
-
language: { messages: i = {}, en:
|
|
6303
|
-
menuAuthButtons:
|
|
6307
|
+
language: { messages: i = {}, en: g = "zhCn" },
|
|
6308
|
+
menuAuthButtons: b
|
|
6304
6309
|
} = t, C = {
|
|
6305
|
-
act: Object.assign(gn[
|
|
6306
|
-
},
|
|
6307
|
-
locale:
|
|
6308
|
-
fallbackLocale:
|
|
6309
|
-
messages: { ...gn, [
|
|
6310
|
+
act: Object.assign(gn[g].act, ((O = i[g]) == null ? void 0 : O.act) ?? {})
|
|
6311
|
+
}, f = Rl({
|
|
6312
|
+
locale: g,
|
|
6313
|
+
fallbackLocale: g,
|
|
6314
|
+
messages: { ...gn, [g]: C }
|
|
6310
6315
|
});
|
|
6311
|
-
e.use(
|
|
6316
|
+
e.use(f), 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.provide("menuAuthButtons", b), e.directive("debounce", Bi), Object.keys($a).forEach((k) => {
|
|
6312
6317
|
e.component(k, $a[k]);
|
|
6313
6318
|
});
|
|
6314
6319
|
}
|