@duxweb/dvha-pro 1.0.23 → 1.0.25
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/component.cjs +1 -1
- package/dist/cjs/components/card/card.cjs +1 -1
- package/dist/cjs/components/card/store.cjs +1 -1
- package/dist/cjs/components/carousel/carousel.cjs +1 -1
- package/dist/cjs/components/chart/echart.cjs +1 -1
- package/dist/cjs/components/crop/imageCrop.cjs +1 -1
- package/dist/cjs/components/crop/imageCropModal.cjs +1 -1
- package/dist/cjs/components/dashboard/hello.cjs +1 -1
- package/dist/cjs/components/dashboard/helloBig.cjs +1 -1
- package/dist/cjs/components/dashboard/quick.cjs +1 -1
- package/dist/cjs/components/data/dynamicData.cjs +1 -1
- package/dist/cjs/components/data/dynamicSelect.cjs +1 -1
- package/dist/cjs/components/data/selectModal.cjs +1 -1
- package/dist/cjs/components/dialog/dialog.cjs +1 -1
- package/dist/cjs/components/drawer/drawer.cjs +1 -1
- package/dist/cjs/components/drawer/drawerPage.cjs +1 -1
- package/dist/cjs/components/editor/aiEditor.cjs +1 -1
- package/dist/cjs/components/form/drawerForm.cjs +1 -1
- package/dist/cjs/components/form/formItem.cjs +1 -1
- package/dist/cjs/components/form/formLayout.cjs +1 -1
- package/dist/cjs/components/form/modalForm.cjs +1 -1
- package/dist/cjs/components/form/pageForm.cjs +1 -1
- package/dist/cjs/components/form/settingForm.cjs +1 -1
- package/dist/cjs/components/icon/icon.cjs +1 -1
- package/dist/cjs/components/icon/iconPicker.cjs +1 -1
- package/dist/cjs/components/image/components/CanvasRuler.cjs +1 -0
- package/dist/cjs/components/image/elements/circle.cjs +1 -0
- package/dist/cjs/components/image/elements/image.cjs +1 -0
- package/dist/cjs/components/image/elements/index.cjs +1 -0
- package/dist/cjs/components/image/elements/rect.cjs +1 -0
- package/dist/cjs/components/image/elements/text.cjs +1 -0
- package/dist/cjs/components/image/hooks/usePosterEditor.cjs +1 -0
- package/dist/cjs/components/image/pages/LeftToolbar.cjs +1 -0
- package/dist/cjs/components/image/pages/Panel.cjs +1 -0
- package/dist/cjs/components/image/pages/PanelItem.cjs +1 -0
- package/dist/cjs/components/image/pages/RightPanel.cjs +1 -0
- package/dist/cjs/components/image/posterEditor.cjs +1 -0
- package/dist/cjs/components/layout/filter.cjs +1 -1
- package/dist/cjs/components/layout/filterLayout.cjs +1 -1
- package/dist/cjs/components/layout/list.cjs +1 -1
- package/dist/cjs/components/layout/table.cjs +1 -1
- package/dist/cjs/components/layout/tools.cjs +1 -1
- package/dist/cjs/components/level/level.cjs +1 -1
- package/dist/cjs/components/list/card.cjs +1 -1
- package/dist/cjs/components/list/list.cjs +1 -1
- package/dist/cjs/components/media/media.cjs +1 -1
- package/dist/cjs/components/modal/modal.cjs +1 -1
- package/dist/cjs/components/modal/modalPage.cjs +1 -1
- package/dist/cjs/components/modal/modalTab.cjs +1 -1
- package/dist/cjs/components/panel/alert.cjs +1 -1
- package/dist/cjs/components/panel/collapse.cjs +1 -1
- package/dist/cjs/components/panel/setting.cjs +1 -1
- package/dist/cjs/components/select/cardSelect.cjs +1 -1
- package/dist/cjs/components/status/listEmpty.cjs +1 -1
- package/dist/cjs/components/table/table.cjs +1 -1
- package/dist/cjs/components/table/tablePage.cjs +1 -1
- package/dist/cjs/components/tree/treeFilter.cjs +1 -1
- package/dist/cjs/components/upload/config.cjs +1 -1
- package/dist/cjs/components/upload/file.cjs +1 -1
- package/dist/cjs/components/upload/image.cjs +1 -1
- package/dist/cjs/components/upload/manage/item.cjs +1 -1
- package/dist/cjs/components/upload/manager.cjs +1 -1
- package/dist/cjs/components/widget/connect.cjs +1 -1
- package/dist/cjs/dvha-pro.css +1 -1
- package/dist/cjs/hooks/action.cjs +1 -1
- package/dist/cjs/hooks/dialog.cjs +1 -1
- package/dist/cjs/hooks/download.cjs +1 -1
- package/dist/cjs/hooks/drawer.cjs +1 -1
- package/dist/cjs/hooks/echart.cjs +1 -1
- package/dist/cjs/hooks/image.cjs +1 -1
- package/dist/cjs/hooks/level.cjs +1 -1
- package/dist/cjs/hooks/modal.cjs +1 -1
- package/dist/cjs/hooks/table/color.cjs +1 -0
- package/dist/cjs/hooks/table/column.cjs +1 -1
- package/dist/cjs/hooks/table/image.cjs +1 -1
- package/dist/cjs/hooks/table/input.cjs +1 -1
- package/dist/cjs/hooks/table/map.cjs +1 -1
- package/dist/cjs/hooks/table/media.cjs +1 -1
- package/dist/cjs/hooks/table/status.cjs +1 -1
- package/dist/cjs/hooks/table/switch.cjs +1 -1
- package/dist/cjs/hooks/table.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/pages/authLayout.cjs +1 -1
- package/dist/cjs/pages/layout/global.cjs +1 -1
- package/dist/cjs/pages/layout/page.cjs +1 -1
- package/dist/cjs/pages/layout/tab.cjs +1 -1
- package/dist/cjs/pages/layout.cjs +1 -1
- package/dist/cjs/pages/login.cjs +1 -1
- package/dist/cjs/pages/menu/avatar.cjs +1 -1
- package/dist/cjs/pages/menu/button.cjs +1 -1
- package/dist/cjs/pages/menu/cmd.cjs +1 -1
- package/dist/cjs/pages/menu/main.cjs +1 -1
- package/dist/cjs/pages/menu/mobile.cjs +1 -1
- package/dist/cjs/pages/page.cjs +1 -1
- package/dist/cjs/pages/page404.cjs +1 -1
- package/dist/cjs/pages/pageStatus.cjs +1 -1
- package/dist/cjs/stores/ui.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +26 -1
- package/dist/esm/component.js +49 -47
- package/dist/esm/components/card/card.js +24 -27
- package/dist/esm/components/card/store.js +33 -39
- package/dist/esm/components/carousel/carousel.js +16 -19
- package/dist/esm/components/chart/echart.js +15 -13
- package/dist/esm/components/crop/imageCrop.js +45 -46
- package/dist/esm/components/crop/imageCropModal.js +36 -37
- package/dist/esm/components/dashboard/hello.js +27 -30
- package/dist/esm/components/dashboard/helloBig.js +328 -331
- package/dist/esm/components/dashboard/quick.js +30 -33
- package/dist/esm/components/data/dynamicData.js +86 -98
- package/dist/esm/components/data/dynamicSelect.js +42 -42
- package/dist/esm/components/data/selectModal.js +58 -60
- package/dist/esm/components/dialog/dialog.js +54 -55
- package/dist/esm/components/drawer/drawer.js +23 -23
- package/dist/esm/components/drawer/drawerPage.js +39 -49
- package/dist/esm/components/editor/aiEditor.js +64 -70
- package/dist/esm/components/form/drawerForm.js +61 -59
- package/dist/esm/components/form/formItem.js +45 -51
- package/dist/esm/components/form/formLayout.js +7 -10
- package/dist/esm/components/form/modalForm.js +63 -61
- package/dist/esm/components/form/pageForm.js +56 -57
- package/dist/esm/components/form/settingForm.js +43 -44
- package/dist/esm/components/icon/icon.js +15 -13
- package/dist/esm/components/icon/iconPicker.js +54 -58
- package/dist/esm/components/image/components/CanvasRuler.js +113 -0
- package/dist/esm/components/image/elements/circle.js +127 -0
- package/dist/esm/components/image/elements/image.js +131 -0
- package/dist/esm/components/image/elements/index.js +46 -0
- package/dist/esm/components/image/elements/rect.js +171 -0
- package/dist/esm/components/image/elements/text.js +206 -0
- package/dist/esm/components/image/hooks/usePosterEditor.js +434 -0
- package/dist/esm/components/image/pages/LeftToolbar.js +40 -0
- package/dist/esm/components/image/pages/Panel.js +31 -0
- package/dist/esm/components/image/pages/PanelItem.js +22 -0
- package/dist/esm/components/image/pages/RightPanel.js +421 -0
- package/dist/esm/components/image/posterEditor.js +227 -0
- package/dist/esm/components/layout/filter.js +13 -16
- package/dist/esm/components/layout/filterLayout.js +7 -10
- package/dist/esm/components/layout/list.js +312 -337
- package/dist/esm/components/layout/table.js +281 -294
- package/dist/esm/components/layout/tools.js +38 -41
- package/dist/esm/components/level/level.js +15 -13
- package/dist/esm/components/list/card.js +35 -38
- package/dist/esm/components/list/list.js +15 -18
- package/dist/esm/components/media/media.js +35 -36
- package/dist/esm/components/modal/modal.js +10 -10
- package/dist/esm/components/modal/modalPage.js +32 -36
- package/dist/esm/components/modal/modalTab.js +39 -45
- package/dist/esm/components/panel/alert.js +19 -22
- package/dist/esm/components/panel/collapse.js +33 -36
- package/dist/esm/components/panel/setting.js +25 -31
- package/dist/esm/components/select/cardSelect.js +27 -28
- package/dist/esm/components/status/listEmpty.js +13 -13
- package/dist/esm/components/table/table.js +15 -13
- package/dist/esm/components/table/tablePage.js +25 -25
- package/dist/esm/components/tree/treeFilter.js +137 -147
- package/dist/esm/components/upload/config.js +15 -27
- package/dist/esm/components/upload/file.js +115 -109
- package/dist/esm/components/upload/image.js +135 -130
- package/dist/esm/components/upload/manage/item.js +59 -60
- package/dist/esm/components/upload/manager.js +203 -218
- package/dist/esm/components/widget/connect.js +103 -106
- package/dist/esm/dvha-pro.css +1 -1
- package/dist/esm/hooks/action.js +115 -131
- package/dist/esm/hooks/dialog.js +15 -13
- package/dist/esm/hooks/download.js +55 -56
- package/dist/esm/hooks/drawer.js +15 -13
- package/dist/esm/hooks/echart.js +156 -179
- package/dist/esm/hooks/image.js +14 -15
- package/dist/esm/hooks/level.js +7 -7
- package/dist/esm/hooks/modal.js +15 -13
- package/dist/esm/hooks/table/color.js +19 -0
- package/dist/esm/hooks/table/column.js +25 -23
- package/dist/esm/hooks/table/image.js +17 -15
- package/dist/esm/hooks/table/input.js +28 -28
- package/dist/esm/hooks/table/map.js +7 -7
- package/dist/esm/hooks/table/media.js +15 -13
- package/dist/esm/hooks/table/status.js +8 -9
- package/dist/esm/hooks/table/switch.js +19 -19
- package/dist/esm/hooks/table.js +27 -31
- package/dist/esm/index.js +213 -200
- package/dist/esm/pages/authLayout.js +15 -13
- package/dist/esm/pages/layout/global.js +12 -15
- package/dist/esm/pages/layout/page.js +15 -13
- package/dist/esm/pages/layout/tab.js +58 -71
- package/dist/esm/pages/layout.js +7 -6
- package/dist/esm/pages/login.js +95 -98
- package/dist/esm/pages/menu/avatar.js +151 -162
- package/dist/esm/pages/menu/button.js +29 -31
- package/dist/esm/pages/menu/cmd.js +83 -87
- package/dist/esm/pages/menu/main.js +25 -23
- package/dist/esm/pages/menu/mobile.js +15 -13
- package/dist/esm/pages/page.js +21 -25
- package/dist/esm/pages/page404.js +13 -11
- package/dist/esm/pages/pageStatus.js +33 -34
- package/dist/esm/stores/ui.js +15 -15
- package/dist/esm/theme/uno.css.js +26 -1
- package/dist/types/components/form/drawerForm.d.ts +6 -0
- package/dist/types/components/form/modalForm.d.ts +6 -0
- package/dist/types/components/form/pageForm.d.ts +6 -0
- package/dist/types/components/form/settingForm.d.ts +6 -0
- package/dist/types/components/image/components/CanvasRuler.d.ts +43 -0
- package/dist/types/components/image/components/index.d.ts +1 -0
- package/dist/types/components/image/elements/circle.d.ts +3 -0
- package/dist/types/components/image/elements/image.d.ts +3 -0
- package/dist/types/components/image/elements/index.d.ts +15 -0
- package/dist/types/components/image/elements/rect.d.ts +3 -0
- package/dist/types/components/image/elements/text.d.ts +3 -0
- package/dist/types/components/image/elements/types.d.ts +51 -0
- package/dist/types/components/image/hooks/index.d.ts +1 -0
- package/dist/types/components/image/hooks/usePosterEditor.d.ts +48 -0
- package/dist/types/components/image/index.d.ts +4 -0
- package/dist/types/components/image/pages/LeftToolbar.d.ts +33 -0
- package/dist/types/components/image/pages/Panel.d.ts +11 -0
- package/dist/types/components/image/pages/PanelItem.d.ts +11 -0
- package/dist/types/components/image/pages/RightPanel.d.ts +208 -0
- package/dist/types/components/image/pages/index.d.ts +4 -0
- package/dist/types/components/image/posterEditor.d.ts +61 -0
- package/dist/types/components/image/types/editor.d.ts +47 -0
- package/dist/types/components/index.d.ts +2 -2
- package/dist/types/components/layout/table.d.ts +9 -0
- package/dist/types/components/stats/number.d.ts +1 -1
- package/dist/types/components/table/tablePage.d.ts +9 -0
- package/dist/types/components/upload/file.d.ts +5 -3
- package/dist/types/hooks/table/color.d.ts +13 -0
- package/dist/types/hooks/table/column.d.ts +1 -0
- package/dist/types/hooks/table/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/pages/layout/global.d.ts +0 -1
- package/package.json +6 -3
package/dist/esm/component.js
CHANGED
|
@@ -3,13 +3,14 @@ import { DuxCard as t } from "./components/card/card.js";
|
|
|
3
3
|
import { DuxStatsStore as r, DuxStatsStoreItem as e } from "./components/card/store.js";
|
|
4
4
|
import { DuxCarousel as n } from "./components/carousel/carousel.js";
|
|
5
5
|
import { DuxChart as u } from "./components/chart/echart.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
6
|
+
import { DuxCodeEditor as D } from "./components/code/code.js";
|
|
7
|
+
import { DuxImageCrop as x } from "./components/crop/imageCrop.js";
|
|
8
|
+
import { DuxImageCropModal as i } from "./components/crop/imageCropModal.js";
|
|
9
|
+
import { DuxDashboardHello as c } from "./components/dashboard/hello.js";
|
|
10
|
+
import { DuxDashboardHelloBig as a } from "./components/dashboard/helloBig.js";
|
|
11
|
+
import { DuxDashboardQuick as l } from "./components/dashboard/quick.js";
|
|
12
|
+
import { DuxDynamicData as f } from "./components/data/dynamicData.js";
|
|
13
|
+
import { DuxDynamicSelect as p } from "./components/data/dynamicSelect.js";
|
|
13
14
|
import "vue";
|
|
14
15
|
import "@duxweb/dvha-core";
|
|
15
16
|
import "naive-ui";
|
|
@@ -22,45 +23,46 @@ import "@tanstack/vue-query";
|
|
|
22
23
|
import "@duxweb/dvha-naiveui";
|
|
23
24
|
import "@vueuse/core";
|
|
24
25
|
import "pinia";
|
|
25
|
-
import { DuxModal as
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import { DuxDrawApps as
|
|
29
|
-
import { DuxDrawAuth as
|
|
30
|
-
import { DuxDrawEmpty as
|
|
31
|
-
import { DuxDrawEmptyForm as
|
|
32
|
-
import { DuxDrawError as
|
|
33
|
-
import { DuxDrawerPage as
|
|
34
|
-
import { DuxAiEditor as
|
|
35
|
-
import { DuxFormLayout as
|
|
36
|
-
import { DuxFormItem as
|
|
37
|
-
import { DuxModalForm as
|
|
38
|
-
import { DuxPageForm as
|
|
39
|
-
import { DuxSettingForm as
|
|
40
|
-
import { DuxIconPicker as
|
|
26
|
+
import { DuxModal as d } from "./components/modal/modal.js";
|
|
27
|
+
import g from "./components/modal/modalPage.js";
|
|
28
|
+
import P from "./components/modal/modalTab.js";
|
|
29
|
+
import { DuxDrawApps as s } from "./components/draw/drawApps.js";
|
|
30
|
+
import { DuxDrawAuth as C } from "./components/draw/drawAuth.js";
|
|
31
|
+
import { DuxDrawEmpty as y } from "./components/draw/drawEmpty.js";
|
|
32
|
+
import { DuxDrawEmptyForm as M } from "./components/draw/drawEmptyForm.js";
|
|
33
|
+
import { DuxDrawError as b } from "./components/draw/drawError.js";
|
|
34
|
+
import { DuxDrawerPage as S } from "./components/drawer/drawerPage.js";
|
|
35
|
+
import { DuxAiEditor as F } from "./components/editor/aiEditor.js";
|
|
36
|
+
import { DuxFormLayout as L } from "./components/form/formLayout.js";
|
|
37
|
+
import { DuxFormItem as T } from "./components/form/formItem.js";
|
|
38
|
+
import { DuxModalForm as E } from "./components/form/modalForm.js";
|
|
39
|
+
import { DuxPageForm as h } from "./components/form/pageForm.js";
|
|
40
|
+
import { DuxSettingForm as w } from "./components/form/settingForm.js";
|
|
41
|
+
import { DuxIconPicker as A } from "./components/icon/icon.js";
|
|
41
42
|
import "@iconify-json/tabler/icons.json";
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import { DuxLevel as H } from "./components/level/level.js";
|
|
47
|
-
import { DuxCardPage as U } from "./components/list/card.js";
|
|
48
|
-
import { DuxListPage as v } from "./components/list/list.js";
|
|
49
|
-
import { DuxMedia as N } from "./components/media/media.js";
|
|
50
|
-
import { DuxPanelAlert as Q } from "./components/panel/alert.js";
|
|
51
|
-
import { DuxPanelCard as R } from "./components/panel/setting.js";
|
|
52
|
-
import { DuxCollapsePanel as W } from "./components/panel/collapse.js";
|
|
53
|
-
import { DuxSelectCard as j } from "./components/select/cardSelect.js";
|
|
54
|
-
import { DuxStatsNumber as q } from "./components/stats/number.js";
|
|
55
|
-
import { DuxStatsRealTime as z } from "./components/stats/realTime.js";
|
|
56
|
-
import { DuxBlockEmpty as G } from "./components/status/blockEmpty.js";
|
|
57
|
-
import { DuxTablePage as J } from "./components/table/tablePage.js";
|
|
58
|
-
import { DuxTreeFilter as K } from "./components/tree/treeFilter.js";
|
|
59
|
-
import { DuxFileUpload as O } from "./components/upload/file.js";
|
|
60
|
-
import { DuxImageUpload as V } from "./components/upload/image.js";
|
|
43
|
+
import "./components/image/elements/index.js";
|
|
44
|
+
import "fabric";
|
|
45
|
+
import { DuxFileUpload as I } from "./components/upload/file.js";
|
|
46
|
+
import { DuxImageUpload as k } from "./components/upload/image.js";
|
|
61
47
|
import "clsx";
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
48
|
+
import { DuxTableFilter as B } from "./components/layout/filter.js";
|
|
49
|
+
import { DuxListLayout as H } from "./components/layout/list.js";
|
|
50
|
+
import { DuxTableLayout as U } from "./components/layout/table.js";
|
|
51
|
+
import { DuxTableTools as v } from "./components/layout/tools.js";
|
|
52
|
+
import { DuxLevel as N } from "./components/level/level.js";
|
|
53
|
+
import { DuxCardPage as Q } from "./components/list/card.js";
|
|
54
|
+
import { DuxListPage as R } from "./components/list/list.js";
|
|
55
|
+
import { DuxMedia as W } from "./components/media/media.js";
|
|
56
|
+
import { DuxPanelAlert as j } from "./components/panel/alert.js";
|
|
57
|
+
import { DuxPanelCard as q } from "./components/panel/setting.js";
|
|
58
|
+
import { DuxCollapsePanel as z } from "./components/panel/collapse.js";
|
|
59
|
+
import { DuxSelectCard as G } from "./components/select/cardSelect.js";
|
|
60
|
+
import { DuxStatsNumber as J } from "./components/stats/number.js";
|
|
61
|
+
import { DuxStatsRealTime as K } from "./components/stats/realTime.js";
|
|
62
|
+
import { DuxBlockEmpty as O } from "./components/status/blockEmpty.js";
|
|
63
|
+
import { DuxTablePage as V } from "./components/table/tablePage.js";
|
|
64
|
+
import { DuxTreeFilter as X } from "./components/tree/treeFilter.js";
|
|
65
|
+
import { DuxWidgetConnect as Y } from "./components/widget/connect.js";
|
|
64
66
|
import { DuxAuthLayout as Z } from "./pages/authLayout.js";
|
|
65
67
|
import { DuxLayout as _ } from "./pages/layout.js";
|
|
66
68
|
import { DuxLoginPage as $ } from "./pages/login.js";
|
|
@@ -73,11 +75,11 @@ import { DuxPage404 as no } from "./pages/page404.js";
|
|
|
73
75
|
import { DuxPage500 as uo } from "./pages/page500.js";
|
|
74
76
|
import { DuxPageEmpty as Do } from "./pages/pageEmpty.js";
|
|
75
77
|
import { DuxPageStatus as xo } from "./pages/pageStatus.js";
|
|
76
|
-
const
|
|
78
|
+
const Bm = {
|
|
77
79
|
install(o) {
|
|
78
|
-
o.component("DuxAiEditor",
|
|
80
|
+
o.component("DuxAiEditor", F), o.component("DuxCard", t), o.component("DuxDrawerPage", S), o.component("DuxDrawApps", s), o.component("DuxDrawAuth", C), o.component("DuxDrawEmpty", y), o.component("DuxDrawEmptyForm", M), o.component("DuxDrawError", b), o.component("DuxDynamicData", f), o.component("DuxDynamicSelect", p), o.component("DuxFormItem", T), o.component("DuxFormLayout", L), o.component("DuxModalForm", E), o.component("DuxPageForm", h), o.component("DuxSettingForm", w), o.component("DuxListLayout", H), o.component("DuxTableFilter", B), o.component("DuxTableLayout", U), o.component("DuxTableTools", v), o.component("DuxCardPage", Q), o.component("DuxListPage", R), o.component("DuxMedia", W), o.component("DuxModal", d), o.component("DuxPanelAlert", j), o.component("DuxPanelCard", q), o.component("DuxBlockEmpty", O), o.component("DuxTablePage", V), o.component("DuxLevel", N), o.component("DuxImageCrop", x), o.component("DuxImageCropModal", i), o.component("DuxModalPage", g), o.component("DuxModalTab", P), o.component("DuxFileUpload", I), o.component("DuxImageUpload", k), o.component("DuxTreeFilter", X), o.component("DuxIconPicker", A), o.component("DuxCollapsePanel", z), o.component("DuxCodeEditor", D), o.component("DuxDashboardHello", c), o.component("DuxDashboardHelloBig", a), o.component("DuxDashboardQuick", l), o.component("DuxCarousel", n), o.component("DuxWidgetConnect", Y), o.component("DuxChart", u), o.component("DuxSelectCard", G), o.component("DuxStatsStore", r), o.component("DuxStatsStoreItem", e), o.component("DuxStatsRealTime", K), o.component("DuxStatsNumber", J), o.component("DuxAuthLayout", Z), o.component("DuxLayout", _), o.component("DuxPage403", eo), o.component("DuxPage404", no), o.component("DuxPage500", uo), o.component("DuxPageEmpty", Do), o.component("DuxPageStatus", xo), o.component("DuxLoginPage", $), o.component("DuxPage", ro), o.component("DuxMenuMain", mo), o.component("DuxMobileMenu", to), o.component("DuxMenuCmd", oo), o.component("DuxApp", m);
|
|
79
81
|
}
|
|
80
82
|
};
|
|
81
83
|
export {
|
|
82
|
-
|
|
84
|
+
Bm as default
|
|
83
85
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as s, computed as a, createVNode as d } from "vue";
|
|
2
|
+
const m = /* @__PURE__ */ s({
|
|
3
3
|
name: "DuxCard",
|
|
4
4
|
props: {
|
|
5
5
|
size: {
|
|
@@ -64,10 +64,10 @@ const S = /* @__PURE__ */ y({
|
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
setup(e, {
|
|
67
|
-
slots:
|
|
67
|
+
slots: t
|
|
68
68
|
}) {
|
|
69
|
-
const r = (
|
|
70
|
-
switch (
|
|
69
|
+
const r = (f) => {
|
|
70
|
+
switch (f) {
|
|
71
71
|
case "small":
|
|
72
72
|
return "px-3 py-2";
|
|
73
73
|
case "large":
|
|
@@ -78,7 +78,7 @@ const S = /* @__PURE__ */ y({
|
|
|
78
78
|
default:
|
|
79
79
|
return "";
|
|
80
80
|
}
|
|
81
|
-
},
|
|
81
|
+
}, l = a(() => r(e.size)), i = a(() => r(e.headerSize)), n = a(() => r(e.footerSize)), u = a(() => r(e.contentSize)), o = a(() => {
|
|
82
82
|
switch (e.type) {
|
|
83
83
|
case "elevated":
|
|
84
84
|
return "bg-elevated";
|
|
@@ -88,28 +88,25 @@ const S = /* @__PURE__ */ y({
|
|
|
88
88
|
return "bg-default dark:bg-muted";
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
|
-
return () => {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
class: [o.value, e.footerClass, e.footerBordered && "border-t border-muted"]
|
|
109
|
-
}, [(f = d.footer) == null ? void 0 : f.call(d)])]);
|
|
110
|
-
};
|
|
91
|
+
return () => d("div", {
|
|
92
|
+
class: ["rounded flex flex-col dark:border dark:border-muted", e.divide && "divide-y divide-muted", e.shadow && "shadow-xs", e.bordered && "border border-muted", o.value, l.value]
|
|
93
|
+
}, [t.header && d("div", {
|
|
94
|
+
class: [i.value, e.headerClass, e.headerBordered || e.divide ? "border-b border-muted" : "pb-0"]
|
|
95
|
+
}, [t.header?.()]), e.title && d("div", {
|
|
96
|
+
class: ["flex justify-between items-center", i.value, e.headerBordered || e.divide ? "border-b border-muted" : "pb-0", e.headerClass]
|
|
97
|
+
}, [d("div", {
|
|
98
|
+
class: "flex flex-col"
|
|
99
|
+
}, [d("div", {
|
|
100
|
+
class: "text-base"
|
|
101
|
+
}, [e.title]), e.description && d("div", {
|
|
102
|
+
class: "text-sm text-muted"
|
|
103
|
+
}, [e.description])]), t.headerExtra?.()]), d("div", {
|
|
104
|
+
class: ["flex-1 min-h-0", (e.title || t.header || t.footer) && u.value, e.contentClass]
|
|
105
|
+
}, [t.default?.()]), t.footer && d("div", {
|
|
106
|
+
class: [n.value, e.footerClass, e.footerBordered && "border-t border-muted"]
|
|
107
|
+
}, [t.footer?.()])]);
|
|
111
108
|
}
|
|
112
109
|
});
|
|
113
110
|
export {
|
|
114
|
-
|
|
111
|
+
m as DuxCard
|
|
115
112
|
};
|
|
@@ -1,64 +1,58 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as r, createVNode as e } from "vue";
|
|
2
2
|
import { DuxMedia as l } from "../media/media.js";
|
|
3
|
-
import { DuxCard as
|
|
4
|
-
const
|
|
3
|
+
import { DuxCard as i } from "./card.js";
|
|
4
|
+
const s = /* @__PURE__ */ r({
|
|
5
5
|
name: "DuxStatsStore",
|
|
6
6
|
props: {
|
|
7
7
|
title: String,
|
|
8
8
|
avatar: String,
|
|
9
9
|
desc: String
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
slots:
|
|
11
|
+
setup(t, {
|
|
12
|
+
slots: a
|
|
13
13
|
}) {
|
|
14
|
-
return () =>
|
|
14
|
+
return () => e(i, {
|
|
15
15
|
divide: !0,
|
|
16
16
|
footerSize: "small"
|
|
17
17
|
}, {
|
|
18
|
-
header: () => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
class: "flex flex-col bg-muted rounded p-4 text-muted"
|
|
38
|
-
}, [(r = e.header) == null ? void 0 : r.call(e)]) : null, t("div", {
|
|
39
|
-
class: "grid grid-cols-[repeat(auto-fit,minmax(100px,1fr))] gap-2 pt-2"
|
|
40
|
-
}, [(i = e.default) == null ? void 0 : i.call(e)])]);
|
|
41
|
-
},
|
|
42
|
-
footer: e.footer
|
|
18
|
+
header: () => e("div", {
|
|
19
|
+
class: "flex gap-2 items-center"
|
|
20
|
+
}, [e(l, {
|
|
21
|
+
class: "flex-1",
|
|
22
|
+
avatar: !0,
|
|
23
|
+
imageHeight: 46,
|
|
24
|
+
imageWidth: 46,
|
|
25
|
+
image: t.avatar,
|
|
26
|
+
title: t.title,
|
|
27
|
+
desc: t.desc
|
|
28
|
+
}, null), e("div", null, [a.extra?.()])]),
|
|
29
|
+
default: () => e("div", {
|
|
30
|
+
class: "flex flex-col"
|
|
31
|
+
}, [a.header ? e("div", {
|
|
32
|
+
class: "flex flex-col bg-muted rounded p-4 text-muted"
|
|
33
|
+
}, [a.header?.()]) : null, e("div", {
|
|
34
|
+
class: "grid grid-cols-[repeat(auto-fit,minmax(100px,1fr))] gap-2 pt-2"
|
|
35
|
+
}, [a.default?.()])]),
|
|
36
|
+
footer: a.footer
|
|
43
37
|
});
|
|
44
38
|
}
|
|
45
|
-
}),
|
|
39
|
+
}), m = /* @__PURE__ */ r({
|
|
46
40
|
name: "DuxStatsStoreItem",
|
|
47
41
|
props: {
|
|
48
42
|
label: String,
|
|
49
43
|
value: String
|
|
50
44
|
},
|
|
51
|
-
setup(
|
|
52
|
-
return () =>
|
|
45
|
+
setup(t) {
|
|
46
|
+
return () => e("div", {
|
|
53
47
|
class: "flex flex-col items-center justify-center"
|
|
54
|
-
}, [
|
|
48
|
+
}, [e("div", {
|
|
55
49
|
class: "text-lg font-bold"
|
|
56
|
-
}, [
|
|
50
|
+
}, [t.value]), e("div", {
|
|
57
51
|
class: "text-sm text-muted"
|
|
58
|
-
}, [
|
|
52
|
+
}, [t.label])]);
|
|
59
53
|
}
|
|
60
54
|
});
|
|
61
55
|
export {
|
|
62
|
-
|
|
63
|
-
|
|
56
|
+
s as DuxStatsStore,
|
|
57
|
+
m as DuxStatsStoreItem
|
|
64
58
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { NCarousel as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as a, createVNode as r } from "vue";
|
|
2
|
+
import { NCarousel as s } from "naive-ui";
|
|
3
|
+
const n = /* @__PURE__ */ a({
|
|
4
4
|
name: "DuxCarousel",
|
|
5
5
|
props: {
|
|
6
6
|
height: {
|
|
@@ -9,29 +9,26 @@ const d = /* @__PURE__ */ o({
|
|
|
9
9
|
},
|
|
10
10
|
data: Array
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
return () => r(
|
|
12
|
+
setup(t) {
|
|
13
|
+
return () => r(s, {
|
|
14
14
|
draggable: !0,
|
|
15
15
|
class: "rounded-sm shadow-sm",
|
|
16
16
|
style: {
|
|
17
|
-
height: `${
|
|
17
|
+
height: `${t.height}px`
|
|
18
18
|
}
|
|
19
19
|
}, {
|
|
20
|
-
default: () => {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
onClick: typeof e == "string" || e == null ? void 0 : e.onClick
|
|
30
|
-
}, null))];
|
|
31
|
-
}
|
|
20
|
+
default: () => [t?.data?.map((e, o) => r("img", {
|
|
21
|
+
key: o,
|
|
22
|
+
class: "w-full object-cover",
|
|
23
|
+
style: {
|
|
24
|
+
height: `${t.height}px`
|
|
25
|
+
},
|
|
26
|
+
src: typeof e == "string" ? e : e.src,
|
|
27
|
+
onClick: typeof e == "string" ? void 0 : e?.onClick
|
|
28
|
+
}, null))]
|
|
32
29
|
});
|
|
33
30
|
}
|
|
34
31
|
});
|
|
35
32
|
export {
|
|
36
|
-
|
|
33
|
+
n as DuxCarousel
|
|
37
34
|
};
|
|
@@ -6,6 +6,17 @@ import "vue-router";
|
|
|
6
6
|
import "@overlastic/vue";
|
|
7
7
|
import "clsx";
|
|
8
8
|
import "@vueuse/core";
|
|
9
|
+
import "vue3-ace-editor";
|
|
10
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
11
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
12
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
13
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
14
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
15
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
16
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
17
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
18
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
19
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
9
20
|
import "vue-cropper";
|
|
10
21
|
import "jinrishici";
|
|
11
22
|
import "lodash-es";
|
|
@@ -25,23 +36,14 @@ import "vue-command-palette";
|
|
|
25
36
|
import "@duxweb/dvha-naiveui";
|
|
26
37
|
import "../../pages/page404.js";
|
|
27
38
|
import "@iconify-json/tabler/icons.json";
|
|
39
|
+
import "../image/elements/index.js";
|
|
40
|
+
import "fabric";
|
|
28
41
|
import "mime";
|
|
29
|
-
import "vue3-ace-editor";
|
|
30
|
-
import "ace-builds/src-noconflict/mode-vue";
|
|
31
|
-
import "ace-builds/src-noconflict/mode-javascript";
|
|
32
|
-
import "ace-builds/src-noconflict/mode-html";
|
|
33
|
-
import "ace-builds/src-noconflict/mode-json";
|
|
34
|
-
import "ace-builds/src-noconflict/mode-json5";
|
|
35
|
-
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
36
|
-
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
37
|
-
import "ace-builds/src-noconflict/ext-searchbox";
|
|
38
|
-
import "ace-builds/src-noconflict/ext-language_tools";
|
|
39
|
-
import "ace-builds/src-noconflict/mode-snippets";
|
|
40
42
|
import "dayjs";
|
|
41
43
|
import { useEchartType as u } from "../../hooks/echart.js";
|
|
42
44
|
import "@tanstack/vue-query";
|
|
43
45
|
import "pinia";
|
|
44
|
-
const
|
|
46
|
+
const pt = /* @__PURE__ */ m({
|
|
45
47
|
name: "DuxChart",
|
|
46
48
|
props: {
|
|
47
49
|
height: {
|
|
@@ -96,5 +98,5 @@ const rt = /* @__PURE__ */ m({
|
|
|
96
98
|
}
|
|
97
99
|
});
|
|
98
100
|
export {
|
|
99
|
-
|
|
101
|
+
pt as DuxChart
|
|
100
102
|
};
|
|
@@ -1,12 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useVModel as
|
|
4
|
-
import { useMessage as
|
|
1
|
+
import { defineComponent as n, createVNode as r } from "vue";
|
|
2
|
+
import { useI18n as s, useManage as c, useUpload as d } from "@duxweb/dvha-core";
|
|
3
|
+
import { useVModel as g } from "@vueuse/core";
|
|
4
|
+
import { useMessage as f } from "naive-ui";
|
|
5
5
|
import "vue-router";
|
|
6
6
|
import "@overlastic/vue";
|
|
7
7
|
import "clsx";
|
|
8
|
-
import { DuxAvatar as
|
|
8
|
+
import { DuxAvatar as v } from "../widget/avatar.js";
|
|
9
9
|
import "vue-echarts";
|
|
10
|
+
import "vue3-ace-editor";
|
|
11
|
+
import "ace-builds/src-noconflict/mode-vue";
|
|
12
|
+
import "ace-builds/src-noconflict/mode-javascript";
|
|
13
|
+
import "ace-builds/src-noconflict/mode-html";
|
|
14
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
15
|
+
import "ace-builds/src-noconflict/mode-json5";
|
|
16
|
+
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
17
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
18
|
+
import "ace-builds/src-noconflict/ext-searchbox";
|
|
19
|
+
import "ace-builds/src-noconflict/ext-language_tools";
|
|
20
|
+
import "ace-builds/src-noconflict/mode-snippets";
|
|
10
21
|
import "vue-cropper";
|
|
11
22
|
import "jinrishici";
|
|
12
23
|
import "lodash-es";
|
|
@@ -26,23 +37,14 @@ import "vue-command-palette";
|
|
|
26
37
|
import "@duxweb/dvha-naiveui";
|
|
27
38
|
import "../../pages/page404.js";
|
|
28
39
|
import "@iconify-json/tabler/icons.json";
|
|
40
|
+
import "../image/elements/index.js";
|
|
41
|
+
import "fabric";
|
|
29
42
|
import "mime";
|
|
30
|
-
import "
|
|
31
|
-
import "ace-builds/src-noconflict/mode-vue";
|
|
32
|
-
import "ace-builds/src-noconflict/mode-javascript";
|
|
33
|
-
import "ace-builds/src-noconflict/mode-html";
|
|
34
|
-
import "ace-builds/src-noconflict/mode-json";
|
|
35
|
-
import "ace-builds/src-noconflict/mode-json5";
|
|
36
|
-
import "ace-builds/src-noconflict/theme-tomorrow_night";
|
|
37
|
-
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
38
|
-
import "ace-builds/src-noconflict/ext-searchbox";
|
|
39
|
-
import "ace-builds/src-noconflict/ext-language_tools";
|
|
40
|
-
import "ace-builds/src-noconflict/mode-snippets";
|
|
41
|
-
import { useModal as C } from "../../hooks/modal.js";
|
|
43
|
+
import { useModal as h } from "../../hooks/modal.js";
|
|
42
44
|
import "dayjs";
|
|
43
45
|
import "@tanstack/vue-query";
|
|
44
46
|
import "pinia";
|
|
45
|
-
const
|
|
47
|
+
const no = /* @__PURE__ */ n({
|
|
46
48
|
name: "DuxImageCrop",
|
|
47
49
|
props: {
|
|
48
50
|
defaultValue: {
|
|
@@ -62,59 +64,56 @@ const so = /* @__PURE__ */ d({
|
|
|
62
64
|
default: !0
|
|
63
65
|
}
|
|
64
66
|
},
|
|
65
|
-
setup(
|
|
66
|
-
emit:
|
|
67
|
+
setup(t, {
|
|
68
|
+
emit: m
|
|
67
69
|
}) {
|
|
68
|
-
var u;
|
|
69
70
|
const {
|
|
70
|
-
t:
|
|
71
|
-
} =
|
|
71
|
+
t: i
|
|
72
|
+
} = s(), e = g(t, "value", m, {
|
|
72
73
|
passive: !0,
|
|
73
|
-
defaultValue:
|
|
74
|
+
defaultValue: t.defaultValue || ""
|
|
74
75
|
}), {
|
|
75
|
-
config:
|
|
76
|
-
} =
|
|
77
|
-
path:
|
|
76
|
+
config: a
|
|
77
|
+
} = c(), u = h(), p = f(), l = d({
|
|
78
|
+
path: t.path || a.apiPath?.upload || "upload",
|
|
78
79
|
params: {
|
|
79
80
|
mime: "image/png"
|
|
80
81
|
},
|
|
81
82
|
autoUpload: !0,
|
|
82
83
|
onSuccess: (o) => {
|
|
83
|
-
|
|
84
|
-
i.value = (r = o.data) == null ? void 0 : r.url, a.success(m("components.upload.success"));
|
|
84
|
+
e.value = o.data?.url, p.success(i("components.upload.success"));
|
|
85
85
|
},
|
|
86
86
|
onError: (o) => {
|
|
87
|
-
|
|
87
|
+
p.error(o.message || i("components.upload.failed"));
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
|
-
return () =>
|
|
91
|
-
class: ["relative size-80px overflow-hidden group",
|
|
90
|
+
return () => r("div", {
|
|
91
|
+
class: ["relative size-80px overflow-hidden group", t.circle && "rounded-full"],
|
|
92
92
|
onClick: () => {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
component: () => import("./imageCropModal.js").then((t) => t.DuxImageCropModal),
|
|
93
|
+
u.show({
|
|
94
|
+
component: () => import("./imageCropModal.js").then((o) => o.DuxImageCropModal),
|
|
96
95
|
componentProps: {
|
|
97
|
-
value:
|
|
98
|
-
onConfirm: (
|
|
99
|
-
|
|
96
|
+
value: e.value,
|
|
97
|
+
onConfirm: (o) => {
|
|
98
|
+
e.value = o;
|
|
100
99
|
}
|
|
101
100
|
}
|
|
102
|
-
})
|
|
103
|
-
|
|
101
|
+
})?.then?.((o) => {
|
|
102
|
+
o && (o.name = "image.png", o.mime = "image/png", l.addFiles([o], "blob"));
|
|
104
103
|
}).catch(() => {
|
|
105
104
|
});
|
|
106
105
|
}
|
|
107
|
-
}, [
|
|
108
|
-
src:
|
|
109
|
-
circle:
|
|
106
|
+
}, [r(v, {
|
|
107
|
+
src: e.value,
|
|
108
|
+
circle: t.circle,
|
|
110
109
|
size: 80
|
|
111
|
-
}, null),
|
|
110
|
+
}, null), r("div", {
|
|
112
111
|
class: "absolute size-full bg-gray-900/30 items-center justify-center inset-0 cursor-pointer hidden z-1 group-hover:flex"
|
|
113
|
-
}, [
|
|
112
|
+
}, [r("div", {
|
|
114
113
|
class: "i-tabler:pencil size-4 text-white/90"
|
|
115
114
|
}, null)])]);
|
|
116
115
|
}
|
|
117
116
|
});
|
|
118
117
|
export {
|
|
119
|
-
|
|
118
|
+
no as DuxImageCrop
|
|
120
119
|
};
|