@duxweb/dvha-pro 1.0.23 → 1.0.24

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 (152) hide show
  1. package/dist/cjs/components/card/card.cjs +1 -1
  2. package/dist/cjs/components/card/store.cjs +1 -1
  3. package/dist/cjs/components/carousel/carousel.cjs +1 -1
  4. package/dist/cjs/components/crop/imageCrop.cjs +1 -1
  5. package/dist/cjs/components/crop/imageCropModal.cjs +1 -1
  6. package/dist/cjs/components/dashboard/hello.cjs +1 -1
  7. package/dist/cjs/components/dashboard/helloBig.cjs +1 -1
  8. package/dist/cjs/components/dashboard/quick.cjs +1 -1
  9. package/dist/cjs/components/data/dynamicData.cjs +1 -1
  10. package/dist/cjs/components/data/dynamicSelect.cjs +1 -1
  11. package/dist/cjs/components/data/selectModal.cjs +1 -1
  12. package/dist/cjs/components/dialog/dialog.cjs +1 -1
  13. package/dist/cjs/components/drawer/drawer.cjs +1 -1
  14. package/dist/cjs/components/drawer/drawerPage.cjs +1 -1
  15. package/dist/cjs/components/editor/aiEditor.cjs +1 -1
  16. package/dist/cjs/components/form/drawerForm.cjs +1 -1
  17. package/dist/cjs/components/form/formItem.cjs +1 -1
  18. package/dist/cjs/components/form/formLayout.cjs +1 -1
  19. package/dist/cjs/components/form/modalForm.cjs +1 -1
  20. package/dist/cjs/components/form/pageForm.cjs +1 -1
  21. package/dist/cjs/components/form/settingForm.cjs +1 -1
  22. package/dist/cjs/components/icon/iconPicker.cjs +1 -1
  23. package/dist/cjs/components/layout/filter.cjs +1 -1
  24. package/dist/cjs/components/layout/filterLayout.cjs +1 -1
  25. package/dist/cjs/components/layout/list.cjs +1 -1
  26. package/dist/cjs/components/layout/table.cjs +1 -1
  27. package/dist/cjs/components/layout/tools.cjs +1 -1
  28. package/dist/cjs/components/list/card.cjs +1 -1
  29. package/dist/cjs/components/list/list.cjs +1 -1
  30. package/dist/cjs/components/media/media.cjs +1 -1
  31. package/dist/cjs/components/modal/modal.cjs +1 -1
  32. package/dist/cjs/components/modal/modalPage.cjs +1 -1
  33. package/dist/cjs/components/modal/modalTab.cjs +1 -1
  34. package/dist/cjs/components/panel/alert.cjs +1 -1
  35. package/dist/cjs/components/panel/collapse.cjs +1 -1
  36. package/dist/cjs/components/panel/setting.cjs +1 -1
  37. package/dist/cjs/components/select/cardSelect.cjs +1 -1
  38. package/dist/cjs/components/status/listEmpty.cjs +1 -1
  39. package/dist/cjs/components/table/tablePage.cjs +1 -1
  40. package/dist/cjs/components/tree/treeFilter.cjs +1 -1
  41. package/dist/cjs/components/upload/config.cjs +1 -1
  42. package/dist/cjs/components/upload/file.cjs +1 -1
  43. package/dist/cjs/components/upload/image.cjs +1 -1
  44. package/dist/cjs/components/upload/manage/item.cjs +1 -1
  45. package/dist/cjs/components/upload/manager.cjs +1 -1
  46. package/dist/cjs/components/widget/connect.cjs +1 -1
  47. package/dist/cjs/dvha-pro.css +1 -1
  48. package/dist/cjs/hooks/action.cjs +1 -1
  49. package/dist/cjs/hooks/download.cjs +1 -1
  50. package/dist/cjs/hooks/echart.cjs +1 -1
  51. package/dist/cjs/hooks/image.cjs +1 -1
  52. package/dist/cjs/hooks/level.cjs +1 -1
  53. package/dist/cjs/hooks/table/color.cjs +1 -0
  54. package/dist/cjs/hooks/table/column.cjs +1 -1
  55. package/dist/cjs/hooks/table/image.cjs +1 -1
  56. package/dist/cjs/hooks/table/input.cjs +1 -1
  57. package/dist/cjs/hooks/table/map.cjs +1 -1
  58. package/dist/cjs/hooks/table/status.cjs +1 -1
  59. package/dist/cjs/hooks/table/switch.cjs +1 -1
  60. package/dist/cjs/hooks/table.cjs +1 -1
  61. package/dist/cjs/index.cjs +1 -1
  62. package/dist/cjs/pages/layout/global.cjs +1 -1
  63. package/dist/cjs/pages/layout/tab.cjs +1 -1
  64. package/dist/cjs/pages/login.cjs +1 -1
  65. package/dist/cjs/pages/menu/avatar.cjs +1 -1
  66. package/dist/cjs/pages/menu/button.cjs +1 -1
  67. package/dist/cjs/pages/menu/cmd.cjs +1 -1
  68. package/dist/cjs/pages/page.cjs +1 -1
  69. package/dist/cjs/pages/pageStatus.cjs +1 -1
  70. package/dist/cjs/stores/ui.cjs +1 -1
  71. package/dist/cjs/theme/uno.css.cjs +2 -1
  72. package/dist/esm/components/card/card.js +24 -27
  73. package/dist/esm/components/card/store.js +33 -39
  74. package/dist/esm/components/carousel/carousel.js +16 -19
  75. package/dist/esm/components/crop/imageCrop.js +32 -35
  76. package/dist/esm/components/crop/imageCropModal.js +36 -37
  77. package/dist/esm/components/dashboard/hello.js +27 -30
  78. package/dist/esm/components/dashboard/helloBig.js +328 -331
  79. package/dist/esm/components/dashboard/quick.js +30 -33
  80. package/dist/esm/components/data/dynamicData.js +86 -98
  81. package/dist/esm/components/data/dynamicSelect.js +29 -31
  82. package/dist/esm/components/data/selectModal.js +45 -49
  83. package/dist/esm/components/dialog/dialog.js +54 -55
  84. package/dist/esm/components/drawer/drawer.js +23 -23
  85. package/dist/esm/components/drawer/drawerPage.js +39 -49
  86. package/dist/esm/components/editor/aiEditor.js +64 -70
  87. package/dist/esm/components/form/drawerForm.js +48 -48
  88. package/dist/esm/components/form/formItem.js +45 -51
  89. package/dist/esm/components/form/formLayout.js +7 -10
  90. package/dist/esm/components/form/modalForm.js +50 -50
  91. package/dist/esm/components/form/pageForm.js +47 -50
  92. package/dist/esm/components/form/settingForm.js +34 -37
  93. package/dist/esm/components/icon/iconPicker.js +54 -58
  94. package/dist/esm/components/layout/filter.js +13 -16
  95. package/dist/esm/components/layout/filterLayout.js +7 -10
  96. package/dist/esm/components/layout/list.js +299 -326
  97. package/dist/esm/components/layout/table.js +268 -283
  98. package/dist/esm/components/layout/tools.js +38 -41
  99. package/dist/esm/components/list/card.js +35 -38
  100. package/dist/esm/components/list/list.js +15 -18
  101. package/dist/esm/components/media/media.js +35 -36
  102. package/dist/esm/components/modal/modal.js +10 -10
  103. package/dist/esm/components/modal/modalPage.js +32 -36
  104. package/dist/esm/components/modal/modalTab.js +39 -45
  105. package/dist/esm/components/panel/alert.js +19 -22
  106. package/dist/esm/components/panel/collapse.js +33 -36
  107. package/dist/esm/components/panel/setting.js +25 -31
  108. package/dist/esm/components/select/cardSelect.js +27 -28
  109. package/dist/esm/components/status/listEmpty.js +13 -13
  110. package/dist/esm/components/table/tablePage.js +25 -25
  111. package/dist/esm/components/tree/treeFilter.js +137 -147
  112. package/dist/esm/components/upload/config.js +15 -27
  113. package/dist/esm/components/upload/file.js +90 -94
  114. package/dist/esm/components/upload/image.js +116 -123
  115. package/dist/esm/components/upload/manage/item.js +44 -47
  116. package/dist/esm/components/upload/manager.js +190 -207
  117. package/dist/esm/components/widget/connect.js +103 -106
  118. package/dist/esm/dvha-pro.css +1 -1
  119. package/dist/esm/hooks/action.js +115 -131
  120. package/dist/esm/hooks/download.js +55 -56
  121. package/dist/esm/hooks/echart.js +156 -179
  122. package/dist/esm/hooks/image.js +14 -15
  123. package/dist/esm/hooks/level.js +7 -7
  124. package/dist/esm/hooks/table/color.js +19 -0
  125. package/dist/esm/hooks/table/column.js +25 -23
  126. package/dist/esm/hooks/table/image.js +2 -2
  127. package/dist/esm/hooks/table/input.js +28 -28
  128. package/dist/esm/hooks/table/map.js +7 -7
  129. package/dist/esm/hooks/table/status.js +8 -9
  130. package/dist/esm/hooks/table/switch.js +19 -19
  131. package/dist/esm/hooks/table.js +27 -31
  132. package/dist/esm/index.js +167 -165
  133. package/dist/esm/pages/layout/global.js +12 -15
  134. package/dist/esm/pages/layout/tab.js +58 -71
  135. package/dist/esm/pages/login.js +81 -85
  136. package/dist/esm/pages/menu/avatar.js +136 -149
  137. package/dist/esm/pages/menu/button.js +16 -20
  138. package/dist/esm/pages/menu/cmd.js +68 -74
  139. package/dist/esm/pages/page.js +21 -25
  140. package/dist/esm/pages/pageStatus.js +21 -24
  141. package/dist/esm/stores/ui.js +15 -15
  142. package/dist/esm/theme/uno.css.js +2 -1
  143. package/dist/types/components/form/drawerForm.d.ts +6 -0
  144. package/dist/types/components/form/modalForm.d.ts +6 -0
  145. package/dist/types/components/form/pageForm.d.ts +6 -0
  146. package/dist/types/components/form/settingForm.d.ts +6 -0
  147. package/dist/types/components/layout/table.d.ts +9 -0
  148. package/dist/types/components/table/tablePage.d.ts +9 -0
  149. package/dist/types/hooks/table/color.d.ts +13 -0
  150. package/dist/types/hooks/table/column.d.ts +1 -0
  151. package/dist/types/hooks/table/index.d.ts +1 -0
  152. package/package.json +3 -3
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@ import { DuxStatsStore as l, DuxStatsStoreItem as s } from "./components/card/st
4
4
  import { DuxCarousel as n } from "./components/carousel/carousel.js";
