bromcom-ui 2.9.0-rc.7 → 2.9.0-rc.9

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 (389) hide show
  1. package/dist/bromcom-ui/bromcom-ui.css +1 -1
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/global/global.js +6 -0
  4. package/dist/bromcom-ui/{p-bd51d347.entry.js → p-01416407.entry.js} +1 -1
  5. package/dist/bromcom-ui/{p-d030cf23.entry.js → p-0261a41f.entry.js} +1 -1
  6. package/dist/bromcom-ui/{p-4aa0e6b1.js → p-034bbcdd.js} +1 -1
  7. package/dist/bromcom-ui/{p-a0dece18.entry.js → p-041d35e1.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-36daa24a.entry.js → p-0b390d63.entry.js} +1 -1
  9. package/dist/bromcom-ui/{p-5c3e9ac9.entry.js → p-123d6355.entry.js} +1 -1
  10. package/dist/bromcom-ui/p-13c84181.entry.js +5 -0
  11. package/dist/bromcom-ui/p-14c7e2a8.js +297 -0
  12. package/dist/bromcom-ui/p-170cf07d.js +6 -0
  13. package/dist/bromcom-ui/{p-000b420c.entry.js → p-173a5459.entry.js} +1 -1
  14. package/dist/bromcom-ui/{p-8ded5483.entry.js → p-228c74e9.entry.js} +1 -1
  15. package/dist/bromcom-ui/{p-a429e85b.js → p-23c35e1b.js} +1 -1
  16. package/dist/bromcom-ui/{p-877d7d32.entry.js → p-27089653.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-4ed1f823.entry.js → p-27c24ba2.entry.js} +1 -1
  18. package/dist/bromcom-ui/{p-81eeccfa.entry.js → p-28f78dd4.entry.js} +1 -1
  19. package/dist/bromcom-ui/p-2a9053d8.js +5 -0
  20. package/dist/bromcom-ui/{p-a5193cc3.entry.js → p-2ad0514a.entry.js} +1 -1
  21. package/dist/bromcom-ui/p-2d4a0a66.entry.js +5 -0
  22. package/dist/bromcom-ui/{p-89e1d8c5.entry.js → p-3078fcd2.entry.js} +1 -1
  23. package/dist/bromcom-ui/p-3182df7e.js +10 -0
  24. package/dist/bromcom-ui/{p-bf59206d.entry.js → p-33cb3b7a.entry.js} +1 -1
  25. package/dist/bromcom-ui/{p-376f2520.entry.js → p-3788e33d.entry.js} +1 -1
  26. package/dist/bromcom-ui/{p-7d69462f.entry.js → p-39342bfb.entry.js} +1 -1
  27. package/dist/bromcom-ui/{p-6ca980dd.entry.js → p-3960cae8.entry.js} +1 -1
  28. package/dist/bromcom-ui/{p-f4538abb.entry.js → p-3a06c6b1.entry.js} +1 -1
  29. package/dist/bromcom-ui/{p-54c0916c.js → p-3ade1099.js} +1 -1
  30. package/dist/bromcom-ui/{p-0ec92a6b.entry.js → p-3bcaa275.entry.js} +1 -1
  31. package/dist/bromcom-ui/{p-ebee9f45.entry.js → p-3d730230.entry.js} +1 -1
  32. package/dist/bromcom-ui/p-3f67e615.js +5 -0
  33. package/dist/bromcom-ui/{p-539839b3.entry.js → p-41143361.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-b1c83bb8.entry.js → p-44ca28fa.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-50a7dd08.js → p-477c5bae.js} +1 -1
  36. package/dist/bromcom-ui/{p-2fc584c4.js → p-4798d827.js} +1 -1
  37. package/dist/bromcom-ui/{p-f113c511.entry.js → p-485d801c.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-7c6e3ae5.entry.js → p-4e33341b.entry.js} +1 -1
  39. package/dist/bromcom-ui/p-52989d8c.entry.js +5 -0
  40. package/dist/bromcom-ui/{p-5a46ec8e.entry.js → p-55309a20.entry.js} +1 -1
  41. package/dist/bromcom-ui/{p-c115e8f7.entry.js → p-55b60edb.entry.js} +1 -1
  42. package/dist/bromcom-ui/p-5600c817.js +5 -0
  43. package/dist/bromcom-ui/{p-17622eb2.entry.js → p-620aa5b0.entry.js} +1 -1
  44. package/dist/bromcom-ui/{p-96f68aca.entry.js → p-626c26aa.entry.js} +1 -1
  45. package/dist/bromcom-ui/p-62ea396b.entry.js +5 -0
  46. package/dist/bromcom-ui/{p-f34bd011.entry.js → p-667876ac.entry.js} +1 -1
  47. package/dist/bromcom-ui/{p-03134b6f.entry.js → p-67343ad8.entry.js} +1 -1
  48. package/dist/bromcom-ui/{p-9e0d6a0a.entry.js → p-68bf022e.entry.js} +1 -1
  49. package/dist/bromcom-ui/{p-f331e009.entry.js → p-6ab403d2.entry.js} +1 -1
  50. package/dist/bromcom-ui/{p-a367da3b.entry.js → p-6cc47ae0.entry.js} +1 -1
  51. package/dist/bromcom-ui/{p-6c0807a4.entry.js → p-6f375d08.entry.js} +1 -1
  52. package/dist/bromcom-ui/{p-940dda87.js → p-7236f21c.js} +1 -1
  53. package/dist/bromcom-ui/{p-3cde7f38.js → p-74e6d2b6.js} +1 -1
  54. package/dist/bromcom-ui/{p-dc2c4b14.entry.js → p-7b486021.entry.js} +1 -1
  55. package/dist/bromcom-ui/{p-d995750a.entry.js → p-7c5763cc.entry.js} +1 -1
  56. package/dist/bromcom-ui/{p-06229e3f.entry.js → p-7cb2df5d.entry.js} +1 -1
  57. package/dist/bromcom-ui/p-7e3209a0.js +14 -0
  58. package/dist/bromcom-ui/{p-240151d4.entry.js → p-7f1612df.entry.js} +1 -1
  59. package/dist/bromcom-ui/{p-89f86797.entry.js → p-7f22af84.entry.js} +1 -1
  60. package/dist/bromcom-ui/{p-fb1cb57d.js → p-81d6b4a9.js} +1 -1
  61. package/dist/bromcom-ui/{p-2d8e0eda.entry.js → p-81f7a8cf.entry.js} +1 -1
  62. package/dist/bromcom-ui/{p-e8485a2f.entry.js → p-833b0234.entry.js} +1 -1
  63. package/dist/bromcom-ui/{p-9635a90f.entry.js → p-875dcc4e.entry.js} +1 -1
  64. package/dist/bromcom-ui/{p-8a860cff.js → p-8b7f2c93.js} +1 -1
  65. package/dist/bromcom-ui/{p-7ddaedb7.entry.js → p-8c3535b6.entry.js} +1 -1
  66. package/dist/bromcom-ui/p-9166c160.entry.js +5 -0
  67. package/dist/bromcom-ui/{p-6c3e9e10.entry.js → p-9314d7ed.entry.js} +1 -1
  68. package/dist/bromcom-ui/{p-a2e7ae97.entry.js → p-9682f59f.entry.js} +1 -1
  69. package/dist/bromcom-ui/{p-8bcfe3b3.entry.js → p-9d12a9da.entry.js} +1 -1
  70. package/dist/bromcom-ui/p-a231503d.js +5 -0
  71. package/dist/bromcom-ui/{p-7359e502.entry.js → p-a2f55c7e.entry.js} +1 -1
  72. package/dist/bromcom-ui/{p-1d1d8a3d.entry.js → p-a3837b59.entry.js} +1 -1
  73. package/dist/bromcom-ui/{p-2987a7b4.entry.js → p-a7bc8330.entry.js} +1 -1
  74. package/dist/bromcom-ui/p-a9842acd.entry.js +5 -0
  75. package/dist/bromcom-ui/{p-ea4d8a18.entry.js → p-ae57f046.entry.js} +1 -1
  76. package/dist/bromcom-ui/{p-f619f9f9.entry.js → p-b284e383.entry.js} +1 -1
  77. package/dist/bromcom-ui/p-b82685e4.js +12 -0
  78. package/dist/bromcom-ui/{p-e4477593.entry.js → p-ba3c6657.entry.js} +1 -1
  79. package/dist/bromcom-ui/p-ba7e96a8.entry.js +5 -0
  80. package/dist/bromcom-ui/p-ba89b896.entry.js +5 -0
  81. package/dist/bromcom-ui/p-bed627ab.js +11 -0
  82. package/dist/bromcom-ui/{p-66712bb9.entry.js → p-c05f56ab.entry.js} +1 -1
  83. package/dist/bromcom-ui/{p-cde20403.js → p-c0d7b05e.js} +1 -1
  84. package/dist/bromcom-ui/{p-26ef712b.entry.js → p-c5c61430.entry.js} +1 -1
  85. package/dist/bromcom-ui/p-c7757dd5.entry.js +5 -0
  86. package/dist/bromcom-ui/{p-2395d0c2.entry.js → p-c82fc2b1.entry.js} +1 -1
  87. package/dist/bromcom-ui/{p-00fdf291.js → p-c87ea210.js} +1 -1
  88. package/dist/bromcom-ui/{p-1b1f4b44.entry.js → p-cea71a01.entry.js} +1 -1
  89. package/dist/bromcom-ui/{p-8d0ca8c2.js → p-cff8ef93.js} +1 -1
  90. package/dist/bromcom-ui/p-d0b993c1.entry.js +5 -0
  91. package/dist/bromcom-ui/{p-21676489.entry.js → p-d20f131e.entry.js} +1 -1
  92. package/dist/bromcom-ui/{p-259dc75a.entry.js → p-d88bc175.entry.js} +1 -1
  93. package/dist/bromcom-ui/{p-3ba3a354.entry.js → p-da4bd91f.entry.js} +1 -1
  94. package/dist/bromcom-ui/{p-b60bcecf.js → p-dc8305dc.js} +1 -1
  95. package/dist/bromcom-ui/p-de6dcf0d.entry.js +5 -0
  96. package/dist/bromcom-ui/{p-48f85544.entry.js → p-df185078.entry.js} +1 -1
  97. package/dist/bromcom-ui/{p-dbc4c30c.js → p-e1689f47.js} +1 -1
  98. package/dist/bromcom-ui/p-e1877ee9.js +5 -0
  99. package/dist/bromcom-ui/p-e45c1546.js +5 -0
  100. package/dist/bromcom-ui/p-e705fda8.entry.js +5 -0
  101. package/dist/bromcom-ui/{p-4f8b00bc.entry.js → p-ec04b3a4.entry.js} +1 -1
  102. package/dist/bromcom-ui/p-f3fb3196.entry.js +5 -0
  103. package/dist/bromcom-ui/{p-68601d61.entry.js → p-f6e549ce.entry.js} +1 -1
  104. package/dist/cjs/{_commonjsHelpers-bd20f4c0.js → _commonjsHelpers-ed84c3ca.js} +16 -0
  105. package/dist/cjs/ag-grid-enterprise.auto.esm-cf48f6b2.js +111638 -0
  106. package/dist/cjs/bcm-accordion.cjs.entry.js +5 -5
  107. package/dist/cjs/bcm-alert.cjs.entry.js +9 -9
  108. package/dist/cjs/bcm-attendance.cjs.entry.js +5 -5
  109. package/dist/cjs/bcm-autocomplete.cjs.entry.js +3 -3
  110. package/dist/cjs/bcm-avatar.cjs.entry.js +10 -10
  111. package/dist/cjs/bcm-badge_15.cjs.entry.js +17 -17
  112. package/dist/cjs/bcm-box.cjs.entry.js +1 -1
  113. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +6 -6
  114. package/dist/cjs/bcm-button-group.cjs.entry.js +8 -8
  115. package/dist/cjs/bcm-card.cjs.entry.js +10 -10
  116. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +12 -12
  117. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +7 -7
  118. package/dist/cjs/bcm-checkbox.cjs.entry.js +12 -12
  119. package/dist/cjs/bcm-chip-group.cjs.entry.js +14 -14
  120. package/dist/cjs/bcm-chip.cjs.entry.js +7 -7
  121. package/dist/cjs/bcm-collapse-group.cjs.entry.js +1 -1
  122. package/dist/cjs/bcm-collapse.cjs.entry.js +6 -6
  123. package/dist/cjs/bcm-color-input.cjs.entry.js +10 -10
  124. package/dist/cjs/{bcm-colorful.cjs.entry.js → bcm-colorful_2.cjs.entry.js} +363 -3
  125. package/dist/cjs/bcm-colorpicker.cjs.entry.js +3 -3
  126. package/dist/cjs/bcm-content.cjs.entry.js +1 -1
  127. package/dist/cjs/bcm-date-picker.cjs.entry.js +8 -8
  128. package/dist/cjs/bcm-date.cjs.entry.js +124 -0
  129. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +27 -13
  130. package/dist/cjs/bcm-default.cjs.entry.js +5 -5
  131. package/dist/cjs/bcm-drawer.cjs.entry.js +11 -11
  132. package/dist/cjs/bcm-error-layout.cjs.entry.js +3 -3
  133. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +9 -9
  134. package/dist/cjs/{bcm-ab921827.js → bcm-fd724fe9.js} +1 -0
  135. package/dist/cjs/bcm-form-2.cjs.entry.js +12 -9
  136. package/dist/cjs/bcm-form-group.cjs.entry.js +1 -1
  137. package/dist/cjs/bcm-form.cjs.entry.js +7 -6
  138. package/dist/cjs/bcm-input-custom.cjs.entry.js +6 -6
  139. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +218 -0
  140. package/dist/cjs/bcm-label.cjs.entry.js +10 -10
  141. package/dist/cjs/bcm-link.cjs.entry.js +4 -4
  142. package/dist/cjs/bcm-list_3.cjs.entry.js +147 -1671
  143. package/dist/cjs/bcm-message.cjs.entry.js +3 -3
  144. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +11 -11
  145. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +10 -10
  146. package/dist/cjs/bcm-modal-2.cjs.entry.js +11 -11
  147. package/dist/cjs/bcm-modal.cjs.entry.js +9 -9
  148. package/dist/cjs/bcm-notification.cjs.entry.js +3 -3
  149. package/dist/cjs/bcm-old-input.cjs.entry.js +4 -4
  150. package/dist/cjs/bcm-old-tag_2.cjs.entry.js +3 -3
  151. package/dist/cjs/bcm-overlay_2.cjs.entry.js +4 -4
  152. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +10 -10
  153. package/dist/cjs/bcm-popconfirm.cjs.entry.js +7 -7
  154. package/dist/cjs/bcm-progress.cjs.entry.js +8 -8
  155. package/dist/cjs/bcm-radio-group.cjs.entry.js +13 -13
  156. package/dist/cjs/bcm-radio.cjs.entry.js +11 -11
  157. package/dist/cjs/bcm-range.cjs.entry.js +7 -7
  158. package/dist/cjs/bcm-rc-picker.cjs.entry.js +8120 -0
  159. package/dist/cjs/bcm-result.cjs.entry.js +3 -3
  160. package/dist/cjs/bcm-select-group.cjs.entry.js +3 -3
  161. package/dist/cjs/bcm-select-option.cjs.entry.js +3 -3
  162. package/dist/cjs/bcm-select.cjs.entry.js +5 -5
  163. package/dist/cjs/bcm-skeleton.cjs.entry.js +5 -5
  164. package/dist/cjs/bcm-step.cjs.entry.js +8 -8
  165. package/dist/cjs/bcm-stepper.cjs.entry.js +13 -13
  166. package/dist/cjs/bcm-switch.cjs.entry.js +9 -9
  167. package/dist/cjs/bcm-tab-pane.cjs.entry.js +3 -3
  168. package/dist/cjs/bcm-tab.cjs.entry.js +3 -3
  169. package/dist/cjs/bcm-table.cjs.entry.js +236 -38
  170. package/dist/cjs/bcm-tabs-content.cjs.entry.js +3 -3
  171. package/dist/cjs/bcm-tabs.cjs.entry.js +3 -3
  172. package/dist/cjs/bcm-tag.cjs.entry.js +8 -8
  173. package/dist/cjs/bcm-textarea.cjs.entry.js +10 -10
  174. package/dist/cjs/bcm-time-picker.cjs.entry.js +8 -8
  175. package/dist/cjs/bcm-timeline-item.cjs.entry.js +3 -3
  176. package/dist/cjs/bcm-timeline.cjs.entry.js +3 -3
  177. package/dist/cjs/bcm-toast.cjs.entry.js +8 -8
  178. package/dist/cjs/bcm-treeview-group.cjs.entry.js +1 -1
  179. package/dist/cjs/bromcom-ui.cjs.js +5 -4
  180. package/dist/cjs/{caption-template-8d099fd6.js → caption-template-81dbc490.js} +2 -2
  181. package/dist/cjs/{color-helper-7ab15732.js → color-helper-c3a819ea.js} +1 -1
  182. package/dist/cjs/{colors-e1d142ad.js → colors-078851ec.js} +1 -1
  183. package/dist/cjs/{floating-ui-c9fc2202.js → floating-ui-5f42f872.js} +1 -1
  184. package/dist/cjs/{generate-c6ed8219.js → generate-7e161828.js} +2 -2
  185. package/dist/cjs/{global-e45184f0.js → global-01094a23.js} +6 -1
  186. package/dist/cjs/index-3d67f613.js +1610 -0
  187. package/dist/cjs/{index-fdbf5226.js → index-95ae50d0.js} +1 -1
  188. package/dist/cjs/{index-ddfd6d8f.js → index-c591ecec.js} +4 -0
  189. package/dist/cjs/{index-4506fcd7.js → index-d321de96.js} +1 -1
  190. package/dist/cjs/{index-906fb4e5.js → index-e05a7c6f.js} +6 -1
  191. package/dist/cjs/{input-template-99396b47.js → input-template-c8d5ae30.js} +4 -4
  192. package/dist/cjs/{is-load-decorator-137dded1.js → is-load-decorator-7575fbd2.js} +1 -1
  193. package/dist/cjs/{json-parse-decarator-08847f37.js → json-parse-decarator-d9d1452c.js} +2 -2
  194. package/dist/cjs/{label-template-4d5f99a5.js → label-template-8738acbd.js} +4 -4
  195. package/dist/cjs/loader.cjs.js +5 -4
  196. package/dist/cjs/moment-c1a71617.js +5689 -0
  197. package/dist/cjs/{number-helper-e137c8d6.js → number-helper-c26ca8a7.js} +1 -1
  198. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +11 -11
  199. package/dist/cjs/old-bcm-popover.cjs.entry.js +7 -7
  200. package/dist/cjs/{package-de04912b.js → package-016f287a.js} +1 -1
  201. package/dist/cjs/{popover-placement-ccb40073.js → popover-placement-2161105e.js} +1 -1
  202. package/dist/cjs/{slot-template-d70ea082.js → slot-template-bc4e1c50.js} +2 -2
  203. package/dist/cjs/{stepper-states-3414f192.js → stepper-states-2a864ea5.js} +3 -3
  204. package/dist/cjs/{string-helper-d681e5c7.js → string-helper-c432b17c.js} +2 -2
  205. package/dist/cjs/{validators-77b56203.js → validators-5ca90062.js} +1 -1
  206. package/dist/collection/assets/csv.svg +9 -0
  207. package/dist/collection/assets/excel.svg +9 -0
  208. package/dist/collection/assets/pdf.svg +9 -0
  209. package/dist/collection/collection-manifest.json +5 -2
  210. package/dist/collection/components/{other/data-table/table.css → molecules/input-dropdown/input-dropdown.css} +4 -5
  211. package/dist/collection/components/molecules/input-dropdown/input-dropdown.js +664 -0
  212. package/dist/collection/components/molecules/linked/linked.js +2 -2
  213. package/dist/collection/components/molecules/popconfirm/popconfirm.js +1 -1
  214. package/dist/collection/components/molecules/popover/popover.js +1 -1
  215. package/dist/collection/components/molecules/tooltip/tooltip.js +1 -1
  216. package/dist/collection/components/organism/datetime-picker/datetime-picker.js +15 -1
  217. package/dist/collection/components/organism/form/form.js +1 -0
  218. package/dist/collection/components/organism/form-2/bcm-form-components.js +4 -1
  219. package/dist/collection/components/other_deprecated/old-popover/old-popover.js +1 -1
  220. package/dist/collection/components/third-parts/rc-picker/date.js +572 -0
  221. package/dist/collection/components/third-parts/rc-picker/rc-picker.css +366 -0
  222. package/dist/collection/components/third-parts/rc-picker/rc-picker.js +228 -0
  223. package/dist/collection/components/third-parts/table/table-definations.js +42 -0
  224. package/dist/collection/components/third-parts/table/table.css +7169 -0
  225. package/dist/collection/components/third-parts/table/table.js +284 -0
  226. package/dist/collection/global/global.js +6 -0
  227. package/dist/collection/models/bcm.js +1 -0
  228. package/dist/collection/templates/index.js +2 -0
  229. package/dist/collection/templates/toolbar-hamburger-template.js +14 -0
  230. package/dist/collection/templates/toolbar-template.js +15 -0
  231. package/dist/components/_commonjsHelpers.js +16 -1
  232. package/dist/components/bcm-date.d.ts +11 -0
  233. package/dist/components/bcm-date.js +161 -0
  234. package/dist/components/bcm-form-2.js +4 -1
  235. package/dist/components/bcm-form.js +1 -0
  236. package/dist/components/bcm-input-dropdown.d.ts +11 -0
  237. package/dist/components/bcm-input-dropdown.js +296 -0
  238. package/dist/components/bcm-rc-picker.d.ts +11 -0
  239. package/dist/components/bcm-rc-picker.js +10 -0
  240. package/dist/components/bcm-table.js +111873 -41
  241. package/dist/components/bcm.js +1 -0
  242. package/dist/components/colors2.js +1 -1
  243. package/dist/components/datetime-picker.js +15 -1
  244. package/dist/components/generate.js +1 -1
  245. package/dist/components/index.d.ts +4 -1
  246. package/dist/components/index.js +9 -1
  247. package/dist/components/index3.js +5 -1
  248. package/dist/components/linked.js +1 -1
  249. package/dist/components/raf.js +1594 -0
  250. package/dist/components/rc-overflow.js +32 -1557
  251. package/dist/components/rc-picker.js +13821 -0
  252. package/dist/esm/{_commonjsHelpers-3016b722.js → _commonjsHelpers-be0d4ec8.js} +16 -1
  253. package/dist/esm/ag-grid-enterprise.auto.esm-9c29ba78.js +111635 -0
  254. package/dist/esm/{bcm-9f50af9c.js → bcm-ac17222c.js} +1 -0
  255. package/dist/esm/bcm-accordion.entry.js +5 -5
  256. package/dist/esm/bcm-alert.entry.js +9 -9
  257. package/dist/esm/bcm-attendance.entry.js +5 -5
  258. package/dist/esm/bcm-autocomplete.entry.js +3 -3
  259. package/dist/esm/bcm-avatar.entry.js +10 -10
  260. package/dist/esm/bcm-badge_15.entry.js +17 -17
  261. package/dist/esm/bcm-box.entry.js +1 -1
  262. package/dist/esm/bcm-breadcrumb.entry.js +6 -6
  263. package/dist/esm/bcm-button-group.entry.js +8 -8
  264. package/dist/esm/bcm-card.entry.js +10 -10
  265. package/dist/esm/bcm-checkbox-group.entry.js +12 -12
  266. package/dist/esm/bcm-checkbox-lite_9.entry.js +7 -7
  267. package/dist/esm/bcm-checkbox.entry.js +12 -12
  268. package/dist/esm/bcm-chip-group.entry.js +14 -14
  269. package/dist/esm/bcm-chip.entry.js +7 -7
  270. package/dist/esm/bcm-collapse-group.entry.js +1 -1
  271. package/dist/esm/bcm-collapse.entry.js +6 -6
  272. package/dist/esm/bcm-color-input.entry.js +10 -10
  273. package/dist/esm/{bcm-colorful.entry.js → bcm-colorful_2.entry.js} +363 -4
  274. package/dist/esm/bcm-colorpicker.entry.js +3 -3
  275. package/dist/esm/bcm-content.entry.js +1 -1
  276. package/dist/esm/bcm-date-picker.entry.js +8 -8
  277. package/dist/esm/bcm-date.entry.js +120 -0
  278. package/dist/esm/bcm-datetime-picker.entry.js +27 -13
  279. package/dist/esm/bcm-default.entry.js +5 -5
  280. package/dist/esm/bcm-drawer.entry.js +11 -11
  281. package/dist/esm/bcm-error-layout.entry.js +3 -3
  282. package/dist/esm/bcm-expansion-panel.entry.js +9 -9
  283. package/dist/esm/bcm-form-2.entry.js +12 -9
  284. package/dist/esm/bcm-form-group.entry.js +1 -1
  285. package/dist/esm/bcm-form.entry.js +7 -6
  286. package/dist/esm/bcm-input-custom.entry.js +6 -6
  287. package/dist/esm/bcm-input-dropdown.entry.js +214 -0
  288. package/dist/esm/bcm-label.entry.js +10 -10
  289. package/dist/esm/bcm-link.entry.js +4 -4
  290. package/dist/esm/bcm-list_3.entry.js +85 -1609
  291. package/dist/esm/bcm-message.entry.js +3 -3
  292. package/dist/esm/bcm-modal-2-footer.entry.js +11 -11
  293. package/dist/esm/bcm-modal-2-header.entry.js +10 -10
  294. package/dist/esm/bcm-modal-2.entry.js +11 -11
  295. package/dist/esm/bcm-modal.entry.js +9 -9
  296. package/dist/esm/bcm-notification.entry.js +3 -3
  297. package/dist/esm/bcm-old-input.entry.js +4 -4
  298. package/dist/esm/bcm-old-tag_2.entry.js +3 -3
  299. package/dist/esm/bcm-overlay_2.entry.js +4 -4
  300. package/dist/esm/bcm-popconfirm-box.entry.js +10 -10
  301. package/dist/esm/bcm-popconfirm.entry.js +7 -7
  302. package/dist/esm/bcm-progress.entry.js +8 -8
  303. package/dist/esm/bcm-radio-group.entry.js +13 -13
  304. package/dist/esm/bcm-radio.entry.js +11 -11
  305. package/dist/esm/bcm-range.entry.js +7 -7
  306. package/dist/esm/bcm-rc-picker.entry.js +8116 -0
  307. package/dist/esm/bcm-result.entry.js +3 -3
  308. package/dist/esm/bcm-select-group.entry.js +3 -3
  309. package/dist/esm/bcm-select-option.entry.js +3 -3
  310. package/dist/esm/bcm-select.entry.js +5 -5
  311. package/dist/esm/bcm-skeleton.entry.js +5 -5
  312. package/dist/esm/bcm-step.entry.js +8 -8
  313. package/dist/esm/bcm-stepper.entry.js +13 -13
  314. package/dist/esm/bcm-switch.entry.js +9 -9
  315. package/dist/esm/bcm-tab-pane.entry.js +3 -3
  316. package/dist/esm/bcm-tab.entry.js +3 -3
  317. package/dist/esm/bcm-table.entry.js +236 -38
  318. package/dist/esm/bcm-tabs-content.entry.js +3 -3
  319. package/dist/esm/bcm-tabs.entry.js +3 -3
  320. package/dist/esm/bcm-tag.entry.js +8 -8
  321. package/dist/esm/bcm-textarea.entry.js +10 -10
  322. package/dist/esm/bcm-time-picker.entry.js +8 -8
  323. package/dist/esm/bcm-timeline-item.entry.js +3 -3
  324. package/dist/esm/bcm-timeline.entry.js +3 -3
  325. package/dist/esm/bcm-toast.entry.js +8 -8
  326. package/dist/esm/bcm-treeview-group.entry.js +1 -1
  327. package/dist/esm/bromcom-ui.js +6 -5
  328. package/dist/esm/{caption-template-34a1cb44.js → caption-template-e973a48c.js} +2 -2
  329. package/dist/esm/{color-helper-116755ed.js → color-helper-c4fa9ebc.js} +1 -1
  330. package/dist/esm/{colors-44c95e7e.js → colors-e1c31f79.js} +1 -1
  331. package/dist/esm/{floating-ui-e7341329.js → floating-ui-54c52eaa.js} +1 -1
  332. package/dist/esm/{generate-f05c24f0.js → generate-903ca965.js} +2 -2
  333. package/dist/esm/{global-c0136d64.js → global-9b1304a4.js} +6 -1
  334. package/dist/esm/{index-348b16ad.js → index-0615c2b8.js} +3 -1
  335. package/dist/esm/{index-0052017c.js → index-7e71bbc8.js} +1 -1
  336. package/dist/esm/{index-6310a048.js → index-a6d9d0af.js} +6 -2
  337. package/dist/esm/{index-ed9652af.js → index-b84bc8c9.js} +1 -1
  338. package/dist/esm/index-c4568336.js +1594 -0
  339. package/dist/esm/{input-template-85f595d7.js → input-template-332be34e.js} +4 -4
  340. package/dist/esm/{is-load-decorator-07d3502a.js → is-load-decorator-6784aa87.js} +1 -1
  341. package/dist/esm/{json-parse-decarator-2f05d903.js → json-parse-decarator-498602a3.js} +2 -2
  342. package/dist/esm/{label-template-98dafeb3.js → label-template-f156f33f.js} +4 -4
  343. package/dist/esm/loader.js +6 -5
  344. package/dist/esm/moment-24231dde.js +5686 -0
  345. package/dist/esm/{number-helper-a66bec28.js → number-helper-3809b83b.js} +1 -1
  346. package/dist/esm/old-bcm-popover-box.entry.js +11 -11
  347. package/dist/esm/old-bcm-popover.entry.js +7 -7
  348. package/dist/esm/{package-56c53e8e.js → package-9887f1c0.js} +1 -1
  349. package/dist/esm/{popover-placement-78f86f15.js → popover-placement-018109c4.js} +1 -1
  350. package/dist/esm/{slot-template-672e941d.js → slot-template-46035685.js} +2 -2
  351. package/dist/esm/{stepper-states-a0e95cc8.js → stepper-states-372c3c9c.js} +3 -3
  352. package/dist/esm/{string-helper-6bd24967.js → string-helper-4a28f775.js} +2 -2
  353. package/dist/esm/{validators-f99b9189.js → validators-c8f34de9.js} +1 -1
  354. package/dist/types/components/molecules/input-dropdown/input-dropdown.d.ts +54 -0
  355. package/dist/types/components/organism/datetime-picker/datetime-picker.d.ts +1 -0
  356. package/dist/types/components/third-parts/rc-picker/date.d.ts +46 -0
  357. package/dist/types/components/third-parts/rc-picker/rc-picker.d.ts +20 -0
  358. package/dist/types/components/third-parts/table/table-definations.d.ts +28 -0
  359. package/dist/types/components/third-parts/table/table.d.ts +37 -0
  360. package/dist/types/components.d.ts +170 -3
  361. package/dist/types/models/bcm.d.ts +9 -1
  362. package/dist/types/templates/index.d.ts +2 -0
  363. package/dist/types/templates/toolbar-hamburger-template.d.ts +12 -0
  364. package/dist/types/templates/toolbar-template.d.ts +13 -0
  365. package/package.json +7 -3
  366. package/dist/bromcom-ui/p-0c43313a.entry.js +0 -5
  367. package/dist/bromcom-ui/p-15758356.entry.js +0 -5
  368. package/dist/bromcom-ui/p-18e7852c.entry.js +0 -5
  369. package/dist/bromcom-ui/p-1eabd5dc.js +0 -10
  370. package/dist/bromcom-ui/p-2c6d6b81.entry.js +0 -5
  371. package/dist/bromcom-ui/p-36febf51.entry.js +0 -5
  372. package/dist/bromcom-ui/p-663766cf.entry.js +0 -5
  373. package/dist/bromcom-ui/p-6d7fe687.js +0 -6
  374. package/dist/bromcom-ui/p-6f56f8ca.js +0 -5
  375. package/dist/bromcom-ui/p-74b2d896.js +0 -5
  376. package/dist/bromcom-ui/p-a56e8c98.js +0 -5
  377. package/dist/bromcom-ui/p-aa0eca7a.entry.js +0 -13
  378. package/dist/bromcom-ui/p-c0a68c3a.js +0 -5
  379. package/dist/bromcom-ui/p-c49d038e.js +0 -5
  380. package/dist/bromcom-ui/p-ce8592a0.js +0 -5
  381. package/dist/bromcom-ui/p-cf0ab7f0.entry.js +0 -5
  382. package/dist/bromcom-ui/p-d65a1e21.js +0 -11
  383. package/dist/bromcom-ui/p-d673d273.entry.js +0 -5
  384. package/dist/bromcom-ui/p-f2386dd2.entry.js +0 -5
  385. package/dist/bromcom-ui/p-fa7dc5ae.entry.js +0 -5
  386. package/dist/cjs/bcm-input.cjs.entry.js +0 -371
  387. package/dist/collection/components/other/data-table/table.js +0 -88
  388. package/dist/esm/bcm-input.entry.js +0 -367
  389. package/dist/types/components/other/data-table/table.d.ts +0 -8
