@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
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DuxCard as
|
|
1
|
+
import { defineComponent as i, createVNode as l } from "vue";
|
|
2
|
+
import { DuxCard as t } from "../card/card.js";
|
|
3
3
|
import "clsx";
|
|
4
4
|
import "naive-ui";
|
|
5
|
-
const
|
|
5
|
+
const a = /* @__PURE__ */ i({
|
|
6
6
|
name: "DuxWidgetConnect",
|
|
7
7
|
props: {
|
|
8
8
|
title: String,
|
|
@@ -10,112 +10,109 @@ const p = /* @__PURE__ */ t({
|
|
|
10
10
|
value: Number,
|
|
11
11
|
local: String
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
14
|
-
slots:
|
|
13
|
+
setup(c, {
|
|
14
|
+
slots: e
|
|
15
15
|
}) {
|
|
16
|
-
return () => l(
|
|
17
|
-
default: () => {
|
|
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
|
-
|
|
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
|
-
fill: "#ffb6b6"
|
|
114
|
-
}, null)])])])];
|
|
115
|
-
}
|
|
16
|
+
return () => l(t, null, {
|
|
17
|
+
default: () => [l("div", {
|
|
18
|
+
class: "flex items-center"
|
|
19
|
+
}, [l("div", {
|
|
20
|
+
class: "flex-1 flex flex-col gap-1 px-6 py-4"
|
|
21
|
+
}, [l("div", {
|
|
22
|
+
class: "font-medium text-base"
|
|
23
|
+
}, [c.title]), l("div", {
|
|
24
|
+
class: "text-sm text-muted"
|
|
25
|
+
}, [c.desc]), l("div", {
|
|
26
|
+
class: "mt-2"
|
|
27
|
+
}, [e.default?.()])]), l("div", {
|
|
28
|
+
class: "flex-none pt-4 pr-4"
|
|
29
|
+
}, [l("svg", {
|
|
30
|
+
class: "size-30",
|
|
31
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
32
|
+
width: "511.56264",
|
|
33
|
+
height: "532.44842",
|
|
34
|
+
viewBox: "0 0 511.56264 532.44842"
|
|
35
|
+
}, [l("polygon", {
|
|
36
|
+
points: "454.49103 405.20843 454.48102 405.44842 466.49103 532.44842 378.85101 532.44842 367.49103 454.44842 362.49103 530.44842 272.49103 529.44842 282.05103 429.66839 290.18103 383.41839 290.18103 383.40838 291.401 376.44842 452.10101 376.44842 452.31103 378.96838 454.49103 405.20843",
|
|
37
|
+
fill: "#2f2e41"
|
|
38
|
+
}, null), l("path", {
|
|
39
|
+
d: "M222.88285,478.83064c9.28179,1.69101,18.96019-8.76188,21.61758-23.34779,1.16327-6.38475,.78778-12.50277-.78019-17.50611l1.42323-8.40799,23.88334-113.10923s43.98031-87.97522,43.9791-103.24828c-.00111-15.27287-12.72223-22.76282-12.72223-22.76282l-17.21435,.16096-53.98264,131.84662-9.72217,97.42982-1.57289,13.36711c-3.2316,4.12897-5.74053,9.72145-6.90332,16.10621-2.65749,14.58572,2.71275,27.78048,11.99454,29.4715Z",
|
|
40
|
+
fill: "#ffb6b6"
|
|
41
|
+
}, null), l("polygon", {
|
|
42
|
+
points: "397.99103 135.94842 381.99103 98.94842 329.99103 107.94842 326.49103 151.47992 397.99103 135.94842",
|
|
43
|
+
fill: "#ffb6b6"
|
|
44
|
+
}, null), l("polygon", {
|
|
45
|
+
points: "397.99103 135.94842 381.99103 98.94842 329.99103 107.94842 326.49103 151.47992 397.99103 135.94842",
|
|
46
|
+
opacity: ".1"
|
|
47
|
+
}, null), l("path", {
|
|
48
|
+
d: "M510.99121,212.9484s-37-69-44-76c-3.11621-3.11621-8.01465-3.15955-12.49316-2.25134l-51.50684-17.74866-17.45801-9.8092-1.15039,18.66199-57.31543,10.28748c.31836-11.38086,1.92383-15.70972,1.92383-15.70972l-21,24.56946-41,20,.02246,.18005c-3.00879,1.05029-5.86133,2.84741-8.02246,5.81995-8,11-30,145-30,145l47,10,6.39648-40.13953,4.60352,36.13953,3.5,67.5s64,55,95,35,69-19,69-19l.94824-31.28796c.6748-1.07861,1.05176-1.71204,1.05176-1.71204l-1-110.98425v-29.5321c7.61816,10.61353,16.81152,19.74109,27.5,24.01636,35,14,28-43,28-43Z",
|
|
49
|
+
fill: "#e6e6e6"
|
|
50
|
+
}, null), l("circle", {
|
|
51
|
+
cx: "350.55585",
|
|
52
|
+
cy: "66.61991",
|
|
53
|
+
r: "47.83848",
|
|
54
|
+
fill: "#ffb6b6"
|
|
55
|
+
}, null), l("path", {
|
|
56
|
+
d: "M384.87476,80.13948s4.15987-14.55954,13.51957-13.51957c9.3597,1.03997,11.43964-7.27977,9.3597-11.43964-2.07993-4.15987-6.2398-24.95921-6.2398-24.95921,0,0,2.07993-14.55954-10.39967-16.63947-12.4796-2.07993-16.63947-4.15987-18.71941-8.31974-2.07993-4.15987-33.27894-8.31974-43.67861-2.07993-10.39967,6.2398-18.71941,18.2117-25.99917,21.58546-7.27977,3.37375-13.51957,9.61355-9.3597,20.01322,4.15987,10.39967,10.19286,30.7392,10.19286,30.7392,0,0,10.60648-3.70006,12.68641,2.53974,2.07993,6.2398-6.2398-2.07993,4.15987-18.71941,10.39967-16.63947,10.39967-33.27894,27.03914-27.03914,16.63947,6.2398,35.35888,4.15987,33.27894,16.63947-2.07993,12.4796,4.15987,31.19901,4.15987,31.19901Z",
|
|
57
|
+
fill: "#2f2e41"
|
|
58
|
+
}, null), l("g", null, [l("path", {
|
|
59
|
+
d: "M381.94946,459.38422H18.63322c-10.27456,0-18.63322-8.35942-18.63322-18.63322V247.758c0-10.2738,8.35866-18.63322,18.63322-18.63322H381.94946c10.27456,0,18.63322,8.35942,18.63322,18.63322v192.993c0,10.2738-8.35866,18.63322-18.63322,18.63322Z",
|
|
60
|
+
fill: "rgb(var(--ui-color-gray-100))"
|
|
61
|
+
}, null), l("path", {
|
|
62
|
+
d: "M381.94946,459.38422H18.63322c-10.27456,0-18.63322-8.35942-18.63322-18.63322V247.758c0-10.2738,8.35866-18.63322,18.63322-18.63322H381.94946c10.27456,0,18.63322,8.35942,18.63322,18.63322v192.993c0,10.2738-8.35866,18.63322-18.63322,18.63322ZM18.63322,232.23639c-8.55846,0-15.52161,6.96315-15.52161,15.52161v192.993c0,8.55846,6.96315,15.52161,15.52161,15.52161H381.94946c8.55846,0,15.52161-6.96315,15.52161-15.52161V247.758c0-8.55846-6.96315-15.52161-15.52161-15.52161H18.63322Z",
|
|
63
|
+
fill: "#3f3d56"
|
|
64
|
+
}, null), l("circle", {
|
|
65
|
+
cx: "353.90847",
|
|
66
|
+
cy: "247.79446",
|
|
67
|
+
r: "4.66742",
|
|
68
|
+
fill: "#3f3d56"
|
|
69
|
+
}, null), l("circle", {
|
|
70
|
+
cx: "366.35492",
|
|
71
|
+
cy: "247.79446",
|
|
72
|
+
r: "4.66742",
|
|
73
|
+
fill: "#3f3d56"
|
|
74
|
+
}, null), l("circle", {
|
|
75
|
+
cx: "378.80138",
|
|
76
|
+
cy: "247.79446",
|
|
77
|
+
r: "4.66742",
|
|
78
|
+
fill: "#3f3d56"
|
|
79
|
+
}, null), l("path", {
|
|
80
|
+
d: "M26.44872,323.2511c-1.28688,0-2.33371,1.04683-2.33371,2.33371,0,.62749,.24234,1.20788,.68218,1.63633,.44365,.45428,1.0248,.69738,1.65153,.69738H375.68976c1.28688,0,2.33371-1.04683,2.33371-2.33371,0-.62749-.24234-1.20788-.68218-1.63633-.44365-.45428-1.0248-.69738-1.65153-.69738H26.44872Z",
|
|
81
|
+
fill: "#e6e6e6"
|
|
82
|
+
}, null), l("path", {
|
|
83
|
+
d: "M332.12717,322.4732v6.22323H26.44872c-.85567,0-1.63358-.34233-2.19365-.91797-.57574-.56007-.91797-1.33797-.91797-2.19365,0-1.71144,1.40026-3.11161,3.11161-3.11161H332.12717Z",
|
|
84
|
+
fill: "rgb(var(--ui-color-primary))"
|
|
85
|
+
}, null), l("path", {
|
|
86
|
+
d: "M371.80025,310.80464h-31.11614c-3.43144,0-6.22323-2.79103-6.22323-6.22323s2.79179-6.22323,6.22323-6.22323h31.11614c3.43144,0,6.22323,2.79103,6.22323,6.22323s-2.79179,6.22323-6.22323,6.22323Z",
|
|
87
|
+
fill: "#e6e6e6"
|
|
88
|
+
}, null), l("path", {
|
|
89
|
+
d: "M167.98953,278.1327H28.78243c-3.43144,0-6.22323-2.79103-6.22323-6.22323s2.79179-6.22323,6.22323-6.22323H167.98953c3.43144,0,6.22323,2.79103,6.22323,6.22323s-2.79179,6.22323-6.22323,6.22323Z",
|
|
90
|
+
fill: "#e6e6e6"
|
|
91
|
+
}, null), l("path", {
|
|
92
|
+
d: "M26.44872,393.26242c-1.28688,0-2.33371,1.04683-2.33371,2.33371,0,.62749,.24234,1.20788,.68218,1.63633,.44365,.45428,1.0248,.69738,1.65153,.69738H375.68976c1.28688,0,2.33371-1.04683,2.33371-2.33371,0-.62749-.24234-1.20788-.68218-1.63633-.44365-.45428-1.0248-.69738-1.65153-.69738H26.44872Z",
|
|
93
|
+
fill: "#e6e6e6"
|
|
94
|
+
}, null), l("path", {
|
|
95
|
+
d: "M212.33003,392.48451v6.22323H26.44872c-.85567,0-1.63358-.34233-2.19365-.91797-.57574-.56007-.91797-1.33797-.91797-2.19365,0-1.71144,1.40026-3.11161,3.11161-3.11161H212.33003Z",
|
|
96
|
+
fill: "rgb(var(--ui-color-primary))"
|
|
97
|
+
}, null), l("path", {
|
|
98
|
+
d: "M371.80025,380.81596h-31.11614c-3.43144,0-6.22323-2.79103-6.22323-6.22323s2.79179-6.22323,6.22323-6.22323h31.11614c3.43144,0,6.22323,2.79103,6.22323,6.22323s-2.79179,6.22323-6.22323,6.22323Z",
|
|
99
|
+
fill: "#e6e6e6"
|
|
100
|
+
}, null)]), l("g", null, [l("ellipse", {
|
|
101
|
+
cx: "426.27357",
|
|
102
|
+
cy: "70.44086",
|
|
103
|
+
rx: "48.72643",
|
|
104
|
+
ry: "47.69976",
|
|
105
|
+
fill: "rgb(var(--ui-color-primary))"
|
|
106
|
+
}, null), l("path", {
|
|
107
|
+
d: "M442.81136,46.3808c-6.487,11.81215-12.97405,23.62439-19.46106,35.43659-4.13442-7.30499-8.24624-14.62285-12.39083-21.92211-1.43136-2.5209-5.32473-.25351-3.88976,2.27368,4.80448,8.46149,9.55919,16.95111,14.36367,25.41259,.82147,1.44676,3.07677,1.48035,3.8898,0,7.12599-12.9757,14.25199-25.95141,21.37798-38.92707,1.39635-2.54258-2.4924-4.81822-3.8898-2.27368Z",
|
|
108
|
+
fill: "rgb(var(--ui-color-gray-100))"
|
|
109
|
+
}, null)]), l("path", {
|
|
110
|
+
d: "M493.53827,196.17181l-48.54724-23.22339s-1.94983-15.5437-11.05402-21.08789c-1.54779-3.6925-3.32855-7.74908-4.94598-10.96332-4-7.94879,2-22.94879-3-22.94879s-12.39122,15.77543-12,20c.30031,3.24292,2.98059,8.90472,3.5343,13.8609-6.09709,2.29949-11.01564,6.24084-14.24964,9.37903-2.79865,2.71575-3.8385,6.76755-2.74475,10.51073,3.16948,10.84703,11.09153,33.24933,22.46008,33.24933,15,0,19-3,19-3,0,0,31,39,54,42s-2.45276-47.77661-2.45276-47.77661Z",
|
|
111
|
+
fill: "#ffb6b6"
|
|
112
|
+
}, null)])])])]
|
|
116
113
|
});
|
|
117
114
|
}
|
|
118
115
|
});
|
|
119
116
|
export {
|
|
120
|
-
|
|
117
|
+
a as DuxWidgetConnect
|
|
121
118
|
};
|
package/dist/esm/dvha-pro.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.n-popover-shared .n-popover-arrow-wrapper .n-popover-arrow{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.n-dropdown-menu{min-width:130px}.icon-gradient{color:rgb(var(--ui-color-primary));animation:icon-color-cycle 12s ease-in-out infinite}@keyframes icon-color-cycle{0%{color:rgb(var(--ui-color-primary))}20%{color:rgb(var(--ui-color-info))}40%{color:rgb(var(--ui-color-success))}60%{color:rgb(var(--ui-color-warning))}80%{color:rgb(var(--ui-color-error))}to{color:rgb(var(--ui-color-primary))}}@keyframes icon-gradient-shift{0%{background-position:0% 50%}25%{background-position:50% 0%}50%{background-position:100% 50%}75%{background-position:50% 100%}to{background-position:0% 50%}}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type .n-tabs-pad{border:none}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type .n-tabs-nav__prefix,.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type .n-tabs-nav__suffix{border-bottom:none}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type .n-tabs-tab{padding:0;border-bottom:none;border-radius:0;background-color:transparent}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--top.n-tabs-nav--card-type .n-tabs-tab-pad{height:20px;width:1px;background-color:#0000001a;border-bottom:none;position:absolute;top:50%;transform:translateY(-50%)}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--top.n-tabs-nav--card-type .n-tabs-tab{background-color:transparent;border-bottom:none;border:none;position:relative}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--top.n-tabs-nav--card-type .n-tabs-tab.n-tabs-tab--active{background-color:transparent}.dark .app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--top.n-tabs-nav--card-type .n-tabs-tab-pad{background-color:#ffffff1a}.app-modal-tabs.n-tabs .n-tabs-wrapper{padding:0 16px}.app-modal-tabs.n-tabs .n-tabs-nav{background-color:rgb(var(--ui-color-gray-200)/.2)}.app-modal-tabs.n-tabs .n-tabs-tab{padding:12px 4px;font-size:var(--n-font-size)}.dark .app-modal-tabs.n-tabs .n-tabs-nav{background-color:rgb(var(--ui-bg-elevated)/.5)}.n-data-table .n-data-table-thead{border:1px solid rgb(var(--ui-border-muted))}.n-data-table .n-data-table-thead .n-data-table-tr>.n-data-table-th:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem;border-left:1px solid rgba(var(--ui-border-accented)/.5)}.n-data-table .n-data-table-thead .n-data-table-tr>.n-data-table-th--last{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem;border-right:1px solid rgba(var(--ui-border-accented)/.5)}.n-data-table .n-data-table-th{border-top:1px solid rgba(var(--ui-border-accented)/.5);border-bottom:1px solid rgba(var(--ui-border-accented)/.5)}.command-palette [command-dialog-mask]{background-color:rgb(var(--ui-bg-inverted)/.3);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);height:100vh;width:100vw;position:fixed;top:0;left:0;z-index:1000}.command-palette [command-dialog-wrapper]{position:relative;flex-direction:column;margin:20vh auto auto;max-width:560px;background-color:rgb(var(--ui-bg)/.9);border-radius:6px}.command-palette [command-group-heading]{color:rgba(var(--ui-text-muted));padding:6px}.command-palette [command-separator]{border-bottom:1px solid rgb(var(--ui-border-muted));margin:6px 0}.command-palette [command-list]{border-top:1px solid rgb(var(--ui-border-muted));padding:0 6px 6px}.command-palette [command-item]{padding:6px 12px;display:flex;align-items:center;gap:6px;border-radius:3px;color:rgba(var(--ui-text-toned))}.command-palette [command-item][aria-selected=true],.command-palette [command-item]:active{background-color:rgb(var(--ui-bg-accented)/.8);color:rgba(var(--ui-color-primary-500))}.dark .command-palette [command-dialog-mask]{background-color:rgb(var(--ui-bg-inverted)/.02)}.dark .command-palette [command-dialog-wrapper]{background-color:rgb(var(--ui-bg-elevated)/.95)}.dark .command-palette [command-separator]{border-bottom:1px solid rgb(var(--ui-border)/.5)}.dark .command-palette [command-list]{border-top:1px solid rgb(var(--ui-border)/.5)}.n-menu.n-menu--collapsed .n-menu-item-content .n-menu-item-content-header{opacity:1}.n-menu.n-menu--collapsed .n-menu-item-content .n-menu-item-content__arrow{display:none}.app-login-bg{background-image:repeating-linear-gradient(90deg,hsla(298,16%,68%,.06) 0px,hsla(298,16%,68%,.06) 1px,transparent 1px,transparent 21px,hsla(298,16%,68%,.06) 21px,hsla(298,16%,68%,.06) 22px,transparent 22px,transparent 72px),repeating-linear-gradient(0deg,hsla(298,16%,68%,.06) 0px,hsla(298,16%,68%,.06) 1px,transparent 1px,transparent 21px,hsla(298,16%,68%,.06) 21px,hsla(298,16%,68%,.06) 22px,transparent 22px,transparent 72px),repeating-linear-gradient(135deg,hsla(298,16%,68%,.06) 0px,hsla(298,16%,68%,.06) 1px,transparent 1px,transparent 21px,hsla(298,16%,68%,.06) 21px,hsla(298,16%,68%,.06) 22px,transparent 22px,transparent 72px),linear-gradient(90deg,#f7f7f8,#f7f7f8)}.app-login-dark-bg{background-image:repeating-linear-gradient(90deg,rgba(90,90,90,.06) 0px,rgba(90,90,90,.06) 1px,transparent 1px,transparent 21px,rgba(90,90,90,.06) 21px,rgba(90,90,90,.06) 22px,transparent 22px,transparent 72px),repeating-linear-gradient(0deg,rgba(90,90,90,.06) 0px,rgba(90,90,90,.06) 1px,transparent 1px,transparent 21px,rgba(90,90,90,.06) 21px,rgba(90,90,90,.06) 22px,transparent 22px,transparent 72px),repeating-linear-gradient(135deg,rgba(90,90,90,.06) 0px,rgba(90,90,90,.06) 1px,transparent 1px,transparent 21px,rgba(90,90,90,.06) 21px,rgba(90,90,90,.06) 22px,transparent 22px,transparent 72px),linear-gradient(90deg,#101014,#101014)}.app-loading{position:fixed;
|
|
1
|
+
@charset "UTF-8";.n-popover-shared .n-popover-arrow-wrapper .n-popover-arrow{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.n-dropdown-menu{min-width:130px}.icon-gradient{color:rgb(var(--ui-color-primary));animation:icon-color-cycle 12s ease-in-out infinite}@keyframes icon-color-cycle{0%{color:rgb(var(--ui-color-primary))}20%{color:rgb(var(--ui-color-info))}40%{color:rgb(var(--ui-color-success))}60%{color:rgb(var(--ui-color-warning))}80%{color:rgb(var(--ui-color-error))}to{color:rgb(var(--ui-color-primary))}}@keyframes icon-gradient-shift{0%{background-position:0% 50%}25%{background-position:50% 0%}50%{background-position:100% 50%}75%{background-position:50% 100%}to{background-position:0% 50%}}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type .n-tabs-pad{border:none}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type .n-tabs-nav__prefix,.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type .n-tabs-nav__suffix{border-bottom:none}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--card-type .n-tabs-tab{padding:0;border-bottom:none;border-radius:0;background-color:transparent}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--top.n-tabs-nav--card-type .n-tabs-tab-pad{height:20px;width:1px;background-color:#0000001a;border-bottom:none;position:absolute;top:50%;transform:translateY(-50%)}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--top.n-tabs-nav--card-type .n-tabs-tab{background-color:transparent;border-bottom:none;border:none;position:relative}.app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--top.n-tabs-nav--card-type .n-tabs-tab.n-tabs-tab--active{background-color:transparent}.dark .app-page-tabs.n-tabs .n-tabs-nav.n-tabs-nav--top.n-tabs-nav--card-type .n-tabs-tab-pad{background-color:#ffffff1a}.app-modal-tabs.n-tabs .n-tabs-wrapper{padding:0 16px}.app-modal-tabs.n-tabs .n-tabs-nav{background-color:rgb(var(--ui-color-gray-200)/.2)}.app-modal-tabs.n-tabs .n-tabs-tab{padding:12px 4px;font-size:var(--n-font-size)}.dark .app-modal-tabs.n-tabs .n-tabs-nav{background-color:rgb(var(--ui-bg-elevated)/.5)}.n-data-table .n-data-table-thead{border:1px solid rgb(var(--ui-border-muted))}.n-data-table .n-data-table-thead .n-data-table-tr>.n-data-table-th:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem;border-left:1px solid rgba(var(--ui-border-accented)/.5)}.n-data-table .n-data-table-thead .n-data-table-tr>.n-data-table-th--last{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem;border-right:1px solid rgba(var(--ui-border-accented)/.5)}.n-data-table .n-data-table-th{border-top:1px solid rgba(var(--ui-border-accented)/.5);border-bottom:1px solid rgba(var(--ui-border-accented)/.5)}.command-palette [command-dialog-mask]{background-color:rgb(var(--ui-bg-inverted)/.3);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);height:100vh;width:100vw;position:fixed;top:0;left:0;z-index:1000}.command-palette [command-dialog-wrapper]{position:relative;flex-direction:column;margin:20vh auto auto;max-width:560px;background-color:rgb(var(--ui-bg)/.9);border-radius:6px}.command-palette [command-group-heading]{color:rgba(var(--ui-text-muted));padding:6px}.command-palette [command-separator]{border-bottom:1px solid rgb(var(--ui-border-muted));margin:6px 0}.command-palette [command-list]{border-top:1px solid rgb(var(--ui-border-muted));padding:0 6px 6px}.command-palette [command-item]{padding:6px 12px;display:flex;align-items:center;gap:6px;border-radius:3px;color:rgba(var(--ui-text-toned))}.command-palette [command-item][aria-selected=true],.command-palette [command-item]:active{background-color:rgb(var(--ui-bg-accented)/.8);color:rgba(var(--ui-color-primary-500))}.dark .command-palette [command-dialog-mask]{background-color:rgb(var(--ui-bg-inverted)/.02)}.dark .command-palette [command-dialog-wrapper]{background-color:rgb(var(--ui-bg-elevated)/.95)}.dark .command-palette [command-separator]{border-bottom:1px solid rgb(var(--ui-border)/.5)}.dark .command-palette [command-list]{border-top:1px solid rgb(var(--ui-border)/.5)}.n-menu.n-menu--collapsed .n-menu-item-content .n-menu-item-content-header{opacity:1}.n-menu.n-menu--collapsed .n-menu-item-content .n-menu-item-content__arrow{display:none}.app-login-bg{background-image:repeating-linear-gradient(90deg,hsla(298,16%,68%,.06) 0px,hsla(298,16%,68%,.06) 1px,transparent 1px,transparent 21px,hsla(298,16%,68%,.06) 21px,hsla(298,16%,68%,.06) 22px,transparent 22px,transparent 72px),repeating-linear-gradient(0deg,hsla(298,16%,68%,.06) 0px,hsla(298,16%,68%,.06) 1px,transparent 1px,transparent 21px,hsla(298,16%,68%,.06) 21px,hsla(298,16%,68%,.06) 22px,transparent 22px,transparent 72px),repeating-linear-gradient(135deg,hsla(298,16%,68%,.06) 0px,hsla(298,16%,68%,.06) 1px,transparent 1px,transparent 21px,hsla(298,16%,68%,.06) 21px,hsla(298,16%,68%,.06) 22px,transparent 22px,transparent 72px),linear-gradient(90deg,#f7f7f8,#f7f7f8)}.app-login-dark-bg{background-image:repeating-linear-gradient(90deg,rgba(90,90,90,.06) 0px,rgba(90,90,90,.06) 1px,transparent 1px,transparent 21px,rgba(90,90,90,.06) 21px,rgba(90,90,90,.06) 22px,transparent 22px,transparent 72px),repeating-linear-gradient(0deg,rgba(90,90,90,.06) 0px,rgba(90,90,90,.06) 1px,transparent 1px,transparent 21px,rgba(90,90,90,.06) 21px,rgba(90,90,90,.06) 22px,transparent 22px,transparent 72px),repeating-linear-gradient(135deg,rgba(90,90,90,.06) 0px,rgba(90,90,90,.06) 1px,transparent 1px,transparent 21px,rgba(90,90,90,.06) 21px,rgba(90,90,90,.06) 22px,transparent 22px,transparent 72px),linear-gradient(90deg,#101014,#101014)}.app-loading{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:1000;background-color:rgb(var(--ui-bg));overflow:hidden}.app-box-loading{width:50px;height:50px;position:relative}.app-box-loading:before{content:"";width:50px;height:5px;background:rgb(var(--ui-color-gray-200));opacity:.3;position:absolute;top:59px;left:0;border-radius:50%;animation:shadow .5s linear infinite}.app-box-loading:after{content:"";width:50px;height:50px;background:rgba(var(--ui-color-primary));animation:animate .5s linear infinite;position:absolute;top:0;left:0;border-radius:3px}@keyframes animate{17%{border-bottom-right-radius:3px}25%{transform:translateY(9px) rotate(22.5deg)}50%{transform:translateY(18px) scaleY(.9) rotate(45deg);border-bottom-right-radius:40px}75%{transform:translateY(9px) rotate(67.5deg)}to{transform:translateY(0) rotate(90deg)}}@keyframes shadow{0%,to{transform:scale(1)}50%{transform:scaleX(1.2)}}html{color-scheme:light;background-color:rgb(var(--ui-color-primary-700)/.05)}html.dark{color-scheme:dark;background-color:rgb(var(--ui-bg)/.5)}[un-cloak]{display:none}.app-remote-loader{height:100%}.tab-fade-leave-active,.tab-fade-enter-active{transition:all .3s}.tab-fade-enter-from{opacity:0;transform:translate(-30px)}.tab-fade-enter-to{opacity:1;transform:translate(0)}.tab-fade-leave-to{opacity:0;transform:translate(30px)}
|
package/dist/esm/hooks/action.js
CHANGED
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
import { useI18n as
|
|
2
|
-
import { useMessage as
|
|
3
|
-
import { h as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import { useDialog as
|
|
6
|
-
import { useDrawer as
|
|
7
|
-
import { useModal as
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
t:
|
|
11
|
-
} =
|
|
1
|
+
import { useI18n as h, useManage as A, useCustomMutation as M, useDelete as S } from "@duxweb/dvha-core";
|
|
2
|
+
import { useMessage as D, NButton as b, NDropdown as C } from "naive-ui";
|
|
3
|
+
import { h as l } from "vue";
|
|
4
|
+
import { useRouter as I } from "vue-router";
|
|
5
|
+
import { useDialog as N } from "./dialog.js";
|
|
6
|
+
import { useDrawer as $ } from "./drawer.js";
|
|
7
|
+
import { useModal as B } from "./modal.js";
|
|
8
|
+
function K(o) {
|
|
9
|
+
const u = B(), i = $(), m = N(), {
|
|
10
|
+
t: n
|
|
11
|
+
} = h(), c = D(), g = A(), w = I(), P = M({
|
|
12
12
|
onSuccess: (t) => {
|
|
13
|
-
|
|
13
|
+
c.success(t.message || n("common.success"));
|
|
14
14
|
},
|
|
15
15
|
onError: (t) => {
|
|
16
|
-
|
|
16
|
+
c.error(t.message || n("common.error"));
|
|
17
17
|
}
|
|
18
|
-
}),
|
|
18
|
+
}), k = S({
|
|
19
19
|
onSuccess: (t) => {
|
|
20
|
-
|
|
20
|
+
c.success(t.message || n("common.success"));
|
|
21
21
|
},
|
|
22
22
|
onError: (t) => {
|
|
23
|
-
|
|
23
|
+
c.error(t.message || n("common.error"));
|
|
24
24
|
}
|
|
25
|
-
}),
|
|
26
|
-
|
|
27
|
-
const i = c(t.item.title || "", {}, t.item.title), f = c(t.item.label || "", {}, t.item.label);
|
|
25
|
+
}), r = o?.path || g.getPath(), f = (t) => {
|
|
26
|
+
const a = n(t.item.title || "", {}, t.item.title), s = n(t.item.label || "", {}, t.item.label);
|
|
28
27
|
if (t.item.type === "modal") {
|
|
29
|
-
const e = t.item,
|
|
30
|
-
|
|
31
|
-
title:
|
|
28
|
+
const e = t.item, d = typeof e.componentProps == "function" ? e.componentProps(t.data) : e.componentProps;
|
|
29
|
+
u.show({
|
|
30
|
+
title: a || s,
|
|
32
31
|
component: e.component,
|
|
33
32
|
componentProps: {
|
|
34
33
|
id: t.id,
|
|
35
|
-
...
|
|
34
|
+
...d
|
|
36
35
|
},
|
|
37
36
|
width: e.width,
|
|
38
37
|
draggable: e.draggable !== void 0 ? e.draggable : !0
|
|
39
38
|
});
|
|
40
39
|
}
|
|
41
40
|
if (t.item.type === "drawer") {
|
|
42
|
-
const e = t.item,
|
|
43
|
-
|
|
44
|
-
title:
|
|
41
|
+
const e = t.item, d = typeof e.componentProps == "function" ? e.componentProps(t.data) : e.componentProps;
|
|
42
|
+
i.show({
|
|
43
|
+
title: a || s,
|
|
45
44
|
component: e.component,
|
|
46
45
|
componentProps: {
|
|
47
46
|
id: t.id,
|
|
48
|
-
...
|
|
47
|
+
...d
|
|
49
48
|
},
|
|
50
49
|
width: e.width,
|
|
51
50
|
maxWidth: e.maxWidth
|
|
@@ -53,156 +52,141 @@ function Q(n) {
|
|
|
53
52
|
}
|
|
54
53
|
if (t.item.type === "confirm") {
|
|
55
54
|
const e = t.item;
|
|
56
|
-
|
|
57
|
-
title:
|
|
55
|
+
m.confirm({
|
|
56
|
+
title: a || s,
|
|
58
57
|
content: e.content
|
|
59
|
-
}).then((
|
|
60
|
-
|
|
61
|
-
m && ((g = e.callback) == null || g.call(e, t.id, t.data));
|
|
58
|
+
}).then((d) => {
|
|
59
|
+
d && e.callback?.(t.id, t.data);
|
|
62
60
|
});
|
|
63
61
|
}
|
|
64
62
|
if (t.item.type === "request") {
|
|
65
63
|
const e = t.item;
|
|
66
|
-
|
|
67
|
-
title:
|
|
64
|
+
m.confirm({
|
|
65
|
+
title: a || s,
|
|
68
66
|
content: e.content
|
|
69
67
|
}).then(() => {
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
path:
|
|
73
|
-
method:
|
|
74
|
-
payload:
|
|
68
|
+
const d = typeof e.data == "function" ? e.data(t.id, t.data) : e.data, j = (e.method || "post").toLowerCase(), v = typeof e.path == "function" ? e.path(t.id, t.data) : e.path || r;
|
|
69
|
+
P.mutate({
|
|
70
|
+
path: v,
|
|
71
|
+
method: j,
|
|
72
|
+
payload: d
|
|
75
73
|
});
|
|
76
74
|
});
|
|
77
75
|
}
|
|
78
76
|
if (t.item.type === "delete") {
|
|
79
77
|
const e = t.item;
|
|
80
|
-
|
|
81
|
-
title:
|
|
78
|
+
m.confirm({
|
|
79
|
+
title: a || s,
|
|
82
80
|
content: e.content
|
|
83
81
|
}).then(() => {
|
|
84
|
-
|
|
82
|
+
k.mutate({
|
|
85
83
|
id: t.id,
|
|
86
|
-
path: typeof e.path == "function" ? e.path(t.id, t.data) : e.path ||
|
|
84
|
+
path: typeof e.path == "function" ? e.path(t.id, t.data) : e.path || r
|
|
87
85
|
});
|
|
88
86
|
});
|
|
89
87
|
}
|
|
90
88
|
if (t.item.type === "link") {
|
|
91
|
-
const e = t.item,
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
if (t.item.type === "callback") {
|
|
95
|
-
const e = t.item;
|
|
96
|
-
(k = e.callback) == null || k.call(e, t.id, t.data);
|
|
89
|
+
const e = t.item, d = typeof e.path == "function" ? e.path?.(t.id, t.data) : g.getRoutePath(t.id ? `${e.path || r}${t.data === void 0 ? "" : `/${t.id}`}` : e.path || r);
|
|
90
|
+
w.push(d);
|
|
97
91
|
}
|
|
98
|
-
|
|
92
|
+
t.item.type === "callback" && t.item.callback?.(t.id, t.data);
|
|
93
|
+
}, y = E(), x = T();
|
|
99
94
|
return {
|
|
100
|
-
target:
|
|
101
|
-
renderTable: (t) => (
|
|
102
|
-
const
|
|
103
|
-
id:
|
|
104
|
-
data:
|
|
105
|
-
index:
|
|
106
|
-
target:
|
|
107
|
-
text: t.text !== void 0 ? t.text :
|
|
108
|
-
align: t.align !== void 0 ? t.align :
|
|
95
|
+
target: f,
|
|
96
|
+
renderTable: (t) => (a, s) => {
|
|
97
|
+
const e = {
|
|
98
|
+
id: a[t.key || o?.key || "id"],
|
|
99
|
+
data: a,
|
|
100
|
+
index: s,
|
|
101
|
+
target: f,
|
|
102
|
+
text: t.text !== void 0 ? t.text : o?.text || !1,
|
|
103
|
+
align: t.align !== void 0 ? t.align : o?.align || "left"
|
|
109
104
|
};
|
|
110
|
-
return (t.type ||
|
|
111
|
-
...
|
|
112
|
-
action: t ||
|
|
113
|
-
}) :
|
|
114
|
-
...
|
|
115
|
-
action: t ||
|
|
105
|
+
return (t.type || o?.type) === "button" ? y.render({
|
|
106
|
+
...e,
|
|
107
|
+
action: t || o
|
|
108
|
+
}) : x.render({
|
|
109
|
+
...e,
|
|
110
|
+
action: t || o
|
|
116
111
|
});
|
|
117
112
|
},
|
|
118
113
|
renderAction: (t) => {
|
|
119
|
-
const
|
|
120
|
-
target:
|
|
121
|
-
text: t.text !== void 0 ? t.text :
|
|
122
|
-
align: t.align !== void 0 ? t.align :
|
|
114
|
+
const a = {
|
|
115
|
+
target: f,
|
|
116
|
+
text: t.text !== void 0 ? t.text : o?.text || !1,
|
|
117
|
+
align: t.align !== void 0 ? t.align : o?.align || "left"
|
|
123
118
|
};
|
|
124
|
-
return (t.type ||
|
|
125
|
-
...
|
|
126
|
-
action: t ||
|
|
127
|
-
}) :
|
|
128
|
-
...
|
|
129
|
-
action: t ||
|
|
119
|
+
return (t.type || o?.type) === "button" ? y.render({
|
|
120
|
+
...a,
|
|
121
|
+
action: t || o
|
|
122
|
+
}) : x.render({
|
|
123
|
+
...a,
|
|
124
|
+
action: t || o
|
|
130
125
|
});
|
|
131
126
|
}
|
|
132
127
|
};
|
|
133
128
|
}
|
|
134
|
-
function
|
|
129
|
+
function E() {
|
|
135
130
|
const {
|
|
136
|
-
t:
|
|
137
|
-
} =
|
|
131
|
+
t: o
|
|
132
|
+
} = h();
|
|
138
133
|
return {
|
|
139
|
-
render: (
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
key: l,
|
|
146
|
-
type: a.color || (a.type === "delete" ? "error" : "primary"),
|
|
147
|
-
text: d.text,
|
|
148
|
-
secondary: !d.text,
|
|
134
|
+
render: (i) => {
|
|
135
|
+
const m = i.action.items?.filter((n) => !n.show || n.show?.(i.data, i.index)).map((n, c) => l(b, {
|
|
136
|
+
key: c,
|
|
137
|
+
type: n.color || (n.type === "delete" ? "error" : "primary"),
|
|
138
|
+
text: i.text,
|
|
139
|
+
secondary: !i.text,
|
|
149
140
|
onClick: () => {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
item: a
|
|
141
|
+
i?.target?.({
|
|
142
|
+
id: i.id,
|
|
143
|
+
data: i.data,
|
|
144
|
+
item: n
|
|
155
145
|
});
|
|
156
146
|
},
|
|
157
|
-
renderIcon:
|
|
158
|
-
class: ["n-icon",
|
|
147
|
+
renderIcon: n.icon ? () => l("div", {
|
|
148
|
+
class: ["n-icon", n.icon]
|
|
159
149
|
}) : void 0
|
|
160
|
-
}, () => n
|
|
161
|
-
return
|
|
162
|
-
class: ["flex gap-2 flex-wrap items-center",
|
|
163
|
-
},
|
|
150
|
+
}, () => o(n.label || "", {}, n.label)));
|
|
151
|
+
return l("div", {
|
|
152
|
+
class: ["flex gap-2 flex-wrap items-center", i.align === "right" ? "justify-end" : i.align === "center" ? "justify-center" : "justify-start"]
|
|
153
|
+
}, m);
|
|
164
154
|
}
|
|
165
155
|
};
|
|
166
156
|
}
|
|
167
|
-
function
|
|
157
|
+
function T() {
|
|
168
158
|
const {
|
|
169
|
-
t:
|
|
170
|
-
} =
|
|
159
|
+
t: o
|
|
160
|
+
} = h();
|
|
171
161
|
return {
|
|
172
|
-
render: (
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
label: n(a.label || "", {}, a.label),
|
|
179
|
-
key: l,
|
|
180
|
-
icon: a.icon ? () => o("div", {
|
|
181
|
-
class: ["n-icon", a.icon]
|
|
162
|
+
render: (i) => {
|
|
163
|
+
const m = i.action.items?.filter((n) => !n.show || n.show?.(i.data, i.index)).map((n, c) => ({
|
|
164
|
+
label: o(n.label || "", {}, n.label),
|
|
165
|
+
key: c,
|
|
166
|
+
icon: n.icon ? () => l("div", {
|
|
167
|
+
class: ["n-icon", n.icon]
|
|
182
168
|
}) : void 0,
|
|
183
169
|
onSelect: () => {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
item: a
|
|
170
|
+
i?.target?.({
|
|
171
|
+
id: i.id,
|
|
172
|
+
data: i.data,
|
|
173
|
+
item: n
|
|
189
174
|
});
|
|
190
175
|
}
|
|
191
176
|
}));
|
|
192
|
-
return
|
|
177
|
+
return l(C, {
|
|
193
178
|
trigger: "click",
|
|
194
|
-
options:
|
|
195
|
-
onSelect: (
|
|
196
|
-
|
|
197
|
-
(u = l == null ? void 0 : l.onSelect) == null || u.call(l);
|
|
179
|
+
options: m,
|
|
180
|
+
onSelect: (n, c) => {
|
|
181
|
+
c?.onSelect?.();
|
|
198
182
|
}
|
|
199
|
-
}, () => [
|
|
200
|
-
class: ["flex items-center",
|
|
201
|
-
},
|
|
183
|
+
}, () => [l("div", {
|
|
184
|
+
class: ["flex items-center", i.align === "right" ? "justify-end" : i.align === "center" ? "justify-center" : "justify-start"]
|
|
185
|
+
}, l(b, {
|
|
202
186
|
type: "default",
|
|
203
|
-
text:
|
|
204
|
-
secondary: !
|
|
205
|
-
renderIcon: () =>
|
|
187
|
+
text: i.text,
|
|
188
|
+
secondary: !i.text,
|
|
189
|
+
renderIcon: () => l("div", {
|
|
206
190
|
class: ["n-icon", "i-tabler:dots-vertical"]
|
|
207
191
|
})
|
|
208
192
|
}))]);
|
|
@@ -210,7 +194,7 @@ function q() {
|
|
|
210
194
|
};
|
|
211
195
|
}
|
|
212
196
|
export {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
197
|
+
K as useAction,
|
|
198
|
+
E as useActionButton,
|
|
199
|
+
T as useActionDropdown
|
|
216
200
|
};
|