@duxweb/dvha-naiveui 1.0.5 → 1.0.8
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/cjs/hooks/tab.cjs +1 -1
- package/dist/cjs/hooks/table.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_DataView.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_Hash.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_ListCache.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_Map.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_MapCache.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_Promise.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_Set.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_Stack.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_Symbol.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_Uint8Array.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_WeakMap.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_arrayEach.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_arrayFilter.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_arrayLikeKeys.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_arrayPush.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_assignValue.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_assocIndexOf.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_baseAssignValue.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_baseClone.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_baseCreate.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_baseGetAllKeys.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_baseGetTag.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_baseIsArguments.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_baseIsMap.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_baseIsNative.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_baseIsSet.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_baseIsTypedArray.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_baseKeys.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_baseTimes.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_baseUnary.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_cloneArrayBuffer.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_cloneBuffer.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_cloneDataView.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_cloneRegExp.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_cloneSymbol.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_cloneTypedArray.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_coreJsData.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_defineProperty.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_freeGlobal.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_getAllKeys.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_getMapData.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_getNative.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_getPrototype.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_getRawTag.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_getSymbols.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_getTag.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_getValue.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_hashClear.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_hashDelete.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_hashGet.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_hashHas.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_hashSet.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_initCloneArray.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_initCloneByTag.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_initCloneObject.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_isIndex.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_isKeyable.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_isMasked.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_isPrototype.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_listCacheClear.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_listCacheDelete.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_listCacheGet.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_listCacheHas.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_listCacheSet.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_mapCacheClear.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_mapCacheDelete.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_mapCacheGet.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_mapCacheHas.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_mapCacheSet.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_nativeCreate.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_nativeKeys.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_nodeUtil.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_objectToString.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_overArg.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_root.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_stackClear.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_stackDelete.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_stackGet.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_stackHas.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_stackSet.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/_toSource.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/cloneDeep.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/eq.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/isArguments.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/isArray.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/isArrayLike.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/isBuffer.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/isFunction.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/isLength.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/isMap.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/isObject.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/isObjectLike.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/isSet.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/isTypedArray.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/keys.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/stubArray.cjs +1 -1
- package/dist/cjs/node_modules/lodash-es/stubFalse.cjs +1 -1
- package/dist/cjs/node_modules/pinia/dist/pinia.cjs +5 -0
- package/dist/esm/hooks/tab.js +17 -14
- package/dist/esm/hooks/table.js +63 -112
- package/dist/esm/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +16 -16
- package/dist/esm/node_modules/pinia/dist/pinia.js +39 -0
- package/dist/types/hooks/tab.d.ts +500 -329
- package/dist/types/hooks/table.d.ts +7 -25
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./_root.cjs"),f=require("./stubFalse.cjs");var t=typeof exports=="object"&&exports&&!exports.nodeType&&exports,e=t&&typeof module=="object"&&module&&!module.nodeType&&module,o=e&&e.exports===t,r=o?u.default.Buffer:void 0,a=r?r.isBuffer:void 0,d=a||f.default;exports.default=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./_baseGetTag.cjs"),o=require("./isObject.cjs");var r="[object AsyncFunction]",u="[object Function]",a="[object GeneratorFunction]",c="[object Proxy]";function i(t){if(!o.default(t))return!1;var e=n.default(t);return e==u||e==a||e==r||e==c}exports.default=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t=9007199254740991;function r(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t}exports.default=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./_baseIsMap.cjs"),r=require("./_baseUnary.cjs"),e=require("./_nodeUtil.cjs");var a=e.default&&e.default.isMap,u=a?r.default(a):t.default;exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function u(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function e
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function t(e){return e!=null&&typeof e=="object"}exports.default=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./_baseIsSet.cjs"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./_baseIsSet.cjs"),u=require("./_baseUnary.cjs"),e=require("./_nodeUtil.cjs");var t=e.default&&e.default.isSet,a=t?u.default(t):r.default;exports.default=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./_baseIsTypedArray.cjs"),t=require("./_baseUnary.cjs"),e=require("./_nodeUtil.cjs");var r=e.default&&e.default.isTypedArray,d=r?t.default(r):a.default;exports.default=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./_arrayLikeKeys.cjs"),u=require("./_baseKeys.cjs"),t=require("./isArrayLike.cjs");function s(e){return t.default(e)?r.default(e):u.default(e)}exports.default=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function e(){return[]}exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function e(){return!1}exports.default=e;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../vue/dist/vue.runtime.esm-bundler.cjs");const o=require("../../@vue/reactivity/dist/reactivity.esm-bundler.cjs"),s=require("../../@vue/runtime-core/dist/runtime-core.esm-bundler.cjs");/*!
|
|
2
|
+
* pinia v3.0.3
|
|
3
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();exports.MutationType=void 0;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(exports.MutationType||(exports.MutationType={}));process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function u(e){const c=o.toRaw(e),i={};for(const t in c){const n=c[t];n.effect?i[t]=s.computed({get:()=>e[t],set(r){e[t]=r}}):(o.isRef(n)||o.isReactive(n))&&(i[t]=o.toRef(e,t))}return i}exports.storeToRefs=u;
|
package/dist/esm/hooks/tab.js
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
|
-
import { useTabStore as
|
|
1
|
+
import { useTabStore as p } from "@duxweb/dvha-core";
|
|
2
|
+
import { storeToRefs as n } from "../node_modules/pinia/dist/pinia.js";
|
|
2
3
|
import "../node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
3
|
-
import { useRouter as
|
|
4
|
-
import { computed as
|
|
5
|
-
function
|
|
6
|
-
const
|
|
7
|
-
value: t.
|
|
8
|
-
defaultValue: t.
|
|
4
|
+
import { useRouter as m } from "../node_modules/vue-router/dist/vue-router.js";
|
|
5
|
+
import { computed as c } from "../node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
6
|
+
function T() {
|
|
7
|
+
const o = p(), { tabs: u, current: t } = n(o), a = m(), s = c(() => ({
|
|
8
|
+
value: t.value,
|
|
9
|
+
defaultValue: t.value || "",
|
|
9
10
|
onClose: (e) => {
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
o.delTab(e, (r) => {
|
|
12
|
+
a.push(r.path || "");
|
|
12
13
|
});
|
|
13
14
|
},
|
|
14
15
|
onUpdateValue: (e) => {
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
o.changeTab(e, (r) => {
|
|
17
|
+
a.push(r.path || "");
|
|
17
18
|
});
|
|
18
19
|
}
|
|
19
20
|
}));
|
|
20
21
|
return {
|
|
21
|
-
...
|
|
22
|
-
|
|
22
|
+
...o,
|
|
23
|
+
tabs: u,
|
|
24
|
+
current: t,
|
|
25
|
+
tabsProps: s
|
|
23
26
|
};
|
|
24
27
|
}
|
|
25
28
|
export {
|
|
26
|
-
|
|
29
|
+
T as useNaiveTab
|
|
27
30
|
};
|
package/dist/esm/hooks/table.js
CHANGED
|
@@ -1,132 +1,83 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useExtendList as x } from "@duxweb/dvha-core";
|
|
2
2
|
import "../node_modules/vue/dist/vue.runtime.esm-bundler.js";
|
|
3
|
-
import { debouncedWatch as
|
|
4
|
-
import
|
|
5
|
-
import { toRef as
|
|
6
|
-
import { watch as
|
|
7
|
-
function
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}, {
|
|
12
|
-
deep: !0
|
|
13
|
-
});
|
|
14
|
-
const l = U(typeof n.pagination == "object" ? n.pagination : {
|
|
15
|
-
page: 1,
|
|
16
|
-
pageSize: 20
|
|
17
|
-
}), c = s([]), d = s({}), i = s({}), g = s([]), u = s({
|
|
18
|
-
...f.value,
|
|
19
|
-
...i.value
|
|
3
|
+
import { debouncedWatch as z } from "../node_modules/@vueuse/shared/index.js";
|
|
4
|
+
import E from "../node_modules/lodash-es/cloneDeep.js";
|
|
5
|
+
import { toRef as f, ref as u } from "../node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js";
|
|
6
|
+
import { watch as C, computed as d } from "../node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
7
|
+
function L(r) {
|
|
8
|
+
const p = f(r, "filters", {}), v = f(r, "sorters", {}), l = u({}), i = u([]), c = u({
|
|
9
|
+
...p.value,
|
|
10
|
+
...l.value
|
|
20
11
|
});
|
|
21
|
-
|
|
22
|
-
Object.keys(
|
|
23
|
-
delete
|
|
24
|
-
}), Object.assign(
|
|
12
|
+
z([p, l], ([e, t]) => {
|
|
13
|
+
Object.keys(c.value).forEach((n) => {
|
|
14
|
+
delete c.value[n];
|
|
15
|
+
}), Object.assign(c.value, e, t);
|
|
25
16
|
}, {
|
|
26
17
|
debounce: 300,
|
|
27
18
|
deep: !0
|
|
28
|
-
}), h(u, () => {
|
|
29
|
-
c.value = [];
|
|
30
19
|
});
|
|
31
|
-
const {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} =
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
filters: u.value,
|
|
39
|
-
sorters: d.value
|
|
40
|
-
}), m = r(() => {
|
|
41
|
-
var e, t;
|
|
42
|
-
return Math.ceil(((t = (e = v.value) == null ? void 0 : e.meta) == null ? void 0 : t[n.totalField || "total"]) / l.value.pageSize) || 0;
|
|
43
|
-
}), p = s([]);
|
|
44
|
-
h(() => n.columns, (e) => {
|
|
45
|
-
p.value = e;
|
|
20
|
+
const o = x({
|
|
21
|
+
...r,
|
|
22
|
+
filters: c.value,
|
|
23
|
+
sorters: v.value
|
|
24
|
+
}), s = u([]);
|
|
25
|
+
C(() => r.columns, (e) => {
|
|
26
|
+
s.value = e;
|
|
46
27
|
}, {
|
|
47
28
|
immediate: !0
|
|
48
29
|
});
|
|
49
|
-
const
|
|
50
|
-
var
|
|
51
|
-
const t = (
|
|
52
|
-
|
|
53
|
-
}, b = (e) => {
|
|
54
|
-
c.value = e;
|
|
55
|
-
}, S = (e) => {
|
|
56
|
-
const t = Array.isArray(e) ? e : [e], o = {
|
|
57
|
-
...d.value
|
|
58
|
-
};
|
|
59
|
-
t == null || t.forEach((a) => {
|
|
60
|
-
a != null && a.columnKey && (a.order ? o[a.columnKey] = a.order === "ascend" ? "asc" : "desc" : delete o[a.columnKey]);
|
|
61
|
-
}), d.value = o;
|
|
30
|
+
const g = d(() => s.value.filter((e) => e.show !== !1 && "key" in e).map((e) => e.key)), h = (e) => {
|
|
31
|
+
var n;
|
|
32
|
+
const t = (n = E(r.columns)) == null ? void 0 : n.map((a) => (!("key" in a) || !(a != null && a.key) || !("title" in a) || !(a != null && a.title) || e.includes(a.key) || (a.show = !1), a));
|
|
33
|
+
s.value = [...t];
|
|
62
34
|
}, w = (e) => {
|
|
35
|
+
o.checkeds.value = e;
|
|
36
|
+
}, y = (e) => {
|
|
37
|
+
const t = Array.isArray(e) ? e : [e], n = {};
|
|
38
|
+
t == null || t.forEach((a) => {
|
|
39
|
+
a != null && a.columnKey && a.order && (n[a.columnKey] = a.order === "ascend" ? "asc" : "desc");
|
|
40
|
+
}), o.onUpdateSorters(n);
|
|
41
|
+
}, k = (e) => {
|
|
63
42
|
const t = {
|
|
64
|
-
...
|
|
43
|
+
...l.value
|
|
65
44
|
};
|
|
66
|
-
Object.entries(e).forEach(([
|
|
67
|
-
t[
|
|
68
|
-
}),
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
page: l.value.page,
|
|
77
|
-
pageSize: l.value.pageSize,
|
|
78
|
-
pageCount: m.value,
|
|
79
|
-
pageSizes: [10, 20, 30, 40, 50],
|
|
45
|
+
Object.entries(e).forEach(([n, a]) => {
|
|
46
|
+
t[n] = a;
|
|
47
|
+
}), l.value = t;
|
|
48
|
+
}, S = (e) => {
|
|
49
|
+
i.value = e;
|
|
50
|
+
}, U = d(() => ({
|
|
51
|
+
page: o.page.value,
|
|
52
|
+
pageSize: o.pageSize.value,
|
|
53
|
+
pageCount: o.pageCount.value,
|
|
54
|
+
pageSizes: o.pageSizes,
|
|
80
55
|
pageSlot: 5,
|
|
81
|
-
onUpdatePage:
|
|
82
|
-
onUpdatePageSize:
|
|
56
|
+
onUpdatePage: o.onUpdatePage,
|
|
57
|
+
onUpdatePageSize: o.onUpdatePageSize,
|
|
83
58
|
showSizePicker: !0,
|
|
84
59
|
showQuickJumper: !0
|
|
85
|
-
})),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
columns: p.value.filter((t) => t.show !== !1)
|
|
98
|
-
};
|
|
99
|
-
}), P = r(() => {
|
|
100
|
-
var e;
|
|
101
|
-
return ((e = v.value) == null ? void 0 : e.data) || [];
|
|
102
|
-
}), j = r(() => {
|
|
103
|
-
var e;
|
|
104
|
-
return ((e = v.value) == null ? void 0 : e.meta) || {};
|
|
105
|
-
});
|
|
60
|
+
})), b = d(() => ({
|
|
61
|
+
remote: !0,
|
|
62
|
+
checkedRowKeys: o.checkeds.value,
|
|
63
|
+
expandedRowKeys: i.value,
|
|
64
|
+
onUpdateCheckedRowKeys: w,
|
|
65
|
+
onUpdateExpandedRowKeys: S,
|
|
66
|
+
onUpdateSorter: y,
|
|
67
|
+
onUpdateFilters: k,
|
|
68
|
+
loading: o.isLoading.value,
|
|
69
|
+
data: o.list.value,
|
|
70
|
+
columns: s.value.filter((e) => e.show !== !1)
|
|
71
|
+
}));
|
|
106
72
|
return {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
columnSelected: C,
|
|
114
|
-
tableCheckeds: c,
|
|
115
|
-
tableExpanded: g,
|
|
116
|
-
tableFilters: i,
|
|
117
|
-
tableSorters: d,
|
|
118
|
-
onRefresh: () => {
|
|
119
|
-
c.value = [], z();
|
|
120
|
-
},
|
|
121
|
-
onUpdateColumnSelected: K,
|
|
122
|
-
onUpdateChecked: b,
|
|
123
|
-
onUpdateExpanded: k,
|
|
124
|
-
onUpdateSorter: S,
|
|
125
|
-
onUpdateFilter: w,
|
|
126
|
-
dataFilters: u,
|
|
127
|
-
dataSorters: d
|
|
73
|
+
...o,
|
|
74
|
+
tablePagination: U,
|
|
75
|
+
table: b,
|
|
76
|
+
columns: s,
|
|
77
|
+
columnSelected: g,
|
|
78
|
+
onUpdateColumnSelected: h
|
|
128
79
|
};
|
|
129
80
|
}
|
|
130
81
|
export {
|
|
131
|
-
|
|
82
|
+
L as useNaiveTable
|
|
132
83
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isFunction as $, isObject as P, EMPTY_OBJ as We,
|
|
1
|
+
import { isFunction as $, isObject as P, EMPTY_OBJ as We, hasChanged as m, isArray as x, extend as ne, toRawType as Ee, isSymbol as B, hasOwn as oe, isIntegerKey as ue, isMap as j, makeMap as He, capitalize as Ce, NOOP as $e, isSet as Ye, isPlainObject as ze } from "../../shared/dist/shared.esm-bundler.js";
|
|
2
2
|
/**
|
|
3
3
|
* @vue/reactivity v3.5.14
|
|
4
4
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -123,7 +123,7 @@ function Re(e) {
|
|
|
123
123
|
try {
|
|
124
124
|
De(e);
|
|
125
125
|
const i = e.fn(e._value);
|
|
126
|
-
(t.version === 0 ||
|
|
126
|
+
(t.version === 0 || m(i, e._value)) && (e.flags |= 128, e._value = i, t.version++);
|
|
127
127
|
} catch (i) {
|
|
128
128
|
throw t.version++, i;
|
|
129
129
|
} finally {
|
|
@@ -266,7 +266,7 @@ function N(e, t, s, r, i, n) {
|
|
|
266
266
|
if (he(), t === "clear")
|
|
267
267
|
o.forEach(a);
|
|
268
268
|
else {
|
|
269
|
-
const c =
|
|
269
|
+
const c = x(e), p = c && ue(s);
|
|
270
270
|
if (c && s === "length") {
|
|
271
271
|
const _ = Number(r);
|
|
272
272
|
o.forEach((f, d) => {
|
|
@@ -305,7 +305,7 @@ const Qe = {
|
|
|
305
305
|
},
|
|
306
306
|
concat(...e) {
|
|
307
307
|
return A(this).concat(
|
|
308
|
-
...e.map((t) =>
|
|
308
|
+
...e.map((t) => x(t) ? A(t) : t)
|
|
309
309
|
);
|
|
310
310
|
},
|
|
311
311
|
entries() {
|
|
@@ -455,7 +455,7 @@ class Ie {
|
|
|
455
455
|
return r === (i ? n ? at : je : n ? ot : Ae).get(t) || // receiver is not the reactive proxy, but has the same prototype
|
|
456
456
|
// this means the receiver is a user proxy of the reactive proxy
|
|
457
457
|
Object.getPrototypeOf(t) === Object.getPrototypeOf(r) ? t : void 0;
|
|
458
|
-
const o =
|
|
458
|
+
const o = x(t);
|
|
459
459
|
if (!i) {
|
|
460
460
|
let c;
|
|
461
461
|
if (o && (c = Qe[s]))
|
|
@@ -482,16 +482,16 @@ class Ze extends Ie {
|
|
|
482
482
|
let n = t[s];
|
|
483
483
|
if (!this._isShallow) {
|
|
484
484
|
const c = I(n);
|
|
485
|
-
if (!E(r) && !I(r) && (n = h(n), r = h(r)), !
|
|
485
|
+
if (!E(r) && !I(r) && (n = h(n), r = h(r)), !x(t) && b(n) && !b(r))
|
|
486
486
|
return c ? !1 : (n.value = r, !0);
|
|
487
487
|
}
|
|
488
|
-
const o =
|
|
488
|
+
const o = x(t) && ue(s) ? Number(s) < t.length : oe(t, s), a = Reflect.set(
|
|
489
489
|
t,
|
|
490
490
|
s,
|
|
491
491
|
r,
|
|
492
492
|
b(t) ? t : i
|
|
493
493
|
);
|
|
494
|
-
return t === h(i) && (o ?
|
|
494
|
+
return t === h(i) && (o ? m(r, n) && N(t, "set", s, r, n) : N(t, "add", s, r)), a;
|
|
495
495
|
}
|
|
496
496
|
deleteProperty(t, s) {
|
|
497
497
|
const r = oe(t, s), i = t[s], n = Reflect.deleteProperty(t, s);
|
|
@@ -505,7 +505,7 @@ class Ze extends Ie {
|
|
|
505
505
|
return g(
|
|
506
506
|
t,
|
|
507
507
|
"iterate",
|
|
508
|
-
|
|
508
|
+
x(t) ? "length" : V
|
|
509
509
|
), Reflect.ownKeys(t);
|
|
510
510
|
}
|
|
511
511
|
}
|
|
@@ -566,7 +566,7 @@ function it(e, t) {
|
|
|
566
566
|
const s = {
|
|
567
567
|
get(i) {
|
|
568
568
|
const n = this.__v_raw, o = h(n), a = h(i);
|
|
569
|
-
e || (
|
|
569
|
+
e || (m(i, a) && g(o, "get", i), g(o, "get", a));
|
|
570
570
|
const { has: c } = U(o), p = t ? fe : e ? le : v;
|
|
571
571
|
if (c.call(o, i))
|
|
572
572
|
return p(n.get(i));
|
|
@@ -580,7 +580,7 @@ function it(e, t) {
|
|
|
580
580
|
},
|
|
581
581
|
has(i) {
|
|
582
582
|
const n = this.__v_raw, o = h(n), a = h(i);
|
|
583
|
-
return e || (
|
|
583
|
+
return e || (m(i, a) && g(o, "has", i), g(o, "has", a)), i === a ? n.has(i) : n.has(i) || n.has(a);
|
|
584
584
|
},
|
|
585
585
|
forEach(i, n) {
|
|
586
586
|
const o = this, a = o.__v_raw, c = h(a), p = t ? fe : e ? le : v;
|
|
@@ -606,7 +606,7 @@ function it(e, t) {
|
|
|
606
606
|
let p = a.call(o, i);
|
|
607
607
|
p ? process.env.NODE_ENV !== "production" && we(o, a, i) : (i = h(i), p = a.call(o, i));
|
|
608
608
|
const _ = c.call(o, i);
|
|
609
|
-
return o.set(i, n), p ?
|
|
609
|
+
return o.set(i, n), p ? m(n, _) && N(o, "set", i, n, _) : N(o, "add", i, n), this;
|
|
610
610
|
},
|
|
611
611
|
delete(i) {
|
|
612
612
|
const n = h(this), { has: o, get: a } = U(n);
|
|
@@ -753,7 +753,7 @@ class pt {
|
|
|
753
753
|
}
|
|
754
754
|
set value(t) {
|
|
755
755
|
const s = this._rawValue, r = this.__v_isShallow || E(t) || I(t);
|
|
756
|
-
t = r ? t : h(t),
|
|
756
|
+
t = r ? t : h(t), m(t, s) && (this._rawValue = t, this._value = r ? t : v(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
|
|
757
757
|
target: this,
|
|
758
758
|
type: "set",
|
|
759
759
|
key: "value",
|
|
@@ -848,7 +848,7 @@ function Nt(e, t, s = We) {
|
|
|
848
848
|
);
|
|
849
849
|
}, _ = (l) => i ? l : E(l) || i === !1 || i === 0 ? R(l, 1) : R(l);
|
|
850
850
|
let f, d, K, F, G = !1, J = !1;
|
|
851
|
-
if (b(e) ? (d = () => e.value, G = E(e)) : Z(e) ? (d = () => _(e), G = !0) :
|
|
851
|
+
if (b(e) ? (d = () => e.value, G = E(e)) : Z(e) ? (d = () => _(e), G = !0) : x(e) ? (J = !0, G = e.some((l) => Z(l) || E(l)), d = () => e.map((l) => {
|
|
852
852
|
if (b(l))
|
|
853
853
|
return l.value;
|
|
854
854
|
if (Z(l))
|
|
@@ -890,7 +890,7 @@ function Nt(e, t, s = We) {
|
|
|
890
890
|
if (!(!(f.flags & 1) || !f.dirty && !l))
|
|
891
891
|
if (t) {
|
|
892
892
|
const S = f.run();
|
|
893
|
-
if (i || G || (J ? S.some((te, Q) =>
|
|
893
|
+
if (i || G || (J ? S.some((te, Q) => m(te, O[Q])) : m(S, O))) {
|
|
894
894
|
K && K();
|
|
895
895
|
const te = T;
|
|
896
896
|
T = f;
|
|
@@ -928,7 +928,7 @@ function R(e, t = 1 / 0, s) {
|
|
|
928
928
|
return e;
|
|
929
929
|
if (s.add(e), t--, b(e))
|
|
930
930
|
R(e.value, t, s);
|
|
931
|
-
else if (
|
|
931
|
+
else if (x(e))
|
|
932
932
|
for (let r = 0; r < e.length; r++)
|
|
933
933
|
R(e[r], t, s);
|
|
934
934
|
else if (Ye(e) || j(e))
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import "../../vue/dist/vue.runtime.esm-bundler.js";
|
|
2
|
+
import { toRaw as p, isRef as f, isReactive as s, toRef as a } from "../../@vue/reactivity/dist/reactivity.esm-bundler.js";
|
|
3
|
+
import { computed as m } from "../../@vue/runtime-core/dist/runtime-core.esm-bundler.js";
|
|
4
|
+
/*!
|
|
5
|
+
* pinia v3.0.3
|
|
6
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
7
|
+
* @license MIT
|
|
8
|
+
*/
|
|
9
|
+
process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
10
|
+
/* istanbul ignore next */
|
|
11
|
+
Symbol()
|
|
12
|
+
);
|
|
13
|
+
var n;
|
|
14
|
+
(function(o) {
|
|
15
|
+
o.direct = "direct", o.patchObject = "patch object", o.patchFunction = "patch function";
|
|
16
|
+
})(n || (n = {}));
|
|
17
|
+
process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
18
|
+
/* istanbul ignore next */
|
|
19
|
+
Symbol()
|
|
20
|
+
);
|
|
21
|
+
function l(o) {
|
|
22
|
+
const i = p(o), c = {};
|
|
23
|
+
for (const t in i) {
|
|
24
|
+
const e = i[t];
|
|
25
|
+
e.effect ? c[t] = // ...
|
|
26
|
+
m({
|
|
27
|
+
get: () => o[t],
|
|
28
|
+
set(r) {
|
|
29
|
+
o[t] = r;
|
|
30
|
+
}
|
|
31
|
+
}) : (f(e) || s(e)) && (c[t] = // ---
|
|
32
|
+
a(o, t));
|
|
33
|
+
}
|
|
34
|
+
return c;
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
n as MutationType,
|
|
38
|
+
l as storeToRefs
|
|
39
|
+
};
|