5
5
  import { DuxChart as g } from "./components/chart/echart.js";
6
6
  import { DuxImageCrop as h } from "./components/crop/imageCrop.js";
7
- import { DuxImageCropModal as C } from "./components/crop/imageCropModal.js";
7
+ import { DuxImageCropModal as P } from "./components/crop/imageCropModal.js";
8
8
  import { DuxDashboardHello as T } from "./components/dashboard/hello.js";
9
9
  import { DuxDashboardHelloBig as M } from "./components/dashboard/helloBig.js";
10
10
  import { DuxDashboardQuick as y, DuxDashboardQuickItem as F } from "./components/dashboard/quick.js";
@@ -18,173 +18,174 @@ import { useDialog as H } from "./hooks/dialog.js";
18
18
  import { useDownload as Q } from "./hooks/download.js";
19
19
  import { useDrawer as z } from "./hooks/drawer.js";
20
20
  import { useEchartBar as W, useEchartCommon as j, useEchartFunnel as q, useEchartLine as G, useEchartMap as J, useEchartPie as K, useEchartRadar as X, useEchartRing as Y, useEchartRose as Z, useEchartTreeMap as _, useEchartType as $ } from "./hooks/echart.js";
21
- import { useImagePreview as or } from "./hooks/image.js";
22
- import { useLevel as tr } from "./hooks/level.js";
23
- import { useModal as ur } from "./hooks/modal.js";
24
- import { useTable as ar } from "./hooks/table.js";
25
- import { useTableColumn as fr } from "./hooks/table/column.js";
26
- import { useTableColumnImage as lr } from "./hooks/table/image.js";
27
- import { useTableColumnMap as ir } from "./hooks/table/map.js";
28
- import { useTableColumnMedia as dr } from "./hooks/table/media.js";
29
- import { useTableColumnStatus as cr } from "./hooks/table/status.js";
30
- import { useTableColumnSwitch as Pr } from "./hooks/table/switch.js";
31
- import { useUI as br } from "./hooks/ui.js";
32
- import { DuxModal as Er } from "./components/modal/modal.js";
33
- import { default as wr } from "./components/modal/modalPage.js";
34
- import { default as Fr } from "./components/modal/modalTab.js";
35
- import { default as Sr } from "./components/dialog/dialog.js";
36
- import { DuxDrawApps as Ir } from "./components/draw/drawApps.js";
37
- import { DuxDrawAuth as Br } from "./components/draw/drawAuth.js";
38
- import { DuxDrawEmpty as Ur } from "./components/draw/drawEmpty.js";
39
- import { DuxDrawEmptyForm as Hr } from "./components/draw/drawEmptyForm.js";
40
- import { DuxDrawError as Qr } from "./components/draw/drawError.js";
41
- import { default as zr } from "./components/drawer/drawer.js";
42
- import { DuxDrawerPage as Wr } from "./components/drawer/drawerPage.js";
43
- import { DuxAiEditor as qr } from "./components/editor/aiEditor.js";
44
- import { DuxDrawerForm as Jr } from "./components/form/drawerForm.js";
45
- import { DuxFormItem as Xr } from "./components/form/formItem.js";
46
- import { DuxFormLayout as Zr } from "./components/form/formLayout.js";
47
- import { DuxModalForm as $r } from "./components/form/modalForm.js";
48
- import { DuxPageForm as oo } from "./components/form/pageForm.js";
49
- import { DuxSettingForm as to } from "./components/form/settingForm.js";
50
- import { DuxIconPicker as uo } from "./components/icon/icon.js";
21
+ import { useImagePreview as ro } from "./hooks/image.js";
22
+ import { useLevel as to } from "./hooks/level.js";
23
+ import { useModal as uo } from "./hooks/modal.js";
24
+ import { useTable as ao } from "./hooks/table.js";
25
+ import { useTableColumnColor as fo } from "./hooks/table/color.js";
26
+ import { useTableColumn as lo } from "./hooks/table/column.js";
27
+ import { useTableColumnImage as io } from "./hooks/table/image.js";
28
+ import { useTableColumnMap as go } from "./hooks/table/map.js";
29
+ import { useTableColumnMedia as ho } from "./hooks/table/media.js";
30
+ import { useTableColumnStatus as Po } from "./hooks/table/status.js";
31
+ import { useTableColumnSwitch as To } from "./hooks/table/switch.js";
32
+ import { useUI as Mo } from "./hooks/ui.js";
33
+ import { DuxModal as yo } from "./components/modal/modal.js";
34
+ import { default as Lo } from "./components/modal/modalPage.js";
35
+ import { default as Ao } from "./components/modal/modalTab.js";
36
+ import { default as vo } from "./components/dialog/dialog.js";
37
+ import { DuxDrawApps as Ro } from "./components/draw/drawApps.js";
38
+ import { DuxDrawAuth as ko } from "./components/draw/drawAuth.js";
39
+ import { DuxDrawEmpty as No } from "./components/draw/drawEmpty.js";
40
+ import { DuxDrawEmptyForm as Vo } from "./components/draw/drawEmptyForm.js";
41
+ import { DuxDrawError as Oo } from "./components/draw/drawError.js";
42
+ import { default as jo } from "./components/drawer/drawer.js";
43
+ import { DuxDrawerPage as Go } from "./components/drawer/drawerPage.js";
44
+ import { DuxAiEditor as Ko } from "./components/editor/aiEditor.js";
45
+ import { DuxDrawerForm as Yo } from "./components/form/drawerForm.js";
46
+ import { DuxFormItem as _o } from "./components/form/formItem.js";
47
+ import { DuxFormLayout as or } from "./components/form/formLayout.js";
48
+ import { DuxModalForm as er } from "./components/form/modalForm.js";
49
+ import { DuxPageForm as xr } from "./components/form/pageForm.js";
50
+ import { DuxSettingForm as mr } from "./components/form/settingForm.js";
51
+ import { DuxIconPicker as pr } from "./components/icon/icon.js";
51
52
  import "@iconify-json/tabler/icons.json";
