base6-ui 1.1.5 → 1.1.7

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 (392) hide show
  1. package/dist/components/BaseLayout/ASide/index.vue.d.ts +4 -1
  2. package/dist/components/BaseLayout/ASide/type.d.ts +5 -2
  3. package/dist/components/BaseLayout/AsideMenu/index.vue.d.ts +4 -0
  4. package/dist/components/BaseLayout/Default/constants.d.ts +5 -0
  5. package/dist/components/BaseLayout/Default/hooks/useBaseLayoutContext.d.ts +3 -0
  6. package/dist/components/BaseLayout/Default/hooks/useLogo.d.ts +5 -0
  7. package/dist/components/BaseLayout/Default/index.vue.d.ts +70 -0
  8. package/dist/components/BaseLayout/Default/layoutFooter/index.vue.d.ts +2 -0
  9. package/dist/components/BaseLayout/Default/layoutHeader/action.vue.d.ts +2 -0
  10. package/dist/components/BaseLayout/Default/layoutHeader/index.vue.d.ts +2 -0
  11. package/dist/components/BaseLayout/Default/layoutHeader/title.vue.d.ts +2 -0
  12. package/dist/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue.d.ts +32 -0
  13. package/dist/components/BaseLayout/Default/layoutMenu/index.vue.d.ts +2 -0
  14. package/dist/components/BaseLayout/Default/layoutMenu/modules/horizontalMenu.vue.d.ts +2 -0
  15. package/dist/components/BaseLayout/Default/layoutMenu/modules/horizontalMixMenu.vue.d.ts +2 -0
  16. package/dist/components/BaseLayout/Default/layoutMenu/modules/horizontalMixReversedMenu.vue.d.ts +2 -0
  17. package/dist/components/BaseLayout/Default/layoutMenu/modules/verticalMenu.vue.d.ts +2 -0
  18. package/dist/components/BaseLayout/Default/layoutMenu/modules/verticalMixMenu.vue.d.ts +2 -0
  19. package/dist/components/BaseLayout/Default/layoutSlider/index.vue.d.ts +2 -0
  20. package/dist/components/BaseLayout/Default/layoutTab/index.vue.d.ts +2 -0
  21. package/dist/components/BaseLayout/Default/options.d.ts +3 -0
  22. package/dist/components/BaseLayout/Default/type.d.ts +42 -0
  23. package/dist/components/BaseLayout/Header/index.vue.d.ts +19 -0
  24. package/dist/components/BaseLayout/components/WrapContent.vue.d.ts +22 -0
  25. package/dist/components/BaseLayout/components/WrapFooter.vue.d.ts +24 -0
  26. package/dist/components/BaseLayout/components/WrapHeader.vue.d.ts +24 -0
  27. package/dist/components/BaseLayout/components/WrapSlider.vue.d.ts +24 -0
  28. package/dist/components/BaseLayout/components/WrapTab.vue.d.ts +24 -0
  29. package/dist/components/BaseLayout/constants.d.ts +1 -0
  30. package/dist/components/BaseLayout/index.d.ts +6 -0
  31. package/dist/components/BaseLayout/index.vue.d.ts +49 -0
  32. package/dist/components/BaseLayout/layoutCssVar.d.ts +4 -0
  33. package/dist/components/BaseLayout/options.d.ts +2 -0
  34. package/dist/components/BaseLayout/type.d.ts +52 -0
  35. package/dist/components/BaseProductIntroduction/constants.d.ts +2 -0
  36. package/dist/components/BaseProductIntroduction/cssVar.d.ts +15 -0
  37. package/dist/components/BaseProductIntroduction/index.d.ts +1 -0
  38. package/dist/components/BaseProductIntroduction/index.vue.d.ts +6 -0
  39. package/dist/components/BaseProductIntroduction/type.d.ts +5 -0
  40. package/dist/components/index.d.ts +1 -0
  41. package/dist/config/themes/common/light.d.ts +2 -0
  42. package/dist/config/themes/components/divider/light.d.ts +2 -0
  43. package/dist/config/themes/components/layout/dark.d.ts +1 -0
  44. package/dist/config/themes/components/layout/light.d.ts +1 -0
  45. package/dist/config/themes/token/light.d.ts +2 -0
  46. package/dist/globalMethods/index.d.ts +2 -0
  47. package/dist/hooks/useBoolean.d.ts +7 -0
  48. package/dist/hooks/useContext.d.ts +6 -0
  49. package/dist/hooks/useMenu.d.ts +34 -0
  50. package/dist/index.css +1 -1
  51. package/dist/index.d.ts +1 -0
  52. package/dist/index.umd.js +1 -1
  53. package/dist/types/utils.d.ts +3 -0
  54. package/es/_virtual/virtual_svg-icons-register.mjs +4 -4
  55. package/es/assets/cover/base-ads.png.mjs +4 -0
  56. package/es/assets/cover/base-multimodal.png.mjs +4 -0
  57. package/es/assets/cover/base-studio.png.mjs +4 -0
  58. package/es/assets/logo/logo-dark-full.svg.mjs +32 -0
  59. package/es/assets/logo/logo-light-full.svg.mjs +31 -0
  60. package/es/components/BaseDataTable/index.vue.mjs +2 -2
  61. package/es/components/BaseDataTable/index.vue2.mjs +1 -1
  62. package/es/components/BaseDialog/options.mjs +1 -1
  63. package/es/components/BaseLayout/ASide/index.vue.d.ts +4 -1
  64. package/es/components/BaseLayout/ASide/index.vue.mjs +2 -2
  65. package/es/components/BaseLayout/ASide/index.vue2.mjs +30 -24
  66. package/es/components/BaseLayout/ASide/type.d.ts +5 -2
  67. package/es/components/BaseLayout/AsideMenu/index.vue.d.ts +4 -0
  68. package/es/components/BaseLayout/AsideMenu/index.vue.mjs +7 -0
  69. package/es/components/BaseLayout/AsideMenu/index.vue2.mjs +66 -0
  70. package/es/components/BaseLayout/Default/constants.d.ts +5 -0
  71. package/es/components/BaseLayout/Default/constants.mjs +5 -0
  72. package/es/components/BaseLayout/Default/hooks/useBaseLayoutContext.d.ts +3 -0
  73. package/es/components/BaseLayout/Default/hooks/useBaseLayoutContext.mjs +11 -0
  74. package/es/components/BaseLayout/Default/hooks/useLogo.d.ts +5 -0
  75. package/es/components/BaseLayout/Default/hooks/useLogo.mjs +19 -0
  76. package/es/components/BaseLayout/Default/index.vue.d.ts +70 -0
  77. package/es/components/BaseLayout/Default/index.vue.mjs +7 -0
  78. package/es/components/BaseLayout/Default/index.vue2.mjs +147 -0
  79. package/es/components/BaseLayout/Default/layoutFooter/index.vue.d.ts +2 -0
  80. package/es/components/BaseLayout/Default/layoutHeader/action.vue.d.ts +2 -0
  81. package/es/components/BaseLayout/Default/layoutHeader/action.vue.mjs +7 -0
  82. package/es/components/BaseLayout/Default/layoutHeader/action.vue2.mjs +82 -0
  83. package/es/components/BaseLayout/Default/layoutHeader/index.vue.d.ts +2 -0
  84. package/es/components/BaseLayout/Default/layoutHeader/index.vue.mjs +31 -0
  85. package/es/components/BaseLayout/Default/layoutHeader/title.vue.d.ts +2 -0
  86. package/es/components/BaseLayout/Default/layoutHeader/title.vue.mjs +7 -0
  87. package/es/components/BaseLayout/Default/layoutHeader/title.vue2.mjs +29 -0
  88. package/es/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue.d.ts +32 -0
  89. package/es/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue.mjs +7 -0
  90. package/es/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.mjs +65 -0
  91. package/es/components/BaseLayout/Default/layoutMenu/index.vue.d.ts +2 -0
  92. package/es/components/BaseLayout/Default/layoutMenu/index.vue.mjs +4 -0
  93. package/es/components/BaseLayout/Default/layoutMenu/index.vue2.mjs +23 -0
  94. package/es/components/BaseLayout/Default/layoutMenu/modules/horizontalMenu.vue.d.ts +2 -0
  95. package/es/components/BaseLayout/Default/layoutMenu/modules/horizontalMenu.vue.mjs +30 -0
  96. package/es/components/BaseLayout/Default/layoutMenu/modules/horizontalMenu.vue2.mjs +4 -0
  97. package/es/components/BaseLayout/Default/layoutMenu/modules/horizontalMixMenu.vue.d.ts +2 -0
  98. package/es/components/BaseLayout/Default/layoutMenu/modules/horizontalMixMenu.vue.mjs +53 -0
  99. package/es/components/BaseLayout/Default/layoutMenu/modules/horizontalMixMenu.vue2.mjs +4 -0
  100. package/es/components/BaseLayout/Default/layoutMenu/modules/horizontalMixReversedMenu.vue.d.ts +2 -0
  101. package/es/components/BaseLayout/Default/layoutMenu/modules/horizontalMixReversedMenu.vue.mjs +73 -0
  102. package/es/components/BaseLayout/Default/layoutMenu/modules/horizontalMixReversedMenu.vue2.mjs +4 -0
  103. package/es/components/BaseLayout/Default/layoutMenu/modules/verticalMenu.vue.d.ts +2 -0
  104. package/es/components/BaseLayout/Default/layoutMenu/modules/verticalMenu.vue.mjs +39 -0
  105. package/es/components/BaseLayout/Default/layoutMenu/modules/verticalMenu.vue2.mjs +4 -0
  106. package/es/components/BaseLayout/Default/layoutMenu/modules/verticalMixMenu.vue.d.ts +2 -0
  107. package/es/components/BaseLayout/Default/layoutMenu/modules/verticalMixMenu.vue.mjs +97 -0
  108. package/es/components/BaseLayout/Default/layoutMenu/modules/verticalMixMenu.vue2.mjs +4 -0
  109. package/es/components/BaseLayout/Default/layoutSlider/index.vue.d.ts +2 -0
  110. package/es/components/BaseLayout/Default/layoutSlider/index.vue.mjs +31 -0
  111. package/es/components/BaseLayout/Default/layoutSlider/index.vue2.mjs +4 -0
  112. package/es/components/BaseLayout/Default/layoutTab/index.vue.d.ts +2 -0
  113. package/es/components/BaseLayout/Default/options.d.ts +3 -0
  114. package/es/components/BaseLayout/Default/options.mjs +35 -0
  115. package/es/components/BaseLayout/Default/type.d.ts +42 -0
  116. package/es/components/BaseLayout/Header/index.vue.d.ts +19 -0
  117. package/es/components/BaseLayout/Header/index.vue.mjs +20 -0
  118. package/es/components/BaseLayout/components/WrapContent.vue.d.ts +22 -0
  119. package/es/components/BaseLayout/components/WrapContent.vue.mjs +23 -0
  120. package/es/components/BaseLayout/components/WrapContent.vue2.mjs +4 -0
  121. package/es/components/BaseLayout/components/WrapFooter.vue.d.ts +24 -0
  122. package/es/components/BaseLayout/components/WrapFooter.vue.mjs +33 -0
  123. package/es/components/BaseLayout/components/WrapFooter.vue2.mjs +4 -0
  124. package/es/components/BaseLayout/components/WrapHeader.vue.d.ts +24 -0
  125. package/es/components/BaseLayout/components/WrapHeader.vue.mjs +7 -0
  126. package/es/components/BaseLayout/components/WrapHeader.vue2.mjs +30 -0
  127. package/es/components/BaseLayout/components/WrapSlider.vue.d.ts +24 -0
  128. package/es/components/BaseLayout/components/WrapSlider.vue.mjs +24 -0
  129. package/es/components/BaseLayout/components/WrapSlider.vue2.mjs +4 -0
  130. package/es/components/BaseLayout/components/WrapTab.vue.d.ts +24 -0
  131. package/es/components/BaseLayout/components/WrapTab.vue.mjs +34 -0
  132. package/es/components/BaseLayout/components/WrapTab.vue2.mjs +4 -0
  133. package/es/components/BaseLayout/constants.d.ts +1 -0
  134. package/es/components/BaseLayout/constants.mjs +4 -0
  135. package/es/components/BaseLayout/index.d.ts +6 -0
  136. package/es/components/BaseLayout/index.module.css.mjs +24 -0
  137. package/es/components/BaseLayout/index.vue.d.ts +49 -0
  138. package/es/components/BaseLayout/index.vue.mjs +7 -0
  139. package/es/components/BaseLayout/index.vue2.mjs +124 -0
  140. package/es/components/BaseLayout/layoutCssVar.d.ts +4 -0
  141. package/es/components/BaseLayout/layoutCssVar.mjs +27 -0
  142. package/es/components/BaseLayout/options.d.ts +2 -0
  143. package/es/components/BaseLayout/options.mjs +25 -0
  144. package/es/components/BaseLayout/type.d.ts +52 -0
  145. package/es/components/BaseProductIntroduction/constants.d.ts +2 -0
  146. package/es/components/BaseProductIntroduction/constants.mjs +7 -0
  147. package/es/components/BaseProductIntroduction/cssVar.d.ts +15 -0
  148. package/es/components/BaseProductIntroduction/cssVar.mjs +80 -0
  149. package/es/components/BaseProductIntroduction/index.d.ts +1 -0
  150. package/es/components/BaseProductIntroduction/index.vue.d.ts +6 -0
  151. package/es/components/BaseProductIntroduction/index.vue.mjs +8 -0
  152. package/es/components/BaseProductIntroduction/index.vue2.mjs +170 -0
  153. package/es/components/BaseProductIntroduction/type.d.ts +5 -0
  154. package/es/components/BaseSelect/index.vue.mjs +8 -5
  155. package/es/components/BaseSelect/index.vue3.mjs +5 -0
  156. package/es/components/index.d.ts +1 -0
  157. package/es/config/themes/common/light.d.ts +2 -0
  158. package/es/config/themes/common/light.mjs +30 -0
  159. package/es/config/themes/components/alert/light.mjs +3 -2
  160. package/es/config/themes/components/button/common.mjs +4 -4
  161. package/es/config/themes/components/button/dark.mjs +7 -4
  162. package/es/config/themes/components/button/light.mjs +1 -0
  163. package/es/config/themes/components/dataTable/dark.mjs +2 -1
  164. package/es/config/themes/components/dataTable/light.mjs +2 -1
  165. package/es/config/themes/components/divider/light.d.ts +2 -0
  166. package/es/config/themes/components/divider/light.mjs +7 -0
  167. package/es/config/themes/components/input/common.mjs +1 -0
  168. package/es/config/themes/components/input/dark.mjs +3 -2
  169. package/es/config/themes/components/layout/dark.d.ts +1 -0
  170. package/es/config/themes/components/layout/dark.mjs +3 -2
  171. package/es/config/themes/components/layout/light.d.ts +1 -0
  172. package/es/config/themes/components/layout/light.mjs +3 -2
  173. package/es/config/themes/components/menu/dark.mjs +18 -5
  174. package/es/config/themes/components/menu/light.mjs +14 -2
  175. package/es/config/themes/index.mjs +8 -6
  176. package/es/config/themes/light.mjs +40 -36
  177. package/es/config/themes/token/light.d.ts +2 -0
  178. package/es/config/themes/token/light.mjs +3 -1
  179. package/es/globalMethods/index.d.ts +2 -0
  180. package/es/globalMethods/index.mjs +7 -5
  181. package/es/hooks/useBoolean.d.ts +7 -0
  182. package/es/hooks/useBoolean.mjs +26 -0
  183. package/es/hooks/useContext.d.ts +6 -0
  184. package/es/hooks/useContext.mjs +30 -0
  185. package/es/hooks/useMenu.d.ts +34 -0
  186. package/es/hooks/useMenu.mjs +78 -0
  187. package/es/index.css +1 -1
  188. package/es/index.d.ts +1 -0
  189. package/es/index.mjs +53 -38
  190. package/es/node_modules/.pnpm/@vueuse_core@13.0.0_vue@3.5.13_typescript@5.7.2_/node_modules/@vueuse/core/index.mjs +43 -0
  191. package/es/node_modules/.pnpm/@vueuse_shared@13.0.0_vue@3.5.13_typescript@5.7.2_/node_modules/@vueuse/shared/index.mjs +29 -0
  192. package/es/types/utils.d.ts +3 -0
  193. package/lib/_virtual/_plugin-vue_export-helper.js +1 -1
  194. package/lib/_virtual/virtual_svg-icons-register.js +1 -1
  195. package/lib/assets/cover/base-ads.png.js +1 -0
  196. package/lib/assets/cover/base-multimodal.png.js +1 -0
  197. package/lib/assets/cover/base-studio.png.js +1 -0
  198. package/lib/assets/logo/logo-dark-full.svg.js +1 -0
  199. package/lib/assets/logo/logo-light-full.svg.js +1 -0
  200. package/lib/components/AppProvider/index.vue.js +1 -1
  201. package/lib/components/AppProvider/index.vue2.js +1 -1
  202. package/lib/components/BaseButton/index.vue.js +1 -1
  203. package/lib/components/BaseButton/index.vue2.js +1 -1
  204. package/lib/components/BaseDataTable/index.vue.js +1 -1
  205. package/lib/components/BaseDataTable/index.vue2.js +1 -1
  206. package/lib/components/BaseDialog/index.vue.js +1 -1
  207. package/lib/components/BaseDialog/index.vue2.js +1 -1
  208. package/lib/components/BaseDialog/options.js +1 -1
  209. package/lib/components/BaseInputNumber/index.vue.js +1 -1
  210. package/lib/components/BaseInputNumber/index.vue2.js +1 -1
  211. package/lib/components/BaseLayout/ASide/index.vue.d.ts +4 -1
  212. package/lib/components/BaseLayout/ASide/index.vue.js +1 -1
  213. package/lib/components/BaseLayout/ASide/index.vue2.js +1 -1
  214. package/lib/components/BaseLayout/ASide/type.d.ts +5 -2
  215. package/lib/components/BaseLayout/AsideMenu/index.vue.d.ts +4 -0
  216. package/lib/components/BaseLayout/AsideMenu/index.vue.js +1 -0
  217. package/lib/components/BaseLayout/AsideMenu/index.vue2.js +1 -0
  218. package/lib/components/BaseLayout/Default/constants.d.ts +5 -0
  219. package/lib/components/BaseLayout/Default/constants.js +1 -0
  220. package/lib/components/BaseLayout/Default/hooks/useBaseLayoutContext.d.ts +3 -0
  221. package/lib/components/BaseLayout/Default/hooks/useBaseLayoutContext.js +1 -0
  222. package/lib/components/BaseLayout/Default/hooks/useLogo.d.ts +5 -0
  223. package/lib/components/BaseLayout/Default/hooks/useLogo.js +1 -0
  224. package/lib/components/BaseLayout/Default/index.vue.d.ts +70 -0
  225. package/lib/components/BaseLayout/Default/index.vue.js +1 -0
  226. package/lib/components/BaseLayout/Default/index.vue2.js +1 -0
  227. package/lib/components/BaseLayout/Default/layoutFooter/index.vue.d.ts +2 -0
  228. package/lib/components/BaseLayout/Default/layoutHeader/action.vue.d.ts +2 -0
  229. package/lib/components/BaseLayout/Default/layoutHeader/action.vue.js +1 -0
  230. package/lib/components/BaseLayout/Default/layoutHeader/action.vue2.js +1 -0
  231. package/lib/components/BaseLayout/Default/layoutHeader/index.vue.d.ts +2 -0
  232. package/lib/components/BaseLayout/Default/layoutHeader/index.vue.js +1 -0
  233. package/lib/components/BaseLayout/Default/layoutHeader/index.vue2.js +1 -0
  234. package/lib/components/BaseLayout/Default/layoutHeader/title.vue.d.ts +2 -0
  235. package/lib/components/BaseLayout/Default/layoutHeader/title.vue.js +1 -0
  236. package/lib/components/BaseLayout/Default/layoutHeader/title.vue2.js +1 -0
  237. package/lib/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue.d.ts +32 -0
  238. package/lib/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue.js +1 -0
  239. package/lib/components/BaseLayout/Default/layoutMenu/components/first-level-menu.vue2.js +1 -0
  240. package/lib/components/BaseLayout/Default/layoutMenu/index.vue.d.ts +2 -0
  241. package/lib/components/BaseLayout/Default/layoutMenu/index.vue.js +1 -0
  242. package/lib/components/BaseLayout/Default/layoutMenu/index.vue2.js +1 -0
  243. package/lib/components/BaseLayout/Default/layoutMenu/modules/horizontalMenu.vue.d.ts +2 -0
  244. package/lib/components/BaseLayout/Default/layoutMenu/modules/horizontalMenu.vue.js +1 -0
  245. package/lib/components/BaseLayout/Default/layoutMenu/modules/horizontalMenu.vue2.js +1 -0
  246. package/lib/components/BaseLayout/Default/layoutMenu/modules/horizontalMixMenu.vue.d.ts +2 -0
  247. package/lib/components/BaseLayout/Default/layoutMenu/modules/horizontalMixMenu.vue.js +1 -0
  248. package/lib/components/BaseLayout/Default/layoutMenu/modules/horizontalMixMenu.vue2.js +1 -0
  249. package/lib/components/BaseLayout/Default/layoutMenu/modules/horizontalMixReversedMenu.vue.d.ts +2 -0
  250. package/lib/components/BaseLayout/Default/layoutMenu/modules/horizontalMixReversedMenu.vue.js +1 -0
  251. package/lib/components/BaseLayout/Default/layoutMenu/modules/horizontalMixReversedMenu.vue2.js +1 -0
  252. package/lib/components/BaseLayout/Default/layoutMenu/modules/verticalMenu.vue.d.ts +2 -0
  253. package/lib/components/BaseLayout/Default/layoutMenu/modules/verticalMenu.vue.js +1 -0
  254. package/lib/components/BaseLayout/Default/layoutMenu/modules/verticalMenu.vue2.js +1 -0
  255. package/lib/components/BaseLayout/Default/layoutMenu/modules/verticalMixMenu.vue.d.ts +2 -0
  256. package/lib/components/BaseLayout/Default/layoutMenu/modules/verticalMixMenu.vue.js +1 -0
  257. package/lib/components/BaseLayout/Default/layoutMenu/modules/verticalMixMenu.vue2.js +1 -0
  258. package/lib/components/BaseLayout/Default/layoutSlider/index.vue.d.ts +2 -0
  259. package/lib/components/BaseLayout/Default/layoutSlider/index.vue.js +1 -0
  260. package/lib/components/BaseLayout/Default/layoutSlider/index.vue2.js +1 -0
  261. package/lib/components/BaseLayout/Default/layoutTab/index.vue.d.ts +2 -0
  262. package/lib/components/BaseLayout/Default/options.d.ts +3 -0
  263. package/lib/components/BaseLayout/Default/options.js +1 -0
  264. package/lib/components/BaseLayout/Default/type.d.ts +42 -0
  265. package/lib/components/BaseLayout/Header/index.vue.d.ts +19 -0
  266. package/lib/components/BaseLayout/Header/index.vue.js +1 -0
  267. package/lib/components/BaseLayout/components/WrapContent.vue.d.ts +22 -0
  268. package/lib/components/BaseLayout/components/WrapContent.vue.js +1 -0
  269. package/lib/components/BaseLayout/components/WrapContent.vue2.js +1 -0
  270. package/lib/components/BaseLayout/components/WrapFooter.vue.d.ts +24 -0
  271. package/lib/components/BaseLayout/components/WrapFooter.vue.js +1 -0
  272. package/lib/components/BaseLayout/components/WrapFooter.vue2.js +1 -0
  273. package/lib/components/BaseLayout/components/WrapHeader.vue.d.ts +24 -0
  274. package/lib/components/BaseLayout/components/WrapHeader.vue.js +1 -0
  275. package/lib/components/BaseLayout/components/WrapHeader.vue2.js +1 -0
  276. package/lib/components/BaseLayout/components/WrapSlider.vue.d.ts +24 -0
  277. package/lib/components/BaseLayout/components/WrapSlider.vue.js +1 -0
  278. package/lib/components/BaseLayout/components/WrapSlider.vue2.js +1 -0
  279. package/lib/components/BaseLayout/components/WrapTab.vue.d.ts +24 -0
  280. package/lib/components/BaseLayout/components/WrapTab.vue.js +1 -0
  281. package/lib/components/BaseLayout/components/WrapTab.vue2.js +1 -0
  282. package/lib/components/BaseLayout/constants.d.ts +1 -0
  283. package/lib/components/BaseLayout/constants.js +1 -0
  284. package/lib/components/BaseLayout/index.d.ts +6 -0
  285. package/lib/components/BaseLayout/index.module.css.js +1 -0
  286. package/lib/components/BaseLayout/index.vue.d.ts +49 -0
  287. package/lib/components/BaseLayout/index.vue.js +1 -0
  288. package/lib/components/BaseLayout/index.vue2.js +1 -0
  289. package/lib/components/BaseLayout/layoutCssVar.d.ts +4 -0
  290. package/lib/components/BaseLayout/layoutCssVar.js +1 -0
  291. package/lib/components/BaseLayout/options.d.ts +2 -0
  292. package/lib/components/BaseLayout/options.js +1 -0
  293. package/lib/components/BaseLayout/type.d.ts +52 -0
  294. package/lib/components/BaseProductIntroduction/constants.d.ts +2 -0
  295. package/lib/components/BaseProductIntroduction/constants.js +1 -0
  296. package/lib/components/BaseProductIntroduction/cssVar.d.ts +15 -0
  297. package/lib/components/BaseProductIntroduction/cssVar.js +1 -0
  298. package/lib/components/BaseProductIntroduction/index.d.ts +1 -0
  299. package/lib/components/BaseProductIntroduction/index.vue.d.ts +6 -0
  300. package/lib/components/BaseProductIntroduction/index.vue.js +1 -0
  301. package/lib/components/BaseProductIntroduction/index.vue2.js +1 -0
  302. package/lib/components/BaseProductIntroduction/type.d.ts +5 -0
  303. package/lib/components/BaseProgress/index.js +1 -1
  304. package/lib/components/BaseRadio/index.vue.js +1 -1
  305. package/lib/components/BaseRadio/index.vue2.js +1 -1
  306. package/lib/components/BaseSelect/index.vue.js +1 -1
  307. package/lib/components/BaseSelect/index.vue3.js +1 -0
  308. package/lib/components/BaseSlider/index.vue.js +1 -1
  309. package/lib/components/BaseSlider/index.vue2.js +1 -1
  310. package/lib/components/BaseSwitch/index.vue.js +1 -1
  311. package/lib/components/BaseSwitch/index.vue2.js +1 -1
  312. package/lib/components/index.d.ts +1 -0
  313. package/lib/config/themes/color/dark.js +1 -1
  314. package/lib/config/themes/color/light.js +1 -1
  315. package/lib/config/themes/common/light.d.ts +2 -0
  316. package/lib/config/themes/common/light.js +1 -0
  317. package/lib/config/themes/components/alert/dark.js +1 -1
  318. package/lib/config/themes/components/alert/light.js +1 -1
  319. package/lib/config/themes/components/baseComponent/dark.js +1 -1
  320. package/lib/config/themes/components/baseComponent/light.js +1 -1
  321. package/lib/config/themes/components/button/common.js +1 -1
  322. package/lib/config/themes/components/button/dark.js +1 -1
  323. package/lib/config/themes/components/button/light.js +1 -1
  324. package/lib/config/themes/components/card/dark.js +1 -1
  325. package/lib/config/themes/components/card/light.js +1 -1
  326. package/lib/config/themes/components/charts/dark.js +1 -1
  327. package/lib/config/themes/components/charts/light.js +1 -1
  328. package/lib/config/themes/components/checkbox/dark.js +1 -1
  329. package/lib/config/themes/components/checkbox/light.js +1 -1
  330. package/lib/config/themes/components/dataTable/dark.js +1 -1
  331. package/lib/config/themes/components/dataTable/light.js +1 -1
  332. package/lib/config/themes/components/datePicker/dark.js +1 -1
  333. package/lib/config/themes/components/datePicker/light.js +1 -1
  334. package/lib/config/themes/components/dialog/dark.js +1 -1
  335. package/lib/config/themes/components/dialog/light.js +1 -1
  336. package/lib/config/themes/components/divider/light.d.ts +2 -0
  337. package/lib/config/themes/components/divider/light.js +1 -0
  338. package/lib/config/themes/components/dropdown/dark.js +1 -1
  339. package/lib/config/themes/components/dropdown/light.js +1 -1
  340. package/lib/config/themes/components/form/dark.js +1 -1
  341. package/lib/config/themes/components/form/light.js +1 -1
  342. package/lib/config/themes/components/input/common.js +1 -1
  343. package/lib/config/themes/components/input/dark.js +1 -1
  344. package/lib/config/themes/components/input/light.js +1 -1
  345. package/lib/config/themes/components/inputNumber/dark.js +1 -1
  346. package/lib/config/themes/components/inputNumber/light.js +1 -1
  347. package/lib/config/themes/components/layout/dark.d.ts +1 -0
  348. package/lib/config/themes/components/layout/dark.js +1 -1
  349. package/lib/config/themes/components/layout/light.d.ts +1 -0
  350. package/lib/config/themes/components/layout/light.js +1 -1
  351. package/lib/config/themes/components/menu/dark.js +1 -1
  352. package/lib/config/themes/components/menu/light.js +1 -1
  353. package/lib/config/themes/components/progress/dark.js +1 -1
  354. package/lib/config/themes/components/progress/light.js +1 -1
  355. package/lib/config/themes/components/radio/dark.js +1 -1
  356. package/lib/config/themes/components/radio/light.js +1 -1
  357. package/lib/config/themes/components/select/dark.js +1 -1
  358. package/lib/config/themes/components/select/light.js +1 -1
  359. package/lib/config/themes/components/slider/dark.js +1 -1
  360. package/lib/config/themes/components/slider/light.js +1 -1
  361. package/lib/config/themes/components/switch/dark.js +1 -1
  362. package/lib/config/themes/components/switch/light.js +1 -1
  363. package/lib/config/themes/components/tag/dark.js +1 -1
  364. package/lib/config/themes/components/tag/light.js +1 -1
  365. package/lib/config/themes/components/transfer/dark.js +1 -1
  366. package/lib/config/themes/components/transfer/light.js +1 -1
  367. package/lib/config/themes/index.js +1 -1
  368. package/lib/config/themes/light.js +1 -1
  369. package/lib/config/themes/token/dark.js +1 -1
  370. package/lib/config/themes/token/light.d.ts +2 -0
  371. package/lib/config/themes/token/light.js +1 -1
  372. package/lib/globalMethods/index.d.ts +2 -0
  373. package/lib/globalMethods/index.js +1 -1
  374. package/lib/globalMethods/modules/confirmTip.js +1 -1
  375. package/lib/globalMethods/modules/message.js +1 -1
  376. package/lib/hooks/useBoolean.d.ts +7 -0
  377. package/lib/hooks/useBoolean.js +1 -0
  378. package/lib/hooks/useContext.d.ts +6 -0
  379. package/lib/hooks/useContext.js +1 -0
  380. package/lib/hooks/useMenu.d.ts +34 -0
  381. package/lib/hooks/useMenu.js +1 -0
  382. package/lib/hooks/useNaiveConfigProvideContext.js +1 -1
  383. package/lib/index.css +1 -1
  384. package/lib/index.d.ts +1 -0
  385. package/lib/index.js +1 -1
  386. package/lib/node_modules/.pnpm/@vueuse_core@13.0.0_vue@3.5.13_typescript@5.7.2_/node_modules/@vueuse/core/index.js +1 -0
  387. package/lib/node_modules/.pnpm/@vueuse_shared@13.0.0_vue@3.5.13_typescript@5.7.2_/node_modules/@vueuse/shared/index.js +1 -0
  388. package/lib/types/utils.d.ts +3 -0
  389. package/package.json +1 -1
  390. package/readme.md +18 -19
  391. package/lib/components/BaseSelect/index.vue2.js +0 -1
  392. /package/es/components/{BaseSelect → BaseLayout/Default/layoutHeader}/index.vue2.mjs +0 -0
