@itcenteratunihelsinki/huds-lib 0.8.41 → 0.8.42

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 (557) hide show
  1. package/dist/cjs/color-box_8.cjs.entry.js +13 -36
  2. package/dist/cjs/color-box_8.cjs.entry.js.map +1 -0
  3. package/dist/cjs/{globalScript-6b592153.js → globalScript-45ad6d41.js} +3 -1
  4. package/dist/cjs/globalScript-45ad6d41.js.map +1 -0
  5. package/dist/cjs/huds-lib.cjs.js +12 -3
  6. package/dist/cjs/huds-lib.cjs.js.map +1 -0
  7. package/dist/cjs/hy-accordion-container_83.cjs.entry.js +365 -157
  8. package/dist/cjs/hy-accordion-container_83.cjs.entry.js.map +1 -0
  9. package/dist/cjs/hy-event-item.cjs.entry.js +7 -2
  10. package/dist/cjs/hy-event-item.cjs.entry.js.map +1 -0
  11. package/dist/cjs/hy-events.cjs.entry.js +6 -2
  12. package/dist/cjs/hy-events.cjs.entry.js.map +1 -0
  13. package/dist/cjs/{index-dfc917d9.js → index-25bd964b.js} +692 -287
  14. package/dist/cjs/index-25bd964b.js.map +1 -0
  15. package/dist/cjs/index.cjs.js +2 -0
  16. package/dist/cjs/index.cjs.js.map +1 -0
  17. package/dist/cjs/loader.cjs.js +6 -3
  18. package/dist/cjs/loader.cjs.js.map +1 -0
  19. package/dist/cjs/utils-14d5aa6f.js +2 -0
  20. package/dist/cjs/utils-14d5aa6f.js.map +1 -0
  21. package/dist/collection/collection-manifest.json +2 -2
  22. package/dist/collection/components/accordion-container/accordion-container.js +37 -30
  23. package/dist/collection/components/accordion-container/accordion-container.js.map +1 -0
  24. package/dist/collection/components/accordion-item/accordion-item.js +116 -114
  25. package/dist/collection/components/accordion-item/accordion-item.js.map +1 -0
  26. package/dist/collection/components/adjacent-image-text/adjacent-image-text.js +277 -275
  27. package/dist/collection/components/adjacent-image-text/adjacent-image-text.js.map +1 -0
  28. package/dist/collection/components/baseline/baseline.js +35 -32
  29. package/dist/collection/components/baseline/baseline.js.map +1 -0
  30. package/dist/collection/components/button/button.js +226 -257
  31. package/dist/collection/components/button/button.js.map +1 -0
  32. package/dist/collection/components/color-box/color-box.js +13 -9
  33. package/dist/collection/components/color-box/color-box.js.map +1 -0
  34. package/dist/collection/components/courses/hy-content-list/hy-content-list.js +154 -148
  35. package/dist/collection/components/courses/hy-content-list/hy-content-list.js.map +1 -0
  36. package/dist/collection/components/courses/hy-content-list-item/hy-content-list-item.css +2 -2
  37. package/dist/collection/components/courses/hy-content-list-item/hy-content-list-item.js +335 -331
  38. package/dist/collection/components/courses/hy-content-list-item/hy-content-list-item.js.map +1 -0
  39. package/dist/collection/components/cta-button/cta-button.js +141 -138
  40. package/dist/collection/components/cta-button/cta-button.js.map +1 -0
  41. package/dist/collection/components/cta-link/cta-link.js +107 -103
  42. package/dist/collection/components/cta-link/cta-link.js.map +1 -0
  43. package/dist/collection/components/docs-container/docs-container.js +13 -9
  44. package/dist/collection/components/docs-container/docs-container.js.map +1 -0
  45. package/dist/collection/components/footer/hy-footer/hy-footer.js +13 -9
  46. package/dist/collection/components/footer/hy-footer/hy-footer.js.map +1 -0
  47. package/dist/collection/components/footer/hy-footer-action/hy-footer-action.js +63 -55
  48. package/dist/collection/components/footer/hy-footer-action/hy-footer-action.js.map +1 -0
  49. package/dist/collection/components/footer/hy-footer-base/hy-footer-base.js +183 -187
  50. package/dist/collection/components/footer/hy-footer-base/hy-footer-base.js.map +1 -0
  51. package/dist/collection/components/footer/hy-footer-info/hy-footer-info.js +278 -270
  52. package/dist/collection/components/footer/hy-footer-info/hy-footer-info.js.map +1 -0
  53. package/dist/collection/components/footer/hy-footer-link-item/hy-footer-link-item.js +191 -190
  54. package/dist/collection/components/footer/hy-footer-link-item/hy-footer-link-item.js.map +1 -0
  55. package/dist/collection/components/global-workers/globals.worker.js +1 -0
  56. package/dist/collection/components/global-workers/globals.worker.js.map +1 -0
  57. package/dist/collection/components/grid-container/grid-container.js +13 -9
  58. package/dist/collection/components/grid-container/grid-container.js.map +1 -0
  59. package/dist/collection/components/grid-item/grid-item.css +0 -23
  60. package/dist/collection/components/grid-item/grid-item.js +102 -96
  61. package/dist/collection/components/grid-item/grid-item.js.map +1 -0
  62. package/dist/collection/components/grid-row/grid-row.js +13 -9
  63. package/dist/collection/components/grid-row/grid-row.js.map +1 -0
  64. package/dist/collection/components/heading/heading-fw.css +17 -17
  65. package/dist/collection/components/heading/heading.css +17 -17
  66. package/dist/collection/components/heading/heading.js +142 -146
  67. package/dist/collection/components/heading/heading.js.map +1 -0
  68. package/dist/collection/components/hy-anchor-link-list/hy-anchor-link-list.js +105 -99
  69. package/dist/collection/components/hy-anchor-link-list/hy-anchor-link-list.js.map +1 -0
  70. package/dist/collection/components/hy-badge/hy-badge.js +35 -30
  71. package/dist/collection/components/hy-badge/hy-badge.js.map +1 -0
  72. package/dist/collection/components/hy-banner/hy-banner.js +137 -135
  73. package/dist/collection/components/hy-banner/hy-banner.js.map +1 -0
  74. package/dist/collection/components/hy-box/hy-box.js +323 -318
  75. package/dist/collection/components/hy-box/hy-box.js.map +1 -0
  76. package/dist/collection/components/hy-box-container/hy-box-container.js +53 -54
  77. package/dist/collection/components/hy-box-container/hy-box-container.js.map +1 -0
  78. package/dist/collection/components/hy-breadcrumbs/hy-breadcrumbs.js +89 -82
  79. package/dist/collection/components/hy-breadcrumbs/hy-breadcrumbs.js.map +1 -0
  80. package/dist/collection/components/hy-checkbox/hy-checkbox.js +108 -114
  81. package/dist/collection/components/hy-checkbox/hy-checkbox.js.map +1 -0
  82. package/dist/collection/components/hy-collaboration/hy-collaboration.js +105 -99
  83. package/dist/collection/components/hy-collaboration/hy-collaboration.js.map +1 -0
  84. package/dist/collection/components/hy-crisis-banner/hy-crisis-banner.js +88 -85
  85. package/dist/collection/components/hy-crisis-banner/hy-crisis-banner.js.map +1 -0
  86. package/dist/collection/components/hy-dropdown/hy-dropdown.js +153 -147
  87. package/dist/collection/components/hy-dropdown/hy-dropdown.js.map +1 -0
  88. package/dist/collection/components/hy-dropdown/hy-dropdown.panel.item.js +76 -74
  89. package/dist/collection/components/hy-dropdown/hy-dropdown.panel.item.js.map +1 -0
  90. package/dist/collection/components/hy-dropdown/hy-dropdown.panel.js +27 -22
  91. package/dist/collection/components/hy-dropdown/hy-dropdown.panel.js.map +1 -0
  92. package/dist/collection/components/hy-event-item/hy-event-item.js +184 -192
  93. package/dist/collection/components/hy-event-item/hy-event-item.js.map +1 -0
  94. package/dist/collection/components/hy-events/hy-events.js +131 -127
  95. package/dist/collection/components/hy-events/hy-events.js.map +1 -0
  96. package/dist/collection/components/hy-filter-group/hy-filter-group.item.js +44 -41
  97. package/dist/collection/components/hy-filter-group/hy-filter-group.item.js.map +1 -0
  98. package/dist/collection/components/hy-filter-group/hy-filter-group.js +64 -54
  99. package/dist/collection/components/hy-filter-group/hy-filter-group.js.map +1 -0
  100. package/dist/collection/components/hy-filter-list-type/hy-filter-list-type.js +62 -56
  101. package/dist/collection/components/hy-filter-list-type/hy-filter-list-type.js.map +1 -0
  102. package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.js +38 -30
  103. package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.js.map +1 -0
  104. package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.reset.js +3 -4
  105. package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.reset.js.map +1 -0
  106. package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.reset.toggle.js +3 -8
  107. package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.reset.toggle.js.map +1 -0
  108. package/dist/collection/components/hy-general-list/hy-general-list.js +123 -113
  109. package/dist/collection/components/hy-general-list/hy-general-list.js.map +1 -0
  110. package/dist/collection/components/hy-general-list-item/hy-general-list-item.js +256 -258
  111. package/dist/collection/components/hy-general-list-item/hy-general-list-item.js.map +1 -0
  112. package/dist/collection/components/hy-hero/hy-hero.css +2 -2
  113. package/dist/collection/components/hy-hero/hy-hero.js +296 -308
  114. package/dist/collection/components/hy-hero/hy-hero.js.map +1 -0
  115. package/dist/collection/components/hy-introduction/hy-introduction.js +248 -250
  116. package/dist/collection/components/hy-introduction/hy-introduction.js.map +1 -0
  117. package/dist/collection/components/hy-key-figure/hy-key-figure.js +73 -66
  118. package/dist/collection/components/hy-key-figure/hy-key-figure.js.map +1 -0
  119. package/dist/collection/components/hy-key-figure-group/hy-key-figure-group.css +1 -1
  120. package/dist/collection/components/hy-key-figure-group/hy-key-figure-group.js +67 -65
  121. package/dist/collection/components/hy-key-figure-group/hy-key-figure-group.js.map +1 -0
  122. package/dist/collection/components/hy-key-highlight/hy-key-highlight.js +73 -67
  123. package/dist/collection/components/hy-key-highlight/hy-key-highlight.js.map +1 -0
  124. package/dist/collection/components/hy-key-highlight-group/hy-key-highlight-group.css +2 -2
  125. package/dist/collection/components/hy-key-highlight-group/hy-key-highlight-group.js +79 -71
  126. package/dist/collection/components/hy-key-highlight-group/hy-key-highlight-group.js.map +1 -0
  127. package/dist/collection/components/hy-large-process-flow/hy-large-process-flow.css +6 -6
  128. package/dist/collection/components/hy-large-process-flow/hy-large-process-flow.js +55 -46
  129. package/dist/collection/components/hy-large-process-flow/hy-large-process-flow.js.map +1 -0
  130. package/dist/collection/components/hy-large-process-flow-phase/hy-large-process-flow-phase.css +3 -3
  131. package/dist/collection/components/hy-large-process-flow-phase/hy-large-process-flow-phase.js +41 -37
  132. package/dist/collection/components/hy-large-process-flow-phase/hy-large-process-flow-phase.js.map +1 -0
  133. package/dist/collection/components/hy-link-list/hy-link-list.js +107 -100
  134. package/dist/collection/components/hy-link-list/hy-link-list.js.map +1 -0
  135. package/dist/collection/components/hy-list-item/hy-list-item.js +429 -451
  136. package/dist/collection/components/hy-list-item/hy-list-item.js.map +1 -0
  137. package/dist/collection/components/hy-logo-grid/hy-logo-grid.item.js +54 -47
  138. package/dist/collection/components/hy-logo-grid/hy-logo-grid.item.js.map +1 -0
  139. package/dist/collection/components/hy-logo-grid/hy-logo-grid.js +54 -46
  140. package/dist/collection/components/hy-logo-grid/hy-logo-grid.js.map +1 -0
  141. package/dist/collection/components/hy-main/hy-main.js +35 -29
  142. package/dist/collection/components/hy-main/hy-main.js.map +1 -0
  143. package/dist/collection/components/hy-main-content-wrapper/hy-main-content-wrapper.js +13 -10
  144. package/dist/collection/components/hy-main-content-wrapper/hy-main-content-wrapper.js.map +1 -0
  145. package/dist/collection/components/hy-opening-hours/hy-opening-hours.css +2 -2
  146. package/dist/collection/components/hy-opening-hours/hy-opening-hours.js +305 -308
  147. package/dist/collection/components/hy-opening-hours/hy-opening-hours.js.map +1 -0
  148. package/dist/collection/components/hy-opening-hours-content/hy-opening-hours-content.css +2 -2
  149. package/dist/collection/components/hy-opening-hours-content/hy-opening-hours-content.js +108 -107
  150. package/dist/collection/components/hy-opening-hours-content/hy-opening-hours-content.js.map +1 -0
  151. package/dist/collection/components/hy-person-card/hy-person-card.js +423 -438
  152. package/dist/collection/components/hy-person-card/hy-person-card.js.map +1 -0
  153. package/dist/collection/components/hy-prominent-image/hy-prominent-image.js +107 -100
  154. package/dist/collection/components/hy-prominent-image/hy-prominent-image.js.map +1 -0
  155. package/dist/collection/components/hy-quote/hy-quote.js +52 -51
  156. package/dist/collection/components/hy-quote/hy-quote.js.map +1 -0
  157. package/dist/collection/components/hy-search-field/hy-search-field.js +167 -167
  158. package/dist/collection/components/hy-search-field/hy-search-field.js.map +1 -0
  159. package/dist/collection/components/hy-shortcuts/hy-shortcuts.css +1 -1
  160. package/dist/collection/components/hy-shortcuts/hy-shortcuts.js +90 -87
  161. package/dist/collection/components/hy-shortcuts/hy-shortcuts.js.map +1 -0
  162. package/dist/collection/components/hy-table-container/hy-table-container.css +6 -6
  163. package/dist/collection/components/hy-table-container/hy-table-container.js +13 -10
  164. package/dist/collection/components/hy-table-container/hy-table-container.js.map +1 -0
  165. package/dist/collection/components/hy-tabs/hy-tabs.js +116 -111
  166. package/dist/collection/components/hy-tabs/hy-tabs.js.map +1 -0
  167. package/dist/collection/components/hy-tabs-item/hy-tabs-item.js +37 -28
  168. package/dist/collection/components/hy-tabs-item/hy-tabs-item.js.map +1 -0
  169. package/dist/collection/components/hy-tag/hy-tag.js +13 -11
  170. package/dist/collection/components/hy-tag/hy-tag.js.map +1 -0
  171. package/dist/collection/components/hy-twitter-feed/hy-twitter-feed.js +108 -128
  172. package/dist/collection/components/hy-twitter-feed/hy-twitter-feed.js.map +1 -0
  173. package/dist/collection/components/hy-two-columns/hy-two-columns.js +35 -33
  174. package/dist/collection/components/hy-two-columns/hy-two-columns.js.map +1 -0
  175. package/dist/collection/components/hy-user-login-form/hy-user-login-form.js +54 -46
  176. package/dist/collection/components/hy-user-login-form/hy-user-login-form.js.map +1 -0
  177. package/dist/collection/components/hy-video/hy-video.css +1 -1
  178. package/dist/collection/components/hy-video/hy-video.js +463 -500
  179. package/dist/collection/components/hy-video/hy-video.js.map +1 -0
  180. package/dist/collection/components/icon/AddToTodoList.js +2 -2
  181. package/dist/collection/components/icon/AddToTodoList.js.map +1 -0
  182. package/dist/collection/components/icon/Alert.js +2 -3
  183. package/dist/collection/components/icon/Alert.js.map +1 -0
  184. package/dist/collection/components/icon/Archive.js +2 -5
  185. package/dist/collection/components/icon/Archive.js.map +1 -0
  186. package/dist/collection/components/icon/Arrow.js +2 -2
  187. package/dist/collection/components/icon/Arrow.js.map +1 -0
  188. package/dist/collection/components/icon/ArrowDown.js +2 -2
  189. package/dist/collection/components/icon/ArrowDown.js.map +1 -0
  190. package/dist/collection/components/icon/ArrowRight.js +2 -7
  191. package/dist/collection/components/icon/ArrowRight.js.map +1 -0
  192. package/dist/collection/components/icon/ArrowUp.js +2 -2
  193. package/dist/collection/components/icon/ArrowUp.js.map +1 -0
  194. package/dist/collection/components/icon/Avatar.js +2 -2
  195. package/dist/collection/components/icon/Avatar.js.map +1 -0
  196. package/dist/collection/components/icon/AvatarGroup.js +2 -2
  197. package/dist/collection/components/icon/AvatarGroup.js.map +1 -0
  198. package/dist/collection/components/icon/Bachelor.js +2 -2
  199. package/dist/collection/components/icon/Bachelor.js.map +1 -0
  200. package/dist/collection/components/icon/BulletList.js +2 -2
  201. package/dist/collection/components/icon/BulletList.js.map +1 -0
  202. package/dist/collection/components/icon/Camera.js +2 -2
  203. package/dist/collection/components/icon/Camera.js.map +1 -0
  204. package/dist/collection/components/icon/CaretDown.js +2 -2
  205. package/dist/collection/components/icon/CaretDown.js.map +1 -0
  206. package/dist/collection/components/icon/CaretLeft.js +2 -2
  207. package/dist/collection/components/icon/CaretLeft.js.map +1 -0
  208. package/dist/collection/components/icon/CaretRight.js +2 -2
  209. package/dist/collection/components/icon/CaretRight.js.map +1 -0
  210. package/dist/collection/components/icon/CaretUp.js +2 -2
  211. package/dist/collection/components/icon/CaretUp.js.map +1 -0
  212. package/dist/collection/components/icon/Chat.js +2 -2
  213. package/dist/collection/components/icon/Chat.js.map +1 -0
  214. package/dist/collection/components/icon/CodeFork.js +2 -2
  215. package/dist/collection/components/icon/CodeFork.js.map +1 -0
  216. package/dist/collection/components/icon/Cogs.js +2 -2
  217. package/dist/collection/components/icon/Cogs.js.map +1 -0
  218. package/dist/collection/components/icon/Contentlink.js +2 -2
  219. package/dist/collection/components/icon/Contentlink.js.map +1 -0
  220. package/dist/collection/components/icon/Customlink.js +2 -2
  221. package/dist/collection/components/icon/Customlink.js.map +1 -0
  222. package/dist/collection/components/icon/Date.js +2 -2
  223. package/dist/collection/components/icon/Date.js.map +1 -0
  224. package/dist/collection/components/icon/Discover.js +2 -2
  225. package/dist/collection/components/icon/Discover.js.map +1 -0
  226. package/dist/collection/components/icon/Done.js +2 -2
  227. package/dist/collection/components/icon/Done.js.map +1 -0
  228. package/dist/collection/components/icon/Dot.js +2 -2
  229. package/dist/collection/components/icon/Dot.js.map +1 -0
  230. package/dist/collection/components/icon/DotArrowRight.js +2 -6
  231. package/dist/collection/components/icon/DotArrowRight.js.map +1 -0
  232. package/dist/collection/components/icon/Download.js +2 -2
  233. package/dist/collection/components/icon/Download.js.map +1 -0
  234. package/dist/collection/components/icon/Drag.js +2 -2
  235. package/dist/collection/components/icon/Drag.js.map +1 -0
  236. package/dist/collection/components/icon/Dragbutton.js +2 -2
  237. package/dist/collection/components/icon/Dragbutton.js.map +1 -0
  238. package/dist/collection/components/icon/DropDown.js +2 -2
  239. package/dist/collection/components/icon/DropDown.js.map +1 -0
  240. package/dist/collection/components/icon/Edit.js +2 -2
  241. package/dist/collection/components/icon/Edit.js.map +1 -0
  242. package/dist/collection/components/icon/EditEvent.js +2 -2
  243. package/dist/collection/components/icon/EditEvent.js.map +1 -0
  244. package/dist/collection/components/icon/Embed.js +2 -2
  245. package/dist/collection/components/icon/Embed.js.map +1 -0
  246. package/dist/collection/components/icon/Euro.js +2 -2
  247. package/dist/collection/components/icon/Euro.js.map +1 -0
  248. package/dist/collection/components/icon/Events.js +2 -2
  249. package/dist/collection/components/icon/Events.js.map +1 -0
  250. package/dist/collection/components/icon/ExternalLink.js +2 -2
  251. package/dist/collection/components/icon/ExternalLink.js.map +1 -0
  252. package/dist/collection/components/icon/EyeSlash.js +2 -2
  253. package/dist/collection/components/icon/EyeSlash.js.map +1 -0
  254. package/dist/collection/components/icon/Facebook.js +2 -2
  255. package/dist/collection/components/icon/Facebook.js.map +1 -0
  256. package/dist/collection/components/icon/Favorites.js +2 -2
  257. package/dist/collection/components/icon/Favorites.js.map +1 -0
  258. package/dist/collection/components/icon/Feed.js +2 -2
  259. package/dist/collection/components/icon/Feed.js.map +1 -0
  260. package/dist/collection/components/icon/FileText.js +2 -2
  261. package/dist/collection/components/icon/FileText.js.map +1 -0
  262. package/dist/collection/components/icon/FullScreen.js +2 -2
  263. package/dist/collection/components/icon/FullScreen.js.map +1 -0
  264. package/dist/collection/components/icon/Globe.js +2 -2
  265. package/dist/collection/components/icon/Globe.js.map +1 -0
  266. package/dist/collection/components/icon/GooglePlus.js +2 -2
  267. package/dist/collection/components/icon/GooglePlus.js.map +1 -0
  268. package/dist/collection/components/icon/Grid.js +2 -2
  269. package/dist/collection/components/icon/Grid.js.map +1 -0
  270. package/dist/collection/components/icon/Hamburger.js +2 -2
  271. package/dist/collection/components/icon/Hamburger.js.map +1 -0
  272. package/dist/collection/components/icon/Heart.js +2 -2
  273. package/dist/collection/components/icon/Heart.js.map +1 -0
  274. package/dist/collection/components/icon/HeartSupport.js +2 -2
  275. package/dist/collection/components/icon/HeartSupport.js.map +1 -0
  276. package/dist/collection/components/icon/Helsinginyliopisto.js +2 -2
  277. package/dist/collection/components/icon/Helsinginyliopisto.js.map +1 -0
  278. package/dist/collection/components/icon/Home.js +2 -2
  279. package/dist/collection/components/icon/Home.js.map +1 -0
  280. package/dist/collection/components/icon/HorizontalResize.js +2 -2
  281. package/dist/collection/components/icon/HorizontalResize.js.map +1 -0
  282. package/dist/collection/components/icon/HyLogo.js +2 -2
  283. package/dist/collection/components/icon/HyLogo.js.map +1 -0
  284. package/dist/collection/components/icon/IdNumber.js +2 -2
  285. package/dist/collection/components/icon/IdNumber.js.map +1 -0
  286. package/dist/collection/components/icon/Image.js +2 -2
  287. package/dist/collection/components/icon/Image.js.map +1 -0
  288. package/dist/collection/components/icon/ImageGallery.js +2 -2
  289. package/dist/collection/components/icon/ImageGallery.js.map +1 -0
  290. package/dist/collection/components/icon/Images.js +2 -2
  291. package/dist/collection/components/icon/Images.js.map +1 -0
  292. package/dist/collection/components/icon/Info.js +2 -2
  293. package/dist/collection/components/icon/Info.js.map +1 -0
  294. package/dist/collection/components/icon/InfoStroke.js +2 -2
  295. package/dist/collection/components/icon/InfoStroke.js.map +1 -0
  296. package/dist/collection/components/icon/Instagram.js +2 -2
  297. package/dist/collection/components/icon/Instagram.js.map +1 -0
  298. package/dist/collection/components/icon/LeikiList.js +2 -2
  299. package/dist/collection/components/icon/LeikiList.js.map +1 -0
  300. package/dist/collection/components/icon/LinkArrow.js +2 -2
  301. package/dist/collection/components/icon/LinkArrow.js.map +1 -0
  302. package/dist/collection/components/icon/LinkArrow1.js +2 -2
  303. package/dist/collection/components/icon/LinkArrow1.js.map +1 -0
  304. package/dist/collection/components/icon/LinkArrowDown.js +2 -2
  305. package/dist/collection/components/icon/LinkArrowDown.js.map +1 -0
  306. package/dist/collection/components/icon/LinkArrowLeft.js +2 -2
  307. package/dist/collection/components/icon/LinkArrowLeft.js.map +1 -0
  308. package/dist/collection/components/icon/LinkArrowOffsite.js +2 -2
  309. package/dist/collection/components/icon/LinkArrowOffsite.js.map +1 -0
  310. package/dist/collection/components/icon/LinkArrowUp.js +2 -2
  311. package/dist/collection/components/icon/LinkArrowUp.js.map +1 -0
  312. package/dist/collection/components/icon/Linkedin.js +2 -2
  313. package/dist/collection/components/icon/Linkedin.js.map +1 -0
  314. package/dist/collection/components/icon/List.js +2 -2
  315. package/dist/collection/components/icon/List.js.map +1 -0
  316. package/dist/collection/components/icon/ListAsBlocks.js +2 -2
  317. package/dist/collection/components/icon/ListAsBlocks.js.map +1 -0
  318. package/dist/collection/components/icon/ListStyleGrid.js +2 -10
  319. package/dist/collection/components/icon/ListStyleGrid.js.map +1 -0
  320. package/dist/collection/components/icon/ListStyleList.js +2 -5
  321. package/dist/collection/components/icon/ListStyleList.js.map +1 -0
  322. package/dist/collection/components/icon/Listoflinks.js +2 -2
  323. package/dist/collection/components/icon/Listoflinks.js.map +1 -0
  324. package/dist/collection/components/icon/Location.js +2 -2
  325. package/dist/collection/components/icon/Location.js.map +1 -0
  326. package/dist/collection/components/icon/Log.js +2 -2
  327. package/dist/collection/components/icon/Log.js.map +1 -0
  328. package/dist/collection/components/icon/Login.js +2 -2
  329. package/dist/collection/components/icon/Login.js.map +1 -0
  330. package/dist/collection/components/icon/Logout.js +2 -2
  331. package/dist/collection/components/icon/Logout.js.map +1 -0
  332. package/dist/collection/components/icon/MagnifyMinus.js +2 -2
  333. package/dist/collection/components/icon/MagnifyMinus.js.map +1 -0
  334. package/dist/collection/components/icon/MagnifyPlus.js +2 -2
  335. package/dist/collection/components/icon/MagnifyPlus.js.map +1 -0
  336. package/dist/collection/components/icon/Mail.js +2 -2
  337. package/dist/collection/components/icon/Mail.js.map +1 -0
  338. package/dist/collection/components/icon/Master.js +2 -2
  339. package/dist/collection/components/icon/Master.js.map +1 -0
  340. package/dist/collection/components/icon/Minus.js +2 -2
  341. package/dist/collection/components/icon/Minus.js.map +1 -0
  342. package/dist/collection/components/icon/Mobile.js +2 -2
  343. package/dist/collection/components/icon/Mobile.js.map +1 -0
  344. package/dist/collection/components/icon/Modify.js +2 -2
  345. package/dist/collection/components/icon/Modify.js.map +1 -0
  346. package/dist/collection/components/icon/NaviTriangle.js +2 -2
  347. package/dist/collection/components/icon/NaviTriangle.js.map +1 -0
  348. package/dist/collection/components/icon/NewGroup.js +2 -2
  349. package/dist/collection/components/icon/NewGroup.js.map +1 -0
  350. package/dist/collection/components/icon/NewPerson.js +2 -2
  351. package/dist/collection/components/icon/NewPerson.js.map +1 -0
  352. package/dist/collection/components/icon/Notification.js +2 -2
  353. package/dist/collection/components/icon/Notification.js.map +1 -0
  354. package/dist/collection/components/icon/OpinderLogo.js +2 -2
  355. package/dist/collection/components/icon/OpinderLogo.js.map +1 -0
  356. package/dist/collection/components/icon/OpinderLogoNew.js +2 -2
  357. package/dist/collection/components/icon/OpinderLogoNew.js.map +1 -0
  358. package/dist/collection/components/icon/Pdf.js +2 -2
  359. package/dist/collection/components/icon/Pdf.js.map +1 -0
  360. package/dist/collection/components/icon/People.js +2 -2
  361. package/dist/collection/components/icon/People.js.map +1 -0
  362. package/dist/collection/components/icon/PermissionAll.js +2 -2
  363. package/dist/collection/components/icon/PermissionAll.js.map +1 -0
  364. package/dist/collection/components/icon/PermissionGroup.js +2 -2
  365. package/dist/collection/components/icon/PermissionGroup.js.map +1 -0
  366. package/dist/collection/components/icon/PermissionPrivate.js +2 -2
  367. package/dist/collection/components/icon/PermissionPrivate.js.map +1 -0
  368. package/dist/collection/components/icon/Person.js +2 -2
  369. package/dist/collection/components/icon/Person.js.map +1 -0
  370. package/dist/collection/components/icon/PersonOutline.js +2 -2
  371. package/dist/collection/components/icon/PersonOutline.js.map +1 -0
  372. package/dist/collection/components/icon/Phone.js +2 -2
  373. package/dist/collection/components/icon/Phone.js.map +1 -0
  374. package/dist/collection/components/icon/Play.js +2 -2
  375. package/dist/collection/components/icon/Play.js.map +1 -0
  376. package/dist/collection/components/icon/Plus.js +2 -2
  377. package/dist/collection/components/icon/Plus.js.map +1 -0
  378. package/dist/collection/components/icon/Preview.js +2 -2
  379. package/dist/collection/components/icon/Preview.js.map +1 -0
  380. package/dist/collection/components/icon/Profile.js +2 -2
  381. package/dist/collection/components/icon/Profile.js.map +1 -0
  382. package/dist/collection/components/icon/Question.js +2 -2
  383. package/dist/collection/components/icon/Question.js.map +1 -0
  384. package/dist/collection/components/icon/Remove.js +2 -2
  385. package/dist/collection/components/icon/Remove.js.map +1 -0
  386. package/dist/collection/components/icon/Retweet.js +2 -2
  387. package/dist/collection/components/icon/Retweet.js.map +1 -0
  388. package/dist/collection/components/icon/RotateLeft.js +2 -2
  389. package/dist/collection/components/icon/RotateLeft.js.map +1 -0
  390. package/dist/collection/components/icon/RotateRight.js +2 -2
  391. package/dist/collection/components/icon/RotateRight.js.map +1 -0
  392. package/dist/collection/components/icon/Search.js +2 -2
  393. package/dist/collection/components/icon/Search.js.map +1 -0
  394. package/dist/collection/components/icon/Share.js +2 -2
  395. package/dist/collection/components/icon/Share.js.map +1 -0
  396. package/dist/collection/components/icon/SlimHamburgerMenu.js +2 -2
  397. package/dist/collection/components/icon/SlimHamburgerMenu.js.map +1 -0
  398. package/dist/collection/components/icon/SocialMedia.js +2 -2
  399. package/dist/collection/components/icon/SocialMedia.js.map +1 -0
  400. package/dist/collection/components/icon/SomeFacebook.js +2 -2
  401. package/dist/collection/components/icon/SomeFacebook.js.map +1 -0
  402. package/dist/collection/components/icon/SomeInstagram.js +2 -4
  403. package/dist/collection/components/icon/SomeInstagram.js.map +1 -0
  404. package/dist/collection/components/icon/SomeLinkedin.js +2 -2
  405. package/dist/collection/components/icon/SomeLinkedin.js.map +1 -0
  406. package/dist/collection/components/icon/SomeTwitter.js +2 -2
  407. package/dist/collection/components/icon/SomeTwitter.js.map +1 -0
  408. package/dist/collection/components/icon/SomeYoutube.js +2 -2
  409. package/dist/collection/components/icon/SomeYoutube.js.map +1 -0
  410. package/dist/collection/components/icon/Spinner.js +2 -2
  411. package/dist/collection/components/icon/Spinner.js.map +1 -0
  412. package/dist/collection/components/icon/Square.js +2 -2
  413. package/dist/collection/components/icon/Square.js.map +1 -0
  414. package/dist/collection/components/icon/SquareChecked.js +2 -2
  415. package/dist/collection/components/icon/SquareChecked.js.map +1 -0
  416. package/dist/collection/components/icon/Time.js +2 -2
  417. package/dist/collection/components/icon/Time.js.map +1 -0
  418. package/dist/collection/components/icon/TodoList.js +2 -2
  419. package/dist/collection/components/icon/TodoList.js.map +1 -0
  420. package/dist/collection/components/icon/Tour.js +2 -2
  421. package/dist/collection/components/icon/Tour.js.map +1 -0
  422. package/dist/collection/components/icon/Twitter.js +2 -2
  423. package/dist/collection/components/icon/Twitter.js.map +1 -0
  424. package/dist/collection/components/icon/TwitterLike.js +2 -2
  425. package/dist/collection/components/icon/TwitterLike.js.map +1 -0
  426. package/dist/collection/components/icon/UnitsAndFaculties.js +2 -2
  427. package/dist/collection/components/icon/UnitsAndFaculties.js.map +1 -0
  428. package/dist/collection/components/icon/Url.js +2 -2
  429. package/dist/collection/components/icon/Url.js.map +1 -0
  430. package/dist/collection/components/icon/Video.js +2 -2
  431. package/dist/collection/components/icon/Video.js.map +1 -0
  432. package/dist/collection/components/icon/Warning.js +2 -2
  433. package/dist/collection/components/icon/Warning.js.map +1 -0
  434. package/dist/collection/components/icon/Wrench.js +2 -2
  435. package/dist/collection/components/icon/Wrench.js.map +1 -0
  436. package/dist/collection/components/icon/Youtube.js +2 -2
  437. package/dist/collection/components/icon/Youtube.js.map +1 -0
  438. package/dist/collection/components/icon/allIcons.js +1 -0
  439. package/dist/collection/components/icon/allIcons.js.map +1 -0
  440. package/dist/collection/components/icon/icon.js +68 -60
  441. package/dist/collection/components/icon/icon.js.map +1 -0
  442. package/dist/collection/components/icon/icons.js +5 -8
  443. package/dist/collection/components/icon/icons.js.map +1 -0
  444. package/dist/collection/components/image/image.js +148 -141
  445. package/dist/collection/components/image/image.js.map +1 -0
  446. package/dist/collection/components/ingress/ingress.js +35 -30
  447. package/dist/collection/components/ingress/ingress.js.map +1 -0
  448. package/dist/collection/components/link/link.js +107 -99
  449. package/dist/collection/components/link/link.js.map +1 -0
  450. package/dist/collection/components/link-box/link-box.css +0 -1
  451. package/dist/collection/components/link-box/link-box.js +271 -272
  452. package/dist/collection/components/link-box/link-box.js.map +1 -0
  453. package/dist/collection/components/link-box-list/link-box-list.js +96 -89
  454. package/dist/collection/components/link-box-list/link-box-list.js.map +1 -0
  455. package/dist/collection/components/navigation/hy-menu-main-group/hy-menu-main-group.js +286 -290
  456. package/dist/collection/components/navigation/hy-menu-main-group/hy-menu-main-group.js.map +1 -0
  457. package/dist/collection/components/navigation/menu-language/menu-language.js +148 -138
  458. package/dist/collection/components/navigation/menu-language/menu-language.js.map +1 -0
  459. package/dist/collection/components/navigation/menu-language-item/menu-language-item.js +124 -114
  460. package/dist/collection/components/navigation/menu-language-item/menu-language-item.js.map +1 -0
  461. package/dist/collection/components/pagination/hy-pager/hy-pager.js +13 -9
  462. package/dist/collection/components/pagination/hy-pager/hy-pager.js.map +1 -0
  463. package/dist/collection/components/pagination/hy-pager-item/hy-pager-item.js +93 -95
  464. package/dist/collection/components/pagination/hy-pager-item/hy-pager-item.js.map +1 -0
  465. package/dist/collection/components/paragraph-text/paragraph-text-content.css +14 -14
  466. package/dist/collection/components/paragraph-text/paragraph-text-landing.css +8 -8
  467. package/dist/collection/components/paragraph-text/paragraph-text.css +22 -22
  468. package/dist/collection/components/paragraph-text/paragraph-text.js +73 -67
  469. package/dist/collection/components/paragraph-text/paragraph-text.js.map +1 -0
  470. package/dist/collection/components/person-profile/person-profile-listing/person-profile-listing.css +1 -1
  471. package/dist/collection/components/person-profile/person-profile-listing/person-profile.listing.js +128 -126
  472. package/dist/collection/components/person-profile/person-profile-listing/person-profile.listing.js.map +1 -0
  473. package/dist/collection/components/person-profile/person-profile.css +4 -4
  474. package/dist/collection/components/person-profile/person-profile.js +139 -182
  475. package/dist/collection/components/person-profile/person-profile.js.map +1 -0
  476. package/dist/collection/components/process/process.js +72 -62
  477. package/dist/collection/components/process/process.js.map +1 -0
  478. package/dist/collection/components/process-flow-box/process-flow-box.js +145 -148
  479. package/dist/collection/components/process-flow-box/process-flow-box.js.map +1 -0
  480. package/dist/collection/components/row/row.js +69 -72
  481. package/dist/collection/components/row/row.js.map +1 -0
  482. package/dist/collection/components/section-container/section-container.js +13 -9
  483. package/dist/collection/components/section-container/section-container.js.map +1 -0
  484. package/dist/collection/components/site-header/site-header.css +1 -1
  485. package/dist/collection/components/site-header/site-header.js +541 -560
  486. package/dist/collection/components/site-header/site-header.js.map +1 -0
  487. package/dist/collection/components/site-header/site-logo/site-logo.js +149 -148
  488. package/dist/collection/components/site-header/site-logo/site-logo.js.map +1 -0
  489. package/dist/collection/components/site-header/site-search/site-search.js +298 -312
  490. package/dist/collection/components/site-header/site-search/site-search.js.map +1 -0
  491. package/dist/collection/components/tiny-text/tiny-text.js +13 -9
  492. package/dist/collection/components/tiny-text/tiny-text.js.map +1 -0
  493. package/dist/collection/global/colors.js +1 -0
  494. package/dist/collection/global/colors.js.map +1 -0
  495. package/dist/collection/global/globalScript.js +1 -0
  496. package/dist/collection/global/globalScript.js.map +1 -0
  497. package/dist/collection/global/typography.js +1 -0
  498. package/dist/collection/global/typography.js.map +1 -0
  499. package/dist/collection/index.js +1 -0
  500. package/dist/collection/index.js.map +1 -0
  501. package/dist/collection/utils/utils.js +1 -0
  502. package/dist/collection/utils/utils.js.map +1 -0
  503. package/dist/esm/color-box_8.entry.js +14 -37
  504. package/dist/esm/color-box_8.entry.js.map +1 -0
  505. package/dist/esm/{globalScript-9d045b36.js → globalScript-4ad40215.js} +3 -1
  506. package/dist/esm/globalScript-4ad40215.js.map +1 -0
  507. package/dist/esm/huds-lib.js +9 -3
  508. package/dist/esm/huds-lib.js.map +1 -0
  509. package/dist/esm/hy-accordion-container_83.entry.js +366 -158
  510. package/dist/esm/hy-accordion-container_83.entry.js.map +1 -0
  511. package/dist/esm/hy-event-item.entry.js +7 -2
  512. package/dist/esm/hy-event-item.entry.js.map +1 -0
  513. package/dist/esm/hy-events.entry.js +7 -3
  514. package/dist/esm/hy-events.entry.js.map +1 -0
  515. package/dist/esm/{index-daaf0985.js → index-3a66d87e.js} +692 -288
  516. package/dist/esm/index-3a66d87e.js.map +1 -0
  517. package/dist/esm/index.js +2 -0
  518. package/dist/esm/index.js.map +1 -0
  519. package/dist/esm/loader.js +6 -3
  520. package/dist/esm/loader.js.map +1 -0
  521. package/dist/esm/polyfills/css-shim.js +1 -1
  522. package/dist/esm/{utils-7731bbdf.js → utils-43c56d92.js} +3 -1
  523. package/dist/esm/utils-43c56d92.js.map +1 -0
  524. package/dist/huds-lib/huds-lib.esm.js +2 -1
  525. package/dist/huds-lib/huds-lib.esm.js.map +1 -0
  526. package/dist/huds-lib/index.esm.js +2 -0
  527. package/dist/huds-lib/index.esm.js.map +1 -0
  528. package/dist/huds-lib/p-1aeae669.entry.js +2 -0
  529. package/dist/huds-lib/p-1aeae669.entry.js.map +1 -0
  530. package/dist/huds-lib/p-30e3190a.entry.js +88 -0
  531. package/dist/huds-lib/p-30e3190a.entry.js.map +1 -0
  532. package/dist/huds-lib/p-63584350.js +2 -0
  533. package/dist/huds-lib/p-63584350.js.map +1 -0
  534. package/dist/huds-lib/p-7b75f0ea.entry.js +2 -0
  535. package/dist/huds-lib/p-7b75f0ea.entry.js.map +1 -0
  536. package/dist/huds-lib/p-b02e49ad.js +2 -0
  537. package/dist/huds-lib/p-b02e49ad.js.map +1 -0
  538. package/dist/huds-lib/p-c8ed784d.entry.js +2 -0
  539. package/dist/huds-lib/p-c8ed784d.entry.js.map +1 -0
  540. package/dist/huds-lib/p-ff975a68.js +3 -0
  541. package/dist/huds-lib/p-ff975a68.js.map +1 -0
  542. package/dist/types/components/person-profile/person-profile-listing/person-profile.listing.d.ts +1 -1
  543. package/dist/types/components.d.ts +66 -20
  544. package/dist/types/stencil-public-runtime.d.ts +92 -19
  545. package/dist/types/utils/utils.d.ts +4 -4
  546. package/loader/index.d.ts +11 -12
  547. package/loader/index.es2017.js +1 -0
  548. package/loader/index.js +2 -11
  549. package/loader/package.json +2 -1
  550. package/package.json +12 -11
  551. package/dist/huds-lib/p-0370da7d.entry.js +0 -87
  552. package/dist/huds-lib/p-04dcccdc.js +0 -1
  553. package/dist/huds-lib/p-0ea3ec9a.js +0 -1
  554. package/dist/huds-lib/p-2244fcda.entry.js +0 -1
  555. package/dist/huds-lib/p-aba9f82a.entry.js +0 -1
  556. package/dist/huds-lib/p-c68c36c3.entry.js +0 -1
  557. package/dist/huds-lib/p-f8697bf9.js +0 -1
