@duxweb/dvha-pro 1.2.7 → 1.2.9

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 (35) hide show
  1. package/dist/cjs/components/data/dynamicSelect.cjs +1 -1
  2. package/dist/cjs/components/editor/aiEditor.cjs +1 -1
  3. package/dist/cjs/components/modal/modal.cjs +1 -1
  4. package/dist/cjs/components/textImageEditor/textImageEditor.cjs +1 -1
  5. package/dist/cjs/components/upload/file.cjs +1 -1
  6. package/dist/cjs/components/upload/image.cjs +1 -1
  7. package/dist/cjs/components/upload/video.cjs +1 -1
  8. package/dist/cjs/index.cjs +1 -1
  9. package/dist/cjs/main.cjs +1 -1
  10. package/dist/cjs/pages/menu/avatar.cjs +1 -1
  11. package/dist/cjs/pages/menu/menuApp.cjs +1 -1
  12. package/dist/esm/components/data/dynamicSelect.js +1 -1
  13. package/dist/esm/components/editor/aiEditor.js +1 -1
  14. package/dist/esm/components/modal/modal.js +1 -1
  15. package/dist/esm/components/textImageEditor/textImageEditor.js +1 -1
  16. package/dist/esm/components/upload/file.js +1 -1
  17. package/dist/esm/components/upload/image.js +1 -1
  18. package/dist/esm/components/upload/video.js +1 -1
  19. package/dist/esm/index.js +2 -2
  20. package/dist/esm/main.js +4 -6
  21. package/dist/esm/pages/menu/avatar.js +61 -89
  22. package/dist/esm/pages/menu/menuApp.js +47 -64
  23. package/dist/types/components/widget/avatar.d.ts +1 -3
  24. package/dist/types/components/widget/image.d.ts +1 -3
  25. package/dist/types/main.d.ts +0 -26
  26. package/package.json +29 -29
  27. package/dist/cjs/components/data/selectModal.lazy.cjs +0 -1
  28. package/dist/cjs/components/upload/manager.lazy.cjs +0 -1
  29. package/dist/cjs/pages/menu/remoteMenuModal.cjs +0 -1
  30. package/dist/esm/components/data/selectModal.lazy.js +0 -15
  31. package/dist/esm/components/upload/manager.lazy.js +0 -15
  32. package/dist/esm/pages/menu/remoteMenuModal.js +0 -56
  33. package/dist/types/components/data/selectModal.lazy.d.ts +0 -2
  34. package/dist/types/components/upload/manager.lazy.d.ts +0 -2
  35. package/dist/types/pages/menu/remoteMenuModal.d.ts +0 -67
@@ -1,15 +1,12 @@
1
1
  import { DuxAvatar as e } from "../../components/widget/avatar.js";
2
- import { useModal as t } from "../../hooks/modal.js";
3
- import "../../hooks/index.js";
4
- import n from "./button.js";
5
- import r from "./remoteMenuModal.js";
2
+ import t from "./button.js";
6
3
  import "../../components/index.js";
7
- import { computed as i, createVNode as a, defineComponent as o, markRaw as s } from "vue";
8
- import { useGetAuth as c, useI18n as l, useLogout as u, useManage as d, useTheme as f } from "@duxweb/dvha-core";
9
- import { NDropdown as p } from "naive-ui";
10
- import { useRouter as m } from "vue-router";
4
+ import { computed as n, createVNode as r, defineComponent as i } from "vue";
5
+ import { useGetAuth as a, useI18n as o, useLogout as s, useManage as c, useTheme as l } from "@duxweb/dvha-core";
6
+ import { NDropdown as u } from "naive-ui";
7
+ import { useRouter as d } from "vue-router";
11
8
  //#region src/pages/menu/avatar.tsx
