@oiij/naive-ui 0.0.21 → 0.0.22
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/data-table-plus/DataTablePlus.vue.d.ts +4 -24
- package/dist/components/data-table-plus/index.d.ts +26 -9
- package/dist/components/preset-form/PresetForm.vue.d.ts +2 -1
- package/dist/components/preset-input/index.d.ts +3 -1
- package/dist/components/preset-select/PresetSelect.vue.d.ts +4 -18
- package/dist/components/preset-select/index.d.ts +18 -7
- package/dist/components/remote-request/RemoteRequest.vue.d.ts +3 -8
- package/dist/components/remote-request/index.d.ts +8 -1
- package/dist/components.cjs +4 -4
- package/dist/components.js +79 -71
- package/dist/components.umd.cjs +4 -4
- package/package.json +3 -3
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 fu, isRef as Xt, isReactive as Ro, watchEffect as Me, watch as je, computed as ge, nextTick as rn, normalizeClass as Fu, createElementVNode as Mu, 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 Lu, toDisplayString as Nu, onScopeDispose as an, onUnmounted as No, reactive as Su, toRefs as Io, h 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 fu, isRef as Xt, isReactive as Ro, watchEffect as Me, watch as je, computed as ge, nextTick as rn, normalizeClass as Fu, createElementVNode as Mu, 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 Lu, toDisplayString as Nu, onScopeDispose as an, onUnmounted as No, reactive as Su, toRefs as Io, h as he, createStaticVNode as zo, useTemplateRef as bt, Fragment as Ae, renderList as Ze, toRaw as Qt, 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 bu, 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 ct, NGi as st, NCollapseTransition as Or, NDataTable as bi, NPagination as Mr, NDropdown as mi, NForm as gi } from "naive-ui";
|
|
3
3
|
import { createEventHook as nt, useClipboard as xi, useTimeoutFn as ki, useDebounceFn as Lr } from "@vueuse/core";
|
|
4
4
|
function _i(e) {
|
|
@@ -454,7 +454,7 @@ Kt || (Kt = function(u, t, n) {
|
|
|
454
454
|
en || (en = function(u, t) {
|
|
455
455
|
return new u(...t);
|
|
456
456
|
});
|
|
457
|
-
const Xu = _e(Array.prototype.forEach), Ji = _e(Array.prototype.lastIndexOf), Vn = _e(Array.prototype.pop), _u = _e(Array.prototype.push), Ki = _e(Array.prototype.splice), rt = _e(String.prototype.toLowerCase), Rt = _e(String.prototype.toString), Zn = _e(String.prototype.match), vu = _e(String.prototype.replace), ea = _e(String.prototype.indexOf), ua = _e(String.prototype.trim), Se = _e(Object.prototype.hasOwnProperty),
|
|
457
|
+
const Xu = _e(Array.prototype.forEach), Ji = _e(Array.prototype.lastIndexOf), Vn = _e(Array.prototype.pop), _u = _e(Array.prototype.push), Ki = _e(Array.prototype.splice), rt = _e(String.prototype.toLowerCase), Rt = _e(String.prototype.toString), Zn = _e(String.prototype.match), vu = _e(String.prototype.replace), ea = _e(String.prototype.indexOf), ua = _e(String.prototype.trim), Se = _e(Object.prototype.hasOwnProperty), me = _e(RegExp.prototype.test), yu = ta(TypeError);
|
|
458
458
|
function _e(e) {
|
|
459
459
|
return function(u) {
|
|
460
460
|
u instanceof RegExp && (u.lastIndex = 0);
|
|
@@ -611,7 +611,7 @@ function Hr() {
|
|
|
611
611
|
ERB_EXPR: le,
|
|
612
612
|
TMPLIT_EXPR: S,
|
|
613
613
|
DATA_ATTR: q,
|
|
614
|
-
ARIA_ATTR:
|
|
614
|
+
ARIA_ATTR: be,
|
|
615
615
|
IS_SCRIPT_OR_DATA: ee,
|
|
616
616
|
ATTR_WHITESPACE: W,
|
|
617
617
|
CUSTOM_ELEMENT: C
|
|
@@ -734,8 +734,8 @@ function Hr() {
|
|
|
734
734
|
} catch {
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
|
-
const
|
|
738
|
-
return b && O &&
|
|
737
|
+
const fe = F.body || F.documentElement;
|
|
738
|
+
return b && O && fe.insertBefore(t.createTextNode(O), fe.childNodes[0] || null), au === Ie ? D.call(F, Ke ? "html" : "body")[0] : Ke ? F.documentElement : fe;
|
|
739
739
|
}, Mn = function(b) {
|
|
740
740
|
return w.call(
|
|
741
741
|
b.ownerDocument || b,
|
|
@@ -762,24 +762,24 @@ function Hr() {
|
|
|
762
762
|
if (ze(B.uponSanitizeElement, b, {
|
|
763
763
|
tagName: O,
|
|
764
764
|
allowedTags: T
|
|
765
|
-
}), Ge && b.hasChildNodes() && !Ln(b.firstElementChild) &&
|
|
765
|
+
}), Ge && b.hasChildNodes() && !Ln(b.firstElementChild) && me(/<[/\w!]/g, b.innerHTML) && me(/<[/\w!]/g, b.textContent) || b.nodeType === Au.progressingInstruction || Ge && b.nodeType === Au.comment && me(/<[/\w]/g, b.data))
|
|
766
766
|
return Pe(b), !0;
|
|
767
767
|
if (!T[O] || te[O]) {
|
|
768
|
-
if (!te[O] && zn(O) && (j.tagNameCheck instanceof RegExp &&
|
|
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
770
|
if (wt && !iu[O]) {
|
|
771
|
-
const K = p(b) || b.parentNode,
|
|
772
|
-
if (
|
|
773
|
-
const ue =
|
|
771
|
+
const K = p(b) || b.parentNode, fe = h(b) || b.childNodes;
|
|
772
|
+
if (fe && K) {
|
|
773
|
+
const ue = fe.length;
|
|
774
774
|
for (let ve = ue - 1; ve >= 0; --ve) {
|
|
775
|
-
const $e = E(
|
|
775
|
+
const $e = E(fe[ve], !0);
|
|
776
776
|
$e.__removalCount = (b.__removalCount || 0) + 1, K.insertBefore($e, y(b));
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
780
|
return Pe(b), !0;
|
|
781
781
|
}
|
|
782
|
-
return b instanceof c && !Fo(b) || (O === "noscript" || O === "noembed" || O === "noframes") &&
|
|
782
|
+
return b instanceof c && !Fo(b) || (O === "noscript" || O === "noembed" || O === "noframes") && me(/<\/no(script|embed|frames)/i, b.innerHTML) ? (Pe(b), !0) : (He && b.nodeType === Au.text && (F = b.textContent, Xu([J, le, S], (K) => {
|
|
783
783
|
F = vu(F, K, " ");
|
|
784
784
|
}), b.textContent !== F && (_u(u.removed, {
|
|
785
785
|
element: b.cloneNode()
|
|
@@ -787,21 +787,21 @@ 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 (!(tu && !Ce[F] &&
|
|
791
|
-
if (!(uu && be
|
|
790
|
+
if (!(tu && !Ce[F] && me(q, F))) {
|
|
791
|
+
if (!(uu && 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
|
|
795
795
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
796
796
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
797
|
-
!(zn(b) && (j.tagNameCheck instanceof RegExp &&
|
|
797
|
+
!(zn(b) && (j.tagNameCheck instanceof RegExp && me(j.tagNameCheck, b) || j.tagNameCheck instanceof Function && j.tagNameCheck(b)) && (j.attributeNameCheck instanceof RegExp && me(j.attributeNameCheck, F) || j.attributeNameCheck instanceof Function && j.attributeNameCheck(F)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
798
798
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
799
|
-
F === "is" && j.allowCustomizedBuiltInElements && (j.tagNameCheck instanceof RegExp &&
|
|
799
|
+
F === "is" && j.allowCustomizedBuiltInElements && (j.tagNameCheck instanceof RegExp && me(j.tagNameCheck, O) || j.tagNameCheck instanceof Function && j.tagNameCheck(O)))
|
|
800
800
|
) return !1;
|
|
801
801
|
} else if (!Ct[F]) {
|
|
802
|
-
if (!
|
|
802
|
+
if (!me(z, vu(O, W, ""))) {
|
|
803
803
|
if (!((F === "src" || F === "xlink:href" || F === "href") && b !== "script" && ea(O, "data:") === 0 && Dn[b])) {
|
|
804
|
-
if (!(nu && !
|
|
804
|
+
if (!(nu && !me(ee, vu(O, W, "")))) {
|
|
805
805
|
if (O)
|
|
806
806
|
return !1;
|
|
807
807
|
}
|
|
@@ -829,13 +829,13 @@ function Hr() {
|
|
|
829
829
|
};
|
|
830
830
|
let K = F.length;
|
|
831
831
|
for (; K--; ) {
|
|
832
|
-
const
|
|
832
|
+
const fe = F[K], {
|
|
833
833
|
name: ue,
|
|
834
834
|
namespaceURI: ve,
|
|
835
835
|
value: $e
|
|
836
|
-
} =
|
|
837
|
-
let
|
|
838
|
-
if (O.attrName = ku, O.attrValue =
|
|
836
|
+
} = fe, ku = ne(ue), Pt = $e;
|
|
837
|
+
let de = ue === "value" ? Pt : ua(Pt);
|
|
838
|
+
if (O.attrName = ku, O.attrValue = de, O.keepAttr = !0, O.forceKeepAttr = void 0, ze(B.uponSanitizeAttribute, b, O), de = O.attrValue, wn && (ku === "id" || ku === "name") && (su(ue, b), de = yo + de), Ge && me(/((--!?|])>)|<\/(style|title)/i, de)) {
|
|
839
839
|
su(ue, b);
|
|
840
840
|
continue;
|
|
841
841
|
}
|
|
@@ -845,32 +845,32 @@ function Hr() {
|
|
|
845
845
|
su(ue, b);
|
|
846
846
|
continue;
|
|
847
847
|
}
|
|
848
|
-
if (!Je &&
|
|
848
|
+
if (!Je && me(/\/>/i, de)) {
|
|
849
849
|
su(ue, b);
|
|
850
850
|
continue;
|
|
851
851
|
}
|
|
852
852
|
He && Xu([J, le, S], (Un) => {
|
|
853
|
-
|
|
853
|
+
de = vu(de, Un, " ");
|
|
854
854
|
});
|
|
855
855
|
const Bn = ne(b.nodeName);
|
|
856
|
-
if (!In(Bn, ku,
|
|
856
|
+
if (!In(Bn, ku, de)) {
|
|
857
857
|
su(ue, b);
|
|
858
858
|
continue;
|
|
859
859
|
}
|
|
860
860
|
if (g && typeof x == "object" && typeof x.getAttributeType == "function" && !ve)
|
|
861
861
|
switch (x.getAttributeType(Bn, ku)) {
|
|
862
862
|
case "TrustedHTML": {
|
|
863
|
-
|
|
863
|
+
de = g.createHTML(de);
|
|
864
864
|
break;
|
|
865
865
|
}
|
|
866
866
|
case "TrustedScriptURL": {
|
|
867
|
-
|
|
867
|
+
de = g.createScriptURL(de);
|
|
868
868
|
break;
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
|
-
if (
|
|
871
|
+
if (de !== Pt)
|
|
872
872
|
try {
|
|
873
|
-
ve ? b.setAttributeNS(ve, ue,
|
|
873
|
+
ve ? b.setAttributeNS(ve, ue, de) : b.setAttribute(ue, de), Tt(b) ? Pe(b) : Vn(u.removed);
|
|
874
874
|
} catch {
|
|
875
875
|
su(ue, b);
|
|
876
876
|
}
|
|
@@ -884,7 +884,7 @@ function Hr() {
|
|
|
884
884
|
ze(B.afterSanitizeShadowDOM, b, null);
|
|
885
885
|
};
|
|
886
886
|
return u.sanitize = function(L) {
|
|
887
|
-
let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, F = null, O = null, K = null,
|
|
887
|
+
let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, F = null, O = null, K = null, fe = null;
|
|
888
888
|
if (Dt = !L, Dt && (L = "<!-->"), typeof L != "string" && !Ln(L))
|
|
889
889
|
if (typeof L.toString == "function") {
|
|
890
890
|
if (L = L.toString(), typeof L != "string")
|
|
@@ -916,14 +916,14 @@ function Hr() {
|
|
|
916
916
|
return L;
|
|
917
917
|
if (ru) {
|
|
918
918
|
if (Uu)
|
|
919
|
-
for (
|
|
920
|
-
|
|
919
|
+
for (fe = P.call(F.ownerDocument); F.firstChild; )
|
|
920
|
+
fe.appendChild(F.firstChild);
|
|
921
921
|
else
|
|
922
|
-
|
|
923
|
-
return ($.shadowroot || $.shadowrootmode) && (
|
|
922
|
+
fe = F;
|
|
923
|
+
return ($.shadowroot || $.shadowrootmode) && (fe = I.call(n, fe, !0)), fe;
|
|
924
924
|
}
|
|
925
925
|
let ve = Ke ? F.outerHTML : F.innerHTML;
|
|
926
|
-
return Ke && T["!doctype"] && F.ownerDocument && F.ownerDocument.doctype && F.ownerDocument.doctype.name &&
|
|
926
|
+
return Ke && 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 && Xu([J, le, S], ($e) => {
|
|
928
928
|
ve = vu(ve, $e, " ");
|
|
929
929
|
}), g && qu ? g.createHTML(ve) : ve;
|
|
@@ -2559,7 +2559,7 @@ function M0(e, u, t, n) {
|
|
|
2559
2559
|
if (e.listIndent = e.blkIndent, e.blkIndent = P, e.tight = !0, e.tShift[c] = k - e.bMarks[c], e.sCount[c] = m, k >= r && e.isEmpty(c + 1) ? e.line = Math.min(e.line + 2, t) : e.md.block.tokenize(e, c, t, !0), (!e.tight || y) && (s = !1), y = e.line - c > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = le, e.tShift[c] = B, e.sCount[c] = J, e.tight = I, i = e.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), c = e.line, D[1] = c, c >= t || e.sCount[c] < e.blkIndent || e.sCount[c] - e.blkIndent >= 4)
|
|
2560
2560
|
break;
|
|
2561
2561
|
let S = !1;
|
|
2562
|
-
for (let q = 0,
|
|
2562
|
+
for (let q = 0, be = h.length; q < be; q++)
|
|
2563
2563
|
if (h[q](e, c, t, !0)) {
|
|
2564
2564
|
S = !0;
|
|
2565
2565
|
break;
|
|
@@ -4756,8 +4756,8 @@ function os() {
|
|
|
4756
4756
|
return;
|
|
4757
4757
|
var B = D[I], J = B.inside, le = !!B.lookbehind, S = !!B.greedy, q = B.alias;
|
|
4758
4758
|
if (S && !B.pattern.global) {
|
|
4759
|
-
var
|
|
4760
|
-
B.pattern = RegExp(B.pattern.source,
|
|
4759
|
+
var be = B.pattern.toString().match(/[imsuy]*$/)[0];
|
|
4760
|
+
B.pattern = RegExp(B.pattern.source, be + "g");
|
|
4761
4761
|
}
|
|
4762
4762
|
for (var ee = B.pattern || B, W = m.next, C = k; W !== p.tail && !(w && C >= w.reach); C += W.value.length, W = W.next) {
|
|
4763
4763
|
var z = W.value;
|
|
@@ -6448,8 +6448,8 @@ function En(e, u, t) {
|
|
|
6448
6448
|
[...t || [], ...r]
|
|
6449
6449
|
);
|
|
6450
6450
|
}
|
|
6451
|
-
function
|
|
6452
|
-
return u ?
|
|
6451
|
+
function pe(e, u, t) {
|
|
6452
|
+
return u ? he(ui, {
|
|
6453
6453
|
...t,
|
|
6454
6454
|
...typeof u == "string" ? { label: u } : typeof u == "boolean" ? {} : u
|
|
6455
6455
|
}, {
|
|
@@ -6583,38 +6583,46 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6583
6583
|
};
|
|
6584
6584
|
function r() {
|
|
6585
6585
|
const { type: o, props: a } = e.options ?? {};
|
|
6586
|
+
if (o === "button") {
|
|
6587
|
+
const { label: i, ...c } = a ?? {};
|
|
6588
|
+
return he(n[o], {
|
|
6589
|
+
...c
|
|
6590
|
+
}, {
|
|
6591
|
+
default: () => i
|
|
6592
|
+
});
|
|
6593
|
+
}
|
|
6586
6594
|
if (o === "checkbox") {
|
|
6587
6595
|
const { options: i, ...c } = a ?? {};
|
|
6588
|
-
return
|
|
6596
|
+
return he(n[o], {
|
|
6589
6597
|
value: e.value,
|
|
6590
6598
|
"onUpdate:value": (s) => {
|
|
6591
6599
|
t("update:value", s);
|
|
6592
6600
|
},
|
|
6593
6601
|
...c
|
|
6594
6602
|
}, {
|
|
6595
|
-
default: () => i?.map((s) =>
|
|
6603
|
+
default: () => i?.map((s) => he(pi, { ...s }))
|
|
6596
6604
|
});
|
|
6597
6605
|
}
|
|
6598
6606
|
if (o === "divider ") {
|
|
6599
6607
|
const { ...i } = a ?? {};
|
|
6600
|
-
return
|
|
6608
|
+
return he(n[o], {
|
|
6601
6609
|
...i
|
|
6602
6610
|
});
|
|
6603
6611
|
}
|
|
6604
6612
|
if (o === "radio") {
|
|
6605
6613
|
const { options: i, ...c } = a ?? {};
|
|
6606
|
-
return
|
|
6614
|
+
return he(n[o], {
|
|
6607
6615
|
value: e.value,
|
|
6608
6616
|
"onUpdate:value": (s) => {
|
|
6609
6617
|
t("update:value", s);
|
|
6610
6618
|
},
|
|
6611
6619
|
...c
|
|
6612
6620
|
}, {
|
|
6613
|
-
default: () => i?.map((s) =>
|
|
6621
|
+
default: () => i?.map((s) => he(hi, { ...s }))
|
|
6614
6622
|
});
|
|
6615
6623
|
}
|
|
6616
6624
|
if (o && n[o])
|
|
6617
|
-
return
|
|
6625
|
+
return he(n[o], {
|
|
6618
6626
|
value: e.value,
|
|
6619
6627
|
"onUpdate:value": (i) => {
|
|
6620
6628
|
t("update:value", i);
|
|
@@ -6776,7 +6784,7 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6776
6784
|
};
|
|
6777
6785
|
}
|
|
6778
6786
|
const q = G(!1);
|
|
6779
|
-
function
|
|
6787
|
+
function be(C, z) {
|
|
6780
6788
|
z && P({
|
|
6781
6789
|
[z]: C
|
|
6782
6790
|
});
|
|
@@ -6820,11 +6828,11 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6820
6828
|
span: 12
|
|
6821
6829
|
}, { ref_for: !0 }, V), {
|
|
6822
6830
|
default: M(() => [
|
|
6823
|
-
$ ? (R(), N(oe(v(
|
|
6824
|
-
|
|
6831
|
+
$ ? (R(), N(oe(v(pe)($(ee, W), Z, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
6832
|
+
he(v(Xe), {
|
|
6825
6833
|
options: j,
|
|
6826
6834
|
value: T ? v(d)[0][T] : void 0,
|
|
6827
|
-
"onUpdate:value": (Ce) =>
|
|
6835
|
+
"onUpdate:value": (Ce) => be(Ce, T)
|
|
6828
6836
|
}),
|
|
6829
6837
|
Z,
|
|
6830
6838
|
{ path: T, labelPlacement: "left" }
|
|
@@ -6838,11 +6846,11 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6838
6846
|
r.value.flex ? (R(), N(v(qe), ce(Q({ key: 1 }, C.filterFlexProps)), {
|
|
6839
6847
|
default: M(() => [
|
|
6840
6848
|
(R(!0), se(Ae, null, Ze(C.filterOptions?.filter((T) => !T.collapsed), ({ key: T, render: V, label: $, ...Z }, j) => (R(), se(Ae, { key: j }, [
|
|
6841
|
-
V ? (R(), N(oe(v(
|
|
6842
|
-
|
|
6849
|
+
V ? (R(), N(oe(v(pe)(V(ee, W), $, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
6850
|
+
he(v(Xe), {
|
|
6843
6851
|
options: Z,
|
|
6844
6852
|
value: T ? v(d)[0][T] : void 0,
|
|
6845
|
-
"onUpdate:value": (te) =>
|
|
6853
|
+
"onUpdate:value": (te) => be(te, T)
|
|
6846
6854
|
}),
|
|
6847
6855
|
$,
|
|
6848
6856
|
{ path: T, labelPlacement: "left" }
|
|
@@ -6877,11 +6885,11 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6877
6885
|
span: 12
|
|
6878
6886
|
}, { ref_for: !0 }, V), {
|
|
6879
6887
|
default: M(() => [
|
|
6880
|
-
$ ? (R(), N(oe(v(
|
|
6881
|
-
|
|
6888
|
+
$ ? (R(), N(oe(v(pe)($(ee, W), Z, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
6889
|
+
he(v(Xe), {
|
|
6882
6890
|
options: j,
|
|
6883
6891
|
value: T ? v(d)[0][T] : void 0,
|
|
6884
|
-
"onUpdate:value": (Ce) =>
|
|
6892
|
+
"onUpdate:value": (Ce) => be(Ce, T)
|
|
6885
6893
|
}),
|
|
6886
6894
|
Z,
|
|
6887
6895
|
{ path: T, labelPlacement: "left" }
|
|
@@ -6895,11 +6903,11 @@ const Fr = /* @__PURE__ */ _n(zl, [["render", Bl]]), Ul = /* @__PURE__ */ xe({
|
|
|
6895
6903
|
r.value.collapsedFlex ? (R(), N(v(qe), ce(Q({ key: 1 }, C.filterFlexProps)), {
|
|
6896
6904
|
default: M(() => [
|
|
6897
6905
|
(R(!0), se(Ae, null, Ze(C.filterOptions?.filter((T) => T.collapsed), ({ key: T, render: V, label: $, ...Z }, j) => (R(), se(Ae, { key: j }, [
|
|
6898
|
-
V ? (R(), N(oe(v(
|
|
6899
|
-
|
|
6906
|
+
V ? (R(), N(oe(v(pe)(V(ee, W), $, { path: T, labelPlacement: "left" })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
6907
|
+
he(v(Xe), {
|
|
6900
6908
|
options: Z,
|
|
6901
6909
|
value: T ? v(d)[0][T] : void 0,
|
|
6902
|
-
"onUpdate:value": (te) =>
|
|
6910
|
+
"onUpdate:value": (te) => be(te, T)
|
|
6903
6911
|
}),
|
|
6904
6912
|
$,
|
|
6905
6913
|
{ path: T, labelPlacement: "left" }
|
|
@@ -7123,8 +7131,8 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7123
7131
|
span: 12
|
|
7124
7132
|
}, { ref_for: !0 }, k), {
|
|
7125
7133
|
default: M(() => [
|
|
7126
|
-
w ? (R(), N(oe(v(
|
|
7127
|
-
|
|
7134
|
+
w ? (R(), N(oe(v(pe)(w(A, y), P, { path: m })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
7135
|
+
he(v(Xe), {
|
|
7128
7136
|
options: D,
|
|
7129
7137
|
value: m ? v(a)[m] : void 0,
|
|
7130
7138
|
"onUpdate:value": (B) => h(B, m)
|
|
@@ -7141,8 +7149,8 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7141
7149
|
r.value.flex ? (R(), N(v(qe), ce(Q({ key: 1 }, p.flexProps)), {
|
|
7142
7150
|
default: M(() => [
|
|
7143
7151
|
(R(!0), se(Ae, null, Ze(p.options?.filter((m) => !m.collapsed), ({ key: m, render: k, label: w, ...P }, D) => (R(), se(Ae, { key: D }, [
|
|
7144
|
-
k ? (R(), N(oe(v(
|
|
7145
|
-
|
|
7152
|
+
k ? (R(), N(oe(v(pe)(k(A, y), w, { path: m })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
7153
|
+
he(v(Xe), {
|
|
7146
7154
|
options: P,
|
|
7147
7155
|
value: m ? v(a)[m] : void 0,
|
|
7148
7156
|
"onUpdate:value": (I) => h(I, m)
|
|
@@ -7180,8 +7188,8 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7180
7188
|
span: 12
|
|
7181
7189
|
}, { ref_for: !0 }, k), {
|
|
7182
7190
|
default: M(() => [
|
|
7183
|
-
w ? (R(), N(oe(v(
|
|
7184
|
-
|
|
7191
|
+
w ? (R(), N(oe(v(pe)(w(A, y), P, { path: m })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
7192
|
+
he(v(Xe), {
|
|
7185
7193
|
options: D,
|
|
7186
7194
|
value: m ? v(a)[m] : void 0,
|
|
7187
7195
|
"onUpdate:value": (B) => h(B, m)
|
|
@@ -7198,8 +7206,8 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7198
7206
|
r.value.collapsedFlex ? (R(), N(v(qe), ce(Q({ key: 1 }, p.flexProps)), {
|
|
7199
7207
|
default: M(() => [
|
|
7200
7208
|
(R(!0), se(Ae, null, Ze(p.options?.filter((m) => m.collapsed), ({ key: m, render: k, label: w, ...P }, D) => (R(), se(Ae, { key: D }, [
|
|
7201
|
-
k ? (R(), N(oe(v(
|
|
7202
|
-
|
|
7209
|
+
k ? (R(), N(oe(v(pe)(k(A, y), w, { path: m })), { key: 0 })) : (R(), N(oe(v(pe)(
|
|
7210
|
+
he(v(Xe), {
|
|
7203
7211
|
options: P,
|
|
7204
7212
|
value: m ? v(a)[m] : void 0,
|
|
7205
7213
|
"onUpdate:value": (I) => h(I, m)
|
|
@@ -7273,8 +7281,8 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7273
7281
|
onError: (S, q) => {
|
|
7274
7282
|
e.requestOptions?.onError?.(S, q), n("error", S, q);
|
|
7275
7283
|
},
|
|
7276
|
-
onFinally: (S, q,
|
|
7277
|
-
e.requestOptions?.onFinally?.(S, q,
|
|
7284
|
+
onFinally: (S, q, be) => {
|
|
7285
|
+
e.requestOptions?.onFinally?.(S, q, be), n("finally", S, q, be);
|
|
7278
7286
|
}
|
|
7279
7287
|
}, e.requestPlugins), p = ge(() => s.value ? Array.isArray(s.value[o.list]) ? s.value[o.list] : (console.warn(`DataTablePlus: data[${o.list}] must be an array`), []) : []), g = ge(() => typeof e.optionFormat == "function" ? p.value.map((S) => e.optionFormat(S)).filter((S) => !!S) : p.value.map((S) => ({
|
|
7280
7288
|
[o.label]: S[o.label],
|
|
@@ -7311,8 +7319,8 @@ const Ql = /* @__PURE__ */ xe({
|
|
|
7311
7319
|
n("scroll", S);
|
|
7312
7320
|
},
|
|
7313
7321
|
onUpdateValue: (S, q) => {
|
|
7314
|
-
const
|
|
7315
|
-
n("update:value", S, q,
|
|
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, Qt(fu(be)));
|
|
7316
7324
|
},
|
|
7317
7325
|
onSearch: (S) => {
|
|
7318
7326
|
w.value = S, !f.value && (e.debounce ? P() : k({
|