@@ -6,38 +6,39 @@
6
6
 
7
7
  Object.defineProperty(exports, '__esModule', { value: true });
8
8
 
9
- const index$2 = require('./index-ddfd6d8f.js');
10
- const isLoadDecorator = require('./is-load-decorator-137dded1.js');
11
- const jsonParseDecarator = require('./json-parse-decarator-08847f37.js');
12
- require('./color-helper-7ab15732.js');
9
+ const index$1 = require('./index-c591ecec.js');
10
+ const isLoadDecorator = require('./is-load-decorator-7575fbd2.js');
11
+ const jsonParseDecarator = require('./json-parse-decarator-d9d1452c.js');
12
+ require('./color-helper-c3a819ea.js');
13
13
  require('./datetime-helper-eaf4fadb.js');
14
- const generate = require('./generate-c6ed8219.js');
15
- const numberHelper = require('./number-helper-e137c8d6.js');
16
- const stringHelper = require('./string-helper-d681e5c7.js');
17
- const validators = require('./validators-77b56203.js');
14
+ const generate = require('./generate-7e161828.js');
15
+ const numberHelper = require('./number-helper-c26ca8a7.js');
16
+ const stringHelper = require('./string-helper-c432b17c.js');
17
+ const validators = require('./validators-5ca90062.js');
18
18
  require('./element-dragger-a8562f82.js');
19
- const popoverPlacement = require('./popover-placement-ccb40073.js');
19
+ const popoverPlacement = require('./popover-placement-2161105e.js');
20
20
  const utils = require('./utils-fc077139.js');
21
- const bcm = require('./bcm-ab921827.js');
22
- const captionTemplate = require('./caption-template-8d099fd6.js');
23
- const index$1 = require('./index-fdbf5226.js');
21
+ const bcm = require('./bcm-fd724fe9.js');
22
+ const captionTemplate = require('./caption-template-81dbc490.js');
23
+ const index = require('./index-95ae50d0.js');
24
24
  require('./types-cc4adee7.js');