@@ -0,0 +1 @@
1
+ {"file":"utils-14d5aa6f.js","mappings":";;AAGA,IAAY,YAGX;AAHD,WAAY,YAAY;EACtB,mCAAmB,CAAA;EACnB,qCAAqB,CAAA;AACvB,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB;AAQWA;AAAZ,WAAY,kBAAkB;EAC5B,sCAAgB,CAAA;EAChB,mCAAa,CAAA;EACb,qCAAe,CAAA;EACf,qCAAe,CAAA;AACjB,CAAC,EALWA,0BAAkB,KAAlBA,0BAAkB,QAK7B;AAEWC;AAAZ,WAAY,iBAAiB;EAC3B,wCAAmB,CAAA;EACnB,kCAAa,CAAA;AACf,CAAC,EAHWA,yBAAiB,KAAjBA,yBAAiB,QAG5B;AAEWC;AAAZ,WAAY,kBAAkB;EAC5B,yCAAmB,CAAA;EACnB,4CAAsB,CAAA;AACxB,CAAC,EAHWA,0BAAkB,KAAlBA,0BAAkB,QAG7B;AAEWC;AAAZ,WAAY,cAAc;EACxB,gCAAc,CAAA;EACd,2BAAS,C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;AAEWC;AAAZ,WAAY,YAAY;EACtB,wDAAwC,CAAA;EACxC,gDAAgC,CAAA;EAChC,mDAAmC,CAAA;AACrC,CAAC,EAJWA,oBAAY,KAAZA,oBAAY,QAIvB;AAIWC;AAAZ,WAAY,gBAAgB;EAC1B,iCAAa,CAAA;EACb,mCAAe,CAAA;EACf,mCAAe,CAAA;EACf,yCAAqB,CAAA;AACvB,CAAC,EALWA,wBAAgB,KAAhBA,wBAAgB,QAK3B;AAEWC;AAAZ,WAAY,eAAe;EACzB,kCAAe,CAAA;EACf,kCAAe,CAAA;AACjB,CAAC,EAHWA,uBAAe,KAAfA,uBAAe,QAG1B;AAEWC;AAAZ,WAAY,eAAe;EACzB,sCAAmB,CAAA;EACnB,kDAA+B,CAAA;EAC/B,kDAA+B,CAAA;EAC/B,4CAAyB,CAAA;AAC3B,CAAC,EALWA,uBAAe,KAAfA,uBAAe,QAK1B;AAEWC;AAAZ,WAAY,oBAAoB;EAC9B,4CAAoB,CAAA;EACpB,mDAA2B,CAAA;AAC7B,CAAC,EAHWA,4BAAoB,KAApBA,4BAAoB,QAG/B;AAEWC;AAAZ,WAAY,mBAAmB;EAC7B,sCAAe,CAAA;EACf,sCAAe,CAAA;AACjB,CAAC,EAHWA,2BAAmB,KAAnBA,2BAAmB,QAG9B;AAEWC;AAAZ,WAAY,gBAAgB;EAC1B,uCAAmB,CAAA;EACnB,qCAAiB,CAAA;AACnB,CAAC,EAHWA,wBAAgB,KAAhBA,wBAAgB,QAG3B;AAEWC;AAAZ,WAAY,gBAAgB;EAC1B,iCAAa,CAAA;EACb,iCAAa,CAAA;AACf,CAAC,EAHWA,wBAAgB,KAAhBA,wBAAgB;;","names":["FooterLinkVariants","AccordionVariants","BreadcrumbVariants","HeadingVarians","HeadingSectionVariants","LinkVariants","CtaLinkVariants","CtaLinkButtonVariants","ProcessFlowBoxVariants","KeyHighlightVariants","LinkBoxVariants","CourseVariants","CourseStateVariants","PersonCardVariants","ListStyleVariants","ListItemVariants","PaginationItemVariants","GridColumnsSm","GridColumns","GridColumnsLg","GridAlignVariants","MenuType","SiteLogoSize","FooterVariant","ColorVariant","HeroColorVariant","HeroSizeVariant","HeroTypeVariant","HeroGroupTypeVariant","FooterLinkItemColor","CheckboxVariants","GeneralListTypes"],"sources":["./src/utils/utils.ts"],"sourcesContent":["import {FunctionalComponent} from '@stencil/core';\n\nexport type ButtonVariants = 'primary' | 'secondary';\nexport enum ButtonStates {\n enabled = 'enabled',\n disabled = 'disabled',\n}\n\nexport type ProcessFlowBoxStepStates = 'first' | 'default';\n\nexport type IconName = {\n [key: string]: (props: any) => FunctionalComponent;\n};\n\nexport enum FooterLinkVariants {\n default = 'base',\n base = 'base',\n campus = 'base',\n group = 'group',\n}\n\nexport enum AccordionVariants {\n default = 'default',\n mini = 'mini',\n}\n\nexport enum BreadcrumbVariants {\n default = 'default',\n landingLarge = 'large',\n}\n\nexport enum HeadingVarians {\n default = 'h1',\n h2 = 'h2',\n h3 = 'h3',\n h4 = 'h4',\n h5 = 'h5',\n h6 = 'h6',\n}\n\nexport enum HeadingSectionVariants {\n default = 'default',\n hero = 'hero',\n subSection = 'subsection',\n introduction = 'introduction',\n landingPageHeader = 'landingsection',\n contentPageHeader = 'contentsection',\n frontPage = 'frontpage',\n landingMajor = 'landing_major',\n landingMinor = 'landing_minor',\n course = 'courses',\n groupFooterInfo = 'group_footer_info',\n defaultFooterInfo = 'footer_info',\n}\n\nexport enum LinkVariants {\n default = 'default',\n paragraph = 'within-paragraph',\n}\n\nexport enum CtaLinkVariants {\n default = 'default',\n linkList = 'link-list',\n}\n\nexport enum CtaLinkButtonVariants {\n default = 'default',\n onBlueBkgd = 'blue-background',\n onWhiteBkgd = 'white-background',\n onBlackBkgd = 'black-background',\n onTransparentBkgd = 'transparent-background',\n heroWhite = 'hero-white',\n heroBlue = 'hero-blue',\n heroBlack = 'hero-black',\n darkBlue = 'dark-blue-background',\n}\n\nexport enum ProcessFlowBoxVariants {\n default = 'big',\n small = 'small',\n}\n\nexport enum KeyHighlightVariants {\n default = 'big',\n small = 'small',\n}\n\nexport enum LinkBoxVariants {\n default = 'content',\n landingPage = 'landing',\n}\n\nexport enum CourseVariants {\n default = 'row',\n row = 'row',\n grid = 'grid',\n}\n\nexport enum CourseStateVariants {\n default = 'current',\n pastCourses = 'past-courses',\n}\n\nexport enum PersonCardVariants {\n default = 'results',\n searchPanel = 'search-panel',\n extended = 'extended',\n}\n\nexport enum ListStyleVariants {\n default = 'grid',\n grid = 'grid',\n list = 'list',\n}\n\nexport enum ListItemVariants {\n default = 'default',\n degreeProgramme = 'degree',\n position = 'position',\n}\n\nexport enum PaginationItemVariants {\n default = 'default',\n current = 'current',\n previous = 'previous',\n next = 'next',\n ellipsis = 'ellipsis',\n}\n\nexport enum GridColumnsSm {\n columnsSm1 = '1',\n columnsSm2 = '2',\n columnsSm3 = '3',\n columnsSm4 = '4',\n columnsSm5 = '5',\n columnsSm6 = '6',\n columnsSm7 = '7',\n columnsSm8 = '8',\n columnsSm9 = '9',\n columnsSm10 = '10',\n columnsSm11 = '11',\n columnsSm12 = '12',\n default = '12',\n}\n\nexport enum GridColumns {\n columns1 = '1',\n columns2 = '2',\n columns3 = '3',\n columns4 = '4',\n columns5 = '5',\n columns6 = '6',\n columns7 = '7',\n columns8 = '8',\n columns9 = '9',\n columns10 = '10',\n columns11 = '11',\n columns12 = '12',\n default = '12',\n}\n\nexport enum GridColumnsLg {\n columnsLg1 = '1',\n columnsLg2 = '2',\n columnsLg3 = '3',\n columnsLg4 = '4',\n columnsLg5 = '5',\n columnsLg6 = '6',\n columnsLg7 = '7',\n columnsLg8 = '8',\n columnsLg9 = '9',\n columnsLg10 = '10',\n columnsLg11 = '11',\n columnsLg12 = '12',\n default = '12',\n}\n\nexport enum GridAlignVariants {\n default = 'left',\n right = 'right',\n center = 'center',\n}\n\nexport enum MenuType {\n desktop = 'desktop',\n mobile = 'mobile',\n tablet = 'tablet',\n default = 'desktop',\n}\n\nexport enum SiteLogoSize {\n small = 32,\n big = 64,\n large = 80,\n}\n\nexport enum FooterVariant {\n header = 'header',\n footer = 'footer',\n}\n\nexport enum ColorVariant {\n black = 'var(--brand-main-nearly-black)',\n white = 'var(--grayscale-white)',\n grey_dark = 'var(--grayscale-dark)',\n}\n\nexport type IntroductionBgColors = 'white';\n\nexport enum HeroColorVariant {\n blue = 'blue',\n black = 'black',\n white = 'white',\n fp_white = 'fp_white',\n}\n\nexport enum HeroSizeVariant {\n large = 'large',\n small = 'small',\n}\n\nexport enum HeroTypeVariant {\n landing = 'landing',\n group_landing = 'group_landing',\n minor_landing = 'minor_landing',\n front_page = 'front_page',\n}\n\nexport enum HeroGroupTypeVariant {\n default = 'no_group',\n research = 'research_group',\n}\n\nexport enum FooterLinkItemColor {\n black = 'black',\n white = 'white',\n}\n\nexport enum CheckboxVariants {\n default = 'default',\n button = 'button',\n}\n\nexport enum GeneralListTypes {\n list = 'list',\n grid = 'grid',\n}\n"],"version":3}
@@ -96,8 +96,8 @@
96
96
  ],
