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