@itcenteratunihelsinki/huds-lib 0.5.44 → 0.6.0

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 (323) hide show
  1. package/dist/cjs/color-box_8.cjs.entry.js +210 -0
  2. package/dist/cjs/{globalScript-0c66cb96.js → globalScript-6b592153.js} +1 -1
  3. package/dist/cjs/huds-lib.cjs.js +4 -4
  4. package/dist/cjs/hy-accordion-container_89.cjs.entry.js +7658 -0
  5. package/dist/cjs/{index-dd5e5023.js → index-dfc917d9.js} +80 -64
  6. package/dist/cjs/loader.cjs.js +4 -4
  7. package/dist/cjs/{utils-eeb7b089.js → utils-00f72b1e.js} +0 -2
  8. package/dist/collection/collection-manifest.json +95 -14
  9. package/dist/collection/components/button/button.js +7 -2
  10. package/dist/collection/components/heading/heading.js +4 -4
  11. package/dist/collection/components/hy-main/hy-main.css +3 -2
  12. package/dist/collection/components/hy-search-field/hy-search-field.js +28 -0
  13. package/dist/collection/components/navigation/menu/menu.js +47 -35
  14. package/dist/collection/components/navigation/menu-item/menu-item.js +1 -17
  15. package/dist/collection/components/navigation/menu-level-container/menu-level-container.css +0 -236
  16. package/dist/collection/components/navigation/menu-level-container/menu-level-container.js +1 -48
  17. package/dist/collection/components/person-profile/person-profile.js +8 -1
  18. package/dist/collection/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.js +27 -19
  19. package/dist/collection/components/site-header/site-header.js +15 -3
  20. package/dist/collection/utils/utils.js +0 -2
  21. package/dist/esm/color-box_8.entry.js +199 -0
  22. package/dist/esm/{globalScript-92c6b812.js → globalScript-9d045b36.js} +1 -1
  23. package/dist/esm/huds-lib.js +4 -4
  24. package/dist/esm/hy-accordion-container_89.entry.js +7566 -0
  25. package/dist/esm/{index-083c8c8a.js → index-daaf0985.js} +80 -64
  26. package/dist/esm/loader.js +4 -4
  27. package/dist/esm/{utils-708bbefe.js → utils-159098a4.js} +1 -3
  28. package/dist/huds-lib/huds-lib.esm.js +1 -1
  29. package/dist/huds-lib/{p-fd1edbd5.js → p-04dcccdc.js} +1 -1
  30. package/dist/huds-lib/p-152d3e8d.entry.js +86 -0
  31. package/dist/huds-lib/p-2efc8ca0.entry.js +1 -0
  32. package/dist/huds-lib/{p-8ab550d6.js → p-d9dc337b.js} +1 -1
  33. package/dist/huds-lib/{p-bb24c6b5.js → p-f8697bf9.js} +1 -1
  34. package/dist/types/components/button/button.d.ts +1 -1
  35. package/dist/types/components/hy-search-field/hy-search-field.d.ts +1 -0
  36. package/dist/types/components/navigation/menu/menu.d.ts +1 -0
  37. package/dist/types/components/person-profile/person-profile.d.ts +1 -0
  38. package/dist/types/components.d.ts +3 -201
  39. package/dist/types/stencil-public-runtime.d.ts +7 -4
  40. package/dist/types/utils/utils.d.ts +0 -2
  41. package/loader/index.d.ts +13 -4
  42. package/loader/{index.es2017.mjs → index.es2017.js} +1 -2
  43. package/loader/index.js +13 -0
  44. package/loader/package.json +5 -7
  45. package/package.json +2 -2
  46. package/dist/cjs/color-box.cjs.entry.js +0 -19
  47. package/dist/cjs/emotion.esm-563b6504.js +0 -1397
  48. package/dist/cjs/hy-accordion-container_5.cjs.entry.js +0 -578
  49. package/dist/cjs/hy-adjacent-image-text.cjs.entry.js +0 -51
  50. package/dist/cjs/hy-anchor-link-list.cjs.entry.js +0 -45
  51. package/dist/cjs/hy-badge.cjs.entry.js +0 -21
  52. package/dist/cjs/hy-banner.cjs.entry.js +0 -45
  53. package/dist/cjs/hy-baseline.cjs.entry.js +0 -32
  54. package/dist/cjs/hy-box-container.cjs.entry.js +0 -33
  55. package/dist/cjs/hy-box.cjs.entry.js +0 -165
  56. package/dist/cjs/hy-breadcrumbs.cjs.entry.js +0 -231
  57. package/dist/cjs/hy-button.cjs.entry.js +0 -100
  58. package/dist/cjs/hy-checkbox.cjs.entry.js +0 -33
  59. package/dist/cjs/hy-collaboration.cjs.entry.js +0 -19
  60. package/dist/cjs/hy-content-list-item.cjs.entry.js +0 -70
  61. package/dist/cjs/hy-content-list.cjs.entry.js +0 -112
  62. package/dist/cjs/hy-crisis-banner.cjs.entry.js +0 -19
  63. package/dist/cjs/hy-cta-button.cjs.entry.js +0 -30
  64. package/dist/cjs/hy-cta-link.cjs.entry.js +0 -26
  65. package/dist/cjs/hy-desktop-menu-links.cjs.entry.js +0 -328
  66. package/dist/cjs/hy-docs-container.cjs.entry.js +0 -19
  67. package/dist/cjs/hy-dropdown-panel_2.cjs.entry.js +0 -27
  68. package/dist/cjs/hy-dropdown.cjs.entry.js +0 -113
  69. package/dist/cjs/hy-filter-group-item.cjs.entry.js +0 -17
  70. package/dist/cjs/hy-filter-group.cjs.entry.js +0 -37
  71. package/dist/cjs/hy-filter-list-type.cjs.entry.js +0 -28
  72. package/dist/cjs/hy-filter-visibility-tool-reset_2.cjs.entry.js +0 -26
  73. package/dist/cjs/hy-filter-visibility-tool.cjs.entry.js +0 -24
  74. package/dist/cjs/hy-footer_5.cjs.entry.js +0 -201
  75. package/dist/cjs/hy-general-list_2.cjs.entry.js +0 -94
  76. package/dist/cjs/hy-grid-container.cjs.entry.js +0 -20
  77. package/dist/cjs/hy-grid-item.cjs.entry.js +0 -31
  78. package/dist/cjs/hy-grid-row.cjs.entry.js +0 -20
  79. package/dist/cjs/hy-heading.cjs.entry.js +0 -67
  80. package/dist/cjs/hy-hero.cjs.entry.js +0 -101
  81. package/dist/cjs/hy-icon.cjs.entry.js +0 -364
  82. package/dist/cjs/hy-image.cjs.entry.js +0 -50
  83. package/dist/cjs/hy-ingress.cjs.entry.js +0 -30
  84. package/dist/cjs/hy-introduction.cjs.entry.js +0 -55
  85. package/dist/cjs/hy-key-figure-group.cjs.entry.js +0 -77
  86. package/dist/cjs/hy-key-figure.cjs.entry.js +0 -22
  87. package/dist/cjs/hy-key-highlight-group.cjs.entry.js +0 -44
  88. package/dist/cjs/hy-key-highlight.cjs.entry.js +0 -22
  89. package/dist/cjs/hy-large-process-flow-phase.cjs.entry.js +0 -37
  90. package/dist/cjs/hy-large-process-flow.cjs.entry.js +0 -44
  91. package/dist/cjs/hy-link-box-list.cjs.entry.js +0 -54
  92. package/dist/cjs/hy-link-box.cjs.entry.js +0 -79
  93. package/dist/cjs/hy-link-list.cjs.entry.js +0 -44
  94. package/dist/cjs/hy-link.cjs.entry.js +0 -25
  95. package/dist/cjs/hy-list-item.cjs.entry.js +0 -239
  96. package/dist/cjs/hy-logo-grid-item.cjs.entry.js +0 -30
  97. package/dist/cjs/hy-logo-grid.cjs.entry.js +0 -20
  98. package/dist/cjs/hy-main-content-wrapper.cjs.entry.js +0 -20
  99. package/dist/cjs/hy-main.cjs.entry.js +0 -25
  100. package/dist/cjs/hy-menu-item-sidebar.cjs.entry.js +0 -159
  101. package/dist/cjs/hy-menu-item.cjs.entry.js +0 -147
  102. package/dist/cjs/hy-menu-language-item.cjs.entry.js +0 -25
  103. package/dist/cjs/hy-menu-language.cjs.entry.js +0 -91
  104. package/dist/cjs/hy-menu-level-container.cjs.entry.js +0 -137
  105. package/dist/cjs/hy-menu-main-group.cjs.entry.js +0 -151
  106. package/dist/cjs/hy-menu-mobile-breadcrumb.cjs.entry.js +0 -25
  107. package/dist/cjs/hy-menu-sidebar.cjs.entry.js +0 -290
  108. package/dist/cjs/hy-menu.cjs.entry.js +0 -111
  109. package/dist/cjs/hy-mobile-menu-shortcuts.cjs.entry.js +0 -26
  110. package/dist/cjs/hy-opening-hours-content.cjs.entry.js +0 -43
  111. package/dist/cjs/hy-opening-hours.cjs.entry.js +0 -35
  112. package/dist/cjs/hy-pager-item.cjs.entry.js +0 -45
  113. package/dist/cjs/hy-pager.cjs.entry.js +0 -20
  114. package/dist/cjs/hy-paragraph-text.cjs.entry.js +0 -45
  115. package/dist/cjs/hy-person-card.cjs.entry.js +0 -84
  116. package/dist/cjs/hy-person-profile.cjs.entry.js +0 -61
  117. package/dist/cjs/hy-process-flow-box.cjs.entry.js +0 -28
  118. package/dist/cjs/hy-process.cjs.entry.js +0 -57
  119. package/dist/cjs/hy-prominent-image.cjs.entry.js +0 -36
  120. package/dist/cjs/hy-quote.cjs.entry.js +0 -30
  121. package/dist/cjs/hy-row.cjs.entry.js +0 -42
  122. package/dist/cjs/hy-search-field.cjs.entry.js +0 -41
  123. package/dist/cjs/hy-section-container.cjs.entry.js +0 -19
  124. package/dist/cjs/hy-shortcuts.cjs.entry.js +0 -60
  125. package/dist/cjs/hy-site-header_3.cjs.entry.js +0 -444
  126. package/dist/cjs/hy-table-container.cjs.entry.js +0 -20
  127. package/dist/cjs/hy-tag.cjs.entry.js +0 -20
  128. package/dist/cjs/hy-tiny-text.cjs.entry.js +0 -20
  129. package/dist/cjs/hy-twitter-feed.cjs.entry.js +0 -27
  130. package/dist/cjs/hy-two-columns.cjs.entry.js +0 -21
  131. package/dist/cjs/hy-user-login-form.cjs.entry.js +0 -23
  132. package/dist/cjs/hy-video.cjs.entry.js +0 -67
  133. package/dist/cjs/index-314ad166.js +0 -967
  134. package/dist/collection/components/navigation/menu-item-sidebar/menu-item-sidebar.css +0 -399
  135. package/dist/collection/components/navigation/menu-item-sidebar/menu-item-sidebar.js +0 -580
  136. package/dist/collection/components/navigation/menu-sidebar/menu-sidebar.css +0 -337
  137. package/dist/collection/components/navigation/menu-sidebar/menu-sidebar.js +0 -669
  138. package/dist/esm/color-box.entry.js +0 -15
  139. package/dist/esm/emotion.esm-87895ee1.js +0 -1395
  140. package/dist/esm/hy-accordion-container_5.entry.js +0 -570
  141. package/dist/esm/hy-adjacent-image-text.entry.js +0 -47
  142. package/dist/esm/hy-anchor-link-list.entry.js +0 -41
  143. package/dist/esm/hy-badge.entry.js +0 -17
  144. package/dist/esm/hy-banner.entry.js +0 -41
  145. package/dist/esm/hy-baseline.entry.js +0 -28
  146. package/dist/esm/hy-box-container.entry.js +0 -29
  147. package/dist/esm/hy-box.entry.js +0 -161
  148. package/dist/esm/hy-breadcrumbs.entry.js +0 -227
  149. package/dist/esm/hy-button.entry.js +0 -96
  150. package/dist/esm/hy-checkbox.entry.js +0 -29
  151. package/dist/esm/hy-collaboration.entry.js +0 -15
  152. package/dist/esm/hy-content-list-item.entry.js +0 -66
  153. package/dist/esm/hy-content-list.entry.js +0 -108
  154. package/dist/esm/hy-crisis-banner.entry.js +0 -15
  155. package/dist/esm/hy-cta-button.entry.js +0 -26
  156. package/dist/esm/hy-cta-link.entry.js +0 -22
  157. package/dist/esm/hy-desktop-menu-links.entry.js +0 -324
  158. package/dist/esm/hy-docs-container.entry.js +0 -15
  159. package/dist/esm/hy-dropdown-panel_2.entry.js +0 -22
  160. package/dist/esm/hy-dropdown.entry.js +0 -109
  161. package/dist/esm/hy-filter-group-item.entry.js +0 -13
  162. package/dist/esm/hy-filter-group.entry.js +0 -33
  163. package/dist/esm/hy-filter-list-type.entry.js +0 -24
  164. package/dist/esm/hy-filter-visibility-tool-reset_2.entry.js +0 -21
  165. package/dist/esm/hy-filter-visibility-tool.entry.js +0 -20
  166. package/dist/esm/hy-footer_5.entry.js +0 -193
  167. package/dist/esm/hy-general-list_2.entry.js +0 -89
  168. package/dist/esm/hy-grid-container.entry.js +0 -16
  169. package/dist/esm/hy-grid-item.entry.js +0 -27
  170. package/dist/esm/hy-grid-row.entry.js +0 -16
  171. package/dist/esm/hy-heading.entry.js +0 -63
  172. package/dist/esm/hy-hero.entry.js +0 -97
  173. package/dist/esm/hy-icon.entry.js +0 -360
  174. package/dist/esm/hy-image.entry.js +0 -46
  175. package/dist/esm/hy-ingress.entry.js +0 -26
  176. package/dist/esm/hy-introduction.entry.js +0 -51
  177. package/dist/esm/hy-key-figure-group.entry.js +0 -73
  178. package/dist/esm/hy-key-figure.entry.js +0 -18
  179. package/dist/esm/hy-key-highlight-group.entry.js +0 -40
  180. package/dist/esm/hy-key-highlight.entry.js +0 -18
  181. package/dist/esm/hy-large-process-flow-phase.entry.js +0 -33
  182. package/dist/esm/hy-large-process-flow.entry.js +0 -40
  183. package/dist/esm/hy-link-box-list.entry.js +0 -50
  184. package/dist/esm/hy-link-box.entry.js +0 -75
  185. package/dist/esm/hy-link-list.entry.js +0 -40
  186. package/dist/esm/hy-link.entry.js +0 -21
  187. package/dist/esm/hy-list-item.entry.js +0 -235
  188. package/dist/esm/hy-logo-grid-item.entry.js +0 -26
  189. package/dist/esm/hy-logo-grid.entry.js +0 -16
  190. package/dist/esm/hy-main-content-wrapper.entry.js +0 -16
  191. package/dist/esm/hy-main.entry.js +0 -21
  192. package/dist/esm/hy-menu-item-sidebar.entry.js +0 -155
  193. package/dist/esm/hy-menu-item.entry.js +0 -143
  194. package/dist/esm/hy-menu-language-item.entry.js +0 -21
  195. package/dist/esm/hy-menu-language.entry.js +0 -87
  196. package/dist/esm/hy-menu-level-container.entry.js +0 -133
  197. package/dist/esm/hy-menu-main-group.entry.js +0 -147
  198. package/dist/esm/hy-menu-mobile-breadcrumb.entry.js +0 -21
  199. package/dist/esm/hy-menu-sidebar.entry.js +0 -286
  200. package/dist/esm/hy-menu.entry.js +0 -107
  201. package/dist/esm/hy-mobile-menu-shortcuts.entry.js +0 -22
  202. package/dist/esm/hy-opening-hours-content.entry.js +0 -39
  203. package/dist/esm/hy-opening-hours.entry.js +0 -31
  204. package/dist/esm/hy-pager-item.entry.js +0 -41
  205. package/dist/esm/hy-pager.entry.js +0 -16
  206. package/dist/esm/hy-paragraph-text.entry.js +0 -41
  207. package/dist/esm/hy-person-card.entry.js +0 -80
  208. package/dist/esm/hy-person-profile.entry.js +0 -57
  209. package/dist/esm/hy-process-flow-box.entry.js +0 -24
  210. package/dist/esm/hy-process.entry.js +0 -53
  211. package/dist/esm/hy-prominent-image.entry.js +0 -32
  212. package/dist/esm/hy-quote.entry.js +0 -26
  213. package/dist/esm/hy-row.entry.js +0 -38
  214. package/dist/esm/hy-search-field.entry.js +0 -37
  215. package/dist/esm/hy-section-container.entry.js +0 -15
  216. package/dist/esm/hy-shortcuts.entry.js +0 -56
  217. package/dist/esm/hy-site-header_3.entry.js +0 -438
  218. package/dist/esm/hy-table-container.entry.js +0 -16
  219. package/dist/esm/hy-tag.entry.js +0 -16
  220. package/dist/esm/hy-tiny-text.entry.js +0 -16
  221. package/dist/esm/hy-twitter-feed.entry.js +0 -23
  222. package/dist/esm/hy-two-columns.entry.js +0 -17
  223. package/dist/esm/hy-user-login-form.entry.js +0 -19
  224. package/dist/esm/hy-video.entry.js +0 -63
  225. package/dist/esm/index-41a1e449.js +0 -965
  226. package/dist/huds-lib/p-003597de.entry.js +0 -1
  227. package/dist/huds-lib/p-00a1f0c4.entry.js +0 -1
  228. package/dist/huds-lib/p-045ec3b7.entry.js +0 -6
  229. package/dist/huds-lib/p-065ae4a9.entry.js +0 -1
  230. package/dist/huds-lib/p-095afc4e.entry.js +0 -1
  231. package/dist/huds-lib/p-0a37696c.entry.js +0 -1
  232. package/dist/huds-lib/p-0b2e3057.entry.js +0 -1
  233. package/dist/huds-lib/p-0ba24d1d.entry.js +0 -1
  234. package/dist/huds-lib/p-0d751fcd.entry.js +0 -1
  235. package/dist/huds-lib/p-0def2cda.entry.js +0 -1
  236. package/dist/huds-lib/p-0f9c4661.entry.js +0 -8
  237. package/dist/huds-lib/p-114f1281.entry.js +0 -1
  238. package/dist/huds-lib/p-14a7e308.entry.js +0 -1
  239. package/dist/huds-lib/p-179221b4.entry.js +0 -1
  240. package/dist/huds-lib/p-1ed13a8e.entry.js +0 -1
  241. package/dist/huds-lib/p-1f5cb6ed.entry.js +0 -1
  242. package/dist/huds-lib/p-24c25896.entry.js +0 -1
  243. package/dist/huds-lib/p-27a613af.entry.js +0 -1
  244. package/dist/huds-lib/p-29a5f847.entry.js +0 -1
  245. package/dist/huds-lib/p-2c83cfcf.entry.js +0 -1
  246. package/dist/huds-lib/p-309dde97.entry.js +0 -1
  247. package/dist/huds-lib/p-31d9c326.entry.js +0 -1
  248. package/dist/huds-lib/p-349817f6.entry.js +0 -1
  249. package/dist/huds-lib/p-3641da70.entry.js +0 -1
  250. package/dist/huds-lib/p-3bf480d9.entry.js +0 -1
  251. package/dist/huds-lib/p-3d35d226.entry.js +0 -1
  252. package/dist/huds-lib/p-3e4344d2.entry.js +0 -1
  253. package/dist/huds-lib/p-3f050660.entry.js +0 -1
  254. package/dist/huds-lib/p-40ab2704.entry.js +0 -6
  255. package/dist/huds-lib/p-4252e76e.entry.js +0 -1
  256. package/dist/huds-lib/p-47d919f5.entry.js +0 -1
  257. package/dist/huds-lib/p-488053bf.entry.js +0 -1
  258. package/dist/huds-lib/p-497703c3.entry.js +0 -1
  259. package/dist/huds-lib/p-4d4869f9.entry.js +0 -1
  260. package/dist/huds-lib/p-518b6042.entry.js +0 -1
  261. package/dist/huds-lib/p-51dd0bf2.entry.js +0 -1
  262. package/dist/huds-lib/p-521557a1.entry.js +0 -1
  263. package/dist/huds-lib/p-570b0c50.entry.js +0 -1
  264. package/dist/huds-lib/p-604e4a62.entry.js +0 -1
  265. package/dist/huds-lib/p-608090da.entry.js +0 -1
  266. package/dist/huds-lib/p-6089a8b3.entry.js +0 -1
  267. package/dist/huds-lib/p-67b6fddc.entry.js +0 -1
  268. package/dist/huds-lib/p-69559eff.entry.js +0 -1
  269. package/dist/huds-lib/p-69849560.entry.js +0 -1
  270. package/dist/huds-lib/p-6c54b7bc.entry.js +0 -1
  271. package/dist/huds-lib/p-6c56dcbb.entry.js +0 -1
  272. package/dist/huds-lib/p-7225fde6.entry.js +0 -1
  273. package/dist/huds-lib/p-734da8db.entry.js +0 -1
  274. package/dist/huds-lib/p-75f84185.entry.js +0 -1
  275. package/dist/huds-lib/p-795c4838.entry.js +0 -1
  276. package/dist/huds-lib/p-7ca87180.entry.js +0 -1
  277. package/dist/huds-lib/p-7dd26e2a.entry.js +0 -1
  278. package/dist/huds-lib/p-830cfabf.entry.js +0 -69
  279. package/dist/huds-lib/p-8a7b55ed.entry.js +0 -1
  280. package/dist/huds-lib/p-8f314f7f.entry.js +0 -1
  281. package/dist/huds-lib/p-90a2d5bd.entry.js +0 -1
  282. package/dist/huds-lib/p-98487b2c.entry.js +0 -1
  283. package/dist/huds-lib/p-9a45dd9a.entry.js +0 -1
  284. package/dist/huds-lib/p-9b5113e0.entry.js +0 -1
  285. package/dist/huds-lib/p-a0a1ead3.entry.js +0 -1
  286. package/dist/huds-lib/p-a4745be5.entry.js +0 -1
  287. package/dist/huds-lib/p-a54ddb3e.entry.js +0 -1
  288. package/dist/huds-lib/p-a7922d26.entry.js +0 -1
  289. package/dist/huds-lib/p-a82d4779.js +0 -1
  290. package/dist/huds-lib/p-aca0eb7d.entry.js +0 -1
  291. package/dist/huds-lib/p-afe191fd.entry.js +0 -1
  292. package/dist/huds-lib/p-b7268181.entry.js +0 -1
  293. package/dist/huds-lib/p-baada6d9.entry.js +0 -1
  294. package/dist/huds-lib/p-bd31e4b5.entry.js +0 -1
  295. package/dist/huds-lib/p-bd56a257.entry.js +0 -1
  296. package/dist/huds-lib/p-c2b771ef.entry.js +0 -1
  297. package/dist/huds-lib/p-c87b7917.entry.js +0 -1
  298. package/dist/huds-lib/p-ca66cf04.js +0 -1
  299. package/dist/huds-lib/p-d56f5a7a.entry.js +0 -1
  300. package/dist/huds-lib/p-d5a6bba6.entry.js +0 -1
  301. package/dist/huds-lib/p-db4dc333.entry.js +0 -1
  302. package/dist/huds-lib/p-dc6a653f.entry.js +0 -1
  303. package/dist/huds-lib/p-dd2d9165.entry.js +0 -1
  304. package/dist/huds-lib/p-e24fb999.entry.js +0 -1
  305. package/dist/huds-lib/p-e430c2a0.entry.js +0 -1
  306. package/dist/huds-lib/p-e7abd29a.entry.js +0 -1
  307. package/dist/huds-lib/p-e7c21f51.entry.js +0 -1
  308. package/dist/huds-lib/p-e834c239.entry.js +0 -1
  309. package/dist/huds-lib/p-efc359e3.entry.js +0 -1
  310. package/dist/huds-lib/p-f0d518a5.entry.js +0 -1
  311. package/dist/huds-lib/p-fbf11f85.entry.js +0 -1
  312. package/dist/huds-lib/p-fcf2d27d.entry.js +0 -1
  313. package/dist/huds-lib/p-ff62346a.entry.js +0 -1
  314. package/dist/loader/cdn.js +0 -3
  315. package/dist/loader/index.cjs.js +0 -3
  316. package/dist/loader/index.d.ts +0 -13
  317. package/dist/loader/index.es2017.js +0 -3
  318. package/dist/loader/index.js +0 -4
  319. package/dist/loader/package.json +0 -10
  320. package/dist/types/components/navigation/menu-item-sidebar/menu-item-sidebar.d.ts +0 -34
  321. package/dist/types/components/navigation/menu-sidebar/menu-sidebar.d.ts +0 -90
  322. package/loader/index.mjs +0 -22
  323. package/loader/node-main.js +0 -3
