@pubinfo/module-rbac 2.0.0-rc.2 → 2.0.0-rc.3

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 (247) hide show
  1. package/dist/{ComponentSelect-Dyqb3Uh3.js → ComponentSelect-B1ZyenXP.js} +897 -945
  2. package/dist/ComponentSelect-DlVJI5an.js +2 -0
  3. package/dist/DynamicRoutesForm-Cu3WhRpA.js +4 -0
  4. package/dist/{DynamicRoutesForm-D3nGj7oA.js → DynamicRoutesForm-qjbrykW4.js} +95 -95
  5. package/dist/HCheckList-Cze_TkQp.js +2 -0
  6. package/dist/HoverCard-B79q5sly.js +43 -0
  7. package/dist/HoverCard-U5WTpvFy.js +2 -0
  8. package/dist/{ImportExport-Yt6dABIv.js → ImportExport-Clbc8xaw.js} +65 -65
  9. package/dist/ImportExport-CtEZTU87.js +4 -0
  10. package/dist/MetaForm-BWy4Lpr8.js +5 -0
  11. package/dist/MetaForm-DpH9an5A.js +300 -0
  12. package/dist/MetaForm.css +1 -0
  13. package/dist/OrgAndPosition-3lCm4Fyb.js +2 -0
  14. package/dist/ResourceEdit-0_cYB0iu.js +338 -0
  15. package/dist/ResourceEdit-CYPzEbqn.js +10 -0
  16. package/dist/{ResourceRelation-BihfkBCe.js → ResourceRelation-CZ8hGgOm.js} +6 -6
  17. package/dist/ResourceRelation-DMWa09ae.js +3 -0
  18. package/dist/{ResourceRelation-CBPrqf2V.js → ResourceRelation-DkKdZ3TD.js} +2 -2
  19. package/dist/ResourceRelation.css +1 -1
  20. package/dist/ResourceRelation2.css +1 -1
  21. package/dist/{ResourceSelector-CxZ1ae30.js → ResourceSelector-ConJ30Jd.js} +48 -48
  22. package/dist/ResourceSelector.css +1 -1
  23. package/dist/{RoleRelation-BlWDNAM1.js → RoleRelation-B1D1NM_L.js} +1 -1
  24. package/dist/RoleRelation-DySyilcs.js +2 -0
  25. package/dist/RoleSelector-DOt30OLy.js +279 -0
  26. package/dist/TenantEdit-D8-Pt7sf.js +6 -0
  27. package/dist/{TenantEdit-Bt31IV9W.js → TenantEdit-DNJzo8SS.js} +19 -19
  28. package/dist/{UserAuthorization-Dhp0ZamX.js → UserAuthorization-DPHUk69M.js} +6 -6
  29. package/dist/UserAuthorization-DuioGghR.js +4 -0
  30. package/dist/UserAuthorization.css +1 -1
  31. package/dist/UserEdit-6HYbgtOh.js +4 -0
  32. package/dist/{UserEdit-CqH6hxTZ.js → UserEdit-C6eNXSCu.js} +24 -24
  33. package/dist/animation_item-C3pkH-cB.js +2 -0
  34. package/dist/{blackWhiteList-B7tUj2Rx.js → blackWhiteList-DQALdBZf.js} +10 -10
  35. package/dist/blackWhiteList.css +1 -1
  36. package/dist/{breadcrumb_setting-CIm-6QHw.js → breadcrumb_setting-D3UjJYhA.js} +32 -32
  37. package/dist/breadcrumb_setting.css +1 -1
  38. package/dist/browserType-BGl2j5RW.js +2 -0
  39. package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +1 -1
  40. package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +1 -1
  41. package/dist/components/ResourceSelector/index.vue.d.ts +1 -1
  42. package/dist/composables/useWebSocketManager.d.ts +8 -0
  43. package/dist/createAndEditDataPermission-CAaxueTy.js +8 -0
  44. package/dist/{createAndEditDataPermission-Bd3tlIEE.js → createAndEditDataPermission-DnAcKvaE.js} +55 -55
  45. package/dist/createAndEditDataPermission.css +1 -1
  46. package/dist/{data-permission-Db1Lu9KO.js → data-permission-CLnnLoPt.js} +8 -8
  47. package/dist/data-permission.css +1 -1
  48. package/dist/{dictionary-XMJprxvM.js → dictionary-BFM0Mx0P.js} +3 -3
  49. package/dist/{drawerBlackWhiteList-D-Sq4mul.js → drawerBlackWhiteList-BYACpO3D.js} +9 -9
  50. package/dist/drawerBlackWhiteList-C3xS7Kxx.js +3 -0
  51. package/dist/{drawerDictionary-Bw3w5PTm.js → drawerDictionary-BUBLrbTi.js} +13 -13
  52. package/dist/drawerDictionary-Bk0BgL7i.js +4 -0
  53. package/dist/{drawerDictionaryItem-4WIgL3No.js → drawerDictionaryItem-CfOPleN6.js} +14 -14
  54. package/dist/drawerDictionaryItem-Dy2T56AH.js +4 -0
  55. package/dist/{drawerGroup-932n7Ywc.js → drawerGroup-Bly3CWfM.js} +10 -10
  56. package/dist/drawerGroup-ZyzAWXOl.js +3 -0
  57. package/dist/{drawerOrganization-IwZZkHWM.js → drawerOrganization-BhO5-PP5.js} +27 -27
  58. package/dist/drawerOrganization-HSVB8JzO.js +3 -0
  59. package/dist/{drawerPosition-BiO92_At.js → drawerPosition-CM0NBfoR.js} +15 -15
  60. package/dist/drawerPosition-vsuG4JYe.js +3 -0
  61. package/dist/drawerRegion-BXZ751ge.js +3 -0
  62. package/dist/{drawerRegion-CNOK55im.js → drawerRegion-CGySAL6D.js} +17 -17
  63. package/dist/{drawerRole-IIsKhycU.js → drawerRole-BE0utb7R.js} +9 -9
  64. package/dist/drawerRole-BVeaz3Yb.js +5 -0
  65. package/dist/drawerRole-BdoMYLYW.js +215 -0
  66. package/dist/drawerRole-BeUNs7cF.js +6 -0
  67. package/dist/drawerRole-DNsK5a6O.js +3 -0
  68. package/dist/{drawerRole-PnDochPg.js → drawerRole-DS7fbx1h.js} +10 -10
  69. package/dist/{group-BzuuCGyR.js → group-B1gGoTD5.js} +10 -10
  70. package/dist/group.css +1 -1
  71. package/dist/index.css +1 -1
  72. package/dist/index.d.ts +3 -0
  73. package/dist/index.js +2065 -1875
  74. package/dist/{itemlist-KOYuEUk4.js → itemlist-uCHnA_We.js} +3 -3
  75. package/dist/{layout_setting-DQgWzV7M.js → layout_setting-DMvxwL31.js} +20 -20
  76. package/dist/layout_setting.css +1 -1
  77. package/dist/{loginHistoryDetail-DgHx6n66.js → loginHistoryDetail-BAYuSqvw.js} +2 -2
  78. package/dist/loginHistoryDetail-DiuNa6Sv.js +4 -0
  79. package/dist/{login_history-Co6JLGsd.js → login_history-BexfCN-1.js} +7 -7
  80. package/dist/login_history.css +1 -1
  81. package/dist/{menu_setting-B0QIQ1um.js → menu_setting-BXR3EAXD.js} +43 -43
  82. package/dist/menu_setting.css +1 -1
  83. package/dist/not-data-OpiacaSk.js +2 -0
  84. package/dist/{operateHistoryDetail-BrdNmYD0.js → operateHistoryDetail-DiuqMTkN.js} +2 -2
  85. package/dist/operateHistoryDetail-r30ZBNqw.js +4 -0
  86. package/dist/{operate_history-CVeIorOr.js → operate_history-hXxS3atI.js} +7 -7
  87. package/dist/operate_history.css +1 -1
  88. package/dist/{organization-CXMk4mRo.js → organization-cvYm9P9w.js} +2647 -2647
  89. package/dist/organization.css +1 -1
  90. package/dist/{other_setting-DK9MHysY.js → other_setting-DjVQevBW.js} +69 -69
  91. package/dist/other_setting.css +1 -1
  92. package/dist/{page_animation_setting-tSYfjx-m.js → page_animation_setting-DgHHmFEc.js} +52 -52
  93. package/dist/page_animation_setting.css +1 -1
  94. package/dist/{page_w_setting-BDI5KsA-.js → page_w_setting-B_im6vBo.js} +20 -20
  95. package/dist/page_w_setting.css +1 -1
  96. package/dist/{position-BjUZQQUz.js → position-BkpbHXYP.js} +2 -2
  97. package/dist/{region-BsX0gK_y.js → region-DVkbjI9t.js} +6 -6
  98. package/dist/{resource-DKhlH74I.js → resource-CrhX7VRK.js} +13 -11
  99. package/dist/{role-ffXddsAo.js → role-PjmrOdFd.js} +6 -6
  100. package/dist/{role_group-BBH28A40.js → role_group-Dlx-6BZF.js} +2 -2
  101. package/dist/routeSystem-Dg0b6mAl.js +2 -0
  102. package/dist/{safe_setting-Dis73Gsw.js → safe_setting-DpWUCv2p.js} +1 -1
  103. package/dist/setItem-9ZBl0BlF.js +5 -0
  104. package/dist/setItem-BenNySNl.js +77 -0
  105. package/dist/setItem.css +1 -1
  106. package/dist/stores/view.d.ts +56 -0
  107. package/dist/{tabbar_setting-DGwk_Oec.js → tabbar_setting-9UKDc1Ev.js} +38 -38
  108. package/dist/tabbar_setting.css +1 -1
  109. package/dist/{tenant-BhA6R8aJ.js → tenant-BGtOP_wo.js} +5 -5
  110. package/dist/{theme_setting-Ca1YGTdZ.js → theme_setting-BBLaZ4NS.js} +8 -8
  111. package/dist/theme_setting.css +1 -1
  112. package/dist/{toolbar_setting-Cmrpyxgs.js → toolbar_setting-OemNp6pO.js} +37 -37
  113. package/dist/toolbar_setting.css +1 -1
  114. package/dist/{useAppAndResource-BgnrL15l.js → useAppAndResource-CeMCjg2v.js} +1 -1
  115. package/dist/{user-Bnb1cvVD.js → user-JCiGXodF.js} +11 -11
  116. package/dist/user.css +1 -1
  117. package/dist/utils/routeSystem.d.ts +55 -0
  118. package/dist/views/blackWhiteList/index.vue.d.ts +2 -2
  119. package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +5 -5
  120. package/dist/views/data-permission/index.vue.d.ts +7 -7
  121. package/dist/views/dictionary/index.vue.d.ts +2 -2
  122. package/dist/views/dictionary/itemlist.vue.d.ts +2 -2
  123. package/dist/views/group/index.vue.d.ts +2 -2
  124. package/dist/views/log_center/login_history.vue.d.ts +2 -2
  125. package/dist/views/log_center/operate_history.vue.d.ts +2 -2
  126. package/dist/views/position/index.vue.d.ts +2 -2
  127. package/dist/views/region/index.vue.d.ts +2 -2
  128. package/dist/views/resource/components/HoverCard.vue.d.ts +21 -0
  129. package/dist/views/resource/index.vue.d.ts +2 -2
  130. package/dist/views/resource/model.d.ts +3 -1
  131. package/dist/views/role/components/ResourceRelation.vue.d.ts +2 -2
  132. package/dist/views/role/components/drawerRole.vue.d.ts +2 -2
  133. package/dist/views/role/index.vue.d.ts +6 -6
  134. package/dist/views/role_group/index.vue.d.ts +2 -2
  135. package/dist/views/tenant/components/TenantEdit.vue.d.ts +2 -2
  136. package/dist/views/tenant/index.vue.d.ts +4 -4
  137. package/dist/views/user/index.vue.d.ts +2 -2
  138. package/dist/{watermark_setting-BnBt5gdM.js → watermark_setting-C1VFRfbW.js} +111 -111
  139. package/dist/watermark_setting.css +1 -1
  140. package/package.json +7 -7
  141. package/src/composables/useWebSocketManager.ts +104 -0
  142. package/src/index.ts +22 -0
  143. package/src/stores/view.ts +292 -0
  144. package/src/utils/routeSystem.ts +53 -0
  145. package/src/views/region/index.vue +1 -1
  146. package/src/views/resource/components/ComponentSelect.vue +12 -119
  147. package/src/views/resource/components/HoverCard.vue +62 -0
  148. package/src/views/resource/components/MetaForm.vue +129 -67
  149. package/src/views/resource/components/ResourceEdit.vue +33 -4
  150. package/src/views/resource/hooks/useMetaForm.ts +23 -0
  151. package/src/views/resource/model.ts +5 -1
  152. package/src/views/watermark_setting/index.vue +2 -2
  153. package/dist/ComponentSelect-Din5Vses.js +0 -2
  154. package/dist/DynamicRoutesForm-CkmCaHum.js +0 -4
  155. package/dist/HCheckList-Dd2Tx0jW.js +0 -2
  156. package/dist/ImportExport-BbZkZEW_.js +0 -4
  157. package/dist/MetaForm-CI-T2qEE.js +0 -284
  158. package/dist/MetaForm-CrsQmdOg.js +0 -4
  159. package/dist/OrgAndPosition-CDCim7yM.js +0 -2
  160. package/dist/ResourceEdit-BFXA953U.js +0 -309
  161. package/dist/ResourceEdit-V6gt22gW.js +0 -8
  162. package/dist/ResourceRelation-BnLQZey7.js +0 -3
  163. package/dist/RoleRelation-CAMzPMFz.js +0 -2
  164. package/dist/RoleSelector-DTnDRRTQ.js +0 -279
  165. package/dist/TenantEdit-DYHJehf0.js +0 -6
  166. package/dist/UserAuthorization-BdHxAQlK.js +0 -4
  167. package/dist/UserEdit-CqrRx717.js +0 -4
  168. package/dist/animation_item-COb6VI4T.js +0 -2
  169. package/dist/browserType-D2cPQa0k.js +0 -2
  170. package/dist/createAndEditDataPermission-6pvYsJo9.js +0 -8
  171. package/dist/drawerBlackWhiteList-DK4g_CpC.js +0 -3
  172. package/dist/drawerDictionary-DHIcxPrY.js +0 -4
  173. package/dist/drawerDictionaryItem-dg1sIDYE.js +0 -4
  174. package/dist/drawerGroup-CrF2c8UJ.js +0 -3
  175. package/dist/drawerOrganization-b39q3V33.js +0 -3
  176. package/dist/drawerPosition-BjoDy0cQ.js +0 -3
  177. package/dist/drawerRegion-omVT_dpq.js +0 -3
  178. package/dist/drawerRole-BaQBb2-J.js +0 -215
  179. package/dist/drawerRole-BqMh5l11.js +0 -5
  180. package/dist/drawerRole-D7VJRLmp.js +0 -6
  181. package/dist/drawerRole-dJ3m0_K2.js +0 -3
  182. package/dist/loginHistoryDetail-BNGtarOv.js +0 -4
  183. package/dist/not-data-uXybSS43.js +0 -2
  184. package/dist/operateHistoryDetail-DsM4L8Nz.js +0 -4
  185. package/dist/setItem-CjNn98dC.js +0 -77
  186. package/dist/setItem-H6NRNSt7.js +0 -5
  187. /package/dist/{HCheckList-3zLNVNr0.js → HCheckList-CmS0Zgjk.js} +0 -0
  188. /package/dist/{OrgAndPosition-BK5MTlOO.js → OrgAndPosition-DYxNkasL.js} +0 -0
  189. /package/dist/{_plugin-vue_export-helper-Bvl99pNT.js → _plugin-vue_export-helper-DziIhCOI.js} +0 -0
  190. /package/dist/{add-child-sIXCU5sL.js → add-child-BqjLtFNF.js} +0 -0
  191. /package/dist/{animation_item-D78koyTo.js → animation_item-Cg-CB3zX.js} +0 -0
  192. /package/dist/{authority-DQ4-SayE.js → authority-BCFCPQkb.js} +0 -0
  193. /package/dist/{authorize-CR54jxEa.js → authorize-BykMzt1r.js} +0 -0
  194. /package/dist/{blacklist-disable-ypFSVSX1.js → blacklist-disable-COoLZMSA.js} +0 -0
  195. /package/dist/{blacklist-enable-DlkD_15-.js → blacklist-enable-LZep1trj.js} +0 -0
  196. /package/dist/{browser-chrome-DNH4U6iO.js → browser-chrome-D0rex7Ir.js} +0 -0
  197. /package/dist/{browser-edge-4sSjlzO1.js → browser-edge-KCb_AIL5.js} +0 -0
  198. /package/dist/{browser-ie-yTwVV0GC.js → browser-ie-C1znjJM-.js} +0 -0
  199. /package/dist/{browser-other-Jax-vzDs.js → browser-other-C4er8PkV.js} +0 -0
  200. /package/dist/{browser-safari-B7PIezpj.js → browser-safari-BPRC1TV-.js} +0 -0
  201. /package/dist/{browserType-DZrDbVVY.js → browserType-E4RCiZfN.js} +0 -0
  202. /package/dist/{configData-CONUFxaH.js → configData-DQOHeFW2.js} +0 -0
  203. /package/dist/{dayjs.min-KffHrkDe.js → dayjs.min-DcxwBe2I.js} +0 -0
  204. /package/dist/{edit-CCL7qbDV.js → edit-C9HH0bNg.js} +0 -0
  205. /package/dist/{enum-DUjQrWbG.js → enum-B1DCzyaW.js} +0 -0
  206. /package/dist/{enum-CUMv4gQ2.js → enum-BWzxzuim.js} +0 -0
  207. /package/dist/{enum-B-lkiBy0.js → enum-CYW8g64p.js} +0 -0
  208. /package/dist/{enum-BMY6bmPA.js → enum-D0U38jb6.js} +0 -0
  209. /package/dist/{enum-Bg70i-vM.js → enum-VH4_jOj5.js} +0 -0
  210. /package/dist/{icard-BUuV9yW4.js → icard-FW0Ro50-.js} +0 -0
  211. /package/dist/{icon_animation-rPC0qi0K.js → icon_animation-DuNUKCIP.js} +0 -0
  212. /package/dist/{icon_breadcrumb-BOiEdwRY.js → icon_breadcrumb-DrPNYW5B.js} +0 -0
  213. /package/dist/{icon_copyright-zk1pF8Jj.js → icon_copyright-Di3Yr0PZ.js} +0 -0
  214. /package/dist/{icon_jt-BMoQoZvf.js → icon_jt-C4rQLl9Y.js} +0 -0
  215. /package/dist/{icon_layout-KBHA8xU_.js → icon_layout-5L9E7uN2.js} +0 -0
  216. /package/dist/{icon_mainpage-BTdCCyi2.js → icon_mainpage-DMKqRgmE.js} +0 -0
  217. /package/dist/{icon_menu-5k8XiWt5.js → icon_menu-Cp7-Zght.js} +0 -0
  218. /package/dist/{icon_page_size-DUMZ6xhJ.js → icon_page_size-Dc0zqT2W.js} +0 -0
  219. /package/dist/{icon_position_type-Cnkn2IzO.js → icon_position_type-DH2qxQQE.js} +0 -0
  220. /package/dist/{icon_safe_manage-B0PtL90p.js → icon_safe_manage-DXYWl1y-.js} +0 -0
  221. /package/dist/{icon_screen_scale-CwVhfflc.js → icon_screen_scale-DwC6qqx2.js} +0 -0
  222. /package/dist/{icon_system_manage-vM71UmjM.js → icon_system_manage-BYTldLly.js} +0 -0
  223. /package/dist/{icon_tabbar-CuMnIey0.js → icon_tabbar-CxffARwI.js} +0 -0
  224. /package/dist/{icon_toolbar-BoCbAU3P.js → icon_toolbar-CsxnTrNJ.js} +0 -0
  225. /package/dist/{icon_topbar-DGIDBcE6.js → icon_topbar-DS-oEZFA.js} +0 -0
  226. /package/dist/{icon_watermark-BBU-lOdN.js → icon_watermark-DDXsHlfQ.js} +0 -0
  227. /package/dist/{log-center-Z3WDfhg1.js → log-center-BFjZ4IE1.js} +0 -0
  228. /package/dist/{log-BgIwPjNu.js → log-hgUXTuhy.js} +0 -0
  229. /package/dist/{not-data-DejN9beo.js → not-data-Bw8FlpyB.js} +0 -0
  230. /package/dist/{org-main-C2g7AMMY.js → org-main-D5Isevbc.js} +0 -0
  231. /package/dist/{org-unmain-CjGtvuIa.js → org-unmain-BHBqSuCz.js} +0 -0
  232. /package/dist/{remove-BroXCqy9.js → remove-DKMMsJNq.js} +0 -0
  233. /package/dist/{resource-app-DV2RZiRk.js → resource-app-DZwdNG6F.js} +0 -0
  234. /package/dist/{resource-btn-Dw9-L0P5.js → resource-btn-DPX0oM2L.js} +0 -0
  235. /package/dist/{resource-dynamic-Cmk2ihZb.js → resource-dynamic-Cb_vjMjt.js} +0 -0
  236. /package/dist/{resource-index-D9J-wVCc.js → resource-index-ah4NpEob.js} +0 -0
  237. /package/dist/{resource-menu-XnlgciPe.js → resource-menu-CzWI03EU.js} +0 -0
  238. /package/dist/{resource-micro-DzYCcl5c.js → resource-micro-Ca0NS7j_.js} +0 -0
  239. /package/dist/{resource-nonmenu-8bXZBBWf.js → resource-nonmenu-Deitjo_5.js} +0 -0
  240. /package/dist/{setting-manage-BPwzU94V.js → setting-manage-B3vaM0w1.js} +0 -0
  241. /package/dist/{stores-Di6SQ3pp.js → stores-D6JJmBEU.js} +0 -0
  242. /package/dist/{theme-check-mark-Dz4lGIXE.js → theme-check-mark-BK7E8lqd.js} +0 -0
  243. /package/dist/{theme-title-CPXdAbpI.js → theme-title-aqbHq846.js} +0 -0
  244. /package/dist/{view-D4SR4EYn.js → view-C6Eo1zRL.js} +0 -0
  245. /package/dist/{zddata-Cdy8vScr.js → zddata-fjEtQ3lZ.js} +0 -0
  246. /package/dist/{zy_checked-xjGWlIXf.js → zy_checked-DTsDCC94.js} +0 -0
  247. /package/dist/{zy_default-kwFuicHB.js → zy_default-BaIuMKw-.js} +0 -0
