@oiij/naive-ui 0.0.34 → 0.0.35
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/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inject as Tr, onBeforeMount as Mo, defineComponent as me, createBlock as z, openBlock as R, Transition as Lo, mergeProps as Z, unref as _, withCtx as O, renderSlot as U, ref as G, toValue as Ne, isRef as Qt, isReactive as No, watchEffect as Te, watch as He, computed as
|
|
2
|
-
import { NEl as an, NAvatar as Go, NFlex as Oe, NSpin as Or, cM as qn, NConfigProvider as Vo, NLoadingBarProvider as Wo, NDialogProvider as Zo, NModalProvider as Yo, NNotificationProvider as Xo, NMessageProvider as Qo, NGlobalStyle as Jo, useDialog as Ko, useLoadingBar as ei, useMessage as ui, useModal as ti, useNotification as ni, NTooltip as ln, NButton as
|
|
1
|
+
import { inject as Tr, onBeforeMount as Mo, defineComponent as me, createBlock as z, openBlock as R, Transition as Lo, mergeProps as Z, unref as _, withCtx as O, renderSlot as U, ref as G, toValue as Ne, isRef as Qt, isReactive as No, watchEffect as Te, watch as He, computed as oe, nextTick as Pr, normalizeClass as Ou, createElementVNode as Ge, normalizeStyle as rn, createVNode as V, createCommentVNode as ue, resolveDynamicComponent as se, Teleport as $o, normalizeProps as fe, guardReactiveProps as je, createSlots as Rr, onMounted as Io, createElementBlock as re, createTextVNode as vu, toDisplayString as eu, onScopeDispose as on, onUnmounted as zo, reactive as gu, toRefs as Bo, h as be, useTemplateRef as mt, Fragment as Ae, renderList as Qe, toRaw as Ee, toRef as Uo, withModifiers as qo, mergeModels as jo, useModel as Ho } from "vue";
|
|
2
|
+
import { NEl as an, NAvatar as Go, NFlex as Oe, NSpin as Or, cM as qn, NConfigProvider as Vo, NLoadingBarProvider as Wo, NDialogProvider as Zo, NModalProvider as Yo, NNotificationProvider as Xo, NMessageProvider as Qo, NGlobalStyle as Jo, useDialog as Ko, useLoadingBar as ei, useMessage as ui, useModal as ti, useNotification as ni, NTooltip as ln, NButton as uu, NFormItem as ri, NInputGroup as oi, NInput as sn, NTimePicker as ii, NSwitch as ai, NSlider as li, NSelect as Mr, NRate as si, NRadioGroup as ci, NInputNumber as fi, NDynamicTags as di, NDatePicker as pi, NDivider as cn, NCheckboxGroup as hi, NColorPicker as bi, NCheckbox as mi, NRadio as gi, NGrid as st, NGi as ct, NCollapseTransition as Lr, NDataTable as ki, NPagination as Nr, NForm as xi, NBadge as vi, NButtonGroup as _i, NModal as yi } from "naive-ui";
|
|
3
3
|
import { createEventHook as rt, useClipboard as Ei, useTimeoutFn as Ai, useDebounceFn as $r } from "@vueuse/core";
|
|
4
4
|
function wi(e) {
|
|
5
5
|
let u = ".", t = "__", n = "--", r;
|
|
@@ -604,24 +604,24 @@ function Vr() {
|
|
|
604
604
|
} = t, {
|
|
605
605
|
importNode: B
|
|
606
606
|
} = n;
|
|
607
|
-
let
|
|
607
|
+
let L = er();
|
|
608
608
|
u.isSupported = typeof qr == "function" && typeof g == "function" && k && k.createHTMLDocument !== void 0;
|
|
609
609
|
const {
|
|
610
|
-
MUSTACHE_EXPR:
|
|
611
|
-
ERB_EXPR:
|
|
610
|
+
MUSTACHE_EXPR: X,
|
|
611
|
+
ERB_EXPR: ie,
|
|
612
612
|
TMPLIT_EXPR: F,
|
|
613
613
|
DATA_ATTR: q,
|
|
614
|
-
ARIA_ATTR:
|
|
614
|
+
ARIA_ATTR: ee,
|
|
615
615
|
IS_SCRIPT_OR_DATA: C,
|
|
616
|
-
ATTR_WHITESPACE:
|
|
616
|
+
ATTR_WHITESPACE: N,
|
|
617
617
|
CUSTOM_ELEMENT: T
|
|
618
618
|
} = Kn;
|
|
619
619
|
let {
|
|
620
620
|
IS_ALLOWED_URI: J
|
|
621
621
|
} = Kn, $ = null;
|
|
622
622
|
const H = j({}, [...Yn, ...Mt, ...Lt, ...Nt, ...Xn]);
|
|
623
|
-
let
|
|
624
|
-
const
|
|
623
|
+
let Y = null;
|
|
624
|
+
const te = j({}, [...Qn, ...$t, ...Jn, ...Ju]);
|
|
625
625
|
let W = Object.seal(jr(null, {
|
|
626
626
|
tagNameCheck: {
|
|
627
627
|
writable: !0,
|
|
@@ -641,28 +641,28 @@ function Vr() {
|
|
|
641
641
|
enumerable: !0,
|
|
642
642
|
value: !1
|
|
643
643
|
}
|
|
644
|
-
})), ve = null,
|
|
644
|
+
})), ve = null, Ve = null, iu = !0, au = !0, lu = !1, nu = !0, We = !1, Ze = !0, ru = !1, At = !1, wt = !1, su = !1, qu = !1, ju = !1, An = !0, wn = !1;
|
|
645
645
|
const Co = "user-content-";
|
|
646
|
-
let Ct = !0, yu = !1,
|
|
646
|
+
let Ct = !0, yu = !1, cu = {}, fu = null;
|
|
647
647
|
const Cn = j({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
648
648
|
let Dn = null;
|
|
649
649
|
const Fn = j({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
650
650
|
let Dt = null;
|
|
651
651
|
const Sn = j({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Hu = "http://www.w3.org/1998/Math/MathML", Gu = "http://www.w3.org/2000/svg", ze = "http://www.w3.org/1999/xhtml";
|
|
652
|
-
let
|
|
652
|
+
let du = ze, Ft = !1, St = null;
|
|
653
653
|
const Do = j({}, [Hu, Gu, ze], Ot);
|
|
654
654
|
let Vu = j({}, ["mi", "mo", "mn", "ms", "mtext"]), Wu = j({}, ["annotation-xml"]);
|
|
655
655
|
const Fo = j({}, ["title", "style", "font", "a", "script"]);
|
|
656
656
|
let Eu = null;
|
|
657
657
|
const So = ["application/xhtml+xml", "text/html"], To = "text/html";
|
|
658
|
-
let ae = null,
|
|
658
|
+
let ae = null, pu = null;
|
|
659
659
|
const Po = t.createElement("form"), Tn = function(m) {
|
|
660
660
|
return m instanceof RegExp || m instanceof Function;
|
|
661
661
|
}, Tt = function() {
|
|
662
662
|
let m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
663
|
-
if (!(
|
|
663
|
+
if (!(pu && pu === m)) {
|
|
664
664
|
if ((!m || typeof m != "object") && (m = {}), m = qe(m), Eu = // eslint-disable-next-line unicorn/prefer-includes
|
|
665
|
-
So.indexOf(m.PARSER_MEDIA_TYPE) === -1 ? To : m.PARSER_MEDIA_TYPE, ae = Eu === "application/xhtml+xml" ? Ot : ot, $ = Se(m, "ALLOWED_TAGS") ? j({}, m.ALLOWED_TAGS, ae) : H,
|
|
665
|
+
So.indexOf(m.PARSER_MEDIA_TYPE) === -1 ? To : m.PARSER_MEDIA_TYPE, ae = Eu === "application/xhtml+xml" ? Ot : ot, $ = Se(m, "ALLOWED_TAGS") ? j({}, m.ALLOWED_TAGS, ae) : H, Y = Se(m, "ALLOWED_ATTR") ? j({}, m.ALLOWED_ATTR, ae) : te, St = Se(m, "ALLOWED_NAMESPACES") ? j({}, m.ALLOWED_NAMESPACES, Ot) : Do, Dt = Se(m, "ADD_URI_SAFE_ATTR") ? j(qe(Sn), m.ADD_URI_SAFE_ATTR, ae) : Sn, Dn = Se(m, "ADD_DATA_URI_TAGS") ? j(qe(Fn), m.ADD_DATA_URI_TAGS, ae) : Fn, fu = Se(m, "FORBID_CONTENTS") ? j({}, m.FORBID_CONTENTS, ae) : Cn, ve = Se(m, "FORBID_TAGS") ? j({}, m.FORBID_TAGS, ae) : qe({}), Ve = Se(m, "FORBID_ATTR") ? j({}, m.FORBID_ATTR, ae) : qe({}), cu = Se(m, "USE_PROFILES") ? m.USE_PROFILES : !1, iu = m.ALLOW_ARIA_ATTR !== !1, au = m.ALLOW_DATA_ATTR !== !1, lu = m.ALLOW_UNKNOWN_PROTOCOLS || !1, nu = m.ALLOW_SELF_CLOSE_IN_ATTR !== !1, We = m.SAFE_FOR_TEMPLATES || !1, Ze = m.SAFE_FOR_XML !== !1, ru = m.WHOLE_DOCUMENT || !1, su = m.RETURN_DOM || !1, qu = m.RETURN_DOM_FRAGMENT || !1, ju = m.RETURN_TRUSTED_TYPE || !1, wt = m.FORCE_BODY || !1, An = m.SANITIZE_DOM !== !1, wn = m.SANITIZE_NAMED_PROPS || !1, Ct = m.KEEP_CONTENT !== !1, yu = m.IN_PLACE || !1, J = m.ALLOWED_URI_REGEXP || Hr, du = m.NAMESPACE || ze, Vu = m.MATHML_TEXT_INTEGRATION_POINTS || Vu, Wu = m.HTML_INTEGRATION_POINTS || Wu, W = m.CUSTOM_ELEMENT_HANDLING || {}, m.CUSTOM_ELEMENT_HANDLING && Tn(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (W.tagNameCheck = m.CUSTOM_ELEMENT_HANDLING.tagNameCheck), m.CUSTOM_ELEMENT_HANDLING && Tn(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (W.attributeNameCheck = m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), m.CUSTOM_ELEMENT_HANDLING && typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (W.allowCustomizedBuiltInElements = m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), We && (au = !1), qu && (su = !0), cu && ($ = j({}, Xn), Y = [], cu.html === !0 && (j($, Yn), j(Y, Qn)), cu.svg === !0 && (j($, Mt), j(Y, $t), j(Y, Ju)), cu.svgFilters === !0 && (j($, Lt), j(Y, $t), j(Y, Ju)), cu.mathMl === !0 && (j($, Nt), j(Y, Jn), j(Y, Ju))), m.ADD_TAGS && ($ === H && ($ = qe($)), j($, m.ADD_TAGS, ae)), m.ADD_ATTR && (Y === te && (Y = qe(Y)), j(Y, m.ADD_ATTR, ae)), m.ADD_URI_SAFE_ATTR && j(Dt, m.ADD_URI_SAFE_ATTR, ae), m.FORBID_CONTENTS && (fu === Cn && (fu = qe(fu)), j(fu, m.FORBID_CONTENTS, ae)), Ct && ($["#text"] = !0), ru && j($, ["html", "head", "body"]), $.table && (j($, ["tbody"]), delete ve.tbody), m.TRUSTED_TYPES_POLICY) {
|
|
666
666
|
if (typeof m.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
667
667
|
throw Du('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
668
668
|
if (typeof m.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -670,16 +670,16 @@ function Vr() {
|
|
|
670
670
|
h = m.TRUSTED_TYPES_POLICY, b = h.createHTML("");
|
|
671
671
|
} else
|
|
672
672
|
h === void 0 && (h = va(x, r)), h !== null && typeof b == "string" && (b = h.createHTML(""));
|
|
673
|
-
ke && ke(m),
|
|
673
|
+
ke && ke(m), pu = m;
|
|
674
674
|
}
|
|
675
675
|
}, Pn = j({}, [...Mt, ...Lt, ...sa]), Rn = j({}, [...Nt, ...ca]), Ro = function(m) {
|
|
676
676
|
let S = g(m);
|
|
677
677
|
(!S || !S.tagName) && (S = {
|
|
678
|
-
namespaceURI:
|
|
678
|
+
namespaceURI: du,
|
|
679
679
|
tagName: "template"
|
|
680
680
|
});
|
|
681
|
-
const M = ot(m.tagName),
|
|
682
|
-
return St[m.namespaceURI] ? m.namespaceURI === Gu ? S.namespaceURI === ze ? M === "svg" : S.namespaceURI === Hu ? M === "svg" && (
|
|
681
|
+
const M = ot(m.tagName), K = ot(S.tagName);
|
|
682
|
+
return St[m.namespaceURI] ? m.namespaceURI === Gu ? S.namespaceURI === ze ? M === "svg" : S.namespaceURI === Hu ? M === "svg" && (K === "annotation-xml" || Vu[K]) : !!Pn[M] : m.namespaceURI === Hu ? S.namespaceURI === ze ? M === "math" : S.namespaceURI === Gu ? M === "math" && Wu[K] : !!Rn[M] : m.namespaceURI === ze ? S.namespaceURI === Gu && !Wu[K] || S.namespaceURI === Hu && !Vu[K] ? !1 : !Rn[M] && (Fo[M] || !Pn[M]) : !!(Eu === "application/xhtml+xml" && St[m.namespaceURI]) : !1;
|
|
683
683
|
}, Re = function(m) {
|
|
684
684
|
wu(u.removed, {
|
|
685
685
|
element: m
|
|
@@ -689,7 +689,7 @@ function Vr() {
|
|
|
689
689
|
} catch {
|
|
690
690
|
A(m);
|
|
691
691
|
}
|
|
692
|
-
},
|
|
692
|
+
}, hu = function(m, S) {
|
|
693
693
|
try {
|
|
694
694
|
wu(u.removed, {
|
|
695
695
|
attribute: S.getAttributeNode(m),
|
|
@@ -702,7 +702,7 @@ function Vr() {
|
|
|
702
702
|
});
|
|
703
703
|
}
|
|
704
704
|
if (S.removeAttribute(m), m === "is")
|
|
705
|
-
if (
|
|
705
|
+
if (su || qu)
|
|
706
706
|
try {
|
|
707
707
|
Re(S);
|
|
708
708
|
} catch {
|
|
@@ -717,25 +717,25 @@ function Vr() {
|
|
|
717
717
|
if (wt)
|
|
718
718
|
m = "<remove></remove>" + m;
|
|
719
719
|
else {
|
|
720
|
-
const
|
|
721
|
-
M =
|
|
720
|
+
const ne = Zn(m, /^[\r\n\t ]+/);
|
|
721
|
+
M = ne && ne[0];
|
|
722
722
|
}
|
|
723
|
-
Eu === "application/xhtml+xml" &&
|
|
724
|
-
const
|
|
725
|
-
if (
|
|
723
|
+
Eu === "application/xhtml+xml" && du === ze && (m = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + m + "</body></html>");
|
|
724
|
+
const K = h ? h.createHTML(m) : m;
|
|
725
|
+
if (du === ze)
|
|
726
726
|
try {
|
|
727
|
-
S = new y().parseFromString(
|
|
727
|
+
S = new y().parseFromString(K, Eu);
|
|
728
728
|
} catch {
|
|
729
729
|
}
|
|
730
730
|
if (!S || !S.documentElement) {
|
|
731
|
-
S = k.createDocument(
|
|
731
|
+
S = k.createDocument(du, "template", null);
|
|
732
732
|
try {
|
|
733
|
-
S.documentElement.innerHTML = Ft ? b :
|
|
733
|
+
S.documentElement.innerHTML = Ft ? b : K;
|
|
734
734
|
} catch {
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
737
|
const de = S.body || S.documentElement;
|
|
738
|
-
return m && M && de.insertBefore(t.createTextNode(M), de.childNodes[0] || null),
|
|
738
|
+
return m && M && de.insertBefore(t.createTextNode(M), de.childNodes[0] || null), du === ze ? D.call(S, ru ? "html" : "body")[0] : ru ? S.documentElement : de;
|
|
739
739
|
}, Mn = function(m) {
|
|
740
740
|
return w.call(
|
|
741
741
|
m.ownerDocument || m,
|
|
@@ -751,45 +751,45 @@ function Vr() {
|
|
|
751
751
|
};
|
|
752
752
|
function Be(I, m, S) {
|
|
753
753
|
Qu(I, (M) => {
|
|
754
|
-
M.call(u, m, S,
|
|
754
|
+
M.call(u, m, S, pu);
|
|
755
755
|
});
|
|
756
756
|
}
|
|
757
757
|
const Nn = function(m) {
|
|
758
758
|
let S = null;
|
|
759
|
-
if (Be(
|
|
759
|
+
if (Be(L.beforeSanitizeElements, m, null), Pt(m))
|
|
760
760
|
return Re(m), !0;
|
|
761
761
|
const M = ae(m.nodeName);
|
|
762
|
-
if (Be(
|
|
762
|
+
if (Be(L.uponSanitizeElement, m, {
|
|
763
763
|
tagName: M,
|
|
764
764
|
allowedTags: $
|
|
765
|
-
}),
|
|
765
|
+
}), Ze && m.hasChildNodes() && !Ln(m.firstElementChild) && ge(/<[/\w!]/g, m.innerHTML) && ge(/<[/\w!]/g, m.textContent) || m.nodeType === Su.progressingInstruction || Ze && m.nodeType === Su.comment && ge(/<[/\w]/g, m.data))
|
|
766
766
|
return Re(m), !0;
|
|
767
767
|
if (!$[M] || ve[M]) {
|
|
768
768
|
if (!ve[M] && In(M) && (W.tagNameCheck instanceof RegExp && ge(W.tagNameCheck, M) || W.tagNameCheck instanceof Function && W.tagNameCheck(M)))
|
|
769
769
|
return !1;
|
|
770
|
-
if (Ct && !
|
|
771
|
-
const
|
|
772
|
-
if (de &&
|
|
773
|
-
const
|
|
774
|
-
for (let _e =
|
|
770
|
+
if (Ct && !fu[M]) {
|
|
771
|
+
const K = g(m) || m.parentNode, de = f(m) || m.childNodes;
|
|
772
|
+
if (de && K) {
|
|
773
|
+
const ne = de.length;
|
|
774
|
+
for (let _e = ne - 1; _e >= 0; --_e) {
|
|
775
775
|
const Ue = v(de[_e], !0);
|
|
776
|
-
Ue.__removalCount = (m.__removalCount || 0) + 1,
|
|
776
|
+
Ue.__removalCount = (m.__removalCount || 0) + 1, K.insertBefore(Ue, E(m));
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
780
|
return Re(m), !0;
|
|
781
781
|
}
|
|
782
|
-
return m instanceof l && !Ro(m) || (M === "noscript" || M === "noembed" || M === "noframes") && ge(/<\/no(script|embed|frames)/i, m.innerHTML) ? (Re(m), !0) : (
|
|
783
|
-
S = Cu(S,
|
|
782
|
+
return m instanceof l && !Ro(m) || (M === "noscript" || M === "noembed" || M === "noframes") && ge(/<\/no(script|embed|frames)/i, m.innerHTML) ? (Re(m), !0) : (We && m.nodeType === Su.text && (S = m.textContent, Qu([X, ie, F], (K) => {
|
|
783
|
+
S = Cu(S, K, " ");
|
|
784
784
|
}), m.textContent !== S && (wu(u.removed, {
|
|
785
785
|
element: m.cloneNode()
|
|
786
|
-
}), m.textContent = S)), Be(
|
|
786
|
+
}), m.textContent = S)), Be(L.afterSanitizeElements, m, null), !1);
|
|
787
787
|
}, $n = function(m, S, M) {
|
|
788
788
|
if (An && (S === "id" || S === "name") && (M in t || M in Po))
|
|
789
789
|
return !1;
|
|
790
|
-
if (!(
|
|
791
|
-
if (!(
|
|
792
|
-
if (!
|
|
790
|
+
if (!(au && !Ve[S] && ge(q, S))) {
|
|
791
|
+
if (!(iu && ge(ee, S))) {
|
|
792
|
+
if (!Y[S] || Ve[S]) {
|
|
793
793
|
if (
|
|
794
794
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
795
795
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
@@ -799,9 +799,9 @@ function Vr() {
|
|
|
799
799
|
S === "is" && W.allowCustomizedBuiltInElements && (W.tagNameCheck instanceof RegExp && ge(W.tagNameCheck, M) || W.tagNameCheck instanceof Function && W.tagNameCheck(M)))
|
|
800
800
|
) return !1;
|
|
801
801
|
} else if (!Dt[S]) {
|
|
802
|
-
if (!ge(J, Cu(M,
|
|
802
|
+
if (!ge(J, Cu(M, N, ""))) {
|
|
803
803
|
if (!((S === "src" || S === "xlink:href" || S === "href") && m !== "script" && oa(M, "data:") === 0 && Dn[m])) {
|
|
804
|
-
if (!(
|
|
804
|
+
if (!(lu && !ge(C, Cu(M, N, "")))) {
|
|
805
805
|
if (M)
|
|
806
806
|
return !1;
|
|
807
807
|
}
|
|
@@ -814,7 +814,7 @@ function Vr() {
|
|
|
814
814
|
}, In = function(m) {
|
|
815
815
|
return m !== "annotation-xml" && Zn(m, T);
|
|
816
816
|
}, zn = function(m) {
|
|
817
|
-
Be(
|
|
817
|
+
Be(L.beforeSanitizeAttributes, m, null);
|
|
818
818
|
const {
|
|
819
819
|
attributes: S
|
|
820
820
|
} = m;
|
|
@@ -824,37 +824,37 @@ function Vr() {
|
|
|
824
824
|
attrName: "",
|
|
825
825
|
attrValue: "",
|
|
826
826
|
keepAttr: !0,
|
|
827
|
-
allowedAttributes:
|
|
827
|
+
allowedAttributes: Y,
|
|
828
828
|
forceKeepAttr: void 0
|
|
829
829
|
};
|
|
830
|
-
let
|
|
831
|
-
for (;
|
|
832
|
-
const de = S[
|
|
833
|
-
name:
|
|
830
|
+
let K = S.length;
|
|
831
|
+
for (; K--; ) {
|
|
832
|
+
const de = S[K], {
|
|
833
|
+
name: ne,
|
|
834
834
|
namespaceURI: _e,
|
|
835
835
|
value: Ue
|
|
836
|
-
} = de, Au = ae(
|
|
837
|
-
let pe =
|
|
838
|
-
if (M.attrName = Au, M.attrValue = pe, M.keepAttr = !0, M.forceKeepAttr = void 0, Be(
|
|
839
|
-
|
|
836
|
+
} = de, Au = ae(ne), Rt = Ue;
|
|
837
|
+
let pe = ne === "value" ? Rt : ia(Rt);
|
|
838
|
+
if (M.attrName = Au, M.attrValue = pe, M.keepAttr = !0, M.forceKeepAttr = void 0, Be(L.uponSanitizeAttribute, m, M), pe = M.attrValue, wn && (Au === "id" || Au === "name") && (hu(ne, m), pe = Co + pe), Ze && ge(/((--!?|])>)|<\/(style|title)/i, pe)) {
|
|
839
|
+
hu(ne, m);
|
|
840
840
|
continue;
|
|
841
841
|
}
|
|
842
842
|
if (M.forceKeepAttr)
|
|
843
843
|
continue;
|
|
844
844
|
if (!M.keepAttr) {
|
|
845
|
-
|
|
845
|
+
hu(ne, m);
|
|
846
846
|
continue;
|
|
847
847
|
}
|
|
848
848
|
if (!nu && ge(/\/>/i, pe)) {
|
|
849
|
-
|
|
849
|
+
hu(ne, m);
|
|
850
850
|
continue;
|
|
851
851
|
}
|
|
852
|
-
|
|
852
|
+
We && Qu([X, ie, F], (Un) => {
|
|
853
853
|
pe = Cu(pe, Un, " ");
|
|
854
854
|
});
|
|
855
855
|
const Bn = ae(m.nodeName);
|
|
856
856
|
if (!$n(Bn, Au, pe)) {
|
|
857
|
-
|
|
857
|
+
hu(ne, m);
|
|
858
858
|
continue;
|
|
859
859
|
}
|
|
860
860
|
if (h && typeof x == "object" && typeof x.getAttributeType == "function" && !_e)
|
|
@@ -870,21 +870,21 @@ function Vr() {
|
|
|
870
870
|
}
|
|
871
871
|
if (pe !== Rt)
|
|
872
872
|
try {
|
|
873
|
-
_e ? m.setAttributeNS(_e,
|
|
873
|
+
_e ? m.setAttributeNS(_e, ne, pe) : m.setAttribute(ne, pe), Pt(m) ? Re(m) : Wn(u.removed);
|
|
874
874
|
} catch {
|
|
875
|
-
|
|
875
|
+
hu(ne, m);
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
|
-
Be(
|
|
878
|
+
Be(L.afterSanitizeAttributes, m, null);
|
|
879
879
|
}, Oo = function I(m) {
|
|
880
880
|
let S = null;
|
|
881
881
|
const M = Mn(m);
|
|
882
|
-
for (Be(
|
|
883
|
-
Be(
|
|
884
|
-
Be(
|
|
882
|
+
for (Be(L.beforeSanitizeShadowDOM, m, null); S = M.nextNode(); )
|
|
883
|
+
Be(L.uponSanitizeShadowNode, S, null), Nn(S), zn(S), S.content instanceof o && I(S.content);
|
|
884
|
+
Be(L.afterSanitizeShadowDOM, m, null);
|
|
885
885
|
};
|
|
886
886
|
return u.sanitize = function(I) {
|
|
887
|
-
let m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = null, M = null,
|
|
887
|
+
let m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = null, M = null, K = null, de = null;
|
|
888
888
|
if (Ft = !I, Ft && (I = "<!-->"), typeof I != "string" && !Ln(I))
|
|
889
889
|
if (typeof I.toString == "function") {
|
|
890
890
|
if (I = I.toString(), typeof I != "string")
|
|
@@ -902,52 +902,52 @@ function Vr() {
|
|
|
902
902
|
} else if (I instanceof i)
|
|
903
903
|
S = On("<!---->"), M = S.ownerDocument.importNode(I, !0), M.nodeType === Su.element && M.nodeName === "BODY" || M.nodeName === "HTML" ? S = M : S.appendChild(M);
|
|
904
904
|
else {
|
|
905
|
-
if (!
|
|
905
|
+
if (!su && !We && !ru && // eslint-disable-next-line unicorn/prefer-includes
|
|
906
906
|
I.indexOf("<") === -1)
|
|
907
907
|
return h && ju ? h.createHTML(I) : I;
|
|
908
908
|
if (S = On(I), !S)
|
|
909
|
-
return
|
|
909
|
+
return su ? null : ju ? b : "";
|
|
910
910
|
}
|
|
911
911
|
S && wt && Re(S.firstChild);
|
|
912
|
-
const
|
|
913
|
-
for (;
|
|
914
|
-
Nn(
|
|
912
|
+
const ne = Mn(yu ? I : S);
|
|
913
|
+
for (; K = ne.nextNode(); )
|
|
914
|
+
Nn(K), zn(K), K.content instanceof o && Oo(K.content);
|
|
915
915
|
if (yu)
|
|
916
916
|
return I;
|
|
917
|
-
if (
|
|
917
|
+
if (su) {
|
|
918
918
|
if (qu)
|
|
919
919
|
for (de = P.call(S.ownerDocument); S.firstChild; )
|
|
920
920
|
de.appendChild(S.firstChild);
|
|
921
921
|
else
|
|
922
922
|
de = S;
|
|
923
|
-
return (
|
|
923
|
+
return (Y.shadowroot || Y.shadowrootmode) && (de = B.call(n, de, !0)), de;
|
|
924
924
|
}
|
|
925
925
|
let _e = ru ? S.outerHTML : S.innerHTML;
|
|
926
926
|
return ru && $["!doctype"] && S.ownerDocument && S.ownerDocument.doctype && S.ownerDocument.doctype.name && ge(Gr, S.ownerDocument.doctype.name) && (_e = "<!DOCTYPE " + S.ownerDocument.doctype.name + `>
|
|
927
|
-
` + _e),
|
|
927
|
+
` + _e), We && Qu([X, ie, F], (Ue) => {
|
|
928
928
|
_e = Cu(_e, Ue, " ");
|
|
929
929
|
}), h && ju ? h.createHTML(_e) : _e;
|
|
930
930
|
}, u.setConfig = function() {
|
|
931
931
|
let I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
932
932
|
Tt(I), At = !0;
|
|
933
933
|
}, u.clearConfig = function() {
|
|
934
|
-
|
|
934
|
+
pu = null, At = !1;
|
|
935
935
|
}, u.isValidAttribute = function(I, m, S) {
|
|
936
|
-
|
|
937
|
-
const M = ae(I),
|
|
938
|
-
return $n(M,
|
|
936
|
+
pu || Tt({});
|
|
937
|
+
const M = ae(I), K = ae(m);
|
|
938
|
+
return $n(M, K, S);
|
|
939
939
|
}, u.addHook = function(I, m) {
|
|
940
|
-
typeof m == "function" && wu(
|
|
940
|
+
typeof m == "function" && wu(L[I], m);
|
|
941
941
|
}, u.removeHook = function(I, m) {
|
|
942
942
|
if (m !== void 0) {
|
|
943
|
-
const S = na(
|
|
944
|
-
return S === -1 ? void 0 : ra(
|
|
943
|
+
const S = na(L[I], m);
|
|
944
|
+
return S === -1 ? void 0 : ra(L[I], S, 1)[0];
|
|
945
945
|
}
|
|
946
|
-
return Wn(
|
|
946
|
+
return Wn(L[I]);
|
|
947
947
|
}, u.removeHooks = function(I) {
|
|
948
|
-
|
|
948
|
+
L[I] = [];
|
|
949
949
|
}, u.removeAllHooks = function() {
|
|
950
|
-
|
|
950
|
+
L = er();
|
|
951
951
|
}, u;
|
|
952
952
|
}
|
|
953
953
|
var _a = Vr();
|
|
@@ -967,8 +967,8 @@ function ya(e) {
|
|
|
967
967
|
}
|
|
968
968
|
return u;
|
|
969
969
|
}
|
|
970
|
-
function
|
|
971
|
-
typeof u != "string" && (u =
|
|
970
|
+
function ku(e, u) {
|
|
971
|
+
typeof u != "string" && (u = ku.defaultChars);
|
|
972
972
|
const t = ya(u);
|
|
973
973
|
return e.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
|
974
974
|
let r = "";
|
|
@@ -1007,8 +1007,8 @@ function xu(e, u) {
|
|
|
1007
1007
|
return r;
|
|
1008
1008
|
});
|
|
1009
1009
|
}
|
|
1010
|
-
|
|
1011
|
-
|
|
1010
|
+
ku.defaultChars = ";/?:@&=+$,#";
|
|
1011
|
+
ku.componentChars = "";
|
|
1012
1012
|
const tr = {};
|
|
1013
1013
|
function Ea(e) {
|
|
1014
1014
|
let u = tr[e];
|
|
@@ -1131,7 +1131,7 @@ ft.prototype.parseHost = function(e) {
|
|
|
1131
1131
|
};
|
|
1132
1132
|
const Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1133
1133
|
__proto__: null,
|
|
1134
|
-
decode:
|
|
1134
|
+
decode: ku,
|
|
1135
1135
|
encode: zu,
|
|
1136
1136
|
format: dn,
|
|
1137
1137
|
parse: pn
|
|
@@ -1197,10 +1197,10 @@ var ce;
|
|
|
1197
1197
|
e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
|
|
1198
1198
|
})(ce || (ce = {}));
|
|
1199
1199
|
const Ba = 32;
|
|
1200
|
-
var
|
|
1200
|
+
var Je;
|
|
1201
1201
|
(function(e) {
|
|
1202
1202
|
e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
1203
|
-
})(
|
|
1203
|
+
})(Je || (Je = {}));
|
|
1204
1204
|
function un(e) {
|
|
1205
1205
|
return e >= ce.ZERO && e <= ce.NINE;
|
|
1206
1206
|
}
|
|
@@ -1217,13 +1217,13 @@ var le;
|
|
|
1217
1217
|
(function(e) {
|
|
1218
1218
|
e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity";
|
|
1219
1219
|
})(le || (le = {}));
|
|
1220
|
-
var
|
|
1220
|
+
var Xe;
|
|
1221
1221
|
(function(e) {
|
|
1222
1222
|
e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
|
|
1223
|
-
})(
|
|
1223
|
+
})(Xe || (Xe = {}));
|
|
1224
1224
|
class Ha {
|
|
1225
1225
|
constructor(u, t, n) {
|
|
1226
|
-
this.decodeTree = u, this.emitCodePoint = t, this.errors = n, this.state = le.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode =
|
|
1226
|
+
this.decodeTree = u, this.emitCodePoint = t, this.errors = n, this.state = le.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = Xe.Strict;
|
|
1227
1227
|
}
|
|
1228
1228
|
/** Resets the instance to make it reusable. */
|
|
1229
1229
|
startEntity(u) {
|
|
@@ -1331,7 +1331,7 @@ class Ha {
|
|
|
1331
1331
|
return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
1332
1332
|
if (u === ce.SEMI)
|
|
1333
1333
|
this.consumed += 1;
|
|
1334
|
-
else if (this.decodeMode ===
|
|
1334
|
+
else if (this.decodeMode === Xe.Strict)
|
|
1335
1335
|
return 0;
|
|
1336
1336
|
return this.emitCodePoint(za(this.result), this.consumed), this.errors && (u !== ce.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
1337
1337
|
}
|
|
@@ -1346,18 +1346,18 @@ class Ha {
|
|
|
1346
1346
|
*/
|
|
1347
1347
|
stateNamedEntity(u, t) {
|
|
1348
1348
|
const { decodeTree: n } = this;
|
|
1349
|
-
let r = n[this.treeIndex], o = (r &
|
|
1349
|
+
let r = n[this.treeIndex], o = (r & Je.VALUE_LENGTH) >> 14;
|
|
1350
1350
|
for (; t < u.length; t++, this.excess++) {
|
|
1351
1351
|
const a = u.charCodeAt(t);
|
|
1352
1352
|
if (this.treeIndex = Ga(n, r, this.treeIndex + Math.max(1, o), a), this.treeIndex < 0)
|
|
1353
1353
|
return this.result === 0 || // If we are parsing an attribute
|
|
1354
|
-
this.decodeMode ===
|
|
1354
|
+
this.decodeMode === Xe.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
1355
1355
|
(o === 0 || // And there should be no invalid characters.
|
|
1356
1356
|
ja(a)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1357
|
-
if (r = n[this.treeIndex], o = (r &
|
|
1357
|
+
if (r = n[this.treeIndex], o = (r & Je.VALUE_LENGTH) >> 14, o !== 0) {
|
|
1358
1358
|
if (a === ce.SEMI)
|
|
1359
1359
|
return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
|
|
1360
|
-
this.decodeMode !==
|
|
1360
|
+
this.decodeMode !== Xe.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
1361
1361
|
}
|
|
1362
1362
|
}
|
|
1363
1363
|
return -1;
|
|
@@ -1369,7 +1369,7 @@ class Ha {
|
|
|
1369
1369
|
*/
|
|
1370
1370
|
emitNotTerminatedNamedEntity() {
|
|
1371
1371
|
var u;
|
|
1372
|
-
const { result: t, decodeTree: n } = this, r = (n[t] &
|
|
1372
|
+
const { result: t, decodeTree: n } = this, r = (n[t] & Je.VALUE_LENGTH) >> 14;
|
|
1373
1373
|
return this.emitNamedEntityData(t, r, this.consumed), (u = this.errors) === null || u === void 0 || u.missingSemicolonAfterCharacterReference(), this.consumed;
|
|
1374
1374
|
}
|
|
1375
1375
|
/**
|
|
@@ -1383,7 +1383,7 @@ class Ha {
|
|
|
1383
1383
|
*/
|
|
1384
1384
|
emitNamedEntityData(u, t, n) {
|
|
1385
1385
|
const { decodeTree: r } = this;
|
|
1386
|
-
return this.emitCodePoint(t === 1 ? r[u] & ~
|
|
1386
|
+
return this.emitCodePoint(t === 1 ? r[u] & ~Je.VALUE_LENGTH : r[u + 1], n), t === 3 && this.emitCodePoint(r[u + 2], n), n;
|
|
1387
1387
|
}
|
|
1388
1388
|
/**
|
|
1389
1389
|
* Signal to the parser that the end of the input was reached.
|
|
@@ -1396,7 +1396,7 @@ class Ha {
|
|
|
1396
1396
|
var u;
|
|
1397
1397
|
switch (this.state) {
|
|
1398
1398
|
case le.NamedEntity:
|
|
1399
|
-
return this.result !== 0 && (this.decodeMode !==
|
|
1399
|
+
return this.result !== 0 && (this.decodeMode !== Xe.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
1400
1400
|
// Otherwise, emit a numeric entity if we have one.
|
|
1401
1401
|
case le.NumericDecimal:
|
|
1402
1402
|
return this.emitNumericEntity(0, 2);
|
|
@@ -1432,7 +1432,7 @@ function Qr(e) {
|
|
|
1432
1432
|
};
|
|
1433
1433
|
}
|
|
1434
1434
|
function Ga(e, u, t, n) {
|
|
1435
|
-
const r = (u &
|
|
1435
|
+
const r = (u & Je.BRANCH_LENGTH) >> 7, o = u & Je.JUMP_TABLE;
|
|
1436
1436
|
if (r === 0)
|
|
1437
1437
|
return o !== 0 && n === o ? t : -1;
|
|
1438
1438
|
if (o) {
|
|
@@ -1453,7 +1453,7 @@ function Ga(e, u, t, n) {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
const Va = Qr(La);
|
|
1455
1455
|
Qr(Na);
|
|
1456
|
-
function Jr(e, u =
|
|
1456
|
+
function Jr(e, u = Xe.Legacy) {
|
|
1457
1457
|
return Va(e, u);
|
|
1458
1458
|
}
|
|
1459
1459
|
function Wa(e) {
|
|
@@ -1503,7 +1503,7 @@ function Ka(e, u) {
|
|
|
1503
1503
|
function e0(e) {
|
|
1504
1504
|
return e.indexOf("\\") < 0 ? e : e.replace(eo, "$1");
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1506
|
+
function xu(e) {
|
|
1507
1507
|
return e.indexOf("\\") < 0 && e.indexOf("&") < 0 ? e : e.replace(Qa, function(u, t, n) {
|
|
1508
1508
|
return t || Ka(u, n);
|
|
1509
1509
|
});
|
|
@@ -1517,7 +1517,7 @@ const u0 = /[&<>"]/, t0 = /[&<>"]/g, n0 = {
|
|
|
1517
1517
|
function r0(e) {
|
|
1518
1518
|
return n0[e];
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function tu(e) {
|
|
1521
1521
|
return u0.test(e) ? e.replace(t0, r0) : e;
|
|
1522
1522
|
}
|
|
1523
1523
|
const o0 = /[.?*+^$[\]\\(){}|-]/g;
|
|
@@ -1605,7 +1605,7 @@ const a0 = { mdurl: Ra, ucmicro: Ma }, l0 = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1605
1605
|
__proto__: null,
|
|
1606
1606
|
arrayReplaceAt: Kr,
|
|
1607
1607
|
assign: vt,
|
|
1608
|
-
escapeHtml:
|
|
1608
|
+
escapeHtml: tu,
|
|
1609
1609
|
escapeRE: i0,
|
|
1610
1610
|
fromCodePoint: dt,
|
|
1611
1611
|
has: Ya,
|
|
@@ -1617,7 +1617,7 @@ const a0 = { mdurl: Ra, ucmicro: Ma }, l0 = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1617
1617
|
isWhiteSpace: Mu,
|
|
1618
1618
|
lib: a0,
|
|
1619
1619
|
normalizeReference: _t,
|
|
1620
|
-
unescapeAll:
|
|
1620
|
+
unescapeAll: xu,
|
|
1621
1621
|
unescapeMd: e0
|
|
1622
1622
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1623
1623
|
function s0(e, u, t) {
|
|
@@ -1650,7 +1650,7 @@ function c0(e, u, t) {
|
|
|
1650
1650
|
if (n = e.charCodeAt(r), n === 10 || n === 60)
|
|
1651
1651
|
return o;
|
|
1652
1652
|
if (n === 62)
|
|
1653
|
-
return o.pos = r + 1, o.str =
|
|
1653
|
+
return o.pos = r + 1, o.str = xu(e.slice(u + 1, r)), o.ok = !0, o;
|
|
1654
1654
|
if (n === 92 && r + 1 < t) {
|
|
1655
1655
|
r += 2;
|
|
1656
1656
|
continue;
|
|
@@ -1676,7 +1676,7 @@ function c0(e, u, t) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
r++;
|
|
1678
1678
|
}
|
|
1679
|
-
return u === r || a !== 0 || (o.str =
|
|
1679
|
+
return u === r || a !== 0 || (o.str = xu(e.slice(u, r)), o.pos = r, o.ok = !0), o;
|
|
1680
1680
|
}
|
|
1681
1681
|
function f0(e, u, t, n) {
|
|
1682
1682
|
let r, o = u;
|
|
@@ -1704,12 +1704,12 @@ function f0(e, u, t, n) {
|
|
|
1704
1704
|
}
|
|
1705
1705
|
for (; o < t; ) {
|
|
1706
1706
|
if (r = e.charCodeAt(o), r === a.marker)
|
|
1707
|
-
return a.pos = o + 1, a.str +=
|
|
1707
|
+
return a.pos = o + 1, a.str += xu(e.slice(u, o)), a.ok = !0, a;
|
|
1708
1708
|
if (r === 40 && a.marker === 41)
|
|
1709
1709
|
return a;
|
|
1710
1710
|
r === 92 && o + 1 < t && o++, o++;
|
|
1711
1711
|
}
|
|
1712
|
-
return a.can_continue = !0, a.str +=
|
|
1712
|
+
return a.can_continue = !0, a.str += xu(e.slice(u, o)), a;
|
|
1713
1713
|
}
|
|
1714
1714
|
const d0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1715
1715
|
__proto__: null,
|
|
@@ -1719,22 +1719,22 @@ const d0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1719
1719
|
}, Symbol.toStringTag, { value: "Module" })), $e = {};
|
|
1720
1720
|
$e.code_inline = function(e, u, t, n, r) {
|
|
1721
1721
|
const o = e[u];
|
|
1722
|
-
return "<code" + r.renderAttrs(o) + ">" +
|
|
1722
|
+
return "<code" + r.renderAttrs(o) + ">" + tu(o.content) + "</code>";
|
|
1723
1723
|
};
|
|
1724
1724
|
$e.code_block = function(e, u, t, n, r) {
|
|
1725
1725
|
const o = e[u];
|
|
1726
|
-
return "<pre" + r.renderAttrs(o) + "><code>" +
|
|
1726
|
+
return "<pre" + r.renderAttrs(o) + "><code>" + tu(e[u].content) + `</code></pre>
|
|
1727
1727
|
`;
|
|
1728
1728
|
};
|
|
1729
1729
|
$e.fence = function(e, u, t, n, r) {
|
|
1730
|
-
const o = e[u], a = o.info ?
|
|
1730
|
+
const o = e[u], a = o.info ? xu(o.info).trim() : "";
|
|
1731
1731
|
let i = "", l = "";
|
|
1732
1732
|
if (a) {
|
|
1733
1733
|
const c = a.split(/(\s+)/g);
|
|
1734
1734
|
i = c[0], l = c.slice(2).join("");
|
|
1735
1735
|
}
|
|
1736
1736
|
let s;
|
|
1737
|
-
if (t.highlight ? s = t.highlight(o.content, i, l) ||
|
|
1737
|
+
if (t.highlight ? s = t.highlight(o.content, i, l) || tu(o.content) : s = tu(o.content), s.indexOf("<pre") === 0)
|
|
1738
1738
|
return s + `
|
|
1739
1739
|
`;
|
|
1740
1740
|
if (a) {
|
|
@@ -1765,7 +1765,7 @@ $e.softbreak = function(e, u, t) {
|
|
|
1765
1765
|
`;
|
|
1766
1766
|
};
|
|
1767
1767
|
$e.text = function(e, u) {
|
|
1768
|
-
return
|
|
1768
|
+
return tu(e[u].content);
|
|
1769
1769
|
};
|
|
1770
1770
|
$e.html_block = function(e, u) {
|
|
1771
1771
|
return e[u].content;
|
|
@@ -1781,7 +1781,7 @@ _u.prototype.renderAttrs = function(u) {
|
|
|
1781
1781
|
if (!u.attrs)
|
|
1782
1782
|
return "";
|
|
1783
1783
|
for (r = "", t = 0, n = u.attrs.length; t < n; t++)
|
|
1784
|
-
r += " " +
|
|
1784
|
+
r += " " + tu(u.attrs[t][0]) + '="' + tu(u.attrs[t][1]) + '"';
|
|
1785
1785
|
return r;
|
|
1786
1786
|
};
|
|
1787
1787
|
_u.prototype.renderToken = function(u, t, n) {
|
|
@@ -2555,11 +2555,11 @@ function z0(e, u, t, n) {
|
|
|
2555
2555
|
i = e.push("list_item_open", "li", 1), i.markup = String.fromCharCode(p);
|
|
2556
2556
|
const D = [l, 0];
|
|
2557
2557
|
i.map = D, d && (i.info = e.src.slice(a, x - 1));
|
|
2558
|
-
const B = e.tight,
|
|
2559
|
-
if (e.listIndent = e.blkIndent, e.blkIndent = P, e.tight = !0, e.tShift[l] = k - e.bMarks[l], e.sCount[l] = b, k >= r && e.isEmpty(l + 1) ? e.line = Math.min(e.line + 2, t) : e.md.block.tokenize(e, l, t, !0), (!e.tight || E) && (s = !1), E = e.line - l > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent =
|
|
2558
|
+
const B = e.tight, L = e.tShift[l], X = e.sCount[l], ie = e.listIndent;
|
|
2559
|
+
if (e.listIndent = e.blkIndent, e.blkIndent = P, e.tight = !0, e.tShift[l] = k - e.bMarks[l], e.sCount[l] = b, k >= r && e.isEmpty(l + 1) ? e.line = Math.min(e.line + 2, t) : e.md.block.tokenize(e, l, t, !0), (!e.tight || E) && (s = !1), E = e.line - l > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = ie, e.tShift[l] = L, e.sCount[l] = X, e.tight = B, i = e.push("list_item_close", "li", -1), i.markup = String.fromCharCode(p), l = e.line, D[1] = l, l >= t || e.sCount[l] < e.blkIndent || e.sCount[l] - e.blkIndent >= 4)
|
|
2560
2560
|
break;
|
|
2561
2561
|
let F = !1;
|
|
2562
|
-
for (let q = 0,
|
|
2562
|
+
for (let q = 0, ee = f.length; q < ee; q++)
|
|
2563
2563
|
if (f[q](e, l, t, !0)) {
|
|
2564
2564
|
F = !0;
|
|
2565
2565
|
break;
|
|
@@ -2590,7 +2590,7 @@ function B0(e, u, t, n) {
|
|
|
2590
2590
|
const w = e.md.block.ruler.getRules("reference"), P = e.parentType;
|
|
2591
2591
|
e.parentType = "reference";
|
|
2592
2592
|
let D = !1;
|
|
2593
|
-
for (let B = 0,
|
|
2593
|
+
for (let B = 0, L = w.length; B < L; B++)
|
|
2594
2594
|
if (w[B](e, f, g, !0)) {
|
|
2595
2595
|
D = !0;
|
|
2596
2596
|
break;
|
|
@@ -2731,7 +2731,7 @@ const U0 = [
|
|
|
2731
2731
|
"tr",
|
|
2732
2732
|
"track",
|
|
2733
2733
|
"ul"
|
|
2734
|
-
], q0 = "[a-zA-Z_:][a-zA-Z0-9:._-]*", j0 = "[^\"'=<>`\\x00-\\x20]+", H0 = "'[^']*'", G0 = '"[^"]*"', V0 = "(?:" + j0 + "|" + H0 + "|" + G0 + ")", W0 = "(?:\\s+" + q0 + "(?:\\s*=\\s*" + V0 + ")?)", no = "<[A-Za-z][A-Za-z0-9\\-]*" + W0 + "*\\s*\\/?>", ro = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Z0 = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", Y0 = "<[?][\\s\\S]*?[?]>", X0 = "<![A-Za-z][^>]*>", Q0 = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", J0 = new RegExp("^(?:" + no + "|" + ro + "|" + Z0 + "|" + Y0 + "|" + X0 + "|" + Q0 + ")"), K0 = new RegExp("^(?:" + no + "|" + ro + ")"),
|
|
2734
|
+
], q0 = "[a-zA-Z_:][a-zA-Z0-9:._-]*", j0 = "[^\"'=<>`\\x00-\\x20]+", H0 = "'[^']*'", G0 = '"[^"]*"', V0 = "(?:" + j0 + "|" + H0 + "|" + G0 + ")", W0 = "(?:\\s+" + q0 + "(?:\\s*=\\s*" + V0 + ")?)", no = "<[A-Za-z][A-Za-z0-9\\-]*" + W0 + "*\\s*\\/?>", ro = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", Z0 = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", Y0 = "<[?][\\s\\S]*?[?]>", X0 = "<![A-Za-z][^>]*>", Q0 = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", J0 = new RegExp("^(?:" + no + "|" + ro + "|" + Z0 + "|" + Y0 + "|" + X0 + "|" + Q0 + ")"), K0 = new RegExp("^(?:" + no + "|" + ro + ")"), bu = [
|
|
2735
2735
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
2736
2736
|
[/^<!--/, /-->/, !0],
|
|
2737
2737
|
[/^<\?/, /\?>/, !0],
|
|
@@ -2745,16 +2745,16 @@ function el(e, u, t, n) {
|
|
|
2745
2745
|
if (e.sCount[u] - e.blkIndent >= 4 || !e.md.options.html || e.src.charCodeAt(r) !== 60)
|
|
2746
2746
|
return !1;
|
|
2747
2747
|
let a = e.src.slice(r, o), i = 0;
|
|
2748
|
-
for (; i <
|
|
2748
|
+
for (; i < bu.length && !bu[i][0].test(a); i++)
|
|
2749
2749
|
;
|
|
2750
|
-
if (i ===
|
|
2750
|
+
if (i === bu.length)
|
|
2751
2751
|
return !1;
|
|
2752
2752
|
if (n)
|
|
2753
|
-
return
|
|
2753
|
+
return bu[i][2];
|
|
2754
2754
|
let l = u + 1;
|
|
2755
|
-
if (!
|
|
2755
|
+
if (!bu[i][1].test(a)) {
|
|
2756
2756
|
for (; l < t && !(e.sCount[l] < e.blkIndent); l++)
|
|
2757
|
-
if (r = e.bMarks[l] + e.tShift[l], o = e.eMarks[l], a = e.src.slice(r, o),
|
|
2757
|
+
if (r = e.bMarks[l] + e.tShift[l], o = e.eMarks[l], a = e.src.slice(r, o), bu[i][1].test(a)) {
|
|
2758
2758
|
a.length !== 0 && l++;
|
|
2759
2759
|
break;
|
|
2760
2760
|
}
|
|
@@ -3648,12 +3648,12 @@ Ce.prototype.normalize = function(u) {
|
|
|
3648
3648
|
};
|
|
3649
3649
|
Ce.prototype.onCompile = function() {
|
|
3650
3650
|
};
|
|
3651
|
-
const
|
|
3651
|
+
const mu = 2147483647, Me = 36, xn = 1, $u = 26, Ul = 38, ql = 700, lo = 72, so = 128, co = "-", jl = /^xn--/, Hl = /[^\0-\x7F]/, Gl = /[\x2E\u3002\uFF0E\uFF61]/g, Vl = {
|
|
3652
3652
|
overflow: "Overflow: input needs wider integers to process",
|
|
3653
3653
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3654
3654
|
"invalid-input": "Invalid input"
|
|
3655
3655
|
}, jt = Me - xn, Le = Math.floor, Ht = String.fromCharCode;
|
|
3656
|
-
function
|
|
3656
|
+
function Ye(e) {
|
|
3657
3657
|
throw new RangeError(Vl[e]);
|
|
3658
3658
|
}
|
|
3659
3659
|
function Wl(e, u) {
|
|
@@ -3698,21 +3698,21 @@ const Zl = (e) => String.fromCodePoint(...e), Yl = function(e) {
|
|
|
3698
3698
|
let n = 0, r = so, o = lo, a = e.lastIndexOf(co);
|
|
3699
3699
|
a < 0 && (a = 0);
|
|
3700
3700
|
for (let i = 0; i < a; ++i)
|
|
3701
|
-
e.charCodeAt(i) >= 128 &&
|
|
3701
|
+
e.charCodeAt(i) >= 128 && Ye("not-basic"), u.push(e.charCodeAt(i));
|
|
3702
3702
|
for (let i = a > 0 ? a + 1 : 0; i < t; ) {
|
|
3703
3703
|
const l = n;
|
|
3704
3704
|
for (let c = 1, d = Me; ; d += Me) {
|
|
3705
|
-
i >= t &&
|
|
3705
|
+
i >= t && Ye("invalid-input");
|
|
3706
3706
|
const y = Yl(e.charCodeAt(i++));
|
|
3707
|
-
y >= Me &&
|
|
3707
|
+
y >= Me && Ye("invalid-input"), y > Le((mu - n) / c) && Ye("overflow"), n += y * c;
|
|
3708
3708
|
const x = d <= o ? xn : d >= o + $u ? $u : d - o;
|
|
3709
3709
|
if (y < x)
|
|
3710
3710
|
break;
|
|
3711
3711
|
const p = Me - x;
|
|
3712
|
-
c > Le(
|
|
3712
|
+
c > Le(mu / p) && Ye("overflow"), c *= p;
|
|
3713
3713
|
}
|
|
3714
3714
|
const s = u.length + 1;
|
|
3715
|
-
o = ho(n - l, s, l == 0), Le(n / s) >
|
|
3715
|
+
o = ho(n - l, s, l == 0), Le(n / s) > mu - r && Ye("overflow"), r += Le(n / s), n %= s, u.splice(n++, 0, r);
|
|
3716
3716
|
}
|
|
3717
3717
|
return String.fromCodePoint(...u);
|
|
3718
3718
|
}, mo = function(e) {
|
|
@@ -3725,13 +3725,13 @@ const Zl = (e) => String.fromCodePoint(...e), Yl = function(e) {
|
|
|
3725
3725
|
const a = u.length;
|
|
3726
3726
|
let i = a;
|
|
3727
3727
|
for (a && u.push(co); i < t; ) {
|
|
3728
|
-
let l =
|
|
3728
|
+
let l = mu;
|
|
3729
3729
|
for (const c of e)
|
|
3730
3730
|
c >= n && c < l && (l = c);
|
|
3731
3731
|
const s = i + 1;
|
|
3732
|
-
l - n > Le((
|
|
3732
|
+
l - n > Le((mu - r) / s) && Ye("overflow"), r += (l - n) * s, n = l;
|
|
3733
3733
|
for (const c of e)
|
|
3734
|
-
if (c < n && ++r >
|
|
3734
|
+
if (c < n && ++r > mu && Ye("overflow"), c === n) {
|
|
3735
3735
|
let d = r;
|
|
3736
3736
|
for (let y = Me; ; y += Me) {
|
|
3737
3737
|
const x = y <= o ? xn : y >= o + $u ? $u : y - o;
|
|
@@ -3968,7 +3968,7 @@ function is(e) {
|
|
|
3968
3968
|
u.hostname = go.toUnicode(u.hostname);
|
|
3969
3969
|
} catch {
|
|
3970
3970
|
}
|
|
3971
|
-
return
|
|
3971
|
+
return ku(dn(u), ku.defaultChars + "%");
|
|
3972
3972
|
}
|
|
3973
3973
|
function Fe(e, u) {
|
|
3974
3974
|
if (!(this instanceof Fe))
|
|
@@ -4062,7 +4062,7 @@ function as(e, u) {
|
|
|
4062
4062
|
};
|
|
4063
4063
|
}
|
|
4064
4064
|
function ls(e, u) {
|
|
4065
|
-
const { step: t = 1, interval: n = 50, enabled: r = !0 } = u ?? {}, o = G(0), a = G(!1), i = G(!1), l = G(!1), s =
|
|
4065
|
+
const { step: t = 1, interval: n = 50, enabled: r = !0 } = u ?? {}, o = G(0), a = G(!1), i = G(!1), l = G(!1), s = oe(() => r ? e.value.slice(0, o.value) : e.value), c = oe(() => Number(Math.min(o.value / e.value.length * 100, 100).toFixed(2)));
|
|
4066
4066
|
let d = null;
|
|
4067
4067
|
const y = rt(), x = rt(), p = rt();
|
|
4068
4068
|
He(e, (b, k) => {
|
|
@@ -4486,8 +4486,8 @@ function cs() {
|
|
|
4486
4486
|
h.hasOwnProperty(P) || (w[P] = k[P]);
|
|
4487
4487
|
}
|
|
4488
4488
|
var B = b[f];
|
|
4489
|
-
return b[f] = w, i.languages.DFS(i.languages, function(
|
|
4490
|
-
|
|
4489
|
+
return b[f] = w, i.languages.DFS(i.languages, function(L, X) {
|
|
4490
|
+
X === B && L != f && (this[L] = w);
|
|
4491
4491
|
}), w;
|
|
4492
4492
|
},
|
|
4493
4493
|
// Traverse a language definition with Depth First Search
|
|
@@ -4582,8 +4582,8 @@ function cs() {
|
|
|
4582
4582
|
grammar: k,
|
|
4583
4583
|
code: P
|
|
4584
4584
|
};
|
|
4585
|
-
function B(
|
|
4586
|
-
D.highlightedCode =
|
|
4585
|
+
function B(X) {
|
|
4586
|
+
D.highlightedCode = X, i.hooks.run("before-insert", D), D.element.innerHTML = D.highlightedCode, i.hooks.run("after-highlight", D), i.hooks.run("complete", D), h && h.call(D.element);
|
|
4587
4587
|
}
|
|
4588
4588
|
if (i.hooks.run("before-sanity-check", D), w = D.element.parentElement, w && w.nodeName.toLowerCase() === "pre" && !w.hasAttribute("tabindex") && w.setAttribute("tabindex", "0"), !D.code) {
|
|
4589
4589
|
i.hooks.run("complete", D), h && h.call(D.element);
|
|
@@ -4594,10 +4594,10 @@ function cs() {
|
|
|
4594
4594
|
return;
|
|
4595
4595
|
}
|
|
4596
4596
|
if (g && n.Worker) {
|
|
4597
|
-
var
|
|
4598
|
-
|
|
4599
|
-
B(
|
|
4600
|
-
},
|
|
4597
|
+
var L = new Worker(i.filename);
|
|
4598
|
+
L.onmessage = function(X) {
|
|
4599
|
+
B(X.data);
|
|
4600
|
+
}, L.postMessage(JSON.stringify({
|
|
4601
4601
|
language: D.language,
|
|
4602
4602
|
code: D.code,
|
|
4603
4603
|
immediateClose: !0
|
|
@@ -4754,41 +4754,41 @@ function cs() {
|
|
|
4754
4754
|
for (var B = 0; B < D.length; ++B) {
|
|
4755
4755
|
if (w && w.cause == P + "," + B)
|
|
4756
4756
|
return;
|
|
4757
|
-
var
|
|
4758
|
-
if (F && !
|
|
4759
|
-
var
|
|
4760
|
-
|
|
4757
|
+
var L = D[B], X = L.inside, ie = !!L.lookbehind, F = !!L.greedy, q = L.alias;
|
|
4758
|
+
if (F && !L.pattern.global) {
|
|
4759
|
+
var ee = L.pattern.toString().match(/[imsuy]*$/)[0];
|
|
4760
|
+
L.pattern = RegExp(L.pattern.source, ee + "g");
|
|
4761
4761
|
}
|
|
4762
|
-
for (var C =
|
|
4763
|
-
var J =
|
|
4762
|
+
for (var C = L.pattern || L, N = b.next, T = k; N !== g.tail && !(w && T >= w.reach); T += N.value.length, N = N.next) {
|
|
4763
|
+
var J = N.value;
|
|
4764
4764
|
if (g.length > f.length)
|
|
4765
4765
|
return;
|
|
4766
4766
|
if (!(J instanceof l)) {
|
|
4767
4767
|
var $ = 1, H;
|
|
4768
4768
|
if (F) {
|
|
4769
|
-
if (H = s(C, T, f,
|
|
4769
|
+
if (H = s(C, T, f, ie), !H || H.index >= f.length)
|
|
4770
4770
|
break;
|
|
4771
|
-
var ve = H.index,
|
|
4772
|
-
for (
|
|
4773
|
-
|
|
4774
|
-
if (
|
|
4771
|
+
var ve = H.index, Y = H.index + H[0].length, te = T;
|
|
4772
|
+
for (te += N.value.length; ve >= te; )
|
|
4773
|
+
N = N.next, te += N.value.length;
|
|
4774
|
+
if (te -= N.value.length, T = te, N.value instanceof l)
|
|
4775
4775
|
continue;
|
|
4776
|
-
for (var W =
|
|
4777
|
-
$++,
|
|
4778
|
-
$--, J = f.slice(T,
|
|
4779
|
-
} else if (H = s(C, 0, J,
|
|
4776
|
+
for (var W = N; W !== g.tail && (te < Y || typeof W.value == "string"); W = W.next)
|
|
4777
|
+
$++, te += W.value.length;
|
|
4778
|
+
$--, J = f.slice(T, te), H.index -= T;
|
|
4779
|
+
} else if (H = s(C, 0, J, ie), !H)
|
|
4780
4780
|
continue;
|
|
4781
|
-
var ve = H.index,
|
|
4782
|
-
w &&
|
|
4783
|
-
var nu =
|
|
4784
|
-
|
|
4785
|
-
var
|
|
4786
|
-
if (
|
|
4787
|
-
var
|
|
4781
|
+
var ve = H.index, Ve = H[0], iu = J.slice(0, ve), au = J.slice(ve + Ve.length), lu = T + J.length;
|
|
4782
|
+
w && lu > w.reach && (w.reach = lu);
|
|
4783
|
+
var nu = N.prev;
|
|
4784
|
+
iu && (nu = y(g, nu, iu), T += iu.length), x(g, nu, $);
|
|
4785
|
+
var We = new l(P, X ? i.tokenize(Ve, X) : Ve, q, Ve);
|
|
4786
|
+
if (N = y(g, nu, We), au && y(g, N, au), $ > 1) {
|
|
4787
|
+
var Ze = {
|
|
4788
4788
|
cause: P + "," + B,
|
|
4789
|
-
reach:
|
|
4789
|
+
reach: lu
|
|
4790
4790
|
};
|
|
4791
|
-
c(f, g, h,
|
|
4791
|
+
c(f, g, h, N.prev, T, Ze), w && Ze.reach > w.reach && (w.reach = Ze.reach);
|
|
4792
4792
|
}
|
|
4793
4793
|
}
|
|
4794
4794
|
}
|
|
@@ -5346,7 +5346,7 @@ const ms = ["innerHTML"], gs = /* @__PURE__ */ me({
|
|
|
5346
5346
|
setup(e, { emit: u }) {
|
|
5347
5347
|
const t = u;
|
|
5348
5348
|
gt(ut, bs());
|
|
5349
|
-
const { typedValue: n, isTyping: r, onStat: o, onUpdate: a, onStop: i } = ls(
|
|
5349
|
+
const { typedValue: n, isTyping: r, onStat: o, onUpdate: a, onStop: i } = ls(oe(() => e.value ?? ""), {
|
|
5350
5350
|
step: e.step,
|
|
5351
5351
|
interval: e.interval,
|
|
5352
5352
|
enabled: e.typing
|
|
@@ -5364,13 +5364,13 @@ const ms = ["innerHTML"], gs = /* @__PURE__ */ me({
|
|
|
5364
5364
|
typographer: !0,
|
|
5365
5365
|
breaks: !0,
|
|
5366
5366
|
highlight: ds
|
|
5367
|
-
}), s =
|
|
5367
|
+
}), s = oe(() => e.markdown ? l.value : n.value);
|
|
5368
5368
|
return (c, d) => (R(), z(_(an), {
|
|
5369
5369
|
tag: "div",
|
|
5370
5370
|
class: Ou([_(ut)])
|
|
5371
5371
|
}, {
|
|
5372
5372
|
default: O(() => [
|
|
5373
|
-
|
|
5373
|
+
Ge("div", {
|
|
5374
5374
|
class: Ou([_(r) && !c.markdown ? `${_(ut)}__cursor` : void 0, c.markdown ? `${_(ut)}__markdown` : void 0]),
|
|
5375
5375
|
style: rn([c.markdown ? void 0 : { "--cursor-content": `'${c.suffix}'` }]),
|
|
5376
5376
|
innerHTML: s.value
|
|
@@ -5428,7 +5428,7 @@ const Kc = /* @__PURE__ */ me({
|
|
|
5428
5428
|
(R(), z(se(n.avatar.icon)))
|
|
5429
5429
|
]),
|
|
5430
5430
|
_: 1
|
|
5431
|
-
}, 16)) :
|
|
5431
|
+
}, 16)) : ue("", !0)
|
|
5432
5432
|
]),
|
|
5433
5433
|
V(_(Oe), { vertical: "" }, {
|
|
5434
5434
|
default: O(() => [
|
|
@@ -5438,7 +5438,7 @@ const Kc = /* @__PURE__ */ me({
|
|
|
5438
5438
|
n.loading ? U(n.$slots, "loading", { key: 0 }, () => [
|
|
5439
5439
|
V(_(Or), { style: { height: "44px" } })
|
|
5440
5440
|
]) : U(n.$slots, "default", { key: 1 }, () => [
|
|
5441
|
-
|
|
5441
|
+
Ge("div", {
|
|
5442
5442
|
class: Ou([`${_(Zt)}__content`, n.contentClass]),
|
|
5443
5443
|
style: rn(n.contentStyle)
|
|
5444
5444
|
}, [
|
|
@@ -5527,7 +5527,7 @@ const Cs = /* @__PURE__ */ me({
|
|
|
5527
5527
|
]), 1040)
|
|
5528
5528
|
]),
|
|
5529
5529
|
_: 3
|
|
5530
|
-
}, 8, ["class", "style"])) :
|
|
5530
|
+
}, 8, ["class", "style"])) : ue("", !0)
|
|
5531
5531
|
], 8, ["to"]))
|
|
5532
5532
|
]),
|
|
5533
5533
|
_: 3
|
|
@@ -5596,7 +5596,7 @@ const Cs = /* @__PURE__ */ me({
|
|
|
5596
5596
|
]),
|
|
5597
5597
|
_: 3
|
|
5598
5598
|
}, 16),
|
|
5599
|
-
r.globalStyle ? (R(), z(_(Jo), { key: 0 })) :
|
|
5599
|
+
r.globalStyle ? (R(), z(_(Jo), { key: 0 })) : ue("", !0),
|
|
5600
5600
|
V(_(Cs), Z({ show: u.value }, r.fullLoadingProps), null, 16, ["show"])
|
|
5601
5601
|
]),
|
|
5602
5602
|
_: 3
|
|
@@ -5616,8 +5616,8 @@ const Cs = /* @__PURE__ */ me({
|
|
|
5616
5616
|
viewBox: "0 0 24 24"
|
|
5617
5617
|
};
|
|
5618
5618
|
function Ss(e, u, t, n, r, o) {
|
|
5619
|
-
return R(),
|
|
5620
|
-
|
|
5619
|
+
return R(), re("svg", Fs, u[0] || (u[0] = [
|
|
5620
|
+
Ge("path", {
|
|
5621
5621
|
fill: "currentColor",
|
|
5622
5622
|
d: "M18.355 6.54h-1.94V4.69a2.69 2.69 0 0 0-1.646-2.484A2.7 2.7 0 0 0 13.745 2h-8.05a2.68 2.68 0 0 0-2.67 2.69v10.09a2.68 2.68 0 0 0 2.67 2.69h1.94v1.85a2.68 2.68 0 0 0 2.67 2.68h8a2.68 2.68 0 0 0 2.67-2.68V9.23a2.69 2.69 0 0 0-2.62-2.69M7.635 9.23v6.74h-1.94a1.18 1.18 0 0 1-1.17-1.19V4.69a1.18 1.18 0 0 1 1.17-1.19h8.05a1.18 1.18 0 0 1 1.17 1.19v1.85h-4.61a2.69 2.69 0 0 0-2.67 2.69"
|
|
5623
5623
|
}, null, -1)
|
|
@@ -5645,12 +5645,12 @@ const Ts = /* @__PURE__ */ vn(Ds, [["render", Ss]]), uf = /* @__PURE__ */ me({
|
|
|
5645
5645
|
}
|
|
5646
5646
|
return (a, i) => (R(), z(_(ln), fe(je(a.tooltipProps)), {
|
|
5647
5647
|
trigger: O(() => [
|
|
5648
|
-
|
|
5648
|
+
Ge("div", {
|
|
5649
5649
|
style: { cursor: "pointer" },
|
|
5650
5650
|
onClick: o
|
|
5651
5651
|
}, [
|
|
5652
5652
|
U(a.$slots, "default", {}, () => [
|
|
5653
|
-
V(_(
|
|
5653
|
+
V(_(uu), Z({
|
|
5654
5654
|
quaternary: "",
|
|
5655
5655
|
size: "tiny"
|
|
5656
5656
|
}, a.buttonProps), {
|
|
@@ -5666,7 +5666,7 @@ const Ts = /* @__PURE__ */ vn(Ds, [["render", Ss]]), uf = /* @__PURE__ */ me({
|
|
|
5666
5666
|
]),
|
|
5667
5667
|
default: O(() => [
|
|
5668
5668
|
U(a.$slots, "tooltip", {}, () => [
|
|
5669
|
-
|
|
5669
|
+
vu(eu(_(n) ? "复制成功" : "复制"), 1)
|
|
5670
5670
|
])
|
|
5671
5671
|
]),
|
|
5672
5672
|
_: 3
|
|
@@ -5887,7 +5887,7 @@ function yo(e, u, t) {
|
|
|
5887
5887
|
return b.cancel = g, b.flush = h, b;
|
|
5888
5888
|
}
|
|
5889
5889
|
const sc = (e, { debounceWait: u, debounceLeading: t, debounceTrailing: n, debounceMaxWait: r }) => {
|
|
5890
|
-
const o = G(), a =
|
|
5890
|
+
const o = G(), a = oe(() => {
|
|
5891
5891
|
const i = {}, l = _(t), s = _(n), c = _(r);
|
|
5892
5892
|
return l !== void 0 && (i.leading = l), s !== void 0 && (i.trailing = s), c !== void 0 && (i.maxWait = c), i;
|
|
5893
5893
|
});
|
|
@@ -5987,7 +5987,7 @@ const ye = new gc(), kc = (e, { ready: u = !0, debugKey: t, ...n }) => {
|
|
|
5987
5987
|
time: Date.now()
|
|
5988
5988
|
});
|
|
5989
5989
|
}
|
|
5990
|
-
}, o =
|
|
5990
|
+
}, o = oe(
|
|
5991
5991
|
() => Object.fromEntries(
|
|
5992
5992
|
Object.entries({ ready: u, ...n }).map(([a, i]) => [a, _(i)])
|
|
5993
5993
|
)
|
|
@@ -6216,10 +6216,10 @@ function Sc(e, u, t) {
|
|
|
6216
6216
|
}
|
|
6217
6217
|
const Tc = (e, { throttleWait: u, throttleLeading: t, throttleTrailing: n }) => {
|
|
6218
6218
|
let r = null;
|
|
6219
|
-
const o =
|
|
6219
|
+
const o = oe(() => {
|
|
6220
6220
|
const s = {};
|
|
6221
6221
|
return _(t) !== void 0 && (s.leading = _(t)), _(n) !== void 0 && (s.trailing = _(n)), s;
|
|
6222
|
-
}), a = e.runAsync.bind(e), i = G(), l =
|
|
6222
|
+
}), a = e.runAsync.bind(e), i = G(), l = oe(() => _(u));
|
|
6223
6223
|
return He([l, o], (s) => {
|
|
6224
6224
|
r && (r.cancel(), e.runAsync = a);
|
|
6225
6225
|
const [c, d] = s, y = Sc(
|
|
@@ -6383,7 +6383,7 @@ function $c(e, u = {}, t = []) {
|
|
|
6383
6383
|
ready: a,
|
|
6384
6384
|
initialData: r,
|
|
6385
6385
|
...i
|
|
6386
|
-
}, s = G(e), c =
|
|
6386
|
+
}, s = G(e), c = gu({
|
|
6387
6387
|
data: r,
|
|
6388
6388
|
loading: !1,
|
|
6389
6389
|
params: void 0,
|
|
@@ -6400,7 +6400,7 @@ function $c(e, u = {}, t = []) {
|
|
|
6400
6400
|
Object.assign({}, ...y, c)
|
|
6401
6401
|
);
|
|
6402
6402
|
x.options = l, x.pluginImpls = t.map((v) => v(x, l));
|
|
6403
|
-
const p =
|
|
6403
|
+
const p = oe(() => Qt(a) ? a.value : a);
|
|
6404
6404
|
if (Te(() => {
|
|
6405
6405
|
if (!o) {
|
|
6406
6406
|
const v = x.state.params || u.defaultParams || [];
|
|
@@ -6465,8 +6465,8 @@ const zc = {
|
|
|
6465
6465
|
viewBox: "0 0 24 24"
|
|
6466
6466
|
};
|
|
6467
6467
|
function Uc(e, u, t, n, r, o) {
|
|
6468
|
-
return R(),
|
|
6469
|
-
|
|
6468
|
+
return R(), re("svg", Bc, u[0] || (u[0] = [
|
|
6469
|
+
Ge("path", {
|
|
6470
6470
|
fill: "none",
|
|
6471
6471
|
stroke: "currentColor",
|
|
6472
6472
|
"stroke-linecap": "round",
|
|
@@ -6490,7 +6490,7 @@ const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ me({
|
|
|
6490
6490
|
},
|
|
6491
6491
|
emits: ["update:value"],
|
|
6492
6492
|
setup(e, { emit: u }) {
|
|
6493
|
-
const t = u, n = mt("input-ref"), r = G(e.value ?? null), o =
|
|
6493
|
+
const t = u, n = mt("input-ref"), r = G(e.value ?? null), o = oe(() => typeof e.searchButton == "boolean" ? "text" : e.searchButton), { start: a } = Ai(() => {
|
|
6494
6494
|
}, typeof e.autoTrigger == "number" ? e.autoTrigger : 500);
|
|
6495
6495
|
Te(() => {
|
|
6496
6496
|
r.value = e.value ?? null;
|
|
@@ -6532,15 +6532,15 @@ const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ me({
|
|
|
6532
6532
|
value: c.value,
|
|
6533
6533
|
loading: c.loading
|
|
6534
6534
|
}, () => [
|
|
6535
|
-
o.value ? (R(), z(_(
|
|
6535
|
+
o.value ? (R(), z(_(uu), Z({
|
|
6536
6536
|
key: 0,
|
|
6537
6537
|
type: c.type,
|
|
6538
6538
|
loading: c.loading
|
|
6539
6539
|
}, c.buttonProps, { onClick: l }), Rr({
|
|
6540
6540
|
default: O(() => [
|
|
6541
|
-
o.value === "text" ? (R(),
|
|
6542
|
-
|
|
6543
|
-
], 64)) :
|
|
6541
|
+
o.value === "text" ? (R(), re(Ae, { key: 0 }, [
|
|
6542
|
+
vu(" 搜索 ")
|
|
6543
|
+
], 64)) : ue("", !0)
|
|
6544
6544
|
]),
|
|
6545
6545
|
_: 2
|
|
6546
6546
|
}, [
|
|
@@ -6553,13 +6553,13 @@ const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ me({
|
|
|
6553
6553
|
]),
|
|
6554
6554
|
key: "0"
|
|
6555
6555
|
} : void 0
|
|
6556
|
-
]), 1040, ["type", "loading"])) :
|
|
6556
|
+
]), 1040, ["type", "loading"])) : ue("", !0)
|
|
6557
6557
|
])
|
|
6558
6558
|
]),
|
|
6559
6559
|
_: 3
|
|
6560
6560
|
}));
|
|
6561
6561
|
}
|
|
6562
|
-
}),
|
|
6562
|
+
}), Ke = /* @__PURE__ */ me({
|
|
6563
6563
|
__name: "PresetInput",
|
|
6564
6564
|
props: {
|
|
6565
6565
|
value: {},
|
|
@@ -6568,7 +6568,7 @@ const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ me({
|
|
|
6568
6568
|
emits: ["update:value"],
|
|
6569
6569
|
setup(e, { emit: u }) {
|
|
6570
6570
|
const t = u, n = {
|
|
6571
|
-
button:
|
|
6571
|
+
button: uu,
|
|
6572
6572
|
"color-picker": bi,
|
|
6573
6573
|
checkbox: hi,
|
|
6574
6574
|
divider: cn,
|
|
@@ -6662,7 +6662,7 @@ const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ me({
|
|
|
6662
6662
|
},
|
|
6663
6663
|
emits: ["before", "success", "error", "finally", "clickRow", "contextMenuRow", "load", "scroll", "update:checkedRowKeys", "update:expandedRowKeys", "update:filters", "update:sorter", "update:page", "update:pageSize"],
|
|
6664
6664
|
setup(e, { expose: u, emit: t }) {
|
|
6665
|
-
const n = t, r =
|
|
6665
|
+
const n = t, r = oe(() => {
|
|
6666
6666
|
const C = typeof e.filterLayout == "string" ? [e.filterLayout, e.filterLayout] : e.filterLayout;
|
|
6667
6667
|
return {
|
|
6668
6668
|
grid: C[0] === "grid",
|
|
@@ -6670,9 +6670,9 @@ const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ me({
|
|
|
6670
6670
|
collapsedGrid: C[1] === "grid",
|
|
6671
6671
|
collapsedFlex: C[1] === "flex"
|
|
6672
6672
|
};
|
|
6673
|
-
}), o =
|
|
6673
|
+
}), o = gu(e.columns ?? []), a = mt("data-table-ref"), i = { page: "page", pageSize: "pageSize", filter: "filter", sorter: "sorter", list: "list", count: "count", rowKey: "id", search: "search", children: "children", ...e.fields }, l = {
|
|
6674
6674
|
...e.search && typeof e.search == "boolean" ? {} : e.search
|
|
6675
|
-
}, s =
|
|
6675
|
+
}, s = gu({
|
|
6676
6676
|
showSizePicker: !0,
|
|
6677
6677
|
pageSizes: [10, 20, 30],
|
|
6678
6678
|
pageSlot: 5,
|
|
@@ -6695,21 +6695,21 @@ const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ me({
|
|
|
6695
6695
|
onBefore: (C) => {
|
|
6696
6696
|
e.requestOptions?.onBefore?.(C), n("before", C);
|
|
6697
6697
|
},
|
|
6698
|
-
onSuccess: (C,
|
|
6699
|
-
e.requestOptions?.onSuccess?.(C,
|
|
6698
|
+
onSuccess: (C, N) => {
|
|
6699
|
+
e.requestOptions?.onSuccess?.(C, N), n("success", C, N), D(C, N);
|
|
6700
6700
|
},
|
|
6701
|
-
onError: (C,
|
|
6702
|
-
e.requestOptions?.onError?.(C,
|
|
6701
|
+
onError: (C, N) => {
|
|
6702
|
+
e.requestOptions?.onError?.(C, N), n("error", C, N);
|
|
6703
6703
|
},
|
|
6704
|
-
onFinally: (C,
|
|
6705
|
-
e.requestOptions?.onFinally?.(C,
|
|
6704
|
+
onFinally: (C, N, T) => {
|
|
6705
|
+
e.requestOptions?.onFinally?.(C, N, T), n("finally", C, N, T);
|
|
6706
6706
|
}
|
|
6707
|
-
}, e.requestPlugins), k = [], w =
|
|
6708
|
-
function D(C,
|
|
6707
|
+
}, e.requestPlugins), k = [], w = oe(() => x.value ? Array.isArray(x.value[i.list]) ? x.value[i.list] : (console.warn(`DataTablePlus: data[${i.list}] must be an array`), []) : []), P = oe(() => e.columns?.reduce((C, N) => C + Number(N.width ?? 100), 0));
|
|
6708
|
+
function D(C, N) {
|
|
6709
6709
|
C[i.list]?.forEach(($) => {
|
|
6710
6710
|
k.some((H) => H[i.rowKey] === $[i.rowKey]) || k.push($);
|
|
6711
|
-
}), c.value.page = i.page in
|
|
6712
|
-
const T =
|
|
6711
|
+
}), c.value.page = i.page in N[0] ? Number(N[0][i.page]) : 1, c.value.pageSize = i.pageSize in N[0] ? Number(N[0][i.pageSize]) : 10, c.value.itemCount = i.count in C ? Number(C[i.count]) : 0;
|
|
6712
|
+
const T = N[0]?.[i.filter], J = N[0]?.[i.sorter];
|
|
6713
6713
|
if (o) {
|
|
6714
6714
|
for (const $ of o)
|
|
6715
6715
|
if ("key" in $) {
|
|
@@ -6730,7 +6730,7 @@ const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ me({
|
|
|
6730
6730
|
...C
|
|
6731
6731
|
});
|
|
6732
6732
|
}
|
|
6733
|
-
const
|
|
6733
|
+
const L = {
|
|
6734
6734
|
onUpdatePage: (C) => {
|
|
6735
6735
|
n("update:page", C), !y.value && B({
|
|
6736
6736
|
[i.page]: C
|
|
@@ -6741,29 +6741,29 @@ const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ me({
|
|
|
6741
6741
|
[i.pageSize]: C
|
|
6742
6742
|
});
|
|
6743
6743
|
},
|
|
6744
|
-
onUpdateFilters: (C,
|
|
6745
|
-
n("update:filters", C,
|
|
6744
|
+
onUpdateFilters: (C, N) => {
|
|
6745
|
+
n("update:filters", C, N), B({
|
|
6746
6746
|
[i.page]: 1,
|
|
6747
6747
|
[i.filter]: C
|
|
6748
6748
|
});
|
|
6749
6749
|
},
|
|
6750
6750
|
onUpdateSorter: (C) => {
|
|
6751
6751
|
n("update:sorter", C);
|
|
6752
|
-
const
|
|
6752
|
+
const N = {};
|
|
6753
6753
|
if (Array.isArray(C))
|
|
6754
6754
|
for (const T of C)
|
|
6755
|
-
|
|
6756
|
-
else C && (
|
|
6755
|
+
N[T.columnKey] = T.order;
|
|
6756
|
+
else C && (N[C.columnKey] = C.order);
|
|
6757
6757
|
B({
|
|
6758
6758
|
[i.page]: 1,
|
|
6759
|
-
[i.sorter]:
|
|
6759
|
+
[i.sorter]: N
|
|
6760
6760
|
});
|
|
6761
6761
|
},
|
|
6762
6762
|
onLoad: (C) => n("load", C),
|
|
6763
6763
|
onScroll: (C) => {
|
|
6764
6764
|
n("scroll", C);
|
|
6765
6765
|
},
|
|
6766
|
-
onUpdateCheckedRowKeys: (C,
|
|
6766
|
+
onUpdateCheckedRowKeys: (C, N, T) => {
|
|
6767
6767
|
const J = C.map(($) => k.find((H) => H[i.rowKey] === $));
|
|
6768
6768
|
n("update:checkedRowKeys", C, J, { row: Ee(T.row), action: T.action }, Ee(w.value));
|
|
6769
6769
|
},
|
|
@@ -6771,20 +6771,20 @@ const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ me({
|
|
|
6771
6771
|
n("update:expandedRowKeys", C, Ee(w.value));
|
|
6772
6772
|
}
|
|
6773
6773
|
};
|
|
6774
|
-
function
|
|
6774
|
+
function X(C, N) {
|
|
6775
6775
|
return {
|
|
6776
6776
|
onClick: (T) => {
|
|
6777
|
-
n("clickRow", Ee(C),
|
|
6777
|
+
n("clickRow", Ee(C), N, T, Ee(w.value));
|
|
6778
6778
|
},
|
|
6779
6779
|
onContextmenu: (T) => {
|
|
6780
|
-
n("contextMenuRow", Ee(C),
|
|
6780
|
+
n("contextMenuRow", Ee(C), N, T, Ee(w.value));
|
|
6781
6781
|
}
|
|
6782
6782
|
};
|
|
6783
6783
|
}
|
|
6784
|
-
const
|
|
6785
|
-
function F(C,
|
|
6786
|
-
|
|
6787
|
-
[
|
|
6784
|
+
const ie = G(!1);
|
|
6785
|
+
function F(C, N) {
|
|
6786
|
+
N && B({
|
|
6787
|
+
[N]: C
|
|
6788
6788
|
});
|
|
6789
6789
|
}
|
|
6790
6790
|
const q = {
|
|
@@ -6795,7 +6795,7 @@ const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ me({
|
|
|
6795
6795
|
pagination: c,
|
|
6796
6796
|
rawList: w,
|
|
6797
6797
|
dataTableRef: a
|
|
6798
|
-
},
|
|
6798
|
+
}, ee = {
|
|
6799
6799
|
run: A,
|
|
6800
6800
|
runAsync: E,
|
|
6801
6801
|
refresh: f,
|
|
@@ -6810,18 +6810,18 @@ const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ me({
|
|
|
6810
6810
|
};
|
|
6811
6811
|
return u({
|
|
6812
6812
|
refs: q,
|
|
6813
|
-
actions:
|
|
6814
|
-
}), (C,
|
|
6813
|
+
actions: ee
|
|
6814
|
+
}), (C, N) => (R(), z(_(Oe), { vertical: "" }, {
|
|
6815
6815
|
default: O(() => [
|
|
6816
6816
|
U(C.$slots, "header", {
|
|
6817
6817
|
refs: q,
|
|
6818
|
-
actions:
|
|
6818
|
+
actions: ee
|
|
6819
6819
|
}, () => [
|
|
6820
6820
|
V(_(Oe), null, {
|
|
6821
6821
|
default: O(() => [
|
|
6822
6822
|
U(C.$slots, "title", {}, () => [
|
|
6823
|
-
|
|
6824
|
-
C.title ? (R(),
|
|
6823
|
+
Ge("div", qc, [
|
|
6824
|
+
C.title ? (R(), re("span", jc, eu(C.title), 1)) : ue("", !0)
|
|
6825
6825
|
])
|
|
6826
6826
|
]),
|
|
6827
6827
|
C.search ? (R(), z(_(Eo), Z({
|
|
@@ -6830,11 +6830,11 @@ const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ me({
|
|
|
6830
6830
|
value: _(v)[0][i.search],
|
|
6831
6831
|
loading: _(y)
|
|
6832
6832
|
}, l, {
|
|
6833
|
-
"onUpdate:value":
|
|
6834
|
-
}), null, 16, ["value", "loading"])) :
|
|
6833
|
+
"onUpdate:value": N[0] || (N[0] = (T) => F(T, i.search))
|
|
6834
|
+
}), null, 16, ["value", "loading"])) : ue("", !0),
|
|
6835
6835
|
U(C.$slots, "header-extra", {
|
|
6836
6836
|
refs: q,
|
|
6837
|
-
actions:
|
|
6837
|
+
actions: ee
|
|
6838
6838
|
})
|
|
6839
6839
|
]),
|
|
6840
6840
|
_: 3
|
|
@@ -6842,24 +6842,24 @@ const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ me({
|
|
|
6842
6842
|
]),
|
|
6843
6843
|
U(C.$slots, "filter", {
|
|
6844
6844
|
refs: q,
|
|
6845
|
-
actions:
|
|
6845
|
+
actions: ee
|
|
6846
6846
|
}, () => [
|
|
6847
6847
|
V(_(Oe), { vertical: "" }, {
|
|
6848
6848
|
default: O(() => [
|
|
6849
6849
|
r.value.grid && (C.filterOptions?.filter((T) => !T.collapsed).length ?? !1) ? (R(), z(_(st), fe(Z({ key: 0 }, C.filterGridProps)), {
|
|
6850
6850
|
default: O(() => [
|
|
6851
|
-
(R(!0),
|
|
6851
|
+
(R(!0), re(Ae, null, Qe(C.filterOptions?.filter((T) => !T.collapsed), ({ key: T, gridSpan: J, gridItemProps: $, render: H, label: Y, ...te }, W) => (R(), z(_(ct), Z({
|
|
6852
6852
|
key: W,
|
|
6853
6853
|
span: J
|
|
6854
6854
|
}, { ref_for: !0 }, $), {
|
|
6855
6855
|
default: O(() => [
|
|
6856
|
-
H ? (R(), z(se(_(he)(H(q,
|
|
6857
|
-
be(_(
|
|
6858
|
-
options:
|
|
6856
|
+
H ? (R(), z(se(_(he)(H(q, ee), Y, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), z(se(_(he)(
|
|
6857
|
+
be(_(Ke), {
|
|
6858
|
+
options: te,
|
|
6859
6859
|
value: T ? _(v)[0][T] : void 0,
|
|
6860
6860
|
"onUpdate:value": (ve) => F(ve, T)
|
|
6861
6861
|
}),
|
|
6862
|
-
|
|
6862
|
+
Y,
|
|
6863
6863
|
{ path: T, labelPlacement: "left" }
|
|
6864
6864
|
)), { key: 1 }))
|
|
6865
6865
|
]),
|
|
@@ -6867,15 +6867,15 @@ const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ me({
|
|
|
6867
6867
|
}, 1040, ["span"]))), 128))
|
|
6868
6868
|
]),
|
|
6869
6869
|
_: 1
|
|
6870
|
-
}, 16)) :
|
|
6870
|
+
}, 16)) : ue("", !0),
|
|
6871
6871
|
r.value.flex && (C.filterOptions?.filter((T) => !T.collapsed).length ?? !1) ? (R(), z(_(Oe), fe(Z({ key: 1 }, C.filterFlexProps)), {
|
|
6872
6872
|
default: O(() => [
|
|
6873
|
-
(R(!0),
|
|
6874
|
-
J ? (R(), z(se(_(he)(J(q,
|
|
6875
|
-
be(_(
|
|
6873
|
+
(R(!0), re(Ae, null, Qe(C.filterOptions?.filter((T) => !T.collapsed), ({ key: T, render: J, label: $, ...H }, Y) => (R(), re(Ae, { key: Y }, [
|
|
6874
|
+
J ? (R(), z(se(_(he)(J(q, ee), $, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), z(se(_(he)(
|
|
6875
|
+
be(_(Ke), {
|
|
6876
6876
|
options: H,
|
|
6877
6877
|
value: T ? _(v)[0][T] : void 0,
|
|
6878
|
-
"onUpdate:value": (
|
|
6878
|
+
"onUpdate:value": (te) => F(te, T)
|
|
6879
6879
|
}),
|
|
6880
6880
|
$,
|
|
6881
6881
|
{ path: T, labelPlacement: "left" }
|
|
@@ -6883,40 +6883,40 @@ const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ me({
|
|
|
6883
6883
|
], 64))), 128))
|
|
6884
6884
|
]),
|
|
6885
6885
|
_: 1
|
|
6886
|
-
}, 16)) :
|
|
6886
|
+
}, 16)) : ue("", !0),
|
|
6887
6887
|
C.filterOptions?.filter((T) => T.collapsed) && C.filterOptions?.filter((T) => T.collapsed)?.length > 0 ? (R(), z(_(cn), {
|
|
6888
6888
|
key: 2,
|
|
6889
6889
|
style: { margin: "5px 0" }
|
|
6890
6890
|
}, {
|
|
6891
6891
|
default: O(() => [
|
|
6892
|
-
V(_(
|
|
6892
|
+
V(_(uu), {
|
|
6893
6893
|
size: "tiny",
|
|
6894
|
-
onClick:
|
|
6894
|
+
onClick: N[1] || (N[1] = (T) => ie.value = !ie.value)
|
|
6895
6895
|
}, {
|
|
6896
6896
|
default: O(() => [
|
|
6897
|
-
|
|
6897
|
+
vu(eu(ie.value ? "折叠" : "展开"), 1)
|
|
6898
6898
|
]),
|
|
6899
6899
|
_: 1
|
|
6900
6900
|
})
|
|
6901
6901
|
]),
|
|
6902
6902
|
_: 1
|
|
6903
|
-
})) :
|
|
6904
|
-
V(_(Lr), { show:
|
|
6903
|
+
})) : ue("", !0),
|
|
6904
|
+
V(_(Lr), { show: ie.value }, {
|
|
6905
6905
|
default: O(() => [
|
|
6906
6906
|
r.value.collapsedGrid && (C.filterOptions?.filter((T) => T.collapsed)?.length ?? !1) ? (R(), z(_(st), fe(Z({ key: 0 }, C.filterGridProps)), {
|
|
6907
6907
|
default: O(() => [
|
|
6908
|
-
(R(!0),
|
|
6908
|
+
(R(!0), re(Ae, null, Qe(C.filterOptions?.filter((T) => T.collapsed), ({ key: T, gridSpan: J, gridItemProps: $, render: H, label: Y, ...te }, W) => (R(), z(_(ct), Z({
|
|
6909
6909
|
key: W,
|
|
6910
6910
|
span: J
|
|
6911
6911
|
}, { ref_for: !0 }, $), {
|
|
6912
6912
|
default: O(() => [
|
|
6913
|
-
H ? (R(), z(se(_(he)(H(q,
|
|
6914
|
-
be(_(
|
|
6915
|
-
options:
|
|
6913
|
+
H ? (R(), z(se(_(he)(H(q, ee), Y, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), z(se(_(he)(
|
|
6914
|
+
be(_(Ke), {
|
|
6915
|
+
options: te,
|
|
6916
6916
|
value: T ? _(v)[0][T] : void 0,
|
|
6917
6917
|
"onUpdate:value": (ve) => F(ve, T)
|
|
6918
6918
|
}),
|
|
6919
|
-
|
|
6919
|
+
Y,
|
|
6920
6920
|
{ path: T, labelPlacement: "left" }
|
|
6921
6921
|
)), { key: 1 }))
|
|
6922
6922
|
]),
|
|
@@ -6924,15 +6924,15 @@ const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ me({
|
|
|
6924
6924
|
}, 1040, ["span"]))), 128))
|
|
6925
6925
|
]),
|
|
6926
6926
|
_: 1
|
|
6927
|
-
}, 16)) :
|
|
6927
|
+
}, 16)) : ue("", !0),
|
|
6928
6928
|
r.value.collapsedFlex && (C.filterOptions?.filter((T) => T.collapsed)?.length ?? !1) ? (R(), z(_(Oe), fe(Z({ key: 1 }, C.filterFlexProps)), {
|
|
6929
6929
|
default: O(() => [
|
|
6930
|
-
(R(!0),
|
|
6931
|
-
J ? (R(), z(se(_(he)(J(q,
|
|
6932
|
-
be(_(
|
|
6930
|
+
(R(!0), re(Ae, null, Qe(C.filterOptions?.filter((T) => T.collapsed), ({ key: T, render: J, label: $, ...H }, Y) => (R(), re(Ae, { key: Y }, [
|
|
6931
|
+
J ? (R(), z(se(_(he)(J(q, ee), $, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), z(se(_(he)(
|
|
6932
|
+
be(_(Ke), {
|
|
6933
6933
|
options: H,
|
|
6934
6934
|
value: T ? _(v)[0][T] : void 0,
|
|
6935
|
-
"onUpdate:value": (
|
|
6935
|
+
"onUpdate:value": (te) => F(te, T)
|
|
6936
6936
|
}),
|
|
6937
6937
|
$,
|
|
6938
6938
|
{ path: T, labelPlacement: "left" }
|
|
@@ -6940,7 +6940,7 @@ const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ me({
|
|
|
6940
6940
|
], 64))), 128))
|
|
6941
6941
|
]),
|
|
6942
6942
|
_: 1
|
|
6943
|
-
}, 16)) :
|
|
6943
|
+
}, 16)) : ue("", !0)
|
|
6944
6944
|
]),
|
|
6945
6945
|
_: 1
|
|
6946
6946
|
}, 8, ["show"])
|
|
@@ -6961,47 +6961,47 @@ const Fr = /* @__PURE__ */ vn(zc, [["render", Uc]]), Eo = /* @__PURE__ */ me({
|
|
|
6961
6961
|
loading: _(y),
|
|
6962
6962
|
columns: o,
|
|
6963
6963
|
data: w.value,
|
|
6964
|
-
"row-props":
|
|
6964
|
+
"row-props": X
|
|
6965
6965
|
}, C.dataTableProps, {
|
|
6966
|
-
"onUpdate:filters":
|
|
6967
|
-
"onUpdate:sorter":
|
|
6968
|
-
onLoad:
|
|
6969
|
-
onScroll:
|
|
6970
|
-
"onUpdate:checkedRowKeys":
|
|
6971
|
-
"onUpdate:expandedRowKeys":
|
|
6966
|
+
"onUpdate:filters": L.onUpdateFilters,
|
|
6967
|
+
"onUpdate:sorter": L.onUpdateSorter,
|
|
6968
|
+
onLoad: L.onLoad,
|
|
6969
|
+
onScroll: L.onScroll,
|
|
6970
|
+
"onUpdate:checkedRowKeys": L.onUpdateCheckedRowKeys,
|
|
6971
|
+
"onUpdate:expandedRowKeys": L.onUpdateExpandedRowKeys
|
|
6972
6972
|
}), {
|
|
6973
6973
|
empty: O(() => [
|
|
6974
6974
|
U(C.$slots, "empty", {
|
|
6975
6975
|
refs: q,
|
|
6976
|
-
actions:
|
|
6976
|
+
actions: ee
|
|
6977
6977
|
})
|
|
6978
6978
|
]),
|
|
6979
6979
|
loading: O(() => [
|
|
6980
6980
|
U(C.$slots, "loading", {
|
|
6981
6981
|
refs: q,
|
|
6982
|
-
actions:
|
|
6982
|
+
actions: ee
|
|
6983
6983
|
})
|
|
6984
6984
|
]),
|
|
6985
6985
|
_: 3
|
|
6986
6986
|
}, 16, ["scroll-x", "style", "class", "row-key", "children-key", "loading", "columns", "data", "onUpdate:filters", "onUpdate:sorter", "onLoad", "onScroll", "onUpdate:checkedRowKeys", "onUpdate:expandedRowKeys"]),
|
|
6987
6987
|
U(C.$slots, "footer", {
|
|
6988
6988
|
refs: q,
|
|
6989
|
-
actions:
|
|
6989
|
+
actions: ee
|
|
6990
6990
|
}, () => [
|
|
6991
6991
|
V(_(Oe), null, {
|
|
6992
6992
|
default: O(() => [
|
|
6993
6993
|
U(C.$slots, "footer-extra", {
|
|
6994
6994
|
refs: q,
|
|
6995
|
-
actions:
|
|
6995
|
+
actions: ee
|
|
6996
6996
|
}),
|
|
6997
6997
|
C.pagination ? (R(), z(_(Nr), Z({
|
|
6998
6998
|
key: 0,
|
|
6999
6999
|
style: { "margin-left": "auto" },
|
|
7000
7000
|
disabled: _(y)
|
|
7001
7001
|
}, { ...s, ...c.value }, {
|
|
7002
|
-
"onUpdate:page":
|
|
7003
|
-
"onUpdate:pageSize":
|
|
7004
|
-
}), null, 16, ["disabled", "onUpdate:page", "onUpdate:pageSize"])) :
|
|
7002
|
+
"onUpdate:page": L.onUpdatePage,
|
|
7003
|
+
"onUpdate:pageSize": L.onUpdatePageSize
|
|
7004
|
+
}), null, 16, ["disabled", "onUpdate:page", "onUpdate:pageSize"])) : ue("", !0)
|
|
7005
7005
|
]),
|
|
7006
7006
|
_: 3
|
|
7007
7007
|
})
|
|
@@ -7099,7 +7099,7 @@ const nf = /* @__PURE__ */ me({
|
|
|
7099
7099
|
},
|
|
7100
7100
|
emits: ["validated"],
|
|
7101
7101
|
setup(e, { expose: u, emit: t }) {
|
|
7102
|
-
const n = t, r =
|
|
7102
|
+
const n = t, r = oe(() => {
|
|
7103
7103
|
const f = typeof e.layout == "string" ? [e.layout, e.layout] : e.layout;
|
|
7104
7104
|
return {
|
|
7105
7105
|
grid: f[0] === "grid",
|
|
@@ -7156,16 +7156,16 @@ const nf = /* @__PURE__ */ me({
|
|
|
7156
7156
|
}, () => [
|
|
7157
7157
|
r.value.grid ? (R(), z(_(st), fe(Z({ key: 0 }, f.gridProps)), {
|
|
7158
7158
|
default: O(() => [
|
|
7159
|
-
(R(!0),
|
|
7159
|
+
(R(!0), re(Ae, null, Qe(f.options?.filter((h) => !h.collapsed), ({ key: h, gridSpan: b, gridItemProps: k, render: w, label: P, ...D }, B) => (R(), z(_(ct), Z({
|
|
7160
7160
|
key: B,
|
|
7161
7161
|
span: b
|
|
7162
7162
|
}, { ref_for: !0 }, k), {
|
|
7163
7163
|
default: O(() => [
|
|
7164
7164
|
w ? (R(), z(se(_(he)(w(v, A), P, { path: h })), { key: 0 })) : (R(), z(se(_(he)(
|
|
7165
|
-
be(_(
|
|
7165
|
+
be(_(Ke), {
|
|
7166
7166
|
options: D,
|
|
7167
7167
|
value: h ? _(o)[h] : void 0,
|
|
7168
|
-
"onUpdate:value": (
|
|
7168
|
+
"onUpdate:value": (L) => E(L, h)
|
|
7169
7169
|
}),
|
|
7170
7170
|
P,
|
|
7171
7171
|
{ path: h }
|
|
@@ -7175,12 +7175,12 @@ const nf = /* @__PURE__ */ me({
|
|
|
7175
7175
|
}, 1040, ["span"]))), 128))
|
|
7176
7176
|
]),
|
|
7177
7177
|
_: 1
|
|
7178
|
-
}, 16)) :
|
|
7178
|
+
}, 16)) : ue("", !0),
|
|
7179
7179
|
r.value.flex ? (R(), z(_(Oe), fe(Z({ key: 1 }, f.flexProps)), {
|
|
7180
7180
|
default: O(() => [
|
|
7181
|
-
(R(!0),
|
|
7181
|
+
(R(!0), re(Ae, null, Qe(f.options?.filter((h) => !h.collapsed), ({ key: h, render: b, label: k, ...w }, P) => (R(), re(Ae, { key: P }, [
|
|
7182
7182
|
b ? (R(), z(se(_(he)(b(v, A), k, { path: h })), { key: 0 })) : (R(), z(se(_(he)(
|
|
7183
|
-
be(_(
|
|
7183
|
+
be(_(Ke), {
|
|
7184
7184
|
options: w,
|
|
7185
7185
|
value: h ? _(o)[h] : void 0,
|
|
7186
7186
|
"onUpdate:value": (D) => E(D, h)
|
|
@@ -7191,38 +7191,38 @@ const nf = /* @__PURE__ */ me({
|
|
|
7191
7191
|
], 64))), 128))
|
|
7192
7192
|
]),
|
|
7193
7193
|
_: 1
|
|
7194
|
-
}, 16)) :
|
|
7194
|
+
}, 16)) : ue("", !0),
|
|
7195
7195
|
f.options?.filter((h) => h.collapsed) && f.options?.filter((h) => h.collapsed)?.length > 0 ? (R(), z(_(cn), {
|
|
7196
7196
|
key: 2,
|
|
7197
7197
|
style: { margin: "5px 0" }
|
|
7198
7198
|
}, {
|
|
7199
7199
|
default: O(() => [
|
|
7200
|
-
V(_(
|
|
7200
|
+
V(_(uu), {
|
|
7201
7201
|
size: "tiny",
|
|
7202
7202
|
onClick: g[0] || (g[0] = (h) => p.value = !p.value)
|
|
7203
7203
|
}, {
|
|
7204
7204
|
default: O(() => [
|
|
7205
|
-
|
|
7205
|
+
vu(eu(p.value ? "折叠" : "展开"), 1)
|
|
7206
7206
|
]),
|
|
7207
7207
|
_: 1
|
|
7208
7208
|
})
|
|
7209
7209
|
]),
|
|
7210
7210
|
_: 1
|
|
7211
|
-
})) :
|
|
7211
|
+
})) : ue("", !0),
|
|
7212
7212
|
V(_(Lr), { show: p.value }, {
|
|
7213
7213
|
default: O(() => [
|
|
7214
7214
|
r.value.collapsedGrid ? (R(), z(_(st), fe(Z({ key: 0 }, f.gridProps)), {
|
|
7215
7215
|
default: O(() => [
|
|
7216
|
-
(R(!0),
|
|
7216
|
+
(R(!0), re(Ae, null, Qe(f.options?.filter((h) => h.collapsed), ({ key: h, gridSpan: b, gridItemProps: k, render: w, label: P, ...D }, B) => (R(), z(_(ct), Z({
|
|
7217
7217
|
key: B,
|
|
7218
7218
|
span: b
|
|
7219
7219
|
}, { ref_for: !0 }, k), {
|
|
7220
7220
|
default: O(() => [
|
|
7221
7221
|
w ? (R(), z(se(_(he)(w(v, A), P, { path: h })), { key: 0 })) : (R(), z(se(_(he)(
|
|
7222
|
-
be(_(
|
|
7222
|
+
be(_(Ke), {
|
|
7223
7223
|
options: D,
|
|
7224
7224
|
value: h ? _(o)[h] : void 0,
|
|
7225
|
-
"onUpdate:value": (
|
|
7225
|
+
"onUpdate:value": (L) => E(L, h)
|
|
7226
7226
|
}),
|
|
7227
7227
|
P,
|
|
7228
7228
|
{ path: h }
|
|
@@ -7232,12 +7232,12 @@ const nf = /* @__PURE__ */ me({
|
|
|
7232
7232
|
}, 1040, ["span"]))), 128))
|
|
7233
7233
|
]),
|
|
7234
7234
|
_: 1
|
|
7235
|
-
}, 16)) :
|
|
7235
|
+
}, 16)) : ue("", !0),
|
|
7236
7236
|
r.value.collapsedFlex ? (R(), z(_(Oe), fe(Z({ key: 1 }, f.flexProps)), {
|
|
7237
7237
|
default: O(() => [
|
|
7238
|
-
(R(!0),
|
|
7238
|
+
(R(!0), re(Ae, null, Qe(f.options?.filter((h) => h.collapsed), ({ key: h, render: b, label: k, ...w }, P) => (R(), re(Ae, { key: P }, [
|
|
7239
7239
|
b ? (R(), z(se(_(he)(b(v, A), k, { path: h })), { key: 0 })) : (R(), z(se(_(he)(
|
|
7240
|
-
be(_(
|
|
7240
|
+
be(_(Ke), {
|
|
7241
7241
|
options: w,
|
|
7242
7242
|
value: h ? _(o)[h] : void 0,
|
|
7243
7243
|
"onUpdate:value": (D) => E(D, h)
|
|
@@ -7248,7 +7248,7 @@ const nf = /* @__PURE__ */ me({
|
|
|
7248
7248
|
], 64))), 128))
|
|
7249
7249
|
]),
|
|
7250
7250
|
_: 1
|
|
7251
|
-
}, 16)) :
|
|
7251
|
+
}, 16)) : ue("", !0)
|
|
7252
7252
|
]),
|
|
7253
7253
|
_: 1
|
|
7254
7254
|
}, 8, ["show"])
|
|
@@ -7270,8 +7270,8 @@ const nf = /* @__PURE__ */ me({
|
|
|
7270
7270
|
viewBox: "0 0 24 24"
|
|
7271
7271
|
};
|
|
7272
7272
|
function Zc(e, u, t, n, r, o) {
|
|
7273
|
-
return R(),
|
|
7274
|
-
|
|
7273
|
+
return R(), re("svg", Wc, u[0] || (u[0] = [
|
|
7274
|
+
Ge("path", {
|
|
7275
7275
|
fill: "currentColor",
|
|
7276
7276
|
d: "M12 1.75A10.25 10.25 0 1 0 22.25 12A10.26 10.26 0 0 0 12 1.75m4.67 13.5a1 1 0 0 1 0 1.42a1 1 0 0 1-1.42 0L12 13.42l-3.25 3.25a1 1 0 0 1-1.41-1.42L10.59 12L7.34 8.75a1 1 0 1 1 1.41-1.41L12 10.59l3.25-3.25a1 1 0 1 1 1.42 1.41L13.42 12z"
|
|
7277
7277
|
}, null, -1)
|
|
@@ -7282,7 +7282,6 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7282
7282
|
props: {
|
|
7283
7283
|
value: {},
|
|
7284
7284
|
fallbackLabel: { type: [String, Function] },
|
|
7285
|
-
fallbackOption: { type: Function },
|
|
7286
7285
|
multiple: { type: Boolean },
|
|
7287
7286
|
disabled: { type: Boolean },
|
|
7288
7287
|
clearable: { type: Boolean },
|
|
@@ -7298,7 +7297,7 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7298
7297
|
},
|
|
7299
7298
|
emits: ["update:value", "afterEnter", "afterLeave", "esc", "maskClick", "update:show", "close", "negativeClick", "positiveClick"],
|
|
7300
7299
|
setup(e, { expose: u, emit: t }) {
|
|
7301
|
-
const n = t, r = { label: "label", value: "value", ...e.fields }, o = G([]), a = G([]), i =
|
|
7300
|
+
const n = t, r = { label: "label", value: "value", ...e.fields }, o = G([]), a = G([]), i = gu({
|
|
7302
7301
|
type: "selection",
|
|
7303
7302
|
multiple: e.multiple,
|
|
7304
7303
|
width: 60,
|
|
@@ -7308,29 +7307,29 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7308
7307
|
He(() => e.multiple, () => {
|
|
7309
7308
|
i.multiple = e.multiple;
|
|
7310
7309
|
});
|
|
7311
|
-
const l =
|
|
7310
|
+
const l = gu([
|
|
7312
7311
|
i,
|
|
7313
7312
|
...e.columns ?? []
|
|
7314
7313
|
]), s = G(!1);
|
|
7315
7314
|
function c() {
|
|
7316
7315
|
o.value = structuredClone(Array.isArray(e.value) ? Ee(e.value) : e.value ? [e.value] : []), s.value = !0;
|
|
7317
7316
|
}
|
|
7318
|
-
function d(b
|
|
7319
|
-
|
|
7317
|
+
function d(b) {
|
|
7318
|
+
e.multiple ? o.value.includes(b?.[r.value]) ? (o.value = o.value.filter((k) => k !== b?.[r.value]), a.value = a.value.filter((k) => k?.[r.value] !== b?.[r.value])) : (o.value.push(b?.[r.value]), a.value.push(b)) : (o.value = [b?.[r.value]], a.value = [b]);
|
|
7320
7319
|
}
|
|
7321
|
-
function y(b, k, w, P
|
|
7322
|
-
if (
|
|
7323
|
-
const
|
|
7324
|
-
o.value.push(...
|
|
7325
|
-
const
|
|
7326
|
-
a.value.push(...
|
|
7320
|
+
function y(b, k, w, P) {
|
|
7321
|
+
if (w.action === "checkAll") {
|
|
7322
|
+
const D = b.filter((L) => !o.value.includes(L));
|
|
7323
|
+
o.value.push(...D);
|
|
7324
|
+
const B = k.filter((L) => !a.value.some((X) => X?.[r.value] === L?.[r.value]));
|
|
7325
|
+
a.value.push(...B);
|
|
7327
7326
|
return;
|
|
7328
7327
|
}
|
|
7329
7328
|
if (w.action === "uncheckAll") {
|
|
7330
|
-
const
|
|
7331
|
-
o.value =
|
|
7332
|
-
const
|
|
7333
|
-
a.value =
|
|
7329
|
+
const D = o.value.filter((L) => !P?.some((X) => X?.[r.value] === L));
|
|
7330
|
+
o.value = D;
|
|
7331
|
+
const B = a.value.filter((L) => !P?.some((X) => X?.[r.value] === L?.[r.value]));
|
|
7332
|
+
a.value = B;
|
|
7334
7333
|
}
|
|
7335
7334
|
}
|
|
7336
7335
|
function x() {
|
|
@@ -7349,34 +7348,33 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7349
7348
|
function v() {
|
|
7350
7349
|
n("update:value", null, null);
|
|
7351
7350
|
}
|
|
7352
|
-
const A =
|
|
7351
|
+
const A = oe(() => {
|
|
7353
7352
|
if (Array.isArray(e.value) && e.value.length > 0)
|
|
7354
|
-
return e.value.map((b) => {
|
|
7353
|
+
return typeof e.fallbackLabel == "string" ? e.fallbackLabel : e.value.map((b) => {
|
|
7355
7354
|
const k = a.value.find((w) => w?.[r.value] === b);
|
|
7356
|
-
return k ? k[r.label] : typeof e.fallbackLabel == "function" ? e.fallbackLabel(b) :
|
|
7355
|
+
return k && k?.[r.label] ? k[r.label] : typeof e.fallbackLabel == "function" ? e.fallbackLabel(b) : b;
|
|
7357
7356
|
}).join(",");
|
|
7358
7357
|
if (e.value && !Array.isArray(e.value)) {
|
|
7359
7358
|
const b = a.value.find((k) => k?.[r.value] === e.value);
|
|
7360
|
-
return b ? b[r.label] : typeof e.fallbackLabel == "function" ? e.fallbackLabel(e.value) : e.fallbackLabel ?? e.value;
|
|
7359
|
+
return b && b?.[r.label] ? b[r.label] : typeof e.fallbackLabel == "function" ? e.fallbackLabel(e.value) : e.fallbackLabel ?? e.value;
|
|
7361
7360
|
}
|
|
7362
7361
|
return e.placeholder;
|
|
7363
|
-
}), E =
|
|
7362
|
+
}), E = oe(() => e.clearable && (Array.isArray(e.value) ? e.value.length > 0 : !!e.value)), f = oe(() => Array.isArray(e.value) ? e.value.length : void 0), g = {
|
|
7364
7363
|
showModalFlag: s,
|
|
7365
7364
|
checkedRowKeys: o,
|
|
7366
7365
|
checkedRows: a,
|
|
7367
7366
|
columns: l
|
|
7368
7367
|
}, h = {
|
|
7369
7368
|
showModal: c,
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
onNegativeClick: x,
|
|
7373
|
-
onPositiveClick: p,
|
|
7369
|
+
updateCheckedRowKeysEffect: y,
|
|
7370
|
+
clickRowEffect: d,
|
|
7374
7371
|
clearValue: v
|
|
7375
7372
|
};
|
|
7376
7373
|
return u({
|
|
7377
7374
|
refs: g,
|
|
7378
7375
|
actions: h
|
|
7379
7376
|
}), (b, k) => (R(), z(_(ln), {
|
|
7377
|
+
show: Array.isArray(b.value) ? void 0 : !1,
|
|
7380
7378
|
trigger: Array.isArray(b.value) ? "hover" : "manual"
|
|
7381
7379
|
}, {
|
|
7382
7380
|
trigger: O(() => [
|
|
@@ -7384,19 +7382,57 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7384
7382
|
default: O(() => [
|
|
7385
7383
|
V(_(_i), null, {
|
|
7386
7384
|
default: O(() => [
|
|
7387
|
-
V(_(
|
|
7385
|
+
V(_(uu), Z({ type: b.type }, b.buttonProps, { onClick: c }), {
|
|
7388
7386
|
icon: O(() => [
|
|
7389
7387
|
U(b.$slots, "button-icon")
|
|
7390
7388
|
]),
|
|
7391
7389
|
default: O(() => [
|
|
7392
7390
|
U(b.$slots, "button", {}, () => [
|
|
7393
|
-
|
|
7394
|
-
])
|
|
7391
|
+
Ge("span", null, eu(Array.isArray(b.value) ? "已选择" : A.value), 1)
|
|
7392
|
+
]),
|
|
7393
|
+
V(_(yi), Z({
|
|
7394
|
+
show: s.value,
|
|
7395
|
+
"onUpdate:show": k[0] || (k[0] = (w) => s.value = w),
|
|
7396
|
+
style: { width: "auto" },
|
|
7397
|
+
preset: "dialog",
|
|
7398
|
+
title: b.placeholder,
|
|
7399
|
+
"positive-text": "确认",
|
|
7400
|
+
"negative-text": "取消"
|
|
7401
|
+
}, b.modalProps, {
|
|
7402
|
+
onPositiveClick: p,
|
|
7403
|
+
onNegativeClick: x,
|
|
7404
|
+
onClose: k[1] || (k[1] = (w) => n("close")),
|
|
7405
|
+
onAfterEnter: k[2] || (k[2] = (w) => n("afterEnter")),
|
|
7406
|
+
onAfterLeave: k[3] || (k[3] = (w) => n("afterLeave")),
|
|
7407
|
+
onEsc: k[4] || (k[4] = (w) => n("esc")),
|
|
7408
|
+
onMaskClick: k[5] || (k[5] = (w) => n("maskClick")),
|
|
7409
|
+
"onUpdate:show": k[6] || (k[6] = (w) => n("update:show", w))
|
|
7410
|
+
}), {
|
|
7411
|
+
action: O(() => [
|
|
7412
|
+
U(b.$slots, "modal-action")
|
|
7413
|
+
]),
|
|
7414
|
+
header: O(() => [
|
|
7415
|
+
U(b.$slots, "modal-header")
|
|
7416
|
+
]),
|
|
7417
|
+
icon: O(() => [
|
|
7418
|
+
U(b.$slots, "modal-icon")
|
|
7419
|
+
]),
|
|
7420
|
+
close: O(() => [
|
|
7421
|
+
U(b.$slots, "modal-close")
|
|
7422
|
+
]),
|
|
7423
|
+
default: O(() => [
|
|
7424
|
+
U(b.$slots, "default", {
|
|
7425
|
+
refs: g,
|
|
7426
|
+
actions: h
|
|
7427
|
+
})
|
|
7428
|
+
]),
|
|
7429
|
+
_: 3
|
|
7430
|
+
}, 16, ["show", "title"])
|
|
7395
7431
|
]),
|
|
7396
7432
|
_: 3
|
|
7397
7433
|
}, 16, ["type"]),
|
|
7398
7434
|
U(b.$slots, "clear-button", {}, () => [
|
|
7399
|
-
E.value ? (R(), z(_(
|
|
7435
|
+
E.value ? (R(), z(_(uu), Z({
|
|
7400
7436
|
key: 0,
|
|
7401
7437
|
circle: "",
|
|
7402
7438
|
type: b.type
|
|
@@ -7409,46 +7445,8 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7409
7445
|
])
|
|
7410
7446
|
]),
|
|
7411
7447
|
_: 3
|
|
7412
|
-
}, 16, ["type"])) :
|
|
7413
|
-
])
|
|
7414
|
-
V(_(yi), Z({
|
|
7415
|
-
show: s.value,
|
|
7416
|
-
"onUpdate:show": k[0] || (k[0] = (w) => s.value = w),
|
|
7417
|
-
style: { width: "auto" },
|
|
7418
|
-
preset: "dialog",
|
|
7419
|
-
title: b.placeholder,
|
|
7420
|
-
"positive-text": "确认",
|
|
7421
|
-
"negative-text": "取消"
|
|
7422
|
-
}, b.modalProps, {
|
|
7423
|
-
onPositiveClick: p,
|
|
7424
|
-
onNegativeClick: x,
|
|
7425
|
-
onClose: k[1] || (k[1] = (w) => n("close")),
|
|
7426
|
-
onAfterEnter: k[2] || (k[2] = (w) => n("afterEnter")),
|
|
7427
|
-
onAfterLeave: k[3] || (k[3] = (w) => n("afterLeave")),
|
|
7428
|
-
onEsc: k[4] || (k[4] = (w) => n("esc")),
|
|
7429
|
-
onMaskClick: k[5] || (k[5] = (w) => n("maskClick")),
|
|
7430
|
-
"onUpdate:show": k[6] || (k[6] = (w) => n("update:show", w))
|
|
7431
|
-
}), {
|
|
7432
|
-
action: O(() => [
|
|
7433
|
-
U(b.$slots, "modal-action")
|
|
7434
|
-
]),
|
|
7435
|
-
header: O(() => [
|
|
7436
|
-
U(b.$slots, "modal-header")
|
|
7437
|
-
]),
|
|
7438
|
-
icon: O(() => [
|
|
7439
|
-
U(b.$slots, "modal-icon")
|
|
7440
|
-
]),
|
|
7441
|
-
close: O(() => [
|
|
7442
|
-
U(b.$slots, "modal-close")
|
|
7443
|
-
]),
|
|
7444
|
-
default: O(() => [
|
|
7445
|
-
U(b.$slots, "default", {
|
|
7446
|
-
refs: g,
|
|
7447
|
-
actions: h
|
|
7448
|
-
})
|
|
7449
|
-
]),
|
|
7450
|
-
_: 3
|
|
7451
|
-
}, 16, ["show", "title"])
|
|
7448
|
+
}, 16, ["type"])) : ue("", !0)
|
|
7449
|
+
])
|
|
7452
7450
|
]),
|
|
7453
7451
|
_: 3
|
|
7454
7452
|
})
|
|
@@ -7457,10 +7455,10 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7457
7455
|
}, 16, ["value"])
|
|
7458
7456
|
]),
|
|
7459
7457
|
default: O(() => [
|
|
7460
|
-
|
|
7458
|
+
Ge("div", null, eu(Array.isArray(b.value) ? A.value : ""), 1)
|
|
7461
7459
|
]),
|
|
7462
7460
|
_: 3
|
|
7463
|
-
}, 8, ["trigger"]));
|
|
7461
|
+
}, 8, ["show", "trigger"]));
|
|
7464
7462
|
}
|
|
7465
7463
|
}), of = /* @__PURE__ */ me({
|
|
7466
7464
|
__name: "PresetSelect",
|
|
@@ -7483,7 +7481,7 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7483
7481
|
},
|
|
7484
7482
|
emits: ["before", "success", "error", "finally", "blur", "clear", "create", "focus", "scroll", "search", "update:value", "update:page", "update:pageSize"],
|
|
7485
7483
|
setup(e, { expose: u, emit: t }) {
|
|
7486
|
-
const n = t, r = mt("select-ref"), o = { page: "page", pageSize: "pageSize", search: "search", list: "list", count: "count", label: "label", value: "value", children: "children", ...e.fields }, a =
|
|
7484
|
+
const n = t, r = mt("select-ref"), o = { page: "page", pageSize: "pageSize", search: "search", list: "list", count: "count", label: "label", value: "value", children: "children", ...e.fields }, a = gu({
|
|
7487
7485
|
showSizePicker: !0,
|
|
7488
7486
|
pageSizes: [10, 20, 30],
|
|
7489
7487
|
pageSlot: 5,
|
|
@@ -7513,10 +7511,10 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7513
7511
|
onError: (F, q) => {
|
|
7514
7512
|
e.requestOptions?.onError?.(F, q), n("error", F, q);
|
|
7515
7513
|
},
|
|
7516
|
-
onFinally: (F, q,
|
|
7517
|
-
e.requestOptions?.onFinally?.(F, q,
|
|
7514
|
+
onFinally: (F, q, ee) => {
|
|
7515
|
+
e.requestOptions?.onFinally?.(F, q, ee), n("finally", F, q, ee);
|
|
7518
7516
|
}
|
|
7519
|
-
}, e.requestPlugins), g =
|
|
7517
|
+
}, e.requestPlugins), g = oe(() => s.value ? Array.isArray(s.value[o.list]) ? s.value[o.list] : (console.warn(`DataTablePlus: data[${o.list}] must be an array`), []) : []), h = oe(() => typeof e.optionFormat == "function" ? g.value.map((F) => e.optionFormat(F)).filter((F) => !!F) : g.value.map((F) => ({
|
|
7520
7518
|
[o.label]: F[o.label],
|
|
7521
7519
|
[o.value]: F[o.value],
|
|
7522
7520
|
[o.children]: F[o.children]
|
|
@@ -7550,8 +7548,8 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7550
7548
|
n("scroll", F);
|
|
7551
7549
|
},
|
|
7552
7550
|
onUpdateValue: (F, q) => {
|
|
7553
|
-
const
|
|
7554
|
-
n("update:value", F, q, Ee(Ne(
|
|
7551
|
+
const ee = Array.isArray(F) ? g.value.filter((C) => F.includes(C[o.value])) : g.value.find((C) => C[o.value] === F) ?? null;
|
|
7552
|
+
n("update:value", F, q, Ee(Ne(ee)));
|
|
7555
7553
|
},
|
|
7556
7554
|
onSearch: (F) => {
|
|
7557
7555
|
w.value = F, !d.value && (e.debounce ? P() : k({
|
|
@@ -7574,13 +7572,13 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7574
7572
|
});
|
|
7575
7573
|
}
|
|
7576
7574
|
};
|
|
7577
|
-
function
|
|
7575
|
+
function L(F) {
|
|
7578
7576
|
return typeof e.fallbackLabel == "function" ? e.fallbackLabel(F) : {
|
|
7579
7577
|
[o.label]: e.fallbackLabel ?? `${F}`,
|
|
7580
7578
|
[o.value]: F
|
|
7581
7579
|
};
|
|
7582
7580
|
}
|
|
7583
|
-
const
|
|
7581
|
+
const X = {
|
|
7584
7582
|
loading: d,
|
|
7585
7583
|
data: s,
|
|
7586
7584
|
error: c,
|
|
@@ -7588,7 +7586,7 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7588
7586
|
pagination: i,
|
|
7589
7587
|
rawList: g,
|
|
7590
7588
|
selectRef: r
|
|
7591
|
-
},
|
|
7589
|
+
}, ie = {
|
|
7592
7590
|
run: x,
|
|
7593
7591
|
runAsync: p,
|
|
7594
7592
|
refresh: v,
|
|
@@ -7602,8 +7600,8 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7602
7600
|
runParamsAsync: async (F) => p(Object.assign(y.value[0], F))
|
|
7603
7601
|
};
|
|
7604
7602
|
return u({
|
|
7605
|
-
refs:
|
|
7606
|
-
actions:
|
|
7603
|
+
refs: X,
|
|
7604
|
+
actions: ie
|
|
7607
7605
|
}), (F, q) => (R(), z(_(Mr), Z({
|
|
7608
7606
|
ref: "select-ref",
|
|
7609
7607
|
remote: "",
|
|
@@ -7616,7 +7614,7 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7616
7614
|
"value-field": o.value,
|
|
7617
7615
|
"children-field": o.children,
|
|
7618
7616
|
value: F.value,
|
|
7619
|
-
"fallback-option":
|
|
7617
|
+
"fallback-option": L,
|
|
7620
7618
|
loading: _(d)
|
|
7621
7619
|
}, F.selectProps, {
|
|
7622
7620
|
onBlur: D.onBlur,
|
|
@@ -7630,20 +7628,20 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7630
7628
|
}), {
|
|
7631
7629
|
header: O(() => [
|
|
7632
7630
|
U(F.$slots, "header", {
|
|
7633
|
-
refs:
|
|
7634
|
-
actions:
|
|
7631
|
+
refs: X,
|
|
7632
|
+
actions: ie
|
|
7635
7633
|
})
|
|
7636
7634
|
]),
|
|
7637
7635
|
action: O(() => [
|
|
7638
7636
|
U(F.$slots, "footer", {
|
|
7639
|
-
refs:
|
|
7640
|
-
actions:
|
|
7637
|
+
refs: X,
|
|
7638
|
+
actions: ie
|
|
7641
7639
|
}, () => [
|
|
7642
7640
|
V(_(Oe), null, {
|
|
7643
7641
|
default: O(() => [
|
|
7644
7642
|
U(F.$slots, "footer-extra", {
|
|
7645
|
-
refs:
|
|
7646
|
-
actions:
|
|
7643
|
+
refs: X,
|
|
7644
|
+
actions: ie
|
|
7647
7645
|
}),
|
|
7648
7646
|
F.pagination ? (R(), z(_(Nr), Z({
|
|
7649
7647
|
key: 0,
|
|
@@ -7653,7 +7651,7 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7653
7651
|
}, { ...a, ...i.value }, {
|
|
7654
7652
|
"onUpdate:page": B.onUpdatePage,
|
|
7655
7653
|
"onUpdate:pageSize": B.onUpdatePageSize
|
|
7656
|
-
}), null, 16, ["disabled", "onUpdate:page", "onUpdate:pageSize"])) :
|
|
7654
|
+
}), null, 16, ["disabled", "onUpdate:page", "onUpdate:pageSize"])) : ue("", !0)
|
|
7657
7655
|
]),
|
|
7658
7656
|
_: 3
|
|
7659
7657
|
})
|
|
@@ -7745,7 +7743,7 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7745
7743
|
function a() {
|
|
7746
7744
|
t.value = !1, u.value = r.value;
|
|
7747
7745
|
}
|
|
7748
|
-
return (i, l) => (R(),
|
|
7746
|
+
return (i, l) => (R(), re("div", { onClick: o }, [
|
|
7749
7747
|
t.value ? (R(), z(_(sn), Z({
|
|
7750
7748
|
key: 0,
|
|
7751
7749
|
ref_key: "inputRef",
|
|
@@ -7755,8 +7753,8 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7755
7753
|
"onUpdate:value": l[0] || (l[0] = (s) => r.value = s),
|
|
7756
7754
|
onChange: a,
|
|
7757
7755
|
onBlur: a
|
|
7758
|
-
}), null, 16, ["value"])) : (R(),
|
|
7759
|
-
|
|
7756
|
+
}), null, 16, ["value"])) : (R(), re(Ae, { key: 1 }, [
|
|
7757
|
+
vu(eu(r.value), 1)
|
|
7760
7758
|
], 64))
|
|
7761
7759
|
]));
|
|
7762
7760
|
}
|
|
@@ -7772,7 +7770,7 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7772
7770
|
const t = u;
|
|
7773
7771
|
return (n, r) => (R(), z(_(ln), fe(je(n.tooltipProps)), {
|
|
7774
7772
|
trigger: O(() => [
|
|
7775
|
-
V(_(
|
|
7773
|
+
V(_(uu), Z(n.buttonProps, {
|
|
7776
7774
|
onClick: r[0] || (r[0] = (o) => t("click", o))
|
|
7777
7775
|
}), {
|
|
7778
7776
|
icon: O(() => [
|
|
@@ -7786,7 +7784,7 @@ const Yc = /* @__PURE__ */ vn(Vc, [["render", Zc]]), rf = /* @__PURE__ */ me({
|
|
|
7786
7784
|
]),
|
|
7787
7785
|
default: O(() => [
|
|
7788
7786
|
U(n.$slots, "tooltip", {}, () => [
|
|
7789
|
-
|
|
7787
|
+
vu(eu(n.value), 1)
|
|
7790
7788
|
])
|
|
7791
7789
|
]),
|
|
7792
7790
|
_: 3
|
|
@@ -7800,7 +7798,7 @@ export {
|
|
|
7800
7798
|
tf as NDataTablePlus,
|
|
7801
7799
|
Cs as NFullLoading,
|
|
7802
7800
|
nf as NPresetForm,
|
|
7803
|
-
|
|
7801
|
+
Ke as NPresetInput,
|
|
7804
7802
|
rf as NPresetPicker,
|
|
7805
7803
|
of as NPresetSelect,
|
|
7806
7804
|
af as NRemoteRequest,
|