@@ -1,570 +0,0 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-083c8c8a.js';
2
- import { A as AccordionVariants } from './utils-708bbefe.js';
3
-
4
- const accordionContainerCss = ":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:#f9a21a;--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-accordion-container{width:100%}";
5
-
6
- const AccordionContainer = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- }
10
- /*
11
- * data-allow-toggle
12
- Allow for each toggle to both open and close individually
13
-
14
- data-allow-multiple
15
- Allow for multiple accordion sections to be expanded at the same time.
16
- Assumes data-allow-toggle otherwise you would not be able to close any of the accordions
17
- */
18
- render() {
19
- const classAttributes = ['hy-accordion-container', 'js-hy-accordion'];
20
- const id = this.accordionid.toLowerCase().replace(/\W/g, '-');
21
- return (h(Host, null, h("div", { id: id, class: classAttributes.join(' '), "data-allow-multiple": "true", "data-allow-toggle": "true" }, h("slot", null)), h("hy-box", { mb: "1.75, 1.75, 2, 2.5" })));
22
- }
23
- };
24
- AccordionContainer.style = accordionContainerCss;
25
-
26
- const accordionItemCss = ":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:#f9a21a;--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-accordion__item{margin-bottom:12px}.hy-accordion__item__is-open{border:1px solid var(--grayscale-dark)}.hy-accordion__item__is-open .hy-accordion--heading{margin:0 auto}.hy-accordion__item__is-open .hy-accordion--heading .hy-accordion--heading__icon{-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.hy-accordion__item.mini{margin-bottom:1rem;margin-top:1rem}.hy-accordion__item__is-open.mini{margin-bottom:0;margin-top:0}.hy-accordion__item__is-open.mini .hy-accordion__item--container{border-bottom:1px solid var(--grayscale-medium-dark);border-top:1px solid var(--grayscale-medium-dark);padding-top:16px;padding-bottom:32px;margin-top:-1px;-webkit-transition:padding 0.5s ease-in-out;transition:padding 0.5s ease-in-out}@media (min-width: 30rem){.hy-accordion__item__is-open.mini .hy-accordion__item--container{padding-top:28px;padding-bottom:30px}}@media (min-width: 60rem){.hy-accordion__item__is-open.mini .hy-accordion__item--container{padding-top:32px;padding-bottom:40px}}.hy-accordion__item.hy-accordion__item__is-open.mini{background-color:var(--grayscale-white);border:none;-webkit-box-shadow:0 -10px 10px -10px rgba(0, 49, 70, 0.05);box-shadow:0 -10px 10px -10px rgba(0, 49, 70, 0.05)}.hy-accordion--heading{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;letter-spacing:-0.69px;line-height:28px;margin:0 auto;-webkit-transition:all 0.25s ease-in-out;transition:all 0.25s ease-in-out;width:100%}.hy-accordion--heading .hy-accordion__link{text-decoration:none}.hy-accordion--heading .hy-accordion__link:hover{text-decoration:none}.hy-accordion--heading .hy-accordion__button{font-size:1.125rem;line-height:22px;font-weight:700;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;background-color:var(--grayscale-background-box);border:none;color:var(--brand-main-nearly-black);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;font-family:var(--main-font-family);height:100%;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;letter-spacing:-0.45px;padding:13px 20px 13px 16px;-webkit-transition:all 0.35s ease-in;transition:all 0.35s ease-in;width:100%}.hy-accordion--heading .hy-accordion__button:hover{cursor:pointer}@media (min-width: 30rem){.hy-accordion--heading .hy-accordion__button{padding:1rem 2rem 1rem 1.25rem}}@media (min-width: 1601px){.hy-accordion--heading .hy-accordion__button{font-size:1.25rem;line-height:24px;letter-spacing:-0.5px}}@media (min-width: 75.0625rem){.hy-accordion--heading .hy-accordion__button--large{font-size:1.25rem;line-height:24px;letter-spacing:-0.5px}}@media (min-width: 75.0625rem){.hy-accordion--heading .hy-accordion__button--large .hy-accordion--heading__icon svg{height:20px;width:20px}}.hy-accordion--heading .hy-accordion__button span{text-align:left}.hy-accordion--heading .hy-accordion__button[aria-expanded=true]{background:none;position:relative}.hy-accordion--heading .hy-accordion__button[aria-expanded=true]:after{background-color:var(--grayscale-medium-dark);bottom:0;content:\"\";height:1px;left:16px;position:absolute;right:20px}.hy-accordion--heading .hy-accordion__button *{pointer-events:none}.hy-accordion--heading .hy-accordion--heading__icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:22px;margin-right:8px;z-index:0}.hy-accordion--heading .hy-accordion--heading__icon svg{fill:var(--brand-main)}@media (min-width: 30rem){.hy-accordion--heading .hy-accordion--heading__icon svg{height:18px;width:18px}}@media (min-width: 1601px){.hy-accordion--heading .hy-accordion--heading__icon svg{height:20px;width:20px}}.hy-accordion--heading.mini .hy-accordion__button{font-size:1.125rem;line-height:22px;background-color:var(--grayscale-white);color:var(--link-blue);letter-spacing:-0.56px;padding:0}@media (min-width: 30rem){.hy-accordion--heading.mini .hy-accordion__button{font-size:1.375rem;line-height:28px;letter-spacing:-0.69px;padding:0}}.hy-accordion--heading.mini .hy-accordion__button[aria-expanded=true]{color:var(--grayscale-black);margin-bottom:20px}@media (min-width: 30rem){.hy-accordion--heading.mini .hy-accordion__button[aria-expanded=true]{margin-bottom:28px}}@media (min-width: 60rem){.hy-accordion--heading.mini .hy-accordion__button[aria-expanded=true]{margin-bottom:32px}}.hy-accordion--heading.mini .hy-accordion--heading__icon{margin-right:0.5rem;z-index:0}@media (min-width: 30rem){.hy-accordion--heading.mini .hy-accordion--heading__icon{margin-right:10px}}.hy-accordion--heading.mini .hy-accordion--heading__icon svg{fill:var(--brand-main-light);height:14px;width:14px}@media (min-width: 30rem){.hy-accordion--heading.mini .hy-accordion--heading__icon svg{height:16px;width:16px}}.hy-accordion__content{display:block;height:0;padding:0;overflow:hidden;-webkit-transition:all 0.25s ease-in-out;transition:all 0.25s ease-in-out}.hy-accordion__content--inner-wrapper{display:block;padding:16px 12px}@media (min-width: 30rem){.hy-accordion__content--inner-wrapper{padding:15px 16px}}@media (min-width: 60rem){.hy-accordion__content--inner-wrapper{padding:16px}}@media (min-width: 75.0625rem){.hy-accordion__content--inner-wrapper--large{padding:24px 20px}}@media (min-width: 1601px){.hy-accordion__content--inner-wrapper{padding:24px 20px}}.hy-accordion__content--inner-wrapper--mini{padding:0}.hy-accordion__content--inner-wrapper--mini .course-heading h4{padding-top:0 !important}";
27
-
28
- let keys$1 = {
29
- enter: 'Enter',
30
- tab: 'Tab',
31
- pageUp: 'PageUp',
32
- pageDown: 'PageDown',
33
- arrowUp: 'ArrowUp',
34
- arrowDown: 'ArrowDown',
35
- home: 'Home',
36
- end: 'End', //35
37
- };
38
- const AccordionItem = class {
39
- constructor(hostRef) {
40
- registerInstance(this, hostRef);
41
- this.variant = AccordionVariants.default;
42
- this.headerstyle = 'common';
43
- this.showOpen = false;
44
- this.ready = false;
45
- }
46
- componentDidLoad() {
47
- this.ready = true;
48
- let hyMainDiv = this.el.closest('.hy-main');
49
- if (hyMainDiv) {
50
- if (!hyMainDiv.classList.contains('with-sidebar')) {
51
- this.headerstyle = 'large';
52
- }
53
- }
54
- }
55
- componentDidRender() {
56
- if (window.location.hash) {
57
- this.expandPanelByAnchor(window.location.hash);
58
- }
59
- document.querySelectorAll('.hy-accordion__content').forEach(function (accordion) {
60
- let showOpen = accordion.classList.contains('open');
61
- let element = accordion;
62
- if (showOpen) {
63
- element.style.display = 'block';
64
- element.style.height = element.scrollHeight + 'px';
65
- }
66
- else {
67
- element.style.height = 0 + 'px';
68
- element.style.display = 'none';
69
- }
70
- });
71
- }
72
- onHashChange() {
73
- if (window.location.hash) {
74
- this.expandPanelByAnchor(window.location.hash);
75
- }
76
- }
77
- handleKeyDown(event) {
78
- const containerId = this.el.parentElement.id;
79
- let accordion = document.querySelectorAll(`#${containerId}`)[0];
80
- const triggers = Array.prototype.slice.call(accordion.querySelectorAll('.hy-accordion__button'));
81
- let target = event.target;
82
- const key = event.code;
83
- const ctrlModifier = event.ctrlKey && [keys$1.pageDown, keys$1.pageUp].includes(key); //key.match(/33|34/);
84
- if (target.classList.contains('hy-accordion__button')) {
85
- // Up/ Down arrow and Control + Page Up/ Page Down keyboard operations
86
- if ([keys$1.arrowDown, keys$1.arrowUp].includes(key) || ctrlModifier) {
87
- const index = triggers.indexOf(target);
88
- const direction = [keys$1.arrowDown, keys$1.pageDown].includes(key) ? 1 : -1;
89
- const length = triggers.length;
90
- const newIndex = (index + length + direction) % length;
91
- triggers[newIndex].focus();
92
- event.preventDefault();
93
- }
94
- else if ([keys$1.home, keys$1.end].includes(key)) {
95
- switch (key) {
96
- // Go to first accordion
97
- case keys$1.home:
98
- triggers[0].focus();
99
- break;
100
- // Go to last accordion
101
- case keys$1.end:
102
- triggers[triggers.length - 1].focus();
103
- break;
104
- }
105
- event.preventDefault();
106
- }
107
- }
108
- }
109
- handleClick(event) {
110
- const target = event.target;
111
- const accordionContainer = this.el.parentElement;
112
- const allowMultiple = accordionContainer.hasAttribute('data-allow-multiple');
113
- const allowToggle = allowMultiple ? allowMultiple : accordionContainer.hasAttribute('data-allow-toggle');
114
- if (target && target.tagName.toLowerCase() === 'button') {
115
- let targetParent = target.closest('.hy-accordion__item');
116
- let targetContent = targetParent.getElementsByClassName('hy-accordion__content')[0];
117
- const isExpanded = target.getAttribute('aria-expanded') === 'true';
118
- const activeButtonElement = accordionContainer.querySelector('[aria-expanded="true"]');
119
- if (!allowMultiple && activeButtonElement && activeButtonElement !== target) {
120
- activeButtonElement.setAttribute('aria-expanded', 'false');
121
- this.collapseSection(targetContent);
122
- if (targetParent.classList.contains('hy-accordion__item__is-open')) {
123
- targetParent.classList.remove('hy-accordion__item__is-open');
124
- }
125
- accordionContainer
126
- .querySelector(`#${activeButtonElement.getAttribute('aria-controls')}`)
127
- .setAttribute('aria-hidden', 'true');
128
- if (!allowToggle) {
129
- activeButtonElement.removeAttribute('aria-disabled');
130
- }
131
- }
132
- if (!isExpanded) {
133
- this.expandSection(targetContent);
134
- target.setAttribute('aria-expanded', 'true');
135
- targetParent.classList.add('hy-accordion__item__is-open');
136
- accordionContainer
137
- .querySelector(`#${target.getAttribute('aria-controls')}`)
138
- .setAttribute('aria-hidden', 'false');
139
- if (!allowToggle) {
140
- target.setAttribute('aria-disabled', 'true');
141
- }
142
- }
143
- else if (allowToggle && isExpanded) {
144
- target.setAttribute('aria-expanded', 'false');
145
- this.collapseSection(targetContent);
146
- if (targetParent.classList.contains('hy-accordion__item__is-open')) {
147
- targetParent.classList.remove('hy-accordion__item__is-open');
148
- }
149
- accordionContainer
150
- .querySelector(`#${target.getAttribute('aria-controls')}`)
151
- .setAttribute('aria-hidden', 'true');
152
- }
153
- event.preventDefault();
154
- event.stopImmediatePropagation();
155
- }
156
- }
157
- expandPanelByAnchor(anchor) {
158
- setTimeout(() => {
159
- if (anchor.length > 0) {
160
- anchor = anchor.substr(1);
161
- let target = document.querySelectorAll(`[id=${anchor}]`)[0];
162
- if (target && target.classList.contains('hy-accordion__button')) {
163
- let targetParent = target.closest('.hy-accordion__item');
164
- let targetContent = targetParent.querySelectorAll('.hy-accordion__content')[0];
165
- this.expandSection(targetContent);
166
- target.setAttribute('aria-expanded', 'true');
167
- targetParent.classList.add('hy-accordion__item__is-open');
168
- const targetElementRect = target.getBoundingClientRect();
169
- window.scrollTo({ top: window.scrollY + targetElementRect.top - 200, behavior: 'smooth' });
170
- const containerId = targetParent.parentElement.parentElement.id;
171
- if (containerId.length > 0) {
172
- let accordion = document.querySelectorAll(`#${containerId}`)[0];
173
- accordion.querySelector(`#${target.getAttribute('aria-controls')}`).setAttribute('aria-hidden', 'false');
174
- }
175
- }
176
- }
177
- }, 200);
178
- }
179
- collapseSection(element) {
180
- element.style.height = 0 + 'px';
181
- element.setAttribute('data-collapsed', 'true');
182
- setTimeout(() => {
183
- element.style.display = 'none';
184
- }, 250);
185
- }
186
- expandSection(element) {
187
- element.style.display = 'block';
188
- element.style.height = element.scrollHeight + 'px';
189
- element.setAttribute('data-collapsed', 'false');
190
- }
191
- render() {
192
- const containerId = this.el.parentElement.id;
193
- if (this.ready && containerId.length > 0) {
194
- document.querySelectorAll(`#${containerId}`).forEach(function (accordion) {
195
- if (accordion) {
196
- accordion.querySelectorAll('.hy-accordion__button').forEach(function (trigger) {
197
- trigger.addEventListener('focus', function () {
198
- trigger.classList.add('focus');
199
- });
200
- trigger.addEventListener('blur', function () {
201
- trigger.classList.remove('focus');
202
- });
203
- });
204
- }
205
- });
206
- }
207
- const classIsOpen = this.showOpen ? 'hy-accordion__item__is-open' : '';
208
- const classContentIsOpen = this.showOpen ? 'open' : '';
209
- const classAttributes = ['hy-accordion__item', this.variant, classIsOpen].join(' ');
210
- const classInnerWrapper = ['hy-accordion__item--container', this.variant].join(' ');
211
- const classHeadingAttributes = ['hy-accordion--heading', this.variant].join(' ');
212
- const classContentAttributes = [
213
- 'hy-accordion__content',
214
- `hy-accordion__content--${this.variant}`,
215
- this.variant,
216
- classContentIsOpen,
217
- ].join(' ');
218
- const classContentInnerWrapper = [
219
- 'hy-accordion__content--inner-wrapper',
220
- `hy-accordion__content--inner-wrapper--${this.headerstyle}`,
221
- `hy-accordion__content--inner-wrapper--${this.variant}`,
222
- ].join(' ');
223
- const titleAsId = this.accordiontitle.toLowerCase().replace(/\W/g, '-');
224
- const accordionItemHref = '#' + titleAsId + '--title';
225
- const ariaExpanded = this.showOpen ? 'true' : 'false';
226
- const ariaHidden = this.showOpen ? 'false' : 'true';
227
- const dataCollapsed = this.showOpen ? 'false' : 'true';
228
- return (h("div", { class: classAttributes }, h("div", { class: classInnerWrapper }, h("div", { class: classHeadingAttributes }, h("a", { href: accordionItemHref, class: "hy-accordion__link", tabindex: "-1" }, h("button", { "aria-expanded": ariaExpanded, "aria-controls": `${titleAsId}--content`, class: `hy-accordion__button hy-accordion__button--${this.headerstyle}`, id: `${titleAsId}--title` }, h("span", { class: "hy-accordion--heading__icon" }, h("hy-icon", { icon: 'hy-icon-caret-down', size: 16 })), h("span", null, this.accordiontitle)))), h("div", { "aria-labelledBy": `${titleAsId}--title`, class: classContentAttributes, id: `${titleAsId}--content`, role: "region", "aria-hidden": ariaHidden, "data-collapsed": dataCollapsed, style: { display: 'none' } }, h("div", { class: classContentInnerWrapper }, h("slot", null))))));
229
- }
230
- get el() { return getElement(this); }
231
- };
232
- AccordionItem.style = accordionItemCss;
233
-
234
- const personProfileListingCss = ":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:#f9a21a;--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-person-profile-listing{font-family:var(--main-font-family);padding:0;margin:0;list-style:none;display:grid;gap:24px}@media (min-width: 48rem){.hy-person-profile-listing{gap:32px 24px}}@media (min-width: 120.0625rem){.hy-person-profile-listing.col-2{grid-template-columns:repeat(2, 50%)}}.hy-person-profile-listing.col-4{gap:32px 24px}@media (min-width: 48rem){.hy-person-profile-listing.col-4{grid-template-columns:repeat(2, 50%)}}@media (min-width: 60rem){.hy-person-profile-listing.col-4{grid-template-columns:repeat(3, calc(100% / 3))}}@media (min-width: 120.0625rem){.hy-person-profile-listing.col-4{grid-template-columns:repeat(4, 25%)}}.hy-person-profile-listing__label{font-size:0.9375rem;line-height:18px;font-weight:700;letter-spacing:-0.28px;color:var(--grayscale-black);margin:0 0 8px}@media (min-width: 48rem){.hy-person-profile-listing__label{font-size:1.0625rem;line-height:20px;letter-spacing:-0.32px}}.hy-person-profile-listing__items{margin:0;padding:0;list-style:none;display:grid;gap:8px}.is-inline .hy-person-profile-listing__items{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:0}.text-tight .hy-person-profile-listing__items{gap:0}.hy-person-profile-listing__item{font-size:0.9375rem;line-height:22px;font-weight:400;color:var(--grayscale-black);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}@media (min-width: 48rem){.hy-person-profile-listing__item{font-size:1.0625rem;line-height:26px}}.hy-person-profile-listing__item a{text-decoration:none;color:var(--link-blue)}.hy-person-profile-listing__item a:hover{text-decoration:underline}.hy-person-profile-listing__item hy-icon{display:none !important;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:28px;width:28px}@media (min-width: 48rem){.hy-person-profile-listing__item hy-icon{display:-webkit-inline-box !important;display:-ms-inline-flexbox !important;display:inline-flex !important}}.without-icons .hy-person-profile-listing__item hy-icon{display:none !important}";
235
-
236
- const PersonProfile = class {
237
- constructor(hostRef) {
238
- registerInstance(this, hostRef);
239
- this.col = 'col-2';
240
- }
241
- render() {
242
- return (h(Host, null, h("ul", { class: `hy-person-profile-listing ${this.col} ${this.inline ? 'is-inline' : ''} ${this.withoutIcons ? 'without-icons' : ''} ${this.textSpacingTight ? 'text-tight' : ''}` }, this.items.map(({ label, items }) => {
243
- if (items.filter(({ label, url }) => label !== '' && url !== '').length > 0) {
244
- return (h("li", null, h("h3", { class: "hy-person-profile-listing__label" }, label), h("ul", { class: "hy-person-profile-listing__items" }, items.map(({ label, url }, index) => {
245
- if (url) {
246
- return (h("li", { class: "hy-person-profile-listing__item" }, h("a", { href: url }, index !== 0 && h("hy-icon", { icon: 'hy-icon-caret-right', size: 10 }), h("span", null, label))));
247
- }
248
- return (h("li", { class: "hy-person-profile-listing__item" }, index !== 0 && h("hy-icon", { icon: 'hy-icon-caret-right', size: 10 }), h("span", null, label)));
249
- }))));
250
- }
251
- }))));
252
- }
253
- };
254
- PersonProfile.style = personProfileListingCss;
255
-
256
- const hyTabsCss = ":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:#f9a21a;--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-tabs__container .hy-tablist-container{border-bottom:1px solid var(--grayscale-tabs-border);position:relative}.hy-tabs__container .hy-tab-scroll{background-color:rgba(255, 255, 255, 0.8);border:0;height:100%;margin:0;padding:0;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:4}.hy-tabs__container .hy-tab-scroll.is-hidden{display:none;visibility:hidden}.hy-tabs__container .hy-tab-scroll.is-disabled{background-color:var(--grayscale-medium)}.hy-tabs__container .hy-tab-scroll.is-disabled:hover{cursor:none}.hy-tabs__container .hy-tab-scroll:focus,.hy-tabs__container .hy-tab-scroll:hover{outline:none;cursor:pointer}.hy-tabs__container .hy-tab-scroll span{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--grayscale-black);border-radius:100%;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:32px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:32px}.hy-tabs__container .hy-tab-scroll span svg{fill:var(--grayscale-white);height:16px;width:16px}.hy-tabs__container .hy-tab-scroll__left{left:0;padding-right:8px}.hy-tabs__container .hy-tab-scroll__left svg{-webkit-transform:translateX(-1px);transform:translateX(-1px)}.hy-tabs__container .hy-tab-scroll__right{padding-left:8px;right:0}.hy-tabs__container .hy-tab-scroll__right svg{-webkit-transform:translateX(1px);transform:translateX(1px)}.hy-tabs__container [role=tablist]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin:0 0 -0.1em;overflow:scroll;position:relative;scrollbar-width:none;white-space:nowrap}.hy-tabs__container [role=tablist]::-webkit-scrollbar{display:none}.hy-tabs__container [role=tablist] a{display:-webkit-box;display:-ms-flexbox;display:flex;max-width:47.56%;text-decoration:none;-ms-flex-negative:0;flex-shrink:0}.hy-tabs__container [role=tablist] a:not(:first-of-type){margin-left:6px}@media (min-width: 30rem){.hy-tabs__container [role=tablist] a{max-width:35.37%}}@media (min-width: 60rem){.hy-tabs__container [role=tablist] a{max-width:23.13%}}@media (min-width: 75.0625rem){.hy-tabs__container [role=tablist] a{max-width:23.03%}}.hy-tabs__container [role=tab]{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;background-color:transparent;border:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-bottom:6px;padding:0}.hy-tabs__container [role=tab]>span{font-size:0.875rem;line-height:14px;font-weight:700;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--grayscale-background-box);border:0;color:var(--link-blue);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--main-font-family);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;letter-spacing:-0.5px;padding:8px 8px 7px;pointer-events:none;position:relative;text-align:left;white-space:normal;word-break:break-word;overflow-wrap:break-word;overflow-wrap:break-word}@media (min-width: 30rem){.hy-tabs__container [role=tab]>span{font-size:1rem;line-height:18px;padding:16px 12px 10px}}@media (min-width: 75.0625rem){.hy-tabs__container [role=tab]>span{font-size:1.125rem;line-height:20px;letter-spacing:-0.6px;padding:16px 16px 14px}}@supports (overflow-wrap: anywhere){.hy-tabs__container [role=tab]>span{overflow-wrap:anywhere}}@supports (overflow-wrap: anywhere){.hy-tabs__container [role=tab]>span{overflow-wrap:anywhere}}@media (min-width: 75.0625rem){.hy-tabs__container [role=tab].large{margin:0 12px 0 0}}.hy-tabs__container [role=tab][aria-selected=true]{border-bottom-width:0;border:1px solid var(--grayscale-dark);margin-bottom:0;z-index:3}.hy-tabs__container [role=tab][aria-selected=true]>span{background-color:var(--grayscale-white);color:var(--grayscale-black);padding-bottom:13px}@media (min-width: 30rem){.hy-tabs__container [role=tab][aria-selected=true]>span{padding-bottom:16px}}@media (min-width: 75.0625rem){.hy-tabs__container [role=tab][aria-selected=true]>span{padding-bottom:20px}}.hy-tabs__container [role=tab][aria-selected=true]>span:before{background-color:var(--grayscale-white);bottom:0;content:\"\";height:4px;left:0;position:absolute;right:0;-webkit-transform:translateY(50%);transform:translateY(50%)}.hy-tabs__container [role=tab][aria-selected=true]>span:after{background-color:var(--grayscale-black);bottom:0;content:\"\";height:4px;left:8px;position:absolute;right:8px}.hy-tabs__container [role=tab]:hover{border-radius:0;color:inherit;cursor:pointer;text-decoration:none}.hy-tabs__container [role=tab]:hover span{background-color:var(--hover-gray);color:var(--brand-main-active)}.hy-tabs__container [role=tabpanel]{border:1px solid var(--grayscale-dark);padding:28px 12px;position:relative;z-index:2}@media (min-width: 30rem){.hy-tabs__container [role=tabpanel]{padding:38px 15px}}@media (min-width: 60rem){.hy-tabs__container [role=tabpanel]{padding:40px 20px}}.hy-tabs__container [role=tabpanel]:focus{outline:0}";
257
-
258
- // For easy reference
259
- let keys = {
260
- end: 35,
261
- home: 36,
262
- left: 37,
263
- up: 38,
264
- right: 39,
265
- down: 40,
266
- delete: 46,
267
- };
268
- // Add or substract depending on key pressed
269
- let direction = {
270
- 37: -1,
271
- 38: -1,
272
- 39: 1,
273
- 40: 1,
274
- };
275
- let checkTimeout;
276
- let focusTimeout;
277
- let scrollTimeout;
278
- const HyTabs = class {
279
- constructor(hostRef) {
280
- registerInstance(this, hostRef);
281
- this.tabListLabel = '';
282
- this.focusTimeoutCleared = true;
283
- this.headerstyle = 'common';
284
- }
285
- componentWillLoad() {
286
- const tabItems = this.el.querySelectorAll('hy-tabs-item');
287
- if (tabItems) {
288
- this.tabButtonTitles = Array.from(tabItems).map((panel) => {
289
- return {
290
- title: panel.getAttribute('tab-title'),
291
- id: panel.getAttribute('tab-title').toLowerCase().replace(/\W/g, '-'),
292
- };
293
- });
294
- }
295
- }
296
- componentDidLoad() {
297
- let hyMainDiv = this.el.closest('.hy-main');
298
- if (hyMainDiv) {
299
- if (!hyMainDiv.classList.contains('with-sidebar')) {
300
- this.headerstyle = 'large';
301
- }
302
- }
303
- const tabContainer = this.el.querySelector('.hy-tabs__container');
304
- if (tabContainer) {
305
- this.generateArrays(tabContainer);
306
- const leftButton = this.el.querySelectorAll('.hy-tab-scroll__left')[0];
307
- const rightButton = this.el.querySelectorAll('.hy-tab-scroll__right')[0];
308
- const tabList = this.tabList;
309
- this.checkScrollHidden(tabList, leftButton, rightButton);
310
- tabList.addEventListener('scroll', () => {
311
- scrollTimeout = setTimeout(() => {
312
- window.clearTimeout(scrollTimeout);
313
- this.checkScrollHidden(tabList, leftButton, rightButton);
314
- }, 250);
315
- }, false);
316
- if (tabList.offSetWidth <= document.body.scrollWidth) {
317
- leftButton.classList.add('is-hidden');
318
- rightButton.classList.add('is-hidden');
319
- }
320
- const oneTabWidth = 250;
321
- rightButton.addEventListener('click', (e) => {
322
- e.preventDefault();
323
- rightButton.classList.add('is-disabled');
324
- tabList.scrollBy({
325
- top: 0,
326
- left: +oneTabWidth,
327
- behavior: 'smooth',
328
- });
329
- checkTimeout = window.setTimeout(() => {
330
- window.clearTimeout(checkTimeout);
331
- this.checkScrollHidden(tabList, leftButton, rightButton);
332
- rightButton.classList.remove('is-disabled');
333
- }, 250);
334
- });
335
- leftButton.addEventListener('click', (e) => {
336
- e.preventDefault();
337
- leftButton.classList.add('is-disabled');
338
- tabList.scrollBy({
339
- top: 0,
340
- left: -oneTabWidth,
341
- behavior: 'smooth',
342
- });
343
- checkTimeout = window.setTimeout(() => {
344
- window.clearTimeout(checkTimeout);
345
- this.checkScrollHidden(tabList, leftButton, rightButton);
346
- leftButton.classList.remove('is-disabled');
347
- }, 250);
348
- });
349
- }
350
- }
351
- generateArrays(tc) {
352
- this.tabList = tc.querySelectorAll('[role="tablist"]')[0];
353
- this.tabButtons = tc.querySelectorAll('[role="tab"]');
354
- this.tabPanelsState = [tc.querySelectorAll('[role="tabpanel"]')];
355
- if (this.tabButtons.length > 0) {
356
- this.addListeners(this.tabButtons, 1);
357
- this.activateTab(this.tabButtons[0], true);
358
- }
359
- }
360
- addListeners(tabs, index) {
361
- if (tabs.length > 1) {
362
- for (let i = 0; i < tabs.length; ++i) {
363
- tabs[index].addEventListener('click', this.clickEventListener);
364
- tabs[index].addEventListener('keydown', this.keydownEventListener);
365
- //tabs[index].addEventListener('keyup', this.keyupEventListener);
366
- tabs[index].index = index;
367
- }
368
- }
369
- }
370
- checkScrollHidden(tablist, leftButton, rightButton) {
371
- if (tablist.scrollLeft === 0) {
372
- leftButton.classList.add('is-hidden');
373
- }
374
- else {
375
- leftButton.classList.remove('is-hidden');
376
- }
377
- if (tablist.scrollLeft + tablist.clientWidth >= tablist.scrollWidth - 1) {
378
- rightButton.classList.add('is-hidden');
379
- }
380
- else {
381
- rightButton.classList.remove('is-hidden');
382
- }
383
- }
384
- // When a tab is clicked, activateTab is fired to activate it
385
- clickEventListener(event) {
386
- if (event) {
387
- const target = event.target;
388
- const tabs = this.tabButtonTitles;
389
- if (tabs) {
390
- tabs.forEach((tab) => {
391
- const id = Object.values(tab)[1];
392
- if (id === target.id) {
393
- this.activateTab(target, true);
394
- }
395
- });
396
- event.stopPropagation();
397
- event.stopImmediatePropagation();
398
- }
399
- }
400
- }
401
- keydownEventListener(event) {
402
- const key = event.keyCode;
403
- const tabs = this.tabButtonTitles;
404
- switch (key) {
405
- case keys.end:
406
- event.preventDefault();
407
- // Activate last tab
408
- this.activateTab(tabs[tabs.length - 1], true);
409
- break;
410
- case keys.home:
411
- event.preventDefault();
412
- // Activate first tab
413
- this.activateTab(tabs[0], true);
414
- break;
415
- // Up and down are in keydown
416
- // because we need to prevent page scroll >:)
417
- case keys.up:
418
- case keys.down:
419
- if (this.focusTimeoutCleared) {
420
- this.determineOrientation(event);
421
- }
422
- break;
423
- }
424
- }
425
- keyupEventListener(event) {
426
- const key = event.keyCode;
427
- switch (key) {
428
- case keys.left:
429
- case keys.right:
430
- event.preventDefault();
431
- if (this.focusTimeoutCleared) {
432
- this.determineOrientation(event);
433
- }
434
- break;
435
- }
436
- event.stopPropagation();
437
- event.stopImmediatePropagation();
438
- }
439
- determineOrientation(event) {
440
- const leftButton = this.el.querySelectorAll('.hy-tab-scroll__left')[0];
441
- const rightButton = this.el.querySelectorAll('.hy-tab-scroll__right')[0];
442
- const tabList = this.tabList;
443
- this.checkScrollHidden(tabList, leftButton, rightButton);
444
- const key = event.keyCode;
445
- const vertical = tabList.getAttribute('aria-orientation') == 'vertical';
446
- let proceed = false;
447
- if (vertical) {
448
- if (key === keys.up || key === keys.down) {
449
- event.preventDefault();
450
- proceed = true;
451
- }
452
- }
453
- else {
454
- if (key === keys.left || key === keys.right) {
455
- proceed = true;
456
- }
457
- }
458
- if (proceed) {
459
- this.switchTabOnArrowPress(event);
460
- }
461
- }
462
- switchTabOnArrowPress(event) {
463
- const pressed = event.keyCode;
464
- if (direction[pressed]) {
465
- const target = event.target;
466
- const tabs = this.tabButtons;
467
- for (let i = 0; i < tabs.length; i++) {
468
- if (tabs[i].id === target.id) {
469
- if (i > 0) {
470
- if (direction[pressed] === -1) {
471
- tabs[i - 1].focus();
472
- this.focusEventHandler(tabs[i - 1]);
473
- break;
474
- }
475
- }
476
- if (i < tabs.length - 1) {
477
- if (direction[pressed] === 1) {
478
- tabs[i + 1].focus();
479
- this.focusEventHandler(tabs[i + 1]);
480
- break;
481
- }
482
- }
483
- }
484
- }
485
- }
486
- }
487
- // Activates any given tab panel
488
- activateTab(tab, setFocus) {
489
- setFocus = setFocus || true;
490
- // Deactivate all other tabs
491
- this.deactivateTabs(this.tabButtons);
492
- // Remove tabindex attribute
493
- tab.removeAttribute('tabindex');
494
- tab.setAttribute('aria-selected', 'true');
495
- const controls = tab.getAttribute('aria-controls');
496
- this.el.querySelector(`#${controls}`).removeAttribute('hidden');
497
- if (setFocus) {
498
- tab.focus();
499
- }
500
- }
501
- // Deactivate all tabs and tab panels
502
- deactivateTabs(tabs) {
503
- for (let t = 0; t < tabs.length; t++) {
504
- tabs[t].setAttribute('tabindex', '-1');
505
- tabs[t].setAttribute('aria-selected', 'false');
506
- tabs[t].removeEventListener('focus', this.focusEventHandler);
507
- }
508
- const panels = this.tabPanelsState[0];
509
- for (let p = 0; p < panels.length; p++) {
510
- panels[p].setAttribute('hidden', 'hidden');
511
- }
512
- }
513
- focusEventHandler(tab) {
514
- const target = tab;
515
- this.focusTimeoutCleared = false;
516
- focusTimeout = window.setTimeout(() => {
517
- window.clearTimeout(focusTimeout);
518
- this.focusTimeoutCleared = true;
519
- const focused = document.activeElement;
520
- if (target === focused) {
521
- this.activateTab(target, false);
522
- }
523
- }, 250);
524
- }
525
- render() {
526
- const classComponentAttributes = ['hy-tabs__container', `hy-tabs__container__${this.headerstyle}`].join(' ');
527
- const id = this.tabId.toLowerCase().replace(/\W/g, '-');
528
- if (window.location.hash) {
529
- const tabHash = window.location.hash.substring(1);
530
- const isUrlHashed = this.tabButtonTitles.some((tab) => tab['id'] === tabHash);
531
- if (isUrlHashed) {
532
- const hashElement = document.getElementById(tabHash);
533
- if (hashElement) {
534
- this.activateTab(hashElement, true);
535
- const hashElementRect = hashElement.getBoundingClientRect();
536
- window.scrollTo({ top: window.scrollY + hashElementRect.top - 200, behavior: 'smooth' });
537
- }
538
- }
539
- }
540
- return [
541
- h("hy-box", { pt: "1.25, 1.25, 1.5, 2.5" }),
542
- h("div", { id: id, class: classComponentAttributes }, h("div", { class: "hy-tablist-container" }, h("button", { tabindex: "-1", class: "hy-tab-scroll hy-tab-scroll__left is-hidden", "aria-hidden": "true" }, h("span", null, h("hy-icon", { icon: 'hy-icon-caret-left', size: 16 }))), h("div", { role: "tablist", "aria-label": this.tabListLabel }, this.tabButtonTitles &&
543
- this.tabButtonTitles.map((item) => {
544
- const title = Object.values(item)[0];
545
- const id = title.toLowerCase().replace(/\W/g, '-');
546
- const titleAsId = title.toLowerCase().replace(/\W/g, '-');
547
- const tabItemHref = '#' + titleAsId;
548
- return (h("a", { href: tabItemHref, tabindex: "-1" }, h("button", { "aria-selected": "false", "aria-controls": `${id}-tab`, class: this.headerstyle, role: "tab", id: id }, h("span", null, title))));
549
- })), h("button", { tabindex: "-1", class: "hy-tab-scroll hy-tab-scroll__right", "aria-hidden": "true" }, h("span", null, h("hy-icon", { icon: 'hy-icon-caret-right', size: 16 })))), h("slot", null)),
550
- h("hy-box", { mb: "1.75, 1.75, 2, 2.5" }),
551
- ];
552
- }
553
- get el() { return getElement(this); }
554
- };
555
- HyTabs.style = hyTabsCss;
556
-
557
- const hyTabsItemCss = ":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:#f9a21a;--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}";
558
-
559
- const HyTabsItem = class {
560
- constructor(hostRef) {
561
- registerInstance(this, hostRef);
562
- }
563
- render() {
564
- const id = this.tabTitle.toLowerCase().replace(/\W/g, '-');
565
- return (h("div", { tabindex: "0", role: "tabpanel", id: `${id}-tab`, "aria-labelledby": id, hidden: true }, h("slot", null)));
566
- }
567
- };
568
- HyTabsItem.style = hyTabsItemCss;
569
-
570
- export { AccordionContainer as hy_accordion_container, AccordionItem as hy_accordion_item, PersonProfile as hy_person_profile_listing, HyTabs as hy_tabs, HyTabsItem as hy_tabs_item };
@@ -1,47 +0,0 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-083c8c8a.js';
2
- import { j as jsonParserWorker } from './globalScript-92c6b812.js';
3
-
4
- const adjacentImageTextCss = ":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:#f9a21a;--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-adjacent-image-text{background:var(--grayscale-background-box);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}@media (min-width: 30rem){.hy-adjacent-image-text{background:transparent}}@media (min-width: 60rem){.hy-adjacent-image-text{background:var(--grayscale-background-box);-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.hy-adjacent-image-text__image-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;margin-bottom:0;min-height:10rem;position:relative;padding-bottom:32px}@media (min-width: 30rem){.hy-adjacent-image-text__image-container{padding-bottom:0}}@media (min-width: 60rem){.hy-adjacent-image-text__image-container{-ms-flex-preferred-size:50%;flex-basis:50%;margin:0 calc(var(--gutter-wide) * -1) 0 0;z-index:1}}@media (min-width: 75.0625rem){.hy-adjacent-image-text__image-container{margin:0 calc(var(--gutter-extrawide) * -1) 0 0}}.hy-adjacent-image-text__image-container img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}@media (min-width: 30rem){.hy-adjacent-image-text__image-container img{max-height:420px;min-height:160px}}@media (min-width: 60rem){.hy-adjacent-image-text__image-container img{max-height:100%}}.hy-adjacent-image-text__text-container{background:var(--grayscale-background-box);border-image:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-border-image:none;-moz-border-image:none;-o-border-image:none}@media (min-width: 30rem){.hy-adjacent-image-text__text-container{border-left:1px solid transparent;border-image:-webkit-gradient(linear, left top, left bottom, from(var(--grayscale-medium-dark)), to(rgba(0, 0, 0, 0))) 1 0 0 100%;border-image:linear-gradient(to bottom, var(--grayscale-medium-dark), rgba(0, 0, 0, 0)) 1 0 0 100%;margin-left:66px;margin-top:-63px;padding-top:38px;position:relative;z-index:98;-moz-border-image:linear-gradient(to bottom, var(--grayscale-medium-dark), rgba(0, 0, 0, 0)) 1 0 0 100%;-o-border-image:linear-gradient(to bottom, var(--grayscale-medium-dark), rgba(0, 0, 0, 0)) 1 0 0 100%}}@media (min-width: 60rem){.hy-adjacent-image-text__text-container{border-image:none;border-left:none;-ms-flex-preferred-size:50%;flex-basis:50%;margin-left:0;margin-top:0;padding-top:0;z-index:0;-webkit-border-image:none;-moz-border-image:none;-o-border-image:none}}.hy-adjacent-image-text__text-container__links-wrapper{padding-left:1rem}@media (min-width: 30rem){.hy-adjacent-image-text__text-container__links-wrapper{padding-left:50px}}@media (min-width: 60rem){.hy-adjacent-image-text__text-container__links-wrapper{margin:0 0 0 14%;padding:0}}.hy-adjacent-image-text__text-container__info-wrapper{padding-left:0;padding-right:0}@media (min-width: 30rem){.hy-adjacent-image-text__text-container__info-wrapper{padding-left:50px}}@media (min-width: 60rem){.hy-adjacent-image-text__text-container__info-wrapper{margin:0 7% 0 14%;padding:0}}.hy-adjacent-image-text__text-container__title{font-size:1.375rem;line-height:28px;font-weight:700;color:var(--brand-main-nearly-black);font-family:var(--main-font-family);letter-spacing:-0.69px;margin-top:32px;padding:0 1rem}@media (min-width: 30rem){.hy-adjacent-image-text__text-container__title{font-size:2rem;line-height:40px;letter-spacing:-1px;margin-top:41px;padding:0}}.hy-adjacent-image-text__text-container__description{font-size:0.9375rem;line-height:22px;font-weight:400;color:var(--grayscale-dark);font-family:var(--main-font-family);margin:20px 0 32px 0;padding:0 1rem}@media (min-width: 30rem){.hy-adjacent-image-text__text-container__description{font-size:1rem;line-height:24px;margin:20px 0 61px 0;padding:0}}@media (min-width: 1601px){.hy-adjacent-image-text__text-container__description{font-size:1.0625rem;line-height:26px;margin-bottom:40px}}@media (min-width: 75.0625rem){.hy-adjacent-image-text__text-container__description__large{font-size:1.0625rem;line-height:26px}}.hy-adjacent-image-text__text-container__link{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-bottom:12px;margin-right:-6px}.hy-adjacent-image-text::after{content:\"\";clear:both}";
5
-
6
- const AdjacentImageText = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.headerstyle = 'default';
10
- this.imageUrl = null;
11
- this.imageAlt = '';
12
- this.disableLazy = false;
13
- this.textDescription = null;
14
- this.mainUrlIsExternal = false;
15
- this.mainUrlIsExternal2 = false;
16
- }
17
- async componentWillLoad() {
18
- this._sourceSet = await jsonParserWorker(this.sourceSet);
19
- }
20
- componentDidLoad() {
21
- let hyMainDiv = this.el.closest('.hy-main');
22
- if (hyMainDiv) {
23
- if (!hyMainDiv.classList.contains('with-sidebar')) {
24
- this.headerstyle = 'large';
25
- }
26
- }
27
- }
28
- render() {
29
- const classAttributes = ['hy-adjacent-image-text', `hy-adjacent-image-text__${this.headerstyle}`].join(' ');
30
- const contentClassAttributes = [
31
- 'hy-adjacent-image-text__text-container',
32
- 'hy-adjacent-image-text__text-container--left',
33
- ].join(' ');
34
- const imageLeftClassAttributes = ['hy-adjacent-image-text__image-container'].join(' ');
35
- const aspectRatioWidth = 6;
36
- const aspectRatioHeight = 4;
37
- const aspect = (aspectRatioHeight / aspectRatioWidth) * 100;
38
- const aspectRatio = {
39
- '--aspectRatio': `${aspect}%`,
40
- };
41
- return (h(Host, null, h("div", { class: classAttributes }, h("div", { class: imageLeftClassAttributes, style: aspectRatio }, this._sourceSet ? (h("picture", null, this._sourceSet.map((item) => (h("source", { srcSet: item.src, media: item.media, type: item.type, sizes: item.sizes ? item.sizes : '' }))), h("img", { loading: this.disableLazy ? 'eager' : 'lazy', alt: this.imageAlt, class: "hy-image__image", src: this.imageUrl }))) : (h("img", { loading: this.disableLazy ? 'eager' : 'lazy', alt: this.imageAlt, class: "hy-image__image", src: this.imageUrl }))), h("div", { class: contentClassAttributes }, h("div", { class: "hy-adjacent-image-text__text-container__info-wrapper" }, h("div", { class: "hy-adjacent-image-text__text-container__title" }, this.textTitle), h("p", { class: `hy-adjacent-image-text__text-container__description hy-adjacent-image-text__text-container__description__${this.headerstyle}` }, this.textDescription)), h("div", { class: "hy-adjacent-image-text__text-container__links-wrapper" }, this.mainUrl && (h("div", { class: "hy-adjacent-image-text__text-container__link" }, h("hy-cta-link", { "link-content": this.mainUrlTitle, "sc-label": this.mainUrlAriaLabel, url: this.mainUrl, "is-external": this.mainUrlIsExternal }))), this.mainUrl2 && (h("div", { class: "hy-adjacent-image-text__text-container__link" }, h("hy-cta-link", { "link-content": this.mainUrlTitle2, "sc-label": this.mainUrlAriaLabel2, url: this.mainUrl2, "is-external": this.mainUrlIsExternal2 })))))), h("hy-box", { mb: "1.75, 1.75, 2, 2.5" })));
42
- }
43
- get el() { return getElement(this); }
44
- };
45
- AdjacentImageText.style = adjacentImageTextCss;
46
-
47
- export { AdjacentImageText as hy_adjacent_image_text };