hzzt-plus 0.0.1 → 0.0.2-dev-01

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 (546) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +6501 -104
  3. package/dist/index.full.min.js +18 -18
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +18 -18
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +6476 -106
  8. package/dist/locale/en.js +7 -2
  9. package/dist/locale/en.min.js +1 -1
  10. package/dist/locale/en.min.js.map +1 -1
  11. package/dist/locale/en.min.mjs +1 -1
  12. package/dist/locale/en.min.mjs.map +1 -1
  13. package/dist/locale/en.mjs +7 -2
  14. package/dist/locale/zh-cn.js +7 -2
  15. package/dist/locale/zh-cn.min.js +1 -1
  16. package/dist/locale/zh-cn.min.js.map +1 -1
  17. package/dist/locale/zh-cn.min.mjs +1 -1
  18. package/dist/locale/zh-cn.min.mjs.map +1 -1
  19. package/dist/locale/zh-cn.mjs +7 -2
  20. package/es/component.mjs +12 -2
  21. package/es/component.mjs.map +1 -1
  22. package/es/components/collapse/index.d.ts +55 -0
  23. package/es/components/collapse/index.mjs +8 -0
  24. package/es/components/collapse/index.mjs.map +1 -0
  25. package/es/components/collapse/src/index.mjs +70 -0
  26. package/es/components/collapse/src/index.mjs.map +1 -0
  27. package/es/components/collapse/src/index.vue.d.ts +55 -0
  28. package/es/components/collapse/style/css.d.ts +2 -0
  29. package/es/components/collapse/style/css.mjs +3 -0
  30. package/es/components/collapse/style/index.d.ts +2 -0
  31. package/es/components/collapse/style/index.mjs +3 -0
  32. package/es/components/config-provider/index.d.ts +41 -0
  33. package/es/components/config-provider/index.mjs +11 -0
  34. package/es/components/config-provider/index.mjs.map +1 -0
  35. package/es/components/config-provider/src/config-provider-props.d.ts +19 -0
  36. package/es/components/config-provider/src/config-provider-props.mjs +22 -0
  37. package/es/components/config-provider/src/config-provider-props.mjs.map +1 -0
  38. package/es/components/config-provider/src/config-provider.d.ts +38 -0
  39. package/es/components/config-provider/src/config-provider.mjs +15 -0
  40. package/es/components/config-provider/src/config-provider.mjs.map +1 -0
  41. package/es/components/config-provider/src/constants.d.ts +4 -0
  42. package/es/components/config-provider/src/constants.mjs +4 -0
  43. package/es/components/config-provider/src/constants.mjs.map +1 -0
  44. package/es/components/config-provider/src/hooks/use-global-config.d.ts +6 -0
  45. package/es/components/config-provider/src/hooks/use-global-config.mjs +57 -0
  46. package/es/components/config-provider/src/hooks/use-global-config.mjs.map +1 -0
  47. package/es/components/config-provider/style/css.d.ts +2 -0
  48. package/es/components/config-provider/style/css.mjs +3 -0
  49. package/es/components/config-provider/style/css.mjs.map +1 -0
  50. package/es/components/config-provider/style/index.d.ts +2 -0
  51. package/es/components/config-provider/style/index.mjs +3 -0
  52. package/es/components/dropdown/index.d.ts +102 -0
  53. package/es/components/dropdown/index.mjs +8 -0
  54. package/es/components/dropdown/index.mjs.map +1 -0
  55. package/es/components/dropdown/src/index.mjs +124 -0
  56. package/es/components/dropdown/src/index.mjs.map +1 -0
  57. package/es/components/dropdown/src/index.vue.d.ts +102 -0
  58. package/es/components/dropdown/style/css.d.ts +2 -0
  59. package/es/components/dropdown/style/css.mjs +3 -0
  60. package/es/components/dropdown/style/css.mjs.map +1 -0
  61. package/es/components/dropdown/style/index.d.ts +2 -0
  62. package/es/{packages/components/base → components/dropdown}/style/index.mjs.map +1 -1
  63. package/es/components/icon/index.d.ts +5 -0
  64. package/es/components/icon/index.mjs +17 -0
  65. package/es/components/icon/index.mjs.map +1 -0
  66. package/es/components/icon/src/index.mjs +34 -0
  67. package/es/components/icon/src/index.mjs.map +1 -0
  68. package/es/components/icon/src/index.vue.d.ts +102 -0
  69. package/es/components/icon/style/css.d.ts +2 -0
  70. package/es/components/icon/style/css.mjs +3 -0
  71. package/es/components/icon/style/css.mjs.map +1 -0
  72. package/es/components/icon/style/index.d.ts +2 -0
  73. package/es/components/icon/style/index.mjs +3 -0
  74. package/es/components/icon/style/index.mjs.map +1 -0
  75. package/es/components/index.d.ts +5 -0
  76. package/es/components/index.mjs +10 -0
  77. package/es/components/index.mjs.map +1 -0
  78. package/es/components/tab/index.d.ts +45 -0
  79. package/es/components/tab/index.mjs +8 -0
  80. package/es/components/tab/index.mjs.map +1 -0
  81. package/es/components/tab/src/index.mjs +78 -0
  82. package/es/components/tab/src/index.mjs.map +1 -0
  83. package/es/components/tab/src/index.vue.d.ts +45 -0
  84. package/es/components/tab/style/css.d.ts +2 -0
  85. package/es/{packages/components/title → components/tab}/style/css.mjs +1 -1
  86. package/es/components/tab/style/css.mjs.map +1 -0
  87. package/es/components/tab/style/index.d.ts +2 -0
  88. package/es/components/tab/style/index.mjs +3 -0
  89. package/es/components/tab/style/index.mjs.map +1 -0
  90. package/es/components/title/index.mjs.map +1 -0
  91. package/es/{packages/components → components}/title/src/index.mjs +1 -1
  92. package/es/components/title/src/index.mjs.map +1 -0
  93. package/es/components/title/style/css.d.ts +1 -1
  94. package/es/components/title/style/css.mjs +3 -0
  95. package/es/components/title/style/css.mjs.map +1 -0
  96. package/es/components/title/style/index.mjs +3 -0
  97. package/es/components/title/style/index.mjs.map +1 -0
  98. package/es/constants/aria.mjs.map +1 -0
  99. package/es/constants/date.mjs.map +1 -0
  100. package/es/constants/event.mjs.map +1 -0
  101. package/es/constants/key.mjs.map +1 -0
  102. package/es/constants/size.mjs.map +1 -0
  103. package/es/defaults.d.ts +1 -1
  104. package/es/directives/blur/index.d.ts +3 -0
  105. package/es/directives/blur/index.mjs +10 -0
  106. package/es/directives/blur/index.mjs.map +1 -0
  107. package/es/directives/download/index.d.ts +3 -0
  108. package/es/directives/download/index.mjs +21 -0
  109. package/es/directives/download/index.mjs.map +1 -0
  110. package/es/directives/height/index.d.ts +3 -0
  111. package/es/directives/height/index.mjs +78 -0
  112. package/es/directives/height/index.mjs.map +1 -0
  113. package/es/directives/highlight/index.d.ts +3 -0
  114. package/es/directives/highlight/index.mjs +30 -0
  115. package/es/directives/highlight/index.mjs.map +1 -0
  116. package/es/directives/index.d.ts +4 -0
  117. package/es/directives/index.mjs +5 -0
  118. package/es/directives/index.mjs.map +1 -0
  119. package/es/hooks/index.d.ts +2 -0
  120. package/es/hooks/index.mjs +3 -0
  121. package/es/hooks/index.mjs.map +1 -0
  122. package/es/hooks/use-locale/index.d.ts +15 -0
  123. package/es/hooks/use-locale/index.mjs +26 -0
  124. package/es/hooks/use-locale/index.mjs.map +1 -0
  125. package/es/hooks/use-size/index.d.ts +21 -0
  126. package/es/hooks/use-size/index.mjs +24 -0
  127. package/es/hooks/use-size/index.mjs.map +1 -0
  128. package/es/index.d.ts +4 -1
  129. package/es/index.mjs +22 -2
  130. package/es/index.mjs.map +1 -1
  131. package/es/locale/index.d.ts +1 -1
  132. package/es/locale/index.mjs.map +1 -0
  133. package/es/locale/lang/en.d.ts +6 -1
  134. package/es/locale/lang/en.mjs +12 -0
  135. package/es/locale/lang/en.mjs.map +1 -0
  136. package/es/locale/lang/zh-cn.d.ts +6 -1
  137. package/es/{packages/locale → locale}/lang/zh-cn.mjs +6 -1
  138. package/es/locale/lang/zh-cn.mjs.map +1 -0
  139. package/es/locales.d.ts +1 -0
  140. package/es/locales.mjs +4 -0
  141. package/es/locales.mjs.map +1 -0
  142. package/es/make-installer.d.ts +1 -1
  143. package/es/make-installer.mjs +7 -3
  144. package/es/make-installer.mjs.map +1 -1
  145. package/es/utils/arrays.mjs.map +1 -0
  146. package/es/utils/browser.mjs.map +1 -0
  147. package/es/utils/dom/aria.mjs.map +1 -0
  148. package/es/utils/dom/element.mjs.map +1 -0
  149. package/es/utils/dom/event.mjs.map +1 -0
  150. package/es/utils/dom/position.mjs.map +1 -0
  151. package/es/utils/dom/scroll.mjs.map +1 -0
  152. package/es/utils/dom/style.mjs.map +1 -0
  153. package/es/utils/easings.mjs.map +1 -0
  154. package/es/utils/error.mjs.map +1 -0
  155. package/es/utils/i18n.mjs.map +1 -0
  156. package/es/utils/objects.mjs.map +1 -0
  157. package/es/utils/raf.mjs.map +1 -0
  158. package/es/utils/rand.mjs.map +1 -0
  159. package/es/utils/strings.mjs.map +1 -0
  160. package/es/utils/throttleByRaf.mjs.map +1 -0
  161. package/es/utils/types.mjs.map +1 -0
  162. package/es/utils/typescript.mjs.map +1 -0
  163. package/es/utils/vue/global-node.mjs.map +1 -0
  164. package/es/utils/vue/icon.mjs +33 -0
  165. package/es/utils/vue/icon.mjs.map +1 -0
  166. package/es/utils/vue/install.mjs.map +1 -0
  167. package/es/utils/vue/props/runtime.mjs.map +1 -0
  168. package/es/utils/vue/refs.mjs.map +1 -0
  169. package/es/utils/vue/size.mjs.map +1 -0
  170. package/es/utils/vue/validator.mjs.map +1 -0
  171. package/es/utils/vue/vnode.d.ts +6 -6
  172. package/es/utils/vue/vnode.mjs.map +1 -0
  173. package/es/version.d.ts +1 -1
  174. package/es/version.mjs +1 -1
  175. package/es/version.mjs.map +1 -1
  176. package/global.d.ts +5 -0
  177. package/lib/component.js +12 -2
  178. package/lib/component.js.map +1 -1
  179. package/lib/components/collapse/index.d.ts +55 -0
  180. package/lib/components/collapse/index.js +13 -0
  181. package/lib/components/collapse/index.js.map +1 -0
  182. package/lib/components/collapse/src/index.js +74 -0
  183. package/lib/components/collapse/src/index.js.map +1 -0
  184. package/lib/components/collapse/src/index.vue.d.ts +55 -0
  185. package/lib/components/collapse/style/css.d.ts +2 -0
  186. package/lib/components/collapse/style/css.js +6 -0
  187. package/lib/components/collapse/style/index.d.ts +2 -0
  188. package/lib/components/collapse/style/index.js +6 -0
  189. package/lib/components/config-provider/index.d.ts +41 -0
  190. package/lib/components/config-provider/index.js +20 -0
  191. package/lib/components/config-provider/index.js.map +1 -0
  192. package/lib/components/config-provider/src/config-provider-props.d.ts +19 -0
  193. package/lib/components/config-provider/src/config-provider-props.js +26 -0
  194. package/lib/components/config-provider/src/config-provider-props.js.map +1 -0
  195. package/lib/components/config-provider/src/config-provider.d.ts +38 -0
  196. package/lib/components/config-provider/src/config-provider.js +19 -0
  197. package/lib/components/config-provider/src/config-provider.js.map +1 -0
  198. package/lib/components/config-provider/src/constants.d.ts +4 -0
  199. package/lib/components/config-provider/src/constants.js +8 -0
  200. package/lib/components/config-provider/src/constants.js.map +1 -0
  201. package/lib/components/config-provider/src/hooks/use-global-config.d.ts +6 -0
  202. package/lib/components/config-provider/src/hooks/use-global-config.js +62 -0
  203. package/lib/components/config-provider/src/hooks/use-global-config.js.map +1 -0
  204. package/lib/components/config-provider/style/css.d.ts +2 -0
  205. package/lib/components/config-provider/style/css.js +6 -0
  206. package/lib/components/config-provider/style/css.js.map +1 -0
  207. package/lib/components/config-provider/style/index.d.ts +2 -0
  208. package/lib/components/config-provider/style/index.js +6 -0
  209. package/lib/{packages/components → components/config-provider/style}/index.js.map +1 -1
  210. package/lib/components/dropdown/index.d.ts +102 -0
  211. package/lib/components/dropdown/index.js +13 -0
  212. package/lib/components/dropdown/index.js.map +1 -0
  213. package/lib/components/dropdown/src/index.js +128 -0
  214. package/lib/components/dropdown/src/index.js.map +1 -0
  215. package/lib/components/dropdown/src/index.vue.d.ts +102 -0
  216. package/lib/components/dropdown/style/css.d.ts +2 -0
  217. package/lib/components/dropdown/style/css.js +6 -0
  218. package/lib/components/dropdown/style/css.js.map +1 -0
  219. package/lib/components/dropdown/style/index.d.ts +2 -0
  220. package/lib/components/dropdown/style/index.js.map +1 -0
  221. package/lib/components/icon/index.d.ts +5 -0
  222. package/lib/components/icon/index.js +42 -0
  223. package/lib/components/icon/index.js.map +1 -0
  224. package/lib/components/icon/src/index.js +38 -0
  225. package/lib/components/icon/src/index.js.map +1 -0
  226. package/lib/components/icon/src/index.vue.d.ts +102 -0
  227. package/lib/components/icon/style/css.d.ts +2 -0
  228. package/lib/components/icon/style/css.js +6 -0
  229. package/lib/components/icon/style/css.js.map +1 -0
  230. package/lib/components/icon/style/index.d.ts +2 -0
  231. package/lib/components/icon/style/index.js +6 -0
  232. package/lib/components/icon/style/index.js.map +1 -0
  233. package/lib/components/index.d.ts +5 -0
  234. package/lib/components/index.js +27 -0
  235. package/lib/components/index.js.map +1 -0
  236. package/lib/components/tab/index.d.ts +45 -0
  237. package/lib/components/tab/index.js +13 -0
  238. package/lib/components/tab/index.js.map +1 -0
  239. package/lib/components/tab/src/index.js +82 -0
  240. package/lib/components/tab/src/index.js.map +1 -0
  241. package/lib/components/tab/src/index.vue.d.ts +45 -0
  242. package/lib/components/tab/style/css.d.ts +2 -0
  243. package/lib/{packages/components/title → components/tab}/style/css.js +1 -1
  244. package/lib/components/tab/style/css.js.map +1 -0
  245. package/lib/components/tab/style/index.d.ts +2 -0
  246. package/lib/components/tab/style/index.js +6 -0
  247. package/lib/components/tab/style/index.js.map +1 -0
  248. package/lib/components/title/index.js.map +1 -0
  249. package/lib/{packages/components → components}/title/src/index.js +1 -1
  250. package/lib/components/title/src/index.js.map +1 -0
  251. package/lib/components/title/style/css.d.ts +1 -1
  252. package/lib/components/title/style/css.js +6 -0
  253. package/lib/components/title/style/css.js.map +1 -0
  254. package/lib/components/title/style/index.js +6 -0
  255. package/lib/components/title/style/index.js.map +1 -0
  256. package/lib/constants/aria.js.map +1 -0
  257. package/lib/constants/date.js.map +1 -0
  258. package/lib/constants/event.js.map +1 -0
  259. package/lib/constants/key.js.map +1 -0
  260. package/lib/constants/size.js.map +1 -0
  261. package/lib/defaults.d.ts +1 -1
  262. package/lib/directives/blur/index.d.ts +3 -0
  263. package/lib/directives/blur/index.js +14 -0
  264. package/lib/directives/blur/index.js.map +1 -0
  265. package/lib/directives/download/index.d.ts +3 -0
  266. package/lib/directives/download/index.js +25 -0
  267. package/lib/directives/download/index.js.map +1 -0
  268. package/lib/directives/height/index.d.ts +3 -0
  269. package/lib/directives/height/index.js +82 -0
  270. package/lib/directives/height/index.js.map +1 -0
  271. package/lib/directives/highlight/index.d.ts +3 -0
  272. package/lib/directives/highlight/index.js +34 -0
  273. package/lib/directives/highlight/index.js.map +1 -0
  274. package/lib/directives/index.d.ts +4 -0
  275. package/lib/directives/index.js +16 -0
  276. package/lib/hooks/index.d.ts +2 -0
  277. package/lib/hooks/index.js +19 -0
  278. package/lib/hooks/index.js.map +1 -0
  279. package/lib/hooks/use-locale/index.d.ts +15 -0
  280. package/lib/hooks/use-locale/index.js +34 -0
  281. package/lib/hooks/use-locale/index.js.map +1 -0
  282. package/lib/hooks/use-size/index.d.ts +21 -0
  283. package/lib/hooks/use-size/index.js +31 -0
  284. package/lib/hooks/use-size/index.js.map +1 -0
  285. package/lib/index.d.ts +4 -1
  286. package/lib/index.js +49 -2
  287. package/lib/index.js.map +1 -1
  288. package/lib/locale/index.d.ts +1 -1
  289. package/lib/locale/lang/en.d.ts +6 -1
  290. package/lib/locale/lang/en.js +16 -0
  291. package/lib/locale/lang/en.js.map +1 -0
  292. package/lib/locale/lang/zh-cn.d.ts +6 -1
  293. package/lib/{packages/locale → locale}/lang/zh-cn.js +6 -1
  294. package/lib/locale/lang/zh-cn.js.map +1 -0
  295. package/lib/locales.d.ts +1 -0
  296. package/lib/locales.js +13 -0
  297. package/lib/locales.js.map +1 -0
  298. package/lib/make-installer.d.ts +1 -1
  299. package/lib/make-installer.js +7 -3
  300. package/lib/make-installer.js.map +1 -1
  301. package/lib/utils/arrays.js.map +1 -0
  302. package/lib/utils/browser.js.map +1 -0
  303. package/lib/utils/dom/aria.js.map +1 -0
  304. package/lib/utils/dom/element.js.map +1 -0
  305. package/lib/utils/dom/event.js.map +1 -0
  306. package/lib/utils/dom/position.js.map +1 -0
  307. package/lib/utils/dom/scroll.js.map +1 -0
  308. package/lib/utils/dom/style.js.map +1 -0
  309. package/lib/utils/easings.js.map +1 -0
  310. package/lib/utils/error.js.map +1 -0
  311. package/lib/utils/i18n.js.map +1 -0
  312. package/lib/utils/objects.js.map +1 -0
  313. package/lib/utils/raf.js.map +1 -0
  314. package/lib/utils/rand.js.map +1 -0
  315. package/lib/utils/strings.js.map +1 -0
  316. package/lib/utils/throttleByRaf.js.map +1 -0
  317. package/lib/utils/types.js.map +1 -0
  318. package/lib/utils/typescript.js.map +1 -0
  319. package/lib/utils/vue/global-node.js.map +1 -0
  320. package/lib/{packages/utils → utils}/vue/icon.js +14 -14
  321. package/lib/utils/vue/icon.js.map +1 -0
  322. package/lib/utils/vue/install.js.map +1 -0
  323. package/lib/utils/vue/props/index.js.map +1 -0
  324. package/lib/utils/vue/props/runtime.js.map +1 -0
  325. package/lib/utils/vue/refs.js.map +1 -0
  326. package/lib/utils/vue/size.js.map +1 -0
  327. package/lib/utils/vue/validator.js.map +1 -0
  328. package/lib/utils/vue/vnode.d.ts +6 -6
  329. package/lib/utils/vue/vnode.js.map +1 -0
  330. package/lib/version.d.ts +1 -1
  331. package/lib/version.js +1 -1
  332. package/lib/version.js.map +1 -1
  333. package/package.json +3 -1
  334. package/theme/base.css +1 -1
  335. package/theme/hzzt-collapse.css +1 -0
  336. package/theme/hzzt-config-provider.css +0 -0
  337. package/theme/hzzt-dropdown.css +1 -0
  338. package/theme/hzzt-icon.css +0 -0
  339. package/theme/hzzt-tab.css +1 -0
  340. package/theme/hzzt-title.css +1 -1
  341. package/theme/index.css +1 -1
  342. package/theme/src/base.scss +1 -1
  343. package/theme/src/collapse.scss +56 -0
  344. package/theme/src/common/{position.scss → display.scss} +35 -0
  345. package/theme/src/common/font.scss +13 -0
  346. package/theme/src/config-provider.scss +0 -0
  347. package/theme/src/dropdown.scss +178 -0
  348. package/theme/src/icon.scss +0 -0
  349. package/theme/src/index.scss +4 -0
  350. package/theme/src/tab.scss +63 -0
  351. package/theme/src/title.scss +2 -2
  352. package/es/node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.2.37/node_modules/@element-plus/icons-vue/dist/index.mjs +0 -5764
  353. package/es/node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.2.37/node_modules/@element-plus/icons-vue/dist/index.mjs.map +0 -1
  354. package/es/packages/components/index.mjs +0 -2
  355. package/es/packages/components/title/index.mjs.map +0 -1
  356. package/es/packages/components/title/src/index.mjs.map +0 -1
  357. package/es/packages/constants/aria.mjs.map +0 -1
  358. package/es/packages/constants/date.mjs.map +0 -1
  359. package/es/packages/constants/event.mjs.map +0 -1
  360. package/es/packages/constants/key.mjs.map +0 -1
  361. package/es/packages/constants/size.mjs.map +0 -1
  362. package/es/packages/locale/lang/en.mjs +0 -7
  363. package/es/packages/locale/lang/en.mjs.map +0 -1
  364. package/es/packages/locale/lang/zh-cn.mjs.map +0 -1
  365. package/es/packages/utils/arrays.mjs.map +0 -1
  366. package/es/packages/utils/browser.mjs.map +0 -1
  367. package/es/packages/utils/dom/aria.mjs.map +0 -1
  368. package/es/packages/utils/dom/element.mjs.map +0 -1
  369. package/es/packages/utils/dom/event.mjs.map +0 -1
  370. package/es/packages/utils/dom/position.mjs.map +0 -1
  371. package/es/packages/utils/dom/scroll.mjs.map +0 -1
  372. package/es/packages/utils/dom/style.mjs.map +0 -1
  373. package/es/packages/utils/easings.mjs.map +0 -1
  374. package/es/packages/utils/error.mjs.map +0 -1
  375. package/es/packages/utils/i18n.mjs.map +0 -1
  376. package/es/packages/utils/objects.mjs.map +0 -1
  377. package/es/packages/utils/raf.mjs.map +0 -1
  378. package/es/packages/utils/rand.mjs.map +0 -1
  379. package/es/packages/utils/strings.mjs.map +0 -1
  380. package/es/packages/utils/throttleByRaf.mjs.map +0 -1
  381. package/es/packages/utils/types.mjs.map +0 -1
  382. package/es/packages/utils/typescript.mjs.map +0 -1
  383. package/es/packages/utils/vue/global-node.mjs.map +0 -1
  384. package/es/packages/utils/vue/icon.mjs +0 -33
  385. package/es/packages/utils/vue/icon.mjs.map +0 -1
  386. package/es/packages/utils/vue/install.mjs.map +0 -1
  387. package/es/packages/utils/vue/props/runtime.mjs.map +0 -1
  388. package/es/packages/utils/vue/refs.mjs.map +0 -1
  389. package/es/packages/utils/vue/size.mjs.map +0 -1
  390. package/es/packages/utils/vue/validator.mjs.map +0 -1
  391. package/es/packages/utils/vue/vnode.mjs.map +0 -1
  392. package/lib/node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.2.37/node_modules/@element-plus/icons-vue/dist/index.js +0 -6060
  393. package/lib/node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.2.37/node_modules/@element-plus/icons-vue/dist/index.js.map +0 -1
  394. package/lib/packages/components/index.js +0 -10
  395. package/lib/packages/components/title/index.js.map +0 -1
  396. package/lib/packages/components/title/src/index.js.map +0 -1
  397. package/lib/packages/constants/aria.js.map +0 -1
  398. package/lib/packages/constants/date.js.map +0 -1
  399. package/lib/packages/constants/event.js.map +0 -1
  400. package/lib/packages/constants/key.js.map +0 -1
  401. package/lib/packages/constants/size.js.map +0 -1
  402. package/lib/packages/locale/lang/en.js +0 -11
  403. package/lib/packages/locale/lang/en.js.map +0 -1
  404. package/lib/packages/locale/lang/zh-cn.js.map +0 -1
  405. package/lib/packages/utils/arrays.js.map +0 -1
  406. package/lib/packages/utils/browser.js.map +0 -1
  407. package/lib/packages/utils/dom/aria.js.map +0 -1
  408. package/lib/packages/utils/dom/element.js.map +0 -1
  409. package/lib/packages/utils/dom/event.js.map +0 -1
  410. package/lib/packages/utils/dom/position.js.map +0 -1
  411. package/lib/packages/utils/dom/scroll.js.map +0 -1
  412. package/lib/packages/utils/dom/style.js.map +0 -1
  413. package/lib/packages/utils/easings.js.map +0 -1
  414. package/lib/packages/utils/error.js.map +0 -1
  415. package/lib/packages/utils/i18n.js.map +0 -1
  416. package/lib/packages/utils/objects.js.map +0 -1
  417. package/lib/packages/utils/raf.js.map +0 -1
  418. package/lib/packages/utils/rand.js.map +0 -1
  419. package/lib/packages/utils/strings.js.map +0 -1
  420. package/lib/packages/utils/throttleByRaf.js.map +0 -1
  421. package/lib/packages/utils/types.js.map +0 -1
  422. package/lib/packages/utils/typescript.js.map +0 -1
  423. package/lib/packages/utils/vue/global-node.js.map +0 -1
  424. package/lib/packages/utils/vue/icon.js.map +0 -1
  425. package/lib/packages/utils/vue/install.js.map +0 -1
  426. package/lib/packages/utils/vue/props/runtime.js.map +0 -1
  427. package/lib/packages/utils/vue/refs.js.map +0 -1
  428. package/lib/packages/utils/vue/size.js.map +0 -1
  429. package/lib/packages/utils/vue/validator.js.map +0 -1
  430. package/lib/packages/utils/vue/vnode.js.map +0 -1
  431. /package/es/{packages/components → components}/base/style/css.mjs +0 -0
  432. /package/es/{packages/components → components}/base/style/css.mjs.map +0 -0
  433. /package/es/{packages/components → components}/base/style/index.mjs +0 -0
  434. /package/es/{packages/components → components/base/style}/index.mjs.map +0 -0
  435. /package/es/{packages/components/title → components/collapse}/style/css.mjs.map +0 -0
  436. /package/es/{packages/locale → components/collapse/style}/index.mjs.map +0 -0
  437. /package/es/{packages/components/title → components/config-provider}/style/index.mjs.map +0 -0
  438. /package/es/{packages/components/title → components/dropdown}/style/index.mjs +0 -0
  439. /package/es/{packages/components → components}/title/index.mjs +0 -0
  440. /package/es/{packages/constants → constants}/aria.mjs +0 -0
  441. /package/es/{packages/constants → constants}/date.mjs +0 -0
  442. /package/es/{packages/constants → constants}/event.mjs +0 -0
  443. /package/es/{packages/constants → constants}/index.mjs +0 -0
  444. /package/es/{packages/utils/vue/props → constants}/index.mjs.map +0 -0
  445. /package/es/{packages/constants → constants}/key.mjs +0 -0
  446. /package/es/{packages/constants → constants}/size.mjs +0 -0
  447. /package/es/{packages/locale → locale}/index.mjs +0 -0
  448. /package/es/{packages/utils → utils}/arrays.mjs +0 -0
  449. /package/es/{packages/utils → utils}/browser.mjs +0 -0
  450. /package/es/{packages/utils → utils}/dom/aria.mjs +0 -0
  451. /package/es/{packages/utils → utils}/dom/element.mjs +0 -0
  452. /package/es/{packages/utils → utils}/dom/event.mjs +0 -0
  453. /package/es/{packages/utils → utils}/dom/index.mjs +0 -0
  454. /package/es/{packages/utils → utils}/dom/index.mjs.map +0 -0
  455. /package/es/{packages/utils → utils}/dom/position.mjs +0 -0
  456. /package/es/{packages/utils → utils}/dom/scroll.mjs +0 -0
  457. /package/es/{packages/utils → utils}/dom/style.mjs +0 -0
  458. /package/es/{packages/utils → utils}/easings.mjs +0 -0
  459. /package/es/{packages/utils → utils}/error.mjs +0 -0
  460. /package/es/{packages/utils → utils}/functions.mjs +0 -0
  461. /package/es/{packages/utils → utils}/functions.mjs.map +0 -0
  462. /package/es/{packages/utils → utils}/i18n.mjs +0 -0
  463. /package/es/{packages/utils → utils}/index.mjs +0 -0
  464. /package/es/{packages/utils → utils}/index.mjs.map +0 -0
  465. /package/es/{packages/utils → utils}/objects.mjs +0 -0
  466. /package/es/{packages/utils → utils}/raf.mjs +0 -0
  467. /package/es/{packages/utils → utils}/rand.mjs +0 -0
  468. /package/es/{packages/utils → utils}/strings.mjs +0 -0
  469. /package/es/{packages/utils → utils}/throttleByRaf.mjs +0 -0
  470. /package/es/{packages/utils → utils}/types.mjs +0 -0
  471. /package/es/{packages/utils → utils}/typescript.mjs +0 -0
  472. /package/es/{packages/utils → utils}/vue/global-node.mjs +0 -0
  473. /package/es/{packages/utils → utils}/vue/index.mjs +0 -0
  474. /package/es/{packages/utils → utils}/vue/index.mjs.map +0 -0
  475. /package/es/{packages/utils → utils}/vue/install.mjs +0 -0
  476. /package/es/{packages/utils → utils}/vue/props/index.mjs +0 -0
  477. /package/es/{packages/constants → utils/vue/props}/index.mjs.map +0 -0
  478. /package/es/{packages/utils → utils}/vue/props/runtime.mjs +0 -0
  479. /package/es/{packages/utils → utils}/vue/props/types.mjs +0 -0
  480. /package/es/{packages/utils → utils}/vue/props/types.mjs.map +0 -0
  481. /package/es/{packages/utils → utils}/vue/props/util.mjs +0 -0
  482. /package/es/{packages/utils → utils}/vue/props/util.mjs.map +0 -0
  483. /package/es/{packages/utils → utils}/vue/refs.mjs +0 -0
  484. /package/es/{packages/utils → utils}/vue/size.mjs +0 -0
  485. /package/es/{packages/utils → utils}/vue/typescript.mjs +0 -0
  486. /package/es/{packages/utils → utils}/vue/typescript.mjs.map +0 -0
  487. /package/es/{packages/utils → utils}/vue/validator.mjs +0 -0
  488. /package/es/{packages/utils → utils}/vue/vnode.mjs +0 -0
  489. /package/lib/{packages/components → components}/base/style/css.js +0 -0
  490. /package/lib/{packages/components → components}/base/style/css.js.map +0 -0
  491. /package/lib/{packages/components → components}/base/style/index.js +0 -0
  492. /package/lib/{packages/components → components}/base/style/index.js.map +0 -0
  493. /package/lib/{packages/components/title → components/collapse}/style/css.js.map +0 -0
  494. /package/lib/{packages/components/title → components/collapse}/style/index.js.map +0 -0
  495. /package/lib/{packages/components/title → components/dropdown}/style/index.js +0 -0
  496. /package/lib/{packages/components → components}/title/index.js +0 -0
  497. /package/lib/{packages/constants → constants}/aria.js +0 -0
  498. /package/lib/{packages/constants → constants}/date.js +0 -0
  499. /package/lib/{packages/constants → constants}/event.js +0 -0
  500. /package/lib/{packages/constants → constants}/index.js +0 -0
  501. /package/lib/{packages/utils/vue/props → constants}/index.js.map +0 -0
  502. /package/lib/{packages/constants → constants}/key.js +0 -0
  503. /package/lib/{packages/constants → constants}/size.js +0 -0
  504. /package/lib/{packages/constants → directives}/index.js.map +0 -0
  505. /package/lib/{packages/locale → locale}/index.js +0 -0
  506. /package/lib/{packages/locale → locale}/index.js.map +0 -0
  507. /package/lib/{packages/utils → utils}/arrays.js +0 -0
  508. /package/lib/{packages/utils → utils}/browser.js +0 -0
  509. /package/lib/{packages/utils → utils}/dom/aria.js +0 -0
  510. /package/lib/{packages/utils → utils}/dom/element.js +0 -0
  511. /package/lib/{packages/utils → utils}/dom/event.js +0 -0
  512. /package/lib/{packages/utils → utils}/dom/index.js +0 -0
  513. /package/lib/{packages/utils → utils}/dom/index.js.map +0 -0
  514. /package/lib/{packages/utils → utils}/dom/position.js +0 -0
  515. /package/lib/{packages/utils → utils}/dom/scroll.js +0 -0
  516. /package/lib/{packages/utils → utils}/dom/style.js +0 -0
  517. /package/lib/{packages/utils → utils}/easings.js +0 -0
  518. /package/lib/{packages/utils → utils}/error.js +0 -0
  519. /package/lib/{packages/utils → utils}/functions.js +0 -0
  520. /package/lib/{packages/utils → utils}/functions.js.map +0 -0
  521. /package/lib/{packages/utils → utils}/i18n.js +0 -0
  522. /package/lib/{packages/utils → utils}/index.js +0 -0
  523. /package/lib/{packages/utils → utils}/index.js.map +0 -0
  524. /package/lib/{packages/utils → utils}/objects.js +0 -0
  525. /package/lib/{packages/utils → utils}/raf.js +0 -0
  526. /package/lib/{packages/utils → utils}/rand.js +0 -0
  527. /package/lib/{packages/utils → utils}/strings.js +0 -0
  528. /package/lib/{packages/utils → utils}/throttleByRaf.js +0 -0
  529. /package/lib/{packages/utils → utils}/types.js +0 -0
  530. /package/lib/{packages/utils → utils}/typescript.js +0 -0
  531. /package/lib/{packages/utils → utils}/vue/global-node.js +0 -0
  532. /package/lib/{packages/utils → utils}/vue/index.js +0 -0
  533. /package/lib/{packages/utils → utils}/vue/index.js.map +0 -0
  534. /package/lib/{packages/utils → utils}/vue/install.js +0 -0
  535. /package/lib/{packages/utils → utils}/vue/props/index.js +0 -0
  536. /package/lib/{packages/utils → utils}/vue/props/runtime.js +0 -0
  537. /package/lib/{packages/utils → utils}/vue/props/types.js +0 -0
  538. /package/lib/{packages/utils → utils}/vue/props/types.js.map +0 -0
  539. /package/lib/{packages/utils → utils}/vue/props/util.js +0 -0
  540. /package/lib/{packages/utils → utils}/vue/props/util.js.map +0 -0
  541. /package/lib/{packages/utils → utils}/vue/refs.js +0 -0
  542. /package/lib/{packages/utils → utils}/vue/size.js +0 -0
  543. /package/lib/{packages/utils → utils}/vue/typescript.js +0 -0
  544. /package/lib/{packages/utils → utils}/vue/typescript.js.map +0 -0
  545. /package/lib/{packages/utils → utils}/vue/validator.js +0 -0
  546. /package/lib/{packages/utils → utils}/vue/vnode.js +0 -0
