@duxweb/dvha-pro 1.0.32 → 1.0.34

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 (148) hide show
  1. package/dist/cjs/component.cjs +1 -1
  2. package/dist/cjs/components/chart/echart.cjs +1 -1
  3. package/dist/cjs/components/crop/imageCrop.cjs +1 -1
  4. package/dist/cjs/components/data/dynamicSelect.cjs +1 -1
  5. package/dist/cjs/components/data/selectModal.cjs +1 -1
  6. package/dist/cjs/components/designEditor/components/grid.cjs +1 -1
  7. package/dist/cjs/components/designEditor/editor/hook.cjs +1 -1
  8. package/dist/cjs/components/designEditor/editor/setting.cjs +1 -1
  9. package/dist/cjs/components/designEditor/editor.cjs +1 -1
  10. package/dist/cjs/components/form/drawerForm.cjs +1 -1
  11. package/dist/cjs/components/form/modalForm.cjs +1 -1
  12. package/dist/cjs/components/form/pageForm.cjs +1 -1
  13. package/dist/cjs/components/form/pageTabForm.cjs +1 -1
  14. package/dist/cjs/components/form/settingForm.cjs +1 -1
  15. package/dist/cjs/components/formEditor/base/base.cjs +1 -1
  16. package/dist/cjs/components/formEditor/base/setting.cjs +1 -1
  17. package/dist/cjs/components/formEditor/components/cascader.cjs +1 -1
  18. package/dist/cjs/components/formEditor/components/cascaderAsync.cjs +1 -1
  19. package/dist/cjs/components/formEditor/components/checkbox.cjs +1 -1
  20. package/dist/cjs/components/formEditor/components/color.cjs +1 -1
  21. package/dist/cjs/components/formEditor/components/date.cjs +1 -1
  22. package/dist/cjs/components/formEditor/components/dynamicInput.cjs +1 -1
  23. package/dist/cjs/components/formEditor/components/dynamicTags.cjs +1 -1
  24. package/dist/cjs/components/formEditor/components/editor.cjs +1 -1
  25. package/dist/cjs/components/formEditor/components/fileUpload.cjs +1 -0
  26. package/dist/cjs/components/formEditor/components/imageUpload.cjs +1 -0
  27. package/dist/cjs/components/formEditor/components/input.cjs +1 -1
  28. package/dist/cjs/components/formEditor/components/inputNumber.cjs +1 -1
  29. package/dist/cjs/components/formEditor/components/mentionAsync.cjs +1 -1
  30. package/dist/cjs/components/formEditor/components/radio.cjs +1 -1
  31. package/dist/cjs/components/formEditor/components/region.cjs +1 -1
  32. package/dist/cjs/components/formEditor/components/select.cjs +1 -1
  33. package/dist/cjs/components/formEditor/components/selectAsync.cjs +1 -1
  34. package/dist/cjs/components/formEditor/components/sider.cjs +1 -1
  35. package/dist/cjs/components/formEditor/components/switch.cjs +1 -1
  36. package/dist/cjs/components/formEditor/components/time.cjs +1 -1
  37. package/dist/cjs/components/formEditor/components/transferAsync.cjs +1 -1
  38. package/dist/cjs/components/formEditor/components/treeSelect.cjs +1 -1
  39. package/dist/cjs/components/formEditor/components/treeSelectAsync.cjs +1 -1
  40. package/dist/cjs/components/formEditor/editor.cjs +1 -1
  41. package/dist/cjs/components/formEditor/renderer.cjs +1 -1
  42. package/dist/cjs/components/icon/icon.cjs +1 -1
  43. package/dist/cjs/components/layout/list.cjs +1 -1
  44. package/dist/cjs/components/layout/table.cjs +1 -1
  45. package/dist/cjs/components/level/level.cjs +1 -1
  46. package/dist/cjs/components/posterEditor/pages/RightPanel.cjs +1 -1
  47. package/dist/cjs/components/posterEditor/posterEditor.cjs +1 -1
  48. package/dist/cjs/components/table/table.cjs +1 -1
  49. package/dist/cjs/components/upload/file.cjs +1 -1
  50. package/dist/cjs/components/upload/image.cjs +1 -1
  51. package/dist/cjs/components/upload/manage/item.cjs +1 -1
  52. package/dist/cjs/components/upload/manager.cjs +1 -1
  53. package/dist/cjs/config/echart.cjs +1 -1
  54. package/dist/cjs/hooks/dialog.cjs +1 -1
  55. package/dist/cjs/hooks/drawer.cjs +1 -1
  56. package/dist/cjs/hooks/modal.cjs +1 -1
  57. package/dist/cjs/hooks/table/image.cjs +1 -1
  58. package/dist/cjs/hooks/table/media.cjs +1 -1
  59. package/dist/cjs/langs/en-US.json.cjs +1 -1
  60. package/dist/cjs/langs/zh-CN.json.cjs +1 -1
  61. package/dist/cjs/pages/authLayout.cjs +1 -1
  62. package/dist/cjs/pages/layout/global.cjs +1 -1
  63. package/dist/cjs/pages/layout/page.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/menu/main.cjs +1 -1
  69. package/dist/cjs/pages/menu/mobile.cjs +1 -1
  70. package/dist/cjs/pages/page404.cjs +1 -1
  71. package/dist/cjs/pages/pageStatus.cjs +1 -1
  72. package/dist/cjs/theme/uno.css.cjs +2 -1
  73. package/dist/esm/component.js +11 -11
  74. package/dist/esm/components/chart/echart.js +17 -3
  75. package/dist/esm/components/crop/imageCrop.js +27 -13
  76. package/dist/esm/components/data/dynamicSelect.js +34 -20
  77. package/dist/esm/components/data/selectModal.js +42 -28
  78. package/dist/esm/components/designEditor/components/grid.js +40 -26
  79. package/dist/esm/components/designEditor/editor/hook.js +17 -17
  80. package/dist/esm/components/designEditor/editor/setting.js +36 -22
  81. package/dist/esm/components/designEditor/editor.js +6 -6
  82. package/dist/esm/components/form/drawerForm.js +32 -18
  83. package/dist/esm/components/form/modalForm.js +31 -17
  84. package/dist/esm/components/form/pageForm.js +41 -27
  85. package/dist/esm/components/form/pageTabForm.js +31 -17
  86. package/dist/esm/components/form/settingForm.js +33 -19
  87. package/dist/esm/components/formEditor/base/base.js +30 -16
  88. package/dist/esm/components/formEditor/base/setting.js +21 -7
  89. package/dist/esm/components/formEditor/components/cascader.js +66 -52
  90. package/dist/esm/components/formEditor/components/cascaderAsync.js +96 -82
  91. package/dist/esm/components/formEditor/components/checkbox.js +44 -30
  92. package/dist/esm/components/formEditor/components/color.js +35 -21
  93. package/dist/esm/components/formEditor/components/date.js +52 -38
  94. package/dist/esm/components/formEditor/components/dynamicInput.js +43 -29
  95. package/dist/esm/components/formEditor/components/dynamicTags.js +40 -26
  96. package/dist/esm/components/formEditor/components/editor.js +24 -10
  97. package/dist/esm/components/formEditor/components/fileUpload.js +191 -0
  98. package/dist/esm/components/formEditor/components/imageUpload.js +182 -0
  99. package/dist/esm/components/formEditor/components/input.js +67 -53
  100. package/dist/esm/components/formEditor/components/inputNumber.js +38 -24
  101. package/dist/esm/components/formEditor/components/mentionAsync.js +61 -47
  102. package/dist/esm/components/formEditor/components/radio.js +29 -15
  103. package/dist/esm/components/formEditor/components/region.js +38 -24
  104. package/dist/esm/components/formEditor/components/select.js +17 -3
  105. package/dist/esm/components/formEditor/components/selectAsync.js +73 -59
  106. package/dist/esm/components/formEditor/components/sider.js +41 -27
  107. package/dist/esm/components/formEditor/components/switch.js +34 -20
  108. package/dist/esm/components/formEditor/components/time.js +61 -47
  109. package/dist/esm/components/formEditor/components/transferAsync.js +50 -36
  110. package/dist/esm/components/formEditor/components/treeSelect.js +55 -41
  111. package/dist/esm/components/formEditor/components/treeSelectAsync.js +75 -61
  112. package/dist/esm/components/formEditor/editor.js +40 -24
  113. package/dist/esm/components/formEditor/renderer.js +57 -41
  114. package/dist/esm/components/icon/icon.js +24 -10
  115. package/dist/esm/components/layout/list.js +70 -56
  116. package/dist/esm/components/layout/table.js +38 -24
  117. package/dist/esm/components/level/level.js +38 -24
  118. package/dist/esm/components/posterEditor/pages/RightPanel.js +46 -32
  119. package/dist/esm/components/posterEditor/posterEditor.js +26 -12
  120. package/dist/esm/components/table/table.js +22 -8
  121. package/dist/esm/components/upload/file.js +17 -3
  122. package/dist/esm/components/upload/image.js +44 -30
  123. package/dist/esm/components/upload/manage/item.js +27 -13
  124. package/dist/esm/components/upload/manager.js +18 -4
  125. package/dist/esm/config/echart.js +1 -1
  126. package/dist/esm/hooks/dialog.js +16 -2
  127. package/dist/esm/hooks/drawer.js +16 -2
  128. package/dist/esm/hooks/modal.js +16 -2
  129. package/dist/esm/hooks/table/image.js +20 -6
  130. package/dist/esm/hooks/table/media.js +20 -6
  131. package/dist/esm/langs/en-US.json.js +5 -5
  132. package/dist/esm/langs/zh-CN.json.js +6 -6
  133. package/dist/esm/pages/authLayout.js +1 -1
  134. package/dist/esm/pages/layout/global.js +52 -37
  135. package/dist/esm/pages/layout/page.js +27 -13
  136. package/dist/esm/pages/login.js +33 -19
  137. package/dist/esm/pages/menu/avatar.js +46 -32
  138. package/dist/esm/pages/menu/button.js +23 -9
  139. package/dist/esm/pages/menu/cmd.js +52 -38
  140. package/dist/esm/pages/menu/main.js +43 -29
  141. package/dist/esm/pages/menu/mobile.js +17 -3
  142. package/dist/esm/pages/page404.js +14 -0
  143. package/dist/esm/pages/pageStatus.js +18 -4
  144. package/dist/esm/theme/uno.css.js +2 -1
  145. package/dist/types/components/formEditor/components/fileUpload.d.ts +2 -0
  146. package/dist/types/components/formEditor/components/imageUpload.d.ts +2 -0
  147. package/dist/types/components/formEditor/components/index.d.ts +4 -2
  148. package/package.json +5 -3