@@ -0,0 +1,2 @@
1
+ import { b as e } from "./ComponentSelect-B1ZyenXP.js";
2
+ export { e as default };
@@ -0,0 +1,4 @@
1
+ import "./ComponentSelect-B1ZyenXP.js";
2
+ import { b as e } from "./DynamicRoutesForm-qjbrykW4.js";
3
+ import "./enum-D0U38jb6.js";
4
+ export { e as default };
@@ -1,18 +1,18 @@
1
- import { b as e } from "./ComponentSelect-Dyqb3Uh3.js";
2
- import { d as t } from "./enum-BMY6bmPA.js";
1
+ import { b as e } from "./ComponentSelect-B1ZyenXP.js";
2
+ import { d as t } from "./enum-D0U38jb6.js";
3
3
  import { PubinfoIcon as n, getAllIconModules as r } from "pubinfo";
4
- import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, isRef as f, mergeModels as p, normalizeClass as m, openBlock as h, ref as g, renderList as _, resolveComponent as v, toDisplayString as y, unref as b, useModel as x, watch as S, withCtx as C } from "vue";
5
- import * as w from "@ant-design/icons-vue";
6
- import { Empty as T } from "ant-design-vue";
7
- import { Col as E, Empty as D, FormItem as O, FormItemRest as k, Input as A, Modal as j, Pagination as M, Tooltip as N } from "ant-design-vue/es";
8
- const P = { class: "flex gap-4 min-h-[600px]" }, ee = { class: "w-58 flex flex-col border-r border-[#e5e7eb] dark:border-[#30363d] pr-3" }, te = { class: "mb-3" }, ne = { class: "flex-1 overflow-auto space-y-1 pr-1" }, re = ["onClick"], ie = { class: "truncate max-w-[120px]" }, F = { class: "ml-2 inline-block min-w-6 text-center text-11px rounded bg-[#eef1f5] dark:bg-[#2d3339] px-1 text-[#5d6671] dark:text-[#9aa3ad]" }, I = { class: "flex-1 flex flex-col min-w-0" }, L = { class: "grid grid-cols-6 gap-3 auto-rows-[96px] overflow-auto flex-1 p-1" }, R = { class: "text-12px leading-tight space-y-1" }, z = { class: "font-medium" }, B = {
4
+ import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, mergeModels as f, normalizeClass as p, openBlock as m, ref as h, renderList as g, resolveComponent as _, toDisplayString as v, unref as y, useModel as b, watch as x, withCtx as S } from "vue";
5
+ import * as C from "@ant-design/icons-vue";
6
+ import { Empty as w } from "ant-design-vue";
7
+ import { Col as T, Empty as ee, FormItem as E, FormItemRest as D, Input as O, Modal as k, Pagination as A, Tooltip as j } from "ant-design-vue/es";
8
+ const M = { class: "flex gap-4 min-h-[600px]" }, N = { class: "w-58 flex flex-col border-r border-[#e5e7eb] dark:border-[#30363d] pr-3" }, P = { class: "mb-3" }, te = { class: "flex-1 overflow-auto space-y-1 pr-1" }, ne = ["onClick"], F = { class: "truncate max-w-[120px]" }, I = { class: "ml-2 inline-block min-w-6 text-center text-11px rounded bg-[#eef1f5] dark:bg-[#2d3339] px-1 text-[#5d6671] dark:text-[#9aa3ad]" }, L = { class: "flex-1 flex flex-col min-w-0" }, R = { class: "grid grid-cols-6 gap-3 auto-rows-[96px] overflow-auto flex-1 p-1" }, z = { class: "text-12px leading-tight space-y-1" }, B = { class: "font-medium" }, V = {
9
9
  key: 0,
10
10
  class: "opacity-70"
11
- }, V = ["onClick"], H = { class: "mt-4 flex justify-center select-none" }, U = {
11
+ }, H = ["onClick"], U = { class: "mt-4 flex justify-center select-none" }, W = {
12
12
  key: 1,
13
13
  class: "flex-1 flex items-center justify-center"
14
14
  };
