@duxweb/dvha-pro 1.1.14 → 1.1.16

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 (160) hide show
  1. package/dist/cjs/components/card/card.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/setting.cjs +1 -1
  8. package/dist/cjs/components/editor/aiEditor.cjs +3 -1
  9. package/dist/cjs/components/flowEditor/components/setting.cjs +1 -1
  10. package/dist/cjs/components/flowEditor/nodes/endNode.cjs +1 -1
  11. package/dist/cjs/components/flowEditor/nodes/index.cjs +1 -1
  12. package/dist/cjs/components/flowEditor/nodes/processNode.cjs +1 -1
  13. package/dist/cjs/components/flowEditor/nodes/startNode.cjs +1 -1
  14. package/dist/cjs/components/form/drawerForm.cjs +1 -1
  15. package/dist/cjs/components/form/modalForm.cjs +1 -1
  16. package/dist/cjs/components/form/pageForm.cjs +1 -1
  17. package/dist/cjs/components/form/pageTabForm.cjs +1 -1
  18. package/dist/cjs/components/form/settingForm.cjs +1 -1
  19. package/dist/cjs/components/formEditor/base/base.cjs +1 -1
  20. package/dist/cjs/components/formEditor/base/setting.cjs +1 -1
  21. package/dist/cjs/components/formEditor/components/cascader.cjs +1 -1
  22. package/dist/cjs/components/formEditor/components/cascaderAsync.cjs +1 -1
  23. package/dist/cjs/components/formEditor/components/checkbox.cjs +1 -1
  24. package/dist/cjs/components/formEditor/components/color.cjs +1 -1
  25. package/dist/cjs/components/formEditor/components/date.cjs +1 -1
  26. package/dist/cjs/components/formEditor/components/dynamicInput.cjs +1 -1
  27. package/dist/cjs/components/formEditor/components/dynamicTags.cjs +1 -1
  28. package/dist/cjs/components/formEditor/components/editor.cjs +1 -1
  29. package/dist/cjs/components/formEditor/components/fileUpload.cjs +1 -1
  30. package/dist/cjs/components/formEditor/components/imageUpload.cjs +1 -1
  31. package/dist/cjs/components/formEditor/components/input.cjs +1 -1
  32. package/dist/cjs/components/formEditor/components/inputNumber.cjs +1 -1
  33. package/dist/cjs/components/formEditor/components/mentionAsync.cjs +1 -1
  34. package/dist/cjs/components/formEditor/components/radio.cjs +1 -1
  35. package/dist/cjs/components/formEditor/components/region.cjs +1 -1
  36. package/dist/cjs/components/formEditor/components/select.cjs +1 -1
  37. package/dist/cjs/components/formEditor/components/selectAsync.cjs +1 -1
  38. package/dist/cjs/components/formEditor/components/sider.cjs +1 -1
  39. package/dist/cjs/components/formEditor/components/switch.cjs +1 -1
  40. package/dist/cjs/components/formEditor/components/time.cjs +1 -1
  41. package/dist/cjs/components/formEditor/components/transferAsync.cjs +1 -1
  42. package/dist/cjs/components/formEditor/components/treeSelect.cjs +1 -1
  43. package/dist/cjs/components/formEditor/components/treeSelectAsync.cjs +1 -1
  44. package/dist/cjs/components/formEditor/editor.cjs +1 -1
  45. package/dist/cjs/components/formEditor/renderer.cjs +1 -1
  46. package/dist/cjs/components/icon/icon.cjs +1 -1
  47. package/dist/cjs/components/layout/list.cjs +1 -1
  48. package/dist/cjs/components/layout/table.cjs +1 -1
  49. package/dist/cjs/components/layout/tools.cjs +1 -1
  50. package/dist/cjs/components/level/level.cjs +1 -1
  51. package/dist/cjs/components/posterEditor/pages/RightPanel.cjs +1 -1
  52. package/dist/cjs/components/posterEditor/posterEditor.cjs +1 -1
  53. package/dist/cjs/components/table/table.cjs +1 -1
  54. package/dist/cjs/components/upload/file.cjs +1 -1
  55. package/dist/cjs/components/upload/image.cjs +1 -1
  56. package/dist/cjs/components/upload/manage/item.cjs +1 -1
  57. package/dist/cjs/components/upload/manager.cjs +1 -1
  58. package/dist/cjs/config/uno.cjs +1 -1
  59. package/dist/cjs/hooks/dialog.cjs +1 -1
  60. package/dist/cjs/hooks/download.cjs +1 -1
  61. package/dist/cjs/hooks/drawer.cjs +1 -1
  62. package/dist/cjs/hooks/modal.cjs +1 -1
  63. package/dist/cjs/hooks/table/image.cjs +1 -1
  64. package/dist/cjs/hooks/table/media.cjs +1 -1
  65. package/dist/cjs/pages/layout/global.cjs +1 -1
  66. package/dist/cjs/pages/layout/page.cjs +1 -1
  67. package/dist/cjs/pages/login.cjs +1 -1
  68. package/dist/cjs/pages/menu/avatar.cjs +1 -1
  69. package/dist/cjs/pages/menu/button.cjs +1 -1
  70. package/dist/cjs/pages/menu/cmd.cjs +1 -1
  71. package/dist/cjs/pages/menu/menuApp.cjs +1 -1
  72. package/dist/cjs/pages/menu/menuMain.cjs +1 -1
  73. package/dist/cjs/pages/menu/mobile.cjs +1 -1
  74. package/dist/cjs/pages/menu/notice.cjs +1 -1
  75. package/dist/cjs/pages/page404.cjs +1 -1
  76. package/dist/cjs/pages/pageStatus.cjs +1 -1
  77. package/dist/cjs/theme/uno.css.cjs +58 -112
  78. package/dist/esm/components/card/card.js +0 -1
  79. package/dist/esm/components/chart/echart.js +3 -5
  80. package/dist/esm/components/crop/imageCrop.js +3 -5
  81. package/dist/esm/components/data/dynamicSelect.js +3 -5
  82. package/dist/esm/components/data/selectModal.js +3 -5
  83. package/dist/esm/components/designEditor/components/grid.js +3 -5
  84. package/dist/esm/components/designEditor/editor/setting.js +5 -7
  85. package/dist/esm/components/editor/aiEditor.js +142 -125
  86. package/dist/esm/components/flowEditor/components/setting.js +13 -15
  87. package/dist/esm/components/flowEditor/nodes/endNode.js +3 -5
  88. package/dist/esm/components/flowEditor/nodes/index.js +3 -5
  89. package/dist/esm/components/flowEditor/nodes/processNode.js +3 -5
  90. package/dist/esm/components/flowEditor/nodes/startNode.js +3 -5
  91. package/dist/esm/components/form/drawerForm.js +3 -5
  92. package/dist/esm/components/form/modalForm.js +3 -5
  93. package/dist/esm/components/form/pageForm.js +3 -5
  94. package/dist/esm/components/form/pageTabForm.js +3 -5
  95. package/dist/esm/components/form/settingForm.js +3 -6
  96. package/dist/esm/components/formEditor/base/base.js +5 -7
  97. package/dist/esm/components/formEditor/base/setting.js +3 -5
  98. package/dist/esm/components/formEditor/components/cascader.js +3 -5
  99. package/dist/esm/components/formEditor/components/cascaderAsync.js +3 -5
  100. package/dist/esm/components/formEditor/components/checkbox.js +3 -5
  101. package/dist/esm/components/formEditor/components/color.js +3 -5
  102. package/dist/esm/components/formEditor/components/date.js +3 -5
  103. package/dist/esm/components/formEditor/components/dynamicInput.js +3 -5
  104. package/dist/esm/components/formEditor/components/dynamicTags.js +10 -12
  105. package/dist/esm/components/formEditor/components/editor.js +3 -5
  106. package/dist/esm/components/formEditor/components/fileUpload.js +3 -5
  107. package/dist/esm/components/formEditor/components/imageUpload.js +3 -5
  108. package/dist/esm/components/formEditor/components/input.js +3 -5
  109. package/dist/esm/components/formEditor/components/inputNumber.js +3 -5
  110. package/dist/esm/components/formEditor/components/mentionAsync.js +14 -16
  111. package/dist/esm/components/formEditor/components/radio.js +14 -16
  112. package/dist/esm/components/formEditor/components/region.js +16 -18
  113. package/dist/esm/components/formEditor/components/select.js +3 -5
  114. package/dist/esm/components/formEditor/components/selectAsync.js +3 -5
  115. package/dist/esm/components/formEditor/components/sider.js +3 -5
  116. package/dist/esm/components/formEditor/components/switch.js +19 -21
  117. package/dist/esm/components/formEditor/components/time.js +3 -5
  118. package/dist/esm/components/formEditor/components/transferAsync.js +23 -25
  119. package/dist/esm/components/formEditor/components/treeSelect.js +3 -5
  120. package/dist/esm/components/formEditor/components/treeSelectAsync.js +3 -5
  121. package/dist/esm/components/formEditor/editor.js +3 -5
  122. package/dist/esm/components/formEditor/renderer.js +3 -5
  123. package/dist/esm/components/icon/icon.js +3 -5
  124. package/dist/esm/components/layout/list.js +3 -5
  125. package/dist/esm/components/layout/table.js +23 -25
  126. package/dist/esm/components/layout/tools.js +3 -5
  127. package/dist/esm/components/level/level.js +3 -5
  128. package/dist/esm/components/posterEditor/pages/RightPanel.js +3 -5
  129. package/dist/esm/components/posterEditor/posterEditor.js +3 -5
  130. package/dist/esm/components/table/table.js +8 -10
  131. package/dist/esm/components/upload/file.js +3 -5
  132. package/dist/esm/components/upload/image.js +33 -35
  133. package/dist/esm/components/upload/manage/item.js +3 -5
  134. package/dist/esm/components/upload/manager.js +3 -5
  135. package/dist/esm/config/uno.js +6 -8
  136. package/dist/esm/hooks/dialog.js +3 -5
  137. package/dist/esm/hooks/download.js +57 -50
  138. package/dist/esm/hooks/drawer.js +3 -5
  139. package/dist/esm/hooks/modal.js +3 -5
  140. package/dist/esm/hooks/table/image.js +3 -5
  141. package/dist/esm/hooks/table/media.js +3 -5
  142. package/dist/esm/pages/layout/global.js +3 -5
  143. package/dist/esm/pages/layout/page.js +7 -9
  144. package/dist/esm/pages/login.js +8 -10
  145. package/dist/esm/pages/menu/avatar.js +19 -21
  146. package/dist/esm/pages/menu/button.js +3 -5
  147. package/dist/esm/pages/menu/cmd.js +11 -13
  148. package/dist/esm/pages/menu/menuApp.js +15 -17
  149. package/dist/esm/pages/menu/menuMain.js +3 -5
  150. package/dist/esm/pages/menu/mobile.js +3 -5
  151. package/dist/esm/pages/menu/notice.js +3 -5
  152. package/dist/esm/pages/page404.js +1 -3
  153. package/dist/esm/pages/pageStatus.js +3 -5
  154. package/dist/esm/theme/uno.css.js +58 -112
  155. package/dist/types/components/table/table.d.ts +5 -5
  156. package/dist/types/components/widget/avatar.d.ts +2 -2
  157. package/dist/types/components/widget/image.d.ts +1 -1
  158. package/dist/types/config/uno.d.ts +2 -2
  159. package/dist/types/hooks/action.d.ts +1 -1
  160. package/package.json +7 -8
