@oiij/naive-ui 0.0.45 → 0.0.46

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.
@@ -1,4 +1,4 @@
1
- import { inject as Rr, onBeforeMount as Io, defineComponent as le, createBlock as N, openBlock as P, Transition as Bo, mergeProps as Y, unref as y, withCtx as O, renderSlot as z, ref as q, toValue as Ne, isRef as Qt, isReactive as zo, watchEffect as $e, watch as eu, computed as te, nextTick as Or, normalizeClass as Ou, createElementVNode as uu, normalizeStyle as an, createVNode as V, createCommentVNode as Z, resolveDynamicComponent as Ee, Teleport as Uo, normalizeProps as ke, guardReactiveProps as Qe, createSlots as Mr, onMounted as qo, createElementBlock as pe, createTextVNode as ou, toDisplayString as Ke, onScopeDispose as ln, onUnmounted as jo, reactive as ku, toRefs as Ho, useTemplateRef as ht, Fragment as Le, h as Ae, renderList as bu, toRaw as ge, toRef as Go, withModifiers as Vo, mergeModels as Wo, useModel as Zo } from "vue";
1
+ import { inject as Rr, onBeforeMount as Io, defineComponent as le, createBlock as N, openBlock as P, Transition as Bo, mergeProps as Y, unref as y, withCtx as O, renderSlot as z, ref as q, toValue as Ne, isRef as Qt, isReactive as zo, watchEffect as $e, watch as eu, computed as te, nextTick as Or, normalizeClass as Ou, createElementVNode as uu, normalizeStyle as an, createVNode as V, createCommentVNode as Z, resolveDynamicComponent as Ee, Teleport as Uo, normalizeProps as ke, guardReactiveProps as Qe, createSlots as Mr, onMounted as qo, createElementBlock as he, createTextVNode as ou, toDisplayString as Ke, onScopeDispose as ln, onUnmounted as jo, reactive as ku, toRefs as Ho, useTemplateRef as ht, Fragment as Le, h as Ae, renderList as bu, toRaw as ge, toRef as Go, withModifiers as Vo, mergeModels as Wo, useModel as Zo } from "vue";
2
2
  import { NEl as sn, NAvatar as Yo, NFlex as Je, NSpin as Lr, cM as Hn, NConfigProvider as Xo, NLoadingBarProvider as Qo, NDialogProvider as Jo, NModalProvider as Ko, NNotificationProvider as ei, NMessageProvider as ui, NGlobalStyle as ti, useDialog as ni, useLoadingBar as ri, useMessage as oi, useModal as ii, useNotification as ai, NTooltip as cn, NButton as je, NInputGroup as li, NInput as fn, NFormItem as si, NTimePicker as ci, NSwitch as fi, NSlider as di, NSelect as Nr, NRate as pi, NRadioGroup as hi, NInputNumber as bi, NDynamicTags as mi, NDatePicker as gi, NDivider as dn, NCheckboxGroup as ki, NColorPicker as xi, NCheckbox as vi, NRadio as _i, NGrid as Jt, NGi as Kt, NBadge as $r, NCollapseTransition as Ir, NDataTable as yi, NPagination as Br, NModal as zr, NForm as Ei, NButtonGroup as Ai } from "naive-ui";
3
3
  import { createEventHook as rt, useClipboard as wi, useTimeoutFn as Ci, useDebounceFn as Ur } from "@vueuse/core";
4
4
  function Di(e) {
@@ -611,15 +611,15 @@ function Xr() {
611
611
  ERB_EXPR: J,
612
612
  TMPLIT_EXPR: F,
613
613
  DATA_ATTR: G,
614
- ARIA_ATTR: he,
614
+ ARIA_ATTR: be,
615
615
  IS_SCRIPT_OR_DATA: Re,
616
616
  ATTR_WHITESPACE: X,
617
- CUSTOM_ELEMENT: se
617
+ CUSTOM_ELEMENT: ce
618
618
  } = ur;
619
619
  let {
620
620
  IS_ALLOWED_URI: Fe
621
621
  } = ur, Q = null;
622
- const ce = j({}, [...Qn, ...Rt, ...Ot, ...Mt, ...Jn]);
622
+ const fe = j({}, [...Qn, ...Rt, ...Ot, ...Mt, ...Jn]);
623
623
  let ne = null;
624
624
  const Ce = j({}, [...Kn, ...Lt, ...er, ...Ju]);
625
625
  let U = Object.seal(Wr(null, {
@@ -641,7 +641,7 @@ function Xr() {
641
641
  enumerable: !0,
642
642
  value: !1
643
643
  }
644
- })), K = null, Oe = null, be = !0, w = !0, M = !1, R = !0, H = !1, Be = !0, Ve = !1, yt = !1, Et = !1, lu = !1, qu = !1, ju = !1, Cn = !0, Dn = !1;
644
+ })), K = null, Oe = null, se = !0, w = !0, M = !1, R = !0, H = !1, Be = !0, Ve = !1, yt = !1, Et = !1, lu = !1, qu = !1, ju = !1, Cn = !0, Dn = !1;
645
645
  const To = "user-content-";
646
646
  let At = !0, yu = !1, su = {}, cu = null;
647
647
  const Fn = 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"]);