15
- var W = /* @__PURE__ */ d({
15
+ var G = /* @__PURE__ */ d({
16
16
  name: "ResourceIconesSelect",
17
17
  __name: "Select",
18
18
  props: {
@@ -21,26 +21,26 @@ var W = /* @__PURE__ */ d({
21
21
  },
22
22
  emits: ["update:modelValue"],
23
23
  setup(e) {
24
- let t = x(e, "modelValue"), d = g(!1);
25
- function p() {
24
+ let t = b(e, "modelValue"), d = h(!1);
25
+ function f() {
26
26
  d.value = !0;
27
27
  }
28
- function v() {
28
+ function _() {
29
29
  d.value = !1;
30
30
  }
31
- function E(e) {
31
+ function T(e) {
32
32
  let t = e.split(/[\\/]/).pop() || e;
33
33
  return t.replace(/\.(svg|png|jpe?g)$/i, "");
34
34
  }
35
- let O = a(() => {
35
+ let E = a(() => {
36
36
  let e = /* @__PURE__ */ new Map(), t = r();
37
37
  for (let [n, r] of t.entries()) {
38
- let t = Object.keys(r).map(E).sort();
38
+ let t = Object.keys(r).map(T).sort();
39
39
  e.set(n, t);
40
40
  }
41
41
  return e;
42
- }), W = a(() => Object.keys(w).filter((e) => /(?:Outlined|Filled|TwoTone)$/.test(e)).map((e) => `antd:${e}`).sort()), G = a(() => {
43
- let e = Array.from(O.value.keys()), t = e.includes("local"), n = e.filter((e) => e !== "local").sort();
42
+ }), G = a(() => Object.keys(C).filter((e) => /(?:Outlined|Filled|TwoTone)$/.test(e)).map((e) => `antd:${e}`).sort()), K = a(() => {
43
+ let e = Array.from(E.value.keys()), t = e.includes("local"), n = e.filter((e) => e !== "local").sort();
44
44
  return [
45
45
  {
46
46
  label: "全部",
@@ -59,9 +59,9 @@ var W = /* @__PURE__ */ d({
59
59
  value: "antd"
60
60
  }
61
61
  ];
62
- }), K = g("all"), q = g(""), J = a(() => {
62
+ }), q = h("all"), J = h(""), Y = a(() => {
63
63
  let e = [];
64
- for (let [t, n] of O.value.entries()) n.forEach((n) => {
64
+ for (let [t, n] of E.value.entries()) n.forEach((n) => {
65
65
  t === "local" ? e.push({
66
66
  name: n,
67
67
  module: t
@@ -70,47 +70,47 @@ var W = /* @__PURE__ */ d({
70
70
  module: t
71
71
  });
72
72
  });
73
- return W.value.forEach((t) => e.push({
73
+ return G.value.forEach((t) => e.push({
74
74
  name: t,
75
75
  module: "antd"
76
76
  })), e;
77
- }), Y = a(() => K.value === "all" ? J.value : K.value === "antd" ? J.value.filter((e) => e.module === "antd") : J.value.filter((e) => e.module === K.value)), X = a(() => {
78
- let e = q.value.trim().toLowerCase();
79
- return e ? Y.value.filter((t) => t.name.toLowerCase().includes(e)) : Y.value;
77
+ }), X = a(() => q.value === "all" ? Y.value : q.value === "antd" ? Y.value.filter((e) => e.module === "antd") : Y.value.filter((e) => e.module === q.value)), Z = a(() => {
78
+ let e = J.value.trim().toLowerCase();
79
+ return e ? X.value.filter((t) => t.name.toLowerCase().includes(e)) : X.value;
80
80
  });
81
- function Z(e) {
82
- return e === "all" ? J.value.length : e === "antd" ? J.value.filter((e) => e.module === "antd").length : J.value.filter((t) => t.module === e).length;
81
+ function re(e) {
82
+ return e === "all" ? Y.value.length : e === "antd" ? Y.value.filter((e) => e.module === "antd").length : Y.value.filter((t) => t.module === e).length;
83
83
  }
84
- let Q = g(1), $ = a(() => Math.max(1, Math.ceil(X.value.length / 30))), ae = a(() => {
84
+ let Q = h(1), $ = a(() => Math.max(1, Math.ceil(Z.value.length / 30))), ie = a(() => {
85
85
  let e = (Q.value - 1) * 30;
86
- return X.value.slice(e, e + 30);
86
+ return Z.value.slice(e, e + 30);
87
87
  });
88
- S([q, K], () => {
88
+ x([J, q], () => {
89
89
  Q.value = 1;
90
- }), S(X, () => {
90
+ }), x(Z, () => {
91
91
  Q.value > $.value && (Q.value = $.value);
92
92
  });
93
- function oe(e) {
93
+ function ae(e) {
94
94
  Q.value = e;
95
95
  }
96
- function se(e) {
97
- t.value = e.name, v();
96
+ function oe(e) {
97
+ t.value = e.name, _();
98
98
  }
99
- let ce = T.PRESENTED_IMAGE_SIMPLE;
99
+ let se = w.PRESENTED_IMAGE_SIMPLE;
100
100
  return (e, r) => {
101
- let a = N, g = A, x = M, S = D, w = j, T = k;
102
- return h(), c(i, null, [u(g, {
101
+ let a = j, h = O, b = A, x = ee, C = k, w = D;
102
+ return m(), c(i, null, [u(h, {
103
103
  value: t.value,
104
104
  "onUpdate:value": r[0] ||= (e) => t.value = e,
105
- onClick: p
105
+ onClick: f
106
106
  }, {
107
- addonAfter: C(() => [u(a, null, {
108
- title: C(() => [u(b(n), {
107
+ addonAfter: S(() => [u(a, null, {
108
+ title: S(() => [u(y(n), {
109
109
  name: t.value || "",
110
110
  size: "40px",
111
111
  class: "cursor-default"
112
112
  }, null, 8, ["name"])]),
113
- default: C(() => [u(b(n), {
113
+ default: S(() => [u(y(n), {
114
114
  name: t.value || "",
115
115
  size: "20px",
116
116
  class: "cursor-default"
@@ -118,64 +118,64 @@ var W = /* @__PURE__ */ d({
118
118
  _: 1
119
119
  })]),
120
120
  _: 1
121
- }, 8, ["value"]), u(T, null, {
122
- default: C(() => [u(w, {
123
- open: b(d),
124
- "onUpdate:open": r[2] ||= (e) => f(d) ? d.value = e : null,
121
+ }, 8, ["value"]), u(w, null, {
122
+ default: S(() => [u(C, {
123
+ open: d.value,
124
+ "onUpdate:open": r[2] ||= (e) => d.value = e,
125
125
  title: "选择图标",
126
126
  width: "1200px",
127
127
  footer: null,
128
128
  "destroy-on-close": "",
129
- onCancel: v
129
+ onCancel: _
130
130
  }, {
131
- default: C(() => [l("div", P, [
131
+ default: S(() => [l("div", M, [
132
132
  s(" 左侧模块列表 "),
133
- l("div", ee, [l("div", te, [u(g, {
134
- value: b(q),
135
- "onUpdate:value": r[1] ||= (e) => f(q) ? q.value = e : null,
133
+ l("div", N, [l("div", P, [u(h, {
134
+ value: J.value,
135
+ "onUpdate:value": r[1] ||= (e) => J.value = e,
136
136
  "allow-clear": "",
137
137
  bordered: !0,
138
138
  placeholder: "搜索图标",
139
139
  class: "h-9 text-13px"
140
140
  }, {
141
- prefix: C(() => [u(b(n), {
141
+ prefix: S(() => [u(y(n), {
142
142
  name: "i-carbon-search",
143
143
  size: "16",
144
144
  class: "text-[#7a869a]"
145
145
  })]),
146
146
  _: 1
147
- }, 8, ["value"])]), l("div", ne, [(h(!0), c(i, null, _(b(G), (e) => (h(), c("div", {
147
+ }, 8, ["value"])]), l("div", te, [(m(!0), c(i, null, g(K.value, (e) => (m(), c("div", {
148
148
  key: e.value,
149
- class: m(["flex items-center justify-between px-3 py-2 rounded-md cursor-pointer text-13px border border-transparent hover:bg-[#f3f6fa] dark:hover:bg-[#262c33] transition", b(K) === e.value ? "bg-[#eef5ff] dark:bg-[#1e2a33] border-[#1677ff] text-[#1677ff] font-medium" : "text-[#4b5563]"]),
150
- onClick: (t) => K.value = e.value
151
- }, [l("span", ie, y(e.label), 1), l("span", F, y(Z(e.value)), 1)], 10, re))), 128))])]),
149
+ class: p(["flex items-center justify-between px-3 py-2 rounded-md cursor-pointer text-13px border border-transparent hover:bg-[#f3f6fa] dark:hover:bg-[#262c33] transition", q.value === e.value ? "bg-[#eef5ff] dark:bg-[#1e2a33] border-[#1677ff] text-[#1677ff] font-medium" : "text-[#4b5563]"]),
150
+ onClick: (t) => q.value = e.value
151
+ }, [l("span", F, v(e.label), 1), l("span", I, v(re(e.value)), 1)], 10, ne))), 128))])]),
152
152
  s(" 主体 "),
153
- l("div", I, [b(X).length ? (h(), c(i, { key: 0 }, [
154
- l("div", L, [(h(!0), c(i, null, _(b(ae), (e) => (h(), o(a, {
153
+ l("div", L, [Z.value.length ? (m(), c(i, { key: 0 }, [
154
+ l("div", R, [(m(!0), c(i, null, g(ie.value, (e) => (m(), o(a, {
155
155
  key: `${e.module || ""}:${e.name}`,
156
156
  "mouse-enter-delay": .35
157
157
  }, {
158
- title: C(() => [l("div", R, [l("div", z, y(e.name), 1), e.module ? (h(), c("div", B, " 模块: " + y(e.module), 1)) : s("v-if", !0)])]),
159
- default: C(() => [l("div", {
160
- class: m(["group relative flex flex-col items-center justify-center cursor-pointer rounded-md", t.value === e.name ? "border-[#1677ff] ring-2 ring-[#1677ff80]" : ""]),
161
- onClick: (t) => se(e)
162
- }, [u(b(n), {
158
+ title: S(() => [l("div", z, [l("div", B, v(e.name), 1), e.module ? (m(), c("div", V, " 模块: " + v(e.module), 1)) : s("v-if", !0)])]),
159
+ default: S(() => [l("div", {
160
+ class: p(["group relative flex flex-col items-center justify-center cursor-pointer rounded-md", t.value === e.name ? "border-[#1677ff] ring-2 ring-[#1677ff80]" : ""]),
161
+ onClick: (t) => oe(e)
162
+ }, [u(y(n), {
163
163
  name: e.name,
164
164
  size: "30px"
165
- }, null, 8, ["name"])], 10, V)]),
165
+ }, null, 8, ["name"])], 10, H)]),
166
166
  _: 2
167
167
  }, 1024))), 128))]),
168
168
  s(" 分页 "),
169
- l("div", H, [u(x, {
170
- current: b(Q),
169
+ l("div", U, [u(b, {
170
+ current: Q.value,
171
171
  "page-size": 30,
172
- total: b(X).length,
172
+ total: Z.value.length,
173
173
  "show-size-changer": !1,
174
174
  "show-quick-jumper": "",
175
- onChange: oe
175
+ onChange: ae
176
176
  }, null, 8, ["current", "total"])])
177
- ], 64)) : (h(), c("div", U, [u(S, {
178
- image: b(ce),
177
+ ], 64)) : (m(), c("div", W, [u(x, {
178
+ image: y(se),
179
179
  description: "没有匹配的图标"
180
180
  }, null, 8, ["image"])]))])
181
181
  ])]),
@@ -185,10 +185,10 @@ var W = /* @__PURE__ */ d({
185
185
  })], 64);
186
186
  };
187
187
  }
188
- }), G = W, K = /* @__PURE__ */ d({
188
+ }), K = G, q = /* @__PURE__ */ d({
189
189
  name: "DynamicRoutesForm",
190
190
  __name: "DynamicRoutesForm",
191
- props: /* @__PURE__ */ p({ parent: {} }, {
191
+ props: /* @__PURE__ */ f({ parent: {} }, {
192
192
  modelValue: { default: { meta: {
193
193
  url: "",
194
194
  component: ""
@@ -197,7 +197,7 @@ var W = /* @__PURE__ */ d({
197
197
  }),
198
198
  emits: ["update:modelValue"],
199
199
  setup(n) {
200
- let r = x(n, "modelValue"), l = a(() => {
200
+ let r = b(n, "modelValue"), l = a(() => {
201
201
  let e = r.value.type;
202
202
  return {
203
203
  path: [
@@ -234,13 +234,13 @@ var W = /* @__PURE__ */ d({
234
234
  };
235
235
  }), d = a(() => !0);
236
236
  return (t, n) => {
237
- let a = A, f = O, p = E;
238
- return h(), c(i, null, [s(" eslint-disable-next-line "), b(d) ? (h(), c(i, { key: 0 }, [
239
- b(l).path ? (h(), o(p, {
237
+ let a = O, f = E, p = T;
238
+ return m(), c(i, null, [s(" eslint-disable-next-line "), d.value ? (m(), c(i, { key: 0 }, [
239
+ l.value.path ? (m(), o(p, {
240
240
  key: 0,
241
241
  span: 12
242
242
  }, {
243
- default: C(() => [u(f, {
243
+ default: S(() => [u(f, {
244
244
  label: "资源路径",
245
245
  name: ["meta", "url"],
246
246
  rules: [{
@@ -248,7 +248,7 @@ var W = /* @__PURE__ */ d({
248
248
  message: "请输入资源路径"
249
249
  }]
250
250
  }, {
251
- default: C(() => [u(a, {
251
+ default: S(() => [u(a, {
252
252
  value: r.value.meta.url,
253
253
  "onUpdate:value": n[0] ||= (e) => r.value.meta.url = e,
254
254
  placeholder: "请输入资源路径",
@@ -258,11 +258,11 @@ var W = /* @__PURE__ */ d({
258
258
  })]),
259
259
  _: 1
260
260
  })) : s("v-if", !0),
261
- b(l).component ? (h(), o(p, {
261
+ l.value.component ? (m(), o(p, {
262
262
  key: 1,
263
263
  span: 24
264
264
  }, {
265
- default: C(() => [u(f, {
265
+ default: S(() => [u(f, {
266
266
  label: "组件路径",
267
267
  name: ["meta", "component"],
268
268
  rules: [{
@@ -270,7 +270,7 @@ var W = /* @__PURE__ */ d({
270
270
  message: "请输入组件路径"
271
271
  }]
272
272
  }, {
273
- default: C(() => [u(e, {
273
+ default: S(() => [u(e, {
274
274
  modelValue: r.value.meta.component,
275
275
  "onUpdate:modelValue": n[1] ||= (e) => r.value.meta.component = e,
276
276
  scope: r.value.meta.scope,
@@ -280,15 +280,15 @@ var W = /* @__PURE__ */ d({
280
280
  })]),
281
281
  _: 1
282
282
  })) : s("v-if", !0),
283
- b(l).link ? (h(), o(p, {
283
+ l.value.link ? (m(), o(p, {
284
284
  key: 2,
285
285
  span: 24
286
286
  }, {
287
- default: C(() => [u(f, {
287
+ default: S(() => [u(f, {
288
288
  label: "外链地址",
289
289
  name: ["meta", "link"]
290
290
  }, {
291
- default: C(() => [u(a, {
291
+ default: S(() => [u(a, {
292
292
  value: r.value.meta.link,
293
293
  "onUpdate:value": n[3] ||= (e) => r.value.meta.link = e,
294
294
  placeholder: "请输入外链地址",
@@ -298,15 +298,15 @@ var W = /* @__PURE__ */ d({
298
298
  })]),
299
299
  _: 1
300
300
  })) : s("v-if", !0),
301
- b(l).iframe ? (h(), o(p, {
301
+ l.value.iframe ? (m(), o(p, {
302
302
  key: 3,
303
303
  span: 24
304
304
  }, {
305
- default: C(() => [u(f, {
305
+ default: S(() => [u(f, {
306
306
  label: "内嵌地址",
307
307
  name: ["meta", "iframe"]
308
308
  }, {
309
- default: C(() => [u(a, {
309
+ default: S(() => [u(a, {
310
310
  value: r.value.meta.iframe,
311
311
  "onUpdate:value": n[4] ||= (e) => r.value.meta.iframe = e,
312
312
  placeholder: "请输入内嵌地址",
@@ -316,15 +316,15 @@ var W = /* @__PURE__ */ d({
316
316
  })]),
317
317
  _: 1
318
318
  })) : s("v-if", !0),
319
- b(l).icon ? (h(), o(p, {
319
+ l.value.icon ? (m(), o(p, {
320
320
  key: 4,
321
321
  span: 12
322
322
  }, {
323
- default: C(() => [u(f, {
323
+ default: S(() => [u(f, {
324
324
  label: "资源图标",
325
325
  name: "icon"
326
326
  }, {
327
- default: C(() => [u(G, {
327
+ default: S(() => [u(K, {
328
328
  modelValue: r.value.icon,
329
329
  "onUpdate:modelValue": n[5] ||= (e) => r.value.icon = e
330
330
  }, null, 8, ["modelValue"])]),
@@ -332,15 +332,15 @@ var W = /* @__PURE__ */ d({
332
332
  })]),
333
333
  _: 1
334
334
  })) : s("v-if", !0),
335
- b(l).routeName ? (h(), o(p, {
335
+ l.value.routeName ? (m(), o(p, {
336
336
  key: 5,
337
337
  span: 12
338
338
  }, {
339
- default: C(() => [u(f, {
339
+ default: S(() => [u(f, {
340
340
  label: "路由名称",
341
341
  name: ["meta", "routeName"]
342
342
  }, {
343
- default: C(() => [u(a, {
343
+ default: S(() => [u(a, {
344
344
  value: r.value.meta.routeName,
345
345
  "onUpdate:value": n[6] ||= (e) => r.value.meta.routeName = e,
346
346
  placeholder: "请输入路由名称(name)",
@@ -350,16 +350,16 @@ var W = /* @__PURE__ */ d({
350
350
  })]),
351
351
  _: 1
352
352
  })) : s("v-if", !0),
353
- b(l).activeMenu ? (h(), o(p, {
353
+ l.value.activeMenu ? (m(), o(p, {
354
354
  key: 6,
355
355
  span: 12
356
356
  }, {
357
- default: C(() => [u(f, {
357
+ default: S(() => [u(f, {
358
358
  label: "激活路径",
359
359
  name: ["meta", "activeMenu"],
360
360
  tooltip: "跳转到当前路由时,需要激活的菜单路径。 当不在导航菜单中显示时,需要指定激活路径"
361
361
  }, {
362
- default: C(() => [u(a, {
362
+ default: S(() => [u(a, {
363
363
  value: r.value.meta.activeMenu,
364
364
  "onUpdate:value": n[7] ||= (e) => r.value.meta.activeMenu = e,
365
365
  placeholder: "请输入激活路径",
@@ -372,5 +372,5 @@ var W = /* @__PURE__ */ d({
372
372
  ], 64)) : s("v-if", !0)], 2112);
373
373
  };
374
374
  }
375
- }), q = K;
376
- export { q as b };
375
+ }), J = q;
376
+ export { J as b };
@@ -0,0 +1,2 @@
1
+ import { b as e } from "./HCheckList-CmS0Zgjk.js";
2
+ export { e as default };
@@ -0,0 +1,43 @@
1
+ import { am as e } from "./index.js";
2
+ import { Fragment as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, normalizeClass as s, normalizeStyle as c, openBlock as l, renderSlot as u, unref as d } from "vue";
3
+ import { DoubleRightOutlined as f } from "@ant-design/icons-vue";
4
+ import { theme as p } from "ant-design-vue";
5
+ var m = /* @__PURE__ */ o({
6
+ name: "HoverCard",
7
+ __name: "HoverCard",
8
+ props: { more: { type: Boolean } },
9
+ setup(o) {
10
+ let { token: m } = p.useToken(), [h, g] = e(), [_, v] = e();
11
+ return (e, o) => (l(), r("div", {
12
+ class: s(["relative rounded-t-lg h-[72px] px-5 border border-solid", [d(_) && e.more ? "rounded-b-none" : "rounded-b-lg"]]),
13
+ style: c({
14
+ borderColor: d(h) ? d(m).colorPrimary : d(m).colorBorder,
15
+ boxShadow: d(h) ? d(m).boxShadow : "none"
16
+ }),
17
+ onMouseenter: o[2] ||= (e) => d(g)(!0),
18
+ onMouseleave: o[3] ||= (e) => d(g)(!1)
19
+ }, [u(e.$slots, "default"), e.more ? (l(), r(t, { key: 0 }, [d(_) ? n("v-if", !0) : (l(), r("div", {
20
+ key: 0,
21
+ class: "absolute bottom-1 left-0 w-full text-center text-xs space-x-1 cursor-pointer",
22
+ onClick: o[0] ||= (e) => d(v)(!0)
23
+ }, [o[4] ||= i("span", null, "更多", -1), a(d(f), {
24
+ rotate: 90,
25
+ class: "animate-bounce"
26
+ })])), d(_) ? (l(), r("div", {
27
+ key: 1,
28
+ class: "absolute top-[70px] -left-[1px] z-50 w-[calc(100%+2px)] pt-5 px-5 border border-solid rounded-b-lg",
29
+ style: c({
30
+ borderColor: d(h) ? d(m).colorPrimary : d(m).colorBorder,
31
+ backgroundColor: d(m).colorBgElevated,
32
+ boxShadow: d(m).boxShadow
33
+ })
34
+ }, [u(e.$slots, "more"), i("div", {
35
+ class: "mt-5 pb-1 w-full text-center text-xs space-x-1 cursor-pointer",
36
+ onClick: o[1] ||= (e) => d(v)(!1)
37
+ }, [o[5] ||= i("span", null, "收起", -1), a(d(f), {
38
+ rotate: 270,
39
+ class: "animate-bounce"
40
+ })])], 4)) : n("v-if", !0)], 64)) : n("v-if", !0)], 38));
41
+ }
42
+ }), h = m;
43
+ export { h as b };
@@ -0,0 +1,2 @@
1
+ import { b as e } from "./HoverCard-B79q5sly.js";
2
+ export { e as default };