@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.
Files changed (107) hide show
  1. package/dist/cjs/hooks/tab.cjs +1 -1
  2. package/dist/cjs/hooks/table.cjs +1 -1
  3. package/dist/cjs/node_modules/lodash-es/_DataView.cjs +1 -1
  4. package/dist/cjs/node_modules/lodash-es/_Hash.cjs +1 -1
  5. package/dist/cjs/node_modules/lodash-es/_ListCache.cjs +1 -1
  6. package/dist/cjs/node_modules/lodash-es/_Map.cjs +1 -1
  7. package/dist/cjs/node_modules/lodash-es/_MapCache.cjs +1 -1
  8. package/dist/cjs/node_modules/lodash-es/_Promise.cjs +1 -1
  9. package/dist/cjs/node_modules/lodash-es/_Set.cjs +1 -1
  10. package/dist/cjs/node_modules/lodash-es/_Stack.cjs +1 -1
  11. package/dist/cjs/node_modules/lodash-es/_Symbol.cjs +1 -1
  12. package/dist/cjs/node_modules/lodash-es/_Uint8Array.cjs +1 -1
  13. package/dist/cjs/node_modules/lodash-es/_WeakMap.cjs +1 -1
  14. package/dist/cjs/node_modules/lodash-es/_arrayEach.cjs +1 -1
  15. package/dist/cjs/node_modules/lodash-es/_arrayFilter.cjs +1 -1
  16. package/dist/cjs/node_modules/lodash-es/_arrayLikeKeys.cjs +1 -1
  17. package/dist/cjs/node_modules/lodash-es/_arrayPush.cjs +1 -1
  18. package/dist/cjs/node_modules/lodash-es/_assignValue.cjs +1 -1
  19. package/dist/cjs/node_modules/lodash-es/_assocIndexOf.cjs +1 -1
  20. package/dist/cjs/node_modules/lodash-es/_baseAssignValue.cjs +1 -1
  21. package/dist/cjs/node_modules/lodash-es/_baseClone.cjs +1 -1
  22. package/dist/cjs/node_modules/lodash-es/_baseCreate.cjs +1 -1
  23. package/dist/cjs/node_modules/lodash-es/_baseGetAllKeys.cjs +1 -1
  24. package/dist/cjs/node_modules/lodash-es/_baseGetTag.cjs +1 -1
  25. package/dist/cjs/node_modules/lodash-es/_baseIsArguments.cjs +1 -1
  26. package/dist/cjs/node_modules/lodash-es/_baseIsMap.cjs +1 -1
  27. package/dist/cjs/node_modules/lodash-es/_baseIsNative.cjs +1 -1
  28. package/dist/cjs/node_modules/lodash-es/_baseIsSet.cjs +1 -1
  29. package/dist/cjs/node_modules/lodash-es/_baseIsTypedArray.cjs +1 -1
  30. package/dist/cjs/node_modules/lodash-es/_baseKeys.cjs +1 -1
  31. package/dist/cjs/node_modules/lodash-es/_baseTimes.cjs +1 -1
  32. package/dist/cjs/node_modules/lodash-es/_baseUnary.cjs +1 -1
  33. package/dist/cjs/node_modules/lodash-es/_cloneArrayBuffer.cjs +1 -1
  34. package/dist/cjs/node_modules/lodash-es/_cloneBuffer.cjs +1 -1
  35. package/dist/cjs/node_modules/lodash-es/_cloneDataView.cjs +1 -1
  36. package/dist/cjs/node_modules/lodash-es/_cloneRegExp.cjs +1 -1
  37. package/dist/cjs/node_modules/lodash-es/_cloneSymbol.cjs +1 -1
  38. package/dist/cjs/node_modules/lodash-es/_cloneTypedArray.cjs +1 -1
  39. package/dist/cjs/node_modules/lodash-es/_coreJsData.cjs +1 -1
  40. package/dist/cjs/node_modules/lodash-es/_defineProperty.cjs +1 -1
  41. package/dist/cjs/node_modules/lodash-es/_freeGlobal.cjs +1 -1
  42. package/dist/cjs/node_modules/lodash-es/_getAllKeys.cjs +1 -1
  43. package/dist/cjs/node_modules/lodash-es/_getMapData.cjs +1 -1
  44. package/dist/cjs/node_modules/lodash-es/_getNative.cjs +1 -1
  45. package/dist/cjs/node_modules/lodash-es/_getPrototype.cjs +1 -1
  46. package/dist/cjs/node_modules/lodash-es/_getRawTag.cjs +1 -1
  47. package/dist/cjs/node_modules/lodash-es/_getSymbols.cjs +1 -1
  48. package/dist/cjs/node_modules/lodash-es/_getTag.cjs +1 -1
  49. package/dist/cjs/node_modules/lodash-es/_getValue.cjs +1 -1
  50. package/dist/cjs/node_modules/lodash-es/_hashClear.cjs +1 -1
  51. package/dist/cjs/node_modules/lodash-es/_hashDelete.cjs +1 -1
  52. package/dist/cjs/node_modules/lodash-es/_hashGet.cjs +1 -1
  53. package/dist/cjs/node_modules/lodash-es/_hashHas.cjs +1 -1
  54. package/dist/cjs/node_modules/lodash-es/_hashSet.cjs +1 -1
  55. package/dist/cjs/node_modules/lodash-es/_initCloneArray.cjs +1 -1
  56. package/dist/cjs/node_modules/lodash-es/_initCloneByTag.cjs +1 -1
  57. package/dist/cjs/node_modules/lodash-es/_initCloneObject.cjs +1 -1
  58. package/dist/cjs/node_modules/lodash-es/_isIndex.cjs +1 -1
  59. package/dist/cjs/node_modules/lodash-es/_isKeyable.cjs +1 -1
  60. package/dist/cjs/node_modules/lodash-es/_isMasked.cjs +1 -1
  61. package/dist/cjs/node_modules/lodash-es/_isPrototype.cjs +1 -1
  62. package/dist/cjs/node_modules/lodash-es/_listCacheClear.cjs +1 -1
  63. package/dist/cjs/node_modules/lodash-es/_listCacheDelete.cjs +1 -1
  64. package/dist/cjs/node_modules/lodash-es/_listCacheGet.cjs +1 -1
  65. package/dist/cjs/node_modules/lodash-es/_listCacheHas.cjs +1 -1
  66. package/dist/cjs/node_modules/lodash-es/_listCacheSet.cjs +1 -1
  67. package/dist/cjs/node_modules/lodash-es/_mapCacheClear.cjs +1 -1
  68. package/dist/cjs/node_modules/lodash-es/_mapCacheDelete.cjs +1 -1
  69. package/dist/cjs/node_modules/lodash-es/_mapCacheGet.cjs +1 -1
  70. package/dist/cjs/node_modules/lodash-es/_mapCacheHas.cjs +1 -1
  71. package/dist/cjs/node_modules/lodash-es/_mapCacheSet.cjs +1 -1
  72. package/dist/cjs/node_modules/lodash-es/_nativeCreate.cjs +1 -1
  73. package/dist/cjs/node_modules/lodash-es/_nativeKeys.cjs +1 -1
  74. package/dist/cjs/node_modules/lodash-es/_nodeUtil.cjs +1 -1
  75. package/dist/cjs/node_modules/lodash-es/_objectToString.cjs +1 -1
  76. package/dist/cjs/node_modules/lodash-es/_overArg.cjs +1 -1
  77. package/dist/cjs/node_modules/lodash-es/_root.cjs +1 -1
  78. package/dist/cjs/node_modules/lodash-es/_stackClear.cjs +1 -1
  79. package/dist/cjs/node_modules/lodash-es/_stackDelete.cjs +1 -1
  80. package/dist/cjs/node_modules/lodash-es/_stackGet.cjs +1 -1
  81. package/dist/cjs/node_modules/lodash-es/_stackHas.cjs +1 -1
  82. package/dist/cjs/node_modules/lodash-es/_stackSet.cjs +1 -1
  83. package/dist/cjs/node_modules/lodash-es/_toSource.cjs +1 -1
  84. package/dist/cjs/node_modules/lodash-es/cloneDeep.cjs +1 -1
  85. package/dist/cjs/node_modules/lodash-es/eq.cjs +1 -1
  86. package/dist/cjs/node_modules/lodash-es/isArguments.cjs +1 -1
  87. package/dist/cjs/node_modules/lodash-es/isArray.cjs +1 -1
  88. package/dist/cjs/node_modules/lodash-es/isArrayLike.cjs +1 -1
  89. package/dist/cjs/node_modules/lodash-es/isBuffer.cjs +1 -1
  90. package/dist/cjs/node_modules/lodash-es/isFunction.cjs +1 -1
  91. package/dist/cjs/node_modules/lodash-es/isLength.cjs +1 -1
  92. package/dist/cjs/node_modules/lodash-es/isMap.cjs +1 -1
  93. package/dist/cjs/node_modules/lodash-es/isObject.cjs +1 -1
  94. package/dist/cjs/node_modules/lodash-es/isObjectLike.cjs +1 -1
  95. package/dist/cjs/node_modules/lodash-es/isSet.cjs +1 -1
  96. package/dist/cjs/node_modules/lodash-es/isTypedArray.cjs +1 -1
  97. package/dist/cjs/node_modules/lodash-es/keys.cjs +1 -1
  98. package/dist/cjs/node_modules/lodash-es/stubArray.cjs +1 -1
  99. package/dist/cjs/node_modules/lodash-es/stubFalse.cjs +1 -1
  100. package/dist/cjs/node_modules/pinia/dist/pinia.cjs +5 -0
  101. package/dist/esm/hooks/tab.js +17 -14
  102. package/dist/esm/hooks/table.js +63 -112
  103. package/dist/esm/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +16 -16
  104. package/dist/esm/node_modules/pinia/dist/pinia.js +39 -0
  105. package/dist/types/hooks/tab.d.ts +500 -329
  106. package/dist/types/hooks/table.d.ts +7 -25
  107. package/package.json +3 -3
