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,87 +1,104 @@
1
- import { defineComponent as he, ref as m, shallowRef as M, onMounted as be, reactive as K, computed as W, resolveDirective as ge, openBlock as g, createElementBlock as we, Fragment as ke, createVNode as a, unref as o, withCtx as s, withDirectives as H, createBlock as C, createTextVNode as L, toDisplayString as J, createCommentVNode as D, h as b } from "vue";
2
- import { useMessage as Se, NButton as w, NForm as Q, NFormItem as f, NInput as R, NInputNumber as Ue, NSwitch as X, NSelect as Te, NSpace as Ce, NDropdown as De } from "naive-ui";
3
- import { useI18n as Ie } from "vue-i18n";
4
- import { SmartTable as Oe } from "smart-naive-table";
5
- import Y from "../../../components/AppIcon.vue.js";
6
- import _ from "../../../components/FormContainer/index.vue.js";
1
+ import { defineComponent as ye, ref as m, shallowRef as x, onMounted as be, h as f, reactive as j, computed as K, resolveDirective as ge, openBlock as g, createElementBlock as J, Fragment as we, createVNode as a, unref as o, withCtx as s, withDirectives as Q, createBlock as D, createTextVNode as X, toDisplayString as w, createCommentVNode as k, createElementVNode as ke } from "vue";
2
+ import { useMessage as Se, NSpace as Ue, NButton as S, NDropdown as Te, NForm as Y, NFormItem as v, NInput as M, NInputNumber as Ae, NSwitch as Z, NSelect as Ce } from "naive-ui";
3
+ import { useI18n as De } from "vue-i18n";
4
+ import { SmartTable as Ie } from "smart-naive-table";
5
+ import ee from "../../../components/AppIcon.vue.js";
6
+ import le from "../../../components/FormContainer/index.vue.js";
7
7
  /* empty css */
8
- import Ae from "../../../components/StatusSwitch/index.vue.js";
8
+ import Oe from "../../../components/StatusSwitch/index.vue.js";
9
9
  import Ne from "../../../components/OrgTreeSelect/index.vue.js";
10
- import Pe from "../../../components/UserPicker/index.vue.js";
11
- import xe from "./components/GrantMenuTable.vue.js";
12
- import { useConfirm as Me } from "../../../composables/useConfirm.js";
13
- import { useBatchDelete as Re } from "../../../composables/useBatchDelete.js";
14
- import { moduleApi as _e, roleApi as d, userApi as qe, menuApi as ze } from "../../../api/index.js";
15
- import { useAuthStore as Ee } from "../../../stores/auth.js";
16
- import { translateError as v } from "../../../utils/error.js";
10
+ import _e from "../../../components/UserPicker/index.vue.js";
11
+ import Pe from "./components/GrantMenuSheet.vue.js";
12
+ import { useConfirm as Re } from "../../../composables/useConfirm.js";
13
+ import { useBatchDelete as xe } from "../../../composables/useBatchDelete.js";
14
+ import { moduleApi as Me, roleApi as d, menuApi as Ee, userApi as ze } from "../../../api/index.js";
15
+ import { useAuthStore as Be } from "../../../stores/auth.js";
16
+ import { translateError as h } from "../../../utils/error.js";
17
+ import { SEARCH_ACTIONS as qe, deriveHeaderFilters as He } from "../../../utils/tableFilter.js";
18
+ import { TABLE_MIN_ROW_HEIGHT as Fe, TABLE_TOOLBAR as Ge } from "../../../utils/tableToolbar.js";
19
+ import Le from "../../../components/TableTotal/index.vue.js";
17
20
  import { DataScopeType as y } from "../../../types/api.js";
