bromcom-ui 2.9.1-rc.0 → 2.9.1-rc.1

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 (369) 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/{p-7c5763cc.entry.js → p-03337609.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-6edf985f.js → p-034bbcdd.js} +1 -1
  5. package/dist/bromcom-ui/p-0be0c743.entry.js +5 -0
  6. package/dist/bromcom-ui/{p-430c0a24.entry.js → p-0efc9196.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-c1a992e7.entry.js → p-107f11df.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-7d18ce0e.entry.js → p-181f2f4a.entry.js} +1 -1
  9. package/dist/bromcom-ui/p-1845fc18.js +5 -0
  10. package/dist/bromcom-ui/{p-2aaeb247.entry.js → p-188b9079.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-26290ed5.entry.js → p-18bc4e04.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-74e6d2b6.js → p-197aba37.js} +1 -1
  13. package/dist/bromcom-ui/{p-80ee3d97.entry.js → p-1998815a.entry.js} +1 -1
  14. package/dist/bromcom-ui/p-1a31fc0b.entry.js +5 -0
  15. package/dist/bromcom-ui/{p-a664cc20.entry.js → p-1a33d7a3.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-efc75375.entry.js → p-1c043ab6.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-fff1a0f9.entry.js → p-1e8559ac.entry.js} +1 -1
  18. package/dist/bromcom-ui/p-21da70e5.entry.js +5 -0
  19. package/dist/bromcom-ui/{p-28a748ad.entry.js → p-226c8c0a.entry.js} +1 -1
  20. package/dist/bromcom-ui/p-292861ed.entry.js +5 -0
  21. package/dist/bromcom-ui/{p-4f5f5090.entry.js → p-2aa9e3e8.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-6880da84.entry.js → p-2bfd7aa8.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-70d3ff0a.entry.js → p-2d3e225b.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-541fc5ec.entry.js → p-2ebba9f4.entry.js} +1 -1
  25. package/dist/bromcom-ui/p-3182df7e.js +10 -0
  26. package/dist/bromcom-ui/p-32df2233.js +5 -0
  27. package/dist/bromcom-ui/p-3469c1bb.js +5 -0
  28. package/dist/bromcom-ui/p-3a1eabb1.entry.js +5 -0
  29. package/dist/bromcom-ui/{p-67343ad8.entry.js → p-3b079331.entry.js} +1 -1
  30. package/dist/bromcom-ui/p-3b78f74e.entry.js +5 -0
  31. package/dist/bromcom-ui/{p-15a16b4a.entry.js → p-3c783cae.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-8c018ae0.js → p-3c7a0345.js} +1 -1
  33. package/dist/bromcom-ui/{p-67d13512.entry.js → p-417e8067.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-14cafd64.entry.js → p-4438d629.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-5699f67d.entry.js → p-468157a0.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-61db1f1f.js → p-4798d827.js} +1 -1
  37. package/dist/bromcom-ui/{p-69260d36.entry.js → p-48f5a3c9.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-d6cd20cf.entry.js → p-4c7cd784.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-ece578ef.entry.js → p-4d7ea23c.entry.js} +1 -1
  40. package/dist/bromcom-ui/p-4e4504ca.js +5 -0
  41. package/dist/bromcom-ui/{p-64c6092c.js → p-51d2c673.js} +1 -1
  42. package/dist/bromcom-ui/p-52f879b2.entry.js +5 -0
  43. package/dist/bromcom-ui/{p-c6a6a181.entry.js → p-535d02b9.entry.js} +1 -1
  44. package/dist/bromcom-ui/p-5a3f8a49.entry.js +5 -0
  45. package/dist/bromcom-ui/{p-7e44e6b5.js → p-5ae0a59b.js} +1 -1
  46. package/dist/bromcom-ui/{p-12f997c1.entry.js → p-5be009b0.entry.js} +1 -1
  47. package/dist/bromcom-ui/p-5ccb0675.entry.js +5 -0
  48. package/dist/bromcom-ui/p-5ea9881d.entry.js +5 -0
  49. package/dist/bromcom-ui/p-5ee8a018.js +5 -0
  50. package/dist/bromcom-ui/{p-5f071adc.entry.js → p-5fc98177.entry.js} +1 -1
  51. package/dist/bromcom-ui/p-62369801.entry.js +5 -0
  52. package/dist/bromcom-ui/p-626a65e9.js +5 -0
  53. package/dist/bromcom-ui/{p-d551a51d.entry.js → p-63138ee5.entry.js} +1 -1
  54. package/dist/bromcom-ui/p-6385e735.entry.js +5 -0
  55. package/dist/bromcom-ui/p-67bb1c06.js +5 -0
  56. package/dist/bromcom-ui/p-6d0a02d7.entry.js +5 -0
  57. package/dist/bromcom-ui/{p-ba9eff2a.entry.js → p-6e7bb16f.entry.js} +1 -1
  58. package/dist/bromcom-ui/p-6f11eb8e.entry.js +5 -0
  59. package/dist/bromcom-ui/p-76edf59f.js +7 -0
  60. package/dist/bromcom-ui/p-77035c08.entry.js +5 -0
  61. package/dist/bromcom-ui/{p-a3e0482c.entry.js → p-788de9cf.entry.js} +1 -1
  62. package/dist/bromcom-ui/{p-626b805d.entry.js → p-7a89243a.entry.js} +1 -1
  63. package/dist/bromcom-ui/p-7b506ccb.entry.js +5 -0
  64. package/dist/bromcom-ui/p-7c623da0.js +5 -0
  65. package/dist/bromcom-ui/p-7e3209a0.js +14 -0
  66. package/dist/bromcom-ui/p-7e35d915.entry.js +5 -0
  67. package/dist/bromcom-ui/{p-1d7509e4.entry.js → p-7f63e25c.entry.js} +1 -1
  68. package/dist/bromcom-ui/p-80249663.entry.js +5 -0
  69. package/dist/bromcom-ui/p-89abd5ea.entry.js +5 -0
  70. package/dist/bromcom-ui/p-8b318727.entry.js +5 -0
  71. package/dist/bromcom-ui/{p-2c5a0863.js → p-8c951a73.js} +1 -1
  72. package/dist/bromcom-ui/p-8d4482d6.entry.js +5 -0
  73. package/dist/bromcom-ui/{p-9850cbce.js → p-8e5e362a.js} +1 -1
  74. package/dist/bromcom-ui/{p-1c801d0c.entry.js → p-95a2c489.entry.js} +1 -1
  75. package/dist/bromcom-ui/{p-6dcfdb90.entry.js → p-99dc26dd.entry.js} +1 -1
  76. package/dist/bromcom-ui/p-a0bd7793.entry.js +5 -0
  77. package/dist/bromcom-ui/p-a1b1750c.js +1 -1
  78. package/dist/bromcom-ui/{p-68280506.entry.js → p-a907cae6.entry.js} +1 -1
  79. package/dist/bromcom-ui/{p-7bb1f30b.entry.js → p-a9c22560.entry.js} +1 -1
  80. package/dist/bromcom-ui/p-ae94dfa8.js +5 -0
  81. package/dist/bromcom-ui/p-b11dd428.entry.js +5 -0
  82. package/dist/bromcom-ui/p-b6bac5f5.entry.js +5 -0
  83. package/dist/bromcom-ui/p-bc8d7f89.entry.js +5 -0
  84. package/dist/bromcom-ui/p-bed627ab.js +11 -0
  85. package/dist/bromcom-ui/{p-b550b336.js → p-c3422601.js} +1 -1
  86. package/dist/bromcom-ui/p-c495a13f.js +5 -0
  87. package/dist/bromcom-ui/{p-3672a932.entry.js → p-c49c79ca.entry.js} +1 -1
  88. package/dist/bromcom-ui/p-c8058a21.entry.js +5 -0
  89. package/dist/bromcom-ui/p-cc61ed4c.entry.js +5 -0
  90. package/dist/bromcom-ui/p-ce62273f.entry.js +5 -0
  91. package/dist/bromcom-ui/{p-69dd585e.entry.js → p-cf022deb.entry.js} +1 -1
  92. package/dist/bromcom-ui/{p-f7215c0e.js → p-d22b7435.js} +1 -1
  93. package/dist/bromcom-ui/p-d7b9ab98.entry.js +5 -0
  94. package/dist/bromcom-ui/p-d9eaa208.entry.js +5 -0
  95. package/dist/bromcom-ui/p-dc290a64.entry.js +5 -0
  96. package/dist/bromcom-ui/p-dd2a36fa.entry.js +5 -0
  97. package/dist/bromcom-ui/{p-170cf07d.js → p-e037ee2b.js} +1 -1
  98. package/dist/bromcom-ui/{p-b4729876.entry.js → p-e321ccff.entry.js} +1 -1
  99. package/dist/bromcom-ui/{p-1c9314bd.entry.js → p-e32ab4da.entry.js} +1 -1
  100. package/dist/bromcom-ui/{p-85eedabc.js → p-e45c1546.js} +1 -1
  101. package/dist/bromcom-ui/{p-bacd1841.entry.js → p-e8f8aa3b.entry.js} +1 -1
  102. package/dist/bromcom-ui/p-eb6b6010.entry.js +5 -0
  103. package/dist/bromcom-ui/{p-e688b044.entry.js → p-f03e56b9.entry.js} +1 -1
  104. package/dist/bromcom-ui/{p-5898ecd1.entry.js → p-f0adf08c.entry.js} +1 -1
  105. package/dist/bromcom-ui/p-f709a2e2.entry.js +5 -0
  106. package/dist/bromcom-ui/p-f711588b.js +1 -1
  107. package/dist/bromcom-ui/{p-99824717.entry.js → p-f9119bec.entry.js} +1 -1
  108. package/dist/bromcom-ui/{p-d153c7fc.js → p-f95797df.js} +1 -1
  109. package/dist/bromcom-ui/{p-3c1b1624.entry.js → p-fa057fc4.entry.js} +1 -1
  110. package/dist/bromcom-ui/{p-59af8bab.entry.js → p-fa8300a2.entry.js} +1 -1
  111. package/dist/bromcom-ui/p-fbb959f4.entry.js +5 -0
  112. package/dist/bromcom-ui/{p-39ae9f7f.entry.js → p-fe88e003.entry.js} +1 -1
  113. package/dist/bromcom-ui/p-ff012d63.entry.js +5 -0
  114. package/dist/bromcom-ui/{p-49cb669b.entry.js → p-ff714da2.entry.js} +1 -1
  115. package/dist/bromcom-ui/p-ff8d5e17.entry.js +5 -0
  116. package/dist/cjs/{bcm-7f703055.js → bcm-9e47c4b2.js} +4 -4
  117. package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
  118. package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
  119. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
  120. package/dist/cjs/bcm-avatar_2.cjs.entry.js +11 -10
  121. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  122. package/dist/cjs/bcm-button-group.cjs.entry.js +7 -7
  123. package/dist/cjs/bcm-button.cjs.entry.js +372 -0
  124. package/dist/cjs/bcm-card.cjs.entry.js +5 -5
  125. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +25 -25
  126. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +6 -6
  127. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +10 -10
  128. package/dist/cjs/bcm-chip-group.cjs.entry.js +10 -9
  129. package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
  130. package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
  131. package/dist/cjs/bcm-color-input.cjs.entry.js +7 -6
  132. package/dist/cjs/bcm-colorful_2.cjs.entry.js +17585 -0
  133. package/dist/cjs/bcm-date-picker.cjs.entry.js +182 -0
  134. package/dist/cjs/bcm-date.cjs.entry.js +182 -0
  135. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +1451 -0
  136. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  137. package/dist/cjs/bcm-drawer.cjs.entry.js +9 -8
  138. package/dist/cjs/bcm-dropdown.cjs.entry.js +7 -7
  139. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +4 -4
  140. package/dist/cjs/bcm-form-2.cjs.entry.js +212 -0
  141. package/dist/cjs/bcm-form.cjs.entry.js +489 -0
  142. package/dist/cjs/bcm-icon.cjs.entry.js +39 -0
  143. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  144. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +9 -8
  145. package/dist/cjs/bcm-item.cjs.entry.js +4 -4
  146. package/dist/cjs/bcm-items.cjs.entry.js +4 -4
  147. package/dist/cjs/bcm-label_2.cjs.entry.js +126 -0
  148. package/dist/cjs/bcm-link.cjs.entry.js +3 -3
  149. package/dist/cjs/bcm-linked_2.cjs.entry.js +289 -0
  150. package/dist/cjs/bcm-list_3.cjs.entry.js +35 -33
  151. package/dist/cjs/bcm-menu.cjs.entry.js +9 -8
  152. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +7 -6
  153. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +7 -6
  154. package/dist/cjs/bcm-modal-2.cjs.entry.js +8 -7
  155. package/dist/cjs/bcm-modal.cjs.entry.js +13 -10
  156. package/dist/cjs/bcm-old-input.cjs.entry.js +397 -0
  157. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +5 -5
  158. package/dist/cjs/bcm-popconfirm.cjs.entry.js +5 -5
  159. package/dist/cjs/bcm-popover.cjs.entry.js +10 -9
  160. package/dist/cjs/bcm-progress.cjs.entry.js +4 -4
  161. package/dist/cjs/bcm-radio-group.cjs.entry.js +11 -10
  162. package/dist/cjs/bcm-radio.cjs.entry.js +14 -13
  163. package/dist/cjs/bcm-range.cjs.entry.js +6 -6
  164. package/dist/cjs/bcm-rc-picker.cjs.entry.js +9404 -0
  165. package/dist/cjs/bcm-select.cjs.entry.js +2 -2
  166. package/dist/cjs/bcm-step.cjs.entry.js +3 -3
  167. package/dist/cjs/bcm-stepper.cjs.entry.js +10 -9
  168. package/dist/cjs/bcm-switch.cjs.entry.js +9 -9
  169. package/dist/cjs/bcm-tab-group.cjs.entry.js +8 -7
  170. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +11 -10
  171. package/dist/cjs/bcm-tab-item.cjs.entry.js +7 -6
  172. package/dist/cjs/bcm-table.cjs.entry.js +7 -6
  173. package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
  174. package/dist/cjs/bcm-text.cjs.entry.js +3 -3
  175. package/dist/cjs/bcm-textarea.cjs.entry.js +7 -7
  176. package/dist/cjs/bcm-time-picker.cjs.entry.js +150 -0
  177. package/dist/cjs/bcm-toast.cjs.entry.js +11 -11
  178. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  179. package/dist/cjs/datetime-helper-eaf4fadb.js +11 -0
  180. package/dist/cjs/{floating-ui-b441ea7c.js → floating-ui-4a2c2bd4.js} +2 -2
  181. package/dist/cjs/{generate-7bd78318.js → generate-efeda203.js} +1 -1
  182. package/dist/cjs/{global-aca5c011.js → global-38efbdd7.js} +1 -1
  183. package/dist/cjs/index-3d67f613.js +1610 -0
  184. package/dist/cjs/{index-7eed931f.js → index-e05a7c6f.js} +24 -1625
  185. package/dist/cjs/{input-template-4952273e.js → input-template-c1e96592.js} +6 -6
  186. package/dist/cjs/{json-parse-decarator-7529151b.js → json-parse-decarator-7d2677f0.js} +1 -1
  187. package/dist/cjs/{label-template-80235581.js → label-template-d531dfb7.js} +3 -3
  188. package/dist/cjs/loader.cjs.js +3 -3
  189. package/dist/cjs/moment-d06b012f.js +4601 -0
  190. package/dist/cjs/{number-helper-6c8e0d90.js → number-helper-b178b610.js} +1 -1
  191. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
  192. package/dist/cjs/old-bcm-popover.cjs.entry.js +5 -5
  193. package/dist/cjs/{package-21f7555f.js → package-2899048c.js} +1 -1
  194. package/dist/cjs/{popover-placement-f20020a6.js → popover-placement-4156a9ec.js} +1 -1
  195. package/dist/cjs/{slot-template-873b0cd5.js → slot-template-46018683.js} +1 -1
  196. package/dist/cjs/{stepper-states-736e2aa7.js → stepper-states-9bd52bd4.js} +1 -1
  197. package/dist/cjs/{string-helper-fda7cbba.js → string-helper-4cd32dbb.js} +2 -2
  198. package/dist/cjs/{tooltip-helper-0475ad78.js → tooltip-helper-f828ebee.js} +10 -9
  199. package/dist/cjs/{validators-9b9662d9.js → validators-2adde99d.js} +1 -6
  200. package/dist/collection/components/molecules/modal/modal.js +22 -5
  201. package/dist/collection/components/molecules/skeleton/skeleton.css +133 -0
  202. package/dist/collection/components/molecules/skeleton/skeleton.js +167 -26
  203. package/dist/collection/components/molecules/skeleton/skeleton.style.js +35 -0
  204. package/dist/collection/components/organism/list/list.js +2 -2
  205. package/dist/components/bcm-modal.js +7 -4
  206. package/dist/components/generate.js +1 -1
  207. package/dist/components/list.js +2 -2
  208. package/dist/components/skeleton.js +75 -23
  209. package/dist/esm/{_commonjsHelpers-7002e5de.js → _commonjsHelpers-be0d4ec8.js} +1 -1
  210. package/dist/esm/bcm-accordion.entry.js +5 -5
  211. package/dist/esm/bcm-alert.entry.js +8 -8
  212. package/dist/esm/bcm-attendance.entry.js +5 -5
  213. package/dist/esm/bcm-autocomplete.entry.js +3 -3
  214. package/dist/esm/bcm-avatar_2.entry.js +13 -12
  215. package/dist/esm/bcm-box.entry.js +1 -1
  216. package/dist/esm/bcm-breadcrumb.entry.js +6 -6
  217. package/dist/esm/bcm-button-group.entry.js +8 -8
  218. package/dist/esm/bcm-button.entry.js +368 -0
  219. package/dist/esm/bcm-card.entry.js +10 -10
  220. package/dist/esm/bcm-checkbox-group.entry.js +19 -19
  221. package/dist/esm/bcm-checkbox-lite_9.entry.js +8 -8
  222. package/dist/esm/bcm-checkbox_2.entry.js +13 -13
  223. package/dist/esm/bcm-chip-group.entry.js +17 -16
  224. package/dist/esm/bcm-chip.entry.js +8 -8
  225. package/dist/esm/bcm-collapse-group.entry.js +2 -2
  226. package/dist/esm/bcm-collapse.entry.js +6 -6
  227. package/dist/esm/bcm-color-input.entry.js +12 -11
  228. package/dist/esm/bcm-colorful_2.entry.js +17580 -0
  229. package/dist/esm/bcm-colorpicker.entry.js +5 -5
  230. package/dist/esm/bcm-content.entry.js +1 -1
  231. package/dist/esm/bcm-d45dc47d.js +1 -1
  232. package/dist/esm/bcm-date-picker.entry.js +178 -0
  233. package/dist/esm/bcm-date.entry.js +178 -0
  234. package/dist/esm/bcm-datetime-picker.entry.js +1447 -0
  235. package/dist/esm/bcm-default.entry.js +5 -5
  236. package/dist/esm/bcm-drawer.entry.js +14 -13
  237. package/dist/esm/bcm-dropdown.entry.js +9 -9
  238. package/dist/esm/bcm-error-layout.entry.js +3 -3
  239. package/dist/esm/bcm-expansion-panel.entry.js +9 -9
  240. package/dist/esm/bcm-form-2.entry.js +208 -0
  241. package/dist/esm/bcm-form-group.entry.js +1 -1
  242. package/dist/esm/bcm-form.entry.js +485 -0
  243. package/dist/esm/bcm-icon.entry.js +35 -0
  244. package/dist/esm/bcm-input-custom.entry.js +6 -6
  245. package/dist/esm/bcm-input-dropdown.entry.js +15 -14
  246. package/dist/esm/bcm-item.entry.js +9 -9
  247. package/dist/esm/bcm-items.entry.js +6 -6
  248. package/dist/esm/bcm-label_2.entry.js +121 -0
  249. package/dist/esm/bcm-link.entry.js +4 -4
  250. package/dist/esm/bcm-linked_2.entry.js +284 -0
  251. package/dist/esm/bcm-list_3.entry.js +24 -22
  252. package/dist/esm/bcm-menu.entry.js +15 -14
  253. package/dist/esm/bcm-message.entry.js +3 -3
  254. package/dist/esm/bcm-modal-2-footer.entry.js +13 -12
  255. package/dist/esm/bcm-modal-2-header.entry.js +12 -11
  256. package/dist/esm/bcm-modal-2.entry.js +14 -13
  257. package/dist/esm/bcm-modal.entry.js +15 -12
  258. package/dist/esm/bcm-notification.entry.js +3 -3
  259. package/dist/esm/bcm-old-input.entry.js +393 -0
  260. package/dist/esm/bcm-old-tag_2.entry.js +4 -4
  261. package/dist/esm/bcm-overlay_2.entry.js +4 -4
  262. package/dist/esm/bcm-popconfirm-box.entry.js +10 -10
  263. package/dist/esm/bcm-popconfirm.entry.js +7 -7
  264. package/dist/esm/bcm-popover.entry.js +13 -12
  265. package/dist/esm/bcm-progress.entry.js +9 -9
  266. package/dist/esm/bcm-radio-group.entry.js +16 -15
  267. package/dist/esm/bcm-radio.entry.js +14 -13
  268. package/dist/esm/bcm-range.entry.js +8 -8
  269. package/dist/esm/bcm-rc-picker.entry.js +9400 -0
  270. package/dist/esm/bcm-result.entry.js +3 -3
  271. package/dist/esm/bcm-select-group.entry.js +3 -3
  272. package/dist/esm/bcm-select-option.entry.js +3 -3
  273. package/dist/esm/bcm-select.entry.js +5 -5
  274. package/dist/esm/bcm-step.entry.js +8 -8
  275. package/dist/esm/bcm-stepper.entry.js +16 -15
  276. package/dist/esm/bcm-switch.entry.js +10 -10
  277. package/dist/esm/bcm-tab-group.entry.js +13 -12
  278. package/dist/esm/bcm-tab-item-header.entry.js +14 -13
  279. package/dist/esm/bcm-tab-item.entry.js +12 -11
  280. package/dist/esm/bcm-tab-pane.entry.js +3 -3
  281. package/dist/esm/bcm-tab.entry.js +3 -3
  282. package/dist/esm/bcm-table.entry.js +13 -12
  283. package/dist/esm/bcm-tabs-content.entry.js +4 -4
  284. package/dist/esm/bcm-tabs.entry.js +4 -4
  285. package/dist/esm/bcm-tag.entry.js +9 -9
  286. package/dist/esm/bcm-text.entry.js +8 -8
  287. package/dist/esm/bcm-textarea.entry.js +11 -11
  288. package/dist/esm/bcm-time-picker.entry.js +146 -0
  289. package/dist/esm/bcm-timeline-item.entry.js +3 -3
  290. package/dist/esm/bcm-timeline.entry.js +3 -3
  291. package/dist/esm/bcm-toast.entry.js +9 -9
  292. package/dist/esm/bcm-treeview-group.entry.js +1 -1
  293. package/dist/esm/bromcom-ui.js +5 -5
  294. package/dist/esm/{caption-template-d47f338f.js → caption-template-a1a968fd.js} +2 -2
  295. package/dist/esm/{color-helper-845ba523.js → color-helper-c4fa9ebc.js} +2 -2
  296. package/dist/esm/{colors-ebea297f.js → colors-e1c31f79.js} +1 -1
  297. package/dist/esm/datetime-helper-df25808a.js +9 -0
  298. package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-7ea06c76.js} +1 -1
  299. package/dist/esm/floating-ui-8a0c54d6.js +1 -1
  300. package/dist/esm/{generate-c80869fa.js → generate-40dfe3b0.js} +2 -2
  301. package/dist/esm/{global-55ab75e6.js → global-85f037ac.js} +2 -2
  302. package/dist/esm/{index-0615c2b8.js → index-4614b7f0.js} +1 -1
  303. package/dist/esm/{index-e4b6a4ce.js → index-a6d9d0af.js} +26 -1612
  304. package/dist/esm/{index-00c8a8f7.js → index-b84bc8c9.js} +1 -1
  305. package/dist/esm/index-c4568336.js +1594 -0
  306. package/dist/esm/{index-7e71bbc8.js → index-f38e3364.js} +1 -1
  307. package/dist/esm/{input-template-82ba633e.js → input-template-92b19880.js} +4 -4
  308. package/dist/esm/{is-load-decorator-8277e3b8.js → is-load-decorator-b8ca22f2.js} +1 -1
  309. package/dist/esm/{json-parse-decarator-fb399cf2.js → json-parse-decarator-f4803289.js} +2 -2
  310. package/dist/esm/{label-template-946d4062.js → label-template-54c28821.js} +4 -4
  311. package/dist/esm/loader.js +5 -5
  312. package/dist/esm/moment-15cd9198.js +4598 -0
  313. package/dist/esm/{number-helper-2eb7011a.js → number-helper-352d1d80.js} +1 -1
  314. package/dist/esm/old-bcm-popover-box.entry.js +11 -11
  315. package/dist/esm/old-bcm-popover.entry.js +7 -7
  316. package/dist/esm/{package-20c9971a.js → package-1618c1e9.js} +1 -1
  317. package/dist/esm/{popover-placement-be68c848.js → popover-placement-941bf3f3.js} +1 -1
  318. package/dist/esm/{slot-template-fcc7846e.js → slot-template-4b683d1f.js} +2 -2
  319. package/dist/esm/{stepper-states-f497b41f.js → stepper-states-08b2aa7c.js} +3 -3
  320. package/dist/esm/{string-helper-b0e05041.js → string-helper-5bd646f2.js} +2 -2
  321. package/dist/esm/{tooltip-helper-8eff46a3.js → tooltip-helper-d538cdf3.js} +9 -8
  322. package/dist/esm/{utils-57652744.js → utils-b3338faf.js} +1 -1
  323. package/dist/esm/{validators-81296897.js → validators-68717171.js} +2 -6
  324. package/dist/types/components/molecules/modal/modal.d.ts +1 -0
  325. package/dist/types/components/molecules/skeleton/skeleton.d.ts +14 -3
  326. package/dist/types/components/molecules/skeleton/skeleton.style.d.ts +147 -0
  327. package/dist/types/components.d.ts +17 -2
  328. package/package.json +4 -1
  329. package/dist/bromcom-ui/p-07fe2bbc.entry.js +0 -5
  330. package/dist/bromcom-ui/p-0cf6e779.entry.js +0 -5
  331. package/dist/bromcom-ui/p-0fdaadf9.entry.js +0 -7
  332. package/dist/bromcom-ui/p-228c74e9.entry.js +0 -5
  333. package/dist/bromcom-ui/p-27b52583.js +0 -5
  334. package/dist/bromcom-ui/p-30bd67ba.js +0 -5
  335. package/dist/bromcom-ui/p-310da4b9.entry.js +0 -5
  336. package/dist/bromcom-ui/p-33014b15.entry.js +0 -5
  337. package/dist/bromcom-ui/p-338ace45.entry.js +0 -5
  338. package/dist/bromcom-ui/p-3432a82d.js +0 -19
  339. package/dist/bromcom-ui/p-3d86a6c3.entry.js +0 -5
  340. package/dist/bromcom-ui/p-3e68c7d0.js +0 -5
  341. package/dist/bromcom-ui/p-438689a5.entry.js +0 -5
  342. package/dist/bromcom-ui/p-4acc1848.entry.js +0 -5
  343. package/dist/bromcom-ui/p-4dad64ed.entry.js +0 -5
  344. package/dist/bromcom-ui/p-543af368.entry.js +0 -5
  345. package/dist/bromcom-ui/p-5797aab3.entry.js +0 -5
  346. package/dist/bromcom-ui/p-5871767a.entry.js +0 -5
  347. package/dist/bromcom-ui/p-5e2a0bda.js +0 -5
  348. package/dist/bromcom-ui/p-5fb8a43a.entry.js +0 -5
  349. package/dist/bromcom-ui/p-60a8f967.entry.js +0 -5
  350. package/dist/bromcom-ui/p-64fad38b.js +0 -11
  351. package/dist/bromcom-ui/p-67244c91.entry.js +0 -5
  352. package/dist/bromcom-ui/p-7cb30513.js +0 -5
  353. package/dist/bromcom-ui/p-8279be1f.entry.js +0 -5
  354. package/dist/bromcom-ui/p-97527e91.entry.js +0 -5
  355. package/dist/bromcom-ui/p-9fe07d94.entry.js +0 -5
  356. package/dist/bromcom-ui/p-ae57f046.entry.js +0 -5
  357. package/dist/bromcom-ui/p-b3d495fd.js +0 -5
  358. package/dist/bromcom-ui/p-b81e8f91.js +0 -5
  359. package/dist/bromcom-ui/p-b8646a61.entry.js +0 -5
  360. package/dist/bromcom-ui/p-bfd24601.entry.js +0 -5
  361. package/dist/bromcom-ui/p-cc52cff4.entry.js +0 -5
  362. package/dist/bromcom-ui/p-ccf0872d.js +0 -5
  363. package/dist/bromcom-ui/p-d3f182c1.entry.js +0 -5
  364. package/dist/bromcom-ui/p-ea701411.js +0 -5
  365. package/dist/bromcom-ui/p-f2c1ffb4.entry.js +0 -5
  366. package/dist/cjs/bcm-button_15.cjs.entry.js +0 -35172
  367. package/dist/cjs/bcm-skeleton.cjs.entry.js +0 -45
  368. package/dist/esm/bcm-button_15.entry.js +0 -35154
  369. package/dist/esm/bcm-skeleton.entry.js +0 -41
