@itcenteratunihelsinki/huds-lib 0.8.72 → 0.8.74

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 (1322) hide show
  1. package/components/ResizeObserver.es.js +928 -0
  2. package/components/accordion-container.js +40 -41
  3. package/components/accordion-item.js +217 -218
  4. package/components/cta-button.js +48 -49
  5. package/components/cta-link.js +41 -42
  6. package/components/globalScript.js +2 -18
  7. package/components/heading.js +69 -69
  8. package/components/hy-accordion-container.d.ts +2 -2
  9. package/components/hy-accordion-container.js +0 -2
  10. package/components/hy-accordion-item.d.ts +2 -2
  11. package/components/hy-accordion-item.js +0 -2
  12. package/components/hy-adjacent-image-text.d.ts +2 -2
  13. package/components/hy-adjacent-image-text.js +91 -92
  14. package/components/hy-anchor-link-list.d.ts +2 -2
  15. package/components/hy-anchor-link-list.js +63 -64
  16. package/components/hy-badge.d.ts +2 -2
  17. package/components/hy-badge.js +27 -28
  18. package/components/hy-banner.d.ts +2 -2
  19. package/components/hy-banner.js +78 -79
  20. package/components/hy-box.d.ts +2 -2
  21. package/components/hy-box.js +0 -2
  22. package/components/hy-box2.js +95 -96
  23. package/components/hy-breadcrumbs.d.ts +2 -2
  24. package/components/hy-breadcrumbs.js +55 -56
  25. package/components/hy-checkbox.d.ts +2 -2
  26. package/components/hy-checkbox.js +42 -43
  27. package/components/hy-collaboration.d.ts +2 -2
  28. package/components/hy-collaboration.js +38 -39
  29. package/components/hy-content-list-item.d.ts +2 -2
  30. package/components/hy-content-list-item.js +0 -2
  31. package/components/hy-content-list-item2.js +95 -96
  32. package/components/hy-content-list.d.ts +2 -2
  33. package/components/hy-content-list.js +131 -130
  34. package/components/hy-crisis-banner.d.ts +2 -2
  35. package/components/hy-crisis-banner.js +36 -37
  36. package/components/hy-cta-button.d.ts +2 -2
  37. package/components/hy-cta-button.js +0 -2
  38. package/components/hy-cta-link.d.ts +2 -2
  39. package/components/hy-cta-link.js +0 -2
  40. package/components/hy-dropdown.d.ts +2 -2
  41. package/components/hy-dropdown.js +231 -230
  42. package/components/hy-event-item.d.ts +2 -2
  43. package/components/hy-event-item.js +61 -62
  44. package/components/hy-events.d.ts +2 -2
  45. package/components/hy-events.js +112 -111
  46. package/components/hy-filter-group-item.d.ts +2 -2
  47. package/components/hy-filter-group-item.js +0 -2
  48. package/components/hy-filter-group.d.ts +2 -2
  49. package/components/hy-filter-group.item.js +30 -32
  50. package/components/hy-filter-group.js +55 -54
  51. package/components/hy-filter-list-type.d.ts +2 -2
  52. package/components/hy-filter-list-type.js +40 -41
  53. package/components/hy-filter-visibility-tool-reset.d.ts +2 -2
  54. package/components/hy-filter-visibility-tool-reset.js +0 -2
  55. package/components/hy-filter-visibility-tool-toggle.d.ts +2 -2
  56. package/components/hy-filter-visibility-tool-toggle.js +0 -2
  57. package/components/hy-filter-visibility-tool.d.ts +2 -2
  58. package/components/hy-filter-visibility-tool.js +44 -45
  59. package/components/hy-filter-visibility-tool.reset.js +25 -27
  60. package/components/hy-filter-visibility-tool.reset.toggle.js +25 -27
  61. package/components/hy-footer-action.d.ts +2 -2
  62. package/components/hy-footer-action.js +43 -44
  63. package/components/hy-footer-base.d.ts +2 -2
  64. package/components/hy-footer-base.js +79 -80
  65. package/components/hy-footer-info.d.ts +2 -2
  66. package/components/hy-footer-info.js +147 -148
  67. package/components/hy-footer-link-item.d.ts +2 -2
  68. package/components/hy-footer-link-item.js +0 -2
  69. package/components/hy-footer-link-item2.js +87 -88
  70. package/components/hy-footer.d.ts +2 -2
  71. package/components/hy-footer.js +23 -24
  72. package/components/hy-general-list-item.d.ts +2 -2
  73. package/components/hy-general-list-item.js +0 -2
  74. package/components/hy-general-list-item2.js +67 -68
  75. package/components/hy-general-list.d.ts +2 -2
  76. package/components/hy-general-list.js +74 -73
  77. package/components/hy-heading.d.ts +2 -2
  78. package/components/hy-heading.js +0 -2
  79. package/components/hy-hero-carousel.d.ts +2 -2
  80. package/components/hy-hero-carousel.js +1116 -588
  81. package/components/hy-hero.d.ts +2 -2
  82. package/components/hy-hero.js +113 -154
  83. package/components/hy-icon.d.ts +2 -2
  84. package/components/hy-icon.js +0 -2
  85. package/components/hy-image.d.ts +2 -2
  86. package/components/hy-image.js +0 -2
  87. package/components/hy-ingress.d.ts +2 -2
  88. package/components/hy-ingress.js +34 -35
  89. package/components/hy-introduction.d.ts +2 -2
  90. package/components/hy-introduction.js +101 -102
  91. package/components/hy-key-figure-group.d.ts +2 -2
  92. package/components/hy-key-figure-group.js +85 -86
  93. package/components/hy-key-figure.d.ts +2 -2
  94. package/components/hy-key-figure.js +0 -2
  95. package/components/hy-key-figure2.js +31 -32
  96. package/components/hy-key-highlight-group.d.ts +2 -2
  97. package/components/hy-key-highlight-group.js +55 -56
  98. package/components/hy-key-highlight.d.ts +2 -2
  99. package/components/hy-key-highlight.js +0 -2
  100. package/components/hy-key-highlight2.js +31 -32
  101. package/components/hy-large-process-flow-phase.d.ts +2 -2
  102. package/components/hy-large-process-flow-phase.js +0 -2
  103. package/components/hy-large-process-flow-phase2.js +53 -54
  104. package/components/hy-large-process-flow.d.ts +2 -2
  105. package/components/hy-large-process-flow.js +67 -68
  106. package/components/hy-link-box-list.d.ts +2 -2
  107. package/components/hy-link-box-list.js +76 -77
  108. package/components/hy-link-box.d.ts +2 -2
  109. package/components/hy-link-box.js +0 -2
  110. package/components/hy-link-list.d.ts +2 -2
  111. package/components/hy-link-list.js +61 -62
  112. package/components/hy-link.d.ts +2 -2
  113. package/components/hy-link.js +35 -36
  114. package/components/hy-list-item.d.ts +2 -2
  115. package/components/hy-list-item.js +268 -265
  116. package/components/hy-logo-grid-item.d.ts +2 -2
  117. package/components/hy-logo-grid-item.js +38 -39
  118. package/components/hy-logo-grid.d.ts +2 -2
  119. package/components/hy-logo-grid.js +28 -29
  120. package/components/hy-main-content-wrapper.d.ts +2 -2
  121. package/components/hy-main-content-wrapper.js +0 -2
  122. package/components/hy-main-content-wrapper2.js +23 -24
  123. package/components/hy-main.d.ts +2 -2
  124. package/components/hy-main.js +30 -31
  125. package/components/hy-menu-language-item.d.ts +2 -2
  126. package/components/hy-menu-language-item.js +0 -2
  127. package/components/hy-menu-language.d.ts +2 -2
  128. package/components/hy-menu-language.js +0 -2
  129. package/components/hy-menu-main-group.d.ts +2 -2
  130. package/components/hy-menu-main-group.js +0 -2
  131. package/components/hy-menu-main-group2.js +165 -166
  132. package/components/hy-opening-hours-content.d.ts +2 -2
  133. package/components/hy-opening-hours-content.js +54 -53
  134. package/components/hy-opening-hours.d.ts +2 -2
  135. package/components/hy-opening-hours.js +76 -77
  136. package/components/hy-pager-item.d.ts +2 -2
  137. package/components/hy-pager-item.js +60 -61
  138. package/components/hy-pager.d.ts +2 -2
  139. package/components/hy-pager.js +24 -25
  140. package/components/hy-paragraph-text.d.ts +2 -2
  141. package/components/hy-paragraph-text.js +0 -2
  142. package/components/hy-person-card.d.ts +2 -2
  143. package/components/hy-person-card.js +123 -124
  144. package/components/hy-person-profile-listing.d.ts +2 -2
  145. package/components/hy-person-profile-listing.js +0 -2
  146. package/components/hy-person-profile.d.ts +2 -2
  147. package/components/hy-person-profile.js +120 -121
  148. package/components/hy-process-flow-box.d.ts +2 -2
  149. package/components/hy-process-flow-box.js +0 -2
  150. package/components/hy-process.d.ts +2 -2
  151. package/components/hy-process.js +74 -75
  152. package/components/hy-prominent-image.d.ts +2 -2
  153. package/components/hy-prominent-image.js +58 -59
  154. package/components/hy-quote.d.ts +2 -2
  155. package/components/hy-quote.js +42 -43
  156. package/components/hy-row.d.ts +2 -2
  157. package/components/hy-row.js +31 -32
  158. package/components/hy-search-field.d.ts +2 -2
  159. package/components/hy-search-field.js +0 -2
  160. package/components/hy-search-field2.js +73 -74
  161. package/components/hy-section-container.d.ts +2 -2
  162. package/components/hy-section-container.js +22 -23
  163. package/components/hy-shortcuts.d.ts +2 -2
  164. package/components/hy-shortcuts.js +81 -80
  165. package/components/hy-site-header.d.ts +2 -2
  166. package/components/hy-site-header.js +331 -332
  167. package/components/hy-site-logo.d.ts +2 -2
  168. package/components/hy-site-logo.js +0 -2
  169. package/components/hy-site-search.d.ts +2 -2
  170. package/components/hy-site-search.js +0 -2
  171. package/components/hy-table-container.d.ts +2 -2
  172. package/components/hy-table-container.js +28 -29
  173. package/components/hy-tabs-item.d.ts +2 -2
  174. package/components/hy-tabs-item.js +0 -2
  175. package/components/hy-tabs-item2.js +26 -27
  176. package/components/hy-tabs.d.ts +2 -2
  177. package/components/hy-tabs.js +0 -2
  178. package/components/hy-tabs2.js +306 -307
  179. package/components/hy-tag.d.ts +2 -2
  180. package/components/hy-tag.js +0 -2
  181. package/components/hy-tag2.js +24 -25
  182. package/components/hy-tiny-text.d.ts +2 -2
  183. package/components/hy-tiny-text.js +24 -25
  184. package/components/hy-twitter-feed.d.ts +2 -2
  185. package/components/hy-twitter-feed.js +45 -46
  186. package/components/hy-two-columns.d.ts +2 -2
  187. package/components/hy-two-columns.js +26 -27
  188. package/components/hy-user-login-form.d.ts +2 -2
  189. package/components/hy-user-login-form.js +40 -41
  190. package/components/hy-video.d.ts +2 -2
  191. package/components/hy-video.js +139 -140
  192. package/components/icon.js +440 -440
  193. package/components/image.js +73 -72
  194. package/components/index.d.ts +6 -0
  195. package/components/{emotion.esm.js → index.esm.js} +496 -657
  196. package/components/index.js +2 -4
  197. package/components/index2.js +168 -963
  198. package/components/index3.js +1545 -0
  199. package/components/link-box.js +107 -106
  200. package/components/menu-language-item.js +40 -41
  201. package/components/menu-language.js +110 -111
  202. package/components/paragraph-text.js +50 -49
  203. package/components/person-profile.listing.js +48 -49
  204. package/components/process-flow-box.js +48 -49
  205. package/components/site-logo.js +50 -51
  206. package/components/site-search.js +164 -165
  207. package/components/utils.js +101 -103
  208. package/dist/cjs/ResizeObserver.es-c9ba881e.js +930 -0
  209. package/dist/cjs/app-globals-696184cf.js +7 -0
  210. package/dist/cjs/{globalScript-9994473d.js → globalScript-eba122a0.js} +12 -12
  211. package/dist/cjs/huds-lib.cjs.js +14 -17
  212. package/dist/cjs/hy-accordion-container_2.cjs.entry.js +213 -213
  213. package/dist/cjs/hy-adjacent-image-text.cjs.entry.js +48 -49
  214. package/dist/cjs/hy-anchor-link-list.cjs.entry.js +40 -41
  215. package/dist/cjs/hy-badge.cjs.entry.js +11 -12
  216. package/dist/cjs/hy-banner.cjs.entry.js +38 -39
  217. package/dist/cjs/hy-box.cjs.entry.js +64 -65
  218. package/dist/cjs/hy-breadcrumbs_15.cjs.entry.js +853 -839
  219. package/dist/cjs/hy-checkbox.cjs.entry.js +19 -20
  220. package/dist/cjs/hy-collaboration.cjs.entry.js +14 -15
  221. package/dist/cjs/hy-content-list_2.cjs.entry.js +148 -148
  222. package/dist/cjs/hy-crisis-banner.cjs.entry.js +13 -14
  223. package/dist/cjs/hy-cta-button.cjs.entry.js +23 -24
  224. package/dist/cjs/hy-cta-link.cjs.entry.js +18 -19
  225. package/dist/cjs/hy-dropdown.cjs.entry.js +199 -200
  226. package/dist/cjs/hy-event-item.cjs.entry.js +32 -33
  227. package/dist/cjs/hy-events.cjs.entry.js +80 -81
  228. package/dist/cjs/hy-filter-group_6.cjs.entry.js +79 -78
  229. package/dist/cjs/hy-general-list_2.cjs.entry.js +82 -82
  230. package/dist/cjs/hy-hero-carousel.cjs.entry.js +1086 -558
  231. package/dist/cjs/hy-hero.cjs.entry.js +67 -108
  232. package/dist/cjs/hy-icon.cjs.entry.js +422 -423
  233. package/dist/cjs/hy-image.cjs.entry.js +44 -45
  234. package/dist/cjs/hy-introduction.cjs.entry.js +50 -51
  235. package/dist/cjs/hy-key-figure_2.cjs.entry.js +73 -73
  236. package/dist/cjs/hy-key-highlight_2.cjs.entry.js +46 -46
  237. package/dist/cjs/hy-large-process-flow_2.cjs.entry.js +58 -58
  238. package/dist/cjs/hy-link-box_2.cjs.entry.js +116 -116
  239. package/dist/cjs/hy-link-list.cjs.entry.js +34 -35
  240. package/dist/cjs/hy-link.cjs.entry.js +17 -18
  241. package/dist/cjs/hy-list-item.cjs.entry.js +224 -225
  242. package/dist/cjs/hy-logo-grid_2.cjs.entry.js +33 -33
  243. package/dist/cjs/hy-main.cjs.entry.js +15 -16
  244. package/dist/cjs/hy-menu-main-group.cjs.entry.js +132 -133
  245. package/dist/cjs/hy-opening-hours_2.cjs.entry.js +65 -65
  246. package/dist/cjs/hy-pager_2.cjs.entry.js +46 -46
  247. package/dist/cjs/hy-paragraph-text.cjs.entry.js +31 -30
  248. package/dist/cjs/hy-person-card.cjs.entry.js +83 -84
  249. package/dist/cjs/hy-person-profile-listing.cjs.entry.js +23 -24
  250. package/dist/cjs/hy-person-profile.cjs.entry.js +59 -60
  251. package/dist/cjs/hy-process_2.cjs.entry.js +68 -68
  252. package/dist/cjs/hy-prominent-image.cjs.entry.js +28 -29
  253. package/dist/cjs/hy-quote.cjs.entry.js +20 -21
  254. package/dist/cjs/hy-row.cjs.entry.js +14 -15
  255. package/dist/cjs/hy-section-container.cjs.entry.js +9 -10
  256. package/dist/cjs/hy-shortcuts.cjs.entry.js +48 -49
  257. package/dist/cjs/hy-table-container.cjs.entry.js +10 -11
  258. package/dist/cjs/hy-tabs_2.cjs.entry.js +284 -284
  259. package/dist/cjs/hy-tag.cjs.entry.js +10 -11
  260. package/dist/cjs/hy-tiny-text.cjs.entry.js +10 -11
  261. package/dist/cjs/hy-twitter-feed.cjs.entry.js +21 -22
  262. package/dist/cjs/hy-two-columns.cjs.entry.js +11 -12
  263. package/dist/cjs/hy-user-login-form.cjs.entry.js +15 -16
  264. package/dist/cjs/hy-video.cjs.entry.js +87 -88
  265. package/dist/cjs/index-579f8aa3.js +1740 -0
  266. package/dist/cjs/index.cjs.js +0 -2
  267. package/dist/cjs/{emotion.esm-aef96835.js → index.esm-2f7250e0.js} +496 -657
  268. package/dist/cjs/loader.cjs.js +7 -16
  269. package/dist/cjs/utils-8e26d681.js +193 -0
  270. package/dist/collection/collection-manifest.json +87 -87
  271. package/dist/collection/components/footer/hy-footer/hy-footer.js +15 -16
  272. package/dist/collection/components/footer/hy-footer-action/hy-footer-action.js +76 -77
  273. package/dist/collection/components/footer/hy-footer-base/hy-footer-base.js +231 -227
  274. package/dist/collection/components/footer/hy-footer-info/hy-footer-info.js +327 -326
  275. package/dist/collection/components/footer/hy-footer-link-item/hy-footer-link-item.js +236 -234
  276. package/dist/collection/components/global-workers/globals.worker.js +0 -1
  277. package/dist/collection/components/hy-accordion-container/accordion-container.js +48 -49
  278. package/dist/collection/components/hy-accordion-item/accordion-item.js +306 -306
  279. package/dist/collection/components/hy-adjacent-image-text/adjacent-image-text.js +325 -325
  280. package/dist/collection/components/hy-anchor-link-list/hy-anchor-link-list.js +137 -137
  281. package/dist/collection/components/hy-badge/hy-badge.js +41 -42
  282. package/dist/collection/components/hy-banner/hy-banner.js +170 -171
  283. package/dist/collection/components/hy-box/hy-box.js +369 -370
  284. package/dist/collection/components/hy-breadcrumbs/hy-breadcrumbs.js +111 -110
  285. package/dist/collection/components/hy-checkbox/hy-checkbox.js +121 -121
  286. package/dist/collection/components/hy-collaboration/hy-collaboration.js +110 -111
  287. package/dist/collection/components/hy-content-lists/hy-content-list/hy-content-list.js +241 -241
  288. package/dist/collection/components/hy-content-lists/hy-content-list-item/hy-content-list-item.js +367 -365
  289. package/dist/collection/components/hy-crisis-banner/hy-crisis-banner.js +92 -93
  290. package/dist/collection/components/hy-cta-button/cta-button.js +162 -162
  291. package/dist/collection/components/hy-cta-link/cta-link.js +121 -121
  292. package/dist/collection/components/hy-dropdown/hy-dropdown.js +432 -432
  293. package/dist/collection/components/hy-event-item/hy-event-item.js +207 -208
  294. package/dist/collection/components/hy-events/hy-events.js +203 -204
  295. package/dist/collection/components/hy-filter-group/hy-filter-group.item.js +46 -47
  296. package/dist/collection/components/hy-filter-group/hy-filter-group.js +80 -80
  297. package/dist/collection/components/hy-filter-list-type/hy-filter-list-type.js +64 -65
  298. package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.js +42 -43
  299. package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.reset.js +4 -5
  300. package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.reset.toggle.js +4 -5
  301. package/dist/collection/components/hy-general-list/hy-general-list.js +161 -160
  302. package/dist/collection/components/hy-general-list-item/hy-general-list-item.js +296 -297
  303. package/dist/collection/components/hy-heading/heading.js +186 -185
  304. package/dist/collection/components/hy-hero/hy-hero.css +17 -1
  305. package/dist/collection/components/hy-hero/hy-hero.js +442 -477
  306. package/dist/collection/components/hy-hero-carousel/hy-hero-carousel.js +213 -212
  307. package/dist/collection/components/hy-icon/AddToTodoList.js +1 -2
  308. package/dist/collection/components/hy-icon/Alert.js +1 -2
  309. package/dist/collection/components/hy-icon/Archive.js +1 -2
  310. package/dist/collection/components/hy-icon/Arrow.js +1 -2
  311. package/dist/collection/components/hy-icon/ArrowDown.js +1 -2
  312. package/dist/collection/components/hy-icon/ArrowRight.js +1 -2
  313. package/dist/collection/components/hy-icon/ArrowUp.js +1 -2
  314. package/dist/collection/components/hy-icon/Avatar.js +1 -2
  315. package/dist/collection/components/hy-icon/AvatarGroup.js +1 -2
  316. package/dist/collection/components/hy-icon/Bachelor.js +1 -2
  317. package/dist/collection/components/hy-icon/BulletList.js +1 -2
  318. package/dist/collection/components/hy-icon/Camera.js +1 -2
  319. package/dist/collection/components/hy-icon/CaretDown.js +1 -2
  320. package/dist/collection/components/hy-icon/CaretLeft.js +1 -2
  321. package/dist/collection/components/hy-icon/CaretRight.js +1 -2
  322. package/dist/collection/components/hy-icon/CaretUp.js +1 -2
  323. package/dist/collection/components/hy-icon/Chat.js +1 -2
  324. package/dist/collection/components/hy-icon/CodeFork.js +1 -2
  325. package/dist/collection/components/hy-icon/Cogs.js +1 -2
  326. package/dist/collection/components/hy-icon/Contentlink.js +1 -2
  327. package/dist/collection/components/hy-icon/Customlink.js +1 -2
  328. package/dist/collection/components/hy-icon/Date.js +1 -2
  329. package/dist/collection/components/hy-icon/Discover.js +1 -2
  330. package/dist/collection/components/hy-icon/Done.js +1 -2
  331. package/dist/collection/components/hy-icon/Dot.js +1 -2
  332. package/dist/collection/components/hy-icon/DotArrowRight.js +1 -2
  333. package/dist/collection/components/hy-icon/Download.js +1 -2
  334. package/dist/collection/components/hy-icon/Drag.js +1 -2
  335. package/dist/collection/components/hy-icon/Dragbutton.js +1 -2
  336. package/dist/collection/components/hy-icon/DropDown.js +1 -2
  337. package/dist/collection/components/hy-icon/Edit.js +1 -2
  338. package/dist/collection/components/hy-icon/EditEvent.js +1 -2
  339. package/dist/collection/components/hy-icon/Embed.js +1 -2
  340. package/dist/collection/components/hy-icon/Euro.js +1 -2
  341. package/dist/collection/components/hy-icon/Events.js +1 -2
  342. package/dist/collection/components/hy-icon/ExternalLink.js +1 -2
  343. package/dist/collection/components/hy-icon/EyeSlash.js +1 -2
  344. package/dist/collection/components/hy-icon/Facebook.js +1 -2
  345. package/dist/collection/components/hy-icon/Favorites.js +1 -2
  346. package/dist/collection/components/hy-icon/Feed.js +1 -2
  347. package/dist/collection/components/hy-icon/FileText.js +1 -2
  348. package/dist/collection/components/hy-icon/FullScreen.js +1 -2
  349. package/dist/collection/components/hy-icon/Globe.js +1 -2
  350. package/dist/collection/components/hy-icon/GooglePlus.js +1 -2
  351. package/dist/collection/components/hy-icon/Grid.js +1 -2
  352. package/dist/collection/components/hy-icon/Hamburger.js +1 -2
  353. package/dist/collection/components/hy-icon/Heart.js +1 -2
  354. package/dist/collection/components/hy-icon/HeartSupport.js +1 -2
  355. package/dist/collection/components/hy-icon/Helsinginyliopisto.js +1 -2
  356. package/dist/collection/components/hy-icon/Home.js +1 -2
  357. package/dist/collection/components/hy-icon/HorizontalResize.js +1 -2
  358. package/dist/collection/components/hy-icon/HyLogo.js +1 -2
  359. package/dist/collection/components/hy-icon/IdNumber.js +1 -2
  360. package/dist/collection/components/hy-icon/Image.js +1 -2
  361. package/dist/collection/components/hy-icon/ImageGallery.js +1 -2
  362. package/dist/collection/components/hy-icon/Images.js +1 -2
  363. package/dist/collection/components/hy-icon/Info.js +1 -2
  364. package/dist/collection/components/hy-icon/InfoStroke.js +1 -2
  365. package/dist/collection/components/hy-icon/Instagram.js +1 -2
  366. package/dist/collection/components/hy-icon/LeikiList.js +1 -2
  367. package/dist/collection/components/hy-icon/LinkArrow.js +1 -2
  368. package/dist/collection/components/hy-icon/LinkArrow1.js +1 -2
  369. package/dist/collection/components/hy-icon/LinkArrowDown.js +1 -2
  370. package/dist/collection/components/hy-icon/LinkArrowLeft.js +1 -2
  371. package/dist/collection/components/hy-icon/LinkArrowOffsite.js +1 -2
  372. package/dist/collection/components/hy-icon/LinkArrowUp.js +1 -2
  373. package/dist/collection/components/hy-icon/Linkedin.js +1 -2
  374. package/dist/collection/components/hy-icon/List.js +1 -2
  375. package/dist/collection/components/hy-icon/ListAsBlocks.js +1 -2
  376. package/dist/collection/components/hy-icon/ListStyleGrid.js +1 -2
  377. package/dist/collection/components/hy-icon/ListStyleList.js +1 -2
  378. package/dist/collection/components/hy-icon/Listoflinks.js +1 -2
  379. package/dist/collection/components/hy-icon/Location.js +1 -2
  380. package/dist/collection/components/hy-icon/Log.js +1 -2
  381. package/dist/collection/components/hy-icon/Login.js +1 -2
  382. package/dist/collection/components/hy-icon/Logout.js +1 -2
  383. package/dist/collection/components/hy-icon/MagnifyMinus.js +1 -2
  384. package/dist/collection/components/hy-icon/MagnifyPlus.js +1 -2
  385. package/dist/collection/components/hy-icon/Mail.js +1 -2
  386. package/dist/collection/components/hy-icon/Master.js +1 -2
  387. package/dist/collection/components/hy-icon/Minus.js +1 -2
  388. package/dist/collection/components/hy-icon/Mobile.js +1 -2
  389. package/dist/collection/components/hy-icon/Modify.js +1 -2
  390. package/dist/collection/components/hy-icon/NaviTriangle.js +1 -2
  391. package/dist/collection/components/hy-icon/NewGroup.js +1 -2
  392. package/dist/collection/components/hy-icon/NewPerson.js +1 -2
  393. package/dist/collection/components/hy-icon/Notification.js +1 -2
  394. package/dist/collection/components/hy-icon/OpinderLogo.js +1 -2
  395. package/dist/collection/components/hy-icon/OpinderLogoNew.js +1 -2
  396. package/dist/collection/components/hy-icon/Pdf.js +1 -2
  397. package/dist/collection/components/hy-icon/People.js +1 -2
  398. package/dist/collection/components/hy-icon/PermissionAll.js +1 -2
  399. package/dist/collection/components/hy-icon/PermissionGroup.js +1 -2
  400. package/dist/collection/components/hy-icon/PermissionPrivate.js +1 -2
  401. package/dist/collection/components/hy-icon/Person.js +1 -2
  402. package/dist/collection/components/hy-icon/PersonOutline.js +1 -2
  403. package/dist/collection/components/hy-icon/Phone.js +1 -2
  404. package/dist/collection/components/hy-icon/Play.js +1 -2
  405. package/dist/collection/components/hy-icon/Plus.js +1 -2
  406. package/dist/collection/components/hy-icon/Preview.js +1 -2
  407. package/dist/collection/components/hy-icon/Profile.js +1 -2
  408. package/dist/collection/components/hy-icon/Question.js +1 -2
  409. package/dist/collection/components/hy-icon/Remove.js +1 -2
  410. package/dist/collection/components/hy-icon/Retweet.js +1 -2
  411. package/dist/collection/components/hy-icon/RotateLeft.js +1 -2
  412. package/dist/collection/components/hy-icon/RotateRight.js +1 -2
  413. package/dist/collection/components/hy-icon/Search.js +1 -2
  414. package/dist/collection/components/hy-icon/Share.js +1 -2
  415. package/dist/collection/components/hy-icon/SlimHamburgerMenu.js +1 -2
  416. package/dist/collection/components/hy-icon/SocialMedia.js +1 -2
  417. package/dist/collection/components/hy-icon/SomeFacebook.js +1 -2
  418. package/dist/collection/components/hy-icon/SomeInstagram.js +1 -2
  419. package/dist/collection/components/hy-icon/SomeLinkedin.js +1 -2
  420. package/dist/collection/components/hy-icon/SomeTwitter.js +1 -2
  421. package/dist/collection/components/hy-icon/SomeYoutube.js +1 -2
  422. package/dist/collection/components/hy-icon/Spinner.js +1 -2
  423. package/dist/collection/components/hy-icon/Square.js +1 -2
  424. package/dist/collection/components/hy-icon/SquareChecked.js +1 -2
  425. package/dist/collection/components/hy-icon/Time.js +1 -2
  426. package/dist/collection/components/hy-icon/TodoList.js +1 -2
  427. package/dist/collection/components/hy-icon/Tour.js +1 -2
  428. package/dist/collection/components/hy-icon/Twitter.js +1 -2
  429. package/dist/collection/components/hy-icon/TwitterLike.js +1 -2
  430. package/dist/collection/components/hy-icon/UnitsAndFaculties.js +1 -2
  431. package/dist/collection/components/hy-icon/Url.js +1 -2
  432. package/dist/collection/components/hy-icon/Video.js +1 -2
  433. package/dist/collection/components/hy-icon/Warning.js +1 -2
  434. package/dist/collection/components/hy-icon/Wrench.js +1 -2
  435. package/dist/collection/components/hy-icon/Youtube.js +1 -2
  436. package/dist/collection/components/hy-icon/allIcons.js +0 -1
  437. package/dist/collection/components/hy-icon/icon.js +209 -210
  438. package/dist/collection/components/hy-icon/icons.js +4 -5
  439. package/dist/collection/components/hy-image/image.js +212 -211
  440. package/dist/collection/components/hy-ingress/ingress.js +48 -49
  441. package/dist/collection/components/hy-introduction/hy-introduction.js +298 -297
  442. package/dist/collection/components/hy-key-figure/hy-key-figure.js +82 -82
  443. package/dist/collection/components/hy-key-figure-group/hy-key-figure-group.js +109 -109
  444. package/dist/collection/components/hy-key-highlight/hy-key-highlight.js +82 -82
  445. package/dist/collection/components/hy-key-highlight-group/hy-key-highlight-group.js +107 -106
  446. package/dist/collection/components/hy-large-process-flow/hy-large-process-flow.js +82 -82
  447. package/dist/collection/components/hy-large-process-flow-phase/hy-large-process-flow-phase.js +61 -61
  448. package/dist/collection/components/hy-link/link.js +120 -120
  449. package/dist/collection/components/hy-link-box/link-box.js +343 -342
  450. package/dist/collection/components/hy-link-box-list/link-box-list.js +134 -133
  451. package/dist/collection/components/hy-link-list/hy-link-list.js +136 -136
  452. package/dist/collection/components/hy-list-item/hy-list-item.js +614 -611
  453. package/dist/collection/components/hy-logo-grid/hy-logo-grid.item.js +67 -68
  454. package/dist/collection/components/hy-logo-grid/hy-logo-grid.js +57 -58
  455. package/dist/collection/components/hy-main/hy-main.js +44 -45
  456. package/dist/collection/components/hy-main-content-wrapper/hy-main-content-wrapper.js +15 -16
  457. package/dist/collection/components/hy-navigation/hy-menu-main-group/hy-menu-main-group.js +392 -391
  458. package/dist/collection/components/hy-navigation/menu-language/menu-language.js +218 -217
  459. package/dist/collection/components/hy-navigation/menu-language-item/menu-language-item.js +135 -136
  460. package/dist/collection/components/hy-opening-hours/hy-opening-hours.js +323 -324
  461. package/dist/collection/components/hy-opening-hours-content/hy-opening-hours-content.js +124 -124
  462. package/dist/collection/components/hy-pagination/hy-pager/hy-pager.js +16 -17
  463. package/dist/collection/components/hy-pagination/hy-pager-item/hy-pager-item.js +122 -122
  464. package/dist/collection/components/hy-paragraph-text/paragraph-text.js +95 -96
  465. package/dist/collection/components/hy-person-card/hy-person-card.js +470 -470
  466. package/dist/collection/components/hy-person-profile/person-profile-listing/person-profile.listing.js +141 -141
  467. package/dist/collection/components/hy-person-profile/person-profile.js +177 -178
  468. package/dist/collection/components/hy-process/process.js +115 -115
  469. package/dist/collection/components/hy-process-flow-box/process-flow-box.js +166 -165
  470. package/dist/collection/components/hy-prominent-image/hy-prominent-image.js +132 -132
  471. package/dist/collection/components/hy-quote/hy-quote.js +67 -68
  472. package/dist/collection/components/hy-row/row.js +78 -79
  473. package/dist/collection/components/hy-search-field/hy-search-field.js +237 -238
  474. package/dist/collection/components/hy-section-container/section-container.js +14 -15
  475. package/dist/collection/components/hy-shortcuts/hy-shortcuts.js +119 -119
  476. package/dist/collection/components/hy-site-header/site-header.js +756 -754
  477. package/dist/collection/components/hy-site-header/site-logo/site-logo.js +176 -174
  478. package/dist/collection/components/hy-site-header/site-search/site-search.js +425 -424
  479. package/dist/collection/components/hy-table-container/hy-table-container.js +15 -16
  480. package/dist/collection/components/hy-tabs/hy-tabs.js +371 -372
  481. package/dist/collection/components/hy-tabs-item/hy-tabs-item.js +39 -40
  482. package/dist/collection/components/hy-tag/hy-tag.js +16 -17
  483. package/dist/collection/components/hy-tiny-text/tiny-text.js +16 -17
  484. package/dist/collection/components/hy-twitter-feed/hy-twitter-feed.js +117 -118
  485. package/dist/collection/components/hy-two-columns/hy-two-columns.js +40 -41
  486. package/dist/collection/components/hy-user-login-form/hy-user-login-form.js +59 -60
  487. package/dist/collection/components/hy-video/hy-video.js +503 -504
  488. package/dist/collection/global/colors.js +21 -22
  489. package/dist/collection/global/globalScript.js +9 -10
  490. package/dist/collection/global/typography.js +3 -4
  491. package/dist/collection/index.js +0 -1
  492. package/dist/collection/utils/utils.js +101 -102
  493. package/dist/esm/ResizeObserver.es-ccb10328.js +928 -0
  494. package/dist/esm/app-globals-31b59183.js +5 -0
  495. package/dist/esm/globalScript-0c14426d.js +27 -0
  496. package/dist/esm/huds-lib.js +15 -18
  497. package/dist/esm/hy-accordion-container_2.entry.js +213 -213
  498. package/dist/esm/hy-adjacent-image-text.entry.js +48 -49
  499. package/dist/esm/hy-anchor-link-list.entry.js +40 -41
  500. package/dist/esm/hy-badge.entry.js +11 -12
  501. package/dist/esm/hy-banner.entry.js +38 -39
  502. package/dist/esm/hy-box.entry.js +64 -65
  503. package/dist/esm/hy-breadcrumbs_15.entry.js +853 -839
  504. package/dist/esm/hy-checkbox.entry.js +19 -20
  505. package/dist/esm/hy-collaboration.entry.js +14 -15
  506. package/dist/esm/hy-content-list_2.entry.js +148 -148
  507. package/dist/esm/hy-crisis-banner.entry.js +13 -14
  508. package/dist/esm/hy-cta-button.entry.js +23 -24
  509. package/dist/esm/hy-cta-link.entry.js +18 -19
  510. package/dist/esm/hy-dropdown.entry.js +199 -200
  511. package/dist/esm/hy-event-item.entry.js +32 -33
  512. package/dist/esm/hy-events.entry.js +80 -81
  513. package/dist/esm/hy-filter-group_6.entry.js +79 -78
  514. package/dist/esm/hy-general-list_2.entry.js +82 -82
  515. package/dist/esm/hy-hero-carousel.entry.js +1086 -558
  516. package/dist/esm/hy-hero.entry.js +67 -108
  517. package/dist/esm/hy-icon.entry.js +422 -423
  518. package/dist/esm/hy-image.entry.js +44 -45
  519. package/dist/esm/hy-introduction.entry.js +50 -51
  520. package/dist/esm/hy-key-figure_2.entry.js +73 -73
  521. package/dist/esm/hy-key-highlight_2.entry.js +46 -46
  522. package/dist/esm/hy-large-process-flow_2.entry.js +58 -58
  523. package/dist/esm/hy-link-box_2.entry.js +116 -116
  524. package/dist/esm/hy-link-list.entry.js +34 -35
  525. package/dist/esm/hy-link.entry.js +17 -18
  526. package/dist/esm/hy-list-item.entry.js +224 -225
  527. package/dist/esm/hy-logo-grid_2.entry.js +33 -33
  528. package/dist/esm/hy-main.entry.js +15 -16
  529. package/dist/esm/hy-menu-main-group.entry.js +132 -133
  530. package/dist/esm/hy-opening-hours_2.entry.js +65 -65
  531. package/dist/esm/hy-pager_2.entry.js +46 -46
  532. package/dist/esm/hy-paragraph-text.entry.js +31 -30
  533. package/dist/esm/hy-person-card.entry.js +83 -84
  534. package/dist/esm/hy-person-profile-listing.entry.js +23 -24
  535. package/dist/esm/hy-person-profile.entry.js +59 -60
  536. package/dist/esm/hy-process_2.entry.js +68 -68
  537. package/dist/esm/hy-prominent-image.entry.js +28 -29
  538. package/dist/esm/hy-quote.entry.js +20 -21
  539. package/dist/esm/hy-row.entry.js +14 -15
  540. package/dist/esm/hy-section-container.entry.js +9 -10
  541. package/dist/esm/hy-shortcuts.entry.js +48 -49
  542. package/dist/esm/hy-table-container.entry.js +10 -11
  543. package/dist/esm/hy-tabs_2.entry.js +284 -284
  544. package/dist/esm/hy-tag.entry.js +10 -11
  545. package/dist/esm/hy-tiny-text.entry.js +10 -11
  546. package/dist/esm/hy-twitter-feed.entry.js +21 -22
  547. package/dist/esm/hy-two-columns.entry.js +11 -12
  548. package/dist/esm/hy-user-login-form.entry.js +15 -16
  549. package/dist/esm/hy-video.entry.js +87 -88
  550. package/dist/esm/index-e2e165ed.js +1709 -0
  551. package/dist/esm/{emotion.esm-e0a633a4.js → index.esm-aef0c42f.js} +496 -657
  552. package/dist/esm/index.js +0 -2
  553. package/dist/esm/loader.js +9 -18
  554. package/dist/esm/utils-1e7f5184.js +193 -0
  555. package/dist/fonts/fonts.css +12 -10
  556. package/dist/huds-lib/ResizeObserver.es-ccb10328.js +1 -0
  557. package/dist/huds-lib/app-globals-31b59183.js +1 -0
  558. package/dist/huds-lib/globalScript-0c14426d.js +1 -0
  559. package/dist/huds-lib/huds-lib.esm.js +1 -2
  560. package/dist/huds-lib/hy-accordion-container_2.entry.js +1 -2
  561. package/dist/huds-lib/hy-adjacent-image-text.entry.js +1 -2
  562. package/dist/huds-lib/hy-anchor-link-list.entry.js +1 -2
  563. package/dist/huds-lib/hy-badge.entry.js +1 -2
  564. package/dist/huds-lib/hy-banner.entry.js +1 -2
  565. package/dist/huds-lib/hy-box.entry.js +54 -55
  566. package/dist/huds-lib/hy-breadcrumbs_15.entry.js +1 -2
  567. package/dist/huds-lib/hy-checkbox.entry.js +1 -2
  568. package/dist/huds-lib/hy-collaboration.entry.js +1 -2
  569. package/dist/huds-lib/hy-content-list_2.entry.js +1 -2
  570. package/dist/huds-lib/hy-crisis-banner.entry.js +1 -2
  571. package/dist/huds-lib/hy-cta-button.entry.js +1 -2
  572. package/dist/huds-lib/hy-cta-link.entry.js +1 -2
  573. package/dist/huds-lib/hy-dropdown.entry.js +1 -2
  574. package/dist/huds-lib/hy-event-item.entry.js +1 -2
  575. package/dist/huds-lib/hy-events.entry.js +1 -2
  576. package/dist/huds-lib/hy-filter-group_6.entry.js +1 -2
  577. package/dist/huds-lib/hy-general-list_2.entry.js +1 -2
  578. package/dist/huds-lib/hy-hero-carousel.entry.js +1 -2
  579. package/dist/huds-lib/hy-hero.entry.js +1 -2
  580. package/dist/huds-lib/hy-icon.entry.js +1 -2
  581. package/dist/huds-lib/hy-image.entry.js +1 -2
  582. package/dist/huds-lib/hy-introduction.entry.js +1 -2
  583. package/dist/huds-lib/hy-key-figure_2.entry.js +1 -2
  584. package/dist/huds-lib/hy-key-highlight_2.entry.js +1 -2
  585. package/dist/huds-lib/hy-large-process-flow_2.entry.js +1 -2
  586. package/dist/huds-lib/hy-link-box_2.entry.js +1 -2
  587. package/dist/huds-lib/hy-link-list.entry.js +1 -2
  588. package/dist/huds-lib/hy-link.entry.js +1 -2
  589. package/dist/huds-lib/hy-list-item.entry.js +1 -2
  590. package/dist/huds-lib/hy-logo-grid_2.entry.js +1 -2
  591. package/dist/huds-lib/hy-main.entry.js +1 -2
  592. package/dist/huds-lib/hy-menu-main-group.entry.js +1 -2
  593. package/dist/huds-lib/hy-opening-hours_2.entry.js +1 -2
  594. package/dist/huds-lib/hy-pager_2.entry.js +1 -2
  595. package/dist/huds-lib/hy-paragraph-text.entry.js +1 -2
  596. package/dist/huds-lib/hy-person-card.entry.js +1 -2
  597. package/dist/huds-lib/hy-person-profile-listing.entry.js +1 -2
  598. package/dist/huds-lib/hy-person-profile.entry.js +1 -2
  599. package/dist/huds-lib/hy-process_2.entry.js +1 -2
  600. package/dist/huds-lib/hy-prominent-image.entry.js +1 -2
  601. package/dist/huds-lib/hy-quote.entry.js +1 -2
  602. package/dist/huds-lib/hy-row.entry.js +4 -5
  603. package/dist/huds-lib/hy-section-container.entry.js +1 -2
  604. package/dist/huds-lib/hy-shortcuts.entry.js +1 -2
  605. package/dist/huds-lib/hy-table-container.entry.js +1 -2
  606. package/dist/huds-lib/hy-tabs_2.entry.js +1 -2
  607. package/dist/huds-lib/hy-tag.entry.js +1 -2
  608. package/dist/huds-lib/hy-tiny-text.entry.js +1 -2
  609. package/dist/huds-lib/hy-twitter-feed.entry.js +1 -2
  610. package/dist/huds-lib/hy-two-columns.entry.js +1 -2
  611. package/dist/huds-lib/hy-user-login-form.entry.js +1 -2
  612. package/dist/huds-lib/hy-video.entry.js +1 -2
  613. package/dist/huds-lib/index-e2e165ed.js +2 -0
  614. package/dist/huds-lib/index.esm-aef0c42f.js +1 -0
  615. package/dist/huds-lib/index.esm.js +0 -2
  616. package/dist/huds-lib/utils-1e7f5184.js +1 -0
  617. package/dist/loader/cdn.js +1 -3
  618. package/dist/loader/index.cjs.js +1 -3
  619. package/dist/loader/index.d.ts +4 -1
  620. package/dist/loader/index.es2017.js +1 -3
  621. package/dist/loader/index.js +1 -3
  622. package/dist/types/components/footer/hy-footer/hy-footer.d.ts +1 -1
  623. package/dist/types/components/footer/hy-footer-action/hy-footer-action.d.ts +11 -11
  624. package/dist/types/components/footer/hy-footer-base/hy-footer-base.d.ts +52 -52
  625. package/dist/types/components/footer/hy-footer-info/hy-footer-info.d.ts +56 -56
  626. package/dist/types/components/footer/hy-footer-link-item/hy-footer-link-item.d.ts +10 -10
  627. package/dist/types/components/hy-accordion-container/accordion-container.d.ts +2 -2
  628. package/dist/types/components/hy-accordion-item/accordion-item.d.ts +15 -15
  629. package/dist/types/components/hy-adjacent-image-text/adjacent-image-text.d.ts +24 -24
  630. package/dist/types/components/hy-anchor-link-list/hy-anchor-link-list.d.ts +23 -23
  631. package/dist/types/components/hy-badge/hy-badge.d.ts +2 -2
  632. package/dist/types/components/hy-banner/hy-banner.d.ts +10 -10
  633. package/dist/types/components/hy-box/hy-box.d.ts +65 -65
  634. package/dist/types/components/hy-breadcrumbs/hy-breadcrumbs.d.ts +11 -11
  635. package/dist/types/components/hy-checkbox/hy-checkbox.d.ts +21 -21
  636. package/dist/types/components/hy-collaboration/hy-collaboration.d.ts +6 -6
  637. package/dist/types/components/hy-content-lists/hy-content-list/hy-content-list.d.ts +20 -20
  638. package/dist/types/components/hy-content-lists/hy-content-list-item/hy-content-list-item.d.ts +22 -22
  639. package/dist/types/components/hy-crisis-banner/hy-crisis-banner.d.ts +5 -5
  640. package/dist/types/components/hy-cta-button/cta-button.d.ts +9 -9
  641. package/dist/types/components/hy-cta-link/cta-link.d.ts +7 -7
  642. package/dist/types/components/hy-dropdown/hy-dropdown.d.ts +37 -37
  643. package/dist/types/components/hy-event-item/hy-event-item.d.ts +13 -13
  644. package/dist/types/components/hy-events/hy-events.d.ts +12 -12
  645. package/dist/types/components/hy-filter-group/hy-filter-group.d.ts +9 -9
  646. package/dist/types/components/hy-filter-group/hy-filter-group.item.d.ts +3 -3
  647. package/dist/types/components/hy-filter-list-type/hy-filter-list-type.d.ts +3 -3
  648. package/dist/types/components/hy-filter-visibility-tool/hy-filter-visibility-tool.d.ts +2 -2
  649. package/dist/types/components/hy-filter-visibility-tool/hy-filter-visibility-tool.reset.d.ts +1 -1
  650. package/dist/types/components/hy-filter-visibility-tool/hy-filter-visibility-tool.reset.toggle.d.ts +1 -1
  651. package/dist/types/components/hy-general-list/hy-general-list.d.ts +23 -23
  652. package/dist/types/components/hy-general-list-item/hy-general-list-item.d.ts +16 -16
  653. package/dist/types/components/hy-heading/heading.d.ts +16 -16
  654. package/dist/types/components/hy-hero/hy-hero.d.ts +28 -32
  655. package/dist/types/components/hy-hero-carousel/hy-hero-carousel.d.ts +24 -24
  656. package/dist/types/components/hy-icon/icon.d.ts +4 -4
  657. package/dist/types/components/hy-image/image.d.ts +16 -16
  658. package/dist/types/components/hy-ingress/ingress.d.ts +4 -4
  659. package/dist/types/components/hy-introduction/hy-introduction.d.ts +20 -20
  660. package/dist/types/components/hy-key-figure/hy-key-figure.d.ts +4 -4
  661. package/dist/types/components/hy-key-figure-group/hy-key-figure-group.d.ts +10 -10
  662. package/dist/types/components/hy-key-highlight/hy-key-highlight.d.ts +4 -4
  663. package/dist/types/components/hy-key-highlight-group/hy-key-highlight-group.d.ts +10 -10
  664. package/dist/types/components/hy-large-process-flow/hy-large-process-flow.d.ts +9 -9
  665. package/dist/types/components/hy-large-process-flow-phase/hy-large-process-flow-phase.d.ts +11 -11
  666. package/dist/types/components/hy-link/link.d.ts +6 -6
  667. package/dist/types/components/hy-link-box/link-box.d.ts +24 -24
  668. package/dist/types/components/hy-link-box-list/link-box-list.d.ts +18 -18
  669. package/dist/types/components/hy-link-list/hy-link-list.d.ts +15 -15
  670. package/dist/types/components/hy-list-item/hy-list-item.d.ts +45 -45
  671. package/dist/types/components/hy-logo-grid/hy-logo-grid.d.ts +3 -3
  672. package/dist/types/components/hy-logo-grid/hy-logo-grid.item.d.ts +3 -3
  673. package/dist/types/components/hy-main/hy-main.d.ts +2 -2
  674. package/dist/types/components/hy-main-content-wrapper/hy-main-content-wrapper.d.ts +1 -1
  675. package/dist/types/components/hy-navigation/hy-menu-main-group/hy-menu-main-group.d.ts +28 -28
  676. package/dist/types/components/hy-navigation/menu-language/menu-language.d.ts +23 -23
  677. package/dist/types/components/hy-navigation/menu-language-item/menu-language-item.d.ts +7 -7
  678. package/dist/types/components/hy-opening-hours/hy-opening-hours.d.ts +17 -17
  679. package/dist/types/components/hy-opening-hours-content/hy-opening-hours-content.d.ts +12 -12
  680. package/dist/types/components/hy-pagination/hy-pager/hy-pager.d.ts +1 -1
  681. package/dist/types/components/hy-pagination/hy-pager-item/hy-pager-item.d.ts +5 -5
  682. package/dist/types/components/hy-paragraph-text/paragraph-text.d.ts +6 -6
  683. package/dist/types/components/hy-person-card/hy-person-card.d.ts +30 -30
  684. package/dist/types/components/hy-person-profile/person-profile-listing/person-profile.listing.d.ts +11 -11
  685. package/dist/types/components/hy-person-profile/person-profile.d.ts +12 -12
  686. package/dist/types/components/hy-process/process.d.ts +11 -11
  687. package/dist/types/components/hy-process-flow-box/process-flow-box.d.ts +8 -8
  688. package/dist/types/components/hy-prominent-image/hy-prominent-image.d.ts +12 -12
  689. package/dist/types/components/hy-quote/hy-quote.d.ts +5 -5
  690. package/dist/types/components/hy-row/row.d.ts +13 -13
  691. package/dist/types/components/hy-search-field/hy-search-field.d.ts +15 -15
  692. package/dist/types/components/hy-section-container/section-container.d.ts +1 -1
  693. package/dist/types/components/hy-shortcuts/hy-shortcuts.d.ts +13 -13
  694. package/dist/types/components/hy-site-header/site-header.d.ts +65 -65
  695. package/dist/types/components/hy-site-header/site-logo/site-logo.d.ts +8 -8
  696. package/dist/types/components/hy-site-header/site-search/site-search.d.ts +37 -37
  697. package/dist/types/components/hy-table-container/hy-table-container.d.ts +1 -1
  698. package/dist/types/components/hy-tabs/hy-tabs.d.ts +23 -23
  699. package/dist/types/components/hy-tabs-item/hy-tabs-item.d.ts +2 -2
  700. package/dist/types/components/hy-tag/hy-tag.d.ts +1 -1
  701. package/dist/types/components/hy-tiny-text/tiny-text.d.ts +1 -1
  702. package/dist/types/components/hy-twitter-feed/hy-twitter-feed.d.ts +6 -6
  703. package/dist/types/components/hy-two-columns/hy-two-columns.d.ts +2 -2
  704. package/dist/types/components/hy-user-login-form/hy-user-login-form.d.ts +3 -3
  705. package/dist/types/components/hy-video/hy-video.d.ts +47 -47
  706. package/dist/types/components.d.ts +62 -0
  707. package/dist/types/global/colors.d.ts +21 -21
  708. package/dist/types/global/typography.d.ts +3 -3
  709. package/dist/types/stencil-public-runtime.d.ts +49 -15
  710. package/dist/types/utils/utils.d.ts +102 -102
  711. package/package.json +25 -25
  712. package/components/accordion-container.js.map +0 -1
  713. package/components/accordion-item.js.map +0 -1
  714. package/components/cta-button.js.map +0 -1
  715. package/components/cta-link.js.map +0 -1
  716. package/components/emotion.esm.js.map +0 -1
  717. package/components/globalScript.js.map +0 -1
  718. package/components/heading.js.map +0 -1
  719. package/components/hy-accordion-container.js.map +0 -1
  720. package/components/hy-accordion-item.js.map +0 -1
  721. package/components/hy-adjacent-image-text.js.map +0 -1
  722. package/components/hy-anchor-link-list.js.map +0 -1
  723. package/components/hy-badge.js.map +0 -1
  724. package/components/hy-banner.js.map +0 -1
  725. package/components/hy-box.js.map +0 -1
  726. package/components/hy-box2.js.map +0 -1
  727. package/components/hy-breadcrumbs.js.map +0 -1
  728. package/components/hy-checkbox.js.map +0 -1
  729. package/components/hy-collaboration.js.map +0 -1
  730. package/components/hy-content-list-item.js.map +0 -1
  731. package/components/hy-content-list-item2.js.map +0 -1
  732. package/components/hy-content-list.js.map +0 -1
  733. package/components/hy-crisis-banner.js.map +0 -1
  734. package/components/hy-cta-button.js.map +0 -1
  735. package/components/hy-cta-link.js.map +0 -1
  736. package/components/hy-dropdown.js.map +0 -1
  737. package/components/hy-event-item.js.map +0 -1
  738. package/components/hy-events.js.map +0 -1
  739. package/components/hy-filter-group-item.js.map +0 -1
  740. package/components/hy-filter-group.item.js.map +0 -1
  741. package/components/hy-filter-group.js.map +0 -1
  742. package/components/hy-filter-list-type.js.map +0 -1
  743. package/components/hy-filter-visibility-tool-reset.js.map +0 -1
  744. package/components/hy-filter-visibility-tool-toggle.js.map +0 -1
  745. package/components/hy-filter-visibility-tool.js.map +0 -1
  746. package/components/hy-filter-visibility-tool.reset.js.map +0 -1
  747. package/components/hy-filter-visibility-tool.reset.toggle.js.map +0 -1
  748. package/components/hy-footer-action.js.map +0 -1
  749. package/components/hy-footer-base.js.map +0 -1
  750. package/components/hy-footer-info.js.map +0 -1
  751. package/components/hy-footer-link-item.js.map +0 -1
  752. package/components/hy-footer-link-item2.js.map +0 -1
  753. package/components/hy-footer.js.map +0 -1
  754. package/components/hy-general-list-item.js.map +0 -1
  755. package/components/hy-general-list-item2.js.map +0 -1
  756. package/components/hy-general-list.js.map +0 -1
  757. package/components/hy-heading.js.map +0 -1
  758. package/components/hy-hero-carousel.js.map +0 -1
  759. package/components/hy-hero.js.map +0 -1
  760. package/components/hy-icon.js.map +0 -1
  761. package/components/hy-image.js.map +0 -1
  762. package/components/hy-ingress.js.map +0 -1
  763. package/components/hy-introduction.js.map +0 -1
  764. package/components/hy-key-figure-group.js.map +0 -1
  765. package/components/hy-key-figure.js.map +0 -1
  766. package/components/hy-key-figure2.js.map +0 -1
  767. package/components/hy-key-highlight-group.js.map +0 -1
  768. package/components/hy-key-highlight.js.map +0 -1
  769. package/components/hy-key-highlight2.js.map +0 -1
  770. package/components/hy-large-process-flow-phase.js.map +0 -1
  771. package/components/hy-large-process-flow-phase2.js.map +0 -1
  772. package/components/hy-large-process-flow.js.map +0 -1
  773. package/components/hy-link-box-list.js.map +0 -1
  774. package/components/hy-link-box.js.map +0 -1
  775. package/components/hy-link-list.js.map +0 -1
  776. package/components/hy-link.js.map +0 -1
  777. package/components/hy-list-item.js.map +0 -1
  778. package/components/hy-logo-grid-item.js.map +0 -1
  779. package/components/hy-logo-grid.js.map +0 -1
  780. package/components/hy-main-content-wrapper.js.map +0 -1
  781. package/components/hy-main-content-wrapper2.js.map +0 -1
  782. package/components/hy-main.js.map +0 -1
  783. package/components/hy-menu-language-item.js.map +0 -1
  784. package/components/hy-menu-language.js.map +0 -1
  785. package/components/hy-menu-main-group.js.map +0 -1
  786. package/components/hy-menu-main-group2.js.map +0 -1
  787. package/components/hy-opening-hours-content.js.map +0 -1
  788. package/components/hy-opening-hours.js.map +0 -1
  789. package/components/hy-pager-item.js.map +0 -1
  790. package/components/hy-pager.js.map +0 -1
  791. package/components/hy-paragraph-text.js.map +0 -1
  792. package/components/hy-person-card.js.map +0 -1
  793. package/components/hy-person-profile-listing.js.map +0 -1
  794. package/components/hy-person-profile.js.map +0 -1
  795. package/components/hy-process-flow-box.js.map +0 -1
  796. package/components/hy-process.js.map +0 -1
  797. package/components/hy-prominent-image.js.map +0 -1
  798. package/components/hy-quote.js.map +0 -1
  799. package/components/hy-row.js.map +0 -1
  800. package/components/hy-search-field.js.map +0 -1
  801. package/components/hy-search-field2.js.map +0 -1
  802. package/components/hy-section-container.js.map +0 -1
  803. package/components/hy-shortcuts.js.map +0 -1
  804. package/components/hy-site-header.js.map +0 -1
  805. package/components/hy-site-logo.js.map +0 -1
  806. package/components/hy-site-search.js.map +0 -1
  807. package/components/hy-table-container.js.map +0 -1
  808. package/components/hy-tabs-item.js.map +0 -1
  809. package/components/hy-tabs-item2.js.map +0 -1
  810. package/components/hy-tabs.js.map +0 -1
  811. package/components/hy-tabs2.js.map +0 -1
  812. package/components/hy-tag.js.map +0 -1
  813. package/components/hy-tag2.js.map +0 -1
  814. package/components/hy-tiny-text.js.map +0 -1
  815. package/components/hy-twitter-feed.js.map +0 -1
  816. package/components/hy-two-columns.js.map +0 -1
  817. package/components/hy-user-login-form.js.map +0 -1
  818. package/components/hy-video.js.map +0 -1
  819. package/components/icon.js.map +0 -1
  820. package/components/image.js.map +0 -1
  821. package/components/index.js.map +0 -1
  822. package/components/index2.js.map +0 -1
  823. package/components/link-box.js.map +0 -1
  824. package/components/menu-language-item.js.map +0 -1
  825. package/components/menu-language.js.map +0 -1
  826. package/components/paragraph-text.js.map +0 -1
  827. package/components/person-profile.listing.js.map +0 -1
  828. package/components/process-flow-box.js.map +0 -1
  829. package/components/site-logo.js.map +0 -1
  830. package/components/site-search.js.map +0 -1
  831. package/components/utils.js.map +0 -1
  832. package/dist/cjs/emotion.esm-aef96835.js.map +0 -1
  833. package/dist/cjs/globalScript-9994473d.js.map +0 -1
  834. package/dist/cjs/huds-lib.cjs.js.map +0 -1
  835. package/dist/cjs/hy-accordion-container_2.cjs.entry.js.map +0 -1
  836. package/dist/cjs/hy-adjacent-image-text.cjs.entry.js.map +0 -1
  837. package/dist/cjs/hy-anchor-link-list.cjs.entry.js.map +0 -1
  838. package/dist/cjs/hy-badge.cjs.entry.js.map +0 -1
  839. package/dist/cjs/hy-banner.cjs.entry.js.map +0 -1
  840. package/dist/cjs/hy-box.cjs.entry.js.map +0 -1
  841. package/dist/cjs/hy-breadcrumbs_15.cjs.entry.js.map +0 -1
  842. package/dist/cjs/hy-checkbox.cjs.entry.js.map +0 -1
  843. package/dist/cjs/hy-collaboration.cjs.entry.js.map +0 -1
  844. package/dist/cjs/hy-content-list_2.cjs.entry.js.map +0 -1
  845. package/dist/cjs/hy-crisis-banner.cjs.entry.js.map +0 -1
  846. package/dist/cjs/hy-cta-button.cjs.entry.js.map +0 -1
  847. package/dist/cjs/hy-cta-link.cjs.entry.js.map +0 -1
  848. package/dist/cjs/hy-dropdown.cjs.entry.js.map +0 -1
  849. package/dist/cjs/hy-event-item.cjs.entry.js.map +0 -1
  850. package/dist/cjs/hy-events.cjs.entry.js.map +0 -1
  851. package/dist/cjs/hy-filter-group_6.cjs.entry.js.map +0 -1
  852. package/dist/cjs/hy-general-list_2.cjs.entry.js.map +0 -1
  853. package/dist/cjs/hy-hero-carousel.cjs.entry.js.map +0 -1
  854. package/dist/cjs/hy-hero.cjs.entry.js.map +0 -1
  855. package/dist/cjs/hy-icon.cjs.entry.js.map +0 -1
  856. package/dist/cjs/hy-image.cjs.entry.js.map +0 -1
  857. package/dist/cjs/hy-introduction.cjs.entry.js.map +0 -1
  858. package/dist/cjs/hy-key-figure_2.cjs.entry.js.map +0 -1
  859. package/dist/cjs/hy-key-highlight_2.cjs.entry.js.map +0 -1
  860. package/dist/cjs/hy-large-process-flow_2.cjs.entry.js.map +0 -1
  861. package/dist/cjs/hy-link-box_2.cjs.entry.js.map +0 -1
  862. package/dist/cjs/hy-link-list.cjs.entry.js.map +0 -1
  863. package/dist/cjs/hy-link.cjs.entry.js.map +0 -1
  864. package/dist/cjs/hy-list-item.cjs.entry.js.map +0 -1
  865. package/dist/cjs/hy-logo-grid_2.cjs.entry.js.map +0 -1
  866. package/dist/cjs/hy-main.cjs.entry.js.map +0 -1
  867. package/dist/cjs/hy-menu-main-group.cjs.entry.js.map +0 -1
  868. package/dist/cjs/hy-opening-hours_2.cjs.entry.js.map +0 -1
  869. package/dist/cjs/hy-pager_2.cjs.entry.js.map +0 -1
  870. package/dist/cjs/hy-paragraph-text.cjs.entry.js.map +0 -1
  871. package/dist/cjs/hy-person-card.cjs.entry.js.map +0 -1
  872. package/dist/cjs/hy-person-profile-listing.cjs.entry.js.map +0 -1
  873. package/dist/cjs/hy-person-profile.cjs.entry.js.map +0 -1
  874. package/dist/cjs/hy-process_2.cjs.entry.js.map +0 -1
  875. package/dist/cjs/hy-prominent-image.cjs.entry.js.map +0 -1
  876. package/dist/cjs/hy-quote.cjs.entry.js.map +0 -1
  877. package/dist/cjs/hy-row.cjs.entry.js.map +0 -1
  878. package/dist/cjs/hy-section-container.cjs.entry.js.map +0 -1
  879. package/dist/cjs/hy-shortcuts.cjs.entry.js.map +0 -1
  880. package/dist/cjs/hy-table-container.cjs.entry.js.map +0 -1
  881. package/dist/cjs/hy-tabs_2.cjs.entry.js.map +0 -1
  882. package/dist/cjs/hy-tag.cjs.entry.js.map +0 -1
  883. package/dist/cjs/hy-tiny-text.cjs.entry.js.map +0 -1
  884. package/dist/cjs/hy-twitter-feed.cjs.entry.js.map +0 -1
  885. package/dist/cjs/hy-two-columns.cjs.entry.js.map +0 -1
  886. package/dist/cjs/hy-user-login-form.cjs.entry.js.map +0 -1
  887. package/dist/cjs/hy-video.cjs.entry.js.map +0 -1
  888. package/dist/cjs/index-32830401.js +0 -2243
  889. package/dist/cjs/index-32830401.js.map +0 -1
  890. package/dist/cjs/index-dacd8ca5.js +0 -969
  891. package/dist/cjs/index-dacd8ca5.js.map +0 -1
  892. package/dist/cjs/index.cjs.js.map +0 -1
  893. package/dist/cjs/loader.cjs.js.map +0 -1
  894. package/dist/cjs/utils-56f3464c.js +0 -195
  895. package/dist/cjs/utils-56f3464c.js.map +0 -1
  896. package/dist/collection/components/footer/hy-footer/hy-footer.js.map +0 -1
  897. package/dist/collection/components/footer/hy-footer-action/hy-footer-action.js.map +0 -1
  898. package/dist/collection/components/footer/hy-footer-base/hy-footer-base.js.map +0 -1
  899. package/dist/collection/components/footer/hy-footer-info/hy-footer-info.js.map +0 -1
  900. package/dist/collection/components/footer/hy-footer-link-item/hy-footer-link-item.js.map +0 -1
  901. package/dist/collection/components/global-workers/globals.worker.js.map +0 -1
  902. package/dist/collection/components/hy-accordion-container/accordion-container.js.map +0 -1
  903. package/dist/collection/components/hy-accordion-container/accordion-container.spec.js +0 -7
  904. package/dist/collection/components/hy-accordion-container/accordion-container.spec.js.map +0 -1
  905. package/dist/collection/components/hy-accordion-item/accordion-item.js.map +0 -1
  906. package/dist/collection/components/hy-accordion-item/accordion-item.spec.js +0 -7
  907. package/dist/collection/components/hy-accordion-item/accordion-item.spec.js.map +0 -1
  908. package/dist/collection/components/hy-adjacent-image-text/adjacent-image-text.js.map +0 -1
  909. package/dist/collection/components/hy-adjacent-image-text/adjacent-image-text.spec.js +0 -7
  910. package/dist/collection/components/hy-adjacent-image-text/adjacent-image-text.spec.js.map +0 -1
  911. package/dist/collection/components/hy-anchor-link-list/hy-anchor-link-list.js.map +0 -1
  912. package/dist/collection/components/hy-badge/hy-badge.js.map +0 -1
  913. package/dist/collection/components/hy-badge/hy-badge.spec.js +0 -20
  914. package/dist/collection/components/hy-badge/hy-badge.spec.js.map +0 -1
  915. package/dist/collection/components/hy-banner/hy-banner.js.map +0 -1
  916. package/dist/collection/components/hy-box/hy-box.js.map +0 -1
  917. package/dist/collection/components/hy-box/test/hy-box.spec.js +0 -26
  918. package/dist/collection/components/hy-box/test/hy-box.spec.js.map +0 -1
  919. package/dist/collection/components/hy-breadcrumbs/hy-breadcrumbs.js.map +0 -1
  920. package/dist/collection/components/hy-checkbox/hy-checkbox.js.map +0 -1
  921. package/dist/collection/components/hy-collaboration/hy-collaboration.js.map +0 -1
  922. package/dist/collection/components/hy-content-lists/hy-content-list/hy-content-list.js.map +0 -1
  923. package/dist/collection/components/hy-content-lists/hy-content-list-item/hy-content-list-item.js.map +0 -1
  924. package/dist/collection/components/hy-crisis-banner/hy-crisis-banner.js.map +0 -1
  925. package/dist/collection/components/hy-cta-button/cta-button.e2e.js +0 -15
  926. package/dist/collection/components/hy-cta-button/cta-button.e2e.js.map +0 -1
  927. package/dist/collection/components/hy-cta-button/cta-button.js.map +0 -1
  928. package/dist/collection/components/hy-cta-button/cta-button.spec.js +0 -7
  929. package/dist/collection/components/hy-cta-button/cta-button.spec.js.map +0 -1
  930. package/dist/collection/components/hy-cta-link/cta-link.e2e.js +0 -15
  931. package/dist/collection/components/hy-cta-link/cta-link.e2e.js.map +0 -1
  932. package/dist/collection/components/hy-cta-link/cta-link.js.map +0 -1
  933. package/dist/collection/components/hy-cta-link/cta-link.spec.js +0 -7
  934. package/dist/collection/components/hy-cta-link/cta-link.spec.js.map +0 -1
  935. package/dist/collection/components/hy-dropdown/hy-dropdown.js.map +0 -1
  936. package/dist/collection/components/hy-event-item/hy-event-item.js.map +0 -1
  937. package/dist/collection/components/hy-events/hy-events.js.map +0 -1
  938. package/dist/collection/components/hy-filter-group/hy-filter-group.item.js.map +0 -1
  939. package/dist/collection/components/hy-filter-group/hy-filter-group.js.map +0 -1
  940. package/dist/collection/components/hy-filter-list-type/hy-filter-list-type.js.map +0 -1
  941. package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.js.map +0 -1
  942. package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.reset.js.map +0 -1
  943. package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.reset.toggle.js.map +0 -1
  944. package/dist/collection/components/hy-general-list/hy-general-list.js.map +0 -1
  945. package/dist/collection/components/hy-general-list-item/hy-general-list-item.js.map +0 -1
  946. package/dist/collection/components/hy-heading/heading.js.map +0 -1
  947. package/dist/collection/components/hy-heading/heading.spec.js +0 -7
  948. package/dist/collection/components/hy-heading/heading.spec.js.map +0 -1
  949. package/dist/collection/components/hy-hero/hy-hero.js.map +0 -1
  950. package/dist/collection/components/hy-hero-carousel/hy-hero-carousel.js.map +0 -1
  951. package/dist/collection/components/hy-icon/AddToTodoList.js.map +0 -1
  952. package/dist/collection/components/hy-icon/Alert.js.map +0 -1
  953. package/dist/collection/components/hy-icon/Archive.js.map +0 -1
  954. package/dist/collection/components/hy-icon/Arrow.js.map +0 -1
  955. package/dist/collection/components/hy-icon/ArrowDown.js.map +0 -1
  956. package/dist/collection/components/hy-icon/ArrowRight.js.map +0 -1
  957. package/dist/collection/components/hy-icon/ArrowUp.js.map +0 -1
  958. package/dist/collection/components/hy-icon/Avatar.js.map +0 -1
  959. package/dist/collection/components/hy-icon/AvatarGroup.js.map +0 -1
  960. package/dist/collection/components/hy-icon/Bachelor.js.map +0 -1
  961. package/dist/collection/components/hy-icon/BulletList.js.map +0 -1
  962. package/dist/collection/components/hy-icon/Camera.js.map +0 -1
  963. package/dist/collection/components/hy-icon/CaretDown.js.map +0 -1
  964. package/dist/collection/components/hy-icon/CaretLeft.js.map +0 -1
  965. package/dist/collection/components/hy-icon/CaretRight.js.map +0 -1
  966. package/dist/collection/components/hy-icon/CaretUp.js.map +0 -1
  967. package/dist/collection/components/hy-icon/Chat.js.map +0 -1
  968. package/dist/collection/components/hy-icon/CodeFork.js.map +0 -1
  969. package/dist/collection/components/hy-icon/Cogs.js.map +0 -1
  970. package/dist/collection/components/hy-icon/Contentlink.js.map +0 -1
  971. package/dist/collection/components/hy-icon/Customlink.js.map +0 -1
  972. package/dist/collection/components/hy-icon/Date.js.map +0 -1
  973. package/dist/collection/components/hy-icon/Discover.js.map +0 -1
  974. package/dist/collection/components/hy-icon/Done.js.map +0 -1
  975. package/dist/collection/components/hy-icon/Dot.js.map +0 -1
  976. package/dist/collection/components/hy-icon/DotArrowRight.js.map +0 -1
  977. package/dist/collection/components/hy-icon/Download.js.map +0 -1
  978. package/dist/collection/components/hy-icon/Drag.js.map +0 -1
  979. package/dist/collection/components/hy-icon/Dragbutton.js.map +0 -1
  980. package/dist/collection/components/hy-icon/DropDown.js.map +0 -1
  981. package/dist/collection/components/hy-icon/Edit.js.map +0 -1
  982. package/dist/collection/components/hy-icon/EditEvent.js.map +0 -1
  983. package/dist/collection/components/hy-icon/Embed.js.map +0 -1
  984. package/dist/collection/components/hy-icon/Euro.js.map +0 -1
  985. package/dist/collection/components/hy-icon/Events.js.map +0 -1
  986. package/dist/collection/components/hy-icon/ExternalLink.js.map +0 -1
  987. package/dist/collection/components/hy-icon/EyeSlash.js.map +0 -1
  988. package/dist/collection/components/hy-icon/Facebook.js.map +0 -1
  989. package/dist/collection/components/hy-icon/Favorites.js.map +0 -1
  990. package/dist/collection/components/hy-icon/Feed.js.map +0 -1
  991. package/dist/collection/components/hy-icon/FileText.js.map +0 -1
  992. package/dist/collection/components/hy-icon/FullScreen.js.map +0 -1
  993. package/dist/collection/components/hy-icon/Globe.js.map +0 -1
  994. package/dist/collection/components/hy-icon/GooglePlus.js.map +0 -1
  995. package/dist/collection/components/hy-icon/Grid.js.map +0 -1
  996. package/dist/collection/components/hy-icon/Hamburger.js.map +0 -1
  997. package/dist/collection/components/hy-icon/Heart.js.map +0 -1
  998. package/dist/collection/components/hy-icon/HeartSupport.js.map +0 -1
  999. package/dist/collection/components/hy-icon/Helsinginyliopisto.js.map +0 -1
  1000. package/dist/collection/components/hy-icon/Home.js.map +0 -1
  1001. package/dist/collection/components/hy-icon/HorizontalResize.js.map +0 -1
  1002. package/dist/collection/components/hy-icon/HyLogo.js.map +0 -1
  1003. package/dist/collection/components/hy-icon/IdNumber.js.map +0 -1
  1004. package/dist/collection/components/hy-icon/Image.js.map +0 -1
  1005. package/dist/collection/components/hy-icon/ImageGallery.js.map +0 -1
  1006. package/dist/collection/components/hy-icon/Images.js.map +0 -1
  1007. package/dist/collection/components/hy-icon/Info.js.map +0 -1
  1008. package/dist/collection/components/hy-icon/InfoStroke.js.map +0 -1
  1009. package/dist/collection/components/hy-icon/Instagram.js.map +0 -1
  1010. package/dist/collection/components/hy-icon/LeikiList.js.map +0 -1
  1011. package/dist/collection/components/hy-icon/LinkArrow.js.map +0 -1
  1012. package/dist/collection/components/hy-icon/LinkArrow1.js.map +0 -1
  1013. package/dist/collection/components/hy-icon/LinkArrowDown.js.map +0 -1
  1014. package/dist/collection/components/hy-icon/LinkArrowLeft.js.map +0 -1
  1015. package/dist/collection/components/hy-icon/LinkArrowOffsite.js.map +0 -1
  1016. package/dist/collection/components/hy-icon/LinkArrowUp.js.map +0 -1
  1017. package/dist/collection/components/hy-icon/Linkedin.js.map +0 -1
  1018. package/dist/collection/components/hy-icon/List.js.map +0 -1
  1019. package/dist/collection/components/hy-icon/ListAsBlocks.js.map +0 -1
  1020. package/dist/collection/components/hy-icon/ListStyleGrid.js.map +0 -1
  1021. package/dist/collection/components/hy-icon/ListStyleList.js.map +0 -1
  1022. package/dist/collection/components/hy-icon/Listoflinks.js.map +0 -1
  1023. package/dist/collection/components/hy-icon/Location.js.map +0 -1
  1024. package/dist/collection/components/hy-icon/Log.js.map +0 -1
  1025. package/dist/collection/components/hy-icon/Login.js.map +0 -1
  1026. package/dist/collection/components/hy-icon/Logout.js.map +0 -1
  1027. package/dist/collection/components/hy-icon/MagnifyMinus.js.map +0 -1
  1028. package/dist/collection/components/hy-icon/MagnifyPlus.js.map +0 -1
  1029. package/dist/collection/components/hy-icon/Mail.js.map +0 -1
  1030. package/dist/collection/components/hy-icon/Master.js.map +0 -1
  1031. package/dist/collection/components/hy-icon/Minus.js.map +0 -1
  1032. package/dist/collection/components/hy-icon/Mobile.js.map +0 -1
  1033. package/dist/collection/components/hy-icon/Modify.js.map +0 -1
  1034. package/dist/collection/components/hy-icon/NaviTriangle.js.map +0 -1
  1035. package/dist/collection/components/hy-icon/NewGroup.js.map +0 -1
  1036. package/dist/collection/components/hy-icon/NewPerson.js.map +0 -1
  1037. package/dist/collection/components/hy-icon/Notification.js.map +0 -1
  1038. package/dist/collection/components/hy-icon/OpinderLogo.js.map +0 -1
  1039. package/dist/collection/components/hy-icon/OpinderLogoNew.js.map +0 -1
  1040. package/dist/collection/components/hy-icon/Pdf.js.map +0 -1
  1041. package/dist/collection/components/hy-icon/People.js.map +0 -1
  1042. package/dist/collection/components/hy-icon/PermissionAll.js.map +0 -1
  1043. package/dist/collection/components/hy-icon/PermissionGroup.js.map +0 -1
  1044. package/dist/collection/components/hy-icon/PermissionPrivate.js.map +0 -1
  1045. package/dist/collection/components/hy-icon/Person.js.map +0 -1
  1046. package/dist/collection/components/hy-icon/PersonOutline.js.map +0 -1
  1047. package/dist/collection/components/hy-icon/Phone.js.map +0 -1
  1048. package/dist/collection/components/hy-icon/Play.js.map +0 -1
  1049. package/dist/collection/components/hy-icon/Plus.js.map +0 -1
  1050. package/dist/collection/components/hy-icon/Preview.js.map +0 -1
  1051. package/dist/collection/components/hy-icon/Profile.js.map +0 -1
  1052. package/dist/collection/components/hy-icon/Question.js.map +0 -1
  1053. package/dist/collection/components/hy-icon/Remove.js.map +0 -1
  1054. package/dist/collection/components/hy-icon/Retweet.js.map +0 -1
  1055. package/dist/collection/components/hy-icon/RotateLeft.js.map +0 -1
  1056. package/dist/collection/components/hy-icon/RotateRight.js.map +0 -1
  1057. package/dist/collection/components/hy-icon/Search.js.map +0 -1
  1058. package/dist/collection/components/hy-icon/Share.js.map +0 -1
  1059. package/dist/collection/components/hy-icon/SlimHamburgerMenu.js.map +0 -1
  1060. package/dist/collection/components/hy-icon/SocialMedia.js.map +0 -1
  1061. package/dist/collection/components/hy-icon/SomeFacebook.js.map +0 -1
  1062. package/dist/collection/components/hy-icon/SomeInstagram.js.map +0 -1
  1063. package/dist/collection/components/hy-icon/SomeLinkedin.js.map +0 -1
  1064. package/dist/collection/components/hy-icon/SomeTwitter.js.map +0 -1
  1065. package/dist/collection/components/hy-icon/SomeYoutube.js.map +0 -1
  1066. package/dist/collection/components/hy-icon/Spinner.js.map +0 -1
  1067. package/dist/collection/components/hy-icon/Square.js.map +0 -1
  1068. package/dist/collection/components/hy-icon/SquareChecked.js.map +0 -1
  1069. package/dist/collection/components/hy-icon/Time.js.map +0 -1
  1070. package/dist/collection/components/hy-icon/TodoList.js.map +0 -1
  1071. package/dist/collection/components/hy-icon/Tour.js.map +0 -1
  1072. package/dist/collection/components/hy-icon/Twitter.js.map +0 -1
  1073. package/dist/collection/components/hy-icon/TwitterLike.js.map +0 -1
  1074. package/dist/collection/components/hy-icon/UnitsAndFaculties.js.map +0 -1
  1075. package/dist/collection/components/hy-icon/Url.js.map +0 -1
  1076. package/dist/collection/components/hy-icon/Video.js.map +0 -1
  1077. package/dist/collection/components/hy-icon/Warning.js.map +0 -1
  1078. package/dist/collection/components/hy-icon/Wrench.js.map +0 -1
  1079. package/dist/collection/components/hy-icon/Youtube.js.map +0 -1
  1080. package/dist/collection/components/hy-icon/allIcons.js.map +0 -1
  1081. package/dist/collection/components/hy-icon/icon.js.map +0 -1
  1082. package/dist/collection/components/hy-icon/icon.spec.js +0 -7
  1083. package/dist/collection/components/hy-icon/icon.spec.js.map +0 -1
  1084. package/dist/collection/components/hy-icon/icons.js.map +0 -1
  1085. package/dist/collection/components/hy-image/image.js.map +0 -1
  1086. package/dist/collection/components/hy-image/image.spec.js +0 -21
  1087. package/dist/collection/components/hy-image/image.spec.js.map +0 -1
  1088. package/dist/collection/components/hy-ingress/ingress.js.map +0 -1
  1089. package/dist/collection/components/hy-ingress/ingress.spec.js +0 -7
  1090. package/dist/collection/components/hy-ingress/ingress.spec.js.map +0 -1
  1091. package/dist/collection/components/hy-introduction/hy-introduction.js.map +0 -1
  1092. package/dist/collection/components/hy-key-figure/hy-key-figure.js.map +0 -1
  1093. package/dist/collection/components/hy-key-figure/test/hy-key-figure.spec.js +0 -21
  1094. package/dist/collection/components/hy-key-figure/test/hy-key-figure.spec.js.map +0 -1
  1095. package/dist/collection/components/hy-key-figure-group/hy-key-figure-group.js.map +0 -1
  1096. package/dist/collection/components/hy-key-highlight/hy-key-highlight.js.map +0 -1
  1097. package/dist/collection/components/hy-key-highlight/test/hy-key-highlight.spec.js +0 -23
  1098. package/dist/collection/components/hy-key-highlight/test/hy-key-highlight.spec.js.map +0 -1
  1099. package/dist/collection/components/hy-key-highlight-group/hy-key-highlight-group.js.map +0 -1
  1100. package/dist/collection/components/hy-large-process-flow/hy-large-process-flow.js.map +0 -1
  1101. package/dist/collection/components/hy-large-process-flow-phase/hy-large-process-flow-phase.js.map +0 -1
  1102. package/dist/collection/components/hy-link/link.e2e.js +0 -17
  1103. package/dist/collection/components/hy-link/link.e2e.js.map +0 -1
  1104. package/dist/collection/components/hy-link/link.js.map +0 -1
  1105. package/dist/collection/components/hy-link/link.spec.js +0 -7
  1106. package/dist/collection/components/hy-link/link.spec.js.map +0 -1
  1107. package/dist/collection/components/hy-link-box/link-box.js.map +0 -1
  1108. package/dist/collection/components/hy-link-box/link-box.spec.js +0 -7
  1109. package/dist/collection/components/hy-link-box/link-box.spec.js.map +0 -1
  1110. package/dist/collection/components/hy-link-box-list/link-box-list.js.map +0 -1
  1111. package/dist/collection/components/hy-link-list/hy-link-list.js.map +0 -1
  1112. package/dist/collection/components/hy-list-item/hy-list-item.js.map +0 -1
  1113. package/dist/collection/components/hy-logo-grid/hy-logo-grid.item.js.map +0 -1
  1114. package/dist/collection/components/hy-logo-grid/hy-logo-grid.js.map +0 -1
  1115. package/dist/collection/components/hy-main/hy-main.js.map +0 -1
  1116. package/dist/collection/components/hy-main-content-wrapper/hy-main-content-wrapper.js.map +0 -1
  1117. package/dist/collection/components/hy-navigation/hy-menu-main-group/hy-menu-main-group.js.map +0 -1
  1118. package/dist/collection/components/hy-navigation/menu-language/menu-language.js.map +0 -1
  1119. package/dist/collection/components/hy-navigation/menu-language-item/menu-language-item.js.map +0 -1
  1120. package/dist/collection/components/hy-opening-hours/hy-opening-hours.js.map +0 -1
  1121. package/dist/collection/components/hy-opening-hours-content/hy-opening-hours-content.js.map +0 -1
  1122. package/dist/collection/components/hy-pagination/hy-pager/hy-pager.js.map +0 -1
  1123. package/dist/collection/components/hy-pagination/hy-pager-item/hy-pager-item.js.map +0 -1
  1124. package/dist/collection/components/hy-paragraph-text/paragraph-text.js.map +0 -1
  1125. package/dist/collection/components/hy-paragraph-text/paragraph-text.spec.js +0 -7
  1126. package/dist/collection/components/hy-paragraph-text/paragraph-text.spec.js.map +0 -1
  1127. package/dist/collection/components/hy-person-card/hy-person-card.js.map +0 -1
  1128. package/dist/collection/components/hy-person-profile/person-profile-listing/person-profile.listing.js.map +0 -1
  1129. package/dist/collection/components/hy-person-profile/person-profile.js.map +0 -1
  1130. package/dist/collection/components/hy-process/process.js.map +0 -1
  1131. package/dist/collection/components/hy-process/process.spec.js +0 -7
  1132. package/dist/collection/components/hy-process/process.spec.js.map +0 -1
  1133. package/dist/collection/components/hy-process-flow-box/process-flow-box.js.map +0 -1
  1134. package/dist/collection/components/hy-process-flow-box/process-flow-box.spec.js +0 -7
  1135. package/dist/collection/components/hy-process-flow-box/process-flow-box.spec.js.map +0 -1
  1136. package/dist/collection/components/hy-prominent-image/hy-prominent-image.js.map +0 -1
  1137. package/dist/collection/components/hy-quote/hy-quote.js.map +0 -1
  1138. package/dist/collection/components/hy-row/row.js.map +0 -1
  1139. package/dist/collection/components/hy-row/row.spec.js +0 -7
  1140. package/dist/collection/components/hy-row/row.spec.js.map +0 -1
  1141. package/dist/collection/components/hy-search-field/hy-search-field.js.map +0 -1
  1142. package/dist/collection/components/hy-section-container/section-container.e2e.js +0 -10
  1143. package/dist/collection/components/hy-section-container/section-container.e2e.js.map +0 -1
  1144. package/dist/collection/components/hy-section-container/section-container.js.map +0 -1
  1145. package/dist/collection/components/hy-section-container/section-container.spec.js +0 -17
  1146. package/dist/collection/components/hy-section-container/section-container.spec.js.map +0 -1
  1147. package/dist/collection/components/hy-shortcuts/hy-shortcuts.js.map +0 -1
  1148. package/dist/collection/components/hy-site-header/site-header.js.map +0 -1
  1149. package/dist/collection/components/hy-site-header/site-logo/site-logo.js.map +0 -1
  1150. package/dist/collection/components/hy-site-header/site-search/site-search.js.map +0 -1
  1151. package/dist/collection/components/hy-table-container/hy-table-container.js.map +0 -1
  1152. package/dist/collection/components/hy-tabs/hy-tabs.js.map +0 -1
  1153. package/dist/collection/components/hy-tabs-item/hy-tabs-item.js.map +0 -1
  1154. package/dist/collection/components/hy-tag/hy-tag.js.map +0 -1
  1155. package/dist/collection/components/hy-tiny-text/tiny-text.js.map +0 -1
  1156. package/dist/collection/components/hy-tiny-text/tiny-text.spec.js +0 -7
  1157. package/dist/collection/components/hy-tiny-text/tiny-text.spec.js.map +0 -1
  1158. package/dist/collection/components/hy-twitter-feed/hy-twitter-feed.js.map +0 -1
  1159. package/dist/collection/components/hy-two-columns/hy-two-columns.js.map +0 -1
  1160. package/dist/collection/components/hy-two-columns/test/hy-two-columns.spec.js +0 -27
  1161. package/dist/collection/components/hy-two-columns/test/hy-two-columns.spec.js.map +0 -1
  1162. package/dist/collection/components/hy-user-login-form/hy-user-login-form.js.map +0 -1
  1163. package/dist/collection/components/hy-video/hy-video.js.map +0 -1
  1164. package/dist/collection/global/colors.js.map +0 -1
  1165. package/dist/collection/global/globalScript.js.map +0 -1
  1166. package/dist/collection/global/typography.js.map +0 -1
  1167. package/dist/collection/index.js.map +0 -1
  1168. package/dist/collection/utils/utils.js.map +0 -1
  1169. package/dist/esm/emotion.esm-e0a633a4.js.map +0 -1
  1170. package/dist/esm/globalScript-5a4b7abf.js +0 -28
  1171. package/dist/esm/globalScript-5a4b7abf.js.map +0 -1
  1172. package/dist/esm/huds-lib.js.map +0 -1
  1173. package/dist/esm/hy-accordion-container_2.entry.js.map +0 -1
  1174. package/dist/esm/hy-adjacent-image-text.entry.js.map +0 -1
  1175. package/dist/esm/hy-anchor-link-list.entry.js.map +0 -1
  1176. package/dist/esm/hy-badge.entry.js.map +0 -1
  1177. package/dist/esm/hy-banner.entry.js.map +0 -1
  1178. package/dist/esm/hy-box.entry.js.map +0 -1
  1179. package/dist/esm/hy-breadcrumbs_15.entry.js.map +0 -1
  1180. package/dist/esm/hy-checkbox.entry.js.map +0 -1
  1181. package/dist/esm/hy-collaboration.entry.js.map +0 -1
  1182. package/dist/esm/hy-content-list_2.entry.js.map +0 -1
  1183. package/dist/esm/hy-crisis-banner.entry.js.map +0 -1
  1184. package/dist/esm/hy-cta-button.entry.js.map +0 -1
  1185. package/dist/esm/hy-cta-link.entry.js.map +0 -1
  1186. package/dist/esm/hy-dropdown.entry.js.map +0 -1
  1187. package/dist/esm/hy-event-item.entry.js.map +0 -1
  1188. package/dist/esm/hy-events.entry.js.map +0 -1
  1189. package/dist/esm/hy-filter-group_6.entry.js.map +0 -1
  1190. package/dist/esm/hy-general-list_2.entry.js.map +0 -1
  1191. package/dist/esm/hy-hero-carousel.entry.js.map +0 -1
  1192. package/dist/esm/hy-hero.entry.js.map +0 -1
  1193. package/dist/esm/hy-icon.entry.js.map +0 -1
  1194. package/dist/esm/hy-image.entry.js.map +0 -1
  1195. package/dist/esm/hy-introduction.entry.js.map +0 -1
  1196. package/dist/esm/hy-key-figure_2.entry.js.map +0 -1
  1197. package/dist/esm/hy-key-highlight_2.entry.js.map +0 -1
  1198. package/dist/esm/hy-large-process-flow_2.entry.js.map +0 -1
  1199. package/dist/esm/hy-link-box_2.entry.js.map +0 -1
  1200. package/dist/esm/hy-link-list.entry.js.map +0 -1
  1201. package/dist/esm/hy-link.entry.js.map +0 -1
  1202. package/dist/esm/hy-list-item.entry.js.map +0 -1
  1203. package/dist/esm/hy-logo-grid_2.entry.js.map +0 -1
  1204. package/dist/esm/hy-main.entry.js.map +0 -1
  1205. package/dist/esm/hy-menu-main-group.entry.js.map +0 -1
  1206. package/dist/esm/hy-opening-hours_2.entry.js.map +0 -1
  1207. package/dist/esm/hy-pager_2.entry.js.map +0 -1
  1208. package/dist/esm/hy-paragraph-text.entry.js.map +0 -1
  1209. package/dist/esm/hy-person-card.entry.js.map +0 -1
  1210. package/dist/esm/hy-person-profile-listing.entry.js.map +0 -1
  1211. package/dist/esm/hy-person-profile.entry.js.map +0 -1
  1212. package/dist/esm/hy-process_2.entry.js.map +0 -1
  1213. package/dist/esm/hy-prominent-image.entry.js.map +0 -1
  1214. package/dist/esm/hy-quote.entry.js.map +0 -1
  1215. package/dist/esm/hy-row.entry.js.map +0 -1
  1216. package/dist/esm/hy-section-container.entry.js.map +0 -1
  1217. package/dist/esm/hy-shortcuts.entry.js.map +0 -1
  1218. package/dist/esm/hy-table-container.entry.js.map +0 -1
  1219. package/dist/esm/hy-tabs_2.entry.js.map +0 -1
  1220. package/dist/esm/hy-tag.entry.js.map +0 -1
  1221. package/dist/esm/hy-tiny-text.entry.js.map +0 -1
  1222. package/dist/esm/hy-twitter-feed.entry.js.map +0 -1
  1223. package/dist/esm/hy-two-columns.entry.js.map +0 -1
  1224. package/dist/esm/hy-user-login-form.entry.js.map +0 -1
  1225. package/dist/esm/hy-video.entry.js.map +0 -1
  1226. package/dist/esm/index-ecc819ad.js +0 -967
  1227. package/dist/esm/index-ecc819ad.js.map +0 -1
  1228. package/dist/esm/index-f84f2a7d.js +0 -2212
  1229. package/dist/esm/index-f84f2a7d.js.map +0 -1
  1230. package/dist/esm/index.js.map +0 -1
  1231. package/dist/esm/loader.js.map +0 -1
  1232. package/dist/esm/polyfills/core-js.js +0 -11
  1233. package/dist/esm/polyfills/css-shim.js +0 -1
  1234. package/dist/esm/polyfills/dom.js +0 -79
  1235. package/dist/esm/polyfills/es5-html-element.js +0 -1
  1236. package/dist/esm/polyfills/index.js +0 -34
  1237. package/dist/esm/polyfills/system.js +0 -6
  1238. package/dist/esm/utils-2819fd7e.js +0 -195
  1239. package/dist/esm/utils-2819fd7e.js.map +0 -1
  1240. package/dist/fonts/Open-Sans-700/LICENSE.txt +0 -202
  1241. package/dist/fonts/Open-Sans-regular/LICENSE.txt +0 -202
  1242. package/dist/huds-lib/emotion.esm-e0a633a4.js +0 -2
  1243. package/dist/huds-lib/emotion.esm-e0a633a4.js.map +0 -1
  1244. package/dist/huds-lib/globalScript-5a4b7abf.js +0 -2
  1245. package/dist/huds-lib/globalScript-5a4b7abf.js.map +0 -1
  1246. package/dist/huds-lib/huds-lib.esm.js.map +0 -1
  1247. package/dist/huds-lib/hy-accordion-container_2.entry.js.map +0 -1
  1248. package/dist/huds-lib/hy-adjacent-image-text.entry.js.map +0 -1
  1249. package/dist/huds-lib/hy-anchor-link-list.entry.js.map +0 -1
  1250. package/dist/huds-lib/hy-badge.entry.js.map +0 -1
  1251. package/dist/huds-lib/hy-banner.entry.js.map +0 -1
  1252. package/dist/huds-lib/hy-box.entry.js.map +0 -1
  1253. package/dist/huds-lib/hy-breadcrumbs_15.entry.js.map +0 -1
  1254. package/dist/huds-lib/hy-checkbox.entry.js.map +0 -1
  1255. package/dist/huds-lib/hy-collaboration.entry.js.map +0 -1
  1256. package/dist/huds-lib/hy-content-list_2.entry.js.map +0 -1
  1257. package/dist/huds-lib/hy-crisis-banner.entry.js.map +0 -1
  1258. package/dist/huds-lib/hy-cta-button.entry.js.map +0 -1
  1259. package/dist/huds-lib/hy-cta-link.entry.js.map +0 -1
  1260. package/dist/huds-lib/hy-dropdown.entry.js.map +0 -1
  1261. package/dist/huds-lib/hy-event-item.entry.js.map +0 -1
  1262. package/dist/huds-lib/hy-events.entry.js.map +0 -1
  1263. package/dist/huds-lib/hy-filter-group_6.entry.js.map +0 -1
  1264. package/dist/huds-lib/hy-general-list_2.entry.js.map +0 -1
  1265. package/dist/huds-lib/hy-hero-carousel.entry.js.map +0 -1
  1266. package/dist/huds-lib/hy-hero.entry.js.map +0 -1
  1267. package/dist/huds-lib/hy-icon.entry.js.map +0 -1
  1268. package/dist/huds-lib/hy-image.entry.js.map +0 -1
  1269. package/dist/huds-lib/hy-introduction.entry.js.map +0 -1
  1270. package/dist/huds-lib/hy-key-figure_2.entry.js.map +0 -1
  1271. package/dist/huds-lib/hy-key-highlight_2.entry.js.map +0 -1
  1272. package/dist/huds-lib/hy-large-process-flow_2.entry.js.map +0 -1
  1273. package/dist/huds-lib/hy-link-box_2.entry.js.map +0 -1
  1274. package/dist/huds-lib/hy-link-list.entry.js.map +0 -1
  1275. package/dist/huds-lib/hy-link.entry.js.map +0 -1
  1276. package/dist/huds-lib/hy-list-item.entry.js.map +0 -1
  1277. package/dist/huds-lib/hy-logo-grid_2.entry.js.map +0 -1
  1278. package/dist/huds-lib/hy-main.entry.js.map +0 -1
  1279. package/dist/huds-lib/hy-menu-main-group.entry.js.map +0 -1
  1280. package/dist/huds-lib/hy-opening-hours_2.entry.js.map +0 -1
  1281. package/dist/huds-lib/hy-pager_2.entry.js.map +0 -1
  1282. package/dist/huds-lib/hy-paragraph-text.entry.js.map +0 -1
  1283. package/dist/huds-lib/hy-person-card.entry.js.map +0 -1
  1284. package/dist/huds-lib/hy-person-profile-listing.entry.js.map +0 -1
  1285. package/dist/huds-lib/hy-person-profile.entry.js.map +0 -1
  1286. package/dist/huds-lib/hy-process_2.entry.js.map +0 -1
  1287. package/dist/huds-lib/hy-prominent-image.entry.js.map +0 -1
  1288. package/dist/huds-lib/hy-quote.entry.js.map +0 -1
  1289. package/dist/huds-lib/hy-row.entry.js.map +0 -1
  1290. package/dist/huds-lib/hy-section-container.entry.js.map +0 -1
  1291. package/dist/huds-lib/hy-shortcuts.entry.js.map +0 -1
  1292. package/dist/huds-lib/hy-table-container.entry.js.map +0 -1
  1293. package/dist/huds-lib/hy-tabs_2.entry.js.map +0 -1
  1294. package/dist/huds-lib/hy-tag.entry.js.map +0 -1
  1295. package/dist/huds-lib/hy-tiny-text.entry.js.map +0 -1
  1296. package/dist/huds-lib/hy-twitter-feed.entry.js.map +0 -1
  1297. package/dist/huds-lib/hy-two-columns.entry.js.map +0 -1
  1298. package/dist/huds-lib/hy-user-login-form.entry.js.map +0 -1
  1299. package/dist/huds-lib/hy-video.entry.js.map +0 -1
  1300. package/dist/huds-lib/index-ecc819ad.js +0 -2
  1301. package/dist/huds-lib/index-ecc819ad.js.map +0 -1
  1302. package/dist/huds-lib/index-f84f2a7d.js +0 -3
  1303. package/dist/huds-lib/index-f84f2a7d.js.map +0 -1
  1304. package/dist/huds-lib/index.esm.js.map +0 -1
  1305. package/dist/huds-lib/utils-2819fd7e.js +0 -2
  1306. package/dist/huds-lib/utils-2819fd7e.js.map +0 -1
  1307. /package/dist/fonts/{Open-Sans-600/LICENSE.txt → LICENSE.txt} +0 -0
  1308. /package/dist/fonts/{Open-Sans-600/Open-Sans-600.eot → Open-Sans-600.eot} +0 -0
  1309. /package/dist/fonts/{Open-Sans-600/Open-Sans-600.svg → Open-Sans-600.svg} +0 -0
  1310. /package/dist/fonts/{Open-Sans-600/Open-Sans-600.ttf → Open-Sans-600.ttf} +0 -0
  1311. /package/dist/fonts/{Open-Sans-600/Open-Sans-600.woff → Open-Sans-600.woff} +0 -0
  1312. /package/dist/fonts/{Open-Sans-600/Open-Sans-600.woff2 → Open-Sans-600.woff2} +0 -0
  1313. /package/dist/fonts/{Open-Sans-700/Open-Sans-700.eot → Open-Sans-700.eot} +0 -0
  1314. /package/dist/fonts/{Open-Sans-700/Open-Sans-700.svg → Open-Sans-700.svg} +0 -0
  1315. /package/dist/fonts/{Open-Sans-700/Open-Sans-700.ttf → Open-Sans-700.ttf} +0 -0
  1316. /package/dist/fonts/{Open-Sans-700/Open-Sans-700.woff → Open-Sans-700.woff} +0 -0
  1317. /package/dist/fonts/{Open-Sans-700/Open-Sans-700.woff2 → Open-Sans-700.woff2} +0 -0
  1318. /package/dist/fonts/{Open-Sans-regular/Open-Sans-regular.eot → Open-Sans-regular.eot} +0 -0
  1319. /package/dist/fonts/{Open-Sans-regular/Open-Sans-regular.svg → Open-Sans-regular.svg} +0 -0
  1320. /package/dist/fonts/{Open-Sans-regular/Open-Sans-regular.ttf → Open-Sans-regular.ttf} +0 -0
  1321. /package/dist/fonts/{Open-Sans-regular/Open-Sans-regular.woff → Open-Sans-regular.woff} +0 -0
  1322. /package/dist/fonts/{Open-Sans-regular/Open-Sans-regular.woff2 → Open-Sans-regular.woff2} +0 -0