@@ -0,0 +1,45 @@
1
+ export declare const HzztTab: import("hzzt-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
2
+ tabList: {
3
+ type: ArrayConstructor;
4
+ default: () => never[];
5
+ };
6
+ modelValue: {
7
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
8
+ };
9
+ }, {
10
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
11
+ tabList: {
12
+ type: ArrayConstructor;
13
+ default: () => never[];
14
+ };
15
+ modelValue: {
16
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
17
+ };
18
+ }>> & {
19
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
20
+ "onTab-click"?: ((...args: any[]) => any) | undefined;
21
+ }>>;
22
+ emit: (event: "update:modelValue" | "tab-click", ...args: any[]) => void;
23
+ customTabList: import("vue").ComputedRef<{
24
+ number: number;
25
+ hide: boolean;
26
+ name: string;
27
+ label: string;
28
+ key: string;
29
+ }[]>;
30
+ tabClick: (tab: any, event: any) => void;
31
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "tab-click")[], "update:modelValue" | "tab-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
+ tabList: {
33
+ type: ArrayConstructor;
34
+ default: () => never[];
35
+ };
36
+ modelValue: {
37
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
38
+ };
39
+ }>> & {
40
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
41
+ "onTab-click"?: ((...args: any[]) => any) | undefined;
42
+ }, {
43
+ tabList: unknown[];
44
+ }>> & Record<string, any>;
45
+ export default HzztTab;
@@ -0,0 +1,8 @@
1
+ import '../../utils/index.mjs';
2
+ import Tab from './src/index.mjs';
3
+ import { withInstall } from '../../utils/vue/install.mjs';
4
+
5
+ const HzztTab = withInstall(Tab);
6
+
7
+ export { HzztTab, HzztTab as default };
8
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/tab/index.ts"],"sourcesContent":["import { withInstall } from '@hzzt-plus/utils'\n\nimport Tab from './src/index.vue';\n\nexport const HzztTab = withInstall(Tab);\nexport default HzztTab\n"],"names":[],"mappings":";;;;AAEY,MAAC,OAAO,GAAG,WAAW,CAAC,GAAG;;;;"}
@@ -0,0 +1,78 @@
1
+ import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, Fragment, renderList, unref, normalizeClass, toDisplayString, createCommentVNode, renderSlot } from 'vue';
2
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
3
+
4
+ const _hoisted_1 = { class: "hzzt-tab flex align-items-center justify-content-between wrap" };
5
+ const _hoisted_2 = { class: "flex align-items-center" };
6
+ const _hoisted_3 = { class: "flex" };
7
+ const _hoisted_4 = ["onClick"];
8
+ const _hoisted_5 = { class: "hzzt-tab-badge" };
9
+ const _hoisted_6 = {
10
+ key: 0,
11
+ class: "hzzt-tab-badge-count"
12
+ };
13
+ const _hoisted_7 = { class: "flex wrap" };
14
+ const __default__ = defineComponent({
15
+ name: "HzztTab"
16
+ });
17
+ const _sfc_main = /* @__PURE__ */ defineComponent({
18
+ ...__default__,
19
+ props: {
20
+ tabList: {
21
+ type: Array,
22
+ default: () => []
23
+ },
24
+ modelValue: {
25
+ type: [Number, String, Array]
26
+ }
27
+ },
28
+ emits: ["update:modelValue", "tab-click"],
29
+ setup(__props, { emit }) {
30
+ const props = __props;
31
+ const customTabList = computed(() => props.tabList.map((value) => {
32
+ const tab = value;
33
+ return {
34
+ key: tab.name + "-" + tab.number,
35
+ ...tab,
36
+ number: Number(tab.number || 0),
37
+ hide: tab.hide
38
+ };
39
+ }).filter((tab) => !tab.hide));
40
+ function tabClick(tab, event) {
41
+ if (tab.name === props.modelValue)
42
+ return;
43
+ emit("update:modelValue", tab.name);
44
+ emit("tab-click", tab, event);
45
+ }
46
+ return (_ctx, _cache) => {
47
+ return openBlock(), createElementBlock("div", _hoisted_1, [
48
+ createElementVNode("div", _hoisted_2, [
49
+ createElementVNode("div", _hoisted_3, [
50
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(customTabList), (tab) => {
51
+ return openBlock(), createElementBlock("div", {
52
+ key: tab.key,
53
+ onClick: ($event) => tabClick(tab, $event),
54
+ class: "hzzt-tab-pane"
55
+ }, [
56
+ createElementVNode("div", _hoisted_5, [
57
+ createElementVNode("p", {
58
+ class: normalizeClass([{ active: __props.modelValue === tab.name }, "hzzt-tab-badge-text"])
59
+ }, toDisplayString(tab.label), 3),
60
+ tab.number && tab.number !== 0 ? (openBlock(), createElementBlock("p", _hoisted_6, toDisplayString(tab.number > 999 ? "999+" : tab.number), 1)) : createCommentVNode("v-if", true)
61
+ ])
62
+ ], 8, _hoisted_4);
63
+ }), 128))
64
+ ]),
65
+ renderSlot(_ctx.$slots, "filter"),
66
+ renderSlot(_ctx.$slots, "extra")
67
+ ]),
68
+ createElementVNode("div", _hoisted_7, [
69
+ renderSlot(_ctx.$slots, "right")
70
+ ])
71
+ ]);
72
+ };
73
+ }
74
+ });
75
+ var Tab = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "index.vue"]]);
76
+
77
+ export { Tab as default };
78
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../packages/components/tab/src/index.vue"],"sourcesContent":["<template>\n <div class=\"hzzt-tab flex align-items-center justify-content-between wrap\">\n <div class=\"flex align-items-center\">\n <div class=\"flex\">\n <div :key=\"tab.key\" @click=\"tabClick(tab, $event)\" class=\"hzzt-tab-pane\" v-for=\"tab in customTabList\">\n <div class=\"hzzt-tab-badge\">\n <p :class=\"{ active: modelValue === tab.name }\" class=\"hzzt-tab-badge-text\">{{ tab.label }}</p>\n <p class=\"hzzt-tab-badge-count\" v-if=\"tab.number && tab.number !== 0\">{{\n tab.number > 999 ? '999+' : tab.number\n }}</p>\n </div>\n </div>\n </div>\n <slot name=\"filter\"></slot>\n <slot name=\"extra\" />\n </div>\n <div class=\"flex wrap\">\n <slot name=\"right\" />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n\n import {computed} from 'vue';\n\n defineOptions({\n name: 'HzztTab'\n })\n\n declare type Tab = {\n name: string,\n label: string,\n number: number,\n hide: boolean\n }\n\n const props = defineProps({\n tabList: {\n type: Array,\n default: () => [],\n },\n modelValue: {\n type: [Number, String, Array],\n },\n })\n\n const emit = defineEmits(['update:modelValue', 'tab-click'])\n\n const customTabList = computed(() => props.tabList.map(value => {\n const tab = value as Tab;\n return {\n key: (tab.name + '-' + tab.number) as string,\n ...tab,\n number: Number(tab.number || 0),\n hide: tab.hide,\n }\n }).filter((tab) => !tab.hide))\n\n function tabClick(tab, event) {\n if (tab.name === props.modelValue) return;\n emit('update:modelValue', tab.name);\n emit('tab-click', tab, event);\n }\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;mCA0BgB,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;AAqBA,IAAA,MAAM,gBAAgB,QAAS,CAAA,MAAM,KAAM,CAAA,OAAA,CAAQ,IAAI,CAAS,KAAA,KAAA;AAC9D,MAAA,MAAM,GAAM,GAAA,KAAA,CAAA;AACZ,MAAO,OAAA;AAAA,QACL,GAAM,EAAA,GAAA,CAAI,IAAO,GAAA,GAAA,GAAM,GAAI,CAAA,MAAA;AAAA,QAC3B,GAAG,GAAA;AAAA,QACH,MAAQ,EAAA,MAAA,CAAO,GAAI,CAAA,MAAA,IAAU,CAAC,CAAA;AAAA,QAC9B,MAAM,GAAI,CAAA,IAAA;AAAA,OACZ,CAAA;AAAA,KACD,EAAE,MAAO,CAAA,CAAC,QAAQ,CAAC,GAAA,CAAI,IAAI,CAAC,CAAA,CAAA;AAE7B,IAAA,SAAA,QAAA,CAAkB,KAAK,KAAO,EAAA;AAC5B,MAAI,IAAA,GAAA,CAAI,SAAS,KAAM,CAAA,UAAA;AAAY,QAAA,OAAA;AACnC,MAAK,IAAA,CAAA,mBAAA,EAAqB,IAAI,IAAI,CAAA,CAAA;AAClC,MAAK,IAAA,CAAA,WAAA,EAAa,KAAK,KAAK,CAAA,CAAA;AAAA,KAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,45 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ tabList: {
3
+ type: ArrayConstructor;
4
+ default: () => never[];
5
+ };
6
+ modelValue: {
7
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
8
+ };
9
+ }, {
10
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
11
+ tabList: {
12
+ type: ArrayConstructor;
13
+ default: () => never[];
14
+ };
15
+ modelValue: {
16
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
17
+ };
18
+ }>> & {
19
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
20
+ "onTab-click"?: ((...args: any[]) => any) | undefined;
21
+ }>>;
22
+ emit: (event: "update:modelValue" | "tab-click", ...args: any[]) => void;
23
+ customTabList: import("vue").ComputedRef<{
24
+ number: number;
25
+ hide: boolean;
26
+ name: string;
27
+ label: string;
28
+ key: string;
29
+ }[]>;
30
+ tabClick: (tab: any, event: any) => void;
31
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "tab-click")[], "update:modelValue" | "tab-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
+ tabList: {
33
+ type: ArrayConstructor;
34
+ default: () => never[];
35
+ };
36
+ modelValue: {
37
+ type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
38
+ };
39
+ }>> & {
40
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
41
+ "onTab-click"?: ((...args: any[]) => any) | undefined;
42
+ }, {
43
+ tabList: unknown[];
44
+ }>;
45
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import 'hzzt-plus/es/components/base/style/css';
2
+ import 'hzzt-plus/theme/hzzt-tab.css';
@@ -1,3 +1,3 @@
1
1
  import '../../base/style/css.mjs';
