@duxweb/dvha-pro 0.0.6 → 0.0.7

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.
Files changed (121) hide show
  1. package/dist/cjs/component.cjs +1 -1
  2. package/dist/cjs/components/card/card.cjs +1 -1
  3. package/dist/cjs/components/chart/echart.cjs +1 -0
  4. package/dist/cjs/components/dialog/dialog.cjs +1 -1
  5. package/dist/cjs/components/drawer/drawer.cjs +1 -1
  6. package/dist/cjs/components/form/modalForm.cjs +1 -1
  7. package/dist/cjs/components/form/pageForm.cjs +1 -1
  8. package/dist/cjs/components/form/settingForm.cjs +1 -1
  9. package/dist/cjs/components/layout/list.cjs +1 -1
  10. package/dist/cjs/components/layout/table.cjs +1 -1
  11. package/dist/cjs/components/list/card.cjs +1 -1
  12. package/dist/cjs/components/list/list.cjs +1 -1
  13. package/dist/cjs/components/modal/modal.cjs +1 -1
  14. package/dist/cjs/components/modal/modalPage.cjs +1 -1
  15. package/dist/cjs/components/modal/modalTab.cjs +1 -1
  16. package/dist/cjs/components/select/cardSelect.cjs +1 -0
  17. package/dist/cjs/components/table/tablePage.cjs +1 -1
  18. package/dist/cjs/config/echart.cjs +1 -0
  19. package/dist/cjs/dvha-pro.css +1 -1
  20. package/dist/cjs/hooks/action.cjs +1 -1
  21. package/dist/cjs/hooks/dialog.cjs +1 -1
  22. package/dist/cjs/hooks/drawer.cjs +1 -1
  23. package/dist/cjs/hooks/echart.cjs +1 -0
  24. package/dist/cjs/hooks/modal.cjs +1 -1
  25. package/dist/cjs/hooks/table/media.cjs +1 -1
  26. package/dist/cjs/index.cjs +1 -1
  27. package/dist/cjs/main.cjs +1 -1
  28. package/dist/cjs/pages/authLayout.cjs +1 -1
  29. package/dist/cjs/pages/layout/global.cjs +1 -1
  30. package/dist/cjs/pages/layout/page.cjs +1 -1
  31. package/dist/cjs/pages/login.cjs +1 -1
  32. package/dist/cjs/pages/menu/avatar.cjs +1 -1
  33. package/dist/cjs/pages/menu/button.cjs +1 -1
  34. package/dist/cjs/pages/menu/cmd.cjs +1 -1
  35. package/dist/cjs/pages/menu/main.cjs +1 -1
  36. package/dist/cjs/pages/menu/mobile.cjs +1 -1
  37. package/dist/cjs/pages/page.cjs +1 -1
  38. package/dist/cjs/pages/page404.cjs +1 -1
  39. package/dist/cjs/pages/pageStatus.cjs +1 -1
  40. package/dist/cjs/theme/naiveTheme.cjs +1 -1
  41. package/dist/cjs/theme/uno.css.cjs +28 -7
  42. package/dist/esm/component.js +43 -41
  43. package/dist/esm/components/card/card.js +1 -1
  44. package/dist/esm/components/chart/echart.js +75 -0
  45. package/dist/esm/components/dialog/dialog.js +87 -93
  46. package/dist/esm/components/drawer/drawer.js +34 -32
  47. package/dist/esm/components/form/modalForm.js +1 -1
  48. package/dist/esm/components/form/pageForm.js +23 -19
  49. package/dist/esm/components/form/settingForm.js +22 -18
  50. package/dist/esm/components/layout/list.js +203 -142
  51. package/dist/esm/components/layout/table.js +210 -145
  52. package/dist/esm/components/list/card.js +42 -32
  53. package/dist/esm/components/list/list.js +27 -16
  54. package/dist/esm/components/modal/modal.js +46 -86
  55. package/dist/esm/components/modal/modalPage.js +23 -18
  56. package/dist/esm/components/modal/modalTab.js +11 -11
  57. package/dist/esm/components/select/cardSelect.js +103 -0
  58. package/dist/esm/components/table/tablePage.js +21 -18
  59. package/dist/esm/config/echart.js +456 -0
  60. package/dist/esm/dvha-pro.css +1 -1
  61. package/dist/esm/hooks/action.js +46 -45
  62. package/dist/esm/hooks/dialog.js +24 -7
  63. package/dist/esm/hooks/drawer.js +12 -8
  64. package/dist/esm/hooks/echart.js +469 -0
  65. package/dist/esm/hooks/modal.js +25 -9
  66. package/dist/esm/hooks/table/media.js +18 -14
  67. package/dist/esm/index.js +158 -135
  68. package/dist/esm/main.js +11 -8
  69. package/dist/esm/pages/authLayout.js +3 -2
  70. package/dist/esm/pages/layout/global.js +46 -33
  71. package/dist/esm/pages/layout/page.js +13 -9
  72. package/dist/esm/pages/login.js +25 -21
  73. package/dist/esm/pages/menu/avatar.js +14 -14
  74. package/dist/esm/pages/menu/button.js +14 -10
  75. package/dist/esm/pages/menu/cmd.js +26 -22
  76. package/dist/esm/pages/menu/main.js +26 -22
  77. package/dist/esm/pages/menu/mobile.js +11 -7
  78. package/dist/esm/pages/page.js +16 -16
  79. package/dist/esm/pages/page404.js +24 -20
  80. package/dist/esm/pages/pageStatus.js +12 -8
  81. package/dist/esm/theme/naiveTheme.js +57 -51
  82. package/dist/esm/theme/uno.css.js +28 -7
  83. package/dist/types/components/chart/echart.d.ts +284 -0
  84. package/dist/types/components/chart/index.d.ts +1 -0
  85. package/dist/types/components/dialog/dialog.d.ts +1 -20
  86. package/dist/types/components/drawer/drawer.d.ts +14 -4
  87. package/dist/types/components/form/formLayout.d.ts +1 -1
  88. package/dist/types/components/form/modalForm.d.ts +1 -1
  89. package/dist/types/components/index.d.ts +3 -0
  90. package/dist/types/components/layout/list.d.ts +18 -0
  91. package/dist/types/components/layout/table.d.ts +22 -1
  92. package/dist/types/components/list/card.d.ts +38 -0
  93. package/dist/types/components/list/list.d.ts +43 -2
  94. package/dist/types/components/modal/modal.d.ts +13 -31
  95. package/dist/types/components/modal/modalPage.d.ts +3 -6
  96. package/dist/types/components/panel/alert.d.ts +1 -1
  97. package/dist/types/components/select/cardSelect.d.ts +88 -0
  98. package/dist/types/components/select/index.d.ts +1 -0
  99. package/dist/types/components/table/tablePage.d.ts +28 -2
  100. package/dist/types/config/echart.d.ts +4 -0
  101. package/dist/types/config/index.d.ts +1 -0
  102. package/dist/types/hooks/drawer.d.ts +3 -2
  103. package/dist/types/hooks/echart.d.ts +166 -0
  104. package/dist/types/hooks/index.d.ts +2 -0
  105. package/dist/types/hooks/modal.d.ts +10 -5
  106. package/dist/types/hooks/table/types.d.ts +1 -0
  107. package/dist/types/main.d.ts +1 -0
  108. package/dist/types/pages/layout/global.d.ts +1 -0
  109. package/dist/types/pages/menu/avatar.d.ts +3 -3
  110. package/dist/types/pages/menu/button.d.ts +3 -3
  111. package/dist/types/pages/menu/main.d.ts +3 -3
  112. package/dist/types/pages/page.d.ts +1 -1
  113. package/package.json +8 -3
  114. package/dist/cjs/node_modules/.pnpm/@vueuse_integrations@13.3.0_async-validator@4.2.5_axios@1.10.0_focus-trap@7.6.5_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/integrations/useFocusTrap.cjs +0 -1
  115. package/dist/cjs/node_modules/.pnpm/@vueuse_shared@13.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.cjs +0 -1
  116. package/dist/cjs/node_modules/.pnpm/focus-trap@7.6.5/node_modules/focus-trap/dist/focus-trap.esm.cjs +0 -5
  117. package/dist/cjs/node_modules/.pnpm/tabbable@6.2.0/node_modules/tabbable/dist/index.esm.cjs +0 -4
  118. package/dist/esm/node_modules/.pnpm/@vueuse_integrations@13.3.0_async-validator@4.2.5_axios@1.10.0_focus-trap@7.6.5_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/integrations/useFocusTrap.js +0 -43
  119. package/dist/esm/node_modules/.pnpm/@vueuse_shared@13.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.js +0 -6
  120. package/dist/esm/node_modules/.pnpm/focus-trap@7.6.5/node_modules/focus-trap/dist/focus-trap.esm.js +0 -473
  121. package/dist/esm/node_modules/.pnpm/tabbable@6.2.0/node_modules/tabbable/dist/index.esm.js +0 -202