@@ -1,2212 +0,0 @@
1
- const NAMESPACE = 'huds-lib';
2
-
3
- /**
4
- * Virtual DOM patching algorithm based on Snabbdom by
5
- * Simon Friis Vindum (@paldepind)
6
- * Licensed under the MIT License
7
- * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
8
- *
9
- * Modified for Stencil's renderer and slot projection
10
- */
11
- let scopeId;
12
- let contentRef;
13
- let hostTagName;
14
- let useNativeShadowDom = false;
15
- let checkSlotFallbackVisibility = false;
16
- let checkSlotRelocate = false;
17
- let isSvgMode = false;
18
- let queueCongestion = 0;
19
- let queuePending = false;
20
- const createTime = (fnName, tagName = '') => {
21
- {
22
- return () => {
23
- return;
24
- };
25
- }
26
- };
27
- const uniqueTime = (key, measureText) => {
28
- {
29
- return () => {
30
- return;
31
- };
32
- }
33
- };
34
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
35
- const XLINK_NS = 'http://www.w3.org/1999/xlink';
36
- /**
37
- * Default style mode id
38
- */
39
- /**
40
- * Reusable empty obj/array
41
- * Don't add values to these!!
42
- */
43
- const EMPTY_OBJ = {};
44
- /**
45
- * Namespaces
46
- */
47
- const SVG_NS = 'http://www.w3.org/2000/svg';
48
- const HTML_NS = 'http://www.w3.org/1999/xhtml';
49
- const isDef = (v) => v != null;
50
- /**
51
- * Check whether a value is a 'complex type', defined here as an object or a
52
- * function.
53
- *
54
- * @param o the value to check
55
- * @returns whether it's a complex type or not
56
- */
57
- const isComplexType = (o) => {
58
- // https://jsperf.com/typeof-fn-object/5
59
- o = typeof o;
60
- return o === 'object' || o === 'function';
61
- };
62
- /**
63
- * Helper method for querying a `meta` tag that contains a nonce value
64
- * out of a DOM's head.
65
- *
66
- * @param doc The DOM containing the `head` to query against
67
- * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
68
- * exists or the tag has no content.
69
- */
70
- function queryNonceMetaTagContent(doc) {
71
- var _a, _b, _c;
72
- return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
73
- }
74
- /**
75
- * Production h() function based on Preact by
76
- * Jason Miller (@developit)
77
- * Licensed under the MIT License
78
- * https://github.com/developit/preact/blob/master/LICENSE
79
- *
80
- * Modified for Stencil's compiler and vdom
81
- */
82
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
83
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
84
- const h = (nodeName, vnodeData, ...children) => {
85
- let child = null;
86
- let key = null;
87
- let slotName = null;
88
- let simple = false;
89
- let lastSimple = false;
90
- const vNodeChildren = [];
91
- const walk = (c) => {
92
- for (let i = 0; i < c.length; i++) {
93
- child = c[i];
94
- if (Array.isArray(child)) {
95
- walk(child);
96
- }
97
- else if (child != null && typeof child !== 'boolean') {
98
- if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
99
- child = String(child);
100
- }
101
- if (simple && lastSimple) {
102
- // If the previous child was simple (string), we merge both
103
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
104
- }
105
- else {
106
- // Append a new vNode, if it's text, we create a text vNode
107
- vNodeChildren.push(simple ? newVNode(null, child) : child);
108
- }
109
- lastSimple = simple;
110
- }
111
- }
112
- };
113
- walk(children);
114
- if (vnodeData) {
115
- // normalize class / classname attributes
116
- if (vnodeData.key) {
117
- key = vnodeData.key;
118
- }
119
- if (vnodeData.name) {
120
- slotName = vnodeData.name;
121
- }
122
- {
123
- const classData = vnodeData.className || vnodeData.class;
124
- if (classData) {
125
- vnodeData.class =
126
- typeof classData !== 'object'
127
- ? classData
128
- : Object.keys(classData)
129
- .filter((k) => classData[k])
130
- .join(' ');
131
- }
132
- }
133
- }
134
- if (typeof nodeName === 'function') {
135
- // nodeName is a functional component
136
- return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
137
- }
138
- const vnode = newVNode(nodeName, null);
139
- vnode.$attrs$ = vnodeData;
140
- if (vNodeChildren.length > 0) {
141
- vnode.$children$ = vNodeChildren;
142
- }
143
- {
144
- vnode.$key$ = key;
145
- }
146
- {
147
- vnode.$name$ = slotName;
148
- }
149
- return vnode;
150
- };
151
- /**
152
- * A utility function for creating a virtual DOM node from a tag and some
153
- * possible text content.
154
- *
155
- * @param tag the tag for this element
156
- * @param text possible text content for the node
157
- * @returns a newly-minted virtual DOM node
158
- */
159
- const newVNode = (tag, text) => {
160
- const vnode = {
161
- $flags$: 0,
162
- $tag$: tag,
163
- $text$: text,
164
- $elm$: null,
165
- $children$: null,
166
- };
167
- {
168
- vnode.$attrs$ = null;
169
- }
170
- {
171
- vnode.$key$ = null;
172
- }
173
- {
174
- vnode.$name$ = null;
175
- }
176
- return vnode;
177
- };
178
- const Host = {};
179
- /**
180
- * Check whether a given node is a Host node or not
181
- *
182
- * @param node the virtual DOM node to check
183
- * @returns whether it's a Host node or not
184
- */
185
- const isHost = (node) => node && node.$tag$ === Host;
186
- /**
187
- * Implementation of {@link d.FunctionalUtilities} for Stencil's VDom.
188
- *
189
- * Note that these functions convert from {@link d.VNode} to
190
- * {@link d.ChildNode} to give functional component developers a friendly
191
- * interface.
192
- */
193
- const vdomFnUtils = {
194
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
195
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
196
- };
197
- /**
198
- * Convert a {@link d.VNode} to a {@link d.ChildNode} in order to present a
199
- * friendlier public interface (hence, 'convertToPublic').
200
- *
201
- * @param node the virtual DOM node to convert
202
- * @returns a converted child node
203
- */
204
- const convertToPublic = (node) => ({
205
- vattrs: node.$attrs$,
206
- vchildren: node.$children$,
207
- vkey: node.$key$,
208
- vname: node.$name$,
209
- vtag: node.$tag$,
210
- vtext: node.$text$,
211
- });
212
- /**
213
- * Convert a {@link d.ChildNode} back to an equivalent {@link d.VNode} in
214
- * order to use the resulting object in the virtual DOM. The initial object was
215
- * likely created as part of presenting a public API, so converting it back
216
- * involved making it 'private' again (hence, `convertToPrivate`).
217
- *
218
- * @param node the child node to convert
219
- * @returns a converted virtual DOM node
220
- */
221
- const convertToPrivate = (node) => {
222
- if (typeof node.vtag === 'function') {
223
- const vnodeData = Object.assign({}, node.vattrs);
224
- if (node.vkey) {
225
- vnodeData.key = node.vkey;
226
- }
227
- if (node.vname) {
228
- vnodeData.name = node.vname;
229
- }
230
- return h(node.vtag, vnodeData, ...(node.vchildren || []));
231
- }
232
- const vnode = newVNode(node.vtag, node.vtext);
233
- vnode.$attrs$ = node.vattrs;
234
- vnode.$children$ = node.vchildren;
235
- vnode.$key$ = node.vkey;
236
- vnode.$name$ = node.vname;
237
- return vnode;
238
- };
239
- // Private
240
- const computeMode = (elm) => modeResolutionChain.map((h) => h(elm)).find((m) => !!m);
241
- // Public
242
- const setMode = (handler) => modeResolutionChain.push(handler);
243
- /**
244
- * Parse a new property value for a given property type.
245
- *
246
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
247
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
248
- * 1. `any`, the type given to `propValue` in the function signature
249
- * 2. the type stored from `propType`.
250
- *
251
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
252
- *
253
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
254
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
255
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
256
- * ```tsx
257
- * <my-cmp prop-val={0}></my-cmp>
258
- * ```
259
- *
260
- * HTML prop values on the other hand, will always a string
261
- *
262
- * @param propValue the new value to coerce to some type
263
- * @param propType the type of the prop, expressed as a binary number
264
- * @returns the parsed/coerced value
265
- */
266
- const parsePropertyValue = (propValue, propType) => {
267
- // ensure this value is of the correct prop type
268
- if (propValue != null && !isComplexType(propValue)) {
269
- if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
270
- // per the HTML spec, any string value means it is a boolean true value
271
- // but we'll cheat here and say that the string "false" is the boolean false
272
- return propValue === 'false' ? false : propValue === '' || !!propValue;
273
- }
274
- if (propType & 2 /* MEMBER_FLAGS.Number */) {
275
- // force it to be a number
276
- return parseFloat(propValue);
277
- }
278
- if (propType & 1 /* MEMBER_FLAGS.String */) {
279
- // could have been passed as a number or boolean
280
- // but we still want it as a string
281
- return String(propValue);
282
- }
283
- // redundant return here for better minification
284
- return propValue;
285
- }
286
- // not sure exactly what type we want
287
- // so no need to change to a different type
288
- return propValue;
289
- };
290
- const getElement = (ref) => (getHostRef(ref).$hostElement$ );
291
- const createEvent = (ref, name, flags) => {
292
- const elm = getElement(ref);
293
- return {
294
- emit: (detail) => {
295
- return emitEvent(elm, name, {
296
- bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
297
- composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
298
- cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
299
- detail,
300
- });
301
- },
302
- };
303
- };
304
- /**
305
- * Helper function to create & dispatch a custom Event on a provided target
306
- * @param elm the target of the Event
307
- * @param name the name to give the custom Event
308
- * @param opts options for configuring a custom Event
309
- * @returns the custom Event
310
- */
311
- const emitEvent = (elm, name, opts) => {
312
- const ev = plt.ce(name, opts);
313
- elm.dispatchEvent(ev);
314
- return ev;
315
- };
316
- const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
317
- const registerStyle = (scopeId, cssText, allowCS) => {
318
- let style = styles.get(scopeId);
319
- if (supportsConstructableStylesheets && allowCS) {
320
- style = (style || new CSSStyleSheet());
321
- if (typeof style === 'string') {
322
- style = cssText;
323
- }
324
- else {
325
- style.replaceSync(cssText);
326
- }
327
- }
328
- else {
329
- style = cssText;
330
- }
331
- styles.set(scopeId, style);
332
- };
333
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
334
- var _a;
335
- let scopeId = getScopeId(cmpMeta, mode);
336
- const style = styles.get(scopeId);
337
- // if an element is NOT connected then getRootNode() will return the wrong root node
338
- // so the fallback is to always use the document for the root node in those cases
339
- styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
340
- if (style) {
341
- if (typeof style === 'string') {
342
- styleContainerNode = styleContainerNode.head || styleContainerNode;
343
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
344
- let styleElm;
345
- if (!appliedStyles) {
346
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
347
- }
348
- if (!appliedStyles.has(scopeId)) {
349
- {
350
- // TODO(STENCIL-659): Remove code implementing the CSS variable shim
351
- {
352
- styleElm = doc.createElement('style');
353
- styleElm.innerHTML = style;
354
- }
355
- // Apply CSP nonce to the style tag if it exists
356
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
357
- if (nonce != null) {
358
- styleElm.setAttribute('nonce', nonce);
359
- }
360
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
361
- }
362
- if (appliedStyles) {
363
- appliedStyles.add(scopeId);
364
- }
365
- }
366
- }
367
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
368
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
369
- }
370
- }
371
- return scopeId;
372
- };
373
- const attachStyles = (hostRef) => {
374
- const cmpMeta = hostRef.$cmpMeta$;
375
- const elm = hostRef.$hostElement$;
376
- const flags = cmpMeta.$flags$;
377
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
378
- const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta, hostRef.$modeName$);
379
- // TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
380
- if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
381
- // only required when we're NOT using native shadow dom (slot)
382
- // or this browser doesn't support native shadow dom
383
- // and this host element was NOT created with SSR
384
- // let's pick out the inner content for slot projection
385
- // create a node to represent where the original
386
- // content was first placed, which is useful later on
387
- // DOM WRITE!!
388
- elm['s-sc'] = scopeId;
389
- elm.classList.add(scopeId + '-h');
390
- }
391
- endAttachStyles();
392
- };
393
- const getScopeId = (cmp, mode) => 'sc-' + (mode && cmp.$flags$ & 32 /* CMP_FLAGS.hasMode */ ? cmp.$tagName$ + '-' + mode : cmp.$tagName$);
394
- /**
395
- * Production setAccessor() function based on Preact by
396
- * Jason Miller (@developit)
397
- * Licensed under the MIT License
398
- * https://github.com/developit/preact/blob/master/LICENSE
399
- *
400
- * Modified for Stencil's compiler and vdom
401
- */
402
- const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
403
- if (oldValue !== newValue) {
404
- let isProp = isMemberInElement(elm, memberName);
405
- let ln = memberName.toLowerCase();
406
- if (memberName === 'class') {
407
- const classList = elm.classList;
408
- const oldClasses = parseClassList(oldValue);
409
- const newClasses = parseClassList(newValue);
410
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
411
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
412
- }
413
- else if (memberName === 'style') {
414
- // update style attribute, css properties and values
415
- {
416
- for (const prop in oldValue) {
417
- if (!newValue || newValue[prop] == null) {
418
- if (prop.includes('-')) {
419
- elm.style.removeProperty(prop);
420
- }
421
- else {
422
- elm.style[prop] = '';
423
- }
424
- }
425
- }
426
- }
427
- for (const prop in newValue) {
428
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
429
- if (prop.includes('-')) {
430
- elm.style.setProperty(prop, newValue[prop]);
431
- }
432
- else {
433
- elm.style[prop] = newValue[prop];
434
- }
435
- }
436
- }
437
- }
438
- else if (memberName === 'key')
439
- ;
440
- else if (memberName === 'ref') {
441
- // minifier will clean this up
442
- if (newValue) {
443
- newValue(elm);
444
- }
445
- }
446
- else if ((!isProp ) &&
447
- memberName[0] === 'o' &&
448
- memberName[1] === 'n') {
449
- // Event Handlers
450
- // so if the member name starts with "on" and the 3rd characters is
451
- // a capital letter, and it's not already a member on the element,
452
- // then we're assuming it's an event listener
453
- if (memberName[2] === '-') {
454
- // on- prefixed events
455
- // allows to be explicit about the dom event to listen without any magic
456
- // under the hood:
457
- // <my-cmp on-click> // listens for "click"
458
- // <my-cmp on-Click> // listens for "Click"
459
- // <my-cmp on-ionChange> // listens for "ionChange"
460
- // <my-cmp on-EVENTS> // listens for "EVENTS"
461
- memberName = memberName.slice(3);
462
- }
463
- else if (isMemberInElement(win, ln)) {
464
- // standard event
465
- // the JSX attribute could have been "onMouseOver" and the
466
- // member name "onmouseover" is on the window's prototype
467
- // so let's add the listener "mouseover", which is all lowercased
468
- memberName = ln.slice(2);
469
- }
470
- else {
471
- // custom event
472
- // the JSX attribute could have been "onMyCustomEvent"
473
- // so let's trim off the "on" prefix and lowercase the first character
474
- // and add the listener "myCustomEvent"
475
- // except for the first character, we keep the event name case
476
- memberName = ln[2] + memberName.slice(3);
477
- }
478
- if (oldValue) {
479
- plt.rel(elm, memberName, oldValue, false);
480
- }
481
- if (newValue) {
482
- plt.ael(elm, memberName, newValue, false);
483
- }
484
- }
485
- else {
486
- // Set property if it exists and it's not a SVG
487
- const isComplex = isComplexType(newValue);
488
- if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
489
- try {
490
- if (!elm.tagName.includes('-')) {
491
- const n = newValue == null ? '' : newValue;
492
- // Workaround for Safari, moving the <input> caret when re-assigning the same valued
493
- if (memberName === 'list') {
494
- isProp = false;
495
- }
496
- else if (oldValue == null || elm[memberName] != n) {
497
- elm[memberName] = n;
498
- }
499
- }
500
- else {
501
- elm[memberName] = newValue;
502
- }
503
- }
504
- catch (e) { }
505
- }
506
- /**
507
- * Need to manually update attribute if:
508
- * - memberName is not an attribute
509
- * - if we are rendering the host element in order to reflect attribute
510
- * - if it's a SVG, since properties might not work in <svg>
511
- * - if the newValue is null/undefined or 'false'.
512
- */
513
- let xlink = false;
514
- {
515
- if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
516
- memberName = ln;
517
- xlink = true;
518
- }
519
- }
520
- if (newValue == null || newValue === false) {
521
- if (newValue !== false || elm.getAttribute(memberName) === '') {
522
- if (xlink) {
523
- elm.removeAttributeNS(XLINK_NS, memberName);
524
- }
525
- else {
526
- elm.removeAttribute(memberName);
527
- }
528
- }
529
- }
530
- else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
531
- newValue = newValue === true ? '' : newValue;
532
- if (xlink) {
533
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
534
- }
535
- else {
536
- elm.setAttribute(memberName, newValue);
537
- }
538
- }
539
- }
540
- }
541
- };
542
- const parseClassListRegex = /\s/;
543
- const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
544
- const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
545
- // if the element passed in is a shadow root, which is a document fragment
546
- // then we want to be adding attrs/props to the shadow root's "host" element
547
- // if it's not a shadow root, then we add attrs/props to the same element
548
- const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
549
- ? newVnode.$elm$.host
550
- : newVnode.$elm$;
551
- const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
552
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
553
- {
554
- // remove attributes no longer present on the vnode by setting them to undefined
555
- for (memberName in oldVnodeAttrs) {
556
- if (!(memberName in newVnodeAttrs)) {
557
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
558
- }
559
- }
560
- }
561
- // add new & update changed attributes
562
- for (memberName in newVnodeAttrs) {
563
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
564
- }
565
- };
566
- /**
567
- * Create a DOM Node corresponding to one of the children of a given VNode.
568
- *
569
- * @param oldParentVNode the parent VNode from the previous render
570
- * @param newParentVNode the parent VNode from the current render
571
- * @param childIndex the index of the VNode, in the _new_ parent node's
572
- * children, for which we will create a new DOM node
573
- * @param parentElm the parent DOM node which our new node will be a child of
574
- * @returns the newly created node
575
- */
576
- const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
577
- // tslint:disable-next-line: prefer-const
578
- const newVNode = newParentVNode.$children$[childIndex];
579
- let i = 0;
580
- let elm;
581
- let childNode;
582
- let oldVNode;
583
- if (!useNativeShadowDom) {
584
- // remember for later we need to check to relocate nodes
585
- checkSlotRelocate = true;
586
- if (newVNode.$tag$ === 'slot') {
587
- if (scopeId) {
588
- // scoped css needs to add its scoped id to the parent element
589
- parentElm.classList.add(scopeId + '-s');
590
- }
591
- newVNode.$flags$ |= newVNode.$children$
592
- ? // slot element has fallback content
593
- 2 /* VNODE_FLAGS.isSlotFallback */
594
- : // slot element does not have fallback content
595
- 1 /* VNODE_FLAGS.isSlotReference */;
596
- }
597
- }
598
- if (newVNode.$text$ !== null) {
599
- // create text node
600
- elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
601
- }
602
- else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
603
- // create a slot reference node
604
- elm = newVNode.$elm$ =
605
- doc.createTextNode('');
606
- }
607
- else {
608
- if (!isSvgMode) {
609
- isSvgMode = newVNode.$tag$ === 'svg';
610
- }
611
- // create element
612
- elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
613
- ? 'slot-fb'
614
- : newVNode.$tag$)
615
- );
616
- if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
617
- isSvgMode = false;
618
- }
619
- // add css classes, attrs, props, listeners, etc.
620
- {
621
- updateElement(null, newVNode, isSvgMode);
622
- }
623
- if (isDef(scopeId) && elm['s-si'] !== scopeId) {
624
- // if there is a scopeId and this is the initial render
625
- // then let's add the scopeId as a css class
626
- elm.classList.add((elm['s-si'] = scopeId));
627
- }
628
- if (newVNode.$children$) {
629
- for (i = 0; i < newVNode.$children$.length; ++i) {
630
- // create the node
631
- childNode = createElm(oldParentVNode, newVNode, i, elm);
632
- // return node could have been null
633
- if (childNode) {
634
- // append our new node
635
- elm.appendChild(childNode);
636
- }
637
- }
638
- }
639
- {
640
- if (newVNode.$tag$ === 'svg') {
641
- // Only reset the SVG context when we're exiting <svg> element
642
- isSvgMode = false;
643
- }
644
- else if (elm.tagName === 'foreignObject') {
645
- // Reenter SVG context when we're exiting <foreignObject> element
646
- isSvgMode = true;
647
- }
648
- }
649
- }
650
- {
651
- elm['s-hn'] = hostTagName;
652
- if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
653
- // remember the content reference comment
654
- elm['s-sr'] = true;
655
- // remember the content reference comment
656
- elm['s-cr'] = contentRef;
657
- // remember the slot name, or empty string for default slot
658
- elm['s-sn'] = newVNode.$name$ || '';
659
- // check if we've got an old vnode for this slot
660
- oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
661
- if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
662
- // we've got an old slot vnode and the wrapper is being replaced
663
- // so let's move the old slot content back to it's original location
664
- putBackInOriginalLocation(oldParentVNode.$elm$, false);
665
- }
666
- }
667
- }
668
- return elm;
669
- };
670
- const putBackInOriginalLocation = (parentElm, recursive) => {
671
- plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
672
- const oldSlotChildNodes = parentElm.childNodes;
673
- for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
674
- const childNode = oldSlotChildNodes[i];
675
- if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
676
- // // this child node in the old element is from another component
677
- // // remove this node from the old slot's parent
678
- // childNode.remove();
679
- // and relocate it back to it's original location
680
- parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
681
- // remove the old original location comment entirely
682
- // later on the patch function will know what to do
683
- // and move this to the correct spot in need be
684
- childNode['s-ol'].remove();
685
- childNode['s-ol'] = undefined;
686
- checkSlotRelocate = true;
687
- }
688
- if (recursive) {
689
- putBackInOriginalLocation(childNode, recursive);
690
- }
691
- }
692
- plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
693
- };
694
- /**
695
- * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
696
- * add them to the DOM in the appropriate place.
697
- *
698
- * @param parentElm the DOM node which should be used as a parent for the new
699
- * DOM nodes
700
- * @param before a child of the `parentElm` which the new children should be
701
- * inserted before (optional)
702
- * @param parentVNode the parent virtual DOM node
703
- * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
704
- * @param startIdx the index in the child virtual DOM nodes at which to start
705
- * creating DOM nodes (inclusive)
706
- * @param endIdx the index in the child virtual DOM nodes at which to stop
707
- * creating DOM nodes (inclusive)
708
- */
709
- const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
710
- let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
711
- let childNode;
712
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
713
- containerElm = containerElm.shadowRoot;
714
- }
715
- for (; startIdx <= endIdx; ++startIdx) {
716
- if (vnodes[startIdx]) {
717
- childNode = createElm(null, parentVNode, startIdx, parentElm);
718
- if (childNode) {
719
- vnodes[startIdx].$elm$ = childNode;
720
- containerElm.insertBefore(childNode, referenceNode(before) );
721
- }
722
- }
723
- }
724
- };
725
- /**
726
- * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
727
- * This can be used to, for instance, clean up after a list of children which
728
- * should no longer be shown.
729
- *
730
- * This function also handles some of Stencil's slot relocation logic.
731
- *
732
- * @param vnodes a list of virtual DOM nodes to remove
733
- * @param startIdx the index at which to start removing nodes (inclusive)
734
- * @param endIdx the index at which to stop removing nodes (inclusive)
735
- */
736
- const removeVnodes = (vnodes, startIdx, endIdx) => {
737
- for (let index = startIdx; index <= endIdx; ++index) {
738
- const vnode = vnodes[index];
739
- if (vnode) {
740
- const elm = vnode.$elm$;
741
- nullifyVNodeRefs(vnode);
742
- if (elm) {
743
- {
744
- // we're removing this element
745
- // so it's possible we need to show slot fallback content now
746
- checkSlotFallbackVisibility = true;
747
- if (elm['s-ol']) {
748
- // remove the original location comment
749
- elm['s-ol'].remove();
750
- }
751
- else {
752
- // it's possible that child nodes of the node
753
- // that's being removed are slot nodes
754
- putBackInOriginalLocation(elm, true);
755
- }
756
- }
757
- // remove the vnode's element from the dom
758
- elm.remove();
759
- }
760
- }
761
- }
762
- };
763
- /**
764
- * Reconcile the children of a new VNode with the children of an old VNode by
765
- * traversing the two collections of children, identifying nodes that are
766
- * conserved or changed, calling out to `patch` to make any necessary
767
- * updates to the DOM, and rearranging DOM nodes as needed.
768
- *
769
- * The algorithm for reconciling children works by analyzing two 'windows' onto
770
- * the two arrays of children (`oldCh` and `newCh`). We keep track of the
771
- * 'windows' by storing start and end indices and references to the
772
- * corresponding array entries. Initially the two 'windows' are basically equal
773
- * to the entire array, but we progressively narrow the windows until there are
774
- * no children left to update by doing the following:
775
- *
776
- * 1. Skip any `null` entries at the beginning or end of the two arrays, so
777
- * that if we have an initial array like the following we'll end up dealing
778
- * only with a window bounded by the highlighted elements:
779
- *
780
- * [null, null, VNode1 , ... , VNode2, null, null]
781
- * ^^^^^^ ^^^^^^
782
- *
783
- * 2. Check to see if the elements at the head and tail positions are equal
784
- * across the windows. This will basically detect elements which haven't
785
- * been added, removed, or changed position, i.e. if you had the following
786
- * VNode elements (represented as HTML):
787
- *
788
- * oldVNode: `<div><p><span>HEY</span></p></div>`
789
- * newVNode: `<div><p><span>THERE</span></p></div>`
790
- *
791
- * Then when comparing the children of the `<div>` tag we check the equality
792
- * of the VNodes corresponding to the `<p>` tags and, since they are the
793
- * same tag in the same position, we'd be able to avoid completely
794
- * re-rendering the subtree under them with a new DOM element and would just
795
- * call out to `patch` to handle reconciling their children and so on.
796
- *
797
- * 3. Check, for both windows, to see if the element at the beginning of the
798
- * window corresponds to the element at the end of the other window. This is
799
- * a heuristic which will let us identify _some_ situations in which
800
- * elements have changed position, for instance it _should_ detect that the
801
- * children nodes themselves have not changed but merely moved in the
802
- * following example:
803
- *
804
- * oldVNode: `<div><element-one /><element-two /></div>`
805
- * newVNode: `<div><element-two /><element-one /></div>`
806
- *
807
- * If we find cases like this then we also need to move the concrete DOM
808
- * elements corresponding to the moved children to write the re-order to the
809
- * DOM.
810
- *
811
- * 4. Finally, if VNodes have the `key` attribute set on them we check for any
812
- * nodes in the old children which have the same key as the first element in
813
- * our window on the new children. If we find such a node we handle calling
814
- * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
815
- * what we find.
816
- *
817
- * Finally, once we've narrowed our 'windows' to the point that either of them
818
- * collapse (i.e. they have length 0) we then handle any remaining VNode
819
- * insertion or deletion that needs to happen to get a DOM state that correctly
820
- * reflects the new child VNodes. If, for instance, after our window on the old
821
- * children has collapsed we still have more nodes on the new children that
822
- * we haven't dealt with yet then we need to add them, or if the new children
823
- * collapse but we still have unhandled _old_ children then we need to make
824
- * sure the corresponding DOM nodes are removed.
825
- *
826
- * @param parentElm the node into which the parent VNode is rendered
827
- * @param oldCh the old children of the parent node
828
- * @param newVNode the new VNode which will replace the parent
829
- * @param newCh the new children of the parent node
830
- */
831
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
832
- let oldStartIdx = 0;
833
- let newStartIdx = 0;
834
- let idxInOld = 0;
835
- let i = 0;
836
- let oldEndIdx = oldCh.length - 1;
837
- let oldStartVnode = oldCh[0];
838
- let oldEndVnode = oldCh[oldEndIdx];
839
- let newEndIdx = newCh.length - 1;
840
- let newStartVnode = newCh[0];
841
- let newEndVnode = newCh[newEndIdx];
842
- let node;
843
- let elmToMove;
844
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
845
- if (oldStartVnode == null) {
846
- // VNode might have been moved left
847
- oldStartVnode = oldCh[++oldStartIdx];
848
- }
849
- else if (oldEndVnode == null) {
850
- oldEndVnode = oldCh[--oldEndIdx];
851
- }
852
- else if (newStartVnode == null) {
853
- newStartVnode = newCh[++newStartIdx];
854
- }
855
- else if (newEndVnode == null) {
856
- newEndVnode = newCh[--newEndIdx];
857
- }
858
- else if (isSameVnode(oldStartVnode, newStartVnode)) {
859
- // if the start nodes are the same then we should patch the new VNode
860
- // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
861
- // indices to reflect that. We don't need to move any DOM Nodes around
862
- // since things are matched up in order.
863
- patch(oldStartVnode, newStartVnode);
864
- oldStartVnode = oldCh[++oldStartIdx];
865
- newStartVnode = newCh[++newStartIdx];
866
- }
867
- else if (isSameVnode(oldEndVnode, newEndVnode)) {
868
- // likewise, if the end nodes are the same we patch new onto old and
869
- // decrement our end indices, and also likewise in this case we don't
870
- // need to move any DOM Nodes.
871
- patch(oldEndVnode, newEndVnode);
872
- oldEndVnode = oldCh[--oldEndIdx];
873
- newEndVnode = newCh[--newEndIdx];
874
- }
875
- else if (isSameVnode(oldStartVnode, newEndVnode)) {
876
- // case: "Vnode moved right"
877
- //
878
- // We've found that the last node in our window on the new children is
879
- // the same VNode as the _first_ node in our window on the old children
880
- // we're dealing with now. Visually, this is the layout of these two
881
- // nodes:
882
- //
883
- // newCh: [..., newStartVnode , ... , newEndVnode , ...]
884
- // ^^^^^^^^^^^
885
- // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
886
- // ^^^^^^^^^^^^^
887
- //
888
- // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
889
- // and move the DOM element for `oldStartVnode`.
890
- if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
891
- putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
892
- }
893
- patch(oldStartVnode, newEndVnode);
894
- // We need to move the element for `oldStartVnode` into a position which
895
- // will be appropriate for `newEndVnode`. For this we can use
896
- // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
897
- // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
898
- // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
899
- //
900
- // <old-start-node />
901
- // <some-intervening-node />
902
- // <old-end-node />
903
- // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
904
- // <next-sibling />
905
- //
906
- // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
907
- // the node for `oldStartVnode` at the end of the children of
908
- // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
909
- // aren't any siblings, and passing `null` to `Node.insertBefore` will
910
- // append it to the children of the parent element.
911
- parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
912
- oldStartVnode = oldCh[++oldStartIdx];
913
- newEndVnode = newCh[--newEndIdx];
914
- }
915
- else if (isSameVnode(oldEndVnode, newStartVnode)) {
916
- // case: "Vnode moved left"
917
- //
918
- // We've found that the first node in our window on the new children is
919
- // the same VNode as the _last_ node in our window on the old children.
920
- // Visually, this is the layout of these two nodes:
921
- //
922
- // newCh: [..., newStartVnode , ... , newEndVnode , ...]
923
- // ^^^^^^^^^^^^^
924
- // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
925
- // ^^^^^^^^^^^
926
- //
927
- // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
928
- // (which will handle updating any changed attributes, reconciling their
929
- // children etc) but we also need to move the DOM node to which
930
- // `oldEndVnode` corresponds.
931
- if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
932
- putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
933
- }
934
- patch(oldEndVnode, newStartVnode);
935
- // We've already checked above if `oldStartVnode` and `newStartVnode` are
936
- // the same node, so since we're here we know that they are not. Thus we
937
- // can move the element for `oldEndVnode` _before_ the element for
938
- // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
939
- // future.
940
- parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
941
- oldEndVnode = oldCh[--oldEndIdx];
942
- newStartVnode = newCh[++newStartIdx];
943
- }
944
- else {
945
- // Here we do some checks to match up old and new nodes based on the
946
- // `$key$` attribute, which is set by putting a `key="my-key"` attribute
947
- // in the JSX for a DOM element in the implementation of a Stencil
948
- // component.
949
- //
950
- // First we check to see if there are any nodes in the array of old
951
- // children which have the same key as the first node in the new
952
- // children.
953
- idxInOld = -1;
954
- {
955
- for (i = oldStartIdx; i <= oldEndIdx; ++i) {
956
- if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
957
- idxInOld = i;
958
- break;
959
- }
960
- }
961
- }
962
- if (idxInOld >= 0) {
963
- // We found a node in the old children which matches up with the first
964
- // node in the new children! So let's deal with that
965
- elmToMove = oldCh[idxInOld];
966
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
967
- // the tag doesn't match so we'll need a new DOM element
968
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
969
- }
970
- else {
971
- patch(elmToMove, newStartVnode);
972
- // invalidate the matching old node so that we won't try to update it
973
- // again later on
974
- oldCh[idxInOld] = undefined;
975
- node = elmToMove.$elm$;
976
- }
977
- newStartVnode = newCh[++newStartIdx];
978
- }
979
- else {
980
- // We either didn't find an element in the old children that matches
981
- // the key of the first new child OR the build is not using `key`
982
- // attributes at all. In either case we need to create a new element
983
- // for the new node.
984
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
985
- newStartVnode = newCh[++newStartIdx];
986
- }
987
- if (node) {
988
- // if we created a new node then handle inserting it to the DOM
989
- {
990
- parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
991
- }
992
- }
993
- }
994
- }
995
- if (oldStartIdx > oldEndIdx) {
996
- // we have some more new nodes to add which don't match up with old nodes
997
- addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
998
- }
999
- else if (newStartIdx > newEndIdx) {
1000
- // there are nodes in the `oldCh` array which no longer correspond to nodes
1001
- // in the new array, so lets remove them (which entails cleaning up the
1002
- // relevant DOM nodes)
1003
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
1004
- }
1005
- };
1006
- /**
1007
- * Compare two VNodes to determine if they are the same
1008
- *
1009
- * **NB**: This function is an equality _heuristic_ based on the available
1010
- * information set on the two VNodes and can be misleading under certain
1011
- * circumstances. In particular, if the two nodes do not have `key` attrs
1012
- * (available under `$key$` on VNodes) then the function falls back on merely
1013
- * checking that they have the same tag.
1014
- *
1015
- * So, in other words, if `key` attrs are not set on VNodes which may be
1016
- * changing order within a `children` array or something along those lines then
1017
- * we could obtain a false negative and then have to do needless re-rendering
1018
- * (i.e. we'd say two VNodes aren't equal when in fact they should be).
1019
- *
1020
- * @param leftVNode the first VNode to check
1021
- * @param rightVNode the second VNode to check
1022
- * @returns whether they're equal or not
1023
- */
1024
- const isSameVnode = (leftVNode, rightVNode) => {
1025
- // compare if two vnode to see if they're "technically" the same
1026
- // need to have the same element tag, and same key to be the same
1027
- if (leftVNode.$tag$ === rightVNode.$tag$) {
1028
- if (leftVNode.$tag$ === 'slot') {
1029
- return leftVNode.$name$ === rightVNode.$name$;
1030
- }
1031
- // this will be set if components in the build have `key` attrs set on them
1032
- {
1033
- return leftVNode.$key$ === rightVNode.$key$;
1034
- }
1035
- }
1036
- return false;
1037
- };
1038
- const referenceNode = (node) => {
1039
- // this node was relocated to a new location in the dom
1040
- // because of some other component's slot
1041
- // but we still have an html comment in place of where
1042
- // it's original location was according to it's original vdom
1043
- return (node && node['s-ol']) || node;
1044
- };
1045
- const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
1046
- /**
1047
- * Handle reconciling an outdated VNode with a new one which corresponds to
1048
- * it. This function handles flushing updates to the DOM and reconciling the
1049
- * children of the two nodes (if any).
1050
- *
1051
- * @param oldVNode an old VNode whose DOM element and children we want to update
1052
- * @param newVNode a new VNode representing an updated version of the old one
1053
- */
1054
- const patch = (oldVNode, newVNode) => {
1055
- const elm = (newVNode.$elm$ = oldVNode.$elm$);
1056
- const oldChildren = oldVNode.$children$;
1057
- const newChildren = newVNode.$children$;
1058
- const tag = newVNode.$tag$;
1059
- const text = newVNode.$text$;
1060
- let defaultHolder;
1061
- if (text === null) {
1062
- {
1063
- // test if we're rendering an svg element, or still rendering nodes inside of one
1064
- // only add this to the when the compiler sees we're using an svg somewhere
1065
- isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
1066
- }
1067
- {
1068
- if (tag === 'slot')
1069
- ;
1070
- else {
1071
- // either this is the first render of an element OR it's an update
1072
- // AND we already know it's possible it could have changed
1073
- // this updates the element's css classes, attrs, props, listeners, etc.
1074
- updateElement(oldVNode, newVNode, isSvgMode);
1075
- }
1076
- }
1077
- if (oldChildren !== null && newChildren !== null) {
1078
- // looks like there's child vnodes for both the old and new vnodes
1079
- // so we need to call `updateChildren` to reconcile them
1080
- updateChildren(elm, oldChildren, newVNode, newChildren);
1081
- }
1082
- else if (newChildren !== null) {
1083
- // no old child vnodes, but there are new child vnodes to add
1084
- if (oldVNode.$text$ !== null) {
1085
- // the old vnode was text, so be sure to clear it out
1086
- elm.textContent = '';
1087
- }
1088
- // add the new vnode children
1089
- addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
1090
- }
1091
- else if (oldChildren !== null) {
1092
- // no new child vnodes, but there are old child vnodes to remove
1093
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
1094
- }
1095
- if (isSvgMode && tag === 'svg') {
1096
- isSvgMode = false;
1097
- }
1098
- }
1099
- else if ((defaultHolder = elm['s-cr'])) {
1100
- // this element has slotted content
1101
- defaultHolder.parentNode.textContent = text;
1102
- }
1103
- else if (oldVNode.$text$ !== text) {
1104
- // update the text content for the text only vnode
1105
- // and also only if the text is different than before
1106
- elm.data = text;
1107
- }
1108
- };
1109
- const updateFallbackSlotVisibility = (elm) => {
1110
- // tslint:disable-next-line: prefer-const
1111
- const childNodes = elm.childNodes;
1112
- let childNode;
1113
- let i;
1114
- let ilen;
1115
- let j;
1116
- let slotNameAttr;
1117
- let nodeType;
1118
- for (i = 0, ilen = childNodes.length; i < ilen; i++) {
1119
- childNode = childNodes[i];
1120
- if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1121
- if (childNode['s-sr']) {
1122
- // this is a slot fallback node
1123
- // get the slot name for this slot reference node
1124
- slotNameAttr = childNode['s-sn'];
1125
- // by default always show a fallback slot node
1126
- // then hide it if there are other slots in the light dom
1127
- childNode.hidden = false;
1128
- for (j = 0; j < ilen; j++) {
1129
- nodeType = childNodes[j].nodeType;
1130
- if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
1131
- // this sibling node is from a different component OR is a named fallback slot node
1132
- if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
1133
- childNode.hidden = true;
1134
- break;
1135
- }
1136
- }
1137
- else {
1138
- // this is a default fallback slot node
1139
- // any element or text node (with content)
1140
- // should hide the default fallback slot node
1141
- if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1142
- (nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
1143
- childNode.hidden = true;
1144
- break;
1145
- }
1146
- }
1147
- }
1148
- }
1149
- // keep drilling down
1150
- updateFallbackSlotVisibility(childNode);
1151
- }
1152
- }
1153
- };
1154
- const relocateNodes = [];
1155
- const relocateSlotContent = (elm) => {
1156
- // tslint:disable-next-line: prefer-const
1157
- let childNode;
1158
- let node;
1159
- let hostContentNodes;
1160
- let slotNameAttr;
1161
- let relocateNodeData;
1162
- let j;
1163
- let i = 0;
1164
- const childNodes = elm.childNodes;
1165
- const ilen = childNodes.length;
1166
- for (; i < ilen; i++) {
1167
- childNode = childNodes[i];
1168
- if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
1169
- // first got the content reference comment node
1170
- // then we got it's parent, which is where all the host content is in now
1171
- hostContentNodes = node.parentNode.childNodes;
1172
- slotNameAttr = childNode['s-sn'];
1173
- for (j = hostContentNodes.length - 1; j >= 0; j--) {
1174
- node = hostContentNodes[j];
1175
- if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
1176
- // let's do some relocating to its new home
1177
- // but never relocate a content reference node
1178
- // that is suppose to always represent the original content location
1179
- if (isNodeLocatedInSlot(node, slotNameAttr)) {
1180
- // it's possible we've already decided to relocate this node
1181
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1182
- // made some changes to slots
1183
- // let's make sure we also double check
1184
- // fallbacks are correctly hidden or shown
1185
- checkSlotFallbackVisibility = true;
1186
- node['s-sn'] = node['s-sn'] || slotNameAttr;
1187
- if (relocateNodeData) {
1188
- // previously we never found a slot home for this node
1189
- // but turns out we did, so let's remember it now
1190
- relocateNodeData.$slotRefNode$ = childNode;
1191
- }
1192
- else {
1193
- // add to our list of nodes to relocate
1194
- relocateNodes.push({
1195
- $slotRefNode$: childNode,
1196
- $nodeToRelocate$: node,
1197
- });
1198
- }
1199
- if (node['s-sr']) {
1200
- relocateNodes.map((relocateNode) => {
1201
- if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
1202
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1203
- if (relocateNodeData && !relocateNode.$slotRefNode$) {
1204
- relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1205
- }
1206
- }
1207
- });
1208
- }
1209
- }
1210
- else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1211
- // so far this element does not have a slot home, not setting slotRefNode on purpose
1212
- // if we never find a home for this element then we'll need to hide it
1213
- relocateNodes.push({
1214
- $nodeToRelocate$: node,
1215
- });
1216
- }
1217
- }
1218
- }
1219
- }
1220
- if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1221
- relocateSlotContent(childNode);
1222
- }
1223
- }
1224
- };
1225
- const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
1226
- if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1227
- if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
1228
- return true;
1229
- }
1230
- if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
1231
- return true;
1232
- }
1233
- return false;
1234
- }
1235
- if (nodeToRelocate['s-sn'] === slotNameAttr) {
1236
- return true;
1237
- }
1238
- return slotNameAttr === '';
1239
- };
1240
- /**
1241
- * 'Nullify' any VDom `ref` callbacks on a VDom node or its children by
1242
- * calling them with `null`. This signals that the DOM element corresponding to
1243
- * the VDom node has been removed from the DOM.
1244
- *
1245
- * @param vNode a virtual DOM node
1246
- */
1247
- const nullifyVNodeRefs = (vNode) => {
1248
- {
1249
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1250
- vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
1251
- }
1252
- };
1253
- /**
1254
- * The main entry point for Stencil's virtual DOM-based rendering engine
1255
- *
1256
- * Given a {@link d.HostRef} container and some virtual DOM nodes, this
1257
- * function will handle creating a virtual DOM tree with a single root, patching
1258
- * the current virtual DOM tree onto an old one (if any), dealing with slot
1259
- * relocation, and reflecting attributes.
1260
- *
1261
- * @param hostRef data needed to root and render the virtual DOM tree, such as
1262
- * the DOM node into which it should be rendered.
1263
- * @param renderFnResults the virtual DOM nodes to be rendered
1264
- */
1265
- const renderVdom = (hostRef, renderFnResults) => {
1266
- const hostElm = hostRef.$hostElement$;
1267
- const cmpMeta = hostRef.$cmpMeta$;
1268
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1269
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1270
- hostTagName = hostElm.tagName;
1271
- if (cmpMeta.$attrsToReflect$) {
1272
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1273
- cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1274
- }
1275
- rootVnode.$tag$ = null;
1276
- rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
1277
- hostRef.$vnode$ = rootVnode;
1278
- rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
1279
- {
1280
- scopeId = hostElm['s-sc'];
1281
- }
1282
- {
1283
- contentRef = hostElm['s-cr'];
1284
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1285
- // always reset
1286
- checkSlotFallbackVisibility = false;
1287
- }
1288
- // synchronous patch
1289
- patch(oldVNode, rootVnode);
1290
- {
1291
- // while we're moving nodes around existing nodes, temporarily disable
1292
- // the disconnectCallback from working
1293
- plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1294
- if (checkSlotRelocate) {
1295
- relocateSlotContent(rootVnode.$elm$);
1296
- let relocateData;
1297
- let nodeToRelocate;
1298
- let orgLocationNode;
1299
- let parentNodeRef;
1300
- let insertBeforeNode;
1301
- let refNode;
1302
- let i = 0;
1303
- for (; i < relocateNodes.length; i++) {
1304
- relocateData = relocateNodes[i];
1305
- nodeToRelocate = relocateData.$nodeToRelocate$;
1306
- if (!nodeToRelocate['s-ol']) {
1307
- // add a reference node marking this node's original location
1308
- // keep a reference to this node for later lookups
1309
- orgLocationNode =
1310
- doc.createTextNode('');
1311
- orgLocationNode['s-nr'] = nodeToRelocate;
1312
- nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1313
- }
1314
- }
1315
- for (i = 0; i < relocateNodes.length; i++) {
1316
- relocateData = relocateNodes[i];
1317
- nodeToRelocate = relocateData.$nodeToRelocate$;
1318
- if (relocateData.$slotRefNode$) {
1319
- // by default we're just going to insert it directly
1320
- // after the slot reference node
1321
- parentNodeRef = relocateData.$slotRefNode$.parentNode;
1322
- insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
1323
- orgLocationNode = nodeToRelocate['s-ol'];
1324
- while ((orgLocationNode = orgLocationNode.previousSibling)) {
1325
- refNode = orgLocationNode['s-nr'];
1326
- if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1327
- refNode = refNode.nextSibling;
1328
- if (!refNode || !refNode['s-nr']) {
1329
- insertBeforeNode = refNode;
1330
- break;
1331
- }
1332
- }
1333
- }
1334
- if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1335
- nodeToRelocate.nextSibling !== insertBeforeNode) {
1336
- // we've checked that it's worth while to relocate
1337
- // since that the node to relocate
1338
- // has a different next sibling or parent relocated
1339
- if (nodeToRelocate !== insertBeforeNode) {
1340
- if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1341
- // probably a component in the index.html that doesn't have it's hostname set
1342
- nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1343
- }
1344
- // add it back to the dom but in its new home
1345
- parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1346
- }
1347
- }
1348
- }
1349
- else {
1350
- // this node doesn't have a slot home to go to, so let's hide it
1351
- if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1352
- nodeToRelocate.hidden = true;
1353
- }
1354
- }
1355
- }
1356
- }
1357
- if (checkSlotFallbackVisibility) {
1358
- updateFallbackSlotVisibility(rootVnode.$elm$);
1359
- }
1360
- // done moving nodes around
1361
- // allow the disconnect callback to work again
1362
- plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1363
- // always reset
1364
- relocateNodes.length = 0;
1365
- }
1366
- };
1367
- const attachToAncestor = (hostRef, ancestorComponent) => {
1368
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1369
- ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1370
- }
1371
- };
1372
- const scheduleUpdate = (hostRef, isInitialLoad) => {
1373
- {
1374
- hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1375
- }
1376
- if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1377
- hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1378
- return;
1379
- }
1380
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1381
- // there is no ancestor component or the ancestor component
1382
- // has already fired off its lifecycle update then
1383
- // fire off the initial update
1384
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1385
- return writeTask(dispatch) ;
1386
- };
1387
- /**
1388
- * Dispatch initial-render and update lifecycle hooks, enqueuing calls to
1389
- * component lifecycle methods like `componentWillLoad` as well as
1390
- * {@link updateComponent}, which will kick off the virtual DOM re-render.
1391
- *
1392
- * @param hostRef a reference to a host DOM node
1393
- * @param isInitialLoad whether we're on the initial load or not
1394
- * @returns an empty Promise which is used to enqueue a series of operations for
1395
- * the component
1396
- */
1397
- const dispatchHooks = (hostRef, isInitialLoad) => {
1398
- const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1399
- const instance = hostRef.$lazyInstance$ ;
1400
- // We're going to use this variable together with `enqueue` to implement a
1401
- // little promise-based queue. We start out with it `undefined`. When we add
1402
- // the first function to the queue we'll set this variable to be that
1403
- // function's return value. When we attempt to add subsequent values to the
1404
- // queue we'll check that value and, if it was a `Promise`, we'll then chain
1405
- // the new function off of that `Promise` using `.then()`. This will give our
1406
- // queue two nice properties:
1407
- //
1408
- // 1. If all functions added to the queue are synchronous they'll be called
1409
- // synchronously right away.
1410
- // 2. If all functions added to the queue are asynchronous they'll all be
1411
- // called in order after `dispatchHooks` exits.
1412
- let maybePromise;
1413
- if (isInitialLoad) {
1414
- {
1415
- hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
1416
- if (hostRef.$queuedListeners$) {
1417
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1418
- hostRef.$queuedListeners$ = undefined;
1419
- }
1420
- }
1421
- {
1422
- // If `componentWillLoad` returns a `Promise` then we want to wait on
1423
- // whatever's going on in that `Promise` before we launch into
1424
- // rendering the component, doing other lifecycle stuff, etc. So
1425
- // in that case we assign the returned promise to the variable we
1426
- // declared above to hold a possible 'queueing' Promise
1427
- maybePromise = safeCall(instance, 'componentWillLoad');
1428
- }
1429
- }
1430
- else {
1431
- {
1432
- // Like `componentWillLoad` above, we allow Stencil component
1433
- // authors to return a `Promise` from this lifecycle callback, and
1434
- // we specify that our runtime will wait for that `Promise` to
1435
- // resolve before the component re-renders. So if the method
1436
- // returns a `Promise` we need to keep it around!
1437
- maybePromise = safeCall(instance, 'componentWillUpdate');
1438
- }
1439
- }
1440
- {
1441
- maybePromise = enqueue(maybePromise, () => safeCall(instance, 'componentWillRender'));
1442
- }
1443
- endSchedule();
1444
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1445
- };
1446
- /**
1447
- * This function uses a Promise to implement a simple first-in, first-out queue
1448
- * of functions to be called.
1449
- *
1450
- * The queue is ordered on the basis of the first argument. If it's
1451
- * `undefined`, then nothing is on the queue yet, so the provided function can
1452
- * be called synchronously (although note that this function may return a
1453
- * `Promise`). The idea is that then the return value of that enqueueing
1454
- * operation is kept around, so that if it was a `Promise` then subsequent
1455
- * functions can be enqueued by calling this function again with that `Promise`
1456
- * as the first argument.
1457
- *
1458
- * @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
1459
- * @param fn a function to enqueue
1460
- * @returns either a `Promise` or the return value of the provided function
1461
- */
1462
- const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
1463
- /**
1464
- * Check that a value is a `Promise`. To check, we first see if the value is an
1465
- * instance of the `Promise` global. In a few circumstances, in particular if
1466
- * the global has been overwritten, this is could be misleading, so we also do
1467
- * a little 'duck typing' check to see if the `.then` property of the value is
1468
- * defined and a function.
1469
- *
1470
- * @param maybePromise it might be a promise!
1471
- * @returns whether it is or not
1472
- */
1473
- const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
1474
- (maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
1475
- const updateComponent = async (hostRef, instance, isInitialLoad) => {
1476
- var _a;
1477
- const elm = hostRef.$hostElement$;
1478
- const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1479
- const rc = elm['s-rc'];
1480
- if (isInitialLoad) {
1481
- // DOM WRITE!
1482
- attachStyles(hostRef);
1483
- }
1484
- const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1485
- {
1486
- callRender(hostRef, instance);
1487
- }
1488
- if (rc) {
1489
- // ok, so turns out there are some child host elements
1490
- // waiting on this parent element to load
1491
- // let's fire off all update callbacks waiting
1492
- rc.map((cb) => cb());
1493
- elm['s-rc'] = undefined;
1494
- }
1495
- endRender();
1496
- endUpdate();
1497
- {
1498
- const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
1499
- const postUpdate = () => postUpdateComponent(hostRef);
1500
- if (childrenPromises.length === 0) {
1501
- postUpdate();
1502
- }
1503
- else {
1504
- Promise.all(childrenPromises).then(postUpdate);
1505
- hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1506
- childrenPromises.length = 0;
1507
- }
1508
- }
1509
- };
1510
- const callRender = (hostRef, instance, elm) => {
1511
- try {
1512
- instance = instance.render() ;
1513
- {
1514
- hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1515
- }
1516
- {
1517
- hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1518
- }
1519
- {
1520
- {
1521
- // looks like we've got child nodes to render into this host element
1522
- // or we need to update the css class/attrs on the host element
1523
- // DOM WRITE!
1524
- {
1525
- renderVdom(hostRef, instance);
1526
- }
1527
- }
1528
- }
1529
- }
1530
- catch (e) {
1531
- consoleError(e, hostRef.$hostElement$);
1532
- }
1533
- return null;
1534
- };
1535
- const postUpdateComponent = (hostRef) => {
1536
- const tagName = hostRef.$cmpMeta$.$tagName$;
1537
- const elm = hostRef.$hostElement$;
1538
- const endPostUpdate = createTime('postUpdate', tagName);
1539
- const instance = hostRef.$lazyInstance$ ;
1540
- const ancestorComponent = hostRef.$ancestorComponent$;
1541
- {
1542
- safeCall(instance, 'componentDidRender');
1543
- }
1544
- if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1545
- hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1546
- {
1547
- // DOM WRITE!
1548
- addHydratedFlag(elm);
1549
- }
1550
- {
1551
- safeCall(instance, 'componentDidLoad');
1552
- }
1553
- endPostUpdate();
1554
- {
1555
- hostRef.$onReadyResolve$(elm);
1556
- if (!ancestorComponent) {
1557
- appDidLoad();
1558
- }
1559
- }
1560
- }
1561
- else {
1562
- endPostUpdate();
1563
- }
1564
- // load events fire from bottom to top
1565
- // the deepest elements load first then bubbles up
1566
- {
1567
- if (hostRef.$onRenderResolve$) {
1568
- hostRef.$onRenderResolve$();
1569
- hostRef.$onRenderResolve$ = undefined;
1570
- }
1571
- if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1572
- nextTick(() => scheduleUpdate(hostRef, false));
1573
- }
1574
- hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1575
- }
1576
- // ( •_•)
1577
- // ( •_•)>⌐■-■
1578
- // (⌐■_■)
1579
- };
1580
- const appDidLoad = (who) => {
1581
- // on appload
1582
- // we have finish the first big initial render
1583
- {
1584
- addHydratedFlag(doc.documentElement);
1585
- }
1586
- {
1587
- plt.$flags$ |= 2 /* PLATFORM_FLAGS.appLoaded */;
1588
- }
1589
- nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1590
- };
1591
- const safeCall = (instance, method, arg) => {
1592
- if (instance && instance[method]) {
1593
- try {
1594
- return instance[method](arg);
1595
- }
1596
- catch (e) {
1597
- consoleError(e);
1598
- }
1599
- }
1600
- return undefined;
1601
- };
1602
- const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1603
- ;
1604
- const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1605
- const setValue = (ref, propName, newVal, cmpMeta) => {
1606
- // check our new property value against our internal value
1607
- const hostRef = getHostRef(ref);
1608
- const elm = hostRef.$hostElement$ ;
1609
- const oldVal = hostRef.$instanceValues$.get(propName);
1610
- const flags = hostRef.$flags$;
1611
- const instance = hostRef.$lazyInstance$ ;
1612
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1613
- // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1614
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1615
- const didValueChange = newVal !== oldVal && !areBothNaN;
1616
- if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1617
- // gadzooks! the property's value has changed!!
1618
- // set our new value!
1619
- hostRef.$instanceValues$.set(propName, newVal);
1620
- if (instance) {
1621
- // get an array of method names of watch functions to call
1622
- if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1623
- const watchMethods = cmpMeta.$watchers$[propName];
1624
- if (watchMethods) {
1625
- // this instance is watching for when this property changed
1626
- watchMethods.map((watchMethodName) => {
1627
- try {
1628
- // fire off each of the watch methods that are watching this property
1629
- instance[watchMethodName](newVal, oldVal, propName);
1630
- }
1631
- catch (e) {
1632
- consoleError(e, elm);
1633
- }
1634
- });
1635
- }
1636
- }
1637
- if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1638
- // looks like this value actually changed, so we've got work to do!
1639
- // but only if we've already rendered, otherwise just chill out
1640
- // queue that we need to do an update, but don't worry about queuing
1641
- // up millions cuz this function ensures it only runs once
1642
- scheduleUpdate(hostRef, false);
1643
- }
1644
- }
1645
- }
1646
- };
1647
- /**
1648
- * Attach a series of runtime constructs to a compiled Stencil component
1649
- * constructor, including getters and setters for the `@Prop` and `@State`
1650
- * decorators, callbacks for when attributes change, and so on.
1651
- *
1652
- * @param Cstr the constructor for a component that we need to process
1653
- * @param cmpMeta metadata collected previously about the component
1654
- * @param flags a number used to store a series of bit flags
1655
- * @returns a reference to the same constructor passed in (but now mutated)
1656
- */
1657
- const proxyComponent = (Cstr, cmpMeta, flags) => {
1658
- if (cmpMeta.$members$) {
1659
- if (Cstr.watchers) {
1660
- cmpMeta.$watchers$ = Cstr.watchers;
1661
- }
1662
- // It's better to have a const than two Object.entries()
1663
- const members = Object.entries(cmpMeta.$members$);
1664
- const prototype = Cstr.prototype;
1665
- members.map(([memberName, [memberFlags]]) => {
1666
- if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1667
- ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1668
- // proxyComponent - prop
1669
- Object.defineProperty(prototype, memberName, {
1670
- get() {
1671
- // proxyComponent, get value
1672
- return getValue(this, memberName);
1673
- },
1674
- set(newValue) {
1675
- // proxyComponent, set value
1676
- setValue(this, memberName, newValue, cmpMeta);
1677
- },
1678
- configurable: true,
1679
- enumerable: true,
1680
- });
1681
- }
1682
- });
1683
- if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1684
- const attrNameToPropName = new Map();
1685
- prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1686
- plt.jmp(() => {
1687
- const propName = attrNameToPropName.get(attrName);
1688
- // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1689
- // in the case where an attribute was set inline.
1690
- // ```html
1691
- // <my-component some-attribute="some-value"></my-component>
1692
- // ```
1693
- //
1694
- // There is an edge case where a developer sets the attribute inline on a custom element and then
1695
- // programmatically changes it before it has been upgraded as shown below:
1696
- //
1697
- // ```html
1698
- // <!-- this component has _not_ been upgraded yet -->
1699
- // <my-component id="test" some-attribute="some-value"></my-component>
1700
- // <script>
1701
- // // grab non-upgraded component
1702
- // el = document.querySelector("#test");
1703
- // el.someAttribute = "another-value";
1704
- // // upgrade component
1705
- // customElements.define('my-component', MyComponent);
1706
- // </script>
1707
- // ```
1708
- // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1709
- // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1710
- // to the value that was set inline i.e. "some-value" from above example. When
1711
- // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1712
- //
1713
- // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1714
- // by connectedCallback as this attributeChangedCallback will not fire.
1715
- //
1716
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1717
- //
1718
- // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1719
- // properties here given that this goes against best practices outlined here
1720
- // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1721
- if (this.hasOwnProperty(propName)) {
1722
- newValue = this[propName];
1723
- delete this[propName];
1724
- }
1725
- else if (prototype.hasOwnProperty(propName) &&
1726
- typeof this[propName] === 'number' &&
1727
- this[propName] == newValue) {
1728
- // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1729
- // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1730
- // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1731
- return;
1732
- }
1733
- this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1734
- });
1735
- };
1736
- // create an array of attributes to observe
1737
- // and also create a map of html attribute name to js property name
1738
- Cstr.observedAttributes = members
1739
- .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1740
- .map(([propName, m]) => {
1741
- const attrName = m[1] || propName;
1742
- attrNameToPropName.set(attrName, propName);
1743
- if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1744
- cmpMeta.$attrsToReflect$.push([propName, attrName]);
1745
- }
1746
- return attrName;
1747
- });
1748
- }
1749
- }
1750
- return Cstr;
1751
- };
1752
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1753
- // initializeComponent
1754
- if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1755
- // Let the runtime know that the component has been initialized
1756
- hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1757
- {
1758
- // lazy loaded components
1759
- // request the component's implementation to be
1760
- // wired up with the host element
1761
- Cstr = loadModule(cmpMeta);
1762
- if (Cstr.then) {
1763
- // Await creates a micro-task avoid if possible
1764
- const endLoad = uniqueTime();
1765
- Cstr = await Cstr;
1766
- endLoad();
1767
- }
1768
- if (!Cstr.isProxied) {
1769
- // we've never proxied this Constructor before
1770
- // let's add the getters/setters to its prototype before
1771
- // the first time we create an instance of the implementation
1772
- {
1773
- cmpMeta.$watchers$ = Cstr.watchers;
1774
- }
1775
- proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1776
- Cstr.isProxied = true;
1777
- }
1778
- const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1779
- // ok, time to construct the instance
1780
- // but let's keep track of when we start and stop
1781
- // so that the getters/setters don't incorrectly step on data
1782
- {
1783
- hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1784
- }
1785
- // construct the lazy-loaded component implementation
1786
- // passing the hostRef is very important during
1787
- // construction in order to directly wire together the
1788
- // host element and the lazy-loaded instance
1789
- try {
1790
- new Cstr(hostRef);
1791
- }
1792
- catch (e) {
1793
- consoleError(e);
1794
- }
1795
- {
1796
- hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1797
- }
1798
- {
1799
- hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1800
- }
1801
- endNewInstance();
1802
- }
1803
- if (Cstr.style) {
1804
- // this component has styles but we haven't registered them yet
1805
- let style = Cstr.style;
1806
- if (typeof style !== 'string') {
1807
- style = style[(hostRef.$modeName$ = computeMode(elm))];
1808
- }
1809
- const scopeId = getScopeId(cmpMeta, hostRef.$modeName$);
1810
- if (!styles.has(scopeId)) {
1811
- const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1812
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1813
- endRegisterStyles();
1814
- }
1815
- }
1816
- }
1817
- // we've successfully created a lazy instance
1818
- const ancestorComponent = hostRef.$ancestorComponent$;
1819
- const schedule = () => scheduleUpdate(hostRef, true);
1820
- if (ancestorComponent && ancestorComponent['s-rc']) {
1821
- // this is the initial load and this component it has an ancestor component
1822
- // but the ancestor component has NOT fired its will update lifecycle yet
1823
- // so let's just cool our jets and wait for the ancestor to continue first
1824
- // this will get fired off when the ancestor component
1825
- // finally gets around to rendering its lazy self
1826
- // fire off the initial update
1827
- ancestorComponent['s-rc'].push(schedule);
1828
- }
1829
- else {
1830
- schedule();
1831
- }
1832
- };
1833
- const connectedCallback = (elm) => {
1834
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1835
- const hostRef = getHostRef(elm);
1836
- const cmpMeta = hostRef.$cmpMeta$;
1837
- const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1838
- if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1839
- // first time this component has connected
1840
- hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1841
- {
1842
- // initUpdate
1843
- // if the slot polyfill is required we'll need to put some nodes
1844
- // in here to act as original content anchors as we move nodes around
1845
- // host element has been connected to the DOM
1846
- if ((// TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
1847
- cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
1848
- setContentReference(elm);
1849
- }
1850
- }
1851
- {
1852
- // find the first ancestor component (if there is one) and register
1853
- // this component as one of the actively loading child components for its ancestor
1854
- let ancestorComponent = elm;
1855
- while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1856
- // climb up the ancestors looking for the first
1857
- // component that hasn't finished its lifecycle update yet
1858
- if (ancestorComponent['s-p']) {
1859
- // we found this components first ancestor component
1860
- // keep a reference to this component's ancestor component
1861
- attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1862
- break;
1863
- }
1864
- }
1865
- }
1866
- // Lazy properties
1867
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1868
- if (cmpMeta.$members$) {
1869
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1870
- if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1871
- const value = elm[memberName];
1872
- delete elm[memberName];
1873
- elm[memberName] = value;
1874
- }
1875
- });
1876
- }
1877
- {
1878
- initializeComponent(elm, hostRef, cmpMeta);
1879
- }
1880
- }
1881
- else {
1882
- // not the first time this has connected
1883
- // reattach any event listeners to the host
1884
- // since they would have been removed when disconnected
1885
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1886
- }
1887
- endConnected();
1888
- }
1889
- };
1890
- const setContentReference = (elm) => {
1891
- // only required when we're NOT using native shadow dom (slot)
1892
- // or this browser doesn't support native shadow dom
1893
- // and this host element was NOT created with SSR
1894
- // let's pick out the inner content for slot projection
1895
- // create a node to represent where the original
1896
- // content was first placed, which is useful later on
1897
- const contentRefElm = (elm['s-cr'] = doc.createComment(''));
1898
- contentRefElm['s-cn'] = true;
1899
- elm.insertBefore(contentRefElm, elm.firstChild);
1900
- };
1901
- const disconnectedCallback = (elm) => {
1902
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1903
- const hostRef = getHostRef(elm);
1904
- const instance = hostRef.$lazyInstance$ ;
1905
- {
1906
- if (hostRef.$rmListeners$) {
1907
- hostRef.$rmListeners$.map((rmListener) => rmListener());
1908
- hostRef.$rmListeners$ = undefined;
1909
- }
1910
- }
1911
- {
1912
- safeCall(instance, 'disconnectedCallback');
1913
- }
1914
- }
1915
- };
1916
- const bootstrapLazy = (lazyBundles, options = {}) => {
1917
- var _a;
1918
- const endBootstrap = createTime();
1919
- const cmpTags = [];
1920
- const exclude = options.exclude || [];
1921
- const customElements = win.customElements;
1922
- const head = doc.head;
1923
- const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1924
- const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1925
- const deferredConnectedCallbacks = [];
1926
- let appLoadFallback;
1927
- let isBootstrapping = true;
1928
- Object.assign(plt, options);
1929
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1930
- {
1931
- if (options.syncQueue) {
1932
- plt.$flags$ |= 4 /* PLATFORM_FLAGS.queueSync */;
1933
- }
1934
- }
1935
- lazyBundles.map((lazyBundle) => {
1936
- lazyBundle[1].map((compactMeta) => {
1937
- const cmpMeta = {
1938
- $flags$: compactMeta[0],
1939
- $tagName$: compactMeta[1],
1940
- $members$: compactMeta[2],
1941
- $listeners$: compactMeta[3],
1942
- };
1943
- {
1944
- cmpMeta.$members$ = compactMeta[2];
1945
- }
1946
- {
1947
- cmpMeta.$listeners$ = compactMeta[3];
1948
- }
1949
- {
1950
- cmpMeta.$attrsToReflect$ = [];
1951
- }
1952
- {
1953
- cmpMeta.$watchers$ = {};
1954
- }
1955
- const tagName = cmpMeta.$tagName$;
1956
- const HostElement = class extends HTMLElement {
1957
- // StencilLazyHost
1958
- constructor(self) {
1959
- // @ts-ignore
1960
- super(self);
1961
- self = this;
1962
- registerHost(self, cmpMeta);
1963
- if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1964
- // this component is using shadow dom
1965
- // and this browser supports shadow dom
1966
- // add the read-only property "shadowRoot" to the host element
1967
- // adding the shadow root build conditionals to minimize runtime
1968
- {
1969
- {
1970
- self.attachShadow({ mode: 'open' });
1971
- }
1972
- }
1973
- }
1974
- }
1975
- connectedCallback() {
1976
- if (appLoadFallback) {
1977
- clearTimeout(appLoadFallback);
1978
- appLoadFallback = null;
1979
- }
1980
- if (isBootstrapping) {
1981
- // connectedCallback will be processed once all components have been registered
1982
- deferredConnectedCallbacks.push(this);
1983
- }
1984
- else {
1985
- plt.jmp(() => connectedCallback(this));
1986
- }
1987
- }
1988
- disconnectedCallback() {
1989
- plt.jmp(() => disconnectedCallback(this));
1990
- }
1991
- componentOnReady() {
1992
- return getHostRef(this).$onReadyPromise$;
1993
- }
1994
- };
1995
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1996
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1997
- cmpTags.push(tagName);
1998
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1999
- }
2000
- });
2001
- });
2002
- {
2003
- visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
2004
- visibilityStyle.setAttribute('data-styles', '');
2005
- // Apply CSP nonce to the style tag if it exists
2006
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
2007
- if (nonce != null) {
2008
- visibilityStyle.setAttribute('nonce', nonce);
2009
- }
2010
- head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
2011
- }
2012
- // Process deferred connectedCallbacks now all components have been registered
2013
- isBootstrapping = false;
2014
- if (deferredConnectedCallbacks.length) {
2015
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
2016
- }
2017
- else {
2018
- {
2019
- plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
2020
- }
2021
- }
2022
- // Fallback appLoad event
2023
- endBootstrap();
2024
- };
2025
- const Fragment = (_, children) => children;
2026
- const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2027
- if (listeners) {
2028
- listeners.map(([flags, name, method]) => {
2029
- const target = getHostListenerTarget(elm, flags) ;
2030
- const handler = hostListenerProxy(hostRef, method);
2031
- const opts = hostListenerOpts(flags);
2032
- plt.ael(target, name, handler, opts);
2033
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2034
- });
2035
- }
2036
- };
2037
- const hostListenerProxy = (hostRef, methodName) => (ev) => {
2038
- try {
2039
- {
2040
- if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
2041
- // instance is ready, let's call it's member method for this event
2042
- hostRef.$lazyInstance$[methodName](ev);
2043
- }
2044
- else {
2045
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2046
- }
2047
- }
2048
- }
2049
- catch (e) {
2050
- consoleError(e);
2051
- }
2052
- };
2053
- const getHostListenerTarget = (elm, flags) => {
2054
- if (flags & 4 /* LISTENER_FLAGS.TargetDocument */)
2055
- return doc;
2056
- if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
2057
- return win;
2058
- return elm;
2059
- };
2060
- // prettier-ignore
2061
- const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
2062
- /**
2063
- * Assigns the given value to the nonce property on the runtime platform object.
2064
- * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
2065
- * @param nonce The value to be assigned to the platform nonce property.
2066
- * @returns void
2067
- */
2068
- const setNonce = (nonce) => (plt.$nonce$ = nonce);
2069
- const hostRefs = /*@__PURE__*/ new WeakMap();
2070
- const getHostRef = (ref) => hostRefs.get(ref);
2071
- const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
2072
- const registerHost = (elm, cmpMeta) => {
2073
- const hostRef = {
2074
- $flags$: 0,
2075
- $hostElement$: elm,
2076
- $cmpMeta$: cmpMeta,
2077
- $instanceValues$: new Map(),
2078
- };
2079
- {
2080
- hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
2081
- elm['s-p'] = [];
2082
- elm['s-rc'] = [];
2083
- }
2084
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2085
- return hostRefs.set(elm, hostRef);
2086
- };
2087
- const isMemberInElement = (elm, memberName) => memberName in elm;
2088
- const consoleError = (e, el) => (0, console.error)(e, el);
2089
- const cmpModules = /*@__PURE__*/ new Map();
2090
- const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2091
- // loadModuleImport
2092
- const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
2093
- const bundleId = cmpMeta.$lazyBundleId$;
2094
- const module = cmpModules.get(bundleId) ;
2095
- if (module) {
2096
- return module[exportName];
2097
- }
2098
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
2099
- return import(
2100
- /* @vite-ignore */
2101
- /* webpackInclude: /\.entry\.js$/ */
2102
- /* webpackExclude: /\.system\.entry\.js$/ */
2103
- /* webpackMode: "lazy" */
2104
- `./${bundleId}.entry.js${''}`).then((importedModule) => {
2105
- {
2106
- cmpModules.set(bundleId, importedModule);
2107
- }
2108
- return importedModule[exportName];
2109
- }, consoleError);
2110
- };
2111
- const styles = /*@__PURE__*/ new Map();
2112
- const modeResolutionChain = [];
2113
- const win = typeof window !== 'undefined' ? window : {};
2114
- const doc = win.document || { head: {} };
2115
- const plt = {
2116
- $flags$: 0,
2117
- $resourcesUrl$: '',
2118
- jmp: (h) => h(),
2119
- raf: (h) => requestAnimationFrame(h),
2120
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
2121
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
2122
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
2123
- };
2124
- const promiseResolve = (v) => Promise.resolve(v);
2125
- const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
2126
- try {
2127
- new CSSStyleSheet();
2128
- return typeof new CSSStyleSheet().replaceSync === 'function';
2129
- }
2130
- catch (e) { }
2131
- return false;
2132
- })()
2133
- ;
2134
- const queueDomReads = [];
2135
- const queueDomWrites = [];
2136
- const queueDomWritesLow = [];
2137
- const queueTask = (queue, write) => (cb) => {
2138
- queue.push(cb);
2139
- if (!queuePending) {
2140
- queuePending = true;
2141
- if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
2142
- nextTick(flush);
2143
- }
2144
- else {
2145
- plt.raf(flush);
2146
- }
2147
- }
2148
- };
2149
- const consume = (queue) => {
2150
- for (let i = 0; i < queue.length; i++) {
2151
- try {
2152
- queue[i](performance.now());
2153
- }
2154
- catch (e) {
2155
- consoleError(e);
2156
- }
2157
- }
2158
- queue.length = 0;
2159
- };
2160
- const consumeTimeout = (queue, timeout) => {
2161
- let i = 0;
2162
- let ts = 0;
2163
- while (i < queue.length && (ts = performance.now()) < timeout) {
2164
- try {
2165
- queue[i++](ts);
2166
- }
2167
- catch (e) {
2168
- consoleError(e);
2169
- }
2170
- }
2171
- if (i === queue.length) {
2172
- queue.length = 0;
2173
- }
2174
- else if (i !== 0) {
2175
- queue.splice(0, i);
2176
- }
2177
- };
2178
- const flush = () => {
2179
- {
2180
- queueCongestion++;
2181
- }
2182
- // always force a bunch of medium callbacks to run, but still have
2183
- // a throttle on how many can run in a certain time
2184
- // DOM READS!!!
2185
- consume(queueDomReads);
2186
- // DOM WRITES!!!
2187
- {
2188
- const timeout = (plt.$flags$ & 6 /* PLATFORM_FLAGS.queueMask */) === 2 /* PLATFORM_FLAGS.appLoaded */
2189
- ? performance.now() + 14 * Math.ceil(queueCongestion * (1.0 / 10.0))
2190
- : Infinity;
2191
- consumeTimeout(queueDomWrites, timeout);
2192
- consumeTimeout(queueDomWritesLow, timeout);
2193
- if (queueDomWrites.length > 0) {
2194
- queueDomWritesLow.push(...queueDomWrites);
2195
- queueDomWrites.length = 0;
2196
- }
2197
- if ((queuePending = queueDomReads.length + queueDomWrites.length + queueDomWritesLow.length > 0)) {
2198
- // still more to do yet, but we've run out of time
2199
- // let's let this thing cool off and try again in the next tick
2200
- plt.raf(flush);
2201
- }
2202
- else {
2203
- queueCongestion = 0;
2204
- }
2205
- }
2206
- };
2207
- const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
2208
- const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
2209
-
2210
- export { Fragment as F, Host as H, setMode as a, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
2211
-
2212
- //# sourceMappingURL=index-f84f2a7d.js.map