2
- import 'hzzt-plus/theme/el-title.css';
2
+ import 'hzzt-plus/theme/hzzt-tab.css';
3
3
  //# sourceMappingURL=css.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,2 @@
1
+ import 'hzzt-plus/es/components/base/style';
2
+ import 'hzzt-plus/theme/src/tab.scss';
@@ -0,0 +1,3 @@
1
+ import '../../base/style/index.mjs';
2
+ import 'hzzt-plus/theme/src/tab.scss';
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/title/index.ts"],"sourcesContent":["import { withInstall } from '@hzzt-plus/utils'\n\nimport Title from './src/index.vue';\n\nexport const HzztTitle = withInstall(Title);\nexport default HzztTitle\n"],"names":[],"mappings":";;;;AAEY,MAAC,SAAS,GAAG,WAAW,CAAC,KAAK;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, useSlots, computed, unref, openBlock, createElementBlock, createCommentVNode, renderSlot, createElementVNode, createTextVNode, toDisplayString } from 'vue';
2
- import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
2
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
3
3
 
4
4
  const _hoisted_1 = {
5
5
  key: 0,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../packages/components/title/src/index.vue"],"sourcesContent":["<template>\n <div v-if=\"showLabel\" class=\"hzzt-title flex align-items-center\">\n <span v-if=\"sideline\" class=\"decorative-line\" />\n <slot name=\"before\" />\n <label class=\"label-name\">\n <slot>{{ label }}</slot>\n </label>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n\n import {computed, useSlots} from 'vue';\n\n defineOptions({\n name: 'HzztTitle',\n });\n\n const props = defineProps({\n label: String,\n sideline: {\n type: Boolean,\n default: true,\n },\n });\n\n const slots = useSlots();\n\n const showLabel = computed(() => props.label || slots?.default?.()?.[0]?.children);\n\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;mCAcgB,CAAA;AAAA,EACZ,IAAM,EAAA,WAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;;;;;AAUA,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,SAAA,GAAY,SAAS,MAAM;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,2 +1,2 @@
1
1
  import 'hzzt-plus/es/components/base/style/css';
2
- import 'hzzt-plus/theme/el-title.css';
2
+ import 'hzzt-plus/theme/hzzt-title.css';
@@ -0,0 +1,3 @@
1
+ import '../../base/style/css.mjs';
2
+ import 'hzzt-plus/theme/hzzt-title.css';
3
+ //# sourceMappingURL=css.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,3 @@
1
+ import '../../base/style/index.mjs';
2
+ import 'hzzt-plus/theme/src/title.scss';
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aria.mjs","sources":["../../../../packages/constants/aria.ts"],"sourcesContent":["export const EVENT_CODE = {\n tab: 'Tab',\n enter: 'Enter',\n space: 'Space',\n left: 'ArrowLeft', // 37\n up: 'ArrowUp', // 38\n right: 'ArrowRight', // 39\n down: 'ArrowDown', // 40\n esc: 'Escape',\n delete: 'Delete',\n backspace: 'Backspace',\n numpadEnter: 'NumpadEnter',\n pageUp: 'PageUp',\n pageDown: 'PageDown',\n home: 'Home',\n end: 'End',\n}\n"],"names":[],"mappings":"AAAY,MAAC,UAAU,GAAG;AAC1B,EAAE,GAAG,EAAE,KAAK;AACZ,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,EAAE,EAAE,SAAS;AACf,EAAE,KAAK,EAAE,YAAY;AACrB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,GAAG,EAAE,QAAQ;AACf,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,SAAS,EAAE,WAAW;AACxB,EAAE,WAAW,EAAE,aAAa;AAC5B,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,QAAQ,EAAE,UAAU;AACtB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,GAAG,EAAE,KAAK;AACZ;;;;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date.mjs","sources":["../../../../packages/constants/date.ts"],"sourcesContent":["export const datePickTypes = [\n 'year',\n 'years',\n 'month',\n 'months',\n 'date',\n 'dates',\n 'week',\n 'datetime',\n 'datetimerange',\n 'daterange',\n 'monthrange',\n] as const\n\nexport const WEEK_DAYS = [\n 'sun',\n 'mon',\n 'tue',\n 'wed',\n 'thu',\n 'fri',\n 'sat',\n] as const\n\nexport type DatePickType = typeof datePickTypes[number]\n"],"names":[],"mappings":"AAAY,MAAC,aAAa,GAAG;AAC7B,EAAE,MAAM;AACR,EAAE,OAAO;AACT,EAAE,OAAO;AACT,EAAE,QAAQ;AACV,EAAE,MAAM;AACR,EAAE,OAAO;AACT,EAAE,MAAM;AACR,EAAE,UAAU;AACZ,EAAE,eAAe;AACjB,EAAE,WAAW;AACb,EAAE,YAAY;AACd,EAAE;AACU,MAAC,SAAS,GAAG;AACzB,EAAE,KAAK;AACP,EAAE,KAAK;AACP,EAAE,KAAK;AACP,EAAE,KAAK;AACP,EAAE,KAAK;AACP,EAAE,KAAK;AACP,EAAE,KAAK;AACP;;;;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.mjs","sources":["../../../../packages/constants/event.ts"],"sourcesContent":["export const UPDATE_MODEL_EVENT = 'update:modelValue'\nexport const CHANGE_EVENT = 'change'\nexport const INPUT_EVENT = 'input'\n"],"names":[],"mappings":"AAAY,MAAC,kBAAkB,GAAG,oBAAoB;AAC1C,MAAC,YAAY,GAAG,SAAS;AACzB,MAAC,WAAW,GAAG;;;;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"key.mjs","sources":["../../../../packages/constants/key.ts"],"sourcesContent":["export const INSTALLED_KEY = Symbol('INSTALLED_KEY')\n"],"names":[],"mappings":"AAAY,MAAC,aAAa,GAAG,MAAM,CAAC,eAAe;;;;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"size.mjs","sources":["../../../../packages/constants/size.ts"],"sourcesContent":["export const componentSizes = ['', 'default', 'small', 'large'] as const\n\nexport type ComponentSize = typeof componentSizes[number]\n\nexport const componentSizeMap = {\n large: 40,\n default: 32,\n small: 24,\n} as const\n"],"names":[],"mappings":"AAAY,MAAC,cAAc,GAAG,CAAC,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE;AACpD,MAAC,gBAAgB,GAAG;AAChC,EAAE,KAAK,EAAE,EAAE;AACX,EAAE,OAAO,EAAE,EAAE;AACb,EAAE,KAAK,EAAE,EAAE;AACX;;;;"}
package/es/defaults.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  declare const _default: {
2
2
  version: string;
3
- install: (app: import("vue").App<any>) => void;
3
+ install: (app: import("vue").App<any>, options?: Partial<import("./components").ConfigProviderProps> | undefined) => void;
4
4
  };
5
5
  export default _default;
@@ -0,0 +1,3 @@
1
+ import type { ObjectDirective } from 'vue';
2
+ declare const Blur: ObjectDirective;
3
+ export default Blur;
@@ -0,0 +1,10 @@
1
+ const Blur = {
2
+ beforeMount(el) {
3
+ el.addEventListener("click", () => {
4
+ el.blur();
5
+ });
6
+ }
7
+ };
8
+
9
+ export { Blur as default };
10
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/directives/blur/index.ts"],"sourcesContent":["import type {\n ObjectDirective,\n} from 'vue'\n\nconst Blur: ObjectDirective = {\n // 只调用一次,指令第一次绑定到元素时调用。在这里可以进行一次性的初始化设置。\n beforeMount(el: HTMLElement) {\n el.addEventListener('click', () => {\n el.blur();\n });\n },\n};\n\nexport default Blur;\n"],"names":[],"mappings":"AAAK,MAAC,IAAI,GAAG;AACb,EAAE,WAAW,CAAC,EAAE,EAAE;AAClB,IAAI,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM;AACvC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;AAChB,KAAK,CAAC,CAAC;AACP,GAAG;AACH;;;;"}
@@ -0,0 +1,3 @@
1
+ import type { ObjectDirective } from 'vue';
2
+ declare const Download: ObjectDirective;
3
+ export default Download;
@@ -0,0 +1,21 @@
1
+ let handler;
2
+ const Download = {
3
+ mounted(el, binding) {
4
+ const { path, name = "download" } = binding.value || {};
5
+ handler = function(e) {
6
+ e.preventDefault();
7
+ const a = document.createElement("a");
8
+ a.href = path;
9
+ a.download = name;
10
+ a.click();
11
+ a.remove();
12
+ };
13
+ el.addEventListener("click", handler);
14
+ },
15
+ unmounted(el) {
16
+ el.removeEventListener("click", handler);
17
+ }
18
+ };
19
+
20
+ export { Download as default };
21
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/directives/download/index.ts"],"sourcesContent":["import type {\n DirectiveBinding,\n ObjectDirective,\n} from 'vue'\n\nlet handler;\nconst Download: ObjectDirective = {\n // 只调用一次,指令第一次绑定到元素时调用。在这里可以进行一次性的初始化设置。\n mounted(el: HTMLElement, binding: DirectiveBinding) {\n const {path, name = 'download'} = binding.value || {};\n\n handler = function (e) {\n e.preventDefault();\n const a = document.createElement('a');\n a.href = path;\n a.download = name;\n a.click();\n a.remove();\n };\n el.addEventListener('click', handler);\n },\n // 只调用一次,指令与元素解绑时调用。\n unmounted(el: HTMLElement) {\n el.removeEventListener('click', handler);\n },\n};\n\nexport default Download;\n\n"],"names":[],"mappings":"AAAA,IAAI,OAAO,CAAC;AACP,MAAC,QAAQ,GAAG;AACjB,EAAE,OAAO,CAAC,EAAE,EAAE,OAAO,EAAE;AACvB,IAAI,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,UAAU,EAAE,GAAG,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;AAC5D,IAAI,OAAO,GAAG,SAAS,CAAC,EAAE;AAC1B,MAAM,CAAC,CAAC,cAAc,EAAE,CAAC;AACzB,MAAM,MAAM,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;AAC5C,MAAM,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC;AACpB,MAAM,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC;AACxB,MAAM,CAAC,CAAC,KAAK,EAAE,CAAC;AAChB,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC;AACjB,KAAK,CAAC;AACN,IAAI,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC1C,GAAG;AACH,EAAE,SAAS,CAAC,EAAE,EAAE;AAChB,IAAI,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC7C,GAAG;AACH;;;;"}
@@ -0,0 +1,3 @@
1
+ import type { ObjectDirective } from 'vue';
2
+ declare const Height: ObjectDirective;
3
+ export default Height;
@@ -0,0 +1,78 @@
1
+ import '../../utils/index.mjs';
2
+ import { isClient } from '@vueuse/core';
3
+ import { isNumber } from '../../utils/types.mjs';
4
+ import { isObject } from '@vue/shared';
5
+
6
+ const nodeList = /* @__PURE__ */ new Map();
7
+ if (isClient) {
8
+ window.addEventListener("resize", handler);
9
+ document.addEventListener("fullscreenchange", handler);
10
+ }
11
+ function handler() {
12
+ for (const handlers of nodeList.values()) {
13
+ for (const { documentHandler } of handlers) {
14
+ documentHandler();
15
+ }
16
+ }
17
+ }
18
+ const Height = {
19
+ mounted(el, binding) {
20
+ if (!nodeList.has(el)) {
21
+ nodeList.set(el, []);
22
+ }
23
+ nodeList.get(el).push({
24
+ documentHandler: createDocumentHandler(el, binding),
25
+ bindingFn: binding.value
26
+ });
27
+ },
28
+ updated(el, binding) {
29
+ if (!nodeList.has(el)) {
30
+ nodeList.set(el, []);
31
+ }
32
+ const handlers = nodeList.get(el);
33
+ const oldHandlerIndex = handlers.findIndex((item) => item.bindingFn === binding.oldValue);
34
+ const newHandler = {
35
+ documentHandler: createDocumentHandler(el, binding),
36
+ bindingFn: binding.value
37
+ };
38
+ if (oldHandlerIndex >= 0) {
39
+ handlers.splice(oldHandlerIndex, 1, newHandler);
40
+ } else {
41
+ handlers.push(newHandler);
42
+ }
43
+ },
44
+ unmounted(el) {
45
+ nodeList.delete(el);
46
+ }
47
+ };
48
+ function createDocumentHandler(el, binding) {
49
+ const { element, distY, type } = getEffectiveValue(el, binding.value);
50
+ const cssProp = type ? type + "Height" : "height";
51
+ el.style[cssProp] = element.clientHeight + distY + "px";
52
+ return function() {
53
+ el.style[cssProp] = element.clientHeight + distY + "px";
54
+ };
55
+ }
56
+ function getEffectiveValue(el, val) {
57
+ let element = el.parentElement;
58
+ let distY = 0;
59
+ let type = "";
60
+ if (!val) {
61
+ element = el.parentElement;
62
+ distY = 0;
63
+ } else if (val instanceof HTMLElement) {
64
+ element = val;
65
+ distY = 0;
66
+ } else if (isNumber(val)) {
67
+ element = el.parentElement;
68
+ distY = val;
69
+ } else if (isObject(val)) {
70
+ element = (val == null ? void 0 : val.el) || el.parentElement;
71
+ distY = (val == null ? void 0 : val.distY) || 0;
72
+ type = (val == null ? void 0 : val.type) || "";
73
+ }
74
+ return { element, distY, type };
75
+ }
76
+
77
+ export { Height as default };
78
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/directives/height/index.ts"],"sourcesContent":["import {isClient, isNumber, isObject} from '@hzzt-plus/utils'\n\nimport type {\n DirectiveBinding,\n ObjectDirective,\n} from 'vue'\n\ntype DocumentHandler = <T>() => void\ntype FlushList = Map<\n HTMLElement,\n {\n documentHandler: DocumentHandler\n bindingFn: (...args: unknown[]) => unknown\n }[]\n>\n\nconst nodeList: FlushList = new Map();\n\nif (isClient) {\n window.addEventListener('resize', handler);\n document.addEventListener('fullscreenchange', handler);\n}\n\nfunction handler() {\n for (const handlers of nodeList.values()) {\n for (const {documentHandler} of handlers) {\n documentHandler()\n }\n }\n}\n\n// v-height\n// 默认高度为当前元素的父元素高度\n\n// v-height = el\n// 当前元素的高度设置为el的高度\n\n// v-height = 60\n// 当前元素的高度设置为父元素高度+60px\n\n// v-height = {el: el, distY: 60}\n// 当前元素的高度设置为el的高度+60px\nconst Height: ObjectDirective = {\n // 当被绑定的元素插入到 DOM 中时……\n mounted(el: HTMLElement, binding: DirectiveBinding) {\n if (!nodeList.has(el)) {\n nodeList.set(el, []);\n }\n nodeList.get(el)!.push({\n documentHandler: createDocumentHandler(el, binding),\n bindingFn: binding.value,\n })\n },\n updated(el: HTMLElement, binding: DirectiveBinding) {\n if (!nodeList.has(el)) {\n nodeList.set(el, []);\n }\n const handlers = nodeList.get(el)!\n const oldHandlerIndex = handlers.findIndex(\n (item) => item.bindingFn === binding.oldValue\n )\n const newHandler = {\n documentHandler: createDocumentHandler(el, binding),\n bindingFn: binding.value,\n }\n\n if (oldHandlerIndex >= 0) {\n // replace the old handler to the new handler\n handlers.splice(oldHandlerIndex, 1, newHandler)\n } else {\n handlers.push(newHandler)\n }\n },\n // 只调用一次,指令与元素解绑时调用。\n unmounted(el: HTMLElement) {\n nodeList.delete(el);\n },\n};\n\nfunction createDocumentHandler(el: HTMLElement, binding: DirectiveBinding) {\n const {element, distY, type} = getEffectiveValue(el, binding.value);\n const cssProp = type ? (type + 'Height') : 'height';\n el.style[cssProp] = element.clientHeight + distY + 'px';\n return function () {\n el.style[cssProp] = element.clientHeight + distY + 'px';\n }\n}\n\nfunction getEffectiveValue(el, val) {\n let element = el.parentElement;\n let distY = 0;\n let type = '';\n if (!val) {\n element = el.parentElement;\n distY = 0;\n } else if (val instanceof HTMLElement) {\n element = val;\n distY = 0;\n } else if (isNumber(val)) {\n element = el.parentElement;\n distY = val;\n } else if (isObject(val)) {\n element = val?.el || el.parentElement;\n distY = val?.distY || 0;\n type = val?.type || '';\n }\n return {element, distY, type};\n}\n\nexport default Height;\n\n"],"names":[],"mappings":";;;;;AACA,MAAM,QAAQ,mBAAmB,IAAI,GAAG,EAAE,CAAC;AAC3C,IAAI,QAAQ,EAAE;AACd,EAAE,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAC7C,EAAE,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;AACzD,CAAC;AACD,SAAS,OAAO,GAAG;AACnB,EAAE,KAAK,MAAM,QAAQ,IAAI,QAAQ,CAAC,MAAM,EAAE,EAAE;AAC5C,IAAI,KAAK,MAAM,EAAE,eAAe,EAAE,IAAI,QAAQ,EAAE;AAChD,MAAM,eAAe,EAAE,CAAC;AACxB,KAAK;AACL,GAAG;AACH,CAAC;AACI,MAAC,MAAM,GAAG;AACf,EAAE,OAAO,CAAC,EAAE,EAAE,OAAO,EAAE;AACvB,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE;AAC3B,MAAM,QAAQ,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC3B,KAAK;AACL,IAAI,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC;AAC1B,MAAM,eAAe,EAAE,qBAAqB,CAAC,EAAE,EAAE,OAAO,CAAC;AACzD,MAAM,SAAS,EAAE,OAAO,CAAC,KAAK;AAC9B,KAAK,CAAC,CAAC;AACP,GAAG;AACH,EAAE,OAAO,CAAC,EAAE,EAAE,OAAO,EAAE;AACvB,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE;AAC3B,MAAM,QAAQ,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC3B,KAAK;AACL,IAAI,MAAM,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AACtC,IAAI,MAAM,eAAe,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,SAAS,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC9F,IAAI,MAAM,UAAU,GAAG;AACvB,MAAM,eAAe,EAAE,qBAAqB,CAAC,EAAE,EAAE,OAAO,CAAC;AACzD,MAAM,SAAS,EAAE,OAAO,CAAC,KAAK;AAC9B,KAAK,CAAC;AACN,IAAI,IAAI,eAAe,IAAI,CAAC,EAAE;AAC9B,MAAM,QAAQ,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC;AACtD,KAAK,MAAM;AACX,MAAM,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AAChC,KAAK;AACL,GAAG;AACH,EAAE,SAAS,CAAC,EAAE,EAAE;AAChB,IAAI,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AACxB,GAAG;AACH,EAAE;AACF,SAAS,qBAAqB,CAAC,EAAE,EAAE,OAAO,EAAE;AAC5C,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,iBAAiB,CAAC,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;AACxE,EAAE,MAAM,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACpD,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,GAAG,KAAK,GAAG,IAAI,CAAC;AAC1D,EAAE,OAAO,WAAW;AACpB,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,GAAG,KAAK,GAAG,IAAI,CAAC;AAC5D,GAAG,CAAC;AACJ,CAAC;AACD,SAAS,iBAAiB,CAAC,EAAE,EAAE,GAAG,EAAE;AACpC,EAAE,IAAI,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC;AACjC,EAAE,IAAI,KAAK,GAAG,CAAC,CAAC;AAChB,EAAE,IAAI,IAAI,GAAG,EAAE,CAAC;AAChB,EAAE,IAAI,CAAC,GAAG,EAAE;AACZ,IAAI,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC;AAC/B,IAAI,KAAK,GAAG,CAAC,CAAC;AACd,GAAG,MAAM,IAAI,GAAG,YAAY,WAAW,EAAE;AACzC,IAAI,OAAO,GAAG,GAAG,CAAC;AAClB,IAAI,KAAK,GAAG,CAAC,CAAC;AACd,GAAG,MAAM,IAAI,QAAQ,CAAC,GAAG,CAAC,EAAE;AAC5B,IAAI,OAAO,GAAG,EAAE,CAAC,aAAa,CAAC;AAC/B,IAAI,KAAK,GAAG,GAAG,CAAC;AAChB,GAAG,MAAM,IAAI,QAAQ,CAAC,GAAG,CAAC,EAAE;AAC5B,IAAI,OAAO,GAAG,CAAC,GAAG,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,aAAa,CAAC;AAClE,IAAI,KAAK,GAAG,CAAC,GAAG,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC,KAAK,KAAK,CAAC,CAAC;AACpD,IAAI,IAAI,GAAG,CAAC,GAAG,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC,IAAI,KAAK,EAAE,CAAC;AACnD,GAAG;AACH,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAClC;;;;"}
@@ -0,0 +1,3 @@
1
+ import type { ObjectDirective } from "vue";
2
+ declare const Highlight: ObjectDirective;
3
+ export default Highlight;
@@ -0,0 +1,30 @@
1
+ const Highlight = {
2
+ beforeMount: handle,
3
+ updated: handle
4
+ };
5
+ function handle(el, binding) {
6
+ const { form = false } = binding.modifiers;
7
+ const { color = "#ff0000", fontSize = "16px", show = true } = binding.value || {};
8
+ el.style.color = show ? color : "";
9
+ el.style.fontSize = show ? fontSize : "";
10
+ if (form) {
11
+ setCssText(el, show, "--el-text-color-regular", color);
12
+ setCssText(el, show, "--font-size", fontSize);
13
+ }
14
+ }
15
+ function setCssText(el, show, prop, value) {
16
+ let cssText = el.style.cssText;
17
+ if (show) {
18
+ let cssText2 = el.style.cssText;
19
+ if (!~cssText2.indexOf(prop)) {
20
+ cssText2 = `${cssText2};${prop}: ${value}`;
21
+ }
22
+ el.style.cssText = cssText2;
23
+ } else {
24
+ cssText = cssText.replace(`${prop}: ${value};`, "");
25
+ el.style.cssText = cssText;
26
+ }
27
+ }
28
+
29
+ export { Highlight as default };
30
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/directives/highlight/index.ts"],"sourcesContent":["import type {DirectiveBinding, ObjectDirective} from \"vue\";\n\nconst Highlight: ObjectDirective = {\n // 只调用一次,指令第一次绑定到元素时调用。在这里可以进行一次性的初始化设置。\n beforeMount: handle,\n updated: handle,\n};\n\nfunction handle(el: HTMLElement, binding: DirectiveBinding) {\n const {form = false} = binding.modifiers;\n const {color = '#ff0000', fontSize = '16px', show = true} = binding.value || {};\n el.style.color = show ? color : '';\n el.style.fontSize = show ? fontSize : '';\n if (form) {\n setCssText(el, show, '--el-text-color-regular', color);\n setCssText(el, show, '--font-size', fontSize);\n }\n}\n\nfunction setCssText(el: HTMLElement, show: boolean, prop: string, value: string) {\n let cssText = el.style.cssText;\n if (show) {\n let cssText = el.style.cssText;\n if (!~cssText.indexOf(prop)) {\n cssText = `${cssText};${prop}: ${value}`;\n }\n el.style.cssText = cssText;\n } else {\n cssText = cssText.replace(`${prop}: ${value};`, '');\n el.style.cssText = cssText;\n }\n}\n\nexport default Highlight;\n\n"],"names":[],"mappings":"AAAK,MAAC,SAAS,GAAG;AAClB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,OAAO,EAAE,MAAM;AACjB,EAAE;AACF,SAAS,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE;AAC7B,EAAE,MAAM,EAAE,IAAI,GAAG,KAAK,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC;AAC7C,EAAE,MAAM,EAAE,KAAK,GAAG,SAAS,EAAE,QAAQ,GAAG,MAAM,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;AACpF,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE,CAAC;AACrC,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,GAAG,IAAI,GAAG,QAAQ,GAAG,EAAE,CAAC;AAC3C,EAAE,IAAI,IAAI,EAAE;AACZ,IAAI,UAAU,CAAC,EAAE,EAAE,IAAI,EAAE,yBAAyB,EAAE,KAAK,CAAC,CAAC;AAC3D,IAAI,UAAU,CAAC,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,CAAC,CAAC;AAClD,GAAG;AACH,CAAC;AACD,SAAS,UAAU,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE;AAC3C,EAAE,IAAI,OAAO,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;AACjC,EAAE,IAAI,IAAI,EAAE;AACZ,IAAI,IAAI,QAAQ,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;AACpC,IAAI,IAAI,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;AAClC,MAAM,QAAQ,GAAG,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC;AACjD,KAAK;AACL,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,GAAG,QAAQ,CAAC;AAChC,GAAG,MAAM;AACT,IAAI,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACxD,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;AAC/B,GAAG;AACH;;;;"}
@@ -0,0 +1,4 @@
1
+ export { default as Download } from './download';
2
+ export { default as Height } from './height';
3
+ export { default as Blur } from './blur';
4
+ export { default as Highlight } from './highlight';
@@ -0,0 +1,5 @@
1
+ export { default as Download } from './download/index.mjs';
2
+ export { default as Height } from './height/index.mjs';
3
+ export { default as Blur } from './blur/index.mjs';
4
+ export { default as Highlight } from './highlight/index.mjs';
5
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
@@ -0,0 +1,2 @@
1
+ export * from './use-locale';
2
+ export * from './use-size';
@@ -0,0 +1,3 @@
1
+ export { buildLocaleContext, buildTranslator, localeContextKey, translate, useLocale } from './use-locale/index.mjs';
2
+ export { SIZE_INJECTION_KEY, useGlobalSize, useSizeProp, useSizeProps } from './use-size/index.mjs';
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,15 @@
1
+ import type { MaybeRef } from '@vueuse/core';
2
+ import type { InjectionKey, Ref } from 'vue';
3
+ import type { Language } from 'hzzt-plus/es/locale';
4
+ export declare type TranslatorOption = Record<string, string | number>;
5
+ export declare type Translator = (path: string, option?: TranslatorOption) => string;
6
+ export declare type LocaleContext = {
7
+ locale: Ref<Language>;
8
+ lang: Ref<string>;
9
+ t: Translator;
10
+ };
11
+ export declare const buildTranslator: (locale: MaybeRef<Language>) => Translator;
12
+ export declare const translate: (path: string, option: undefined | TranslatorOption, locale: Language) => string;
13
+ export declare const buildLocaleContext: (locale: MaybeRef<Language>) => LocaleContext;
14
+ export declare const localeContextKey: InjectionKey<Ref<Language | undefined>>;
15
+ export declare const useLocale: (localeOverrides?: Ref<Language | undefined> | undefined) => LocaleContext;
@@ -0,0 +1,26 @@
1
+ import { unref, computed, isRef, ref, inject } from 'vue';
2
+ import { get } from 'lodash-unified';
3
+ import English from '../../locale/lang/en.mjs';
4
+
5
+ const buildTranslator = (locale) => (path, option) => translate(path, option, unref(locale));
6
+ const translate = (path, option, locale) => get(locale, path, path).replace(/\{(\w+)\}/g, (_, key) => {
7
+ var _a;
8
+ return `${(_a = option == null ? void 0 : option[key]) != null ? _a : `{${key}}`}`;
9
+ });
10
+ const buildLocaleContext = (locale) => {
11
+ const lang = computed(() => unref(locale).name);
12
+ const localeRef = isRef(locale) ? locale : ref(locale);
13
+ return {
14
+ lang,
15
+ locale: localeRef,
16
+ t: buildTranslator(locale)
17
+ };
18
+ };
19
+ const localeContextKey = Symbol("localeContextKey");
20
+ const useLocale = (localeOverrides) => {
21
+ const locale = localeOverrides || inject(localeContextKey, ref());
22
+ return buildLocaleContext(computed(() => locale.value || English));
23
+ };
24
+
25
+ export { buildLocaleContext, buildTranslator, localeContextKey, translate, useLocale };
26
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-locale/index.ts"],"sourcesContent":["import { computed, inject, isRef, ref, unref } from 'vue'\nimport { get } from 'lodash-unified'\nimport English from '@hzzt-plus/locale/lang/en'\n\nimport type { MaybeRef } from '@vueuse/core'\nimport type { InjectionKey, Ref } from 'vue'\nimport type { Language } from '@hzzt-plus/locale'\n\nexport type TranslatorOption = Record<string, string | number>\nexport type Translator = (path: string, option?: TranslatorOption) => string\nexport type LocaleContext = {\n locale: Ref<Language>\n lang: Ref<string>\n t: Translator\n}\n\nexport const buildTranslator =\n (locale: MaybeRef<Language>): Translator =>\n (path, option) =>\n translate(path, option, unref(locale))\n\nexport const translate = (\n path: string,\n option: undefined | TranslatorOption,\n locale: Language\n): string =>\n (get(locale, path, path) as string).replace(\n /\\{(\\w+)\\}/g,\n (_, key) => `${option?.[key] ?? `{${key}}`}`\n )\n\nexport const buildLocaleContext = (\n locale: MaybeRef<Language>\n): LocaleContext => {\n const lang = computed(() => unref(locale).name)\n const localeRef = isRef(locale) ? locale : ref(locale)\n return {\n lang,\n locale: localeRef,\n t: buildTranslator(locale),\n }\n}\n\nexport const localeContextKey: InjectionKey<Ref<Language | undefined>> =\n Symbol('localeContextKey')\n\nexport const useLocale = (localeOverrides?: Ref<Language | undefined>) => {\n const locale = localeOverrides || inject(localeContextKey, ref())!\n return buildLocaleContext(computed(() => locale.value || English))\n}\n"],"names":[],"mappings":";;;;AAGY,MAAC,eAAe,GAAG,CAAC,MAAM,KAAK,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE;AACxF,MAAC,SAAS,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,KAAK,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK;AAC7G,EAAE,IAAI,EAAE,CAAC;AACT,EAAE,OAAO,CAAC,EAAE,CAAC,EAAE,GAAG,MAAM,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,IAAI,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACrF,CAAC,EAAE;AACS,MAAC,kBAAkB,GAAG,CAAC,MAAM,KAAK;AAC9C,EAAE,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAClD,EAAE,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;AACzD,EAAE,OAAO;AACT,IAAI,IAAI;AACR,IAAI,MAAM,EAAE,SAAS;AACrB,IAAI,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC;AAC9B,GAAG,CAAC;AACJ,EAAE;AACU,MAAC,gBAAgB,GAAG,MAAM,CAAC,kBAAkB,EAAE;AAC/C,MAAC,SAAS,GAAG,CAAC,eAAe,KAAK;AAC9C,EAAE,MAAM,MAAM,GAAG,eAAe,IAAI,MAAM,CAAC,gBAAgB,EAAE,GAAG,EAAE,CAAC,CAAC;AACpE,EAAE,OAAO,kBAAkB,CAAC,QAAQ,CAAC,MAAM,MAAM,CAAC,KAAK,IAAI,OAAO,CAAC,CAAC,CAAC;AACrE;;;;"}
@@ -0,0 +1,21 @@
1
+ import type { InjectionKey, Ref } from 'vue';
2
+ import type { ComponentSize } from 'hzzt-plus/es/constants';
3
+ export declare const useSizeProp: {
4
+ readonly type: import("vue").PropType<import("hzzt-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
5
+ readonly required: false;
6
+ readonly validator: ((val: unknown) => boolean) | undefined;
7
+ __epPropKey: true;
8
+ };
9
+ export declare const useSizeProps: {
10
+ size: {
11
+ readonly type: import("vue").PropType<import("hzzt-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
12
+ readonly required: false;
13
+ readonly validator: ((val: unknown) => boolean) | undefined;
14
+ __epPropKey: true;
15
+ };
16
+ };
17
+ export interface SizeContext {
18
+ size: Ref<ComponentSize>;
19
+ }
20
+ export declare const SIZE_INJECTION_KEY: InjectionKey<SizeContext>;
21
+ export declare const useGlobalSize: () => import("vue").ComputedRef<"" | "default" | "small" | "large">;
@@ -0,0 +1,24 @@
1
+ import { inject, computed, unref } from 'vue';
2
+ import '../../utils/index.mjs';
3
+ import '../../constants/index.mjs';
4
+ import { buildProp } from '../../utils/vue/props/runtime.mjs';
5
+ import { componentSizes } from '../../constants/size.mjs';
6
+
7
+ const useSizeProp = buildProp({
8
+ type: String,
9
+ values: componentSizes,
10
+ required: false
11
+ });
12
+ const useSizeProps = {
13
+ size: useSizeProp
14
+ };
15
+ const SIZE_INJECTION_KEY = Symbol("size");
16
+ const useGlobalSize = () => {
17
+ const injectedSize = inject(SIZE_INJECTION_KEY, {});
18
+ return computed(() => {
19
+ return unref(injectedSize.size) || "";
20
+ });
21
+ };
22
+
23
+ export { SIZE_INJECTION_KEY, useGlobalSize, useSizeProp, useSizeProps };
24
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/hooks/use-size/index.ts"],"sourcesContent":["import { computed, inject, unref } from 'vue'\nimport { buildProp } from '@hzzt-plus/utils'\nimport { componentSizes } from '@hzzt-plus/constants'\n\nimport type { InjectionKey, Ref } from 'vue'\nimport type { ComponentSize } from '@hzzt-plus/constants'\n\nexport const useSizeProp = buildProp({\n type: String,\n values: componentSizes,\n required: false,\n} as const)\n\nexport const useSizeProps = {\n size: useSizeProp,\n}\n\nexport interface SizeContext {\n size: Ref<ComponentSize>\n}\n\nexport const SIZE_INJECTION_KEY: InjectionKey<SizeContext> = Symbol('size')\n\nexport const useGlobalSize = () => {\n const injectedSize = inject(SIZE_INJECTION_KEY, {} as SizeContext)\n\n return computed<ComponentSize>(() => {\n return unref(injectedSize.size) || ''\n })\n}\n"],"names":[],"mappings":";;;;;;AAGY,MAAC,WAAW,GAAG,SAAS,CAAC;AACrC,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,MAAM,EAAE,cAAc;AACxB,EAAE,QAAQ,EAAE,KAAK;AACjB,CAAC,EAAE;AACS,MAAC,YAAY,GAAG;AAC5B,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE;AACU,MAAC,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE;AACrC,MAAC,aAAa,GAAG,MAAM;AACnC,EAAE,MAAM,YAAY,GAAG,MAAM,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;AACtD,EAAE,OAAO,QAAQ,CAAC,MAAM;AACxB,IAAI,OAAO,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;AAC1C,GAAG,CAAC,CAAC;AACL;;;;"}