@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.
Files changed (229) 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/card/store.cjs +1 -1
  4. package/dist/cjs/components/carousel/carousel.cjs +1 -1
  5. package/dist/cjs/components/chart/echart.cjs +1 -1
  6. package/dist/cjs/components/crop/imageCrop.cjs +1 -1
  7. package/dist/cjs/components/crop/imageCropModal.cjs +1 -1
  8. package/dist/cjs/components/dashboard/hello.cjs +1 -1
  9. package/dist/cjs/components/dashboard/helloBig.cjs +1 -1
  10. package/dist/cjs/components/dashboard/quick.cjs +1 -1
  11. package/dist/cjs/components/data/dynamicData.cjs +1 -1
  12. package/dist/cjs/components/data/dynamicSelect.cjs +1 -1
  13. package/dist/cjs/components/data/selectModal.cjs +1 -1
  14. package/dist/cjs/components/dialog/dialog.cjs +1 -1
  15. package/dist/cjs/components/drawer/drawer.cjs +1 -1
  16. package/dist/cjs/components/drawer/drawerPage.cjs +1 -1
  17. package/dist/cjs/components/editor/aiEditor.cjs +1 -1
  18. package/dist/cjs/components/form/drawerForm.cjs +1 -1
  19. package/dist/cjs/components/form/formItem.cjs +1 -1
  20. package/dist/cjs/components/form/formLayout.cjs +1 -1
  21. package/dist/cjs/components/form/modalForm.cjs +1 -1
  22. package/dist/cjs/components/form/pageForm.cjs +1 -1
  23. package/dist/cjs/components/form/settingForm.cjs +1 -1
  24. package/dist/cjs/components/icon/icon.cjs +1 -1
  25. package/dist/cjs/components/icon/iconPicker.cjs +1 -1
  26. package/dist/cjs/components/image/components/CanvasRuler.cjs +1 -0
  27. package/dist/cjs/components/image/elements/circle.cjs +1 -0
  28. package/dist/cjs/components/image/elements/image.cjs +1 -0
  29. package/dist/cjs/components/image/elements/index.cjs +1 -0
  30. package/dist/cjs/components/image/elements/rect.cjs +1 -0
  31. package/dist/cjs/components/image/elements/text.cjs +1 -0
  32. package/dist/cjs/components/image/hooks/usePosterEditor.cjs +1 -0
  33. package/dist/cjs/components/image/pages/LeftToolbar.cjs +1 -0
  34. package/dist/cjs/components/image/pages/Panel.cjs +1 -0
  35. package/dist/cjs/components/image/pages/PanelItem.cjs +1 -0
  36. package/dist/cjs/components/image/pages/RightPanel.cjs +1 -0
  37. package/dist/cjs/components/image/posterEditor.cjs +1 -0
  38. package/dist/cjs/components/layout/filter.cjs +1 -1
  39. package/dist/cjs/components/layout/filterLayout.cjs +1 -1
  40. package/dist/cjs/components/layout/list.cjs +1 -1
  41. package/dist/cjs/components/layout/table.cjs +1 -1
  42. package/dist/cjs/components/layout/tools.cjs +1 -1
  43. package/dist/cjs/components/level/level.cjs +1 -1
  44. package/dist/cjs/components/list/card.cjs +1 -1
  45. package/dist/cjs/components/list/list.cjs +1 -1
  46. package/dist/cjs/components/media/media.cjs +1 -1
  47. package/dist/cjs/components/modal/modal.cjs +1 -1
  48. package/dist/cjs/components/modal/modalPage.cjs +1 -1
  49. package/dist/cjs/components/modal/modalTab.cjs +1 -1
  50. package/dist/cjs/components/panel/alert.cjs +1 -1
  51. package/dist/cjs/components/panel/collapse.cjs +1 -1
  52. package/dist/cjs/components/panel/setting.cjs +1 -1
  53. package/dist/cjs/components/select/cardSelect.cjs +1 -1
  54. package/dist/cjs/components/status/listEmpty.cjs +1 -1
  55. package/dist/cjs/components/table/table.cjs +1 -1
  56. package/dist/cjs/components/table/tablePage.cjs +1 -1
  57. package/dist/cjs/components/tree/treeFilter.cjs +1 -1
  58. package/dist/cjs/components/upload/config.cjs +1 -1
  59. package/dist/cjs/components/upload/file.cjs +1 -1
  60. package/dist/cjs/components/upload/image.cjs +1 -1
  61. package/dist/cjs/components/upload/manage/item.cjs +1 -1
  62. package/dist/cjs/components/upload/manager.cjs +1 -1
  63. package/dist/cjs/components/widget/connect.cjs +1 -1
  64. package/dist/cjs/dvha-pro.css +1 -1
  65. package/dist/cjs/hooks/action.cjs +1 -1
  66. package/dist/cjs/hooks/dialog.cjs +1 -1
  67. package/dist/cjs/hooks/download.cjs +1 -1
  68. package/dist/cjs/hooks/drawer.cjs +1 -1
  69. package/dist/cjs/hooks/echart.cjs +1 -1
  70. package/dist/cjs/hooks/image.cjs +1 -1
  71. package/dist/cjs/hooks/level.cjs +1 -1
  72. package/dist/cjs/hooks/modal.cjs +1 -1
  73. package/dist/cjs/hooks/table/color.cjs +1 -0
  74. package/dist/cjs/hooks/table/column.cjs +1 -1
  75. package/dist/cjs/hooks/table/image.cjs +1 -1
  76. package/dist/cjs/hooks/table/input.cjs +1 -1
  77. package/dist/cjs/hooks/table/map.cjs +1 -1
  78. package/dist/cjs/hooks/table/media.cjs +1 -1
  79. package/dist/cjs/hooks/table/status.cjs +1 -1
  80. package/dist/cjs/hooks/table/switch.cjs +1 -1
  81. package/dist/cjs/hooks/table.cjs +1 -1
  82. package/dist/cjs/index.cjs +1 -1
  83. package/dist/cjs/pages/authLayout.cjs +1 -1
  84. package/dist/cjs/pages/layout/global.cjs +1 -1
  85. package/dist/cjs/pages/layout/page.cjs +1 -1
  86. package/dist/cjs/pages/layout/tab.cjs +1 -1
  87. package/dist/cjs/pages/layout.cjs +1 -1
  88. package/dist/cjs/pages/login.cjs +1 -1
  89. package/dist/cjs/pages/menu/avatar.cjs +1 -1
  90. package/dist/cjs/pages/menu/button.cjs +1 -1
  91. package/dist/cjs/pages/menu/cmd.cjs +1 -1
  92. package/dist/cjs/pages/menu/main.cjs +1 -1
  93. package/dist/cjs/pages/menu/mobile.cjs +1 -1
  94. package/dist/cjs/pages/page.cjs +1 -1
  95. package/dist/cjs/pages/page404.cjs +1 -1
  96. package/dist/cjs/pages/pageStatus.cjs +1 -1
  97. package/dist/cjs/stores/ui.cjs +1 -1
  98. package/dist/cjs/theme/uno.css.cjs +26 -1
  99. package/dist/esm/component.js +49 -47
  100. package/dist/esm/components/card/card.js +24 -27
  101. package/dist/esm/components/card/store.js +33 -39
  102. package/dist/esm/components/carousel/carousel.js +16 -19
  103. package/dist/esm/components/chart/echart.js +15 -13
  104. package/dist/esm/components/crop/imageCrop.js +45 -46
  105. package/dist/esm/components/crop/imageCropModal.js +36 -37
  106. package/dist/esm/components/dashboard/hello.js +27 -30
  107. package/dist/esm/components/dashboard/helloBig.js +328 -331
  108. package/dist/esm/components/dashboard/quick.js +30 -33
  109. package/dist/esm/components/data/dynamicData.js +86 -98
  110. package/dist/esm/components/data/dynamicSelect.js +42 -42
  111. package/dist/esm/components/data/selectModal.js +58 -60
  112. package/dist/esm/components/dialog/dialog.js +54 -55
  113. package/dist/esm/components/drawer/drawer.js +23 -23
  114. package/dist/esm/components/drawer/drawerPage.js +39 -49
  115. package/dist/esm/components/editor/aiEditor.js +64 -70
  116. package/dist/esm/components/form/drawerForm.js +61 -59
  117. package/dist/esm/components/form/formItem.js +45 -51
  118. package/dist/esm/components/form/formLayout.js +7 -10
  119. package/dist/esm/components/form/modalForm.js +63 -61
  120. package/dist/esm/components/form/pageForm.js +56 -57
  121. package/dist/esm/components/form/settingForm.js +43 -44
  122. package/dist/esm/components/icon/icon.js +15 -13
  123. package/dist/esm/components/icon/iconPicker.js +54 -58
  124. package/dist/esm/components/image/components/CanvasRuler.js +113 -0
  125. package/dist/esm/components/image/elements/circle.js +127 -0
  126. package/dist/esm/components/image/elements/image.js +131 -0
  127. package/dist/esm/components/image/elements/index.js +46 -0
  128. package/dist/esm/components/image/elements/rect.js +171 -0
  129. package/dist/esm/components/image/elements/text.js +206 -0
  130. package/dist/esm/components/image/hooks/usePosterEditor.js +434 -0
  131. package/dist/esm/components/image/pages/LeftToolbar.js +40 -0
  132. package/dist/esm/components/image/pages/Panel.js +31 -0
  133. package/dist/esm/components/image/pages/PanelItem.js +22 -0
  134. package/dist/esm/components/image/pages/RightPanel.js +421 -0
  135. package/dist/esm/components/image/posterEditor.js +227 -0
  136. package/dist/esm/components/layout/filter.js +13 -16
  137. package/dist/esm/components/layout/filterLayout.js +7 -10
  138. package/dist/esm/components/layout/list.js +312 -337
  139. package/dist/esm/components/layout/table.js +281 -294
  140. package/dist/esm/components/layout/tools.js +38 -41
  141. package/dist/esm/components/level/level.js +15 -13
  142. package/dist/esm/components/list/card.js +35 -38
  143. package/dist/esm/components/list/list.js +15 -18
  144. package/dist/esm/components/media/media.js +35 -36
  145. package/dist/esm/components/modal/modal.js +10 -10
  146. package/dist/esm/components/modal/modalPage.js +32 -36
  147. package/dist/esm/components/modal/modalTab.js +39 -45
  148. package/dist/esm/components/panel/alert.js +19 -22
  149. package/dist/esm/components/panel/collapse.js +33 -36
  150. package/dist/esm/components/panel/setting.js +25 -31
  151. package/dist/esm/components/select/cardSelect.js +27 -28
  152. package/dist/esm/components/status/listEmpty.js +13 -13
  153. package/dist/esm/components/table/table.js +15 -13
  154. package/dist/esm/components/table/tablePage.js +25 -25
  155. package/dist/esm/components/tree/treeFilter.js +137 -147
  156. package/dist/esm/components/upload/config.js +15 -27
  157. package/dist/esm/components/upload/file.js +115 -109
  158. package/dist/esm/components/upload/image.js +135 -130
  159. package/dist/esm/components/upload/manage/item.js +59 -60
  160. package/dist/esm/components/upload/manager.js +203 -218
  161. package/dist/esm/components/widget/connect.js +103 -106
  162. package/dist/esm/dvha-pro.css +1 -1
  163. package/dist/esm/hooks/action.js +115 -131
  164. package/dist/esm/hooks/dialog.js +15 -13
  165. package/dist/esm/hooks/download.js +55 -56
  166. package/dist/esm/hooks/drawer.js +15 -13
  167. package/dist/esm/hooks/echart.js +156 -179
  168. package/dist/esm/hooks/image.js +14 -15
  169. package/dist/esm/hooks/level.js +7 -7
  170. package/dist/esm/hooks/modal.js +15 -13
  171. package/dist/esm/hooks/table/color.js +19 -0
  172. package/dist/esm/hooks/table/column.js +25 -23
  173. package/dist/esm/hooks/table/image.js +17 -15
  174. package/dist/esm/hooks/table/input.js +28 -28
  175. package/dist/esm/hooks/table/map.js +7 -7
  176. package/dist/esm/hooks/table/media.js +15 -13
  177. package/dist/esm/hooks/table/status.js +8 -9
  178. package/dist/esm/hooks/table/switch.js +19 -19
  179. package/dist/esm/hooks/table.js +27 -31
  180. package/dist/esm/index.js +213 -200
  181. package/dist/esm/pages/authLayout.js +15 -13
  182. package/dist/esm/pages/layout/global.js +12 -15
  183. package/dist/esm/pages/layout/page.js +15 -13
  184. package/dist/esm/pages/layout/tab.js +58 -71
  185. package/dist/esm/pages/layout.js +7 -6
  186. package/dist/esm/pages/login.js +95 -98
  187. package/dist/esm/pages/menu/avatar.js +151 -162
  188. package/dist/esm/pages/menu/button.js +29 -31
  189. package/dist/esm/pages/menu/cmd.js +83 -87
  190. package/dist/esm/pages/menu/main.js +25 -23
  191. package/dist/esm/pages/menu/mobile.js +15 -13
  192. package/dist/esm/pages/page.js +21 -25
  193. package/dist/esm/pages/page404.js +13 -11
  194. package/dist/esm/pages/pageStatus.js +33 -34
  195. package/dist/esm/stores/ui.js +15 -15
  196. package/dist/esm/theme/uno.css.js +26 -1
  197. package/dist/types/components/form/drawerForm.d.ts +6 -0
  198. package/dist/types/components/form/modalForm.d.ts +6 -0
  199. package/dist/types/components/form/pageForm.d.ts +6 -0
  200. package/dist/types/components/form/settingForm.d.ts +6 -0
  201. package/dist/types/components/image/components/CanvasRuler.d.ts +43 -0
  202. package/dist/types/components/image/components/index.d.ts +1 -0
  203. package/dist/types/components/image/elements/circle.d.ts +3 -0
  204. package/dist/types/components/image/elements/image.d.ts +3 -0
  205. package/dist/types/components/image/elements/index.d.ts +15 -0
  206. package/dist/types/components/image/elements/rect.d.ts +3 -0
  207. package/dist/types/components/image/elements/text.d.ts +3 -0
  208. package/dist/types/components/image/elements/types.d.ts +51 -0
  209. package/dist/types/components/image/hooks/index.d.ts +1 -0
  210. package/dist/types/components/image/hooks/usePosterEditor.d.ts +48 -0
  211. package/dist/types/components/image/index.d.ts +4 -0
  212. package/dist/types/components/image/pages/LeftToolbar.d.ts +33 -0
  213. package/dist/types/components/image/pages/Panel.d.ts +11 -0
  214. package/dist/types/components/image/pages/PanelItem.d.ts +11 -0
  215. package/dist/types/components/image/pages/RightPanel.d.ts +208 -0
  216. package/dist/types/components/image/pages/index.d.ts +4 -0
  217. package/dist/types/components/image/posterEditor.d.ts +61 -0
  218. package/dist/types/components/image/types/editor.d.ts +47 -0
  219. package/dist/types/components/index.d.ts +2 -2
  220. package/dist/types/components/layout/table.d.ts +9 -0
  221. package/dist/types/components/stats/number.d.ts +1 -1
  222. package/dist/types/components/table/tablePage.d.ts +9 -0
  223. package/dist/types/components/upload/file.d.ts +5 -3
  224. package/dist/types/hooks/table/color.d.ts +13 -0
  225. package/dist/types/hooks/table/column.d.ts +1 -0
  226. package/dist/types/hooks/table/index.d.ts +1 -0
  227. package/dist/types/index.d.ts +1 -0
  228. package/dist/types/pages/layout/global.d.ts +0 -1
  229. package/package.json +6 -3
