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
@@ -2,32 +2,33 @@
2
2
  * Built with Stencil
3
3
  * Copyright (c) Bromcom.
4
4
  */
5
- import { h as h$1, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-348b16ad.js';
6
- import { I as IsLoad } from './is-load-decorator-07d3502a.js';
7
- import { J as JsonParse } from './json-parse-decarator-2f05d903.js';
8
- import './color-helper-116755ed.js';
5
+ import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-0615c2b8.js';
6
+ import { I as IsLoad } from './is-load-decorator-6784aa87.js';
7
+ import { J as JsonParse } from './json-parse-decarator-498602a3.js';
8
+ import './color-helper-c4fa9ebc.js';
9
9
  import './datetime-helper-df25808a.js';
10
- import { s as snq, G as Generate } from './generate-f05c24f0.js';
11
- import { N as NumberHelper } from './number-helper-a66bec28.js';
12
- import { S as StringHelper } from './string-helper-6bd24967.js';
13
- import { V as Validators } from './validators-f99b9189.js';
10
+ import { s as snq, G as Generate } from './generate-903ca965.js';
11
+ import { N as NumberHelper } from './number-helper-3809b83b.js';
12
+ import { S as StringHelper } from './string-helper-4a28f775.js';
13
+ import { V as Validators } from './validators-c8f34de9.js';
14
14
  import './element-dragger-7ea06c76.js';
15
- import { g as getPlacement, s as setPosition } from './popover-placement-78f86f15.js';
15
+ import { g as getPlacement, s as setPosition } from './popover-placement-018109c4.js';
16
16
  import { p as pluralize, d as delay } from './utils-b3338faf.js';
17
- import { a as Bcm, B as Bcm$1 } from './bcm-9f50af9c.js';
18
- import { C as CaptionTemplate } from './caption-template-34a1cb44.js';
19
- import { c as classnames } from './index-ed9652af.js';
17
+ import { a as Bcm, B as Bcm$1 } from './bcm-ac17222c.js';
18
+ import { C as CaptionTemplate } from './caption-template-e973a48c.js';
19
+ import { c as classnames } from './index-b84bc8c9.js';
20
20
  import './types-6f06fa1a.js';
21
- import { L as LabelTemplate } from './label-template-98dafeb3.js';
21
+ import { L as LabelTemplate } from './label-template-f156f33f.js';
22
22
  import './types-9493a7ed.js';
23
- import { c as createStore } from './index-0052017c.js';
24
- import { r as react, a as reactDom } from './index-6310a048.js';
25
- import { c as createCommonjsModule } from './_commonjsHelpers-3016b722.js';
26
- import { I as InputTemplate } from './input-template-85f595d7.js';
23
+ import { c as createStore } from './index-7e71bbc8.js';
24
+ import { r as react, a as reactDom } from './index-a6d9d0af.js';
25
+ import { R as RefResizeObserver, c as wrapperRaf, u as useEvent, d as useLayoutEffect } from './index-c4568336.js';
26
+ import { I as InputTemplate } from './input-template-332be34e.js';
27
27
  import './colors-1d7854ea.js';
28
- import './colors-44c95e7e.js';
29
- import './package-56c53e8e.js';
30
- import './slot-template-672e941d.js';
28
+ import './colors-e1c31f79.js';
29
+ import './_commonjsHelpers-be0d4ec8.js';
30
+ import './package-9887f1c0.js';
31
+ import './slot-template-46035685.js';
31
32
 
32
33
  const CheckboxTemplate = ({ disabled, checked, readonly, required, indeterminate, hidden, captionType, _id }) => {
33
34
  // if ( indeterminate ) {
@@ -47,18 +48,18 @@ const CheckboxTemplate = ({ disabled, checked, readonly, required, indeterminate
47
48
  'bcm-checkbox__label-icon-checked': checked,
48
49
  });
49
50
  const bcmCheckboxLabelClass = classnames('bcm-checkbox__label');
50
- return (h$1("div", { class: hostClasses },
51
- h$1("input", { tabindex: "-1", id: _id, type: "checkbox", checked: checked, disabled: disabled, required: required, readonly: readonly }),
52
- h$1("label", { class: bcmCheckboxLabelClass, htmlFor: _id },
53
- h$1("span", { class: bcmCheckboxIconClass },
54
- h$1("bcm-icon", { icon: "far fa-check" })))));
51
+ return (h("div", { class: hostClasses },
52
+ h("input", { tabindex: "-1", id: _id, type: "checkbox", checked: checked, disabled: disabled, required: required, readonly: readonly }),
53
+ h("label", { class: bcmCheckboxLabelClass, htmlFor: _id },
54
+ h("span", { class: bcmCheckboxIconClass },
55
+ h("bcm-icon", { icon: "far fa-check" })))));
55
56
  };
56
57
 
57
58
  const InfoFooterTemplate = ({ selected, total, found, multiple, variableText }) => {
58
59
  total = total || 0;
59
60
  variableText = variableText ? pluralize(variableText, total) : 'items';
60
- return (h$1("footer", { class: "bcm-info-footer" },
61
- h$1("bcm-text", { scale: "size-1", color: "grey-8" },
61
+ return (h("footer", { class: "bcm-info-footer" },
62
+ h("bcm-text", { scale: "size-1", color: "grey-8" },
62
63
  (multiple && selected > 0) && ` ( ${selected} selected ) `,
63
64
  ` Total ${total} `,
64
65
  found != null && ` / ${found} `,
@@ -100,20 +101,20 @@ const ListItemTemplate = ({ item, treeview, highlight, checkboxes, size, selecte
100
101
  item.open = item.isSearching;
101
102
  openGroup(item.id);
102
103
  };
103
- return (h$1("div", { id: item.id, hidden: item.hidden, "on-focus": e => !unClickable && !disabled && focusItem(e), class: classnames('bcm-list__item',
104
+ return (h("div", { id: item.id, hidden: item.hidden, "on-focus": e => !unClickable && !disabled && focusItem(e), class: classnames('bcm-list__item',
104
105
  // size === 'large' ? 'size-3' : 'size-2',
105
106
  'bcm-list__item-' + size, {
106
107
  'bcm-list__item--group': !treeview && item.type == 'group',
107
108
  'bcm-list__item--readonly': readonly,
108
109
  }) },
109
- h$1("div", { class: classnames('bcm-list__item-content', !checkboxes && item.selected && 'selected', { disabled: disabled }) },
110
- treeview && (h$1("div", { class: "bcm-list__item-content-collapse-icon", onClick: () => collapseClick() }, isHaveChildren && h$1("bcm-icon", { icon: classnames('fas fa-caret-' + (item.isSearching || item.open ? 'down' : 'right')) }))),
111
- h$1("div", { class: classnames('bcm-list__item-content-text', { treeview }), onClick: (e) => itemClick(e) },
112
- checkboxes && (treeview || (!treeview && item.type != 'group')) && (h$1("div", { class: "bcm-list__item-content-text-checkbox" },
113
- h$1(CheckboxTemplate, { indeterminate: item.indeterminate, checked: item.checked, disabled: item.disabled }))),
114
- h$1("span", Object.assign({ class: "bcm-list__item-content-text-inner" }, (item.title && { "title": item.title }), { innerHTML: text })))),
115
- (treeview || !treeview && item.type == "group") && isHaveChildren && (h$1("div", { class: "bcm-list__item-childs" }, (item.isSearching || item.open || (!treeview && item.type == "group")) &&
116
- item.items.map((item) => (h$1(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) })))))));
110
+ h("div", { class: classnames('bcm-list__item-content', !checkboxes && item.selected && 'selected', { disabled: disabled }) },
111
+ treeview && (h("div", { class: "bcm-list__item-content-collapse-icon", onClick: () => collapseClick() }, isHaveChildren && h("bcm-icon", { icon: classnames('fas fa-caret-' + (item.isSearching || item.open ? 'down' : 'right')) }))),
112
+ h("div", { class: classnames('bcm-list__item-content-text', { treeview }), onClick: (e) => itemClick(e) },
113
+ checkboxes && (treeview || (!treeview && item.type != 'group')) && (h("div", { class: "bcm-list__item-content-text-checkbox" },
114
+ h(CheckboxTemplate, { indeterminate: item.indeterminate, checked: item.checked, disabled: item.disabled }))),
115
+ h("span", Object.assign({ class: "bcm-list__item-content-text-inner" }, (item.title && { "title": item.title }), { innerHTML: text })))),
116
+ (treeview || !treeview && item.type == "group") && isHaveChildren && (h("div", { class: "bcm-list__item-childs" }, (item.isSearching || item.open || (!treeview && item.type == "group")) &&
117
+ item.items.map((item) => (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) })))))));
117
118
  };
118
119
 
119
120
  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, }) => {
@@ -130,21 +131,21 @@ const ListTemplate = ({ highlight, selectAllItem, bcmListContainer, treeview, ch
130
131
  'flex-direction': 'column',
131
132
  };
132
133
  };
133
- return (h$1("div", { id: `bcm-list-${_id}`, class: bcmListContainer, style: { '--height': height, '--width': width } },
134
- data && searchable && (h$1("section", { class: "bcm-list__container-search" },
135
- h$1("bcm-search", { size: size, id: `bcm-list-${_id}-search`, data: data, clearable: true, placeholder: searchPlaceholder, "min-search-length": minSearchLength, searchIsOnlyChilds: searchIsOnlyChilds }))),
136
- h$1("main", { onScroll: e => onScrollEvent(e), class: "scrolling", style: { 'overscroll-behavior': 'none' } },
137
- h$1("div", { style: setScrollHeight() },
138
- checkAll && searchFound != 0 && items && items.length > 0 && checkboxes && showSelectAll && (h$1("section", { class: "bcm-list__container-select-all" },
139
- h$1(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) }))),
140
- items.map((item) => (h$1(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) }))),
141
- (!items || items.length === 0) && searchFound != 0 && (h$1("section", { class: "bcm-list__container-no-data" },
142
- h$1("bcm-empty", { style: { height: 'auto' }, icon: emptyIcon },
143
- h$1("span", { innerHTML: emptyText || 'No data' })))),
144
- searchFound == 0 && (h$1("section", { class: "bcm-list__container-no-data" },
145
- h$1("bcm-empty", { style: { height: 'auto' }, icon: emptyIcon },
146
- h$1("span", { innerHTML: emptyText || 'No Data Found' })))))),
147
- infoFooter && data && data.length > 0 && (h$1(InfoFooterTemplate, { selected: value === null || value === void 0 ? void 0 : value.length, total: totalData, found: searchFound, multiple: checkboxes, variableText: variableText }))));
134
+ return (h("div", { id: `bcm-list-${_id}`, class: bcmListContainer, style: { '--height': height, '--width': width } },
135
+ data && searchable && (h("section", { class: "bcm-list__container-search" },
136
+ h("bcm-search", { size: size, id: `bcm-list-${_id}-search`, data: data, clearable: true, placeholder: searchPlaceholder, "min-search-length": minSearchLength, searchIsOnlyChilds: searchIsOnlyChilds }))),
137
+ h("main", { onScroll: e => onScrollEvent(e), class: "scrolling", style: { 'overscroll-behavior': 'none' } },
138
+ h("div", { style: setScrollHeight() },
139
+ checkAll && searchFound != 0 && items && items.length > 0 && checkboxes && showSelectAll && (h("section", { class: "bcm-list__container-select-all" },
140
+ 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) }))),
141
+ items.map((item) => (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) }))),
142
+ (!items || items.length === 0) && searchFound != 0 && (h("section", { class: "bcm-list__container-no-data" },
143
+ h("bcm-empty", { style: { height: 'auto' }, icon: emptyIcon },
144
+ h("span", { innerHTML: emptyText || 'No data' })))),
145
+ searchFound == 0 && (h("section", { class: "bcm-list__container-no-data" },
146
+ h("bcm-empty", { style: { height: 'auto' }, icon: emptyIcon },
147
+ h("span", { innerHTML: emptyText || 'No Data Found' })))))),
148
+ infoFooter && data && data.length > 0 && (h(InfoFooterTemplate, { selected: value === null || value === void 0 ? void 0 : value.length, total: totalData, found: searchFound, multiple: checkboxes, variableText: variableText }))));
148
149
  };