25
- const labelTemplate = require('./label-template-4d5f99a5.js');
25
+ const labelTemplate = require('./label-template-8738acbd.js');
26
26
  require('./types-7523fd99.js');
27
- const index$3 = require('./index-4506fcd7.js');
28
- const index$4 = require('./index-906fb4e5.js');
29
- const _commonjsHelpers = require('./_commonjsHelpers-bd20f4c0.js');
30
- const inputTemplate = require('./input-template-99396b47.js');
27
+ const index$2 = require('./index-d321de96.js');
28
+ const index$3 = require('./index-e05a7c6f.js');
29
+ const index$4 = require('./index-3d67f613.js');
30
+ const inputTemplate = require('./input-template-c8d5ae30.js');
31
31
  require('./colors-56282b00.js');
32
- require('./colors-e1d142ad.js');
33
- require('./package-de04912b.js');
34
- require('./slot-template-d70ea082.js');
32
+ require('./colors-078851ec.js');
33
+ require('./_commonjsHelpers-ed84c3ca.js');
34
+ require('./package-016f287a.js');
35
+ require('./slot-template-bc4e1c50.js');
35
36
 
36
37
  const CheckboxTemplate = ({ disabled, checked, readonly, required, indeterminate, hidden, captionType, _id }) => {
37
38
  // if ( indeterminate ) {
38
39
  // checked = indeterminate == 'determinate' ? true : false
39
40
  // }
40
- const hostClasses = index$1.classnames('bcm-checkbox', 'bcm-checkbox__type-default', `bcm-checkbox-size-medium`, {
41
+ const hostClasses = index.classnames('bcm-checkbox', 'bcm-checkbox__type-default', `bcm-checkbox-size-medium`, {
41
42
  // 'size-2': size === Bcm.Size.small || size === Bcm.Size.medium,
42
43
  // 'size-3': optionType === 'button' && size === Bcm.Size.large,
43
44
  'error': captionType == bcm.Bcm$1.Status.error,
@@ -47,22 +48,22 @@ const CheckboxTemplate = ({ disabled, checked, readonly, required, indeterminate
47
48
  required,
48
49
  readonly,
49
50
  });
50
- const bcmCheckboxIconClass = index$1.classnames('bcm-checkbox__label-icon', 'bcm-checkbox__label-icon-lite', 'bcm-checkbox__label-icon-' + indeterminate, {
51
+ const bcmCheckboxIconClass = index.classnames('bcm-checkbox__label-icon', 'bcm-checkbox__label-icon-lite', 'bcm-checkbox__label-icon-' + indeterminate, {
51
52
  'bcm-checkbox__label-icon-checked': checked,
52
53
  });
53
- const bcmCheckboxLabelClass = index$1.classnames('bcm-checkbox__label');
54
- return (index$2.h("div", { class: hostClasses },
55
- index$2.h("input", { tabindex: "-1", id: _id, type: "checkbox", checked: checked, disabled: disabled, required: required, readonly: readonly }),
56
- index$2.h("label", { class: bcmCheckboxLabelClass, htmlFor: _id },
57
- index$2.h("span", { class: bcmCheckboxIconClass },
58
- index$2.h("bcm-icon", { icon: "far fa-check" })))));
54
+ const bcmCheckboxLabelClass = index.classnames('bcm-checkbox__label');
55
+ return (index$1.h("div", { class: hostClasses },
56
+ index$1.h("input", { tabindex: "-1", id: _id, type: "checkbox", checked: checked, disabled: disabled, required: required, readonly: readonly }),
57
+ index$1.h("label", { class: bcmCheckboxLabelClass, htmlFor: _id },
58
+ index$1.h("span", { class: bcmCheckboxIconClass },
59
+ index$1.h("bcm-icon", { icon: "far fa-check" })))));
59
60
  };
60
61
 
61
62
  const InfoFooterTemplate = ({ selected, total, found, multiple, variableText }) => {
62
63
  total = total || 0;
63
64
  variableText = variableText ? utils.pluralize(variableText, total) : 'items';
64
- return (index$2.h("footer", { class: "bcm-info-footer" },
65
- index$2.h("bcm-text", { scale: "size-1", color: "grey-8" },
65
+ return (index$1.h("footer", { class: "bcm-info-footer" },
66
+ index$1.h("bcm-text", { scale: "size-1", color: "grey-8" },
66
67
  (multiple && selected > 0) && ` ( ${selected} selected ) `,
67
68
  ` Total ${total} `,
68
69
  found != null && ` / ${found} `,
@@ -104,20 +105,20 @@ const ListItemTemplate = ({ item, treeview, highlight, checkboxes, size, selecte
104
105
  item.open = item.isSearching;
105
106
  openGroup(item.id);
106
107
  };
107
- return (index$2.h("div", { id: item.id, hidden: item.hidden, "on-focus": e => !unClickable && !disabled && focusItem(e), class: index$1.classnames('bcm-list__item',
108
+ return (index$1.h("div", { id: item.id, hidden: item.hidden, "on-focus": e => !unClickable && !disabled && focusItem(e), class: index.classnames('bcm-list__item',
108
109
  // size === 'large' ? 'size-3' : 'size-2',
109
110
  'bcm-list__item-' + size, {
110
111
  'bcm-list__item--group': !treeview && item.type == 'group',
111
112
  'bcm-list__item--readonly': readonly,
112
113
  }) },
113
- index$2.h("div", { class: index$1.classnames('bcm-list__item-content', !checkboxes && item.selected && 'selected', { disabled: disabled }) },
114
- treeview && (index$2.h("div", { class: "bcm-list__item-content-collapse-icon", onClick: () => collapseClick() }, isHaveChildren && index$2.h("bcm-icon", { icon: index$1.classnames('fas fa-caret-' + (item.isSearching || item.open ? 'down' : 'right')) }))),
115
- index$2.h("div", { class: index$1.classnames('bcm-list__item-content-text', { treeview }), onClick: (e) => itemClick(e) },
116
- checkboxes && (treeview || (!treeview && item.type != 'group')) && (index$2.h("div", { class: "bcm-list__item-content-text-checkbox" },
117
- index$2.h(CheckboxTemplate, { indeterminate: item.indeterminate, checked: item.checked, disabled: item.disabled }))),
118
- index$2.h("span", Object.assign({ class: "bcm-list__item-content-text-inner" }, (item.title && { "title": item.title }), { innerHTML: text })))),
119
- (treeview || !treeview && item.type == "group") && isHaveChildren && (index$2.h("div", { class: "bcm-list__item-childs" }, (item.isSearching || item.open || (!treeview && item.type == "group")) &&
120
- item.items.map((item) => (index$2.h(ListItemTemplate, { highlight: highlight, item: item, searchIsOnlyChilds: searchIsOnlyChilds, treeview: treeview, checkboxes: checkboxes, size: size, selectedItem: selectedItem, checkedItem: checkedItem, openGroup: parentId => openGroup(parentId), focusItem: itemId => focusItem(itemId) })))))));
114
+ index$1.h("div", { class: index.classnames('bcm-list__item-content', !checkboxes && item.selected && 'selected', { disabled: disabled }) },
115
+ treeview && (index$1.h("div", { class: "bcm-list__item-content-collapse-icon", onClick: () => collapseClick() }, isHaveChildren && index$1.h("bcm-icon", { icon: index.classnames('fas fa-caret-' + (item.isSearching || item.open ? 'down' : 'right')) }))),
116
+ index$1.h("div", { class: index.classnames('bcm-list__item-content-text', { treeview }), onClick: (e) => itemClick(e) },
117
+ checkboxes && (treeview || (!treeview && item.type != 'group')) && (index$1.h("div", { class: "bcm-list__item-content-text-checkbox" },
118
+ index$1.h(CheckboxTemplate, { indeterminate: item.indeterminate, checked: item.checked, disabled: item.disabled }))),
119
+ index$1.h("span", Object.assign({ class: "bcm-list__item-content-text-inner" }, (item.title && { "title": item.title }), { innerHTML: text })))),
120
+ (treeview || !treeview && item.type == "group") && isHaveChildren && (index$1.h("div", { class: "bcm-list__item-childs" }, (item.isSearching || item.open || (!treeview && item.type == "group")) &&
121
+ item.items.map((item) => (index$1.h(ListItemTemplate, { highlight: highlight, item: item, searchIsOnlyChilds: searchIsOnlyChilds, treeview: treeview, checkboxes: checkboxes, size: size, selectedItem: selectedItem, checkedItem: checkedItem, openGroup: parentId => openGroup(parentId), focusItem: itemId => focusItem(itemId) })))))));
121
122
  };
122
123
 
123
124
  const ListTemplate = ({ highlight, selectAllItem, bcmListContainer, treeview, checkboxes, checkAll, infoFooter, value, totalData, searchFound, variableText, _id, data, width, height, size, searchPlaceholder, minSearchLength, selectedItem, openGroup, checkedItem, onScrollEvent, focusItem, items, searchable, searchIsOnlyChilds, emptyText, emptyIcon, }) => {
@@ -134,24 +135,24 @@ const ListTemplate = ({ highlight, selectAllItem, bcmListContainer, treeview, ch
134
135
  'flex-direction': 'column',
135
136
  };
136
137
  };
137
- return (index$2.h("div", { id: `bcm-list-${_id}`, class: bcmListContainer, style: { '--height': height, '--width': width } },
138
- data && searchable && (index$2.h("section", { class: "bcm-list__container-search" },
139
- index$2.h("bcm-search", { size: size, id: `bcm-list-${_id}-search`, data: data, clearable: true, placeholder: searchPlaceholder, "min-search-length": minSearchLength, searchIsOnlyChilds: searchIsOnlyChilds }))),
140
- index$2.h("main", { onScroll: e => onScrollEvent(e), class: "scrolling", style: { 'overscroll-behavior': 'none' } },
141
- index$2.h("div", { style: setScrollHeight() },
142
- checkAll && searchFound != 0 && items && items.length > 0 && checkboxes && showSelectAll && (index$2.h("section", { class: "bcm-list__container-select-all" },
143
- index$2.h(ListItemTemplate, { size: size, item: selectAllItem, treeview: false, checkboxes: true, selectedItem: itemId => selectedItem(itemId), checkedItem: itemId => checkedItem(itemId), openGroup: parentId => openGroup(parentId), focusItem: itemId => focusItem(itemId) }))),
144
- items.map((item) => (index$2.h(ListItemTemplate, { highlight: highlight, size: size, item: item, searchIsOnlyChilds: searchIsOnlyChilds, treeview: treeview, checkboxes: checkboxes, selectedItem: itemId => selectedItem(itemId), checkedItem: itemId => checkedItem(itemId), openGroup: parentId => openGroup(parentId), focusItem: itemId => focusItem(itemId) }))),
145
- (!items || items.length === 0) && searchFound != 0 && (index$2.h("section", { class: "bcm-list__container-no-data" },
146
- index$2.h("bcm-empty", { style: { height: 'auto' }, icon: emptyIcon },
147
- index$2.h("span", { innerHTML: emptyText || 'No data' })))),
148
- searchFound == 0 && (index$2.h("section", { class: "bcm-list__container-no-data" },
149
- index$2.h("bcm-empty", { style: { height: 'auto' }, icon: emptyIcon },
150
- index$2.h("span", { innerHTML: emptyText || 'No Data Found' })))))),
151
- infoFooter && data && data.length > 0 && (index$2.h(InfoFooterTemplate, { selected: value === null || value === void 0 ? void 0 : value.length, total: totalData, found: searchFound, multiple: checkboxes, variableText: variableText }))));
138
+ return (index$1.h("div", { id: `bcm-list-${_id}`, class: bcmListContainer, style: { '--height': height, '--width': width } },
139
+ data && searchable && (index$1.h("section", { class: "bcm-list__container-search" },
140
+ index$1.h("bcm-search", { size: size, id: `bcm-list-${_id}-search`, data: data, clearable: true, placeholder: searchPlaceholder, "min-search-length": minSearchLength, searchIsOnlyChilds: searchIsOnlyChilds }))),
141
+ index$1.h("main", { onScroll: e => onScrollEvent(e), class: "scrolling", style: { 'overscroll-behavior': 'none' } },
142
+ index$1.h("div", { style: setScrollHeight() },
143
+ checkAll && searchFound != 0 && items && items.length > 0 && checkboxes && showSelectAll && (index$1.h("section", { class: "bcm-list__container-select-all" },
144
+ index$1.h(ListItemTemplate, { size: size, item: selectAllItem, treeview: false, checkboxes: true, selectedItem: itemId => selectedItem(itemId), checkedItem: itemId => checkedItem(itemId), openGroup: parentId => openGroup(parentId), focusItem: itemId => focusItem(itemId) }))),
145
+ items.map((item) => (index$1.h(ListItemTemplate, { highlight: highlight, size: size, item: item, searchIsOnlyChilds: searchIsOnlyChilds, treeview: treeview, checkboxes: checkboxes, selectedItem: itemId => selectedItem(itemId), checkedItem: itemId => checkedItem(itemId), openGroup: parentId => openGroup(parentId), focusItem: itemId => focusItem(itemId) }))),
146
+ (!items || items.length === 0) && searchFound != 0 && (index$1.h("section", { class: "bcm-list__container-no-data" },
147
+ index$1.h("bcm-empty", { style: { height: 'auto' }, icon: emptyIcon },
148
+ index$1.h("span", { innerHTML: emptyText || 'No data' })))),
149
+ searchFound == 0 && (index$1.h("section", { class: "bcm-list__container-no-data" },
150
+ index$1.h("bcm-empty", { style: { height: 'auto' }, icon: emptyIcon },
151
+ index$1.h("span", { innerHTML: emptyText || 'No Data Found' })))))),
152
+ infoFooter && data && data.length > 0 && (index$1.h(InfoFooterTemplate, { selected: value === null || value === void 0 ? void 0 : value.length, total: totalData, found: searchFound, multiple: checkboxes, variableText: variableText }))));
152
153
  };
153
154
 
154
- const { state: state$1 } = index$3.createStore({
155
+ const { state: state$1 } = index$2.createStore({
155
156
  value: new Map(),
156
157
  });
157
158
  const setValue$1 = val => {
@@ -861,12 +862,12 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
861
862
  };
862
863
  const BcmList = class {
863
864
  constructor(hostRef) {
864
- index$2.registerInstance(this, hostRef);
865
- this.bcmChecklist = index$2.createEvent(this, "bcm-checklist", 7);
866
- this.bcmSelected = index$2.createEvent(this, "bcm-selected", 7);
867
- this.change = index$2.createEvent(this, "bcm-change", 7);
868
- this.open = index$2.createEvent(this, "bcm-open", 7);
869
- this.close = index$2.createEvent(this, "bcm-close", 7);
865
+ index$1.registerInstance(this, hostRef);
866
+ this.bcmChecklist = index$1.createEvent(this, "bcm-checklist", 7);
867
+ this.bcmSelected = index$1.createEvent(this, "bcm-selected", 7);
868
+ this.change = index$1.createEvent(this, "bcm-change", 7);
869
+ this.open = index$1.createEvent(this, "bcm-open", 7);
870
+ this.close = index$1.createEvent(this, "bcm-close", 7);
870
871
  this.debounce = null;
871
872
  this.debounceHandler = generate.Generate.debounceInput(() => this.listenResize(), 300, false);
872
873
  this._id = generate.Generate.UID();
@@ -1563,7 +1564,7 @@ const BcmList = class {
1563
1564
  }
1564
1565
  render() {
1565
1566
  const { checkboxes, treeview, label, size, disabled, readonly, required, hidden, fullWidth, searchable } = this.getOptions();
1566
- const hostClasses = index$1.classnames("bcm-list", `bcm-list__size-${size}`, `bcm-list__${this.type}`, size === "large" ? "size-3" : "size-2", {
1567
+ const hostClasses = index.classnames("bcm-list", `bcm-list__size-${size}`, `bcm-list__${this.type}`, size === "large" ? "size-3" : "size-2", {
1567
1568
  "error": this.captionType == bcm.Bcm.Status.error,
1568
1569
  "full-width": fullWidth,
1569
1570
  "bcm-list__linked": this.linkedComponent,
@@ -1571,7 +1572,7 @@ const BcmList = class {
1571
1572
  readonly,
1572
1573
  disabled,
1573
1574
  });
1574
- const bcmListContainer = index$1.classnames("bcm-list__container", this.linkedComponent ? "bcm-list__type-linked-component" : `bcm-list__type-${this.type}`, {
1575
+ const bcmListContainer = index.classnames("bcm-list__container", this.linkedComponent ? "bcm-list__type-linked-component" : `bcm-list__type-${this.type}`, {
1575
1576
  "is-open": this.isOpen && this.calculatedViewport,
1576
1577
  "error": this.captionType == bcm.Bcm.Status.error,
1577
1578
  "full-width": fullWidth,
@@ -1579,18 +1580,18 @@ const BcmList = class {
1579
1580
  readonly,
1580
1581
  disabled,
1581
1582
  });
1582
- const bcmListInput = index$1.classnames("bcm-list__input");
1583
+ const bcmListInput = index.classnames("bcm-list__input");
1583
1584
  const openedType = this.type == "select" || this.type == "autocomplete" || this.linkedComponent;
1584
- return (index$2.h(index$2.Host, { class: hostClasses, tabindex: "0", style: {
1585
+ return (index$1.h(index$1.Host, { class: hostClasses, tabindex: "0", style: {
1585
1586
  "--width": fullWidth ? "100%" : this.width,
1586
1587
  "--height": openedType ? "100%" : this.height,
1587
1588
  "--max-height": openedType ? "inherit" : this.maxHeight,
1588
1589
  "--min-height": openedType ? "inherit" : this.minHeight,
1589
- } }, index$2.h("div", { id: `bcm-list-label-${this._id}`, class: "bcm-list__label" }, label && (index$2.h("div", null, index$2.h(labelTemplate.LabelTemplate, { size: this.size, type: this.captionType, value: label, required: required, htmlFor: this._id })))), this.type == "select" && (index$2.h("div", { id: `bcm-list-input-${this._id}`, class: bcmListInput }, index$2.h("span", { class: index$1.classnames("bcm-list__input-container", { "type-single": !checkboxes, "value-empty": !this.value }) }, this.checkboxes ? (this.value && this.value.length > 0 ? (index$2.h("bcm-rc-overflow", { data: this.tagData, maxCount: this.tagCount })) : (index$2.h("span", { class: "bcm-list__input-placeholder" }, this.placeholder))) : this.value ? (this.inputText) : (index$2.h("span", { class: "bcm-list__input-placeholder" }, this.placeholder))), index$2.h("span", { class: index$1.classnames("bcm-list__input-buttons", {
1590
+ } }, index$1.h("div", { id: `bcm-list-label-${this._id}`, class: "bcm-list__label" }, label && (index$1.h("div", null, index$1.h(labelTemplate.LabelTemplate, { size: this.size, type: this.captionType, value: label, required: required, htmlFor: this._id })))), this.type == "select" && (index$1.h("div", { id: `bcm-list-input-${this._id}`, class: bcmListInput }, index$1.h("span", { class: index.classnames("bcm-list__input-container", { "type-single": !checkboxes, "value-empty": !this.value }) }, this.checkboxes ? (this.value && this.value.length > 0 ? (index$1.h("bcm-rc-overflow", { data: this.tagData, maxCount: this.tagCount })) : (index$1.h("span", { class: "bcm-list__input-placeholder" }, this.placeholder))) : this.value ? (this.inputText) : (index$1.h("span", { class: "bcm-list__input-placeholder" }, this.placeholder))), index$1.h("span", { class: index.classnames("bcm-list__input-buttons", {
1590
1591
  disabled: disabled,
1591
- }) }, this.clearable && this.value && (index$2.h("div", { class: "bcm-list__input-buttons-button" }, index$2.h("bcm-icon", { icon: "fal fa-times", onClick: e => !disabled && this.setClear(e) }))), index$2.h("div", { class: `bcm-list__input-buttons-button caret-is ${this.isOpen && this.calculatedViewport && "caret-is-open"}` }, index$2.h("bcm-icon", { icon: `far fa-angle-down` }))))), this.type === "autocomplete" && (index$2.h("div", { id: `bcm-list-input-${this._id}`, class: index$1.classnames(bcmListInput, { "bcm-list__input-autocomplete": this.type == "autocomplete" }) }, index$2.h("span", { class: "bcm-list__input-container", id: `bcm-list-input-tag-container-${this._id}` }, this.checkboxes && index$2.h("span", { class: "bcm-list__input-tag-container", id: `bcm-list-input-tag-container-${this._id}-autocomplete` }), index$2.h("bcm-search", { id: `bcm-list-input-tag-container-${this._id}-autocomplete-input`, class: "bcm-list__autocomplete", data: this.data, clearable: true, "full-width": true, "no-caption": true, placeholder: this.placeholder })))), index$2.h(ListTemplate, { highlight: this.highlightText, searchable: this.type == "autocomplete" ? false : searchable, bcmListContainer: bcmListContainer, checkboxes: checkboxes, treeview: treeview, infoFooter: this.infoFooter, value: this.value, totalData: this.totalData, searchFound: this.searchFound, variableText: this.variableText, searchPlaceholder: this.searchPlaceholder, minSearchLength: this.minSearchLength, searchIsOnlyChilds: this.searchIsOnlyChilds, _id: this._id, checkAll: this.checkAll, data: this.getItems(), width: this.width, height: this.height, size: this.size, selectAllItem: this.selectAllItem, onScrollEvent: e => this.dataScrollEvent(e), items: this.getLimitedItems(this.searchGetParents), selectedItem: itemId => this.selectedItem(itemId), checkedItem: itemId => this.checkedItem(itemId), openGroup: parentId => this.openGroup(parentId), focusItem: itemId => this.focusItem(itemId), emptyText: this.emptyText, emptyIcon: this.emptyIcon }), index$2.h(captionTemplate.CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
1592
+ }) }, this.clearable && this.value && (index$1.h("div", { class: "bcm-list__input-buttons-button" }, index$1.h("bcm-icon", { icon: "fal fa-times", onClick: e => !disabled && this.setClear(e) }))), index$1.h("div", { class: `bcm-list__input-buttons-button caret-is ${this.isOpen && this.calculatedViewport && "caret-is-open"}` }, index$1.h("bcm-icon", { icon: `far fa-angle-down` }))))), this.type === "autocomplete" && (index$1.h("div", { id: `bcm-list-input-${this._id}`, class: index.classnames(bcmListInput, { "bcm-list__input-autocomplete": this.type == "autocomplete" }) }, index$1.h("span", { class: "bcm-list__input-container", id: `bcm-list-input-tag-container-${this._id}` }, this.checkboxes && index$1.h("span", { class: "bcm-list__input-tag-container", id: `bcm-list-input-tag-container-${this._id}-autocomplete` }), index$1.h("bcm-search", { id: `bcm-list-input-tag-container-${this._id}-autocomplete-input`, class: "bcm-list__autocomplete", data: this.data, clearable: true, "full-width": true, "no-caption": true, placeholder: this.placeholder })))), index$1.h(ListTemplate, { highlight: this.highlightText, searchable: this.type == "autocomplete" ? false : searchable, bcmListContainer: bcmListContainer, checkboxes: checkboxes, treeview: treeview, infoFooter: this.infoFooter, value: this.value, totalData: this.totalData, searchFound: this.searchFound, variableText: this.variableText, searchPlaceholder: this.searchPlaceholder, minSearchLength: this.minSearchLength, searchIsOnlyChilds: this.searchIsOnlyChilds, _id: this._id, checkAll: this.checkAll, data: this.getItems(), width: this.width, height: this.height, size: this.size, selectAllItem: this.selectAllItem, onScrollEvent: e => this.dataScrollEvent(e), items: this.getLimitedItems(this.searchGetParents), selectedItem: itemId => this.selectedItem(itemId), checkedItem: itemId => this.checkedItem(itemId), openGroup: parentId => this.openGroup(parentId), focusItem: itemId => this.focusItem(itemId), emptyText: this.emptyText, emptyIcon: this.emptyIcon }), index$1.h(captionTemplate.CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
1592
1593
  }
1593
- get el() { return index$2.getElement(this); }
1594
+ get el() { return index$1.getElement(this); }
1594
1595
  static get watchers() { return {
1595
1596
  "_id": ["watchId"],
1596
1597
  "value": ["handleValueChange"],
@@ -1607,8 +1608,8 @@ __decorate([
1607
1608
  ], BcmList.prototype, "dataChanged", null);
1608
1609
  BcmList.style = listCss;
1609
1610
 
1610
- function _extends$1() {
1611
- _extends$1 = Object.assign ? Object.assign.bind() : function (target) {
1611
+ function _extends() {
1612
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
1612
1613
  for (var i = 1; i < arguments.length; i++) {
1613
1614
  var source = arguments[i];
1614
1615
  for (var key in source) {
@@ -1619,37 +1620,37 @@ function _extends$1() {
1619
1620
  }
1620
1621
  return target;
1621
1622
  };
1622
- return _extends$1.apply(this, arguments);
1623
+ return _extends.apply(this, arguments);
1623
1624
  }
1624
1625
 
1625
- function _typeof$2(obj) {
1626
+ function _typeof(obj) {
1626
1627
  "@babel/helpers - typeof";
1627
1628
 
1628
- return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1629
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1629
1630
  return typeof obj;
1630
1631
  } : function (obj) {
1631
1632
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1632
- }, _typeof$2(obj);
1633
+ }, _typeof(obj);
1633
1634
  }
1634
1635
 
1635
- function _toPrimitive$1(input, hint) {
1636
- if (_typeof$2(input) !== "object" || input === null) return input;
1636
+ function _toPrimitive(input, hint) {
1637
+ if (_typeof(input) !== "object" || input === null) return input;
1637
1638
  var prim = input[Symbol.toPrimitive];
1638
1639
  if (prim !== undefined) {
1639
1640
  var res = prim.call(input, hint || "default");
1640
- if (_typeof$2(res) !== "object") return res;
1641
+ if (_typeof(res) !== "object") return res;
1641
1642
  throw new TypeError("@@toPrimitive must return a primitive value.");
1642
1643
  }
1643
1644
  return (hint === "string" ? String : Number)(input);
1644
1645
  }
1645
1646
 
1646
- function _toPropertyKey$1(arg) {
1647
- var key = _toPrimitive$1(arg, "string");
1648
- return _typeof$2(key) === "symbol" ? key : String(key);
1647
+ function _toPropertyKey(arg) {
1648
+ var key = _toPrimitive(arg, "string");
1649
+ return _typeof(key) === "symbol" ? key : String(key);
1649
1650
  }
1650
1651
 
1651
- function _defineProperty$1(obj, key, value) {
1652
- key = _toPropertyKey$1(key);
1652
+ function _defineProperty(obj, key, value) {
1653
+ key = _toPropertyKey(key);
1653
1654
  if (key in obj) {
1654
1655
  Object.defineProperty(obj, key, {
1655
1656
  value: value,
@@ -1663,7 +1664,7 @@ function _defineProperty$1(obj, key, value) {
1663
1664
  return obj;
1664
1665
  }
1665
1666
 
1666
- function ownKeys$1(object, enumerableOnly) {
1667
+ function ownKeys(object, enumerableOnly) {
1667
1668
  var keys = Object.keys(object);
1668
1669
  if (Object.getOwnPropertySymbols) {
1669
1670
  var symbols = Object.getOwnPropertySymbols(object);
@@ -1673,12 +1674,12 @@ function ownKeys$1(object, enumerableOnly) {
1673
1674
  }
1674
1675
  return keys;
1675
1676
  }
1676
- function _objectSpread2$1(target) {
1677
+ function _objectSpread2(target) {
1677
1678
  for (var i = 1; i < arguments.length; i++) {
1678
1679
  var source = null != arguments[i] ? arguments[i] : {};
1679
- i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
1680
- _defineProperty$1(target, key, source[key]);
1681
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
1680
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
1681
+ _defineProperty(target, key, source[key]);
1682
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
1682
1683
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1683
1684
  });
1684
1685
  }
@@ -1769,1469 +1770,6 @@ function _objectWithoutProperties(source, excluded) {
1769
1770
  return target;
1770
1771
  }
1771
1772
 
1772
- function _extends() {
1773
- _extends = Object.assign ? Object.assign.bind() : function (target) {
1774
- for (var i = 1; i < arguments.length; i++) {
1775
- var source = arguments[i];
1776
- for (var key in source) {
1777
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1778
- target[key] = source[key];
1779
- }
1780
- }
1781
- }
1782
- return target;
1783
- };
1784
- return _extends.apply(this, arguments);
1785
- }
1786
-
1787
- /** @license React v16.13.1
1788
- * react-is.production.min.js
1789
- *
1790
- * Copyright (c) Facebook, Inc. and its affiliates.
1791
- *
1792
- * This source code is licensed under the MIT license found in the
1793
- * LICENSE file in the root directory of this source tree.
1794
- */
1795
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
1796
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
1797
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element$1=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
1798
- var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
1799
- var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
1800
- var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
1801
-
1802
- var reactIs_production_min = {
1803
- AsyncMode: AsyncMode,
1804
- ConcurrentMode: ConcurrentMode,
1805
- ContextConsumer: ContextConsumer,
1806
- ContextProvider: ContextProvider,
1807
- Element: Element$1,
1808
- ForwardRef: ForwardRef,
1809
- Fragment: Fragment,
1810
- Lazy: Lazy,
1811
- Memo: Memo,
1812
- Portal: Portal,
1813
- Profiler: Profiler,
1814
- StrictMode: StrictMode,
1815
- Suspense: Suspense,
1816
- isAsyncMode: isAsyncMode,
1817
- isConcurrentMode: isConcurrentMode,
1818
- isContextConsumer: isContextConsumer,
1819
- isContextProvider: isContextProvider,
1820
- isElement: isElement,
1821
- isForwardRef: isForwardRef,
1822
- isFragment: isFragment,
1823
- isLazy: isLazy,
1824
- isMemo: isMemo,
1825
- isPortal: isPortal,
1826
- isProfiler: isProfiler,
1827
- isStrictMode: isStrictMode,
1828
- isSuspense: isSuspense,
1829
- isValidElementType: isValidElementType,
1830
- typeOf: typeOf
1831
- };
1832
-
1833
- _commonjsHelpers.createCommonjsModule(function (module, exports) {
1834
- });
1835
-
1836
- var reactIs = _commonjsHelpers.createCommonjsModule(function (module) {
1837
-
1838
- {
1839
- module.exports = reactIs_production_min;
1840
- }
1841
- });
1842
-
1843
- function toArray(children) {
1844
- var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1845
- var ret = [];
1846
- index$4.react.Children.forEach(children, function (child) {
1847
- if ((child === undefined || child === null) && !option.keepEmpty) {
1848
- return;
1849
- }
1850
- if (Array.isArray(child)) {
1851
- ret = ret.concat(toArray(child));
1852
- } else if (reactIs.isFragment(child) && child.props) {
1853
- ret = ret.concat(toArray(child.props.children, option));
1854
- } else {
1855
- ret.push(child);
1856
- }
1857
- });
1858
- return ret;
1859
- }
1860
-
1861
- function _typeof$1(obj) {
1862
- "@babel/helpers - typeof";
1863
-
1864
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1865
- return typeof obj;
1866
- } : function (obj) {
1867
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1868
- }, _typeof$1(obj);
1869
- }
1870
-
1871
- function _toPrimitive(input, hint) {
1872
- if (_typeof$1(input) !== "object" || input === null) return input;
1873
- var prim = input[Symbol.toPrimitive];
1874
- if (prim !== undefined) {
1875
- var res = prim.call(input, hint || "default");
1876
- if (_typeof$1(res) !== "object") return res;
1877
- throw new TypeError("@@toPrimitive must return a primitive value.");
1878
- }
1879
- return (hint === "string" ? String : Number)(input);
1880
- }
1881
-
1882
- function _toPropertyKey(arg) {
1883
- var key = _toPrimitive(arg, "string");
1884
- return _typeof$1(key) === "symbol" ? key : String(key);
1885
- }
1886
-
1887
- function _defineProperty(obj, key, value) {
1888
- key = _toPropertyKey(key);
1889
- if (key in obj) {
1890
- Object.defineProperty(obj, key, {
1891
- value: value,
1892
- enumerable: true,
1893
- configurable: true,
1894
- writable: true
1895
- });
1896
- } else {
1897
- obj[key] = value;
1898
- }
1899
- return obj;
1900
- }
1901
-
1902
- function ownKeys(object, enumerableOnly) {
1903
- var keys = Object.keys(object);
1904
- if (Object.getOwnPropertySymbols) {
1905
- var symbols = Object.getOwnPropertySymbols(object);
1906
- enumerableOnly && (symbols = symbols.filter(function (sym) {
1907
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
1908
- })), keys.push.apply(keys, symbols);
1909
- }
1910
- return keys;
1911
- }
1912
- function _objectSpread2(target) {
1913
- for (var i = 1; i < arguments.length; i++) {
1914
- var source = null != arguments[i] ? arguments[i] : {};
1915
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
1916
- _defineProperty(target, key, source[key]);
1917
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
1918
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1919
- });
1920
- }
1921
- return target;
1922
- }
1923
-
1924
- function _typeof(obj) {
1925
- "@babel/helpers - typeof";
1926
-
1927
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1928
- return typeof obj;
1929
- } : function (obj) {
1930
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1931
- }, _typeof(obj);
1932
- }
1933
-
1934
- function fillRef(ref, node) {
1935
- if (typeof ref === 'function') {
1936
- ref(node);
1937
- } else if (_typeof(ref) === 'object' && ref && 'current' in ref) {
1938
- ref.current = node;
1939
- }
1940
- }
1941
-
1942
- /**
1943
- * Merge refs into one ref function to support ref passing.
1944
- */
1945
- function composeRef() {
1946
- for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
1947
- refs[_key] = arguments[_key];
1948
- }
1949
- var refList = refs.filter(function (ref) {
1950
- return ref;
1951
- });
1952
- if (refList.length <= 1) {
1953
- return refList[0];
1954
- }
1955
- return function (node) {
1956
- refs.forEach(function (ref) {
1957
- fillRef(ref, node);
1958
- });
1959
- };
1960
- }
1961
- function supportRef(nodeOrComponent) {
1962
- var _type$prototype, _nodeOrComponent$prot;
1963
- var type = reactIs.isMemo(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;
1964
-
1965
- // Function component node
1966
- if (typeof type === 'function' && !((_type$prototype = type.prototype) !== null && _type$prototype !== void 0 && _type$prototype.render)) {
1967
- return false;
1968
- }
1969
-
1970
- // Class component
1971
- if (typeof nodeOrComponent === 'function' && !((_nodeOrComponent$prot = nodeOrComponent.prototype) !== null && _nodeOrComponent$prot !== void 0 && _nodeOrComponent$prot.render)) {
1972
- return false;
1973
- }
1974
- return true;
1975
- }
1976
- /* eslint-enable */
1977
-
1978
- function isDOM(node) {
1979
- // https://developer.mozilla.org/en-US/docs/Web/API/Element
1980
- // Since XULElement is also subclass of Element, we only need HTMLElement and SVGElement
1981
- return node instanceof HTMLElement || node instanceof SVGElement;
1982
- }
1983
-
1984
- /**
1985
- * Return if a node is a DOM node. Else will return by `findDOMNode`
1986
- */
1987
- function findDOMNode(node) {
1988
- if (isDOM(node)) {
1989
- return node;
1990
- }
1991
- if (node instanceof index$4.react.Component) {
1992
- return index$4.reactDom.findDOMNode(node);
1993
- }
1994
- return null;
1995
- }
1996
-
1997
- /**
1998
- * A collection of shims that provide minimal functionality of the ES6 collections.
1999
- *
2000
- * These implementations are not meant to be used outside of the ResizeObserver
2001
- * modules as they cover only a limited range of use cases.
2002
- */
2003
- /* eslint-disable require-jsdoc, valid-jsdoc */
2004
- var MapShim = (function () {
2005
- if (typeof Map !== 'undefined') {
2006
- return Map;
2007
- }
2008
- /**
2009
- * Returns index in provided array that matches the specified key.
2010
- *
2011
- * @param {Array<Array>} arr
2012
- * @param {*} key
2013
- * @returns {number}
2014
- */
2015
- function getIndex(arr, key) {
2016
- var result = -1;
2017
- arr.some(function (entry, index) {
2018
- if (entry[0] === key) {
2019
- result = index;
2020
- return true;
2021
- }
2022
- return false;
2023
- });
2024
- return result;
2025
- }
2026
- return /** @class */ (function () {
2027
- function class_1() {
2028
- this.__entries__ = [];
2029
- }
2030
- Object.defineProperty(class_1.prototype, "size", {
2031
- /**
2032
- * @returns {boolean}
2033
- */
2034
- get: function () {
2035
- return this.__entries__.length;
2036
- },
2037
- enumerable: true,
2038
- configurable: true
2039
- });
2040
- /**
2041
- * @param {*} key
2042
- * @returns {*}
2043
- */
2044
- class_1.prototype.get = function (key) {
2045
- var index = getIndex(this.__entries__, key);
2046
- var entry = this.__entries__[index];
2047
- return entry && entry[1];
2048
- };
2049
- /**
2050
- * @param {*} key
2051
- * @param {*} value
2052
- * @returns {void}
2053
- */
2054
- class_1.prototype.set = function (key, value) {
2055
- var index = getIndex(this.__entries__, key);
2056
- if (~index) {
2057
- this.__entries__[index][1] = value;
2058
- }
2059
- else {
2060
- this.__entries__.push([key, value]);
2061
- }
2062
- };
2063
- /**
2064
- * @param {*} key
2065
- * @returns {void}
2066
- */
2067
- class_1.prototype.delete = function (key) {
2068
- var entries = this.__entries__;
2069
- var index = getIndex(entries, key);
2070
- if (~index) {
2071
- entries.splice(index, 1);
2072
- }
2073
- };
2074
- /**
2075
- * @param {*} key
2076
- * @returns {void}
2077
- */
2078
- class_1.prototype.has = function (key) {
2079
- return !!~getIndex(this.__entries__, key);
2080
- };
2081
- /**
2082
- * @returns {void}
2083
- */
2084
- class_1.prototype.clear = function () {
2085
- this.__entries__.splice(0);
2086
- };
2087
- /**
2088
- * @param {Function} callback
2089
- * @param {*} [ctx=null]
2090
- * @returns {void}
2091
- */
2092
- class_1.prototype.forEach = function (callback, ctx) {
2093
- if (ctx === void 0) { ctx = null; }
2094
- for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
2095
- var entry = _a[_i];
2096
- callback.call(ctx, entry[1], entry[0]);
2097
- }
2098
- };
2099
- return class_1;
2100
- }());
2101
- })();
2102
-
2103
- /**
2104
- * Detects whether window and document objects are available in current environment.
2105
- */
2106
- var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
2107
-
2108
- // Returns global object of a current environment.
2109
- var global$1 = (function () {
2110
- if (typeof global !== 'undefined' && global.Math === Math) {
2111
- return global;
2112
- }
2113
- if (typeof self !== 'undefined' && self.Math === Math) {
2114
- return self;
2115
- }
2116
- if (typeof window !== 'undefined' && window.Math === Math) {
2117
- return window;
2118
- }
2119
- // eslint-disable-next-line no-new-func
2120
- return Function('return this')();
2121
- })();
2122
-
2123
- /**
2124
- * A shim for the requestAnimationFrame which falls back to the setTimeout if
2125
- * first one is not supported.
2126
- *
2127
- * @returns {number} Requests' identifier.
2128
- */
2129
- var requestAnimationFrame$1 = (function () {
2130
- if (typeof requestAnimationFrame === 'function') {
2131
- // It's required to use a bounded function because IE sometimes throws
2132
- // an "Invalid calling object" error if rAF is invoked without the global
2133
- // object on the left hand side.
2134
- return requestAnimationFrame.bind(global$1);
2135
- }
2136
- return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };
2137
- })();
2138
-
2139
- // Defines minimum timeout before adding a trailing call.
2140
- var trailingTimeout = 2;
2141
- /**
2142
- * Creates a wrapper function which ensures that provided callback will be
2143
- * invoked only once during the specified delay period.
2144
- *
2145
- * @param {Function} callback - Function to be invoked after the delay period.
2146
- * @param {number} delay - Delay after which to invoke callback.
2147
- * @returns {Function}
2148
- */
2149
- function throttle (callback, delay) {
2150
- var leadingCall = false, trailingCall = false, lastCallTime = 0;
2151
- /**
2152
- * Invokes the original callback function and schedules new invocation if
2153
- * the "proxy" was called during current request.
2154
- *
2155
- * @returns {void}
2156
- */
2157
- function resolvePending() {
2158
- if (leadingCall) {
2159
- leadingCall = false;
2160
- callback();
2161
- }
2162
- if (trailingCall) {
2163
- proxy();
2164
- }
2165
- }
2166
- /**
2167
- * Callback invoked after the specified delay. It will further postpone
2168
- * invocation of the original function delegating it to the
2169
- * requestAnimationFrame.
2170
- *
2171
- * @returns {void}
2172
- */
2173
- function timeoutCallback() {
2174
- requestAnimationFrame$1(resolvePending);
2175
- }
2176
- /**
2177
- * Schedules invocation of the original function.
2178
- *
2179
- * @returns {void}
2180
- */
2181
- function proxy() {
2182
- var timeStamp = Date.now();
2183
- if (leadingCall) {
2184
- // Reject immediately following calls.
2185
- if (timeStamp - lastCallTime < trailingTimeout) {
2186
- return;
2187
- }
2188
- // Schedule new call to be in invoked when the pending one is resolved.
2189
- // This is important for "transitions" which never actually start
2190
- // immediately so there is a chance that we might miss one if change
2191
- // happens amids the pending invocation.
2192
- trailingCall = true;
2193
- }
2194
- else {
2195
- leadingCall = true;
2196
- trailingCall = false;
2197
- setTimeout(timeoutCallback, delay);
2198
- }
2199
- lastCallTime = timeStamp;
2200
- }
2201
- return proxy;
2202
- }
2203
-
2204
- // Minimum delay before invoking the update of observers.
2205
- var REFRESH_DELAY = 20;
2206
- // A list of substrings of CSS properties used to find transition events that
2207
- // might affect dimensions of observed elements.
2208
- var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
2209
- // Check if MutationObserver is available.
2210
- var mutationObserverSupported = typeof MutationObserver !== 'undefined';
2211
- /**
2212
- * Singleton controller class which handles updates of ResizeObserver instances.
2213
- */
2214
- var ResizeObserverController = /** @class */ (function () {
2215
- /**
2216
- * Creates a new instance of ResizeObserverController.
2217
- *
2218
- * @private
2219
- */
2220
- function ResizeObserverController() {
2221
- /**
2222
- * Indicates whether DOM listeners have been added.
2223
- *
2224
- * @private {boolean}
2225
- */
2226
- this.connected_ = false;
2227
- /**
2228
- * Tells that controller has subscribed for Mutation Events.
2229
- *
2230
- * @private {boolean}
2231
- */
2232
- this.mutationEventsAdded_ = false;
2233
- /**
2234
- * Keeps reference to the instance of MutationObserver.
2235
- *
2236
- * @private {MutationObserver}
2237
- */
2238
- this.mutationsObserver_ = null;
2239
- /**
2240
- * A list of connected observers.
2241
- *
2242
- * @private {Array<ResizeObserverSPI>}
2243
- */
2244
- this.observers_ = [];
2245
- this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
2246
- this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
2247
- }
2248
- /**
2249
- * Adds observer to observers list.
2250
- *
2251
- * @param {ResizeObserverSPI} observer - Observer to be added.
2252
- * @returns {void}
2253
- */
2254
- ResizeObserverController.prototype.addObserver = function (observer) {
2255
- if (!~this.observers_.indexOf(observer)) {
2256
- this.observers_.push(observer);
2257
- }
2258
- // Add listeners if they haven't been added yet.
2259
- if (!this.connected_) {
2260
- this.connect_();
2261
- }
2262
- };
2263
- /**
2264
- * Removes observer from observers list.
2265
- *
2266
- * @param {ResizeObserverSPI} observer - Observer to be removed.
2267
- * @returns {void}
2268
- */
2269
- ResizeObserverController.prototype.removeObserver = function (observer) {
2270
- var observers = this.observers_;
2271
- var index = observers.indexOf(observer);
2272
- // Remove observer if it's present in registry.
2273
- if (~index) {
2274
- observers.splice(index, 1);
2275
- }
2276
- // Remove listeners if controller has no connected observers.
2277
- if (!observers.length && this.connected_) {
2278
- this.disconnect_();
2279
- }
2280
- };
2281
- /**
2282
- * Invokes the update of observers. It will continue running updates insofar
2283
- * it detects changes.
2284
- *
2285
- * @returns {void}
2286
- */
2287
- ResizeObserverController.prototype.refresh = function () {
2288
- var changesDetected = this.updateObservers_();
2289
- // Continue running updates if changes have been detected as there might
2290
- // be future ones caused by CSS transitions.
2291
- if (changesDetected) {
2292
- this.refresh();
2293
- }
2294
- };
2295
- /**
2296
- * Updates every observer from observers list and notifies them of queued
2297
- * entries.
2298
- *
2299
- * @private
2300
- * @returns {boolean} Returns "true" if any observer has detected changes in
2301
- * dimensions of it's elements.
2302
- */
2303
- ResizeObserverController.prototype.updateObservers_ = function () {
2304
- // Collect observers that have active observations.
2305
- var activeObservers = this.observers_.filter(function (observer) {
2306
- return observer.gatherActive(), observer.hasActive();
2307
- });
2308
- // Deliver notifications in a separate cycle in order to avoid any
2309
- // collisions between observers, e.g. when multiple instances of
2310
- // ResizeObserver are tracking the same element and the callback of one
2311
- // of them changes content dimensions of the observed target. Sometimes
2312
- // this may result in notifications being blocked for the rest of observers.
2313
- activeObservers.forEach(function (observer) { return observer.broadcastActive(); });
2314
- return activeObservers.length > 0;
2315
- };
2316
- /**
2317
- * Initializes DOM listeners.
2318
- *
2319
- * @private
2320
- * @returns {void}
2321
- */
2322
- ResizeObserverController.prototype.connect_ = function () {
2323
- // Do nothing if running in a non-browser environment or if listeners
2324
- // have been already added.
2325
- if (!isBrowser || this.connected_) {
2326
- return;
2327
- }
2328
- // Subscription to the "Transitionend" event is used as a workaround for
2329
- // delayed transitions. This way it's possible to capture at least the
2330
- // final state of an element.
2331
- document.addEventListener('transitionend', this.onTransitionEnd_);
2332
- window.addEventListener('resize', this.refresh);
2333
- if (mutationObserverSupported) {
2334
- this.mutationsObserver_ = new MutationObserver(this.refresh);
2335
- this.mutationsObserver_.observe(document, {
2336
- attributes: true,
2337
- childList: true,
2338
- characterData: true,
2339
- subtree: true
2340
- });
2341
- }
2342
- else {
2343
- document.addEventListener('DOMSubtreeModified', this.refresh);
2344
- this.mutationEventsAdded_ = true;
2345
- }
2346
- this.connected_ = true;
2347
- };
2348
- /**
2349
- * Removes DOM listeners.
2350
- *
2351
- * @private
2352
- * @returns {void}
2353
- */
2354
- ResizeObserverController.prototype.disconnect_ = function () {
2355
- // Do nothing if running in a non-browser environment or if listeners
2356
- // have been already removed.
2357
- if (!isBrowser || !this.connected_) {
2358
- return;
2359
- }
2360
- document.removeEventListener('transitionend', this.onTransitionEnd_);
2361
- window.removeEventListener('resize', this.refresh);
2362
- if (this.mutationsObserver_) {
2363
- this.mutationsObserver_.disconnect();
2364
- }
2365
- if (this.mutationEventsAdded_) {
2366
- document.removeEventListener('DOMSubtreeModified', this.refresh);
2367
- }
2368
- this.mutationsObserver_ = null;
2369
- this.mutationEventsAdded_ = false;
2370
- this.connected_ = false;
2371
- };
2372
- /**
2373
- * "Transitionend" event handler.
2374
- *
2375
- * @private
2376
- * @param {TransitionEvent} event
2377
- * @returns {void}
2378
- */
2379
- ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
2380
- var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;
2381
- // Detect whether transition may affect dimensions of an element.
2382
- var isReflowProperty = transitionKeys.some(function (key) {
2383
- return !!~propertyName.indexOf(key);
2384
- });
2385
- if (isReflowProperty) {
2386
- this.refresh();
2387
- }
2388
- };
2389
- /**
2390
- * Returns instance of the ResizeObserverController.
2391
- *
2392
- * @returns {ResizeObserverController}
2393
- */
2394
- ResizeObserverController.getInstance = function () {
2395
- if (!this.instance_) {
2396
- this.instance_ = new ResizeObserverController();
2397
- }
2398
- return this.instance_;
2399
- };
2400
- /**
2401
- * Holds reference to the controller's instance.
2402
- *
2403
- * @private {ResizeObserverController}
2404
- */
2405
- ResizeObserverController.instance_ = null;
2406
- return ResizeObserverController;
2407
- }());
2408
-
2409
- /**
2410
- * Defines non-writable/enumerable properties of the provided target object.
2411
- *
2412
- * @param {Object} target - Object for which to define properties.
2413
- * @param {Object} props - Properties to be defined.
2414
- * @returns {Object} Target object.
2415
- */
2416
- var defineConfigurable = (function (target, props) {
2417
- for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
2418
- var key = _a[_i];
2419
- Object.defineProperty(target, key, {
2420
- value: props[key],
2421
- enumerable: false,
2422
- writable: false,
2423
- configurable: true
2424
- });
2425
- }
2426
- return target;
2427
- });
2428
-
2429
- /**
2430
- * Returns the global object associated with provided element.
2431
- *
2432
- * @param {Object} target
2433
- * @returns {Object}
2434
- */
2435
- var getWindowOf = (function (target) {
2436
- // Assume that the element is an instance of Node, which means that it
2437
- // has the "ownerDocument" property from which we can retrieve a
2438
- // corresponding global object.
2439
- var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
2440
- // Return the local global object if it's not possible extract one from
2441
- // provided element.
2442
- return ownerGlobal || global$1;
2443
- });
2444
-
2445
- // Placeholder of an empty content rectangle.
2446
- var emptyRect = createRectInit(0, 0, 0, 0);
2447
- /**
2448
- * Converts provided string to a number.
2449
- *
2450
- * @param {number|string} value
2451
- * @returns {number}
2452
- */
2453
- function toFloat(value) {
2454
- return parseFloat(value) || 0;
2455
- }
2456
- /**
2457
- * Extracts borders size from provided styles.
2458
- *
2459
- * @param {CSSStyleDeclaration} styles
2460
- * @param {...string} positions - Borders positions (top, right, ...)
2461
- * @returns {number}
2462
- */
2463
- function getBordersSize(styles) {
2464
- var positions = [];
2465
- for (var _i = 1; _i < arguments.length; _i++) {
2466
- positions[_i - 1] = arguments[_i];
2467
- }
2468
- return positions.reduce(function (size, position) {
2469
- var value = styles['border-' + position + '-width'];
2470
- return size + toFloat(value);
2471
- }, 0);
2472
- }
2473
- /**
2474
- * Extracts paddings sizes from provided styles.
2475
- *
2476
- * @param {CSSStyleDeclaration} styles
2477
- * @returns {Object} Paddings box.
2478
- */
2479
- function getPaddings(styles) {
2480
- var positions = ['top', 'right', 'bottom', 'left'];
2481
- var paddings = {};
2482
- for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
2483
- var position = positions_1[_i];
2484
- var value = styles['padding-' + position];
2485
- paddings[position] = toFloat(value);
2486
- }
2487
- return paddings;
2488
- }
2489
- /**
2490
- * Calculates content rectangle of provided SVG element.
2491
- *
2492
- * @param {SVGGraphicsElement} target - Element content rectangle of which needs
2493
- * to be calculated.
2494
- * @returns {DOMRectInit}
2495
- */
2496
- function getSVGContentRect(target) {
2497
- var bbox = target.getBBox();
2498
- return createRectInit(0, 0, bbox.width, bbox.height);
2499
- }
2500
- /**
2501
- * Calculates content rectangle of provided HTMLElement.
2502
- *
2503
- * @param {HTMLElement} target - Element for which to calculate the content rectangle.
2504
- * @returns {DOMRectInit}
2505
- */
2506
- function getHTMLElementContentRect(target) {
2507
- // Client width & height properties can't be
2508
- // used exclusively as they provide rounded values.
2509
- var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
2510
- // By this condition we can catch all non-replaced inline, hidden and
2511
- // detached elements. Though elements with width & height properties less
2512
- // than 0.5 will be discarded as well.
2513
- //
2514
- // Without it we would need to implement separate methods for each of
2515
- // those cases and it's not possible to perform a precise and performance
2516
- // effective test for hidden elements. E.g. even jQuery's ':visible' filter
2517
- // gives wrong results for elements with width & height less than 0.5.
2518
- if (!clientWidth && !clientHeight) {
2519
- return emptyRect;
2520
- }
2521
- var styles = getWindowOf(target).getComputedStyle(target);
2522
- var paddings = getPaddings(styles);
2523
- var horizPad = paddings.left + paddings.right;
2524
- var vertPad = paddings.top + paddings.bottom;
2525
- // Computed styles of width & height are being used because they are the
2526
- // only dimensions available to JS that contain non-rounded values. It could
2527
- // be possible to utilize the getBoundingClientRect if only it's data wasn't
2528
- // affected by CSS transformations let alone paddings, borders and scroll bars.
2529
- var width = toFloat(styles.width), height = toFloat(styles.height);
2530
- // Width & height include paddings and borders when the 'border-box' box
2531
- // model is applied (except for IE).
2532
- if (styles.boxSizing === 'border-box') {
2533
- // Following conditions are required to handle Internet Explorer which
2534
- // doesn't include paddings and borders to computed CSS dimensions.
2535
- //
2536
- // We can say that if CSS dimensions + paddings are equal to the "client"
2537
- // properties then it's either IE, and thus we don't need to subtract
2538
- // anything, or an element merely doesn't have paddings/borders styles.
2539
- if (Math.round(width + horizPad) !== clientWidth) {
2540
- width -= getBordersSize(styles, 'left', 'right') + horizPad;
2541
- }
2542
- if (Math.round(height + vertPad) !== clientHeight) {
2543
- height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
2544
- }
2545
- }
2546
- // Following steps can't be applied to the document's root element as its
2547
- // client[Width/Height] properties represent viewport area of the window.
2548
- // Besides, it's as well not necessary as the <html> itself neither has
2549
- // rendered scroll bars nor it can be clipped.
2550
- if (!isDocumentElement(target)) {
2551
- // In some browsers (only in Firefox, actually) CSS width & height
2552
- // include scroll bars size which can be removed at this step as scroll
2553
- // bars are the only difference between rounded dimensions + paddings
2554
- // and "client" properties, though that is not always true in Chrome.
2555
- var vertScrollbar = Math.round(width + horizPad) - clientWidth;
2556
- var horizScrollbar = Math.round(height + vertPad) - clientHeight;
2557
- // Chrome has a rather weird rounding of "client" properties.
2558
- // E.g. for an element with content width of 314.2px it sometimes gives
2559
- // the client width of 315px and for the width of 314.7px it may give
2560
- // 314px. And it doesn't happen all the time. So just ignore this delta
2561
- // as a non-relevant.
2562
- if (Math.abs(vertScrollbar) !== 1) {
2563
- width -= vertScrollbar;
2564
- }
2565
- if (Math.abs(horizScrollbar) !== 1) {
2566
- height -= horizScrollbar;
2567
- }
2568
- }
2569
- return createRectInit(paddings.left, paddings.top, width, height);
2570
- }
2571
- /**
2572
- * Checks whether provided element is an instance of the SVGGraphicsElement.
2573
- *
2574
- * @param {Element} target - Element to be checked.
2575
- * @returns {boolean}
2576
- */
2577
- var isSVGGraphicsElement = (function () {
2578
- // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
2579
- // interface.
2580
- if (typeof SVGGraphicsElement !== 'undefined') {
2581
- return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };
2582
- }
2583
- // If it's so, then check that element is at least an instance of the
2584
- // SVGElement and that it has the "getBBox" method.
2585
- // eslint-disable-next-line no-extra-parens
2586
- return function (target) { return (target instanceof getWindowOf(target).SVGElement &&
2587
- typeof target.getBBox === 'function'); };
2588
- })();
2589
- /**
2590
- * Checks whether provided element is a document element (<html>).
2591
- *
2592
- * @param {Element} target - Element to be checked.
2593
- * @returns {boolean}
2594
- */
2595
- function isDocumentElement(target) {
2596
- return target === getWindowOf(target).document.documentElement;
2597
- }
2598
- /**
2599
- * Calculates an appropriate content rectangle for provided html or svg element.
2600
- *
2601
- * @param {Element} target - Element content rectangle of which needs to be calculated.
2602
- * @returns {DOMRectInit}
2603
- */
2604
- function getContentRect(target) {
2605
- if (!isBrowser) {
2606
- return emptyRect;
2607
- }
2608
- if (isSVGGraphicsElement(target)) {
2609
- return getSVGContentRect(target);
2610
- }
2611
- return getHTMLElementContentRect(target);
2612
- }
2613
- /**
2614
- * Creates rectangle with an interface of the DOMRectReadOnly.
2615
- * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
2616
- *
2617
- * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
2618
- * @returns {DOMRectReadOnly}
2619
- */
2620
- function createReadOnlyRect(_a) {
2621
- var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
2622
- // If DOMRectReadOnly is available use it as a prototype for the rectangle.
2623
- var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
2624
- var rect = Object.create(Constr.prototype);
2625
- // Rectangle's properties are not writable and non-enumerable.
2626
- defineConfigurable(rect, {
2627
- x: x, y: y, width: width, height: height,
2628
- top: y,
2629
- right: x + width,
2630
- bottom: height + y,
2631
- left: x
2632
- });
2633
- return rect;
2634
- }
2635
- /**
2636
- * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
2637
- * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
2638
- *
2639
- * @param {number} x - X coordinate.
2640
- * @param {number} y - Y coordinate.
2641
- * @param {number} width - Rectangle's width.
2642
- * @param {number} height - Rectangle's height.
2643
- * @returns {DOMRectInit}
2644
- */
2645
- function createRectInit(x, y, width, height) {
2646
- return { x: x, y: y, width: width, height: height };
2647
- }
2648
-
2649
- /**
2650
- * Class that is responsible for computations of the content rectangle of
2651
- * provided DOM element and for keeping track of it's changes.
2652
- */
2653
- var ResizeObservation = /** @class */ (function () {
2654
- /**
2655
- * Creates an instance of ResizeObservation.
2656
- *
2657
- * @param {Element} target - Element to be observed.
2658
- */
2659
- function ResizeObservation(target) {
2660
- /**
2661
- * Broadcasted width of content rectangle.
2662
- *
2663
- * @type {number}
2664
- */
2665
- this.broadcastWidth = 0;
2666
- /**
2667
- * Broadcasted height of content rectangle.
2668
- *
2669
- * @type {number}
2670
- */
2671
- this.broadcastHeight = 0;
2672
- /**
2673
- * Reference to the last observed content rectangle.
2674
- *
2675
- * @private {DOMRectInit}
2676
- */
2677
- this.contentRect_ = createRectInit(0, 0, 0, 0);
2678
- this.target = target;
2679
- }
2680
- /**
2681
- * Updates content rectangle and tells whether it's width or height properties
2682
- * have changed since the last broadcast.
2683
- *
2684
- * @returns {boolean}
2685
- */
2686
- ResizeObservation.prototype.isActive = function () {
2687
- var rect = getContentRect(this.target);
2688
- this.contentRect_ = rect;
2689
- return (rect.width !== this.broadcastWidth ||
2690
- rect.height !== this.broadcastHeight);
2691
- };
2692
- /**
2693
- * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
2694
- * from the corresponding properties of the last observed content rectangle.
2695
- *
2696
- * @returns {DOMRectInit} Last observed content rectangle.
2697
- */
2698
- ResizeObservation.prototype.broadcastRect = function () {
2699
- var rect = this.contentRect_;
2700
- this.broadcastWidth = rect.width;
2701
- this.broadcastHeight = rect.height;
2702
- return rect;
2703
- };
2704
- return ResizeObservation;
2705
- }());
2706
-
2707
- var ResizeObserverEntry = /** @class */ (function () {
2708
- /**
2709
- * Creates an instance of ResizeObserverEntry.
2710
- *
2711
- * @param {Element} target - Element that is being observed.
2712
- * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
2713
- */
2714
- function ResizeObserverEntry(target, rectInit) {
2715
- var contentRect = createReadOnlyRect(rectInit);
2716
- // According to the specification following properties are not writable
2717
- // and are also not enumerable in the native implementation.
2718
- //
2719
- // Property accessors are not being used as they'd require to define a
2720
- // private WeakMap storage which may cause memory leaks in browsers that
2721
- // don't support this type of collections.
2722
- defineConfigurable(this, { target: target, contentRect: contentRect });
2723
- }
2724
- return ResizeObserverEntry;
2725
- }());
2726
-
2727
- var ResizeObserverSPI = /** @class */ (function () {
2728
- /**
2729
- * Creates a new instance of ResizeObserver.
2730
- *
2731
- * @param {ResizeObserverCallback} callback - Callback function that is invoked
2732
- * when one of the observed elements changes it's content dimensions.
2733
- * @param {ResizeObserverController} controller - Controller instance which
2734
- * is responsible for the updates of observer.
2735
- * @param {ResizeObserver} callbackCtx - Reference to the public
2736
- * ResizeObserver instance which will be passed to callback function.
2737
- */
2738
- function ResizeObserverSPI(callback, controller, callbackCtx) {
2739
- /**
2740
- * Collection of resize observations that have detected changes in dimensions
2741
- * of elements.
2742
- *
2743
- * @private {Array<ResizeObservation>}
2744
- */
2745
- this.activeObservations_ = [];
2746
- /**
2747
- * Registry of the ResizeObservation instances.
2748
- *
2749
- * @private {Map<Element, ResizeObservation>}
2750
- */
2751
- this.observations_ = new MapShim();
2752
- if (typeof callback !== 'function') {
2753
- throw new TypeError('The callback provided as parameter 1 is not a function.');
2754
- }
2755
- this.callback_ = callback;
2756
- this.controller_ = controller;
2757
- this.callbackCtx_ = callbackCtx;
2758
- }
2759
- /**
2760
- * Starts observing provided element.
2761
- *
2762
- * @param {Element} target - Element to be observed.
2763
- * @returns {void}
2764
- */
2765
- ResizeObserverSPI.prototype.observe = function (target) {
2766
- if (!arguments.length) {
2767
- throw new TypeError('1 argument required, but only 0 present.');
2768
- }
2769
- // Do nothing if current environment doesn't have the Element interface.
2770
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
2771
- return;
2772
- }
2773
- if (!(target instanceof getWindowOf(target).Element)) {
2774
- throw new TypeError('parameter 1 is not of type "Element".');
2775
- }
2776
- var observations = this.observations_;
2777
- // Do nothing if element is already being observed.
2778
- if (observations.has(target)) {
2779
- return;
2780
- }
2781
- observations.set(target, new ResizeObservation(target));
2782
- this.controller_.addObserver(this);
2783
- // Force the update of observations.
2784
- this.controller_.refresh();
2785
- };
2786
- /**
2787
- * Stops observing provided element.
2788
- *
2789
- * @param {Element} target - Element to stop observing.
2790
- * @returns {void}
2791
- */
2792
- ResizeObserverSPI.prototype.unobserve = function (target) {
2793
- if (!arguments.length) {
2794
- throw new TypeError('1 argument required, but only 0 present.');
2795
- }
2796
- // Do nothing if current environment doesn't have the Element interface.
2797
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
2798
- return;
2799
- }
2800
- if (!(target instanceof getWindowOf(target).Element)) {
2801
- throw new TypeError('parameter 1 is not of type "Element".');
2802
- }
2803
- var observations = this.observations_;
2804
- // Do nothing if element is not being observed.
2805
- if (!observations.has(target)) {
2806
- return;
2807
- }
2808
- observations.delete(target);
2809
- if (!observations.size) {
2810
- this.controller_.removeObserver(this);
2811
- }
2812
- };
2813
- /**
2814
- * Stops observing all elements.
2815
- *
2816
- * @returns {void}
2817
- */
2818
- ResizeObserverSPI.prototype.disconnect = function () {
2819
- this.clearActive();
2820
- this.observations_.clear();
2821
- this.controller_.removeObserver(this);
2822
- };
2823
- /**
2824
- * Collects observation instances the associated element of which has changed
2825
- * it's content rectangle.
2826
- *
2827
- * @returns {void}
2828
- */
2829
- ResizeObserverSPI.prototype.gatherActive = function () {
2830
- var _this = this;
2831
- this.clearActive();
2832
- this.observations_.forEach(function (observation) {
2833
- if (observation.isActive()) {
2834
- _this.activeObservations_.push(observation);
2835
- }
2836
- });
2837
- };
2838
- /**
2839
- * Invokes initial callback function with a list of ResizeObserverEntry
2840
- * instances collected from active resize observations.
2841
- *
2842
- * @returns {void}
2843
- */
2844
- ResizeObserverSPI.prototype.broadcastActive = function () {
2845
- // Do nothing if observer doesn't have active observations.
2846
- if (!this.hasActive()) {
2847
- return;
2848
- }
2849
- var ctx = this.callbackCtx_;
2850
- // Create ResizeObserverEntry instance for every active observation.
2851
- var entries = this.activeObservations_.map(function (observation) {
2852
- return new ResizeObserverEntry(observation.target, observation.broadcastRect());
2853
- });
2854
- this.callback_.call(ctx, entries, ctx);
2855
- this.clearActive();
2856
- };
2857
- /**
2858
- * Clears the collection of active observations.
2859
- *
2860
- * @returns {void}
2861
- */
2862
- ResizeObserverSPI.prototype.clearActive = function () {
2863
- this.activeObservations_.splice(0);
2864
- };
2865
- /**
2866
- * Tells whether observer has active observations.
2867
- *
2868
- * @returns {boolean}
2869
- */
2870
- ResizeObserverSPI.prototype.hasActive = function () {
2871
- return this.activeObservations_.length > 0;
2872
- };
2873
- return ResizeObserverSPI;
2874
- }());
2875
-
2876
- // Registry of internal observers. If WeakMap is not available use current shim
2877
- // for the Map collection as it has all required methods and because WeakMap
2878
- // can't be fully polyfilled anyway.
2879
- var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
2880
- /**
2881
- * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
2882
- * exposing only those methods and properties that are defined in the spec.
2883
- */
2884
- var ResizeObserver$1 = /** @class */ (function () {
2885
- /**
2886
- * Creates a new instance of ResizeObserver.
2887
- *
2888
- * @param {ResizeObserverCallback} callback - Callback that is invoked when
2889
- * dimensions of the observed elements change.
2890
- */
2891
- function ResizeObserver(callback) {
2892
- if (!(this instanceof ResizeObserver)) {
2893
- throw new TypeError('Cannot call a class as a function.');
2894
- }
2895
- if (!arguments.length) {
2896
- throw new TypeError('1 argument required, but only 0 present.');
2897
- }
2898
- var controller = ResizeObserverController.getInstance();
2899
- var observer = new ResizeObserverSPI(callback, controller, this);
2900
- observers.set(this, observer);
2901
- }
2902
- return ResizeObserver;
2903
- }());
2904
- // Expose public methods of ResizeObserver.
2905
- [
2906
- 'observe',
2907
- 'unobserve',
2908
- 'disconnect'
2909
- ].forEach(function (method) {
2910
- ResizeObserver$1.prototype[method] = function () {
2911
- var _a;
2912
- return (_a = observers.get(this))[method].apply(_a, arguments);
2913
- };
2914
- });
2915
-
2916
- var index = (function () {
2917
- // Export existing implementation if available.
2918
- if (typeof global$1.ResizeObserver !== 'undefined') {
2919
- return global$1.ResizeObserver;
2920
- }
2921
- return ResizeObserver$1;
2922
- })();
2923
-
2924
- // =============================== Const ===============================
2925
- var elementListeners = new Map();
2926
- function onResize(entities) {
2927
- entities.forEach(function (entity) {
2928
- var _elementListeners$get;
2929
- var target = entity.target;
2930
- (_elementListeners$get = elementListeners.get(target)) === null || _elementListeners$get === void 0 ? void 0 : _elementListeners$get.forEach(function (listener) {
2931
- return listener(target);
2932
- });
2933
- });
2934
- }
2935
- // Note: ResizeObserver polyfill not support option to measure border-box resize
2936
- var resizeObserver = new index(onResize);
2937
- // ============================== Observe ==============================
2938
- function observe(element, callback) {
2939
- if (!elementListeners.has(element)) {
2940
- elementListeners.set(element, new Set());
2941
- resizeObserver.observe(element);
2942
- }
2943
- elementListeners.get(element).add(callback);
2944
- }
2945
- function unobserve(element, callback) {
2946
- if (elementListeners.has(element)) {
2947
- elementListeners.get(element).delete(callback);
2948
- if (!elementListeners.get(element).size) {
2949
- resizeObserver.unobserve(element);
2950
- elementListeners.delete(element);
2951
- }
2952
- }
2953
- }
2954
-
2955
- function _classCallCheck(instance, Constructor) {
2956
- if (!(instance instanceof Constructor)) {
2957
- throw new TypeError("Cannot call a class as a function");
2958
- }
2959
- }
2960
-
2961
- function _defineProperties(target, props) {
2962
- for (var i = 0; i < props.length; i++) {
2963
- var descriptor = props[i];
2964
- descriptor.enumerable = descriptor.enumerable || false;
2965
- descriptor.configurable = true;
2966
- if ("value" in descriptor) descriptor.writable = true;
2967
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
2968
- }
2969
- }
2970
- function _createClass(Constructor, protoProps, staticProps) {
2971
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
2972
- if (staticProps) _defineProperties(Constructor, staticProps);
2973
- Object.defineProperty(Constructor, "prototype", {
2974
- writable: false
2975
- });
2976
- return Constructor;
2977
- }
2978
-
2979
- function _setPrototypeOf(o, p) {
2980
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
2981
- o.__proto__ = p;
2982
- return o;
2983
- };
2984
- return _setPrototypeOf(o, p);
2985
- }
2986
-
2987
- function _inherits(subClass, superClass) {
2988
- if (typeof superClass !== "function" && superClass !== null) {
2989
- throw new TypeError("Super expression must either be null or a function");
2990
- }
2991
- subClass.prototype = Object.create(superClass && superClass.prototype, {
2992
- constructor: {
2993
- value: subClass,
2994
- writable: true,
2995
- configurable: true
2996
- }
2997
- });
2998
- Object.defineProperty(subClass, "prototype", {
2999
- writable: false
3000
- });
3001
- if (superClass) _setPrototypeOf(subClass, superClass);
3002
- }
3003
-
3004
- function _getPrototypeOf(o) {
3005
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
3006
- return o.__proto__ || Object.getPrototypeOf(o);
3007
- };
3008
- return _getPrototypeOf(o);
3009
- }
3010
-
3011
- function _isNativeReflectConstruct() {
3012
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
3013
- if (Reflect.construct.sham) return false;
3014
- if (typeof Proxy === "function") return true;
3015
- try {
3016
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
3017
- return true;
3018
- } catch (e) {
3019
- return false;
3020
- }
3021
- }
3022
-
3023
- function _assertThisInitialized(self) {
3024
- if (self === void 0) {
3025
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
3026
- }
3027
- return self;
3028
- }
3029
-
3030
- function _possibleConstructorReturn(self, call) {
3031
- if (call && (_typeof$1(call) === "object" || typeof call === "function")) {
3032
- return call;
3033
- } else if (call !== void 0) {
3034
- throw new TypeError("Derived constructors may only return object or undefined");
3035
- }
3036
- return _assertThisInitialized(self);
3037
- }
3038
-
3039
- function _createSuper(Derived) {
3040
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
3041
- return function _createSuperInternal() {
3042
- var Super = _getPrototypeOf(Derived),
3043
- result;
3044
- if (hasNativeReflectConstruct) {
3045
- var NewTarget = _getPrototypeOf(this).constructor;
3046
- result = Reflect.construct(Super, arguments, NewTarget);
3047
- } else {
3048
- result = Super.apply(this, arguments);
3049
- }
3050
- return _possibleConstructorReturn(this, result);
3051
- };
3052
- }
3053
-
3054
- /**
3055
- * Fallback to findDOMNode if origin ref do not provide any dom element
3056
- */
3057
- var DomWrapper = /*#__PURE__*/function (_React$Component) {
3058
- _inherits(DomWrapper, _React$Component);
3059
- var _super = _createSuper(DomWrapper);
3060
- function DomWrapper() {
3061
- _classCallCheck(this, DomWrapper);
3062
- return _super.apply(this, arguments);
3063
- }
3064
- _createClass(DomWrapper, [{
3065
- key: "render",
3066
- value: function render() {
3067
- return this.props.children;
3068
- }
3069
- }]);
3070
- return DomWrapper;
3071
- }(index$4.react.Component);
3072
-
3073
- var CollectionContext = /*#__PURE__*/index$4.react.createContext(null);
3074
- /**
3075
- * Collect all the resize event from children ResizeObserver
3076
- */
3077
- function Collection(_ref) {
3078
- var children = _ref.children,
3079
- onBatchResize = _ref.onBatchResize;
3080
- var resizeIdRef = index$4.react.useRef(0);
3081
- var resizeInfosRef = index$4.react.useRef([]);
3082
- var onCollectionResize = index$4.react.useContext(CollectionContext);
3083
- var onResize = index$4.react.useCallback(function (size, element, data) {
3084
- resizeIdRef.current += 1;
3085
- var currentId = resizeIdRef.current;
3086
- resizeInfosRef.current.push({
3087
- size: size,
3088
- element: element,
3089
- data: data
3090
- });
3091
- Promise.resolve().then(function () {
3092
- if (currentId === resizeIdRef.current) {
3093
- onBatchResize === null || onBatchResize === void 0 ? void 0 : onBatchResize(resizeInfosRef.current);
3094
- resizeInfosRef.current = [];
3095
- }
3096
- });
3097
- // Continue bubbling if parent exist
3098
- onCollectionResize === null || onCollectionResize === void 0 ? void 0 : onCollectionResize(size, element, data);
3099
- }, [onBatchResize, onCollectionResize]);
3100
- return /*#__PURE__*/index$4.react.createElement(CollectionContext.Provider, {
3101
- value: onResize
3102
- }, children);
3103
- }
3104
-
3105
- function SingleObserver(props, ref) {
3106
- var children = props.children,
3107
- disabled = props.disabled;
3108
- var elementRef = index$4.react.useRef(null);
3109
- var wrapperRef = index$4.react.useRef(null);
3110
- var onCollectionResize = index$4.react.useContext(CollectionContext);
3111
- // =========================== Children ===========================
3112
- var isRenderProps = typeof children === 'function';
3113
- var mergedChildren = isRenderProps ? children(elementRef) : children;
3114
- // ============================= Size =============================
3115
- var sizeRef = index$4.react.useRef({
3116
- width: -1,
3117
- height: -1,
3118
- offsetWidth: -1,
3119
- offsetHeight: -1
3120
- });
3121
- // ============================= Ref ==============================
3122
- var canRef = !isRenderProps && /*#__PURE__*/index$4.react.isValidElement(mergedChildren) && supportRef(mergedChildren);
3123
- var originRef = canRef ? mergedChildren.ref : null;
3124
- var mergedRef = index$4.react.useMemo(function () {
3125
- return composeRef(originRef, elementRef);
3126
- }, [originRef, elementRef]);
3127
- var getDom = function getDom() {
3128
- return findDOMNode(elementRef.current) || findDOMNode(wrapperRef.current);
3129
- };
3130
- index$4.react.useImperativeHandle(ref, function () {
3131
- return getDom();
3132
- });
3133
- // =========================== Observe ============================
3134
- var propsRef = index$4.react.useRef(props);
3135
- propsRef.current = props;
3136
- // Handler
3137
- var onInternalResize = index$4.react.useCallback(function (target) {
3138
- var _propsRef$current = propsRef.current,
3139
- onResize = _propsRef$current.onResize,
3140
- data = _propsRef$current.data;
3141
- var _target$getBoundingCl = target.getBoundingClientRect(),
3142
- width = _target$getBoundingCl.width,
3143
- height = _target$getBoundingCl.height;
3144
- var offsetWidth = target.offsetWidth,
3145
- offsetHeight = target.offsetHeight;
3146
- /**
3147
- * Resize observer trigger when content size changed.
3148
- * In most case we just care about element size,
3149
- * let's use `boundary` instead of `contentRect` here to avoid shaking.
3150
- */
3151
- var fixedWidth = Math.floor(width);
3152
- var fixedHeight = Math.floor(height);
3153
- if (sizeRef.current.width !== fixedWidth || sizeRef.current.height !== fixedHeight || sizeRef.current.offsetWidth !== offsetWidth || sizeRef.current.offsetHeight !== offsetHeight) {
3154
- var size = {
3155
- width: fixedWidth,
3156
- height: fixedHeight,
3157
- offsetWidth: offsetWidth,
3158
- offsetHeight: offsetHeight
3159
- };
3160
- sizeRef.current = size;
3161
- // IE is strange, right?
3162
- var mergedOffsetWidth = offsetWidth === Math.round(width) ? width : offsetWidth;
3163
- var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight;
3164
- var sizeInfo = _objectSpread2(_objectSpread2({}, size), {}, {
3165
- offsetWidth: mergedOffsetWidth,
3166
- offsetHeight: mergedOffsetHeight
3167
- });
3168
- // Let collection know what happened
3169
- onCollectionResize === null || onCollectionResize === void 0 ? void 0 : onCollectionResize(sizeInfo, target, data);
3170
- if (onResize) {
3171
- // defer the callback but not defer to next frame
3172
- Promise.resolve().then(function () {
3173
- onResize(sizeInfo, target);
3174
- });
3175
- }
3176
- }
3177
- }, []);
3178
- // Dynamic observe
3179
- index$4.react.useEffect(function () {
3180
- var currentElement = getDom();
3181
- if (currentElement && !disabled) {
3182
- observe(currentElement, onInternalResize);
3183
- }
3184
- return function () {
3185
- return unobserve(currentElement, onInternalResize);
3186
- };
3187
- }, [elementRef.current, disabled]);
3188
- // ============================ Render ============================
3189
- return /*#__PURE__*/index$4.react.createElement(DomWrapper, {
3190
- ref: wrapperRef
3191
- }, canRef ? /*#__PURE__*/index$4.react.cloneElement(mergedChildren, {
3192
- ref: mergedRef
3193
- }) : mergedChildren);
3194
- }
3195
- var RefSingleObserver = /*#__PURE__*/index$4.react.forwardRef(SingleObserver);
3196
-
3197
- var INTERNAL_PREFIX_KEY = 'rc-observer-key';
3198
- function ResizeObserver(props, ref) {
3199
- var children = props.children;
3200
- var childNodes = typeof children === 'function' ? [children] : toArray(children);
3201
- return childNodes.map(function (child, index) {
3202
- var key = (child === null || child === void 0 ? void 0 : child.key) || "".concat(INTERNAL_PREFIX_KEY, "-").concat(index);
3203
- return /*#__PURE__*/index$4.react.createElement(RefSingleObserver, _extends({}, props, {
3204
- key: key,
3205
- ref: index === 0 ? ref : undefined
3206
- }), child);
3207
- });
3208
- }
3209
- var RefResizeObserver = /*#__PURE__*/index$4.react.forwardRef(ResizeObserver);
3210
- RefResizeObserver.Collection = Collection;
3211
-
3212
- function canUseDom() {
3213
- return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
3214
- }
3215
-
3216
- /**
3217
- * Wrap `React.useLayoutEffect` which will not throw warning message in test env
3218
- */
3219
- var useInternalLayoutEffect = canUseDom() ? index$4.react.useLayoutEffect : index$4.react.useEffect;
3220
- var useLayoutEffect = function useLayoutEffect(callback, deps) {
3221
- var firstMountRef = index$4.react.useRef(true);
3222
- useInternalLayoutEffect(function () {
3223
- return callback(firstMountRef.current);
3224
- }, deps);
3225
-
3226
- // We tell react that first mount has passed
3227
- useInternalLayoutEffect(function () {
3228
- firstMountRef.current = false;
3229
- return function () {
3230
- firstMountRef.current = true;
3231
- };
3232
- }, []);
3233
- };
3234
-
3235
1773
  var _excluded$2 = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"];
3236
1774
  // Use shared variable to save bundle size
3237
1775
  var UNDEFINED = undefined;
@@ -3257,7 +1795,7 @@ function InternalItem(props, ref) {
3257
1795
  function internalRegisterSize(width) {
3258
1796
  registerSize(itemKey, width);
3259
1797
  }
3260
- index$4.react.useEffect(function () {
1798
+ index$3.react.useEffect(function () {
3261
1799
  return function () {
3262
1800
  internalRegisterSize(null);
3263
1801
  };
@@ -3279,14 +1817,14 @@ function InternalItem(props, ref) {
3279
1817
  if (mergedHidden) {
3280
1818
  overflowProps['aria-hidden'] = true;
3281
1819
  }
3282
- var itemNode = /*#__PURE__*/index$4.react.createElement(Component, _extends$1({
3283
- className: index$1.classnames(!invalidate && prefixCls, className),
3284
- style: _objectSpread2$1(_objectSpread2$1({}, overflowStyle), style)
1820
+ var itemNode = /*#__PURE__*/index$3.react.createElement(Component, _extends({
1821
+ className: index.classnames(!invalidate && prefixCls, className),
1822
+ style: _objectSpread2(_objectSpread2({}, overflowStyle), style)
3285
1823
  }, overflowProps, restProps, {
3286
1824
  ref: ref
3287
1825
  }), childNode);
3288
1826
  if (responsive) {
3289
- itemNode = /*#__PURE__*/index$4.react.createElement(RefResizeObserver, {
1827
+ itemNode = /*#__PURE__*/index$3.react.createElement(index$4.RefResizeObserver, {
3290
1828
  onResize: function onResize(_ref) {
3291
1829
  var offsetWidth = _ref.offsetWidth;
3292
1830
  internalRegisterSize(offsetWidth);
@@ -3296,74 +1834,12 @@ function InternalItem(props, ref) {
3296
1834
  }
3297
1835
  return itemNode;
3298
1836
  }
3299
- var Item = /*#__PURE__*/index$4.react.forwardRef(InternalItem);
1837
+ var Item = /*#__PURE__*/index$3.react.forwardRef(InternalItem);
3300
1838
  Item.displayName = 'Item';
3301
1839
 
3302
- function useEvent(callback) {
3303
- var fnRef = index$4.react.useRef();
3304
- fnRef.current = callback;
3305
- var memoFn = index$4.react.useCallback(function () {
3306
- var _fnRef$current;
3307
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3308
- args[_key] = arguments[_key];
3309
- }
3310
- return (_fnRef$current = fnRef.current) === null || _fnRef$current === void 0 ? void 0 : _fnRef$current.call.apply(_fnRef$current, [fnRef].concat(args));
3311
- }, []);
3312
- return memoFn;
3313
- }
3314
-
3315
- var raf = function raf(callback) {
3316
- return +setTimeout(callback, 16);
3317
- };
3318
- var caf = function caf(num) {
3319
- return clearTimeout(num);
3320
- };
3321
- if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
3322
- raf = function raf(callback) {
3323
- return window.requestAnimationFrame(callback);
3324
- };
3325
- caf = function caf(handle) {
3326
- return window.cancelAnimationFrame(handle);
3327
- };
3328
- }
3329
- var rafUUID = 0;
3330
- var rafIds = new Map();
3331
- function cleanup(id) {
3332
- rafIds.delete(id);
3333
- }
3334
- var wrapperRaf = function wrapperRaf(callback) {
3335
- var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
3336
- rafUUID += 1;
3337
- var id = rafUUID;
3338
- function callRef(leftTimes) {
3339
- if (leftTimes === 0) {
3340
- // Clean up
3341
- cleanup(id);
3342
-
3343
- // Trigger
3344
- callback();
3345
- } else {
3346
- // Next raf
3347
- var realId = raf(function () {
3348
- callRef(leftTimes - 1);
3349
- });
3350
-
3351
- // Bind real raf id
3352
- rafIds.set(id, realId);
3353
- }
3354
- }
3355
- callRef(times);
3356
- return id;
3357
- };
3358
- wrapperRaf.cancel = function (id) {
3359
- var realId = rafIds.get(id);
3360
- cleanup(realId);
3361
- return caf(realId);
3362
- };
3363
-
3364
1840
  function channelUpdate(callback) {
3365
1841
  if (typeof MessageChannel === 'undefined') {
3366
- wrapperRaf(callback);
1842
+ index$4.wrapperRaf(callback);
3367
1843
  } else {
3368
1844
  var channel = new MessageChannel();
3369
1845
  channel.port1.onmessage = function () {
@@ -3378,13 +1854,13 @@ function channelUpdate(callback) {
3378
1854
  */
3379
1855
  function useBatcher() {
3380
1856
  // Updater Trigger
3381
- var updateFuncRef = index$4.react.useRef(null);
1857
+ var updateFuncRef = index$3.react.useRef(null);
3382
1858
  // Notify update
3383
1859
  var notifyEffectUpdate = function notifyEffectUpdate(callback) {
3384
1860
  if (!updateFuncRef.current) {
3385
1861
  updateFuncRef.current = [];
3386
1862
  channelUpdate(function () {
3387
- index$4.reactDom.unstable_batchedUpdates(function () {
1863
+ index$3.reactDom.unstable_batchedUpdates(function () {
3388
1864
  updateFuncRef.current.forEach(function (fn) {
3389
1865
  fn();
3390
1866
  });
@@ -3401,12 +1877,12 @@ function useBatcher() {
3401
1877
  */
3402
1878
  function useEffectState(notifyEffectUpdate, defaultValue) {
3403
1879
  // Value
3404
- var _React$useState = index$4.react.useState(defaultValue),
1880
+ var _React$useState = index$3.react.useState(defaultValue),
3405
1881
  _React$useState2 = _slicedToArray(_React$useState, 2),
3406
1882
  stateValue = _React$useState2[0],
3407
1883
  setStateValue = _React$useState2[1];
3408
1884
  // Set State
3409
- var setEffectVal = useEvent(function (nextValue) {
1885
+ var setEffectVal = index$4.useEvent(function (nextValue) {
3410
1886
  notifyEffectUpdate(function () {
3411
1887
  setStateValue(nextValue);
3412
1888
  });
@@ -3414,19 +1890,19 @@ function useEffectState(notifyEffectUpdate, defaultValue) {
3414
1890
  return [stateValue, setEffectVal];
3415
1891
  }
3416
1892
 
3417
- var OverflowContext = /*#__PURE__*/index$4.react.createContext(null);
1893
+ var OverflowContext = /*#__PURE__*/index$3.react.createContext(null);
3418
1894
 
3419
1895
  var _excluded$1 = ["component"],
3420
1896
  _excluded2 = ["className"],
3421
1897
  _excluded3 = ["className"];
3422
1898
  var InternalRawItem = function InternalRawItem(props, ref) {
3423
- var context = index$4.react.useContext(OverflowContext);
1899
+ var context = index$3.react.useContext(OverflowContext);
3424
1900
  // Render directly when context not provided
3425
1901
  if (!context) {
3426
1902
  var _props$component = props.component,
3427
1903
  Component = _props$component === void 0 ? 'div' : _props$component,
3428
1904
  _restProps = _objectWithoutProperties(props, _excluded$1);
3429
- return /*#__PURE__*/index$4.react.createElement(Component, _extends$1({}, _restProps, {
1905
+ return /*#__PURE__*/index$3.react.createElement(Component, _extends({}, _restProps, {
3430
1906
  ref: ref
3431
1907
  }));
3432
1908
  }
@@ -3435,14 +1911,14 @@ var InternalRawItem = function InternalRawItem(props, ref) {
3435
1911
  var className = props.className,
3436
1912
  restProps = _objectWithoutProperties(props, _excluded3);
3437
1913
  // Do not pass context to sub item to avoid multiple measure
3438
- return /*#__PURE__*/index$4.react.createElement(OverflowContext.Provider, {
1914
+ return /*#__PURE__*/index$3.react.createElement(OverflowContext.Provider, {
3439
1915
  value: null
3440
- }, /*#__PURE__*/index$4.react.createElement(Item, _extends$1({
1916
+ }, /*#__PURE__*/index$3.react.createElement(Item, _extends({
3441
1917
  ref: ref,
3442
- className: index$1.classnames(contextClassName, className)
1918
+ className: index.classnames(contextClassName, className)
3443
1919
  }, restContext, restProps)));
3444
1920
  };
3445
- var RawItem = /*#__PURE__*/index$4.react.forwardRef(InternalRawItem);
1921
+ var RawItem = /*#__PURE__*/index$3.react.forwardRef(InternalRawItem);
3446
1922
  RawItem.displayName = 'RawItem';
3447
1923
 
3448
1924
  var _excluded = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"];
@@ -3496,21 +1972,21 @@ function Overflow(props, ref) {
3496
1972
  _useEffectState10 = _slicedToArray(_useEffectState9, 2),
3497
1973
  suffixWidth = _useEffectState10[0],
3498
1974
  setSuffixWidth = _useEffectState10[1];
3499
- var _useState = index$4.react.useState(null),
1975
+ var _useState = index$3.react.useState(null),
3500
1976
  _useState2 = _slicedToArray(_useState, 2),
3501
1977
  suffixFixedStart = _useState2[0],
3502
1978
  setSuffixFixedStart = _useState2[1];
3503
- var _useState3 = index$4.react.useState(null),
1979
+ var _useState3 = index$3.react.useState(null),
3504
1980
  _useState4 = _slicedToArray(_useState3, 2),
3505
1981
  displayCount = _useState4[0],
3506
1982
  setDisplayCount = _useState4[1];
3507
- var mergedDisplayCount = index$4.react.useMemo(function () {
1983
+ var mergedDisplayCount = index$3.react.useMemo(function () {
3508
1984
  if (displayCount === null && fullySSR) {
3509
1985
  return Number.MAX_SAFE_INTEGER;
3510
1986
  }
3511
1987
  return displayCount || 0;
3512
1988
  }, [displayCount, containerWidth]);
3513
- var _useState5 = index$4.react.useState(false),
1989
+ var _useState5 = index$3.react.useState(false),
3514
1990
  _useState6 = _slicedToArray(_useState5, 2),
3515
1991
  restReady = _useState6[0],
3516
1992
  setRestReady = _useState6[1];
@@ -3525,7 +2001,7 @@ function Overflow(props, ref) {
3525
2001
  * When is `responsive`, we will always render rest node to get the real width of it for calculation
3526
2002
  */
3527
2003
  var showRest = shouldResponsive || typeof maxCount === 'number' && data.length > maxCount;
3528
- var mergedData = index$4.react.useMemo(function () {
2004
+ var mergedData = index$3.react.useMemo(function () {
3529
2005
  var items = data;
3530
2006
  if (shouldResponsive) {
3531
2007
  if (containerWidth === null && fullySSR) {
@@ -3538,21 +2014,21 @@ function Overflow(props, ref) {
3538
2014
  }
3539
2015
  return items;
3540
2016
  }, [data, itemWidth, containerWidth, maxCount, shouldResponsive]);
3541
- var omittedItems = index$4.react.useMemo(function () {
2017
+ var omittedItems = index$3.react.useMemo(function () {
3542
2018
  if (shouldResponsive) {
3543
2019
  return data.slice(mergedDisplayCount + 1);
3544
2020
  }
3545
2021
  return data.slice(mergedData.length);
3546
2022
  }, [data, mergedData, shouldResponsive, mergedDisplayCount]);
3547
2023
  // ================================= Item =================================
3548
- var getKey = index$4.react.useCallback(function (item, index) {
2024
+ var getKey = index$3.react.useCallback(function (item, index) {
3549
2025
  var _ref;
3550
2026
  if (typeof itemKey === 'function') {
3551
2027
  return itemKey(item);
3552
2028
  }
3553
2029
  return (_ref = itemKey && (item === null || item === void 0 ? void 0 : item[itemKey])) !== null && _ref !== void 0 ? _ref : index;
3554
2030
  }, [itemKey]);
3555
- var mergedRenderItem = index$4.react.useCallback(renderItem || function (item) {
2031
+ var mergedRenderItem = index$3.react.useCallback(renderItem || function (item) {
3556
2032
  return item;
3557
2033
  }, [renderItem]);
3558
2034
  function updateDisplayCount(count, suffixFixedStartVal, notReady) {
@@ -3597,7 +2073,7 @@ function Overflow(props, ref) {
3597
2073
  function getItemWidth(index) {
3598
2074
  return itemWidths.get(getKey(mergedData[index], index));
3599
2075
  }
3600
- useLayoutEffect(function () {
2076
+ index$4.useLayoutEffect(function () {
3601
2077
  if (mergedContainerWidth && typeof mergedRestWidth === 'number' && mergedData) {
3602
2078
  var totalWidth = suffixWidth;
3603
2079
  var len = mergedData.length;
@@ -3658,9 +2134,9 @@ function Overflow(props, ref) {
3658
2134
  // >>>>> Choice render fun by `renderRawItem`
3659
2135
  var internalRenderItemNode = renderRawItem ? function (item, index) {
3660
2136
  var key = getKey(item, index);
3661
- return /*#__PURE__*/index$4.react.createElement(OverflowContext.Provider, {
2137
+ return /*#__PURE__*/index$3.react.createElement(OverflowContext.Provider, {
3662
2138
  key: key,
3663
- value: _objectSpread2$1(_objectSpread2$1({}, itemSharedProps), {}, {
2139
+ value: _objectSpread2(_objectSpread2({}, itemSharedProps), {}, {
3664
2140
  order: index,
3665
2141
  item: item,
3666
2142
  itemKey: key,
@@ -3670,7 +2146,7 @@ function Overflow(props, ref) {
3670
2146
  }, renderRawItem(item, index));
3671
2147
  } : function (item, index) {
3672
2148
  var key = getKey(item, index);
3673
- return /*#__PURE__*/index$4.react.createElement(Item, _extends$1({}, itemSharedProps, {
2149
+ return /*#__PURE__*/index$3.react.createElement(Item, _extends({}, itemSharedProps, {
3674
2150
  order: index,
3675
2151
  key: key,
3676
2152
  item: item,
@@ -3690,17 +2166,17 @@ function Overflow(props, ref) {
3690
2166
  };
3691
2167
  if (!renderRawRest) {
3692
2168
  var mergedRenderRest = renderRest || defaultRenderRest;
3693
- restNode = /*#__PURE__*/index$4.react.createElement(Item, _extends$1({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
2169
+ restNode = /*#__PURE__*/index$3.react.createElement(Item, _extends({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
3694
2170
  } else if (renderRawRest) {
3695
- restNode = /*#__PURE__*/index$4.react.createElement(OverflowContext.Provider, {
3696
- value: _objectSpread2$1(_objectSpread2$1({}, itemSharedProps), restContextProps)
2171
+ restNode = /*#__PURE__*/index$3.react.createElement(OverflowContext.Provider, {
2172
+ value: _objectSpread2(_objectSpread2({}, itemSharedProps), restContextProps)
3697
2173
  }, renderRawRest(omittedItems));
3698
2174
  }
3699
- var overflowNode = /*#__PURE__*/index$4.react.createElement(Component, _extends$1({
3700
- className: index$1.classnames(!invalidate && prefixCls, className),
2175
+ var overflowNode = /*#__PURE__*/index$3.react.createElement(Component, _extends({
2176
+ className: index.classnames(!invalidate && prefixCls, className),
3701
2177
  style: style,
3702
2178
  ref: ref
3703
- }, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/index$4.react.createElement(Item, _extends$1({}, itemSharedProps, {
2179
+ }, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/index$3.react.createElement(Item, _extends({}, itemSharedProps, {
3704
2180
  responsive: isResponsive,
3705
2181
  responsiveDisabled: !shouldResponsive,
3706
2182
  order: mergedDisplayCount,
@@ -3710,14 +2186,14 @@ function Overflow(props, ref) {
3710
2186
  style: suffixStyle
3711
2187
  }), suffix));
3712
2188
  if (isResponsive) {
3713
- overflowNode = /*#__PURE__*/index$4.react.createElement(RefResizeObserver, {
2189
+ overflowNode = /*#__PURE__*/index$3.react.createElement(index$4.RefResizeObserver, {
3714
2190
  onResize: onOverflowResize,
3715
2191
  disabled: !shouldResponsive
3716
2192
  }, overflowNode);
3717
2193
  }
3718
2194
  return overflowNode;
3719
2195
  }
3720
- var ForwardOverflow = /*#__PURE__*/index$4.react.forwardRef(Overflow);
2196
+ var ForwardOverflow = /*#__PURE__*/index$3.react.forwardRef(Overflow);
3721
2197
  ForwardOverflow.displayName = 'Overflow';
3722
2198
  ForwardOverflow.Item = RawItem;
3723
2199
  ForwardOverflow.RESPONSIVE = RESPONSIVE;
@@ -3727,42 +2203,42 @@ const rcOverflowCss = "@import url(\"https://fonts.googleapis.com/css?family=Rob
3727
2203
 
3728
2204
  const BcmRcOverflow = class {
3729
2205
  constructor(hostRef) {
3730
- index$2.registerInstance(this, hostRef);
3731
- this.selectOtherTag = index$2.createEvent(this, "bcm-select-other-tag", 7);
3732
- this.selectTag = index$2.createEvent(this, "bcm-select-tag", 7);
3733
- this.deleteTag = index$2.createEvent(this, "bcm-delete-tag", 7);
2206
+ index$1.registerInstance(this, hostRef);
2207
+ this.selectOtherTag = index$1.createEvent(this, "bcm-select-other-tag", 7);
2208
+ this.selectTag = index$1.createEvent(this, "bcm-select-tag", 7);
2209
+ this.deleteTag = index$1.createEvent(this, "bcm-delete-tag", 7);
3734
2210
  this.renderItem = item => {
3735
- return index$4.react.createElement("bcm-tooltip", {
2211
+ return index$3.react.createElement("bcm-tooltip", {
3736
2212
  placement: "bottom",
3737
2213
  message: item.text,
3738
2214
  trigger: "hover",
3739
- }, index$4.react.createElement("div", {
2215
+ }, index$3.react.createElement("div", {
3740
2216
  id: item.value + "-tag",
3741
2217
  className: "bcm-tag",
3742
2218
  onClick: ({ target }) => this.onClickControl(target, item, false),
3743
- }, index$4.react.createElement("span", { className: "bcm-tag__content dismissable" },
2219
+ }, index$3.react.createElement("span", { className: "bcm-tag__content dismissable" },
3744
2220
  // .bcm-tag__content span {
3745
2221
  // display: block;
3746
2222
  // max-width: 38px;
3747
2223
  // white-space: nowrap;
3748
2224
  // overflow: hidden;
3749
2225
  // text-overflow: ellipsis;
3750
- index$4.react.createElement("div", { className: "value tw-block tw-max-w-[38px] tw-overflow-hidden tw-overflow-ellipsis tw-whitespace-nowrap" }, item.text), index$4.react.createElement("span", {
2226
+ index$3.react.createElement("div", { className: "value tw-block tw-max-w-[38px] tw-overflow-hidden tw-overflow-ellipsis tw-whitespace-nowrap" }, item.text), index$3.react.createElement("span", {
3751
2227
  className: "right close-button",
3752
- }, index$4.react.createElement("bcm-icon", {
2228
+ }, index$3.react.createElement("bcm-icon", {
3753
2229
  icon: "fa fa-times",
3754
2230
  })))));
3755
2231
  };
3756
2232
  this.renderRest = items => {
3757
2233
  const titles = (items === null || items === void 0 ? void 0 : items.sort((a, b) => +a.ct - +b.ct).slice(0, 15).map(item => stringHelper.StringHelper.textLimitter(item.text, 40, true)).toString().split(",").join("\r\n")) + (items.length > 15 ? "\r\n..." : "");
3758
- return index$4.react.createElement("bcm-tooltip", {
2234
+ return index$3.react.createElement("bcm-tooltip", {
3759
2235
  placement: "bottom",
3760
2236
  message: titles,
3761
2237
  trigger: "hover",
3762
- }, index$4.react.createElement("div", {
2238
+ }, index$3.react.createElement("div", {
3763
2239
  className: "bcm-tag bcm-tag--other",
3764
2240
  onClick: ({ target }) => this.onClickControl(target, items, true),
3765
- }, index$4.react.createElement("span", { className: `bcm-tag__content dismissable ${this.checked ? "checkable checked" : ""}` }, index$4.react.createElement("span", { className: "value" }, `+${items === null || items === void 0 ? void 0 : items.length}`), index$4.react.createElement("span", { className: "right close-button" }, index$4.react.createElement("bcm-icon", {
2241
+ }, index$3.react.createElement("span", { className: `bcm-tag__content dismissable ${this.checked ? "checkable checked" : ""}` }, index$3.react.createElement("span", { className: "value" }, `+${items === null || items === void 0 ? void 0 : items.length}`), index$3.react.createElement("span", { className: "right close-button" }, index$3.react.createElement("bcm-icon", {
3766
2242
  icon: "fa fa-times",
3767
2243
  })))));
3768
2244
  };
@@ -3785,19 +2261,19 @@ const BcmRcOverflow = class {
3785
2261
  }
3786
2262
  componentWillRender() {
3787
2263
  const { data, renderItem, renderRest, maxCount } = this;
3788
- this.overflowInstance = index$4.react.createElement(ForwardOverflow, {
2264
+ this.overflowInstance = index$3.react.createElement(ForwardOverflow, {
3789
2265
  data,
3790
2266
  renderItem,
3791
2267
  renderRest,
3792
2268
  maxCount,
3793
2269
  });
3794
- index$4.reactDom.render(this.overflowInstance, this.el);
2270
+ index$3.reactDom.render(this.overflowInstance, this.el);
3795
2271
  }
3796
- get el() { return index$2.getElement(this); }
2272
+ get el() { return index$1.getElement(this); }
3797
2273
  };
3798
2274
  BcmRcOverflow.style = rcOverflowCss;
3799
2275
 
3800
- const { state } = index$3.createStore({
2276
+ const { state } = index$2.createStore({
3801
2277
  value: new Map(),
3802
2278
  });
3803
2279
  const setValue = val => {
@@ -3936,9 +2412,9 @@ const searchCss = "@import url(\"https://fonts.googleapis.com/css?family=Roboto:
3936
2412
 
3937
2413
  const BcmSearch = class {
3938
2414
  constructor(hostRef) {
3939
- index$2.registerInstance(this, hostRef);
3940
- this.bcmOnSearch = index$2.createEvent(this, "bcm-on-search", 7);
3941
- this.bcmOnSearchClear = index$2.createEvent(this, "bcm-on-search-clear", 7);
2415
+ index$1.registerInstance(this, hostRef);
2416
+ this.bcmOnSearch = index$1.createEvent(this, "bcm-on-search", 7);
2417
+ this.bcmOnSearchClear = index$1.createEvent(this, "bcm-on-search-clear", 7);
3942
2418
  this.debounceHandler = generate.Generate.debounceInput((event) => this.onSearchValue(event, this), 300, false, () => {
3943
2419
  var _a, _b;
3944
2420
  this.isActiveClearable = ((_b = (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.length) > 0 && this.clearable;
@@ -4012,9 +2488,9 @@ const BcmSearch = class {
4012
2488
  }
4013
2489
  render() {
4014
2490
  const { _id, placeholder, disabled, readonly } = this;
4015
- return index$2.h(index$2.Host, { onClick: () => { this.onBcmFocus(); this.onBcmSelect(); } }, index$2.h(inputTemplate.InputTemplate, { size: this.size, id: _id, type: "search", placeholder: placeholder, disabled: disabled, "full-width": true, readonly: readonly, clearable: this.isActiveClearable, handleFocus: () => this.handleFocus(), handleBlur: () => this.handleBlur(), handleChange: () => this.handleChange(), handleClear: () => this.handleClear(), handleInput: this.debounceHandler, ref: (el) => this.inputElement = el }));
2491
+ return index$1.h(index$1.Host, { onClick: () => { this.onBcmFocus(); this.onBcmSelect(); } }, index$1.h(inputTemplate.InputTemplate, { size: this.size, id: _id, type: "search", placeholder: placeholder, disabled: disabled, "full-width": true, readonly: readonly, clearable: this.isActiveClearable, handleFocus: () => this.handleFocus(), handleBlur: () => this.handleBlur(), handleChange: () => this.handleChange(), handleClear: () => this.handleClear(), handleInput: this.debounceHandler, ref: (el) => this.inputElement = el }));
4016
2492
  }
4017
- get el() { return index$2.getElement(this); }
2493
+ get el() { return index$1.getElement(this); }
4018
2494
  static get watchers() { return {
4019
2495
  "data": ["dataChanged"]
4020
2496
  }; }