18
- const Z = 0, ol = /* @__PURE__ */ he({
21
+ const Ve = { class: "form-hint" }, $e = {
22
+ key: 0,
23
+ class: "scope-who"
24
+ }, te = 0, pl = /* @__PURE__ */ ye({
19
25
  __name: "index",
20
- setup(Be) {
21
- const { t } = Ie(), c = Se(), { confirm: ee } = Me(), i = Ee(), k = m(), I = M([]);
26
+ setup(We) {
27
+ const { t } = De(), c = Se(), { confirm: oe } = Re(), i = Be(), U = m(), I = x([]);
22
28
  be(async () => {
23
29
  try {
24
- I.value = await _e.list();
30
+ I.value = await Me.list();
25
31
  } catch {
26
32
  }
27
33
  });
28
- async function q(l) {
34
+ async function E(l) {
29
35
  try {
30
- const { total: e } = await qe.page({ page: 1, pageSize: 1, roleId: l });
36
+ const { total: e } = await ze.page({ page: 1, pageSize: 1, roleId: l });
31
37
  return e;
32
38
  } catch {
33
39
  return null;
34
40
  }
35
41
  }
36
- const {
37
- checkedKeys: z,
38
- hasSelection: le,
39
- run: te
40
- } = Re({
42
+ const { checkedKeys: z, run: re } = xe({
41
43
  remove: d.batchRemove,
42
44
  refresh: () => {
43
45
  var l;
44
- return (l = k.value) == null ? void 0 : l.refresh();
46
+ return (l = U.value) == null ? void 0 : l.refresh();
45
47
  },
46
48
  successMsg: t("role.deleted"),
47
49
  content: async (l) => {
48
- const e = await Promise.all(l.map(q));
50
+ const e = await Promise.all(l.map(E));
49
51
  if (e.some((r) => r === null)) return t("common.batchDeleteConfirm", { count: l.length });
50
- const n = e.reduce((r, T) => r + T, 0);
52
+ const n = e.reduce((r, C) => r + C, 0);
51
53
  return n === 0 ? t("common.batchDeleteConfirm", { count: l.length }) : t("role.batchDeleteWithUsers", { count: l.length, users: n });
52
54
  }
53
55
  });
54
- async function oe(l) {
55
- var T;
56
- const e = await q(l.id), n = e === null ? t("role.deleteConfirm", { name: l.name }) : e === 0 ? t("role.deleteConfirmNoUsers", { name: l.name }) : t("role.deleteConfirmWithUsers", { name: l.name, count: e });
57
- await ee({
56
+ async function ae(l) {
57
+ var C;
58
+ const e = await E(l.id), n = e === null ? t("role.deleteConfirm", { name: l.name }) : e === 0 ? t("role.deleteConfirmNoUsers", { name: l.name }) : t("role.deleteConfirmWithUsers", { name: l.name, count: e });
59
+ await oe({
58
60
  content: n,
59
61
  type: "error",
60
62
  action: () => d.remove(l.id),
61
63
  successMsg: t("role.deleted")
62
- }) && ((T = k.value) == null || T.refresh());
64
+ }) && ((C = U.value) == null || C.refresh());
63
65
  }
64
- const E = (l) => ({
66
+ const B = (l) => ({
65
67
  name: l.name,
66
68
  code: l.code,
67
69
  sort: l.sort,
68
70
  enabled: l.enabled,
69
71
  remark: l.remark ?? "",
70
72
  isDelegatable: l.isDelegatable ?? !1
71
- }), re = [
73
+ }), q = [
72
74
  { type: "selection" },
73
75
  { type: "index", title: () => t("common.rowNo"), width: 64, align: "center" },
74
- { key: "code", title: () => t("role.code") },
75
- { key: "name", title: () => t("role.name"), search: !0 },
76
- { key: "sort", title: () => t("role.sort"), width: 80 },
76
+ {
77
+ key: "code",
78
+ title: () => t("role.code"),
79
+ render: (l) => f("span", { class: "mono muted" }, l.code)
80
+ },
81
+ {
82
+ key: "name",
83
+ title: () => t("role.name"),
84
+ card: "title",
85
+ // 窄档卡片以角色名称为标题,编码作为字段
86
+ search: { actions: qe.fuzzy }
87
+ },
88
+ {
89
+ key: "sort",
90
+ title: () => t("role.sort"),
91
+ width: 80,
92
+ render: (l) => f("span", { class: "num muted" }, l.sort)
93
+ },
77
94
  {
78
95
  key: "enabled",
79
96
  title: () => t("common.status"),
80
97
  width: 90,
81
- render: (l) => b(Ae, {
98
+ render: (l) => f(Oe, {
82
99
  value: l.enabled,
83
100
  disabled: !i.isSuperAdmin || !i.hasPerm("PUT:/api/v1/sys/role/{id}"),
84
- request: (e) => d.update(l.id, { ...E(l), enabled: e }),
101
+ request: (e) => d.update(l.id, { ...B(l), enabled: e }),
85
102
  "onUpdate:value": (e) => {
86
103
  l.enabled = e;
87
104
  }
@@ -91,7 +108,7 @@ const Z = 0, ol = /* @__PURE__ */ he({
91
108
  key: "remark",
92
109
  title: () => t("role.remark"),
93
110
  ellipsis: { tooltip: !0 },
94
- render: (l) => l.remark || "—"
111
+ render: (l) => l.remark || f("span", { class: "faint" }, "—")
95
112
  },
96
113
  {
97
114
  key: "op",
@@ -105,31 +122,33 @@ const Z = 0, ol = /* @__PURE__ */ he({
105
122
  i.isSuperAdmin && i.hasPerm("PUT:/api/v1/sys/role/datascope") ? { label: t("role.dataScope"), key: "scope" } : null,
106
123
  i.hasPerm("PUT:/api/v1/sys/role/users") ? { label: t("role.grantUsers"), key: "users" } : null
107
124
  ].filter((n) => n !== null);
108
- return b(Ce, { size: 4, wrapItem: !1 }, () => [
109
- i.isSuperAdmin && i.hasPerm("PUT:/api/v1/sys/role/{id}") ? b(
110
- w,
111
- { size: "small", quaternary: !0, type: "primary", onClick: () => se(l) },
125
+ return f(Ue, { size: 4, wrapItem: !1 }, () => [
126
+ i.isSuperAdmin && i.hasPerm("PUT:/api/v1/sys/role/{id}") ? f(
127
+ S,
128
+ { size: "small", quaternary: !0, type: "primary", onClick: () => ue(l) },
112
129
  () => t("common.edit")
113
130
  ) : null,
114
- i.isSuperAdmin && i.hasPerm("DELETE:/api/v1/sys/role/{id}") ? b(
115
- w,
116
- { size: "small", quaternary: !0, type: "error", onClick: () => oe(l) },
131
+ i.isSuperAdmin && i.hasPerm("DELETE:/api/v1/sys/role/{id}") ? f(
132
+ S,
133
+ { size: "small", quaternary: !0, type: "error", onClick: () => ae(l) },
117
134
  () => t("common.delete")
118
135
  ) : null,
119
- e.length ? b(
120
- De,
136
+ e.length ? f(
137
+ Te,
121
138
  {
122
139
  options: e,
123
140
  onSelect: (n) => {
124
- n === "menus" ? ie(l) : n === "scope" ? ve(l) : me(l);
141
+ n === "menus" ? ce(l) : n === "scope" ? ve(l) : de(l);
125
142
  }
126
143
  },
127
- () => b(w, { size: "small", quaternary: !0 }, () => t("common.more"))
144
+ () => f(S, { size: "small", quaternary: !0 }, () => t("common.more"))
128
145
  ) : null
129
146
  ]);
130
147
  }
131
148
  }
132
- ], S = m(!1), B = m(null), h = m(null), ae = {
149
+ ];
150
+ He(q);
151
+ const T = m(!1), H = m(null), b = m(null), ne = {
133
152
  code: {
134
153
  required: !0,
135
154
  whitespace: !0,
@@ -149,67 +168,63 @@ const Z = 0, ol = /* @__PURE__ */ he({
149
168
  enabled: !0,
150
169
  remark: "",
151
170
  isDelegatable: !1
152
- }), u = K(F());
153
- function ne() {
154
- h.value = null, Object.assign(u, F()), S.value = !0;
171
+ }), u = j(F());
172
+ function se() {
173
+ b.value = null, Object.assign(u, F()), T.value = !0;
155
174
  }
156
- function se(l) {
157
- h.value = l.id, Object.assign(u, E(l)), S.value = !0;
175
+ function ue(l) {
176
+ b.value = l.id, Object.assign(u, B(l)), T.value = !0;
158
177
  }
159
- async function ue() {
178
+ async function ie() {
160
179
  var l, e;
161
- await ((l = B.value) == null ? void 0 : l.validate());
180
+ await ((l = H.value) == null ? void 0 : l.validate());
162
181
  try {
163
- h.value === null ? await d.add({ ...u }) : await d.update(h.value, { ...u }), c.success(t("role.saved")), await ((e = k.value) == null ? void 0 : e.refresh());
182
+ b.value === null ? await d.add({ ...u }) : await d.update(b.value, { ...u }), c.success(t("role.saved")), await ((e = U.value) == null ? void 0 : e.refresh());
164
183
  } catch (n) {
165
- return c.error(v(n)), !1;
184
+ return c.error(h(n)), !1;
166
185
  }
167
186
  }
168
- const O = m(!1), $ = M([]), U = M([]), A = m(null), G = m(Z);
169
- async function ie(l) {
187
+ const O = m(!1), G = x([]), L = x([]), N = m(null), V = m(te);
188
+ async function ce(l) {
170
189
  var e;
171
- A.value = l.id;
172
190
  try {
173
- const [n, r] = await Promise.all([ze.tree(), d.getMenus(l.id)]);
174
- $.value = n, U.value = r, G.value = i.currentModuleId ?? ((e = I.value[0]) == null ? void 0 : e.id) ?? Z, O.value = !0;
191
+ const [n, r] = await Promise.all([Ee.tree(), d.getMenus(l.id)]);
192
+ N.value = l, G.value = n, L.value = r, V.value = i.currentModuleId ?? ((e = I.value[0]) == null ? void 0 : e.id) ?? te, O.value = !0;
175
193
  } catch (n) {
176
- c.error(v(n));
194
+ c.error(h(n));
177
195
  }
178
196
  }
179
- function ce(l) {
180
- U.value = l;
181
- }
182
- async function de() {
183
- if (A.value !== null)
197
+ async function me(l) {
198
+ if (N.value !== null)
184
199
  try {
185
- await d.setMenus(A.value, U.value), c.success(t("role.grantSaved"));
186
- } catch (l) {
187
- return c.error(v(l)), !1;
200
+ await d.setMenus(N.value.id, l), c.success(t("role.grantSaved"));
201
+ } catch (e) {
202
+ return c.error(h(e)), !1;
188
203
  }
189
204
  }
190
- const V = m(null), N = m(null);
191
- async function me(l) {
205
+ const $ = m(null), _ = m(null);
206
+ async function de(l) {
192
207
  var e;
193
- N.value = l.id;
208
+ _.value = l.id;
194
209
  try {
195
210
  const n = await d.getUsers(l.id);
196
- (e = V.value) == null || e.open(n);
211
+ (e = $.value) == null || e.open(n);
197
212
  } catch (n) {
198
- c.error(v(n));
213
+ c.error(h(n));
199
214
  }
200
215
  }
201
216
  async function pe(l) {
202
- if (N.value !== null)
217
+ if (_.value !== null)
203
218
  try {
204
- await d.setUsers(N.value, l), c.success(t("role.grantUsersSaved"));
219
+ await d.setUsers(_.value, l), c.success(t("role.grantUsersSaved"));
205
220
  } catch (e) {
206
- c.error(v(e));
221
+ c.error(h(e));
207
222
  }
208
223
  }
209
- const P = m(!1), x = m(null), p = K({
224
+ const P = m(!1), R = m(null), A = m(null), p = j({
210
225
  scopeType: y.Org,
211
226
  customOrgIds: []
212
- }), j = W(() => p.scopeType === y.Custom), fe = W(() => [
227
+ }), W = K(() => p.scopeType === y.Custom), fe = K(() => [
213
228
  { label: t("role.scope.all"), value: y.All },
214
229
  { label: t("role.scope.org"), value: y.Org },
215
230
  { label: t("role.scope.orgAndChildren"), value: y.OrgAndChildren },
@@ -217,121 +232,128 @@ const Z = 0, ol = /* @__PURE__ */ he({
217
232
  { label: t("role.scope.custom"), value: y.Custom }
218
233
  ]);
219
234
  async function ve(l) {
220
- x.value = l.id;
235
+ R.value = l.id, A.value = l;
221
236
  try {
222
237
  const e = await d.getDataScope(l.id);
223
238
  p.scopeType = (e == null ? void 0 : e.scopeType) ?? y.Org, p.customOrgIds = e != null && e.customOrgIds ? e.customOrgIds.split(",").filter(Boolean).map(Number) : [], P.value = !0;
224
239
  } catch (e) {
225
- c.error(v(e));
240
+ c.error(h(e));
226
241
  }
227
242
  }
228
- async function ye() {
229
- if (x.value !== null)
243
+ async function he() {
244
+ if (R.value !== null)
230
245
  try {
231
246
  await d.setDataScope(
232
- x.value,
247
+ R.value,
233
248
  p.scopeType,
234
- j.value ? p.customOrgIds : void 0
249
+ W.value ? p.customOrgIds : void 0
235
250
  ), c.success(t("role.scopeSaved"));
236
251
  } catch (l) {
237
- return c.error(v(l)), !1;
252
+ return c.error(h(l)), !1;
238
253
  }
239
254
  }
240
255
  return (l, e) => {
241
256
  const n = ge("auth");
242
- return g(), we(ke, null, [
243
- a(o(Oe), {
244
- "default-page-size": 100,
257
+ return g(), J(we, null, [
258
+ a(o(Ie), {
259
+ toolbar: o(Ge),
245
260
  ref_key: "tableRef",
246
- ref: k,
247
- columns: re,
261
+ ref: U,
262
+ columns: q,
248
263
  fetcher: o(d).page,
249
- "flex-height": "",
250
- "virtual-scroll": "",
264
+ search: { container: "table" },
265
+ "fill-height": "",
266
+ "min-row-height": o(Fe),
267
+ "card-on-narrow": "",
251
268
  "storage-key": "sys-role",
252
269
  "checked-row-keys": o(z),
253
270
  "onUpdate:checkedRowKeys": e[0] || (e[0] = (r) => z.value = r),
254
- onError: e[1] || (e[1] = (r) => o(c).error(o(v)(r)))
271
+ onError: e[1] || (e[1] = (r) => o(c).error(o(h)(r)))
255
272
  }, {
256
- toolbar: s(() => [
257
- o(i).isSuperAdmin ? H((g(), C(o(w), {
273
+ "pagination-prefix": s(({ itemCount: r }) => [
274
+ a(Le, { count: r }, null, 8, ["count"])
275
+ ]),
276
+ "toolbar-right": s(() => [
277
+ o(i).isSuperAdmin ? Q((g(), D(o(S), {
258
278
  key: 0,
259
279
  type: "primary",
260
- onClick: ne
280
+ onClick: se
261
281
  }, {
262
282
  icon: s(() => [
263
- a(Y, {
283
+ a(ee, {
264
284
  icon: "ph:plus",
265
285
  size: 16
266
286
  })
267
287
  ]),
268
288
  default: s(() => [
269
- L(" " + J(o(t)("common.add")), 1)
289
+ X(" " + w(o(t)("common.add")), 1)
270
290
  ]),
271
291
  _: 1
272
292
  })), [
273
293
  [n, "POST:/api/v1/sys/role/add"]
274
- ]) : D("", !0),
275
- o(i).isSuperAdmin ? H((g(), C(o(w), {
276
- key: 1,
294
+ ]) : k("", !0)
295
+ ]),
296
+ batch: s(() => [
297
+ o(i).isSuperAdmin ? Q((g(), D(o(S), {
298
+ key: 0,
299
+ secondary: "",
277
300
  type: "error",
278
- disabled: !o(le),
279
- onClick: o(te)
301
+ onClick: o(re)
280
302
  }, {
281
303
  icon: s(() => [
282
- a(Y, {
304
+ a(ee, {
283
305
  icon: "ph:trash",
284
306
  size: 16
285
307
  })
286
308
  ]),
287
309
  default: s(() => [
288
- L(" " + J(o(t)("common.batchDelete")), 1)
310
+ X(" " + w(o(t)("common.batchDelete")), 1)
289
311
  ]),
290
312
  _: 1
291
- }, 8, ["disabled", "onClick"])), [
313
+ }, 8, ["onClick"])), [
292
314
  [n, "POST:/api/v1/sys/role/batch-delete"]
293
- ]) : D("", !0)
315
+ ]) : k("", !0)
294
316
  ]),
295
317
  _: 1
296
- }, 8, ["fetcher", "checked-row-keys"]),
297
- a(_, {
298
- show: S.value,
299
- "onUpdate:show": e[8] || (e[8] = (r) => S.value = r),
300
- title: h.value === null ? o(t)("role.addTitle") : o(t)("role.editTitle"),
318
+ }, 8, ["toolbar", "fetcher", "min-row-height", "checked-row-keys"]),
319
+ a(le, {
320
+ show: T.value,
321
+ "onUpdate:show": e[8] || (e[8] = (r) => T.value = r),
322
+ title: b.value === null ? o(t)("role.addTitle") : o(t)("role.editTitle"),
301
323
  width: 480,
302
- "on-confirm": ue,
324
+ "on-confirm": ie,
303
325
  "confirm-text": o(t)("common.save")
304
326
  }, {
305
327
  default: s(() => [
306
- a(o(Q), {
328
+ a(o(Y), {
307
329
  ref_key: "formRef",
308
- ref: B,
330
+ ref: H,
309
331
  model: u,
310
- rules: ae,
332
+ rules: ne,
311
333
  "label-placement": "left",
312
334
  "label-width": 80
313
335
  }, {
314
336
  default: s(() => [
315
- a(o(f), {
337
+ a(o(v), {
316
338
  label: o(t)("role.code"),
317
339
  path: "code"
318
340
  }, {
319
341
  default: s(() => [
320
- a(o(R), {
342
+ a(o(M), {
321
343
  value: u.code,
322
344
  "onUpdate:value": e[2] || (e[2] = (r) => u.code = r),
323
345
  placeholder: o(t)("role.code"),
324
- disabled: h.value !== null
346
+ disabled: b.value !== null
325
347
  }, null, 8, ["value", "placeholder", "disabled"])
326
348
  ]),
327
349
  _: 1
328
350
  }, 8, ["label"]),
329
- a(o(f), {
351
+ a(o(v), {
330
352
  label: o(t)("role.name"),
331
353
  path: "name"
332
354
  }, {
333
355
  default: s(() => [
334
- a(o(R), {
356
+ a(o(M), {
335
357
  value: u.name,
336
358
  "onUpdate:value": e[3] || (e[3] = (r) => u.name = r),
337
359
  placeholder: o(t)("role.name")
@@ -339,11 +361,11 @@ const Z = 0, ol = /* @__PURE__ */ he({
339
361
  ]),
340
362
  _: 1
341
363
  }, 8, ["label"]),
342
- a(o(f), {
364
+ a(o(v), {
343
365
  label: o(t)("role.sort")
344
366
  }, {
345
367
  default: s(() => [
346
- a(o(Ue), {
368
+ a(o(Ae), {
347
369
  value: u.sort,
348
370
  "onUpdate:value": e[4] || (e[4] = (r) => u.sort = r),
349
371
  min: 0,
@@ -352,11 +374,11 @@ const Z = 0, ol = /* @__PURE__ */ he({
352
374
  ]),
353
375
  _: 1
354
376
  }, 8, ["label"]),
355
- a(o(f), {
377
+ a(o(v), {
356
378
  label: o(t)("role.remark")
357
379
  }, {
358
380
  default: s(() => [
359
- a(o(R), {
381
+ a(o(M), {
360
382
  value: u.remark,
361
383
  "onUpdate:value": e[5] || (e[5] = (r) => u.remark = r),
362
384
  type: "textarea",
@@ -366,79 +388,73 @@ const Z = 0, ol = /* @__PURE__ */ he({
366
388
  ]),
367
389
  _: 1
368
390
  }, 8, ["label"]),
369
- a(o(f), {
391
+ a(o(v), {
370
392
  label: o(t)("common.status")
371
393
  }, {
372
394
  default: s(() => [
373
- a(o(X), {
395
+ a(o(Z), {
374
396
  value: u.enabled,
375
397
  "onUpdate:value": e[6] || (e[6] = (r) => u.enabled = r)
376
398
  }, null, 8, ["value"])
377
399
  ]),
378
400
  _: 1
379
401
  }, 8, ["label"]),
380
- o(i).isSuperAdmin ? (g(), C(o(f), {
402
+ o(i).isSuperAdmin ? (g(), D(o(v), {
381
403
  key: 0,
382
404
  label: o(t)("role.isDelegatable")
383
405
  }, {
406
+ feedback: s(() => [
407
+ ke("span", Ve, w(o(t)("role.isDelegatableHint")), 1)
408
+ ]),
384
409
  default: s(() => [
385
- a(o(X), {
410
+ a(o(Z), {
386
411
  value: u.isDelegatable,
387
412
  "onUpdate:value": e[7] || (e[7] = (r) => u.isDelegatable = r)
388
413
  }, null, 8, ["value"])
389
414
  ]),
390
415
  _: 1
391
- }, 8, ["label"])) : D("", !0)
416
+ }, 8, ["label"])) : k("", !0)
392
417
  ]),
393
418
  _: 1
394
419
  }, 8, ["model"])
395
420
  ]),
396
421
  _: 1
397
422
  }, 8, ["show", "title", "confirm-text"]),
398
- a(_, {
423
+ a(Pe, {
399
424
  show: O.value,
400
425
  "onUpdate:show": e[9] || (e[9] = (r) => O.value = r),
401
- title: o(t)("role.grantMenus"),
402
- width: 820,
403
- "on-confirm": de,
404
- "confirm-text": o(t)("common.save")
405
- }, {
406
- default: s(() => [
407
- a(xe, {
408
- tree: $.value,
409
- granted: U.value,
410
- modules: I.value,
411
- "default-module-id": G.value,
412
- "onUpdate:checked": ce
413
- }, null, 8, ["tree", "granted", "modules", "default-module-id"])
414
- ]),
415
- _: 1
416
- }, 8, ["show", "title", "confirm-text"]),
417
- a(Pe, {
426
+ tree: G.value,
427
+ granted: L.value,
428
+ modules: I.value,
429
+ "default-module-id": V.value,
430
+ "on-save": me
431
+ }, null, 8, ["show", "tree", "granted", "modules", "default-module-id"]),
432
+ a(_e, {
418
433
  ref_key: "userPickerRef",
419
- ref: V,
434
+ ref: $,
420
435
  onConfirm: pe
421
436
  }, null, 512),
422
- a(_, {
437
+ a(le, {
423
438
  show: P.value,
424
439
  "onUpdate:show": e[12] || (e[12] = (r) => P.value = r),
425
440
  title: o(t)("role.dataScope"),
426
441
  width: 480,
427
- "on-confirm": ye,
442
+ "on-confirm": he,
428
443
  "confirm-text": o(t)("common.save")
429
444
  }, {
430
445
  default: s(() => [
431
- a(o(Q), {
446
+ A.value ? (g(), J("div", $e, w(A.value.name) + " · " + w(A.value.code), 1)) : k("", !0),
447
+ a(o(Y), {
432
448
  model: p,
433
449
  "label-placement": "left",
434
450
  "label-width": 90
435
451
  }, {
436
452
  default: s(() => [
437
- a(o(f), {
453
+ a(o(v), {
438
454
  label: o(t)("role.scopeType")
439
455
  }, {
440
456
  default: s(() => [
441
- a(o(Te), {
457
+ a(o(Ce), {
442
458
  value: p.scopeType,
443
459
  "onUpdate:value": e[10] || (e[10] = (r) => p.scopeType = r),
444
460
  options: fe.value
@@ -446,7 +462,7 @@ const Z = 0, ol = /* @__PURE__ */ he({
446
462
  ]),
447
463
  _: 1
448
464
  }, 8, ["label"]),
449
- j.value ? (g(), C(o(f), {
465
+ W.value ? (g(), D(o(v), {
450
466
  key: 0,
451
467
  label: o(t)("role.customOrgs")
452
468
  }, {
@@ -459,7 +475,7 @@ const Z = 0, ol = /* @__PURE__ */ he({
459
475
  }, null, 8, ["value", "placeholder"])
460
476
  ]),
461
477
  _: 1
462
- }, 8, ["label"])) : D("", !0)
478
+ }, 8, ["label"])) : k("", !0)
463
479
  ]),
464
480
  _: 1
465
481
  }, 8, ["model"])
@@ -471,6 +487,6 @@ const Z = 0, ol = /* @__PURE__ */ he({
471
487
  }
472
488
  });
473
489
  export {
474
- ol as default
490
+ pl as default
475
491
  };
476
492
  //# sourceMappingURL=index2.vue.js.map