smart-admin-web 10.15.0 → 10.20.1

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 (432) hide show
  1. package/README.md +1 -1
  2. package/dist/api/index.d.ts +4 -2
  3. package/dist/api/index.js +1 -1
  4. package/dist/api/index.js.map +1 -1
  5. package/dist/api/schema.d.ts +39 -5
  6. package/dist/assets/icons/ph-subset.json.js +5 -5
  7. package/dist/components/AppIcon.vue.js +9 -9
  8. package/dist/components/AppIcon.vue.js.map +1 -1
  9. package/dist/components/AppWatermark.vue.d.ts +14 -0
  10. package/dist/components/AppWatermark.vue.js +38 -0
  11. package/dist/components/AppWatermark.vue.js.map +1 -0
  12. package/dist/components/AppWatermark2.vue.js +5 -0
  13. package/dist/components/AppWatermark2.vue.js.map +1 -0
  14. package/dist/components/Chart/PieChart.vue.d.ts +1 -1
  15. package/dist/components/Chart/echarts.js +15 -20
  16. package/dist/components/Chart/echarts.js.map +1 -1
  17. package/dist/components/CronEditor/index.vue.js +1 -1
  18. package/dist/components/CronEditor/index2.vue.js +2 -1
  19. package/dist/components/CronEditor/index2.vue.js.map +1 -1
  20. package/dist/components/DetailPage/index.vue.js +2 -2
  21. package/dist/components/DetailPage/index2.vue.js.map +1 -1
  22. package/dist/components/DictTag/index.vue.js.map +1 -1
  23. package/dist/components/ErrorBoundary/index.vue.js +2 -2
  24. package/dist/components/ErrorBoundary/index2.vue.js +1 -1
  25. package/dist/components/ErrorBoundary/index2.vue.js.map +1 -1
  26. package/dist/components/FormContainer/index.vue.js +91 -56
  27. package/dist/components/FormContainer/index.vue.js.map +1 -1
  28. package/dist/components/ImportWizard/index.vue.js +1 -1
  29. package/dist/components/ImportWizard/index2.vue.js +44 -41
  30. package/dist/components/ImportWizard/index2.vue.js.map +1 -1
  31. package/dist/components/MenuSearch.vue.js +2 -2
  32. package/dist/components/MenuSearch2.vue.js +19 -18
  33. package/dist/components/MenuSearch2.vue.js.map +1 -1
  34. package/dist/components/PasswordStrength/index.vue.js +2 -2
  35. package/dist/components/PasswordStrength/index2.vue.js +20 -18
  36. package/dist/components/PasswordStrength/index2.vue.js.map +1 -1
  37. package/dist/components/TableTotal/index.vue.d.ts +6 -0
  38. package/dist/components/{SelectTable → TableTotal}/index.vue.js +1 -1
  39. package/dist/components/TableTotal/index2.vue.js +16 -0
  40. package/dist/components/TableTotal/index2.vue.js.map +1 -0
  41. package/dist/components/TableZoomButton/index.vue.js.map +1 -1
  42. package/dist/components/UserPicker/index.vue.js +2 -2
  43. package/dist/components/UserPicker/index2.vue.js +176 -117
  44. package/dist/components/UserPicker/index2.vue.js.map +1 -1
  45. package/dist/composables/useBatchDelete.js.map +1 -1
  46. package/dist/composables/useLayoutMenu.js +17 -16
  47. package/dist/composables/useLayoutMenu.js.map +1 -1
  48. package/dist/composables/useModule.js +39 -29
  49. package/dist/composables/useModule.js.map +1 -1
  50. package/dist/composables/useShellBreakpoint.d.ts +19 -0
  51. package/dist/composables/useShellBreakpoint.js +37 -0
  52. package/dist/composables/useShellBreakpoint.js.map +1 -0
  53. package/dist/composables/useSite.d.ts +15 -0
  54. package/dist/composables/useSite.js +16 -14
  55. package/dist/composables/useSite.js.map +1 -1
  56. package/dist/composables/useTabTitle.js.map +1 -1
  57. package/dist/composables/useTableTitle.d.ts +6 -0
  58. package/dist/composables/useTableTitle.js +11 -0
  59. package/dist/composables/useTableTitle.js.map +1 -0
  60. package/dist/composables/useTableZoom.d.ts +5 -0
  61. package/dist/composables/useTableZoom.js.map +1 -1
  62. package/dist/composables/useTheme.d.ts +2 -2
  63. package/dist/composables/useTheme.js +23 -20
  64. package/dist/composables/useTheme.js.map +1 -1
  65. package/dist/createSmartAdmin.d.ts +12 -2
  66. package/dist/createSmartAdmin.js +72 -60
  67. package/dist/createSmartAdmin.js.map +1 -1
  68. package/dist/index.d.ts +5 -2
  69. package/dist/index.js +219 -205
  70. package/dist/index.js.map +1 -1
  71. package/dist/layouts/AccentPicker.vue.js +8 -0
  72. package/dist/layouts/AccentPicker.vue.js.map +1 -0
  73. package/dist/layouts/AccentPicker2.vue.js +131 -0
  74. package/dist/layouts/AccentPicker2.vue.js.map +1 -0
  75. package/dist/layouts/AppHeader.vue.d.ts +8 -1
  76. package/dist/layouts/AppHeader.vue.js +2 -2
  77. package/dist/layouts/AppHeader2.vue.js +317 -235
  78. package/dist/layouts/AppHeader2.vue.js.map +1 -1
  79. package/dist/layouts/NoticeBell.vue.js +2 -2
  80. package/dist/layouts/NoticeBell2.vue.js +19 -18
  81. package/dist/layouts/NoticeBell2.vue.js.map +1 -1
  82. package/dist/layouts/PersonalLayout.vue.js +2 -2
  83. package/dist/layouts/PersonalLayout2.vue.js +69 -47
  84. package/dist/layouts/PersonalLayout2.vue.js.map +1 -1
  85. package/dist/layouts/SettingsDrawer.vue.js +3 -3
  86. package/dist/layouts/SettingsDrawer2.vue.js +261 -325
  87. package/dist/layouts/SettingsDrawer2.vue.js.map +1 -1
  88. package/dist/layouts/TabsBar.vue.js +2 -2
  89. package/dist/layouts/TabsBar2.vue.js +97 -69
  90. package/dist/layouts/TabsBar2.vue.js.map +1 -1
  91. package/dist/layouts/components/SideNav.vue.d.ts +3 -0
  92. package/dist/layouts/components/SideNav.vue.js +1 -1
  93. package/dist/layouts/components/SideNav2.vue.js +54 -26
  94. package/dist/layouts/components/SideNav2.vue.js.map +1 -1
  95. package/dist/layouts/default.vue.js +1 -1
  96. package/dist/layouts/default2.vue.js +170 -140
  97. package/dist/layouts/default2.vue.js.map +1 -1
  98. package/dist/lib/loginHero.d.ts +2 -2
  99. package/dist/lib/loginHero.js.map +1 -1
  100. package/dist/lib/runtime.js +1 -1
  101. package/dist/lib/watermark.d.ts +110 -0
  102. package/dist/lib/watermark.js +151 -0
  103. package/dist/lib/watermark.js.map +1 -0
  104. package/dist/locales/en-US.d.ts +221 -15
  105. package/dist/locales/en-US.js +230 -21
  106. package/dist/locales/en-US.js.map +1 -1
  107. package/dist/locales/kernelMenuTitles.d.ts +1 -0
  108. package/dist/locales/kernelMenuTitles.js +128 -0
  109. package/dist/locales/kernelMenuTitles.js.map +1 -0
  110. package/dist/locales/menuTitle.d.ts +3 -0
  111. package/dist/locales/menuTitle.js +14 -12
  112. package/dist/locales/menuTitle.js.map +1 -1
  113. package/dist/locales/zh-CN.d.ts +221 -15
  114. package/dist/locales/zh-CN.js +238 -28
  115. package/dist/locales/zh-CN.js.map +1 -1
  116. package/dist/router/index.js +41 -32
  117. package/dist/router/index.js.map +1 -1
  118. package/dist/router/namedPage.d.ts +4 -0
  119. package/dist/router/namedPage.js +7 -7
  120. package/dist/router/namedPage.js.map +1 -1
  121. package/dist/router/viewRegistry.js +8 -8
  122. package/dist/router/viewRegistry.js.map +1 -1
  123. package/dist/stores/app.d.ts +0 -12
  124. package/dist/stores/app.js +11 -12
  125. package/dist/stores/app.js.map +1 -1
  126. package/dist/stores/tabs.js.map +1 -1
  127. package/dist/stores/user.d.ts +10 -0
  128. package/dist/stores/user.js.map +1 -1
  129. package/dist/style.css +1 -1
  130. package/dist/theme/accentTokens.d.ts +27 -0
  131. package/dist/theme/accentTokens.js +54 -0
  132. package/dist/theme/accentTokens.js.map +1 -0
  133. package/dist/theme/accents.d.ts +21 -1
  134. package/dist/theme/accents.js +11 -2
  135. package/dist/theme/accents.js.map +1 -1
  136. package/dist/theme/mix.d.ts +58 -7
  137. package/dist/theme/mix.js +115 -30
  138. package/dist/theme/mix.js.map +1 -1
  139. package/dist/theme/naive-theme.d.ts +5 -2
  140. package/dist/theme/naive-theme.js +407 -75
  141. package/dist/theme/naive-theme.js.map +1 -1
  142. package/dist/utils/jwt.d.ts +8 -0
  143. package/dist/utils/jwt.js +14 -0
  144. package/dist/utils/jwt.js.map +1 -0
  145. package/dist/utils/menuIcon.d.ts +2 -0
  146. package/dist/utils/menuIcon.js +8 -0
  147. package/dist/utils/menuIcon.js.map +1 -0
  148. package/dist/utils/oauthBrand.js.map +1 -1
  149. package/dist/utils/tableFilter.d.ts +88 -0
  150. package/dist/utils/tableFilter.js +116 -0
  151. package/dist/utils/tableFilter.js.map +1 -0
  152. package/dist/utils/tableToolbar.d.ts +18 -0
  153. package/dist/utils/tableToolbar.js +11 -0
  154. package/dist/utils/tableToolbar.js.map +1 -0
  155. package/dist/utils/treeFilter.d.ts +20 -0
  156. package/dist/utils/treeFilter.js +24 -0
  157. package/dist/utils/treeFilter.js.map +1 -0
  158. package/dist/views/dashboard/ShortcutPicker.vue.js +1 -1
  159. package/dist/views/dashboard/ShortcutPicker2.vue.js +73 -48
  160. package/dist/views/dashboard/ShortcutPicker2.vue.js.map +1 -1
  161. package/dist/views/dashboard/biz.vue.js +1 -1
  162. package/dist/views/dashboard/biz2.vue.js +310 -257
  163. package/dist/views/dashboard/biz2.vue.js.map +1 -1
  164. package/dist/views/dashboard/workbench.vue.js +2 -2
  165. package/dist/views/dashboard/workbench2.vue.js +141 -155
  166. package/dist/views/dashboard/workbench2.vue.js.map +1 -1
  167. package/dist/views/embed/iframe.vue.js +2 -2
  168. package/dist/views/embed/iframe2.vue.js +22 -15
  169. package/dist/views/embed/iframe2.vue.js.map +1 -1
  170. package/dist/views/error/404.vue.js +2 -2
  171. package/dist/views/error/4042.vue.js +33 -24
  172. package/dist/views/error/4042.vue.js.map +1 -1
  173. package/dist/views/error/BootError.vue.js +1 -1
  174. package/dist/views/error/BootError2.vue.js +59 -48
  175. package/dist/views/error/BootError2.vue.js.map +1 -1
  176. package/dist/views/error/MissingRoute.vue.js +2 -2
  177. package/dist/views/error/MissingRoute2.vue.js +34 -15
  178. package/dist/views/error/MissingRoute2.vue.js.map +1 -1
  179. package/dist/views/login/LoginForm.vue.d.ts +7 -1
  180. package/dist/views/login/LoginForm.vue.js +2 -2
  181. package/dist/views/login/LoginForm2.vue.js +580 -488
  182. package/dist/views/login/LoginForm2.vue.js.map +1 -1
  183. package/dist/views/login/components/LoginDesk.vue.d.ts +36 -0
  184. package/dist/views/login/components/LoginDesk.vue.js +9 -0
  185. package/dist/views/login/components/LoginDesk.vue.js.map +1 -0
  186. package/dist/views/login/components/LoginDesk2.vue.js +100 -0
  187. package/dist/views/login/components/LoginDesk2.vue.js.map +1 -0
  188. package/dist/views/login/components/LoginHeroPanel.vue.js +3 -3
  189. package/dist/views/login/components/LoginHeroPanel2.vue.js +34 -39
  190. package/dist/views/login/components/LoginHeroPanel2.vue.js.map +1 -1
  191. package/dist/views/login/index.vue.js +1 -1
  192. package/dist/views/login/index2.vue.js +141 -71
  193. package/dist/views/login/index2.vue.js.map +1 -1
  194. package/dist/views/login/layout.d.ts +11 -0
  195. package/dist/views/login/layout.js +27 -0
  196. package/dist/views/login/layout.js.map +1 -0
  197. package/dist/views/mfa/index.vue.js +2 -2
  198. package/dist/views/mfa/index2.vue.js +367 -321
  199. package/dist/views/mfa/index2.vue.js.map +1 -1
  200. package/dist/views/module/index.vue.js +2 -2
  201. package/dist/views/module/index2.vue.js +132 -99
  202. package/dist/views/module/index2.vue.js.map +1 -1
  203. package/dist/views/oauth/callback.vue.js +2 -2
  204. package/dist/views/oauth/callback2.vue.js +65 -51
  205. package/dist/views/oauth/callback2.vue.js.map +1 -1
  206. package/dist/views/personal/bindings.vue.js +2 -2
  207. package/dist/views/personal/bindings2.vue.js +98 -94
  208. package/dist/views/personal/bindings2.vue.js.map +1 -1
  209. package/dist/views/personal/notice2.vue.js +103 -76
  210. package/dist/views/personal/notice2.vue.js.map +1 -1
  211. package/dist/views/personal/password2.vue.js +47 -40
  212. package/dist/views/personal/password2.vue.js.map +1 -1
  213. package/dist/views/personal/profile.vue.js +3 -3
  214. package/dist/views/personal/profile2.vue.js +24 -18
  215. package/dist/views/personal/profile2.vue.js.map +1 -1
  216. package/dist/views/personal/security.vue.js +2 -2
  217. package/dist/views/personal/security2.vue.js +65 -53
  218. package/dist/views/personal/security2.vue.js.map +1 -1
  219. package/dist/views/personal/sessions.vue.js +2 -2
  220. package/dist/views/personal/sessions2.vue.js +67 -62
  221. package/dist/views/personal/sessions2.vue.js.map +1 -1
  222. package/dist/views/system/ai-model/components/ProviderCard.vue.js +2 -2
  223. package/dist/views/system/ai-model/components/ProviderCard2.vue.js +142 -130
  224. package/dist/views/system/ai-model/components/ProviderCard2.vue.js.map +1 -1
  225. package/dist/views/system/ai-model/components/ProviderForm.vue.js +2 -2
  226. package/dist/views/system/ai-model/components/ProviderForm2.vue.js +71 -70
  227. package/dist/views/system/ai-model/components/ProviderForm2.vue.js.map +1 -1
  228. package/dist/views/system/ai-model/index.vue.js +2 -2
  229. package/dist/views/system/ai-model/index2.vue.js +99 -99
  230. package/dist/views/system/ai-model/index2.vue.js.map +1 -1
  231. package/dist/views/system/ai-model/presets.d.ts +1 -1
  232. package/dist/views/system/ai-model/presets.js +18 -18
  233. package/dist/views/system/ai-model/presets.js.map +1 -1
  234. package/dist/views/system/ai-usage/index.vue.js +2 -2
  235. package/dist/views/system/ai-usage/index2.vue.js +356 -258
  236. package/dist/views/system/ai-usage/index2.vue.js.map +1 -1
  237. package/dist/views/system/api-docs/index.vue.js +5 -2
  238. package/dist/views/system/api-docs/index.vue.js.map +1 -1
  239. package/dist/views/system/api-docs/index2.vue.js +92 -42
  240. package/dist/views/system/api-docs/index2.vue.js.map +1 -1
  241. package/dist/views/system/cache/index.vue.js +2 -2
  242. package/dist/views/system/cache/index2.vue.js +74 -80
  243. package/dist/views/system/cache/index2.vue.js.map +1 -1
  244. package/dist/views/system/config/components/AdminMock.vue.js +2 -2
  245. package/dist/views/system/config/components/AdminMock2.vue.js +60 -43
  246. package/dist/views/system/config/components/AdminMock2.vue.js.map +1 -1
  247. package/dist/views/system/config/components/AdvancedSection.vue.js +5 -2
  248. package/dist/views/system/config/components/AdvancedSection.vue.js.map +1 -1
  249. package/dist/views/system/config/components/AdvancedSection2.vue.js +98 -70
  250. package/dist/views/system/config/components/AdvancedSection2.vue.js.map +1 -1
  251. package/dist/views/system/config/components/BrandSection.vue.js +2 -2
  252. package/dist/views/system/config/components/BrandSection2.vue.js +121 -119
  253. package/dist/views/system/config/components/BrandSection2.vue.js.map +1 -1
  254. package/dist/views/system/config/components/CfgGroup.vue.js +3 -3
  255. package/dist/views/system/config/components/CfgGroup2.vue.js.map +1 -1
  256. package/dist/views/system/config/components/CfgRow.vue.js +1 -1
  257. package/dist/views/system/config/components/CfgRow2.vue.js +24 -23
  258. package/dist/views/system/config/components/CfgRow2.vue.js.map +1 -1
  259. package/dist/views/system/config/components/CfgSegment.vue.js +1 -1
  260. package/dist/views/system/config/components/CfgSegment2.vue.js +16 -15
  261. package/dist/views/system/config/components/CfgSegment2.vue.js.map +1 -1
  262. package/dist/views/system/config/components/ConfigFormModal.vue.js +2 -2
  263. package/dist/views/system/config/components/ConfigFormModal2.vue.js +35 -33
  264. package/dist/views/system/config/components/ConfigFormModal2.vue.js.map +1 -1
  265. package/dist/views/system/config/components/JobSection.vue.js +2 -2
  266. package/dist/views/system/config/components/JobSection2.vue.js +46 -44
  267. package/dist/views/system/config/components/JobSection2.vue.js.map +1 -1
  268. package/dist/views/system/config/components/LoginMock.vue.js +3 -3
  269. package/dist/views/system/config/components/LoginMock2.vue.js +83 -72
  270. package/dist/views/system/config/components/LoginMock2.vue.js.map +1 -1
  271. package/dist/views/system/config/components/LogoCropper.vue.js +1 -1
  272. package/dist/views/system/config/components/LogoCropper2.vue.js.map +1 -1
  273. package/dist/views/system/config/components/LogoEditor.vue.js +2 -2
  274. package/dist/views/system/config/components/LogoEditor2.vue.js +11 -13
  275. package/dist/views/system/config/components/LogoEditor2.vue.js.map +1 -1
  276. package/dist/views/system/config/components/ProviderSheet.vue.js +3 -3
  277. package/dist/views/system/config/components/ProviderSheet2.vue.js.map +1 -1
  278. package/dist/views/system/config/components/SectionLayout.vue.d.ts +4 -2
  279. package/dist/views/system/config/components/SectionLayout.vue.js +2 -2
  280. package/dist/views/system/config/components/SectionLayout2.vue.js +51 -27
  281. package/dist/views/system/config/components/SectionLayout2.vue.js.map +1 -1
  282. package/dist/views/system/config/components/SecuritySection.vue.js +2 -2
  283. package/dist/views/system/config/components/SecuritySection2.vue.js +207 -206
  284. package/dist/views/system/config/components/SecuritySection2.vue.js.map +1 -1
  285. package/dist/views/system/config/components/SensitiveSection.vue.js +2 -2
  286. package/dist/views/system/config/components/SensitiveSection2.vue.js +107 -102
  287. package/dist/views/system/config/components/SensitiveSection2.vue.js.map +1 -1
  288. package/dist/views/system/config/components/UploadSection.vue.js +2 -2
  289. package/dist/views/system/config/components/UploadSection2.vue.js +86 -77
  290. package/dist/views/system/config/components/UploadSection2.vue.js.map +1 -1
  291. package/dist/views/system/config/components/WatermarkSection.vue.js +8 -0
  292. package/dist/views/system/config/components/WatermarkSection.vue.js.map +1 -0
  293. package/dist/views/system/config/components/WatermarkSection2.vue.js +284 -0
  294. package/dist/views/system/config/components/WatermarkSection2.vue.js.map +1 -0
  295. package/dist/views/system/config/draft.d.ts +2 -2
  296. package/dist/views/system/config/draft.js.map +1 -1
  297. package/dist/views/system/config/groups.d.ts +4 -1
  298. package/dist/views/system/config/groups.js +54 -49
  299. package/dist/views/system/config/groups.js.map +1 -1
  300. package/dist/views/system/config/index.vue.js +3 -2
  301. package/dist/views/system/config/index.vue.js.map +1 -1
  302. package/dist/views/system/config/index2.vue.js +173 -148
  303. package/dist/views/system/config/index2.vue.js.map +1 -1
  304. package/dist/views/system/config/layoutMode.d.ts +23 -0
  305. package/dist/views/system/config/layoutMode.js +28 -0
  306. package/dist/views/system/config/layoutMode.js.map +1 -0
  307. package/dist/views/system/dict/index.vue.js +2 -2
  308. package/dist/views/system/dict/index2.vue.js +471 -366
  309. package/dist/views/system/dict/index2.vue.js.map +1 -1
  310. package/dist/views/system/file/index2.vue.js +91 -76
  311. package/dist/views/system/file/index2.vue.js.map +1 -1
  312. package/dist/views/system/job/index.vue.js +3 -3
  313. package/dist/views/system/job/index2.vue.js +897 -828
  314. package/dist/views/system/job/index2.vue.js.map +1 -1
  315. package/dist/views/system/job-log/components/AttemptTable.vue.d.ts +8 -0
  316. package/dist/views/system/job-log/components/AttemptTable.vue.js +5 -0
  317. package/dist/views/system/job-log/components/AttemptTable.vue.js.map +1 -0
  318. package/dist/views/system/job-log/components/AttemptTable2.vue.js +54 -0
  319. package/dist/views/system/job-log/components/AttemptTable2.vue.js.map +1 -0
  320. package/dist/views/system/job-log/index.vue.js +2 -2
  321. package/dist/views/system/job-log/index2.vue.js +193 -207
  322. package/dist/views/system/job-log/index2.vue.js.map +1 -1
  323. package/dist/views/system/job-log/runStatus.d.ts +13 -0
  324. package/dist/views/system/job-log/runStatus.js +26 -0
  325. package/dist/views/system/job-log/runStatus.js.map +1 -0
  326. package/dist/views/system/job-monitor/index.vue.js +2 -2
  327. package/dist/views/system/job-monitor/index2.vue.js +172 -180
  328. package/dist/views/system/job-monitor/index2.vue.js.map +1 -1
  329. package/dist/views/system/log/exception/index.vue.js +2 -2
  330. package/dist/views/system/log/exception/index2.vue.js +135 -96
  331. package/dist/views/system/log/exception/index2.vue.js.map +1 -1
  332. package/dist/views/system/log/login/index2.vue.js +62 -41
  333. package/dist/views/system/log/login/index2.vue.js.map +1 -1
  334. package/dist/views/system/log/op/index.vue.js +2 -2
  335. package/dist/views/system/log/op/index2.vue.js +200 -162
  336. package/dist/views/system/log/op/index2.vue.js.map +1 -1
  337. package/dist/views/system/menu/components/ButtonManager.vue.js +2 -2
  338. package/dist/views/system/menu/components/ButtonManager2.vue.js +206 -190
  339. package/dist/views/system/menu/components/ButtonManager2.vue.js.map +1 -1
  340. package/dist/views/system/menu/components/MenuFormModal.vue.js +2 -2
  341. package/dist/views/system/menu/components/MenuFormModal2.vue.js +127 -118
  342. package/dist/views/system/menu/components/MenuFormModal2.vue.js.map +1 -1
  343. package/dist/views/system/menu/index.vue.js +1 -1
  344. package/dist/views/system/menu/index2.vue.js +216 -183
  345. package/dist/views/system/menu/index2.vue.js.map +1 -1
  346. package/dist/views/system/module/index.vue.js +1 -1
  347. package/dist/views/system/module/index2.vue.js +177 -144
  348. package/dist/views/system/module/index2.vue.js.map +1 -1
  349. package/dist/views/system/monitor/index.vue.js +2 -2
  350. package/dist/views/system/monitor/index2.vue.js +134 -149
  351. package/dist/views/system/monitor/index2.vue.js.map +1 -1
  352. package/dist/views/system/notice/index.vue.js +1 -1
  353. package/dist/views/system/notice/index2.vue.js +209 -181
  354. package/dist/views/system/notice/index2.vue.js.map +1 -1
  355. package/dist/views/system/org/index.vue.js +1 -1
  356. package/dist/views/system/org/index2.vue.js +278 -248
  357. package/dist/views/system/org/index2.vue.js.map +1 -1
  358. package/dist/views/system/position/index.vue.js +5 -2
  359. package/dist/views/system/position/index.vue.js.map +1 -1
  360. package/dist/views/system/position/index2.vue.js +128 -92
  361. package/dist/views/system/position/index2.vue.js.map +1 -1
  362. package/dist/views/system/recycle/index.vue.js +2 -2
  363. package/dist/views/system/recycle/index2.vue.js +90 -67
  364. package/dist/views/system/recycle/index2.vue.js.map +1 -1
  365. package/dist/views/system/role/components/GrantMenuSheet.vue.d.ts +20 -0
  366. package/dist/views/system/role/components/GrantMenuSheet.vue.js +8 -0
  367. package/dist/views/system/role/components/GrantMenuSheet.vue.js.map +1 -0
  368. package/dist/views/system/role/components/GrantMenuSheet2.vue.js +117 -0
  369. package/dist/views/system/role/components/GrantMenuSheet2.vue.js.map +1 -0
  370. package/dist/views/system/role/components/GrantMenuTable.vue.d.ts +6 -4
  371. package/dist/views/system/role/components/GrantMenuTable.vue.js +2 -2
  372. package/dist/views/system/role/components/GrantMenuTable2.vue.js +279 -177
  373. package/dist/views/system/role/components/GrantMenuTable2.vue.js.map +1 -1
  374. package/dist/views/system/role/components/MatchText.vue.d.ts +7 -0
  375. package/dist/views/system/role/components/MatchText.vue.js +8 -0
  376. package/dist/views/system/role/components/MatchText.vue.js.map +1 -0
  377. package/dist/views/system/role/components/MatchText2.vue.js +29 -0
  378. package/dist/views/system/role/components/MatchText2.vue.js.map +1 -0
  379. package/dist/views/system/role/components/grantMenuGroups.d.ts +36 -0
  380. package/dist/views/system/role/components/grantMenuGroups.js +110 -48
  381. package/dist/views/system/role/components/grantMenuGroups.js.map +1 -1
  382. package/dist/views/system/role/index.vue.js +5 -2
  383. package/dist/views/system/role/index.vue.js.map +1 -1
  384. package/dist/views/system/role/index2.vue.js +181 -165
  385. package/dist/views/system/role/index2.vue.js.map +1 -1
  386. package/dist/views/system/session/index2.vue.js +75 -49
  387. package/dist/views/system/session/index2.vue.js.map +1 -1
  388. package/dist/views/system/user/components/ResetPasswordModal.vue.js +2 -2
  389. package/dist/views/system/user/components/ResetPasswordModal2.vue.js +2 -0
  390. package/dist/views/system/user/components/ResetPasswordModal2.vue.js.map +1 -1
  391. package/dist/views/system/user/components/UserFormModal.vue.js +2 -2
  392. package/dist/views/system/user/components/UserFormModal2.vue.js +77 -76
  393. package/dist/views/system/user/components/UserFormModal2.vue.js.map +1 -1
  394. package/dist/views/system/user/index.vue.js +2 -2
  395. package/dist/views/system/user/index2.vue.js +362 -275
  396. package/dist/views/system/user/index2.vue.js.map +1 -1
  397. package/package.json +3 -5
  398. package/dist/components/SelectTable/index.vue.d.ts +0 -76
  399. package/dist/components/SelectTable/index2.vue.js +0 -256
  400. package/dist/components/SelectTable/index2.vue.js.map +0 -1
  401. package/dist/composables/useTableRowSort.d.ts +0 -20
  402. package/dist/composables/useTableRowSort.js +0 -59
  403. package/dist/composables/useTableRowSort.js.map +0 -1
  404. package/dist/layouts/LayoutModeCards.vue.js +0 -8
  405. package/dist/layouts/LayoutModeCards.vue.js.map +0 -1
  406. package/dist/layouts/LayoutModeCards2.vue.js +0 -67
  407. package/dist/layouts/LayoutModeCards2.vue.js.map +0 -1
  408. package/dist/layouts/SettingRow.vue.d.ts +0 -16
  409. package/dist/layouts/SettingRow.vue.js +0 -8
  410. package/dist/layouts/SettingRow.vue.js.map +0 -1
  411. package/dist/layouts/SettingRow2.vue.js +0 -23
  412. package/dist/layouts/SettingRow2.vue.js.map +0 -1
  413. package/dist/views/login/skins/AuroraGlass.vue.js +0 -8
  414. package/dist/views/login/skins/AuroraGlass.vue.js.map +0 -1
  415. package/dist/views/login/skins/AuroraGlass2.vue.js +0 -80
  416. package/dist/views/login/skins/AuroraGlass2.vue.js.map +0 -1
  417. package/dist/views/login/skins/SplitPanel.vue.d.ts +0 -3
  418. package/dist/views/login/skins/SplitPanel.vue.js +0 -8
  419. package/dist/views/login/skins/SplitPanel.vue.js.map +0 -1
  420. package/dist/views/login/skins/SplitPanel2.vue.js +0 -65
  421. package/dist/views/login/skins/SplitPanel2.vue.js.map +0 -1
  422. package/dist/views/login/skins/Spotlight.vue.d.ts +0 -3
  423. package/dist/views/login/skins/Spotlight.vue.js +0 -8
  424. package/dist/views/login/skins/Spotlight.vue.js.map +0 -1
  425. package/dist/views/login/skins/Spotlight2.vue.js +0 -36
  426. package/dist/views/login/skins/Spotlight2.vue.js.map +0 -1
  427. package/dist/views/login/skins.d.ts +0 -8
  428. package/dist/views/login/skins.js +0 -13
  429. package/dist/views/login/skins.js.map +0 -1
  430. /package/dist/components/{SelectTable → TableTotal}/index.vue.js.map +0 -0
  431. /package/dist/layouts/{LayoutModeCards.vue.d.ts → AccentPicker.vue.d.ts} +0 -0
  432. /package/dist/views/{login/skins/AuroraGlass.vue.d.ts → system/config/components/WatermarkSection.vue.d.ts} +0 -0
