@itcenteratunihelsinki/huds-lib 0.5.45 → 0.6.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 (321) hide show
  1. package/dist/cjs/color-box_8.cjs.entry.js +210 -0
  2. package/dist/cjs/{globalScript-0c66cb96.js → globalScript-6b592153.js} +1 -1
  3. package/dist/cjs/huds-lib.cjs.js +4 -4
  4. package/dist/cjs/hy-accordion-container_89.cjs.entry.js +7658 -0
  5. package/dist/cjs/{index-dd5e5023.js → index-dfc917d9.js} +80 -64
  6. package/dist/cjs/loader.cjs.js +4 -4
  7. package/dist/cjs/{utils-eeb7b089.js → utils-00f72b1e.js} +0 -2
  8. package/dist/collection/collection-manifest.json +95 -14
  9. package/dist/collection/components/button/button.js +7 -2
  10. package/dist/collection/components/heading/heading.js +4 -4
  11. package/dist/collection/components/hy-main/hy-main.css +3 -2
  12. package/dist/collection/components/navigation/menu/menu.js +47 -35
  13. package/dist/collection/components/navigation/menu-item/menu-item.js +1 -17
  14. package/dist/collection/components/navigation/menu-level-container/menu-level-container.css +0 -236
  15. package/dist/collection/components/navigation/menu-level-container/menu-level-container.js +1 -48
  16. package/dist/collection/components/person-profile/person-profile.js +8 -1
  17. package/dist/collection/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.js +27 -19
  18. package/dist/collection/components/site-header/site-header.js +15 -3
  19. package/dist/collection/utils/utils.js +0 -2
  20. package/dist/esm/color-box_8.entry.js +199 -0
  21. package/dist/esm/{globalScript-92c6b812.js → globalScript-9d045b36.js} +1 -1
  22. package/dist/esm/huds-lib.js +4 -4
  23. package/dist/esm/hy-accordion-container_89.entry.js +7566 -0
  24. package/dist/esm/{index-083c8c8a.js → index-daaf0985.js} +80 -64
  25. package/dist/esm/loader.js +4 -4
  26. package/dist/esm/{utils-708bbefe.js → utils-159098a4.js} +1 -3
  27. package/dist/huds-lib/huds-lib.esm.js +1 -1
  28. package/dist/huds-lib/{p-fd1edbd5.js → p-04dcccdc.js} +1 -1
  29. package/dist/huds-lib/p-152d3e8d.entry.js +86 -0
  30. package/dist/huds-lib/p-2efc8ca0.entry.js +1 -0
  31. package/dist/huds-lib/{p-8ab550d6.js → p-d9dc337b.js} +1 -1
  32. package/dist/huds-lib/{p-bb24c6b5.js → p-f8697bf9.js} +1 -1
  33. package/dist/types/components/button/button.d.ts +1 -1
  34. package/dist/types/components/navigation/menu/menu.d.ts +1 -0
  35. package/dist/types/components/person-profile/person-profile.d.ts +1 -0
  36. package/dist/types/components.d.ts +1 -201
  37. package/dist/types/stencil-public-runtime.d.ts +7 -4
  38. package/dist/types/utils/utils.d.ts +0 -2
  39. package/loader/index.d.ts +13 -4
  40. package/loader/{index.es2017.mjs → index.es2017.js} +1 -2
  41. package/loader/index.js +13 -0
  42. package/loader/package.json +5 -7
  43. package/package.json +2 -2
  44. package/dist/cjs/color-box.cjs.entry.js +0 -19
  45. package/dist/cjs/emotion.esm-563b6504.js +0 -1397
  46. package/dist/cjs/hy-accordion-container_5.cjs.entry.js +0 -578
  47. package/dist/cjs/hy-adjacent-image-text.cjs.entry.js +0 -51
  48. package/dist/cjs/hy-anchor-link-list.cjs.entry.js +0 -45
  49. package/dist/cjs/hy-badge.cjs.entry.js +0 -21
  50. package/dist/cjs/hy-banner.cjs.entry.js +0 -45
  51. package/dist/cjs/hy-baseline.cjs.entry.js +0 -32
  52. package/dist/cjs/hy-box-container.cjs.entry.js +0 -33
  53. package/dist/cjs/hy-box.cjs.entry.js +0 -165
  54. package/dist/cjs/hy-breadcrumbs.cjs.entry.js +0 -231
  55. package/dist/cjs/hy-button.cjs.entry.js +0 -100
  56. package/dist/cjs/hy-checkbox.cjs.entry.js +0 -33
  57. package/dist/cjs/hy-collaboration.cjs.entry.js +0 -19
  58. package/dist/cjs/hy-content-list-item.cjs.entry.js +0 -70
  59. package/dist/cjs/hy-content-list.cjs.entry.js +0 -112
  60. package/dist/cjs/hy-crisis-banner.cjs.entry.js +0 -19
  61. package/dist/cjs/hy-cta-button.cjs.entry.js +0 -30
  62. package/dist/cjs/hy-cta-link.cjs.entry.js +0 -26
  63. package/dist/cjs/hy-desktop-menu-links.cjs.entry.js +0 -328
  64. package/dist/cjs/hy-docs-container.cjs.entry.js +0 -19
  65. package/dist/cjs/hy-dropdown-panel_2.cjs.entry.js +0 -27
  66. package/dist/cjs/hy-dropdown.cjs.entry.js +0 -113
  67. package/dist/cjs/hy-filter-group-item.cjs.entry.js +0 -17
  68. package/dist/cjs/hy-filter-group.cjs.entry.js +0 -37
  69. package/dist/cjs/hy-filter-list-type.cjs.entry.js +0 -28
  70. package/dist/cjs/hy-filter-visibility-tool-reset_2.cjs.entry.js +0 -26
  71. package/dist/cjs/hy-filter-visibility-tool.cjs.entry.js +0 -24
  72. package/dist/cjs/hy-footer_5.cjs.entry.js +0 -201
  73. package/dist/cjs/hy-general-list_2.cjs.entry.js +0 -94
  74. package/dist/cjs/hy-grid-container.cjs.entry.js +0 -20
  75. package/dist/cjs/hy-grid-item.cjs.entry.js +0 -31
  76. package/dist/cjs/hy-grid-row.cjs.entry.js +0 -20
  77. package/dist/cjs/hy-heading.cjs.entry.js +0 -67
  78. package/dist/cjs/hy-hero.cjs.entry.js +0 -101
  79. package/dist/cjs/hy-icon.cjs.entry.js +0 -364
  80. package/dist/cjs/hy-image.cjs.entry.js +0 -50
  81. package/dist/cjs/hy-ingress.cjs.entry.js +0 -30
  82. package/dist/cjs/hy-introduction.cjs.entry.js +0 -55
  83. package/dist/cjs/hy-key-figure-group.cjs.entry.js +0 -77
  84. package/dist/cjs/hy-key-figure.cjs.entry.js +0 -22
  85. package/dist/cjs/hy-key-highlight-group.cjs.entry.js +0 -44
  86. package/dist/cjs/hy-key-highlight.cjs.entry.js +0 -22
  87. package/dist/cjs/hy-large-process-flow-phase.cjs.entry.js +0 -37
  88. package/dist/cjs/hy-large-process-flow.cjs.entry.js +0 -44
  89. package/dist/cjs/hy-link-box-list.cjs.entry.js +0 -54
  90. package/dist/cjs/hy-link-box.cjs.entry.js +0 -79
  91. package/dist/cjs/hy-link-list.cjs.entry.js +0 -44
  92. package/dist/cjs/hy-link.cjs.entry.js +0 -25
  93. package/dist/cjs/hy-list-item.cjs.entry.js +0 -239
  94. package/dist/cjs/hy-logo-grid-item.cjs.entry.js +0 -30
  95. package/dist/cjs/hy-logo-grid.cjs.entry.js +0 -20
  96. package/dist/cjs/hy-main-content-wrapper.cjs.entry.js +0 -20
  97. package/dist/cjs/hy-main.cjs.entry.js +0 -25
  98. package/dist/cjs/hy-menu-item-sidebar.cjs.entry.js +0 -159
  99. package/dist/cjs/hy-menu-item.cjs.entry.js +0 -147
  100. package/dist/cjs/hy-menu-language-item.cjs.entry.js +0 -25
  101. package/dist/cjs/hy-menu-language.cjs.entry.js +0 -91
  102. package/dist/cjs/hy-menu-level-container.cjs.entry.js +0 -137
  103. package/dist/cjs/hy-menu-main-group.cjs.entry.js +0 -151
  104. package/dist/cjs/hy-menu-mobile-breadcrumb.cjs.entry.js +0 -25
  105. package/dist/cjs/hy-menu-sidebar.cjs.entry.js +0 -290
  106. package/dist/cjs/hy-menu.cjs.entry.js +0 -111
  107. package/dist/cjs/hy-mobile-menu-shortcuts.cjs.entry.js +0 -26
  108. package/dist/cjs/hy-opening-hours-content.cjs.entry.js +0 -43
  109. package/dist/cjs/hy-opening-hours.cjs.entry.js +0 -35
  110. package/dist/cjs/hy-pager-item.cjs.entry.js +0 -45
  111. package/dist/cjs/hy-pager.cjs.entry.js +0 -20
  112. package/dist/cjs/hy-paragraph-text.cjs.entry.js +0 -45
  113. package/dist/cjs/hy-person-card.cjs.entry.js +0 -84
  114. package/dist/cjs/hy-person-profile.cjs.entry.js +0 -61
  115. package/dist/cjs/hy-process-flow-box.cjs.entry.js +0 -28
  116. package/dist/cjs/hy-process.cjs.entry.js +0 -57
  117. package/dist/cjs/hy-prominent-image.cjs.entry.js +0 -36
  118. package/dist/cjs/hy-quote.cjs.entry.js +0 -30
  119. package/dist/cjs/hy-row.cjs.entry.js +0 -42
  120. package/dist/cjs/hy-search-field.cjs.entry.js +0 -51
  121. package/dist/cjs/hy-section-container.cjs.entry.js +0 -19
  122. package/dist/cjs/hy-shortcuts.cjs.entry.js +0 -60
  123. package/dist/cjs/hy-site-header_3.cjs.entry.js +0 -444
  124. package/dist/cjs/hy-table-container.cjs.entry.js +0 -20
  125. package/dist/cjs/hy-tag.cjs.entry.js +0 -20
  126. package/dist/cjs/hy-tiny-text.cjs.entry.js +0 -20
  127. package/dist/cjs/hy-twitter-feed.cjs.entry.js +0 -27
  128. package/dist/cjs/hy-two-columns.cjs.entry.js +0 -21
  129. package/dist/cjs/hy-user-login-form.cjs.entry.js +0 -23
  130. package/dist/cjs/hy-video.cjs.entry.js +0 -67
  131. package/dist/cjs/index-314ad166.js +0 -967
  132. package/dist/collection/components/navigation/menu-item-sidebar/menu-item-sidebar.css +0 -399
  133. package/dist/collection/components/navigation/menu-item-sidebar/menu-item-sidebar.js +0 -580
  134. package/dist/collection/components/navigation/menu-sidebar/menu-sidebar.css +0 -337
  135. package/dist/collection/components/navigation/menu-sidebar/menu-sidebar.js +0 -669
  136. package/dist/esm/color-box.entry.js +0 -15
  137. package/dist/esm/emotion.esm-87895ee1.js +0 -1395
  138. package/dist/esm/hy-accordion-container_5.entry.js +0 -570
  139. package/dist/esm/hy-adjacent-image-text.entry.js +0 -47
  140. package/dist/esm/hy-anchor-link-list.entry.js +0 -41
  141. package/dist/esm/hy-badge.entry.js +0 -17
  142. package/dist/esm/hy-banner.entry.js +0 -41
  143. package/dist/esm/hy-baseline.entry.js +0 -28
  144. package/dist/esm/hy-box-container.entry.js +0 -29
  145. package/dist/esm/hy-box.entry.js +0 -161
  146. package/dist/esm/hy-breadcrumbs.entry.js +0 -227
  147. package/dist/esm/hy-button.entry.js +0 -96
  148. package/dist/esm/hy-checkbox.entry.js +0 -29
  149. package/dist/esm/hy-collaboration.entry.js +0 -15
  150. package/dist/esm/hy-content-list-item.entry.js +0 -66
  151. package/dist/esm/hy-content-list.entry.js +0 -108
  152. package/dist/esm/hy-crisis-banner.entry.js +0 -15
  153. package/dist/esm/hy-cta-button.entry.js +0 -26
  154. package/dist/esm/hy-cta-link.entry.js +0 -22
  155. package/dist/esm/hy-desktop-menu-links.entry.js +0 -324
  156. package/dist/esm/hy-docs-container.entry.js +0 -15
  157. package/dist/esm/hy-dropdown-panel_2.entry.js +0 -22
  158. package/dist/esm/hy-dropdown.entry.js +0 -109
  159. package/dist/esm/hy-filter-group-item.entry.js +0 -13
  160. package/dist/esm/hy-filter-group.entry.js +0 -33
  161. package/dist/esm/hy-filter-list-type.entry.js +0 -24
  162. package/dist/esm/hy-filter-visibility-tool-reset_2.entry.js +0 -21
  163. package/dist/esm/hy-filter-visibility-tool.entry.js +0 -20
  164. package/dist/esm/hy-footer_5.entry.js +0 -193
  165. package/dist/esm/hy-general-list_2.entry.js +0 -89
  166. package/dist/esm/hy-grid-container.entry.js +0 -16
  167. package/dist/esm/hy-grid-item.entry.js +0 -27
  168. package/dist/esm/hy-grid-row.entry.js +0 -16
  169. package/dist/esm/hy-heading.entry.js +0 -63
  170. package/dist/esm/hy-hero.entry.js +0 -97
  171. package/dist/esm/hy-icon.entry.js +0 -360
  172. package/dist/esm/hy-image.entry.js +0 -46
  173. package/dist/esm/hy-ingress.entry.js +0 -26
  174. package/dist/esm/hy-introduction.entry.js +0 -51
  175. package/dist/esm/hy-key-figure-group.entry.js +0 -73
  176. package/dist/esm/hy-key-figure.entry.js +0 -18
  177. package/dist/esm/hy-key-highlight-group.entry.js +0 -40
  178. package/dist/esm/hy-key-highlight.entry.js +0 -18
  179. package/dist/esm/hy-large-process-flow-phase.entry.js +0 -33
  180. package/dist/esm/hy-large-process-flow.entry.js +0 -40
  181. package/dist/esm/hy-link-box-list.entry.js +0 -50
  182. package/dist/esm/hy-link-box.entry.js +0 -75
  183. package/dist/esm/hy-link-list.entry.js +0 -40
  184. package/dist/esm/hy-link.entry.js +0 -21
  185. package/dist/esm/hy-list-item.entry.js +0 -235
  186. package/dist/esm/hy-logo-grid-item.entry.js +0 -26
  187. package/dist/esm/hy-logo-grid.entry.js +0 -16
  188. package/dist/esm/hy-main-content-wrapper.entry.js +0 -16
  189. package/dist/esm/hy-main.entry.js +0 -21
  190. package/dist/esm/hy-menu-item-sidebar.entry.js +0 -155
  191. package/dist/esm/hy-menu-item.entry.js +0 -143
  192. package/dist/esm/hy-menu-language-item.entry.js +0 -21
  193. package/dist/esm/hy-menu-language.entry.js +0 -87
  194. package/dist/esm/hy-menu-level-container.entry.js +0 -133
  195. package/dist/esm/hy-menu-main-group.entry.js +0 -147
  196. package/dist/esm/hy-menu-mobile-breadcrumb.entry.js +0 -21
  197. package/dist/esm/hy-menu-sidebar.entry.js +0 -286
  198. package/dist/esm/hy-menu.entry.js +0 -107
  199. package/dist/esm/hy-mobile-menu-shortcuts.entry.js +0 -22
  200. package/dist/esm/hy-opening-hours-content.entry.js +0 -39
  201. package/dist/esm/hy-opening-hours.entry.js +0 -31
  202. package/dist/esm/hy-pager-item.entry.js +0 -41
  203. package/dist/esm/hy-pager.entry.js +0 -16
  204. package/dist/esm/hy-paragraph-text.entry.js +0 -41
  205. package/dist/esm/hy-person-card.entry.js +0 -80
  206. package/dist/esm/hy-person-profile.entry.js +0 -57
  207. package/dist/esm/hy-process-flow-box.entry.js +0 -24
  208. package/dist/esm/hy-process.entry.js +0 -53
  209. package/dist/esm/hy-prominent-image.entry.js +0 -32
  210. package/dist/esm/hy-quote.entry.js +0 -26
  211. package/dist/esm/hy-row.entry.js +0 -38
  212. package/dist/esm/hy-search-field.entry.js +0 -47
  213. package/dist/esm/hy-section-container.entry.js +0 -15
  214. package/dist/esm/hy-shortcuts.entry.js +0 -56
  215. package/dist/esm/hy-site-header_3.entry.js +0 -438
  216. package/dist/esm/hy-table-container.entry.js +0 -16
  217. package/dist/esm/hy-tag.entry.js +0 -16
  218. package/dist/esm/hy-tiny-text.entry.js +0 -16
  219. package/dist/esm/hy-twitter-feed.entry.js +0 -23
  220. package/dist/esm/hy-two-columns.entry.js +0 -17
  221. package/dist/esm/hy-user-login-form.entry.js +0 -19
  222. package/dist/esm/hy-video.entry.js +0 -63
  223. package/dist/esm/index-41a1e449.js +0 -965
  224. package/dist/huds-lib/p-003597de.entry.js +0 -1
  225. package/dist/huds-lib/p-00a1f0c4.entry.js +0 -1
  226. package/dist/huds-lib/p-045ec3b7.entry.js +0 -6
  227. package/dist/huds-lib/p-065ae4a9.entry.js +0 -1
  228. package/dist/huds-lib/p-095afc4e.entry.js +0 -1
  229. package/dist/huds-lib/p-0a37696c.entry.js +0 -1
  230. package/dist/huds-lib/p-0b2e3057.entry.js +0 -1
  231. package/dist/huds-lib/p-0ba24d1d.entry.js +0 -1
  232. package/dist/huds-lib/p-0d751fcd.entry.js +0 -1
  233. package/dist/huds-lib/p-0def2cda.entry.js +0 -1
  234. package/dist/huds-lib/p-0f9c4661.entry.js +0 -8
  235. package/dist/huds-lib/p-114f1281.entry.js +0 -1
  236. package/dist/huds-lib/p-14a7e308.entry.js +0 -1
  237. package/dist/huds-lib/p-179221b4.entry.js +0 -1
  238. package/dist/huds-lib/p-1ed13a8e.entry.js +0 -1
  239. package/dist/huds-lib/p-1f5cb6ed.entry.js +0 -1
  240. package/dist/huds-lib/p-238bf6f7.entry.js +0 -1
  241. package/dist/huds-lib/p-24c25896.entry.js +0 -1
  242. package/dist/huds-lib/p-27a613af.entry.js +0 -1
  243. package/dist/huds-lib/p-29a5f847.entry.js +0 -1
  244. package/dist/huds-lib/p-2c83cfcf.entry.js +0 -1
  245. package/dist/huds-lib/p-309dde97.entry.js +0 -1
  246. package/dist/huds-lib/p-31d9c326.entry.js +0 -1
  247. package/dist/huds-lib/p-349817f6.entry.js +0 -1
  248. package/dist/huds-lib/p-3641da70.entry.js +0 -1
  249. package/dist/huds-lib/p-3bf480d9.entry.js +0 -1
  250. package/dist/huds-lib/p-3d35d226.entry.js +0 -1
  251. package/dist/huds-lib/p-3e4344d2.entry.js +0 -1
  252. package/dist/huds-lib/p-3f050660.entry.js +0 -1
  253. package/dist/huds-lib/p-40ab2704.entry.js +0 -6
  254. package/dist/huds-lib/p-4252e76e.entry.js +0 -1
  255. package/dist/huds-lib/p-47d919f5.entry.js +0 -1
  256. package/dist/huds-lib/p-488053bf.entry.js +0 -1
  257. package/dist/huds-lib/p-497703c3.entry.js +0 -1
  258. package/dist/huds-lib/p-4d4869f9.entry.js +0 -1
  259. package/dist/huds-lib/p-518b6042.entry.js +0 -1
  260. package/dist/huds-lib/p-51dd0bf2.entry.js +0 -1
  261. package/dist/huds-lib/p-521557a1.entry.js +0 -1
  262. package/dist/huds-lib/p-570b0c50.entry.js +0 -1
  263. package/dist/huds-lib/p-604e4a62.entry.js +0 -1
  264. package/dist/huds-lib/p-608090da.entry.js +0 -1
  265. package/dist/huds-lib/p-67b6fddc.entry.js +0 -1
  266. package/dist/huds-lib/p-69559eff.entry.js +0 -1
  267. package/dist/huds-lib/p-69849560.entry.js +0 -1
  268. package/dist/huds-lib/p-6c54b7bc.entry.js +0 -1
  269. package/dist/huds-lib/p-6c56dcbb.entry.js +0 -1
  270. package/dist/huds-lib/p-7225fde6.entry.js +0 -1
  271. package/dist/huds-lib/p-734da8db.entry.js +0 -1
  272. package/dist/huds-lib/p-75f84185.entry.js +0 -1
  273. package/dist/huds-lib/p-795c4838.entry.js +0 -1
  274. package/dist/huds-lib/p-7ca87180.entry.js +0 -1
  275. package/dist/huds-lib/p-7dd26e2a.entry.js +0 -1
  276. package/dist/huds-lib/p-830cfabf.entry.js +0 -69
  277. package/dist/huds-lib/p-8a7b55ed.entry.js +0 -1
  278. package/dist/huds-lib/p-8f314f7f.entry.js +0 -1
  279. package/dist/huds-lib/p-90a2d5bd.entry.js +0 -1
  280. package/dist/huds-lib/p-98487b2c.entry.js +0 -1
  281. package/dist/huds-lib/p-9a45dd9a.entry.js +0 -1
  282. package/dist/huds-lib/p-9b5113e0.entry.js +0 -1
  283. package/dist/huds-lib/p-a0a1ead3.entry.js +0 -1
  284. package/dist/huds-lib/p-a4745be5.entry.js +0 -1
  285. package/dist/huds-lib/p-a54ddb3e.entry.js +0 -1
  286. package/dist/huds-lib/p-a7922d26.entry.js +0 -1
  287. package/dist/huds-lib/p-a82d4779.js +0 -1
  288. package/dist/huds-lib/p-aca0eb7d.entry.js +0 -1
  289. package/dist/huds-lib/p-afe191fd.entry.js +0 -1
  290. package/dist/huds-lib/p-b7268181.entry.js +0 -1
  291. package/dist/huds-lib/p-baada6d9.entry.js +0 -1
  292. package/dist/huds-lib/p-bd31e4b5.entry.js +0 -1
  293. package/dist/huds-lib/p-bd56a257.entry.js +0 -1
  294. package/dist/huds-lib/p-c2b771ef.entry.js +0 -1
  295. package/dist/huds-lib/p-c87b7917.entry.js +0 -1
  296. package/dist/huds-lib/p-ca66cf04.js +0 -1
  297. package/dist/huds-lib/p-d56f5a7a.entry.js +0 -1
  298. package/dist/huds-lib/p-d5a6bba6.entry.js +0 -1
  299. package/dist/huds-lib/p-db4dc333.entry.js +0 -1
  300. package/dist/huds-lib/p-dc6a653f.entry.js +0 -1
  301. package/dist/huds-lib/p-dd2d9165.entry.js +0 -1
  302. package/dist/huds-lib/p-e24fb999.entry.js +0 -1
  303. package/dist/huds-lib/p-e430c2a0.entry.js +0 -1
  304. package/dist/huds-lib/p-e7abd29a.entry.js +0 -1
  305. package/dist/huds-lib/p-e7c21f51.entry.js +0 -1
  306. package/dist/huds-lib/p-e834c239.entry.js +0 -1
  307. package/dist/huds-lib/p-efc359e3.entry.js +0 -1
  308. package/dist/huds-lib/p-f0d518a5.entry.js +0 -1
  309. package/dist/huds-lib/p-fbf11f85.entry.js +0 -1
  310. package/dist/huds-lib/p-fcf2d27d.entry.js +0 -1
  311. package/dist/huds-lib/p-ff62346a.entry.js +0 -1
  312. package/dist/loader/cdn.js +0 -3
  313. package/dist/loader/index.cjs.js +0 -3
  314. package/dist/loader/index.d.ts +0 -13
  315. package/dist/loader/index.es2017.js +0 -3
  316. package/dist/loader/index.js +0 -4
  317. package/dist/loader/package.json +0 -10
  318. package/dist/types/components/navigation/menu-item-sidebar/menu-item-sidebar.d.ts +0 -34
  319. package/dist/types/components/navigation/menu-sidebar/menu-sidebar.d.ts +0 -90
  320. package/loader/index.mjs +0 -22
  321. package/loader/node-main.js +0 -3
