@itcenteratunihelsinki/huds-lib 0.8.41 → 0.8.43

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 (291) hide show
  1. package/dist/cjs/color-box_8.cjs.entry.js +11 -36
  2. package/dist/cjs/{globalScript-6b592153.js → globalScript-45ad6d41.js} +1 -1
  3. package/dist/cjs/huds-lib.cjs.js +11 -4
  4. package/dist/cjs/hy-accordion-container_83.cjs.entry.js +363 -157
  5. package/dist/cjs/hy-event-item.cjs.entry.js +5 -2
  6. package/dist/cjs/hy-events.cjs.entry.js +4 -2
  7. package/dist/cjs/hy-hero-carousel.cjs.entry.js +4902 -0
  8. package/dist/cjs/{index-dfc917d9.js → index-25bd964b.js} +690 -287
  9. package/dist/cjs/loader.cjs.js +5 -4
  10. package/dist/collection/collection-manifest.json +3 -2
  11. package/dist/collection/components/accordion-container/accordion-container.js +36 -30
  12. package/dist/collection/components/accordion-item/accordion-item.js +115 -114
  13. package/dist/collection/components/adjacent-image-text/adjacent-image-text.js +276 -275
  14. package/dist/collection/components/baseline/baseline.js +34 -32
  15. package/dist/collection/components/button/button.js +225 -257
  16. package/dist/collection/components/color-box/color-box.js +12 -9
  17. package/dist/collection/components/courses/hy-content-list/hy-content-list.js +153 -148
  18. package/dist/collection/components/courses/hy-content-list-item/hy-content-list-item.css +2 -2
  19. package/dist/collection/components/courses/hy-content-list-item/hy-content-list-item.js +334 -331
  20. package/dist/collection/components/cta-button/cta-button.js +140 -138
  21. package/dist/collection/components/cta-link/cta-link.js +106 -103
  22. package/dist/collection/components/docs-container/docs-container.js +12 -9
  23. package/dist/collection/components/footer/hy-footer/hy-footer.js +12 -9
  24. package/dist/collection/components/footer/hy-footer-action/hy-footer-action.js +62 -55
  25. package/dist/collection/components/footer/hy-footer-base/hy-footer-base.js +182 -187
  26. package/dist/collection/components/footer/hy-footer-info/hy-footer-info.js +277 -270
  27. package/dist/collection/components/footer/hy-footer-link-item/hy-footer-link-item.js +190 -190
  28. package/dist/collection/components/grid-container/grid-container.js +12 -9
  29. package/dist/collection/components/grid-item/grid-item.css +0 -23
  30. package/dist/collection/components/grid-item/grid-item.js +101 -96
  31. package/dist/collection/components/grid-row/grid-row.js +12 -9
  32. package/dist/collection/components/heading/heading-fw.css +17 -17
  33. package/dist/collection/components/heading/heading.css +17 -17
  34. package/dist/collection/components/heading/heading.js +141 -146
  35. package/dist/collection/components/hy-anchor-link-list/hy-anchor-link-list.js +104 -99
  36. package/dist/collection/components/hy-badge/hy-badge.js +34 -30
  37. package/dist/collection/components/hy-banner/hy-banner.js +136 -135
  38. package/dist/collection/components/hy-box/hy-box.js +322 -318
  39. package/dist/collection/components/hy-box-container/hy-box-container.js +52 -54
  40. package/dist/collection/components/hy-breadcrumbs/hy-breadcrumbs.js +88 -82
  41. package/dist/collection/components/hy-checkbox/hy-checkbox.js +107 -114
  42. package/dist/collection/components/hy-collaboration/hy-collaboration.js +104 -99
  43. package/dist/collection/components/hy-crisis-banner/hy-crisis-banner.js +87 -85
  44. package/dist/collection/components/hy-dropdown/hy-dropdown.js +152 -147
  45. package/dist/collection/components/hy-dropdown/hy-dropdown.panel.item.js +75 -74
  46. package/dist/collection/components/hy-dropdown/hy-dropdown.panel.js +26 -22
  47. package/dist/collection/components/hy-event-item/hy-event-item.js +183 -192
  48. package/dist/collection/components/hy-events/hy-events.js +130 -127
  49. package/dist/collection/components/hy-filter-group/hy-filter-group.item.js +43 -41
  50. package/dist/collection/components/hy-filter-group/hy-filter-group.js +63 -54
  51. package/dist/collection/components/hy-filter-list-type/hy-filter-list-type.js +61 -56
  52. package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.js +37 -30
  53. package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.reset.js +2 -4
  54. package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.reset.toggle.js +2 -8
  55. package/dist/collection/components/hy-general-list/hy-general-list.js +122 -113
  56. package/dist/collection/components/hy-general-list-item/hy-general-list-item.js +255 -258
  57. package/dist/collection/components/hy-hero/hy-hero.css +2 -2
  58. package/dist/collection/components/hy-hero/hy-hero.js +295 -308
  59. package/dist/collection/components/hy-hero-carousel/hy-hero-carousel.css +1306 -0
  60. package/dist/collection/components/hy-hero-carousel/hy-hero-carousel.js +211 -0
  61. package/dist/collection/components/hy-introduction/hy-introduction.js +247 -250
  62. package/dist/collection/components/hy-key-figure/hy-key-figure.js +72 -66
  63. package/dist/collection/components/hy-key-figure-group/hy-key-figure-group.css +1 -1
  64. package/dist/collection/components/hy-key-figure-group/hy-key-figure-group.js +66 -65
  65. package/dist/collection/components/hy-key-highlight/hy-key-highlight.js +72 -67
  66. package/dist/collection/components/hy-key-highlight-group/hy-key-highlight-group.css +2 -2
  67. package/dist/collection/components/hy-key-highlight-group/hy-key-highlight-group.js +78 -71
  68. package/dist/collection/components/hy-large-process-flow/hy-large-process-flow.css +6 -6
  69. package/dist/collection/components/hy-large-process-flow/hy-large-process-flow.js +54 -46
  70. package/dist/collection/components/hy-large-process-flow-phase/hy-large-process-flow-phase.css +3 -3
  71. package/dist/collection/components/hy-large-process-flow-phase/hy-large-process-flow-phase.js +40 -37
  72. package/dist/collection/components/hy-link-list/hy-link-list.js +106 -100
  73. package/dist/collection/components/hy-list-item/hy-list-item.js +428 -451
  74. package/dist/collection/components/hy-logo-grid/hy-logo-grid.item.js +53 -47
  75. package/dist/collection/components/hy-logo-grid/hy-logo-grid.js +53 -46
  76. package/dist/collection/components/hy-main/hy-main.js +34 -29
  77. package/dist/collection/components/hy-main-content-wrapper/hy-main-content-wrapper.js +12 -10
  78. package/dist/collection/components/hy-opening-hours/hy-opening-hours.css +2 -2
  79. package/dist/collection/components/hy-opening-hours/hy-opening-hours.js +304 -308
  80. package/dist/collection/components/hy-opening-hours-content/hy-opening-hours-content.css +2 -2
  81. package/dist/collection/components/hy-opening-hours-content/hy-opening-hours-content.js +107 -107
  82. package/dist/collection/components/hy-person-card/hy-person-card.js +422 -438
  83. package/dist/collection/components/hy-prominent-image/hy-prominent-image.js +106 -100
  84. package/dist/collection/components/hy-quote/hy-quote.js +51 -51
  85. package/dist/collection/components/hy-search-field/hy-search-field.js +166 -167
  86. package/dist/collection/components/hy-shortcuts/hy-shortcuts.css +1 -1
  87. package/dist/collection/components/hy-shortcuts/hy-shortcuts.js +89 -87
  88. package/dist/collection/components/hy-table-container/hy-table-container.css +6 -6
  89. package/dist/collection/components/hy-table-container/hy-table-container.js +12 -10
  90. package/dist/collection/components/hy-tabs/hy-tabs.js +115 -111
  91. package/dist/collection/components/hy-tabs-item/hy-tabs-item.js +36 -28
  92. package/dist/collection/components/hy-tag/hy-tag.js +12 -11
  93. package/dist/collection/components/hy-twitter-feed/hy-twitter-feed.js +107 -128
  94. package/dist/collection/components/hy-two-columns/hy-two-columns.js +34 -33
  95. package/dist/collection/components/hy-user-login-form/hy-user-login-form.js +53 -46
  96. package/dist/collection/components/hy-video/hy-video.css +1 -1
  97. package/dist/collection/components/hy-video/hy-video.js +462 -500
  98. package/dist/collection/components/icon/AddToTodoList.js +1 -2
  99. package/dist/collection/components/icon/Alert.js +1 -3
  100. package/dist/collection/components/icon/Archive.js +1 -5
  101. package/dist/collection/components/icon/Arrow.js +1 -2
  102. package/dist/collection/components/icon/ArrowDown.js +1 -2
  103. package/dist/collection/components/icon/ArrowRight.js +1 -7
  104. package/dist/collection/components/icon/ArrowUp.js +1 -2
  105. package/dist/collection/components/icon/Avatar.js +1 -2
  106. package/dist/collection/components/icon/AvatarGroup.js +1 -2
  107. package/dist/collection/components/icon/Bachelor.js +1 -2
  108. package/dist/collection/components/icon/BulletList.js +1 -2
  109. package/dist/collection/components/icon/Camera.js +1 -2
  110. package/dist/collection/components/icon/CaretDown.js +1 -2
  111. package/dist/collection/components/icon/CaretLeft.js +1 -2
  112. package/dist/collection/components/icon/CaretRight.js +1 -2
  113. package/dist/collection/components/icon/CaretUp.js +1 -2
  114. package/dist/collection/components/icon/Chat.js +1 -2
  115. package/dist/collection/components/icon/CodeFork.js +1 -2
  116. package/dist/collection/components/icon/Cogs.js +1 -2
  117. package/dist/collection/components/icon/Contentlink.js +1 -2
  118. package/dist/collection/components/icon/Customlink.js +1 -2
  119. package/dist/collection/components/icon/Date.js +1 -2
  120. package/dist/collection/components/icon/Discover.js +1 -2
  121. package/dist/collection/components/icon/Done.js +1 -2
  122. package/dist/collection/components/icon/Dot.js +1 -2
  123. package/dist/collection/components/icon/DotArrowRight.js +1 -6
  124. package/dist/collection/components/icon/Download.js +1 -2
  125. package/dist/collection/components/icon/Drag.js +1 -2
  126. package/dist/collection/components/icon/Dragbutton.js +1 -2
  127. package/dist/collection/components/icon/DropDown.js +1 -2
  128. package/dist/collection/components/icon/Edit.js +1 -2
  129. package/dist/collection/components/icon/EditEvent.js +1 -2
  130. package/dist/collection/components/icon/Embed.js +1 -2
  131. package/dist/collection/components/icon/Euro.js +1 -2
  132. package/dist/collection/components/icon/Events.js +1 -2
  133. package/dist/collection/components/icon/ExternalLink.js +1 -2
  134. package/dist/collection/components/icon/EyeSlash.js +1 -2
  135. package/dist/collection/components/icon/Facebook.js +1 -2
  136. package/dist/collection/components/icon/Favorites.js +1 -2
  137. package/dist/collection/components/icon/Feed.js +1 -2
  138. package/dist/collection/components/icon/FileText.js +1 -2
  139. package/dist/collection/components/icon/FullScreen.js +1 -2
  140. package/dist/collection/components/icon/Globe.js +1 -2
  141. package/dist/collection/components/icon/GooglePlus.js +1 -2
  142. package/dist/collection/components/icon/Grid.js +1 -2
  143. package/dist/collection/components/icon/Hamburger.js +1 -2
  144. package/dist/collection/components/icon/Heart.js +1 -2
  145. package/dist/collection/components/icon/HeartSupport.js +1 -2
  146. package/dist/collection/components/icon/Helsinginyliopisto.js +1 -2
  147. package/dist/collection/components/icon/Home.js +1 -2
  148. package/dist/collection/components/icon/HorizontalResize.js +1 -2
  149. package/dist/collection/components/icon/HyLogo.js +1 -2
  150. package/dist/collection/components/icon/IdNumber.js +1 -2
  151. package/dist/collection/components/icon/Image.js +1 -2
  152. package/dist/collection/components/icon/ImageGallery.js +1 -2
  153. package/dist/collection/components/icon/Images.js +1 -2
  154. package/dist/collection/components/icon/Info.js +1 -2
  155. package/dist/collection/components/icon/InfoStroke.js +1 -2
  156. package/dist/collection/components/icon/Instagram.js +1 -2
  157. package/dist/collection/components/icon/LeikiList.js +1 -2
  158. package/dist/collection/components/icon/LinkArrow.js +1 -2
  159. package/dist/collection/components/icon/LinkArrow1.js +1 -2
  160. package/dist/collection/components/icon/LinkArrowDown.js +1 -2
  161. package/dist/collection/components/icon/LinkArrowLeft.js +1 -2
  162. package/dist/collection/components/icon/LinkArrowOffsite.js +1 -2
  163. package/dist/collection/components/icon/LinkArrowUp.js +1 -2
  164. package/dist/collection/components/icon/Linkedin.js +1 -2
  165. package/dist/collection/components/icon/List.js +1 -2
  166. package/dist/collection/components/icon/ListAsBlocks.js +1 -2
  167. package/dist/collection/components/icon/ListStyleGrid.js +1 -10
  168. package/dist/collection/components/icon/ListStyleList.js +1 -5
  169. package/dist/collection/components/icon/Listoflinks.js +1 -2
  170. package/dist/collection/components/icon/Location.js +1 -2
  171. package/dist/collection/components/icon/Log.js +1 -2
  172. package/dist/collection/components/icon/Login.js +1 -2
  173. package/dist/collection/components/icon/Logout.js +1 -2
  174. package/dist/collection/components/icon/MagnifyMinus.js +1 -2
  175. package/dist/collection/components/icon/MagnifyPlus.js +1 -2
  176. package/dist/collection/components/icon/Mail.js +1 -2
  177. package/dist/collection/components/icon/Master.js +1 -2
  178. package/dist/collection/components/icon/Minus.js +1 -2
  179. package/dist/collection/components/icon/Mobile.js +1 -2
  180. package/dist/collection/components/icon/Modify.js +1 -2
  181. package/dist/collection/components/icon/NaviTriangle.js +1 -2
  182. package/dist/collection/components/icon/NewGroup.js +1 -2
  183. package/dist/collection/components/icon/NewPerson.js +1 -2
  184. package/dist/collection/components/icon/Notification.js +1 -2
  185. package/dist/collection/components/icon/OpinderLogo.js +1 -2
  186. package/dist/collection/components/icon/OpinderLogoNew.js +1 -2
  187. package/dist/collection/components/icon/Pdf.js +1 -2
  188. package/dist/collection/components/icon/People.js +1 -2
  189. package/dist/collection/components/icon/PermissionAll.js +1 -2
  190. package/dist/collection/components/icon/PermissionGroup.js +1 -2
  191. package/dist/collection/components/icon/PermissionPrivate.js +1 -2
  192. package/dist/collection/components/icon/Person.js +1 -2
  193. package/dist/collection/components/icon/PersonOutline.js +1 -2
  194. package/dist/collection/components/icon/Phone.js +1 -2
  195. package/dist/collection/components/icon/Play.js +1 -2
  196. package/dist/collection/components/icon/Plus.js +1 -2
  197. package/dist/collection/components/icon/Preview.js +1 -2
  198. package/dist/collection/components/icon/Profile.js +1 -2
  199. package/dist/collection/components/icon/Question.js +1 -2
  200. package/dist/collection/components/icon/Remove.js +1 -2
  201. package/dist/collection/components/icon/Retweet.js +1 -2
  202. package/dist/collection/components/icon/RotateLeft.js +1 -2
  203. package/dist/collection/components/icon/RotateRight.js +1 -2
  204. package/dist/collection/components/icon/Search.js +1 -2
  205. package/dist/collection/components/icon/Share.js +1 -2
  206. package/dist/collection/components/icon/SlimHamburgerMenu.js +1 -2
  207. package/dist/collection/components/icon/SocialMedia.js +1 -2
  208. package/dist/collection/components/icon/SomeFacebook.js +1 -2
  209. package/dist/collection/components/icon/SomeInstagram.js +1 -4
  210. package/dist/collection/components/icon/SomeLinkedin.js +1 -2
  211. package/dist/collection/components/icon/SomeTwitter.js +1 -2
  212. package/dist/collection/components/icon/SomeYoutube.js +1 -2
  213. package/dist/collection/components/icon/Spinner.js +1 -2
  214. package/dist/collection/components/icon/Square.js +1 -2
  215. package/dist/collection/components/icon/SquareChecked.js +1 -2
  216. package/dist/collection/components/icon/Time.js +1 -2
  217. package/dist/collection/components/icon/TodoList.js +1 -2
  218. package/dist/collection/components/icon/Tour.js +1 -2
  219. package/dist/collection/components/icon/Twitter.js +1 -2
  220. package/dist/collection/components/icon/TwitterLike.js +1 -2
  221. package/dist/collection/components/icon/UnitsAndFaculties.js +1 -2
  222. package/dist/collection/components/icon/Url.js +1 -2
  223. package/dist/collection/components/icon/Video.js +1 -2
  224. package/dist/collection/components/icon/Warning.js +1 -2
  225. package/dist/collection/components/icon/Wrench.js +1 -2
  226. package/dist/collection/components/icon/Youtube.js +1 -2
  227. package/dist/collection/components/icon/icon.js +67 -60
  228. package/dist/collection/components/icon/icons.js +4 -8
  229. package/dist/collection/components/image/image.js +147 -141
  230. package/dist/collection/components/ingress/ingress.js +34 -30
  231. package/dist/collection/components/link/link.js +106 -99
  232. package/dist/collection/components/link-box/link-box.css +0 -1
  233. package/dist/collection/components/link-box/link-box.js +270 -272
  234. package/dist/collection/components/link-box-list/link-box-list.js +95 -89
  235. package/dist/collection/components/navigation/hy-menu-main-group/hy-menu-main-group.js +285 -290
  236. package/dist/collection/components/navigation/menu-language/menu-language.js +147 -138
  237. package/dist/collection/components/navigation/menu-language-item/menu-language-item.js +123 -114
  238. package/dist/collection/components/pagination/hy-pager/hy-pager.js +12 -9
  239. package/dist/collection/components/pagination/hy-pager-item/hy-pager-item.js +92 -95
  240. package/dist/collection/components/paragraph-text/paragraph-text-content.css +14 -14
  241. package/dist/collection/components/paragraph-text/paragraph-text-landing.css +8 -8
  242. package/dist/collection/components/paragraph-text/paragraph-text.css +22 -22
  243. package/dist/collection/components/paragraph-text/paragraph-text.js +72 -67
  244. package/dist/collection/components/person-profile/person-profile-listing/person-profile-listing.css +1 -1
  245. package/dist/collection/components/person-profile/person-profile-listing/person-profile.listing.js +127 -126
  246. package/dist/collection/components/person-profile/person-profile.css +4 -4
  247. package/dist/collection/components/person-profile/person-profile.js +138 -182
  248. package/dist/collection/components/process/process.js +71 -62
  249. package/dist/collection/components/process-flow-box/process-flow-box.js +144 -148
  250. package/dist/collection/components/row/row.js +68 -72
  251. package/dist/collection/components/section-container/section-container.js +12 -9
  252. package/dist/collection/components/site-header/site-header.css +1 -1
  253. package/dist/collection/components/site-header/site-header.js +540 -560
  254. package/dist/collection/components/site-header/site-logo/site-logo.js +148 -148
  255. package/dist/collection/components/site-header/site-search/site-search.js +297 -312
  256. package/dist/collection/components/tiny-text/tiny-text.js +12 -9
  257. package/dist/esm/color-box_8.entry.js +12 -37
  258. package/dist/esm/{globalScript-9d045b36.js → globalScript-4ad40215.js} +1 -1
  259. package/dist/esm/huds-lib.js +8 -4
  260. package/dist/esm/hy-accordion-container_83.entry.js +364 -158
  261. package/dist/esm/hy-event-item.entry.js +5 -2
  262. package/dist/esm/hy-events.entry.js +5 -3
  263. package/dist/esm/hy-hero-carousel.entry.js +4898 -0
  264. package/dist/esm/{index-daaf0985.js → index-3a66d87e.js} +690 -288
  265. package/dist/esm/loader.js +5 -4
  266. package/dist/esm/polyfills/css-shim.js +1 -1
  267. package/dist/esm/{utils-7731bbdf.js → utils-43c56d92.js} +1 -1
  268. package/dist/huds-lib/huds-lib.esm.js +1 -1
  269. package/dist/huds-lib/{p-0ea3ec9a.js → p-63584350.js} +1 -1
  270. package/dist/huds-lib/p-7c7ea6b3.entry.js +1 -0
  271. package/dist/huds-lib/p-8d5c2e5b.entry.js +1 -0
  272. package/dist/huds-lib/p-91f6109f.entry.js +1 -0
  273. package/dist/huds-lib/p-9a15a75b.entry.js +1 -0
  274. package/dist/huds-lib/{p-04dcccdc.js → p-b02e49ad.js} +1 -1
  275. package/dist/huds-lib/p-ff975a68.js +2 -0
  276. package/dist/huds-lib/p-ffd1d29a.entry.js +87 -0
  277. package/dist/types/components/hy-hero-carousel/hy-hero-carousel.d.ts +30 -0
  278. package/dist/types/components/person-profile/person-profile-listing/person-profile.listing.d.ts +1 -1
  279. package/dist/types/components.d.ts +95 -20
  280. package/dist/types/stencil-public-runtime.d.ts +92 -19
  281. package/dist/types/utils/utils.d.ts +4 -4
  282. package/loader/index.d.ts +11 -12
  283. package/loader/index.es2017.js +1 -0
  284. package/loader/index.js +2 -11
  285. package/loader/package.json +2 -1
  286. package/package.json +13 -11
  287. package/dist/huds-lib/p-0370da7d.entry.js +0 -87
  288. package/dist/huds-lib/p-2244fcda.entry.js +0 -1
  289. package/dist/huds-lib/p-aba9f82a.entry.js +0 -1
  290. package/dist/huds-lib/p-c68c36c3.entry.js +0 -1
  291. package/dist/huds-lib/p-f8697bf9.js +0 -1