149
150
 
150
151
  const { state: state$1 } = createStore({
@@ -1577,14 +1578,14 @@ const BcmList = class {
1577
1578
  });
1578
1579
  const bcmListInput = classnames("bcm-list__input");
1579
1580
  const openedType = this.type == "select" || this.type == "autocomplete" || this.linkedComponent;
1580
- return (h$1(Host, { class: hostClasses, tabindex: "0", style: {
1581
+ return (h(Host, { class: hostClasses, tabindex: "0", style: {
1581
1582
  "--width": fullWidth ? "100%" : this.width,
1582
1583
  "--height": openedType ? "100%" : this.height,
1583
1584
  "--max-height": openedType ? "inherit" : this.maxHeight,
1584
1585
  "--min-height": openedType ? "inherit" : this.minHeight,
1585
- } }, h$1("div", { id: `bcm-list-label-${this._id}`, class: "bcm-list__label" }, label && (h$1("div", null, h$1(LabelTemplate, { size: this.size, type: this.captionType, value: label, required: required, htmlFor: this._id })))), this.type == "select" && (h$1("div", { id: `bcm-list-input-${this._id}`, class: bcmListInput }, h$1("span", { class: classnames("bcm-list__input-container", { "type-single": !checkboxes, "value-empty": !this.value }) }, this.checkboxes ? (this.value && this.value.length > 0 ? (h$1("bcm-rc-overflow", { data: this.tagData, maxCount: this.tagCount })) : (h$1("span", { class: "bcm-list__input-placeholder" }, this.placeholder))) : this.value ? (this.inputText) : (h$1("span", { class: "bcm-list__input-placeholder" }, this.placeholder))), h$1("span", { class: classnames("bcm-list__input-buttons", {
1586
+ } }, h("div", { id: `bcm-list-label-${this._id}`, class: "bcm-list__label" }, label && (h("div", null, h(LabelTemplate, { size: this.size, type: this.captionType, value: label, required: required, htmlFor: this._id })))), this.type == "select" && (h("div", { id: `bcm-list-input-${this._id}`, class: bcmListInput }, h("span", { class: classnames("bcm-list__input-container", { "type-single": !checkboxes, "value-empty": !this.value }) }, this.checkboxes ? (this.value && this.value.length > 0 ? (h("bcm-rc-overflow", { data: this.tagData, maxCount: this.tagCount })) : (h("span", { class: "bcm-list__input-placeholder" }, this.placeholder))) : this.value ? (this.inputText) : (h("span", { class: "bcm-list__input-placeholder" }, this.placeholder))), h("span", { class: classnames("bcm-list__input-buttons", {
1586
1587
  disabled: disabled,
1587
- }) }, this.clearable && this.value && (h$1("div", { class: "bcm-list__input-buttons-button" }, h$1("bcm-icon", { icon: "fal fa-times", onClick: e => !disabled && this.setClear(e) }))), h$1("div", { class: `bcm-list__input-buttons-button caret-is ${this.isOpen && this.calculatedViewport && "caret-is-open"}` }, h$1("bcm-icon", { icon: `far fa-angle-down` }))))), this.type === "autocomplete" && (h$1("div", { id: `bcm-list-input-${this._id}`, class: classnames(bcmListInput, { "bcm-list__input-autocomplete": this.type == "autocomplete" }) }, h$1("span", { class: "bcm-list__input-container", id: `bcm-list-input-tag-container-${this._id}` }, this.checkboxes && h$1("span", { class: "bcm-list__input-tag-container", id: `bcm-list-input-tag-container-${this._id}-autocomplete` }), h$1("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 })))), h$1(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 }), h$1(CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
1588
+ }) }, this.clearable && this.value && (h("div", { class: "bcm-list__input-buttons-button" }, h("bcm-icon", { icon: "fal fa-times", onClick: e => !disabled && this.setClear(e) }))), h("div", { class: `bcm-list__input-buttons-button caret-is ${this.isOpen && this.calculatedViewport && "caret-is-open"}` }, h("bcm-icon", { icon: `far fa-angle-down` }))))), this.type === "autocomplete" && (h("div", { id: `bcm-list-input-${this._id}`, class: classnames(bcmListInput, { "bcm-list__input-autocomplete": this.type == "autocomplete" }) }, h("span", { class: "bcm-list__input-container", id: `bcm-list-input-tag-container-${this._id}` }, this.checkboxes && h("span", { class: "bcm-list__input-tag-container", id: `bcm-list-input-tag-container-${this._id}-autocomplete` }), 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 })))), 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 }), h(CaptionTemplate, { noCaption: this.noCaption, captionType: this.captionType, captionError: this.captionError, caption: this.caption })));
1588
1589
  }
1589
1590
  get el() { return getElement(this); }
1590
1591
  static get watchers() { return {
@@ -1603,8 +1604,8 @@ __decorate([
1603
1604
  ], BcmList.prototype, "dataChanged", null);
1604
1605
  BcmList.style = listCss;
1605
1606
 
1606
- function _extends$1() {
1607
- _extends$1 = Object.assign ? Object.assign.bind() : function (target) {
1607
+ function _extends() {
1608
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
1608
1609
  for (var i = 1; i < arguments.length; i++) {
1609
1610
  var source = arguments[i];
1610
1611
  for (var key in source) {
@@ -1615,37 +1616,37 @@ function _extends$1() {
1615
1616
  }
1616
1617
  return target;
1617
1618
  };
1618
- return _extends$1.apply(this, arguments);
1619
+ return _extends.apply(this, arguments);
1619
1620
  }
1620
1621
 
1621
- function _typeof$2(obj) {
1622
+ function _typeof(obj) {
1622
1623
  "@babel/helpers - typeof";
1623
1624
 
1624
- return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1625
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1625
1626
  return typeof obj;
1626
1627
  } : function (obj) {
1627
1628
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1628
- }, _typeof$2(obj);
1629
+ }, _typeof(obj);
1629
1630
  }
1630
1631
 
1631
- function _toPrimitive$1(input, hint) {
1632
- if (_typeof$2(input) !== "object" || input === null) return input;
1632
+ function _toPrimitive(input, hint) {
1633
+ if (_typeof(input) !== "object" || input === null) return input;
1633
1634
  var prim = input[Symbol.toPrimitive];
1634
1635
  if (prim !== undefined) {
1635
1636
  var res = prim.call(input, hint || "default");
1636
- if (_typeof$2(res) !== "object") return res;
1637
+ if (_typeof(res) !== "object") return res;
1637
1638
  throw new TypeError("@@toPrimitive must return a primitive value.");
1638
1639
  }
1639
1640
  return (hint === "string" ? String : Number)(input);
1640
1641
  }
1641
1642
 
1642
- function _toPropertyKey$1(arg) {
1643
- var key = _toPrimitive$1(arg, "string");
1644
- return _typeof$2(key) === "symbol" ? key : String(key);
1643
+ function _toPropertyKey(arg) {
1644
+ var key = _toPrimitive(arg, "string");
1645
+ return _typeof(key) === "symbol" ? key : String(key);
1645
1646
  }
1646
1647
 
1647
- function _defineProperty$1(obj, key, value) {
1648
- key = _toPropertyKey$1(key);
1648
+ function _defineProperty(obj, key, value) {
1649
+ key = _toPropertyKey(key);
1649
1650
  if (key in obj) {
1650
1651
  Object.defineProperty(obj, key, {
1651
1652
  value: value,
@@ -1659,7 +1660,7 @@ function _defineProperty$1(obj, key, value) {
1659
1660
  return obj;
1660
1661
  }
1661
1662
 
1662
- function ownKeys$1(object, enumerableOnly) {
1663
+ function ownKeys(object, enumerableOnly) {
1663
1664
  var keys = Object.keys(object);
1664
1665
  if (Object.getOwnPropertySymbols) {
1665
1666
  var symbols = Object.getOwnPropertySymbols(object);
@@ -1669,12 +1670,12 @@ function ownKeys$1(object, enumerableOnly) {
1669
1670
  }
1670
1671
  return keys;
1671
1672
  }
1672
- function _objectSpread2$1(target) {
1673
+ function _objectSpread2(target) {
1673
1674
  for (var i = 1; i < arguments.length; i++) {
1674
1675
  var source = null != arguments[i] ? arguments[i] : {};
1675
- i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
1676
- _defineProperty$1(target, key, source[key]);
1677
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
1676
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
1677
+ _defineProperty(target, key, source[key]);
1678
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
1678
1679
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1679
1680
  });
1680
1681
  }
@@ -1765,1469 +1766,6 @@ function _objectWithoutProperties(source, excluded) {
1765
1766
  return target;
1766
1767
  }
1767
1768
 
1768
- function _extends() {
1769
- _extends = Object.assign ? Object.assign.bind() : function (target) {
1770
- for (var i = 1; i < arguments.length; i++) {
1771
- var source = arguments[i];
1772
- for (var key in source) {
1773
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1774
- target[key] = source[key];
1775
- }
1776
- }
1777
- }
1778
- return target;
1779
- };
1780
- return _extends.apply(this, arguments);
1781
- }
1782
-
1783
- /** @license React v16.13.1
1784
- * react-is.production.min.js
1785
- *
1786
- * Copyright (c) Facebook, Inc. and its affiliates.
1787
- *
1788
- * This source code is licensed under the MIT license found in the
1789
- * LICENSE file in the root directory of this source tree.
1790
- */
1791
- 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?
1792
- 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;
1793
- 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;
1794
- 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};
1795
- 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};
1796
- 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;
1797
-
1798
- var reactIs_production_min = {
1799
- AsyncMode: AsyncMode,
1800
- ConcurrentMode: ConcurrentMode,
1801
- ContextConsumer: ContextConsumer,
1802
- ContextProvider: ContextProvider,
1803
- Element: Element$1,
1804
- ForwardRef: ForwardRef,
1805
- Fragment: Fragment,
1806
- Lazy: Lazy,
1807
- Memo: Memo,
1808
- Portal: Portal,
1809
- Profiler: Profiler,
1810
- StrictMode: StrictMode,
1811
- Suspense: Suspense,
1812
- isAsyncMode: isAsyncMode,
1813
- isConcurrentMode: isConcurrentMode,
1814
- isContextConsumer: isContextConsumer,
1815
- isContextProvider: isContextProvider,
1816
- isElement: isElement,
1817
- isForwardRef: isForwardRef,
1818
- isFragment: isFragment,
1819
- isLazy: isLazy,
1820
- isMemo: isMemo,
1821
- isPortal: isPortal,
1822
- isProfiler: isProfiler,
1823
- isStrictMode: isStrictMode,
1824
- isSuspense: isSuspense,
1825
- isValidElementType: isValidElementType,
1826
- typeOf: typeOf
1827
- };
1828
-
1829
- createCommonjsModule(function (module, exports) {
1830
- });
1831
-
1832
- var reactIs = createCommonjsModule(function (module) {
1833
-
1834
- {
1835
- module.exports = reactIs_production_min;
1836
- }
1837
- });
1838
-
1839
- function toArray(children) {
1840
- var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1841
- var ret = [];
1842
- react.Children.forEach(children, function (child) {
1843
- if ((child === undefined || child === null) && !option.keepEmpty) {
1844
- return;
1845
- }
1846
- if (Array.isArray(child)) {
1847
- ret = ret.concat(toArray(child));
1848
- } else if (reactIs.isFragment(child) && child.props) {
1849
- ret = ret.concat(toArray(child.props.children, option));
1850
- } else {
1851
- ret.push(child);
1852
- }
1853
- });
1854
- return ret;
1855
- }
1856
-
1857
- function _typeof$1(obj) {
1858
- "@babel/helpers - typeof";
1859
-
1860
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1861
- return typeof obj;
1862
- } : function (obj) {
1863
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1864
- }, _typeof$1(obj);
1865
- }
1866
-
1867
- function _toPrimitive(input, hint) {
1868
- if (_typeof$1(input) !== "object" || input === null) return input;
1869
- var prim = input[Symbol.toPrimitive];
1870
- if (prim !== undefined) {
1871
- var res = prim.call(input, hint || "default");
1872
- if (_typeof$1(res) !== "object") return res;
1873
- throw new TypeError("@@toPrimitive must return a primitive value.");
1874
- }
1875
- return (hint === "string" ? String : Number)(input);
1876
- }
1877
-
1878
- function _toPropertyKey(arg) {
1879
- var key = _toPrimitive(arg, "string");
1880
- return _typeof$1(key) === "symbol" ? key : String(key);
1881
- }
1882
-
1883
- function _defineProperty(obj, key, value) {
1884
- key = _toPropertyKey(key);
1885
- if (key in obj) {
1886
- Object.defineProperty(obj, key, {
1887
- value: value,
1888
- enumerable: true,
1889
- configurable: true,
1890
- writable: true
1891
- });
1892
- } else {
1893
- obj[key] = value;
1894
- }
1895
- return obj;
1896
- }
1897
-
1898
- function ownKeys(object, enumerableOnly) {
1899
- var keys = Object.keys(object);
1900
- if (Object.getOwnPropertySymbols) {
1901
- var symbols = Object.getOwnPropertySymbols(object);
1902
- enumerableOnly && (symbols = symbols.filter(function (sym) {
1903
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
1904
- })), keys.push.apply(keys, symbols);
1905
- }
1906
- return keys;
1907
- }
1908
- function _objectSpread2(target) {
1909
- for (var i = 1; i < arguments.length; i++) {
1910
- var source = null != arguments[i] ? arguments[i] : {};
1911
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
1912
- _defineProperty(target, key, source[key]);
1913
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
1914
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1915
- });
1916
- }
1917
- return target;
1918
- }
1919
-
1920
- function _typeof(obj) {
1921
- "@babel/helpers - typeof";
1922
-
1923
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1924
- return typeof obj;
1925
- } : function (obj) {
1926
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1927
- }, _typeof(obj);
1928
- }
1929
-
1930
- function fillRef(ref, node) {
1931
- if (typeof ref === 'function') {
1932
- ref(node);
1933
- } else if (_typeof(ref) === 'object' && ref && 'current' in ref) {
1934
- ref.current = node;
1935
- }
1936
- }
1937
-
1938
- /**
1939
- * Merge refs into one ref function to support ref passing.
1940
- */
1941
- function composeRef() {
1942
- for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
1943
- refs[_key] = arguments[_key];
1944
- }
1945
- var refList = refs.filter(function (ref) {
1946
- return ref;
1947
- });
1948
- if (refList.length <= 1) {
1949
- return refList[0];
1950
- }
1951
- return function (node) {
1952
- refs.forEach(function (ref) {
1953
- fillRef(ref, node);
1954
- });
1955
- };
1956
- }
1957
- function supportRef(nodeOrComponent) {
1958
- var _type$prototype, _nodeOrComponent$prot;
1959
- var type = reactIs.isMemo(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;
1960
-
1961
- // Function component node
1962
- if (typeof type === 'function' && !((_type$prototype = type.prototype) !== null && _type$prototype !== void 0 && _type$prototype.render)) {
1963
- return false;
1964
- }
1965
-
1966
- // Class component
1967
- if (typeof nodeOrComponent === 'function' && !((_nodeOrComponent$prot = nodeOrComponent.prototype) !== null && _nodeOrComponent$prot !== void 0 && _nodeOrComponent$prot.render)) {
1968
- return false;
1969
- }
1970
- return true;
1971
- }
1972
- /* eslint-enable */
1973
-
1974
- function isDOM(node) {
1975
- // https://developer.mozilla.org/en-US/docs/Web/API/Element
1976
- // Since XULElement is also subclass of Element, we only need HTMLElement and SVGElement
1977
- return node instanceof HTMLElement || node instanceof SVGElement;
1978
- }
1979
-
1980
- /**
1981
- * Return if a node is a DOM node. Else will return by `findDOMNode`
1982
- */
1983
- function findDOMNode(node) {
1984
- if (isDOM(node)) {
1985
- return node;
1986
- }
1987
- if (node instanceof react.Component) {
1988
- return reactDom.findDOMNode(node);
1989
- }
1990
- return null;
1991
- }
1992
-
1993
- /**
1994
- * A collection of shims that provide minimal functionality of the ES6 collections.
1995
- *
1996
- * These implementations are not meant to be used outside of the ResizeObserver
1997
- * modules as they cover only a limited range of use cases.
1998
- */
1999
- /* eslint-disable require-jsdoc, valid-jsdoc */
2000
- var MapShim = (function () {
2001
- if (typeof Map !== 'undefined') {
2002
- return Map;
2003
- }
2004
- /**
2005
- * Returns index in provided array that matches the specified key.
2006
- *
2007
- * @param {Array<Array>} arr
2008
- * @param {*} key
2009
- * @returns {number}
2010
- */
2011
- function getIndex(arr, key) {
2012
- var result = -1;
2013
- arr.some(function (entry, index) {
2014
- if (entry[0] === key) {
2015
- result = index;
2016
- return true;
2017
- }
2018
- return false;
2019
- });
2020
- return result;
2021
- }
2022
- return /** @class */ (function () {
2023
- function class_1() {
2024
- this.__entries__ = [];
2025
- }
2026
- Object.defineProperty(class_1.prototype, "size", {
2027
- /**
2028
- * @returns {boolean}
2029
- */
2030
- get: function () {
2031
- return this.__entries__.length;
2032
- },
2033
- enumerable: true,
2034
- configurable: true
2035
- });
2036
- /**
2037
- * @param {*} key
2038
- * @returns {*}
2039
- */
2040
- class_1.prototype.get = function (key) {
2041
- var index = getIndex(this.__entries__, key);
2042
- var entry = this.__entries__[index];
2043
- return entry && entry[1];
2044
- };
2045
- /**
2046
- * @param {*} key
2047
- * @param {*} value
2048
- * @returns {void}
2049
- */
2050
- class_1.prototype.set = function (key, value) {
2051
- var index = getIndex(this.__entries__, key);
2052
- if (~index) {
2053
- this.__entries__[index][1] = value;
2054
- }
2055
- else {
2056
- this.__entries__.push([key, value]);
2057
- }
2058
- };
2059
- /**
2060
- * @param {*} key
2061
- * @returns {void}
2062
- */
2063
- class_1.prototype.delete = function (key) {
2064
- var entries = this.__entries__;
2065
- var index = getIndex(entries, key);
2066
- if (~index) {
2067
- entries.splice(index, 1);
2068
- }
2069
- };
2070
- /**
2071
- * @param {*} key
2072
- * @returns {void}
2073
- */
2074
- class_1.prototype.has = function (key) {
2075
- return !!~getIndex(this.__entries__, key);
2076
- };
2077
- /**
2078
- * @returns {void}
2079
- */
2080
- class_1.prototype.clear = function () {
2081
- this.__entries__.splice(0);
2082
- };
2083
- /**
2084
- * @param {Function} callback
2085
- * @param {*} [ctx=null]
2086
- * @returns {void}
2087
- */
2088
- class_1.prototype.forEach = function (callback, ctx) {
2089
- if (ctx === void 0) { ctx = null; }
2090
- for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
2091
- var entry = _a[_i];
2092
- callback.call(ctx, entry[1], entry[0]);
2093
- }
2094
- };
2095
- return class_1;
2096
- }());
2097
- })();
2098
-
2099
- /**
2100
- * Detects whether window and document objects are available in current environment.
2101
- */
2102
- var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
2103
-
2104
- // Returns global object of a current environment.
2105
- var global$1 = (function () {
2106
- if (typeof global !== 'undefined' && global.Math === Math) {
2107
- return global;
2108
- }
2109
- if (typeof self !== 'undefined' && self.Math === Math) {
2110
- return self;
2111
- }
2112
- if (typeof window !== 'undefined' && window.Math === Math) {
2113
- return window;
2114
- }
2115
- // eslint-disable-next-line no-new-func
2116
- return Function('return this')();
2117
- })();
2118
-
2119
- /**
2120
- * A shim for the requestAnimationFrame which falls back to the setTimeout if
2121
- * first one is not supported.
2122
- *
2123
- * @returns {number} Requests' identifier.
2124
- */
2125
- var requestAnimationFrame$1 = (function () {
2126
- if (typeof requestAnimationFrame === 'function') {
2127
- // It's required to use a bounded function because IE sometimes throws
2128
- // an "Invalid calling object" error if rAF is invoked without the global
2129
- // object on the left hand side.
2130
- return requestAnimationFrame.bind(global$1);
2131
- }
2132
- return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };
2133
- })();
2134
-
2135
- // Defines minimum timeout before adding a trailing call.
2136
- var trailingTimeout = 2;
2137
- /**
2138
- * Creates a wrapper function which ensures that provided callback will be
2139
- * invoked only once during the specified delay period.
2140
- *
2141
- * @param {Function} callback - Function to be invoked after the delay period.
2142
- * @param {number} delay - Delay after which to invoke callback.
2143
- * @returns {Function}
2144
- */
2145
- function throttle (callback, delay) {
2146
- var leadingCall = false, trailingCall = false, lastCallTime = 0;
2147
- /**
2148
- * Invokes the original callback function and schedules new invocation if
2149
- * the "proxy" was called during current request.
2150
- *
2151
- * @returns {void}
2152
- */
2153
- function resolvePending() {
2154
- if (leadingCall) {
2155
- leadingCall = false;
2156
- callback();
2157
- }
2158
- if (trailingCall) {
2159
- proxy();
2160
- }
2161
- }
2162
- /**
2163
- * Callback invoked after the specified delay. It will further postpone
2164
- * invocation of the original function delegating it to the
2165
- * requestAnimationFrame.
2166
- *
2167
- * @returns {void}
2168
- */
2169
- function timeoutCallback() {
2170
- requestAnimationFrame$1(resolvePending);
2171
- }
2172
- /**
2173
- * Schedules invocation of the original function.
2174
- *
2175
- * @returns {void}
2176
- */
2177
- function proxy() {
2178
- var timeStamp = Date.now();
2179
- if (leadingCall) {
2180
- // Reject immediately following calls.
2181
- if (timeStamp - lastCallTime < trailingTimeout) {
2182
- return;
2183
- }
2184
- // Schedule new call to be in invoked when the pending one is resolved.
2185
- // This is important for "transitions" which never actually start
2186
- // immediately so there is a chance that we might miss one if change
2187
- // happens amids the pending invocation.
2188
- trailingCall = true;
2189
- }
2190
- else {
2191
- leadingCall = true;
2192
- trailingCall = false;
2193
- setTimeout(timeoutCallback, delay);
2194
- }
2195
- lastCallTime = timeStamp;
2196
- }
2197
- return proxy;
2198
- }
2199
-
2200
- // Minimum delay before invoking the update of observers.
2201
- var REFRESH_DELAY = 20;
2202
- // A list of substrings of CSS properties used to find transition events that
2203
- // might affect dimensions of observed elements.
2204
- var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
2205
- // Check if MutationObserver is available.
2206
- var mutationObserverSupported = typeof MutationObserver !== 'undefined';
2207
- /**
2208
- * Singleton controller class which handles updates of ResizeObserver instances.
2209
- */
2210
- var ResizeObserverController = /** @class */ (function () {
2211
- /**
2212
- * Creates a new instance of ResizeObserverController.
2213
- *
2214
- * @private
2215
- */
2216
- function ResizeObserverController() {
2217
- /**
2218
- * Indicates whether DOM listeners have been added.
2219
- *
2220
- * @private {boolean}
2221
- */
2222
- this.connected_ = false;
2223
- /**
2224
- * Tells that controller has subscribed for Mutation Events.
2225
- *
2226
- * @private {boolean}
2227
- */
2228
- this.mutationEventsAdded_ = false;
2229
- /**
2230
- * Keeps reference to the instance of MutationObserver.
2231
- *
2232
- * @private {MutationObserver}
2233
- */
2234
- this.mutationsObserver_ = null;
2235
- /**
2236
- * A list of connected observers.
2237
- *
2238
- * @private {Array<ResizeObserverSPI>}
2239
- */
2240
- this.observers_ = [];
2241
- this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
2242
- this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
2243
- }
2244
- /**
2245
- * Adds observer to observers list.
2246
- *
2247
- * @param {ResizeObserverSPI} observer - Observer to be added.
2248
- * @returns {void}
2249
- */
2250
- ResizeObserverController.prototype.addObserver = function (observer) {
2251
- if (!~this.observers_.indexOf(observer)) {
2252
- this.observers_.push(observer);
2253
- }
2254
- // Add listeners if they haven't been added yet.
2255
- if (!this.connected_) {
2256
- this.connect_();
2257
- }
2258
- };
2259
- /**
2260
- * Removes observer from observers list.
2261
- *
2262
- * @param {ResizeObserverSPI} observer - Observer to be removed.
2263
- * @returns {void}
2264
- */
2265
- ResizeObserverController.prototype.removeObserver = function (observer) {
2266
- var observers = this.observers_;
2267
- var index = observers.indexOf(observer);
2268
- // Remove observer if it's present in registry.
2269
- if (~index) {
2270
- observers.splice(index, 1);
2271
- }
2272
- // Remove listeners if controller has no connected observers.
2273
- if (!observers.length && this.connected_) {
2274
- this.disconnect_();
2275
- }
2276
- };
2277
- /**
2278
- * Invokes the update of observers. It will continue running updates insofar
2279
- * it detects changes.
2280
- *
2281
- * @returns {void}
2282
- */
2283
- ResizeObserverController.prototype.refresh = function () {
2284
- var changesDetected = this.updateObservers_();
2285
- // Continue running updates if changes have been detected as there might
2286
- // be future ones caused by CSS transitions.
2287
- if (changesDetected) {
2288
- this.refresh();
2289
- }
2290
- };
2291
- /**
2292
- * Updates every observer from observers list and notifies them of queued
2293
- * entries.
2294
- *
2295
- * @private
2296
- * @returns {boolean} Returns "true" if any observer has detected changes in
2297
- * dimensions of it's elements.
2298
- */
2299
- ResizeObserverController.prototype.updateObservers_ = function () {
2300
- // Collect observers that have active observations.
2301
- var activeObservers = this.observers_.filter(function (observer) {
2302
- return observer.gatherActive(), observer.hasActive();
2303
- });
2304
- // Deliver notifications in a separate cycle in order to avoid any
2305
- // collisions between observers, e.g. when multiple instances of
2306
- // ResizeObserver are tracking the same element and the callback of one
2307
- // of them changes content dimensions of the observed target. Sometimes
2308
- // this may result in notifications being blocked for the rest of observers.
2309
- activeObservers.forEach(function (observer) { return observer.broadcastActive(); });
2310
- return activeObservers.length > 0;
2311
- };
2312
- /**
2313
- * Initializes DOM listeners.
2314
- *
2315
- * @private
2316
- * @returns {void}
2317
- */
2318
- ResizeObserverController.prototype.connect_ = function () {
2319
- // Do nothing if running in a non-browser environment or if listeners
2320
- // have been already added.
2321
- if (!isBrowser || this.connected_) {
2322
- return;
2323
- }
2324
- // Subscription to the "Transitionend" event is used as a workaround for
2325
- // delayed transitions. This way it's possible to capture at least the
2326
- // final state of an element.
2327
- document.addEventListener('transitionend', this.onTransitionEnd_);
2328
- window.addEventListener('resize', this.refresh);
2329
- if (mutationObserverSupported) {
2330
- this.mutationsObserver_ = new MutationObserver(this.refresh);
2331
- this.mutationsObserver_.observe(document, {
2332
- attributes: true,
2333
- childList: true,
2334
- characterData: true,
2335
- subtree: true
2336
- });
2337
- }
2338
- else {
2339
- document.addEventListener('DOMSubtreeModified', this.refresh);
2340
- this.mutationEventsAdded_ = true;
2341
- }
2342
- this.connected_ = true;
2343
- };
2344
- /**
2345
- * Removes DOM listeners.
2346
- *
2347
- * @private
2348
- * @returns {void}
2349
- */
2350
- ResizeObserverController.prototype.disconnect_ = function () {
2351
- // Do nothing if running in a non-browser environment or if listeners
2352
- // have been already removed.
2353
- if (!isBrowser || !this.connected_) {
2354
- return;
2355
- }
2356
- document.removeEventListener('transitionend', this.onTransitionEnd_);
2357
- window.removeEventListener('resize', this.refresh);
2358
- if (this.mutationsObserver_) {
2359
- this.mutationsObserver_.disconnect();
2360
- }
2361
- if (this.mutationEventsAdded_) {
2362
- document.removeEventListener('DOMSubtreeModified', this.refresh);
2363
- }
2364
- this.mutationsObserver_ = null;
2365
- this.mutationEventsAdded_ = false;
2366
- this.connected_ = false;
2367
- };
2368
- /**
2369
- * "Transitionend" event handler.
2370
- *
2371
- * @private
2372
- * @param {TransitionEvent} event
2373
- * @returns {void}
2374
- */
2375
- ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
2376
- var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;
2377
- // Detect whether transition may affect dimensions of an element.
2378
- var isReflowProperty = transitionKeys.some(function (key) {
2379
- return !!~propertyName.indexOf(key);
2380
- });
2381
- if (isReflowProperty) {
2382
- this.refresh();
2383
- }
2384
- };
2385
- /**
2386
- * Returns instance of the ResizeObserverController.
2387
- *
2388
- * @returns {ResizeObserverController}
2389
- */
2390
- ResizeObserverController.getInstance = function () {
2391
- if (!this.instance_) {
2392
- this.instance_ = new ResizeObserverController();
2393
- }
2394
- return this.instance_;
2395
- };
2396
- /**
2397
- * Holds reference to the controller's instance.
2398
- *
2399
- * @private {ResizeObserverController}
2400
- */
2401
- ResizeObserverController.instance_ = null;
2402
- return ResizeObserverController;
2403
- }());
2404
-
2405
- /**
2406
- * Defines non-writable/enumerable properties of the provided target object.
2407
- *
2408
- * @param {Object} target - Object for which to define properties.
2409
- * @param {Object} props - Properties to be defined.
2410
- * @returns {Object} Target object.
2411
- */
2412
- var defineConfigurable = (function (target, props) {
2413
- for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
2414
- var key = _a[_i];
2415
- Object.defineProperty(target, key, {
2416
- value: props[key],
2417
- enumerable: false,
2418
- writable: false,
2419
- configurable: true
2420
- });
2421
- }
2422
- return target;
2423
- });
2424
-
2425
- /**
2426
- * Returns the global object associated with provided element.
2427
- *
2428
- * @param {Object} target
2429
- * @returns {Object}
2430
- */
2431
- var getWindowOf = (function (target) {
2432
- // Assume that the element is an instance of Node, which means that it
2433
- // has the "ownerDocument" property from which we can retrieve a
2434
- // corresponding global object.
2435
- var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
2436
- // Return the local global object if it's not possible extract one from
2437
- // provided element.
2438
- return ownerGlobal || global$1;
2439
- });
2440
-
2441
- // Placeholder of an empty content rectangle.
2442
- var emptyRect = createRectInit(0, 0, 0, 0);
2443
- /**
2444
- * Converts provided string to a number.
2445
- *
2446
- * @param {number|string} value
2447
- * @returns {number}
2448
- */
2449
- function toFloat(value) {
2450
- return parseFloat(value) || 0;
2451
- }
2452
- /**
2453
- * Extracts borders size from provided styles.
2454
- *
2455
- * @param {CSSStyleDeclaration} styles
2456
- * @param {...string} positions - Borders positions (top, right, ...)
2457
- * @returns {number}
2458
- */
2459
- function getBordersSize(styles) {
2460
- var positions = [];
2461
- for (var _i = 1; _i < arguments.length; _i++) {
2462
- positions[_i - 1] = arguments[_i];
2463
- }
2464
- return positions.reduce(function (size, position) {
2465
- var value = styles['border-' + position + '-width'];
2466
- return size + toFloat(value);
2467
- }, 0);
2468
- }
2469
- /**
2470
- * Extracts paddings sizes from provided styles.
2471
- *
2472
- * @param {CSSStyleDeclaration} styles
2473
- * @returns {Object} Paddings box.
2474
- */
2475
- function getPaddings(styles) {
2476
- var positions = ['top', 'right', 'bottom', 'left'];
2477
- var paddings = {};
2478
- for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
2479
- var position = positions_1[_i];
2480
- var value = styles['padding-' + position];
2481
- paddings[position] = toFloat(value);
2482
- }
2483
- return paddings;
2484
- }
2485
- /**
2486
- * Calculates content rectangle of provided SVG element.
2487
- *
2488
- * @param {SVGGraphicsElement} target - Element content rectangle of which needs
2489
- * to be calculated.
2490
- * @returns {DOMRectInit}
2491
- */
2492
- function getSVGContentRect(target) {
2493
- var bbox = target.getBBox();
2494
- return createRectInit(0, 0, bbox.width, bbox.height);
2495
- }
2496
- /**
2497
- * Calculates content rectangle of provided HTMLElement.
2498
- *
2499
- * @param {HTMLElement} target - Element for which to calculate the content rectangle.
2500
- * @returns {DOMRectInit}
2501
- */
2502
- function getHTMLElementContentRect(target) {
2503
- // Client width & height properties can't be
2504
- // used exclusively as they provide rounded values.
2505
- var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
2506
- // By this condition we can catch all non-replaced inline, hidden and
2507
- // detached elements. Though elements with width & height properties less
2508
- // than 0.5 will be discarded as well.
2509
- //
2510
- // Without it we would need to implement separate methods for each of
2511
- // those cases and it's not possible to perform a precise and performance
2512
- // effective test for hidden elements. E.g. even jQuery's ':visible' filter
2513
- // gives wrong results for elements with width & height less than 0.5.
2514
- if (!clientWidth && !clientHeight) {
2515
- return emptyRect;
2516
- }
2517
- var styles = getWindowOf(target).getComputedStyle(target);
2518
- var paddings = getPaddings(styles);
2519
- var horizPad = paddings.left + paddings.right;
2520
- var vertPad = paddings.top + paddings.bottom;
2521
- // Computed styles of width & height are being used because they are the
2522
- // only dimensions available to JS that contain non-rounded values. It could
2523
- // be possible to utilize the getBoundingClientRect if only it's data wasn't
2524
- // affected by CSS transformations let alone paddings, borders and scroll bars.
2525
- var width = toFloat(styles.width), height = toFloat(styles.height);
2526
- // Width & height include paddings and borders when the 'border-box' box
2527
- // model is applied (except for IE).
2528
- if (styles.boxSizing === 'border-box') {
2529
- // Following conditions are required to handle Internet Explorer which
2530
- // doesn't include paddings and borders to computed CSS dimensions.
2531
- //
2532
- // We can say that if CSS dimensions + paddings are equal to the "client"
2533
- // properties then it's either IE, and thus we don't need to subtract
2534
- // anything, or an element merely doesn't have paddings/borders styles.
2535
- if (Math.round(width + horizPad) !== clientWidth) {
2536
- width -= getBordersSize(styles, 'left', 'right') + horizPad;
2537
- }
2538
- if (Math.round(height + vertPad) !== clientHeight) {
2539
- height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
2540
- }
2541
- }
2542
- // Following steps can't be applied to the document's root element as its
2543
- // client[Width/Height] properties represent viewport area of the window.
2544
- // Besides, it's as well not necessary as the <html> itself neither has
2545
- // rendered scroll bars nor it can be clipped.
2546
- if (!isDocumentElement(target)) {
2547
- // In some browsers (only in Firefox, actually) CSS width & height
2548
- // include scroll bars size which can be removed at this step as scroll
2549
- // bars are the only difference between rounded dimensions + paddings
2550
- // and "client" properties, though that is not always true in Chrome.
2551
- var vertScrollbar = Math.round(width + horizPad) - clientWidth;
2552
- var horizScrollbar = Math.round(height + vertPad) - clientHeight;
2553
- // Chrome has a rather weird rounding of "client" properties.
2554
- // E.g. for an element with content width of 314.2px it sometimes gives
2555
- // the client width of 315px and for the width of 314.7px it may give
2556
- // 314px. And it doesn't happen all the time. So just ignore this delta
2557
- // as a non-relevant.
2558
- if (Math.abs(vertScrollbar) !== 1) {
2559
- width -= vertScrollbar;
2560
- }
2561
- if (Math.abs(horizScrollbar) !== 1) {
2562
- height -= horizScrollbar;
2563
- }
2564
- }
2565
- return createRectInit(paddings.left, paddings.top, width, height);
2566
- }
2567
- /**
2568
- * Checks whether provided element is an instance of the SVGGraphicsElement.
2569
- *
2570
- * @param {Element} target - Element to be checked.
2571
- * @returns {boolean}
2572
- */
2573
- var isSVGGraphicsElement = (function () {
2574
- // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
2575
- // interface.
2576
- if (typeof SVGGraphicsElement !== 'undefined') {
2577
- return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };
2578
- }
2579
- // If it's so, then check that element is at least an instance of the
2580
- // SVGElement and that it has the "getBBox" method.
2581
- // eslint-disable-next-line no-extra-parens
2582
- return function (target) { return (target instanceof getWindowOf(target).SVGElement &&
2583
- typeof target.getBBox === 'function'); };
2584
- })();
2585
- /**
2586
- * Checks whether provided element is a document element (<html>).
2587
- *
2588
- * @param {Element} target - Element to be checked.
2589
- * @returns {boolean}
2590
- */
2591
- function isDocumentElement(target) {
2592
- return target === getWindowOf(target).document.documentElement;
2593
- }
2594
- /**
2595
- * Calculates an appropriate content rectangle for provided html or svg element.
2596
- *
2597
- * @param {Element} target - Element content rectangle of which needs to be calculated.
2598
- * @returns {DOMRectInit}
2599
- */
2600
- function getContentRect(target) {
2601
- if (!isBrowser) {
2602
- return emptyRect;
2603
- }
2604
- if (isSVGGraphicsElement(target)) {
2605
- return getSVGContentRect(target);
2606
- }
2607
- return getHTMLElementContentRect(target);
2608
- }
2609
- /**
2610
- * Creates rectangle with an interface of the DOMRectReadOnly.
2611
- * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
2612
- *
2613
- * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
2614
- * @returns {DOMRectReadOnly}
2615
- */
2616
- function createReadOnlyRect(_a) {
2617
- var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
2618
- // If DOMRectReadOnly is available use it as a prototype for the rectangle.
2619
- var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
2620
- var rect = Object.create(Constr.prototype);
2621
- // Rectangle's properties are not writable and non-enumerable.
2622
- defineConfigurable(rect, {
2623
- x: x, y: y, width: width, height: height,
2624
- top: y,
2625
- right: x + width,
2626
- bottom: height + y,
2627
- left: x
2628
- });
2629
- return rect;
2630
- }
2631
- /**
2632
- * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
2633
- * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
2634
- *
2635
- * @param {number} x - X coordinate.
2636
- * @param {number} y - Y coordinate.
2637
- * @param {number} width - Rectangle's width.
2638
- * @param {number} height - Rectangle's height.
2639
- * @returns {DOMRectInit}
2640
- */
2641
- function createRectInit(x, y, width, height) {
2642
- return { x: x, y: y, width: width, height: height };
2643
- }
2644
-
2645
- /**
2646
- * Class that is responsible for computations of the content rectangle of
2647
- * provided DOM element and for keeping track of it's changes.
2648
- */
2649
- var ResizeObservation = /** @class */ (function () {
2650
- /**
2651
- * Creates an instance of ResizeObservation.
2652
- *
2653
- * @param {Element} target - Element to be observed.
2654
- */
2655
- function ResizeObservation(target) {
2656
- /**
2657
- * Broadcasted width of content rectangle.
2658
- *
2659
- * @type {number}
2660
- */
2661
- this.broadcastWidth = 0;
2662
- /**
2663
- * Broadcasted height of content rectangle.
2664
- *
2665
- * @type {number}
2666
- */
2667
- this.broadcastHeight = 0;
2668
- /**
2669
- * Reference to the last observed content rectangle.
2670
- *
2671
- * @private {DOMRectInit}
2672
- */
2673
- this.contentRect_ = createRectInit(0, 0, 0, 0);
2674
- this.target = target;
2675
- }
2676
- /**
2677
- * Updates content rectangle and tells whether it's width or height properties
2678
- * have changed since the last broadcast.
2679
- *
2680
- * @returns {boolean}
2681
- */
2682
- ResizeObservation.prototype.isActive = function () {
2683
- var rect = getContentRect(this.target);
2684
- this.contentRect_ = rect;
2685
- return (rect.width !== this.broadcastWidth ||
2686
- rect.height !== this.broadcastHeight);
2687
- };
2688
- /**
2689
- * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
2690
- * from the corresponding properties of the last observed content rectangle.
2691
- *
2692
- * @returns {DOMRectInit} Last observed content rectangle.
2693
- */
2694
- ResizeObservation.prototype.broadcastRect = function () {
2695
- var rect = this.contentRect_;
2696
- this.broadcastWidth = rect.width;
2697
- this.broadcastHeight = rect.height;
2698
- return rect;
2699
- };
2700
- return ResizeObservation;
2701
- }());
2702
-
2703
- var ResizeObserverEntry = /** @class */ (function () {
2704
- /**
2705
- * Creates an instance of ResizeObserverEntry.
2706
- *
2707
- * @param {Element} target - Element that is being observed.
2708
- * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
2709
- */
2710
- function ResizeObserverEntry(target, rectInit) {
2711
- var contentRect = createReadOnlyRect(rectInit);
2712
- // According to the specification following properties are not writable
2713
- // and are also not enumerable in the native implementation.
2714
- //
2715
- // Property accessors are not being used as they'd require to define a
2716
- // private WeakMap storage which may cause memory leaks in browsers that
2717
- // don't support this type of collections.
2718
- defineConfigurable(this, { target: target, contentRect: contentRect });
2719
- }
2720
- return ResizeObserverEntry;
2721
- }());
2722
-
2723
- var ResizeObserverSPI = /** @class */ (function () {
2724
- /**
2725
- * Creates a new instance of ResizeObserver.
2726
- *
2727
- * @param {ResizeObserverCallback} callback - Callback function that is invoked
2728
- * when one of the observed elements changes it's content dimensions.
2729
- * @param {ResizeObserverController} controller - Controller instance which
2730
- * is responsible for the updates of observer.
2731
- * @param {ResizeObserver} callbackCtx - Reference to the public
2732
- * ResizeObserver instance which will be passed to callback function.
2733
- */
2734
- function ResizeObserverSPI(callback, controller, callbackCtx) {
2735
- /**
2736
- * Collection of resize observations that have detected changes in dimensions
2737
- * of elements.
2738
- *
2739
- * @private {Array<ResizeObservation>}
2740
- */
2741
- this.activeObservations_ = [];
2742
- /**
2743
- * Registry of the ResizeObservation instances.
2744
- *
2745
- * @private {Map<Element, ResizeObservation>}
2746
- */
2747
- this.observations_ = new MapShim();
2748
- if (typeof callback !== 'function') {
2749
- throw new TypeError('The callback provided as parameter 1 is not a function.');
2750
- }
2751
- this.callback_ = callback;
2752
- this.controller_ = controller;
2753
- this.callbackCtx_ = callbackCtx;
2754
- }
2755
- /**
2756
- * Starts observing provided element.
2757
- *
2758
- * @param {Element} target - Element to be observed.
2759
- * @returns {void}
2760
- */
2761
- ResizeObserverSPI.prototype.observe = function (target) {
2762
- if (!arguments.length) {
2763
- throw new TypeError('1 argument required, but only 0 present.');
2764
- }
2765
- // Do nothing if current environment doesn't have the Element interface.
2766
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
2767
- return;
2768
- }
2769
- if (!(target instanceof getWindowOf(target).Element)) {
2770
- throw new TypeError('parameter 1 is not of type "Element".');
2771
- }
2772
- var observations = this.observations_;
2773
- // Do nothing if element is already being observed.
2774
- if (observations.has(target)) {
2775
- return;
2776
- }
2777
- observations.set(target, new ResizeObservation(target));
2778
- this.controller_.addObserver(this);
2779
- // Force the update of observations.
2780
- this.controller_.refresh();
2781
- };
2782
- /**
2783
- * Stops observing provided element.
2784
- *
2785
- * @param {Element} target - Element to stop observing.
2786
- * @returns {void}
2787
- */
2788
- ResizeObserverSPI.prototype.unobserve = function (target) {
2789
- if (!arguments.length) {
2790
- throw new TypeError('1 argument required, but only 0 present.');
2791
- }
2792
- // Do nothing if current environment doesn't have the Element interface.
2793
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
2794
- return;
2795
- }
2796
- if (!(target instanceof getWindowOf(target).Element)) {
2797
- throw new TypeError('parameter 1 is not of type "Element".');
2798
- }
2799
- var observations = this.observations_;
2800
- // Do nothing if element is not being observed.
2801
- if (!observations.has(target)) {
2802
- return;
2803
- }
2804
- observations.delete(target);
2805
- if (!observations.size) {
2806
- this.controller_.removeObserver(this);
2807
- }
2808
- };
2809
- /**
2810
- * Stops observing all elements.
2811
- *
2812
- * @returns {void}
2813
- */
2814
- ResizeObserverSPI.prototype.disconnect = function () {
2815
- this.clearActive();
2816
- this.observations_.clear();
2817
- this.controller_.removeObserver(this);
2818
- };
2819
- /**
2820
- * Collects observation instances the associated element of which has changed
2821
- * it's content rectangle.
2822
- *
2823
- * @returns {void}
2824
- */
2825
- ResizeObserverSPI.prototype.gatherActive = function () {
2826
- var _this = this;
2827
- this.clearActive();
2828
- this.observations_.forEach(function (observation) {
2829
- if (observation.isActive()) {
2830
- _this.activeObservations_.push(observation);
2831
- }
2832
- });
2833
- };
2834
- /**
2835
- * Invokes initial callback function with a list of ResizeObserverEntry
2836
- * instances collected from active resize observations.
2837
- *
2838
- * @returns {void}
2839
- */
2840
- ResizeObserverSPI.prototype.broadcastActive = function () {
2841
- // Do nothing if observer doesn't have active observations.
2842
- if (!this.hasActive()) {
2843
- return;
2844
- }
2845
- var ctx = this.callbackCtx_;
2846
- // Create ResizeObserverEntry instance for every active observation.
2847
- var entries = this.activeObservations_.map(function (observation) {
2848
- return new ResizeObserverEntry(observation.target, observation.broadcastRect());
2849
- });
2850
- this.callback_.call(ctx, entries, ctx);
2851
- this.clearActive();
2852
- };
2853
- /**
2854
- * Clears the collection of active observations.
2855
- *
2856
- * @returns {void}
2857
- */
2858
- ResizeObserverSPI.prototype.clearActive = function () {
2859
- this.activeObservations_.splice(0);
2860
- };
2861
- /**
2862
- * Tells whether observer has active observations.
2863
- *
2864
- * @returns {boolean}
2865
- */
2866
- ResizeObserverSPI.prototype.hasActive = function () {
2867
- return this.activeObservations_.length > 0;
2868
- };
2869
- return ResizeObserverSPI;
2870
- }());
2871
-
2872
- // Registry of internal observers. If WeakMap is not available use current shim
2873
- // for the Map collection as it has all required methods and because WeakMap
2874
- // can't be fully polyfilled anyway.
2875
- var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
2876
- /**
2877
- * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
2878
- * exposing only those methods and properties that are defined in the spec.
2879
- */
2880
- var ResizeObserver$1 = /** @class */ (function () {
2881
- /**
2882
- * Creates a new instance of ResizeObserver.
2883
- *
2884
- * @param {ResizeObserverCallback} callback - Callback that is invoked when
2885
- * dimensions of the observed elements change.
2886
- */
2887
- function ResizeObserver(callback) {
2888
- if (!(this instanceof ResizeObserver)) {
2889
- throw new TypeError('Cannot call a class as a function.');
2890
- }
2891
- if (!arguments.length) {
2892
- throw new TypeError('1 argument required, but only 0 present.');
2893
- }
2894
- var controller = ResizeObserverController.getInstance();
2895
- var observer = new ResizeObserverSPI(callback, controller, this);
2896
- observers.set(this, observer);
2897
- }
2898
- return ResizeObserver;
2899
- }());
2900
- // Expose public methods of ResizeObserver.
2901
- [
2902
- 'observe',
2903
- 'unobserve',
2904
- 'disconnect'
2905
- ].forEach(function (method) {
2906
- ResizeObserver$1.prototype[method] = function () {
2907
- var _a;
2908
- return (_a = observers.get(this))[method].apply(_a, arguments);
2909
- };
2910
- });
2911
-
2912
- var index = (function () {
2913
- // Export existing implementation if available.
2914
- if (typeof global$1.ResizeObserver !== 'undefined') {
2915
- return global$1.ResizeObserver;
2916
- }
2917
- return ResizeObserver$1;
2918
- })();
2919
-
2920
- // =============================== Const ===============================
2921
- var elementListeners = new Map();
2922
- function onResize(entities) {
2923
- entities.forEach(function (entity) {
2924
- var _elementListeners$get;
2925
- var target = entity.target;
2926
- (_elementListeners$get = elementListeners.get(target)) === null || _elementListeners$get === void 0 ? void 0 : _elementListeners$get.forEach(function (listener) {
2927
- return listener(target);
2928
- });
2929
- });
2930
- }
2931
- // Note: ResizeObserver polyfill not support option to measure border-box resize
2932
- var resizeObserver = new index(onResize);
2933
- // ============================== Observe ==============================
2934
- function observe(element, callback) {
2935
- if (!elementListeners.has(element)) {
2936
- elementListeners.set(element, new Set());
2937
- resizeObserver.observe(element);
2938
- }
2939
- elementListeners.get(element).add(callback);
2940
- }
2941
- function unobserve(element, callback) {
2942
- if (elementListeners.has(element)) {
2943
- elementListeners.get(element).delete(callback);
2944
- if (!elementListeners.get(element).size) {
2945
- resizeObserver.unobserve(element);
2946
- elementListeners.delete(element);
2947
- }
2948
- }
2949
- }
2950
-
2951
- function _classCallCheck(instance, Constructor) {
2952
- if (!(instance instanceof Constructor)) {
2953
- throw new TypeError("Cannot call a class as a function");
2954
- }
2955
- }
2956
-
2957
- function _defineProperties(target, props) {
2958
- for (var i = 0; i < props.length; i++) {
2959
- var descriptor = props[i];
2960
- descriptor.enumerable = descriptor.enumerable || false;
2961
- descriptor.configurable = true;
2962
- if ("value" in descriptor) descriptor.writable = true;
2963
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
2964
- }
2965
- }
2966
- function _createClass(Constructor, protoProps, staticProps) {
2967
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
2968
- if (staticProps) _defineProperties(Constructor, staticProps);
2969
- Object.defineProperty(Constructor, "prototype", {
2970
- writable: false
2971
- });
2972
- return Constructor;
2973
- }
2974
-
2975
- function _setPrototypeOf(o, p) {
2976
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
2977
- o.__proto__ = p;
2978
- return o;
2979
- };
2980
- return _setPrototypeOf(o, p);
2981
- }
2982
-
2983
- function _inherits(subClass, superClass) {
2984
- if (typeof superClass !== "function" && superClass !== null) {
2985
- throw new TypeError("Super expression must either be null or a function");
2986
- }
2987
- subClass.prototype = Object.create(superClass && superClass.prototype, {
2988
- constructor: {
2989
- value: subClass,
2990
- writable: true,
2991
- configurable: true
2992
- }
2993
- });
2994
- Object.defineProperty(subClass, "prototype", {
2995
- writable: false
2996
- });
2997
- if (superClass) _setPrototypeOf(subClass, superClass);
2998
- }
2999
-
3000
- function _getPrototypeOf(o) {
3001
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
3002
- return o.__proto__ || Object.getPrototypeOf(o);
3003
- };
3004
- return _getPrototypeOf(o);
3005
- }
3006
-
3007
- function _isNativeReflectConstruct() {
3008
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
3009
- if (Reflect.construct.sham) return false;
3010
- if (typeof Proxy === "function") return true;
3011
- try {
3012
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
3013
- return true;
3014
- } catch (e) {
3015
- return false;
3016
- }
3017
- }
3018
-
3019
- function _assertThisInitialized(self) {
3020
- if (self === void 0) {
3021
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
3022
- }
3023
- return self;
3024
- }
3025
-
3026
- function _possibleConstructorReturn(self, call) {
3027
- if (call && (_typeof$1(call) === "object" || typeof call === "function")) {
3028
- return call;
3029
- } else if (call !== void 0) {
3030
- throw new TypeError("Derived constructors may only return object or undefined");
3031
- }
3032
- return _assertThisInitialized(self);
3033
- }
3034
-
3035
- function _createSuper(Derived) {
3036
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
3037
- return function _createSuperInternal() {
3038
- var Super = _getPrototypeOf(Derived),
3039
- result;
3040
- if (hasNativeReflectConstruct) {
3041
- var NewTarget = _getPrototypeOf(this).constructor;
3042
- result = Reflect.construct(Super, arguments, NewTarget);
3043
- } else {
3044
- result = Super.apply(this, arguments);
3045
- }
3046
- return _possibleConstructorReturn(this, result);
3047
- };
3048
- }
3049
-
3050
- /**
3051
- * Fallback to findDOMNode if origin ref do not provide any dom element
3052
- */
3053
- var DomWrapper = /*#__PURE__*/function (_React$Component) {
3054
- _inherits(DomWrapper, _React$Component);
3055
- var _super = _createSuper(DomWrapper);
3056
- function DomWrapper() {
3057
- _classCallCheck(this, DomWrapper);
3058
- return _super.apply(this, arguments);
3059
- }
3060
- _createClass(DomWrapper, [{
3061
- key: "render",
3062
- value: function render() {
3063
- return this.props.children;
3064
- }
3065
- }]);
3066
- return DomWrapper;
3067
- }(react.Component);
3068
-
3069
- var CollectionContext = /*#__PURE__*/react.createContext(null);
3070
- /**
3071
- * Collect all the resize event from children ResizeObserver
3072
- */
3073
- function Collection(_ref) {
3074
- var children = _ref.children,
3075
- onBatchResize = _ref.onBatchResize;
3076
- var resizeIdRef = react.useRef(0);
3077
- var resizeInfosRef = react.useRef([]);
3078
- var onCollectionResize = react.useContext(CollectionContext);
3079
- var onResize = react.useCallback(function (size, element, data) {
3080
- resizeIdRef.current += 1;
3081
- var currentId = resizeIdRef.current;
3082
- resizeInfosRef.current.push({
3083
- size: size,
3084
- element: element,
3085
- data: data
3086
- });
3087
- Promise.resolve().then(function () {
3088
- if (currentId === resizeIdRef.current) {
3089
- onBatchResize === null || onBatchResize === void 0 ? void 0 : onBatchResize(resizeInfosRef.current);
3090
- resizeInfosRef.current = [];
3091
- }
3092
- });
3093
- // Continue bubbling if parent exist
3094
- onCollectionResize === null || onCollectionResize === void 0 ? void 0 : onCollectionResize(size, element, data);
3095
- }, [onBatchResize, onCollectionResize]);
3096
- return /*#__PURE__*/react.createElement(CollectionContext.Provider, {
3097
- value: onResize
3098
- }, children);
3099
- }
3100
-
3101
- function SingleObserver(props, ref) {
3102
- var children = props.children,
3103
- disabled = props.disabled;
3104
- var elementRef = react.useRef(null);
3105
- var wrapperRef = react.useRef(null);
3106
- var onCollectionResize = react.useContext(CollectionContext);
3107
- // =========================== Children ===========================
3108
- var isRenderProps = typeof children === 'function';
3109
- var mergedChildren = isRenderProps ? children(elementRef) : children;
3110
- // ============================= Size =============================
3111
- var sizeRef = react.useRef({
3112
- width: -1,
3113
- height: -1,
3114
- offsetWidth: -1,
3115
- offsetHeight: -1
3116
- });
3117
- // ============================= Ref ==============================
3118
- var canRef = !isRenderProps && /*#__PURE__*/react.isValidElement(mergedChildren) && supportRef(mergedChildren);
3119
- var originRef = canRef ? mergedChildren.ref : null;
3120
- var mergedRef = react.useMemo(function () {
3121
- return composeRef(originRef, elementRef);
3122
- }, [originRef, elementRef]);
3123
- var getDom = function getDom() {
3124
- return findDOMNode(elementRef.current) || findDOMNode(wrapperRef.current);
3125
- };
3126
- react.useImperativeHandle(ref, function () {
3127
- return getDom();
3128
- });
3129
- // =========================== Observe ============================
3130
- var propsRef = react.useRef(props);
3131
- propsRef.current = props;
3132
- // Handler
3133
- var onInternalResize = react.useCallback(function (target) {
3134
- var _propsRef$current = propsRef.current,
3135
- onResize = _propsRef$current.onResize,
3136
- data = _propsRef$current.data;
3137
- var _target$getBoundingCl = target.getBoundingClientRect(),
3138
- width = _target$getBoundingCl.width,
3139
- height = _target$getBoundingCl.height;
3140
- var offsetWidth = target.offsetWidth,
3141
- offsetHeight = target.offsetHeight;
3142
- /**
3143
- * Resize observer trigger when content size changed.
3144
- * In most case we just care about element size,
3145
- * let's use `boundary` instead of `contentRect` here to avoid shaking.
3146
- */
3147
- var fixedWidth = Math.floor(width);
3148
- var fixedHeight = Math.floor(height);
3149
- if (sizeRef.current.width !== fixedWidth || sizeRef.current.height !== fixedHeight || sizeRef.current.offsetWidth !== offsetWidth || sizeRef.current.offsetHeight !== offsetHeight) {
3150
- var size = {
3151
- width: fixedWidth,
3152
- height: fixedHeight,
3153
- offsetWidth: offsetWidth,
3154
- offsetHeight: offsetHeight
3155
- };
3156
- sizeRef.current = size;
3157
- // IE is strange, right?
3158
- var mergedOffsetWidth = offsetWidth === Math.round(width) ? width : offsetWidth;
3159
- var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight;
3160
- var sizeInfo = _objectSpread2(_objectSpread2({}, size), {}, {
3161
- offsetWidth: mergedOffsetWidth,
3162
- offsetHeight: mergedOffsetHeight
3163
- });
3164
- // Let collection know what happened
3165
- onCollectionResize === null || onCollectionResize === void 0 ? void 0 : onCollectionResize(sizeInfo, target, data);
3166
- if (onResize) {
3167
- // defer the callback but not defer to next frame
3168
- Promise.resolve().then(function () {
3169
- onResize(sizeInfo, target);
3170
- });
3171
- }
3172
- }
3173
- }, []);
3174
- // Dynamic observe
3175
- react.useEffect(function () {
3176
- var currentElement = getDom();
3177
- if (currentElement && !disabled) {
3178
- observe(currentElement, onInternalResize);
3179
- }
3180
- return function () {
3181
- return unobserve(currentElement, onInternalResize);
3182
- };
3183
- }, [elementRef.current, disabled]);
3184
- // ============================ Render ============================
3185
- return /*#__PURE__*/react.createElement(DomWrapper, {
3186
- ref: wrapperRef
3187
- }, canRef ? /*#__PURE__*/react.cloneElement(mergedChildren, {
3188
- ref: mergedRef
3189
- }) : mergedChildren);
3190
- }
3191
- var RefSingleObserver = /*#__PURE__*/react.forwardRef(SingleObserver);
3192
-
3193
- var INTERNAL_PREFIX_KEY = 'rc-observer-key';
3194
- function ResizeObserver(props, ref) {
3195
- var children = props.children;
3196
- var childNodes = typeof children === 'function' ? [children] : toArray(children);
3197
- return childNodes.map(function (child, index) {
3198
- var key = (child === null || child === void 0 ? void 0 : child.key) || "".concat(INTERNAL_PREFIX_KEY, "-").concat(index);
3199
- return /*#__PURE__*/react.createElement(RefSingleObserver, _extends({}, props, {
3200
- key: key,
3201
- ref: index === 0 ? ref : undefined
3202
- }), child);
3203
- });
3204
- }
3205
- var RefResizeObserver = /*#__PURE__*/react.forwardRef(ResizeObserver);
3206
- RefResizeObserver.Collection = Collection;
3207
-
3208
- function canUseDom() {
3209
- return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
3210
- }
3211
-
3212
- /**
3213
- * Wrap `React.useLayoutEffect` which will not throw warning message in test env
3214
- */
3215
- var useInternalLayoutEffect = canUseDom() ? react.useLayoutEffect : react.useEffect;
3216
- var useLayoutEffect = function useLayoutEffect(callback, deps) {
3217
- var firstMountRef = react.useRef(true);
3218
- useInternalLayoutEffect(function () {
3219
- return callback(firstMountRef.current);
3220
- }, deps);
3221
-
3222
- // We tell react that first mount has passed
3223
- useInternalLayoutEffect(function () {
3224
- firstMountRef.current = false;
3225
- return function () {
3226
- firstMountRef.current = true;
3227
- };
3228
- }, []);
3229
- };
3230
-
3231
1769
  var _excluded$2 = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"];
