@duxweb/dvha-pro 1.0.18 → 1.0.20

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 (147) hide show
  1. package/dist/cjs/component.cjs +1 -1
  2. package/dist/cjs/components/card/card.cjs +1 -1
  3. package/dist/cjs/components/chart/echart.cjs +1 -1
  4. package/dist/cjs/components/code/code.cjs +1 -0
  5. package/dist/cjs/components/crop/imageCrop.cjs +1 -1
  6. package/dist/cjs/components/data/dynamicSelect.cjs +1 -1
  7. package/dist/cjs/components/data/selectModal.cjs +1 -1
  8. package/dist/cjs/components/drawer/drawer.cjs +1 -1
  9. package/dist/cjs/components/drawer/drawerPage.cjs +1 -1
  10. package/dist/cjs/components/form/formItem.cjs +1 -1
  11. package/dist/cjs/components/form/formLayout.cjs +1 -1
  12. package/dist/cjs/components/form/modalForm.cjs +1 -1
  13. package/dist/cjs/components/form/pageForm.cjs +1 -1
  14. package/dist/cjs/components/form/settingForm.cjs +1 -1
  15. package/dist/cjs/components/icon/icon.cjs +1 -1
  16. package/dist/cjs/components/layout/filter.cjs +1 -1
  17. package/dist/cjs/components/layout/filterLayout.cjs +1 -0
  18. package/dist/cjs/components/layout/list.cjs +1 -1
  19. package/dist/cjs/components/layout/table.cjs +1 -1
  20. package/dist/cjs/components/level/level.cjs +1 -1
  21. package/dist/cjs/components/modal/modal.cjs +1 -1
  22. package/dist/cjs/components/modal/modalPage.cjs +1 -1
  23. package/dist/cjs/components/panel/collapse.cjs +1 -0
  24. package/dist/cjs/components/panel/setting.cjs +1 -1
  25. package/dist/cjs/components/status/listEmpty.cjs +1 -0
  26. package/dist/cjs/components/table/table.cjs +1 -0
  27. package/dist/cjs/components/table/tablePage.cjs +1 -1
  28. package/dist/cjs/components/tree/treeFilter.cjs +1 -1
  29. package/dist/cjs/components/upload/config.cjs +1 -0
  30. package/dist/cjs/components/upload/file.cjs +1 -1
  31. package/dist/cjs/components/upload/image.cjs +1 -1
  32. package/dist/cjs/components/upload/manage/item.cjs +1 -1
  33. package/dist/cjs/components/upload/manager.cjs +1 -1
  34. package/dist/cjs/dvha-pro.css +1 -1
  35. package/dist/cjs/hooks/action.cjs +1 -1
  36. package/dist/cjs/hooks/dialog.cjs +1 -1
  37. package/dist/cjs/hooks/drawer.cjs +1 -1
  38. package/dist/cjs/hooks/modal.cjs +1 -1
  39. package/dist/cjs/hooks/table/image.cjs +1 -1
  40. package/dist/cjs/hooks/table/media.cjs +1 -1
  41. package/dist/cjs/hooks/table.cjs +1 -1
  42. package/dist/cjs/index.cjs +1 -1
  43. package/dist/cjs/langs/en-US.json.cjs +1 -1
  44. package/dist/cjs/langs/zh-CN.json.cjs +1 -1
  45. package/dist/cjs/pages/authLayout.cjs +1 -1
  46. package/dist/cjs/pages/layout/page.cjs +1 -1
  47. package/dist/cjs/pages/login.cjs +1 -1
  48. package/dist/cjs/pages/menu/avatar.cjs +1 -1
  49. package/dist/cjs/pages/menu/button.cjs +1 -1
  50. package/dist/cjs/pages/menu/cmd.cjs +1 -1
  51. package/dist/cjs/pages/menu/main.cjs +1 -1
  52. package/dist/cjs/pages/menu/mobile.cjs +1 -1
  53. package/dist/cjs/pages/page.cjs +1 -1
  54. package/dist/cjs/pages/page404.cjs +1 -1
  55. package/dist/cjs/pages/pageStatus.cjs +1 -1
  56. package/dist/cjs/theme/naiveTheme.cjs +1 -1
  57. package/dist/cjs/theme/uno.css.cjs +23 -7
  58. package/dist/esm/component.js +36 -34
  59. package/dist/esm/components/card/card.js +6 -6
  60. package/dist/esm/components/chart/echart.js +17 -6
  61. package/dist/esm/components/code/code.js +53 -0
  62. package/dist/esm/components/crop/imageCrop.js +37 -26
  63. package/dist/esm/components/data/dynamicSelect.js +29 -18
  64. package/dist/esm/components/data/selectModal.js +49 -38
  65. package/dist/esm/components/drawer/drawer.js +17 -28
  66. package/dist/esm/components/drawer/drawerPage.js +54 -17
  67. package/dist/esm/components/form/formItem.js +17 -17
  68. package/dist/esm/components/form/formLayout.js +8 -8
  69. package/dist/esm/components/form/modalForm.js +44 -35
  70. package/dist/esm/components/form/pageForm.js +81 -43
  71. package/dist/esm/components/form/settingForm.js +28 -17
  72. package/dist/esm/components/icon/icon.js +23 -12
  73. package/dist/esm/components/layout/filter.js +15 -11
  74. package/dist/esm/components/layout/filterLayout.js +34 -0
  75. package/dist/esm/components/layout/list.js +211 -161
  76. package/dist/esm/components/layout/table.js +217 -186
  77. package/dist/esm/components/level/level.js +28 -17
  78. package/dist/esm/components/modal/modal.js +9 -9
  79. package/dist/esm/components/modal/modalPage.js +2 -2
  80. package/dist/esm/components/panel/collapse.js +49 -0
  81. package/dist/esm/components/panel/setting.js +3 -3
  82. package/dist/esm/components/status/listEmpty.js +26 -0
  83. package/dist/esm/components/table/table.js +110 -0
  84. package/dist/esm/components/table/tablePage.js +24 -18
  85. package/dist/esm/components/tree/treeFilter.js +44 -39
  86. package/dist/esm/components/upload/config.js +32 -0
  87. package/dist/esm/components/upload/file.js +142 -116
  88. package/dist/esm/components/upload/image.js +95 -66
  89. package/dist/esm/components/upload/manage/item.js +17 -6
  90. package/dist/esm/components/upload/manager.js +202 -164
  91. package/dist/esm/dvha-pro.css +1 -1
  92. package/dist/esm/hooks/action.js +77 -75
  93. package/dist/esm/hooks/dialog.js +13 -2
  94. package/dist/esm/hooks/drawer.js +13 -2
  95. package/dist/esm/hooks/modal.js +13 -2
  96. package/dist/esm/hooks/table/image.js +21 -10
  97. package/dist/esm/hooks/table/media.js +20 -9
  98. package/dist/esm/hooks/table.js +16 -16
  99. package/dist/esm/index.js +174 -164
  100. package/dist/esm/langs/en-US.json.js +5 -3
  101. package/dist/esm/langs/zh-CN.json.js +5 -3
  102. package/dist/esm/pages/authLayout.js +19 -8
  103. package/dist/esm/pages/layout/page.js +17 -6
  104. package/dist/esm/pages/login.js +40 -29
  105. package/dist/esm/pages/menu/avatar.js +97 -86
  106. package/dist/esm/pages/menu/button.js +23 -12
  107. package/dist/esm/pages/menu/cmd.js +45 -34
  108. package/dist/esm/pages/menu/main.js +40 -27
  109. package/dist/esm/pages/menu/mobile.js +13 -2
  110. package/dist/esm/pages/page.js +1 -1
  111. package/dist/esm/pages/page404.js +20 -9
  112. package/dist/esm/pages/pageStatus.js +31 -15
  113. package/dist/esm/theme/naiveTheme.js +6 -6
  114. package/dist/esm/theme/uno.css.js +23 -7
  115. package/dist/types/components/code/code.d.ts +44 -0
  116. package/dist/types/components/code/index.d.ts +1 -0
  117. package/dist/types/components/drawer/drawer.d.ts +2 -0
  118. package/dist/types/components/drawer/drawerPage.d.ts +20 -1
  119. package/dist/types/components/form/formItem.d.ts +2 -2
  120. package/dist/types/components/form/formLayout.d.ts +3 -3
  121. package/dist/types/components/form/modalForm.d.ts +3 -3
  122. package/dist/types/components/form/pageForm.d.ts +12 -0
  123. package/dist/types/components/index.d.ts +1 -0
  124. package/dist/types/components/layout/filterLayout.d.ts +32 -0
  125. package/dist/types/components/layout/index.d.ts +1 -0
  126. package/dist/types/components/layout/list.d.ts +7 -1
  127. package/dist/types/components/layout/table.d.ts +10 -1
  128. package/dist/types/components/list/card.d.ts +6 -0
  129. package/dist/types/components/list/list.d.ts +6 -0
  130. package/dist/types/components/panel/collapse.d.ts +14 -0
  131. package/dist/types/components/panel/index.d.ts +1 -0
  132. package/dist/types/components/select/cardSelect.d.ts +1 -1
  133. package/dist/types/components/status/index.d.ts +1 -0
  134. package/dist/types/components/status/listEmpty.d.ts +11 -0
  135. package/dist/types/components/table/index.d.ts +1 -0
  136. package/dist/types/components/table/table.d.ts +6552 -0
  137. package/dist/types/components/table/tablePage.d.ts +9 -0
  138. package/dist/types/components/tree/treeFilter.d.ts +13 -12
  139. package/dist/types/components/upload/config.d.ts +13 -0
  140. package/dist/types/components/upload/file.d.ts +4 -0
  141. package/dist/types/components/upload/image.d.ts +30 -2
  142. package/dist/types/components/upload/manager.d.ts +4 -0
  143. package/dist/types/hooks/drawer.d.ts +1 -0
  144. package/dist/types/hooks/table/types.d.ts +1 -0
  145. package/dist/types/main.d.ts +6 -0
  146. package/dist/types/pages/pageStatus.d.ts +11 -1
  147. package/package.json +7 -5
