huibo-ui 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1214) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/a11y-802de67a.js +123 -0
  3. package/dist/cjs/a11y-802de67a.js.map +1 -0
  4. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  5. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  6. package/dist/cjs/click-outside-3fcc00dd.js +27 -0
  7. package/dist/cjs/click-outside-3fcc00dd.js.map +1 -0
  8. package/dist/cjs/date-helpers-904747ff.js +134 -0
  9. package/dist/cjs/date-helpers-904747ff.js.map +1 -0
  10. package/dist/cjs/hb-affix.cjs.entry.js +101 -0
  11. package/dist/cjs/hb-affix.cjs.entry.js.map +1 -0
  12. package/dist/cjs/hb-alert.cjs.entry.js +47 -0
  13. package/dist/cjs/hb-alert.cjs.entry.js.map +1 -0
  14. package/dist/cjs/hb-anchor.cjs.entry.js +46 -0
  15. package/dist/cjs/hb-anchor.cjs.entry.js.map +1 -0
  16. package/dist/cjs/hb-aside.cjs.entry.js +30 -0
  17. package/dist/cjs/hb-aside.cjs.entry.js.map +1 -0
  18. package/dist/cjs/hb-avatar.cjs.entry.js +31 -0
  19. package/dist/cjs/hb-avatar.cjs.entry.js.map +1 -0
  20. package/dist/cjs/hb-backtop.cjs.entry.js +100 -0
  21. package/dist/cjs/hb-backtop.cjs.entry.js.map +1 -0
  22. package/dist/cjs/hb-badge.cjs.entry.js +35 -0
  23. package/dist/cjs/hb-badge.cjs.entry.js.map +1 -0
  24. package/dist/cjs/hb-breadcrumb-item.cjs.entry.js +25 -0
  25. package/dist/cjs/hb-breadcrumb-item.cjs.entry.js.map +1 -0
  26. package/dist/cjs/hb-breadcrumb.cjs.entry.js +24 -0
  27. package/dist/cjs/hb-breadcrumb.cjs.entry.js.map +1 -0
  28. package/dist/cjs/hb-button.cjs.entry.js +39 -0
  29. package/dist/cjs/hb-button.cjs.entry.js.map +1 -0
  30. package/dist/cjs/hb-calendar.cjs.entry.js +90 -0
  31. package/dist/cjs/hb-calendar.cjs.entry.js.map +1 -0
  32. package/dist/cjs/hb-card.cjs.entry.js +27 -0
  33. package/dist/cjs/hb-card.cjs.entry.js.map +1 -0
  34. package/dist/cjs/hb-carousel.cjs.entry.js +150 -0
  35. package/dist/cjs/hb-carousel.cjs.entry.js.map +1 -0
  36. package/dist/cjs/hb-cascader.cjs.entry.js +413 -0
  37. package/dist/cjs/hb-cascader.cjs.entry.js.map +1 -0
  38. package/dist/cjs/hb-checkbox-group.cjs.entry.js +117 -0
  39. package/dist/cjs/hb-checkbox-group.cjs.entry.js.map +1 -0
  40. package/dist/cjs/hb-checkbox.cjs.entry.js +130 -0
  41. package/dist/cjs/hb-checkbox.cjs.entry.js.map +1 -0
  42. package/dist/cjs/hb-collapse-item.cjs.entry.js +58 -0
  43. package/dist/cjs/hb-collapse-item.cjs.entry.js.map +1 -0
  44. package/dist/cjs/hb-collapse.cjs.entry.js +41 -0
  45. package/dist/cjs/hb-collapse.cjs.entry.js.map +1 -0
  46. package/dist/cjs/hb-color-picker-panel.cjs.entry.js +86 -0
  47. package/dist/cjs/hb-color-picker-panel.cjs.entry.js.map +1 -0
  48. package/dist/cjs/hb-color-picker.cjs.entry.js +265 -0
  49. package/dist/cjs/hb-color-picker.cjs.entry.js.map +1 -0
  50. package/dist/cjs/hb-config-provider.cjs.entry.js +44 -0
  51. package/dist/cjs/hb-config-provider.cjs.entry.js.map +1 -0
  52. package/dist/cjs/hb-container.cjs.entry.js +30 -0
  53. package/dist/cjs/hb-container.cjs.entry.js.map +1 -0
  54. package/dist/cjs/hb-date-picker-pane.cjs.entry.js +150 -0
  55. package/dist/cjs/hb-date-picker-pane.cjs.entry.js.map +1 -0
  56. package/dist/cjs/hb-date-picker.cjs.entry.js +138 -0
  57. package/dist/cjs/hb-date-picker.cjs.entry.js.map +1 -0
  58. package/dist/cjs/hb-date-range-picker.cjs.entry.js +222 -0
  59. package/dist/cjs/hb-date-range-picker.cjs.entry.js.map +1 -0
  60. package/dist/cjs/hb-date-time-picker.cjs.entry.js +140 -0
  61. package/dist/cjs/hb-date-time-picker.cjs.entry.js.map +1 -0
  62. package/dist/cjs/hb-descriptions.cjs.entry.js +32 -0
  63. package/dist/cjs/hb-descriptions.cjs.entry.js.map +1 -0
  64. package/dist/cjs/hb-dialog.cjs.entry.js +114 -0
  65. package/dist/cjs/hb-dialog.cjs.entry.js.map +1 -0
  66. package/dist/cjs/hb-divider.cjs.entry.js +36 -0
  67. package/dist/cjs/hb-divider.cjs.entry.js.map +1 -0
  68. package/dist/cjs/hb-drawer.cjs.entry.js +89 -0
  69. package/dist/cjs/hb-drawer.cjs.entry.js.map +1 -0
  70. package/dist/cjs/hb-dropdown.cjs.entry.js +80 -0
  71. package/dist/cjs/hb-dropdown.cjs.entry.js.map +1 -0
  72. package/dist/cjs/hb-empty.cjs.entry.js +24 -0
  73. package/dist/cjs/hb-empty.cjs.entry.js.map +1 -0
  74. package/dist/cjs/hb-float-button.cjs.entry.js +57 -0
  75. package/dist/cjs/hb-float-button.cjs.entry.js.map +1 -0
  76. package/dist/cjs/hb-footer.cjs.entry.js +30 -0
  77. package/dist/cjs/hb-footer.cjs.entry.js.map +1 -0
  78. package/dist/cjs/hb-form-item.cjs.entry.js +112 -0
  79. package/dist/cjs/hb-form-item.cjs.entry.js.map +1 -0
  80. package/dist/cjs/hb-form.cjs.entry.js +70 -0
  81. package/dist/cjs/hb-form.cjs.entry.js.map +1 -0
  82. package/dist/cjs/hb-header.cjs.entry.js +30 -0
  83. package/dist/cjs/hb-header.cjs.entry.js.map +1 -0
  84. package/dist/cjs/hb-icon.cjs.entry.js +76 -0
  85. package/dist/cjs/hb-icon.cjs.entry.js.map +1 -0
  86. package/dist/cjs/hb-image-preview.cjs.entry.js +179 -0
  87. package/dist/cjs/hb-image-preview.cjs.entry.js.map +1 -0
  88. package/dist/cjs/hb-image.cjs.entry.js +35 -0
  89. package/dist/cjs/hb-image.cjs.entry.js.map +1 -0
  90. package/dist/cjs/hb-input-number.cjs.entry.js +169 -0
  91. package/dist/cjs/hb-input-number.cjs.entry.js.map +1 -0
  92. package/dist/cjs/hb-input-tag.cjs.entry.js +145 -0
  93. package/dist/cjs/hb-input-tag.cjs.entry.js.map +1 -0
  94. package/dist/cjs/hb-input.cjs.entry.js +252 -0
  95. package/dist/cjs/hb-input.cjs.entry.js.map +1 -0
  96. package/dist/cjs/hb-layout.cjs.entry.js +78 -0
  97. package/dist/cjs/hb-layout.cjs.entry.js.map +1 -0
  98. package/dist/cjs/hb-link.cjs.entry.js +67 -0
  99. package/dist/cjs/hb-link.cjs.entry.js.map +1 -0
  100. package/dist/cjs/hb-loading.cjs.entry.js +32 -0
  101. package/dist/cjs/hb-loading.cjs.entry.js.map +1 -0
  102. package/dist/cjs/hb-main.cjs.entry.js +22 -0
  103. package/dist/cjs/hb-main.cjs.entry.js.map +1 -0
  104. package/dist/cjs/hb-menu-item.cjs.entry.js +50 -0
  105. package/dist/cjs/hb-menu-item.cjs.entry.js.map +1 -0
  106. package/dist/cjs/hb-menu.cjs.entry.js +87 -0
  107. package/dist/cjs/hb-menu.cjs.entry.js.map +1 -0
  108. package/dist/cjs/hb-message.cjs.entry.js +48 -0
  109. package/dist/cjs/hb-message.cjs.entry.js.map +1 -0
  110. package/dist/cjs/hb-notification.cjs.entry.js +67 -0
  111. package/dist/cjs/hb-notification.cjs.entry.js.map +1 -0
  112. package/dist/cjs/hb-page-header.cjs.entry.js +37 -0
  113. package/dist/cjs/hb-page-header.cjs.entry.js.map +1 -0
  114. package/dist/cjs/hb-pagination.cjs.entry.js +107 -0
  115. package/dist/cjs/hb-pagination.cjs.entry.js.map +1 -0
  116. package/dist/cjs/hb-popconfirm.cjs.entry.js +51 -0
  117. package/dist/cjs/hb-popconfirm.cjs.entry.js.map +1 -0
  118. package/dist/cjs/hb-popover.cjs.entry.js +59 -0
  119. package/dist/cjs/hb-popover.cjs.entry.js.map +1 -0
  120. package/dist/cjs/hb-progress.cjs.entry.js +39 -0
  121. package/dist/cjs/hb-progress.cjs.entry.js.map +1 -0
  122. package/dist/cjs/hb-radio.cjs.entry.js +119 -0
  123. package/dist/cjs/hb-radio.cjs.entry.js.map +1 -0
  124. package/dist/cjs/hb-rate.cjs.entry.js +132 -0
  125. package/dist/cjs/hb-rate.cjs.entry.js.map +1 -0
  126. package/dist/cjs/hb-result.cjs.entry.js +57 -0
  127. package/dist/cjs/hb-result.cjs.entry.js.map +1 -0
  128. package/dist/cjs/hb-row.cjs.entry.js +57 -0
  129. package/dist/cjs/hb-row.cjs.entry.js.map +1 -0
  130. package/dist/cjs/hb-scrollbar.cjs.entry.js +204 -0
  131. package/dist/cjs/hb-scrollbar.cjs.entry.js.map +1 -0
  132. package/dist/cjs/hb-segmented.cjs.entry.js +43 -0
  133. package/dist/cjs/hb-segmented.cjs.entry.js.map +1 -0
  134. package/dist/cjs/hb-select.cjs.entry.js +262 -0
  135. package/dist/cjs/hb-select.cjs.entry.js.map +1 -0
  136. package/dist/cjs/hb-skeleton.cjs.entry.js +53 -0
  137. package/dist/cjs/hb-skeleton.cjs.entry.js.map +1 -0
  138. package/dist/cjs/hb-slider.cjs.entry.js +172 -0
  139. package/dist/cjs/hb-slider.cjs.entry.js.map +1 -0
  140. package/dist/cjs/hb-space.cjs.entry.js +72 -0
  141. package/dist/cjs/hb-space.cjs.entry.js.map +1 -0
  142. package/dist/cjs/hb-statistic.cjs.entry.js +66 -0
  143. package/dist/cjs/hb-statistic.cjs.entry.js.map +1 -0
  144. package/dist/cjs/hb-step.cjs.entry.js +24 -0
  145. package/dist/cjs/hb-step.cjs.entry.js.map +1 -0
  146. package/dist/cjs/hb-steps.cjs.entry.js +50 -0
  147. package/dist/cjs/hb-steps.cjs.entry.js.map +1 -0
  148. package/dist/cjs/hb-sub-menu.cjs.entry.js +70 -0
  149. package/dist/cjs/hb-sub-menu.cjs.entry.js.map +1 -0
  150. package/dist/cjs/hb-switch.cjs.entry.js +92 -0
  151. package/dist/cjs/hb-switch.cjs.entry.js.map +1 -0
  152. package/dist/cjs/hb-tab-pane.cjs.entry.js +26 -0
  153. package/dist/cjs/hb-tab-pane.cjs.entry.js.map +1 -0
  154. package/dist/cjs/hb-table.cjs.entry.js +370 -0
  155. package/dist/cjs/hb-table.cjs.entry.js.map +1 -0
  156. package/dist/cjs/hb-tabs.cjs.entry.js +115 -0
  157. package/dist/cjs/hb-tabs.cjs.entry.js.map +1 -0
  158. package/dist/cjs/hb-tag.cjs.entry.js +45 -0
  159. package/dist/cjs/hb-tag.cjs.entry.js.map +1 -0
  160. package/dist/cjs/hb-text.cjs.entry.js +60 -0
  161. package/dist/cjs/hb-text.cjs.entry.js.map +1 -0
  162. package/dist/cjs/hb-time-picker.cjs.entry.js +147 -0
  163. package/dist/cjs/hb-time-picker.cjs.entry.js.map +1 -0
  164. package/dist/cjs/hb-time-select.cjs.entry.js +145 -0
  165. package/dist/cjs/hb-time-select.cjs.entry.js.map +1 -0
  166. package/dist/cjs/hb-timeline.cjs.entry.js +30 -0
  167. package/dist/cjs/hb-timeline.cjs.entry.js.map +1 -0
  168. package/dist/cjs/hb-tooltip.cjs.entry.js +74 -0
  169. package/dist/cjs/hb-tooltip.cjs.entry.js.map +1 -0
  170. package/dist/cjs/hb-tour.cjs.entry.js +119 -0
  171. package/dist/cjs/hb-tour.cjs.entry.js.map +1 -0
  172. package/dist/cjs/hb-transfer.cjs.entry.js +173 -0
  173. package/dist/cjs/hb-transfer.cjs.entry.js.map +1 -0
  174. package/dist/cjs/hb-tree-select.cjs.entry.js +236 -0
  175. package/dist/cjs/hb-tree-select.cjs.entry.js.map +1 -0
  176. package/dist/cjs/hb-tree.cjs.entry.js +313 -0
  177. package/dist/cjs/hb-tree.cjs.entry.js.map +1 -0
  178. package/dist/cjs/hb-upload.cjs.entry.js +184 -0
  179. package/dist/cjs/hb-upload.cjs.entry.js.map +1 -0
  180. package/dist/cjs/hb-watermark.cjs.entry.js +59 -0
  181. package/dist/cjs/hb-watermark.cjs.entry.js.map +1 -0
  182. package/dist/cjs/huibo-ui.cjs.js +27 -0
  183. package/dist/cjs/huibo-ui.cjs.js.map +1 -0
  184. package/dist/cjs/index-5aa5c817.js +1915 -0
  185. package/dist/cjs/index-5aa5c817.js.map +1 -0
  186. package/dist/cjs/index.cjs.js +4 -0
  187. package/dist/cjs/index.cjs.js.map +1 -0
  188. package/dist/cjs/loader.cjs.js +17 -0
  189. package/dist/cjs/loader.cjs.js.map +1 -0
  190. package/dist/cjs/popup-manager-cde53b2f.js +83 -0
  191. package/dist/cjs/popup-manager-cde53b2f.js.map +1 -0
  192. package/dist/collection/collection-manifest.json +97 -0
  193. package/dist/collection/components/Affix/Affix.js +197 -0
  194. package/dist/collection/components/Affix/Affix.js.map +1 -0
  195. package/dist/collection/components/Affix/affix.css +15 -0
  196. package/dist/collection/components/Alert/Alert.js +193 -0
  197. package/dist/collection/components/Alert/Alert.js.map +1 -0
  198. package/dist/collection/components/Alert/alert.css +20 -0
  199. package/dist/collection/components/Anchor/Anchor.js +142 -0
  200. package/dist/collection/components/Anchor/Anchor.js.map +1 -0
  201. package/dist/collection/components/Anchor/anchor.css +53 -0
  202. package/dist/collection/components/Avatar/Avatar.js +129 -0
  203. package/dist/collection/components/Avatar/Avatar.js.map +1 -0
  204. package/dist/collection/components/Avatar/avatar.css +9 -0
  205. package/dist/collection/components/Backtop/Backtop.js +236 -0
  206. package/dist/collection/components/Backtop/Backtop.js.map +1 -0
  207. package/dist/collection/components/Backtop/backtop.css +33 -0
  208. package/dist/collection/components/Badge/Badge.js +136 -0
  209. package/dist/collection/components/Badge/Badge.js.map +1 -0
  210. package/dist/collection/components/Badge/badge.css +17 -0
  211. package/dist/collection/components/Breadcrumb/Breadcrumb.js +49 -0
  212. package/dist/collection/components/Breadcrumb/Breadcrumb.js.map +1 -0
  213. package/dist/collection/components/Breadcrumb/BreadcrumbItem.js +43 -0
  214. package/dist/collection/components/Breadcrumb/BreadcrumbItem.js.map +1 -0
  215. package/dist/collection/components/Breadcrumb/breadcrumb.css +10 -0
  216. package/dist/collection/components/Button/Button.js +144 -0
  217. package/dist/collection/components/Button/Button.js.map +1 -0
  218. package/dist/collection/components/Button/button.css +127 -0
  219. package/dist/collection/components/Calendar/Calendar.js +185 -0
  220. package/dist/collection/components/Calendar/Calendar.js.map +1 -0
  221. package/dist/collection/components/Calendar/calendar.css +101 -0
  222. package/dist/collection/components/Card/Card.js +67 -0
  223. package/dist/collection/components/Card/Card.js.map +1 -0
  224. package/dist/collection/components/Card/card.css +17 -0
  225. package/dist/collection/components/Carousel/Carousel.js +312 -0
  226. package/dist/collection/components/Carousel/Carousel.js.map +1 -0
  227. package/dist/collection/components/Carousel/carousel.css +96 -0
  228. package/dist/collection/components/Cascader/Cascader.js +773 -0
  229. package/dist/collection/components/Cascader/Cascader.js.map +1 -0
  230. package/dist/collection/components/Cascader/cascader.css +276 -0
  231. package/dist/collection/components/Checkbox/Checkbox.js +372 -0
  232. package/dist/collection/components/Checkbox/Checkbox.js.map +1 -0
  233. package/dist/collection/components/Checkbox/CheckboxGroup.js +276 -0
  234. package/dist/collection/components/Checkbox/CheckboxGroup.js.map +1 -0
  235. package/dist/collection/components/Checkbox/checkbox-group.css +17 -0
  236. package/dist/collection/components/Checkbox/checkbox.css +179 -0
  237. package/dist/collection/components/Collapse/Collapse.js +63 -0
  238. package/dist/collection/components/Collapse/Collapse.js.map +1 -0
  239. package/dist/collection/components/Collapse/CollapseItem.js +142 -0
  240. package/dist/collection/components/Collapse/CollapseItem.js.map +1 -0
  241. package/dist/collection/components/Collapse/collapse.css +2 -0
  242. package/dist/collection/components/ColorPicker/ColorPicker.js +416 -0
  243. package/dist/collection/components/ColorPicker/ColorPicker.js.map +1 -0
  244. package/dist/collection/components/ColorPicker/color-picker.css +203 -0
  245. package/dist/collection/components/ColorPickerPanel/ColorPickerPanel.js +195 -0
  246. package/dist/collection/components/ColorPickerPanel/ColorPickerPanel.js.map +1 -0
  247. package/dist/collection/components/ColorPickerPanel/color-picker-panel.css +127 -0
  248. package/dist/collection/components/ConfigProvider/ConfigProvider.js +103 -0
  249. package/dist/collection/components/ConfigProvider/ConfigProvider.js.map +1 -0
  250. package/dist/collection/components/Container/Aside.js +54 -0
  251. package/dist/collection/components/Container/Aside.js.map +1 -0
  252. package/dist/collection/components/Container/Container.js +58 -0
  253. package/dist/collection/components/Container/Container.js.map +1 -0
  254. package/dist/collection/components/Container/Footer.js +54 -0
  255. package/dist/collection/components/Container/Footer.js.map +1 -0
  256. package/dist/collection/components/Container/Header.js +54 -0
  257. package/dist/collection/components/Container/Header.js.map +1 -0
  258. package/dist/collection/components/Container/Main.js +23 -0
  259. package/dist/collection/components/Container/Main.js.map +1 -0
  260. package/dist/collection/components/Container/aside.css +15 -0
  261. package/dist/collection/components/Container/container.css +41 -0
  262. package/dist/collection/components/Container/footer.css +15 -0
  263. package/dist/collection/components/Container/header.css +15 -0
  264. package/dist/collection/components/Container/main.css +14 -0
  265. package/dist/collection/components/DatePicker/DatePicker.js +402 -0
  266. package/dist/collection/components/DatePicker/DatePicker.js.map +1 -0
  267. package/dist/collection/components/DatePicker/date-picker.css +209 -0
  268. package/dist/collection/components/DatePickerPane/DatePickerPane.js +276 -0
  269. package/dist/collection/components/DatePickerPane/DatePickerPane.js.map +1 -0
  270. package/dist/collection/components/DatePickerPane/date-picker-pane.css +140 -0
  271. package/dist/collection/components/DateRangePicker/DateRangePicker.js +438 -0
  272. package/dist/collection/components/DateRangePicker/DateRangePicker.js.map +1 -0
  273. package/dist/collection/components/DateRangePicker/date-range-picker.css +200 -0
  274. package/dist/collection/components/DateTimePicker/DateTimePicker.js +341 -0
  275. package/dist/collection/components/DateTimePicker/DateTimePicker.js.map +1 -0
  276. package/dist/collection/components/DateTimePicker/date-time-picker.css +168 -0
  277. package/dist/collection/components/Descriptions/Descriptions.js +141 -0
  278. package/dist/collection/components/Descriptions/Descriptions.js.map +1 -0
  279. package/dist/collection/components/Descriptions/descriptions.css +52 -0
  280. package/dist/collection/components/Dialog/Dialog.js +348 -0
  281. package/dist/collection/components/Dialog/Dialog.js.map +1 -0
  282. package/dist/collection/components/Dialog/dialog.css +113 -0
  283. package/dist/collection/components/Divider/Divider.js +102 -0
  284. package/dist/collection/components/Divider/Divider.js.map +1 -0
  285. package/dist/collection/components/Divider/divider.css +40 -0
  286. package/dist/collection/components/Drawer/Drawer.js +289 -0
  287. package/dist/collection/components/Drawer/Drawer.js.map +1 -0
  288. package/dist/collection/components/Drawer/drawer.css +18 -0
  289. package/dist/collection/components/Dropdown/Dropdown.js +172 -0
  290. package/dist/collection/components/Dropdown/Dropdown.js.map +1 -0
  291. package/dist/collection/components/Dropdown/dropdown.css +62 -0
  292. package/dist/collection/components/Empty/Empty.js +64 -0
  293. package/dist/collection/components/Empty/Empty.js.map +1 -0
  294. package/dist/collection/components/Empty/empty.css +6 -0
  295. package/dist/collection/components/FloatButton/FloatButton.js +223 -0
  296. package/dist/collection/components/FloatButton/FloatButton.js.map +1 -0
  297. package/dist/collection/components/FloatButton/float-button.css +101 -0
  298. package/dist/collection/components/Form/Form.js +271 -0
  299. package/dist/collection/components/Form/Form.js.map +1 -0
  300. package/dist/collection/components/Form/FormItem.js +300 -0
  301. package/dist/collection/components/Form/FormItem.js.map +1 -0
  302. package/dist/collection/components/Form/form-item.css +43 -0
  303. package/dist/collection/components/Form/form.css +15 -0
  304. package/dist/collection/components/Icon/Icon.js +162 -0
  305. package/dist/collection/components/Icon/Icon.js.map +1 -0
  306. package/dist/collection/components/Icon/icon.css +43 -0
  307. package/dist/collection/components/Image/Image.js +200 -0
  308. package/dist/collection/components/Image/Image.js.map +1 -0
  309. package/dist/collection/components/Image/image.css +7 -0
  310. package/dist/collection/components/ImagePreview/ImagePreview.js +371 -0
  311. package/dist/collection/components/ImagePreview/ImagePreview.js.map +1 -0
  312. package/dist/collection/components/ImagePreview/image-preview.css +125 -0
  313. package/dist/collection/components/Input/Input.js +717 -0
  314. package/dist/collection/components/Input/Input.js.map +1 -0
  315. package/dist/collection/components/Input/input.css +144 -0
  316. package/dist/collection/components/InputNumber/InputNumber.js +510 -0
  317. package/dist/collection/components/InputNumber/InputNumber.js.map +1 -0
  318. package/dist/collection/components/InputNumber/input-number.css +168 -0
  319. package/dist/collection/components/InputTag/InputTag.js +427 -0
  320. package/dist/collection/components/InputTag/InputTag.js.map +1 -0
  321. package/dist/collection/components/InputTag/input-tag.css +159 -0
  322. package/dist/collection/components/Layout/Layout.js +270 -0
  323. package/dist/collection/components/Layout/Layout.js.map +1 -0
  324. package/dist/collection/components/Layout/Row.js +147 -0
  325. package/dist/collection/components/Layout/Row.js.map +1 -0
  326. package/dist/collection/components/Layout/layout.css +89 -0
  327. package/dist/collection/components/Layout/row.css +56 -0
  328. package/dist/collection/components/Link/Link.js +220 -0
  329. package/dist/collection/components/Link/Link.js.map +1 -0
  330. package/dist/collection/components/Link/link.css +87 -0
  331. package/dist/collection/components/Loading/Loading.js +96 -0
  332. package/dist/collection/components/Loading/Loading.js.map +1 -0
  333. package/dist/collection/components/Loading/loading.css +58 -0
  334. package/dist/collection/components/Menu/Menu.js +246 -0
  335. package/dist/collection/components/Menu/Menu.js.map +1 -0
  336. package/dist/collection/components/Menu/MenuItem.js +128 -0
  337. package/dist/collection/components/Menu/MenuItem.js.map +1 -0
  338. package/dist/collection/components/Menu/SubMenu.js +140 -0
  339. package/dist/collection/components/Menu/SubMenu.js.map +1 -0
  340. package/dist/collection/components/Menu/menu.css +143 -0
  341. package/dist/collection/components/Message/Message.js +139 -0
  342. package/dist/collection/components/Message/Message.js.map +1 -0
  343. package/dist/collection/components/Message/show-message.js +24 -0
  344. package/dist/collection/components/Message/show-message.js.map +1 -0
  345. package/dist/collection/components/Notification/Notification.js +262 -0
  346. package/dist/collection/components/Notification/Notification.js.map +1 -0
  347. package/dist/collection/components/Notification/notification.css +160 -0
  348. package/dist/collection/components/Notification/notify.js +53 -0
  349. package/dist/collection/components/Notification/notify.js.map +1 -0
  350. package/dist/collection/components/PageHeader/PageHeader.js +139 -0
  351. package/dist/collection/components/PageHeader/PageHeader.js.map +1 -0
  352. package/dist/collection/components/PageHeader/page-header.css +39 -0
  353. package/dist/collection/components/Pagination/Pagination.js +309 -0
  354. package/dist/collection/components/Pagination/Pagination.js.map +1 -0
  355. package/dist/collection/components/Pagination/pagination.css +83 -0
  356. package/dist/collection/components/Popconfirm/Popconfirm.js +185 -0
  357. package/dist/collection/components/Popconfirm/Popconfirm.js.map +1 -0
  358. package/dist/collection/components/Popconfirm/popconfirm.css +20 -0
  359. package/dist/collection/components/Popover/Popover.js +173 -0
  360. package/dist/collection/components/Popover/Popover.js.map +1 -0
  361. package/dist/collection/components/Popover/popover.css +10 -0
  362. package/dist/collection/components/Progress/Progress.js +139 -0
  363. package/dist/collection/components/Progress/Progress.js.map +1 -0
  364. package/dist/collection/components/Progress/progress.css +5 -0
  365. package/dist/collection/components/Radio/Radio.js +338 -0
  366. package/dist/collection/components/Radio/Radio.js.map +1 -0
  367. package/dist/collection/components/Radio/radio.css +158 -0
  368. package/dist/collection/components/Rate/Rate.js +357 -0
  369. package/dist/collection/components/Rate/Rate.js.map +1 -0
  370. package/dist/collection/components/Rate/rate.css +56 -0
  371. package/dist/collection/components/Result/Result.js +146 -0
  372. package/dist/collection/components/Result/Result.js.map +1 -0
  373. package/dist/collection/components/Result/result.css +47 -0
  374. package/dist/collection/components/Scrollbar/Scrollbar.js +426 -0
  375. package/dist/collection/components/Scrollbar/Scrollbar.js.map +1 -0
  376. package/dist/collection/components/Scrollbar/scrollbar.css +85 -0
  377. package/dist/collection/components/Segmented/Segmented.js +149 -0
  378. package/dist/collection/components/Segmented/Segmented.js.map +1 -0
  379. package/dist/collection/components/Segmented/segmented.css +46 -0
  380. package/dist/collection/components/Select/Select.js +595 -0
  381. package/dist/collection/components/Select/Select.js.map +1 -0
  382. package/dist/collection/components/Select/select.css +223 -0
  383. package/dist/collection/components/Skeleton/Skeleton.js +178 -0
  384. package/dist/collection/components/Skeleton/Skeleton.js.map +1 -0
  385. package/dist/collection/components/Skeleton/skeleton.css +59 -0
  386. package/dist/collection/components/Slider/Slider.js +434 -0
  387. package/dist/collection/components/Slider/Slider.js.map +1 -0
  388. package/dist/collection/components/Slider/slider.css +141 -0
  389. package/dist/collection/components/Space/Space.js +212 -0
  390. package/dist/collection/components/Space/Space.js.map +1 -0
  391. package/dist/collection/components/Space/space.css +57 -0
  392. package/dist/collection/components/Statistic/Statistic.js +188 -0
  393. package/dist/collection/components/Statistic/Statistic.js.map +1 -0
  394. package/dist/collection/components/Statistic/statistic.css +32 -0
  395. package/dist/collection/components/Steps/Step.js +95 -0
  396. package/dist/collection/components/Steps/Step.js.map +1 -0
  397. package/dist/collection/components/Steps/Steps.js +137 -0
  398. package/dist/collection/components/Steps/Steps.js.map +1 -0
  399. package/dist/collection/components/Steps/steps.css +25 -0
  400. package/dist/collection/components/Switch/Switch.js +324 -0
  401. package/dist/collection/components/Switch/Switch.js.map +1 -0
  402. package/dist/collection/components/Switch/switch.css +85 -0
  403. package/dist/collection/components/Table/Table.js +860 -0
  404. package/dist/collection/components/Table/Table.js.map +1 -0
  405. package/dist/collection/components/Table/table.css +289 -0
  406. package/dist/collection/components/Tabs/TabPane.js +82 -0
  407. package/dist/collection/components/Tabs/TabPane.js.map +1 -0
  408. package/dist/collection/components/Tabs/Tabs.js +221 -0
  409. package/dist/collection/components/Tabs/Tabs.js.map +1 -0
  410. package/dist/collection/components/Tabs/tabs.css +66 -0
  411. package/dist/collection/components/Tag/Tag.js +167 -0
  412. package/dist/collection/components/Tag/Tag.js.map +1 -0
  413. package/dist/collection/components/Tag/tag.css +71 -0
  414. package/dist/collection/components/Text/Text.js +203 -0
  415. package/dist/collection/components/Text/Text.js.map +1 -0
  416. package/dist/collection/components/Text/text.css +61 -0
  417. package/dist/collection/components/TimePicker/TimePicker.js +348 -0
  418. package/dist/collection/components/TimePicker/TimePicker.js.map +1 -0
  419. package/dist/collection/components/TimePicker/time-picker.css +151 -0
  420. package/dist/collection/components/TimeSelect/TimeSelect.js +389 -0
  421. package/dist/collection/components/TimeSelect/TimeSelect.js.map +1 -0
  422. package/dist/collection/components/TimeSelect/time-select.css +139 -0
  423. package/dist/collection/components/Timeline/Timeline.js +79 -0
  424. package/dist/collection/components/Timeline/Timeline.js.map +1 -0
  425. package/dist/collection/components/Timeline/timeline.css +71 -0
  426. package/dist/collection/components/Tooltip/Tooltip.js +192 -0
  427. package/dist/collection/components/Tooltip/Tooltip.js.map +1 -0
  428. package/dist/collection/components/Tooltip/tooltip.css +40 -0
  429. package/dist/collection/components/Tour/Tour.js +225 -0
  430. package/dist/collection/components/Tour/Tour.js.map +1 -0
  431. package/dist/collection/components/Tour/tour.css +117 -0
  432. package/dist/collection/components/Transfer/Transfer.js +331 -0
  433. package/dist/collection/components/Transfer/Transfer.js.map +1 -0
  434. package/dist/collection/components/Transfer/transfer.css +183 -0
  435. package/dist/collection/components/Tree/Tree.js +527 -0
  436. package/dist/collection/components/Tree/Tree.js.map +1 -0
  437. package/dist/collection/components/Tree/tree.css +132 -0
  438. package/dist/collection/components/TreeSelect/TreeSelect.js +440 -0
  439. package/dist/collection/components/TreeSelect/TreeSelect.js.map +1 -0
  440. package/dist/collection/components/TreeSelect/tree-select.css +209 -0
  441. package/dist/collection/components/Upload/Upload.js +504 -0
  442. package/dist/collection/components/Upload/Upload.js.map +1 -0
  443. package/dist/collection/components/Upload/upload.css +16 -0
  444. package/dist/collection/components/Watermark/Watermark.js +205 -0
  445. package/dist/collection/components/Watermark/Watermark.js.map +1 -0
  446. package/dist/collection/components/Watermark/watermark.css +26 -0
  447. package/dist/collection/index.js +2 -0
  448. package/dist/collection/index.js.map +1 -0
  449. package/dist/collection/utils/a11y.js +130 -0
  450. package/dist/collection/utils/a11y.js.map +1 -0
  451. package/dist/collection/utils/click-outside.js +22 -0
  452. package/dist/collection/utils/click-outside.js.map +1 -0
  453. package/dist/collection/utils/date-helpers.js +120 -0
  454. package/dist/collection/utils/date-helpers.js.map +1 -0
  455. package/dist/collection/utils/form-input-base.js +48 -0
  456. package/dist/collection/utils/form-input-base.js.map +1 -0
  457. package/dist/collection/utils/popup-manager.js +75 -0
  458. package/dist/collection/utils/popup-manager.js.map +1 -0
  459. package/dist/components/hb-affix.d.ts +11 -0
  460. package/dist/components/hb-affix.js +121 -0
  461. package/dist/components/hb-affix.js.map +1 -0
  462. package/dist/components/hb-alert.d.ts +11 -0
  463. package/dist/components/hb-alert.js +70 -0
  464. package/dist/components/hb-alert.js.map +1 -0
  465. package/dist/components/hb-anchor.d.ts +11 -0
  466. package/dist/components/hb-anchor.js +66 -0
  467. package/dist/components/hb-anchor.js.map +1 -0
  468. package/dist/components/hb-aside.d.ts +11 -0
  469. package/dist/components/hb-aside.js +47 -0
  470. package/dist/components/hb-aside.js.map +1 -0
  471. package/dist/components/hb-avatar.d.ts +11 -0
  472. package/dist/components/hb-avatar.js +52 -0
  473. package/dist/components/hb-avatar.js.map +1 -0
  474. package/dist/components/hb-backtop.d.ts +11 -0
  475. package/dist/components/hb-backtop.js +122 -0
  476. package/dist/components/hb-backtop.js.map +1 -0
  477. package/dist/components/hb-badge.d.ts +11 -0
  478. package/dist/components/hb-badge.js +56 -0
  479. package/dist/components/hb-badge.js.map +1 -0
  480. package/dist/components/hb-breadcrumb-item.d.ts +11 -0
  481. package/dist/components/hb-breadcrumb-item.js +42 -0
  482. package/dist/components/hb-breadcrumb-item.js.map +1 -0
  483. package/dist/components/hb-breadcrumb.d.ts +11 -0
  484. package/dist/components/hb-breadcrumb.js +41 -0
  485. package/dist/components/hb-breadcrumb.js.map +1 -0
  486. package/dist/components/hb-button.d.ts +11 -0
  487. package/dist/components/hb-button.js +60 -0
  488. package/dist/components/hb-button.js.map +1 -0
  489. package/dist/components/hb-calendar.d.ts +11 -0
  490. package/dist/components/hb-calendar.js +113 -0
  491. package/dist/components/hb-calendar.js.map +1 -0
  492. package/dist/components/hb-card.d.ts +11 -0
  493. package/dist/components/hb-card.js +45 -0
  494. package/dist/components/hb-card.js.map +1 -0
  495. package/dist/components/hb-carousel.d.ts +11 -0
  496. package/dist/components/hb-carousel.js +178 -0
  497. package/dist/components/hb-carousel.js.map +1 -0
  498. package/dist/components/hb-cascader.d.ts +11 -0
  499. package/dist/components/hb-cascader.js +451 -0
  500. package/dist/components/hb-cascader.js.map +1 -0
  501. package/dist/components/hb-checkbox-group.d.ts +11 -0
  502. package/dist/components/hb-checkbox-group.js +145 -0
  503. package/dist/components/hb-checkbox-group.js.map +1 -0
  504. package/dist/components/hb-checkbox.d.ts +11 -0
  505. package/dist/components/hb-checkbox.js +161 -0
  506. package/dist/components/hb-checkbox.js.map +1 -0
  507. package/dist/components/hb-collapse-item.d.ts +11 -0
  508. package/dist/components/hb-collapse-item.js +81 -0
  509. package/dist/components/hb-collapse-item.js.map +1 -0
  510. package/dist/components/hb-collapse.d.ts +11 -0
  511. package/dist/components/hb-collapse.js +58 -0
  512. package/dist/components/hb-collapse.js.map +1 -0
  513. package/dist/components/hb-color-picker-panel.d.ts +11 -0
  514. package/dist/components/hb-color-picker-panel.js +109 -0
  515. package/dist/components/hb-color-picker-panel.js.map +1 -0
  516. package/dist/components/hb-color-picker.d.ts +11 -0
  517. package/dist/components/hb-color-picker.js +293 -0
  518. package/dist/components/hb-color-picker.js.map +1 -0
  519. package/dist/components/hb-config-provider.d.ts +11 -0
  520. package/dist/components/hb-config-provider.js +62 -0
  521. package/dist/components/hb-config-provider.js.map +1 -0
  522. package/dist/components/hb-container.d.ts +11 -0
  523. package/dist/components/hb-container.js +47 -0
  524. package/dist/components/hb-container.js.map +1 -0
  525. package/dist/components/hb-date-picker-pane.d.ts +11 -0
  526. package/dist/components/hb-date-picker-pane.js +172 -0
  527. package/dist/components/hb-date-picker-pane.js.map +1 -0
  528. package/dist/components/hb-date-picker.d.ts +11 -0
  529. package/dist/components/hb-date-picker.js +170 -0
  530. package/dist/components/hb-date-picker.js.map +1 -0
  531. package/dist/components/hb-date-range-picker.d.ts +11 -0
  532. package/dist/components/hb-date-range-picker.js +254 -0
  533. package/dist/components/hb-date-range-picker.js.map +1 -0
  534. package/dist/components/hb-date-time-picker.d.ts +11 -0
  535. package/dist/components/hb-date-time-picker.js +170 -0
  536. package/dist/components/hb-date-time-picker.js.map +1 -0
  537. package/dist/components/hb-descriptions.d.ts +11 -0
  538. package/dist/components/hb-descriptions.js +53 -0
  539. package/dist/components/hb-descriptions.js.map +1 -0
  540. package/dist/components/hb-dialog.d.ts +11 -0
  541. package/dist/components/hb-dialog.js +141 -0
  542. package/dist/components/hb-dialog.js.map +1 -0
  543. package/dist/components/hb-divider.d.ts +11 -0
  544. package/dist/components/hb-divider.js +55 -0
  545. package/dist/components/hb-divider.js.map +1 -0
  546. package/dist/components/hb-drawer.d.ts +11 -0
  547. package/dist/components/hb-drawer.js +116 -0
  548. package/dist/components/hb-drawer.js.map +1 -0
  549. package/dist/components/hb-dropdown.d.ts +11 -0
  550. package/dist/components/hb-dropdown.js +100 -0
  551. package/dist/components/hb-dropdown.js.map +1 -0
  552. package/dist/components/hb-empty.d.ts +11 -0
  553. package/dist/components/hb-empty.js +42 -0
  554. package/dist/components/hb-empty.js.map +1 -0
  555. package/dist/components/hb-float-button.d.ts +11 -0
  556. package/dist/components/hb-float-button.js +80 -0
  557. package/dist/components/hb-float-button.js.map +1 -0
  558. package/dist/components/hb-footer.d.ts +11 -0
  559. package/dist/components/hb-footer.js +47 -0
  560. package/dist/components/hb-footer.js.map +1 -0
  561. package/dist/components/hb-form-item.d.ts +11 -0
  562. package/dist/components/hb-form-item.js +139 -0
  563. package/dist/components/hb-form-item.js.map +1 -0
  564. package/dist/components/hb-form.d.ts +11 -0
  565. package/dist/components/hb-form.js +96 -0
  566. package/dist/components/hb-form.js.map +1 -0
  567. package/dist/components/hb-header.d.ts +11 -0
  568. package/dist/components/hb-header.js +47 -0
  569. package/dist/components/hb-header.js.map +1 -0
  570. package/dist/components/hb-icon.d.ts +11 -0
  571. package/dist/components/hb-icon.js +96 -0
  572. package/dist/components/hb-icon.js.map +1 -0
  573. package/dist/components/hb-image-preview.d.ts +11 -0
  574. package/dist/components/hb-image-preview.js +207 -0
  575. package/dist/components/hb-image-preview.js.map +1 -0
  576. package/dist/components/hb-image.d.ts +11 -0
  577. package/dist/components/hb-image.js +62 -0
  578. package/dist/components/hb-image.js.map +1 -0
  579. package/dist/components/hb-input-number.d.ts +11 -0
  580. package/dist/components/hb-input-number.js +202 -0
  581. package/dist/components/hb-input-number.js.map +1 -0
  582. package/dist/components/hb-input-tag.d.ts +11 -0
  583. package/dist/components/hb-input-tag.js +174 -0
  584. package/dist/components/hb-input-tag.js.map +1 -0
  585. package/dist/components/hb-input.d.ts +11 -0
  586. package/dist/components/hb-input.js +294 -0
  587. package/dist/components/hb-input.js.map +1 -0
  588. package/dist/components/hb-layout.d.ts +11 -0
  589. package/dist/components/hb-layout.js +103 -0
  590. package/dist/components/hb-layout.js.map +1 -0
  591. package/dist/components/hb-link.d.ts +11 -0
  592. package/dist/components/hb-link.js +89 -0
  593. package/dist/components/hb-link.js.map +1 -0
  594. package/dist/components/hb-loading.d.ts +11 -0
  595. package/dist/components/hb-loading.js +51 -0
  596. package/dist/components/hb-loading.js.map +1 -0
  597. package/dist/components/hb-main.d.ts +11 -0
  598. package/dist/components/hb-main.js +37 -0
  599. package/dist/components/hb-main.js.map +1 -0
  600. package/dist/components/hb-menu-item.d.ts +11 -0
  601. package/dist/components/hb-menu-item.js +70 -0
  602. package/dist/components/hb-menu-item.js.map +1 -0
  603. package/dist/components/hb-menu.d.ts +11 -0
  604. package/dist/components/hb-menu.js +113 -0
  605. package/dist/components/hb-menu.js.map +1 -0
  606. package/dist/components/hb-message.d.ts +11 -0
  607. package/dist/components/hb-message.js +69 -0
  608. package/dist/components/hb-message.js.map +1 -0
  609. package/dist/components/hb-notification.d.ts +11 -0
  610. package/dist/components/hb-notification.js +91 -0
  611. package/dist/components/hb-notification.js.map +1 -0
  612. package/dist/components/hb-page-header.d.ts +11 -0
  613. package/dist/components/hb-page-header.js +57 -0
  614. package/dist/components/hb-page-header.js.map +1 -0
  615. package/dist/components/hb-pagination.d.ts +11 -0
  616. package/dist/components/hb-pagination.js +134 -0
  617. package/dist/components/hb-pagination.js.map +1 -0
  618. package/dist/components/hb-popconfirm.d.ts +11 -0
  619. package/dist/components/hb-popconfirm.js +75 -0
  620. package/dist/components/hb-popconfirm.js.map +1 -0
  621. package/dist/components/hb-popover.d.ts +11 -0
  622. package/dist/components/hb-popover.js +82 -0
  623. package/dist/components/hb-popover.js.map +1 -0
  624. package/dist/components/hb-progress.d.ts +11 -0
  625. package/dist/components/hb-progress.js +60 -0
  626. package/dist/components/hb-progress.js.map +1 -0
  627. package/dist/components/hb-radio.d.ts +11 -0
  628. package/dist/components/hb-radio.js +149 -0
  629. package/dist/components/hb-radio.js.map +1 -0
  630. package/dist/components/hb-rate.d.ts +11 -0
  631. package/dist/components/hb-rate.js +161 -0
  632. package/dist/components/hb-rate.js.map +1 -0
  633. package/dist/components/hb-result.d.ts +11 -0
  634. package/dist/components/hb-result.js +77 -0
  635. package/dist/components/hb-result.js.map +1 -0
  636. package/dist/components/hb-row.d.ts +11 -0
  637. package/dist/components/hb-row.js +77 -0
  638. package/dist/components/hb-row.js.map +1 -0
  639. package/dist/components/hb-scrollbar.d.ts +11 -0
  640. package/dist/components/hb-scrollbar.js +235 -0
  641. package/dist/components/hb-scrollbar.js.map +1 -0
  642. package/dist/components/hb-segmented.d.ts +11 -0
  643. package/dist/components/hb-segmented.js +63 -0
  644. package/dist/components/hb-segmented.js.map +1 -0
  645. package/dist/components/hb-select.d.ts +11 -0
  646. package/dist/components/hb-select.js +299 -0
  647. package/dist/components/hb-select.js.map +1 -0
  648. package/dist/components/hb-skeleton.d.ts +11 -0
  649. package/dist/components/hb-skeleton.js +75 -0
  650. package/dist/components/hb-skeleton.js.map +1 -0
  651. package/dist/components/hb-slider.d.ts +11 -0
  652. package/dist/components/hb-slider.js +202 -0
  653. package/dist/components/hb-slider.js.map +1 -0
  654. package/dist/components/hb-space.d.ts +11 -0
  655. package/dist/components/hb-space.js +94 -0
  656. package/dist/components/hb-space.js.map +1 -0
  657. package/dist/components/hb-statistic.d.ts +11 -0
  658. package/dist/components/hb-statistic.js +88 -0
  659. package/dist/components/hb-statistic.js.map +1 -0
  660. package/dist/components/hb-step.d.ts +11 -0
  661. package/dist/components/hb-step.js +42 -0
  662. package/dist/components/hb-step.js.map +1 -0
  663. package/dist/components/hb-steps.d.ts +11 -0
  664. package/dist/components/hb-steps.js +71 -0
  665. package/dist/components/hb-steps.js.map +1 -0
  666. package/dist/components/hb-sub-menu.d.ts +11 -0
  667. package/dist/components/hb-sub-menu.js +91 -0
  668. package/dist/components/hb-sub-menu.js.map +1 -0
  669. package/dist/components/hb-switch.d.ts +11 -0
  670. package/dist/components/hb-switch.js +118 -0
  671. package/dist/components/hb-switch.js.map +1 -0
  672. package/dist/components/hb-tab-pane.d.ts +11 -0
  673. package/dist/components/hb-tab-pane.js +43 -0
  674. package/dist/components/hb-tab-pane.js.map +1 -0
  675. package/dist/components/hb-table.d.ts +11 -0
  676. package/dist/components/hb-table.js +412 -0
  677. package/dist/components/hb-table.js.map +1 -0
  678. package/dist/components/hb-tabs.d.ts +11 -0
  679. package/dist/components/hb-tabs.js +138 -0
  680. package/dist/components/hb-tabs.js.map +1 -0
  681. package/dist/components/hb-tag.d.ts +11 -0
  682. package/dist/components/hb-tag.js +66 -0
  683. package/dist/components/hb-tag.js.map +1 -0
  684. package/dist/components/hb-text.d.ts +11 -0
  685. package/dist/components/hb-text.js +82 -0
  686. package/dist/components/hb-text.js.map +1 -0
  687. package/dist/components/hb-time-picker.d.ts +11 -0
  688. package/dist/components/hb-time-picker.js +178 -0
  689. package/dist/components/hb-time-picker.js.map +1 -0
  690. package/dist/components/hb-time-select.d.ts +11 -0
  691. package/dist/components/hb-time-select.js +175 -0
  692. package/dist/components/hb-time-select.js.map +1 -0
  693. package/dist/components/hb-timeline.d.ts +11 -0
  694. package/dist/components/hb-timeline.js +48 -0
  695. package/dist/components/hb-timeline.js.map +1 -0
  696. package/dist/components/hb-tooltip.d.ts +11 -0
  697. package/dist/components/hb-tooltip.js +97 -0
  698. package/dist/components/hb-tooltip.js.map +1 -0
  699. package/dist/components/hb-tour.d.ts +11 -0
  700. package/dist/components/hb-tour.js +139 -0
  701. package/dist/components/hb-tour.js.map +1 -0
  702. package/dist/components/hb-transfer.d.ts +11 -0
  703. package/dist/components/hb-transfer.js +199 -0
  704. package/dist/components/hb-transfer.js.map +1 -0
  705. package/dist/components/hb-tree-select.d.ts +11 -0
  706. package/dist/components/hb-tree-select.js +263 -0
  707. package/dist/components/hb-tree-select.js.map +1 -0
  708. package/dist/components/hb-tree.d.ts +11 -0
  709. package/dist/components/hb-tree.js +344 -0
  710. package/dist/components/hb-tree.js.map +1 -0
  711. package/dist/components/hb-upload.d.ts +11 -0
  712. package/dist/components/hb-upload.js +213 -0
  713. package/dist/components/hb-upload.js.map +1 -0
  714. package/dist/components/hb-watermark.d.ts +11 -0
  715. package/dist/components/hb-watermark.js +82 -0
  716. package/dist/components/hb-watermark.js.map +1 -0
  717. package/dist/components/index.d.ts +33 -0
  718. package/dist/components/index.js +3 -0
  719. package/dist/components/index.js.map +1 -0
  720. package/dist/components/p-1407a5e8.js +1662 -0
  721. package/dist/components/p-1407a5e8.js.map +1 -0
  722. package/dist/components/p-4ef5a884.js +25 -0
  723. package/dist/components/p-4ef5a884.js.map +1 -0
  724. package/dist/components/p-cc0aeb50.js +119 -0
  725. package/dist/components/p-cc0aeb50.js.map +1 -0
  726. package/dist/components/p-cf94cbf6.js +123 -0
  727. package/dist/components/p-cf94cbf6.js.map +1 -0
  728. package/dist/components/p-ecce2b5e.js +78 -0
  729. package/dist/components/p-ecce2b5e.js.map +1 -0
  730. package/dist/esm/a11y-f9ab2964.js +119 -0
  731. package/dist/esm/a11y-f9ab2964.js.map +1 -0
  732. package/dist/esm/app-globals-0f993ce5.js +5 -0
  733. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  734. package/dist/esm/click-outside-291294f9.js +25 -0
  735. package/dist/esm/click-outside-291294f9.js.map +1 -0
  736. package/dist/esm/date-helpers-e4d85a67.js +123 -0
  737. package/dist/esm/date-helpers-e4d85a67.js.map +1 -0
  738. package/dist/esm/hb-affix.entry.js +97 -0
  739. package/dist/esm/hb-affix.entry.js.map +1 -0
  740. package/dist/esm/hb-alert.entry.js +43 -0
  741. package/dist/esm/hb-alert.entry.js.map +1 -0
  742. package/dist/esm/hb-anchor.entry.js +42 -0
  743. package/dist/esm/hb-anchor.entry.js.map +1 -0
  744. package/dist/esm/hb-aside.entry.js +26 -0
  745. package/dist/esm/hb-aside.entry.js.map +1 -0
  746. package/dist/esm/hb-avatar.entry.js +27 -0
  747. package/dist/esm/hb-avatar.entry.js.map +1 -0
  748. package/dist/esm/hb-backtop.entry.js +96 -0
  749. package/dist/esm/hb-backtop.entry.js.map +1 -0
  750. package/dist/esm/hb-badge.entry.js +31 -0
  751. package/dist/esm/hb-badge.entry.js.map +1 -0
  752. package/dist/esm/hb-breadcrumb-item.entry.js +21 -0
  753. package/dist/esm/hb-breadcrumb-item.entry.js.map +1 -0
  754. package/dist/esm/hb-breadcrumb.entry.js +20 -0
  755. package/dist/esm/hb-breadcrumb.entry.js.map +1 -0
  756. package/dist/esm/hb-button.entry.js +35 -0
  757. package/dist/esm/hb-button.entry.js.map +1 -0
  758. package/dist/esm/hb-calendar.entry.js +86 -0
  759. package/dist/esm/hb-calendar.entry.js.map +1 -0
  760. package/dist/esm/hb-card.entry.js +23 -0
  761. package/dist/esm/hb-card.entry.js.map +1 -0
  762. package/dist/esm/hb-carousel.entry.js +146 -0
  763. package/dist/esm/hb-carousel.entry.js.map +1 -0
  764. package/dist/esm/hb-cascader.entry.js +409 -0
  765. package/dist/esm/hb-cascader.entry.js.map +1 -0
  766. package/dist/esm/hb-checkbox-group.entry.js +113 -0
  767. package/dist/esm/hb-checkbox-group.entry.js.map +1 -0
  768. package/dist/esm/hb-checkbox.entry.js +126 -0
  769. package/dist/esm/hb-checkbox.entry.js.map +1 -0
  770. package/dist/esm/hb-collapse-item.entry.js +54 -0
  771. package/dist/esm/hb-collapse-item.entry.js.map +1 -0
  772. package/dist/esm/hb-collapse.entry.js +37 -0
  773. package/dist/esm/hb-collapse.entry.js.map +1 -0
  774. package/dist/esm/hb-color-picker-panel.entry.js +82 -0
  775. package/dist/esm/hb-color-picker-panel.entry.js.map +1 -0
  776. package/dist/esm/hb-color-picker.entry.js +261 -0
  777. package/dist/esm/hb-color-picker.entry.js.map +1 -0
  778. package/dist/esm/hb-config-provider.entry.js +40 -0
  779. package/dist/esm/hb-config-provider.entry.js.map +1 -0
  780. package/dist/esm/hb-container.entry.js +26 -0
  781. package/dist/esm/hb-container.entry.js.map +1 -0
  782. package/dist/esm/hb-date-picker-pane.entry.js +146 -0
  783. package/dist/esm/hb-date-picker-pane.entry.js.map +1 -0
  784. package/dist/esm/hb-date-picker.entry.js +134 -0
  785. package/dist/esm/hb-date-picker.entry.js.map +1 -0
  786. package/dist/esm/hb-date-range-picker.entry.js +218 -0
  787. package/dist/esm/hb-date-range-picker.entry.js.map +1 -0
  788. package/dist/esm/hb-date-time-picker.entry.js +136 -0
  789. package/dist/esm/hb-date-time-picker.entry.js.map +1 -0
  790. package/dist/esm/hb-descriptions.entry.js +28 -0
  791. package/dist/esm/hb-descriptions.entry.js.map +1 -0
  792. package/dist/esm/hb-dialog.entry.js +110 -0
  793. package/dist/esm/hb-dialog.entry.js.map +1 -0
  794. package/dist/esm/hb-divider.entry.js +32 -0
  795. package/dist/esm/hb-divider.entry.js.map +1 -0
  796. package/dist/esm/hb-drawer.entry.js +85 -0
  797. package/dist/esm/hb-drawer.entry.js.map +1 -0
  798. package/dist/esm/hb-dropdown.entry.js +76 -0
  799. package/dist/esm/hb-dropdown.entry.js.map +1 -0
  800. package/dist/esm/hb-empty.entry.js +20 -0
  801. package/dist/esm/hb-empty.entry.js.map +1 -0
  802. package/dist/esm/hb-float-button.entry.js +53 -0
  803. package/dist/esm/hb-float-button.entry.js.map +1 -0
  804. package/dist/esm/hb-footer.entry.js +26 -0
  805. package/dist/esm/hb-footer.entry.js.map +1 -0
  806. package/dist/esm/hb-form-item.entry.js +108 -0
  807. package/dist/esm/hb-form-item.entry.js.map +1 -0
  808. package/dist/esm/hb-form.entry.js +66 -0
  809. package/dist/esm/hb-form.entry.js.map +1 -0
  810. package/dist/esm/hb-header.entry.js +26 -0
  811. package/dist/esm/hb-header.entry.js.map +1 -0
  812. package/dist/esm/hb-icon.entry.js +72 -0
  813. package/dist/esm/hb-icon.entry.js.map +1 -0
  814. package/dist/esm/hb-image-preview.entry.js +175 -0
  815. package/dist/esm/hb-image-preview.entry.js.map +1 -0
  816. package/dist/esm/hb-image.entry.js +31 -0
  817. package/dist/esm/hb-image.entry.js.map +1 -0
  818. package/dist/esm/hb-input-number.entry.js +165 -0
  819. package/dist/esm/hb-input-number.entry.js.map +1 -0
  820. package/dist/esm/hb-input-tag.entry.js +141 -0
  821. package/dist/esm/hb-input-tag.entry.js.map +1 -0
  822. package/dist/esm/hb-input.entry.js +248 -0
  823. package/dist/esm/hb-input.entry.js.map +1 -0
  824. package/dist/esm/hb-layout.entry.js +74 -0
  825. package/dist/esm/hb-layout.entry.js.map +1 -0
  826. package/dist/esm/hb-link.entry.js +63 -0
  827. package/dist/esm/hb-link.entry.js.map +1 -0
  828. package/dist/esm/hb-loading.entry.js +28 -0
  829. package/dist/esm/hb-loading.entry.js.map +1 -0
  830. package/dist/esm/hb-main.entry.js +18 -0
  831. package/dist/esm/hb-main.entry.js.map +1 -0
  832. package/dist/esm/hb-menu-item.entry.js +46 -0
  833. package/dist/esm/hb-menu-item.entry.js.map +1 -0
  834. package/dist/esm/hb-menu.entry.js +83 -0
  835. package/dist/esm/hb-menu.entry.js.map +1 -0
  836. package/dist/esm/hb-message.entry.js +44 -0
  837. package/dist/esm/hb-message.entry.js.map +1 -0
  838. package/dist/esm/hb-notification.entry.js +63 -0
  839. package/dist/esm/hb-notification.entry.js.map +1 -0
  840. package/dist/esm/hb-page-header.entry.js +33 -0
  841. package/dist/esm/hb-page-header.entry.js.map +1 -0
  842. package/dist/esm/hb-pagination.entry.js +103 -0
  843. package/dist/esm/hb-pagination.entry.js.map +1 -0
  844. package/dist/esm/hb-popconfirm.entry.js +47 -0
  845. package/dist/esm/hb-popconfirm.entry.js.map +1 -0
  846. package/dist/esm/hb-popover.entry.js +55 -0
  847. package/dist/esm/hb-popover.entry.js.map +1 -0
  848. package/dist/esm/hb-progress.entry.js +35 -0
  849. package/dist/esm/hb-progress.entry.js.map +1 -0
  850. package/dist/esm/hb-radio.entry.js +115 -0
  851. package/dist/esm/hb-radio.entry.js.map +1 -0
  852. package/dist/esm/hb-rate.entry.js +128 -0
  853. package/dist/esm/hb-rate.entry.js.map +1 -0
  854. package/dist/esm/hb-result.entry.js +53 -0
  855. package/dist/esm/hb-result.entry.js.map +1 -0
  856. package/dist/esm/hb-row.entry.js +53 -0
  857. package/dist/esm/hb-row.entry.js.map +1 -0
  858. package/dist/esm/hb-scrollbar.entry.js +200 -0
  859. package/dist/esm/hb-scrollbar.entry.js.map +1 -0
  860. package/dist/esm/hb-segmented.entry.js +39 -0
  861. package/dist/esm/hb-segmented.entry.js.map +1 -0
  862. package/dist/esm/hb-select.entry.js +258 -0
  863. package/dist/esm/hb-select.entry.js.map +1 -0
  864. package/dist/esm/hb-skeleton.entry.js +49 -0
  865. package/dist/esm/hb-skeleton.entry.js.map +1 -0
  866. package/dist/esm/hb-slider.entry.js +168 -0
  867. package/dist/esm/hb-slider.entry.js.map +1 -0
  868. package/dist/esm/hb-space.entry.js +68 -0
  869. package/dist/esm/hb-space.entry.js.map +1 -0
  870. package/dist/esm/hb-statistic.entry.js +62 -0
  871. package/dist/esm/hb-statistic.entry.js.map +1 -0
  872. package/dist/esm/hb-step.entry.js +20 -0
  873. package/dist/esm/hb-step.entry.js.map +1 -0
  874. package/dist/esm/hb-steps.entry.js +46 -0
  875. package/dist/esm/hb-steps.entry.js.map +1 -0
  876. package/dist/esm/hb-sub-menu.entry.js +66 -0
  877. package/dist/esm/hb-sub-menu.entry.js.map +1 -0
  878. package/dist/esm/hb-switch.entry.js +88 -0
  879. package/dist/esm/hb-switch.entry.js.map +1 -0
  880. package/dist/esm/hb-tab-pane.entry.js +22 -0
  881. package/dist/esm/hb-tab-pane.entry.js.map +1 -0
  882. package/dist/esm/hb-table.entry.js +366 -0
  883. package/dist/esm/hb-table.entry.js.map +1 -0
  884. package/dist/esm/hb-tabs.entry.js +111 -0
  885. package/dist/esm/hb-tabs.entry.js.map +1 -0
  886. package/dist/esm/hb-tag.entry.js +41 -0
  887. package/dist/esm/hb-tag.entry.js.map +1 -0
  888. package/dist/esm/hb-text.entry.js +56 -0
  889. package/dist/esm/hb-text.entry.js.map +1 -0
  890. package/dist/esm/hb-time-picker.entry.js +143 -0
  891. package/dist/esm/hb-time-picker.entry.js.map +1 -0
  892. package/dist/esm/hb-time-select.entry.js +141 -0
  893. package/dist/esm/hb-time-select.entry.js.map +1 -0
  894. package/dist/esm/hb-timeline.entry.js +26 -0
  895. package/dist/esm/hb-timeline.entry.js.map +1 -0
  896. package/dist/esm/hb-tooltip.entry.js +70 -0
  897. package/dist/esm/hb-tooltip.entry.js.map +1 -0
  898. package/dist/esm/hb-tour.entry.js +115 -0
  899. package/dist/esm/hb-tour.entry.js.map +1 -0
  900. package/dist/esm/hb-transfer.entry.js +169 -0
  901. package/dist/esm/hb-transfer.entry.js.map +1 -0
  902. package/dist/esm/hb-tree-select.entry.js +232 -0
  903. package/dist/esm/hb-tree-select.entry.js.map +1 -0
  904. package/dist/esm/hb-tree.entry.js +309 -0
  905. package/dist/esm/hb-tree.entry.js.map +1 -0
  906. package/dist/esm/hb-upload.entry.js +180 -0
  907. package/dist/esm/hb-upload.entry.js.map +1 -0
  908. package/dist/esm/hb-watermark.entry.js +55 -0
  909. package/dist/esm/hb-watermark.entry.js.map +1 -0
  910. package/dist/esm/huibo-ui.js +22 -0
  911. package/dist/esm/huibo-ui.js.map +1 -0
  912. package/dist/esm/index-fdf7135e.js +1886 -0
  913. package/dist/esm/index-fdf7135e.js.map +1 -0
  914. package/dist/esm/index.js +3 -0
  915. package/dist/esm/index.js.map +1 -0
  916. package/dist/esm/loader.js +13 -0
  917. package/dist/esm/loader.js.map +1 -0
  918. package/dist/esm/popup-manager-128cc685.js +78 -0
  919. package/dist/esm/popup-manager-128cc685.js.map +1 -0
  920. package/dist/huibo-ui/huibo-ui.css +6 -0
  921. package/dist/huibo-ui/huibo-ui.esm.js +2 -0
  922. package/dist/huibo-ui/huibo-ui.esm.js.map +1 -0
  923. package/dist/huibo-ui/index.esm.js +2 -0
  924. package/dist/huibo-ui/index.esm.js.map +1 -0
  925. package/dist/huibo-ui/p-003cee87.entry.js +2 -0
  926. package/dist/huibo-ui/p-003cee87.entry.js.map +1 -0
  927. package/dist/huibo-ui/p-06ec8d02.entry.js +2 -0
  928. package/dist/huibo-ui/p-06ec8d02.entry.js.map +1 -0
  929. package/dist/huibo-ui/p-079a4130.entry.js +2 -0
  930. package/dist/huibo-ui/p-079a4130.entry.js.map +1 -0
  931. package/dist/huibo-ui/p-0a033738.entry.js +2 -0
  932. package/dist/huibo-ui/p-0a033738.entry.js.map +1 -0
  933. package/dist/huibo-ui/p-0bef78ac.entry.js +2 -0
  934. package/dist/huibo-ui/p-0bef78ac.entry.js.map +1 -0
  935. package/dist/huibo-ui/p-0e65e1bd.entry.js +2 -0
  936. package/dist/huibo-ui/p-0e65e1bd.entry.js.map +1 -0
  937. package/dist/huibo-ui/p-0f189251.entry.js +2 -0
  938. package/dist/huibo-ui/p-0f189251.entry.js.map +1 -0
  939. package/dist/huibo-ui/p-10c088f3.entry.js +2 -0
  940. package/dist/huibo-ui/p-10c088f3.entry.js.map +1 -0
  941. package/dist/huibo-ui/p-1b5acd6d.entry.js +2 -0
  942. package/dist/huibo-ui/p-1b5acd6d.entry.js.map +1 -0
  943. package/dist/huibo-ui/p-1e5abc8a.entry.js +2 -0
  944. package/dist/huibo-ui/p-1e5abc8a.entry.js.map +1 -0
  945. package/dist/huibo-ui/p-1f0b1662.entry.js +2 -0
  946. package/dist/huibo-ui/p-1f0b1662.entry.js.map +1 -0
  947. package/dist/huibo-ui/p-21682e92.entry.js +2 -0
  948. package/dist/huibo-ui/p-21682e92.entry.js.map +1 -0
  949. package/dist/huibo-ui/p-231a7335.entry.js +2 -0
  950. package/dist/huibo-ui/p-231a7335.entry.js.map +1 -0
  951. package/dist/huibo-ui/p-24ad7eec.entry.js +2 -0
  952. package/dist/huibo-ui/p-24ad7eec.entry.js.map +1 -0
  953. package/dist/huibo-ui/p-2b286698.entry.js +2 -0
  954. package/dist/huibo-ui/p-2b286698.entry.js.map +1 -0
  955. package/dist/huibo-ui/p-2e6584ea.entry.js +2 -0
  956. package/dist/huibo-ui/p-2e6584ea.entry.js.map +1 -0
  957. package/dist/huibo-ui/p-315feadf.entry.js +2 -0
  958. package/dist/huibo-ui/p-315feadf.entry.js.map +1 -0
  959. package/dist/huibo-ui/p-332c8877.entry.js +2 -0
  960. package/dist/huibo-ui/p-332c8877.entry.js.map +1 -0
  961. package/dist/huibo-ui/p-3c7f73c8.entry.js +2 -0
  962. package/dist/huibo-ui/p-3c7f73c8.entry.js.map +1 -0
  963. package/dist/huibo-ui/p-4001c08d.entry.js +2 -0
  964. package/dist/huibo-ui/p-4001c08d.entry.js.map +1 -0
  965. package/dist/huibo-ui/p-44c48246.entry.js +2 -0
  966. package/dist/huibo-ui/p-44c48246.entry.js.map +1 -0
  967. package/dist/huibo-ui/p-463de26d.entry.js +2 -0
  968. package/dist/huibo-ui/p-463de26d.entry.js.map +1 -0
  969. package/dist/huibo-ui/p-465dcb4c.entry.js +2 -0
  970. package/dist/huibo-ui/p-465dcb4c.entry.js.map +1 -0
  971. package/dist/huibo-ui/p-476527c1.entry.js +2 -0
  972. package/dist/huibo-ui/p-476527c1.entry.js.map +1 -0
  973. package/dist/huibo-ui/p-477d8568.entry.js +2 -0
  974. package/dist/huibo-ui/p-477d8568.entry.js.map +1 -0
  975. package/dist/huibo-ui/p-4d0dff15.entry.js +2 -0
  976. package/dist/huibo-ui/p-4d0dff15.entry.js.map +1 -0
  977. package/dist/huibo-ui/p-4d8b1404.entry.js +2 -0
  978. package/dist/huibo-ui/p-4d8b1404.entry.js.map +1 -0
  979. package/dist/huibo-ui/p-4ef5a884.js +2 -0
  980. package/dist/huibo-ui/p-4ef5a884.js.map +1 -0
  981. package/dist/huibo-ui/p-58d20809.entry.js +2 -0
  982. package/dist/huibo-ui/p-58d20809.entry.js.map +1 -0
  983. package/dist/huibo-ui/p-58ebb9b3.entry.js +2 -0
  984. package/dist/huibo-ui/p-58ebb9b3.entry.js.map +1 -0
  985. package/dist/huibo-ui/p-59b2e61c.entry.js +2 -0
  986. package/dist/huibo-ui/p-59b2e61c.entry.js.map +1 -0
  987. package/dist/huibo-ui/p-5df47135.entry.js +2 -0
  988. package/dist/huibo-ui/p-5df47135.entry.js.map +1 -0
  989. package/dist/huibo-ui/p-64ca0980.entry.js +2 -0
  990. package/dist/huibo-ui/p-64ca0980.entry.js.map +1 -0
  991. package/dist/huibo-ui/p-672076c3.entry.js +2 -0
  992. package/dist/huibo-ui/p-672076c3.entry.js.map +1 -0
  993. package/dist/huibo-ui/p-6a1ec3ff.entry.js +2 -0
  994. package/dist/huibo-ui/p-6a1ec3ff.entry.js.map +1 -0
  995. package/dist/huibo-ui/p-6ac242fe.entry.js +2 -0
  996. package/dist/huibo-ui/p-6ac242fe.entry.js.map +1 -0
  997. package/dist/huibo-ui/p-6b381d0e.entry.js +2 -0
  998. package/dist/huibo-ui/p-6b381d0e.entry.js.map +1 -0
  999. package/dist/huibo-ui/p-710f38de.entry.js +2 -0
  1000. package/dist/huibo-ui/p-710f38de.entry.js.map +1 -0
  1001. package/dist/huibo-ui/p-756acbdb.entry.js +2 -0
  1002. package/dist/huibo-ui/p-756acbdb.entry.js.map +1 -0
  1003. package/dist/huibo-ui/p-75a93de3.entry.js +2 -0
  1004. package/dist/huibo-ui/p-75a93de3.entry.js.map +1 -0
  1005. package/dist/huibo-ui/p-769960f4.entry.js +2 -0
  1006. package/dist/huibo-ui/p-769960f4.entry.js.map +1 -0
  1007. package/dist/huibo-ui/p-77017274.entry.js +2 -0
  1008. package/dist/huibo-ui/p-77017274.entry.js.map +1 -0
  1009. package/dist/huibo-ui/p-7f6975ad.entry.js +2 -0
  1010. package/dist/huibo-ui/p-7f6975ad.entry.js.map +1 -0
  1011. package/dist/huibo-ui/p-80aca641.entry.js +2 -0
  1012. package/dist/huibo-ui/p-80aca641.entry.js.map +1 -0
  1013. package/dist/huibo-ui/p-85f68526.entry.js +2 -0
  1014. package/dist/huibo-ui/p-85f68526.entry.js.map +1 -0
  1015. package/dist/huibo-ui/p-88127de1.entry.js +2 -0
  1016. package/dist/huibo-ui/p-88127de1.entry.js.map +1 -0
  1017. package/dist/huibo-ui/p-8b027491.entry.js +2 -0
  1018. package/dist/huibo-ui/p-8b027491.entry.js.map +1 -0
  1019. package/dist/huibo-ui/p-8b1ae77e.entry.js +2 -0
  1020. package/dist/huibo-ui/p-8b1ae77e.entry.js.map +1 -0
  1021. package/dist/huibo-ui/p-8c80a765.entry.js +2 -0
  1022. package/dist/huibo-ui/p-8c80a765.entry.js.map +1 -0
  1023. package/dist/huibo-ui/p-8c987d57.entry.js +2 -0
  1024. package/dist/huibo-ui/p-8c987d57.entry.js.map +1 -0
  1025. package/dist/huibo-ui/p-8d615521.entry.js +2 -0
  1026. package/dist/huibo-ui/p-8d615521.entry.js.map +1 -0
  1027. package/dist/huibo-ui/p-8d925e3d.entry.js +2 -0
  1028. package/dist/huibo-ui/p-8d925e3d.entry.js.map +1 -0
  1029. package/dist/huibo-ui/p-9319c650.entry.js +2 -0
  1030. package/dist/huibo-ui/p-9319c650.entry.js.map +1 -0
  1031. package/dist/huibo-ui/p-953b9514.entry.js +2 -0
  1032. package/dist/huibo-ui/p-953b9514.entry.js.map +1 -0
  1033. package/dist/huibo-ui/p-965d4d02.entry.js +2 -0
  1034. package/dist/huibo-ui/p-965d4d02.entry.js.map +1 -0
  1035. package/dist/huibo-ui/p-a0015341.entry.js +2 -0
  1036. package/dist/huibo-ui/p-a0015341.entry.js.map +1 -0
  1037. package/dist/huibo-ui/p-a042e3d0.entry.js +2 -0
  1038. package/dist/huibo-ui/p-a042e3d0.entry.js.map +1 -0
  1039. package/dist/huibo-ui/p-ad6b0c6e.entry.js +2 -0
  1040. package/dist/huibo-ui/p-ad6b0c6e.entry.js.map +1 -0
  1041. package/dist/huibo-ui/p-b489a526.entry.js +2 -0
  1042. package/dist/huibo-ui/p-b489a526.entry.js.map +1 -0
  1043. package/dist/huibo-ui/p-be48d2aa.entry.js +2 -0
  1044. package/dist/huibo-ui/p-be48d2aa.entry.js.map +1 -0
  1045. package/dist/huibo-ui/p-c1a059d9.entry.js +2 -0
  1046. package/dist/huibo-ui/p-c1a059d9.entry.js.map +1 -0
  1047. package/dist/huibo-ui/p-c1b4eacb.entry.js +2 -0
  1048. package/dist/huibo-ui/p-c1b4eacb.entry.js.map +1 -0
  1049. package/dist/huibo-ui/p-c321c4aa.entry.js +2 -0
  1050. package/dist/huibo-ui/p-c321c4aa.entry.js.map +1 -0
  1051. package/dist/huibo-ui/p-c3e665f6.entry.js +2 -0
  1052. package/dist/huibo-ui/p-c3e665f6.entry.js.map +1 -0
  1053. package/dist/huibo-ui/p-c3e8893d.entry.js +2 -0
  1054. package/dist/huibo-ui/p-c3e8893d.entry.js.map +1 -0
  1055. package/dist/huibo-ui/p-c922d672.entry.js +2 -0
  1056. package/dist/huibo-ui/p-c922d672.entry.js.map +1 -0
  1057. package/dist/huibo-ui/p-cc0aeb50.js +2 -0
  1058. package/dist/huibo-ui/p-cc0aeb50.js.map +1 -0
  1059. package/dist/huibo-ui/p-cf94cbf6.js +2 -0
  1060. package/dist/huibo-ui/p-cf94cbf6.js.map +1 -0
  1061. package/dist/huibo-ui/p-d3939d44.entry.js +2 -0
  1062. package/dist/huibo-ui/p-d3939d44.entry.js.map +1 -0
  1063. package/dist/huibo-ui/p-d64b91ef.entry.js +2 -0
  1064. package/dist/huibo-ui/p-d64b91ef.entry.js.map +1 -0
  1065. package/dist/huibo-ui/p-d7815b4f.entry.js +2 -0
  1066. package/dist/huibo-ui/p-d7815b4f.entry.js.map +1 -0
  1067. package/dist/huibo-ui/p-d87fc21a.entry.js +2 -0
  1068. package/dist/huibo-ui/p-d87fc21a.entry.js.map +1 -0
  1069. package/dist/huibo-ui/p-dd05cb2c.entry.js +2 -0
  1070. package/dist/huibo-ui/p-dd05cb2c.entry.js.map +1 -0
  1071. package/dist/huibo-ui/p-dfaf7e37.entry.js +2 -0
  1072. package/dist/huibo-ui/p-dfaf7e37.entry.js.map +1 -0
  1073. package/dist/huibo-ui/p-e004fc81.entry.js +2 -0
  1074. package/dist/huibo-ui/p-e004fc81.entry.js.map +1 -0
  1075. package/dist/huibo-ui/p-e0768565.entry.js +2 -0
  1076. package/dist/huibo-ui/p-e0768565.entry.js.map +1 -0
  1077. package/dist/huibo-ui/p-e0ab9010.entry.js +2 -0
  1078. package/dist/huibo-ui/p-e0ab9010.entry.js.map +1 -0
  1079. package/dist/huibo-ui/p-e1255160.js +2 -0
  1080. package/dist/huibo-ui/p-e1255160.js.map +1 -0
  1081. package/dist/huibo-ui/p-e2a8a396.entry.js +2 -0
  1082. package/dist/huibo-ui/p-e2a8a396.entry.js.map +1 -0
  1083. package/dist/huibo-ui/p-e36bbe6f.entry.js +2 -0
  1084. package/dist/huibo-ui/p-e36bbe6f.entry.js.map +1 -0
  1085. package/dist/huibo-ui/p-e42dfa95.js +3 -0
  1086. package/dist/huibo-ui/p-e42dfa95.js.map +1 -0
  1087. package/dist/huibo-ui/p-e6f2d71d.entry.js +2 -0
  1088. package/dist/huibo-ui/p-e6f2d71d.entry.js.map +1 -0
  1089. package/dist/huibo-ui/p-e9490259.entry.js +2 -0
  1090. package/dist/huibo-ui/p-e9490259.entry.js.map +1 -0
  1091. package/dist/huibo-ui/p-ea74fcae.entry.js +2 -0
  1092. package/dist/huibo-ui/p-ea74fcae.entry.js.map +1 -0
  1093. package/dist/huibo-ui/p-ebd04656.entry.js +2 -0
  1094. package/dist/huibo-ui/p-ebd04656.entry.js.map +1 -0
  1095. package/dist/huibo-ui/p-ecce2b5e.js +2 -0
  1096. package/dist/huibo-ui/p-ecce2b5e.js.map +1 -0
  1097. package/dist/huibo-ui/p-ed0ff857.entry.js +2 -0
  1098. package/dist/huibo-ui/p-ed0ff857.entry.js.map +1 -0
  1099. package/dist/huibo-ui/p-f0ac7db5.entry.js +2 -0
  1100. package/dist/huibo-ui/p-f0ac7db5.entry.js.map +1 -0
  1101. package/dist/huibo-ui/p-f1c084c5.entry.js +2 -0
  1102. package/dist/huibo-ui/p-f1c084c5.entry.js.map +1 -0
  1103. package/dist/huibo-ui/p-f374d5a3.entry.js +2 -0
  1104. package/dist/huibo-ui/p-f374d5a3.entry.js.map +1 -0
  1105. package/dist/huibo-ui/p-f81ec512.entry.js +2 -0
  1106. package/dist/huibo-ui/p-f81ec512.entry.js.map +1 -0
  1107. package/dist/huibo-ui/p-fd19813c.entry.js +2 -0
  1108. package/dist/huibo-ui/p-fd19813c.entry.js.map +1 -0
  1109. package/dist/index.cjs.js +1 -0
  1110. package/dist/index.js +1 -0
  1111. package/dist/types/components/Affix/Affix.d.ts +27 -0
  1112. package/dist/types/components/Alert/Alert.d.ts +23 -0
  1113. package/dist/types/components/Anchor/Anchor.d.ts +28 -0
  1114. package/dist/types/components/Avatar/Avatar.d.ts +9 -0
  1115. package/dist/types/components/Backtop/Backtop.d.ts +33 -0
  1116. package/dist/types/components/Badge/Badge.d.ts +9 -0
  1117. package/dist/types/components/Breadcrumb/Breadcrumb.d.ts +9 -0
  1118. package/dist/types/components/Breadcrumb/BreadcrumbItem.d.ts +9 -0
  1119. package/dist/types/components/Button/Button.d.ts +17 -0
  1120. package/dist/types/components/Calendar/Calendar.d.ts +35 -0
  1121. package/dist/types/components/Card/Card.d.ts +6 -0
  1122. package/dist/types/components/Carousel/Carousel.d.ts +45 -0
  1123. package/dist/types/components/Cascader/Cascader.d.ts +150 -0
  1124. package/dist/types/components/Checkbox/Checkbox.d.ts +66 -0
  1125. package/dist/types/components/Checkbox/CheckboxGroup.d.ts +46 -0
  1126. package/dist/types/components/Collapse/Collapse.d.ts +7 -0
  1127. package/dist/types/components/Collapse/CollapseItem.d.ts +17 -0
  1128. package/dist/types/components/ColorPicker/ColorPicker.d.ts +59 -0
  1129. package/dist/types/components/ColorPickerPanel/ColorPickerPanel.d.ts +35 -0
  1130. package/dist/types/components/ConfigProvider/ConfigProvider.d.ts +17 -0
  1131. package/dist/types/components/Container/Aside.d.ts +11 -0
  1132. package/dist/types/components/Container/Container.d.ts +12 -0
  1133. package/dist/types/components/Container/Footer.d.ts +11 -0
  1134. package/dist/types/components/Container/Header.d.ts +11 -0
  1135. package/dist/types/components/Container/Main.d.ts +7 -0
  1136. package/dist/types/components/DatePicker/DatePicker.d.ts +53 -0
  1137. package/dist/types/components/DatePickerPane/DatePickerPane.d.ts +40 -0
  1138. package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +68 -0
  1139. package/dist/types/components/DateTimePicker/DateTimePicker.d.ts +41 -0
  1140. package/dist/types/components/Descriptions/Descriptions.d.ts +22 -0
  1141. package/dist/types/components/Dialog/Dialog.d.ts +42 -0
  1142. package/dist/types/components/Divider/Divider.d.ts +14 -0
  1143. package/dist/types/components/Drawer/Drawer.d.ts +24 -0
  1144. package/dist/types/components/Dropdown/Dropdown.d.ts +32 -0
  1145. package/dist/types/components/Empty/Empty.d.ts +5 -0
  1146. package/dist/types/components/FloatButton/FloatButton.d.ts +29 -0
  1147. package/dist/types/components/Form/Form.d.ts +41 -0
  1148. package/dist/types/components/Form/FormItem.d.ts +30 -0
  1149. package/dist/types/components/Icon/Icon.d.ts +17 -0
  1150. package/dist/types/components/Image/Image.d.ts +16 -0
  1151. package/dist/types/components/ImagePreview/ImagePreview.d.ts +59 -0
  1152. package/dist/types/components/Input/Input.d.ts +133 -0
  1153. package/dist/types/components/InputNumber/InputNumber.d.ts +89 -0
  1154. package/dist/types/components/InputTag/InputTag.d.ts +79 -0
  1155. package/dist/types/components/Layout/Layout.d.ts +48 -0
  1156. package/dist/types/components/Layout/Row.d.ts +26 -0
  1157. package/dist/types/components/Link/Link.d.ts +40 -0
  1158. package/dist/types/components/Loading/Loading.d.ts +13 -0
  1159. package/dist/types/components/Menu/Menu.d.ts +34 -0
  1160. package/dist/types/components/Menu/MenuItem.d.ts +17 -0
  1161. package/dist/types/components/Menu/SubMenu.d.ts +30 -0
  1162. package/dist/types/components/Message/Message.d.ts +20 -0
  1163. package/dist/types/components/Message/show-message.d.ts +13 -0
  1164. package/dist/types/components/Notification/Notification.d.ts +33 -0
  1165. package/dist/types/components/Notification/notify.d.ts +19 -0
  1166. package/dist/types/components/PageHeader/PageHeader.d.ts +19 -0
  1167. package/dist/types/components/Pagination/Pagination.d.ts +35 -0
  1168. package/dist/types/components/Popconfirm/Popconfirm.d.ts +20 -0
  1169. package/dist/types/components/Popover/Popover.d.ts +18 -0
  1170. package/dist/types/components/Progress/Progress.d.ts +9 -0
  1171. package/dist/types/components/Radio/Radio.d.ts +57 -0
  1172. package/dist/types/components/Rate/Rate.d.ts +64 -0
  1173. package/dist/types/components/Result/Result.d.ts +22 -0
  1174. package/dist/types/components/Scrollbar/Scrollbar.d.ts +75 -0
  1175. package/dist/types/components/Segmented/Segmented.d.ts +24 -0
  1176. package/dist/types/components/Select/Select.d.ts +100 -0
  1177. package/dist/types/components/Skeleton/Skeleton.d.ts +22 -0
  1178. package/dist/types/components/Slider/Slider.d.ts +81 -0
  1179. package/dist/types/components/Space/Space.d.ts +37 -0
  1180. package/dist/types/components/Statistic/Statistic.d.ts +25 -0
  1181. package/dist/types/components/Steps/Step.d.ts +7 -0
  1182. package/dist/types/components/Steps/Steps.d.ts +15 -0
  1183. package/dist/types/components/Switch/Switch.d.ts +58 -0
  1184. package/dist/types/components/Table/Table.d.ts +184 -0
  1185. package/dist/types/components/Tabs/TabPane.d.ts +12 -0
  1186. package/dist/types/components/Tabs/Tabs.d.ts +32 -0
  1187. package/dist/types/components/Tag/Tag.d.ts +21 -0
  1188. package/dist/types/components/Text/Text.d.ts +37 -0
  1189. package/dist/types/components/TimePicker/TimePicker.d.ts +62 -0
  1190. package/dist/types/components/TimeSelect/TimeSelect.d.ts +69 -0
  1191. package/dist/types/components/Timeline/Timeline.d.ts +16 -0
  1192. package/dist/types/components/Tooltip/Tooltip.d.ts +28 -0
  1193. package/dist/types/components/Tour/Tour.d.ts +39 -0
  1194. package/dist/types/components/Transfer/Transfer.d.ts +73 -0
  1195. package/dist/types/components/Tree/Tree.d.ts +113 -0
  1196. package/dist/types/components/TreeSelect/TreeSelect.d.ts +71 -0
  1197. package/dist/types/components/Upload/Upload.d.ts +55 -0
  1198. package/dist/types/components/Watermark/Watermark.d.ts +25 -0
  1199. package/dist/types/components.d.ts +8261 -0
  1200. package/dist/types/index.d.ts +10 -0
  1201. package/dist/types/stencil-public-runtime.d.ts +1680 -0
  1202. package/dist/types/utils/a11y.d.ts +66 -0
  1203. package/dist/types/utils/click-outside.d.ts +20 -0
  1204. package/dist/types/utils/date-helpers.d.ts +41 -0
  1205. package/dist/types/utils/form-input-base.d.ts +62 -0
  1206. package/dist/types/utils/popup-manager.d.ts +17 -0
  1207. package/loader/cdn.js +1 -0
  1208. package/loader/index.cjs.js +1 -0
  1209. package/loader/index.d.ts +24 -0
  1210. package/loader/index.es2017.js +1 -0
  1211. package/loader/index.js +2 -0
  1212. package/loader/package.json +11 -0
  1213. package/package.json +93 -0
  1214. package/readme.md +111 -0
