@oiij/naive-ui 0.0.24 → 0.0.25
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.cjs +8 -8
- package/dist/components.js +100 -100
- package/dist/components.umd.cjs +9 -9
- package/dist/composables/useNaiveForm.d.cts +4 -4
- package/dist/composables/useNaiveForm.d.ts +4 -4
- package/dist/composables/useNaiveTheme.d.cts +2 -2
- package/dist/composables/useNaiveTheme.d.ts +2 -2
- package/package.json +2 -2
package/dist/components.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as Sr, onBeforeMount as To, defineComponent as xe, createBlock as N, openBlock as R, Transition as Po, mergeProps as Q, unref as v, withCtx as M, renderSlot as H, ref as G, toValue as
|
|
1
|
+
import { inject as Sr, onBeforeMount as To, defineComponent as xe, createBlock as N, openBlock as R, Transition as Po, mergeProps as Q, unref as v, withCtx as M, renderSlot as H, ref as G, toValue as du, isRef as Qt, isReactive as Ro, watchEffect as Me, watch as je, computed as ge, nextTick as rn, normalizeClass as Su, createElementVNode as Lu, normalizeStyle as on, createVNode as Y, createCommentVNode as ie, resolveDynamicComponent as oe, Teleport as Oo, normalizeProps as ce, guardReactiveProps as Ue, createSlots as Mo, onMounted as Lo, createElementBlock as se, createTextVNode as Nu, toDisplayString as Iu, onScopeDispose as an, onUnmounted as No, reactive as Tu, toRefs as Io, h as he, createStaticVNode as zo, useTemplateRef as mt, Fragment as Ae, renderList as Ye, toRaw as Ve, toRef as $o, mergeModels as Bo, useModel as Uo } from "vue";
|
|
2
2
|
import { NEl as cn, NAvatar as qo, NFlex as qe, NSpin as Tr, cM as qn, NConfigProvider as jo, NLoadingBarProvider as Ho, NDialogProvider as Go, NModalProvider as Wo, NNotificationProvider as Vo, NMessageProvider as Zo, NGlobalStyle as Yo, useDialog as Xo, useLoadingBar as Qo, useMessage as Jo, useModal as Ko, useNotification as ei, NTooltip as Pr, NButton as mu, NFormItem as ui, NInputGroup as ti, NInput as sn, NTimePicker as ni, NSwitch as ri, NSlider as oi, NSelect as Rr, NRate as ii, NRadioGroup as ai, NInputNumber as ci, NDynamicTags as si, NDatePicker as li, NDivider as ln, NCheckboxGroup as fi, NColorPicker as di, NCheckbox as pi, NRadio as hi, NGrid as st, NGi as lt, NCollapseTransition as Or, NDataTable as bi, NPagination as Mr, NDropdown as mi, NForm as gi } from "naive-ui";
|
|
3
3
|
import { createEventHook as rt, useClipboard as xi, useTimeoutFn as ki, useDebounceFn as Lr } from "@vueuse/core";
|
|
4
4
|
function _i(e) {
|
|
@@ -641,28 +641,28 @@ function Hr() {
|
|
|
641
641
|
enumerable: !0,
|
|
642
642
|
value: !1
|
|
643
643
|
}
|
|
644
|
-
})), te = null, Ce = null,
|
|
644
|
+
})), te = null, Ce = null, tu = !0, nu = !0, ru = !1, Ke = !0, He = !1, Ge = !0, eu = !1, At = !1, wt = !1, ou = !1, qu = !1, ju = !1, An = !0, wn = !1;
|
|
645
645
|
const yo = "user-content-";
|
|
646
|
-
let Ct = !0, xu = !1,
|
|
646
|
+
let Ct = !0, xu = !1, iu = {}, au = null;
|
|
647
647
|
const Cn = U({}, ["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 = U({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
650
650
|
let Dt = null;
|
|
651
651
|
const Sn = U({}, ["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", Ie = "http://www.w3.org/1999/xhtml";
|
|
652
|
-
let
|
|
652
|
+
let cu = Ie, Ft = !1, St = null;
|
|
653
653
|
const Eo = U({}, [Hu, Gu, Ie], Ot);
|
|
654
654
|
let Wu = U({}, ["mi", "mo", "mn", "ms", "mtext"]), Vu = U({}, ["annotation-xml"]);
|
|
655
655
|
const Ao = U({}, ["title", "style", "font", "a", "script"]);
|
|
656
656
|
let ku = null;
|
|
657
657
|
const wo = ["application/xhtml+xml", "text/html"], Co = "text/html";
|
|
658
|
-
let ne = null,
|
|
658
|
+
let ne = null, su = null;
|
|
659
659
|
const Do = t.createElement("form"), Tn = function(b) {
|
|
660
660
|
return b instanceof RegExp || b instanceof Function;
|
|
661
661
|
}, Tt = function() {
|
|
662
662
|
let b = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
663
|
-
if (!(
|
|
663
|
+
if (!(su && su === b)) {
|
|
664
664
|
if ((!b || typeof b != "object") && (b = {}), b = Be(b), ku = // eslint-disable-next-line unicorn/prefer-includes
|
|
665
|
-
wo.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? Co : b.PARSER_MEDIA_TYPE, ne = ku === "application/xhtml+xml" ? Ot : ot, T = Se(b, "ALLOWED_TAGS") ? U({}, b.ALLOWED_TAGS, ne) : V, $ = Se(b, "ALLOWED_ATTR") ? U({}, b.ALLOWED_ATTR, ne) : Z, St = Se(b, "ALLOWED_NAMESPACES") ? U({}, b.ALLOWED_NAMESPACES, Ot) : Eo, Dt = Se(b, "ADD_URI_SAFE_ATTR") ? U(Be(Sn), b.ADD_URI_SAFE_ATTR, ne) : Sn, Dn = Se(b, "ADD_DATA_URI_TAGS") ? U(Be(Fn), b.ADD_DATA_URI_TAGS, ne) : Fn,
|
|
665
|
+
wo.indexOf(b.PARSER_MEDIA_TYPE) === -1 ? Co : b.PARSER_MEDIA_TYPE, ne = ku === "application/xhtml+xml" ? Ot : ot, T = Se(b, "ALLOWED_TAGS") ? U({}, b.ALLOWED_TAGS, ne) : V, $ = Se(b, "ALLOWED_ATTR") ? U({}, b.ALLOWED_ATTR, ne) : Z, St = Se(b, "ALLOWED_NAMESPACES") ? U({}, b.ALLOWED_NAMESPACES, Ot) : Eo, Dt = Se(b, "ADD_URI_SAFE_ATTR") ? U(Be(Sn), b.ADD_URI_SAFE_ATTR, ne) : Sn, Dn = Se(b, "ADD_DATA_URI_TAGS") ? U(Be(Fn), b.ADD_DATA_URI_TAGS, ne) : Fn, au = Se(b, "FORBID_CONTENTS") ? U({}, b.FORBID_CONTENTS, ne) : Cn, te = Se(b, "FORBID_TAGS") ? U({}, b.FORBID_TAGS, ne) : Be({}), Ce = Se(b, "FORBID_ATTR") ? U({}, b.FORBID_ATTR, ne) : Be({}), iu = Se(b, "USE_PROFILES") ? b.USE_PROFILES : !1, tu = b.ALLOW_ARIA_ATTR !== !1, nu = b.ALLOW_DATA_ATTR !== !1, ru = b.ALLOW_UNKNOWN_PROTOCOLS || !1, Ke = b.ALLOW_SELF_CLOSE_IN_ATTR !== !1, He = b.SAFE_FOR_TEMPLATES || !1, Ge = b.SAFE_FOR_XML !== !1, eu = b.WHOLE_DOCUMENT || !1, ou = b.RETURN_DOM || !1, qu = b.RETURN_DOM_FRAGMENT || !1, ju = b.RETURN_TRUSTED_TYPE || !1, wt = b.FORCE_BODY || !1, An = b.SANITIZE_DOM !== !1, wn = b.SANITIZE_NAMED_PROPS || !1, Ct = b.KEEP_CONTENT !== !1, xu = b.IN_PLACE || !1, z = b.ALLOWED_URI_REGEXP || qr, cu = b.NAMESPACE || Ie, Wu = b.MATHML_TEXT_INTEGRATION_POINTS || Wu, Vu = b.HTML_INTEGRATION_POINTS || Vu, j = b.CUSTOM_ELEMENT_HANDLING || {}, b.CUSTOM_ELEMENT_HANDLING && Tn(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (j.tagNameCheck = b.CUSTOM_ELEMENT_HANDLING.tagNameCheck), b.CUSTOM_ELEMENT_HANDLING && Tn(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (j.attributeNameCheck = b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), b.CUSTOM_ELEMENT_HANDLING && typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (j.allowCustomizedBuiltInElements = b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), He && (nu = !1), qu && (ou = !0), iu && (T = U({}, Xn), $ = [], iu.html === !0 && (U(T, Yn), U($, Qn)), iu.svg === !0 && (U(T, Mt), U($, It), U($, Ju)), iu.svgFilters === !0 && (U(T, Lt), U($, It), U($, Ju)), iu.mathMl === !0 && (U(T, Nt), U($, Jn), U($, Ju))), b.ADD_TAGS && (T === V && (T = Be(T)), U(T, b.ADD_TAGS, ne)), b.ADD_ATTR && ($ === Z && ($ = Be($)), U($, b.ADD_ATTR, ne)), b.ADD_URI_SAFE_ATTR && U(Dt, b.ADD_URI_SAFE_ATTR, ne), b.FORBID_CONTENTS && (au === Cn && (au = Be(au)), U(au, b.FORBID_CONTENTS, ne)), Ct && (T["#text"] = !0), eu && U(T, ["html", "head", "body"]), T.table && (U(T, ["tbody"]), delete te.tbody), b.TRUSTED_TYPES_POLICY) {
|
|
666
666
|
if (typeof b.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
667
667
|
throw Eu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
668
668
|
if (typeof b.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -670,12 +670,12 @@ function Hr() {
|
|
|
670
670
|
g = b.TRUSTED_TYPES_POLICY, m = g.createHTML("");
|
|
671
671
|
} else
|
|
672
672
|
g === void 0 && (g = ba(x, r)), g !== null && typeof m == "string" && (m = g.createHTML(""));
|
|
673
|
-
ke && ke(b),
|
|
673
|
+
ke && ke(b), su = b;
|
|
674
674
|
}
|
|
675
675
|
}, Pn = U({}, [...Mt, ...Lt, ...ra]), Rn = U({}, [...Nt, ...oa]), Fo = function(b) {
|
|
676
676
|
let F = p(b);
|
|
677
677
|
(!F || !F.tagName) && (F = {
|
|
678
|
-
namespaceURI:
|
|
678
|
+
namespaceURI: cu,
|
|
679
679
|
tagName: "template"
|
|
680
680
|
});
|
|
681
681
|
const O = ot(b.tagName), K = ot(F.tagName);
|
|
@@ -689,7 +689,7 @@ function Hr() {
|
|
|
689
689
|
} catch {
|
|
690
690
|
A(b);
|
|
691
691
|
}
|
|
692
|
-
},
|
|
692
|
+
}, lu = function(b, F) {
|
|
693
693
|
try {
|
|
694
694
|
vu(u.removed, {
|
|
695
695
|
attribute: F.getAttributeNode(b),
|
|
@@ -702,7 +702,7 @@ function Hr() {
|
|
|
702
702
|
});
|
|
703
703
|
}
|
|
704
704
|
if (F.removeAttribute(b), b === "is")
|
|
705
|
-
if (
|
|
705
|
+
if (ou || qu)
|
|
706
706
|
try {
|
|
707
707
|
Pe(F);
|
|
708
708
|
} catch {
|
|
@@ -720,22 +720,22 @@ function Hr() {
|
|
|
720
720
|
const ue = Zn(b, /^[\r\n\t ]+/);
|
|
721
721
|
O = ue && ue[0];
|
|
722
722
|
}
|
|
723
|
-
ku === "application/xhtml+xml" &&
|
|
723
|
+
ku === "application/xhtml+xml" && cu === Ie && (b = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + b + "</body></html>");
|
|
724
724
|
const K = g ? g.createHTML(b) : b;
|
|
725
|
-
if (
|
|
725
|
+
if (cu === Ie)
|
|
726
726
|
try {
|
|
727
727
|
F = new _().parseFromString(K, ku);
|
|
728
728
|
} catch {
|
|
729
729
|
}
|
|
730
730
|
if (!F || !F.documentElement) {
|
|
731
|
-
F = k.createDocument(
|
|
731
|
+
F = k.createDocument(cu, "template", null);
|
|
732
732
|
try {
|
|
733
733
|
F.documentElement.innerHTML = Ft ? m : K;
|
|
734
734
|
} catch {
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
737
|
const fe = F.body || F.documentElement;
|
|
738
|
-
return b && O && fe.insertBefore(t.createTextNode(O), fe.childNodes[0] || null),
|
|
738
|
+
return b && O && fe.insertBefore(t.createTextNode(O), fe.childNodes[0] || null), cu === Ie ? D.call(F, eu ? "html" : "body")[0] : eu ? F.documentElement : fe;
|
|
739
739
|
}, Mn = function(b) {
|
|
740
740
|
return w.call(
|
|
741
741
|
b.ownerDocument || b,
|
|
@@ -751,7 +751,7 @@ function Hr() {
|
|
|
751
751
|
};
|
|
752
752
|
function ze(L, b, F) {
|
|
753
753
|
Qu(L, (O) => {
|
|
754
|
-
O.call(u, b, F,
|
|
754
|
+
O.call(u, b, F, su);
|
|
755
755
|
});
|
|
756
756
|
}
|
|
757
757
|
const Nn = function(b) {
|
|
@@ -767,7 +767,7 @@ function Hr() {
|
|
|
767
767
|
if (!T[O] || te[O]) {
|
|
768
768
|
if (!te[O] && zn(O) && (j.tagNameCheck instanceof RegExp && me(j.tagNameCheck, O) || j.tagNameCheck instanceof Function && j.tagNameCheck(O)))
|
|
769
769
|
return !1;
|
|
770
|
-
if (Ct && !
|
|
770
|
+
if (Ct && !au[O]) {
|
|
771
771
|
const K = p(b) || b.parentNode, fe = h(b) || b.childNodes;
|
|
772
772
|
if (fe && K) {
|
|
773
773
|
const ue = fe.length;
|
|
@@ -787,8 +787,8 @@ function Hr() {
|
|
|
787
787
|
}, In = function(b, F, O) {
|
|
788
788
|
if (An && (F === "id" || F === "name") && (O in t || O in Do))
|
|
789
789
|
return !1;
|
|
790
|
-
if (!(
|
|
791
|
-
if (!(
|
|
790
|
+
if (!(nu && !Ce[F] && me(q, F))) {
|
|
791
|
+
if (!(tu && me(be, F))) {
|
|
792
792
|
if (!$[F] || Ce[F]) {
|
|
793
793
|
if (
|
|
794
794
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
@@ -801,7 +801,7 @@ function Hr() {
|
|
|
801
801
|
} else if (!Dt[F]) {
|
|
802
802
|
if (!me(z, yu(O, W, ""))) {
|
|
803
803
|
if (!((F === "src" || F === "xlink:href" || F === "href") && b !== "script" && ea(O, "data:") === 0 && Dn[b])) {
|
|
804
|
-
if (!(
|
|
804
|
+
if (!(ru && !me(ee, yu(O, W, "")))) {
|
|
805
805
|
if (O)
|
|
806
806
|
return !1;
|
|
807
807
|
}
|
|
@@ -835,18 +835,18 @@ function Hr() {
|
|
|
835
835
|
value: $e
|
|
836
836
|
} = fe, _u = ne(ue), Rt = $e;
|
|
837
837
|
let de = ue === "value" ? Rt : ua(Rt);
|
|
838
|
-
if (O.attrName = _u, O.attrValue = de, O.keepAttr = !0, O.forceKeepAttr = void 0, ze(B.uponSanitizeAttribute, b, O), de = O.attrValue, wn && (_u === "id" || _u === "name") && (
|
|
839
|
-
|
|
838
|
+
if (O.attrName = _u, O.attrValue = de, O.keepAttr = !0, O.forceKeepAttr = void 0, ze(B.uponSanitizeAttribute, b, O), de = O.attrValue, wn && (_u === "id" || _u === "name") && (lu(ue, b), de = yo + de), Ge && me(/((--!?|])>)|<\/(style|title)/i, de)) {
|
|
839
|
+
lu(ue, b);
|
|
840
840
|
continue;
|
|
841
841
|
}
|
|
842
842
|
if (O.forceKeepAttr)
|
|
843
843
|
continue;
|
|
844
844
|
if (!O.keepAttr) {
|
|
845
|
-
|
|
845
|
+
lu(ue, b);
|
|
846
846
|
continue;
|
|
847
847
|
}
|
|
848
|
-
if (!
|
|
849
|
-
|
|
848
|
+
if (!Ke && me(/\/>/i, de)) {
|
|
849
|
+
lu(ue, b);
|
|
850
850
|
continue;
|
|
851
851
|
}
|
|
852
852
|
He && Qu([J, le, S], (Un) => {
|
|
@@ -854,7 +854,7 @@ function Hr() {
|
|
|
854
854
|
});
|
|
855
855
|
const Bn = ne(b.nodeName);
|
|
856
856
|
if (!In(Bn, _u, de)) {
|
|
857
|
-
|
|
857
|
+
lu(ue, b);
|
|
858
858
|
continue;
|
|
859
859
|
}
|
|
860
860
|
if (g && typeof x == "object" && typeof x.getAttributeType == "function" && !ve)
|
|
@@ -872,7 +872,7 @@ function Hr() {
|
|
|
872
872
|
try {
|
|
873
873
|
ve ? b.setAttributeNS(ve, ue, de) : b.setAttribute(ue, de), Pt(b) ? Pe(b) : Vn(u.removed);
|
|
874
874
|
} catch {
|
|
875
|
-
|
|
875
|
+
lu(ue, b);
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
878
|
ze(B.afterSanitizeAttributes, b, null);
|
|
@@ -902,11 +902,11 @@ function Hr() {
|
|
|
902
902
|
} else if (L instanceof i)
|
|
903
903
|
F = On("<!---->"), O = F.ownerDocument.importNode(L, !0), O.nodeType === wu.element && O.nodeName === "BODY" || O.nodeName === "HTML" ? F = O : F.appendChild(O);
|
|
904
904
|
else {
|
|
905
|
-
if (!
|
|
905
|
+
if (!ou && !He && !eu && // eslint-disable-next-line unicorn/prefer-includes
|
|
906
906
|
L.indexOf("<") === -1)
|
|
907
907
|
return g && ju ? g.createHTML(L) : L;
|
|
908
908
|
if (F = On(L), !F)
|
|
909
|
-
return
|
|
909
|
+
return ou ? null : ju ? m : "";
|
|
910
910
|
}
|
|
911
911
|
F && wt && Pe(F.firstChild);
|
|
912
912
|
const ue = Mn(xu ? L : F);
|
|
@@ -914,7 +914,7 @@ function Hr() {
|
|
|
914
914
|
Nn(K), $n(K), K.content instanceof o && So(K.content);
|
|
915
915
|
if (xu)
|
|
916
916
|
return L;
|
|
917
|
-
if (
|
|
917
|
+
if (ou) {
|
|
918
918
|
if (qu)
|
|
919
919
|
for (fe = P.call(F.ownerDocument); F.firstChild; )
|
|
920
920
|
fe.appendChild(F.firstChild);
|
|
@@ -922,8 +922,8 @@ function Hr() {
|
|
|
922
922
|
fe = F;
|
|
923
923
|
return ($.shadowroot || $.shadowrootmode) && (fe = I.call(n, fe, !0)), fe;
|
|
924
924
|
}
|
|
925
|
-
let ve =
|
|
926
|
-
return
|
|
925
|
+
let ve = eu ? F.outerHTML : F.innerHTML;
|
|
926
|
+
return eu && T["!doctype"] && F.ownerDocument && F.ownerDocument.doctype && F.ownerDocument.doctype.name && me(jr, F.ownerDocument.doctype.name) && (ve = "<!DOCTYPE " + F.ownerDocument.doctype.name + `>
|
|
927
927
|
` + ve), He && Qu([J, le, S], ($e) => {
|
|
928
928
|
ve = yu(ve, $e, " ");
|
|
929
929
|
}), g && ju ? g.createHTML(ve) : ve;
|
|
@@ -931,9 +931,9 @@ function Hr() {
|
|
|
931
931
|
let L = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
932
932
|
Tt(L), At = !0;
|
|
933
933
|
}, u.clearConfig = function() {
|
|
934
|
-
|
|
934
|
+
su = null, At = !1;
|
|
935
935
|
}, u.isValidAttribute = function(L, b, F) {
|
|
936
|
-
|
|
936
|
+
su || Tt({});
|
|
937
937
|
const O = ne(L), K = ne(b);
|
|
938
938
|
return In(O, K, F);
|
|
939
939
|
}, u.addHook = function(L, b) {
|
|
@@ -1197,10 +1197,10 @@ var ae;
|
|
|
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
|
})(ae || (ae = {}));
|
|
1199
1199
|
const La = 32;
|
|
1200
|
-
var
|
|
1200
|
+
var Xe;
|
|
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
|
+
})(Xe || (Xe = {}));
|
|
1204
1204
|
function un(e) {
|
|
1205
1205
|
return e >= ae.ZERO && e <= ae.NINE;
|
|
1206
1206
|
}
|
|
@@ -1217,13 +1217,13 @@ var re;
|
|
|
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
|
})(re || (re = {}));
|
|
1220
|
-
var
|
|
1220
|
+
var Ze;
|
|
1221
1221
|
(function(e) {
|
|
1222
1222
|
e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
|
|
1223
|
-
})(
|
|
1223
|
+
})(Ze || (Ze = {}));
|
|
1224
1224
|
class $a {
|
|
1225
1225
|
constructor(u, t, n) {
|
|
1226
|
-
this.decodeTree = u, this.emitCodePoint = t, this.errors = n, this.state = re.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 = re.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = Ze.Strict;
|
|
1227
1227
|
}
|
|
1228
1228
|
/** Resets the instance to make it reusable. */
|
|
1229
1229
|
startEntity(u) {
|
|
@@ -1331,7 +1331,7 @@ class $a {
|
|
|
1331
1331
|
return (n = this.errors) === null || n === void 0 || n.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
1332
1332
|
if (u === ae.SEMI)
|
|
1333
1333
|
this.consumed += 1;
|
|
1334
|
-
else if (this.decodeMode ===
|
|
1334
|
+
else if (this.decodeMode === Ze.Strict)
|
|
1335
1335
|
return 0;
|
|
1336
1336
|
return this.emitCodePoint(Ma(this.result), this.consumed), this.errors && (u !== ae.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
1337
1337
|
}
|
|
@@ -1346,18 +1346,18 @@ class $a {
|
|
|
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 & Xe.VALUE_LENGTH) >> 14;
|
|
1350
1350
|
for (; t < u.length; t++, this.excess++) {
|
|
1351
1351
|
const a = u.charCodeAt(t);
|
|
1352
1352
|
if (this.treeIndex = Ba(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 === Ze.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
1355
1355
|
(o === 0 || // And there should be no invalid characters.
|
|
1356
1356
|
za(a)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1357
|
-
if (r = n[this.treeIndex], o = (r &
|
|
1357
|
+
if (r = n[this.treeIndex], o = (r & Xe.VALUE_LENGTH) >> 14, o !== 0) {
|
|
1358
1358
|
if (a === ae.SEMI)
|
|
1359
1359
|
return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
|
|
1360
|
-
this.decodeMode !==
|
|
1360
|
+
this.decodeMode !== Ze.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 $a {
|
|
|
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] & Xe.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 $a {
|
|
|
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] & ~Xe.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 $a {
|
|
|
1396
1396
|
var u;
|
|
1397
1397
|
switch (this.state) {
|
|
1398
1398
|
case re.NamedEntity:
|
|
1399
|
-
return this.result !== 0 && (this.decodeMode !==
|
|
1399
|
+
return this.result !== 0 && (this.decodeMode !== Ze.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
1400
1400
|
// Otherwise, emit a numeric entity if we have one.
|
|
1401
1401
|
case re.NumericDecimal:
|
|
1402
1402
|
return this.emitNumericEntity(0, 2);
|
|
@@ -1432,7 +1432,7 @@ function Yr(e) {
|
|
|
1432
1432
|
};
|
|
1433
1433
|
}
|
|
1434
1434
|
function Ba(e, u, t, n) {
|
|
1435
|
-
const r = (u &
|
|
1435
|
+
const r = (u & Xe.BRANCH_LENGTH) >> 7, o = u & Xe.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 Ba(e, u, t, n) {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
const Ua = Yr(Ta);
|
|
1455
1455
|
Yr(Pa);
|
|
1456
|
-
function Xr(e, u =
|
|
1456
|
+
function Xr(e, u = Ze.Legacy) {
|
|
1457
1457
|
return Ua(e, u);
|
|
1458
1458
|
}
|
|
1459
1459
|
function qa(e) {
|
|
@@ -1517,7 +1517,7 @@ const Xa = /[&<>"]/, Qa = /[&<>"]/g, Ja = {
|
|
|
1517
1517
|
function Ka(e) {
|
|
1518
1518
|
return Ja[e];
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function Je(e) {
|
|
1521
1521
|
return Xa.test(e) ? e.replace(Qa, Ka) : e;
|
|
1522
1522
|
}
|
|
1523
1523
|
const e0 = /[.?*+^$[\]\\(){}|-]/g;
|
|
@@ -1605,7 +1605,7 @@ const t0 = { mdurl: Da, ucmicro: Sa }, n0 = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1605
1605
|
__proto__: null,
|
|
1606
1606
|
arrayReplaceAt: Qr,
|
|
1607
1607
|
assign: _t,
|
|
1608
|
-
escapeHtml:
|
|
1608
|
+
escapeHtml: Je,
|
|
1609
1609
|
escapeRE: u0,
|
|
1610
1610
|
fromCodePoint: dt,
|
|
1611
1611
|
has: Ha,
|
|
@@ -1719,11 +1719,11 @@ const a0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1719
1719
|
}, Symbol.toStringTag, { value: "Module" })), Le = {};
|
|
1720
1720
|
Le.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) + ">" + Je(o.content) + "</code>";
|
|
1723
1723
|
};
|
|
1724
1724
|
Le.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>" + Je(e[u].content) + `</code></pre>
|
|
1727
1727
|
`;
|
|
1728
1728
|
};
|
|
1729
1729
|
Le.fence = function(e, u, t, n, r) {
|
|
@@ -1734,7 +1734,7 @@ Le.fence = function(e, u, t, n, r) {
|
|
|
1734
1734
|
i = l[0], c = l.slice(2).join("");
|
|
1735
1735
|
}
|
|
1736
1736
|
let s;
|
|
1737
|
-
if (t.highlight ? s = t.highlight(o.content, i, c) ||
|
|
1737
|
+
if (t.highlight ? s = t.highlight(o.content, i, c) || Je(o.content) : s = Je(o.content), s.indexOf("<pre") === 0)
|
|
1738
1738
|
return s + `
|
|
1739
1739
|
`;
|
|
1740
1740
|
if (a) {
|
|
@@ -1765,7 +1765,7 @@ Le.softbreak = function(e, u, t) {
|
|
|
1765
1765
|
`;
|
|
1766
1766
|
};
|
|
1767
1767
|
Le.text = function(e, u) {
|
|
1768
|
-
return
|
|
1768
|
+
return Je(e[u].content);
|
|
1769
1769
|
};
|
|
1770
1770
|
Le.html_block = function(e, u) {
|
|
1771
1771
|
return e[u].content;
|
|
@@ -1781,7 +1781,7 @@ gu.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 += " " + Je(u.attrs[t][0]) + '="' + Je(u.attrs[t][1]) + '"';
|
|
1785
1785
|
return r;
|
|
1786
1786
|
};
|
|
1787
1787
|
gu.prototype.renderToken = function(u, t, n) {
|
|
@@ -2731,7 +2731,7 @@ const N0 = [
|
|
|
2731
2731
|
"tr",
|
|
2732
2732
|
"track",
|
|
2733
2733
|
"ul"
|
|
2734
|
-
], I0 = "[a-zA-Z_:][a-zA-Z0-9:._-]*", z0 = "[^\"'=<>`\\x00-\\x20]+", $0 = "'[^']*'", B0 = '"[^"]*"', U0 = "(?:" + z0 + "|" + $0 + "|" + B0 + ")", q0 = "(?:\\s+" + I0 + "(?:\\s*=\\s*" + U0 + ")?)", uo = "<[A-Za-z][A-Za-z0-9\\-]*" + q0 + "*\\s*\\/?>", to = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", j0 = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", H0 = "<[?][\\s\\S]*?[?]>", G0 = "<![A-Za-z][^>]*>", W0 = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", V0 = new RegExp("^(?:" + uo + "|" + to + "|" + j0 + "|" + H0 + "|" + G0 + "|" + W0 + ")"), Z0 = new RegExp("^(?:" + uo + "|" + to + ")"),
|
|
2734
|
+
], I0 = "[a-zA-Z_:][a-zA-Z0-9:._-]*", z0 = "[^\"'=<>`\\x00-\\x20]+", $0 = "'[^']*'", B0 = '"[^"]*"', U0 = "(?:" + z0 + "|" + $0 + "|" + B0 + ")", q0 = "(?:\\s+" + I0 + "(?:\\s*=\\s*" + U0 + ")?)", uo = "<[A-Za-z][A-Za-z0-9\\-]*" + q0 + "*\\s*\\/?>", to = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", j0 = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", H0 = "<[?][\\s\\S]*?[?]>", G0 = "<![A-Za-z][^>]*>", W0 = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", V0 = new RegExp("^(?:" + uo + "|" + to + "|" + j0 + "|" + H0 + "|" + G0 + "|" + W0 + ")"), Z0 = new RegExp("^(?:" + uo + "|" + to + ")"), fu = [
|
|
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 Y0(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 < fu.length && !fu[i][0].test(a); i++)
|
|
2749
2749
|
;
|
|
2750
|
-
if (i ===
|
|
2750
|
+
if (i === fu.length)
|
|
2751
2751
|
return !1;
|
|
2752
2752
|
if (n)
|
|
2753
|
-
return
|
|
2753
|
+
return fu[i][2];
|
|
2754
2754
|
let c = u + 1;
|
|
2755
|
-
if (!
|
|
2755
|
+
if (!fu[i][1].test(a)) {
|
|
2756
2756
|
for (; c < t && !(e.sCount[c] < e.blkIndent); c++)
|
|
2757
|
-
if (r = e.bMarks[c] + e.tShift[c], o = e.eMarks[c], a = e.src.slice(r, o),
|
|
2757
|
+
if (r = e.bMarks[c] + e.tShift[c], o = e.eMarks[c], a = e.src.slice(r, o), fu[i][1].test(a)) {
|
|
2758
2758
|
a.length !== 0 && c++;
|
|
2759
2759
|
break;
|
|
2760
2760
|
}
|
|
@@ -4036,9 +4036,9 @@ Fe.prototype.renderInline = function(e, u) {
|
|
|
4036
4036
|
return u = u || {}, this.renderer.render(this.parseInline(e, u), this.options, u);
|
|
4037
4037
|
};
|
|
4038
4038
|
function ts(e, u) {
|
|
4039
|
-
const { manual: t = !1, domPurify: n = !0, ...r } = u ?? {}, o = G(Qt(e) ?
|
|
4039
|
+
const { manual: t = !1, domPurify: n = !0, ...r } = u ?? {}, o = G(Qt(e) ? du(e.value) : Ro(e) ? du(e) : e);
|
|
4040
4040
|
Qt(e) && Me(() => {
|
|
4041
|
-
o.value =
|
|
4041
|
+
o.value = du(e.value);
|
|
4042
4042
|
});
|
|
4043
4043
|
const a = G(""), i = G(), c = Fe({ ...r });
|
|
4044
4044
|
function s(l) {
|
|
@@ -4778,15 +4778,15 @@ function os() {
|
|
|
4778
4778
|
T--, z = h.slice(C, Z), V.index -= C;
|
|
4779
4779
|
} else if (V = s(ee, 0, z, le), !V)
|
|
4780
4780
|
continue;
|
|
4781
|
-
var te = V.index, Ce = V[0],
|
|
4782
|
-
w &&
|
|
4783
|
-
var
|
|
4784
|
-
|
|
4781
|
+
var te = V.index, Ce = V[0], tu = z.slice(0, te), nu = z.slice(te + Ce.length), ru = C + z.length;
|
|
4782
|
+
w && ru > w.reach && (w.reach = ru);
|
|
4783
|
+
var Ke = W.prev;
|
|
4784
|
+
tu && (Ke = _(p, Ke, tu), C += tu.length), x(p, Ke, T);
|
|
4785
4785
|
var He = new c(P, J ? i.tokenize(Ce, J) : Ce, q, Ce);
|
|
4786
|
-
if (W = _(p,
|
|
4786
|
+
if (W = _(p, Ke, He), nu && _(p, W, nu), T > 1) {
|
|
4787
4787
|
var Ge = {
|
|
4788
4788
|
cause: P + "," + I,
|
|
4789
|
-
reach:
|
|
4789
|
+
reach: ru
|
|
4790
4790
|
};
|
|
4791
4791
|
l(h, p, g, W.prev, C, Ge), w && Ge.reach > w.reach && (w.reach = Ge.reach);
|
|
4792
4792
|
}
|
|
@@ -5714,14 +5714,14 @@ const at = /* @__PURE__ */ new Map(), Cs = (e, u, t) => {
|
|
|
5714
5714
|
ct.set(e, u), u.then((t) => (ct.delete(e), t)).catch((t) => {
|
|
5715
5715
|
throw ct.delete(e), t;
|
|
5716
5716
|
});
|
|
5717
|
-
},
|
|
5718
|
-
|
|
5717
|
+
}, uu = {}, Ts = [], Ps = (e, u) => {
|
|
5718
|
+
uu[e] && (uu[e].forEach((t) => t(u)), Ts.forEach((t) => t({
|
|
5719
5719
|
type: e,
|
|
5720
5720
|
data: u
|
|
5721
5721
|
})));
|
|
5722
|
-
}, Yt = (e, u) => (
|
|
5723
|
-
const n =
|
|
5724
|
-
|
|
5722
|
+
}, Yt = (e, u) => (uu[e] || (uu[e] = []), uu[e].push(u), function() {
|
|
5723
|
+
const n = uu[e].indexOf(u);
|
|
5724
|
+
uu[e].splice(n, 1);
|
|
5725
5725
|
}), Rs = (e, {
|
|
5726
5726
|
cacheKey: u,
|
|
5727
5727
|
cacheTime: t = 5 * 60 * 1e3,
|
|
@@ -6556,7 +6556,7 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6556
6556
|
_: 3
|
|
6557
6557
|
}));
|
|
6558
6558
|
}
|
|
6559
|
-
}),
|
|
6559
|
+
}), Qe = /* @__PURE__ */ xe({
|
|
6560
6560
|
__name: "PresetInput",
|
|
6561
6561
|
props: {
|
|
6562
6562
|
value: {},
|
|
@@ -6752,7 +6752,7 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6752
6752
|
n("scroll", C);
|
|
6753
6753
|
},
|
|
6754
6754
|
onUpdateCheckedRowKeys: (C, z, T) => {
|
|
6755
|
-
n("update:checkedRowKeys", C, z, T);
|
|
6755
|
+
n("update:checkedRowKeys", C, z.map(Ve), { row: Ve(T.row), action: T.action });
|
|
6756
6756
|
},
|
|
6757
6757
|
onUpdateExpandedRowKeys: (C) => {
|
|
6758
6758
|
n("update:expandedRowKeys", C);
|
|
@@ -6765,16 +6765,16 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6765
6765
|
I.value = !1, n("contextMenuSelect", {
|
|
6766
6766
|
key: C,
|
|
6767
6767
|
option: z,
|
|
6768
|
-
row: du(
|
|
6768
|
+
row: Ve(du(B))
|
|
6769
6769
|
});
|
|
6770
6770
|
}
|
|
6771
6771
|
function S(C, z) {
|
|
6772
6772
|
return {
|
|
6773
6773
|
onClick: (T) => {
|
|
6774
|
-
n("clickRow", { row:
|
|
6774
|
+
n("clickRow", { row: Ve(C), index: z, event: T });
|
|
6775
6775
|
},
|
|
6776
6776
|
onContextmenu: (T) => {
|
|
6777
|
-
n("contextMenuRow", { row:
|
|
6777
|
+
n("contextMenuRow", { row: Ve(C), index: z, event: T }), e.contextMenuOptions && (T.preventDefault(), I.value = !1, B.value = C, rn(() => {
|
|
6778
6778
|
I.value = !0, J.value = {
|
|
6779
6779
|
x: T.x,
|
|
6780
6780
|
y: T.y
|
|
@@ -6823,13 +6823,13 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6823
6823
|
default: M(() => [
|
|
6824
6824
|
r.value.grid ? (R(), N(v(st), ce(Q({ key: 0 }, C.filterGridProps)), {
|
|
6825
6825
|
default: M(() => [
|
|
6826
|
-
(R(!0), se(Ae, null,
|
|
6826
|
+
(R(!0), se(Ae, null, Ye(C.filterOptions?.filter((T) => !T.collapsed), ({ key: T, gridItemProps: V, render: $, label: Z, ...j }, te) => (R(), N(v(lt), Q({
|
|
6827
6827
|
key: te,
|
|
6828
6828
|
span: 12
|
|
6829
6829
|
}, { ref_for: !0 }, V), {
|
|
6830
6830
|
default: M(() => [
|
|
6831
6831
|
$ ? (R(), N(oe(v(pe)($(ee, W), Z, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
6832
|
-
he(v(
|
|
6832
|
+
he(v(Qe), {
|
|
6833
6833
|
options: j,
|
|
6834
6834
|
value: T ? v(d)[0][T] : void 0,
|
|
6835
6835
|
"onUpdate:value": (Ce) => be(Ce, T)
|
|
@@ -6845,9 +6845,9 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6845
6845
|
}, 16)) : ie("", !0),
|
|
6846
6846
|
r.value.flex ? (R(), N(v(qe), ce(Q({ key: 1 }, C.filterFlexProps)), {
|
|
6847
6847
|
default: M(() => [
|
|
6848
|
-
(R(!0), se(Ae, null,
|
|
6848
|
+
(R(!0), se(Ae, null, Ye(C.filterOptions?.filter((T) => !T.collapsed), ({ key: T, render: V, label: $, ...Z }, j) => (R(), se(Ae, { key: j }, [
|
|
6849
6849
|
V ? (R(), N(oe(v(pe)(V(ee, W), $, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
6850
|
-
he(v(
|
|
6850
|
+
he(v(Qe), {
|
|
6851
6851
|
options: Z,
|
|
6852
6852
|
value: T ? v(d)[0][T] : void 0,
|
|
6853
6853
|
"onUpdate:value": (te) => be(te, T)
|
|
@@ -6880,13 +6880,13 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6880
6880
|
default: M(() => [
|
|
6881
6881
|
r.value.collapsedGrid ? (R(), N(v(st), ce(Q({ key: 0 }, C.filterGridProps)), {
|
|
6882
6882
|
default: M(() => [
|
|
6883
|
-
(R(!0), se(Ae, null,
|
|
6883
|
+
(R(!0), se(Ae, null, Ye(C.filterOptions?.filter((T) => T.collapsed), ({ key: T, gridItemProps: V, render: $, label: Z, ...j }, te) => (R(), N(v(lt), Q({
|
|
6884
6884
|
key: te,
|
|
6885
6885
|
span: 12
|
|
6886
6886
|
}, { ref_for: !0 }, V), {
|
|
6887
6887
|
default: M(() => [
|
|
6888
6888
|
$ ? (R(), N(oe(v(pe)($(ee, W), Z, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
6889
|
-
he(v(
|
|
6889
|
+
he(v(Qe), {
|
|
6890
6890
|
options: j,
|
|
6891
6891
|
value: T ? v(d)[0][T] : void 0,
|
|
6892
6892
|
"onUpdate:value": (Ce) => be(Ce, T)
|
|
@@ -6902,9 +6902,9 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6902
6902
|
}, 16)) : ie("", !0),
|
|
6903
6903
|
r.value.collapsedFlex ? (R(), N(v(qe), ce(Q({ key: 1 }, C.filterFlexProps)), {
|
|
6904
6904
|
default: M(() => [
|
|
6905
|
-
(R(!0), se(Ae, null,
|
|
6905
|
+
(R(!0), se(Ae, null, Ye(C.filterOptions?.filter((T) => T.collapsed), ({ key: T, render: V, label: $, ...Z }, j) => (R(), se(Ae, { key: j }, [
|
|
6906
6906
|
V ? (R(), N(oe(v(pe)(V(ee, W), $, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
6907
|
-
he(v(
|
|
6907
|
+
he(v(Qe), {
|
|
6908
6908
|
options: Z,
|
|
6909
6909
|
value: T ? v(d)[0][T] : void 0,
|
|
6910
6910
|
"onUpdate:value": (te) => be(te, T)
|
|
@@ -7013,7 +7013,7 @@ function vo(e, u) {
|
|
|
7013
7013
|
return typeof e == "string" ? t : typeof e == "number" ? n : typeof e == "boolean" ? r : e;
|
|
7014
7014
|
}
|
|
7015
7015
|
function ql(e, u) {
|
|
7016
|
-
const { rules: t, clearRules: n } = u ?? {}, r = Tu(e ? structuredClone(
|
|
7016
|
+
const { rules: t, clearRules: n } = u ?? {}, r = Tu(e ? structuredClone(Ve(e)) : {}), o = t, a = G(), i = {
|
|
7017
7017
|
ref: a,
|
|
7018
7018
|
model: r,
|
|
7019
7019
|
rules: o
|
|
@@ -7022,7 +7022,7 @@ function ql(e, u) {
|
|
|
7022
7022
|
return new Promise((d, E) => {
|
|
7023
7023
|
if (!a.value)
|
|
7024
7024
|
return E(new Error("formRef:undefined"));
|
|
7025
|
-
a.value.validate().then((A) => (c.trigger(du(
|
|
7025
|
+
a.value.validate().then((A) => (c.trigger(Ve(du(r))), d(A))).catch(E);
|
|
7026
7026
|
});
|
|
7027
7027
|
}
|
|
7028
7028
|
function l() {
|
|
@@ -7126,13 +7126,13 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7126
7126
|
}, () => [
|
|
7127
7127
|
r.value.grid ? (R(), N(v(st), ce(Q({ key: 0 }, p.gridProps)), {
|
|
7128
7128
|
default: M(() => [
|
|
7129
|
-
(R(!0), se(Ae, null,
|
|
7129
|
+
(R(!0), se(Ae, null, Ye(p.options?.filter((m) => !m.collapsed), ({ key: m, gridItemProps: k, render: w, label: P, ...D }, I) => (R(), N(v(lt), Q({
|
|
7130
7130
|
key: I,
|
|
7131
7131
|
span: 12
|
|
7132
7132
|
}, { ref_for: !0 }, k), {
|
|
7133
7133
|
default: M(() => [
|
|
7134
7134
|
w ? (R(), N(oe(v(pe)(w(A, y), P, { path: m })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
7135
|
-
he(v(
|
|
7135
|
+
he(v(Qe), {
|
|
7136
7136
|
options: D,
|
|
7137
7137
|
value: m ? v(a)[m] : void 0,
|
|
7138
7138
|
"onUpdate:value": (B) => h(B, m)
|
|
@@ -7148,9 +7148,9 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7148
7148
|
}, 16)) : ie("", !0),
|
|
7149
7149
|
r.value.flex ? (R(), N(v(qe), ce(Q({ key: 1 }, p.flexProps)), {
|
|
7150
7150
|
default: M(() => [
|
|
7151
|
-
(R(!0), se(Ae, null,
|
|
7151
|
+
(R(!0), se(Ae, null, Ye(p.options?.filter((m) => !m.collapsed), ({ key: m, render: k, label: w, ...P }, D) => (R(), se(Ae, { key: D }, [
|
|
7152
7152
|
k ? (R(), N(oe(v(pe)(k(A, y), w, { path: m })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
7153
|
-
he(v(
|
|
7153
|
+
he(v(Qe), {
|
|
7154
7154
|
options: P,
|
|
7155
7155
|
value: m ? v(a)[m] : void 0,
|
|
7156
7156
|
"onUpdate:value": (I) => h(I, m)
|
|
@@ -7183,13 +7183,13 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7183
7183
|
default: M(() => [
|
|
7184
7184
|
r.value.collapsedGrid ? (R(), N(v(st), ce(Q({ key: 0 }, p.gridProps)), {
|
|
7185
7185
|
default: M(() => [
|
|
7186
|
-
(R(!0), se(Ae, null,
|
|
7186
|
+
(R(!0), se(Ae, null, Ye(p.options?.filter((m) => m.collapsed), ({ key: m, gridItemProps: k, render: w, label: P, ...D }, I) => (R(), N(v(lt), Q({
|
|
7187
7187
|
key: I,
|
|
7188
7188
|
span: 12
|
|
7189
7189
|
}, { ref_for: !0 }, k), {
|
|
7190
7190
|
default: M(() => [
|
|
7191
7191
|
w ? (R(), N(oe(v(pe)(w(A, y), P, { path: m })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
7192
|
-
he(v(
|
|
7192
|
+
he(v(Qe), {
|
|
7193
7193
|
options: D,
|
|
7194
7194
|
value: m ? v(a)[m] : void 0,
|
|
7195
7195
|
"onUpdate:value": (B) => h(B, m)
|
|
@@ -7205,9 +7205,9 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7205
7205
|
}, 16)) : ie("", !0),
|
|
7206
7206
|
r.value.collapsedFlex ? (R(), N(v(qe), ce(Q({ key: 1 }, p.flexProps)), {
|
|
7207
7207
|
default: M(() => [
|
|
7208
|
-
(R(!0), se(Ae, null,
|
|
7208
|
+
(R(!0), se(Ae, null, Ye(p.options?.filter((m) => m.collapsed), ({ key: m, render: k, label: w, ...P }, D) => (R(), se(Ae, { key: D }, [
|
|
7209
7209
|
k ? (R(), N(oe(v(pe)(k(A, y), w, { path: m })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
7210
|
-
he(v(
|
|
7210
|
+
he(v(Qe), {
|
|
7211
7211
|
options: P,
|
|
7212
7212
|
value: m ? v(a)[m] : void 0,
|
|
7213
7213
|
"onUpdate:value": (I) => h(I, m)
|
|
@@ -7320,7 +7320,7 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7320
7320
|
},
|
|
7321
7321
|
onUpdateValue: (S, q) => {
|
|
7322
7322
|
const be = Array.isArray(S) ? p.value.filter((ee) => S.includes(ee[o.rowKey])) : p.value.find((ee) => ee[o.rowKey] === S) ?? null;
|
|
7323
|
-
n("update:value", S, q, du(
|
|
7323
|
+
n("update:value", S, q, Ve(du(be)));
|
|
7324
7324
|
},
|
|
7325
7325
|
onSearch: (S) => {
|
|
7326
7326
|
w.value = S, !f.value && (e.debounce ? P() : k({
|
|
@@ -7573,7 +7573,7 @@ export {
|
|
|
7573
7573
|
Xl as NDataTablePlus,
|
|
7574
7574
|
vs as NFullLoading,
|
|
7575
7575
|
Ql as NPresetForm,
|
|
7576
|
-
|
|
7576
|
+
Qe as NPresetInput,
|
|
7577
7577
|
Jl as NPresetSelect,
|
|
7578
7578
|
Kl as NRemoteRequest,
|
|
7579
7579
|
Ul as NSearchInput,
|