@@ -1,9 +1,9 @@
1
- import { defineComponent as M, ref as d, watch as m, computed as w, createVNode as t, Fragment as V, createTextVNode as B } from "vue";
1
+ import { defineComponent as M, ref as d, watch as u, 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 y, NButton as G } from "naive-ui";
6
- import { Command as n } from "vue-command-palette";
6
+ import { Command as i } from "vue-command-palette";
7
7
  import { useRouter as L } from "vue-router";
8
8
  import "@overlastic/vue";
9
9
  import "clsx";
@@ -26,36 +26,47 @@ import "@duxweb/dvha-naiveui";
26
26
  import "../page404.js";
27
27
  import "@iconify-json/tabler/icons.json";
28
28
  import "mime";
29
+ import "vue3-ace-editor";
30
+ import "ace-builds/src-noconflict/mode-vue";
31
+ import "ace-builds/src-noconflict/mode-javascript";
32
+ import "ace-builds/src-noconflict/mode-html";
33
+ import "ace-builds/src-noconflict/mode-json";
34
+ import "ace-builds/src-noconflict/mode-json5";
35
+ import "ace-builds/src-noconflict/theme-tomorrow_night";
36
+ import "ace-builds/src-noconflict/theme-tomorrow";
37
+ import "ace-builds/src-noconflict/ext-searchbox";
38
+ import "ace-builds/src-noconflict/ext-language_tools";
39
+ import "ace-builds/src-noconflict/mode-snippets";
29
40
  import "dayjs";