3232
1770
  // Use shared variable to save bundle size
3233
1771
  var UNDEFINED = undefined;
@@ -3275,9 +1813,9 @@ function InternalItem(props, ref) {
3275
1813
  if (mergedHidden) {
3276
1814
  overflowProps['aria-hidden'] = true;
3277
1815
  }
3278
- var itemNode = /*#__PURE__*/react.createElement(Component, _extends$1({
1816
+ var itemNode = /*#__PURE__*/react.createElement(Component, _extends({
3279
1817
  className: classnames(!invalidate && prefixCls, className),
3280
- style: _objectSpread2$1(_objectSpread2$1({}, overflowStyle), style)
1818
+ style: _objectSpread2(_objectSpread2({}, overflowStyle), style)
3281
1819
  }, overflowProps, restProps, {
3282
1820
  ref: ref
3283
1821
  }), childNode);
@@ -3295,68 +1833,6 @@ function InternalItem(props, ref) {
3295
1833
  var Item = /*#__PURE__*/react.forwardRef(InternalItem);
3296
1834
  Item.displayName = 'Item';
3297
1835
 
3298
- function useEvent(callback) {
3299
- var fnRef = react.useRef();
3300
- fnRef.current = callback;
3301
- var memoFn = react.useCallback(function () {
3302
- var _fnRef$current;
3303
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3304
- args[_key] = arguments[_key];
3305
- }
3306
- return (_fnRef$current = fnRef.current) === null || _fnRef$current === void 0 ? void 0 : _fnRef$current.call.apply(_fnRef$current, [fnRef].concat(args));
3307
- }, []);
3308
- return memoFn;
3309
- }
3310
-
3311
- var raf = function raf(callback) {
3312
- return +setTimeout(callback, 16);
3313
- };
3314
- var caf = function caf(num) {
3315
- return clearTimeout(num);
3316
- };
3317
- if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
3318
- raf = function raf(callback) {
3319
- return window.requestAnimationFrame(callback);
3320
- };
3321
- caf = function caf(handle) {
3322
- return window.cancelAnimationFrame(handle);
3323
- };
3324
- }
3325
- var rafUUID = 0;
3326
- var rafIds = new Map();
3327
- function cleanup(id) {
3328
- rafIds.delete(id);
3329
- }
3330
- var wrapperRaf = function wrapperRaf(callback) {
3331
- var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
3332
- rafUUID += 1;
3333
- var id = rafUUID;
3334
- function callRef(leftTimes) {
3335
- if (leftTimes === 0) {
3336
- // Clean up
3337
- cleanup(id);
3338
-
3339
- // Trigger
3340
- callback();
3341
- } else {
3342
- // Next raf
3343
- var realId = raf(function () {
3344
- callRef(leftTimes - 1);
3345
- });
3346
-
3347
- // Bind real raf id
3348
- rafIds.set(id, realId);
3349
- }
3350
- }
3351
- callRef(times);
3352
- return id;
3353
- };
3354
- wrapperRaf.cancel = function (id) {
3355
- var realId = rafIds.get(id);
3356
- cleanup(realId);
3357
- return caf(realId);
3358
- };
3359
-
3360
1836
  function channelUpdate(callback) {
3361
1837
  if (typeof MessageChannel === 'undefined') {
3362
1838
  wrapperRaf(callback);
@@ -3422,7 +1898,7 @@ var InternalRawItem = function InternalRawItem(props, ref) {
3422
1898
  var _props$component = props.component,
3423
1899
  Component = _props$component === void 0 ? 'div' : _props$component,
3424
1900
  _restProps = _objectWithoutProperties(props, _excluded$1);
3425
- return /*#__PURE__*/react.createElement(Component, _extends$1({}, _restProps, {
1901
+ return /*#__PURE__*/react.createElement(Component, _extends({}, _restProps, {
3426
1902
  ref: ref
3427
1903
  }));
3428
1904
  }
@@ -3433,7 +1909,7 @@ var InternalRawItem = function InternalRawItem(props, ref) {
3433
1909
  // Do not pass context to sub item to avoid multiple measure
3434
1910
  return /*#__PURE__*/react.createElement(OverflowContext.Provider, {
3435
1911
  value: null
3436
- }, /*#__PURE__*/react.createElement(Item, _extends$1({
1912
+ }, /*#__PURE__*/react.createElement(Item, _extends({
3437
1913
  ref: ref,
3438
1914
  className: classnames(contextClassName, className)
3439
1915
  }, restContext, restProps)));
@@ -3656,7 +2132,7 @@ function Overflow(props, ref) {
3656
2132
  var key = getKey(item, index);
3657
2133
  return /*#__PURE__*/react.createElement(OverflowContext.Provider, {
3658
2134
  key: key,
3659
- value: _objectSpread2$1(_objectSpread2$1({}, itemSharedProps), {}, {
2135
+ value: _objectSpread2(_objectSpread2({}, itemSharedProps), {}, {
3660
2136
  order: index,
3661
2137
  item: item,
3662
2138
  itemKey: key,
@@ -3666,7 +2142,7 @@ function Overflow(props, ref) {
3666
2142
  }, renderRawItem(item, index));
3667
2143
  } : function (item, index) {
3668
2144
  var key = getKey(item, index);
3669
- return /*#__PURE__*/react.createElement(Item, _extends$1({}, itemSharedProps, {
2145
+ return /*#__PURE__*/react.createElement(Item, _extends({}, itemSharedProps, {
3670
2146
  order: index,
3671
2147
  key: key,
3672
2148
  item: item,
@@ -3686,17 +2162,17 @@ function Overflow(props, ref) {
3686
2162
  };
3687
2163
  if (!renderRawRest) {
3688
2164
  var mergedRenderRest = renderRest || defaultRenderRest;
3689
- restNode = /*#__PURE__*/react.createElement(Item, _extends$1({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
2165
+ restNode = /*#__PURE__*/react.createElement(Item, _extends({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
3690
2166
  } else if (renderRawRest) {
3691
2167
  restNode = /*#__PURE__*/react.createElement(OverflowContext.Provider, {
3692
- value: _objectSpread2$1(_objectSpread2$1({}, itemSharedProps), restContextProps)
2168
+ value: _objectSpread2(_objectSpread2({}, itemSharedProps), restContextProps)
3693
2169
  }, renderRawRest(omittedItems));
3694
2170
  }
3695
- var overflowNode = /*#__PURE__*/react.createElement(Component, _extends$1({
2171
+ var overflowNode = /*#__PURE__*/react.createElement(Component, _extends({
3696
2172
  className: classnames(!invalidate && prefixCls, className),
3697
2173
  style: style,
3698
2174
  ref: ref
3699
- }, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/react.createElement(Item, _extends$1({}, itemSharedProps, {
2175
+ }, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/react.createElement(Item, _extends({}, itemSharedProps, {
3700
2176
  responsive: isResponsive,
3701
2177
  responsiveDisabled: !shouldResponsive,
3702
2178
  order: mergedDisplayCount,
@@ -4008,7 +2484,7 @@ const BcmSearch = class {
4008
2484
  }
4009
2485
  render() {
4010
2486
  const { _id, placeholder, disabled, readonly } = this;
4011
- return h$1(Host, { onClick: () => { this.onBcmFocus(); this.onBcmSelect(); } }, h$1(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 }));
2487
+ return h(Host, { onClick: () => { this.onBcmFocus(); this.onBcmSelect(); } }, h(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 }));
4012
2488
  }
4013
2489
  get el() { return getElement(this); }
4014
2490
  static get watchers() { return {