@@ -662,7 +662,7 @@ function Xr() {
662
662
  let k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
663
663
  if (!(du && du === k)) {
664
664
  if ((!k || typeof k != "object") && (k = {}), k = Xe(k), Eu = // eslint-disable-next-line unicorn/prefer-includes
665
- Oo.indexOf(k.PARSER_MEDIA_TYPE) === -1 ? Mo : k.PARSER_MEDIA_TYPE, oe = Eu === "application/xhtml+xml" ? Pt : ot, Q = Me(k, "ALLOWED_TAGS") ? j({}, k.ALLOWED_TAGS, oe) : ce, ne = Me(k, "ALLOWED_ATTR") ? j({}, k.ALLOWED_ATTR, oe) : Ce, Dt = Me(k, "ALLOWED_NAMESPACES") ? j({}, k.ALLOWED_NAMESPACES, Pt) : Po, wt = Me(k, "ADD_URI_SAFE_ATTR") ? j(Xe(Pn), k.ADD_URI_SAFE_ATTR, oe) : Pn, Sn = Me(k, "ADD_DATA_URI_TAGS") ? j(Xe(Tn), k.ADD_DATA_URI_TAGS, oe) : Tn, cu = Me(k, "FORBID_CONTENTS") ? j({}, k.FORBID_CONTENTS, oe) : Fn, K = Me(k, "FORBID_TAGS") ? j({}, k.FORBID_TAGS, oe) : Xe({}), Oe = Me(k, "FORBID_ATTR") ? j({}, k.FORBID_ATTR, oe) : Xe({}), su = Me(k, "USE_PROFILES") ? k.USE_PROFILES : !1, be = k.ALLOW_ARIA_ATTR !== !1, w = k.ALLOW_DATA_ATTR !== !1, M = k.ALLOW_UNKNOWN_PROTOCOLS || !1, R = k.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = k.SAFE_FOR_TEMPLATES || !1, Be = k.SAFE_FOR_XML !== !1, Ve = k.WHOLE_DOCUMENT || !1, lu = k.RETURN_DOM || !1, qu = k.RETURN_DOM_FRAGMENT || !1, ju = k.RETURN_TRUSTED_TYPE || !1, Et = k.FORCE_BODY || !1, Cn = k.SANITIZE_DOM !== !1, Dn = k.SANITIZE_NAMED_PROPS || !1, At = k.KEEP_CONTENT !== !1, yu = k.IN_PLACE || !1, Fe = k.ALLOWED_URI_REGEXP || Zr, fu = k.NAMESPACE || We, Vu = k.MATHML_TEXT_INTEGRATION_POINTS || Vu, Wu = k.HTML_INTEGRATION_POINTS || Wu, U = k.CUSTOM_ELEMENT_HANDLING || {}, k.CUSTOM_ELEMENT_HANDLING && Rn(k.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (U.tagNameCheck = k.CUSTOM_ELEMENT_HANDLING.tagNameCheck), k.CUSTOM_ELEMENT_HANDLING && Rn(k.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (U.attributeNameCheck = k.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), k.CUSTOM_ELEMENT_HANDLING && typeof k.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (U.allowCustomizedBuiltInElements = k.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), H && (w = !1), qu && (lu = !0), su && (Q = j({}, Jn), ne = [], su.html === !0 && (j(Q, Qn), j(ne, Kn)), su.svg === !0 && (j(Q, Rt), j(ne, Lt), j(ne, Ju)), su.svgFilters === !0 && (j(Q, Ot), j(ne, Lt), j(ne, Ju)), su.mathMl === !0 && (j(Q, Mt), j(ne, er), j(ne, Ju))), k.ADD_TAGS && (Q === ce && (Q = Xe(Q)), j(Q, k.ADD_TAGS, oe)), k.ADD_ATTR && (ne === Ce && (ne = Xe(ne)), j(ne, k.ADD_ATTR, oe)), k.ADD_URI_SAFE_ATTR && j(wt, k.ADD_URI_SAFE_ATTR, oe), k.FORBID_CONTENTS && (cu === Fn && (cu = Xe(cu)), j(cu, k.FORBID_CONTENTS, oe)), At && (Q["#text"] = !0), Ve && j(Q, ["html", "head", "body"]), Q.table && (j(Q, ["tbody"]), delete K.tbody), k.TRUSTED_TYPES_POLICY) {
665
+ Oo.indexOf(k.PARSER_MEDIA_TYPE) === -1 ? Mo : k.PARSER_MEDIA_TYPE, oe = Eu === "application/xhtml+xml" ? Pt : ot, Q = Me(k, "ALLOWED_TAGS") ? j({}, k.ALLOWED_TAGS, oe) : fe, ne = Me(k, "ALLOWED_ATTR") ? j({}, k.ALLOWED_ATTR, oe) : Ce, Dt = Me(k, "ALLOWED_NAMESPACES") ? j({}, k.ALLOWED_NAMESPACES, Pt) : Po, wt = Me(k, "ADD_URI_SAFE_ATTR") ? j(Xe(Pn), k.ADD_URI_SAFE_ATTR, oe) : Pn, Sn = Me(k, "ADD_DATA_URI_TAGS") ? j(Xe(Tn), k.ADD_DATA_URI_TAGS, oe) : Tn, cu = Me(k, "FORBID_CONTENTS") ? j({}, k.FORBID_CONTENTS, oe) : Fn, K = Me(k, "FORBID_TAGS") ? j({}, k.FORBID_TAGS, oe) : Xe({}), Oe = Me(k, "FORBID_ATTR") ? j({}, k.FORBID_ATTR, oe) : Xe({}), su = Me(k, "USE_PROFILES") ? k.USE_PROFILES : !1, se = k.ALLOW_ARIA_ATTR !== !1, w = k.ALLOW_DATA_ATTR !== !1, M = k.ALLOW_UNKNOWN_PROTOCOLS || !1, R = k.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = k.SAFE_FOR_TEMPLATES || !1, Be = k.SAFE_FOR_XML !== !1, Ve = k.WHOLE_DOCUMENT || !1, lu = k.RETURN_DOM || !1, qu = k.RETURN_DOM_FRAGMENT || !1, ju = k.RETURN_TRUSTED_TYPE || !1, Et = k.FORCE_BODY || !1, Cn = k.SANITIZE_DOM !== !1, Dn = k.SANITIZE_NAMED_PROPS || !1, At = k.KEEP_CONTENT !== !1, yu = k.IN_PLACE || !1, Fe = k.ALLOWED_URI_REGEXP || Zr, fu = k.NAMESPACE || We, Vu = k.MATHML_TEXT_INTEGRATION_POINTS || Vu, Wu = k.HTML_INTEGRATION_POINTS || Wu, U = k.CUSTOM_ELEMENT_HANDLING || {}, k.CUSTOM_ELEMENT_HANDLING && Rn(k.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (U.tagNameCheck = k.CUSTOM_ELEMENT_HANDLING.tagNameCheck), k.CUSTOM_ELEMENT_HANDLING && Rn(k.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (U.attributeNameCheck = k.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), k.CUSTOM_ELEMENT_HANDLING && typeof k.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (U.allowCustomizedBuiltInElements = k.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), H && (w = !1), qu && (lu = !0), su && (Q = j({}, Jn), ne = [], su.html === !0 && (j(Q, Qn), j(ne, Kn)), su.svg === !0 && (j(Q, Rt), j(ne, Lt), j(ne, Ju)), su.svgFilters === !0 && (j(Q, Ot), j(ne, Lt), j(ne, Ju)), su.mathMl === !0 && (j(Q, Mt), j(ne, er), j(ne, Ju))), k.ADD_TAGS && (Q === fe && (Q = Xe(Q)), j(Q, k.ADD_TAGS, oe)), k.ADD_ATTR && (ne === Ce && (ne = Xe(ne)), j(ne, k.ADD_ATTR, oe)), k.ADD_URI_SAFE_ATTR && j(wt, k.ADD_URI_SAFE_ATTR, oe), k.FORBID_CONTENTS && (cu === Fn && (cu = Xe(cu)), j(cu, k.FORBID_CONTENTS, oe)), At && (Q["#text"] = !0), Ve && j(Q, ["html", "head", "body"]), Q.table && (j(Q, ["tbody"]), delete K.tbody), k.TRUSTED_TYPES_POLICY) {
666
666
  if (typeof k.TRUSTED_TYPES_POLICY.createHTML != "function")
667
667
  throw Du('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
668
668
  if (typeof k.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -734,8 +734,8 @@ function Xr() {
734
734
  } catch {
735
735
  }
736
736
  }
737
- const fe = S.body || S.documentElement;
738
- return k && L && fe.insertBefore(t.createTextNode(L), fe.childNodes[0] || null), fu === We ? D.call(S, Ve ? "html" : "body")[0] : Ve ? S.documentElement : fe;
737
+ const de = S.body || S.documentElement;
738
+ return k && L && de.insertBefore(t.createTextNode(L), de.childNodes[0] || null), fu === We ? D.call(S, Ve ? "html" : "body")[0] : Ve ? S.documentElement : de;
739
739
  }, Nn = function(k) {
740
740
  return C.call(
741
741
  k.ownerDocument || k,
@@ -768,11 +768,11 @@ function Xr() {
768
768
  if (!K[L] && zn(L) && (U.tagNameCheck instanceof RegExp && me(U.tagNameCheck, L) || U.tagNameCheck instanceof Function && U.tagNameCheck(L)))
769
769
  return !1;
770
770
  if (At && !cu[L]) {
771
- const ue = g(k) || k.parentNode, fe = p(k) || k.childNodes;
772
- if (fe && ue) {
773
- const re = fe.length;
771
+ const ue = g(k) || k.parentNode, de = p(k) || k.childNodes;
772
+ if (de && ue) {
773
+ const re = de.length;
774
774
  for (let _e = re - 1; _e >= 0; --_e) {
775
- const Ye = _(fe[_e], !0);
775
+ const Ye = _(de[_e], !0);
776
776
  Ye.__removalCount = (k.__removalCount || 0) + 1, ue.insertBefore(Ye, E(k));
777
777
  }
778
778
  }
@@ -788,7 +788,7 @@ function Xr() {
788
788
  if (Cn && (S === "id" || S === "name") && (L in t || L in Lo))
789
789
  return !1;
790
790
  if (!(w && !Oe[S] && me(G, S))) {
791
- if (!(be && me(he, S))) {
791
+ if (!(se && me(be, S))) {
792
792
  if (!ne[S] || Oe[S]) {
793
793
  if (
794
794
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
@@ -812,7 +812,7 @@ function Xr() {
812
812
  }
813
813
  return !0;
814
814
  }, zn = function(k) {
815
- return k !== "annotation-xml" && Xn(k, se);
815
+ return k !== "annotation-xml" && Xn(k, ce);
816
816
  }, Un = function(k) {
817
817
  Ze(I.beforeSanitizeAttributes, k, null);
818
818
  const {
@@ -829,13 +829,13 @@ function Xr() {
829
829
  };
830
830
  let ue = S.length;
831
831
  for (; ue--; ) {
832
- const fe = S[ue], {
832
+ const de = S[ue], {
833
833
  name: re,
834
834
  namespaceURI: _e,
835
835
  value: Ye
836
- } = fe, Au = oe(re), Tt = Ye;
837
- let de = re === "value" ? Tt : la(Tt);
838
- if (L.attrName = Au, L.attrValue = de, L.keepAttr = !0, L.forceKeepAttr = void 0, Ze(I.uponSanitizeAttribute, k, L), de = L.attrValue, Dn && (Au === "id" || Au === "name") && (pu(re, k), de = To + de), Be && me(/((--!?|])>)|<\/(style|title)/i, de)) {
836
+ } = de, Au = oe(re), Tt = Ye;
837
+ let pe = re === "value" ? Tt : la(Tt);
838
+ if (L.attrName = Au, L.attrValue = pe, L.keepAttr = !0, L.forceKeepAttr = void 0, Ze(I.uponSanitizeAttribute, k, L), pe = L.attrValue, Dn && (Au === "id" || Au === "name") && (pu(re, k), pe = To + pe), Be && me(/((--!?|])>)|<\/(style|title)/i, pe)) {
839
839
  pu(re, k);
840
840
  continue;
841
841
  }
@@ -845,32 +845,32 @@ function Xr() {
845
845
  pu(re, k);
846
846
  continue;
847
847
  }
848
- if (!R && me(/\/>/i, de)) {
848
+ if (!R && me(/\/>/i, pe)) {
849
849
  pu(re, k);
850
850
  continue;
851
851
  }
852
852
  H && Qu([W, J, F], (jn) => {
853
- de = Cu(de, jn, " ");
853
+ pe = Cu(pe, jn, " ");
854
854
  });
855
855
  const qn = oe(k.nodeName);
856
- if (!Bn(qn, Au, de)) {
856
+ if (!Bn(qn, Au, pe)) {
857
857
  pu(re, k);
858
858
  continue;
859
859
  }
860
860
  if (m && typeof x == "object" && typeof x.getAttributeType == "function" && !_e)
861
861
  switch (x.getAttributeType(qn, Au)) {
862
862
  case "TrustedHTML": {
863
- de = m.createHTML(de);
863
+ pe = m.createHTML(pe);
864
864
  break;
865
865
  }
866
866
  case "TrustedScriptURL": {
867
- de = m.createScriptURL(de);
867
+ pe = m.createScriptURL(pe);
868
868
  break;
869
869
  }
870
870
  }
871
- if (de !== Tt)
871
+ if (pe !== Tt)
872
872
  try {
873
- _e ? k.setAttributeNS(_e, re, de) : k.setAttribute(re, de), St(k) ? ze(k) : Yn(u.removed);
873
+ _e ? k.setAttributeNS(_e, re, pe) : k.setAttribute(re, pe), St(k) ? ze(k) : Yn(u.removed);
874
874
  } catch {
875
875
  pu(re, k);
876
876
  }
@@ -884,7 +884,7 @@ function Xr() {
884
884
  Ze(I.afterSanitizeShadowDOM, k, null);
885
885
  };
886
886
  return u.sanitize = function(B) {
887
- let k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = null, L = null, ue = null, fe = null;
887
+ let k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = null, L = null, ue = null, de = null;
888
888
  if (Ct = !B, Ct && (B = "<!-->"), typeof B != "string" && !$n(B))
889
889
  if (typeof B.toString == "function") {
890
890
  if (B = B.toString(), typeof B != "string")
@@ -916,11 +916,11 @@ function Xr() {
916
916
  return B;
917
917
  if (lu) {
918
918
  if (qu)
919
- for (fe = T.call(S.ownerDocument); S.firstChild; )
920
- fe.appendChild(S.firstChild);
919
+ for (de = T.call(S.ownerDocument); S.firstChild; )
920
+ de.appendChild(S.firstChild);
921
921
  else
922
- fe = S;
923
- return (ne.shadowroot || ne.shadowrootmode) && (fe = $.call(n, fe, !0)), fe;
922
+ de = S;
923
+ return (ne.shadowroot || ne.shadowrootmode) && (de = $.call(n, de, !0)), de;
924
924
  }
925
925
  let _e = Ve ? S.outerHTML : S.innerHTML;
926
926
  return Ve && Q["!doctype"] && S.ownerDocument && S.ownerDocument.doctype && S.ownerDocument.doctype.name && me(Yr, S.ownerDocument.doctype.name) && (_e = "<!DOCTYPE " + S.ownerDocument.doctype.name + `>
@@ -2559,7 +2559,7 @@ function U0(e, u, t, n) {
2559
2559
  if (e.listIndent = e.blkIndent, e.blkIndent = T, e.tight = !0, e.tShift[l] = h - e.bMarks[l], e.sCount[l] = b, h >= 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 = J, e.tShift[l] = I, e.sCount[l] = W, e.tight = $, i = e.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), 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 G = 0, he = p.length; G < he; G++)
2562
+ for (let G = 0, be = p.length; G < be; G++)
2563
2563
  if (p[G](e, l, t, !0)) {
2564
2564
  F = !0;
2565
2565
  break;
@@ -4756,39 +4756,39 @@ function ds() {
4756
4756
  return;
4757
4757
  var I = D[$], W = I.inside, J = !!I.lookbehind, F = !!I.greedy, G = I.alias;
4758
4758
  if (F && !I.pattern.global) {
4759
- var he = I.pattern.toString().match(/[imsuy]*$/)[0];
4760
- I.pattern = RegExp(I.pattern.source, he + "g");
4759
+ var be = I.pattern.toString().match(/[imsuy]*$/)[0];
4760
+ I.pattern = RegExp(I.pattern.source, be + "g");
4761
4761
  }
4762
- for (var Re = I.pattern || I, X = b.next, se = h; X !== g.tail && !(C && se >= C.reach); se += X.value.length, X = X.next) {
4762
+ for (var Re = I.pattern || I, X = b.next, ce = h; X !== g.tail && !(C && ce >= C.reach); ce += X.value.length, X = X.next) {
4763
4763
  var Fe = X.value;
4764
4764
  if (g.length > p.length)
4765
4765
  return;
4766
4766
  if (!(Fe instanceof l)) {
4767
- var Q = 1, ce;
4767
+ var Q = 1, fe;
4768
4768
  if (F) {
4769
- if (ce = s(Re, se, p, J), !ce || ce.index >= p.length)
4769
+ if (fe = s(Re, ce, p, J), !fe || fe.index >= p.length)
4770
4770
  break;
4771
- var K = ce.index, ne = ce.index + ce[0].length, Ce = se;
4771
+ var K = fe.index, ne = fe.index + fe[0].length, Ce = ce;
4772
4772
  for (Ce += X.value.length; K >= Ce; )
4773
4773
  X = X.next, Ce += X.value.length;
4774
- if (Ce -= X.value.length, se = Ce, X.value instanceof l)
4774
+ if (Ce -= X.value.length, ce = Ce, X.value instanceof l)
4775
4775
  continue;
4776
4776
  for (var U = X; U !== g.tail && (Ce < ne || typeof U.value == "string"); U = U.next)
4777
4777
  Q++, Ce += U.value.length;
4778
- Q--, Fe = p.slice(se, Ce), ce.index -= se;
4779
- } else if (ce = s(Re, 0, Fe, J), !ce)
4778
+ Q--, Fe = p.slice(ce, Ce), fe.index -= ce;
4779
+ } else if (fe = s(Re, 0, Fe, J), !fe)
4780
4780
  continue;
4781
- var K = ce.index, Oe = ce[0], be = Fe.slice(0, K), w = Fe.slice(K + Oe.length), M = se + Fe.length;
4781
+ var K = fe.index, Oe = fe[0], se = Fe.slice(0, K), w = Fe.slice(K + Oe.length), M = ce + Fe.length;
4782
4782
  C && M > C.reach && (C.reach = M);
4783
4783
  var R = X.prev;
4784
- be && (R = v(g, R, be), se += be.length), x(g, R, Q);
4784
+ se && (R = v(g, R, se), ce += se.length), x(g, R, Q);
4785
4785
  var H = new l(T, W ? i.tokenize(Oe, W) : Oe, G, Oe);
4786
4786
  if (X = v(g, R, H), w && v(g, X, w), Q > 1) {
4787
4787
  var Be = {
4788
4788
  cause: T + "," + $,
4789
4789
  reach: M
4790
4790
  };
4791
- c(p, g, m, X.prev, se, Be), C && Be.reach > C.reach && (C.reach = Be.reach);
4791
+ c(p, g, m, X.prev, ce, Be), C && Be.reach > C.reach && (C.reach = Be.reach);
4792
4792
  }
4793
4793
  }
4794
4794
  }
@@ -5616,7 +5616,7 @@ const Fs = /* @__PURE__ */ le({
5616
5616
  viewBox: "0 0 24 24"
5617
5617
  };
5618
5618
  function Ps(e, u, t, n, r, o) {
5619
- return P(), pe("svg", Ts, u[0] || (u[0] = [
5619
+ return P(), he("svg", Ts, u[0] || (u[0] = [
5620
5620
  uu("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"
@@ -6457,7 +6457,7 @@ const Uc = {
6457
6457
  viewBox: "0 0 24 24"
6458
6458
  };
6459
6459
  function jc(e, u, t, n, r, o) {
6460
- return P(), pe("svg", qc, u[0] || (u[0] = [
6460
+ return P(), he("svg", qc, u[0] || (u[0] = [
6461
6461
  uu("path", {
6462
6462
  fill: "none",
6463
6463
  stroke: "currentColor",
@@ -6529,7 +6529,7 @@ const Tr = /* @__PURE__ */ yn(Uc, [["render", jc]]), Do = /* @__PURE__ */ le({
6529
6529
  loading: c.loading
6530
6530
  }, c.buttonProps, { onClick: l }), Mr({
6531
6531
  default: O(() => [
6532
- o.value === "text" ? (P(), pe(Le, { key: 0 }, [
6532
+ o.value === "text" ? (P(), he(Le, { key: 0 }, [
6533
6533
  ou(" 搜索 ")
6534
6534
  ], 64)) : Z("", !0)
6535
6535
  ]),
@@ -6649,7 +6649,7 @@ const mu = /* @__PURE__ */ le({
6649
6649
  const t = u;
6650
6650
  return (n, r) => n.options && n.options.length > 0 ? (P(), N(y(Je), ke(Y({ key: 0 }, n.flexProps)), {
6651
6651
  default: O(() => [
6652
- (P(!0), pe(Le, null, bu(n.options, ({ key: o, render: a, label: i, ...l }, s) => (P(), pe(Le, { key: s }, [
6652
+ (P(!0), he(Le, null, bu(n.options, ({ key: o, render: a, label: i, ...l }, s) => (P(), he(Le, { key: s }, [
6653
6653
  a ? (P(), N(Ee(y(Se)(a(n.exposeRefs, n.exposeActions), i, { path: o, labelPlacement: "left" })), { key: 0 })) : (P(), N(Ee(y(Se)(
6654
6654
  Ae(y(mu), {
6655
6655
  options: l,
@@ -6678,7 +6678,7 @@ const mu = /* @__PURE__ */ le({
6678
6678
  const t = u;
6679
6679
  return (n, r) => n.options && n.options.length >= 0 ? (P(), N(y(Jt), ke(Y({ key: 0 }, n.gridProps)), {
6680
6680
  default: O(() => [
6681
- (P(!0), pe(Le, null, bu(n.options, ({ key: o, gridSpan: a, gridItemProps: i, render: l, label: s, ...c }, f) => (P(), N(y(Kt), Y({
6681
+ (P(!0), he(Le, null, bu(n.options, ({ key: o, gridSpan: a, gridItemProps: i, render: l, label: s, ...c }, f) => (P(), N(y(Kt), Y({
6682
6682
  key: f,
6683
6683
  span: a
6684
6684
  }, { ref_for: !0 }, i), {
@@ -6849,7 +6849,7 @@ const mu = /* @__PURE__ */ le({
6849
6849
  }
6850
6850
  };
6851
6851
  }
6852
- const he = q(!1), Re = q({});
6852
+ const be = q(!1), Re = q({});
6853
6853
  function X(w, M) {
6854
6854
  w && (e.filterCollapsedType === "modal" ? (e.filterModalTrigger === "manual" && (Re.value[w] = M), e.filterModalTrigger === "auto" && J({
6855
6855
  [w]: M
@@ -6857,14 +6857,14 @@ const mu = /* @__PURE__ */ le({
6857
6857
  [w]: M
6858
6858
  }));
6859
6859
  }
6860
- const se = q(!1);
6860
+ const ce = q(!1);
6861
6861
  function Fe() {
6862
- se.value = !0;
6862
+ ce.value = !0;
6863
6863
  }
6864
6864
  function Q() {
6865
6865
  g(structuredClone(d));
6866
6866
  }
6867
- function ce() {
6867
+ function fe() {
6868
6868
  Q();
6869
6869
  }
6870
6870
  function ne() {
@@ -6898,7 +6898,7 @@ const mu = /* @__PURE__ */ le({
6898
6898
  showFilterModal: Fe,
6899
6899
  resetParams: Q,
6900
6900
  onValueUpdate: X
6901
- }, Oe = te(() => e.filterOptions?.filter((w) => typeof w.hidden == "function" ? !w.hidden(U) : !w.hidden).filter((w) => !w.collapsed)), be = te(() => e.filterOptions?.filter((w) => typeof w.hidden == "function" ? !w.hidden(U) : !w.hidden).filter((w) => w.collapsed));
6901
+ }, Oe = te(() => e.filterOptions?.filter((w) => typeof w.hidden == "function" ? !w.hidden(U) : !w.hidden).filter((w) => !w.collapsed)), se = te(() => e.filterOptions?.filter((w) => typeof w.hidden == "function" ? !w.hidden(U) : !w.hidden).filter((w) => w.collapsed));
6902
6902
  return u({
6903
6903
  refs: U,
6904
6904
  actions: K
@@ -6915,7 +6915,7 @@ const mu = /* @__PURE__ */ le({
6915
6915
  default: O(() => [
6916
6916
  z(w.$slots, "title", {}, () => [
6917
6917
  uu("div", Hc, [
6918
- w.title ? (P(), pe("span", Gc, Ke(w.title), 1)) : Z("", !0)
6918
+ w.title ? (P(), he("span", Gc, Ke(w.title), 1)) : Z("", !0)
6919
6919
  ])
6920
6920
  ]),
6921
6921
  w.search ? (P(), N(y(Do), Y({
@@ -6931,7 +6931,7 @@ const mu = /* @__PURE__ */ le({
6931
6931
  dot: ""
6932
6932
  }, {
6933
6933
  default: O(() => [
6934
- w.filterCollapsedType === "modal" ? (P(), N(y(je), {
6934
+ w.filterCollapsedType === "modal" && (se.value?.length ?? 0) > 0 ? (P(), N(y(je), {
6935
6935
  key: 0,
6936
6936
  onClick: Fe
6937
6937
  }, {
@@ -6985,31 +6985,31 @@ const mu = /* @__PURE__ */ le({
6985
6985
  "grid-props": w.filterGridProps,
6986
6986
  "onUpdate:value": M[2] || (M[2] = (R, H) => X(H, R))
6987
6987
  }, null, 8, ["options", "params", "grid-props"])) : Z("", !0),
6988
- be.value && w.filterCollapsedType === "collapsed" && be.value.length > 0 ? (P(), N(y(dn), {
6988
+ se.value && w.filterCollapsedType === "collapsed" && se.value.length > 0 ? (P(), N(y(dn), {
6989
6989
  key: 2,
6990
6990
  style: { margin: "5px 0" }
6991
6991
  }, {
6992
6992
  default: O(() => [
6993
6993
  V(y(je), {
6994
6994
  size: "tiny",
6995
- onClick: M[3] || (M[3] = (R) => he.value = !he.value)
6995
+ onClick: M[3] || (M[3] = (R) => be.value = !be.value)
6996
6996
  }, {
6997
6997
  default: O(() => [
6998
- ou(Ke(he.value ? "折叠" : "展开"), 1)
6998
+ ou(Ke(be.value ? "折叠" : "展开"), 1)
6999
6999
  ]),
7000
7000
  _: 1
7001
7001
  })
7002
7002
  ]),
7003
7003
  _: 1
7004
7004
  })) : Z("", !0),
7005
- be.value && w.filterCollapsedType === "collapsed" && be.value.length > 0 ? (P(), N(y(Ir), {
7005
+ se.value && w.filterCollapsedType === "collapsed" && se.value.length > 0 ? (P(), N(y(Ir), {
7006
7006
  key: 3,
7007
- show: he.value
7007
+ show: be.value
7008
7008
  }, {
7009
7009
  default: O(() => [
7010
7010
  r.value.collapsedGrid ? (P(), N(Xt, {
7011
7011
  key: 0,
7012
- options: be.value,
7012
+ options: se.value,
7013
7013
  "expose-refs": U,
7014
7014
  "expose-actions": K,
7015
7015
  params: y(p),
@@ -7018,7 +7018,7 @@ const mu = /* @__PURE__ */ le({
7018
7018
  }, null, 8, ["options", "params", "grid-props"])) : Z("", !0),
7019
7019
  r.value.collapsedFlex ? (P(), N(Yt, {
7020
7020
  key: 1,
7021
- options: be.value,
7021
+ options: se.value,
7022
7022
  "expose-refs": U,
7023
7023
  "expose-actions": K,
7024
7024
  params: y(p),
@@ -7089,17 +7089,17 @@ const mu = /* @__PURE__ */ le({
7089
7089
  _: 3
7090
7090
  })
7091
7091
  ]),
7092
- w.filterCollapsedType === "modal" ? (P(), N(y(zr), Y({
7092
+ w.filterCollapsedType === "modal" && (se.value?.length ?? 0) > 0 ? (P(), N(y(zr), Y({
7093
7093
  key: 0,
7094
- show: se.value,
7095
- "onUpdate:show": M[8] || (M[8] = (R) => se.value = R),
7094
+ show: ce.value,
7095
+ "onUpdate:show": M[8] || (M[8] = (R) => ce.value = R),
7096
7096
  style: { width: "auto" },
7097
7097
  preset: "dialog",
7098
7098
  title: w.filterLabel,
7099
7099
  "negative-text": (typeof w.clearable == "boolean" ? w.clearable === !0 : w.clearable === "modal") ? "清除" : void 0,
7100
7100
  "positive-text": w.filterModalTrigger === "manual" ? "确定" : void 0
7101
7101
  }, w.filterModalProps, {
7102
- onNegativeClick: ce,
7102
+ onNegativeClick: fe,
7103
7103
  onPositiveClick: ne
7104
7104
  }), {
7105
7105
  default: O(() => [
@@ -7109,7 +7109,7 @@ const mu = /* @__PURE__ */ le({
7109
7109
  }, () => [
7110
7110
  r.value.collapsedGrid ? (P(), N(Xt, {
7111
7111
  key: 0,
7112
- options: be.value,
7112
+ options: se.value,
7113
7113
  "expose-refs": U,
7114
7114
  "expose-actions": K,
7115
7115
  params: y(p),
@@ -7118,7 +7118,7 @@ const mu = /* @__PURE__ */ le({
7118
7118
  }, null, 8, ["options", "params", "grid-props"])) : Z("", !0),
7119
7119
  r.value.collapsedFlex ? (P(), N(Yt, {
7120
7120
  key: 1,
7121
- options: be.value,
7121
+ options: se.value,
7122
7122
  "expose-refs": U,
7123
7123
  "expose-actions": K,
7124
7124
  params: y(p),
@@ -7279,7 +7279,7 @@ const of = /* @__PURE__ */ le({
7279
7279
  }, () => [
7280
7280
  r.value.grid && E.value && E.value.length > 0 ? (P(), N(y(Jt), ke(Y({ key: 0 }, m.gridProps)), {
7281
7281
  default: O(() => [
7282
- (P(!0), pe(Le, null, bu(E.value, ({ key: h, gridSpan: C, gridItemProps: T, render: D, label: $, ...I }, W) => (P(), N(y(Kt), Y({
7282
+ (P(!0), he(Le, null, bu(E.value, ({ key: h, gridSpan: C, gridItemProps: T, render: D, label: $, ...I }, W) => (P(), N(y(Kt), Y({
7283
7283
  key: W,
7284
7284
  span: C
7285
7285
  }, { ref_for: !0 }, T), {
@@ -7301,7 +7301,7 @@ const of = /* @__PURE__ */ le({
7301
7301
  }, 16)) : Z("", !0),
7302
7302
  r.value.flex && E.value && E.value.length > 0 ? (P(), N(y(Je), ke(Y({ key: 1 }, m.flexProps)), {
7303
7303
  default: O(() => [
7304
- (P(!0), pe(Le, null, bu(E.value, ({ key: h, render: C, label: T, ...D }, $) => (P(), pe(Le, { key: $ }, [
7304
+ (P(!0), he(Le, null, bu(E.value, ({ key: h, render: C, label: T, ...D }, $) => (P(), he(Le, { key: $ }, [
7305
7305
  C ? (P(), N(Ee(y(Se)(C(_, A), T, { path: h })), { key: 0 })) : (P(), N(Ee(y(Se)(
7306
7306
  Ae(y(mu), {
7307
7307
  options: D,
@@ -7336,7 +7336,7 @@ const of = /* @__PURE__ */ le({
7336
7336
  default: O(() => [
7337
7337
  r.value.collapsedGrid && p.value && p.value.length > 0 ? (P(), N(y(Jt), ke(Y({ key: 0 }, m.gridProps)), {
7338
7338
  default: O(() => [
7339
- (P(!0), pe(Le, null, bu(p.value, ({ key: h, gridSpan: C, gridItemProps: T, render: D, label: $, ...I }, W) => (P(), N(y(Kt), Y({
7339
+ (P(!0), he(Le, null, bu(p.value, ({ key: h, gridSpan: C, gridItemProps: T, render: D, label: $, ...I }, W) => (P(), N(y(Kt), Y({
7340
7340
  key: W,
7341
7341
  span: C
7342
7342
  }, { ref_for: !0 }, T), {
@@ -7358,7 +7358,7 @@ const of = /* @__PURE__ */ le({
7358
7358
  }, 16)) : Z("", !0),
7359
7359
  r.value.collapsedFlex && p.value && p.value.length > 0 ? (P(), N(y(Je), ke(Y({ key: 1 }, m.flexProps)), {
7360
7360
  default: O(() => [
7361
- (P(!0), pe(Le, null, bu(p.value, ({ key: h, render: C, label: T, ...D }, $) => (P(), pe(Le, { key: $ }, [
7361
+ (P(!0), he(Le, null, bu(p.value, ({ key: h, render: C, label: T, ...D }, $) => (P(), he(Le, { key: $ }, [
7362
7362
  C ? (P(), N(Ee(y(Se)(C(_, A), T, { path: h })), { key: 0 })) : (P(), N(Ee(y(Se)(
7363
7363
  Ae(y(mu), {
7364
7364
  options: D,
@@ -7393,7 +7393,7 @@ const of = /* @__PURE__ */ le({
7393
7393
  viewBox: "0 0 24 24"
7394
7394
  };
7395
7395
  function Xc(e, u, t, n, r, o) {
7396
- return P(), pe("svg", Yc, u[0] || (u[0] = [
7396
+ return P(), he("svg", Yc, u[0] || (u[0] = [
7397
7397
  uu("path", {
7398
7398
  fill: "currentColor",
7399
7399
  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"
@@ -7643,8 +7643,8 @@ const Qc = /* @__PURE__ */ yn(Zc, [["render", Xc]]), af = /* @__PURE__ */ le({
7643
7643
  onError: (F, G) => {
7644
7644
  e.requestOptions?.onError?.(F, G), n("error", F, G);
7645
7645
  },
7646
- onFinally: (F, G, he) => {
7647
- e.requestOptions?.onFinally?.(F, G, he), n("finally", F, G, he);
7646
+ onFinally: (F, G, be) => {
7647
+ e.requestOptions?.onFinally?.(F, G, be), n("finally", F, G, be);
7648
7648
  }
7649
7649
  }, e.requestPlugins), g = te(() => s.value ? Array.isArray(s.value[o.list]) ? s.value[o.list] : (console.warn(`DataTablePlus: data[${o.list}] must be an array`), []) : []), m = te(() => typeof e.optionFormat == "function" ? g.value.map((F) => e.optionFormat(F)).filter((F) => !!F) : g.value.map((F) => ({
7650
7650
  [o.label]: F[o.label],
@@ -7680,8 +7680,8 @@ const Qc = /* @__PURE__ */ yn(Zc, [["render", Xc]]), af = /* @__PURE__ */ le({
7680
7680
  n("scroll", F);
7681
7681
  },
7682
7682
  onUpdateValue: (F, G) => {
7683
- const he = Array.isArray(F) ? g.value.filter((Re) => F.includes(Re[o.value])) : g.value.find((Re) => Re[o.value] === F) ?? null;
7684
- n("update:value", F, G, ge(Ne(he)));
7683
+ const be = Array.isArray(F) ? g.value.filter((Re) => F.includes(Re[o.value])) : g.value.find((Re) => Re[o.value] === F) ?? null;
7684
+ n("update:value", F, G, ge(Ne(be)));
7685
7685
  },
7686
7686
  onSearch: (F) => {
7687
7687
  C.value = F, !f.value && (e.debounce ? T() : h({
@@ -7875,7 +7875,7 @@ const Qc = /* @__PURE__ */ yn(Zc, [["render", Xc]]), af = /* @__PURE__ */ le({
7875
7875
  function a() {
7876
7876
  t.value = !1, u.value = r.value;
7877
7877
  }
7878
- return (i, l) => (P(), pe("div", { onClick: o }, [
7878
+ return (i, l) => (P(), he("div", { onClick: o }, [
7879
7879
  t.value ? (P(), N(y(fn), Y({
7880
7880
  key: 0,
7881
7881
  ref_key: "inputRef",
@@ -7885,7 +7885,7 @@ const Qc = /* @__PURE__ */ yn(Zc, [["render", Xc]]), af = /* @__PURE__ */ le({
7885
7885
  "onUpdate:value": l[0] || (l[0] = (s) => r.value = s),
7886
7886
  onChange: a,
7887
7887
  onBlur: a
7888
- }), null, 16, ["value"])) : (P(), pe(Le, { key: 1 }, [
7888
+ }), null, 16, ["value"])) : (P(), he(Le, { key: 1 }, [
7889
7889
  ou(Ke(r.value), 1)
7890
7890
  ], 64))
7891
7891
  ]));