30
41
  import "@tanstack/vue-query";
31
42
  import { useUI as q } from "../../hooks/ui.js";
32
- const pe = /* @__PURE__ */ M({
43
+ const we = /* @__PURE__ */ M({
33
44
  name: "DuxMenuCmd",
34
45
  setup() {
35
46
  const {
36
- cmdVisible: b,
47
+ cmdVisible: v,
37
48
  setCmdVisible: s
38
- } = q(), f = R(), S = f["Meta+K"], c = d(), i = d([]), C = L(), o = D(), {
39
- setMode: p
40
- } = T(), u = d(""), {
49
+ } = q(), f = R(), S = f["Meta+K"], c = d(), n = d([]), C = L(), o = D(), {
50
+ setMode: b
51
+ } = T(), m = d(""), {
41
52
  t: a
42
53
  } = K(), g = d(), x = (e) => {
43
54
  const l = o.routes.filter((r) => r.parent === e);
44
- c.value = e, i.value = l;
55
+ c.value = e, n.value = l;
45
56
  }, N = () => {
46
57
  s(!0);
47
58
  }, z = () => {
48
59
  s(!1);
49
60
  }, I = (e) => {
50
- e ? i.value = [...E(o.routes).filter((l) => {
61
+ e ? n.value = [...E(o.routes).filter((l) => {
51
62
  var r;
52
63
  return (r = l.label) == null ? void 0 : r.includes(e);
53
- })] : i.value = o.routes.filter((l) => !l.parent);
64
+ })] : n.value = o.routes.filter((l) => !l.parent);
54
65
  };
55
- m(b, (e) => {
56
- e ? i.value = o.routes.filter((l) => !l.parent) : i.value = o.routes.filter((l) => !l.parent);
57
- }), j(u, () => {
58
- I(u.value);
66
+ u(v, (e) => {
67
+ e ? n.value = o.routes.filter((l) => !l.parent) : n.value = o.routes.filter((l) => !l.parent);
68
+ }), j(m, () => {
69
+ I(m.value);
59
70
  }, {
60
71
  throttle: 500
61
72
  });
@@ -63,16 +74,16 @@ const pe = /* @__PURE__ */ M({
63
74
  const e = o.routes.find((l) => l.name === c.value);
64
75
  x(e == null ? void 0 : e.parent);
65
76
  };
66
- m(S, (e) => {
77
+ u(S, (e) => {
67
78
  e && N();
68
- }), m(f.Escape, (e) => {
79
+ }), u(f.Escape, (e) => {
69
80
  e && s(!1);
70
- }), m(f.Backspace, (e) => {
71
- e && u.value === "" && c.value && k();
72
- }), m(g, (e) => {
81
+ }), u(f.Backspace, (e) => {
82
+ e && m.value === "" && c.value && k();
83
+ }), u(g, (e) => {
73
84
  e && e.focus();
74
85
  });
75
- const h = w(() => i.value.filter((e) => e.hidden === void 0 || e.hidden === !1)), v = (e) => t(n.Item, {
86
+ const h = w(() => n.value.filter((e) => e.hidden === void 0 || e.hidden === !1)), p = (e) => t(i.Item, {
76
87
  onSelect: e == null ? void 0 : e.onSelect
77
88
  }, {
78
89
  default: () => [t("div", {
@@ -87,8 +98,8 @@ const pe = /* @__PURE__ */ M({
87
98
  default: () => [e == null ? void 0 : e.keyName]
88
99
  })])])]
89
100
  });
90
- return () => t(n.Dialog, {
91
- visible: b.value,
101
+ return () => t(i.Dialog, {
102
+ visible: v.value,
92
103
  theme: "command-palette"
93
104
  }, {
94
105
  header: () => t("div", {
@@ -97,7 +108,7 @@ const pe = /* @__PURE__ */ M({
97
108
  ref: g,
98
109
  placeholder: a("common.search"),
99
110
  onInput: (e) => {
100
- u.value = e.target.value;
111
+ m.value = e.target.value;
101
112
  },
102
113
  class: "w-full h-12 text-base/5 rounded-md border-0 placeholder:text-dimmed outline-0 px-2.5 py-1.5 text-sm gap-1.5 text-highlighted bg-transparent ps-10 pe-10"
103
114
  }, null), t("span", {
@@ -122,15 +133,15 @@ const pe = /* @__PURE__ */ M({
122
133
  "aria-hidden": "true"
123
134
  }, null)
124
135
  })])]),
125
- body: () => t(V, null, [h.value.length === 0 && u.value && t("div", {
136
+ body: () => t(V, null, [h.value.length === 0 && m.value && t("div", {
126
137
  class: "flex items-center justify-center h-20 border-t border-muted"
127
- }, [a("common.empty")]), h.value.length > 0 && t(n.List, null, {
128
- default: () => [t(n.Group, {
138
+ }, [a("common.empty")]), h.value.length > 0 && t(i.List, null, {
139
+ default: () => [t(i.Group, {
129
140
  heading: a("common.menu")
130
141
  }, {
131
142
  default: () => {
132
143
  var e;
133
- return [(e = h.value) == null ? void 0 : e.map((l, r) => t(n.Item, {
144
+ return [(e = h.value) == null ? void 0 : e.map((l, r) => t(i.Item, {
134
145
  key: r,
135
146
  onSelect: () => {
136
147
  l.path ? (C.push(l.path), z()) : x(l.name);
@@ -141,25 +152,25 @@ const pe = /* @__PURE__ */ M({
141
152
  }, null), l.label]
142
153
  }))];
143
154
  }
144
- }), t(n.Separator, null, null), c.value ? t(v, {
155
+ }), t(i.Separator, null, null), c.value ? t(p, {
145
156
  icon: "i-tabler:arrow-left",
146
157
  label: a("common.back"),
147
158
  onSelect: k,
148
159
  keyName: "Backspace"
149
- }, null) : t(n.Group, {
160
+ }, null) : t(i.Group, {
150
161
  heading: a("common.theme")
151
162
  }, {
152
- default: () => [t(v, {
163
+ default: () => [t(p, {
153
164
  icon: "i-tabler:moon",
154
165
  label: a("common.dark"),
155
166
  onSelect: () => {
156
- p("dark");
167
+ b("dark");
157
168
  }
158
- }, null), t(v, {
169
+ }, null), t(p, {
159
170
  icon: "i-tabler:sun",
160
171
  label: a("common.light"),
161
172
  onSelect: () => {
162
- p("light");
173
+ b("light");
163
174
  }
164
175
  }, null)]
165
176
  })]
@@ -168,5 +179,5 @@ const pe = /* @__PURE__ */ M({
168
179
  }
169
180
  });
170
181
  export {
171
- pe as DuxMenuCmd
182
+ we as DuxMenuCmd
172
183
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as c, createVNode as e, createTextVNode as i } 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, NMenu as h } from "naive-ui";
4
+ import { NTag as r, NScrollbar as h, NMenu as b } from "naive-ui";
5
5
  import "vue-router";
6
6
  import "@overlastic/vue";
7
7
  import "clsx";
@@ -22,16 +22,27 @@ import "@unocss/preset-typography";
22
22
  import "unocss/preset-wind4";
23
23
  import "@vee-validate/i18n/dist/locale/en.json";
24
24
  import "@vee-validate/i18n/dist/locale/zh_CN.json";
25
- import b from "./avatar.js";
26
- import a from "./button.js";
25
+ import M from "./avatar.js";
26
+ import p from "./button.js";
27
27
  import "vue-command-palette";
28
28
  import "../page404.js";
29
29
  import "@iconify-json/tabler/icons.json";
30
30
  import "mime";
31
+ import "vue3-ace-editor";
32
+ import "ace-builds/src-noconflict/mode-vue";
33
+ import "ace-builds/src-noconflict/mode-javascript";
34
+ import "ace-builds/src-noconflict/mode-html";
35
+ import "ace-builds/src-noconflict/mode-json";
36
+ import "ace-builds/src-noconflict/mode-json5";
37
+ import "ace-builds/src-noconflict/theme-tomorrow_night";
38
+ import "ace-builds/src-noconflict/theme-tomorrow";
39
+ import "ace-builds/src-noconflict/ext-searchbox";
40
+ import "ace-builds/src-noconflict/ext-language_tools";
41
+ import "ace-builds/src-noconflict/mode-snippets";
31
42
  import "dayjs";
32
43
  import "@tanstack/vue-query";
33
- import { useUI as M } from "../../hooks/ui.js";
34
- const ee = /* @__PURE__ */ c({
44
+ import { useUI as y } from "../../hooks/ui.js";
45
+ const ue = /* @__PURE__ */ c({
35
46
  name: "DuxMenuMain",
36
47
  props: {
37
48
  collapsed: {
@@ -41,14 +52,14 @@ const ee = /* @__PURE__ */ c({
41
52
  },
42
53
  setup(o) {
43
54
  const {
44
- options: s,
45
- active: p
55
+ options: a,
56
+ active: m
46
57
  } = g({}), {
47
- menuCollapsed: l,
48
- setCmdVisible: m,
49
- menuMobileCollapsed: t,
58
+ menuCollapsed: t,
59
+ setCmdVisible: s,
60
+ menuMobileCollapsed: l,
50
61
  setMenuCollapsed: d
51
- } = M(), {
62
+ } = y(), {
52
63
  config: n
53
64
  } = f(), {
54
65
  t: u
@@ -57,8 +68,8 @@ const ee = /* @__PURE__ */ c({
57
68
  class: "flex flex-col h-screen px-1"
58
69
  }, [e("div", {
59
70
  class: "h-13 px-2 hidden lg:flex justify-center items-center"
60
- }, [e(a, {
61
- onClick: () => d(!l.value),
71
+ }, [e(p, {
72
+ onClick: () => d(!t.value),
62
73
  collapsed: o.collapsed
63
74
  }, {
64
75
  icon: () => e("div", {
@@ -70,18 +81,18 @@ const ee = /* @__PURE__ */ c({
70
81
  default: () => e("div", null, [n.title])
71
82
  })]), e("div", {
72
83
  class: "px-2 py-1 hidden lg:block"
73
- }, [e(a, {
84
+ }, [e(p, {
74
85
  collapsed: o.collapsed,
75
86
  inverted: !0,
76
87
  class: "relative py-1.5 px-3",
77
- onClick: () => m(!0)
88
+ onClick: () => s(!0)
78
89
  }, {
79
90
  icon: () => e("div", {
80
91
  class: "i-tabler:search size-4 icon-gradient"
81
92
  }, null),
82
93
  default: () => e("div", {
83
94
  class: "text-muted text-sm"
84
- }, [u("common.search"), !l.value && e("div", {
95
+ }, [u("common.search"), !t.value && e("div", {
85
96
  class: "flex items-center gap-1 absolute right-2.5 top-1.3"
86
97
  }, [e(r, {
87
98
  size: "small",
@@ -97,21 +108,23 @@ const ee = /* @__PURE__ */ c({
97
108
  default: () => [i("K")]
98
109
  })])])
99
110
  })]), e("div", {
100
- class: ["flex-1 min-h-0", t.value ? "border-t border-muted" : ""]
101
- }, [e(h, {
102
- options: s.value,
103
- value: p.value,
104
- collapsed: l.value && !t.value,
105
- indent: 20,
106
- collapsedWidth: 60,
107
- collapsedIconSize: 20
108
- }, null)]), e("div", {
111
+ class: ["flex-1 min-h-0", l.value ? "border-t border-muted" : ""]
112
+ }, [e(h, null, {
113
+ default: () => [e(b, {
114
+ options: a.value,
115
+ value: m.value,
116
+ collapsed: t.value && !l.value,
117
+ indent: 20,
118
+ collapsedWidth: 60,
119
+ collapsedIconSize: 20
120
+ }, null)]
121
+ })]), e("div", {
109
122
  class: "flex-none hidden lg:flex flex-col items-center gap-2 p-2 border-t border-muted/50"
110
- }, [e(b, {
123
+ }, [e(M, {
111
124
  collapsed: o.collapsed
112
125
  }, null)])]);
113
126
  }
114
127
  });
115
128
  export {
116
- ee as DuxMenuMain
129
+ ue as DuxMenuMain
117
130
  };
@@ -27,10 +27,21 @@ import "@duxweb/dvha-naiveui";
27
27
  import "../page404.js";
28
28
  import "@iconify-json/tabler/icons.json";
29
29
  import "mime";
30
+ import "vue3-ace-editor";
31
+ import "ace-builds/src-noconflict/mode-vue";
32
+ import "ace-builds/src-noconflict/mode-javascript";
33
+ import "ace-builds/src-noconflict/mode-html";
34
+ import "ace-builds/src-noconflict/mode-json";
35
+ import "ace-builds/src-noconflict/mode-json5";
36
+ import "ace-builds/src-noconflict/theme-tomorrow_night";
37
+ import "ace-builds/src-noconflict/theme-tomorrow";
38
+ import "ace-builds/src-noconflict/ext-searchbox";
39
+ import "ace-builds/src-noconflict/ext-language_tools";
40
+ import "ace-builds/src-noconflict/mode-snippets";
30
41
  import "dayjs";
31
42
  import "@tanstack/vue-query";
32
43
  import { useUI as e } from "../../hooks/ui.js";
33
- const H = /* @__PURE__ */ p({
44
+ const Y = /* @__PURE__ */ p({
34
45
  name: "DuxMobileMenu",
35
46
  props: {},
36
47
  setup(l) {
@@ -50,5 +61,5 @@ const H = /* @__PURE__ */ p({
50
61
  }
51
62
  });
52
63
  export {
53
- H as DuxMobileMenu
64
+ Y as DuxMobileMenu
54
65
  };
@@ -29,7 +29,7 @@ const x = /* @__PURE__ */ m({
29
29
  };
30
30
  return () => {
31
31
  var t, o, i;
32
- const r = a.card ? "bg-default dark:bg-muted rounded-md shadow-xs lg:dark:border lg:dark:border-muted" : "", n = a.card && a.padding ? "p-3" : "", l = a.scrollbar ? "" : "h-full";
32
+ const r = a.card ? "bg-default dark:bg-muted rounded shadow-xs lg:dark:border lg:dark:border-muted" : "", n = a.card && a.padding ? "p-3" : "", l = a.scrollbar ? "" : "h-full";
33
33
  return c("div", {
34
34
  class: "h-full flex-1 flex gap-2 relative"
35
35
  }, [c("div", {
@@ -30,20 +30,31 @@ import "@vee-validate/i18n/dist/locale/zh_CN.json";
30
30
  import "vue-command-palette";
31
31
  import { DuxPageStatus as d } from "./pageStatus.js";
32
32
  import "@iconify-json/tabler/icons.json";
33
+ import "vue3-ace-editor";
34
+ import "ace-builds/src-noconflict/mode-vue";
35
+ import "ace-builds/src-noconflict/mode-javascript";
36
+ import "ace-builds/src-noconflict/mode-html";
37
+ import "ace-builds/src-noconflict/mode-json";
38
+ import "ace-builds/src-noconflict/mode-json5";
39
+ import "ace-builds/src-noconflict/theme-tomorrow_night";
40
+ import "ace-builds/src-noconflict/theme-tomorrow";
41
+ import "ace-builds/src-noconflict/ext-searchbox";
42
+ import "ace-builds/src-noconflict/ext-language_tools";
43
+ import "ace-builds/src-noconflict/mode-snippets";
33
44
  function g(o) {
34
45
  return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !u(o);
35
46
  }
36
47
  const D = /* @__PURE__ */ n({
37
48
  name: "DuxPage404",
38
49
  setup(o) {
39
- const i = l(), p = c(), {
50
+ const p = l(), m = c(), {
40
51
  t: r
41
52
  } = s();
42
- function m() {
43
- p.push({
44
- path: i.path,
53
+ function e() {
54
+ m.push({
55
+ path: p.path,
45
56
  query: {
46
- ...i.query,
57
+ ...p.query,
47
58
  t: Date.now()
48
59
  }
49
60
  });
@@ -54,14 +65,14 @@ const D = /* @__PURE__ */ n({
54
65
  }, {
55
66
  default: () => t("div", null, [t(f, null, null)]),
56
67
  action: () => {
57
- let e;
68
+ let i;
58
69
  return t(a, {
59
- onClick: m,
70
+ onClick: e,
60
71
  renderIcon: () => t("div", {
61
72
  class: "n-icon i-tabler:refresh"
62
73
  }, null)
63
- }, g(e = r("components.button.refresh")) ? e : {
64
- default: () => [e]
74
+ }, g(i = r("components.button.refresh")) ? i : {
75
+ default: () => [i]
65
76
  });
66
77
  }
67
78
  });
@@ -1,4 +1,4 @@
1
- import { defineComponent as o, createVNode as t } from "vue";
1
+ import { defineComponent as o, createVNode as i } from "vue";
2
2
  import { DuxCard as p } from "../components/card/card.js";
3
3
  import "clsx";
4
4
  import "naive-ui";
@@ -30,37 +30,53 @@ import "@vee-validate/i18n/dist/locale/zh_CN.json";
30
30
  import "vue-command-palette";
31
31
  import "./page404.js";
32
32
  import "@iconify-json/tabler/icons.json";
33
- const J = /* @__PURE__ */ o({
33
+ import "vue3-ace-editor";
34
+ import "ace-builds/src-noconflict/mode-vue";
35
+ import "ace-builds/src-noconflict/mode-javascript";
36
+ import "ace-builds/src-noconflict/mode-html";
37
+ import "ace-builds/src-noconflict/mode-json";
38
+ import "ace-builds/src-noconflict/mode-json5";
39
+ import "ace-builds/src-noconflict/theme-tomorrow_night";
40
+ import "ace-builds/src-noconflict/theme-tomorrow";
41
+ import "ace-builds/src-noconflict/ext-searchbox";
42
+ import "ace-builds/src-noconflict/ext-language_tools";
43
+ import "ace-builds/src-noconflict/mode-snippets";
44
+ const Y = /* @__PURE__ */ o({
34
45
  name: "DuxPageStatus",
35
46
  props: {
36
47
  title: String,
37
- desc: String
48
+ desc: String,
49
+ bordered: {
50
+ type: Boolean,
51
+ default: !0
52
+ }
38
53
  },
39
- setup(i, {
54
+ setup(t, {
40
55
  slots: e
41
56
  }) {
42
- return () => t(p, {
43
- class: "size-full flex items-center justify-center"
57
+ return () => i(p, {
58
+ class: "size-full flex items-center justify-center",
59
+ bordered: t.bordered
44
60
  }, {
45
61
  default: () => {
46
- var m, r;
47
- return [t("div", {
62
+ var r, m;
63
+ return [i("div", {
48
64
  class: "flex flex-col gap-6 justify-center items-center py-10"
49
- }, [t("div", {
65
+ }, [i("div", {
50
66
  class: "w-40"
51
- }, [(m = e.default) == null ? void 0 : m.call(e)]), t("div", {
67
+ }, [(r = e.default) == null ? void 0 : r.call(e)]), i("div", {
52
68
  class: "flex flex-col items-center justify-center gap-2"
53
- }, [t("div", {
69
+ }, [i("div", {
54
70
  class: "text-lg text-default font-bold"
55
- }, [i == null ? void 0 : i.title]), t("div", {
71
+ }, [t == null ? void 0 : t.title]), i("div", {
56
72
  class: "text-muted"
57
- }, [i == null ? void 0 : i.desc])]), t("div", {
73
+ }, [t == null ? void 0 : t.desc])]), i("div", {
58
74
  class: "flex justify-center items-center gap-4"
59
- }, [(r = e.action) == null ? void 0 : r.call(e)])])];
75
+ }, [(m = e.action) == null ? void 0 : m.call(e)])])];
60
76
  }
61
77
  });
62
78
  }
63
79
  });
64
80
  export {
65
- J as DuxPageStatus
81
+ Y as DuxPageStatus
66
82
  };
@@ -1,12 +1,12 @@
1
1
  import { useTheme as C } from "@duxweb/dvha-core";
2
2
  import { hex2rgb as i } from "colorizr";
3
- import { merge as a } from "lodash-es";
3
+ import { merge as s } from "lodash-es";
4
4
  import { computed as l } from "vue";
5
5
  function g() {
6
6
  const { getSceneColor: o, getSemanticColor: r } = C(), e = (m) => {
7
7
  const t = i(m);
8
8
  return `${t.r}, ${t.g},${t.b}`;
9
- }, d = l(() => ({
9
+ }, a = l(() => ({
10
10
  common: {
11
11
  primaryColor: o("primary"),
12
12
  primaryColorHover: o("primary", "hover"),
@@ -70,18 +70,18 @@ function g() {
70
70
  tabTextColorHoverSegment: r("text", "muted")
71
71
  },
72
72
  Card: {}
73
- })), s = l(() => a(d.value, {
73
+ })), d = l(() => s(a.value, {
74
74
  common: {
75
75
  cardColor: r("bg", "base"),
76
76
  modalColor: r("bg", "base"),
77
77
  dividerColor: r("border", "muted"),
78
78
  borderColor: r("border", "muted"),
79
- popoverColor: `rgba(${e(r("bg", "muted"))}, 0.95)`
79
+ popoverColor: `rgba(${e(r("bg", "base"))}, 0.98)`
80
80
  },
81
81
  DataTable: {
82
82
  tdColor: r("bg", "base")
83
83
  }
84
- })), n = l(() => a(d.value, {
84
+ })), n = l(() => s(a.value, {
85
85
  common: {
86
86
  cardColor: r("bg", "muted"),
87
87
  modalColor: r("bg", "muted"),
@@ -94,7 +94,7 @@ function g() {
94
94
  }
95
95
  }));
96
96
  return {
97
- lightTheme: s,
97
+ lightTheme: d,
98
98
  darkTheme: n
99
99
  };
100
100
  }