@@ -1,6 +1,6 @@
1
- import { defineComponent as n, ref as i, createVNode as a } from "vue";
2
- import { NTabs as f, NButton as u } from "naive-ui";
3
- const o = /* @__PURE__ */ n({
1
+ import { defineComponent as t, ref as d, createVNode as e } from "vue";
2
+ import { NTabs as r, NButton as n } from "naive-ui";
3
+ const f = /* @__PURE__ */ t({
4
4
  name: "ModalTab",
5
5
  props: {
6
6
  draggable: {
@@ -13,7 +13,7 @@ const o = /* @__PURE__ */ n({
13
13
  },
14
14
  handle: {
15
15
  type: Object,
16
- default: () => i()
16
+ default: () => d()
17
17
  },
18
18
  onClose: {
19
19
  type: Function,
@@ -21,50 +21,44 @@ const o = /* @__PURE__ */ n({
21
21
  }
22
22
  }
23
23
  },
24
- setup(d, {
25
- slots: e
24
+ setup(a, {
25
+ slots: l
26
26
  }) {
27
- return () => {
28
- var l, t;
29
- return a("div", {
30
- class: "flex flex-col"
31
- }, [a(f, {
32
- type: "line",
33
- defaultValue: d.defaultTab,
34
- class: "app-modal-tabs",
35
- size: "large",
36
- style: {
37
- "--n-pane-padding-right": "16px",
38
- "--n-pane-padding-left": "16px"
39
- }
27
+ return () => e("div", {
28
+ class: "flex flex-col"
29
+ }, [e(r, {
30
+ type: "line",
31
+ defaultValue: a.defaultTab,
32
+ class: "app-modal-tabs",
33
+ size: "large",
34
+ style: {
35
+ "--n-pane-padding-right": "16px",
36
+ "--n-pane-padding-left": "16px"
37
+ }
38
+ }, {
39
+ default: () => l.default?.(),
40
+ prefix: () => a.draggable ? e("div", {
41
+ class: "pl-4 cursor-move flex items-center",
42
+ ref: a.handle
43
+ }, [e("div", {
44
+ class: "i-tabler:grid-dots size-4"
45
+ }, null)]) : null,
46
+ suffix: () => e("div", {
47
+ class: "pr-4 flex items-center"
48
+ }, [e(n, {
49
+ text: !0,
50
+ onClick: a.onClose,
51
+ "aria-label": "close"
40
52
  }, {
41
- default: () => {
42
- var r;
43
- return (r = e.default) == null ? void 0 : r.call(e);
44
- },
45
- prefix: () => d.draggable ? a("div", {
46
- class: "pl-4 cursor-move flex items-center",
47
- ref: d.handle
48
- }, [a("div", {
49
- class: "i-tabler:grid-dots size-4"
50
- }, null)]) : null,
51
- suffix: () => a("div", {
52
- class: "pr-4 flex items-center"
53
- }, [a(u, {
54
- text: !0,
55
- onClick: d.onClose,
56
- "aria-label": "close"
57
- }, {
58
- icon: () => a("div", {
59
- class: "i-tabler:x size-4"
60
- }, null)
61
- })])
62
- }), ((l = e.footer) == null ? void 0 : l.call(e)) && a("div", {
63
- class: "flex justify-end gap-2 p-3 rounded-b border-t border-muted bg-muted dark:bg-gray-800/50"
64
- }, [(t = e.footer) == null ? void 0 : t.call(e)])]);
65
- };
53
+ icon: () => e("div", {
54
+ class: "i-tabler:x size-4"
55
+ }, null)
56
+ })])
57
+ }), l.footer?.() && e("div", {
58
+ class: "flex justify-end gap-2 p-3 rounded-b border-t border-muted bg-muted dark:bg-gray-800/50"
59
+ }, [l.footer?.()])]);
66
60
  }
67
61
  });
68
62
  export {
69
- o as default
63
+ f as default
70
64
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as d, computed as l, createVNode as t } from "vue";
2
- const p = /* @__PURE__ */ d({
1
+ import { defineComponent as i, computed as l, createVNode as t } from "vue";
2
+ const s = /* @__PURE__ */ i({
3
3
  name: "DuxPanelAlert",
4
4
  props: {
5
5
  type: {
@@ -18,7 +18,7 @@ const p = /* @__PURE__ */ d({
18
18
  setup(r, {
19
19
  slots: e
20
20
  }) {
21
- const c = l(() => {
21
+ const a = l(() => {
22
22
  switch (r.type) {
23
23
  case "error":
24
24
  return "to-error/20";
@@ -32,26 +32,23 @@ const p = /* @__PURE__ */ d({
32
32
  return "to-gray/20";
33
33
  }
34
34
  });
35
- return () => {
36
- var a, i, n;
37
- return t("div", {
38
- class: `relative flex rounded-lg ring ring-muted bg-linear-to-br from-transparent ${c.value}`
39
- }, [t("div", {
40
- class: "relative flex flex-col flex-1 lg:grid gap-x-8 gap-y-4 p-4 sm:p-6"
41
- }, [t("div", {
42
- class: "flex flex-col flex-1 items-start"
43
- }, [t("div", {
44
- class: "flex-1"
45
- }, [t("div", {
46
- class: "text-base text-pretty text-highlighted"
47
- }, [((a = e.title) == null ? void 0 : a.call(e)) || r.title]), t("div", {
48
- class: "text-sm text-pretty text-muted mt-1"
49
- }, [((i = e.description) == null ? void 0 : i.call(e)) || r.description])]), e.actions && t("div", {
50
- class: "pt-4 mt-auto"
51
- }, [(n = e.actions) == null ? void 0 : n.call(e)])])])]);
52
- };
35
+ return () => t("div", {
36
+ class: `relative flex rounded-lg ring ring-muted bg-linear-to-br from-transparent ${a.value}`
37
+ }, [t("div", {
38
+ class: "relative flex flex-col flex-1 lg:grid gap-x-8 gap-y-4 p-4 sm:p-6"
39
+ }, [t("div", {
40
+ class: "flex flex-col flex-1 items-start"
41
+ }, [t("div", {
42
+ class: "flex-1"
43
+ }, [t("div", {
44
+ class: "text-base text-pretty text-highlighted"
45
+ }, [e.title?.() || r.title]), t("div", {
46
+ class: "text-sm text-pretty text-muted mt-1"
47
+ }, [e.description?.() || r.description])]), e.actions && t("div", {
48
+ class: "pt-4 mt-auto"
49
+ }, [e.actions?.()])])])]);
53
50
  }
54
51
  });
55
52
  export {
56
- p as DuxPanelAlert
53
+ s as DuxPanelAlert
57
54
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as n, ref as c, createVNode as a } from "vue";
2
- import t from "clsx";
3
- const h = /* @__PURE__ */ n({
1
+ import { defineComponent as r, ref as s, createVNode as e } from "vue";
2
+ import a from "clsx";
3
+ const n = /* @__PURE__ */ r({
4
4
  name: "DuxCollapsePanel",
5
5
  props: {
6
6
  title: String,
@@ -8,42 +8,39 @@ const h = /* @__PURE__ */ n({
8
8
  defaultShow: Boolean,
9
9
  highlight: Boolean
10
10
  },
11
- setup(e, {
11
+ setup(l, {
12
12
  slots: i
13
13
  }) {
14
- const l = c(!!e.defaultShow);
15
- return () => {
16
- var d, r;
17
- return a("div", {
18
- class: t(["border rounded-sm", e.highlight ? "border-primary" : "border-muted"])
19
- }, [a("div", {
20
- class: t(["px-4 py-3 flex justify-between items-center", e.highlight ? "bg-primary/10" : "bg-gray/5"])
21
- }, [a("div", {
22
- class: "flex gap-2 items-start"
23
- }, [a("div", {
24
- class: "pt-0.5"
25
- }, [(d = i.suffix) == null ? void 0 : d.call(i)]), a("div", {
26
- class: "flex flex-col"
27
- }, [a("div", {
28
- class: "font-medium text-base"
29
- }, [e == null ? void 0 : e.title]), (e == null ? void 0 : e.desc) && a("div", {
30
- class: "text-muted"
31
- }, [e.desc])])]), a("div", {
32
- class: t(["p-2 rounded-full text-primary cursor-pointer", e.highlight ? "bg-primary/10" : "bg-gray/5"]),
33
- onClick: () => l.value = !l.value
34
- }, [a("div", {
35
- class: t(["i-tabler:arrow-down size-4 transition-all", l.value ? "" : "rotate-180"])
36
- }, null)])]), a("div", {
37
- class: t("transition-all overflow-hidden", {
38
- "max-h-0": !l.value,
39
- "max-h-500": l.value
40
- })
41
- }, [a("div", {
42
- class: "p-4"
43
- }, [(r = i.default) == null ? void 0 : r.call(i)])])]);
44
- };
14
+ const t = s(!!l.defaultShow);
15
+ return () => e("div", {
16
+ class: a(["border rounded-sm", l.highlight ? "border-primary" : "border-muted"])
17
+ }, [e("div", {
18
+ class: a(["px-4 py-3 flex justify-between items-center", l.highlight ? "bg-primary/10" : "bg-gray/5"])
19
+ }, [e("div", {
20
+ class: "flex gap-2 items-start"
21
+ }, [e("div", {
22
+ class: "pt-0.5"
23
+ }, [i.suffix?.()]), e("div", {
24
+ class: "flex flex-col"
25
+ }, [e("div", {
26
+ class: "font-medium text-base"
27
+ }, [l?.title]), l?.desc && e("div", {
28
+ class: "text-muted"
29
+ }, [l.desc])])]), e("div", {
30
+ class: a(["p-2 rounded-full text-primary cursor-pointer", l.highlight ? "bg-primary/10" : "bg-gray/5"]),
31
+ onClick: () => t.value = !t.value
32
+ }, [e("div", {
33
+ class: a(["i-tabler:arrow-down size-4 transition-all", t.value ? "" : "rotate-180"])
34
+ }, null)])]), e("div", {
35
+ class: a("transition-all overflow-hidden", {
36
+ "max-h-0": !t.value,
37
+ "max-h-500": t.value
38
+ })
39
+ }, [e("div", {
40
+ class: "p-4"
41
+ }, [i.default?.()])])]);
45
42
  }
46
43
  });
47
44
  export {
48
- h as DuxCollapsePanel
45
+ n as DuxCollapsePanel
49
46
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as r, createVNode as e } from "vue";
2
- import { DuxCard as n } from "../card/card.js";
1
+ import { defineComponent as i, createVNode as e } from "vue";
2
+ import { DuxCard as a } from "../card/card.js";
3
3
  import "clsx";
4
4
  import "naive-ui";
5
- const m = /* @__PURE__ */ r({
5
+ const s = /* @__PURE__ */ i({
6
6
  name: "DuxPanelCard",
7
7
  props: {
8
8
  title: {
@@ -21,36 +21,30 @@ const m = /* @__PURE__ */ r({
21
21
  default: !0
22
22
  }
23
23
  },
24
- setup(d, {
25
- slots: t
24
+ setup(t, {
25
+ slots: d
26
26
  }) {
27
- return () => {
28
- var i;
29
- return e("div", {
30
- class: "flex flex-col gap-4"
31
- }, [e("div", {
32
- class: "flex items-center px-2"
33
- }, [e("div", {
34
- class: "flex-1 flex flex-col"
35
- }, [e("div", {
36
- class: "text-base"
37
- }, [d.title]), d.description && e("div", {
38
- class: "text-sm text-muted"
39
- }, [d.description])]), e("div", {
40
- class: "flex-none flex items-center"
41
- }, [(i = t.actions) == null ? void 0 : i.call(t)])]), e(n, {
42
- size: d.padding,
43
- shadow: !1,
44
- bordered: d.bordered
45
- }, {
46
- default: () => {
47
- var a;
48
- return [(a = t.default) == null ? void 0 : a.call(t)];
49
- }
50
- })]);
51
- };
27
+ return () => e("div", {
28
+ class: "flex flex-col gap-4"
29
+ }, [e("div", {
30
+ class: "flex items-center px-2"
31
+ }, [e("div", {
32
+ class: "flex-1 flex flex-col"
33
+ }, [e("div", {
34
+ class: "text-base"
35
+ }, [t.title]), t.description && e("div", {
36
+ class: "text-sm text-muted"
37
+ }, [t.description])]), e("div", {
38
+ class: "flex-none flex items-center"
39
+ }, [d.actions?.()])]), e(a, {
40
+ size: t.padding,
41
+ shadow: !1,
42
+ bordered: t.bordered
43
+ }, {
44
+ default: () => [d.default?.()]
45
+ })]);
52
46
  }
53
47
  });
54
48
  export {
55
- m as DuxPanelCard
49
+ s as DuxPanelCard
56
50
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as f, createVNode as a } from "vue";
2
- import { useVModel as m } from "@vueuse/core";
3
- const y = /* @__PURE__ */ f({
1
+ import { defineComponent as n, createVNode as l } from "vue";
2
+ import { useVModel as f } from "@vueuse/core";
3
+ const x = /* @__PURE__ */ n({
4
4
  name: "DuxSelectCard",
5
5
  props: {
6
6
  options: {
@@ -37,60 +37,59 @@ const y = /* @__PURE__ */ f({
37
37
  }
38
38
  },
39
39
  emits: ["update:value", "change"],
40
- setup(l, {
40
+ setup(a, {
41
41
  emit: u
42
42
  }) {
43
- const t = m(l, "value", u, {
43
+ const t = f(a, "value", u, {
44
44
  passive: !0,
45
- defaultValue: l.defaultValue
46
- }), s = (e) => {
47
- var i;
48
- if (!l.disabled) {
49
- if (l.multiple) {
45
+ defaultValue: a.defaultValue
46
+ }), i = (e) => {
47
+ if (!a.disabled) {
48
+ if (a.multiple) {
50
49
  const d = Array.isArray(t.value) ? t.value : [];
51
- t.value = d.includes(e) ? d.filter((n) => n !== e) : [...d, e];
50
+ t.value = d.includes(e) ? d.filter((c) => c !== e) : [...d, e];
52
51
  } else
53
52
  t.value = e;
54
- (i = l.onUpdateValue) == null || i.call(l, t.value), u("update:value", t.value);
53
+ a.onUpdateValue?.(t.value), u("update:value", t.value);
55
54
  }
56
- }, r = (e) => l.multiple ? Array.isArray(t.value) && t.value.includes(e) : t.value === e, c = ["grid gap-4", "grid-cols-2", `lg:grid-cols-[repeat(auto-fit,minmax(${l.minWidth},${l.maxWidth}))]`];
57
- return () => a("div", {
58
- class: c
59
- }, [l.options.map((e) => a("div", {
55
+ }, r = (e) => a.multiple ? Array.isArray(t.value) && t.value.includes(e) : t.value === e, s = ["grid gap-4", "grid-cols-2", `lg:grid-cols-[repeat(auto-fit,minmax(${a.minWidth},${a.maxWidth}))]`];
56
+ return () => l("div", {
57
+ class: s
58
+ }, [a.options.map((e) => l("div", {
60
59
  key: e.value,
61
60
  class: ["relative cursor-pointer border rounded p-2.5 transition-all duration-200 hover:border-primary", {
62
61
  "border-primary bg-primary/10": r(e.value),
63
62
  "border-muted": !r(e.value),
64
- "opacity-50 cursor-not-allowed": e.disabled || l.disabled
63
+ "opacity-50 cursor-not-allowed": e.disabled || a.disabled
65
64
  }],
66
- onClick: () => !e.disabled && s(e.value)
67
- }, [r(e.value) && a("div", {
65
+ onClick: () => !e.disabled && i(e.value)
66
+ }, [r(e.value) && l("div", {
68
67
  class: "absolute top-2 right-2 size-4 bg-primary rounded-full flex items-center justify-center"
69
- }, [a("svg", {
68
+ }, [l("svg", {
70
69
  class: "size-3 text-white",
71
70
  fill: "currentColor",
72
71
  viewBox: "0 0 20 20"
73
- }, [a("path", {
72
+ }, [l("path", {
74
73
  "fill-rule": "evenodd",
75
74
  d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
76
75
  "clip-rule": "evenodd"
77
- }, null)])]), a("div", {
76
+ }, null)])]), l("div", {
78
77
  class: ["flex gap-3 px-2 items-center", {
79
78
  "flex-col items-center text-center": !e.icon,
80
79
  "flex-row items-start text-left": e.icon
81
80
  }]
82
- }, [e.icon && a("div", {
81
+ }, [e.icon && l("div", {
83
82
  class: ["flex items-center justify-center p-3 rounded-lg", `bg-${e.iconColor}/10`, `text-${e.iconColor}`]
84
- }, [a("div", {
83
+ }, [l("div", {
85
84
  class: `${e.icon} size-4`
86
- }, null)]), a("div", {
85
+ }, null)]), l("div", {
87
86
  class: "flex flex-col flex-1"
88
- }, [a("div", {
87
+ }, [l("div", {
89
88
  class: ["text-sm font-medium", {
90
89
  "text-primary": r(e.value),
91
90
  "text-default": !r(e.value)
92
91
  }]
93
- }, [e.label]), e.description && a("div", {
92
+ }, [e.label]), e.description && l("div", {
94
93
  class: ["text-sm", {
95
94
  "text-primary": r(e.value),
96
95
  "text-muted": !r(e.value)
@@ -99,5 +98,5 @@ const y = /* @__PURE__ */ f({
99
98
  }
100
99
  });
101
100
  export {
102
- y as DuxSelectCard
101
+ x as DuxSelectCard
103
102
  };
@@ -1,28 +1,28 @@
1
- import { defineComponent as m, createVNode as e } from "vue";
2
- import { useI18n as i } from "@duxweb/dvha-core";
3
- import { DuxDrawEmptyForm as n } from "../draw/drawEmptyForm.js";
4
- const s = /* @__PURE__ */ m({
1
+ import { defineComponent as o, createVNode as t } from "vue";
2
+ import { useI18n as l } from "@duxweb/dvha-core";
3
+ import { DuxDrawEmptyForm as r } from "../draw/drawEmptyForm.js";
4
+ const p = /* @__PURE__ */ o({
5
5
  name: "DuxListEmpty",
6
6
  props: {
7
7
  title: String,
8
8
  desc: String,
9
9
  bordered: Boolean
10
10
  },
11
- setup(t) {
11
+ setup(e) {
12
12
  const {
13
- t: l
14
- } = i();
15
- return () => e("div", {
13
+ t: s
14
+ } = l();
15
+ return () => t("div", {
16
16
  class: "flex flex-col items-center justify-center gap-2 h-full"
17
- }, [e(n, {
17
+ }, [t(r, {
18
18
  class: "max-h-120px"
19
- }, null), e("div", {
19
+ }, null), t("div", {
20
20
  class: "text-lg text-default font-bold"
21
- }, [(t == null ? void 0 : t.title) || l("pages.empty.title")]), e("div", {
21
+ }, [e?.title || s("pages.empty.title")]), t("div", {
22
22
  class: "text-muted"
23
- }, [(t == null ? void 0 : t.desc) || l("pages.empty.desc")])]);
23
+ }, [e?.desc || s("pages.empty.desc")])]);
24
24
  }
25
25
  });
26
26
  export {
27
- s as DuxListEmpty
27
+ p as DuxListEmpty
28
28
  };
@@ -6,6 +6,17 @@ import "vue-router";
6
6
  import "@overlastic/vue";
7
7
  import "clsx";
8
8
  import "vue-echarts";
9
+ import "vue3-ace-editor";
10
+ import "ace-builds/src-noconflict/mode-vue";
11
+ import "ace-builds/src-noconflict/mode-javascript";
12
+ import "ace-builds/src-noconflict/mode-html";
13
+ import "ace-builds/src-noconflict/mode-json";
14
+ import "ace-builds/src-noconflict/mode-json5";
15
+ import "ace-builds/src-noconflict/theme-tomorrow_night";
16
+ import "ace-builds/src-noconflict/theme-tomorrow";
17
+ import "ace-builds/src-noconflict/ext-searchbox";
18
+ import "ace-builds/src-noconflict/ext-language_tools";
19
+ import "ace-builds/src-noconflict/mode-snippets";
9
20
  import "vue-cropper";
10
21
  import "jinrishici";
11
22
  import "lodash-es";
@@ -26,23 +37,14 @@ import "vue-command-palette";
26
37
  import "@duxweb/dvha-naiveui";
27
38
  import "../../pages/page404.js";
28
39
  import "@iconify-json/tabler/icons.json";
40
+ import "../image/elements/index.js";
41
+ import "fabric";
29
42
  import "mime";
30
- import "vue3-ace-editor";
31
- import "ace-builds/src-noconflict/mode-vue";
32
- import "ace-builds/src-noconflict/mode-javascript";
33
- import "ace-builds/src-noconflict/mode-html";
34
- import "ace-builds/src-noconflict/mode-json";
35
- import "ace-builds/src-noconflict/mode-json5";
36
- import "ace-builds/src-noconflict/theme-tomorrow_night";
37
- import "ace-builds/src-noconflict/theme-tomorrow";
38
- import "ace-builds/src-noconflict/ext-searchbox";
39
- import "ace-builds/src-noconflict/ext-language_tools";
40
- import "ace-builds/src-noconflict/mode-snippets";
41
43
  import "dayjs";
42
44
  import "@tanstack/vue-query";
43
45
  import { useTable as y } from "../../hooks/table.js";
44
46
  import "pinia";
45
- const ft = /* @__PURE__ */ u({
47
+ const ct = /* @__PURE__ */ u({
46
48
  name: "DuxTable",
47
49
  props: {
48
50
  path: {
@@ -107,5 +109,5 @@ const ft = /* @__PURE__ */ u({
107
109
  }
108
110
  });
109
111
  export {
110
- ft as DuxTable
112
+ ct as DuxTable
111
113
  };
@@ -1,51 +1,51 @@
1
- import { defineComponent as n, computed as p, createVNode as a, mergeProps as b } from "vue";
2
- import { NDataTable as o } from "naive-ui";
3
- import { DuxTableLayout as d } from "../layout/table.js";
1
+ import { defineComponent as d, computed as m, createVNode as r, mergeProps as n } from "vue";
2
+ import { NDataTable as p } from "naive-ui";
3
+ import { DuxTableLayout as i } from "../layout/table.js";
4
4
  import "@duxweb/dvha-core";
5
5
  import "clsx";
6
- import { DuxListEmpty as u } from "../status/listEmpty.js";
7
- const y = /* @__PURE__ */ n({
6
+ import { DuxListEmpty as s } from "../status/listEmpty.js";
7
+ const P = /* @__PURE__ */ d({
8
8
  name: "DuxTablePage",
9
9
  props: {
10
10
  tableProps: {
11
11
  type: Object
12
12
  }
13
13
  },
14
- extends: d,
14
+ extends: i,
15
15
  slots: Object,
16
- setup(i, {
17
- slots: e
16
+ setup(a, {
17
+ slots: t
18
18
  }) {
19
- const m = p(() => {
19
+ const l = m(() => {
20
20
  const {
21
- tableProps: t,
22
- ...r
23
- } = i;
24
- return r;
21
+ tableProps: o,
22
+ ...e
23
+ } = a;
24
+ return e;
25
25
  });
26
- return () => a(d, m.value, {
27
- default: (t) => a(o, b(t.table.value, i.tableProps, {
26
+ return () => r(i, l.value, {
27
+ default: (o) => r(p, n(o.table.value, a.tableProps, {
28
28
  class: "h-full",
29
29
  minHeight: 200,
30
30
  tableLayout: "fixed",
31
31
  flexHeight: !0,
32
- rowKey: (r) => r.id,
32
+ rowKey: (e) => e.id,
33
33
  bordered: !1,
34
- scrollX: t.width,
35
- renderCell: (r) => r == null || r === "" ? "-" : r
34
+ scrollX: o.width,
35
+ renderCell: (e) => e == null || e === "" ? "-" : e
36
36
  }), {
37
- empty: () => a(u, {
37
+ empty: () => r(s, {
38
38
  bordered: !1
39
39
  }, null)
40
40
  }),
41
- bottom: e == null ? void 0 : e.bottom,
42
- tools: e == null ? void 0 : e.tools,
43
- actions: e == null ? void 0 : e.actions,
44
- sideLeft: e == null ? void 0 : e.sideLeft,
45
- sideRight: e == null ? void 0 : e.sideRight
41
+ bottom: t?.bottom,
42
+ tools: t?.tools,
43
+ actions: t?.actions,
44
+ sideLeft: t?.sideLeft,
45
+ sideRight: t?.sideRight
46
46
  });
47
47
  }
48
48
  });
49
49
  export {
50
- y as DuxTablePage
50
+ P as DuxTablePage
51
51
  };