@@ -1,5 +1,5 @@
1
1
  let clickTimer = null;
2
- import { Component, Element, Event, Fragment, h, Listen, Prop, State } from '@stencil/core';
2
+ import { Fragment, h } from '@stencil/core';
3
3
  import ResizeObserver from 'resize-observer-polyfill';
4
4
  import { MenuType, ColorVariant, SiteLogoSize } from '../../utils/utils';
5
5
  import { jsonParserWorker } from '../../global/globalScript';
@@ -12,10 +12,23 @@ export class SiteHeader {
12
12
  this.researchGroupLabel = '';
13
13
  this.groupType = '';
14
14
  this.groupLogoUrl = '';
15
+ this.dataMenuLanguage = undefined;
16
+ this.dataMenuDonate = undefined;
17
+ this.dataSiteHeaderLabels = undefined;
18
+ this.dataSiteSearchLabels = undefined;
19
+ this.logoUrl = undefined;
20
+ this.logoLabel = undefined;
21
+ this.siteLabel = undefined;
22
+ this.siteUrl = undefined;
15
23
  this.showSearchLabel = true;
16
24
  this.noSearch = false;
17
25
  this.menuLabel = 'Menu';
26
+ this.menuLabelOpen = undefined;
27
+ this.menuLabelClose = undefined;
18
28
  this.menuType = null;
29
+ this.dataMainMenuLinks = undefined;
30
+ this.dataSearchTools = undefined;
31
+ this.isMobile = undefined;
19
32
  this.isMenuOpen = false;
20
33
  this.isDesktopMenuOpen = false;
21
34
  this.isDesktopMenuDropdown = false;
@@ -226,574 +239,541 @@ export class SiteHeader {
226
239
  case MenuType.desktop:
227
240
  // Larger than 1200px screens
228
241
  return [
229
- h("header", { class: `${classAttributes.join(' ')}` },
230
- h("div", { class: {
231
- 'hy-backdrop': true,
232
- 'is-active': (this.isMenuOpen && !this.isDesktopMenuDropdown) ||
233
- (this.isTopMenuOpen && !this.isDesktopMenuDropdown),
234
- } }),
235
- this.isGroup && (h("section", { class: `hy-site-header__content-top ${this.isTopMenuOpen ? 'is-open' : ''}` },
236
- h("div", { class: "hy-site-header__container" },
237
- h("div", { class: "hy-site-header__branding" },
238
- h("hy-site-logo", { "is-group": true, "is-luomus-group": this.isLuomusGroup, size: logoSizeGroup, color: logoColorGroup, url: this.siteUrl, label: this.siteLabel })),
239
- this.dataMainMenuLinks.length > 2 && (h("hy-menu-main-group", { tabindex: "0", "is-mobile": false, "menu-label": (_a = this.groupPages['university_main_menu']) !== null && _a !== void 0 ? _a : null, "data-main-menu": this.dataMainMenuLinks, "menu-label-close": this.menuLabelClose })),
240
- h("div", { class: "hy-site-header__actions" },
241
- h("hy-menu-language", { "data-menu-language": this.dataMenuLanguage, labels: this.languageLabels, isGroup: true }),
242
- !this.noSearch && (h("hy-site-search", { class: 'menu--secondary__item group', size: 18, color: logoColorGroup, "is-group": true, "is-luomus-group": this.isLuomusGroup, "is-beta-group": this.isBetaGroup, "search-language": activeLang, "show-label": this.showSearchLabel, labels: this.searchLabels, "search-labels": this.dataSiteSearchLabels, "search-tools": this.dataSearchTools })),
243
- this.donateLink.map(({ label, url }) => {
244
- return (h("a", { class: 'hy-site-header__donate-link', href: url },
245
- h("hy-icon", { icon: 'hy-icon-heart-support', size: 14, fill: ColorVariant.black }),
246
- h("span", null, label)));
247
- }))))),
248
- h("section", { class: `hy-site-header__container ${this.isGroup ? 'is-group' : ''} ${this.groupType === 'research_group_menu' ? 'is-research-group' : ''}` },
249
- h("div", { class: 'hy-site-header__branding' },
250
- this.isGroup && this.groupType == 'research_group_menu' && h("p", null, this.researchGroupLabel),
251
- this.isGroup ? (h("a", { href: this.logoUrl }, this.groupType == 'generic_site_group_menu' && this.groupLogoUrl ? (h("img", { src: this.groupLogoUrl, alt: `${this.logoLabel} logo` })) : (this.logoLabel))) : (h("hy-site-logo", { size: logoSize, color: logoColor, url: this.logoUrl, label: this.logoLabel }))),
252
- this.groupType != 'research_group_menu' && h("slot", { name: "menu" }),
253
- !this.isGroup && (h("div", { class: "hy-site-header__actions" },
254
- h("hy-menu-language", { "data-menu-language": this.dataMenuLanguage, labels: this.languageLabels }),
255
- !this.noSearch && (h("hy-site-search", { size: 14, "is-luomus-group": this.isLuomusGroup, "is-beta-group": this.isBetaGroup, "search-language": activeLang, color: ColorVariant.black, "show-label": this.showSearchLabel, labels: this.searchLabels, "search-labels": this.dataSiteSearchLabels, "search-tools": this.dataSearchTools })),
256
- this.donateLink.map(({ label, url }) => {
257
- return (h("a", { class: 'hy-site-header__donate-link', href: url },
258
- h("hy-icon", { icon: 'hy-icon-heart-support', size: 14, fill: ColorVariant.black }),
259
- h("span", null, label)));
260
- }))))),
242
+ h("header", { class: `${classAttributes.join(' ')}` }, h("div", { class: {
243
+ 'hy-backdrop': true,
244
+ 'is-active': (this.isMenuOpen && !this.isDesktopMenuDropdown) ||
245
+ (this.isTopMenuOpen && !this.isDesktopMenuDropdown),
246
+ } }), this.isGroup && (h("section", { class: `hy-site-header__content-top ${this.isTopMenuOpen ? 'is-open' : ''}` }, h("div", { class: "hy-site-header__container" }, h("div", { class: "hy-site-header__branding" }, h("hy-site-logo", { "is-group": true, "is-luomus-group": this.isLuomusGroup, size: logoSizeGroup, color: logoColorGroup, url: this.siteUrl, label: this.siteLabel })), this.dataMainMenuLinks.length > 2 && (h("hy-menu-main-group", { tabindex: "0", "is-mobile": false, "menu-label": (_a = this.groupPages['university_main_menu']) !== null && _a !== void 0 ? _a : null, "data-main-menu": this.dataMainMenuLinks, "menu-label-close": this.menuLabelClose })), h("div", { class: "hy-site-header__actions" }, h("hy-menu-language", { "data-menu-language": this.dataMenuLanguage, labels: this.languageLabels, isGroup: true }), !this.noSearch && (h("hy-site-search", { class: 'menu--secondary__item group', size: 18, color: logoColorGroup, "is-group": true, "is-luomus-group": this.isLuomusGroup, "is-beta-group": this.isBetaGroup, "search-language": activeLang, "show-label": this.showSearchLabel, labels: this.searchLabels, "search-labels": this.dataSiteSearchLabels, "search-tools": this.dataSearchTools })), this.donateLink.map(({ label, url }) => {
247
+ return (h("a", { class: 'hy-site-header__donate-link', href: url }, h("hy-icon", { icon: 'hy-icon-heart-support', size: 14, fill: ColorVariant.black }), h("span", null, label)));
248
+ }))))), h("section", { class: `hy-site-header__container ${this.isGroup ? 'is-group' : ''} ${this.groupType === 'research_group_menu' ? 'is-research-group' : ''}` }, h("div", { class: 'hy-site-header__branding' }, this.isGroup && this.groupType == 'research_group_menu' && h("p", null, this.researchGroupLabel), this.isGroup ? (h("a", { href: this.logoUrl }, this.groupType == 'generic_site_group_menu' && this.groupLogoUrl ? (h("img", { src: this.groupLogoUrl, alt: `${this.logoLabel} logo` })) : (this.logoLabel))) : (h("hy-site-logo", { size: logoSize, color: logoColor, url: this.logoUrl, label: this.logoLabel }))), this.groupType != 'research_group_menu' && h("slot", { name: "menu" }), !this.isGroup && (h("div", { class: "hy-site-header__actions" }, h("hy-menu-language", { "data-menu-language": this.dataMenuLanguage, labels: this.languageLabels }), !this.noSearch && (h("hy-site-search", { size: 14, "is-luomus-group": this.isLuomusGroup, "is-beta-group": this.isBetaGroup, "search-language": activeLang, color: ColorVariant.black, "show-label": this.showSearchLabel, labels: this.searchLabels, "search-labels": this.dataSiteSearchLabels, "search-tools": this.dataSearchTools })), this.donateLink.map(({ label, url }) => {
249
+ return (h("a", { class: 'hy-site-header__donate-link', href: url }, h("hy-icon", { icon: 'hy-icon-heart-support', size: 14, fill: ColorVariant.black }), h("span", null, label)));
250
+ }))))),
261
251
  ];
262
252
  case MenuType.mobile:
263
253
  // Smaller than 960px screens
264
- return (h("header", { class: classAttributes.join(' '), "data-menu-active": this.isMenuOpen },
265
- h("div", { class: { 'hy-backdrop': true, 'is-active': this.isMenuOpen } }),
266
- h("div", { class: { 'hy-backdrop': true, 'is-active-top': this.isTopMenuOpen } }),
267
- this.isGroup && (h("section", { class: `hy-site-header__content-top ${this.isTopMenuOpen ? 'is-open' : ''}` },
268
- h("div", { class: "hy-site-header__container" },
269
- h("div", { class: "hy-site-header__branding" },
270
- h("hy-site-logo", { "is-group": true, "is-luomus-group": this.isLuomusGroup, size: logoSizeGroup, color: logoColorGroup, url: this.siteUrl, label: this.siteLabel })),
271
- h("div", { class: "hy-site-header__actions" },
272
- h("hy-menu-language", { "data-menu-language": this.dataMenuLanguage, labels: this.languageLabels, isGroup: true }),
273
- !this.noSearch && (h("hy-site-search", { class: 'menu--secondary__item group', size: 18, color: logoColorGroup, "is-group": true, "is-luomus-group": this.isLuomusGroup, "is-beta-group": this.isBetaGroup, "search-language": activeLang, "show-label": this.showSearchLabel, labels: this.searchLabels, "search-labels": this.dataSiteSearchLabels, "search-tools": this.dataSearchTools })),
274
- this.dataMainMenuLinks.length > 2 && (h("hy-menu-main-group", { "site-label": this.siteLabel, "site-url": this.siteUrl, "logo-label": this.logoLabel, "logo-url": this.logoUrl, "is-mobile": true, donate: this.donateLink, "data-main-menu": this.dataMainMenuLinks })))))),
275
- h("section", { class: "hy-site-header__container" },
276
- h("div", { class: 'hy-site-header__branding' },
277
- this.groupType == 'research_group_menu' && h("p", null, this.researchGroupLabel),
278
- this.isGroup ? (h("a", { href: this.logoUrl }, this.groupType == 'generic_site_group_menu' && this.groupLogoUrl ? (h("img", { src: this.groupLogoUrl, alt: `${this.logoLabel} logo` })) : (this.logoLabel))) : (h("hy-site-logo", { size: logoSize, color: logoColor, url: this.logoUrl, label: this.logoLabel }))),
279
- h("div", { class: "hy-site-header__actions" },
280
- !this.isGroup && (h("hy-menu-language", { "data-menu-language": this.dataMenuLanguage, labels: this.languageLabels })),
281
- !this.isGroup && !this.noSearch && (h("hy-site-search", { size: 24, color: ColorVariant.black, "is-luomus-group": this.isLuomusGroup, "is-beta-group": this.isBetaGroup, "search-language": activeLang, "show-label": this.showSearchLabel, labels: this.searchLabels, "search-labels": this.dataSiteSearchLabels, "search-tools": this.dataSearchTools })),
282
- h("button", { onClick: () => toggleMenuMobileAndRemoveListener(), class: `hy-site-header__menu-open-button`, "aria-label": this.isMenuOpen ? this.menuLabels['close'] : this.menuLabels['open'], "aria-expanded": `${this.isMenuOpen}` },
283
- !this.isMenuOpen && h("hy-icon", { icon: 'hy-icon-hamburger', size: 24, fill: ColorVariant.black }),
284
- this.isMenuOpen && (h(Fragment, null,
285
- h("span", null, this.menuLabelClose),
286
- h("hy-icon", { icon: 'hy-icon-remove', size: 16 }))))),
287
- h("div", { class: {
288
- 'is-open': this.isMenuOpen,
289
- 'hy-site-header__panel': true,
290
- }, "aria-hidden": `${!this.isMenuOpen}` },
291
- h("slot", { name: 'menu_mobile' })))));
254
+ return (h("header", { class: classAttributes.join(' '), "data-menu-active": this.isMenuOpen }, h("div", { class: { 'hy-backdrop': true, 'is-active': this.isMenuOpen } }), h("div", { class: { 'hy-backdrop': true, 'is-active-top': this.isTopMenuOpen } }), this.isGroup && (h("section", { class: `hy-site-header__content-top ${this.isTopMenuOpen ? 'is-open' : ''}` }, h("div", { class: "hy-site-header__container" }, h("div", { class: "hy-site-header__branding" }, h("hy-site-logo", { "is-group": true, "is-luomus-group": this.isLuomusGroup, size: logoSizeGroup, color: logoColorGroup, url: this.siteUrl, label: this.siteLabel })), h("div", { class: "hy-site-header__actions" }, h("hy-menu-language", { "data-menu-language": this.dataMenuLanguage, labels: this.languageLabels, isGroup: true }), !this.noSearch && (h("hy-site-search", { class: 'menu--secondary__item group', size: 18, color: logoColorGroup, "is-group": true, "is-luomus-group": this.isLuomusGroup, "is-beta-group": this.isBetaGroup, "search-language": activeLang, "show-label": this.showSearchLabel, labels: this.searchLabels, "search-labels": this.dataSiteSearchLabels, "search-tools": this.dataSearchTools })), this.dataMainMenuLinks.length > 2 && (h("hy-menu-main-group", { "site-label": this.siteLabel, "site-url": this.siteUrl, "logo-label": this.logoLabel, "logo-url": this.logoUrl, "is-mobile": true, donate: this.donateLink, "data-main-menu": this.dataMainMenuLinks })))))), h("section", { class: "hy-site-header__container" }, h("div", { class: 'hy-site-header__branding' }, this.groupType == 'research_group_menu' && h("p", null, this.researchGroupLabel), this.isGroup ? (h("a", { href: this.logoUrl }, this.groupType == 'generic_site_group_menu' && this.groupLogoUrl ? (h("img", { src: this.groupLogoUrl, alt: `${this.logoLabel} logo` })) : (this.logoLabel))) : (h("hy-site-logo", { size: logoSize, color: logoColor, url: this.logoUrl, label: this.logoLabel }))), h("div", { class: "hy-site-header__actions" }, !this.isGroup && (h("hy-menu-language", { "data-menu-language": this.dataMenuLanguage, labels: this.languageLabels })), !this.isGroup && !this.noSearch && (h("hy-site-search", { size: 24, color: ColorVariant.black, "is-luomus-group": this.isLuomusGroup, "is-beta-group": this.isBetaGroup, "search-language": activeLang, "show-label": this.showSearchLabel, labels: this.searchLabels, "search-labels": this.dataSiteSearchLabels, "search-tools": this.dataSearchTools })), h("button", { onClick: () => toggleMenuMobileAndRemoveListener(), class: `hy-site-header__menu-open-button`, "aria-label": this.isMenuOpen ? this.menuLabels['close'] : this.menuLabels['open'], "aria-expanded": `${this.isMenuOpen}` }, !this.isMenuOpen && h("hy-icon", { icon: 'hy-icon-hamburger', size: 24, fill: ColorVariant.black }), this.isMenuOpen && (h(Fragment, null, h("span", null, this.menuLabelClose), h("hy-icon", { icon: 'hy-icon-remove', size: 16 }))))), h("div", { class: {
255
+ 'is-open': this.isMenuOpen,
256
+ 'hy-site-header__panel': true,
257
+ }, "aria-hidden": `${!this.isMenuOpen}` }, h("slot", { name: 'menu_mobile' })))));
292
258
  }
293
259
  }
294
260
  static get is() { return "hy-site-header"; }
295
- static get originalStyleUrls() { return {
296
- "$": ["site-header.scss"]
297
- }; }
298
- static get styleUrls() { return {
299
- "$": ["site-header.css"]
300
- }; }
301
- static get properties() { return {
302
- "isGroup": {
303
- "type": "boolean",
304
- "mutable": false,
305
- "complexType": {
306
- "original": "boolean",
307
- "resolved": "boolean",
308
- "references": {}
309
- },
310
- "required": false,
311
- "optional": false,
312
- "docs": {
313
- "tags": [],
314
- "text": ""
315
- },
316
- "attribute": "is-group",
317
- "reflect": false,
318
- "defaultValue": "false"
319
- },
320
- "isLuomusGroup": {
321
- "type": "boolean",
322
- "mutable": false,
323
- "complexType": {
324
- "original": "boolean",
325
- "resolved": "boolean",
326
- "references": {}
327
- },
328
- "required": false,
329
- "optional": false,
330
- "docs": {
331
- "tags": [],
332
- "text": ""
333
- },
334
- "attribute": "is-luomus-group",
335
- "reflect": false,
336
- "defaultValue": "false"
337
- },
338
- "isBetaGroup": {
339
- "type": "boolean",
340
- "mutable": false,
341
- "complexType": {
342
- "original": "boolean",
343
- "resolved": "boolean",
344
- "references": {}
345
- },
346
- "required": false,
347
- "optional": false,
348
- "docs": {
349
- "tags": [],
350
- "text": ""
351
- },
352
- "attribute": "is-beta-group",
353
- "reflect": false,
354
- "defaultValue": "false"
355
- },
356
- "researchGroupLabel": {
357
- "type": "string",
358
- "mutable": false,
359
- "complexType": {
360
- "original": "string",
361
- "resolved": "string",
362
- "references": {}
363
- },
364
- "required": false,
365
- "optional": false,
366
- "docs": {
367
- "tags": [],
368
- "text": ""
369
- },
370
- "attribute": "research-group-label",
371
- "reflect": false,
372
- "defaultValue": "''"
373
- },
374
- "groupType": {
375
- "type": "string",
376
- "mutable": false,
377
- "complexType": {
378
- "original": "string",
379
- "resolved": "string",
380
- "references": {}
381
- },
382
- "required": false,
383
- "optional": false,
384
- "docs": {
385
- "tags": [],
386
- "text": ""
387
- },
388
- "attribute": "group-type",
389
- "reflect": false,
390
- "defaultValue": "''"
391
- },
392
- "groupLogoUrl": {
393
- "type": "string",
394
- "mutable": false,
395
- "complexType": {
396
- "original": "string",
397
- "resolved": "string",
398
- "references": {}
399
- },
400
- "required": false,
401
- "optional": false,
402
- "docs": {
403
- "tags": [],
404
- "text": ""
405
- },
406
- "attribute": "group-logo-url",
407
- "reflect": false,
408
- "defaultValue": "''"
409
- },
410
- "dataMenuLanguage": {
411
- "type": "string",
412
- "mutable": false,
413
- "complexType": {
414
- "original": "string",
415
- "resolved": "string",
416
- "references": {}
417
- },
418
- "required": false,
419
- "optional": false,
420
- "docs": {
421
- "tags": [],
422
- "text": ""
423
- },
424
- "attribute": "data-menu-language",
425
- "reflect": false
426
- },
427
- "dataMenuDonate": {
428
- "type": "string",
429
- "mutable": false,
430
- "complexType": {
431
- "original": "string",
432
- "resolved": "string",
433
- "references": {}
434
- },
435
- "required": false,
436
- "optional": false,
437
- "docs": {
438
- "tags": [],
439
- "text": ""
440
- },
441
- "attribute": "data-menu-donate",
442
- "reflect": false
443
- },
444
- "dataSiteHeaderLabels": {
445
- "type": "string",
446
- "mutable": false,
447
- "complexType": {
448
- "original": "string",
449
- "resolved": "string",
450
- "references": {}
451
- },
452
- "required": false,
453
- "optional": false,
454
- "docs": {
455
- "tags": [],
456
- "text": ""
457
- },
458
- "attribute": "data-site-header-labels",
459
- "reflect": false
460
- },
461
- "dataSiteSearchLabels": {
462
- "type": "string",
463
- "mutable": false,
464
- "complexType": {
465
- "original": "string",
466
- "resolved": "string",
467
- "references": {}
468
- },
469
- "required": false,
470
- "optional": false,
471
- "docs": {
472
- "tags": [],
473
- "text": ""
474
- },
475
- "attribute": "data-site-search-labels",
476
- "reflect": false
477
- },
478
- "logoUrl": {
479
- "type": "string",
480
- "mutable": false,
481
- "complexType": {
482
- "original": "string",
483
- "resolved": "string",
484
- "references": {}
485
- },
486
- "required": false,
487
- "optional": true,
488
- "docs": {
489
- "tags": [],
490
- "text": ""
491
- },
492
- "attribute": "logo-url",
493
- "reflect": false
494
- },
495
- "logoLabel": {
496
- "type": "string",
497
- "mutable": false,
498
- "complexType": {
499
- "original": "string",
500
- "resolved": "string",
501
- "references": {}
502
- },
503
- "required": false,
504
- "optional": true,
505
- "docs": {
506
- "tags": [],
507
- "text": ""
508
- },
509
- "attribute": "logo-label",
510
- "reflect": false
511
- },
512
- "siteLabel": {
513
- "type": "string",
514
- "mutable": false,
515
- "complexType": {
516
- "original": "string",
517
- "resolved": "string",
518
- "references": {}
519
- },
520
- "required": false,
521
- "optional": true,
522
- "docs": {
523
- "tags": [],
524
- "text": ""
525
- },
526
- "attribute": "site-label",
527
- "reflect": false
528
- },
529
- "siteUrl": {
530
- "type": "string",
531
- "mutable": false,
532
- "complexType": {
533
- "original": "string",
534
- "resolved": "string",
535
- "references": {}
536
- },
537
- "required": false,
538
- "optional": true,
539
- "docs": {
540
- "tags": [],
541
- "text": ""
542
- },
543
- "attribute": "site-url",
544
- "reflect": false
545
- },
546
- "showSearchLabel": {
547
- "type": "boolean",
548
- "mutable": false,
549
- "complexType": {
550
- "original": "boolean",
551
- "resolved": "boolean",
552
- "references": {}
553
- },
554
- "required": false,
555
- "optional": false,
556
- "docs": {
557
- "tags": [],
558
- "text": ""
559
- },
560
- "attribute": "show-search-label",
561
- "reflect": false,
562
- "defaultValue": "true"
563
- },
564
- "noSearch": {
565
- "type": "boolean",
566
- "mutable": false,
567
- "complexType": {
568
- "original": "boolean",
569
- "resolved": "boolean",
570
- "references": {}
571
- },
572
- "required": false,
573
- "optional": false,
574
- "docs": {
575
- "tags": [],
576
- "text": ""
577
- },
578
- "attribute": "no-search",
579
- "reflect": false,
580
- "defaultValue": "false"
581
- },
582
- "menuLabel": {
583
- "type": "string",
584
- "mutable": false,
585
- "complexType": {
586
- "original": "string",
587
- "resolved": "string",
588
- "references": {}
589
- },
590
- "required": false,
591
- "optional": false,
592
- "docs": {
593
- "tags": [],
594
- "text": ""
595
- },
596
- "attribute": "menu-label",
597
- "reflect": false,
598
- "defaultValue": "'Menu'"
599
- },
600
- "menuLabelOpen": {
601
- "type": "string",
602
- "mutable": false,
603
- "complexType": {
604
- "original": "string",
605
- "resolved": "string",
606
- "references": {}
607
- },
608
- "required": false,
609
- "optional": true,
610
- "docs": {
611
- "tags": [],
612
- "text": ""
613
- },
614
- "attribute": "menu-label-open",
615
- "reflect": false
616
- },
617
- "menuLabelClose": {
618
- "type": "string",
619
- "mutable": false,
620
- "complexType": {
621
- "original": "string",
622
- "resolved": "string",
623
- "references": {}
624
- },
625
- "required": false,
626
- "optional": true,
627
- "docs": {
628
- "tags": [],
629
- "text": ""
630
- },
631
- "attribute": "menu-label-close",
632
- "reflect": false
633
- },
634
- "menuType": {
635
- "type": "string",
636
- "mutable": false,
637
- "complexType": {
638
- "original": "MenuType",
639
- "resolved": "MenuType.desktop | MenuType.mobile | MenuType.tablet",
640
- "references": {
641
- "MenuType": {
642
- "location": "import",
643
- "path": "../../utils/utils"
261
+ static get originalStyleUrls() {
262
+ return {
263
+ "$": ["site-header.scss"]
264
+ };
265
+ }
266
+ static get styleUrls() {
267
+ return {
268
+ "$": ["site-header.css"]
269
+ };
270
+ }
271
+ static get properties() {
272
+ return {
273
+ "isGroup": {
274
+ "type": "boolean",
275
+ "mutable": false,
276
+ "complexType": {
277
+ "original": "boolean",
278
+ "resolved": "boolean",
279
+ "references": {}
280
+ },
281
+ "required": false,
282
+ "optional": false,
283
+ "docs": {
284
+ "tags": [],
285
+ "text": ""
286
+ },
287
+ "attribute": "is-group",
288
+ "reflect": false,
289
+ "defaultValue": "false"
290
+ },
291
+ "isLuomusGroup": {
292
+ "type": "boolean",
293
+ "mutable": false,
294
+ "complexType": {
295
+ "original": "boolean",
296
+ "resolved": "boolean",
297
+ "references": {}
298
+ },
299
+ "required": false,
300
+ "optional": false,
301
+ "docs": {
302
+ "tags": [],
303
+ "text": ""
304
+ },
305
+ "attribute": "is-luomus-group",
306
+ "reflect": false,
307
+ "defaultValue": "false"
308
+ },
309
+ "isBetaGroup": {
310
+ "type": "boolean",
311
+ "mutable": false,
312
+ "complexType": {
313
+ "original": "boolean",
314
+ "resolved": "boolean",
315
+ "references": {}
316
+ },
317
+ "required": false,
318
+ "optional": false,
319
+ "docs": {
320
+ "tags": [],
321
+ "text": ""
322
+ },
323
+ "attribute": "is-beta-group",
324
+ "reflect": false,
325
+ "defaultValue": "false"
326
+ },
327
+ "researchGroupLabel": {
328
+ "type": "string",
329
+ "mutable": false,
330
+ "complexType": {
331
+ "original": "string",
332
+ "resolved": "string",
333
+ "references": {}
334
+ },
335
+ "required": false,
336
+ "optional": false,
337
+ "docs": {
338
+ "tags": [],
339
+ "text": ""
340
+ },
341
+ "attribute": "research-group-label",
342
+ "reflect": false,
343
+ "defaultValue": "''"
344
+ },
345
+ "groupType": {
346
+ "type": "string",
347
+ "mutable": false,
348
+ "complexType": {
349
+ "original": "string",
350
+ "resolved": "string",
351
+ "references": {}
352
+ },
353
+ "required": false,
354
+ "optional": false,
355
+ "docs": {
356
+ "tags": [],
357
+ "text": ""
358
+ },
359
+ "attribute": "group-type",
360
+ "reflect": false,
361
+ "defaultValue": "''"
362
+ },
363
+ "groupLogoUrl": {
364
+ "type": "string",
365
+ "mutable": false,
366
+ "complexType": {
367
+ "original": "string",
368
+ "resolved": "string",
369
+ "references": {}
370
+ },
371
+ "required": false,
372
+ "optional": false,
373
+ "docs": {
374
+ "tags": [],
375
+ "text": ""
376
+ },
377
+ "attribute": "group-logo-url",
378
+ "reflect": false,
379
+ "defaultValue": "''"
380
+ },
381
+ "dataMenuLanguage": {
382
+ "type": "string",
383
+ "mutable": false,
384
+ "complexType": {
385
+ "original": "string",
386
+ "resolved": "string",
387
+ "references": {}
388
+ },
389
+ "required": false,
390
+ "optional": false,
391
+ "docs": {
392
+ "tags": [],
393
+ "text": ""
394
+ },
395
+ "attribute": "data-menu-language",
396
+ "reflect": false
397
+ },
398
+ "dataMenuDonate": {
399
+ "type": "string",
400
+ "mutable": false,
401
+ "complexType": {
402
+ "original": "string",
403
+ "resolved": "string",
404
+ "references": {}
405
+ },
406
+ "required": false,
407
+ "optional": false,
408
+ "docs": {
409
+ "tags": [],
410
+ "text": ""
411
+ },
412
+ "attribute": "data-menu-donate",
413
+ "reflect": false
414
+ },
415
+ "dataSiteHeaderLabels": {
416
+ "type": "string",
417
+ "mutable": false,
418
+ "complexType": {
419
+ "original": "string",
420
+ "resolved": "string",
421
+ "references": {}
422
+ },
423
+ "required": false,
424
+ "optional": false,
425
+ "docs": {
426
+ "tags": [],
427
+ "text": ""
428
+ },
429
+ "attribute": "data-site-header-labels",
430
+ "reflect": false
431
+ },
432
+ "dataSiteSearchLabels": {
433
+ "type": "string",
434
+ "mutable": false,
435
+ "complexType": {
436
+ "original": "string",
437
+ "resolved": "string",
438
+ "references": {}
439
+ },
440
+ "required": false,
441
+ "optional": false,
442
+ "docs": {
443
+ "tags": [],
444
+ "text": ""
445
+ },
446
+ "attribute": "data-site-search-labels",
447
+ "reflect": false
448
+ },
449
+ "logoUrl": {
450
+ "type": "string",
451
+ "mutable": false,
452
+ "complexType": {
453
+ "original": "string",
454
+ "resolved": "string",
455
+ "references": {}
456
+ },
457
+ "required": false,
458
+ "optional": true,
459
+ "docs": {
460
+ "tags": [],
461
+ "text": ""
462
+ },
463
+ "attribute": "logo-url",
464
+ "reflect": false
465
+ },
466
+ "logoLabel": {
467
+ "type": "string",
468
+ "mutable": false,
469
+ "complexType": {
470
+ "original": "string",
471
+ "resolved": "string",
472
+ "references": {}
473
+ },
474
+ "required": false,
475
+ "optional": true,
476
+ "docs": {
477
+ "tags": [],
478
+ "text": ""
479
+ },
480
+ "attribute": "logo-label",
481
+ "reflect": false
482
+ },
483
+ "siteLabel": {
484
+ "type": "string",
485
+ "mutable": false,
486
+ "complexType": {
487
+ "original": "string",
488
+ "resolved": "string",
489
+ "references": {}
490
+ },
491
+ "required": false,
492
+ "optional": true,
493
+ "docs": {
494
+ "tags": [],
495
+ "text": ""
496
+ },
497
+ "attribute": "site-label",
498
+ "reflect": false
499
+ },
500
+ "siteUrl": {
501
+ "type": "string",
502
+ "mutable": false,
503
+ "complexType": {
504
+ "original": "string",
505
+ "resolved": "string",
506
+ "references": {}
507
+ },
508
+ "required": false,
509
+ "optional": true,
510
+ "docs": {
511
+ "tags": [],
512
+ "text": ""
513
+ },
514
+ "attribute": "site-url",
515
+ "reflect": false
516
+ },
517
+ "showSearchLabel": {
518
+ "type": "boolean",
519
+ "mutable": false,
520
+ "complexType": {
521
+ "original": "boolean",
522
+ "resolved": "boolean",
523
+ "references": {}
524
+ },
525
+ "required": false,
526
+ "optional": false,
527
+ "docs": {
528
+ "tags": [],
529
+ "text": ""
530
+ },
531
+ "attribute": "show-search-label",
532
+ "reflect": false,
533
+ "defaultValue": "true"
534
+ },
535
+ "noSearch": {
536
+ "type": "boolean",
537
+ "mutable": false,
538
+ "complexType": {
539
+ "original": "boolean",
540
+ "resolved": "boolean",
541
+ "references": {}
542
+ },
543
+ "required": false,
544
+ "optional": false,
545
+ "docs": {
546
+ "tags": [],
547
+ "text": ""
548
+ },
549
+ "attribute": "no-search",
550
+ "reflect": false,
551
+ "defaultValue": "false"
552
+ },
553
+ "menuLabel": {
554
+ "type": "string",
555
+ "mutable": false,
556
+ "complexType": {
557
+ "original": "string",
558
+ "resolved": "string",
559
+ "references": {}
560
+ },
561
+ "required": false,
562
+ "optional": false,
563
+ "docs": {
564
+ "tags": [],
565
+ "text": ""
566
+ },
567
+ "attribute": "menu-label",
568
+ "reflect": false,
569
+ "defaultValue": "'Menu'"
570
+ },
571
+ "menuLabelOpen": {
572
+ "type": "string",
573
+ "mutable": false,
574
+ "complexType": {
575
+ "original": "string",
576
+ "resolved": "string",
577
+ "references": {}
578
+ },
579
+ "required": false,
580
+ "optional": true,
581
+ "docs": {
582
+ "tags": [],
583
+ "text": ""
584
+ },
585
+ "attribute": "menu-label-open",
586
+ "reflect": false
587
+ },
588
+ "menuLabelClose": {
589
+ "type": "string",
590
+ "mutable": false,
591
+ "complexType": {
592
+ "original": "string",
593
+ "resolved": "string",
594
+ "references": {}
595
+ },
596
+ "required": false,
597
+ "optional": true,
598
+ "docs": {
599
+ "tags": [],
600
+ "text": ""
601
+ },
602
+ "attribute": "menu-label-close",
603
+ "reflect": false
604
+ },
605
+ "menuType": {
606
+ "type": "string",
607
+ "mutable": false,
608
+ "complexType": {
609
+ "original": "MenuType",
610
+ "resolved": "MenuType.desktop | MenuType.mobile | MenuType.tablet",
611
+ "references": {
612
+ "MenuType": {
613
+ "location": "import",
614
+ "path": "../../utils/utils"
615
+ }
644
616
  }
645
- }
646
- },
647
- "required": false,
648
- "optional": false,
649
- "docs": {
650
- "tags": [],
651
- "text": ""
652
- },
653
- "attribute": "menu-type",
654
- "reflect": true,
655
- "defaultValue": "null"
656
- },
657
- "dataMainMenuLinks": {
658
- "type": "string",
659
- "mutable": false,
660
- "complexType": {
661
- "original": "DesktopLinks[] | string",
662
- "resolved": "DesktopLinks[] | string",
663
- "references": {
664
- "DesktopLinks": {
665
- "location": "local"
617
+ },
618
+ "required": false,
619
+ "optional": false,
620
+ "docs": {
621
+ "tags": [],
622
+ "text": ""
623
+ },
624
+ "attribute": "menu-type",
625
+ "reflect": true,
626
+ "defaultValue": "null"
627
+ },
628
+ "dataMainMenuLinks": {
629
+ "type": "string",
630
+ "mutable": false,
631
+ "complexType": {
632
+ "original": "DesktopLinks[] | string",
633
+ "resolved": "DesktopLinks[] | string",
634
+ "references": {
635
+ "DesktopLinks": {
636
+ "location": "local",
637
+ "path": "/builds/julkiset-sivut/design-system-lib/src/components/site-header/site-header.tsx"
638
+ }
666
639
  }
667
- }
668
- },
669
- "required": false,
670
- "optional": false,
671
- "docs": {
672
- "tags": [],
673
- "text": ""
674
- },
675
- "attribute": "data-main-menu-links",
676
- "reflect": false
677
- },
678
- "dataSearchTools": {
679
- "type": "string",
680
- "mutable": false,
681
- "complexType": {
682
- "original": "DesktopLinks[] | string",
683
- "resolved": "DesktopLinks[] | string",
684
- "references": {
685
- "DesktopLinks": {
686
- "location": "local"
640
+ },
641
+ "required": false,
642
+ "optional": false,
643
+ "docs": {
644
+ "tags": [],
645
+ "text": ""
646
+ },
647
+ "attribute": "data-main-menu-links",
648
+ "reflect": false
649
+ },
650
+ "dataSearchTools": {
651
+ "type": "string",
652
+ "mutable": false,
653
+ "complexType": {
654
+ "original": "DesktopLinks[] | string",
655
+ "resolved": "DesktopLinks[] | string",
656
+ "references": {
657
+ "DesktopLinks": {
658
+ "location": "local",
659
+ "path": "/builds/julkiset-sivut/design-system-lib/src/components/site-header/site-header.tsx"
660
+ }
687
661
  }
688
- }
689
- },
690
- "required": false,
691
- "optional": false,
692
- "docs": {
693
- "tags": [],
694
- "text": ""
695
- },
696
- "attribute": "data-search-tools",
697
- "reflect": false
698
- }
699
- }; }
700
- static get states() { return {
701
- "isMobile": {},
702
- "isMenuOpen": {},
703
- "isDesktopMenuOpen": {},
704
- "isDesktopMenuDropdown": {},
705
- "isTopMenuOpen": {},
706
- "isBottomVisible": {},
707
- "isTopVisible": {},
708
- "lastScrollTop": {},
709
- "delta": {},
710
- "navbarHeight": {}
711
- }; }
712
- static get events() { return [{
713
- "method": "headerScrollUp",
714
- "name": "headerScrollUp",
715
- "bubbles": true,
716
- "cancelable": true,
717
- "composed": true,
718
- "docs": {
719
- "tags": [],
720
- "text": ""
721
- },
722
- "complexType": {
723
- "original": "any",
724
- "resolved": "any",
725
- "references": {}
726
- }
727
- }, {
728
- "method": "headerScrollDown",
729
- "name": "headerScrollDown",
730
- "bubbles": true,
731
- "cancelable": true,
732
- "composed": true,
733
- "docs": {
734
- "tags": [],
735
- "text": ""
736
- },
737
- "complexType": {
738
- "original": "any",
739
- "resolved": "any",
740
- "references": {}
741
- }
742
- }, {
743
- "method": "menuMobileToggled",
744
- "name": "menuMobileToggled",
745
- "bubbles": true,
746
- "cancelable": true,
747
- "composed": true,
748
- "docs": {
749
- "tags": [],
750
- "text": ""
751
- },
752
- "complexType": {
753
- "original": "any",
754
- "resolved": "any",
755
- "references": {}
662
+ },
663
+ "required": false,
664
+ "optional": false,
665
+ "docs": {
666
+ "tags": [],
667
+ "text": ""
668
+ },
669
+ "attribute": "data-search-tools",
670
+ "reflect": false
756
671
  }
757
- }, {
758
- "method": "menuMobileTopToggled",
759
- "name": "menuMobileTopToggled",
760
- "bubbles": true,
761
- "cancelable": true,
762
- "composed": true,
763
- "docs": {
764
- "tags": [],
765
- "text": ""
766
- },
767
- "complexType": {
768
- "original": "any",
769
- "resolved": "any",
770
- "references": {}
771
- }
772
- }]; }
672
+ };
673
+ }
674
+ static get states() {
675
+ return {
676
+ "isMobile": {},
677
+ "isMenuOpen": {},
678
+ "isDesktopMenuOpen": {},
679
+ "isDesktopMenuDropdown": {},
680
+ "isTopMenuOpen": {},
681
+ "isBottomVisible": {},
682
+ "isTopVisible": {},
683
+ "lastScrollTop": {},
684
+ "delta": {},
685
+ "navbarHeight": {}
686
+ };
687
+ }
688
+ static get events() {
689
+ return [{
690
+ "method": "headerScrollUp",
691
+ "name": "headerScrollUp",
692
+ "bubbles": true,
693
+ "cancelable": true,
694
+ "composed": true,
695
+ "docs": {
696
+ "tags": [],
697
+ "text": ""
698
+ },
699
+ "complexType": {
700
+ "original": "any",
701
+ "resolved": "any",
702
+ "references": {}
703
+ }
704
+ }, {
705
+ "method": "headerScrollDown",
706
+ "name": "headerScrollDown",
707
+ "bubbles": true,
708
+ "cancelable": true,
709
+ "composed": true,
710
+ "docs": {
711
+ "tags": [],
712
+ "text": ""
713
+ },
714
+ "complexType": {
715
+ "original": "any",
716
+ "resolved": "any",
717
+ "references": {}
718
+ }
719
+ }, {
720
+ "method": "menuMobileToggled",
721
+ "name": "menuMobileToggled",
722
+ "bubbles": true,
723
+ "cancelable": true,
724
+ "composed": true,
725
+ "docs": {
726
+ "tags": [],
727
+ "text": ""
728
+ },
729
+ "complexType": {
730
+ "original": "any",
731
+ "resolved": "any",
732
+ "references": {}
733
+ }
734
+ }, {
735
+ "method": "menuMobileTopToggled",
736
+ "name": "menuMobileTopToggled",
737
+ "bubbles": true,
738
+ "cancelable": true,
739
+ "composed": true,
740
+ "docs": {
741
+ "tags": [],
742
+ "text": ""
743
+ },
744
+ "complexType": {
745
+ "original": "any",
746
+ "resolved": "any",
747
+ "references": {}
748
+ }
749
+ }];
750
+ }
773
751
  static get elementRef() { return "el"; }
774
- static get listeners() { return [{
775
- "name": "mobileMenuToggle",
776
- "method": "mobileMenuToggle",
777
- "target": undefined,
778
- "capture": false,
779
- "passive": false
780
- }, {
781
- "name": "mobileMenuTopToggle",
782
- "method": "mobileMenuTopToggle",
783
- "target": undefined,
784
- "capture": false,
785
- "passive": false
786
- }, {
787
- "name": "menuToggled",
788
- "method": "mainMenuToggled",
789
- "target": "window",
790
- "capture": false,
791
- "passive": false
792
- }, {
793
- "name": "scroll",
794
- "method": "handleScroll",
795
- "target": "window",
796
- "capture": false,
797
- "passive": true
798
- }]; }
752
+ static get listeners() {
753
+ return [{
754
+ "name": "mobileMenuToggle",
755
+ "method": "mobileMenuToggle",
756
+ "target": undefined,
757
+ "capture": false,
758
+ "passive": false
759
+ }, {
760
+ "name": "mobileMenuTopToggle",
761
+ "method": "mobileMenuTopToggle",
762
+ "target": undefined,
763
+ "capture": false,
764
+ "passive": false
765
+ }, {
766
+ "name": "menuToggled",
767
+ "method": "mainMenuToggled",
768
+ "target": "window",
769
+ "capture": false,
770
+ "passive": false
771
+ }, {
772
+ "name": "scroll",
773
+ "method": "handleScroll",
774
+ "target": "window",
775
+ "capture": false,
776
+ "passive": true
777
+ }];
778
+ }
799
779
  }