@itcenteratunihelsinki/huds-lib 0.5.12 → 0.5.16

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 (322) hide show
  1. package/dist/cjs/color-box.cjs.entry.js +1 -1
  2. package/dist/cjs/{globalScript-1c4e262e.js → globalScript-92a1392d.js} +1 -1
  3. package/dist/cjs/huds-lib.cjs.js +3 -3
  4. package/dist/cjs/hy-accordion-container.cjs.entry.js +1 -1
  5. package/dist/cjs/hy-accordion-item.cjs.entry.js +1 -1
  6. package/dist/cjs/hy-adjacent-image-text.cjs.entry.js +2 -2
  7. package/dist/cjs/hy-anchor-link-list.cjs.entry.js +2 -2
  8. package/dist/cjs/hy-badge.cjs.entry.js +1 -1
  9. package/dist/cjs/hy-banner.cjs.entry.js +1 -1
  10. package/dist/cjs/hy-baseline.cjs.entry.js +1 -1
  11. package/dist/cjs/hy-box-container.cjs.entry.js +1 -1
  12. package/dist/cjs/hy-box.cjs.entry.js +1 -1
  13. package/dist/cjs/hy-breadcrumbs.cjs.entry.js +2 -2
  14. package/dist/cjs/hy-button.cjs.entry.js +1 -1
  15. package/dist/cjs/hy-checkbox.cjs.entry.js +1 -1
  16. package/dist/cjs/hy-collaboration.cjs.entry.js +1 -1
  17. package/dist/cjs/hy-content-list-item.cjs.entry.js +2 -2
  18. package/dist/cjs/hy-content-list.cjs.entry.js +1 -1
  19. package/dist/cjs/hy-crisis-banner.cjs.entry.js +1 -1
  20. package/dist/cjs/hy-cta-button.cjs.entry.js +1 -1
  21. package/dist/cjs/hy-cta-link.cjs.entry.js +1 -1
  22. package/dist/cjs/hy-desktop-menu-links.cjs.entry.js +68 -102
  23. package/dist/cjs/hy-docs-container.cjs.entry.js +1 -1
  24. package/dist/cjs/hy-dropdown-panel_2.cjs.entry.js +1 -1
  25. package/dist/cjs/hy-dropdown.cjs.entry.js +2 -2
  26. package/dist/cjs/hy-filter-group-item.cjs.entry.js +1 -1
  27. package/dist/cjs/hy-filter-group.cjs.entry.js +1 -1
  28. package/dist/cjs/hy-filter-list-type.cjs.entry.js +1 -1
  29. package/dist/cjs/hy-filter-visibility-tool-reset_2.cjs.entry.js +1 -1
  30. package/dist/cjs/hy-filter-visibility-tool.cjs.entry.js +1 -1
  31. package/dist/cjs/hy-footer_5.cjs.entry.js +2 -2
  32. package/dist/cjs/hy-general-list_2.cjs.entry.js +2 -2
  33. package/dist/cjs/hy-grid-container.cjs.entry.js +1 -1
  34. package/dist/cjs/hy-grid-item.cjs.entry.js +1 -1
  35. package/dist/cjs/hy-grid-row.cjs.entry.js +1 -1
  36. package/dist/cjs/hy-heading.cjs.entry.js +9 -3
  37. package/dist/cjs/hy-hero.cjs.entry.js +5 -5
  38. package/dist/cjs/hy-icon.cjs.entry.js +1 -1
  39. package/dist/cjs/hy-image.cjs.entry.js +3 -3
  40. package/dist/cjs/hy-ingress.cjs.entry.js +1 -1
  41. package/dist/cjs/hy-introduction.cjs.entry.js +1 -1
  42. package/dist/cjs/hy-key-figure-group.cjs.entry.js +2 -2
  43. package/dist/cjs/hy-key-figure.cjs.entry.js +1 -1
  44. package/dist/cjs/hy-key-highlight-group.cjs.entry.js +2 -2
  45. package/dist/cjs/hy-key-highlight.cjs.entry.js +1 -1
  46. package/dist/cjs/hy-large-process-flow-phase.cjs.entry.js +2 -2
  47. package/dist/cjs/hy-large-process-flow.cjs.entry.js +2 -2
  48. package/dist/cjs/hy-link-box-list.cjs.entry.js +2 -2
  49. package/dist/cjs/hy-link-box.cjs.entry.js +1 -1
  50. package/dist/cjs/hy-link-list.cjs.entry.js +2 -2
  51. package/dist/cjs/hy-link.cjs.entry.js +1 -1
  52. package/dist/cjs/hy-list-item.cjs.entry.js +1 -1
  53. package/dist/cjs/hy-logo-grid-item.cjs.entry.js +1 -1
  54. package/dist/cjs/hy-logo-grid.cjs.entry.js +1 -1
  55. package/dist/cjs/hy-main-content-wrapper.cjs.entry.js +1 -1
  56. package/dist/cjs/hy-main.cjs.entry.js +1 -1
  57. package/dist/cjs/hy-menu-item-sidebar.cjs.entry.js +1 -1
  58. package/dist/cjs/hy-menu-item.cjs.entry.js +5 -3
  59. package/dist/cjs/hy-menu-language-item.cjs.entry.js +5 -10
  60. package/dist/cjs/hy-menu-language_2.cjs.entry.js +19 -24
  61. package/dist/cjs/hy-menu-level-container.cjs.entry.js +3 -3
  62. package/dist/cjs/hy-menu-main-group.cjs.entry.js +3 -3
  63. package/dist/cjs/hy-menu-sidebar.cjs.entry.js +1 -1
  64. package/dist/cjs/hy-menu.cjs.entry.js +7 -11
  65. package/dist/cjs/hy-mobile-menu-shortcuts.cjs.entry.js +26 -0
  66. package/dist/cjs/hy-opening-hours-content.cjs.entry.js +1 -1
  67. package/dist/cjs/hy-opening-hours.cjs.entry.js +1 -1
  68. package/dist/cjs/hy-pager-item.cjs.entry.js +1 -1
  69. package/dist/cjs/hy-pager.cjs.entry.js +1 -1
  70. package/dist/cjs/hy-paragraph-text.cjs.entry.js +1 -1
  71. package/dist/cjs/hy-person-card.cjs.entry.js +1 -1
  72. package/dist/cjs/hy-process-flow-box.cjs.entry.js +1 -1
  73. package/dist/cjs/hy-process.cjs.entry.js +2 -2
  74. package/dist/cjs/hy-prominent-image.cjs.entry.js +1 -1
  75. package/dist/cjs/hy-quote.cjs.entry.js +1 -1
  76. package/dist/cjs/hy-row.cjs.entry.js +1 -1
  77. package/dist/cjs/hy-search-field.cjs.entry.js +1 -1
  78. package/dist/cjs/hy-section-container.cjs.entry.js +1 -1
  79. package/dist/cjs/hy-shortcuts.cjs.entry.js +1 -1
  80. package/dist/cjs/hy-site-header_3.cjs.entry.js +43 -42
  81. package/dist/cjs/hy-table-container.cjs.entry.js +1 -1
  82. package/dist/cjs/hy-tabs-item.cjs.entry.js +1 -1
  83. package/dist/cjs/hy-tabs.cjs.entry.js +1 -1
  84. package/dist/cjs/hy-tag.cjs.entry.js +1 -1
  85. package/dist/cjs/hy-tiny-text.cjs.entry.js +1 -1
  86. package/dist/cjs/hy-twitter-feed.cjs.entry.js +1 -1
  87. package/dist/cjs/hy-two-columns.cjs.entry.js +1 -1
  88. package/dist/cjs/hy-user-login-form.cjs.entry.js +1 -1
  89. package/dist/cjs/hy-video.cjs.entry.js +1 -1
  90. package/dist/cjs/{index-52aea450.js → index-1b0fdf83.js} +2 -0
  91. package/dist/cjs/loader.cjs.js +3 -3
  92. package/dist/collection/collection-manifest.json +1 -0
  93. package/dist/collection/components/heading/heading.js +32 -5
  94. package/dist/collection/components/hy-hero/hy-hero.css +6 -0
  95. package/dist/collection/components/hy-hero/hy-hero.js +2 -2
  96. package/dist/collection/components/image/image.css +7 -0
  97. package/dist/collection/components/image/image.js +1 -1
  98. package/dist/collection/components/navigation/hy-menu-main-group/hy-menu-main-group.css +3 -21
  99. package/dist/collection/components/navigation/menu/menu.css +51 -27
  100. package/dist/collection/components/navigation/menu/menu.js +10 -12
  101. package/dist/collection/components/navigation/menu-item/menu-item.css +69 -50
  102. package/dist/collection/components/navigation/menu-item/menu-item.js +25 -2
  103. package/dist/collection/components/navigation/menu-language/menu-language.css +79 -137
  104. package/dist/collection/components/navigation/menu-language/menu-language.js +18 -40
  105. package/dist/collection/components/navigation/menu-language-item/menu-language-item.css +15 -81
  106. package/dist/collection/components/navigation/menu-language-item/menu-language-item.js +4 -28
  107. package/dist/collection/components/navigation/menu-level-container/menu-level-container.css +1 -0
  108. package/dist/collection/components/navigation/menu-level-container/menu-level-container.js +2 -1
  109. package/dist/collection/components/navigation/menu-mobile-breadcrumb/menu-mobile-breadcrumb.css +13 -31
  110. package/dist/collection/components/navigation/menu-mobile-breadcrumb/menu-mobile-breadcrumb.js +2 -8
  111. package/dist/collection/components/navigation/mobile-menu-shortcuts/mobile-menu-shortcuts.css +140 -0
  112. package/dist/collection/components/navigation/mobile-menu-shortcuts/mobile-menu-shortcuts.js +68 -0
  113. package/dist/collection/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.css +236 -455
  114. package/dist/collection/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.js +132 -131
  115. package/dist/collection/components/site-header/site-header.css +189 -405
  116. package/dist/collection/components/site-header/site-header.js +83 -108
  117. package/dist/collection/components/site-header/site-logo/site-logo.css +2 -1
  118. package/dist/collection/components/site-header/site-search/site-search.css +58 -113
  119. package/dist/collection/components/site-header/site-search/site-search.js +3 -3
  120. package/dist/esm/color-box.entry.js +1 -1
  121. package/dist/esm/{globalScript-5c9d232b.js → globalScript-968b96dd.js} +1 -1
  122. package/dist/esm/huds-lib.js +3 -3
  123. package/dist/esm/hy-accordion-container.entry.js +1 -1
  124. package/dist/esm/hy-accordion-item.entry.js +1 -1
  125. package/dist/esm/hy-adjacent-image-text.entry.js +2 -2
  126. package/dist/esm/hy-anchor-link-list.entry.js +2 -2
  127. package/dist/esm/hy-badge.entry.js +1 -1
  128. package/dist/esm/hy-banner.entry.js +1 -1
  129. package/dist/esm/hy-baseline.entry.js +1 -1
  130. package/dist/esm/hy-box-container.entry.js +1 -1
  131. package/dist/esm/hy-box.entry.js +1 -1
  132. package/dist/esm/hy-breadcrumbs.entry.js +2 -2
  133. package/dist/esm/hy-button.entry.js +1 -1
  134. package/dist/esm/hy-checkbox.entry.js +1 -1
  135. package/dist/esm/hy-collaboration.entry.js +1 -1
  136. package/dist/esm/hy-content-list-item.entry.js +2 -2
  137. package/dist/esm/hy-content-list.entry.js +1 -1
  138. package/dist/esm/hy-crisis-banner.entry.js +1 -1
  139. package/dist/esm/hy-cta-button.entry.js +1 -1
  140. package/dist/esm/hy-cta-link.entry.js +1 -1
  141. package/dist/esm/hy-desktop-menu-links.entry.js +68 -102
  142. package/dist/esm/hy-docs-container.entry.js +1 -1
  143. package/dist/esm/hy-dropdown-panel_2.entry.js +1 -1
  144. package/dist/esm/hy-dropdown.entry.js +2 -2
  145. package/dist/esm/hy-filter-group-item.entry.js +1 -1
  146. package/dist/esm/hy-filter-group.entry.js +1 -1
  147. package/dist/esm/hy-filter-list-type.entry.js +1 -1
  148. package/dist/esm/hy-filter-visibility-tool-reset_2.entry.js +1 -1
  149. package/dist/esm/hy-filter-visibility-tool.entry.js +1 -1
  150. package/dist/esm/hy-footer_5.entry.js +2 -2
  151. package/dist/esm/hy-general-list_2.entry.js +2 -2
  152. package/dist/esm/hy-grid-container.entry.js +1 -1
  153. package/dist/esm/hy-grid-item.entry.js +1 -1
  154. package/dist/esm/hy-grid-row.entry.js +1 -1
  155. package/dist/esm/hy-heading.entry.js +9 -3
  156. package/dist/esm/hy-hero.entry.js +5 -5
  157. package/dist/esm/hy-icon.entry.js +1 -1
  158. package/dist/esm/hy-image.entry.js +3 -3
  159. package/dist/esm/hy-ingress.entry.js +1 -1
  160. package/dist/esm/hy-introduction.entry.js +1 -1
  161. package/dist/esm/hy-key-figure-group.entry.js +2 -2
  162. package/dist/esm/hy-key-figure.entry.js +1 -1
  163. package/dist/esm/hy-key-highlight-group.entry.js +2 -2
  164. package/dist/esm/hy-key-highlight.entry.js +1 -1
  165. package/dist/esm/hy-large-process-flow-phase.entry.js +2 -2
  166. package/dist/esm/hy-large-process-flow.entry.js +2 -2
  167. package/dist/esm/hy-link-box-list.entry.js +2 -2
  168. package/dist/esm/hy-link-box.entry.js +1 -1
  169. package/dist/esm/hy-link-list.entry.js +2 -2
  170. package/dist/esm/hy-link.entry.js +1 -1
  171. package/dist/esm/hy-list-item.entry.js +1 -1
  172. package/dist/esm/hy-logo-grid-item.entry.js +1 -1
  173. package/dist/esm/hy-logo-grid.entry.js +1 -1
  174. package/dist/esm/hy-main-content-wrapper.entry.js +1 -1
  175. package/dist/esm/hy-main.entry.js +1 -1
  176. package/dist/esm/hy-menu-item-sidebar.entry.js +1 -1
  177. package/dist/esm/hy-menu-item.entry.js +5 -3
  178. package/dist/esm/hy-menu-language-item.entry.js +5 -10
  179. package/dist/esm/hy-menu-language_2.entry.js +19 -24
  180. package/dist/esm/hy-menu-level-container.entry.js +3 -3
  181. package/dist/esm/hy-menu-main-group.entry.js +3 -3
  182. package/dist/esm/hy-menu-sidebar.entry.js +1 -1
  183. package/dist/esm/hy-menu.entry.js +8 -12
  184. package/dist/esm/hy-mobile-menu-shortcuts.entry.js +22 -0
  185. package/dist/esm/hy-opening-hours-content.entry.js +1 -1
  186. package/dist/esm/hy-opening-hours.entry.js +1 -1
  187. package/dist/esm/hy-pager-item.entry.js +1 -1
  188. package/dist/esm/hy-pager.entry.js +1 -1
  189. package/dist/esm/hy-paragraph-text.entry.js +1 -1
  190. package/dist/esm/hy-person-card.entry.js +1 -1
  191. package/dist/esm/hy-process-flow-box.entry.js +1 -1
  192. package/dist/esm/hy-process.entry.js +2 -2
  193. package/dist/esm/hy-prominent-image.entry.js +1 -1
  194. package/dist/esm/hy-quote.entry.js +1 -1
  195. package/dist/esm/hy-row.entry.js +1 -1
  196. package/dist/esm/hy-search-field.entry.js +1 -1
  197. package/dist/esm/hy-section-container.entry.js +1 -1
  198. package/dist/esm/hy-shortcuts.entry.js +1 -1
  199. package/dist/esm/hy-site-header_3.entry.js +43 -42
  200. package/dist/esm/hy-table-container.entry.js +1 -1
  201. package/dist/esm/hy-tabs-item.entry.js +1 -1
  202. package/dist/esm/hy-tabs.entry.js +1 -1
  203. package/dist/esm/hy-tag.entry.js +1 -1
  204. package/dist/esm/hy-tiny-text.entry.js +1 -1
  205. package/dist/esm/hy-twitter-feed.entry.js +1 -1
  206. package/dist/esm/hy-two-columns.entry.js +1 -1
  207. package/dist/esm/hy-user-login-form.entry.js +1 -1
  208. package/dist/esm/hy-video.entry.js +1 -1
  209. package/dist/esm/{index-fbbc09ec.js → index-a38b87db.js} +2 -1
  210. package/dist/esm/loader.js +3 -3
  211. package/dist/huds-lib/huds-lib.esm.js +1 -1
  212. package/dist/huds-lib/p-00e94feb.entry.js +1 -0
  213. package/dist/huds-lib/p-0116a0a5.entry.js +1 -0
  214. package/dist/huds-lib/{p-6d9e4ec4.entry.js → p-01712ca5.entry.js} +1 -1
  215. package/dist/huds-lib/{p-75c2d150.entry.js → p-0260d2ca.entry.js} +1 -1
  216. package/dist/huds-lib/{p-2d4098f9.entry.js → p-0977618c.entry.js} +1 -1
  217. package/dist/huds-lib/{p-9693b155.entry.js → p-0ecafe0e.entry.js} +1 -1
  218. package/dist/huds-lib/{p-f05bdce1.entry.js → p-11e56f3a.entry.js} +1 -1
  219. package/dist/huds-lib/{p-9b834399.entry.js → p-15a21c20.entry.js} +1 -1
  220. package/dist/huds-lib/{p-b4bf94bd.entry.js → p-15db4fae.entry.js} +1 -1
  221. package/dist/huds-lib/{p-afd2181e.entry.js → p-164c361b.entry.js} +1 -1
  222. package/dist/huds-lib/{p-3056d124.entry.js → p-17c1f514.entry.js} +1 -1
  223. package/dist/huds-lib/{p-f6117edb.entry.js → p-1b85cd45.entry.js} +1 -1
  224. package/dist/huds-lib/{p-0bd337a8.entry.js → p-1d255319.entry.js} +1 -1
  225. package/dist/huds-lib/{p-eadd8cb3.entry.js → p-229d3332.entry.js} +1 -1
  226. package/dist/huds-lib/{p-1c78eb02.entry.js → p-241216a3.entry.js} +1 -1
  227. package/dist/huds-lib/{p-69fdd152.entry.js → p-258c3b0e.entry.js} +1 -1
  228. package/dist/huds-lib/{p-8c0ec875.entry.js → p-26104af0.entry.js} +1 -1
  229. package/dist/huds-lib/{p-665bab39.entry.js → p-2716775c.entry.js} +1 -1
  230. package/dist/huds-lib/{p-57ab4e6e.entry.js → p-2884f04c.entry.js} +1 -1
  231. package/dist/huds-lib/{p-abebc2df.entry.js → p-2ed13bb3.entry.js} +1 -1
  232. package/dist/huds-lib/{p-7b2c2481.entry.js → p-31e8b291.entry.js} +1 -1
  233. package/dist/huds-lib/{p-a847e865.entry.js → p-3862113f.entry.js} +1 -1
  234. package/dist/huds-lib/{p-031d3bf8.entry.js → p-3a0cbfbc.entry.js} +1 -1
  235. package/dist/huds-lib/{p-fd339472.entry.js → p-3a2fd06e.entry.js} +1 -1
  236. package/dist/huds-lib/{p-485099a1.entry.js → p-3ca46ddb.entry.js} +1 -1
  237. package/dist/huds-lib/{p-a21ebe8a.entry.js → p-3ef36a18.entry.js} +1 -1
  238. package/dist/huds-lib/{p-7d0b0674.entry.js → p-3f15571f.entry.js} +1 -1
  239. package/dist/huds-lib/{p-9deb2733.entry.js → p-4404fbde.entry.js} +1 -1
  240. package/dist/huds-lib/{p-7f7f7bc1.entry.js → p-445be0e8.entry.js} +1 -1
  241. package/dist/huds-lib/{p-70fcc954.entry.js → p-535b56d4.entry.js} +1 -1
  242. package/dist/huds-lib/{p-35bc6516.entry.js → p-54229a0d.entry.js} +1 -1
  243. package/dist/huds-lib/{p-45454a42.js → p-5617bc3e.js} +1 -1
  244. package/dist/huds-lib/{p-34e39dd2.entry.js → p-5b3a4a8b.entry.js} +1 -1
  245. package/dist/huds-lib/p-5e1dc555.entry.js +1 -0
  246. package/dist/huds-lib/p-64023b5d.entry.js +1 -0
  247. package/dist/huds-lib/p-6b8b4259.entry.js +1 -0
  248. package/dist/huds-lib/{p-23820e91.entry.js → p-6fd29d10.entry.js} +1 -1
  249. package/dist/huds-lib/{p-8d22323b.entry.js → p-7e9f2a43.entry.js} +1 -1
  250. package/dist/huds-lib/{p-3aeb60c7.entry.js → p-7f005622.entry.js} +1 -1
  251. package/dist/huds-lib/{p-beab95eb.entry.js → p-81800bd1.entry.js} +1 -1
  252. package/dist/huds-lib/{p-c247af64.entry.js → p-83a380fc.entry.js} +1 -1
  253. package/dist/huds-lib/{p-44c98cd6.entry.js → p-891108e9.entry.js} +1 -1
  254. package/dist/huds-lib/{p-0c682a0e.entry.js → p-8b20a127.entry.js} +1 -1
  255. package/dist/huds-lib/{p-6ec67f50.entry.js → p-8cbbedb1.entry.js} +1 -1
  256. package/dist/huds-lib/{p-3663dfa6.entry.js → p-8fe61cc4.entry.js} +1 -1
  257. package/dist/huds-lib/{p-fe6eb2b6.entry.js → p-91e7dbdb.entry.js} +1 -1
  258. package/dist/huds-lib/{p-10808327.entry.js → p-943998ee.entry.js} +1 -1
  259. package/dist/huds-lib/p-9482c6bf.entry.js +1 -0
  260. package/dist/huds-lib/{p-c89d1618.entry.js → p-9739d43b.entry.js} +1 -1
  261. package/dist/huds-lib/p-97727091.entry.js +8 -0
  262. package/dist/huds-lib/p-9ab9c615.entry.js +1 -0
  263. package/dist/huds-lib/{p-ae673c56.entry.js → p-9caa985a.entry.js} +1 -1
  264. package/dist/huds-lib/{p-7d777e18.entry.js → p-9eb39b28.entry.js} +1 -1
  265. package/dist/huds-lib/p-a099a649.entry.js +1 -0
  266. package/dist/huds-lib/{p-7d3faaef.entry.js → p-a295071c.entry.js} +1 -1
  267. package/dist/huds-lib/{p-b6cc78ce.entry.js → p-a90b0293.entry.js} +1 -1
  268. package/dist/huds-lib/p-ac7fbdbf.entry.js +1 -0
  269. package/dist/huds-lib/{p-6e9878d1.entry.js → p-add4a25d.entry.js} +1 -1
  270. package/dist/huds-lib/{p-4539ca8d.entry.js → p-b1a3cbcc.entry.js} +1 -1
  271. package/dist/huds-lib/{p-ae4a5bed.entry.js → p-b5ca8a38.entry.js} +1 -1
  272. package/dist/huds-lib/{p-b3b6e7b9.entry.js → p-b71d0912.entry.js} +1 -1
  273. package/dist/huds-lib/{p-4622b82d.entry.js → p-b86b5336.entry.js} +1 -1
  274. package/dist/huds-lib/{p-89a197ec.entry.js → p-b8735152.entry.js} +1 -1
  275. package/dist/huds-lib/p-beeb1416.entry.js +1 -0
  276. package/dist/huds-lib/p-bffe53e9.entry.js +1 -0
  277. package/dist/huds-lib/{p-d8161ace.entry.js → p-c143d160.entry.js} +1 -1
  278. package/dist/huds-lib/{p-eb55e724.entry.js → p-c21d1933.entry.js} +1 -1
  279. package/dist/huds-lib/{p-e75ee214.entry.js → p-c3e38183.entry.js} +1 -1
  280. package/dist/huds-lib/{p-fb3c39b3.entry.js → p-c4960510.entry.js} +1 -1
  281. package/dist/huds-lib/{p-327a543d.entry.js → p-c8c24282.entry.js} +1 -1
  282. package/dist/huds-lib/{p-ea7f948e.entry.js → p-caf7a56b.entry.js} +1 -1
  283. package/dist/huds-lib/p-ce9d4716.entry.js +1 -0
  284. package/dist/huds-lib/{p-d38b0576.entry.js → p-d1249b2e.entry.js} +1 -1
  285. package/dist/huds-lib/{p-36dbfc06.js → p-d5584db1.js} +1 -1
  286. package/dist/huds-lib/{p-2c9cd456.entry.js → p-d60b07c4.entry.js} +1 -1
  287. package/dist/huds-lib/{p-70a0c53c.entry.js → p-d6588da7.entry.js} +1 -1
  288. package/dist/huds-lib/{p-21eda560.entry.js → p-d9de2cad.entry.js} +1 -1
  289. package/dist/huds-lib/p-db142402.entry.js +1 -0
  290. package/dist/huds-lib/{p-a19edd06.entry.js → p-dd2ab3e6.entry.js} +1 -1
  291. package/dist/huds-lib/{p-25b70e5e.entry.js → p-e1346358.entry.js} +1 -1
  292. package/dist/huds-lib/{p-98dd30e9.entry.js → p-e475714a.entry.js} +1 -1
  293. package/dist/huds-lib/{p-c0b247d8.entry.js → p-e6a97c32.entry.js} +1 -1
  294. package/dist/huds-lib/{p-c8b11427.entry.js → p-e6fa0f75.entry.js} +1 -1
  295. package/dist/huds-lib/{p-711691d9.entry.js → p-ea7dde9b.entry.js} +1 -1
  296. package/dist/huds-lib/{p-91397c3c.entry.js → p-efeeca30.entry.js} +1 -1
  297. package/dist/huds-lib/{p-566ac888.entry.js → p-f4a9ea9c.entry.js} +1 -1
  298. package/dist/huds-lib/{p-9f0c5752.entry.js → p-f5e78e68.entry.js} +1 -1
  299. package/dist/huds-lib/{p-2ee50dff.entry.js → p-f7d11cd4.entry.js} +1 -1
  300. package/dist/huds-lib/{p-d15f1223.entry.js → p-fb8f253d.entry.js} +1 -1
  301. package/dist/types/components/heading/heading.d.ts +3 -0
  302. package/dist/types/components/navigation/menu-item/menu-item.d.ts +1 -0
  303. package/dist/types/components/navigation/menu-language/menu-language.d.ts +0 -1
  304. package/dist/types/components/navigation/menu-language-item/menu-language-item.d.ts +0 -1
  305. package/dist/types/components/navigation/mobile-menu-shortcuts/mobile-menu-shortcuts.d.ts +13 -0
  306. package/dist/types/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.d.ts +2 -1
  307. package/dist/types/components/site-header/site-header.d.ts +1 -0
  308. package/dist/types/components.d.ts +26 -4
  309. package/package.json +1 -1
  310. package/dist/huds-lib/p-0746359d.entry.js +0 -1
  311. package/dist/huds-lib/p-1862b753.entry.js +0 -1
  312. package/dist/huds-lib/p-402d4c06.entry.js +0 -1
  313. package/dist/huds-lib/p-4b5ede51.entry.js +0 -1
  314. package/dist/huds-lib/p-57506f48.entry.js +0 -1
  315. package/dist/huds-lib/p-6dde95bc.entry.js +0 -8
  316. package/dist/huds-lib/p-9f108905.entry.js +0 -1
  317. package/dist/huds-lib/p-aaa6f401.entry.js +0 -1
  318. package/dist/huds-lib/p-b146defe.entry.js +0 -1
  319. package/dist/huds-lib/p-b542ab10.entry.js +0 -1
  320. package/dist/huds-lib/p-c1c66328.entry.js +0 -1
  321. package/dist/huds-lib/p-d56fd335.entry.js +0 -1
  322. package/dist/huds-lib/p-fa16383c.entry.js +0 -1
