huibo-ui 0.4.0 → 0.6.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 (661) hide show
  1. package/dist/cjs/{a11y-802de67a.js → a11y-4385c871.js} +17 -2
  2. package/dist/cjs/a11y-4385c871.js.map +1 -0
  3. package/dist/cjs/{date-helpers-1ffddc59.js → date-helpers-c05ef385.js} +5 -16
  4. package/dist/cjs/date-helpers-c05ef385.js.map +1 -0
  5. package/dist/cjs/hb-alert.cjs.entry.js +2 -1
  6. package/dist/cjs/hb-alert.cjs.entry.js.map +1 -1
  7. package/dist/cjs/hb-calendar.cjs.entry.js +2 -2
  8. package/dist/cjs/hb-calendar.cjs.entry.js.map +1 -1
  9. package/dist/cjs/hb-cascader.cjs.entry.js +48 -12
  10. package/dist/cjs/hb-cascader.cjs.entry.js.map +1 -1
  11. package/dist/cjs/hb-checkbox-group.cjs.entry.js +12 -8
  12. package/dist/cjs/hb-checkbox-group.cjs.entry.js.map +1 -1
  13. package/dist/cjs/hb-checkbox.cjs.entry.js +9 -4
  14. package/dist/cjs/hb-checkbox.cjs.entry.js.map +1 -1
  15. package/dist/cjs/hb-collapse-item.cjs.entry.js +13 -4
  16. package/dist/cjs/hb-collapse-item.cjs.entry.js.map +1 -1
  17. package/dist/cjs/hb-collapse.cjs.entry.js +20 -15
  18. package/dist/cjs/hb-collapse.cjs.entry.js.map +1 -1
  19. package/dist/cjs/hb-color-picker.cjs.entry.js +22 -19
  20. package/dist/cjs/hb-color-picker.cjs.entry.js.map +1 -1
  21. package/dist/cjs/hb-date-picker-pane.cjs.entry.js +1 -1
  22. package/dist/cjs/hb-date-picker.cjs.entry.js +13 -10
  23. package/dist/cjs/hb-date-picker.cjs.entry.js.map +1 -1
  24. package/dist/cjs/hb-date-range-picker.cjs.entry.js +1 -1
  25. package/dist/cjs/hb-date-time-picker.cjs.entry.js +1 -1
  26. package/dist/cjs/hb-descriptions.cjs.entry.js.map +1 -1
  27. package/dist/cjs/hb-dialog.cjs.entry.js +51 -12
  28. package/dist/cjs/hb-dialog.cjs.entry.js.map +1 -1
  29. package/dist/cjs/hb-drawer.cjs.entry.js +34 -4
  30. package/dist/cjs/hb-drawer.cjs.entry.js.map +1 -1
  31. package/dist/cjs/hb-dropdown.cjs.entry.js +27 -15
  32. package/dist/cjs/hb-dropdown.cjs.entry.js.map +1 -1
  33. package/dist/cjs/hb-empty.cjs.entry.js +1 -1
  34. package/dist/cjs/hb-float-button.cjs.entry.js +2 -2
  35. package/dist/cjs/hb-form-item.cjs.entry.js +67 -16
  36. package/dist/cjs/hb-form-item.cjs.entry.js.map +1 -1
  37. package/dist/cjs/hb-form.cjs.entry.js +115 -7
  38. package/dist/cjs/hb-form.cjs.entry.js.map +1 -1
  39. package/dist/cjs/hb-image-preview.cjs.entry.js +1 -1
  40. package/dist/cjs/hb-image-preview.cjs.entry.js.map +1 -1
  41. package/dist/cjs/hb-image.cjs.entry.js +21 -3
  42. package/dist/cjs/hb-image.cjs.entry.js.map +1 -1
  43. package/dist/cjs/hb-input-number.cjs.entry.js +7 -7
  44. package/dist/cjs/hb-input-number.cjs.entry.js.map +1 -1
  45. package/dist/cjs/hb-input-tag.cjs.entry.js +2 -2
  46. package/dist/cjs/hb-input.cjs.entry.js +3 -2
  47. package/dist/cjs/hb-input.cjs.entry.js.map +1 -1
  48. package/dist/cjs/hb-layout.cjs.entry.js.map +1 -1
  49. package/dist/cjs/hb-link.cjs.entry.js +2 -2
  50. package/dist/cjs/hb-loading.cjs.entry.js +2 -2
  51. package/dist/cjs/hb-menu-item.cjs.entry.js +14 -5
  52. package/dist/cjs/hb-menu-item.cjs.entry.js.map +1 -1
  53. package/dist/cjs/hb-menu.cjs.entry.js +2 -2
  54. package/dist/cjs/hb-message.cjs.entry.js +13 -4
  55. package/dist/cjs/hb-message.cjs.entry.js.map +1 -1
  56. package/dist/cjs/hb-page-header.cjs.entry.js +1 -1
  57. package/dist/cjs/hb-pagination.cjs.entry.js +8 -5
  58. package/dist/cjs/hb-pagination.cjs.entry.js.map +1 -1
  59. package/dist/cjs/hb-popconfirm.cjs.entry.js +27 -8
  60. package/dist/cjs/hb-popconfirm.cjs.entry.js.map +1 -1
  61. package/dist/cjs/hb-popover.cjs.entry.js +26 -14
  62. package/dist/cjs/hb-popover.cjs.entry.js.map +1 -1
  63. package/dist/cjs/hb-progress.cjs.entry.js +1 -1
  64. package/dist/cjs/hb-radio.cjs.entry.js +8 -3
  65. package/dist/cjs/hb-radio.cjs.entry.js.map +1 -1
  66. package/dist/cjs/hb-rate.cjs.entry.js +3 -3
  67. package/dist/cjs/hb-rate.cjs.entry.js.map +1 -1
  68. package/dist/cjs/hb-row.cjs.entry.js +2 -2
  69. package/dist/cjs/hb-scrollbar.cjs.entry.js +5 -5
  70. package/dist/cjs/hb-scrollbar.cjs.entry.js.map +1 -1
  71. package/dist/cjs/hb-segmented.cjs.entry.js +13 -2
  72. package/dist/cjs/hb-segmented.cjs.entry.js.map +1 -1
  73. package/dist/cjs/hb-select.cjs.entry.js +100 -19
  74. package/dist/cjs/hb-select.cjs.entry.js.map +1 -1
  75. package/dist/cjs/hb-slider.cjs.entry.js +6 -12
  76. package/dist/cjs/hb-slider.cjs.entry.js.map +1 -1
  77. package/dist/cjs/hb-space.cjs.entry.js +2 -2
  78. package/dist/cjs/hb-statistic.cjs.entry.js +1 -1
  79. package/dist/cjs/hb-step.cjs.entry.js +1 -1
  80. package/dist/cjs/hb-steps.cjs.entry.js +3 -3
  81. package/dist/cjs/hb-steps.cjs.entry.js.map +1 -1
  82. package/dist/cjs/hb-sub-menu.cjs.entry.js +5 -5
  83. package/dist/cjs/hb-switch.cjs.entry.js +3 -3
  84. package/dist/cjs/hb-switch.cjs.entry.js.map +1 -1
  85. package/dist/cjs/hb-tab-pane.cjs.entry.js +1 -1
  86. package/dist/cjs/hb-table.cjs.entry.js +218 -41
  87. package/dist/cjs/hb-table.cjs.entry.js.map +1 -1
  88. package/dist/cjs/hb-tabs.cjs.entry.js +31 -10
  89. package/dist/cjs/hb-tabs.cjs.entry.js.map +1 -1
  90. package/dist/cjs/hb-tag.cjs.entry.js +3 -2
  91. package/dist/cjs/hb-tag.cjs.entry.js.map +1 -1
  92. package/dist/cjs/hb-text.cjs.entry.js +2 -2
  93. package/dist/cjs/hb-time-picker.cjs.entry.js +14 -9
  94. package/dist/cjs/hb-time-picker.cjs.entry.js.map +1 -1
  95. package/dist/cjs/hb-time-select.cjs.entry.js +13 -4
  96. package/dist/cjs/hb-time-select.cjs.entry.js.map +1 -1
  97. package/dist/cjs/hb-tooltip.cjs.entry.js +30 -10
  98. package/dist/cjs/hb-tooltip.cjs.entry.js.map +1 -1
  99. package/dist/cjs/hb-tree-select.cjs.entry.js +125 -10
  100. package/dist/cjs/hb-tree-select.cjs.entry.js.map +1 -1
  101. package/dist/cjs/hb-tree.cjs.entry.js +145 -12
  102. package/dist/cjs/hb-tree.cjs.entry.js.map +1 -1
  103. package/dist/cjs/hb-watermark.cjs.entry.js +19 -11
  104. package/dist/cjs/hb-watermark.cjs.entry.js.map +1 -1
  105. package/dist/cjs/huibo-ui.cjs.js +1 -1
  106. package/dist/cjs/loader.cjs.js +1 -1
  107. package/dist/cjs/transition-59f1da0f.js +34 -0
  108. package/dist/cjs/transition-59f1da0f.js.map +1 -0
  109. package/dist/collection/components/Alert/Alert.js +2 -1
  110. package/dist/collection/components/Alert/Alert.js.map +1 -1
  111. package/dist/collection/components/Calendar/Calendar.js +2 -2
  112. package/dist/collection/components/Calendar/Calendar.js.map +1 -1
  113. package/dist/collection/components/Cascader/Cascader.js +47 -11
  114. package/dist/collection/components/Cascader/Cascader.js.map +1 -1
  115. package/dist/collection/components/Checkbox/Checkbox.js +9 -4
  116. package/dist/collection/components/Checkbox/Checkbox.js.map +1 -1
  117. package/dist/collection/components/Checkbox/CheckboxGroup.js +12 -8
  118. package/dist/collection/components/Checkbox/CheckboxGroup.js.map +1 -1
  119. package/dist/collection/components/Collapse/Collapse.js +20 -15
  120. package/dist/collection/components/Collapse/Collapse.js.map +1 -1
  121. package/dist/collection/components/Collapse/CollapseItem.js +33 -4
  122. package/dist/collection/components/Collapse/CollapseItem.js.map +1 -1
  123. package/dist/collection/components/ColorPicker/ColorPicker.js +22 -19
  124. package/dist/collection/components/ColorPicker/ColorPicker.js.map +1 -1
  125. package/dist/collection/components/ColorPicker/color-picker.css +8 -3
  126. package/dist/collection/components/DatePicker/DatePicker.js +12 -9
  127. package/dist/collection/components/DatePicker/DatePicker.js.map +1 -1
  128. package/dist/collection/components/DatePicker/date-picker.css +3 -2
  129. package/dist/collection/components/Descriptions/descriptions.css +30 -10
  130. package/dist/collection/components/Dialog/Dialog.js +54 -10
  131. package/dist/collection/components/Dialog/Dialog.js.map +1 -1
  132. package/dist/collection/components/Dialog/dialog.css +57 -11
  133. package/dist/collection/components/Drawer/Drawer.js +34 -3
  134. package/dist/collection/components/Drawer/Drawer.js.map +1 -1
  135. package/dist/collection/components/Drawer/drawer.css +207 -17
  136. package/dist/collection/components/Dropdown/Dropdown.js +28 -13
  137. package/dist/collection/components/Dropdown/Dropdown.js.map +1 -1
  138. package/dist/collection/components/Dropdown/dropdown.css +24 -2
  139. package/dist/collection/components/Empty/Empty.js +1 -1
  140. package/dist/collection/components/FloatButton/FloatButton.js +2 -2
  141. package/dist/collection/components/Form/Form.js +217 -9
  142. package/dist/collection/components/Form/Form.js.map +1 -1
  143. package/dist/collection/components/Form/FormItem.js +126 -18
  144. package/dist/collection/components/Form/FormItem.js.map +1 -1
  145. package/dist/collection/components/Form/form-item.css +8 -2
  146. package/dist/collection/components/Image/Image.js +24 -3
  147. package/dist/collection/components/Image/Image.js.map +1 -1
  148. package/dist/collection/components/ImagePreview/ImagePreview.js +1 -1
  149. package/dist/collection/components/ImagePreview/ImagePreview.js.map +1 -1
  150. package/dist/collection/components/Input/Input.js +3 -2
  151. package/dist/collection/components/Input/Input.js.map +1 -1
  152. package/dist/collection/components/Input/input.css +1 -2
  153. package/dist/collection/components/InputNumber/InputNumber.js +6 -6
  154. package/dist/collection/components/InputNumber/InputNumber.js.map +1 -1
  155. package/dist/collection/components/InputNumber/input-number.css +11 -1
  156. package/dist/collection/components/InputTag/InputTag.js +2 -2
  157. package/dist/collection/components/Layout/Layout.js.map +1 -1
  158. package/dist/collection/components/Layout/Row.js +2 -2
  159. package/dist/collection/components/Layout/layout.css +1713 -576
  160. package/dist/collection/components/Link/Link.js +2 -2
  161. package/dist/collection/components/Loading/Loading.js +2 -2
  162. package/dist/collection/components/Menu/Menu.js +2 -2
  163. package/dist/collection/components/Menu/MenuItem.js +34 -5
  164. package/dist/collection/components/Menu/MenuItem.js.map +1 -1
  165. package/dist/collection/components/Menu/SubMenu.js +4 -4
  166. package/dist/collection/components/Message/Message.js +13 -4
  167. package/dist/collection/components/Message/Message.js.map +1 -1
  168. package/dist/collection/components/PageHeader/PageHeader.js +1 -1
  169. package/dist/collection/components/Pagination/Pagination.js +8 -5
  170. package/dist/collection/components/Pagination/Pagination.js.map +1 -1
  171. package/dist/collection/components/Popconfirm/Popconfirm.js +28 -6
  172. package/dist/collection/components/Popconfirm/Popconfirm.js.map +1 -1
  173. package/dist/collection/components/Popconfirm/popconfirm.css +80 -16
  174. package/dist/collection/components/Popover/Popover.js +27 -12
  175. package/dist/collection/components/Popover/Popover.js.map +1 -1
  176. package/dist/collection/components/Popover/popover.css +49 -8
  177. package/dist/collection/components/Progress/Progress.js +1 -1
  178. package/dist/collection/components/Radio/Radio.js +8 -3
  179. package/dist/collection/components/Radio/Radio.js.map +1 -1
  180. package/dist/collection/components/Rate/Rate.js +3 -3
  181. package/dist/collection/components/Rate/Rate.js.map +1 -1
  182. package/dist/collection/components/Scrollbar/Scrollbar.js +5 -5
  183. package/dist/collection/components/Scrollbar/Scrollbar.js.map +1 -1
  184. package/dist/collection/components/Segmented/Segmented.js +15 -1
  185. package/dist/collection/components/Segmented/Segmented.js.map +1 -1
  186. package/dist/collection/components/Select/Select.js +123 -19
  187. package/dist/collection/components/Select/Select.js.map +1 -1
  188. package/dist/collection/components/Select/select.css +0 -1
  189. package/dist/collection/components/Slider/Slider.js +6 -12
  190. package/dist/collection/components/Slider/Slider.js.map +1 -1
  191. package/dist/collection/components/Slider/slider.css +0 -1
  192. package/dist/collection/components/Space/Space.js +2 -2
  193. package/dist/collection/components/Statistic/Statistic.js +1 -1
  194. package/dist/collection/components/Steps/Step.js +1 -1
  195. package/dist/collection/components/Steps/Steps.js +2 -2
  196. package/dist/collection/components/Steps/Steps.js.map +1 -1
  197. package/dist/collection/components/Switch/Switch.js +3 -3
  198. package/dist/collection/components/Switch/Switch.js.map +1 -1
  199. package/dist/collection/components/Switch/switch.css +3 -2
  200. package/dist/collection/components/Table/Table.js +296 -41
  201. package/dist/collection/components/Table/Table.js.map +1 -1
  202. package/dist/collection/components/Table/table.css +6 -2
  203. package/dist/collection/components/Tabs/TabPane.js +1 -1
  204. package/dist/collection/components/Tabs/Tabs.js +31 -10
  205. package/dist/collection/components/Tabs/Tabs.js.map +1 -1
  206. package/dist/collection/components/Tag/Tag.js +3 -2
  207. package/dist/collection/components/Tag/Tag.js.map +1 -1
  208. package/dist/collection/components/Text/Text.js +2 -2
  209. package/dist/collection/components/TimePicker/TimePicker.js +14 -9
  210. package/dist/collection/components/TimePicker/TimePicker.js.map +1 -1
  211. package/dist/collection/components/TimeSelect/TimeSelect.js +13 -4
  212. package/dist/collection/components/TimeSelect/TimeSelect.js.map +1 -1
  213. package/dist/collection/components/Tooltip/Tooltip.js +31 -8
  214. package/dist/collection/components/Tooltip/Tooltip.js.map +1 -1
  215. package/dist/collection/components/Tooltip/tooltip.css +24 -2
  216. package/dist/collection/components/Tree/Tree.js +147 -13
  217. package/dist/collection/components/Tree/Tree.js.map +1 -1
  218. package/dist/collection/components/TreeSelect/TreeSelect.js +130 -11
  219. package/dist/collection/components/TreeSelect/TreeSelect.js.map +1 -1
  220. package/dist/collection/components/Watermark/Watermark.js +19 -11
  221. package/dist/collection/components/Watermark/Watermark.js.map +1 -1
  222. package/dist/collection/utils/a11y.js +15 -1
  223. package/dist/collection/utils/a11y.js.map +1 -1
  224. package/dist/collection/utils/date-helpers.js +4 -15
  225. package/dist/collection/utils/date-helpers.js.map +1 -1
  226. package/dist/collection/utils/transition.js +29 -0
  227. package/dist/collection/utils/transition.js.map +1 -0
  228. package/dist/collection/utils/virtual-scroll.js +39 -0
  229. package/dist/collection/utils/virtual-scroll.js.map +1 -0
  230. package/dist/components/hb-alert.js +2 -1
  231. package/dist/components/hb-alert.js.map +1 -1
  232. package/dist/components/hb-calendar.js +2 -2
  233. package/dist/components/hb-calendar.js.map +1 -1
  234. package/dist/components/hb-cascader.js +48 -12
  235. package/dist/components/hb-cascader.js.map +1 -1
  236. package/dist/components/hb-checkbox-group.js +12 -8
  237. package/dist/components/hb-checkbox-group.js.map +1 -1
  238. package/dist/components/hb-checkbox.js +9 -4
  239. package/dist/components/hb-checkbox.js.map +1 -1
  240. package/dist/components/hb-collapse-item.js +14 -4
  241. package/dist/components/hb-collapse-item.js.map +1 -1
  242. package/dist/components/hb-collapse.js +20 -15
  243. package/dist/components/hb-collapse.js.map +1 -1
  244. package/dist/components/hb-color-picker.js +22 -19
  245. package/dist/components/hb-color-picker.js.map +1 -1
  246. package/dist/components/hb-date-picker-pane.js +1 -1
  247. package/dist/components/hb-date-picker.js +13 -10
  248. package/dist/components/hb-date-picker.js.map +1 -1
  249. package/dist/components/hb-date-range-picker.js +1 -1
  250. package/dist/components/hb-date-time-picker.js +1 -1
  251. package/dist/components/hb-descriptions.js.map +1 -1
  252. package/dist/components/hb-dialog.js +53 -13
  253. package/dist/components/hb-dialog.js.map +1 -1
  254. package/dist/components/hb-drawer.js +36 -5
  255. package/dist/components/hb-drawer.js.map +1 -1
  256. package/dist/components/hb-dropdown.js +28 -15
  257. package/dist/components/hb-dropdown.js.map +1 -1
  258. package/dist/components/hb-empty.js +1 -1
  259. package/dist/components/hb-float-button.js +2 -2
  260. package/dist/components/hb-form-item.js +70 -16
  261. package/dist/components/hb-form-item.js.map +1 -1
  262. package/dist/components/hb-form.js +120 -7
  263. package/dist/components/hb-form.js.map +1 -1
  264. package/dist/components/hb-image-preview.js +1 -1
  265. package/dist/components/hb-image-preview.js.map +1 -1
  266. package/dist/components/hb-image.js +23 -3
  267. package/dist/components/hb-image.js.map +1 -1
  268. package/dist/components/hb-input-number.js +7 -7
  269. package/dist/components/hb-input-number.js.map +1 -1
  270. package/dist/components/hb-input-tag.js +2 -2
  271. package/dist/components/hb-input.js +3 -2
  272. package/dist/components/hb-input.js.map +1 -1
  273. package/dist/components/hb-layout.js.map +1 -1
  274. package/dist/components/hb-link.js +2 -2
  275. package/dist/components/hb-loading.js +2 -2
  276. package/dist/components/hb-menu-item.js +15 -5
  277. package/dist/components/hb-menu-item.js.map +1 -1
  278. package/dist/components/hb-menu.js +2 -2
  279. package/dist/components/hb-message.js +13 -4
  280. package/dist/components/hb-message.js.map +1 -1
  281. package/dist/components/hb-page-header.js +1 -1
  282. package/dist/components/hb-pagination.js +8 -5
  283. package/dist/components/hb-pagination.js.map +1 -1
  284. package/dist/components/hb-popconfirm.js +28 -8
  285. package/dist/components/hb-popconfirm.js.map +1 -1
  286. package/dist/components/hb-popover.js +27 -14
  287. package/dist/components/hb-popover.js.map +1 -1
  288. package/dist/components/hb-progress.js +1 -1
  289. package/dist/components/hb-radio.js +8 -3
  290. package/dist/components/hb-radio.js.map +1 -1
  291. package/dist/components/hb-rate.js +3 -3
  292. package/dist/components/hb-rate.js.map +1 -1
  293. package/dist/components/hb-row.js +2 -2
  294. package/dist/components/hb-scrollbar.js +5 -5
  295. package/dist/components/hb-scrollbar.js.map +1 -1
  296. package/dist/components/hb-segmented.js +15 -2
  297. package/dist/components/hb-segmented.js.map +1 -1
  298. package/dist/components/hb-select.js +105 -20
  299. package/dist/components/hb-select.js.map +1 -1
  300. package/dist/components/hb-slider.js +6 -12
  301. package/dist/components/hb-slider.js.map +1 -1
  302. package/dist/components/hb-space.js +2 -2
  303. package/dist/components/hb-statistic.js +1 -1
  304. package/dist/components/hb-step.js +1 -1
  305. package/dist/components/hb-steps.js +3 -3
  306. package/dist/components/hb-steps.js.map +1 -1
  307. package/dist/components/hb-sub-menu.js +5 -5
  308. package/dist/components/hb-switch.js +3 -3
  309. package/dist/components/hb-switch.js.map +1 -1
  310. package/dist/components/hb-tab-pane.js +1 -1
  311. package/dist/components/hb-table.js +226 -43
  312. package/dist/components/hb-table.js.map +1 -1
  313. package/dist/components/hb-tabs.js +31 -10
  314. package/dist/components/hb-tabs.js.map +1 -1
  315. package/dist/components/hb-tag.js +3 -2
  316. package/dist/components/hb-tag.js.map +1 -1
  317. package/dist/components/hb-text.js +2 -2
  318. package/dist/components/hb-time-picker.js +14 -9
  319. package/dist/components/hb-time-picker.js.map +1 -1
  320. package/dist/components/hb-time-select.js +13 -4
  321. package/dist/components/hb-time-select.js.map +1 -1
  322. package/dist/components/hb-tooltip.js +31 -10
  323. package/dist/components/hb-tooltip.js.map +1 -1
  324. package/dist/components/hb-tree-select.js +129 -11
  325. package/dist/components/hb-tree-select.js.map +1 -1
  326. package/dist/components/hb-tree.js +147 -13
  327. package/dist/components/hb-tree.js.map +1 -1
  328. package/dist/components/hb-watermark.js +19 -11
  329. package/dist/components/hb-watermark.js.map +1 -1
  330. package/dist/{esm/a11y-f9ab2964.js → components/p-00aa34c8.js} +17 -3
  331. package/dist/components/p-00aa34c8.js.map +1 -0
  332. package/dist/components/{p-08b4005c.js → p-e0876aca.js} +5 -16
  333. package/dist/components/p-e0876aca.js.map +1 -0
  334. package/dist/components/p-fad66d69.js +32 -0
  335. package/dist/components/p-fad66d69.js.map +1 -0
  336. package/dist/{components/p-cc0aeb50.js → esm/a11y-e4cde5b0.js} +17 -3
  337. package/dist/esm/a11y-e4cde5b0.js.map +1 -0
  338. package/dist/esm/{date-helpers-44507189.js → date-helpers-259ed2f1.js} +5 -16
  339. package/dist/esm/date-helpers-259ed2f1.js.map +1 -0
  340. package/dist/esm/hb-alert.entry.js +2 -1
  341. package/dist/esm/hb-alert.entry.js.map +1 -1
  342. package/dist/esm/hb-calendar.entry.js +2 -2
  343. package/dist/esm/hb-calendar.entry.js.map +1 -1
  344. package/dist/esm/hb-cascader.entry.js +48 -12
  345. package/dist/esm/hb-cascader.entry.js.map +1 -1
  346. package/dist/esm/hb-checkbox-group.entry.js +12 -8
  347. package/dist/esm/hb-checkbox-group.entry.js.map +1 -1
  348. package/dist/esm/hb-checkbox.entry.js +9 -4
  349. package/dist/esm/hb-checkbox.entry.js.map +1 -1
  350. package/dist/esm/hb-collapse-item.entry.js +13 -4
  351. package/dist/esm/hb-collapse-item.entry.js.map +1 -1
  352. package/dist/esm/hb-collapse.entry.js +20 -15
  353. package/dist/esm/hb-collapse.entry.js.map +1 -1
  354. package/dist/esm/hb-color-picker.entry.js +22 -19
  355. package/dist/esm/hb-color-picker.entry.js.map +1 -1
  356. package/dist/esm/hb-date-picker-pane.entry.js +1 -1
  357. package/dist/esm/hb-date-picker.entry.js +13 -10
  358. package/dist/esm/hb-date-picker.entry.js.map +1 -1
  359. package/dist/esm/hb-date-range-picker.entry.js +1 -1
  360. package/dist/esm/hb-date-time-picker.entry.js +1 -1
  361. package/dist/esm/hb-descriptions.entry.js.map +1 -1
  362. package/dist/esm/hb-dialog.entry.js +51 -12
  363. package/dist/esm/hb-dialog.entry.js.map +1 -1
  364. package/dist/esm/hb-drawer.entry.js +34 -4
  365. package/dist/esm/hb-drawer.entry.js.map +1 -1
  366. package/dist/esm/hb-dropdown.entry.js +27 -15
  367. package/dist/esm/hb-dropdown.entry.js.map +1 -1
  368. package/dist/esm/hb-empty.entry.js +1 -1
  369. package/dist/esm/hb-float-button.entry.js +2 -2
  370. package/dist/esm/hb-form-item.entry.js +67 -16
  371. package/dist/esm/hb-form-item.entry.js.map +1 -1
  372. package/dist/esm/hb-form.entry.js +115 -7
  373. package/dist/esm/hb-form.entry.js.map +1 -1
  374. package/dist/esm/hb-image-preview.entry.js +1 -1
  375. package/dist/esm/hb-image-preview.entry.js.map +1 -1
  376. package/dist/esm/hb-image.entry.js +21 -3
  377. package/dist/esm/hb-image.entry.js.map +1 -1
  378. package/dist/esm/hb-input-number.entry.js +7 -7
  379. package/dist/esm/hb-input-number.entry.js.map +1 -1
  380. package/dist/esm/hb-input-tag.entry.js +2 -2
  381. package/dist/esm/hb-input.entry.js +3 -2
  382. package/dist/esm/hb-input.entry.js.map +1 -1
  383. package/dist/esm/hb-layout.entry.js.map +1 -1
  384. package/dist/esm/hb-link.entry.js +2 -2
  385. package/dist/esm/hb-loading.entry.js +2 -2
  386. package/dist/esm/hb-menu-item.entry.js +14 -5
  387. package/dist/esm/hb-menu-item.entry.js.map +1 -1
  388. package/dist/esm/hb-menu.entry.js +2 -2
  389. package/dist/esm/hb-message.entry.js +13 -4
  390. package/dist/esm/hb-message.entry.js.map +1 -1
  391. package/dist/esm/hb-page-header.entry.js +1 -1
  392. package/dist/esm/hb-pagination.entry.js +8 -5
  393. package/dist/esm/hb-pagination.entry.js.map +1 -1
  394. package/dist/esm/hb-popconfirm.entry.js +27 -8
  395. package/dist/esm/hb-popconfirm.entry.js.map +1 -1
  396. package/dist/esm/hb-popover.entry.js +26 -14
  397. package/dist/esm/hb-popover.entry.js.map +1 -1
  398. package/dist/esm/hb-progress.entry.js +1 -1
  399. package/dist/esm/hb-radio.entry.js +8 -3
  400. package/dist/esm/hb-radio.entry.js.map +1 -1
  401. package/dist/esm/hb-rate.entry.js +3 -3
  402. package/dist/esm/hb-rate.entry.js.map +1 -1
  403. package/dist/esm/hb-row.entry.js +2 -2
  404. package/dist/esm/hb-scrollbar.entry.js +5 -5
  405. package/dist/esm/hb-scrollbar.entry.js.map +1 -1
  406. package/dist/esm/hb-segmented.entry.js +13 -2
  407. package/dist/esm/hb-segmented.entry.js.map +1 -1
  408. package/dist/esm/hb-select.entry.js +100 -19
  409. package/dist/esm/hb-select.entry.js.map +1 -1
  410. package/dist/esm/hb-slider.entry.js +6 -12
  411. package/dist/esm/hb-slider.entry.js.map +1 -1
  412. package/dist/esm/hb-space.entry.js +2 -2
  413. package/dist/esm/hb-statistic.entry.js +1 -1
  414. package/dist/esm/hb-step.entry.js +1 -1
  415. package/dist/esm/hb-steps.entry.js +3 -3
  416. package/dist/esm/hb-steps.entry.js.map +1 -1
  417. package/dist/esm/hb-sub-menu.entry.js +5 -5
  418. package/dist/esm/hb-switch.entry.js +3 -3
  419. package/dist/esm/hb-switch.entry.js.map +1 -1
  420. package/dist/esm/hb-tab-pane.entry.js +1 -1
  421. package/dist/esm/hb-table.entry.js +218 -41
  422. package/dist/esm/hb-table.entry.js.map +1 -1
  423. package/dist/esm/hb-tabs.entry.js +31 -10
  424. package/dist/esm/hb-tabs.entry.js.map +1 -1
  425. package/dist/esm/hb-tag.entry.js +3 -2
  426. package/dist/esm/hb-tag.entry.js.map +1 -1
  427. package/dist/esm/hb-text.entry.js +2 -2
  428. package/dist/esm/hb-time-picker.entry.js +14 -9
  429. package/dist/esm/hb-time-picker.entry.js.map +1 -1
  430. package/dist/esm/hb-time-select.entry.js +13 -4
  431. package/dist/esm/hb-time-select.entry.js.map +1 -1
  432. package/dist/esm/hb-tooltip.entry.js +30 -10
  433. package/dist/esm/hb-tooltip.entry.js.map +1 -1
  434. package/dist/esm/hb-tree-select.entry.js +125 -10
  435. package/dist/esm/hb-tree-select.entry.js.map +1 -1
  436. package/dist/esm/hb-tree.entry.js +145 -12
  437. package/dist/esm/hb-tree.entry.js.map +1 -1
  438. package/dist/esm/hb-watermark.entry.js +19 -11
  439. package/dist/esm/hb-watermark.entry.js.map +1 -1
  440. package/dist/esm/huibo-ui.js +1 -1
  441. package/dist/esm/loader.js +1 -1
  442. package/dist/esm/transition-4295d789.js +32 -0
  443. package/dist/esm/transition-4295d789.js.map +1 -0
  444. package/dist/huibo-ui/huibo-ui.esm.js +1 -1
  445. package/dist/huibo-ui/huibo-ui.esm.js.map +1 -1
  446. package/dist/huibo-ui/p-00aa34c8.js +2 -0
  447. package/dist/huibo-ui/p-00aa34c8.js.map +1 -0
  448. package/dist/huibo-ui/p-0cc1e3f3.entry.js +2 -0
  449. package/dist/huibo-ui/p-0cc1e3f3.entry.js.map +1 -0
  450. package/dist/huibo-ui/{p-678b4212.entry.js → p-0ddae4e9.entry.js} +2 -2
  451. package/dist/huibo-ui/p-10f6c184.entry.js.map +1 -1
  452. package/dist/huibo-ui/{p-f4336be9.entry.js → p-14c3b47b.entry.js} +2 -2
  453. package/dist/huibo-ui/{p-c50ad398.entry.js → p-193efdc0.entry.js} +2 -2
  454. package/dist/huibo-ui/{p-735bceef.entry.js → p-1b98152b.entry.js} +2 -2
  455. package/dist/huibo-ui/p-1b98152b.entry.js.map +1 -0
  456. package/dist/huibo-ui/p-1f6d0adb.entry.js +2 -0
  457. package/dist/huibo-ui/p-1f6d0adb.entry.js.map +1 -0
  458. package/dist/huibo-ui/{p-0d4b2997.entry.js → p-2bcda1bb.entry.js} +2 -2
  459. package/dist/huibo-ui/{p-b8d87f7e.entry.js → p-2ca9796a.entry.js} +2 -2
  460. package/dist/huibo-ui/p-2ca9796a.entry.js.map +1 -0
  461. package/dist/huibo-ui/{p-c80f8ace.entry.js → p-2cf5bf20.entry.js} +2 -2
  462. package/dist/huibo-ui/p-2cf5bf20.entry.js.map +1 -0
  463. package/dist/huibo-ui/{p-7da14d7c.entry.js → p-3042f986.entry.js} +2 -2
  464. package/dist/huibo-ui/{p-e039155d.entry.js → p-3dacb26b.entry.js} +2 -2
  465. package/dist/huibo-ui/{p-a084b8e5.entry.js → p-412ff618.entry.js} +2 -2
  466. package/dist/huibo-ui/p-4148d875.entry.js +2 -0
  467. package/dist/huibo-ui/p-4148d875.entry.js.map +1 -0
  468. package/dist/huibo-ui/{p-6beb5b81.entry.js → p-415295f3.entry.js} +2 -2
  469. package/dist/huibo-ui/p-415295f3.entry.js.map +1 -0
  470. package/dist/huibo-ui/p-494e6c25.entry.js +2 -0
  471. package/dist/huibo-ui/p-494e6c25.entry.js.map +1 -0
  472. package/dist/huibo-ui/p-4d87d7f4.entry.js +2 -0
  473. package/dist/huibo-ui/p-4d87d7f4.entry.js.map +1 -0
  474. package/dist/huibo-ui/p-5e253c15.entry.js +2 -0
  475. package/dist/huibo-ui/p-5e253c15.entry.js.map +1 -0
  476. package/dist/huibo-ui/p-63d68c61.entry.js +2 -0
  477. package/dist/huibo-ui/p-63d68c61.entry.js.map +1 -0
  478. package/dist/huibo-ui/{p-ccd09d5a.entry.js → p-6518c435.entry.js} +2 -2
  479. package/dist/huibo-ui/{p-1f8db37a.entry.js → p-687d8dff.entry.js} +2 -2
  480. package/dist/huibo-ui/p-687d8dff.entry.js.map +1 -0
  481. package/dist/huibo-ui/p-688460ce.entry.js +2 -0
  482. package/dist/huibo-ui/p-688460ce.entry.js.map +1 -0
  483. package/dist/huibo-ui/p-69bb1dd9.entry.js +2 -0
  484. package/dist/huibo-ui/p-69bb1dd9.entry.js.map +1 -0
  485. package/dist/huibo-ui/{p-2811e603.entry.js → p-6bfe1954.entry.js} +2 -2
  486. package/dist/huibo-ui/p-6bfe1954.entry.js.map +1 -0
  487. package/dist/huibo-ui/{p-e5cbfa9e.entry.js → p-6c23fbd1.entry.js} +2 -2
  488. package/dist/huibo-ui/p-6c23fbd1.entry.js.map +1 -0
  489. package/dist/huibo-ui/p-6c8cf248.entry.js.map +1 -1
  490. package/dist/huibo-ui/p-6efed295.entry.js +2 -0
  491. package/dist/huibo-ui/p-6efed295.entry.js.map +1 -0
  492. package/dist/huibo-ui/p-7a38b3e2.entry.js +2 -0
  493. package/dist/huibo-ui/p-7a38b3e2.entry.js.map +1 -0
  494. package/dist/huibo-ui/{p-cad57c2d.entry.js → p-7a682c56.entry.js} +2 -2
  495. package/dist/huibo-ui/{p-a8996d22.entry.js → p-815fc943.entry.js} +2 -2
  496. package/dist/huibo-ui/{p-af74667d.entry.js → p-89be7973.entry.js} +2 -2
  497. package/dist/huibo-ui/p-8a202bc5.entry.js.map +1 -1
  498. package/dist/huibo-ui/{p-213b9de7.entry.js → p-8c4415ed.entry.js} +2 -2
  499. package/dist/huibo-ui/p-8c4415ed.entry.js.map +1 -0
  500. package/dist/huibo-ui/{p-8fdbd17c.entry.js → p-950e7465.entry.js} +2 -2
  501. package/dist/huibo-ui/{p-ab9cf0e4.entry.js → p-96cecd21.entry.js} +2 -2
  502. package/dist/huibo-ui/p-96cecd21.entry.js.map +1 -0
  503. package/dist/huibo-ui/{p-2b4556ff.entry.js → p-98b513cd.entry.js} +2 -2
  504. package/dist/huibo-ui/p-98b513cd.entry.js.map +1 -0
  505. package/dist/huibo-ui/{p-89ea1141.entry.js → p-ac45291c.entry.js} +2 -2
  506. package/dist/huibo-ui/{p-e10fcfbe.entry.js → p-b105cf76.entry.js} +2 -2
  507. package/dist/huibo-ui/p-b105cf76.entry.js.map +1 -0
  508. package/dist/huibo-ui/{p-9a5406f0.entry.js → p-b38802b0.entry.js} +2 -2
  509. package/dist/huibo-ui/{p-9a5406f0.entry.js.map → p-b38802b0.entry.js.map} +1 -1
  510. package/dist/huibo-ui/{p-ea74fcae.entry.js → p-b3fd12c7.entry.js} +2 -2
  511. package/dist/huibo-ui/p-b3fd12c7.entry.js.map +1 -0
  512. package/dist/huibo-ui/p-b5ea18ba.entry.js +2 -0
  513. package/dist/huibo-ui/p-b5ea18ba.entry.js.map +1 -0
  514. package/dist/huibo-ui/{p-41d9c846.entry.js → p-b6afe81e.entry.js} +2 -2
  515. package/dist/huibo-ui/p-b7900dee.entry.js +2 -0
  516. package/dist/huibo-ui/p-b7900dee.entry.js.map +1 -0
  517. package/dist/huibo-ui/p-b8c83751.entry.js +2 -0
  518. package/dist/huibo-ui/p-b8c83751.entry.js.map +1 -0
  519. package/dist/huibo-ui/p-c7713947.entry.js +2 -0
  520. package/dist/huibo-ui/p-c7713947.entry.js.map +1 -0
  521. package/dist/huibo-ui/{p-33de6878.entry.js → p-c869842c.entry.js} +2 -2
  522. package/dist/huibo-ui/p-c869842c.entry.js.map +1 -0
  523. package/dist/huibo-ui/p-c8e917db.entry.js.map +1 -1
  524. package/dist/huibo-ui/p-cb66dbef.entry.js +2 -0
  525. package/dist/huibo-ui/p-cb66dbef.entry.js.map +1 -0
  526. package/dist/huibo-ui/p-cde83f76.entry.js +2 -0
  527. package/dist/huibo-ui/p-cde83f76.entry.js.map +1 -0
  528. package/dist/huibo-ui/{p-f5969181.entry.js → p-dd9c6459.entry.js} +2 -2
  529. package/dist/huibo-ui/{p-08b4005c.js → p-e0876aca.js} +1 -1
  530. package/dist/huibo-ui/p-e0876aca.js.map +1 -0
  531. package/dist/huibo-ui/{p-aa5e5e02.entry.js → p-e1773c93.entry.js} +2 -2
  532. package/dist/huibo-ui/p-e1773c93.entry.js.map +1 -0
  533. package/dist/huibo-ui/{p-626b48f1.entry.js → p-e73c357f.entry.js} +2 -2
  534. package/dist/huibo-ui/p-e73c357f.entry.js.map +1 -0
  535. package/dist/huibo-ui/{p-60532a1f.entry.js → p-e7c73624.entry.js} +2 -2
  536. package/dist/huibo-ui/p-e7c73624.entry.js.map +1 -0
  537. package/dist/huibo-ui/{p-86bdc48a.entry.js → p-e8824b2c.entry.js} +2 -2
  538. package/dist/huibo-ui/p-e8824b2c.entry.js.map +1 -0
  539. package/dist/huibo-ui/{p-13010da2.entry.js → p-e9e7abca.entry.js} +2 -2
  540. package/dist/huibo-ui/{p-f6889710.entry.js → p-ea0823f3.entry.js} +2 -2
  541. package/dist/huibo-ui/p-ea0823f3.entry.js.map +1 -0
  542. package/dist/huibo-ui/{p-b468858e.entry.js → p-f1f2483f.entry.js} +2 -2
  543. package/dist/huibo-ui/p-f69599fa.entry.js +2 -0
  544. package/dist/huibo-ui/p-f69599fa.entry.js.map +1 -0
  545. package/dist/huibo-ui/p-fad66d69.js +2 -0
  546. package/dist/huibo-ui/p-fad66d69.js.map +1 -0
  547. package/dist/huibo-ui/{p-fd8301c6.entry.js → p-fd6831f9.entry.js} +2 -2
  548. package/dist/huibo-ui/p-ff6bc5cc.entry.js +2 -0
  549. package/dist/huibo-ui/p-ff6bc5cc.entry.js.map +1 -0
  550. package/dist/types/components/Cascader/Cascader.d.ts +12 -0
  551. package/dist/types/components/Checkbox/Checkbox.d.ts +5 -0
  552. package/dist/types/components/Checkbox/CheckboxGroup.d.ts +1 -0
  553. package/dist/types/components/Collapse/Collapse.d.ts +2 -0
  554. package/dist/types/components/Collapse/CollapseItem.d.ts +8 -1
  555. package/dist/types/components/Dialog/Dialog.d.ts +13 -1
  556. package/dist/types/components/Drawer/Drawer.d.ts +4 -0
  557. package/dist/types/components/Dropdown/Dropdown.d.ts +6 -2
  558. package/dist/types/components/Form/Form.d.ts +59 -0
  559. package/dist/types/components/Form/FormItem.d.ts +23 -0
  560. package/dist/types/components/Image/Image.d.ts +6 -0
  561. package/dist/types/components/Menu/MenuItem.d.ts +8 -1
  562. package/dist/types/components/Message/Message.d.ts +3 -0
  563. package/dist/types/components/Popconfirm/Popconfirm.d.ts +6 -2
  564. package/dist/types/components/Popover/Popover.d.ts +6 -1
  565. package/dist/types/components/Radio/Radio.d.ts +5 -0
  566. package/dist/types/components/Segmented/Segmented.d.ts +6 -0
  567. package/dist/types/components/Select/Select.d.ts +24 -0
  568. package/dist/types/components/Table/Table.d.ts +110 -9
  569. package/dist/types/components/Tabs/Tabs.d.ts +6 -0
  570. package/dist/types/components/Tooltip/Tooltip.d.ts +6 -0
  571. package/dist/types/components/Tree/Tree.d.ts +24 -0
  572. package/dist/types/components/TreeSelect/TreeSelect.d.ts +17 -0
  573. package/dist/types/components/Watermark/Watermark.d.ts +7 -1
  574. package/dist/types/components.d.ts +188 -6
  575. package/dist/types/utils/a11y.d.ts +9 -0
  576. package/dist/types/utils/transition.d.ts +27 -0
  577. package/dist/types/utils/virtual-scroll.d.ts +38 -0
  578. package/package.json +1 -1
  579. package/dist/cjs/a11y-802de67a.js.map +0 -1
  580. package/dist/cjs/date-helpers-1ffddc59.js.map +0 -1
  581. package/dist/components/p-08b4005c.js.map +0 -1
  582. package/dist/components/p-cc0aeb50.js.map +0 -1
  583. package/dist/esm/a11y-f9ab2964.js.map +0 -1
  584. package/dist/esm/date-helpers-44507189.js.map +0 -1
  585. package/dist/huibo-ui/p-08b4005c.js.map +0 -1
  586. package/dist/huibo-ui/p-1f8db37a.entry.js.map +0 -1
  587. package/dist/huibo-ui/p-213b9de7.entry.js.map +0 -1
  588. package/dist/huibo-ui/p-25fd7d5c.entry.js +0 -2
  589. package/dist/huibo-ui/p-25fd7d5c.entry.js.map +0 -1
  590. package/dist/huibo-ui/p-2811e603.entry.js.map +0 -1
  591. package/dist/huibo-ui/p-2943f5d0.entry.js +0 -2
  592. package/dist/huibo-ui/p-2943f5d0.entry.js.map +0 -1
  593. package/dist/huibo-ui/p-2b4556ff.entry.js.map +0 -1
  594. package/dist/huibo-ui/p-33de6878.entry.js.map +0 -1
  595. package/dist/huibo-ui/p-3807da71.entry.js +0 -2
  596. package/dist/huibo-ui/p-3807da71.entry.js.map +0 -1
  597. package/dist/huibo-ui/p-47ef7a86.entry.js +0 -2
  598. package/dist/huibo-ui/p-47ef7a86.entry.js.map +0 -1
  599. package/dist/huibo-ui/p-4d34e43e.entry.js +0 -2
  600. package/dist/huibo-ui/p-4d34e43e.entry.js.map +0 -1
  601. package/dist/huibo-ui/p-54aa2fd8.entry.js +0 -2
  602. package/dist/huibo-ui/p-54aa2fd8.entry.js.map +0 -1
  603. package/dist/huibo-ui/p-60532a1f.entry.js.map +0 -1
  604. package/dist/huibo-ui/p-626b48f1.entry.js.map +0 -1
  605. package/dist/huibo-ui/p-639f167d.entry.js +0 -2
  606. package/dist/huibo-ui/p-639f167d.entry.js.map +0 -1
  607. package/dist/huibo-ui/p-6beb5b81.entry.js.map +0 -1
  608. package/dist/huibo-ui/p-735bceef.entry.js.map +0 -1
  609. package/dist/huibo-ui/p-76519752.entry.js +0 -2
  610. package/dist/huibo-ui/p-76519752.entry.js.map +0 -1
  611. package/dist/huibo-ui/p-79af2efa.entry.js +0 -2
  612. package/dist/huibo-ui/p-79af2efa.entry.js.map +0 -1
  613. package/dist/huibo-ui/p-7f6975ad.entry.js +0 -2
  614. package/dist/huibo-ui/p-7f6975ad.entry.js.map +0 -1
  615. package/dist/huibo-ui/p-86bdc48a.entry.js.map +0 -1
  616. package/dist/huibo-ui/p-8a8443b8.entry.js +0 -2
  617. package/dist/huibo-ui/p-8a8443b8.entry.js.map +0 -1
  618. package/dist/huibo-ui/p-8fd788c9.entry.js +0 -2
  619. package/dist/huibo-ui/p-8fd788c9.entry.js.map +0 -1
  620. package/dist/huibo-ui/p-92521c31.entry.js +0 -2
  621. package/dist/huibo-ui/p-92521c31.entry.js.map +0 -1
  622. package/dist/huibo-ui/p-965d4d02.entry.js +0 -2
  623. package/dist/huibo-ui/p-965d4d02.entry.js.map +0 -1
  624. package/dist/huibo-ui/p-aa5e5e02.entry.js.map +0 -1
  625. package/dist/huibo-ui/p-ab9cf0e4.entry.js.map +0 -1
  626. package/dist/huibo-ui/p-b8d87f7e.entry.js.map +0 -1
  627. package/dist/huibo-ui/p-c6c91664.entry.js +0 -2
  628. package/dist/huibo-ui/p-c6c91664.entry.js.map +0 -1
  629. package/dist/huibo-ui/p-c80f8ace.entry.js.map +0 -1
  630. package/dist/huibo-ui/p-cc0aeb50.js +0 -2
  631. package/dist/huibo-ui/p-cc0aeb50.js.map +0 -1
  632. package/dist/huibo-ui/p-d79a15b1.entry.js +0 -2
  633. package/dist/huibo-ui/p-d79a15b1.entry.js.map +0 -1
  634. package/dist/huibo-ui/p-e10fcfbe.entry.js.map +0 -1
  635. package/dist/huibo-ui/p-e5cbfa9e.entry.js.map +0 -1
  636. package/dist/huibo-ui/p-ea74fcae.entry.js.map +0 -1
  637. package/dist/huibo-ui/p-edbda423.entry.js +0 -2
  638. package/dist/huibo-ui/p-edbda423.entry.js.map +0 -1
  639. package/dist/huibo-ui/p-f6889710.entry.js.map +0 -1
  640. package/dist/huibo-ui/p-f9bb5217.entry.js +0 -2
  641. package/dist/huibo-ui/p-f9bb5217.entry.js.map +0 -1
  642. package/dist/huibo-ui/p-fea20295.entry.js +0 -2
  643. package/dist/huibo-ui/p-fea20295.entry.js.map +0 -1
  644. /package/dist/huibo-ui/{p-678b4212.entry.js.map → p-0ddae4e9.entry.js.map} +0 -0
  645. /package/dist/huibo-ui/{p-f4336be9.entry.js.map → p-14c3b47b.entry.js.map} +0 -0
  646. /package/dist/huibo-ui/{p-c50ad398.entry.js.map → p-193efdc0.entry.js.map} +0 -0
  647. /package/dist/huibo-ui/{p-0d4b2997.entry.js.map → p-2bcda1bb.entry.js.map} +0 -0
  648. /package/dist/huibo-ui/{p-7da14d7c.entry.js.map → p-3042f986.entry.js.map} +0 -0
  649. /package/dist/huibo-ui/{p-e039155d.entry.js.map → p-3dacb26b.entry.js.map} +0 -0
  650. /package/dist/huibo-ui/{p-a084b8e5.entry.js.map → p-412ff618.entry.js.map} +0 -0
  651. /package/dist/huibo-ui/{p-ccd09d5a.entry.js.map → p-6518c435.entry.js.map} +0 -0
  652. /package/dist/huibo-ui/{p-cad57c2d.entry.js.map → p-7a682c56.entry.js.map} +0 -0
  653. /package/dist/huibo-ui/{p-a8996d22.entry.js.map → p-815fc943.entry.js.map} +0 -0
  654. /package/dist/huibo-ui/{p-af74667d.entry.js.map → p-89be7973.entry.js.map} +0 -0
  655. /package/dist/huibo-ui/{p-8fdbd17c.entry.js.map → p-950e7465.entry.js.map} +0 -0
  656. /package/dist/huibo-ui/{p-89ea1141.entry.js.map → p-ac45291c.entry.js.map} +0 -0
  657. /package/dist/huibo-ui/{p-41d9c846.entry.js.map → p-b6afe81e.entry.js.map} +0 -0
  658. /package/dist/huibo-ui/{p-f5969181.entry.js.map → p-dd9c6459.entry.js.map} +0 -0
  659. /package/dist/huibo-ui/{p-13010da2.entry.js.map → p-e9e7abca.entry.js.map} +0 -0
  660. /package/dist/huibo-ui/{p-b468858e.entry.js.map → p-f1f2483f.entry.js.map} +0 -0
  661. /package/dist/huibo-ui/{p-fd8301c6.entry.js.map → p-fd6831f9.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"file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ACH;;;;;;;;;;;;","names":[],"sources":["src/components/Tree/tree.css?tag=hb-tree&encapsulation=shadow","src/components/Tree/Tree.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.hb-tree {\n list-style: none;\n margin: 0;\n padding: 0;\n font-size: var(--hb-font-size-base);\n color: var(--hb-color-text);\n background-color: var(--hb-color-bg-container);\n box-sizing: border-box;\n}\n\n.hb-tree__children {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.hb-tree__node {\n list-style: none;\n white-space: nowrap;\n}\n\n.hb-tree__node-content {\n display: flex;\n align-items: center;\n gap: var(--hb-spacing-xxs);\n height: 28px;\n padding-right: var(--hb-spacing-xs);\n border-radius: var(--hb-border-radius-sm);\n cursor: pointer;\n transition: background-color var(--hb-transition-duration, 0.2s) var(--hb-transition-function, ease);\n box-sizing: border-box;\n}\n\n.hb-tree__node-content:hover {\n background-color: var(--hb-color-fill-tertiary);\n}\n\n.hb-tree__node-content--selected {\n background-color: var(--hb-color-primary-bg);\n}\n\n.hb-tree__node--disabled > .hb-tree__node-content {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n.hb-tree__node--disabled > .hb-tree__node-content:hover {\n background-color: transparent;\n}\n\n.hb-tree__switcher {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n flex-shrink: 0;\n color: var(--hb-color-text-tertiary);\n}\n\n.hb-tree__arrow {\n font-size: 10px;\n display: inline-block;\n transition: transform var(--hb-transition-duration, 0.2s);\n}\n\n.hb-tree__arrow--expanded {\n transform: rotate(90deg);\n}\n\n.hb-tree--show-line .hb-tree__switcher {\n color: var(--hb-color-border);\n}\n\n.hb-tree__line-dot {\n width: 6px;\n height: 6px;\n border-left: 1px solid var(--hb-color-border);\n border-bottom: 1px solid var(--hb-color-border);\n border-bottom-left-radius: var(--hb-border-radius-sm);\n}\n\n.hb-tree__checkbox {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n border: 1px solid var(--hb-color-border);\n border-radius: var(--hb-border-radius-xs, 2px);\n background-color: var(--hb-color-bg-container);\n color: #fff;\n font-size: 11px;\n line-height: 1;\n flex-shrink: 0;\n transition: all var(--hb-transition-duration, 0.2s);\n}\n\n.hb-tree__checkbox:hover:not(.hb-tree__checkbox--disabled) {\n border-color: var(--hb-color-primary);\n}\n\n.hb-tree__checkbox--checked {\n background-color: var(--hb-color-primary);\n border-color: var(--hb-color-primary);\n}\n\n.hb-tree__checkbox--indeterminate {\n background-color: var(--hb-color-primary);\n border-color: var(--hb-color-primary);\n}\n\n.hb-tree__checkbox--disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n.hb-tree__title {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n user-select: none;\n}\n\n.hb-tree__node-content--selected .hb-tree__title {\n color: var(--hb-color-primary);\n font-weight: 500;\n}\n","import { Component, h, Prop, Event, EventEmitter, State, Element, Watch } from '@stencil/core';\n\nexport interface TreeNode {\n /** 节点唯一标识 */\n key: string;\n /** 节点标题 */\n title: string;\n /** 子节点 */\n children?: TreeNode[];\n /** 是否禁用 */\n disabled?: boolean;\n}\n\n/**\n * Tree 树形组件\n * 文件夹、组织架构、分类导航等层级结构的展示与选择\n */\n@Component({\n tag: 'hb-tree',\n styleUrl: 'tree.css',\n shadow: true,\n})\nexport class Tree {\n @Element() el: HTMLElement;\n\n /**\n * 可选项数据源(递归树结构)\n */\n @Prop() data: TreeNode[] = [];\n\n /**\n * (受控)展开的节点 key 集合\n */\n @Prop({ mutable: true }) expandedKeys: string[] = [];\n\n /**\n * (受控)选中的节点 key 集合\n */\n @Prop({ mutable: true }) selectedKeys: string[] = [];\n\n /**\n * 是否显示 checkbox 复选框\n * @default false\n */\n @Prop() checkable: boolean = false;\n\n /**\n * (受控)勾选的节点 key 集合\n */\n @Prop({ mutable: true }) checkedKeys: string[] = [];\n\n /**\n * 是否默认展开全部节点\n * @default false\n */\n @Prop() defaultExpandAll: boolean = false;\n\n /**\n * 是否显示连接线\n * @default false\n */\n @Prop() showLine: boolean = false;\n\n @State() internalExpanded: string[] | null = null;\n @State() internalSelected: string[] | null = null;\n @State() internalChecked: string[] | null = null;\n\n /**\n * 选中节点变化事件(detail: 选中节点 key 数组)\n */\n @Event() hbSelect: EventEmitter<string[]>;\n\n /**\n * 展开节点变化事件(detail: 展开节点 key 数组)\n */\n @Event() hbExpand: EventEmitter<string[]>;\n\n /**\n * 勾选节点变化事件(detail: 勾选节点 key 数组)\n */\n @Event() hbCheck: EventEmitter<string[]>;\n\n componentWillLoad() {\n if (this.defaultExpandAll) {\n const all: string[] = [];\n this.collectExpandableKeys(this.data, all);\n this.internalExpanded = all;\n }\n }\n\n /**\n * data 变化时,若 defaultExpandAll=true,把所有含 children 的节点 key\n * 合并进 expandedKeys(保留用户已手动展开的节点,不收起任何已展开项)。\n * 解决「先 mount 再赋 data」时 componentWillLoad 基于空数据计算导致不展开的问题。\n */\n @Watch('data')\n handleDataChange() {\n if (!this.defaultExpandAll) {\n return;\n }\n const current = this.getExpandedKeys();\n const merged = [...current];\n this.collectExpandableKeys(this.data, merged);\n // 去重\n const deduped = Array.from(new Set(merged));\n this.internalExpanded = deduped;\n this.expandedKeys = deduped;\n }\n\n @Watch('expandedKeys')\n handleExpandedKeysChange() {\n this.internalExpanded = null;\n }\n\n @Watch('selectedKeys')\n handleSelectedKeysChange() {\n this.internalSelected = null;\n }\n\n @Watch('checkedKeys')\n handleCheckedKeysChange() {\n this.internalChecked = null;\n }\n\n private collectExpandableKeys(nodes: TreeNode[], out: string[]) {\n for (const node of nodes) {\n if (node.children && node.children.length > 0) {\n out.push(node.key);\n this.collectExpandableKeys(node.children, out);\n }\n }\n }\n\n private getExpandedKeys(): string[] {\n return this.internalExpanded !== null ? this.internalExpanded : this.expandedKeys;\n }\n\n private getSelectedKeys(): string[] {\n return this.internalSelected !== null ? this.internalSelected : this.selectedKeys;\n }\n\n private getCheckedKeys(): string[] {\n return this.internalChecked !== null ? this.internalChecked : this.checkedKeys;\n }\n\n private isExpanded = (key: string) => this.getExpandedKeys().includes(key);\n private isSelected = (key: string) => this.getSelectedKeys().includes(key);\n private isChecked = (key: string) => this.getCheckedKeys().includes(key);\n\n private handleToggleExpand = (node: TreeNode, e: Event) => {\n e.stopPropagation();\n if (node.disabled) return;\n const current = [...this.getExpandedKeys()];\n const idx = current.indexOf(node.key);\n if (idx >= 0) {\n current.splice(idx, 1);\n } else {\n current.push(node.key);\n }\n this.internalExpanded = current;\n this.expandedKeys = current;\n this.hbExpand.emit(current);\n };\n\n private handleSelect = (node: TreeNode) => {\n if (node.disabled) return;\n const current = [...this.getSelectedKeys()];\n const idx = current.indexOf(node.key);\n if (idx >= 0) {\n current.splice(idx, 1);\n } else {\n current.push(node.key);\n }\n this.internalSelected = current;\n this.selectedKeys = current;\n this.hbSelect.emit(current);\n };\n\n private handleCheck = (node: TreeNode, e: Event) => {\n e.stopPropagation();\n if (node.disabled) return;\n const current = [...this.getCheckedKeys()];\n const wasChecked = current.includes(node.key);\n\n // 计算本次操作应进入/移出 checkedKeys 的所有 key 集合(含级联)。\n // 不可变:始终基于副本计算,绝不原地修改 current。\n const next = new Set(current);\n if (wasChecked) {\n // 取消:取消自身 + 取消所有后代(含禁用后代,因为它们当时是被父级带选的)。\n this.removeDescendantKeys(node, next);\n next.delete(node.key);\n } else {\n // 勾选:勾选自身 + 勾选所有非禁用后代。\n next.add(node.key);\n this.collectCheckableDescendantKeys(node, next);\n }\n\n // 父子联动自底向上修正祖先:所有非禁用子节点全选 → 父加入 checkedKeys;\n // 子节点部分选/全未选 → 父移出 checkedKeys(部分选体现为 indeterminate,由 detail 暴露)。\n this.reconcileAncestors(node, next);\n\n const result = Array.from(next);\n this.internalChecked = result;\n this.checkedKeys = result;\n this.hbCheck.emit(result);\n };\n\n /**\n * 从集合中移除某节点所有后代 key(含禁用项),用于取消父级时级联取消。\n * 不可变:仅修改传入的 Set 副本,不修改树本身。\n */\n private removeDescendantKeys(node: TreeNode, out: Set<string>) {\n if (!node.children) return;\n for (const child of node.children) {\n out.delete(child.key);\n this.removeDescendantKeys(child, out);\n }\n }\n\n /**\n * 收集某节点所有「可勾选(非禁用)」后代 key,用于勾选父级时级联勾选。\n * 注意:禁用子节点本身不可手动勾选,但若其下还有非禁用后代,仍应被级联勾选。\n */\n private collectCheckableDescendantKeys(node: TreeNode, out: Set<string>) {\n if (!node.children) return;\n for (const child of node.children) {\n if (!child.disabled) {\n out.add(child.key);\n }\n // 无论 child 是否禁用,继续向下寻找可勾选后代。\n this.collectCheckableDescendantKeys(child, out);\n }\n }\n\n /**\n * 自底向上修正 checkedKeys 中某节点的所有祖先勾选状态。\n * 规则:一个祖先节点,当且仅当其所有「非禁用子节点」均被勾选时,自身才被勾选;\n * 否则移出 checkedKeys(部分选情况由 indeterminate 集合在渲染层暴露,不进入 checkedKeys)。\n */\n private reconcileAncestors(node: TreeNode, next: Set<string>) {\n const parents = this.findAncestors(this.data, node.key, []);\n // parents 为从直接父到根的数组;逐层判断。\n for (const parent of parents) {\n if (parent.disabled || !parent.children || parent.children.length === 0) continue;\n const checkableChildren = parent.children.filter((c) => !c.disabled);\n if (checkableChildren.length === 0) continue;\n const allChecked = checkableChildren.every((c) => next.has(c.key));\n if (allChecked) {\n next.add(parent.key);\n } else {\n next.delete(parent.key);\n }\n }\n }\n\n /**\n * 递归查找某 key 的祖先链(不含自身),返回从直接父到根的数组。\n * 找不到返回空数组(key 为根节点或不存在时)。\n */\n private findAncestors(nodes: TreeNode[], key: string, acc: TreeNode[]): TreeNode[] | null {\n for (const node of nodes) {\n if (node.key === key) {\n return acc;\n }\n if (node.children && node.children.length > 0) {\n const found = this.findAncestors(node.children, key, [node, ...acc]);\n if (found) return found;\n }\n }\n return null;\n }\n\n /**\n * 计算当前 checkedKeys 下处于「部分选中(indeterminate)」的节点 key 集合。\n * 一个节点为 indeterminate 当:其本身不在 checkedKeys,但其下(递归)存在被勾选的后代。\n * 用于渲染层暴露三方态(aria-checked=\"mixed\" + class)。\n */\n private computeIndeterminateKeys(): Set<string> {\n const checked = this.getCheckedKeys();\n const result = new Set<string>();\n const walk = (node: TreeNode): { hasCheckedDescendant: boolean } => {\n if (!node.children || node.children.length === 0) {\n return { hasCheckedDescendant: false };\n }\n let hasCheckedDescendant = false;\n for (const child of node.children) {\n const childState = walk(child);\n if (checked.includes(child.key) || childState.hasCheckedDescendant) {\n hasCheckedDescendant = true;\n }\n }\n // 节点本身未勾选,但有被勾选后代 → indeterminate\n if (hasCheckedDescendant && !checked.includes(node.key)) {\n result.add(node.key);\n }\n return { hasCheckedDescendant };\n };\n for (const root of this.data) {\n walk(root);\n }\n return result;\n }\n\n private renderNode = (node: TreeNode, level: number, indeterminateKeys: Set<string>): any => {\n const hasChildren = !!(node.children && node.children.length > 0);\n const expanded = this.isExpanded(node.key);\n const selected = this.isSelected(node.key);\n const checked = this.isChecked(node.key);\n const indeterminate = indeterminateKeys.has(node.key);\n const disabled = !!node.disabled;\n\n return (\n <li\n class={{\n 'hb-tree__node': true,\n 'hb-tree__node--disabled': disabled,\n }}\n role=\"treeitem\"\n aria-level={level + 1}\n aria-expanded={hasChildren ? String(expanded) : undefined}\n aria-selected={selected ? 'true' : 'false'}\n aria-checked={\n this.checkable\n ? indeterminate\n ? 'mixed'\n : checked\n ? 'true'\n : 'false'\n : undefined\n }\n aria-disabled={disabled ? 'true' : undefined}\n tabindex={selected ? 0 : -1}\n >\n <div\n class={{\n 'hb-tree__node-content': true,\n 'hb-tree__node-content--selected': selected,\n }}\n style={{ paddingLeft: `${level * 18 + 8}px` }}\n >\n <span class=\"hb-tree__switcher\" onClick={(e) => hasChildren && this.handleToggleExpand(node, e)}>\n {hasChildren ? (\n <span class={{ 'hb-tree__arrow': true, 'hb-tree__arrow--expanded': expanded }}>▶</span>\n ) : this.showLine ? (\n <span class=\"hb-tree__line-dot\" />\n ) : null}\n </span>\n\n {this.checkable && (\n <span\n class={{\n 'hb-tree__checkbox': true,\n 'hb-tree__checkbox--checked': checked,\n 'hb-tree__checkbox--indeterminate': indeterminate,\n 'hb-tree__checkbox--disabled': disabled,\n }}\n onClick={(e) => this.handleCheck(node, e)}\n >\n {checked ? '✓' : indeterminate ? '–' : ''}\n </span>\n )}\n\n <span class=\"hb-tree__title\" onClick={() => this.handleSelect(node)}>\n {node.title}\n </span>\n </div>\n\n {hasChildren && expanded && (\n <ul class=\"hb-tree__children\" role=\"group\">\n {node.children!.map((child) => this.renderNode(child, level + 1, indeterminateKeys))}\n </ul>\n )}\n </li>\n );\n };\n\n render() {\n const indeterminateKeys = this.checkable ? this.computeIndeterminateKeys() : new Set<string>();\n return (\n <ul class={{ 'hb-tree': true, 'hb-tree--show-line': this.showLine }} role=\"tree\">\n {this.data.map((node) => this.renderNode(node, 0, indeterminateKeys))}\n </ul>\n );\n }\n}\n"],"version":3}