97
97
  "compiler": {
98
98
  "name": "@stencil/core",
99
- "version": "2.13.0",
100
- "typescriptVersion": "4.3.5"
99
+ "version": "3.2.2",
100
+ "typescriptVersion": "4.9.5"
101
101
  },
102
102
  "collections": [],
103
103
  "bundles": [
@@ -1,5 +1,8 @@
1
- import { Component, Prop, h, Host } from '@stencil/core';
1
+ import { h, Host } from '@stencil/core';
2
2
  export class AccordionContainer {
3
+ constructor() {
4
+ this.accordionid = undefined;
5
+ }
3
6
  /*
4
7
  * data-allow-toggle
5
8
  Allow for each toggle to both open and close individually
@@ -11,35 +14,39 @@ export class AccordionContainer {
11
14
  render() {
12
15
  const classAttributes = ['hy-accordion-container', 'js-hy-accordion'];
13
16
  const id = this.accordionid.toLowerCase().replace(/\W/g, '-');
14
- return (h(Host, null,
15
- h("div", { id: id, class: classAttributes.join(' '), "data-allow-multiple": "true", "data-allow-toggle": "true" },
16
- h("slot", null)),
17
- h("hy-box", { mb: "1.75, 1.75, 2, 2.5" })));
17
+ return (h(Host, null, h("div", { id: id, class: classAttributes.join(' '), "data-allow-multiple": "true", "data-allow-toggle": "true" }, h("slot", null)), h("hy-box", { mb: "1.75, 1.75, 2, 2.5" })));
18
18
  }
19
19
  static get is() { return "hy-accordion-container"; }
20
- static get originalStyleUrls() { return {
21
- "$": ["accordion-container.scss"]
22
- }; }
23
- static get styleUrls() { return {
24
- "$": ["accordion-container.css"]
25
- }; }
26
- static get properties() { return {
27
- "accordionid": {
28
- "type": "string",
29
- "mutable": false,
30
- "complexType": {
31
- "original": "string",
32
- "resolved": "string",
33
- "references": {}
34
- },
35
- "required": false,
36
- "optional": true,
37
- "docs": {
38
- "tags": [],
39
- "text": ""
40
- },
41
- "attribute": "accordionid",
42
- "reflect": false
43
- }
44
- }; }
20
+ static get originalStyleUrls() {
21
+ return {
22
+ "$": ["accordion-container.scss"]
23
+ };
24
+ }
25
+ static get styleUrls() {
26
+ return {
27
+ "$": ["accordion-container.css"]
28
+ };
29
+ }
30
+ static get properties() {
31
+ return {
32
+ "accordionid": {
33
+ "type": "string",
34
+ "mutable": false,
35
+ "complexType": {
36
+ "original": "string",
37
+ "resolved": "string",
38
+ "references": {}
39
+ },
40
+ "required": false,
41
+ "optional": true,
42
+ "docs": {
43
+ "tags": [],
44
+ "text": ""
45
+ },
46
+ "attribute": "accordionid",
47
+ "reflect": false
48
+ }
49
+ };
50
+ }
45
51
  }
52
+ //# sourceMappingURL=accordion-container.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accordion-container.js","sourceRoot":"","sources":["../../../src/components/accordion-container/accordion-container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AAOvD,MAAM,OAAO,kBAAkB;;;;EAG7B;;;;;;;IAOE;EAEF,MAAM;IACJ,MAAM,eAAe,GAAG,CAAC,wBAAwB,EAAE,iBAAiB,CAAC,CAAC;IACtE,MAAM,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC9D,OAAO,CACL,EAAC,IAAI;MACH,WAAK,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,eAAe,CAAC,IAAI,CAAC,GAAG,CAAC,yBAAsB,MAAM,uBAAmB,MAAM;QAChG,eAAa,CACT;MACN,cAAQ,EAAE,EAAC,oBAAoB,GAAG,CAC7B,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Prop, h, Host} from '@stencil/core';\n\n@Component({\n tag: 'hy-accordion-container',\n styleUrl: 'accordion-container.scss',\n shadow: false,\n})\nexport class AccordionContainer {\n @Prop() accordionid?: string;\n\n /*\n * data-allow-toggle\n Allow for each toggle to both open and close individually\n\n data-allow-multiple\n Allow for multiple accordion sections to be expanded at the same time.\n Assumes data-allow-toggle otherwise you would not be able to close any of the accordions\n */\n\n render() {\n const classAttributes = ['hy-accordion-container', 'js-hy-accordion'];\n const id = this.accordionid.toLowerCase().replace(/\\W/g, '-');\n return (\n <Host>\n <div id={id} class={classAttributes.join(' ')} data-allow-multiple=\"true\" data-allow-toggle=\"true\">\n <slot></slot>\n </div>\n <hy-box mb=\"1.75, 1.75, 2, 2.5\" />\n </Host>\n );\n }\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { Component, Listen, Prop, State, Element, h } from '@stencil/core';
1
+ import { h } from '@stencil/core';
2
2
  import { AccordionVariants } from '../../utils/utils';
3
3
  let keys = {
4
4
  enter: 'Enter',
@@ -12,6 +12,7 @@ let keys = {
12
12
  };
13
13
  export class AccordionItem {
14
14
  constructor() {
15
+ this.accordiontitle = undefined;
15
16
  this.variant = AccordionVariants.default;
16
17
  this.headerstyle = 'common';
17
18
  this.showOpen = false;
@@ -199,124 +200,125 @@ export class AccordionItem {
199
200
  const ariaExpanded = this.showOpen ? 'true' : 'false';
200
201
  const ariaHidden = this.showOpen ? 'false' : 'true';
201
202
  const dataCollapsed = this.showOpen ? 'false' : 'true';
202
- return (h("div", { class: classAttributes },
203
- h("div", { class: classInnerWrapper },
204
- h("h3", { class: classHeadingAttributes },
205
- h("a", { href: accordionItemHref, class: "hy-accordion__link", tabindex: "-1" },
206
- h("button", { "aria-expanded": ariaExpanded, "aria-controls": `${titleAsId}--content`, class: `hy-accordion__button hy-accordion__button--${this.headerstyle}`, id: `${titleAsId}--title` },
207
- h("span", { class: "hy-accordion--heading__icon" },
208
- h("hy-icon", { icon: 'hy-icon-caret-down', size: 16 })),
209
- h("span", null, this.accordiontitle)))),
210
- h("div", { "aria-labelledBy": `${titleAsId}--title`, class: classContentAttributes, id: `${titleAsId}--content`, role: "region", "aria-hidden": ariaHidden, "data-collapsed": dataCollapsed, style: { display: 'none' } },
211
- h("div", { class: classContentInnerWrapper },
212
- h("slot", null))))));
203
+ return (h("div", { class: classAttributes }, h("div", { class: classInnerWrapper }, h("h3", { class: classHeadingAttributes }, h("a", { href: accordionItemHref, class: "hy-accordion__link", tabindex: "-1" }, h("button", { "aria-expanded": ariaExpanded, "aria-controls": `${titleAsId}--content`, class: `hy-accordion__button hy-accordion__button--${this.headerstyle}`, id: `${titleAsId}--title` }, h("span", { class: "hy-accordion--heading__icon" }, h("hy-icon", { icon: 'hy-icon-caret-down', size: 16 })), h("span", null, this.accordiontitle)))), h("div", { "aria-labelledBy": `${titleAsId}--title`, class: classContentAttributes, id: `${titleAsId}--content`, role: "region", "aria-hidden": ariaHidden, "data-collapsed": dataCollapsed, style: { display: 'none' } }, h("div", { class: classContentInnerWrapper }, h("slot", null))))));
213
204
  }
214
205
  static get is() { return "hy-accordion-item"; }
215
- static get originalStyleUrls() { return {
216
- "$": ["accordion-item.scss"]
217
- }; }
218
- static get styleUrls() { return {
219
- "$": ["accordion-item.css"]
220
- }; }
221
- static get properties() { return {
222
- "accordiontitle": {
223
- "type": "string",
224
- "mutable": false,
225
- "complexType": {
226
- "original": "string",
227
- "resolved": "string",
228
- "references": {}
229
- },
230
- "required": false,
231
- "optional": true,
232
- "docs": {
233
- "tags": [],
234
- "text": ""
206
+ static get originalStyleUrls() {
207
+ return {
208
+ "$": ["accordion-item.scss"]
209
+ };
210
+ }
211
+ static get styleUrls() {
212
+ return {
213
+ "$": ["accordion-item.css"]
214
+ };
215
+ }
216
+ static get properties() {
217
+ return {
218
+ "accordiontitle": {
219
+ "type": "string",
220
+ "mutable": false,
221
+ "complexType": {
222
+ "original": "string",
223
+ "resolved": "string",
224
+ "references": {}
225
+ },
226
+ "required": false,
227
+ "optional": true,
228
+ "docs": {
229
+ "tags": [],
230
+ "text": ""
231
+ },
232
+ "attribute": "accordiontitle",
233
+ "reflect": false
235
234
  },
236
- "attribute": "accordiontitle",
237
- "reflect": false
238
- },
239
- "variant": {
240
- "type": "string",
241
- "mutable": false,
242
- "complexType": {
243
- "original": "AccordionVariants",
244
- "resolved": "AccordionVariants.default | AccordionVariants.mini",
245
- "references": {
246
- "AccordionVariants": {
247
- "location": "import",
248
- "path": "../../utils/utils"
235
+ "variant": {
236
+ "type": "string",
237
+ "mutable": false,
238
+ "complexType": {
239
+ "original": "AccordionVariants",
240
+ "resolved": "AccordionVariants.default | AccordionVariants.mini",
241
+ "references": {
242
+ "AccordionVariants": {
243
+ "location": "import",
244
+ "path": "../../utils/utils"
245
+ }
249
246
  }
250
- }
251
- },
252
- "required": false,
253
- "optional": false,
254
- "docs": {
255
- "tags": [],
256
- "text": ""
257
- },
258
- "attribute": "variant",
259
- "reflect": false,
260
- "defaultValue": "AccordionVariants.default"
261
- },
262
- "headerstyle": {
263
- "type": "string",
264
- "mutable": false,
265
- "complexType": {
266
- "original": "string",
267
- "resolved": "string",
268
- "references": {}
269
- },
270
- "required": false,
271
- "optional": false,
272
- "docs": {
273
- "tags": [],
274
- "text": ""
247
+ },
248
+ "required": false,
249
+ "optional": false,
250
+ "docs": {
251
+ "tags": [],
252
+ "text": ""
253
+ },
254
+ "attribute": "variant",
255
+ "reflect": false,
256
+ "defaultValue": "AccordionVariants.default"
275
257
  },
276
- "attribute": "headerstyle",
277
- "reflect": false,
278
- "defaultValue": "'common'"
279
- },
280
- "showOpen": {
281
- "type": "boolean",
282
- "mutable": false,
283
- "complexType": {
284
- "original": "boolean",
285
- "resolved": "boolean",
286
- "references": {}
258
+ "headerstyle": {
259
+ "type": "string",
260
+ "mutable": false,
261
+ "complexType": {
262
+ "original": "string",
263
+ "resolved": "string",
264
+ "references": {}
265
+ },
266
+ "required": false,
267
+ "optional": false,
268
+ "docs": {
269
+ "tags": [],
270
+ "text": ""
271
+ },
272
+ "attribute": "headerstyle",
273
+ "reflect": false,
274
+ "defaultValue": "'common'"
287
275
  },
288
- "required": false,
289
- "optional": false,
290
- "docs": {
291
- "tags": [],
292
- "text": ""
293
- },
294
- "attribute": "show-open",
295
- "reflect": false,
296
- "defaultValue": "false"
297
- }
298
- }; }
299
- static get states() { return {
300
- "ready": {}
301
- }; }
276
+ "showOpen": {
277
+ "type": "boolean",
278
+ "mutable": false,
279
+ "complexType": {
280
+ "original": "boolean",
281
+ "resolved": "boolean",
282
+ "references": {}
283
+ },
284
+ "required": false,
285
+ "optional": false,
286
+ "docs": {
287
+ "tags": [],
288
+ "text": ""
289
+ },
290
+ "attribute": "show-open",
291
+ "reflect": false,
292
+ "defaultValue": "false"
293
+ }
294
+ };
295
+ }
296
+ static get states() {
297
+ return {
298
+ "ready": {}
299
+ };
300
+ }
302
301
  static get elementRef() { return "el"; }
303
- static get listeners() { return [{
304
- "name": "hashchange",
305
- "method": "onHashChange",
306
- "target": "window",
307
- "capture": false,
308
- "passive": false
309
- }, {
310
- "name": "keydown",
311
- "method": "handleKeyDown",
312
- "target": undefined,
313
- "capture": false,
314
- "passive": false
315
- }, {
316
- "name": "click",
317
- "method": "handleClick",
318
- "target": undefined,
319
- "capture": false,
320
- "passive": false
321
- }]; }
302
+ static get listeners() {
303
+ return [{
304
+ "name": "hashchange",
305
+ "method": "onHashChange",
306
+ "target": "window",
307
+ "capture": false,
308
+ "passive": false
309
+ }, {
310
+ "name": "keydown",
311
+ "method": "handleKeyDown",
312
+ "target": undefined,
313
+ "capture": false,
314
+ "passive": false
315
+ }, {
316
+ "name": "click",
317
+ "method": "handleClick",
318
+ "target": undefined,
319
+ "capture": false,
320
+ "passive": false
321
+ }];
322
+ }
322
323
  }
324
+ //# sourceMappingURL=accordion-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accordion-item.js","sourceRoot":"","sources":["../../../src/components/accordion-item/accordion-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAC,MAAM,eAAe,CAAC;AACzE,OAAO,EAAC,iBAAiB,EAAC,MAAM,mBAAmB,CAAC;AAEpD,IAAI,IAAI,GAAG;EACT,KAAK,EAAE,OAAO;EACd,GAAG,EAAE,KAAK;EACV,MAAM,EAAE,QAAQ;EAChB,QAAQ,EAAE,UAAU;EACpB,OAAO,EAAE,SAAS;EAClB,SAAS,EAAE,WAAW;EACtB,IAAI,EAAE,MAAM;EACZ,GAAG,EAAE,KAAK,EAAE,IAAI;CACjB,CAAC;AAOF,MAAM,OAAO,aAAa;;;mBAGa,iBAAiB,CAAC,OAAO;uBAChC,QAAQ;oBACV,KAAK;iBACP,KAAK;;EAE/B,gBAAgB;IACd,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IAElB,IAAI,SAAS,GAAG,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAC5C,IAAI,SAAS,EAAE;MACb,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE;QACjD,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC;OAC5B;KACF;EACH,CAAC;EAED,kBAAkB;IAChB,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE;MACxB,IAAI,CAAC,mBAAmB,CAAC,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AC,IAAI;YAClE,+BACiB,YAAY,mBACZ,GAAG,SAAS,WAAW,EACtC,KAAK,EAAE,8CAA8C,IAAI,CAAC,WAAW,EAAE,EACvE,EAAE,EAAE,GAAG,SAAS,SAAS;cAEzB,YAAM,KAAK,EAAC,6BAA6B;gBACvC,eAAS,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,EAAE,GAAI,CAC5C;cACP,gBAAO,IAAI,CAAC,cAAc,CAAQ,CAC3B,CACP,CACD;QACL,8BACmB,GAAG,SAAS,SAAS,EACtC,KAAK,EAAE,sBAAsB,EAC7B,EAAE,EAAE,GAAG,SAAS,WAAW,EAC3B,IAAI,EAAC,QAAQ,iBACA,UAAU,oBACP,aAAa,EAC7B,KAAK,EAAE,EAAC,OAAO,EAAE,MAAM,EAAC;UAExB,WAAK,KAAK,EAAE,wBAAwB;YAClC,eAAa,CACT,CACF,CACF,CACF,CACP,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Listen, Prop, State, Element, h} from '@stencil/core';\nimport {AccordionVariants} from '../../utils/utils';\n\nlet keys = {\n enter: 'Enter', //13\n tab: 'Tab', //9\n pageUp: 'PageUp', //33\n pageDown: 'PageDown', //34\n arrowUp: 'ArrowUp', // 38\n arrowDown: 'ArrowDown', //40\n home: 'Home', //36\n end: 'End', //35\n};\n\n@Component({\n tag: 'hy-accordion-item',\n styleUrl: 'accordion-item.scss',\n shadow: false,\n})\nexport class AccordionItem {\n @Element() el: HTMLElement;\n @Prop() accordiontitle?: string;\n @Prop() variant: AccordionVariants = AccordionVariants.default;\n @Prop() headerstyle: string = 'common';\n @Prop() showOpen: boolean = false;\n @State() ready: boolean = false;\n\n componentDidLoad() {\n this.ready = true;\n\n let hyMainDiv = this.el.closest('.hy-main');\n if (hyMainDiv) {\n if (!hyMainDiv.classList.contains('with-sidebar')) {\n this.headerstyle = 'large';\n }\n }\n }\n\n componentDidRender() {\n if (window.location.hash) {\n this.expandPanelByAnchor(window.location.hash);\n }\n\n document.querySelectorAll('.hy-accordion__content').forEach(function (accordion) {\n let showOpen = accordion.classList.contains('open');\n let element = accordion as HTMLElement;\n if (showOpen) {\n element.style.display = 'block';\n element.style.height = element.scrollHeight + 'px';\n } else {\n element.style.height = 0 + 'px';\n element.style.display = 'none';\n }\n });\n }\n\n @Listen('hashchange', {target: 'window'})\n onHashChange() {\n if (window.location.hash) {\n this.expandPanelByAnchor(window.location.hash);\n }\n }\n\n @Listen('keydown')\n handleKeyDown(event: KeyboardEvent) {\n const containerId = this.el.parentElement.id;\n let accordion = document.querySelectorAll(`#${containerId}`)[0];\n\n const triggers = Array.prototype.slice.call(accordion.querySelectorAll('.hy-accordion__button'));\n let target = event.target as HTMLButtonElement;\n const key = event.code;\n\n const ctrlModifier = event.ctrlKey && [keys.pageDown, keys.pageUp].includes(key); //key.match(/33|34/);\n\n if (target.classList.contains('hy-accordion__button')) {\n // Up/ Down arrow and Control + Page Up/ Page Down keyboard operations\n if ([keys.arrowDown, keys.arrowUp].includes(key) || ctrlModifier) {\n const index = triggers.indexOf(target);\n const direction = [keys.arrowDown, keys.pageDown].includes(key) ? 1 : -1;\n const length = triggers.length;\n const newIndex = (index + length + direction) % length;\n triggers[newIndex].focus();\n\n event.preventDefault();\n } else if ([keys.home, keys.end].includes(key)) {\n switch (key) {\n // Go to first accordion\n case keys.home:\n triggers[0].focus();\n break;\n // Go to last accordion\n case keys.end:\n triggers[triggers.length - 1].focus();\n break;\n }\n event.preventDefault();\n }\n }\n }\n\n @Listen('click')\n handleClick(event) {\n const target = event.target as HTMLTextAreaElement;\n const accordionContainer = this.el.parentElement;\n const allowMultiple = accordionContainer.hasAttribute('data-allow-multiple');\n const allowToggle = allowMultiple ? allowMultiple : accordionContainer.hasAttribute('data-allow-toggle');\n\n if (target && target.tagName.toLowerCase() === 'button') {\n let targetParent = target.closest('.hy-accordion__item');\n let targetContent = targetParent.getElementsByClassName('hy-accordion__content')[0];\n const isExpanded = target.getAttribute('aria-expanded') === 'true';\n const activeButtonElement = accordionContainer.querySelector('[aria-expanded=\"true\"]');\n\n if (!allowMultiple && activeButtonElement && activeButtonElement !== target) {\n activeButtonElement.setAttribute('aria-expanded', 'false');\n this.collapseSection(targetContent);\n if (targetParent.classList.contains('hy-accordion__item__is-open')) {\n targetParent.classList.remove('hy-accordion__item__is-open');\n }\n\n accordionContainer\n .querySelector(`#${activeButtonElement.getAttribute('aria-controls')}`)\n .setAttribute('aria-hidden', 'true');\n\n if (!allowToggle) {\n activeButtonElement.removeAttribute('aria-disabled');\n }\n }\n\n if (!isExpanded) {\n this.expandSection(targetContent);\n target.setAttribute('aria-expanded', 'true');\n targetParent.classList.add('hy-accordion__item__is-open');\n\n accordionContainer\n .querySelector(`#${target.getAttribute('aria-controls')}`)\n .setAttribute('aria-hidden', 'false');\n\n if (!allowToggle) {\n target.setAttribute('aria-disabled', 'true');\n }\n } else if (allowToggle && isExpanded) {\n target.setAttribute('aria-expanded', 'false');\n\n this.collapseSection(targetContent);\n\n if (targetParent.classList.contains('hy-accordion__item__is-open')) {\n targetParent.classList.remove('hy-accordion__item__is-open');\n }\n\n accordionContainer\n .querySelector(`#${target.getAttribute('aria-controls')}`)\n .setAttribute('aria-hidden', 'true');\n }\n\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n }\n\n expandPanelByAnchor(anchor) {\n setTimeout(() => {\n if (anchor.length > 0) {\n anchor = anchor.substr(1);\n let target = document.querySelectorAll(`[id=${anchor}]`)[0];\n if (target && target.classList.contains('hy-accordion__button')) {\n let targetParent = target.closest('.hy-accordion__item');\n\n let targetContent = targetParent.querySelectorAll('.hy-accordion__content')[0];\n\n this.expandSection(targetContent);\n target.setAttribute('aria-expanded', 'true');\n targetParent.classList.add('hy-accordion__item__is-open');\n\n const targetElementRect = target.getBoundingClientRect();\n window.scrollTo({top: window.scrollY + targetElementRect.top - 200, behavior: 'smooth'});\n\n const containerId = targetParent.parentElement.parentElement.id;\n\n if (containerId.length > 0) {\n let accordion = document.querySelectorAll(`#${containerId}`)[0];\n accordion.querySelector(`#${target.getAttribute('aria-controls')}`).setAttribute('aria-hidden', 'false');\n }\n }\n }\n }, 200);\n }\n\n collapseSection(element) {\n element.style.height = 0 + 'px';\n element.setAttribute('data-collapsed', 'true');\n setTimeout(() => {\n element.style.display = 'none';\n }, 250);\n }\n\n expandSection(element) {\n element.style.display = 'block';\n element.style.height = element.scrollHeight + 'px';\n element.setAttribute('data-collapsed', 'false');\n }\n\n render() {\n const containerId = this.el.parentElement.id;\n\n if (this.ready && containerId.length > 0) {\n document.querySelectorAll(`#${containerId}`).forEach(function (accordion) {\n if (accordion) {\n accordion.querySelectorAll('.hy-accordion__button').forEach(function (trigger) {\n trigger.addEventListener('focus', function () {\n trigger.classList.add('focus');\n });\n trigger.addEventListener('blur', function () {\n trigger.classList.remove('focus');\n });\n });\n }\n });\n }\n\n const classIsOpen = this.showOpen ? 'hy-accordion__item__is-open' : '';\n const classContentIsOpen = this.showOpen ? 'open' : '';\n const classAttributes = ['hy-accordion__item', this.variant, classIsOpen].join(' ');\n const classInnerWrapper = ['hy-accordion__item--container', this.variant].join(' ');\n const classHeadingAttributes = ['hy-accordion--heading', this.variant].join(' ');\n const classContentAttributes = [\n 'hy-accordion__content',\n `hy-accordion__content--${this.variant}`,\n this.variant,\n classContentIsOpen,\n ].join(' ');\n const classContentInnerWrapper = [\n 'hy-accordion__content--inner-wrapper',\n `hy-accordion__content--inner-wrapper--${this.headerstyle}`,\n `hy-accordion__content--inner-wrapper--${this.variant}`,\n ].join(' ');\n\n const titleAsId = this.accordiontitle.toLowerCase().replace(/\\W/g, '-');\n const accordionItemHref = '#' + titleAsId + '--title';\n\n const ariaExpanded = this.showOpen ? 'true' : 'false';\n const ariaHidden = this.showOpen ? 'false' : 'true';\n const dataCollapsed = this.showOpen ? 'false' : 'true';\n\n return (\n <div class={classAttributes}>\n <div class={classInnerWrapper}>\n <h3 class={classHeadingAttributes}>\n <a href={accordionItemHref} class=\"hy-accordion__link\" tabindex=\"-1\">\n <button\n aria-expanded={ariaExpanded}\n aria-controls={`${titleAsId}--content`}\n class={`hy-accordion__button hy-accordion__button--${this.headerstyle}`}\n id={`${titleAsId}--title`}\n >\n <span class=\"hy-accordion--heading__icon\">\n <hy-icon icon={'hy-icon-caret-down'} size={16} />\n </span>\n <span>{this.accordiontitle}</span>\n </button>\n </a>\n </h3>\n <div\n aria-labelledBy={`${titleAsId}--title`}\n class={classContentAttributes}\n id={`${titleAsId}--content`}\n role=\"region\"\n aria-hidden={ariaHidden}\n data-collapsed={dataCollapsed}\n style={{display: 'none'}}\n >\n <div class={classContentInnerWrapper}>\n <slot></slot>\n </div>\n </div>\n </div>\n </div>\n );\n }\n}\n"]}