@oiij/naive-ui 0.0.12 → 0.0.14

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 Sr, onBeforeMount as So, defineComponent as ce, createBlock as U, openBlock as I, unref as w, normalizeClass as Eu, withCtx as O, renderSlot as q, createVNode as Z, createCommentVNode as Fe, mergeProps as oe, resolveDynamicComponent as au, createElementVNode as Pu, normalizeStyle as on, ref as j, onMounted as To, normalizeProps as pe, guardReactiveProps as he, createElementBlock as Ne, watch as Ie, createTextVNode as Ru, toDisplayString as Ou, watchEffect as Se, onScopeDispose as an, computed as ge, onUnmounted as Po, reactive as Au, isRef as Qt, toRefs as Ro, h as Ue, useTemplateRef as bt, Fragment as wu, renderList as it, toValue as ou, nextTick as cn, Teleport as Oo, createSlots as Mo, toRaw as Jt, toRef as Lo, resolveComponent as Rt, createStaticVNode as No, mergeModels as Io, useModel as $o, Transition as zo, isReactive as Bo } from "vue";
1
+ import { inject as Sr, onBeforeMount as So, defineComponent as ce, createBlock as U, openBlock as I, unref as w, normalizeClass as Eu, withCtx as L, renderSlot as q, createVNode as Z, createCommentVNode as Fe, mergeProps as oe, resolveDynamicComponent as au, createElementVNode as Pu, normalizeStyle as on, ref as j, onMounted as To, normalizeProps as pe, guardReactiveProps as he, createElementBlock as Ne, watch as Ie, createTextVNode as Ru, toDisplayString as Ou, watchEffect as Se, onScopeDispose as an, computed as ge, onUnmounted as Po, reactive as Au, isRef as Qt, toRefs as Ro, h as Ue, useTemplateRef as bt, Fragment as wu, renderList as it, toValue as ou, nextTick as cn, Teleport as Oo, createSlots as Mo, toRaw as Jt, toRef as Lo, resolveComponent as Rt, createStaticVNode as No, mergeModels as Io, useModel as $o, Transition as zo, isReactive as Bo } from "vue";
2
2
  import { NEl as sn, NAvatar as Uo, NFlex as _u, NSpin as Tr, NConfigProvider as qo, NLoadingBarProvider as jo, NDialogProvider as Ho, NModalProvider as Go, NNotificationProvider as Wo, NMessageProvider as Vo, NGlobalStyle as Zo, useDialog as Yo, useLoadingBar as Xo, useMessage as Qo, useModal as Jo, useNotification as Ko, NTooltip as Pr, NButton as Mu, NFormItem as ei, NGrid as at, NGi as ct, NDivider as ui, NCollapseTransition as ti, NDataTable as ni, NPagination as Rr, NDropdown as ri, cM as qn, NForm as oi, NTimePicker as ii, NSwitch as ai, NSelect as Or, NInput as ln, NDatePicker as ci, NInputGroup as si } from "naive-ui";
3
3
  import { useClipboard as li, createEventHook as ut, useDebounceFn as Mr, useTimeoutFn as fi } from "@vueuse/core";
