@duxweb/dvha-core 1.1.29 → 1.1.31
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/_virtual/_rolldown/runtime.cjs +1 -0
- package/dist/cjs/components/auth/can.cjs +1 -1
- package/dist/cjs/components/auth/index.cjs +1 -0
- package/dist/cjs/components/common/icon.cjs +1 -1
- package/dist/cjs/components/common/index.cjs +1 -0
- package/dist/cjs/components/common/logo.cjs +1 -1
- package/dist/cjs/components/index.cjs +1 -0
- package/dist/cjs/components/loader/iframe.cjs +1 -1
- package/dist/cjs/components/loader/index.cjs +1 -0
- package/dist/cjs/components/loader/loader.cjs +1 -1
- package/dist/cjs/components/loader/remote/index.cjs +1 -0
- package/dist/cjs/components/loader/remote/loader.cjs +1 -1
- package/dist/cjs/components/loader/remote/render.cjs +1 -1
- package/dist/cjs/components/overlay/index.cjs +1 -0
- package/dist/cjs/components/overlay/overlay.cjs +1 -1
- package/dist/cjs/components/status/error.cjs +1 -1
- package/dist/cjs/components/status/exception.cjs +1 -1
- package/dist/cjs/components/status/index.cjs +1 -0
- package/dist/cjs/components/status/notAuthorized.cjs +1 -1
- package/dist/cjs/components/status/notFound.cjs +1 -1
- package/dist/cjs/config/color.cjs +1 -1
- package/dist/cjs/directive/index.cjs +1 -0
- package/dist/cjs/directive/permission.cjs +1 -1
- package/dist/cjs/hooks/auth.cjs +1 -1
- package/dist/cjs/hooks/config.cjs +1 -1
- package/dist/cjs/hooks/data.cjs +1 -1
- package/dist/cjs/hooks/export.cjs +1 -1
- package/dist/cjs/hooks/exportCsv.cjs +2 -2
- package/dist/cjs/hooks/form.cjs +1 -1
- package/dist/cjs/hooks/formExtend.cjs +1 -1
- package/dist/cjs/hooks/formValidate.cjs +1 -1
- package/dist/cjs/hooks/i18n.cjs +1 -1
- package/dist/cjs/hooks/import.cjs +1 -1
- package/dist/cjs/hooks/importCsv.cjs +2 -2
- package/dist/cjs/hooks/index.cjs +1 -0
- package/dist/cjs/hooks/json/index.cjs +1 -1
- package/dist/cjs/hooks/json/utils/contextManager.cjs +1 -1
- package/dist/cjs/hooks/json/utils/expressionParser.cjs +1 -1
- package/dist/cjs/hooks/json/vFor.cjs +1 -1
- package/dist/cjs/hooks/json/vIf.cjs +1 -1
- package/dist/cjs/hooks/json/vModel.cjs +1 -1
- package/dist/cjs/hooks/json/vOn.cjs +1 -1
- package/dist/cjs/hooks/json/vShow.cjs +1 -1
- package/dist/cjs/hooks/json/vText.cjs +1 -1
- package/dist/cjs/hooks/json.cjs +1 -1
- package/dist/cjs/hooks/list.cjs +1 -1
- package/dist/cjs/hooks/manage.cjs +1 -1
- package/dist/cjs/hooks/menu.cjs +1 -1
- package/dist/cjs/hooks/overlay.cjs +1 -1
- package/dist/cjs/hooks/select.cjs +1 -1
- package/dist/cjs/hooks/theme.cjs +4 -8
- package/dist/cjs/hooks/tree.cjs +1 -1
- package/dist/cjs/hooks/upload/index.cjs +1 -0
- package/dist/cjs/hooks/upload/local.cjs +1 -1
- package/dist/cjs/hooks/upload/s3.cjs +1 -1
- package/dist/cjs/hooks/upload.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/main.cjs +1 -1
- package/dist/cjs/preset/authProvider.cjs +1 -1
- package/dist/cjs/preset/dataProvider.cjs +1 -1
- package/dist/cjs/preset/i18nProvider.cjs +1 -1
- package/dist/cjs/preset/index.cjs +1 -0
- package/dist/cjs/provider/app.cjs +1 -1
- package/dist/cjs/provider/index.cjs +1 -0
- package/dist/cjs/provider/tab.cjs +1 -1
- package/dist/cjs/router/index.cjs +1 -0
- package/dist/cjs/router/route.cjs +1 -1
- package/dist/cjs/stores/auth.cjs +1 -1
- package/dist/cjs/stores/i18n.cjs +1 -1
- package/dist/cjs/stores/index.cjs +1 -0
- package/dist/cjs/stores/jsonSchema.cjs +1 -1
- package/dist/cjs/stores/manage.cjs +1 -1
- package/dist/cjs/stores/route.cjs +1 -1
- package/dist/cjs/stores/tab.cjs +1 -1
- package/dist/cjs/stores/theme.cjs +1 -1
- package/dist/cjs/utils/bus.cjs +1 -1
- package/dist/cjs/utils/index.cjs +1 -0
- package/dist/cjs/utils/theme.cjs +8 -8
- package/dist/cjs/utils/tree.cjs +1 -1
- package/dist/esm/_virtual/_rolldown/runtime.js +9 -0
- package/dist/esm/components/auth/can.js +17 -36
- package/dist/esm/components/auth/index.js +1 -0
- package/dist/esm/components/common/icon.js +16 -24
- package/dist/esm/components/common/index.js +2 -0
- package/dist/esm/components/common/logo.js +50 -49
- package/dist/esm/components/index.js +14 -0
- package/dist/esm/components/loader/iframe.js +16 -18
- package/dist/esm/components/loader/index.js +1 -0
- package/dist/esm/components/loader/loader.js +11 -40
- package/dist/esm/components/loader/remote/index.js +2 -0
- package/dist/esm/components/loader/remote/loader.js +118 -156
- package/dist/esm/components/loader/remote/render.js +12 -17
- package/dist/esm/components/overlay/index.js +1 -0
- package/dist/esm/components/overlay/overlay.js +54 -70
- package/dist/esm/components/status/error.js +7 -9
- package/dist/esm/components/status/exception.js +21 -37
- package/dist/esm/components/status/index.js +4 -0
- package/dist/esm/components/status/notAuthorized.js +7 -9
- package/dist/esm/components/status/notFound.js +7 -9
- package/dist/esm/config/color.js +288 -290
- package/dist/esm/directive/index.js +1 -0
- package/dist/esm/directive/permission.js +7 -27
- package/dist/esm/hooks/auth.js +154 -120
- package/dist/esm/hooks/config.js +11 -9
- package/dist/esm/hooks/data.js +416 -415
- package/dist/esm/hooks/export.js +32 -36
- package/dist/esm/hooks/exportCsv.js +42 -46
- package/dist/esm/hooks/form.js +86 -95
- package/dist/esm/hooks/formExtend.js +36 -40
- package/dist/esm/hooks/formValidate.js +22 -25
- package/dist/esm/hooks/i18n.js +14 -18
- package/dist/esm/hooks/import.js +45 -54
- package/dist/esm/hooks/importCsv.js +90 -83
- package/dist/esm/hooks/index.js +31 -0
- package/dist/esm/hooks/json/index.js +14 -22
- package/dist/esm/hooks/json/utils/contextManager.js +35 -26
- package/dist/esm/hooks/json/utils/expressionParser.js +100 -123
- package/dist/esm/hooks/json/vFor.js +50 -55
- package/dist/esm/hooks/json/vIf.js +17 -16
- package/dist/esm/hooks/json/vModel.js +96 -106
- package/dist/esm/hooks/json/vOn.js +30 -32
- package/dist/esm/hooks/json/vShow.js +20 -22
- package/dist/esm/hooks/json/vText.js +44 -51
- package/dist/esm/hooks/json.js +131 -132
- package/dist/esm/hooks/list.js +150 -184
- package/dist/esm/hooks/manage.js +25 -22
- package/dist/esm/hooks/menu.js +57 -61
- package/dist/esm/hooks/overlay.js +6 -23
- package/dist/esm/hooks/select.js +84 -94
- package/dist/esm/hooks/theme.js +289 -219
- package/dist/esm/hooks/tree.js +43 -47
- package/dist/esm/hooks/upload/index.js +2 -0
- package/dist/esm/hooks/upload/local.js +24 -30
- package/dist/esm/hooks/upload/s3.js +70 -80
- package/dist/esm/hooks/upload.js +256 -272
- package/dist/esm/index.js +150 -141
- package/dist/esm/main.js +24 -45
- package/dist/esm/preset/authProvider.js +62 -68
- package/dist/esm/preset/dataProvider.js +154 -180
- package/dist/esm/preset/i18nProvider.js +28 -30
- package/dist/esm/preset/index.js +3 -0
- package/dist/esm/provider/app.js +124 -151
- package/dist/esm/provider/index.js +2 -0
- package/dist/esm/provider/tab.js +49 -66
- package/dist/esm/router/index.js +1 -0
- package/dist/esm/router/route.js +39 -46
- package/dist/esm/stores/auth.js +51 -46
- package/dist/esm/stores/i18n.js +32 -29
- package/dist/esm/stores/index.js +7 -0
- package/dist/esm/stores/jsonSchema.js +47 -34
- package/dist/esm/stores/manage.js +63 -48
- package/dist/esm/stores/route.js +60 -56
- package/dist/esm/stores/tab.js +55 -60
- package/dist/esm/stores/theme.js +48 -55
- package/dist/esm/utils/bus.js +3 -5
- package/dist/esm/utils/index.js +3 -0
- package/dist/esm/utils/theme.js +110 -93
- package/dist/esm/utils/tree.js +28 -37
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,141 +1,150 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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 { initFormValidate as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
1
|
+
import { __exportAll as ee } from "./_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { themeColor as e } from "./config/color.js";
|
|
3
|
+
import { useAuthStore as t } from "./stores/auth.js";
|
|
4
|
+
import { useI18nStore as n } from "./stores/i18n.js";
|
|
5
|
+
import { useJsonSchemaStore as r } from "./stores/jsonSchema.js";
|
|
6
|
+
import { useManageStore as i } from "./stores/manage.js";
|
|
7
|
+
import { useRouteStore as a } from "./stores/route.js";
|
|
8
|
+
import { createTabStore as o, useTabStore as s } from "./stores/tab.js";
|
|
9
|
+
import { useThemeStore as c } from "./stores/theme.js";
|
|
10
|
+
import "./stores/index.js";
|
|
11
|
+
import { useManage as l } from "./hooks/manage.js";
|
|
12
|
+
import { useCan as u, useCheck as d, useError as f, useForgotPassword as p, useGetAuth as m, useIsLogin as h, useLogin as g, useLogout as _, useRegister as v, useUpdatePassword as y } from "./hooks/auth.js";
|
|
13
|
+
import { useConfig as b } from "./hooks/config.js";
|
|
14
|
+
import { useClient as x, useCreate as S, useCreateMany as C, useCustom as w, useCustomMutation as T, useDelete as E, useDeleteMany as D, useInfiniteList as O, useInvalidate as k, useList as A, useMany as j, useOne as M, useUpdate as N, useUpdateMany as P } from "./hooks/data.js";
|
|
15
|
+
import { useExport as F } from "./hooks/export.js";
|
|
16
|
+
import { useExportCsv as I } from "./hooks/exportCsv.js";
|
|
17
|
+
import { useForm as L } from "./hooks/form.js";
|
|
18
|
+
import { initFormValidate as R, useValidateForm as z } from "./hooks/formValidate.js";
|
|
19
|
+
import { useExtendForm as B } from "./hooks/formExtend.js";
|
|
20
|
+
import { useI18n as V } from "./hooks/i18n.js";
|
|
21
|
+
import { useImport as H } from "./hooks/import.js";
|
|
22
|
+
import { useImportCsv as U } from "./hooks/importCsv.js";
|
|
23
|
+
import { vForAdaptor as te } from "./hooks/json/vFor.js";
|
|
24
|
+
import { vIfAdaptor as W } from "./hooks/json/vIf.js";
|
|
25
|
+
import { vModelAdaptor as G } from "./hooks/json/vModel.js";
|
|
26
|
+
import { vOnAdaptor as K } from "./hooks/json/vOn.js";
|
|
27
|
+
import { vShowAdaptor as q } from "./hooks/json/vShow.js";
|
|
28
|
+
import { vTextAdaptor as J } from "./hooks/json/vText.js";
|
|
29
|
+
import { defaultAdaptors as Y } from "./hooks/json/index.js";
|
|
30
|
+
import { initJsonSchemaComponents as X, useJsonSchema as Z } from "./hooks/json.js";
|
|
31
|
+
import { useExtendList as Q } from "./hooks/list.js";
|
|
32
|
+
import { emitter as $ } from "./utils/bus.js";
|
|
33
|
+
import { themePreset as ne } from "./utils/theme.js";
|
|
34
|
+
import { arrayToTree as re, searchTree as ie, treeToArr as ae } from "./utils/tree.js";
|
|
35
|
+
import "./utils/index.js";
|
|
36
|
+
import { useMenu as oe } from "./hooks/menu.js";
|
|
37
|
+
import { useOverlay as se } from "./hooks/overlay.js";
|
|
38
|
+
import { useSelect as ce } from "./hooks/select.js";
|
|
39
|
+
import { useTheme as le } from "./hooks/theme.js";
|
|
40
|
+
import { useTree as ue } from "./hooks/tree.js";
|
|
41
|
+
import { createLocalUploadDriver as de } from "./hooks/upload/local.js";
|
|
42
|
+
import { useUpload as fe } from "./hooks/upload.js";
|
|
43
|
+
import { createS3UploadDriver as pe } from "./hooks/upload/s3.js";
|
|
44
|
+
import "./hooks/index.js";
|
|
45
|
+
import { DuxCan as me } from "./components/auth/can.js";
|
|
46
|
+
import { DuxLogo as he } from "./components/common/logo.js";
|
|
47
|
+
import { DuxLogoIcon as ge } from "./components/common/icon.js";
|
|
48
|
+
import _e from "./components/loader/iframe.js";
|
|
49
|
+
import { DuxOverlay as ve } from "./components/overlay/overlay.js";
|
|
50
|
+
import { DuxError as ye } from "./components/status/error.js";
|
|
51
|
+
import { DuxException as be } from "./components/status/exception.js";
|
|
52
|
+
import { DuxNotAuthorized as xe } from "./components/status/notAuthorized.js";
|
|
53
|
+
import { DuxNotFound as Se } from "./components/status/notFound.js";
|
|
54
|
+
import "./components/index.js";
|
|
55
|
+
import { initRouter as Ce } from "./router/route.js";
|
|
56
|
+
import { createDux as we } from "./main.js";
|
|
57
|
+
import { simpleAuthProvider as Te } from "./preset/authProvider.js";
|
|
58
|
+
import { simpleDataProvider as Ee } from "./preset/dataProvider.js";
|
|
59
|
+
import { i18nProvider as De } from "./preset/i18nProvider.js";
|
|
60
|
+
import "./preset/index.js";
|
|
61
|
+
import { DuxAppProvider as Oe } from "./provider/app.js";
|
|
62
|
+
import { DuxTabRouterView as ke } from "./provider/tab.js";
|
|
63
|
+
import "./provider/index.js";
|
|
64
|
+
import "./router/index.js";
|
|
65
|
+
var Ae = /* @__PURE__ */ ee({
|
|
66
|
+
DuxAppProvider: () => Oe,
|
|
67
|
+
DuxCan: () => me,
|
|
68
|
+
DuxError: () => ye,
|
|
69
|
+
DuxException: () => be,
|
|
70
|
+
DuxLoaderIframe: () => _e,
|
|
71
|
+
DuxLogo: () => he,
|
|
72
|
+
DuxLogoIcon: () => ge,
|
|
73
|
+
DuxNotAuthorized: () => xe,
|
|
74
|
+
DuxNotFound: () => Se,
|
|
75
|
+
DuxOverlay: () => ve,
|
|
76
|
+
DuxTabRouterView: () => ke,
|
|
77
|
+
arrayToTree: () => re,
|
|
78
|
+
createDux: () => we,
|
|
79
|
+
createLocalUploadDriver: () => de,
|
|
80
|
+
createS3UploadDriver: () => pe,
|
|
81
|
+
createTabStore: () => o,
|
|
82
|
+
defaultAdaptors: () => Y,
|
|
83
|
+
emitter: () => $,
|
|
84
|
+
i18nProvider: () => De,
|
|
85
|
+
initFormValidate: () => R,
|
|
86
|
+
initJsonSchemaComponents: () => X,
|
|
87
|
+
initRouter: () => Ce,
|
|
88
|
+
searchTree: () => ie,
|
|
89
|
+
simpleAuthProvider: () => Te,
|
|
90
|
+
simpleDataProvider: () => Ee,
|
|
91
|
+
themeColor: () => e,
|
|
92
|
+
themePreset: () => ne,
|
|
93
|
+
treeToArr: () => ae,
|
|
94
|
+
useAuthStore: () => t,
|
|
95
|
+
useCan: () => u,
|
|
96
|
+
useCheck: () => d,
|
|
97
|
+
useClient: () => x,
|
|
98
|
+
useConfig: () => b,
|
|
99
|
+
useCreate: () => S,
|
|
100
|
+
useCreateMany: () => C,
|
|
101
|
+
useCustom: () => w,
|
|
102
|
+
useCustomMutation: () => T,
|
|
103
|
+
useDelete: () => E,
|
|
104
|
+
useDeleteMany: () => D,
|
|
105
|
+
useError: () => f,
|
|
106
|
+
useExport: () => F,
|
|
107
|
+
useExportCsv: () => I,
|
|
108
|
+
useExtendForm: () => B,
|
|
109
|
+
useExtendList: () => Q,
|
|
110
|
+
useForgotPassword: () => p,
|
|
111
|
+
useForm: () => L,
|
|
112
|
+
useGetAuth: () => m,
|
|
113
|
+
useI18n: () => V,
|
|
114
|
+
useI18nStore: () => n,
|
|
115
|
+
useImport: () => H,
|
|
116
|
+
useImportCsv: () => U,
|
|
117
|
+
useInfiniteList: () => O,
|
|
118
|
+
useInvalidate: () => k,
|
|
119
|
+
useIsLogin: () => h,
|
|
120
|
+
useJsonSchema: () => Z,
|
|
121
|
+
useJsonSchemaStore: () => r,
|
|
122
|
+
useList: () => A,
|
|
123
|
+
useLogin: () => g,
|
|
124
|
+
useLogout: () => _,
|
|
125
|
+
useManage: () => l,
|
|
126
|
+
useManageStore: () => i,
|
|
127
|
+
useMany: () => j,
|
|
128
|
+
useMenu: () => oe,
|
|
129
|
+
useOne: () => M,
|
|
130
|
+
useOverlay: () => se,
|
|
131
|
+
useRegister: () => v,
|
|
132
|
+
useRouteStore: () => a,
|
|
133
|
+
useSelect: () => ce,
|
|
134
|
+
useTabStore: () => s,
|
|
135
|
+
useTheme: () => le,
|
|
136
|
+
useThemeStore: () => c,
|
|
137
|
+
useTree: () => ue,
|
|
138
|
+
useUpdate: () => N,
|
|
139
|
+
useUpdateMany: () => P,
|
|
140
|
+
useUpdatePassword: () => y,
|
|
141
|
+
useUpload: () => fe,
|
|
142
|
+
useValidateForm: () => z,
|
|
143
|
+
vForAdaptor: () => te,
|
|
144
|
+
vIfAdaptor: () => W,
|
|
145
|
+
vModelAdaptor: () => G,
|
|
146
|
+
vOnAdaptor: () => K,
|
|
147
|
+
vShowAdaptor: () => q,
|
|
148
|
+
vTextAdaptor: () => J
|
|
149
|
+
});
|
|
150
|
+
export { Oe as DuxAppProvider, me as DuxCan, ye as DuxError, be as DuxException, _e as DuxLoaderIframe, he as DuxLogo, ge as DuxLogoIcon, xe as DuxNotAuthorized, Se as DuxNotFound, ve as DuxOverlay, ke as DuxTabRouterView, re as arrayToTree, we as createDux, de as createLocalUploadDriver, pe as createS3UploadDriver, o as createTabStore, Y as defaultAdaptors, $ as emitter, De as i18nProvider, R as initFormValidate, X as initJsonSchemaComponents, Ce as initRouter, ie as searchTree, Te as simpleAuthProvider, Ee as simpleDataProvider, Ae as src_exports, e as themeColor, ne as themePreset, ae as treeToArr, t as useAuthStore, u as useCan, d as useCheck, x as useClient, b as useConfig, S as useCreate, C as useCreateMany, w as useCustom, T as useCustomMutation, E as useDelete, D as useDeleteMany, f as useError, F as useExport, I as useExportCsv, B as useExtendForm, Q as useExtendList, p as useForgotPassword, L as useForm, m as useGetAuth, V as useI18n, n as useI18nStore, H as useImport, U as useImportCsv, O as useInfiniteList, k as useInvalidate, h as useIsLogin, Z as useJsonSchema, r as useJsonSchemaStore, A as useList, g as useLogin, _ as useLogout, l as useManage, i as useManageStore, j as useMany, oe as useMenu, M as useOne, se as useOverlay, v as useRegister, a as useRouteStore, ce as useSelect, s as useTabStore, le as useTheme, c as useThemeStore, ue as useTree, N as useUpdate, P as useUpdateMany, y as useUpdatePassword, fe as useUpload, z as useValidateForm, te as vForAdaptor, W as vIfAdaptor, G as vModelAdaptor, K as vOnAdaptor, q as vShowAdaptor, J as vTextAdaptor };
|
package/dist/esm/main.js
CHANGED
|
@@ -1,46 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import "vue
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
staleTime: 60 * 1e3,
|
|
25
|
-
refetchOnMount: !0,
|
|
26
|
-
refetchOnWindowFocus: !0,
|
|
27
|
-
refetchOnReconnect: !0
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
return {
|
|
32
|
-
install(r) {
|
|
33
|
-
console.log(
|
|
34
|
-
"%c dux-vue %c dux.cn %c",
|
|
35
|
-
"background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff",
|
|
36
|
-
"background:#41b883 ; padding: 1px; border-radius: 0 3px 3px 0; color: #fff",
|
|
37
|
-
"background:transparent"
|
|
38
|
-
), s();
|
|
39
|
-
const t = p();
|
|
40
|
-
r.provide("dux.config", e), r.provide("dux.manage", t), r.directive("can", d), r.use(i), r.use(u, { queryClient: o }), r.use(a(e));
|
|
41
|
-
}
|
|
42
|
-
};
|
|
1
|
+
import { initFormValidate as e } from "./hooks/formValidate.js";
|
|
2
|
+
import "./hooks/index.js";
|
|
3
|
+
import { permissionDirective as t } from "./directive/permission.js";
|
|
4
|
+
import "./directive/index.js";
|
|
5
|
+
import { initRouter as n } from "./router/route.js";
|
|
6
|
+
import { ref as r } from "vue";
|
|
7
|
+
import { createPinia as i } from "pinia";
|
|
8
|
+
import { QueryClient as a, VueQueryPlugin as o } from "@tanstack/vue-query";
|
|
9
|
+
import s from "pinia-plugin-persistedstate";
|
|
10
|
+
function c(c) {
|
|
11
|
+
let l = i();
|
|
12
|
+
l.use(s);
|
|
13
|
+
let u = new a({ defaultOptions: { queries: {
|
|
14
|
+
staleTime: 60 * 1e3,
|
|
15
|
+
refetchOnMount: !0,
|
|
16
|
+
refetchOnWindowFocus: !0,
|
|
17
|
+
refetchOnReconnect: !0
|
|
18
|
+
} } });
|
|
19
|
+
return { install(i) {
|
|
20
|
+
console.log("%c dux-vue %c dux.cn %c", "background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff", "background:#41b883 ; padding: 1px; border-radius: 0 3px 3px 0; color: #fff", "background:transparent"), e();
|
|
21
|
+
let a = r();
|
|
22
|
+
i.provide("dux.config", c), i.provide("dux.manage", a), i.directive("can", t), i.use(l), i.use(o, { queryClient: u }), i.use(n(c));
|
|
23
|
+
} };
|
|
43
24
|
}
|
|
44
|
-
export {
|
|
45
|
-
Q as createDux
|
|
46
|
-
};
|
|
25
|
+
export { c as createDux };
|
|
@@ -1,69 +1,63 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
message: e?.response?.data?.message || e?.message
|
|
63
|
-
})),
|
|
64
|
-
can: (t, r, e, s) => !s?.permission || Array.isArray(s?.permission) && s?.permission?.length === 0 || typeof s?.permission == "object" && Object.keys(s?.permission).length === 0 ? !0 : !(Array.isArray(s?.permission) && !s?.permission?.includes(t) || typeof s?.permission == "object" && s?.permission[t] === !1)
|
|
65
|
-
};
|
|
1
|
+
import e from "axios";
|
|
2
|
+
function t(t) {
|
|
3
|
+
return {
|
|
4
|
+
login: async (n, r) => await e.post(r.getApiUrl(t?.apiPath?.login || "/login", t?.dataProviderName), n).then((e) => ({
|
|
5
|
+
success: !0,
|
|
6
|
+
message: e?.data?.message,
|
|
7
|
+
redirectTo: t?.routePath?.index || "/",
|
|
8
|
+
data: e?.data?.data
|
|
9
|
+
})).catch((e) => ({
|
|
10
|
+
success: !1,
|
|
11
|
+
message: e?.response?.data?.message || e?.message
|
|
12
|
+
})),
|
|
13
|
+
check: async (n, r, i) => await e.get(r?.getApiUrl(t?.apiPath?.check || "/check", t?.dataProviderName) || "", { headers: { Authorization: i?.token || "" } }).then((e) => ({
|
|
14
|
+
success: !0,
|
|
15
|
+
logout: !1,
|
|
16
|
+
message: e?.data?.message,
|
|
17
|
+
data: e?.data?.data
|
|
18
|
+
})).catch((e) => ({
|
|
19
|
+
success: !1,
|
|
20
|
+
logout: e.status === 401,
|
|
21
|
+
message: e?.response?.data?.message || e?.message
|
|
22
|
+
})),
|
|
23
|
+
onError: async (e) => e?.status === 401 ? {
|
|
24
|
+
logout: !0,
|
|
25
|
+
redirectTo: t?.routePath?.login || "/login",
|
|
26
|
+
error: e
|
|
27
|
+
} : {
|
|
28
|
+
logout: !1,
|
|
29
|
+
error: e
|
|
30
|
+
},
|
|
31
|
+
logout: async () => ({
|
|
32
|
+
success: !0,
|
|
33
|
+
redirectTo: t?.routePath?.login || "/login"
|
|
34
|
+
}),
|
|
35
|
+
register: async (n, r) => await e.post(r?.getApiUrl(t?.apiPath?.register || "/register", t?.dataProviderName) || "", n).then((e) => ({
|
|
36
|
+
success: !0,
|
|
37
|
+
message: e?.data?.message,
|
|
38
|
+
redirectTo: t?.routePath?.index || "/",
|
|
39
|
+
data: e?.data?.data
|
|
40
|
+
})).catch((e) => ({
|
|
41
|
+
success: !1,
|
|
42
|
+
message: e?.response?.data?.message || e?.message
|
|
43
|
+
})),
|
|
44
|
+
forgotPassword: async (n, r) => await e.post(r?.getApiUrl(t?.apiPath?.forgotPassword || "/forgot-password", t?.dataProviderName) || "", n).then((e) => ({
|
|
45
|
+
success: !0,
|
|
46
|
+
message: e?.data?.message,
|
|
47
|
+
redirectTo: t?.routePath?.login || "/login"
|
|
48
|
+
})).catch((e) => ({
|
|
49
|
+
success: !1,
|
|
50
|
+
message: e?.response?.data?.message || e?.message
|
|
51
|
+
})),
|
|
52
|
+
updatePassword: async (n, r) => await e.post(r?.getApiUrl(t?.apiPath?.updatePassword || "/update-password", t?.dataProviderName) || "", n).then((e) => ({
|
|
53
|
+
success: !0,
|
|
54
|
+
message: e?.data?.message,
|
|
55
|
+
redirectTo: t?.routePath?.login || "/login"
|
|
56
|
+
})).catch((e) => ({
|
|
57
|
+
success: !1,
|
|
58
|
+
message: e?.response?.data?.message || e?.message
|
|
59
|
+
})),
|
|
60
|
+
can: (e, t, n, r) => !r?.permission || Array.isArray(r?.permission) && r?.permission?.length === 0 || typeof r?.permission == "object" && Object.keys(r?.permission).length === 0 ? !0 : !(Array.isArray(r?.permission) && !r?.permission?.includes(e) || typeof r?.permission == "object" && r?.permission[e] === !1)
|
|
61
|
+
};
|
|
66
62
|
}
|
|
67
|
-
export {
|
|
68
|
-
o as simpleAuthProvider
|
|
69
|
-
};
|
|
63
|
+
export { t as simpleAuthProvider };
|