smart-admin-web 10.14.0 → 10.20.0

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 (538) hide show
  1. package/README.md +6 -6
  2. package/dist/api/index.d.ts +41 -2
  3. package/dist/api/index.js +36 -15
  4. package/dist/api/index.js.map +1 -1
  5. package/dist/api/schema.d.ts +418 -6
  6. package/dist/assets/icons/ph-subset.json.js +7 -7
  7. package/dist/assets/smart-logo.svg.js +5 -0
  8. package/dist/assets/smart-logo.svg.js.map +1 -0
  9. package/dist/components/AppIcon.vue.js +9 -9
  10. package/dist/components/AppIcon.vue.js.map +1 -1
  11. package/dist/components/AppWatermark.vue.d.ts +14 -0
  12. package/dist/components/AppWatermark.vue.js +38 -0
  13. package/dist/components/AppWatermark.vue.js.map +1 -0
  14. package/dist/components/AppWatermark2.vue.js +5 -0
  15. package/dist/components/AppWatermark2.vue.js.map +1 -0
  16. package/dist/components/Chart/PieChart.vue.d.ts +1 -1
  17. package/dist/components/Chart/echarts.js +15 -20
  18. package/dist/components/Chart/echarts.js.map +1 -1
  19. package/dist/components/CronEditor/index.vue.js +1 -1
  20. package/dist/components/CronEditor/index2.vue.js +2 -1
  21. package/dist/components/CronEditor/index2.vue.js.map +1 -1
  22. package/dist/components/DetailPage/index.vue.js +2 -2
  23. package/dist/components/DetailPage/index2.vue.js.map +1 -1
  24. package/dist/components/DictTag/index.vue.js.map +1 -1
  25. package/dist/components/ErrorBoundary/index.vue.js +2 -2
  26. package/dist/components/ErrorBoundary/index2.vue.js +1 -1
  27. package/dist/components/ErrorBoundary/index2.vue.js.map +1 -1
  28. package/dist/components/FormContainer/index.vue.js +91 -56
  29. package/dist/components/FormContainer/index.vue.js.map +1 -1
  30. package/dist/components/ImportWizard/index.vue.js +1 -1
  31. package/dist/components/ImportWizard/index2.vue.js +44 -41
  32. package/dist/components/ImportWizard/index2.vue.js.map +1 -1
  33. package/dist/components/MenuSearch.vue.js +2 -2
  34. package/dist/components/MenuSearch2.vue.js +19 -18
  35. package/dist/components/MenuSearch2.vue.js.map +1 -1
  36. package/dist/components/PasswordStrength/index.vue.js +2 -2
  37. package/dist/components/PasswordStrength/index2.vue.js +20 -18
  38. package/dist/components/PasswordStrength/index2.vue.js.map +1 -1
  39. package/dist/components/SmartLogo.vue.d.ts +3 -0
  40. package/dist/components/SmartLogo.vue.js +1 -1
  41. package/dist/components/SmartLogo2.vue.js +22 -64
  42. package/dist/components/SmartLogo2.vue.js.map +1 -1
  43. package/dist/{views/system/config/components/GroupExtraConfig.vue.d.ts → components/TableTotal/index.vue.d.ts} +1 -4
  44. package/dist/components/{SelectTable → TableTotal}/index.vue.js +1 -1
  45. package/dist/components/TableTotal/index2.vue.js +16 -0
  46. package/dist/components/TableTotal/index2.vue.js.map +1 -0
  47. package/dist/components/TableZoomButton/index.vue.js.map +1 -1
  48. package/dist/components/UserPicker/index.vue.js +2 -2
  49. package/dist/components/UserPicker/index2.vue.js +176 -117
  50. package/dist/components/UserPicker/index2.vue.js.map +1 -1
  51. package/dist/composables/useBatchDelete.js.map +1 -1
  52. package/dist/composables/useLayoutMenu.js +17 -16
  53. package/dist/composables/useLayoutMenu.js.map +1 -1
  54. package/dist/composables/useLoginHero.d.ts +2 -0
  55. package/dist/composables/useLoginHero.js +22 -0
  56. package/dist/composables/useLoginHero.js.map +1 -0
  57. package/dist/composables/useModule.js +39 -29
  58. package/dist/composables/useModule.js.map +1 -1
  59. package/dist/composables/usePageTitle.js +16 -14
  60. package/dist/composables/usePageTitle.js.map +1 -1
  61. package/dist/composables/useShellBreakpoint.d.ts +19 -0
  62. package/dist/composables/useShellBreakpoint.js +37 -0
  63. package/dist/composables/useShellBreakpoint.js.map +1 -0
  64. package/dist/composables/useSite.d.ts +20 -0
  65. package/dist/composables/useSite.js +18 -13
  66. package/dist/composables/useSite.js.map +1 -1
  67. package/dist/composables/useTabTitle.js.map +1 -1
  68. package/dist/composables/useTableTitle.d.ts +6 -0
  69. package/dist/composables/useTableTitle.js +11 -0
  70. package/dist/composables/useTableTitle.js.map +1 -0
  71. package/dist/composables/useTableZoom.d.ts +5 -0
  72. package/dist/composables/useTableZoom.js.map +1 -1
  73. package/dist/composables/useTheme.d.ts +2 -2
  74. package/dist/composables/useTheme.js +23 -20
  75. package/dist/composables/useTheme.js.map +1 -1
  76. package/dist/createSmartAdmin.d.ts +12 -2
  77. package/dist/createSmartAdmin.js +72 -60
  78. package/dist/createSmartAdmin.js.map +1 -1
  79. package/dist/index.d.ts +5 -2
  80. package/dist/index.js +223 -208
  81. package/dist/index.js.map +1 -1
  82. package/dist/layouts/AccentPicker.vue.js +8 -0
  83. package/dist/layouts/AccentPicker.vue.js.map +1 -0
  84. package/dist/layouts/AccentPicker2.vue.js +131 -0
  85. package/dist/layouts/AccentPicker2.vue.js.map +1 -0
  86. package/dist/layouts/AppHeader.vue.d.ts +8 -1
  87. package/dist/layouts/AppHeader.vue.js +2 -2
  88. package/dist/layouts/AppHeader2.vue.js +317 -235
  89. package/dist/layouts/AppHeader2.vue.js.map +1 -1
  90. package/dist/layouts/NoticeBell.vue.js +2 -2
  91. package/dist/layouts/NoticeBell2.vue.js +1 -1
  92. package/dist/layouts/NoticeBell2.vue.js.map +1 -1
  93. package/dist/layouts/PersonalLayout.vue.js +2 -2
  94. package/dist/layouts/PersonalLayout2.vue.js +69 -47
  95. package/dist/layouts/PersonalLayout2.vue.js.map +1 -1
  96. package/dist/layouts/SettingsDrawer.vue.js +3 -3
  97. package/dist/layouts/SettingsDrawer2.vue.js +261 -325
  98. package/dist/layouts/SettingsDrawer2.vue.js.map +1 -1
  99. package/dist/layouts/TabsBar.vue.js +2 -2
  100. package/dist/layouts/TabsBar2.vue.js +97 -69
  101. package/dist/layouts/TabsBar2.vue.js.map +1 -1
  102. package/dist/layouts/components/SideNav.vue.d.ts +3 -0
  103. package/dist/layouts/components/SideNav.vue.js +1 -1
  104. package/dist/layouts/components/SideNav2.vue.js +54 -26
  105. package/dist/layouts/components/SideNav2.vue.js.map +1 -1
  106. package/dist/layouts/default.vue.js +1 -1
  107. package/dist/layouts/default2.vue.js +170 -140
  108. package/dist/layouts/default2.vue.js.map +1 -1
  109. package/dist/lib/favicon.d.ts +1 -0
  110. package/dist/lib/favicon.js +12 -0
  111. package/dist/lib/favicon.js.map +1 -0
  112. package/dist/lib/loginHero.d.ts +16 -0
  113. package/dist/lib/loginHero.js +33 -0
  114. package/dist/lib/loginHero.js.map +1 -0
  115. package/dist/lib/logoCrop.d.ts +25 -0
  116. package/dist/lib/logoCrop.js +22 -0
  117. package/dist/lib/logoCrop.js.map +1 -0
  118. package/dist/lib/runtime.d.ts +2 -0
  119. package/dist/lib/runtime.js +1 -1
  120. package/dist/lib/runtime.js.map +1 -1
  121. package/dist/lib/securityRules.d.ts +26 -0
  122. package/dist/lib/securityRules.js +86 -0
  123. package/dist/lib/securityRules.js.map +1 -0
  124. package/dist/lib/watermark.d.ts +110 -0
  125. package/dist/lib/watermark.js +151 -0
  126. package/dist/lib/watermark.js.map +1 -0
  127. package/dist/locales/en-US.d.ts +462 -42
  128. package/dist/locales/en-US.js +491 -78
  129. package/dist/locales/en-US.js.map +1 -1
  130. package/dist/locales/kernelMenuTitles.d.ts +1 -0
  131. package/dist/locales/kernelMenuTitles.js +128 -0
  132. package/dist/locales/kernelMenuTitles.js.map +1 -0
  133. package/dist/locales/menuTitle.d.ts +3 -0
  134. package/dist/locales/menuTitle.js +14 -12
  135. package/dist/locales/menuTitle.js.map +1 -1
  136. package/dist/locales/zh-CN.d.ts +462 -42
  137. package/dist/locales/zh-CN.js +490 -81
  138. package/dist/locales/zh-CN.js.map +1 -1
  139. package/dist/router/index.js +41 -32
  140. package/dist/router/index.js.map +1 -1
  141. package/dist/router/namedPage.d.ts +4 -0
  142. package/dist/router/namedPage.js +7 -7
  143. package/dist/router/namedPage.js.map +1 -1
  144. package/dist/router/viewRegistry.js +12 -12
  145. package/dist/router/viewRegistry.js.map +1 -1
  146. package/dist/stores/app.d.ts +0 -12
  147. package/dist/stores/app.js +11 -12
  148. package/dist/stores/app.js.map +1 -1
  149. package/dist/stores/tabs.js.map +1 -1
  150. package/dist/stores/user.d.ts +10 -0
  151. package/dist/stores/user.js.map +1 -1
  152. package/dist/style.css +1 -1
  153. package/dist/theme/accentTokens.d.ts +27 -0
  154. package/dist/theme/accentTokens.js +54 -0
  155. package/dist/theme/accentTokens.js.map +1 -0
  156. package/dist/theme/accents.d.ts +21 -1
  157. package/dist/theme/accents.js +11 -2
  158. package/dist/theme/accents.js.map +1 -1
  159. package/dist/theme/mix.d.ts +58 -7
  160. package/dist/theme/mix.js +115 -30
  161. package/dist/theme/mix.js.map +1 -1
  162. package/dist/theme/naive-theme.d.ts +5 -2
  163. package/dist/theme/naive-theme.js +405 -75
  164. package/dist/theme/naive-theme.js.map +1 -1
  165. package/dist/utils/jwt.d.ts +8 -0
  166. package/dist/utils/jwt.js +14 -0
  167. package/dist/utils/jwt.js.map +1 -0
  168. package/dist/utils/menuIcon.d.ts +2 -0
  169. package/dist/utils/menuIcon.js +8 -0
  170. package/dist/utils/menuIcon.js.map +1 -0
  171. package/dist/utils/oauthBrand.d.ts +34 -9
  172. package/dist/utils/oauthBrand.js +70 -74
  173. package/dist/utils/oauthBrand.js.map +1 -1
  174. package/dist/utils/tableFilter.d.ts +88 -0
  175. package/dist/utils/tableFilter.js +116 -0
  176. package/dist/utils/tableFilter.js.map +1 -0
  177. package/dist/utils/tableToolbar.d.ts +18 -0
  178. package/dist/utils/tableToolbar.js +11 -0
  179. package/dist/utils/tableToolbar.js.map +1 -0
  180. package/dist/utils/treeFilter.d.ts +20 -0
  181. package/dist/utils/treeFilter.js +24 -0
  182. package/dist/utils/treeFilter.js.map +1 -0
  183. package/dist/views/dashboard/ShortcutPicker.vue.js +1 -1
  184. package/dist/views/dashboard/ShortcutPicker2.vue.js +73 -48
  185. package/dist/views/dashboard/ShortcutPicker2.vue.js.map +1 -1
  186. package/dist/views/dashboard/biz.vue.js +1 -1
  187. package/dist/views/dashboard/biz2.vue.js +310 -257
  188. package/dist/views/dashboard/biz2.vue.js.map +1 -1
  189. package/dist/views/dashboard/workbench.vue.js +2 -2
  190. package/dist/views/dashboard/workbench2.vue.js +141 -155
  191. package/dist/views/dashboard/workbench2.vue.js.map +1 -1
  192. package/dist/views/embed/iframe.vue.js +2 -2
  193. package/dist/views/embed/iframe2.vue.js +22 -15
  194. package/dist/views/embed/iframe2.vue.js.map +1 -1
  195. package/dist/views/error/404.vue.js +2 -2
  196. package/dist/views/error/4042.vue.js +33 -24
  197. package/dist/views/error/4042.vue.js.map +1 -1
  198. package/dist/views/error/BootError.vue.js +1 -1
  199. package/dist/views/error/BootError2.vue.js +59 -48
  200. package/dist/views/error/BootError2.vue.js.map +1 -1
  201. package/dist/views/error/MissingRoute.vue.js +2 -2
  202. package/dist/views/error/MissingRoute2.vue.js +34 -15
  203. package/dist/views/error/MissingRoute2.vue.js.map +1 -1
  204. package/dist/views/login/LoginForm.vue.d.ts +7 -1
  205. package/dist/views/login/LoginForm.vue.js +2 -2
  206. package/dist/views/login/LoginForm2.vue.js +580 -488
  207. package/dist/views/login/LoginForm2.vue.js.map +1 -1
  208. package/dist/views/login/components/LoginDesk.vue.d.ts +36 -0
  209. package/dist/views/login/components/LoginDesk.vue.js +9 -0
  210. package/dist/views/login/components/LoginDesk.vue.js.map +1 -0
  211. package/dist/views/login/components/LoginDesk2.vue.js +100 -0
  212. package/dist/views/login/components/LoginDesk2.vue.js.map +1 -0
  213. package/dist/views/login/components/LoginHeroPanel.vue.d.ts +18 -0
  214. package/dist/views/login/components/LoginHeroPanel.vue.js +8 -0
  215. package/dist/views/login/components/LoginHeroPanel.vue.js.map +1 -0
  216. package/dist/views/login/components/LoginHeroPanel2.vue.js +61 -0
  217. package/dist/views/login/components/LoginHeroPanel2.vue.js.map +1 -0
  218. package/dist/views/login/index.vue.js +1 -1
  219. package/dist/views/login/index2.vue.js +141 -71
  220. package/dist/views/login/index2.vue.js.map +1 -1
  221. package/dist/views/login/layout.d.ts +11 -0
  222. package/dist/views/login/layout.js +27 -0
  223. package/dist/views/login/layout.js.map +1 -0
  224. package/dist/views/mfa/index.vue.js +2 -2
  225. package/dist/views/mfa/index2.vue.js +367 -321
  226. package/dist/views/mfa/index2.vue.js.map +1 -1
  227. package/dist/views/module/index.vue.js +2 -2
  228. package/dist/views/module/index2.vue.js +132 -99
  229. package/dist/views/module/index2.vue.js.map +1 -1
  230. package/dist/views/oauth/callback.vue.js +2 -2
  231. package/dist/views/oauth/callback2.vue.js +65 -51
  232. package/dist/views/oauth/callback2.vue.js.map +1 -1
  233. package/dist/views/personal/bindings.vue.js +2 -2
  234. package/dist/views/personal/bindings2.vue.js +98 -94
  235. package/dist/views/personal/bindings2.vue.js.map +1 -1
  236. package/dist/views/personal/notice2.vue.js +103 -76
  237. package/dist/views/personal/notice2.vue.js.map +1 -1
  238. package/dist/views/personal/password2.vue.js +47 -40
  239. package/dist/views/personal/password2.vue.js.map +1 -1
  240. package/dist/views/personal/profile.vue.js +3 -3
  241. package/dist/views/personal/profile2.vue.js +24 -18
  242. package/dist/views/personal/profile2.vue.js.map +1 -1
  243. package/dist/views/personal/security.vue.js +2 -2
  244. package/dist/views/personal/security2.vue.js +65 -53
  245. package/dist/views/personal/security2.vue.js.map +1 -1
  246. package/dist/views/personal/sessions.vue.js +2 -2
  247. package/dist/views/personal/sessions2.vue.js +67 -62
  248. package/dist/views/personal/sessions2.vue.js.map +1 -1
  249. package/dist/views/system/ai-model/components/ProviderCard.vue.js +2 -2
  250. package/dist/views/system/ai-model/components/ProviderCard2.vue.js +142 -130
  251. package/dist/views/system/ai-model/components/ProviderCard2.vue.js.map +1 -1
  252. package/dist/views/system/ai-model/components/ProviderForm.vue.js +2 -2
  253. package/dist/views/system/ai-model/components/ProviderForm2.vue.js +71 -70
  254. package/dist/views/system/ai-model/components/ProviderForm2.vue.js.map +1 -1
  255. package/dist/views/system/ai-model/index.vue.js +2 -2
  256. package/dist/views/system/ai-model/index2.vue.js +99 -99
  257. package/dist/views/system/ai-model/index2.vue.js.map +1 -1
  258. package/dist/views/system/ai-model/presets.d.ts +1 -1
  259. package/dist/views/system/ai-model/presets.js +18 -18
  260. package/dist/views/system/ai-model/presets.js.map +1 -1
  261. package/dist/views/system/ai-usage/index.vue.js +2 -2
  262. package/dist/views/system/ai-usage/index2.vue.js +356 -258
  263. package/dist/views/system/ai-usage/index2.vue.js.map +1 -1
  264. package/dist/views/system/api-docs/index.vue.js +5 -2
  265. package/dist/views/system/api-docs/index.vue.js.map +1 -1
  266. package/dist/views/system/api-docs/index2.vue.js +92 -42
  267. package/dist/views/system/api-docs/index2.vue.js.map +1 -1
  268. package/dist/views/system/cache/index.vue.js +2 -2
  269. package/dist/views/system/cache/index2.vue.js +74 -80
  270. package/dist/views/system/cache/index2.vue.js.map +1 -1
  271. package/dist/views/system/config/components/AdminMock.vue.js +8 -0
  272. package/dist/views/system/config/components/AdminMock.vue.js.map +1 -0
  273. package/dist/views/system/config/components/AdminMock2.vue.js +93 -0
  274. package/dist/views/system/config/components/AdminMock2.vue.js.map +1 -0
  275. package/dist/views/system/config/components/AdvancedSection.vue.js +8 -0
  276. package/dist/views/system/config/components/AdvancedSection.vue.js.map +1 -0
  277. package/dist/views/system/config/components/AdvancedSection2.vue.js +163 -0
  278. package/dist/views/system/config/components/AdvancedSection2.vue.js.map +1 -0
  279. package/dist/views/system/config/components/BrandSection.vue.d.ts +7 -0
  280. package/dist/views/system/config/components/BrandSection.vue.js +8 -0
  281. package/dist/views/system/config/components/BrandSection.vue.js.map +1 -0
  282. package/dist/views/system/config/components/BrandSection2.vue.js +266 -0
  283. package/dist/views/system/config/components/BrandSection2.vue.js.map +1 -0
  284. package/dist/views/system/config/components/CfgGroup.vue.d.ts +18 -0
  285. package/dist/views/system/config/components/CfgGroup.vue.js +8 -0
  286. package/dist/views/system/config/components/CfgGroup.vue.js.map +1 -0
  287. package/dist/views/system/config/components/CfgGroup2.vue.js +22 -0
  288. package/dist/views/system/config/components/CfgGroup2.vue.js.map +1 -0
  289. package/dist/views/system/config/components/CfgRow.vue.d.ts +26 -0
  290. package/dist/views/system/config/components/CfgRow.vue.js +9 -0
  291. package/dist/views/system/config/components/CfgRow.vue.js.map +1 -0
  292. package/dist/views/system/config/components/CfgRow2.vue.js +54 -0
  293. package/dist/views/system/config/components/CfgRow2.vue.js.map +1 -0
  294. package/dist/views/system/config/components/CfgSegment.vue.d.ts +28 -0
  295. package/dist/views/system/config/components/CfgSegment.vue.js +8 -0
  296. package/dist/views/system/config/components/CfgSegment.vue.js.map +1 -0
  297. package/dist/views/system/config/components/CfgSegment2.vue.js +45 -0
  298. package/dist/views/system/config/components/CfgSegment2.vue.js.map +1 -0
  299. package/dist/views/system/config/components/ConfigFormModal.vue.js +4 -1
  300. package/dist/views/system/config/components/ConfigFormModal.vue.js.map +1 -1
  301. package/dist/views/system/config/components/ConfigFormModal2.vue.js +72 -60
  302. package/dist/views/system/config/components/ConfigFormModal2.vue.js.map +1 -1
  303. package/dist/views/system/config/components/JobSection.vue.js +8 -0
  304. package/dist/views/system/config/components/JobSection.vue.js.map +1 -0
  305. package/dist/views/system/config/components/JobSection2.vue.js +140 -0
  306. package/dist/views/system/config/components/JobSection2.vue.js.map +1 -0
  307. package/dist/views/system/config/components/LoginMock.vue.d.ts +8 -0
  308. package/dist/views/system/config/components/LoginMock.vue.js +8 -0
  309. package/dist/views/system/config/components/LoginMock.vue.js.map +1 -0
  310. package/dist/views/system/config/components/LoginMock2.vue.js +132 -0
  311. package/dist/views/system/config/components/LoginMock2.vue.js.map +1 -0
  312. package/dist/views/system/config/components/LogoCropper.vue.d.ts +10 -0
  313. package/dist/views/system/config/components/LogoCropper.vue.js +8 -0
  314. package/dist/views/system/config/components/LogoCropper.vue.js.map +1 -0
  315. package/dist/views/system/config/components/LogoCropper2.vue.js +122 -0
  316. package/dist/views/system/config/components/LogoCropper2.vue.js.map +1 -0
  317. package/dist/views/system/config/components/LogoEditor.vue.js +8 -0
  318. package/dist/views/system/config/components/LogoEditor.vue.js.map +1 -0
  319. package/dist/views/system/config/components/LogoEditor2.vue.js +161 -0
  320. package/dist/views/system/config/components/LogoEditor2.vue.js.map +1 -0
  321. package/dist/views/system/config/components/ProviderSheet.vue.d.ts +17 -0
  322. package/dist/views/system/config/components/ProviderSheet.vue.js +8 -0
  323. package/dist/views/system/config/components/ProviderSheet.vue.js.map +1 -0
  324. package/dist/views/system/config/components/ProviderSheet2.vue.js +343 -0
  325. package/dist/views/system/config/components/ProviderSheet2.vue.js.map +1 -0
  326. package/dist/{layouts/SettingRow.vue.d.ts → views/system/config/components/ScaleToFit.vue.d.ts} +2 -1
  327. package/dist/views/system/config/components/ScaleToFit.vue.js +8 -0
  328. package/dist/views/system/config/components/ScaleToFit.vue.js.map +1 -0
  329. package/dist/views/system/config/components/ScaleToFit2.vue.js +41 -0
  330. package/dist/views/system/config/components/ScaleToFit2.vue.js.map +1 -0
  331. package/dist/views/system/config/components/SectionLayout.vue.d.ts +30 -0
  332. package/dist/views/system/config/components/SectionLayout.vue.js +8 -0
  333. package/dist/views/system/config/components/SectionLayout.vue.js.map +1 -0
  334. package/dist/views/system/config/components/SectionLayout2.vue.js +69 -0
  335. package/dist/views/system/config/components/SectionLayout2.vue.js.map +1 -0
  336. package/dist/views/system/config/components/SecuritySection.vue.js +8 -0
  337. package/dist/views/system/config/components/SecuritySection.vue.js.map +1 -0
  338. package/dist/views/system/config/components/SecuritySection2.vue.js +417 -0
  339. package/dist/views/system/config/components/SecuritySection2.vue.js.map +1 -0
  340. package/dist/views/system/config/components/SensitiveSection.vue.js +8 -0
  341. package/dist/views/system/config/components/SensitiveSection.vue.js.map +1 -0
  342. package/dist/views/system/config/components/SensitiveSection2.vue.js +214 -0
  343. package/dist/views/system/config/components/SensitiveSection2.vue.js.map +1 -0
  344. package/dist/views/system/config/components/SigninSection.vue.js +8 -0
  345. package/dist/views/system/config/components/SigninSection.vue.js.map +1 -0
  346. package/dist/views/system/config/components/SigninSection2.vue.js +201 -0
  347. package/dist/views/system/config/components/SigninSection2.vue.js.map +1 -0
  348. package/dist/views/system/config/components/UploadSection.vue.js +8 -0
  349. package/dist/views/system/config/components/UploadSection.vue.js.map +1 -0
  350. package/dist/views/system/config/components/UploadSection2.vue.js +176 -0
  351. package/dist/views/system/config/components/UploadSection2.vue.js.map +1 -0
  352. package/dist/views/system/config/components/WatermarkSection.vue.js +8 -0
  353. package/dist/views/system/config/components/WatermarkSection.vue.js.map +1 -0
  354. package/dist/views/system/config/components/WatermarkSection2.vue.js +284 -0
  355. package/dist/views/system/config/components/WatermarkSection2.vue.js.map +1 -0
  356. package/dist/views/system/config/draft.d.ts +148 -0
  357. package/dist/views/system/config/draft.js +170 -0
  358. package/dist/views/system/config/draft.js.map +1 -0
  359. package/dist/views/system/config/flash.d.ts +2 -0
  360. package/dist/views/system/config/flash.js +9 -0
  361. package/dist/views/system/config/flash.js.map +1 -0
  362. package/dist/views/system/config/groups.d.ts +38 -7
  363. package/dist/views/system/config/groups.js +104 -14
  364. package/dist/views/system/config/groups.js.map +1 -1
  365. package/dist/views/system/config/index.vue.js +6 -2
  366. package/dist/views/system/config/index.vue.js.map +1 -1
  367. package/dist/views/system/config/index2.vue.js +201 -111
  368. package/dist/views/system/config/index2.vue.js.map +1 -1
  369. package/dist/views/system/config/layoutMode.d.ts +23 -0
  370. package/dist/views/system/config/layoutMode.js +28 -0
  371. package/dist/views/system/config/layoutMode.js.map +1 -0
  372. package/dist/views/system/config/providerForm.d.ts +33 -0
  373. package/dist/views/system/config/providerForm.js +63 -0
  374. package/dist/views/system/config/providerForm.js.map +1 -0
  375. package/dist/views/system/dict/index.vue.js +2 -2
  376. package/dist/views/system/dict/index2.vue.js +471 -366
  377. package/dist/views/system/dict/index2.vue.js.map +1 -1
  378. package/dist/views/system/file/index2.vue.js +91 -76
  379. package/dist/views/system/file/index2.vue.js.map +1 -1
  380. package/dist/views/system/job/index.vue.js +3 -3
  381. package/dist/views/system/job/index2.vue.js +897 -828
  382. package/dist/views/system/job/index2.vue.js.map +1 -1
  383. package/dist/views/system/job-log/components/AttemptTable.vue.d.ts +8 -0
  384. package/dist/views/system/job-log/components/AttemptTable.vue.js +5 -0
  385. package/dist/views/system/job-log/components/AttemptTable.vue.js.map +1 -0
  386. package/dist/views/system/job-log/components/AttemptTable2.vue.js +54 -0
  387. package/dist/views/system/job-log/components/AttemptTable2.vue.js.map +1 -0
  388. package/dist/views/system/job-log/index.vue.js +2 -2
  389. package/dist/views/system/job-log/index2.vue.js +193 -207
  390. package/dist/views/system/job-log/index2.vue.js.map +1 -1
  391. package/dist/views/system/job-log/runStatus.d.ts +13 -0
  392. package/dist/views/system/job-log/runStatus.js +26 -0
  393. package/dist/views/system/job-log/runStatus.js.map +1 -0
  394. package/dist/views/system/job-monitor/index.vue.js +2 -2
  395. package/dist/views/system/job-monitor/index2.vue.js +172 -180
  396. package/dist/views/system/job-monitor/index2.vue.js.map +1 -1
  397. package/dist/views/system/log/exception/index.vue.js +2 -2
  398. package/dist/views/system/log/exception/index2.vue.js +135 -96
  399. package/dist/views/system/log/exception/index2.vue.js.map +1 -1
  400. package/dist/views/system/log/login/index2.vue.js +62 -41
  401. package/dist/views/system/log/login/index2.vue.js.map +1 -1
  402. package/dist/views/system/log/op/index.vue.js +2 -2
  403. package/dist/views/system/log/op/index2.vue.js +200 -162
  404. package/dist/views/system/log/op/index2.vue.js.map +1 -1
  405. package/dist/views/system/menu/components/ButtonManager.vue.js +2 -2
  406. package/dist/views/system/menu/components/ButtonManager2.vue.js +206 -190
  407. package/dist/views/system/menu/components/ButtonManager2.vue.js.map +1 -1
  408. package/dist/views/system/menu/components/MenuFormModal.vue.js +2 -2
  409. package/dist/views/system/menu/components/MenuFormModal2.vue.js +127 -118
  410. package/dist/views/system/menu/components/MenuFormModal2.vue.js.map +1 -1
  411. package/dist/views/system/menu/index.vue.js +1 -1
  412. package/dist/views/system/menu/index2.vue.js +216 -183
  413. package/dist/views/system/menu/index2.vue.js.map +1 -1
  414. package/dist/views/system/module/index.vue.js +1 -1
  415. package/dist/views/system/module/index2.vue.js +177 -144
  416. package/dist/views/system/module/index2.vue.js.map +1 -1
  417. package/dist/views/system/monitor/index.vue.js +2 -2
  418. package/dist/views/system/monitor/index2.vue.js +134 -149
  419. package/dist/views/system/monitor/index2.vue.js.map +1 -1
  420. package/dist/views/system/notice/index.vue.js +1 -1
  421. package/dist/views/system/notice/index2.vue.js +209 -181
  422. package/dist/views/system/notice/index2.vue.js.map +1 -1
  423. package/dist/views/system/org/index.vue.js +1 -1
  424. package/dist/views/system/org/index2.vue.js +278 -248
  425. package/dist/views/system/org/index2.vue.js.map +1 -1
  426. package/dist/views/system/position/index.vue.js +5 -2
  427. package/dist/views/system/position/index.vue.js.map +1 -1
  428. package/dist/views/system/position/index2.vue.js +128 -92
  429. package/dist/views/system/position/index2.vue.js.map +1 -1
  430. package/dist/views/system/recycle/index.vue.js +2 -2
  431. package/dist/views/system/recycle/index2.vue.js +90 -67
  432. package/dist/views/system/recycle/index2.vue.js.map +1 -1
  433. package/dist/views/system/role/components/GrantMenuSheet.vue.d.ts +20 -0
  434. package/dist/views/system/role/components/GrantMenuSheet.vue.js +8 -0
  435. package/dist/views/system/role/components/GrantMenuSheet.vue.js.map +1 -0
  436. package/dist/views/system/role/components/GrantMenuSheet2.vue.js +117 -0
  437. package/dist/views/system/role/components/GrantMenuSheet2.vue.js.map +1 -0
  438. package/dist/views/system/role/components/GrantMenuTable.vue.d.ts +6 -4
  439. package/dist/views/system/role/components/GrantMenuTable.vue.js +2 -2
  440. package/dist/views/system/role/components/GrantMenuTable2.vue.js +279 -177
  441. package/dist/views/system/role/components/GrantMenuTable2.vue.js.map +1 -1
  442. package/dist/views/system/role/components/MatchText.vue.d.ts +7 -0
  443. package/dist/views/system/role/components/MatchText.vue.js +8 -0
  444. package/dist/views/system/role/components/MatchText.vue.js.map +1 -0
  445. package/dist/views/system/role/components/MatchText2.vue.js +29 -0
  446. package/dist/views/system/role/components/MatchText2.vue.js.map +1 -0
  447. package/dist/views/system/role/components/grantMenuGroups.d.ts +36 -0
  448. package/dist/views/system/role/components/grantMenuGroups.js +110 -48
  449. package/dist/views/system/role/components/grantMenuGroups.js.map +1 -1
  450. package/dist/views/system/role/index.vue.js +5 -2
  451. package/dist/views/system/role/index.vue.js.map +1 -1
  452. package/dist/views/system/role/index2.vue.js +181 -165
  453. package/dist/views/system/role/index2.vue.js.map +1 -1
  454. package/dist/views/system/session/index2.vue.js +75 -49
  455. package/dist/views/system/session/index2.vue.js.map +1 -1
  456. package/dist/views/system/user/components/ResetPasswordModal.vue.js +2 -2
  457. package/dist/views/system/user/components/ResetPasswordModal2.vue.js +2 -0
  458. package/dist/views/system/user/components/ResetPasswordModal2.vue.js.map +1 -1
  459. package/dist/views/system/user/components/UserFormModal.vue.js +2 -2
  460. package/dist/views/system/user/components/UserFormModal2.vue.js +77 -76
  461. package/dist/views/system/user/components/UserFormModal2.vue.js.map +1 -1
  462. package/dist/views/system/user/index.vue.js +2 -2
  463. package/dist/views/system/user/index2.vue.js +362 -275
  464. package/dist/views/system/user/index2.vue.js.map +1 -1
  465. package/package.json +6 -8
  466. package/dist/components/SelectTable/index.vue.d.ts +0 -76
  467. package/dist/components/SelectTable/index2.vue.js +0 -256
  468. package/dist/components/SelectTable/index2.vue.js.map +0 -1
  469. package/dist/composables/useTableRowSort.d.ts +0 -20
  470. package/dist/composables/useTableRowSort.js +0 -59
  471. package/dist/composables/useTableRowSort.js.map +0 -1
  472. package/dist/layouts/LayoutModeCards.vue.js +0 -8
  473. package/dist/layouts/LayoutModeCards.vue.js.map +0 -1
  474. package/dist/layouts/LayoutModeCards2.vue.js +0 -67
  475. package/dist/layouts/LayoutModeCards2.vue.js.map +0 -1
  476. package/dist/layouts/SettingRow.vue.js +0 -8
  477. package/dist/layouts/SettingRow.vue.js.map +0 -1
  478. package/dist/layouts/SettingRow2.vue.js +0 -23
  479. package/dist/layouts/SettingRow2.vue.js.map +0 -1
  480. package/dist/views/login/skins/AuroraGlass.vue.js +0 -8
  481. package/dist/views/login/skins/AuroraGlass.vue.js.map +0 -1
  482. package/dist/views/login/skins/AuroraGlass2.vue.js +0 -80
  483. package/dist/views/login/skins/AuroraGlass2.vue.js.map +0 -1
  484. package/dist/views/login/skins/SplitPanel.vue.js +0 -8
  485. package/dist/views/login/skins/SplitPanel.vue.js.map +0 -1
  486. package/dist/views/login/skins/SplitPanel2.vue.js +0 -85
  487. package/dist/views/login/skins/SplitPanel2.vue.js.map +0 -1
  488. package/dist/views/login/skins/Spotlight.vue.js +0 -8
  489. package/dist/views/login/skins/Spotlight.vue.js.map +0 -1
  490. package/dist/views/login/skins/Spotlight2.vue.js +0 -36
  491. package/dist/views/login/skins/Spotlight2.vue.js.map +0 -1
  492. package/dist/views/login/skins.d.ts +0 -8
  493. package/dist/views/login/skins.js +0 -13
  494. package/dist/views/login/skins.js.map +0 -1
  495. package/dist/views/system/config/components/ExternalAuthConfig.vue.js +0 -8
  496. package/dist/views/system/config/components/ExternalAuthConfig.vue.js.map +0 -1
  497. package/dist/views/system/config/components/ExternalAuthConfig2.vue.js +0 -218
  498. package/dist/views/system/config/components/ExternalAuthConfig2.vue.js.map +0 -1
  499. package/dist/views/system/config/components/GroupExtraConfig.vue.js +0 -8
  500. package/dist/views/system/config/components/GroupExtraConfig.vue.js.map +0 -1
  501. package/dist/views/system/config/components/GroupExtraConfig2.vue.js +0 -108
  502. package/dist/views/system/config/components/GroupExtraConfig2.vue.js.map +0 -1
  503. package/dist/views/system/config/components/HighSensConfig.vue.js +0 -5
  504. package/dist/views/system/config/components/HighSensConfig.vue.js.map +0 -1
  505. package/dist/views/system/config/components/HighSensConfig2.vue.js +0 -134
  506. package/dist/views/system/config/components/HighSensConfig2.vue.js.map +0 -1
  507. package/dist/views/system/config/components/JobConfig.vue.js +0 -5
  508. package/dist/views/system/config/components/JobConfig.vue.js.map +0 -1
  509. package/dist/views/system/config/components/JobConfig2.vue.js +0 -116
  510. package/dist/views/system/config/components/JobConfig2.vue.js.map +0 -1
  511. package/dist/views/system/config/components/OtherConfig.vue.js +0 -5
  512. package/dist/views/system/config/components/OtherConfig.vue.js.map +0 -1
  513. package/dist/views/system/config/components/OtherConfig2.vue.js +0 -121
  514. package/dist/views/system/config/components/OtherConfig2.vue.js.map +0 -1
  515. package/dist/views/system/config/components/SecurityConfig.vue.js +0 -8
  516. package/dist/views/system/config/components/SecurityConfig.vue.js.map +0 -1
  517. package/dist/views/system/config/components/SecurityConfig2.vue.js +0 -456
  518. package/dist/views/system/config/components/SecurityConfig2.vue.js.map +0 -1
  519. package/dist/views/system/config/components/SysBaseConfig.vue.js +0 -5
  520. package/dist/views/system/config/components/SysBaseConfig.vue.js.map +0 -1
  521. package/dist/views/system/config/components/SysBaseConfig2.vue.js +0 -107
  522. package/dist/views/system/config/components/SysBaseConfig2.vue.js.map +0 -1
  523. package/dist/views/system/config/components/UploadConfig.vue.d.ts +0 -3
  524. package/dist/views/system/config/components/UploadConfig.vue.js +0 -5
  525. package/dist/views/system/config/components/UploadConfig.vue.js.map +0 -1
  526. package/dist/views/system/config/components/UploadConfig2.vue.js +0 -135
  527. package/dist/views/system/config/components/UploadConfig2.vue.js.map +0 -1
  528. /package/dist/components/{SelectTable → TableTotal}/index.vue.js.map +0 -0
  529. /package/dist/layouts/{LayoutModeCards.vue.d.ts → AccentPicker.vue.d.ts} +0 -0
  530. /package/dist/views/{login/skins/AuroraGlass.vue.d.ts → system/config/components/AdminMock.vue.d.ts} +0 -0
  531. /package/dist/views/{login/skins/SplitPanel.vue.d.ts → system/config/components/AdvancedSection.vue.d.ts} +0 -0
  532. /package/dist/views/{login/skins/Spotlight.vue.d.ts → system/config/components/JobSection.vue.d.ts} +0 -0
  533. /package/dist/views/system/config/components/{ExternalAuthConfig.vue.d.ts → LogoEditor.vue.d.ts} +0 -0
  534. /package/dist/views/system/config/components/{HighSensConfig.vue.d.ts → SecuritySection.vue.d.ts} +0 -0
  535. /package/dist/views/system/config/components/{JobConfig.vue.d.ts → SensitiveSection.vue.d.ts} +0 -0
  536. /package/dist/views/system/config/components/{OtherConfig.vue.d.ts → SigninSection.vue.d.ts} +0 -0
  537. /package/dist/views/system/config/components/{SecurityConfig.vue.d.ts → UploadSection.vue.d.ts} +0 -0
  538. /package/dist/views/system/config/components/{SysBaseConfig.vue.d.ts → 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