@@ -1 +1 @@
1
- "use strict";const o=require("./_root.cjs"),t=require("./stubFalse.cjs");var f=typeof exports=="object"&&exports&&!exports.nodeType&&exports,e=f&&typeof module=="object"&&module&&!module.nodeType&&module,s=e&&e.exports===f,r=s?o.Buffer:void 0,u=r?r.isBuffer:void 0,n=u||t;module.exports=n;
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 e=require("./_baseGetTag.cjs"),c=require("./isObject.cjs");var r="[object AsyncFunction]",o="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function s(n){if(!c(n))return!1;var t=e(n);return t==o||t==a||t==r||t==i}module.exports=s;
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 r=9007199254740991;function n(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=r}module.exports=n;
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 r=require("./_baseIsMap.cjs"),a=require("./_baseUnary.cjs"),e=require("./_nodeUtil.cjs");var s=e&&e.isMap,i=s?a(s):r;module.exports=i;
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 n(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}module.exports=n;
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(t){return t!=null&&typeof t=="object"}module.exports=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"),t=require("./_baseUnary.cjs"),e=require("./_nodeUtil.cjs");var s=e&&e.isSet,i=s?t(s):r;module.exports=i;
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 s=require("./_baseIsTypedArray.cjs"),a=require("./_baseUnary.cjs"),r=require("./_nodeUtil.cjs");var e=r&&r.isTypedArray,y=e?a(e):s;module.exports=y;
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 e=require("./_arrayLikeKeys.cjs"),s=require("./_baseKeys.cjs"),i=require("./isArrayLike.cjs");function n(r){return i(r)?e(r):s(r)}module.exports=n;
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 r(){return[]}module.exports=r;
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 s(){return!1}module.exports=s;
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;
@@ -1,27 +1,30 @@
1
- import { useTabStore as a } from "@duxweb/dvha-core";
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 p } from "../node_modules/vue-router/dist/vue-router.js";
4
- import { computed as n } from "../node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
5
- function l() {
6
- const t = a(), o = p(), u = n(() => ({
7
- value: t.current,
8
- defaultValue: t.current,
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
- t.delTab(e, (r) => {
11
- o.push(r.path || "");
11
+ o.delTab(e, (r) => {
12
+ a.push(r.path || "");
12
13
  });
13
14
  },
14
15
  onUpdateValue: (e) => {
15
- t.changeTab(e, (r) => {
16
- o.push(r.path || "");
16
+ o.changeTab(e, (r) => {
17
+ a.push(r.path || "");
17
18
  });
18
19
  }
19
20
  }));
20
21
  return {
21
- ...t,
22
- props: u
22
+ ...o,
23
+ tabs: u,
24
+ current: t,
25
+ tabsProps: s
23
26
  };
24
27
  }
25
28
  export {
26
- l as useNaiveTab
29
+ T as useNaiveTab
27
30
  };
@@ -1,132 +1,83 @@
1
- import { useList as O } from "@duxweb/dvha-core";
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 A } from "../node_modules/@vueuse/shared/index.js";
4
- import D from "../node_modules/lodash-es/cloneDeep.js";
5
- import { toRef as U, ref as s } from "../node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js";
6
- import { watch as h, computed as r } from "../node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js";
7
- function q(n) {
8
- const f = U(n.filters);
9
- h(() => n.filters, (e) => {
10
- f.value = e;
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
- A([f, i], ([e, t]) => {
22
- Object.keys(u.value).forEach((o) => {
23
- delete u.value[o];
24
- }), Object.assign(u.value, e, t);
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
- data: v,
33
- isLoading: y,
34
- refetch: z
35
- } = O({
36
- path: n.path,
37
- pagination: n.pagination ? l.value : !1,
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 C = r(() => p.value.filter((e) => e.show !== !1 && "key" in e).map((e) => e.key)), K = (e) => {
50
- var o;
51
- const t = (o = D(n.columns)) == null ? void 0 : o.map((a) => (!("key" in a) || !(a != null && a.key) || !("title" in a) || !(a != null && a.title) || e.includes(a.key) || (a.show = !1), a));
52
- p.value = [...t];
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
- ...i.value
43
+ ...l.value
65
44
  };
66
- Object.entries(e).forEach(([o, a]) => {
67
- t[o] = a;
68
- }), i.value = t;
69
- }, k = (e) => {
70
- g.value = e;
71
- }, R = (e) => {
72
- l.value.pageSize = e, l.value.page = 1;
73
- }, E = (e) => {
74
- l.value.page = e;
75
- }, x = r(() => ({
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: E,
82
- onUpdatePageSize: R,
56
+ onUpdatePage: o.onUpdatePage,
57
+ onUpdatePageSize: o.onUpdatePageSize,
83
58
  showSizePicker: !0,
84
59
  showQuickJumper: !0
85
- })), F = r(() => {
86
- var e;
87
- return {
88
- remote: !0,
89
- checkedRowKeys: c.value,
90
- expandedRowKeys: g.value,
91
- onUpdateCheckedRowKeys: b,
92
- onUpdateExpandedRowKeys: k,
93
- onUpdateSorter: S,
94
- onUpdateFilters: w,
95
- loading: y.value,
96
- data: ((e = v.value) == null ? void 0 : e.data) || [],
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
- list: P,
108
- meta: j,
109
- tablePagination: x,
110
- tableProps: F,
111
- columns: p,
112
- isLoading: y,
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
- q as useNaiveTable
82
+ L as useNaiveTable
132
83
  };
@@ -1,4 +1,4 @@
1
- import { isFunction as $, isObject as P, EMPTY_OBJ as We, isArray as m, hasChanged 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";
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 || x(i, e._value)) && (e.flags |= 128, e._value = i, t.version++);
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 = m(e), p = c && ue(s);
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) => m(t) ? A(t) : 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 = m(t);
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)), !m(t) && b(n) && !b(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 = m(t) && ue(s) ? Number(s) < t.length : oe(t, s), a = Reflect.set(
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 ? x(r, n) && N(t, "set", s, r, n) : N(t, "add", s, r)), a;
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
- m(t) ? "length" : V
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 || (x(i, a) && g(o, "get", i), g(o, "get", a));
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 || (x(i, a) && g(o, "has", i), g(o, "has", a)), i === a ? n.has(i) : n.has(i) || n.has(a);
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 ? x(n, _) && N(o, "set", i, n, _) : N(o, "add", i, n), this;
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), x(t, s) && (this._rawValue = t, this._value = r ? t : v(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
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) : m(e) ? (J = !0, G = e.some((l) => Z(l) || E(l)), d = () => e.map((l) => {
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) => x(te, O[Q])) : x(S, O))) {
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 (m(e))
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
+ };