12
- var h = /* @__PURE__ */ o({
9
+ var f = /* @__PURE__ */ i({
13
10
  name: "DuxMenuAvatar",
14
11
  props: {
15
12
  collapsed: {
@@ -25,162 +22,137 @@ var h = /* @__PURE__ */ o({
25
22
  default: ""
26
23
  }
27
24
  },
28
- setup(o) {
29
- let { t: h } = l(), g = l(), _ = m(), { config: v, getRoutePath: y } = d(), { mutate: b } = u(), { mode: x, primaryColors: S, neutralColors: C, colorMapping: w, setColor: T, setMode: E } = f(), D = t(), O = (e, t) => a("div", { class: "flex gap-2 items-center w-30" }, [a("div", { class: "flex-1 min-w-0" }, [e]), a("div", null, [t && a("div", { class: "i-tabler:check" }, null)])]), k = (e) => a("div", { class: `${e} size-4` }, null), A = i(() => {
30
- let e = (v.userMenus || []).map((e) => ({
31
- ...e,
32
- label: h(e.label || "", {}, e.label),
25
+ setup(i) {
26
+ let { t: f } = o(), p = o(), m = d(), { config: h, getRoutePath: g } = c(), { mutate: _ } = s(), { mode: v, primaryColors: y, neutralColors: b, colorMapping: x, setColor: S, setMode: C } = l(), w = (e, t) => r("div", { class: "flex gap-2 items-center w-30" }, [r("div", { class: "flex-1 min-w-0" }, [e]), r("div", null, [t && r("div", { class: "i-tabler:check" }, null)])]), T = (e) => r("div", { class: `${e} size-4` }, null), E = n(() => {
27
+ let e = h.userMenus?.map((e) => ({
28
+ label: f(e.label || "", {}, e.label),
33
29
  key: e.key,
34
- icon: () => k(e.icon),
30
+ icon: () => T(e.icon),
35
31
  path: e.path
36
32
  }));
37
- return e.length > 0 ? [...e, { type: "divider" }] : [];
38
- }), j = c(), M = i(() => [
33
+ return e?.length > 0 ? [...e, { type: "divider" }] : [];
34
+ }), D = a(), O = n(() => [
39
35
  {
40
36
  key: "header",
41
37
  type: "render",
42
- render: () => a("div", { class: "flex gap-2 px-3 pb-1 pt-1 items-center " }, [a(e, {
38
+ render: () => r("div", { class: "flex gap-2 px-3 pb-1 pt-1 items-center " }, [r(e, {
43
39
  round: !0,
44
40
  size: 28,
45
- src: j.info?.avatar
46
- }, null), a("div", { class: "flex flex-col" }, [a("div", { class: "text-sm font-medium" }, [j.info?.nickname]), a("div", { class: "text-xs text-muted" }, [j.info?.username])])])
41
+ src: D.info?.avatar
42
+ }, null), r("div", { class: "flex flex-col" }, [r("div", { class: "text-sm font-medium" }, [D.info?.nickname]), r("div", { class: "text-xs text-muted" }, [D.info?.username])])])
47
43
  },
48
44
  { type: "divider" },
49
- ...A.value,
45
+ ...E.value,
50
46
  {
51
- label: h("components.menu.language"),
47
+ label: f("components.menu.language"),
52
48
  key: "locale",
53
- icon: () => k("i-tabler:language"),
54
- children: [...(g.getLocales() || []).map((e) => ({
55
- label: () => O(h(`locale.${e}`), g.getLocale() === e),
49
+ icon: () => T("i-tabler:language"),
50
+ children: [...(p.getLocales() || []).map((e) => ({
51
+ label: () => w(f(`locale.${e}`), p.getLocale() === e),
56
52
  key: `locale.${e}`
57
53
  }))]
58
54
  },
59
55
  {
60
- label: h("components.menu.color"),
56
+ label: f("components.menu.color"),
61
57
  key: "color",
62
- icon: () => k("i-tabler:palette"),
58
+ icon: () => T("i-tabler:palette"),
63
59
  children: [{
64
- label: () => a("div", { class: "flex gap-2 items-center w-30" }, [a("div", {
60
+ label: () => r("div", { class: "flex gap-2 items-center w-30" }, [r("div", {
65
61
  class: "size-2 rounded-full",
66
62
  style: { backgroundColor: "rgb(var(--ui-color-primary))" }
67
- }, null), a("div", null, [h("components.menu.primaryColor")])]),
63
+ }, null), r("div", null, [f("components.menu.primaryColor")])]),
68
64
  key: "color.primary",
69
- children: S.value?.map((e) => ({
70
- label: () => O(a("div", { class: "flex gap-2 items-center" }, [a("div", {
65
+ children: y.value?.map((e) => ({
66
+ label: () => w(r("div", { class: "flex gap-2 items-center" }, [r("div", {
71
67
  class: "size-2 rounded-full",
72
68
  style: { backgroundColor: `rgb(var(--base-color-${e}-500))` }
73
- }, null), a("div", null, [e])]), w.value.primary === e),
69
+ }, null), r("div", null, [e])]), x.value.primary === e),
74
70
  key: `color.primary.${e}`
75
71
  }))
76
72
  }, {
77
- label: () => a("div", { class: "flex gap-2 items-center w-30" }, [a("div", {
73
+ label: () => r("div", { class: "flex gap-2 items-center w-30" }, [r("div", {
78
74
  class: "size-2 rounded-full",
79
75
  style: { backgroundColor: "rgb(var(--ui-color-gray-600))" }
80
- }, null), a("div", null, [h("components.menu.neutralColor")])]),
76
+ }, null), r("div", null, [f("components.menu.neutralColor")])]),
81
77
  key: "color.neutral",
82
- children: C.value?.map((e) => ({
83
- label: () => O(a("div", { class: "flex gap-2 items-center" }, [a("div", {
78
+ children: b.value?.map((e) => ({
79
+ label: () => w(r("div", { class: "flex gap-2 items-center" }, [r("div", {
84
80
  class: "size-2 rounded-full",
85
81
  style: { backgroundColor: `rgb(var(--base-color-${e}-600))` }
86
- }, null), a("div", null, [e])]), w.value.gray === e),
82
+ }, null), r("div", null, [e])]), x.value.gray === e),
87
83
  key: `color.neutral.${e}`
88
84
  }))
89
85
  }]
90
86
  },
91
87
  {
92
- label: h("components.menu.theme"),
88
+ label: f("components.menu.theme"),
93
89
  key: "theme",
94
- icon: () => k("i-tabler:brightness-half"),
90
+ icon: () => T("i-tabler:brightness-half"),
95
91
  children: [
96
92
  {
97
- label: () => O(h("components.menu.followSystem"), x.value === "auto"),
93
+ label: () => w(f("components.menu.followSystem"), v.value === "auto"),
98
94
  key: "theme.auto"
99
95
  },
100
96
  {
101
- label: () => O(h("components.menu.lightMode"), x.value === "light"),
97
+ label: () => w(f("components.menu.lightMode"), v.value === "light"),
102
98
  key: "theme.light"
103
99
  },
104
100
  {
105
- label: () => O(h("components.menu.darkMode"), x.value === "dark"),
101
+ label: () => w(f("components.menu.darkMode"), v.value === "dark"),
106
102
  key: "theme.dark"
107
103
  }
108
104
  ]
109
105
  },
110
106
  { type: "divider" },
111
107
  {
112
- label: h("components.menu.logout"),
108
+ label: f("components.menu.logout"),
113
109
  key: "logout",
114
- icon: () => k("i-tabler:logout")
110
+ icon: () => T("i-tabler:logout")
115
111
  }
116
112
  ]);
117
- function N(e, t) {
118
- let n = e.lastIndexOf("."), [i, a] = n === -1 ? [e, ""] : [e.substring(0, n), e.substring(n + 1)], o = t, c = String(o?.type || (typeof o?.callback == "function" ? "callback" : o?.loader ? "modal" : o?.url ? "link" : "route"));
119
- switch (i) {
113
+ function k(e, t) {
114
+ let n = e.lastIndexOf("."), [r, i] = n === -1 ? [e, ""] : [e.substring(0, n), e.substring(n + 1)];
115
+ switch (r) {
120
116
  case "locale":
121
- g.changeLocale(a);
117
+ p.changeLocale(i);
122
118
  break;
123
119
  case "color.primary":
124
- T("primary", a);
120
+ S("primary", i);
125
121
  break;
126
122
  case "color.neutral":
127
- T("gray", a);
123
+ S("gray", i);
128
124
  break;
129
125
  case "theme":
130
- E(a);
126
+ C(i);
131
127
  break;
132
128
  case "logout":
133
- b();
129
+ _();
134
130
  break;
135
131
  default:
136
- if (c === "callback") {
137
- o?.callback?.();
138
- return;
139
- }
140
- if (c === "modal") {
141
- if (!o?.loader) return;
142
- D.show({
143
- title: o?.title || String(o?.label || ""),
144
- width: o?.width,
145
- draggable: o?.draggable,
146
- component: s(r),
147
- componentProps: {
148
- loader: String(o.loader),
149
- componentProps: o?.componentProps
150
- }
151
- }).catch(() => {});
152
- return;
153
- }
154
- if (c === "link") {
155
- let e = String(o?.url || o?.path || "");
156
- if (!e) return;
157
- window.open(e, "_blank");
158
- return;
159
- }
160
- if (!o?.path) return;
161
- _.push(y(o.path));
132
+ if (!t?.path) return;
133
+ m.push(g(t.path));
162
134
  }
163
135
  }
164
- return () => a(p, {
165
- options: M.value,
136
+ return () => r(u, {
137
+ options: O.value,
166
138
  placement: "bottom-start",
167
139
  trigger: "click",
168
- onSelect: N,
140
+ onSelect: k,
169
141
  width: 200
170
- }, { default: () => [a(n, {
171
- class: o.btnClass,
172
- labelClass: o.btnLabelClass,
173
- collapsed: o.collapsed
142
+ }, { default: () => [r(t, {
143
+ class: i.btnClass,
144
+ labelClass: i.btnLabelClass,
145
+ collapsed: i.collapsed
174
146
  }, {
175
- icon: () => a(e, {
147
+ icon: () => r(e, {
176
148
  class: "group-hover:shadow-lg",
177
149
  round: !0,
178
150
  size: 28,
179
- src: j.info?.avatar
151
+ src: D.info?.avatar
180
152
  }, null),
181
- default: () => a("div", { class: "flex justify-between" }, [a("div", { class: "flex flex-col" }, [a("div", { class: "text-sm font-medium" }, [j.info?.nickname]), a("div", { class: "text-xs text-muted" }, [j.info?.username])])])
153
+ default: () => r("div", { class: "flex justify-between" }, [r("div", { class: "flex flex-col" }, [r("div", { class: "text-sm font-medium" }, [D.info?.nickname]), r("div", { class: "text-xs text-muted" }, [D.info?.username])])])
182
154
  })] });
183
155
  }
184
156
  });
185
157
  //#endregion
186
- export { h as default };
158
+ export { f as default };
@@ -1,93 +1,76 @@
1
- import { useModal as e } from "../../hooks/modal.js";
2
- import { useUI as t } from "../../hooks/ui.js";
1
+ import { useUI as e } from "../../hooks/ui.js";
3
2
  import "../../hooks/index.js";
4
- import n from "./remoteMenuModal.js";
5
- import r from "./avatar.js";
6
- import i from "./dark.js";
7
- import a from "./notice.js";
8
- import { Transition as o, computed as s, createTextVNode as c, createVNode as l, defineComponent as u, h as d, markRaw as f, onMounted as p } from "vue";
9
- import { DuxLogoIcon as m, useI18n as h, useManage as g, useMenu as _ } from "@duxweb/dvha-core";
10
- import { NButton as v, NMenu as y, NScrollbar as b, NTag as x, NTooltip as S } from "naive-ui";
11
- import { RouterLink as C, useRouter as w } from "vue-router";
12
- import { cloneDeep as T } from "lodash-es";
3
+ import t from "./avatar.js";
4
+ import n from "./dark.js";
5
+ import r from "./notice.js";
6
+ import { Transition as i, computed as a, createTextVNode as o, createVNode as s, defineComponent as c, h as l, onMounted as u } from "vue";
7
+ import { DuxLogoIcon as d, useI18n as f, useManage as p, useMenu as m } from "@duxweb/dvha-core";
8
+ import { NButton as h, NMenu as g, NScrollbar as _, NTag as v, NTooltip as y } from "naive-ui";
9
+ import { RouterLink as b, useRouter as x } from "vue-router";
10
+ import { cloneDeep as S } from "lodash-es";
13
11
  //#region src/pages/menu/menuApp.tsx
14
- var E = /* @__PURE__ */ u({
12
+ var C = /* @__PURE__ */ c({
15
13
  name: "DuxMenuApp",
16
14
  props: { collapsed: {
17
15
  type: Boolean,
18
16
  default: !1
19
17
  } },
20
18
  setup() {
21
- let { setCmdVisible: u, setMenuCollapsed: E } = t(), { config: D } = g(), { t: O } = h(), k = w(), A = e(), { mainMenu: j, subMenu: M, appActive: N, subActive: P, isSubMenu: F } = _({ doubleMenu: !0 });
22
- p(() => {
23
- E(!1);
19
+ let { setCmdVisible: c, setMenuCollapsed: C } = e(), { config: w } = p(), { t: T } = f(), E = x(), { mainMenu: D, subMenu: O, appActive: k, subActive: A, isSubMenu: j } = m({ doubleMenu: !0 });
20
+ u(() => {
21
+ C(!1);
24
22
  });
25
- let I = (e) => e.map((e) => {
23
+ let M = (e) => e.map((e) => {
26
24
  let t = {
27
25
  ...e,
28
26
  key: e.name,
29
- icon: e?.icon ? () => d("div", { class: `${e.icon} size-5` }) : void 0,
27
+ icon: e?.icon ? () => l("div", { class: `${e.icon} size-5` }) : void 0,
30
28
  labelName: e.label,
31
- label: () => e.path ? d(C, { to: { path: e.path } }, { default: () => e.label }) : e.label
29
+ label: () => e.path ? l(b, { to: { path: e.path } }, { default: () => e.label }) : e.label
32
30
  };
33
- return t.children && t.children.length > 0 && (t.children = I(t.children)), t;
34
- }), L = s(() => I(T(j.value))), R = s(() => I(T(M.value)));
35
- return () => l("div", { class: "flex h-screen gap-2 pr-2" }, [l("div", { class: "bg-primary-950 dark:bg-gray-900 w-18 text-inverted z-1 border-r dark:border-muted" }, [l("div", { class: "h-full flex-none flex flex-col" }, [
36
- l("div", { class: "py-4 px-2 hidden lg:flex justify-center items-center" }, [l("div", { class: "bg-white dark:bg-primary-950 rounded-full p-2 shadow group-hover:shadow-lg" }, [D.theme?.appLogo ? l("img", {
31
+ return t.children && t.children.length > 0 && (t.children = M(t.children)), t;
32
+ }), N = a(() => M(S(D.value))), P = a(() => M(S(O.value)));
33
+ return () => s("div", { class: "flex h-screen gap-2 pr-2" }, [s("div", { class: "bg-primary-950 dark:bg-gray-900 w-18 text-inverted z-1 border-r dark:border-muted" }, [s("div", { class: "h-full flex-none flex flex-col" }, [
34
+ s("div", { class: "py-4 px-2 hidden lg:flex justify-center items-center" }, [s("div", { class: "bg-white dark:bg-primary-950 rounded-full p-2 shadow group-hover:shadow-lg" }, [w.theme?.appLogo ? s("img", {
37
35
  class: "size-4",
38
- src: D.theme?.appLogo
39
- }, null) : l(m, {
36
+ src: w.theme?.appLogo
37
+ }, null) : s(d, {
40
38
  highlight: "fill-primary",
41
39
  class: "size-4"
42
40
  }, null)])]),
43
- l("div", { class: "flex-1 min-h-0" }, [l(b, null, { default: () => [l("div", { class: "flex flex-col px-2 gap-2" }, [L.value.map((e, t) => l("div", {
41
+ s("div", { class: "flex-1 min-h-0" }, [s(_, null, { default: () => [s("div", { class: "flex flex-col px-2 gap-2" }, [N.value.map((e, t) => s("div", {
44
42
  key: t,
45
- class: ["flex flex-col gap-1 justify-center items-center py-1.5 cursor-pointer rounded transition-all", e.key === N.value ? "bg-primary/50 text-primary-200" : "text-white/60 hover:text-white"],
43
+ class: ["flex flex-col gap-1 justify-center items-center py-1.5 cursor-pointer rounded transition-all", e.key === k.value ? "bg-primary/50 text-primary-200" : "text-white/60 hover:text-white"],
46
44
  onClick: () => {
47
- N.value = e.key, e?.path && k.push(e.path);
45
+ k.value = e.key, e?.path && E.push(e.path);
48
46
  }
49
- }, [l("div", null, [e.icon?.()]), l("div", { class: "text-xs" }, [typeof e.label == "function" ? e.label?.() : e.label])]))])] })]),
50
- l("div", { class: "flex-none hidden lg:flex flex-col items-center gap-2 p-2" }, [
51
- D.tools?.map((e) => l(S, {
47
+ }, [s("div", null, [e.icon?.()]), s("div", { class: "text-xs" }, [typeof e.label == "function" ? e.label?.() : e.label])]))])] })]),
48
+ s("div", { class: "flex-none hidden lg:flex flex-col items-center gap-2 p-2" }, [
49
+ w.tools?.map((e) => s(y, {
52
50
  trigger: "hover",
53
51
  placement: "right"
54
52
  }, {
55
53
  default: () => e.label,
56
- trigger: () => l(v, {
54
+ trigger: () => s(h, {
57
55
  quaternary: !0,
58
56
  onClick: () => {
59
- let t = String(e?.type || (typeof e?.callback == "function" ? "callback" : e?.loader ? "modal" : e?.url ? "link" : "route"));
60
57
  if (e.callback) {
61
58
  e.callback();
62
59
  return;
63
60
  }
64
- if (t === "modal") {
65
- if (!e?.loader) return;
66
- A.show({
67
- title: e?.title || e.label,
68
- width: e?.width,
69
- draggable: e?.draggable,
70
- component: f(n),
71
- componentProps: {
72
- loader: String(e.loader),
73
- componentProps: e?.componentProps
74
- }
75
- }).catch(() => {});
76
- return;
77
- }
78
61
  if (e.path) {
79
- k.push(e.path);
62
+ E.push(e.path);
80
63
  return;
81
64
  }
82
65
  e.url && window.open(e.url, "_blank");
83
66
  }
84
- }, { icon: () => l("div", { class: "transition-all text-muted p-2 hover:text-white" }, [l("div", { class: `${e.icon} size-5` }, null)]) })
67
+ }, { icon: () => s("div", { class: "transition-all text-muted p-2 hover:text-white" }, [s("div", { class: `${e.icon} size-5` }, null)]) })
85
68
  })),
86
- D.notice?.status && l(a, { collapsed: !0 }, null),
87
- l(i, null, null),
88
- l(r, { collapsed: !0 }, null)
69
+ w.notice?.status && s(r, { collapsed: !0 }, null),
70
+ s(n, null, null),
71
+ s(t, { collapsed: !0 }, null)
89
72
  ])
90
- ])]), l(o, {
73
+ ])]), s(i, {
91
74
  name: "submenu-slide",
92
75
  enterActiveClass: "transition-all duration-150 ease-out",
93
76
  enterFromClass: "opacity-0 translate-x-[-50%]",
@@ -95,31 +78,31 @@ var E = /* @__PURE__ */ u({
95
78
  leaveActiveClass: "transition-all duration-150 ease-in",
96
79
  leaveFromClass: "opacity-100 translate-x-0",
97
80
  leaveToClass: "opacity-0 translate-x-[-50%]"
98
- }, { default: () => [F.value && l("div", null, [l("div", { class: "w-160px overflow-hidden flex flex-col h-full" }, [l("div", { class: "py-2 flex-none" }, [l("div", {
81
+ }, { default: () => [j.value && s("div", null, [s("div", { class: "w-160px overflow-hidden flex flex-col h-full" }, [s("div", { class: "py-2 flex-none" }, [s("div", {
99
82
  class: "rounded-md relative py-2 px-3 bg-white dark:bg-elevated shadow-xs hover:shadow flex items-center gap-2 cursor-pointer transition-all",
100
- onClick: () => u(!0)
83
+ onClick: () => c(!0)
101
84
  }, [
102
- l("div", { class: "i-tabler:search size-4 icon-gradient" }, null),
103
- l("div", { class: "text-muted text-sm flex-1" }, [O("common.search")]),
104
- l("div", { class: "flex items-center gap-1 absolute right-2.5" }, [l(x, {
85
+ s("div", { class: "i-tabler:search size-4 icon-gradient" }, null),
86
+ s("div", { class: "text-muted text-sm flex-1" }, [T("common.search")]),
87
+ s("div", { class: "flex items-center gap-1 absolute right-2.5" }, [s(v, {
105
88
  size: "small",
106
89
  bordered: !1,
107
90
  type: "primary"
108
- }, { default: () => [c("⌘")] }), l(x, {
91
+ }, { default: () => [o("⌘")] }), s(v, {
109
92
  size: "small",
110
93
  bordered: !1,
111
94
  type: "primary"
112
- }, { default: () => [c("K")] })])
113
- ])]), l("div", { class: "flex-1 min-h-0" }, [l(b, null, { default: () => [l(y, {
95
+ }, { default: () => [o("K")] })])
96
+ ])]), s("div", { class: "flex-1 min-h-0" }, [s(_, null, { default: () => [s(g, {
114
97
  rootIndent: 20,
115
98
  indent: 15,
116
99
  class: "app-menu",
117
- options: R.value,
118
- value: P.value,
100
+ options: P.value,
101
+ value: A.value,
119
102
  collapsed: !1,
120
- onUpdateValue: (e) => P.value = e
103
+ onUpdateValue: (e) => A.value = e
121
104
  }, null)] })])])])] })]);
122
105
  }
123
106
  });
124
107
  //#endregion
125
- export { E as DuxMenuApp };
108
+ export { C as DuxMenuApp };
@@ -1,6 +1,4 @@
1
- export declare const DuxAvatar: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
2
- [key: string]: any;
3
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1
+ export declare const DuxAvatar: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
2
  readonly size: import("vue").PropType<import("naive-ui/es/avatar/src/interface").Size>;
5
3
  readonly src: StringConstructor;
6
4
  readonly circle: {
@@ -1,6 +1,4 @@
1
- export declare const DuxImage: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
2
- [key: string]: any;
3
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1
+ export declare const DuxImage: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
2
  onPreviewPrev: import("vue").PropType<() => void>;
5
3
  onPreviewNext: import("vue").PropType<() => void>;
6
4
  showToolbar: {
@@ -1,44 +1,19 @@
1
1
  import type { IDataProviderResponse, IS3SignData } from '@duxweb/dvha-core';
2
2
  import type { App } from 'vue';
3
- import * as vueDraggablePlus from 'vue-draggable-plus';
4
3
  import 'echarts';
5
4
  import 'vue-cropper/dist/index.css';
6
5
  import 'aieditor/dist/style.css';
7
6
  import '@vue-flow/core/dist/style.css';
8
7
  import '@vue-flow/core/dist/theme-default.css';
9
8
  import './theme/style.scss';
10
- export declare const duxProRemotePackages: {
11
- 'vue-draggable-plus': typeof vueDraggablePlus;
12
- };
13
9
  export declare function createDuxPro(): {
14
10
  install(app: App): void;
15
11
  };
16
12
  interface ITool {
17
- label: string;
18
- icon: string;
19
- type?: 'route' | 'link' | 'modal' | 'callback';
20
- path?: string;
21
- url?: string;
22
- loader?: string;
23
- title?: string;
24
- width?: number | string;
25
- draggable?: boolean;
26
- componentProps?: Record<string, any>;
27
- callback?: () => void;
28
- [key: string]: any;
29
- }
30
- interface IUserMenu {
31
- key: string;
32
13
  label: string;
33
14
  icon: string;
34
15
  path?: string;
35
16
  url?: string;
36
- loader?: string;
37
- type?: 'route' | 'link' | 'modal' | 'callback';
38
- title?: string;
39
- width?: number | string;
40
- draggable?: boolean;
41
- componentProps?: Record<string, any>;
42
17
  callback?: () => void;
43
18
  [key: string]: any;
44
19
  }
@@ -66,7 +41,6 @@ declare module '@duxweb/dvha-core' {
66
41
  urlField?: string;
67
42
  };
68
43
  tools?: ITool[];
69
- userMenus?: IUserMenu[];
70
44
  map?: {
71
45
  baiduAk?: string;
72
46
  tiandituTk?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@duxweb/dvha-pro",
3
3
  "type": "module",
4
- "version": "1.2.7",
4
+ "version": "1.2.9",
5
5
  "author": "DuxWeb",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -35,65 +35,65 @@
35
35
  "@unocss/core": "^66.5.5"
36
36
  },
37
37
  "dependencies": {
38
- "@ant-design/colors": "^8.0.1",
39
- "@duxweb/dvha-core": "^1.2.7",
40
- "@duxweb/dvha-naiveui": "^1.2.7",
41
- "@iconify-json/tabler": "^1.2.32",
38
+ "@ant-design/colors": "^7.2.1",
39
+ "@duxweb/dvha-core": "^1.2.9",
40
+ "@duxweb/dvha-naiveui": "^1.2.9",
41
+ "@iconify-json/tabler": "^1.2.23",
42
42
  "@microsoft/fetch-event-source": "^2.0.1",
43
- "@overlastic/vue": "^0.8.7",
44
- "@tanstack/vue-query": "^5.95.2",
45
- "@unocss/preset-icons": "^66.6.7",
46
- "@unocss/preset-typography": "^66.6.7",
47
- "@unocss/runtime": "^66.6.7",
43
+ "@overlastic/vue": "^0.8.3",
44
+ "@tanstack/vue-query": "^5.90.7",
45
+ "@unocss/preset-icons": "^66.5.5",
46
+ "@unocss/preset-typography": "^66.5.5",
47
+ "@unocss/runtime": "^66.5.5",
48
48
  "@vee-validate/i18n": "^4.15.1",
49
49
  "@vee-validate/rules": "^4.15.1",
50
50
  "@vue-flow/background": "^1.3.2",
51
51
  "@vue-flow/controls": "^1.1.3",
52
- "@vue-flow/core": "^1.48.2",
52
+ "@vue-flow/core": "^1.47.0",
53
53
  "@vue-flow/minimap": "^1.5.4",
54
- "@vue-flow/node-resizer": "^1.5.1",
54
+ "@vue-flow/node-resizer": "^1.5.0",
55
55
  "@vue-flow/node-toolbar": "^1.1.1",
56
- "@vueuse/core": "^14.2.1",
57
- "@vueuse/integrations": "^14.2.1",
58
- "ace-builds": "^1.43.6",
56
+ "@vueuse/core": "^14.0.0",
57
+ "@vueuse/integrations": "^14.0.0",
58
+ "ace-builds": "^1.43.4",
59
59
  "aieditor": "^1.4.2",
60
60
  "clsx": "^2.1.1",
61
- "colorizr": "^4.0.1",
62
- "dayjs": "^1.11.20",
61
+ "colorizr": "^3.0.8",
62
+ "dayjs": "^1.11.19",
63
63
  "echarts": "^6.0.0",
64
64
  "fabric": "^7.2.0",
65
65
  "highlight.js": "^11.11.1",
66
66
  "jinrishici": "^1.0.6",
67
67
  "jsep": "^1.4.0",
68
- "lodash-es": "^4.17.23",
69
- "mathjs": "^15.1.1",
68
+ "lodash-es": "^4.17.21",
69
+ "mathjs": "^15.1.0",
70
70
  "mime": "^4.1.0",
71
71
  "naive-ui": "^2.44.1",
72
72
  "pinia": "^3.0.4",
73
73
  "pinia-plugin-persistedstate": "^4.7.1",
74
74
  "short-unique-id": "^5.3.2",
75
- "unocss": "^66.6.7",
75
+ "unocss": "^66.5.5",
76
76
  "vee-validate": "^4.15.1",
77
77
  "vue": "^3.5.31",
78
78
  "vue-command-palette": "^0.2.3",
79
79
  "vue-cropper": "^1.1.4",
80
- "vue-draggable-plus": "^0.6.1",
80
+ "vue-draggable-plus": "^0.6.0",
81
81
  "vue-echarts": "^8.0.1",
82
- "vue-router": "^4.6.4",
82
+ "vue-router": "^5.0.4",
83
83
  "vue3-ace-editor": "^2.2.4"
84
84
  },
85
85
  "devDependencies": {
86
- "@unocss/cli": "^66.6.7",
87
- "@unocss/core": "^66.6.7",
88
- "rimraf": "^6.1.3",
89
- "sass-embedded": "^1.98.0",
86
+ "@unocss/cli": "^66.5.5",
87
+ "@unocss/core": "^66.5.5",
88
+ "rimraf": "^6.1.0",
89
+ "sass-embedded": "^1.93.3",
90
90
  "tslib": "^2.8.1",
91
- "vue-tsc": "^3.2.6"
91
+ "vue-tsc": "^3.1.3"
92
92
  },
93
93
  "scripts": {
94
94
  "clean": "rimraf dist",
95
- "build": "pnpm run clean && vue-tsc -p tsconfig.build.json --noEmit && pnpm run build:uno && vite build && pnpm run build:types",
96
- "build:types": "vue-tsc -p tsconfig.build.json --declaration --emitDeclarationOnly --outDir dist/types",
95
+ "build": "pnpm run clean && vue-tsc --noEmit && pnpm run build:uno && vite build && pnpm run build:types",
96
+ "build:types": "vue-tsc --declaration --emitDeclarationOnly --outDir dist/types",
97
97
  "build:uno": "unocss -c uno.config.ts './src/**/*' -o ./src/theme/uno.css",
98
98
  "lint": "eslint .",
99
99
  "lint:fix": "eslint . --fix"
@@ -1 +0,0 @@
1
- require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`./selectModal.cjs`);let t=require(`vue`);function n(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!(0,t.isVNode)(e)}var r=(0,t.defineComponent)({name:`DuxSelectModalLazy`,inheritAttrs:!1,setup(r,{attrs:i,slots:a}){return()=>(0,t.createVNode)(e.default,i,n(a)?a:{default:()=>[a]})}});exports.default=r;
@@ -1 +0,0 @@
1
- require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`./manager.cjs`);let t=require(`vue`);function n(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!(0,t.isVNode)(e)}var r=(0,t.defineComponent)({name:`DuxFileManageLazy`,inheritAttrs:!1,setup(r,{attrs:i,slots:a}){return()=>(0,t.createVNode)(e.default,i,n(a)?a:{default:()=>[a]})}});exports.default=r;
@@ -1 +0,0 @@
1
- require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../components/modal/modalPage.cjs`);require(`../../components/index.cjs`);let t=require(`vue`),n=require(`@duxweb/dvha-core`),r=require(`naive-ui`);var i=(0,t.defineComponent)({name:`DuxRemoteMenuModal`,props:{loader:{type:String,required:!0},title:{type:String,default:``},draggable:{type:Boolean,default:!1},handle:{type:String,default:``},onClose:{type:Function,default:null},onConfirm:{type:Function,default:null},componentProps:{type:Object,default:()=>({})}},setup(i){let a=(0,t.defineAsyncComponent)({loader:(0,n.sfcLoader)(i.loader)});return()=>(0,t.createVNode)(e.default,{title:i.title,draggable:i.draggable,handle:i.handle,onClose:i.onClose},{default:()=>[(0,t.createVNode)(t.Suspense,null,{default:()=>(0,t.createVNode)(a,(0,t.mergeProps)(i.componentProps,{onClose:i.onClose,onConfirm:i.onConfirm}),null),fallback:()=>(0,t.createVNode)(r.NSpin,{show:!0},{default:()=>[(0,t.createVNode)(`div`,{class:`h-100`},null)]})})]})}});exports.default=i;
@@ -1,15 +0,0 @@
1
- import e from "./selectModal.js";
2
- import { createVNode as t, defineComponent as n, isVNode as r } from "vue";
3
- //#region src/components/data/selectModal.lazy.tsx
4
- function i(e) {
5
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !r(e);
6
- }
7
- var a = /* @__PURE__ */ n({
8
- name: "DuxSelectModalLazy",
9
- inheritAttrs: !1,
10
- setup(n, { attrs: r, slots: a }) {
11
- return () => t(e, r, i(a) ? a : { default: () => [a] });
12
- }
13
- });
14
- //#endregion
15
- export { a as default };
@@ -1,15 +0,0 @@
1
- import e from "./manager.js";
2
- import { createVNode as t, defineComponent as n, isVNode as r } from "vue";
3
- //#region src/components/upload/manager.lazy.tsx
4
- function i(e) {
5
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !r(e);
6
- }
7
- var a = /* @__PURE__ */ n({
8
- name: "DuxFileManageLazy",
9
- inheritAttrs: !1,
10
- setup(n, { attrs: r, slots: a }) {
11
- return () => t(e, r, i(a) ? a : { default: () => [a] });
12
- }
13
- });
14
- //#endregion
15
- export { a as default };