@duxweb/dvha-core 0.1.21 → 0.1.23

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 (68) hide show
  1. package/dist/cjs/components/loader/loader.cjs +1 -1
  2. package/dist/cjs/components/loader/remote/loader.cjs +1 -1
  3. package/dist/cjs/components/loader/remote/render.cjs +1 -1
  4. package/dist/cjs/components/overlay/overlay.cjs +1 -1
  5. package/dist/cjs/hooks/data.cjs +1 -1
  6. package/dist/cjs/hooks/i18n.cjs +1 -1
  7. package/dist/cjs/hooks/json/utils/expressionParser.cjs +1 -1
  8. package/dist/cjs/hooks/manage.cjs +1 -1
  9. package/dist/cjs/hooks/select.cjs +1 -1
  10. package/dist/cjs/hooks/theme.cjs +1 -1
  11. package/dist/cjs/hooks/tree.cjs +1 -0
  12. package/dist/cjs/hooks/upload.cjs +1 -1
  13. package/dist/cjs/index.cjs +1 -1
  14. package/dist/cjs/preset/dataProvider.cjs +1 -1
  15. package/dist/cjs/provider/app.cjs +1 -1
  16. package/dist/cjs/provider/tab.cjs +1 -1
  17. package/dist/cjs/stores/manage.cjs +1 -1
  18. package/dist/cjs/stores/theme.cjs +1 -1
  19. package/dist/esm/components/loader/loader.js +9 -8
  20. package/dist/esm/components/loader/remote/loader.js +2 -2
  21. package/dist/esm/components/loader/remote/render.js +1 -1
  22. package/dist/esm/components/overlay/overlay.js +3 -4
  23. package/dist/esm/hooks/data.js +273 -263
  24. package/dist/esm/hooks/i18n.js +1 -1
  25. package/dist/esm/hooks/json/utils/expressionParser.js +1 -1
  26. package/dist/esm/hooks/manage.js +17 -17
  27. package/dist/esm/hooks/select.js +48 -46
  28. package/dist/esm/hooks/theme.js +1 -1
  29. package/dist/esm/hooks/tree.js +41 -0
  30. package/dist/esm/hooks/upload.js +1 -0
  31. package/dist/esm/index.js +62 -60
  32. package/dist/esm/preset/dataProvider.js +67 -63
  33. package/dist/esm/provider/app.js +4 -4
  34. package/dist/esm/provider/tab.js +1 -1
  35. package/dist/esm/stores/manage.js +27 -25
  36. package/dist/esm/stores/theme.js +36 -34
  37. package/dist/types/hooks/data.d.ts +258 -186
  38. package/dist/types/hooks/form.d.ts +1 -1
  39. package/dist/types/hooks/index.d.ts +2 -2
  40. package/dist/types/hooks/menu.d.ts +1 -1
  41. package/dist/types/hooks/overlay.d.ts +1 -1
  42. package/dist/types/hooks/select.d.ts +30 -1
  43. package/dist/types/hooks/theme.d.ts +8 -8
  44. package/dist/types/hooks/tree.d.ts +2 -3
  45. package/dist/types/hooks/upload.d.ts +1 -1
  46. package/dist/types/preset/dataProvider.d.ts +1 -0
  47. package/dist/types/stores/auth.d.ts +9 -24
  48. package/dist/types/stores/i18n.d.ts +7 -16
  49. package/dist/types/stores/index.d.ts +2 -2
  50. package/dist/types/stores/manage.d.ts +7 -16
  51. package/dist/types/stores/route.d.ts +12 -2538
  52. package/dist/types/stores/tab.d.ts +6 -2069
  53. package/dist/types/stores/theme.d.ts +14 -96
  54. package/dist/types/types/data.d.ts +3 -0
  55. package/dist/types/types/theme.d.ts +2 -0
  56. package/package.json +15 -13
  57. package/dist/cjs/_virtual/_commonjsHelpers.cjs +0 -1
  58. package/dist/cjs/_virtual/dayjs.min.cjs +0 -1
  59. package/dist/cjs/_virtual/dayjs.min2.cjs +0 -1
  60. package/dist/cjs/node_modules/dayjs/dayjs.min.cjs +0 -1
  61. package/dist/cjs/node_modules/jsep/dist/jsep.cjs +0 -2
  62. package/dist/cjs/node_modules/mitt/dist/mitt.cjs +0 -1
  63. package/dist/esm/_virtual/_commonjsHelpers.js +0 -6
  64. package/dist/esm/_virtual/dayjs.min.js +0 -7
  65. package/dist/esm/_virtual/dayjs.min2.js +0 -4
  66. package/dist/esm/node_modules/dayjs/dayjs.min.js +0 -282
  67. package/dist/esm/node_modules/jsep/dist/jsep.js +0 -737
  68. package/dist/esm/node_modules/mitt/dist/mitt.js +0 -19
@@ -1,99 +1,99 @@
1
1
  import k from "axios";
2
- import { trimStart as u } from "lodash-es";
3
- function w(c) {
4
- const r = (a) => a ? `${c.apiUrl}/${u(a || "", "/")}` : c.apiUrl;
2
+ import { trimStart as h } from "lodash-es";
3
+ function w(l) {
4
+ const d = (a) => a ? `${l.apiUrl}/${h(a || "", "/")}` : l.apiUrl;
5
5
  return {
6
- apiUrl: r,
7
- getList: (a, d, l) => {
6
+ apiUrl: d,
7
+ getList: (a, r, c) => {
8
8
  const e = {};
9
- return a.pagination && typeof a.pagination == "object" && (e.page = a.pagination.page, e.pageSize = a.pagination.pageSize), k.get(r(a.path) || "", {
9
+ return a.pagination && typeof a.pagination == "object" && (e.page = a.pagination.page, e.pageSize = a.pagination.pageSize), k.get(d(a.path) || "", {
10
10
  params: {
11
11
  ...e,
12
12
  ...a.filters,
13
13
  ...a.sorters
14
14
  },
15
15
  headers: {
16
- Authorization: l == null ? void 0 : l.token
16
+ Authorization: c == null ? void 0 : c.token
17
17
  },
18
18
  ...a.meta
19
- }).then((t) => c.successCallback ? c.successCallback(t) : n(t)).catch((t) => {
20
- throw c.errorCallback ? c.errorCallback(t) : b(t);
19
+ }).then((t) => l.successCallback ? l.successCallback(t) : n(t)).catch((t) => {
20
+ throw l.errorCallback ? l.errorCallback(t) : m(t);
21
21
  });
22
22
  },
23
- create: (a, d, l) => k.post(r(a.path) || "", a.data, {
23
+ create: (a, r, c) => k.post(d(a.path) || "", a.data, {
24
24
  headers: {
25
- Authorization: l == null ? void 0 : l.token
25
+ Authorization: c == null ? void 0 : c.token
26
26
  },
27
27
  ...a.meta
28
- }).then((e) => c.successCallback ? c.successCallback(e) : n(e)).catch((e) => {
29
- throw c.errorCallback ? c.errorCallback(e) : b(e);
28
+ }).then((e) => l.successCallback ? l.successCallback(e) : n(e)).catch((e) => {
29
+ throw l.errorCallback ? l.errorCallback(e) : m(e);
30
30
  }),
31
- update: (a, d, l) => k.put(r(a.id ? `${a.path}/${a.id}` : a.path) || "", a.data, {
31
+ update: (a, r, c) => k.put(d(a.id ? `${a.path}/${a.id}` : a.path) || "", a.data, {
32
32
  headers: {
33
- Authorization: l == null ? void 0 : l.token
33
+ Authorization: c == null ? void 0 : c.token
34
34
  },
35
35
  ...a.meta
36
- }).then((e) => c.successCallback ? c.successCallback(e) : n(e)).catch((e) => {
37
- throw c.errorCallback ? c.errorCallback(e) : b(e);
36
+ }).then((e) => l.successCallback ? l.successCallback(e) : n(e)).catch((e) => {
37
+ throw l.errorCallback ? l.errorCallback(e) : m(e);
38
38
  }),
39
- deleteOne: (a, d, l) => k.delete(r(a.id ? `${a.path}/${a.id}` : a.path) || "", {
39
+ deleteOne: (a, r, c) => k.delete(d(a.id ? `${a.path}/${a.id}` : a.path) || "", {
40
40
  headers: {
41
- Authorization: l == null ? void 0 : l.token
41
+ Authorization: c == null ? void 0 : c.token
42
42
  },
43
43
  ...a.meta
44
- }).then((e) => c.successCallback ? c.successCallback(e) : n(e)).catch((e) => {
45
- throw c.errorCallback ? c.errorCallback(e) : b(e);
44
+ }).then((e) => l.successCallback ? l.successCallback(e) : n(e)).catch((e) => {
45
+ throw l.errorCallback ? l.errorCallback(e) : m(e);
46
46
  }),
47
- getOne: (a, d, l) => k.get(r(a.id ? `${a.path}/${a.id}` : a.path) || "", {
47
+ getOne: (a, r, c) => k.get(d(a.id ? `${a.path}/${a.id}` : a.path) || "", {
48
48
  headers: {
49
- Authorization: l == null ? void 0 : l.token
49
+ Authorization: c == null ? void 0 : c.token
50
50
  },
51
51
  ...a.meta
52
- }).then((e) => c.successCallback ? c.successCallback(e) : n(e)).catch((e) => {
53
- throw c.errorCallback ? c.errorCallback(e) : b(e);
52
+ }).then((e) => l.successCallback ? l.successCallback(e) : n(e)).catch((e) => {
53
+ throw l.errorCallback ? l.errorCallback(e) : m(e);
54
54
  }),
55
- getMany: (a, d, l) => k.get(r(a.path) || "", {
55
+ getMany: (a, r, c) => k.get(d(a.path) || "", {
56
56
  params: {
57
57
  ids: a.ids
58
58
  },
59
59
  headers: {
60
- Authorization: l == null ? void 0 : l.token
60
+ Authorization: c == null ? void 0 : c.token
61
61
  },
62
62
  ...a.meta
63
- }).then((e) => c.successCallback ? c.successCallback(e) : n(e)).catch((e) => {
64
- throw c.errorCallback ? c.errorCallback(e) : b(e);
63
+ }).then((e) => l.successCallback ? l.successCallback(e) : n(e)).catch((e) => {
64
+ throw l.errorCallback ? l.errorCallback(e) : m(e);
65
65
  }),
66
- createMany: (a, d, l) => k.post(r(a.path) || "", a.data, {
66
+ createMany: (a, r, c) => k.post(d(a.path) || "", a.data, {
67
67
  headers: {
68
- Authorization: l == null ? void 0 : l.token
68
+ Authorization: c == null ? void 0 : c.token
69
69
  },
70
70
  ...a.meta
71
- }).then((e) => c.successCallback ? c.successCallback(e) : n(e)).catch((e) => {
72
- throw c.errorCallback ? c.errorCallback(e) : b(e);
71
+ }).then((e) => l.successCallback ? l.successCallback(e) : n(e)).catch((e) => {
72
+ throw l.errorCallback ? l.errorCallback(e) : m(e);
73
73
  }),
74
- updateMany: (a, d, l) => k.put(r(a.path) || "", {
74
+ updateMany: (a, r, c) => k.put(d(a.path) || "", {
75
75
  ids: a.ids,
76
76
  data: a.data
77
77
  }, {
78
78
  headers: {
79
- Authorization: l == null ? void 0 : l.token
79
+ Authorization: c == null ? void 0 : c.token
80
80
  },
81
81
  ...a.meta
82
- }).then((e) => c.successCallback ? c.successCallback(e) : n(e)).catch((e) => {
83
- throw c.errorCallback ? c.errorCallback(e) : b(e);
82
+ }).then((e) => l.successCallback ? l.successCallback(e) : n(e)).catch((e) => {
83
+ throw l.errorCallback ? l.errorCallback(e) : m(e);
84
84
  }),
85
- deleteMany: (a, d, l) => k.delete(r(a.path) || "", {
85
+ deleteMany: (a, r, c) => k.delete(d(a.path) || "", {
86
86
  params: {
87
87
  ids: a.ids
88
88
  },
89
89
  headers: {
90
- Authorization: l == null ? void 0 : l.token
90
+ Authorization: c == null ? void 0 : c.token
91
91
  },
92
92
  ...a.meta
93
- }).then((e) => c.successCallback ? c.successCallback(e) : n(e)).catch((e) => {
94
- throw c.errorCallback ? c.errorCallback(e) : b(e);
93
+ }).then((e) => l.successCallback ? l.successCallback(e) : n(e)).catch((e) => {
94
+ throw l.errorCallback ? l.errorCallback(e) : m(e);
95
95
  }),
96
- custom: (a, d, l) => {
96
+ custom: (a, r, c) => {
97
97
  let e = {
98
98
  ...a.query
99
99
  };
@@ -104,57 +104,61 @@ function w(c) {
104
104
  ...e,
105
105
  ...a.filters
106
106
  }), k.request({
107
- url: r(a.path || ""),
107
+ url: d(a.path || ""),
108
108
  method: a.method || "GET",
109
109
  data: a.payload,
110
110
  params: e,
111
111
  signal: a.signal,
112
112
  headers: {
113
- Authorization: l == null ? void 0 : l.token,
113
+ Authorization: c == null ? void 0 : c.token,
114
114
  ...a.headers
115
115
  },
116
116
  onUploadProgress: (t) => {
117
- var m;
117
+ var b;
118
118
  const C = Math.round(t.loaded * 100 / (t.total || 1));
119
- (m = a.onUploadProgress) == null || m.call(a, {
119
+ (b = a.onUploadProgress) == null || b.call(a, {
120
120
  loaded: t.loaded,
121
121
  total: t.total,
122
122
  percent: C
123
123
  });
124
124
  },
125
125
  onDownloadProgress: (t) => {
126
- var m;
126
+ var b;
127
127
  const C = Math.round(t.loaded * 100 / (t.total || 1));
128
- (m = a.onDownloadProgress) == null || m.call(a, {
128
+ (b = a.onDownloadProgress) == null || b.call(a, {
129
129
  loaded: t.loaded,
130
130
  total: t.total,
131
131
  percent: C
132
132
  });
133
133
  },
134
134
  ...a.meta
135
- }).then((t) => c.successCallback ? c.successCallback(t) : n(t)).catch((t) => {
136
- throw c.errorCallback ? c.errorCallback(t) : b(t);
135
+ }).then((t) => l.successCallback ? l.successCallback(t) : n(t)).catch((t) => {
136
+ throw l.errorCallback ? l.errorCallback(t) : m(t);
137
137
  });
138
+ },
139
+ getTotal: (a) => {
140
+ var r;
141
+ return l.getTotal ? l.getTotal(a) : ((r = a.meta) == null ? void 0 : r.total) || 0;
138
142
  }
139
143
  };
140
144
  }
141
- function n(c) {
142
- var r, a, d;
145
+ function n(l) {
146
+ var d, a, r;
143
147
  return {
144
- message: (r = c.data) == null ? void 0 : r.message,
145
- data: (a = c.data) == null ? void 0 : a.data,
146
- meta: (d = c.data) == null ? void 0 : d.meta,
147
- raw: c.data
148
+ message: (d = l.data) == null ? void 0 : d.message,
149
+ data: (a = l.data) == null ? void 0 : a.data,
150
+ meta: (r = l.data) == null ? void 0 : r.meta,
151
+ raw: l.data
148
152
  };
149
153
  }
150
- function b(c) {
151
- var r, a, d, l, e, t, C, m, g, h;
154
+ function m(l) {
155
+ var d, a, r, c, e, t, C, b, g, u;
152
156
  return {
153
- message: ((a = (r = c.response) == null ? void 0 : r.data) == null ? void 0 : a.message) || (c == null ? void 0 : c.message),
154
- data: (l = (d = c.response) == null ? void 0 : d.data) == null ? void 0 : l.data,
155
- meta: (t = (e = c.response) == null ? void 0 : e.data) == null ? void 0 : t.meta,
156
- status: ((m = (C = c.response) == null ? void 0 : C.data) == null ? void 0 : m.code) || ((g = c.response) == null ? void 0 : g.status) || 500,
157
- raw: (h = c.response) == null ? void 0 : h.data
157
+ message: ((a = (d = l.response) == null ? void 0 : d.data) == null ? void 0 : a.message) || (l == null ? void 0 : l.message),
158
+ data: (c = (r = l.response) == null ? void 0 : r.data) == null ? void 0 : c.data,
159
+ meta: (t = (e = l.response) == null ? void 0 : e.data) == null ? void 0 : t.meta,
160
+ status: ((b = (C = l.response) == null ? void 0 : C.data) == null ? void 0 : b.code) || ((g = l.response) == null ? void 0 : g.status) || 500,
161
+ raw: (u = l.response) == null ? void 0 : u.data
158
162
  };
159
163
  }
160
164
  export {
@@ -10,10 +10,10 @@ import "lodash-es";
10
10
  import "@vee-validate/rules";
11
11
  import "vee-validate";
12
12
  import { useAuthStore as T } from "../stores/auth.js";
13
- import { useRouteStore as W } from "../stores/route.js";
14
- import "pinia";
13
+ import { useI18nStore as W } from "../stores/i18n.js";
15
14
  import { useManageStore as X } from "../stores/manage.js";
16
- import { useI18nStore as Y } from "../stores/i18n.js";
15
+ import { useRouteStore as Y } from "../stores/route.js";
16
+ import "pinia";
17
17
  import "@vueuse/core";
18
18
  import "../hooks/json/index.js";
19
19
  import "colorizr";
@@ -42,7 +42,7 @@ const De = /* @__PURE__ */ V({
42
42
  f && (f.value = t);
43
43
  const h = X(t);
44
44
  h.isInit() || h.setConfig((R = u.manages) == null ? void 0 : R.find((e) => e.name === t), u);
45
- const i = W(t), r = Q(t), d = T(t), l = Y(t);
45
+ const i = Y(t), r = Q(t), d = T(t), l = W(t);
46
46
  if ((A = r.config) != null && A.i18nProvider && !l.isInit()) {
47
47
  const e = l.getLocale();
48
48
  e && ((S = r.config) == null || S.i18nProvider.changeLocale(e));
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as c, watch as d, createVNode as m, Transition as l, KeepAlive as f } from "vue";
2
2
  import { useRoute as b, RouterView as h } from "vue-router";
3
3
  import "pinia";
4
+ import "lodash-es";
4
5
  import { useRouteStore as R } from "../stores/route.js";
5
6
  import { useTabStore as w } from "../stores/tab.js";
6
- import "lodash-es";
7
7
  const k = /* @__PURE__ */ c({
8
8
  name: "DuxTabRouterView",
9
9
  props: {},
@@ -1,49 +1,51 @@
1
1
  import { cloneDeep as P } from "lodash-es";
2
2
  import { defineStore as h } from "pinia";
3
- import { inject as m, ref as u } from "vue";
4
- function p(e) {
3
+ import { inject as m, ref as p, markRaw as y } from "vue";
4
+ function v(e) {
5
5
  return e != null && typeof e == "object" && !Array.isArray(e) && typeof e.getList != "function";
6
6
  }
7
- function A(e) {
8
- const i = m("dux.manage");
9
- if (e || (e = (i == null ? void 0 : i.value) || ""), !e)
7
+ function O(e) {
8
+ const d = m("dux.manage");
9
+ if (e || (e = (d == null ? void 0 : d.value) || ""), !e)
10
10
  throw new Error("manage not found");
11
- return y(e)();
11
+ return j(e)();
12
12
  }
13
- function y(e) {
13
+ function j(e) {
14
14
  return h(`manages-${e}`, () => {
15
- const i = u(), s = u(!1);
15
+ const d = p(), o = p(!1);
16
16
  return {
17
- config: i,
17
+ config: d,
18
18
  isInit: () => {
19
- const o = s.value;
20
- return s.value = !0, o;
19
+ const n = o.value;
20
+ return o.value = !0, n;
21
21
  },
22
- setConfig: (o, r) => {
23
- const t = P(o), n = [];
24
- t.title && n.push(t.title), r.title && n.push(r.title), t.title = n.join(" - "), t.copyright = t.copyright || r.copyright, t.description = t.description || r.description, t.theme = { ...r == null ? void 0 : r.theme, ...t == null ? void 0 : t.theme };
25
- const d = {};
26
- r != null && r.dataProvider && (p(r.dataProvider) ? Object.keys(r.dataProvider).forEach((c) => {
27
- d[c] = r.dataProvider[c];
28
- }) : d.default = r.dataProvider), t != null && t.dataProvider && (p(t.dataProvider) ? Object.keys(t.dataProvider).forEach((c) => {
29
- d[c] = t.dataProvider[c];
30
- }) : d.default = t.dataProvider), t.authProvider = (r == null ? void 0 : r.authProvider) || (t == null ? void 0 : t.authProvider), t.dataProvider = d, t.i18nProvider = (r == null ? void 0 : r.i18nProvider) || (t == null ? void 0 : t.i18nProvider), t.layoutComponent = {
22
+ setConfig: (n, r) => {
23
+ const t = P(n), u = [];
24
+ t.title && u.push(t.title), r.title && u.push(r.title), t.title = u.join(" - "), t.copyright = t.copyright || r.copyright, t.description = t.description || r.description, t.theme = { ...r == null ? void 0 : r.theme, ...t == null ? void 0 : t.theme };
25
+ const s = {};
26
+ r != null && r.dataProvider && (v(r.dataProvider) ? Object.keys(r.dataProvider).forEach((i) => {
27
+ s[i] = r.dataProvider[i];
28
+ }) : s.default = r.dataProvider), t != null && t.dataProvider && (v(t.dataProvider) ? Object.keys(t.dataProvider).forEach((i) => {
29
+ s[i] = t.dataProvider[i];
30
+ }) : s.default = t.dataProvider), t.authProvider = (r == null ? void 0 : r.authProvider) || (t == null ? void 0 : t.authProvider), t.dataProvider = s, t.i18nProvider = (r == null ? void 0 : r.i18nProvider) || (t == null ? void 0 : t.i18nProvider), t.layoutComponent = {
31
31
  ...r.layoutComponent,
32
32
  ...t.layoutComponent
33
33
  };
34
- const v = {
34
+ const c = {
35
35
  ...r.components,
36
36
  ...t.components
37
37
  };
38
- t.components = v, t.remote = {
38
+ c && Object.keys(c).forEach((i) => {
39
+ c[i] && (c[i] = y(c[i]));
40
+ }), t.components = c, t.remote = {
39
41
  ...r.remote,
40
42
  ...t.remote
41
- }, i.value = t;
43
+ }, d.value = t;
42
44
  },
43
- getConfig: () => i.value
45
+ getConfig: () => d.value
44
46
  };
45
47
  });
46
48
  }
47
49
  export {
48
- A as useManageStore
50
+ O as useManageStore
49
51
  };
@@ -1,50 +1,52 @@
1
- import { defineStore as d } from "pinia";
2
- import { inject as v, ref as n } from "vue";
3
- const s = {
4
- primary: "blue",
1
+ import { defineStore as v } from "pinia";
2
+ import { inject as S, ref as n } from "vue";
3
+ import { useManageStore as g } from "./manage.js";
4
+ const f = {
5
+ primary: "emerald",
5
6
  info: "cyan",
6
7
  success: "green",
7
8
  warning: "amber",
8
9
  error: "red",
9
- gray: "gray"
10
+ gray: "zinc"
10
11
  };
11
- function g(t) {
12
- const e = v("dux.manage");
13
- if (t || (t = (e == null ? void 0 : e.value) || ""), !t)
12
+ function j(e) {
13
+ const o = S("dux.manage");
14
+ if (e || (e = (o == null ? void 0 : o.value) || ""), !e)
14
15
  throw new Error("manage not found");
15
- return T(t)();
16
+ return w(e)();
16
17
  }
17
- function T(t) {
18
- return d(`theme-${t}`, () => {
19
- const e = n(s), o = n("auto"), u = n(!1);
20
- function c() {
21
- u.value = !0;
18
+ function w(e) {
19
+ return v(`theme-${e}`, () => {
20
+ var c, i;
21
+ const o = g(e), t = n(((i = (c = o.config) == null ? void 0 : c.theme) == null ? void 0 : i.defaultTheme) || f), u = n("auto"), s = n(!1);
22
+ function m() {
23
+ s.value = !0;
22
24
  }
23
- function i(r) {
24
- o.value = r;
25
+ function h(r) {
26
+ u.value = r;
25
27
  }
26
- function f(r, a) {
27
- e.value[r] = a;
28
+ function a(r, p) {
29
+ t.value[r] = p;
28
30
  }
29
- function m(r) {
30
- Object.assign(e.value, r);
31
+ function l(r) {
32
+ Object.assign(t.value, r);
31
33
  }
32
- function h() {
33
- e.value = { ...s };
34
+ function d() {
35
+ t.value = { ...f };
34
36
  }
35
- function l() {
36
- return e.value;
37
+ function T() {
38
+ return t.value;
37
39
  }
38
40
  return {
39
- mode: o,
40
- setMode: i,
41
- theme: e,
42
- cssInit: u,
43
- setCssInit: c,
44
- setThemeColor: f,
45
- setThemeColors: m,
46
- resetTheme: h,
47
- getTheme: l
41
+ mode: u,
42
+ setMode: h,
43
+ theme: t,
44
+ cssInit: s,
45
+ setCssInit: m,
46
+ setThemeColor: a,
47
+ setThemeColors: l,
48
+ resetTheme: d,
49
+ getTheme: T
48
50
  };
49
51
  }, {
50
52
  persist: {
@@ -53,5 +55,5 @@ function T(t) {
53
55
  });
54
56
  }
55
57
  export {
56
- g as useThemeStore
58
+ j as useThemeStore
57
59
  };