package/dist/esm/index.js CHANGED
@@ -1,139 +1,162 @@
1
1
  import { DuxApp as e } from "./app.js";
2
- import { DuxCard as t } from "./components/card/card.js";
3
- import { DuxCarousel as m } from "./components/carousel/carousel.js";
4
- import { DuxDashboardHello as p } from "./components/dashboard/hello.js";
5
- import { DuxDashboardHelloBig as D } from "./components/dashboard/helloBig.js";
6
- import { DuxDashboardQuick as s, DuxDashboardQuickItem as n } from "./components/dashboard/quick.js";
7
- import { DuxDrawApps as i } from "./components/draw/drawApps.js";
8
- import { DuxDrawAuth as b } from "./components/draw/drawAuth.js";
9
- import { DuxDrawEmpty as M } from "./components/draw/drawEmpty.js";
10
- import { DuxDrawEmptyForm as C } from "./components/draw/drawEmptyForm.js";
11
- import { DuxDrawError as h } from "./components/draw/drawError.js";
12
- import { default as y } from "./components/drawer/drawer.js";
13
- import { DuxDrawerPage as L } from "./components/drawer/drawerPage.js";
14
- import { DuxFormItem as S } from "./components/form/formItem.js";
15
- import { DuxFormLayout as I } from "./components/form/formLayout.js";
16
- import { DuxModalForm as k } from "./components/form/modalForm.js";
17
- import { DuxPageForm as v } from "./components/form/pageForm.js";
18
- import { DuxSettingForm as Q } from "./components/form/settingForm.js";
19
- import { DuxTableFilter as z } from "./components/layout/filter.js";
20
- import { DuxListLayout as O } from "./components/layout/list.js";
21
- import { DuxTableLayout as j } from "./components/layout/table.js";
22
- import { DuxTableTools as G } from "./components/layout/tools.js";
23
- import { DuxCardPage as K } from "./components/list/card.js";
24
- import { DuxListPage as X } from "./components/list/list.js";
25
- import { DuxMedia as Z } from "./components/media/media.js";
26
- import { DuxModal as $ } from "./components/modal/modal.js";
27
- import { default as ro } from "./components/modal/modalPage.js";
28
- import { default as xo } from "./components/modal/modalTab.js";
29
- import { DuxPanelAlert as uo } from "./components/panel/alert.js";
30
- import { DuxPanelCard as ao } from "./components/panel/setting.js";
31
- import { DuxBlockEmpty as fo } from "./components/status/blockEmpty.js";
32
- import { DuxTablePage as lo } from "./components/table/tablePage.js";
33
- import { DuxWidgetConnect as no } from "./components/widget/connect.js";
34
- import { DuxAuthLayout as go } from "./pages/authLayout.js";
35
- import { DuxLayout as Po } from "./pages/layout.js";
36
- import { DuxLoginPage as To } from "./pages/login.js";
37
- import { default as co } from "./pages/menu/avatar.js";
38
- import { default as wo } from "./pages/menu/button.js";
39
- import { DuxMenuCmd as Ao } from "./pages/menu/cmd.js";
40
- import { DuxMenuMain as Fo } from "./pages/menu/main.js";
41
- import { DuxMobileMenu as Eo } from "./pages/menu/mobile.js";
42
- import { DuxPage as Bo } from "./pages/page.js";
43
- import { DuxPage403 as Uo } from "./pages/page403.js";
44
- import { DuxPage404 as Ho } from "./pages/page404.js";
45
- import { DuxPage500 as Vo } from "./pages/page500.js";
46
- import { DuxPageEmpty as No } from "./pages/pageEmpty.js";
47
- import { DuxPageLoading as Wo } from "./pages/pageLoading.js";
48
- import { DuxPageStatus as qo } from "./pages/pageStatus.js";
49
- import { config as Jo } from "./config/uno.js";
50
- import { initVeeValidate as Ro } from "./config/validate.js";
51
- import { useAction as Yo, useActionButton as Zo, useActionDropdown as _o } from "./hooks/action.js";
52
- import { useDialog as or } from "./hooks/dialog.js";
53
- import { useModal as er } from "./hooks/modal.js";
54
- import { useTable as tr } from "./hooks/table.js";
55
- import { useTableColumn as mr } from "./hooks/table/column.js";
56
- import { useTableColumnImage as pr } from "./hooks/table/image.js";
57
- import { useTableColumnMap as Dr } from "./hooks/table/map.js";
58
- import { useTableColumnMedia as sr } from "./hooks/table/media.js";
59
- import { useTableColumnStatus as dr } from "./hooks/table/status.js";
60
- import { useTableColumnSwitch as gr } from "./hooks/table/switch.js";
61
- import { useUI as Pr } from "./hooks/ui.js";
62
- import { default as Tr } from "./langs/en-US.json.js";
63
- import { default as cr } from "./langs/zh-CN.json.js";
64
- import { createDuxPro as wr } from "./main.js";
65
- import { useUIStore as Ar } from "./stores/ui.js";
66
- import { themeOverrides as Fr } from "./theme/naiveTheme.js";
67
- import { presetTheme as Er } from "./theme/presetTheme.js";
2
+ import { DuxCard as x } from "./components/card/card.js";
3
+ import { DuxCarousel as a } from "./components/carousel/carousel.js";
4
+ import { DuxChart as p } from "./components/chart/echart.js";
5
+ import { DuxDashboardHello as D } from "./components/dashboard/hello.js";
6
+ import { DuxDashboardHelloBig as s } from "./components/dashboard/helloBig.js";
7
+ import { DuxDashboardQuick as d, DuxDashboardQuickItem as i } from "./components/dashboard/quick.js";
8
+ import { default as h } from "./components/dialog/dialog.js";
9
+ import { DuxDrawApps as b } from "./components/draw/drawApps.js";
10
+ import { DuxDrawAuth as C } from "./components/draw/drawAuth.js";
11
+ import { DuxDrawEmpty as T } from "./components/draw/drawEmpty.js";
12
+ import { DuxDrawEmptyForm as w } from "./components/draw/drawEmptyForm.js";
13
+ import { DuxDrawError as L } from "./components/draw/drawError.js";
14
+ import { default as F } from "./components/drawer/drawer.js";
15
+ import { DuxDrawerPage as B } from "./components/drawer/drawerPage.js";
16
+ import { DuxFormItem as R } from "./components/form/formItem.js";
17
+ import { DuxFormLayout as U } from "./components/form/formLayout.js";
18
+ import { DuxModalForm as H } from "./components/form/modalForm.js";
19
+ import { DuxPageForm as V } from "./components/form/pageForm.js";
20
+ import { DuxSettingForm as N } from "./components/form/settingForm.js";
21
+ import { DuxTableFilter as W } from "./components/layout/filter.js";
22
+ import { DuxListLayout as q } from "./components/layout/list.js";
23
+ import { DuxTableLayout as J } from "./components/layout/table.js";
24
+ import { DuxTableTools as X } from "./components/layout/tools.js";
25
+ import { DuxCardPage as Z } from "./components/list/card.js";
26
+ import { DuxListPage as $ } from "./components/list/list.js";
27
+ import { DuxMedia as or } from "./components/media/media.js";
28
+ import { DuxModal as tr } from "./components/modal/modal.js";
29
+ import { default as ur } from "./components/modal/modalPage.js";
30
+ import { default as mr } from "./components/modal/modalTab.js";
31
+ import { DuxPanelAlert as fr } from "./components/panel/alert.js";
32
+ import { DuxPanelCard as lr } from "./components/panel/setting.js";
33
+ import { DuxSelectCard as nr } from "./components/select/cardSelect.js";
34
+ import { DuxBlockEmpty as ir } from "./components/status/blockEmpty.js";
35
+ import { DuxTablePage as hr } from "./components/table/tablePage.js";
36
+ import { DuxWidgetConnect as br } from "./components/widget/connect.js";
37
+ import { DuxAuthLayout as Cr } from "./pages/authLayout.js";
38
+ import { DuxLayout as Tr } from "./pages/layout.js";
39
+ import { DuxLoginPage as wr } from "./pages/login.js";
40
+ import { default as Lr } from "./pages/menu/avatar.js";
41
+ import { default as Fr } from "./pages/menu/button.js";
42
+ import { DuxMenuCmd as Br } from "./pages/menu/cmd.js";
43
+ import { DuxMenuMain as Rr } from "./pages/menu/main.js";
44
+ import { DuxMobileMenu as Ur } from "./pages/menu/mobile.js";
45
+ import { DuxPage as Hr } from "./pages/page.js";
46
+ import { DuxPage403 as Vr } from "./pages/page403.js";
47
+ import { DuxPage404 as Nr } from "./pages/page404.js";
48
+ import { DuxPage500 as Wr } from "./pages/page500.js";
49
+ import { DuxPageEmpty as qr } from "./pages/pageEmpty.js";
50
+ import { DuxPageLoading as Jr } from "./pages/pageLoading.js";
51
+ import { DuxPageStatus as Xr } from "./pages/pageStatus.js";
52
+ import { generateRainbowFromColor as Zr, getTheme as _r } from "./config/echart.js";
53
+ import { config as ro } from "./config/uno.js";
54
+ import { initVeeValidate as eo } from "./config/validate.js";
55
+ import { useAction as xo, useActionButton as uo, useActionDropdown as ao } from "./hooks/action.js";
56
+ import { useDialog as po } from "./hooks/dialog.js";
57
+ import { useDrawer as Do } from "./hooks/drawer.js";
58
+ import { useEchartBar as so, useEchartCommon as no, useEchartFunnel as io, useEchartLine as go, useEchartMap as ho, useEchartPie as co, useEchartRadar as bo, useEchartRing as Po, useEchartRose as Co, useEchartTreeMap as Mo, useEchartType as To } from "./hooks/echart.js";
59
+ import { useModal as wo } from "./hooks/modal.js";
60
+ import { useTable as Lo } from "./hooks/table.js";
61
+ import { useTableColumn as Fo } from "./hooks/table/column.js";
62
+ import { useTableColumnImage as Bo } from "./hooks/table/image.js";
63
+ import { useTableColumnMap as Ro } from "./hooks/table/map.js";
64
+ import { useTableColumnMedia as Uo } from "./hooks/table/media.js";
65
+ import { useTableColumnStatus as Ho } from "./hooks/table/status.js";
66
+ import { useTableColumnSwitch as Vo } from "./hooks/table/switch.js";
67
+ import { useUI as No } from "./hooks/ui.js";
68
+ import { default as Wo } from "./langs/en-US.json.js";
69
+ import { default as qo } from "./langs/zh-CN.json.js";
70
+ import { createDuxPro as Jo } from "./main.js";
71
+ import { useUIStore as Xo } from "./stores/ui.js";
72
+ import { themeOverrides as Zo } from "./theme/naiveTheme.js";
73
+ import { presetTheme as $o } from "./theme/presetTheme.js";
68
74
  export {
69
75
  e as DuxApp,
70
- go as DuxAuthLayout,
71
- fo as DuxBlockEmpty,
72
- t as DuxCard,
73
- K as DuxCardPage,
74
- m as DuxCarousel,
75
- p as DuxDashboardHello,
76
- D as DuxDashboardHelloBig,
77
- s as DuxDashboardQuick,
78
- n as DuxDashboardQuickItem,
79
- i as DuxDrawApps,
80
- b as DuxDrawAuth,
81
- M as DuxDrawEmpty,
82
- C as DuxDrawEmptyForm,
83
- h as DuxDrawError,
84
- y as DuxDrawer,
85
- L as DuxDrawerPage,
86
- S as DuxFormItem,
87
- I as DuxFormLayout,
88
- Po as DuxLayout,
89
- O as DuxListLayout,
90
- X as DuxListPage,
91
- To as DuxLoginPage,
92
- Z as DuxMedia,
93
- co as DuxMenuAvatar,
94
- wo as DuxMenuButton,
95
- Ao as DuxMenuCmd,
96
- Fo as DuxMenuMain,
97
- Eo as DuxMobileMenu,
98
- $ as DuxModal,
99
- k as DuxModalForm,
100
- Bo as DuxPage,
101
- Uo as DuxPage403,
102
- Ho as DuxPage404,
103
- Vo as DuxPage500,
104
- No as DuxPageEmpty,
105
- v as DuxPageForm,
106
- Wo as DuxPageLoading,
107
- qo as DuxPageStatus,
108
- uo as DuxPanelAlert,
109
- ao as DuxPanelCard,
110
- Q as DuxSettingForm,
111
- z as DuxTableFilter,
112
- j as DuxTableLayout,
113
- lo as DuxTablePage,
114
- G as DuxTableTools,
115
- no as DuxWidgetConnect,
116
- ro as ModalPage,
117
- xo as ModalTab,
118
- Jo as config,
119
- wr as createDuxPro,
120
- Tr as enUS,
121
- Ro as initVeeValidate,
122
- Er as presetTheme,
123
- Fr as themeOverrides,
124
- Yo as useAction,
125
- Zo as useActionButton,
126
- _o as useActionDropdown,
127
- or as useDialog,
128
- er as useModal,
129
- tr as useTable,
130
- mr as useTableColumn,
131
- pr as useTableColumnImage,
132
- Dr as useTableColumnMap,
133
- sr as useTableColumnMedia,
134
- dr as useTableColumnStatus,
135
- gr as useTableColumnSwitch,
136
- Pr as useUI,
137
- Ar as useUIStore,
138
- cr as zhCN
76
+ Cr as DuxAuthLayout,
77
+ ir as DuxBlockEmpty,
78
+ x as DuxCard,
79
+ Z as DuxCardPage,
80
+ a as DuxCarousel,
81
+ p as DuxChart,
82
+ D as DuxDashboardHello,
83
+ s as DuxDashboardHelloBig,
84
+ d as DuxDashboardQuick,
85
+ i as DuxDashboardQuickItem,
86
+ h as DuxDialog,
87
+ b as DuxDrawApps,
88
+ C as DuxDrawAuth,
89
+ T as DuxDrawEmpty,
90
+ w as DuxDrawEmptyForm,
91
+ L as DuxDrawError,
92
+ F as DuxDrawer,
93
+ B as DuxDrawerPage,
94
+ R as DuxFormItem,
95
+ U as DuxFormLayout,
96
+ Tr as DuxLayout,
97
+ q as DuxListLayout,
98
+ $ as DuxListPage,
99
+ wr as DuxLoginPage,
100
+ or as DuxMedia,
101
+ Lr as DuxMenuAvatar,
102
+ Fr as DuxMenuButton,
103
+ Br as DuxMenuCmd,
104
+ Rr as DuxMenuMain,
105
+ Ur as DuxMobileMenu,
106
+ tr as DuxModal,
107
+ H as DuxModalForm,
108
+ Hr as DuxPage,
109
+ Vr as DuxPage403,
110
+ Nr as DuxPage404,
111
+ Wr as DuxPage500,
112
+ qr as DuxPageEmpty,
113
+ V as DuxPageForm,
114
+ Jr as DuxPageLoading,
115
+ Xr as DuxPageStatus,
116
+ fr as DuxPanelAlert,
117
+ lr as DuxPanelCard,
118
+ nr as DuxSelectCard,
119
+ N as DuxSettingForm,
120
+ W as DuxTableFilter,
121
+ J as DuxTableLayout,
122
+ hr as DuxTablePage,
123
+ X as DuxTableTools,
124
+ br as DuxWidgetConnect,
125
+ ur as ModalPage,
126
+ mr as ModalTab,
127
+ ro as config,
128
+ Jo as createDuxPro,
129
+ Wo as enUS,
130
+ Zr as generateRainbowFromColor,
131
+ _r as getTheme,
132
+ eo as initVeeValidate,
133
+ $o as presetTheme,
134
+ Zo as themeOverrides,
135
+ xo as useAction,
136
+ uo as useActionButton,
137
+ ao as useActionDropdown,
138
+ po as useDialog,
139
+ Do as useDrawer,
140
+ so as useEchartBar,
141
+ no as useEchartCommon,
142
+ io as useEchartFunnel,
143
+ go as useEchartLine,
144
+ ho as useEchartMap,
145
+ co as useEchartPie,
146
+ bo as useEchartRadar,
147
+ Po as useEchartRing,
148
+ Co as useEchartRose,
149
+ Mo as useEchartTreeMap,
150
+ To as useEchartType,
151
+ wo as useModal,
152
+ Lo as useTable,
153
+ Fo as useTableColumn,
154
+ Bo as useTableColumnImage,
155
+ Ro as useTableColumnMap,
156
+ Uo as useTableColumnMedia,
157
+ Ho as useTableColumnStatus,
158
+ Vo as useTableColumnSwitch,
159
+ No as useUI,
160
+ Xo as useUIStore,
161
+ qo as zhCN
139
162
  };
