@duxweb/dvha-core 0.1.16 → 0.1.18
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/components/auth/can.cjs +1 -1
- package/dist/cjs/components/common/icon.cjs +1 -0
- package/dist/cjs/directive/permission.cjs +1 -1
- package/dist/cjs/hooks/data.cjs +1 -1
- package/dist/cjs/hooks/export.cjs +1 -1
- package/dist/cjs/hooks/overlay.cjs +1 -1
- package/dist/cjs/hooks/theme.cjs +5 -5
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/provider/app.cjs +1 -1
- package/dist/cjs/utils/theme.cjs +1 -1
- package/dist/esm/components/auth/can.js +3 -3
- package/dist/esm/components/common/icon.js +25 -0
- package/dist/esm/directive/permission.js +3 -3
- package/dist/esm/hooks/data.js +262 -234
- package/dist/esm/hooks/export.js +20 -18
- package/dist/esm/hooks/overlay.js +1 -1
- package/dist/esm/hooks/theme.js +168 -121
- package/dist/esm/index.js +65 -63
- package/dist/esm/provider/app.js +15 -15
- package/dist/esm/utils/theme.js +45 -42
- package/dist/types/components/common/icon.d.ts +13 -0
- package/dist/types/components/common/index.d.ts +1 -0
- package/dist/types/hooks/data.d.ts +390 -30
- package/dist/types/hooks/export.d.ts +16 -3
- package/dist/types/hooks/exportCsv.d.ts +13 -1
- package/dist/types/hooks/index.d.ts +9 -9
- package/dist/types/hooks/theme.d.ts +6 -3
- package/dist/types/utils/theme.d.ts +5 -5
- package/package.json +3 -3
package/dist/esm/hooks/export.js
CHANGED
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useInfiniteList as
|
|
3
|
-
const
|
|
1
|
+
import { ref as w, computed as u } from "vue";
|
|
2
|
+
import { useInfiniteList as h } from "./data.js";
|
|
3
|
+
const y = (e) => new Promise((a) => setTimeout(a, e));
|
|
4
4
|
function N(e) {
|
|
5
|
-
const a =
|
|
6
|
-
const { onSuccess: n, interval:
|
|
7
|
-
return
|
|
8
|
-
}),
|
|
9
|
-
...
|
|
5
|
+
const a = w(!1), o = u(() => {
|
|
6
|
+
const { onSuccess: n, onProgress: i, interval: l, maxPage: v, ...d } = e;
|
|
7
|
+
return d;
|
|
8
|
+
}), c = u(() => e.interval || 300), { data: s, isLoading: g, fetchNextPage: f, hasNextPage: r, refetch: m, pagination: t } = h({
|
|
9
|
+
...o.value,
|
|
10
10
|
options: {
|
|
11
|
-
...
|
|
11
|
+
...o.value.options,
|
|
12
12
|
enabled: !1
|
|
13
13
|
}
|
|
14
|
-
}),
|
|
15
|
-
var n;
|
|
14
|
+
}), P = async () => {
|
|
15
|
+
var n, i, l;
|
|
16
16
|
if (!a.value)
|
|
17
17
|
try {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
(
|
|
18
|
+
a.value = !0, t.value.page = 1, (n = e.onProgress) == null || n.call(e, t.value), await m();
|
|
19
|
+
const v = typeof e.maxPage == "function" ? e.maxPage() : e.maxPage || 100;
|
|
20
|
+
for (; r.value && t.value.page < v; )
|
|
21
|
+
c.value > 0 && await y(c.value), await f(), (i = e.onProgress) == null || i.call(e, t.value);
|
|
22
|
+
(l = e.onSuccess) == null || l.call(e, s.value);
|
|
21
23
|
} finally {
|
|
22
24
|
a.value = !1;
|
|
23
25
|
}
|
|
24
|
-
},
|
|
26
|
+
}, x = u(() => g.value || a.value);
|
|
25
27
|
return {
|
|
26
|
-
data:
|
|
27
|
-
isLoading:
|
|
28
|
-
trigger:
|
|
28
|
+
data: s,
|
|
29
|
+
isLoading: x,
|
|
30
|
+
trigger: P
|
|
29
31
|
};
|
|
30
32
|
}
|
|
31
33
|
export {
|
|
@@ -6,9 +6,9 @@ import { DuxOverlay as m } from "../components/overlay/overlay.js";
|
|
|
6
6
|
import "pinia";
|
|
7
7
|
import "lodash-es";
|
|
8
8
|
import "@tanstack/vue-query";
|
|
9
|
+
import "json-2-csv";
|
|
9
10
|
import "@vueuse/core";
|
|
10
11
|
import "colorizr";
|
|
11
|
-
import "json-2-csv";
|
|
12
12
|
import "axios";
|
|
13
13
|
function h() {
|
|
14
14
|
const r = t(m);
|
package/dist/esm/hooks/theme.js
CHANGED
|
@@ -1,35 +1,47 @@
|
|
|
1
|
-
import { useColorMode as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { useColorMode as Q, useCycleList as W } from "@vueuse/core";
|
|
2
|
+
import { hex2rgb as X } from "colorizr";
|
|
3
|
+
import { storeToRefs as Y } from "pinia";
|
|
4
|
+
import { watchEffect as Z, computed as m, watch as _, readonly as I } from "vue";
|
|
5
5
|
import "lodash-es";
|
|
6
|
-
import { useThemeStore as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
function
|
|
10
|
-
var V,
|
|
11
|
-
const
|
|
12
|
-
storageRef:
|
|
13
|
-
}),
|
|
14
|
-
initialValue:
|
|
6
|
+
import { useThemeStore as N } from "../stores/theme.js";
|
|
7
|
+
import { useManage as ee } from "./manage.js";
|
|
8
|
+
import { themeColor as te } from "./themeColor.js";
|
|
9
|
+
function de() {
|
|
10
|
+
var V, M;
|
|
11
|
+
const f = N(), { mode: L } = Y(f), C = Q({
|
|
12
|
+
storageRef: L
|
|
13
|
+
}), h = ee(), { state: x, next: O, go: p } = W(["dark", "light", "auto"], {
|
|
14
|
+
initialValue: C.store.value
|
|
15
15
|
});
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
Z(() => {
|
|
17
|
+
C.value = x.value;
|
|
18
18
|
});
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
const R = (t) => {
|
|
20
|
+
switch (t) {
|
|
21
|
+
case "auto":
|
|
22
|
+
p(2);
|
|
23
|
+
break;
|
|
24
|
+
case "light":
|
|
25
|
+
p(1);
|
|
26
|
+
break;
|
|
27
|
+
case "dark":
|
|
28
|
+
p(0);
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
}, b = m(() => {
|
|
32
|
+
const { system: t, store: e } = C;
|
|
33
|
+
return e.value === "auto" ? t.value === "dark" : e.value === "dark";
|
|
34
|
+
}), z = m(() => {
|
|
35
|
+
var t, e, r, c, i, l, o, s;
|
|
36
|
+
return b.value ? {
|
|
37
|
+
logo: (e = (t = h.config) == null ? void 0 : t.theme) == null ? void 0 : e.darkLogo,
|
|
38
|
+
banner: (c = (r = h.config) == null ? void 0 : r.theme) == null ? void 0 : c.darkBanner
|
|
27
39
|
} : {
|
|
28
|
-
logo: (
|
|
29
|
-
banner: (s = (
|
|
40
|
+
logo: (l = (i = h.config) == null ? void 0 : i.theme) == null ? void 0 : l.logo,
|
|
41
|
+
banner: (s = (o = h.config) == null ? void 0 : o.theme) == null ? void 0 : s.banner
|
|
30
42
|
};
|
|
31
|
-
}),
|
|
32
|
-
colors:
|
|
43
|
+
}), n = { ...{
|
|
44
|
+
colors: te,
|
|
33
45
|
// 色彩类型
|
|
34
46
|
colorTypes: ["primary", "info", "success", "warning", "error", "gray"],
|
|
35
47
|
// 色彩色阶
|
|
@@ -51,135 +63,170 @@ function le() {
|
|
|
51
63
|
border: { base: "200", muted: "200", accented: "300", inverted: "900" }
|
|
52
64
|
},
|
|
53
65
|
dark: {
|
|
54
|
-
text: { dimmed: "600", muted: "500", toned: "
|
|
66
|
+
text: { dimmed: "600", muted: "500", toned: "300", base: "200", highlighted: "100", inverted: "black" },
|
|
55
67
|
bg: { base: "950", muted: "900", elevated: "800", accented: "700", inverted: "100" },
|
|
56
|
-
border: { base: "
|
|
68
|
+
border: { base: "900", muted: "800", accented: "700", inverted: "100" }
|
|
57
69
|
}
|
|
58
70
|
},
|
|
59
71
|
colorBase: { white: "#ffffff", black: "#000000" }
|
|
60
|
-
}, ...(
|
|
61
|
-
function
|
|
62
|
-
return
|
|
72
|
+
}, ...(M = (V = h.config) == null ? void 0 : V.theme) == null ? void 0 : M.config }, { colorShades: k, colorTypes: w } = n, g = m(() => f.theme), $ = m(() => Object.keys(n.colors)), T = ["default", "hover", "pressed", "focus", "disabled"];
|
|
73
|
+
function y() {
|
|
74
|
+
return b.value ? n.colorScenes.dark : n.colorScenes.light;
|
|
63
75
|
}
|
|
64
|
-
function
|
|
65
|
-
var
|
|
66
|
-
const
|
|
67
|
-
if ((
|
|
68
|
-
const
|
|
69
|
-
if (
|
|
70
|
-
return
|
|
76
|
+
function E(t, e) {
|
|
77
|
+
var i;
|
|
78
|
+
const r = y(), c = r.default;
|
|
79
|
+
if ((i = r.overrides) != null && i[t]) {
|
|
80
|
+
const l = r.overrides[t], o = l == null ? void 0 : l[e];
|
|
81
|
+
if (o)
|
|
82
|
+
return o;
|
|
71
83
|
}
|
|
72
|
-
return
|
|
84
|
+
return c[e] || "500";
|
|
73
85
|
}
|
|
74
|
-
function
|
|
75
|
-
var
|
|
76
|
-
const
|
|
77
|
-
return ((
|
|
86
|
+
function j(t, e) {
|
|
87
|
+
var c;
|
|
88
|
+
const r = g.value[t];
|
|
89
|
+
return ((c = n.colors[r]) == null ? void 0 : c[e]) || "";
|
|
78
90
|
}
|
|
79
|
-
function a(t,
|
|
80
|
-
const
|
|
81
|
-
return
|
|
91
|
+
function a(t, e, r) {
|
|
92
|
+
const i = (b.value ? n.colorSemantic.dark : n.colorSemantic.light)[t][e];
|
|
93
|
+
return i === "white" || i === "black" ? `var(--ui-color-${i})` : `var(--base-color-${r}-${i})`;
|
|
82
94
|
}
|
|
83
|
-
|
|
84
|
-
|
|
95
|
+
const S = (t) => {
|
|
96
|
+
const e = X(t);
|
|
97
|
+
return `${e.r} ${e.g} ${e.b}`;
|
|
98
|
+
};
|
|
99
|
+
function D() {
|
|
100
|
+
var i, l;
|
|
85
101
|
const t = [];
|
|
86
|
-
Object.entries(
|
|
87
|
-
typeof s == "object" && Object.entries(s).forEach(([u,
|
|
102
|
+
Object.entries(n.colors).forEach(([o, s]) => {
|
|
103
|
+
typeof s == "object" && Object.entries(s).forEach(([u, d]) => {
|
|
88
104
|
try {
|
|
89
|
-
|
|
90
|
-
t.push(`--base-color-${n}-${u}: ${H};`);
|
|
105
|
+
t.push(`--base-color-${o}-${u}: ${S(d)};`);
|
|
91
106
|
} catch {
|
|
92
|
-
t.push(`--base-color-${
|
|
107
|
+
t.push(`--base-color-${o}-${u}: ${d};`);
|
|
93
108
|
}
|
|
94
109
|
});
|
|
95
110
|
});
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
const s =
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}),
|
|
102
|
-
const
|
|
103
|
-
u === "default" ?
|
|
111
|
+
const e = [];
|
|
112
|
+
w.forEach((o) => {
|
|
113
|
+
const s = g.value[o];
|
|
114
|
+
k.forEach((u) => {
|
|
115
|
+
e.push(`--ui-color-${o}-${u}: var(--base-color-${s}-${u});`);
|
|
116
|
+
}), T.forEach((u) => {
|
|
117
|
+
const d = E(o, u);
|
|
118
|
+
u === "default" ? e.push(`--ui-color-${o}: var(--base-color-${s}-${d});`) : e.push(`--ui-color-${o}-${u}: var(--base-color-${s}-${d});`);
|
|
104
119
|
});
|
|
105
120
|
});
|
|
106
|
-
const
|
|
107
|
-
`--color-white: ${((
|
|
108
|
-
`--color-black: ${((
|
|
109
|
-
`--ui-text-dimmed: ${a("text", "dimmed",
|
|
110
|
-
`--ui-text-muted: ${a("text", "muted",
|
|
111
|
-
`--ui-text-toned: ${a("text", "toned",
|
|
112
|
-
`--ui-text: ${a("text", "base",
|
|
113
|
-
`--ui-text-highlighted: ${a("text", "highlighted",
|
|
114
|
-
`--ui-text-inverted: ${a("text", "inverted",
|
|
115
|
-
`--ui-bg: ${a("bg", "base",
|
|
116
|
-
`--ui-bg-muted: ${a("bg", "muted",
|
|
117
|
-
`--ui-bg-elevated: ${a("bg", "elevated",
|
|
118
|
-
`--ui-bg-accented: ${a("bg", "accented",
|
|
119
|
-
`--ui-bg-inverted: ${a("bg", "inverted",
|
|
120
|
-
`--ui-border: ${a("border", "base",
|
|
121
|
-
`--ui-border-muted: ${a("border", "muted",
|
|
122
|
-
`--ui-border-accented: ${a("border", "accented",
|
|
123
|
-
`--ui-border-inverted: ${a("border", "inverted",
|
|
121
|
+
const r = g.value.gray, c = [
|
|
122
|
+
`--ui-color-white: ${S(((i = n.colorBase) == null ? void 0 : i.white) || "#ffffff")};`,
|
|
123
|
+
`--ui-color-black: ${S(((l = n.colorBase) == null ? void 0 : l.black) || "#000000")};`,
|
|
124
|
+
`--ui-text-dimmed: ${a("text", "dimmed", r)};`,
|
|
125
|
+
`--ui-text-muted: ${a("text", "muted", r)};`,
|
|
126
|
+
`--ui-text-toned: ${a("text", "toned", r)};`,
|
|
127
|
+
`--ui-text: ${a("text", "base", r)};`,
|
|
128
|
+
`--ui-text-highlighted: ${a("text", "highlighted", r)};`,
|
|
129
|
+
`--ui-text-inverted: ${a("text", "inverted", r)};`,
|
|
130
|
+
`--ui-bg: ${a("bg", "base", r)};`,
|
|
131
|
+
`--ui-bg-muted: ${a("bg", "muted", r)};`,
|
|
132
|
+
`--ui-bg-elevated: ${a("bg", "elevated", r)};`,
|
|
133
|
+
`--ui-bg-accented: ${a("bg", "accented", r)};`,
|
|
134
|
+
`--ui-bg-inverted: ${a("bg", "inverted", r)};`,
|
|
135
|
+
`--ui-border: ${a("border", "base", r)};`,
|
|
136
|
+
`--ui-border-muted: ${a("border", "muted", r)};`,
|
|
137
|
+
`--ui-border-accented: ${a("border", "accented", r)};`,
|
|
138
|
+
`--ui-border-inverted: ${a("border", "inverted", r)};`
|
|
124
139
|
];
|
|
125
140
|
return `:root {
|
|
126
141
|
${t.join(`
|
|
127
142
|
`)}
|
|
128
|
-
${
|
|
143
|
+
${e.join(`
|
|
129
144
|
`)}
|
|
130
|
-
${
|
|
145
|
+
${c.join(`
|
|
131
146
|
`)}
|
|
132
147
|
}`;
|
|
133
148
|
}
|
|
134
|
-
|
|
135
|
-
function
|
|
136
|
-
|
|
149
|
+
let v = null;
|
|
150
|
+
function B() {
|
|
151
|
+
const t = D();
|
|
152
|
+
v || (v = document.createElement("style"), v.id = "dvha-variables", document.head.appendChild(v)), v.textContent = t;
|
|
153
|
+
}
|
|
154
|
+
function G() {
|
|
155
|
+
f.cssInit || (f.setCssInit(), B());
|
|
137
156
|
}
|
|
138
|
-
|
|
139
|
-
|
|
157
|
+
_([g, b], () => {
|
|
158
|
+
f.cssInit && B();
|
|
140
159
|
}, { deep: !0, immediate: !1 });
|
|
141
|
-
function
|
|
142
|
-
|
|
160
|
+
function U(t, e) {
|
|
161
|
+
$.value.includes(e) ? f.setThemeColor(t, e) : console.warn(`Color "${e}" is not available`);
|
|
143
162
|
}
|
|
144
|
-
function
|
|
145
|
-
|
|
163
|
+
function q(t) {
|
|
164
|
+
f.setThemeColors(t);
|
|
146
165
|
}
|
|
147
|
-
function
|
|
148
|
-
|
|
166
|
+
function A() {
|
|
167
|
+
f.resetTheme();
|
|
149
168
|
}
|
|
150
|
-
function
|
|
151
|
-
return
|
|
169
|
+
function F(t, e, r = !1) {
|
|
170
|
+
return r ? `rgb(var(--ui-color-${t}-${e}))` : j(t, e);
|
|
152
171
|
}
|
|
153
|
-
function
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
172
|
+
function H(t, e, r = !1) {
|
|
173
|
+
if (e || (e = "default"), r)
|
|
174
|
+
return e === "default" ? `rgb(var(--ui-color-${t}))` : `rgb(var(--ui-color-${t}-${e}))`;
|
|
175
|
+
const c = E(t, e);
|
|
176
|
+
return j(t, c);
|
|
157
177
|
}
|
|
158
|
-
function
|
|
159
|
-
var
|
|
160
|
-
|
|
161
|
-
|
|
178
|
+
function J(t, e, r = !1) {
|
|
179
|
+
var o, s, u;
|
|
180
|
+
if (r) {
|
|
181
|
+
let d;
|
|
182
|
+
switch (t) {
|
|
183
|
+
case "text":
|
|
184
|
+
d = e === "base" ? "--ui-text" : `--ui-text-${e}`;
|
|
185
|
+
break;
|
|
186
|
+
case "bg":
|
|
187
|
+
d = e === "base" ? "--ui-bg" : `--ui-bg-${e}`;
|
|
188
|
+
break;
|
|
189
|
+
case "border":
|
|
190
|
+
d = e === "base" ? "--ui-border" : `--ui-border-${e}`;
|
|
191
|
+
break;
|
|
192
|
+
default:
|
|
193
|
+
d = `--ui-${t}-${e}`;
|
|
194
|
+
}
|
|
195
|
+
return `rgb(var(${d}))`;
|
|
196
|
+
}
|
|
197
|
+
const c = g.value.gray, l = (b.value ? n.colorSemantic.dark : n.colorSemantic.light)[t][e];
|
|
198
|
+
return l === "white" ? ((o = n.colorBase) == null ? void 0 : o.white) || "#ffffff" : l === "black" ? ((s = n.colorBase) == null ? void 0 : s.black) || "#000000" : ((u = n.colors[c]) == null ? void 0 : u[l]) || "";
|
|
162
199
|
}
|
|
200
|
+
const K = m(() => {
|
|
201
|
+
var t;
|
|
202
|
+
return (t = $.value) == null ? void 0 : t.filter((e) => ["slate", "gray", "zinc", "neutral", "stone"].includes(e));
|
|
203
|
+
}), P = m(() => {
|
|
204
|
+
var t;
|
|
205
|
+
return (t = $.value) == null ? void 0 : t.filter((e) => !["slate", "gray", "zinc", "neutral", "stone"].includes(e));
|
|
206
|
+
});
|
|
163
207
|
return {
|
|
164
|
-
toggle:
|
|
165
|
-
mode:
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
208
|
+
toggle: O,
|
|
209
|
+
mode: x,
|
|
210
|
+
setMode: R,
|
|
211
|
+
isDark: b,
|
|
212
|
+
resources: z,
|
|
213
|
+
config: I(n),
|
|
214
|
+
colorMapping: I(g),
|
|
215
|
+
colors: $,
|
|
216
|
+
neutralColors: K,
|
|
217
|
+
primaryColors: P,
|
|
218
|
+
colorShades: k,
|
|
219
|
+
colorTypes: w,
|
|
220
|
+
colorScenes: T,
|
|
221
|
+
cssInit: G,
|
|
222
|
+
cssReset: A,
|
|
223
|
+
setColor: U,
|
|
224
|
+
setColors: q,
|
|
225
|
+
getSceneColor: H,
|
|
226
|
+
getShadeColor: F,
|
|
227
|
+
getSemanticColor: J
|
|
181
228
|
};
|
|
182
229
|
}
|
|
183
230
|
export {
|
|
184
|
-
|
|
231
|
+
de as useTheme
|
|
185
232
|
};
|
package/dist/esm/index.js
CHANGED
|
@@ -1,100 +1,102 @@
|
|
|
1
1
|
import { createDux as o } from "./main.js";
|
|
2
2
|
import { useCan as u, useCheck as s, useError as p, useForgotPassword as m, useGetAuth as x, useIsLogin as f, useLogin as a, useLogout as i, useRegister as n, useUpdatePassword as d } from "./hooks/auth.js";
|
|
3
|
-
import { useConfig as
|
|
4
|
-
import { useClient as v, useCreate as g, useCreateMany as h, useCustom as I, useCustomMutation as L, useDelete as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
3
|
+
import { useConfig as D } from "./hooks/config.js";
|
|
4
|
+
import { useClient as v, useCreate as g, useCreateMany as h, useCustom as I, useCustomMutation as L, useDelete as c, useDeleteMany as M, useInfiniteList as S, useInvalidate as T, useList as y, useMany as P, useOne as U, useUpdate as A, useUpdateMany as R } from "./hooks/data.js";
|
|
5
|
+
import { useExport as E } from "./hooks/export.js";
|
|
6
|
+
import { useExportCsv as b } from "./hooks/exportCsv.js";
|
|
7
|
+
import { useForm as k } from "./hooks/form.js";
|
|
8
|
+
import { useI18n as V } from "./hooks/i18n.js";
|
|
9
|
+
import { useImport as q } from "./hooks/import.js";
|
|
10
|
+
import { useImportCsv as B } from "./hooks/importCsv.js";
|
|
11
|
+
import { useManage as J } from "./hooks/manage.js";
|
|
12
|
+
import { useMenu as N } from "./hooks/menu.js";
|
|
13
|
+
import { useOverlay as W } from "./hooks/overlay.js";
|
|
14
|
+
import { useSelect as Y } from "./hooks/select.js";
|
|
15
|
+
import { useTheme as _ } from "./hooks/theme.js";
|
|
16
|
+
import { themeColor as ee } from "./hooks/themeColor.js";
|
|
17
|
+
import { useUpload as oe } from "./hooks/upload.js";
|
|
18
|
+
import { createLocalUploadDriver as ue } from "./hooks/upload/local.js";
|
|
19
|
+
import { createS3UploadDriver as pe } from "./hooks/upload/s3.js";
|
|
20
20
|
import { initRouter as xe } from "./router/route.js";
|
|
21
21
|
import { useAuthStore as ae } from "./stores/auth.js";
|
|
22
22
|
import { useRouteStore as ne } from "./stores/route.js";
|
|
23
23
|
import { useTabStore as le } from "./stores/tab.js";
|
|
24
|
-
import { useManageStore as
|
|
24
|
+
import { useManageStore as Ce } from "./stores/manage.js";
|
|
25
25
|
import { useI18nStore as ge } from "./stores/i18n.js";
|
|
26
26
|
import { useThemeStore as Ie } from "./stores/theme.js";
|
|
27
|
-
import { DuxLogo as
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
27
|
+
import { DuxLogo as ce } from "./components/common/logo.js";
|
|
28
|
+
import { DuxLogoIcon as Se } from "./components/common/icon.js";
|
|
29
|
+
import { default as ye } from "./components/loader/iframe.js";
|
|
30
|
+
import { DuxOverlay as Ue } from "./components/overlay/overlay.js";
|
|
31
|
+
import { DuxCan as Re } from "./components/auth/can.js";
|
|
32
|
+
import { arrayToTree as Ee, searchTree as Oe, treeToArr as be } from "./utils/tree.js";
|
|
33
|
+
import { themePreset as ke } from "./utils/theme.js";
|
|
34
|
+
import { DuxAppProvider as Ve } from "./provider/app.js";
|
|
35
|
+
import { DuxTabRouterView as qe } from "./provider/tab.js";
|
|
36
|
+
import { simpleAuthProvider as Be } from "./preset/authProvider.js";
|
|
37
|
+
import { simpleDataProvider as Je } from "./preset/dataProvider.js";
|
|
38
|
+
import { i18nProvider as Ne } from "./preset/i18nProvider.js";
|
|
38
39
|
export {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
Ve as DuxAppProvider,
|
|
41
|
+
Re as DuxCan,
|
|
42
|
+
ye as DuxLoaderIframe,
|
|
43
|
+
ce as DuxLogo,
|
|
44
|
+
Se as DuxLogoIcon,
|
|
45
|
+
Ue as DuxOverlay,
|
|
46
|
+
qe as DuxTabRouterView,
|
|
47
|
+
Ee as arrayToTree,
|
|
46
48
|
o as createDux,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
ue as createLocalUploadDriver,
|
|
50
|
+
pe as createS3UploadDriver,
|
|
51
|
+
Ne as i18nProvider,
|
|
50
52
|
xe as initRouter,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
Oe as searchTree,
|
|
54
|
+
Be as simpleAuthProvider,
|
|
55
|
+
Je as simpleDataProvider,
|
|
56
|
+
ee as themeColor,
|
|
57
|
+
ke as themePreset,
|
|
58
|
+
be as treeToArr,
|
|
57
59
|
ae as useAuthStore,
|
|
58
60
|
u as useCan,
|
|
59
61
|
s as useCheck,
|
|
60
62
|
v as useClient,
|
|
61
|
-
|
|
63
|
+
D as useConfig,
|
|
62
64
|
g as useCreate,
|
|
63
65
|
h as useCreateMany,
|
|
64
66
|
I as useCustom,
|
|
65
67
|
L as useCustomMutation,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
c as useDelete,
|
|
69
|
+
M as useDeleteMany,
|
|
68
70
|
p as useError,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
+
E as useExport,
|
|
72
|
+
b as useExportCsv,
|
|
71
73
|
m as useForgotPassword,
|
|
72
|
-
|
|
74
|
+
k as useForm,
|
|
73
75
|
x as useGetAuth,
|
|
74
|
-
|
|
76
|
+
V as useI18n,
|
|
75
77
|
ge as useI18nStore,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
q as useImport,
|
|
79
|
+
B as useImportCsv,
|
|
80
|
+
S as useInfiniteList,
|
|
81
|
+
T as useInvalidate,
|
|
80
82
|
f as useIsLogin,
|
|
81
83
|
y as useList,
|
|
82
84
|
a as useLogin,
|
|
83
85
|
i as useLogout,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
+
J as useManage,
|
|
87
|
+
Ce as useManageStore,
|
|
86
88
|
P as useMany,
|
|
87
|
-
|
|
89
|
+
N as useMenu,
|
|
88
90
|
U as useOne,
|
|
89
|
-
|
|
91
|
+
W as useOverlay,
|
|
90
92
|
n as useRegister,
|
|
91
93
|
ne as useRouteStore,
|
|
92
|
-
|
|
94
|
+
Y as useSelect,
|
|
93
95
|
le as useTabStore,
|
|
94
|
-
|
|
96
|
+
_ as useTheme,
|
|
95
97
|
Ie as useThemeStore,
|
|
96
98
|
A as useUpdate,
|
|
97
99
|
R as useUpdateMany,
|
|
98
100
|
d as useUpdatePassword,
|
|
99
|
-
|
|
101
|
+
oe as useUpload
|
|
100
102
|
};
|