@@ -0,0 +1,66 @@
1
+ import { NMenu as a } from "naive-ui";
2
+ import { defineComponent as t, computed as l, createBlock as p, openBlock as s, mergeProps as r } from "vue";
3
+ const x = /* @__PURE__ */ t({
4
+ __name: "index",
5
+ props: {
6
+ options: {},
7
+ collapsed: { type: Boolean },
8
+ collapsedWidth: {},
9
+ iconSize: {},
10
+ collapsedIconSize: {},
11
+ rootIndent: {},
12
+ indent: { default: 32 },
13
+ labelField: {},
14
+ keyField: {},
15
+ childrenField: {},
16
+ disabledField: {},
17
+ defaultExpandAll: { type: Boolean },
18
+ defaultExpandedKeys: {},
19
+ expandedKeys: {},
20
+ value: {},
21
+ defaultValue: {},
22
+ mode: {},
23
+ watchProps: {},
24
+ disabled: { type: Boolean },
25
+ show: { type: Boolean },
26
+ inverted: { type: Boolean },
27
+ "onUpdate:expandedKeys": {},
28
+ onUpdateExpandedKeys: {},
29
+ onUpdateValue: {},
30
+ "onUpdate:value": {},
31
+ expandIcon: {},
32
+ renderIcon: {},
33
+ renderLabel: {},
34
+ renderExtra: {},
35
+ dropdownProps: {},
36
+ accordion: { type: Boolean },
37
+ nodeProps: {},
38
+ dropdownPlacement: {},
39
+ responsive: { type: Boolean },
40
+ items: {},
41
+ onOpenNamesChange: {},
42
+ onSelect: {},
43
+ onExpandedNamesChange: {},
44
+ expandedNames: {},
45
+ defaultExpandedNames: {},
46
+ theme: {},
47
+ themeOverrides: {},
48
+ builtinThemeOverrides: {}
49
+ },
50
+ setup(n) {
51
+ const e = n, o = l(() => ({
52
+ "--n-side-menu-bar": `-${e.indent / 2}px`,
53
+ "--n-side-menu-indent": `${e.indent}px`
54
+ }));
55
+ return (i, c) => {
56
+ const d = a;
57
+ return s(), p(d, r(e, {
58
+ class: "base-aside-menu",
59
+ style: o.value
60
+ }), null, 16, ["style"]);
61
+ };
62
+ }
63
+ });
64
+ export {
65
+ x as default
66
+ };
@@ -0,0 +1,5 @@
1
+ export { LAYOUT_SCROLL_EL_ID } from '../constants';
2
+ export declare const DARK_CLASS = "dark";
3
+ export declare const LAYOUT_HEADER_MENU_ID = "__BASE__DEFAULT__LAYOUT__HEADER_MENU__";
4
+ export declare const LAYOUT_SLIDER_HEADER_ID = "__BASE__DEFAULT__LAYOUT__SLIDER_HEADER__";
5
+ export declare const LAYOUT_SLIDER_MENU_ID = "__BASE__DEFAULT__LAYOUT__SLIDER_MENU__";
@@ -0,0 +1,5 @@
1
+ const _ = "__BASE__DEFAULT__LAYOUT__HEADER_MENU__", E = "__BASE__DEFAULT__LAYOUT__SLIDER_MENU__";
2
+ export {
3
+ _ as LAYOUT_HEADER_MENU_ID,
4
+ E as LAYOUT_SLIDER_MENU_ID
5
+ };
@@ -0,0 +1,3 @@
1
+ import { BaseLayoutProviderType } from '../type';
2
+ declare function useBaseLayoutContext(): BaseLayoutProviderType;
3
+ export default useBaseLayoutContext;
@@ -0,0 +1,11 @@
1
+ import { inject as t } from "vue";
2
+ import { defaultLayoutProviderInjectKey as e, DefaultLayoutPropsInDefault as o } from "../options.mjs";
3
+ function n() {
4
+ return t(e, {
5
+ layoutConfig: o,
6
+ userInfo: o.userInfo
7
+ });
8
+ }
9
+ export {
10
+ n as default
11
+ };
@@ -0,0 +1,5 @@
1
+ export declare function useLogoHook(): {
2
+ setIsUseIcon: (value: boolean) => void;
3
+ LogoLightFull: any;
4
+ currentLogoComponent: import('vue').ComputedRef<any>;
5
+ };
@@ -0,0 +1,19 @@
1
+ import { computed as s } from "vue";
2
+ import u from "../../../../hooks/useBoolean.mjs";
3
+ import m from "./useBaseLayoutContext.mjs";
4
+ import o from "../../../../assets/logo/logo-light-full.svg.mjs";
5
+ import i from "../../../../assets/logo/logo-dark-full.svg.mjs";
6
+ function L() {
7
+ const { isDarkMode: t } = m(), { bool: e, setBool: r } = u(!1), n = s(() => {
8
+ if (!e.value)
9
+ return t.value ? i : o;
10
+ });
11
+ return {
12
+ setIsUseIcon: r,
13
+ LogoLightFull: o,
14
+ currentLogoComponent: n
15
+ };
16
+ }
17
+ export {
18
+ L as useLogoHook
19
+ };
@@ -0,0 +1,70 @@
1
+ import { DropdownOption } from 'naive-ui';
2
+ import { BaseDefaultLayoutProps, BaseDefaultLayoutMode } from './type';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: {
6
+ header?(_: {}): any;
7
+ default?(_: {}): any;
8
+ slider?(_: {}): any;
9
+ footer?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<BaseDefaultLayoutProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ toggleLogo: (...args: any[]) => void;
17
+ toggleSystemTheme: (...args: any[]) => void;
18
+ toggleUserItem: (...args: any[]) => void;
19
+ toggleMenuItem: (...args: any[]) => void;
20
+ toggleMixMenuItem: (...args: any[]) => void;
21
+ }, string, import('vue').PublicProps, Readonly<BaseDefaultLayoutProps> & Readonly<{
22
+ onToggleLogo?: ((...args: any[]) => any) | undefined;
23
+ onToggleSystemTheme?: ((...args: any[]) => any) | undefined;
24
+ onToggleUserItem?: ((...args: any[]) => any) | undefined;
25
+ onToggleMenuItem?: ((...args: any[]) => any) | undefined;
26
+ onToggleMixMenuItem?: ((...args: any[]) => any) | undefined;
27
+ }>, {
28
+ headerHeight: number;
29
+ contentClass: string;
30
+ headerClass: string;
31
+ footerClass: string;
32
+ mode: BaseDefaultLayoutMode;
33
+ tabClass: string;
34
+ sliderCollapse: boolean;
35
+ sliderClass: string;
36
+ tabHeight: number;
37
+ sliderWidth: number;
38
+ sliderCollapseWidth: number;
39
+ footerHeight: number;
40
+ scrollMode: import('..').LayoutScrollMode;
41
+ scrollElId: string;
42
+ scrollWrapperClass: string;
43
+ baseClass: string;
44
+ fixedTop: boolean;
45
+ commonClass: string;
46
+ layoutZIndex: number;
47
+ headerVisible: boolean;
48
+ tabVisible: boolean;
49
+ sliderVisible: boolean;
50
+ fullContent: boolean;
51
+ footerVisible: boolean;
52
+ fixedFooter: boolean;
53
+ footerIsFullWidth: boolean;
54
+ sliderMixWidth: number;
55
+ sliderMixCollapseWidth: number;
56
+ sliderMixChildMenuWidth: number;
57
+ mixSliderFixed: boolean;
58
+ reverseHorizontalMix: boolean;
59
+ menuList: import('./type').BaseMenuOptionType[];
60
+ userActionOption: Array<DropdownOption | import('naive-ui').DropdownGroupOption | import('naive-ui').DropdownDividerOption | import('naive-ui').DropdownRenderOption>;
61
+ userInfo: import('./type').UserInfoType;
62
+ curRoute: any;
63
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
64
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
65
+ export default _default;
66
+ type __VLS_WithTemplateSlots<T, S> = T & {
67
+ new (): {
68
+ $slots: S;
69
+ };
70
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./index.vue2.mjs";
2
+ /* empty css */
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1087183d"]]);
5
+ export {
6
+ _ as default
7
+ };
@@ -0,0 +1,147 @@
1
+ import { defineComponent as L, mergeDefaults as S, defineAsyncComponent as F, computed as l, provide as T, createBlock as $, openBlock as A, withCtx as a, renderSlot as u, createVNode as m, unref as D } from "vue";
2
+ import O from "../index.vue.mjs";
3
+ import P from "./layoutHeader/index.vue.mjs";
4
+ import k from "./layoutSlider/index.vue.mjs";
5
+ import { defaultLayoutProviderInjectKey as N, DefaultLayoutPropsInDefault as U } from "./options.mjs";
6
+ import E from "../../../hooks/useNaiveConfigProvideContext.mjs";
7
+ import { setupMixMenuContext as R } from "../../../hooks/useMenu.mjs";
8
+ const X = /* @__PURE__ */ L({
9
+ __name: "index",
10
+ props: /* @__PURE__ */ S({
11
+ scrollMode: {},
12
+ scrollElId: {},
13
+ scrollWrapperClass: {},
14
+ baseClass: {},
15
+ fixedTop: { type: Boolean },
16
+ commonClass: {},
17
+ layoutZIndex: {},
18
+ headerVisible: { type: Boolean },
19
+ headerClass: {},
20
+ headerHeight: {},
21
+ tabVisible: { type: Boolean },
22
+ tabClass: {},
23
+ tabHeight: {},
24
+ sliderVisible: { type: Boolean },
25
+ sliderClass: {},
26
+ sliderCollapse: { type: Boolean },
27
+ sliderWidth: {},
28
+ sliderCollapseWidth: {},
29
+ contentClass: {},
30
+ fullContent: { type: Boolean },
31
+ footerVisible: { type: Boolean },
32
+ footerClass: {},
33
+ fixedFooter: { type: Boolean },
34
+ footerIsFullWidth: { type: Boolean },
35
+ footerHeight: {},
36
+ mode: {},
37
+ curRoute: {},
38
+ sliderMixWidth: {},
39
+ sliderMixCollapseWidth: {},
40
+ sliderMixChildMenuWidth: {},
41
+ mixSliderFixed: { type: Boolean },
42
+ menuList: {},
43
+ reverseHorizontalMix: { type: Boolean },
44
+ userActionOption: {},
45
+ userInfo: {}
46
+ }, {
47
+ ...U,
48
+ menuList: () => [],
49
+ userActionOption: () => [],
50
+ userInfo: () => ({ name: "" })
51
+ }),
52
+ emits: [
53
+ "toggleLogo",
54
+ "toggleMenuItem",
55
+ "toggleMixMenuItem",
56
+ "toggleSystemTheme",
57
+ "toggleUserItem"
58
+ ],
59
+ setup(t, { emit: x }) {
60
+ const M = F(() => import("./layoutMenu/index.vue.mjs")), o = t, s = x, C = E(), { childLevelMenus: f } = R(o), p = l(() => {
61
+ const {
62
+ name: e = "light"
63
+ } = C?.mergedThemeRef.value || {};
64
+ return e !== "light";
65
+ }), b = l(() => {
66
+ const e = "vertical";
67
+ return o.mode.includes(e) ? e : "horizontal";
68
+ }), y = l(() => o.mode !== "horizontal"), d = l(() => o.mode === "horizontal-mix"), n = l(() => o.mode === "vertical-mix"), I = () => {
69
+ const { reverseHorizontalMix: e } = o, { sliderCollapseWidth: i, sliderMixCollapseWidth: h, sliderMixChildMenuWidth: c } = o;
70
+ if (d.value && e)
71
+ return i;
72
+ let r = n.value || d.value ? h : i;
73
+ return n.value && o.mixSliderFixed && f.value.length && (r += c), r;
74
+ }, g = l(() => I());
75
+ function W() {
76
+ const { reverseHorizontalMix: e } = o, { sliderWidth: i, sliderMixChildMenuWidth: h, sliderMixWidth: c } = o;
77
+ if (d.value && e)
78
+ return i;
79
+ let r = n.value || d.value ? c : i;
80
+ return n.value && o.mixSliderFixed && f.value.length && (r += h), r;
81
+ }
82
+ const v = l(() => W()), B = () => {
83
+ s("toggleLogo");
84
+ }, H = (e, i) => {
85
+ s("toggleMenuItem", e, i);
86
+ }, V = (e, i) => {
87
+ s("toggleMixMenuItem", e, i);
88
+ }, w = () => {
89
+ s("toggleSystemTheme");
90
+ }, z = (e, i) => {
91
+ s("toggleUserItem", e, i);
92
+ };
93
+ return T(N, {
94
+ layoutConfig: o,
95
+ isDarkMode: p,
96
+ userActionOption: o.userActionOption,
97
+ userInfo: o.userInfo,
98
+ _sliderCollapseWidth: g,
99
+ _sliderWidth: v,
100
+ toggleLogo: B,
101
+ toggleMenuItem: H,
102
+ toggleMixMenuItem: V,
103
+ toggleSystemTheme: w,
104
+ toggleUserItem: z
105
+ }), (e, i) => (A(), $(O, {
106
+ mode: b.value,
107
+ "scroll-mode": t.scrollMode,
108
+ "scroll-el-id": t.scrollElId,
109
+ "fixed-top": t.fixedTop,
110
+ "header-visible": t.headerVisible,
111
+ "header-height": t.headerHeight,
112
+ "tab-visible": t.tabVisible,
113
+ "tab-height": t.tabHeight,
114
+ "slider-visible": y.value,
115
+ "slider-class": t.sliderClass,
116
+ "slider-collapse": t.sliderCollapse,
117
+ "slider-width": v.value,
118
+ "slider-collapse-width": g.value,
119
+ "footer-visible": t.footerVisible,
120
+ "fixed-footer": t.fixedFooter,
121
+ "footer-is-full-width": t.footerIsFullWidth,
122
+ "footer-height": t.footerHeight
123
+ }, {
124
+ header: a(() => [
125
+ u(e.$slots, "header", {}, () => [
126
+ m(P)
127
+ ], !0)
128
+ ]),
129
+ slider: a(() => [
130
+ u(e.$slots, "slider", {}, () => [
131
+ m(k)
132
+ ], !0)
133
+ ]),
134
+ footer: a(() => [
135
+ u(e.$slots, "footer", {}, void 0, !0)
136
+ ]),
137
+ default: a(() => [
138
+ u(e.$slots, "default", {}, void 0, !0),
139
+ m(D(M))
140
+ ]),
141
+ _: 3
142
+ }, 8, ["mode", "scroll-mode", "scroll-el-id", "fixed-top", "header-visible", "header-height", "tab-visible", "tab-height", "slider-visible", "slider-class", "slider-collapse", "slider-width", "slider-collapse-width", "footer-visible", "fixed-footer", "footer-is-full-width", "footer-height"]));
143
+ }
144
+ });
145
+ export {
146
+ X as default
147
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import o from "./action.vue2.mjs";
2
+ /* empty css */
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cd49cd7d"]]);
5
+ export {
6
+ d as default
7
+ };
@@ -0,0 +1,82 @@
1
+ import { NButton as f, NDropdown as y } from "naive-ui";
2
+ import { defineComponent as F, computed as c, h as i, createElementBlock as k, openBlock as b, createVNode as o, unref as e, withCtx as r, createElementVNode as u, toDisplayString as C } from "vue";
3
+ import x from "../hooks/useBaseLayoutContext.mjs";
4
+ import { SvgIcon as n } from "../../../../node_modules/.pnpm/lib-materials@0.0.8_typescript@5.7.2/node_modules/lib-materials/dist/lib-materials.mjs";
5
+ const S = { class: "base-layout-header-action-container" }, z = { class: "user-trigger" }, B = { class: "name" }, H = /* @__PURE__ */ F({
6
+ name: "GlobalHeaderAction",
7
+ __name: "action",
8
+ setup(E) {
9
+ const { isDarkMode: t, userActionOption: l, userInfo: m, toggleSystemTheme: d, toggleSystemLang: p, toggleUserItem: _ } = x(), a = c(() => ({
10
+ color: t.value ? "#222327" : "#FFF",
11
+ colorHover: t.value ? "#222327" : "#FFF",
12
+ colorFocus: t.value ? "#222327" : "#FFF",
13
+ textColor: t.value ? "rgba(255,255,255,0.7)" : "#56647A",
14
+ border: `1px solid ${t.value ? "#2F3A4B " : "#E0E6EF"}`
15
+ })), g = c(() => l && l.length ? l : [
16
+ {
17
+ label: "用户中心",
18
+ key: "user-center",
19
+ icon: () => i(n, { icon: "layout-user-center", size: "16" })
20
+ },
21
+ {
22
+ label: "退出账号",
23
+ key: "logout",
24
+ icon: () => i(n, { icon: "layout-logout", size: "16" })
25
+ }
26
+ ]);
27
+ return (v, A) => {
28
+ const s = f, h = y;
29
+ return b(), k("div", S, [
30
+ o(s, {
31
+ "theme-overrides": a.value,
32
+ onClick: e(d)
33
+ }, {
34
+ default: r(() => [
35
+ o(e(n), {
36
+ icon: "layout-theme",
37
+ size: "16"
38
+ })
39
+ ]),
40
+ _: 1
41
+ }, 8, ["theme-overrides", "onClick"]),
42
+ o(s, {
43
+ "theme-overrides": a.value,
44
+ onClick: e(p)
45
+ }, {
46
+ default: r(() => [
47
+ o(e(n), {
48
+ icon: "layout-lang",
49
+ size: "16"
50
+ })
51
+ ]),
52
+ _: 1
53
+ }, 8, ["theme-overrides", "onClick"]),
54
+ o(h, {
55
+ placement: "bottom",
56
+ trigger: "click",
57
+ options: g.value,
58
+ onSelect: e(_)
59
+ }, {
60
+ default: r(() => [
61
+ u("div", z, [
62
+ o(s, { quaternary: "" }, {
63
+ default: r(() => [
64
+ o(e(n), {
65
+ icon: `layout-user-${e(t) ? "dark" : "light"}`,
66
+ size: "32"
67
+ }, null, 8, ["icon"]),
68
+ u("span", B, C(e(m)?.name), 1)
69
+ ]),
70
+ _: 1
71
+ })
72
+ ])
73
+ ]),
74
+ _: 1
75
+ }, 8, ["options", "onSelect"])
76
+ ]);
77
+ };
78
+ }
79
+ });
80
+ export {
81
+ H as default
82
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import { defineComponent as n, computed as d, createBlock as t, openBlock as o, withCtx as e, createElementVNode as i, unref as l, createVNode as m, createCommentVNode as u } from "vue";
2
+ import c from "../../Header/index.vue.mjs";
3
+ import s from "./title.vue.mjs";
4
+ import f from "./action.vue.mjs";
5
+ import { LAYOUT_HEADER_MENU_ID as p } from "../constants.mjs";
6
+ import _ from "../hooks/useBaseLayoutContext.mjs";
7
+ const x = ["id"], k = /* @__PURE__ */ n({
8
+ name: "GlobalHeader",
9
+ __name: "index",
10
+ setup(h) {
11
+ const { layoutConfig: r } = _(), a = d(() => !(r.mode.indexOf("vertical") > -1));
12
+ return (y, B) => (o(), t(c, null, {
13
+ headerTitle: e(() => [
14
+ a.value ? (o(), t(s, { key: 0 })) : u("", !0)
15
+ ]),
16
+ headerActions: e(() => [
17
+ m(f)
18
+ ]),
19
+ default: e(() => [
20
+ i("div", {
21
+ id: l(p),
22
+ class: "h-full flex-y-center flex-1-hidden pl-[16px]"
23
+ }, null, 8, x)
24
+ ]),
25
+ _: 1
26
+ }));
27
+ }
28
+ });
29
+ export {
30
+ k as default
31
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import o from "./title.vue2.mjs";
2
+ /* empty css */
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f1ec5dd8"]]);
5
+ export {
6
+ d as default
7
+ };
@@ -0,0 +1,29 @@
1
+ import { NDivider as i } from "naive-ui";
2
+ import { defineComponent as l, createElementBlock as m, openBlock as t, createVNode as n, createBlock as s, createCommentVNode as u, unref as o, resolveDynamicComponent as p } from "vue";
3
+ import d from "../../../BaseProductIntroduction/index.vue.mjs";
4
+ import _ from "../hooks/useBaseLayoutContext.mjs";
5
+ import { useLogoHook as f } from "../hooks/useLogo.mjs";
6
+ const g = { class: "base-layout-header-title-container" }, H = /* @__PURE__ */ l({
7
+ name: "GlobalHeaderTitle",
8
+ __name: "title",
9
+ setup(C) {
10
+ const { layoutConfig: r, toggleLogo: c } = _(), { currentLogoComponent: e } = f();
11
+ return (k, y) => {
12
+ const a = i;
13
+ return t(), m("div", g, [
14
+ n(d, {
15
+ y: o(r).headerHeight
16
+ }, null, 8, ["y"]),
17
+ n(a, { vertical: "" }),
18
+ o(e) ? (t(), s(p(o(e)), {
19
+ key: 0,
20
+ class: "component-logo",
21
+ onClick: o(c)
22
+ }, null, 8, ["onClick"])) : u("", !0)
23
+ ]);
24
+ };
25
+ }
26
+ });
27
+ export {
28
+ H as default
29
+ };
@@ -0,0 +1,32 @@
1
+ import { BaseMenuOptionType } from '../../type';
2
+ interface PropsType {
3
+ menus: Array<BaseMenuOptionType>;
4
+ activeMenuKey?: string;
5
+ inverted?: boolean;
6
+ sliderCollapse?: boolean;
7
+ darkMode?: boolean;
8
+ themeColor: string;
9
+ }
10
+ declare function __VLS_template(): {
11
+ attrs: Partial<{}>;
12
+ slots: {
13
+ default?(_: {}): any;
14
+ };
15
+ refs: {};
16
+ rootEl: any;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue').DefineComponent<PropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
20
+ select: (menu: BaseMenuOptionType) => any;
21
+ toggleSliderCollapse: () => any;
22
+ }, string, import('vue').PublicProps, Readonly<PropsType> & Readonly<{
23
+ onSelect?: ((menu: BaseMenuOptionType) => any) | undefined;
24
+ onToggleSliderCollapse?: (() => any) | undefined;
25
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./first-level-menu.vue2.mjs";
2
+ /* empty css */
3
+ import t from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-937ba79c"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,65 @@
1
+ import { defineComponent as h, useCssVars as _, computed as g, resolveComponent as B, createElementBlock as n, openBlock as l, Fragment as c, createVNode as p, createElementVNode as r, unref as u, withCtx as d, normalizeClass as S, createBlock as m, resolveDynamicComponent as I, toDisplayString as D, renderSlot as V, renderList as w } from "vue";
2
+ import { createReusableTemplate as E } from "../../../../../node_modules/.pnpm/@vueuse_core@13.0.0_vue@3.5.13_typescript@5.7.2_/node_modules/@vueuse/core/index.mjs";
3
+ const F = { class: "w-full ellipsis-text text-center text-[12px]" }, K = { class: "h-full flex-col-stretch flex-1-hidden" }, z = /* @__PURE__ */ h({
4
+ name: "FirstLevelMenu",
5
+ __name: "first-level-menu",
6
+ props: {
7
+ menus: {},
8
+ activeMenuKey: {},
9
+ inverted: { type: Boolean },
10
+ sliderCollapse: { type: Boolean },
11
+ darkMode: { type: Boolean },
12
+ themeColor: {}
13
+ },
14
+ emits: ["select", "toggleSliderCollapse"],
15
+ setup(o, { emit: x }) {
16
+ _((t) => ({
17
+ v6a6cfcc8: b.value
18
+ }));
19
+ const [f, v] = E(), C = o, y = x, b = g(() => {
20
+ const { darkMode: t } = C;
21
+ return t ? "#000" : "#fff";
22
+ }), k = (t) => {
23
+ y("select", t);
24
+ };
25
+ return (t, L) => {
26
+ const M = B("SimpleScrollbar");
27
+ return l(), n(c, null, [
28
+ p(u(f), null, {
29
+ default: d(({ label: e, icon: s, activeIcon: a, active: i }) => [
30
+ r("div", {
31
+ class: S(["mx-[4px] mb-[6px] flex-col-bc cursor-pointer rounded-[8px] bg-transparent px-[4px] py-[8px] hover:bg-[rgba(0,0,0,0.08)]", {
32
+ "text-primary selected-mix-menu": i
33
+ }])
34
+ }, [
35
+ (l(), m(I(i && a ? a : s))),
36
+ r("p", F, D(e), 1)
37
+ ], 2)
38
+ ]),
39
+ _: 1
40
+ }),
41
+ r("div", K, [
42
+ V(t.$slots, "default", {}, void 0, !0),
43
+ p(M, null, {
44
+ default: d(() => [
45
+ (l(!0), n(c, null, w(o.menus, (e) => (l(), n(c, null, [
46
+ (l(), m(u(v), {
47
+ key: e.key,
48
+ label: e.label,
49
+ icon: e.icon,
50
+ active: e.key === o.activeMenuKey,
51
+ activeIcon: e.activeIcon,
52
+ onClick: (s) => k(e)
53
+ }, null, 8, ["label", "icon", "active", "activeIcon", "onClick"]))
54
+ ], 64))), 256))
55
+ ]),
56
+ _: 1
57
+ })
58
+ ])
59
+ ], 64);
60
+ };
61
+ }
62
+ });
63
+ export {
64
+ z as default
65
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import f from "./index.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };