@itcenteratunihelsinki/huds-lib 0.9.3 → 0.9.4

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 (788) hide show
  1. package/components/hy-accordion-container.js +47 -1
  2. package/components/hy-accordion-item.js +238 -1
  3. package/components/hy-footer-info.js +3 -21
  4. package/components/hy-icon-add-to-todo-list.js +1 -1
  5. package/components/hy-icon-alert.js +1 -1
  6. package/components/hy-icon-archive.js +1 -1
  7. package/components/hy-icon-arrow-down.js +1 -1
  8. package/components/hy-icon-arrow-left.js +1 -1
  9. package/components/hy-icon-arrow-right.js +1 -1
  10. package/components/hy-icon-arrow-to-right.js +1 -1
  11. package/components/hy-icon-arrow-up.js +1 -1
  12. package/components/hy-icon-avatar-group.js +1 -1
  13. package/components/hy-icon-avatar.js +1 -1
  14. package/components/hy-icon-bachelor.js +1 -1
  15. package/components/hy-icon-bullet-list.js +1 -1
  16. package/components/hy-icon-camera.js +1 -1
  17. package/components/hy-icon-caret-down.js +1 -1
  18. package/components/hy-icon-caret-left.js +1 -1
  19. package/components/hy-icon-caret-right.js +1 -1
  20. package/components/hy-icon-caret-up.js +1 -1
  21. package/components/hy-icon-chat.js +1 -1
  22. package/components/hy-icon-code-fork.js +1 -1
  23. package/components/hy-icon-cogs.js +1 -1
  24. package/components/hy-icon-contentlink.js +1 -1
  25. package/components/hy-icon-customlink.js +1 -1
  26. package/components/hy-icon-date.js +1 -1
  27. package/components/hy-icon-discover.js +1 -1
  28. package/components/hy-icon-done.js +1 -1
  29. package/components/hy-icon-dot-arrow-right.js +1 -1
  30. package/components/hy-icon-dot.js +1 -1
  31. package/components/hy-icon-download.js +1 -1
  32. package/components/hy-icon-drag.js +1 -1
  33. package/components/hy-icon-dragbutton.js +1 -1
  34. package/components/hy-icon-drop-down.js +1 -1
  35. package/components/hy-icon-edit-event.js +1 -1
  36. package/components/hy-icon-edit.js +1 -1
  37. package/components/hy-icon-embed.js +1 -1
  38. package/components/hy-icon-euro.js +1 -1
  39. package/components/hy-icon-events.js +1 -1
  40. package/components/hy-icon-external-link.js +1 -1
  41. package/components/hy-icon-eye-slash.js +1 -1
  42. package/components/hy-icon-facebook.js +1 -1
  43. package/components/hy-icon-favorites.js +1 -1
  44. package/components/hy-icon-feed.js +1 -1
  45. package/components/hy-icon-file-text.js +1 -1
  46. package/components/hy-icon-full-screen.js +1 -1
  47. package/components/hy-icon-globe.js +1 -1
  48. package/components/hy-icon-google-plus.js +1 -1
  49. package/components/hy-icon-grid.js +1 -1
  50. package/components/hy-icon-hamburger.js +1 -1
  51. package/components/hy-icon-heart-support.js +1 -1
  52. package/components/hy-icon-heart.js +1 -1
  53. package/components/hy-icon-helsinginyliopisto.js +1 -1
  54. package/components/hy-icon-home.js +1 -1
  55. package/components/hy-icon-horizontal-resize.js +1 -1
  56. package/components/hy-icon-hy-logo.js +1 -1
  57. package/components/hy-icon-id-number.js +1 -1
  58. package/components/hy-icon-image-gallery.js +1 -1
  59. package/components/hy-icon-image.js +1 -1
  60. package/components/hy-icon-images.js +1 -1
  61. package/components/hy-icon-info-stroke.js +1 -1
  62. package/components/hy-icon-info.js +1 -1
  63. package/components/hy-icon-instagram.js +1 -1
  64. package/components/hy-icon-leiki-list.js +1 -1
  65. package/components/hy-icon-link-arrow-down.js +1 -1
  66. package/components/hy-icon-link-arrow-left.js +1 -1
  67. package/components/hy-icon-link-arrow-offsite.js +1 -1
  68. package/components/hy-icon-link-arrow-up.js +1 -1
  69. package/components/hy-icon-link-arrow.js +1 -1
  70. package/components/hy-icon-link-arrow1.js +1 -1
  71. package/components/hy-icon-linkedin.js +1 -1
  72. package/components/hy-icon-list-as-blocks.js +1 -1
  73. package/components/hy-icon-list-style-grid.js +1 -1
  74. package/components/hy-icon-list-style-list.js +1 -1
  75. package/components/hy-icon-list.js +1 -1
  76. package/components/hy-icon-listoflinks.js +1 -1
  77. package/components/hy-icon-location.js +1 -1
  78. package/components/hy-icon-log.js +1 -1
  79. package/components/hy-icon-login.js +1 -1
  80. package/components/hy-icon-logout.js +1 -1
  81. package/components/hy-icon-magnify-minus.js +1 -1
  82. package/components/hy-icon-magnify-plus.js +1 -1
  83. package/components/hy-icon-mail.js +1 -1
  84. package/components/hy-icon-master.js +1 -1
  85. package/components/hy-icon-minus.js +1 -1
  86. package/components/hy-icon-mobile.js +1 -1
  87. package/components/hy-icon-modify.js +1 -1
  88. package/components/hy-icon-navi-triangle.js +1 -1
  89. package/components/hy-icon-new-group.js +1 -1
  90. package/components/hy-icon-new-person.js +1 -1
  91. package/components/hy-icon-notification.js +1 -1
  92. package/components/hy-icon-opinder-logo-new.js +1 -1
  93. package/components/hy-icon-opinder-logo.js +1 -1
  94. package/components/hy-icon-pdf.js +1 -1
  95. package/components/hy-icon-people.js +1 -1
  96. package/components/hy-icon-permission-all.js +1 -1
  97. package/components/hy-icon-permission-group.js +1 -1
  98. package/components/hy-icon-permission-private.js +1 -1
  99. package/components/hy-icon-person-outline.js +1 -1
  100. package/components/hy-icon-person.js +1 -1
  101. package/components/hy-icon-phone.js +1 -1
  102. package/components/hy-icon-play.js +1 -1
  103. package/components/hy-icon-plus.js +1 -1
  104. package/components/hy-icon-preview.js +1 -1
  105. package/components/hy-icon-profile.js +1 -1
  106. package/components/hy-icon-question.js +1 -1
  107. package/components/hy-icon-quote.js +1 -1
  108. package/components/hy-icon-remove.js +1 -1
  109. package/components/hy-icon-retweet.js +1 -1
  110. package/components/hy-icon-rotate-left.js +1 -1
  111. package/components/hy-icon-rotate-right.js +1 -1
  112. package/components/hy-icon-search.js +1 -1
  113. package/components/hy-icon-share.js +1 -1
  114. package/components/hy-icon-slim-hamburger-menu.js +1 -1
  115. package/components/hy-icon-social-media.js +1 -1
  116. package/components/hy-icon-some-facebook.js +1 -1
  117. package/components/hy-icon-some-instagram.js +1 -1
  118. package/components/hy-icon-some-linkedin.js +1 -1
  119. package/components/hy-icon-some-tiktok.js +1 -1
  120. package/components/hy-icon-some-twitter.js +1 -1
  121. package/components/hy-icon-some-youtube.js +1 -1
  122. package/components/hy-icon-spinner.js +1 -1
  123. package/components/hy-icon-square-checked.js +1 -1
  124. package/components/hy-icon-square.js +1 -1
  125. package/components/hy-icon-time.js +1 -1
  126. package/components/hy-icon-todo-list.js +1 -1
  127. package/components/hy-icon-tour.js +1 -1
  128. package/components/hy-icon-twitter-like.js +1 -1
  129. package/components/hy-icon-units-and-faculties.js +1 -1
  130. package/components/hy-icon-url.js +1 -1
  131. package/components/hy-icon-video.js +1 -1
  132. package/components/hy-icon-warning.js +1 -1
  133. package/components/hy-icon-wrench.js +1 -1
  134. package/components/hy-icon-youtube.js +1 -1
  135. package/components/hy-iconicons.js +1 -1
  136. package/components/hy-person-profile.js +2 -14
  137. package/components/hy-quote.js +1 -1
  138. package/components/hy-row.js +1 -1
  139. package/components/hy-search-field2.js +2 -2
  140. package/components/hy-section-container.js +1 -1
  141. package/components/hy-table-container.js +1 -1
  142. package/components/hy-tabs-item2.js +1 -1
  143. package/components/hy-tabs2.js +4 -4
  144. package/components/hy-tag2.js +1 -1
  145. package/components/hy-tiny-text.js +1 -1
  146. package/components/hy-twitter-feed.js +1 -1
  147. package/components/hy-two-columns.js +1 -1
  148. package/components/hy-user-login-form.js +1 -1
  149. package/components/process-flow-box.js +1 -1
  150. package/components/site-search.js +6 -6
  151. package/dist/cjs/{app-globals-b16a26a8.js → app-globals-6389091b.js} +1 -1
  152. package/dist/cjs/{globalScript-45e3aea7.js → globalScript-c309d309.js} +9 -0
  153. package/dist/cjs/huds-lib.cjs.js +3 -3
  154. package/dist/cjs/hy-adjacent-image-text.cjs.entry.js +1 -1
  155. package/dist/cjs/hy-anchor-link-list.cjs.entry.js +1 -1
  156. package/dist/cjs/hy-breadcrumbs_15.cjs.entry.js +11 -11
  157. package/dist/cjs/hy-content-list_2.cjs.entry.js +1 -1
  158. package/dist/cjs/hy-dropdown.cjs.entry.js +1 -1
  159. package/dist/cjs/hy-general-list_2.cjs.entry.js +1 -1
  160. package/dist/cjs/hy-hero-carousel.cjs.entry.js +1 -1
  161. package/dist/cjs/hy-hero.cjs.entry.js +1 -1
  162. package/dist/cjs/hy-icon-add-to-todo-list.cjs.entry.js +1 -1
  163. package/dist/cjs/hy-icon-alert.cjs.entry.js +1 -1
  164. package/dist/cjs/hy-icon-archive.cjs.entry.js +1 -1
  165. package/dist/cjs/hy-icon-arrow-down.cjs.entry.js +1 -1
  166. package/dist/cjs/hy-icon-arrow-left.cjs.entry.js +1 -1
  167. package/dist/cjs/hy-icon-arrow-right.cjs.entry.js +1 -1
  168. package/dist/cjs/hy-icon-arrow-to-right.cjs.entry.js +1 -1
  169. package/dist/cjs/hy-icon-arrow-up.cjs.entry.js +1 -1
  170. package/dist/cjs/hy-icon-avatar-group.cjs.entry.js +1 -1
  171. package/dist/cjs/hy-icon-avatar.cjs.entry.js +1 -1
  172. package/dist/cjs/hy-icon-bachelor.cjs.entry.js +1 -1
  173. package/dist/cjs/hy-icon-bullet-list.cjs.entry.js +1 -1
  174. package/dist/cjs/hy-icon-camera.cjs.entry.js +1 -1
  175. package/dist/cjs/hy-icon-caret-down.cjs.entry.js +1 -1
  176. package/dist/cjs/hy-icon-caret-left.cjs.entry.js +1 -1
  177. package/dist/cjs/hy-icon-caret-right.cjs.entry.js +1 -1
  178. package/dist/cjs/hy-icon-caret-up.cjs.entry.js +1 -1
  179. package/dist/cjs/hy-icon-chat.cjs.entry.js +1 -1
  180. package/dist/cjs/hy-icon-code-fork.cjs.entry.js +1 -1
  181. package/dist/cjs/hy-icon-cogs.cjs.entry.js +1 -1
  182. package/dist/cjs/hy-icon-contentlink.cjs.entry.js +1 -1
  183. package/dist/cjs/hy-icon-customlink.cjs.entry.js +1 -1
  184. package/dist/cjs/hy-icon-date.cjs.entry.js +1 -1
  185. package/dist/cjs/hy-icon-discover.cjs.entry.js +1 -1
  186. package/dist/cjs/hy-icon-done.cjs.entry.js +1 -1
  187. package/dist/cjs/hy-icon-dot-arrow-right.cjs.entry.js +1 -1
  188. package/dist/cjs/hy-icon-dot.cjs.entry.js +1 -1
  189. package/dist/cjs/hy-icon-download.cjs.entry.js +1 -1
  190. package/dist/cjs/hy-icon-drag.cjs.entry.js +1 -1
  191. package/dist/cjs/hy-icon-dragbutton.cjs.entry.js +1 -1
  192. package/dist/cjs/hy-icon-drop-down.cjs.entry.js +1 -1
  193. package/dist/cjs/hy-icon-edit-event.cjs.entry.js +1 -1
  194. package/dist/cjs/hy-icon-edit.cjs.entry.js +1 -1
  195. package/dist/cjs/hy-icon-embed.cjs.entry.js +1 -1
  196. package/dist/cjs/hy-icon-euro.cjs.entry.js +1 -1
  197. package/dist/cjs/hy-icon-events.cjs.entry.js +1 -1
  198. package/dist/cjs/hy-icon-external-link.cjs.entry.js +1 -1
  199. package/dist/cjs/hy-icon-eye-slash.cjs.entry.js +1 -1
  200. package/dist/cjs/hy-icon-facebook.cjs.entry.js +1 -1
  201. package/dist/cjs/hy-icon-favorites.cjs.entry.js +1 -1
  202. package/dist/cjs/hy-icon-feed.cjs.entry.js +1 -1
  203. package/dist/cjs/hy-icon-file-text.cjs.entry.js +1 -1
  204. package/dist/cjs/hy-icon-full-screen.cjs.entry.js +1 -1
  205. package/dist/cjs/hy-icon-globe.cjs.entry.js +1 -1
  206. package/dist/cjs/hy-icon-google-plus.cjs.entry.js +1 -1
  207. package/dist/cjs/hy-icon-grid.cjs.entry.js +1 -1
  208. package/dist/cjs/hy-icon-hamburger.cjs.entry.js +1 -1
  209. package/dist/cjs/hy-icon-heart-support.cjs.entry.js +1 -1
  210. package/dist/cjs/hy-icon-heart.cjs.entry.js +1 -1
  211. package/dist/cjs/hy-icon-helsinginyliopisto.cjs.entry.js +1 -1
  212. package/dist/cjs/hy-icon-home.cjs.entry.js +1 -1
  213. package/dist/cjs/hy-icon-horizontal-resize.cjs.entry.js +1 -1
  214. package/dist/cjs/hy-icon-hy-logo.cjs.entry.js +1 -1
  215. package/dist/cjs/hy-icon-id-number.cjs.entry.js +1 -1
  216. package/dist/cjs/hy-icon-image-gallery.cjs.entry.js +1 -1
  217. package/dist/cjs/hy-icon-image.cjs.entry.js +1 -1
  218. package/dist/cjs/hy-icon-images.cjs.entry.js +1 -1
  219. package/dist/cjs/hy-icon-info-stroke.cjs.entry.js +1 -1
  220. package/dist/cjs/hy-icon-info.cjs.entry.js +1 -1
  221. package/dist/cjs/hy-icon-instagram.cjs.entry.js +1 -1
  222. package/dist/cjs/hy-icon-leiki-list.cjs.entry.js +1 -1
  223. package/dist/cjs/hy-icon-link-arrow-down.cjs.entry.js +1 -1
  224. package/dist/cjs/hy-icon-link-arrow-left.cjs.entry.js +1 -1
  225. package/dist/cjs/hy-icon-link-arrow-offsite.cjs.entry.js +1 -1
  226. package/dist/cjs/hy-icon-link-arrow-up.cjs.entry.js +1 -1
  227. package/dist/cjs/hy-icon-link-arrow.cjs.entry.js +1 -1
  228. package/dist/cjs/hy-icon-link-arrow1.cjs.entry.js +1 -1
  229. package/dist/cjs/hy-icon-linkedin.cjs.entry.js +1 -1
  230. package/dist/cjs/hy-icon-list-as-blocks.cjs.entry.js +1 -1
  231. package/dist/cjs/hy-icon-list-style-grid.cjs.entry.js +1 -1
  232. package/dist/cjs/hy-icon-list-style-list.cjs.entry.js +1 -1
  233. package/dist/cjs/hy-icon-list.cjs.entry.js +1 -1
  234. package/dist/cjs/hy-icon-listoflinks.cjs.entry.js +1 -1
  235. package/dist/cjs/hy-icon-location.cjs.entry.js +1 -1
  236. package/dist/cjs/hy-icon-log.cjs.entry.js +1 -1
  237. package/dist/cjs/hy-icon-login.cjs.entry.js +1 -1
  238. package/dist/cjs/hy-icon-logout.cjs.entry.js +1 -1
  239. package/dist/cjs/hy-icon-magnify-minus.cjs.entry.js +1 -1
  240. package/dist/cjs/hy-icon-magnify-plus.cjs.entry.js +1 -1
  241. package/dist/cjs/hy-icon-mail.cjs.entry.js +1 -1
  242. package/dist/cjs/hy-icon-master.cjs.entry.js +1 -1
  243. package/dist/cjs/hy-icon-minus.cjs.entry.js +1 -1
  244. package/dist/cjs/hy-icon-mobile.cjs.entry.js +1 -1
  245. package/dist/cjs/hy-icon-modify.cjs.entry.js +1 -1
  246. package/dist/cjs/hy-icon-navi-triangle.cjs.entry.js +1 -1
  247. package/dist/cjs/hy-icon-new-group.cjs.entry.js +1 -1
  248. package/dist/cjs/hy-icon-new-person.cjs.entry.js +1 -1
  249. package/dist/cjs/hy-icon-notification.cjs.entry.js +1 -1
  250. package/dist/cjs/hy-icon-opinder-logo-new.cjs.entry.js +1 -1
  251. package/dist/cjs/hy-icon-opinder-logo.cjs.entry.js +1 -1
  252. package/dist/cjs/hy-icon-pdf.cjs.entry.js +1 -1
  253. package/dist/cjs/hy-icon-people.cjs.entry.js +1 -1
  254. package/dist/cjs/hy-icon-permission-all.cjs.entry.js +1 -1
  255. package/dist/cjs/hy-icon-permission-group.cjs.entry.js +1 -1
  256. package/dist/cjs/hy-icon-permission-private.cjs.entry.js +1 -1
  257. package/dist/cjs/hy-icon-person-outline.cjs.entry.js +1 -1
  258. package/dist/cjs/hy-icon-person.cjs.entry.js +1 -1
  259. package/dist/cjs/hy-icon-phone.cjs.entry.js +1 -1
  260. package/dist/cjs/hy-icon-play.cjs.entry.js +1 -1
  261. package/dist/cjs/hy-icon-plus.cjs.entry.js +1 -1
  262. package/dist/cjs/hy-icon-preview.cjs.entry.js +1 -1
  263. package/dist/cjs/hy-icon-profile.cjs.entry.js +1 -1
  264. package/dist/cjs/hy-icon-question.cjs.entry.js +1 -1
  265. package/dist/cjs/hy-icon-quote.cjs.entry.js +1 -1
  266. package/dist/cjs/hy-icon-remove.cjs.entry.js +1 -1
  267. package/dist/cjs/hy-icon-retweet.cjs.entry.js +1 -1
  268. package/dist/cjs/hy-icon-rotate-left.cjs.entry.js +1 -1
  269. package/dist/cjs/hy-icon-rotate-right.cjs.entry.js +1 -1
  270. package/dist/cjs/hy-icon-search.cjs.entry.js +1 -1
  271. package/dist/cjs/hy-icon-share.cjs.entry.js +1 -1
  272. package/dist/cjs/hy-icon-slim-hamburger-menu.cjs.entry.js +1 -1
  273. package/dist/cjs/hy-icon-social-media.cjs.entry.js +1 -1
  274. package/dist/cjs/hy-icon-some-facebook.cjs.entry.js +1 -1
  275. package/dist/cjs/hy-icon-some-instagram.cjs.entry.js +1 -1
  276. package/dist/cjs/hy-icon-some-linkedin.cjs.entry.js +1 -1
  277. package/dist/cjs/hy-icon-some-tiktok.cjs.entry.js +1 -1
  278. package/dist/cjs/hy-icon-some-twitter.cjs.entry.js +1 -1
  279. package/dist/cjs/hy-icon-some-youtube.cjs.entry.js +1 -1
  280. package/dist/cjs/hy-icon-spinner.cjs.entry.js +1 -1
  281. package/dist/cjs/hy-icon-square-checked.cjs.entry.js +1 -1
  282. package/dist/cjs/hy-icon-square.cjs.entry.js +1 -1
  283. package/dist/cjs/hy-icon-time.cjs.entry.js +1 -1
  284. package/dist/cjs/hy-icon-todo-list.cjs.entry.js +1 -1
  285. package/dist/cjs/hy-icon-tour.cjs.entry.js +1 -1
  286. package/dist/cjs/hy-icon-twitter-like.cjs.entry.js +1 -1
  287. package/dist/cjs/hy-icon-units-and-faculties.cjs.entry.js +1 -1
  288. package/dist/cjs/hy-icon-url.cjs.entry.js +1 -1
  289. package/dist/cjs/hy-icon-video.cjs.entry.js +1 -1
  290. package/dist/cjs/hy-icon-warning.cjs.entry.js +1 -1
  291. package/dist/cjs/hy-icon-wrench.cjs.entry.js +1 -1
  292. package/dist/cjs/hy-icon-youtube.cjs.entry.js +1 -1
  293. package/dist/cjs/hy-iconicons.cjs.entry.js +1 -1
  294. package/dist/cjs/hy-key-figure_2.cjs.entry.js +1 -1
  295. package/dist/cjs/hy-key-highlight_2.cjs.entry.js +1 -1
  296. package/dist/cjs/hy-large-process-flow_2.cjs.entry.js +1 -1
  297. package/dist/cjs/hy-link-box_2.cjs.entry.js +1 -1
  298. package/dist/cjs/hy-link-list.cjs.entry.js +1 -1
  299. package/dist/cjs/hy-menu-main-group.cjs.entry.js +1 -1
  300. package/dist/cjs/hy-person-profile.cjs.entry.js +1 -1
  301. package/dist/cjs/hy-process_2.cjs.entry.js +2 -2
  302. package/dist/cjs/hy-quote.cjs.entry.js +1 -1
  303. package/dist/cjs/hy-row.cjs.entry.js +1 -1
  304. package/dist/cjs/hy-section-container.cjs.entry.js +1 -1
  305. package/dist/cjs/hy-table-container.cjs.entry.js +1 -1
  306. package/dist/cjs/hy-tabs_2.cjs.entry.js +5 -5
  307. package/dist/cjs/hy-tag.cjs.entry.js +1 -1
  308. package/dist/cjs/hy-tiny-text.cjs.entry.js +1 -1
  309. package/dist/cjs/hy-twitter-feed.cjs.entry.js +1 -1
  310. package/dist/cjs/hy-two-columns.cjs.entry.js +1 -1
  311. package/dist/cjs/hy-user-login-form.cjs.entry.js +1 -1
  312. package/dist/cjs/loader.cjs.js +3 -3
  313. package/dist/collection/components/footer/hy-footer-info/hy-footer-info.js +2 -2
  314. package/dist/collection/components/hy-person-profile/person-profile.js +1 -1
  315. package/dist/collection/components/hy-process-flow-box/process-flow-box.js +1 -1
  316. package/dist/collection/components/hy-quote/hy-quote.js +1 -1
  317. package/dist/collection/components/hy-row/row.js +1 -1
  318. package/dist/collection/components/hy-search-field/hy-search-field.js +2 -2
  319. package/dist/collection/components/hy-section-container/section-container.js +1 -1
  320. package/dist/collection/components/hy-site-header/site-search/site-search.js +6 -6
  321. package/dist/collection/components/hy-table-container/hy-table-container.js +1 -1
  322. package/dist/collection/components/hy-tabs/hy-tabs.js +4 -4
  323. package/dist/collection/components/hy-tabs-item/hy-tabs-item.js +1 -1
  324. package/dist/collection/components/hy-tag/hy-tag.js +1 -1
  325. package/dist/collection/components/hy-tiny-text/tiny-text.js +1 -1
  326. package/dist/collection/components/hy-twitter-feed/hy-twitter-feed.js +1 -1
  327. package/dist/collection/components/hy-two-columns/hy-two-columns.js +1 -1
  328. package/dist/collection/components/hy-user-login-form/hy-user-login-form.js +1 -1
  329. package/dist/collection/components/icons/hy-icon-add-to-todo-list.js +1 -1
  330. package/dist/collection/components/icons/hy-icon-alert.js +1 -1
  331. package/dist/collection/components/icons/hy-icon-archive.js +1 -1
  332. package/dist/collection/components/icons/hy-icon-arrow-down.js +1 -1
  333. package/dist/collection/components/icons/hy-icon-arrow-left.js +1 -1
  334. package/dist/collection/components/icons/hy-icon-arrow-right.js +1 -1
  335. package/dist/collection/components/icons/hy-icon-arrow-to-right.js +1 -1
  336. package/dist/collection/components/icons/hy-icon-arrow-up.js +1 -1
  337. package/dist/collection/components/icons/hy-icon-avatar-group.js +1 -1
  338. package/dist/collection/components/icons/hy-icon-avatar.js +1 -1
  339. package/dist/collection/components/icons/hy-icon-bachelor.js +1 -1
  340. package/dist/collection/components/icons/hy-icon-bullet-list.js +1 -1
  341. package/dist/collection/components/icons/hy-icon-camera.js +1 -1
  342. package/dist/collection/components/icons/hy-icon-caret-down.js +1 -1
  343. package/dist/collection/components/icons/hy-icon-caret-left.js +1 -1
  344. package/dist/collection/components/icons/hy-icon-caret-right.js +1 -1
  345. package/dist/collection/components/icons/hy-icon-caret-up.js +1 -1
  346. package/dist/collection/components/icons/hy-icon-chat.js +1 -1
  347. package/dist/collection/components/icons/hy-icon-code-fork.js +1 -1
  348. package/dist/collection/components/icons/hy-icon-cogs.js +1 -1
  349. package/dist/collection/components/icons/hy-icon-contentlink.js +1 -1
  350. package/dist/collection/components/icons/hy-icon-customlink.js +1 -1
  351. package/dist/collection/components/icons/hy-icon-date.js +1 -1
  352. package/dist/collection/components/icons/hy-icon-discover.js +1 -1
  353. package/dist/collection/components/icons/hy-icon-done.js +1 -1
  354. package/dist/collection/components/icons/hy-icon-dot-arrow-right.js +1 -1
  355. package/dist/collection/components/icons/hy-icon-dot.js +1 -1
  356. package/dist/collection/components/icons/hy-icon-download.js +1 -1
  357. package/dist/collection/components/icons/hy-icon-drag.js +1 -1
  358. package/dist/collection/components/icons/hy-icon-dragbutton.js +1 -1
  359. package/dist/collection/components/icons/hy-icon-drop-down.js +1 -1
  360. package/dist/collection/components/icons/hy-icon-edit-event.js +1 -1
  361. package/dist/collection/components/icons/hy-icon-edit.js +1 -1
  362. package/dist/collection/components/icons/hy-icon-embed.js +1 -1
  363. package/dist/collection/components/icons/hy-icon-euro.js +1 -1
  364. package/dist/collection/components/icons/hy-icon-events.js +1 -1
  365. package/dist/collection/components/icons/hy-icon-external-link.js +1 -1
  366. package/dist/collection/components/icons/hy-icon-eye-slash.js +1 -1
  367. package/dist/collection/components/icons/hy-icon-facebook.js +1 -1
  368. package/dist/collection/components/icons/hy-icon-favorites.js +1 -1
  369. package/dist/collection/components/icons/hy-icon-feed.js +1 -1
  370. package/dist/collection/components/icons/hy-icon-file-text.js +1 -1
  371. package/dist/collection/components/icons/hy-icon-full-screen.js +1 -1
  372. package/dist/collection/components/icons/hy-icon-globe.js +1 -1
  373. package/dist/collection/components/icons/hy-icon-google-plus.js +1 -1
  374. package/dist/collection/components/icons/hy-icon-grid.js +1 -1
  375. package/dist/collection/components/icons/hy-icon-hamburger.js +1 -1
  376. package/dist/collection/components/icons/hy-icon-heart-support.js +1 -1
  377. package/dist/collection/components/icons/hy-icon-heart.js +1 -1
  378. package/dist/collection/components/icons/hy-icon-helsinginyliopisto.js +1 -1
  379. package/dist/collection/components/icons/hy-icon-home.js +1 -1
  380. package/dist/collection/components/icons/hy-icon-horizontal-resize.js +1 -1
  381. package/dist/collection/components/icons/hy-icon-hy-logo.js +1 -1
  382. package/dist/collection/components/icons/hy-icon-id-number.js +1 -1
  383. package/dist/collection/components/icons/hy-icon-image-gallery.js +1 -1
  384. package/dist/collection/components/icons/hy-icon-image.js +1 -1
  385. package/dist/collection/components/icons/hy-icon-images.js +1 -1
  386. package/dist/collection/components/icons/hy-icon-info-stroke.js +1 -1
  387. package/dist/collection/components/icons/hy-icon-info.js +1 -1
  388. package/dist/collection/components/icons/hy-icon-instagram.js +1 -1
  389. package/dist/collection/components/icons/hy-icon-leiki-list.js +1 -1
  390. package/dist/collection/components/icons/hy-icon-link-arrow-down.js +1 -1
  391. package/dist/collection/components/icons/hy-icon-link-arrow-left.js +1 -1
  392. package/dist/collection/components/icons/hy-icon-link-arrow-offsite.js +1 -1
  393. package/dist/collection/components/icons/hy-icon-link-arrow-up.js +1 -1
  394. package/dist/collection/components/icons/hy-icon-link-arrow.js +1 -1
  395. package/dist/collection/components/icons/hy-icon-link-arrow1.js +1 -1
  396. package/dist/collection/components/icons/hy-icon-linkedin.js +1 -1
  397. package/dist/collection/components/icons/hy-icon-list-as-blocks.js +1 -1
  398. package/dist/collection/components/icons/hy-icon-list-style-grid.js +1 -1
  399. package/dist/collection/components/icons/hy-icon-list-style-list.js +1 -1
  400. package/dist/collection/components/icons/hy-icon-list.js +1 -1
  401. package/dist/collection/components/icons/hy-icon-listoflinks.js +1 -1
  402. package/dist/collection/components/icons/hy-icon-location.js +1 -1
  403. package/dist/collection/components/icons/hy-icon-log.js +1 -1
  404. package/dist/collection/components/icons/hy-icon-login.js +1 -1
  405. package/dist/collection/components/icons/hy-icon-logout.js +1 -1
  406. package/dist/collection/components/icons/hy-icon-magnify-minus.js +1 -1
  407. package/dist/collection/components/icons/hy-icon-magnify-plus.js +1 -1
  408. package/dist/collection/components/icons/hy-icon-mail.js +1 -1
  409. package/dist/collection/components/icons/hy-icon-master.js +1 -1
  410. package/dist/collection/components/icons/hy-icon-minus.js +1 -1
  411. package/dist/collection/components/icons/hy-icon-mobile.js +1 -1
  412. package/dist/collection/components/icons/hy-icon-modify.js +1 -1
  413. package/dist/collection/components/icons/hy-icon-navi-triangle.js +1 -1
  414. package/dist/collection/components/icons/hy-icon-new-group.js +1 -1
  415. package/dist/collection/components/icons/hy-icon-new-person.js +1 -1
  416. package/dist/collection/components/icons/hy-icon-notification.js +1 -1
  417. package/dist/collection/components/icons/hy-icon-opinder-logo-new.js +1 -1
  418. package/dist/collection/components/icons/hy-icon-opinder-logo.js +1 -1
  419. package/dist/collection/components/icons/hy-icon-pdf.js +1 -1
  420. package/dist/collection/components/icons/hy-icon-people.js +1 -1
  421. package/dist/collection/components/icons/hy-icon-permission-all.js +1 -1
  422. package/dist/collection/components/icons/hy-icon-permission-group.js +1 -1
  423. package/dist/collection/components/icons/hy-icon-permission-private.js +1 -1
  424. package/dist/collection/components/icons/hy-icon-person-outline.js +1 -1
  425. package/dist/collection/components/icons/hy-icon-person.js +1 -1
  426. package/dist/collection/components/icons/hy-icon-phone.js +1 -1
  427. package/dist/collection/components/icons/hy-icon-play.js +1 -1
  428. package/dist/collection/components/icons/hy-icon-plus.js +1 -1
  429. package/dist/collection/components/icons/hy-icon-preview.js +1 -1
  430. package/dist/collection/components/icons/hy-icon-profile.js +1 -1
  431. package/dist/collection/components/icons/hy-icon-question.js +1 -1
  432. package/dist/collection/components/icons/hy-icon-quote.js +1 -1
  433. package/dist/collection/components/icons/hy-icon-remove.js +1 -1
  434. package/dist/collection/components/icons/hy-icon-retweet.js +1 -1
  435. package/dist/collection/components/icons/hy-icon-rotate-left.js +1 -1
  436. package/dist/collection/components/icons/hy-icon-rotate-right.js +1 -1
  437. package/dist/collection/components/icons/hy-icon-search.js +1 -1
  438. package/dist/collection/components/icons/hy-icon-share.js +1 -1
  439. package/dist/collection/components/icons/hy-icon-slim-hamburger-menu.js +1 -1
  440. package/dist/collection/components/icons/hy-icon-social-media.js +1 -1
  441. package/dist/collection/components/icons/hy-icon-some-facebook.js +1 -1
  442. package/dist/collection/components/icons/hy-icon-some-instagram.js +1 -1
  443. package/dist/collection/components/icons/hy-icon-some-linkedin.js +1 -1
  444. package/dist/collection/components/icons/hy-icon-some-tiktok.js +1 -1
  445. package/dist/collection/components/icons/hy-icon-some-twitter.js +1 -1
  446. package/dist/collection/components/icons/hy-icon-some-youtube.js +1 -1
  447. package/dist/collection/components/icons/hy-icon-spinner.js +1 -1
  448. package/dist/collection/components/icons/hy-icon-square-checked.js +1 -1
  449. package/dist/collection/components/icons/hy-icon-square.js +1 -1
  450. package/dist/collection/components/icons/hy-icon-time.js +1 -1
  451. package/dist/collection/components/icons/hy-icon-todo-list.js +1 -1
  452. package/dist/collection/components/icons/hy-icon-tour.js +1 -1
  453. package/dist/collection/components/icons/hy-icon-twitter-like.js +1 -1
  454. package/dist/collection/components/icons/hy-icon-units-and-faculties.js +1 -1
  455. package/dist/collection/components/icons/hy-icon-url.js +1 -1
  456. package/dist/collection/components/icons/hy-icon-video.js +1 -1
  457. package/dist/collection/components/icons/hy-icon-warning.js +1 -1
  458. package/dist/collection/components/icons/hy-icon-wrench.js +1 -1
  459. package/dist/collection/components/icons/hy-icon-youtube.js +1 -1
  460. package/dist/collection/components/icons/hy-iconicons.js +1 -1
  461. package/dist/collection/global/globalScript.js +9 -0
  462. package/dist/esm/{app-globals-d5da9f0e.js → app-globals-1b021639.js} +1 -1
  463. package/dist/esm/{globalScript-7f6ce018.js → globalScript-3f479486.js} +9 -0
  464. package/dist/esm/huds-lib.js +3 -3
  465. package/dist/esm/hy-adjacent-image-text.entry.js +1 -1
  466. package/dist/esm/hy-anchor-link-list.entry.js +1 -1
  467. package/dist/esm/hy-breadcrumbs_15.entry.js +11 -11
  468. package/dist/esm/hy-content-list_2.entry.js +1 -1
  469. package/dist/esm/hy-dropdown.entry.js +1 -1
  470. package/dist/esm/hy-general-list_2.entry.js +1 -1
  471. package/dist/esm/hy-hero-carousel.entry.js +1 -1
  472. package/dist/esm/hy-hero.entry.js +1 -1
  473. package/dist/esm/hy-icon-add-to-todo-list.entry.js +1 -1
  474. package/dist/esm/hy-icon-alert.entry.js +1 -1
  475. package/dist/esm/hy-icon-archive.entry.js +1 -1
  476. package/dist/esm/hy-icon-arrow-down.entry.js +1 -1
  477. package/dist/esm/hy-icon-arrow-left.entry.js +1 -1
  478. package/dist/esm/hy-icon-arrow-right.entry.js +1 -1
  479. package/dist/esm/hy-icon-arrow-to-right.entry.js +1 -1
  480. package/dist/esm/hy-icon-arrow-up.entry.js +1 -1
  481. package/dist/esm/hy-icon-avatar-group.entry.js +1 -1
  482. package/dist/esm/hy-icon-avatar.entry.js +1 -1
  483. package/dist/esm/hy-icon-bachelor.entry.js +1 -1
  484. package/dist/esm/hy-icon-bullet-list.entry.js +1 -1
  485. package/dist/esm/hy-icon-camera.entry.js +1 -1
  486. package/dist/esm/hy-icon-caret-down.entry.js +1 -1
  487. package/dist/esm/hy-icon-caret-left.entry.js +1 -1
  488. package/dist/esm/hy-icon-caret-right.entry.js +1 -1
  489. package/dist/esm/hy-icon-caret-up.entry.js +1 -1
  490. package/dist/esm/hy-icon-chat.entry.js +1 -1
  491. package/dist/esm/hy-icon-code-fork.entry.js +1 -1
  492. package/dist/esm/hy-icon-cogs.entry.js +1 -1
  493. package/dist/esm/hy-icon-contentlink.entry.js +1 -1
  494. package/dist/esm/hy-icon-customlink.entry.js +1 -1
  495. package/dist/esm/hy-icon-date.entry.js +1 -1
  496. package/dist/esm/hy-icon-discover.entry.js +1 -1
  497. package/dist/esm/hy-icon-done.entry.js +1 -1
  498. package/dist/esm/hy-icon-dot-arrow-right.entry.js +1 -1
  499. package/dist/esm/hy-icon-dot.entry.js +1 -1
  500. package/dist/esm/hy-icon-download.entry.js +1 -1
  501. package/dist/esm/hy-icon-drag.entry.js +1 -1
  502. package/dist/esm/hy-icon-dragbutton.entry.js +1 -1
  503. package/dist/esm/hy-icon-drop-down.entry.js +1 -1
  504. package/dist/esm/hy-icon-edit-event.entry.js +1 -1
  505. package/dist/esm/hy-icon-edit.entry.js +1 -1
  506. package/dist/esm/hy-icon-embed.entry.js +1 -1
  507. package/dist/esm/hy-icon-euro.entry.js +1 -1
  508. package/dist/esm/hy-icon-events.entry.js +1 -1
  509. package/dist/esm/hy-icon-external-link.entry.js +1 -1
  510. package/dist/esm/hy-icon-eye-slash.entry.js +1 -1
  511. package/dist/esm/hy-icon-facebook.entry.js +1 -1
  512. package/dist/esm/hy-icon-favorites.entry.js +1 -1
  513. package/dist/esm/hy-icon-feed.entry.js +1 -1
  514. package/dist/esm/hy-icon-file-text.entry.js +1 -1
  515. package/dist/esm/hy-icon-full-screen.entry.js +1 -1
  516. package/dist/esm/hy-icon-globe.entry.js +1 -1
  517. package/dist/esm/hy-icon-google-plus.entry.js +1 -1
  518. package/dist/esm/hy-icon-grid.entry.js +1 -1
  519. package/dist/esm/hy-icon-hamburger.entry.js +1 -1
  520. package/dist/esm/hy-icon-heart-support.entry.js +1 -1
  521. package/dist/esm/hy-icon-heart.entry.js +1 -1
  522. package/dist/esm/hy-icon-helsinginyliopisto.entry.js +1 -1
  523. package/dist/esm/hy-icon-home.entry.js +1 -1
  524. package/dist/esm/hy-icon-horizontal-resize.entry.js +1 -1
  525. package/dist/esm/hy-icon-hy-logo.entry.js +1 -1
  526. package/dist/esm/hy-icon-id-number.entry.js +1 -1
  527. package/dist/esm/hy-icon-image-gallery.entry.js +1 -1
  528. package/dist/esm/hy-icon-image.entry.js +1 -1
  529. package/dist/esm/hy-icon-images.entry.js +1 -1
  530. package/dist/esm/hy-icon-info-stroke.entry.js +1 -1
  531. package/dist/esm/hy-icon-info.entry.js +1 -1
  532. package/dist/esm/hy-icon-instagram.entry.js +1 -1
  533. package/dist/esm/hy-icon-leiki-list.entry.js +1 -1
  534. package/dist/esm/hy-icon-link-arrow-down.entry.js +1 -1
  535. package/dist/esm/hy-icon-link-arrow-left.entry.js +1 -1
  536. package/dist/esm/hy-icon-link-arrow-offsite.entry.js +1 -1
  537. package/dist/esm/hy-icon-link-arrow-up.entry.js +1 -1
  538. package/dist/esm/hy-icon-link-arrow.entry.js +1 -1
  539. package/dist/esm/hy-icon-link-arrow1.entry.js +1 -1
  540. package/dist/esm/hy-icon-linkedin.entry.js +1 -1
  541. package/dist/esm/hy-icon-list-as-blocks.entry.js +1 -1
  542. package/dist/esm/hy-icon-list-style-grid.entry.js +1 -1
  543. package/dist/esm/hy-icon-list-style-list.entry.js +1 -1
  544. package/dist/esm/hy-icon-list.entry.js +1 -1
  545. package/dist/esm/hy-icon-listoflinks.entry.js +1 -1
  546. package/dist/esm/hy-icon-location.entry.js +1 -1
  547. package/dist/esm/hy-icon-log.entry.js +1 -1
  548. package/dist/esm/hy-icon-login.entry.js +1 -1
  549. package/dist/esm/hy-icon-logout.entry.js +1 -1
  550. package/dist/esm/hy-icon-magnify-minus.entry.js +1 -1
  551. package/dist/esm/hy-icon-magnify-plus.entry.js +1 -1
  552. package/dist/esm/hy-icon-mail.entry.js +1 -1
  553. package/dist/esm/hy-icon-master.entry.js +1 -1
  554. package/dist/esm/hy-icon-minus.entry.js +1 -1
  555. package/dist/esm/hy-icon-mobile.entry.js +1 -1
  556. package/dist/esm/hy-icon-modify.entry.js +1 -1
  557. package/dist/esm/hy-icon-navi-triangle.entry.js +1 -1
  558. package/dist/esm/hy-icon-new-group.entry.js +1 -1
  559. package/dist/esm/hy-icon-new-person.entry.js +1 -1
  560. package/dist/esm/hy-icon-notification.entry.js +1 -1
  561. package/dist/esm/hy-icon-opinder-logo-new.entry.js +1 -1
  562. package/dist/esm/hy-icon-opinder-logo.entry.js +1 -1
  563. package/dist/esm/hy-icon-pdf.entry.js +1 -1
  564. package/dist/esm/hy-icon-people.entry.js +1 -1
  565. package/dist/esm/hy-icon-permission-all.entry.js +1 -1
  566. package/dist/esm/hy-icon-permission-group.entry.js +1 -1
  567. package/dist/esm/hy-icon-permission-private.entry.js +1 -1
  568. package/dist/esm/hy-icon-person-outline.entry.js +1 -1
  569. package/dist/esm/hy-icon-person.entry.js +1 -1
  570. package/dist/esm/hy-icon-phone.entry.js +1 -1
  571. package/dist/esm/hy-icon-play.entry.js +1 -1
  572. package/dist/esm/hy-icon-plus.entry.js +1 -1
  573. package/dist/esm/hy-icon-preview.entry.js +1 -1
  574. package/dist/esm/hy-icon-profile.entry.js +1 -1
  575. package/dist/esm/hy-icon-question.entry.js +1 -1
  576. package/dist/esm/hy-icon-quote.entry.js +1 -1
  577. package/dist/esm/hy-icon-remove.entry.js +1 -1
  578. package/dist/esm/hy-icon-retweet.entry.js +1 -1
  579. package/dist/esm/hy-icon-rotate-left.entry.js +1 -1
  580. package/dist/esm/hy-icon-rotate-right.entry.js +1 -1
  581. package/dist/esm/hy-icon-search.entry.js +1 -1
  582. package/dist/esm/hy-icon-share.entry.js +1 -1
  583. package/dist/esm/hy-icon-slim-hamburger-menu.entry.js +1 -1
  584. package/dist/esm/hy-icon-social-media.entry.js +1 -1
  585. package/dist/esm/hy-icon-some-facebook.entry.js +1 -1
  586. package/dist/esm/hy-icon-some-instagram.entry.js +1 -1
  587. package/dist/esm/hy-icon-some-linkedin.entry.js +1 -1
  588. package/dist/esm/hy-icon-some-tiktok.entry.js +1 -1
  589. package/dist/esm/hy-icon-some-twitter.entry.js +1 -1
  590. package/dist/esm/hy-icon-some-youtube.entry.js +1 -1
  591. package/dist/esm/hy-icon-spinner.entry.js +1 -1
  592. package/dist/esm/hy-icon-square-checked.entry.js +1 -1
  593. package/dist/esm/hy-icon-square.entry.js +1 -1
  594. package/dist/esm/hy-icon-time.entry.js +1 -1
  595. package/dist/esm/hy-icon-todo-list.entry.js +1 -1
  596. package/dist/esm/hy-icon-tour.entry.js +1 -1
  597. package/dist/esm/hy-icon-twitter-like.entry.js +1 -1
  598. package/dist/esm/hy-icon-units-and-faculties.entry.js +1 -1
  599. package/dist/esm/hy-icon-url.entry.js +1 -1
  600. package/dist/esm/hy-icon-video.entry.js +1 -1
  601. package/dist/esm/hy-icon-warning.entry.js +1 -1
  602. package/dist/esm/hy-icon-wrench.entry.js +1 -1
  603. package/dist/esm/hy-icon-youtube.entry.js +1 -1
  604. package/dist/esm/hy-iconicons.entry.js +1 -1
  605. package/dist/esm/hy-key-figure_2.entry.js +1 -1
  606. package/dist/esm/hy-key-highlight_2.entry.js +1 -1
  607. package/dist/esm/hy-large-process-flow_2.entry.js +1 -1
  608. package/dist/esm/hy-link-box_2.entry.js +1 -1
  609. package/dist/esm/hy-link-list.entry.js +1 -1
  610. package/dist/esm/hy-menu-main-group.entry.js +1 -1
  611. package/dist/esm/hy-person-profile.entry.js +1 -1
  612. package/dist/esm/hy-process_2.entry.js +2 -2
  613. package/dist/esm/hy-quote.entry.js +1 -1
  614. package/dist/esm/hy-row.entry.js +1 -1
  615. package/dist/esm/hy-section-container.entry.js +1 -1
  616. package/dist/esm/hy-table-container.entry.js +1 -1
  617. package/dist/esm/hy-tabs_2.entry.js +5 -5
  618. package/dist/esm/hy-tag.entry.js +1 -1
  619. package/dist/esm/hy-tiny-text.entry.js +1 -1
  620. package/dist/esm/hy-twitter-feed.entry.js +1 -1
  621. package/dist/esm/hy-two-columns.entry.js +1 -1
  622. package/dist/esm/hy-user-login-form.entry.js +1 -1
  623. package/dist/esm/loader.js +3 -3
  624. package/dist/huds-lib/app-globals-1b021639.js +1 -0
  625. package/dist/huds-lib/huds-lib.esm.js +1 -1
  626. package/dist/huds-lib/hy-adjacent-image-text.entry.js +1 -1
  627. package/dist/huds-lib/hy-anchor-link-list.entry.js +1 -1
  628. package/dist/huds-lib/hy-breadcrumbs_15.entry.js +1 -1
  629. package/dist/huds-lib/hy-content-list_2.entry.js +1 -1
  630. package/dist/huds-lib/hy-dropdown.entry.js +1 -1
  631. package/dist/huds-lib/hy-general-list_2.entry.js +1 -1
  632. package/dist/huds-lib/hy-hero-carousel.entry.js +1 -1
  633. package/dist/huds-lib/hy-hero.entry.js +1 -1
  634. package/dist/huds-lib/hy-icon-add-to-todo-list.entry.js +1 -1
  635. package/dist/huds-lib/hy-icon-alert.entry.js +1 -1
  636. package/dist/huds-lib/hy-icon-archive.entry.js +1 -1
  637. package/dist/huds-lib/hy-icon-arrow-down.entry.js +1 -1
  638. package/dist/huds-lib/hy-icon-arrow-left.entry.js +1 -1
  639. package/dist/huds-lib/hy-icon-arrow-right.entry.js +1 -1
  640. package/dist/huds-lib/hy-icon-arrow-to-right.entry.js +1 -1
  641. package/dist/huds-lib/hy-icon-arrow-up.entry.js +1 -1
  642. package/dist/huds-lib/hy-icon-avatar-group.entry.js +1 -1
  643. package/dist/huds-lib/hy-icon-avatar.entry.js +1 -1
  644. package/dist/huds-lib/hy-icon-bachelor.entry.js +1 -1
  645. package/dist/huds-lib/hy-icon-bullet-list.entry.js +1 -1
  646. package/dist/huds-lib/hy-icon-camera.entry.js +1 -1
  647. package/dist/huds-lib/hy-icon-caret-down.entry.js +1 -1
  648. package/dist/huds-lib/hy-icon-caret-left.entry.js +1 -1
  649. package/dist/huds-lib/hy-icon-caret-right.entry.js +1 -1
  650. package/dist/huds-lib/hy-icon-caret-up.entry.js +1 -1
  651. package/dist/huds-lib/hy-icon-chat.entry.js +1 -1
  652. package/dist/huds-lib/hy-icon-code-fork.entry.js +1 -1
  653. package/dist/huds-lib/hy-icon-cogs.entry.js +1 -1
  654. package/dist/huds-lib/hy-icon-contentlink.entry.js +1 -1
  655. package/dist/huds-lib/hy-icon-customlink.entry.js +1 -1
  656. package/dist/huds-lib/hy-icon-date.entry.js +1 -1
  657. package/dist/huds-lib/hy-icon-discover.entry.js +1 -1
  658. package/dist/huds-lib/hy-icon-done.entry.js +1 -1
  659. package/dist/huds-lib/hy-icon-dot-arrow-right.entry.js +1 -1
  660. package/dist/huds-lib/hy-icon-dot.entry.js +1 -1
  661. package/dist/huds-lib/hy-icon-download.entry.js +1 -1
  662. package/dist/huds-lib/hy-icon-drag.entry.js +1 -1
  663. package/dist/huds-lib/hy-icon-dragbutton.entry.js +1 -1
  664. package/dist/huds-lib/hy-icon-drop-down.entry.js +1 -1
  665. package/dist/huds-lib/hy-icon-edit-event.entry.js +1 -1
  666. package/dist/huds-lib/hy-icon-edit.entry.js +1 -1
  667. package/dist/huds-lib/hy-icon-embed.entry.js +1 -1
  668. package/dist/huds-lib/hy-icon-euro.entry.js +1 -1
  669. package/dist/huds-lib/hy-icon-events.entry.js +1 -1
  670. package/dist/huds-lib/hy-icon-external-link.entry.js +1 -1
  671. package/dist/huds-lib/hy-icon-eye-slash.entry.js +1 -1
  672. package/dist/huds-lib/hy-icon-facebook.entry.js +1 -1
  673. package/dist/huds-lib/hy-icon-favorites.entry.js +1 -1
  674. package/dist/huds-lib/hy-icon-feed.entry.js +1 -1
  675. package/dist/huds-lib/hy-icon-file-text.entry.js +1 -1
  676. package/dist/huds-lib/hy-icon-full-screen.entry.js +1 -1
  677. package/dist/huds-lib/hy-icon-globe.entry.js +1 -1
  678. package/dist/huds-lib/hy-icon-google-plus.entry.js +1 -1
  679. package/dist/huds-lib/hy-icon-grid.entry.js +1 -1
  680. package/dist/huds-lib/hy-icon-hamburger.entry.js +1 -1
  681. package/dist/huds-lib/hy-icon-heart-support.entry.js +1 -1
  682. package/dist/huds-lib/hy-icon-heart.entry.js +1 -1
  683. package/dist/huds-lib/hy-icon-helsinginyliopisto.entry.js +1 -1
  684. package/dist/huds-lib/hy-icon-home.entry.js +1 -1
  685. package/dist/huds-lib/hy-icon-horizontal-resize.entry.js +1 -1
  686. package/dist/huds-lib/hy-icon-hy-logo.entry.js +1 -1
  687. package/dist/huds-lib/hy-icon-id-number.entry.js +1 -1
  688. package/dist/huds-lib/hy-icon-image-gallery.entry.js +1 -1
  689. package/dist/huds-lib/hy-icon-image.entry.js +1 -1
  690. package/dist/huds-lib/hy-icon-images.entry.js +1 -1
  691. package/dist/huds-lib/hy-icon-info-stroke.entry.js +1 -1
  692. package/dist/huds-lib/hy-icon-info.entry.js +1 -1
  693. package/dist/huds-lib/hy-icon-instagram.entry.js +1 -1
  694. package/dist/huds-lib/hy-icon-leiki-list.entry.js +1 -1
  695. package/dist/huds-lib/hy-icon-link-arrow-down.entry.js +1 -1
  696. package/dist/huds-lib/hy-icon-link-arrow-left.entry.js +1 -1
  697. package/dist/huds-lib/hy-icon-link-arrow-offsite.entry.js +1 -1
  698. package/dist/huds-lib/hy-icon-link-arrow-up.entry.js +1 -1
  699. package/dist/huds-lib/hy-icon-link-arrow.entry.js +1 -1
  700. package/dist/huds-lib/hy-icon-link-arrow1.entry.js +1 -1
  701. package/dist/huds-lib/hy-icon-linkedin.entry.js +1 -1
  702. package/dist/huds-lib/hy-icon-list-as-blocks.entry.js +1 -1
  703. package/dist/huds-lib/hy-icon-list-style-grid.entry.js +1 -1
  704. package/dist/huds-lib/hy-icon-list-style-list.entry.js +1 -1
  705. package/dist/huds-lib/hy-icon-list.entry.js +1 -1
  706. package/dist/huds-lib/hy-icon-listoflinks.entry.js +1 -1
  707. package/dist/huds-lib/hy-icon-location.entry.js +1 -1
  708. package/dist/huds-lib/hy-icon-log.entry.js +1 -1
  709. package/dist/huds-lib/hy-icon-login.entry.js +1 -1
  710. package/dist/huds-lib/hy-icon-logout.entry.js +1 -1
  711. package/dist/huds-lib/hy-icon-magnify-minus.entry.js +1 -1
  712. package/dist/huds-lib/hy-icon-magnify-plus.entry.js +1 -1
  713. package/dist/huds-lib/hy-icon-mail.entry.js +1 -1
  714. package/dist/huds-lib/hy-icon-master.entry.js +1 -1
  715. package/dist/huds-lib/hy-icon-minus.entry.js +1 -1
  716. package/dist/huds-lib/hy-icon-mobile.entry.js +1 -1
  717. package/dist/huds-lib/hy-icon-modify.entry.js +1 -1
  718. package/dist/huds-lib/hy-icon-navi-triangle.entry.js +1 -1
  719. package/dist/huds-lib/hy-icon-new-group.entry.js +1 -1
  720. package/dist/huds-lib/hy-icon-new-person.entry.js +1 -1
  721. package/dist/huds-lib/hy-icon-notification.entry.js +1 -1
  722. package/dist/huds-lib/hy-icon-opinder-logo-new.entry.js +1 -1
  723. package/dist/huds-lib/hy-icon-opinder-logo.entry.js +1 -1
  724. package/dist/huds-lib/hy-icon-pdf.entry.js +1 -1
  725. package/dist/huds-lib/hy-icon-people.entry.js +1 -1
  726. package/dist/huds-lib/hy-icon-permission-all.entry.js +1 -1
  727. package/dist/huds-lib/hy-icon-permission-group.entry.js +1 -1
  728. package/dist/huds-lib/hy-icon-permission-private.entry.js +1 -1
  729. package/dist/huds-lib/hy-icon-person-outline.entry.js +1 -1
  730. package/dist/huds-lib/hy-icon-person.entry.js +1 -1
  731. package/dist/huds-lib/hy-icon-phone.entry.js +1 -1
  732. package/dist/huds-lib/hy-icon-play.entry.js +1 -1
  733. package/dist/huds-lib/hy-icon-plus.entry.js +1 -1
  734. package/dist/huds-lib/hy-icon-preview.entry.js +1 -1
  735. package/dist/huds-lib/hy-icon-profile.entry.js +1 -1
  736. package/dist/huds-lib/hy-icon-question.entry.js +1 -1
  737. package/dist/huds-lib/hy-icon-quote.entry.js +1 -1
  738. package/dist/huds-lib/hy-icon-remove.entry.js +1 -1
  739. package/dist/huds-lib/hy-icon-retweet.entry.js +1 -1
  740. package/dist/huds-lib/hy-icon-rotate-left.entry.js +1 -1
  741. package/dist/huds-lib/hy-icon-rotate-right.entry.js +1 -1
  742. package/dist/huds-lib/hy-icon-search.entry.js +1 -1
  743. package/dist/huds-lib/hy-icon-share.entry.js +1 -1
  744. package/dist/huds-lib/hy-icon-slim-hamburger-menu.entry.js +1 -1
  745. package/dist/huds-lib/hy-icon-social-media.entry.js +1 -1
  746. package/dist/huds-lib/hy-icon-some-facebook.entry.js +1 -1
  747. package/dist/huds-lib/hy-icon-some-instagram.entry.js +1 -1
  748. package/dist/huds-lib/hy-icon-some-linkedin.entry.js +1 -1
  749. package/dist/huds-lib/hy-icon-some-tiktok.entry.js +1 -1
  750. package/dist/huds-lib/hy-icon-some-twitter.entry.js +1 -1
  751. package/dist/huds-lib/hy-icon-some-youtube.entry.js +1 -1
  752. package/dist/huds-lib/hy-icon-spinner.entry.js +1 -1
  753. package/dist/huds-lib/hy-icon-square-checked.entry.js +1 -1
  754. package/dist/huds-lib/hy-icon-square.entry.js +1 -1
  755. package/dist/huds-lib/hy-icon-time.entry.js +1 -1
  756. package/dist/huds-lib/hy-icon-todo-list.entry.js +1 -1
  757. package/dist/huds-lib/hy-icon-tour.entry.js +1 -1
  758. package/dist/huds-lib/hy-icon-twitter-like.entry.js +1 -1
  759. package/dist/huds-lib/hy-icon-units-and-faculties.entry.js +1 -1
  760. package/dist/huds-lib/hy-icon-url.entry.js +1 -1
  761. package/dist/huds-lib/hy-icon-video.entry.js +1 -1
  762. package/dist/huds-lib/hy-icon-warning.entry.js +1 -1
  763. package/dist/huds-lib/hy-icon-wrench.entry.js +1 -1
  764. package/dist/huds-lib/hy-icon-youtube.entry.js +1 -1
  765. package/dist/huds-lib/hy-iconicons.entry.js +1 -1
  766. package/dist/huds-lib/hy-key-figure_2.entry.js +1 -1
  767. package/dist/huds-lib/hy-key-highlight_2.entry.js +1 -1
  768. package/dist/huds-lib/hy-large-process-flow_2.entry.js +1 -1
  769. package/dist/huds-lib/hy-link-box_2.entry.js +1 -1
  770. package/dist/huds-lib/hy-link-list.entry.js +1 -1
  771. package/dist/huds-lib/hy-menu-main-group.entry.js +1 -1
  772. package/dist/huds-lib/hy-person-profile.entry.js +1 -1
  773. package/dist/huds-lib/hy-process_2.entry.js +1 -1
  774. package/dist/huds-lib/hy-quote.entry.js +1 -1
  775. package/dist/huds-lib/hy-row.entry.js +4 -4
  776. package/dist/huds-lib/hy-section-container.entry.js +1 -1
  777. package/dist/huds-lib/hy-table-container.entry.js +1 -1
  778. package/dist/huds-lib/hy-tabs_2.entry.js +1 -1
  779. package/dist/huds-lib/hy-tag.entry.js +1 -1
  780. package/dist/huds-lib/hy-tiny-text.entry.js +1 -1
  781. package/dist/huds-lib/hy-twitter-feed.entry.js +1 -1
  782. package/dist/huds-lib/hy-two-columns.entry.js +1 -1
  783. package/dist/huds-lib/hy-user-login-form.entry.js +1 -1
  784. package/package.json +3 -2
  785. package/components/accordion-container.js +0 -49
  786. package/components/accordion-item.js +0 -240
  787. package/dist/huds-lib/app-globals-d5da9f0e.js +0 -1
  788. /package/dist/huds-lib/{globalScript-7f6ce018.js → globalScript-3f479486.js} +0 -0
@@ -1 +1 @@
1
- import{r as t,h as e,g as a}from"./index-2ffe17c9.js";let i,o,r,s={37:-1,38:-1,39:1,40:1};const n=class{constructor(e){t(this,e),this.tabId=void 0,this.tabListLabel="",this.focusTimeoutCleared=!0,this.tabButtonTitles=void 0,this.tabPanelsState=void 0,this.tabButtons=void 0,this.tabList=void 0,this.headerstyle="common"}componentWillLoad(){const t=this.el.querySelectorAll("hy-tabs-item");t&&(this.tabButtonTitles=Array.from(t).map((t=>({title:t.getAttribute("tab-title"),id:t.getAttribute("tab-title").toLowerCase().replace(/\W/g,"-")}))))}componentDidLoad(){let t=this.el.closest(".hy-main");t&&(t.classList.contains("with-sidebar")||(this.headerstyle="large"));const e=this.el.querySelector(".hy-tabs__container");if(e){this.generateArrays(e);const t=this.el.querySelectorAll(".hy-tab-scroll__left")[0],a=this.el.querySelectorAll(".hy-tab-scroll__right")[0],o=this.tabList;this.checkScrollHidden(o,t,a),o.addEventListener("scroll",(()=>{r=setTimeout((()=>{window.clearTimeout(r),this.checkScrollHidden(o,t,a)}),250)}),!1),o.offSetWidth<=document.body.scrollWidth&&(t.classList.add("is-hidden"),a.classList.add("is-hidden"));const s=250;a.addEventListener("click",(e=>{e.preventDefault(),a.classList.add("is-disabled"),o.scrollBy({top:0,left:+s,behavior:"smooth"}),i=window.setTimeout((()=>{window.clearTimeout(i),this.checkScrollHidden(o,t,a),a.classList.remove("is-disabled")}),250)})),t.addEventListener("click",(e=>{e.preventDefault(),t.classList.add("is-disabled"),o.scrollBy({top:0,left:-s,behavior:"smooth"}),i=window.setTimeout((()=>{window.clearTimeout(i),this.checkScrollHidden(o,t,a),t.classList.remove("is-disabled")}),250)}))}}generateArrays(t){this.tabList=t.querySelectorAll('[role="tablist"]')[0],this.tabButtons=t.querySelectorAll('[role="tab"]'),this.tabPanelsState=[t.querySelectorAll('[role="tabpanel"]')],this.tabButtons.length>0&&(this.addListeners(this.tabButtons,1),this.activateTab(this.tabButtons[0],!0))}addListeners(t,e){if(t.length>1)for(let a=0;a<t.length;++a)t[e].addEventListener("click",this.clickEventListener),t[e].addEventListener("keydown",this.keydownEventListener),t[e].index=e}checkScrollHidden(t,e,a){0===t.scrollLeft?e.classList.add("is-hidden"):e.classList.remove("is-hidden"),t.scrollLeft+t.clientWidth>=t.scrollWidth-1?a.classList.add("is-hidden"):a.classList.remove("is-hidden")}clickEventListener(t){if(t){const e=t.target,a=this.tabButtonTitles;a&&(a.forEach((t=>{Object.values(t)[1]===e.id&&this.activateTab(e,!0)})),t.stopPropagation(),t.stopImmediatePropagation())}}keydownEventListener(t){const e=this.tabButtonTitles;switch(t.keyCode){case 35:t.preventDefault(),this.activateTab(e[e.length-1],!0);break;case 36:t.preventDefault(),this.activateTab(e[0],!0);break;case 38:case 40:this.focusTimeoutCleared&&this.determineOrientation(t)}}keyupEventListener(t){switch(t.keyCode){case 37:case 39:"tab"===t.target.role&&(t.preventDefault(),this.focusTimeoutCleared&&this.determineOrientation(t))}t.stopPropagation(),t.stopImmediatePropagation()}determineOrientation(t){const e=this.el.querySelectorAll(".hy-tab-scroll__left")[0],a=this.el.querySelectorAll(".hy-tab-scroll__right")[0],i=this.tabList;this.checkScrollHidden(i,e,a);const o=t.keyCode;let r=!1;"vertical"==i.getAttribute("aria-orientation")?38!==o&&40!==o||(t.preventDefault(),r=!0):37!==o&&39!==o||(r=!0),r&&this.switchTabOnArrowPress(t)}switchTabOnArrowPress(t){const e=t.keyCode;if(s[e]){const a=t.target,i=this.tabButtons;for(let t=0;t<i.length;t++)if(i[t].id===a.id){if(t>0&&-1===s[e]){i[t-1].focus(),this.focusEventHandler(i[t-1]);break}if(t<i.length-1&&1===s[e]){i[t+1].focus(),this.focusEventHandler(i[t+1]);break}}}}activateTab(t,e){e=e||!0,this.deactivateTabs(this.tabButtons),t.removeAttribute("tabindex"),t.setAttribute("aria-selected","true");const a=t.getAttribute("aria-controls");this.el.querySelector(`#${a}`).removeAttribute("hidden"),e&&t.focus()}deactivateTabs(t){for(let e=0;e<t.length;e++)t[e].setAttribute("tabindex","-1"),t[e].setAttribute("aria-selected","false"),t[e].removeEventListener("focus",this.focusEventHandler);const e=this.tabPanelsState[0];for(let t=0;t<e.length;t++)e[t].setAttribute("hidden","hidden")}focusEventHandler(t){const e=t;this.focusTimeoutCleared=!1,o=window.setTimeout((()=>{window.clearTimeout(o),this.focusTimeoutCleared=!0;const t=document.activeElement;e===t&&this.activateTab(e,!1)}),250)}render(){const t=["hy-tabs__container",`hy-tabs__container__${this.headerstyle}`].join(" "),a=this.tabId.toLowerCase().replace(/\W/g,"-");if(window.location.hash){const t=window.location.hash.substring(1);if(this.tabButtonTitles.some((e=>e.id===t))){const e=document.getElementById(t);if(e){this.activateTab(e,!0);const t=e.getBoundingClientRect();window.scrollTo({top:window.scrollY+t.top-200,behavior:"smooth"})}}}return[e("hy-box",{key:"db85d54f57653e27d7719674337b12363e69b457",pt:"1.25, 1.25, 1.5, 2.5"}),e("div",{key:"e47886373517ebc134d0b8285f4df4135e1c0874",id:a,class:t},e("div",{key:"cde0cc1f6b6b9a24d2e0e113415368bbf8a5bb12",class:"hy-tablist-container"},e("button",{key:"f4fa955d15acadef8b041c35064cb3aee88079bf",tabindex:"-1",class:"hy-tab-scroll hy-tab-scroll__left is-hidden","aria-hidden":"true"},e("span",{key:"153c335dc43792eba156420c9d91fb00c5ee0a49"},e("hy-icon",{key:"e0e97bdbb0782289d688e68418949b46f8f396ca",icon:"hy-icon-caret-left",size:16}))),e("div",{key:"5067393e3fd4caaee3647f82c4102ff8770d9079",role:"tablist","aria-label":this.tabListLabel},this.tabButtonTitles&&this.tabButtonTitles.map((t=>{const a=Object.values(t)[0],i=a.toLowerCase().replace(/\W/g,"-"),o=a.toLowerCase().replace(/\W/g,"-");return e("a",{href:"#"+o,tabindex:"-1"},e("button",{"aria-selected":"false","aria-controls":`${i}-tab`,class:this.headerstyle,role:"tab",id:i},e("span",null,a)))}))),e("button",{key:"3fa18b11a58c588e64931f1951d99d5c8ce1b091",tabindex:"-1",class:"hy-tab-scroll hy-tab-scroll__right","aria-hidden":"true"},e("span",{key:"ddf49bf4740e4553bf7610fa1d32e4659fa8de67"},e("hy-icon",{key:"3f157bd96731cbf98033d7f5a3f7f87fb6e65146",icon:"hy-icon-caret-right",size:16})))),e("slot",{key:"89a40649d35cc8ea5b8109a332b27c9154cee312"})),e("hy-box",{key:"5542bf9f46be177f48b35e16d4c97d509d2eafad",mb:"1.75, 1.75, 2, 2.5"})]}get el(){return a(this)}};n.style='*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-tabs__container .hy-tablist-container{border-bottom:1px solid var(--grayscale-tabs-border);position:relative}.hy-tabs__container .hy-tab-scroll{background-color:rgba(255, 255, 255, 0.8);border:0;height:100%;margin:0;padding:0;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:4}.hy-tabs__container .hy-tab-scroll.is-hidden{display:none;visibility:hidden}.hy-tabs__container .hy-tab-scroll.is-disabled{background-color:var(--grayscale-medium)}.hy-tabs__container .hy-tab-scroll.is-disabled:hover{cursor:none}.hy-tabs__container .hy-tab-scroll:focus,.hy-tabs__container .hy-tab-scroll:hover{outline:none;cursor:pointer}.hy-tabs__container .hy-tab-scroll span{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--grayscale-black);border-radius:100%;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:32px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:32px}.hy-tabs__container .hy-tab-scroll span svg{fill:var(--grayscale-white);height:16px;width:16px}.hy-tabs__container .hy-tab-scroll__left{left:0;padding-right:8px}.hy-tabs__container .hy-tab-scroll__left svg{-webkit-transform:translateX(-1px);transform:translateX(-1px)}.hy-tabs__container .hy-tab-scroll__right{padding-left:8px;right:0}.hy-tabs__container .hy-tab-scroll__right svg{-webkit-transform:translateX(1px);transform:translateX(1px)}.hy-tabs__container [role=tablist]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin:0 0 -0.1em;overflow:scroll;position:relative;scrollbar-width:none;white-space:nowrap}.hy-tabs__container [role=tablist]::-webkit-scrollbar{display:none}.hy-tabs__container [role=tablist] a{display:-webkit-box;display:-ms-flexbox;display:flex;max-width:47.56%;text-decoration:none;-ms-flex-negative:0;flex-shrink:0}.hy-tabs__container [role=tablist] a:not(:first-of-type){margin-left:6px}@media (min-width: 30rem){.hy-tabs__container [role=tablist] a{max-width:35.37%}}@media (min-width: 60rem){.hy-tabs__container [role=tablist] a{max-width:23.13%}}@media (min-width: 75.0625rem){.hy-tabs__container [role=tablist] a{max-width:23.03%}}.hy-tabs__container [role=tab]{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;border:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-bottom:6px;padding:0}.hy-tabs__container [role=tab]>span{font-size:0.875rem;line-height:14px;font-weight:700;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--grayscale-background-box);border:0;color:var(--link-blue);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--main-font-family);-ms-hyphens:auto;hyphens:auto;letter-spacing:-0.5px;padding:8px 8px 7px;pointer-events:none;position:relative;text-align:left;white-space:normal;word-break:break-word;overflow-wrap:break-word;overflow-wrap:break-word}@media (min-width: 30rem){.hy-tabs__container [role=tab]>span{font-size:1rem;line-height:18px;padding:16px 12px 10px}}@media (min-width: 75.0625rem){.hy-tabs__container [role=tab]>span{font-size:1.125rem;line-height:20px;letter-spacing:-0.6px;padding:16px 16px 14px}}@supports (overflow-wrap: anywhere){.hy-tabs__container [role=tab]>span{overflow-wrap:anywhere}}@supports (overflow-wrap: anywhere){.hy-tabs__container [role=tab]>span{overflow-wrap:anywhere}}@media (min-width: 75.0625rem){.hy-tabs__container [role=tab].large{margin:0 12px 0 0}}.hy-tabs__container [role=tab][aria-selected=true]{border-bottom-width:0;border:1px solid var(--grayscale-dark);margin-bottom:0;z-index:3}.hy-tabs__container [role=tab][aria-selected=true]>span{background-color:var(--grayscale-white);color:var(--grayscale-black);padding-bottom:13px}@media (min-width: 30rem){.hy-tabs__container [role=tab][aria-selected=true]>span{padding-bottom:16px}}@media (min-width: 75.0625rem){.hy-tabs__container [role=tab][aria-selected=true]>span{padding-bottom:20px}}.hy-tabs__container [role=tab][aria-selected=true]>span:before{background-color:var(--grayscale-white);bottom:0;content:"";height:4px;left:0;position:absolute;right:0;-webkit-transform:translateY(50%);transform:translateY(50%)}.hy-tabs__container [role=tab][aria-selected=true]>span:after{background-color:var(--grayscale-black);bottom:0;content:"";height:4px;left:8px;position:absolute;right:8px}.hy-tabs__container [role=tab]:hover{border-radius:0;color:inherit;cursor:pointer;text-decoration:none}.hy-tabs__container [role=tab]:hover span{background-color:var(--hover-gray);color:var(--brand-main-active)}.hy-tabs__container [role=tabpanel]{border:1px solid var(--grayscale-dark);padding:28px 12px;position:relative;z-index:2}@media (min-width: 30rem){.hy-tabs__container [role=tabpanel]{padding:38px 15px}}@media (min-width: 60rem){.hy-tabs__container [role=tabpanel]{padding:40px 20px}}.hy-tabs__container [role=tabpanel]:focus{outline:1px solid var(--brand-main-active)}';const l=class{constructor(e){t(this,e),this.tabTitle=void 0}render(){const t=this.tabTitle.toLowerCase().replace(/\W/g,"-");return e("div",{key:"3e52d79139baa862b4786685150b20521c0d588f",tabindex:"0",role:"tabpanel",id:`${t}-tab`,"aria-labelledby":t,hidden:!0},e("slot",{key:"70a6d6654e888f177cf694f2658793ee4928e5d3"}))}};l.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}";export{n as hy_tabs,l as hy_tabs_item}
1
+ import{r as t,h as e,g as a}from"./index-2ffe17c9.js";let i,o,r,s={37:-1,38:-1,39:1,40:1};const n=class{constructor(e){t(this,e),this.tabId=void 0,this.tabListLabel="",this.focusTimeoutCleared=!0,this.tabButtonTitles=void 0,this.tabPanelsState=void 0,this.tabButtons=void 0,this.tabList=void 0,this.headerstyle="common"}componentWillLoad(){const t=this.el.querySelectorAll("hy-tabs-item");t&&(this.tabButtonTitles=Array.from(t).map((t=>({title:t.getAttribute("tab-title"),id:t.getAttribute("tab-title").toLowerCase().replace(/\W/g,"-")}))))}componentDidLoad(){let t=this.el.closest(".hy-main");t&&(t.classList.contains("with-sidebar")||(this.headerstyle="large"));const e=this.el.querySelector(".hy-tabs__container");if(e){this.generateArrays(e);const t=this.el.querySelectorAll(".hy-tab-scroll__left")[0],a=this.el.querySelectorAll(".hy-tab-scroll__right")[0],o=this.tabList;this.checkScrollHidden(o,t,a),o.addEventListener("scroll",(()=>{r=setTimeout((()=>{window.clearTimeout(r),this.checkScrollHidden(o,t,a)}),250)}),!1),o.offSetWidth<=document.body.scrollWidth&&(t.classList.add("is-hidden"),a.classList.add("is-hidden"));const s=250;a.addEventListener("click",(e=>{e.preventDefault(),a.classList.add("is-disabled"),o.scrollBy({top:0,left:+s,behavior:"smooth"}),i=window.setTimeout((()=>{window.clearTimeout(i),this.checkScrollHidden(o,t,a),a.classList.remove("is-disabled")}),250)})),t.addEventListener("click",(e=>{e.preventDefault(),t.classList.add("is-disabled"),o.scrollBy({top:0,left:-s,behavior:"smooth"}),i=window.setTimeout((()=>{window.clearTimeout(i),this.checkScrollHidden(o,t,a),t.classList.remove("is-disabled")}),250)}))}}generateArrays(t){this.tabList=t.querySelectorAll('[role="tablist"]')[0],this.tabButtons=t.querySelectorAll('[role="tab"]'),this.tabPanelsState=[t.querySelectorAll('[role="tabpanel"]')],this.tabButtons.length>0&&(this.addListeners(this.tabButtons,1),this.activateTab(this.tabButtons[0],!0))}addListeners(t,e){if(t.length>1)for(let a=0;a<t.length;++a)t[e].addEventListener("click",this.clickEventListener),t[e].addEventListener("keydown",this.keydownEventListener),t[e].index=e}checkScrollHidden(t,e,a){0===t.scrollLeft?e.classList.add("is-hidden"):e.classList.remove("is-hidden"),t.scrollLeft+t.clientWidth>=t.scrollWidth-1?a.classList.add("is-hidden"):a.classList.remove("is-hidden")}clickEventListener(t){if(t){const e=t.target,a=this.tabButtonTitles;a&&(a.forEach((t=>{Object.values(t)[1]===e.id&&this.activateTab(e,!0)})),t.stopPropagation(),t.stopImmediatePropagation())}}keydownEventListener(t){const e=this.tabButtonTitles;switch(t.keyCode){case 35:t.preventDefault(),this.activateTab(e[e.length-1],!0);break;case 36:t.preventDefault(),this.activateTab(e[0],!0);break;case 38:case 40:this.focusTimeoutCleared&&this.determineOrientation(t)}}keyupEventListener(t){switch(t.keyCode){case 37:case 39:"tab"===t.target.role&&(t.preventDefault(),this.focusTimeoutCleared&&this.determineOrientation(t))}t.stopPropagation(),t.stopImmediatePropagation()}determineOrientation(t){const e=this.el.querySelectorAll(".hy-tab-scroll__left")[0],a=this.el.querySelectorAll(".hy-tab-scroll__right")[0],i=this.tabList;this.checkScrollHidden(i,e,a);const o=t.keyCode;let r=!1;"vertical"==i.getAttribute("aria-orientation")?38!==o&&40!==o||(t.preventDefault(),r=!0):37!==o&&39!==o||(r=!0),r&&this.switchTabOnArrowPress(t)}switchTabOnArrowPress(t){const e=t.keyCode;if(s[e]){const a=t.target,i=this.tabButtons;for(let t=0;t<i.length;t++)if(i[t].id===a.id){if(t>0&&-1===s[e]){i[t-1].focus(),this.focusEventHandler(i[t-1]);break}if(t<i.length-1&&1===s[e]){i[t+1].focus(),this.focusEventHandler(i[t+1]);break}}}}activateTab(t,e){e=e||!0,this.deactivateTabs(this.tabButtons),t.removeAttribute("tabindex"),t.setAttribute("aria-selected","true");const a=t.getAttribute("aria-controls");this.el.querySelector(`#${a}`).removeAttribute("hidden"),e&&t.focus()}deactivateTabs(t){for(let e=0;e<t.length;e++)t[e].setAttribute("tabindex","-1"),t[e].setAttribute("aria-selected","false"),t[e].removeEventListener("focus",this.focusEventHandler);const e=this.tabPanelsState[0];for(let t=0;t<e.length;t++)e[t].setAttribute("hidden","hidden")}focusEventHandler(t){const e=t;this.focusTimeoutCleared=!1,o=window.setTimeout((()=>{window.clearTimeout(o),this.focusTimeoutCleared=!0;const t=document.activeElement;e===t&&this.activateTab(e,!1)}),250)}render(){const t=["hy-tabs__container",`hy-tabs__container__${this.headerstyle}`].join(" "),a=this.tabId.toLowerCase().replace(/\W/g,"-");if(window.location.hash){const t=window.location.hash.substring(1);if(this.tabButtonTitles.some((e=>e.id===t))){const e=document.getElementById(t);if(e){this.activateTab(e,!0);const t=e.getBoundingClientRect();window.scrollTo({top:window.scrollY+t.top-200,behavior:"smooth"})}}}return[e("hy-box",{key:"a261591b4da1ecaf081fe028efabb3ab02da8f12",pt:"1.25, 1.25, 1.5, 2.5"}),e("div",{key:"74768c2f7e8b540ddf2b01426380a9302b52459e",id:a,class:t},e("div",{key:"504576ad9182897b4361805c91a456427790c9fc",class:"hy-tablist-container"},e("button",{key:"0756a0434831193a11e2b8f7fd3ef4cd26816713",tabindex:"-1",class:"hy-tab-scroll hy-tab-scroll__left is-hidden","aria-hidden":"true"},e("span",{key:"e106fec2c97744930c18b4397878fd592147c1ee"},e("hy-icon",{key:"a27f8183d527c123683ee2ffb83c39775bf0ac5f",icon:"hy-icon-caret-left",size:16}))),e("div",{key:"747f8b8d6b3e1f22197a507d897bae0a12ec4bfa",role:"tablist","aria-label":this.tabListLabel},this.tabButtonTitles&&this.tabButtonTitles.map((t=>{const a=Object.values(t)[0],i=a.toLowerCase().replace(/\W/g,"-"),o=a.toLowerCase().replace(/\W/g,"-");return e("a",{href:"#"+o,tabindex:"-1"},e("button",{"aria-selected":"false","aria-controls":`${i}-tab`,class:this.headerstyle,role:"tab",id:i},e("span",null,a)))}))),e("button",{key:"768c29da4fb83c0d547ea7209c2456916e784262",tabindex:"-1",class:"hy-tab-scroll hy-tab-scroll__right","aria-hidden":"true"},e("span",{key:"816280ca23c7253a87a8275b375e51dc3b1c9e74"},e("hy-icon",{key:"adb144a4fb0e47e4b0359b8d43eafaed8973d73c",icon:"hy-icon-caret-right",size:16})))),e("slot",{key:"26ce819688c61a7babf4ebe6f97a6ebe37ee5fa8"})),e("hy-box",{key:"3a089978b65fbaef44936c3802ced93363cffbae",mb:"1.75, 1.75, 2, 2.5"})]}get el(){return a(this)}};n.style='*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-tabs__container .hy-tablist-container{border-bottom:1px solid var(--grayscale-tabs-border);position:relative}.hy-tabs__container .hy-tab-scroll{background-color:rgba(255, 255, 255, 0.8);border:0;height:100%;margin:0;padding:0;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:4}.hy-tabs__container .hy-tab-scroll.is-hidden{display:none;visibility:hidden}.hy-tabs__container .hy-tab-scroll.is-disabled{background-color:var(--grayscale-medium)}.hy-tabs__container .hy-tab-scroll.is-disabled:hover{cursor:none}.hy-tabs__container .hy-tab-scroll:focus,.hy-tabs__container .hy-tab-scroll:hover{outline:none;cursor:pointer}.hy-tabs__container .hy-tab-scroll span{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--grayscale-black);border-radius:100%;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:32px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:32px}.hy-tabs__container .hy-tab-scroll span svg{fill:var(--grayscale-white);height:16px;width:16px}.hy-tabs__container .hy-tab-scroll__left{left:0;padding-right:8px}.hy-tabs__container .hy-tab-scroll__left svg{-webkit-transform:translateX(-1px);transform:translateX(-1px)}.hy-tabs__container .hy-tab-scroll__right{padding-left:8px;right:0}.hy-tabs__container .hy-tab-scroll__right svg{-webkit-transform:translateX(1px);transform:translateX(1px)}.hy-tabs__container [role=tablist]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin:0 0 -0.1em;overflow:scroll;position:relative;scrollbar-width:none;white-space:nowrap}.hy-tabs__container [role=tablist]::-webkit-scrollbar{display:none}.hy-tabs__container [role=tablist] a{display:-webkit-box;display:-ms-flexbox;display:flex;max-width:47.56%;text-decoration:none;-ms-flex-negative:0;flex-shrink:0}.hy-tabs__container [role=tablist] a:not(:first-of-type){margin-left:6px}@media (min-width: 30rem){.hy-tabs__container [role=tablist] a{max-width:35.37%}}@media (min-width: 60rem){.hy-tabs__container [role=tablist] a{max-width:23.13%}}@media (min-width: 75.0625rem){.hy-tabs__container [role=tablist] a{max-width:23.03%}}.hy-tabs__container [role=tab]{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;border:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-bottom:6px;padding:0}.hy-tabs__container [role=tab]>span{font-size:0.875rem;line-height:14px;font-weight:700;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--grayscale-background-box);border:0;color:var(--link-blue);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--main-font-family);-ms-hyphens:auto;hyphens:auto;letter-spacing:-0.5px;padding:8px 8px 7px;pointer-events:none;position:relative;text-align:left;white-space:normal;word-break:break-word;overflow-wrap:break-word;overflow-wrap:break-word}@media (min-width: 30rem){.hy-tabs__container [role=tab]>span{font-size:1rem;line-height:18px;padding:16px 12px 10px}}@media (min-width: 75.0625rem){.hy-tabs__container [role=tab]>span{font-size:1.125rem;line-height:20px;letter-spacing:-0.6px;padding:16px 16px 14px}}@supports (overflow-wrap: anywhere){.hy-tabs__container [role=tab]>span{overflow-wrap:anywhere}}@supports (overflow-wrap: anywhere){.hy-tabs__container [role=tab]>span{overflow-wrap:anywhere}}@media (min-width: 75.0625rem){.hy-tabs__container [role=tab].large{margin:0 12px 0 0}}.hy-tabs__container [role=tab][aria-selected=true]{border-bottom-width:0;border:1px solid var(--grayscale-dark);margin-bottom:0;z-index:3}.hy-tabs__container [role=tab][aria-selected=true]>span{background-color:var(--grayscale-white);color:var(--grayscale-black);padding-bottom:13px}@media (min-width: 30rem){.hy-tabs__container [role=tab][aria-selected=true]>span{padding-bottom:16px}}@media (min-width: 75.0625rem){.hy-tabs__container [role=tab][aria-selected=true]>span{padding-bottom:20px}}.hy-tabs__container [role=tab][aria-selected=true]>span:before{background-color:var(--grayscale-white);bottom:0;content:"";height:4px;left:0;position:absolute;right:0;-webkit-transform:translateY(50%);transform:translateY(50%)}.hy-tabs__container [role=tab][aria-selected=true]>span:after{background-color:var(--grayscale-black);bottom:0;content:"";height:4px;left:8px;position:absolute;right:8px}.hy-tabs__container [role=tab]:hover{border-radius:0;color:inherit;cursor:pointer;text-decoration:none}.hy-tabs__container [role=tab]:hover span{background-color:var(--hover-gray);color:var(--brand-main-active)}.hy-tabs__container [role=tabpanel]{border:1px solid var(--grayscale-dark);padding:28px 12px;position:relative;z-index:2}@media (min-width: 30rem){.hy-tabs__container [role=tabpanel]{padding:38px 15px}}@media (min-width: 60rem){.hy-tabs__container [role=tabpanel]{padding:40px 20px}}.hy-tabs__container [role=tabpanel]:focus{outline:1px solid var(--brand-main-active)}';const l=class{constructor(e){t(this,e),this.tabTitle=void 0}render(){const t=this.tabTitle.toLowerCase().replace(/\W/g,"-");return e("div",{key:"beb587457c44c129542e4c44191eb6b5ab9971cf",tabindex:"0",role:"tabpanel",id:`${t}-tab`,"aria-labelledby":t,hidden:!0},e("slot",{key:"ca2a961410edd08fcdb9f815c0d06d39cc2f428f"}))}};l.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}";export{n as hy_tabs,l as hy_tabs_item}
@@ -1 +1 @@
1
- import{r as e,h as a,H as c}from"./index-2ffe17c9.js";const r=class{constructor(a){e(this,a)}render(){const e=["hy-tag"].join(" ");return a(c,{key:"08fd3b2cc6f33b10e12cc4d795d0d69bf2d5ae7d"},a("div",{key:"73ce327eefd39f7dd49eeeccc2f6f11cbb886a1e",class:e},a("span",{key:"77629d158c44eeb20722a226fadf7442395473bb"},a("slot",{key:"2315aa0c194bc3155dfe44edc196c0927b240ec5"}))))}};r.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-tag{margin:0 4px 4px 0}.hy-tag span{font-size:0.75rem;line-height:16px;font-weight:700;background-color:var(--grayscale-dark);color:var(--grayscale-white);font-family:var(--main-font-family);letter-spacing:-0.07px;padding:4px 8px;text-transform:uppercase}";export{r as hy_tag}
1
+ import{r as a,h as e,H as r}from"./index-2ffe17c9.js";const t=class{constructor(e){a(this,e)}render(){const a=["hy-tag"].join(" ");return e(r,{key:"e1fe4dca6c5c983635966939b58760241ed28463"},e("div",{key:"81cf7a3303286619c4e87491b63f2d5c29b39daa",class:a},e("span",{key:"7b478465d9659cf02f1f5909040e6137f8634f8e"},e("slot",{key:"176d54452b7aa562374d7212de826a2e09aad846"}))))}};t.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-tag{margin:0 4px 4px 0}.hy-tag span{font-size:0.75rem;line-height:16px;font-weight:700;background-color:var(--grayscale-dark);color:var(--grayscale-white);font-family:var(--main-font-family);letter-spacing:-0.07px;padding:4px 8px;text-transform:uppercase}";export{t as hy_tag}
@@ -1 +1 @@
1
- import{r as e,h as t}from"./index-2ffe17c9.js";const i=class{constructor(t){e(this,t)}render(){return t("div",{key:"aa2110b5fac692cf3f64250460d4351f1ed6a2ff",class:["hy-tiny-text"].join(" ")},t("slot",{key:"1d33effd61649f29948912921b73e0e75cdec12a"}))}};i.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-tiny-text{color:var(--grayscale-dark);font-family:var(--main-font-family);font-size:12px;letter-spacing:-0.07px;line-height:16px}";export{i as hy_tiny_text}
1
+ import{r as t,h as e}from"./index-2ffe17c9.js";const a=class{constructor(e){t(this,e)}render(){return e("div",{key:"04756e0de9bf2756f4a374828a3043c6cc7ad517",class:["hy-tiny-text"].join(" ")},e("slot",{key:"8f40a4b048e8a86a88d2249b86b285a47a7d33b3"}))}};a.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-tiny-text{color:var(--grayscale-dark);font-family:var(--main-font-family);font-size:12px;letter-spacing:-0.07px;line-height:16px}";export{a as hy_tiny_text}
@@ -1 +1 @@
1
- import{r as e,h as t}from"./index-2ffe17c9.js";const i=class{constructor(t){e(this,t),this.headingVariant=void 0,this.paragraphTitle=void 0,this.twitterFeedKeyword=void 0,this.tweetType=void 0,this.tweets=void 0}render(){const e=JSON.parse(this.tweets),i=this.headingVariant.toLowerCase();return"Hashtag"===this.tweetType&&"#"===this.twitterFeedKeyword.charAt(0)&&(this.twitterFeedKeyword=this.twitterFeedKeyword.substring(1)),t("section",{key:"477d6e8362682a3979300f3184c5dfd92d18725b",class:"hy-twitter-feed"},t("div",{key:"ce9dce253abe7ed63b8a1bc5505c7c97cfb7279d",class:"hy-twitter-feed__header"},t(i,{key:"db941a1e2d22556736966a58cb3bee917a04bf6c",class:"hy-twitter-feed__title"},this.paragraphTitle||"Twitter"),t("p",{key:"16b322545af7b11dba468328f59202e4d92eefeb",class:"hy-twitter-feed__keyword"},t("hy-icon",{key:"5d033cbf681f856686ec1743a73fe6ab6e917aa5",icon:"hy-icon-some-twitter",size:20}),"Hashtag"===this.tweetType?`#${this.twitterFeedKeyword}`:`@${this.twitterFeedKeyword}`),"Username"===this.tweetType&&t("a",{key:"1583c7f46eb15e7878bf20ea0b8b98563eff1c3a",href:`https://twitter.com/${this.twitterFeedKeyword}`,target:"_blank"},t("hy-icon",{key:"b096eaeb2422b86eb6c1ff4412ebe815435be9de",icon:"hy-icon-plus",size:12}),"Follow")),t("ul",{key:"98a29039732a5d2ff9cc27ae2b71acbbb501cd4c",class:"hy-twitter-feed__tweets"},e.map((({tweet_text:e,tweet_created:i,tweet_absolute_url:r,tweet_like_count:n,tweet_retweet_count:a,user_name:h,user_username:d,user_profile_image_url:l})=>{const s=new Intl.DateTimeFormat("fi-FI").format(new Date(i));return t("li",{class:"hy-twitter-feed__item"},t("article",{class:"hy-twitter-tweet"},t("header",{class:"hy-twitter-tweet__header"},t("figure",{class:"hy-twitter-tweet__profile-image",role:"complementary"},t("img",{src:l,alt:""})),t("div",{class:"hy-twitter-tweet__header-content"},t("time",{dateTime:i},s),t("p",null,h),t("a",{class:"hy-twitter-tweet__user-link",href:`https://twitter.com/${d}`,target:"_blank"},"@",d))),t("div",{class:"hy-twitter-tweet__content-wrapper"},t("div",{class:"hy-twitter-tweet__content"},t("p",null,e.length>113?`${e.substr(0,113)}...`:e),t("a",{class:"hy-twitter-tweet__tweet-link",href:r,target:"_blank"},t("span",{"aria-hidden":"true"}),`${r.substr(0,24)}...`)),t("div",{class:"hy-twitter-tweet__statistics",role:"complementary"},t("p",null,t("span",{class:"visually-hidden"},"Tweet like count: "),t("hy-icon",{icon:"hy-icon-some-twitter-like",size:16}),n),t("p",null,t("span",{class:"visually-hidden"},"Tweet retweet count: "),t("hy-icon",{icon:"hy-icon-some-twitter-retweet",size:16}),a)))))}))))}};i.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}.hy-twitter-feed{margin:40px 0}.hy-twitter-feed__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-bottom:24px}@media (min-width: 30rem){.hy-twitter-feed__header{margin-bottom:32px}}@media (min-width: 75.0625rem){.without-sidebar .hy-twitter-feed__header{margin-bottom:41px}}@media (min-width: 1601px){.with-sidebar .hy-twitter-feed__header{margin-bottom:41px}}.hy-twitter-feed__title{font-weight:700;font-family:var(--main-font-family);margin-top:0;margin-bottom:0;margin-right:8px}@media (min-width: 30rem){.hy-twitter-feed__title{margin-right:12px}}@media (min-width: 75.0625rem){.without-sidebar .hy-twitter-feed__title{margin-right:16px}}@media (min-width: 1601px){.with-sidebar .hy-twitter-feed__title{margin-right:16px}}h2.hy-twitter-feed__title{font-size:1.625rem;line-height:32px;letter-spacing:-0.82px}@media (min-width: 30rem){h2.hy-twitter-feed__title{font-size:1.875rem;line-height:36px;letter-spacing:-0.6px}}@media (min-width: 75.0625rem){.without-sidebar h2.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}@media (min-width: 1601px){.with-sidebar h2.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}.is-front-page h2.hy-twitter-feed__title,.is-landing-page h2.hy-twitter-feed__title{font-size:1.75rem;line-height:32px;letter-spacing:-0.7px;text-transform:uppercase}@media (min-width: 30rem){.is-front-page h2.hy-twitter-feed__title,.is-landing-page h2.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.85px}}@media (min-width: 60rem){.without-sidebar .is-front-page h2.hy-twitter-feed__title,.without-sidebar .is-landing-page h2.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}@media (min-width: 75.0625rem){.without-sidebar .is-front-page h2.hy-twitter-feed__title,.without-sidebar .is-landing-page h2.hy-twitter-feed__title{font-size:2.625rem;line-height:48px;letter-spacing:-1.05px}}@media (min-width: 75.0625rem){.with-sidebar .is-front-page h2.hy-twitter-feed__title,.with-sidebar .is-landing-page h2.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}@media (min-width: 1601px){.with-sidebar .is-front-page h2.hy-twitter-feed__title,.with-sidebar .is-landing-page h2.hy-twitter-feed__title{font-size:2.625rem;line-height:48px;letter-spacing:-1.05px}}h3.hy-twitter-feed__title{font-size:1.3125rem;line-height:28px;letter-spacing:-0.42px}@media (min-width: 30rem){h3.hy-twitter-feed__title{font-size:1.5625rem;line-height:32px;letter-spacing:-0.5px}}.is-front-page h3.hy-twitter-feed__title,.is-landing-page h3.hy-twitter-feed__title{font-size:1.625rem;line-height:32px;letter-spacing:-0.52px}@media (min-width: 30rem){.is-front-page h3.hy-twitter-feed__title,.is-landing-page h3.hy-twitter-feed__title{font-size:1.875rem;line-height:36px;letter-spacing:-0.6px}}@media (min-width: 60rem){.without-sidebar .is-front-page h3.hy-twitter-feed__title,.without-sidebar .is-landing-page h3.hy-twitter-feed__title{font-size:1.875rem;line-height:36px;letter-spacing:-0.6px}}@media (min-width: 75.0625rem){.without-sidebar .is-front-page h3.hy-twitter-feed__title,.without-sidebar .is-landing-page h3.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}@media (min-width: 75.0625rem){.with-sidebar .is-front-page h3.hy-twitter-feed__title,.with-sidebar .is-landing-page h3.hy-twitter-feed__title{font-size:1.875rem;line-height:36px;letter-spacing:-0.6px}}@media (min-width: 1601px){.with-sidebar .is-front-page h3.hy-twitter-feed__title,.with-sidebar .is-landing-page h3.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}.hy-twitter-feed__keyword{font-size:0.9375rem;line-height:22px;margin:0;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-dark-text);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.hy-twitter-feed__keyword hy-icon{margin-right:4px}@media (min-width: 30rem){.hy-twitter-feed__keyword hy-icon{margin-right:6px}}@media (min-width: 30rem){.hy-twitter-feed__keyword hy-icon svg{width:24px;height:24px}}@media (min-width: 30rem){.hy-twitter-feed__keyword{font-size:1rem;line-height:24px}}@media (min-width: 75.0625rem){.without-sidebar .hy-twitter-feed__keyword{font-size:1.0625rem;line-height:24px}}@media (min-width: 75.0625rem){.without-sidebar .hy-twitter-feed__keyword hy-icon svg{width:32px;height:32px}}@media (min-width: 1601px){.with-sidebar .hy-twitter-feed__keyword{font-size:1.0625rem;line-height:24px}}@media (min-width: 1601px){.with-sidebar .hy-twitter-feed__keyword hy-icon svg{width:32px;height:32px}}.hy-twitter-feed__keyword+a{font-size:0.9375rem;line-height:18px;margin:0 0 0 8px;font-weight:600;font-family:var(--main-font-family);color:var(--link-blue);letter-spacing:-0.28px;text-decoration:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.hy-twitter-feed__keyword+a:hover{text-decoration:underline}.hy-twitter-feed__keyword+a hy-icon{margin-right:6px}.hy-twitter-feed__keyword+a hy-icon svg{fill:var(--link-blue)}@media (min-width: 30rem){.hy-twitter-feed__keyword+a{font-size:0.875rem;line-height:18px;letter-spacing:-0.26px;margin:0 0 0 12px}}@media (min-width: 75.0625rem){.without-sidebar .hy-twitter-feed__keyword+a{font-size:1rem;line-height:20px;letter-spacing:-0.3px;margin:0 0 0 16px}}@media (min-width: 1601px){.with-sidebar .hy-twitter-feed__keyword+a{font-size:1rem;line-height:20px;letter-spacing:-0.3px;margin:0 0 0 16px}}.hy-twitter-feed__tweets{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr;gap:16px}@media (min-width: 30rem){.hy-twitter-feed__tweets{grid-template-columns:repeat(2, 1fr);gap:24px}}@media (min-width: 60rem){.without-sidebar .hy-twitter-feed__tweets{grid-template-columns:repeat(3, 1fr)}}@media (min-width: 75.0625rem){.with-sidebar .hy-twitter-feed__tweets{grid-template-columns:repeat(3, 1fr)}}.hy-twitter-tweet{background-color:var(--grayscale-background-box);height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}.hy-twitter-tweet__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:-8px;padding-top:12px;margin-bottom:8px}@media (min-width: 30rem){.hy-twitter-tweet__header{padding-top:16px}}.hy-twitter-tweet__profile-image img{height:70px;width:70px}@media (min-width: 75.0625rem){.without-sidebar .hy-twitter-tweet__profile-image img{height:80px;width:80px}}@media (min-width: 1601px){.with-sidebar .hy-twitter-tweet__profile-image img{height:80px;width:80px}}.hy-twitter-tweet__header-content{margin-left:8px}.hy-twitter-tweet__header-content time{font-size:0.75rem;line-height:14px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-black);letter-spacing:-0.1px}.hy-twitter-tweet__header-content p{font-size:0.9375rem;line-height:18px;font-weight:700;font-family:var(--main-font-family);color:var(--brand-main-nearly-black);letter-spacing:-0.3px;margin:4px 0 2px}@media (min-width: 30rem){.hy-twitter-tweet__header-content p{font-size:1rem;line-height:20px;letter-spacing:-0.32px}}.hy-twitter-tweet__header-content a{font-size:0.75rem;line-height:16px;font-weight:600;font-family:var(--main-font-family);color:var(--link-blue);letter-spacing:-0.1px;text-decoration:none;position:relative;z-index:10}.hy-twitter-tweet__header-content a:hover{text-decoration:underline}.hy-twitter-tweet__content-wrapper{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.hy-twitter-tweet__content{padding:0 16px}.hy-twitter-tweet__content p{font-size:0.9375rem;line-height:20px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-dark-text);letter-spacing:-0.03px;margin:0 0 8px}@media (min-width: 30rem){.hy-twitter-tweet__content p{font-size:0.875rem;line-height:18px;letter-spacing:-0.08px}}.hy-twitter-tweet__tweet-link{font-size:0.75rem;line-height:16px;font-weight:600;font-family:var(--main-font-family);color:var(--link-blue);letter-spacing:-0.1px;text-decoration:none}.hy-twitter-tweet__tweet-link span{position:absolute;inset:0}.hy-twitter-tweet__tweet-link:hover{text-decoration:underline}.hy-twitter-tweet__statistics{margin-top:16px;padding:0 16px 16px}.hy-twitter-tweet__statistics .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.hy-twitter-tweet__statistics p{font-size:0.75rem;line-height:14px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-dark);letter-spacing:-0.1px;margin:0;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.hy-twitter-tweet__statistics p:not(:first-of-type){margin-left:16px}.hy-twitter-tweet__statistics p hy-icon{margin-right:4px}.hy-twitter-tweet__statistics p hy-icon svg{fill:var(--grayscale-dark)}";export{i as hy_twitter_feed}
1
+ import{r as e,h as t}from"./index-2ffe17c9.js";const i=class{constructor(t){e(this,t),this.headingVariant=void 0,this.paragraphTitle=void 0,this.twitterFeedKeyword=void 0,this.tweetType=void 0,this.tweets=void 0}render(){const e=JSON.parse(this.tweets),i=this.headingVariant.toLowerCase();return"Hashtag"===this.tweetType&&"#"===this.twitterFeedKeyword.charAt(0)&&(this.twitterFeedKeyword=this.twitterFeedKeyword.substring(1)),t("section",{key:"7cadaa56acfc6c0bb9bb392138e1b34417e1d628",class:"hy-twitter-feed"},t("div",{key:"767b66032ca2e99008acabecd56f6d396058a9a4",class:"hy-twitter-feed__header"},t(i,{key:"a0bbcb72d79ace8124b64e7ab7dbf54aa56d0082",class:"hy-twitter-feed__title"},this.paragraphTitle||"Twitter"),t("p",{key:"63388b43760abf0f470cc33372b079cbcdba211d",class:"hy-twitter-feed__keyword"},t("hy-icon",{key:"2260ce506f25f11bdee06454b2e6a69438b6cd77",icon:"hy-icon-some-twitter",size:20}),"Hashtag"===this.tweetType?`#${this.twitterFeedKeyword}`:`@${this.twitterFeedKeyword}`),"Username"===this.tweetType&&t("a",{key:"0cc593f81de914b3fe4e0bb0b3b37fe85e203e12",href:`https://twitter.com/${this.twitterFeedKeyword}`,target:"_blank"},t("hy-icon",{key:"6152234971aaf74aa30a6410b3d5773114e9ac74",icon:"hy-icon-plus",size:12}),"Follow")),t("ul",{key:"dce532c797de8c31803e49c8dc616772672ac321",class:"hy-twitter-feed__tweets"},e.map((({tweet_text:e,tweet_created:i,tweet_absolute_url:r,tweet_like_count:n,tweet_retweet_count:a,user_name:h,user_username:d,user_profile_image_url:l})=>{const s=new Intl.DateTimeFormat("fi-FI").format(new Date(i));return t("li",{class:"hy-twitter-feed__item"},t("article",{class:"hy-twitter-tweet"},t("header",{class:"hy-twitter-tweet__header"},t("figure",{class:"hy-twitter-tweet__profile-image",role:"complementary"},t("img",{src:l,alt:""})),t("div",{class:"hy-twitter-tweet__header-content"},t("time",{dateTime:i},s),t("p",null,h),t("a",{class:"hy-twitter-tweet__user-link",href:`https://twitter.com/${d}`,target:"_blank"},"@",d))),t("div",{class:"hy-twitter-tweet__content-wrapper"},t("div",{class:"hy-twitter-tweet__content"},t("p",null,e.length>113?`${e.substr(0,113)}...`:e),t("a",{class:"hy-twitter-tweet__tweet-link",href:r,target:"_blank"},t("span",{"aria-hidden":"true"}),`${r.substr(0,24)}...`)),t("div",{class:"hy-twitter-tweet__statistics",role:"complementary"},t("p",null,t("span",{class:"visually-hidden"},"Tweet like count: "),t("hy-icon",{icon:"hy-icon-some-twitter-like",size:16}),n),t("p",null,t("span",{class:"visually-hidden"},"Tweet retweet count: "),t("hy-icon",{icon:"hy-icon-some-twitter-retweet",size:16}),a)))))}))))}};i.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}.hy-twitter-feed{margin:40px 0}.hy-twitter-feed__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-bottom:24px}@media (min-width: 30rem){.hy-twitter-feed__header{margin-bottom:32px}}@media (min-width: 75.0625rem){.without-sidebar .hy-twitter-feed__header{margin-bottom:41px}}@media (min-width: 1601px){.with-sidebar .hy-twitter-feed__header{margin-bottom:41px}}.hy-twitter-feed__title{font-weight:700;font-family:var(--main-font-family);margin-top:0;margin-bottom:0;margin-right:8px}@media (min-width: 30rem){.hy-twitter-feed__title{margin-right:12px}}@media (min-width: 75.0625rem){.without-sidebar .hy-twitter-feed__title{margin-right:16px}}@media (min-width: 1601px){.with-sidebar .hy-twitter-feed__title{margin-right:16px}}h2.hy-twitter-feed__title{font-size:1.625rem;line-height:32px;letter-spacing:-0.82px}@media (min-width: 30rem){h2.hy-twitter-feed__title{font-size:1.875rem;line-height:36px;letter-spacing:-0.6px}}@media (min-width: 75.0625rem){.without-sidebar h2.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}@media (min-width: 1601px){.with-sidebar h2.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}.is-front-page h2.hy-twitter-feed__title,.is-landing-page h2.hy-twitter-feed__title{font-size:1.75rem;line-height:32px;letter-spacing:-0.7px;text-transform:uppercase}@media (min-width: 30rem){.is-front-page h2.hy-twitter-feed__title,.is-landing-page h2.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.85px}}@media (min-width: 60rem){.without-sidebar .is-front-page h2.hy-twitter-feed__title,.without-sidebar .is-landing-page h2.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}@media (min-width: 75.0625rem){.without-sidebar .is-front-page h2.hy-twitter-feed__title,.without-sidebar .is-landing-page h2.hy-twitter-feed__title{font-size:2.625rem;line-height:48px;letter-spacing:-1.05px}}@media (min-width: 75.0625rem){.with-sidebar .is-front-page h2.hy-twitter-feed__title,.with-sidebar .is-landing-page h2.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}@media (min-width: 1601px){.with-sidebar .is-front-page h2.hy-twitter-feed__title,.with-sidebar .is-landing-page h2.hy-twitter-feed__title{font-size:2.625rem;line-height:48px;letter-spacing:-1.05px}}h3.hy-twitter-feed__title{font-size:1.3125rem;line-height:28px;letter-spacing:-0.42px}@media (min-width: 30rem){h3.hy-twitter-feed__title{font-size:1.5625rem;line-height:32px;letter-spacing:-0.5px}}.is-front-page h3.hy-twitter-feed__title,.is-landing-page h3.hy-twitter-feed__title{font-size:1.625rem;line-height:32px;letter-spacing:-0.52px}@media (min-width: 30rem){.is-front-page h3.hy-twitter-feed__title,.is-landing-page h3.hy-twitter-feed__title{font-size:1.875rem;line-height:36px;letter-spacing:-0.6px}}@media (min-width: 60rem){.without-sidebar .is-front-page h3.hy-twitter-feed__title,.without-sidebar .is-landing-page h3.hy-twitter-feed__title{font-size:1.875rem;line-height:36px;letter-spacing:-0.6px}}@media (min-width: 75.0625rem){.without-sidebar .is-front-page h3.hy-twitter-feed__title,.without-sidebar .is-landing-page h3.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}@media (min-width: 75.0625rem){.with-sidebar .is-front-page h3.hy-twitter-feed__title,.with-sidebar .is-landing-page h3.hy-twitter-feed__title{font-size:1.875rem;line-height:36px;letter-spacing:-0.6px}}@media (min-width: 1601px){.with-sidebar .is-front-page h3.hy-twitter-feed__title,.with-sidebar .is-landing-page h3.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}.hy-twitter-feed__keyword{font-size:0.9375rem;line-height:22px;margin:0;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-dark-text);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.hy-twitter-feed__keyword hy-icon{margin-right:4px}@media (min-width: 30rem){.hy-twitter-feed__keyword hy-icon{margin-right:6px}}@media (min-width: 30rem){.hy-twitter-feed__keyword hy-icon svg{width:24px;height:24px}}@media (min-width: 30rem){.hy-twitter-feed__keyword{font-size:1rem;line-height:24px}}@media (min-width: 75.0625rem){.without-sidebar .hy-twitter-feed__keyword{font-size:1.0625rem;line-height:24px}}@media (min-width: 75.0625rem){.without-sidebar .hy-twitter-feed__keyword hy-icon svg{width:32px;height:32px}}@media (min-width: 1601px){.with-sidebar .hy-twitter-feed__keyword{font-size:1.0625rem;line-height:24px}}@media (min-width: 1601px){.with-sidebar .hy-twitter-feed__keyword hy-icon svg{width:32px;height:32px}}.hy-twitter-feed__keyword+a{font-size:0.9375rem;line-height:18px;margin:0 0 0 8px;font-weight:600;font-family:var(--main-font-family);color:var(--link-blue);letter-spacing:-0.28px;text-decoration:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.hy-twitter-feed__keyword+a:hover{text-decoration:underline}.hy-twitter-feed__keyword+a hy-icon{margin-right:6px}.hy-twitter-feed__keyword+a hy-icon svg{fill:var(--link-blue)}@media (min-width: 30rem){.hy-twitter-feed__keyword+a{font-size:0.875rem;line-height:18px;letter-spacing:-0.26px;margin:0 0 0 12px}}@media (min-width: 75.0625rem){.without-sidebar .hy-twitter-feed__keyword+a{font-size:1rem;line-height:20px;letter-spacing:-0.3px;margin:0 0 0 16px}}@media (min-width: 1601px){.with-sidebar .hy-twitter-feed__keyword+a{font-size:1rem;line-height:20px;letter-spacing:-0.3px;margin:0 0 0 16px}}.hy-twitter-feed__tweets{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr;gap:16px}@media (min-width: 30rem){.hy-twitter-feed__tweets{grid-template-columns:repeat(2, 1fr);gap:24px}}@media (min-width: 60rem){.without-sidebar .hy-twitter-feed__tweets{grid-template-columns:repeat(3, 1fr)}}@media (min-width: 75.0625rem){.with-sidebar .hy-twitter-feed__tweets{grid-template-columns:repeat(3, 1fr)}}.hy-twitter-tweet{background-color:var(--grayscale-background-box);height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}.hy-twitter-tweet__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:-8px;padding-top:12px;margin-bottom:8px}@media (min-width: 30rem){.hy-twitter-tweet__header{padding-top:16px}}.hy-twitter-tweet__profile-image img{height:70px;width:70px}@media (min-width: 75.0625rem){.without-sidebar .hy-twitter-tweet__profile-image img{height:80px;width:80px}}@media (min-width: 1601px){.with-sidebar .hy-twitter-tweet__profile-image img{height:80px;width:80px}}.hy-twitter-tweet__header-content{margin-left:8px}.hy-twitter-tweet__header-content time{font-size:0.75rem;line-height:14px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-black);letter-spacing:-0.1px}.hy-twitter-tweet__header-content p{font-size:0.9375rem;line-height:18px;font-weight:700;font-family:var(--main-font-family);color:var(--brand-main-nearly-black);letter-spacing:-0.3px;margin:4px 0 2px}@media (min-width: 30rem){.hy-twitter-tweet__header-content p{font-size:1rem;line-height:20px;letter-spacing:-0.32px}}.hy-twitter-tweet__header-content a{font-size:0.75rem;line-height:16px;font-weight:600;font-family:var(--main-font-family);color:var(--link-blue);letter-spacing:-0.1px;text-decoration:none;position:relative;z-index:10}.hy-twitter-tweet__header-content a:hover{text-decoration:underline}.hy-twitter-tweet__content-wrapper{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.hy-twitter-tweet__content{padding:0 16px}.hy-twitter-tweet__content p{font-size:0.9375rem;line-height:20px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-dark-text);letter-spacing:-0.03px;margin:0 0 8px}@media (min-width: 30rem){.hy-twitter-tweet__content p{font-size:0.875rem;line-height:18px;letter-spacing:-0.08px}}.hy-twitter-tweet__tweet-link{font-size:0.75rem;line-height:16px;font-weight:600;font-family:var(--main-font-family);color:var(--link-blue);letter-spacing:-0.1px;text-decoration:none}.hy-twitter-tweet__tweet-link span{position:absolute;inset:0}.hy-twitter-tweet__tweet-link:hover{text-decoration:underline}.hy-twitter-tweet__statistics{margin-top:16px;padding:0 16px 16px}.hy-twitter-tweet__statistics .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.hy-twitter-tweet__statistics p{font-size:0.75rem;line-height:14px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-dark);letter-spacing:-0.1px;margin:0;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.hy-twitter-tweet__statistics p:not(:first-of-type){margin-left:16px}.hy-twitter-tweet__statistics p hy-icon{margin-right:4px}.hy-twitter-tweet__statistics p hy-icon svg{fill:var(--grayscale-dark)}";export{i as hy_twitter_feed}
@@ -1 +1 @@
1
- import{r as e,h as i,H as t}from"./index-2ffe17c9.js";const o=class{constructor(i){e(this,i),this.reversed=!1}render(){const e=["hy-two-columns",this.reversed?"hy-two-columns--reversed":""].join(" ");return i(t,{key:"7b1860ff9cb93485a344a1e152e13f9c5527f6c8"},i("div",{key:"48b0b2429df3df4c2974b24b73835b133fdd01ef",class:e},i("div",{key:"28228f514c9c806b64d8d5385de0e653a1ed3db1",class:"hy-two-columns__item hy-two-columns__item--main"},i("slot",{key:"1f6ded037fb1112bf184d936d147ac145d97882d",name:"main"})),i("div",{key:"122fe6983af0f99f9095a4a88bad3e8223674102",class:"hy-two-columns__item hy-two-columns__item--side"},i("slot",{key:"fb5ef283a71067523e9eac4a0e820bdc6e04f2de",name:"side"}))))}};o.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-two-columns{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hy-two-columns h2,.hy-two-columns h3,.hy-two-columns h4,.hy-two-columns h5,.hy-two-columns h6{margin-top:0}.hy-two-columns p{margin-top:0}@media (min-width: 30rem){.hy-two-columns{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.hy-two-columns--reversed{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}@media (min-width: 30rem){.hy-two-columns--reversed{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}}.hy-two-columns--reversed .hy-two-columns__item--side{margin-left:0;margin-right:0}@media (min-width: 30rem){.hy-two-columns--reversed .hy-two-columns__item--side{margin-right:5.79%}}@media (min-width: 60rem){.hy-two-columns--reversed .hy-two-columns__item--side{margin-right:8.5%}}.hy-two-columns__item{width:100%}.hy-two-columns__item [slot=main]{width:100%}.hy-two-columns__item [slot=main] .hy-paragraph-text{width:100% !important}.hy-two-columns__item [slot=side]{width:100%}.hy-two-columns__item--main{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-preferred-size:100%;flex-basis:100%;width:100%}@media (min-width: 30rem){.hy-two-columns__item--main{-ms-flex-preferred-size:67.01%;flex-basis:67.01%}}@media (min-width: 60rem){.hy-two-columns__item--main{-ms-flex-preferred-size:63%;flex-basis:63%}}.hy-two-columns__item--side{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-preferred-size:100%;flex-basis:100%;margin-left:0;margin-right:0;padding-left:0;padding-right:0;width:100%}@media (min-width: 30rem){.hy-two-columns__item--side{-ms-flex-preferred-size:32.99%;flex-basis:32.99%;margin-left:5.79%}}@media (min-width: 60rem){.hy-two-columns__item--side{-ms-flex-preferred-size:37%;flex-basis:37%;margin-left:8.5%;padding:0}}.hy-two-columns__item--side hy-key-figure{padding:0 10.67%}@media (min-width: 30rem){.hy-two-columns__item--side hy-key-figure{padding:0}}";export{o as hy_two_columns}
1
+ import{r as e,h as i,H as t}from"./index-2ffe17c9.js";const o=class{constructor(i){e(this,i),this.reversed=!1}render(){const e=["hy-two-columns",this.reversed?"hy-two-columns--reversed":""].join(" ");return i(t,{key:"a25aece92b9e26485e5d09d486a90ba1ff0a8116"},i("div",{key:"db2b23fa2e7508e1be88089373da028e62306029",class:e},i("div",{key:"4aba6b8f8dc8c7b58d44b977c60c395e2a356007",class:"hy-two-columns__item hy-two-columns__item--main"},i("slot",{key:"ea8b3b5737d1dedcf38079be0e13a4aa9afa48f6",name:"main"})),i("div",{key:"b783257b363351718dd6f5ee63de63c9f54b4410",class:"hy-two-columns__item hy-two-columns__item--side"},i("slot",{key:"4f93686a3328ccf7101fbcee9bc44fed401aecbf",name:"side"}))))}};o.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-two-columns{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hy-two-columns h2,.hy-two-columns h3,.hy-two-columns h4,.hy-two-columns h5,.hy-two-columns h6{margin-top:0}.hy-two-columns p{margin-top:0}@media (min-width: 30rem){.hy-two-columns{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.hy-two-columns--reversed{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}@media (min-width: 30rem){.hy-two-columns--reversed{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}}.hy-two-columns--reversed .hy-two-columns__item--side{margin-left:0;margin-right:0}@media (min-width: 30rem){.hy-two-columns--reversed .hy-two-columns__item--side{margin-right:5.79%}}@media (min-width: 60rem){.hy-two-columns--reversed .hy-two-columns__item--side{margin-right:8.5%}}.hy-two-columns__item{width:100%}.hy-two-columns__item [slot=main]{width:100%}.hy-two-columns__item [slot=main] .hy-paragraph-text{width:100% !important}.hy-two-columns__item [slot=side]{width:100%}.hy-two-columns__item--main{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-preferred-size:100%;flex-basis:100%;width:100%}@media (min-width: 30rem){.hy-two-columns__item--main{-ms-flex-preferred-size:67.01%;flex-basis:67.01%}}@media (min-width: 60rem){.hy-two-columns__item--main{-ms-flex-preferred-size:63%;flex-basis:63%}}.hy-two-columns__item--side{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-preferred-size:100%;flex-basis:100%;margin-left:0;margin-right:0;padding-left:0;padding-right:0;width:100%}@media (min-width: 30rem){.hy-two-columns__item--side{-ms-flex-preferred-size:32.99%;flex-basis:32.99%;margin-left:5.79%}}@media (min-width: 60rem){.hy-two-columns__item--side{-ms-flex-preferred-size:37%;flex-basis:37%;margin-left:8.5%;padding:0}}.hy-two-columns__item--side hy-key-figure{padding:0 10.67%}@media (min-width: 30rem){.hy-two-columns__item--side hy-key-figure{padding:0}}";export{o as hy_two_columns}
@@ -1 +1 @@
1
- import{r as o,h as i}from"./index-2ffe17c9.js";import{S as r,C as e}from"./utils-1e7f5184.js";const s=class{constructor(i){o(this,i),this.logoUrl=void 0,this.logoLabel=void 0}render(){return i("div",{key:"a48e695d0cc1fc598016edb32275618842a6283d",class:"hy-user-login-form"},i("div",{key:"7c91c0c301a4fd48c0311c50cf603875919aeb56",class:"hy-site-header__logo-container"},i("hy-site-logo",{key:"88fd055a80781ca00737263513326a668cb90568",size:r.large,color:e.black,url:this.logoUrl,label:this.logoLabel})),i("slot",{key:"275513354ffcda111b0fa71f90d392630433be8e"}))}};s.style='*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-user-login-form{font-family:var(--main-font-family)}.hy-user-login-form .user-login-form{position:relative}.hy-user-login-form .user-login-form .hy-login-label{margin-top:16px}.hy-user-login-form .user-login-form input{display:block;margin:8px 0 0 0;min-height:32px}.hy-user-login-form .user-login-form label{font-size:1rem;line-height:16px;font-weight:700;display:block}.hy-user-login-form .user-login-form label:before{content:"*";padding-right:3px}.hy-user-login-form .user-login-form div#edit-name--description,.hy-user-login-form .user-login-form div#edit-pass--description{display:none}.hy-user-login-form .user-login-form div.form-item-pass{margin-top:28px}.hy-user-login-form .user-login-form div#edit-actions{margin-top:32px}';export{s as hy_user_login_form}
1
+ import{r as o,h as i}from"./index-2ffe17c9.js";import{S as r,C as e}from"./utils-1e7f5184.js";const s=class{constructor(i){o(this,i),this.logoUrl=void 0,this.logoLabel=void 0}render(){return i("div",{key:"afdc8f3f8006fae6c42f6442cb78ea96c25e4f10",class:"hy-user-login-form"},i("div",{key:"987bfd92c890f26af540771a0a93a47b2f6dbf90",class:"hy-site-header__logo-container"},i("hy-site-logo",{key:"1128d0ef8d1df99765f16f1590fe65faf93a90f2",size:r.large,color:e.black,url:this.logoUrl,label:this.logoLabel})),i("slot",{key:"8827c9c662979b1b3201a2d1f3c1d12828779279"}))}};s.style='*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-user-login-form{font-family:var(--main-font-family)}.hy-user-login-form .user-login-form{position:relative}.hy-user-login-form .user-login-form .hy-login-label{margin-top:16px}.hy-user-login-form .user-login-form input{display:block;margin:8px 0 0 0;min-height:32px}.hy-user-login-form .user-login-form label{font-size:1rem;line-height:16px;font-weight:700;display:block}.hy-user-login-form .user-login-form label:before{content:"*";padding-right:3px}.hy-user-login-form .user-login-form div#edit-name--description,.hy-user-login-form .user-login-form div#edit-pass--description{display:none}.hy-user-login-form .user-login-form div.form-item-pass{margin-top:28px}.hy-user-login-form .user-login-form div#edit-actions{margin-top:32px}';export{s as hy_user_login_form}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcenteratunihelsinki/huds-lib",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "description": "Helsinki University Design System library",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -54,6 +54,7 @@
54
54
  "@uh-design-system/component-library": "^1.0.1",
55
55
  "autoprefixer": "^10.3.1",
56
56
  "breakpoint-sass": "^3.0.0",
57
+ "classnames": "^2.5.1",
57
58
  "concurrently": "^9.0.0",
58
59
  "emotion": "^9.0.0",
59
60
  "minimist": "^1.2.0",
@@ -72,5 +73,5 @@
72
73
  "pre-commit": "pretty-quick --staged"
73
74
  }
74
75
  },
75
- "gitHead": "6c3a07a25f7d8e8e6763f8e16e4329e2fda9e9da"
76
+ "gitHead": "b84aa59b6710f2c4329921ce5beeb361cd9798fa"
76
77
  }
@@ -1,49 +0,0 @@
1
- import { p as proxyCustomElement, H, h, c as Host } from './index3.js';
2
- import { d as defineCustomElement$1 } from './hy-box2.js';
3
-
4
- const accordionContainerCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-accordion-container{width:100%}";
5
- const HyAccordionContainerStyle0 = accordionContainerCss;
6
-
7
- const AccordionContainer = /*@__PURE__*/ proxyCustomElement(class AccordionContainer extends H {
8
- constructor() {
9
- super();
10
- this.__registerHost();
11
- this.accordionid = undefined;
12
- }
13
- /*
14
- * data-allow-toggle
15
- Allow for each toggle to both open and close individually
16
-
17
- data-allow-multiple
18
- Allow for multiple accordion sections to be expanded at the same time.
19
- Assumes data-allow-toggle otherwise you would not be able to close any of the accordions
20
- */
21
- render() {
22
- const classAttributes = ["hy-accordion-container", "js-hy-accordion"];
23
- const id = this.accordionid.toLowerCase().replace(/\W/g, "-");
24
- return (h(Host, { key: 'cf18d25850bff7a73c954b5dd2468cade6a65e04' }, h("div", { key: '9936b10c4097a482ccd29966fd0a3c1d89a44bfd', id: id, class: classAttributes.join(" "), "data-allow-multiple": "true", "data-allow-toggle": "true" }, h("slot", { key: '3ac4cd288bcb33f976336a295cae8e3a0616531c' })), h("hy-box", { key: '68cddc4af8be48fc63b39d55edd9eb4a1072aed5', mb: "1.75, 1.75, 2, 2.5" })));
25
- }
26
- static get style() { return HyAccordionContainerStyle0; }
27
- }, [4, "hy-accordion-container", {
28
- "accordionid": [1]
29
- }]);
30
- function defineCustomElement() {
31
- if (typeof customElements === "undefined") {
32
- return;
33
- }
34
- const components = ["hy-accordion-container", "hy-box"];
35
- components.forEach(tagName => { switch (tagName) {
36
- case "hy-accordion-container":
37
- if (!customElements.get(tagName)) {
38
- customElements.define(tagName, AccordionContainer);
39
- }
40
- break;
41
- case "hy-box":
42
- if (!customElements.get(tagName)) {
43
- defineCustomElement$1();
44
- }
45
- break;
46
- } });
47
- }
48
-
49
- export { AccordionContainer as A, defineCustomElement as d };
@@ -1,240 +0,0 @@
1
- import { p as proxyCustomElement, H, h } from './index3.js';
2
- import { A as AccordionVariants } from './utils.js';
3
- import { d as defineCustomElement$1 } from './icon.js';
4
-
5
- const accordionItemCss = "*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-accordion__item{margin-bottom:12px}.hy-accordion__item__is-open{border:1px solid var(--grayscale-dark)}.hy-accordion__item__is-open .hy-accordion--heading{margin:0 auto}.hy-accordion__item__is-open .hy-accordion--heading .hy-accordion--heading__icon{-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.hy-accordion__item.mini{margin-bottom:1rem;margin-top:1rem}.hy-accordion__item__is-open.mini{margin-bottom:0;margin-top:0}.hy-accordion__item__is-open.mini .hy-accordion__item--container{border-bottom:1px solid var(--grayscale-medium-dark);border-top:1px solid var(--grayscale-medium-dark);padding-top:16px;padding-bottom:32px;margin-top:-1px;-webkit-transition:padding 0.5s ease-in-out;transition:padding 0.5s ease-in-out}@media (min-width: 30rem){.hy-accordion__item__is-open.mini .hy-accordion__item--container{padding-top:28px;padding-bottom:30px}}@media (min-width: 60rem){.hy-accordion__item__is-open.mini .hy-accordion__item--container{padding-top:32px;padding-bottom:40px}}.hy-accordion__item.hy-accordion__item__is-open.mini{background-color:var(--grayscale-white);border:none;-webkit-box-shadow:0 -10px 10px -10px rgba(0, 49, 70, 0.05);box-shadow:0 -10px 10px -10px rgba(0, 49, 70, 0.05)}.hy-accordion--heading{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;letter-spacing:-0.69px;line-height:28px;margin:0 auto;-webkit-transition:all 0.25s ease-in-out;transition:all 0.25s ease-in-out;width:100%}.hy-accordion--heading .hy-accordion__link{text-decoration:none}.hy-accordion--heading .hy-accordion__link:hover{text-decoration:none}.hy-accordion--heading .hy-accordion__button{font-size:1.125rem;line-height:22px;font-weight:700;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;background-color:var(--grayscale-background-box);border:none;color:var(--brand-main-nearly-black);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;font-family:var(--main-font-family);height:100%;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;letter-spacing:-0.45px;padding:13px 20px 13px 16px;-webkit-transition:all 0.35s ease-in;transition:all 0.35s ease-in;width:100%}.hy-accordion--heading .hy-accordion__button:hover{cursor:pointer}@media (min-width: 30rem){.hy-accordion--heading .hy-accordion__button{padding:1rem 2rem 1rem 1.25rem}}@media (min-width: 1601px){.hy-accordion--heading .hy-accordion__button{font-size:1.25rem;line-height:24px;letter-spacing:-0.5px}}@media (min-width: 75.0625rem){.hy-accordion--heading .hy-accordion__button--large{font-size:1.25rem;line-height:24px;letter-spacing:-0.5px}}@media (min-width: 75.0625rem){.hy-accordion--heading .hy-accordion__button--large .hy-accordion--heading__icon svg{height:20px;width:20px}}.hy-accordion--heading .hy-accordion__button span{text-align:left}.hy-accordion--heading .hy-accordion__button[aria-expanded=true]{background:none;position:relative}.hy-accordion--heading .hy-accordion__button[aria-expanded=true]:after{background-color:var(--grayscale-medium-dark);bottom:0;content:\"\";height:1px;left:16px;position:absolute;right:20px}.hy-accordion--heading .hy-accordion__button *{pointer-events:none}.hy-accordion--heading .hy-accordion--heading__icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:22px;margin-right:8px;z-index:0}.hy-accordion--heading .hy-accordion--heading__icon svg{fill:var(--brand-main)}@media (min-width: 30rem){.hy-accordion--heading .hy-accordion--heading__icon svg{height:18px;width:18px}}@media (min-width: 1601px){.hy-accordion--heading .hy-accordion--heading__icon svg{height:20px;width:20px}}.hy-accordion--heading.mini .hy-accordion__button{font-size:1.125rem;line-height:22px;background-color:var(--grayscale-white);color:var(--link-blue);letter-spacing:-0.56px;padding:0}@media (min-width: 30rem){.hy-accordion--heading.mini .hy-accordion__button{font-size:1.375rem;line-height:28px;letter-spacing:-0.69px;padding:0}}.hy-accordion--heading.mini .hy-accordion__button[aria-expanded=true]{color:var(--grayscale-black);margin-bottom:20px}@media (min-width: 30rem){.hy-accordion--heading.mini .hy-accordion__button[aria-expanded=true]{margin-bottom:28px}}@media (min-width: 60rem){.hy-accordion--heading.mini .hy-accordion__button[aria-expanded=true]{margin-bottom:32px}}.hy-accordion--heading.mini .hy-accordion--heading__icon{margin-right:0.5rem;z-index:0}@media (min-width: 30rem){.hy-accordion--heading.mini .hy-accordion--heading__icon{margin-right:10px}}.hy-accordion--heading.mini .hy-accordion--heading__icon svg{fill:var(--brand-main-light);height:14px;width:14px}@media (min-width: 30rem){.hy-accordion--heading.mini .hy-accordion--heading__icon svg{height:16px;width:16px}}.hy-accordion__content{display:block;height:0;padding:0;overflow:hidden;-webkit-transition:all 0.25s ease-in-out;transition:all 0.25s ease-in-out}.hy-accordion__content--inner-wrapper{display:block;padding:16px 12px}@media (min-width: 30rem){.hy-accordion__content--inner-wrapper{padding:15px 16px}}@media (min-width: 60rem){.hy-accordion__content--inner-wrapper{padding:16px}}@media (min-width: 75.0625rem){.hy-accordion__content--inner-wrapper--large{padding:24px 20px}}@media (min-width: 1601px){.hy-accordion__content--inner-wrapper{padding:24px 20px}}.hy-accordion__content--inner-wrapper--mini{padding:0}.hy-accordion__content--inner-wrapper--mini .course-heading h4{padding-top:0 !important}";
6
- const HyAccordionItemStyle0 = accordionItemCss;
7
-
8
- let keys = {
9
- enter: "Enter", //13
10
- tab: "Tab", //9
11
- pageUp: "PageUp", //33
12
- pageDown: "PageDown", //34
13
- arrowUp: "ArrowUp", // 38
14
- arrowDown: "ArrowDown", //40
15
- home: "Home", //36
16
- end: "End", //35
17
- };
18
- const AccordionItem = /*@__PURE__*/ proxyCustomElement(class AccordionItem extends H {
19
- constructor() {
20
- super();
21
- this.__registerHost();
22
- this.accordiontitle = undefined;
23
- this.variant = AccordionVariants.default;
24
- this.headerstyle = "common";
25
- this.showOpen = false;
26
- this.ready = false;
27
- }
28
- componentDidLoad() {
29
- this.ready = true;
30
- let hyMainDiv = this.el.closest(".hy-main");
31
- if (hyMainDiv) {
32
- if (!hyMainDiv.classList.contains("with-sidebar")) {
33
- this.headerstyle = "large";
34
- }
35
- }
36
- }
37
- componentDidRender() {
38
- if (window.location.hash) {
39
- this.expandPanelByAnchor(window.location.hash);
40
- }
41
- document.querySelectorAll(".hy-accordion__content").forEach(function (accordion) {
42
- let showOpen = accordion.classList.contains("open");
43
- let element = accordion;
44
- if (showOpen) {
45
- element.style.display = "block";
46
- element.style.height = element.scrollHeight + "px";
47
- }
48
- else {
49
- element.style.height = 0 + "px";
50
- element.style.display = "none";
51
- }
52
- });
53
- }
54
- onHashChange() {
55
- if (window.location.hash) {
56
- this.expandPanelByAnchor(window.location.hash);
57
- }
58
- }
59
- handleKeyDown(event) {
60
- const containerId = this.el.parentElement.id;
61
- let accordion = document.querySelectorAll(`#${containerId}`)[0];
62
- const triggers = Array.prototype.slice.call(accordion.querySelectorAll(".hy-accordion__button"));
63
- let target = event.target;
64
- const key = event.code;
65
- const ctrlModifier = event.ctrlKey && [keys.pageDown, keys.pageUp].includes(key); //key.match(/33|34/);
66
- if (target.classList.contains("hy-accordion__button")) {
67
- // Up/ Down arrow and Control + Page Up/ Page Down keyboard operations
68
- if ([keys.arrowDown, keys.arrowUp].includes(key) || ctrlModifier) {
69
- const index = triggers.indexOf(target);
70
- const direction = [keys.arrowDown, keys.pageDown].includes(key) ? 1 : -1;
71
- const length = triggers.length;
72
- const newIndex = (index + length + direction) % length;
73
- triggers[newIndex].focus();
74
- event.preventDefault();
75
- }
76
- else if ([keys.home, keys.end].includes(key)) {
77
- switch (key) {
78
- // Go to first accordion
79
- case keys.home:
80
- triggers[0].focus();
81
- break;
82
- // Go to last accordion
83
- case keys.end:
84
- triggers[triggers.length - 1].focus();
85
- break;
86
- }
87
- event.preventDefault();
88
- }
89
- }
90
- }
91
- handleClick(event) {
92
- const target = event.target;
93
- const accordionContainer = this.el.parentElement;
94
- const allowMultiple = accordionContainer.hasAttribute("data-allow-multiple");
95
- const allowToggle = allowMultiple ? allowMultiple : accordionContainer.hasAttribute("data-allow-toggle");
96
- if (target && target.tagName.toLowerCase() === "button") {
97
- let targetParent = target.closest(".hy-accordion__item");
98
- let targetContent = targetParent.getElementsByClassName("hy-accordion__content")[0];
99
- const isExpanded = target.getAttribute("aria-expanded") === "true";
100
- const activeButtonElement = accordionContainer.querySelector('[aria-expanded="true"]');
101
- if (!allowMultiple && activeButtonElement && activeButtonElement !== target) {
102
- activeButtonElement.setAttribute("aria-expanded", "false");
103
- this.collapseSection(targetContent);
104
- if (targetParent.classList.contains("hy-accordion__item__is-open")) {
105
- targetParent.classList.remove("hy-accordion__item__is-open");
106
- }
107
- accordionContainer
108
- .querySelector(`#${activeButtonElement.getAttribute("aria-controls")}`)
109
- .setAttribute("aria-hidden", "true");
110
- if (!allowToggle) {
111
- activeButtonElement.removeAttribute("aria-disabled");
112
- }
113
- }
114
- if (!isExpanded) {
115
- this.expandSection(targetContent);
116
- target.setAttribute("aria-expanded", "true");
117
- targetParent.classList.add("hy-accordion__item__is-open");
118
- accordionContainer
119
- .querySelector(`#${target.getAttribute("aria-controls")}`)
120
- .setAttribute("aria-hidden", "false");
121
- if (!allowToggle) {
122
- target.setAttribute("aria-disabled", "true");
123
- }
124
- }
125
- else if (allowToggle && isExpanded) {
126
- target.setAttribute("aria-expanded", "false");
127
- this.collapseSection(targetContent);
128
- if (targetParent.classList.contains("hy-accordion__item__is-open")) {
129
- targetParent.classList.remove("hy-accordion__item__is-open");
130
- }
131
- accordionContainer
132
- .querySelector(`#${target.getAttribute("aria-controls")}`)
133
- .setAttribute("aria-hidden", "true");
134
- }
135
- event.preventDefault();
136
- event.stopImmediatePropagation();
137
- }
138
- }
139
- expandPanelByAnchor(anchor) {
140
- setTimeout(() => {
141
- if (anchor.length > 0) {
142
- anchor = anchor.substr(1);
143
- let target = document.querySelectorAll(`[id=${anchor}]`)[0];
144
- if (target && target.classList.contains("hy-accordion__button")) {
145
- let targetParent = target.closest(".hy-accordion__item");
146
- let targetContent = targetParent.querySelectorAll(".hy-accordion__content")[0];
147
- this.expandSection(targetContent);
148
- target.setAttribute("aria-expanded", "true");
149
- targetParent.classList.add("hy-accordion__item__is-open");
150
- const targetElementRect = target.getBoundingClientRect();
151
- window.scrollTo({ top: window.scrollY + targetElementRect.top - 200, behavior: "smooth" });
152
- const containerId = targetParent.parentElement.parentElement.id;
153
- if (containerId.length > 0) {
154
- let accordion = document.querySelectorAll(`#${containerId}`)[0];
155
- accordion.querySelector(`#${target.getAttribute("aria-controls")}`).setAttribute("aria-hidden", "false");
156
- }
157
- }
158
- }
159
- }, 200);
160
- }
161
- collapseSection(element) {
162
- element.style.height = 0 + "px";
163
- element.setAttribute("data-collapsed", "true");
164
- setTimeout(() => {
165
- element.style.display = "none";
166
- }, 250);
167
- }
168
- expandSection(element) {
169
- element.style.display = "block";
170
- element.style.height = element.scrollHeight + "px";
171
- element.setAttribute("data-collapsed", "false");
172
- }
173
- render() {
174
- const containerId = this.el.parentElement.id;
175
- if (this.ready && containerId.length > 0) {
176
- document.querySelectorAll(`#${containerId}`).forEach(function (accordion) {
177
- if (accordion) {
178
- accordion.querySelectorAll(".hy-accordion__button").forEach(function (trigger) {
179
- trigger.addEventListener("focus", function () {
180
- trigger.classList.add("focus");
181
- });
182
- trigger.addEventListener("blur", function () {
183
- trigger.classList.remove("focus");
184
- });
185
- });
186
- }
187
- });
188
- }
189
- const classIsOpen = this.showOpen ? "hy-accordion__item__is-open" : "";
190
- const classContentIsOpen = this.showOpen ? "open" : "";
191
- const classAttributes = ["hy-accordion__item", this.variant, classIsOpen].join(" ");
192
- const classInnerWrapper = ["hy-accordion__item--container", this.variant].join(" ");
193
- const classHeadingAttributes = ["hy-accordion--heading", this.variant].join(" ");
194
- const classContentAttributes = [
195
- "hy-accordion__content",
196
- `hy-accordion__content--${this.variant}`,
197
- this.variant,
198
- classContentIsOpen,
199
- ].join(" ");
200
- const classContentInnerWrapper = [
201
- "hy-accordion__content--inner-wrapper",
202
- `hy-accordion__content--inner-wrapper--${this.headerstyle}`,
203
- `hy-accordion__content--inner-wrapper--${this.variant}`,
204
- ].join(" ");
205
- const titleAsId = this.accordiontitle.toLowerCase().replace(/\W/g, "-");
206
- const accordionItemHref = "#" + titleAsId + "--title";
207
- const ariaExpanded = this.showOpen ? "true" : "false";
208
- const ariaHidden = this.showOpen ? "false" : "true";
209
- const dataCollapsed = this.showOpen ? "false" : "true";
210
- return (h("div", { key: '507abb2a7d6aa29f2980524e94f2f18e6b6e08ec', class: classAttributes }, h("div", { key: '87336553ef852fd594050d4de3298f904e71d5c1', class: classInnerWrapper }, h("h3", { key: '84da70a9e2902851046c6079fb0ebbd11d856bfc', class: classHeadingAttributes }, h("a", { key: '3a9530633be1c6d127bd9c15d081d19e8f26fb6a', href: accordionItemHref, class: "hy-accordion__link", tabindex: "-1" }, h("button", { key: '378c62e3b67330c507f4bc6a2a9e1728fedcea33', "aria-expanded": ariaExpanded, "aria-controls": `${titleAsId}--content`, class: `hy-accordion__button hy-accordion__button--${this.headerstyle}`, id: `${titleAsId}--title` }, h("span", { key: 'e37e74995e1afe6b45faf0bcae6f8e765f6c60fd', class: "hy-accordion--heading__icon" }, h("hy-icon", { key: '620d28c44285cd806b64cabbba8245d7ec24e7af', icon: "hy-icon-caret-down", size: 16 })), h("span", { key: '6f8dd1038151384d7e0077ac174aff1eb509a530' }, this.accordiontitle)))), h("div", { key: '1c36473eae3a8e99c89a474039c786d3169cbc41', "aria-labelledBy": `${titleAsId}--title`, class: classContentAttributes, id: `${titleAsId}--content`, role: "region", "aria-hidden": ariaHidden, "data-collapsed": dataCollapsed, style: { display: "none" } }, h("div", { key: '2371237420458cc3b34dca567fd2e42610318fe1', class: classContentInnerWrapper }, h("slot", { key: '28847ba8e2964c20384e741bbe21272ee0645d01' }))))));
211
- }
212
- get el() { return this; }
213
- static get style() { return HyAccordionItemStyle0; }
214
- }, [4, "hy-accordion-item", {
215
- "accordiontitle": [1],
216
- "variant": [1],
217
- "headerstyle": [1],
218
- "showOpen": [4, "show-open"],
219
- "ready": [32]
220
- }, [[8, "hashchange", "onHashChange"], [0, "keydown", "handleKeyDown"], [0, "click", "handleClick"]]]);
221
- function defineCustomElement() {
222
- if (typeof customElements === "undefined") {
223
- return;
224
- }
225
- const components = ["hy-accordion-item", "hy-icon"];
226
- components.forEach(tagName => { switch (tagName) {
227
- case "hy-accordion-item":
228
- if (!customElements.get(tagName)) {
229
- customElements.define(tagName, AccordionItem);
230
- }
231
- break;
232
- case "hy-icon":
233
- if (!customElements.get(tagName)) {
234
- defineCustomElement$1();
235
- }
236
- break;
237
- } });
238
- }
239
-
240
- export { AccordionItem as A, defineCustomElement as d };
@@ -1 +0,0 @@
1
- import{g as o}from"./globalScript-7f6ce018.js";const r=o;export{r as g}