package/dist/esm/main.js CHANGED
@@ -1,18 +1,21 @@
1
1
  import o from "@unocss/runtime";
2
- import e from "./component.js";
3
- import { config as i } from "./config/uno.js";
4
- import { initVeeValidate as r } from "./config/validate.js";
2
+ import r from "vue-echarts";
3
+ import i from "./component.js";
4
+ import "@ant-design/colors";
5
+ import { config as e } from "./config/uno.js";
6
+ import { initVeeValidate as m } from "./config/validate.js";
7
+ import "echarts";
5
8
  /* empty css */
6
- function a() {
7
- return r(), o({
8
- defaults: i(!1),
9
+ function d() {
10
+ return m(), o({
11
+ defaults: e(!1),
9
12
  bypassDefined: !0
10
13
  }), {
11
14
  install(t) {
12
- t.use(e);
15
+ t.component("v-chart", r), t.use(i);
13
16
  }
14
17
  };
15
18
  }
16
19
  export {
17
- a as createDuxPro
20
+ d as createDuxPro
18
21
  };
@@ -3,6 +3,7 @@ import { OverlaysProvider as t } from "@overlastic/vue";
3
3
  import "@duxweb/dvha-core";
4
4
  import "naive-ui";
5
5
  import "vue-router";
6
+ import "vue-echarts";
6
7
  import "clsx";
7
8
  import "jinrishici";
8
9
  import "lodash-es";
@@ -16,7 +17,7 @@ import { DuxMobileMenu as i } from "./menu/mobile.js";
16
17
  import "./page404.js";
17
18
  import "@duxweb/dvha-naiveui";
18
19
  import { useUI as p } from "../hooks/ui.js";
19
- const k = /* @__PURE__ */ r({
20
+ const G = /* @__PURE__ */ r({
20
21
  name: "DuxAuthLayout",
21
22
  setup() {
22
23
  const {
@@ -34,5 +35,5 @@ const k = /* @__PURE__ */ r({
34
35
  }
35
36
  });
36
37
  export {
37
- k as DuxAuthLayout
38
+ G as DuxAuthLayout
38
39
  };
@@ -1,51 +1,64 @@
1
- import { defineComponent as h, inject as f, onBeforeMount as g, computed as n, watch as v, onMounted as p, createVNode as o } from "vue";
2
- import { useTheme as L, useI18n as N } from "@duxweb/dvha-core";
3
- import { setLocale as T } from "@vee-validate/i18n";
4
- import { useLoadingBar as C, zhCN as k, enUS as O, dateZhCN as x, dateEnUS as y, NConfigProvider as z, darkTheme as B, lightTheme as D, NNotificationProvider as M, NMessageProvider as P } from "naive-ui";
5
- import { themeOverrides as b } from "../../theme/naiveTheme.js";
6
- const E = /* @__PURE__ */ h({
1
+ import { defineComponent as N, inject as T, onBeforeMount as L, computed as n, watch as i, onMounted as y, createVNode as o } from "vue";
2
+ import { useTheme as b, useI18n as k } from "@duxweb/dvha-core";
3
+ import { setLocale as x } from "@vee-validate/i18n";
4
+ import { hex2hsl as M } from "colorizr";
5
+ import { registerTheme as O } from "echarts";
6
+ import { useLoadingBar as P, zhCN as w, enUS as z, dateZhCN as B, dateEnUS as D, NConfigProvider as S, darkTheme as G, lightTheme as I, NModalProvider as U, NNotificationProvider as j, NMessageProvider as E } from "naive-ui";
7
+ import { generateRainbowFromColor as F, getTheme as R } from "../../config/echart.js";
8
+ import "@unocss/preset-typography";
9
+ import { themeOverrides as V } from "../../theme/naiveTheme.js";
10
+ import "vee-validate";
11
+ const $ = /* @__PURE__ */ N({
7
12
  name: "DuxGlobalLayout",
8
- setup(G, {
9
- slots: t
13
+ setup(Z, {
14
+ slots: r
10
15
  }) {
11
16
  const {
12
- isDark: r,
13
- cssInit: i
14
- } = L(), l = f("pageLoading"), u = C(), {
15
- lightTheme: d,
16
- darkTheme: m
17
- } = b();
18
- g(() => {
19
- i();
17
+ isDark: t,
18
+ cssInit: l,
19
+ getSceneColor: m
20
+ } = b(), u = T("pageLoading"), d = P(), {
21
+ lightTheme: c,
22
+ darkTheme: s
23
+ } = V();
24
+ L(() => {
25
+ l();
20
26
  });
21
27
  const {
22
28
  getLocale: a
23
- } = N(), c = n(() => a() === "zh-CN" ? k : O), s = n(() => a() === "zh-CN" ? x : y);
24
- return v(a, (e) => {
25
- T(e);
29
+ } = k(), h = n(() => a() === "zh-CN" ? w : z), f = n(() => a() === "zh-CN" ? B : D);
30
+ return i(a, (e) => {
31
+ x(e);
26
32
  }, {
27
33
  immediate: !0
28
- }), p(async () => {
34
+ }), y(async () => {
29
35
  setTimeout(() => {
30
- u.finish(), l.value = !1;
36
+ d.finish(), u.value = !1;
31
37
  }, 500);
32
- }), () => o(z, {
33
- locale: c.value,
34
- dateLocale: s.value,
35
- theme: r.value ? B : D,
36
- themeOverrides: r.value ? m.value : d.value
38
+ }), i(t, (e) => {
39
+ const g = m("primary"), p = M(g), v = F(p, 10), C = R(v, e);
40
+ O("default", C);
37
41
  }, {
38
- default: () => [o(M, null, {
39
- default: () => [o(P, null, {
40
- default: () => {
41
- var e;
42
- return [(e = t.default) == null ? void 0 : e.call(t)];
43
- }
42
+ immediate: !0
43
+ }), () => o(S, {
44
+ locale: h.value,
45
+ dateLocale: f.value,
46
+ theme: t.value ? G : I,
47
+ themeOverrides: t.value ? s.value : c.value
48
+ }, {
49
+ default: () => [o(U, null, {
50
+ default: () => [o(j, null, {
51
+ default: () => [o(E, null, {
52
+ default: () => {
53
+ var e;
54
+ return [(e = r.default) == null ? void 0 : e.call(r)];
55
+ }
56
+ })]
44
57
  })]
45
58
  })]
46
59
  });
47
60
  }
48
61
  });
49
62
  export {
50
- E as DuxGlobalLayout
63
+ $ as DuxGlobalLayout
51
64
  };
@@ -1,8 +1,9 @@
1
1
  import { defineComponent as i, createVNode as e } from "vue";
2
2
  import { useManage as r, DuxTabRouterView as m } from "@duxweb/dvha-core";
3
- import { NButton as n } from "naive-ui";
3
+ import { NButton as s } from "naive-ui";
4
4
  import "vue-router";
5
5
  import "@overlastic/vue";
6
+ import "vue-echarts";
6
7
  import "clsx";
7
8
  import "jinrishici";
8
9
  import "lodash-es";
@@ -10,20 +11,23 @@ import "@vueuse/core";
10
11
  import "vee-validate";
11
12
  import "@vee-validate/i18n";
12
13
  import "colorizr";
13
- import s from "../menu/avatar.js";
14
+ import "echarts";
15
+ import "@ant-design/colors";
16
+ import "@unocss/preset-typography";
17
+ import n from "../menu/avatar.js";
14
18
  import "vue-command-palette";
15
19
  import "@duxweb/dvha-naiveui";
16
20
  import { DuxPageTab as u } from "./tab.js";
17
21
  import "../page404.js";
18
- import { useUI as a } from "../../hooks/ui.js";
19
- const N = /* @__PURE__ */ i({
22
+ import { useUI as p } from "../../hooks/ui.js";
23
+ const A = /* @__PURE__ */ i({
20
24
  name: "DuxLayoutPage",
21
25
  props: {},
22
26
  setup() {
23
27
  const {
24
28
  menuMobileCollapsed: t,
25
29
  setMenuMobileCollapsed: l
26
- } = a(), {
30
+ } = p(), {
27
31
  config: o
28
32
  } = r();
29
33
  return () => e("div", {
@@ -32,7 +36,7 @@ const N = /* @__PURE__ */ i({
32
36
  class: "flex flex-col lg:flex-row lg:justify-between lg:items-center lg:h-13"
33
37
  }, [e("div", {
34
38
  class: "flex lg:hidden justify-between items-center px-2 py-2 bg-default dark:bg-muted shadow-xs relative"
35
- }, [e(n, {
39
+ }, [e(s, {
36
40
  text: !0,
37
41
  onClick: () => l(!t.value)
38
42
  }, {
@@ -41,8 +45,8 @@ const N = /* @__PURE__ */ i({
41
45
  }, null)]
42
46
  }), e("div", {
43
47
  class: "w-full absolute inset-0 flex items-center justify-center text-base pointer-events-none"
44
- }, [o.title]), e("div", null, [e(s, {
45
- open: !1
48
+ }, [o.title]), e("div", null, [e(n, {
49
+ collapsed: !0
46
50
  }, null)])]), e("div", {
47
51
  class: "flex-1 py-2"
48
52
  }, [e(u, null, null)])]), e("div", {
@@ -51,5 +55,5 @@ const N = /* @__PURE__ */ i({
51
55
  }
52
56
  });
53
57
  export {
54
- N as DuxLayoutPage
58
+ A as DuxLayoutPage
55
59
  };
@@ -2,28 +2,32 @@ import { defineComponent as k, ref as j, reactive as D, createVNode as e, isVNod
2
2
  import { useTheme as N, useManage as F, useI18n as P, useLogin as S, DuxLogo as V } from "@duxweb/dvha-core";
3
3
  import z from "clsx";
4
4
  import { useMessage as A, NForm as C, NFormItem as h, NInput as v, NButton as I } from "naive-ui";
5
- import "jinrishici";
6
- import "lodash-es";
7
- import { DuxDrawApps as M } from "../components/draw/drawApps.js";
8
- import "@overlastic/vue";
9
- import "@vueuse/core";
10
- import "vee-validate";
5
+ import "vue-echarts";
11
6
  import "vue-router";
7
+ import "@overlastic/vue";
8
+ import "lodash-es";
12
9
  import "@duxweb/dvha-naiveui";
10
+ import "@vueuse/core";
13
11
  import "pinia";
12
+ import "jinrishici";
13
+ import { DuxDrawApps as M } from "../components/draw/drawApps.js";
14
+ import "vee-validate";
14
15
  import "@vee-validate/i18n";
15
16
  import "colorizr";
17
+ import "echarts";
18
+ import "@ant-design/colors";
19
+ import "@unocss/preset-typography";
16
20
  import "vue-command-palette";
17
21
  import "./page404.js";
18
22
  function O(r) {
19
23
  return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !L(r);
20
24
  }
21
- const ee = /* @__PURE__ */ k({
25
+ const se = /* @__PURE__ */ k({
22
26
  name: "DuxLoginPage",
23
27
  setup(r, {
24
28
  slots: i
25
29
  }) {
26
- const o = N(), s = F(), {
30
+ const s = N(), o = F(), {
27
31
  t: a
28
32
  } = P(), w = j(), u = A(), t = D({
29
33
  username: "",
@@ -42,41 +46,41 @@ const ee = /* @__PURE__ */ k({
42
46
  x(t);
43
47
  };
44
48
  return () => {
45
- var c, m, d, p, g;
49
+ var m, c, d, p, g;
46
50
  let l;
47
51
  return e("div", {
48
52
  "un-cloak": !0,
49
- class: z(["h-screen w-screen flex items-start justify-center text-secondary md:items-center", o.isDark.value ? "app-login-dark-bg" : "app-login-bg"])
53
+ class: z(["h-screen w-screen flex items-start justify-center text-secondary md:items-center", s.isDark.value ? "app-login-dark-bg" : "app-login-bg"])
50
54
  }, [e("div", {
51
55
  class: "relative md:m-4 max-w-180 w-full h-full md:h-auto grid-cols-1 md:grid-cols-2 gap-12 overflow-hidden md:rounded-lg p-8 md:shadow bg-default dark:bg-muted grid"
52
56
  }, [e("div", {
53
57
  class: "flex justify-center tex absolute h-30 w-30 rotate-45 cursor-pointer items-end p-3 text-white bg-primary -right-15 -top-15 hover:bg-primary-hover",
54
- onClick: () => o.toggle()
55
- }, [o.mode.value === "auto" && e("div", {
58
+ onClick: () => s.toggle()
59
+ }, [s.mode.value === "auto" && e("div", {
56
60
  class: "i-tabler:brightness-half h-5 w-5"
57
- }, null), o.mode.value === "light" && e("div", {
61
+ }, null), s.mode.value === "light" && e("div", {
58
62
  class: "h-5 w-5 i-tabler:sun"
59
- }, null), o.mode.value === "dark" && e("div", {
63
+ }, null), s.mode.value === "dark" && e("div", {
60
64
  class: "h-5 w-5 i-tabler:moon"
61
65
  }, null)]), e("div", {
62
66
  class: "justify-center hidden md:flex flex-row items-center"
63
- }, [(c = s.config.theme) != null && c.banner ? e("img", {
67
+ }, [(m = o.config.theme) != null && m.banner ? e("img", {
64
68
  class: "w-full h-auto",
65
- src: (m = s.config.theme) == null ? void 0 : m.banner
69
+ src: (c = o.config.theme) == null ? void 0 : c.banner
66
70
  }, null) : e("div", {
67
71
  class: "w-full h-auto"
68
72
  }, [e(M, null, null)])]), e("div", {
69
73
  class: "flex flex-col"
70
74
  }, [e("div", {
71
75
  class: "flex flex-col items-center justify-center mt-4"
72
- }, [e("div", null, [(d = s.config.theme) != null && d.logo ? e("img", {
76
+ }, [e("div", null, [(d = o.config.theme) != null && d.logo ? e("img", {
73
77
  class: "w-auto h-16",
74
- src: (p = s.config.theme) == null ? void 0 : p.logo
78
+ src: (p = o.config.theme) == null ? void 0 : p.logo
75
79
  }, null) : e("div", {
76
80
  class: "h-10"
77
81
  }, [e(V, null, null)])]), e("div", {
78
82
  class: "mt-4 text-lg text-muted"
79
- }, [s.config.title || "Dux Admin Manage"])]), e("div", {
83
+ }, [o.config.title || "Dux Admin Manage"])]), e("div", {
80
84
  class: "my-6"
81
85
  }, [e(C, {
82
86
  ref: w,
@@ -135,10 +139,10 @@ const ee = /* @__PURE__ */ k({
135
139
  }
136
140
  })]), e("div", {
137
141
  class: "text-center text-sm text-gray-5"
138
- }, [((g = s.config) == null ? void 0 : g.copyright) || "All rights reserved © duxweb 2024"])])])]);
142
+ }, [((g = o.config) == null ? void 0 : g.copyright) || "All rights reserved © duxweb 2024"])])])]);
139
143
  };
140
144
  }
141
145
  });
142
146
  export {
143
- ee as DuxLoginPage
147
+ se as DuxLoginPage
144
148
  };