52
53
  import "@vueuse/core";
53
- import { DuxTableFilter as ao } from "./components/layout/filter.js";
54
- import { DuxFilterLayout as fo } from "./components/layout/filterLayout.js";
55
- import { DuxListLayout as lo } from "./components/layout/list.js";
56
- import { DuxTableLayout as io } from "./components/layout/table.js";
57
- import { DuxTableTools as go } from "./components/layout/tools.js";
58
- import { DuxLevel as ho } from "./components/level/level.js";
59
- import { DuxCardPage as Co } from "./components/list/card.js";
60
- import { DuxListPage as To } from "./components/list/list.js";
61
- import { DuxMedia as Mo } from "./components/media/media.js";
62
- import { DuxPanelAlert as yo } from "./components/panel/alert.js";
63
- import { DuxPanelCard as Lo } from "./components/panel/setting.js";
64
- import { DuxCollapsePanel as Ao } from "./components/panel/collapse.js";
65
- import { DuxSelectCard as vo } from "./components/select/cardSelect.js";
66
- import { DuxStatsNumber as Ro } from "./components/stats/number.js";
67
- import { DuxStatsRealTime as ko } from "./components/stats/realTime.js";
68
- import { DuxBlockEmpty as No } from "./components/status/blockEmpty.js";
69
- import { DuxListEmpty as Vo } from "./components/status/listEmpty.js";
70
- import { DuxTable as Oo } from "./components/table/table.js";
71
- import { DuxTablePage as jo } from "./components/table/tablePage.js";
72
- import { DuxTreeFilter as Go } from "./components/tree/treeFilter.js";
73
- import { DuxFileUpload as Ko } from "./components/upload/file.js";
74
- import { DuxImageUpload as Yo } from "./components/upload/image.js";
75
- import { default as _o } from "./components/upload/manager.js";
76
- import { DuxAvatar as re } from "./components/widget/avatar.js";
77
- import { DuxWidgetConnect as ee } from "./components/widget/connect.js";
78
- import { DuxPlaceholder as xe } from "./components/widget/placeholder.js";
79
- import { DuxCodeEditor as me } from "./components/code/code.js";
80
- import { DuxAuthLayout as pe } from "./pages/authLayout.js";
81
- import { DuxLayout as De } from "./pages/layout.js";
82
- import { DuxLoginPage as se } from "./pages/login.js";
83
- import { default as ne } from "./pages/menu/avatar.js";
84
- import { default as ge } from "./pages/menu/button.js";
85
- import { DuxMenuCmd as he } from "./pages/menu/cmd.js";
86
- import { DuxMenuMain as Ce } from "./pages/menu/main.js";
87
- import { DuxMobileMenu as Te } from "./pages/menu/mobile.js";
88
- import { DuxPage as Me } from "./pages/page.js";
89
- import { DuxPage403 as ye } from "./pages/page403.js";
90
- import { DuxPage404 as Le } from "./pages/page404.js";
91
- import { DuxPage500 as Ae } from "./pages/page500.js";
92
- import { DuxPageEmpty as ve } from "./pages/pageEmpty.js";
93
- import { DuxPageLoading as Re } from "./pages/pageLoading.js";
94
- import { DuxPageStatus as ke } from "./pages/pageStatus.js";
95
- import { generateRainbowFromColor as Ne, getTheme as Qe } from "./config/echart.js";
96
- import { config as ze } from "./config/uno.js";
97
- import { initVeeValidate as We } from "./config/validate.js";
98
- import { default as qe } from "./langs/en-US.json.js";
99
- import { default as Je } from "./langs/zh-CN.json.js";
100
- import { createDuxPro as Xe } from "./main.js";
101
- import { useUIStore as Ze } from "./stores/ui.js";
102
- import { themeOverrides as $e } from "./theme/naiveTheme.js";
103
- import { presetTheme as ot } from "./theme/presetTheme.js";
54
+ import { DuxTableFilter as Dr } from "./components/layout/filter.js";
55
+ import { DuxFilterLayout as sr } from "./components/layout/filterLayout.js";
56
+ import { DuxListLayout as nr } from "./components/layout/list.js";
57
+ import { DuxTableLayout as gr } from "./components/layout/table.js";
58
+ import { DuxTableTools as hr } from "./components/layout/tools.js";
59
+ import { DuxLevel as Pr } from "./components/level/level.js";
60
+ import { DuxCardPage as Tr } from "./components/list/card.js";
61
+ import { DuxListPage as Mr } from "./components/list/list.js";
62
+ import { DuxMedia as yr } from "./components/media/media.js";
63
+ import { DuxPanelAlert as Lr } from "./components/panel/alert.js";
64
+ import { DuxPanelCard as Ar } from "./components/panel/setting.js";
65
+ import { DuxCollapsePanel as vr } from "./components/panel/collapse.js";
66
+ import { DuxSelectCard as Rr } from "./components/select/cardSelect.js";
67
+ import { DuxStatsNumber as kr } from "./components/stats/number.js";
68
+ import { DuxStatsRealTime as Nr } from "./components/stats/realTime.js";
69
+ import { DuxBlockEmpty as Vr } from "./components/status/blockEmpty.js";
70
+ import { DuxListEmpty as Or } from "./components/status/listEmpty.js";
71
+ import { DuxTable as jr } from "./components/table/table.js";
72
+ import { DuxTablePage as Gr } from "./components/table/tablePage.js";
73
+ import { DuxTreeFilter as Kr } from "./components/tree/treeFilter.js";
74
+ import { DuxFileUpload as Yr } from "./components/upload/file.js";
75
+ import { DuxImageUpload as _r } from "./components/upload/image.js";
76
+ import { default as oe } from "./components/upload/manager.js";
77
+ import { DuxAvatar as ee } from "./components/widget/avatar.js";
78
+ import { DuxWidgetConnect as xe } from "./components/widget/connect.js";
79
+ import { DuxPlaceholder as me } from "./components/widget/placeholder.js";
80
+ import { DuxCodeEditor as pe } from "./components/code/code.js";
81
+ import { DuxAuthLayout as De } from "./pages/authLayout.js";
82
+ import { DuxLayout as se } from "./pages/layout.js";
83
+ import { DuxLoginPage as ne } from "./pages/login.js";
84
+ import { default as ge } from "./pages/menu/avatar.js";
85
+ import { default as he } from "./pages/menu/button.js";
86
+ import { DuxMenuCmd as Pe } from "./pages/menu/cmd.js";
87
+ import { DuxMenuMain as Te } from "./pages/menu/main.js";
88
+ import { DuxMobileMenu as Me } from "./pages/menu/mobile.js";
89
+ import { DuxPage as ye } from "./pages/page.js";
90
+ import { DuxPage403 as Le } from "./pages/page403.js";
91
+ import { DuxPage404 as Ae } from "./pages/page404.js";
92
+ import { DuxPage500 as ve } from "./pages/page500.js";
93
+ import { DuxPageEmpty as Re } from "./pages/pageEmpty.js";
94
+ import { DuxPageLoading as ke } from "./pages/pageLoading.js";
95
+ import { DuxPageStatus as Ne } from "./pages/pageStatus.js";
96
+ import { generateRainbowFromColor as Ve, getTheme as ze } from "./config/echart.js";
97
+ import { config as We } from "./config/uno.js";
98
+ import { initVeeValidate as qe } from "./config/validate.js";
99
+ import { default as Je } from "./langs/en-US.json.js";
100
+ import { default as Xe } from "./langs/zh-CN.json.js";
101
+ import { createDuxPro as Ze } from "./main.js";
102
+ import { useUIStore as $e } from "./stores/ui.js";
103
+ import { themeOverrides as rt } from "./theme/naiveTheme.js";
104
+ import { presetTheme as tt } from "./theme/presetTheme.js";
104
105
  export {
105
- qr as DuxAiEditor,
106
+ Ko as DuxAiEditor,
106
107
  a as DuxApp,
107
- pe as DuxAuthLayout,
108
- re as DuxAvatar,
109
- No as DuxBlockEmpty,
108
+ De as DuxAuthLayout,
109
+ ee as DuxAvatar,
110
+ Vr as DuxBlockEmpty,
110
111
  f as DuxCard,
111
- Co as DuxCardPage,
112
+ Tr as DuxCardPage,
112
113
  n as DuxCarousel,
113
114
  g as DuxChart,
114
- me as DuxCodeEditor,
115
- Ao as DuxCollapsePanel,
115
+ pe as DuxCodeEditor,
116
+ vr as DuxCollapsePanel,
116
117
  T as DuxDashboardHello,
117
118
  M as DuxDashboardHelloBig,
118
119
  y as DuxDashboardQuick,
119
120
  F as DuxDashboardQuickItem,
120
- Sr as DuxDialog,
121
- Ir as DuxDrawApps,
122
- Br as DuxDrawAuth,
123
- Ur as DuxDrawEmpty,
124
- Hr as DuxDrawEmptyForm,
125
- Qr as DuxDrawError,
126
- zr as DuxDrawer,
127
- Jr as DuxDrawerForm,
128
- Wr as DuxDrawerPage,
121
+ vo as DuxDialog,
122
+ Ro as DuxDrawApps,
123
+ ko as DuxDrawAuth,
124
+ No as DuxDrawEmpty,
125
+ Vo as DuxDrawEmptyForm,
126
+ Oo as DuxDrawError,
127
+ jo as DuxDrawer,
128
+ Yo as DuxDrawerForm,
129
+ Go as DuxDrawerPage,
129
130
  S as DuxDynamicData,
130
131
  I as DuxDynamicSelect,
131
- _o as DuxFileManage,
132
- Ko as DuxFileUpload,
133
- fo as DuxFilterLayout,
134
- Xr as DuxFormItem,
135
- Zr as DuxFormLayout,
136
- uo as DuxIconPicker,
132
+ oe as DuxFileManage,
133
+ Yr as DuxFileUpload,
134
+ sr as DuxFilterLayout,
135
+ _o as DuxFormItem,
136
+ or as DuxFormLayout,
137
+ pr as DuxIconPicker,
137
138
  h as DuxImageCrop,
138
- C as DuxImageCropModal,
139
- Yo as DuxImageUpload,
140
- De as DuxLayout,
141
- ho as DuxLevel,
142
- Vo as DuxListEmpty,
143
- lo as DuxListLayout,
144
- To as DuxListPage,
145
- se as DuxLoginPage,
146
- Mo as DuxMedia,
147
- ne as DuxMenuAvatar,
148
- ge as DuxMenuButton,
149
- he as DuxMenuCmd,
150
- Ce as DuxMenuMain,
151
- Te as DuxMobileMenu,
152
- Er as DuxModal,
153
- $r as DuxModalForm,
154
- wr as DuxModalPage,
155
- Fr as DuxModalTab,
156
- Me as DuxPage,
157
- ye as DuxPage403,
158
- Le as DuxPage404,
159
- Ae as DuxPage500,
160
- ve as DuxPageEmpty,
161
- oo as DuxPageForm,
162
- Re as DuxPageLoading,
163
- ke as DuxPageStatus,
164
- yo as DuxPanelAlert,
165
- Lo as DuxPanelCard,
166
- xe as DuxPlaceholder,
167
- vo as DuxSelectCard,
168
- to as DuxSettingForm,
169
- Ro as DuxStatsNumber,
170
- ko as DuxStatsRealTime,
139
+ P as DuxImageCropModal,
140
+ _r as DuxImageUpload,
141
+ se as DuxLayout,
142
+ Pr as DuxLevel,
143
+ Or as DuxListEmpty,
144
+ nr as DuxListLayout,
145
+ Mr as DuxListPage,
146
+ ne as DuxLoginPage,
147
+ yr as DuxMedia,
148
+ ge as DuxMenuAvatar,
149
+ he as DuxMenuButton,
150
+ Pe as DuxMenuCmd,
151
+ Te as DuxMenuMain,
152
+ Me as DuxMobileMenu,
153
+ yo as DuxModal,
154
+ er as DuxModalForm,
155
+ Lo as DuxModalPage,
156
+ Ao as DuxModalTab,
157
+ ye as DuxPage,
158
+ Le as DuxPage403,
159
+ Ae as DuxPage404,
160
+ ve as DuxPage500,
161
+ Re as DuxPageEmpty,
162
+ xr as DuxPageForm,
163
+ ke as DuxPageLoading,
164
+ Ne as DuxPageStatus,
165
+ Lr as DuxPanelAlert,
166
+ Ar as DuxPanelCard,
167
+ me as DuxPlaceholder,
168
+ Rr as DuxSelectCard,
169
+ mr as DuxSettingForm,
170
+ kr as DuxStatsNumber,
171
+ Nr as DuxStatsRealTime,
171
172
  l as DuxStatsStore,
172
173
  s as DuxStatsStoreItem,
173
- Oo as DuxTable,
174
- ao as DuxTableFilter,
175
- io as DuxTableLayout,
176
- jo as DuxTablePage,
177
- go as DuxTableTools,
178
- Go as DuxTreeFilter,
179
- ee as DuxWidgetConnect,
180
- ze as config,
181
- Xe as createDuxPro,
182
- qe as enUS,
183
- Ne as generateRainbowFromColor,
184
- Qe as getTheme,
185
- We as initVeeValidate,
186
- ot as presetTheme,
187
- $e as themeOverrides,
174
+ jr as DuxTable,
175
+ Dr as DuxTableFilter,
176
+ gr as DuxTableLayout,
177
+ Gr as DuxTablePage,
178
+ hr as DuxTableTools,
179
+ Kr as DuxTreeFilter,
180
+ xe as DuxWidgetConnect,
181
+ We as config,
182
+ Ze as createDuxPro,
183
+ Je as enUS,
184
+ Ve as generateRainbowFromColor,
185
+ ze as getTheme,
186
+ qe as initVeeValidate,
187
+ tt as presetTheme,
188
+ rt as themeOverrides,
188
189
  B as useAction,
189
190
  R as useActionButton,
190
191
  U as useActionDropdown,
@@ -202,17 +203,18 @@ export {
202
203
  Z as useEchartRose,
203
204
  _ as useEchartTreeMap,
204
205
  $ as useEchartType,
205
- or as useImagePreview,
206
- tr as useLevel,
207
- ur as useModal,
208
- ar as useTable,
209
- fr as useTableColumn,
210
- lr as useTableColumnImage,
211
- ir as useTableColumnMap,
212
- dr as useTableColumnMedia,
213
- cr as useTableColumnStatus,
214
- Pr as useTableColumnSwitch,
215
- br as useUI,
216
- Ze as useUIStore,
217
- Je as zhCN
206
+ ro as useImagePreview,
207
+ to as useLevel,
208
+ uo as useModal,
209
+ ao as useTable,
210
+ lo as useTableColumn,
211
+ fo as useTableColumnColor,
212
+ io as useTableColumnImage,
213
+ go as useTableColumnMap,
214
+ ho as useTableColumnMedia,
215
+ Po as useTableColumnStatus,
216
+ To as useTableColumnSwitch,
217
+ Mo as useUI,
218
+ $e as useUIStore,
219
+ Xe as zhCN
218
220
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as C, inject as T, onBeforeMount as L, computed as i, watch as n, onMounted as y, createVNode as o } from "vue";
1
+ import { defineComponent as C, inject as T, onBeforeMount as L, computed as a, watch as i, onMounted as y, createVNode as o } from "vue";
2
2
  import { useTheme as P, useI18n as b } from "@duxweb/dvha-core";
3
3
  import { setLocale as k } from "@vee-validate/i18n";
4
4
  import { hex2hsl as x } from "colorizr";
@@ -15,31 +15,31 @@ import "vee-validate";
15
15
  const ae = /* @__PURE__ */ C({
16
16
  name: "DuxGlobalLayout",
17
17
  setup(_, {
18
- slots: r
18
+ slots: n
19
19
  }) {
20
20
  const {
21
21
  isDark: t,
22
22
  cssInit: l,
23
23
  getSceneColor: m
24
- } = P(), u = T("pageLoading"), d = M(), {
25
- lightTheme: c,
26
- darkTheme: s
24
+ } = P(), u = T("pageLoading"), s = M(), {
25
+ lightTheme: d,
26
+ darkTheme: c
27
27
  } = Z();
28
28
  L(() => {
29
29
  l();
30
30
  });
31
31
  const {
32
- getLocale: a
33
- } = b(), h = i(() => a() === "zh-CN" ? O : w), f = i(() => a() === "zh-CN" ? z : B);
34
- return n(a, (e) => {
32
+ getLocale: r
33
+ } = b(), h = a(() => r() === "zh-CN" ? O : w), f = a(() => r() === "zh-CN" ? z : B);
34
+ return i(r, (e) => {
35
35
  k(e);
36
36
  }, {
37
37
  immediate: !0
38
38
  }), y(async () => {
39
39
  setTimeout(() => {
40
- d.finish(), u.value = !1;
40
+ s.finish(), u.value = !1;
41
41
  }, 500);
42
- }), n(t, (e) => {
42
+ }), i(t, (e) => {
43
43
  const p = m("primary"), g = x(p), v = R(g, 10), N = V(v, e);
44
44
  D("default", N);
45
45
  }, {
@@ -48,16 +48,13 @@ const ae = /* @__PURE__ */ C({
48
48
  locale: h.value,
49
49
  dateLocale: f.value,
50
50
  theme: t.value ? G : I,
51
- themeOverrides: t.value ? s.value : c.value
51
+ themeOverrides: t.value ? c.value : d.value
52
52
  }, {
53
53
  default: () => [o(U, null, {
54
54
  default: () => [o(j, null, {
55
55
  default: () => [o(E, null, {
56
56
  default: () => [o(F, null, {
57
- default: () => {
58
- var e;
59
- return [(e = r.default) == null ? void 0 : e.call(r)];
60
- }
57
+ default: () => [n.default?.()]
61
58
  })]
62
59
  })]
63
60
  })]
@@ -1,110 +1,97 @@
1
- import { defineComponent as g, ref as b, reactive as y, createVNode as t, Fragment as T, mergeProps as C, nextTick as R } from "vue";
2
- import { useTabStore as N, useI18n as O } from "@duxweb/dvha-core";
3
- import { useNaiveTab as D } from "@duxweb/dvha-naiveui";
4
- import { NTabs as L, NTab as P, NDropdown as w } from "naive-ui";
5
- import { useRouter as S } from "vue-router";
6
- const X = /* @__PURE__ */ g({
1
+ import { defineComponent as f, ref as i, reactive as d, createVNode as t, Fragment as k, mergeProps as x, nextTick as g } from "vue";
2
+ import { useTabStore as y, useI18n as T } from "@duxweb/dvha-core";
3
+ import { useNaiveTab as C } from "@duxweb/dvha-naiveui";
4
+ import { NTabs as R, NTab as N, NDropdown as O } from "naive-ui";
5
+ import { useRouter as D } from "vue-router";
6
+ const I = /* @__PURE__ */ f({
7
7
  name: "DuxPageTab",
8
- setup(z) {
8
+ setup(L) {
9
9
  const {
10
- tabsProps: m,
11
- tabs: u
12
- } = D(), v = b(), i = N(), h = S(), {
13
- t: p
14
- } = O(), l = y({
10
+ tabsProps: r,
11
+ tabs: p
12
+ } = C(), u = i(), s = y(), n = D(), {
13
+ t: o
14
+ } = T(), l = d({
15
15
  x: 0,
16
16
  y: 0,
17
17
  visible: !1
18
- }), s = b(), f = (o, e) => {
19
- o.preventDefault(), l.visible = !1, R().then(() => {
20
- l.visible = !0, l.x = o.clientX, l.y = o.clientY, s.value = e;
18
+ }), a = i(), b = (e, c) => {
19
+ e.preventDefault(), l.visible = !1, g().then(() => {
20
+ l.visible = !0, l.x = e.clientX, l.y = e.clientY, a.value = c;
21
21
  });
22
- }, d = () => {
22
+ }, h = () => {
23
23
  l.visible = !1;
24
- }, k = [{
25
- label: p("components.tab.lock"),
24
+ }, m = [{
25
+ label: o("components.tab.lock"),
26
26
  key: "lock"
27
27
  }, {
28
- label: p("components.tab.closeOther"),
28
+ label: o("components.tab.closeOther"),
29
29
  key: "closeOther"
30
30
  }, {
31
- label: p("components.tab.closeLeft"),
31
+ label: o("components.tab.closeLeft"),
32
32
  key: "closeLeft"
33
33
  }, {
34
- label: p("components.tab.closeRight"),
34
+ label: o("components.tab.closeRight"),
35
35
  key: "closeRight"
36
- }], x = (o) => {
37
- var e, c, a, r;
38
- switch (l.visible = !1, o) {
36
+ }], v = (e) => {
37
+ switch (l.visible = !1, e) {
39
38
  case "lock":
40
- i.lockTab(((e = s.value) == null ? void 0 : e.path) || "");
39
+ s.lockTab(a.value?.path || "");
41
40
  break;
42
41
  case "closeOther":
43
- i.delOther(((c = s.value) == null ? void 0 : c.path) || "", () => {
44
- var n;
45
- h.push(((n = s.value) == null ? void 0 : n.path) || "");
42
+ s.delOther(a.value?.path || "", () => {
43
+ n.push(a.value?.path || "");
46
44
  });
47
45
  break;
48
46
  case "closeLeft":
49
- i.delLeft(((a = s.value) == null ? void 0 : a.path) || "", () => {
50
- var n;
51
- h.push(((n = s.value) == null ? void 0 : n.path) || "");
47
+ s.delLeft(a.value?.path || "", () => {
48
+ n.push(a.value?.path || "");
52
49
  });
53
50
  break;
54
51
  case "closeRight":
55
- i.delRight(((r = s.value) == null ? void 0 : r.path) || "", () => {
56
- var n;
57
- h.push(((n = s.value) == null ? void 0 : n.path) || "");
52
+ s.delRight(a.value?.path || "", () => {
53
+ n.push(a.value?.path || "");
58
54
  });
59
55
  break;
60
56
  }
61
57
  };
62
- return () => t(T, null, [t(L, C({
63
- ref: v,
58
+ return () => t(k, null, [t(R, x({
59
+ ref: u,
64
60
  type: "card",
65
61
  class: "app-page-tabs",
66
62
  barWidth: 100
67
- }, m.value), {
68
- default: () => {
69
- var o;
70
- return [(o = u == null ? void 0 : u.value) == null ? void 0 : o.map((e) => t(P, {
71
- key: e.path,
72
- name: e.path || ""
73
- }, {
74
- default: () => {
75
- var c;
76
- return [t("div", {
77
- class: "flex items-center gap-2 py-2 px-3",
78
- onContextmenu: (a) => f(a, e)
79
- }, [t("div", {
80
- class: "flex-1"
81
- }, [e.label]), t("div", {
82
- class: "flex items-center flex-none"
83
- }, [(c = e.meta) != null && c.lock ? t("div", {
84
- class: "i-tabler:pinned size-4"
85
- }, null) : t("div", {
86
- onClick: () => {
87
- var a, r;
88
- return (r = (a = m.value) == null ? void 0 : a.onClose) == null ? void 0 : r.call(a, e.path);
89
- },
90
- class: "text-muted hover:text-primary cursor-pointer"
91
- }, [t("div", {
92
- class: "i-tabler:x size-4"
93
- }, null)])])])];
94
- }
95
- }))];
96
- }
97
- }), t(w, {
63
+ }, r.value), {
64
+ default: () => [p?.value?.map((e) => t(N, {
65
+ key: e.path,
66
+ name: e.path || ""
67
+ }, {
68
+ default: () => [t("div", {
69
+ class: "flex items-center gap-2 py-2 px-3",
70
+ onContextmenu: (c) => b(c, e)
71
+ }, [t("div", {
72
+ class: "flex-1"
73
+ }, [e.label]), t("div", {
74
+ class: "flex items-center flex-none"
75
+ }, [e.meta?.lock ? t("div", {
76
+ class: "i-tabler:pinned size-4"
77
+ }, null) : t("div", {
78
+ onClick: () => r.value?.onClose?.(e.path),
79
+ class: "text-muted hover:text-primary cursor-pointer"
80
+ }, [t("div", {
81
+ class: "i-tabler:x size-4"
82
+ }, null)])])])]
83
+ }))]
84
+ }), t(O, {
98
85
  trigger: "manual",
99
86
  x: l.x,
100
87
  y: l.y,
101
88
  show: l.visible,
102
- onClickoutside: d,
103
- options: k,
104
- onSelect: x
89
+ onClickoutside: h,
90
+ options: m,
91
+ onSelect: v
105
92
  }, null)]);
106
93
  }
107
94
  });
108
95
  export {
109
- X as DuxPageTab
96
+ I as DuxPageTab
110
97
  };