@itcenteratunihelsinki/huds-lib 0.8.56 → 0.8.58

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 (464) hide show
  1. package/components/hy-footer-base.js +1 -1
  2. package/components/hy-footer-base.js.map +1 -1
  3. package/components/hy-footer-info.js +1 -1
  4. package/components/hy-footer-info.js.map +1 -1
  5. package/components/hy-footer-link-item2.js +1 -1
  6. package/components/hy-footer-link-item2.js.map +1 -1
  7. package/components/hy-hero-carousel.js +41 -17
  8. package/components/hy-hero-carousel.js.map +1 -1
  9. package/components/hy-hero.js +1 -1
  10. package/components/hy-hero.js.map +1 -1
  11. package/components/hy-key-highlight2.js +1 -1
  12. package/components/hy-key-highlight2.js.map +1 -1
  13. package/components/hy-shortcuts.js +1 -1
  14. package/components/hy-shortcuts.js.map +1 -1
  15. package/components/hy-site-header.js +1 -1
  16. package/components/hy-site-header.js.map +1 -1
  17. package/components/hy-tabs2.js +1 -1
  18. package/components/hy-tabs2.js.map +1 -1
  19. package/components/hy-video.js +1 -1
  20. package/components/hy-video.js.map +1 -1
  21. package/components/link-box.js +1 -1
  22. package/components/link-box.js.map +1 -1
  23. package/components/process-flow-box.js +1 -1
  24. package/components/process-flow-box.js.map +1 -1
  25. package/dist/cjs/color-box_7.cjs.entry.js +177 -0
  26. package/dist/cjs/color-box_7.cjs.entry.js.map +1 -0
  27. package/dist/cjs/emotion.esm-aef96835.js +1399 -0
  28. package/dist/cjs/emotion.esm-aef96835.js.map +1 -0
  29. package/dist/cjs/{globalScript-d341436f.js → globalScript-9994473d.js} +2 -2
  30. package/dist/cjs/{globalScript-d341436f.js.map → globalScript-9994473d.js.map} +1 -1
  31. package/dist/cjs/huds-lib.cjs.js +4 -4
  32. package/dist/cjs/huds-lib.cjs.js.map +1 -1
  33. package/dist/cjs/hy-accordion-container_2.cjs.entry.js +243 -0
  34. package/dist/cjs/hy-accordion-container_2.cjs.entry.js.map +1 -0
  35. package/dist/cjs/hy-adjacent-image-text.cjs.entry.js +61 -0
  36. package/dist/cjs/hy-adjacent-image-text.cjs.entry.js.map +1 -0
  37. package/dist/cjs/hy-anchor-link-list.cjs.entry.js +53 -0
  38. package/dist/cjs/hy-anchor-link-list.cjs.entry.js.map +1 -0
  39. package/dist/cjs/hy-badge.cjs.entry.js +23 -0
  40. package/dist/cjs/hy-badge.cjs.entry.js.map +1 -0
  41. package/dist/cjs/hy-banner.cjs.entry.js +51 -0
  42. package/dist/cjs/hy-banner.cjs.entry.js.map +1 -0
  43. package/dist/cjs/hy-box.cjs.entry.js +169 -0
  44. package/dist/cjs/hy-box.cjs.entry.js.map +1 -0
  45. package/dist/cjs/hy-breadcrumbs_16.cjs.entry.js +1027 -0
  46. package/dist/cjs/hy-breadcrumbs_16.cjs.entry.js.map +1 -0
  47. package/dist/cjs/hy-checkbox.cjs.entry.js +32 -0
  48. package/dist/cjs/hy-checkbox.cjs.entry.js.map +1 -0
  49. package/dist/cjs/hy-collaboration.cjs.entry.js +26 -0
  50. package/dist/cjs/hy-collaboration.cjs.entry.js.map +1 -0
  51. package/dist/cjs/hy-content-list_2.cjs.entry.js +180 -0
  52. package/dist/cjs/hy-content-list_2.cjs.entry.js.map +1 -0
  53. package/dist/cjs/hy-crisis-banner.cjs.entry.js +25 -0
  54. package/dist/cjs/hy-crisis-banner.cjs.entry.js.map +1 -0
  55. package/dist/cjs/hy-cta-button.cjs.entry.js +35 -0
  56. package/dist/cjs/hy-cta-button.cjs.entry.js.map +1 -0
  57. package/dist/cjs/hy-cta-link.cjs.entry.js +30 -0
  58. package/dist/cjs/hy-cta-link.cjs.entry.js.map +1 -0
  59. package/dist/cjs/hy-dropdown_3.cjs.entry.js +141 -0
  60. package/dist/cjs/hy-dropdown_3.cjs.entry.js.map +1 -0
  61. package/dist/cjs/hy-event-item.cjs.entry.js +1 -1
  62. package/dist/cjs/hy-events.cjs.entry.js +1 -1
  63. package/dist/cjs/hy-filter-group_6.cjs.entry.js +116 -0
  64. package/dist/cjs/hy-filter-group_6.cjs.entry.js.map +1 -0
  65. package/dist/cjs/hy-general-list_2.cjs.entry.js +103 -0
  66. package/dist/cjs/hy-general-list_2.cjs.entry.js.map +1 -0
  67. package/dist/cjs/hy-grid-container_3.cjs.entry.js +61 -0
  68. package/dist/cjs/hy-grid-container_3.cjs.entry.js.map +1 -0
  69. package/dist/cjs/hy-hero-carousel.cjs.entry.js +43 -19
  70. package/dist/cjs/hy-hero-carousel.cjs.entry.js.map +1 -1
  71. package/dist/cjs/hy-hero.cjs.entry.js +112 -0
  72. package/dist/cjs/hy-hero.cjs.entry.js.map +1 -0
  73. package/dist/cjs/hy-icon.cjs.entry.js +818 -0
  74. package/dist/cjs/hy-icon.cjs.entry.js.map +1 -0
  75. package/dist/cjs/hy-image.cjs.entry.js +53 -0
  76. package/dist/cjs/hy-image.cjs.entry.js.map +1 -0
  77. package/dist/cjs/hy-introduction.cjs.entry.js +63 -0
  78. package/dist/cjs/hy-introduction.cjs.entry.js.map +1 -0
  79. package/dist/cjs/hy-key-figure_2.cjs.entry.js +97 -0
  80. package/dist/cjs/hy-key-figure_2.cjs.entry.js.map +1 -0
  81. package/dist/cjs/hy-key-highlight_2.cjs.entry.js +64 -0
  82. package/dist/cjs/hy-key-highlight_2.cjs.entry.js.map +1 -0
  83. package/dist/cjs/hy-large-process-flow_2.cjs.entry.js +78 -0
  84. package/dist/cjs/hy-large-process-flow_2.cjs.entry.js.map +1 -0
  85. package/dist/cjs/hy-link-box_2.cjs.entry.js +135 -0
  86. package/dist/cjs/hy-link-box_2.cjs.entry.js.map +1 -0
  87. package/dist/cjs/hy-link-list.cjs.entry.js +48 -0
  88. package/dist/cjs/hy-link-list.cjs.entry.js.map +1 -0
  89. package/dist/cjs/hy-link.cjs.entry.js +29 -0
  90. package/dist/cjs/hy-link.cjs.entry.js.map +1 -0
  91. package/dist/cjs/hy-list-item.cjs.entry.js +253 -0
  92. package/dist/cjs/hy-list-item.cjs.entry.js.map +1 -0
  93. package/dist/cjs/hy-logo-grid_2.cjs.entry.js +50 -0
  94. package/dist/cjs/hy-logo-grid_2.cjs.entry.js.map +1 -0
  95. package/dist/cjs/hy-menu-main-group.cjs.entry.js +160 -0
  96. package/dist/cjs/hy-menu-main-group.cjs.entry.js.map +1 -0
  97. package/dist/cjs/hy-opening-hours_2.cjs.entry.js +82 -0
  98. package/dist/cjs/hy-opening-hours_2.cjs.entry.js.map +1 -0
  99. package/dist/cjs/hy-pager_2.cjs.entry.js +64 -0
  100. package/dist/cjs/hy-pager_2.cjs.entry.js.map +1 -0
  101. package/dist/cjs/hy-paragraph-text.cjs.entry.js +48 -0
  102. package/dist/cjs/hy-paragraph-text.cjs.entry.js.map +1 -0
  103. package/dist/cjs/hy-person-card.cjs.entry.js +97 -0
  104. package/dist/cjs/hy-person-card.cjs.entry.js.map +1 -0
  105. package/dist/cjs/hy-person-profile-listing.cjs.entry.js +36 -0
  106. package/dist/cjs/hy-person-profile-listing.cjs.entry.js.map +1 -0
  107. package/dist/cjs/hy-person-profile.cjs.entry.js +74 -0
  108. package/dist/cjs/hy-person-profile.cjs.entry.js.map +1 -0
  109. package/dist/cjs/hy-process_2.cjs.entry.js +86 -0
  110. package/dist/cjs/hy-process_2.cjs.entry.js.map +1 -0
  111. package/dist/cjs/hy-prominent-image.cjs.entry.js +41 -0
  112. package/dist/cjs/hy-prominent-image.cjs.entry.js.map +1 -0
  113. package/dist/cjs/hy-quote.cjs.entry.js +33 -0
  114. package/dist/cjs/hy-quote.cjs.entry.js.map +1 -0
  115. package/dist/cjs/hy-row.cjs.entry.js +35 -0
  116. package/dist/cjs/hy-row.cjs.entry.js.map +1 -0
  117. package/dist/cjs/hy-shortcuts.cjs.entry.js +63 -0
  118. package/dist/cjs/hy-shortcuts.cjs.entry.js.map +1 -0
  119. package/dist/cjs/hy-table-container.cjs.entry.js +22 -0
  120. package/dist/cjs/hy-table-container.cjs.entry.js.map +1 -0
  121. package/dist/cjs/hy-tabs_2.cjs.entry.js +332 -0
  122. package/dist/cjs/hy-tabs_2.cjs.entry.js.map +1 -0
  123. package/dist/cjs/hy-tag.cjs.entry.js +22 -0
  124. package/dist/cjs/hy-tag.cjs.entry.js.map +1 -0
  125. package/dist/cjs/hy-twitter-feed.cjs.entry.js +34 -0
  126. package/dist/cjs/hy-twitter-feed.cjs.entry.js.map +1 -0
  127. package/dist/cjs/hy-two-columns.cjs.entry.js +23 -0
  128. package/dist/cjs/hy-two-columns.cjs.entry.js.map +1 -0
  129. package/dist/cjs/hy-user-login-form.cjs.entry.js +27 -0
  130. package/dist/cjs/hy-user-login-form.cjs.entry.js.map +1 -0
  131. package/dist/cjs/hy-video.cjs.entry.js +102 -0
  132. package/dist/cjs/hy-video.cjs.entry.js.map +1 -0
  133. package/dist/cjs/{index-ca4e37f2.js → index-32830401.js} +17 -4
  134. package/dist/cjs/index-32830401.js.map +1 -0
  135. package/dist/cjs/index-dacd8ca5.js +969 -0
  136. package/dist/cjs/index-dacd8ca5.js.map +1 -0
  137. package/dist/cjs/loader.cjs.js +4 -4
  138. package/dist/cjs/loader.cjs.js.map +1 -1
  139. package/dist/collection/collection-manifest.json +262 -70
  140. package/dist/collection/components/accordion-container/accordion-container.spec.js +7 -0
  141. package/dist/collection/components/accordion-container/accordion-container.spec.js.map +1 -0
  142. package/dist/collection/components/accordion-item/accordion-item.spec.js +7 -0
  143. package/dist/collection/components/accordion-item/accordion-item.spec.js.map +1 -0
  144. package/dist/collection/components/adjacent-image-text/adjacent-image-text.spec.js +7 -0
  145. package/dist/collection/components/adjacent-image-text/adjacent-image-text.spec.js.map +1 -0
  146. package/dist/collection/components/baseline/baseline.spec.js +7 -0
  147. package/dist/collection/components/baseline/baseline.spec.js.map +1 -0
  148. package/dist/collection/components/button/button.e2e.js +16 -0
  149. package/dist/collection/components/button/button.e2e.js.map +1 -0
  150. package/dist/collection/components/button/button.spec.js +55 -0
  151. package/dist/collection/components/button/button.spec.js.map +1 -0
  152. package/dist/collection/components/color-box/color-box.spec.js +18 -0
  153. package/dist/collection/components/color-box/color-box.spec.js.map +1 -0
  154. package/dist/collection/components/cta-button/cta-button.e2e.js +15 -0
  155. package/dist/collection/components/cta-button/cta-button.e2e.js.map +1 -0
  156. package/dist/collection/components/cta-button/cta-button.spec.js +7 -0
  157. package/dist/collection/components/cta-button/cta-button.spec.js.map +1 -0
  158. package/dist/collection/components/cta-link/cta-link.e2e.js +15 -0
  159. package/dist/collection/components/cta-link/cta-link.e2e.js.map +1 -0
  160. package/dist/collection/components/cta-link/cta-link.spec.js +7 -0
  161. package/dist/collection/components/cta-link/cta-link.spec.js.map +1 -0
  162. package/dist/collection/components/footer/hy-footer-base/hy-footer-base.js +1 -1
  163. package/dist/collection/components/footer/hy-footer-base/hy-footer-base.js.map +1 -1
  164. package/dist/collection/components/footer/hy-footer-info/hy-footer-info.js +1 -1
  165. package/dist/collection/components/footer/hy-footer-info/hy-footer-info.js.map +1 -1
  166. package/dist/collection/components/footer/hy-footer-link-item/hy-footer-link-item.css +0 -1
  167. package/dist/collection/components/grid-container/grid-container.spec.js +7 -0
  168. package/dist/collection/components/grid-container/grid-container.spec.js.map +1 -0
  169. package/dist/collection/components/grid-item/grid-item.spec.js +7 -0
  170. package/dist/collection/components/grid-item/grid-item.spec.js.map +1 -0
  171. package/dist/collection/components/grid-row/grid-row.spec.js +7 -0
  172. package/dist/collection/components/grid-row/grid-row.spec.js.map +1 -0
  173. package/dist/collection/components/heading/heading.spec.js +7 -0
  174. package/dist/collection/components/heading/heading.spec.js.map +1 -0
  175. package/dist/collection/components/hy-badge/hy-badge.spec.js +20 -0
  176. package/dist/collection/components/hy-badge/hy-badge.spec.js.map +1 -0
  177. package/dist/collection/components/hy-box/test/hy-box.spec.js +26 -0
  178. package/dist/collection/components/hy-box/test/hy-box.spec.js.map +1 -0
  179. package/dist/collection/components/hy-box-container/test/hy-box-container.e2e.js +10 -0
  180. package/dist/collection/components/hy-box-container/test/hy-box-container.e2e.js.map +1 -0
  181. package/dist/collection/components/hy-box-container/test/hy-box-container.spec.js +16 -0
  182. package/dist/collection/components/hy-box-container/test/hy-box-container.spec.js.map +1 -0
  183. package/dist/collection/components/hy-hero/hy-hero.css +0 -1
  184. package/dist/collection/components/hy-hero-carousel/hy-hero-carousel.css +0 -1
  185. package/dist/collection/components/hy-key-figure/test/hy-key-figure.spec.js +21 -0
  186. package/dist/collection/components/hy-key-figure/test/hy-key-figure.spec.js.map +1 -0
  187. package/dist/collection/components/hy-key-highlight/hy-key-highlight.css +0 -1
  188. package/dist/collection/components/hy-key-highlight/test/hy-key-highlight.spec.js +23 -0
  189. package/dist/collection/components/hy-key-highlight/test/hy-key-highlight.spec.js.map +1 -0
  190. package/dist/collection/components/hy-shortcuts/hy-shortcuts.css +0 -1
  191. package/dist/collection/components/hy-tabs/hy-tabs.css +0 -1
  192. package/dist/collection/components/hy-two-columns/test/hy-two-columns.spec.js +27 -0
  193. package/dist/collection/components/hy-two-columns/test/hy-two-columns.spec.js.map +1 -0
  194. package/dist/collection/components/hy-video/hy-video.css +0 -1
  195. package/dist/collection/components/icon/icon.spec.js +7 -0
  196. package/dist/collection/components/icon/icon.spec.js.map +1 -0
  197. package/dist/collection/components/image/image.spec.js +21 -0
  198. package/dist/collection/components/image/image.spec.js.map +1 -0
  199. package/dist/collection/components/ingress/ingress.spec.js +7 -0
  200. package/dist/collection/components/ingress/ingress.spec.js.map +1 -0
  201. package/dist/collection/components/link/link.e2e.js +17 -0
  202. package/dist/collection/components/link/link.e2e.js.map +1 -0
  203. package/dist/collection/components/link/link.spec.js +7 -0
  204. package/dist/collection/components/link/link.spec.js.map +1 -0
  205. package/dist/collection/components/link-box/link-box.css +0 -1
  206. package/dist/collection/components/link-box/link-box.spec.js +7 -0
  207. package/dist/collection/components/link-box/link-box.spec.js.map +1 -0
  208. package/dist/collection/components/paragraph-text/paragraph-text.spec.js +7 -0
  209. package/dist/collection/components/paragraph-text/paragraph-text.spec.js.map +1 -0
  210. package/dist/collection/components/process/process.spec.js +7 -0
  211. package/dist/collection/components/process/process.spec.js.map +1 -0
  212. package/dist/collection/components/process-flow-box/process-flow-box.css +0 -2
  213. package/dist/collection/components/process-flow-box/process-flow-box.spec.js +7 -0
  214. package/dist/collection/components/process-flow-box/process-flow-box.spec.js.map +1 -0
  215. package/dist/collection/components/row/row.spec.js +7 -0
  216. package/dist/collection/components/row/row.spec.js.map +1 -0
  217. package/dist/collection/components/section-container/section-container.e2e.js +10 -0
  218. package/dist/collection/components/section-container/section-container.e2e.js.map +1 -0
  219. package/dist/collection/components/section-container/section-container.spec.js +17 -0
  220. package/dist/collection/components/section-container/section-container.spec.js.map +1 -0
  221. package/dist/collection/components/site-header/site-header.css +7 -0
  222. package/dist/collection/components/tiny-text/tiny-text.spec.js +7 -0
  223. package/dist/collection/components/tiny-text/tiny-text.spec.js.map +1 -0
  224. package/dist/esm/color-box_7.entry.js +167 -0
  225. package/dist/esm/color-box_7.entry.js.map +1 -0
  226. package/dist/esm/emotion.esm-e0a633a4.js +1397 -0
  227. package/dist/esm/emotion.esm-e0a633a4.js.map +1 -0
  228. package/dist/esm/{globalScript-3c6fab71.js → globalScript-5a4b7abf.js} +2 -2
  229. package/dist/esm/{globalScript-3c6fab71.js.map → globalScript-5a4b7abf.js.map} +1 -1
  230. package/dist/esm/huds-lib.js +5 -5
  231. package/dist/esm/huds-lib.js.map +1 -1
  232. package/dist/esm/hy-accordion-container_2.entry.js +238 -0
  233. package/dist/esm/hy-accordion-container_2.entry.js.map +1 -0
  234. package/dist/esm/hy-adjacent-image-text.entry.js +57 -0
  235. package/dist/esm/hy-adjacent-image-text.entry.js.map +1 -0
  236. package/dist/esm/hy-anchor-link-list.entry.js +49 -0
  237. package/dist/esm/hy-anchor-link-list.entry.js.map +1 -0
  238. package/dist/esm/hy-badge.entry.js +19 -0
  239. package/dist/esm/hy-badge.entry.js.map +1 -0
  240. package/dist/esm/hy-banner.entry.js +47 -0
  241. package/dist/esm/hy-banner.entry.js.map +1 -0
  242. package/dist/esm/hy-box.entry.js +165 -0
  243. package/dist/esm/hy-box.entry.js.map +1 -0
  244. package/dist/esm/hy-breadcrumbs_16.entry.js +1008 -0
  245. package/dist/esm/hy-breadcrumbs_16.entry.js.map +1 -0
  246. package/dist/esm/hy-checkbox.entry.js +28 -0
  247. package/dist/esm/hy-checkbox.entry.js.map +1 -0
  248. package/dist/esm/hy-collaboration.entry.js +22 -0
  249. package/dist/esm/hy-collaboration.entry.js.map +1 -0
  250. package/dist/esm/hy-content-list_2.entry.js +175 -0
  251. package/dist/esm/hy-content-list_2.entry.js.map +1 -0
  252. package/dist/esm/hy-crisis-banner.entry.js +21 -0
  253. package/dist/esm/hy-crisis-banner.entry.js.map +1 -0
  254. package/dist/esm/hy-cta-button.entry.js +31 -0
  255. package/dist/esm/hy-cta-button.entry.js.map +1 -0
  256. package/dist/esm/hy-cta-link.entry.js +26 -0
  257. package/dist/esm/hy-cta-link.entry.js.map +1 -0
  258. package/dist/esm/hy-dropdown_3.entry.js +135 -0
  259. package/dist/esm/hy-dropdown_3.entry.js.map +1 -0
  260. package/dist/esm/hy-event-item.entry.js +1 -1
  261. package/dist/esm/hy-events.entry.js +2 -2
  262. package/dist/esm/hy-filter-group_6.entry.js +107 -0
  263. package/dist/esm/hy-filter-group_6.entry.js.map +1 -0
  264. package/dist/esm/hy-general-list_2.entry.js +98 -0
  265. package/dist/esm/hy-general-list_2.entry.js.map +1 -0
  266. package/dist/esm/hy-grid-container_3.entry.js +55 -0
  267. package/dist/esm/hy-grid-container_3.entry.js.map +1 -0
  268. package/dist/esm/hy-hero-carousel.entry.js +44 -20
  269. package/dist/esm/hy-hero-carousel.entry.js.map +1 -1
  270. package/dist/esm/hy-hero.entry.js +108 -0
  271. package/dist/esm/hy-hero.entry.js.map +1 -0
  272. package/dist/esm/hy-icon.entry.js +814 -0
  273. package/dist/esm/hy-icon.entry.js.map +1 -0
  274. package/dist/esm/hy-image.entry.js +49 -0
  275. package/dist/esm/hy-image.entry.js.map +1 -0
  276. package/dist/esm/hy-introduction.entry.js +59 -0
  277. package/dist/esm/hy-introduction.entry.js.map +1 -0
  278. package/dist/esm/hy-key-figure_2.entry.js +92 -0
  279. package/dist/esm/hy-key-figure_2.entry.js.map +1 -0
  280. package/dist/esm/hy-key-highlight_2.entry.js +59 -0
  281. package/dist/esm/hy-key-highlight_2.entry.js.map +1 -0
  282. package/dist/esm/hy-large-process-flow_2.entry.js +73 -0
  283. package/dist/esm/hy-large-process-flow_2.entry.js.map +1 -0
  284. package/dist/esm/hy-link-box_2.entry.js +130 -0
  285. package/dist/esm/hy-link-box_2.entry.js.map +1 -0
  286. package/dist/esm/hy-link-list.entry.js +44 -0
  287. package/dist/esm/hy-link-list.entry.js.map +1 -0
  288. package/dist/esm/hy-link.entry.js +25 -0
  289. package/dist/esm/hy-link.entry.js.map +1 -0
  290. package/dist/esm/hy-list-item.entry.js +249 -0
  291. package/dist/esm/hy-list-item.entry.js.map +1 -0
  292. package/dist/esm/hy-logo-grid_2.entry.js +45 -0
  293. package/dist/esm/hy-logo-grid_2.entry.js.map +1 -0
  294. package/dist/esm/hy-menu-main-group.entry.js +156 -0
  295. package/dist/esm/hy-menu-main-group.entry.js.map +1 -0
  296. package/dist/esm/hy-opening-hours_2.entry.js +77 -0
  297. package/dist/esm/hy-opening-hours_2.entry.js.map +1 -0
  298. package/dist/esm/hy-pager_2.entry.js +59 -0
  299. package/dist/esm/hy-pager_2.entry.js.map +1 -0
  300. package/dist/esm/hy-paragraph-text.entry.js +44 -0
  301. package/dist/esm/hy-paragraph-text.entry.js.map +1 -0
  302. package/dist/esm/hy-person-card.entry.js +93 -0
  303. package/dist/esm/hy-person-card.entry.js.map +1 -0
  304. package/dist/esm/hy-person-profile-listing.entry.js +32 -0
  305. package/dist/esm/hy-person-profile-listing.entry.js.map +1 -0
  306. package/dist/esm/hy-person-profile.entry.js +70 -0
  307. package/dist/esm/hy-person-profile.entry.js.map +1 -0
  308. package/dist/esm/hy-process_2.entry.js +81 -0
  309. package/dist/esm/hy-process_2.entry.js.map +1 -0
  310. package/dist/esm/hy-prominent-image.entry.js +37 -0
  311. package/dist/esm/hy-prominent-image.entry.js.map +1 -0
  312. package/dist/esm/hy-quote.entry.js +29 -0
  313. package/dist/esm/hy-quote.entry.js.map +1 -0
  314. package/dist/esm/hy-row.entry.js +31 -0
  315. package/dist/esm/hy-row.entry.js.map +1 -0
  316. package/dist/esm/hy-shortcuts.entry.js +59 -0
  317. package/dist/esm/hy-shortcuts.entry.js.map +1 -0
  318. package/dist/esm/hy-table-container.entry.js +18 -0
  319. package/dist/esm/hy-table-container.entry.js.map +1 -0
  320. package/dist/esm/hy-tabs_2.entry.js +327 -0
  321. package/dist/esm/hy-tabs_2.entry.js.map +1 -0
  322. package/dist/esm/hy-tag.entry.js +18 -0
  323. package/dist/esm/hy-tag.entry.js.map +1 -0
  324. package/dist/esm/hy-twitter-feed.entry.js +30 -0
  325. package/dist/esm/hy-twitter-feed.entry.js.map +1 -0
  326. package/dist/esm/hy-two-columns.entry.js +19 -0
  327. package/dist/esm/hy-two-columns.entry.js.map +1 -0
  328. package/dist/esm/hy-user-login-form.entry.js +23 -0
  329. package/dist/esm/hy-user-login-form.entry.js.map +1 -0
  330. package/dist/esm/hy-video.entry.js +98 -0
  331. package/dist/esm/hy-video.entry.js.map +1 -0
  332. package/dist/esm/index-ecc819ad.js +967 -0
  333. package/dist/esm/index-ecc819ad.js.map +1 -0
  334. package/dist/esm/{index-9920074a.js → index-f84f2a7d.js} +17 -4
  335. package/dist/esm/index-f84f2a7d.js.map +1 -0
  336. package/dist/esm/loader.js +5 -5
  337. package/dist/esm/loader.js.map +1 -1
  338. package/dist/esm/{utils-a4d55421.js → utils-a4ebfef1.js} +2 -2
  339. package/dist/esm/{utils-a4d55421.js.map → utils-a4ebfef1.js.map} +1 -1
  340. package/dist/huds-lib/color-box_7.entry.js +12 -0
  341. package/dist/huds-lib/color-box_7.entry.js.map +1 -0
  342. package/dist/huds-lib/emotion.esm-e0a633a4.js +2 -0
  343. package/dist/huds-lib/emotion.esm-e0a633a4.js.map +1 -0
  344. package/dist/huds-lib/{globalScript-3c6fab71.js → globalScript-5a4b7abf.js} +2 -2
  345. package/dist/huds-lib/huds-lib.esm.js +1 -1
  346. package/dist/huds-lib/huds-lib.esm.js.map +1 -1
  347. package/dist/huds-lib/hy-accordion-container_2.entry.js +2 -0
  348. package/dist/huds-lib/hy-accordion-container_2.entry.js.map +1 -0
  349. package/dist/huds-lib/hy-adjacent-image-text.entry.js +2 -0
  350. package/dist/huds-lib/hy-adjacent-image-text.entry.js.map +1 -0
  351. package/dist/huds-lib/hy-anchor-link-list.entry.js +2 -0
  352. package/dist/huds-lib/hy-anchor-link-list.entry.js.map +1 -0
  353. package/dist/huds-lib/hy-badge.entry.js +2 -0
  354. package/dist/huds-lib/hy-badge.entry.js.map +1 -0
  355. package/dist/huds-lib/hy-banner.entry.js +2 -0
  356. package/dist/huds-lib/hy-banner.entry.js.map +1 -0
  357. package/dist/huds-lib/hy-box.entry.js +71 -0
  358. package/dist/huds-lib/hy-box.entry.js.map +1 -0
  359. package/dist/huds-lib/hy-breadcrumbs_16.entry.js +2 -0
  360. package/dist/huds-lib/hy-breadcrumbs_16.entry.js.map +1 -0
  361. package/dist/huds-lib/hy-checkbox.entry.js +2 -0
  362. package/dist/huds-lib/hy-checkbox.entry.js.map +1 -0
  363. package/dist/huds-lib/hy-collaboration.entry.js +2 -0
  364. package/dist/huds-lib/hy-collaboration.entry.js.map +1 -0
  365. package/dist/huds-lib/hy-content-list_2.entry.js +2 -0
  366. package/dist/huds-lib/hy-content-list_2.entry.js.map +1 -0
  367. package/dist/huds-lib/hy-crisis-banner.entry.js +2 -0
  368. package/dist/huds-lib/hy-crisis-banner.entry.js.map +1 -0
  369. package/dist/huds-lib/hy-cta-button.entry.js +2 -0
  370. package/dist/huds-lib/hy-cta-button.entry.js.map +1 -0
  371. package/dist/huds-lib/hy-cta-link.entry.js +2 -0
  372. package/dist/huds-lib/hy-cta-link.entry.js.map +1 -0
  373. package/dist/huds-lib/hy-dropdown_3.entry.js +2 -0
  374. package/dist/huds-lib/hy-dropdown_3.entry.js.map +1 -0
  375. package/dist/huds-lib/hy-event-item.entry.js +1 -1
  376. package/dist/huds-lib/hy-events.entry.js +1 -1
  377. package/dist/huds-lib/hy-filter-group_6.entry.js +2 -0
  378. package/dist/huds-lib/hy-filter-group_6.entry.js.map +1 -0
  379. package/dist/huds-lib/hy-general-list_2.entry.js +2 -0
  380. package/dist/huds-lib/hy-general-list_2.entry.js.map +1 -0
  381. package/dist/huds-lib/hy-grid-container_3.entry.js +2 -0
  382. package/dist/huds-lib/hy-grid-container_3.entry.js.map +1 -0
  383. package/dist/huds-lib/hy-hero-carousel.entry.js +1 -1
  384. package/dist/huds-lib/hy-hero-carousel.entry.js.map +1 -1
  385. package/dist/huds-lib/hy-hero.entry.js +2 -0
  386. package/dist/huds-lib/hy-hero.entry.js.map +1 -0
  387. package/dist/huds-lib/hy-icon.entry.js +2 -0
  388. package/dist/huds-lib/hy-icon.entry.js.map +1 -0
  389. package/dist/huds-lib/hy-image.entry.js +2 -0
  390. package/dist/huds-lib/hy-image.entry.js.map +1 -0
  391. package/dist/huds-lib/hy-introduction.entry.js +2 -0
  392. package/dist/huds-lib/hy-introduction.entry.js.map +1 -0
  393. package/dist/huds-lib/hy-key-figure_2.entry.js +2 -0
  394. package/dist/huds-lib/hy-key-figure_2.entry.js.map +1 -0
  395. package/dist/huds-lib/hy-key-highlight_2.entry.js +2 -0
  396. package/dist/huds-lib/hy-key-highlight_2.entry.js.map +1 -0
  397. package/dist/huds-lib/hy-large-process-flow_2.entry.js +2 -0
  398. package/dist/huds-lib/hy-large-process-flow_2.entry.js.map +1 -0
  399. package/dist/huds-lib/hy-link-box_2.entry.js +2 -0
  400. package/dist/huds-lib/hy-link-box_2.entry.js.map +1 -0
  401. package/dist/huds-lib/hy-link-list.entry.js +2 -0
  402. package/dist/huds-lib/hy-link-list.entry.js.map +1 -0
  403. package/dist/huds-lib/hy-link.entry.js +2 -0
  404. package/dist/huds-lib/hy-link.entry.js.map +1 -0
  405. package/dist/huds-lib/hy-list-item.entry.js +2 -0
  406. package/dist/huds-lib/hy-list-item.entry.js.map +1 -0
  407. package/dist/huds-lib/hy-logo-grid_2.entry.js +2 -0
  408. package/dist/huds-lib/hy-logo-grid_2.entry.js.map +1 -0
  409. package/dist/huds-lib/hy-menu-main-group.entry.js +2 -0
  410. package/dist/huds-lib/hy-menu-main-group.entry.js.map +1 -0
  411. package/dist/huds-lib/hy-opening-hours_2.entry.js +2 -0
  412. package/dist/huds-lib/hy-opening-hours_2.entry.js.map +1 -0
  413. package/dist/huds-lib/hy-pager_2.entry.js +2 -0
  414. package/dist/huds-lib/hy-pager_2.entry.js.map +1 -0
  415. package/dist/huds-lib/hy-paragraph-text.entry.js +2 -0
  416. package/dist/huds-lib/hy-paragraph-text.entry.js.map +1 -0
  417. package/dist/huds-lib/hy-person-card.entry.js +2 -0
  418. package/dist/huds-lib/hy-person-card.entry.js.map +1 -0
  419. package/dist/huds-lib/hy-person-profile-listing.entry.js +2 -0
  420. package/dist/huds-lib/hy-person-profile-listing.entry.js.map +1 -0
  421. package/dist/huds-lib/hy-person-profile.entry.js +2 -0
  422. package/dist/huds-lib/hy-person-profile.entry.js.map +1 -0
  423. package/dist/huds-lib/hy-process_2.entry.js +2 -0
  424. package/dist/huds-lib/hy-process_2.entry.js.map +1 -0
  425. package/dist/huds-lib/hy-prominent-image.entry.js +2 -0
  426. package/dist/huds-lib/hy-prominent-image.entry.js.map +1 -0
  427. package/dist/huds-lib/hy-quote.entry.js +2 -0
  428. package/dist/huds-lib/hy-quote.entry.js.map +1 -0
  429. package/dist/huds-lib/hy-row.entry.js +9 -0
  430. package/dist/huds-lib/hy-row.entry.js.map +1 -0
  431. package/dist/huds-lib/hy-shortcuts.entry.js +2 -0
  432. package/dist/huds-lib/hy-shortcuts.entry.js.map +1 -0
  433. package/dist/huds-lib/hy-table-container.entry.js +2 -0
  434. package/dist/huds-lib/hy-table-container.entry.js.map +1 -0
  435. package/dist/huds-lib/hy-tabs_2.entry.js +2 -0
  436. package/dist/huds-lib/hy-tabs_2.entry.js.map +1 -0
  437. package/dist/huds-lib/hy-tag.entry.js +2 -0
  438. package/dist/huds-lib/hy-tag.entry.js.map +1 -0
  439. package/dist/huds-lib/hy-twitter-feed.entry.js +2 -0
  440. package/dist/huds-lib/hy-twitter-feed.entry.js.map +1 -0
  441. package/dist/huds-lib/hy-two-columns.entry.js +2 -0
  442. package/dist/huds-lib/hy-two-columns.entry.js.map +1 -0
  443. package/dist/huds-lib/hy-user-login-form.entry.js +2 -0
  444. package/dist/huds-lib/hy-user-login-form.entry.js.map +1 -0
  445. package/dist/huds-lib/hy-video.entry.js +2 -0
  446. package/dist/huds-lib/hy-video.entry.js.map +1 -0
  447. package/dist/huds-lib/index-ecc819ad.js +2 -0
  448. package/dist/huds-lib/index-ecc819ad.js.map +1 -0
  449. package/dist/huds-lib/{index-9920074a.js → index-f84f2a7d.js} +3 -3
  450. package/dist/huds-lib/index-f84f2a7d.js.map +1 -0
  451. package/dist/huds-lib/{utils-a4d55421.js → utils-a4ebfef1.js} +2 -2
  452. package/dist/types/stencil-public-runtime.d.ts +2 -0
  453. package/package.json +3 -3
  454. package/dist/cjs/color-box_91.cjs.entry.js +0 -7663
  455. package/dist/cjs/color-box_91.cjs.entry.js.map +0 -1
  456. package/dist/cjs/index-ca4e37f2.js.map +0 -1
  457. package/dist/esm/color-box_91.entry.js +0 -7569
  458. package/dist/esm/color-box_91.entry.js.map +0 -1
  459. package/dist/esm/index-9920074a.js.map +0 -1
  460. package/dist/huds-lib/color-box_91.entry.js +0 -88
  461. package/dist/huds-lib/color-box_91.entry.js.map +0 -1
  462. package/dist/huds-lib/index-9920074a.js.map +0 -1
  463. /package/dist/huds-lib/{globalScript-3c6fab71.js.map → globalScript-5a4b7abf.js.map} +0 -0
  464. /package/dist/huds-lib/{utils-a4d55421.js.map → utils-a4ebfef1.js.map} +0 -0
