@cregis/ui 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +423 -416
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Wn from "vue";
|
|
2
|
-
import { effectScope as ao, computed as I, watch as he, isRef as so, ref as
|
|
2
|
+
import { effectScope as ao, computed as I, watch as he, isRef as so, ref as G, shallowRef as oo, defineComponent as Ee, h as kt, getCurrentScope as Ga, onScopeDispose as Ya, Fragment as Xe, inject as Rn, onMounted as yt, onUnmounted as st, createVNode as ge, Text as lo, useSlots as Ka, openBlock as C, createElementBlock as A, normalizeClass as ne, createElementVNode as F, mergeProps as pt, createBlock as Se, resolveDynamicComponent as cn, normalizeStyle as ue, renderSlot as _e, toDisplayString as Z, createCommentVNode as J, unref as te, nextTick as Ve, onBeforeUnmount as _r, withDirectives as Wt, vModelDynamic as io, withModifiers as Bt, vModelText as co, withCtx as Ae, createTextVNode as Be, reactive as Vt, provide as br, toRef as Ln, renderList as _t, Transition as hn, render as Ht, readonly as Bn, toHandlers as Hn, Teleport as yr, vShow as $n, createSlots as Yr } from "vue";
|
|
3
3
|
import { EdsLoad as er, EdsCloseCircleFill as uo, EdsTickFill as Xa, EdsWarningFill as fo, EdsSearch as qa, EdsArrowDownMiniIos as Er, EdsArrowRightMiniIos as mo, EdsAdd as Kr, EdsClose as Tr, EdsWarningLonely as po, EdsTimeWait as vo, EdsArrowRefuses as go, EdsTick as ho, EdsNoData as _o } from "@cregis/icon";
|
|
4
4
|
/*!
|
|
5
5
|
* shared v11.4.8
|
|
@@ -27,7 +27,7 @@ const Ct = () => Xr || (Xr = typeof globalThis < "u" ? globalThis : typeof self
|
|
|
27
27
|
function Je(e, t) {
|
|
28
28
|
return Oo.call(e, t);
|
|
29
29
|
}
|
|
30
|
-
const Ie = Array.isArray, we = (e) => typeof e == "function",
|
|
30
|
+
const Ie = Array.isArray, we = (e) => typeof e == "function", V = (e) => typeof e == "string", pe = (e) => typeof e == "boolean", de = (e) => e !== null && typeof e == "object", No = (e) => de(e) && we(e.then) && we(e.catch), Ja = Object.prototype.toString, Nr = (e) => Ja.call(e), be = (e) => Nr(e) === "[object Object]", Lo = (e) => e == null ? "" : Ie(e) || be(e) && e.toString === Ja ? JSON.stringify(e, null, 2) : String(e);
|
|
31
31
|
function Lr(e, t = "") {
|
|
32
32
|
return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
|
|
33
33
|
}
|
|
@@ -365,7 +365,7 @@ function Jo(e, t = {}) {
|
|
|
365
365
|
return !1;
|
|
366
366
|
const P = () => {
|
|
367
367
|
const Le = c.currentPeek();
|
|
368
|
-
return Le === "{" ? d(c.peek()) : Le === "@" || Le === "|" || Le === ":" || Le === "." || Le === ot || !Le ? !1 : Le === Me ? (c.peek(), P()) :
|
|
368
|
+
return Le === "{" ? d(c.peek()) : Le === "@" || Le === "|" || Le === ":" || Le === "." || Le === ot || !Le ? !1 : Le === Me ? (c.peek(), P()) : z(c, !1);
|
|
369
369
|
}, ee = P();
|
|
370
370
|
return c.resetPeek(), ee;
|
|
371
371
|
}
|
|
@@ -374,7 +374,7 @@ function Jo(e, t = {}) {
|
|
|
374
374
|
const u = c.currentPeek() === "|";
|
|
375
375
|
return c.resetPeek(), u;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function z(c, u = !0) {
|
|
378
378
|
const y = (ee = !1, Le = "") => {
|
|
379
379
|
const oe = c.currentPeek();
|
|
380
380
|
return oe === "{" || oe === "@" || !oe ? ee : oe === "|" ? !(Le === ot || Le === Me) : oe === ot ? (c.peek(), y(!0, ot)) : oe === Me ? (c.peek(), y(!0, Me)) : !0;
|
|
@@ -408,12 +408,12 @@ function Jo(e, t = {}) {
|
|
|
408
408
|
function ae(c) {
|
|
409
409
|
return q(c, ke);
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function H(c) {
|
|
412
412
|
const u = c.charCodeAt(0);
|
|
413
413
|
return u >= 48 && u <= 57;
|
|
414
414
|
}
|
|
415
|
-
function
|
|
416
|
-
return q(c,
|
|
415
|
+
function Y(c) {
|
|
416
|
+
return q(c, H);
|
|
417
417
|
}
|
|
418
418
|
function W(c) {
|
|
419
419
|
const u = c.charCodeAt(0);
|
|
@@ -421,12 +421,12 @@ function Jo(e, t = {}) {
|
|
|
421
421
|
u >= 65 && u <= 70 || // A-F
|
|
422
422
|
u >= 97 && u <= 102;
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function K(c) {
|
|
425
425
|
return q(c, W);
|
|
426
426
|
}
|
|
427
427
|
function se(c) {
|
|
428
428
|
let u = "", y = "";
|
|
429
|
-
for (; u =
|
|
429
|
+
for (; u = Y(c); )
|
|
430
430
|
y += u;
|
|
431
431
|
return y;
|
|
432
432
|
}
|
|
@@ -441,7 +441,7 @@ function Jo(e, t = {}) {
|
|
|
441
441
|
if (y === "{" || y === "}" || y === "@" || y === "|" || !y)
|
|
442
442
|
break;
|
|
443
443
|
if (y === ot || y === Me)
|
|
444
|
-
if (
|
|
444
|
+
if (z(c))
|
|
445
445
|
u += y, c.next();
|
|
446
446
|
else {
|
|
447
447
|
if (X(c))
|
|
@@ -466,7 +466,7 @@ function Jo(e, t = {}) {
|
|
|
466
466
|
}
|
|
467
467
|
return c.currentChar() === ft && m(Q.UNTERMINATED_CLOSING_BRACE, s(), 0), y;
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function j(c) {
|
|
470
470
|
L(c);
|
|
471
471
|
let u = "";
|
|
472
472
|
return c.currentChar() === "-" ? (c.next(), u += `-${se(c)}`) : u += se(c), c.currentChar() === ft && m(Q.UNTERMINATED_CLOSING_BRACE, s(), 0), u;
|
|
@@ -500,7 +500,7 @@ function Jo(e, t = {}) {
|
|
|
500
500
|
E(c, u);
|
|
501
501
|
let P = "";
|
|
502
502
|
for (let ee = 0; ee < y; ee++) {
|
|
503
|
-
const Le =
|
|
503
|
+
const Le = K(c);
|
|
504
504
|
if (!Le) {
|
|
505
505
|
m(Q.INVALID_UNICODE_ESCAPE_SEQUENCE, s(), 0, `\\${u}${P}${c.currentChar()}`);
|
|
506
506
|
break;
|
|
@@ -525,14 +525,14 @@ function Jo(e, t = {}) {
|
|
|
525
525
|
y += u;
|
|
526
526
|
return y;
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function M(c) {
|
|
529
529
|
const u = (y) => {
|
|
530
530
|
const P = c.currentChar();
|
|
531
531
|
return P === "{" || P === "@" || P === "|" || P === "(" || P === ")" || !P || P === ot ? y : (y += P, c.next(), u(y));
|
|
532
532
|
};
|
|
533
533
|
return u("");
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function B(c) {
|
|
536
536
|
L(c);
|
|
537
537
|
const u = E(
|
|
538
538
|
c,
|
|
@@ -563,13 +563,13 @@ function Jo(e, t = {}) {
|
|
|
563
563
|
default: {
|
|
564
564
|
let ee = !0, Le = !0, oe = !0;
|
|
565
565
|
if (X(c))
|
|
566
|
-
return u.braceNest > 0 && m(Q.UNTERMINATED_CLOSING_BRACE, s(), 0), y = v(u, 1,
|
|
566
|
+
return u.braceNest > 0 && m(Q.UNTERMINATED_CLOSING_BRACE, s(), 0), y = v(u, 1, B(c)), u.braceNest = 0, u.inLinked = !1, y;
|
|
567
567
|
if (u.braceNest > 0 && (u.currentType === 4 || u.currentType === 5 || u.currentType === 6))
|
|
568
568
|
return m(Q.UNTERMINATED_CLOSING_BRACE, s(), 0), u.braceNest = 0, We(c, u);
|
|
569
569
|
if (ee = O(c, u))
|
|
570
570
|
return y = v(u, 4, $(c)), L(c), y;
|
|
571
571
|
if (Le = h(c, u))
|
|
572
|
-
return y = v(u, 5,
|
|
572
|
+
return y = v(u, 5, j(c)), L(c), y;
|
|
573
573
|
if (oe = S(c, u))
|
|
574
574
|
return y = v(u, 6, Te(c)), L(c), y;
|
|
575
575
|
if (!ee && !Le && !oe)
|
|
@@ -606,7 +606,7 @@ function Jo(e, t = {}) {
|
|
|
606
606
|
/* TokenChars.LinkedDelimiter */
|
|
607
607
|
);
|
|
608
608
|
default:
|
|
609
|
-
return X(c) ? (P = v(u, 1,
|
|
609
|
+
return X(c) ? (P = v(u, 1, B(c)), u.braceNest = 0, u.inLinked = !1, P) : N(c, u) || R(c, u) ? (L(c), ve(c, u)) : b(c, u) ? (L(c), v(u, 11, rt(c))) : U(c, u) ? (L(c), ee === "{" ? ye(c, u) || P : v(u, 10, M(c))) : (y === 7 && m(Q.INVALID_LINKED_FORMAT, s(), 0), u.braceNest = 0, u.inLinked = !1, We(c, u));
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
612
|
function We(c, u) {
|
|
@@ -632,8 +632,8 @@ function Jo(e, t = {}) {
|
|
|
632
632
|
return ve(c, u) || g(u);
|
|
633
633
|
default: {
|
|
634
634
|
if (X(c))
|
|
635
|
-
return y = v(u, 1,
|
|
636
|
-
if (
|
|
635
|
+
return y = v(u, 1, B(c)), u.braceNest = 0, u.inLinked = !1, y;
|
|
636
|
+
if (z(c))
|
|
637
637
|
return v(u, 0, k(c));
|
|
638
638
|
break;
|
|
639
639
|
}
|
|
@@ -1080,7 +1080,7 @@ function jt(e, t) {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
}
|
|
1082
1082
|
const vl = (e, t = {}) => {
|
|
1083
|
-
const n =
|
|
1083
|
+
const n = V(t.mode) ? t.mode : "normal", r = V(t.filename) ? t.filename : "message.intl";
|
|
1084
1084
|
t.sourceMap;
|
|
1085
1085
|
const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1086
1086
|
`, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], l = ul(e, {
|
|
@@ -1252,7 +1252,7 @@ function Sl(e, t = {}) {
|
|
|
1252
1252
|
}
|
|
1253
1253
|
// @__NO_SIDE_EFFECTS__
|
|
1254
1254
|
function kl(e, t) {
|
|
1255
|
-
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
|
1255
|
+
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && V(e)) {
|
|
1256
1256
|
const n = pe(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1257
1257
|
process.env.NODE_ENV !== "production" && wl(e, n);
|
|
1258
1258
|
const a = (t.onCacheKey || Cl)(e), s = Tn[a];
|
|
@@ -1318,7 +1318,7 @@ function Ir(e, t) {
|
|
|
1318
1318
|
}
|
|
1319
1319
|
let jn;
|
|
1320
1320
|
function aa(e) {
|
|
1321
|
-
if (
|
|
1321
|
+
if (V(e))
|
|
1322
1322
|
return e;
|
|
1323
1323
|
if (we(e)) {
|
|
1324
1324
|
if (e.resolvedOnce && jn != null)
|
|
@@ -1336,11 +1336,11 @@ function aa(e) {
|
|
|
1336
1336
|
function $l(e, t, n) {
|
|
1337
1337
|
return [.../* @__PURE__ */ new Set([
|
|
1338
1338
|
n,
|
|
1339
|
-
...Ie(t) ? t : de(t) ? Object.keys(t) :
|
|
1339
|
+
...Ie(t) ? t : de(t) ? Object.keys(t) : V(t) ? [t] : [n]
|
|
1340
1340
|
])];
|
|
1341
1341
|
}
|
|
1342
1342
|
function rr(e, t, n) {
|
|
1343
|
-
const r =
|
|
1343
|
+
const r = V(n) ? n : fn, a = e;
|
|
1344
1344
|
a.__localeChainCache || (a.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1345
1345
|
let s = a.__localeChainCache.get(r);
|
|
1346
1346
|
if (!s) {
|
|
@@ -1349,7 +1349,7 @@ function rr(e, t, n) {
|
|
|
1349
1349
|
for (; Ie(o); )
|
|
1350
1350
|
o = sa(s, o, t);
|
|
1351
1351
|
const l = Ie(t) || !be(t) ? t : t.default ? t.default : null;
|
|
1352
|
-
o =
|
|
1352
|
+
o = V(l) ? [l] : l, Ie(o) && sa(s, o, !1), a.__localeChainCache.set(r, s);
|
|
1353
1353
|
}
|
|
1354
1354
|
return s;
|
|
1355
1355
|
}
|
|
@@ -1357,7 +1357,7 @@ function sa(e, t, n) {
|
|
|
1357
1357
|
let r = !0;
|
|
1358
1358
|
for (let a = 0; a < t.length && pe(r); a++) {
|
|
1359
1359
|
const s = t[a];
|
|
1360
|
-
|
|
1360
|
+
V(s) && (r = Ml(e, t[a], n));
|
|
1361
1361
|
}
|
|
1362
1362
|
return r;
|
|
1363
1363
|
}
|
|
@@ -1695,9 +1695,9 @@ function bt(e, ...t) {
|
|
|
1695
1695
|
const Kl = "11.4.8", Fn = -1, fn = "en-US", Gt = "", la = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1696
1696
|
function Xl() {
|
|
1697
1697
|
return {
|
|
1698
|
-
upper: (e, t) => t === "text" &&
|
|
1699
|
-
lower: (e, t) => t === "text" &&
|
|
1700
|
-
capitalize: (e, t) => t === "text" &&
|
|
1698
|
+
upper: (e, t) => t === "text" && V(e) ? e.toUpperCase() : t === "vnode" && de(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1699
|
+
lower: (e, t) => t === "text" && V(e) ? e.toLowerCase() : t === "vnode" && de(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1700
|
+
capitalize: (e, t) => t === "text" && V(e) ? la(e) : t === "vnode" && de(e) && "__v_isVNode" in e ? la(e.children) : e
|
|
1701
1701
|
};
|
|
1702
1702
|
}
|
|
1703
1703
|
let is;
|
|
@@ -1722,9 +1722,9 @@ const ia = (e) => {
|
|
|
1722
1722
|
}, ti = () => fs;
|
|
1723
1723
|
let ca = 0;
|
|
1724
1724
|
function ni(e = {}) {
|
|
1725
|
-
const t = we(e.onWarn) ? e.onWarn : ct, n =
|
|
1725
|
+
const t = we(e.onWarn) ? e.onWarn : ct, n = V(e.version) ? e.version : Kl, r = V(e.locale) || we(e.locale) ? e.locale : fn, a = we(r) ? fn : r, s = Ie(e.fallbackLocale) || be(e.fallbackLocale) || V(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, o = be(e.messages) ? e.messages : Gn(a), l = be(e.datetimeFormats) ? e.datetimeFormats : Gn(a), i = be(e.numberFormats) ? e.numberFormats : Gn(a), f = De(Oe(), e.modifiers, Xl()), p = e.pluralRules || Oe(), m = we(e.missing) ? e.missing : null, v = pe(e.missingWarn) || zt(e.missingWarn) ? e.missingWarn : !0, g = pe(e.fallbackWarn) || zt(e.fallbackWarn) ? e.fallbackWarn : !0, E = !!e.fallbackFormat, T = !!e.unresolving, L = we(e.postTranslation) ? e.postTranslation : null, d = be(e.processor) ? e.processor : null, _ = pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, O = !!e.escapeParameter, h = we(e.messageCompiler) ? e.messageCompiler : is;
|
|
1726
1726
|
process.env.NODE_ENV !== "production" && we(e.messageCompiler) && wr(bt(Re.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1727
|
-
const S = we(e.messageResolver) ? e.messageResolver : cs || jl, N = we(e.localeFallbacker) ? e.localeFallbacker : us || $l, b = de(e.fallbackContext) ? e.fallbackContext : void 0, R = e, U = de(R.__datetimeFormatters) ? R.__datetimeFormatters : /* @__PURE__ */ new Map(), X = de(R.__numberFormatters) ? R.__numberFormatters : /* @__PURE__ */ new Map(),
|
|
1727
|
+
const S = we(e.messageResolver) ? e.messageResolver : cs || jl, N = we(e.localeFallbacker) ? e.localeFallbacker : us || $l, b = de(e.fallbackContext) ? e.fallbackContext : void 0, R = e, U = de(R.__datetimeFormatters) ? R.__datetimeFormatters : /* @__PURE__ */ new Map(), X = de(R.__numberFormatters) ? R.__numberFormatters : /* @__PURE__ */ new Map(), z = de(R.__meta) ? R.__meta : {};
|
|
1728
1728
|
ca++;
|
|
1729
1729
|
const q = {
|
|
1730
1730
|
version: n,
|
|
@@ -1748,9 +1748,9 @@ function ni(e = {}) {
|
|
|
1748
1748
|
localeFallbacker: N,
|
|
1749
1749
|
fallbackContext: b,
|
|
1750
1750
|
onWarn: t,
|
|
1751
|
-
__meta:
|
|
1751
|
+
__meta: z
|
|
1752
1752
|
};
|
|
1753
|
-
return q.datetimeFormats = l, q.numberFormats = i, q.__datetimeFormatters = U, q.__numberFormatters = X, process.env.NODE_ENV !== "production" && (q.__v_emitter = R.__v_emitter != null ? R.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Al(q, n,
|
|
1753
|
+
return q.datetimeFormats = l, q.numberFormats = i, q.__datetimeFormatters = U, q.__numberFormatters = X, process.env.NODE_ENV !== "production" && (q.__v_emitter = R.__v_emitter != null ? R.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Al(q, n, z), q;
|
|
1754
1754
|
}
|
|
1755
1755
|
const Gn = (e) => ({ [e]: Oe() });
|
|
1756
1756
|
function Ar(e, t) {
|
|
@@ -1772,7 +1772,7 @@ function ps(e, t, n, r, a) {
|
|
|
1772
1772
|
}
|
|
1773
1773
|
if (s !== null) {
|
|
1774
1774
|
const l = s(e, n, t, a);
|
|
1775
|
-
return
|
|
1775
|
+
return V(l) ? l : t;
|
|
1776
1776
|
} else
|
|
1777
1777
|
return process.env.NODE_ENV !== "production" && ms(r, t) && o(bt(Re.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1778
1778
|
}
|
|
@@ -1816,7 +1816,7 @@ function gs(e, t, n, r, a, s, o) {
|
|
|
1816
1816
|
});
|
|
1817
1817
|
}
|
|
1818
1818
|
const E = (r[g] || {})[t];
|
|
1819
|
-
if (be(E) &&
|
|
1819
|
+
if (be(E) && V(g))
|
|
1820
1820
|
return g;
|
|
1821
1821
|
ps(e, t, g, a, o), m = g;
|
|
1822
1822
|
}
|
|
@@ -1836,9 +1836,9 @@ function _s(e, t, n) {
|
|
|
1836
1836
|
function bs(e, t, n, r) {
|
|
1837
1837
|
const [, a, s, o] = e;
|
|
1838
1838
|
let l = n;
|
|
1839
|
-
return
|
|
1839
|
+
return V(a) ? t.key = a : be(a) && Object.keys(a).forEach((i) => {
|
|
1840
1840
|
r.includes(i) ? l[i] = a[i] : t[i] = a[i];
|
|
1841
|
-
}),
|
|
1841
|
+
}), V(s) ? t.locale = s : be(s) && (l = s), be(o) && (l = o), l;
|
|
1842
1842
|
}
|
|
1843
1843
|
const ua = typeof Intl < "u", ys = {
|
|
1844
1844
|
dateTimeFormat: ua && typeof Intl.DateTimeFormat < "u",
|
|
@@ -1848,17 +1848,17 @@ function da(e, ...t) {
|
|
|
1848
1848
|
const { datetimeFormats: n, unresolving: r, onWarn: a } = e, { __datetimeFormatters: s } = e;
|
|
1849
1849
|
if (process.env.NODE_ENV !== "production" && !ys.dateTimeFormat)
|
|
1850
1850
|
return a(bt(Re.CANNOT_FORMAT_DATE)), Gt;
|
|
1851
|
-
if (!
|
|
1851
|
+
if (!V(t[0]) && !Qa(t[0]) && !xe(t[0]))
|
|
1852
1852
|
return process.env.NODE_ENV !== "production" && a(bt(Re.INVALID_DATE_ARGUMENT, {
|
|
1853
1853
|
value: String(t[0])
|
|
1854
1854
|
})), Gt;
|
|
1855
1855
|
const [o, l, i, f] = ar(...t), p = pe(i.missingWarn) ? i.missingWarn : e.missingWarn, m = pe(i.fallbackWarn) ? i.fallbackWarn : e.fallbackWarn, v = !!i.part, g = Ir(e, i);
|
|
1856
|
-
if (!
|
|
1856
|
+
if (!V(o) || o === "") {
|
|
1857
1857
|
const _ = new Intl.DateTimeFormat(g.replace(/!/g, ""), f);
|
|
1858
1858
|
return v ? _.formatToParts(l) : _.format(l);
|
|
1859
1859
|
}
|
|
1860
1860
|
const E = gs(e, o, g, n, p, m, "datetime format");
|
|
1861
|
-
if (!
|
|
1861
|
+
if (!V(E))
|
|
1862
1862
|
return r ? Fn : o;
|
|
1863
1863
|
const T = n[E][o], L = hs(E, o, f);
|
|
1864
1864
|
let d = s.get(L);
|
|
@@ -1889,7 +1889,7 @@ const Es = [
|
|
|
1889
1889
|
function ar(...e) {
|
|
1890
1890
|
const [t] = e, n = Oe(), r = Oe();
|
|
1891
1891
|
let a;
|
|
1892
|
-
if (
|
|
1892
|
+
if (V(t)) {
|
|
1893
1893
|
const o = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1894
1894
|
if (!o)
|
|
1895
1895
|
throw mt(Fe.INVALID_ISO_DATE_ARGUMENT);
|
|
@@ -1923,12 +1923,12 @@ function ma(e, ...t) {
|
|
|
1923
1923
|
value: String(t[0])
|
|
1924
1924
|
})), Gt;
|
|
1925
1925
|
const [o, l, i, f] = sr(...t), p = pe(i.missingWarn) ? i.missingWarn : e.missingWarn, m = pe(i.fallbackWarn) ? i.fallbackWarn : e.fallbackWarn, v = !!i.part, g = Ir(e, i);
|
|
1926
|
-
if (!
|
|
1926
|
+
if (!V(o) || o === "") {
|
|
1927
1927
|
const _ = new Intl.NumberFormat(g.replace(/!/g, ""), f);
|
|
1928
1928
|
return v ? _.formatToParts(l) : _.format(l);
|
|
1929
1929
|
}
|
|
1930
1930
|
const E = gs(e, o, g, n, p, m, "number format");
|
|
1931
|
-
if (!
|
|
1931
|
+
if (!V(E))
|
|
1932
1932
|
return r ? Fn : o;
|
|
1933
1933
|
const T = n[E][o], L = hs(E, o, f);
|
|
1934
1934
|
let d = s.get(L);
|
|
@@ -1975,21 +1975,21 @@ function ci(e) {
|
|
|
1975
1975
|
return xe(e.named?.count) ? e.named.count : xe(e.named?.n) ? e.named.n : t;
|
|
1976
1976
|
}
|
|
1977
1977
|
function ui(e = {}) {
|
|
1978
|
-
const t = e.locale, n = ci(e), r =
|
|
1978
|
+
const t = e.locale, n = ci(e), r = V(t) && we(e.pluralRules?.[t]) ? e.pluralRules[t] : Yn, a = r === Yn ? void 0 : Yn, s = (d) => d[r(n, d.length, a)], o = e.list || [], l = (d) => o[d], i = e.named || Oe();
|
|
1979
1979
|
xe(e.pluralIndex) && (i.count ||= e.pluralIndex, i.n ||= e.pluralIndex);
|
|
1980
1980
|
const f = (d) => i[d];
|
|
1981
1981
|
function p(d, _) {
|
|
1982
1982
|
const O = we(e.messages) ? e.messages(d, !!_) : de(e.messages) ? e.messages[d] : !1;
|
|
1983
1983
|
return O || (e.parent ? e.parent.message(d) : si);
|
|
1984
1984
|
}
|
|
1985
|
-
const m = (d) => e.modifiers ? e.modifiers[d] : ai, v = we(e.processor?.normalize) ? e.processor.normalize : li, g = we(e.processor?.interpolate) ? e.processor.interpolate : ii, E =
|
|
1985
|
+
const m = (d) => e.modifiers ? e.modifiers[d] : ai, v = we(e.processor?.normalize) ? e.processor.normalize : li, g = we(e.processor?.interpolate) ? e.processor.interpolate : ii, E = V(e.processor?.type) ? e.processor.type : oi, L = {
|
|
1986
1986
|
list: l,
|
|
1987
1987
|
named: f,
|
|
1988
1988
|
plural: s,
|
|
1989
1989
|
linked: (d, ..._) => {
|
|
1990
1990
|
const [O, h] = _;
|
|
1991
1991
|
let S = "text", N = "";
|
|
1992
|
-
_.length === 1 ? de(O) ? (N = O.modifier || N, S = O.type || S) :
|
|
1992
|
+
_.length === 1 ? de(O) ? (N = O.modifier || N, S = O.type || S) : V(O) && (N = O || N) : _.length === 2 && (V(O) && (N = O || N), V(h) && (S = h || S));
|
|
1993
1993
|
const b = p(d, !0)(L), R = b === "" || b === void 0 ? d : b, U = (
|
|
1994
1994
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1995
1995
|
S === "vnode" && Ie(R) && N ? R[0] : R
|
|
@@ -2006,16 +2006,16 @@ function ui(e = {}) {
|
|
|
2006
2006
|
}
|
|
2007
2007
|
const va = () => "", qe = (e) => we(e);
|
|
2008
2008
|
function ga(e, ...t) {
|
|
2009
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: o, messages: l } = e, [i, f] = or(...t), p = pe(f.missingWarn) ? f.missingWarn : e.missingWarn, m = pe(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, v = pe(f.escapeParameter) ? f.escapeParameter : e.escapeParameter, g = !!f.resolvedMessage, E =
|
|
2009
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: o, messages: l } = e, [i, f] = or(...t), p = pe(f.missingWarn) ? f.missingWarn : e.missingWarn, m = pe(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, v = pe(f.escapeParameter) ? f.escapeParameter : e.escapeParameter, g = !!f.resolvedMessage, E = V(f.default) || pe(f.default) ? pe(f.default) ? s ? i : () => i : f.default : n ? s ? i : () => i : null, T = n || E != null && (V(E) || we(E)), L = Ir(e, f);
|
|
2010
2010
|
v && di(f);
|
|
2011
2011
|
let [d, _, O] = g ? [
|
|
2012
2012
|
i,
|
|
2013
2013
|
L,
|
|
2014
2014
|
l[L] || Oe()
|
|
2015
2015
|
] : Os(e, i, L, o, m, p), h = d, S = i;
|
|
2016
|
-
if (!g && !(
|
|
2016
|
+
if (!g && !(V(h) || Ze(h) || qe(h)) && T && (h = E, S = h), !g && (!(V(h) || Ze(h) || qe(h)) || !V(_)))
|
|
2017
2017
|
return a ? Fn : i;
|
|
2018
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
2018
|
+
if (process.env.NODE_ENV !== "production" && V(h) && e.messageCompiler == null)
|
|
2019
2019
|
return ct(`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;
|
|
2020
2020
|
let N = !1;
|
|
2021
2021
|
const b = () => {
|
|
@@ -2023,14 +2023,14 @@ function ga(e, ...t) {
|
|
|
2023
2023
|
}, R = qe(h) ? h : Ns(e, i, _, h, S, b);
|
|
2024
2024
|
if (N)
|
|
2025
2025
|
return h;
|
|
2026
|
-
const U = vi(e, _, O, f), X = ui(U),
|
|
2027
|
-
let q = r ? r(
|
|
2028
|
-
if (v &&
|
|
2026
|
+
const U = vi(e, _, O, f), X = ui(U), z = fi(e, R, X);
|
|
2027
|
+
let q = r ? r(z, i) : z;
|
|
2028
|
+
if (v && V(q) && (q = Fo(q)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2029
2029
|
const re = {
|
|
2030
2030
|
timestamp: Date.now(),
|
|
2031
|
-
key:
|
|
2031
|
+
key: V(i) ? i : qe(h) ? h.key : "",
|
|
2032
2032
|
locale: _ || (qe(h) ? h.locale : ""),
|
|
2033
|
-
format:
|
|
2033
|
+
format: V(h) ? h : qe(h) ? h.source : "",
|
|
2034
2034
|
message: q
|
|
2035
2035
|
};
|
|
2036
2036
|
re.meta = De({}, e.__meta, /* @__PURE__ */ ei() || {}), xl(re);
|
|
@@ -2038,8 +2038,8 @@ function ga(e, ...t) {
|
|
|
2038
2038
|
return q;
|
|
2039
2039
|
}
|
|
2040
2040
|
function di(e) {
|
|
2041
|
-
Ie(e.list) ? e.list = e.list.map((t) =>
|
|
2042
|
-
|
|
2041
|
+
Ie(e.list) ? e.list = e.list.map((t) => V(t) ? Jr(t) : t) : de(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2042
|
+
V(e.named[t]) && (e.named[t] = Jr(e.named[t]));
|
|
2043
2043
|
});
|
|
2044
2044
|
}
|
|
2045
2045
|
function Os(e, t, n, r, a, s) {
|
|
@@ -2070,7 +2070,7 @@ function Os(e, t, n, r, a, s) {
|
|
|
2070
2070
|
groupId: `${L}:${t}`
|
|
2071
2071
|
}), h && S && je && It && (je(S), It("intlify message resolve", h, S));
|
|
2072
2072
|
}
|
|
2073
|
-
if (
|
|
2073
|
+
if (V(g) || Ze(g) || qe(g))
|
|
2074
2074
|
break;
|
|
2075
2075
|
if (!ri(v, p)) {
|
|
2076
2076
|
const N = ps(
|
|
@@ -2130,10 +2130,10 @@ function fi(e, t, n) {
|
|
|
2130
2130
|
}
|
|
2131
2131
|
function or(...e) {
|
|
2132
2132
|
const [t, n, r] = e, a = Oe();
|
|
2133
|
-
if (!
|
|
2133
|
+
if (!V(t) && !xe(t) && !qe(t) && !Ze(t))
|
|
2134
2134
|
throw mt(Fe.INVALID_ARGUMENT);
|
|
2135
2135
|
const s = xe(t) ? String(t) : (qe(t), t);
|
|
2136
|
-
return xe(n) ? a.plural = n :
|
|
2136
|
+
return xe(n) ? a.plural = n : V(n) ? a.default = n : be(n) && !Or(n) ? a.named = n : Ie(n) && (a.list = n), xe(r) ? a.plural = r : V(r) ? a.default = r : be(r) && De(a, r), [s, a];
|
|
2137
2137
|
}
|
|
2138
2138
|
function mi(e, t, n, r, a, s) {
|
|
2139
2139
|
return {
|
|
@@ -2160,7 +2160,7 @@ ${i}` : p);
|
|
|
2160
2160
|
};
|
|
2161
2161
|
}
|
|
2162
2162
|
function pi(e) {
|
|
2163
|
-
if (
|
|
2163
|
+
if (V(e))
|
|
2164
2164
|
return e;
|
|
2165
2165
|
if (e.loc && e.loc.source)
|
|
2166
2166
|
return e.loc.source;
|
|
@@ -2184,7 +2184,7 @@ function vi(e, t, n, r) {
|
|
|
2184
2184
|
);
|
|
2185
2185
|
T = L ?? o(d, g);
|
|
2186
2186
|
}
|
|
2187
|
-
if (
|
|
2187
|
+
if (V(T) || Ze(T)) {
|
|
2188
2188
|
let L = !1;
|
|
2189
2189
|
const _ = Ns(e, g, t, T, g, () => {
|
|
2190
2190
|
L = !0;
|
|
@@ -2400,7 +2400,7 @@ function xr(e, t) {
|
|
|
2400
2400
|
const { locale: i, resource: f } = l;
|
|
2401
2401
|
i ? (o[i] = o[i] || Oe(), wn(f, o[i])) : wn(f, o);
|
|
2402
2402
|
} else
|
|
2403
|
-
|
|
2403
|
+
V(l) && wn(JSON.parse(l), o);
|
|
2404
2404
|
}), a == null && s)
|
|
2405
2405
|
for (const l in o)
|
|
2406
2406
|
Je(o, l) && mn(o[l]);
|
|
@@ -2452,14 +2452,14 @@ const ki = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
|
2452
2452
|
return e && (t = Ss(e)[_a]) ? { [_a]: t } : null;
|
|
2453
2453
|
};
|
|
2454
2454
|
function kn(e = {}) {
|
|
2455
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = at ?
|
|
2455
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = at ? G : oo;
|
|
2456
2456
|
let o = pe(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2457
2457
|
const l = s(
|
|
2458
2458
|
// prettier-ignore
|
|
2459
|
-
t && o ? t.locale.value :
|
|
2459
|
+
t && o ? t.locale.value : V(e.locale) ? e.locale : fn
|
|
2460
2460
|
), i = s(
|
|
2461
2461
|
// prettier-ignore
|
|
2462
|
-
t && o ? t.fallbackLocale.value :
|
|
2462
|
+
t && o ? t.fallbackLocale.value : V(e.fallbackLocale) || Ie(e.fallbackLocale) || be(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
|
|
2463
2463
|
), f = s(xr(l.value, e)), p = s(be(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), m = s(be(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
|
|
2464
2464
|
let v = t ? t.missingWarn : pe(e.missingWarn) || zt(e.missingWarn) ? e.missingWarn : !0, g = t ? t.fallbackWarn : pe(e.fallbackWarn) || zt(e.fallbackWarn) ? e.fallbackWarn : !0, E = t ? t.fallbackRoot : pe(e.fallbackRoot) ? e.fallbackRoot : !0, T = !!e.fallbackFormat, L = we(e.missing) ? e.missing : null, d = we(e.missing) ? Ea(e.missing) : null, _ = we(e.postTranslation) ? e.postTranslation : null, O = t ? t.warnHtmlMessage : pe(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, h = !!e.escapeParameter;
|
|
2465
2465
|
const S = t ? t.modifiers : be(e.modifiers) ? e.modifiers : {};
|
|
@@ -2503,7 +2503,7 @@ function kn(e = {}) {
|
|
|
2503
2503
|
set: (w) => {
|
|
2504
2504
|
b.locale = w, l.value = w;
|
|
2505
2505
|
}
|
|
2506
|
-
}),
|
|
2506
|
+
}), z = I({
|
|
2507
2507
|
get: () => i.value,
|
|
2508
2508
|
set: (w) => {
|
|
2509
2509
|
b.fallbackLocale = w, i.value = w, Zt(b, l.value, w);
|
|
@@ -2515,16 +2515,16 @@ function kn(e = {}) {
|
|
|
2515
2515
|
function ae(w) {
|
|
2516
2516
|
_ = w, b.postTranslation = w;
|
|
2517
2517
|
}
|
|
2518
|
-
function
|
|
2518
|
+
function H() {
|
|
2519
2519
|
return L;
|
|
2520
2520
|
}
|
|
2521
|
-
function
|
|
2521
|
+
function Y(w) {
|
|
2522
2522
|
w !== null && (d = Ea(w)), L = w, b.missing = d;
|
|
2523
2523
|
}
|
|
2524
2524
|
function W(w, x) {
|
|
2525
2525
|
return w !== "translate" || !x.resolvedMessage;
|
|
2526
2526
|
}
|
|
2527
|
-
const
|
|
2527
|
+
const K = (w, x, ce, Ce, Nt, Lt) => {
|
|
2528
2528
|
U();
|
|
2529
2529
|
let Ye;
|
|
2530
2530
|
try {
|
|
@@ -2535,7 +2535,7 @@ function kn(e = {}) {
|
|
|
2535
2535
|
if (ce !== "translate exists" && // for not `te` (e.g `t`)
|
|
2536
2536
|
xe(Ye) && Ye === Fn || ce === "translate exists" && !Ye) {
|
|
2537
2537
|
const [wt, ro] = x();
|
|
2538
|
-
if (process.env.NODE_ENV !== "production" && t &&
|
|
2538
|
+
if (process.env.NODE_ENV !== "production" && t && V(wt) && W(ce, ro) && (E && (Ar(g, wt) || ms(v, wt)) && ct(Yt(Qe.FALLBACK_TO_ROOT, {
|
|
2539
2539
|
key: wt,
|
|
2540
2540
|
type: ce
|
|
2541
2541
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -2555,7 +2555,7 @@ function kn(e = {}) {
|
|
|
2555
2555
|
}
|
|
2556
2556
|
};
|
|
2557
2557
|
function se(...w) {
|
|
2558
|
-
return
|
|
2558
|
+
return K((x) => Reflect.apply(ga, null, [x, ...w]), () => or(...w), "translate", (x) => Reflect.apply(x.t, x, [...w]), (x) => x, (x) => V(x));
|
|
2559
2559
|
}
|
|
2560
2560
|
function k(...w) {
|
|
2561
2561
|
const [x, ce, Ce] = w;
|
|
@@ -2564,13 +2564,13 @@ function kn(e = {}) {
|
|
|
2564
2564
|
return se(x, ce, De({ resolvedMessage: !0 }, Ce || {}));
|
|
2565
2565
|
}
|
|
2566
2566
|
function $(...w) {
|
|
2567
|
-
return
|
|
2567
|
+
return K((x) => Reflect.apply(da, null, [x, ...w]), () => ar(...w), "datetime format", (x) => Reflect.apply(x.d, x, [...w]), () => Gt, (x) => V(x) || Ie(x));
|
|
2568
2568
|
}
|
|
2569
|
-
function
|
|
2570
|
-
return
|
|
2569
|
+
function j(...w) {
|
|
2570
|
+
return K((x) => Reflect.apply(ma, null, [x, ...w]), () => sr(...w), "number format", (x) => Reflect.apply(x.n, x, [...w]), () => Gt, (x) => V(x) || Ie(x));
|
|
2571
2571
|
}
|
|
2572
2572
|
function le(w) {
|
|
2573
|
-
return w.map((x) =>
|
|
2573
|
+
return w.map((x) => V(x) || xe(x) || pe(x) ? ha(String(x)) : x);
|
|
2574
2574
|
}
|
|
2575
2575
|
const D = {
|
|
2576
2576
|
normalize: le,
|
|
@@ -2578,7 +2578,7 @@ function kn(e = {}) {
|
|
|
2578
2578
|
type: "vnode"
|
|
2579
2579
|
};
|
|
2580
2580
|
function fe(...w) {
|
|
2581
|
-
return
|
|
2581
|
+
return K((x) => {
|
|
2582
2582
|
let ce;
|
|
2583
2583
|
const Ce = x;
|
|
2584
2584
|
try {
|
|
@@ -2590,29 +2590,29 @@ function kn(e = {}) {
|
|
|
2590
2590
|
}, () => or(...w), "translate", (x) => x[ir](...w), (x) => [ha(x)], (x) => Ie(x));
|
|
2591
2591
|
}
|
|
2592
2592
|
function me(...w) {
|
|
2593
|
-
return
|
|
2593
|
+
return K((x) => Reflect.apply(ma, null, [x, ...w]), () => sr(...w), "number format", (x) => x[ur](...w), ba, (x) => V(x) || Ie(x));
|
|
2594
2594
|
}
|
|
2595
2595
|
function Pe(...w) {
|
|
2596
|
-
return
|
|
2596
|
+
return K((x) => Reflect.apply(da, null, [x, ...w]), () => ar(...w), "datetime format", (x) => x[cr](...w), ba, (x) => V(x) || Ie(x));
|
|
2597
2597
|
}
|
|
2598
2598
|
function rt(w) {
|
|
2599
2599
|
N = w, b.pluralRules = N;
|
|
2600
2600
|
}
|
|
2601
|
-
function
|
|
2602
|
-
return
|
|
2601
|
+
function M(w, x) {
|
|
2602
|
+
return K(() => {
|
|
2603
2603
|
if (!w)
|
|
2604
2604
|
return !1;
|
|
2605
|
-
const ce =
|
|
2605
|
+
const ce = V(x) ? x : l.value, Ce = V(x) ? [ce] : rr(b, i.value, ce);
|
|
2606
2606
|
for (let Nt = 0; Nt < Ce.length; Nt++) {
|
|
2607
2607
|
const Lt = ve(Ce[Nt]);
|
|
2608
2608
|
let Ye = b.messageResolver(Lt, w);
|
|
2609
|
-
if (Ye === null && (Ye = Lt[w]), Ze(Ye) || qe(Ye) ||
|
|
2609
|
+
if (Ye === null && (Ye = Lt[w]), Ze(Ye) || qe(Ye) || V(Ye))
|
|
2610
2610
|
return !0;
|
|
2611
2611
|
}
|
|
2612
2612
|
return !1;
|
|
2613
2613
|
}, () => [w], "translate exists", (ce) => Reflect.apply(ce.te, ce, [w, x]), Si, (ce) => pe(ce));
|
|
2614
2614
|
}
|
|
2615
|
-
function
|
|
2615
|
+
function B(w) {
|
|
2616
2616
|
let x = null;
|
|
2617
2617
|
const ce = rr(b, i.value, l.value);
|
|
2618
2618
|
for (let Ce = 0; Ce < ce.length; Ce++) {
|
|
@@ -2625,7 +2625,7 @@ function kn(e = {}) {
|
|
|
2625
2625
|
return x;
|
|
2626
2626
|
}
|
|
2627
2627
|
function ye(w) {
|
|
2628
|
-
const x =
|
|
2628
|
+
const x = B(w);
|
|
2629
2629
|
return x ?? (t ? t.tm(w) || {} : {});
|
|
2630
2630
|
}
|
|
2631
2631
|
function ve(w) {
|
|
@@ -2674,7 +2674,7 @@ function kn(e = {}) {
|
|
|
2674
2674
|
const oe = {
|
|
2675
2675
|
id: ya,
|
|
2676
2676
|
locale: X,
|
|
2677
|
-
fallbackLocale:
|
|
2677
|
+
fallbackLocale: z,
|
|
2678
2678
|
get inheritLocale() {
|
|
2679
2679
|
return o;
|
|
2680
2680
|
},
|
|
@@ -2736,11 +2736,11 @@ function kn(e = {}) {
|
|
|
2736
2736
|
mergeLocaleMessage: ht,
|
|
2737
2737
|
getPostTranslationHandler: ke,
|
|
2738
2738
|
setPostTranslationHandler: ae,
|
|
2739
|
-
getMissingHandler:
|
|
2740
|
-
setMissingHandler:
|
|
2739
|
+
getMissingHandler: H,
|
|
2740
|
+
setMissingHandler: Y,
|
|
2741
2741
|
[ws]: rt
|
|
2742
2742
|
};
|
|
2743
|
-
return oe.datetimeFormats = re, oe.numberFormats = ie, oe.rt = k, oe.te =
|
|
2743
|
+
return oe.datetimeFormats = re, oe.numberFormats = ie, oe.rt = k, oe.te = M, oe.tm = ye, oe.d = $, oe.n = j, oe.getDateTimeFormat = c, oe.setDateTimeFormat = u, oe.mergeDateTimeFormat = y, oe.getNumberFormat = P, oe.setNumberFormat = ee, oe.mergeNumberFormat = Le, oe[Cs] = n, oe[ir] = fe, oe[cr] = Pe, oe[ur] = me, process.env.NODE_ENV !== "production" && (oe[vt] = (w) => {
|
|
2744
2744
|
b.__v_emitter = w;
|
|
2745
2745
|
}, oe[At] = () => {
|
|
2746
2746
|
b.__v_emitter = void 0;
|
|
@@ -3003,11 +3003,11 @@ function Bi(e, t) {
|
|
|
3003
3003
|
const n = xs(e.nodeId, t);
|
|
3004
3004
|
if (n) {
|
|
3005
3005
|
const [r] = e.path;
|
|
3006
|
-
r === "locale" &&
|
|
3006
|
+
r === "locale" && V(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (V(e.state.value) || Ie(e.state.value) || de(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && pe(e.state.value) && (n.inheritLocale = e.state.value);
|
|
3007
3007
|
}
|
|
3008
3008
|
}
|
|
3009
3009
|
function Hi(e) {
|
|
3010
|
-
const t =
|
|
3010
|
+
const t = V(e.locale) ? e.locale : fn, n = V(e.fallbackLocale) || Ie(e.fallbackLocale) || be(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = we(e.missing) ? e.missing : void 0, a = pe(e.silentTranslationWarn) || zt(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = pe(e.silentFallbackWarn) || zt(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = pe(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, i = be(e.modifiers) ? e.modifiers : {}, f = e.pluralizationRules, p = we(e.postTranslation) ? e.postTranslation : void 0, m = V(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, v = !!e.escapeParameterHtml, g = pe(e.sync) ? e.sync : !0;
|
|
3011
3011
|
let E = e.messages;
|
|
3012
3012
|
if (be(e.sharedMessages)) {
|
|
3013
3013
|
const S = e.sharedMessages;
|
|
@@ -3325,16 +3325,16 @@ const Gi = /* @__PURE__ */ Ee({
|
|
|
3325
3325
|
return () => {
|
|
3326
3326
|
const s = () => {
|
|
3327
3327
|
const i = Object.keys(n).filter((m) => m[0] !== "_"), f = Oe();
|
|
3328
|
-
e.locale && (f.locale = e.locale), e.plural !== void 0 && (f.plural =
|
|
3328
|
+
e.locale && (f.locale = e.locale), e.plural !== void 0 && (f.plural = V(e.plural) ? +e.plural : e.plural);
|
|
3329
3329
|
const p = ji(t, i);
|
|
3330
3330
|
return a[ir](e.keypath, p, f);
|
|
3331
|
-
}, o = De(Oe(), r), l =
|
|
3331
|
+
}, o = De(Oe(), r), l = V(e.tag) || de(e.tag) ? e.tag : Ds();
|
|
3332
3332
|
return de(l) ? kt(l, o, { default: s }) : kt(l, o, s());
|
|
3333
3333
|
};
|
|
3334
3334
|
}
|
|
3335
3335
|
}), Na = Gi;
|
|
3336
3336
|
function Yi(e) {
|
|
3337
|
-
return Ie(e) && !
|
|
3337
|
+
return Ie(e) && !V(e[0]);
|
|
3338
3338
|
}
|
|
3339
3339
|
function Ps(e, t, n, r) {
|
|
3340
3340
|
const { slots: a, attrs: s } = t;
|
|
@@ -3342,14 +3342,14 @@ function Ps(e, t, n, r) {
|
|
|
3342
3342
|
const o = () => {
|
|
3343
3343
|
const f = { part: !0 };
|
|
3344
3344
|
let p = Oe();
|
|
3345
|
-
e.locale && (f.locale = e.locale),
|
|
3345
|
+
e.locale && (f.locale = e.locale), V(e.format) ? f.key = e.format : de(e.format) && (V(e.format.key) && (f.key = e.format.key), p = Object.keys(e.format).reduce((g, E) => n.includes(E) ? De(Oe(), g, { [E]: e.format[E] }) : g, Oe()));
|
|
3346
3346
|
const m = r(e.value, f, p);
|
|
3347
3347
|
let v = [f.key];
|
|
3348
3348
|
return Ie(m) ? v = m.map((g, E) => {
|
|
3349
3349
|
const T = a[g.type], L = T ? T({ [g.type]: g.value, index: E, parts: m }) : [g.value];
|
|
3350
3350
|
return Yi(L) && (L[0].key = `${g.type}-${E}`), L;
|
|
3351
|
-
}) :
|
|
3352
|
-
}, l = De(Oe(), s), i =
|
|
3351
|
+
}) : V(m) && (v = [m]), v;
|
|
3352
|
+
}, l = De(Oe(), s), i = V(e.tag) || de(e.tag) ? e.tag : Ds();
|
|
3353
3353
|
return de(i) ? kt(i, l, { default: o }) : kt(i, l, o());
|
|
3354
3354
|
};
|
|
3355
3355
|
}
|
|
@@ -3424,7 +3424,7 @@ function qi(e) {
|
|
|
3424
3424
|
};
|
|
3425
3425
|
}
|
|
3426
3426
|
function wa(e) {
|
|
3427
|
-
if (
|
|
3427
|
+
if (V(e))
|
|
3428
3428
|
return { path: e };
|
|
3429
3429
|
if (be(e)) {
|
|
3430
3430
|
if (!("path" in e))
|
|
@@ -3435,7 +3435,7 @@ function wa(e) {
|
|
|
3435
3435
|
}
|
|
3436
3436
|
function Ca(e) {
|
|
3437
3437
|
const { path: t, locale: n, args: r, choice: a, plural: s } = e, o = {}, l = r || {};
|
|
3438
|
-
return
|
|
3438
|
+
return V(n) && (o.locale = n), xe(a) && (o.plural = a), xe(s) && (o.plural = s), [t, l, o];
|
|
3439
3439
|
}
|
|
3440
3440
|
function Qi(e, t, ...n) {
|
|
3441
3441
|
const r = be(n[0]) ? n[0] : {};
|
|
@@ -3802,7 +3802,7 @@ const Rs = () => (Xn || (Xn = Zi({
|
|
|
3802
3802
|
isActive: { type: Boolean }
|
|
3803
3803
|
},
|
|
3804
3804
|
setup(e) {
|
|
3805
|
-
const t = e, n = Ka(), r =
|
|
3805
|
+
const t = e, n = Ka(), r = G(null);
|
|
3806
3806
|
function a() {
|
|
3807
3807
|
t.disabled || t.loading || r.value?.click();
|
|
3808
3808
|
}
|
|
@@ -3830,7 +3830,7 @@ const Rs = () => (Xn || (Xn = Zi({
|
|
|
3830
3830
|
key: 0,
|
|
3831
3831
|
class: ne(["cregis-button__icon-wrapper", { "cregis-button__icon-wrapper--professional": e.iconType === "professional" }])
|
|
3832
3832
|
}, [
|
|
3833
|
-
|
|
3833
|
+
F("button", pt({
|
|
3834
3834
|
ref_key: "iconButtonRef",
|
|
3835
3835
|
ref: r
|
|
3836
3836
|
}, p.$attrs, {
|
|
@@ -3927,8 +3927,8 @@ const Rs = () => (Xn || (Xn = Zi({
|
|
|
3927
3927
|
if (k === "" || k === null || k === void 0) return "";
|
|
3928
3928
|
const $ = String(k).trim();
|
|
3929
3929
|
if ($ === "") return "";
|
|
3930
|
-
const
|
|
3931
|
-
if (!Number.isNaN(
|
|
3930
|
+
const j = Number($.replace(/,/g, ""));
|
|
3931
|
+
if (!Number.isNaN(j) && j < 0) return Math.abs(j);
|
|
3932
3932
|
if (/^-/.test($)) {
|
|
3933
3933
|
const le = $.replace(/^-+/, "");
|
|
3934
3934
|
return le === "" ? "" : le;
|
|
@@ -3941,18 +3941,18 @@ const Rs = () => (Xn || (Xn = Zi({
|
|
|
3941
3941
|
if (k === "" || k === null || k === void 0) return "";
|
|
3942
3942
|
let $ = p(String(k).trim());
|
|
3943
3943
|
if ($ === "") return "";
|
|
3944
|
-
let
|
|
3945
|
-
!r.nonNegative && $.startsWith("-") && (
|
|
3944
|
+
let j = !1;
|
|
3945
|
+
!r.nonNegative && $.startsWith("-") && (j = !0, $ = $.slice(1)), $ = $.replace(/[^\d.]/g, "");
|
|
3946
3946
|
const le = $.indexOf(".");
|
|
3947
|
-
return le !== -1 && ($ = $.slice(0, le + 1) + $.slice(le + 1).replace(/\./g, "")), (
|
|
3947
|
+
return le !== -1 && ($ = $.slice(0, le + 1) + $.slice(le + 1).replace(/\./g, "")), (j ? "-" : "") + $;
|
|
3948
3948
|
}, v = (k) => {
|
|
3949
3949
|
const $ = o.value;
|
|
3950
3950
|
if ($ === null) return k;
|
|
3951
3951
|
if (k === "" || k === null || k === void 0) return "";
|
|
3952
|
-
const
|
|
3953
|
-
if (
|
|
3954
|
-
const le =
|
|
3955
|
-
let Te = le ?
|
|
3952
|
+
const j = String(k).trim();
|
|
3953
|
+
if (j === "") return "";
|
|
3954
|
+
const le = j.startsWith("-");
|
|
3955
|
+
let Te = le ? j.slice(1) : j;
|
|
3956
3956
|
const D = Te.indexOf(".");
|
|
3957
3957
|
if (D === -1) return k;
|
|
3958
3958
|
const fe = Te.slice(0, D), me = Te.slice(D + 1);
|
|
@@ -3960,7 +3960,7 @@ const Rs = () => (Xn || (Xn = Zi({
|
|
|
3960
3960
|
}, g = (k) => {
|
|
3961
3961
|
let $ = k;
|
|
3962
3962
|
return l.value && ($ = m($)), r.nonNegative && ($ = s($)), o.value !== null && ($ = v($)), $;
|
|
3963
|
-
}, E =
|
|
3963
|
+
}, E = G(
|
|
3964
3964
|
r.type === "number" ? g(r.modelValue) : r.modelValue
|
|
3965
3965
|
);
|
|
3966
3966
|
he(
|
|
@@ -3969,7 +3969,7 @@ const Rs = () => (Xn || (Xn = Zi({
|
|
|
3969
3969
|
E.value = r.type === "number" ? g(k) : k, Ve(() => ie());
|
|
3970
3970
|
}
|
|
3971
3971
|
);
|
|
3972
|
-
const T =
|
|
3972
|
+
const T = G(), L = G(), d = G(0), _ = G(!1), O = G(!1);
|
|
3973
3973
|
let h = null, S = null, N = null;
|
|
3974
3974
|
const b = async () => {
|
|
3975
3975
|
await Ve(), T.value?.focus();
|
|
@@ -3983,7 +3983,7 @@ const Rs = () => (Xn || (Xn = Zi({
|
|
|
3983
3983
|
a("change", E.value);
|
|
3984
3984
|
}, X = (k) => {
|
|
3985
3985
|
_.value = !0, a("focus", k);
|
|
3986
|
-
},
|
|
3986
|
+
}, z = (k) => {
|
|
3987
3987
|
_.value = !1, a("blur", k);
|
|
3988
3988
|
}, q = I(() => r.clearable && !r.disabled && !!E.value && _.value), re = () => {
|
|
3989
3989
|
E.value = "", a("update:modelValue", ""), a("clear"), a("input", ""), a("change", ""), Ve(() => ie());
|
|
@@ -3998,26 +3998,26 @@ const Rs = () => (Xn || (Xn = Zi({
|
|
|
3998
3998
|
O.value = !1;
|
|
3999
3999
|
return;
|
|
4000
4000
|
}
|
|
4001
|
-
const
|
|
4001
|
+
const j = k;
|
|
4002
4002
|
if (!String(E.value)) {
|
|
4003
4003
|
O.value = !1;
|
|
4004
4004
|
return;
|
|
4005
4005
|
}
|
|
4006
|
-
const le = window.getComputedStyle(
|
|
4007
|
-
O.value =
|
|
4006
|
+
const le = window.getComputedStyle(j), Te = parseFloat(le.paddingBottom) || 0, D = $.getBoundingClientRect().top - j.getBoundingClientRect().top;
|
|
4007
|
+
O.value = j.scrollHeight - Te > j.scrollTop + D + 0.5;
|
|
4008
4008
|
});
|
|
4009
4009
|
}, ke = () => {
|
|
4010
4010
|
ie();
|
|
4011
4011
|
}, ae = () => {
|
|
4012
4012
|
h && cancelAnimationFrame(h), h = requestAnimationFrame(() => {
|
|
4013
4013
|
if (!T.value || T.value.tagName !== "INPUT") return;
|
|
4014
|
-
const k = T.value, $ = k.value,
|
|
4015
|
-
|
|
4014
|
+
const k = T.value, $ = k.value, j = document.createElement("span");
|
|
4015
|
+
j.style.position = "absolute", j.style.visibility = "hidden", j.style.whiteSpace = "pre", j.style.font = window.getComputedStyle(k).font, j.style.letterSpacing = window.getComputedStyle(k).letterSpacing, j.textContent = $ || " ", document.body.appendChild(j), d.value = j.getBoundingClientRect().width, document.body.removeChild(j);
|
|
4016
4016
|
});
|
|
4017
|
-
},
|
|
4017
|
+
}, H = I(() => {
|
|
4018
4018
|
const k = {};
|
|
4019
4019
|
return d.value > 0 && (k.position = "absolute", k.left = `${d.value + 16}px`), k;
|
|
4020
|
-
}),
|
|
4020
|
+
}), Y = async () => {
|
|
4021
4021
|
try {
|
|
4022
4022
|
E.value = await navigator.clipboard.readText(), a("update:modelValue", E.value), await Ve(), ie();
|
|
4023
4023
|
} catch (k) {
|
|
@@ -4034,7 +4034,7 @@ const Rs = () => (Xn || (Xn = Zi({
|
|
|
4034
4034
|
}), _r(() => {
|
|
4035
4035
|
S && cancelAnimationFrame(S), N?.disconnect();
|
|
4036
4036
|
});
|
|
4037
|
-
const W = I(() => r.type === "number" && r.nonNegative ? 0 : void 0),
|
|
4037
|
+
const W = I(() => r.type === "number" && r.nonNegative ? 0 : void 0), K = (k) => k === "." || k === "," || k === "," || k === "。" || k === "." || k === "Decimal", se = (k) => {
|
|
4038
4038
|
if (r.type !== "number" || k.isComposing) return;
|
|
4039
4039
|
const $ = o.value;
|
|
4040
4040
|
if ((r.nonNegative || $ !== null) && (k.key === "e" || k.key === "E")) {
|
|
@@ -4045,17 +4045,17 @@ const Rs = () => (Xn || (Xn = Zi({
|
|
|
4045
4045
|
k.preventDefault();
|
|
4046
4046
|
return;
|
|
4047
4047
|
}
|
|
4048
|
-
if ($ === 0 &&
|
|
4048
|
+
if ($ === 0 && K(k.key)) {
|
|
4049
4049
|
k.preventDefault();
|
|
4050
4050
|
return;
|
|
4051
4051
|
}
|
|
4052
|
-
if ($ !== null && $ > 0 &&
|
|
4053
|
-
const
|
|
4054
|
-
p(
|
|
4052
|
+
if ($ !== null && $ > 0 && K(k.key)) {
|
|
4053
|
+
const j = k.target;
|
|
4054
|
+
p(j.value).includes(".") && k.preventDefault();
|
|
4055
4055
|
return;
|
|
4056
4056
|
}
|
|
4057
4057
|
if ($ !== null && $ > 0 && k.key !== "." && /^\d$/.test(k.key)) {
|
|
4058
|
-
const
|
|
4058
|
+
const j = k.target, le = p(j.value), Te = j.selectionStart, D = j.selectionEnd;
|
|
4059
4059
|
if (Te === null || D === null) return;
|
|
4060
4060
|
const fe = le.slice(0, Te) + k.key + le.slice(D), me = fe.indexOf(".");
|
|
4061
4061
|
me !== -1 && fe.slice(me + 1).replace(/\D/g, "").length > $ && k.preventDefault();
|
|
@@ -4074,15 +4074,15 @@ const Rs = () => (Xn || (Xn = Zi({
|
|
|
4074
4074
|
}]),
|
|
4075
4075
|
style: ue([{ width: e.width }, e.inputStyle])
|
|
4076
4076
|
}, [
|
|
4077
|
-
|
|
4077
|
+
F("div", {
|
|
4078
4078
|
class: ne(["cregis-input__wrapper", { "is-focus": _.value }])
|
|
4079
4079
|
}, [
|
|
4080
4080
|
k.$slots.prefix ? (C(), A("span", vc, [
|
|
4081
4081
|
_e(k.$slots, "prefix")
|
|
4082
4082
|
])) : J("", !0),
|
|
4083
|
-
Wt(
|
|
4083
|
+
Wt(F("input", pt({
|
|
4084
4084
|
class: "cregis-input__inner",
|
|
4085
|
-
"onUpdate:modelValue": $[0] || ($[0] = (
|
|
4085
|
+
"onUpdate:modelValue": $[0] || ($[0] = (j) => E.value = j),
|
|
4086
4086
|
ref_key: "inputRef",
|
|
4087
4087
|
ref: T,
|
|
4088
4088
|
type: i.value,
|
|
@@ -4095,14 +4095,14 @@ const Rs = () => (Xn || (Xn = Zi({
|
|
|
4095
4095
|
onInput: R,
|
|
4096
4096
|
onChange: U,
|
|
4097
4097
|
onFocus: X,
|
|
4098
|
-
onBlur:
|
|
4098
|
+
onBlur: z,
|
|
4099
4099
|
onKeydown: se
|
|
4100
4100
|
}), null, 16, gc), [
|
|
4101
4101
|
[io, E.value]
|
|
4102
4102
|
]),
|
|
4103
4103
|
e.unit && E.value ? (C(), A("span", {
|
|
4104
4104
|
key: 1,
|
|
4105
|
-
style: ue(
|
|
4105
|
+
style: ue(H.value),
|
|
4106
4106
|
class: "cregis-input__unit"
|
|
4107
4107
|
}, Z(e.unit), 5)) : J("", !0),
|
|
4108
4108
|
k.$slots.suffix || q.value ? (C(), A("span", hc, [
|
|
@@ -4122,18 +4122,18 @@ const Rs = () => (Xn || (Xn = Zi({
|
|
|
4122
4122
|
class: ne(["cregis-textarea", { "is-disabled": e.disabled }]),
|
|
4123
4123
|
style: ue([{ width: e.width }, e.inputStyle])
|
|
4124
4124
|
}, [
|
|
4125
|
-
Wt(
|
|
4125
|
+
Wt(F("textarea", pt({ class: "cregis-textarea__wrapper" }, k.$attrs, {
|
|
4126
4126
|
spellcheck: "false",
|
|
4127
4127
|
ref_key: "inputRef",
|
|
4128
4128
|
ref: T,
|
|
4129
4129
|
disabled: e.disabled,
|
|
4130
4130
|
placeholder: e.placeholder || te($e)("input.placeholder"),
|
|
4131
4131
|
rows: e.rows,
|
|
4132
|
-
"onUpdate:modelValue": $[2] || ($[2] = (
|
|
4132
|
+
"onUpdate:modelValue": $[2] || ($[2] = (j) => E.value = j),
|
|
4133
4133
|
onInput: R,
|
|
4134
4134
|
onChange: U,
|
|
4135
4135
|
onFocus: X,
|
|
4136
|
-
onBlur:
|
|
4136
|
+
onBlur: z,
|
|
4137
4137
|
onScroll: ke
|
|
4138
4138
|
}), null, 16, _c), [
|
|
4139
4139
|
[co, E.value]
|
|
@@ -4148,7 +4148,7 @@ const Rs = () => (Xn || (Xn = Zi({
|
|
|
4148
4148
|
class: "cregis-textarea__button",
|
|
4149
4149
|
link: "",
|
|
4150
4150
|
size: "small",
|
|
4151
|
-
onClick:
|
|
4151
|
+
onClick: Y
|
|
4152
4152
|
}, {
|
|
4153
4153
|
default: Ae(() => [
|
|
4154
4154
|
Be(Z(e.pasteText), 1)
|
|
@@ -4189,16 +4189,16 @@ const Rs = () => (Xn || (Xn = Zi({
|
|
|
4189
4189
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4190
4190
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
4191
4191
|
}, [
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4192
|
+
F("g", yc, [
|
|
4193
|
+
F("g", Ec, [
|
|
4194
|
+
F("g", Tc, [
|
|
4195
|
+
F("rect", {
|
|
4196
4196
|
x: "0",
|
|
4197
4197
|
y: "0",
|
|
4198
4198
|
width: e.size,
|
|
4199
4199
|
height: e.size
|
|
4200
4200
|
}, null, 8, Oc),
|
|
4201
|
-
n[0] || (n[0] =
|
|
4201
|
+
n[0] || (n[0] = F("path", {
|
|
4202
4202
|
d: "M6.67713976,13.5709642 C7.12567714,13.5709642 7.468039,13.3943662 7.70422535,13.0411701 L13.7562297,3.77789816 C13.8407367,3.65005417 13.9024919,3.52546046 13.9414951,3.40411701 C13.9804984,3.28277356 14,3.16468039 14,3.04983749 C14,2.74647887 13.8976165,2.49566631 13.6928494,2.29739978 C13.4880823,2.09913326 13.2307692,2 12.9209101,2 C12.7063922,2 12.5265439,2.04225352 12.3813651,2.12676056 C12.2361863,2.21126761 12.0975081,2.35536295 11.9653304,2.55904659 L6.65113759,10.9512459 L3.95016251,7.60346696 C3.71830986,7.32177681 3.43011918,7.18093174 3.08559047,7.18093174 C2.77139762,7.18093174 2.51191766,7.28169014 2.3071506,7.48320693 C2.10238353,7.68472373 2,7.93824485 2,8.24377031 C2,8.38028169 2.02329361,8.51083424 2.06988082,8.63542795 C2.11646804,8.76002167 2.19826652,8.88949079 2.31527627,9.02383532 L5.67280607,13.0899242 C5.94149512,13.4106176 6.27627302,13.5709642 6.67713976,13.5709642 Z",
|
|
4203
4203
|
fill: "currentColor",
|
|
4204
4204
|
"fill-rule": "nonzero"
|
|
@@ -4235,7 +4235,7 @@ const Rs = () => (Xn || (Xn = Zi({
|
|
|
4235
4235
|
class: "cregis-checkbox__wrapper",
|
|
4236
4236
|
onClick: s
|
|
4237
4237
|
}, [
|
|
4238
|
-
|
|
4238
|
+
F("div", {
|
|
4239
4239
|
class: ne(["cregis-checkbox", {
|
|
4240
4240
|
"is-disabled": e.disabled,
|
|
4241
4241
|
"is-checked": a.value,
|
|
@@ -4276,13 +4276,13 @@ const Rs = () => (Xn || (Xn = Zi({
|
|
|
4276
4276
|
class: "cregis-radio__wrapper",
|
|
4277
4277
|
onClick: s
|
|
4278
4278
|
}, [
|
|
4279
|
-
|
|
4279
|
+
F("div", {
|
|
4280
4280
|
class: ne(["cregis-radio", {
|
|
4281
4281
|
"is-disabled": e.disabled,
|
|
4282
4282
|
"is-checked": a.value
|
|
4283
4283
|
}])
|
|
4284
4284
|
}, [...l[0] || (l[0] = [
|
|
4285
|
-
|
|
4285
|
+
F("div", { class: "cregis-radio__inner" }, null, -1)
|
|
4286
4286
|
])], 2),
|
|
4287
4287
|
o.$slots.default || e.label ? (C(), A("span", {
|
|
4288
4288
|
key: 0,
|
|
@@ -4372,9 +4372,9 @@ const Rs = () => (Xn || (Xn = Zi({
|
|
|
4372
4372
|
style: ue(s.value),
|
|
4373
4373
|
onClick: (f) => o.$emit("update:modelValue", i.name)
|
|
4374
4374
|
}, [
|
|
4375
|
-
|
|
4375
|
+
F("span", null, Z(i.label), 1)
|
|
4376
4376
|
], 14, Lc))), 128)),
|
|
4377
|
-
|
|
4377
|
+
F("div", wc, [
|
|
4378
4378
|
_e(o.$slots, "default")
|
|
4379
4379
|
])
|
|
4380
4380
|
], 2));
|
|
@@ -4419,7 +4419,7 @@ const Mr = () => (Cn = Cn + 1, Cn), Hf = (e) => {
|
|
|
4419
4419
|
onVanish: {}
|
|
4420
4420
|
},
|
|
4421
4421
|
setup(e) {
|
|
4422
|
-
const t = e, n =
|
|
4422
|
+
const t = e, n = G(!1);
|
|
4423
4423
|
let r;
|
|
4424
4424
|
const a = I(() => ({
|
|
4425
4425
|
zIndex: Mr()
|
|
@@ -4450,13 +4450,13 @@ const Mr = () => (Cn = Cn + 1, Cn), Hf = (e) => {
|
|
|
4450
4450
|
role: "status",
|
|
4451
4451
|
"aria-live": "polite"
|
|
4452
4452
|
}, Z(e.message), 3)) : n.value && e.type === "success" ? (C(), A("div", Cc, [
|
|
4453
|
-
|
|
4453
|
+
F("div", Sc, [
|
|
4454
4454
|
ge(te(Xa), {
|
|
4455
4455
|
size: "16px",
|
|
4456
4456
|
color: "var(--material-same-white-primary)"
|
|
4457
4457
|
})
|
|
4458
4458
|
]),
|
|
4459
|
-
|
|
4459
|
+
F("p", null, Z(e.message), 1)
|
|
4460
4460
|
])) : J("", !0)
|
|
4461
4461
|
]),
|
|
4462
4462
|
_: 1
|
|
@@ -4505,7 +4505,7 @@ const Ac = { class: "cregis-notification__wrapper" }, xc = {
|
|
|
4505
4505
|
onVanish: {}
|
|
4506
4506
|
},
|
|
4507
4507
|
setup(e) {
|
|
4508
|
-
const t = e, n =
|
|
4508
|
+
const t = e, n = G(!1), r = () => {
|
|
4509
4509
|
n.value = !1;
|
|
4510
4510
|
}, a = () => {
|
|
4511
4511
|
t.onVanish?.();
|
|
@@ -4524,9 +4524,9 @@ const Ac = { class: "cregis-notification__wrapper" }, xc = {
|
|
|
4524
4524
|
size: "18px",
|
|
4525
4525
|
color: "var(--material-danger-primary)"
|
|
4526
4526
|
})),
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4527
|
+
F("div", Dc, [
|
|
4528
|
+
F("div", Pc, Z(e.title), 1),
|
|
4529
|
+
F("div", Rc, Z(e.message), 1)
|
|
4530
4530
|
]),
|
|
4531
4531
|
ge(Ut, {
|
|
4532
4532
|
type: "sameWhite",
|
|
@@ -4583,15 +4583,15 @@ const Mc = { class: "cregis-progress__wrapper" }, Vc = { class: "cregis-progress
|
|
|
4583
4583
|
"--cregis-progress-tip-left": `${n.value}%`
|
|
4584
4584
|
})), s = I(() => `${Math.round(t.percentage)}%`);
|
|
4585
4585
|
return (o, l) => (C(), A("div", Mc, [
|
|
4586
|
-
|
|
4586
|
+
F("div", Vc, [
|
|
4587
4587
|
e.showPercentage && !t.loading ? (C(), A("div", {
|
|
4588
4588
|
key: 0,
|
|
4589
4589
|
class: "cregis-progress__tip",
|
|
4590
4590
|
style: ue(a.value),
|
|
4591
4591
|
"aria-live": "polite"
|
|
4592
4592
|
}, Z(s.value), 5)) : J("", !0),
|
|
4593
|
-
|
|
4594
|
-
|
|
4593
|
+
F("div", Fc, [
|
|
4594
|
+
F("div", {
|
|
4595
4595
|
class: "cregis-progress__bar",
|
|
4596
4596
|
style: ue(r.value)
|
|
4597
4597
|
}, null, 4),
|
|
@@ -4871,7 +4871,7 @@ function Pa(e) {
|
|
|
4871
4871
|
g -= X - r.width, g *= i ? 1 : -1;
|
|
4872
4872
|
}
|
|
4873
4873
|
}
|
|
4874
|
-
var
|
|
4874
|
+
var z = Object.assign({
|
|
4875
4875
|
position: l
|
|
4876
4876
|
}, f && cu), q = p === !0 ? uu({
|
|
4877
4877
|
x: g,
|
|
@@ -4882,9 +4882,9 @@ function Pa(e) {
|
|
|
4882
4882
|
};
|
|
4883
4883
|
if (g = q.x, T = q.y, i) {
|
|
4884
4884
|
var re;
|
|
4885
|
-
return Object.assign({},
|
|
4885
|
+
return Object.assign({}, z, (re = {}, re[h] = _ ? "0" : "", re[O] = d ? "0" : "", re.transform = (S.devicePixelRatio || 1) <= 1 ? "translate(" + g + "px, " + T + "px)" : "translate3d(" + g + "px, " + T + "px, 0)", re));
|
|
4886
4886
|
}
|
|
4887
|
-
return Object.assign({},
|
|
4887
|
+
return Object.assign({}, z, (t = {}, t[h] = _ ? T + "px" : "", t[O] = d ? g + "px" : "", t.transform = "", t));
|
|
4888
4888
|
}
|
|
4889
4889
|
function du(e) {
|
|
4890
4890
|
var t = e.state, n = e.options, r = n.gpuAcceleration, a = r === void 0 ? !0 : r, s = n.adaptive, o = s === void 0 ? !0 : s, l = n.roundOffsets, i = l === void 0 ? !0 : l, f = {
|
|
@@ -5093,9 +5093,9 @@ function vn(e, t) {
|
|
|
5093
5093
|
bottom: U.bottom - S.bottom + d.bottom,
|
|
5094
5094
|
left: S.left - U.left + d.left,
|
|
5095
5095
|
right: U.right - S.right + d.right
|
|
5096
|
-
},
|
|
5097
|
-
if (v === en &&
|
|
5098
|
-
var q =
|
|
5096
|
+
}, z = e.modifiersData.offset;
|
|
5097
|
+
if (v === en && z) {
|
|
5098
|
+
var q = z[a];
|
|
5099
5099
|
Object.keys(X).forEach(function(re) {
|
|
5100
5100
|
var ie = [nt, tt].indexOf(re) >= 0 ? 1 : -1, ke = [He, tt].indexOf(re) >= 0 ? "y" : "x";
|
|
5101
5101
|
X[re] += q[ke] * ie;
|
|
@@ -5132,8 +5132,8 @@ function Ou(e) {
|
|
|
5132
5132
|
function Nu(e) {
|
|
5133
5133
|
var t = e.state, n = e.options, r = e.name;
|
|
5134
5134
|
if (!t.modifiersData[r]._skip) {
|
|
5135
|
-
for (var a = n.mainAxis, s = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !0 : o, i = n.fallbackPlacements, f = n.padding, p = n.boundary, m = n.rootBoundary, v = n.altBoundary, g = n.flipVariations, E = g === void 0 ? !0 : g, T = n.allowedAutoPlacements, L = t.options.placement, d = it(L), _ = d === L, O = i || (_ || !E ? [Sn(L)] : Ou(L)), h = [L].concat(O).reduce(function(
|
|
5136
|
-
return
|
|
5135
|
+
for (var a = n.mainAxis, s = a === void 0 ? !0 : a, o = n.altAxis, l = o === void 0 ? !0 : o, i = n.fallbackPlacements, f = n.padding, p = n.boundary, m = n.rootBoundary, v = n.altBoundary, g = n.flipVariations, E = g === void 0 ? !0 : g, T = n.allowedAutoPlacements, L = t.options.placement, d = it(L), _ = d === L, O = i || (_ || !E ? [Sn(L)] : Ou(L)), h = [L].concat(O).reduce(function(j, le) {
|
|
5136
|
+
return j.concat(it(le) === Vr ? Tu(t, {
|
|
5137
5137
|
placement: le,
|
|
5138
5138
|
boundary: p,
|
|
5139
5139
|
rootBoundary: m,
|
|
@@ -5142,25 +5142,25 @@ function Nu(e) {
|
|
|
5142
5142
|
allowedAutoPlacements: T
|
|
5143
5143
|
}) : le);
|
|
5144
5144
|
}, []), S = t.rects.reference, N = t.rects.popper, b = /* @__PURE__ */ new Map(), R = !0, U = h[0], X = 0; X < h.length; X++) {
|
|
5145
|
-
var
|
|
5146
|
-
placement:
|
|
5145
|
+
var z = h[X], q = it(z), re = Qt(z) === Kt, ie = [He, tt].indexOf(q) >= 0, ke = ie ? "width" : "height", ae = vn(t, {
|
|
5146
|
+
placement: z,
|
|
5147
5147
|
boundary: p,
|
|
5148
5148
|
rootBoundary: m,
|
|
5149
5149
|
altBoundary: v,
|
|
5150
5150
|
padding: f
|
|
5151
|
-
}),
|
|
5152
|
-
S[ke] > N[ke] && (
|
|
5153
|
-
var
|
|
5154
|
-
if (s && W.push(ae[q] <= 0), l && W.push(ae[
|
|
5155
|
-
return
|
|
5151
|
+
}), H = ie ? re ? nt : ze : re ? tt : He;
|
|
5152
|
+
S[ke] > N[ke] && (H = Sn(H));
|
|
5153
|
+
var Y = Sn(H), W = [];
|
|
5154
|
+
if (s && W.push(ae[q] <= 0), l && W.push(ae[H] <= 0, ae[Y] <= 0), W.every(function(j) {
|
|
5155
|
+
return j;
|
|
5156
5156
|
})) {
|
|
5157
|
-
U =
|
|
5157
|
+
U = z, R = !1;
|
|
5158
5158
|
break;
|
|
5159
5159
|
}
|
|
5160
|
-
b.set(
|
|
5160
|
+
b.set(z, W);
|
|
5161
5161
|
}
|
|
5162
5162
|
if (R)
|
|
5163
|
-
for (var
|
|
5163
|
+
for (var K = E ? 3 : 1, se = function(le) {
|
|
5164
5164
|
var Te = h.find(function(D) {
|
|
5165
5165
|
var fe = b.get(D);
|
|
5166
5166
|
if (fe)
|
|
@@ -5170,7 +5170,7 @@ function Nu(e) {
|
|
|
5170
5170
|
});
|
|
5171
5171
|
if (Te)
|
|
5172
5172
|
return U = Te, "break";
|
|
5173
|
-
}, k =
|
|
5173
|
+
}, k = K; k > 0; k--) {
|
|
5174
5174
|
var $ = se(k);
|
|
5175
5175
|
if ($ === "break") break;
|
|
5176
5176
|
}
|
|
@@ -5283,20 +5283,20 @@ function Pu(e) {
|
|
|
5283
5283
|
} : Object.assign({
|
|
5284
5284
|
mainAxis: 0,
|
|
5285
5285
|
altAxis: 0
|
|
5286
|
-
}, U),
|
|
5286
|
+
}, U), z = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, q = {
|
|
5287
5287
|
x: 0,
|
|
5288
5288
|
y: 0
|
|
5289
5289
|
};
|
|
5290
5290
|
if (N) {
|
|
5291
5291
|
if (s) {
|
|
5292
|
-
var re, ie = h === "y" ? He : ze, ke = h === "y" ? tt : nt, ae = h === "y" ? "height" : "width",
|
|
5292
|
+
var re, ie = h === "y" ? He : ze, ke = h === "y" ? tt : nt, ae = h === "y" ? "height" : "width", H = N[h], Y = H + L[ie], W = H - L[ke], K = g ? -R[ae] / 2 : 0, se = _ === Kt ? b[ae] : R[ae], k = _ === Kt ? -R[ae] : -b[ae], $ = t.elements.arrow, j = g && $ ? Ur($) : {
|
|
5293
5293
|
width: 0,
|
|
5294
5294
|
height: 0
|
|
5295
|
-
}, le = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Hs(), Te = le[ie], D = le[ke], fe = an(0, b[ae],
|
|
5296
|
-
N[h] = We, q[h] = We -
|
|
5295
|
+
}, le = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Hs(), Te = le[ie], D = le[ke], fe = an(0, b[ae], j[ae]), me = O ? b[ae] / 2 - K - fe - Te - X.mainAxis : se - fe - Te - X.mainAxis, Pe = O ? -b[ae] / 2 + K + fe + D + X.mainAxis : k + fe + D + X.mainAxis, rt = t.elements.arrow && bn(t.elements.arrow), M = rt ? h === "y" ? rt.clientTop || 0 : rt.clientLeft || 0 : 0, B = (re = z?.[h]) != null ? re : 0, ye = H + me - B - M, ve = H + Pe - B, We = an(g ? In(Y, ye) : Y, H, g ? St(W, ve) : W);
|
|
5296
|
+
N[h] = We, q[h] = We - H;
|
|
5297
5297
|
}
|
|
5298
5298
|
if (l) {
|
|
5299
|
-
var ht, c = h === "x" ? He : ze, u = h === "x" ? tt : nt, y = N[S], P = S === "y" ? "height" : "width", ee = y + L[c], Le = y - L[u], oe = [He, ze].indexOf(d) !== -1, w = (ht =
|
|
5299
|
+
var ht, c = h === "x" ? He : ze, u = h === "x" ? tt : nt, y = N[S], P = S === "y" ? "height" : "width", ee = y + L[c], Le = y - L[u], oe = [He, ze].indexOf(d) !== -1, w = (ht = z?.[S]) != null ? ht : 0, x = oe ? ee : y - b[P] - R[P] - w + X.altAxis, ce = oe ? y + b[P] + R[P] - w - X.altAxis : Le, Ce = g && oe ? au(x, y, ce) : an(g ? x : ee, y, g ? ce : Le);
|
|
5300
5300
|
N[S] = Ce, q[S] = Ce - y;
|
|
5301
5301
|
}
|
|
5302
5302
|
t.modifiersData[r] = q;
|
|
@@ -5682,7 +5682,7 @@ const gr = () => {
|
|
|
5682
5682
|
return { overflowX: r, overflowY: a, overflow: t === "vertical" ? a : t === "both" ? r || a : r };
|
|
5683
5683
|
};
|
|
5684
5684
|
function Gf(e, t = {}) {
|
|
5685
|
-
const n =
|
|
5685
|
+
const n = G(!1), r = G(!1), a = G(!1);
|
|
5686
5686
|
let s = 0, o = !1, l, i;
|
|
5687
5687
|
const f = (R) => {
|
|
5688
5688
|
n.value = R.overflowX, r.value = R.overflowY, a.value = R.overflow;
|
|
@@ -5776,24 +5776,29 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
5776
5776
|
},
|
|
5777
5777
|
emits: ["visible-change", "click-outside", "scroll"],
|
|
5778
5778
|
setup(e, { expose: t, emit: n }) {
|
|
5779
|
-
const r =
|
|
5779
|
+
const r = G(!1), a = e, s = I(() => a.preserveContentMount || r.value), o = I(() => !a.preserveContentMount || r.value), l = n, i = G(null), f = G(), p = G();
|
|
5780
5780
|
let m = null, v = Vt({}), g = Vt({}), E = Vt({});
|
|
5781
|
-
const T = (
|
|
5782
|
-
const
|
|
5783
|
-
return
|
|
5781
|
+
const T = (M) => typeof M == "number" ? `${M}px` : M, L = I(() => {
|
|
5782
|
+
const M = a.maxPopperHeight;
|
|
5783
|
+
return M != null && M !== "";
|
|
5784
5784
|
}), d = I(() => {
|
|
5785
|
-
const
|
|
5786
|
-
if (
|
|
5785
|
+
const M = {}, B = a.popperWidth;
|
|
5786
|
+
if (B != null && B !== "" && (M.width = T(B)), L.value) {
|
|
5787
5787
|
const ye = a.maxPopperHeight;
|
|
5788
|
-
|
|
5788
|
+
M.maxHeight = T(ye), M.overflowY = "auto", M.scrollbarWidth = "none", M.msOverflowStyle = "none";
|
|
5789
5789
|
}
|
|
5790
|
-
return
|
|
5791
|
-
}), _ = () =>
|
|
5792
|
-
|
|
5790
|
+
return M.padding = T(a.padding), M;
|
|
5791
|
+
}), _ = () => {
|
|
5792
|
+
const M = f.value;
|
|
5793
|
+
if (!M) return null;
|
|
5794
|
+
const B = M.firstElementChild;
|
|
5795
|
+
return B instanceof HTMLElement ? B : M;
|
|
5796
|
+
}, O = (M, B) => {
|
|
5797
|
+
if (!B?.length) return M;
|
|
5793
5798
|
const ye = /* @__PURE__ */ new Map();
|
|
5794
|
-
for (const ve of
|
|
5799
|
+
for (const ve of M)
|
|
5795
5800
|
ve && "name" in ve && ve.name && ye.set(ve.name, { ...ve });
|
|
5796
|
-
for (const ve of
|
|
5801
|
+
for (const ve of B) {
|
|
5797
5802
|
if (!ve || !("name" in ve) || !ve.name) continue;
|
|
5798
5803
|
const We = ye.get(ve.name);
|
|
5799
5804
|
ye.set(
|
|
@@ -5810,7 +5815,7 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
5810
5815
|
}
|
|
5811
5816
|
return Array.from(ye.values());
|
|
5812
5817
|
}, h = I(() => {
|
|
5813
|
-
const
|
|
5818
|
+
const M = {
|
|
5814
5819
|
placement: a.placement,
|
|
5815
5820
|
strategy: "fixed",
|
|
5816
5821
|
modifiers: [
|
|
@@ -5827,12 +5832,12 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
5827
5832
|
options: { boundary: "viewport", padding: 8 }
|
|
5828
5833
|
}
|
|
5829
5834
|
]
|
|
5830
|
-
},
|
|
5831
|
-
return
|
|
5832
|
-
...
|
|
5833
|
-
...
|
|
5834
|
-
modifiers: O(
|
|
5835
|
-
} :
|
|
5835
|
+
}, B = a.popoverOptions;
|
|
5836
|
+
return B ? {
|
|
5837
|
+
...M,
|
|
5838
|
+
...B,
|
|
5839
|
+
modifiers: O(M.modifiers ?? [], B.modifiers)
|
|
5840
|
+
} : M;
|
|
5836
5841
|
}), S = [
|
|
5837
5842
|
"position",
|
|
5838
5843
|
"top",
|
|
@@ -5843,93 +5848,95 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
5843
5848
|
"transform",
|
|
5844
5849
|
"will-change",
|
|
5845
5850
|
"margin"
|
|
5846
|
-
], N = (
|
|
5847
|
-
const
|
|
5851
|
+
], N = (M) => {
|
|
5852
|
+
const B = {};
|
|
5848
5853
|
for (const ye of S) {
|
|
5849
|
-
const ve =
|
|
5850
|
-
ve && (
|
|
5854
|
+
const ve = M.style.getPropertyValue(ye);
|
|
5855
|
+
ve && (B[ye] = ve);
|
|
5851
5856
|
}
|
|
5852
|
-
return
|
|
5853
|
-
}, b = (
|
|
5854
|
-
for (const [ye, ve] of Object.entries(
|
|
5855
|
-
|
|
5856
|
-
}, R = (
|
|
5857
|
-
if (
|
|
5858
|
-
for (const
|
|
5859
|
-
|
|
5860
|
-
for (const
|
|
5861
|
-
|
|
5857
|
+
return B;
|
|
5858
|
+
}, b = (M, B) => {
|
|
5859
|
+
for (const [ye, ve] of Object.entries(B))
|
|
5860
|
+
M.style.setProperty(ye, ve);
|
|
5861
|
+
}, R = (M) => {
|
|
5862
|
+
if (M) {
|
|
5863
|
+
for (const B of S)
|
|
5864
|
+
M.style.removeProperty(B);
|
|
5865
|
+
for (const B of [...M.attributes])
|
|
5866
|
+
B.name.startsWith("data-popper-") && M.removeAttribute(B.name);
|
|
5862
5867
|
}
|
|
5863
5868
|
}, U = () => {
|
|
5864
5869
|
a.disabled || (r.value = !0, l("visible-change", !0));
|
|
5865
5870
|
}, X = () => {
|
|
5866
5871
|
r.value = !1, l("visible-change", !1);
|
|
5867
|
-
},
|
|
5868
|
-
a.disabled || (q.cancel(),
|
|
5872
|
+
}, z = vr(U, a.openDelay), q = vr(X, a.closeDelay), re = () => {
|
|
5873
|
+
a.disabled || (q.cancel(), z());
|
|
5869
5874
|
}, ie = () => {
|
|
5870
|
-
|
|
5875
|
+
z.cancel(), q();
|
|
5871
5876
|
};
|
|
5872
|
-
Qs(i, (
|
|
5873
|
-
const
|
|
5874
|
-
|
|
5877
|
+
Qs(i, (M) => {
|
|
5878
|
+
const B = M.target;
|
|
5879
|
+
B instanceof Node && p.value?.contains(B) || (a.trigger === "click" && r.value && !a.manual && ie(), r.value && l("click-outside", !0));
|
|
5875
5880
|
});
|
|
5876
5881
|
const ke = () => {
|
|
5877
5882
|
a.disabled || (r.value ? ie() : re());
|
|
5878
5883
|
}, ae = () => {
|
|
5879
5884
|
E = {}, a.trigger === "hover" ? (g.mouseenter = re, v.mouseleave = ie, E.mouseenter = re, E.mouseleave = ie) : a.trigger === "click" && (g.click = ke);
|
|
5880
5885
|
};
|
|
5881
|
-
let
|
|
5882
|
-
const
|
|
5883
|
-
let W = null,
|
|
5886
|
+
let H = 0;
|
|
5887
|
+
const Y = [];
|
|
5888
|
+
let W = null, K = null;
|
|
5884
5889
|
const se = () => {
|
|
5885
|
-
for (
|
|
5886
|
-
const
|
|
5887
|
-
|
|
5890
|
+
for (H++; Y.length; ) {
|
|
5891
|
+
const M = Y.pop();
|
|
5892
|
+
M !== void 0 && cancelAnimationFrame(M);
|
|
5888
5893
|
}
|
|
5889
5894
|
}, k = () => {
|
|
5890
|
-
W?.disconnect(),
|
|
5895
|
+
W?.disconnect(), K?.disconnect(), W = null, K = null;
|
|
5891
5896
|
}, $ = () => {
|
|
5892
5897
|
!r.value || !m || m.update();
|
|
5893
|
-
},
|
|
5898
|
+
}, j = () => {
|
|
5894
5899
|
se();
|
|
5895
|
-
const
|
|
5900
|
+
const M = H;
|
|
5896
5901
|
r.value && ($(), Ve(() => {
|
|
5897
|
-
if (
|
|
5902
|
+
if (M !== H || !r.value) return;
|
|
5898
5903
|
$();
|
|
5899
|
-
const
|
|
5900
|
-
if (
|
|
5904
|
+
const B = requestAnimationFrame(() => {
|
|
5905
|
+
if (M !== H || !r.value) return;
|
|
5901
5906
|
const ye = requestAnimationFrame(() => {
|
|
5902
|
-
|
|
5907
|
+
M !== H || !r.value || $();
|
|
5903
5908
|
});
|
|
5904
|
-
|
|
5909
|
+
Y.push(ye);
|
|
5905
5910
|
});
|
|
5906
|
-
|
|
5911
|
+
Y.push(B);
|
|
5907
5912
|
}));
|
|
5908
5913
|
}, le = () => {
|
|
5909
5914
|
if (k(), typeof ResizeObserver > "u") return;
|
|
5910
|
-
const
|
|
5915
|
+
const M = () => {
|
|
5911
5916
|
r.value && $();
|
|
5912
5917
|
};
|
|
5913
|
-
p.value && (W = new ResizeObserver(
|
|
5918
|
+
p.value && (W = new ResizeObserver(M), W.observe(p.value));
|
|
5919
|
+
const B = _();
|
|
5920
|
+
B && (K = new ResizeObserver(M), K.observe(B));
|
|
5914
5921
|
}, Te = () => {
|
|
5915
|
-
const
|
|
5916
|
-
return !
|
|
5917
|
-
}, D = (
|
|
5922
|
+
const M = _(), B = p.value;
|
|
5923
|
+
return !M || !B ? !1 : m ? (m.setOptions(h.value), !0) : (R(B), m = Ks(M, B, h.value), !0);
|
|
5924
|
+
}, D = (M = !1) => {
|
|
5918
5925
|
se(), k();
|
|
5919
|
-
const
|
|
5920
|
-
m?.destroy(), m = null,
|
|
5926
|
+
const B = p.value, ye = M && B ? N(B) : null;
|
|
5927
|
+
m?.destroy(), m = null, B && ye && Object.keys(ye).length && b(B, ye);
|
|
5921
5928
|
}, fe = () => {
|
|
5922
|
-
r.value && (m || Te(),
|
|
5929
|
+
r.value && (m || Te(), j());
|
|
5923
5930
|
};
|
|
5924
5931
|
he(
|
|
5925
5932
|
() => r.value,
|
|
5926
|
-
async (
|
|
5927
|
-
if (
|
|
5933
|
+
async (M) => {
|
|
5934
|
+
if (M) {
|
|
5928
5935
|
if (!Te()) {
|
|
5929
5936
|
if (await Ve(), !r.value) return;
|
|
5930
5937
|
Te();
|
|
5931
5938
|
}
|
|
5932
|
-
|
|
5939
|
+
j(), le();
|
|
5933
5940
|
return;
|
|
5934
5941
|
}
|
|
5935
5942
|
D(!0);
|
|
@@ -5938,23 +5945,23 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
5938
5945
|
), he(
|
|
5939
5946
|
() => [a.popperWidth, a.maxPopperHeight],
|
|
5940
5947
|
() => {
|
|
5941
|
-
r.value &&
|
|
5948
|
+
r.value && j();
|
|
5942
5949
|
},
|
|
5943
5950
|
{ flush: "post" }
|
|
5944
5951
|
), he(
|
|
5945
5952
|
h,
|
|
5946
5953
|
() => {
|
|
5947
|
-
!r.value || !m || (m.setOptions(h.value),
|
|
5954
|
+
!r.value || !m || (m.setOptions(h.value), j());
|
|
5948
5955
|
}
|
|
5949
5956
|
), he(
|
|
5950
5957
|
() => a.manual,
|
|
5951
|
-
(
|
|
5952
|
-
|
|
5958
|
+
(M) => {
|
|
5959
|
+
M ? (g = {}, v = {}, E = {}) : ae();
|
|
5953
5960
|
}
|
|
5954
5961
|
), he(
|
|
5955
5962
|
() => a.trigger,
|
|
5956
|
-
(
|
|
5957
|
-
|
|
5963
|
+
(M, B) => {
|
|
5964
|
+
M !== B && (g = {}, v = {}, E = {}, ae());
|
|
5958
5965
|
}
|
|
5959
5966
|
), he(
|
|
5960
5967
|
() => a.teleported,
|
|
@@ -5963,15 +5970,15 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
5963
5970
|
}
|
|
5964
5971
|
), he(
|
|
5965
5972
|
() => a.disabled,
|
|
5966
|
-
(
|
|
5967
|
-
|
|
5973
|
+
(M) => {
|
|
5974
|
+
M && ie();
|
|
5968
5975
|
}
|
|
5969
5976
|
), yt(() => {
|
|
5970
5977
|
a.manual || ae();
|
|
5971
5978
|
});
|
|
5972
|
-
const me = _d((
|
|
5973
|
-
const
|
|
5974
|
-
l("scroll", { scrollTop:
|
|
5979
|
+
const me = _d((M) => {
|
|
5980
|
+
const B = M.target;
|
|
5981
|
+
l("scroll", { scrollTop: B.scrollTop, scrollLeft: B.scrollLeft });
|
|
5975
5982
|
}, wd), Pe = () => {
|
|
5976
5983
|
$();
|
|
5977
5984
|
}, rt = () => {
|
|
@@ -5984,17 +5991,17 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
5984
5991
|
open: re,
|
|
5985
5992
|
close: ie,
|
|
5986
5993
|
update: fe
|
|
5987
|
-
}), (
|
|
5994
|
+
}), (M, B) => (C(), A("div", pt({
|
|
5988
5995
|
class: "cregis-popover",
|
|
5989
5996
|
ref_key: "popoverRef",
|
|
5990
5997
|
ref: i
|
|
5991
5998
|
}, Hn(te(v), !0)), [
|
|
5992
|
-
|
|
5999
|
+
F("div", pt({
|
|
5993
6000
|
class: ["cregis-popover__trigger", { "cregis-popover__trigger--disabled": e.disabled }],
|
|
5994
6001
|
ref_key: "popoverTriggerRef",
|
|
5995
6002
|
ref: f
|
|
5996
6003
|
}, Hn(te(g), !0)), [
|
|
5997
|
-
_e(
|
|
6004
|
+
_e(M.$slots, "reference")
|
|
5998
6005
|
], 16),
|
|
5999
6006
|
(C(), Se(yr, {
|
|
6000
6007
|
to: "body",
|
|
@@ -6013,10 +6020,10 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6013
6020
|
ref: p,
|
|
6014
6021
|
style: d.value
|
|
6015
6022
|
}, Hn(te(E), !0), {
|
|
6016
|
-
onScroll:
|
|
6023
|
+
onScroll: B[0] || (B[0] = //@ts-ignore
|
|
6017
6024
|
(...ye) => te(me) && te(me)(...ye))
|
|
6018
6025
|
}), [
|
|
6019
|
-
_e(
|
|
6026
|
+
_e(M.$slots, "default")
|
|
6020
6027
|
], 16)), [
|
|
6021
6028
|
[$n, o.value]
|
|
6022
6029
|
]) : J("", !0)
|
|
@@ -6060,7 +6067,7 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6060
6067
|
},
|
|
6061
6068
|
emits: ["update:modelValue", "change", "visible-change", "filter-input", "filter-clear"],
|
|
6062
6069
|
setup(e, { emit: t }) {
|
|
6063
|
-
const n = e, r = t, a =
|
|
6070
|
+
const n = e, r = t, a = G(null), s = G(null), o = G(!1), l = G();
|
|
6064
6071
|
let i = null, f = null;
|
|
6065
6072
|
const p = () => {
|
|
6066
6073
|
f !== null && (clearTimeout(f), f = null);
|
|
@@ -6069,8 +6076,8 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6069
6076
|
const D = s.value;
|
|
6070
6077
|
D && (l.value = D.offsetWidth + 8);
|
|
6071
6078
|
}, g = async (D) => {
|
|
6072
|
-
o.value = D, r("visible-change", D), D && m(n.triggerWidth) && (await Ve(), v(), a.value?.update()), !D && n.filterable && (X.value = "",
|
|
6073
|
-
}, E = (D) => typeof D == "number" ? `n:${D}` : `s:${D}`, T = Vt({}), L = Vt({}), d =
|
|
6079
|
+
o.value = D, r("visible-change", D), D && m(n.triggerWidth) && (await Ve(), v(), a.value?.update()), !D && n.filterable && (X.value = "", z.value = "", p());
|
|
6080
|
+
}, E = (D) => typeof D == "number" ? `n:${D}` : `s:${D}`, T = Vt({}), L = Vt({}), d = G(0), _ = G(null), O = (D, fe, me) => {
|
|
6074
6081
|
const Pe = E(D);
|
|
6075
6082
|
return d.value++, T[Pe] = fe, L[Pe] = me ?? fe, () => {
|
|
6076
6083
|
d.value--, delete T[Pe], delete L[Pe];
|
|
@@ -6108,14 +6115,14 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6108
6115
|
}
|
|
6109
6116
|
_.value = { value: D, label: fe }, r("update:modelValue", D), r("change", D), a.value?.close();
|
|
6110
6117
|
}
|
|
6111
|
-
}, X =
|
|
6118
|
+
}, X = G(""), z = G(""), q = I(() => z.value.trim().toLowerCase()), re = I(() => {
|
|
6112
6119
|
const D = q.value;
|
|
6113
6120
|
return !n.filterable || !D ? !0 : Object.keys(T).some((fe) => (L[fe] ?? T[fe] ?? "").toLowerCase().includes(D));
|
|
6114
6121
|
}), ie = I(
|
|
6115
6122
|
() => n.filterable && !!q.value && !re.value && !h.value
|
|
6116
6123
|
), ke = () => {
|
|
6117
6124
|
n.filterable && (p(), f = setTimeout(() => {
|
|
6118
|
-
|
|
6125
|
+
z.value = X.value.trim(), f = null;
|
|
6119
6126
|
}, n.filterDebounceMs));
|
|
6120
6127
|
};
|
|
6121
6128
|
he(X, () => {
|
|
@@ -6123,7 +6130,7 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6123
6130
|
}), he(
|
|
6124
6131
|
() => n.filterable,
|
|
6125
6132
|
(D) => {
|
|
6126
|
-
D || (X.value = "",
|
|
6133
|
+
D || (X.value = "", z.value = "", p());
|
|
6127
6134
|
}
|
|
6128
6135
|
);
|
|
6129
6136
|
const ae = () => {
|
|
@@ -6145,10 +6152,10 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6145
6152
|
}), st(() => {
|
|
6146
6153
|
p(), i?.disconnect();
|
|
6147
6154
|
});
|
|
6148
|
-
const
|
|
6155
|
+
const H = (D) => {
|
|
6149
6156
|
r("filter-input", String(D ?? ""));
|
|
6150
|
-
},
|
|
6151
|
-
|
|
6157
|
+
}, Y = () => {
|
|
6158
|
+
z.value = "", p(), r("filter-clear");
|
|
6152
6159
|
};
|
|
6153
6160
|
br(Zs, {
|
|
6154
6161
|
modelValue: I(() => n.modelValue),
|
|
@@ -6159,17 +6166,17 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6159
6166
|
registerOption: O,
|
|
6160
6167
|
filterQuery: q
|
|
6161
6168
|
});
|
|
6162
|
-
const W = (D) => typeof D == "number" ? `${D}px` : D,
|
|
6169
|
+
const W = (D) => typeof D == "number" ? `${D}px` : D, K = I(() => {
|
|
6163
6170
|
if (n.popperWidth) return W(n.popperWidth);
|
|
6164
6171
|
const D = n.triggerWidth;
|
|
6165
6172
|
return m(D) ? l.value : typeof D == "number" ? D + 8 : `calc(${D} + 8px)`;
|
|
6166
6173
|
}), se = I(() => {
|
|
6167
|
-
const D =
|
|
6174
|
+
const D = K.value;
|
|
6168
6175
|
if (!(D == null || D === ""))
|
|
6169
6176
|
return typeof D == "number" ? `${D - 12}px` : `calc(${D} - 12px)`;
|
|
6170
6177
|
}), k = I(() => n.align === "center" ? "bottom" : n.align === "left" ? "bottom-start" : "bottom-end"), $ = I(() => ({
|
|
6171
6178
|
width: W(n.triggerWidth)
|
|
6172
|
-
})),
|
|
6179
|
+
})), j = I(() => n.size === "large" ? "20px" : n.size === "medium" ? "14px" : "12px"), le = G(0), Te = (D) => {
|
|
6173
6180
|
le.value = D.scrollTop;
|
|
6174
6181
|
};
|
|
6175
6182
|
return (D, fe) => (C(), A("div", {
|
|
@@ -6179,7 +6186,7 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6179
6186
|
ref_key: "popoverRef",
|
|
6180
6187
|
ref: a,
|
|
6181
6188
|
"preserve-content-mount": "",
|
|
6182
|
-
"popper-width":
|
|
6189
|
+
"popper-width": K.value,
|
|
6183
6190
|
placement: k.value,
|
|
6184
6191
|
disabled: !!e.disabled,
|
|
6185
6192
|
padding: 0,
|
|
@@ -6188,13 +6195,13 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6188
6195
|
onScroll: Te
|
|
6189
6196
|
}, {
|
|
6190
6197
|
reference: Ae(() => [
|
|
6191
|
-
|
|
6198
|
+
F("div", {
|
|
6192
6199
|
ref_key: "triggerRef",
|
|
6193
6200
|
ref: s,
|
|
6194
6201
|
class: ne(["cregis-select__trigger", { [`cregis-select__trigger--${e.size}`]: e.size, [`cregis-select__trigger--${e.type}`]: e.type }]),
|
|
6195
6202
|
style: ue($.value)
|
|
6196
6203
|
}, [
|
|
6197
|
-
|
|
6204
|
+
F("div", {
|
|
6198
6205
|
class: ne(["cregis-select__trigger-label", { "is-multiple": e.multiple }])
|
|
6199
6206
|
}, [
|
|
6200
6207
|
S.value ? _e(D.$slots, "label", {
|
|
@@ -6205,22 +6212,22 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6205
6212
|
placeholder: e.placeholder,
|
|
6206
6213
|
hasSelection: S.value
|
|
6207
6214
|
}, () => [
|
|
6208
|
-
|
|
6215
|
+
F("p", Cd, Z(b.value), 1),
|
|
6209
6216
|
e.multiple ? (C(), A("span", Sd, Z(N.value), 1)) : J("", !0)
|
|
6210
6217
|
]) : (C(), A("p", kd, Z(e.placeholder), 1))
|
|
6211
6218
|
], 2),
|
|
6212
|
-
|
|
6219
|
+
F("span", {
|
|
6213
6220
|
class: ne(["cregis-select__icon", { "is-open": o.value }])
|
|
6214
6221
|
}, [
|
|
6215
6222
|
ge(te(Er), {
|
|
6216
|
-
size:
|
|
6223
|
+
size: j.value,
|
|
6217
6224
|
color: e.disabled ? "var(--text-base-quaternary)" : "var(--material-base-secondary)"
|
|
6218
6225
|
}, null, 8, ["size", "color"])
|
|
6219
6226
|
], 2)
|
|
6220
6227
|
], 6)
|
|
6221
6228
|
]),
|
|
6222
6229
|
default: Ae(() => [
|
|
6223
|
-
|
|
6230
|
+
F("div", {
|
|
6224
6231
|
class: ne(["cregis-select__dropdown", { "is-empty": h.value }])
|
|
6225
6232
|
}, [
|
|
6226
6233
|
h.value ? (C(), A("p", Id, Z(e.noDataText || te($e)("select.noData")), 1)) : J("", !0),
|
|
@@ -6235,8 +6242,8 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6235
6242
|
width: se.value,
|
|
6236
6243
|
size: "small",
|
|
6237
6244
|
clearable: "",
|
|
6238
|
-
onInput:
|
|
6239
|
-
onClear:
|
|
6245
|
+
onInput: H,
|
|
6246
|
+
onClear: Y
|
|
6240
6247
|
}, {
|
|
6241
6248
|
prefix: Ae(() => [
|
|
6242
6249
|
ge(te(qa), { size: "14px" })
|
|
@@ -6245,7 +6252,7 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6245
6252
|
}, 8, ["modelValue", "placeholder", "width"])
|
|
6246
6253
|
], 2)) : J("", !0),
|
|
6247
6254
|
ie.value ? (C(), A("p", Ad, Z(e.noMatchText || te($e)("select.noMatch")), 1)) : J("", !0),
|
|
6248
|
-
|
|
6255
|
+
F("div", xd, [
|
|
6249
6256
|
_e(D.$slots, "default")
|
|
6250
6257
|
])
|
|
6251
6258
|
], 2)
|
|
@@ -6361,7 +6368,7 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6361
6368
|
},
|
|
6362
6369
|
emits: ["update:modelValue", "change", "visible-change", "filter-input", "filter-clear"],
|
|
6363
6370
|
setup(e, { emit: t }) {
|
|
6364
|
-
const n = e, r = t, a =
|
|
6371
|
+
const n = e, r = t, a = G(null), s = G(!1), o = G(null), l = /* @__PURE__ */ new Map(), i = (c, u) => {
|
|
6365
6372
|
u && typeof u == "object" && "close" in u && typeof u.close == "function" ? l.set(c, u) : l.delete(c);
|
|
6366
6373
|
}, f = () => {
|
|
6367
6374
|
l.forEach((c) => c.close()), o.value = null;
|
|
@@ -6375,7 +6382,7 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6375
6382
|
let m = null;
|
|
6376
6383
|
const v = () => {
|
|
6377
6384
|
m !== null && (clearTimeout(m), m = null);
|
|
6378
|
-
}, g =
|
|
6385
|
+
}, g = G(""), E = G(""), T = I(() => E.value.trim().toLowerCase()), L = () => {
|
|
6379
6386
|
n.filterable && (v(), m = setTimeout(() => {
|
|
6380
6387
|
E.value = g.value.trim(), m = null;
|
|
6381
6388
|
}, n.filterDebounceMs));
|
|
@@ -6402,7 +6409,7 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6402
6409
|
() => n.filterable && !!E.value.trim() && !R.value && !b.value
|
|
6403
6410
|
), X = (c) => {
|
|
6404
6411
|
s.value = c, r("visible-change", c), c || f(), !c && n.filterable && (g.value = "", E.value = "", v());
|
|
6405
|
-
},
|
|
6412
|
+
}, z = G(null), q = (c) => {
|
|
6406
6413
|
const u = n.options.find((y) => y.value === c);
|
|
6407
6414
|
if (u)
|
|
6408
6415
|
return {
|
|
@@ -6434,30 +6441,30 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6434
6441
|
label: "",
|
|
6435
6442
|
primary: void 0,
|
|
6436
6443
|
sub: void 0
|
|
6437
|
-
} :
|
|
6438
|
-
level:
|
|
6439
|
-
label:
|
|
6440
|
-
primary:
|
|
6441
|
-
sub:
|
|
6444
|
+
} : z.value !== null && z.value.value === c ? {
|
|
6445
|
+
level: z.value.level,
|
|
6446
|
+
label: z.value.label,
|
|
6447
|
+
primary: z.value.primary,
|
|
6448
|
+
sub: z.value.sub
|
|
6442
6449
|
} : q(c);
|
|
6443
6450
|
});
|
|
6444
6451
|
he(
|
|
6445
6452
|
() => n.modelValue,
|
|
6446
6453
|
(c) => {
|
|
6447
6454
|
if (c == null || c === "") {
|
|
6448
|
-
|
|
6455
|
+
z.value = null;
|
|
6449
6456
|
return;
|
|
6450
6457
|
}
|
|
6451
|
-
|
|
6458
|
+
z.value !== null && z.value.value !== c && (z.value = null);
|
|
6452
6459
|
}
|
|
6453
6460
|
);
|
|
6454
|
-
const ie = I(() => re.value.level > 0), ke = I(() => re.value.label), ae = I(() => n.modelValue),
|
|
6461
|
+
const ie = I(() => re.value.level > 0), ke = I(() => re.value.label), ae = I(() => n.modelValue), H = I(() => ke.value), Y = I(() => re.value.level), W = I(() => re.value.primary), K = I(() => re.value.sub), se = (c) => (c.children?.length ?? 0) > 0, k = (c) => n.modelValue === c, $ = (c) => {
|
|
6455
6462
|
const u = n.modelValue;
|
|
6456
6463
|
return u == null || u === "" ? !1 : (c.children ?? []).some((y) => y.value === u);
|
|
6457
|
-
},
|
|
6458
|
-
n.disabled || c.disabled || u.disabled || (
|
|
6464
|
+
}, j = (c, u) => {
|
|
6465
|
+
n.disabled || c.disabled || u.disabled || (z.value = { value: u.value, label: u.label, level: 2, primary: c, sub: u }, r("update:modelValue", u.value), r("change", u.value), f(), a.value?.close());
|
|
6459
6466
|
}, le = (c) => {
|
|
6460
|
-
n.disabled || c.disabled || se(c) || (
|
|
6467
|
+
n.disabled || c.disabled || se(c) || (z.value = { value: c.value, label: c.label, level: 1, primary: c }, r("update:modelValue", c.value), r("change", c.value), f(), a.value?.close());
|
|
6461
6468
|
}, Te = (c) => typeof c == "number" ? `${c}px` : c, D = I(() => {
|
|
6462
6469
|
if (n.popperWidth !== void 0 && n.popperWidth !== null && n.popperWidth !== "")
|
|
6463
6470
|
return Te(n.popperWidth);
|
|
@@ -6466,9 +6473,9 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6466
6473
|
}), fe = I(() => Te(n.subPopperWidth)), me = I(() => typeof D.value == "number" ? `${D.value - 12}px` : `calc(${D.value} - 12px)`), Pe = I(() => ({
|
|
6467
6474
|
maxHeight: Te(n.maxPopperHeight),
|
|
6468
6475
|
overflowY: "auto"
|
|
6469
|
-
})), rt = { strategy: "fixed" },
|
|
6476
|
+
})), rt = { strategy: "fixed" }, M = I(() => n.align === "center" ? "bottom" : n.align === "left" ? "bottom-start" : "bottom-end"), B = I(() => ({
|
|
6470
6477
|
width: Te(n.triggerWidth)
|
|
6471
|
-
})), ye = I(() => n.size === "large" ? "20px" : n.size === "medium" ? "14px" : "12px"), ve =
|
|
6478
|
+
})), ye = I(() => n.size === "large" ? "20px" : n.size === "medium" ? "14px" : "12px"), ve = G(0), We = (c) => {
|
|
6472
6479
|
const u = c.target;
|
|
6473
6480
|
ve.value = u.scrollTop;
|
|
6474
6481
|
}, ht = [-16, -8];
|
|
@@ -6480,7 +6487,7 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6480
6487
|
ref: a,
|
|
6481
6488
|
"preserve-content-mount": "",
|
|
6482
6489
|
"popper-width": D.value,
|
|
6483
|
-
placement:
|
|
6490
|
+
placement: M.value,
|
|
6484
6491
|
offset: e.offset,
|
|
6485
6492
|
disabled: !!e.disabled,
|
|
6486
6493
|
padding: 0,
|
|
@@ -6490,10 +6497,10 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6490
6497
|
c.$slots.trigger ? _e(c.$slots, "trigger", {
|
|
6491
6498
|
key: 0,
|
|
6492
6499
|
modelValue: ae.value,
|
|
6493
|
-
selectedLabel:
|
|
6494
|
-
level:
|
|
6500
|
+
selectedLabel: H.value,
|
|
6501
|
+
level: Y.value,
|
|
6495
6502
|
primaryOption: W.value,
|
|
6496
|
-
subOption:
|
|
6503
|
+
subOption: K.value,
|
|
6497
6504
|
placeholder: e.placeholder,
|
|
6498
6505
|
hasSelection: ie.value,
|
|
6499
6506
|
open: s.value,
|
|
@@ -6501,23 +6508,23 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6501
6508
|
}) : (C(), A("div", {
|
|
6502
6509
|
key: 1,
|
|
6503
6510
|
class: ne(["cregis-cascader__trigger", { [`cregis-cascader__trigger--${e.size}`]: e.size, [`cregis-cascader__trigger--${e.type}`]: e.type }]),
|
|
6504
|
-
style: ue(
|
|
6511
|
+
style: ue(B.value)
|
|
6505
6512
|
}, [
|
|
6506
|
-
|
|
6513
|
+
F("div", Rd, [
|
|
6507
6514
|
ie.value ? _e(c.$slots, "label", {
|
|
6508
6515
|
key: 0,
|
|
6509
6516
|
modelValue: ae.value,
|
|
6510
|
-
selectedLabel:
|
|
6511
|
-
level:
|
|
6517
|
+
selectedLabel: H.value,
|
|
6518
|
+
level: Y.value,
|
|
6512
6519
|
primaryOption: W.value,
|
|
6513
|
-
subOption:
|
|
6520
|
+
subOption: K.value,
|
|
6514
6521
|
placeholder: e.placeholder,
|
|
6515
6522
|
hasSelection: ie.value
|
|
6516
6523
|
}, () => [
|
|
6517
|
-
|
|
6524
|
+
F("p", $d, Z(ke.value), 1)
|
|
6518
6525
|
]) : (C(), A("p", Md, Z(e.placeholder), 1))
|
|
6519
6526
|
]),
|
|
6520
|
-
|
|
6527
|
+
F("span", {
|
|
6521
6528
|
class: ne(["cregis-cascader__icon", { "is-open": s.value }])
|
|
6522
6529
|
}, [
|
|
6523
6530
|
ge(te(Er), {
|
|
@@ -6528,7 +6535,7 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6528
6535
|
], 6))
|
|
6529
6536
|
]),
|
|
6530
6537
|
default: Ae(() => [
|
|
6531
|
-
|
|
6538
|
+
F("div", {
|
|
6532
6539
|
class: ne(["cregis-cascader__dropdown", { "is-empty": b.value }]),
|
|
6533
6540
|
style: ue(Pe.value),
|
|
6534
6541
|
onScroll: We
|
|
@@ -6555,7 +6562,7 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6555
6562
|
}, 8, ["modelValue", "placeholder", "width"])
|
|
6556
6563
|
], 2)) : J("", !0),
|
|
6557
6564
|
U.value ? (C(), A("p", Fd, Z(e.noMatchText || te($e)("cascader.noMatch")), 1)) : J("", !0),
|
|
6558
|
-
|
|
6565
|
+
F("ul", Ud, [
|
|
6559
6566
|
(C(!0), A(Xe, null, _t(N.value, (y, P) => (C(), A("li", {
|
|
6560
6567
|
key: y.value,
|
|
6561
6568
|
class: ne(["cregis-cascader__dropdown-item", { "is-disabled": y.disabled, "is-sub-open": o.value === y.value }])
|
|
@@ -6574,7 +6581,7 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6574
6581
|
onVisibleChange: (ee) => p(y.value, ee)
|
|
6575
6582
|
}, {
|
|
6576
6583
|
reference: Ae(() => [
|
|
6577
|
-
|
|
6584
|
+
F("div", {
|
|
6578
6585
|
class: ne(["cregis-cascader__suboption-trigger", {
|
|
6579
6586
|
"is-disabled": y.disabled,
|
|
6580
6587
|
"is-parent-active": $(y)
|
|
@@ -6582,19 +6589,19 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6582
6589
|
}, [
|
|
6583
6590
|
_e(c.$slots, "option", {
|
|
6584
6591
|
modelValue: ae.value,
|
|
6585
|
-
selectedLabel:
|
|
6586
|
-
level:
|
|
6592
|
+
selectedLabel: H.value,
|
|
6593
|
+
level: Y.value,
|
|
6587
6594
|
primaryOption: W.value,
|
|
6588
|
-
subOption:
|
|
6595
|
+
subOption: K.value,
|
|
6589
6596
|
option: y,
|
|
6590
6597
|
index: P,
|
|
6591
6598
|
disabled: !!y.disabled,
|
|
6592
6599
|
selected: k(y.value),
|
|
6593
6600
|
isParentOfSelected: $(y)
|
|
6594
6601
|
}, () => [
|
|
6595
|
-
|
|
6602
|
+
F("p", null, Z(y.label), 1)
|
|
6596
6603
|
]),
|
|
6597
|
-
|
|
6604
|
+
F("div", Bd, [
|
|
6598
6605
|
e.showSubOptionAmount ? (C(), A("div", Hd, Z(y.children.length), 1)) : J("", !0),
|
|
6599
6606
|
ge(te(mo), {
|
|
6600
6607
|
size: "14px",
|
|
@@ -6604,7 +6611,7 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6604
6611
|
], 2)
|
|
6605
6612
|
]),
|
|
6606
6613
|
default: Ae(() => [
|
|
6607
|
-
|
|
6614
|
+
F("div", zd, [
|
|
6608
6615
|
(C(!0), A(Xe, null, _t(y.children, (ee, Le) => Wt((C(), A("div", {
|
|
6609
6616
|
key: ee.value,
|
|
6610
6617
|
class: ne(["cregis-cascader__suboption-row", {
|
|
@@ -6612,14 +6619,14 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6612
6619
|
"is-disabled": ee.disabled
|
|
6613
6620
|
}]),
|
|
6614
6621
|
role: "menuitem",
|
|
6615
|
-
onClick: (oe) =>
|
|
6622
|
+
onClick: (oe) => j(y, ee)
|
|
6616
6623
|
}, [
|
|
6617
6624
|
_e(c.$slots, "subOption", {
|
|
6618
6625
|
modelValue: ae.value,
|
|
6619
|
-
selectedLabel:
|
|
6620
|
-
level:
|
|
6626
|
+
selectedLabel: H.value,
|
|
6627
|
+
level: Y.value,
|
|
6621
6628
|
primaryOption: W.value,
|
|
6622
|
-
subOption:
|
|
6629
|
+
subOption: K.value,
|
|
6623
6630
|
option: ee,
|
|
6624
6631
|
index: Le,
|
|
6625
6632
|
parent: y,
|
|
@@ -6643,17 +6650,17 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6643
6650
|
}, [
|
|
6644
6651
|
_e(c.$slots, "option", {
|
|
6645
6652
|
modelValue: ae.value,
|
|
6646
|
-
selectedLabel:
|
|
6647
|
-
level:
|
|
6653
|
+
selectedLabel: H.value,
|
|
6654
|
+
level: Y.value,
|
|
6648
6655
|
primaryOption: W.value,
|
|
6649
|
-
subOption:
|
|
6656
|
+
subOption: K.value,
|
|
6650
6657
|
option: y,
|
|
6651
6658
|
index: P,
|
|
6652
6659
|
disabled: !!y.disabled,
|
|
6653
6660
|
selected: k(y.value),
|
|
6654
6661
|
isParentOfSelected: !1
|
|
6655
6662
|
}, () => [
|
|
6656
|
-
|
|
6663
|
+
F("p", null, Z(y.label), 1)
|
|
6657
6664
|
])
|
|
6658
6665
|
], 8, Gd))
|
|
6659
6666
|
], 2))), 128))
|
|
@@ -6726,7 +6733,7 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6726
6733
|
},
|
|
6727
6734
|
emits: ["update:modelValue", "change"],
|
|
6728
6735
|
setup(e, { emit: t }) {
|
|
6729
|
-
const n = e, r = t, a =
|
|
6736
|
+
const n = e, r = t, a = G(!1), s = I(() => n.modelValue === n.activeValue), o = async () => {
|
|
6730
6737
|
if (n.disabled || a.value) return;
|
|
6731
6738
|
const l = s.value ? n.inactiveValue : n.activeValue;
|
|
6732
6739
|
if (n.beforeChange) {
|
|
@@ -6753,7 +6760,7 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6753
6760
|
]]),
|
|
6754
6761
|
onClick: o
|
|
6755
6762
|
}, [...i[0] || (i[0] = [
|
|
6756
|
-
|
|
6763
|
+
F("div", { class: "cregis-switch__circle" }, null, -1)
|
|
6757
6764
|
])], 2));
|
|
6758
6765
|
}
|
|
6759
6766
|
}), Xd = { class: "cregis-badge__wrapper" }, Jf = /* @__PURE__ */ Ee({
|
|
@@ -6802,7 +6809,7 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6802
6809
|
},
|
|
6803
6810
|
emits: ["update:modelValue"],
|
|
6804
6811
|
setup(e, { emit: t }) {
|
|
6805
|
-
const n = e, r = t, a =
|
|
6812
|
+
const n = e, r = t, a = G(0), s = G(""), o = ["http:", "https:", "blob:"], l = (d) => {
|
|
6806
6813
|
if (!d) return !1;
|
|
6807
6814
|
if (d.toLowerCase().startsWith("data:image/")) return !0;
|
|
6808
6815
|
try {
|
|
@@ -6870,7 +6877,7 @@ const wd = 80, hr = /* @__PURE__ */ Ee({
|
|
|
6870
6877
|
size: "16px",
|
|
6871
6878
|
color: "var(--stroke-base-secondary)"
|
|
6872
6879
|
})),
|
|
6873
|
-
|
|
6880
|
+
F("input", {
|
|
6874
6881
|
type: "file",
|
|
6875
6882
|
title: "",
|
|
6876
6883
|
accept: e.accept,
|
|
@@ -6954,7 +6961,7 @@ const Zd = () => {
|
|
|
6954
6961
|
class: "cregis-dialog__mask",
|
|
6955
6962
|
onClick: f
|
|
6956
6963
|
})) : J("", !0),
|
|
6957
|
-
|
|
6964
|
+
F("div", {
|
|
6958
6965
|
class: "cregis-dialog",
|
|
6959
6966
|
style: ue(o.value),
|
|
6960
6967
|
onClick: v[0] || (v[0] = Bt(() => {
|
|
@@ -7003,7 +7010,7 @@ const Zd = () => {
|
|
|
7003
7010
|
},
|
|
7004
7011
|
emits: ["after-leave"],
|
|
7005
7012
|
setup(e, { emit: t }) {
|
|
7006
|
-
const n = e, r = t, a =
|
|
7013
|
+
const n = e, r = t, a = G(!1), s = G(null), o = G(null), l = I(() => n.type === "success" ? {
|
|
7007
7014
|
component: Xa,
|
|
7008
7015
|
color: "var(--text-same-white-primary)"
|
|
7009
7016
|
} : {
|
|
@@ -7033,9 +7040,9 @@ const Zd = () => {
|
|
|
7033
7040
|
onAfterLeave: m
|
|
7034
7041
|
}, {
|
|
7035
7042
|
default: Ae(() => [
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7043
|
+
F("div", ef, [
|
|
7044
|
+
F("div", tf, [
|
|
7045
|
+
F("div", {
|
|
7039
7046
|
class: ne(`cregis-dialog-confirm__icon cregis-dialog-confirm__icon--${e.type}`)
|
|
7040
7047
|
}, [
|
|
7041
7048
|
(C(), Se(cn(l.value.component), {
|
|
@@ -7047,7 +7054,7 @@ const Zd = () => {
|
|
|
7047
7054
|
]),
|
|
7048
7055
|
e.title ? (C(), A("div", nf, Z(e.title), 1)) : J("", !0),
|
|
7049
7056
|
e.message ? (C(), A("div", rf, Z(e.message), 1)) : J("", !0),
|
|
7050
|
-
|
|
7057
|
+
F("div", af, [
|
|
7051
7058
|
e.showConfirmButton ? (C(), Se(Ut, {
|
|
7052
7059
|
key: 0,
|
|
7053
7060
|
type: "foreground",
|
|
@@ -7177,11 +7184,11 @@ const cf = "var(--stroke-outline-subtle)", uf = "var(--material-brand-primary)",
|
|
|
7177
7184
|
class: "cregis-timeline-item",
|
|
7178
7185
|
style: ue(i.value)
|
|
7179
7186
|
}, [
|
|
7180
|
-
|
|
7187
|
+
F("div", {
|
|
7181
7188
|
class: "cregis-timeline-item__node",
|
|
7182
7189
|
style: ue(f.value)
|
|
7183
7190
|
}, [
|
|
7184
|
-
|
|
7191
|
+
F("span", {
|
|
7185
7192
|
class: "cregis-timeline-item__dot",
|
|
7186
7193
|
style: ue(l.value)
|
|
7187
7194
|
}, [
|
|
@@ -7207,7 +7214,7 @@ const cf = "var(--stroke-outline-subtle)", uf = "var(--material-brand-primary)",
|
|
|
7207
7214
|
m.$slots.title ? (C(), A("div", vf, [
|
|
7208
7215
|
_e(m.$slots, "title")
|
|
7209
7216
|
])) : J("", !0),
|
|
7210
|
-
|
|
7217
|
+
F("span", {
|
|
7211
7218
|
class: "cregis-timeline-item__tail",
|
|
7212
7219
|
style: ue(p.value)
|
|
7213
7220
|
}, null, 4),
|
|
@@ -7238,7 +7245,7 @@ const cf = "var(--stroke-outline-subtle)", uf = "var(--material-brand-primary)",
|
|
|
7238
7245
|
},
|
|
7239
7246
|
emits: ["select-all-mode", "sort-change"],
|
|
7240
7247
|
setup(e, { expose: t, emit: n }) {
|
|
7241
|
-
const r = n, a = e, s =
|
|
7248
|
+
const r = n, a = e, s = G(!1), o = G(!1), l = G(""), i = G(), f = G();
|
|
7242
7249
|
let p = null;
|
|
7243
7250
|
const m = I(() => ({
|
|
7244
7251
|
maxHeight: "180px",
|
|
@@ -7298,7 +7305,7 @@ const cf = "var(--stroke-outline-subtle)", uf = "var(--material-brand-primary)",
|
|
|
7298
7305
|
style: ue(T.value)
|
|
7299
7306
|
}, [
|
|
7300
7307
|
_e(O.$slots, "default", {}, () => [
|
|
7301
|
-
|
|
7308
|
+
F("div", null, Z(e.label), 1)
|
|
7302
7309
|
], !0),
|
|
7303
7310
|
e.sortable ? (C(), A("div", {
|
|
7304
7311
|
key: 0,
|
|
@@ -7307,7 +7314,7 @@ const cf = "var(--stroke-outline-subtle)", uf = "var(--material-brand-primary)",
|
|
|
7307
7314
|
class: ne(["sort-container", [g.value, v.value]]),
|
|
7308
7315
|
onClick: Bt(L, ["stop"])
|
|
7309
7316
|
}, [
|
|
7310
|
-
|
|
7317
|
+
F("span", {
|
|
7311
7318
|
class: ne(["sort-icon", { "is-open": s.value }])
|
|
7312
7319
|
}, [
|
|
7313
7320
|
ge(te(Er), {
|
|
@@ -7318,17 +7325,17 @@ const cf = "var(--stroke-outline-subtle)", uf = "var(--material-brand-primary)",
|
|
|
7318
7325
|
], 2)) : J("", !0)
|
|
7319
7326
|
], 4)) : J("", !0),
|
|
7320
7327
|
(C(), Se(yr, { to: "body" }, [
|
|
7321
|
-
Wt(
|
|
7328
|
+
Wt(F("div", {
|
|
7322
7329
|
ref_key: "popRef",
|
|
7323
7330
|
ref: i,
|
|
7324
7331
|
class: "sort-popover no-scroll-bar popover-shadow",
|
|
7325
7332
|
style: ue(m.value)
|
|
7326
7333
|
}, [
|
|
7327
|
-
|
|
7334
|
+
F("div", {
|
|
7328
7335
|
class: ne(["sort-item font-15", { active: l.value === 1 }]),
|
|
7329
7336
|
onClick: h[1] || (h[1] = (S) => d(1))
|
|
7330
7337
|
}, Z(te($e)("tableList.asc")), 3),
|
|
7331
|
-
|
|
7338
|
+
F("div", {
|
|
7332
7339
|
class: ne(["sort-item font-15", { active: l.value === 2 }]),
|
|
7333
7340
|
onClick: h[2] || (h[2] = (S) => d(2))
|
|
7334
7341
|
}, Z(te($e)("tableList.desc")), 3)
|
|
@@ -7442,7 +7449,7 @@ const cf = "var(--stroke-outline-subtle)", uf = "var(--material-brand-primary)",
|
|
|
7442
7449
|
},
|
|
7443
7450
|
emits: ["row-click", "update:selected-list", "selected-change", "select-close"],
|
|
7444
7451
|
setup(e, { expose: t, emit: n }) {
|
|
7445
|
-
const r = n, a = e, s = Ka(), o =
|
|
7452
|
+
const r = n, a = e, s = Ka(), o = G(null), l = G(null), i = G([]), f = G({ width: 0, height: 0 }), p = G(0), m = I(() => `${a.headerHeight}px`), v = G(!1), g = G([]);
|
|
7446
7453
|
he(
|
|
7447
7454
|
() => a.dataList,
|
|
7448
7455
|
() => {
|
|
@@ -7452,11 +7459,11 @@ const cf = "var(--stroke-outline-subtle)", uf = "var(--material-brand-primary)",
|
|
|
7452
7459
|
immediate: !0
|
|
7453
7460
|
}
|
|
7454
7461
|
);
|
|
7455
|
-
const E =
|
|
7462
|
+
const E = G(!1), T = G();
|
|
7456
7463
|
he(
|
|
7457
7464
|
() => a.initing,
|
|
7458
|
-
(
|
|
7459
|
-
|
|
7465
|
+
(H) => {
|
|
7466
|
+
H ? T.value = window.setTimeout(() => {
|
|
7460
7467
|
E.value = !0;
|
|
7461
7468
|
}, 500) : (clearTimeout(T.value), E.value = !1);
|
|
7462
7469
|
},
|
|
@@ -7464,11 +7471,11 @@ const cf = "var(--stroke-outline-subtle)", uf = "var(--material-brand-primary)",
|
|
|
7464
7471
|
immediate: !0
|
|
7465
7472
|
}
|
|
7466
7473
|
);
|
|
7467
|
-
const L =
|
|
7474
|
+
const L = G(!1), d = G(!1), _ = G();
|
|
7468
7475
|
he(
|
|
7469
7476
|
() => a.loading,
|
|
7470
|
-
(
|
|
7471
|
-
|
|
7477
|
+
(H) => {
|
|
7478
|
+
H ? (clearTimeout(_.value), l.value?.scrollTo({ top: 0, behavior: "instant" }), d.value = !1, L.value = !0) : (l.value?.scrollTo({ top: 0, behavior: "instant" }), d.value = !0, _.value = window.setTimeout(() => {
|
|
7472
7479
|
L.value = !1;
|
|
7473
7480
|
}, 500));
|
|
7474
7481
|
},
|
|
@@ -7477,54 +7484,54 @@ const cf = "var(--stroke-outline-subtle)", uf = "var(--material-brand-primary)",
|
|
|
7477
7484
|
}
|
|
7478
7485
|
);
|
|
7479
7486
|
const O = I(() => {
|
|
7480
|
-
const
|
|
7487
|
+
const H = f.value.height - a.headerHeight - 8, Y = Math.floor(H / a.columnHeight), W = Y - a.dataList.length > 0 ? Y - a.dataList.length : 0;
|
|
7481
7488
|
return Array.from({ length: W }).fill({});
|
|
7482
7489
|
}), h = I(() => ({
|
|
7483
7490
|
width: `${f.value.width}px`,
|
|
7484
7491
|
height: L.value ? "28px" : "0px",
|
|
7485
7492
|
opacity: L.value ? 1 : 0
|
|
7486
|
-
})), S = () => (s.default?.()?.filter((W) => W.type?.name === "TableListColumn") || []).filter((W) => W.props?.hidden !== !0), N = () => S().filter((
|
|
7487
|
-
const W = nn(
|
|
7493
|
+
})), S = () => (s.default?.()?.filter((W) => W.type?.name === "TableListColumn") || []).filter((W) => W.props?.hidden !== !0), N = () => S().filter((Y) => {
|
|
7494
|
+
const W = nn(Y.props, "minTableWidth");
|
|
7488
7495
|
return !W || f.value.width >= W;
|
|
7489
|
-
}), b = I(() => N().map((
|
|
7490
|
-
const { align: W = "left", label:
|
|
7496
|
+
}), b = I(() => N().map((Y) => {
|
|
7497
|
+
const { align: W = "left", label: K, width: se, sortable: k } = Y.props || {}, $ = nn(Y.props, "minTableWidth");
|
|
7491
7498
|
return {
|
|
7492
|
-
label:
|
|
7499
|
+
label: K || "",
|
|
7493
7500
|
align: W,
|
|
7494
7501
|
sortable: k,
|
|
7495
7502
|
width: se,
|
|
7496
7503
|
minTableWidth: $,
|
|
7497
|
-
headerSlot:
|
|
7498
|
-
originalSortChangeHandler:
|
|
7504
|
+
headerSlot: Y.children?.header,
|
|
7505
|
+
originalSortChangeHandler: Y.props?.onSortChange
|
|
7499
7506
|
};
|
|
7500
|
-
})), R = I(() => b.value.length + 1), U = I(() => N().map((
|
|
7501
|
-
const { align: W = "left", width:
|
|
7507
|
+
})), R = I(() => b.value.length + 1), U = I(() => N().map((Y) => {
|
|
7508
|
+
const { align: W = "left", width: K } = Y.props || {}, se = nn(Y.props, "widthPercent"), k = nn(Y.props, "minWidth"), $ = nn(Y.props, "minTableWidth");
|
|
7502
7509
|
return {
|
|
7503
|
-
prop:
|
|
7510
|
+
prop: Y.props?.prop || "",
|
|
7504
7511
|
align: W,
|
|
7505
|
-
width:
|
|
7512
|
+
width: K,
|
|
7506
7513
|
widthPercent: se,
|
|
7507
7514
|
minWidth: k,
|
|
7508
7515
|
minTableWidth: $,
|
|
7509
|
-
children:
|
|
7510
|
-
slotDefault:
|
|
7516
|
+
children: Y.children || {},
|
|
7517
|
+
slotDefault: Y.children?.default
|
|
7511
7518
|
};
|
|
7512
|
-
})), X = (
|
|
7513
|
-
i.value?.forEach((
|
|
7514
|
-
se !==
|
|
7519
|
+
})), X = (H, Y) => {
|
|
7520
|
+
i.value?.forEach((K, se) => {
|
|
7521
|
+
se !== H && K.resetSort();
|
|
7515
7522
|
});
|
|
7516
|
-
const W = b.value[
|
|
7517
|
-
W.originalSortChangeHandler && W.originalSortChangeHandler(
|
|
7518
|
-
},
|
|
7519
|
-
g.value.find((W) => W._index ===
|
|
7520
|
-
}, q = (
|
|
7521
|
-
|
|
7522
|
-
}, re = (
|
|
7523
|
+
const W = b.value[H];
|
|
7524
|
+
W.originalSortChangeHandler && W.originalSortChangeHandler(Y);
|
|
7525
|
+
}, z = (H) => {
|
|
7526
|
+
g.value.find((W) => W._index === H) ? (g.value = g.value.filter((W) => W._index !== H), r("update:selected-list", g.value), r("selected-change", g.value)) : (g.value.push({ ...a.dataList[H], _index: H }), r("update:selected-list", g.value), r("selected-change", g.value));
|
|
7527
|
+
}, q = (H) => {
|
|
7528
|
+
H === "all" ? (g.value = [], r("update:selected-list", []), r("selected-change", [])) : (g.value = a.dataList.map((Y, W) => ({ ...Y, _index: W })), r("update:selected-list", g.value), r("selected-change", g.value));
|
|
7529
|
+
}, re = (H, Y) => {
|
|
7523
7530
|
if (v.value) {
|
|
7524
|
-
|
|
7531
|
+
z(Y);
|
|
7525
7532
|
return;
|
|
7526
7533
|
}
|
|
7527
|
-
r("row-click",
|
|
7534
|
+
r("row-click", H);
|
|
7528
7535
|
}, ie = () => {
|
|
7529
7536
|
v.value = !0;
|
|
7530
7537
|
}, ke = () => {
|
|
@@ -7537,18 +7544,18 @@ const cf = "var(--stroke-outline-subtle)", uf = "var(--material-brand-primary)",
|
|
|
7537
7544
|
});
|
|
7538
7545
|
let ae = null;
|
|
7539
7546
|
return yt(() => {
|
|
7540
|
-
o.value && (ae = new ResizeObserver((
|
|
7541
|
-
const
|
|
7542
|
-
f.value = { width: W, height:
|
|
7547
|
+
o.value && (ae = new ResizeObserver((H) => {
|
|
7548
|
+
const Y = H[0], W = Y.contentRect.width, K = Y.contentRect.height;
|
|
7549
|
+
f.value = { width: W, height: K };
|
|
7543
7550
|
}), ae.observe(o.value));
|
|
7544
7551
|
}), st(() => {
|
|
7545
7552
|
ae && ae.disconnect();
|
|
7546
|
-
}), (
|
|
7553
|
+
}), (H, Y) => (C(), A("div", {
|
|
7547
7554
|
ref_key: "tableWrapperRef",
|
|
7548
7555
|
ref: o,
|
|
7549
7556
|
class: "table-wrapper"
|
|
7550
7557
|
}, [
|
|
7551
|
-
|
|
7558
|
+
F("div", {
|
|
7552
7559
|
class: "header-bg",
|
|
7553
7560
|
style: ue({ height: m.value })
|
|
7554
7561
|
}, null, 4),
|
|
@@ -7557,13 +7564,13 @@ const cf = "var(--stroke-outline-subtle)", uf = "var(--material-brand-primary)",
|
|
|
7557
7564
|
class: "initing-wrapper",
|
|
7558
7565
|
style: ue({ top: m.value, height: `calc(100% - ${m.value})` })
|
|
7559
7566
|
}, [
|
|
7560
|
-
|
|
7567
|
+
F("div", yf, [
|
|
7561
7568
|
ge(te(er), {
|
|
7562
7569
|
class: "loading-icon",
|
|
7563
7570
|
size: "20px",
|
|
7564
7571
|
color: "var(--stroke-base-secondary)"
|
|
7565
7572
|
}),
|
|
7566
|
-
|
|
7573
|
+
F("div", Ef, Z(te($e)("tableList.loading")), 1)
|
|
7567
7574
|
])
|
|
7568
7575
|
], 4)) : J("", !0),
|
|
7569
7576
|
ge(hn, { name: "table-list-operation" }, {
|
|
@@ -7573,25 +7580,25 @@ const cf = "var(--stroke-outline-subtle)", uf = "var(--material-brand-primary)",
|
|
|
7573
7580
|
class: "opration-wrapper",
|
|
7574
7581
|
style: ue({ bottom: `calc(var(--spacing-8) + ${e.bottomPadding}px)` })
|
|
7575
7582
|
}, [
|
|
7576
|
-
|
|
7583
|
+
F("div", {
|
|
7577
7584
|
class: "operation-item",
|
|
7578
7585
|
hover: "bg-[--event-focus-secondary]",
|
|
7579
7586
|
onClick: ke
|
|
7580
7587
|
}, [
|
|
7581
7588
|
ge(te(Tr), { size: "16px" })
|
|
7582
7589
|
]),
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7590
|
+
Y[0] || (Y[0] = F("div", { class: "operation-divider" }, null, -1)),
|
|
7591
|
+
F("div", Tf, [
|
|
7592
|
+
F("div", Of, Z(g.value.length), 1),
|
|
7593
|
+
F("div", Nf, Z(te($e)("tableList.selected")), 1)
|
|
7587
7594
|
]),
|
|
7588
7595
|
s.operation ? (C(), A("div", Lf)) : J("", !0),
|
|
7589
|
-
_e(
|
|
7596
|
+
_e(H.$slots, "operation", {}, void 0, !0)
|
|
7590
7597
|
], 4)) : J("", !0)
|
|
7591
7598
|
]),
|
|
7592
7599
|
_: 3
|
|
7593
7600
|
}),
|
|
7594
|
-
|
|
7601
|
+
F("div", {
|
|
7595
7602
|
ref_key: "tableContentRef",
|
|
7596
7603
|
ref: l,
|
|
7597
7604
|
class: "table-content-wrapper no-scroll-bar"
|
|
@@ -7600,10 +7607,10 @@ const cf = "var(--stroke-outline-subtle)", uf = "var(--material-brand-primary)",
|
|
|
7600
7607
|
key: p.value,
|
|
7601
7608
|
class: "cg-table w-full border-separate"
|
|
7602
7609
|
}, [
|
|
7603
|
-
|
|
7610
|
+
F("thead", {
|
|
7604
7611
|
style: ue({ height: m.value })
|
|
7605
7612
|
}, [
|
|
7606
|
-
|
|
7613
|
+
F("tr", null, [
|
|
7607
7614
|
ge(ja, {
|
|
7608
7615
|
type: "select",
|
|
7609
7616
|
height: m.value,
|
|
@@ -7611,18 +7618,18 @@ const cf = "var(--stroke-outline-subtle)", uf = "var(--material-brand-primary)",
|
|
|
7611
7618
|
"select-all-mode": g.value.length === 0 ? "none" : g.value.length === e.dataList.length ? "all" : "some",
|
|
7612
7619
|
onSelectAllMode: q
|
|
7613
7620
|
}, null, 8, ["height", "select-visible", "select-all-mode"]),
|
|
7614
|
-
(C(!0), A(Xe, null, _t(b.value, (W,
|
|
7621
|
+
(C(!0), A(Xe, null, _t(b.value, (W, K) => (C(), Se(ja, {
|
|
7615
7622
|
ref_for: !0,
|
|
7616
7623
|
ref_key: "headerCellRefs",
|
|
7617
7624
|
ref: i,
|
|
7618
|
-
key:
|
|
7625
|
+
key: K,
|
|
7619
7626
|
label: W.label,
|
|
7620
7627
|
align: W.align,
|
|
7621
7628
|
height: m.value,
|
|
7622
7629
|
width: W.width,
|
|
7623
7630
|
sortable: W.sortable,
|
|
7624
7631
|
"select-mode": v.value,
|
|
7625
|
-
onSortChange: (se) => X(Number(
|
|
7632
|
+
onSortChange: (se) => X(Number(K), se)
|
|
7626
7633
|
}, Yr({ _: 2 }, [
|
|
7627
7634
|
W.headerSlot ? {
|
|
7628
7635
|
name: "default",
|
|
@@ -7635,18 +7642,18 @@ const cf = "var(--stroke-outline-subtle)", uf = "var(--material-brand-primary)",
|
|
|
7635
7642
|
])
|
|
7636
7643
|
], 4),
|
|
7637
7644
|
e.dataList.length > 0 ? (C(), A("tbody", wf, [
|
|
7638
|
-
|
|
7645
|
+
F("tr", {
|
|
7639
7646
|
class: "loading-wrapper",
|
|
7640
7647
|
style: ue(h.value)
|
|
7641
7648
|
}, [
|
|
7642
|
-
|
|
7643
|
-
|
|
7649
|
+
F("td", { colspan: R.value }, [
|
|
7650
|
+
F("div", Sf, [
|
|
7644
7651
|
d.value ? (C(), A(Xe, { key: 0 }, [
|
|
7645
7652
|
ge(te(ho), {
|
|
7646
7653
|
size: "16px",
|
|
7647
7654
|
color: "var(--stroke-color-success)"
|
|
7648
7655
|
}),
|
|
7649
|
-
|
|
7656
|
+
F("span", kf, Z(te($e)("tableList.refreshed")), 1)
|
|
7650
7657
|
], 64)) : (C(), Se(te(er), {
|
|
7651
7658
|
key: 1,
|
|
7652
7659
|
class: "loading-icon",
|
|
@@ -7656,23 +7663,23 @@ const cf = "var(--stroke-outline-subtle)", uf = "var(--material-brand-primary)",
|
|
|
7656
7663
|
])
|
|
7657
7664
|
], 8, Cf)
|
|
7658
7665
|
], 4),
|
|
7659
|
-
(C(!0), A(Xe, null, _t(e.dataList, (W,
|
|
7660
|
-
key:
|
|
7666
|
+
(C(!0), A(Xe, null, _t(e.dataList, (W, K) => (C(), A("tr", {
|
|
7667
|
+
key: K,
|
|
7661
7668
|
class: "table-row",
|
|
7662
|
-
onClick: (se) => re(W,
|
|
7669
|
+
onClick: (se) => re(W, K)
|
|
7663
7670
|
}, [
|
|
7664
7671
|
ge(Nn, {
|
|
7665
7672
|
type: "select",
|
|
7666
7673
|
"select-visible": v.value,
|
|
7667
|
-
index:
|
|
7674
|
+
index: K,
|
|
7668
7675
|
"column-height": e.columnHeight,
|
|
7669
7676
|
data: W,
|
|
7670
|
-
selected: g.value.findIndex((se) => se._index ===
|
|
7671
|
-
onSelectChange:
|
|
7677
|
+
selected: g.value.findIndex((se) => se._index === K) !== -1,
|
|
7678
|
+
onSelectChange: z
|
|
7672
7679
|
}, null, 8, ["select-visible", "index", "column-height", "data", "selected"]),
|
|
7673
7680
|
(C(!0), A(Xe, null, _t(U.value, (se, k) => (C(), Se(Nn, {
|
|
7674
|
-
key: `${
|
|
7675
|
-
index:
|
|
7681
|
+
key: `${K}-${k}`,
|
|
7682
|
+
index: K,
|
|
7676
7683
|
"column-height": e.columnHeight,
|
|
7677
7684
|
prop: se.prop,
|
|
7678
7685
|
align: se.align,
|
|
@@ -7690,19 +7697,19 @@ const cf = "var(--stroke-outline-subtle)", uf = "var(--material-brand-primary)",
|
|
|
7690
7697
|
} : void 0
|
|
7691
7698
|
]), 1032, ["index", "column-height", "prop", "align", "width", "width-percent", "min-width", "data"]))), 128))
|
|
7692
7699
|
], 8, If))), 128)),
|
|
7693
|
-
(C(!0), A(Xe, null, _t(O.value, (W,
|
|
7694
|
-
key:
|
|
7700
|
+
(C(!0), A(Xe, null, _t(O.value, (W, K) => (C(), A("tr", {
|
|
7701
|
+
key: K + e.dataList.length
|
|
7695
7702
|
}, [
|
|
7696
7703
|
ge(Nn, {
|
|
7697
7704
|
type: "select",
|
|
7698
7705
|
"select-visible": v.value,
|
|
7699
|
-
index:
|
|
7706
|
+
index: K + e.dataList.length,
|
|
7700
7707
|
"column-height": e.columnHeight,
|
|
7701
7708
|
blank: ""
|
|
7702
7709
|
}, null, 8, ["select-visible", "index", "column-height"]),
|
|
7703
7710
|
(C(!0), A(Xe, null, _t(U.value, (se, k) => (C(), Se(Nn, {
|
|
7704
|
-
key: `${
|
|
7705
|
-
index:
|
|
7711
|
+
key: `${K + e.dataList.length}-${k}`,
|
|
7712
|
+
index: K + e.dataList.length,
|
|
7706
7713
|
"column-height": e.columnHeight,
|
|
7707
7714
|
blank: ""
|
|
7708
7715
|
}, null, 8, ["index", "column-height"]))), 128))
|
|
@@ -7715,12 +7722,12 @@ const cf = "var(--stroke-outline-subtle)", uf = "var(--material-brand-primary)",
|
|
|
7715
7722
|
])) : J("", !0)
|
|
7716
7723
|
])),
|
|
7717
7724
|
!e.loading && e.dataList.length === 0 ? (C(), A("div", Af, [
|
|
7718
|
-
|
|
7725
|
+
F("div", xf, [
|
|
7719
7726
|
ge(te(_o), {
|
|
7720
7727
|
size: "40px",
|
|
7721
7728
|
color: "var(--text-base-quaternary)"
|
|
7722
7729
|
}),
|
|
7723
|
-
|
|
7730
|
+
F("div", Df, Z(te($e)("tableList.noData")), 1)
|
|
7724
7731
|
])
|
|
7725
7732
|
])) : (C(), A("div", Pf))
|
|
7726
7733
|
], 512)
|