@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.
- package/dist/cjs/color-box.cjs.entry.js +1 -1
- package/dist/cjs/{globalScript-1c4e262e.js → globalScript-92a1392d.js} +1 -1
- package/dist/cjs/huds-lib.cjs.js +3 -3
- package/dist/cjs/hy-accordion-container.cjs.entry.js +1 -1
- package/dist/cjs/hy-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/hy-adjacent-image-text.cjs.entry.js +2 -2
- package/dist/cjs/hy-anchor-link-list.cjs.entry.js +2 -2
- package/dist/cjs/hy-badge.cjs.entry.js +1 -1
- package/dist/cjs/hy-banner.cjs.entry.js +1 -1
- package/dist/cjs/hy-baseline.cjs.entry.js +1 -1
- package/dist/cjs/hy-box-container.cjs.entry.js +1 -1
- package/dist/cjs/hy-box.cjs.entry.js +1 -1
- package/dist/cjs/hy-breadcrumbs.cjs.entry.js +2 -2
- package/dist/cjs/hy-button.cjs.entry.js +1 -1
- package/dist/cjs/hy-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/hy-collaboration.cjs.entry.js +1 -1
- package/dist/cjs/hy-content-list-item.cjs.entry.js +2 -2
- package/dist/cjs/hy-content-list.cjs.entry.js +1 -1
- package/dist/cjs/hy-crisis-banner.cjs.entry.js +1 -1
- package/dist/cjs/hy-cta-button.cjs.entry.js +1 -1
- package/dist/cjs/hy-cta-link.cjs.entry.js +1 -1
- package/dist/cjs/hy-desktop-menu-links.cjs.entry.js +68 -102
- package/dist/cjs/hy-docs-container.cjs.entry.js +1 -1
- package/dist/cjs/hy-dropdown-panel_2.cjs.entry.js +1 -1
- package/dist/cjs/hy-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/hy-filter-group-item.cjs.entry.js +1 -1
- package/dist/cjs/hy-filter-group.cjs.entry.js +1 -1
- package/dist/cjs/hy-filter-list-type.cjs.entry.js +1 -1
- package/dist/cjs/hy-filter-visibility-tool-reset_2.cjs.entry.js +1 -1
- package/dist/cjs/hy-filter-visibility-tool.cjs.entry.js +1 -1
- package/dist/cjs/hy-footer_5.cjs.entry.js +2 -2
- package/dist/cjs/hy-general-list_2.cjs.entry.js +2 -2
- package/dist/cjs/hy-grid-container.cjs.entry.js +1 -1
- package/dist/cjs/hy-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/hy-grid-row.cjs.entry.js +1 -1
- package/dist/cjs/hy-heading.cjs.entry.js +9 -3
- package/dist/cjs/hy-hero.cjs.entry.js +5 -5
- package/dist/cjs/hy-icon.cjs.entry.js +1 -1
- package/dist/cjs/hy-image.cjs.entry.js +3 -3
- package/dist/cjs/hy-ingress.cjs.entry.js +1 -1
- package/dist/cjs/hy-introduction.cjs.entry.js +1 -1
- package/dist/cjs/hy-key-figure-group.cjs.entry.js +2 -2
- package/dist/cjs/hy-key-figure.cjs.entry.js +1 -1
- package/dist/cjs/hy-key-highlight-group.cjs.entry.js +2 -2
- package/dist/cjs/hy-key-highlight.cjs.entry.js +1 -1
- package/dist/cjs/hy-large-process-flow-phase.cjs.entry.js +2 -2
- package/dist/cjs/hy-large-process-flow.cjs.entry.js +2 -2
- package/dist/cjs/hy-link-box-list.cjs.entry.js +2 -2
- package/dist/cjs/hy-link-box.cjs.entry.js +1 -1
- package/dist/cjs/hy-link-list.cjs.entry.js +2 -2
- package/dist/cjs/hy-link.cjs.entry.js +1 -1
- package/dist/cjs/hy-list-item.cjs.entry.js +1 -1
- package/dist/cjs/hy-logo-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/hy-logo-grid.cjs.entry.js +1 -1
- package/dist/cjs/hy-main-content-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/hy-main.cjs.entry.js +1 -1
- package/dist/cjs/hy-menu-item-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/hy-menu-item.cjs.entry.js +5 -3
- package/dist/cjs/hy-menu-language-item.cjs.entry.js +5 -10
- package/dist/cjs/hy-menu-language_2.cjs.entry.js +19 -24
- package/dist/cjs/hy-menu-level-container.cjs.entry.js +3 -3
- package/dist/cjs/hy-menu-main-group.cjs.entry.js +3 -3
- package/dist/cjs/hy-menu-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/hy-menu.cjs.entry.js +7 -11
- package/dist/cjs/hy-mobile-menu-shortcuts.cjs.entry.js +26 -0
- package/dist/cjs/hy-opening-hours-content.cjs.entry.js +1 -1
- package/dist/cjs/hy-opening-hours.cjs.entry.js +1 -1
- package/dist/cjs/hy-pager-item.cjs.entry.js +1 -1
- package/dist/cjs/hy-pager.cjs.entry.js +1 -1
- package/dist/cjs/hy-paragraph-text.cjs.entry.js +1 -1
- package/dist/cjs/hy-person-card.cjs.entry.js +1 -1
- package/dist/cjs/hy-process-flow-box.cjs.entry.js +1 -1
- package/dist/cjs/hy-process.cjs.entry.js +2 -2
- package/dist/cjs/hy-prominent-image.cjs.entry.js +1 -1
- package/dist/cjs/hy-quote.cjs.entry.js +1 -1
- package/dist/cjs/hy-row.cjs.entry.js +1 -1
- package/dist/cjs/hy-search-field.cjs.entry.js +1 -1
- package/dist/cjs/hy-section-container.cjs.entry.js +1 -1
- package/dist/cjs/hy-shortcuts.cjs.entry.js +1 -1
- package/dist/cjs/hy-site-header_3.cjs.entry.js +43 -42
- package/dist/cjs/hy-table-container.cjs.entry.js +1 -1
- package/dist/cjs/hy-tabs-item.cjs.entry.js +1 -1
- package/dist/cjs/hy-tabs.cjs.entry.js +1 -1
- package/dist/cjs/hy-tag.cjs.entry.js +1 -1
- package/dist/cjs/hy-tiny-text.cjs.entry.js +1 -1
- package/dist/cjs/hy-twitter-feed.cjs.entry.js +1 -1
- package/dist/cjs/hy-two-columns.cjs.entry.js +1 -1
- package/dist/cjs/hy-user-login-form.cjs.entry.js +1 -1
- package/dist/cjs/hy-video.cjs.entry.js +1 -1
- package/dist/cjs/{index-52aea450.js → index-1b0fdf83.js} +2 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/heading/heading.js +32 -5
- package/dist/collection/components/hy-hero/hy-hero.css +6 -0
- package/dist/collection/components/hy-hero/hy-hero.js +2 -2
- package/dist/collection/components/image/image.css +7 -0
- package/dist/collection/components/image/image.js +1 -1
- package/dist/collection/components/navigation/hy-menu-main-group/hy-menu-main-group.css +3 -21
- package/dist/collection/components/navigation/menu/menu.css +51 -27
- package/dist/collection/components/navigation/menu/menu.js +10 -12
- package/dist/collection/components/navigation/menu-item/menu-item.css +69 -50
- package/dist/collection/components/navigation/menu-item/menu-item.js +25 -2
- package/dist/collection/components/navigation/menu-language/menu-language.css +79 -137
- package/dist/collection/components/navigation/menu-language/menu-language.js +18 -40
- package/dist/collection/components/navigation/menu-language-item/menu-language-item.css +15 -81
- package/dist/collection/components/navigation/menu-language-item/menu-language-item.js +4 -28
- package/dist/collection/components/navigation/menu-level-container/menu-level-container.css +1 -0
- package/dist/collection/components/navigation/menu-level-container/menu-level-container.js +2 -1
- package/dist/collection/components/navigation/menu-mobile-breadcrumb/menu-mobile-breadcrumb.css +13 -31
- package/dist/collection/components/navigation/menu-mobile-breadcrumb/menu-mobile-breadcrumb.js +2 -8
- package/dist/collection/components/navigation/mobile-menu-shortcuts/mobile-menu-shortcuts.css +140 -0
- package/dist/collection/components/navigation/mobile-menu-shortcuts/mobile-menu-shortcuts.js +68 -0
- package/dist/collection/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.css +236 -455
- package/dist/collection/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.js +132 -131
- package/dist/collection/components/site-header/site-header.css +189 -405
- package/dist/collection/components/site-header/site-header.js +83 -108
- package/dist/collection/components/site-header/site-logo/site-logo.css +2 -1
- package/dist/collection/components/site-header/site-search/site-search.css +58 -113
- package/dist/collection/components/site-header/site-search/site-search.js +3 -3
- package/dist/esm/color-box.entry.js +1 -1
- package/dist/esm/{globalScript-5c9d232b.js → globalScript-968b96dd.js} +1 -1
- package/dist/esm/huds-lib.js +3 -3
- package/dist/esm/hy-accordion-container.entry.js +1 -1
- package/dist/esm/hy-accordion-item.entry.js +1 -1
- package/dist/esm/hy-adjacent-image-text.entry.js +2 -2
- package/dist/esm/hy-anchor-link-list.entry.js +2 -2
- package/dist/esm/hy-badge.entry.js +1 -1
- package/dist/esm/hy-banner.entry.js +1 -1
- package/dist/esm/hy-baseline.entry.js +1 -1
- package/dist/esm/hy-box-container.entry.js +1 -1
- package/dist/esm/hy-box.entry.js +1 -1
- package/dist/esm/hy-breadcrumbs.entry.js +2 -2
- package/dist/esm/hy-button.entry.js +1 -1
- package/dist/esm/hy-checkbox.entry.js +1 -1
- package/dist/esm/hy-collaboration.entry.js +1 -1
- package/dist/esm/hy-content-list-item.entry.js +2 -2
- package/dist/esm/hy-content-list.entry.js +1 -1
- package/dist/esm/hy-crisis-banner.entry.js +1 -1
- package/dist/esm/hy-cta-button.entry.js +1 -1
- package/dist/esm/hy-cta-link.entry.js +1 -1
- package/dist/esm/hy-desktop-menu-links.entry.js +68 -102
- package/dist/esm/hy-docs-container.entry.js +1 -1
- package/dist/esm/hy-dropdown-panel_2.entry.js +1 -1
- package/dist/esm/hy-dropdown.entry.js +2 -2
- package/dist/esm/hy-filter-group-item.entry.js +1 -1
- package/dist/esm/hy-filter-group.entry.js +1 -1
- package/dist/esm/hy-filter-list-type.entry.js +1 -1
- package/dist/esm/hy-filter-visibility-tool-reset_2.entry.js +1 -1
- package/dist/esm/hy-filter-visibility-tool.entry.js +1 -1
- package/dist/esm/hy-footer_5.entry.js +2 -2
- package/dist/esm/hy-general-list_2.entry.js +2 -2
- package/dist/esm/hy-grid-container.entry.js +1 -1
- package/dist/esm/hy-grid-item.entry.js +1 -1
- package/dist/esm/hy-grid-row.entry.js +1 -1
- package/dist/esm/hy-heading.entry.js +9 -3
- package/dist/esm/hy-hero.entry.js +5 -5
- package/dist/esm/hy-icon.entry.js +1 -1
- package/dist/esm/hy-image.entry.js +3 -3
- package/dist/esm/hy-ingress.entry.js +1 -1
- package/dist/esm/hy-introduction.entry.js +1 -1
- package/dist/esm/hy-key-figure-group.entry.js +2 -2
- package/dist/esm/hy-key-figure.entry.js +1 -1
- package/dist/esm/hy-key-highlight-group.entry.js +2 -2
- package/dist/esm/hy-key-highlight.entry.js +1 -1
- package/dist/esm/hy-large-process-flow-phase.entry.js +2 -2
- package/dist/esm/hy-large-process-flow.entry.js +2 -2
- package/dist/esm/hy-link-box-list.entry.js +2 -2
- package/dist/esm/hy-link-box.entry.js +1 -1
- package/dist/esm/hy-link-list.entry.js +2 -2
- package/dist/esm/hy-link.entry.js +1 -1
- package/dist/esm/hy-list-item.entry.js +1 -1
- package/dist/esm/hy-logo-grid-item.entry.js +1 -1
- package/dist/esm/hy-logo-grid.entry.js +1 -1
- package/dist/esm/hy-main-content-wrapper.entry.js +1 -1
- package/dist/esm/hy-main.entry.js +1 -1
- package/dist/esm/hy-menu-item-sidebar.entry.js +1 -1
- package/dist/esm/hy-menu-item.entry.js +5 -3
- package/dist/esm/hy-menu-language-item.entry.js +5 -10
- package/dist/esm/hy-menu-language_2.entry.js +19 -24
- package/dist/esm/hy-menu-level-container.entry.js +3 -3
- package/dist/esm/hy-menu-main-group.entry.js +3 -3
- package/dist/esm/hy-menu-sidebar.entry.js +1 -1
- package/dist/esm/hy-menu.entry.js +8 -12
- package/dist/esm/hy-mobile-menu-shortcuts.entry.js +22 -0
- package/dist/esm/hy-opening-hours-content.entry.js +1 -1
- package/dist/esm/hy-opening-hours.entry.js +1 -1
- package/dist/esm/hy-pager-item.entry.js +1 -1
- package/dist/esm/hy-pager.entry.js +1 -1
- package/dist/esm/hy-paragraph-text.entry.js +1 -1
- package/dist/esm/hy-person-card.entry.js +1 -1
- package/dist/esm/hy-process-flow-box.entry.js +1 -1
- package/dist/esm/hy-process.entry.js +2 -2
- package/dist/esm/hy-prominent-image.entry.js +1 -1
- package/dist/esm/hy-quote.entry.js +1 -1
- package/dist/esm/hy-row.entry.js +1 -1
- package/dist/esm/hy-search-field.entry.js +1 -1
- package/dist/esm/hy-section-container.entry.js +1 -1
- package/dist/esm/hy-shortcuts.entry.js +1 -1
- package/dist/esm/hy-site-header_3.entry.js +43 -42
- package/dist/esm/hy-table-container.entry.js +1 -1
- package/dist/esm/hy-tabs-item.entry.js +1 -1
- package/dist/esm/hy-tabs.entry.js +1 -1
- package/dist/esm/hy-tag.entry.js +1 -1
- package/dist/esm/hy-tiny-text.entry.js +1 -1
- package/dist/esm/hy-twitter-feed.entry.js +1 -1
- package/dist/esm/hy-two-columns.entry.js +1 -1
- package/dist/esm/hy-user-login-form.entry.js +1 -1
- package/dist/esm/hy-video.entry.js +1 -1
- package/dist/esm/{index-fbbc09ec.js → index-a38b87db.js} +2 -1
- package/dist/esm/loader.js +3 -3
- package/dist/huds-lib/huds-lib.esm.js +1 -1
- package/dist/huds-lib/p-00e94feb.entry.js +1 -0
- package/dist/huds-lib/p-0116a0a5.entry.js +1 -0
- package/dist/huds-lib/{p-6d9e4ec4.entry.js → p-01712ca5.entry.js} +1 -1
- package/dist/huds-lib/{p-75c2d150.entry.js → p-0260d2ca.entry.js} +1 -1
- package/dist/huds-lib/{p-2d4098f9.entry.js → p-0977618c.entry.js} +1 -1
- package/dist/huds-lib/{p-9693b155.entry.js → p-0ecafe0e.entry.js} +1 -1
- package/dist/huds-lib/{p-f05bdce1.entry.js → p-11e56f3a.entry.js} +1 -1
- package/dist/huds-lib/{p-9b834399.entry.js → p-15a21c20.entry.js} +1 -1
- package/dist/huds-lib/{p-b4bf94bd.entry.js → p-15db4fae.entry.js} +1 -1
- package/dist/huds-lib/{p-afd2181e.entry.js → p-164c361b.entry.js} +1 -1
- package/dist/huds-lib/{p-3056d124.entry.js → p-17c1f514.entry.js} +1 -1
- package/dist/huds-lib/{p-f6117edb.entry.js → p-1b85cd45.entry.js} +1 -1
- package/dist/huds-lib/{p-0bd337a8.entry.js → p-1d255319.entry.js} +1 -1
- package/dist/huds-lib/{p-eadd8cb3.entry.js → p-229d3332.entry.js} +1 -1
- package/dist/huds-lib/{p-1c78eb02.entry.js → p-241216a3.entry.js} +1 -1
- package/dist/huds-lib/{p-69fdd152.entry.js → p-258c3b0e.entry.js} +1 -1
- package/dist/huds-lib/{p-8c0ec875.entry.js → p-26104af0.entry.js} +1 -1
- package/dist/huds-lib/{p-665bab39.entry.js → p-2716775c.entry.js} +1 -1
- package/dist/huds-lib/{p-57ab4e6e.entry.js → p-2884f04c.entry.js} +1 -1
- package/dist/huds-lib/{p-abebc2df.entry.js → p-2ed13bb3.entry.js} +1 -1
- package/dist/huds-lib/{p-7b2c2481.entry.js → p-31e8b291.entry.js} +1 -1
- package/dist/huds-lib/{p-a847e865.entry.js → p-3862113f.entry.js} +1 -1
- package/dist/huds-lib/{p-031d3bf8.entry.js → p-3a0cbfbc.entry.js} +1 -1
- package/dist/huds-lib/{p-fd339472.entry.js → p-3a2fd06e.entry.js} +1 -1
- package/dist/huds-lib/{p-485099a1.entry.js → p-3ca46ddb.entry.js} +1 -1
- package/dist/huds-lib/{p-a21ebe8a.entry.js → p-3ef36a18.entry.js} +1 -1
- package/dist/huds-lib/{p-7d0b0674.entry.js → p-3f15571f.entry.js} +1 -1
- package/dist/huds-lib/{p-9deb2733.entry.js → p-4404fbde.entry.js} +1 -1
- package/dist/huds-lib/{p-7f7f7bc1.entry.js → p-445be0e8.entry.js} +1 -1
- package/dist/huds-lib/{p-70fcc954.entry.js → p-535b56d4.entry.js} +1 -1
- package/dist/huds-lib/{p-35bc6516.entry.js → p-54229a0d.entry.js} +1 -1
- package/dist/huds-lib/{p-45454a42.js → p-5617bc3e.js} +1 -1
- package/dist/huds-lib/{p-34e39dd2.entry.js → p-5b3a4a8b.entry.js} +1 -1
- package/dist/huds-lib/p-5e1dc555.entry.js +1 -0
- package/dist/huds-lib/p-64023b5d.entry.js +1 -0
- package/dist/huds-lib/p-6b8b4259.entry.js +1 -0
- package/dist/huds-lib/{p-23820e91.entry.js → p-6fd29d10.entry.js} +1 -1
- package/dist/huds-lib/{p-8d22323b.entry.js → p-7e9f2a43.entry.js} +1 -1
- package/dist/huds-lib/{p-3aeb60c7.entry.js → p-7f005622.entry.js} +1 -1
- package/dist/huds-lib/{p-beab95eb.entry.js → p-81800bd1.entry.js} +1 -1
- package/dist/huds-lib/{p-c247af64.entry.js → p-83a380fc.entry.js} +1 -1
- package/dist/huds-lib/{p-44c98cd6.entry.js → p-891108e9.entry.js} +1 -1
- package/dist/huds-lib/{p-0c682a0e.entry.js → p-8b20a127.entry.js} +1 -1
- package/dist/huds-lib/{p-6ec67f50.entry.js → p-8cbbedb1.entry.js} +1 -1
- package/dist/huds-lib/{p-3663dfa6.entry.js → p-8fe61cc4.entry.js} +1 -1
- package/dist/huds-lib/{p-fe6eb2b6.entry.js → p-91e7dbdb.entry.js} +1 -1
- package/dist/huds-lib/{p-10808327.entry.js → p-943998ee.entry.js} +1 -1
- package/dist/huds-lib/p-9482c6bf.entry.js +1 -0
- package/dist/huds-lib/{p-c89d1618.entry.js → p-9739d43b.entry.js} +1 -1
- package/dist/huds-lib/p-97727091.entry.js +8 -0
- package/dist/huds-lib/p-9ab9c615.entry.js +1 -0
- package/dist/huds-lib/{p-ae673c56.entry.js → p-9caa985a.entry.js} +1 -1
- package/dist/huds-lib/{p-7d777e18.entry.js → p-9eb39b28.entry.js} +1 -1
- package/dist/huds-lib/p-a099a649.entry.js +1 -0
- package/dist/huds-lib/{p-7d3faaef.entry.js → p-a295071c.entry.js} +1 -1
- package/dist/huds-lib/{p-b6cc78ce.entry.js → p-a90b0293.entry.js} +1 -1
- package/dist/huds-lib/p-ac7fbdbf.entry.js +1 -0
- package/dist/huds-lib/{p-6e9878d1.entry.js → p-add4a25d.entry.js} +1 -1
- package/dist/huds-lib/{p-4539ca8d.entry.js → p-b1a3cbcc.entry.js} +1 -1
- package/dist/huds-lib/{p-ae4a5bed.entry.js → p-b5ca8a38.entry.js} +1 -1
- package/dist/huds-lib/{p-b3b6e7b9.entry.js → p-b71d0912.entry.js} +1 -1
- package/dist/huds-lib/{p-4622b82d.entry.js → p-b86b5336.entry.js} +1 -1
- package/dist/huds-lib/{p-89a197ec.entry.js → p-b8735152.entry.js} +1 -1
- package/dist/huds-lib/p-beeb1416.entry.js +1 -0
- package/dist/huds-lib/p-bffe53e9.entry.js +1 -0
- package/dist/huds-lib/{p-d8161ace.entry.js → p-c143d160.entry.js} +1 -1
- package/dist/huds-lib/{p-eb55e724.entry.js → p-c21d1933.entry.js} +1 -1
- package/dist/huds-lib/{p-e75ee214.entry.js → p-c3e38183.entry.js} +1 -1
- package/dist/huds-lib/{p-fb3c39b3.entry.js → p-c4960510.entry.js} +1 -1
- package/dist/huds-lib/{p-327a543d.entry.js → p-c8c24282.entry.js} +1 -1
- package/dist/huds-lib/{p-ea7f948e.entry.js → p-caf7a56b.entry.js} +1 -1
- package/dist/huds-lib/p-ce9d4716.entry.js +1 -0
- package/dist/huds-lib/{p-d38b0576.entry.js → p-d1249b2e.entry.js} +1 -1
- package/dist/huds-lib/{p-36dbfc06.js → p-d5584db1.js} +1 -1
- package/dist/huds-lib/{p-2c9cd456.entry.js → p-d60b07c4.entry.js} +1 -1
- package/dist/huds-lib/{p-70a0c53c.entry.js → p-d6588da7.entry.js} +1 -1
- package/dist/huds-lib/{p-21eda560.entry.js → p-d9de2cad.entry.js} +1 -1
- package/dist/huds-lib/p-db142402.entry.js +1 -0
- package/dist/huds-lib/{p-a19edd06.entry.js → p-dd2ab3e6.entry.js} +1 -1
- package/dist/huds-lib/{p-25b70e5e.entry.js → p-e1346358.entry.js} +1 -1
- package/dist/huds-lib/{p-98dd30e9.entry.js → p-e475714a.entry.js} +1 -1
- package/dist/huds-lib/{p-c0b247d8.entry.js → p-e6a97c32.entry.js} +1 -1
- package/dist/huds-lib/{p-c8b11427.entry.js → p-e6fa0f75.entry.js} +1 -1
- package/dist/huds-lib/{p-711691d9.entry.js → p-ea7dde9b.entry.js} +1 -1
- package/dist/huds-lib/{p-91397c3c.entry.js → p-efeeca30.entry.js} +1 -1
- package/dist/huds-lib/{p-566ac888.entry.js → p-f4a9ea9c.entry.js} +1 -1
- package/dist/huds-lib/{p-9f0c5752.entry.js → p-f5e78e68.entry.js} +1 -1
- package/dist/huds-lib/{p-2ee50dff.entry.js → p-f7d11cd4.entry.js} +1 -1
- package/dist/huds-lib/{p-d15f1223.entry.js → p-fb8f253d.entry.js} +1 -1
- package/dist/types/components/heading/heading.d.ts +3 -0
- package/dist/types/components/navigation/menu-item/menu-item.d.ts +1 -0
- package/dist/types/components/navigation/menu-language/menu-language.d.ts +0 -1
- package/dist/types/components/navigation/menu-language-item/menu-language-item.d.ts +0 -1
- package/dist/types/components/navigation/mobile-menu-shortcuts/mobile-menu-shortcuts.d.ts +13 -0
- package/dist/types/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.d.ts +2 -1
- package/dist/types/components/site-header/site-header.d.ts +1 -0
- package/dist/types/components.d.ts +26 -4
- package/package.json +1 -1
- package/dist/huds-lib/p-0746359d.entry.js +0 -1
- package/dist/huds-lib/p-1862b753.entry.js +0 -1
- package/dist/huds-lib/p-402d4c06.entry.js +0 -1
- package/dist/huds-lib/p-4b5ede51.entry.js +0 -1
- package/dist/huds-lib/p-57506f48.entry.js +0 -1
- package/dist/huds-lib/p-6dde95bc.entry.js +0 -8
- package/dist/huds-lib/p-9f108905.entry.js +0 -1
- package/dist/huds-lib/p-aaa6f401.entry.js +0 -1
- package/dist/huds-lib/p-b146defe.entry.js +0 -1
- package/dist/huds-lib/p-b542ab10.entry.js +0 -1
- package/dist/huds-lib/p-c1c66328.entry.js +0 -1
- package/dist/huds-lib/p-d56fd335.entry.js +0 -1
- package/dist/huds-lib/p-fa16383c.entry.js +0 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
let timeout = null;
|
|
2
|
+
let delay = 250;
|
|
3
|
+
import { Component, Element, Event, Fragment, h, Listen, Prop, State } from '@stencil/core';
|
|
2
4
|
import ResizeObserver from 'resize-observer-polyfill';
|
|
3
5
|
import { MenuType, ColorVariant, SiteLogoSize } from '../../utils/utils';
|
|
4
6
|
import { jsonParserWorker } from '../../global/globalScript';
|
|
@@ -13,6 +15,7 @@ export class SiteHeader {
|
|
|
13
15
|
this.menuType = null;
|
|
14
16
|
this.isMenuOpen = false;
|
|
15
17
|
this.isDesktopMenuOpen = false;
|
|
18
|
+
this.isDesktopMenuDropdown = false;
|
|
16
19
|
this.isTopMenuOpen = false;
|
|
17
20
|
this.lastScrollTop = 0;
|
|
18
21
|
this.delta = 5;
|
|
@@ -86,6 +89,9 @@ export class SiteHeader {
|
|
|
86
89
|
this.el.children[0].setAttribute('menu-language-label-open', this.languageLabels['open']);
|
|
87
90
|
this.el.children[0].setAttribute('menu-language-label-close', this.languageLabels['close']);
|
|
88
91
|
this.el.children[0].setAttribute('label-front-page', this.menuLabels['front_page']);
|
|
92
|
+
if (this.groupType !== '') {
|
|
93
|
+
this.isDesktopMenuDropdown = true;
|
|
94
|
+
}
|
|
89
95
|
}
|
|
90
96
|
hasScrolled() {
|
|
91
97
|
let topOffset = window.pageYOffset;
|
|
@@ -137,10 +143,7 @@ export class SiteHeader {
|
|
|
137
143
|
}
|
|
138
144
|
applySizeClasses(size) {
|
|
139
145
|
// Set the menu-type based on the width of the browser.
|
|
140
|
-
if (size <= 1200
|
|
141
|
-
this.menuType = MenuType.tablet;
|
|
142
|
-
}
|
|
143
|
-
else if (size <= 960) {
|
|
146
|
+
if (size <= 1200) {
|
|
144
147
|
this.menuType = MenuType.mobile;
|
|
145
148
|
}
|
|
146
149
|
else {
|
|
@@ -148,18 +151,18 @@ export class SiteHeader {
|
|
|
148
151
|
}
|
|
149
152
|
// Pass the menu type to menu component.
|
|
150
153
|
this.isMobile = this.menuType === (MenuType.mobile || MenuType.tablet);
|
|
151
|
-
const menuAttribute = this.menuType
|
|
154
|
+
const menuAttribute = this.menuType;
|
|
152
155
|
this.el.children[0].setAttribute('menu-type', menuAttribute);
|
|
153
156
|
}
|
|
154
157
|
render() {
|
|
155
|
-
var _a
|
|
158
|
+
var _a;
|
|
156
159
|
if (this.menuType === null)
|
|
157
160
|
return;
|
|
158
161
|
const logoSize = this.isMobile ? SiteLogoSize.small : SiteLogoSize.big;
|
|
159
162
|
const logoSizeGroup = this.isMobile ? SiteLogoSize.small : SiteLogoSize.small;
|
|
160
163
|
const logoColor = ColorVariant.black;
|
|
161
164
|
const logoColorGroup = ColorVariant.white;
|
|
162
|
-
let classAttributes = ['hy-site-header',
|
|
165
|
+
let classAttributes = ['hy-site-header', `hy-site-header--${this.menuType}`, this.isGroup ? 'is-group' : ''];
|
|
163
166
|
const toggleMenuMobileAndRemoveListener = () => {
|
|
164
167
|
window.removeEventListener('click', handleClickOutside);
|
|
165
168
|
this.mobileMenuToggle();
|
|
@@ -173,118 +176,89 @@ export class SiteHeader {
|
|
|
173
176
|
if (this.isMenuOpen) {
|
|
174
177
|
window.addEventListener('click', handleClickOutside);
|
|
175
178
|
}
|
|
179
|
+
const handleHeaderElementContentStack = (element) => {
|
|
180
|
+
if (element.offsetHeight > 133) {
|
|
181
|
+
element.classList.add('is-stacked');
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
element.classList.remove('is-stacked');
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
window.onload = () => {
|
|
188
|
+
const headerElement = this.el.shadowRoot.querySelector('.hy-site-header');
|
|
189
|
+
handleHeaderElementContentStack(headerElement);
|
|
190
|
+
window.addEventListener('resize', () => {
|
|
191
|
+
clearTimeout(timeout);
|
|
192
|
+
timeout = setTimeout(() => handleHeaderElementContentStack(headerElement), delay);
|
|
193
|
+
});
|
|
194
|
+
};
|
|
176
195
|
switch (this.menuType) {
|
|
177
196
|
case MenuType.desktop:
|
|
178
197
|
// Larger than 1200px screens
|
|
179
198
|
return [
|
|
180
|
-
h("header", { class: classAttributes.join(' ') },
|
|
181
|
-
h("div", { class: {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
this.
|
|
203
|
-
|
|
199
|
+
h("header", { class: `${classAttributes.join(' ')}` },
|
|
200
|
+
h("div", { class: {
|
|
201
|
+
'hy-backdrop': true,
|
|
202
|
+
'is-active': (this.isMenuOpen && !this.isDesktopMenuDropdown) ||
|
|
203
|
+
(this.isTopMenuOpen && !this.isDesktopMenuDropdown),
|
|
204
|
+
} }),
|
|
205
|
+
this.isGroup && (h("section", { class: `hy-site-header__content-top ${this.isTopMenuOpen ? 'is-open' : ''}` },
|
|
206
|
+
h("div", { class: "hy-site-header__container" },
|
|
207
|
+
h("div", { class: "hy-site-header__branding" },
|
|
208
|
+
h("hy-site-logo", { "is-group": true, size: logoSizeGroup, color: logoColorGroup, url: this.siteUrl, label: this.siteLabel })),
|
|
209
|
+
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 }),
|
|
210
|
+
h("div", { class: "hy-site-header__actions" },
|
|
211
|
+
h("hy-menu-language", { "data-menu-language": this.dataMenuLanguage, labels: this.languageLabels, isGroup: true }),
|
|
212
|
+
!this.noSearch && (h("hy-site-search", { class: 'menu--secondary__item group', size: 18, color: logoColorGroup, "is-group": true, "show-label": this.showSearchLabel, labels: this.searchLabels, "search-labels": this.dataSiteSearchLabels, "search-tools": this.dataSearchTools })),
|
|
213
|
+
this.donateLink.map(({ label, url }) => {
|
|
214
|
+
return (h("a", { class: 'hy-site-header__donate-link', href: url },
|
|
215
|
+
h("hy-icon", { icon: 'hy-icon-heart-support', size: 14, fill: ColorVariant.black }),
|
|
216
|
+
h("span", null, label)));
|
|
217
|
+
}))))),
|
|
218
|
+
h("section", { class: `hy-site-header__container ${this.isGroup ? 'is-group' : ''}` },
|
|
219
|
+
h("div", { class: 'hy-site-header__branding' },
|
|
220
|
+
this.isGroup && this.groupType == 'research_group_menu' && h("p", null, this.researchGroupLabel),
|
|
221
|
+
this.isGroup ? (h("a", { href: this.logoUrl }, this.logoLabel)) : (h("hy-site-logo", { size: logoSize, color: logoColor, url: this.logoUrl, label: this.logoLabel }))),
|
|
222
|
+
this.groupType != 'research_group_menu' && (h("hy-desktop-menu-links", { "data-desktop-links": this.dataDesktopLinks, isGroup: this.isGroup, isDropdown: this.isDesktopMenuDropdown })),
|
|
223
|
+
!this.isGroup && (h("div", { class: "hy-site-header__actions" },
|
|
224
|
+
h("hy-menu-language", { "data-menu-language": this.dataMenuLanguage, labels: this.languageLabels }),
|
|
225
|
+
!this.noSearch && (h("hy-site-search", { size: 14, color: ColorVariant.black, "show-label": this.showSearchLabel, labels: this.searchLabels, "search-labels": this.dataSiteSearchLabels, "search-tools": this.dataSearchTools })),
|
|
226
|
+
this.donateLink.map(({ label, url }) => {
|
|
227
|
+
return (h("a", { class: 'hy-site-header__donate-link', href: url },
|
|
204
228
|
h("hy-icon", { icon: 'hy-icon-heart-support', size: 14, fill: ColorVariant.black }),
|
|
205
|
-
h("span",
|
|
229
|
+
h("span", null, label)));
|
|
206
230
|
}))))),
|
|
207
231
|
];
|
|
208
|
-
case MenuType.tablet:
|
|
209
|
-
// 960px-1200px screens
|
|
210
|
-
return (h("header", { class: classAttributes.join(' ') },
|
|
211
|
-
h("div", { class: { 'hy-backdrop': true, 'is-active': this.isMenuOpen } }),
|
|
212
|
-
this.isGroup && (h("div", { class: "hy-site-header__content-top" },
|
|
213
|
-
h("div", { class: 'hy-site-header__logo-container group ', role: "navigation" },
|
|
214
|
-
h("hy-site-logo", { "is-group": 'true', size: logoSize, color: logoColorGroup, url: this.siteUrl, label: this.siteLabel }),
|
|
215
|
-
h("hy-menu-main-group", { "is-mobile": false, "menu-label": (_b = this.groupPages['university_main_menu']) !== null && _b !== void 0 ? _b : '', "data-main-menu": this.dataMainMenuLinks })),
|
|
216
|
-
h("div", { class: 'menu--secondary menu--secondary--group' },
|
|
217
|
-
h("hy-menu-language", { class: 'menu--secondary__item is-first group', "is-group": true, "is-mobile": false, "data-menu-language": this.dataMenuLanguage, labels: this.languageLabels }),
|
|
218
|
-
!this.noSearch && (h("hy-site-search", { class: 'menu--secondary__item group', size: 16, color: logoColorGroup, "show-label": this.showSearchLabel, "is-group": true, labels: this.searchLabels, "search-labels": this.dataSiteSearchLabels, "search-tools": this.dataSearchTools })),
|
|
219
|
-
this.donateLink.map((i) => {
|
|
220
|
-
return (h("a", { class: 'menu--secondary__item hy-link__donate group', href: i.url },
|
|
221
|
-
h("hy-icon", { icon: 'hy-icon-heart-support', size: 16, fill: logoColorGroup }),
|
|
222
|
-
h("span", { class: 'hy-link__donate__label group' }, i.label)));
|
|
223
|
-
})))),
|
|
224
|
-
h("div", { class: { 'hy-site-header__content': true, group: this.isGroup } },
|
|
225
|
-
h("div", { class: 'hy-site-header__logo-container' },
|
|
226
|
-
this.isGroup && this.groupType == 'research_group_menu' && (h("div", { class: 'hy-site-header__logo-container__group_label' }, this.researchGroupLabel)),
|
|
227
|
-
this.isGroup ? (h("a", { class: 'group', href: this.logoUrl }, this.logoLabel)) : (h("hy-site-logo", { size: logoSize, color: logoColor, url: this.logoUrl, label: this.logoLabel }))),
|
|
228
|
-
!this.isGroup && (h("div", { class: 'menu--secondary' },
|
|
229
|
-
h("hy-menu-language", { class: 'menu--secondary__item is-first', "is-mobile": false, "data-menu-language": this.dataMenuLanguage, labels: this.languageLabels }),
|
|
230
|
-
!this.noSearch && (h("hy-site-search", { class: 'menu--secondary__item', size: 14, color: ColorVariant.black, "show-label": this.showSearchLabel, labels: this.searchLabels, "search-labels": this.dataSiteSearchLabels, "search-tools": this.dataSearchTools })),
|
|
231
|
-
this.donateLink.map((i) => {
|
|
232
|
-
return (h("a", { class: 'menu--secondary__item hy-link__donate', href: i.url },
|
|
233
|
-
h("hy-icon", { icon: 'hy-icon-heart-support', size: 14, fill: ColorVariant.black }),
|
|
234
|
-
h("span", { class: 'hy-link__donate__label' }, i.label)));
|
|
235
|
-
}))),
|
|
236
|
-
h("div", { class: 'hy-site-header__menu-container' },
|
|
237
|
-
h("span", { class: {
|
|
238
|
-
'hy-site-header__menu-label': true,
|
|
239
|
-
'is-visible': this.isMenuOpen,
|
|
240
|
-
} }, this.menuLabel),
|
|
241
|
-
h("button", { onClick: () => toggleMenuMobileAndRemoveListener(), class: {
|
|
242
|
-
'hy-site-header__panel-toggle': true,
|
|
243
|
-
'is-open': this.isMenuOpen,
|
|
244
|
-
}, "aria-label": this.isMenuOpen ? this.menuLabels['close'] : this.menuLabels['open'] }, this.isMenuOpen ? (h("span", { class: "hy-site-header__panel-toggle__label" },
|
|
245
|
-
this.menuLabelClose,
|
|
246
|
-
h("hy-icon", { icon: 'hy-icon-remove', size: 20, fill: ColorVariant.black }))) : (h("span", { class: "hy-site-header__panel-toggle__label" },
|
|
247
|
-
this.menuLabelOpen,
|
|
248
|
-
h("hy-icon", { icon: 'hy-icon-hamburger', size: 20, fill: ColorVariant.black })))),
|
|
249
|
-
h("div", { class: {
|
|
250
|
-
'is-open': this.isMenuOpen,
|
|
251
|
-
'hy-site-header__panel': true,
|
|
252
|
-
} },
|
|
253
|
-
h("slot", { name: 'menu' }))))));
|
|
254
232
|
case MenuType.mobile:
|
|
255
233
|
// Smaller than 960px screens
|
|
256
234
|
return (h("header", { class: classAttributes.join(' ') },
|
|
257
235
|
h("div", { class: { 'hy-backdrop': true, 'is-active': this.isMenuOpen } }),
|
|
258
236
|
h("div", { class: { 'hy-backdrop': true, 'is-active-top': this.isTopMenuOpen } }),
|
|
259
|
-
this.isGroup && (h("
|
|
260
|
-
h("div", { class:
|
|
261
|
-
h("
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
h("
|
|
284
|
-
'is-open': this.isMenuOpen,
|
|
285
|
-
'hy-site-header__panel': true,
|
|
286
|
-
} },
|
|
287
|
-
h("slot", { name: 'menu' }))))));
|
|
237
|
+
this.isGroup && (h("section", { class: `hy-site-header__content-top ${this.isTopMenuOpen ? 'is-open' : ''}` },
|
|
238
|
+
h("div", { class: "hy-site-header__container" },
|
|
239
|
+
h("div", { class: "hy-site-header__branding" },
|
|
240
|
+
h("hy-site-logo", { "is-group": true, size: logoSizeGroup, color: logoColorGroup, url: this.siteUrl, label: this.siteLabel })),
|
|
241
|
+
h("div", { class: "hy-site-header__actions" },
|
|
242
|
+
h("hy-menu-language", { "data-menu-language": this.dataMenuLanguage, labels: this.languageLabels, isGroup: true }),
|
|
243
|
+
!this.noSearch && (h("hy-site-search", { class: 'menu--secondary__item group', size: 18, color: logoColorGroup, "is-group": true, "show-label": this.showSearchLabel, labels: this.searchLabels, "search-labels": this.dataSiteSearchLabels, "search-tools": this.dataSearchTools })),
|
|
244
|
+
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 }))))),
|
|
245
|
+
h("section", { class: "hy-site-header__container" },
|
|
246
|
+
h("div", { class: 'hy-site-header__branding' },
|
|
247
|
+
this.groupType == 'research_group_menu' && h("p", null, this.researchGroupLabel),
|
|
248
|
+
this.isGroup ? (h("a", { href: this.logoUrl }, this.logoLabel)) : (h("hy-site-logo", { size: logoSize, color: logoColor, url: this.logoUrl, label: this.logoLabel }))),
|
|
249
|
+
h("div", { class: "hy-site-header__actions" },
|
|
250
|
+
!this.isGroup && (h("hy-menu-language", { "data-menu-language": this.dataMenuLanguage, labels: this.languageLabels })),
|
|
251
|
+
!this.isGroup && !this.noSearch && (h("hy-site-search", { size: 24, color: ColorVariant.black, "show-label": this.showSearchLabel, labels: this.searchLabels, "search-labels": this.dataSiteSearchLabels, "search-tools": this.dataSearchTools })),
|
|
252
|
+
h("button", { onClick: () => toggleMenuMobileAndRemoveListener(), class: `hy-site-header__menu-open-button`, "aria-label": this.menuLabels['open'], "aria-expanded": `${this.isMenuOpen}` },
|
|
253
|
+
!this.isMenuOpen && h("hy-icon", { icon: 'hy-icon-hamburger', size: 24, fill: ColorVariant.black }),
|
|
254
|
+
this.isMenuOpen && (h(Fragment, null,
|
|
255
|
+
h("span", null, "Close"),
|
|
256
|
+
h("hy-icon", { icon: 'hy-icon-remove', size: 16 }))))),
|
|
257
|
+
h("div", { class: {
|
|
258
|
+
'is-open': this.isMenuOpen,
|
|
259
|
+
'hy-site-header__panel': true,
|
|
260
|
+
}, "aria-hidden": `${!this.isMenuOpen}` },
|
|
261
|
+
h("slot", { name: 'menu' })))));
|
|
288
262
|
}
|
|
289
263
|
}
|
|
290
264
|
static get is() { return "hy-site-header"; }
|
|
@@ -665,6 +639,7 @@ export class SiteHeader {
|
|
|
665
639
|
"isMobile": {},
|
|
666
640
|
"isMenuOpen": {},
|
|
667
641
|
"isDesktopMenuOpen": {},
|
|
642
|
+
"isDesktopMenuDropdown": {},
|
|
668
643
|
"isTopMenuOpen": {},
|
|
669
644
|
"lastScrollTop": {},
|
|
670
645
|
"delta": {},
|
|
@@ -92,13 +92,14 @@
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
@media (min-width: 30rem) {
|
|
95
|
-
.hy-site-
|
|
95
|
+
.hy-site-header__branding .hy-site-logo__label {
|
|
96
96
|
min-width: -webkit-min-content;
|
|
97
97
|
min-width: -moz-min-content;
|
|
98
98
|
min-width: min-content;
|
|
99
99
|
max-width: -webkit-max-content;
|
|
100
100
|
max-width: -moz-max-content;
|
|
101
101
|
max-width: max-content;
|
|
102
|
+
white-space: nowrap;
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
105
|
|
|
@@ -57,169 +57,114 @@
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.button--search {
|
|
60
|
+
font-size: 0.75rem;
|
|
61
|
+
line-height: 24px;
|
|
62
|
+
font-weight: 400;
|
|
60
63
|
-webkit-box-align: center;
|
|
61
64
|
-ms-flex-align: center;
|
|
62
65
|
align-items: center;
|
|
63
66
|
background: transparent;
|
|
64
67
|
border: 0 none;
|
|
65
|
-
|
|
66
|
-
display: -
|
|
67
|
-
display:
|
|
68
|
-
|
|
68
|
+
color: var(--brand-main-nearly-black);
|
|
69
|
+
display: -webkit-inline-box;
|
|
70
|
+
display: -ms-inline-flexbox;
|
|
71
|
+
display: inline-flex;
|
|
69
72
|
-webkit-box-orient: horizontal;
|
|
70
73
|
-webkit-box-direction: normal;
|
|
71
74
|
-ms-flex-direction: row;
|
|
72
75
|
flex-direction: row;
|
|
73
76
|
font-family: var(--main-font-family);
|
|
77
|
+
height: 100%;
|
|
78
|
+
-webkit-box-pack: center;
|
|
79
|
+
-ms-flex-pack: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
letter-spacing: -0.5px;
|
|
82
|
+
width: 44px;
|
|
74
83
|
}
|
|
75
84
|
|
|
76
|
-
@media (min-width:
|
|
85
|
+
@media (min-width: 75.0625rem) {
|
|
77
86
|
.button--search {
|
|
78
|
-
|
|
87
|
+
display: inline-grid;
|
|
88
|
+
grid-template-columns: repeat(2, auto);
|
|
89
|
+
gap: 4px;
|
|
90
|
+
width: auto;
|
|
79
91
|
}
|
|
80
92
|
}
|
|
81
93
|
|
|
82
|
-
@media (min-width:
|
|
94
|
+
@media (min-width: 1601px) {
|
|
83
95
|
.button--search {
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
-ms-flex-direction: row-reverse;
|
|
87
|
-
flex-direction: row-reverse;
|
|
88
|
-
padding: 0;
|
|
89
|
-
}
|
|
90
|
-
.button--search:focus {
|
|
91
|
-
outline: solid 2px var(--additional-yellow);
|
|
92
|
-
outline-offset: 2px;
|
|
96
|
+
font-size: 0.875rem;
|
|
97
|
+
line-height: 24px;
|
|
93
98
|
}
|
|
94
99
|
}
|
|
95
100
|
|
|
96
|
-
.button--search
|
|
97
|
-
position: absolute;
|
|
98
|
-
right: 50px;
|
|
99
|
-
top: 15px;
|
|
100
|
-
z-index: 101;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.button--search__label {
|
|
104
|
-
font-family: var(--main-font-family);
|
|
105
|
-
margin-left: 4px;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.button--search:not(.group):hover {
|
|
101
|
+
.button--search:hover {
|
|
109
102
|
color: var(--brand-main);
|
|
110
103
|
cursor: pointer;
|
|
111
104
|
}
|
|
112
105
|
|
|
113
|
-
.button--search:
|
|
114
|
-
color: var(--brand-main);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.button--search:not(.group):hover svg {
|
|
106
|
+
.button--search:hover svg {
|
|
118
107
|
fill: var(--brand-main);
|
|
119
108
|
}
|
|
120
109
|
|
|
121
|
-
.button--search:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
@media (min-width: 60rem) {
|
|
127
|
-
.button--search:not(.group) svg {
|
|
128
|
-
height: 16px;
|
|
129
|
-
width: 16px;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
@media (min-width: 75.0625rem) {
|
|
134
|
-
.button--search:not(.group) svg {
|
|
135
|
-
height: 12px;
|
|
136
|
-
width: 12px;
|
|
137
|
-
}
|
|
110
|
+
.button--search:focus {
|
|
111
|
+
outline: solid 2px var(--additional-yellow);
|
|
112
|
+
outline-offset: 2px;
|
|
138
113
|
}
|
|
139
114
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
height: 16px;
|
|
143
|
-
width: 16px;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.button--search:not(.group) .button--search__label {
|
|
148
|
-
font-size: 0.875rem;
|
|
149
|
-
line-height: 14px;
|
|
150
|
-
font-weight: 700;
|
|
151
|
-
color: var(--site-logo-color);
|
|
152
|
-
display: none;
|
|
153
|
-
letter-spacing: -0.9px;
|
|
154
|
-
visibility: hidden;
|
|
115
|
+
.button--search[aria-expanded=true] {
|
|
116
|
+
position: relative;
|
|
155
117
|
}
|
|
156
118
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
@media (min-width: 60rem) {
|
|
167
|
-
.button--search:not(.group) .button--search__label {
|
|
168
|
-
font-size: 0.875rem;
|
|
169
|
-
line-height: 24px;
|
|
170
|
-
font-weight: 600;
|
|
171
|
-
display: block;
|
|
172
|
-
letter-spacing: -0.5px;
|
|
173
|
-
text-transform: none;
|
|
174
|
-
visibility: visible;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
@media (min-width: 75.0625rem) {
|
|
179
|
-
.button--search:not(.group) .button--search__label {
|
|
180
|
-
font-size: 0.75rem;
|
|
181
|
-
line-height: 12px;
|
|
182
|
-
font-weight: 400;
|
|
183
|
-
letter-spacing: -0.6px;
|
|
184
|
-
}
|
|
119
|
+
.button--search[aria-expanded=true]:after {
|
|
120
|
+
content: "";
|
|
121
|
+
position: absolute;
|
|
122
|
+
height: 4px;
|
|
123
|
+
right: 0;
|
|
124
|
+
bottom: -1px;
|
|
125
|
+
left: 0;
|
|
126
|
+
background-color: var(--grayscale-black);
|
|
185
127
|
}
|
|
186
128
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
font-size: 0.875rem;
|
|
190
|
-
line-height: 24px;
|
|
191
|
-
letter-spacing: -0.5px;
|
|
192
|
-
}
|
|
129
|
+
.is-group .button--search {
|
|
130
|
+
color: var(--grayscale-white);
|
|
193
131
|
}
|
|
194
132
|
|
|
195
|
-
.button--search
|
|
133
|
+
.is-group .button--search:hover {
|
|
196
134
|
color: var(--grayscale-medium);
|
|
197
135
|
cursor: pointer;
|
|
198
136
|
}
|
|
199
137
|
|
|
200
|
-
.button--search
|
|
201
|
-
|
|
138
|
+
.is-group .button--search:hover svg {
|
|
139
|
+
fill: var(--grayscale-medium);
|
|
202
140
|
}
|
|
203
141
|
|
|
204
|
-
.button--search.
|
|
205
|
-
|
|
142
|
+
.button--search.is-open--menu {
|
|
143
|
+
position: absolute;
|
|
144
|
+
right: 50px;
|
|
145
|
+
top: 15px;
|
|
146
|
+
z-index: 101;
|
|
206
147
|
}
|
|
207
148
|
|
|
208
|
-
.button--
|
|
209
|
-
color: var(--grayscale-white);
|
|
149
|
+
.button--search__label {
|
|
210
150
|
display: none;
|
|
151
|
+
visibility: hidden;
|
|
211
152
|
}
|
|
212
153
|
|
|
213
|
-
@media (min-width:
|
|
214
|
-
.button--
|
|
215
|
-
font-size: 0.875rem;
|
|
216
|
-
line-height: 24px;
|
|
217
|
-
font-weight: 600;
|
|
154
|
+
@media (min-width: 75.0625rem) {
|
|
155
|
+
.button--search__label {
|
|
218
156
|
display: block;
|
|
219
|
-
|
|
157
|
+
visibility: visible;
|
|
158
|
+
-webkit-box-ordinal-group: 3;
|
|
159
|
+
-ms-flex-order: 2;
|
|
160
|
+
order: 2;
|
|
220
161
|
}
|
|
221
162
|
}
|
|
222
163
|
|
|
164
|
+
.site-search {
|
|
165
|
+
height: 100%;
|
|
166
|
+
}
|
|
167
|
+
|
|
223
168
|
.site-search__panel {
|
|
224
169
|
display: none;
|
|
225
170
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, Prop, h, State, Listen,
|
|
1
|
+
import { Component, Prop, h, State, Listen, Event, Element } from '@stencil/core';
|
|
2
2
|
import { ColorVariant } from '../../../utils/utils';
|
|
3
3
|
import { jsonParserWorker } from '../../../global/globalScript';
|
|
4
4
|
export class SiteSearch {
|
|
@@ -128,13 +128,13 @@ export class SiteSearch {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
render() {
|
|
131
|
-
return (h(
|
|
131
|
+
return (h("div", { class: {
|
|
132
132
|
'site-search': true,
|
|
133
133
|
'site-search__is-open': this.isSearchPanelOpen,
|
|
134
|
+
'is-group': this.isGroup,
|
|
134
135
|
} },
|
|
135
136
|
h("button", { "aria-label": this.showLabel ? this._labels['open'] : '', "aria-expanded": `${this.isSearchPanelOpen}`, class: {
|
|
136
137
|
'button--search': true,
|
|
137
|
-
group: this.isGroup,
|
|
138
138
|
'is-open--menu': this.isAlternative,
|
|
139
139
|
'is-open': this.isSearchPanelOpen,
|
|
140
140
|
}, onClick: (e) => this.handleSearchPanelToggle(e) },
|