@@ -1,9 +1,9 @@
1
- import { defineComponent as M, ref as c, watch as s, computed as w, createVNode as t, Fragment as V, createTextVNode as B } from "vue";
1
+ import { defineComponent as M, ref as p, watch as m, computed as w, createVNode as t, Fragment as V, createTextVNode as B } from "vue";
2
2
  import { useRouteStore as D, useTheme as T, useI18n as K } from "@duxweb/dvha-core";
3
3
  import { useMagicKeys as R, watchThrottled as j } from "@vueuse/core";
4
4
  import { cloneDeep as E } from "lodash-es";
5
5
  import { NTag as k, NButton as G } from "naive-ui";
6
- import { Command as o } from "vue-command-palette";
6
+ import { Command as l } from "vue-command-palette";
7
7
  import { useRouter as L } from "vue-router";
8
8
  import "@overlastic/vue";
9
9
  import "clsx";
@@ -25,6 +25,20 @@ import "vue-draggable-plus";
25
25
  import "@vee-validate/i18n";
26
26
  import "colorizr";
27
27
  import "echarts";
28
+ import "highlight.js/lib/core";
29
+ import "highlight.js/lib/languages/bash";
30
+ import "highlight.js/lib/languages/css";
31
+ import "highlight.js/lib/languages/go";
32
+ import "highlight.js/lib/languages/java";
33
+ import "highlight.js/lib/languages/javascript";
34
+ import "highlight.js/lib/languages/json";
35
+ import "highlight.js/lib/languages/markdown";
36
+ import "highlight.js/lib/languages/php";
37
+ import "highlight.js/lib/languages/python";
38
+ import "highlight.js/lib/languages/shell";
39
+ import "highlight.js/lib/languages/sql";
40
+ import "highlight.js/lib/languages/typescript";
41
+ import "highlight.js/lib/languages/xml";
28
42
  import "@ant-design/colors";
