@duxweb/dvha-pro 0.0.5

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 (293) hide show
  1. package/dist/cjs/app.cjs +1 -0
  2. package/dist/cjs/component.cjs +1 -0
  3. package/dist/cjs/components/card/card.cjs +1 -0
  4. package/dist/cjs/components/carousel/carousel.cjs +1 -0
  5. package/dist/cjs/components/dashboard/hello.cjs +1 -0
  6. package/dist/cjs/components/dashboard/helloBig.cjs +1 -0
  7. package/dist/cjs/components/dashboard/quick.cjs +1 -0
  8. package/dist/cjs/components/dialog/dialog.cjs +1 -0
  9. package/dist/cjs/components/draw/drawApps.cjs +1 -0
  10. package/dist/cjs/components/draw/drawAuth.cjs +1 -0
  11. package/dist/cjs/components/draw/drawEmpty.cjs +1 -0
  12. package/dist/cjs/components/draw/drawEmptyForm.cjs +1 -0
  13. package/dist/cjs/components/draw/drawError.cjs +1 -0
  14. package/dist/cjs/components/drawer/drawer.cjs +1 -0
  15. package/dist/cjs/components/drawer/drawerPage.cjs +1 -0
  16. package/dist/cjs/components/form/formItem.cjs +1 -0
  17. package/dist/cjs/components/form/formLayout.cjs +1 -0
  18. package/dist/cjs/components/form/modalForm.cjs +1 -0
  19. package/dist/cjs/components/form/pageForm.cjs +1 -0
  20. package/dist/cjs/components/form/settingForm.cjs +1 -0
  21. package/dist/cjs/components/layout/filter.cjs +1 -0
  22. package/dist/cjs/components/layout/list.cjs +1 -0
  23. package/dist/cjs/components/layout/table.cjs +1 -0
  24. package/dist/cjs/components/layout/tools.cjs +1 -0
  25. package/dist/cjs/components/list/card.cjs +1 -0
  26. package/dist/cjs/components/list/list.cjs +1 -0
  27. package/dist/cjs/components/media/media.cjs +1 -0
  28. package/dist/cjs/components/modal/modal.cjs +1 -0
  29. package/dist/cjs/components/modal/modalPage.cjs +1 -0
  30. package/dist/cjs/components/modal/modalTab.cjs +1 -0
  31. package/dist/cjs/components/panel/alert.cjs +1 -0
  32. package/dist/cjs/components/panel/setting.cjs +1 -0
  33. package/dist/cjs/components/status/blockEmpty.cjs +1 -0
  34. package/dist/cjs/components/table/tablePage.cjs +1 -0
  35. package/dist/cjs/components/widget/connect.cjs +1 -0
  36. package/dist/cjs/config/uno.cjs +1 -0
  37. package/dist/cjs/config/validate.cjs +1 -0
  38. package/dist/cjs/dvha-pro.css +1 -0
  39. package/dist/cjs/hooks/action.cjs +1 -0
  40. package/dist/cjs/hooks/dialog.cjs +1 -0
  41. package/dist/cjs/hooks/drawer.cjs +1 -0
  42. package/dist/cjs/hooks/modal.cjs +1 -0
  43. package/dist/cjs/hooks/table/column.cjs +1 -0
  44. package/dist/cjs/hooks/table/copy.cjs +1 -0
  45. package/dist/cjs/hooks/table/hidden.cjs +1 -0
  46. package/dist/cjs/hooks/table/image.cjs +1 -0
  47. package/dist/cjs/hooks/table/input.cjs +1 -0
  48. package/dist/cjs/hooks/table/map.cjs +1 -0
  49. package/dist/cjs/hooks/table/media.cjs +1 -0
  50. package/dist/cjs/hooks/table/status.cjs +1 -0
  51. package/dist/cjs/hooks/table/switch.cjs +1 -0
  52. package/dist/cjs/hooks/table.cjs +1 -0
  53. package/dist/cjs/hooks/ui.cjs +1 -0
  54. package/dist/cjs/index.cjs +1 -0
  55. package/dist/cjs/langs/en-US.json.cjs +1 -0
  56. package/dist/cjs/langs/zh-CN.json.cjs +1 -0
  57. package/dist/cjs/main.cjs +1 -0
  58. package/dist/cjs/node_modules/@iconify-json/tabler/icons.json.cjs +1 -0
  59. package/dist/cjs/node_modules/@overlastic/core/dist/index.cjs +1 -0
  60. package/dist/cjs/node_modules/@overlastic/vue/dist/index.cjs +1 -0
  61. package/dist/cjs/node_modules/@vee-validate/i18n/dist/locale/en.json.cjs +1 -0
  62. package/dist/cjs/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.cjs +1 -0
  63. package/dist/cjs/node_modules/@vueuse/integrations/useFocusTrap.cjs +1 -0
  64. package/dist/cjs/node_modules/@vueuse/shared/index.cjs +1 -0
  65. package/dist/cjs/node_modules/colorizr/dist/index.cjs +1 -0
  66. package/dist/cjs/node_modules/focus-trap/dist/focus-trap.esm.cjs +5 -0
  67. package/dist/cjs/node_modules/lower-case/dist.es2015/index.cjs +1 -0
  68. package/dist/cjs/node_modules/no-case/dist.es2015/index.cjs +1 -0
  69. package/dist/cjs/node_modules/pascal-case/dist.es2015/index.cjs +1 -0
  70. package/dist/cjs/node_modules/tabbable/dist/index.esm.cjs +4 -0
  71. package/dist/cjs/node_modules/tslib/tslib.es6.cjs +1 -0
  72. package/dist/cjs/pages/authLayout.cjs +1 -0
  73. package/dist/cjs/pages/layout/global.cjs +1 -0
  74. package/dist/cjs/pages/layout/page.cjs +1 -0
  75. package/dist/cjs/pages/layout/tab.cjs +1 -0
  76. package/dist/cjs/pages/layout.cjs +1 -0
  77. package/dist/cjs/pages/loading.cjs +1 -0
  78. package/dist/cjs/pages/login.cjs +1 -0
  79. package/dist/cjs/pages/menu/avatar.cjs +1 -0
  80. package/dist/cjs/pages/menu/button.cjs +1 -0
  81. package/dist/cjs/pages/menu/cmd.cjs +1 -0
  82. package/dist/cjs/pages/menu/main.cjs +1 -0
  83. package/dist/cjs/pages/menu/mobile.cjs +1 -0
  84. package/dist/cjs/pages/page.cjs +1 -0
  85. package/dist/cjs/pages/page403.cjs +1 -0
  86. package/dist/cjs/pages/page404.cjs +1 -0
  87. package/dist/cjs/pages/page500.cjs +1 -0
  88. package/dist/cjs/pages/pageEmpty.cjs +1 -0
  89. package/dist/cjs/pages/pageLoading.cjs +1 -0
  90. package/dist/cjs/pages/pageStatus.cjs +1 -0
  91. package/dist/cjs/static/images/placeholder.png.cjs +1 -0
  92. package/dist/cjs/stores/ui.cjs +1 -0
  93. package/dist/cjs/theme/naiveTheme.cjs +1 -0
  94. package/dist/cjs/theme/presetTheme.cjs +1 -0
  95. package/dist/cjs/theme/uno.css.cjs +1285 -0
  96. package/dist/esm/app.js +20 -0
  97. package/dist/esm/component.js +59 -0
  98. package/dist/esm/components/card/card.js +114 -0
  99. package/dist/esm/components/carousel/carousel.js +37 -0
  100. package/dist/esm/components/dashboard/hello.js +40 -0
  101. package/dist/esm/components/dashboard/helloBig.js +344 -0
  102. package/dist/esm/components/dashboard/quick.js +59 -0
  103. package/dist/esm/components/dialog/dialog.js +118 -0
  104. package/dist/esm/components/draw/drawApps.js +145 -0
  105. package/dist/esm/components/draw/drawAuth.js +50 -0
  106. package/dist/esm/components/draw/drawEmpty.js +92 -0
  107. package/dist/esm/components/draw/drawEmptyForm.js +128 -0
  108. package/dist/esm/components/draw/drawError.js +242 -0
  109. package/dist/esm/components/drawer/drawer.js +73 -0
  110. package/dist/esm/components/drawer/drawerPage.js +28 -0
  111. package/dist/esm/components/form/formItem.js +77 -0
  112. package/dist/esm/components/form/formLayout.js +38 -0
  113. package/dist/esm/components/form/modalForm.js +108 -0
  114. package/dist/esm/components/form/pageForm.js +94 -0
  115. package/dist/esm/components/form/settingForm.js +104 -0
  116. package/dist/esm/components/layout/filter.js +27 -0
  117. package/dist/esm/components/layout/list.js +333 -0
  118. package/dist/esm/components/layout/table.js +292 -0
  119. package/dist/esm/components/layout/tools.js +78 -0
  120. package/dist/esm/components/list/card.js +78 -0
  121. package/dist/esm/components/list/list.js +38 -0
  122. package/dist/esm/components/media/media.js +77 -0
  123. package/dist/esm/components/modal/modal.js +116 -0
  124. package/dist/esm/components/modal/modalPage.js +56 -0
  125. package/dist/esm/components/modal/modalTab.js +70 -0
  126. package/dist/esm/components/panel/alert.js +57 -0
  127. package/dist/esm/components/panel/setting.js +49 -0
  128. package/dist/esm/components/status/blockEmpty.js +78 -0
  129. package/dist/esm/components/table/tablePage.js +41 -0
  130. package/dist/esm/components/widget/connect.js +119 -0
  131. package/dist/esm/config/uno.js +32 -0
  132. package/dist/esm/config/validate.js +15 -0
  133. package/dist/esm/dvha-pro.css +1 -0
  134. package/dist/esm/hooks/action.js +213 -0
  135. package/dist/esm/hooks/dialog.js +32 -0
  136. package/dist/esm/hooks/drawer.js +25 -0
  137. package/dist/esm/hooks/modal.js +14 -0
  138. package/dist/esm/hooks/table/column.js +31 -0
  139. package/dist/esm/hooks/table/copy.js +27 -0
  140. package/dist/esm/hooks/table/hidden.js +48 -0
  141. package/dist/esm/hooks/table/image.js +24 -0
  142. package/dist/esm/hooks/table/input.js +81 -0
  143. package/dist/esm/hooks/table/map.js +21 -0
  144. package/dist/esm/hooks/table/media.js +34 -0
  145. package/dist/esm/hooks/table/status.js +32 -0
  146. package/dist/esm/hooks/table/switch.js +33 -0
  147. package/dist/esm/hooks/table.js +74 -0
  148. package/dist/esm/hooks/ui.js +16 -0
  149. package/dist/esm/index.js +139 -0
  150. package/dist/esm/langs/en-US.json.js +11 -0
  151. package/dist/esm/langs/zh-CN.json.js +11 -0
  152. package/dist/esm/main.js +18 -0
  153. package/dist/esm/node_modules/@iconify-json/tabler/icons.json.js +17 -0
  154. package/dist/esm/node_modules/@overlastic/core/dist/index.js +76 -0
  155. package/dist/esm/node_modules/@overlastic/vue/dist/index.js +122 -0
  156. package/dist/esm/node_modules/@vee-validate/i18n/dist/locale/en.json.js +9 -0
  157. package/dist/esm/node_modules/@vee-validate/i18n/dist/locale/zh_CN.json.js +9 -0
  158. package/dist/esm/node_modules/@vueuse/integrations/useFocusTrap.js +43 -0
  159. package/dist/esm/node_modules/@vueuse/shared/index.js +6 -0
  160. package/dist/esm/node_modules/colorizr/dist/index.js +318 -0
  161. package/dist/esm/node_modules/focus-trap/dist/focus-trap.esm.js +473 -0
  162. package/dist/esm/node_modules/lower-case/dist.es2015/index.js +6 -0
  163. package/dist/esm/node_modules/no-case/dist.es2015/index.js +18 -0
  164. package/dist/esm/node_modules/pascal-case/dist.es2015/index.js +13 -0
  165. package/dist/esm/node_modules/tabbable/dist/index.esm.js +202 -0
  166. package/dist/esm/node_modules/tslib/tslib.es6.js +12 -0
  167. package/dist/esm/pages/authLayout.js +38 -0
  168. package/dist/esm/pages/layout/global.js +51 -0
  169. package/dist/esm/pages/layout/page.js +54 -0
  170. package/dist/esm/pages/layout/tab.js +110 -0
  171. package/dist/esm/pages/layout.js +14 -0
  172. package/dist/esm/pages/loading.js +14 -0
  173. package/dist/esm/pages/login.js +143 -0
  174. package/dist/esm/pages/menu/avatar.js +205 -0
  175. package/dist/esm/pages/menu/button.js +60 -0
  176. package/dist/esm/pages/menu/cmd.js +156 -0
  177. package/dist/esm/pages/menu/main.js +101 -0
  178. package/dist/esm/pages/menu/mobile.js +38 -0
  179. package/dist/esm/pages/page.js +47 -0
  180. package/dist/esm/pages/page403.js +46 -0
  181. package/dist/esm/pages/page404.js +57 -0
  182. package/dist/esm/pages/page500.js +45 -0
  183. package/dist/esm/pages/pageEmpty.js +25 -0
  184. package/dist/esm/pages/pageLoading.js +22 -0
  185. package/dist/esm/pages/pageStatus.js +50 -0
  186. package/dist/esm/static/images/placeholder.png.js +4 -0
  187. package/dist/esm/stores/ui.js +34 -0
  188. package/dist/esm/theme/naiveTheme.js +97 -0
  189. package/dist/esm/theme/presetTheme.js +12 -0
  190. package/dist/esm/theme/uno.css.js +1288 -0
  191. package/dist/types/app.d.ts +1 -0
  192. package/dist/types/component.d.ts +5 -0
  193. package/dist/types/components/card/card.d.ts +140 -0
  194. package/dist/types/components/card/index.d.ts +1 -0
  195. package/dist/types/components/carousel/carousel.d.ts +20 -0
  196. package/dist/types/components/carousel/index.d.ts +1 -0
  197. package/dist/types/components/dashboard/hello.d.ts +16 -0
  198. package/dist/types/components/dashboard/helloBig.d.ts +19 -0
  199. package/dist/types/components/dashboard/index.d.ts +3 -0
  200. package/dist/types/components/dashboard/quick.d.ts +33 -0
  201. package/dist/types/components/dialog/dialog.d.ts +35 -0
  202. package/dist/types/components/dialog/index.d.ts +1 -0
  203. package/dist/types/components/draw/drawApps.d.ts +1 -0
  204. package/dist/types/components/draw/drawAuth.d.ts +1 -0
  205. package/dist/types/components/draw/drawEmpty.d.ts +1 -0
  206. package/dist/types/components/draw/drawEmptyForm.d.ts +1 -0
  207. package/dist/types/components/draw/drawError.d.ts +1 -0
  208. package/dist/types/components/draw/index.d.ts +5 -0
  209. package/dist/types/components/drawer/drawer.d.ts +19 -0
  210. package/dist/types/components/drawer/drawerPage.d.ts +1 -0
  211. package/dist/types/components/drawer/index.d.ts +2 -0
  212. package/dist/types/components/form/formItem.d.ts +27 -0
  213. package/dist/types/components/form/formLayout.d.ts +38 -0
  214. package/dist/types/components/form/index.d.ts +5 -0
  215. package/dist/types/components/form/modalForm.d.ts +89 -0
  216. package/dist/types/components/form/pageForm.d.ts +51 -0
  217. package/dist/types/components/form/settingForm.d.ts +69 -0
  218. package/dist/types/components/index.d.ts +14 -0
  219. package/dist/types/components/layout/filter.d.ts +13 -0
  220. package/dist/types/components/layout/index.d.ts +4 -0
  221. package/dist/types/components/layout/list.d.ts +85 -0
  222. package/dist/types/components/layout/table.d.ts +72 -0
  223. package/dist/types/components/layout/tools.d.ts +37 -0
  224. package/dist/types/components/list/card.d.ts +117 -0
  225. package/dist/types/components/list/index.d.ts +2 -0
  226. package/dist/types/components/list/list.d.ts +87 -0
  227. package/dist/types/components/media/index.d.ts +1 -0
  228. package/dist/types/components/media/media.d.ts +95 -0
  229. package/dist/types/components/modal/index.d.ts +3 -0
  230. package/dist/types/components/modal/modal.d.ts +66 -0
  231. package/dist/types/components/modal/modalPage.d.ts +42 -0
  232. package/dist/types/components/modal/modalTab.d.ts +42 -0
  233. package/dist/types/components/panel/alert.d.ts +32 -0
  234. package/dist/types/components/panel/index.d.ts +2 -0
  235. package/dist/types/components/panel/setting.d.ts +29 -0
  236. package/dist/types/components/status/blockEmpty.d.ts +25 -0
  237. package/dist/types/components/status/index.d.ts +1 -0
  238. package/dist/types/components/table/index.d.ts +1 -0
  239. package/dist/types/components/table/tablePage.d.ts +73 -0
  240. package/dist/types/components/widget/connect.d.ts +11 -0
  241. package/dist/types/components/widget/index.d.ts +1 -0
  242. package/dist/types/config/index.d.ts +2 -0
  243. package/dist/types/config/uno.d.ts +2 -0
  244. package/dist/types/config/validate.d.ts +1 -0
  245. package/dist/types/hooks/action.d.ts +17 -0
  246. package/dist/types/hooks/dialog.d.ts +17 -0
  247. package/dist/types/hooks/drawer.d.ts +11 -0
  248. package/dist/types/hooks/index.d.ts +6 -0
  249. package/dist/types/hooks/modal.d.ts +9 -0
  250. package/dist/types/hooks/table/column.d.ts +14 -0
  251. package/dist/types/hooks/table/copy.d.ts +6 -0
  252. package/dist/types/hooks/table/hidden.d.ts +7 -0
  253. package/dist/types/hooks/table/image.d.ts +8 -0
  254. package/dist/types/hooks/table/index.d.ts +7 -0
  255. package/dist/types/hooks/table/input.d.ts +9 -0
  256. package/dist/types/hooks/table/map.d.ts +13 -0
  257. package/dist/types/hooks/table/media.d.ts +12 -0
  258. package/dist/types/hooks/table/status.d.ts +12 -0
  259. package/dist/types/hooks/table/switch.d.ts +7 -0
  260. package/dist/types/hooks/table/types.d.ts +74 -0
  261. package/dist/types/hooks/table.d.ts +2 -0
  262. package/dist/types/hooks/ui.d.ts +8 -0
  263. package/dist/types/index.d.ts +10 -0
  264. package/dist/types/langs/index.d.ts +3 -0
  265. package/dist/types/main.d.ts +5 -0
  266. package/dist/types/pages/authLayout.d.ts +1 -0
  267. package/dist/types/pages/index.d.ts +12 -0
  268. package/dist/types/pages/layout/global.d.ts +1 -0
  269. package/dist/types/pages/layout/index.d.ts +3 -0
  270. package/dist/types/pages/layout/page.d.ts +1 -0
  271. package/dist/types/pages/layout/tab.d.ts +1 -0
  272. package/dist/types/pages/layout.d.ts +1 -0
  273. package/dist/types/pages/loading.d.ts +1 -0
  274. package/dist/types/pages/login.d.ts +1 -0
  275. package/dist/types/pages/menu/avatar.d.ts +14 -0
  276. package/dist/types/pages/menu/button.d.ts +41 -0
  277. package/dist/types/pages/menu/cmd.d.ts +7 -0
  278. package/dist/types/pages/menu/index.d.ts +4 -0
  279. package/dist/types/pages/menu/main.d.ts +13 -0
  280. package/dist/types/pages/menu/mobile.d.ts +1 -0
  281. package/dist/types/pages/page.d.ts +42 -0
  282. package/dist/types/pages/page403.d.ts +1 -0
  283. package/dist/types/pages/page404.d.ts +1 -0
  284. package/dist/types/pages/page500.d.ts +1 -0
  285. package/dist/types/pages/pageEmpty.d.ts +7 -0
  286. package/dist/types/pages/pageLoading.d.ts +1 -0
  287. package/dist/types/pages/pageStatus.d.ts +7 -0
  288. package/dist/types/stores/index.d.ts +1 -0
  289. package/dist/types/stores/ui.d.ts +28 -0
  290. package/dist/types/theme/index.d.ts +2 -0
  291. package/dist/types/theme/naiveTheme.d.ts +5 -0
  292. package/dist/types/theme/presetTheme.d.ts +7 -0
  293. package/package.json +73 -0