@@ -1,17 +1,20 @@
1
- import { defineComponent as Ie, computed as d, ref as r, reactive as Ne, openBlock as m, createElementBlock as q, Fragment as ee, createVNode as a, unref as l, withCtx as u, createBlock as v, createTextVNode as w, toDisplayString as h, createCommentVNode as L, createElementVNode as te, renderList as Ue, h as y } from "vue";
2
- import { useMessage as _e, NSpace as c, NButton as x, NForm as ze, NGrid as Pe, NFormItemGi as C, NInput as D, NSelect as le, NCheckbox as M, NInputNumber as Te, NSwitch as Be, NEmpty as ne, NTag as Se, NPopconfirm as Ee } from "naive-ui";
3
- import { SmartTable as Ae } from "smart-naive-table";
4
- import { useI18n as Re } from "vue-i18n";
5
- import $e from "../../../../components/AppIcon.vue.js";
6
- import j from "../../../../components/FormContainer/index.vue.js";
1
+ import { defineComponent as Ue, computed as r, ref as d, reactive as _e, openBlock as m, createElementBlock as M, Fragment as te, createVNode as a, unref as l, withCtx as u, createBlock as v, createTextVNode as x, toDisplayString as h, createCommentVNode as O, mergeProps as Be, createElementVNode as le, renderList as Ae, h as p } from "vue";
2
+ import { useMediaQuery as Ee } from "@vueuse/core";
3
+ import { useMessage as Se, NButton as C, NSpace as b, NForm as ze, NGrid as Re, NFormItemGi as I, NInput as q, NSelect as ne, NCheckbox as j, NInputNumber as Le, NSwitch as Oe, NEmpty as oe, NTag as $e, NPopconfirm as Me } from "naive-ui";
4
+ import { SmartTable as qe } from "smart-naive-table";
5
+ import { useI18n as je } from "vue-i18n";
6
+ import D from "../../../../components/AppIcon.vue.js";
7
+ import F from "../../../../components/FormContainer/index.vue.js";
7
8
  /* empty css */