1
+ {"file":"hb-tree.entry.js","mappings":";;AAAA,MAAM,OAAO,GAAG,m1PAAm1P,CAAC;AACp2P,qBAAe,OAAO;;MCqBT,IAAI;;;;;;;;;;;IAMP,IAAI,GAAe,EAAE,CAAC;;;;IAKL,YAAY,GAAa,EAAE,CAAC;;;;IAK5B,YAAY,GAAa,EAAE,CAAC;;;;;IAM7C,SAAS,GAAY,KAAK,CAAC;;;;IAKV,WAAW,GAAa,EAAE,CAAC;;;;;IAM5C,gBAAgB,GAAY,KAAK,CAAC;;;;;IAMlC,QAAQ,GAAY,KAAK,CAAC;IAEzB,gBAAgB,GAAoB,IAAI,CAAC;IACzC,gBAAgB,GAAoB,IAAI,CAAC;IACzC,eAAe,GAAoB,IAAI,CAAC;;;;;;IAMxC,QAAQ,GAAkB,IAAI,CAAC;;;;IAK/B,QAAQ,CAAyB;;;;IAKjC,QAAQ,CAAyB;;;;IAKjC,OAAO,CAAyB;IAEzC,iBAAiB;QACf,IAAI,IAAI,CAAC,gBAAgB,EAAE;YACzB,MAAM,GAAG,GAAa,EAAE,CAAC;YACzB,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,C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AO,GAAG,GAAG,GAAG,aAAa,GAAG,GAAG,GAAG,EAAE,CACpC,CACR,EAED,YAAM,KAAK,EAAC,gBAAgB,EAAC,OAAO,EAAE,MAAM,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAChE,IAAI,CAAC,KAAK,CACN,CACH,EAEL,WAAW,IAAI,QAAQ,KACtB,UAAI,KAAK,EAAC,mBAAmB,EAAC,IAAI,EAAC,OAAO,IACvC,IAAI,CAAC,QAAS,CAAC,GAAG,CAAC,KAAK,IAAI,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAC/E,CACN,CACE,EACL;KACH,CAAC;IAEF,MAAM;QACJ,MAAM,iBAAiB,GAAG,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,wBAAwB,EAAE,GAAG,IAAI,GAAG,EAAU,CAAC;QAC/F,QACE,2DAAI,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,iBAAiB,IAC7H,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,EAAE,iBAAiB,CAAC,CAAC,CAChE,EACL;KACH;;;;;;;;;;;;","names":[],"sources":["src/components/Tree/tree.css?tag=hb-tree&encapsulation=shadow","src/components/Tree/Tree.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.hb-tree {\n list-style: none;\n margin: 0;\n padding: 0;\n font-size: var(--hb-font-size-base);\n color: var(--hb-color-text);\n background-color: var(--hb-color-bg-container);\n box-sizing: border-box;\n}\n\n.hb-tree__children {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.hb-tree__node {\n list-style: none;\n white-space: nowrap;\n}\n\n.hb-tree__node-content {\n display: flex;\n align-items: center;\n gap: var(--hb-spacing-xxs);\n height: 28px;\n padding-right: var(--hb-spacing-xs);\n border-radius: var(--hb-border-radius-sm);\n cursor: pointer;\n transition: background-color var(--hb-transition-duration, 0.2s) var(--hb-transition-function, ease);\n box-sizing: border-box;\n}\n\n.hb-tree__node-content:hover {\n background-color: var(--hb-color-fill-tertiary);\n}\n\n.hb-tree__node-content--selected {\n background-color: var(--hb-color-primary-bg);\n}\n\n.hb-tree__node--disabled > .hb-tree__node-content {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n.hb-tree__node--disabled > .hb-tree__node-content:hover {\n background-color: transparent;\n}\n\n.hb-tree__switcher {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n flex-shrink: 0;\n color: var(--hb-color-text-tertiary);\n}\n\n.hb-tree__arrow {\n font-size: 10px;\n display: inline-block;\n transition: transform var(--hb-transition-duration, 0.2s);\n}\n\n.hb-tree__arrow--expanded {\n transform: rotate(90deg);\n}\n\n.hb-tree--show-line .hb-tree__switcher {\n color: var(--hb-color-border);\n}\n\n.hb-tree__line-dot {\n width: 6px;\n height: 6px;\n border-left: 1px solid var(--hb-color-border);\n border-bottom: 1px solid var(--hb-color-border);\n border-bottom-left-radius: var(--hb-border-radius-sm);\n}\n\n.hb-tree__checkbox {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 16px;\n height: 16px;\n border: 1px solid var(--hb-color-border);\n border-radius: var(--hb-border-radius-xs, 2px);\n background-color: var(--hb-color-bg-container);\n color: #fff;\n font-size: 11px;\n line-height: 1;\n flex-shrink: 0;\n transition: all var(--hb-transition-duration, 0.2s);\n}\n\n.hb-tree__checkbox:hover:not(.hb-tree__checkbox--disabled) {\n border-color: var(--hb-color-primary);\n}\n\n.hb-tree__checkbox--checked {\n background-color: var(--hb-color-primary);\n border-color: var(--hb-color-primary);\n}\n\n.hb-tree__checkbox--indeterminate {\n background-color: var(--hb-color-primary);\n border-color: var(--hb-color-primary);\n}\n\n.hb-tree__checkbox--disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n.hb-tree__title {\n flex: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n user-select: none;\n}\n\n.hb-tree__node-content--selected .hb-tree__title {\n color: var(--hb-color-primary);\n font-weight: 500;\n}\n","import { Component, h, Prop, Event, EventEmitter, State, Element, Watch } from '@stencil/core';\n\nexport interface TreeNode {\n /** 节点唯一标识 */\n key: string;\n /** 节点标题 */\n title: string;\n /** 子节点 */\n children?: TreeNode[];\n /** 是否禁用 */\n disabled?: boolean;\n}\n\n/**\n * Tree 树形组件\n * 文件夹、组织架构、分类导航等层级结构的展示与选择\n */\n@Component({\n tag: 'hb-tree',\n styleUrl: 'tree.css',\n shadow: true,\n})\nexport class Tree {\n @Element() el: HTMLElement;\n\n /**\n * 可选项数据源(递归树结构)\n */\n @Prop() data: TreeNode[] = [];\n\n /**\n * (受控)展开的节点 key 集合\n */\n @Prop({ mutable: true }) expandedKeys: string[] = [];\n\n /**\n * (受控)选中的节点 key 集合\n */\n @Prop({ mutable: true }) selectedKeys: string[] = [];\n\n /**\n * 是否显示 checkbox 复选框\n * @default false\n */\n @Prop() checkable: boolean = false;\n\n /**\n * (受控)勾选的节点 key 集合\n */\n @Prop({ mutable: true }) checkedKeys: string[] = [];\n\n /**\n * 是否默认展开全部节点\n * @default false\n */\n @Prop() defaultExpandAll: boolean = false;\n\n /**\n * 是否显示连接线\n * @default false\n */\n @Prop() showLine: boolean = false;\n\n @State() internalExpanded: string[] | null = null;\n @State() internalSelected: string[] | null = null;\n @State() internalChecked: string[] | null = null;\n /**\n * 键盘焦点节点 key(与 selectedKeys 解耦)。\n * A2:roving tabindex 跟随 focusKey,而非 selectedKeys——否则键盘移动焦点会误改选中态。\n * 默认指向 selectedKeys 末位(首次 Tab 进入时落在选中项)。\n */\n @State() focusKey: string | null = null;\n\n /**\n * 选中节点变化事件(detail: 选中节点 key 数组)\n */\n @Event() hbSelect: EventEmitter<string[]>;\n\n /**\n * 展开节点变化事件(detail: 展开节点 key 数组)\n */\n @Event() hbExpand: EventEmitter<string[]>;\n\n /**\n * 勾选节点变化事件(detail: 勾选节点 key 数组)\n */\n @Event() hbCheck: EventEmitter<string[]>;\n\n componentWillLoad() {\n if (this.defaultExpandAll) {\n const all: string[] = [];\n this.collectExpandableKeys(this.data, all);\n this.internalExpanded = all;\n }\n }\n\n /**\n * data 变化时,若 defaultExpandAll=true,把所有含 children 的节点 key\n * 合并进 expandedKeys(保留用户已手动展开的节点,不收起任何已展开项)。\n * 解决「先 mount 再赋 data」时 componentWillLoad 基于空数据计算导致不展开的问题。\n */\n @Watch('data')\n handleDataChange() {\n if (!this.defaultExpandAll) {\n return;\n }\n const current = this.getExpandedKeys();\n const merged = [...current];\n this.collectExpandableKeys(this.data, merged);\n // 去重\n const deduped = Array.from(new Set(merged));\n this.internalExpanded = deduped;\n this.expandedKeys = deduped;\n }\n\n @Watch('expandedKeys')\n handleExpandedKeysChange() {\n this.internalExpanded = null;\n }\n\n @Watch('selectedKeys')\n handleSelectedKeysChange() {\n this.internalSelected = null;\n }\n\n @Watch('checkedKeys')\n handleCheckedKeysChange() {\n this.internalChecked = null;\n }\n\n private collectExpandableKeys(nodes: TreeNode[], out: string[]) {\n for (const node of nodes) {\n if (node.children && node.children.length > 0) {\n out.push(node.key);\n this.collectExpandableKeys(node.children, out);\n }\n }\n }\n\n private getExpandedKeys(): string[] {\n return this.internalExpanded !== null ? this.internalExpanded : this.expandedKeys;\n }\n\n private getSelectedKeys(): string[] {\n return this.internalSelected !== null ? this.internalSelected : this.selectedKeys;\n }\n\n private getCheckedKeys(): string[] {\n return this.internalChecked !== null ? this.internalChecked : this.checkedKeys;\n }\n\n private isExpanded = (key: string) => this.getExpandedKeys().includes(key);\n private isSelected = (key: string) => this.getSelectedKeys().includes(key);\n private isChecked = (key: string) => this.getCheckedKeys().includes(key);\n\n private handleToggleExpand = (node: TreeNode, e: Event) => {\n e.stopPropagation();\n if (node.disabled) return;\n const current = [...this.getExpandedKeys()];\n const idx = current.indexOf(node.key);\n if (idx >= 0) {\n current.splice(idx, 1);\n } else {\n current.push(node.key);\n }\n this.internalExpanded = current;\n this.expandedKeys = current;\n this.hbExpand.emit(current);\n };\n\n private handleSelect = (node: TreeNode) => {\n if (node.disabled) return;\n const current = [...this.getSelectedKeys()];\n const idx = current.indexOf(node.key);\n if (idx >= 0) {\n current.splice(idx, 1);\n } else {\n current.push(node.key);\n }\n this.internalSelected = current;\n this.selectedKeys = current;\n this.hbSelect.emit(current);\n };\n\n private handleCheck = (node: TreeNode, e: Event) => {\n e.stopPropagation();\n if (node.disabled) return;\n const current = [...this.getCheckedKeys()];\n const wasChecked = current.includes(node.key);\n\n // 计算本次操作应进入/移出 checkedKeys 的所有 key 集合(含级联)。\n // 不可变:始终基于副本计算,绝不原地修改 current。\n const next = new Set(current);\n if (wasChecked) {\n // 取消:取消自身 + 取消所有后代(含禁用后代,因为它们当时是被父级带选的)。\n this.removeDescendantKeys(node, next);\n next.delete(node.key);\n } else {\n // 勾选:勾选自身 + 勾选所有非禁用后代。\n next.add(node.key);\n this.collectCheckableDescendantKeys(node, next);\n }\n\n // 父子联动自底向上修正祖先:所有非禁用子节点全选 → 父加入 checkedKeys;\n // 子节点部分选/全未选 → 父移出 checkedKeys(部分选体现为 indeterminate,由 detail 暴露)。\n this.reconcileAncestors(node, next);\n\n const result = Array.from(next);\n this.internalChecked = result;\n this.checkedKeys = result;\n this.hbCheck.emit(result);\n };\n\n /**\n * 从集合中移除某节点所有后代 key(含禁用项),用于取消父级时级联取消。\n * 不可变:仅修改传入的 Set 副本,不修改树本身。\n */\n private removeDescendantKeys(node: TreeNode, out: Set<string>) {\n if (!node.children) return;\n for (const child of node.children) {\n out.delete(child.key);\n this.removeDescendantKeys(child, out);\n }\n }\n\n /**\n * 收集某节点所有「可勾选(非禁用)」后代 key,用于勾选父级时级联勾选。\n * 注意:禁用子节点本身不可手动勾选,但若其下还有非禁用后代,仍应被级联勾选。\n */\n private collectCheckableDescendantKeys(node: TreeNode, out: Set<string>) {\n if (!node.children) return;\n for (const child of node.children) {\n if (!child.disabled) {\n out.add(child.key);\n }\n // 无论 child 是否禁用,继续向下寻找可勾选后代。\n this.collectCheckableDescendantKeys(child, out);\n }\n }\n\n /**\n * 自底向上修正 checkedKeys 中某节点的所有祖先勾选状态。\n * 规则:一个祖先节点,当且仅当其所有「非禁用子节点」均被勾选时,自身才被勾选;\n * 否则移出 checkedKeys(部分选情况由 indeterminate 集合在渲染层暴露,不进入 checkedKeys)。\n */\n private reconcileAncestors(node: TreeNode, next: Set<string>) {\n const parents = this.findAncestors(this.data, node.key, []);\n // parents 为从直接父到根的数组;逐层判断。\n for (const parent of parents) {\n if (parent.disabled || !parent.children || parent.children.length === 0) continue;\n const checkableChildren = parent.children.filter(c => !c.disabled);\n if (checkableChildren.length === 0) continue;\n const allChecked = checkableChildren.every(c => next.has(c.key));\n if (allChecked) {\n next.add(parent.key);\n } else {\n next.delete(parent.key);\n }\n }\n }\n\n /**\n * 递归查找某 key 的祖先链(不含自身),返回从直接父到根的数组。\n * 找不到返回空数组(key 为根节点或不存在时)。\n */\n private findAncestors(nodes: TreeNode[], key: string, acc: TreeNode[]): TreeNode[] | null {\n for (const node of nodes) {\n if (node.key === key) {\n return acc;\n }\n if (node.children && node.children.length > 0) {\n const found = this.findAncestors(node.children, key, [node, ...acc]);\n if (found) return found;\n }\n }\n return null;\n }\n\n /**\n * 计算当前 checkedKeys 下处于「部分选中(indeterminate)」的节点 key 集合。\n * 一个节点为 indeterminate 当:其本身不在 checkedKeys,但其下(递归)存在被勾选的后代。\n * 用于渲染层暴露三方态(aria-checked=\"mixed\" + class)。\n */\n private computeIndeterminateKeys(): Set<string> {\n const checked = this.getCheckedKeys();\n const result = new Set<string>();\n const walk = (node: TreeNode): { hasCheckedDescendant: boolean } => {\n if (!node.children || node.children.length === 0) {\n return { hasCheckedDescendant: false };\n }\n let hasCheckedDescendant = false;\n for (const child of node.children) {\n const childState = walk(child);\n if (checked.includes(child.key) || childState.hasCheckedDescendant) {\n hasCheckedDescendant = true;\n }\n }\n // 节点本身未勾选,但有被勾选后代 → indeterminate\n if (hasCheckedDescendant && !checked.includes(node.key)) {\n result.add(node.key);\n }\n return { hasCheckedDescendant };\n };\n for (const root of this.data) {\n walk(root);\n }\n return result;\n }\n\n /**\n * 构建当前可见节点的扁平列表(仅含已展开父节点的后代),用于键盘线性导航。\n * 每项记录 { node, level, parentKey },遵循 WAI-ARIA Tree View 模式。\n */\n private getFlattenedVisibleNodes(): { node: TreeNode; level: number; parentKey: string | null }[] {\n const out: { node: TreeNode; level: number; parentKey: string | null }[] = [];\n const walk = (nodes: TreeNode[], level: number, parentKey: string | null) => {\n for (const node of nodes) {\n out.push({ node, level, parentKey });\n if (node.children && node.children.length > 0 && this.isExpanded(node.key)) {\n walk(node.children, level + 1, node.key);\n }\n }\n };\n walk(this.data, 0, null);\n return out;\n }\n\n /**\n * Tree 键盘导航(WAI-ARIA Tree View 模式,A2 修复):\n * - ↑↓:在可见节点间线性移动焦点\n * - →:展开;已展开则进入第一个子节点;叶子节点无操作\n * - ←:折叠;已折叠则移到父节点;根节点无操作\n * - Enter/Space:选中当前焦点节点\n * - Home/End:跳到首个/末个可见节点\n *\n * 焦点管理用 roving tabindex:焦点移到谁,谁就是 selectedKeys(驱动 tabindex=0)。\n */\n private handleTreeKeydown = (e: KeyboardEvent) => {\n const flat = this.getFlattenedVisibleNodes();\n if (flat.length === 0) return;\n const enabled = flat.filter(x => !x.node.disabled);\n if (enabled.length === 0) return;\n\n // 当前焦点索引:优先 focusKey;无则回退到 selectedKeys 末位;再无则首个启用项\n let focusKey: string | null = this.focusKey;\n if (!focusKey) {\n const selected = this.getSelectedKeys();\n focusKey = selected.length > 0 ? selected[selected.length - 1] : null;\n }\n let focusIdx = focusKey ? flat.findIndex(x => x.node.key === focusKey) : -1;\n // 若当前焦点在禁用项上或无焦点,回退到首个启用项\n if (focusIdx < 0 || flat[focusIdx].node.disabled) {\n focusIdx = flat.findIndex(x => !x.node.disabled);\n if (focusIdx < 0) return;\n }\n const enabledFlatIndices = flat\n .map((x, i) => ({ x, i }))\n .filter(o => !o.x.node.disabled)\n .map(o => o.i);\n const posInEnabled = enabledFlatIndices.indexOf(focusIdx);\n\n const current = flat[focusIdx];\n const isLeaf = !(current.node.children && current.node.children.length > 0);\n const expanded = !isLeaf && this.isExpanded(current.node.key);\n\n switch (e.key) {\n case 'ArrowDown': {\n e.preventDefault();\n const nextPos = (posInEnabled + 1) % enabledFlatIndices.length;\n this.focusNode(flat[enabledFlatIndices[nextPos]].node);\n break;\n }\n case 'ArrowUp': {\n e.preventDefault();\n const prevPos = (posInEnabled - 1 + enabledFlatIndices.length) % enabledFlatIndices.length;\n this.focusNode(flat[enabledFlatIndices[prevPos]].node);\n break;\n }\n case 'ArrowRight': {\n e.preventDefault();\n if (isLeaf) return;\n if (!expanded) {\n // 展开\n this.handleToggleExpand(current.node, { stopPropagation: () => {} } as unknown as Event);\n } else {\n // 已展开 → 进入第一个非禁用子节点\n const firstChildIdx = flat.findIndex((x, i) => i > focusIdx && x.parentKey === current.node.key && !x.node.disabled);\n if (firstChildIdx >= 0) this.focusNode(flat[firstChildIdx].node);\n }\n break;\n }\n case 'ArrowLeft': {\n e.preventDefault();\n if (!isLeaf && expanded) {\n // 折叠\n this.handleToggleExpand(current.node, { stopPropagation: () => {} } as unknown as Event);\n } else if (current.parentKey) {\n // 已折叠/叶子 → 移到父节点\n const parentIdx = flat.findIndex(x => x.node.key === current.parentKey);\n if (parentIdx >= 0 && !flat[parentIdx].node.disabled) this.focusNode(flat[parentIdx].node);\n }\n break;\n }\n case 'Home': {\n e.preventDefault();\n this.focusNode(flat[enabledFlatIndices[0]].node);\n break;\n }\n case 'End': {\n e.preventDefault();\n this.focusNode(flat[enabledFlatIndices[enabledFlatIndices.length - 1]].node);\n break;\n }\n case 'Enter':\n case ' ':\n case 'Spacebar': {\n e.preventDefault();\n this.handleSelect(current.node);\n break;\n }\n default:\n return;\n }\n };\n\n /** 把键盘焦点移到 node:仅更新 focusKey(驱动 roving tabindex),不改选中态。 */\n private focusNode(node: TreeNode) {\n this.focusKey = node.key;\n // 真实 DOM 聚焦(render 后 tabindex=0 会落到该节点)\n requestAnimationFrame(() => {\n const el = this.el.shadowRoot?.querySelector(`[data-tree-key=\"${node.key}\"]`);\n (el as HTMLElement | null)?.focus();\n });\n }\n\n private renderNode = (node: TreeNode, level: number, indeterminateKeys: Set<string>): any => {\n const hasChildren = !!(node.children && node.children.length > 0);\n const expanded = this.isExpanded(node.key);\n const selected = this.isSelected(node.key);\n const checked = this.isChecked(node.key);\n const indeterminate = indeterminateKeys.has(node.key);\n const disabled = !!node.disabled;\n // roving tabindex:键盘焦点节点 tabindex=0;无键盘焦点时回退到选中项(首次 Tab 进入)\n const selectedKeys = this.getSelectedKeys();\n const fallbackFocus = selectedKeys.length > 0 ? selectedKeys[selectedKeys.length - 1] : null;\n const effectiveFocus = this.focusKey ?? fallbackFocus;\n const isFocused = effectiveFocus === node.key;\n\n return (\n <li\n class={{\n 'hb-tree__node': true,\n 'hb-tree__node--disabled': disabled,\n }}\n data-tree-key={node.key}\n role=\"treeitem\"\n aria-level={level + 1}\n aria-expanded={hasChildren ? String(expanded) : undefined}\n aria-selected={selected ? 'true' : 'false'}\n aria-checked={this.checkable ? (indeterminate ? 'mixed' : checked ? 'true' : 'false') : undefined}\n aria-disabled={disabled ? 'true' : undefined}\n tabindex={isFocused ? 0 : -1}\n >\n <div\n class={{\n 'hb-tree__node-content': true,\n 'hb-tree__node-content--selected': selected,\n }}\n style={{ paddingLeft: `${level * 18 + 8}px` }}\n >\n <span class=\"hb-tree__switcher\" onClick={e => hasChildren && this.handleToggleExpand(node, e)}>\n {hasChildren ? <span class={{ 'hb-tree__arrow': true, 'hb-tree__arrow--expanded': expanded }}>▶</span> : this.showLine ? <span class=\"hb-tree__line-dot\" /> : null}\n </span>\n\n {this.checkable && (\n <span\n class={{\n 'hb-tree__checkbox': true,\n 'hb-tree__checkbox--checked': checked,\n 'hb-tree__checkbox--indeterminate': indeterminate,\n 'hb-tree__checkbox--disabled': disabled,\n }}\n onClick={e => this.handleCheck(node, e)}\n >\n {checked ? '✓' : indeterminate ? '–' : ''}\n </span>\n )}\n\n <span class=\"hb-tree__title\" onClick={() => this.handleSelect(node)}>\n {node.title}\n </span>\n </div>\n\n {hasChildren && expanded && (\n <ul class=\"hb-tree__children\" role=\"group\">\n {node.children!.map(child => this.renderNode(child, level + 1, indeterminateKeys))}\n </ul>\n )}\n </li>\n );\n };\n\n render() {\n const indeterminateKeys = this.checkable ? this.computeIndeterminateKeys() : new Set<string>();\n return (\n <ul class={{ 'hb-tree': true, 'hb-tree--show-line': this.showLine }} role=\"tree\" tabindex={-1} onKeyDown={this.handleTreeKeydown}>\n {this.data.map(node => this.renderNode(node, 0, indeterminateKeys))}\n </ul>\n );\n }\n}\n"],"version":3}
@@ -22,30 +22,38 @@ const Watermark = class {
22
22
  fontColor = 'rgba(0,0,0,0.15)';
23
23
  /** 字号 */
24
24
  fontSize = 14;
25
- get backgroundImage() {
25
+ /**
26
+ * P6:SVG data-URI 缓存。仅当依赖 props 变化时重算(escapeXml + encodeURIComponent 较重)。
27
+ * 修复前是 getter,每次 render 重编,父组件频繁重渲染时浪费明显。
28
+ */
29
+ _bgImageCache = null;
30
+ _bgImageKey = '';
31
+ getBackgroundImage() {
32
+ const key = `${this.content}|${this.width}|${this.height}|${this.gap}|${this.rotate}|${this.fontColor}|${this.fontSize}`;
33
+ if (this._bgImageCache !== null && this._bgImageKey === key) {
34
+ return this._bgImageCache;
35
+ }
26
36
  const { width, height, content, fontColor, fontSize, rotate } = this;
27
37
  const safeText = this.escapeXml(content || '');
28
38
  const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}" viewBox="0 0 ${width} ${height}"><text x="50%" y="50%" dy="${fontSize / 4}" text-anchor="middle" fill="${fontColor}" font-size="${fontSize}" font-family="sans-serif" transform="rotate(${rotate} ${width / 2} ${height / 2})">${safeText}</text></svg>`;
29
- return `url("data:image/svg+xml;utf8,${encodeURIComponent(svg)}")`;
39
+ const result = `url("data:image/svg+xml;utf8,${encodeURIComponent(svg)}")`;
40
+ this._bgImageCache = result;
41
+ this._bgImageKey = key;
42
+ return result;
30
43
  }
31
44
  escapeXml(input) {
32
- return input
33
- .replace(/&/g, '&amp;')
34
- .replace(/</g, '&lt;')
35
- .replace(/>/g, '&gt;')
36
- .replace(/"/g, '&quot;')
37
- .replace(/'/g, '&apos;');
45
+ return input.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&apos;');
38
46
  }
39
47
  get layerStyle() {
40
- const { backgroundImage, width, height, gap } = this;
48
+ const { width, height, gap } = this;
41
49
  return {
42
- backgroundImage,
50
+ backgroundImage: this.getBackgroundImage(),
43
51
  backgroundRepeat: 'repeat',
44
52
  backgroundSize: `${width + gap}px ${height + gap}px`,
45
53
  };
46
54
  }
47
55
  render() {
48
- return (h("div", { key: 'f87f4534f042780b2d9845d2433aaca2089dd123', class: "hb-watermark" }, h("div", { key: '15da20909c1eff4f2d2aa2d582e3e575e38839df', class: "hb-watermark__content" }, h("slot", { key: '44db3f4ae92cd8f19ddfb4fbd79962fc71dad1d6' })), h("div", { key: '15c1b61915ab1e6429503f19e93cc7631221a03a', class: "hb-watermark__layer", style: this.layerStyle, "aria-hidden": "true" })));
56
+ return (h("div", { key: '1d4bcad1db81f2b2787726fe643c7f4dc519786f', class: "hb-watermark" }, h("div", { key: '07ab80f66ba3347224f71dd7efc6f21e21511109', class: "hb-watermark__content" }, h("slot", { key: '69cf1f3a3bbd71e65ec84a3e4f5ba0d8317b627a' })), h("div", { key: '8f19e58740f4d181be67b5c1582581612634f57e', class: "hb-watermark__layer", style: this.layerStyle, "aria-hidden": "true" })));
49
57
  }
50
58
  };
51
59
  Watermark.style = HbWatermarkStyle0;
@@ -1 +1 @@
1
- {"file":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,gBAAgB,EAAE,QAAQ;YAC1B,cAAc,EAAE,GAAG,KAAK,GAAG,GAAG,MAAM,MAAM,GAAG,GAAG,IAAI;SACrD,CAAC;KACH;IAED,MAAM;QACJ,QACE,4DAAK,KAAK,EAAC,cAAc,IACvB,4DAAK,KAAK,EAAC,uBAAuB,IAChC,8DAAQ,CACJ,EACN,4DAAK,KAAK,EAAC,qBAAqB,EAAC,KAAK,EAAE,IAAI,CAAC,UAAU,iBAAc,MAAM,GAAO,CAC9E,EACN;KACH;;;;;;","names":[],"sources":["src/components/Watermark/watermark.css?tag=hb-watermark&encapsulation=shadow","src/components/Watermark/Watermark.tsx"],"sourcesContent":[":host {\n position: relative;\n display: block;\n}\n\n.hb-watermark {\n position: relative;\n display: block;\n width: 100%;\n}\n\n.hb-watermark__content {\n position: relative;\n z-index: 1;\n}\n\n.hb-watermark__layer {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 9;\n pointer-events: none;\n background-position: 0 0;\n}\n","import { Component, h, Prop, Element } from '@stencil/core';\n\n/**\n * Watermark 水印组件\n * 在内容之上平铺一层文字水印,常用于版权/防泄密标识\n */\n@Component({\n tag: 'hb-watermark',\n styleUrl: 'watermark.css',\n shadow: true,\n})\nexport class Watermark {\n @Element() host!: HTMLElement;\n\n /** 水印文字 */\n @Prop() content: string = '';\n\n /** 单个水印单元宽度 */\n @Prop() width: number = 120;\n\n /** 单个水印单元高度 */\n @Prop() height: number = 120;\n\n /** 水印单元之间的间距 */\n @Prop() gap: number = 8;\n\n /** 旋转角度 */\n @Prop() rotate: number = -22;\n\n /** 字体颜色 */\n @Prop() fontColor: string = 'rgba(0,0,0,0.15)';\n\n /** 字号 */\n @Prop() fontSize: number = 14;\n\n private get backgroundImage(): string {\n const { width, height, content, fontColor, fontSize, rotate } = this;\n const safeText = this.escapeXml(content || '');\n const svg = `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${width}\" height=\"${height}\" viewBox=\"0 0 ${width} ${height}\"><text x=\"50%\" y=\"50%\" dy=\"${fontSize / 4}\" text-anchor=\"middle\" fill=\"${fontColor}\" font-size=\"${fontSize}\" font-family=\"sans-serif\" transform=\"rotate(${rotate} ${width / 2} ${height / 2})\">${safeText}</text></svg>`;\n return `url(\"data:image/svg+xml;utf8,${encodeURIComponent(svg)}\")`;\n }\n\n private escapeXml(input: string): string {\n return input\n .replace(/&/g, '&amp;')\n .replace(/</g, '&lt;')\n .replace(/>/g, '&gt;')\n .replace(/\"/g, '&quot;')\n .replace(/'/g, '&apos;');\n }\n\n private get layerStyle(): Record<string, string> {\n const { backgroundImage, width, height, gap } = this;\n return {\n backgroundImage,\n backgroundRepeat: 'repeat',\n backgroundSize: `${width + gap}px ${height + gap}px`,\n };\n }\n\n render() {\n return (\n <div class=\"hb-watermark\">\n <div class=\"hb-watermark__content\">\n <slot />\n </div>\n <div class=\"hb-watermark__layer\" style={this.layerStyle} aria-hidden=\"true\"></div>\n </div>\n );\n }\n}\n"],"version":3}
1
+ {"file":"hb-watermark.entry.js","mappings":";;AAAA,MAAM,YAAY,GAAG,+zMAA+zM,CAAC;AACr1M,0BAAe,YAAY;;MCUd,SAAS;;;;;;IAIZ,OAAO,GAAW,EAAE,CAAC;;IAGrB,KAAK,GAAW,GAAG,CAAC;;IAGpB,MAAM,GAAW,GAAG,CAAC;;IAGrB,GAAG,GAAW,CAAC,CAAC;;IAGhB,MAAM,GAAW,CAAC,EAAE,CAAC;;IAGrB,SAAS,GAAW,kBAAkB,CAAC;;IAGvC,QAAQ,GAAW,EAAE,CAAC;;;;;IAMtB,aAAa,GAAkB,IAAI,CAAC;IACpC,WAAW,GAAW,EAAE,CAAC;IACzB,kBAAkB;QACxB,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,SAAS,IAAI,IAAI,CAA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,MAAM,MAAM,GAAG,GAAG,IAAI;SACrD,CAAC;KACH;IAED,MAAM;QACJ,QACE,4DAAK,KAAK,EAAC,cAAc,IACvB,4DAAK,KAAK,EAAC,uBAAuB,IAChC,8DAAQ,CACJ,EACN,4DAAK,KAAK,EAAC,qBAAqB,EAAC,KAAK,EAAE,IAAI,CAAC,UAAU,iBAAc,MAAM,GAAO,CAC9E,EACN;KACH;;;;;;","names":[],"sources":["src/components/Watermark/watermark.css?tag=hb-watermark&encapsulation=shadow","src/components/Watermark/Watermark.tsx"],"sourcesContent":[":host {\n position: relative;\n display: block;\n}\n\n.hb-watermark {\n position: relative;\n display: block;\n width: 100%;\n}\n\n.hb-watermark__content {\n position: relative;\n z-index: 1;\n}\n\n.hb-watermark__layer {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 9;\n pointer-events: none;\n background-position: 0 0;\n}\n","import { Component, h, Prop, Element } from '@stencil/core';\n\n/**\n * Watermark 水印组件\n * 在内容之上平铺一层文字水印,常用于版权/防泄密标识\n */\n@Component({\n tag: 'hb-watermark',\n styleUrl: 'watermark.css',\n shadow: true,\n})\nexport class Watermark {\n @Element() host!: HTMLElement;\n\n /** 水印文字 */\n @Prop() content: string = '';\n\n /** 单个水印单元宽度 */\n @Prop() width: number = 120;\n\n /** 单个水印单元高度 */\n @Prop() height: number = 120;\n\n /** 水印单元之间的间距 */\n @Prop() gap: number = 8;\n\n /** 旋转角度 */\n @Prop() rotate: number = -22;\n\n /** 字体颜色 */\n @Prop() fontColor: string = 'rgba(0,0,0,0.15)';\n\n /** 字号 */\n @Prop() fontSize: number = 14;\n\n /**\n * P6:SVG data-URI 缓存。仅当依赖 props 变化时重算(escapeXml + encodeURIComponent 较重)。\n * 修复前是 getter,每次 render 重编,父组件频繁重渲染时浪费明显。\n */\n private _bgImageCache: string | null = null;\n private _bgImageKey: string = '';\n private getBackgroundImage(): string {\n const key = `${this.content}|${this.width}|${this.height}|${this.gap}|${this.rotate}|${this.fontColor}|${this.fontSize}`;\n if (this._bgImageCache !== null && this._bgImageKey === key) {\n return this._bgImageCache;\n }\n const { width, height, content, fontColor, fontSize, rotate } = this;\n const safeText = this.escapeXml(content || '');\n const svg = `<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"${width}\" height=\"${height}\" viewBox=\"0 0 ${width} ${height}\"><text x=\"50%\" y=\"50%\" dy=\"${fontSize / 4}\" text-anchor=\"middle\" fill=\"${fontColor}\" font-size=\"${fontSize}\" font-family=\"sans-serif\" transform=\"rotate(${rotate} ${width / 2} ${height / 2})\">${safeText}</text></svg>`;\n const result = `url(\"data:image/svg+xml;utf8,${encodeURIComponent(svg)}\")`;\n this._bgImageCache = result;\n this._bgImageKey = key;\n return result;\n }\n\n private escapeXml(input: string): string {\n return input.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\"/g, '&quot;').replace(/'/g, '&apos;');\n }\n\n private get layerStyle(): Record<string, string> {\n const { width, height, gap } = this;\n return {\n backgroundImage: this.getBackgroundImage(),\n backgroundRepeat: 'repeat',\n backgroundSize: `${width + gap}px ${height + gap}px`,\n };\n }\n\n render() {\n return (\n <div class=\"hb-watermark\">\n <div class=\"hb-watermark__content\">\n <slot />\n </div>\n <div class=\"hb-watermark__layer\" style={this.layerStyle} aria-hidden=\"true\"></div>\n </div>\n );\n }\n}\n"],"version":3}
@@ -16,7 +16,7 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy(JSON.parse("[[\"hb-steps\",[[1,\"hb-steps\",{\"active\":[2],\"processStatus\":[1,\"process-status\"],\"alignCenter\":[4,\"align-center\"],\"direction\":[1],\"steps\":[32]}]]],[\"hb-affix\",[[1,\"hb-affix\",{\"top\":[2],\"bottom\":[2],\"target\":[1],\"affixed\":[32]},[[0,\"hbTestScroll\",\"onTestScroll\"]]]]],[\"hb-alert\",[[1,\"hb-alert\",{\"title\":[1],\"description\":[1],\"type\":[1],\"closable\":[4],\"showIcon\":[4,\"show-icon\"],\"center\":[4],\"closed\":[32]}]]],[\"hb-anchor\",[[1,\"hb-anchor\",{\"items\":[16],\"top\":[2],\"affix\":[4],\"activeKey\":[32]}]]],[\"hb-aside\",[[1,\"hb-aside\",{\"width\":[1]}]]],[\"hb-avatar\",[[1,\"hb-avatar\",{\"size\":[8],\"shape\":[1],\"src\":[1],\"icon\":[1],\"alt\":[1]}]]],[\"hb-backtop\",[[1,\"hb-backtop\",{\"visibilityHeight\":[2,\"visibility-height\"],\"target\":[1],\"right\":[2],\"bottom\":[2],\"visible\":[32],\"backToTop\":[64]},[[9,\"scroll\",\"onWindowScroll\"]]]]],[\"hb-badge\",[[1,\"hb-badge\",{\"value\":[8],\"max\":[2],\"isDot\":[4,\"is-dot\"],\"hidden\":[4],\"type\":[1]}]]],[\"hb-breadcrumb\",[[1,\"hb-breadcrumb\",{\"separator\":[1]}]]],[\"hb-breadcrumb-item\",[[1,\"hb-breadcrumb-item\",{\"href\":[1]}]]],[\"hb-button\",[[1,\"hb-button\",{\"type\":[1],\"size\":[1],\"classNames\":[1,\"class-names\"],\"disabled\":[4],\"loading\":[4]}]]],[\"hb-calendar\",[[1,\"hb-calendar\",{\"modelValue\":[1025,\"model-value\"],\"firstDayOfWeek\":[2,\"first-day-of-week\"],\"disabledDate\":[16],\"viewDate\":[32],\"selectedDate\":[32],\"focusDate\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-card\",[[1,\"hb-card\",{\"header\":[1],\"shadow\":[1]}]]],[\"hb-carousel\",[[1,\"hb-carousel\",{\"current\":[1026],\"autoplay\":[4],\"interval\":[2],\"arrow\":[1],\"dots\":[4],\"loop\":[4],\"slideCount\":[32],\"isHover\":[32]},null,{\"autoplay\":[\"handleAutoplayOptionsChange\"],\"interval\":[\"handleAutoplayOptionsChange\"],\"current\":[\"handleCurrentChange\"]}]]],[\"hb-cascader\",[[1,\"hb-cascader\",{\"modelValue\":[1040],\"options\":[16],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"showAllLevels\":[4,\"show-all-levels\"],\"name\":[1],\"inputId\":[1,\"input-id\"],\"separator\":[1],\"emitPath\":[4,\"emit-path\"],\"filterable\":[4],\"lazy\":[4],\"load\":[16],\"multiple\":[4],\"checkStrictly\":[4,\"check-strictly\"],\"maxTagCount\":[2,\"max-tag-count\"],\"isOpen\":[32],\"inputValue\":[32],\"searchValue\":[32],\"loadingKeys\":[32],\"filteredPaths\":[32],\"activePath\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-checkbox\",[[1,\"hb-checkbox\",{\"modelValue\":[1028,\"model-value\"],\"value\":[8],\"disabled\":[4],\"checked\":[4],\"indeterminate\":[4],\"name\":[1],\"checkboxId\":[1,\"checkbox-id\"],\"label\":[1],\"border\":[4],\"size\":[1],\"isChecked\":[32]},null,{\"modelValue\":[\"handleValueChange\"],\"checked\":[\"handleValueChange\"],\"value\":[\"handleValueChange\"]}]]],[\"hb-checkbox-group\",[[1,\"hb-checkbox-group\",{\"modelValue\":[1040],\"disabled\":[4],\"size\":[1],\"border\":[4],\"min\":[2],\"max\":[2],\"checkboxes\":[32]},null,{\"modelValue\":[\"handleValueChange\"],\"disabled\":[\"handlePropsChange\"],\"size\":[\"handlePropsChange\"],\"border\":[\"handlePropsChange\"]}]]],[\"hb-collapse\",[[1,\"hb-collapse\",{\"accordion\":[1028]}]]],[\"hb-collapse-item\",[[1,\"hb-collapse-item\",{\"key\":[1],\"title\":[1],\"disabled\":[4],\"active\":[1028],\"isOpen\":[32]},null,{\"active\":[\"handleActiveChange\"]}]]],[\"hb-color-picker\",[[1,\"hb-color-picker\",{\"modelValue\":[1025,\"model-value\"],\"disabled\":[4],\"colorFormat\":[1,\"color-format\"],\"showAlpha\":[4,\"show-alpha\"],\"predefine\":[16],\"isOpen\":[32],\"currentColor\":[32],\"hue\":[32],\"saturation\":[32],\"value\":[32],\"alpha\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-color-picker-panel\",[[1,\"hb-color-picker-panel\",{\"modelValue\":[1025,\"model-value\"],\"colorFormat\":[1,\"color-format\"],\"showAlpha\":[4,\"show-alpha\"],\"predefine\":[16],\"currentColor\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-config-provider\",[[4,\"hb-config-provider\",{\"theme\":[1],\"size\":[1],\"locale\":[1]}]]],[\"hb-container\",[[1,\"hb-container\",{\"direction\":[1]}]]],[\"hb-date-picker\",[[1,\"hb-date-picker\",{\"modelValue\":[1025,\"model-value\"],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"format\":[1],\"valueFormat\":[1,\"value-format\"],\"type\":[1],\"disabledDate\":[16],\"name\":[1],\"inputId\":[1,\"input-id\"],\"isOpen\":[32],\"inputValue\":[32],\"selectedDate\":[32],\"panelViewDate\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-date-picker-pane\",[[1,\"hb-date-picker-pane\",{\"modelValue\":[1025,\"model-value\"],\"format\":[1],\"view\":[1025],\"selectedDate\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-date-range-picker\",[[1,\"hb-date-range-picker\",{\"modelValue\":[1040],\"placeholder\":[16],\"disabled\":[4],\"clearable\":[4],\"size\":[1],\"format\":[1],\"disabledDate\":[16],\"name\":[1],\"isOpen\":[32],\"leftViewDate\":[32],\"startDate\":[32],\"endDate\":[32],\"pickingEnd\":[32],\"hoverDate\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-date-time-picker\",[[1,\"hb-date-time-picker\",{\"modelValue\":[1025,\"model-value\"],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"format\":[1],\"name\":[1],\"inputId\":[1,\"input-id\"],\"isOpen\":[32],\"inputValue\":[32],\"selectedDate\":[32],\"currentView\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-descriptions\",[[1,\"hb-descriptions\",{\"title\":[1],\"border\":[4],\"column\":[2],\"colon\":[4],\"items\":[16]}]]],[\"hb-dialog\",[[1,\"hb-dialog\",{\"modelValue\":[1028,\"model-value\"],\"title\":[1],\"width\":[1],\"fullscreen\":[4],\"modal\":[4],\"closeOnClickModal\":[4,\"close-on-click-modal\"],\"closeOnPressEscape\":[4,\"close-on-press-escape\"],\"showClose\":[4,\"show-close\"],\"destroyOnClose\":[4,\"destroy-on-close\"]},null,{\"modelValue\":[\"handleVisibleChange\"]}]]],[\"hb-divider\",[[1,\"hb-divider\",{\"direction\":[1],\"contentPosition\":[1,\"content-position\"],\"dashed\":[4]}]]],[\"hb-drawer\",[[1,\"hb-drawer\",{\"modelValue\":[1028,\"model-value\"],\"title\":[1],\"size\":[1],\"direction\":[1],\"closeOnClickModal\":[4,\"close-on-click-modal\"],\"showClose\":[4,\"show-close\"],\"modal\":[4],\"closeOnPressEscape\":[4,\"close-on-press-escape\"],\"zIndexState\":[32]},null,{\"modelValue\":[\"handleVisible\"]}]]],[\"hb-dropdown\",[[1,\"hb-dropdown\",{\"items\":[16],\"trigger\":[1],\"disabled\":[4],\"isOpen\":[32],\"activeIndex\":[32]}]]],[\"hb-empty\",[[1,\"hb-empty\",{\"description\":[1],\"image\":[1]}]]],[\"hb-float-button\",[[1,\"hb-float-button\",{\"type\":[1],\"shape\":[1],\"icon\":[1],\"description\":[1],\"right\":[2],\"bottom\":[2],\"badge\":[8]}]]],[\"hb-footer\",[[1,\"hb-footer\",{\"height\":[1]}]]],[\"hb-form\",[[1,\"hb-form\",{\"model\":[16],\"rules\":[16],\"labelPosition\":[1,\"label-position\"],\"labelWidth\":[1,\"label-width\"],\"inline\":[4],\"size\":[1],\"disabled\":[4],\"validate\":[16],\"resetFields\":[16],\"fields\":[32]}]]],[\"hb-form-item\",[[1,\"hb-form-item\",{\"prop\":[1],\"label\":[1],\"labelWidth\":[1,\"label-width\"],\"required\":[4],\"rules\":[16],\"size\":[1],\"validate\":[16],\"resetValue\":[16],\"getValue\":[16],\"errors\":[32],\"isvalidating\":[32]}]]],[\"hb-header\",[[1,\"hb-header\",{\"height\":[1]}]]],[\"hb-image\",[[1,\"hb-image\",{\"src\":[1],\"alt\":[1],\"width\":[1],\"height\":[1],\"fit\":[1],\"lazy\":[4],\"preview\":[4],\"radius\":[1],\"loaded\":[32],\"error\":[32],\"previewVisible\":[32]}]]],[\"hb-image-preview\",[[1,\"hb-image-preview\",{\"modelValue\":[1028,\"model-value\"],\"src\":[1],\"srcList\":[16],\"current\":[1026],\"zoomStep\":[2,\"zoom-step\"],\"minZoom\":[2,\"min-zoom\"],\"maxZoom\":[2,\"max-zoom\"],\"zoom\":[32],\"rotate\":[32]},null,{\"modelValue\":[\"handleVisibleChange\"],\"current\":[\"handleCurrentChange\"]}]]],[\"hb-input\",[[1,\"hb-input\",{\"modelValue\":[1025,\"model-value\"],\"type\":[1],\"size\":[1],\"disabled\":[4],\"readonly\":[4],\"placeholder\":[1],\"clearable\":[4],\"showPassword\":[4,\"show-password\"],\"showWordLimit\":[4,\"show-word-limit\"],\"maxlength\":[2],\"minlength\":[2],\"name\":[1],\"inputId\":[1,\"input-id\"],\"autocomplete\":[1],\"autofocus\":[4],\"prefixIcon\":[1,\"prefix-icon\"],\"suffixIcon\":[1,\"suffix-icon\"],\"rows\":[2],\"autosize\":[4],\"resize\":[1],\"isFocused\":[32],\"showClear\":[32],\"passwordVisible\":[32],\"inputValue\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-input-number\",[[1,\"hb-input-number\",{\"modelValue\":[1026,\"model-value\"],\"size\":[1],\"disabled\":[4],\"readonly\":[4],\"min\":[2],\"max\":[2],\"step\":[2],\"precision\":[2],\"stepStrictly\":[4,\"step-strictly\"],\"controls\":[4],\"controlsPosition\":[1,\"controls-position\"],\"name\":[1],\"inputId\":[1,\"input-id\"],\"placeholder\":[1],\"currentValue\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-input-tag\",[[1,\"hb-input-tag\",{\"modelValue\":[1040],\"size\":[1],\"disabled\":[4],\"placeholder\":[1],\"maxlength\":[2],\"max\":[2],\"clearable\":[4],\"width\":[1],\"type\":[1],\"closable\":[4],\"inputVisible\":[4,\"input-visible\"],\"inputValue\":[32],\"isFocused\":[32]}]]],[\"hb-layout\",[[1,\"hb-layout\",{\"span\":[2],\"offset\":[2],\"push\":[2],\"pull\":[2],\"xs\":[2],\"sm\":[2],\"md\":[2],\"lg\":[2],\"xl\":[2]}]]],[\"hb-link\",[[1,\"hb-link\",{\"type\":[1],\"underline\":[4],\"disabled\":[4],\"href\":[1],\"target\":[1],\"icon\":[1]}]]],[\"hb-loading\",[[1,\"hb-loading\",{\"size\":[1],\"text\":[1],\"fullscreen\":[4]}]]],[\"hb-main\",[[1,\"hb-main\"]]],[\"hb-menu\",[[1,\"hb-menu\",{\"mode\":[1],\"defaultActive\":[1025,\"default-active\"],\"collapsed\":[4],\"backgroundColor\":[1,\"background-color\"],\"textColor\":[1,\"text-color\"],\"activeTextColor\":[1,\"active-text-color\"],\"activeItem\":[32]},[[0,\"hbMenuItemSelect\",\"handleSelect\"]],{\"defaultActive\":[\"handleDefaultActiveChange\"],\"collapsed\":[\"handleCollapsedChange\"]}]]],[\"hb-menu-item\",[[1,\"hb-menu-item\",{\"key\":[1],\"disabled\":[4],\"icon\":[1],\"active\":[4]}]]],[\"hb-message\",[[1,\"hb-message\",{\"message\":[1],\"type\":[1],\"closable\":[4],\"duration\":[2],\"visible\":[32]}]]],[\"hb-notification\",[[1,\"hb-notification\",{\"id\":[1],\"type\":[1],\"title\":[1],\"message\":[1],\"duration\":[2],\"position\":[1],\"showClose\":[4,\"show-close\"],\"visible\":[1028]}]]],[\"hb-page-header\",[[1,\"hb-page-header\",{\"title\":[1],\"subtitle\":[1],\"back\":[4],\"ghost\":[4]}]]],[\"hb-pagination\",[[1,\"hb-pagination\",{\"total\":[2],\"pageSize\":[2,\"page-size\"],\"currentPage\":[1026,\"current-page\"],\"pageSizes\":[16],\"pagerCount\":[2,\"pager-count\"],\"disabled\":[4],\"showTotal\":[4,\"show-total\"],\"showPageSize\":[4,\"show-page-size\"],\"internalCurrent\":[32],\"internalPageSize\":[32]},null,{\"currentPage\":[\"handleCurrentPageChange\"],\"pageSize\":[\"handlePageSizeChange\"]}]]],[\"hb-popconfirm\",[[1,\"hb-popconfirm\",{\"title\":[1],\"confirmButtonText\":[1,\"confirm-button-text\"],\"cancelButtonText\":[1,\"cancel-button-text\"],\"placement\":[1],\"disabled\":[4],\"icon\":[1],\"visible\":[32],\"popupStyle\":[32]}]]],[\"hb-popover\",[[1,\"hb-popover\",{\"title\":[1],\"width\":[1],\"placement\":[1],\"trigger\":[1],\"disabled\":[4],\"visible\":[32],\"popupStyle\":[32]}]]],[\"hb-progress\",[[1,\"hb-progress\",{\"percentage\":[2],\"status\":[1],\"strokeWidth\":[2,\"stroke-width\"],\"showText\":[4,\"show-text\"],\"color\":[1]}]]],[\"hb-radio\",[[1,\"hb-radio\",{\"modelValue\":[1032,\"model-value\"],\"value\":[8],\"disabled\":[4],\"checked\":[4],\"name\":[1],\"radioId\":[1,\"radio-id\"],\"label\":[1],\"border\":[4],\"size\":[1],\"isChecked\":[32]},null,{\"modelValue\":[\"handleValueChange\"],\"checked\":[\"handleValueChange\"],\"value\":[\"handleValueChange\"]}]]],[\"hb-rate\",[[1,\"hb-rate\",{\"modelValue\":[1026,\"model-value\"],\"max\":[2],\"disabled\":[4],\"allowHalf\":[4,\"allow-half\"],\"readonly\":[4],\"showScore\":[4,\"show-score\"],\"showText\":[4,\"show-text\"],\"texts\":[16],\"scoreTemplate\":[1,\"score-template\"],\"hoverValue\":[32],\"currentValue\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-result\",[[1,\"hb-result\",{\"status\":[1],\"title\":[1],\"subTitle\":[1,\"sub-title\"],\"icon\":[1]}]]],[\"hb-row\",[[1,\"hb-row\",{\"gutter\":[2],\"justify\":[1],\"align\":[1],\"tag\":[1]}]]],[\"hb-scrollbar\",[[1,\"hb-scrollbar\",{\"height\":[1],\"maxHeight\":[1,\"max-height\"],\"always\":[4],\"native\":[4],\"minSize\":[2,\"min-size\"],\"scrollbarVisible\":[32],\"thumbHeight\":[32],\"thumbTop\":[32],\"setScrollTop\":[64],\"setScrollLeft\":[64],\"getScrollTop\":[64],\"getScrollLeft\":[64]},null,{\"height\":[\"handleSizeChange\"],\"maxHeight\":[\"handleSizeChange\"]}]]],[\"hb-segmented\",[[1,\"hb-segmented\",{\"modelValue\":[1025,\"model-value\"],\"block\":[4],\"size\":[1],\"options\":[16],\"activeIndex\":[32]}]]],[\"hb-select\",[[1,\"hb-select\",{\"modelValue\":[1032,\"model-value\"],\"options\":[16],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"multiple\":[4],\"filterable\":[4],\"filterMethod\":[16],\"defaultFirstOption\":[4,\"default-first-option\"],\"allowCreate\":[4,\"allow-create\"],\"collapseTags\":[4,\"collapse-tags\"],\"maxCollapseTags\":[2,\"max-collapse-tags\"],\"isOpen\":[32],\"inputValue\":[32],\"searchValue\":[32],\"filteredOptions\":[32],\"activeOptionIndex\":[32]},null,{\"modelValue\":[\"handleValueChange\"],\"options\":[\"handleOptionsChange\"]}]]],[\"hb-skeleton\",[[1,\"hb-skeleton\",{\"active\":[4],\"rows\":[2],\"loading\":[4],\"avatar\":[4],\"showTitle\":[4,\"show-title\"],\"paragraph\":[4]}]]],[\"hb-slider\",[[1,\"hb-slider\",{\"modelValue\":[1026,\"model-value\"],\"min\":[2],\"max\":[2],\"step\":[2],\"showTooltip\":[4,\"show-tooltip\"],\"formatTooltip\":[16],\"disabled\":[4],\"range\":[4],\"vertical\":[4],\"height\":[1],\"marks\":[16],\"dragging\":[32],\"currentValue\":[32],\"tooltipVisible\":[32],\"tooltipValue\":[32],\"activeHandle\":[32]},null,{\"modelValue\":[\"handleModelChange\"]}]]],[\"hb-space\",[[1,\"hb-space\",{\"size\":[8],\"direction\":[1],\"wrap\":[4],\"alignment\":[1],\"fill\":[4],\"fillRatio\":[2,\"fill-ratio\"]}]]],[\"hb-statistic\",[[1,\"hb-statistic\",{\"title\":[1],\"value\":[8],\"precision\":[2],\"valuePrefix\":[1,\"value-prefix\"],\"suffix\":[1],\"valueStyle\":[1,\"value-style\"]}]]],[\"hb-step\",[[1,\"hb-step\",{\"title\":[1],\"description\":[1],\"icon\":[1],\"status\":[1]}]]],[\"hb-sub-menu\",[[1,\"hb-sub-menu\",{\"label\":[1],\"icon\":[1],\"collapsed\":[4],\"isOpen\":[32],\"isHover\":[32]}]]],[\"hb-switch\",[[1,\"hb-switch\",{\"modelValue\":[1028,\"model-value\"],\"disabled\":[4],\"activeText\":[1,\"active-text\"],\"inactiveText\":[1,\"inactive-text\"],\"activeColor\":[1,\"active-color\"],\"inactiveColor\":[1,\"inactive-color\"],\"activeValue\":[8,\"active-value\"],\"inactiveValue\":[8,\"inactive-value\"],\"width\":[2],\"inlinePrompt\":[4,\"inline-prompt\"]}]]],[\"hb-tab-pane\",[[1,\"hb-tab-pane\",{\"key\":[1],\"label\":[1],\"active\":[4]}]]],[\"hb-table\",[[1,\"hb-table\",{\"data\":[16],\"columns\":[16],\"stripe\":[4],\"border\":[4],\"size\":[1],\"loading\":[4],\"rowKey\":[1,\"row-key\"],\"emptyText\":[1,\"empty-text\"],\"maxHeight\":[1,\"max-height\"],\"highlightCurrentRow\":[4,\"highlight-current-row\"],\"selectable\":[4],\"actions\":[16],\"virtualScroll\":[4,\"virtual-scroll\"],\"itemHeight\":[2,\"item-height\"],\"virtualScrollHeight\":[2,\"virtual-scroll-height\"],\"treeProps\":[16],\"editable\":[4],\"sortProp\":[32],\"sortDirection\":[32],\"currentRow\":[32],\"selectedRows\":[32],\"scrollTop\":[32],\"expandedRowKeys\":[32],\"editingCell\":[32]},null,{\"data\":[\"handleDataChange\"]}]]],[\"hb-tabs\",[[1,\"hb-tabs\",{\"modelValue\":[1025,\"model-value\"],\"type\":[1],\"closable\":[4],\"activeTab\":[32],\"tabs\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-tag\",[[1,\"hb-tag\",{\"type\":[1],\"closable\":[4],\"effect\":[1],\"round\":[4],\"size\":[1]}]]],[\"hb-text\",[[1,\"hb-text\",{\"type\":[1],\"size\":[1],\"truncated\":[4],\"bold\":[4],\"italic\":[4],\"deleted\":[4]}]]],[\"hb-time-picker\",[[1,\"hb-time-picker\",{\"modelValue\":[1025,\"model-value\"],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"format\":[1],\"name\":[1],\"inputId\":[1,\"input-id\"],\"isOpen\":[32],\"inputValue\":[32],\"selectedHour\":[32],\"selectedMinute\":[32],\"selectedSecond\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-time-select\",[[1,\"hb-time-select\",{\"modelValue\":[1025,\"model-value\"],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"start\":[1],\"end\":[1],\"step\":[2],\"minTime\":[1,\"min-time\"],\"maxTime\":[1,\"max-time\"],\"isOpen\":[32],\"inputValue\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-timeline\",[[1,\"hb-timeline\",{\"mode\":[1],\"items\":[16]}]]],[\"hb-tooltip\",[[1,\"hb-tooltip\",{\"content\":[1],\"placement\":[1],\"trigger\":[1],\"disabled\":[4],\"showArrow\":[4,\"show-arrow\"],\"visible\":[32],\"popupStyle\":[32]}]]],[\"hb-tour\",[[1,\"hb-tour\",{\"visible\":[1028],\"steps\":[16],\"current\":[1026],\"targetRect\":[32]}]]],[\"hb-transfer\",[[1,\"hb-transfer\",{\"data\":[16],\"targetKeys\":[1040],\"selectedKeys\":[1040],\"titles\":[16],\"disabled\":[4],\"filterable\":[4],\"leftFilter\":[32],\"rightFilter\":[32]},null,{\"selectedKeys\":[\"handleSelectedKeysChange\"]}]]],[\"hb-tree\",[[1,\"hb-tree\",{\"data\":[16],\"expandedKeys\":[1040],\"selectedKeys\":[1040],\"checkable\":[4],\"checkedKeys\":[1040],\"defaultExpandAll\":[4,\"default-expand-all\"],\"showLine\":[4,\"show-line\"],\"internalExpanded\":[32],\"internalSelected\":[32],\"internalChecked\":[32]},null,{\"data\":[\"handleDataChange\"],\"expandedKeys\":[\"handleExpandedKeysChange\"],\"selectedKeys\":[\"handleSelectedKeysChange\"],\"checkedKeys\":[\"handleCheckedKeysChange\"]}]]],[\"hb-tree-select\",[[1,\"hb-tree-select\",{\"data\":[16],\"modelValue\":[1025,\"model-value\"],\"multiple\":[4],\"placeholder\":[1],\"disabled\":[4],\"checkable\":[4],\"defaultExpandAll\":[4,\"default-expand-all\"],\"isOpen\":[32],\"internalExpanded\":[32],\"internalSelected\":[32],\"internalChecked\":[32]}]]],[\"hb-upload\",[[1,\"hb-upload\",{\"action\":[1],\"multiple\":[4],\"accept\":[1],\"disabled\":[4],\"limit\":[2],\"drag\":[4],\"name\":[1],\"headers\":[16],\"data\":[16],\"withCredentials\":[4,\"with-credentials\"],\"beforeUpload\":[16],\"fileList\":[1040],\"isDragover\":[32]}]]],[\"hb-watermark\",[[1,\"hb-watermark\",{\"content\":[1],\"width\":[2],\"height\":[2],\"gap\":[2],\"rotate\":[2],\"fontColor\":[1,\"font-color\"],\"fontSize\":[2,\"font-size\"]}]]],[\"hb-icon\",[[1,\"hb-icon\",{\"name\":[1],\"size\":[8],\"color\":[1],\"spin\":[4]}]]]]"), options);
19
+ return bootstrapLazy(JSON.parse("[[\"hb-steps\",[[1,\"hb-steps\",{\"active\":[2],\"processStatus\":[1,\"process-status\"],\"alignCenter\":[4,\"align-center\"],\"direction\":[1],\"steps\":[32]}]]],[\"hb-affix\",[[1,\"hb-affix\",{\"top\":[2],\"bottom\":[2],\"target\":[1],\"affixed\":[32]},[[0,\"hbTestScroll\",\"onTestScroll\"]]]]],[\"hb-alert\",[[1,\"hb-alert\",{\"title\":[1],\"description\":[1],\"type\":[1],\"closable\":[4],\"showIcon\":[4,\"show-icon\"],\"center\":[4],\"closed\":[32]}]]],[\"hb-anchor\",[[1,\"hb-anchor\",{\"items\":[16],\"top\":[2],\"affix\":[4],\"activeKey\":[32]}]]],[\"hb-aside\",[[1,\"hb-aside\",{\"width\":[1]}]]],[\"hb-avatar\",[[1,\"hb-avatar\",{\"size\":[8],\"shape\":[1],\"src\":[1],\"icon\":[1],\"alt\":[1]}]]],[\"hb-backtop\",[[1,\"hb-backtop\",{\"visibilityHeight\":[2,\"visibility-height\"],\"target\":[1],\"right\":[2],\"bottom\":[2],\"visible\":[32],\"backToTop\":[64]},[[9,\"scroll\",\"onWindowScroll\"]]]]],[\"hb-badge\",[[1,\"hb-badge\",{\"value\":[8],\"max\":[2],\"isDot\":[4,\"is-dot\"],\"hidden\":[4],\"type\":[1]}]]],[\"hb-breadcrumb\",[[1,\"hb-breadcrumb\",{\"separator\":[1]}]]],[\"hb-breadcrumb-item\",[[1,\"hb-breadcrumb-item\",{\"href\":[1]}]]],[\"hb-button\",[[1,\"hb-button\",{\"type\":[1],\"size\":[1],\"classNames\":[1,\"class-names\"],\"disabled\":[4],\"loading\":[4]}]]],[\"hb-calendar\",[[1,\"hb-calendar\",{\"modelValue\":[1025,\"model-value\"],\"firstDayOfWeek\":[2,\"first-day-of-week\"],\"disabledDate\":[16],\"viewDate\":[32],\"selectedDate\":[32],\"focusDate\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-card\",[[1,\"hb-card\",{\"header\":[1],\"shadow\":[1]}]]],[\"hb-carousel\",[[1,\"hb-carousel\",{\"current\":[1026],\"autoplay\":[4],\"interval\":[2],\"arrow\":[1],\"dots\":[4],\"loop\":[4],\"slideCount\":[32],\"isHover\":[32]},null,{\"autoplay\":[\"handleAutoplayOptionsChange\"],\"interval\":[\"handleAutoplayOptionsChange\"],\"current\":[\"handleCurrentChange\"]}]]],[\"hb-cascader\",[[1,\"hb-cascader\",{\"modelValue\":[1040],\"options\":[16],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"showAllLevels\":[4,\"show-all-levels\"],\"name\":[1],\"inputId\":[1,\"input-id\"],\"separator\":[1],\"emitPath\":[4,\"emit-path\"],\"filterable\":[4],\"lazy\":[4],\"load\":[16],\"multiple\":[4],\"checkStrictly\":[4,\"check-strictly\"],\"maxTagCount\":[2,\"max-tag-count\"],\"isOpen\":[32],\"inputValue\":[32],\"searchValue\":[32],\"loadingKeys\":[32],\"filteredPaths\":[32],\"activePath\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-checkbox\",[[1,\"hb-checkbox\",{\"modelValue\":[1028,\"model-value\"],\"value\":[8],\"disabled\":[4],\"checked\":[4],\"indeterminate\":[4],\"name\":[1],\"checkboxId\":[1,\"checkbox-id\"],\"label\":[1],\"border\":[4],\"size\":[1],\"isChecked\":[32]},null,{\"modelValue\":[\"handleValueChange\"],\"checked\":[\"handleValueChange\"],\"value\":[\"handleValueChange\"]}]]],[\"hb-checkbox-group\",[[1,\"hb-checkbox-group\",{\"modelValue\":[1040],\"disabled\":[4],\"size\":[1],\"border\":[4],\"min\":[2],\"max\":[2],\"checkboxes\":[32]},null,{\"modelValue\":[\"handleValueChange\"],\"disabled\":[\"handlePropsChange\"],\"size\":[\"handlePropsChange\"],\"border\":[\"handlePropsChange\"]}]]],[\"hb-collapse\",[[1,\"hb-collapse\",{\"accordion\":[1028]}]]],[\"hb-collapse-item\",[[1,\"hb-collapse-item\",{\"itemKey\":[1,\"item-key\"],\"key\":[1],\"title\":[1],\"disabled\":[4],\"active\":[1028],\"isOpen\":[32]},null,{\"active\":[\"handleActiveChange\"]}]]],[\"hb-color-picker\",[[1,\"hb-color-picker\",{\"modelValue\":[1025,\"model-value\"],\"disabled\":[4],\"colorFormat\":[1,\"color-format\"],\"showAlpha\":[4,\"show-alpha\"],\"predefine\":[16],\"isOpen\":[32],\"currentColor\":[32],\"hue\":[32],\"saturation\":[32],\"value\":[32],\"alpha\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-color-picker-panel\",[[1,\"hb-color-picker-panel\",{\"modelValue\":[1025,\"model-value\"],\"colorFormat\":[1,\"color-format\"],\"showAlpha\":[4,\"show-alpha\"],\"predefine\":[16],\"currentColor\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-config-provider\",[[4,\"hb-config-provider\",{\"theme\":[1],\"size\":[1],\"locale\":[1]}]]],[\"hb-container\",[[1,\"hb-container\",{\"direction\":[1]}]]],[\"hb-date-picker\",[[1,\"hb-date-picker\",{\"modelValue\":[1025,\"model-value\"],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"format\":[1],\"valueFormat\":[1,\"value-format\"],\"type\":[1],\"disabledDate\":[16],\"name\":[1],\"inputId\":[1,\"input-id\"],\"isOpen\":[32],\"inputValue\":[32],\"selectedDate\":[32],\"panelViewDate\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-date-picker-pane\",[[1,\"hb-date-picker-pane\",{\"modelValue\":[1025,\"model-value\"],\"format\":[1],\"view\":[1025],\"selectedDate\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-date-range-picker\",[[1,\"hb-date-range-picker\",{\"modelValue\":[1040],\"placeholder\":[16],\"disabled\":[4],\"clearable\":[4],\"size\":[1],\"format\":[1],\"disabledDate\":[16],\"name\":[1],\"isOpen\":[32],\"leftViewDate\":[32],\"startDate\":[32],\"endDate\":[32],\"pickingEnd\":[32],\"hoverDate\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-date-time-picker\",[[1,\"hb-date-time-picker\",{\"modelValue\":[1025,\"model-value\"],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"format\":[1],\"name\":[1],\"inputId\":[1,\"input-id\"],\"isOpen\":[32],\"inputValue\":[32],\"selectedDate\":[32],\"currentView\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-descriptions\",[[1,\"hb-descriptions\",{\"title\":[1],\"border\":[4],\"column\":[2],\"colon\":[4],\"items\":[16]}]]],[\"hb-dialog\",[[1,\"hb-dialog\",{\"modelValue\":[1028,\"model-value\"],\"title\":[1],\"width\":[1],\"fullscreen\":[4],\"modal\":[4],\"closeOnClickModal\":[4,\"close-on-click-modal\"],\"closeOnPressEscape\":[4,\"close-on-press-escape\"],\"showClose\":[4,\"show-close\"],\"destroyOnClose\":[4,\"destroy-on-close\"],\"leaving\":[32]},null,{\"modelValue\":[\"handleVisibleChange\"]}]]],[\"hb-divider\",[[1,\"hb-divider\",{\"direction\":[1],\"contentPosition\":[1,\"content-position\"],\"dashed\":[4]}]]],[\"hb-drawer\",[[1,\"hb-drawer\",{\"modelValue\":[1028,\"model-value\"],\"title\":[1],\"size\":[1],\"direction\":[1],\"closeOnClickModal\":[4,\"close-on-click-modal\"],\"showClose\":[4,\"show-close\"],\"modal\":[4],\"closeOnPressEscape\":[4,\"close-on-press-escape\"],\"zIndexState\":[32],\"leaving\":[32]},null,{\"modelValue\":[\"handleVisible\"]}]]],[\"hb-dropdown\",[[1,\"hb-dropdown\",{\"items\":[16],\"trigger\":[1],\"disabled\":[4],\"isOpen\":[32],\"leaving\":[32],\"activeIndex\":[32]}]]],[\"hb-empty\",[[1,\"hb-empty\",{\"description\":[1],\"image\":[1]}]]],[\"hb-float-button\",[[1,\"hb-float-button\",{\"type\":[1],\"shape\":[1],\"icon\":[1],\"description\":[1],\"right\":[2],\"bottom\":[2],\"badge\":[8]}]]],[\"hb-footer\",[[1,\"hb-footer\",{\"height\":[1]}]]],[\"hb-form\",[[1,\"hb-form\",{\"model\":[16],\"rules\":[16],\"labelPosition\":[1,\"label-position\"],\"labelWidth\":[1,\"label-width\"],\"inline\":[4],\"size\":[1],\"disabled\":[4],\"initialValues\":[16],\"validateMessages\":[16],\"onFinish\":[16],\"onFinishFailed\":[16],\"onValuesChange\":[16],\"validate\":[16],\"resetFields\":[16],\"fields\":[32]}]]],[\"hb-form-item\",[[1,\"hb-form-item\",{\"prop\":[1],\"label\":[1],\"labelWidth\":[1,\"label-width\"],\"required\":[4],\"rules\":[16],\"size\":[1],\"validateStatus\":[1,\"validate-status\"],\"help\":[1],\"labelCol\":[2,\"label-col\"],\"validate\":[16],\"resetValue\":[16],\"getValue\":[16],\"errors\":[32],\"isvalidating\":[32]}]]],[\"hb-header\",[[1,\"hb-header\",{\"height\":[1]}]]],[\"hb-image\",[[1,\"hb-image\",{\"src\":[1],\"alt\":[1],\"width\":[1],\"height\":[1],\"fit\":[1],\"lazy\":[4],\"preview\":[4],\"radius\":[1],\"loaded\":[32],\"error\":[32],\"previewVisible\":[32]},null,{\"src\":[\"handleSrcChange\"]}]]],[\"hb-image-preview\",[[1,\"hb-image-preview\",{\"modelValue\":[1028,\"model-value\"],\"src\":[1],\"srcList\":[16],\"current\":[1026],\"zoomStep\":[2,\"zoom-step\"],\"minZoom\":[2,\"min-zoom\"],\"maxZoom\":[2,\"max-zoom\"],\"zoom\":[32],\"rotate\":[32]},null,{\"modelValue\":[\"handleVisibleChange\"],\"current\":[\"handleCurrentChange\"]}]]],[\"hb-input\",[[1,\"hb-input\",{\"modelValue\":[1025,\"model-value\"],\"type\":[1],\"size\":[1],\"disabled\":[4],\"readonly\":[4],\"placeholder\":[1],\"clearable\":[4],\"showPassword\":[4,\"show-password\"],\"showWordLimit\":[4,\"show-word-limit\"],\"maxlength\":[2],\"minlength\":[2],\"name\":[1],\"inputId\":[1,\"input-id\"],\"autocomplete\":[1],\"autofocus\":[4],\"prefixIcon\":[1,\"prefix-icon\"],\"suffixIcon\":[1,\"suffix-icon\"],\"rows\":[2],\"autosize\":[4],\"resize\":[1],\"isFocused\":[32],\"showClear\":[32],\"passwordVisible\":[32],\"inputValue\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-input-number\",[[1,\"hb-input-number\",{\"modelValue\":[1026,\"model-value\"],\"size\":[1],\"disabled\":[4],\"readonly\":[4],\"min\":[2],\"max\":[2],\"step\":[2],\"precision\":[2],\"stepStrictly\":[4,\"step-strictly\"],\"controls\":[4],\"controlsPosition\":[1,\"controls-position\"],\"name\":[1],\"inputId\":[1,\"input-id\"],\"placeholder\":[1],\"currentValue\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-input-tag\",[[1,\"hb-input-tag\",{\"modelValue\":[1040],\"size\":[1],\"disabled\":[4],\"placeholder\":[1],\"maxlength\":[2],\"max\":[2],\"clearable\":[4],\"width\":[1],\"type\":[1],\"closable\":[4],\"inputVisible\":[4,\"input-visible\"],\"inputValue\":[32],\"isFocused\":[32]}]]],[\"hb-layout\",[[1,\"hb-layout\",{\"span\":[2],\"offset\":[2],\"push\":[2],\"pull\":[2],\"xs\":[2],\"sm\":[2],\"md\":[2],\"lg\":[2],\"xl\":[2]}]]],[\"hb-link\",[[1,\"hb-link\",{\"type\":[1],\"underline\":[4],\"disabled\":[4],\"href\":[1],\"target\":[1],\"icon\":[1]}]]],[\"hb-loading\",[[1,\"hb-loading\",{\"size\":[1],\"text\":[1],\"fullscreen\":[4]}]]],[\"hb-main\",[[1,\"hb-main\"]]],[\"hb-menu\",[[1,\"hb-menu\",{\"mode\":[1],\"defaultActive\":[1025,\"default-active\"],\"collapsed\":[4],\"backgroundColor\":[1,\"background-color\"],\"textColor\":[1,\"text-color\"],\"activeTextColor\":[1,\"active-text-color\"],\"activeItem\":[32]},[[0,\"hbMenuItemSelect\",\"handleSelect\"]],{\"defaultActive\":[\"handleDefaultActiveChange\"],\"collapsed\":[\"handleCollapsedChange\"]}]]],[\"hb-menu-item\",[[1,\"hb-menu-item\",{\"itemKey\":[1,\"item-key\"],\"key\":[1],\"disabled\":[4],\"icon\":[1],\"active\":[4]}]]],[\"hb-message\",[[1,\"hb-message\",{\"message\":[1],\"type\":[1],\"closable\":[4],\"duration\":[2],\"visible\":[32]}]]],[\"hb-notification\",[[1,\"hb-notification\",{\"id\":[1],\"type\":[1],\"title\":[1],\"message\":[1],\"duration\":[2],\"position\":[1],\"showClose\":[4,\"show-close\"],\"visible\":[1028]}]]],[\"hb-page-header\",[[1,\"hb-page-header\",{\"title\":[1],\"subtitle\":[1],\"back\":[4],\"ghost\":[4]}]]],[\"hb-pagination\",[[1,\"hb-pagination\",{\"total\":[2],\"pageSize\":[2,\"page-size\"],\"currentPage\":[1026,\"current-page\"],\"pageSizes\":[16],\"pagerCount\":[2,\"pager-count\"],\"disabled\":[4],\"showTotal\":[4,\"show-total\"],\"showPageSize\":[4,\"show-page-size\"],\"internalCurrent\":[32],\"internalPageSize\":[32]},null,{\"currentPage\":[\"handleCurrentPageChange\"],\"pageSize\":[\"handlePageSizeChange\"]}]]],[\"hb-popconfirm\",[[1,\"hb-popconfirm\",{\"title\":[1],\"confirmButtonText\":[1,\"confirm-button-text\"],\"cancelButtonText\":[1,\"cancel-button-text\"],\"placement\":[1],\"disabled\":[4],\"icon\":[1],\"visible\":[32],\"leaving\":[32],\"popupStyle\":[32]}]]],[\"hb-popover\",[[1,\"hb-popover\",{\"title\":[1],\"width\":[1],\"placement\":[1],\"trigger\":[1],\"disabled\":[4],\"visible\":[32],\"leaving\":[32],\"popupStyle\":[32]}]]],[\"hb-progress\",[[1,\"hb-progress\",{\"percentage\":[2],\"status\":[1],\"strokeWidth\":[2,\"stroke-width\"],\"showText\":[4,\"show-text\"],\"color\":[1]}]]],[\"hb-radio\",[[1,\"hb-radio\",{\"modelValue\":[1032,\"model-value\"],\"value\":[8],\"disabled\":[4],\"checked\":[4],\"name\":[1],\"radioId\":[1,\"radio-id\"],\"label\":[1],\"border\":[4],\"size\":[1],\"isChecked\":[32]},null,{\"modelValue\":[\"handleValueChange\"],\"checked\":[\"handleValueChange\"],\"value\":[\"handleValueChange\"]}]]],[\"hb-rate\",[[1,\"hb-rate\",{\"modelValue\":[1026,\"model-value\"],\"max\":[2],\"disabled\":[4],\"allowHalf\":[4,\"allow-half\"],\"readonly\":[4],\"showScore\":[4,\"show-score\"],\"showText\":[4,\"show-text\"],\"texts\":[16],\"scoreTemplate\":[1,\"score-template\"],\"hoverValue\":[32],\"currentValue\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-result\",[[1,\"hb-result\",{\"status\":[1],\"title\":[1],\"subTitle\":[1,\"sub-title\"],\"icon\":[1]}]]],[\"hb-row\",[[1,\"hb-row\",{\"gutter\":[2],\"justify\":[1],\"align\":[1],\"tag\":[1]}]]],[\"hb-scrollbar\",[[1,\"hb-scrollbar\",{\"height\":[1],\"maxHeight\":[1,\"max-height\"],\"always\":[4],\"native\":[4],\"minSize\":[2,\"min-size\"],\"scrollbarVisible\":[32],\"thumbHeight\":[32],\"thumbTop\":[32],\"setScrollTop\":[64],\"setScrollLeft\":[64],\"getScrollTop\":[64],\"getScrollLeft\":[64]},null,{\"height\":[\"handleSizeChange\"],\"maxHeight\":[\"handleSizeChange\"]}]]],[\"hb-segmented\",[[1,\"hb-segmented\",{\"modelValue\":[1025,\"model-value\"],\"block\":[4],\"size\":[1],\"options\":[16],\"activeIndex\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-select\",[[1,\"hb-select\",{\"modelValue\":[1032,\"model-value\"],\"options\":[16],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"multiple\":[4],\"filterable\":[4],\"filterMethod\":[16],\"defaultFirstOption\":[4,\"default-first-option\"],\"allowCreate\":[4,\"allow-create\"],\"collapseTags\":[4,\"collapse-tags\"],\"maxCollapseTags\":[2,\"max-collapse-tags\"],\"virtual\":[4],\"dropdownMaxHeight\":[2,\"dropdown-max-height\"],\"virtualItemHeight\":[2,\"virtual-item-height\"],\"isOpen\":[32],\"inputValue\":[32],\"searchValue\":[32],\"filteredOptions\":[32],\"activeOptionIndex\":[32],\"dropdownScrollTop\":[32]},null,{\"modelValue\":[\"handleValueChange\"],\"options\":[\"handleOptionsChange\"]}]]],[\"hb-skeleton\",[[1,\"hb-skeleton\",{\"active\":[4],\"rows\":[2],\"loading\":[4],\"avatar\":[4],\"showTitle\":[4,\"show-title\"],\"paragraph\":[4]}]]],[\"hb-slider\",[[1,\"hb-slider\",{\"modelValue\":[1026,\"model-value\"],\"min\":[2],\"max\":[2],\"step\":[2],\"showTooltip\":[4,\"show-tooltip\"],\"formatTooltip\":[16],\"disabled\":[4],\"range\":[4],\"vertical\":[4],\"height\":[1],\"marks\":[16],\"dragging\":[32],\"currentValue\":[32],\"tooltipVisible\":[32],\"tooltipValue\":[32],\"activeHandle\":[32]},null,{\"modelValue\":[\"handleModelChange\"]}]]],[\"hb-space\",[[1,\"hb-space\",{\"size\":[8],\"direction\":[1],\"wrap\":[4],\"alignment\":[1],\"fill\":[4],\"fillRatio\":[2,\"fill-ratio\"]}]]],[\"hb-statistic\",[[1,\"hb-statistic\",{\"title\":[1],\"value\":[8],\"precision\":[2],\"valuePrefix\":[1,\"value-prefix\"],\"suffix\":[1],\"valueStyle\":[1,\"value-style\"]}]]],[\"hb-step\",[[1,\"hb-step\",{\"title\":[1],\"description\":[1],\"icon\":[1],\"status\":[1]}]]],[\"hb-sub-menu\",[[1,\"hb-sub-menu\",{\"label\":[1],\"icon\":[1],\"collapsed\":[4],\"isOpen\":[32],\"isHover\":[32]}]]],[\"hb-switch\",[[1,\"hb-switch\",{\"modelValue\":[1028,\"model-value\"],\"disabled\":[4],\"activeText\":[1,\"active-text\"],\"inactiveText\":[1,\"inactive-text\"],\"activeColor\":[1,\"active-color\"],\"inactiveColor\":[1,\"inactive-color\"],\"activeValue\":[8,\"active-value\"],\"inactiveValue\":[8,\"inactive-value\"],\"width\":[2],\"inlinePrompt\":[4,\"inline-prompt\"]}]]],[\"hb-tab-pane\",[[1,\"hb-tab-pane\",{\"key\":[1],\"label\":[1],\"active\":[4]}]]],[\"hb-table\",[[1,\"hb-table\",{\"data\":[16],\"columns\":[16],\"stripe\":[4],\"border\":[4],\"size\":[1],\"loading\":[4],\"rowKey\":[1,\"row-key\"],\"emptyText\":[1,\"empty-text\"],\"maxHeight\":[1,\"max-height\"],\"highlightCurrentRow\":[4,\"highlight-current-row\"],\"selectable\":[4],\"actions\":[16],\"virtualScroll\":[4,\"virtual-scroll\"],\"itemHeight\":[2,\"item-height\"],\"virtualScrollHeight\":[2,\"virtual-scroll-height\"],\"treeProps\":[16],\"editable\":[4],\"pagination\":[16],\"rowClassName\":[16],\"sortProp\":[32],\"sortDirection\":[32],\"currentRow\":[32],\"selectedRows\":[32],\"scrollTop\":[32],\"expandedRowKeys\":[32],\"editingCell\":[32],\"internalPage\":[32],\"internalPageSize\":[32],\"internalFilters\":[32]},null,{\"data\":[\"handleDataChange\"],\"pagination\":[\"handlePaginationChange\"]}]]],[\"hb-tabs\",[[1,\"hb-tabs\",{\"modelValue\":[1025,\"model-value\"],\"type\":[1],\"closable\":[4],\"activeTab\":[32],\"tabs\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-tag\",[[1,\"hb-tag\",{\"type\":[1],\"closable\":[4],\"effect\":[1],\"round\":[4],\"size\":[1]}]]],[\"hb-text\",[[1,\"hb-text\",{\"type\":[1],\"size\":[1],\"truncated\":[4],\"bold\":[4],\"italic\":[4],\"deleted\":[4]}]]],[\"hb-time-picker\",[[1,\"hb-time-picker\",{\"modelValue\":[1025,\"model-value\"],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"format\":[1],\"name\":[1],\"inputId\":[1,\"input-id\"],\"isOpen\":[32],\"inputValue\":[32],\"selectedHour\":[32],\"selectedMinute\":[32],\"selectedSecond\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-time-select\",[[1,\"hb-time-select\",{\"modelValue\":[1025,\"model-value\"],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"start\":[1],\"end\":[1],\"step\":[2],\"minTime\":[1,\"min-time\"],\"maxTime\":[1,\"max-time\"],\"isOpen\":[32],\"inputValue\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-timeline\",[[1,\"hb-timeline\",{\"mode\":[1],\"items\":[16]}]]],[\"hb-tooltip\",[[1,\"hb-tooltip\",{\"content\":[1],\"placement\":[1],\"trigger\":[1],\"disabled\":[4],\"showArrow\":[4,\"show-arrow\"],\"visible\":[32],\"leaving\":[32],\"popupStyle\":[32]}]]],[\"hb-tour\",[[1,\"hb-tour\",{\"visible\":[1028],\"steps\":[16],\"current\":[1026],\"targetRect\":[32]}]]],[\"hb-transfer\",[[1,\"hb-transfer\",{\"data\":[16],\"targetKeys\":[1040],\"selectedKeys\":[1040],\"titles\":[16],\"disabled\":[4],\"filterable\":[4],\"leftFilter\":[32],\"rightFilter\":[32]},null,{\"selectedKeys\":[\"handleSelectedKeysChange\"]}]]],[\"hb-tree\",[[1,\"hb-tree\",{\"data\":[16],\"expandedKeys\":[1040],\"selectedKeys\":[1040],\"checkable\":[4],\"checkedKeys\":[1040],\"defaultExpandAll\":[4,\"default-expand-all\"],\"showLine\":[4,\"show-line\"],\"internalExpanded\":[32],\"internalSelected\":[32],\"internalChecked\":[32],\"focusKey\":[32]},null,{\"data\":[\"handleDataChange\"],\"expandedKeys\":[\"handleExpandedKeysChange\"],\"selectedKeys\":[\"handleSelectedKeysChange\"],\"checkedKeys\":[\"handleCheckedKeysChange\"]}]]],[\"hb-tree-select\",[[1,\"hb-tree-select\",{\"data\":[16],\"modelValue\":[1025,\"model-value\"],\"multiple\":[4],\"placeholder\":[1],\"disabled\":[4],\"checkable\":[4],\"defaultExpandAll\":[4,\"default-expand-all\"],\"isOpen\":[32],\"internalExpanded\":[32],\"internalSelected\":[32],\"internalChecked\":[32],\"focusKey\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-upload\",[[1,\"hb-upload\",{\"action\":[1],\"multiple\":[4],\"accept\":[1],\"disabled\":[4],\"limit\":[2],\"drag\":[4],\"name\":[1],\"headers\":[16],\"data\":[16],\"withCredentials\":[4,\"with-credentials\"],\"beforeUpload\":[16],\"fileList\":[1040],\"isDragover\":[32]}]]],[\"hb-watermark\",[[1,\"hb-watermark\",{\"content\":[1],\"width\":[2],\"height\":[2],\"gap\":[2],\"rotate\":[2],\"fontColor\":[1,\"font-color\"],\"fontSize\":[2,\"font-size\"]}]]],[\"hb-icon\",[[1,\"hb-icon\",{\"name\":[1],\"size\":[8],\"color\":[1],\"spin\":[4]}]]]]"), options);
20
20
  });
21
21
 
22
22
  //# sourceMappingURL=huibo-ui.js.map
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy(JSON.parse("[[\"hb-steps\",[[1,\"hb-steps\",{\"active\":[2],\"processStatus\":[1,\"process-status\"],\"alignCenter\":[4,\"align-center\"],\"direction\":[1],\"steps\":[32]}]]],[\"hb-affix\",[[1,\"hb-affix\",{\"top\":[2],\"bottom\":[2],\"target\":[1],\"affixed\":[32]},[[0,\"hbTestScroll\",\"onTestScroll\"]]]]],[\"hb-alert\",[[1,\"hb-alert\",{\"title\":[1],\"description\":[1],\"type\":[1],\"closable\":[4],\"showIcon\":[4,\"show-icon\"],\"center\":[4],\"closed\":[32]}]]],[\"hb-anchor\",[[1,\"hb-anchor\",{\"items\":[16],\"top\":[2],\"affix\":[4],\"activeKey\":[32]}]]],[\"hb-aside\",[[1,\"hb-aside\",{\"width\":[1]}]]],[\"hb-avatar\",[[1,\"hb-avatar\",{\"size\":[8],\"shape\":[1],\"src\":[1],\"icon\":[1],\"alt\":[1]}]]],[\"hb-backtop\",[[1,\"hb-backtop\",{\"visibilityHeight\":[2,\"visibility-height\"],\"target\":[1],\"right\":[2],\"bottom\":[2],\"visible\":[32],\"backToTop\":[64]},[[9,\"scroll\",\"onWindowScroll\"]]]]],[\"hb-badge\",[[1,\"hb-badge\",{\"value\":[8],\"max\":[2],\"isDot\":[4,\"is-dot\"],\"hidden\":[4],\"type\":[1]}]]],[\"hb-breadcrumb\",[[1,\"hb-breadcrumb\",{\"separator\":[1]}]]],[\"hb-breadcrumb-item\",[[1,\"hb-breadcrumb-item\",{\"href\":[1]}]]],[\"hb-button\",[[1,\"hb-button\",{\"type\":[1],\"size\":[1],\"classNames\":[1,\"class-names\"],\"disabled\":[4],\"loading\":[4]}]]],[\"hb-calendar\",[[1,\"hb-calendar\",{\"modelValue\":[1025,\"model-value\"],\"firstDayOfWeek\":[2,\"first-day-of-week\"],\"disabledDate\":[16],\"viewDate\":[32],\"selectedDate\":[32],\"focusDate\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-card\",[[1,\"hb-card\",{\"header\":[1],\"shadow\":[1]}]]],[\"hb-carousel\",[[1,\"hb-carousel\",{\"current\":[1026],\"autoplay\":[4],\"interval\":[2],\"arrow\":[1],\"dots\":[4],\"loop\":[4],\"slideCount\":[32],\"isHover\":[32]},null,{\"autoplay\":[\"handleAutoplayOptionsChange\"],\"interval\":[\"handleAutoplayOptionsChange\"],\"current\":[\"handleCurrentChange\"]}]]],[\"hb-cascader\",[[1,\"hb-cascader\",{\"modelValue\":[1040],\"options\":[16],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"showAllLevels\":[4,\"show-all-levels\"],\"name\":[1],\"inputId\":[1,\"input-id\"],\"separator\":[1],\"emitPath\":[4,\"emit-path\"],\"filterable\":[4],\"lazy\":[4],\"load\":[16],\"multiple\":[4],\"checkStrictly\":[4,\"check-strictly\"],\"maxTagCount\":[2,\"max-tag-count\"],\"isOpen\":[32],\"inputValue\":[32],\"searchValue\":[32],\"loadingKeys\":[32],\"filteredPaths\":[32],\"activePath\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-checkbox\",[[1,\"hb-checkbox\",{\"modelValue\":[1028,\"model-value\"],\"value\":[8],\"disabled\":[4],\"checked\":[4],\"indeterminate\":[4],\"name\":[1],\"checkboxId\":[1,\"checkbox-id\"],\"label\":[1],\"border\":[4],\"size\":[1],\"isChecked\":[32]},null,{\"modelValue\":[\"handleValueChange\"],\"checked\":[\"handleValueChange\"],\"value\":[\"handleValueChange\"]}]]],[\"hb-checkbox-group\",[[1,\"hb-checkbox-group\",{\"modelValue\":[1040],\"disabled\":[4],\"size\":[1],\"border\":[4],\"min\":[2],\"max\":[2],\"checkboxes\":[32]},null,{\"modelValue\":[\"handleValueChange\"],\"disabled\":[\"handlePropsChange\"],\"size\":[\"handlePropsChange\"],\"border\":[\"handlePropsChange\"]}]]],[\"hb-collapse\",[[1,\"hb-collapse\",{\"accordion\":[1028]}]]],[\"hb-collapse-item\",[[1,\"hb-collapse-item\",{\"key\":[1],\"title\":[1],\"disabled\":[4],\"active\":[1028],\"isOpen\":[32]},null,{\"active\":[\"handleActiveChange\"]}]]],[\"hb-color-picker\",[[1,\"hb-color-picker\",{\"modelValue\":[1025,\"model-value\"],\"disabled\":[4],\"colorFormat\":[1,\"color-format\"],\"showAlpha\":[4,\"show-alpha\"],\"predefine\":[16],\"isOpen\":[32],\"currentColor\":[32],\"hue\":[32],\"saturation\":[32],\"value\":[32],\"alpha\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-color-picker-panel\",[[1,\"hb-color-picker-panel\",{\"modelValue\":[1025,\"model-value\"],\"colorFormat\":[1,\"color-format\"],\"showAlpha\":[4,\"show-alpha\"],\"predefine\":[16],\"currentColor\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-config-provider\",[[4,\"hb-config-provider\",{\"theme\":[1],\"size\":[1],\"locale\":[1]}]]],[\"hb-container\",[[1,\"hb-container\",{\"direction\":[1]}]]],[\"hb-date-picker\",[[1,\"hb-date-picker\",{\"modelValue\":[1025,\"model-value\"],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"format\":[1],\"valueFormat\":[1,\"value-format\"],\"type\":[1],\"disabledDate\":[16],\"name\":[1],\"inputId\":[1,\"input-id\"],\"isOpen\":[32],\"inputValue\":[32],\"selectedDate\":[32],\"panelViewDate\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-date-picker-pane\",[[1,\"hb-date-picker-pane\",{\"modelValue\":[1025,\"model-value\"],\"format\":[1],\"view\":[1025],\"selectedDate\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-date-range-picker\",[[1,\"hb-date-range-picker\",{\"modelValue\":[1040],\"placeholder\":[16],\"disabled\":[4],\"clearable\":[4],\"size\":[1],\"format\":[1],\"disabledDate\":[16],\"name\":[1],\"isOpen\":[32],\"leftViewDate\":[32],\"startDate\":[32],\"endDate\":[32],\"pickingEnd\":[32],\"hoverDate\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-date-time-picker\",[[1,\"hb-date-time-picker\",{\"modelValue\":[1025,\"model-value\"],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"format\":[1],\"name\":[1],\"inputId\":[1,\"input-id\"],\"isOpen\":[32],\"inputValue\":[32],\"selectedDate\":[32],\"currentView\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-descriptions\",[[1,\"hb-descriptions\",{\"title\":[1],\"border\":[4],\"column\":[2],\"colon\":[4],\"items\":[16]}]]],[\"hb-dialog\",[[1,\"hb-dialog\",{\"modelValue\":[1028,\"model-value\"],\"title\":[1],\"width\":[1],\"fullscreen\":[4],\"modal\":[4],\"closeOnClickModal\":[4,\"close-on-click-modal\"],\"closeOnPressEscape\":[4,\"close-on-press-escape\"],\"showClose\":[4,\"show-close\"],\"destroyOnClose\":[4,\"destroy-on-close\"]},null,{\"modelValue\":[\"handleVisibleChange\"]}]]],[\"hb-divider\",[[1,\"hb-divider\",{\"direction\":[1],\"contentPosition\":[1,\"content-position\"],\"dashed\":[4]}]]],[\"hb-drawer\",[[1,\"hb-drawer\",{\"modelValue\":[1028,\"model-value\"],\"title\":[1],\"size\":[1],\"direction\":[1],\"closeOnClickModal\":[4,\"close-on-click-modal\"],\"showClose\":[4,\"show-close\"],\"modal\":[4],\"closeOnPressEscape\":[4,\"close-on-press-escape\"],\"zIndexState\":[32]},null,{\"modelValue\":[\"handleVisible\"]}]]],[\"hb-dropdown\",[[1,\"hb-dropdown\",{\"items\":[16],\"trigger\":[1],\"disabled\":[4],\"isOpen\":[32],\"activeIndex\":[32]}]]],[\"hb-empty\",[[1,\"hb-empty\",{\"description\":[1],\"image\":[1]}]]],[\"hb-float-button\",[[1,\"hb-float-button\",{\"type\":[1],\"shape\":[1],\"icon\":[1],\"description\":[1],\"right\":[2],\"bottom\":[2],\"badge\":[8]}]]],[\"hb-footer\",[[1,\"hb-footer\",{\"height\":[1]}]]],[\"hb-form\",[[1,\"hb-form\",{\"model\":[16],\"rules\":[16],\"labelPosition\":[1,\"label-position\"],\"labelWidth\":[1,\"label-width\"],\"inline\":[4],\"size\":[1],\"disabled\":[4],\"validate\":[16],\"resetFields\":[16],\"fields\":[32]}]]],[\"hb-form-item\",[[1,\"hb-form-item\",{\"prop\":[1],\"label\":[1],\"labelWidth\":[1,\"label-width\"],\"required\":[4],\"rules\":[16],\"size\":[1],\"validate\":[16],\"resetValue\":[16],\"getValue\":[16],\"errors\":[32],\"isvalidating\":[32]}]]],[\"hb-header\",[[1,\"hb-header\",{\"height\":[1]}]]],[\"hb-image\",[[1,\"hb-image\",{\"src\":[1],\"alt\":[1],\"width\":[1],\"height\":[1],\"fit\":[1],\"lazy\":[4],\"preview\":[4],\"radius\":[1],\"loaded\":[32],\"error\":[32],\"previewVisible\":[32]}]]],[\"hb-image-preview\",[[1,\"hb-image-preview\",{\"modelValue\":[1028,\"model-value\"],\"src\":[1],\"srcList\":[16],\"current\":[1026],\"zoomStep\":[2,\"zoom-step\"],\"minZoom\":[2,\"min-zoom\"],\"maxZoom\":[2,\"max-zoom\"],\"zoom\":[32],\"rotate\":[32]},null,{\"modelValue\":[\"handleVisibleChange\"],\"current\":[\"handleCurrentChange\"]}]]],[\"hb-input\",[[1,\"hb-input\",{\"modelValue\":[1025,\"model-value\"],\"type\":[1],\"size\":[1],\"disabled\":[4],\"readonly\":[4],\"placeholder\":[1],\"clearable\":[4],\"showPassword\":[4,\"show-password\"],\"showWordLimit\":[4,\"show-word-limit\"],\"maxlength\":[2],\"minlength\":[2],\"name\":[1],\"inputId\":[1,\"input-id\"],\"autocomplete\":[1],\"autofocus\":[4],\"prefixIcon\":[1,\"prefix-icon\"],\"suffixIcon\":[1,\"suffix-icon\"],\"rows\":[2],\"autosize\":[4],\"resize\":[1],\"isFocused\":[32],\"showClear\":[32],\"passwordVisible\":[32],\"inputValue\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-input-number\",[[1,\"hb-input-number\",{\"modelValue\":[1026,\"model-value\"],\"size\":[1],\"disabled\":[4],\"readonly\":[4],\"min\":[2],\"max\":[2],\"step\":[2],\"precision\":[2],\"stepStrictly\":[4,\"step-strictly\"],\"controls\":[4],\"controlsPosition\":[1,\"controls-position\"],\"name\":[1],\"inputId\":[1,\"input-id\"],\"placeholder\":[1],\"currentValue\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-input-tag\",[[1,\"hb-input-tag\",{\"modelValue\":[1040],\"size\":[1],\"disabled\":[4],\"placeholder\":[1],\"maxlength\":[2],\"max\":[2],\"clearable\":[4],\"width\":[1],\"type\":[1],\"closable\":[4],\"inputVisible\":[4,\"input-visible\"],\"inputValue\":[32],\"isFocused\":[32]}]]],[\"hb-layout\",[[1,\"hb-layout\",{\"span\":[2],\"offset\":[2],\"push\":[2],\"pull\":[2],\"xs\":[2],\"sm\":[2],\"md\":[2],\"lg\":[2],\"xl\":[2]}]]],[\"hb-link\",[[1,\"hb-link\",{\"type\":[1],\"underline\":[4],\"disabled\":[4],\"href\":[1],\"target\":[1],\"icon\":[1]}]]],[\"hb-loading\",[[1,\"hb-loading\",{\"size\":[1],\"text\":[1],\"fullscreen\":[4]}]]],[\"hb-main\",[[1,\"hb-main\"]]],[\"hb-menu\",[[1,\"hb-menu\",{\"mode\":[1],\"defaultActive\":[1025,\"default-active\"],\"collapsed\":[4],\"backgroundColor\":[1,\"background-color\"],\"textColor\":[1,\"text-color\"],\"activeTextColor\":[1,\"active-text-color\"],\"activeItem\":[32]},[[0,\"hbMenuItemSelect\",\"handleSelect\"]],{\"defaultActive\":[\"handleDefaultActiveChange\"],\"collapsed\":[\"handleCollapsedChange\"]}]]],[\"hb-menu-item\",[[1,\"hb-menu-item\",{\"key\":[1],\"disabled\":[4],\"icon\":[1],\"active\":[4]}]]],[\"hb-message\",[[1,\"hb-message\",{\"message\":[1],\"type\":[1],\"closable\":[4],\"duration\":[2],\"visible\":[32]}]]],[\"hb-notification\",[[1,\"hb-notification\",{\"id\":[1],\"type\":[1],\"title\":[1],\"message\":[1],\"duration\":[2],\"position\":[1],\"showClose\":[4,\"show-close\"],\"visible\":[1028]}]]],[\"hb-page-header\",[[1,\"hb-page-header\",{\"title\":[1],\"subtitle\":[1],\"back\":[4],\"ghost\":[4]}]]],[\"hb-pagination\",[[1,\"hb-pagination\",{\"total\":[2],\"pageSize\":[2,\"page-size\"],\"currentPage\":[1026,\"current-page\"],\"pageSizes\":[16],\"pagerCount\":[2,\"pager-count\"],\"disabled\":[4],\"showTotal\":[4,\"show-total\"],\"showPageSize\":[4,\"show-page-size\"],\"internalCurrent\":[32],\"internalPageSize\":[32]},null,{\"currentPage\":[\"handleCurrentPageChange\"],\"pageSize\":[\"handlePageSizeChange\"]}]]],[\"hb-popconfirm\",[[1,\"hb-popconfirm\",{\"title\":[1],\"confirmButtonText\":[1,\"confirm-button-text\"],\"cancelButtonText\":[1,\"cancel-button-text\"],\"placement\":[1],\"disabled\":[4],\"icon\":[1],\"visible\":[32],\"popupStyle\":[32]}]]],[\"hb-popover\",[[1,\"hb-popover\",{\"title\":[1],\"width\":[1],\"placement\":[1],\"trigger\":[1],\"disabled\":[4],\"visible\":[32],\"popupStyle\":[32]}]]],[\"hb-progress\",[[1,\"hb-progress\",{\"percentage\":[2],\"status\":[1],\"strokeWidth\":[2,\"stroke-width\"],\"showText\":[4,\"show-text\"],\"color\":[1]}]]],[\"hb-radio\",[[1,\"hb-radio\",{\"modelValue\":[1032,\"model-value\"],\"value\":[8],\"disabled\":[4],\"checked\":[4],\"name\":[1],\"radioId\":[1,\"radio-id\"],\"label\":[1],\"border\":[4],\"size\":[1],\"isChecked\":[32]},null,{\"modelValue\":[\"handleValueChange\"],\"checked\":[\"handleValueChange\"],\"value\":[\"handleValueChange\"]}]]],[\"hb-rate\",[[1,\"hb-rate\",{\"modelValue\":[1026,\"model-value\"],\"max\":[2],\"disabled\":[4],\"allowHalf\":[4,\"allow-half\"],\"readonly\":[4],\"showScore\":[4,\"show-score\"],\"showText\":[4,\"show-text\"],\"texts\":[16],\"scoreTemplate\":[1,\"score-template\"],\"hoverValue\":[32],\"currentValue\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-result\",[[1,\"hb-result\",{\"status\":[1],\"title\":[1],\"subTitle\":[1,\"sub-title\"],\"icon\":[1]}]]],[\"hb-row\",[[1,\"hb-row\",{\"gutter\":[2],\"justify\":[1],\"align\":[1],\"tag\":[1]}]]],[\"hb-scrollbar\",[[1,\"hb-scrollbar\",{\"height\":[1],\"maxHeight\":[1,\"max-height\"],\"always\":[4],\"native\":[4],\"minSize\":[2,\"min-size\"],\"scrollbarVisible\":[32],\"thumbHeight\":[32],\"thumbTop\":[32],\"setScrollTop\":[64],\"setScrollLeft\":[64],\"getScrollTop\":[64],\"getScrollLeft\":[64]},null,{\"height\":[\"handleSizeChange\"],\"maxHeight\":[\"handleSizeChange\"]}]]],[\"hb-segmented\",[[1,\"hb-segmented\",{\"modelValue\":[1025,\"model-value\"],\"block\":[4],\"size\":[1],\"options\":[16],\"activeIndex\":[32]}]]],[\"hb-select\",[[1,\"hb-select\",{\"modelValue\":[1032,\"model-value\"],\"options\":[16],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"multiple\":[4],\"filterable\":[4],\"filterMethod\":[16],\"defaultFirstOption\":[4,\"default-first-option\"],\"allowCreate\":[4,\"allow-create\"],\"collapseTags\":[4,\"collapse-tags\"],\"maxCollapseTags\":[2,\"max-collapse-tags\"],\"isOpen\":[32],\"inputValue\":[32],\"searchValue\":[32],\"filteredOptions\":[32],\"activeOptionIndex\":[32]},null,{\"modelValue\":[\"handleValueChange\"],\"options\":[\"handleOptionsChange\"]}]]],[\"hb-skeleton\",[[1,\"hb-skeleton\",{\"active\":[4],\"rows\":[2],\"loading\":[4],\"avatar\":[4],\"showTitle\":[4,\"show-title\"],\"paragraph\":[4]}]]],[\"hb-slider\",[[1,\"hb-slider\",{\"modelValue\":[1026,\"model-value\"],\"min\":[2],\"max\":[2],\"step\":[2],\"showTooltip\":[4,\"show-tooltip\"],\"formatTooltip\":[16],\"disabled\":[4],\"range\":[4],\"vertical\":[4],\"height\":[1],\"marks\":[16],\"dragging\":[32],\"currentValue\":[32],\"tooltipVisible\":[32],\"tooltipValue\":[32],\"activeHandle\":[32]},null,{\"modelValue\":[\"handleModelChange\"]}]]],[\"hb-space\",[[1,\"hb-space\",{\"size\":[8],\"direction\":[1],\"wrap\":[4],\"alignment\":[1],\"fill\":[4],\"fillRatio\":[2,\"fill-ratio\"]}]]],[\"hb-statistic\",[[1,\"hb-statistic\",{\"title\":[1],\"value\":[8],\"precision\":[2],\"valuePrefix\":[1,\"value-prefix\"],\"suffix\":[1],\"valueStyle\":[1,\"value-style\"]}]]],[\"hb-step\",[[1,\"hb-step\",{\"title\":[1],\"description\":[1],\"icon\":[1],\"status\":[1]}]]],[\"hb-sub-menu\",[[1,\"hb-sub-menu\",{\"label\":[1],\"icon\":[1],\"collapsed\":[4],\"isOpen\":[32],\"isHover\":[32]}]]],[\"hb-switch\",[[1,\"hb-switch\",{\"modelValue\":[1028,\"model-value\"],\"disabled\":[4],\"activeText\":[1,\"active-text\"],\"inactiveText\":[1,\"inactive-text\"],\"activeColor\":[1,\"active-color\"],\"inactiveColor\":[1,\"inactive-color\"],\"activeValue\":[8,\"active-value\"],\"inactiveValue\":[8,\"inactive-value\"],\"width\":[2],\"inlinePrompt\":[4,\"inline-prompt\"]}]]],[\"hb-tab-pane\",[[1,\"hb-tab-pane\",{\"key\":[1],\"label\":[1],\"active\":[4]}]]],[\"hb-table\",[[1,\"hb-table\",{\"data\":[16],\"columns\":[16],\"stripe\":[4],\"border\":[4],\"size\":[1],\"loading\":[4],\"rowKey\":[1,\"row-key\"],\"emptyText\":[1,\"empty-text\"],\"maxHeight\":[1,\"max-height\"],\"highlightCurrentRow\":[4,\"highlight-current-row\"],\"selectable\":[4],\"actions\":[16],\"virtualScroll\":[4,\"virtual-scroll\"],\"itemHeight\":[2,\"item-height\"],\"virtualScrollHeight\":[2,\"virtual-scroll-height\"],\"treeProps\":[16],\"editable\":[4],\"sortProp\":[32],\"sortDirection\":[32],\"currentRow\":[32],\"selectedRows\":[32],\"scrollTop\":[32],\"expandedRowKeys\":[32],\"editingCell\":[32]},null,{\"data\":[\"handleDataChange\"]}]]],[\"hb-tabs\",[[1,\"hb-tabs\",{\"modelValue\":[1025,\"model-value\"],\"type\":[1],\"closable\":[4],\"activeTab\":[32],\"tabs\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-tag\",[[1,\"hb-tag\",{\"type\":[1],\"closable\":[4],\"effect\":[1],\"round\":[4],\"size\":[1]}]]],[\"hb-text\",[[1,\"hb-text\",{\"type\":[1],\"size\":[1],\"truncated\":[4],\"bold\":[4],\"italic\":[4],\"deleted\":[4]}]]],[\"hb-time-picker\",[[1,\"hb-time-picker\",{\"modelValue\":[1025,\"model-value\"],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"format\":[1],\"name\":[1],\"inputId\":[1,\"input-id\"],\"isOpen\":[32],\"inputValue\":[32],\"selectedHour\":[32],\"selectedMinute\":[32],\"selectedSecond\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-time-select\",[[1,\"hb-time-select\",{\"modelValue\":[1025,\"model-value\"],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"start\":[1],\"end\":[1],\"step\":[2],\"minTime\":[1,\"min-time\"],\"maxTime\":[1,\"max-time\"],\"isOpen\":[32],\"inputValue\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-timeline\",[[1,\"hb-timeline\",{\"mode\":[1],\"items\":[16]}]]],[\"hb-tooltip\",[[1,\"hb-tooltip\",{\"content\":[1],\"placement\":[1],\"trigger\":[1],\"disabled\":[4],\"showArrow\":[4,\"show-arrow\"],\"visible\":[32],\"popupStyle\":[32]}]]],[\"hb-tour\",[[1,\"hb-tour\",{\"visible\":[1028],\"steps\":[16],\"current\":[1026],\"targetRect\":[32]}]]],[\"hb-transfer\",[[1,\"hb-transfer\",{\"data\":[16],\"targetKeys\":[1040],\"selectedKeys\":[1040],\"titles\":[16],\"disabled\":[4],\"filterable\":[4],\"leftFilter\":[32],\"rightFilter\":[32]},null,{\"selectedKeys\":[\"handleSelectedKeysChange\"]}]]],[\"hb-tree\",[[1,\"hb-tree\",{\"data\":[16],\"expandedKeys\":[1040],\"selectedKeys\":[1040],\"checkable\":[4],\"checkedKeys\":[1040],\"defaultExpandAll\":[4,\"default-expand-all\"],\"showLine\":[4,\"show-line\"],\"internalExpanded\":[32],\"internalSelected\":[32],\"internalChecked\":[32]},null,{\"data\":[\"handleDataChange\"],\"expandedKeys\":[\"handleExpandedKeysChange\"],\"selectedKeys\":[\"handleSelectedKeysChange\"],\"checkedKeys\":[\"handleCheckedKeysChange\"]}]]],[\"hb-tree-select\",[[1,\"hb-tree-select\",{\"data\":[16],\"modelValue\":[1025,\"model-value\"],\"multiple\":[4],\"placeholder\":[1],\"disabled\":[4],\"checkable\":[4],\"defaultExpandAll\":[4,\"default-expand-all\"],\"isOpen\":[32],\"internalExpanded\":[32],\"internalSelected\":[32],\"internalChecked\":[32]}]]],[\"hb-upload\",[[1,\"hb-upload\",{\"action\":[1],\"multiple\":[4],\"accept\":[1],\"disabled\":[4],\"limit\":[2],\"drag\":[4],\"name\":[1],\"headers\":[16],\"data\":[16],\"withCredentials\":[4,\"with-credentials\"],\"beforeUpload\":[16],\"fileList\":[1040],\"isDragover\":[32]}]]],[\"hb-watermark\",[[1,\"hb-watermark\",{\"content\":[1],\"width\":[2],\"height\":[2],\"gap\":[2],\"rotate\":[2],\"fontColor\":[1,\"font-color\"],\"fontSize\":[2,\"font-size\"]}]]],[\"hb-icon\",[[1,\"hb-icon\",{\"name\":[1],\"size\":[8],\"color\":[1],\"spin\":[4]}]]]]"), options);
8
+ return bootstrapLazy(JSON.parse("[[\"hb-steps\",[[1,\"hb-steps\",{\"active\":[2],\"processStatus\":[1,\"process-status\"],\"alignCenter\":[4,\"align-center\"],\"direction\":[1],\"steps\":[32]}]]],[\"hb-affix\",[[1,\"hb-affix\",{\"top\":[2],\"bottom\":[2],\"target\":[1],\"affixed\":[32]},[[0,\"hbTestScroll\",\"onTestScroll\"]]]]],[\"hb-alert\",[[1,\"hb-alert\",{\"title\":[1],\"description\":[1],\"type\":[1],\"closable\":[4],\"showIcon\":[4,\"show-icon\"],\"center\":[4],\"closed\":[32]}]]],[\"hb-anchor\",[[1,\"hb-anchor\",{\"items\":[16],\"top\":[2],\"affix\":[4],\"activeKey\":[32]}]]],[\"hb-aside\",[[1,\"hb-aside\",{\"width\":[1]}]]],[\"hb-avatar\",[[1,\"hb-avatar\",{\"size\":[8],\"shape\":[1],\"src\":[1],\"icon\":[1],\"alt\":[1]}]]],[\"hb-backtop\",[[1,\"hb-backtop\",{\"visibilityHeight\":[2,\"visibility-height\"],\"target\":[1],\"right\":[2],\"bottom\":[2],\"visible\":[32],\"backToTop\":[64]},[[9,\"scroll\",\"onWindowScroll\"]]]]],[\"hb-badge\",[[1,\"hb-badge\",{\"value\":[8],\"max\":[2],\"isDot\":[4,\"is-dot\"],\"hidden\":[4],\"type\":[1]}]]],[\"hb-breadcrumb\",[[1,\"hb-breadcrumb\",{\"separator\":[1]}]]],[\"hb-breadcrumb-item\",[[1,\"hb-breadcrumb-item\",{\"href\":[1]}]]],[\"hb-button\",[[1,\"hb-button\",{\"type\":[1],\"size\":[1],\"classNames\":[1,\"class-names\"],\"disabled\":[4],\"loading\":[4]}]]],[\"hb-calendar\",[[1,\"hb-calendar\",{\"modelValue\":[1025,\"model-value\"],\"firstDayOfWeek\":[2,\"first-day-of-week\"],\"disabledDate\":[16],\"viewDate\":[32],\"selectedDate\":[32],\"focusDate\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-card\",[[1,\"hb-card\",{\"header\":[1],\"shadow\":[1]}]]],[\"hb-carousel\",[[1,\"hb-carousel\",{\"current\":[1026],\"autoplay\":[4],\"interval\":[2],\"arrow\":[1],\"dots\":[4],\"loop\":[4],\"slideCount\":[32],\"isHover\":[32]},null,{\"autoplay\":[\"handleAutoplayOptionsChange\"],\"interval\":[\"handleAutoplayOptionsChange\"],\"current\":[\"handleCurrentChange\"]}]]],[\"hb-cascader\",[[1,\"hb-cascader\",{\"modelValue\":[1040],\"options\":[16],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"showAllLevels\":[4,\"show-all-levels\"],\"name\":[1],\"inputId\":[1,\"input-id\"],\"separator\":[1],\"emitPath\":[4,\"emit-path\"],\"filterable\":[4],\"lazy\":[4],\"load\":[16],\"multiple\":[4],\"checkStrictly\":[4,\"check-strictly\"],\"maxTagCount\":[2,\"max-tag-count\"],\"isOpen\":[32],\"inputValue\":[32],\"searchValue\":[32],\"loadingKeys\":[32],\"filteredPaths\":[32],\"activePath\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-checkbox\",[[1,\"hb-checkbox\",{\"modelValue\":[1028,\"model-value\"],\"value\":[8],\"disabled\":[4],\"checked\":[4],\"indeterminate\":[4],\"name\":[1],\"checkboxId\":[1,\"checkbox-id\"],\"label\":[1],\"border\":[4],\"size\":[1],\"isChecked\":[32]},null,{\"modelValue\":[\"handleValueChange\"],\"checked\":[\"handleValueChange\"],\"value\":[\"handleValueChange\"]}]]],[\"hb-checkbox-group\",[[1,\"hb-checkbox-group\",{\"modelValue\":[1040],\"disabled\":[4],\"size\":[1],\"border\":[4],\"min\":[2],\"max\":[2],\"checkboxes\":[32]},null,{\"modelValue\":[\"handleValueChange\"],\"disabled\":[\"handlePropsChange\"],\"size\":[\"handlePropsChange\"],\"border\":[\"handlePropsChange\"]}]]],[\"hb-collapse\",[[1,\"hb-collapse\",{\"accordion\":[1028]}]]],[\"hb-collapse-item\",[[1,\"hb-collapse-item\",{\"itemKey\":[1,\"item-key\"],\"key\":[1],\"title\":[1],\"disabled\":[4],\"active\":[1028],\"isOpen\":[32]},null,{\"active\":[\"handleActiveChange\"]}]]],[\"hb-color-picker\",[[1,\"hb-color-picker\",{\"modelValue\":[1025,\"model-value\"],\"disabled\":[4],\"colorFormat\":[1,\"color-format\"],\"showAlpha\":[4,\"show-alpha\"],\"predefine\":[16],\"isOpen\":[32],\"currentColor\":[32],\"hue\":[32],\"saturation\":[32],\"value\":[32],\"alpha\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-color-picker-panel\",[[1,\"hb-color-picker-panel\",{\"modelValue\":[1025,\"model-value\"],\"colorFormat\":[1,\"color-format\"],\"showAlpha\":[4,\"show-alpha\"],\"predefine\":[16],\"currentColor\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-config-provider\",[[4,\"hb-config-provider\",{\"theme\":[1],\"size\":[1],\"locale\":[1]}]]],[\"hb-container\",[[1,\"hb-container\",{\"direction\":[1]}]]],[\"hb-date-picker\",[[1,\"hb-date-picker\",{\"modelValue\":[1025,\"model-value\"],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"format\":[1],\"valueFormat\":[1,\"value-format\"],\"type\":[1],\"disabledDate\":[16],\"name\":[1],\"inputId\":[1,\"input-id\"],\"isOpen\":[32],\"inputValue\":[32],\"selectedDate\":[32],\"panelViewDate\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-date-picker-pane\",[[1,\"hb-date-picker-pane\",{\"modelValue\":[1025,\"model-value\"],\"format\":[1],\"view\":[1025],\"selectedDate\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-date-range-picker\",[[1,\"hb-date-range-picker\",{\"modelValue\":[1040],\"placeholder\":[16],\"disabled\":[4],\"clearable\":[4],\"size\":[1],\"format\":[1],\"disabledDate\":[16],\"name\":[1],\"isOpen\":[32],\"leftViewDate\":[32],\"startDate\":[32],\"endDate\":[32],\"pickingEnd\":[32],\"hoverDate\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-date-time-picker\",[[1,\"hb-date-time-picker\",{\"modelValue\":[1025,\"model-value\"],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"format\":[1],\"name\":[1],\"inputId\":[1,\"input-id\"],\"isOpen\":[32],\"inputValue\":[32],\"selectedDate\":[32],\"currentView\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-descriptions\",[[1,\"hb-descriptions\",{\"title\":[1],\"border\":[4],\"column\":[2],\"colon\":[4],\"items\":[16]}]]],[\"hb-dialog\",[[1,\"hb-dialog\",{\"modelValue\":[1028,\"model-value\"],\"title\":[1],\"width\":[1],\"fullscreen\":[4],\"modal\":[4],\"closeOnClickModal\":[4,\"close-on-click-modal\"],\"closeOnPressEscape\":[4,\"close-on-press-escape\"],\"showClose\":[4,\"show-close\"],\"destroyOnClose\":[4,\"destroy-on-close\"],\"leaving\":[32]},null,{\"modelValue\":[\"handleVisibleChange\"]}]]],[\"hb-divider\",[[1,\"hb-divider\",{\"direction\":[1],\"contentPosition\":[1,\"content-position\"],\"dashed\":[4]}]]],[\"hb-drawer\",[[1,\"hb-drawer\",{\"modelValue\":[1028,\"model-value\"],\"title\":[1],\"size\":[1],\"direction\":[1],\"closeOnClickModal\":[4,\"close-on-click-modal\"],\"showClose\":[4,\"show-close\"],\"modal\":[4],\"closeOnPressEscape\":[4,\"close-on-press-escape\"],\"zIndexState\":[32],\"leaving\":[32]},null,{\"modelValue\":[\"handleVisible\"]}]]],[\"hb-dropdown\",[[1,\"hb-dropdown\",{\"items\":[16],\"trigger\":[1],\"disabled\":[4],\"isOpen\":[32],\"leaving\":[32],\"activeIndex\":[32]}]]],[\"hb-empty\",[[1,\"hb-empty\",{\"description\":[1],\"image\":[1]}]]],[\"hb-float-button\",[[1,\"hb-float-button\",{\"type\":[1],\"shape\":[1],\"icon\":[1],\"description\":[1],\"right\":[2],\"bottom\":[2],\"badge\":[8]}]]],[\"hb-footer\",[[1,\"hb-footer\",{\"height\":[1]}]]],[\"hb-form\",[[1,\"hb-form\",{\"model\":[16],\"rules\":[16],\"labelPosition\":[1,\"label-position\"],\"labelWidth\":[1,\"label-width\"],\"inline\":[4],\"size\":[1],\"disabled\":[4],\"initialValues\":[16],\"validateMessages\":[16],\"onFinish\":[16],\"onFinishFailed\":[16],\"onValuesChange\":[16],\"validate\":[16],\"resetFields\":[16],\"fields\":[32]}]]],[\"hb-form-item\",[[1,\"hb-form-item\",{\"prop\":[1],\"label\":[1],\"labelWidth\":[1,\"label-width\"],\"required\":[4],\"rules\":[16],\"size\":[1],\"validateStatus\":[1,\"validate-status\"],\"help\":[1],\"labelCol\":[2,\"label-col\"],\"validate\":[16],\"resetValue\":[16],\"getValue\":[16],\"errors\":[32],\"isvalidating\":[32]}]]],[\"hb-header\",[[1,\"hb-header\",{\"height\":[1]}]]],[\"hb-image\",[[1,\"hb-image\",{\"src\":[1],\"alt\":[1],\"width\":[1],\"height\":[1],\"fit\":[1],\"lazy\":[4],\"preview\":[4],\"radius\":[1],\"loaded\":[32],\"error\":[32],\"previewVisible\":[32]},null,{\"src\":[\"handleSrcChange\"]}]]],[\"hb-image-preview\",[[1,\"hb-image-preview\",{\"modelValue\":[1028,\"model-value\"],\"src\":[1],\"srcList\":[16],\"current\":[1026],\"zoomStep\":[2,\"zoom-step\"],\"minZoom\":[2,\"min-zoom\"],\"maxZoom\":[2,\"max-zoom\"],\"zoom\":[32],\"rotate\":[32]},null,{\"modelValue\":[\"handleVisibleChange\"],\"current\":[\"handleCurrentChange\"]}]]],[\"hb-input\",[[1,\"hb-input\",{\"modelValue\":[1025,\"model-value\"],\"type\":[1],\"size\":[1],\"disabled\":[4],\"readonly\":[4],\"placeholder\":[1],\"clearable\":[4],\"showPassword\":[4,\"show-password\"],\"showWordLimit\":[4,\"show-word-limit\"],\"maxlength\":[2],\"minlength\":[2],\"name\":[1],\"inputId\":[1,\"input-id\"],\"autocomplete\":[1],\"autofocus\":[4],\"prefixIcon\":[1,\"prefix-icon\"],\"suffixIcon\":[1,\"suffix-icon\"],\"rows\":[2],\"autosize\":[4],\"resize\":[1],\"isFocused\":[32],\"showClear\":[32],\"passwordVisible\":[32],\"inputValue\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-input-number\",[[1,\"hb-input-number\",{\"modelValue\":[1026,\"model-value\"],\"size\":[1],\"disabled\":[4],\"readonly\":[4],\"min\":[2],\"max\":[2],\"step\":[2],\"precision\":[2],\"stepStrictly\":[4,\"step-strictly\"],\"controls\":[4],\"controlsPosition\":[1,\"controls-position\"],\"name\":[1],\"inputId\":[1,\"input-id\"],\"placeholder\":[1],\"currentValue\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-input-tag\",[[1,\"hb-input-tag\",{\"modelValue\":[1040],\"size\":[1],\"disabled\":[4],\"placeholder\":[1],\"maxlength\":[2],\"max\":[2],\"clearable\":[4],\"width\":[1],\"type\":[1],\"closable\":[4],\"inputVisible\":[4,\"input-visible\"],\"inputValue\":[32],\"isFocused\":[32]}]]],[\"hb-layout\",[[1,\"hb-layout\",{\"span\":[2],\"offset\":[2],\"push\":[2],\"pull\":[2],\"xs\":[2],\"sm\":[2],\"md\":[2],\"lg\":[2],\"xl\":[2]}]]],[\"hb-link\",[[1,\"hb-link\",{\"type\":[1],\"underline\":[4],\"disabled\":[4],\"href\":[1],\"target\":[1],\"icon\":[1]}]]],[\"hb-loading\",[[1,\"hb-loading\",{\"size\":[1],\"text\":[1],\"fullscreen\":[4]}]]],[\"hb-main\",[[1,\"hb-main\"]]],[\"hb-menu\",[[1,\"hb-menu\",{\"mode\":[1],\"defaultActive\":[1025,\"default-active\"],\"collapsed\":[4],\"backgroundColor\":[1,\"background-color\"],\"textColor\":[1,\"text-color\"],\"activeTextColor\":[1,\"active-text-color\"],\"activeItem\":[32]},[[0,\"hbMenuItemSelect\",\"handleSelect\"]],{\"defaultActive\":[\"handleDefaultActiveChange\"],\"collapsed\":[\"handleCollapsedChange\"]}]]],[\"hb-menu-item\",[[1,\"hb-menu-item\",{\"itemKey\":[1,\"item-key\"],\"key\":[1],\"disabled\":[4],\"icon\":[1],\"active\":[4]}]]],[\"hb-message\",[[1,\"hb-message\",{\"message\":[1],\"type\":[1],\"closable\":[4],\"duration\":[2],\"visible\":[32]}]]],[\"hb-notification\",[[1,\"hb-notification\",{\"id\":[1],\"type\":[1],\"title\":[1],\"message\":[1],\"duration\":[2],\"position\":[1],\"showClose\":[4,\"show-close\"],\"visible\":[1028]}]]],[\"hb-page-header\",[[1,\"hb-page-header\",{\"title\":[1],\"subtitle\":[1],\"back\":[4],\"ghost\":[4]}]]],[\"hb-pagination\",[[1,\"hb-pagination\",{\"total\":[2],\"pageSize\":[2,\"page-size\"],\"currentPage\":[1026,\"current-page\"],\"pageSizes\":[16],\"pagerCount\":[2,\"pager-count\"],\"disabled\":[4],\"showTotal\":[4,\"show-total\"],\"showPageSize\":[4,\"show-page-size\"],\"internalCurrent\":[32],\"internalPageSize\":[32]},null,{\"currentPage\":[\"handleCurrentPageChange\"],\"pageSize\":[\"handlePageSizeChange\"]}]]],[\"hb-popconfirm\",[[1,\"hb-popconfirm\",{\"title\":[1],\"confirmButtonText\":[1,\"confirm-button-text\"],\"cancelButtonText\":[1,\"cancel-button-text\"],\"placement\":[1],\"disabled\":[4],\"icon\":[1],\"visible\":[32],\"leaving\":[32],\"popupStyle\":[32]}]]],[\"hb-popover\",[[1,\"hb-popover\",{\"title\":[1],\"width\":[1],\"placement\":[1],\"trigger\":[1],\"disabled\":[4],\"visible\":[32],\"leaving\":[32],\"popupStyle\":[32]}]]],[\"hb-progress\",[[1,\"hb-progress\",{\"percentage\":[2],\"status\":[1],\"strokeWidth\":[2,\"stroke-width\"],\"showText\":[4,\"show-text\"],\"color\":[1]}]]],[\"hb-radio\",[[1,\"hb-radio\",{\"modelValue\":[1032,\"model-value\"],\"value\":[8],\"disabled\":[4],\"checked\":[4],\"name\":[1],\"radioId\":[1,\"radio-id\"],\"label\":[1],\"border\":[4],\"size\":[1],\"isChecked\":[32]},null,{\"modelValue\":[\"handleValueChange\"],\"checked\":[\"handleValueChange\"],\"value\":[\"handleValueChange\"]}]]],[\"hb-rate\",[[1,\"hb-rate\",{\"modelValue\":[1026,\"model-value\"],\"max\":[2],\"disabled\":[4],\"allowHalf\":[4,\"allow-half\"],\"readonly\":[4],\"showScore\":[4,\"show-score\"],\"showText\":[4,\"show-text\"],\"texts\":[16],\"scoreTemplate\":[1,\"score-template\"],\"hoverValue\":[32],\"currentValue\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-result\",[[1,\"hb-result\",{\"status\":[1],\"title\":[1],\"subTitle\":[1,\"sub-title\"],\"icon\":[1]}]]],[\"hb-row\",[[1,\"hb-row\",{\"gutter\":[2],\"justify\":[1],\"align\":[1],\"tag\":[1]}]]],[\"hb-scrollbar\",[[1,\"hb-scrollbar\",{\"height\":[1],\"maxHeight\":[1,\"max-height\"],\"always\":[4],\"native\":[4],\"minSize\":[2,\"min-size\"],\"scrollbarVisible\":[32],\"thumbHeight\":[32],\"thumbTop\":[32],\"setScrollTop\":[64],\"setScrollLeft\":[64],\"getScrollTop\":[64],\"getScrollLeft\":[64]},null,{\"height\":[\"handleSizeChange\"],\"maxHeight\":[\"handleSizeChange\"]}]]],[\"hb-segmented\",[[1,\"hb-segmented\",{\"modelValue\":[1025,\"model-value\"],\"block\":[4],\"size\":[1],\"options\":[16],\"activeIndex\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-select\",[[1,\"hb-select\",{\"modelValue\":[1032,\"model-value\"],\"options\":[16],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"multiple\":[4],\"filterable\":[4],\"filterMethod\":[16],\"defaultFirstOption\":[4,\"default-first-option\"],\"allowCreate\":[4,\"allow-create\"],\"collapseTags\":[4,\"collapse-tags\"],\"maxCollapseTags\":[2,\"max-collapse-tags\"],\"virtual\":[4],\"dropdownMaxHeight\":[2,\"dropdown-max-height\"],\"virtualItemHeight\":[2,\"virtual-item-height\"],\"isOpen\":[32],\"inputValue\":[32],\"searchValue\":[32],\"filteredOptions\":[32],\"activeOptionIndex\":[32],\"dropdownScrollTop\":[32]},null,{\"modelValue\":[\"handleValueChange\"],\"options\":[\"handleOptionsChange\"]}]]],[\"hb-skeleton\",[[1,\"hb-skeleton\",{\"active\":[4],\"rows\":[2],\"loading\":[4],\"avatar\":[4],\"showTitle\":[4,\"show-title\"],\"paragraph\":[4]}]]],[\"hb-slider\",[[1,\"hb-slider\",{\"modelValue\":[1026,\"model-value\"],\"min\":[2],\"max\":[2],\"step\":[2],\"showTooltip\":[4,\"show-tooltip\"],\"formatTooltip\":[16],\"disabled\":[4],\"range\":[4],\"vertical\":[4],\"height\":[1],\"marks\":[16],\"dragging\":[32],\"currentValue\":[32],\"tooltipVisible\":[32],\"tooltipValue\":[32],\"activeHandle\":[32]},null,{\"modelValue\":[\"handleModelChange\"]}]]],[\"hb-space\",[[1,\"hb-space\",{\"size\":[8],\"direction\":[1],\"wrap\":[4],\"alignment\":[1],\"fill\":[4],\"fillRatio\":[2,\"fill-ratio\"]}]]],[\"hb-statistic\",[[1,\"hb-statistic\",{\"title\":[1],\"value\":[8],\"precision\":[2],\"valuePrefix\":[1,\"value-prefix\"],\"suffix\":[1],\"valueStyle\":[1,\"value-style\"]}]]],[\"hb-step\",[[1,\"hb-step\",{\"title\":[1],\"description\":[1],\"icon\":[1],\"status\":[1]}]]],[\"hb-sub-menu\",[[1,\"hb-sub-menu\",{\"label\":[1],\"icon\":[1],\"collapsed\":[4],\"isOpen\":[32],\"isHover\":[32]}]]],[\"hb-switch\",[[1,\"hb-switch\",{\"modelValue\":[1028,\"model-value\"],\"disabled\":[4],\"activeText\":[1,\"active-text\"],\"inactiveText\":[1,\"inactive-text\"],\"activeColor\":[1,\"active-color\"],\"inactiveColor\":[1,\"inactive-color\"],\"activeValue\":[8,\"active-value\"],\"inactiveValue\":[8,\"inactive-value\"],\"width\":[2],\"inlinePrompt\":[4,\"inline-prompt\"]}]]],[\"hb-tab-pane\",[[1,\"hb-tab-pane\",{\"key\":[1],\"label\":[1],\"active\":[4]}]]],[\"hb-table\",[[1,\"hb-table\",{\"data\":[16],\"columns\":[16],\"stripe\":[4],\"border\":[4],\"size\":[1],\"loading\":[4],\"rowKey\":[1,\"row-key\"],\"emptyText\":[1,\"empty-text\"],\"maxHeight\":[1,\"max-height\"],\"highlightCurrentRow\":[4,\"highlight-current-row\"],\"selectable\":[4],\"actions\":[16],\"virtualScroll\":[4,\"virtual-scroll\"],\"itemHeight\":[2,\"item-height\"],\"virtualScrollHeight\":[2,\"virtual-scroll-height\"],\"treeProps\":[16],\"editable\":[4],\"pagination\":[16],\"rowClassName\":[16],\"sortProp\":[32],\"sortDirection\":[32],\"currentRow\":[32],\"selectedRows\":[32],\"scrollTop\":[32],\"expandedRowKeys\":[32],\"editingCell\":[32],\"internalPage\":[32],\"internalPageSize\":[32],\"internalFilters\":[32]},null,{\"data\":[\"handleDataChange\"],\"pagination\":[\"handlePaginationChange\"]}]]],[\"hb-tabs\",[[1,\"hb-tabs\",{\"modelValue\":[1025,\"model-value\"],\"type\":[1],\"closable\":[4],\"activeTab\":[32],\"tabs\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-tag\",[[1,\"hb-tag\",{\"type\":[1],\"closable\":[4],\"effect\":[1],\"round\":[4],\"size\":[1]}]]],[\"hb-text\",[[1,\"hb-text\",{\"type\":[1],\"size\":[1],\"truncated\":[4],\"bold\":[4],\"italic\":[4],\"deleted\":[4]}]]],[\"hb-time-picker\",[[1,\"hb-time-picker\",{\"modelValue\":[1025,\"model-value\"],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"format\":[1],\"name\":[1],\"inputId\":[1,\"input-id\"],\"isOpen\":[32],\"inputValue\":[32],\"selectedHour\":[32],\"selectedMinute\":[32],\"selectedSecond\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-time-select\",[[1,\"hb-time-select\",{\"modelValue\":[1025,\"model-value\"],\"placeholder\":[1],\"disabled\":[4],\"size\":[1],\"clearable\":[4],\"start\":[1],\"end\":[1],\"step\":[2],\"minTime\":[1,\"min-time\"],\"maxTime\":[1,\"max-time\"],\"isOpen\":[32],\"inputValue\":[32]},null,{\"modelValue\":[\"handleValueChange\"]}]]],[\"hb-timeline\",[[1,\"hb-timeline\",{\"mode\":[1],\"items\":[16]}]]],[\"hb-tooltip\",[[1,\"hb-tooltip\",{\"content\":[1],\"placement\":[1],\"trigger\":[1],\"disabled\":[4],\"showArrow\":[4,\"show-arrow\"],\"visible\":[32],\"leaving\":[32],\"popupStyle\":[32]}]]],[\"hb-tour\",[[1,\"hb-tour\",{\"visible\":[1028],\"steps\":[16],\"current\":[1026],\"targetRect\":[32]}]]],[\"hb-transfer\",[[1,\"hb-transfer\",{\"data\":[16],\"targetKeys\":[1040],\"selectedKeys\":[1040],\"titles\":[16],\"disabled\":[4],\"filterable\":[4],\"leftFilter\":[32],\"rightFilter\":[32]},null,{\"selectedKeys\":[\"handleSelectedKeysChange\"]}]]],[\"hb-tree\",[[1,\"hb-tree\",{\"data\":[16],\"expandedKeys\":[1040],\"selectedKeys\":[1040],\"checkable\":[4],\"checkedKeys\":[1040],\"defaultExpandAll\":[4,\"default-expand-all\"],\"showLine\":[4,\"show-line\"],\"internalExpanded\":[32],\"internalSelected\":[32],\"internalChecked\":[32],\"focusKey\":[32]},null,{\"data\":[\"handleDataChange\"],\"expandedKeys\":[\"handleExpandedKeysChange\"],\"selectedKeys\":[\"handleSelectedKeysChange\"],\"checkedKeys\":[\"handleCheckedKeysChange\"]}]]],[\"hb-tree-select\",[[1,\"hb-tree-select\",{\"data\":[16],\"modelValue\":[1025,\"model-value\"],\"multiple\":[4],\"placeholder\":[1],\"disabled\":[4],\"checkable\":[4],\"defaultExpandAll\":[4,\"default-expand-all\"],\"isOpen\":[32],\"internalExpanded\":[32],\"internalSelected\":[32],\"internalChecked\":[32],\"focusKey\":[32]},null,{\"modelValue\":[\"handleModelValueChange\"]}]]],[\"hb-upload\",[[1,\"hb-upload\",{\"action\":[1],\"multiple\":[4],\"accept\":[1],\"disabled\":[4],\"limit\":[2],\"drag\":[4],\"name\":[1],\"headers\":[16],\"data\":[16],\"withCredentials\":[4,\"with-credentials\"],\"beforeUpload\":[16],\"fileList\":[1040],\"isDragover\":[32]}]]],[\"hb-watermark\",[[1,\"hb-watermark\",{\"content\":[1],\"width\":[2],\"height\":[2],\"gap\":[2],\"rotate\":[2],\"fontColor\":[1,\"font-color\"],\"fontSize\":[2,\"font-size\"]}]]],[\"hb-icon\",[[1,\"hb-icon\",{\"name\":[1],\"size\":[8],\"color\":[1],\"spin\":[4]}]]]]"), options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -0,0 +1,32 @@
1
+ function createLeaveScheduler(getLeaving, setLeaving, duration = 200) {
2
+ let timer;
3
+ const start = (onDone) => {
4
+ if (timer)
5
+ clearTimeout(timer);
6
+ setLeaving(true);
7
+ timer = setTimeout(() => {
8
+ timer = undefined;
9
+ setLeaving(false);
10
+ onDone?.();
11
+ }, duration);
12
+ };
13
+ const cancel = () => {
14
+ if (timer) {
15
+ clearTimeout(timer);
16
+ timer = undefined;
17
+ }
18
+ if (getLeaving())
19
+ setLeaving(false);
20
+ };
21
+ const dispose = () => {
22
+ if (timer) {
23
+ clearTimeout(timer);
24
+ timer = undefined;
25
+ }
26
+ };
27
+ return { start, cancel, dispose };
28
+ }
29
+
30
+ export { createLeaveScheduler as c };
31
+
32
+ //# sourceMappingURL=transition-4295d789.js.map
@@ -0,0 +1 @@
1
+ {"file":"transition-4295d789.js","mappings":"SA4BgB,oBAAoB,CAAC,UAAyB,EAAE,UAAyB,EAAE,WAAmB,GAAG;IAC/G,IAAI,KAAgD,CAAC;IAErD,MAAM,KAAK,GAAG,CAAC,MAAmB;QAChC,IAAI,KAAK;YAAE,YAAY,CAAC,KAAK,CAAC,CAAC;QAC/B,UAAU,CAAC,IAAI,CAAC,CAAC;QACjB,KAAK,GAAG,UAAU,CAAC;YACjB,KAAK,GAAG,SAAS,CAAC;YAClB,UAAU,CAAC,KAAK,CAAC,CAAC;YAClB,MAAM,IAAI,CAAC;SACZ,EAAE,QAAQ,CAAC,CAAC;KACd,CAAC;IAEF,MAAM,MAAM,GAAG;QACb,IAAI,KAAK,EAAE;YACT,YAAY,CAAC,KAAK,CAAC,CAAC;YACpB,KAAK,GAAG,SAAS,CAAC;SACnB;QACD,IAAI,UAAU,EAAE;YAAE,UAAU,CAAC,KAAK,CAAC,CAAC;KACrC,CAAC;IAEF,MAAM,OAAO,GAAG;QACd,IAAI,KAAK,EAAE;YACT,YAAY,CAAC,KAAK,CAAC,CAAC;YACpB,KAAK,GAAG,SAAS,CAAC;SACnB;KACF,CAAC;IAEF,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AACpC;;;;","names":[],"sources":["src/utils/transition.ts"],"sourcesContent":["/**\n * 弹层进出场动画编排工具\n *\n * 问题背景:Stencil 声明式渲染里 `{visible && <El/>}` 会在关闭瞬间卸载 DOM,\n * CSS 离场动画没机会播放——出现\"打开有动画、关闭瞬间消失\"的体验缺陷。\n *\n * 方案:组件维护一个 `leaving` state,关闭时先设 leaving=true 播放离场动画,\n * 动画时长(默认 200ms)后再 leaving=false 真正卸载。`shouldRender = visible || leaving`。\n *\n * 用法(在组件里):\n * ```ts\n * private leave = createLeaveScheduler(() => this.leaving, (v) => this.leaving = v, 200);\n * // visible 变 false 时:this.leave.start(() => 真正关闭的清理);\n * // render 里:{this.shouldRender && <El class={{ '--leaving': this.leaving }}/>}\n * ```\n */\nexport type LeavingSetter = (leaving: boolean) => void;\nexport type LeavingGetter = () => boolean;\n\nexport interface LeaveScheduler {\n /** 开始离场:设 leaving=true,duration 后回调 onDone 并 leaving=false */\n start(onDone?: () => void): void;\n /** 取消挂起的离场(用于关闭中途又打开的场景) */\n cancel(): void;\n /** disconnectedCallback 时调用,避免组件卸载后还在 setState */\n dispose(): void;\n}\n\nexport function createLeaveScheduler(getLeaving: LeavingGetter, setLeaving: LeavingSetter, duration: number = 200): LeaveScheduler {\n let timer: ReturnType<typeof setTimeout> | undefined;\n\n const start = (onDone?: () => void) => {\n if (timer) clearTimeout(timer);\n setLeaving(true);\n timer = setTimeout(() => {\n timer = undefined;\n setLeaving(false);\n onDone?.();\n }, duration);\n };\n\n const cancel = () => {\n if (timer) {\n clearTimeout(timer);\n timer = undefined;\n }\n if (getLeaving()) setLeaving(false);\n };\n\n const dispose = () => {\n if (timer) {\n clearTimeout(timer);\n timer = undefined;\n }\n };\n\n return { start, cancel, dispose };\n}\n"],"version":3}