4
4
  function di(e) {
@@ -1014,36 +1014,36 @@ function $i() {
1014
1014
  var te = N.pattern.toString().match(/[imsuy]*$/)[0];
1015
1015
  N.pattern = RegExp(N.pattern.source, te + "g");
1016
1016
  }
1017
- for (var me = N.pattern || N, C = k.next, M = x; C !== b.tail && !(A && M >= A.reach); M += C.value.length, C = C.next) {
1018
- var L = C.value;
1017
+ for (var me = N.pattern || N, C = k.next, O = x; C !== b.tail && !(A && O >= A.reach); O += C.value.length, C = C.next) {
1018
+ var M = C.value;
1019
1019
  if (b.length > p.length)
1020
1020
  return;
1021
- if (!(L instanceof c)) {
1021
+ if (!(M instanceof c)) {
1022
1022
  var W = 1, z;
1023
1023
  if (S) {
1024
- if (z = s(me, M, p, ve), !z || z.index >= p.length)
1024
+ if (z = s(me, O, p, ve), !z || z.index >= p.length)
1025
1025
  break;
1026
- var Ae = z.index, G = z.index + z[0].length, ie = M;
1026
+ var Ae = z.index, G = z.index + z[0].length, ie = O;
1027
1027
  for (ie += C.value.length; Ae >= ie; )
1028
1028
  C = C.next, ie += C.value.length;
1029
- if (ie -= C.value.length, M = ie, C.value instanceof c)
1029
+ if (ie -= C.value.length, O = ie, C.value instanceof c)
1030
1030
  continue;
1031
1031
  for (var V = C; V !== b.tail && (ie < G || typeof V.value == "string"); V = V.next)
1032
1032
  W++, ie += V.value.length;
1033
- W--, L = p.slice(M, ie), z.index -= M;
1034
- } else if (z = s(me, 0, L, ve), !z)
1033
+ W--, M = p.slice(O, ie), z.index -= O;
1034
+ } else if (z = s(me, 0, M, ve), !z)
1035
1035
  continue;
1036
- var Ae = z.index, $e = z[0], Ye = L.slice(0, Ae), Xe = L.slice(Ae + $e.length), Qe = M + L.length;
1036
+ var Ae = z.index, $e = z[0], Ye = M.slice(0, Ae), Xe = M.slice(Ae + $e.length), Qe = O + M.length;
1037
1037
  A && Qe > A.reach && (A.reach = Qe);
1038
1038
  var We = C.prev;
1039
- Ye && (We = _(b, We, Ye), M += Ye.length), g(b, We, W);
1039
+ Ye && (We = _(b, We, Ye), O += Ye.length), g(b, We, W);
1040
1040
  var ze = new c(T, Q ? i.tokenize($e, Q) : $e, H, $e);
1041
1041
  if (C = _(b, We, ze), Xe && _(b, C, Xe), W > 1) {
1042
1042
  var Be = {
1043
1043
  cause: T + "," + $,
1044
1044
  reach: Qe
1045
1045
  };
1046
- l(p, b, m, C.prev, M, Be), A && Be.reach > A.reach && (A.reach = Be.reach);
1046
+ l(p, b, m, C.prev, O, Be), A && Be.reach > A.reach && (A.reach = Be.reach);
1047
1047
  }
1048
1048
  }
1049
1049
  }
@@ -1597,23 +1597,23 @@ const $l = /* @__PURE__ */ ce({
1597
1597
  tag: "div",
1598
1598
  class: Eu([w(Mt), n.placement === "end" ? `${w(Mt)}--reverse` : ""])
1599
1599
  }, {
1600
- default: O(() => [
1600
+ default: L(() => [
1601
1601
  q(n.$slots, "avatar", {}, () => [
1602
1602
  n.avatar ? (I(), U(w(Uo), oe({
1603
1603
  key: 0,
1604
1604
  round: ""
1605
1605
  }, n.avatar.props), {
1606
- default: O(() => [
1606
+ default: L(() => [
1607
1607
  (I(), U(au(n.avatar.icon)))
1608
1608
  ]),
1609
1609
  _: 1
1610
1610
  }, 16)) : Fe("", !0)
1611
1611
  ]),
1612
1612
  Z(w(_u), { vertical: "" }, {
1613
- default: O(() => [
1613
+ default: L(() => [
1614
1614
  q(n.$slots, "header"),
1615
1615
  Z(w(jr), null, {
1616
- default: O(() => [
1616
+ default: L(() => [
1617
1617
  n.loading ? q(n.$slots, "loading", { key: 0 }, () => [
1618
1618
  Z(w(Tr), { style: { height: "44px" } })
1619
1619
  ]) : q(n.$slots, "default", { key: 1 }, () => [
@@ -1675,17 +1675,17 @@ const $l = /* @__PURE__ */ ce({
1675
1675
  }
1676
1676
  });
1677
1677
  return (r, o) => (I(), U(w(qo), pe(he(r.configProviderProps)), {
1678
- default: O(() => [
1678
+ default: L(() => [
1679
1679
  Z(w(jo), pe(he(r.loadingBarProps)), {
1680
- default: O(() => [
1680
+ default: L(() => [
1681
1681
  Z(w(Ho), pe(he(r.dialogProviderProps)), {
1682
- default: O(() => [
1682
+ default: L(() => [
1683
1683
  Z(w(Go), pe(he(r.modalProviderProps)), {
1684
- default: O(() => [
1684
+ default: L(() => [
1685
1685
  Z(w(Wo), pe(he(r.notificationProviderProps)), {
1686
- default: O(() => [
1686
+ default: L(() => [
1687
1687
  Z(w(Vo), pe(he(r.messageProviderProps)), {
1688
- default: O(() => [
1688
+ default: L(() => [
1689
1689
  q(r.$slots, "default"),
1690
1690
  Z(w(n))
1691
1691
  ]),
@@ -1751,7 +1751,7 @@ const Yi = /* @__PURE__ */ dn(Wi, [["render", Zi]]), Bl = /* @__PURE__ */ ce({
1751
1751
  a.preventDefault(), r();
1752
1752
  }
1753
1753
  return (a, i) => (I(), U(w(Pr), pe(he(a.tooltipProps)), {
1754
- trigger: O(() => [
1754
+ trigger: L(() => [
1755
1755
  Pu("div", {
1756
1756
  style: { cursor: "pointer" },
1757
1757
  onClick: o
@@ -1761,7 +1761,7 @@ const Yi = /* @__PURE__ */ dn(Wi, [["render", Zi]]), Bl = /* @__PURE__ */ ce({
1761
1761
  quaternary: "",
1762
1762
  size: "tiny"
1763
1763
  }, a.buttonProps), {
1764
- icon: O(() => [
1764
+ icon: L(() => [
1765
1765
  q(a.$slots, "icon", {}, () => [
1766
1766
  Z(Yi)
1767
1767
  ])
@@ -1771,7 +1771,7 @@ const Yi = /* @__PURE__ */ dn(Wi, [["render", Zi]]), Bl = /* @__PURE__ */ ce({
1771
1771
  ])
1772
1772
  ])
1773
1773
  ]),
1774
- default: O(() => [
1774
+ default: L(() => [
1775
1775
  q(a.$slots, "tooltip", {}, () => [
1776
1776
  Ru(Ou(w(n) ? "复制成功" : "复制"), 1)
1777
1777
  ])
@@ -2607,24 +2607,24 @@ const Ul = /* @__PURE__ */ ce({
2607
2607
  onBefore: (C) => {
2608
2608
  e.requestOptions?.onBefore?.(C), n("before", C);
2609
2609
  },
2610
- onSuccess: (C, M) => {
2611
- e.requestOptions?.onSuccess?.(C, M), n("success", C, M), x(C, M);
2610
+ onSuccess: (C, O) => {
2611
+ e.requestOptions?.onSuccess?.(C, O), n("success", C, O), x(C, O);
2612
2612
  },
2613
- onError: (C, M) => {
2614
- e.requestOptions?.onError?.(C, M), n("error", C, M);
2613
+ onError: (C, O) => {
2614
+ e.requestOptions?.onError?.(C, O), n("error", C, O);
2615
2615
  },
2616
- onFinally: (C, M, L) => {
2617
- e.requestOptions?.onFinally?.(C, M, L), n("finally", C, M, L);
2616
+ onFinally: (C, O, M) => {
2617
+ e.requestOptions?.onFinally?.(C, O, M), n("finally", C, O, M);
2618
2618
  }
2619
- }, e.requestPlugins), m = ge(() => f.value ? Array.isArray(f.value[a.list]) ? f.value[a.list] : (console.warn(`DataTablePlus: data[${a.list}] must be an array`), []) : []), k = ge(() => e.columns?.reduce((C, M) => C + Number(M.width ?? 100), 0));
2620
- function x(C, M) {
2621
- c.value.page = a.page in M[0] ? Number(M[0][a.page]) : 1, c.value.pageSize = a.pageSize in M[0] ? Number(M[0][a.pageSize]) : 10, c.value.itemCount = a.count in C ? Number(C[a.count]) : 0;
2622
- const L = M[0]?.[a.filter], W = M[0]?.[a.sorter];
2619
+ }, e.requestPlugins), m = ge(() => f.value ? Array.isArray(f.value[a.list]) ? f.value[a.list] : (console.warn(`DataTablePlus: data[${a.list}] must be an array`), []) : []), k = ge(() => e.columns?.reduce((C, O) => C + Number(O.width ?? 100), 0));
2620
+ function x(C, O) {
2621
+ c.value.page = a.page in O[0] ? Number(O[0][a.page]) : 1, c.value.pageSize = a.pageSize in O[0] ? Number(O[0][a.pageSize]) : 10, c.value.itemCount = a.count in C ? Number(C[a.count]) : 0;
2622
+ const M = O[0]?.[a.filter], W = O[0]?.[a.sorter];
2623
2623
  if (r) {
2624
2624
  for (const z of r)
2625
2625
  if ("key" in z) {
2626
- if (L && z.key in L) {
2627
- const G = L[z.key];
2626
+ if (M && z.key in M) {
2627
+ const G = M[z.key];
2628
2628
  "filter" in z && z.filter && (z.filterMultiple ? Array.isArray(G) && (z.filterOptionValues = G) : Array.isArray(G) || (z.filterOptionValue = G));
2629
2629
  }
2630
2630
  if ("sorter" in z && typeof z.sorter == "boolean" && (z.sortOrder = !1), W && z.key in W) {
@@ -2651,64 +2651,64 @@ const Ul = /* @__PURE__ */ ce({
2651
2651
  [a.pageSize]: C
2652
2652
  });
2653
2653
  },
2654
- onUpdateFilters: (C, M) => {
2655
- n("update:filters", C, M), A({
2654
+ onUpdateFilters: (C, O) => {
2655
+ n("update:filters", C, O), A({
2656
2656
  [a.page]: 1,
2657
2657
  [a.filter]: C
2658
2658
  });
2659
2659
  },
2660
2660
  onUpdateSorter: (C) => {
2661
2661
  n("update:sorter", C);
2662
- const M = {};
2662
+ const O = {};
2663
2663
  if (Array.isArray(C))
2664
- for (const L of C)
2665
- M[L.columnKey] = L.order;
2666
- else C && (M[C.columnKey] = C.order);
2664
+ for (const M of C)
2665
+ O[M.columnKey] = M.order;
2666
+ else C && (O[C.columnKey] = C.order);
2667
2667
  A({
2668
2668
  [a.page]: 1,
2669
- [a.sorter]: M
2669
+ [a.sorter]: O
2670
2670
  });
2671
2671
  },
2672
2672
  onLoad: (C) => n("load", C),
2673
2673
  onScroll: (C) => {
2674
2674
  n("scroll", C);
2675
2675
  },
2676
- onUpdateCheckedRowKeys: (...C) => {
2677
- n("update:checkedRowKeys", ...C);
2676
+ onUpdateCheckedRowKeys: (C, O, M) => {
2677
+ n("update:checkedRowKeys", C, O, M);
2678
2678
  },
2679
- onUpdateExpandedRowKeys: (...C) => {
2680
- n("update:expandedRowKeys", ...C);
2679
+ onUpdateExpandedRowKeys: (C) => {
2680
+ n("update:expandedRowKeys", C);
2681
2681
  }
2682
2682
  }, D = j(!1), $ = j(), N = j({
2683
2683
  x: 0,
2684
2684
  y: 0
2685
2685
  });
2686
- function Q(C, M) {
2686
+ function Q(C, O) {
2687
2687
  D.value = !1, n("contextMenuSelect", {
2688
2688
  key: C,
2689
- option: M,
2689
+ option: O,
2690
2690
  row: ou($)
2691
2691
  });
2692
2692
  }
2693
- function ve(C, M) {
2693
+ function ve(C, O) {
2694
2694
  return {
2695
- onClick: (L) => {
2696
- n("clickRow", { row: C, index: M, event: L });
2695
+ onClick: (M) => {
2696
+ n("clickRow", { row: C, index: O, event: M });
2697
2697
  },
2698
- onContextmenu: (L) => {
2699
- n("contextMenuRow", { row: C, index: M, event: L }), e.contextMenuOptions && (L.preventDefault(), D.value = !1, $.value = C, cn(() => {
2698
+ onContextmenu: (M) => {
2699
+ n("contextMenuRow", { row: C, index: O, event: M }), e.contextMenuOptions && (M.preventDefault(), D.value = !1, $.value = C, cn(() => {
2700
2700
  D.value = !0, N.value = {
2701
- x: L.x,
2702
- y: L.y
2701
+ x: M.x,
2702
+ y: M.y
2703
2703
  };
2704
2704
  }));
2705
2705
  }
2706
2706
  };
2707
2707
  }
2708
2708
  const S = j(!1);
2709
- function H(C, M) {
2710
- M && A({
2711
- [M]: C
2709
+ function H(C, O) {
2710
+ O && A({
2711
+ [O]: C
2712
2712
  });
2713
2713
  }
2714
2714
  const te = {
@@ -2735,27 +2735,27 @@ const Ul = /* @__PURE__ */ ce({
2735
2735
  return u({
2736
2736
  refs: te,
2737
2737
  actions: me
2738
- }), (C, M) => (I(), U(w(_u), { vertical: "" }, {
2739
- default: O(() => [
2738
+ }), (C, O) => (I(), U(w(_u), { vertical: "" }, {
2739
+ default: L(() => [
2740
2740
  q(C.$slots, "filter", {
2741
2741
  refs: te,
2742
2742
  actions: me
2743
2743
  }, () => [
2744
2744
  Z(w(_u), { vertical: "" }, {
2745
- default: O(() => [
2745
+ default: L(() => [
2746
2746
  Z(w(at), pe(he(C.filterGridProps)), {
2747
- default: O(() => [
2748
- (I(!0), Ne(wu, null, it(C.filterOptions?.filter((L) => !L.collapsed), ({ key: L, gridItemProps: W, render: z, ...G }, ie) => (I(), U(w(ct), oe({
2747
+ default: L(() => [
2748
+ (I(!0), Ne(wu, null, it(C.filterOptions?.filter((M) => !M.collapsed), ({ key: M, gridItemProps: W, render: z, ...G }, ie) => (I(), U(w(ct), oe({
2749
2749
  key: ie,
2750
2750
  span: 12
2751
2751
  }, { ref_for: !0 }, W), {
2752
- default: O(() => [
2753
- z ? (I(), U(au(w(Cu)(z(te, me), G.label, L)), { key: 0 })) : (I(), U(w(ft), {
2752
+ default: L(() => [
2753
+ z ? (I(), U(au(w(Cu)(z(te, me), G.label, M)), { key: 0 })) : (I(), U(w(ft), {
2754
2754
  key: 1,
2755
2755
  options: G,
2756
- value: L ? w(g)[0][L] : void 0,
2757
- path: L,
2758
- "onUpdate:value": (V) => H(V, L)
2756
+ value: M ? w(g)[0][M] : void 0,
2757
+ path: M,
2758
+ "onUpdate:value": (V) => H(V, M)
2759
2759
  }, null, 8, ["options", "value", "path", "onUpdate:value"]))
2760
2760
  ]),
2761
2761
  _: 2
@@ -2763,16 +2763,16 @@ const Ul = /* @__PURE__ */ ce({
2763
2763
  ]),
2764
2764
  _: 1
2765
2765
  }, 16),
2766
- C.filterOptions?.filter((L) => L.collapsed) && C.filterOptions?.filter((L) => L.collapsed)?.length > 0 ? (I(), U(w(ui), {
2766
+ C.filterOptions?.filter((M) => M.collapsed) && C.filterOptions?.filter((M) => M.collapsed)?.length > 0 ? (I(), U(w(ui), {
2767
2767
  key: 0,
2768
2768
  style: { margin: "0" }
2769
2769
  }, {
2770
- default: O(() => [
2770
+ default: L(() => [
2771
2771
  Z(w(Mu), {
2772
2772
  size: "tiny",
2773
- onClick: M[0] || (M[0] = (L) => S.value = !S.value)
2773
+ onClick: O[0] || (O[0] = (M) => S.value = !S.value)
2774
2774
  }, {
2775
- default: O(() => [
2775
+ default: L(() => [
2776
2776
  Ru(Ou(S.value ? "折叠" : "展开"), 1)
2777
2777
  ]),
2778
2778
  _: 1
@@ -2781,20 +2781,20 @@ const Ul = /* @__PURE__ */ ce({
2781
2781
  _: 1
2782
2782
  })) : Fe("", !0),
2783
2783
  Z(w(ti), { show: S.value }, {
2784
- default: O(() => [
2784
+ default: L(() => [
2785
2785
  Z(w(at), pe(he(C.filterGridProps)), {
2786
- default: O(() => [
2787
- (I(!0), Ne(wu, null, it(C.filterOptions?.filter((L) => L.collapsed), ({ key: L, gridItemProps: W, render: z, ...G }, ie) => (I(), U(w(ct), oe({
2786
+ default: L(() => [
2787
+ (I(!0), Ne(wu, null, it(C.filterOptions?.filter((M) => M.collapsed), ({ key: M, gridItemProps: W, render: z, ...G }, ie) => (I(), U(w(ct), oe({
2788
2788
  key: ie,
2789
2789
  span: 12
2790
2790
  }, { ref_for: !0 }, W), {
2791
- default: O(() => [
2792
- z ? (I(), U(au(w(Cu)(z(te, me), G.label, L)), { key: 0 })) : (I(), U(w(ft), {
2791
+ default: L(() => [
2792
+ z ? (I(), U(au(w(Cu)(z(te, me), G.label, M)), { key: 0 })) : (I(), U(w(ft), {
2793
2793
  key: 1,
2794
2794
  options: G,
2795
- value: L ? w(g)[0][L] : void 0,
2796
- path: L,
2797
- "onUpdate:value": (V) => H(V, L)
2795
+ value: M ? w(g)[0][M] : void 0,
2796
+ path: M,
2797
+ "onUpdate:value": (V) => H(V, M)
2798
2798
  }, null, 8, ["options", "value", "path", "onUpdate:value"]))
2799
2799
  ]),
2800
2800
  _: 2
@@ -2817,7 +2817,7 @@ const Ul = /* @__PURE__ */ ce({
2817
2817
  "scroll-x": k.value,
2818
2818
  style: { flex: 1, ...C.customStyle },
2819
2819
  class: C.customClass,
2820
- "row-key": (L) => L[a.rowKey],
2820
+ "row-key": (M) => M[a.rowKey],
2821
2821
  loading: w(l),
2822
2822
  columns: r,
2823
2823
  data: m.value,
@@ -2830,17 +2830,17 @@ const Ul = /* @__PURE__ */ ce({
2830
2830
  "onUpdate:checkedRowKeys": T.onUpdateCheckedRowKeys,
2831
2831
  "onUpdate:expandedRowKeys": T.onUpdateExpandedRowKeys
2832
2832
  }), {
2833
- empty: O(() => [
2833
+ empty: L(() => [
2834
2834
  q(C.$slots, "empty")
2835
2835
  ]),
2836
- loading: O(() => [
2836
+ loading: L(() => [
2837
2837
  q(C.$slots, "loading")
2838
2838
  ]),
2839
2839
  _: 3
2840
2840
  }, 16, ["scroll-x", "style", "class", "row-key", "loading", "columns", "data", "onUpdate:filters", "onUpdate:sorter", "onLoad", "onScroll", "onUpdate:checkedRowKeys", "onUpdate:expandedRowKeys"]),
2841
2841
  q(C.$slots, "actions", {}, () => [
2842
2842
  Z(w(_u), null, {
2843
- default: O(() => [
2843
+ default: L(() => [
2844
2844
  q(C.$slots, "extra"),
2845
2845
  q(C.$slots, "pagination", {}, () => [
2846
2846
  C.pagination ? (I(), U(w(Rr), oe({
@@ -2864,7 +2864,7 @@ const Ul = /* @__PURE__ */ ce({
2864
2864
  y: N.value.y,
2865
2865
  show: D.value,
2866
2866
  options: C.contextMenuOptions,
2867
- onClickoutside: M[1] || (M[1] = (L) => D.value = !1),
2867
+ onClickoutside: O[1] || (O[1] = (M) => D.value = !1),
2868
2868
  onSelect: Q
2869
2869
  }, null, 8, ["x", "y", "show", "options"])) : Fe("", !0)
2870
2870
  ]),
@@ -2911,25 +2911,25 @@ const a0 = /* @__PURE__ */ ce({
2911
2911
  t && (e.show && (u.value = t.style.overflow), t.style.overflow = e.show ? "hidden" : u.value);
2912
2912
  }
2913
2913
  }), (t, n) => (I(), U(w(jr), null, {
2914
- default: O(() => [
2914
+ default: L(() => [
2915
2915
  (I(), U(Oo, { to: t.appendTo }, [
2916
2916
  t.show ? (I(), U(w(sn), {
2917
2917
  key: 0,
2918
2918
  class: Eu([w(Zu), { [`${w(Zu)}--mask`]: t.mask }, { [`${w(Zu)}--blur`]: t.blur }]),
2919
2919
  style: on(typeof t.mask == "object" ? t.mask : {})
2920
2920
  }, {
2921
- default: O(() => [
2921
+ default: L(() => [
2922
2922
  Z(w(Tr), pe(he(t.spinProps)), Mo({ _: 2 }, [
2923
2923
  t.$slots.description ? {
2924
2924
  name: "description",
2925
- fn: O(() => [
2925
+ fn: L(() => [
2926
2926
  q(t.$slots, "description")
2927
2927
  ]),
2928
2928
  key: "0"
2929
2929
  } : void 0,
2930
2930
  t.$slots.icon ? {
2931
2931
  name: "icon",
2932
- fn: O(() => [
2932
+ fn: L(() => [
2933
2933
  q(t.$slots, "icon")
2934
2934
  ]),
2935
2935
  key: "1"
@@ -3032,19 +3032,19 @@ const ql = /* @__PURE__ */ ce({
3032
3032
  return (p, b) => {
3033
3033
  const m = Rt("NButton"), k = Rt("NDivider"), x = Rt("NCollapseTransition");
3034
3034
  return I(), U(w(oi), pe(he({ ...w(r), ...e.formProps })), {
3035
- default: O(() => [
3035
+ default: L(() => [
3036
3036
  q(p.$slots, "header"),
3037
3037
  q(p.$slots, "default", {
3038
3038
  refs: y,
3039
3039
  actions: E
3040
3040
  }, () => [
3041
3041
  Z(w(at), pe(he(p.gridProps)), {
3042
- default: O(() => [
3042
+ default: L(() => [
3043
3043
  (I(!0), Ne(wu, null, it(p.options?.filter((A) => !A.collapsed), ({ key: A, gridItemProps: T, render: D, ...$ }, N) => (I(), U(w(ct), oe({
3044
3044
  key: N,
3045
3045
  span: 12
3046
3046
  }, { ref_for: !0 }, T), {
3047
- default: O(() => [
3047
+ default: L(() => [
3048
3048
  D ? (I(), U(au(w(Cu)(D(y, E), $.label, A)), { key: 0 })) : (I(), U(w(ft), {
3049
3049
  key: 1,
3050
3050
  options: $,
@@ -3062,12 +3062,12 @@ const ql = /* @__PURE__ */ ce({
3062
3062
  key: 0,
3063
3063
  style: { margin: "0" }
3064
3064
  }, {
3065
- default: O(() => [
3065
+ default: L(() => [
3066
3066
  Z(m, {
3067
3067
  size: "tiny",
3068
3068
  onClick: b[0] || (b[0] = (A) => d.value = !d.value)
3069
3069
  }, {
3070
- default: O(() => [
3070
+ default: L(() => [
3071
3071
  Ru(Ou(d.value ? "折叠" : "展开"), 1)
3072
3072
  ]),
3073
3073
  _: 1
@@ -3076,14 +3076,14 @@ const ql = /* @__PURE__ */ ce({
3076
3076
  _: 1
3077
3077
  })) : Fe("", !0),
3078
3078
  Z(x, { show: d.value }, {
3079
- default: O(() => [
3079
+ default: L(() => [
3080
3080
  Z(w(at), pe(he(p.gridProps)), {
3081
- default: O(() => [
3081
+ default: L(() => [
3082
3082
  (I(!0), Ne(wu, null, it(p.options?.filter((A) => A.collapsed), ({ key: A, gridItemProps: T, render: D, ...$ }, N) => (I(), U(w(ct), oe({
3083
3083
  key: N,
3084
3084
  span: 12
3085
3085
  }, { ref_for: !0 }, T), {
3086
- default: O(() => [
3086
+ default: L(() => [
3087
3087
  D ? (I(), U(au(w(Cu)(D(y, E), $.label, A)), { key: 0 })) : (I(), U(w(ft), {
3088
3088
  key: 1,
3089
3089
  options: $,
@@ -3343,13 +3343,13 @@ const ql = /* @__PURE__ */ ce({
3343
3343
  "onUpdate:show": D.onUpdateShow,
3344
3344
  "onUpdate:value": D.onUpdateValue
3345
3345
  }), {
3346
- header: O(() => [
3346
+ header: L(() => [
3347
3347
  q(S.$slots, "header")
3348
3348
  ]),
3349
- action: O(() => [
3349
+ action: L(() => [
3350
3350
  q(S.$slots, "action", {}, () => [
3351
3351
  Z(w(_u), null, {
3352
- default: O(() => [
3352
+ default: L(() => [
3353
3353
  q(S.$slots, "extra"),
3354
3354
  q(S.$slots, "pagination", {}, () => [
3355
3355
  S.pagination ? (I(), U(w(Rr), oe({
@@ -3367,10 +3367,10 @@ const ql = /* @__PURE__ */ ce({
3367
3367
  })
3368
3368
  ])
3369
3369
  ]),
3370
- empty: O(() => [
3370
+ empty: L(() => [
3371
3371
  q(S.$slots, "empty")
3372
3372
  ]),
3373
- arrow: O(() => [
3373
+ arrow: L(() => [
3374
3374
  q(S.$slots, "arrow")
3375
3375
  ]),
3376
3376
  _: 3
@@ -3496,7 +3496,7 @@ const er = /* @__PURE__ */ dn(p0, [["render", b0]]), m0 = /* @__PURE__ */ ce({
3496
3496
  return Se(() => {
3497
3497
  !e.loading && r.value && n.value?.focus();
3498
3498
  }), (l, f) => (I(), U(w(si), null, {
3499
- default: O(() => [
3499
+ default: L(() => [
3500
3500
  Z(w(ln), oe({
3501
3501
  ref: "input-ref",
3502
3502
  value: r.value,
@@ -3504,14 +3504,14 @@ const er = /* @__PURE__ */ dn(p0, [["render", b0]]), m0 = /* @__PURE__ */ ce({
3504
3504
  disabled: l.loading,
3505
3505
  clearable: ""
3506
3506
  }, l.inputProps, { onKeydown: s }), {
3507
- prefix: O(() => [
3507
+ prefix: L(() => [
3508
3508
  q(l.$slots, "prefix", {}, () => [
3509
3509
  q(l.$slots, "prefix-icon", {}, () => [
3510
3510
  Z(er)
3511
3511
  ])
3512
3512
  ])
3513
3513
  ]),
3514
- suffix: O(() => [
3514
+ suffix: L(() => [
3515
3515
  w(o) ? (I(), U(d0, { key: 0 })) : Fe("", !0)
3516
3516
  ]),
3517
3517
  _: 3
@@ -3522,7 +3522,7 @@ const er = /* @__PURE__ */ dn(p0, [["render", b0]]), m0 = /* @__PURE__ */ ce({
3522
3522
  type: l.type,
3523
3523
  loading: l.loading
3524
3524
  }, l.buttonProps, { onClick: c }), {
3525
- icon: O(() => [
3525
+ icon: L(() => [
3526
3526
  q(l.$slots, "button-icon", {}, () => [
3527
3527
  Z(er)
3528
3528
  ])
@@ -3579,20 +3579,20 @@ const er = /* @__PURE__ */ dn(p0, [["render", b0]]), m0 = /* @__PURE__ */ ce({
3579
3579
  setup(e, { emit: u }) {
3580
3580
  const t = u;
3581
3581
  return (n, r) => (I(), U(w(Pr), pe(he(n.tooltipProps)), {
3582
- trigger: O(() => [
3582
+ trigger: L(() => [
3583
3583
  Z(w(Mu), oe(n.buttonProps, {
3584
3584
  onClick: r[0] || (r[0] = (o) => t("click", o))
3585
3585
  }), {
3586
- icon: O(() => [
3586
+ icon: L(() => [
3587
3587
  q(n.$slots, "icon")
3588
3588
  ]),
3589
- default: O(() => [
3589
+ default: L(() => [
3590
3590
  q(n.$slots, "default")
3591
3591
  ]),
3592
3592
  _: 3
3593
3593
  }, 16)
3594
3594
  ]),
3595
- default: O(() => [
3595
+ default: L(() => [
3596
3596
  q(n.$slots, "tooltip", {}, () => [
3597
3597
  Ru(Ou(n.value), 1)
3598
3598
  ])
@@ -3640,7 +3640,7 @@ const jr = /* @__PURE__ */ ce({
3640
3640
  appear: "",
3641
3641
  mode: "out-in"
3642
3642
  }, u.transitionProps), {
3643
- default: O(() => [
3643
+ default: L(() => [
3644
3644
  q(u.$slots, "default")
3645
3645
  ]),
3646
3646
  _: 3
@@ -3835,10 +3835,10 @@ function Zr() {
3835
3835
  ARIA_ATTR: te,
3836
3836
  IS_SCRIPT_OR_DATA: me,
3837
3837
  ATTR_WHITESPACE: C,
3838
- CUSTOM_ELEMENT: M
3838
+ CUSTOM_ELEMENT: O
3839
3839
  } = cr;
3840
3840
  let {
3841
- IS_ALLOWED_URI: L
3841
+ IS_ALLOWED_URI: M
3842
3842
  } = cr, W = null;
3843
3843
  const z = B({}, [...rr, ...$t, ...zt, ...Bt, ...or]);
3844
3844
  let G = null;
@@ -3883,7 +3883,7 @@ function Zr() {
3883
3883
  let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3884
3884
  if (!(tu && tu === h)) {
3885
3885
  if ((!h || typeof h != "object") && (h = {}), h = Le(h), du = // eslint-disable-next-line unicorn/prefer-includes
3886
- Ao.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? wo : h.PARSER_MEDIA_TYPE, K = du === "application/xhtml+xml" ? It : ot, W = ye(h, "ALLOWED_TAGS") ? B({}, h.ALLOWED_TAGS, K) : z, G = ye(h, "ALLOWED_ATTR") ? B({}, h.ALLOWED_ATTR, K) : ie, Ft = ye(h, "ALLOWED_NAMESPACES") ? B({}, h.ALLOWED_NAMESPACES, It) : yo, Ct = ye(h, "ADD_URI_SAFE_ATTR") ? B(Le(Sn), h.ADD_URI_SAFE_ATTR, K) : Sn, Dn = ye(h, "ADD_DATA_URI_TAGS") ? B(Le(Fn), h.ADD_DATA_URI_TAGS, K) : Fn, eu = ye(h, "FORBID_CONTENTS") ? B({}, h.FORBID_CONTENTS, K) : Cn, Ae = ye(h, "FORBID_TAGS") ? B({}, h.FORBID_TAGS, K) : Le({}), $e = ye(h, "FORBID_ATTR") ? B({}, h.FORBID_ATTR, K) : Le({}), Ke = ye(h, "USE_PROFILES") ? h.USE_PROFILES : !1, Ye = h.ALLOW_ARIA_ATTR !== !1, Xe = h.ALLOW_DATA_ATTR !== !1, Qe = h.ALLOW_UNKNOWN_PROTOCOLS || !1, We = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ze = h.SAFE_FOR_TEMPLATES || !1, Be = h.SAFE_FOR_XML !== !1, Ve = h.WHOLE_DOCUMENT || !1, Je = h.RETURN_DOM || !1, zu = h.RETURN_DOM_FRAGMENT || !1, Bu = h.RETURN_TRUSTED_TYPE || !1, At = h.FORCE_BODY || !1, An = h.SANITIZE_DOM !== !1, wn = h.SANITIZE_NAMED_PROPS || !1, wt = h.KEEP_CONTENT !== !1, fu = h.IN_PLACE || !1, L = h.ALLOWED_URI_REGEXP || Wr, uu = h.NAMESPACE || Re, ju = h.MATHML_TEXT_INTEGRATION_POINTS || ju, Hu = h.HTML_INTEGRATION_POINTS || Hu, V = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && Tn(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (V.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && Tn(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (V.attributeNameCheck = h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (V.allowCustomizedBuiltInElements = h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ze && (Xe = !1), zu && (Je = !0), Ke && (W = B({}, or), G = [], Ke.html === !0 && (B(W, rr), B(G, ir)), Ke.svg === !0 && (B(W, $t), B(G, Ut), B(G, Qu)), Ke.svgFilters === !0 && (B(W, zt), B(G, Ut), B(G, Qu)), Ke.mathMl === !0 && (B(W, Bt), B(G, ar), B(G, Qu))), h.ADD_TAGS && (W === z && (W = Le(W)), B(W, h.ADD_TAGS, K)), h.ADD_ATTR && (G === ie && (G = Le(G)), B(G, h.ADD_ATTR, K)), h.ADD_URI_SAFE_ATTR && B(Ct, h.ADD_URI_SAFE_ATTR, K), h.FORBID_CONTENTS && (eu === Cn && (eu = Le(eu)), B(eu, h.FORBID_CONTENTS, K)), wt && (W["#text"] = !0), Ve && B(W, ["html", "head", "body"]), W.table && (B(W, ["tbody"]), delete Ae.tbody), h.TRUSTED_TYPES_POLICY) {
3886
+ Ao.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? wo : h.PARSER_MEDIA_TYPE, K = du === "application/xhtml+xml" ? It : ot, W = ye(h, "ALLOWED_TAGS") ? B({}, h.ALLOWED_TAGS, K) : z, G = ye(h, "ALLOWED_ATTR") ? B({}, h.ALLOWED_ATTR, K) : ie, Ft = ye(h, "ALLOWED_NAMESPACES") ? B({}, h.ALLOWED_NAMESPACES, It) : yo, Ct = ye(h, "ADD_URI_SAFE_ATTR") ? B(Le(Sn), h.ADD_URI_SAFE_ATTR, K) : Sn, Dn = ye(h, "ADD_DATA_URI_TAGS") ? B(Le(Fn), h.ADD_DATA_URI_TAGS, K) : Fn, eu = ye(h, "FORBID_CONTENTS") ? B({}, h.FORBID_CONTENTS, K) : Cn, Ae = ye(h, "FORBID_TAGS") ? B({}, h.FORBID_TAGS, K) : Le({}), $e = ye(h, "FORBID_ATTR") ? B({}, h.FORBID_ATTR, K) : Le({}), Ke = ye(h, "USE_PROFILES") ? h.USE_PROFILES : !1, Ye = h.ALLOW_ARIA_ATTR !== !1, Xe = h.ALLOW_DATA_ATTR !== !1, Qe = h.ALLOW_UNKNOWN_PROTOCOLS || !1, We = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ze = h.SAFE_FOR_TEMPLATES || !1, Be = h.SAFE_FOR_XML !== !1, Ve = h.WHOLE_DOCUMENT || !1, Je = h.RETURN_DOM || !1, zu = h.RETURN_DOM_FRAGMENT || !1, Bu = h.RETURN_TRUSTED_TYPE || !1, At = h.FORCE_BODY || !1, An = h.SANITIZE_DOM !== !1, wn = h.SANITIZE_NAMED_PROPS || !1, wt = h.KEEP_CONTENT !== !1, fu = h.IN_PLACE || !1, M = h.ALLOWED_URI_REGEXP || Wr, uu = h.NAMESPACE || Re, ju = h.MATHML_TEXT_INTEGRATION_POINTS || ju, Hu = h.HTML_INTEGRATION_POINTS || Hu, V = h.CUSTOM_ELEMENT_HANDLING || {}, h.CUSTOM_ELEMENT_HANDLING && Tn(h.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (V.tagNameCheck = h.CUSTOM_ELEMENT_HANDLING.tagNameCheck), h.CUSTOM_ELEMENT_HANDLING && Tn(h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (V.attributeNameCheck = h.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), h.CUSTOM_ELEMENT_HANDLING && typeof h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (V.allowCustomizedBuiltInElements = h.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ze && (Xe = !1), zu && (Je = !0), Ke && (W = B({}, or), G = [], Ke.html === !0 && (B(W, rr), B(G, ir)), Ke.svg === !0 && (B(W, $t), B(G, Ut), B(G, Qu)), Ke.svgFilters === !0 && (B(W, zt), B(G, Ut), B(G, Qu)), Ke.mathMl === !0 && (B(W, Bt), B(G, ar), B(G, Qu))), h.ADD_TAGS && (W === z && (W = Le(W)), B(W, h.ADD_TAGS, K)), h.ADD_ATTR && (G === ie && (G = Le(G)), B(G, h.ADD_ATTR, K)), h.ADD_URI_SAFE_ATTR && B(Ct, h.ADD_URI_SAFE_ATTR, K), h.FORBID_CONTENTS && (eu === Cn && (eu = Le(eu)), B(eu, h.FORBID_CONTENTS, K)), wt && (W["#text"] = !0), Ve && B(W, ["html", "head", "body"]), W.table && (B(W, ["tbody"]), delete Ae.tbody), h.TRUSTED_TYPES_POLICY) {
3887
3887
  if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function")
3888
3888
  throw gu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
3889
3889
  if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -4020,7 +4020,7 @@ function Zr() {
4020
4020
  F === "is" && V.allowCustomizedBuiltInElements && (V.tagNameCheck instanceof RegExp && ae(V.tagNameCheck, P) || V.tagNameCheck instanceof Function && V.tagNameCheck(P)))
4021
4021
  ) return !1;
4022
4022
  } else if (!Ct[F]) {
4023
- if (!ae(L, mu(P, C, ""))) {
4023
+ if (!ae(M, mu(P, C, ""))) {
4024
4024
  if (!((F === "src" || F === "xlink:href" || F === "href") && h !== "script" && C0(P, "data:") === 0 && Dn[h])) {
4025
4025
  if (!(Qe && !ae(me, mu(P, C, "")))) {
4026
4026
  if (P)
@@ -4033,7 +4033,7 @@ function Zr() {
4033
4033
  }
4034
4034
  return !0;
4035
4035
  }, $n = function(h) {
4036
- return h !== "annotation-xml" && nr(h, M);
4036
+ return h !== "annotation-xml" && nr(h, O);
4037
4037
  }, zn = function(h) {
4038
4038
  Oe(N.beforeSanitizeAttributes, h, null);
4039
4039
  const {
@@ -7412,7 +7412,7 @@ const Ol = ["innerHTML"], Ml = /* @__PURE__ */ ce({
7412
7412
  tag: "div",
7413
7413
  class: Eu([w(et)])
7414
7414
  }, {
7415
- default: O(() => [
7415
+ default: L(() => [
7416
7416
  Pu("div", {
7417
7417
  class: Eu([w(r) && !l.markdown ? `${w(et)}__cursor` : void 0, l.markdown ? `${w(et)}__markdown` : void 0]),
7418
7418
  style: on([l.markdown ? void 0 : { "--cursor-content": `'${l.suffix}'` }]),