8
- import Le from "../../../../components/StatusSwitch/index.vue.js";
9
- import { useConfirm as Oe } from "../../../../composables/useConfirm.js";
10
- import { useAuthStore as qe } from "../../../../stores/auth.js";
11
- import { menuApi as I } from "../../../../api/index.js";
12
- import { translateError as oe } from "../../../../utils/error.js";
13
- import { MenuType as N, splitPermission as F, joinPermission as De } from "../../../../types/menu.js";
14
- const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(--color-text-secondary, #888)", "font-size": "12px" } }, lt = /* @__PURE__ */ Ie({
9
+ import De from "../../../../components/StatusSwitch/index.vue.js";
10
+ import { useConfirm as Fe } from "../../../../composables/useConfirm.js";
11
+ import { translateMenuTitle as ae } from "../../../../locales/menuTitle.js";
12
+ import { useAuthStore as Ve } from "../../../../stores/auth.js";
13
+ import { menuApi as N } from "../../../../api/index.js";
14
+ import { translateError as ue } from "../../../../utils/error.js";
15
+ import { TABLE_TOOLBAR as Ge } from "../../../../utils/tableToolbar.js";
16
+ import { MenuType as P, splitPermission as V, joinPermission as We } from "../../../../types/menu.js";
17
+ const He = { class: "perm-hint" }, Qe = { class: "batch-route mono muted" }, mt = /* @__PURE__ */ Ue({
15
18
  __name: "ButtonManager",
16
19
  props: {
17
20
  tree: {},
@@ -19,8 +22,10 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
19
22
  appPrefix: {}
20
23
  },
21
24
  emits: ["changed"],
22
- setup(ae, { expose: ue, emit: se }) {
23
- const f = ae, U = se, { t: o } = Re(), _ = _e(), { run: ie } = Oe(), O = qe(), V = d(() => O.hasPerm("POST:/api/v1/sys/menu/add")), re = d(() => O.hasPerm("PUT:/api/v1/sys/menu/{id}")), de = d(() => O.hasPerm("DELETE:/api/v1/sys/menu/{id}")), z = r(!1), b = r(null), G = r("");
25
+ setup(se, { expose: ie, emit: re }) {
26
+ const f = se, T = re, { t: o } = je(), U = Se(), { run: de } = Fe(), $ = Ve(), G = r(() => $.hasPerm("POST:/api/v1/sys/menu/add")), me = r(() => $.hasPerm("PUT:/api/v1/sys/menu/{id}")), ce = r(() => $.hasPerm("DELETE:/api/v1/sys/menu/{id}")), pe = Ee("(max-width: 640px)"), fe = r(
27
+ () => pe.value ? { labelPlacement: "top", labelWidth: void 0 } : { labelPlacement: "left", labelWidth: 80 }
28
+ ), _ = d(!1), y = d(null), W = d("");
24
29
  function H(e, t) {
25
30
  for (const n of e) {
26
31
  if (n.id === t) return n;
@@ -29,45 +34,48 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
29
34
  }
30
35
  return null;
31
36
  }
32
- const K = d(() => {
33
- if (b.value == null) return [];
34
- const e = H(f.tree, b.value);
35
- return ((e == null ? void 0 : e.children) ?? []).filter((t) => t.type === N.Button);
36
- }), me = d(() => new Set(K.value.flatMap((e) => F(e.permission)))), P = d(() => (f.appPrefix ?? "").trim().replace(/^\/+|\/+$/g, "")), T = (e) => {
37
- const t = P.value;
37
+ const Q = r(() => {
38
+ if (y.value == null) return [];
39
+ const e = H(f.tree, y.value);
40
+ return ((e == null ? void 0 : e.children) ?? []).filter((t) => t.type === P.Button);
41
+ }), ve = r(() => new Set(Q.value.flatMap((e) => V(e.permission)))), B = r(() => (f.appPrefix ?? "").trim().replace(/^\/+|\/+$/g, "")), A = (e) => {
42
+ const t = B.value;
38
43
  return t ? e.includes(`/${t}/`) || e.endsWith(`/${t}`) : !0;
39
- }, Q = d(
40
- () => P.value !== "" && f.routes.some((e) => !T(e.path))
41
- ), p = r(!1), B = (e) => ({ label: `${e.method} ${e.path}`, value: e.code }), pe = d(() => {
42
- if (!P.value) return f.routes.map(B);
43
- const t = f.routes.filter((s) => T(s.path));
44
- if (!p.value) return t.map(B);
45
- const n = f.routes.filter((s) => !T(s.path));
44
+ }, K = r(
45
+ () => B.value !== "" && f.routes.some((e) => !A(e.path))
46
+ ), c = d(!1), E = (e) => ({ label: `${e.method} ${e.path}`, value: e.code }), he = r(() => {
47
+ if (!B.value) return f.routes.map(E);
48
+ const t = f.routes.filter((s) => A(s.path));
49
+ if (!c.value) return t.map(E);
50
+ const n = f.routes.filter((s) => !A(s.path));
46
51
  return [
47
- { type: "group", key: "__inApp", label: o("menu.routesInApp"), children: t.map(B) },
48
- { type: "group", key: "__other", label: o("menu.routesOther"), children: n.map(B) }
52
+ { type: "group", key: "__inApp", label: o("menu.routesInApp"), children: t.map(E) },
53
+ { type: "group", key: "__other", label: o("menu.routesOther"), children: n.map(E) }
49
54
  ];
50
- }), ce = d(() => {
55
+ }), be = r(() => {
51
56
  const e = [], t = (n, s) => {
52
- for (const $ of n)
53
- $.type !== N.Button && (e.push({ label: `${" ".repeat(s)}${$.title}`, value: $.id }), t($.children, s + 1));
57
+ for (const w of n)
58
+ w.type !== P.Button && (e.push({
59
+ label: `${" ".repeat(s)}${ae(w.title, w.path || void 0)}`,
60
+ value: w.id
61
+ }), t(w.children, s + 1));
54
62
  };
55
63
  return t(f.tree, 0), e;
56
64
  });
57
- function fe(e) {
58
- b.value = e.id, G.value = e.title, z.value = !0;
65
+ function ye(e) {
66
+ y.value = e.id, W.value = ae(e.title), _.value = !0;
59
67
  }
60
- ue({ open: fe });
61
- const S = r(!1), g = r(null), W = r(null), ve = {
68
+ ie({ open: ye });
69
+ const S = d(!1), g = d(null), J = d(null), ge = {
62
70
  title: {
63
71
  required: !0,
64
72
  whitespace: !0,
65
73
  message: () => o("menu.titleRequired"),
66
74
  trigger: ["input", "blur"]
67
75
  }
68
- }, J = () => ({
69
- parentId: b.value ?? 0,
70
- type: N.Button,
76
+ }, X = () => ({
77
+ parentId: y.value ?? 0,
78
+ type: P.Button,
71
79
  title: "",
72
80
  permission: "",
73
81
  sort: 0,
@@ -77,7 +85,7 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
77
85
  component: "",
78
86
  icon: "",
79
87
  visible: !0
80
- }), i = Ne(J()), k = r([]), X = (e) => ({
88
+ }), i = _e(X()), k = d([]), Y = (e) => ({
81
89
  parentId: e.parentId,
82
90
  type: e.type,
83
91
  title: e.title,
@@ -90,54 +98,54 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
90
98
  icon: e.icon ?? "",
91
99
  visible: e.visible
92
100
  });
93
- function he() {
94
- g.value = null, p.value = !1, Object.assign(i, J()), k.value = [], S.value = !0;
101
+ function ke() {
102
+ g.value = null, c.value = !1, Object.assign(i, X()), k.value = [], S.value = !0;
95
103
  }
96
- function ye(e) {
97
- g.value = e.id, p.value = !0, Object.assign(i, X(e)), k.value = F(e.permission), S.value = !0;
104
+ function we(e) {
105
+ g.value = e.id, c.value = !0, Object.assign(i, Y(e)), k.value = V(e.permission), S.value = !0;
98
106
  }
99
- async function be() {
107
+ async function xe() {
100
108
  var e;
101
- await ((e = W.value) == null ? void 0 : e.validate());
109
+ await ((e = J.value) == null ? void 0 : e.validate());
102
110
  try {
103
111
  const t = {
104
112
  ...i,
105
- permission: De(k.value),
106
- type: N.Button,
113
+ permission: We(k.value),
114
+ type: P.Button,
107
115
  moduleId: null
108
116
  };
109
- g.value === null ? await I.add(t) : await I.update(g.value, t), _.success(o("menu.saved")), U("changed");
117
+ g.value === null ? await N.add(t) : await N.update(g.value, t), U.success(o("menu.saved")), T("changed");
110
118
  } catch (t) {
111
- return _.error(oe(t)), !1;
119
+ return U.error(ue(t)), !1;
112
120
  }
113
121
  }
114
- const E = r(!1), A = r([]), Y = r(!1), R = r(""), Z = d(() => {
115
- const e = R.value.trim().toLowerCase(), t = P.value;
116
- return A.value.filter((n) => t && !p.value && !T(n.path) ? !1 : e ? n.method.toLowerCase().includes(e) || n.path.toLowerCase().includes(e) || n.title.toLowerCase().includes(e) : !0);
122
+ const z = d(!1), R = d([]), Z = d(!1), L = d(""), ee = r(() => {
123
+ const e = L.value.trim().toLowerCase(), t = B.value;
124
+ return R.value.filter((n) => t && !c.value && !A(n.path) ? !1 : e ? n.method.toLowerCase().includes(e) || n.path.toLowerCase().includes(e) || n.title.toLowerCase().includes(e) : !0);
117
125
  });
118
- function ge(e) {
126
+ function Ce(e) {
119
127
  const t = e.toUpperCase();
120
128
  return t === "GET" ? o("menu.btnQuery") : t === "POST" ? o("menu.btnCreate") : t === "PUT" || t === "PATCH" ? o("menu.btnUpdate") : t === "DELETE" ? o("menu.btnDelete") : e;
121
129
  }
122
- function ke() {
123
- R.value = "", p.value = !1, A.value = f.routes.filter((e) => !me.value.has(e.code)).map((e) => ({
130
+ function Ie() {
131
+ L.value = "", c.value = !1, R.value = f.routes.filter((e) => !ve.value.has(e.code)).map((e) => ({
124
132
  code: e.code,
125
133
  method: e.method,
126
134
  path: e.path,
127
- title: ge(e.method),
135
+ title: Ce(e.method),
128
136
  checked: !1
129
- })), E.value = !0;
137
+ })), z.value = !0;
130
138
  }
131
- const we = d(() => A.value.filter((e) => e.checked));
132
- async function xe() {
133
- const e = we.value;
139
+ const Ne = r(() => R.value.filter((e) => e.checked));
140
+ async function Pe() {
141
+ const e = Ne.value;
134
142
  if (!e.length) return !1;
135
- Y.value = !0;
143
+ Z.value = !0;
136
144
  try {
137
145
  for (const t of e)
138
- await I.add({
139
- parentId: b.value ?? 0,
140
- type: N.Button,
146
+ await N.add({
147
+ parentId: y.value ?? 0,
148
+ type: P.Button,
141
149
  title: t.title.trim() || t.method,
142
150
  permission: t.code,
143
151
  sort: 0,
@@ -148,61 +156,67 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
148
156
  icon: "",
149
157
  visible: !0
150
158
  });
151
- _.success(o("menu.saved")), U("changed"), E.value = !1;
159
+ U.success(o("menu.saved")), T("changed"), z.value = !1;
152
160
  } catch (t) {
153
- return _.error(oe(t)), !1;
161
+ return U.error(ue(t)), !1;
154
162
  } finally {
155
- Y.value = !1;
163
+ Z.value = !1;
156
164
  }
157
165
  }
158
- const Ce = [
166
+ const Te = [
159
167
  { type: "index", title: () => o("common.rowNo"), width: 64, align: "center" },
160
- { title: () => o("menu.title"), key: "title", align: "left" },
168
+ { title: () => o("menu.title"), key: "title", align: "left", search: {} },
161
169
  {
162
170
  title: () => o("menu.permission"),
163
171
  key: "permission",
164
172
  // 多码按钮逐条成 tag,一眼看出「查询」挂了哪几条路由
165
173
  render: (e) => {
166
- const t = F(e.permission);
167
- return t.length ? y(
168
- c,
174
+ const t = V(e.permission);
175
+ return t.length ? p(
176
+ b,
169
177
  { size: 4, wrapItem: !1 },
170
- () => t.map((n) => y(Se, { size: "small", bordered: !1, key: n }, () => n))
171
- ) : "—";
178
+ () => t.map((n) => p($e, { size: "small", bordered: !1, key: n }, () => n))
179
+ ) : p("span", { class: "faint" }, "—");
172
180
  }
173
181
  },
174
- { title: () => o("menu.sort"), key: "sort", width: 70 },
182
+ {
183
+ title: () => o("menu.sort"),
184
+ key: "sort",
185
+ width: 70,
186
+ render: (e) => p("span", { class: "num muted" }, e.sort)
187
+ },
175
188
  {
176
189
  title: () => o("common.status"),
177
190
  key: "enabled",
178
191
  width: 84,
179
- render: (e) => y(Le, {
192
+ render: (e) => p(De, {
180
193
  value: e.enabled,
181
- request: (t) => I.update(e.id, { ...X(e), enabled: t }),
182
- "onUpdate:value": () => U("changed")
194
+ request: (t) => N.update(e.id, { ...Y(e), enabled: t }),
195
+ "onUpdate:value": () => T("changed")
183
196
  })
184
197
  },
185
198
  {
186
199
  title: () => o("common.operation"),
187
200
  key: "op",
188
201
  width: 130,
202
+ align: "right",
189
203
  fixed: "right",
190
- render: (e) => y(c, { size: 2, wrapItem: !1 }, () => [
191
- re.value ? y(
192
- x,
193
- { size: "small", quaternary: !0, type: "primary", onClick: () => ye(e) },
204
+ render: (e) => p(b, { size: 2, justify: "end", wrapItem: !1 }, () => [
205
+ me.value ? p(
206
+ C,
207
+ { size: "small", quaternary: !0, type: "primary", onClick: () => we(e) },
194
208
  () => o("common.edit")
195
209
  ) : null,
196
- de.value ? y(
197
- Ee,
210
+ ce.value ? p(
211
+ Me,
198
212
  {
199
- onPositiveClick: () => ie(() => I.remove(e.id), o("menu.deleted")).then((t) => {
200
- t && U("changed");
213
+ onPositiveClick: () => de(() => N.remove(e.id), o("menu.deleted")).then((t) => {
214
+ t && T("changed");
201
215
  })
202
216
  },
203
217
  {
204
- trigger: () => y(
205
- x,
218
+ trigger: () => p(
219
+ C,
206
220
  { size: "small", quaternary: !0, type: "error" },
207
221
  () => o("common.delete")
208
222
  ),
@@ -212,21 +226,21 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
212
226
  ])
213
227
  }
214
228
  ];
215
- return (e, t) => (m(), q(ee, null, [
216
- a(j, {
217
- show: z.value,
218
- "onUpdate:show": t[1] || (t[1] = (n) => z.value = n),
219
- title: l(o)("menu.buttonManagerTitle", { title: G.value }),
229
+ return (e, t) => (m(), M(te, null, [
230
+ a(F, {
231
+ show: _.value,
232
+ "onUpdate:show": t[1] || (t[1] = (n) => _.value = n),
233
+ title: l(o)("menu.buttonManagerTitle", { title: W.value }),
220
234
  width: 960
221
235
  }, {
222
236
  footer: u(() => [
223
- a(l(c), { justify: "end" }, {
237
+ a(l(b), { justify: "end" }, {
224
238
  default: u(() => [
225
- a(l(x), {
226
- onClick: t[0] || (t[0] = (n) => z.value = !1)
239
+ a(l(C), {
240
+ onClick: t[0] || (t[0] = (n) => _.value = !1)
227
241
  }, {
228
242
  default: u(() => [
229
- w(h(l(o)("common.close")), 1)
243
+ x(h(l(o)("common.close")), 1)
230
244
  ]),
231
245
  _: 1
232
246
  })
@@ -235,80 +249,83 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
235
249
  })
236
250
  ]),
237
251
  default: u(() => [
238
- a(l(c), {
239
- vertical: "",
240
- size: 12
252
+ a(l(qe), {
253
+ columns: Te,
254
+ data: Q.value,
255
+ toolbar: l(Ge),
256
+ search: { container: "table" },
257
+ pagination: !1,
258
+ "row-key": "id",
259
+ "card-on-narrow": "",
260
+ "storage-key": "sys-menu-buttons"
241
261
  }, {
242
- default: u(() => [
243
- a(l(c), null, {
262
+ "toolbar-right": u(() => [
263
+ G.value ? (m(), v(l(C), {
264
+ key: 0,
265
+ secondary: "",
266
+ onClick: Ie
267
+ }, {
268
+ icon: u(() => [
269
+ a(D, {
270
+ icon: "ph:list-plus",
271
+ size: 16
272
+ })
273
+ ]),
244
274
  default: u(() => [
245
- V.value ? (m(), v(l(x), {
246
- key: 0,
247
- type: "primary",
248
- size: "small",
249
- onClick: he
250
- }, {
251
- default: u(() => [
252
- w(h(l(o)("menu.addButton")), 1)
253
- ]),
254
- _: 1
255
- })) : L("", !0),
256
- V.value ? (m(), v(l(x), {
257
- key: 1,
258
- size: "small",
259
- onClick: ke
260
- }, {
261
- default: u(() => [
262
- w(h(l(o)("menu.batchFromRoutes")), 1)
263
- ]),
264
- _: 1
265
- })) : L("", !0)
275
+ x(" " + h(l(o)("menu.batchFromRoutes")), 1)
266
276
  ]),
267
277
  _: 1
268
- }),
269
- a(l(Ae), {
270
- "default-page-size": 100,
271
- columns: Ce,
272
- data: K.value,
273
- pagination: !1,
274
- "row-key": "id",
275
- "storage-key": "sys-menu-buttons"
276
- }, null, 8, ["data"])
278
+ })) : O("", !0),
279
+ G.value ? (m(), v(l(C), {
280
+ key: 1,
281
+ type: "primary",
282
+ onClick: ke
283
+ }, {
284
+ icon: u(() => [
285
+ a(D, {
286
+ icon: "ph:plus",
287
+ size: 16
288
+ })
289
+ ]),
290
+ default: u(() => [
291
+ x(" " + h(l(o)("menu.addButton")), 1)
292
+ ]),
293
+ _: 1
294
+ })) : O("", !0)
277
295
  ]),
278
296
  _: 1
279
- })
297
+ }, 8, ["data", "toolbar"])
280
298
  ]),
281
299
  _: 1
282
300
  }, 8, ["show", "title"]),
283
- a(j, {
301
+ a(F, {
284
302
  show: S.value,
285
303
  "onUpdate:show": t[8] || (t[8] = (n) => S.value = n),
286
304
  title: g.value === null ? l(o)("menu.addButton") : l(o)("common.edit"),
287
305
  width: 600,
288
- "on-confirm": be,
306
+ "on-confirm": xe,
289
307
  "confirm-text": l(o)("common.save")
290
308
  }, {
291
309
  default: u(() => [
292
- a(l(ze), {
310
+ a(l(ze), Be({
293
311
  ref_key: "formRef",
294
- ref: W,
312
+ ref: J,
295
313
  model: i,
296
- rules: ve,
297
- "label-placement": "left",
298
- "label-width": 80
299
- }, {
314
+ rules: ge,
315
+ "require-mark-placement": "left"
316
+ }, fe.value), {
300
317
  default: u(() => [
301
- a(l(Pe), {
318
+ a(l(Re), {
302
319
  cols: 1,
303
320
  "y-gap": 4
304
321
  }, {
305
322
  default: u(() => [
306
- a(l(C), {
323
+ a(l(I), {
307
324
  label: l(o)("menu.title"),
308
325
  path: "title"
309
326
  }, {
310
327
  default: u(() => [
311
- a(l(D), {
328
+ a(l(q), {
312
329
  value: i.title,
313
330
  "onUpdate:value": t[2] || (t[2] = (n) => i.title = n),
314
331
  placeholder: l(o)("menu.title")
@@ -316,62 +333,62 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
316
333
  ]),
317
334
  _: 1
318
335
  }, 8, ["label"]),
319
- a(l(C), {
336
+ a(l(I), {
320
337
  label: l(o)("menu.buttonParent")
321
338
  }, {
322
339
  default: u(() => [
323
- a(l(le), {
340
+ a(l(ne), {
324
341
  value: i.parentId,
325
342
  "onUpdate:value": t[3] || (t[3] = (n) => i.parentId = n),
326
- options: ce.value,
343
+ options: be.value,
327
344
  filterable: ""
328
345
  }, null, 8, ["value", "options"])
329
346
  ]),
330
347
  _: 1
331
348
  }, 8, ["label"]),
332
- a(l(C), {
349
+ a(l(I), {
333
350
  label: l(o)("menu.permission")
334
351
  }, {
335
352
  default: u(() => [
336
- a(l(c), {
353
+ a(l(b), {
337
354
  vertical: "",
338
355
  size: 4,
339
356
  style: { width: "100%" }
340
357
  }, {
341
358
  default: u(() => [
342
- a(l(le), {
359
+ a(l(ne), {
343
360
  value: k.value,
344
361
  "onUpdate:value": t[4] || (t[4] = (n) => k.value = n),
345
- options: pe.value,
362
+ options: he.value,
346
363
  multiple: "",
347
364
  filterable: "",
348
365
  tag: "",
349
366
  clearable: "",
350
367
  placeholder: l(o)("menu.permissionPlaceholder")
351
368
  }, null, 8, ["value", "options", "placeholder"]),
352
- te("span", Me, h(l(o)("menu.permissionHint")), 1),
353
- Q.value ? (m(), v(l(M), {
369
+ le("span", He, h(l(o)("menu.permissionHint")), 1),
370
+ K.value ? (m(), v(l(j), {
354
371
  key: 0,
355
- checked: p.value,
356
- "onUpdate:checked": t[5] || (t[5] = (n) => p.value = n),
372
+ checked: c.value,
373
+ "onUpdate:checked": t[5] || (t[5] = (n) => c.value = n),
357
374
  size: "small"
358
375
  }, {
359
376
  default: u(() => [
360
- w(h(l(o)("menu.showAllRoutes")), 1)
377
+ x(h(l(o)("menu.showAllRoutes")), 1)
361
378
  ]),
362
379
  _: 1
363
- }, 8, ["checked"])) : L("", !0)
380
+ }, 8, ["checked"])) : O("", !0)
364
381
  ]),
365
382
  _: 1
366
383
  })
367
384
  ]),
368
385
  _: 1
369
386
  }, 8, ["label"]),
370
- a(l(C), {
387
+ a(l(I), {
371
388
  label: l(o)("menu.sort")
372
389
  }, {
373
390
  default: u(() => [
374
- a(l(Te), {
391
+ a(l(Le), {
375
392
  value: i.sort,
376
393
  "onUpdate:value": t[6] || (t[6] = (n) => i.sort = n),
377
394
  min: 0,
@@ -380,11 +397,11 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
380
397
  ]),
381
398
  _: 1
382
399
  }, 8, ["label"]),
383
- a(l(C), {
400
+ a(l(I), {
384
401
  label: l(o)("common.status")
385
402
  }, {
386
403
  default: u(() => [
387
- a(l(Be), {
404
+ a(l(Oe), {
388
405
  value: i.enabled,
389
406
  "onUpdate:value": t[7] || (t[7] = (n) => i.enabled = n)
390
407
  }, null, 8, ["value"])
@@ -396,92 +413,91 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
396
413
  })
397
414
  ]),
398
415
  _: 1
399
- }, 8, ["model"])
416
+ }, 16, ["model"])
400
417
  ]),
401
418
  _: 1
402
419
  }, 8, ["show", "title", "confirm-text"]),
403
- a(j, {
404
- show: E.value,
405
- "onUpdate:show": t[11] || (t[11] = (n) => E.value = n),
420
+ a(F, {
421
+ show: z.value,
422
+ "onUpdate:show": t[11] || (t[11] = (n) => z.value = n),
406
423
  title: l(o)("menu.batchTitle"),
407
424
  width: 640,
408
- "on-confirm": xe,
425
+ "on-confirm": Pe,
409
426
  "confirm-text": l(o)("common.save")
410
427
  }, {
411
428
  default: u(() => [
412
- A.value.length ? (m(), v(l(c), {
429
+ R.value.length ? (m(), v(l(b), {
413
430
  key: 1,
414
431
  vertical: "",
415
432
  size: 10
416
433
  }, {
417
434
  default: u(() => [
418
- a(l(c), {
435
+ a(l(b), {
419
436
  align: "center",
420
437
  size: 12
421
438
  }, {
422
439
  default: u(() => [
423
- a(l(D), {
424
- value: R.value,
425
- "onUpdate:value": t[9] || (t[9] = (n) => R.value = n),
440
+ a(l(q), {
441
+ value: L.value,
442
+ "onUpdate:value": t[9] || (t[9] = (n) => L.value = n),
426
443
  clearable: "",
427
444
  placeholder: l(o)("menu.batchSearchPlaceholder"),
428
445
  style: { flex: "1" }
429
446
  }, {
430
447
  prefix: u(() => [
431
- a($e, {
448
+ a(D, {
432
449
  icon: "ph:magnifying-glass",
433
450
  size: 16
434
451
  })
435
452
  ]),
436
453
  _: 1
437
454
  }, 8, ["value", "placeholder"]),
438
- Q.value ? (m(), v(l(M), {
455
+ K.value ? (m(), v(l(j), {
439
456
  key: 0,
440
- checked: p.value,
441
- "onUpdate:checked": t[10] || (t[10] = (n) => p.value = n)
457
+ checked: c.value,
458
+ "onUpdate:checked": t[10] || (t[10] = (n) => c.value = n)
442
459
  }, {
443
460
  default: u(() => [
444
- w(h(l(o)("menu.showAllRoutes")), 1)
461
+ x(h(l(o)("menu.showAllRoutes")), 1)
445
462
  ]),
446
463
  _: 1
447
- }, 8, ["checked"])) : L("", !0)
464
+ }, 8, ["checked"])) : O("", !0)
448
465
  ]),
449
466
  _: 1
450
467
  }),
451
- Z.value.length ? (m(), v(l(c), {
468
+ ee.value.length ? (m(), v(l(b), {
452
469
  key: 1,
453
470
  vertical: "",
454
471
  size: 6,
455
472
  style: { "max-height": "55vh", overflow: "auto" }
456
473
  }, {
457
474
  default: u(() => [
458
- (m(!0), q(ee, null, Ue(Z.value, (n) => (m(), q("div", {
475
+ (m(!0), M(te, null, Ae(ee.value, (n) => (m(), M("div", {
459
476
  key: n.code,
460
- style: { display: "flex", "align-items": "center", gap: "10px" }
477
+ class: "batch-row"
461
478
  }, [
462
- a(l(M), {
479
+ a(l(j), {
463
480
  checked: n.checked,
464
481
  "onUpdate:checked": (s) => n.checked = s
465
482
  }, null, 8, ["checked", "onUpdate:checked"]),
466
- te("span", je, h(n.method) + " " + h(n.path), 1),
467
- a(l(D), {
483
+ le("span", Qe, h(n.method) + " " + h(n.path), 1),
484
+ a(l(q), {
468
485
  value: n.title,
469
486
  "onUpdate:value": (s) => n.title = s,
470
- size: "small",
471
487
  disabled: !n.checked,
472
- style: { width: "160px" }
488
+ class: "batch-title"
473
489
  }, null, 8, ["value", "onUpdate:value", "disabled"])
474
490
  ]))), 128))
475
491
  ]),
476
492
  _: 1
477
- })) : (m(), v(l(ne), {
493
+ })) : (m(), v(l(oe), {
478
494
  key: 0,
479
495
  description: l(o)("menu.noRoutesLeft"),
480
496
  style: { padding: "16px 0" }
481
497
  }, null, 8, ["description"]))
482
498
  ]),
483
499
  _: 1
484
- })) : (m(), v(l(ne), {
500
+ })) : (m(), v(l(oe), {
485
501
  key: 0,
486
502
  description: l(o)("menu.noRoutesLeft"),
487
503
  style: { padding: "24px 0" }
@@ -493,6 +509,6 @@ const Me = { class: "perm-hint" }, je = { style: { width: "210px", color: "var(-
493
509
  }
494
510
  });
495
511
  export {
496
- lt as default
512
+ mt as default
497
513
  };
498
514
  //# sourceMappingURL=ButtonManager2.vue.js.map