@@ -0,0 +1,1610 @@
1
+ /*!
2
+ * Built with Stencil
3
+ * Copyright (c) Bromcom.
4
+ */
5
+ 'use strict';
6
+
7
+ const index$1 = require('./index-e05a7c6f.js');
8
+ const _commonjsHelpers = require('./_commonjsHelpers-ed84c3ca.js');
9
+
10
+ function useEvent(callback) {
11
+ var fnRef = index$1.react.useRef();
12
+ fnRef.current = callback;
13
+ var memoFn = index$1.react.useCallback(function () {
14
+ var _fnRef$current;
15
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
16
+ args[_key] = arguments[_key];
17
+ }
18
+ return (_fnRef$current = fnRef.current) === null || _fnRef$current === void 0 ? void 0 : _fnRef$current.call.apply(_fnRef$current, [fnRef].concat(args));
19
+ }, []);
20
+ return memoFn;
21
+ }
22
+
23
+ function canUseDom() {
24
+ return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
25
+ }
26
+
27
+ /**
28
+ * Wrap `React.useLayoutEffect` which will not throw warning message in test env
29
+ */
30
+ var useInternalLayoutEffect = canUseDom() ? index$1.react.useLayoutEffect : index$1.react.useEffect;
31
+ var useLayoutEffect = function useLayoutEffect(callback, deps) {
32
+ var firstMountRef = index$1.react.useRef(true);
33
+ useInternalLayoutEffect(function () {
34
+ return callback(firstMountRef.current);
35
+ }, deps);
36
+
37
+ // We tell react that first mount has passed
38
+ useInternalLayoutEffect(function () {
39
+ firstMountRef.current = false;
40
+ return function () {
41
+ firstMountRef.current = true;
42
+ };
43
+ }, []);
44
+ };
45
+ var useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {
46
+ useLayoutEffect(function (firstMount) {
47
+ if (!firstMount) {
48
+ return callback();
49
+ }
50
+ }, deps);
51
+ };
52
+
53
+ /* eslint-disable no-console */
54
+ var warned = {};
55
+
56
+ /**
57
+ * Pre warning enable you to parse content before console.error.
58
+ * Modify to null will prevent warning.
59
+ */
60
+ var preMessage = function preMessage(fn) {
61
+ };
62
+ function warning(valid, message) {
63
+ }
64
+ function note(valid, message) {
65
+ }
66
+ function resetWarned() {
67
+ warned = {};
68
+ }
69
+ function call(method, valid, message) {
70
+ if (!valid && !warned[message]) {
71
+ method(false, message);
72
+ warned[message] = true;
73
+ }
74
+ }
75
+ function warningOnce(valid, message) {
76
+ call(warning, valid, message);
77
+ }
78
+ function noteOnce(valid, message) {
79
+ call(note, valid, message);
80
+ }
81
+ warningOnce.preMessage = preMessage;
82
+ warningOnce.resetWarned = resetWarned;
83
+ warningOnce.noteOnce = noteOnce;
84
+ /* eslint-enable */
85
+
86
+ function _typeof$1(obj) {
87
+ "@babel/helpers - typeof";
88
+
89
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
90
+ return typeof obj;
91
+ } : function (obj) {
92
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
93
+ }, _typeof$1(obj);
94
+ }
95
+
96
+ function useMemo(getValue, condition, shouldUpdate) {
97
+ var cacheRef = index$1.react.useRef({});
98
+ if (!('value' in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
99
+ cacheRef.current.value = getValue();
100
+ cacheRef.current.condition = condition;
101
+ }
102
+ return cacheRef.current.value;
103
+ }
104
+
105
+ var raf = function raf(callback) {
106
+ return +setTimeout(callback, 16);
107
+ };
108
+ var caf = function caf(num) {
109
+ return clearTimeout(num);
110
+ };
111
+ if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
112
+ raf = function raf(callback) {
113
+ return window.requestAnimationFrame(callback);
114
+ };
115
+ caf = function caf(handle) {
116
+ return window.cancelAnimationFrame(handle);
117
+ };
118
+ }
119
+ var rafUUID = 0;
120
+ var rafIds = new Map();
121
+ function cleanup(id) {
122
+ rafIds.delete(id);
123
+ }
124
+ var wrapperRaf = function wrapperRaf(callback) {
125
+ var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
126
+ rafUUID += 1;
127
+ var id = rafUUID;
128
+ function callRef(leftTimes) {
129
+ if (leftTimes === 0) {
130
+ // Clean up
131
+ cleanup(id);
132
+
133
+ // Trigger
134
+ callback();
135
+ } else {
136
+ // Next raf
137
+ var realId = raf(function () {
138
+ callRef(leftTimes - 1);
139
+ });
140
+
141
+ // Bind real raf id
142
+ rafIds.set(id, realId);
143
+ }
144
+ }
145
+ callRef(times);
146
+ return id;
147
+ };
148
+ wrapperRaf.cancel = function (id) {
149
+ var realId = rafIds.get(id);
150
+ cleanup(realId);
151
+ return caf(realId);
152
+ };
153
+
154
+ /** @license React v16.13.1
155
+ * react-is.production.min.js
156
+ *
157
+ * Copyright (c) Facebook, Inc. and its affiliates.
158
+ *
159
+ * This source code is licensed under the MIT license found in the
160
+ * LICENSE file in the root directory of this source tree.
161
+ */
162
+ 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?
163
+ 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;
164
+ 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;
165
+ 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};
166
+ 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};
167
+ 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;
168
+
169
+ var reactIs_production_min = {
170
+ AsyncMode: AsyncMode,
171
+ ConcurrentMode: ConcurrentMode,
172
+ ContextConsumer: ContextConsumer,
173
+ ContextProvider: ContextProvider,
174
+ Element: Element$1,
175
+ ForwardRef: ForwardRef,
176
+ Fragment: Fragment,
177
+ Lazy: Lazy,
178
+ Memo: Memo,
179
+ Portal: Portal,
180
+ Profiler: Profiler,
181
+ StrictMode: StrictMode,
182
+ Suspense: Suspense,
183
+ isAsyncMode: isAsyncMode,
184
+ isConcurrentMode: isConcurrentMode,
185
+ isContextConsumer: isContextConsumer,
186
+ isContextProvider: isContextProvider,
187
+ isElement: isElement,
188
+ isForwardRef: isForwardRef,
189
+ isFragment: isFragment,
190
+ isLazy: isLazy,
191
+ isMemo: isMemo,
192
+ isPortal: isPortal,
193
+ isProfiler: isProfiler,
194
+ isStrictMode: isStrictMode,
195
+ isSuspense: isSuspense,
196
+ isValidElementType: isValidElementType,
197
+ typeOf: typeOf
198
+ };
199
+
200
+ _commonjsHelpers.createCommonjsModule(function (module, exports) {
201
+ });
202
+
203
+ var reactIs = _commonjsHelpers.createCommonjsModule(function (module) {
204
+
205
+ {
206
+ module.exports = reactIs_production_min;
207
+ }
208
+ });
209
+
210
+ function fillRef(ref, node) {
211
+ if (typeof ref === 'function') {
212
+ ref(node);
213
+ } else if (_typeof$1(ref) === 'object' && ref && 'current' in ref) {
214
+ ref.current = node;
215
+ }
216
+ }
217
+
218
+ /**
219
+ * Merge refs into one ref function to support ref passing.
220
+ */
221
+ function composeRef() {
222
+ for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
223
+ refs[_key] = arguments[_key];
224
+ }
225
+ var refList = refs.filter(function (ref) {
226
+ return ref;
227
+ });
228
+ if (refList.length <= 1) {
229
+ return refList[0];
230
+ }
231
+ return function (node) {
232
+ refs.forEach(function (ref) {
233
+ fillRef(ref, node);
234
+ });
235
+ };
236
+ }
237
+ function useComposeRef() {
238
+ for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
239
+ refs[_key2] = arguments[_key2];
240
+ }
241
+ return useMemo(function () {
242
+ return composeRef.apply(void 0, refs);
243
+ }, refs, function (prev, next) {
244
+ return prev.length === next.length && prev.every(function (ref, i) {
245
+ return ref === next[i];
246
+ });
247
+ });
248
+ }
249
+ function supportRef(nodeOrComponent) {
250
+ var _type$prototype, _nodeOrComponent$prot;
251
+ var type = reactIs.isMemo(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;
252
+
253
+ // Function component node
254
+ if (typeof type === 'function' && !((_type$prototype = type.prototype) !== null && _type$prototype !== void 0 && _type$prototype.render)) {
255
+ return false;
256
+ }
257
+
258
+ // Class component
259
+ if (typeof nodeOrComponent === 'function' && !((_nodeOrComponent$prot = nodeOrComponent.prototype) !== null && _nodeOrComponent$prot !== void 0 && _nodeOrComponent$prot.render)) {
260
+ return false;
261
+ }
262
+ return true;
263
+ }
264
+ /* eslint-enable */
265
+
266
+ function _extends() {
267
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
268
+ for (var i = 1; i < arguments.length; i++) {
269
+ var source = arguments[i];
270
+ for (var key in source) {
271
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
272
+ target[key] = source[key];
273
+ }
274
+ }
275
+ }
276
+ return target;
277
+ };
278
+ return _extends.apply(this, arguments);
279
+ }
280
+
281
+ function toArray(children) {
282
+ var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
283
+ var ret = [];
284
+ index$1.react.Children.forEach(children, function (child) {
285
+ if ((child === undefined || child === null) && !option.keepEmpty) {
286
+ return;
287
+ }
288
+ if (Array.isArray(child)) {
289
+ ret = ret.concat(toArray(child));
290
+ } else if (reactIs.isFragment(child) && child.props) {
291
+ ret = ret.concat(toArray(child.props.children, option));
292
+ } else {
293
+ ret.push(child);
294
+ }
295
+ });
296
+ return ret;
297
+ }
298
+
299
+ function _typeof(obj) {
300
+ "@babel/helpers - typeof";
301
+
302
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
303
+ return typeof obj;
304
+ } : function (obj) {
305
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
306
+ }, _typeof(obj);
307
+ }
308
+
309
+ function _toPrimitive(input, hint) {
310
+ if (_typeof(input) !== "object" || input === null) return input;
311
+ var prim = input[Symbol.toPrimitive];
312
+ if (prim !== undefined) {
313
+ var res = prim.call(input, hint || "default");
314
+ if (_typeof(res) !== "object") return res;
315
+ throw new TypeError("@@toPrimitive must return a primitive value.");
316
+ }
317
+ return (hint === "string" ? String : Number)(input);
318
+ }
319
+
320
+ function _toPropertyKey(arg) {
321
+ var key = _toPrimitive(arg, "string");
322
+ return _typeof(key) === "symbol" ? key : String(key);
323
+ }
324
+
325
+ function _defineProperty(obj, key, value) {
326
+ key = _toPropertyKey(key);
327
+ if (key in obj) {
328
+ Object.defineProperty(obj, key, {
329
+ value: value,
330
+ enumerable: true,
331
+ configurable: true,
332
+ writable: true
333
+ });
334
+ } else {
335
+ obj[key] = value;
336
+ }
337
+ return obj;
338
+ }
339
+
340
+ function ownKeys(object, enumerableOnly) {
341
+ var keys = Object.keys(object);
342
+ if (Object.getOwnPropertySymbols) {
343
+ var symbols = Object.getOwnPropertySymbols(object);
344
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
345
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
346
+ })), keys.push.apply(keys, symbols);
347
+ }
348
+ return keys;
349
+ }
350
+ function _objectSpread2(target) {
351
+ for (var i = 1; i < arguments.length; i++) {
352
+ var source = null != arguments[i] ? arguments[i] : {};
353
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
354
+ _defineProperty(target, key, source[key]);
355
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
356
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
357
+ });
358
+ }
359
+ return target;
360
+ }
361
+
362
+ function isDOM(node) {
363
+ // https://developer.mozilla.org/en-US/docs/Web/API/Element
364
+ // Since XULElement is also subclass of Element, we only need HTMLElement and SVGElement
365
+ return node instanceof HTMLElement || node instanceof SVGElement;
366
+ }
367
+
368
+ /**
369
+ * Return if a node is a DOM node. Else will return by `findDOMNode`
370
+ */
371
+ function findDOMNode(node) {
372
+ if (isDOM(node)) {
373
+ return node;
374
+ }
375
+ if (node instanceof index$1.react.Component) {
376
+ return index$1.reactDom.findDOMNode(node);
377
+ }
378
+ return null;
379
+ }
380
+
381
+ /**
382
+ * A collection of shims that provide minimal functionality of the ES6 collections.
383
+ *
384
+ * These implementations are not meant to be used outside of the ResizeObserver
385
+ * modules as they cover only a limited range of use cases.
386
+ */
387
+ /* eslint-disable require-jsdoc, valid-jsdoc */
388
+ var MapShim = (function () {
389
+ if (typeof Map !== 'undefined') {
390
+ return Map;
391
+ }
392
+ /**
393
+ * Returns index in provided array that matches the specified key.
394
+ *
395
+ * @param {Array<Array>} arr
396
+ * @param {*} key
397
+ * @returns {number}
398
+ */
399
+ function getIndex(arr, key) {
400
+ var result = -1;
401
+ arr.some(function (entry, index) {
402
+ if (entry[0] === key) {
403
+ result = index;
404
+ return true;
405
+ }
406
+ return false;
407
+ });
408
+ return result;
409
+ }
410
+ return /** @class */ (function () {
411
+ function class_1() {
412
+ this.__entries__ = [];
413
+ }
414
+ Object.defineProperty(class_1.prototype, "size", {
415
+ /**
416
+ * @returns {boolean}
417
+ */
418
+ get: function () {
419
+ return this.__entries__.length;
420
+ },
421
+ enumerable: true,
422
+ configurable: true
423
+ });
424
+ /**
425
+ * @param {*} key
426
+ * @returns {*}
427
+ */
428
+ class_1.prototype.get = function (key) {
429
+ var index = getIndex(this.__entries__, key);
430
+ var entry = this.__entries__[index];
431
+ return entry && entry[1];
432
+ };
433
+ /**
434
+ * @param {*} key
435
+ * @param {*} value
436
+ * @returns {void}
437
+ */
438
+ class_1.prototype.set = function (key, value) {
439
+ var index = getIndex(this.__entries__, key);
440
+ if (~index) {
441
+ this.__entries__[index][1] = value;
442
+ }
443
+ else {
444
+ this.__entries__.push([key, value]);
445
+ }
446
+ };
447
+ /**
448
+ * @param {*} key
449
+ * @returns {void}
450
+ */
451
+ class_1.prototype.delete = function (key) {
452
+ var entries = this.__entries__;
453
+ var index = getIndex(entries, key);
454
+ if (~index) {
455
+ entries.splice(index, 1);
456
+ }
457
+ };
458
+ /**
459
+ * @param {*} key
460
+ * @returns {void}
461
+ */
462
+ class_1.prototype.has = function (key) {
463
+ return !!~getIndex(this.__entries__, key);
464
+ };
465
+ /**
466
+ * @returns {void}
467
+ */
468
+ class_1.prototype.clear = function () {
469
+ this.__entries__.splice(0);
470
+ };
471
+ /**
472
+ * @param {Function} callback
473
+ * @param {*} [ctx=null]
474
+ * @returns {void}
475
+ */
476
+ class_1.prototype.forEach = function (callback, ctx) {
477
+ if (ctx === void 0) { ctx = null; }
478
+ for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
479
+ var entry = _a[_i];
480
+ callback.call(ctx, entry[1], entry[0]);
481
+ }
482
+ };
483
+ return class_1;
484
+ }());
485
+ })();
486
+
487
+ /**
488
+ * Detects whether window and document objects are available in current environment.
489
+ */
490
+ var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
491
+
492
+ // Returns global object of a current environment.
493
+ var global$1 = (function () {
494
+ if (typeof global !== 'undefined' && global.Math === Math) {
495
+ return global;
496
+ }
497
+ if (typeof self !== 'undefined' && self.Math === Math) {
498
+ return self;
499
+ }
500
+ if (typeof window !== 'undefined' && window.Math === Math) {
501
+ return window;
502
+ }
503
+ // eslint-disable-next-line no-new-func
504
+ return Function('return this')();
505
+ })();
506
+
507
+ /**
508
+ * A shim for the requestAnimationFrame which falls back to the setTimeout if
509
+ * first one is not supported.
510
+ *
511
+ * @returns {number} Requests' identifier.
512
+ */
513
+ var requestAnimationFrame$1 = (function () {
514
+ if (typeof requestAnimationFrame === 'function') {
515
+ // It's required to use a bounded function because IE sometimes throws
516
+ // an "Invalid calling object" error if rAF is invoked without the global
517
+ // object on the left hand side.
518
+ return requestAnimationFrame.bind(global$1);
519
+ }
520
+ return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };
521
+ })();
522
+
523
+ // Defines minimum timeout before adding a trailing call.
524
+ var trailingTimeout = 2;
525
+ /**
526
+ * Creates a wrapper function which ensures that provided callback will be
527
+ * invoked only once during the specified delay period.
528
+ *
529
+ * @param {Function} callback - Function to be invoked after the delay period.
530
+ * @param {number} delay - Delay after which to invoke callback.
531
+ * @returns {Function}
532
+ */
533
+ function throttle (callback, delay) {
534
+ var leadingCall = false, trailingCall = false, lastCallTime = 0;
535
+ /**
536
+ * Invokes the original callback function and schedules new invocation if
537
+ * the "proxy" was called during current request.
538
+ *
539
+ * @returns {void}
540
+ */
541
+ function resolvePending() {
542
+ if (leadingCall) {
543
+ leadingCall = false;
544
+ callback();
545
+ }
546
+ if (trailingCall) {
547
+ proxy();
548
+ }
549
+ }
550
+ /**
551
+ * Callback invoked after the specified delay. It will further postpone
552
+ * invocation of the original function delegating it to the
553
+ * requestAnimationFrame.
554
+ *
555
+ * @returns {void}
556
+ */
557
+ function timeoutCallback() {
558
+ requestAnimationFrame$1(resolvePending);
559
+ }
560
+ /**
561
+ * Schedules invocation of the original function.
562
+ *
563
+ * @returns {void}
564
+ */
565
+ function proxy() {
566
+ var timeStamp = Date.now();
567
+ if (leadingCall) {
568
+ // Reject immediately following calls.
569
+ if (timeStamp - lastCallTime < trailingTimeout) {
570
+ return;
571
+ }
572
+ // Schedule new call to be in invoked when the pending one is resolved.
573
+ // This is important for "transitions" which never actually start
574
+ // immediately so there is a chance that we might miss one if change
575
+ // happens amids the pending invocation.
576
+ trailingCall = true;
577
+ }
578
+ else {
579
+ leadingCall = true;
580
+ trailingCall = false;
581
+ setTimeout(timeoutCallback, delay);
582
+ }
583
+ lastCallTime = timeStamp;
584
+ }
585
+ return proxy;
586
+ }
587
+
588
+ // Minimum delay before invoking the update of observers.
589
+ var REFRESH_DELAY = 20;
590
+ // A list of substrings of CSS properties used to find transition events that
591
+ // might affect dimensions of observed elements.
592
+ var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
593
+ // Check if MutationObserver is available.
594
+ var mutationObserverSupported = typeof MutationObserver !== 'undefined';
595
+ /**
596
+ * Singleton controller class which handles updates of ResizeObserver instances.
597
+ */
598
+ var ResizeObserverController = /** @class */ (function () {
599
+ /**
600
+ * Creates a new instance of ResizeObserverController.
601
+ *
602
+ * @private
603
+ */
604
+ function ResizeObserverController() {
605
+ /**
606
+ * Indicates whether DOM listeners have been added.
607
+ *
608
+ * @private {boolean}
609
+ */
610
+ this.connected_ = false;
611
+ /**
612
+ * Tells that controller has subscribed for Mutation Events.
613
+ *
614
+ * @private {boolean}
615
+ */
616
+ this.mutationEventsAdded_ = false;
617
+ /**
618
+ * Keeps reference to the instance of MutationObserver.
619
+ *
620
+ * @private {MutationObserver}
621
+ */
622
+ this.mutationsObserver_ = null;
623
+ /**
624
+ * A list of connected observers.
625
+ *
626
+ * @private {Array<ResizeObserverSPI>}
627
+ */
628
+ this.observers_ = [];
629
+ this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
630
+ this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
631
+ }
632
+ /**
633
+ * Adds observer to observers list.
634
+ *
635
+ * @param {ResizeObserverSPI} observer - Observer to be added.
636
+ * @returns {void}
637
+ */
638
+ ResizeObserverController.prototype.addObserver = function (observer) {
639
+ if (!~this.observers_.indexOf(observer)) {
640
+ this.observers_.push(observer);
641
+ }
642
+ // Add listeners if they haven't been added yet.
643
+ if (!this.connected_) {
644
+ this.connect_();
645
+ }
646
+ };
647
+ /**
648
+ * Removes observer from observers list.
649
+ *
650
+ * @param {ResizeObserverSPI} observer - Observer to be removed.
651
+ * @returns {void}
652
+ */
653
+ ResizeObserverController.prototype.removeObserver = function (observer) {
654
+ var observers = this.observers_;
655
+ var index = observers.indexOf(observer);
656
+ // Remove observer if it's present in registry.
657
+ if (~index) {
658
+ observers.splice(index, 1);
659
+ }
660
+ // Remove listeners if controller has no connected observers.
661
+ if (!observers.length && this.connected_) {
662
+ this.disconnect_();
663
+ }
664
+ };
665
+ /**
666
+ * Invokes the update of observers. It will continue running updates insofar
667
+ * it detects changes.
668
+ *
669
+ * @returns {void}
670
+ */
671
+ ResizeObserverController.prototype.refresh = function () {
672
+ var changesDetected = this.updateObservers_();
673
+ // Continue running updates if changes have been detected as there might
674
+ // be future ones caused by CSS transitions.
675
+ if (changesDetected) {
676
+ this.refresh();
677
+ }
678
+ };
679
+ /**
680
+ * Updates every observer from observers list and notifies them of queued
681
+ * entries.
682
+ *
683
+ * @private
684
+ * @returns {boolean} Returns "true" if any observer has detected changes in
685
+ * dimensions of it's elements.
686
+ */
687
+ ResizeObserverController.prototype.updateObservers_ = function () {
688
+ // Collect observers that have active observations.
689
+ var activeObservers = this.observers_.filter(function (observer) {
690
+ return observer.gatherActive(), observer.hasActive();
691
+ });
692
+ // Deliver notifications in a separate cycle in order to avoid any
693
+ // collisions between observers, e.g. when multiple instances of
694
+ // ResizeObserver are tracking the same element and the callback of one
695
+ // of them changes content dimensions of the observed target. Sometimes
696
+ // this may result in notifications being blocked for the rest of observers.
697
+ activeObservers.forEach(function (observer) { return observer.broadcastActive(); });
698
+ return activeObservers.length > 0;
699
+ };
700
+ /**
701
+ * Initializes DOM listeners.
702
+ *
703
+ * @private
704
+ * @returns {void}
705
+ */
706
+ ResizeObserverController.prototype.connect_ = function () {
707
+ // Do nothing if running in a non-browser environment or if listeners
708
+ // have been already added.
709
+ if (!isBrowser || this.connected_) {
710
+ return;
711
+ }
712
+ // Subscription to the "Transitionend" event is used as a workaround for
713
+ // delayed transitions. This way it's possible to capture at least the
714
+ // final state of an element.
715
+ document.addEventListener('transitionend', this.onTransitionEnd_);
716
+ window.addEventListener('resize', this.refresh);
717
+ if (mutationObserverSupported) {
718
+ this.mutationsObserver_ = new MutationObserver(this.refresh);
719
+ this.mutationsObserver_.observe(document, {
720
+ attributes: true,
721
+ childList: true,
722
+ characterData: true,
723
+ subtree: true
724
+ });
725
+ }
726
+ else {
727
+ document.addEventListener('DOMSubtreeModified', this.refresh);
728
+ this.mutationEventsAdded_ = true;
729
+ }
730
+ this.connected_ = true;
731
+ };
732
+ /**
733
+ * Removes DOM listeners.
734
+ *
735
+ * @private
736
+ * @returns {void}
737
+ */
738
+ ResizeObserverController.prototype.disconnect_ = function () {
739
+ // Do nothing if running in a non-browser environment or if listeners
740
+ // have been already removed.
741
+ if (!isBrowser || !this.connected_) {
742
+ return;
743
+ }
744
+ document.removeEventListener('transitionend', this.onTransitionEnd_);
745
+ window.removeEventListener('resize', this.refresh);
746
+ if (this.mutationsObserver_) {
747
+ this.mutationsObserver_.disconnect();
748
+ }
749
+ if (this.mutationEventsAdded_) {
750
+ document.removeEventListener('DOMSubtreeModified', this.refresh);
751
+ }
752
+ this.mutationsObserver_ = null;
753
+ this.mutationEventsAdded_ = false;
754
+ this.connected_ = false;
755
+ };
756
+ /**
757
+ * "Transitionend" event handler.
758
+ *
759
+ * @private
760
+ * @param {TransitionEvent} event
761
+ * @returns {void}
762
+ */
763
+ ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
764
+ var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;
765
+ // Detect whether transition may affect dimensions of an element.
766
+ var isReflowProperty = transitionKeys.some(function (key) {
767
+ return !!~propertyName.indexOf(key);
768
+ });
769
+ if (isReflowProperty) {
770
+ this.refresh();
771
+ }
772
+ };
773
+ /**
774
+ * Returns instance of the ResizeObserverController.
775
+ *
776
+ * @returns {ResizeObserverController}
777
+ */
778
+ ResizeObserverController.getInstance = function () {
779
+ if (!this.instance_) {
780
+ this.instance_ = new ResizeObserverController();
781
+ }
782
+ return this.instance_;
783
+ };
784
+ /**
785
+ * Holds reference to the controller's instance.
786
+ *
787
+ * @private {ResizeObserverController}
788
+ */
789
+ ResizeObserverController.instance_ = null;
790
+ return ResizeObserverController;
791
+ }());
792
+
793
+ /**
794
+ * Defines non-writable/enumerable properties of the provided target object.
795
+ *
796
+ * @param {Object} target - Object for which to define properties.
797
+ * @param {Object} props - Properties to be defined.
798
+ * @returns {Object} Target object.
799
+ */
800
+ var defineConfigurable = (function (target, props) {
801
+ for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
802
+ var key = _a[_i];
803
+ Object.defineProperty(target, key, {
804
+ value: props[key],
805
+ enumerable: false,
806
+ writable: false,
807
+ configurable: true
808
+ });
809
+ }
810
+ return target;
811
+ });
812
+
813
+ /**
814
+ * Returns the global object associated with provided element.
815
+ *
816
+ * @param {Object} target
817
+ * @returns {Object}
818
+ */
819
+ var getWindowOf = (function (target) {
820
+ // Assume that the element is an instance of Node, which means that it
821
+ // has the "ownerDocument" property from which we can retrieve a
822
+ // corresponding global object.
823
+ var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
824
+ // Return the local global object if it's not possible extract one from
825
+ // provided element.
826
+ return ownerGlobal || global$1;
827
+ });
828
+
829
+ // Placeholder of an empty content rectangle.
830
+ var emptyRect = createRectInit(0, 0, 0, 0);
831
+ /**
832
+ * Converts provided string to a number.
833
+ *
834
+ * @param {number|string} value
835
+ * @returns {number}
836
+ */
837
+ function toFloat(value) {
838
+ return parseFloat(value) || 0;
839
+ }
840
+ /**
841
+ * Extracts borders size from provided styles.
842
+ *
843
+ * @param {CSSStyleDeclaration} styles
844
+ * @param {...string} positions - Borders positions (top, right, ...)
845
+ * @returns {number}
846
+ */
847
+ function getBordersSize(styles) {
848
+ var positions = [];
849
+ for (var _i = 1; _i < arguments.length; _i++) {
850
+ positions[_i - 1] = arguments[_i];
851
+ }
852
+ return positions.reduce(function (size, position) {
853
+ var value = styles['border-' + position + '-width'];
854
+ return size + toFloat(value);
855
+ }, 0);
856
+ }
857
+ /**
858
+ * Extracts paddings sizes from provided styles.
859
+ *
860
+ * @param {CSSStyleDeclaration} styles
861
+ * @returns {Object} Paddings box.
862
+ */
863
+ function getPaddings(styles) {
864
+ var positions = ['top', 'right', 'bottom', 'left'];
865
+ var paddings = {};
866
+ for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
867
+ var position = positions_1[_i];
868
+ var value = styles['padding-' + position];
869
+ paddings[position] = toFloat(value);
870
+ }
871
+ return paddings;
872
+ }
873
+ /**
874
+ * Calculates content rectangle of provided SVG element.
875
+ *
876
+ * @param {SVGGraphicsElement} target - Element content rectangle of which needs
877
+ * to be calculated.
878
+ * @returns {DOMRectInit}
879
+ */
880
+ function getSVGContentRect(target) {
881
+ var bbox = target.getBBox();
882
+ return createRectInit(0, 0, bbox.width, bbox.height);
883
+ }
884
+ /**
885
+ * Calculates content rectangle of provided HTMLElement.
886
+ *
887
+ * @param {HTMLElement} target - Element for which to calculate the content rectangle.
888
+ * @returns {DOMRectInit}
889
+ */
890
+ function getHTMLElementContentRect(target) {
891
+ // Client width & height properties can't be
892
+ // used exclusively as they provide rounded values.
893
+ var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
894
+ // By this condition we can catch all non-replaced inline, hidden and
895
+ // detached elements. Though elements with width & height properties less
896
+ // than 0.5 will be discarded as well.
897
+ //
898
+ // Without it we would need to implement separate methods for each of
899
+ // those cases and it's not possible to perform a precise and performance
900
+ // effective test for hidden elements. E.g. even jQuery's ':visible' filter
901
+ // gives wrong results for elements with width & height less than 0.5.
902
+ if (!clientWidth && !clientHeight) {
903
+ return emptyRect;
904
+ }
905
+ var styles = getWindowOf(target).getComputedStyle(target);
906
+ var paddings = getPaddings(styles);
907
+ var horizPad = paddings.left + paddings.right;
908
+ var vertPad = paddings.top + paddings.bottom;
909
+ // Computed styles of width & height are being used because they are the
910
+ // only dimensions available to JS that contain non-rounded values. It could
911
+ // be possible to utilize the getBoundingClientRect if only it's data wasn't
912
+ // affected by CSS transformations let alone paddings, borders and scroll bars.
913
+ var width = toFloat(styles.width), height = toFloat(styles.height);
914
+ // Width & height include paddings and borders when the 'border-box' box
915
+ // model is applied (except for IE).
916
+ if (styles.boxSizing === 'border-box') {
917
+ // Following conditions are required to handle Internet Explorer which
918
+ // doesn't include paddings and borders to computed CSS dimensions.
919
+ //
920
+ // We can say that if CSS dimensions + paddings are equal to the "client"
921
+ // properties then it's either IE, and thus we don't need to subtract
922
+ // anything, or an element merely doesn't have paddings/borders styles.
923
+ if (Math.round(width + horizPad) !== clientWidth) {
924
+ width -= getBordersSize(styles, 'left', 'right') + horizPad;
925
+ }
926
+ if (Math.round(height + vertPad) !== clientHeight) {
927
+ height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
928
+ }
929
+ }
930
+ // Following steps can't be applied to the document's root element as its
931
+ // client[Width/Height] properties represent viewport area of the window.
932
+ // Besides, it's as well not necessary as the <html> itself neither has
933
+ // rendered scroll bars nor it can be clipped.
934
+ if (!isDocumentElement(target)) {
935
+ // In some browsers (only in Firefox, actually) CSS width & height
936
+ // include scroll bars size which can be removed at this step as scroll
937
+ // bars are the only difference between rounded dimensions + paddings
938
+ // and "client" properties, though that is not always true in Chrome.
939
+ var vertScrollbar = Math.round(width + horizPad) - clientWidth;
940
+ var horizScrollbar = Math.round(height + vertPad) - clientHeight;
941
+ // Chrome has a rather weird rounding of "client" properties.
942
+ // E.g. for an element with content width of 314.2px it sometimes gives
943
+ // the client width of 315px and for the width of 314.7px it may give
944
+ // 314px. And it doesn't happen all the time. So just ignore this delta
945
+ // as a non-relevant.
946
+ if (Math.abs(vertScrollbar) !== 1) {
947
+ width -= vertScrollbar;
948
+ }
949
+ if (Math.abs(horizScrollbar) !== 1) {
950
+ height -= horizScrollbar;
951
+ }
952
+ }
953
+ return createRectInit(paddings.left, paddings.top, width, height);
954
+ }
955
+ /**
956
+ * Checks whether provided element is an instance of the SVGGraphicsElement.
957
+ *
958
+ * @param {Element} target - Element to be checked.
959
+ * @returns {boolean}
960
+ */
961
+ var isSVGGraphicsElement = (function () {
962
+ // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
963
+ // interface.
964
+ if (typeof SVGGraphicsElement !== 'undefined') {
965
+ return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };
966
+ }
967
+ // If it's so, then check that element is at least an instance of the
968
+ // SVGElement and that it has the "getBBox" method.
969
+ // eslint-disable-next-line no-extra-parens
970
+ return function (target) { return (target instanceof getWindowOf(target).SVGElement &&
971
+ typeof target.getBBox === 'function'); };
972
+ })();
973
+ /**
974
+ * Checks whether provided element is a document element (<html>).
975
+ *
976
+ * @param {Element} target - Element to be checked.
977
+ * @returns {boolean}
978
+ */
979
+ function isDocumentElement(target) {
980
+ return target === getWindowOf(target).document.documentElement;
981
+ }
982
+ /**
983
+ * Calculates an appropriate content rectangle for provided html or svg element.
984
+ *
985
+ * @param {Element} target - Element content rectangle of which needs to be calculated.
986
+ * @returns {DOMRectInit}
987
+ */
988
+ function getContentRect(target) {
989
+ if (!isBrowser) {
990
+ return emptyRect;
991
+ }
992
+ if (isSVGGraphicsElement(target)) {
993
+ return getSVGContentRect(target);
994
+ }
995
+ return getHTMLElementContentRect(target);
996
+ }
997
+ /**
998
+ * Creates rectangle with an interface of the DOMRectReadOnly.
999
+ * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
1000
+ *
1001
+ * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
1002
+ * @returns {DOMRectReadOnly}
1003
+ */
1004
+ function createReadOnlyRect(_a) {
1005
+ var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
1006
+ // If DOMRectReadOnly is available use it as a prototype for the rectangle.
1007
+ var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
1008
+ var rect = Object.create(Constr.prototype);
1009
+ // Rectangle's properties are not writable and non-enumerable.
1010
+ defineConfigurable(rect, {
1011
+ x: x, y: y, width: width, height: height,
1012
+ top: y,
1013
+ right: x + width,
1014
+ bottom: height + y,
1015
+ left: x
1016
+ });
1017
+ return rect;
1018
+ }
1019
+ /**
1020
+ * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
1021
+ * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
1022
+ *
1023
+ * @param {number} x - X coordinate.
1024
+ * @param {number} y - Y coordinate.
1025
+ * @param {number} width - Rectangle's width.
1026
+ * @param {number} height - Rectangle's height.
1027
+ * @returns {DOMRectInit}
1028
+ */
1029
+ function createRectInit(x, y, width, height) {
1030
+ return { x: x, y: y, width: width, height: height };
1031
+ }
1032
+
1033
+ /**
1034
+ * Class that is responsible for computations of the content rectangle of
1035
+ * provided DOM element and for keeping track of it's changes.
1036
+ */
1037
+ var ResizeObservation = /** @class */ (function () {
1038
+ /**
1039
+ * Creates an instance of ResizeObservation.
1040
+ *
1041
+ * @param {Element} target - Element to be observed.
1042
+ */
1043
+ function ResizeObservation(target) {
1044
+ /**
1045
+ * Broadcasted width of content rectangle.
1046
+ *
1047
+ * @type {number}
1048
+ */
1049
+ this.broadcastWidth = 0;
1050
+ /**
1051
+ * Broadcasted height of content rectangle.
1052
+ *
1053
+ * @type {number}
1054
+ */
1055
+ this.broadcastHeight = 0;
1056
+ /**
1057
+ * Reference to the last observed content rectangle.
1058
+ *
1059
+ * @private {DOMRectInit}
1060
+ */
1061
+ this.contentRect_ = createRectInit(0, 0, 0, 0);
1062
+ this.target = target;
1063
+ }
1064
+ /**
1065
+ * Updates content rectangle and tells whether it's width or height properties
1066
+ * have changed since the last broadcast.
1067
+ *
1068
+ * @returns {boolean}
1069
+ */
1070
+ ResizeObservation.prototype.isActive = function () {
1071
+ var rect = getContentRect(this.target);
1072
+ this.contentRect_ = rect;
1073
+ return (rect.width !== this.broadcastWidth ||
1074
+ rect.height !== this.broadcastHeight);
1075
+ };
1076
+ /**
1077
+ * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
1078
+ * from the corresponding properties of the last observed content rectangle.
1079
+ *
1080
+ * @returns {DOMRectInit} Last observed content rectangle.
1081
+ */
1082
+ ResizeObservation.prototype.broadcastRect = function () {
1083
+ var rect = this.contentRect_;
1084
+ this.broadcastWidth = rect.width;
1085
+ this.broadcastHeight = rect.height;
1086
+ return rect;
1087
+ };
1088
+ return ResizeObservation;
1089
+ }());
1090
+
1091
+ var ResizeObserverEntry = /** @class */ (function () {
1092
+ /**
1093
+ * Creates an instance of ResizeObserverEntry.
1094
+ *
1095
+ * @param {Element} target - Element that is being observed.
1096
+ * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
1097
+ */
1098
+ function ResizeObserverEntry(target, rectInit) {
1099
+ var contentRect = createReadOnlyRect(rectInit);
1100
+ // According to the specification following properties are not writable
1101
+ // and are also not enumerable in the native implementation.
1102
+ //
1103
+ // Property accessors are not being used as they'd require to define a
1104
+ // private WeakMap storage which may cause memory leaks in browsers that
1105
+ // don't support this type of collections.
1106
+ defineConfigurable(this, { target: target, contentRect: contentRect });
1107
+ }
1108
+ return ResizeObserverEntry;
1109
+ }());
1110
+
1111
+ var ResizeObserverSPI = /** @class */ (function () {
1112
+ /**
1113
+ * Creates a new instance of ResizeObserver.
1114
+ *
1115
+ * @param {ResizeObserverCallback} callback - Callback function that is invoked
1116
+ * when one of the observed elements changes it's content dimensions.
1117
+ * @param {ResizeObserverController} controller - Controller instance which
1118
+ * is responsible for the updates of observer.
1119
+ * @param {ResizeObserver} callbackCtx - Reference to the public
1120
+ * ResizeObserver instance which will be passed to callback function.
1121
+ */
1122
+ function ResizeObserverSPI(callback, controller, callbackCtx) {
1123
+ /**
1124
+ * Collection of resize observations that have detected changes in dimensions
1125
+ * of elements.
1126
+ *
1127
+ * @private {Array<ResizeObservation>}
1128
+ */
1129
+ this.activeObservations_ = [];
1130
+ /**
1131
+ * Registry of the ResizeObservation instances.
1132
+ *
1133
+ * @private {Map<Element, ResizeObservation>}
1134
+ */
1135
+ this.observations_ = new MapShim();
1136
+ if (typeof callback !== 'function') {
1137
+ throw new TypeError('The callback provided as parameter 1 is not a function.');
1138
+ }
1139
+ this.callback_ = callback;
1140
+ this.controller_ = controller;
1141
+ this.callbackCtx_ = callbackCtx;
1142
+ }
1143
+ /**
1144
+ * Starts observing provided element.
1145
+ *
1146
+ * @param {Element} target - Element to be observed.
1147
+ * @returns {void}
1148
+ */
1149
+ ResizeObserverSPI.prototype.observe = function (target) {
1150
+ if (!arguments.length) {
1151
+ throw new TypeError('1 argument required, but only 0 present.');
1152
+ }
1153
+ // Do nothing if current environment doesn't have the Element interface.
1154
+ if (typeof Element === 'undefined' || !(Element instanceof Object)) {
1155
+ return;
1156
+ }
1157
+ if (!(target instanceof getWindowOf(target).Element)) {
1158
+ throw new TypeError('parameter 1 is not of type "Element".');
1159
+ }
1160
+ var observations = this.observations_;
1161
+ // Do nothing if element is already being observed.
1162
+ if (observations.has(target)) {
1163
+ return;
1164
+ }
1165
+ observations.set(target, new ResizeObservation(target));
1166
+ this.controller_.addObserver(this);
1167
+ // Force the update of observations.
1168
+ this.controller_.refresh();
1169
+ };
1170
+ /**
1171
+ * Stops observing provided element.
1172
+ *
1173
+ * @param {Element} target - Element to stop observing.
1174
+ * @returns {void}
1175
+ */
1176
+ ResizeObserverSPI.prototype.unobserve = function (target) {
1177
+ if (!arguments.length) {
1178
+ throw new TypeError('1 argument required, but only 0 present.');
1179
+ }
1180
+ // Do nothing if current environment doesn't have the Element interface.
1181
+ if (typeof Element === 'undefined' || !(Element instanceof Object)) {
1182
+ return;
1183
+ }
1184
+ if (!(target instanceof getWindowOf(target).Element)) {
1185
+ throw new TypeError('parameter 1 is not of type "Element".');
1186
+ }
1187
+ var observations = this.observations_;
1188
+ // Do nothing if element is not being observed.
1189
+ if (!observations.has(target)) {
1190
+ return;
1191
+ }
1192
+ observations.delete(target);
1193
+ if (!observations.size) {
1194
+ this.controller_.removeObserver(this);
1195
+ }
1196
+ };
1197
+ /**
1198
+ * Stops observing all elements.
1199
+ *
1200
+ * @returns {void}
1201
+ */
1202
+ ResizeObserverSPI.prototype.disconnect = function () {
1203
+ this.clearActive();
1204
+ this.observations_.clear();
1205
+ this.controller_.removeObserver(this);
1206
+ };
1207
+ /**
1208
+ * Collects observation instances the associated element of which has changed
1209
+ * it's content rectangle.
1210
+ *
1211
+ * @returns {void}
1212
+ */
1213
+ ResizeObserverSPI.prototype.gatherActive = function () {
1214
+ var _this = this;
1215
+ this.clearActive();
1216
+ this.observations_.forEach(function (observation) {
1217
+ if (observation.isActive()) {
1218
+ _this.activeObservations_.push(observation);
1219
+ }
1220
+ });
1221
+ };
1222
+ /**
1223
+ * Invokes initial callback function with a list of ResizeObserverEntry
1224
+ * instances collected from active resize observations.
1225
+ *
1226
+ * @returns {void}
1227
+ */
1228
+ ResizeObserverSPI.prototype.broadcastActive = function () {
1229
+ // Do nothing if observer doesn't have active observations.
1230
+ if (!this.hasActive()) {
1231
+ return;
1232
+ }
1233
+ var ctx = this.callbackCtx_;
1234
+ // Create ResizeObserverEntry instance for every active observation.
1235
+ var entries = this.activeObservations_.map(function (observation) {
1236
+ return new ResizeObserverEntry(observation.target, observation.broadcastRect());
1237
+ });
1238
+ this.callback_.call(ctx, entries, ctx);
1239
+ this.clearActive();
1240
+ };
1241
+ /**
1242
+ * Clears the collection of active observations.
1243
+ *
1244
+ * @returns {void}
1245
+ */
1246
+ ResizeObserverSPI.prototype.clearActive = function () {
1247
+ this.activeObservations_.splice(0);
1248
+ };
1249
+ /**
1250
+ * Tells whether observer has active observations.
1251
+ *
1252
+ * @returns {boolean}
1253
+ */
1254
+ ResizeObserverSPI.prototype.hasActive = function () {
1255
+ return this.activeObservations_.length > 0;
1256
+ };
1257
+ return ResizeObserverSPI;
1258
+ }());
1259
+
1260
+ // Registry of internal observers. If WeakMap is not available use current shim
1261
+ // for the Map collection as it has all required methods and because WeakMap
1262
+ // can't be fully polyfilled anyway.
1263
+ var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
1264
+ /**
1265
+ * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
1266
+ * exposing only those methods and properties that are defined in the spec.
1267
+ */
1268
+ var ResizeObserver$1 = /** @class */ (function () {
1269
+ /**
1270
+ * Creates a new instance of ResizeObserver.
1271
+ *
1272
+ * @param {ResizeObserverCallback} callback - Callback that is invoked when
1273
+ * dimensions of the observed elements change.
1274
+ */
1275
+ function ResizeObserver(callback) {
1276
+ if (!(this instanceof ResizeObserver)) {
1277
+ throw new TypeError('Cannot call a class as a function.');
1278
+ }
1279
+ if (!arguments.length) {
1280
+ throw new TypeError('1 argument required, but only 0 present.');
1281
+ }
1282
+ var controller = ResizeObserverController.getInstance();
1283
+ var observer = new ResizeObserverSPI(callback, controller, this);
1284
+ observers.set(this, observer);
1285
+ }
1286
+ return ResizeObserver;
1287
+ }());
1288
+ // Expose public methods of ResizeObserver.
1289
+ [
1290
+ 'observe',
1291
+ 'unobserve',
1292
+ 'disconnect'
1293
+ ].forEach(function (method) {
1294
+ ResizeObserver$1.prototype[method] = function () {
1295
+ var _a;
1296
+ return (_a = observers.get(this))[method].apply(_a, arguments);
1297
+ };
1298
+ });
1299
+
1300
+ var index = (function () {
1301
+ // Export existing implementation if available.
1302
+ if (typeof global$1.ResizeObserver !== 'undefined') {
1303
+ return global$1.ResizeObserver;
1304
+ }
1305
+ return ResizeObserver$1;
1306
+ })();
1307
+
1308
+ // =============================== Const ===============================
1309
+ var elementListeners = new Map();
1310
+ function onResize(entities) {
1311
+ entities.forEach(function (entity) {
1312
+ var _elementListeners$get;
1313
+ var target = entity.target;
1314
+ (_elementListeners$get = elementListeners.get(target)) === null || _elementListeners$get === void 0 ? void 0 : _elementListeners$get.forEach(function (listener) {
1315
+ return listener(target);
1316
+ });
1317
+ });
1318
+ }
1319
+ // Note: ResizeObserver polyfill not support option to measure border-box resize
1320
+ var resizeObserver = new index(onResize);
1321
+ // ============================== Observe ==============================
1322
+ function observe(element, callback) {
1323
+ if (!elementListeners.has(element)) {
1324
+ elementListeners.set(element, new Set());
1325
+ resizeObserver.observe(element);
1326
+ }
1327
+ elementListeners.get(element).add(callback);
1328
+ }
1329
+ function unobserve(element, callback) {
1330
+ if (elementListeners.has(element)) {
1331
+ elementListeners.get(element).delete(callback);
1332
+ if (!elementListeners.get(element).size) {
1333
+ resizeObserver.unobserve(element);
1334
+ elementListeners.delete(element);
1335
+ }
1336
+ }
1337
+ }
1338
+
1339
+ function _classCallCheck(instance, Constructor) {
1340
+ if (!(instance instanceof Constructor)) {
1341
+ throw new TypeError("Cannot call a class as a function");
1342
+ }
1343
+ }
1344
+
1345
+ function _defineProperties(target, props) {
1346
+ for (var i = 0; i < props.length; i++) {
1347
+ var descriptor = props[i];
1348
+ descriptor.enumerable = descriptor.enumerable || false;
1349
+ descriptor.configurable = true;
1350
+ if ("value" in descriptor) descriptor.writable = true;
1351
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
1352
+ }
1353
+ }
1354
+ function _createClass(Constructor, protoProps, staticProps) {
1355
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1356
+ if (staticProps) _defineProperties(Constructor, staticProps);
1357
+ Object.defineProperty(Constructor, "prototype", {
1358
+ writable: false
1359
+ });
1360
+ return Constructor;
1361
+ }
1362
+
1363
+ function _setPrototypeOf(o, p) {
1364
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
1365
+ o.__proto__ = p;
1366
+ return o;
1367
+ };
1368
+ return _setPrototypeOf(o, p);
1369
+ }
1370
+
1371
+ function _inherits(subClass, superClass) {
1372
+ if (typeof superClass !== "function" && superClass !== null) {
1373
+ throw new TypeError("Super expression must either be null or a function");
1374
+ }
1375
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
1376
+ constructor: {
1377
+ value: subClass,
1378
+ writable: true,
1379
+ configurable: true
1380
+ }
1381
+ });
1382
+ Object.defineProperty(subClass, "prototype", {
1383
+ writable: false
1384
+ });
1385
+ if (superClass) _setPrototypeOf(subClass, superClass);
1386
+ }
1387
+
1388
+ function _getPrototypeOf(o) {
1389
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
1390
+ return o.__proto__ || Object.getPrototypeOf(o);
1391
+ };
1392
+ return _getPrototypeOf(o);
1393
+ }
1394
+
1395
+ function _isNativeReflectConstruct() {
1396
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
1397
+ if (Reflect.construct.sham) return false;
1398
+ if (typeof Proxy === "function") return true;
1399
+ try {
1400
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
1401
+ return true;
1402
+ } catch (e) {
1403
+ return false;
1404
+ }
1405
+ }
1406
+
1407
+ function _assertThisInitialized(self) {
1408
+ if (self === void 0) {
1409
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1410
+ }
1411
+ return self;
1412
+ }
1413
+
1414
+ function _possibleConstructorReturn(self, call) {
1415
+ if (call && (_typeof(call) === "object" || typeof call === "function")) {
1416
+ return call;
1417
+ } else if (call !== void 0) {
1418
+ throw new TypeError("Derived constructors may only return object or undefined");
1419
+ }
1420
+ return _assertThisInitialized(self);
1421
+ }
1422
+
1423
+ function _createSuper(Derived) {
1424
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
1425
+ return function _createSuperInternal() {
1426
+ var Super = _getPrototypeOf(Derived),
1427
+ result;
1428
+ if (hasNativeReflectConstruct) {
1429
+ var NewTarget = _getPrototypeOf(this).constructor;
1430
+ result = Reflect.construct(Super, arguments, NewTarget);
1431
+ } else {
1432
+ result = Super.apply(this, arguments);
1433
+ }
1434
+ return _possibleConstructorReturn(this, result);
1435
+ };
1436
+ }
1437
+
1438
+ /**
1439
+ * Fallback to findDOMNode if origin ref do not provide any dom element
1440
+ */
1441
+ var DomWrapper = /*#__PURE__*/function (_React$Component) {
1442
+ _inherits(DomWrapper, _React$Component);
1443
+ var _super = _createSuper(DomWrapper);
1444
+ function DomWrapper() {
1445
+ _classCallCheck(this, DomWrapper);
1446
+ return _super.apply(this, arguments);
1447
+ }
1448
+ _createClass(DomWrapper, [{
1449
+ key: "render",
1450
+ value: function render() {
1451
+ return this.props.children;
1452
+ }
1453
+ }]);
1454
+ return DomWrapper;
1455
+ }(index$1.react.Component);
1456
+
1457
+ var CollectionContext = /*#__PURE__*/index$1.react.createContext(null);
1458
+ /**
1459
+ * Collect all the resize event from children ResizeObserver
1460
+ */
1461
+ function Collection(_ref) {
1462
+ var children = _ref.children,
1463
+ onBatchResize = _ref.onBatchResize;
1464
+ var resizeIdRef = index$1.react.useRef(0);
1465
+ var resizeInfosRef = index$1.react.useRef([]);
1466
+ var onCollectionResize = index$1.react.useContext(CollectionContext);
1467
+ var onResize = index$1.react.useCallback(function (size, element, data) {
1468
+ resizeIdRef.current += 1;
1469
+ var currentId = resizeIdRef.current;
1470
+ resizeInfosRef.current.push({
1471
+ size: size,
1472
+ element: element,
1473
+ data: data
1474
+ });
1475
+ Promise.resolve().then(function () {
1476
+ if (currentId === resizeIdRef.current) {
1477
+ onBatchResize === null || onBatchResize === void 0 ? void 0 : onBatchResize(resizeInfosRef.current);
1478
+ resizeInfosRef.current = [];
1479
+ }
1480
+ });
1481
+ // Continue bubbling if parent exist
1482
+ onCollectionResize === null || onCollectionResize === void 0 ? void 0 : onCollectionResize(size, element, data);
1483
+ }, [onBatchResize, onCollectionResize]);
1484
+ return /*#__PURE__*/index$1.react.createElement(CollectionContext.Provider, {
1485
+ value: onResize
1486
+ }, children);
1487
+ }
1488
+
1489
+ function SingleObserver(props, ref) {
1490
+ var children = props.children,
1491
+ disabled = props.disabled;
1492
+ var elementRef = index$1.react.useRef(null);
1493
+ var wrapperRef = index$1.react.useRef(null);
1494
+ var onCollectionResize = index$1.react.useContext(CollectionContext);
1495
+ // =========================== Children ===========================
1496
+ var isRenderProps = typeof children === 'function';
1497
+ var mergedChildren = isRenderProps ? children(elementRef) : children;
1498
+ // ============================= Size =============================
1499
+ var sizeRef = index$1.react.useRef({
1500
+ width: -1,
1501
+ height: -1,
1502
+ offsetWidth: -1,
1503
+ offsetHeight: -1
1504
+ });
1505
+ // ============================= Ref ==============================
1506
+ var canRef = !isRenderProps && /*#__PURE__*/index$1.react.isValidElement(mergedChildren) && supportRef(mergedChildren);
1507
+ var originRef = canRef ? mergedChildren.ref : null;
1508
+ var mergedRef = index$1.react.useMemo(function () {
1509
+ return composeRef(originRef, elementRef);
1510
+ }, [originRef, elementRef]);
1511
+ var getDom = function getDom() {
1512
+ return findDOMNode(elementRef.current) || findDOMNode(wrapperRef.current);
1513
+ };
1514
+ index$1.react.useImperativeHandle(ref, function () {
1515
+ return getDom();
1516
+ });
1517
+ // =========================== Observe ============================
1518
+ var propsRef = index$1.react.useRef(props);
1519
+ propsRef.current = props;
1520
+ // Handler
1521
+ var onInternalResize = index$1.react.useCallback(function (target) {
1522
+ var _propsRef$current = propsRef.current,
1523
+ onResize = _propsRef$current.onResize,
1524
+ data = _propsRef$current.data;
1525
+ var _target$getBoundingCl = target.getBoundingClientRect(),
1526
+ width = _target$getBoundingCl.width,
1527
+ height = _target$getBoundingCl.height;
1528
+ var offsetWidth = target.offsetWidth,
1529
+ offsetHeight = target.offsetHeight;
1530
+ /**
1531
+ * Resize observer trigger when content size changed.
1532
+ * In most case we just care about element size,
1533
+ * let's use `boundary` instead of `contentRect` here to avoid shaking.
1534
+ */
1535
+ var fixedWidth = Math.floor(width);
1536
+ var fixedHeight = Math.floor(height);
1537
+ if (sizeRef.current.width !== fixedWidth || sizeRef.current.height !== fixedHeight || sizeRef.current.offsetWidth !== offsetWidth || sizeRef.current.offsetHeight !== offsetHeight) {
1538
+ var size = {
1539
+ width: fixedWidth,
1540
+ height: fixedHeight,
1541
+ offsetWidth: offsetWidth,
1542
+ offsetHeight: offsetHeight
1543
+ };
1544
+ sizeRef.current = size;
1545
+ // IE is strange, right?
1546
+ var mergedOffsetWidth = offsetWidth === Math.round(width) ? width : offsetWidth;
1547
+ var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight;
1548
+ var sizeInfo = _objectSpread2(_objectSpread2({}, size), {}, {
1549
+ offsetWidth: mergedOffsetWidth,
1550
+ offsetHeight: mergedOffsetHeight
1551
+ });
1552
+ // Let collection know what happened
1553
+ onCollectionResize === null || onCollectionResize === void 0 ? void 0 : onCollectionResize(sizeInfo, target, data);
1554
+ if (onResize) {
1555
+ // defer the callback but not defer to next frame
1556
+ Promise.resolve().then(function () {
1557
+ onResize(sizeInfo, target);
1558
+ });
1559
+ }
1560
+ }
1561
+ }, []);
1562
+ // Dynamic observe
1563
+ index$1.react.useEffect(function () {
1564
+ var currentElement = getDom();
1565
+ if (currentElement && !disabled) {
1566
+ observe(currentElement, onInternalResize);
1567
+ }
1568
+ return function () {
1569
+ return unobserve(currentElement, onInternalResize);
1570
+ };
1571
+ }, [elementRef.current, disabled]);
1572
+ // ============================ Render ============================
1573
+ return /*#__PURE__*/index$1.react.createElement(DomWrapper, {
1574
+ ref: wrapperRef
1575
+ }, canRef ? /*#__PURE__*/index$1.react.cloneElement(mergedChildren, {
1576
+ ref: mergedRef
1577
+ }) : mergedChildren);
1578
+ }
1579
+ var RefSingleObserver = /*#__PURE__*/index$1.react.forwardRef(SingleObserver);
1580
+
1581
+ var INTERNAL_PREFIX_KEY = 'rc-observer-key';
1582
+ function ResizeObserver(props, ref) {
1583
+ var children = props.children;
1584
+ var childNodes = typeof children === 'function' ? [children] : toArray(children);
1585
+ return childNodes.map(function (child, index) {
1586
+ var key = (child === null || child === void 0 ? void 0 : child.key) || "".concat(INTERNAL_PREFIX_KEY, "-").concat(index);
1587
+ return /*#__PURE__*/index$1.react.createElement(RefSingleObserver, _extends({}, props, {
1588
+ key: key,
1589
+ ref: index === 0 ? ref : undefined
1590
+ }), child);
1591
+ });
1592
+ }
1593
+ var RefResizeObserver = /*#__PURE__*/index$1.react.forwardRef(ResizeObserver);
1594
+ RefResizeObserver.Collection = Collection;
1595
+
1596
+ exports.RefResizeObserver = RefResizeObserver;
1597
+ exports._typeof = _typeof$1;
1598
+ exports.canUseDom = canUseDom;
1599
+ exports.composeRef = composeRef;
1600
+ exports.fillRef = fillRef;
1601
+ exports.findDOMNode = findDOMNode;
1602
+ exports.isDOM = isDOM;
1603
+ exports.supportRef = supportRef;
1604
+ exports.useComposeRef = useComposeRef;
1605
+ exports.useEvent = useEvent;
1606
+ exports.useLayoutEffect = useLayoutEffect;
1607
+ exports.useLayoutUpdateEffect = useLayoutUpdateEffect;
1608
+ exports.useMemo = useMemo;
1609
+ exports.warningOnce = warningOnce;
1610
+ exports.wrapperRaf = wrapperRaf;