@@ -43,9 +43,7 @@ import "highlight.js/lib/languages/sql";
43
43
  import "highlight.js/lib/languages/typescript";
44
44
  import "highlight.js/lib/languages/xml";
45
45
  import "@ant-design/colors";
46
- import "@unocss/preset-icons/browser";
47
- import "@unocss/preset-typography";
48
- import "unocss/preset-wind4";
46
+ import "unocss";
49
47
  import "@vee-validate/i18n/dist/locale/en.json";
50
48
  import "@vee-validate/i18n/dist/locale/zh_CN.json";
51
49
  import "vee-validate";
@@ -169,7 +167,7 @@ const E = /* @__PURE__ */ u({
169
167
  }, null)]);
170
168
  }
171
169
  });
172
- function Ct(r) {
170
+ function kt(r) {
173
171
  return {
174
172
  name: "tree-select-async",
175
173
  icon: "i-tabler:binary-tree",
@@ -192,5 +190,5 @@ function Ct(r) {
192
190
  };
193
191
  }
194
192
  export {
195
- Ct as duxFormEditorTreeSelectAsync
193
+ kt as duxFormEditorTreeSelectAsync
196
194
  };
@@ -39,9 +39,7 @@ import "highlight.js/lib/languages/sql";
39
39
  import "highlight.js/lib/languages/typescript";
40
40
  import "highlight.js/lib/languages/xml";
41
41
  import "@ant-design/colors";
42
- import "@unocss/preset-icons/browser";
43
- import "@unocss/preset-typography";
44
- import "unocss/preset-wind4";
42
+ import "unocss";
45
43
  import "@vee-validate/i18n/dist/locale/en.json";
46
44
  import "@vee-validate/i18n/dist/locale/zh_CN.json";
47
45
  import "vee-validate";
@@ -90,7 +88,7 @@ import "pinia";
90
88
  function p(m) {
91
89
  return typeof m == "function" || Object.prototype.toString.call(m) === "[object Object]" && !x(m);
92
90
  }
93
- const kr = /* @__PURE__ */ f({
91
+ const Cr = /* @__PURE__ */ f({
94
92
  name: "DuxFormEditor",
95
93
  props: {
96
94
  onSave: Function
@@ -179,5 +177,5 @@ const kr = /* @__PURE__ */ f({
179
177
  }
180
178
  });
181
179
  export {
182
- kr as DuxFormEditor
180
+ Cr as DuxFormEditor
183
181
  };
@@ -49,9 +49,7 @@ import "highlight.js/lib/languages/sql";
49
49
  import "highlight.js/lib/languages/typescript";
50
50
  import "highlight.js/lib/languages/xml";
51
51
  import "@ant-design/colors";
52
- import "@unocss/preset-icons/browser";
53
- import "@unocss/preset-typography";
54
- import "unocss/preset-wind4";
52
+ import "unocss";
55
53
  import "@vee-validate/i18n/dist/locale/en.json";
56
54
  import "@vee-validate/i18n/dist/locale/zh_CN.json";
57
55
  import "vue-command-palette";
@@ -84,7 +82,7 @@ import { duxFormEditorTreeSelectAsync as K } from "./components/treeSelectAsync.
84
82
  import "@iconify-json/tabler/icons.json";
85
83
  import "../posterEditor/elements/index.js";
86
84
  import "fabric";
87
- const jo = /* @__PURE__ */ E({
85
+ const So = /* @__PURE__ */ E({
88
86
  name: "DuxFormRenderer",
89
87
  props: {
90
88
  data: {
@@ -166,5 +164,5 @@ const jo = /* @__PURE__ */ E({
166
164
  }
167
165
  });
168
166
  export {
169
- jo as DuxFormRenderer
167
+ So as DuxFormRenderer
170
168
  };
@@ -39,9 +39,7 @@ import "highlight.js/lib/languages/sql";
39
39
  import "highlight.js/lib/languages/typescript";
40
40
  import "highlight.js/lib/languages/xml";
41
41
  import "@ant-design/colors";
42
- import "@unocss/preset-icons/browser";
43
- import "@unocss/preset-typography";
44
- import "unocss/preset-wind4";
42
+ import "unocss";
45
43
  import "@vee-validate/i18n/dist/locale/en.json";
46
44
  import "@vee-validate/i18n/dist/locale/zh_CN.json";
47
45
  import "vee-validate";
@@ -61,7 +59,7 @@ import "fabric";
61
59
  import "dayjs";
62
60
  import "@tanstack/vue-query";
63
61
  import "pinia";
64
- const Co = /* @__PURE__ */ n({
62
+ const Po = /* @__PURE__ */ n({
65
63
  name: "DuxIconPicker",
66
64
  props: {
67
65
  defaultValue: String,
@@ -105,5 +103,5 @@ const Co = /* @__PURE__ */ n({
105
103
  }
106
104
  });
107
105
  export {
108
- Co as DuxIconPicker
106
+ Po as DuxIconPicker
109
107
  };
@@ -40,9 +40,7 @@ import "highlight.js/lib/languages/sql";
40
40
  import "highlight.js/lib/languages/typescript";
41
41
  import "highlight.js/lib/languages/xml";
42
42
  import "@ant-design/colors";
43
- import "@unocss/preset-icons/browser";
44
- import "@unocss/preset-typography";
45
- import "unocss/preset-wind4";
43
+ import "unocss";
46
44
  import "@vee-validate/i18n/dist/locale/en.json";
47
45
  import "@vee-validate/i18n/dist/locale/zh_CN.json";
48
46
  import "vee-validate";
@@ -66,7 +64,7 @@ import "fabric";
66
64
  import "dayjs";
67
65
  import "@tanstack/vue-query";
68
66
  import "pinia";
69
- const Pt = /* @__PURE__ */ Q({
67
+ const St = /* @__PURE__ */ Q({
70
68
  name: "DuxListLayout",
71
69
  props: {
72
70
  rowKey: {
@@ -454,5 +452,5 @@ const Pt = /* @__PURE__ */ Q({
454
452
  }
455
453
  });
456
454
  export {
457
- Pt as DuxListLayout
455
+ St as DuxListLayout
458
456
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as te, toRef as O, computed as d, reactive as k, ref as S, watch as N, nextTick as h, onMounted as ae, createVNode as e, h as ie, mergeProps as le } from "vue";
1
+ import { defineComponent as te, toRef as O, computed as p, reactive as k, ref as S, watch as N, nextTick as h, onMounted as ae, createVNode as e, h as ie, mergeProps as le } from "vue";
2
2
  import { useI18n as oe, useJsonSchema as re, useTabStore as ne } from "@duxweb/dvha-core";
3
3
  import { useWindowSize as se } from "@vueuse/core";
4
- import { NTabs as ue, NTab as ce, NButton as c, NPopselect as pe, NTooltip as y, NProgress as de, NPagination as me, NDrawer as z } from "naive-ui";
4
+ import { NTabs as ue, NTab as ce, NButton as c, NPopselect as de, NTooltip as y, NProgress as pe, NPagination as me, NDrawer as z } from "naive-ui";
5
5
  import { useAction as fe } from "../../hooks/action.js";
6
6
  import "@overlastic/vue";
7
7
  import "clsx";
@@ -40,9 +40,7 @@ import "highlight.js/lib/languages/sql";
40
40
  import "highlight.js/lib/languages/typescript";
41
41
  import "highlight.js/lib/languages/xml";
42
42
  import "@ant-design/colors";
43
- import "@unocss/preset-icons/browser";
44
- import "@unocss/preset-typography";
45
- import "unocss/preset-wind4";
43
+ import "unocss";
46
44
  import "@vee-validate/i18n/dist/locale/en.json";
47
45
  import "@vee-validate/i18n/dist/locale/zh_CN.json";
48
46
  import "vee-validate";
@@ -66,7 +64,7 @@ import "dayjs";
66
64
  import "@tanstack/vue-query";
67
65
  import { useTable as he } from "../../hooks/table.js";
68
66
  import "pinia";
69
- const Jt = /* @__PURE__ */ te({
67
+ const zt = /* @__PURE__ */ te({
70
68
  name: "DuxTableLayout",
71
69
  props: {
72
70
  path: {
@@ -125,7 +123,7 @@ const Jt = /* @__PURE__ */ te({
125
123
  slots: o,
126
124
  expose: J
127
125
  }) {
128
- const r = O(a, "filter", {}), U = O(a, "sorter", {}), v = d(() => a.filterReactive || {}), B = O(a, "columns", []), {
126
+ const r = O(a, "filter", {}), U = O(a, "sorter", {}), v = p(() => a.filterReactive || {}), B = O(a, "columns", []), {
129
127
  t: n
130
128
  } = oe(), {
131
129
  renderAction: E
@@ -156,16 +154,16 @@ const Jt = /* @__PURE__ */ te({
156
154
  onExport: G,
157
155
  onExportRows: H,
158
156
  onImport: Q
159
- } = s, X = d(() => R.value.filter((t) => "title" in t && "key" in t).map((t) => ({
157
+ } = s, X = p(() => R.value.filter((t) => "title" in t && "key" in t).map((t) => ({
160
158
  label: t.title,
161
159
  value: t.key
162
160
  }))), {
163
- width: p
164
- } = se(), Y = d(() => R.value.reduce((i, u) => i + (Number(u?.width) || Number(u?.minWidth) || 110), 0)), m = k({
161
+ width: d
162
+ } = se(), Y = p(() => R.value.reduce((i, u) => i + (Number(u?.width) || Number(u?.minWidth) || 110), 0)), m = k({
165
163
  show: !1
166
164
  }), f = k({
167
165
  show: !1
168
- }), x = S(!1), Z = d(() => (a.filterSchema || []).map((t) => {
166
+ }), x = S(!1), Z = p(() => (a.filterSchema || []).map((t) => {
169
167
  const {
170
168
  label: i,
171
169
  ...u
@@ -180,8 +178,8 @@ const Jt = /* @__PURE__ */ te({
180
178
  })), {
181
179
  render: _
182
180
  } = re({
183
- data: d(() => Z.value)
184
- }), w = d(() => ({
181
+ data: p(() => Z.value)
182
+ }), w = p(() => ({
185
183
  import: !1,
186
184
  export: !0,
187
185
  refresh: !0,
@@ -196,12 +194,12 @@ const Jt = /* @__PURE__ */ te({
196
194
  h(() => b.value?.syncBarPosition());
197
195
  }, {
198
196
  deep: !0
199
- }), N(() => p.value, () => {
197
+ }), N(() => d.value, () => {
200
198
  h(() => {
201
199
  b.value?.syncBarPosition();
202
200
  });
203
201
  });
204
- const P = ne(), $ = P.tabs.find((t) => t.path === P.current), ee = d(() => {
202
+ const P = ne(), $ = P.tabs.find((t) => t.path === P.current), ee = p(() => {
205
203
  const t = a.tabs?.map((u) => u.value) || [], i = r.value?.tab;
206
204
  return t.includes(i) ? i : t[0];
207
205
  });
@@ -221,8 +219,8 @@ const Jt = /* @__PURE__ */ te({
221
219
  actions: a.actions,
222
220
  scrollbar: !1
223
221
  }, {
224
- sideLeft: () => o?.sideLeft && p.value >= 1024 ? o?.sideLeft?.() : void 0,
225
- sideRight: () => o?.sideRight && p.value >= 1024 ? o?.sideRight?.() : void 0,
222
+ sideLeft: () => o?.sideLeft && d.value >= 1024 ? o?.sideLeft?.() : void 0,
223
+ sideRight: () => o?.sideRight && d.value >= 1024 ? o?.sideRight?.() : void 0,
226
224
  default: () => e("div", {
227
225
  class: "flex flex-col gap-3 h-full relative"
228
226
  }, [e("div", {
@@ -252,11 +250,11 @@ const Jt = /* @__PURE__ */ te({
252
250
  })]), e("div", {
253
251
  class: "flex gap-2 justify-end pb-2"
254
252
  }, [o.actions?.(), a.actions?.length > 0 && E({
255
- type: p.value < 1024 ? "dropdown" : "button",
253
+ type: d.value < 1024 ? "dropdown" : "button",
256
254
  items: a.actions
257
255
  })])]), e("div", {
258
256
  class: "flex gap-2 justify-between flex-col-reverse lg:flex-row"
259
- }, [(p.value >= 1024 || x.value) && e("div", {
257
+ }, [(d.value >= 1024 || x.value) && e("div", {
260
258
  class: ["flex-1 flex flex-col lg:flex-row gap-2 flex-wrap"]
261
259
  }, [e("div", {
262
260
  key: T.value,
@@ -265,7 +263,7 @@ const Jt = /* @__PURE__ */ te({
265
263
  class: "flex justify-between gap-2"
266
264
  }, [e("div", {
267
265
  class: ["flex gap-2"]
268
- }, [o?.sideLeft && p.value < 1024 && e(c, {
266
+ }, [o?.sideLeft && d.value < 1024 && e(c, {
269
267
  class: "flex-none",
270
268
  secondary: !0,
271
269
  onClick: () => {
@@ -275,7 +273,7 @@ const Jt = /* @__PURE__ */ te({
275
273
  icon: () => e("div", {
276
274
  class: "i-tabler:layout-sidebar-inactive size-4"
277
275
  }, null)
278
- }), o?.sideRight && p.value < 1024 && e(c, {
276
+ }), o?.sideRight && d.value < 1024 && e(c, {
279
277
  class: "flex-none",
280
278
  secondary: !0,
281
279
  onClick: () => {
@@ -349,7 +347,7 @@ const Jt = /* @__PURE__ */ te({
349
347
  class: "flex justify-between"
350
348
  }, [e("div", {
351
349
  class: "flex items-center gap-0.5"
352
- }, [o?.bottom?.(), o?.tools?.(), e(pe, {
350
+ }, [o?.bottom?.(), o?.tools?.(), e(de, {
353
351
  options: X.value,
354
352
  value: q.value,
355
353
  onUpdateValue: (t) => {
@@ -401,7 +399,7 @@ const Jt = /* @__PURE__ */ te({
401
399
  circle: !0,
402
400
  onClick: W
403
401
  }, {
404
- icon: () => I.value ? e(de, {
402
+ icon: () => I.value ? e(pe, {
405
403
  class: "size-4",
406
404
  type: "circle",
407
405
  percentage: C.value * 10,
@@ -417,7 +415,7 @@ const Jt = /* @__PURE__ */ te({
417
415
  }),
418
416
  default: () => n("components.button.autoRefresh")
419
417
  })]), e("div", null, [a.pagination && e(me, le(A.value, {
420
- simple: p.value < 768
418
+ simple: d.value < 768
421
419
  }), {
422
420
  prefix: () => e("div", null, [n("components.list.total", {
423
421
  total: s.total.value || 0
@@ -469,5 +467,5 @@ const Jt = /* @__PURE__ */ te({
469
467
  }
470
468
  });
471
469
  export {
472
- Jt as DuxTableLayout
470
+ zt as DuxTableLayout
473
471
  };
@@ -40,9 +40,7 @@ import "highlight.js/lib/languages/sql";
40
40
  import "highlight.js/lib/languages/typescript";
41
41
  import "highlight.js/lib/languages/xml";
42
42
  import "@ant-design/colors";
43
- import "@unocss/preset-icons/browser";
44
- import "@unocss/preset-typography";
45
- import "unocss/preset-wind4";
43
+ import "unocss";
46
44
  import "@vee-validate/i18n/dist/locale/en.json";
47
45
  import "@vee-validate/i18n/dist/locale/zh_CN.json";
48
46
  import "vee-validate";
@@ -61,7 +59,7 @@ import "fabric";
61
59
  import "dayjs";
62
60
  import "@tanstack/vue-query";
63
61
  import "pinia";
64
- const Bt = /* @__PURE__ */ u({
62
+ const At = /* @__PURE__ */ u({
65
63
  name: "DuxTableTools",
66
64
  props: {
67
65
  selecteds: {
@@ -148,5 +146,5 @@ const Bt = /* @__PURE__ */ u({
148
146
  }
149
147
  });
150
148
  export {
151
- Bt as DuxTableTools
149
+ At as DuxTableTools
152
150
  };
@@ -39,9 +39,7 @@ import "highlight.js/lib/languages/sql";
39
39
  import "highlight.js/lib/languages/typescript";
40
40
  import "highlight.js/lib/languages/xml";
41
41
  import "@ant-design/colors";
42
- import "@unocss/preset-icons/browser";
43
- import "@unocss/preset-typography";
44
- import "unocss/preset-wind4";
42
+ import "unocss";
45
43
  import "@vee-validate/i18n/dist/locale/en.json";
46
44
  import "@vee-validate/i18n/dist/locale/zh_CN.json";
47
45
  import "vee-validate";
@@ -60,7 +58,7 @@ import "fabric";
60
58
  import "dayjs";
61
59
  import { useLevel as c } from "../../hooks/level.js";
62
60
  import "pinia";
63
- const Ct = /* @__PURE__ */ v({
61
+ const St = /* @__PURE__ */ v({
64
62
  name: "DuxLevel",
65
63
  props: {
66
64
  value: {
@@ -131,5 +129,5 @@ const Ct = /* @__PURE__ */ v({
131
129
  }
132
130
  });
133
131
  export {
134
- Ct as DuxLevel
132
+ St as DuxLevel
135
133
  };
@@ -40,9 +40,7 @@ import "highlight.js/lib/languages/sql";
40
40
  import "highlight.js/lib/languages/typescript";
41
41
  import "highlight.js/lib/languages/xml";
42
42
  import "@ant-design/colors";
43
- import "@unocss/preset-icons/browser";
44
- import "@unocss/preset-typography";
45
- import "unocss/preset-wind4";
43
+ import "unocss";
46
44
  import "@vee-validate/i18n/dist/locale/en.json";
47
45
  import "@vee-validate/i18n/dist/locale/zh_CN.json";
48
46
  import "vee-validate";
@@ -66,7 +64,7 @@ import { DuxImageUpload as b } from "../../upload/image.js";
66
64
  function C(t) {
67
65
  return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !s(t);
68
66
  }
69
- const qe = /* @__PURE__ */ v({
67
+ const Ue = /* @__PURE__ */ v({
70
68
  name: "RightPanel",
71
69
  props: {
72
70
  hasMultipleSelection: {
@@ -435,5 +433,5 @@ const qe = /* @__PURE__ */ v({
435
433
  }
436
434
  });
437
435
  export {
438
- qe as RightPanel
436
+ Ue as RightPanel
439
437
  };
@@ -41,9 +41,7 @@ import "highlight.js/lib/languages/sql";
41
41
  import "highlight.js/lib/languages/typescript";
42
42
  import "highlight.js/lib/languages/xml";
43
43
  import "@ant-design/colors";
44
- import "@unocss/preset-icons/browser";
45
- import "@unocss/preset-typography";
46
- import "unocss/preset-wind4";
44
+ import "unocss";
47
45
  import "@vee-validate/i18n/dist/locale/en.json";
48
46
  import "@vee-validate/i18n/dist/locale/zh_CN.json";
49
47
  import "vee-validate";
@@ -65,7 +63,7 @@ import "dayjs";
65
63
  import "@tanstack/vue-query";
66
64
  import "pinia";
67
65
  import { DuxImageUpload as Q } from "../upload/image.js";
68
- const ua = /* @__PURE__ */ T({
66
+ const ia = /* @__PURE__ */ T({
69
67
  name: "DuxPosterEditor",
70
68
  props: {
71
69
  data: {
@@ -241,5 +239,5 @@ const ua = /* @__PURE__ */ T({
241
239
  }
242
240
  });
243
241
  export {
244
- ua as DuxPosterEditor
242
+ ia as DuxPosterEditor
245
243
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as f, computed as d, toRef as c, createVNode as i, mergeProps as m } from "vue";
2
2
  import { useI18n as b } from "@duxweb/dvha-core";
3
3
  import { useWindowSize as g } from "@vueuse/core";
4
- import { NDataTable as p, NPagination as x } from "naive-ui";
4
+ import { NDataTable as e, NPagination as x } from "naive-ui";
5
5
  import "vue-router";
6
6
  import "@overlastic/vue";
7
7
  import "clsx";
@@ -40,9 +40,7 @@ import "highlight.js/lib/languages/sql";
40
40
  import "highlight.js/lib/languages/typescript";
41
41
  import "highlight.js/lib/languages/xml";
42
42
  import "@ant-design/colors";
43
- import "@unocss/preset-icons/browser";
44
- import "@unocss/preset-typography";
45
- import "unocss/preset-wind4";
43
+ import "unocss";
46
44
  import "@vee-validate/i18n/dist/locale/en.json";
47
45
  import "@vee-validate/i18n/dist/locale/zh_CN.json";
48
46
  import "vee-validate";
@@ -62,7 +60,7 @@ import "dayjs";
62
60
  import "@tanstack/vue-query";
63
61
  import { useTable as h } from "../../hooks/table.js";
64
62
  import "pinia";
65
- const zt = /* @__PURE__ */ f({
63
+ const St = /* @__PURE__ */ f({
66
64
  name: "DuxTable",
67
65
  props: {
68
66
  path: {
@@ -80,9 +78,9 @@ const zt = /* @__PURE__ */ f({
80
78
  default: !0
81
79
  }
82
80
  },
83
- extends: p,
81
+ extends: e,
84
82
  setup(o, {
85
- expose: e
83
+ expose: p
86
84
  }) {
87
85
  const n = d(() => {
88
86
  const {
@@ -99,7 +97,7 @@ const zt = /* @__PURE__ */ f({
99
97
  columns: o.columns || [],
100
98
  pagination: o.pagination
101
99
  });
102
- e(r);
100
+ p(r);
103
101
  const {
104
102
  width: a
105
103
  } = g(), {
@@ -107,7 +105,7 @@ const zt = /* @__PURE__ */ f({
107
105
  } = b();
108
106
  return () => i("div", {
109
107
  class: "flex flex-col gap-2"
110
- }, [i(p, m(n.value, r.table.value, {
108
+ }, [i(e, m(n.value, r.table.value, {
111
109
  class: "flex-1 min-h-0",
112
110
  minHeight: 200,
113
111
  tableLayout: "fixed",
@@ -131,5 +129,5 @@ const zt = /* @__PURE__ */ f({
131
129
  }
132
130
  });
133
131
  export {
134
- zt as DuxTable
132
+ St as DuxTable
135
133
  };
@@ -41,9 +41,7 @@ import "highlight.js/lib/languages/sql";
41
41
  import "highlight.js/lib/languages/typescript";
42
42
  import "highlight.js/lib/languages/xml";
43
43
  import "@ant-design/colors";
44
- import "@unocss/preset-icons/browser";
45
- import "@unocss/preset-typography";
46
- import "unocss/preset-wind4";
44
+ import "unocss";
47
45
  import "@vee-validate/i18n/dist/locale/en.json";
48
46
  import "@vee-validate/i18n/dist/locale/zh_CN.json";
49
47
  import "vee-validate";
@@ -97,7 +95,7 @@ const d = {
97
95
  empty: "flex items-center justify-center h-full text-muted",
98
96
  actions: "flex gap-2"
99
97
  }
100
- }, rt = /* @__PURE__ */ U({
98
+ }, at = /* @__PURE__ */ U({
101
99
  name: "DuxFileUpload",
102
100
  props: {
103
101
  path: {
@@ -312,5 +310,5 @@ const d = {
312
310
  }
313
311
  });
314
312
  export {
315
- rt as DuxFileUpload
313
+ at as DuxFileUpload
316
314
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as k, computed as n, watch as g, createVNode as r } from "vue";
1
+ import { defineComponent as k, computed as n, watch as g, createVNode as a } from "vue";
2
2
  import { useI18n as w, useUpload as I } from "@duxweb/dvha-core";
3
3
  import { useVModel as V } from "@vueuse/core";
4
4
  import A from "clsx";
@@ -39,9 +39,7 @@ import "highlight.js/lib/languages/sql";
39
39
  import "highlight.js/lib/languages/typescript";
40
40
  import "highlight.js/lib/languages/xml";
41
41
  import "@ant-design/colors";
42
- import "@unocss/preset-icons/browser";
43
- import "@unocss/preset-typography";
44
- import "unocss/preset-wind4";
42
+ import "unocss";
45
43
  import "@vee-validate/i18n/dist/locale/en.json";
46
44
  import "@vee-validate/i18n/dist/locale/zh_CN.json";
47
45
  import "vee-validate";
@@ -63,7 +61,7 @@ import "dayjs";
63
61
  import { useImagePreview as q } from "../../hooks/image.js";
64
62
  import "@tanstack/vue-query";
65
63
  import "pinia";
66
- const Ze = /* @__PURE__ */ k({
64
+ const Xe = /* @__PURE__ */ k({
67
65
  name: "DuxImageUpload",
68
66
  props: {
69
67
  path: {
@@ -123,7 +121,7 @@ const Ze = /* @__PURE__ */ k({
123
121
  uploadPath: t?.path,
124
122
  managePath: t?.managePath,
125
123
  method: t?.method
126
- }), a = I({
124
+ }), r = I({
127
125
  path: d.value,
128
126
  multiple: t.multiple,
129
127
  maxFileCount: t.maxNum,
@@ -136,64 +134,64 @@ const Ze = /* @__PURE__ */ k({
136
134
  },
137
135
  driver: z.value
138
136
  });
139
- g(a.dataFiles, (e) => {
137
+ g(r.dataFiles, (e) => {
140
138
  const o = t.multiple ? e?.map((l) => l.url) : e?.[0]?.url;
141
139
  u.value = o, t.onUpdateValue?.(o);
142
140
  });
143
- const F = n(() => a.progress.value.totalPercent), P = n(() => a.isUploading.value), C = async () => {
144
- a.open();
145
- }, S = n(() => t.multiple ? t.maxNum && a.uploadFiles.value.length >= t.maxNum : !0), N = n(() => a.dataFiles.value?.map((e) => e.url)), U = O();
141
+ const F = n(() => r.progress.value.totalPercent), P = n(() => r.isUploading.value), C = async () => {
142
+ r.open();
143
+ }, S = n(() => t.multiple ? t.maxNum && r.uploadFiles.value.length >= t.maxNum : !0), N = n(() => r.dataFiles.value?.map((e) => e.url)), U = O();
146
144
  return g(u, (e) => {
147
145
  if (!e || !(Array.isArray(e) ? e.length : String(e).length)) return;
148
- const o = typeof e == "string" ? [e] : Array.isArray(e) ? e : [], l = (a.dataFiles.value || []).map((m) => m.url).filter(Boolean), c = o.filter((m) => !l.includes(m));
149
- c.length && a.addDataFiles(c.map((m) => ({
146
+ const o = typeof e == "string" ? [e] : Array.isArray(e) ? e : [], l = (r.dataFiles.value || []).map((m) => m.url).filter(Boolean), c = o.filter((m) => !l.includes(m));
147
+ c.length && r.addDataFiles(c.map((m) => ({
150
148
  url: m
151
149
  })));
152
- }), () => r("div", null, [r(M, {
153
- modelValue: a.uploadFiles.value,
154
- "onUpdate:modelValue": (e) => a.uploadFiles.value = e,
150
+ }), () => a("div", null, [a(M, {
151
+ modelValue: r.uploadFiles.value,
152
+ "onUpdate:modelValue": (e) => r.uploadFiles.value = e,
155
153
  class: i.container,
156
154
  draggable: ".draggable"
157
155
  }, {
158
- default: () => [a.uploadFiles.value?.map((e, o) => {
156
+ default: () => [r.uploadFiles.value?.map((e, o) => {
159
157
  const l = e.url || URL.createObjectURL(e.file);
160
- return r("div", {
158
+ return a("div", {
161
159
  key: o,
162
160
  class: A(i.imageItem)
163
- }, [r(B, {
161
+ }, [a(B, {
164
162
  class: "z-0 rounded",
165
163
  objectFit: "scale-down",
166
164
  width: 78,
167
165
  height: 78,
168
166
  previewDisabled: !0,
169
167
  src: l
170
- }, null), r("div", {
168
+ }, null), a("div", {
171
169
  class: i.imageOverlay
172
- }, [e.status === "success" && r(v, {
170
+ }, [e.status === "success" && a(v, {
173
171
  quaternary: !0,
174
172
  circle: !0,
175
173
  size: "small",
176
- renderIcon: () => r("div", {
174
+ renderIcon: () => a("div", {
177
175
  class: "n-icon i-tabler:eye"
178
176
  }, null),
179
177
  onClick: () => b.show(N.value, o)
180
- }, null), r(v, {
178
+ }, null), a(v, {
181
179
  quaternary: !0,
182
180
  circle: !0,
183
181
  size: "small",
184
- renderIcon: () => r("div", {
182
+ renderIcon: () => a("div", {
185
183
  class: "n-icon i-tabler:trash"
186
184
  }, null),
187
185
  onClick: () => {
188
- a.removeFiles([e.id]);
186
+ r.removeFiles([e.id]);
189
187
  }
190
188
  }, null)])]);
191
- }), (a.uploadFiles.value.length === 0 || !S.value) && r("div", {
189
+ }), (r.uploadFiles.value.length === 0 || !S.value) && a("div", {
192
190
  class: i.uploadArea,
193
191
  onClick: () => {
194
192
  C();
195
193
  }
196
- }, [t.manager && r("div", {
194
+ }, [t.manager && a("div", {
197
195
  class: " py-1 text-xs bg-muted border-b border-dashed border-accented flex items-center justify-center",
198
196
  onClick: (e) => {
199
197
  e.stopPropagation(), U.show({
@@ -213,30 +211,30 @@ const Ze = /* @__PURE__ */ k({
213
211
  }
214
212
  }
215
213
  }).then((o) => {
216
- a.addDataFiles(o);
214
+ r.addDataFiles(o);
217
215
  });
218
216
  }
219
- }, [r("div", {
217
+ }, [a("div", {
220
218
  class: "i-tabler:folder size-4"
221
- }, null)]), r("div", {
219
+ }, null)]), a("div", {
222
220
  class: i.uploadContent
223
- }, [P.value ? r("div", {
221
+ }, [P.value ? a("div", {
224
222
  class: i.progressContainer
225
- }, [r("div", {
223
+ }, [a("div", {
226
224
  class: "i-tabler:photo size-6"
227
- }, null), r("div", {
225
+ }, null), a("div", {
228
226
  class: i.progressBar
229
- }, [r(D, {
227
+ }, [a(D, {
230
228
  type: "line",
231
229
  percentage: F.value,
232
230
  showIndicator: !1,
233
231
  height: 4
234
- }, null)])]) : r("div", {
232
+ }, null)])]) : a("div", {
235
233
  class: "i-tabler:plus size-4"
236
234
  }, null)])])]
237
235
  })]);
238
236
  }
239
237
  });
240
238
  export {
241
- Ze as DuxImageUpload
239
+ Xe as DuxImageUpload
242
240
  };