@@ -1,965 +0,0 @@
1
- /**
2
- * A collection of shims that provided minimal
3
- * support of WeakMap and Map classes.
4
- *
5
- * These implementations are not meant to be used outside of
6
- * ResizeObserver modules as they cover only a limited range
7
- * of use cases.
8
- */
9
-
10
- /* eslint-disable require-jsdoc */
11
- const hasNativeCollections =
12
- typeof window.WeakMap === 'function' &&
13
- typeof window.Map === 'function';
14
-
15
- const WeakMap = (() => {
16
- if (hasNativeCollections) {
17
- return window.WeakMap;
18
- }
19
-
20
- function getIndex(arr, key) {
21
- let result = -1;
22
-
23
- arr.some((entry, index) => {
24
- let matches = entry[0] === key;
25
-
26
- if (matches) {
27
- result = index;
28
- }
29
-
30
- return matches;
31
- });
32
-
33
- return result;
34
- }
35
-
36
- return class {
37
- constructor() {
38
- this.__entries__ = [];
39
- }
40
-
41
- get(key) {
42
- let index = getIndex(this.__entries__, key);
43
-
44
- return this.__entries__[index][1];
45
- }
46
-
47
- set(key, value) {
48
- let index = getIndex(this.__entries__, key);
49
-
50
- if (~index) {
51
- this.__entries__[index][1] = value;
52
- } else {
53
- this.__entries__.push([key, value]);
54
- }
55
- }
56
-
57
- delete(key) {
58
- let entries = this.__entries__,
59
- index = getIndex(entries, key);
60
-
61
- if (~index) {
62
- entries.splice(index, 1);
63
- }
64
- }
65
-
66
- has(key) {
67
- return !!~getIndex(this.__entries__, key);
68
- }
69
- };
70
- })();
71
-
72
- const Map = (() => {
73
- if (hasNativeCollections) {
74
- return window.Map;
75
- }
76
-
77
- return class extends WeakMap {
78
- get size() {
79
- return this.__entries__.length;
80
- }
81
-
82
- clear() {
83
- this.__entries__.splice(0, this.__entries__.length);
84
- }
85
-
86
- entries() {
87
- return this.__entries__.slice();
88
- }
89
-
90
- keys() {
91
- return this.__entries__.map(entry => entry[0]);
92
- }
93
-
94
- values() {
95
- return this.__entries__.map(entry => entry[1]);
96
- }
97
-
98
- forEach(callback, ctx = null) {
99
- for (const entry of this.__entries__) {
100
- callback.call(ctx, entry[1], entry[0]);
101
- }
102
- }
103
- };
104
- })();
105
-
106
- /**
107
- * A shim for performance.now method which falls back
108
- * to Date.now if the first one is not supported.
109
- *
110
- * @returns {Timestamp}
111
- */
112
- const now = (() => {
113
- if (
114
- window.performance &&
115
- typeof window.performance.now === 'function'
116
- ) {
117
- return () => window.performance.now();
118
- }
119
-
120
- return () => Date.now();
121
- })();
122
-
123
- /**
124
- * A shim for requestAnimationFrame which falls back
125
- * to setTimeout if the first one is not supported.
126
- *
127
- * @returns {Number} Requests' identifier.
128
- */
129
- const requestAnimFrame = (() => {
130
- if (
131
- window.requestAnimationFrame &&
132
- typeof window.requestAnimationFrame === 'function'
133
- ) {
134
- return window.requestAnimationFrame;
135
- }
136
-
137
- return callback => {
138
- return setTimeout(() => callback(Date.now()), 1000 / 60);
139
- };
140
- })();
141
-
142
- const mutationsSupported = typeof window.MutationObserver === 'function';
143
-
144
- /**
145
- * Creates a wrapper function which ensures that
146
- * provided callback will be invoked only once
147
- * during the specified delay.
148
- *
149
- * @param {Function} callback - Function to be invoked.
150
- * @param {Number} [delay = 0] - Delay after which to invoke callback.
151
- * @returns {Function}
152
- */
153
- function debounce(callback, delay = 0) {
154
- let timeoutID = false;
155
-
156
- return function (...args) {
157
- if (timeoutID !== false) {
158
- clearTimeout(timeoutID);
159
- }
160
-
161
- timeoutID = setTimeout(() => {
162
- timeoutID = false;
163
-
164
- /* eslint-disable no-invalid-this */
165
- callback.apply(this, args);
166
-
167
- /* eslint-enable no-invalid-this */
168
- }, delay);
169
- };
170
- }
171
-
172
- /**
173
- * Controller class which handles updates of ResizeObserver instances.
174
- * It's meant to decide when and for how long it's necessary to run updates by listening to the windows
175
- * "resize" event along with a tracking of DOM mutations (nodes removal, changes of attributes, etc.).
176
- *
177
- * Transitions and animations are handled by running a repeatable update cycle either until the dimensions
178
- * of observed elements are changing or the timeout is reached (default timeout is 50 milliseconds).
179
- * Timeout value can be manually increased if transitions have a delay.
180
- *
181
- * Continuous update cycle will be used automatically in case if MutationObserver is not supported.
182
- */
183
- class ResizeObserverController {
184
- /**
185
- * Creates a new instance of ResizeObserverController.
186
- *
187
- * @param {Number} [idleTimeout = 0] - Idle timeout value.
188
- * @param {Boolean} [continuousUpdates = false] - Whether to use a continuous update cycle.
189
- */
190
- constructor(idleTimeout = 50, continuousUpdates = false) {
191
- this._idleTimeout = idleTimeout;
192
- this._isCycleContinuous = continuousUpdates;
193
-
194
- this._cycleStartTime = 0;
195
-
196
- // Indicates whether the update cycle is currently running.
197
- this._isCycleActive = false;
198
-
199
- // Indicates whether the update of observers is scheduled.
200
- this._isUpdateScheduled = false;
201
-
202
- // Indicates whether DOM listeners have been added.
203
- this._listenersEnabled = false;
204
-
205
- // Keeps reference to the instance of MutationObserver.
206
- this._mutationsObserver = null;
207
-
208
- // A list of connected observers.
209
- this._observers = [];
210
-
211
- // Fix value of "this" binding for the following methods.
212
- this.runUpdates = this.runUpdates.bind(this);
213
- this._resolveScheduled = this._resolveScheduled.bind(this);
214
- this._onMutation = this._onMutation.bind(this);
215
-
216
- // Function that will be invoked to re-run the
217
- // update cycle if continuous cycles are enabled.
218
- this._continuousCycleHandler = debounce(this.runUpdates, 200);
219
- }
220
-
221
- /**
222
- * Returns current idle timeout value.
223
- *
224
- * @returns {Number}
225
- */
226
- get idleTimeout() {
227
- return this._idleTimeout;
228
- }
229
-
230
- /**
231
- * Sets up new idle timeout value.
232
- *
233
- * @param {Number} value - New timeout value.
234
- */
235
- set idleTimeout(value) {
236
- this._idleTimeout = value;
237
- }
238
-
239
- /**
240
- * Tells whether continuous updates are enabled.
241
- *
242
- * @returns {Boolean}
243
- */
244
- get continuousUpdates() {
245
- return this._isCycleContinuous;
246
- }
247
-
248
- /**
249
- * Enables or disables continuous updates.
250
- *
251
- * @param {Boolean} value - Whether to enable or disable
252
- * continuous updates. Note that the value won't be applied
253
- * if MutationObserver is not supported.
254
- */
255
- set continuousUpdates(value) {
256
- if (mutationsSupported) {
257
- this._isCycleContinuous = value;
258
- }
259
- }
260
-
261
- /**
262
- * Adds observer to observers list.
263
- *
264
- * @param {ResizeObserver} observer - Observer to be added.
265
- */
266
- connect(observer) {
267
- if (!this.isConnected(observer)) {
268
- this._observers.push(observer);
269
- }
270
-
271
- // Add listeners if they haven't been added yet.
272
- if (!this._listenersEnabled) {
273
- this._addListeners();
274
- }
275
- }
276
-
277
- /**
278
- * Removes observer from observers list.
279
- *
280
- * @param {ResizeObserver} observer - Observer to be removed.
281
- */
282
- disconnect(observer) {
283
- let observers = this._observers,
284
- index = observers.indexOf(observer);
285
-
286
- if (~index) {
287
- observers.splice(index, 1);
288
- }
289
-
290
- // Remove listeners if controller
291
- // has no connected observers.
292
- if (!observers.length && this._listenersEnabled) {
293
- this._removeListeners();
294
- }
295
- }
296
-
297
- /**
298
- * Tells whether provided observer is connected to controller.
299
- *
300
- * @param {ResizeObserver} observer - Observer to be checked.
301
- * @returns {Boolean}
302
- */
303
- isConnected(observer) {
304
- return !!~this._observers.indexOf(observer);
305
- }
306
-
307
- /**
308
- * Updates every observer from observers list and
309
- * notifies them of queued entries.
310
- *
311
- * @private
312
- * @returns {Boolean} Returns "true" if any observer
313
- * has detected changes in dimensions of its' elements.
314
- */
315
- _updateObservers() {
316
- let hasChanges = false;
317
-
318
- for (const observer of this._observers) {
319
- observer.gatherActive();
320
-
321
- if (observer.hasActive()) {
322
- hasChanges = true;
323
-
324
- observer.broadcastActive();
325
- }
326
- }
327
-
328
- return hasChanges;
329
- }
330
-
331
- /**
332
- * Starts the update cycle which will run either
333
- * until it detects changes in the dimensions of
334
- * elements or the idle timeout is reached.
335
- */
336
- runUpdates() {
337
- this._cycleStartTime = now();
338
- this._isCycleActive = true;
339
-
340
- this.scheduleUpdate();
341
- }
342
-
343
- /**
344
- * Schedules the update of observers.
345
- *
346
- * @private
347
- */
348
- scheduleUpdate() {
349
- if (!this._isUpdateScheduled) {
350
- this._isUpdateScheduled = true;
351
-
352
- requestAnimFrame(this._resolveScheduled);
353
- }
354
- }
355
-
356
- /**
357
- * Invokes the update of observers. It may re-run the
358
- * cycle if changes in observers have been detected.
359
- *
360
- * @private
361
- */
362
- _resolveScheduled() {
363
- const hasChanges = this._updateObservers();
364
-
365
- this._isUpdateScheduled = false;
366
-
367
- // Do nothing if cycle wasn't started.
368
- if (!this._isCycleActive) {
369
- return;
370
- }
371
-
372
- // Re-start cycle if changes have been detected.
373
- if (hasChanges) {
374
- this.runUpdates();
375
- } else if (this._hasRemainingTime()) {
376
- this.scheduleUpdate();
377
- } else {
378
- this._endUpdates();
379
- }
380
- }
381
-
382
- /**
383
- * Tells whether the update cycle has time remaining.
384
- *
385
- * @private
386
- * @returns {Boolean}
387
- */
388
- _hasRemainingTime() {
389
- const timePassed = now() - this._cycleStartTime;
390
-
391
- return this._idleTimeout - timePassed > 0;
392
- }
393
-
394
- /**
395
- * Callback which is invoked when update cycle
396
- * is finished. It may start a new cycle if continuous
397
- * updates are enabled.
398
- *
399
- * @private
400
- */
401
- _endUpdates() {
402
- this._isCycleActive = false;
403
-
404
- if (this._isCycleContinuous && this._listenersEnabled) {
405
- this._continuousCycleHandler();
406
- }
407
- }
408
-
409
- /**
410
- * Initializes DOM listeners.
411
- *
412
- * @private
413
- */
414
- _addListeners() {
415
- // Do nothing if listeners have been already added.
416
- if (this._listenersEnabled) {
417
- return;
418
- }
419
-
420
- this._listenersEnabled = true;
421
-
422
- // Repeatable cycle is used here because the resize event may
423
- // lead to continuous changes, e.g. when width or height of an element
424
- // are controlled by CSS transitions.
425
- window.addEventListener('resize', this.runUpdates);
426
-
427
- // Fall back to an infinite cycle.
428
- if (!mutationsSupported) {
429
- this._isCycleContinuous = true;
430
-
431
- this.runUpdates();
432
- } else {
433
- // Subscribe to DOM mutations as they may lead to
434
- // changes in dimensions of elements.
435
- this._mutationsObserver = new MutationObserver(this._onMutation);
436
-
437
- this._mutationsObserver.observe(document, {
438
- attributes: true,
439
- childList: true,
440
- characterData: true,
441
- subtree: true
442
- });
443
- }
444
- }
445
-
446
- /**
447
- * Removes DOM listeners.
448
- *
449
- * @private
450
- */
451
- _removeListeners() {
452
- // Do nothing if listeners have been already removed.
453
- if (!this._listenersEnabled) {
454
- return;
455
- }
456
-
457
- window.removeEventListener('resize', this.runUpdates);
458
-
459
- if (this._mutationsObserver) {
460
- this._mutationsObserver.disconnect();
461
- }
462
-
463
- this._mutationsObserver = null;
464
- this._listenersEnabled = false;
465
- }
466
-
467
- /**
468
- * DOM mutations handler.
469
- *
470
- * @private
471
- * @param {Array<MutationRecord>} entries - An array of mutation records.
472
- */
473
- _onMutation(entries) {
474
- // Check if at least one entry
475
- // contains attributes changes.
476
- const attrsChanged = entries.some(entry => {
477
- return entry.type === 'attributes';
478
- });
479
-
480
- // It's expected that animations may start only
481
- // after some attribute changes its' value.
482
- attrsChanged ?
483
- this.runUpdates() :
484
- this.scheduleUpdate();
485
- }
486
- }
487
-
488
- // Placeholder of a content rectangle.
489
- const emptyRect = {
490
- width: 0,
491
- height: 0,
492
- top: 0,
493
- right: 0,
494
- bottom: 0,
495
- left: 0
496
- };
497
-
498
- /**
499
- * Extracts paddings data from the provided element.
500
- *
501
- * @param {Element} target - Element whose paddings to be extracted.
502
- * @returns {Object} Object that contains
503
- * left, top, right and bottom padding values.
504
- */
505
- function getPaddings(target) {
506
- const styles = window.getComputedStyle(target);
507
- const keys = ['top', 'right', 'bottom', 'left'];
508
-
509
- const paddings = {};
510
-
511
- for (const key of keys) {
512
- const value = styles['padding-' + key].replace('px', '');
513
-
514
- paddings[key] = parseFloat(value);
515
- }
516
-
517
- return paddings;
518
- }
519
-
520
- /**
521
- * Subtracts paddings from provided
522
- * dimensions and creates a content rectangle.
523
- *
524
- * @param {Number} clientWidth - Width including paddings.
525
- * @param {Number} clientHeight - Height including paddings.
526
- * @param {Object} paddings - Paddings data.
527
- * @returns {ClientRect}
528
- */
529
- function createContentRect(clientWidth, clientHeight, paddings) {
530
- const top = paddings.top;
531
- const left = paddings.left;
532
-
533
- const width = clientWidth - (left + paddings.right);
534
- const height = clientHeight - (top + paddings.bottom);
535
-
536
- return {
537
- width,
538
- height,
539
- top,
540
- right: width + left,
541
- bottom: height + top,
542
- left
543
- };
544
- }
545
-
546
- /**
547
- * Calculates content rectangle of provided SVG element.
548
- *
549
- * @param {SVGElement} target - Element whose content
550
- * rectangle needs to be calculated.
551
- * @returns {ClientRect}
552
- */
553
- function getSVGContentRect(target) {
554
- const bbox = target.getBBox();
555
-
556
- return createContentRect(bbox.width, bbox.height, emptyRect);
557
- }
558
-
559
- /**
560
- * Calculates content rectangle of provided HTMLElement.
561
- *
562
- * @param {HTMLElement} target - Element whose content
563
- * rectangle needs to be calculated.
564
- * @returns {ClientRect}
565
- */
566
- function getHTMLElementContentRect(target) {
567
- const width = target.clientWidth;
568
- const height = target.clientHeight;
569
-
570
- // It's not necessary to proceed with calculations
571
- // as it's already known that the rectangle is empty.
572
- if (!width && !height) {
573
- return emptyRect;
574
- }
575
-
576
- return createContentRect(width, height, getPaddings(target));
577
- }
578
-
579
- /**
580
- * Checks whether provided element
581
- * is an instance of SVGElement.
582
- *
583
- * @param {Element} target - Element to be checked.
584
- * @returns {Boolean}
585
- */
586
- function isSVGElement(target) {
587
- return target instanceof window.SVGElement;
588
- }
589
-
590
- /**
591
- * Calculates an appropriate content rectangle
592
- * for provided html or svg element.
593
- *
594
- * @param {Element} target - Element whose content rectangle
595
- * needs to be calculated.
596
- * @returns {ClientRect}
597
- */
598
- function getContentRect(target) {
599
- return isSVGElement(target) ?
600
- getSVGContentRect(target) :
601
- getHTMLElementContentRect(target);
602
- }
603
-
604
- /**
605
- * Class that is responsible for computations of the
606
- * content rectangle of provided DOM element and
607
- * for keeping track of its' changes.
608
- */
609
- class ResizeObservation {
610
- /**
611
- * Creates an instance of ResizeObservation.
612
- *
613
- * @param {Element} target - Element whose content
614
- * rectangle needs to be observed.
615
- */
616
- constructor(target) {
617
- this.target = target;
618
-
619
- // Keeps reference to the last observed content rectangle.
620
- this._contentRect = emptyRect;
621
-
622
- // Broadcasted width of content rectangle.
623
- this.broadcastWidth = 0;
624
-
625
- // Broadcasted height of content rectangle.
626
- this.broadcastHeight = 0;
627
- }
628
-
629
- /**
630
- * Updates 'broadcastWidth' and 'broadcastHeight'
631
- * properties with a data from the corresponding
632
- * properties of the last observed content rectangle.
633
- *
634
- * @returns {ClientRect} Last observed content rectangle.
635
- */
636
- broadcastRect() {
637
- const rect = this._contentRect;
638
-
639
- this.broadcastWidth = rect.width;
640
- this.broadcastHeight = rect.height;
641
-
642
- return rect;
643
- }
644
-
645
- /**
646
- * Updates content rectangle and tells whether its'
647
- * width or height properties have changed since
648
- * the last broadcast.
649
- *
650
- * @returns {Boolean}
651
- */
652
- isActive() {
653
- const rect = getContentRect(this.target);
654
-
655
- this._contentRect = rect;
656
-
657
- return (
658
- rect.width !== this.broadcastWidth ||
659
- rect.height !== this.broadcastHeight
660
- );
661
- }
662
- }
663
-
664
- class ResizeObserverEntry {
665
- /**
666
- * Creates an instance of ResizeObserverEntry.
667
- *
668
- * @param {Element} target - Element that is being observed.
669
- * @param {ClientRect} rectData - Data of the elements' content rectangle.
670
- */
671
- constructor(target, rectData) {
672
- const contentRect = {};
673
-
674
- // According to the specification following properties
675
- // are not writable and in native implementation
676
- // they are also not enumerable.
677
- Object.defineProperties(contentRect, {
678
- width: {value: rectData.width},
679
- height: {value: rectData.height},
680
- top: {value: rectData.top},
681
- right: {value: rectData.right},
682
- bottom: {value: rectData.bottom},
683
- left: {value: rectData.left}
684
- });
685
-
686
- Object.defineProperties(this, {
687
- target: {value: target},
688
- contentRect: {value: contentRect}
689
- });
690
- }
691
- }
692
-
693
- class ResizeObserver$3 {
694
- /**
695
- * Creates a new instance of ResizeObserver.
696
- *
697
- * @param {Function} callback - Callback function which will be invoked
698
- * when one of the observed elements changes its' content rectangle.
699
- * @param {ResizeObsreverController} controller - Controller instance
700
- * which is responsible for the updates of observer.
701
- * @param {ResizeObserver} publicObserver - Reference
702
- * to the public ResizeObserver instance which will be passed
703
- * to callback function.
704
- */
705
- constructor(callback, controller, publicObserver) {
706
- if (typeof callback !== 'function') {
707
- throw new TypeError('The callback provided as parameter 1 is not a function.');
708
- }
709
-
710
- // Reference to the callback function.
711
- this._callback = callback;
712
-
713
- // A registry of ResizeObservation instances.
714
- this._targets = new Map();
715
-
716
- // A collection of resize observations that have detected
717
- // changes in dimensions of elements.
718
- this._activeTargets = [];
719
-
720
- // Reference to associated ResizeObserverController.
721
- this._controller = controller;
722
-
723
- // Public ResizeObserver instance which will be passed
724
- // to callback function.
725
- this._publicObserver = publicObserver;
726
- }
727
-
728
- /**
729
- * Starts observing provided element.
730
- *
731
- * @param {Element} target - Element to be observed.
732
- */
733
- observe(target) {
734
- if (!arguments.length) {
735
- throw new TypeError('1 argument required, but only 0 present.');
736
- }
737
-
738
- if (!(target instanceof Element)) {
739
- throw new TypeError('parameter 1 is not of type "Element".');
740
- }
741
-
742
- const targets = this._targets;
743
-
744
- // Do nothing if element is already being observed.
745
- if (targets.has(target)) {
746
- return;
747
- }
748
-
749
- targets.set(target, new ResizeObservation(target));
750
-
751
- // Add observer to controller
752
- // if it hasn't been connected yet.
753
- if (!this._controller.isConnected(this)) {
754
- this._controller.connect(this);
755
- }
756
-
757
- // Update observations.
758
- this._controller.runUpdates();
759
- }
760
-
761
- /**
762
- * Stops observing provided element.
763
- *
764
- * @param {Element} target - Element to stop observing.
765
- */
766
- unobserve(target) {
767
- if (!arguments.length) {
768
- throw new TypeError('1 argument required, but only 0 present.');
769
- }
770
-
771
- if (!(target instanceof Element)) {
772
- throw new TypeError('parameter 1 is not of type "Element".');
773
- }
774
-
775
- const targets = this._targets;
776
-
777
- // Do nothing if element is not being observed.
778
- if (!targets.has(target)) {
779
- return;
780
- }
781
-
782
- // Remove element and an associated with
783
- // it ResizeObsrvation instance from registry.
784
- targets.delete(target);
785
-
786
- if (!targets.size) {
787
- this.disconnect();
788
- }
789
- }
790
-
791
- /**
792
- * Stops observing all elements and
793
- * clears the observations list.
794
- */
795
- disconnect() {
796
- this.clearActive();
797
- this._targets.clear();
798
-
799
- this._controller.disconnect(this);
800
- }
801
-
802
- /**
803
- * Invokes initial callback function with a list
804
- * of ResizeObserverEntry instances collected from
805
- * active resize observations.
806
- */
807
- broadcastActive() {
808
- if (!this.hasActive()) {
809
- return;
810
- }
811
-
812
- const publicObserver = this._publicObserver;
813
-
814
- const entries = this._activeTargets.map(observation => {
815
- return new ResizeObserverEntry(
816
- observation.target,
817
- observation.broadcastRect()
818
- );
819
- });
820
-
821
- this.clearActive();
822
-
823
- this._callback.call(publicObserver, entries, publicObserver);
824
- }
825
-
826
- /**
827
- * Clears the collection of pending/active observations.
828
- */
829
- clearActive() {
830
- this._activeTargets.splice(0);
831
- }
832
-
833
- /**
834
- * Tells whether the observer has
835
- * pending observations.
836
- *
837
- * @returns {Boolean}
838
- */
839
- hasActive() {
840
- return !!this._activeTargets.length;
841
- }
842
-
843
- /**
844
- * Clears an array of previously collected active observations
845
- * and collects observation instances whose associated element
846
- * has changes in its' content rectangle.
847
- */
848
- gatherActive() {
849
- this.clearActive();
850
-
851
- const activeTargets = this._activeTargets;
852
-
853
- this._targets.forEach(observation => {
854
- if (observation.isActive()) {
855
- activeTargets.push(observation);
856
- }
857
- });
858
- }
859
- }
860
-
861
- // Controller which will be assigned to all instances of ResizeObserver.
862
- const controller = new ResizeObserverController();
863
-
864
- // Registry of internal observers.
865
- const observers = new WeakMap();
866
-
867
- /**
868
- * ResizeObservers' "Proxy" class which is meant to hide private
869
- * properties and methods from public instances.
870
- *
871
- * Additionally it implements "idleTimeout" and "continuousUpdates" static property
872
- * accessors to give a control over the behavior of ResizeObserverController
873
- * instance. Changes made to these properties will affect all future and
874
- * existing observers.
875
- */
876
- class ResizeObserver$2 {
877
- /**
878
- * Creates a new instance of ResizeObserver.
879
- *
880
- * @param {Function} callback - Callback which will
881
- * be invoked when dimensions of one of the
882
- * observed elements have been changed.
883
- */
884
- constructor(callback) {
885
- if (!arguments.length) {
886
- throw new TypeError('1 argument required, but only 0 present.');
887
- }
888
-
889
- const observer = new ResizeObserver$3(callback, controller, this);
890
-
891
- // Register an internal observer.
892
- observers.set(this, observer);
893
- }
894
-
895
- /**
896
- * Extracts controllers' idle timeout value.
897
- *
898
- * @returns {Number}
899
- */
900
- static get idleTimeout() {
901
- return controller.idleTimeout;
902
- }
903
-
904
- /**
905
- * Sets up new idle timeout.
906
- *
907
- * @param {Number} value - New timeout value.
908
- */
909
- static set idleTimeout(value) {
910
- if (typeof value !== 'number') {
911
- throw new TypeError('type of "idleTimeout" value must be a number.');
912
- }
913
-
914
- if (typeof value < 0) {
915
- throw new TypeError('"idleTimeout" value must be greater than 0.');
916
- }
917
-
918
- controller.idleTimeout = value;
919
- }
920
-
921
- /**
922
- * Tells whether continuous updates are enabled.
923
- *
924
- * @returns {Boolean}
925
- */
926
- static get continuousUpdates() {
927
- return controller.continuousUpdates;
928
- }
929
-
930
- /**
931
- * Enables or disables continuous updates.
932
- *
933
- * @param {Boolean} value - Whether to enable or disable
934
- * continuous updates.
935
- */
936
- static set continuousUpdates(value) {
937
- if (typeof value !== 'boolean') {
938
- throw new TypeError('type of "continuousUpdates" value must be a boolean.');
939
- }
940
-
941
- controller.continuousUpdates = value;
942
- }
943
- }
944
-
945
- // Expose public methods of ResizeObserver.
946
- [
947
- 'observe',
948
- 'unobserve',
949
- 'disconnect'
950
- ].forEach(method => {
951
- ResizeObserver$2.prototype[method] = function () {
952
- return observers.get(this)[method](...arguments);
953
- };
954
- });
955
-
956
- let ResizeObserver = ResizeObserver$2;
957
-
958
- // Export existing implementation if it's available.
959
- if (typeof window.ResizeObserver === 'function') {
960
- ResizeObserver = window.ResizeObserver;
961
- }
962
-
963
- const ResizeObserver$1 = ResizeObserver;
964
-
965
- export { ResizeObserver$1 as R };