@duxweb/dvha-core 0.1.20 → 0.1.21
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/_commonjsHelpers.cjs +1 -0
- package/dist/cjs/_virtual/dayjs.min.cjs +1 -0
- package/dist/cjs/_virtual/dayjs.min2.cjs +1 -0
- package/dist/cjs/components/auth/can.cjs +1 -1
- package/dist/cjs/components/loader/iframe.cjs +1 -1
- package/dist/cjs/components/loader/loader.cjs +1 -0
- package/dist/cjs/components/loader/remote/loader.cjs +1 -0
- package/dist/cjs/components/loader/remote/render.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 -0
- package/dist/cjs/components/status/notAuthorized.cjs +1 -1
- package/dist/cjs/components/status/notFound.cjs +1 -1
- package/dist/cjs/directive/permission.cjs +1 -1
- package/dist/cjs/hooks/auth.cjs +1 -1
- package/dist/cjs/hooks/data.cjs +1 -1
- package/dist/cjs/hooks/export.cjs +1 -1
- package/dist/cjs/hooks/form.cjs +1 -1
- package/dist/cjs/hooks/formExtend.cjs +1 -0
- package/dist/cjs/hooks/formValidate.cjs +1 -0
- package/dist/cjs/hooks/i18n.cjs +1 -1
- package/dist/cjs/hooks/importCsv.cjs +1 -1
- package/dist/cjs/hooks/json.cjs +1 -1
- package/dist/cjs/hooks/list.cjs +1 -0
- 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 +2 -2
- 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/node_modules/dayjs/dayjs.min.cjs +1 -0
- package/dist/cjs/node_modules/mitt/dist/mitt.cjs +1 -0
- package/dist/cjs/preset/dataProvider.cjs +1 -1
- package/dist/cjs/preset/i18nProvider.cjs +1 -1
- package/dist/cjs/provider/app.cjs +1 -1
- package/dist/cjs/stores/manage.cjs +1 -1
- package/dist/cjs/stores/tab.cjs +1 -1
- package/dist/cjs/stores/theme.cjs +1 -1
- package/dist/cjs/utils/theme.cjs +9 -1
- package/dist/esm/_virtual/_commonjsHelpers.js +6 -0
- package/dist/esm/_virtual/dayjs.min.js +7 -0
- package/dist/esm/_virtual/dayjs.min2.js +4 -0
- package/dist/esm/components/auth/can.js +9 -7
- package/dist/esm/components/loader/loader.js +47 -0
- package/dist/esm/components/loader/remote/loader.js +150 -0
- package/dist/esm/components/loader/remote/render.js +19 -0
- package/dist/esm/components/overlay/overlay.js +22 -31
- package/dist/esm/components/status/error.js +3 -3
- package/dist/esm/components/status/exception.js +23 -0
- package/dist/esm/components/status/notAuthorized.js +2 -2
- package/dist/esm/components/status/notFound.js +4 -4
- package/dist/esm/directive/permission.js +5 -3
- package/dist/esm/hooks/auth.js +67 -67
- package/dist/esm/hooks/data.js +164 -160
- package/dist/esm/hooks/export.js +26 -23
- package/dist/esm/hooks/form.js +38 -35
- package/dist/esm/hooks/formExtend.js +38 -0
- package/dist/esm/hooks/formValidate.js +28 -0
- package/dist/esm/hooks/i18n.js +16 -8
- package/dist/esm/hooks/json.js +57 -57
- package/dist/esm/hooks/list.js +179 -0
- package/dist/esm/hooks/manage.js +19 -14
- package/dist/esm/hooks/overlay.js +6 -4
- package/dist/esm/hooks/theme.js +11 -11
- package/dist/esm/index.js +129 -113
- package/dist/esm/main.js +22 -12
- package/dist/esm/node_modules/dayjs/dayjs.min.js +282 -0
- package/dist/esm/node_modules/mitt/dist/mitt.js +19 -0
- package/dist/esm/preset/i18nProvider.js +17 -18
- package/dist/esm/provider/app.js +61 -53
- package/dist/esm/stores/manage.js +23 -15
- package/dist/esm/stores/tab.js +58 -49
- package/dist/esm/utils/theme.js +89 -76
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/components/loader/loader.d.ts +2 -0
- package/dist/types/components/loader/remote/index.d.ts +2 -0
- package/dist/types/components/loader/remote/loader.d.ts +1 -0
- package/dist/types/components/loader/remote/render.d.ts +1 -0
- package/dist/types/components/status/error.d.ts +1 -2
- package/dist/types/components/status/exception.d.ts +3 -0
- package/dist/types/components/status/index.d.ts +4 -0
- package/dist/types/components/status/notAuthorized.d.ts +1 -2
- package/dist/types/components/status/notFound.d.ts +1 -2
- package/dist/types/config/index.d.ts +1 -0
- package/dist/types/hooks/auth.d.ts +6 -6
- package/dist/types/hooks/data.d.ts +30 -30
- package/dist/types/hooks/form.d.ts +6 -3
- package/dist/types/hooks/formExtend.d.ts +12 -0
- package/dist/types/hooks/formValidate.d.ts +14 -0
- package/dist/types/hooks/i18n.d.ts +2 -0
- package/dist/types/hooks/import.d.ts +1 -2
- package/dist/types/hooks/index.d.ts +4 -1
- package/dist/types/hooks/json.d.ts +1 -1
- package/dist/types/hooks/list.d.ts +66 -0
- package/dist/types/hooks/manage.d.ts +1 -0
- package/dist/types/index.d.ts +6 -5
- package/dist/types/preset/i18nProvider.d.ts +1 -1
- package/dist/types/stores/route.d.ts +180 -180
- package/dist/types/stores/tab.d.ts +1112 -73
- package/dist/types/types/config.d.ts +9 -0
- package/dist/types/types/i18n.d.ts +1 -0
- package/dist/types/types/manage.d.ts +6 -0
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/theme.d.ts +4 -49
- package/package.json +11 -5
- /package/dist/cjs/{hooks/themeColor.cjs → config/color.cjs} +0 -0
- /package/dist/esm/{hooks/themeColor.js → config/color.js} +0 -0
- /package/dist/types/{hooks/themeColor.d.ts → config/color.d.ts} +0 -0
package/dist/esm/index.js
CHANGED
|
@@ -1,118 +1,134 @@
|
|
|
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 {
|
|
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 { arrayToTree as ke, searchTree as Ge, treeToArr as Je } from "./utils/tree.js";
|
|
35
|
-
import { themePreset as je } from "./utils/theme.js";
|
|
36
|
-
import { DuxAppProvider as ze } from "./provider/app.js";
|
|
37
|
-
import { DuxTabRouterView as He } from "./provider/tab.js";
|
|
1
|
+
import { DuxCan as o } from "./components/auth/can.js";
|
|
2
|
+
import { DuxLogo as p } from "./components/common/logo.js";
|
|
3
|
+
import { DuxLogoIcon as x } from "./components/common/icon.js";
|
|
4
|
+
import { default as s } from "./components/loader/iframe.js";
|
|
5
|
+
import { DuxOverlay as a } from "./components/overlay/overlay.js";
|
|
6
|
+
import { DuxError as i } from "./components/status/error.js";
|
|
7
|
+
import { DuxException as l } from "./components/status/exception.js";
|
|
8
|
+
import { DuxNotAuthorized as D } from "./components/status/notAuthorized.js";
|
|
9
|
+
import { DuxNotFound as h } from "./components/status/notFound.js";
|
|
10
|
+
import { themeColor as c } from "./config/color.js";
|
|
11
|
+
import { useCan as g, useCheck as I, useError as L, useForgotPassword as T, useGetAuth as M, useIsLogin as y, useLogin as E, useLogout as F, useRegister as P, useUpdatePassword as U } from "./hooks/auth.js";
|
|
12
|
+
import { useConfig as O } from "./hooks/config.js";
|
|
13
|
+
import { useClient as b, useCreate as V, useCreateMany as N, useCustom as k, useCustomMutation as z, useDelete as G, useDeleteMany as J, useInfiniteList as j, useInvalidate as q, useList as B, useMany as H, useOne as K, useUpdate as Q, useUpdateMany as W } from "./hooks/data.js";
|
|
14
|
+
import { useExport as Y } from "./hooks/export.js";
|
|
15
|
+
import { useExportCsv as _ } from "./hooks/exportCsv.js";
|
|
16
|
+
import { useForm as ee } from "./hooks/form.js";
|
|
17
|
+
import { useExtendForm as oe } from "./hooks/formExtend.js";
|
|
18
|
+
import { initFormValidate as pe, useValidateForm as ue } from "./hooks/formValidate.js";
|
|
19
|
+
import { useI18n as me } from "./hooks/i18n.js";
|
|
20
|
+
import { useImport as fe } from "./hooks/import.js";
|
|
21
|
+
import { useImportCsv as de } from "./hooks/importCsv.js";
|
|
22
|
+
import { useJsonSchema as ne } from "./hooks/json.js";
|
|
23
|
+
import { defaultAdaptors as ve } from "./hooks/json/index.js";
|
|
24
|
+
import { useExtendList as Ae } from "./hooks/list.js";
|
|
25
|
+
import { useManage as Ce } from "./hooks/manage.js";
|
|
26
|
+
import { useMenu as Se } from "./hooks/menu.js";
|
|
27
|
+
import { useOverlay as Ie } from "./hooks/overlay.js";
|
|
28
|
+
import { useSelect as Te } from "./hooks/select.js";
|
|
29
|
+
import { useTheme as ye } from "./hooks/theme.js";
|
|
30
|
+
import { useUpload as Fe } from "./hooks/upload.js";
|
|
31
|
+
import { createLocalUploadDriver as Ue } from "./hooks/upload/local.js";
|
|
32
|
+
import { createS3UploadDriver as Oe } from "./hooks/upload/s3.js";
|
|
33
|
+
import { createDux as be } from "./main.js";
|
|
38
34
|
import { simpleAuthProvider as Ne } from "./preset/authProvider.js";
|
|
39
|
-
import { simpleDataProvider as
|
|
40
|
-
import { i18nProvider as
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
35
|
+
import { simpleDataProvider as ze } from "./preset/dataProvider.js";
|
|
36
|
+
import { i18nProvider as Je } from "./preset/i18nProvider.js";
|
|
37
|
+
import { DuxAppProvider as qe } from "./provider/app.js";
|
|
38
|
+
import { DuxTabRouterView as He } from "./provider/tab.js";
|
|
39
|
+
import { initRouter as Qe } from "./router/route.js";
|
|
40
|
+
import { useAuthStore as Xe } from "./stores/auth.js";
|
|
41
|
+
import { useRouteStore as Ze } from "./stores/route.js";
|
|
42
|
+
import { createTabStore as $e, useTabStore as er } from "./stores/tab.js";
|
|
43
|
+
import { useManageStore as or } from "./stores/manage.js";
|
|
44
|
+
import { useI18nStore as pr } from "./stores/i18n.js";
|
|
45
|
+
import { useThemeStore as xr } from "./stores/theme.js";
|
|
46
|
+
import { themePreset as sr } from "./utils/theme.js";
|
|
47
|
+
import { arrayToTree as ar, searchTree as dr, treeToArr as ir } from "./utils/tree.js";
|
|
48
|
+
import { vForAdaptor as lr } from "./hooks/json/vFor.js";
|
|
49
|
+
import { vIfAdaptor as Dr } from "./hooks/json/vIf.js";
|
|
50
|
+
import { vModelAdaptor as hr } from "./hooks/json/vModel.js";
|
|
51
|
+
import { vOnAdaptor as cr } from "./hooks/json/vOn.js";
|
|
52
|
+
import { vShowAdaptor as gr } from "./hooks/json/vShow.js";
|
|
53
|
+
import { vTextAdaptor as Lr } from "./hooks/json/vText.js";
|
|
47
54
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
qe as DuxAppProvider,
|
|
56
|
+
o as DuxCan,
|
|
57
|
+
i as DuxError,
|
|
58
|
+
l as DuxException,
|
|
59
|
+
s as DuxLoaderIframe,
|
|
60
|
+
p as DuxLogo,
|
|
61
|
+
x as DuxLogoIcon,
|
|
62
|
+
D as DuxNotAuthorized,
|
|
63
|
+
h as DuxNotFound,
|
|
64
|
+
a as DuxOverlay,
|
|
54
65
|
He as DuxTabRouterView,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
66
|
+
ar as arrayToTree,
|
|
67
|
+
be as createDux,
|
|
68
|
+
Ue as createLocalUploadDriver,
|
|
69
|
+
Oe as createS3UploadDriver,
|
|
70
|
+
$e as createTabStore,
|
|
71
|
+
ve as defaultAdaptors,
|
|
72
|
+
Je as i18nProvider,
|
|
73
|
+
pe as initFormValidate,
|
|
74
|
+
Qe as initRouter,
|
|
75
|
+
dr as searchTree,
|
|
63
76
|
Ne as simpleAuthProvider,
|
|
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
|
-
|
|
77
|
+
ze as simpleDataProvider,
|
|
78
|
+
c as themeColor,
|
|
79
|
+
sr as themePreset,
|
|
80
|
+
ir as treeToArr,
|
|
81
|
+
Xe as useAuthStore,
|
|
82
|
+
g as useCan,
|
|
83
|
+
I as useCheck,
|
|
84
|
+
b as useClient,
|
|
85
|
+
O as useConfig,
|
|
86
|
+
V as useCreate,
|
|
87
|
+
N as useCreateMany,
|
|
88
|
+
k as useCustom,
|
|
89
|
+
z as useCustomMutation,
|
|
90
|
+
G as useDelete,
|
|
91
|
+
J as useDeleteMany,
|
|
92
|
+
L as useError,
|
|
93
|
+
Y as useExport,
|
|
94
|
+
_ as useExportCsv,
|
|
95
|
+
oe as useExtendForm,
|
|
96
|
+
Ae as useExtendList,
|
|
97
|
+
T as useForgotPassword,
|
|
98
|
+
ee as useForm,
|
|
99
|
+
M as useGetAuth,
|
|
100
|
+
me as useI18n,
|
|
101
|
+
pr as useI18nStore,
|
|
102
|
+
fe as useImport,
|
|
103
|
+
de as useImportCsv,
|
|
104
|
+
j as useInfiniteList,
|
|
105
|
+
q as useInvalidate,
|
|
106
|
+
y as useIsLogin,
|
|
107
|
+
ne as useJsonSchema,
|
|
108
|
+
B as useList,
|
|
109
|
+
E as useLogin,
|
|
110
|
+
F as useLogout,
|
|
111
|
+
Ce as useManage,
|
|
112
|
+
or as useManageStore,
|
|
113
|
+
H as useMany,
|
|
114
|
+
Se as useMenu,
|
|
115
|
+
K as useOne,
|
|
116
|
+
Ie as useOverlay,
|
|
117
|
+
P as useRegister,
|
|
118
|
+
Ze as useRouteStore,
|
|
119
|
+
Te as useSelect,
|
|
120
|
+
er as useTabStore,
|
|
121
|
+
ye as useTheme,
|
|
122
|
+
xr as useThemeStore,
|
|
123
|
+
Q as useUpdate,
|
|
124
|
+
W as useUpdateMany,
|
|
125
|
+
U as useUpdatePassword,
|
|
126
|
+
Fe as useUpload,
|
|
127
|
+
ue as useValidateForm,
|
|
128
|
+
lr as vForAdaptor,
|
|
129
|
+
Dr as vIfAdaptor,
|
|
130
|
+
hr as vModelAdaptor,
|
|
131
|
+
cr as vOnAdaptor,
|
|
132
|
+
gr as vShowAdaptor,
|
|
133
|
+
Lr as vTextAdaptor
|
|
118
134
|
};
|
package/dist/esm/main.js
CHANGED
|
@@ -1,24 +1,34 @@
|
|
|
1
|
-
import { VueQueryPlugin as
|
|
2
|
-
import { createPinia as
|
|
3
|
-
import
|
|
4
|
-
import { ref as
|
|
5
|
-
import { permissionDirective as
|
|
1
|
+
import { VueQueryPlugin as e } from "@tanstack/vue-query";
|
|
2
|
+
import { createPinia as m } from "pinia";
|
|
3
|
+
import n from "pinia-plugin-persistedstate";
|
|
4
|
+
import { ref as u } from "vue";
|
|
5
|
+
import { permissionDirective as p } from "./directive/permission.js";
|
|
6
|
+
import "vue-router";
|
|
7
|
+
import "lodash-es";
|
|
8
|
+
import "json-2-csv";
|
|
9
|
+
import { initFormValidate as d } from "./hooks/formValidate.js";
|
|
10
|
+
import "@vueuse/core";
|
|
11
|
+
import "./hooks/json/index.js";
|
|
12
|
+
import "@overlastic/vue";
|
|
13
|
+
import "clsx";
|
|
14
|
+
import "colorizr";
|
|
15
|
+
import "axios";
|
|
6
16
|
import { initRouter as a } from "./router/route.js";
|
|
7
|
-
function
|
|
8
|
-
const o =
|
|
9
|
-
return o.use(
|
|
17
|
+
function h(i) {
|
|
18
|
+
const o = m();
|
|
19
|
+
return o.use(n), {
|
|
10
20
|
install(r) {
|
|
11
21
|
console.log(
|
|
12
22
|
"%c dux-vue %c dux.cn %c",
|
|
13
23
|
"background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff",
|
|
14
24
|
"background:#41b883 ; padding: 1px; border-radius: 0 3px 3px 0; color: #fff",
|
|
15
25
|
"background:transparent"
|
|
16
|
-
);
|
|
17
|
-
const
|
|
18
|
-
r.provide("dux.config",
|
|
26
|
+
), d();
|
|
27
|
+
const t = u();
|
|
28
|
+
r.provide("dux.config", i), r.provide("dux.manage", t), r.directive("can", p), r.use(o), r.use(e), r.use(a(i));
|
|
19
29
|
}
|
|
20
30
|
};
|
|
21
31
|
}
|
|
22
32
|
export {
|
|
23
|
-
|
|
33
|
+
h as createDux
|
|
24
34
|
};
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { __module as C } from "../../_virtual/dayjs.min2.js";
|
|
2
|
+
var G = C.exports, V;
|
|
3
|
+
function tt() {
|
|
4
|
+
return V ? C.exports : (V = 1, function(B, K) {
|
|
5
|
+
(function(A, k) {
|
|
6
|
+
B.exports = k();
|
|
7
|
+
})(G, function() {
|
|
8
|
+
var A = 1e3, k = 6e4, q = 36e5, I = "millisecond", S = "second", w = "minute", _ = "hour", M = "day", T = "week", m = "month", F = "quarter", y = "year", O = "date", J = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, P = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, Q = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(i) {
|
|
9
|
+
var n = ["th", "st", "nd", "rd"], t = i % 100;
|
|
10
|
+
return "[" + i + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
|
|
11
|
+
} }, N = function(i, n, t) {
|
|
12
|
+
var r = String(i);
|
|
13
|
+
return !r || r.length >= n ? i : "" + Array(n + 1 - r.length).join(t) + i;
|
|
14
|
+
}, R = { s: N, z: function(i) {
|
|
15
|
+
var n = -i.utcOffset(), t = Math.abs(n), r = Math.floor(t / 60), e = t % 60;
|
|
16
|
+
return (n <= 0 ? "+" : "-") + N(r, 2, "0") + ":" + N(e, 2, "0");
|
|
17
|
+
}, m: function i(n, t) {
|
|
18
|
+
if (n.date() < t.date()) return -i(t, n);
|
|
19
|
+
var r = 12 * (t.year() - n.year()) + (t.month() - n.month()), e = n.clone().add(r, m), s = t - e < 0, u = n.clone().add(r + (s ? -1 : 1), m);
|
|
20
|
+
return +(-(r + (t - e) / (s ? e - u : u - e)) || 0);
|
|
21
|
+
}, a: function(i) {
|
|
22
|
+
return i < 0 ? Math.ceil(i) || 0 : Math.floor(i);
|
|
23
|
+
}, p: function(i) {
|
|
24
|
+
return { M: m, y, w: T, d: M, D: O, h: _, m: w, s: S, ms: I, Q: F }[i] || String(i || "").toLowerCase().replace(/s$/, "");
|
|
25
|
+
}, u: function(i) {
|
|
26
|
+
return i === void 0;
|
|
27
|
+
} }, x = "en", D = {};
|
|
28
|
+
D[x] = Q;
|
|
29
|
+
var Z = "$isDayjsObject", U = function(i) {
|
|
30
|
+
return i instanceof L || !(!i || !i[Z]);
|
|
31
|
+
}, j = function i(n, t, r) {
|
|
32
|
+
var e;
|
|
33
|
+
if (!n) return x;
|
|
34
|
+
if (typeof n == "string") {
|
|
35
|
+
var s = n.toLowerCase();
|
|
36
|
+
D[s] && (e = s), t && (D[s] = t, e = s);
|
|
37
|
+
var u = n.split("-");
|
|
38
|
+
if (!e && u.length > 1) return i(u[0]);
|
|
39
|
+
} else {
|
|
40
|
+
var o = n.name;
|
|
41
|
+
D[o] = n, e = o;
|
|
42
|
+
}
|
|
43
|
+
return !r && e && (x = e), e || !r && x;
|
|
44
|
+
}, f = function(i, n) {
|
|
45
|
+
if (U(i)) return i.clone();
|
|
46
|
+
var t = typeof n == "object" ? n : {};
|
|
47
|
+
return t.date = i, t.args = arguments, new L(t);
|
|
48
|
+
}, a = R;
|
|
49
|
+
a.l = j, a.i = U, a.w = function(i, n) {
|
|
50
|
+
return f(i, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
|
|
51
|
+
};
|
|
52
|
+
var L = function() {
|
|
53
|
+
function i(t) {
|
|
54
|
+
this.$L = j(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[Z] = !0;
|
|
55
|
+
}
|
|
56
|
+
var n = i.prototype;
|
|
57
|
+
return n.parse = function(t) {
|
|
58
|
+
this.$d = function(r) {
|
|
59
|
+
var e = r.date, s = r.utc;
|
|
60
|
+
if (e === null) return /* @__PURE__ */ new Date(NaN);
|
|
61
|
+
if (a.u(e)) return /* @__PURE__ */ new Date();
|
|
62
|
+
if (e instanceof Date) return new Date(e);
|
|
63
|
+
if (typeof e == "string" && !/Z$/i.test(e)) {
|
|
64
|
+
var u = e.match(E);
|
|
65
|
+
if (u) {
|
|
66
|
+
var o = u[2] - 1 || 0, c = (u[7] || "0").substring(0, 3);
|
|
67
|
+
return s ? new Date(Date.UTC(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c)) : new Date(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return new Date(e);
|
|
71
|
+
}(t), this.init();
|
|
72
|
+
}, n.init = function() {
|
|
73
|
+
var t = this.$d;
|
|
74
|
+
this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
|
|
75
|
+
}, n.$utils = function() {
|
|
76
|
+
return a;
|
|
77
|
+
}, n.isValid = function() {
|
|
78
|
+
return this.$d.toString() !== J;
|
|
79
|
+
}, n.isSame = function(t, r) {
|
|
80
|
+
var e = f(t);
|
|
81
|
+
return this.startOf(r) <= e && e <= this.endOf(r);
|
|
82
|
+
}, n.isAfter = function(t, r) {
|
|
83
|
+
return f(t) < this.startOf(r);
|
|
84
|
+
}, n.isBefore = function(t, r) {
|
|
85
|
+
return this.endOf(r) < f(t);
|
|
86
|
+
}, n.$g = function(t, r, e) {
|
|
87
|
+
return a.u(t) ? this[r] : this.set(e, t);
|
|
88
|
+
}, n.unix = function() {
|
|
89
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
90
|
+
}, n.valueOf = function() {
|
|
91
|
+
return this.$d.getTime();
|
|
92
|
+
}, n.startOf = function(t, r) {
|
|
93
|
+
var e = this, s = !!a.u(r) || r, u = a.p(t), o = function(p, $) {
|
|
94
|
+
var v = a.w(e.$u ? Date.UTC(e.$y, $, p) : new Date(e.$y, $, p), e);
|
|
95
|
+
return s ? v : v.endOf(M);
|
|
96
|
+
}, c = function(p, $) {
|
|
97
|
+
return a.w(e.toDate()[p].apply(e.toDate("s"), (s ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), e);
|
|
98
|
+
}, h = this.$W, d = this.$M, l = this.$D, b = "set" + (this.$u ? "UTC" : "");
|
|
99
|
+
switch (u) {
|
|
100
|
+
case y:
|
|
101
|
+
return s ? o(1, 0) : o(31, 11);
|
|
102
|
+
case m:
|
|
103
|
+
return s ? o(1, d) : o(0, d + 1);
|
|
104
|
+
case T:
|
|
105
|
+
var g = this.$locale().weekStart || 0, Y = (h < g ? h + 7 : h) - g;
|
|
106
|
+
return o(s ? l - Y : l + (6 - Y), d);
|
|
107
|
+
case M:
|
|
108
|
+
case O:
|
|
109
|
+
return c(b + "Hours", 0);
|
|
110
|
+
case _:
|
|
111
|
+
return c(b + "Minutes", 1);
|
|
112
|
+
case w:
|
|
113
|
+
return c(b + "Seconds", 2);
|
|
114
|
+
case S:
|
|
115
|
+
return c(b + "Milliseconds", 3);
|
|
116
|
+
default:
|
|
117
|
+
return this.clone();
|
|
118
|
+
}
|
|
119
|
+
}, n.endOf = function(t) {
|
|
120
|
+
return this.startOf(t, !1);
|
|
121
|
+
}, n.$set = function(t, r) {
|
|
122
|
+
var e, s = a.p(t), u = "set" + (this.$u ? "UTC" : ""), o = (e = {}, e[M] = u + "Date", e[O] = u + "Date", e[m] = u + "Month", e[y] = u + "FullYear", e[_] = u + "Hours", e[w] = u + "Minutes", e[S] = u + "Seconds", e[I] = u + "Milliseconds", e)[s], c = s === M ? this.$D + (r - this.$W) : r;
|
|
123
|
+
if (s === m || s === y) {
|
|
124
|
+
var h = this.clone().set(O, 1);
|
|
125
|
+
h.$d[o](c), h.init(), this.$d = h.set(O, Math.min(this.$D, h.daysInMonth())).$d;
|
|
126
|
+
} else o && this.$d[o](c);
|
|
127
|
+
return this.init(), this;
|
|
128
|
+
}, n.set = function(t, r) {
|
|
129
|
+
return this.clone().$set(t, r);
|
|
130
|
+
}, n.get = function(t) {
|
|
131
|
+
return this[a.p(t)]();
|
|
132
|
+
}, n.add = function(t, r) {
|
|
133
|
+
var e, s = this;
|
|
134
|
+
t = Number(t);
|
|
135
|
+
var u = a.p(r), o = function(d) {
|
|
136
|
+
var l = f(s);
|
|
137
|
+
return a.w(l.date(l.date() + Math.round(d * t)), s);
|
|
138
|
+
};
|
|
139
|
+
if (u === m) return this.set(m, this.$M + t);
|
|
140
|
+
if (u === y) return this.set(y, this.$y + t);
|
|
141
|
+
if (u === M) return o(1);
|
|
142
|
+
if (u === T) return o(7);
|
|
143
|
+
var c = (e = {}, e[w] = k, e[_] = q, e[S] = A, e)[u] || 1, h = this.$d.getTime() + t * c;
|
|
144
|
+
return a.w(h, this);
|
|
145
|
+
}, n.subtract = function(t, r) {
|
|
146
|
+
return this.add(-1 * t, r);
|
|
147
|
+
}, n.format = function(t) {
|
|
148
|
+
var r = this, e = this.$locale();
|
|
149
|
+
if (!this.isValid()) return e.invalidDate || J;
|
|
150
|
+
var s = t || "YYYY-MM-DDTHH:mm:ssZ", u = a.z(this), o = this.$H, c = this.$m, h = this.$M, d = e.weekdays, l = e.months, b = e.meridiem, g = function($, v, H, W) {
|
|
151
|
+
return $ && ($[v] || $(r, s)) || H[v].slice(0, W);
|
|
152
|
+
}, Y = function($) {
|
|
153
|
+
return a.s(o % 12 || 12, $, "0");
|
|
154
|
+
}, p = b || function($, v, H) {
|
|
155
|
+
var W = $ < 12 ? "AM" : "PM";
|
|
156
|
+
return H ? W.toLowerCase() : W;
|
|
157
|
+
};
|
|
158
|
+
return s.replace(P, function($, v) {
|
|
159
|
+
return v || function(H) {
|
|
160
|
+
switch (H) {
|
|
161
|
+
case "YY":
|
|
162
|
+
return String(r.$y).slice(-2);
|
|
163
|
+
case "YYYY":
|
|
164
|
+
return a.s(r.$y, 4, "0");
|
|
165
|
+
case "M":
|
|
166
|
+
return h + 1;
|
|
167
|
+
case "MM":
|
|
168
|
+
return a.s(h + 1, 2, "0");
|
|
169
|
+
case "MMM":
|
|
170
|
+
return g(e.monthsShort, h, l, 3);
|
|
171
|
+
case "MMMM":
|
|
172
|
+
return g(l, h);
|
|
173
|
+
case "D":
|
|
174
|
+
return r.$D;
|
|
175
|
+
case "DD":
|
|
176
|
+
return a.s(r.$D, 2, "0");
|
|
177
|
+
case "d":
|
|
178
|
+
return String(r.$W);
|
|
179
|
+
case "dd":
|
|
180
|
+
return g(e.weekdaysMin, r.$W, d, 2);
|
|
181
|
+
case "ddd":
|
|
182
|
+
return g(e.weekdaysShort, r.$W, d, 3);
|
|
183
|
+
case "dddd":
|
|
184
|
+
return d[r.$W];
|
|
185
|
+
case "H":
|
|
186
|
+
return String(o);
|
|
187
|
+
case "HH":
|
|
188
|
+
return a.s(o, 2, "0");
|
|
189
|
+
case "h":
|
|
190
|
+
return Y(1);
|
|
191
|
+
case "hh":
|
|
192
|
+
return Y(2);
|
|
193
|
+
case "a":
|
|
194
|
+
return p(o, c, !0);
|
|
195
|
+
case "A":
|
|
196
|
+
return p(o, c, !1);
|
|
197
|
+
case "m":
|
|
198
|
+
return String(c);
|
|
199
|
+
case "mm":
|
|
200
|
+
return a.s(c, 2, "0");
|
|
201
|
+
case "s":
|
|
202
|
+
return String(r.$s);
|
|
203
|
+
case "ss":
|
|
204
|
+
return a.s(r.$s, 2, "0");
|
|
205
|
+
case "SSS":
|
|
206
|
+
return a.s(r.$ms, 3, "0");
|
|
207
|
+
case "Z":
|
|
208
|
+
return u;
|
|
209
|
+
}
|
|
210
|
+
return null;
|
|
211
|
+
}($) || u.replace(":", "");
|
|
212
|
+
});
|
|
213
|
+
}, n.utcOffset = function() {
|
|
214
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
215
|
+
}, n.diff = function(t, r, e) {
|
|
216
|
+
var s, u = this, o = a.p(r), c = f(t), h = (c.utcOffset() - this.utcOffset()) * k, d = this - c, l = function() {
|
|
217
|
+
return a.m(u, c);
|
|
218
|
+
};
|
|
219
|
+
switch (o) {
|
|
220
|
+
case y:
|
|
221
|
+
s = l() / 12;
|
|
222
|
+
break;
|
|
223
|
+
case m:
|
|
224
|
+
s = l();
|
|
225
|
+
break;
|
|
226
|
+
case F:
|
|
227
|
+
s = l() / 3;
|
|
228
|
+
break;
|
|
229
|
+
case T:
|
|
230
|
+
s = (d - h) / 6048e5;
|
|
231
|
+
break;
|
|
232
|
+
case M:
|
|
233
|
+
s = (d - h) / 864e5;
|
|
234
|
+
break;
|
|
235
|
+
case _:
|
|
236
|
+
s = d / q;
|
|
237
|
+
break;
|
|
238
|
+
case w:
|
|
239
|
+
s = d / k;
|
|
240
|
+
break;
|
|
241
|
+
case S:
|
|
242
|
+
s = d / A;
|
|
243
|
+
break;
|
|
244
|
+
default:
|
|
245
|
+
s = d;
|
|
246
|
+
}
|
|
247
|
+
return e ? s : a.a(s);
|
|
248
|
+
}, n.daysInMonth = function() {
|
|
249
|
+
return this.endOf(m).$D;
|
|
250
|
+
}, n.$locale = function() {
|
|
251
|
+
return D[this.$L];
|
|
252
|
+
}, n.locale = function(t, r) {
|
|
253
|
+
if (!t) return this.$L;
|
|
254
|
+
var e = this.clone(), s = j(t, r, !0);
|
|
255
|
+
return s && (e.$L = s), e;
|
|
256
|
+
}, n.clone = function() {
|
|
257
|
+
return a.w(this.$d, this);
|
|
258
|
+
}, n.toDate = function() {
|
|
259
|
+
return new Date(this.valueOf());
|
|
260
|
+
}, n.toJSON = function() {
|
|
261
|
+
return this.isValid() ? this.toISOString() : null;
|
|
262
|
+
}, n.toISOString = function() {
|
|
263
|
+
return this.$d.toISOString();
|
|
264
|
+
}, n.toString = function() {
|
|
265
|
+
return this.$d.toUTCString();
|
|
266
|
+
}, i;
|
|
267
|
+
}(), z = L.prototype;
|
|
268
|
+
return f.prototype = z, [["$ms", I], ["$s", S], ["$m", w], ["$H", _], ["$W", M], ["$M", m], ["$y", y], ["$D", O]].forEach(function(i) {
|
|
269
|
+
z[i[1]] = function(n) {
|
|
270
|
+
return this.$g(n, i[0], i[1]);
|
|
271
|
+
};
|
|
272
|
+
}), f.extend = function(i, n) {
|
|
273
|
+
return i.$i || (i(n, L, f), i.$i = !0), f;
|
|
274
|
+
}, f.locale = j, f.isDayjs = U, f.unix = function(i) {
|
|
275
|
+
return f(1e3 * i);
|
|
276
|
+
}, f.en = D[x], f.Ls = D, f.p = {}, f;
|
|
277
|
+
});
|
|
278
|
+
}(C), C.exports);
|
|
279
|
+
}
|
|
280
|
+
export {
|
|
281
|
+
tt as __require
|
|
282
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function c(t) {
|
|
2
|
+
return { all: t = t || /* @__PURE__ */ new Map(), on: function(e, f) {
|
|
3
|
+
var i = t.get(e);
|
|
4
|
+
i ? i.push(f) : t.set(e, [f]);
|
|
5
|
+
}, off: function(e, f) {
|
|
6
|
+
var i = t.get(e);
|
|
7
|
+
i && (f ? i.splice(i.indexOf(f) >>> 0, 1) : t.set(e, []));
|
|
8
|
+
}, emit: function(e, f) {
|
|
9
|
+
var i = t.get(e);
|
|
10
|
+
i && i.slice().map(function(a) {
|
|
11
|
+
a(f);
|
|
12
|
+
}), (i = t.get("*")) && i.slice().map(function(a) {
|
|
13
|
+
a(e, f);
|
|
14
|
+
});
|
|
15
|
+
} };
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
c as default
|
|
19
|
+
};
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import { createI18n as o } from "
|
|
2
|
-
function i(
|
|
3
|
-
const
|
|
1
|
+
import { createI18n as o } from "vue-i18n";
|
|
2
|
+
function i(l) {
|
|
3
|
+
const n = o({
|
|
4
4
|
legacy: !1,
|
|
5
|
-
locale:
|
|
6
|
-
fallbackLocale:
|
|
7
|
-
messages:
|
|
5
|
+
locale: l == null ? void 0 : l.locale,
|
|
6
|
+
fallbackLocale: l == null ? void 0 : l.fallbackLocale,
|
|
7
|
+
messages: l == null ? void 0 : l.messages,
|
|
8
8
|
missingWarn: !1,
|
|
9
9
|
fallbackWarn: !1
|
|
10
10
|
});
|
|
11
11
|
return {
|
|
12
|
-
t: (
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return t === l && a ? a : t;
|
|
16
|
-
} catch {
|
|
17
|
-
return a || l;
|
|
18
|
-
}
|
|
12
|
+
t: (e, a, c) => {
|
|
13
|
+
const t = n.global.t(e, a);
|
|
14
|
+
return t === e && c ? c : t;
|
|
19
15
|
},
|
|
20
|
-
changeLocale: (
|
|
21
|
-
|
|
16
|
+
changeLocale: (e, a) => new Promise((c) => {
|
|
17
|
+
n.global.locale.value = e, c(e);
|
|
22
18
|
}),
|
|
23
|
-
loadLocale: (
|
|
24
|
-
|
|
19
|
+
loadLocale: (e, a) => new Promise((c) => {
|
|
20
|
+
n.global.setLocaleMessage(e, a), c(e);
|
|
25
21
|
}),
|
|
26
|
-
|
|
22
|
+
mergeLocale: (e, a) => {
|
|
23
|
+
n.global.mergeLocaleMessage(e, a);
|
|
24
|
+
},
|
|
25
|
+
getLocale: () => n.global.locale.value
|
|
27
26
|
};
|
|
28
27
|
}
|
|
29
28
|
export {
|