@@ -0,0 +1,261 @@
1
+ import { r as registerInstance, c as createEvent, g as getElement, h } from './index-fdf7135e.js';
2
+
3
+ const colorPickerCss = "/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;tab-size:4;-webkit-tap-highlight-color:transparent}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex;padding-block:0}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}} /*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;:host{display:inline-block;position:relative}.hb-color-picker{display:inline-block}.hb-color-picker__trigger{align-items:center;border:1px solid var(--hb-border-color,#dcdfe6);border-radius:4px;cursor:pointer;display:inline-flex;padding:4px;transition:border-color .2s}.hb-color-picker__trigger:hover:not(.hb-color-picker--disabled){border-color:var(--hb-color-primary)}.hb-color-picker__color{border:1px solid var(--hb-border-color-lighter,#e4e7ed);border-radius:2px;height:20px;width:40px}.hb-color-picker__text{color:var(--hb-color-text-regular,#606266);font-size:14px;margin-left:8px}.hb-color-picker__dropdown{background-color:var(--hb-color-white,#fff);border:1px solid var(--hb-border-color,#dcdfe6);border-radius:4px;box-shadow:0 2px 12px #0000001a;left:0;margin-top:4px;min-width:300px;padding:12px;position:absolute;top:100%;z-index:1000}.hb-color-picker__saturation{border-radius:4px;cursor:crosshair;height:180px;overflow:hidden;position:relative;-webkit-user-select:none;user-select:none;width:100%}.hb-color-picker__saturation-bg{inset:0;position:absolute}.hb-color-picker__saturation-white{background:linear-gradient(90deg,#fff,#fff0);inset:0;position:absolute}.hb-color-picker__saturation-black{background:linear-gradient(#0000,#000);inset:0;position:absolute}.hb-color-picker__saturation-pointer{border:2px solid var(--hb-color-white,#fff);border-radius:50%;box-shadow:0 0 2px #0000004d;height:12px;position:absolute;transform:translate(-50%,-50%);width:12px}.hb-color-picker__controls{margin-top:12px}.hb-color-picker__alpha,.hb-color-picker__hue{border-radius:2px;cursor:pointer;height:12px;margin-bottom:8px;position:relative}.hb-color-picker__hue{position:relative}.hb-color-picker__hue-bar{background:linear-gradient(90deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);border-radius:2px;height:100%}.hb-color-picker__hue-pointer{background:#fff;border:1px solid #0000004d;border-radius:2px;box-shadow:0 0 2px #0000004d;height:100%;pointer-events:none;position:absolute;top:0;transform:translate(-50%);width:4px}.hb-color-picker__alpha-bar{background-image:linear-gradient(45deg,#ccc 25%,#0000 0),linear-gradient(-45deg,#ccc 25%,#0000 0),linear-gradient(45deg,#0000 75%,#ccc 0),linear-gradient(-45deg,#0000 75%,#ccc 0);background-position:0 0,0 4px,4px -4px,-4px 0;background-size:8px 8px;border-radius:2px;height:100%}.hb-color-picker__input{margin-top:12px}.hb-color-picker__input-hex{border:1px solid var(--hb-border-color,#dcdfe6);border-radius:4px;font-size:13px;margin-bottom:8px;padding:6px 8px;width:100%}.hb-color-picker__input-rgb{display:flex;gap:8px}.hb-color-picker__input-rgb input{border:1px solid var(--hb-border-color,#dcdfe6);border-radius:4px;flex:1;font-size:13px;padding:6px 8px}.hb-color-picker__predefine{border-top:1px solid var(--hb-border-color-lighter,#e4e7ed);display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:12px}.hb-color-picker__predefine-color{border:2px solid #0000;border-radius:4px;cursor:pointer;height:24px;transition:transform .2s;width:24px}.hb-color-picker__predefine-color:hover{transform:scale(1.1)}.hb-color-picker__predefine-color--selected{border-color:var(--hb-color-primary);transform:scale(1.1)}.hb-color-picker--disabled{cursor:not-allowed;opacity:.6}.hb-color-picker--disabled .hb-color-picker__trigger{cursor:not-allowed}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}";
4
+ const HbColorPickerStyle0 = colorPickerCss;
5
+
6
+ const ColorPicker = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.hbChange = createEvent(this, "hbChange", 7);
10
+ this.hbActiveChange = createEvent(this, "hbActiveChange", 7);
11
+ }
12
+ get el() { return getElement(this); }
13
+ /**
14
+ * 绑定值
15
+ */
16
+ modelValue;
17
+ /**
18
+ * 是否禁用
19
+ * @default false
20
+ */
21
+ disabled = false;
22
+ /**
23
+ * 颜色格式
24
+ */
25
+ colorFormat = 'hex';
26
+ /**
27
+ * 是否显示透明度
28
+ * @default false
29
+ */
30
+ showAlpha = false;
31
+ /**
32
+ * 预定义颜色
33
+ */
34
+ predefine;
35
+ isOpen = false;
36
+ currentColor = '#409EFF';
37
+ hue = 210; // 色相值 0-360
38
+ saturation = 100; // 饱和度 0-100
39
+ value = 100; // 明度 0-100
40
+ /**
41
+ * 值改变事件
42
+ */
43
+ hbChange;
44
+ /**
45
+ * 激活时触发
46
+ */
47
+ hbActiveChange;
48
+ componentDidLoad() {
49
+ if (this.modelValue) {
50
+ this.currentColor = this.modelValue;
51
+ this.updateHSVFromColor(this.modelValue);
52
+ }
53
+ else {
54
+ this.updateHSVFromColor(this.currentColor);
55
+ }
56
+ document.addEventListener('click', this.handleDocumentClick);
57
+ }
58
+ disconnectedCallback() {
59
+ document.removeEventListener('click', this.handleDocumentClick);
60
+ }
61
+ handleDocumentClick = (e) => {
62
+ if (!this.isOpen)
63
+ return;
64
+ const target = e.target;
65
+ if (!this.el.contains(target)) {
66
+ this.isOpen = false;
67
+ }
68
+ };
69
+ handleValueChange() {
70
+ if (this.modelValue) {
71
+ this.currentColor = this.modelValue;
72
+ this.updateHSVFromColor(this.modelValue);
73
+ }
74
+ }
75
+ handleTriggerClick = () => {
76
+ if (this.disabled)
77
+ return;
78
+ this.isOpen = !this.isOpen;
79
+ };
80
+ handleColorSelect = (color) => {
81
+ this.currentColor = color;
82
+ this.modelValue = color;
83
+ this.hbChange.emit(color);
84
+ this.hbActiveChange.emit(color);
85
+ };
86
+ handleSaturationClick = (e) => {
87
+ const target = e.currentTarget;
88
+ const rect = target.getBoundingClientRect();
89
+ const x = e.clientX - rect.left;
90
+ const y = e.clientY - rect.top;
91
+ // X 轴代表饱和度 (0-100%)
92
+ this.saturation = Math.max(0, Math.min(100, (x / rect.width) * 100));
93
+ // Y 轴代表明度 (0-100%,从上到下)
94
+ this.value = Math.max(0, Math.min(100, 100 - (y / rect.height) * 100));
95
+ const hex = this.hsvToHex(this.hue, this.saturation, this.value);
96
+ this.handleColorSelect(hex);
97
+ };
98
+ handleHueClick = (e) => {
99
+ const target = e.currentTarget;
100
+ const rect = target.getBoundingClientRect();
101
+ const x = e.clientX - rect.left;
102
+ // 色相值 0-360
103
+ this.hue = Math.max(0, Math.min(360, (x / rect.width) * 360));
104
+ const hex = this.hsvToHex(this.hue, this.saturation, this.value);
105
+ this.handleColorSelect(hex);
106
+ };
107
+ handleInputChange = (e) => {
108
+ const target = e.target;
109
+ const value = target.value;
110
+ // 验证 hex 颜色格式
111
+ if (/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(value)) {
112
+ this.handleColorSelect(value);
113
+ }
114
+ };
115
+ handleRgbInputChange = (index, value) => {
116
+ const rgb = this.hexToRgb(this.currentColor);
117
+ if (rgb) {
118
+ const num = parseInt(value, 10);
119
+ if (!isNaN(num) && num >= 0 && num <= 255) {
120
+ if (index === 0)
121
+ rgb.r = num;
122
+ else if (index === 1)
123
+ rgb.g = num;
124
+ else if (index === 2)
125
+ rgb.b = num;
126
+ const hex = `#${[rgb.r, rgb.g, rgb.b].map(x => {
127
+ const hex = x.toString(16);
128
+ return hex.length === 1 ? '0' + hex : hex;
129
+ }).join('')}`;
130
+ this.handleColorSelect(hex);
131
+ }
132
+ }
133
+ };
134
+ hexToRgb(hex) {
135
+ const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
136
+ return result ? {
137
+ r: parseInt(result[1], 16),
138
+ g: parseInt(result[2], 16),
139
+ b: parseInt(result[3], 16)
140
+ } : null;
141
+ }
142
+ // RGB 转 HSV
143
+ rgbToHsv(r, g, b) {
144
+ r = r / 255;
145
+ g = g / 255;
146
+ b = b / 255;
147
+ const max = Math.max(r, g, b);
148
+ const min = Math.min(r, g, b);
149
+ const diff = max - min;
150
+ let h = 0;
151
+ if (diff !== 0) {
152
+ if (max === r) {
153
+ h = ((g - b) / diff) % 6;
154
+ }
155
+ else if (max === g) {
156
+ h = (b - r) / diff + 2;
157
+ }
158
+ else {
159
+ h = (r - g) / diff + 4;
160
+ }
161
+ }
162
+ h = Math.round(h * 60);
163
+ if (h < 0)
164
+ h += 360;
165
+ const s = max === 0 ? 0 : Math.round((diff / max) * 100);
166
+ const v = Math.round(max * 100);
167
+ return { h, s, v };
168
+ }
169
+ // HSV 转 RGB
170
+ hsvToRgb(h, s, v) {
171
+ s = s / 100;
172
+ v = v / 100;
173
+ const c = v * s;
174
+ const x = c * (1 - Math.abs(((h / 60) % 2) - 1));
175
+ const m = v - c;
176
+ let r = 0, g = 0, b = 0;
177
+ if (h >= 0 && h < 60) {
178
+ r = c;
179
+ g = x;
180
+ b = 0;
181
+ }
182
+ else if (h >= 60 && h < 120) {
183
+ r = x;
184
+ g = c;
185
+ b = 0;
186
+ }
187
+ else if (h >= 120 && h < 180) {
188
+ r = 0;
189
+ g = c;
190
+ b = x;
191
+ }
192
+ else if (h >= 180 && h < 240) {
193
+ r = 0;
194
+ g = x;
195
+ b = c;
196
+ }
197
+ else if (h >= 240 && h < 300) {
198
+ r = x;
199
+ g = 0;
200
+ b = c;
201
+ }
202
+ else if (h >= 300 && h < 360) {
203
+ r = c;
204
+ g = 0;
205
+ b = x;
206
+ }
207
+ return {
208
+ r: Math.round((r + m) * 255),
209
+ g: Math.round((g + m) * 255),
210
+ b: Math.round((b + m) * 255)
211
+ };
212
+ }
213
+ // HSV 转 Hex
214
+ hsvToHex(h, s, v) {
215
+ const rgb = this.hsvToRgb(h, s, v);
216
+ return `#${[rgb.r, rgb.g, rgb.b].map(x => {
217
+ const hex = x.toString(16);
218
+ return hex.length === 1 ? '0' + hex : hex;
219
+ }).join('')}`;
220
+ }
221
+ // 从颜色值更新 HSV
222
+ updateHSVFromColor(color) {
223
+ const rgb = this.hexToRgb(color);
224
+ if (rgb) {
225
+ const hsv = this.rgbToHsv(rgb.r, rgb.g, rgb.b);
226
+ this.hue = hsv.h;
227
+ this.saturation = hsv.s;
228
+ this.value = hsv.v;
229
+ }
230
+ }
231
+ render() {
232
+ const rgb = this.hexToRgb(this.currentColor);
233
+ const predefinedColors = this.predefine || [
234
+ '#ff4500', '#ff8c00', '#ffd700', '#90ee90', '#00ced1',
235
+ '#1e90ff', '#c71585', '#000000', '#ffffff', '#808080',
236
+ ];
237
+ // 根据当前色相生成饱和度面板的背景色
238
+ const hueColor = this.hsvToHex(this.hue, 100, 100);
239
+ return (h("div", { key: '3a91756cec6b901dbd98049c6dea3f13cb0125b9', class: {
240
+ 'hb-color-picker': true,
241
+ 'hb-color-picker--open': this.isOpen,
242
+ 'hb-color-picker--disabled': this.disabled,
243
+ } }, h("div", { key: '60fcf367b48d726dec4626cade99ae39c10c83f7', class: "hb-color-picker__trigger", onClick: this.handleTriggerClick }, h("div", { key: '9b9f4c7f1444d76f1d6df1c480949572affb4a71', class: "hb-color-picker__color", style: { backgroundColor: this.currentColor } }), h("span", { key: 'ddc5c6d1d875012ad46638324b2e9a80eb50d989', class: "hb-color-picker__text" }, this.currentColor)), this.isOpen && (h("div", { key: '4f96c8be969d8b37f0acba6f9ec55d0b0223485d', class: "hb-color-picker__dropdown" }, h("div", { key: '6e754aa587fbe8161315ab3fedfd71ccdf7b9a7e', class: "hb-color-picker__panel" }, h("div", { key: '477dbbe265a0538e3f65f0d3c03dc653cf063982', class: "hb-color-picker__saturation", onClick: this.handleSaturationClick }, h("div", { key: 'eff441602d0795cfb6a05b9470dcec762c47e2a2', class: "hb-color-picker__saturation-bg", style: { backgroundColor: hueColor } }), h("div", { key: '3f3e8c420dbea347c6859f046d0398e1141de926', class: "hb-color-picker__saturation-white" }), h("div", { key: 'e501004e2e2d9f585b48bcc4a90def07c39964c2', class: "hb-color-picker__saturation-black" }), h("div", { key: 'b00cda534203c12195977d0933bd36b1baafab34', class: "hb-color-picker__saturation-pointer", style: {
244
+ left: `${this.saturation}%`,
245
+ top: `${100 - this.value}%`,
246
+ } })), h("div", { key: 'ee86c70a807d70aa292a0208a3a172b35c791325', class: "hb-color-picker__controls" }, h("div", { key: 'd4dda211347b9c3e4ef1dc5e28f5a6a44359a162', class: "hb-color-picker__hue", onClick: this.handleHueClick }, h("div", { key: 'dbab23a4059b6dd2aeada35d7434c79a61860867', class: "hb-color-picker__hue-bar" }), h("div", { key: 'b612775578712beac58a487a23a25c812fb28077', class: "hb-color-picker__hue-pointer", style: {
247
+ left: `${(this.hue / 360) * 100}%`,
248
+ } })), this.showAlpha && (h("div", { key: '1aee2cd74b0cdf27d0afcbd09384ae707a5d7485', class: "hb-color-picker__alpha" }, h("div", { key: 'eba46d362053e05c89a93f34dfb453a8ed2253c7', class: "hb-color-picker__alpha-bar", style: { backgroundColor: this.currentColor } })))), h("div", { key: '60f66da4a79a2eb0ce1c389d65fd30362bbb7c61', class: "hb-color-picker__input" }, h("input", { key: '1411561687211e4ea149421bfaf624c7cdc45ead', type: "text", class: "hb-color-picker__input-hex", value: this.currentColor, onInput: this.handleInputChange }), rgb && (h("div", { key: 'c24d2df8b8d04fee9eeba4d8de660d14857cdf77', class: "hb-color-picker__input-rgb" }, h("input", { key: 'e4dd71d86bda84168f7342b3cf0a7513f608f0e1', type: "number", min: "0", max: "255", value: rgb.r, onInput: (e) => this.handleRgbInputChange(0, e.target.value) }), h("input", { key: '198c25b1f2fe03bae65b2a6120b226684623a5a1', type: "number", min: "0", max: "255", value: rgb.g, onInput: (e) => this.handleRgbInputChange(1, e.target.value) }), h("input", { key: 'fe0c9273a4d283f3f4bde1b8c258e0adc370b9a6', type: "number", min: "0", max: "255", value: rgb.b, onInput: (e) => this.handleRgbInputChange(2, e.target.value) })))), this.predefine && this.predefine.length > 0 && (h("div", { key: '52b711be9fd4794a42fb0c4747a53df529895932', class: "hb-color-picker__predefine" }, predefinedColors.map((color) => (h("div", { class: {
249
+ 'hb-color-picker__predefine-color': true,
250
+ 'hb-color-picker__predefine-color--selected': color === this.currentColor,
251
+ }, style: { backgroundColor: color }, onClick: () => this.handleColorSelect(color) }))))))))));
252
+ }
253
+ static get watchers() { return {
254
+ "modelValue": ["handleValueChange"]
255
+ }; }
256
+ };
257
+ ColorPicker.style = HbColorPickerStyle0;
258
+
259
+ export { ColorPicker as hb_color_picker };
260
+
261
+ //# sourceMappingURL=hb-color-picker.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"hb-color-picker.entry.js","mappings":";;AAAA,MAAM,cAAc,GAAG,i2RAAi2R,CAAC;AACz3R,4BAAe,cAAc;;MCUhB,WAAW;;;;;;;;;;IAMG,UAAU,CAAU;;;;;IAMrC,QAAQ,GAAY,KAAK,CAAC;;;;IAK1B,WAAW,GAAkC,KAAK,CAAC;;;;;IAMnD,SAAS,GAAY,KAAK,CAAC;;;;IAK3B,SAAS,CAAY;IAEpB,MAAM,GAAY,KAAK,CAAC;IACxB,YAAY,GAAW,SAAS,CAAC;IACjC,GAAG,GAAW,GAAG,CAAC;IAClB,UAAU,GAAW,GAAG,CAAC;IACzB,KAAK,GAAW,GAAG,CAAC;;;;IAKpB,QAAQ,CAAuB;;;;IAK/B,cAAc,CAAuB;IAE9C,gBAAgB;QACd,IAAI,IAAI,CAAC,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ACP,CACG,EACN;KACH;;;;;;;;;","names":[],"sources":["src/components/ColorPicker/color-picker.css?tag=hb-color-picker&encapsulation=shadow","src/components/ColorPicker/ColorPicker.tsx"],"sourcesContent":[":host {\n display: inline-block;\n position: relative;\n}\n\n.hb-color-picker {\n display: inline-block;\n}\n\n.hb-color-picker__trigger {\n display: inline-flex;\n align-items: center;\n padding: 4px;\n border: 1px solid var(--hb-border-color, #dcdfe6);\n border-radius: 4px;\n cursor: pointer;\n transition: border-color 0.2s;\n}\n\n.hb-color-picker__trigger:hover:not(.hb-color-picker--disabled) {\n border-color: var(--hb-color-primary);\n}\n\n.hb-color-picker__color {\n width: 40px;\n height: 20px;\n border-radius: 2px;\n border: 1px solid var(--hb-border-color-lighter, #e4e7ed);\n}\n\n.hb-color-picker__text {\n margin-left: 8px;\n font-size: 14px;\n color: var(--hb-color-text-regular, #606266);\n}\n\n.hb-color-picker__dropdown {\n position: absolute;\n top: 100%;\n left: 0;\n margin-top: 4px;\n background-color: var(--hb-color-white, #ffffff);\n border: 1px solid var(--hb-border-color, #dcdfe6);\n border-radius: 4px;\n box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);\n z-index: 1000;\n padding: 12px;\n min-width: 300px;\n}\n\n.hb-color-picker__saturation {\n position: relative;\n width: 100%;\n height: 180px;\n border-radius: 4px;\n overflow: hidden;\n cursor: crosshair;\n user-select: none;\n}\n\n.hb-color-picker__saturation-bg {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n /* 背景色会根据当前色相动态设置 */\n}\n\n.hb-color-picker__saturation-white {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));\n}\n\n.hb-color-picker__saturation-black {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: linear-gradient(to top, #000, rgba(0, 0, 0, 0));\n}\n\n.hb-color-picker__saturation-pointer {\n position: absolute;\n width: 12px;\n height: 12px;\n border: 2px solid var(--hb-color-white, #ffffff);\n border-radius: 50%;\n transform: translate(-50%, -50%);\n box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);\n}\n\n.hb-color-picker__controls {\n margin-top: 12px;\n}\n\n.hb-color-picker__hue,\n.hb-color-picker__alpha {\n position: relative;\n height: 12px;\n border-radius: 2px;\n margin-bottom: 8px;\n cursor: pointer;\n}\n\n.hb-color-picker__hue {\n position: relative;\n}\n\n.hb-color-picker__hue-bar {\n height: 100%;\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n border-radius: 2px;\n}\n\n.hb-color-picker__hue-pointer {\n position: absolute;\n top: 0;\n width: 4px;\n height: 100%;\n background: #fff;\n border: 1px solid rgba(0, 0, 0, 0.3);\n border-radius: 2px;\n transform: translateX(-50%);\n box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);\n pointer-events: none;\n}\n\n.hb-color-picker__alpha-bar {\n height: 100%;\n background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);\n background-size: 8px 8px;\n background-position: 0 0, 0 4px, 4px -4px, -4px 0px;\n border-radius: 2px;\n}\n\n.hb-color-picker__input {\n margin-top: 12px;\n}\n\n.hb-color-picker__input-hex {\n width: 100%;\n padding: 6px 8px;\n border: 1px solid var(--hb-border-color, #dcdfe6);\n border-radius: 4px;\n font-size: 13px;\n margin-bottom: 8px;\n}\n\n.hb-color-picker__input-rgb {\n display: flex;\n gap: 8px;\n}\n\n.hb-color-picker__input-rgb input {\n flex: 1;\n padding: 6px 8px;\n border: 1px solid var(--hb-border-color, #dcdfe6);\n border-radius: 4px;\n font-size: 13px;\n}\n\n.hb-color-picker__predefine {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n margin-top: 12px;\n padding-top: 12px;\n border-top: 1px solid var(--hb-border-color-lighter, #e4e7ed);\n}\n\n.hb-color-picker__predefine-color {\n width: 24px;\n height: 24px;\n border-radius: 4px;\n cursor: pointer;\n border: 2px solid transparent;\n transition: transform 0.2s;\n}\n\n.hb-color-picker__predefine-color:hover {\n transform: scale(1.1);\n}\n\n.hb-color-picker__predefine-color--selected {\n border-color: var(--hb-color-primary);\n transform: scale(1.1);\n}\n\n.hb-color-picker--disabled {\n opacity: 0.6;\n cursor: not-allowed;\n}\n\n.hb-color-picker--disabled .hb-color-picker__trigger {\n cursor: not-allowed;\n}\n\n","import { Component, h, Prop, Event, EventEmitter, State, Element, Watch } from '@stencil/core';\n\n/**\n * ColorPicker 颜色选择器组件\n * 用于颜色选择,支持多种格式\n */\n@Component({\n tag: 'hb-color-picker',\n styleUrl: 'color-picker.css',\n shadow: true,\n})\nexport class ColorPicker {\n @Element() el: HTMLElement;\n\n /**\n * 绑定值\n */\n @Prop({ mutable: true }) modelValue?: string;\n\n /**\n * 是否禁用\n * @default false\n */\n @Prop() disabled: boolean = false;\n\n /**\n * 颜色格式\n */\n @Prop() colorFormat: 'hsl' | 'hsv' | 'hex' | 'rgb' = 'hex';\n\n /**\n * 是否显示透明度\n * @default false\n */\n @Prop() showAlpha: boolean = false;\n\n /**\n * 预定义颜色\n */\n @Prop() predefine?: string[];\n\n @State() isOpen: boolean = false;\n @State() currentColor: string = '#409EFF';\n @State() hue: number = 210; // 色相值 0-360\n @State() saturation: number = 100; // 饱和度 0-100\n @State() value: number = 100; // 明度 0-100\n\n /**\n * 值改变事件\n */\n @Event() hbChange: EventEmitter<string>;\n\n /**\n * 激活时触发\n */\n @Event() hbActiveChange: EventEmitter<string>;\n\n componentDidLoad() {\n if (this.modelValue) {\n this.currentColor = this.modelValue;\n this.updateHSVFromColor(this.modelValue);\n } else {\n this.updateHSVFromColor(this.currentColor);\n }\n document.addEventListener('click', this.handleDocumentClick);\n }\n\n disconnectedCallback() {\n document.removeEventListener('click', this.handleDocumentClick);\n }\n\n private handleDocumentClick = (e: MouseEvent) => {\n if (!this.isOpen) return;\n const target = e.target as HTMLElement;\n if (!this.el.contains(target)) {\n this.isOpen = false;\n }\n };\n\n @Watch('modelValue')\n handleValueChange() {\n if (this.modelValue) {\n this.currentColor = this.modelValue;\n this.updateHSVFromColor(this.modelValue);\n }\n }\n\n private handleTriggerClick = () => {\n if (this.disabled) return;\n this.isOpen = !this.isOpen;\n };\n\n private handleColorSelect = (color: string) => {\n this.currentColor = color;\n this.modelValue = color;\n this.hbChange.emit(color);\n this.hbActiveChange.emit(color);\n };\n\n private handleSaturationClick = (e: MouseEvent) => {\n const target = e.currentTarget as HTMLElement;\n const rect = target.getBoundingClientRect();\n const x = e.clientX - rect.left;\n const y = e.clientY - rect.top;\n \n // X 轴代表饱和度 (0-100%)\n this.saturation = Math.max(0, Math.min(100, (x / rect.width) * 100));\n // Y 轴代表明度 (0-100%,从上到下)\n this.value = Math.max(0, Math.min(100, 100 - (y / rect.height) * 100));\n \n const hex = this.hsvToHex(this.hue, this.saturation, this.value);\n this.handleColorSelect(hex);\n };\n\n private handleHueClick = (e: MouseEvent) => {\n const target = e.currentTarget as HTMLElement;\n const rect = target.getBoundingClientRect();\n const x = e.clientX - rect.left;\n \n // 色相值 0-360\n this.hue = Math.max(0, Math.min(360, (x / rect.width) * 360));\n \n const hex = this.hsvToHex(this.hue, this.saturation, this.value);\n this.handleColorSelect(hex);\n };\n\n private handleInputChange = (e: Event) => {\n const target = e.target as HTMLInputElement;\n const value = target.value;\n // 验证 hex 颜色格式\n if (/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(value)) {\n this.handleColorSelect(value);\n }\n };\n\n private handleRgbInputChange = (index: number, value: string) => {\n const rgb = this.hexToRgb(this.currentColor);\n if (rgb) {\n const num = parseInt(value, 10);\n if (!isNaN(num) && num >= 0 && num <= 255) {\n if (index === 0) rgb.r = num;\n else if (index === 1) rgb.g = num;\n else if (index === 2) rgb.b = num;\n \n const hex = `#${[rgb.r, rgb.g, rgb.b].map(x => {\n const hex = x.toString(16);\n return hex.length === 1 ? '0' + hex : hex;\n }).join('')}`;\n this.handleColorSelect(hex);\n }\n }\n };\n\n private hexToRgb(hex: string): { r: number; g: number; b: number } | null {\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\n return result ? {\n r: parseInt(result[1], 16),\n g: parseInt(result[2], 16),\n b: parseInt(result[3], 16)\n } : null;\n }\n\n // RGB 转 HSV\n private rgbToHsv(r: number, g: number, b: number): { h: number; s: number; v: number } {\n r = r / 255;\n g = g / 255;\n b = b / 255;\n\n const max = Math.max(r, g, b);\n const min = Math.min(r, g, b);\n const diff = max - min;\n\n let h = 0;\n if (diff !== 0) {\n if (max === r) {\n h = ((g - b) / diff) % 6;\n } else if (max === g) {\n h = (b - r) / diff + 2;\n } else {\n h = (r - g) / diff + 4;\n }\n }\n h = Math.round(h * 60);\n if (h < 0) h += 360;\n\n const s = max === 0 ? 0 : Math.round((diff / max) * 100);\n const v = Math.round(max * 100);\n\n return { h, s, v };\n }\n\n // HSV 转 RGB\n private hsvToRgb(h: number, s: number, v: number): { r: number; g: number; b: number } {\n s = s / 100;\n v = v / 100;\n\n const c = v * s;\n const x = c * (1 - Math.abs(((h / 60) % 2) - 1));\n const m = v - c;\n\n let r = 0, g = 0, b = 0;\n\n if (h >= 0 && h < 60) {\n r = c; g = x; b = 0;\n } else if (h >= 60 && h < 120) {\n r = x; g = c; b = 0;\n } else if (h >= 120 && h < 180) {\n r = 0; g = c; b = x;\n } else if (h >= 180 && h < 240) {\n r = 0; g = x; b = c;\n } else if (h >= 240 && h < 300) {\n r = x; g = 0; b = c;\n } else if (h >= 300 && h < 360) {\n r = c; g = 0; b = x;\n }\n\n return {\n r: Math.round((r + m) * 255),\n g: Math.round((g + m) * 255),\n b: Math.round((b + m) * 255)\n };\n }\n\n // HSV 转 Hex\n private hsvToHex(h: number, s: number, v: number): string {\n const rgb = this.hsvToRgb(h, s, v);\n return `#${[rgb.r, rgb.g, rgb.b].map(x => {\n const hex = x.toString(16);\n return hex.length === 1 ? '0' + hex : hex;\n }).join('')}`;\n }\n\n // 从颜色值更新 HSV\n private updateHSVFromColor(color: string) {\n const rgb = this.hexToRgb(color);\n if (rgb) {\n const hsv = this.rgbToHsv(rgb.r, rgb.g, rgb.b);\n this.hue = hsv.h;\n this.saturation = hsv.s;\n this.value = hsv.v;\n }\n }\n\n render() {\n const rgb = this.hexToRgb(this.currentColor);\n const predefinedColors = this.predefine || [\n '#ff4500', '#ff8c00', '#ffd700', '#90ee90', '#00ced1',\n '#1e90ff', '#c71585', '#000000', '#ffffff', '#808080',\n ];\n\n // 根据当前色相生成饱和度面板的背景色\n const hueColor = this.hsvToHex(this.hue, 100, 100);\n\n return (\n <div\n class={{\n 'hb-color-picker': true,\n 'hb-color-picker--open': this.isOpen,\n 'hb-color-picker--disabled': this.disabled,\n }}\n >\n <div class=\"hb-color-picker__trigger\" onClick={this.handleTriggerClick}>\n <div class=\"hb-color-picker__color\" style={{ backgroundColor: this.currentColor }}></div>\n <span class=\"hb-color-picker__text\">{this.currentColor}</span>\n </div>\n {this.isOpen && (\n <div class=\"hb-color-picker__dropdown\">\n <div class=\"hb-color-picker__panel\">\n <div class=\"hb-color-picker__saturation\" onClick={this.handleSaturationClick}>\n <div class=\"hb-color-picker__saturation-bg\" style={{ backgroundColor: hueColor }}></div>\n <div class=\"hb-color-picker__saturation-white\"></div>\n <div class=\"hb-color-picker__saturation-black\"></div>\n <div\n class=\"hb-color-picker__saturation-pointer\"\n style={{\n left: `${this.saturation}%`,\n top: `${100 - this.value}%`,\n }}\n ></div>\n </div>\n <div class=\"hb-color-picker__controls\">\n <div class=\"hb-color-picker__hue\" onClick={this.handleHueClick}>\n <div class=\"hb-color-picker__hue-bar\"></div>\n <div\n class=\"hb-color-picker__hue-pointer\"\n style={{\n left: `${(this.hue / 360) * 100}%`,\n }}\n ></div>\n </div>\n {this.showAlpha && (\n <div class=\"hb-color-picker__alpha\">\n <div class=\"hb-color-picker__alpha-bar\" style={{ backgroundColor: this.currentColor }}></div>\n </div>\n )}\n </div>\n <div class=\"hb-color-picker__input\">\n <input\n type=\"text\"\n class=\"hb-color-picker__input-hex\"\n value={this.currentColor}\n onInput={this.handleInputChange}\n />\n {rgb && (\n <div class=\"hb-color-picker__input-rgb\">\n <input \n type=\"number\" \n min=\"0\" \n max=\"255\" \n value={rgb.r}\n onInput={(e) => this.handleRgbInputChange(0, (e.target as HTMLInputElement).value)}\n />\n <input \n type=\"number\" \n min=\"0\" \n max=\"255\" \n value={rgb.g}\n onInput={(e) => this.handleRgbInputChange(1, (e.target as HTMLInputElement).value)}\n />\n <input \n type=\"number\" \n min=\"0\" \n max=\"255\" \n value={rgb.b}\n onInput={(e) => this.handleRgbInputChange(2, (e.target as HTMLInputElement).value)}\n />\n </div>\n )}\n </div>\n {this.predefine && this.predefine.length > 0 && (\n <div class=\"hb-color-picker__predefine\">\n {predefinedColors.map((color) => (\n <div\n class={{\n 'hb-color-picker__predefine-color': true,\n 'hb-color-picker__predefine-color--selected': color === this.currentColor,\n }}\n style={{ backgroundColor: color }}\n onClick={() => this.handleColorSelect(color)}\n ></div>\n ))}\n </div>\n )}\n </div>\n </div>\n )}\n </div>\n );\n }\n}\n\n"],"version":3}
@@ -0,0 +1,40 @@
1
+ import { r as registerInstance, g as getElement, h } from './index-fdf7135e.js';
2
+
3
+ const ConfigProvider = class {
4
+ constructor(hostRef) {
5
+ registerInstance(this, hostRef);
6
+ }
7
+ get el() { return getElement(this); }
8
+ /** 主题:light / dark / 自定义 */
9
+ theme = 'light';
10
+ /** 全局默认尺寸 */
11
+ size = 'default';
12
+ /** 语言 */
13
+ locale = 'zh-CN';
14
+ render() {
15
+ return h("slot", { key: '2f5645093f96615556fea763173dc339b8dfb515' });
16
+ }
17
+ componentDidLoad() {
18
+ this.applyConfig();
19
+ }
20
+ componentDidUpdate() {
21
+ this.applyConfig();
22
+ }
23
+ applyConfig() {
24
+ // 主题:light / dark(自定义主题由消费者通过 CSS 变量设置)
25
+ if (this.theme === 'dark') {
26
+ this.el.setAttribute('data-theme', 'dark');
27
+ }
28
+ else if (this.theme === 'light') {
29
+ this.el.removeAttribute('data-theme');
30
+ }
31
+ // 全局尺寸:写入 data-size,子组件或全局 CSS 可通过 [data-size] 消费
32
+ this.el.setAttribute('data-size', this.size);
33
+ // 语言:写入 data-locale(i18n 文案接入为后续工作,当前先透出配置)
34
+ this.el.setAttribute('data-locale', this.locale);
35
+ }
36
+ };
37
+
38
+ export { ConfigProvider as hb_config_provider };
39
+
40
+ //# sourceMappingURL=hb-config-provider.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"hb-config-provider.entry.js","mappings":";;MAUa,cAAc;;;;;;IAIjB,KAAK,GAA8B,OAAO,CAAC;;IAG3C,IAAI,GAAkC,SAAS,CAAC;;IAGhD,MAAM,GAAW,OAAO,CAAC;IAEjC,MAAM;QACJ,OAAO,8DAAQ,CAAC;KACjB;IAED,gBAAgB;QACd,IAAI,CAAC,WAAW,EAAE,CAAC;KACpB;IAED,kBAAkB;QAChB,IAAI,CAAC,WAAW,EAAE,CAAC;KACpB;IAEO,WAAW;;QAEjB,IAAI,IAAI,CAAC,KAAK,KAAK,MAAM,EAAE;YACzB,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;SAC5C;aAAM,IAAI,IAAI,CAAC,KAAK,KAAK,OAAO,EAAE;YACjC,IAAI,CAAC,EAAE,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;SACvC;;QAGD,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;;QAG7C,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,aAAa,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;KAClD;;;;;","names":[],"sources":["src/components/ConfigProvider/ConfigProvider.tsx"],"sourcesContent":["import { Component, h, Prop, Element } from '@stencil/core';\n\n/**\n * ConfigProvider 全局配置组件\n * 在组件树的最外层设置全局配置\n */\n@Component({\n tag: 'hb-config-provider',\n shadow: false,\n})\nexport class ConfigProvider {\n @Element() el: HTMLElement;\n\n /** 主题:light / dark / 自定义 */\n @Prop() theme: 'light' | 'dark' | string = 'light';\n\n /** 全局默认尺寸 */\n @Prop() size: 'small' | 'default' | 'large' = 'default';\n\n /** 语言 */\n @Prop() locale: string = 'zh-CN';\n\n render() {\n return <slot />;\n }\n\n componentDidLoad() {\n this.applyConfig();\n }\n\n componentDidUpdate() {\n this.applyConfig();\n }\n\n private applyConfig() {\n // 主题:light / dark(自定义主题由消费者通过 CSS 变量设置)\n if (this.theme === 'dark') {\n this.el.setAttribute('data-theme', 'dark');\n } else if (this.theme === 'light') {\n this.el.removeAttribute('data-theme');\n }\n\n // 全局尺寸:写入 data-size,子组件或全局 CSS 可通过 [data-size] 消费\n this.el.setAttribute('data-size', this.size);\n\n // 语言:写入 data-locale(i18n 文案接入为后续工作,当前先透出配置)\n this.el.setAttribute('data-locale', this.locale);\n }\n}\n"],"version":3}
@@ -0,0 +1,26 @@
1
+ import { r as registerInstance, h } from './index-fdf7135e.js';
2
+
3
+ const containerCss = "/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;tab-size:4;-webkit-tap-highlight-color:transparent}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex;padding-block:0}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}} /*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;:host{--hb-container-padding:20px;display:block}.hb-container{box-sizing:border-box;display:flex;flex-flow:wrap;width:100%}.hb-container--vertical{flex-flow:column}::slotted(hb-aside),::slotted(hb-header){padding:var(--hb-container-padding)}::slotted(hb-main){box-sizing:border-box;flex:1;overflow:auto;padding:var(--hb-container-padding)}::slotted(hb-footer){padding:var(--hb-container-padding)}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}";
4
+ const HbContainerStyle0 = containerCss;
5
+
6
+ const Container = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ }
10
+ /**
11
+ * 布局方向,vertical 时子元素为纵向排列
12
+ * @default false
13
+ */
14
+ direction = 'horizontal';
15
+ render() {
16
+ return (h("section", { key: '8d2029a2363134efb2feb8df16510a5ababe2764', class: {
17
+ 'hb-container': true,
18
+ 'hb-container--vertical': this.direction === 'vertical',
19
+ } }, h("slot", { key: 'fb2dea608d501e5db4a03657796571fdb30c9128' })));
20
+ }
21
+ };
22
+ Container.style = HbContainerStyle0;
23
+
24
+ export { Container as hb_container };
25
+
26
+ //# sourceMappingURL=hb-container.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"hb-container.entry.js","mappings":";;AAAA,MAAM,YAAY,GAAG,y/LAAy/L,CAAC;AAC/gM,0BAAe,YAAY;;MCUd,SAAS;;;;;;;;IAKZ,SAAS,GAA8B,YAAY,CAAC;IAE5D,MAAM;QACJ,QACE,gEACE,KAAK,EAAE;gBACL,cAAc,EAAE,IAAI;gBACpB,wBAAwB,EAAE,IAAI,CAAC,SAAS,KAAK,UAAU;aACxD,IAED,8DAAa,CACL,EACV;KACH;;;;;;","names":[],"sources":["src/components/Container/container.css?tag=hb-container&encapsulation=shadow","src/components/Container/Container.tsx"],"sourcesContent":[":host {\n display: block;\n --hb-container-padding: 20px;\n}\n\n.hb-container {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n box-sizing: border-box;\n width: 100%;\n}\n\n.hb-container--vertical {\n flex-direction: column;\n flex-wrap: nowrap;\n}\n\n/* Header */\n::slotted(hb-header) {\n padding: var(--hb-container-padding);\n}\n\n/* Aside */\n::slotted(hb-aside) {\n padding: var(--hb-container-padding);\n}\n\n/* Main */\n::slotted(hb-main) {\n padding: var(--hb-container-padding);\n flex: 1;\n overflow: auto;\n box-sizing: border-box;\n}\n\n/* Footer */\n::slotted(hb-footer) {\n padding: var(--hb-container-padding);\n}\n\n","import { Component, h, Prop } from '@stencil/core';\n\n/**\n * Container 布局容器组件\n * 用于布局的容器组件,方便快速搭建页面的基本结构\n */\n@Component({\n tag: 'hb-container',\n styleUrl: 'container.css',\n shadow: true,\n})\nexport class Container {\n /**\n * 布局方向,vertical 时子元素为纵向排列\n * @default false\n */\n @Prop() direction: 'horizontal' | 'vertical' = 'horizontal';\n\n render() {\n return (\n <section\n class={{\n 'hb-container': true,\n 'hb-container--vertical': this.direction === 'vertical',\n }}\n >\n <slot></slot>\n </section>\n );\n }\n}\n\n"],"version":3}
@@ -0,0 +1,146 @@
1
+ import { r as registerInstance, c as createEvent, h } from './index-fdf7135e.js';
2
+ import { p as parseDate, a as addMonths, b as addYears, M as MONTH_NAMES, c as getYearRangeStart, g as getCalendarDays, W as WEEK_DAY_NAMES, d as getCalendarYears } from './date-helpers-e4d85a67.js';
3
+
4
+ const datePickerPaneCss = "/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;tab-size:4;-webkit-tap-highlight-color:transparent}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex;padding-block:0}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}} /*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components;:host{display:block}.hb-date-picker-pane{background-color:var(--hb-color-white,#fff);border-radius:4px;padding:12px}.hb-date-picker-pane__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:12px}.hb-date-picker-pane__header-label{background:0 0;border:none;border-radius:4px;color:var(--hb-color-text-regular,#606266);cursor:pointer;font-size:14px;font-weight:600;padding:4px 8px;transition:color .2s,background-color .2s}.hb-date-picker-pane__header-label:hover{background-color:var(--hb-fill-color-light,#f5f7fa);color:var(--hb-color-primary)}.hb-date-picker-pane__next-btn,.hb-date-picker-pane__prev-btn{background:0 0;border:none;color:var(--hb-color-text-regular,#606266);cursor:pointer;font-size:18px;padding:4px 8px;transition:color .2s}.hb-date-picker-pane__next-btn:hover,.hb-date-picker-pane__prev-btn:hover{color:var(--hb-color-primary)}.hb-date-picker-pane__weekdays{display:grid;gap:4px;grid-template-columns:repeat(7,1fr);margin-bottom:8px}.hb-date-picker-pane__weekday{color:var(--hb-color-text-placeholder,#c0c4cc);font-size:12px;font-weight:500;text-align:center}.hb-date-picker-pane__days{display:grid;gap:4px;grid-template-columns:repeat(7,1fr)}.hb-date-picker-pane__day{align-items:center;aspect-ratio:1;border-radius:4px;color:var(--hb-color-text-regular,#606266);cursor:pointer;display:flex;font-size:13px;justify-content:center;transition:all .2s}.hb-date-picker-pane__day:hover:not(.hb-date-picker-pane__day--other-month){background-color:var(--hb-fill-color-light,#f5f7fa)}.hb-date-picker-pane__day--other-month{color:var(--hb-color-text-placeholder,#c0c4cc);cursor:default}.hb-date-picker-pane__day--today{color:var(--hb-color-primary);font-weight:600}.hb-date-picker-pane__day--selected{background-color:var(--hb-color-primary);color:var(--hb-color-white,#fff)}.hb-date-picker-pane__months,.hb-date-picker-pane__years{display:grid;gap:8px;grid-template-columns:repeat(3,1fr);padding:4px 0}.hb-date-picker-pane__month,.hb-date-picker-pane__year{align-items:center;border-radius:4px;color:var(--hb-color-text-regular,#606266);cursor:pointer;display:flex;font-size:13px;justify-content:center;min-height:48px;transition:background-color .2s,color .2s}.hb-date-picker-pane__month:hover,.hb-date-picker-pane__year:hover{background-color:var(--hb-fill-color-light,#f5f7fa)}.hb-date-picker-pane__month--current,.hb-date-picker-pane__year--current{color:var(--hb-color-primary);font-weight:600}.hb-date-picker-pane__month--selected,.hb-date-picker-pane__year--selected{background-color:var(--hb-color-primary);color:var(--hb-color-white,#fff)}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}";
5
+ const HbDatePickerPaneStyle0 = datePickerPaneCss;
6
+
7
+ const DatePickerPane = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.hbChange = createEvent(this, "hbChange", 7);
11
+ this.hbViewChange = createEvent(this, "hbViewChange", 7);
12
+ }
13
+ /** 绑定值 */
14
+ modelValue;
15
+ /** 日期格式 */
16
+ format = 'YYYY-MM-DD';
17
+ /** 当前视图类型,默认 days */
18
+ view = 'days';
19
+ selectedDate;
20
+ /** 值改变事件 */
21
+ hbChange;
22
+ /** 视图切换事件 */
23
+ hbViewChange;
24
+ componentDidLoad() {
25
+ this.updateSelectedDate();
26
+ }
27
+ handleValueChange() {
28
+ this.updateSelectedDate();
29
+ }
30
+ updateSelectedDate() {
31
+ this.selectedDate = parseDate(this.modelValue);
32
+ }
33
+ handleDateSelect = (date) => {
34
+ this.selectedDate = date;
35
+ this.modelValue = date;
36
+ this.hbChange.emit(date);
37
+ };
38
+ /** 头部导航箭头:days 视图 ±1 月,months 视图 ±1 年,years 视图 ±12 年 */
39
+ handlePrev = () => {
40
+ const base = this.selectedDate || new Date();
41
+ if (this.view === 'days') {
42
+ this.selectedDate = addMonths(base, -1);
43
+ }
44
+ else if (this.view === 'months') {
45
+ this.selectedDate = addYears(base, -1);
46
+ }
47
+ else {
48
+ this.selectedDate = addYears(base, -12);
49
+ }
50
+ };
51
+ handleNext = () => {
52
+ const base = this.selectedDate || new Date();
53
+ if (this.view === 'days') {
54
+ this.selectedDate = addMonths(base, 1);
55
+ }
56
+ else if (this.view === 'months') {
57
+ this.selectedDate = addYears(base, 1);
58
+ }
59
+ else {
60
+ this.selectedDate = addYears(base, 12);
61
+ }
62
+ };
63
+ /** 点击 header 标题:days→months→years */
64
+ handleHeaderTitleClick = () => {
65
+ if (this.view === 'days') {
66
+ this.view = 'months';
67
+ }
68
+ else if (this.view === 'months') {
69
+ this.view = 'years';
70
+ }
71
+ this.hbViewChange.emit(this.view);
72
+ };
73
+ /** months 视图:选某月 → 切回 days 并跳到该月 */
74
+ handleMonthSelect = (monthIndex) => {
75
+ const base = this.selectedDate || new Date();
76
+ const next = new Date(base);
77
+ next.setMonth(monthIndex);
78
+ this.selectedDate = next;
79
+ this.view = 'days';
80
+ this.hbViewChange.emit(this.view);
81
+ };
82
+ /** years 视图:选某年 → 切到 months 并跳到该年 */
83
+ handleYearSelect = (year) => {
84
+ const base = this.selectedDate || new Date();
85
+ const next = new Date(base);
86
+ next.setFullYear(year);
87
+ this.selectedDate = next;
88
+ this.view = 'months';
89
+ this.hbViewChange.emit(this.view);
90
+ };
91
+ /** 头部标题文本,根据视图类型生成 */
92
+ getHeaderTitle() {
93
+ const current = this.selectedDate || new Date();
94
+ if (this.view === 'days') {
95
+ return `${current.getFullYear()}年 ${MONTH_NAMES[current.getMonth()]}`;
96
+ }
97
+ if (this.view === 'months') {
98
+ return `${current.getFullYear()}年`;
99
+ }
100
+ // years 视图显示年份档区间,如 2020 - 2031
101
+ const start = getYearRangeStart(current);
102
+ return `${start} - ${start + 11}`;
103
+ }
104
+ render() {
105
+ const current = this.selectedDate || new Date();
106
+ return (h("div", { key: '2259a27d8de2d7944a83a85c2fb2281d22d7f62e', class: "hb-date-picker-pane" }, h("div", { key: '8c27820ac2eeb5a39be44f828879c98a33f89e91', class: "hb-date-picker-pane__header" }, h("button", { key: 'ea7060e14f917bc003303d2dd2d680c3de24d62a', type: "button", class: "hb-date-picker-pane__prev-btn", "aria-label": "\u4E0A\u4E00\u4E2A", onClick: this.handlePrev }, "\u2039"), h("button", { key: '020b053fcfed2384ab62b3c8b408c47864f54a57', type: "button", class: "hb-date-picker-pane__header-label", "aria-live": "polite", onClick: this.handleHeaderTitleClick }, this.getHeaderTitle()), h("button", { key: '055a6e6d191c2c2e29f3d459c27a8007086de7ee', type: "button", class: "hb-date-picker-pane__next-btn", "aria-label": "\u4E0B\u4E00\u4E2A", onClick: this.handleNext }, "\u203A")), this.view === 'days' && this.renderDaysView(), this.view === 'months' && this.renderMonthsView(current), this.view === 'years' && this.renderYearsView(current)));
107
+ }
108
+ renderDaysView() {
109
+ const days = getCalendarDays(this.selectedDate || new Date(), this.selectedDate);
110
+ return (h("div", { class: "hb-date-picker-pane__body" }, h("div", { class: "hb-date-picker-pane__weekdays" }, WEEK_DAY_NAMES.map(day => (h("div", { class: "hb-date-picker-pane__weekday" }, day)))), h("div", { class: "hb-date-picker-pane__days" }, days.map((day, index) => (h("div", { key: index, class: {
111
+ 'hb-date-picker-pane__day': true,
112
+ 'hb-date-picker-pane__day--other-month': !day.isCurrentMonth,
113
+ 'hb-date-picker-pane__day--today': day.isToday,
114
+ 'hb-date-picker-pane__day--selected': day.isSelected,
115
+ }, onClick: () => day.isCurrentMonth && this.handleDateSelect(day.date) }, day.date.getDate()))))));
116
+ }
117
+ renderMonthsView(current) {
118
+ // modelValue(选中值)所在的年/月
119
+ const modelDate = parseDate(this.modelValue);
120
+ const selectedMonth = modelDate ? modelDate.getMonth() : -1;
121
+ const selectedYear = modelDate ? modelDate.getFullYear() : -1;
122
+ // current 是当前面板的浏览焦点日期(selectedDate 或今天)
123
+ return (h("div", { class: "hb-date-picker-pane__body" }, h("div", { class: "hb-date-picker-pane__months" }, MONTH_NAMES.map((name, monthIndex) => (h("div", { key: monthIndex, class: {
124
+ 'hb-date-picker-pane__month': true,
125
+ 'hb-date-picker-pane__month--current': monthIndex === current.getMonth(),
126
+ 'hb-date-picker-pane__month--selected': monthIndex === selectedMonth && current.getFullYear() === selectedYear,
127
+ }, onClick: () => this.handleMonthSelect(monthIndex) }, name))))));
128
+ }
129
+ renderYearsView(current) {
130
+ const modelDate = parseDate(this.modelValue);
131
+ const years = getCalendarYears(this.selectedDate || new Date(), modelDate);
132
+ return (h("div", { class: "hb-date-picker-pane__body" }, h("div", { class: "hb-date-picker-pane__years" }, years.map(item => (h("div", { key: item.year, class: {
133
+ 'hb-date-picker-pane__year': true,
134
+ 'hb-date-picker-pane__year--current': item.year === current.getFullYear(),
135
+ 'hb-date-picker-pane__year--selected': item.isSelected,
136
+ }, onClick: () => this.handleYearSelect(item.year) }, item.year))))));
137
+ }
138
+ static get watchers() { return {
139
+ "modelValue": ["handleValueChange"]
140
+ }; }
141
+ };
142
+ DatePickerPane.style = HbDatePickerPaneStyle0;
143
+
144
+ export { DatePickerPane as hb_date_picker_pane };
145
+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-pane&encapsulation=shadow","src/components/DatePickerPane/DatePickerPane.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.hb-date-picker-pane {\n padding: 12px;\n background-color: var(--hb-color-white, #ffffff);\n border-radius: 4px;\n}\n\n.hb-date-picker-pane__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 12px;\n}\n\n.hb-date-picker-pane__header-label {\n font-weight: 600;\n font-size: 14px;\n color: var(--hb-color-text-regular, #606266);\n background: none;\n border: none;\n cursor: pointer;\n padding: 4px 8px;\n border-radius: 4px;\n transition: color 0.2s, background-color 0.2s;\n}\n\n.hb-date-picker-pane__header-label:hover {\n color: var(--hb-color-primary);\n background-color: var(--hb-fill-color-light, #f5f7fa);\n}\n\n.hb-date-picker-pane__prev-btn,\n.hb-date-picker-pane__next-btn {\n background: none;\n border: none;\n font-size: 18px;\n cursor: pointer;\n color: var(--hb-color-text-regular, #606266);\n padding: 4px 8px;\n transition: color 0.2s;\n}\n\n.hb-date-picker-pane__prev-btn:hover,\n.hb-date-picker-pane__next-btn:hover {\n color: var(--hb-color-primary);\n}\n\n.hb-date-picker-pane__weekdays {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 4px;\n margin-bottom: 8px;\n}\n\n.hb-date-picker-pane__weekday {\n text-align: center;\n font-size: 12px;\n color: var(--hb-color-text-placeholder, #c0c4cc);\n font-weight: 500;\n}\n\n.hb-date-picker-pane__days {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 4px;\n}\n\n.hb-date-picker-pane__day {\n aspect-ratio: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 13px;\n color: var(--hb-color-text-regular, #606266);\n cursor: pointer;\n border-radius: 4px;\n transition: all 0.2s;\n}\n\n.hb-date-picker-pane__day:hover:not(.hb-date-picker-pane__day--other-month) {\n background-color: var(--hb-fill-color-light, #f5f7fa);\n}\n\n.hb-date-picker-pane__day--other-month {\n color: var(--hb-color-text-placeholder, #c0c4cc);\n cursor: default;\n}\n\n.hb-date-picker-pane__day--today {\n color: var(--hb-color-primary);\n font-weight: 600;\n}\n\n.hb-date-picker-pane__day--selected {\n background-color: var(--hb-color-primary);\n color: var(--hb-color-white, #ffffff);\n}\n\n/* months / years 视图共享格子样式 */\n.hb-date-picker-pane__months,\n.hb-date-picker-pane__years {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 8px;\n padding: 4px 0;\n}\n\n.hb-date-picker-pane__month,\n.hb-date-picker-pane__year {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 48px;\n font-size: 13px;\n color: var(--hb-color-text-regular, #606266);\n cursor: pointer;\n border-radius: 4px;\n transition: background-color 0.2s, color 0.2s;\n}\n\n.hb-date-picker-pane__month:hover,\n.hb-date-picker-pane__year:hover {\n background-color: var(--hb-fill-color-light, #f5f7fa);\n}\n\n.hb-date-picker-pane__month--current,\n.hb-date-picker-pane__year--current {\n color: var(--hb-color-primary);\n font-weight: 600;\n}\n\n.hb-date-picker-pane__month--selected,\n.hb-date-picker-pane__year--selected {\n background-color: var(--hb-color-primary);\n color: var(--hb-color-white, #ffffff);\n}\n\n","import { Component, h, Prop, Event, EventEmitter, State, Watch } from '@stencil/core';\nimport {\n getCalendarDays,\n getCalendarYears,\n getYearRangeStart,\n parseDate,\n addMonths,\n addYears,\n MONTH_NAMES,\n WEEK_DAY_NAMES,\n} from '../../utils/date-helpers';\n\n/** DatePickerPane 视图类型 */\nexport type DatePickerPaneView = 'days' | 'months' | 'years';\n\n/**\n * DatePickerPane 日期选择器面板组件\n * 日期选择器面板,用于嵌入到其他组件中\n * 支持 days / months / years 三种视图切换\n */\n@Component({\n tag: 'hb-date-picker-pane',\n styleUrl: 'date-picker-pane.css',\n shadow: true,\n})\nexport class DatePickerPane {\n /** 绑定值 */\n @Prop({ mutable: true }) modelValue?: string | Date;\n\n /** 日期格式 */\n @Prop() format: string = 'YYYY-MM-DD';\n\n /** 当前视图类型,默认 days */\n @Prop({ mutable: true }) view: DatePickerPaneView = 'days';\n\n @State() selectedDate?: Date;\n\n /** 值改变事件 */\n @Event() hbChange: EventEmitter<string | Date>;\n\n /** 视图切换事件 */\n @Event() hbViewChange: EventEmitter<DatePickerPaneView>;\n\n componentDidLoad() {\n this.updateSelectedDate();\n }\n\n @Watch('modelValue')\n handleValueChange() {\n this.updateSelectedDate();\n }\n\n private updateSelectedDate() {\n this.selectedDate = parseDate(this.modelValue);\n }\n\n private handleDateSelect = (date: Date) => {\n this.selectedDate = date;\n this.modelValue = date;\n this.hbChange.emit(date);\n };\n\n /** 头部导航箭头:days 视图 ±1 月,months 视图 ±1 年,years 视图 ±12 年 */\n private handlePrev = () => {\n const base = this.selectedDate || new Date();\n if (this.view === 'days') {\n this.selectedDate = addMonths(base, -1);\n } else if (this.view === 'months') {\n this.selectedDate = addYears(base, -1);\n } else {\n this.selectedDate = addYears(base, -12);\n }\n };\n\n private handleNext = () => {\n const base = this.selectedDate || new Date();\n if (this.view === 'days') {\n this.selectedDate = addMonths(base, 1);\n } else if (this.view === 'months') {\n this.selectedDate = addYears(base, 1);\n } else {\n this.selectedDate = addYears(base, 12);\n }\n };\n\n /** 点击 header 标题:days→months→years */\n private handleHeaderTitleClick = () => {\n if (this.view === 'days') {\n this.view = 'months';\n } else if (this.view === 'months') {\n this.view = 'years';\n }\n this.hbViewChange.emit(this.view);\n };\n\n /** months 视图:选某月 → 切回 days 并跳到该月 */\n private handleMonthSelect = (monthIndex: number) => {\n const base = this.selectedDate || new Date();\n const next = new Date(base);\n next.setMonth(monthIndex);\n this.selectedDate = next;\n this.view = 'days';\n this.hbViewChange.emit(this.view);\n };\n\n /** years 视图:选某年 → 切到 months 并跳到该年 */\n private handleYearSelect = (year: number) => {\n const base = this.selectedDate || new Date();\n const next = new Date(base);\n next.setFullYear(year);\n this.selectedDate = next;\n this.view = 'months';\n this.hbViewChange.emit(this.view);\n };\n\n /** 头部标题文本,根据视图类型生成 */\n private getHeaderTitle(): string {\n const current = this.selectedDate || new Date();\n if (this.view === 'days') {\n return `${current.getFullYear()}年 ${MONTH_NAMES[current.getMonth()]}`;\n }\n if (this.view === 'months') {\n return `${current.getFullYear()}年`;\n }\n // years 视图显示年份档区间,如 2020 - 2031\n const start = getYearRangeStart(current);\n return `${start} - ${start + 11}`;\n }\n\n render() {\n const current = this.selectedDate || new Date();\n\n return (\n <div class=\"hb-date-picker-pane\">\n <div class=\"hb-date-picker-pane__header\">\n <button type=\"button\" class=\"hb-date-picker-pane__prev-btn\" aria-label=\"上一个\" onClick={this.handlePrev}>\n ‹\n </button>\n <button\n type=\"button\"\n class=\"hb-date-picker-pane__header-label\"\n aria-live=\"polite\"\n onClick={this.handleHeaderTitleClick}\n >\n {this.getHeaderTitle()}\n </button>\n <button type=\"button\" class=\"hb-date-picker-pane__next-btn\" aria-label=\"下一个\" onClick={this.handleNext}>\n ›\n </button>\n </div>\n\n {this.view === 'days' && this.renderDaysView()}\n {this.view === 'months' && this.renderMonthsView(current)}\n {this.view === 'years' && this.renderYearsView(current)}\n </div>\n );\n }\n\n private renderDaysView() {\n const days = getCalendarDays(this.selectedDate || new Date(), this.selectedDate);\n return (\n <div class=\"hb-date-picker-pane__body\">\n <div class=\"hb-date-picker-pane__weekdays\">\n {WEEK_DAY_NAMES.map(day => (\n <div class=\"hb-date-picker-pane__weekday\">{day}</div>\n ))}\n </div>\n <div class=\"hb-date-picker-pane__days\">\n {days.map((day, index) => (\n <div\n key={index}\n class={{\n 'hb-date-picker-pane__day': true,\n 'hb-date-picker-pane__day--other-month': !day.isCurrentMonth,\n 'hb-date-picker-pane__day--today': day.isToday,\n 'hb-date-picker-pane__day--selected': day.isSelected,\n }}\n onClick={() => day.isCurrentMonth && this.handleDateSelect(day.date)}\n >\n {day.date.getDate()}\n </div>\n ))}\n </div>\n </div>\n );\n }\n\n private renderMonthsView(current: Date) {\n // modelValue(选中值)所在的年/月\n const modelDate = parseDate(this.modelValue);\n const selectedMonth = modelDate ? modelDate.getMonth() : -1;\n const selectedYear = modelDate ? modelDate.getFullYear() : -1;\n // current 是当前面板的浏览焦点日期(selectedDate 或今天)\n return (\n <div class=\"hb-date-picker-pane__body\">\n <div class=\"hb-date-picker-pane__months\">\n {MONTH_NAMES.map((name, monthIndex) => (\n <div\n key={monthIndex}\n class={{\n 'hb-date-picker-pane__month': true,\n 'hb-date-picker-pane__month--current': monthIndex === current.getMonth(),\n 'hb-date-picker-pane__month--selected':\n monthIndex === selectedMonth && current.getFullYear() === selectedYear,\n }}\n onClick={() => this.handleMonthSelect(monthIndex)}\n >\n {name}\n </div>\n ))}\n </div>\n </div>\n );\n }\n\n private renderYearsView(current: Date) {\n const modelDate = parseDate(this.modelValue);\n const years = getCalendarYears(this.selectedDate || new Date(), modelDate);\n return (\n <div class=\"hb-date-picker-pane__body\">\n <div class=\"hb-date-picker-pane__years\">\n {years.map(item => (\n <div\n key={item.year}\n class={{\n 'hb-date-picker-pane__year': true,\n 'hb-date-picker-pane__year--current': item.year === current.getFullYear(),\n 'hb-date-picker-pane__year--selected': item.isSelected,\n }}\n onClick={() => this.handleYearSelect(item.year)}\n >\n {item.year}\n </div>\n ))}\n </div>\n </div>\n );\n }\n}\n"],"version":3}