@antdv-vue/pro-layout 0.0.0-stage → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (426) hide show
  1. package/CHANGELOG.md +266 -0
  2. package/README.md +111 -2
  3. package/dist/BasicLayout.d.ts +255 -0
  4. package/dist/BasicLayout.js +895 -0
  5. package/dist/ProLayout.d.ts +334 -0
  6. package/dist/ProLayout.js +548 -0
  7. package/dist/RenderTypings.d.ts +116 -0
  8. package/dist/RenderTypings.js +1 -0
  9. package/dist/WrapContent.d.ts +23 -0
  10. package/dist/WrapContent.js +73 -0
  11. package/dist/assert/Logo.d.ts +6 -0
  12. package/dist/assert/Logo.js +102 -0
  13. package/dist/components/AppsLogoComponents/AppsLogo.d.ts +10 -0
  14. package/dist/components/AppsLogoComponents/AppsLogo.js +17 -0
  15. package/dist/components/AppsLogoComponents/DefaultContent.d.ts +22 -0
  16. package/dist/components/AppsLogoComponents/DefaultContent.js +42 -0
  17. package/dist/components/AppsLogoComponents/SimpleContent.d.ts +12 -0
  18. package/dist/components/AppsLogoComponents/SimpleContent.js +44 -0
  19. package/dist/components/AppsLogoComponents/index.d.ts +22 -0
  20. package/dist/components/AppsLogoComponents/index.js +85 -0
  21. package/dist/components/AppsLogoComponents/style/default.d.ts +7 -0
  22. package/dist/components/AppsLogoComponents/style/default.js +72 -0
  23. package/dist/components/AppsLogoComponents/style/index.d.ts +8 -0
  24. package/dist/components/AppsLogoComponents/style/index.js +69 -0
  25. package/dist/components/AppsLogoComponents/style/simple.d.ts +7 -0
  26. package/dist/components/AppsLogoComponents/style/simple.js +85 -0
  27. package/dist/components/AppsLogoComponents/typing.d.ts +14 -0
  28. package/dist/components/AppsLogoComponents/typing.js +1 -0
  29. package/dist/components/CollapsedIcon/index.d.ts +9 -0
  30. package/dist/components/CollapsedIcon/index.js +6 -0
  31. package/dist/components/Footer/index.d.ts +18 -0
  32. package/dist/components/Footer/index.js +25 -0
  33. package/dist/components/FooterToolbar/index.d.ts +21 -0
  34. package/dist/components/FooterToolbar/index.js +85 -0
  35. package/dist/components/FooterToolbar/style/index.d.ts +8 -0
  36. package/dist/components/FooterToolbar/style/index.js +35 -0
  37. package/dist/components/FooterToolbar/style/stylish.d.ts +13 -0
  38. package/dist/components/FooterToolbar/style/stylish.js +12 -0
  39. package/dist/components/GlobalFooter/index.d.ts +17 -0
  40. package/dist/components/GlobalFooter/index.js +46 -0
  41. package/dist/components/GlobalFooter/style/index.d.ts +8 -0
  42. package/dist/components/GlobalFooter/style/index.js +33 -0
  43. package/dist/components/GlobalHeader/ActionsContent.d.ts +30 -0
  44. package/dist/components/GlobalHeader/ActionsContent.js +88 -0
  45. package/dist/components/GlobalHeader/index.d.ts +146 -0
  46. package/dist/components/GlobalHeader/index.js +289 -0
  47. package/dist/components/GlobalHeader/style/index.d.ts +8 -0
  48. package/dist/components/GlobalHeader/style/index.js +62 -0
  49. package/dist/components/GlobalHeader/style/rightContentStyle.d.ts +8 -0
  50. package/dist/components/GlobalHeader/style/rightContentStyle.js +99 -0
  51. package/dist/components/GridContent/index.d.ts +19 -0
  52. package/dist/components/GridContent/index.js +40 -0
  53. package/dist/components/GridContent/style/index.d.ts +8 -0
  54. package/dist/components/GridContent/style/index.js +17 -0
  55. package/dist/components/Header/index.d.ts +106 -0
  56. package/dist/components/Header/index.js +330 -0
  57. package/dist/components/Header/style/header.d.ts +8 -0
  58. package/dist/components/Header/style/header.js +39 -0
  59. package/dist/components/Header/style/stylish.d.ts +17 -0
  60. package/dist/components/Header/style/stylish.js +12 -0
  61. package/dist/components/Help/AsyncContentPanel.d.ts +11 -0
  62. package/dist/components/Help/AsyncContentPanel.js +51 -0
  63. package/dist/components/Help/HelpProvide.d.ts +206 -0
  64. package/dist/components/Help/HelpProvide.js +20 -0
  65. package/dist/components/Help/ProHelpContentPanel.d.ts +19 -0
  66. package/dist/components/Help/ProHelpContentPanel.js +120 -0
  67. package/dist/components/Help/ProHelpDrawer.d.ts +13 -0
  68. package/dist/components/Help/ProHelpDrawer.js +108 -0
  69. package/dist/components/Help/ProHelpModal.d.ts +19 -0
  70. package/dist/components/Help/ProHelpModal.js +105 -0
  71. package/dist/components/Help/ProHelpPanel.d.ts +95 -0
  72. package/dist/components/Help/ProHelpPanel.js +245 -0
  73. package/dist/components/Help/ProHelpPopover.d.ts +61 -0
  74. package/dist/components/Help/ProHelpPopover.js +183 -0
  75. package/dist/components/Help/ProHelpSearch.d.ts +14 -0
  76. package/dist/components/Help/ProHelpSearch.js +530 -0
  77. package/dist/components/Help/RenderContentPanel.d.ts +11 -0
  78. package/dist/components/Help/RenderContentPanel.js +90 -0
  79. package/dist/components/Help/index.d.ts +43 -0
  80. package/dist/components/Help/index.js +31 -0
  81. package/dist/components/Help/style/index.d.ts +10 -0
  82. package/dist/components/Help/style/index.js +96 -0
  83. package/dist/components/MultiTab/index.d.ts +71 -0
  84. package/dist/components/MultiTab/index.js +303 -0
  85. package/dist/components/MultiTab/style/index.d.ts +8 -0
  86. package/dist/components/MultiTab/style/index.js +67 -0
  87. package/dist/components/PageContainer/PageContainerBase.d.ts +155 -0
  88. package/dist/components/PageContainer/PageContainerBase.js +349 -0
  89. package/dist/components/PageContainer/index.d.ts +57 -0
  90. package/dist/components/PageContainer/index.js +234 -0
  91. package/dist/components/PageContainer/style/index.d.ts +8 -0
  92. package/dist/components/PageContainer/style/index.js +63 -0
  93. package/dist/components/PageContainer/style/stylish.d.ts +13 -0
  94. package/dist/components/PageContainer/style/stylish.js +12 -0
  95. package/dist/components/PageHeader/index.d.ts +37 -0
  96. package/dist/components/PageHeader/index.js +221 -0
  97. package/dist/components/PageHeader/style/index.d.ts +17 -0
  98. package/dist/components/PageHeader/style/index.js +132 -0
  99. package/dist/components/PageLoading/index.d.ts +9 -0
  100. package/dist/components/PageLoading/index.js +15 -0
  101. package/dist/components/SettingDrawer/BlockCheckbox.d.ts +18 -0
  102. package/dist/components/SettingDrawer/BlockCheckbox.js +25 -0
  103. package/dist/components/SettingDrawer/LayoutChange.d.ts +28 -0
  104. package/dist/components/SettingDrawer/LayoutChange.js +127 -0
  105. package/dist/components/SettingDrawer/RegionalChange.d.ts +15 -0
  106. package/dist/components/SettingDrawer/RegionalChange.js +35 -0
  107. package/dist/components/SettingDrawer/ThemeColor.d.ts +28 -0
  108. package/dist/components/SettingDrawer/ThemeColor.js +30 -0
  109. package/dist/components/SettingDrawer/icon/group.d.ts +10 -0
  110. package/dist/components/SettingDrawer/icon/group.js +190 -0
  111. package/dist/components/SettingDrawer/icon/sub.d.ts +10 -0
  112. package/dist/components/SettingDrawer/icon/sub.js +187 -0
  113. package/dist/components/SettingDrawer/index.d.ts +42 -0
  114. package/dist/components/SettingDrawer/index.js +510 -0
  115. package/dist/components/SettingDrawer/style/index.d.ts +9 -0
  116. package/dist/components/SettingDrawer/style/index.js +236 -0
  117. package/dist/components/SiderMenu/BaseMenu.d.ts +133 -0
  118. package/dist/components/SiderMenu/BaseMenu.js +583 -0
  119. package/dist/components/SiderMenu/SiderMenu.d.ts +326 -0
  120. package/dist/components/SiderMenu/SiderMenu.js +756 -0
  121. package/dist/components/SiderMenu/index.d.ts +72 -0
  122. package/dist/components/SiderMenu/index.js +507 -0
  123. package/dist/components/SiderMenu/style/index.d.ts +20 -0
  124. package/dist/components/SiderMenu/style/index.js +301 -0
  125. package/dist/components/SiderMenu/style/menu.d.ts +10 -0
  126. package/dist/components/SiderMenu/style/menu.js +23 -0
  127. package/dist/components/SiderMenu/style/stylish.d.ts +20 -0
  128. package/dist/components/SiderMenu/style/stylish.js +15 -0
  129. package/dist/components/TopNavHeader/index.d.ts +86 -0
  130. package/dist/components/TopNavHeader/index.js +536 -0
  131. package/dist/components/TopNavHeader/style/index.d.ts +8 -0
  132. package/dist/components/TopNavHeader/style/index.js +71 -0
  133. package/dist/context/RouteContext.d.ts +39 -0
  134. package/dist/context/RouteContext.js +9 -0
  135. package/dist/defaultSettings.d.ts +115 -0
  136. package/dist/defaultSettings.js +16 -0
  137. package/dist/getPageTitle.d.ts +31 -0
  138. package/dist/getPageTitle.js +55 -0
  139. package/dist/index.d.ts +21 -0
  140. package/dist/index.js +17 -0
  141. package/dist/locales/ar-EG/help.d.ts +6 -0
  142. package/dist/locales/ar-EG/help.js +4 -0
  143. package/dist/locales/ar-EG/multiTab.d.ts +6 -0
  144. package/dist/locales/ar-EG/multiTab.js +10 -0
  145. package/dist/locales/ar-EG/settingDrawer.d.ts +6 -0
  146. package/dist/locales/ar-EG/settingDrawer.js +50 -0
  147. package/dist/locales/ar-EG.d.ts +56 -0
  148. package/dist/locales/ar-EG.js +11 -0
  149. package/dist/locales/ca-ES/help.d.ts +6 -0
  150. package/dist/locales/ca-ES/help.js +4 -0
  151. package/dist/locales/ca-ES/multiTab.d.ts +6 -0
  152. package/dist/locales/ca-ES/multiTab.js +10 -0
  153. package/dist/locales/ca-ES/settingDrawer.d.ts +6 -0
  154. package/dist/locales/ca-ES/settingDrawer.js +50 -0
  155. package/dist/locales/ca-ES.d.ts +56 -0
  156. package/dist/locales/ca-ES.js +11 -0
  157. package/dist/locales/cs-CZ/help.d.ts +6 -0
  158. package/dist/locales/cs-CZ/help.js +4 -0
  159. package/dist/locales/cs-CZ/multiTab.d.ts +6 -0
  160. package/dist/locales/cs-CZ/multiTab.js +10 -0
  161. package/dist/locales/cs-CZ/settingDrawer.d.ts +6 -0
  162. package/dist/locales/cs-CZ/settingDrawer.js +50 -0
  163. package/dist/locales/cs-CZ.d.ts +56 -0
  164. package/dist/locales/cs-CZ.js +11 -0
  165. package/dist/locales/de-DE/help.d.ts +6 -0
  166. package/dist/locales/de-DE/help.js +4 -0
  167. package/dist/locales/de-DE/multiTab.d.ts +6 -0
  168. package/dist/locales/de-DE/multiTab.js +10 -0
  169. package/dist/locales/de-DE/settingDrawer.d.ts +6 -0
  170. package/dist/locales/de-DE/settingDrawer.js +50 -0
  171. package/dist/locales/de-DE.d.ts +56 -0
  172. package/dist/locales/de-DE.js +11 -0
  173. package/dist/locales/en-GB/help.d.ts +6 -0
  174. package/dist/locales/en-GB/help.js +4 -0
  175. package/dist/locales/en-GB/multiTab.d.ts +6 -0
  176. package/dist/locales/en-GB/multiTab.js +10 -0
  177. package/dist/locales/en-GB/settingDrawer.d.ts +6 -0
  178. package/dist/locales/en-GB/settingDrawer.js +50 -0
  179. package/dist/locales/en-GB.d.ts +56 -0
  180. package/dist/locales/en-GB.js +11 -0
  181. package/dist/locales/en-US/help.d.ts +6 -0
  182. package/dist/locales/en-US/help.js +4 -0
  183. package/dist/locales/en-US/multiTab.d.ts +6 -0
  184. package/dist/locales/en-US/multiTab.js +10 -0
  185. package/dist/locales/en-US/settingDrawer.d.ts +6 -0
  186. package/dist/locales/en-US/settingDrawer.js +50 -0
  187. package/dist/locales/en-US.d.ts +56 -0
  188. package/dist/locales/en-US.js +11 -0
  189. package/dist/locales/es-ES/help.d.ts +6 -0
  190. package/dist/locales/es-ES/help.js +4 -0
  191. package/dist/locales/es-ES/multiTab.d.ts +6 -0
  192. package/dist/locales/es-ES/multiTab.js +10 -0
  193. package/dist/locales/es-ES/settingDrawer.d.ts +6 -0
  194. package/dist/locales/es-ES/settingDrawer.js +50 -0
  195. package/dist/locales/es-ES.d.ts +56 -0
  196. package/dist/locales/es-ES.js +11 -0
  197. package/dist/locales/fa-IR/help.d.ts +6 -0
  198. package/dist/locales/fa-IR/help.js +4 -0
  199. package/dist/locales/fa-IR/multiTab.d.ts +6 -0
  200. package/dist/locales/fa-IR/multiTab.js +10 -0
  201. package/dist/locales/fa-IR/settingDrawer.d.ts +6 -0
  202. package/dist/locales/fa-IR/settingDrawer.js +50 -0
  203. package/dist/locales/fa-IR.d.ts +56 -0
  204. package/dist/locales/fa-IR.js +11 -0
  205. package/dist/locales/fr-FR/help.d.ts +6 -0
  206. package/dist/locales/fr-FR/help.js +4 -0
  207. package/dist/locales/fr-FR/multiTab.d.ts +6 -0
  208. package/dist/locales/fr-FR/multiTab.js +10 -0
  209. package/dist/locales/fr-FR/settingDrawer.d.ts +6 -0
  210. package/dist/locales/fr-FR/settingDrawer.js +50 -0
  211. package/dist/locales/fr-FR.d.ts +56 -0
  212. package/dist/locales/fr-FR.js +11 -0
  213. package/dist/locales/he-IL/help.d.ts +6 -0
  214. package/dist/locales/he-IL/help.js +4 -0
  215. package/dist/locales/he-IL/multiTab.d.ts +6 -0
  216. package/dist/locales/he-IL/multiTab.js +10 -0
  217. package/dist/locales/he-IL/settingDrawer.d.ts +6 -0
  218. package/dist/locales/he-IL/settingDrawer.js +50 -0
  219. package/dist/locales/he-IL.d.ts +56 -0
  220. package/dist/locales/he-IL.js +11 -0
  221. package/dist/locales/hr-HR/help.d.ts +6 -0
  222. package/dist/locales/hr-HR/help.js +4 -0
  223. package/dist/locales/hr-HR/multiTab.d.ts +6 -0
  224. package/dist/locales/hr-HR/multiTab.js +10 -0
  225. package/dist/locales/hr-HR/settingDrawer.d.ts +6 -0
  226. package/dist/locales/hr-HR/settingDrawer.js +50 -0
  227. package/dist/locales/hr-HR.d.ts +56 -0
  228. package/dist/locales/hr-HR.js +11 -0
  229. package/dist/locales/id-ID/help.d.ts +6 -0
  230. package/dist/locales/id-ID/help.js +4 -0
  231. package/dist/locales/id-ID/multiTab.d.ts +6 -0
  232. package/dist/locales/id-ID/multiTab.js +10 -0
  233. package/dist/locales/id-ID/settingDrawer.d.ts +6 -0
  234. package/dist/locales/id-ID/settingDrawer.js +50 -0
  235. package/dist/locales/id-ID.d.ts +56 -0
  236. package/dist/locales/id-ID.js +11 -0
  237. package/dist/locales/index.d.ts +1756 -0
  238. package/dist/locales/index.js +86 -0
  239. package/dist/locales/it-IT/help.d.ts +6 -0
  240. package/dist/locales/it-IT/help.js +4 -0
  241. package/dist/locales/it-IT/multiTab.d.ts +6 -0
  242. package/dist/locales/it-IT/multiTab.js +10 -0
  243. package/dist/locales/it-IT/settingDrawer.d.ts +6 -0
  244. package/dist/locales/it-IT/settingDrawer.js +50 -0
  245. package/dist/locales/it-IT.d.ts +56 -0
  246. package/dist/locales/it-IT.js +11 -0
  247. package/dist/locales/ja-JP/help.d.ts +6 -0
  248. package/dist/locales/ja-JP/help.js +4 -0
  249. package/dist/locales/ja-JP/multiTab.d.ts +6 -0
  250. package/dist/locales/ja-JP/multiTab.js +10 -0
  251. package/dist/locales/ja-JP/settingDrawer.d.ts +6 -0
  252. package/dist/locales/ja-JP/settingDrawer.js +50 -0
  253. package/dist/locales/ja-JP.d.ts +56 -0
  254. package/dist/locales/ja-JP.js +11 -0
  255. package/dist/locales/ko-KR/help.d.ts +6 -0
  256. package/dist/locales/ko-KR/help.js +4 -0
  257. package/dist/locales/ko-KR/multiTab.d.ts +6 -0
  258. package/dist/locales/ko-KR/multiTab.js +10 -0
  259. package/dist/locales/ko-KR/settingDrawer.d.ts +6 -0
  260. package/dist/locales/ko-KR/settingDrawer.js +50 -0
  261. package/dist/locales/ko-KR.d.ts +56 -0
  262. package/dist/locales/ko-KR.js +11 -0
  263. package/dist/locales/mn-MN/help.d.ts +6 -0
  264. package/dist/locales/mn-MN/help.js +4 -0
  265. package/dist/locales/mn-MN/multiTab.d.ts +6 -0
  266. package/dist/locales/mn-MN/multiTab.js +10 -0
  267. package/dist/locales/mn-MN/settingDrawer.d.ts +6 -0
  268. package/dist/locales/mn-MN/settingDrawer.js +50 -0
  269. package/dist/locales/mn-MN.d.ts +56 -0
  270. package/dist/locales/mn-MN.js +11 -0
  271. package/dist/locales/ms-MY/help.d.ts +6 -0
  272. package/dist/locales/ms-MY/help.js +4 -0
  273. package/dist/locales/ms-MY/multiTab.d.ts +6 -0
  274. package/dist/locales/ms-MY/multiTab.js +10 -0
  275. package/dist/locales/ms-MY/settingDrawer.d.ts +6 -0
  276. package/dist/locales/ms-MY/settingDrawer.js +50 -0
  277. package/dist/locales/ms-MY.d.ts +56 -0
  278. package/dist/locales/ms-MY.js +11 -0
  279. package/dist/locales/nl-NL/help.d.ts +6 -0
  280. package/dist/locales/nl-NL/help.js +4 -0
  281. package/dist/locales/nl-NL/multiTab.d.ts +6 -0
  282. package/dist/locales/nl-NL/multiTab.js +10 -0
  283. package/dist/locales/nl-NL/settingDrawer.d.ts +6 -0
  284. package/dist/locales/nl-NL/settingDrawer.js +50 -0
  285. package/dist/locales/nl-NL.d.ts +56 -0
  286. package/dist/locales/nl-NL.js +11 -0
  287. package/dist/locales/pl-PL/help.d.ts +6 -0
  288. package/dist/locales/pl-PL/help.js +4 -0
  289. package/dist/locales/pl-PL/multiTab.d.ts +6 -0
  290. package/dist/locales/pl-PL/multiTab.js +10 -0
  291. package/dist/locales/pl-PL/settingDrawer.d.ts +6 -0
  292. package/dist/locales/pl-PL/settingDrawer.js +50 -0
  293. package/dist/locales/pl-PL.d.ts +56 -0
  294. package/dist/locales/pl-PL.js +11 -0
  295. package/dist/locales/pt-BR/help.d.ts +6 -0
  296. package/dist/locales/pt-BR/help.js +4 -0
  297. package/dist/locales/pt-BR/multiTab.d.ts +6 -0
  298. package/dist/locales/pt-BR/multiTab.js +10 -0
  299. package/dist/locales/pt-BR/settingDrawer.d.ts +6 -0
  300. package/dist/locales/pt-BR/settingDrawer.js +50 -0
  301. package/dist/locales/pt-BR.d.ts +56 -0
  302. package/dist/locales/pt-BR.js +11 -0
  303. package/dist/locales/ro-RO/help.d.ts +6 -0
  304. package/dist/locales/ro-RO/help.js +4 -0
  305. package/dist/locales/ro-RO/multiTab.d.ts +6 -0
  306. package/dist/locales/ro-RO/multiTab.js +10 -0
  307. package/dist/locales/ro-RO/settingDrawer.d.ts +6 -0
  308. package/dist/locales/ro-RO/settingDrawer.js +50 -0
  309. package/dist/locales/ro-RO.d.ts +56 -0
  310. package/dist/locales/ro-RO.js +11 -0
  311. package/dist/locales/ru-RU/help.d.ts +6 -0
  312. package/dist/locales/ru-RU/help.js +4 -0
  313. package/dist/locales/ru-RU/multiTab.d.ts +6 -0
  314. package/dist/locales/ru-RU/multiTab.js +10 -0
  315. package/dist/locales/ru-RU/settingDrawer.d.ts +6 -0
  316. package/dist/locales/ru-RU/settingDrawer.js +50 -0
  317. package/dist/locales/ru-RU.d.ts +56 -0
  318. package/dist/locales/ru-RU.js +11 -0
  319. package/dist/locales/sk-SK/help.d.ts +6 -0
  320. package/dist/locales/sk-SK/help.js +4 -0
  321. package/dist/locales/sk-SK/multiTab.d.ts +6 -0
  322. package/dist/locales/sk-SK/multiTab.js +9 -0
  323. package/dist/locales/sk-SK/settingDrawer.d.ts +6 -0
  324. package/dist/locales/sk-SK/settingDrawer.js +50 -0
  325. package/dist/locales/sk-SK.d.ts +56 -0
  326. package/dist/locales/sk-SK.js +11 -0
  327. package/dist/locales/sr-RS/help.d.ts +6 -0
  328. package/dist/locales/sr-RS/help.js +4 -0
  329. package/dist/locales/sr-RS/multiTab.d.ts +6 -0
  330. package/dist/locales/sr-RS/multiTab.js +10 -0
  331. package/dist/locales/sr-RS/settingDrawer.d.ts +6 -0
  332. package/dist/locales/sr-RS/settingDrawer.js +50 -0
  333. package/dist/locales/sr-RS.d.ts +56 -0
  334. package/dist/locales/sr-RS.js +11 -0
  335. package/dist/locales/sv-SE/help.d.ts +6 -0
  336. package/dist/locales/sv-SE/help.js +4 -0
  337. package/dist/locales/sv-SE/multiTab.d.ts +6 -0
  338. package/dist/locales/sv-SE/multiTab.js +10 -0
  339. package/dist/locales/sv-SE/settingDrawer.d.ts +6 -0
  340. package/dist/locales/sv-SE/settingDrawer.js +50 -0
  341. package/dist/locales/sv-SE.d.ts +56 -0
  342. package/dist/locales/sv-SE.js +11 -0
  343. package/dist/locales/th-TH/help.d.ts +6 -0
  344. package/dist/locales/th-TH/help.js +4 -0
  345. package/dist/locales/th-TH/multiTab.d.ts +6 -0
  346. package/dist/locales/th-TH/multiTab.js +10 -0
  347. package/dist/locales/th-TH/settingDrawer.d.ts +6 -0
  348. package/dist/locales/th-TH/settingDrawer.js +50 -0
  349. package/dist/locales/th-TH.d.ts +56 -0
  350. package/dist/locales/th-TH.js +11 -0
  351. package/dist/locales/tr-TR/help.d.ts +6 -0
  352. package/dist/locales/tr-TR/help.js +4 -0
  353. package/dist/locales/tr-TR/multiTab.d.ts +6 -0
  354. package/dist/locales/tr-TR/multiTab.js +10 -0
  355. package/dist/locales/tr-TR/settingDrawer.d.ts +6 -0
  356. package/dist/locales/tr-TR/settingDrawer.js +50 -0
  357. package/dist/locales/tr-TR.d.ts +56 -0
  358. package/dist/locales/tr-TR.js +11 -0
  359. package/dist/locales/uk-UA/help.d.ts +6 -0
  360. package/dist/locales/uk-UA/help.js +4 -0
  361. package/dist/locales/uk-UA/multiTab.d.ts +6 -0
  362. package/dist/locales/uk-UA/multiTab.js +10 -0
  363. package/dist/locales/uk-UA/settingDrawer.d.ts +6 -0
  364. package/dist/locales/uk-UA/settingDrawer.js +50 -0
  365. package/dist/locales/uk-UA.d.ts +56 -0
  366. package/dist/locales/uk-UA.js +11 -0
  367. package/dist/locales/uz-UZ/help.d.ts +6 -0
  368. package/dist/locales/uz-UZ/help.js +4 -0
  369. package/dist/locales/uz-UZ/multiTab.d.ts +6 -0
  370. package/dist/locales/uz-UZ/multiTab.js +10 -0
  371. package/dist/locales/uz-UZ/settingDrawer.d.ts +6 -0
  372. package/dist/locales/uz-UZ/settingDrawer.js +50 -0
  373. package/dist/locales/uz-UZ.d.ts +56 -0
  374. package/dist/locales/uz-UZ.js +11 -0
  375. package/dist/locales/vi-VN/help.d.ts +6 -0
  376. package/dist/locales/vi-VN/help.js +4 -0
  377. package/dist/locales/vi-VN/multiTab.d.ts +6 -0
  378. package/dist/locales/vi-VN/multiTab.js +10 -0
  379. package/dist/locales/vi-VN/settingDrawer.d.ts +6 -0
  380. package/dist/locales/vi-VN/settingDrawer.js +50 -0
  381. package/dist/locales/vi-VN.d.ts +56 -0
  382. package/dist/locales/vi-VN.js +11 -0
  383. package/dist/locales/zh-CN/help.d.ts +8 -0
  384. package/dist/locales/zh-CN/help.js +4 -0
  385. package/dist/locales/zh-CN/multiTab.d.ts +19 -0
  386. package/dist/locales/zh-CN/multiTab.js +17 -0
  387. package/dist/locales/zh-CN/settingDrawer.d.ts +52 -0
  388. package/dist/locales/zh-CN/settingDrawer.js +50 -0
  389. package/dist/locales/zh-CN.d.ts +56 -0
  390. package/dist/locales/zh-CN.js +11 -0
  391. package/dist/locales/zh-HK/help.d.ts +6 -0
  392. package/dist/locales/zh-HK/help.js +4 -0
  393. package/dist/locales/zh-HK/multiTab.d.ts +6 -0
  394. package/dist/locales/zh-HK/multiTab.js +10 -0
  395. package/dist/locales/zh-HK/settingDrawer.d.ts +6 -0
  396. package/dist/locales/zh-HK/settingDrawer.js +50 -0
  397. package/dist/locales/zh-HK.d.ts +56 -0
  398. package/dist/locales/zh-HK.js +11 -0
  399. package/dist/locales/zh-TW/help.d.ts +6 -0
  400. package/dist/locales/zh-TW/help.js +4 -0
  401. package/dist/locales/zh-TW/multiTab.d.ts +6 -0
  402. package/dist/locales/zh-TW/multiTab.js +10 -0
  403. package/dist/locales/zh-TW/settingDrawer.d.ts +6 -0
  404. package/dist/locales/zh-TW/settingDrawer.js +50 -0
  405. package/dist/locales/zh-TW.d.ts +56 -0
  406. package/dist/locales/zh-TW.js +11 -0
  407. package/dist/pro-layout.esm.js +11423 -0
  408. package/dist/style/index.d.ts +30 -0
  409. package/dist/style/index.js +120 -0
  410. package/dist/typing.d.ts +63 -0
  411. package/dist/typing.js +1 -0
  412. package/dist/utils/getBreadcrumbProps.d.ts +34 -0
  413. package/dist/utils/getBreadcrumbProps.js +91 -0
  414. package/dist/utils/getMenuData.d.ts +13 -0
  415. package/dist/utils/getMenuData.js +19 -0
  416. package/dist/utils/index.d.ts +30 -0
  417. package/dist/utils/index.js +55 -0
  418. package/dist/utils/siderWidth.d.ts +29 -0
  419. package/dist/utils/siderWidth.js +20 -0
  420. package/dist/utils/useCurrentMenuLayoutProps.d.ts +10 -0
  421. package/dist/utils/useCurrentMenuLayoutProps.js +28 -0
  422. package/dist/utils/useProLayoutLocation.d.ts +8 -0
  423. package/dist/utils/useProLayoutLocation.js +14 -0
  424. package/dist/utils/useProLayoutRender.d.ts +25 -0
  425. package/dist/utils/useProLayoutRender.js +42 -0
  426. package/package.json +61 -3