@@ -0,0 +1,202 @@
1
+ /*!
2
+ * tabbable 6.2.0
3
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4
+ */
5
+ var w = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], v = /* @__PURE__ */ w.join(","), T = typeof Element > "u", o = T ? function() {
6
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, b = !T && Element.prototype.getRootNode ? function(i) {
7
+ var t;
8
+ return i == null || (t = i.getRootNode) === null || t === void 0 ? void 0 : t.call(i);
9
+ } : function(i) {
10
+ return i == null ? void 0 : i.ownerDocument;
11
+ }, h = function i(t, e) {
12
+ var r;
13
+ e === void 0 && (e = !0);
14
+ var a = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), l = a === "" || a === "true", n = l || e && t && i(t.parentNode);
15
+ return n;
16
+ }, A = function(t) {
17
+ var e, r = t == null || (e = t.getAttribute) === null || e === void 0 ? void 0 : e.call(t, "contenteditable");
18
+ return r === "" || r === "true";
19
+ }, I = function(t, e, r) {
20
+ if (h(t))
21
+ return [];
22
+ var a = Array.prototype.slice.apply(t.querySelectorAll(v));
23
+ return e && o.call(t, v) && a.unshift(t), a = a.filter(r), a;
24
+ }, m = function i(t, e, r) {
25
+ for (var a = [], l = Array.from(t); l.length; ) {
26
+ var n = l.shift();
27
+ if (!h(n, !1))
28
+ if (n.tagName === "SLOT") {
29
+ var u = n.assignedElements(), c = u.length ? u : n.children, s = i(c, !0, r);
30
+ r.flatten ? a.push.apply(a, s) : a.push({
31
+ scopeParent: n,
32
+ candidates: s
33
+ });
34
+ } else {
35
+ var f = o.call(n, v);
36
+ f && r.filter(n) && (e || !t.includes(n)) && a.push(n);
37
+ var d = n.shadowRoot || // check for an undisclosed shadow
38
+ typeof r.getShadowRoot == "function" && r.getShadowRoot(n), E = !h(d, !1) && (!r.shadowRootFilter || r.shadowRootFilter(n));
39
+ if (d && E) {
40
+ var y = i(d === !0 ? n.children : d.children, !0, r);
41
+ r.flatten ? a.push.apply(a, y) : a.push({
42
+ scopeParent: n,
43
+ candidates: y
44
+ });
45
+ } else
46
+ l.unshift.apply(l, n.children);
47
+ }
48
+ }
49
+ return a;
50
+ }, N = function(t) {
51
+ return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
52
+ }, R = function(t) {
53
+ if (!t)
54
+ throw new Error("No node provided");
55
+ return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || A(t)) && !N(t) ? 0 : t.tabIndex;
56
+ }, x = function(t, e) {
57
+ var r = R(t);
58
+ return r < 0 && e && !N(t) ? 0 : r;
59
+ }, O = function(t, e) {
60
+ return t.tabIndex === e.tabIndex ? t.documentOrder - e.documentOrder : t.tabIndex - e.tabIndex;
61
+ }, C = function(t) {
62
+ return t.tagName === "INPUT";
63
+ }, F = function(t) {
64
+ return C(t) && t.type === "hidden";
65
+ }, D = function(t) {
66
+ var e = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
67
+ return r.tagName === "SUMMARY";
68
+ });
69
+ return e;
70
+ }, k = function(t, e) {
71
+ for (var r = 0; r < t.length; r++)
72
+ if (t[r].checked && t[r].form === e)
73
+ return t[r];
74
+ }, M = function(t) {
75
+ if (!t.name)
76
+ return !0;
77
+ var e = t.form || b(t), r = function(u) {
78
+ return e.querySelectorAll('input[type="radio"][name="' + u + '"]');
79
+ }, a;
80
+ if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
81
+ a = r(window.CSS.escape(t.name));
82
+ else
83
+ try {
84
+ a = r(t.name);
85
+ } catch (n) {
86
+ return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", n.message), !1;
87
+ }
88
+ var l = k(a, t.form);
89
+ return !l || l === t;
90
+ }, L = function(t) {
91
+ return C(t) && t.type === "radio";
92
+ }, P = function(t) {
93
+ return L(t) && !M(t);
94
+ }, B = function(t) {
95
+ var e, r = t && b(t), a = (e = r) === null || e === void 0 ? void 0 : e.host, l = !1;
96
+ if (r && r !== t) {
97
+ var n, u, c;
98
+ for (l = !!((n = a) !== null && n !== void 0 && (u = n.ownerDocument) !== null && u !== void 0 && u.contains(a) || t != null && (c = t.ownerDocument) !== null && c !== void 0 && c.contains(t)); !l && a; ) {
99
+ var s, f, d;
100
+ r = b(a), a = (s = r) === null || s === void 0 ? void 0 : s.host, l = !!((f = a) !== null && f !== void 0 && (d = f.ownerDocument) !== null && d !== void 0 && d.contains(a));
101
+ }
102
+ }
103
+ return l;
104
+ }, p = function(t) {
105
+ var e = t.getBoundingClientRect(), r = e.width, a = e.height;
106
+ return r === 0 && a === 0;
107
+ }, q = function(t, e) {
108
+ var r = e.displayCheck, a = e.getShadowRoot;
109
+ if (getComputedStyle(t).visibility === "hidden")
110
+ return !0;
111
+ var l = o.call(t, "details>summary:first-of-type"), n = l ? t.parentElement : t;
112
+ if (o.call(n, "details:not([open]) *"))
113
+ return !0;
114
+ if (!r || r === "full" || r === "legacy-full") {
115
+ if (typeof a == "function") {
116
+ for (var u = t; t; ) {
117
+ var c = t.parentElement, s = b(t);
118
+ if (c && !c.shadowRoot && a(c) === !0)
119
+ return p(t);
120
+ t.assignedSlot ? t = t.assignedSlot : !c && s !== t.ownerDocument ? t = s.host : t = c;
121
+ }
122
+ t = u;
123
+ }
124
+ if (B(t))
125
+ return !t.getClientRects().length;
126
+ if (r !== "legacy-full")
127
+ return !0;
128
+ } else if (r === "non-zero-area")
129
+ return p(t);
130
+ return !1;
131
+ }, U = function(t) {
132
+ if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
133
+ for (var e = t.parentElement; e; ) {
134
+ if (e.tagName === "FIELDSET" && e.disabled) {
135
+ for (var r = 0; r < e.children.length; r++) {
136
+ var a = e.children.item(r);
137
+ if (a.tagName === "LEGEND")
138
+ return o.call(e, "fieldset[disabled] *") ? !0 : !a.contains(t);
139
+ }
140
+ return !0;
141
+ }
142
+ e = e.parentElement;
143
+ }
144
+ return !1;
145
+ }, g = function(t, e) {
146
+ return !(e.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
147
+ // because we're limited in the type of selectors we can use in JSDom (see related
148
+ // note related to `candidateSelectors`)
149
+ h(e) || F(e) || q(e, t) || // For a details element with a summary, the summary element gets the focus
150
+ D(e) || U(e));
151
+ }, S = function(t, e) {
152
+ return !(P(e) || R(e) < 0 || !g(t, e));
153
+ }, V = function(t) {
154
+ var e = parseInt(t.getAttribute("tabindex"), 10);
155
+ return !!(isNaN(e) || e >= 0);
156
+ }, j = function i(t) {
157
+ var e = [], r = [];
158
+ return t.forEach(function(a, l) {
159
+ var n = !!a.scopeParent, u = n ? a.scopeParent : a, c = x(u, n), s = n ? i(a.candidates) : u;
160
+ c === 0 ? n ? e.push.apply(e, s) : e.push(u) : r.push({
161
+ documentOrder: l,
162
+ tabIndex: c,
163
+ item: a,
164
+ isScope: n,
165
+ content: s
166
+ });
167
+ }), r.sort(O).reduce(function(a, l) {
168
+ return l.isScope ? a.push.apply(a, l.content) : a.push(l.content), a;
169
+ }, []).concat(e);
170
+ }, Z = function(t, e) {
171
+ e = e || {};
172
+ var r;
173
+ return e.getShadowRoot ? r = m([t], e.includeContainer, {
174
+ filter: S.bind(null, e),
175
+ flatten: !1,
176
+ getShadowRoot: e.getShadowRoot,
177
+ shadowRootFilter: V
178
+ }) : r = I(t, e.includeContainer, S.bind(null, e)), j(r);
179
+ }, z = function(t, e) {
180
+ e = e || {};
181
+ var r;
182
+ return e.getShadowRoot ? r = m([t], e.includeContainer, {
183
+ filter: g.bind(null, e),
184
+ flatten: !0,
185
+ getShadowRoot: e.getShadowRoot
186
+ }) : r = I(t, e.includeContainer, g.bind(null, e)), r;
187
+ }, G = function(t, e) {
188
+ if (e = e || {}, !t)
189
+ throw new Error("No node provided");
190
+ return o.call(t, v) === !1 ? !1 : S(e, t);
191
+ }, W = /* @__PURE__ */ w.concat("iframe").join(","), X = function(t, e) {
192
+ if (e = e || {}, !t)
193
+ throw new Error("No node provided");
194
+ return o.call(t, W) === !1 ? !1 : g(e, t);
195
+ };
196
+ export {
197
+ z as focusable,
198
+ R as getTabIndex,
199
+ X as isFocusable,
200
+ G as isTabbable,
201
+ Z as tabbable
202
+ };
@@ -0,0 +1,12 @@
1
+ var s = function() {
2
+ return s = Object.assign || function(t) {
3
+ for (var r, e = 1, o = arguments.length; e < o; e++) {
4
+ r = arguments[e];
5
+ for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (t[n] = r[n]);
6
+ }
7
+ return t;
8
+ }, s.apply(this, arguments);
9
+ };
10
+ export {
11
+ s as __assign
12
+ };
@@ -0,0 +1,38 @@
1
+ import { defineComponent as r, createVNode as o } from "vue";
2
+ import { OverlaysProvider as t } from "../node_modules/@overlastic/vue/dist/index.js";
3
+ import "@duxweb/dvha-core";
4
+ import "naive-ui";
5
+ import "vue-router";
6
+ import "clsx";
7
+ import "jinrishici";
8
+ import "lodash-es";
9
+ import "@vueuse/core";
10
+ import "vee-validate";
11
+ import { DuxGlobalLayout as e } from "./layout/global.js";
12
+ import { DuxLayoutPage as u } from "./layout/page.js";
13
+ import { DuxMenuCmd as m } from "./menu/cmd.js";
14
+ import { DuxMenuMain as n } from "./menu/main.js";
15
+ import { DuxMobileMenu as i } from "./menu/mobile.js";
16
+ import "./page404.js";
17
+ import "@duxweb/dvha-naiveui";
18
+ import { useUI as p } from "../hooks/ui.js";
19
+ const k = /* @__PURE__ */ r({
20
+ name: "DuxAuthLayout",
21
+ setup() {
22
+ const {
23
+ menuCollapsed: l
24
+ } = p();
25
+ return () => o(e, null, {
26
+ default: () => [o(t, null, {
27
+ default: () => [o("div", {
28
+ class: "h-screen w-screen flex relative"
29
+ }, [o("div", {
30
+ class: ["flex-none transition-all", "hidden lg:block app-menu", l.value ? "w-100px" : "w-200px"]
31
+ }, [o(n, null, null)]), o(u, null, null)]), o(m, null, null), o(i, null, null)]
32
+ })]
33
+ });
34
+ }
35
+ });
36
+ export {
37
+ k as DuxAuthLayout
38
+ };
@@ -0,0 +1,51 @@
1
+ import { defineComponent as h, inject as f, onBeforeMount as g, computed as n, watch as v, onMounted as p, createVNode as o } from "vue";
2
+ import { useTheme as L, useI18n as N } from "@duxweb/dvha-core";
3
+ import { setLocale as T } from "@vee-validate/i18n";
4
+ import { useLoadingBar as C, zhCN as k, enUS as O, dateZhCN as x, dateEnUS as y, NConfigProvider as z, darkTheme as B, lightTheme as D, NNotificationProvider as M, NMessageProvider as P } from "naive-ui";
5
+ import { themeOverrides as b } from "../../theme/naiveTheme.js";
6
+ const E = /* @__PURE__ */ h({
7
+ name: "DuxGlobalLayout",
8
+ setup(G, {
9
+ slots: t
10
+ }) {
11
+ const {
12
+ isDark: r,
13
+ cssInit: i
14
+ } = L(), l = f("pageLoading"), u = C(), {
15
+ lightTheme: d,
16
+ darkTheme: m
17
+ } = b();
18
+ g(() => {
19
+ i();
20
+ });
21
+ const {
22
+ getLocale: a
23
+ } = N(), c = n(() => a() === "zh-CN" ? k : O), s = n(() => a() === "zh-CN" ? x : y);
24
+ return v(a, (e) => {
25
+ T(e);
26
+ }, {
27
+ immediate: !0
28
+ }), p(async () => {
29
+ setTimeout(() => {
30
+ u.finish(), l.value = !1;
31
+ }, 500);
32
+ }), () => o(z, {
33
+ locale: c.value,
34
+ dateLocale: s.value,
35
+ theme: r.value ? B : D,
36
+ themeOverrides: r.value ? m.value : d.value
37
+ }, {
38
+ default: () => [o(M, null, {
39
+ default: () => [o(P, null, {
40
+ default: () => {
41
+ var e;
42
+ return [(e = t.default) == null ? void 0 : e.call(t)];
43
+ }
44
+ })]
45
+ })]
46
+ });
47
+ }
48
+ });
49
+ export {
50
+ E as DuxGlobalLayout
51
+ };
@@ -0,0 +1,54 @@
1
+ import { defineComponent as i, createVNode as e } from "vue";
2
+ import { useManage as r, DuxTabRouterView as n } from "@duxweb/dvha-core";
3
+ import { NButton as s } from "naive-ui";
4
+ import "vue-router";
5
+ import "../../node_modules/@overlastic/vue/dist/index.js";
6
+ import "clsx";
7
+ import "jinrishici";
8
+ import "lodash-es";
9
+ import "@vueuse/core";
10
+ import "vee-validate";
11
+ import "@vee-validate/i18n";
12
+ import m from "../menu/avatar.js";
13
+ import "vue-command-palette";
14
+ import "@duxweb/dvha-naiveui";
15
+ import { DuxPageTab as u } from "./tab.js";
16
+ import "../page404.js";
17
+ import { useUI as a } from "../../hooks/ui.js";
18
+ const L = /* @__PURE__ */ i({
19
+ name: "DuxLayoutPage",
20
+ props: {},
21
+ setup() {
22
+ const {
23
+ menuMobileCollapsed: t,
24
+ setMenuMobileCollapsed: l
25
+ } = a(), {
26
+ config: o
27
+ } = r();
28
+ return () => e("div", {
29
+ class: "flex-1 min-w-0 flex flex-col"
30
+ }, [e("div", {
31
+ class: "flex flex-col lg:flex-row lg:justify-between lg:items-center lg:h-13"
32
+ }, [e("div", {
33
+ class: "flex lg:hidden justify-between items-center px-2 py-2 bg-default dark:bg-muted shadow-xs relative"
34
+ }, [e(s, {
35
+ text: !0,
36
+ onClick: () => l(!t.value)
37
+ }, {
38
+ default: () => [e("div", {
39
+ class: "i-tabler:menu-2 size-6"
40
+ }, null)]
41
+ }), e("div", {
42
+ class: "w-full absolute inset-0 flex items-center justify-center text-base pointer-events-none"
43
+ }, [o.title]), e("div", null, [e(m, {
44
+ open: !1
45
+ }, null)])]), e("div", {
46
+ class: "flex-1 py-2"
47
+ }, [e(u, null, null)])]), e("div", {
48
+ class: "flex-1 min-h-0 mr-2 ml-2 mb-2 lg:ml-0"
49
+ }, [e(n, null, null)])]);
50
+ }
51
+ });
52
+ export {
53
+ L as DuxLayoutPage
54
+ };
@@ -0,0 +1,110 @@
1
+ import { defineComponent as g, ref as b, reactive as y, createVNode as t, Fragment as T, mergeProps as C, nextTick as R } from "vue";
2
+ import { useTabStore as N, useI18n as O } from "@duxweb/dvha-core";
3
+ import { useNaiveTab as D } from "@duxweb/dvha-naiveui";
4
+ import { NTabs as L, NTab as P, NDropdown as w } from "naive-ui";
5
+ import { useRouter as S } from "vue-router";
6
+ const X = /* @__PURE__ */ g({
7
+ name: "DuxPageTab",
8
+ setup(z) {
9
+ const {
10
+ tabsProps: m,
11
+ tabs: u
12
+ } = D(), v = b(), i = N(), h = S(), {
13
+ t: p
14
+ } = O(), l = y({
15
+ x: 0,
16
+ y: 0,
17
+ visible: !1
18
+ }), s = b(), f = (o, e) => {
19
+ o.preventDefault(), l.visible = !1, R().then(() => {
20
+ l.visible = !0, l.x = o.clientX, l.y = o.clientY, s.value = e;
21
+ });
22
+ }, d = () => {
23
+ l.visible = !1;
24
+ }, k = [{
25
+ label: p("components.tab.lock"),
26
+ key: "lock"
27
+ }, {
28
+ label: p("components.tab.closeOther"),
29
+ key: "closeOther"
30
+ }, {
31
+ label: p("components.tab.closeLeft"),
32
+ key: "closeLeft"
33
+ }, {
34
+ label: p("components.tab.closeRight"),
35
+ key: "closeRight"
36
+ }], x = (o) => {
37
+ var e, c, a, r;
38
+ switch (l.visible = !1, o) {
39
+ case "lock":
40
+ i.lockTab(((e = s.value) == null ? void 0 : e.path) || "");
41
+ break;
42
+ case "closeOther":
43
+ i.delOther(((c = s.value) == null ? void 0 : c.path) || "", () => {
44
+ var n;
45
+ h.push(((n = s.value) == null ? void 0 : n.path) || "");
46
+ });
47
+ break;
48
+ case "closeLeft":
49
+ i.delLeft(((a = s.value) == null ? void 0 : a.path) || "", () => {
50
+ var n;
51
+ h.push(((n = s.value) == null ? void 0 : n.path) || "");
52
+ });
53
+ break;
54
+ case "closeRight":
55
+ i.delRight(((r = s.value) == null ? void 0 : r.path) || "", () => {
56
+ var n;
57
+ h.push(((n = s.value) == null ? void 0 : n.path) || "");
58
+ });
59
+ break;
60
+ }
61
+ };
62
+ return () => t(T, null, [t(L, C({
63
+ ref: v,
64
+ type: "card",
65
+ class: "app-page-tabs",
66
+ barWidth: 100
67
+ }, m.value), {
68
+ default: () => {
69
+ var o;
70
+ return [(o = u == null ? void 0 : u.value) == null ? void 0 : o.map((e) => t(P, {
71
+ key: e.path,
72
+ name: e.path || ""
73
+ }, {
74
+ default: () => {
75
+ var c;
76
+ return [t("div", {
77
+ class: "flex items-center gap-2 py-2 px-3",
78
+ onContextmenu: (a) => f(a, e)
79
+ }, [t("div", {
80
+ class: "flex-1"
81
+ }, [e.label]), t("div", {
82
+ class: "flex items-center flex-none"
83
+ }, [(c = e.meta) != null && c.lock ? t("div", {
84
+ class: "i-tabler:pinned size-4"
85
+ }, null) : t("div", {
86
+ onClick: () => {
87
+ var a, r;
88
+ return (r = (a = m.value) == null ? void 0 : a.onClose) == null ? void 0 : r.call(a, e.path);
89
+ },
90
+ class: "text-muted hover:text-primary cursor-pointer"
91
+ }, [t("div", {
92
+ class: "i-tabler:x size-4"
93
+ }, null)])])])];
94
+ }
95
+ }))];
96
+ }
97
+ }), t(w, {
98
+ trigger: "manual",
99
+ x: l.x,
100
+ y: l.y,
101
+ show: l.visible,
102
+ onClickoutside: d,
103
+ options: k,
104
+ onSelect: x
105
+ }, null)]);
106
+ }
107
+ });
108
+ export {
109
+ X as DuxPageTab
110
+ };
@@ -0,0 +1,14 @@
1
+ import { defineComponent as t, createVNode as o } from "vue";
2
+ import { RouterView as e } from "vue-router";
3
+ import { DuxGlobalLayout as u } from "./layout/global.js";
4
+ const m = /* @__PURE__ */ t({
5
+ name: "DuxLayout",
6
+ setup() {
7
+ return () => o(u, null, {
8
+ default: () => [o(e, null, null)]
9
+ });
10
+ }
11
+ });
12
+ export {
13
+ m as DuxLayout
14
+ };
@@ -0,0 +1,14 @@
1
+ import { defineComponent as n, createVNode as o } from "vue";
2
+ const e = /* @__PURE__ */ n({
3
+ name: "DuxLoading",
4
+ setup() {
5
+ return () => o("div", {
6
+ class: "app-loading"
7
+ }, [o("div", {
8
+ class: "app-box-loading"
9
+ }, null)]);
10
+ }
11
+ });
12
+ export {
13
+ e as DuxLoading
14
+ };
@@ -0,0 +1,143 @@
1
+ import { defineComponent as k, ref as j, reactive as D, createVNode as e, isVNode as L } from "vue";
2
+ import { useTheme as N, useManage as F, useI18n as P, useLogin as S, DuxLogo as V } from "@duxweb/dvha-core";
3
+ import z from "clsx";
4
+ import { useMessage as A, NForm as C, NFormItem as h, NInput as v, NButton as I } from "naive-ui";
5
+ import "jinrishici";
6
+ import "lodash-es";
7
+ import { DuxDrawApps as M } from "../components/draw/drawApps.js";
8
+ import "../node_modules/@overlastic/vue/dist/index.js";
9
+ import "@vueuse/core";
10
+ import "vee-validate";
11
+ import "vue-router";
12
+ import "@duxweb/dvha-naiveui";
13
+ import "pinia";
14
+ import "@vee-validate/i18n";
15
+ import "vue-command-palette";
16
+ import "./page404.js";
17
+ function O(r) {
18
+ return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !L(r);
19
+ }
20
+ const $ = /* @__PURE__ */ k({
21
+ name: "DuxLoginPage",
22
+ setup(r, {
23
+ slots: i
24
+ }) {
25
+ const o = N(), s = F(), {
26
+ t: a
27
+ } = P(), w = j(), u = A(), t = D({
28
+ username: "",
29
+ password: ""
30
+ }), {
31
+ mutate: x,
32
+ isLoading: b
33
+ } = S({
34
+ onSuccess: () => {
35
+ u.success(a("pages.login.success"));
36
+ },
37
+ onError: (l) => {
38
+ u.error((l == null ? void 0 : l.message) || a("pages.login.error"));
39
+ }
40
+ }), y = () => {
41
+ x(t);
42
+ };
43
+ return () => {
44
+ var c, d, m, p, g;
45
+ let l;
46
+ return e("div", {
47
+ "un-cloak": !0,
48
+ class: z(["h-screen w-screen flex items-start justify-center text-secondary md:items-center", o.isDark.value ? "app-login-dark-bg" : "app-login-bg"])
49
+ }, [e("div", {
50
+ class: "relative md:m-4 max-w-180 w-full h-full md:h-auto grid-cols-1 md:grid-cols-2 gap-12 overflow-hidden md:rounded-lg p-8 md:shadow bg-default dark:bg-muted grid"
51
+ }, [e("div", {
52
+ class: "flex justify-center tex absolute h-30 w-30 rotate-45 cursor-pointer items-end p-3 text-white bg-primary -right-15 -top-15 hover:bg-primary-hover",
53
+ onClick: () => o.toggle()
54
+ }, [o.mode.value === "auto" && e("div", {
55
+ class: "i-tabler:brightness-half h-5 w-5"
56
+ }, null), o.mode.value === "light" && e("div", {
57
+ class: "h-5 w-5 i-tabler:sun"
58
+ }, null), o.mode.value === "dark" && e("div", {
59
+ class: "h-5 w-5 i-tabler:moon"
60
+ }, null)]), e("div", {
61
+ class: "justify-center hidden md:flex flex-row items-center"
62
+ }, [(c = s.config.theme) != null && c.banner ? e("img", {
63
+ class: "w-full h-auto",
64
+ src: (d = s.config.theme) == null ? void 0 : d.banner
65
+ }, null) : e("div", {
66
+ class: "w-full h-auto"
67
+ }, [e(M, null, null)])]), e("div", {
68
+ class: "flex flex-col"
69
+ }, [e("div", {
70
+ class: "flex flex-col items-center justify-center mt-4"
71
+ }, [e("div", null, [(m = s.config.theme) != null && m.logo ? e("img", {
72
+ class: "w-auto h-16",
73
+ src: (p = s.config.theme) == null ? void 0 : p.logo
74
+ }, null) : e("div", {
75
+ class: "h-10"
76
+ }, [e(V, null, null)])]), e("div", {
77
+ class: "mt-4 text-lg text-muted"
78
+ }, [s.config.title || "Dux Admin Manage"])]), e("div", {
79
+ class: "my-6"
80
+ }, [e(C, {
81
+ ref: w,
82
+ model: t,
83
+ class: "flex flex-col gap-4"
84
+ }, {
85
+ default: () => {
86
+ var f;
87
+ return [e(h, {
88
+ showLabel: !1,
89
+ path: "username",
90
+ showFeedback: !1
91
+ }, {
92
+ default: () => [e(v, {
93
+ value: t.username,
94
+ onUpdateValue: (n) => t.username = n,
95
+ type: "text",
96
+ placeholder: a("pages.login.placeholder.username"),
97
+ size: "large"
98
+ }, {
99
+ default: () => e("div", {
100
+ class: "text-lg i-tabler:user"
101
+ }, null)
102
+ })]
103
+ }), e(h, {
104
+ showLabel: !1,
105
+ path: "password",
106
+ showFeedback: !1
107
+ }, {
108
+ default: () => [e(v, {
109
+ value: t.password,
110
+ onUpdateValue: (n) => t.password = n,
111
+ type: "password",
112
+ showPasswordOn: "mousedown",
113
+ placeholder: a("pages.login.placeholder.password"),
114
+ size: "large",
115
+ inputProps: {
116
+ autocomplete: "new-password"
117
+ }
118
+ }, {
119
+ default: () => e("div", {
120
+ class: "text-lg i-tabler:lock"
121
+ }, null)
122
+ })]
123
+ }), (f = i.default) == null ? void 0 : f.call(i, t), e("div", {
124
+ class: "mb-2 mt-4"
125
+ }, [e(I, {
126
+ type: "primary",
127
+ size: "large",
128
+ block: !0,
129
+ loading: b.value,
130
+ onClick: y
131
+ }, O(l = a("pages.login.buttons.login")) ? l : {
132
+ default: () => [l]
133
+ })])];
134
+ }
135
+ })]), e("div", {
136
+ class: "text-center text-sm text-gray-5"
137
+ }, [((g = s.config) == null ? void 0 : g.copyright) || "All rights reserved © duxweb 2024"])])])]);
138
+ };
139
+ }
140
+ });
141
+ export {
142
+ $ as DuxLoginPage
143
+ };