@@ -1,4 +1,3 @@
1
- import { ColorVariant } from '../../../utils/utils';
2
1
  import { Component, h, Element, Prop, State, Event, Listen } from '@stencil/core';
3
2
  import { jsonParserWorker } from '../../../global/globalScript';
4
3
  import ResizeObserver from 'resize-observer-polyfill';
@@ -9,13 +8,18 @@ let keys = {
9
8
  };
10
9
  export class HyDesktopMenuLinks {
11
10
  constructor() {
11
+ /*
12
+ First level menu links to be displayed on Desktop screens.
13
+ * */
14
+ this.isGroup = false;
15
+ this.isDropdown = false;
12
16
  this.firstLevelLinksList = [];
13
17
  this.menuLinkItems = [];
14
18
  this.hasToolbar = false;
15
19
  this.isDesktopMenuOpen = false;
16
20
  this.currenOpenMenuId = 0;
17
21
  this.isNewMenuIdOnHover = false;
18
- this._submenuLeftMargin = 32;
22
+ // private _submenuLeftMargin: number = 32;
19
23
  this._headerBorderOffset = 0;
20
24
  this._hoverTimer = null;
21
25
  this._fadeOutTimer = null;
@@ -36,7 +40,7 @@ export class HyDesktopMenuLinks {
36
40
  if (!hyHeader)
37
41
  return;
38
42
  let hyBackdropDiv = hyHeader.children[0];
39
- if (hyBackdropDiv) {
43
+ if (hyBackdropDiv && !this.isDropdown) {
40
44
  if (state === 'open') {
41
45
  const windowHeight = window.outerHeight;
42
46
  hyBackdropDiv.style.height = `${windowHeight}px`;
@@ -57,36 +61,26 @@ export class HyDesktopMenuLinks {
57
61
  clearTimeout(this._fadeOutTimer);
58
62
  // Open desktop menu panel
59
63
  this.isDesktopMenuOpen = true;
60
- const menuItems = this.el.shadowRoot.querySelectorAll(`.desktop-menu-link`);
61
- const menuPanelItems = this.el.shadowRoot.querySelectorAll('.hy-desktop-menu-panel'); // all panels
62
- const activeMenuItem = this.el.shadowRoot.querySelector(`.desktop-menu-link[link-id="${id}"]`);
64
+ const menuItems = this.el.shadowRoot.querySelectorAll(`.hy-desktop-menu__button`);
65
+ const menuPanelItems = this.el.shadowRoot.querySelectorAll('.hy-desktop-menu__panel'); // all panels
66
+ const activeMenuItem = this.el.shadowRoot.querySelector(`.hy-desktop-menu__button[link-id="${id}"]`);
63
67
  const activeMenuItemSibling = activeMenuItem.nextElementSibling; // current panel
64
68
  // Reset elements by removing the active classes.
65
69
  menuItems.forEach((item) => {
66
- item.classList.remove('desktop-menu-link--is-active');
67
70
  item.setAttribute('aria-expanded', 'false');
68
71
  });
69
72
  menuPanelItems.forEach((item) => {
70
- item.classList.remove('hy-desktop-menu-panel--is-active');
71
- item.classList.remove('hy-desktop-menu-panel--overflow');
72
73
  item.setAttribute('aria-hidden', 'true');
73
74
  item.style.transition = 'none';
74
75
  item.style.opacity = '0';
75
76
  });
76
- // Add active classes to the currently active item and its sibling element.
77
- activeMenuItem.classList.add('desktop-menu-link--is-active');
77
+ // Set active attributes to currently active panel.
78
78
  activeMenuItem.setAttribute('aria-expanded', 'true');
79
- activeMenuItemSibling.classList.add('hy-desktop-menu-panel--is-active');
80
79
  activeMenuItemSibling.style.opacity = '1';
81
80
  if (this.hasToolbar) {
82
- activeMenuItemSibling.classList.add('hy-desktop-menu-panel--is-active--has-toolbar');
81
+ activeMenuItemSibling.classList.add('has-toolbar');
83
82
  }
84
83
  activeMenuItemSibling.setAttribute('aria-hidden', 'false');
85
- //Hide is-active-trail underlining
86
- const activeTrailMenuItem = this.el.shadowRoot.querySelector(`.desktop-menu-link__label--is-active-trail`);
87
- if (activeTrailMenuItem) {
88
- activeTrailMenuItem.classList.add('desktop-menu-link__label--is-active-trail--disabled');
89
- }
90
84
  // Add panels top value automatically with the correct header height
91
85
  let topOffset = window.pageYOffset;
92
86
  const bodyElementClasses = document.body.classList;
@@ -99,11 +93,23 @@ export class HyDesktopMenuLinks {
99
93
  let rect = activeMenuItemSibling.getBoundingClientRect();
100
94
  let backdropOffset = headerElementHeight + headerElementOffset + rect.height;
101
95
  let backdropToolbarOffset = backdropOffset - 79;
102
- window.addEventListener('scroll', () => {
103
- topOffset = window.pageYOffset;
104
- if (topOffset === 0) {
105
- activeMenuItemSibling.style.top = `${panelElementOffset}px`;
106
- }
96
+ if (!this.isDropdown) {
97
+ window.addEventListener('scroll', () => {
98
+ topOffset = window.pageYOffset;
99
+ if (topOffset === 0) {
100
+ activeMenuItemSibling.style.top = `${panelElementOffset}px`;
101
+ }
102
+ if (headerShadowRootElement.classList.contains('hy-site-header--sticky-active') && topOffset > 0) {
103
+ if (bodyElementClasses.contains('toolbar-horizontal')) {
104
+ activeMenuItemSibling.style.top = `${headerElementHeight}px`;
105
+ if (this.isDesktopMenuOpen) {
106
+ this.showBackdropShadow('open', backdropToolbarOffset);
107
+ }
108
+ }
109
+ }
110
+ });
111
+ }
112
+ if (!this.isDropdown) {
107
113
  if (headerShadowRootElement.classList.contains('hy-site-header--sticky-active') && topOffset > 0) {
108
114
  if (bodyElementClasses.contains('toolbar-horizontal')) {
109
115
  activeMenuItemSibling.style.top = `${headerElementHeight}px`;
@@ -111,13 +117,9 @@ export class HyDesktopMenuLinks {
111
117
  this.showBackdropShadow('open', backdropToolbarOffset);
112
118
  }
113
119
  }
114
- }
115
- });
116
- if (headerShadowRootElement.classList.contains('hy-site-header--sticky-active') && topOffset > 0) {
117
- if (bodyElementClasses.contains('toolbar-horizontal')) {
118
- activeMenuItemSibling.style.top = `${headerElementHeight}px`;
119
- if (this.isDesktopMenuOpen) {
120
- this.showBackdropShadow('open', backdropToolbarOffset);
120
+ else {
121
+ activeMenuItemSibling.style.top = `${panelElementOffset}px`;
122
+ this.showBackdropShadow('open', backdropOffset);
121
123
  }
122
124
  }
123
125
  else {
@@ -125,28 +127,24 @@ export class HyDesktopMenuLinks {
125
127
  this.showBackdropShadow('open', backdropOffset);
126
128
  }
127
129
  }
128
- else {
129
- activeMenuItemSibling.style.top = `${panelElementOffset}px`;
130
- this.showBackdropShadow('open', backdropOffset);
131
- }
132
- // Position submenu block under the activated top menu item.
133
- const menuPanelLeftPosition = activeMenuItem.offsetLeft - this._submenuLeftMargin;
134
- activeMenuItemSibling.style.paddingLeft = `${menuPanelLeftPosition}px`;
135
- // Position shortcuts block.
136
- let shortcutsDiv = activeMenuItemSibling.querySelectorAll('ul.shortcuts-panel')[0]; // shortcuts block
137
- if (shortcutsDiv) {
138
- let subMenuDiv = activeMenuItemSibling.querySelectorAll('.hy-desktop-menu-panel__desktop-menu__menu-items')[0]; // 2nd level menu block
139
- let spaceLeftAfterSubmenu = subMenuDiv.getBoundingClientRect().right + shortcutsDiv.offsetWidth;
140
- if (spaceLeftAfterSubmenu >= document.body.scrollWidth) {
141
- // Shortcuts should be placed to the left.
142
- let shortcutsLeftPosition = subMenuDiv.getBoundingClientRect().left - shortcutsDiv.offsetWidth;
143
- shortcutsDiv.style.left = shortcutsLeftPosition.toString().concat('px');
144
- }
145
- else {
146
- // Shortcuts should be placed to the right.
147
- let shortcutsLeftPosition = subMenuDiv.getBoundingClientRect().right;
148
- shortcutsDiv.style.left = shortcutsLeftPosition.toString().concat('px');
130
+ if (this.isDropdown) {
131
+ let windowWidth = window.outerWidth;
132
+ const desktopMenuPanelWidth = activeMenuItemSibling.offsetWidth;
133
+ if (windowWidth - activeMenuItem.getBoundingClientRect().left < desktopMenuPanelWidth) {
134
+ activeMenuItemSibling.style.left = `auto`;
135
+ activeMenuItemSibling.style.right = `-17px`;
149
136
  }
137
+ window.addEventListener('resize', () => {
138
+ windowWidth = window.outerWidth;
139
+ if (windowWidth - activeMenuItem.getBoundingClientRect().left < desktopMenuPanelWidth) {
140
+ activeMenuItemSibling.style.left = `auto`;
141
+ activeMenuItemSibling.style.right = `-17px`;
142
+ }
143
+ else {
144
+ activeMenuItemSibling.style.left = `-17px`;
145
+ activeMenuItemSibling.style.right = `auto`;
146
+ }
147
+ });
150
148
  }
151
149
  }
152
150
  closePanel(fadeOut = false) {
@@ -158,16 +156,11 @@ export class HyDesktopMenuLinks {
158
156
  clearTimeout(this._hoverTimer);
159
157
  }
160
158
  clearPanelItemsStatus(fadeOut = false) {
161
- const menuItems = this.el.shadowRoot.querySelectorAll(`.desktop-menu-link`);
162
- const menuPanelItems = this.el.shadowRoot.querySelectorAll('.hy-desktop-menu-panel');
163
- //Show is-active-trail underlining
164
- const activeTrailMenuItem = this.el.shadowRoot.querySelector(`.desktop-menu-link__label--is-active-trail`);
165
- if (activeTrailMenuItem) {
166
- activeTrailMenuItem.classList.remove('desktop-menu-link__label--is-active-trail--disabled');
167
- }
159
+ const menuItems = this.el.shadowRoot.querySelectorAll(`.hy-desktop-menu__button`);
160
+ const menuPanelItems = this.el.shadowRoot.querySelectorAll('.hy-desktop-menu__panel');
168
161
  // Reset elements by removing the active classes.
169
162
  menuItems.forEach((item) => {
170
- item.classList.remove('desktop-menu-link--is-active');
163
+ // item.classList.remove('desktop-menu-link--is-active');
171
164
  item.setAttribute('aria-expanded', 'false');
172
165
  });
173
166
  if (fadeOut) {
@@ -177,14 +170,14 @@ export class HyDesktopMenuLinks {
177
170
  });
178
171
  this._fadeOutTimer = window.requestAnimationFrame(() => {
179
172
  menuPanelItems.forEach((item) => {
180
- item.classList.remove('hy-desktop-menu-panel--is-active');
173
+ // item.classList.remove('hy-desktop-menu-panel--is-active');
181
174
  item.setAttribute('aria-hidden', 'true');
182
175
  });
183
176
  });
184
177
  }
185
178
  else {
186
179
  menuPanelItems.forEach((item) => {
187
- item.classList.remove('hy-desktop-menu-panel--is-active');
180
+ // item.classList.remove('hy-desktop-menu-panel--is-active');
188
181
  item.setAttribute('aria-hidden', 'true');
189
182
  item.style.opacity = '0';
190
183
  item.style.transition = 'none';
@@ -223,7 +216,7 @@ export class HyDesktopMenuLinks {
223
216
  this._mouseEnter = setTimeout(() => {
224
217
  this.isNewMenuIdOnHover = true;
225
218
  clearTimeout(this._fadeOutTimer);
226
- const activeMenuItem = this.el.shadowRoot.querySelector(`.desktop-menu-link[link-id="${id}"]`);
219
+ const activeMenuItem = this.el.shadowRoot.querySelector(`.hy-desktop-menu__button[link-id="${id}"]`);
227
220
  // Set focus to the button.
228
221
  if (activeMenuItem !== null)
229
222
  activeMenuItem.focus();
@@ -237,19 +230,6 @@ export class HyDesktopMenuLinks {
237
230
  clearTimeout(this._mouseEnter);
238
231
  this._mouseEnter = null;
239
232
  }
240
- // Not used??
241
- /* handleDesktopMenuFocus(event, id) {
242
- if (this.isDesktopMenuOpen) {
243
- if (this.currenOpenMenuId != id) {
244
- this._hoverTimer = setTimeout(() => {
245
- this.currenOpenMenuId = id;
246
- this.showPanel(id);
247
- }, 500);
248
- }
249
-
250
- event.stopPropagation();
251
- }
252
- } */
253
233
  handleWindowClick(event) {
254
234
  // Check if event is being fired during pressing a key (event.detail==0 in this case)
255
235
  if (event.detail == 0)
@@ -264,9 +244,7 @@ export class HyDesktopMenuLinks {
264
244
  if (event.detail == 0)
265
245
  return;
266
246
  event.stopPropagation();
267
- const targetElement = event.target.tagName.toLowerCase();
268
- const possibleTags = [targetElement].some((r) => ['svg', 'span', 'path'].indexOf(r) >= 0);
269
- if (!this.isDesktopMenuOpen && possibleTags) {
247
+ if (!this.isDesktopMenuOpen) {
270
248
  this.currenOpenMenuId = id;
271
249
  this.showPanel(id);
272
250
  }
@@ -306,70 +284,57 @@ export class HyDesktopMenuLinks {
306
284
  let menuLinkItems = [];
307
285
  if (links) {
308
286
  links.map(({ menuLinkId: id, shortcuts, items, url, description, toggleOff, label, labelExtra, isExternal, isActive, shortcutsTitle, closeButtonTitle, }) => {
309
- let classAttributes = [
310
- 'desktop-menu-link',
311
- isActive === 'true' ? 'desktop-menu-link--is-active-trail' : '',
312
- ].join(' ');
313
- let classAttributesLabel = [
314
- 'desktop-menu-link__label',
315
- isActive === 'true' ? 'desktop-menu-link__label--is-active-trail' : '',
316
- ].join(' ');
317
287
  let target = isExternal ? '_blank' : '_self';
318
288
  if (toggleOff) {
319
- menuLinkItems.push(h("li", { onMouseEnter: (e) => this.handleDesktopMenuClose(e) },
320
- h("a", { "aria-current": label, href: url, target: target, class: "desktop-menu-link toggle", "menu-link-id": id }, labelExtra ? h("span", { class: "label" }, labelExtra) : h("span", { class: "label" }, label))));
289
+ menuLinkItems.push(h("li", { onMouseEnter: (e) => this.handleDesktopMenuClose(e), class: `hy-desktop-menu__item ${isActive === 'true' ? 'is-active-trail' : ''}` },
290
+ h("a", { "aria-current": label, href: url, target: target, class: "hy-desktop-menu__button", "menu-link-id": id }, labelExtra ? h("span", { class: "label" }, labelExtra) : h("span", { class: "label" }, label))));
321
291
  }
322
292
  else {
323
- menuLinkItems.push(h("li", null,
324
- h("button", { tabindex: "0", type: "button", class: classAttributes, "link-id": id, onClick: (e) => this.handleDesktopMenuClick(e, id), onKeyDown: (e) => this.handleKeyDown(e, id), onMouseEnter: (e) => this.handleDesktopMenuEnter(e, id), onMouseLeave: () => this.handleDesktopMenuLeave(), "aria-expanded": "false" },
325
- h("span", { class: classAttributesLabel }, label),
293
+ menuLinkItems.push(h("li", { class: "hy-desktop-menu__item" },
294
+ h("button", { tabindex: "0", type: "button", class: `hy-desktop-menu__button ${isActive === 'true' ? 'is-active-trail' : ''}`, "link-id": id, onClick: (e) => this.handleDesktopMenuClick(e, id), onKeyDown: (e) => this.handleKeyDown(e, id), onMouseEnter: (e) => this.handleDesktopMenuEnter(e, id), onMouseLeave: () => this.handleDesktopMenuLeave(), "aria-expanded": "false" },
295
+ h("span", null, label),
326
296
  h("hy-icon", { icon: 'hy-icon-caret-down', size: 32 })),
327
- h("div", { class: "hy-desktop-menu-panel", "aria-hidden": "true" },
328
- h("div", { class: "hy-desktop-menu-panel__desktop-menu" },
329
- h("div", { class: "hy-desktop-menu-panel__desktop-menu__menu-items" },
330
- h("a", { "aria-current": label, href: url, target: target, class: "hy-desktop-menu-panel__desktop-menu__first-level-menu-item", "menu-link-id": id },
331
- h("span", { class: "heading-icon" },
332
- h("hy-icon", { icon: 'hy-icon-arrow-right', size: 40 })),
333
- labelExtra ? h("span", { class: "label" }, labelExtra) : h("span", { class: "label" }, label),
334
- description && h("span", { class: "description" }, description)),
335
- h("ul", { class: 'hy-desktop-menu-panel__desktop-menu__second-level-menu', "menu-link-id": id }, items.map(({ label, url, isExternal }) => {
336
- let subitemTarget = isExternal ? '_blank' : '_self';
337
- return (h("li", null,
338
- h("a", { href: url, target: subitemTarget },
339
- h("span", { class: "heading-icon" },
340
- h("hy-icon", { icon: 'hy-icon-caret-right', size: 12 })),
341
- h("span", { class: "label" }, label),
342
- isExternal && (h("span", { class: "external-icon" },
343
- h("hy-icon", { icon: 'hy-icon-arrow-right', size: 12 }))))));
344
- }))),
345
- shortcuts.length > 0 && (h("ul", { class: "shortcuts-panel" },
346
- h("h2", { class: "shortcuts-panel__title" }, shortcutsTitle),
347
- shortcuts.map(({ shortcut_title, shortcut_url, shortcut_is_external, shortcut_aria_label }, index) => {
348
- let target = shortcut_is_external ? '_blank' : '_self';
349
- let shortcutClass = [
350
- 'shortcuts-panel__shortcut-item',
351
- index == 0 ? 'shortcuts-panel__shortcut-item__first' : '',
352
- ].join(' ');
353
- return (h("li", { class: shortcutClass },
354
- h("a", { "aria-current": shortcut_aria_label, href: shortcut_url, class: "shortcut-item__link", target: target, "aria-label": shortcut_aria_label },
355
- h("span", { class: "label" }, shortcut_title),
356
- h("span", { class: "icon" },
357
- h("hy-icon", { icon: 'hy-icon-arrow-right', size: 24 })))));
358
- })))),
359
- h("button", { onClick: (e) => this.handleDesktopMenuClose(e), class: {
360
- 'hy-desktop-menu-panel__panel-toggle': true,
361
- }, "aria-label": "Close menu" },
362
- h("span", { class: "hy-desktop-menu-panel__panel-toggle__label" },
363
- h("span", { class: "hy-desktop-menu-panel__panel-toggle__label__title" }, closeButtonTitle),
364
- h("hy-icon", { icon: 'hy-icon-remove', size: 20, fill: ColorVariant.black }))))));
297
+ h("section", { class: `hy-desktop-menu__panel ${this.isDropdown ? 'is-dropdown' : ''}`, "aria-hidden": "true" },
298
+ h("div", { class: "hy-desktop-menu__panel-container" },
299
+ h("div", { class: "hy-desktop-menu__panel-menu" },
300
+ h("div", { class: "hy-desktop-menu__panel-header" },
301
+ h("hy-icon", { icon: 'hy-icon-arrow-right', size: 24 }),
302
+ h("a", { "aria-current": label, href: url, target: target, "menu-link-id": id }, labelExtra || label),
303
+ description && !this.isDropdown && h("p", null, description)),
304
+ h("div", { class: `hy-desktop-menu__panel-content ${shortcuts.length > 0 ? 'has-shortcuts' : ''}` },
305
+ h("ul", { class: 'hy-desktop-menu__panel-links hy-desktop-menu__panel-links--menu', "menu-link-id": id }, items.map(({ label, url, isExternal }) => {
306
+ let subitemTarget = isExternal ? '_blank' : '_self';
307
+ return (h("li", { class: "hy-desktop-menu__panel-links-item" },
308
+ h("a", { class: "hy-desktop-menu__panel-link", href: url, target: subitemTarget },
309
+ h("hy-icon", { icon: 'hy-icon-caret-right', size: 10 }),
310
+ h("span", null,
311
+ label,
312
+ isExternal && h("hy-icon", { icon: 'hy-icon-arrow-right', size: 12 })))));
313
+ })),
314
+ shortcuts.length > 0 && (h("div", { class: "hy-desktop-menu__panel-shortcuts" },
315
+ h("h2", null, shortcutsTitle),
316
+ h("ul", { class: "hy-desktop-menu__panel-links hy-desktop-menu__panel-links--shortcuts" }, shortcuts.map(({ shortcut_title, shortcut_url, shortcut_is_external, shortcut_aria_label }) => {
317
+ let target = shortcut_is_external ? '_blank' : '_self';
318
+ return (h("li", { class: "hy-desktop-menu__panel-links-item" },
319
+ h("a", { "aria-current": shortcut_aria_label, href: shortcut_url, class: "hy-desktop-menu__panel-link", target: target, "aria-label": shortcut_aria_label },
320
+ h("hy-icon", { icon: 'hy-icon-caret-right', size: 10 }),
321
+ h("span", null,
322
+ shortcut_title,
323
+ shortcut_is_external && h("hy-icon", { icon: 'hy-icon-arrow-right', size: 12 })))));
324
+ })))))),
325
+ !this.isDropdown && (h("button", { onClick: (e) => this.handleDesktopMenuClose(e), class: {
326
+ 'hy-desktop-menu__panel-close-button': true,
327
+ }, "aria-label": "Close menu" },
328
+ h("span", null, closeButtonTitle),
329
+ h("hy-icon", { icon: 'hy-icon-remove', size: 16 })))))));
365
330
  }
366
331
  });
367
332
  }
368
333
  this.menuLinkItems = menuLinkItems;
369
334
  }
370
335
  render() {
371
- return (h("nav", { role: 'navigation', class: "hy-site-header__menu-desktop" },
372
- h("ul", { class: "hy-site-header__menu-desktop-container" }, this.menuLinkItems)));
336
+ return (h("nav", { role: 'navigation', class: `hy-site-header__menu-desktop ${this.isGroup ? 'is-group' : ''} ${this.isDropdown ? 'is-dropdown' : ''}` },
337
+ h("ul", { class: `hy-desktop-menu ${this.isDesktopMenuOpen ? 'is-panel-open' : ''}` }, this.menuLinkItems)));
373
338
  }
374
339
  static get is() { return "hy-desktop-menu-links"; }
375
340
  static get encapsulation() { return "shadow"; }
@@ -380,6 +345,42 @@ export class HyDesktopMenuLinks {
380
345
  "$": ["hy-desktop-menu-links.css"]
381
346
  }; }
382
347
  static get properties() { return {
348
+ "isGroup": {
349
+ "type": "boolean",
350
+ "mutable": false,
351
+ "complexType": {
352
+ "original": "boolean",
353
+ "resolved": "boolean",
354
+ "references": {}
355
+ },
356
+ "required": false,
357
+ "optional": true,
358
+ "docs": {
359
+ "tags": [],
360
+ "text": ""
361
+ },
362
+ "attribute": "is-group",
363
+ "reflect": false,
364
+ "defaultValue": "false"
365
+ },
366
+ "isDropdown": {
367
+ "type": "boolean",
368
+ "mutable": false,
369
+ "complexType": {
370
+ "original": "boolean",
371
+ "resolved": "boolean",
372
+ "references": {}
373
+ },
374
+ "required": false,
375
+ "optional": true,
376
+ "docs": {
377
+ "tags": [],
378
+ "text": ""
379
+ },
380
+ "attribute": "is-dropdown",
381
+ "reflect": false,
382
+ "defaultValue": "false"
383
+ },
383
384
  "dataDesktopLinks": {
384
385
  "type": "string",
385
386
  "mutable": false,