@@ -0,0 +1,156 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-f84f2a7d.js';
2
+ import { C as ColorVariant, S as SiteLogoSize } from './utils-a4ebfef1.js';
3
+ import { j as jsonParserWorker } from './globalScript-5a4b7abf.js';
4
+
5
+ const hyMenuMainGroupCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host{display:block}:host(.menu--main-group){-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row;flex-flow:row;margin-left:28px}@media (min-width: 75.0625rem){:host(.menu--main-group){margin-right:auto}}.menu--main-group__toggle{font-size:0.875rem;line-height:16px;font-weight:600;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:var(--grayscale-black);border:0 none;color:var(--grayscale-white);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row;flex-flow:row;font-family:var(--main-font-family);letter-spacing:-0.44px;margin:0 -4px;padding:0;position:relative}.menu--main-group__toggle:focus{outline:none}.menu--main-group__toggle:hover{cursor:pointer}.menu--main-group__toggle:hover span{color:var(--grayscale-medium)}.menu--main-group__toggle:hover svg{fill:var(--grayscale-medium)}@media (min-width: 60rem){.menu--main-group__toggle .toggle__caret svg{height:15.27px;width:3px}}@media (min-width: 75.0625rem){.menu--main-group__toggle .toggle__caret svg{height:14px;width:3px}}@media (min-width: 60rem){.menu--main-group__toggle span{margin-left:17px}}.menu--main-group__toggle.is-open:after{border-bottom:3px solid white;bottom:-10px;content:\" \";position:absolute;width:100%}@media (min-width: 60rem){.menu--main-group__toggle.is-open .toggle__close{height:15px;width:15px}.menu--main-group__toggle.is-open .toggle__close svg{height:15px;width:15px}}@media (min-width: 60rem){.menu--main-group__toggle.is-open span{margin-left:10px}}.menu--main-group__dropdown{display:none;visibility:hidden}.menu--main-group__dropdown.is-open{background-color:var(--grayscale-black);border-radius:0 0 5px 5px;-webkit-box-shadow:0 10px 10px rgba(0, 0, 0, 0.2);box-shadow:0 10px 10px rgba(0, 0, 0, 0.2);color:var(--grayscale-white);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--main-font-family);left:0;margin:0;padding:6px 0 20px;position:absolute;top:0;visibility:visible;width:100%;z-index:511}.menu--main-group__dropdown.is-open .list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column;flex-flow:column;justify-items:center;padding-top:14px;position:relative}.menu--main-group__dropdown.is-open .panel-toggle{background-color:transparent;border:none;position:absolute;right:0;top:0}@media (min-width: 60rem){.menu--main-group__dropdown.is-open .panel-toggle{padding:26px 32px}}.menu--main-group__dropdown.is-open .panel-toggle__label{font-size:1rem;line-height:20px;font-weight:700;color:var(--grayscale-white);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--main-font-family);letter-spacing:-0.5px;text-transform:uppercase}.menu--main-group__dropdown.is-open .panel-toggle__label__title{padding-right:12px}.menu--main-group__dropdown.is-open .panel-toggle__label:hover{cursor:pointer}.menu--main-group__dropdown.is-open .panel-toggle__label:hover span{color:var(--grayscale-medium)}.menu--main-group__dropdown.is-open .panel-toggle__label:hover svg{fill:var(--grayscale-medium)}.menu--main-group__dropdown.is-open .menu-main-link{font-size:1rem;line-height:20px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--main-font-family);-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-bottom:20px;text-decoration:none}@media (min-width: 75.0625rem){.menu--main-group__dropdown.is-open .menu-main-link{font-size:0.875rem;line-height:18px}}.menu--main-group__dropdown.is-open .menu-main-link:hover span{color:var(--grayscale-medium)}.menu--main-group__dropdown.is-open .menu-main-link:hover svg{fill:var(--grayscale-medium)}.menu--main-group__dropdown.is-open .menu--main-group__label{color:var(--grayscale-white);margin-left:12px}:host(.menu--main-group--mobile){-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row;flex-flow:row;position:relative}.menu--main-group__mobile-toggle{border:none;background:transparent;padding:15px 12px}.menu--main-group__mobile-toggle:hover{cursor:pointer}.menu--main-group__dropdown__top{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:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:23px}.menu--main-group__dropdown__close{border:none;background-color:transparent;padding:0;margin:0}.menu--main-group__dropdown__close:hover{cursor:pointer}.menu--main-group__logo-container .hy-site-logo__label.group{max-width:250px}.menu--main-group__dropdown__items{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.menu--main-group__dropdown__items .menu-main-link{font-size:0.9375rem;line-height:20px;background-color:var(--grayscale-dark-text);color:var(--grayscale-white);font-family:var(--main-font-family);letter-spacing:-0.5px;margin-bottom:8px;padding:14px 20px;text-decoration:none;width:100%}.menu--main-group__dropdown__items .menu-main-link:hover{text-decoration:underline}.menu--main-group__dropdown__donate{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;background-color:var(--grayscale-dark-text);position:fixed;bottom:0;margin-left:-20px;width:100%}.menu--main-group__dropdown__donate .hy-link__donate.group{font-size:1rem;line-height:16px;font-weight:600;display:-webkit-box;display:-ms-flexbox;display:flex;color:var(--grayscale-white);font-family:var(--main-font-family);margin:20px auto 16px auto;text-decoration:none}.menu--main-group__dropdown__donate .hy-link__donate.group .hy-link__donate__label{margin-left:6px}.menu--main-group__dropdown--mobile{-webkit-box-direction:normal;-webkit-box-orient:vertical;background-color:var(--grayscale-black);bottom:0px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;justify-items:space-between;max-width:400px;overflow:hidden;padding:0px;place-items:stretch;position:fixed;right:0px;top:0px;-webkit-transform:translateX(100%);transform:translateX(100%);-webkit-transition:all 0.3s ease 0s;transition:all 0.3s ease 0s;visibility:hidden;width:0px}.menu--main-group__dropdown--mobile.is-open{padding:50px 20px 20px;-webkit-transform:translateX(0px);transform:translateX(0px);-webkit-transition:-webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1);transition:-webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1);transition:transform 0.3s cubic-bezier(0, 0, 0.3, 1);transition:transform 0.3s cubic-bezier(0, 0, 0.3, 1), -webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1);visibility:visible;width:90%;z-index:101}.menu--main-group__dropdown--mobile.is-open::after{opacity:1;visibility:visible}";
6
+
7
+ let keys = {
8
+ enter: "Enter",
9
+ };
10
+ const HyMenuMainGroup = class {
11
+ constructor(hostRef) {
12
+ registerInstance(this, hostRef);
13
+ this.universityMainMenuToggled = createEvent(this, "universityMainMenuToggled", 7);
14
+ this.mobileMenuTopToggle = createEvent(this, "mobileMenuTopToggle", 7);
15
+ this.menuLabel = "University main menu";
16
+ this.menuLabelClose = "Close";
17
+ this.dataMainMenu = undefined;
18
+ this.isMobile = false;
19
+ this.logoUrl = undefined;
20
+ this.logoLabel = undefined;
21
+ this.siteLabel = undefined;
22
+ this.siteUrl = undefined;
23
+ this.donate = undefined;
24
+ this.isMenuOpen = false;
25
+ }
26
+ handleComponentClick(event) {
27
+ event.stopPropagation();
28
+ this.emitEvent();
29
+ this.isMenuOpen = !this.isMenuOpen;
30
+ if (this.isMenuOpen) {
31
+ this.adjustMainMenuPosition(event.target);
32
+ }
33
+ }
34
+ handleComponentKeyDown(event) {
35
+ event.stopPropagation();
36
+ const key = event.code;
37
+ let target = event.target;
38
+ if (key === "Escape" && this.isMenuOpen) {
39
+ this.isMenuOpen = false;
40
+ this.emitEvent();
41
+ }
42
+ if (target && [keys.enter].includes(key)) {
43
+ this.isMenuOpen = !this.isMenuOpen;
44
+ if (this.isMenuOpen) {
45
+ this.emitEvent();
46
+ this.adjustMainMenuPosition(target);
47
+ }
48
+ }
49
+ }
50
+ emitEvent() {
51
+ // Close other panels if they are open (lang menu, search, main menu, ..).
52
+ this.universityMainMenuToggled.emit();
53
+ this.mobileMenuTopToggle.emit();
54
+ }
55
+ adjustMainMenuPosition(target) {
56
+ let hyTopHeader = this.el.closest(".hy-site-header__content-top");
57
+ if (hyTopHeader && !hyTopHeader.hasAttribute("is-mobile")) {
58
+ let mainMenuToggle = target.shadowRoot.querySelector(".menu--main-group__toggle");
59
+ let mainMenuDropdown = target.shadowRoot.querySelector(".menu--main-group__dropdown");
60
+ let mainMenuList = target.shadowRoot.querySelector(".list");
61
+ if (mainMenuDropdown && mainMenuList && mainMenuToggle) {
62
+ let rectHeader = hyTopHeader.getBoundingClientRect();
63
+ let rectMenuToggle = mainMenuToggle.getBoundingClientRect();
64
+ mainMenuDropdown.style.top = `${rectHeader.height}px`;
65
+ mainMenuList.style.left = `${rectMenuToggle.left}px`;
66
+ }
67
+ let headerHeight = hyTopHeader.offsetHeight + 270;
68
+ this.showBackdropShadow("open", headerHeight);
69
+ }
70
+ }
71
+ showBackdropShadow(state = "close", top = 0) {
72
+ let hyHeader = this.el.closest(".hy-site-header");
73
+ let hyBackdropDiv = hyHeader.children[0];
74
+ if (hyBackdropDiv) {
75
+ if (state === "open") {
76
+ let me = window.outerHeight - top;
77
+ hyBackdropDiv.style.height = `${me}px`;
78
+ hyBackdropDiv.style.top = `${top}px`;
79
+ hyBackdropDiv.style.position = "absolute";
80
+ hyBackdropDiv.classList.add("is-active");
81
+ }
82
+ else {
83
+ hyBackdropDiv.removeAttribute("style");
84
+ hyBackdropDiv.classList.remove("is-active");
85
+ }
86
+ }
87
+ }
88
+ async componentWillLoad() {
89
+ this._dataMainMenu = await jsonParserWorker(this.dataMainMenu);
90
+ }
91
+ handleTopMenuClose(event) {
92
+ this.isMenuOpen = false;
93
+ this.mobileMenuTopToggle.emit();
94
+ this.showBackdropShadow();
95
+ event.stopPropagation();
96
+ }
97
+ // Close the University main menu if user clicks anywhere outside the component.
98
+ handleOutsideMenuClick(event) {
99
+ if (this.isMenuOpen) {
100
+ this.isMenuOpen = false;
101
+ this.handleTopMenuClose(event);
102
+ }
103
+ event.stopPropagation();
104
+ }
105
+ // CLose the University main menu if user opens the desktop menu panel.
106
+ desktopMenuToggled() {
107
+ this.isMenuOpen = false;
108
+ }
109
+ // CLose the University main menu if user opens the search panel
110
+ searchPanelToggled() {
111
+ this.isMenuOpen = false;
112
+ }
113
+ // CLose the University main menu if user opens the language menu panel.
114
+ languageMenuToggled() {
115
+ this.isMenuOpen = false;
116
+ }
117
+ render() {
118
+ const white = "var(--grayscale-white)";
119
+ const logoSizeGroup = this.isMobile ? SiteLogoSize.small : SiteLogoSize.small;
120
+ const logoColorGroup = ColorVariant.white;
121
+ return this.isMobile ? (h(Host, { class: {
122
+ "menu--main-group--mobile": true,
123
+ "menu--main-group--mobile__is-open": this.isMenuOpen,
124
+ } }, h("button", { "aria-label": this.menuLabel, class: {
125
+ "menu--main-group__mobile-toggle": true,
126
+ "is-open": this.isMenuOpen,
127
+ } }, h("hy-icon", { icon: "hy-icon-slim-hamburger-menu", size: 20, fill: white })), h("nav", { role: "navigation", "aria-hidden": this.isMenuOpen ? "false" : "true", class: {
128
+ "menu--main-group__dropdown--mobile": true,
129
+ "is-open": this.isMenuOpen,
130
+ } }, h("div", { class: "menu--main-group__dropdown__top" }, h("div", { class: "menu--main-group__logo-container", id: "menu-logo" }, h("hy-site-logo", { "is-group": true, size: logoSizeGroup, color: logoColorGroup, url: this.siteUrl, label: this.siteLabel })), h("button", { "aria-label": `Close ${this.menuLabel}`, class: "menu--main-group__dropdown__close", onClick: (e) => this.handleTopMenuClose(e) }, h("hy-icon", { icon: "hy-icon-remove", size: 20, fill: white }))), h("div", { class: "menu--main-group__dropdown__items" }, this._dataMainMenu.map((item) => {
131
+ return (h("a", { href: item.url, class: { "menu-main-link": true } }, h("span", { class: "menu--main-group__label" }, item.label)));
132
+ })), h("div", { class: "menu--main-group__dropdown__donate" }, this.donate &&
133
+ this.donate.map((i) => {
134
+ return (h("a", { class: "menu--secondary__item hy-link__donate group", href: i.url }, h("hy-icon", { icon: "hy-icon-heart-support", size: 14, fill: logoColorGroup }), h("span", { class: "hy-link__donate__label group" }, i.label)));
135
+ }))))) : (h(Host, { class: {
136
+ "menu--main-group": true,
137
+ "menu--main-group__is-open": this.isMenuOpen,
138
+ } }, h("button", { class: {
139
+ "menu--main-group__toggle": true,
140
+ "is-open": this.isMenuOpen,
141
+ }, "aria-expanded": this.isMenuOpen ? "true" : "false", "aria-haspopup": "menu" }, this.isMenuOpen ? (h("hy-icon", { class: "toggle__close", icon: "hy-icon-remove", size: 8, fill: white })) : (h("hy-icon", { class: "toggle__caret", icon: "hy-icon-slim-hamburger-menu", size: 8, fill: white })), h("span", null, this.menuLabel)), h("div", { class: {
142
+ "menu--main-group__dropdown": true,
143
+ "is-open": this.isMenuOpen,
144
+ } }, h("div", { class: "list" }, this._dataMainMenu.map((item) => {
145
+ return (h("a", { href: item.url, class: { "menu-main-link": true } }, h("span", { class: "heading-icon" }, h("hy-icon", { icon: "hy-icon-caret-right", size: 10, fill: white })), h("span", { class: "menu--main-group__label" }, item.label)));
146
+ })), h("button", { onClick: (e) => this.handleComponentClick(e), class: {
147
+ "panel-toggle": true,
148
+ }, "aria-label": "Close menu" }, h("span", { class: "panel-toggle__label" }, h("span", { class: "panel-toggle__label__title" }, this.menuLabelClose), h("hy-icon", { icon: "hy-icon-remove", size: 20, fill: ColorVariant.white }))))));
149
+ }
150
+ get el() { return getElement(this); }
151
+ };
152
+ HyMenuMainGroup.style = hyMenuMainGroupCss;
153
+
154
+ export { HyMenuMainGroup as hy_menu_main_group };
155
+
156
+ //# sourceMappingURL=hy-menu-main-group.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"hy-menu-main-group.entry.js","mappings":";;;;AAAA,MAAM,kBAAkB,GAAG,0yQAA0yQ;;ACer0Q,IAAI,IAAI,GAAG;EACT,KAAK,EAAE,OAAO;CACf,CAAC;MAOW,eAAe;;;;;qBAEE,sBAAsB;0BACjB,OAAO;;oBAEZ,KAAK;;;;;;sBAMF,KAAK;;EAQpC,oBAAoB,CAAC,KAAK;IACxB,KAAK,CAAC,eAAe,EAAE,CAAC;IACxB,IAAI,CAAC,SAAS,EAAE,CAAC;IAEjB,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;IACnC,IAAI,IAAI,CAAC,UAAU,EAAE;MACnB,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;KAC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,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,CAAC,KAAK,GAAI,CAClE,CACA,CACL,CACD,CACR,CAAC;GACH;;;;;;;","names":[],"sources":["./src/components/navigation/hy-menu-main-group/hy-menu-main-group.scss?tag=hy-menu-main-group&encapsulation=shadow","./src/components/navigation/hy-menu-main-group/hy-menu-main-group.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n:host(.menu--main-group) {\n align-items: center;\n display: flex;\n flex-flow: row;\n margin-left: 28px;\n\n @include breakpoint($extrawide) {\n margin-right: auto;\n }\n}\n\n.menu--main-group__toggle {\n @include font-size(14px, 16px);\n @include font-weight($semibold);\n align-items: center;\n background: var(--grayscale-black);\n border: 0 none;\n color: var(--grayscale-white);\n display: flex;\n flex-flow: row;\n font-family: var(--main-font-family);\n letter-spacing: -0.44px;\n margin: 0 -4px;\n padding: 0;\n position: relative;\n\n &:focus {\n outline: none;\n }\n\n &:hover {\n cursor: pointer;\n\n span {\n color: var(--grayscale-medium);\n }\n\n svg {\n fill: var(--grayscale-medium);\n }\n }\n\n .toggle__caret {\n svg {\n @include breakpoint($wide) {\n height: 15.27px;\n width: 3px;\n }\n @include breakpoint($extrawide) {\n height: 14px;\n width: 3px;\n }\n }\n }\n\n span {\n @include breakpoint($wide) {\n margin-left: 17px;\n }\n }\n\n &.is-open {\n &:after {\n border-bottom: 3px solid white;\n bottom: -10px;\n content: \" \";\n position: absolute;\n width: 100%;\n }\n\n .toggle__close {\n @include breakpoint($wide) {\n height: 15px;\n width: 15px;\n\n svg {\n height: 15px;\n width: 15px;\n }\n }\n }\n\n span {\n @include breakpoint($wide) {\n margin-left: 10px;\n }\n }\n }\n}\n\n.menu--main-group__dropdown {\n display: none;\n visibility: hidden;\n\n &.is-open {\n background-color: var(--grayscale-black);\n border-radius: 0 0 5px 5px;\n box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);\n color: var(--grayscale-white);\n display: flex;\n font-family: var(--main-font-family);\n left: 0;\n margin: 0;\n padding: 6px 0 20px;\n position: absolute;\n top: 0;\n visibility: visible;\n width: 100%;\n z-index: 511;\n\n .list {\n display: flex;\n flex-flow: column;\n justify-items: center;\n padding-top: 14px;\n position: relative;\n }\n\n .panel-toggle {\n background-color: transparent;\n border: none;\n position: absolute;\n right: 0;\n top: 0;\n\n @include breakpoint($wide) {\n padding: 26px 32px;\n }\n\n &__label {\n @include font-size(16px, 20px);\n @include font-weight($bold);\n color: var(--grayscale-white);\n display: flex;\n font-family: var(--main-font-family);\n letter-spacing: -0.5px;\n text-transform: uppercase;\n\n &__title {\n padding-right: 12px;\n }\n\n &:hover {\n cursor: pointer;\n span {\n color: var(--grayscale-medium);\n }\n svg {\n fill: var(--grayscale-medium);\n }\n }\n }\n }\n\n .menu-main-link {\n @include font-size(16px, 20px);\n align-items: center;\n display: flex;\n font-family: var(--main-font-family);\n flex-direction: row;\n margin-bottom: 20px;\n text-decoration: none;\n\n @include breakpoint($extrawide) {\n @include font-size(14px, 18px);\n }\n\n &:hover {\n span {\n color: var(--grayscale-medium);\n }\n svg {\n fill: var(--grayscale-medium);\n }\n }\n }\n .menu--main-group__label {\n color: var(--grayscale-white);\n margin-left: 12px;\n }\n }\n}\n\n:host(.menu--main-group--mobile) {\n align-items: center;\n display: flex;\n flex-flow: row;\n position: relative;\n}\n\n.menu--main-group__mobile-toggle {\n border: none;\n background: transparent;\n padding: 15px 12px;\n\n &:hover {\n cursor: pointer;\n }\n}\n\n.menu--main-group__dropdown__top {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n margin-bottom: 23px;\n}\n\n.menu--main-group__dropdown__close {\n border: none;\n background-color: transparent;\n padding: 0;\n margin: 0;\n\n &:hover {\n cursor: pointer;\n }\n}\n\n.menu--main-group__logo-container .hy-site-logo__label.group {\n max-width: 250px;\n}\n\n.menu--main-group__dropdown__items {\n display: flex;\n flex-direction: column;\n\n .menu-main-link {\n @include font-size(15px, 20px);\n\n background-color: var(--grayscale-dark-text);\n color: var(--grayscale-white);\n font-family: var(--main-font-family);\n letter-spacing: -0.5px;\n margin-bottom: 8px;\n padding: 14px 20px;\n text-decoration: none;\n width: 100%;\n\n &:hover {\n text-decoration: underline;\n }\n }\n}\n\n.menu--main-group__dropdown__donate {\n display: flex;\n flex-direction: row;\n justify-content: center;\n background-color: var(--grayscale-dark-text);\n position: fixed;\n bottom: 0;\n margin-left: -20px;\n width: 100%;\n\n .hy-link__donate.group {\n @include font-size(16px, 16px);\n @include font-weight($semibold);\n\n display: flex;\n color: var(--grayscale-white);\n font-family: var(--main-font-family);\n margin: 20px auto 16px auto;\n text-decoration: none;\n\n .hy-link__donate__label {\n margin-left: 6px;\n }\n }\n}\n\n.menu--main-group__dropdown--mobile {\n -webkit-box-direction: normal;\n -webkit-box-orient: vertical;\n background-color: var(--grayscale-black);\n bottom: 0px;\n display: flex;\n flex-direction: column;\n justify-items: space-between;\n max-width: 400px;\n overflow: hidden;\n padding: 0px;\n place-items: stretch;\n position: fixed;\n right: 0px;\n top: 0px;\n transform: translateX(100%);\n transition: all 0.3s ease 0s;\n visibility: hidden;\n width: 0px;\n\n &.is-open {\n padding: 50px 20px 20px;\n transform: translateX(0px);\n transition: transform 0.3s cubic-bezier(0, 0, 0.3, 1);\n visibility: visible;\n width: 90%;\n z-index: 101;\n\n &::after {\n opacity: 1;\n visibility: visible;\n }\n }\n}\n","export interface MainMenu {\n label: string;\n url: string;\n menuLinkId: string;\n}\n\nexport interface DonateLink {\n url: string;\n label: string;\n}\n\nimport {Component, Host, h, Element, Prop, State, Listen, Event, EventEmitter} from \"@stencil/core\";\nimport {ColorVariant, SiteLogoSize} from \"../../../utils/utils\";\nimport {jsonParserWorker} from \"../../../global/globalScript\";\n\nlet keys = {\n enter: \"Enter\",\n};\n\n@Component({\n tag: \"hy-menu-main-group\",\n styleUrl: \"hy-menu-main-group.scss\",\n shadow: true,\n})\nexport class HyMenuMainGroup {\n @Element() el: HTMLElement;\n @Prop() menuLabel: string = \"University main menu\";\n @Prop() menuLabelClose: string = \"Close\";\n @Prop() dataMainMenu: MainMenu[] | string;\n @Prop() isMobile: boolean = false;\n @Prop() logoUrl?: string;\n @Prop() logoLabel?: string;\n @Prop() siteLabel?: string;\n @Prop() siteUrl?: string;\n @Prop() donate: DonateLink[];\n @State() isMenuOpen: boolean = false;\n\n @Event() universityMainMenuToggled: EventEmitter;\n @Event() mobileMenuTopToggle: EventEmitter;\n\n private _dataMainMenu: MainMenu[];\n\n @Listen(\"click\", {capture: true})\n handleComponentClick(event) {\n event.stopPropagation();\n this.emitEvent();\n\n this.isMenuOpen = !this.isMenuOpen;\n if (this.isMenuOpen) {\n this.adjustMainMenuPosition(event.target);\n }\n }\n\n @Listen(\"keydown\")\n handleComponentKeyDown(event: KeyboardEvent) {\n event.stopPropagation();\n const key = event.code;\n let target = event.target as HTMLButtonElement;\n\n if (key === \"Escape\" && this.isMenuOpen) {\n this.isMenuOpen = false;\n this.emitEvent();\n }\n\n if (target && [keys.enter].includes(key)) {\n this.isMenuOpen = !this.isMenuOpen;\n\n if (this.isMenuOpen) {\n this.emitEvent();\n this.adjustMainMenuPosition(target);\n }\n }\n }\n\n emitEvent() {\n // Close other panels if they are open (lang menu, search, main menu, ..).\n this.universityMainMenuToggled.emit();\n this.mobileMenuTopToggle.emit();\n }\n\n adjustMainMenuPosition(target) {\n let hyTopHeader = this.el.closest(\".hy-site-header__content-top\") as HTMLElement;\n\n if (hyTopHeader && !hyTopHeader.hasAttribute(\"is-mobile\")) {\n let mainMenuToggle = target.shadowRoot.querySelector(\".menu--main-group__toggle\") as HTMLElement;\n let mainMenuDropdown = target.shadowRoot.querySelector(\".menu--main-group__dropdown\") as HTMLElement;\n let mainMenuList = target.shadowRoot.querySelector(\".list\") as HTMLElement;\n if (mainMenuDropdown && mainMenuList && mainMenuToggle) {\n let rectHeader = hyTopHeader.getBoundingClientRect();\n let rectMenuToggle = mainMenuToggle.getBoundingClientRect();\n mainMenuDropdown.style.top = `${rectHeader.height}px`;\n\n mainMenuList.style.left = `${rectMenuToggle.left}px`;\n }\n let headerHeight = hyTopHeader.offsetHeight + 270;\n\n this.showBackdropShadow(\"open\", headerHeight);\n }\n }\n\n showBackdropShadow(state = \"close\", top = 0) {\n let hyHeader = this.el.closest(\".hy-site-header\") as HTMLElement;\n let hyBackdropDiv = hyHeader.children[0] as HTMLElement;\n\n if (hyBackdropDiv) {\n if (state === \"open\") {\n let me = window.outerHeight - top;\n hyBackdropDiv.style.height = `${me}px`;\n hyBackdropDiv.style.top = `${top}px`;\n hyBackdropDiv.style.position = \"absolute\";\n hyBackdropDiv.classList.add(\"is-active\");\n } else {\n hyBackdropDiv.removeAttribute(\"style\");\n hyBackdropDiv.classList.remove(\"is-active\");\n }\n }\n }\n\n async componentWillLoad() {\n this._dataMainMenu = await jsonParserWorker(this.dataMainMenu);\n }\n\n handleTopMenuClose(event) {\n this.isMenuOpen = false;\n this.mobileMenuTopToggle.emit();\n this.showBackdropShadow();\n event.stopPropagation();\n }\n\n // Close the University main menu if user clicks anywhere outside the component.\n @Listen(\"click\", {target: \"window\"})\n @Listen(\"headerScrollDown\", {target: \"window\"})\n @Listen(\"headerScrollUp\", {target: \"window\"})\n handleOutsideMenuClick(event) {\n if (this.isMenuOpen) {\n this.isMenuOpen = false;\n this.handleTopMenuClose(event);\n }\n event.stopPropagation();\n }\n\n // CLose the University main menu if user opens the desktop menu panel.\n @Listen(\"menuDesktopToggled\", {target: \"document\"})\n desktopMenuToggled() {\n this.isMenuOpen = false;\n }\n\n // CLose the University main menu if user opens the search panel\n @Listen(\"searchPanelToggled\", {target: \"document\"})\n searchPanelToggled() {\n this.isMenuOpen = false;\n }\n\n // CLose the University main menu if user opens the language menu panel.\n @Listen(\"menuLanguageToggled\", {target: \"document\"})\n languageMenuToggled() {\n this.isMenuOpen = false;\n }\n\n render() {\n const white = \"var(--grayscale-white)\";\n const logoSizeGroup = this.isMobile ? SiteLogoSize.small : SiteLogoSize.small;\n const logoColorGroup = ColorVariant.white;\n\n return this.isMobile ? (\n <Host\n class={{\n \"menu--main-group--mobile\": true,\n \"menu--main-group--mobile__is-open\": this.isMenuOpen,\n }}\n >\n <button\n aria-label={this.menuLabel}\n class={{\n \"menu--main-group__mobile-toggle\": true,\n \"is-open\": this.isMenuOpen,\n }}\n >\n <hy-icon icon={\"hy-icon-slim-hamburger-menu\"} size={20} fill={white} />\n </button>\n <nav\n role=\"navigation\"\n aria-hidden={this.isMenuOpen ? \"false\" : \"true\"}\n class={{\n \"menu--main-group__dropdown--mobile\": true,\n \"is-open\": this.isMenuOpen,\n }}\n >\n <div class=\"menu--main-group__dropdown__top\">\n <div class={\"menu--main-group__logo-container\"} id={\"menu-logo\"}>\n <hy-site-logo\n is-group={true}\n size={logoSizeGroup}\n color={logoColorGroup}\n url={this.siteUrl}\n label={this.siteLabel}\n />\n </div>\n <button\n aria-label={`Close ${this.menuLabel}`}\n class=\"menu--main-group__dropdown__close\"\n onClick={(e) => this.handleTopMenuClose(e)}\n >\n <hy-icon icon={\"hy-icon-remove\"} size={20} fill={white} />\n </button>\n </div>\n <div class=\"menu--main-group__dropdown__items\">\n {this._dataMainMenu.map((item) => {\n return (\n <a href={item.url} class={{\"menu-main-link\": true}}>\n <span class={\"menu--main-group__label\"}>{item.label}</span>\n </a>\n );\n })}\n </div>\n <div class=\"menu--main-group__dropdown__donate\">\n {this.donate &&\n this.donate.map((i) => {\n return (\n <a class={\"menu--secondary__item hy-link__donate group\"} href={i.url}>\n <hy-icon icon={\"hy-icon-heart-support\"} size={14} fill={logoColorGroup} />\n <span class={\"hy-link__donate__label group\"}>{i.label}</span>\n </a>\n );\n })}\n </div>\n </nav>\n </Host>\n ) : (\n <Host\n class={{\n \"menu--main-group\": true,\n \"menu--main-group__is-open\": this.isMenuOpen,\n }}\n >\n <button\n class={{\n \"menu--main-group__toggle\": true,\n \"is-open\": this.isMenuOpen,\n }}\n aria-expanded={this.isMenuOpen ? \"true\" : \"false\"}\n aria-haspopup=\"menu\"\n //aria-label={this.isMenuOpen ? this._labels['close'] : this._labels['open']}\n >\n {this.isMenuOpen ? (\n <hy-icon class={\"toggle__close\"} icon={\"hy-icon-remove\"} size={8} fill={white} />\n ) : (\n <hy-icon class={\"toggle__caret\"} icon={\"hy-icon-slim-hamburger-menu\"} size={8} fill={white} />\n )}\n <span>{this.menuLabel}</span>\n </button>\n <div\n class={{\n \"menu--main-group__dropdown\": true,\n \"is-open\": this.isMenuOpen,\n }}\n >\n <div class=\"list\">\n {this._dataMainMenu.map((item) => {\n return (\n <a href={item.url} class={{\"menu-main-link\": true}}>\n <span class=\"heading-icon\">\n <hy-icon icon={\"hy-icon-caret-right\"} size={10} fill={white} />\n </span>\n <span class={\"menu--main-group__label\"}>{item.label}</span>\n </a>\n );\n })}\n </div>\n <button\n onClick={(e) => this.handleComponentClick(e)}\n class={{\n \"panel-toggle\": true,\n }}\n aria-label=\"Close menu\"\n >\n <span class=\"panel-toggle__label\">\n <span class=\"panel-toggle__label__title\">{this.menuLabelClose}</span>\n <hy-icon icon={\"hy-icon-remove\"} size={20} fill={ColorVariant.white} />\n </span>\n </button>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,77 @@
1
+ import { r as registerInstance, h, H as Host } from './index-f84f2a7d.js';
2
+ import { h as CtaLinkVariants } from './utils-a4ebfef1.js';
3
+
4
+ const hyOpeningHoursCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host{display:block}.hy-open-hours--container{font-family:var(--main-font-family);max-width:50rem;overflow:hidden}.hy-open-hours--container--exceptional{max-width:100%}.open-hours__title{text-transform:uppercase;margin-bottom:0.75rem}.open-hours__date-change{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--grayscale-background-box);color:var(--brand-main);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:justify;-ms-flex-pack:justify;justify-content:space-between}.open-hours__date-change--title{font-size:1.25rem;line-height:24px;font-weight:700;color:var(--grayscale-black);font-family:var(--main-font-family);letter-spacing:-0.5px;text-align:center;text-transform:uppercase}.open-hours__date-change .open-hours__prev-date,.open-hours__date-change .open-hours__next-date{background:none;border:0;color:var(--brand-main);display:-webkit-box;display:-ms-flexbox;display:flex;height:44px;outline:5px solid var(--grayscale-white);position:relative;width:44px}.open-hours__date-change .open-hours__prev-date:hover,.open-hours__date-change .open-hours__next-date:hover{background-color:var(--hover-gray);color:var(--brand-main-active);cursor:pointer}.open-hours__date-change .open-hours__prev-date:focus,.open-hours__date-change .open-hours__next-date:focus{background-color:var(--hover-gray);color:var(--brand-main-active)}.open-hours__date-change .open-hours__prev-date:disabled,.open-hours__date-change .open-hours__next-date:disabled{cursor:none}.open-hours__date-change .open-hours__prev-date hy-icon,.open-hours__date-change .open-hours__next-date hy-icon{color:var(--link-blue);left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.open-hours__date-change .open-hours__prev-date svg,.open-hours__date-change .open-hours__next-date svg{fill:currentColor;height:20px;width:20px}.open-hours__date-change .open-hours__prev-date{border-right:1px solid var(--link-blue)}.open-hours__date-change .open-hours__next-date{border-left:1px solid var(--link-blue)}.open-hours__content__top{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;font-size:0.9rem;font-weight:700;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:0.5rem 0}.open-hours__content__top-label{margin:0.5rem 0 0.5rem 0;text-align:left;width:33.3333333333vw;word-break:break-word}.open-hours__content__top-label:first-child(){margin-right:1rem}.open-hours__content__top-label.luomus{width:50vw}.open-hours__content__top-label.building.luomus{text-align:center}.open-hours__content{position:relative}.open-hours__content.open-hours__loading:after{-webkit-animation-duration:1s;animation-duration:1s;font-size:3.2rem;position:absolute;left:45%;top:35%;z-index:2}.open-hours__content.slide-left{-webkit-animation:slide-left 0.2s ease-in-out both;animation:slide-left 0.2s ease-in-out both}.open-hours__content.slide-left-reverse{-webkit-animation:slide-left-reverse 0.2s ease-in-out reverse both;animation:slide-left-reverse 0.2s ease-in-out reverse both}.open-hours__content.slide-right{-webkit-animation:slide-right 0.2s ease-in-out both;animation:slide-right 0.2s ease-in-out both}.open-hours__content.slide-right-reverse{-webkit-animation:slide-right-reverse 0.2s ease-in-out reverse both;animation:slide-right-reverse 0.2s ease-in-out reverse both}.open-hours__links{margin:1.5rem 0 1rem 0}.open-hours__links .open-hours__link .hy-cta-link{width:100% !important;-webkit-box-pack:start !important;-ms-flex-pack:start !important;justify-content:flex-start !important}.open-hours__links .open-hours__link .hy-cta-link .text{width:100% !important}@-webkit-keyframes slide-right{0%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}100%{-webkit-transform:translateX(200px);transform:translateX(200px);opacity:0}}@keyframes slide-right{0%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}100%{-webkit-transform:translateX(200px);transform:translateX(200px);opacity:0}}@-webkit-keyframes slide-right-reverse{0%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}100%{-webkit-transform:translateX(200px);transform:translateX(200px);opacity:0}}@keyframes slide-right-reverse{0%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}100%{-webkit-transform:translateX(200px);transform:translateX(200px);opacity:0}}@-webkit-keyframes slide-left{0%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}100%{-webkit-transform:translateX(-200px);transform:translateX(-200px);opacity:0}}@keyframes slide-left{0%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}100%{-webkit-transform:translateX(-200px);transform:translateX(-200px);opacity:0}}@-webkit-keyframes slide-left-reverse{0%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}100%{-webkit-transform:translateX(-200px);transform:translateX(-200px);opacity:0}}@keyframes slide-left-reverse{0%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}100%{-webkit-transform:translateX(-200px);transform:translateX(-200px);opacity:0}}";
5
+
6
+ const HyOpeningHours = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ this.blockTitle = null;
10
+ this.language = undefined;
11
+ this.venueType = "libraries";
12
+ this.blockId = undefined;
13
+ this.nextLabel = undefined;
14
+ this.prevLabel = undefined;
15
+ this.listLabel = undefined;
16
+ this.buildingLabel = undefined;
17
+ this.customerServiceLabel = undefined;
18
+ this.date = null;
19
+ this.dateTitle = null;
20
+ this.dateType = "day";
21
+ this.multiple = false;
22
+ this.customLinkTitle = null;
23
+ this.customLink = null;
24
+ this.exceptional = false;
25
+ }
26
+ render() {
27
+ const containerClasses = [
28
+ "hy-open-hours--container",
29
+ this.exceptional ? "hy-open-hours--container--exceptional" : "",
30
+ ].join(" ");
31
+ const listClasses = ["open-hours__content__top-label", this.venueType].join(" ");
32
+ const buildingClasses = ["open-hours__content__top-label building", this.venueType].join(" ");
33
+ return (h(Host, null, h("div", { class: containerClasses, "data-lang": this.language, "data-id": this.blockId, "data-date": this.date, "data-type": this.dateType, "data-multiple": this.multiple }, this.blockTitle && h("h3", { class: "open-hours__title" }, this.blockTitle), !this.exceptional && (h("div", { class: "open-hours__date-change" }, h("button", { "aria-label": this.prevLabel, class: "icon--arrow-left open-hours__prev-date" }, h("hy-icon", { icon: "hy-icon-caret-left", size: 18 })), h("span", { class: "open-hours__date-change--title" }, this.dateTitle), h("button", { "aria-label": this.nextLabel, class: "icon--arrow-right open-hours__next-date" }, h("hy-icon", { icon: "hy-icon-caret-right", size: 18 })))), h("div", { class: "open-hours__content__top" }, h("span", { class: listClasses }, this.listLabel), h("span", { class: buildingClasses }, this.buildingLabel), this.customerServiceLabel && h("span", { class: listClasses }, this.customerServiceLabel)), h("div", { class: "open-hours__content" }, h("slot", null)), this.customLink && (h("div", { class: "open-hours__links" }, h("hy-cta-link", { "full-width": true, "link-content": this.customLinkTitle, "sc-label": this.customLinkTitle, url: this.customLink, variant: CtaLinkVariants.linkList })))), h("hy-box", { mb: "1.75, 1.75, 2, 2.5" })));
34
+ }
35
+ };
36
+ HyOpeningHours.style = hyOpeningHoursCss;
37
+
38
+ const hyOpeningHoursContentCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host{display:block}.open-hours__list-item{border-top:1px solid var(--grayscale-medium);color:var(--grayscale-dark-text);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;font-size:0.875rem;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:0.5rem 0;font-family:var(--main-font-family);text-align:start}.open-hours__list-item--today{background-color:var(--grayscale-light)}.open-hours__list-item--today span:first-child{margin-left:4px;padding-left:4px;margin-right:-8px;font-weight:bold;border-left:2px solid var(--grayscale-black)}.open-hours__list-item>span:not(.luomus){text-align:left;width:33.3333333333vw}.open-hours__list-item>span.luomus{width:50vw}.open-hours__list-item--date{margin-right:1rem}.open-hours__list-item--hours{margin-right:0.2rem}.open-hours__list-item--hours.luomus{text-align:center}";
39
+
40
+ const HyOpeningHoursContent = class {
41
+ constructor(hostRef) {
42
+ registerInstance(this, hostRef);
43
+ this.multiple = false;
44
+ this.selfServiceLabel = null;
45
+ this.venueType = "libraries";
46
+ this.dataItems = undefined;
47
+ }
48
+ dataItemsWatcher(data) {
49
+ this._dataItems = typeof data === "string" ? JSON.parse(data) : data;
50
+ }
51
+ componentWillLoad() {
52
+ this.dataItemsWatcher(this.dataItems);
53
+ }
54
+ render() {
55
+ return (h(Host, null, this._dataItems.map((item) => {
56
+ if (!item.service)
57
+ return;
58
+ const itemClasses = ["open-hours__list-item", item.today ? "open-hours__list-item--today" : ""].join(" ");
59
+ return (h("div", { class: itemClasses }, h("span", { class: "open-hours__list-item--office" }, item.today ? item.today : item.dateLibrary), h("span", { class: "open-hours__list-item--hours" }, item.building), h("span", { class: "open-hours__list-item--service" }, item.service)));
60
+ }), this.selfServiceLabel && (h("div", { class: "open-hours__content__top" }, h("span", { class: "open-hours__content__top-label" }, this.selfServiceLabel))), this._dataItems.map((item) => {
61
+ if (item.service)
62
+ return;
63
+ const itemClasses = ["open-hours__list-item", item.today ? "open-hours__list-item--today" : ""].join(" ");
64
+ const hoursClasses = ["open-hours__list-item--hours", this.venueType].join(" ");
65
+ const officeClasses = ["open-hours__list-item--office", this.venueType].join(" ");
66
+ return (h("div", { class: itemClasses }, h("span", { class: officeClasses }, item.today ? item.today : item.dateLibrary), h("span", { class: hoursClasses }, item.building), this.venueType !== "luomus" && h("span", { class: "open-hours__list-item--service" }, "-")));
67
+ })));
68
+ }
69
+ static get watchers() { return {
70
+ "dataItems": ["dataItemsWatcher"]
71
+ }; }
72
+ };
73
+ HyOpeningHoursContent.style = hyOpeningHoursContentCss;
74
+
75
+ export { HyOpeningHours as hy_opening_hours, HyOpeningHoursContent as hy_opening_hours_content };
76
+
77
+ //# sourceMappingURL=hy-opening-hours_2.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"hy-opening-hours.hy-opening-hours-content.entry.js","mappings":";;;AAAA,MAAM,iBAAiB,GAAG,21MAA21M;;MCQx2M,cAAc;;;sBACI,IAAI;;qBAEL,WAAW;;;;;;;gBAOhB,IAAI;qBACC,IAAI;oBACL,KAAK;oBACJ,KAAK;2BACC,IAAI;sBACT,IAAI;uBACF,KAAK;;EAEpC,MAAM;IACJ,MAAM,gBAAgB,GAAG;MACvB,0BAA0B;MAC1B,IAAI,CAAC,WAAW,GAAG,uCAAuC,GAAG,EAAE;KAChE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAEZ,MAAM,WAAW,GAAG,CAAC,gCAAgC,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CA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zB,MAAM,WAAW,GAAG,CAAC,uBAAuB,EAAE,IAAI,CAAC,KAAK,GAAG,8BAA8B,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;MAE1G,MAAM,YAAY,GAAG,CAAC,8BAA8B,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;MAChF,MAAM,aAAa,GAAG,CAAC,+BAA+B,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;MAClF,QACE,WAAK,KAAK,EAAE,WAAW,IACrB,YAAM,KAAK,EAAE,aAAa,IAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,WAAW,CAAQ,EAC/E,YAAM,KAAK,EAAE,YAAY,IAAG,IAAI,CAAC,QAAQ,CAAQ,EAChD,IAAI,CAAC,SAAS,KAAK,QAAQ,IAAI,YAAM,KAAK,EAAC,gCAAgC,QAAS,CACjF,EACN;KACH,CAAC,CACG,EACP;GACH;;;;;;;;;","names":[],"sources":["./src/components/hy-opening-hours/hy-opening-hours.scss?tag=hy-opening-hours","./src/components/hy-opening-hours/hy-opening-hours.tsx","./src/components/hy-opening-hours-content/hy-opening-hours-content.scss?tag=hy-opening-hours-content","./src/components/hy-opening-hours-content/hy-opening-hours-content.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.hy-open-hours--container {\n font-family: var(--main-font-family);\n max-width: 50rem;\n overflow: hidden;\n\n &--exceptional {\n max-width: 100%;\n }\n}\n\n.open-hours__title {\n text-transform: uppercase;\n margin-bottom: .75rem;\n}\n\n.open-hours__date-change {\n align-items: center;\n background-color: var(--grayscale-background-box);\n color: var(--brand-main);\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n\n &--title {\n @include font-size(20px, 24px);\n @include font-weight($bold);\n\n color: var(--grayscale-black);\n font-family: var(--main-font-family);\n letter-spacing: -0.5px;\n text-align: center;\n text-transform: uppercase;\n }\n\n .open-hours__prev-date,\n .open-hours__next-date {\n background: none;\n border: 0;\n color: var(--brand-main);\n display: flex;\n height: 44px;\n outline: 5px solid var(--grayscale-white);\n position: relative;\n width: 44px;\n\n &:hover {\n background-color: var(--hover-gray);\n color: var(--brand-main-active);\n cursor: pointer;\n }\n\n &:focus {\n background-color: var(--hover-gray);\n color: var(--brand-main-active);\n }\n\n &:disabled {\n cursor: none;\n }\n\n hy-icon {\n color: var(--link-blue);\n left: 50%;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n\n svg {\n fill: currentColor;\n height: 20px;\n width: 20px;\n }\n }\n .open-hours__prev-date {\n border-right: 1px solid var(--link-blue);\n }\n .open-hours__next-date {\n border-left: 1px solid var(--link-blue);\n }\n}\n\n.open-hours__content__top {\n display: flex;\n flex-direction: row;\n font-size: 0.9rem;\n font-weight: 700;\n justify-content: space-between;\n padding: 0.5rem 0;\n}\n\n.open-hours__content__top-label {\n margin: 0.5rem 0 0.5rem 0;\n text-align: left;\n width: calc(100vw / 3);\n word-break: break-word;\n\n &:first-child() {\n margin-right: 1rem;\n }\n}\n\n.open-hours__content__top-label.luomus {\n width: calc(100vw / 2);\n}\n.open-hours__content__top-label.building.luomus {\n text-align: center;\n}\n\n.open-hours__content {\n position: relative;\n\n &.open-hours__loading {\n &:after {\n animation-duration: 1s;\n font-size: 3.2rem;\n position: absolute;\n left: 45%;\n top: 35%;\n z-index: 2;\n }\n }\n\n $animation-duraction: 0.2s;\n\n &.slide-left {\n -webkit-animation: slide-left $animation-duraction ease-in-out both;\n animation: slide-left $animation-duraction ease-in-out both;\n }\n\n &.slide-left-reverse {\n -webkit-animation: slide-left-reverse $animation-duraction ease-in-out reverse both;\n animation: slide-left-reverse $animation-duraction ease-in-out reverse both;\n }\n\n &.slide-right {\n -webkit-animation: slide-right $animation-duraction ease-in-out both;\n animation: slide-right $animation-duraction ease-in-out both;\n }\n\n &.slide-right-reverse {\n -webkit-animation: slide-right-reverse $animation-duraction ease-in-out reverse both;\n animation: slide-right-reverse $animation-duraction ease-in-out reverse both;\n }\n}\n\n.open-hours__links {\n margin: 1.5rem 0 1rem 0;\n\n .open-hours__link .hy-cta-link {\n width: 100% !important;\n justify-content: flex-start !important;\n\n .text {\n width: 100% !important;\n }\n }\n}\n\n@-webkit-keyframes slide-right {\n 0% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n opacity: 1;\n }\n 100% {\n -webkit-transform: translateX(200px);\n transform: translateX(200px);\n opacity: 0;\n }\n}\n@keyframes slide-right {\n 0% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n opacity: 1;\n }\n 100% {\n -webkit-transform: translateX(200px);\n transform: translateX(200px);\n opacity: 0;\n }\n}\n\n@-webkit-keyframes slide-right-reverse {\n 0% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n opacity: 1;\n }\n 100% {\n -webkit-transform: translateX(200px);\n transform: translateX(200px);\n opacity: 0;\n }\n}\n@keyframes slide-right-reverse {\n 0% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n opacity: 1;\n }\n 100% {\n -webkit-transform: translateX(200px);\n transform: translateX(200px);\n opacity: 0;\n }\n}\n\n@-webkit-keyframes slide-left {\n 0% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n opacity: 1;\n }\n 100% {\n -webkit-transform: translateX(-200px);\n transform: translateX(-200px);\n opacity: 0;\n }\n}\n@keyframes slide-left {\n 0% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n opacity: 1;\n }\n 100% {\n -webkit-transform: translateX(-200px);\n transform: translateX(-200px);\n opacity: 0;\n }\n}\n\n@-webkit-keyframes slide-left-reverse {\n 0% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n opacity: 1;\n }\n 100% {\n -webkit-transform: translateX(-200px);\n transform: translateX(-200px);\n opacity: 0;\n }\n}\n@keyframes slide-left-reverse {\n 0% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n opacity: 1;\n }\n 100% {\n -webkit-transform: translateX(-200px);\n transform: translateX(-200px);\n opacity: 0;\n }\n}\n","import {Component, Host, h, Prop} from \"@stencil/core\";\nimport {CtaLinkVariants} from \"../../utils/utils\";\n\n@Component({\n tag: \"hy-opening-hours\",\n styleUrl: \"hy-opening-hours.scss\",\n shadow: false,\n})\nexport class HyOpeningHours {\n @Prop() blockTitle: string = null;\n @Prop() language?: string;\n @Prop() venueType: string = \"libraries\";\n @Prop() blockId?: string;\n @Prop() nextLabel?: string;\n @Prop() prevLabel?: string;\n @Prop() listLabel?: string;\n @Prop() buildingLabel?: string;\n @Prop() customerServiceLabel?: string;\n @Prop() date: string = null;\n @Prop() dateTitle: string = null;\n @Prop() dateType: string = \"day\";\n @Prop() multiple: boolean = false;\n @Prop() customLinkTitle: string = null;\n @Prop() customLink: string = null;\n @Prop() exceptional: boolean = false;\n\n render() {\n const containerClasses = [\n \"hy-open-hours--container\",\n this.exceptional ? \"hy-open-hours--container--exceptional\" : \"\",\n ].join(\" \");\n\n const listClasses = [\"open-hours__content__top-label\", this.venueType].join(\" \");\n const buildingClasses = [\"open-hours__content__top-label building\", this.venueType].join(\" \");\n return (\n <Host>\n <div\n class={containerClasses}\n data-lang={this.language}\n data-id={this.blockId}\n data-date={this.date}\n data-type={this.dateType}\n data-multiple={this.multiple}\n >\n {this.blockTitle && <h3 class=\"open-hours__title\">{this.blockTitle}</h3>}\n {!this.exceptional && (\n <div class=\"open-hours__date-change\">\n <button aria-label={this.prevLabel} class=\"icon--arrow-left open-hours__prev-date\">\n <hy-icon icon={\"hy-icon-caret-left\"} size={18} />\n </button>\n <span class=\"open-hours__date-change--title\">{this.dateTitle}</span>\n <button aria-label={this.nextLabel} class=\"icon--arrow-right open-hours__next-date\">\n <hy-icon icon={\"hy-icon-caret-right\"} size={18} />\n </button>\n </div>\n )}\n <div class=\"open-hours__content__top\">\n <span class={listClasses}>{this.listLabel}</span>\n <span class={buildingClasses}>{this.buildingLabel}</span>\n {this.customerServiceLabel && <span class={listClasses}>{this.customerServiceLabel}</span>}\n </div>\n <div class=\"open-hours__content\">\n <slot />\n </div>\n {this.customLink && (\n <div class=\"open-hours__links\">\n <hy-cta-link\n full-width\n link-content={this.customLinkTitle}\n sc-label={this.customLinkTitle}\n url={this.customLink}\n variant={CtaLinkVariants.linkList}\n >\n </hy-cta-link>\n </div>\n )}\n </div>\n <hy-box mb=\"1.75, 1.75, 2, 2.5\" />\n </Host>\n );\n }\n}\n",":host {\n display: block;\n}\n\n.open-hours__list-item {\n border-top: 1px solid var(--grayscale-medium);\n color: var(--grayscale-dark-text);\n display: flex;\n flex-direction: row;\n font-size: 0.875rem;\n justify-content: space-between;\n padding: 0.5rem 0;\n font-family: var(--main-font-family);\n text-align: start;\n\n &--today {\n background-color: var(--grayscale-light);\n\n span:first-child {\n margin-left: 4px;\n padding-left: 4px;\n margin-right: -8px;\n font-weight: bold;\n border-left: 2px solid var(--grayscale-black);\n }\n }\n\n & > span:not(.luomus) {\n text-align: left;\n width: calc(100vw / 3);\n }\n & > span.luomus {\n width: calc(100vw / 2);\n }\n\n &--date {\n margin-right: 1rem;\n }\n\n &--hours {\n margin-right: 0.2rem;\n }\n\n &--hours.luomus {\n text-align: center;\n }\n}\n","export interface items {\n dateLibrary: string;\n building: string;\n service: string;\n today: string;\n}\n\nimport {Component, Host, h, Prop, Watch} from \"@stencil/core\";\n\n@Component({\n tag: \"hy-opening-hours-content\",\n styleUrl: \"hy-opening-hours-content.scss\",\n shadow: false,\n})\nexport class HyOpeningHoursContent {\n @Prop() multiple: boolean = false;\n @Prop() selfServiceLabel: string = null;\n @Prop() venueType: string = \"libraries\";\n\n private _dataItems: items[];\n\n @Prop() dataItems: items[] | string;\n\n @Watch(\"dataItems\") dataItemsWatcher(data: items[] | string) {\n this._dataItems = typeof data === \"string\" ? JSON.parse(data) : data;\n }\n\n componentWillLoad() {\n this.dataItemsWatcher(this.dataItems);\n }\n\n render() {\n return (\n <Host>\n {this._dataItems.map((item) => {\n if (!item.service) return;\n const itemClasses = [\"open-hours__list-item\", item.today ? \"open-hours__list-item--today\" : \"\"].join(\" \");\n return (\n <div class={itemClasses}>\n <span class=\"open-hours__list-item--office\">{item.today ? item.today : item.dateLibrary}</span>\n <span class=\"open-hours__list-item--hours\">{item.building}</span>\n <span class=\"open-hours__list-item--service\">{item.service}</span>\n </div>\n );\n })}\n {this.selfServiceLabel && (\n <div class=\"open-hours__content__top\">\n <span class=\"open-hours__content__top-label\">{this.selfServiceLabel}</span>\n </div>\n )}\n {this._dataItems.map((item) => {\n if (item.service) return;\n const itemClasses = [\"open-hours__list-item\", item.today ? \"open-hours__list-item--today\" : \"\"].join(\" \");\n\n const hoursClasses = [\"open-hours__list-item--hours\", this.venueType].join(\" \");\n const officeClasses = [\"open-hours__list-item--office\", this.venueType].join(\" \");\n return (\n <div class={itemClasses}>\n <span class={officeClasses}>{item.today ? item.today : item.dateLibrary}</span>\n <span class={hoursClasses}>{item.building}</span>\n {this.venueType !== \"luomus\" && <span class=\"open-hours__list-item--service\">-</span>}\n </div>\n );\n })}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,59 @@
1
+ import { r as registerInstance, h } from './index-f84f2a7d.js';
2
+ import { P as PaginationItemVariants } from './utils-a4ebfef1.js';
3
+
4
+ const hyPagerCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host{display:block}.hy-pager{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;font-family:var(--main-font-family);list-style:none;padding:0}";
5
+
6
+ const HyPager = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ }
10
+ render() {
11
+ const classAttributes = ["hy-pager"].join(" ");
12
+ return (h("ul", { class: classAttributes }, h("slot", null)));
13
+ }
14
+ };
15
+ HyPager.style = hyPagerCss;
16
+
17
+ const hyPagerItemCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host{display:block}.hy-pager__item{font-size:0.875rem;line-height:24px;font-weight:700;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--brand-main-light);color:var(--grayscale-white);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);-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;letter-spacing:-0.4px;margin-bottom:4px;margin-right:4px;min-height:36px;min-width:36px;text-align:center}@media (min-width: 60rem){.hy-pager__item{margin-right:6px;min-height:40px;min-width:40px}}.hy-pager__item a{font-size:0.875rem;line-height:24px;font-weight:700;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--grayscale-white);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;letter-spacing:-0.4px;min-height:36px;min-width:36px;text-decoration:none}@media (min-width: 60rem){.hy-pager__item a{font-size:1rem;line-height:24px;letter-spacing:-0.5px;min-height:40px;min-width:40px}}.hy-pager__item a:not([aria-current=true]):hover{background-color:var(--brand-main);cursor:pointer}.hy-pager__item__current{background-color:var(--grayscale-white);-webkit-box-sizing:border-box;box-sizing:border-box;border:2px solid var(--grayscale-black)}.hy-pager__item__current a{color:var(--brand-main-nearly-black)}.hy-pager__item__current a:hover{background-color:var(--grayscale-white)}.hy-pager__item__ellipsis{background-color:var(--grayscale-white);color:var(--brand-main-nearly-black);min-width:auto;min-height:auto}.hy-pager__item__next a,.hy-pager__item__previous a{padding:7px 12px 5px 12px}@media (min-width: 60rem){.hy-pager__item__next a,.hy-pager__item__previous a{padding:8px 12px}}.hy-pager__item__next .hy-icon-wrapper,.hy-pager__item__previous .hy-icon-wrapper{margin:0 4px}@media (min-width: 60rem){.hy-pager__item__next .hy-icon-wrapper,.hy-pager__item__previous .hy-icon-wrapper{margin:0 6px}}.hy-pager__item__next .hy-icon-wrapper svg,.hy-pager__item__previous .hy-icon-wrapper svg{fill:var(--grayscale-white)}";
18
+
19
+ const HyPagerItem = class {
20
+ constructor(hostRef) {
21
+ registerInstance(this, hostRef);
22
+ this.variant = PaginationItemVariants.default;
23
+ this.itemLabel = undefined;
24
+ this.itemUrl = undefined;
25
+ this.scAriaLabel = undefined;
26
+ }
27
+ render() {
28
+ let classAttributes = ["hy-pager__item"].join(" ");
29
+ switch (this.variant) {
30
+ case PaginationItemVariants.current: {
31
+ classAttributes = ["hy-pager__item", "hy-pager__item__current"].join(" ");
32
+ return (h("li", { class: classAttributes }, h("a", { href: this.itemUrl, "aria-current": "true" }, this.itemLabel)));
33
+ }
34
+ case PaginationItemVariants.next: {
35
+ classAttributes = ["hy-pager__item", "hy-pager__item__next"].join(" ");
36
+ const iconClassAttributes = ["link-icon"].join(" ");
37
+ return (h("li", { class: classAttributes }, h("a", { href: this.itemUrl, "aria-label": this.scAriaLabel }, this.itemLabel, h("span", { class: "hy-icon-wrapper" }, h("div", { class: iconClassAttributes }, h("hy-icon", { icon: "hy-icon-arrow-to-right", size: 12 }))))));
38
+ }
39
+ case PaginationItemVariants.previous: {
40
+ classAttributes = ["hy-pager__item", "hy-pager__item__previous"].join(" ");
41
+ const iconClassAttributes = ["link-icon"].join(" ");
42
+ return (h("li", { class: classAttributes }, h("a", { href: this.itemUrl, "aria-label": this.scAriaLabel }, h("span", { class: "hy-icon-wrapper" }, h("div", { class: iconClassAttributes }, h("hy-icon", { icon: "hy-icon-arrow-left", size: 12 }))), this.itemLabel)));
43
+ }
44
+ case PaginationItemVariants.ellipsis: {
45
+ classAttributes = ["hy-pager__item", "hy-pager__item__ellipsis"].join(" ");
46
+ return h("li", { class: classAttributes }, "...");
47
+ }
48
+ default: {
49
+ classAttributes = ["hy-pager__item"].join(" ");
50
+ return (h("li", { class: classAttributes }, h("a", { href: this.itemUrl, "aria-label": this.scAriaLabel }, this.itemLabel)));
51
+ }
52
+ }
53
+ }
54
+ };
55
+ HyPagerItem.style = hyPagerItemCss;
56
+
57
+ export { HyPager as hy_pager, HyPagerItem as hy_pager_item };
58
+
59
+ //# sourceMappingURL=hy-pager_2.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"hy-pager.hy-pager-item.entry.js","mappings":";;;AAAA,MAAM,UAAU,GAAG,+jDAA+jD;;MCOrkD,OAAO;;;;EAClB,MAAM;IACJ,MAAM,eAAe,GAAG,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAE/C,QACE,UAAI,KAAK,EAAE,eAAe,IACxB,eAAa,CACV,EACL;GACH;;;;AChBH,MAAM,cAAc,GAAG,m6GAAm6G;;MCQ76G,WAAW;;;mBACoB,sBAAsB,CAAC,OAAO;;;;;EAKxE,MAAM;IACJ,IAAI,eAAe,GAAG,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACnD,QAAQ,IAAI,CAAC,OAAO;MAClB,KAAK,sBAAsB,CAAC,OAAO,EAAE;QACnC,eAAe,GAAG,CAAC,gBAAgB,EAAE,yBAAyB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1E,QACE,UAAI,KAAK,EAAE,eAAe,IACxB,SAAG,IAAI,EAAE,IAAI,CAAC,OAAO,kBAAe,MAAM,IACvC,IAAI,CAAC,SAAS,CACb,CACD,EACL;OACH;MACD,KAAK,sBAAsB,CAAC,IAAI,EAAE;QAChC,eAAe,GAAG,CAAC,gBAAgB,EAAE,sBAAsB,CAAC,CAAC,IAAI,CAAC,GAAG,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,CAAC,WAAW,IAChD,IAAI,CAAC,SAAS,CACb,CACD,EACL;OACH;KACF;GACF;;;;;;","names":[],"sources":["./src/components/pagination/hy-pager/hy-pager.scss?tag=hy-pager&encapsulation=shadow","./src/components/pagination/hy-pager/hy-pager.tsx","./src/components/pagination/hy-pager-item/hy-pager-item.scss?tag=hy-pager-item&encapsulation=shadow","./src/components/pagination/hy-pager-item/hy-pager-item.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.hy-pager {\n align-items: center;\n display: flex;\n justify-content: center;\n flex-direction: row;\n flex-wrap: wrap;\n font-family: var(--main-font-family);\n list-style: none;\n padding: 0;\n}\n","import {Component, h} from \"@stencil/core\";\n\n@Component({\n tag: \"hy-pager\",\n styleUrl: \"hy-pager.scss\",\n shadow: true,\n})\nexport class HyPager {\n render() {\n const classAttributes = [\"hy-pager\"].join(\" \");\n\n return (\n <ul class={classAttributes}>\n <slot></slot>\n </ul>\n );\n }\n}\n",":host {\n display: block;\n}\n\n.hy-pager__item {\n @include font-size(14px, 24px);\n @include font-weight($bold);\n align-items: center;\n background-color: var(--brand-main-light);\n color: var(--grayscale-white);\n display: flex;\n flex-direction: row;\n font-family: var(--main-font-family);\n justify-content: center;\n letter-spacing: -0.4px;\n margin-bottom: 4px;\n margin-right: 4px;\n min-height: 36px;\n min-width: 36px;\n text-align: center;\n\n @include breakpoint($wide) {\n margin-right: 6px;\n min-height: 40px;\n min-width: 40px;\n }\n\n a {\n @include font-size(14px, 24px);\n @include font-weight($bold);\n align-items: center;\n color: var(--grayscale-white);\n display: flex;\n flex-direction: row;\n justify-content: center;\n letter-spacing: -0.4px;\n min-height: 36px;\n min-width: 36px;\n text-decoration: none;\n\n @include breakpoint($wide) {\n @include font-size(16px, 24px);\n letter-spacing: -0.5px;\n min-height: 40px;\n min-width: 40px;\n }\n\n &:not([aria-current=\"true\"]):hover {\n background-color: var(--brand-main);\n cursor: pointer;\n }\n }\n\n &__current {\n background-color: var(--grayscale-white);\n box-sizing: border-box;\n border: 2px solid var(--grayscale-black);\n a {\n color: var(--brand-main-nearly-black);\n &:hover {\n background-color: var(--grayscale-white);\n }\n }\n }\n\n &__ellipsis {\n background-color: var(--grayscale-white);\n color: var(--brand-main-nearly-black);\n min-width: auto;\n min-height: auto;\n }\n\n &__next,\n &__previous {\n a {\n padding: 7px 12px 5px 12px;\n\n @include breakpoint($wide) {\n padding: 8px 12px;\n }\n }\n\n .hy-icon-wrapper {\n margin: 0 4px;\n @include breakpoint($wide) {\n margin: 0 6px;\n }\n\n svg {\n fill: var(--grayscale-white);\n }\n }\n }\n}\n","import {Component, h, Prop} from \"@stencil/core\";\nimport {PaginationItemVariants} from \"../../../utils/utils\";\n\n@Component({\n tag: \"hy-pager-item\",\n styleUrl: \"hy-pager-item.scss\",\n shadow: true,\n})\nexport class HyPagerItem {\n @Prop() variant: PaginationItemVariants = PaginationItemVariants.default;\n @Prop() itemLabel?: string;\n @Prop() itemUrl?: string;\n @Prop() scAriaLabel?: string;\n\n render() {\n let classAttributes = [\"hy-pager__item\"].join(\" \");\n switch (this.variant) {\n case PaginationItemVariants.current: {\n classAttributes = [\"hy-pager__item\", \"hy-pager__item__current\"].join(\" \");\n return (\n <li class={classAttributes}>\n <a href={this.itemUrl} aria-current=\"true\">\n {this.itemLabel}\n </a>\n </li>\n );\n }\n case PaginationItemVariants.next: {\n classAttributes = [\"hy-pager__item\", \"hy-pager__item__next\"].join(\" \");\n const iconClassAttributes = [\"link-icon\"].join(\" \");\n return (\n <li class={classAttributes}>\n <a href={this.itemUrl} aria-label={this.scAriaLabel}>\n {this.itemLabel}\n <span class={\"hy-icon-wrapper\"}>\n <div class={iconClassAttributes}>\n <hy-icon icon={\"hy-icon-arrow-to-right\"} size={12} />\n </div>\n </span>\n </a>\n </li>\n );\n }\n case PaginationItemVariants.previous: {\n classAttributes = [\"hy-pager__item\", \"hy-pager__item__previous\"].join(\" \");\n const iconClassAttributes = [\"link-icon\"].join(\" \");\n return (\n <li class={classAttributes}>\n <a href={this.itemUrl} aria-label={this.scAriaLabel}>\n <span class={\"hy-icon-wrapper\"}>\n <div class={iconClassAttributes}>\n <hy-icon icon={\"hy-icon-arrow-left\"} size={12} />\n </div>\n </span>\n {this.itemLabel}\n </a>\n </li>\n );\n }\n case PaginationItemVariants.ellipsis: {\n classAttributes = [\"hy-pager__item\", \"hy-pager__item__ellipsis\"].join(\" \");\n return <li class={classAttributes}>...</li>;\n }\n default: {\n classAttributes = [\"hy-pager__item\"].join(\" \");\n return (\n <li class={classAttributes}>\n <a href={this.itemUrl} aria-label={this.scAriaLabel}>\n {this.itemLabel}\n </a>\n </li>\n );\n }\n }\n }\n}\n"],"version":3}
@@ -0,0 +1,44 @@
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-f84f2a7d.js';
2
+
3
+ const paragraphTextContentCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}.hy-paragraph-text.content_page.external,.hy-paragraph-text.field_of_science.external{margin-top:24px}@media (min-width: 30rem){.hy-paragraph-text.content_page.external,.hy-paragraph-text.field_of_science.external{margin-top:16px}}@media (min-width: 60rem){.hy-paragraph-text.content_page.external,.hy-paragraph-text.field_of_science.external{margin-top:32px}}@media (min-width: 75.0625rem){.hy-paragraph-text.content_page.external.default,.hy-paragraph-text.field_of_science.external.default{margin-top:32px}}@media (min-width: 1601px){.hy-paragraph-text.content_page.external.default,.hy-paragraph-text.field_of_science.external.default{margin-top:40px}}@media (min-width: 75.0625rem){.hy-paragraph-text.content_page.external.large,.hy-paragraph-text.field_of_science.external.large{margin-top:40px}}@media (min-width: 1601px){.hy-paragraph-text.content_page.external.large,.hy-paragraph-text.field_of_science.external.large{margin-top:40px}}.hy-paragraph-text.content_page h3,.hy-paragraph-text.field_of_science h3{font-size:1.375rem;line-height:28px;letter-spacing:-0.7px;padding-bottom:12px;padding-top:24px}@media (min-width: 30rem){.hy-paragraph-text.content_page h3,.hy-paragraph-text.field_of_science h3{font-size:1.625rem;line-height:32px;letter-spacing:-0.8px;padding-bottom:12px;padding-top:28px}}@media (min-width: 60rem){.hy-paragraph-text.content_page h3,.hy-paragraph-text.field_of_science h3{padding-bottom:16px;padding-top:32px}}.hy-paragraph-text.content_page h4,.hy-paragraph-text.field_of_science h4{font-size:1.125rem;line-height:24px;letter-spacing:-0.56px;padding-bottom:12px;padding-top:24px}@media (min-width: 30rem){.hy-paragraph-text.content_page h4,.hy-paragraph-text.field_of_science h4{font-size:1.375rem;line-height:28px;letter-spacing:-0.69px;padding-bottom:12px;padding-top:28px}}@media (min-width: 60rem){.hy-paragraph-text.content_page h4,.hy-paragraph-text.field_of_science h4{padding-bottom:16px;padding-top:32px}}.hy-paragraph-text.content_page h5,.hy-paragraph-text.field_of_science h5{font-size:1rem;line-height:20px;letter-spacing:-0.5px;padding-bottom:12px;padding-top:24px}@media (min-width: 30rem){.hy-paragraph-text.content_page h5,.hy-paragraph-text.field_of_science h5{font-size:1.125rem;line-height:24px;letter-spacing:-0.56px;padding-bottom:12px;padding-top:28px}}@media (min-width: 60rem){.hy-paragraph-text.content_page h5,.hy-paragraph-text.field_of_science h5{padding-bottom:16px;padding-top:32px}}.hy-paragraph-text.content_page h6,.hy-paragraph-text.field_of_science h6{font-size:0.875rem;line-height:16px;letter-spacing:-0.44px;padding-bottom:12px;padding-top:24px}@media (min-width: 30rem){.hy-paragraph-text.content_page h6,.hy-paragraph-text.field_of_science h6{font-size:1rem;line-height:20px;letter-spacing:-0.5px;padding-bottom:12px;padding-top:28px}}@media (min-width: 60rem){.hy-paragraph-text.content_page h6,.hy-paragraph-text.field_of_science h6{padding-bottom:16px;padding-top:32px}}";
4
+
5
+ const defaultParagraphTextCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}.hy-paragraph-text.content_page.external,.hy-paragraph-text.field_of_science.external{margin-top:24px}@media (min-width: 30rem){.hy-paragraph-text.content_page.external,.hy-paragraph-text.field_of_science.external{margin-top:16px}}@media (min-width: 60rem){.hy-paragraph-text.content_page.external,.hy-paragraph-text.field_of_science.external{margin-top:32px}}@media (min-width: 75.0625rem){.hy-paragraph-text.content_page.external.default,.hy-paragraph-text.field_of_science.external.default{margin-top:32px}}@media (min-width: 1601px){.hy-paragraph-text.content_page.external.default,.hy-paragraph-text.field_of_science.external.default{margin-top:40px}}@media (min-width: 75.0625rem){.hy-paragraph-text.content_page.external.large,.hy-paragraph-text.field_of_science.external.large{margin-top:40px}}@media (min-width: 1601px){.hy-paragraph-text.content_page.external.large,.hy-paragraph-text.field_of_science.external.large{margin-top:40px}}.hy-paragraph-text.content_page h3,.hy-paragraph-text.field_of_science h3{font-size:1.375rem;line-height:28px;letter-spacing:-0.7px;padding-bottom:12px;padding-top:24px}@media (min-width: 30rem){.hy-paragraph-text.content_page h3,.hy-paragraph-text.field_of_science h3{font-size:1.625rem;line-height:32px;letter-spacing:-0.8px;padding-bottom:12px;padding-top:28px}}@media (min-width: 60rem){.hy-paragraph-text.content_page h3,.hy-paragraph-text.field_of_science h3{padding-bottom:16px;padding-top:32px}}.hy-paragraph-text.content_page h4,.hy-paragraph-text.field_of_science h4{font-size:1.125rem;line-height:24px;letter-spacing:-0.56px;padding-bottom:12px;padding-top:24px}@media (min-width: 30rem){.hy-paragraph-text.content_page h4,.hy-paragraph-text.field_of_science h4{font-size:1.375rem;line-height:28px;letter-spacing:-0.69px;padding-bottom:12px;padding-top:28px}}@media (min-width: 60rem){.hy-paragraph-text.content_page h4,.hy-paragraph-text.field_of_science h4{padding-bottom:16px;padding-top:32px}}.hy-paragraph-text.content_page h5,.hy-paragraph-text.field_of_science h5{font-size:1rem;line-height:20px;letter-spacing:-0.5px;padding-bottom:12px;padding-top:24px}@media (min-width: 30rem){.hy-paragraph-text.content_page h5,.hy-paragraph-text.field_of_science h5{font-size:1.125rem;line-height:24px;letter-spacing:-0.56px;padding-bottom:12px;padding-top:28px}}@media (min-width: 60rem){.hy-paragraph-text.content_page h5,.hy-paragraph-text.field_of_science h5{padding-bottom:16px;padding-top:32px}}.hy-paragraph-text.content_page h6,.hy-paragraph-text.field_of_science h6{font-size:0.875rem;line-height:16px;letter-spacing:-0.44px;padding-bottom:12px;padding-top:24px}@media (min-width: 30rem){.hy-paragraph-text.content_page h6,.hy-paragraph-text.field_of_science h6{font-size:1rem;line-height:20px;letter-spacing:-0.5px;padding-bottom:12px;padding-top:28px}}@media (min-width: 60rem){.hy-paragraph-text.content_page h6,.hy-paragraph-text.field_of_science h6{padding-bottom:16px;padding-top:32px}}.hy-paragraph-text.landing_page h3,.hy-paragraph-text.main_front_page h3{font-size:1.375rem;line-height:28px;letter-spacing:-0.7px;padding-bottom:12px;padding-top:32px}@media (min-width: 30rem){.hy-paragraph-text.landing_page h3,.hy-paragraph-text.main_front_page h3{font-size:1.625rem;line-height:32px;letter-spacing:-0.8px;padding-bottom:16px;padding-top:40px}}@media (min-width: 60rem){.hy-paragraph-text.landing_page h3,.hy-paragraph-text.main_front_page h3{padding-bottom:16px;padding-top:48px}}.hy-paragraph-text.landing_page h4,.hy-paragraph-text.main_front_page h4{font-size:1.125rem;line-height:24px;letter-spacing:-0.56px;padding-bottom:12px;padding-top:24px}@media (min-width: 30rem){.hy-paragraph-text.landing_page h4,.hy-paragraph-text.main_front_page h4{font-size:1.375rem;line-height:28px;letter-spacing:-0.69px;padding-bottom:16px;padding-top:32px}}@media (min-width: 60rem){.hy-paragraph-text.landing_page h4,.hy-paragraph-text.main_front_page h4{padding-bottom:16px;padding-top:40px}}.hy-paragraph-text.landing_page h5,.hy-paragraph-text.main_front_page h5{font-size:1rem;line-height:20px;letter-spacing:-0.5px;padding-bottom:12px;padding-top:24px}@media (min-width: 30rem){.hy-paragraph-text.landing_page h5,.hy-paragraph-text.main_front_page h5{font-size:1.125rem;line-height:24px;letter-spacing:-0.56px;padding-bottom:16px;padding-top:32px}}@media (min-width: 60rem){.hy-paragraph-text.landing_page h5,.hy-paragraph-text.main_front_page h5{padding-bottom:16px;padding-top:40px}}.hy-paragraph-text.landing_page h6,.hy-paragraph-text.main_front_page h6{font-size:0.875rem;line-height:16px;letter-spacing:-0.44px;padding-bottom:12px;padding-top:24px}@media (min-width: 30rem){.hy-paragraph-text.landing_page h6,.hy-paragraph-text.main_front_page h6{font-size:1rem;line-height:20px;letter-spacing:-0.5px;padding-bottom:16px;padding-top:32px}}@media (min-width: 60rem){.hy-paragraph-text.landing_page h6,.hy-paragraph-text.main_front_page h6{padding-bottom:16px;padding-top:40px}}:host{display:block}.hy-paragraph-text{font-size:0.9375rem;line-height:22px;color:var(--grayscale-dark-text);font-family:var(--main-font-family);letter-spacing:0;width:100%}@media (min-width: 30rem){.hy-paragraph-text{font-size:1rem;line-height:24px}}@media (min-width: 60rem){.hy-paragraph-text{width:91.46%}}@media (min-width: 1601px){.hy-paragraph-text{font-size:1.0625rem;line-height:26px;width:82.89%}}@media (min-width: 75.0625rem){.hy-paragraph-text__large{font-size:1.0625rem;line-height:26px;width:82.89%}}@media (min-width: 1601px){.hy-paragraph-text__large{width:74.17%}}@media (min-width: 60rem){.hy-paragraph-text.degree_programme_group{width:91.46%}}@media (min-width: 60rem){.hy-paragraph-text.main_front_page,.hy-paragraph-text.landing_page,.hy-paragraph-text.faculty,.hy-paragraph-text.generic_site_group,.hy-paragraph-text.degree_programme_group,.hy-paragraph-text.research_group{width:100%}}.hy-paragraph-text h1,.hy-paragraph-text h2,.hy-paragraph-text h3,.hy-paragraph-text h4,.hy-paragraph-text h5,.hy-paragraph-text h6{color:var(--grayscale-black);font-family:var(--main-font-family);font-weight:700;margin:0;width:100%}.hy-paragraph-text h1.negative,.hy-paragraph-text h2.negative,.hy-paragraph-text h3.negative,.hy-paragraph-text h4.negative,.hy-paragraph-text h5.negative,.hy-paragraph-text h6.negative{color:var(--grayscale-white)}.hy-paragraph-text a{font-size:0.875rem;line-height:20px;color:var(--link-blue);font-family:var(--main-font-family);font-weight:600}@media (min-width: 30rem){.hy-paragraph-text a{font-size:1rem;line-height:24px;letter-spacing:-0.1px}}@media (min-width: 1601px){.hy-paragraph-text a{font-size:1.0625rem;line-height:26px}}.hy-paragraph-text a:hover{color:var(--brand-main)}.hy-paragraph-text a[target=_blank]:after{display:inline-block;vertical-align:middle;width:12px;height:12px;margin-left:3px;background-size:contain;content:\"\";background-image:url(\"data:image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 30 29' fill='rgb(4,121,165)'> <polygon points='29.207 13.783 14.756 .717 14.055 0 11.402 3.118 10.732 3.835 19.665 11.974 0 11.974 0 17.026 19.756 17.026 11.494 24.447 10.823 25.071 11.402 25.882 13.476 28.189 14.055 29 30 14.594' /> </svg>\");-webkit-transform:rotate(315deg);transform:rotate(315deg)}.hy-paragraph-text a[target=_blank]:after:hover{background-image:url(\"data:image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 30 29' fill='pink'> <polygon points='29.207 13.783 14.756 .717 14.055 0 11.402 3.118 10.732 3.835 19.665 11.974 0 11.974 0 17.026 19.756 17.026 11.494 24.447 10.823 25.071 11.402 25.882 13.476 28.189 14.055 29 30 14.594' /> </svg>\")}.hy-paragraph-text a[target=_blank]:hover:after{background-image:url(\"data:image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 30 29' fill='rgb(14,104,139)'> <polygon points='29.207 13.783 14.756 .717 14.055 0 11.402 3.118 10.732 3.835 19.665 11.974 0 11.974 0 17.026 19.756 17.026 11.494 24.447 10.823 25.071 11.402 25.882 13.476 28.189 14.055 29 30 14.594' /> </svg>\")}.hy-paragraph-text p{margin-top:0;padding-top:0}.hy-paragraph-text p:last-of-type{margin-bottom:0}.hy-paragraph-text:first-child{margin-top:0 !important}hy-paragraph-text+hy-link-list{display:block;margin-top:32px}";
6
+
7
+ const paragraphTextLandingCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}.hy-paragraph-text.landing_page h3,.hy-paragraph-text.main_front_page h3{font-size:1.375rem;line-height:28px;letter-spacing:-0.7px;padding-bottom:12px;padding-top:32px}@media (min-width: 30rem){.hy-paragraph-text.landing_page h3,.hy-paragraph-text.main_front_page h3{font-size:1.625rem;line-height:32px;letter-spacing:-0.8px;padding-bottom:16px;padding-top:40px}}@media (min-width: 60rem){.hy-paragraph-text.landing_page h3,.hy-paragraph-text.main_front_page h3{padding-bottom:16px;padding-top:48px}}.hy-paragraph-text.landing_page h4,.hy-paragraph-text.main_front_page h4{font-size:1.125rem;line-height:24px;letter-spacing:-0.56px;padding-bottom:12px;padding-top:24px}@media (min-width: 30rem){.hy-paragraph-text.landing_page h4,.hy-paragraph-text.main_front_page h4{font-size:1.375rem;line-height:28px;letter-spacing:-0.69px;padding-bottom:16px;padding-top:32px}}@media (min-width: 60rem){.hy-paragraph-text.landing_page h4,.hy-paragraph-text.main_front_page h4{padding-bottom:16px;padding-top:40px}}.hy-paragraph-text.landing_page h5,.hy-paragraph-text.main_front_page h5{font-size:1rem;line-height:20px;letter-spacing:-0.5px;padding-bottom:12px;padding-top:24px}@media (min-width: 30rem){.hy-paragraph-text.landing_page h5,.hy-paragraph-text.main_front_page h5{font-size:1.125rem;line-height:24px;letter-spacing:-0.56px;padding-bottom:16px;padding-top:32px}}@media (min-width: 60rem){.hy-paragraph-text.landing_page h5,.hy-paragraph-text.main_front_page h5{padding-bottom:16px;padding-top:40px}}.hy-paragraph-text.landing_page h6,.hy-paragraph-text.main_front_page h6{font-size:0.875rem;line-height:16px;letter-spacing:-0.44px;padding-bottom:12px;padding-top:24px}@media (min-width: 30rem){.hy-paragraph-text.landing_page h6,.hy-paragraph-text.main_front_page h6{font-size:1rem;line-height:20px;letter-spacing:-0.5px;padding-bottom:16px;padding-top:32px}}@media (min-width: 60rem){.hy-paragraph-text.landing_page h6,.hy-paragraph-text.main_front_page h6{padding-bottom:16px;padding-top:40px}}";
8
+
9
+ const ParagraphText = class {
10
+ constructor(hostRef) {
11
+ registerInstance(this, hostRef);
12
+ this.variant = undefined;
13
+ this.placement = "internal";
14
+ this.headerstyle = "default";
15
+ }
16
+ componentDidLoad() {
17
+ let hyMainDiv = this.el.closest(".hy-main");
18
+ if (hyMainDiv) {
19
+ if (!hyMainDiv.classList.contains("with-sidebar")) {
20
+ this.headerstyle = "large";
21
+ }
22
+ }
23
+ }
24
+ render() {
25
+ const classAttributes = [
26
+ "hy-paragraph-text",
27
+ `hy-paragraph-text__${this.headerstyle}`,
28
+ `${this.variant}`,
29
+ `${this.placement}`,
30
+ `${this.headerstyle}`,
31
+ ].join(" ");
32
+ return (h(Host, null, h("div", { class: classAttributes }, h("slot", null))));
33
+ }
34
+ get el() { return getElement(this); }
35
+ };
36
+ ParagraphText.style = {
37
+ content: paragraphTextContentCss,
38
+ default: defaultParagraphTextCss,
39
+ landing: paragraphTextLandingCss
40
+ };
41
+
42
+ export { ParagraphText as hy_paragraph_text };
43
+
44
+ //# sourceMappingURL=hy-paragraph-text.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"hy-paragraph-text.entry.js","mappings":";;AAAA,MAAM,uBAAuB,GAAG,yiIAAyiI;;ACAzkI,MAAM,uBAAuB,GAAG,8wSAA8wS;;ACA9yS,MAAM,uBAAuB,GAAG,6mGAA6mG;;MCWhoG,aAAa;;;;qBAEI,UAAU;uBACR,SAAS;;EAGvC,gBAAgB;IACd,IAAI,SAAS,GAAG,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAC5C,IAAI,SAAS,EAAE;MACb,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE;QACjD,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC;OAC5B;KACF;GACF;EAED,MAAM;IACJ,MAAM,eAAe,GAAG;MACtB,mBAAmB;MACnB,sBAAsB,IAAI,CAAC,WAAW,EAAE;MACxC,GAAG,IAAI,CAAC,OAAO,EAAE;MACjB,GAAG,IAAI,CAAC,SAAS,EAAE;MACnB,GAAG,IAAI,CAAC,WAAW,EAAE;KACtB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAEZ,QACE,EAAC,IAAI,QACH,WAAK,KAAK,EAAE,eAAe,IACzB,eAAa,CACT,CACD,EACP;GACH;;;;;;;;;;;","names":[],"sources":["./src/components/paragraph-text/paragraph-text-content.scss?tag=hy-paragraph-text&mode=content","./src/components/paragraph-text/paragraph-text.scss?tag=hy-paragraph-text&mode=default","./src/components/paragraph-text/paragraph-text-landing.scss?tag=hy-paragraph-text&mode=landing","./src/components/paragraph-text/paragraph-text.tsx"],"sourcesContent":["//overrides for Content pages\n\n/*\n* Common styles for text plus mobile & tablet & small desktop\n* in Content Pages and Field of science pages.\n*/\n.hy-paragraph-text.content_page.external,\n.hy-paragraph-text.field_of_science.external {\n margin-top: 24px; //total gap between heading h2 and paragraph content is 48px\n\n @include breakpoint($narrow) {\n margin-top: 16px; //total gap 40px\n }\n @include breakpoint($wide) {\n margin-top: 32px; //total gap 56px\n }\n}\n\n// There is a sidebar on the Content page\n.hy-paragraph-text.content_page.external.default,\n.hy-paragraph-text.field_of_science.external.default {\n @include breakpoint($extrawide) {\n margin-top: 32px; //total gap 56px\n }\n @include breakpoint($xlarge) {\n margin-top: 40px; //total gap 64px\n }\n}\n\n// No sidebar on the Content page\n.hy-paragraph-text.content_page.external.large,\n.hy-paragraph-text.field_of_science.external.large {\n @include breakpoint($extrawide) {\n margin-top: 40px; //total gap 64px\n }\n @include breakpoint($xlarge) {\n margin-top: 40px; //total gap 64px\n }\n}\n\n.hy-paragraph-text.content_page,\n.hy-paragraph-text.field_of_science {\n h3 {\n // text H3 small\n @include font-size(22px, 28px);\n letter-spacing: -0.7px;\n\n padding-bottom: 12px;\n padding-top: 24px;\n\n @include breakpoint($narrow) {\n // text H3 Medium size\n @include font-size(26px, 32px);\n letter-spacing: -0.8px;\n\n padding-bottom: 12px;\n padding-top: 28px;\n }\n\n @include breakpoint($wide) {\n padding-bottom: 16px;\n padding-top: 32px;\n }\n }\n\n h4 {\n // text H4 small\n @include font-size(18px, 24px);\n letter-spacing: -0.56px;\n\n padding-bottom: 12px;\n padding-top: 24px;\n\n @include breakpoint($narrow) {\n // text H4 Medium size\n @include font-size(22px, 28px);\n letter-spacing: -0.69px;\n\n padding-bottom: 12px;\n padding-top: 28px;\n }\n\n @include breakpoint($wide) {\n padding-bottom: 16px;\n padding-top: 32px;\n }\n }\n\n h5 {\n // text H5 small\n @include font-size(16px, 20px);\n letter-spacing: -0.5px;\n\n padding-bottom: 12px;\n padding-top: 24px;\n\n @include breakpoint($narrow) {\n // text H5 Medium size\n @include font-size(18px, 24px);\n letter-spacing: -0.56px;\n\n padding-bottom: 12px;\n padding-top: 28px;\n }\n\n @include breakpoint($wide) {\n padding-bottom: 16px;\n padding-top: 32px;\n }\n }\n\n h6 {\n // text H6 small\n @include font-size(14px, 16px);\n letter-spacing: -0.44px;\n\n padding-bottom: 12px;\n padding-top: 24px;\n\n @include breakpoint($narrow) {\n // text H6 Medium size\n @include font-size(16px, 20px);\n letter-spacing: -0.5px;\n\n padding-bottom: 12px;\n padding-top: 28px;\n }\n\n @include breakpoint($wide) {\n padding-bottom: 16px;\n padding-top: 32px;\n }\n }\n}\n","@import \"./paragraph-text-content.scss\";\n@import \"./paragraph-text-landing.scss\";\n\n:host {\n display: block;\n}\n\n// General styles for text paragraph\n.hy-paragraph-text {\n @include font-size(15px, 22px); // Paragraph Small size\n color: var(--grayscale-dark-text);\n font-family: var(--main-font-family);\n letter-spacing: 0;\n width: 100%;\n\n @include breakpoint($narrow) {\n @include font-size(16px, 24px); // Paragraph Medium size\n }\n @include breakpoint($wide) {\n width: 91.46%; // 11 col\n }\n @include breakpoint($xlarge) {\n @include font-size(17px, 26px); // Paragraph Large size\n width: 82.89%; // 10 col\n }\n\n &__large {\n @include breakpoint($extrawide) {\n @include font-size(17px, 26px); // Paragraph Large size\n width: 82.89%; // 10 col\n }\n @include breakpoint($xlarge) {\n width: 74.17%; // 9 col\n }\n }\n\n &.degree_programme_group {\n @include breakpoint($wide) {\n width: 91.46%; // 11 col\n }\n }\n\n &.main_front_page,\n &.landing_page,\n &.faculty,\n &.generic_site_group,\n &.degree_programme_group,\n &.research_group {\n @include breakpoint($wide) {\n width: 100%;\n }\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n color: var(--grayscale-black);\n font-family: var(--main-font-family);\n font-weight: 700;\n margin: 0;\n width: 100%;\n\n &.negative {\n color: var(--grayscale-white);\n }\n }\n\n // link within paragraph (Open sans semibold)\n a {\n @include font-size(14px, 20px); // Paragraph Small size\n color: var(--link-blue);\n font-family: var(--main-font-family);\n font-weight: 600;\n\n @include breakpoint($narrow) {\n @include font-size(16px, 24px);\n letter-spacing: -0.1px;\n }\n\n @include breakpoint($xlarge) {\n @include font-size(17px, 26px); // Paragraph Large size\n }\n\n &:hover {\n color: var(--brand-main);\n }\n }\n\n a[target=\"_blank\"]:after {\n display: inline-block;\n vertical-align: middle;\n width: 12px;\n height: 12px;\n margin-left: 3px;\n background-size: contain;\n content: \"\";\n background-image: url(\"data:image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 30 29' fill='rgb(4,121,165)'> <polygon points='29.207 13.783 14.756 .717 14.055 0 11.402 3.118 10.732 3.835 19.665 11.974 0 11.974 0 17.026 19.756 17.026 11.494 24.447 10.823 25.071 11.402 25.882 13.476 28.189 14.055 29 30 14.594' /> </svg>\");\n transform: rotate(315deg);\n\n &:hover {\n background-image: url(\"data:image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 30 29' fill='pink'> <polygon points='29.207 13.783 14.756 .717 14.055 0 11.402 3.118 10.732 3.835 19.665 11.974 0 11.974 0 17.026 19.756 17.026 11.494 24.447 10.823 25.071 11.402 25.882 13.476 28.189 14.055 29 30 14.594' /> </svg>\");\n }\n }\n\n a[target=\"_blank\"]:hover {\n &:after {\n background-image: url(\"data:image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 30 29' fill='rgb(14,104,139)'> <polygon points='29.207 13.783 14.756 .717 14.055 0 11.402 3.118 10.732 3.835 19.665 11.974 0 11.974 0 17.026 19.756 17.026 11.494 24.447 10.823 25.071 11.402 25.882 13.476 28.189 14.055 29 30 14.594' /> </svg>\");\n }\n }\n\n p {\n margin-top: 0;\n padding-top: 0;\n\n &:last-of-type {\n margin-bottom: 0;\n }\n }\n\n // When hy-paragraph-text is the first child it will not add spacing to top. Will fix heading + text spacing issue.\n &:first-child {\n margin-top: 0 !important;\n }\n}\n\nhy-paragraph-text + hy-link-list {\n display: block;\n margin-top: 32px;\n}\n","//overrides for Landing pages and Front page\n\n// Common styles for text plus mobile & tablet & small desktop in Landing Pages\n.hy-paragraph-text.landing_page,\n.hy-paragraph-text.main_front_page {\n h3 {\n // text H3 small\n @include font-size(22px, 28px);\n letter-spacing: -0.7px;\n\n padding-bottom: 12px;\n padding-top: 32px;\n\n @include breakpoint($narrow) {\n // text H3 Medium size\n @include font-size(26px, 32px);\n letter-spacing: -0.8px;\n\n padding-bottom: 16px;\n padding-top: 40px;\n }\n\n @include breakpoint($wide) {\n padding-bottom: 16px;\n padding-top: 48px;\n }\n }\n\n h4 {\n // text H4 small\n @include font-size(18px, 24px);\n letter-spacing: -0.56px;\n\n padding-bottom: 12px;\n padding-top: 24px;\n\n @include breakpoint($narrow) {\n // text H4 Medium size\n @include font-size(22px, 28px);\n letter-spacing: -0.69px;\n\n padding-bottom: 16px;\n padding-top: 32px;\n }\n\n @include breakpoint($wide) {\n padding-bottom: 16px;\n padding-top: 40px;\n }\n }\n\n h5 {\n // text H5 small\n @include font-size(16px, 20px);\n letter-spacing: -0.5px;\n\n padding-bottom: 12px;\n padding-top: 24px;\n\n @include breakpoint($narrow) {\n // text H5 Medium size\n @include font-size(18px, 24px);\n letter-spacing: -0.56px;\n\n padding-bottom: 16px;\n padding-top: 32px;\n }\n\n @include breakpoint($wide) {\n padding-bottom: 16px;\n padding-top: 40px;\n }\n }\n\n h6 {\n // text H6 small\n @include font-size(14px, 16px);\n letter-spacing: -0.44px;\n\n padding-bottom: 12px;\n padding-top: 24px;\n\n @include breakpoint($narrow) {\n // text H6 Medium size\n @include font-size(16px, 20px);\n letter-spacing: -0.5px;\n\n padding-bottom: 16px;\n padding-top: 32px;\n }\n\n @include breakpoint($wide) {\n padding-bottom: 16px;\n padding-top: 40px;\n }\n }\n}\n","import {Component, Element, h, Host, Prop} from \"@stencil/core\";\n\n@Component({\n tag: \"hy-paragraph-text\",\n styleUrls: {\n default: \"paragraph-text.scss\",\n content: \"paragraph-text-content.scss\",\n landing: \"paragraph-text-landing.scss\",\n },\n shadow: false,\n})\nexport class ParagraphText {\n @Prop() variant: string;\n @Prop() placement: string = \"internal\";\n @Prop() headerstyle: string = \"default\";\n @Element() el: HTMLElement;\n\n componentDidLoad() {\n let hyMainDiv = this.el.closest(\".hy-main\");\n if (hyMainDiv) {\n if (!hyMainDiv.classList.contains(\"with-sidebar\")) {\n this.headerstyle = \"large\";\n }\n }\n }\n\n render() {\n const classAttributes = [\n \"hy-paragraph-text\",\n `hy-paragraph-text__${this.headerstyle}`,\n `${this.variant}`,\n `${this.placement}`,\n `${this.headerstyle}`,\n ].join(\" \");\n\n return (\n <Host>\n <div class={classAttributes}>\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}