@@ -0,0 +1,13 @@
1
+ import * as _$vue from "vue";
2
+ import { ComputedRef } from "vue";
3
+ import { GenerateStyle, ProAliasCssVarToken } from "@antdv-vue/pro-provider";
4
+
5
+ //#region src/components/PageContainer/style/stylish.d.ts
6
+ interface stylishToken extends ProAliasCssVarToken {}
7
+ declare function useStylish(prefixCls: ComputedRef<string>, {
8
+ stylish
9
+ }: {
10
+ stylish?: ComputedRef<GenerateStyle<stylishToken>>;
11
+ }): readonly [_$vue.Ref<string, string>, ComputedRef<string | undefined>];
12
+ //#endregion
13
+ export { stylishToken, useStylish };
@@ -0,0 +1,12 @@
1
+ import { useStyle } from "@antdv-vue/pro-provider";
2
+ import { mergeToken } from "@antdv-next/cssinjs";
3
+ //#region src/components/PageContainer/style/stylish.ts
4
+ function useStylish(prefixCls, { stylish }) {
5
+ return useStyle("ProLayoutPageContainerStylish", (token) => {
6
+ const stylishToken = mergeToken(token, {});
7
+ if (!stylish?.value) return [];
8
+ return [{ [`div${stylishToken.componentCls}`]: stylish.value?.(stylishToken) }];
9
+ })(prefixCls);
10
+ }
11
+ //#endregion
12
+ export { useStylish };
@@ -0,0 +1,37 @@
1
+ import { BreadcrumbRender } from "../../RenderTypings.js";
2
+ import * as _$vue from "vue";
3
+ import { VNode } from "vue";
4
+ import { AvatarProps, BreadcrumbProps, TagProps } from "antdv-next";
5
+ import { VueNode } from "antdv-next/dist/_util/type";
6
+ import { CustomSlotsType } from "@v-c/util/dist/type";
7
+ import { MouseEventHandler } from "@v-c/util/dist/EventInterface";
8
+
9
+ //#region src/components/PageHeader/index.d.ts
10
+ interface PageHeaderProps {
11
+ prefixCls?: string;
12
+ ghost?: boolean;
13
+ breadcrumbRender?: BreadcrumbRender;
14
+ avatar?: AvatarProps & {
15
+ class?: string;
16
+ };
17
+ backIcon?: VueNode;
18
+ breadcrumb?: BreadcrumbProps;
19
+ extra?: VueNode | VNode | VNode[];
20
+ footer?: VueNode;
21
+ subTitle?: VueNode;
22
+ tags?: VueNode | VNode<TagProps>;
23
+ title?: VueNode;
24
+ onBack?: MouseEventHandler;
25
+ }
26
+ declare const PageHeader: _$vue.DefineSetupFnComponent<PageHeaderProps, {}, CustomSlotsType<{
27
+ extra?: () => VueNode;
28
+ footer?: () => VueNode;
29
+ subTitle?: () => VueNode;
30
+ title?: () => VueNode;
31
+ tags?: () => VueNode;
32
+ backIcon?: () => VueNode;
33
+ default?: () => VueNode;
34
+ breadcrumbRender?: BreadcrumbRender;
35
+ }>, PageHeaderProps & {}, _$vue.PublicProps>;
36
+ //#endregion
37
+ export { PageHeaderProps, PageHeader as default };
@@ -0,0 +1,221 @@
1
+ import style_default from "./style/index.js";
2
+ import { computed, createVNode, defineComponent, isVNode, mergeProps, onBeforeUnmount, shallowRef } from "vue";
3
+ import { classNames } from "@v-c/util";
4
+ import { Avatar, Breadcrumb, Space } from "antdv-next";
5
+ import { useConfig } from "antdv-next/config-provider/context";
6
+ import { ArrowLeftOutlined, ArrowRightOutlined } from "@antdv-next/icons";
7
+ import ResizeObserver from "@v-c/resize-observer";
8
+ //#region src/components/PageHeader/index.tsx
9
+ function _isSlot(s) {
10
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
11
+ }
12
+ function useDestroyed() {
13
+ const destroyed = shallowRef(false);
14
+ onBeforeUnmount(() => {
15
+ destroyed.value = true;
16
+ });
17
+ return destroyed;
18
+ }
19
+ function renderBreadcrumb(breadcrumb, prefixCls) {
20
+ if (!breadcrumb.items?.length) return null;
21
+ return createVNode(Breadcrumb, mergeProps(breadcrumb, { "class": classNames(`${prefixCls}-breadcrumb`, breadcrumb.class) }), null);
22
+ }
23
+ function getBackIcon(props, direction = "ltr") {
24
+ if (props.backIcon !== void 0) return props.backIcon;
25
+ return direction === "rtl" ? createVNode(ArrowRightOutlined, null, null) : createVNode(ArrowLeftOutlined, null, null);
26
+ }
27
+ function renderBack(prefixCls, hashId, cssVarCls, backIcon, onBack) {
28
+ if (!backIcon || !onBack) return null;
29
+ return createVNode("div", { "class": classNames(`${prefixCls}-back`, hashId, cssVarCls) }, [createVNode("div", {
30
+ "role": "button",
31
+ "onClick": (e) => onBack?.(e),
32
+ "class": classNames(`${prefixCls}-back-button`, hashId, cssVarCls),
33
+ "aria-label": "back"
34
+ }, [backIcon])]);
35
+ }
36
+ function renderTitle(prefixCls, props, direction = "ltr", hashId, cssVarCls) {
37
+ const { title, avatar, subTitle, tags, extra, onBack } = props;
38
+ const headingPrefixCls = `${prefixCls}-heading`;
39
+ const hasHeading = title || subTitle || tags || extra;
40
+ if (!hasHeading) return null;
41
+ const backIconDom = renderBack(prefixCls, hashId, cssVarCls, getBackIcon(props, direction), onBack);
42
+ const hasTitle = backIconDom || avatar || hasHeading;
43
+ return createVNode("div", { "class": classNames(headingPrefixCls, hashId, cssVarCls) }, [hasTitle && createVNode("div", { "class": classNames(`${headingPrefixCls}-left`, hashId, cssVarCls) }, [
44
+ backIconDom,
45
+ avatar && createVNode(Avatar, mergeProps(avatar, { "class": classNames(`${headingPrefixCls}-avatar`, hashId, cssVarCls, avatar.class) }), null),
46
+ title && createVNode("span", {
47
+ "class": classNames(`${headingPrefixCls}-title`, hashId, cssVarCls),
48
+ "title": typeof title === "string" ? title : void 0
49
+ }, [title]),
50
+ subTitle && createVNode("span", {
51
+ "class": classNames(`${headingPrefixCls}-sub-title`, hashId, cssVarCls),
52
+ "title": typeof subTitle === "string" ? subTitle : void 0
53
+ }, [subTitle]),
54
+ tags && createVNode("span", { "class": classNames(`${headingPrefixCls}-tags `, hashId, cssVarCls) }, [tags])
55
+ ]), extra && createVNode("span", { "class": classNames(`${headingPrefixCls}-extra`, hashId, cssVarCls) }, [createVNode(Space, null, _isSlot(extra) ? extra : { default: () => [extra] })])]);
56
+ }
57
+ function renderChildren(prefixCls, children, hashId, cssVarCls) {
58
+ return createVNode("div", { "class": classNames(`${prefixCls}-content`, hashId, cssVarCls) }, [children]);
59
+ }
60
+ function renderFooter(prefixCls, footer, hashId, cssVarCls) {
61
+ if (footer) return createVNode("div", { "class": classNames(`${prefixCls}-footer`, hashId, cssVarCls) }, [footer]);
62
+ return null;
63
+ }
64
+ const PageHeader = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
65
+ const config = useConfig();
66
+ const prefixCls = computed(() => props.prefixCls || config.value.getPrefixCls("pro"));
67
+ const baseClassName = computed(() => `${prefixCls.value}-page-header`);
68
+ const [hashId, cssVarCls] = style_default(baseClassName);
69
+ const compact = shallowRef(false);
70
+ const isDestroyed = useDestroyed();
71
+ const onResize = ({ width }) => {
72
+ if (!isDestroyed.value) compact.value = width < 768;
73
+ };
74
+ const getDefaultBreadcrumbDom = () => {
75
+ const { breadcrumb } = props;
76
+ if (breadcrumb?.items) return renderBreadcrumb(breadcrumb, baseClassName.value);
77
+ return null;
78
+ };
79
+ return () => {
80
+ const { breadcrumb, breadcrumbRender = slots.breadcrumbRender, ghost, footer } = props;
81
+ const isBreadcrumbComponent = breadcrumb && "props" in breadcrumb;
82
+ const defaultBreadcrumbDom = getDefaultBreadcrumbDom();
83
+ const breadcrumbRenderDomFromProps = breadcrumbRender?.({
84
+ ...props,
85
+ prefixCls: baseClassName.value
86
+ }, defaultBreadcrumbDom) ?? defaultBreadcrumbDom;
87
+ const breadcrumbDom = isBreadcrumbComponent ? breadcrumb : breadcrumbRenderDomFromProps;
88
+ const className = classNames(baseClassName.value, {
89
+ [`${baseClassName.value}-has-breadcrumb`]: !!breadcrumbDom,
90
+ [`${baseClassName.value}-has-footer`]: !!footer,
91
+ [`${baseClassName.value}-ghost`]: ghost,
92
+ [`${baseClassName.value}-rtl`]: config.value.direction === "rtl",
93
+ [`${baseClassName.value}-compact`]: compact.value
94
+ }, attrs.class, hashId?.value, cssVarCls?.value);
95
+ const title = renderTitle(baseClassName.value, {
96
+ ...props,
97
+ title: slots.title?.() || props.title,
98
+ subTitle: slots.subTitle?.() || props.subTitle,
99
+ extra: slots.extra?.() || props.extra,
100
+ tags: slots.tags?.() || props.tags,
101
+ backIcon: slots.backIcon?.() || props.backIcon
102
+ }, config.value.direction, hashId?.value, cssVarCls?.value);
103
+ const childDom = slots.default?.() && renderChildren(baseClassName.value, slots.default?.(), hashId?.value, cssVarCls?.value);
104
+ const footerDom = renderFooter(baseClassName.value, slots.footer?.() || footer, hashId?.value, cssVarCls?.value);
105
+ if (!breadcrumbDom && !title && !footerDom && !childDom) return createVNode("div", { "class": classNames(`${baseClassName.value}-no-children`, hashId.value, cssVarCls.value) }, null);
106
+ return createVNode(ResizeObserver, { "onResize": onResize }, { default: () => [createVNode("div", {
107
+ "class": className,
108
+ "style": attrs.style
109
+ }, [
110
+ breadcrumbDom,
111
+ title,
112
+ childDom,
113
+ footerDom
114
+ ])] });
115
+ };
116
+ }, {
117
+ props: {
118
+ prefixCls: {
119
+ type: String,
120
+ required: false
121
+ },
122
+ ghost: {
123
+ type: Boolean,
124
+ required: false,
125
+ default: void 0
126
+ },
127
+ breadcrumbRender: {
128
+ type: Function,
129
+ required: false
130
+ },
131
+ avatar: {
132
+ type: Object,
133
+ required: false
134
+ },
135
+ backIcon: {
136
+ type: [
137
+ Function,
138
+ String,
139
+ Number,
140
+ null,
141
+ Object,
142
+ Boolean
143
+ ],
144
+ required: false,
145
+ default: void 0
146
+ },
147
+ breadcrumb: {
148
+ type: Object,
149
+ required: false
150
+ },
151
+ extra: {
152
+ type: [
153
+ Function,
154
+ String,
155
+ Number,
156
+ null,
157
+ Object,
158
+ Boolean,
159
+ Array
160
+ ],
161
+ required: false,
162
+ default: void 0
163
+ },
164
+ footer: {
165
+ type: [
166
+ Function,
167
+ String,
168
+ Number,
169
+ null,
170
+ Object,
171
+ Boolean
172
+ ],
173
+ required: false,
174
+ default: void 0
175
+ },
176
+ subTitle: {
177
+ type: [
178
+ Function,
179
+ String,
180
+ Number,
181
+ null,
182
+ Object,
183
+ Boolean
184
+ ],
185
+ required: false,
186
+ default: void 0
187
+ },
188
+ tags: {
189
+ type: [
190
+ Function,
191
+ String,
192
+ Number,
193
+ null,
194
+ Object,
195
+ Boolean
196
+ ],
197
+ required: false,
198
+ default: void 0
199
+ },
200
+ title: {
201
+ type: [
202
+ Function,
203
+ String,
204
+ Number,
205
+ null,
206
+ Object,
207
+ Boolean
208
+ ],
209
+ required: false,
210
+ default: void 0
211
+ },
212
+ onBack: {
213
+ type: Function,
214
+ required: false
215
+ }
216
+ },
217
+ name: "PageHeader",
218
+ inheritAttrs: false
219
+ });
220
+ //#endregion
221
+ export { PageHeader as default };
@@ -0,0 +1,17 @@
1
+ import * as _$vue from "vue";
2
+ import { ProAliasCssVarToken } from "@antdv-vue/pro-provider";
3
+
4
+ //#region src/components/PageHeader/style/index.d.ts
5
+ interface PageHeaderToken extends ProAliasCssVarToken {
6
+ pageHeaderPadding: number;
7
+ pageHeaderPaddingVertical: number;
8
+ pageHeaderBgGhost: string;
9
+ pageHeaderPaddingBreadCrumb: number;
10
+ pageHeaderColorBack: string;
11
+ pageHeaderFontSizeHeaderTitle: number | string;
12
+ pageHeaderFontSizeHeaderSubTitle: number;
13
+ pageHeaderPaddingContentPadding: number;
14
+ }
15
+ declare const _default: (prefixCls: _$vue.Ref<string>, rootCls?: _$vue.Ref<string | undefined>) => readonly [_$vue.Ref<string, string>, _$vue.ComputedRef<string | undefined>];
16
+ //#endregion
17
+ export { PageHeaderToken, _default as default };
@@ -0,0 +1,132 @@
1
+ import { operationUnit, resetComponent, useStyle } from "@antdv-vue/pro-provider";
2
+ import { mergeToken } from "@antdv-next/cssinjs";
3
+ //#region src/components/PageHeader/style/index.ts
4
+ function textOverflowEllipsis() {
5
+ return {
6
+ overflow: "hidden",
7
+ whiteSpace: "nowrap",
8
+ textOverflow: "ellipsis"
9
+ };
10
+ }
11
+ const genPageHeaderStyle = (token) => {
12
+ return { [token.componentCls]: {
13
+ ...resetComponent?.(token),
14
+ position: "relative",
15
+ backgroundColor: token.colorBgContainer,
16
+ paddingBlock: token.calc(token.pageHeaderPaddingVertical).add(2).equal(),
17
+ paddingInline: token.pageHeaderPadding,
18
+ "&&-ghost": { backgroundColor: token.pageHeaderBgGhost },
19
+ "&-no-children": { height: token.proLayoutPageContainerPaddingBlockPageContainerContent },
20
+ "&&-has-breadcrumb": { paddingBlockStart: token.pageHeaderPaddingBreadCrumb },
21
+ "&&-has-footer": { paddingBlockEnd: 0 },
22
+ "& &-back": {
23
+ marginInlineEnd: token.margin,
24
+ fontSize: 16,
25
+ lineHeight: 1,
26
+ "&-button": {
27
+ fontSize: 16,
28
+ ...operationUnit?.(token),
29
+ color: token.pageHeaderColorBack,
30
+ cursor: "pointer"
31
+ },
32
+ [`${token.componentCls}-rlt &`]: {
33
+ float: "right",
34
+ marginInlineEnd: 0,
35
+ marginInlineStart: 0
36
+ }
37
+ },
38
+ [`& ant-divider-vertical`]: {
39
+ height: 14,
40
+ marginBlock: 0,
41
+ marginInline: token.marginSM,
42
+ verticalAlign: "middle"
43
+ },
44
+ [`& &-breadcrumb + &-heading`]: { marginBlockStart: token.marginXS },
45
+ "& &-heading": {
46
+ display: "flex",
47
+ justifyContent: "space-between",
48
+ "&-left": {
49
+ display: "flex",
50
+ alignItems: "center",
51
+ marginBlock: token.calc(token.marginXS).div(2).equal(),
52
+ marginInlineEnd: 0,
53
+ marginInlineStart: 0,
54
+ overflow: "hidden"
55
+ },
56
+ "&-title": {
57
+ marginInlineEnd: token.marginSM,
58
+ marginBlockEnd: 0,
59
+ color: token.colorTextHeading,
60
+ fontWeight: 600,
61
+ fontSize: token.pageHeaderFontSizeHeaderTitle,
62
+ lineHeight: token.controlHeight,
63
+ ...textOverflowEllipsis(),
64
+ [`${token.componentCls}-rlt &`]: {
65
+ marginInlineEnd: 0,
66
+ marginInlineStart: token.marginSM
67
+ }
68
+ },
69
+ "&-avatar": {
70
+ marginInlineEnd: token.marginSM,
71
+ [`${token.componentCls}-rlt &`]: {
72
+ float: "right",
73
+ marginInlineEnd: 0,
74
+ marginInlineStart: token.marginSM
75
+ }
76
+ },
77
+ "&-tags": { [`${token.componentCls}-rlt &`]: { float: "right" } },
78
+ "&-sub-title": {
79
+ marginInlineEnd: token.marginSM,
80
+ color: token.colorTextSecondary,
81
+ fontSize: token.pageHeaderFontSizeHeaderSubTitle,
82
+ lineHeight: token.lineHeight,
83
+ ...textOverflowEllipsis(),
84
+ [`${token.componentCls}-rlt &`]: {
85
+ float: "right",
86
+ marginInlineEnd: 0,
87
+ marginInlineStart: 12
88
+ }
89
+ },
90
+ "&-extra": {
91
+ marginBlock: token.marginXS / 2,
92
+ marginInlineEnd: 0,
93
+ marginInlineStart: 0,
94
+ whiteSpace: "nowrap",
95
+ "> *": {
96
+ "white-space": "unset",
97
+ [`${token.componentCls}-rlt &`]: {
98
+ marginInlineEnd: token.marginSM,
99
+ marginInlineStart: 0
100
+ }
101
+ },
102
+ [`${token.componentCls}-rlt &`]: { float: "left" },
103
+ "*:first-child": { [`${token.componentCls}-rlt &`]: { marginInlineEnd: 0 } }
104
+ }
105
+ },
106
+ "&-content": { paddingBlockStart: token.pageHeaderPaddingContentPadding },
107
+ "&-footer": {
108
+ marginBlockStart: token.margin,
109
+ [`${token.antCls}-tabs-nav:before`]: { borderBlockEnd: 0 }
110
+ },
111
+ "&-compact &-heading": { flexWrap: "wrap" },
112
+ "&-wide": {
113
+ maxWidth: 1152,
114
+ margin: "0 auto"
115
+ },
116
+ "&-rtl": { direction: "rtl" }
117
+ } };
118
+ };
119
+ var style_default = useStyle("ProPageHeader", (token) => {
120
+ return [genPageHeaderStyle(mergeToken(token, {
121
+ pageHeaderBgGhost: "transparent",
122
+ pageHeaderPadding: token.paddingLG,
123
+ pageHeaderPaddingVertical: token.paddingMD,
124
+ pageHeaderPaddingBreadCrumb: token.paddingSM,
125
+ pageHeaderColorBack: token.colorTextHeading,
126
+ pageHeaderFontSizeHeaderTitle: token.fontSizeHeading4,
127
+ pageHeaderFontSizeHeaderSubTitle: 14,
128
+ pageHeaderPaddingContentPadding: token.paddingSM
129
+ }))];
130
+ });
131
+ //#endregion
132
+ export { style_default as default };
@@ -0,0 +1,9 @@
1
+ import { FunctionalComponent } from "vue";
2
+ import { SpinProps } from "antdv-next";
3
+
4
+ //#region src/components/PageLoading/index.d.ts
5
+ declare const PageLoading: FunctionalComponent<SpinProps & {
6
+ [key: string]: any;
7
+ }>;
8
+ //#endregion
9
+ export { PageLoading as default };
@@ -0,0 +1,15 @@
1
+ import { createVNode, mergeProps } from "vue";
2
+ import { Spin } from "antdv-next";
3
+ //#region src/components/PageLoading/index.tsx
4
+ const PageLoading = ({ isLoading, pastDelay, timedOut, error, retry, ...reset }) => createVNode("div", { "style": {
5
+ display: "flex",
6
+ alignItems: "center",
7
+ justifyContent: "center",
8
+ height: "100%",
9
+ width: "100%",
10
+ textAlign: "center"
11
+ } }, [createVNode(Spin, mergeProps({ "size": "large" }, reset), null)]);
12
+ PageLoading.displayName = "PageLoading";
13
+ PageLoading.inheritAttrs = false;
14
+ //#endregion
15
+ export { PageLoading as default };
@@ -0,0 +1,18 @@
1
+ import { FunctionalComponent, VNode } from "vue";
2
+
3
+ //#region src/components/SettingDrawer/BlockCheckbox.d.ts
4
+ declare const BlockCheckbox: FunctionalComponent<{
5
+ list?: {
6
+ title: string;
7
+ key: string;
8
+ icon?: VNode;
9
+ }[];
10
+ prefixCls?: string;
11
+ value?: string;
12
+ hashId?: string;
13
+ cssVarCls?: string;
14
+ configType?: string;
15
+ onChange?: (value: string) => void;
16
+ }>;
17
+ //#endregion
18
+ export { BlockCheckbox as default };
@@ -0,0 +1,25 @@
1
+ import { createVNode } from "vue";
2
+ import { classNames } from "@v-c/util";
3
+ import { Tooltip } from "antdv-next";
4
+ import { CheckOutlined } from "@antdv-next/icons";
5
+ //#region src/components/SettingDrawer/BlockCheckbox.tsx
6
+ const BlockCheckbox = (props) => {
7
+ const baseClassName = `${props.prefixCls}-block-checkbox`;
8
+ return createVNode("div", { "class": classNames(baseClassName, props.hashId, props.cssVarCls) }, [(props.list || []).map((item) => createVNode(Tooltip, {
9
+ "title": item.title,
10
+ "key": item.key
11
+ }, { default: () => [createVNode("div", {
12
+ "class": classNames(props.hashId, props.cssVarCls, `${baseClassName}-item`, `${baseClassName}-item-${item.key}`, `${baseClassName}-${props.configType}-item`),
13
+ "onClick": () => props.onChange?.(item.key)
14
+ }, [
15
+ item.key === "left" && createVNode("div", { "class": classNames(`${baseClassName}-item-left-inner`, props.hashId, props.cssVarCls) }, null),
16
+ createVNode(CheckOutlined, {
17
+ "class": classNames(`${baseClassName}-selectIcon`, props.hashId, props.cssVarCls),
18
+ "style": { display: props.value === item.key ? "block" : "none" }
19
+ }, null),
20
+ item?.icon ? createVNode("div", { "class": classNames(`${baseClassName}-icon`, props.hashId, props.cssVarCls) }, [item.icon]) : null
21
+ ])] }))]);
22
+ };
23
+ BlockCheckbox.inheritAttrs = false;
24
+ //#endregion
25
+ export { BlockCheckbox as default };
@@ -0,0 +1,28 @@
1
+ import { PureSettings } from "../../defaultSettings.js";
2
+ import { MessageDescriptor } from "../../typing.js";
3
+ import { FunctionalComponent } from "vue";
4
+ import { VueNode } from "@v-c/util";
5
+ import * as _$vue_jsx_runtime0 from "vue/jsx-runtime";
6
+
7
+ //#region src/components/SettingDrawer/LayoutChange.d.ts
8
+ interface SettingItemProps {
9
+ title?: VueNode;
10
+ action: VueNode;
11
+ disabled?: boolean;
12
+ disabledReason?: VueNode;
13
+ }
14
+ declare function getFormatMessage(): ((data: {
15
+ id: string;
16
+ defaultMessage?: string;
17
+ }) => string | undefined);
18
+ declare function renderLayoutSettingItem(item: SettingItemProps): _$vue_jsx_runtime0.JSX.Element;
19
+ declare const LayoutSetting: FunctionalComponent<{
20
+ settings: Partial<PureSettings>;
21
+ changeSetting: (key: string, value: any) => void;
22
+ hashId: string;
23
+ cssVarCls: string;
24
+ prefixCls: string;
25
+ formatMessage: (data: MessageDescriptor) => string | undefined;
26
+ }>;
27
+ //#endregion
28
+ export { LayoutSetting, SettingItemProps, getFormatMessage, renderLayoutSettingItem };
@@ -0,0 +1,127 @@
1
+ import defaultSettings from "../../defaultSettings.js";
2
+ import { gLocaleObject } from "../../locales/index.js";
3
+ import { cloneVNode, createVNode, isVNode } from "vue";
4
+ import { classNames } from "@v-c/util";
5
+ import { Flex, Listy, Select, Switch, Tooltip } from "antdv-next";
6
+ //#region src/components/SettingDrawer/LayoutChange.tsx
7
+ function getFormatMessage() {
8
+ return ({ id, defaultMessage }) => {
9
+ return gLocaleObject()[id] || defaultMessage;
10
+ };
11
+ }
12
+ function renderLayoutSettingItem(item) {
13
+ let action = "";
14
+ if (isVNode(item.action)) action = cloneVNode(item.action, { disabled: item.disabled });
15
+ return createVNode(Tooltip, {
16
+ "title": item.disabled ? item.disabledReason : void 0,
17
+ "placement": "left"
18
+ }, { default: () => [createVNode(Flex, {
19
+ "gap": "middle",
20
+ "align": "center",
21
+ "justify": "space-between"
22
+ }, { default: () => [createVNode("span", { "style": { opacity: item.disabled ? .5 : 1 } }, [item.title]), action] })] });
23
+ }
24
+ const LayoutSetting = ({ settings = {}, prefixCls, formatMessage, changeSetting, cssVarCls, hashId }) => {
25
+ const { compact, contentWidth, splitMenus, fixedHeader, layout, fixedSiderbar } = settings || defaultSettings;
26
+ return createVNode(Listy, {
27
+ "class": classNames(`${prefixCls}-list`, hashId, cssVarCls),
28
+ "rowKey": (item) => item.title,
29
+ "styles": { item: {
30
+ borderBottom: 0,
31
+ paddingInlineStart: 0,
32
+ paddingInlineEnd: 0
33
+ } },
34
+ "itemRender": (item) => renderLayoutSettingItem(item),
35
+ "items": [
36
+ {
37
+ title: formatMessage({
38
+ id: "app.setting.content-width",
39
+ defaultMessage: "内容区域宽度"
40
+ }),
41
+ action: createVNode(Select, {
42
+ "value": contentWidth || "Fixed",
43
+ "size": "small",
44
+ "variant": "filled",
45
+ "class": classNames(`content-width`, hashId, cssVarCls),
46
+ "onSelect": (value) => changeSetting("contentWidth", value),
47
+ "style": { width: "80px" },
48
+ "options": [layout !== "top" ? void 0 : {
49
+ value: "Fixed",
50
+ label: formatMessage({
51
+ id: "app.setting.content-width.fixed",
52
+ defaultMessage: "固定"
53
+ })
54
+ }, {
55
+ value: "Fluid",
56
+ label: formatMessage({
57
+ id: "app.setting.content-width.fluid",
58
+ defaultMessage: "流式"
59
+ })
60
+ }].filter(Boolean)
61
+ }, null)
62
+ },
63
+ {
64
+ title: formatMessage({
65
+ id: "app.setting.theme.mode.compact",
66
+ defaultMessage: "紧凑模式"
67
+ }),
68
+ action: createVNode(Switch, {
69
+ "size": "small",
70
+ "class": "compact-mode",
71
+ "checked": !!compact,
72
+ "onChange": (checked) => changeSetting("compact", checked)
73
+ }, null)
74
+ },
75
+ {
76
+ title: formatMessage({
77
+ id: "app.setting.fixedheader",
78
+ defaultMessage: "固定头部"
79
+ }),
80
+ disabled: layout === "mix",
81
+ disabledReason: formatMessage({
82
+ id: "app.setting.fixedheader.hint",
83
+ defaultMessage: "混合模式必须开启固定 Header"
84
+ }),
85
+ action: createVNode(Switch, {
86
+ "size": "small",
87
+ "class": "fixed-header",
88
+ "checked": !!fixedHeader,
89
+ "onChange": (checked) => changeSetting("fixedHeader", checked)
90
+ }, null)
91
+ },
92
+ {
93
+ title: formatMessage({
94
+ id: "app.setting.fixedsidebar",
95
+ defaultMessage: "固定侧边菜单"
96
+ }),
97
+ disabled: layout === "top",
98
+ disabledReason: formatMessage({
99
+ id: "app.setting.fixedsidebar.hint",
100
+ defaultMessage: "侧边菜单布局时可配置"
101
+ }),
102
+ action: createVNode(Switch, {
103
+ "size": "small",
104
+ "class": "fix-sidebar",
105
+ "checked": !!fixedSiderbar,
106
+ "onChange": (checked) => changeSetting("fixedSiderbar", checked)
107
+ }, null)
108
+ },
109
+ {
110
+ title: formatMessage({ id: "app.setting.splitMenus" }),
111
+ disabled: layout !== "mix",
112
+ disabledReason: formatMessage({
113
+ id: "app.setting.layout.mix.hint",
114
+ defaultMessage: "将菜单分割成Header和Side"
115
+ }),
116
+ action: createVNode(Switch, {
117
+ "size": "small",
118
+ "checked": !!splitMenus,
119
+ "class": "split-menus",
120
+ "onChange": (checked) => changeSetting("splitMenus", checked)
121
+ }, null)
122
+ }
123
+ ]
124
+ }, null);
125
+ };
126
+ //#endregion
127
+ export { LayoutSetting, getFormatMessage, renderLayoutSettingItem };
@@ -0,0 +1,15 @@
1
+ import { RenderSetting } from "../../defaultSettings.js";
2
+ import { MessageDescriptor } from "../../typing.js";
3
+ import { FunctionalComponent } from "vue";
4
+
5
+ //#region src/components/SettingDrawer/RegionalChange.d.ts
6
+ declare const RegionalSetting: FunctionalComponent<{
7
+ settings: Partial<RenderSetting>;
8
+ changeSetting: (key: string, value: any, hideLoading?: boolean) => void;
9
+ hashId: string;
10
+ cssVarCls: string;
11
+ prefixCls: string;
12
+ formatMessage: (data: MessageDescriptor) => string | undefined;
13
+ }>;
14
+ //#endregion
15
+ export { RegionalSetting as default };