29
43
  import "@unocss/preset-icons/browser";
30
44
  import "@unocss/preset-typography";
@@ -36,54 +50,54 @@ import "@duxweb/dvha-naiveui";
36
50
  import "../page404.js";
37
51
  import "short-unique-id";
38
52
  import "aieditor";
53
+ import "mime";
39
54
  import "@iconify-json/tabler/icons.json";
40
55
  import "../../components/posterEditor/elements/index.js";
41
56
  import "fabric";
42
- import "mime";
43
57
  import "dayjs";
44
58
  import "@tanstack/vue-query";
45
59
  import { useUI as q } from "../../hooks/ui.js";
46
- const De = /* @__PURE__ */ M({
60
+ const Je = /* @__PURE__ */ M({
47
61
  name: "DuxMenuCmd",
48
62
  setup() {
49
63
  const {
50
64
  cmdVisible: h,
51
- setCmdVisible: m
52
- } = q(), p = R(), y = p["Meta+K"], u = c(), a = c([]), S = L(), i = D(), {
65
+ setCmdVisible: s
66
+ } = q(), c = R(), y = c["Meta+K"], u = p(), i = p([]), S = L(), a = D(), {
53
67
  setMode: v
54
- } = T(), n = c(""), {
55
- t: r
56
- } = K(), b = c(), g = (e) => {
57
- const l = i.routes.filter((I) => I.parent === e);
58
- u.value = e, a.value = l;
68
+ } = T(), n = p(""), {
69
+ t: o
70
+ } = K(), b = p(), g = (e) => {
71
+ const r = a.routes.filter((I) => I.parent === e);
72
+ u.value = e, i.value = r;
59
73
  }, C = () => {
60
- m(!0);
74
+ s(!0);
61
75
  }, N = () => {
62
- m(!1);
76
+ s(!1);
63
77
  }, z = (e) => {
64
- e ? a.value = [...E(i.routes).filter((l) => l.label?.includes(e))] : a.value = i.routes.filter((l) => !l.parent);
78
+ e ? i.value = [...E(a.routes).filter((r) => r.label?.includes(e))] : i.value = a.routes.filter((r) => !r.parent);
65
79
  };
66
- s(h, (e) => {
67
- e ? a.value = i.routes.filter((l) => !l.parent) : a.value = i.routes.filter((l) => !l.parent);
80
+ m(h, (e) => {
81
+ e ? i.value = a.routes.filter((r) => !r.parent) : i.value = a.routes.filter((r) => !r.parent);
68
82
  }), j(n, () => {
69
83
  z(n.value);
70
84
  }, {
71
85
  throttle: 500
72
86
  });
73
87
  const x = () => {
74
- const e = i.routes.find((l) => l.name === u.value);
88
+ const e = a.routes.find((r) => r.name === u.value);
75
89
  g(e?.parent);
76
90
  };
77
- s(y, (e) => {
91
+ m(y, (e) => {
78
92
  e && C();
79
- }), s(p.Escape, (e) => {
80
- e && m(!1);
81
- }), s(p.Backspace, (e) => {
93
+ }), m(c.Escape, (e) => {
94
+ e && s(!1);
95
+ }), m(c.Backspace, (e) => {
82
96
  e && n.value === "" && u.value && x();
83
- }), s(b, (e) => {
97
+ }), m(b, (e) => {
84
98
  e && e.focus();
85
99
  });
86
- const d = w(() => a.value.filter((e) => e.hidden === void 0 || e.hidden === !1)), f = (e) => t(o.Item, {
100
+ const d = w(() => i.value.filter((e) => e.hidden === void 0 || e.hidden === !1)), f = (e) => t(l.Item, {
87
101
  onSelect: e?.onSelect
88
102
  }, {
89
103
  default: () => [t("div", {
@@ -98,7 +112,7 @@ const De = /* @__PURE__ */ M({
98
112
  default: () => [e?.keyName]
99
113
  })])])]
100
114
  });
101
- return () => t(o.Dialog, {
115
+ return () => t(l.Dialog, {
102
116
  visible: h.value,
103
117
  theme: "command-palette"
104
118
  }, {
@@ -106,7 +120,7 @@ const De = /* @__PURE__ */ M({
106
120
  class: "relative"
107
121
  }, [t("input", {
108
122
  ref: b,
109
- placeholder: r("common.search"),
123
+ placeholder: o("common.search"),
110
124
  onInput: (e) => {
111
125
  n.value = e.target.value;
112
126
  },
@@ -126,7 +140,7 @@ const De = /* @__PURE__ */ M({
126
140
  quaternary: !0,
127
141
  circle: !0,
128
142
  size: "small",
129
- onClick: () => m(!1)
143
+ onClick: () => s(!1)
130
144
  }, {
131
145
  icon: () => t("div", {
132
146
  class: "i-tabler:x size-5",
@@ -135,12 +149,12 @@ const De = /* @__PURE__ */ M({
135
149
  })])]),
136
150
  body: () => t(V, null, [d.value.length === 0 && n.value && t("div", {
137
151
  class: "flex items-center justify-center h-20 border-t border-muted"
138
- }, [r("common.empty")]), d.value.length > 0 && t(o.List, null, {
139
- default: () => [t(o.Group, {
140
- heading: r("common.menu")
152
+ }, [o("common.empty")]), d.value.length > 0 && t(l.List, null, {
153
+ default: () => [t(l.Group, {
154
+ heading: o("common.menu")
141
155
  }, {
142
- default: () => [d.value?.map((e, l) => t(o.Item, {
143
- key: l,
156
+ default: () => [d.value?.map((e, r) => t(l.Item, {
157
+ key: r,
144
158
  onSelect: () => {
145
159
  e.path ? (S.push(e.path), N()) : g(e.name);
146
160
  }
@@ -149,23 +163,23 @@ const De = /* @__PURE__ */ M({
149
163
  class: e.path ? "i-tabler:link" : "i-tabler:folder"
150
164
  }, null), e.label]
151
165
  }))]
152
- }), t(o.Separator, null, null), u.value ? t(f, {
166
+ }), t(l.Separator, null, null), u.value ? t(f, {
153
167
  icon: "i-tabler:arrow-left",
154
- label: r("common.back"),
168
+ label: o("common.back"),
155
169
  onSelect: x,
156
170
  keyName: "Backspace"
157
- }, null) : t(o.Group, {
158
- heading: r("common.theme")
171
+ }, null) : t(l.Group, {
172
+ heading: o("common.theme")
159
173
  }, {
160
174
  default: () => [t(f, {
161
175
  icon: "i-tabler:moon",
162
- label: r("common.dark"),
176
+ label: o("common.dark"),
163
177
  onSelect: () => {
164
178
  v("dark");
165
179
  }
166
180
  }, null), t(f, {
167
181
  icon: "i-tabler:sun",
168
- label: r("common.light"),
182
+ label: o("common.light"),
169
183
  onSelect: () => {
170
184
  v("light");
171
185
  }
@@ -176,5 +190,5 @@ const De = /* @__PURE__ */ M({
176
190
  }
177
191
  });
178
192
  export {
179
- De as DuxMenuCmd
193
+ Je as DuxMenuCmd
180
194
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as c, createVNode as e, createTextVNode as l } from "vue";
1
+ import { defineComponent as c, createVNode as o, createTextVNode as r } from "vue";
2
2
  import { useManage as f, useI18n as v, DuxLogoIcon as x } from "@duxweb/dvha-core";
3
3
  import { useNaiveMenu as g } from "@duxweb/dvha-naiveui";
4
- import { NTag as r, NScrollbar as h, NMenu as b } from "naive-ui";
4
+ import { NTag as l, NScrollbar as h, NMenu as b } from "naive-ui";
5
5
  import "vue-router";
6
6
  import "@overlastic/vue";
7
7
  import "clsx";
@@ -25,6 +25,20 @@ import "vue-draggable-plus";
25
25
  import "@vee-validate/i18n";
26
26
  import "colorizr";
27
27
  import "echarts";
28
+ import "highlight.js/lib/core";
29
+ import "highlight.js/lib/languages/bash";
30
+ import "highlight.js/lib/languages/css";
31
+ import "highlight.js/lib/languages/go";
32
+ import "highlight.js/lib/languages/java";
33
+ import "highlight.js/lib/languages/javascript";
34
+ import "highlight.js/lib/languages/json";
35
+ import "highlight.js/lib/languages/markdown";
36
+ import "highlight.js/lib/languages/php";
37
+ import "highlight.js/lib/languages/python";
38
+ import "highlight.js/lib/languages/shell";
39
+ import "highlight.js/lib/languages/sql";
40
+ import "highlight.js/lib/languages/typescript";
41
+ import "highlight.js/lib/languages/xml";
28
42
  import "@ant-design/colors";
29
43
  import "@unocss/preset-icons/browser";
30
44
  import "@unocss/preset-typography";
@@ -38,14 +52,14 @@ import "vue-command-palette";
38
52
  import "../page404.js";
39
53
  import "short-unique-id";
40
54
  import "aieditor";
55
+ import "mime";
41
56
  import "@iconify-json/tabler/icons.json";
42
57
  import "../../components/posterEditor/elements/index.js";
43
58
  import "fabric";
44
- import "mime";
45
59
  import "dayjs";
46
60
  import "@tanstack/vue-query";
47
61
  import { useUI as y } from "../../hooks/ui.js";
48
- const ve = /* @__PURE__ */ c({
62
+ const Bo = /* @__PURE__ */ c({
49
63
  name: "DuxMenuMain",
50
64
  props: {
51
65
  collapsed: {
@@ -53,7 +67,7 @@ const ve = /* @__PURE__ */ c({
53
67
  default: !1
54
68
  }
55
69
  },
56
- setup(o) {
70
+ setup(e) {
57
71
  const {
58
72
  options: m,
59
73
  active: a
@@ -67,53 +81,53 @@ const ve = /* @__PURE__ */ c({
67
81
  } = f(), {
68
82
  t: u
69
83
  } = v();
70
- return () => e("div", {
84
+ return () => o("div", {
71
85
  class: "flex flex-col h-screen px-1"
72
- }, [e("div", {
86
+ }, [o("div", {
73
87
  class: "h-13 px-2 hidden lg:flex justify-center items-center"
74
- }, [e(p, {
88
+ }, [o(p, {
75
89
  onClick: () => d(!t.value),
76
- collapsed: o.collapsed
90
+ collapsed: e.collapsed
77
91
  }, {
78
- icon: () => e("div", {
92
+ icon: () => o("div", {
79
93
  class: "bg-white dark:bg-primary-950 rounded-full p-2 shadow group-hover:shadow-lg"
80
- }, [e(x, {
94
+ }, [o(x, {
81
95
  highlight: "fill-primary",
82
96
  class: "size-4"
83
97
  }, null)]),
84
- default: () => e("div", null, [n.title])
85
- })]), e("div", {
98
+ default: () => o("div", null, [n.title])
99
+ })]), o("div", {
86
100
  class: "px-2 py-1 hidden lg:block"
87
- }, [e(p, {
88
- collapsed: o.collapsed,
101
+ }, [o(p, {
102
+ collapsed: e.collapsed,
89
103
  inverted: !0,
90
104
  class: "relative py-1.5 px-3",
91
105
  onClick: () => s(!0)
92
106
  }, {
93
- icon: () => e("div", {
107
+ icon: () => o("div", {
94
108
  class: "i-tabler:search size-4 icon-gradient"
95
109
  }, null),
96
- default: () => e("div", {
110
+ default: () => o("div", {
97
111
  class: "text-muted text-sm"
98
- }, [u("common.search"), !t.value && e("div", {
112
+ }, [u("common.search"), !t.value && o("div", {
99
113
  class: "flex items-center gap-1 absolute right-2.5 top-1.3"
100
- }, [e(r, {
114
+ }, [o(l, {
101
115
  size: "small",
102
116
  bordered: !1,
103
117
  type: "primary"
104
118
  }, {
105
- default: () => [l("⌘")]
106
- }), e(r, {
119
+ default: () => [r("⌘")]
120
+ }), o(l, {
107
121
  size: "small",
108
122
  bordered: !1,
109
123
  type: "primary"
110
124
  }, {
111
- default: () => [l("K")]
125
+ default: () => [r("K")]
112
126
  })])])
113
- })]), e("div", {
127
+ })]), o("div", {
114
128
  class: ["flex-1 min-h-0", i.value ? "border-t border-muted" : ""]
115
- }, [e(h, null, {
116
- default: () => [e(b, {
129
+ }, [o(h, null, {
130
+ default: () => [o(b, {
117
131
  options: m.value,
118
132
  value: a.value,
119
133
  collapsed: t.value && !i.value,
@@ -121,13 +135,13 @@ const ve = /* @__PURE__ */ c({
121
135
  collapsedWidth: 60,
122
136
  collapsedIconSize: 20
123
137
  }, null)]
124
- })]), e("div", {
138
+ })]), o("div", {
125
139
  class: "flex-none hidden lg:flex flex-col items-center gap-2 p-2 border-t border-muted/50"
126
- }, [e(M, {
127
- collapsed: o.collapsed
140
+ }, [o(M, {
141
+ collapsed: e.collapsed
128
142
  }, null)])]);
129
143
  }
130
144
  });
131
145
  export {
132
- ve as DuxMenuMain
146
+ Bo as DuxMenuMain
133
147
  };
@@ -24,6 +24,20 @@ import "vue-draggable-plus";
24
24
  import "@vee-validate/i18n";
25
25
  import "colorizr";
26
26
  import "echarts";
27
+ import "highlight.js/lib/core";
28
+ import "highlight.js/lib/languages/bash";
29
+ import "highlight.js/lib/languages/css";
30
+ import "highlight.js/lib/languages/go";
31
+ import "highlight.js/lib/languages/java";
32
+ import "highlight.js/lib/languages/javascript";
33
+ import "highlight.js/lib/languages/json";
34
+ import "highlight.js/lib/languages/markdown";
35
+ import "highlight.js/lib/languages/php";
36
+ import "highlight.js/lib/languages/python";
37
+ import "highlight.js/lib/languages/shell";
38
+ import "highlight.js/lib/languages/sql";
39
+ import "highlight.js/lib/languages/typescript";
40
+ import "highlight.js/lib/languages/xml";
27
41
  import "@ant-design/colors";
28
42
  import "@unocss/preset-icons/browser";
29
43
  import "@unocss/preset-typography";
@@ -37,14 +51,14 @@ import "@duxweb/dvha-naiveui";
37
51
  import "../page404.js";
38
52
  import "short-unique-id";
39
53
  import "aieditor";
54
+ import "mime";
40
55
  import "@iconify-json/tabler/icons.json";
41
56
  import "../../components/posterEditor/elements/index.js";
42
57
  import "fabric";
43
- import "mime";
44
58
  import "dayjs";
45
59
  import "@tanstack/vue-query";
46
60
  import { useUI as e } from "../../hooks/ui.js";
47
- const oo = /* @__PURE__ */ p({
61
+ const co = /* @__PURE__ */ p({
48
62
  name: "DuxMobileMenu",
49
63
  props: {},
50
64
  setup(l) {
@@ -64,5 +78,5 @@ const oo = /* @__PURE__ */ p({
64
78
  }
65
79
  });
66
80
  export {
67
- oo as DuxMobileMenu
81
+ co as DuxMobileMenu
68
82
  };
@@ -30,6 +30,20 @@ import { DuxDrawEmpty as f } from "../components/draw/drawEmpty.js";
30
30
  import "@vee-validate/i18n";
31
31
  import "colorizr";
32
32
  import "echarts";
33
+ import "highlight.js/lib/core";
34
+ import "highlight.js/lib/languages/bash";
35
+ import "highlight.js/lib/languages/css";
36
+ import "highlight.js/lib/languages/go";
37
+ import "highlight.js/lib/languages/java";
38
+ import "highlight.js/lib/languages/javascript";
39
+ import "highlight.js/lib/languages/json";
40
+ import "highlight.js/lib/languages/markdown";
41
+ import "highlight.js/lib/languages/php";
42
+ import "highlight.js/lib/languages/python";
43
+ import "highlight.js/lib/languages/shell";
44
+ import "highlight.js/lib/languages/sql";
45
+ import "highlight.js/lib/languages/typescript";
46
+ import "highlight.js/lib/languages/xml";
33
47
  import "@ant-design/colors";
34
48
  import "@unocss/preset-icons/browser";
35
49
  import "@unocss/preset-typography";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, createVNode as t } from "vue";
2
- import { DuxCard as e } from "../components/card/card.js";
2
+ import { DuxCard as m } from "../components/card/card.js";
3
3
  import "clsx";
4
4
  import "naive-ui";
5
5
  import "vue-echarts";
@@ -30,6 +30,20 @@ import "vue-draggable-plus";
30
30
  import "@vee-validate/i18n";
31
31
  import "colorizr";
32
32
  import "echarts";
33
+ import "highlight.js/lib/core";
34
+ import "highlight.js/lib/languages/bash";
35
+ import "highlight.js/lib/languages/css";
36
+ import "highlight.js/lib/languages/go";
37
+ import "highlight.js/lib/languages/java";
38
+ import "highlight.js/lib/languages/javascript";
39
+ import "highlight.js/lib/languages/json";
40
+ import "highlight.js/lib/languages/markdown";
41
+ import "highlight.js/lib/languages/php";
42
+ import "highlight.js/lib/languages/python";
43
+ import "highlight.js/lib/languages/shell";
44
+ import "highlight.js/lib/languages/sql";
45
+ import "highlight.js/lib/languages/typescript";
46
+ import "highlight.js/lib/languages/xml";
33
47
  import "@ant-design/colors";
34
48
  import "@unocss/preset-icons/browser";
35
49
  import "@unocss/preset-typography";
@@ -44,7 +58,7 @@ import "aieditor";
44
58
  import "@iconify-json/tabler/icons.json";
45
59
  import "../components/posterEditor/elements/index.js";
46
60
  import "fabric";
47
- const Z = /* @__PURE__ */ o({
61
+ const ct = /* @__PURE__ */ o({
48
62
  name: "DuxPageStatus",
49
63
  props: {
50
64
  title: String,
@@ -57,7 +71,7 @@ const Z = /* @__PURE__ */ o({
57
71
  setup(r, {
58
72
  slots: i
59
73
  }) {
60
- return () => t(e, {
74
+ return () => t(m, {
61
75
  class: "size-full flex items-center justify-center",
62
76
  bordered: r.bordered
63
77
  }, {
@@ -78,5 +92,5 @@ const Z = /* @__PURE__ */ o({
78
92
  }
79
93
  });
80
94
  export {
81
- Z as DuxPageStatus
95
+ ct as DuxPageStatus
82
96
  };
@@ -1,5 +1,5 @@
1
1
  const r = `/* layer: properties */
2
- @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*, ::before, ::after, ::backdrop{--un-text-opacity:100%;--un-bg-opacity:100%;--un-from-opacity:100%;--un-divide-y-reverse:initial;--un-border-style:solid;--un-shadow-opacity:100%;--un-divide-x-reverse:initial;--un-divide-opacity:100%;--un-border-opacity:100%;--un-ease:initial;--un-translate-x:initial;--un-translate-y:initial;--un-translate-z:initial;--un-to-opacity:100%;--un-outline-style:solid;--un-fill-opacity:100%;}}
2
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*, ::before, ::after, ::backdrop{--un-text-opacity:100%;--un-bg-opacity:100%;--un-from-opacity:100%;--un-divide-y-reverse:initial;--un-border-style:solid;--un-divide-x-reverse:initial;--un-divide-opacity:100%;--un-shadow-opacity:100%;--un-border-opacity:100%;--un-ease:initial;--un-translate-x:initial;--un-translate-y:initial;--un-translate-z:initial;--un-to-opacity:100%;--un-outline-style:solid;--un-fill-opacity:100%;}}
3
3
  @property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
4
4
  @property --un-outline-style{syntax:"*";inherits:false;initial-value:solid;}
5
5
  @property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%;}
@@ -950,6 +950,7 @@ input:where([type='button'], [type='reset'], [type='submit']),
950
950
  .i-tabler\\:eye{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M10 12a2 2 0 1 0 4 0a2 2 0 0 0-4 0'/%3E%3Cpath d='M21 12q-3.6 6-9 6t-9-6q3.6-6 9-6t9 6'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;}
951
951
  .i-tabler\\:eye-off{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M10.585 10.587a2 2 0 0 0 2.829 2.828'/%3E%3Cpath d='M16.681 16.673A8.7 8.7 0 0 1 12 18q-5.4 0-9-6q1.908-3.18 4.32-4.674m2.86-1.146A9 9 0 0 1 12 6q5.4 0 9 6q-1 1.665-2.138 2.87M3 3l18 18'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;}
952
952
  .i-tabler\\:file-export{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M14 3v4a1 1 0 0 0 1 1h4'/%3E%3Cpath d='M11.5 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v5m-5 6h7m-3-3l3 3l-3 3'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;}
953
+ .i-tabler\\:file-upload{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M14 3v4a1 1 0 0 0 1 1h4'/%3E%3Cpath d='M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2m-5-10v6'/%3E%3Cpath d='M9.5 13.5L12 11l2.5 2.5'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;}
953
954
  .i-tabler\\:folder{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;}
954
955
  .i-tabler\\:forms{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3M6 3a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3m7-14h7a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-7M5 7H4a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h1m12-5h.01M13 12h.01'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;}
955
956
  .i-tabler\\:grid-4x4{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 6h18M3 12h18M3 18h18M6 3v18m6-18v18m6-18v18'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;}
@@ -0,0 +1,2 @@
1
+ import type { PageEditorComponent } from '../../designEditor';
2
+ export declare function duxFormEditorFileUpload(t: any): PageEditorComponent;
@@ -0,0 +1,2 @@
1
+ import type { PageEditorComponent } from '../../designEditor';
2
+ export declare function duxFormEditorImageUpload(t: any): PageEditorComponent;
@@ -6,16 +6,18 @@ export * from './date';
6
6
  export * from './dynamicInput';
7
7
  export * from './dynamicTags';
8
8
  export * from './editor';
9
+ export * from './fileUpload';
10
+ export * from './imageUpload';
9
11
  export * from './input';
10
12
  export * from './inputNumber';
11
13
  export * from './mentionAsync';
12
14
  export * from './radio';
13
15
  export * from './region';
16
+ export * from './select';
17
+ export * from './selectAsync';
14
18
  export * from './sider';
15
19
  export * from './switch';
16
20
  export * from './time';
17
21
  export * from './transferAsync';
18
22
  export * from './treeSelect';
19
23
  export * from './treeSelectAsync';
20
- export * from './select';
21
- export * from './selectAsync';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@duxweb/dvha-pro",
3
3
  "type": "module",
4
- "version": "1.0.32",
4
+ "version": "1.0.34",
5
5
  "author": "DuxWeb",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -33,8 +33,8 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@ant-design/colors": "^7.2.1",
36
- "@duxweb/dvha-core": "^1.0.32",
37
- "@duxweb/dvha-naiveui": "^1.0.32",
36
+ "@duxweb/dvha-core": "^1.0.34",
37
+ "@duxweb/dvha-naiveui": "^1.0.34",
38
38
  "@iconify-json/tabler": "^1.2.18",
39
39
  "@overlastic/vue": "^0.8.1",
40
40
  "@tanstack/vue-query": "^5.80.7",
@@ -43,6 +43,7 @@
43
43
  "@unocss/runtime": "^66.2.1",
44
44
  "@vee-validate/i18n": "^4.15.1",
45
45
  "@vee-validate/rules": "^4.15.1",
46
+ "@visactor/vchart": "^2.0.0",
46
47
  "@vueuse/core": "^13.3.0",
47
48
  "@vueuse/integrations": "^13.3.0",
48
49
  "ace-builds": "^1.43.0",
@@ -52,6 +53,7 @@
52
53
  "dayjs": "^1.11.13",
53
54
  "echarts": "^5.6.0",
54
55
  "fabric": "^6.7.0",
56
+ "highlight.js": "^11.11.1",
55
57
  "jinrishici": "^1.0.6",
56
58
  "jsep": "^1.4.0",
57
59
  "konva": "^9.3.20",