@itcenteratunihelsinki/huds-lib 0.8.43 → 0.8.44
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/components/accordion-container.js +48 -0
- package/components/accordion-item.js +239 -0
- package/components/color-box.d.ts +11 -0
- package/components/color-box.js +33 -0
- package/components/cta-button.js +57 -0
- package/components/cta-link.js +50 -0
- package/components/custom-elements.d.ts +2 -0
- package/components/emotion.esm.js +1395 -0
- package/components/globalScript.js +26 -0
- package/components/heading.js +80 -0
- package/components/hy-accordion-container.d.ts +11 -0
- package/components/hy-accordion-container.js +6 -0
- package/components/hy-accordion-item.d.ts +11 -0
- package/components/hy-accordion-item.js +6 -0
- package/components/hy-adjacent-image-text.d.ts +11 -0
- package/components/hy-adjacent-image-text.js +106 -0
- package/components/hy-anchor-link-list.d.ts +11 -0
- package/components/hy-anchor-link-list.js +76 -0
- package/components/hy-badge.d.ts +11 -0
- package/components/hy-badge.js +37 -0
- package/components/hy-banner.d.ts +11 -0
- package/components/hy-banner.js +94 -0
- package/components/hy-baseline.d.ts +11 -0
- package/components/hy-baseline.js +44 -0
- package/components/hy-box-container.d.ts +11 -0
- package/components/hy-box-container.js +43 -0
- package/components/hy-box.d.ts +11 -0
- package/components/hy-box.js +6 -0
- package/components/hy-box2.js +195 -0
- package/components/hy-breadcrumbs.d.ts +11 -0
- package/components/hy-breadcrumbs.js +69 -0
- package/components/hy-button.d.ts +11 -0
- package/components/hy-button.js +111 -0
- package/components/hy-checkbox.d.ts +11 -0
- package/components/hy-checkbox.js +55 -0
- package/components/hy-collaboration.d.ts +11 -0
- package/components/hy-collaboration.js +49 -0
- package/components/hy-content-list-item.d.ts +11 -0
- package/components/hy-content-list-item.js +6 -0
- package/components/hy-content-list-item2.js +109 -0
- package/components/hy-content-list.d.ts +11 -0
- package/components/hy-content-list.js +155 -0
- package/components/hy-crisis-banner.d.ts +11 -0
- package/components/hy-crisis-banner.js +47 -0
- package/components/hy-cta-button.d.ts +11 -0
- package/components/hy-cta-button.js +6 -0
- package/components/hy-cta-link.d.ts +11 -0
- package/components/hy-cta-link.js +6 -0
- package/components/hy-docs-container.d.ts +11 -0
- package/components/hy-docs-container.js +32 -0
- package/components/hy-dropdown-panel-item.d.ts +11 -0
- package/components/hy-dropdown-panel-item.js +6 -0
- package/components/hy-dropdown-panel.d.ts +11 -0
- package/components/hy-dropdown-panel.js +6 -0
- package/components/hy-dropdown.d.ts +11 -0
- package/components/hy-dropdown.js +155 -0
- package/components/hy-dropdown.panel.item.js +41 -0
- package/components/hy-dropdown.panel.js +29 -0
- package/components/hy-event-item.d.ts +11 -0
- package/components/hy-event-item.js +73 -0
- package/components/hy-events.d.ts +11 -0
- package/components/hy-events.js +131 -0
- package/components/hy-filter-group-item.d.ts +11 -0
- package/components/hy-filter-group-item.js +6 -0
- package/components/hy-filter-group.d.ts +11 -0
- package/components/hy-filter-group.item.js +38 -0
- package/components/hy-filter-group.js +67 -0
- package/components/hy-filter-list-type.d.ts +11 -0
- package/components/hy-filter-list-type.js +52 -0
- package/components/hy-filter-visibility-tool-reset.d.ts +11 -0
- package/components/hy-filter-visibility-tool-reset.js +6 -0
- package/components/hy-filter-visibility-tool-toggle.d.ts +11 -0
- package/components/hy-filter-visibility-tool-toggle.js +6 -0
- package/components/hy-filter-visibility-tool.d.ts +11 -0
- package/components/hy-filter-visibility-tool.js +58 -0
- package/components/hy-filter-visibility-tool.reset.js +32 -0
- package/components/hy-filter-visibility-tool.reset.toggle.js +32 -0
- package/components/hy-footer-action.d.ts +11 -0
- package/components/hy-footer-action.js +55 -0
- package/components/hy-footer-base.d.ts +11 -0
- package/components/hy-footer-base.js +89 -0
- package/components/hy-footer-info.d.ts +11 -0
- package/components/hy-footer-info.js +167 -0
- package/components/hy-footer-link-item.d.ts +11 -0
- package/components/hy-footer-link-item.js +6 -0
- package/components/hy-footer-link-item2.js +99 -0
- package/components/hy-footer.d.ts +11 -0
- package/components/hy-footer.js +33 -0
- package/components/hy-general-list-item.d.ts +11 -0
- package/components/hy-general-list-item.js +6 -0
- package/components/hy-general-list-item2.js +74 -0
- package/components/hy-general-list.d.ts +11 -0
- package/components/hy-general-list.js +90 -0
- package/components/hy-grid-container.d.ts +11 -0
- package/components/hy-grid-container.js +33 -0
- package/components/hy-grid-item.d.ts +11 -0
- package/components/hy-grid-item.js +49 -0
- package/components/hy-grid-row.d.ts +11 -0
- package/components/hy-grid-row.js +33 -0
- package/components/hy-heading.d.ts +11 -0
- package/components/hy-heading.js +6 -0
- package/components/hy-hero-carousel.d.ts +11 -0
- package/components/hy-hero-carousel.js +4935 -0
- package/components/hy-hero.d.ts +11 -0
- package/components/hy-hero.js +155 -0
- package/components/hy-icon.d.ts +11 -0
- package/components/hy-icon.js +6 -0
- package/components/hy-image.d.ts +11 -0
- package/components/hy-image.js +6 -0
- package/components/hy-ingress.d.ts +11 -0
- package/components/hy-ingress.js +45 -0
- package/components/hy-introduction.d.ts +11 -0
- package/components/hy-introduction.js +118 -0
- package/components/hy-key-figure-group.d.ts +11 -0
- package/components/hy-key-figure-group.js +106 -0
- package/components/hy-key-figure.d.ts +11 -0
- package/components/hy-key-figure.js +6 -0
- package/components/hy-key-figure2.js +39 -0
- package/components/hy-key-highlight-group.d.ts +11 -0
- package/components/hy-key-highlight-group.js +69 -0
- package/components/hy-key-highlight.d.ts +11 -0
- package/components/hy-key-highlight.js +6 -0
- package/components/hy-key-highlight2.js +39 -0
- package/components/hy-large-process-flow-phase.d.ts +11 -0
- package/components/hy-large-process-flow-phase.js +6 -0
- package/components/hy-large-process-flow-phase2.js +63 -0
- package/components/hy-large-process-flow.d.ts +11 -0
- package/components/hy-large-process-flow.js +86 -0
- package/components/hy-link-box-list.d.ts +11 -0
- package/components/hy-link-box-list.js +92 -0
- package/components/hy-link-box.d.ts +11 -0
- package/components/hy-link-box.js +6 -0
- package/components/hy-link-list.d.ts +11 -0
- package/components/hy-link-list.js +77 -0
- package/components/hy-link.d.ts +11 -0
- package/components/hy-link.js +46 -0
- package/components/hy-list-item.d.ts +11 -0
- package/components/hy-list-item.js +293 -0
- package/components/hy-logo-grid-item.d.ts +11 -0
- package/components/hy-logo-grid-item.js +48 -0
- package/components/hy-logo-grid.d.ts +11 -0
- package/components/hy-logo-grid.js +38 -0
- package/components/hy-main-content-wrapper.d.ts +11 -0
- package/components/hy-main-content-wrapper.js +6 -0
- package/components/hy-main-content-wrapper2.js +30 -0
- package/components/hy-main.d.ts +11 -0
- package/components/hy-main.js +40 -0
- package/components/hy-menu-language-item.d.ts +11 -0
- package/components/hy-menu-language-item.js +6 -0
- package/components/hy-menu-language.d.ts +11 -0
- package/components/hy-menu-language.js +6 -0
- package/components/hy-menu-main-group.d.ts +11 -0
- package/components/hy-menu-main-group.js +6 -0
- package/components/hy-menu-main-group2.js +192 -0
- package/components/hy-opening-hours-content.d.ts +11 -0
- package/components/hy-opening-hours-content.js +62 -0
- package/components/hy-opening-hours.d.ts +11 -0
- package/components/hy-opening-hours.js +90 -0
- package/components/hy-pager-item.d.ts +11 -0
- package/components/hy-pager-item.js +73 -0
- package/components/hy-pager.d.ts +11 -0
- package/components/hy-pager.js +34 -0
- package/components/hy-paragraph-text.d.ts +11 -0
- package/components/hy-paragraph-text.js +6 -0
- package/components/hy-person-card.d.ts +11 -0
- package/components/hy-person-card.js +137 -0
- package/components/hy-person-profile-listing.d.ts +11 -0
- package/components/hy-person-profile-listing.js +6 -0
- package/components/hy-person-profile.d.ts +11 -0
- package/components/hy-person-profile.js +142 -0
- package/components/hy-process-flow-box.d.ts +11 -0
- package/components/hy-process-flow-box.js +6 -0
- package/components/hy-process.d.ts +11 -0
- package/components/hy-process.js +89 -0
- package/components/hy-prominent-image.d.ts +11 -0
- package/components/hy-prominent-image.js +71 -0
- package/components/hy-quote.d.ts +11 -0
- package/components/hy-quote.js +54 -0
- package/components/hy-row.d.ts +11 -0
- package/components/hy-row.js +50 -0
- package/components/hy-search-field.d.ts +11 -0
- package/components/hy-search-field.js +6 -0
- package/components/hy-search-field2.js +81 -0
- package/components/hy-section-container.d.ts +11 -0
- package/components/hy-section-container.js +32 -0
- package/components/hy-shortcuts.d.ts +11 -0
- package/components/hy-shortcuts.js +96 -0
- package/components/hy-site-header.d.ts +11 -0
- package/components/hy-site-header.js +369 -0
- package/components/hy-site-logo.d.ts +11 -0
- package/components/hy-site-logo.js +6 -0
- package/components/hy-site-search.d.ts +11 -0
- package/components/hy-site-search.js +6 -0
- package/components/hy-table-container.d.ts +11 -0
- package/components/hy-table-container.js +39 -0
- package/components/hy-tabs-item.d.ts +11 -0
- package/components/hy-tabs-item.js +6 -0
- package/components/hy-tabs-item2.js +33 -0
- package/components/hy-tabs.d.ts +11 -0
- package/components/hy-tabs.js +6 -0
- package/components/hy-tabs2.js +346 -0
- package/components/hy-tag.d.ts +11 -0
- package/components/hy-tag.js +6 -0
- package/components/hy-tag2.js +31 -0
- package/components/hy-tiny-text.d.ts +11 -0
- package/components/hy-tiny-text.js +34 -0
- package/components/hy-twitter-feed.d.ts +11 -0
- package/components/hy-twitter-feed.js +57 -0
- package/components/hy-two-columns.d.ts +11 -0
- package/components/hy-two-columns.js +36 -0
- package/components/hy-user-login-form.d.ts +11 -0
- package/components/hy-user-login-form.js +53 -0
- package/components/hy-video.d.ts +11 -0
- package/components/hy-video.js +156 -0
- package/components/icon.js +830 -0
- package/components/image.js +75 -0
- package/components/index.d.ts +27 -0
- package/components/index.js +2 -0
- package/components/index2.js +965 -0
- package/components/link-box.js +116 -0
- package/components/menu-language-item.js +47 -0
- package/components/menu-language.js +121 -0
- package/components/package.json +8 -0
- package/components/paragraph-text.js +60 -0
- package/components/person-profile.listing.js +57 -0
- package/components/process-flow-box.js +57 -0
- package/components/site-logo.js +59 -0
- package/components/site-search.js +249 -0
- package/{dist/esm/utils-43c56d92.js → components/utils.js} +1 -1
- package/dist/cjs/{hy-accordion-container_83.cjs.entry.js → color-box_91.cjs.entry.js} +1177 -999
- package/dist/cjs/{globalScript-45ad6d41.js → globalScript-d341436f.js} +7 -7
- package/dist/cjs/huds-lib.cjs.js +3 -3
- package/dist/cjs/hy-event-item.cjs.entry.js +10 -10
- package/dist/cjs/hy-events.cjs.entry.js +22 -22
- package/dist/cjs/hy-hero-carousel.cjs.entry.js +25 -25
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +7 -11
- package/dist/collection/components/accordion-container/accordion-container.js +4 -4
- package/dist/collection/components/accordion-item/accordion-item.js +78 -78
- package/dist/collection/components/adjacent-image-text/adjacent-image-text.js +17 -17
- package/dist/collection/components/baseline/baseline.js +2 -2
- package/dist/collection/components/button/button.js +28 -28
- package/dist/collection/components/color-box/color-box.js +1 -1
- package/dist/collection/components/courses/hy-content-list/hy-content-list.js +42 -42
- package/dist/collection/components/courses/hy-content-list-item/hy-content-list-item.js +15 -15
- package/dist/collection/components/cta-button/cta-button.js +12 -12
- package/dist/collection/components/cta-link/cta-link.js +7 -7
- package/dist/collection/components/footer/hy-footer/hy-footer.js +3 -3
- package/dist/collection/components/footer/hy-footer-action/hy-footer-action.js +5 -5
- package/dist/collection/components/footer/hy-footer-base/hy-footer-base.js +6 -6
- package/dist/collection/components/footer/hy-footer-info/hy-footer-info.js +19 -19
- package/dist/collection/components/footer/hy-footer-link-item/hy-footer-link-item.js +22 -22
- package/dist/collection/components/grid-container/grid-container.js +1 -1
- package/dist/collection/components/grid-item/grid-item.js +5 -5
- package/dist/collection/components/grid-row/grid-row.js +3 -3
- package/dist/collection/components/heading/heading.js +17 -17
- package/dist/collection/components/hy-anchor-link-list/hy-anchor-link-list.js +13 -13
- package/dist/collection/components/hy-badge/hy-badge.js +6 -6
- package/dist/collection/components/hy-banner/hy-banner.js +13 -13
- package/dist/collection/components/hy-box/hy-box.js +26 -26
- package/dist/collection/components/hy-box-container/hy-box-container.js +5 -5
- package/dist/collection/components/hy-breadcrumbs/hy-breadcrumbs.js +10 -10
- package/dist/collection/components/hy-checkbox/hy-checkbox.js +5 -5
- package/dist/collection/components/hy-collaboration/hy-collaboration.js +2 -2
- package/dist/collection/components/hy-crisis-banner/hy-crisis-banner.js +2 -2
- package/dist/collection/components/hy-dropdown/hy-dropdown.js +16 -16
- package/dist/collection/components/hy-dropdown/hy-dropdown.panel.item.js +2 -2
- package/dist/collection/components/hy-dropdown/hy-dropdown.panel.js +2 -2
- package/dist/collection/components/hy-event-item/hy-event-item.js +15 -15
- package/dist/collection/components/hy-events/hy-events.js +25 -25
- package/dist/collection/components/hy-filter-group/hy-filter-group.item.js +3 -3
- package/dist/collection/components/hy-filter-group/hy-filter-group.js +3 -3
- package/dist/collection/components/hy-filter-list-type/hy-filter-list-type.js +10 -10
- package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.js +4 -4
- package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.reset.js +2 -2
- package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.reset.toggle.js +2 -2
- package/dist/collection/components/hy-general-list/hy-general-list.js +11 -11
- package/dist/collection/components/hy-general-list-item/hy-general-list-item.js +18 -18
- package/dist/collection/components/hy-hero/hy-hero.js +26 -26
- package/dist/collection/components/hy-hero-carousel/hy-hero-carousel.css +6 -6
- package/dist/collection/components/hy-hero-carousel/hy-hero-carousel.js +32 -32
- package/dist/collection/components/hy-introduction/hy-introduction.js +23 -23
- package/dist/collection/components/hy-key-figure/hy-key-figure.js +3 -3
- package/dist/collection/components/hy-key-figure-group/hy-key-figure-group.js +17 -17
- package/dist/collection/components/hy-key-highlight/hy-key-highlight.js +3 -3
- package/dist/collection/components/hy-key-highlight-group/hy-key-highlight-group.js +12 -12
- package/dist/collection/components/hy-large-process-flow/hy-large-process-flow.js +11 -11
- package/dist/collection/components/hy-large-process-flow-phase/hy-large-process-flow-phase.js +5 -5
- package/dist/collection/components/hy-link-list/hy-link-list.js +16 -16
- package/dist/collection/components/hy-list-item/hy-list-item.js +71 -71
- package/dist/collection/components/hy-logo-grid/hy-logo-grid.item.js +3 -3
- package/dist/collection/components/hy-logo-grid/hy-logo-grid.js +1 -1
- package/dist/collection/components/hy-main/hy-main.js +5 -5
- package/dist/collection/components/hy-main-content-wrapper/hy-main-content-wrapper.js +2 -2
- package/dist/collection/components/hy-opening-hours/hy-opening-hours.js +12 -12
- package/dist/collection/components/hy-opening-hours-content/hy-opening-hours-content.js +10 -10
- package/dist/collection/components/hy-person-card/hy-person-card.js +17 -17
- package/dist/collection/components/hy-prominent-image/hy-prominent-image.js +12 -12
- package/dist/collection/components/hy-quote/hy-quote.js +8 -8
- package/dist/collection/components/hy-search-field/hy-search-field.js +15 -15
- package/dist/collection/components/hy-shortcuts/hy-shortcuts.js +21 -21
- package/dist/collection/components/hy-table-container/hy-table-container.js +2 -2
- package/dist/collection/components/hy-tabs/hy-tabs.js +52 -52
- package/dist/collection/components/hy-tabs-item/hy-tabs-item.js +2 -2
- package/dist/collection/components/hy-tag/hy-tag.js +2 -2
- package/dist/collection/components/hy-twitter-feed/hy-twitter-feed.js +4 -4
- package/dist/collection/components/hy-two-columns/hy-two-columns.js +2 -2
- package/dist/collection/components/hy-user-login-form/hy-user-login-form.js +4 -4
- package/dist/collection/components/hy-video/hy-video.js +26 -26
- package/dist/collection/components/icon/Alert.js +1 -1
- package/dist/collection/components/icon/Archive.js +1 -1
- package/dist/collection/components/icon/ArrowRight.js +1 -1
- package/dist/collection/components/icon/CaretRight.js +1 -1
- package/dist/collection/components/icon/DotArrowRight.js +1 -1
- package/dist/collection/components/icon/Euro.js +1 -1
- package/dist/collection/components/icon/Globe.js +1 -1
- package/dist/collection/components/icon/HeartSupport.js +1 -1
- package/dist/collection/components/icon/Home.js +1 -1
- package/dist/collection/components/icon/Info.js +1 -1
- package/dist/collection/components/icon/ListStyleGrid.js +1 -1
- package/dist/collection/components/icon/ListStyleList.js +1 -1
- package/dist/collection/components/icon/Search.js +1 -1
- package/dist/collection/components/icon/SlimHamburgerMenu.js +1 -1
- package/dist/collection/components/icon/SomeFacebook.js +1 -1
- package/dist/collection/components/icon/SomeInstagram.js +1 -1
- package/dist/collection/components/icon/SomeLinkedin.js +1 -1
- package/dist/collection/components/icon/SomeTwitter.js +1 -1
- package/dist/collection/components/icon/SomeYoutube.js +1 -1
- package/dist/collection/components/icon/TwitterLike.js +1 -1
- package/dist/collection/components/icon/allIcons.js +114 -114
- package/dist/collection/components/icon/icon.js +134 -134
- package/dist/collection/components/icon/icons.js +132 -132
- package/dist/collection/components/image/image.js +10 -10
- package/dist/collection/components/ingress/ingress.js +7 -7
- package/dist/collection/components/link/link.js +7 -7
- package/dist/collection/components/link-box/link-box.js +23 -23
- package/dist/collection/components/link-box-list/link-box-list.js +12 -12
- package/dist/collection/components/navigation/hy-menu-main-group/hy-menu-main-group.js +45 -45
- package/dist/collection/components/navigation/menu-language/menu-language.js +15 -15
- package/dist/collection/components/navigation/menu-language-item/menu-language-item.js +4 -4
- package/dist/collection/components/pagination/hy-pager/hy-pager.js +2 -2
- package/dist/collection/components/pagination/hy-pager-item/hy-pager-item.js +12 -12
- package/dist/collection/components/paragraph-text/paragraph-text.js +10 -10
- package/dist/collection/components/person-profile/person-profile-listing/person-profile.listing.js +9 -9
- package/dist/collection/components/person-profile/person-profile.js +16 -16
- package/dist/collection/components/process/process.js +12 -12
- package/dist/collection/components/process-flow-box/process-flow-box.js +11 -11
- package/dist/collection/components/row/row.js +6 -6
- package/dist/collection/components/section-container/section-container.js +1 -1
- package/dist/collection/components/site-header/site-header.js +69 -69
- package/dist/collection/components/site-header/site-logo/site-logo.js +7 -7
- package/dist/collection/components/site-header/site-search/site-search.js +56 -56
- package/dist/collection/global/colors.js +21 -21
- package/dist/collection/global/globalScript.js +7 -7
- package/dist/collection/index.js +1 -1
- package/dist/esm/{hy-accordion-container_83.entry.js → color-box_91.entry.js} +1171 -1001
- package/dist/esm/{globalScript-4ad40215.js → globalScript-3c6fab71.js} +7 -7
- package/dist/esm/huds-lib.js +4 -4
- package/dist/esm/hy-event-item.entry.js +10 -10
- package/dist/esm/hy-events.entry.js +23 -23
- package/dist/esm/hy-hero-carousel.entry.js +26 -26
- package/dist/esm/loader.js +4 -4
- package/dist/esm/utils-a4d55421.js +239 -0
- package/dist/fonts/fonts.css +20 -20
- package/dist/huds-lib/color-box_91.entry.js +87 -0
- package/dist/huds-lib/globalScript-3c6fab71.js +1 -0
- package/dist/huds-lib/huds-lib.esm.js +1 -1
- package/dist/huds-lib/hy-event-item.entry.js +1 -0
- package/dist/huds-lib/hy-events.entry.js +1 -0
- package/dist/huds-lib/hy-hero-carousel.entry.js +1 -0
- package/dist/huds-lib/{p-63584350.js → utils-a4d55421.js} +1 -1
- package/dist/loader/cdn.js +3 -0
- package/dist/loader/index.cjs.js +3 -0
- package/dist/loader/index.d.ts +21 -0
- package/dist/loader/index.es2017.js +3 -0
- package/dist/loader/index.js +4 -0
- package/dist/loader/package.json +11 -0
- package/dist/types/components/accordion-item/accordion-item.d.ts +1 -1
- package/dist/types/components/adjacent-image-text/adjacent-image-text.d.ts +1 -1
- package/dist/types/components/button/button.d.ts +3 -3
- package/dist/types/components/color-box/color-box.d.ts +1 -1
- package/dist/types/components/courses/hy-content-list/hy-content-list.d.ts +2 -2
- package/dist/types/components/courses/hy-content-list-item/hy-content-list-item.d.ts +1 -1
- package/dist/types/components/cta-button/cta-button.d.ts +2 -2
- package/dist/types/components/cta-link/cta-link.d.ts +2 -2
- package/dist/types/components/footer/hy-footer-base/hy-footer-base.d.ts +2 -2
- package/dist/types/components/footer/hy-footer-info/hy-footer-info.d.ts +1 -1
- package/dist/types/components/footer/hy-footer-link-item/hy-footer-link-item.d.ts +1 -1
- package/dist/types/components/grid-item/grid-item.d.ts +1 -1
- package/dist/types/components/heading/heading.d.ts +1 -1
- package/dist/types/components/hy-badge/hy-badge.d.ts +2 -2
- package/dist/types/components/hy-breadcrumbs/hy-breadcrumbs.d.ts +1 -1
- package/dist/types/components/hy-checkbox/hy-checkbox.d.ts +1 -1
- package/dist/types/components/hy-filter-visibility-tool/hy-filter-visibility-tool.d.ts +1 -1
- package/dist/types/components/hy-general-list/hy-general-list.d.ts +1 -1
- package/dist/types/components/hy-hero/hy-hero.d.ts +1 -1
- package/dist/types/components/hy-introduction/hy-introduction.d.ts +1 -1
- package/dist/types/components/hy-key-figure/hy-key-figure.d.ts +2 -2
- package/dist/types/components/hy-key-figure-group/hy-key-figure-group.d.ts +1 -1
- package/dist/types/components/hy-key-highlight/hy-key-highlight.d.ts +2 -2
- package/dist/types/components/hy-key-highlight-group/hy-key-highlight-group.d.ts +2 -2
- package/dist/types/components/hy-large-process-flow/hy-large-process-flow.d.ts +1 -1
- package/dist/types/components/hy-large-process-flow-phase/hy-large-process-flow-phase.d.ts +1 -1
- package/dist/types/components/hy-link-list/hy-link-list.d.ts +1 -1
- package/dist/types/components/hy-list-item/hy-list-item.d.ts +1 -1
- package/dist/types/components/hy-person-card/hy-person-card.d.ts +1 -1
- package/dist/types/components/hy-shortcuts/hy-shortcuts.d.ts +1 -1
- package/dist/types/components/hy-tabs/hy-tabs.d.ts +1 -1
- package/dist/types/components/icon/allIcons.d.ts +114 -114
- package/dist/types/components/icon/icons.d.ts +130 -130
- package/dist/types/components/image/image.d.ts +1 -1
- package/dist/types/components/link/link.d.ts +1 -1
- package/dist/types/components/link-box/link-box.d.ts +2 -2
- package/dist/types/components/link-box-list/link-box-list.d.ts +2 -2
- package/dist/types/components/navigation/hy-menu-main-group/hy-menu-main-group.d.ts +1 -1
- package/dist/types/components/navigation/menu-language/menu-language.d.ts +2 -2
- package/dist/types/components/pagination/hy-pager-item/hy-pager-item.d.ts +1 -1
- package/dist/types/components/person-profile/person-profile-listing/person-profile.listing.d.ts +1 -1
- package/dist/types/components/process/process.d.ts +1 -1
- package/dist/types/components/process-flow-box/process-flow-box.d.ts +3 -3
- package/dist/types/components/site-header/site-header.d.ts +2 -2
- package/dist/types/components/site-header/site-logo/site-logo.d.ts +1 -1
- package/dist/types/components/site-header/site-search/site-search.d.ts +3 -3
- package/dist/types/components.d.ts +10 -10
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +4 -4
- package/loader/cdn.js +4 -3
- package/loader/index.cjs.js +4 -3
- package/loader/index.d.ts +13 -3
- package/loader/index.es2017.js +2 -3
- package/loader/index.js +13 -4
- package/loader/package.json +1 -1
- package/package.json +9 -2
- package/dist/cjs/color-box_8.cjs.entry.js +0 -185
- package/dist/esm/color-box_8.entry.js +0 -174
- package/dist/huds-lib/p-7c7ea6b3.entry.js +0 -1
- package/dist/huds-lib/p-8d5c2e5b.entry.js +0 -1
- package/dist/huds-lib/p-91f6109f.entry.js +0 -1
- package/dist/huds-lib/p-9a15a75b.entry.js +0 -1
- package/dist/huds-lib/p-b02e49ad.js +0 -1
- package/dist/huds-lib/p-ffd1d29a.entry.js +0 -87
- /package/dist/cjs/{index-25bd964b.js → index-ca4e37f2.js} +0 -0
- /package/dist/esm/{index-3a66d87e.js → index-9920074a.js} +0 -0
- /package/dist/huds-lib/{p-ff975a68.js → index-9920074a.js} +0 -0
|
@@ -2,9 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-ca4e37f2.js');
|
|
6
6
|
const utils = require('./utils-14d5aa6f.js');
|
|
7
|
-
const globalScript = require('./globalScript-
|
|
7
|
+
const globalScript = require('./globalScript-d341436f.js');
|
|
8
|
+
|
|
9
|
+
const colorBoxCss = ":host{display:block}";
|
|
10
|
+
|
|
11
|
+
const ColorBox = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (index.h(index.Host, null, index.h("slot", null)));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
ColorBox.style = colorBoxCss;
|
|
8
20
|
|
|
9
21
|
const accordionContainerCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host{display:block}.hy-accordion-container{width:100%}";
|
|
10
22
|
|
|
@@ -22,9 +34,9 @@ const AccordionContainer = class {
|
|
|
22
34
|
Assumes data-allow-toggle otherwise you would not be able to close any of the accordions
|
|
23
35
|
*/
|
|
24
36
|
render() {
|
|
25
|
-
const classAttributes = [
|
|
26
|
-
const id = this.accordionid.toLowerCase().replace(/\W/g,
|
|
27
|
-
return (index.h(index.Host, null, index.h("div", { id: id, class: classAttributes.join(
|
|
37
|
+
const classAttributes = ["hy-accordion-container", "js-hy-accordion"];
|
|
38
|
+
const id = this.accordionid.toLowerCase().replace(/\W/g, "-");
|
|
39
|
+
return (index.h(index.Host, null, index.h("div", { id: id, class: classAttributes.join(" "), "data-allow-multiple": "true", "data-allow-toggle": "true" }, index.h("slot", null)), index.h("hy-box", { mb: "1.75, 1.75, 2, 2.5" })));
|
|
28
40
|
}
|
|
29
41
|
};
|
|
30
42
|
AccordionContainer.style = accordionContainerCss;
|
|
@@ -32,30 +44,30 @@ AccordionContainer.style = accordionContainerCss;
|
|
|
32
44
|
const accordionItemCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host{display:block}.hy-accordion__item{margin-bottom:12px}.hy-accordion__item__is-open{border:1px solid var(--grayscale-dark)}.hy-accordion__item__is-open .hy-accordion--heading{margin:0 auto}.hy-accordion__item__is-open .hy-accordion--heading .hy-accordion--heading__icon{-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.hy-accordion__item.mini{margin-bottom:1rem;margin-top:1rem}.hy-accordion__item__is-open.mini{margin-bottom:0;margin-top:0}.hy-accordion__item__is-open.mini .hy-accordion__item--container{border-bottom:1px solid var(--grayscale-medium-dark);border-top:1px solid var(--grayscale-medium-dark);padding-top:16px;padding-bottom:32px;margin-top:-1px;-webkit-transition:padding 0.5s ease-in-out;transition:padding 0.5s ease-in-out}@media (min-width: 30rem){.hy-accordion__item__is-open.mini .hy-accordion__item--container{padding-top:28px;padding-bottom:30px}}@media (min-width: 60rem){.hy-accordion__item__is-open.mini .hy-accordion__item--container{padding-top:32px;padding-bottom:40px}}.hy-accordion__item.hy-accordion__item__is-open.mini{background-color:var(--grayscale-white);border:none;-webkit-box-shadow:0 -10px 10px -10px rgba(0, 49, 70, 0.05);box-shadow:0 -10px 10px -10px rgba(0, 49, 70, 0.05)}.hy-accordion--heading{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;letter-spacing:-0.69px;line-height:28px;margin:0 auto;-webkit-transition:all 0.25s ease-in-out;transition:all 0.25s ease-in-out;width:100%}.hy-accordion--heading .hy-accordion__link{text-decoration:none}.hy-accordion--heading .hy-accordion__link:hover{text-decoration:none}.hy-accordion--heading .hy-accordion__button{font-size:1.125rem;line-height:22px;font-weight:700;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;background-color:var(--grayscale-background-box);border:none;color:var(--brand-main-nearly-black);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;font-family:var(--main-font-family);height:100%;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;letter-spacing:-0.45px;padding:13px 20px 13px 16px;-webkit-transition:all 0.35s ease-in;transition:all 0.35s ease-in;width:100%}.hy-accordion--heading .hy-accordion__button:hover{cursor:pointer}@media (min-width: 30rem){.hy-accordion--heading .hy-accordion__button{padding:1rem 2rem 1rem 1.25rem}}@media (min-width: 1601px){.hy-accordion--heading .hy-accordion__button{font-size:1.25rem;line-height:24px;letter-spacing:-0.5px}}@media (min-width: 75.0625rem){.hy-accordion--heading .hy-accordion__button--large{font-size:1.25rem;line-height:24px;letter-spacing:-0.5px}}@media (min-width: 75.0625rem){.hy-accordion--heading .hy-accordion__button--large .hy-accordion--heading__icon svg{height:20px;width:20px}}.hy-accordion--heading .hy-accordion__button span{text-align:left}.hy-accordion--heading .hy-accordion__button[aria-expanded=true]{background:none;position:relative}.hy-accordion--heading .hy-accordion__button[aria-expanded=true]:after{background-color:var(--grayscale-medium-dark);bottom:0;content:\"\";height:1px;left:16px;position:absolute;right:20px}.hy-accordion--heading .hy-accordion__button *{pointer-events:none}.hy-accordion--heading .hy-accordion--heading__icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:22px;margin-right:8px;z-index:0}.hy-accordion--heading .hy-accordion--heading__icon svg{fill:var(--brand-main)}@media (min-width: 30rem){.hy-accordion--heading .hy-accordion--heading__icon svg{height:18px;width:18px}}@media (min-width: 1601px){.hy-accordion--heading .hy-accordion--heading__icon svg{height:20px;width:20px}}.hy-accordion--heading.mini .hy-accordion__button{font-size:1.125rem;line-height:22px;background-color:var(--grayscale-white);color:var(--link-blue);letter-spacing:-0.56px;padding:0}@media (min-width: 30rem){.hy-accordion--heading.mini .hy-accordion__button{font-size:1.375rem;line-height:28px;letter-spacing:-0.69px;padding:0}}.hy-accordion--heading.mini .hy-accordion__button[aria-expanded=true]{color:var(--grayscale-black);margin-bottom:20px}@media (min-width: 30rem){.hy-accordion--heading.mini .hy-accordion__button[aria-expanded=true]{margin-bottom:28px}}@media (min-width: 60rem){.hy-accordion--heading.mini .hy-accordion__button[aria-expanded=true]{margin-bottom:32px}}.hy-accordion--heading.mini .hy-accordion--heading__icon{margin-right:0.5rem;z-index:0}@media (min-width: 30rem){.hy-accordion--heading.mini .hy-accordion--heading__icon{margin-right:10px}}.hy-accordion--heading.mini .hy-accordion--heading__icon svg{fill:var(--brand-main-light);height:14px;width:14px}@media (min-width: 30rem){.hy-accordion--heading.mini .hy-accordion--heading__icon svg{height:16px;width:16px}}.hy-accordion__content{display:block;height:0;padding:0;overflow:hidden;-webkit-transition:all 0.25s ease-in-out;transition:all 0.25s ease-in-out}.hy-accordion__content--inner-wrapper{display:block;padding:16px 12px}@media (min-width: 30rem){.hy-accordion__content--inner-wrapper{padding:15px 16px}}@media (min-width: 60rem){.hy-accordion__content--inner-wrapper{padding:16px}}@media (min-width: 75.0625rem){.hy-accordion__content--inner-wrapper--large{padding:24px 20px}}@media (min-width: 1601px){.hy-accordion__content--inner-wrapper{padding:24px 20px}}.hy-accordion__content--inner-wrapper--mini{padding:0}.hy-accordion__content--inner-wrapper--mini .course-heading h4{padding-top:0 !important}";
|
|
33
45
|
|
|
34
46
|
let keys$4 = {
|
|
35
|
-
enter:
|
|
36
|
-
tab:
|
|
37
|
-
pageUp:
|
|
38
|
-
pageDown:
|
|
39
|
-
arrowUp:
|
|
40
|
-
arrowDown:
|
|
41
|
-
home:
|
|
42
|
-
end:
|
|
47
|
+
enter: "Enter",
|
|
48
|
+
tab: "Tab",
|
|
49
|
+
pageUp: "PageUp",
|
|
50
|
+
pageDown: "PageDown",
|
|
51
|
+
arrowUp: "ArrowUp",
|
|
52
|
+
arrowDown: "ArrowDown",
|
|
53
|
+
home: "Home",
|
|
54
|
+
end: "End", //35
|
|
43
55
|
};
|
|
44
56
|
const AccordionItem = class {
|
|
45
57
|
constructor(hostRef) {
|
|
46
58
|
index.registerInstance(this, hostRef);
|
|
47
59
|
this.accordiontitle = undefined;
|
|
48
60
|
this.variant = utils.AccordionVariants.default;
|
|
49
|
-
this.headerstyle =
|
|
61
|
+
this.headerstyle = "common";
|
|
50
62
|
this.showOpen = false;
|
|
51
63
|
this.ready = false;
|
|
52
64
|
}
|
|
53
65
|
componentDidLoad() {
|
|
54
66
|
this.ready = true;
|
|
55
|
-
let hyMainDiv = this.el.closest(
|
|
67
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
56
68
|
if (hyMainDiv) {
|
|
57
|
-
if (!hyMainDiv.classList.contains(
|
|
58
|
-
this.headerstyle =
|
|
69
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
70
|
+
this.headerstyle = "large";
|
|
59
71
|
}
|
|
60
72
|
}
|
|
61
73
|
}
|
|
@@ -63,16 +75,16 @@ const AccordionItem = class {
|
|
|
63
75
|
if (window.location.hash) {
|
|
64
76
|
this.expandPanelByAnchor(window.location.hash);
|
|
65
77
|
}
|
|
66
|
-
document.querySelectorAll(
|
|
67
|
-
let showOpen = accordion.classList.contains(
|
|
78
|
+
document.querySelectorAll(".hy-accordion__content").forEach(function (accordion) {
|
|
79
|
+
let showOpen = accordion.classList.contains("open");
|
|
68
80
|
let element = accordion;
|
|
69
81
|
if (showOpen) {
|
|
70
|
-
element.style.display =
|
|
71
|
-
element.style.height = element.scrollHeight +
|
|
82
|
+
element.style.display = "block";
|
|
83
|
+
element.style.height = element.scrollHeight + "px";
|
|
72
84
|
}
|
|
73
85
|
else {
|
|
74
|
-
element.style.height = 0 +
|
|
75
|
-
element.style.display =
|
|
86
|
+
element.style.height = 0 + "px";
|
|
87
|
+
element.style.display = "none";
|
|
76
88
|
}
|
|
77
89
|
});
|
|
78
90
|
}
|
|
@@ -84,11 +96,11 @@ const AccordionItem = class {
|
|
|
84
96
|
handleKeyDown(event) {
|
|
85
97
|
const containerId = this.el.parentElement.id;
|
|
86
98
|
let accordion = document.querySelectorAll(`#${containerId}`)[0];
|
|
87
|
-
const triggers = Array.prototype.slice.call(accordion.querySelectorAll(
|
|
99
|
+
const triggers = Array.prototype.slice.call(accordion.querySelectorAll(".hy-accordion__button"));
|
|
88
100
|
let target = event.target;
|
|
89
101
|
const key = event.code;
|
|
90
102
|
const ctrlModifier = event.ctrlKey && [keys$4.pageDown, keys$4.pageUp].includes(key); //key.match(/33|34/);
|
|
91
|
-
if (target.classList.contains(
|
|
103
|
+
if (target.classList.contains("hy-accordion__button")) {
|
|
92
104
|
// Up/ Down arrow and Control + Page Up/ Page Down keyboard operations
|
|
93
105
|
if ([keys$4.arrowDown, keys$4.arrowUp].includes(key) || ctrlModifier) {
|
|
94
106
|
const index = triggers.indexOf(target);
|
|
@@ -116,46 +128,46 @@ const AccordionItem = class {
|
|
|
116
128
|
handleClick(event) {
|
|
117
129
|
const target = event.target;
|
|
118
130
|
const accordionContainer = this.el.parentElement;
|
|
119
|
-
const allowMultiple = accordionContainer.hasAttribute(
|
|
120
|
-
const allowToggle = allowMultiple ? allowMultiple : accordionContainer.hasAttribute(
|
|
121
|
-
if (target && target.tagName.toLowerCase() ===
|
|
122
|
-
let targetParent = target.closest(
|
|
123
|
-
let targetContent = targetParent.getElementsByClassName(
|
|
124
|
-
const isExpanded = target.getAttribute(
|
|
131
|
+
const allowMultiple = accordionContainer.hasAttribute("data-allow-multiple");
|
|
132
|
+
const allowToggle = allowMultiple ? allowMultiple : accordionContainer.hasAttribute("data-allow-toggle");
|
|
133
|
+
if (target && target.tagName.toLowerCase() === "button") {
|
|
134
|
+
let targetParent = target.closest(".hy-accordion__item");
|
|
135
|
+
let targetContent = targetParent.getElementsByClassName("hy-accordion__content")[0];
|
|
136
|
+
const isExpanded = target.getAttribute("aria-expanded") === "true";
|
|
125
137
|
const activeButtonElement = accordionContainer.querySelector('[aria-expanded="true"]');
|
|
126
138
|
if (!allowMultiple && activeButtonElement && activeButtonElement !== target) {
|
|
127
|
-
activeButtonElement.setAttribute(
|
|
139
|
+
activeButtonElement.setAttribute("aria-expanded", "false");
|
|
128
140
|
this.collapseSection(targetContent);
|
|
129
|
-
if (targetParent.classList.contains(
|
|
130
|
-
targetParent.classList.remove(
|
|
141
|
+
if (targetParent.classList.contains("hy-accordion__item__is-open")) {
|
|
142
|
+
targetParent.classList.remove("hy-accordion__item__is-open");
|
|
131
143
|
}
|
|
132
144
|
accordionContainer
|
|
133
|
-
.querySelector(`#${activeButtonElement.getAttribute(
|
|
134
|
-
.setAttribute(
|
|
145
|
+
.querySelector(`#${activeButtonElement.getAttribute("aria-controls")}`)
|
|
146
|
+
.setAttribute("aria-hidden", "true");
|
|
135
147
|
if (!allowToggle) {
|
|
136
|
-
activeButtonElement.removeAttribute(
|
|
148
|
+
activeButtonElement.removeAttribute("aria-disabled");
|
|
137
149
|
}
|
|
138
150
|
}
|
|
139
151
|
if (!isExpanded) {
|
|
140
152
|
this.expandSection(targetContent);
|
|
141
|
-
target.setAttribute(
|
|
142
|
-
targetParent.classList.add(
|
|
153
|
+
target.setAttribute("aria-expanded", "true");
|
|
154
|
+
targetParent.classList.add("hy-accordion__item__is-open");
|
|
143
155
|
accordionContainer
|
|
144
|
-
.querySelector(`#${target.getAttribute(
|
|
145
|
-
.setAttribute(
|
|
156
|
+
.querySelector(`#${target.getAttribute("aria-controls")}`)
|
|
157
|
+
.setAttribute("aria-hidden", "false");
|
|
146
158
|
if (!allowToggle) {
|
|
147
|
-
target.setAttribute(
|
|
159
|
+
target.setAttribute("aria-disabled", "true");
|
|
148
160
|
}
|
|
149
161
|
}
|
|
150
162
|
else if (allowToggle && isExpanded) {
|
|
151
|
-
target.setAttribute(
|
|
163
|
+
target.setAttribute("aria-expanded", "false");
|
|
152
164
|
this.collapseSection(targetContent);
|
|
153
|
-
if (targetParent.classList.contains(
|
|
154
|
-
targetParent.classList.remove(
|
|
165
|
+
if (targetParent.classList.contains("hy-accordion__item__is-open")) {
|
|
166
|
+
targetParent.classList.remove("hy-accordion__item__is-open");
|
|
155
167
|
}
|
|
156
168
|
accordionContainer
|
|
157
|
-
.querySelector(`#${target.getAttribute(
|
|
158
|
-
.setAttribute(
|
|
169
|
+
.querySelector(`#${target.getAttribute("aria-controls")}`)
|
|
170
|
+
.setAttribute("aria-hidden", "true");
|
|
159
171
|
}
|
|
160
172
|
event.preventDefault();
|
|
161
173
|
event.stopImmediatePropagation();
|
|
@@ -166,73 +178,73 @@ const AccordionItem = class {
|
|
|
166
178
|
if (anchor.length > 0) {
|
|
167
179
|
anchor = anchor.substr(1);
|
|
168
180
|
let target = document.querySelectorAll(`[id=${anchor}]`)[0];
|
|
169
|
-
if (target && target.classList.contains(
|
|
170
|
-
let targetParent = target.closest(
|
|
171
|
-
let targetContent = targetParent.querySelectorAll(
|
|
181
|
+
if (target && target.classList.contains("hy-accordion__button")) {
|
|
182
|
+
let targetParent = target.closest(".hy-accordion__item");
|
|
183
|
+
let targetContent = targetParent.querySelectorAll(".hy-accordion__content")[0];
|
|
172
184
|
this.expandSection(targetContent);
|
|
173
|
-
target.setAttribute(
|
|
174
|
-
targetParent.classList.add(
|
|
185
|
+
target.setAttribute("aria-expanded", "true");
|
|
186
|
+
targetParent.classList.add("hy-accordion__item__is-open");
|
|
175
187
|
const targetElementRect = target.getBoundingClientRect();
|
|
176
|
-
window.scrollTo({ top: window.scrollY + targetElementRect.top - 200, behavior:
|
|
188
|
+
window.scrollTo({ top: window.scrollY + targetElementRect.top - 200, behavior: "smooth" });
|
|
177
189
|
const containerId = targetParent.parentElement.parentElement.id;
|
|
178
190
|
if (containerId.length > 0) {
|
|
179
191
|
let accordion = document.querySelectorAll(`#${containerId}`)[0];
|
|
180
|
-
accordion.querySelector(`#${target.getAttribute(
|
|
192
|
+
accordion.querySelector(`#${target.getAttribute("aria-controls")}`).setAttribute("aria-hidden", "false");
|
|
181
193
|
}
|
|
182
194
|
}
|
|
183
195
|
}
|
|
184
196
|
}, 200);
|
|
185
197
|
}
|
|
186
198
|
collapseSection(element) {
|
|
187
|
-
element.style.height = 0 +
|
|
188
|
-
element.setAttribute(
|
|
199
|
+
element.style.height = 0 + "px";
|
|
200
|
+
element.setAttribute("data-collapsed", "true");
|
|
189
201
|
setTimeout(() => {
|
|
190
|
-
element.style.display =
|
|
202
|
+
element.style.display = "none";
|
|
191
203
|
}, 250);
|
|
192
204
|
}
|
|
193
205
|
expandSection(element) {
|
|
194
|
-
element.style.display =
|
|
195
|
-
element.style.height = element.scrollHeight +
|
|
196
|
-
element.setAttribute(
|
|
206
|
+
element.style.display = "block";
|
|
207
|
+
element.style.height = element.scrollHeight + "px";
|
|
208
|
+
element.setAttribute("data-collapsed", "false");
|
|
197
209
|
}
|
|
198
210
|
render() {
|
|
199
211
|
const containerId = this.el.parentElement.id;
|
|
200
212
|
if (this.ready && containerId.length > 0) {
|
|
201
213
|
document.querySelectorAll(`#${containerId}`).forEach(function (accordion) {
|
|
202
214
|
if (accordion) {
|
|
203
|
-
accordion.querySelectorAll(
|
|
204
|
-
trigger.addEventListener(
|
|
205
|
-
trigger.classList.add(
|
|
215
|
+
accordion.querySelectorAll(".hy-accordion__button").forEach(function (trigger) {
|
|
216
|
+
trigger.addEventListener("focus", function () {
|
|
217
|
+
trigger.classList.add("focus");
|
|
206
218
|
});
|
|
207
|
-
trigger.addEventListener(
|
|
208
|
-
trigger.classList.remove(
|
|
219
|
+
trigger.addEventListener("blur", function () {
|
|
220
|
+
trigger.classList.remove("focus");
|
|
209
221
|
});
|
|
210
222
|
});
|
|
211
223
|
}
|
|
212
224
|
});
|
|
213
225
|
}
|
|
214
|
-
const classIsOpen = this.showOpen ?
|
|
215
|
-
const classContentIsOpen = this.showOpen ?
|
|
216
|
-
const classAttributes = [
|
|
217
|
-
const classInnerWrapper = [
|
|
218
|
-
const classHeadingAttributes = [
|
|
226
|
+
const classIsOpen = this.showOpen ? "hy-accordion__item__is-open" : "";
|
|
227
|
+
const classContentIsOpen = this.showOpen ? "open" : "";
|
|
228
|
+
const classAttributes = ["hy-accordion__item", this.variant, classIsOpen].join(" ");
|
|
229
|
+
const classInnerWrapper = ["hy-accordion__item--container", this.variant].join(" ");
|
|
230
|
+
const classHeadingAttributes = ["hy-accordion--heading", this.variant].join(" ");
|
|
219
231
|
const classContentAttributes = [
|
|
220
|
-
|
|
232
|
+
"hy-accordion__content",
|
|
221
233
|
`hy-accordion__content--${this.variant}`,
|
|
222
234
|
this.variant,
|
|
223
235
|
classContentIsOpen,
|
|
224
|
-
].join(
|
|
236
|
+
].join(" ");
|
|
225
237
|
const classContentInnerWrapper = [
|
|
226
|
-
|
|
238
|
+
"hy-accordion__content--inner-wrapper",
|
|
227
239
|
`hy-accordion__content--inner-wrapper--${this.headerstyle}`,
|
|
228
240
|
`hy-accordion__content--inner-wrapper--${this.variant}`,
|
|
229
|
-
].join(
|
|
230
|
-
const titleAsId = this.accordiontitle.toLowerCase().replace(/\W/g,
|
|
231
|
-
const accordionItemHref =
|
|
232
|
-
const ariaExpanded = this.showOpen ?
|
|
233
|
-
const ariaHidden = this.showOpen ?
|
|
234
|
-
const dataCollapsed = this.showOpen ?
|
|
235
|
-
return (index.h("div", { class: classAttributes }, index.h("div", { class: classInnerWrapper }, index.h("h3", { class: classHeadingAttributes }, index.h("a", { href: accordionItemHref, class: "hy-accordion__link", tabindex: "-1" }, index.h("button", { "aria-expanded": ariaExpanded, "aria-controls": `${titleAsId}--content`, class: `hy-accordion__button hy-accordion__button--${this.headerstyle}`, id: `${titleAsId}--title` }, index.h("span", { class: "hy-accordion--heading__icon" }, index.h("hy-icon", { icon:
|
|
241
|
+
].join(" ");
|
|
242
|
+
const titleAsId = this.accordiontitle.toLowerCase().replace(/\W/g, "-");
|
|
243
|
+
const accordionItemHref = "#" + titleAsId + "--title";
|
|
244
|
+
const ariaExpanded = this.showOpen ? "true" : "false";
|
|
245
|
+
const ariaHidden = this.showOpen ? "false" : "true";
|
|
246
|
+
const dataCollapsed = this.showOpen ? "false" : "true";
|
|
247
|
+
return (index.h("div", { class: classAttributes }, index.h("div", { class: classInnerWrapper }, index.h("h3", { class: classHeadingAttributes }, index.h("a", { href: accordionItemHref, class: "hy-accordion__link", tabindex: "-1" }, index.h("button", { "aria-expanded": ariaExpanded, "aria-controls": `${titleAsId}--content`, class: `hy-accordion__button hy-accordion__button--${this.headerstyle}`, id: `${titleAsId}--title` }, index.h("span", { class: "hy-accordion--heading__icon" }, index.h("hy-icon", { icon: "hy-icon-caret-down", size: 16 })), index.h("span", null, this.accordiontitle)))), index.h("div", { "aria-labelledBy": `${titleAsId}--title`, class: classContentAttributes, id: `${titleAsId}--content`, role: "region", "aria-hidden": ariaHidden, "data-collapsed": dataCollapsed, style: { display: "none" } }, index.h("div", { class: classContentInnerWrapper }, index.h("slot", null))))));
|
|
236
248
|
}
|
|
237
249
|
get el() { return index.getElement(this); }
|
|
238
250
|
};
|
|
@@ -243,9 +255,9 @@ const adjacentImageTextCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7
|
|
|
243
255
|
const AdjacentImageText = class {
|
|
244
256
|
constructor(hostRef) {
|
|
245
257
|
index.registerInstance(this, hostRef);
|
|
246
|
-
this.headerstyle =
|
|
258
|
+
this.headerstyle = "default";
|
|
247
259
|
this.imageUrl = null;
|
|
248
|
-
this.imageAlt =
|
|
260
|
+
this.imageAlt = "";
|
|
249
261
|
this.disableLazy = false;
|
|
250
262
|
this.textTitle = undefined;
|
|
251
263
|
this.textDescription = null;
|
|
@@ -263,27 +275,27 @@ const AdjacentImageText = class {
|
|
|
263
275
|
this._sourceSet = await globalScript.jsonParserWorker(this.sourceSet);
|
|
264
276
|
}
|
|
265
277
|
componentDidLoad() {
|
|
266
|
-
let hyMainDiv = this.el.closest(
|
|
278
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
267
279
|
if (hyMainDiv) {
|
|
268
|
-
if (!hyMainDiv.classList.contains(
|
|
269
|
-
this.headerstyle =
|
|
280
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
281
|
+
this.headerstyle = "large";
|
|
270
282
|
}
|
|
271
283
|
}
|
|
272
284
|
}
|
|
273
285
|
render() {
|
|
274
|
-
const classAttributes = [
|
|
286
|
+
const classAttributes = ["hy-adjacent-image-text", `hy-adjacent-image-text__${this.headerstyle}`].join(" ");
|
|
275
287
|
const contentClassAttributes = [
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
].join(
|
|
279
|
-
const imageLeftClassAttributes = [
|
|
288
|
+
"hy-adjacent-image-text__text-container",
|
|
289
|
+
"hy-adjacent-image-text__text-container--left",
|
|
290
|
+
].join(" ");
|
|
291
|
+
const imageLeftClassAttributes = ["hy-adjacent-image-text__image-container"].join(" ");
|
|
280
292
|
const aspectRatioWidth = 6;
|
|
281
293
|
const aspectRatioHeight = 4;
|
|
282
294
|
const aspect = (aspectRatioHeight / aspectRatioWidth) * 100;
|
|
283
295
|
const aspectRatio = {
|
|
284
|
-
|
|
296
|
+
"--aspectRatio": `${aspect}%`,
|
|
285
297
|
};
|
|
286
|
-
return (index.h(index.Host, null, index.h("div", { class: classAttributes }, index.h("div", { class: imageLeftClassAttributes, style: aspectRatio }, this._sourceSet ? (index.h("picture", null, this._sourceSet.map((item) => (index.h("source", { srcSet: item.src, media: item.media, type: item.type, sizes: item.sizes ? item.sizes :
|
|
298
|
+
return (index.h(index.Host, null, index.h("div", { class: classAttributes }, index.h("div", { class: imageLeftClassAttributes, style: aspectRatio }, this._sourceSet ? (index.h("picture", null, this._sourceSet.map((item) => (index.h("source", { srcSet: item.src, media: item.media, type: item.type, sizes: item.sizes ? item.sizes : "" }))), index.h("img", { loading: this.disableLazy ? "eager" : "lazy", alt: this.imageAlt, class: "hy-image__image", src: this.imageUrl }))) : (index.h("img", { loading: this.disableLazy ? "eager" : "lazy", alt: this.imageAlt, class: "hy-image__image", src: this.imageUrl }))), index.h("div", { class: contentClassAttributes }, index.h("div", { class: "hy-adjacent-image-text__text-container__info-wrapper" }, index.h("div", { class: "hy-adjacent-image-text__text-container__title" }, this.textTitle), index.h("p", { class: `hy-adjacent-image-text__text-container__description hy-adjacent-image-text__text-container__description__${this.headerstyle}` }, this.textDescription)), index.h("div", { class: "hy-adjacent-image-text__text-container__links-wrapper" }, this.mainUrl && (index.h("div", { class: "hy-adjacent-image-text__text-container__link" }, index.h("hy-cta-link", { "link-content": this.mainUrlTitle, "sc-label": this.mainUrlAriaLabel, url: this.mainUrl, "is-external": this.mainUrlIsExternal }))), this.mainUrl2 && (index.h("div", { class: "hy-adjacent-image-text__text-container__link" }, index.h("hy-cta-link", { "link-content": this.mainUrlTitle2, "sc-label": this.mainUrlAriaLabel2, url: this.mainUrl2, "is-external": this.mainUrlIsExternal2 })))))), index.h("hy-box", { mb: "1.75, 1.75, 2, 2.5" })));
|
|
287
299
|
}
|
|
288
300
|
get el() { return index.getElement(this); }
|
|
289
301
|
};
|
|
@@ -304,30 +316,30 @@ const HyAnchorLinkList = class {
|
|
|
304
316
|
this._anchorItems = await globalScript.jsonParserWorker(this.anchorItems);
|
|
305
317
|
}
|
|
306
318
|
handleLinkClick(e) {
|
|
307
|
-
const targetId = e.target.getAttribute(
|
|
319
|
+
const targetId = e.target.getAttribute("href");
|
|
308
320
|
if (targetId) {
|
|
309
321
|
const targetElement = document.getElementById(targetId.substring(1));
|
|
310
322
|
const targetRect = targetElement.getBoundingClientRect();
|
|
311
|
-
window.scrollTo({ top: window.scrollY + targetRect.top - 100, behavior:
|
|
312
|
-
targetElement.setAttribute(
|
|
323
|
+
window.scrollTo({ top: window.scrollY + targetRect.top - 100, behavior: "smooth" });
|
|
324
|
+
targetElement.setAttribute("tabIndex", "-1");
|
|
313
325
|
targetElement.focus({ preventScroll: true });
|
|
314
326
|
}
|
|
315
327
|
e.preventDefault();
|
|
316
328
|
e.stopPropagation();
|
|
317
329
|
}
|
|
318
330
|
render() {
|
|
319
|
-
const classAttributes = [
|
|
331
|
+
const classAttributes = ["hy-anchor-link-list"].join(" ");
|
|
320
332
|
const buttonClasses = {
|
|
321
|
-
|
|
322
|
-
|
|
333
|
+
"hy-anchor-link-list__button": true,
|
|
334
|
+
"is-open": this.isOpen,
|
|
323
335
|
};
|
|
324
336
|
const containerClasses = {
|
|
325
|
-
|
|
326
|
-
|
|
337
|
+
"hy-anchor-link-list__container": true,
|
|
338
|
+
"is-open": this.isOpen,
|
|
327
339
|
};
|
|
328
340
|
const items = this._anchorItems;
|
|
329
|
-
return (index.h(index.Host, { class: classAttributes }, index.h("button", { "aria-label": this.listTitle, onClick: () => (this.isOpen = !this.isOpen), class: buttonClasses }, index.h("span", { class: "hy-anchor-link-list__button--title" }, index.h("hy-icon", { icon:
|
|
330
|
-
items.map((item) => (index.h("a", { class: "hy-anchor-link-list__item", href: item.url, onClick: this.handleLinkClick }, index.h("hy-icon", { icon:
|
|
341
|
+
return (index.h(index.Host, { class: classAttributes }, index.h("button", { "aria-label": this.listTitle, onClick: () => (this.isOpen = !this.isOpen), class: buttonClasses }, index.h("span", { class: "hy-anchor-link-list__button--title" }, index.h("hy-icon", { icon: "hy-icon-bullet-list", size: 18, fill: "var(--brand-main)" }), this.listTitle), index.h("span", { class: "hy-anchor-link-list__button--label" }, this.isOpen ? this.closeLabel : this.openLabel, index.h("hy-icon", { class: "label-close-icon", icon: "hy-icon-caret-down", size: 16, fill: "var(--brand-main)" }))), index.h("div", { "aria-hidden": this.isOpen ? "false" : "true", class: containerClasses }, items &&
|
|
342
|
+
items.map((item) => (index.h("a", { class: "hy-anchor-link-list__item", href: item.url, onClick: this.handleLinkClick }, index.h("hy-icon", { icon: "hy-icon-arrow-down", size: 12, fill: "var(--brand-main)" }), item.title))))));
|
|
331
343
|
}
|
|
332
344
|
};
|
|
333
345
|
HyAnchorLinkList.style = hyAnchorLinkListCss;
|
|
@@ -337,11 +349,11 @@ const hyBadgeCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand
|
|
|
337
349
|
const HyBadge = class {
|
|
338
350
|
constructor(hostRef) {
|
|
339
351
|
index.registerInstance(this, hostRef);
|
|
340
|
-
this.variant =
|
|
352
|
+
this.variant = "primary";
|
|
341
353
|
}
|
|
342
354
|
render() {
|
|
343
|
-
const classAttributes = [
|
|
344
|
-
return (index.h(index.Host, null, index.h("span", { class: classAttributes.join(
|
|
355
|
+
const classAttributes = ["hy-badge", this.variant];
|
|
356
|
+
return (index.h(index.Host, null, index.h("span", { class: classAttributes.join(" ") }, index.h("slot", null))));
|
|
345
357
|
}
|
|
346
358
|
};
|
|
347
359
|
HyBadge.style = hyBadgeCss;
|
|
@@ -356,30 +368,30 @@ const HyBanner = class {
|
|
|
356
368
|
this.url = undefined;
|
|
357
369
|
this.scLabel = undefined;
|
|
358
370
|
this.urlTitle = undefined;
|
|
359
|
-
this.headerstyle =
|
|
371
|
+
this.headerstyle = "common";
|
|
360
372
|
this.isExternal = false;
|
|
361
373
|
}
|
|
362
374
|
componentDidLoad() {
|
|
363
|
-
let hyMainDiv = this.el.closest(
|
|
375
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
364
376
|
if (hyMainDiv) {
|
|
365
|
-
if (!hyMainDiv.classList.contains(
|
|
366
|
-
this.headerstyle =
|
|
377
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
378
|
+
this.headerstyle = "large";
|
|
367
379
|
}
|
|
368
380
|
}
|
|
369
381
|
}
|
|
370
382
|
render() {
|
|
371
|
-
const hyBannerClass = [
|
|
372
|
-
const hyBannerWrapperClass = [
|
|
383
|
+
const hyBannerClass = ["hy-banner", `hy-banner__${this.headerstyle}`, this.headerstyle].join(" ");
|
|
384
|
+
const hyBannerWrapperClass = ["hy-banner__info-container"].join(" ");
|
|
373
385
|
const hyBannerTitle = [
|
|
374
|
-
|
|
386
|
+
"hy-banner__info-container__title",
|
|
375
387
|
`hy-banner__info-container__title__${this.headerstyle}`,
|
|
376
388
|
this.headerstyle,
|
|
377
|
-
].join(
|
|
389
|
+
].join(" ");
|
|
378
390
|
const hyBannerDescription = [
|
|
379
|
-
|
|
391
|
+
"hy-banner__info-container__description",
|
|
380
392
|
`hy-banner__info-container__description__${this.headerstyle}`,
|
|
381
393
|
this.headerstyle,
|
|
382
|
-
].join(
|
|
394
|
+
].join(" ");
|
|
383
395
|
const variant = utils.CtaLinkButtonVariants.onBlueBkgd;
|
|
384
396
|
return (index.h(index.Host, null, index.h("hy-box", { pt: "1.25, 1.25, 1.5, 2.5" }), index.h("div", { class: hyBannerClass }, index.h("hy-main-content-wrapper", null, index.h("div", { class: hyBannerWrapperClass }, index.h("div", { class: hyBannerTitle }, this.textTitle), index.h("div", { class: hyBannerDescription }, this.textDescription), this.url && (index.h("div", { class: "hy-banner__info-container__link" }, index.h("hy-cta-button", { "link-content": this.urlTitle, "sc-label": this.scLabel, url: this.url, "is-external": this.isExternal, variant: variant })))))), index.h("hy-box", { mb: "1.75, 1.75, 2, 2.5" })));
|
|
385
397
|
}
|
|
@@ -1814,9 +1826,9 @@ wide, 60rem to 75rem or 60rem to 100.0625rem (depending on hasSidebar) (mb[2])
|
|
|
1814
1826
|
xlarge, > 100.0625: 2.5rem (mb[3])
|
|
1815
1827
|
* */
|
|
1816
1828
|
const toRemValue = (val) => {
|
|
1817
|
-
return typeof val ===
|
|
1829
|
+
return typeof val === "number" ? `${val}rem` : undefined;
|
|
1818
1830
|
};
|
|
1819
|
-
const breakpoints = [
|
|
1831
|
+
const breakpoints = ["30rem", "60rem", "75.0625rem", "100.0625rem"];
|
|
1820
1832
|
/*
|
|
1821
1833
|
Default - mobile
|
|
1822
1834
|
mq[0] - tablet
|
|
@@ -1837,12 +1849,12 @@ const createCssClass = ({ hasSidebar, pt, pb, pl, pr, mt, mb, ml, mr, h, bg, wid
|
|
|
1837
1849
|
margin-bottom: ${toRemValue(mb[0])};
|
|
1838
1850
|
margin-left: ${toRemValue(ml[0])};
|
|
1839
1851
|
height: ${toRemValue(h)};
|
|
1840
|
-
background-color: ${!!bg ? `var(--${bg})` :
|
|
1852
|
+
background-color: ${!!bg ? `var(--${bg})` : "transparent"};
|
|
1841
1853
|
width: ${width[0]};
|
|
1842
1854
|
display: flex;
|
|
1843
|
-
flex-flow: ${direction ||
|
|
1844
|
-
justify-content: ${justify ||
|
|
1845
|
-
align-items: ${align ||
|
|
1855
|
+
flex-flow: ${direction || "row"};
|
|
1856
|
+
justify-content: ${justify || "flex-start"};
|
|
1857
|
+
align-items: ${align || "flex-start"};
|
|
1846
1858
|
|
|
1847
1859
|
${mq[0]} {
|
|
1848
1860
|
width: ${width[1]};
|
|
@@ -1898,11 +1910,11 @@ const createCssClass = ({ hasSidebar, pt, pb, pl, pr, mt, mb, ml, mr, h, bg, wid
|
|
|
1898
1910
|
}
|
|
1899
1911
|
`;
|
|
1900
1912
|
};
|
|
1901
|
-
const toNumArray = (value) => value === null || value === void 0 ? void 0 : value.split(
|
|
1913
|
+
const toNumArray = (value) => value === null || value === void 0 ? void 0 : value.split(",").map((v) => `${v.trim()}`).map((v) => parseFloat(v));
|
|
1902
1914
|
const HyBox = class {
|
|
1903
1915
|
constructor(hostRef) {
|
|
1904
1916
|
index.registerInstance(this, hostRef);
|
|
1905
|
-
this.headerstyle =
|
|
1917
|
+
this.headerstyle = "common";
|
|
1906
1918
|
this.p = undefined;
|
|
1907
1919
|
this.pl = undefined;
|
|
1908
1920
|
this.pr = undefined;
|
|
@@ -1913,18 +1925,18 @@ const HyBox = class {
|
|
|
1913
1925
|
this.mr = undefined;
|
|
1914
1926
|
this.mb = undefined;
|
|
1915
1927
|
this.mt = undefined;
|
|
1916
|
-
this.justify =
|
|
1917
|
-
this.align =
|
|
1928
|
+
this.justify = "flex-start";
|
|
1929
|
+
this.align = "baseline";
|
|
1918
1930
|
this.h = undefined;
|
|
1919
|
-
this.bg =
|
|
1920
|
-
this.width =
|
|
1921
|
-
this.direction =
|
|
1931
|
+
this.bg = "transparent";
|
|
1932
|
+
this.width = "100";
|
|
1933
|
+
this.direction = "row";
|
|
1922
1934
|
}
|
|
1923
1935
|
componentWillLoad() {
|
|
1924
|
-
let hyMainDiv = this.el.closest(
|
|
1936
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
1925
1937
|
if (hyMainDiv) {
|
|
1926
|
-
if (!hyMainDiv.classList.contains(
|
|
1927
|
-
this.headerstyle =
|
|
1938
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
1939
|
+
this.headerstyle = "large";
|
|
1928
1940
|
}
|
|
1929
1941
|
}
|
|
1930
1942
|
}
|
|
@@ -1938,7 +1950,7 @@ const HyBox = class {
|
|
|
1938
1950
|
const mb = (_m = (_l = toNumArray(this.mb)) !== null && _l !== void 0 ? _l : toNumArray(this.m)) !== null && _m !== void 0 ? _m : [0];
|
|
1939
1951
|
const mr = (_p = (_o = toNumArray(this.mr)) !== null && _o !== void 0 ? _o : toNumArray(this.m)) !== null && _p !== void 0 ? _p : [0];
|
|
1940
1952
|
const ml = (_r = (_q = toNumArray(this.ml)) !== null && _q !== void 0 ? _q : toNumArray(this.m)) !== null && _r !== void 0 ? _r : [0];
|
|
1941
|
-
const hasSidebar = this.headerstyle ==
|
|
1953
|
+
const hasSidebar = this.headerstyle == "common";
|
|
1942
1954
|
return (index.h(index.Host, { class: createCssClass({
|
|
1943
1955
|
hasSidebar,
|
|
1944
1956
|
pt,
|
|
@@ -1951,7 +1963,7 @@ const HyBox = class {
|
|
|
1951
1963
|
mb,
|
|
1952
1964
|
h: this.h,
|
|
1953
1965
|
bg: this.bg,
|
|
1954
|
-
width: this.width.split(
|
|
1966
|
+
width: this.width.split(",").map((v) => `${v.trim()}%`),
|
|
1955
1967
|
justify: this.justify,
|
|
1956
1968
|
align: this.align,
|
|
1957
1969
|
direction: this.direction,
|
|
@@ -1970,11 +1982,11 @@ const HyBoxContainer = class {
|
|
|
1970
1982
|
this.maxWidth = true;
|
|
1971
1983
|
}
|
|
1972
1984
|
render() {
|
|
1973
|
-
return (index.h(index.Host, { style: { width:
|
|
1985
|
+
return (index.h(index.Host, { style: { width: "100%", display: "flex", flex: "1", justifyContent: "center" } }, index.h("div", { class: css `
|
|
1974
1986
|
display: flex;
|
|
1975
1987
|
width: 100%;
|
|
1976
|
-
flex-wrap: ${this.wrap ?
|
|
1977
|
-
max-width: ${this.maxWidth ?
|
|
1988
|
+
flex-wrap: ${this.wrap ? "wrap" : "no-wrap"};
|
|
1989
|
+
max-width: ${this.maxWidth ? "90rem" : "100%"};
|
|
1978
1990
|
` }, index.h("slot", null))));
|
|
1979
1991
|
}
|
|
1980
1992
|
};
|
|
@@ -1987,22 +1999,22 @@ const HyBreadcrumbs = class {
|
|
|
1987
1999
|
index.registerInstance(this, hostRef);
|
|
1988
2000
|
this.dataItems = undefined;
|
|
1989
2001
|
this.variant = utils.BreadcrumbVariants.default;
|
|
1990
|
-
this.headerstyle =
|
|
2002
|
+
this.headerstyle = "with-sidebar";
|
|
1991
2003
|
this.menuOpen = false;
|
|
1992
2004
|
}
|
|
1993
2005
|
async componentWillLoad() {
|
|
1994
2006
|
this._dataItems = await globalScript.jsonParserWorker(this.dataItems);
|
|
1995
2007
|
}
|
|
1996
2008
|
componentDidLoad() {
|
|
1997
|
-
let hyMainDiv = this.el.closest(
|
|
2009
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
1998
2010
|
if (hyMainDiv) {
|
|
1999
|
-
if (!hyMainDiv.classList.contains(
|
|
2000
|
-
this.headerstyle =
|
|
2011
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
2012
|
+
this.headerstyle = "without-sidebar";
|
|
2001
2013
|
}
|
|
2002
2014
|
}
|
|
2003
2015
|
}
|
|
2004
2016
|
render() {
|
|
2005
|
-
const breadcrumbsClass = [
|
|
2017
|
+
const breadcrumbsClass = ["hy-breadcrumbs", this.variant, this.headerstyle].join(" ");
|
|
2006
2018
|
return (index.h("nav", { "aria-label": "Breadcrumb", role: "navigation", "aria-labelledby": "system-breadcrumb", class: breadcrumbsClass }, index.h("ol", { class: "breadcrumb-container" }, this._dataItems.map((item) => {
|
|
2007
2019
|
if (item.url.length > 0) {
|
|
2008
2020
|
return (index.h("li", { class: "breadcrumb-item" }, index.h("a", { class: "breadcrumb-item__link", href: item.url }, item.text), index.h("hy-icon", { class: "breadcrumb-item__icon", icon: "hy-icon-caret-right", size: 12 })));
|
|
@@ -2016,6 +2028,78 @@ const HyBreadcrumbs = class {
|
|
|
2016
2028
|
};
|
|
2017
2029
|
HyBreadcrumbs.style = hyBreadcrumbsCss;
|
|
2018
2030
|
|
|
2031
|
+
const colors = {
|
|
2032
|
+
brandMain: "#0e688b",
|
|
2033
|
+
brandMainLight: "#107eab",
|
|
2034
|
+
brandMainActive: "#005379",
|
|
2035
|
+
brandMainDark: "#003146",
|
|
2036
|
+
brandMainNearlyBlack: "#000222",
|
|
2037
|
+
grayscaleWhite: "#fff",
|
|
2038
|
+
grayscaleLight: "#f8f8f8",
|
|
2039
|
+
grayscaleMedium: "#d2d2d2",
|
|
2040
|
+
grayscaleBackgroundBox: "#f5f5f5",
|
|
2041
|
+
grayscaleBackgroundArrow: "#dfdfdf",
|
|
2042
|
+
grayscaleMediumDark: "#979797",
|
|
2043
|
+
grayscaleDark: "#555555",
|
|
2044
|
+
grayscaleBlack: "#000000",
|
|
2045
|
+
additionalRedLight: "#E5053A",
|
|
2046
|
+
additionalRedDark: "#A31621",
|
|
2047
|
+
additionalPurpleLight: "#420039",
|
|
2048
|
+
additionalYellow: "#F9A21A",
|
|
2049
|
+
additionalSkyblue: "#48C5F8",
|
|
2050
|
+
additionalOrange: "#D14600",
|
|
2051
|
+
additionalGreenLight: "#96BA3C",
|
|
2052
|
+
additionalGreenDark: "#006400",
|
|
2053
|
+
};
|
|
2054
|
+
|
|
2055
|
+
const buttonCss = "@charset \"UTF-8\";:root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}.hy-button__icon{-ms-flex-line-pack:center;align-content:center;display:-webkit-box;display:-ms-flexbox;display:flex}.hy-button{display:block;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--brand-main);color:var(--grayscale-white);font-family:var(--main-font-family);border:none;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:0.9375rem;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:0.9375rem;margin:0;padding:0;-webkit-transition-duration:0.1s;transition-duration:0.1s;-webkit-transition-property:all;transition-property:all;min-height:44px;position:relative;text-decoration:none}.hy-button.size-large{min-height:48px}.hy-button.primary{background-color:var(--brand-main);color:var(--grayscale-white)}.hy-button.primary .hy-button__icon{padding:8px 13px}.hy-button.primary svg{fill:var(--grayscale-white)}.hy-button.primary:hover{background-color:var(--brand-main-active)}.hy-button.primary:active{background-color:var(--brand-main-dark)}.hy-button.primary:disabled{background-color:var(--grayscale-medium);color:var(--grayscale-dark)}.hy-button.primary:disabled svg{fill:var(--grayscale-dark)}.hy-button.primary:focus{outline:solid 2px var(--additional-yellow);outline-offset:2px}.hy-button.secondary{background-color:transparent;border:solid 2px var(--brand-main);color:var(--brand-main)}.hy-button.secondary svg{fill:var(--brand-main)}.hy-button.secondary:hover{border:solid 2px var(--brand-main-active);color:var(--brand-main-active)}.hy-button.secondary:hover svg{fill:var(--brand-main-active)}.hy-button.secondary:active{border:solid 2px var(--brand-main-dark);color:var(--brand-main-dark)}.hy-button.secondary:active svg{fill:var(--brand-main-dark)}.hy-button.secondary:disabled{border:solid 2px var(--grayscale-medium-dark);color:var(--grayscale-medium-dark)}.hy-button.secondary:disabled svg{fill:var(--grayscale-medium-dark)}.hy-button::after{content:\"\";display:block;border-bottom:2px solid var(--additional-skyblue);position:absolute;bottom:-3.5px;left:3px;right:3px;z-index:0}.hy-button.primary::after{bottom:-2px}.hy-button:disabled{cursor:not-allowed}.hy-button:disabled::after{border-bottom:2px solid var(--grayscale-medium-dark);bottom:-3.5px}.hy-button:disabled.primary::after{bottom:-2px}.hy-button .hy-button__text{margin:12px 24px}.hy-button .hy-button__icon-right{padding-right:12px}hy-button[icon-right=hy-icon-arrow-right] .primary .hy-button__text{margin:12px 0 12px 16px;padding-right:16px}hy-button[icon-right=hy-icon-arrow-right] .primary:not(disabled) .hy-button__text{border-right:solid 1px var(--additional-skyblue)}hy-button[icon-right=hy-icon-arrow-right] .primary:disabled .hy-button__text{border-right:solid 1px var(--grayscale-dark)}hy-button[icon-right=hy-icon-arrow-right] .secondary .hy-button__text{margin:12px 16px}hy-button[icon-right=hy-icon-arrow-right] .secondary .hy-button__icon{padding-right:1rem;padding-left:0}hy-button[icon=hy-icon-arrow-left] .primary .hy-button__text{margin:12px 16px 12px 0;padding-left:16px}hy-button[icon=hy-icon-arrow-left] .primary:not(disabled) .hy-button__text{border-left:solid 1px var(--additional-skyblue)}hy-button[icon=hy-icon-arrow-left] .primary:disabled .hy-button__text{border-left:solid 1px var(--grayscale-dark)}hy-button[icon=hy-icon-arrow-left] .secondary .hy-button__text{margin:12px 16px}hy-button[icon=hy-icon-arrow-left] .secondary .hy-button__icon{padding-left:1rem;padding-right:0}";
|
|
2056
|
+
|
|
2057
|
+
const fillcolors = {
|
|
2058
|
+
primary: colors.brandMain,
|
|
2059
|
+
secondary: "white",
|
|
2060
|
+
};
|
|
2061
|
+
const Button = class {
|
|
2062
|
+
constructor(hostRef) {
|
|
2063
|
+
index.registerInstance(this, hostRef);
|
|
2064
|
+
this.buttonType = "submit";
|
|
2065
|
+
this.buttonClasses = "";
|
|
2066
|
+
this.variant = "primary";
|
|
2067
|
+
this.state = "enabled";
|
|
2068
|
+
this.size = "normal";
|
|
2069
|
+
this.disabled = false;
|
|
2070
|
+
this.url = "";
|
|
2071
|
+
this.ariaLabel = "";
|
|
2072
|
+
this.isExternal = false;
|
|
2073
|
+
this.icon = undefined;
|
|
2074
|
+
this.iconRight = undefined;
|
|
2075
|
+
this.attrs = "";
|
|
2076
|
+
}
|
|
2077
|
+
render() {
|
|
2078
|
+
const classAttributes = ["hy-button", this.variant, this.state, "size-" + this.size, this.buttonClasses];
|
|
2079
|
+
const iconFillColor = fillcolors[this.variant];
|
|
2080
|
+
const target = this.isExternal ? "_blank" : "_self";
|
|
2081
|
+
let props = {};
|
|
2082
|
+
if (this.attrs && this.attrs.length > 2) {
|
|
2083
|
+
let attrString = JSON.parse(this.attrs);
|
|
2084
|
+
let attrArray = attrString.split('" ');
|
|
2085
|
+
attrArray.map((item) => {
|
|
2086
|
+
let parts = item.split("=");
|
|
2087
|
+
let key = parts[0];
|
|
2088
|
+
let value = parts[1];
|
|
2089
|
+
key = key.replaceAll('"', " ");
|
|
2090
|
+
key = key.trim();
|
|
2091
|
+
if (key !== "class") {
|
|
2092
|
+
value = value.replaceAll('"', " ");
|
|
2093
|
+
value = value.trim();
|
|
2094
|
+
props[key] = value;
|
|
2095
|
+
}
|
|
2096
|
+
});
|
|
2097
|
+
}
|
|
2098
|
+
return this.url ? (index.h(index.Host, { "icon-right": "hy-icon-arrow-right", "aria-label": this.ariaLabel }, index.h("div", { style: { display: "flex" } }, index.h("a", { class: classAttributes.join(" "), href: this.url, target: target }, index.h("span", { class: "hy-button__text" }, index.h("slot", null)), index.h("span", { class: "hy-button__icon" }, index.h("hy-icon", { icon: "hy-icon-arrow-right", fill: iconFillColor, size: 13 })))))) : (index.h(index.Host, { "aria-label": this.ariaLabel }, index.h("button", Object.assign({ type: this.buttonType, class: classAttributes.join(" "), disabled: this.disabled }, props), !!this.icon && (index.h("span", { class: "hy-button__icon hy-button__icon--left" }, index.h("hy-icon", { icon: this.icon, fill: iconFillColor, size: 13 }))), index.h("span", { class: "hy-button__text" }, index.h("slot", null)), !!this.iconRight && (index.h("span", { class: "hy-button__icon hy-button__icon--right" }, index.h("hy-icon", { icon: this.iconRight, fill: iconFillColor, size: 13 }))))));
|
|
2099
|
+
}
|
|
2100
|
+
};
|
|
2101
|
+
Button.style = buttonCss;
|
|
2102
|
+
|
|
2019
2103
|
const hyCheckboxCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}.hy-checkbox{display:inline-block;position:relative;margin-right:1rem}.hy-checkbox__checkmark{border-color:var(--link-blue);border-style:solid inset solid solid;border-width:2px;height:20px;margin-right:6px;min-width:20px;min-height:20px;position:relative;width:20px}.hy-checkbox__checkmark svg{bottom:0;left:0;position:absolute;visibility:hidden}.hy-checkbox__checkmark::before{background-color:var(--grayscale-white);content:\"\";height:10px;position:absolute;right:0;-webkit-transform:rotate(40deg) translate(6%, -55%);transform:rotate(40deg) translate(6%, -55%);visibility:hidden;width:8px}.hy-checkbox__label{font-size:0.875rem;line-height:20px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--grayscale-black);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:var(--main-font-family);letter-spacing:-0.4px;text-align:left}@media (min-width: 30rem){.hy-checkbox__label{font-size:1rem;line-height:20px}}.hy-checkbox__checkbox{height:100%;margin:0;opacity:0;position:absolute;width:100%;z-index:10}.hy-checkbox__checkbox:checked+label{color:var(--grayscale-black)}.hy-checkbox__checkbox:checked+label .hy-checkbox__checkmark svg,.hy-checkbox__checkbox:checked+label .hy-checkbox__checkmark::before{visibility:visible}.hy-checkbox__checkbox:hover{cursor:pointer}.hy-checkbox__checkbox:hover+label{color:var(--brand-main)}.hy-checkbox__checkbox:focus+label{outline-offset:1px;outline:2px solid var(--link-blue)}.hy-checkbox--button{display:inline-block;margin-right:4px;position:relative}.hy-checkbox--button__label{font-size:0.75rem;line-height:14px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:0.5px solid var(--grayscale-medium-dark);color:var(--link-blue);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:var(--main-font-family);font-weight:600;letter-spacing:-0.3px;padding:12px 15px 12px 13px;z-index:1}@media (min-width: 60rem){.hy-checkbox--button__label{font-size:0.875rem;line-height:18px;letter-spacing:-0.4px;padding:9px 8px 9px 8px}}.hy-checkbox--button__checkmark{position:absolute;right:12px;top:0;bottom:0}@media (min-width: 60rem){.hy-checkbox--button__checkmark{right:10px;bottom:calc(50% + 10px)}}.hy-checkbox--button__checkmark svg{bottom:0;left:0;position:absolute;visibility:hidden}.hy-checkbox--button__label-icon{height:13px;position:absolute;width:12px}@media (min-width: 60rem){.hy-checkbox--button__label-icon{padding:10px;right:-6px;top:calc(50% + 5px)}}.hy-checkbox--button__label-icon svg{background:var(--grayscale-white);height:12px;left:50%;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:12px}.hy-checkbox--button__checkbox{height:100%;margin:0;opacity:0;position:absolute;width:100%;z-index:10}.hy-checkbox--button__checkbox:checked+label{border:1px solid var(--grayscale-black);color:var(--grayscale-black);padding:12px 15px 12px 13px}@media (min-width: 60rem){.hy-checkbox--button__checkbox:checked+label{border:2px solid var(--grayscale-black);padding:8px 26px 8px 7px}}.hy-checkbox--button__checkbox:checked+label .hy-checkbox--button__checkmark .hy-checkbox--button__label-icon{background:var(--grayscale-white)}.hy-checkbox--button__checkbox:checked+label .hy-checkbox--button__checkmark svg{visibility:visible}.hy-checkbox--button__checkbox:hover{cursor:pointer}.hy-checkbox--button__checkbox:focus+label{outline-offset:1px;outline:1px solid var(--link-blue)}";
|
|
2020
2104
|
|
|
2021
2105
|
const HyCheckbox = class {
|
|
@@ -2029,10 +2113,10 @@ const HyCheckbox = class {
|
|
|
2029
2113
|
}
|
|
2030
2114
|
render() {
|
|
2031
2115
|
switch (this.variant) {
|
|
2032
|
-
case
|
|
2033
|
-
return (index.h(index.Host, { class: "hy-checkbox--button" }, index.h("input", { type: "checkbox", class: "hy-checkbox--button__checkbox", checked: this.checkboxChecked, id: `${this.checkboxId}`, value: `${this.checkboxValue}` }), index.h("label", { class: "hy-checkbox--button__label", htmlFor: `${this.checkboxId}` }, this.checkboxLabel, index.h("span", { class: "hy-checkbox--button__checkmark" }, index.h("hy-icon", { class: "hy-checkbox--button__label-icon", icon:
|
|
2116
|
+
case "button":
|
|
2117
|
+
return (index.h(index.Host, { class: "hy-checkbox--button" }, index.h("input", { type: "checkbox", class: "hy-checkbox--button__checkbox", checked: this.checkboxChecked, id: `${this.checkboxId}`, value: `${this.checkboxValue}` }), index.h("label", { class: "hy-checkbox--button__label", htmlFor: `${this.checkboxId}` }, this.checkboxLabel, index.h("span", { class: "hy-checkbox--button__checkmark" }, index.h("hy-icon", { class: "hy-checkbox--button__label-icon", icon: "hy-icon-done", size: 14, "aria-hidden": "true" })))));
|
|
2034
2118
|
default:
|
|
2035
|
-
return (index.h(index.Host, { class: "hy-checkbox" }, index.h("input", { type: "checkbox", class: "hy-checkbox__checkbox", checked: this.checkboxChecked, id: `${this.checkboxId}`, value: `${this.checkboxValue}` }), index.h("label", { class: "hy-checkbox__label", htmlFor: `${this.checkboxId}` }, index.h("span", { class: "hy-checkbox__checkmark" }, index.h("hy-icon", { class: "hy-checkbox__label-icon", icon:
|
|
2119
|
+
return (index.h(index.Host, { class: "hy-checkbox" }, index.h("input", { type: "checkbox", class: "hy-checkbox__checkbox", checked: this.checkboxChecked, id: `${this.checkboxId}`, value: `${this.checkboxValue}` }), index.h("label", { class: "hy-checkbox__label", htmlFor: `${this.checkboxId}` }, index.h("span", { class: "hy-checkbox__checkmark" }, index.h("hy-icon", { class: "hy-checkbox__label-icon", icon: "hy-icon-done", size: 23, "aria-hidden": "true" })), this.checkboxLabel)));
|
|
2036
2120
|
}
|
|
2037
2121
|
}
|
|
2038
2122
|
};
|
|
@@ -2050,7 +2134,7 @@ const HyCollaboration = class {
|
|
|
2050
2134
|
this.imageAltText = undefined;
|
|
2051
2135
|
}
|
|
2052
2136
|
render() {
|
|
2053
|
-
return (index.h("div", { class: "hy-collaboration" }, index.h("figure", { class: "hy-collaboration__logo", role: "complementary" }, index.h("img", { src: this.imageUrl, alt: this.imageAltText })), index.h("div", { class: "hy-collaboration__content" }, index.h("p", { class: "hy-collaboration__description" }, this.textDescription), this.linkUrl && (index.h("a", { href: this.linkUrl, class: "hy-collaboration__link" }, this.linkTitle, index.h("span", { "aria-hidden": "true" }, index.h("hy-icon", { icon:
|
|
2137
|
+
return (index.h("div", { class: "hy-collaboration" }, index.h("figure", { class: "hy-collaboration__logo", role: "complementary" }, index.h("img", { src: this.imageUrl, alt: this.imageAltText })), index.h("div", { class: "hy-collaboration__content" }, index.h("p", { class: "hy-collaboration__description" }, this.textDescription), this.linkUrl && (index.h("a", { href: this.linkUrl, class: "hy-collaboration__link" }, this.linkTitle, index.h("span", { "aria-hidden": "true" }, index.h("hy-icon", { icon: "hy-icon-arrow-right", size: 10 })))))));
|
|
2054
2138
|
}
|
|
2055
2139
|
};
|
|
2056
2140
|
HyCollaboration.style = hyCollaborationCss;
|
|
@@ -2061,12 +2145,12 @@ const HyContentList = class {
|
|
|
2061
2145
|
constructor(hostRef) {
|
|
2062
2146
|
index.registerInstance(this, hostRef);
|
|
2063
2147
|
this.variant = utils.CourseVariants.default;
|
|
2064
|
-
this.linkLabel =
|
|
2065
|
-
this.noResultLabel =
|
|
2066
|
-
this.creditsLabel =
|
|
2067
|
-
this.cancelledLabel =
|
|
2148
|
+
this.linkLabel = "Go to course page";
|
|
2149
|
+
this.noResultLabel = "No courses scheduled at the moment";
|
|
2150
|
+
this.creditsLabel = "cr";
|
|
2151
|
+
this.cancelledLabel = "Cancelled";
|
|
2068
2152
|
this.dataItems = undefined;
|
|
2069
|
-
this.headerstyle =
|
|
2153
|
+
this.headerstyle = "common";
|
|
2070
2154
|
this.courseStateVariant = utils.CourseStateVariants.default;
|
|
2071
2155
|
this.courseRealisations = [];
|
|
2072
2156
|
}
|
|
@@ -2074,7 +2158,7 @@ const HyContentList = class {
|
|
|
2074
2158
|
* Data for links to be displayed.
|
|
2075
2159
|
*/
|
|
2076
2160
|
dataWatcher(data) {
|
|
2077
|
-
this._dataItems = typeof data ===
|
|
2161
|
+
this._dataItems = typeof data === "string" ? JSON.parse(data) : data;
|
|
2078
2162
|
}
|
|
2079
2163
|
componentWillLoad() {
|
|
2080
2164
|
this.dataWatcher(this.dataItems);
|
|
@@ -2083,14 +2167,14 @@ const HyContentList = class {
|
|
|
2083
2167
|
e.preventDefault();
|
|
2084
2168
|
let card = this.el.querySelector(`#${id}`);
|
|
2085
2169
|
if (card) {
|
|
2086
|
-
window.open(card.dataset.location,
|
|
2170
|
+
window.open(card.dataset.location, "_blank");
|
|
2087
2171
|
}
|
|
2088
2172
|
}
|
|
2089
2173
|
async componentDidLoad() {
|
|
2090
|
-
let hyMainDiv = this.el.closest(
|
|
2174
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
2091
2175
|
if (hyMainDiv) {
|
|
2092
|
-
if (!hyMainDiv.classList.contains(
|
|
2093
|
-
this.headerstyle =
|
|
2176
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
2177
|
+
this.headerstyle = "large";
|
|
2094
2178
|
}
|
|
2095
2179
|
}
|
|
2096
2180
|
}
|
|
@@ -2099,39 +2183,39 @@ const HyContentList = class {
|
|
|
2099
2183
|
if (this._dataItems && this._dataItems.length > 0) {
|
|
2100
2184
|
this._dataItems.forEach((item) => {
|
|
2101
2185
|
const courseObject = JSON.parse(JSON.stringify(item));
|
|
2102
|
-
const courseListType = courseObject[
|
|
2103
|
-
this.variant = courseListType ==
|
|
2186
|
+
const courseListType = courseObject["courseListType"];
|
|
2187
|
+
this.variant = courseListType == "list" ? utils.CourseVariants.row : utils.CourseVariants.grid;
|
|
2104
2188
|
for (const courseProperty in courseObject) {
|
|
2105
|
-
if (courseProperty ==
|
|
2189
|
+
if (courseProperty == "courseListType")
|
|
2106
2190
|
continue;
|
|
2107
2191
|
const courseItem = courseObject[courseProperty];
|
|
2108
|
-
const courseCode = courseItem[
|
|
2109
|
-
const courseCredits = courseItem[
|
|
2192
|
+
const courseCode = courseItem["code"];
|
|
2193
|
+
const courseCredits = courseItem["credits"];
|
|
2110
2194
|
// Course realisations.
|
|
2111
|
-
if (courseItem[
|
|
2112
|
-
const realisations = JSON.parse(JSON.stringify(courseItem[
|
|
2195
|
+
if (courseItem["realisations"]) {
|
|
2196
|
+
const realisations = JSON.parse(JSON.stringify(courseItem["realisations"]));
|
|
2113
2197
|
for (const realisationProperty in realisations) {
|
|
2114
2198
|
const realizationItem = realisations[realisationProperty];
|
|
2115
|
-
const courseRealisationName = realizationItem[
|
|
2116
|
-
const courseRealisationFullName = courseRealisationName +
|
|
2117
|
-
const courseStudyFormat = realizationItem[
|
|
2118
|
-
const courseCancelled = realizationItem[
|
|
2119
|
-
const courseStartDate = realizationItem[
|
|
2120
|
-
const courseEndDate = realizationItem[
|
|
2121
|
-
const formattedTimeRange = realizationItem[
|
|
2122
|
-
const courseEnrollmentLink = realizationItem[
|
|
2123
|
-
const courseTeachingLanguage = realizationItem[
|
|
2124
|
-
const courseOrganisation = realizationItem[
|
|
2199
|
+
const courseRealisationName = realizationItem["name"];
|
|
2200
|
+
const courseRealisationFullName = courseRealisationName + ", " + courseCredits + " " + this.creditsLabel;
|
|
2201
|
+
const courseStudyFormat = realizationItem["studyFormat"];
|
|
2202
|
+
const courseCancelled = realizationItem["cancelled"];
|
|
2203
|
+
const courseStartDate = realizationItem["startDate"];
|
|
2204
|
+
const courseEndDate = realizationItem["endDate"];
|
|
2205
|
+
const formattedTimeRange = realizationItem["formattedTimeRange"];
|
|
2206
|
+
const courseEnrollmentLink = realizationItem["enrolmentLink"];
|
|
2207
|
+
const courseTeachingLanguage = realizationItem["teachingLanguage"];
|
|
2208
|
+
const courseOrganisation = realizationItem["organisation"];
|
|
2125
2209
|
let courseTags = [];
|
|
2126
|
-
if (realizationItem[
|
|
2127
|
-
let tags = JSON.parse(JSON.stringify(realizationItem[
|
|
2210
|
+
if (realizationItem["tags"]) {
|
|
2211
|
+
let tags = JSON.parse(JSON.stringify(realizationItem["tags"]));
|
|
2128
2212
|
for (let z in tags) {
|
|
2129
2213
|
let tagItem = { name: tags[z] };
|
|
2130
2214
|
courseTags.push(tagItem);
|
|
2131
2215
|
}
|
|
2132
2216
|
}
|
|
2133
2217
|
const courseTagsJSON = JSON.stringify(courseTags);
|
|
2134
|
-
const contentListItemClassAttributes = [
|
|
2218
|
+
const contentListItemClassAttributes = ["item", this.variant].join(" ");
|
|
2135
2219
|
courseRealisations.push(index.h("hy-content-list-item", { id: realisationProperty, class: contentListItemClassAttributes, variant: this.variant, "state-variant": this.courseStateVariant, "course-code": courseCode, "course-name": courseRealisationFullName, "is-cancelled": courseCancelled, "cancelled-label": this.cancelledLabel, "course-credits": courseCredits, "course-tags": courseTagsJSON, "course-start-date": courseStartDate, "course-end-date": courseEndDate, "formatted-time-range": formattedTimeRange, "course-study-format": courseStudyFormat, "course-organisation": courseOrganisation, "course-enrollment-link": courseEnrollmentLink, "course-teaching-language": courseTeachingLanguage, "course-link-label": this.linkLabel, "data-location": courseEnrollmentLink, onClick: (e) => this.handleCardClick(e, realisationProperty) }));
|
|
2136
2220
|
}
|
|
2137
2221
|
}
|
|
@@ -2141,18 +2225,18 @@ const HyContentList = class {
|
|
|
2141
2225
|
return courseRealisations;
|
|
2142
2226
|
}
|
|
2143
2227
|
render() {
|
|
2144
|
-
const classAttributes = [this.variant,
|
|
2145
|
-
const classAlertAttributes = [
|
|
2228
|
+
const classAttributes = [this.variant, "hy-content-list"].join(" ");
|
|
2229
|
+
const classAlertAttributes = ["hy-content-list--alert", `hy-content-list--alert--${this.headerstyle}`].join(" ");
|
|
2146
2230
|
const classAlertLabelAttributes = [
|
|
2147
|
-
|
|
2231
|
+
"hy-content-list--alert-label",
|
|
2148
2232
|
`hy-content-list--alert-label--${this.headerstyle}`,
|
|
2149
|
-
].join(
|
|
2233
|
+
].join(" ");
|
|
2150
2234
|
this.courseRealisations = this.renderItems();
|
|
2151
2235
|
if (this.courseRealisations && this.courseRealisations.length > 0) {
|
|
2152
2236
|
return (index.h(index.Host, null, index.h("div", { class: classAttributes }, this.courseRealisations)));
|
|
2153
2237
|
}
|
|
2154
2238
|
else {
|
|
2155
|
-
return (index.h(index.Host, null, index.h("div", { class: classAttributes }, index.h("div", { class: "hy-content-list--no-result" }, index.h("span", { class: classAlertAttributes }, index.h("hy-icon", { icon:
|
|
2239
|
+
return (index.h(index.Host, null, index.h("div", { class: classAttributes }, index.h("div", { class: "hy-content-list--no-result" }, index.h("span", { class: classAlertAttributes }, index.h("hy-icon", { icon: "hy-icon-info", size: 16 })), index.h("span", { class: classAlertLabelAttributes }, this.noResultLabel)))));
|
|
2156
2240
|
}
|
|
2157
2241
|
}
|
|
2158
2242
|
get el() { return index.getElement(this); }
|
|
@@ -2165,7 +2249,7 @@ HyContentList.style = hyContentListCss;
|
|
|
2165
2249
|
const hyContentListItemCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}hy-content-list-item{background:radial-gradient(circle, #f8f8f8 0%, #f5f5f5 100%);cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:16px;position:relative}@media (min-width: 30rem){hy-content-list-item{margin-bottom:24px}}hy-content-list-item[variant=row],hy-content-list-item.row{max-width:100%;padding:21px 0 60px 12px;width:100%}@media (min-width: 30rem){hy-content-list-item[variant=row],hy-content-list-item.row{padding:21px 0 12px 24px}}@media (min-width: 60rem){hy-content-list-item[variant=row],hy-content-list-item.row{margin-bottom:16px}}hy-content-list-item.grid{max-width:100%;padding:21px 0 60px 12px;width:100%}@media (min-width: 30rem){hy-content-list-item.grid{margin-right:var(--gutter-medium);max-width:calc(((100% - var(--gutter-medium) * 11) / 12) * 6 + var(--gutter-medium) * 5);padding:21px 0 60px 12px;width:calc(((100% - var(--gutter-medium) * 11) / 12) * 6 + var(--gutter-medium) * 5)}}@media (min-width: 60rem){hy-content-list-item.grid{margin-bottom:27px;margin-right:var(--gutter-wide);max-width:calc(((100% - var(--gutter-wide) * 11) / 12) * 4 + var(--gutter-wide) * 3);width:calc(((100% - var(--gutter-wide) * 11) / 12) * 4 + var(--gutter-wide) * 3)}}@media (min-width: 75.0625rem){hy-content-list-item.grid{margin-bottom:32px;margin-right:var(--gutter-extrawide);max-width:calc(((100% - var(--gutter-extrawide) * 11) / 12) * 4 + var(--gutter-extrawide) * 3);width:calc(((100% - var(--gutter-extrawide) * 11) / 12) * 4 + var(--gutter-extrawide) * 3)}}@media (min-width: 30rem){hy-content-list-item.grid:nth-of-type(2n+0){margin-right:0}}@media (min-width: 60rem){hy-content-list-item.grid:nth-of-type(2n+0){margin-right:var(--gutter-wide)}}@media (min-width: 75.0625rem){hy-content-list-item.grid:nth-of-type(2n+0){margin-right:var(--gutter-extrawide)}}@media (min-width: 60rem){hy-content-list-item.grid:nth-of-type(3n+0){margin-right:0}}.hy-content-list-item{font-family:var(--main-font-family);position:relative;width:100%}.hy-content-list-item a{text-decoration:none}.hy-content-list-item--container{cursor:pointer}.hy-content-list-item--item-name{color:var(--link-blue);font-size:1.25rem;line-height:24px;font-weight:700;letter-spacing:-0.6px;margin-bottom:16px;word-break:break-word}.hy-content-list-item--item-name--past-courses{color:var(--grayscale-dark)}.hy-content-list-item--metadata{font-size:0.875rem;line-height:16px;font-weight:600;color:var(--grayscale-black);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;letter-spacing:-0.44px;line-height:16px;margin-bottom:19px;padding-bottom:0}.hy-content-list-item--metadata--item{padding-bottom:6px}@media (min-width: 30rem){.hy-content-list-item--metadata{padding-bottom:1rem}}@media (min-width: 75.0625rem){.hy-content-list-item--metadata{padding-bottom:0}}.hy-content-list-item--metadata--item:after{content:\"|\";padding:0 8px}.hy-content-list-item--metadata--item--last:after{content:\" \"}.hy-content-list-item .cancelled span{font-size:0.75rem;line-height:12px;font-weight:700;background-color:var(--additional-red-light);color:var(--grayscale-white);letter-spacing:-0.5px;padding:6px 8px;text-transform:uppercase}.hy-content-list-item .cancelled--past-courses span{background-color:var(--grayscale-dark)}.hy-content-list-item .cancelled:not(.mobile){display:none}.hy-content-list-item .cancelled.mobile{bottom:-50px;display:block;margin:0;padding-bottom:12px;position:absolute}@media (min-width: 30rem){.hy-content-list-item .cancelled{margin-right:8px}.hy-content-list-item .cancelled.mobile{display:none}.hy-content-list-item .cancelled:not(.mobile){display:block}}.hy-content-list-item--link{position:absolute;right:-6px}.hy-content-list-item--link a{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;text-decoration:none}.hy-content-list-item--link a .label{font-size:1rem;line-height:16px;font-weight:700;color:var(--link-blue);letter-spacing:-0.5px;line-height:16px;margin-right:8px;text-align:right}.hy-content-list-item--link a .icon-wrapper{background-color:var(--brand-main-light);z-index:10}.hy-content-list-item--link a .icon-wrapper .icon{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);position:relative;overflow:hidden}.hy-content-list-item--link a .icon-wrapper .icon svg{background-color:transparent;-webkit-box-shadow:0 2px 8px 0 rgba(0, 0, 0, 0.1);box-shadow:0 2px 8px 0 rgba(0, 0, 0, 0.1);fill:var(--grayscale-white);padding:10.29px}.hy-content-list-item.row .hy-content-list-item--link{bottom:-60px;padding-bottom:12px}@media (min-width: 30rem){.hy-content-list-item.row .hy-content-list-item--link{bottom:0;padding-bottom:0}}.hy-content-list-item.row .hy-content-list-item--tags{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap}@media (min-width: 60rem){.hy-content-list-item.row .hy-content-list-item--tags{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;padding-right:200px}}.hy-content-list-item.grid .hy-content-list-item--link{bottom:-60px;padding-bottom:12px}.hy-content-list-item.grid .hy-content-list-item--tags{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap}";
|
|
2166
2250
|
|
|
2167
2251
|
let keys$3 = {
|
|
2168
|
-
enter:
|
|
2252
|
+
enter: "Enter",
|
|
2169
2253
|
};
|
|
2170
2254
|
const HyContentLstItem = class {
|
|
2171
2255
|
constructor(hostRef) {
|
|
@@ -2175,7 +2259,7 @@ const HyContentLstItem = class {
|
|
|
2175
2259
|
this.courseCode = undefined;
|
|
2176
2260
|
this.courseName = undefined;
|
|
2177
2261
|
this.isCancelled = undefined;
|
|
2178
|
-
this.cancelledLabel =
|
|
2262
|
+
this.cancelledLabel = "Cancelled";
|
|
2179
2263
|
this.courseCredits = undefined;
|
|
2180
2264
|
this.courseTags = undefined;
|
|
2181
2265
|
this.courseStartDate = undefined;
|
|
@@ -2194,18 +2278,18 @@ const HyContentLstItem = class {
|
|
|
2194
2278
|
const key = event.code;
|
|
2195
2279
|
if (key == keys$3.enter) {
|
|
2196
2280
|
let card = this.el;
|
|
2197
|
-
window.open(card.dataset.location,
|
|
2281
|
+
window.open(card.dataset.location, "_blank", "noopener");
|
|
2198
2282
|
}
|
|
2199
2283
|
}
|
|
2200
2284
|
render() {
|
|
2201
|
-
const classAttributes = [this.variant,
|
|
2202
|
-
const target =
|
|
2203
|
-
const ariaLabel =
|
|
2285
|
+
const classAttributes = [this.variant, "hy-content-list-item"].join(" ");
|
|
2286
|
+
const target = "_blank";
|
|
2287
|
+
const ariaLabel = "Link points outside the current website.";
|
|
2204
2288
|
const classItemName = [
|
|
2205
|
-
|
|
2289
|
+
"hy-content-list-item--item-name",
|
|
2206
2290
|
`hy-content-list-item--item-name--${this.stateVariant}`,
|
|
2207
|
-
].join(
|
|
2208
|
-
const classItemCancelled = [
|
|
2291
|
+
].join(" ");
|
|
2292
|
+
const classItemCancelled = ["cancelled", `cancelled--${this.stateVariant}`].join(" ");
|
|
2209
2293
|
return [
|
|
2210
2294
|
index.h("div", { class: classAttributes, tabindex: "0" }, index.h("div", { class: classItemName }, this.courseName), index.h("div", { class: "hy-content-list-item--metadata" }, this.isCancelled && (index.h("div", { class: classItemCancelled }, index.h("span", null, this.cancelledLabel))), index.h("div", { class: "hy-content-list-item--metadata--item hy-content-list-item--metadata--item--first" }, index.h("span", null, this.formattedTimeRange)), this.courseOrganisation
|
|
2211
2295
|
? [
|
|
@@ -2216,7 +2300,7 @@ const HyContentLstItem = class {
|
|
|
2216
2300
|
index.h("div", { class: "hy-content-list-item--metadata--item hy-content-list-item--metadata--item--last" }, index.h("span", null, this.courseStudyFormat)),
|
|
2217
2301
|
]), this._courseTags && this._courseTags.length > 0 && (index.h("div", { class: "hy-content-list-item--tags" }, this._courseTags.map((x) => {
|
|
2218
2302
|
return index.h("hy-tag", null, x.name);
|
|
2219
|
-
}))), this.isCancelled && (index.h("div", { class: "cancelled mobile" }, index.h("span", null, this.cancelledLabel))), index.h("div", { class: "hy-content-list-item--link" }, index.h("a", { href: this.courseEnrollmentLink, target: target, "aria-label": ariaLabel, class: "hy-content-list-item--link--link", tabindex: "-1" }, index.h("span", { class: "label" }, this.courseLinkLabel), index.h("span", { class: "icon-wrapper" }, index.h("div", { class: "icon" }, index.h("hy-icon", { icon:
|
|
2303
|
+
}))), this.isCancelled && (index.h("div", { class: "cancelled mobile" }, index.h("span", null, this.cancelledLabel))), index.h("div", { class: "hy-content-list-item--link" }, index.h("a", { href: this.courseEnrollmentLink, target: target, "aria-label": ariaLabel, class: "hy-content-list-item--link--link", tabindex: "-1" }, index.h("span", { class: "label" }, this.courseLinkLabel), index.h("span", { class: "icon-wrapper" }, index.h("div", { class: "icon" }, index.h("hy-icon", { icon: "hy-icon-arrow-to-right", size: 40 })))))),
|
|
2220
2304
|
];
|
|
2221
2305
|
}
|
|
2222
2306
|
get el() { return index.getElement(this); }
|
|
@@ -2234,7 +2318,7 @@ const HyCrisisBanner = class {
|
|
|
2234
2318
|
this.linkUrl = undefined;
|
|
2235
2319
|
}
|
|
2236
2320
|
render() {
|
|
2237
|
-
return (index.h(index.Host, { class: "hy-crisis-banner", role: "alert" }, index.h("div", { class: "hy-crisis-banner__container" }, index.h("div", { class: "hy-crisis-banner__indicator" }, index.h("hy-icon", { class:
|
|
2321
|
+
return (index.h(index.Host, { class: "hy-crisis-banner", role: "alert" }, index.h("div", { class: "hy-crisis-banner__container" }, index.h("div", { class: "hy-crisis-banner__indicator" }, index.h("hy-icon", { class: "hy-crisis-banner__indicator-icon", icon: "hy-icon-alert" })), index.h("div", { class: "hy-crisis-banner__content-wrapper" }, index.h("div", { class: "hy-crisis-banner__content" }, index.h("h3", { class: "hy-crisis-banner__title" }, this.bannerTitle), this.bannerDescription && (index.h("div", { class: "hy-crisis-banner__description", innerHTML: this.bannerDescription }))), this.linkUrl && (index.h("a", { class: "hy-crisis-banner__link", href: this.linkUrl }, this.linkTitle, index.h("hy-icon", { class: "hy-crisis-banner__link-icon", icon: "hy-icon-arrow-to-right" })))))));
|
|
2238
2322
|
}
|
|
2239
2323
|
};
|
|
2240
2324
|
HyCrisisBanner.style = hyCrisisBannerCss;
|
|
@@ -2245,20 +2329,20 @@ const CtaButton = class {
|
|
|
2245
2329
|
constructor(hostRef) {
|
|
2246
2330
|
index.registerInstance(this, hostRef);
|
|
2247
2331
|
this.variant = utils.CtaLinkButtonVariants.onBlueBkgd;
|
|
2248
|
-
this.linkContent =
|
|
2332
|
+
this.linkContent = "";
|
|
2249
2333
|
this.typeButton = false;
|
|
2250
2334
|
this.url = undefined;
|
|
2251
2335
|
this.scLabel = undefined;
|
|
2252
2336
|
this.isExternal = false;
|
|
2253
|
-
this.headerstyle =
|
|
2337
|
+
this.headerstyle = "common";
|
|
2254
2338
|
}
|
|
2255
2339
|
render() {
|
|
2256
|
-
const classAttributes = [
|
|
2257
|
-
const containerClassAttributes = [
|
|
2258
|
-
const textClassAttributes = [
|
|
2259
|
-
const iconClassAttributes = [
|
|
2260
|
-
const target = this.isExternal ?
|
|
2261
|
-
return (index.h("span", { class: containerClassAttributes }, !this.typeButton ? (index.h("a", { "aria-label": this.scLabel, class: classAttributes, href: this.url, target: target }, index.h("span", { class: textClassAttributes }, this.linkContent.length === 0 ? index.h("slot", null) : this.linkContent), index.h("span", { class: iconClassAttributes }, index.h("hy-icon", { icon:
|
|
2340
|
+
const classAttributes = ["hy-cta-button", this.variant, this.headerstyle].join(" ");
|
|
2341
|
+
const containerClassAttributes = ["hy-cta-button-container"].join(" ");
|
|
2342
|
+
const textClassAttributes = ["text"].join(" ");
|
|
2343
|
+
const iconClassAttributes = ["link-icon"].join(" ");
|
|
2344
|
+
const target = this.isExternal ? "_blank" : "_self";
|
|
2345
|
+
return (index.h("span", { class: containerClassAttributes }, !this.typeButton ? (index.h("a", { "aria-label": this.scLabel, class: classAttributes, href: this.url, target: target }, index.h("span", { class: textClassAttributes }, this.linkContent.length === 0 ? index.h("slot", null) : this.linkContent), index.h("span", { class: iconClassAttributes }, index.h("hy-icon", { icon: "hy-icon-arrow-right", size: 48 })))) : (index.h("button", { "aria-label": this.scLabel, class: classAttributes }, index.h("span", { class: textClassAttributes }, this.linkContent.length === 0 ? index.h("slot", null) : this.linkContent), index.h("span", { class: iconClassAttributes }, index.h("hy-icon", { icon: "hy-icon-arrow-right", size: 48 }))))));
|
|
2262
2346
|
}
|
|
2263
2347
|
get el() { return index.getElement(this); }
|
|
2264
2348
|
};
|
|
@@ -2270,20 +2354,32 @@ const CtaLink = class {
|
|
|
2270
2354
|
constructor(hostRef) {
|
|
2271
2355
|
index.registerInstance(this, hostRef);
|
|
2272
2356
|
this.variant = utils.CtaLinkVariants.default;
|
|
2273
|
-
this.linkContent =
|
|
2357
|
+
this.linkContent = "";
|
|
2274
2358
|
this.url = undefined;
|
|
2275
2359
|
this.scLabel = undefined;
|
|
2276
2360
|
this.isExternal = false;
|
|
2277
2361
|
}
|
|
2278
2362
|
render() {
|
|
2279
|
-
const iconClassAttributes = [
|
|
2280
|
-
const target = this.isExternal ?
|
|
2281
|
-
return (index.h("a", { "aria-label": this.scLabel, href: this.url, target: target, class: `hy-cta-link hy-cta-link--${this.variant}` }, this.variant == utils.CtaLinkVariants.linkList && (index.h("span", { class: iconClassAttributes }, index.h("hy-icon", { icon:
|
|
2363
|
+
const iconClassAttributes = ["hy-cta-link__icon", this.isExternal && "hy-cta-link__icon--external"].join(" ");
|
|
2364
|
+
const target = this.isExternal ? "_blank" : "_self";
|
|
2365
|
+
return (index.h("a", { "aria-label": this.scLabel, href: this.url, target: target, class: `hy-cta-link hy-cta-link--${this.variant}` }, this.variant == utils.CtaLinkVariants.linkList && (index.h("span", { class: iconClassAttributes }, index.h("hy-icon", { icon: "hy-icon-arrow-to-right", size: 24 }))), index.h("span", null, this.linkContent), this.variant == utils.CtaLinkVariants.default && (index.h("span", { class: iconClassAttributes }, index.h("hy-icon", { icon: "hy-icon-arrow-to-right", size: 24 })))));
|
|
2282
2366
|
}
|
|
2283
2367
|
get el() { return index.getElement(this); }
|
|
2284
2368
|
};
|
|
2285
2369
|
CtaLink.style = ctaLinkCss;
|
|
2286
2370
|
|
|
2371
|
+
const docsContainerCss = "div.hy-docs-container{display:block;margin:2rem 0}";
|
|
2372
|
+
|
|
2373
|
+
const DocsContainer = class {
|
|
2374
|
+
constructor(hostRef) {
|
|
2375
|
+
index.registerInstance(this, hostRef);
|
|
2376
|
+
}
|
|
2377
|
+
render() {
|
|
2378
|
+
return (index.h("div", { class: "hy-docs-container" }, index.h("slot", null)));
|
|
2379
|
+
}
|
|
2380
|
+
};
|
|
2381
|
+
DocsContainer.style = docsContainerCss;
|
|
2382
|
+
|
|
2287
2383
|
const hyDropdownCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}.hy-dropdown{display:inline-block;min-width:100%;position:relative}@media (min-width: 30rem){.hy-dropdown{min-width:48.3%}}@media (min-width: 75.0625rem){.hy-dropdown{min-width:23.03%}}.hy-dropdown label.hy-dropdown__button-label{font-size:1rem;line-height:20px;font-weight:700;display:block;font-family:var(--main-font-family);letter-spacing:-0.32px;margin-bottom:8px}.hy-dropdown--single .hy-dropdown__panel{width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:330px;min-width:100%}.hy-dropdown__toggle{font-size:0.875rem;line-height:24px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--grayscale-white);border-radius:0;border:1px solid var(--grayscale-medium-dark);color:var(--link-blue);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:var(--main-font-family);font-weight:600;min-height:40px;height:auto;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;letter-spacing:normal;padding:0 0 0 16px;text-align:left;max-width:280px;width:100%}@media (min-width: 30rem){.hy-dropdown__toggle{font-size:1rem;line-height:24px;min-height:44px}}@media (min-width: 75.0625rem){.hy-dropdown__toggle{min-height:48px}}.hy-dropdown__toggle:hover{border-color:var(--brand-main-light);cursor:pointer}.hy-dropdown__toggle:focus{border-color:var(--brand-main-light);border-style:solid inset solid solid;border-width:2px;outline:0;text-indent:-1px}.hy-dropdown__toggle svg{pointer-events:none}.hy-dropdown__toggle.is-open .hy-dropdown__icon{background-color:var(--brand-main-light);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.hy-dropdown__toggle.is-open .hy-dropdown__icon::before{display:none}.hy-dropdown__toggle.is-open .hy-dropdown__icon svg{fill:var(--grayscale-white)}.hy-dropdown__icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;height:40px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0 0 0 16px;position:relative;width:40px}.hy-dropdown__icon::before{border-left:0.5px solid var(--grayscale-medium-dark);content:\"\";display:inline-block;height:65%;left:0;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}@media (min-width: 30rem){.hy-dropdown__icon{height:44px;width:44px}}@media (min-width: 75.0625rem){.hy-dropdown__icon{height:48px;width:48px}}.hy-dropdown__icon svg{fill:var(--link-blue)}@media (min-width: 30rem){.hy-dropdown__icon svg{height:16px;width:16px}}.hy-dropdown__panel{background-color:var(--grayscale-white);-webkit-box-shadow:0 10px 20px 0 rgba(0, 49, 70, 0.2);box-shadow:0 10px 20px 0 rgba(0, 49, 70, 0.2);list-style:none;margin:0;padding:6px;position:absolute;width:100%;z-index:11}.hy-dropdown__panel.is-hidden{display:none;visibility:hidden}.hy-dropdown__panel-item{position:relative}.hy-dropdown__panel-item:not(.is-last){margin-bottom:6px}.hy-dropdown__label{font-size:0.875rem;line-height:24px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--grayscale-white);border-radius:0;border:1px solid var(--grayscale-medium-dark);color:var(--link-blue);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:var(--main-font-family);font-weight:600;min-height:40px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;letter-spacing:normal;padding:0 16px;text-align:left;width:100%}@media (min-width: 30rem){.hy-dropdown__label{font-size:1rem;line-height:24px}}.hy-dropdown__label-icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:none !important;-ms-flex-negative:0;flex-shrink:0;height:40px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;visibility:hidden;width:40px}.hy-dropdown__checkbox{height:100%;margin:0;opacity:0;position:absolute;width:100%;z-index:10}.hy-dropdown__checkbox:checked+label{border-color:var(--grayscale-black);border-style:solid inset solid solid;border-width:2px;color:var(--grayscale-black);outline:0;text-indent:-1px}.hy-dropdown__checkbox:checked+label .hy-dropdown__label-icon{display:-webkit-inline-box !important;display:-ms-inline-flexbox !important;display:inline-flex !important;visibility:visible}.hy-dropdown__checkbox:hover{cursor:pointer}.hy-dropdown__checkbox:hover+label{border-color:var(--brand-main-light)}.hy-dropdown__checkbox:focus+label{border-color:var(--brand-main-light);border-style:solid inset solid solid;border-width:2px;outline:0;text-indent:-1px}";
|
|
2288
2384
|
|
|
2289
2385
|
const HyDropdown = class {
|
|
@@ -2291,9 +2387,9 @@ const HyDropdown = class {
|
|
|
2291
2387
|
index.registerInstance(this, hostRef);
|
|
2292
2388
|
this.single = false;
|
|
2293
2389
|
this.dropdownLabel = null;
|
|
2294
|
-
this.dropdownId =
|
|
2390
|
+
this.dropdownId = "dropdownToggle";
|
|
2295
2391
|
this.dropdownOptions = undefined;
|
|
2296
|
-
this.defaultLabel =
|
|
2392
|
+
this.defaultLabel = "All";
|
|
2297
2393
|
this.defaultOption = null;
|
|
2298
2394
|
this.isPanelOpen = false;
|
|
2299
2395
|
this.isChecked = false;
|
|
@@ -2303,7 +2399,7 @@ const HyDropdown = class {
|
|
|
2303
2399
|
this._dropdownOptions = await globalScript.jsonParserWorker(this.dropdownOptions);
|
|
2304
2400
|
}
|
|
2305
2401
|
componentWillUpdate() {
|
|
2306
|
-
const items = this.el.querySelectorAll(
|
|
2402
|
+
const items = this.el.querySelectorAll(".hy-dropdown__checkbox");
|
|
2307
2403
|
if (items) {
|
|
2308
2404
|
if ([...items].some((item) => item.checked == true)) {
|
|
2309
2405
|
this.isChecked = true;
|
|
@@ -2317,7 +2413,7 @@ const HyDropdown = class {
|
|
|
2317
2413
|
if (!this.single)
|
|
2318
2414
|
return;
|
|
2319
2415
|
if (newValue !== oldValue) {
|
|
2320
|
-
const dropdownPanelCheckboxElements = this.el.getElementsByClassName(
|
|
2416
|
+
const dropdownPanelCheckboxElements = this.el.getElementsByClassName("hy-dropdown__checkbox");
|
|
2321
2417
|
Array.from(dropdownPanelCheckboxElements).filter((item) => {
|
|
2322
2418
|
if (item.id == newValue) {
|
|
2323
2419
|
item.checked = true;
|
|
@@ -2333,9 +2429,9 @@ const HyDropdown = class {
|
|
|
2333
2429
|
}
|
|
2334
2430
|
handleClick(event) {
|
|
2335
2431
|
const dropdownToggleButtonElement = this.el.querySelector(`#${this.dropdownId}`);
|
|
2336
|
-
const dropdownPanelElement = this.el.querySelector(
|
|
2337
|
-
const dropdownPanelCheckboxElements = this.el.querySelectorAll(
|
|
2338
|
-
const dropdownToggleButtonIconElement = this.el.querySelector(
|
|
2432
|
+
const dropdownPanelElement = this.el.querySelector(".hy-dropdown__panel");
|
|
2433
|
+
const dropdownPanelCheckboxElements = this.el.querySelectorAll(".hy-dropdown__checkbox");
|
|
2434
|
+
const dropdownToggleButtonIconElement = this.el.querySelector(".hy-dropdown__icon");
|
|
2339
2435
|
const { target } = event;
|
|
2340
2436
|
const allowedElements = [
|
|
2341
2437
|
dropdownToggleButtonElement,
|
|
@@ -2351,7 +2447,7 @@ const HyDropdown = class {
|
|
|
2351
2447
|
handleSingleClick(event) {
|
|
2352
2448
|
if (!this.single || !this.isPanelOpen)
|
|
2353
2449
|
return;
|
|
2354
|
-
const dropdownPanelCheckboxElements = this.el.getElementsByClassName(
|
|
2450
|
+
const dropdownPanelCheckboxElements = this.el.getElementsByClassName("hy-dropdown__checkbox");
|
|
2355
2451
|
const allowedElements = [...dropdownPanelCheckboxElements];
|
|
2356
2452
|
const { target } = event;
|
|
2357
2453
|
if (!allowedElements.includes(target))
|
|
@@ -2375,12 +2471,12 @@ const HyDropdown = class {
|
|
|
2375
2471
|
}
|
|
2376
2472
|
render() {
|
|
2377
2473
|
const { label: currentLabel, id: currentId, value: currentValue } = this.currentSingle[0];
|
|
2378
|
-
const classAttributes = [
|
|
2474
|
+
const classAttributes = ["hy-dropdown", this.single ? "hy-dropdown--single" : ""].join(" ");
|
|
2379
2475
|
if (this.single) {
|
|
2380
|
-
return (index.h(index.Host, { class: classAttributes }, this.dropdownLabel && (index.h("label", { class: "hy-dropdown__button-label", htmlFor: this.dropdownId }, this.dropdownLabel)), index.h("button", { id: this.dropdownId, class: `hy-dropdown__toggle ${this.isPanelOpen ?
|
|
2476
|
+
return (index.h(index.Host, { class: classAttributes }, this.dropdownLabel && (index.h("label", { class: "hy-dropdown__button-label", htmlFor: this.dropdownId }, this.dropdownLabel)), index.h("button", { id: this.dropdownId, class: `hy-dropdown__toggle ${this.isPanelOpen ? "is-open" : ""}`, "aria-expanded": `${this.isPanelOpen || false}`, "aria-haspopup": "true", "aria-controls": "dropdownPanel", onClick: () => this.handlePanelToggle(), "aria-label": `${!this.isPanelOpen ? "Open" : "Close"} dropdown`, "data-current-id": currentId, "data-current-value": currentValue, value: currentId, type: "button" }, currentLabel, index.h("hy-icon", { class: "hy-dropdown__icon", icon: "hy-icon-caret-down", size: 14, "aria-hidden": "true" })), index.h("hy-dropdown-panel", { "checkbox-checked": this.isChecked ? "true" : "false", "is-hidden": !this.isPanelOpen }, this._dropdownOptions.map(({ id, label, value }, index$1) => (index.h("hy-dropdown-panel-item", { "dropdown-item-id": id, "dropdown-item-label": label, "dropdown-item-value": value, "is-last": this._dropdownOptions.length - 1 === index$1 }))))));
|
|
2381
2477
|
}
|
|
2382
2478
|
else {
|
|
2383
|
-
return (index.h(index.Host, { class: classAttributes }, index.h("button", { id: this.dropdownId, class: `hy-dropdown__toggle ${this.isPanelOpen ?
|
|
2479
|
+
return (index.h(index.Host, { class: classAttributes }, index.h("button", { id: this.dropdownId, class: `hy-dropdown__toggle ${this.isPanelOpen ? "is-open" : ""}`, "aria-expanded": `${this.isPanelOpen || false}`, "aria-haspopup": "true", "aria-controls": "dropdownPanel", onClick: () => this.handlePanelToggle(), "aria-label": `${!this.isPanelOpen ? "Open" : "Close"} dropdown`, type: "button" }, this.dropdownLabel && this.dropdownLabel, index.h("hy-icon", { class: "hy-dropdown__icon", icon: "hy-icon-caret-down", size: 14, "aria-hidden": "true" })), index.h("hy-dropdown-panel", { "checkbox-checked": this.isChecked ? "true" : "false", "is-hidden": !this.isPanelOpen }, this._dropdownOptions.map(({ id, label, value }, index$1) => (index.h("hy-dropdown-panel-item", { "dropdown-item-id": id, "dropdown-item-label": label, "dropdown-item-value": value, "is-last": this._dropdownOptions.length - 1 === index$1 }))))));
|
|
2384
2480
|
}
|
|
2385
2481
|
}
|
|
2386
2482
|
get el() { return index.getElement(this); }
|
|
@@ -2396,7 +2492,7 @@ const HyDropdownPanel = class {
|
|
|
2396
2492
|
this.isHidden = undefined;
|
|
2397
2493
|
}
|
|
2398
2494
|
render() {
|
|
2399
|
-
return (index.h("ul", { id: "dropdownPanel", class: `hy-dropdown__panel ${this.isHidden ?
|
|
2495
|
+
return (index.h("ul", { id: "dropdownPanel", class: `hy-dropdown__panel ${this.isHidden ? "is-hidden" : ""}`, "aria-hidden": `${this.isHidden || false}`, role: "region", "aria-labelledby": "dropdownToggle" }, index.h("slot", null)));
|
|
2400
2496
|
}
|
|
2401
2497
|
};
|
|
2402
2498
|
|
|
@@ -2409,7 +2505,7 @@ const HyDropdownPanelItem = class {
|
|
|
2409
2505
|
this.dropdownItemLabel = undefined;
|
|
2410
2506
|
}
|
|
2411
2507
|
render() {
|
|
2412
|
-
return (index.h("li", { class: `hy-dropdown__panel-item ${this.isLast ?
|
|
2508
|
+
return (index.h("li", { class: `hy-dropdown__panel-item ${this.isLast ? "is-last" : ""}` }, index.h("input", { type: "checkbox", class: "hy-dropdown__checkbox", id: `${this.dropdownItemId}`, value: `${this.dropdownItemValue}` }), index.h("label", { class: "hy-dropdown__label", htmlFor: `${this.dropdownItemId}` }, this.dropdownItemLabel, index.h("hy-icon", { class: "hy-dropdown__label-icon", icon: "hy-icon-done", size: 14, "aria-hidden": "true" }))));
|
|
2413
2509
|
}
|
|
2414
2510
|
};
|
|
2415
2511
|
|
|
@@ -2422,7 +2518,7 @@ const HyFilterGroup = class {
|
|
|
2422
2518
|
this.filterGroupFilters = undefined;
|
|
2423
2519
|
}
|
|
2424
2520
|
arrayDataWatcher(newValue) {
|
|
2425
|
-
if (typeof newValue ===
|
|
2521
|
+
if (typeof newValue === "string") {
|
|
2426
2522
|
this._filterGroupFilters = JSON.parse(newValue);
|
|
2427
2523
|
}
|
|
2428
2524
|
else {
|
|
@@ -2452,7 +2548,7 @@ const HyFilterGroupItem = class {
|
|
|
2452
2548
|
this.filterGroupItemLabel = undefined;
|
|
2453
2549
|
}
|
|
2454
2550
|
render() {
|
|
2455
|
-
return (index.h("li", { class: "hy-filter-group__filter" }, index.h("button", { type: "button", class: "hy-filter-group__button", "aria-label": `Deselect ${this.filterGroupItemLabel}` }, this.filterGroupItemLabel, index.h("hy-icon", { class: "hy-filter-group__button-icon", icon:
|
|
2551
|
+
return (index.h("li", { class: "hy-filter-group__filter" }, index.h("button", { type: "button", class: "hy-filter-group__button", "aria-label": `Deselect ${this.filterGroupItemLabel}` }, this.filterGroupItemLabel, index.h("hy-icon", { class: "hy-filter-group__button-icon", icon: "hy-icon-remove", size: 10, "aria-hidden": "true", fill: utils.ColorVariant.grey_dark })), index.h("slot", null)));
|
|
2456
2552
|
}
|
|
2457
2553
|
};
|
|
2458
2554
|
|
|
@@ -2466,14 +2562,14 @@ const HyFilterListType = class {
|
|
|
2466
2562
|
}
|
|
2467
2563
|
render() {
|
|
2468
2564
|
return (index.h("div", { class: "hy-filter__list-type" }, index.h("span", null, this.filterLabel), index.h("button", { type: "button", class: {
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
}, "aria-label": `${this.filterLabel}--list` }, index.h("hy-icon", { class: "hy-filter-group__button-icon", icon:
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
}, "aria-label": `${this.filterLabel}--grid` }, index.h("hy-icon", { class: "hy-filter-group__button-icon", icon:
|
|
2565
|
+
"hy-filter-item": true,
|
|
2566
|
+
"hy-filter__list-type__list": true,
|
|
2567
|
+
"is-active": this.filterValue == utils.ListStyleVariants.list,
|
|
2568
|
+
}, "aria-label": `${this.filterLabel}--list` }, index.h("hy-icon", { class: "hy-filter-group__button-icon", icon: "hy-icon-list-style-list", size: 16, "aria-hidden": "true" })), index.h("button", { type: "button", class: {
|
|
2569
|
+
"hy-filter-item": true,
|
|
2570
|
+
"hy-filter__list-type__grid": true,
|
|
2571
|
+
"is-active": this.filterValue == utils.ListStyleVariants.grid,
|
|
2572
|
+
}, "aria-label": `${this.filterLabel}--grid` }, index.h("hy-icon", { class: "hy-filter-group__button-icon", icon: "hy-icon-list-style-grid", size: 16, "aria-hidden": "true" }))));
|
|
2477
2573
|
}
|
|
2478
2574
|
};
|
|
2479
2575
|
HyFilterListType.style = hyFilterListTypeCss;
|
|
@@ -2487,9 +2583,9 @@ const HyFilterVisibilityTool = class {
|
|
|
2487
2583
|
}
|
|
2488
2584
|
render() {
|
|
2489
2585
|
switch (this.filterVisibilityToolType) {
|
|
2490
|
-
case
|
|
2586
|
+
case "toggle":
|
|
2491
2587
|
return (index.h(index.Host, null, index.h("hy-filter-visibility-tool-toggle", null)));
|
|
2492
|
-
case
|
|
2588
|
+
case "reset":
|
|
2493
2589
|
return (index.h(index.Host, null, index.h("hy-filter-visibility-tool-reset", null)));
|
|
2494
2590
|
}
|
|
2495
2591
|
}
|
|
@@ -2501,7 +2597,7 @@ const HyFilterVisibilityToolReset = class {
|
|
|
2501
2597
|
index.registerInstance(this, hostRef);
|
|
2502
2598
|
}
|
|
2503
2599
|
render() {
|
|
2504
|
-
return (index.h("button", { class: "hy-filter-visibility-tool hy-filter-visibility-tool--reset", type: "button" }, index.h("hy-icon", { class: "hy-filter-visibility-tool__icon", icon:
|
|
2600
|
+
return (index.h("button", { class: "hy-filter-visibility-tool hy-filter-visibility-tool--reset", type: "button" }, index.h("hy-icon", { class: "hy-filter-visibility-tool__icon", icon: "hy-icon-remove", size: 14, "aria-hidden": "true" }), "Reset filters"));
|
|
2505
2601
|
}
|
|
2506
2602
|
};
|
|
2507
2603
|
|
|
@@ -2510,7 +2606,7 @@ const HyFilterVisibilityToolToggle = class {
|
|
|
2510
2606
|
index.registerInstance(this, hostRef);
|
|
2511
2607
|
}
|
|
2512
2608
|
render() {
|
|
2513
|
-
return (index.h(index.Host, null, index.h("button", { class: "hy-filter-visibility-tool hy-filter-visibility-tool--show-more", type: "button" }, index.h("hy-icon", { class: "hy-filter-visibility-tool__icon", icon:
|
|
2609
|
+
return (index.h(index.Host, null, index.h("button", { class: "hy-filter-visibility-tool hy-filter-visibility-tool--show-more", type: "button" }, index.h("hy-icon", { class: "hy-filter-visibility-tool__icon", icon: "hy-icon-plus", size: 12, "aria-hidden": "true" }), "Show more filters"), index.h("button", { class: "hy-filter-visibility-tool hy-filter-visibility-tool--show-less", type: "button" }, index.h("hy-icon", { class: "hy-filter-visibility-tool__icon", icon: "hy-icon-minus", size: 12, "aria-hidden": "true" }), "Show less filters")));
|
|
2514
2610
|
}
|
|
2515
2611
|
};
|
|
2516
2612
|
|
|
@@ -2521,8 +2617,8 @@ const HyFooter = class {
|
|
|
2521
2617
|
index.registerInstance(this, hostRef);
|
|
2522
2618
|
}
|
|
2523
2619
|
render() {
|
|
2524
|
-
const classAttributes = [
|
|
2525
|
-
return (index.h("footer", { class: classAttributes.join(
|
|
2620
|
+
const classAttributes = ["hy-footer"];
|
|
2621
|
+
return (index.h("footer", { class: classAttributes.join(" ") }, index.h("slot", null)));
|
|
2526
2622
|
}
|
|
2527
2623
|
};
|
|
2528
2624
|
HyFooter.style = hyFooterCss;
|
|
@@ -2540,15 +2636,15 @@ const HyFooterAction = class {
|
|
|
2540
2636
|
clearTimeout(scrollTimeout$1);
|
|
2541
2637
|
}
|
|
2542
2638
|
scrollTop() {
|
|
2543
|
-
const hyLogo = document.querySelector(
|
|
2544
|
-
window.scrollTo({ top: 0, behavior:
|
|
2639
|
+
const hyLogo = document.querySelector(".hy-site-logo a");
|
|
2640
|
+
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
2545
2641
|
scrollTimeout$1 = window.setTimeout(() => {
|
|
2546
2642
|
hyLogo.focus();
|
|
2547
2643
|
}, 500);
|
|
2548
2644
|
}
|
|
2549
2645
|
render() {
|
|
2550
|
-
const classAttributes = [
|
|
2551
|
-
return (index.h(index.Host, { class: classAttributes }, index.h("span", { class:
|
|
2646
|
+
const classAttributes = ["hy-footer-action"].join(" ");
|
|
2647
|
+
return (index.h(index.Host, { class: classAttributes }, index.h("span", { class: "hy-footer-action__updated-text" }, this.updatedText), this.upButtonLabel && (index.h("span", { class: "hy-footer-action__scroll-up" }, index.h("label", { id: "up-label", htmlFor: "scroll-up" }, this.upButtonLabel), index.h("button", { name: "scroll-up", "aria-labelledby": "up-label", onClick: () => this.scrollTop(), class: "hy-footer-action__up-button", type: "button" }, index.h("hy-icon", { class: "hy-footer-action__up-icon", icon: "hy-icon-arrow-up", size: 26 }))))));
|
|
2552
2648
|
}
|
|
2553
2649
|
};
|
|
2554
2650
|
HyFooterAction.style = hyFooterActionCss;
|
|
@@ -2573,7 +2669,7 @@ const HyFooterBase = class {
|
|
|
2573
2669
|
}
|
|
2574
2670
|
render() {
|
|
2575
2671
|
const logoColor = utils.ColorVariant.white;
|
|
2576
|
-
const classAttributes = [
|
|
2672
|
+
const classAttributes = ["hy-footer-base--content-container"].join(" ");
|
|
2577
2673
|
const links = this._dataFooterBaseLinks;
|
|
2578
2674
|
const some = this._dataFooterBaseSome;
|
|
2579
2675
|
return (index.h(index.Host, { class: classAttributes }, index.h("div", { class: "hy-footer-base" }, index.h("div", { class: "hy-footer-base__left" }, index.h("div", { class: "hy-footer-base__logo" }, index.h("hy-site-logo", { type: utils.FooterVariant.footer, size: 56, color: logoColor, url: this.logoUrl, label: this.logoLabel })), index.h("div", { class: "hy-footer-base__content" }, index.h("slot", { name: "content" })), index.h("div", { class: "hy-footer-base__some" }, index.h("span", { class: "hy-footer-base__some__label" }, this.someLabel), index.h("div", { class: "hy-footer-base__some__items" }, some &&
|
|
@@ -3594,37 +3690,37 @@ const HyFooterInfo = class {
|
|
|
3594
3690
|
const luomusFooterContentItems = this._dataLuomusFooterContent;
|
|
3595
3691
|
const variant = this.isGroup ? utils.FooterLinkVariants.group : utils.FooterLinkVariants.campus;
|
|
3596
3692
|
const section = this.isGroup ? utils.HeadingSectionVariants.groupFooterInfo : utils.HeadingSectionVariants.defaultFooterInfo;
|
|
3597
|
-
const footerLinkItemClass = this.isGroup ?
|
|
3693
|
+
const footerLinkItemClass = this.isGroup ? "group" : "campus";
|
|
3598
3694
|
const scLabel = this.linkScLabel && this.linkScLabel.length > 0 ? this.linkScLabel : this.linkText;
|
|
3599
3695
|
const logoColor = utils.ColorVariant.white;
|
|
3600
3696
|
const linksColor = this.isLuomusGroup ? utils.FooterLinkItemColor.white : utils.FooterLinkItemColor.black;
|
|
3601
3697
|
return (index.h(index.Host, { class: {
|
|
3602
|
-
|
|
3698
|
+
"hy-footer-info": true,
|
|
3603
3699
|
luomus: this.isLuomusGroup,
|
|
3604
3700
|
} }, index.h("div", { class: {
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
} }, !this.isLuomusGroup && (index.h("hy-heading", { heading: utils.HeadingVarians.h2, section: section }, this.textTitle)), this.isLuomusGroup && (index.h("div", { class: "hy-footer-info__logo" }, index.h("hy-site-logo", { type: utils.FooterVariant.footer, isGroup: this.isGroup, size: 56, color: logoColor, url: this.logoUrl, label: this.logoLabel }))), this.isLuomusGroup && (index.h("div", { class:
|
|
3608
|
-
|
|
3609
|
-
|
|
3701
|
+
"hy-footer-info__content": true,
|
|
3702
|
+
"is-group": this.isGroup,
|
|
3703
|
+
} }, !this.isLuomusGroup && (index.h("hy-heading", { heading: utils.HeadingVarians.h2, section: section }, this.textTitle)), this.isLuomusGroup && (index.h("div", { class: "hy-footer-info__logo" }, index.h("hy-site-logo", { type: utils.FooterVariant.footer, isGroup: this.isGroup, size: 56, color: logoColor, url: this.logoUrl, label: this.logoLabel }))), this.isLuomusGroup && (index.h("div", { class: "hy-footer-info__branding" }, index.h("a", { href: this.groupLogoUrl }, index.h("img", { src: this.groupLogoUrl, alt: "Luomus logo" })))), !this.isLuomusGroup && (index.h("div", { class: {
|
|
3704
|
+
"hy-footer-info__ingress": true,
|
|
3705
|
+
"is-group": this.isGroup,
|
|
3610
3706
|
}, innerHTML: this.textDescription })), !this.isLuomusGroup && this.linkUrl && (index.h("hy-cta-button", { "link-content": this.linkText, "sc-label": scLabel, "is-external": this.linkIsExternal, url: this.linkUrl, variant: utils.CtaLinkButtonVariants.onWhiteBkgd })), this.isLuomusGroup &&
|
|
3611
3707
|
luomusFooterContentItems &&
|
|
3612
3708
|
luomusFooterContentItems.map((item) => {
|
|
3613
3709
|
return (index.h("div", { class: "luomus-footer-content" }, index.h("a", { href: item.url, class: "luomus-footer-content__link" }, item.heading), item.content && index.h("div", { class: "luomus-footer-content__description", innerHTML: item.content })));
|
|
3614
3710
|
})), this.isMobile && this.isGroup === false ? (index.h("div", { class: {
|
|
3615
|
-
|
|
3616
|
-
|
|
3711
|
+
"hy-footer-info__links": true,
|
|
3712
|
+
"is-group": this.isGroup,
|
|
3617
3713
|
luomus: this.isLuomusGroup,
|
|
3618
|
-
} }, index.h("hy-accordion-container", { accordionid:
|
|
3714
|
+
} }, index.h("hy-accordion-container", { accordionid: "test" }, links &&
|
|
3619
3715
|
links.map((link) => {
|
|
3620
3716
|
return (index.h("hy-accordion-item", { accordiontitle: link.label }, index.h("hy-footer-link-item", { class: footerLinkItemClass, variant: variant, color: linksColor, label: link.label, url: link.url, "main-link": link.mainlink, items: link.items, isMobile: this.isMobile })));
|
|
3621
3717
|
})))) : (index.h("div", { class: {
|
|
3622
|
-
|
|
3623
|
-
|
|
3718
|
+
"hy-footer-info__links": true,
|
|
3719
|
+
"is-group": this.isGroup,
|
|
3624
3720
|
luomus: this.isLuomusGroup,
|
|
3625
3721
|
} }, links &&
|
|
3626
3722
|
links.map((link) => {
|
|
3627
|
-
const external_link = link.isExternal ===
|
|
3723
|
+
const external_link = link.isExternal === "external";
|
|
3628
3724
|
return (index.h("hy-footer-link-item", { "is-luomus-group": this.isLuomusGroup, class: footerLinkItemClass, variant: variant, color: linksColor, label: link.label, url: link.url, "is-external": external_link, "main-link": link.mainlink, items: link.items, isMobile: this.isMobile }));
|
|
3629
3725
|
})))));
|
|
3630
3726
|
}
|
|
@@ -3649,43 +3745,43 @@ const HyFooterLinkItem = class {
|
|
|
3649
3745
|
}
|
|
3650
3746
|
render() {
|
|
3651
3747
|
const containerClassAttributes = [
|
|
3652
|
-
|
|
3748
|
+
"hy-footer-link-item--container",
|
|
3653
3749
|
`hy-footer-link-item__${this.variant}`,
|
|
3654
|
-
this.items &&
|
|
3655
|
-
].join(
|
|
3750
|
+
this.items && "hy-footer-link-item__has-children",
|
|
3751
|
+
].join(" ");
|
|
3656
3752
|
const classAttributes = [
|
|
3657
|
-
|
|
3658
|
-
this.mainLink &&
|
|
3753
|
+
"hy-footer-link-item",
|
|
3754
|
+
this.mainLink && "hy-footer-link-item__main",
|
|
3659
3755
|
`hy-footer-link-item__color-${this.color}`,
|
|
3660
|
-
].join(
|
|
3756
|
+
].join(" ");
|
|
3661
3757
|
const headingClassAttributes = [
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
this.mainLink &&
|
|
3758
|
+
"hy-footer-link-item",
|
|
3759
|
+
"hy-footer-link-item__heading",
|
|
3760
|
+
this.mainLink && "hy-footer-link-item__main",
|
|
3665
3761
|
`hy-footer-link-item__heading__color-${this.color}`,
|
|
3666
|
-
].join(
|
|
3762
|
+
].join(" ");
|
|
3667
3763
|
const linkClassAttributes = [
|
|
3668
|
-
|
|
3764
|
+
"hy-footer-link-item",
|
|
3669
3765
|
`hy-footer-link-item__color-${this.color}`,
|
|
3670
|
-
this.isLuomusGroup ? `luomus` :
|
|
3671
|
-
].join(
|
|
3766
|
+
this.isLuomusGroup ? `luomus` : "",
|
|
3767
|
+
].join(" ");
|
|
3672
3768
|
if (this.items) {
|
|
3673
3769
|
if (this.isMobile && this.variant !== utils.FooterLinkVariants.group) {
|
|
3674
3770
|
return (index.h("div", { class: containerClassAttributes }, this.items.map((item) => {
|
|
3675
|
-
const target = item.isExternal ===
|
|
3676
|
-
return (index.h("a", { class: linkClassAttributes, href: item.url, target: target, style: { color: this.color } }, item.label, index.h("hy-icon", { class:
|
|
3771
|
+
const target = item.isExternal === "external" ? "_blank" : "_self";
|
|
3772
|
+
return (index.h("a", { class: linkClassAttributes, href: item.url, target: target, style: { color: this.color } }, item.label, index.h("hy-icon", { class: "hy-footer-link-item__icon", icon: "hy-icon-arrow-right", size: 16 })));
|
|
3677
3773
|
})));
|
|
3678
3774
|
}
|
|
3679
3775
|
else {
|
|
3680
|
-
return (index.h("div", { class: containerClassAttributes }, index.h("hy-heading", { class: headingClassAttributes, heading: utils.HeadingVarians.h3 }, this.url.length > 0 && (index.h("a", { class:
|
|
3681
|
-
const target = item.isExternal ===
|
|
3682
|
-
return (index.h("a", { class: linkClassAttributes, href: item.url, target: target, style: { color: this.color } }, item.label, index.h("hy-icon", { class:
|
|
3776
|
+
return (index.h("div", { class: containerClassAttributes }, index.h("hy-heading", { class: headingClassAttributes, heading: utils.HeadingVarians.h3 }, this.url.length > 0 && (index.h("a", { class: "hy-footer-link-item__link", href: this.url, style: { color: this.color } }, this.label)), this.url.length == 0 && index.h("div", { class: "hy-footer-link-item__link" }, this.label)), this.items.map((item) => {
|
|
3777
|
+
const target = item.isExternal === "external" ? "_blank" : "_self";
|
|
3778
|
+
return (index.h("a", { class: linkClassAttributes, href: item.url, target: target, style: { color: this.color } }, item.label, index.h("hy-icon", { class: "hy-footer-link-item__icon", icon: "hy-icon-arrow-right", size: 16 })));
|
|
3683
3779
|
})));
|
|
3684
3780
|
}
|
|
3685
3781
|
}
|
|
3686
3782
|
else {
|
|
3687
|
-
const target = this.isExternal ?
|
|
3688
|
-
return (index.h("a", { class: classAttributes, href: this.url, style: { color: this.color }, target: target }, this.label, index.h("hy-icon", { class:
|
|
3783
|
+
const target = this.isExternal ? "_blank" : "_self";
|
|
3784
|
+
return (index.h("a", { class: classAttributes, href: this.url, style: { color: this.color }, target: target }, this.label, index.h("hy-icon", { class: "hy-footer-link-item__icon", icon: "hy-icon-arrow-right", size: 16 })));
|
|
3689
3785
|
}
|
|
3690
3786
|
}
|
|
3691
3787
|
};
|
|
@@ -3705,9 +3801,9 @@ const HyGeneralList = class {
|
|
|
3705
3801
|
}
|
|
3706
3802
|
async componentWillLoad() {
|
|
3707
3803
|
this._dataItems = await globalScript.jsonParserWorker(this.dataItems);
|
|
3708
|
-
const hyMainDiv = this.el.closest(
|
|
3804
|
+
const hyMainDiv = this.el.closest(".hy-main");
|
|
3709
3805
|
if (hyMainDiv) {
|
|
3710
|
-
if (hyMainDiv.classList.contains(
|
|
3806
|
+
if (hyMainDiv.classList.contains("with-sidebar")) {
|
|
3711
3807
|
this.hasSidebar = true;
|
|
3712
3808
|
}
|
|
3713
3809
|
}
|
|
@@ -3719,16 +3815,16 @@ const HyGeneralList = class {
|
|
|
3719
3815
|
}
|
|
3720
3816
|
render() {
|
|
3721
3817
|
const classAttributes = [
|
|
3722
|
-
|
|
3723
|
-
this.hasSidebar ?
|
|
3818
|
+
"hy-general-list",
|
|
3819
|
+
this.hasSidebar ? "hy-general-list--with-sidebar" : "",
|
|
3724
3820
|
`hy-general-list--style-${this.type}`,
|
|
3725
|
-
].join(
|
|
3821
|
+
].join(" ");
|
|
3726
3822
|
let listData = this._dataItems;
|
|
3727
|
-
if (typeof this._dataItems ===
|
|
3823
|
+
if (typeof this._dataItems === "object") {
|
|
3728
3824
|
listData = Object.values(this._dataItems);
|
|
3729
3825
|
}
|
|
3730
3826
|
function truncate(str, n) {
|
|
3731
|
-
return str.length > n ? str.substr(0, n - 1) +
|
|
3827
|
+
return str.length > n ? str.substr(0, n - 1) + "..." : str;
|
|
3732
3828
|
}
|
|
3733
3829
|
return (index.h(index.Host, null, index.h("ul", { class: classAttributes }, listData &&
|
|
3734
3830
|
listData.map((item) => (index.h("li", null, index.h("hy-general-list-item", { "has-sidebar": this.hasSidebar, target: this.blank, "data-location": item.url, description: this.truncateDescription ? truncate(item.description, this.truncateLimit) : item.description, id: item.id, imageAlt: item.imageAlt, imageUrl: item.imageUrl, "item-title": item.title, label: item.label, "sub-label": item.subLabel, tag: item.tag, date: item.date, type: item.type, url: item.url, "list-style": this.type }))))), index.h("hy-box", { mb: "1.75, 1.75, 2, 2.5" })));
|
|
@@ -3747,41 +3843,90 @@ const HyGeneralListItem = class {
|
|
|
3747
3843
|
index.registerInstance(this, hostRef);
|
|
3748
3844
|
this.hasSidebar = true;
|
|
3749
3845
|
this.description = undefined;
|
|
3750
|
-
this.imageAlt =
|
|
3846
|
+
this.imageAlt = "";
|
|
3751
3847
|
this.imageUrl = null;
|
|
3752
3848
|
this.disableLazy = false;
|
|
3753
3849
|
this.itemTitle = undefined;
|
|
3754
3850
|
this.label = undefined;
|
|
3755
|
-
this.subLabel =
|
|
3756
|
-
this.date =
|
|
3757
|
-
this.tag =
|
|
3851
|
+
this.subLabel = "";
|
|
3852
|
+
this.date = "";
|
|
3853
|
+
this.tag = "";
|
|
3758
3854
|
this.type = undefined;
|
|
3759
3855
|
this.url = undefined;
|
|
3760
3856
|
this.listStyle = undefined;
|
|
3761
3857
|
this.target = true;
|
|
3762
3858
|
}
|
|
3763
3859
|
render() {
|
|
3764
|
-
const classAttributes = [
|
|
3765
|
-
const contentClassAttributes = [
|
|
3766
|
-
const imageClassAttributes = [
|
|
3767
|
-
const sidebarClass = this.hasSidebar ?
|
|
3768
|
-
const titleClassAttributes = [
|
|
3860
|
+
const classAttributes = ["hy-general-list-item", `hy-general-list-item--style-${this.listStyle}`].join(" ");
|
|
3861
|
+
const contentClassAttributes = ["hy-general-list-item__text-container"].join(" ");
|
|
3862
|
+
const imageClassAttributes = ["hy-general-list-item__image-container"].join(" ");
|
|
3863
|
+
const sidebarClass = this.hasSidebar ? "common" : "large";
|
|
3864
|
+
const titleClassAttributes = ["hy-general-list-item__title", `hy-general-list-item__title__${sidebarClass}`].join(" ");
|
|
3769
3865
|
const descriptionClassAttributes = [
|
|
3770
|
-
|
|
3866
|
+
"hy-general-list-item__description",
|
|
3771
3867
|
`hy-general-list-item__description__${sidebarClass}`,
|
|
3772
|
-
].join(
|
|
3868
|
+
].join(" ");
|
|
3773
3869
|
const aspectRatioWidth = 16;
|
|
3774
3870
|
const aspectRatioHeight = 10;
|
|
3775
3871
|
const aspect = (aspectRatioHeight / aspectRatioWidth) * 100;
|
|
3776
3872
|
const aspectRatio = {
|
|
3777
|
-
|
|
3873
|
+
"--aspectRatio": `${aspect}%`,
|
|
3778
3874
|
};
|
|
3779
|
-
return (index.h("article", { class: classAttributes }, index.h("a", { class: "hy-general-list-item__link", href: this.url, target: this.target ?
|
|
3875
|
+
return (index.h("article", { class: classAttributes }, index.h("a", { class: "hy-general-list-item__link", href: this.url, target: this.target ? "_blank" : "_self" }, this.type && (index.h("div", { class: "hy-general-list-item__type" }, index.h("span", { class: "hy-general-list-item__type__major" }, this.label), index.h("span", { class: "hy-general-list-item__type__sub" }, this.subLabel))), this.imageUrl && (index.h("figure", { class: imageClassAttributes, style: aspectRatio }, index.h("img", { loading: this.disableLazy ? "eager" : "lazy", alt: this.imageAlt, class: "hy-general-list-item__image", src: this.imageUrl }))), index.h("div", { class: contentClassAttributes }, (this.tag || this.date) && (index.h("span", { class: "hy-genenral-list-item__meta" }, this.tag, index.h("span", { class: "hy-genenral-list-item__meta__date" }, this.tag && "|", " ", this.date))), index.h("h3", { class: titleClassAttributes }, this.itemTitle), index.h("p", { class: descriptionClassAttributes }, this.description)))));
|
|
3780
3876
|
}
|
|
3781
3877
|
get el() { return index.getElement(this); }
|
|
3782
3878
|
};
|
|
3783
3879
|
HyGeneralListItem.style = hyGeneralListItemCss;
|
|
3784
3880
|
|
|
3881
|
+
const gridContainerCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host{display:block}.hy-grid--container{display:block;width:100%;margin-left:auto;margin-right:auto}@media only screen and (min-width: 30rem){.hy-grid--container{width:100%}}@media only screen and (min-width: 60rem){.hy-grid--container{width:100%;max-width:60rem}}@media only screen and (min-width: 75.0625rem){.hy-grid--container{width:100%;max-width:75rem}}@media only screen and (min-width: 1601px){.hy-grid--container{width:100%;max-width:90rem}}";
|
|
3882
|
+
|
|
3883
|
+
const GridContainer = class {
|
|
3884
|
+
constructor(hostRef) {
|
|
3885
|
+
index.registerInstance(this, hostRef);
|
|
3886
|
+
}
|
|
3887
|
+
render() {
|
|
3888
|
+
const classAttributes = ["hy-grid--container"];
|
|
3889
|
+
return (index.h("div", { class: classAttributes.join(" ") }, index.h("slot", null)));
|
|
3890
|
+
}
|
|
3891
|
+
};
|
|
3892
|
+
GridContainer.style = gridContainerCss;
|
|
3893
|
+
|
|
3894
|
+
const gridItemCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host{display:block}.hy-grid-align__left{text-align:left}.hy-grid-align__right{text-align:right}.hy-grid-align__center{text-align:center;margin-left:auto;margin-right:auto}.hy-grid-justify{text-align:justify}.hy-grid-hidden-sm{display:none}.hy-grid__col-1,.hy-grid__col-2,.hy-grid__col-3,.hy-grid__col-4,.hy-grid__col-5,.hy-grid__col-6,.hy-grid__col-7,.hy-grid__col-8,.hy-grid__col-9,.hy-grid__col-10,.hy-grid__col-11,.hy-grid__col-12{width:98%}.hy-grid__col-1-sm{width:6.3333333333%}.hy-grid__col-2-sm{width:14.6666666667%}.hy-grid__col-3-sm{width:23%}.hy-grid__col-4-sm{width:31.3333333333%}.hy-grid__col-5-sm{width:39.6666666667%}.hy-grid__col-6-sm{width:48%}.hy-grid__col-7-sm{width:56.3333333333%}.hy-grid__col-8-sm{width:64.6666666667%}.hy-grid__col-9-sm{width:73%}.hy-grid__col-10-sm{width:81.3333333333%}.hy-grid__col-11-sm{width:89.6666666667%}.hy-grid__col-12-sm{width:98%}@media only screen and (min-width: 48em){.hy-grid__col-1{width:6.3333333333%}.hy-grid__col-2{width:14.6666666667%}.hy-grid__col-3{width:23%}.hy-grid__col-4{width:31.3333333333%}.hy-grid__col-5{width:39.6666666667%}.hy-grid__col-6{width:48%}.hy-grid__col-7{width:56.3333333333%}.hy-grid__col-8{width:64.6666666667%}.hy-grid__col-9{width:73%}.hy-grid__col-10{width:81.3333333333%}.hy-grid__col-11{width:89.6666666667%}.hy-grid__col-12{width:98%}.hidden-sm{display:block}}@media only screen and (min-width: 60em){.hy-grid__col-1-lg{width:6.3333333333%}.hy-grid__col-2-lg{width:14.6666666667%}.hy-grid__col-3-lg{width:23%}.hy-grid__col-4-lg{width:31.3333333333%}.hy-grid__col-5-lg{width:39.6666666667%}.hy-grid__col-6-lg{width:48%}.hy-grid__col-7-lg{width:56.3333333333%}.hy-grid__col-8-lg{width:64.6666666667%}.hy-grid__col-9-lg{width:73%}.hy-grid__col-10-lg{width:81.3333333333%}.hy-grid__col-11-lg{width:89.6666666667%}.hy-grid__col-12-lg{width:98%}}";
|
|
3895
|
+
|
|
3896
|
+
const GridItem = class {
|
|
3897
|
+
constructor(hostRef) {
|
|
3898
|
+
index.registerInstance(this, hostRef);
|
|
3899
|
+
this.columns = utils.GridColumns.default;
|
|
3900
|
+
this.columnssm = utils.GridColumnsSm.default;
|
|
3901
|
+
this.columnslg = utils.GridColumnsLg.default;
|
|
3902
|
+
this.contentalign = utils.GridAlignVariants.default;
|
|
3903
|
+
}
|
|
3904
|
+
render() {
|
|
3905
|
+
const classAttributes = [
|
|
3906
|
+
"hy-grid-item",
|
|
3907
|
+
`hy-grid__col-${this.columnssm}-sm`,
|
|
3908
|
+
`hy-grid__col-${this.columns}`,
|
|
3909
|
+
`hy-grid__col-${this.columnslg}-lg`,
|
|
3910
|
+
`hy-grid-align__${this.contentalign}`,
|
|
3911
|
+
];
|
|
3912
|
+
return (index.h(index.Host, { class: classAttributes.join(" ") }, index.h("slot", null)));
|
|
3913
|
+
}
|
|
3914
|
+
};
|
|
3915
|
+
GridItem.style = gridItemCss;
|
|
3916
|
+
|
|
3917
|
+
const gridRowCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host{display:block}.hy-grid__row{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;position:relative;width:100%}.hy-grid__row>[class^=hy-grid-item]{float:left;margin:0.5rem 1%;min-height:0.125rem}@media (min-width: 30rem){.hy-grid__row>[class^=hy-grid-item]{margin:1%}}.hy-grid__row::after{content:\"\";display:table;clear:both}";
|
|
3918
|
+
|
|
3919
|
+
const GridRow = class {
|
|
3920
|
+
constructor(hostRef) {
|
|
3921
|
+
index.registerInstance(this, hostRef);
|
|
3922
|
+
}
|
|
3923
|
+
render() {
|
|
3924
|
+
const classAttributes = ["hy-grid__row"];
|
|
3925
|
+
return (index.h(index.Host, { class: classAttributes.join(" ") }, index.h("slot", null)));
|
|
3926
|
+
}
|
|
3927
|
+
};
|
|
3928
|
+
GridRow.style = gridRowCss;
|
|
3929
|
+
|
|
3785
3930
|
const defaultHeadingCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host{display:block}.hy-heading__container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;width:100%}@media (min-width: 30rem){.hy-heading__container{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.hy-heading__container__subsection{padding:2.5rem 0 1.375rem}@media (min-width: 30rem){.hy-heading__container__subsection{padding:4rem 0 2.375rem}}.hy-heading__container h1.hy-heading__default{margin-bottom:12px}@media (min-width: 1601px){.hy-heading__container h1.hy-heading__default{margin-bottom:16px}}@media (min-width: 75.0625rem){.hy-heading__container h1.hy-heading__default__large{margin-bottom:16px}}.hy-heading__container h1.hy-heading__search{margin-bottom:0;padding:16px 0 0}@media (min-width: 30rem){.hy-heading__container h1.hy-heading__search{padding:28px 0 0}}@media (min-width: 60rem){.hy-heading__container h1.hy-heading__search{padding:32px 0 0}}@media (min-width: 75.0625rem){.hy-heading__container h1.hy-heading__search__large{padding:40px 0 0}}.hy-heading__container h2,.hy-heading__container h3,.hy-heading__container h4,.hy-heading__container h5,.hy-heading__container h6{padding:1.5rem 0 1rem}@media (min-width: 30rem){.hy-heading__container h2,.hy-heading__container h3,.hy-heading__container h4,.hy-heading__container h5,.hy-heading__container h6{padding:2rem 0 1rem}}.hy-heading__container.hy-heading__introduction{padding-top:0}.hy-heading__container .hy-heading__courses{padding-top:0}.hy-heading{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;max-width:100%;width:auto}.hy-heading__subsection--divider,.hy-heading__contentsection--divider{-ms-flex-negative:2;flex-shrink:2;overflow:hidden;width:100%}.hy-heading__subsection--divider:after,.hy-heading__contentsection--divider:after{background-color:transparent;border-bottom:6px solid var(--grayscale-dark);content:\" \";display:-webkit-box;display:-ms-flexbox;display:flex;height:2px;width:100%;margin-left:0;margin-bottom:0.5rem;position:relative;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}@media (min-width: 30rem){.hy-heading__subsection--divider:after,.hy-heading__contentsection--divider:after{margin-left:2rem;border-bottom:1px solid var(--grayscale-dark);margin-bottom:1rem}}h2.hy-heading__introduction,h2.hy-heading__landingsection{font-size:1.75rem;line-height:32px;font-weight:700;letter-spacing:-0.7px;text-transform:uppercase}h1.hy-heading__hero{font-size:2rem;line-height:38px;font-weight:700;color:var(--grayscale-black);font-family:var(--main-font-family);letter-spacing:-0.8px;margin-bottom:0}@media (min-width: 1024px){h1.hy-heading__hero{font-size:2.875rem;line-height:54px;letter-spacing:-1.15px}}@media (min-width: 1601px){h1.hy-heading__hero{font-size:3.25rem;line-height:60px;letter-spacing:-1.3px}}@media (min-width: 30rem){.hy-heading__container__common h2.hy-heading__introduction,.hy-heading__container__common h2.hy-heading__landingsection{font-size:2.125rem;line-height:40px;letter-spacing:-0.85px}}@media (min-width: 1601px){.hy-heading__container__common h2.hy-heading__introduction,.hy-heading__container__common h2.hy-heading__landingsection{font-size:2.625rem;line-height:48px;letter-spacing:-1.05px}}.hy-heading__container__common h2.hy-heading__introduction{padding:0 0 12px}@media (min-width: 30rem){.hy-heading__container__common h2.hy-heading__introduction{padding:0 0 1rem}}.hy-heading__container__common h2.hy-heading__landingsection,.hy-heading__container__common h2.hy-heading__contentsection{padding-bottom:24px}@media (min-width: 30rem){.hy-heading__container__common h2.hy-heading__landingsection,.hy-heading__container__common h2.hy-heading__contentsection{padding-bottom:28px}}@media (min-width: 60rem){.hy-heading__container__common h2.hy-heading__landingsection,.hy-heading__container__common h2.hy-heading__contentsection{padding-bottom:32px}}@media (min-width: 75.0625rem){.hy-heading__container__common h2.hy-heading__landingsection,.hy-heading__container__common h2.hy-heading__contentsection{padding-bottom:32px}}@media (min-width: 1601px){.hy-heading__container__common h2.hy-heading__landingsection,.hy-heading__container__common h2.hy-heading__contentsection{padding-bottom:40px}}.hy-heading__container__common h2.hy-heading__group_footer_info{font-size:1.5rem;line-height:28px;font-weight:700;letter-spacing:-0.6px;text-transform:uppercase}@media (min-width: 30rem){.hy-heading__container__common h2.hy-heading__group_footer_info{letter-spacing:-0.8px}}@media (min-width: 1601px){.hy-heading__container__common h2.hy-heading__group_footer_info{font-size:1.625rem;line-height:30px}}.hy-heading__container__common h2.hy-heading__footer_info{font-size:1.75rem;line-height:32px;font-weight:700;letter-spacing:-0.7px;text-transform:uppercase}@media (min-width: 30rem){.hy-heading__container__common h2.hy-heading__footer_info{font-size:2.125rem;line-height:40px;letter-spacing:-0.85px}}@media (min-width: 1601px){.hy-heading__container__common h2.hy-heading__footer_info{font-size:2.625rem;line-height:48px;letter-spacing:-1.05px}}@media (min-width: 30rem){.hy-heading__container__large h2.hy-heading__introduction,.hy-heading__container__large h2.hy-heading__landingsection{font-size:2.125rem;line-height:40px;letter-spacing:-0.85px}}@media (min-width: 75.0625rem){.hy-heading__container__large h2.hy-heading__introduction,.hy-heading__container__large h2.hy-heading__landingsection{font-size:2.625rem;line-height:48px;letter-spacing:-1.05px}}@media (min-width: 75.0625rem){.hy-heading__container__large h2.hy-heading__introduction{padding:0 0 1rem}}@media (min-width: 1601px){.hy-heading__container__large h2.hy-heading__introduction{padding:0 0 20px}}.hy-heading__container__large h2.hy-heading__landingsection,.hy-heading__container__large h2.hy-heading__contentsection{padding-bottom:24px}@media (min-width: 30rem){.hy-heading__container__large h2.hy-heading__landingsection,.hy-heading__container__large h2.hy-heading__contentsection{padding-bottom:28px}}@media (min-width: 60rem){.hy-heading__container__large h2.hy-heading__landingsection,.hy-heading__container__large h2.hy-heading__contentsection{padding-bottom:32px}}@media (min-width: 75.0625rem){.hy-heading__container__large h2.hy-heading__landingsection,.hy-heading__container__large h2.hy-heading__contentsection{padding-bottom:40px}}@media (min-width: 75.0625rem){.hy-heading__container__large h1.hy-heading__landing_minor{font-size:3.25rem;line-height:60px;letter-spacing:-1.3px}}@media (min-width: 75.0625rem){.hy-heading__container__large h1.hy-heading__frontpage,.hy-heading__container__large h1.hy-heading__landing_major{font-size:3.5rem;line-height:64px;letter-spacing:-1.4px}}.hy-heading__container__large h2.hy-heading__group_footer_info{font-size:1.5rem;line-height:28px;font-weight:700;letter-spacing:-0.6px;text-transform:uppercase}@media (min-width: 30rem){.hy-heading__container__large h2.hy-heading__group_footer_info{letter-spacing:-0.8px}}@media (min-width: 75.0625rem){.hy-heading__container__large h2.hy-heading__group_footer_info{font-size:1.625rem;line-height:30px}}.hy-heading__container__large h2.hy-heading__footer_info{font-size:1.75rem;line-height:32px;font-weight:700;letter-spacing:-0.7px;text-transform:uppercase}@media (min-width: 30rem){.hy-heading__container__large h2.hy-heading__footer_info{font-size:2.125rem;line-height:40px;letter-spacing:-0.85px}}@media (min-width: 75.0625rem){.hy-heading__container__large h2.hy-heading__footer_info{font-size:2.625rem;line-height:48px;letter-spacing:-1.05px}}h3.hy-heading__landingsection{font-size:1.625rem;line-height:32px;letter-spacing:-0.8px}@media (min-width: 30rem){h3.hy-heading__landingsection{font-size:2rem;line-height:32px;letter-spacing:-1px}}@media (min-width: 75.0625rem){h3.hy-heading__landingsection{font-size:2.5rem;line-height:48px;letter-spacing:-1.2px}}@media (min-width: 1601px){h3.hy-heading__landingsection{font-size:2.5rem;line-height:48px;letter-spacing:-1.2px}}h1,h2,h3,h4,h5,h6{color:var(--brand-main-nearly-black);font-family:var(--main-font-family);font-weight:700;padding:0;margin:0;width:100%}h1.negative,h2.negative,h3.negative,h4.negative,h5.negative,h6.negative{color:var(--grayscale-white)}h1{font-size:2rem;line-height:38px;letter-spacing:-0.8px;text-transform:uppercase}@media (min-width: 30rem){h1{font-size:2.875rem;line-height:54px;letter-spacing:-1.15px}}@media (min-width: 1601px){h1{font-size:3.25rem;line-height:60px;letter-spacing:-1.3px}}@media (min-width: 75.0625rem){.hy-heading__container__large h1{font-size:3.25rem;line-height:60px;letter-spacing:-1.3px}}h2{font-size:1.625rem;line-height:32px;font-weight:700;letter-spacing:-0.52px}@media (min-width: 30rem){h2{font-size:1.875rem;line-height:36px;letter-spacing:-0.6px}}@media (min-width: 1601px){.hy-heading__container__common h2{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}@media (min-width: 75.0625rem){.hy-heading__container__large h2{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}h3{font-size:1.375rem;line-height:28px;letter-spacing:-0.7px}@media (min-width: 30rem){h3{font-size:1.625rem;line-height:32px;letter-spacing:-0.8px}}h4{font-size:1.125rem;line-height:24px;letter-spacing:-0.56px}@media (min-width: 30rem){h4{font-size:1.375rem;line-height:28px;letter-spacing:-0.69px}}h5{font-size:1rem;line-height:20px;letter-spacing:-0.5px}@media (min-width: 30rem){h5{font-size:1.125rem;line-height:24px;letter-spacing:-0.56px}}h6{font-size:0.875rem;line-height:16px;letter-spacing:-0.44px}@media (min-width: 30rem){h6{font-size:1rem;line-height:20px;letter-spacing:-0.5px}}";
|
|
3786
3931
|
|
|
3787
3932
|
const wideHeadingFwCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host{display:block}.hy-heading__container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;width:100%}@media (min-width: 30rem){.hy-heading__container{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.hy-heading__container__subsection{padding:2.5rem 0 1.375rem}@media (min-width: 30rem){.hy-heading__container__subsection{padding:4rem 0 2.375rem}}.hy-heading__container h1.hy-heading__default{margin-bottom:12px}@media (min-width: 1601px){.hy-heading__container h1.hy-heading__default{margin-bottom:16px}}@media (min-width: 75.0625rem){.hy-heading__container h1.hy-heading__default__large{margin-bottom:16px}}.hy-heading__container h1.hy-heading__search{margin-bottom:0;padding:16px 0 0}@media (min-width: 30rem){.hy-heading__container h1.hy-heading__search{padding:28px 0 0}}@media (min-width: 60rem){.hy-heading__container h1.hy-heading__search{padding:32px 0 0}}@media (min-width: 75.0625rem){.hy-heading__container h1.hy-heading__search__large{padding:40px 0 0}}.hy-heading__container h2,.hy-heading__container h3,.hy-heading__container h4,.hy-heading__container h5,.hy-heading__container h6{padding:1.5rem 0 1rem}@media (min-width: 30rem){.hy-heading__container h2,.hy-heading__container h3,.hy-heading__container h4,.hy-heading__container h5,.hy-heading__container h6{padding:2rem 0 1rem}}.hy-heading__container.hy-heading__introduction{padding-top:0}.hy-heading__container .hy-heading__courses{padding-top:0}.hy-heading{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;max-width:100%;width:auto}.hy-heading__subsection--divider,.hy-heading__contentsection--divider{-ms-flex-negative:2;flex-shrink:2;overflow:hidden;width:100%}.hy-heading__subsection--divider:after,.hy-heading__contentsection--divider:after{background-color:transparent;border-bottom:6px solid var(--grayscale-dark);content:\" \";display:-webkit-box;display:-ms-flexbox;display:flex;height:2px;width:100%;margin-left:0;margin-bottom:0.5rem;position:relative;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}@media (min-width: 30rem){.hy-heading__subsection--divider:after,.hy-heading__contentsection--divider:after{margin-left:2rem;border-bottom:1px solid var(--grayscale-dark);margin-bottom:1rem}}h2.hy-heading__introduction,h2.hy-heading__landingsection{font-size:1.75rem;line-height:32px;font-weight:700;letter-spacing:-0.7px;text-transform:uppercase}h1.hy-heading__hero{font-size:2rem;line-height:38px;font-weight:700;color:var(--grayscale-black);font-family:var(--main-font-family);letter-spacing:-0.8px;margin-bottom:0}@media (min-width: 1024px){h1.hy-heading__hero{font-size:2.875rem;line-height:54px;letter-spacing:-1.15px}}@media (min-width: 1601px){h1.hy-heading__hero{font-size:3.25rem;line-height:60px;letter-spacing:-1.3px}}@media (min-width: 30rem){.hy-heading__container__common h2.hy-heading__introduction,.hy-heading__container__common h2.hy-heading__landingsection{font-size:2.125rem;line-height:40px;letter-spacing:-0.85px}}@media (min-width: 1601px){.hy-heading__container__common h2.hy-heading__introduction,.hy-heading__container__common h2.hy-heading__landingsection{font-size:2.625rem;line-height:48px;letter-spacing:-1.05px}}.hy-heading__container__common h2.hy-heading__introduction{padding:0 0 12px}@media (min-width: 30rem){.hy-heading__container__common h2.hy-heading__introduction{padding:0 0 1rem}}.hy-heading__container__common h2.hy-heading__landingsection,.hy-heading__container__common h2.hy-heading__contentsection{padding-bottom:24px}@media (min-width: 30rem){.hy-heading__container__common h2.hy-heading__landingsection,.hy-heading__container__common h2.hy-heading__contentsection{padding-bottom:28px}}@media (min-width: 60rem){.hy-heading__container__common h2.hy-heading__landingsection,.hy-heading__container__common h2.hy-heading__contentsection{padding-bottom:32px}}@media (min-width: 75.0625rem){.hy-heading__container__common h2.hy-heading__landingsection,.hy-heading__container__common h2.hy-heading__contentsection{padding-bottom:32px}}@media (min-width: 1601px){.hy-heading__container__common h2.hy-heading__landingsection,.hy-heading__container__common h2.hy-heading__contentsection{padding-bottom:40px}}.hy-heading__container__common h2.hy-heading__group_footer_info{font-size:1.5rem;line-height:28px;font-weight:700;letter-spacing:-0.6px;text-transform:uppercase}@media (min-width: 30rem){.hy-heading__container__common h2.hy-heading__group_footer_info{letter-spacing:-0.8px}}@media (min-width: 1601px){.hy-heading__container__common h2.hy-heading__group_footer_info{font-size:1.625rem;line-height:30px}}.hy-heading__container__common h2.hy-heading__footer_info{font-size:1.75rem;line-height:32px;font-weight:700;letter-spacing:-0.7px;text-transform:uppercase}@media (min-width: 30rem){.hy-heading__container__common h2.hy-heading__footer_info{font-size:2.125rem;line-height:40px;letter-spacing:-0.85px}}@media (min-width: 1601px){.hy-heading__container__common h2.hy-heading__footer_info{font-size:2.625rem;line-height:48px;letter-spacing:-1.05px}}@media (min-width: 30rem){.hy-heading__container__large h2.hy-heading__introduction,.hy-heading__container__large h2.hy-heading__landingsection{font-size:2.125rem;line-height:40px;letter-spacing:-0.85px}}@media (min-width: 75.0625rem){.hy-heading__container__large h2.hy-heading__introduction,.hy-heading__container__large h2.hy-heading__landingsection{font-size:2.625rem;line-height:48px;letter-spacing:-1.05px}}@media (min-width: 75.0625rem){.hy-heading__container__large h2.hy-heading__introduction{padding:0 0 1rem}}@media (min-width: 1601px){.hy-heading__container__large h2.hy-heading__introduction{padding:0 0 20px}}.hy-heading__container__large h2.hy-heading__landingsection,.hy-heading__container__large h2.hy-heading__contentsection{padding-bottom:24px}@media (min-width: 30rem){.hy-heading__container__large h2.hy-heading__landingsection,.hy-heading__container__large h2.hy-heading__contentsection{padding-bottom:28px}}@media (min-width: 60rem){.hy-heading__container__large h2.hy-heading__landingsection,.hy-heading__container__large h2.hy-heading__contentsection{padding-bottom:32px}}@media (min-width: 75.0625rem){.hy-heading__container__large h2.hy-heading__landingsection,.hy-heading__container__large h2.hy-heading__contentsection{padding-bottom:40px}}@media (min-width: 75.0625rem){.hy-heading__container__large h1.hy-heading__landing_minor{font-size:3.25rem;line-height:60px;letter-spacing:-1.3px}}@media (min-width: 75.0625rem){.hy-heading__container__large h1.hy-heading__frontpage,.hy-heading__container__large h1.hy-heading__landing_major{font-size:3.5rem;line-height:64px;letter-spacing:-1.4px}}.hy-heading__container__large h2.hy-heading__group_footer_info{font-size:1.5rem;line-height:28px;font-weight:700;letter-spacing:-0.6px;text-transform:uppercase}@media (min-width: 30rem){.hy-heading__container__large h2.hy-heading__group_footer_info{letter-spacing:-0.8px}}@media (min-width: 75.0625rem){.hy-heading__container__large h2.hy-heading__group_footer_info{font-size:1.625rem;line-height:30px}}.hy-heading__container__large h2.hy-heading__footer_info{font-size:1.75rem;line-height:32px;font-weight:700;letter-spacing:-0.7px;text-transform:uppercase}@media (min-width: 30rem){.hy-heading__container__large h2.hy-heading__footer_info{font-size:2.125rem;line-height:40px;letter-spacing:-0.85px}}@media (min-width: 75.0625rem){.hy-heading__container__large h2.hy-heading__footer_info{font-size:2.625rem;line-height:48px;letter-spacing:-1.05px}}h3.hy-heading__landingsection{font-size:1.625rem;line-height:32px;letter-spacing:-0.8px}@media (min-width: 30rem){h3.hy-heading__landingsection{font-size:2rem;line-height:32px;letter-spacing:-1px}}@media (min-width: 75.0625rem){h3.hy-heading__landingsection{font-size:2.5rem;line-height:48px;letter-spacing:-1.2px}}@media (min-width: 1601px){h3.hy-heading__landingsection{font-size:2.5rem;line-height:48px;letter-spacing:-1.2px}}h1,h2,h3,h4,h5,h6{color:var(--brand-main-nearly-black);font-family:var(--main-font-family);font-weight:700;padding:0;margin:0;width:100%}h1.negative,h2.negative,h3.negative,h4.negative,h5.negative,h6.negative{color:var(--grayscale-white)}h1{font-size:2rem;line-height:38px;letter-spacing:-0.8px;text-transform:uppercase}@media (min-width: 30rem){h1{font-size:2.875rem;line-height:54px;letter-spacing:-1.15px}}@media (min-width: 1601px){h1{font-size:3.25rem;line-height:60px;letter-spacing:-1.3px}}@media (min-width: 75.0625rem){.hy-heading__container__large h1{font-size:3.25rem;line-height:60px;letter-spacing:-1.3px}}h2{font-size:1.625rem;line-height:32px;font-weight:700;letter-spacing:-0.52px}@media (min-width: 30rem){h2{font-size:1.875rem;line-height:36px;letter-spacing:-0.6px}}@media (min-width: 1601px){.hy-heading__container__common h2{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}@media (min-width: 75.0625rem){.hy-heading__container__large h2{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}h3{font-size:1.375rem;line-height:28px;letter-spacing:-0.7px}@media (min-width: 30rem){h3{font-size:1.625rem;line-height:32px;letter-spacing:-0.8px}}h4{font-size:1.125rem;line-height:24px;letter-spacing:-0.56px}@media (min-width: 30rem){h4{font-size:1.375rem;line-height:28px;letter-spacing:-0.69px}}h5{font-size:1rem;line-height:20px;letter-spacing:-0.5px}@media (min-width: 30rem){h5{font-size:1.125rem;line-height:24px;letter-spacing:-0.56px}}h6{font-size:0.875rem;line-height:16px;letter-spacing:-0.44px}@media (min-width: 30rem){h6{font-size:1rem;line-height:20px;letter-spacing:-0.5px}}h1{font-size:80px;font-weight:bold;text-transform:uppercase;line-height:1.2}";
|
|
@@ -3793,41 +3938,41 @@ const Heading = class {
|
|
|
3793
3938
|
this.isSearch = false;
|
|
3794
3939
|
this.section = utils.HeadingSectionVariants.default;
|
|
3795
3940
|
this.negative = false;
|
|
3796
|
-
this.headerstyle =
|
|
3941
|
+
this.headerstyle = "common";
|
|
3797
3942
|
this.hyphenatedText = undefined;
|
|
3798
3943
|
this.hasChildren = true;
|
|
3799
3944
|
}
|
|
3800
3945
|
componentDidLoad() {
|
|
3801
|
-
let hyMainDiv = this.el.closest(
|
|
3946
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
3802
3947
|
if (hyMainDiv) {
|
|
3803
|
-
if (!hyMainDiv.classList.contains(
|
|
3804
|
-
this.headerstyle =
|
|
3948
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
3949
|
+
this.headerstyle = "large";
|
|
3805
3950
|
}
|
|
3806
3951
|
}
|
|
3807
|
-
if (this.el.parentElement.classList.contains(
|
|
3952
|
+
if (this.el.parentElement.classList.contains("hy-hero__title-container")) {
|
|
3808
3953
|
this.hasChildren = false;
|
|
3809
3954
|
}
|
|
3810
3955
|
}
|
|
3811
3956
|
render() {
|
|
3812
3957
|
const headingInVariants = this.heading in utils.HeadingVarians;
|
|
3813
3958
|
const classAttributes = [
|
|
3814
|
-
|
|
3815
|
-
this.negative ?
|
|
3816
|
-
this.isSearch ?
|
|
3817
|
-
this.isSearch ? `hy-heading__search__${this.headerstyle}` :
|
|
3959
|
+
"hy-heading",
|
|
3960
|
+
this.negative ? "negative" : "",
|
|
3961
|
+
this.isSearch ? "hy-heading__search" : "",
|
|
3962
|
+
this.isSearch ? `hy-heading__search__${this.headerstyle}` : "",
|
|
3818
3963
|
`hy-heading__${this.section}`,
|
|
3819
3964
|
`hy-heading__${this.headerstyle}`,
|
|
3820
3965
|
`hy-heading__${this.section}__${this.headerstyle}`,
|
|
3821
3966
|
];
|
|
3822
|
-
const sectionClassAttributes = [`hy-heading__${this.section}--divider`].join(
|
|
3967
|
+
const sectionClassAttributes = [`hy-heading__${this.section}--divider`].join(" ");
|
|
3823
3968
|
const containerSectionClass = [
|
|
3824
|
-
|
|
3969
|
+
"hy-heading__container",
|
|
3825
3970
|
`hy-heading__container__${this.section}`,
|
|
3826
3971
|
`hy-heading__container__${this.headerstyle}`,
|
|
3827
|
-
].join(
|
|
3972
|
+
].join(" ");
|
|
3828
3973
|
return (index.h(index.Host, null, headingInVariants ? ([
|
|
3829
|
-
index.h("div", { class: containerSectionClass }, this.hyphenatedText && !this.hasChildren ? (index.h(this.heading, { class: classAttributes.join(
|
|
3830
|
-
]) : (index.h("div", { class: containerSectionClass }, this.hyphenatedText && !this.hasChildren ? (index.h(utils.HeadingVarians.default, { class: classAttributes.join(
|
|
3974
|
+
index.h("div", { class: containerSectionClass }, this.hyphenatedText && !this.hasChildren ? (index.h(this.heading, { class: classAttributes.join(" "), innerHTML: this.hyphenatedText })) : (index.h(this.heading, { class: classAttributes.join(" ") }, index.h("slot", null))), index.h("span", { class: sectionClassAttributes })),
|
|
3975
|
+
]) : (index.h("div", { class: containerSectionClass }, this.hyphenatedText && !this.hasChildren ? (index.h(utils.HeadingVarians.default, { class: classAttributes.join(" ") }, index.h("span", { innerHTML: this.hyphenatedText }))) : (index.h(utils.HeadingVarians.default, { class: classAttributes.join(" ") }, index.h("span", null, index.h("slot", null)))), index.h("span", { class: sectionClassAttributes })))));
|
|
3831
3976
|
}
|
|
3832
3977
|
get el() { return index.getElement(this); }
|
|
3833
3978
|
};
|
|
@@ -3848,7 +3993,7 @@ const HyHero = class {
|
|
|
3848
3993
|
this.colorVariant = utils.HeroColorVariant.blue;
|
|
3849
3994
|
this.sizeVariant = utils.HeroSizeVariant.large;
|
|
3850
3995
|
this.image = undefined;
|
|
3851
|
-
this.imageAltText =
|
|
3996
|
+
this.imageAltText = "";
|
|
3852
3997
|
this.disableLazy = false;
|
|
3853
3998
|
this.hasShortcuts = false;
|
|
3854
3999
|
this.heading = undefined;
|
|
@@ -3863,21 +4008,21 @@ const HyHero = class {
|
|
|
3863
4008
|
this._sourceSet = await globalScript.jsonParserWorker(this.sourceSet);
|
|
3864
4009
|
}
|
|
3865
4010
|
handleHeroImageObjectFitValue(heroSizeVariant, heroElement) {
|
|
3866
|
-
const heroContentContainerElement = heroElement.getElementsByClassName(
|
|
3867
|
-
if (heroSizeVariant ===
|
|
4011
|
+
const heroContentContainerElement = heroElement.getElementsByClassName("hy-hero__content-container")[0];
|
|
4012
|
+
if (heroSizeVariant === "small") {
|
|
3868
4013
|
if (heroContentContainerElement.offsetHeight >= 300) {
|
|
3869
|
-
heroElement.classList.add(
|
|
4014
|
+
heroElement.classList.add("has-cover");
|
|
3870
4015
|
}
|
|
3871
4016
|
else {
|
|
3872
|
-
heroElement.classList.remove(
|
|
4017
|
+
heroElement.classList.remove("has-cover");
|
|
3873
4018
|
}
|
|
3874
4019
|
}
|
|
3875
|
-
if (heroSizeVariant ===
|
|
4020
|
+
if (heroSizeVariant === "large") {
|
|
3876
4021
|
if (heroContentContainerElement.offsetHeight >= 344) {
|
|
3877
|
-
heroElement.classList.add(
|
|
4022
|
+
heroElement.classList.add("has-cover");
|
|
3878
4023
|
}
|
|
3879
4024
|
else {
|
|
3880
|
-
heroElement.classList.remove(
|
|
4025
|
+
heroElement.classList.remove("has-cover");
|
|
3881
4026
|
}
|
|
3882
4027
|
}
|
|
3883
4028
|
}
|
|
@@ -3885,7 +4030,7 @@ const HyHero = class {
|
|
|
3885
4030
|
let variant = utils.CtaLinkButtonVariants.heroWhite;
|
|
3886
4031
|
let colorVariantValue = this.colorVariant;
|
|
3887
4032
|
let heroTypeValue = this.heroType;
|
|
3888
|
-
if (this.heroType ===
|
|
4033
|
+
if (this.heroType === "minor_landing") {
|
|
3889
4034
|
colorVariantValue = utils.HeroColorVariant.white;
|
|
3890
4035
|
heroTypeValue = utils.HeroTypeVariant.landing;
|
|
3891
4036
|
}
|
|
@@ -3895,41 +4040,41 @@ const HyHero = class {
|
|
|
3895
4040
|
if (colorVariantValue === utils.HeroColorVariant.black) {
|
|
3896
4041
|
variant = utils.CtaLinkButtonVariants.heroBlack;
|
|
3897
4042
|
}
|
|
3898
|
-
if (!colorVariantValue || colorVariantValue ===
|
|
4043
|
+
if (!colorVariantValue || colorVariantValue === "fp_white") {
|
|
3899
4044
|
colorVariantValue = utils.HeroColorVariant.white;
|
|
3900
4045
|
}
|
|
3901
4046
|
const hyHeroClasses = [
|
|
3902
|
-
|
|
4047
|
+
"hy-hero",
|
|
3903
4048
|
`hy-hero--${heroTypeValue}`,
|
|
3904
4049
|
`hy-hero--${this.heroGroupType}`,
|
|
3905
4050
|
`hy-hero--${colorVariantValue}`,
|
|
3906
4051
|
`hy-hero--${this.sizeVariant}`,
|
|
3907
4052
|
];
|
|
3908
|
-
const heroTitleClasses = [
|
|
4053
|
+
const heroTitleClasses = ["hy-hero__title", "hy-heading__hero"].join(" ");
|
|
3909
4054
|
// If there is a Shortcuts block after hero, add the class 'shortcuts' to remove underline.
|
|
3910
4055
|
if (this.hasShortcuts) {
|
|
3911
|
-
hyHeroClasses.push(
|
|
4056
|
+
hyHeroClasses.push("has-shortcuts");
|
|
3912
4057
|
}
|
|
3913
4058
|
const aspectRatioWidth = 16;
|
|
3914
4059
|
const aspectRatioHeight = 10;
|
|
3915
4060
|
const aspect = (aspectRatioHeight / aspectRatioWidth) * 100;
|
|
3916
4061
|
const aspectRatio = {
|
|
3917
|
-
|
|
4062
|
+
"--aspectRatio": `${aspect}%`,
|
|
3918
4063
|
};
|
|
3919
4064
|
window.onload = () => {
|
|
3920
|
-
const heroElement = document.getElementsByClassName(
|
|
4065
|
+
const heroElement = document.getElementsByClassName("hy-hero")[0];
|
|
3921
4066
|
this.handleHeroImageObjectFitValue(this.sizeVariant, heroElement);
|
|
3922
|
-
window.addEventListener(
|
|
4067
|
+
window.addEventListener("resize", () => {
|
|
3923
4068
|
clearTimeout(timeout);
|
|
3924
4069
|
timeout = setTimeout(() => this.handleHeroImageObjectFitValue(this.sizeVariant, heroElement), delay);
|
|
3925
4070
|
});
|
|
3926
4071
|
};
|
|
3927
|
-
if (heroTypeValue ===
|
|
3928
|
-
return (index.h(index.Host, null, index.h("div", { class: hyHeroClasses.join(
|
|
3929
|
-
(this._sourceSet ? (index.h("picture", null, this._sourceSet.map((item) => (index.h("source", { srcSet: item.src, media: item.media, type: item.type, sizes: item.sizes ? item.sizes :
|
|
4072
|
+
if (heroTypeValue === "front_page") {
|
|
4073
|
+
return (index.h(index.Host, null, index.h("div", { class: hyHeroClasses.join(" ") }, index.h("div", { class: `hy-hero__container` }, index.h("div", { class: `hy-hero__image-container`, style: aspectRatio }, this.image &&
|
|
4074
|
+
(this._sourceSet ? (index.h("picture", null, this._sourceSet.map((item) => (index.h("source", { srcSet: item.src, media: item.media, type: item.type, sizes: item.sizes ? item.sizes : "" }))), index.h("img", { loading: this.disableLazy ? "eager" : "lazy", alt: this.imageAltText, class: `hy-image__image`, src: this.image }))) : (index.h("img", { loading: this.disableLazy ? "eager" : "lazy", alt: this.imageAltText, class: `hy-image__image`, src: this.image })))), index.h("div", { class: `hy-hero__spacer-box` }), index.h("div", { class: `hy-hero__content-container` }, index.h("div", { class: `hy-hero__content` }, index.h("div", { class: `hy-hero__title-container` }, index.h("h2", { innerHTML: this.heading, class: heroTitleClasses })), this.description && index.h("p", { class: `hy-hero__description` }, this.description), this.url && (index.h("div", { class: `hy-hero__actions` }, index.h("hy-cta-button", { "link-content": this.urlTitle, "sc-label": this.scLabel, url: this.url, "is-external": this.isExternal, variant: variant }))))))), index.h("hy-box", { mb: "2, 2, 1, 1" })));
|
|
3930
4075
|
}
|
|
3931
|
-
return (index.h(index.Host, null, index.h("div", { class: hyHeroClasses.join(
|
|
3932
|
-
(this._sourceSet ? (index.h("picture", null, this._sourceSet.map((item) => (index.h("source", { srcSet: item.src, media: item.media, type: item.type, sizes: item.sizes ? item.sizes :
|
|
4076
|
+
return (index.h(index.Host, null, index.h("div", { class: hyHeroClasses.join(" ") }, index.h("div", { class: `hy-hero__container` }, index.h("div", { class: `hy-hero__image-container`, style: aspectRatio }, this.image &&
|
|
4077
|
+
(this._sourceSet ? (index.h("picture", null, this._sourceSet.map((item) => (index.h("source", { srcSet: item.src, media: item.media, type: item.type, sizes: item.sizes ? item.sizes : "" }))), index.h("img", { loading: this.disableLazy ? "eager" : "lazy", alt: this.imageAltText, class: `hy-image__image`, src: this.image }))) : (index.h("img", { loading: this.disableLazy ? "eager" : "lazy", alt: this.imageAltText, class: `hy-image__image`, src: this.image })))), index.h("div", { class: `hy-hero__content-container` }, index.h("div", { class: `hy-hero__content` }, index.h("div", { class: `hy-hero__title-container` }, index.h("h2", { innerHTML: this.heading, class: heroTitleClasses })), this.description && index.h("p", { class: `hy-hero__description` }, this.description), this.url && (index.h("div", { class: `hy-hero__actions` }, index.h("hy-cta-button", { "link-content": this.urlTitle, "sc-label": this.scLabel, url: this.url, "is-external": this.isExternal, variant: variant }))))))), index.h("hy-box", { mb: "2, 2, 1, 1" })));
|
|
3933
4078
|
}
|
|
3934
4079
|
get el() { return index.getElement(this); }
|
|
3935
4080
|
};
|
|
@@ -4577,11 +4722,11 @@ function SvgYoutube(props) {
|
|
|
4577
4722
|
}
|
|
4578
4723
|
|
|
4579
4724
|
const IconArrowLeft = (props) => {
|
|
4580
|
-
return (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: props.width || 30, height: props.height || 29, viewBox: "0 0 30 29", fill: props.fill ||
|
|
4725
|
+
return (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: props.width || 30, height: props.height || 29, viewBox: "0 0 30 29", fill: props.fill || "black" },
|
|
4581
4726
|
index.h("polygon", { points: "29.207 13.783 14.756 .717 14.055 0 11.402 3.118 10.732 3.835 19.665 11.974 0 11.974 0 17.026 19.756 17.026 11.494 24.447 10.823 25.071 11.402 25.882 13.476 28.189 14.055 29 30 14.594", transform: "rotate(-180 15 14.5)" })));
|
|
4582
4727
|
};
|
|
4583
4728
|
const IconArrowRight = (props) => {
|
|
4584
|
-
return (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: props.width || 30, height: props.height || 29, viewBox: "0 0 30 29", fill: props.fill ||
|
|
4729
|
+
return (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: props.width || 30, height: props.height || 29, viewBox: "0 0 30 29", fill: props.fill || "black" },
|
|
4585
4730
|
index.h("polygon", { points: "29.207 13.783 14.756 .717 14.055 0 11.402 3.118 10.732 3.835 19.665 11.974 0 11.974 0 17.026 19.756 17.026 11.494 24.447 10.823 25.071 11.402 25.882 13.476 28.189 14.055 29 30 14.594" })));
|
|
4586
4731
|
};
|
|
4587
4732
|
const IconArrowToRight = (props) => {
|
|
@@ -4597,145 +4742,145 @@ const iconCss = ":host{display:block}";
|
|
|
4597
4742
|
|
|
4598
4743
|
// TODO: add all icons
|
|
4599
4744
|
const iconNames = {
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4745
|
+
"hy-icon-add-todo": (p) => index.h(SvgAddToTodoList, Object.assign({}, p)),
|
|
4746
|
+
"hy-icon-alert": (p) => index.h(SvgAlert, Object.assign({}, p)),
|
|
4747
|
+
"hy-icon-archive": (p) => index.h(SvgArchive, Object.assign({}, p)),
|
|
4748
|
+
"hy-icon-arrow-down": (p) => index.h(SvgArrowDown$1, Object.assign({}, p)),
|
|
4749
|
+
"hy-icon-arrow-left": (p) => index.h(IconArrowLeft, Object.assign({}, p)),
|
|
4750
|
+
"hy-icon-arrow-right": (p) => index.h(IconArrowRight, Object.assign({}, p)),
|
|
4751
|
+
"hy-icon-arrow-to-right": (p) => index.h(IconArrowToRight, Object.assign({}, p)),
|
|
4752
|
+
"hy-icon-arrow-up": (p) => index.h(SvgArrowUp, Object.assign({}, p)),
|
|
4753
|
+
"hy-icon-avatar-group": (p) => index.h(SvgAvatarGroup, Object.assign({}, p)),
|
|
4754
|
+
"hy-icon-avatar": (p) => index.h(SvgAvatar, Object.assign({}, p)),
|
|
4755
|
+
"hy-icon-bachelor": (p) => index.h(SvgBachelor, Object.assign({}, p)),
|
|
4756
|
+
"hy-icon-bullet-list": (p) => index.h(SvgBulletList, Object.assign({}, p)),
|
|
4757
|
+
"hy-icon-camera": (p) => index.h(SvgCamera, Object.assign({}, p)),
|
|
4758
|
+
"hy-icon-caret-down": (p) => index.h(SvgCaretDown, Object.assign({}, p)),
|
|
4759
|
+
"hy-icon-caret-left": (p) => index.h(SvgCaretLeft, Object.assign({}, p)),
|
|
4760
|
+
"hy-icon-caret-right": (p) => index.h(SvgCaretRight, Object.assign({}, p)),
|
|
4761
|
+
"hy-icon-caret-up": (p) => index.h(SvgCaretUp, Object.assign({}, p)),
|
|
4762
|
+
"hy-icon-chat": (p) => index.h(SvgChat, Object.assign({}, p)),
|
|
4763
|
+
"hy-icon-code-fork": (p) => index.h(SvgCodeFork, Object.assign({}, p)),
|
|
4764
|
+
"hy-icon-cogs": (p) => index.h(SvgCogs, Object.assign({}, p)),
|
|
4765
|
+
"hy-icon-content-link": (p) => index.h(SvgContentlink, Object.assign({}, p)),
|
|
4766
|
+
"hy-icon-custom-link": (p) => index.h(SvgCustomlink, Object.assign({}, p)),
|
|
4767
|
+
"hy-icon-date": (p) => index.h(SvgDate, Object.assign({}, p)),
|
|
4768
|
+
"hy-icon-discover": (p) => index.h(SvgDiscover, Object.assign({}, p)),
|
|
4769
|
+
"hy-icon-done": (p) => index.h(SvgDone, Object.assign({}, p)),
|
|
4770
|
+
"hy-icon-dot": (p) => index.h(SvgDot, Object.assign({}, p)),
|
|
4771
|
+
"hy-icon-dot-arrow-right": (p) => index.h(SvgArrowDown, Object.assign({}, p)),
|
|
4772
|
+
"hy-icon-download": (p) => index.h(SvgDownload, Object.assign({}, p)),
|
|
4773
|
+
"hy-icon-drag": (p) => index.h(SvgDrag, Object.assign({}, p)),
|
|
4774
|
+
"hy-icon-drag-button": (p) => index.h(SvgDragbutton, Object.assign({}, p)),
|
|
4775
|
+
"hy-icon-drop-down": (p) => index.h(SvgDropDown, Object.assign({}, p)),
|
|
4776
|
+
"hy-icon-edit": (p) => index.h(SvgEdit, Object.assign({}, p)),
|
|
4777
|
+
"hy-icon-edit-event": (p) => index.h(SvgEditEvent, Object.assign({}, p)),
|
|
4778
|
+
"hy-icon-embed": (p) => index.h(SvgEmbed, Object.assign({}, p)),
|
|
4779
|
+
"hy-icon-euro": (p) => index.h(SvgEuro, Object.assign({}, p)),
|
|
4780
|
+
"hy-icon-events": (p) => index.h(SvgEvents, Object.assign({}, p)),
|
|
4781
|
+
"hy-icon-external-link": (p) => index.h(SvgExternalLink, Object.assign({}, p)),
|
|
4782
|
+
"hy-icon-eyelash": (p) => index.h(SvgEyeSlash, Object.assign({}, p)),
|
|
4783
|
+
"hy-icon-facebook": (p) => index.h(SvgFacebook, Object.assign({}, p)),
|
|
4784
|
+
"hy-icon-favorites": (p) => index.h(SvgFavorites, Object.assign({}, p)),
|
|
4785
|
+
"hy-icon-feed": (p) => index.h(SvgFeed, Object.assign({}, p)),
|
|
4786
|
+
"hy-icon-file-text": (p) => index.h(SvgFileText, Object.assign({}, p)),
|
|
4787
|
+
"hy-icon-fullscreen": (p) => index.h(SvgFullScreen, Object.assign({}, p)),
|
|
4788
|
+
"hy-icon-globe": (p) => index.h(SvgGlobe, Object.assign({}, p)),
|
|
4789
|
+
"hy-icon-googleplus": (p) => index.h(SvgGooglePlus, Object.assign({}, p)),
|
|
4790
|
+
"hy-icon-grid": (p) => index.h(SvgGrid, Object.assign({}, p)),
|
|
4791
|
+
"hy-icon-hamburger": (p) => index.h(SvgHamburger, Object.assign({}, p)),
|
|
4792
|
+
"hy-icon-heart": (p) => index.h(SvgHeart, Object.assign({}, p)),
|
|
4793
|
+
"hy-icon-heart-support": (p) => index.h(SvgHeartSupport, Object.assign({}, p)),
|
|
4794
|
+
"hy-icon-helsingin-yliopisto": (p) => index.h(SvgHelsinginyliopisto, Object.assign({}, p)),
|
|
4795
|
+
"hy-icon-home": (p) => index.h(SvgHome, Object.assign({}, p)),
|
|
4796
|
+
"hy-icon-horizontal-resize": (p) => index.h(SvgHorizontalResize, Object.assign({}, p)),
|
|
4797
|
+
"hy-icon-hy-logo": (p) => index.h(SvgHyLogo, Object.assign({}, p)),
|
|
4798
|
+
"hy-icon-id-number": (p) => index.h(SvgIdNumber, Object.assign({}, p)),
|
|
4799
|
+
"hy-icon-image": (p) => index.h(SvgImage, Object.assign({}, p)),
|
|
4800
|
+
"hy-icon-image-gallery": (p) => index.h(SvgImageGallery, Object.assign({}, p)),
|
|
4801
|
+
"hy-icon-images": (p) => index.h(SvgImages, Object.assign({}, p)),
|
|
4802
|
+
"hy-icon-info": (p) => index.h(SvgInfo, Object.assign({}, p)),
|
|
4803
|
+
"hy-icon-info-stroke": (p) => index.h(SvgInfoStroke, Object.assign({}, p)),
|
|
4804
|
+
"hy-icon-instagram": (p) => index.h(SvgInstagram, Object.assign({}, p)),
|
|
4805
|
+
"hy-icon-leiki-list": (p) => index.h(SvgLeikiList, Object.assign({}, p)),
|
|
4806
|
+
"hy-icon-link-arrow": (p) => index.h(SvgLinkArrow, Object.assign({}, p)),
|
|
4807
|
+
"hy-icon-link-arrow-down": (p) => index.h(SvgLinkArrowDown, Object.assign({}, p)),
|
|
4808
|
+
"hy-icon-link-arrow-left": (p) => index.h(SvgLinkArrowLeft, Object.assign({}, p)),
|
|
4809
|
+
"hy-icon-link-arrow-offsite": (p) => index.h(SvgLinkArrowOffsite, Object.assign({}, p)),
|
|
4810
|
+
"hy-icon-link-arrow-up": (p) => index.h(SvgLinkArrowUp, Object.assign({}, p)),
|
|
4811
|
+
"hy-icon-linkedin": (p) => index.h(SvgLinkedin, Object.assign({}, p)),
|
|
4812
|
+
"hy-icon-list": (p) => index.h(SvgList, Object.assign({}, p)),
|
|
4813
|
+
"hy-icon-list-of-links": (p) => index.h(SvgListoflinks, Object.assign({}, p)),
|
|
4814
|
+
"hy-icon-list-as-blocks": (p) => index.h(SvgListAsBlocks, Object.assign({}, p)),
|
|
4815
|
+
"hy-icon-list-style-grid": (p) => index.h(SvgListStyleGrid, Object.assign({}, p)),
|
|
4816
|
+
"hy-icon-list-style-list": (p) => index.h(SvgListStyleList, Object.assign({}, p)),
|
|
4817
|
+
"hy-icon-link": (p) => index.h(SvgUrl, Object.assign({}, p)),
|
|
4818
|
+
"hy-icon-location": (p) => index.h(SvgLocation, Object.assign({}, p)),
|
|
4819
|
+
"hy-icon-log": (p) => index.h(SvgLog, Object.assign({}, p)),
|
|
4820
|
+
"hy-icon-log-in": (p) => index.h(SvgLogin, Object.assign({}, p)),
|
|
4821
|
+
"hy-icon-log-out": (p) => index.h(SvgLogout, Object.assign({}, p)),
|
|
4822
|
+
"hy-icon-magnify-minus": (p) => index.h(SvgMagnifyMinus, Object.assign({}, p)),
|
|
4823
|
+
"hy-icon-magnify-plus": (p) => index.h(SvgMagnifyPlus, Object.assign({}, p)),
|
|
4824
|
+
"hy-icon-email": (p) => index.h(SvgMail, Object.assign({}, p)),
|
|
4825
|
+
"hy-icon-master": (p) => index.h(SvgMaster, Object.assign({}, p)),
|
|
4826
|
+
"hy-icon-minus": (p) => index.h(SvgMinus, Object.assign({}, p)),
|
|
4827
|
+
"hy-icon-modify": (p) => index.h(SvgModify, Object.assign({}, p)),
|
|
4828
|
+
"hy-icon-navi-triangle": (p) => index.h(SvgNaviTriangle, Object.assign({}, p)),
|
|
4829
|
+
"hy-icon-new-group": (p) => index.h(SvgNewGroup, Object.assign({}, p)),
|
|
4830
|
+
"hy-icon-new-person": (p) => index.h(SvgNewPerson, Object.assign({}, p)),
|
|
4831
|
+
"hy-icon-notification": (p) => index.h(SvgNotification, Object.assign({}, p)),
|
|
4832
|
+
"hy-icon-opinder-logo": (p) => index.h(SvgOpinderLogoNew, Object.assign({}, p)),
|
|
4833
|
+
"hy-icon-pdf": (p) => index.h(SvgPdf, Object.assign({}, p)),
|
|
4834
|
+
"hy-icon-people": (p) => index.h(SvgPeople, Object.assign({}, p)),
|
|
4835
|
+
"hy-icon-permission-all": (p) => index.h(SvgPermissionAll, Object.assign({}, p)),
|
|
4836
|
+
"hy-icon-permission-group": (p) => index.h(SvgPermissionGroup, Object.assign({}, p)),
|
|
4837
|
+
"hy-icon-permission-private": (p) => index.h(SvgPermissionPrivate, Object.assign({}, p)),
|
|
4838
|
+
"hy-icon-person": (p) => index.h(SvgPerson, Object.assign({}, p)),
|
|
4839
|
+
"hy-icon-person-outline": (p) => index.h(SvgPersonOutline, Object.assign({}, p)),
|
|
4840
|
+
"hy-icon-phone": (p) => index.h(SvgPhone, Object.assign({}, p)),
|
|
4841
|
+
"hy-icon-play": (p) => index.h(SvgPlay, Object.assign({}, p)),
|
|
4842
|
+
"hy-icon-plus": (p) => index.h(SvgPlus, Object.assign({}, p)),
|
|
4843
|
+
"hy-icon-preview": (p) => index.h(SvgPreview, Object.assign({}, p)),
|
|
4844
|
+
"hy-icon-profile": (p) => index.h(SvgProfile, Object.assign({}, p)),
|
|
4845
|
+
"hy-icon-question": (p) => index.h(SvgQuestion, Object.assign({}, p)),
|
|
4846
|
+
"hy-icon-remove": (p) => index.h(SvgRemove, Object.assign({}, p)),
|
|
4847
|
+
"hy-icon-retweet": (p) => index.h(SvgRetweet, Object.assign({}, p)),
|
|
4848
|
+
"hy-icon-rotate-left": (p) => index.h(SvgRotateLeft, Object.assign({}, p)),
|
|
4849
|
+
"hy-icon-rotate-right": (p) => index.h(SvgRotateRight, Object.assign({}, p)),
|
|
4850
|
+
"hy-icon-search": (p) => index.h(SvgSearch, Object.assign({}, p)),
|
|
4851
|
+
"hy-icon-share": (p) => index.h(SvgShare, Object.assign({}, p)),
|
|
4852
|
+
"hy-icon-slim-hamburger-menu": (p) => index.h(SvgSlimHamburgerMenu, Object.assign({}, p)),
|
|
4853
|
+
"hy-icon-social-media": (p) => index.h(SvgSocialMedia, Object.assign({}, p)),
|
|
4854
|
+
"hy-icon-some-facebook": (p) => index.h(SomeFacebook, Object.assign({}, p)),
|
|
4855
|
+
"hy-icon-some-instagram": (p) => index.h(SomeInstagram, Object.assign({}, p)),
|
|
4856
|
+
"hy-icon-some-linkedin": (p) => index.h(SomeLinkedin, Object.assign({}, p)),
|
|
4857
|
+
"hy-icon-some-twitter": (p) => index.h(SomeTwitter, Object.assign({}, p)),
|
|
4858
|
+
"hy-icon-some-twitter-retweet": (p) => index.h(SvgRetweet, Object.assign({}, p)),
|
|
4859
|
+
"hy-icon-some-twitter-like": (p) => index.h(SvgTwitterLike, Object.assign({}, p)),
|
|
4860
|
+
"hy-icon-some-youtube": (p) => index.h(SomeYoutube, Object.assign({}, p)),
|
|
4861
|
+
"hy-icon-spinner": (p) => index.h(SvgSpinner, Object.assign({}, p)),
|
|
4862
|
+
"hy-icon-square": (p) => index.h(SvgSquare, Object.assign({}, p)),
|
|
4863
|
+
"hy-icon-square-checked": (p) => index.h(SvgSquareChecked, Object.assign({}, p)),
|
|
4864
|
+
"hy-icon-time": (p) => index.h(SvgTime, Object.assign({}, p)),
|
|
4865
|
+
"hy-icon-todolist": (p) => index.h(SvgTodoList, Object.assign({}, p)),
|
|
4866
|
+
"hy-icon-tour": (p) => index.h(SvgTour, Object.assign({}, p)),
|
|
4867
|
+
"hy-icon-twitter": (p) => index.h(SvgTwitter, Object.assign({}, p)),
|
|
4868
|
+
"hy-icon-units-and-faculties": (p) => index.h(SvgUnitsAndFaculties, Object.assign({}, p)),
|
|
4869
|
+
"hy-icon-video": (p) => index.h(SvgVideo, Object.assign({}, p)),
|
|
4870
|
+
"hy-icon-warning": (p) => index.h(SvgWarning, Object.assign({}, p)),
|
|
4871
|
+
"hy-icon-wrench": (p) => index.h(SvgWrench, Object.assign({}, p)),
|
|
4872
|
+
"hy-icon-quote": (p) => index.h(IconQuote, Object.assign({}, p)),
|
|
4873
|
+
"hy-icon-youtube": (p) => index.h(SvgYoutube, Object.assign({}, p)),
|
|
4729
4874
|
};
|
|
4730
4875
|
const Icon = class {
|
|
4731
4876
|
constructor(hostRef) {
|
|
4732
4877
|
index.registerInstance(this, hostRef);
|
|
4733
4878
|
this.icon = undefined;
|
|
4734
|
-
this.fill =
|
|
4879
|
+
this.fill = "black";
|
|
4735
4880
|
this.size = 20;
|
|
4736
4881
|
}
|
|
4737
4882
|
render() {
|
|
4738
|
-
return (index.h(index.Host, { "aria-hidden": "true", style: { display:
|
|
4883
|
+
return (index.h(index.Host, { "aria-hidden": "true", style: { display: "flex" } }, iconNames[this.icon]({
|
|
4739
4884
|
height: this.size,
|
|
4740
4885
|
width: this.size,
|
|
4741
4886
|
fill: this.fill,
|
|
@@ -4758,7 +4903,7 @@ const Image = class {
|
|
|
4758
4903
|
this.sourceSet = undefined;
|
|
4759
4904
|
}
|
|
4760
4905
|
srcSetWatcher(data) {
|
|
4761
|
-
this._sourceSet = typeof data ===
|
|
4906
|
+
this._sourceSet = typeof data === "string" ? JSON.parse(data) : data;
|
|
4762
4907
|
}
|
|
4763
4908
|
componentWillLoad() {
|
|
4764
4909
|
this.srcSetWatcher(this.sourceSet);
|
|
@@ -4768,17 +4913,17 @@ const Image = class {
|
|
|
4768
4913
|
if (this.aspectRatioWidth !== 0 && this.aspectRatioWidth !== 0) {
|
|
4769
4914
|
const aspect = (this.aspectRatioHeight / this.aspectRatioWidth) * 100;
|
|
4770
4915
|
aspectRatio = {
|
|
4771
|
-
|
|
4916
|
+
"--aspectRatio": `${aspect}%`,
|
|
4772
4917
|
};
|
|
4773
4918
|
}
|
|
4774
|
-
const classAttributes = [
|
|
4919
|
+
const classAttributes = ["hy-image", this.caption ? "hy-image--with-caption" : null].join(" ");
|
|
4775
4920
|
const containerClasses = [
|
|
4776
|
-
|
|
4777
|
-
aspectRatio !== null ?
|
|
4778
|
-
].join(
|
|
4921
|
+
"hy-image__image-container",
|
|
4922
|
+
aspectRatio !== null ? "hy-image--with-aspect" : "hy-image--no-aspect",
|
|
4923
|
+
].join(" ");
|
|
4779
4924
|
return [
|
|
4780
|
-
index.h("div", { class: classAttributes }, index.h("div", { class: containerClasses, style: aspectRatio !== null ? aspectRatio :
|
|
4781
|
-
(this._sourceSet ? (index.h("picture", null, this._sourceSet.map(({ src, media, type, sizes }) => (index.h("source", { srcSet: src, media: media, type: type, sizes: sizes ||
|
|
4925
|
+
index.h("div", { class: classAttributes }, index.h("div", { class: containerClasses, style: aspectRatio !== null ? aspectRatio : "" }, this.imageUrl &&
|
|
4926
|
+
(this._sourceSet ? (index.h("picture", null, this._sourceSet.map(({ src, media, type, sizes }) => (index.h("source", { srcSet: src, media: media, type: type, sizes: sizes || "" }))), index.h("img", { loading: this.disableLazy ? "eager" : "lazy", alt: this.imageAlt, class: "hy-image__image", src: this.imageUrl }))) : (index.h("img", { loading: this.disableLazy ? "eager" : "lazy", alt: this.imageAlt, class: "hy-image__image", src: this.imageUrl })))), this.caption && index.h("div", { class: "hy-image__caption" }, this.caption)),
|
|
4782
4927
|
index.h("hy-box", { mb: "1.75, 1.75, 2, 2.5" }),
|
|
4783
4928
|
];
|
|
4784
4929
|
}
|
|
@@ -4793,18 +4938,18 @@ const ingressCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand
|
|
|
4793
4938
|
const Ingress = class {
|
|
4794
4939
|
constructor(hostRef) {
|
|
4795
4940
|
index.registerInstance(this, hostRef);
|
|
4796
|
-
this.headerstyle =
|
|
4941
|
+
this.headerstyle = "common";
|
|
4797
4942
|
}
|
|
4798
4943
|
componentDidLoad() {
|
|
4799
|
-
let hyMainDiv = this.el.closest(
|
|
4944
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
4800
4945
|
if (hyMainDiv) {
|
|
4801
|
-
if (!hyMainDiv.classList.contains(
|
|
4802
|
-
this.headerstyle =
|
|
4946
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
4947
|
+
this.headerstyle = "large";
|
|
4803
4948
|
}
|
|
4804
4949
|
}
|
|
4805
4950
|
}
|
|
4806
4951
|
render() {
|
|
4807
|
-
const classAttributes = [
|
|
4952
|
+
const classAttributes = ["hy-ingress", `hy-ingress__${this.headerstyle}`].join(" ");
|
|
4808
4953
|
return (index.h(index.Host, null, index.h("p", { class: classAttributes }, index.h("slot", null))));
|
|
4809
4954
|
}
|
|
4810
4955
|
get el() { return index.getElement(this); }
|
|
@@ -4825,39 +4970,39 @@ const HyIntroduction = class {
|
|
|
4825
4970
|
this.scLabel = undefined;
|
|
4826
4971
|
this.urlTitle = undefined;
|
|
4827
4972
|
this.imageUrl = undefined;
|
|
4828
|
-
this.imageAlt =
|
|
4973
|
+
this.imageAlt = "";
|
|
4829
4974
|
this.isExternal = false;
|
|
4830
|
-
this.headerstyle =
|
|
4975
|
+
this.headerstyle = "common";
|
|
4831
4976
|
this.sourceSet = undefined;
|
|
4832
4977
|
}
|
|
4833
4978
|
componentDidLoad() {
|
|
4834
|
-
let hyMainDiv = this.el.closest(
|
|
4979
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
4835
4980
|
if (hyMainDiv) {
|
|
4836
|
-
if (!hyMainDiv.classList.contains(
|
|
4837
|
-
this.headerstyle =
|
|
4981
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
4982
|
+
this.headerstyle = "large";
|
|
4838
4983
|
}
|
|
4839
4984
|
}
|
|
4840
4985
|
}
|
|
4841
4986
|
render() {
|
|
4842
4987
|
const classAttributes = [
|
|
4843
|
-
|
|
4988
|
+
"hy-introduction",
|
|
4844
4989
|
`hy-introduction__${this.headerstyle}`,
|
|
4845
4990
|
this.headerstyle,
|
|
4846
|
-
this.reversed ?
|
|
4991
|
+
this.reversed ? "hy-introduction--reversed" : "",
|
|
4847
4992
|
this.variant
|
|
4848
4993
|
? `hy-introduction--with-bg hy-introduction--with-bg__${this.variant}`
|
|
4849
|
-
:
|
|
4850
|
-
].join(
|
|
4851
|
-
const classTitle = [
|
|
4852
|
-
const classDescription = [
|
|
4994
|
+
: "hy-introduction--without-bg",
|
|
4995
|
+
].join(" ");
|
|
4996
|
+
const classTitle = ["hy-introduction__title", `hy-introduction__title__${this.headerstyle}`].join(" ");
|
|
4997
|
+
const classDescription = ["hy-introduction__description", `hy-introduction__description__${this.headerstyle}`].join(" ");
|
|
4853
4998
|
const contentWrapperClasses = [
|
|
4854
|
-
|
|
4855
|
-
this.reversed ?
|
|
4856
|
-
this.imageUrl ?
|
|
4857
|
-
this.limitContentWidth ?
|
|
4858
|
-
].join(
|
|
4859
|
-
const target = this.isExternal ?
|
|
4860
|
-
return (index.h(index.Host, null, index.h("hy-box", { pt: "1.25, 1.25, 1.5, 2.5" }), index.h("div", { class: classAttributes }, index.h("hy-main-content-wrapper", null, index.h("div", { class: "hy-introduction__outer-content" }, index.h("div", { class: contentWrapperClasses }, index.h("hy-heading", { class: classTitle, heading: utils.HeadingVarians.h2, section: utils.HeadingSectionVariants.introduction }, this.textTitle), index.h("p", { class: classDescription }, this.textDescription), this.url && (index.h("div", { class: "hy-introduction__link__container" }, index.h("a", { class: "hy-introduction__link", href: this.url, "aria-label": this.scLabel, target: target }, this.urlTitle, index.h("span", { class: "hy-introduction__link__icon" }, index.h("hy-icon", { icon:
|
|
4999
|
+
"hy-introduction__content",
|
|
5000
|
+
this.reversed ? "hy-introduction__content--reversed" : "",
|
|
5001
|
+
this.imageUrl ? "hy-introduction__content--with-image" : "hy-introduction__content--without-image",
|
|
5002
|
+
this.limitContentWidth ? "hy-introduction__content--limit-width" : "",
|
|
5003
|
+
].join(" ");
|
|
5004
|
+
const target = this.isExternal ? "_blank" : "_self";
|
|
5005
|
+
return (index.h(index.Host, null, index.h("hy-box", { pt: "1.25, 1.25, 1.5, 2.5" }), index.h("div", { class: classAttributes }, index.h("hy-main-content-wrapper", null, index.h("div", { class: "hy-introduction__outer-content" }, index.h("div", { class: contentWrapperClasses }, index.h("hy-heading", { class: classTitle, heading: utils.HeadingVarians.h2, section: utils.HeadingSectionVariants.introduction }, this.textTitle), index.h("p", { class: classDescription }, this.textDescription), this.url && (index.h("div", { class: "hy-introduction__link__container" }, index.h("a", { class: "hy-introduction__link", href: this.url, "aria-label": this.scLabel, target: target }, this.urlTitle, index.h("span", { class: "hy-introduction__link__icon" }, index.h("hy-icon", { icon: "hy-icon-arrow-right", size: 24 })))))), this.imageUrl &&
|
|
4861
5006
|
(this.sourceSet ? (index.h("div", { class: "hy-introduction__image" }, index.h("hy-image", { "source-set": this.sourceSet, "image-url": this.imageUrl, aspectRatioWidth: 16, aspectRatioHeight: 10, "image-alt": this.imageAlt }))) : (index.h("div", { class: "hy-introduction__image" }, index.h("hy-image", { "image-url": this.imageUrl, aspectRatioWidth: 16, aspectRatioHeight: 10, "image-alt": this.imageAlt }))))))), index.h("hy-box", { mb: "1.75, 1.75, 2, 2.5" })));
|
|
4862
5007
|
}
|
|
4863
5008
|
get el() { return index.getElement(this); }
|
|
@@ -4874,7 +5019,7 @@ const HyKeyFigure = class {
|
|
|
4874
5019
|
this.description = undefined;
|
|
4875
5020
|
}
|
|
4876
5021
|
render() {
|
|
4877
|
-
const classVariant = [this.variant,
|
|
5022
|
+
const classVariant = [this.variant, "hy-key-figure"].join(" ");
|
|
4878
5023
|
return (index.h("div", { class: classVariant }, index.h("div", { class: "hy-key-figure__title" }, this.heading), index.h("div", { class: "hy-key-figure__description" }, this.description)));
|
|
4879
5024
|
}
|
|
4880
5025
|
};
|
|
@@ -4886,29 +5031,29 @@ const HyKeyFigureGroup = class {
|
|
|
4886
5031
|
constructor(hostRef) {
|
|
4887
5032
|
index.registerInstance(this, hostRef);
|
|
4888
5033
|
this.dataItems = undefined;
|
|
4889
|
-
this.headerstyle =
|
|
5034
|
+
this.headerstyle = "common";
|
|
4890
5035
|
}
|
|
4891
5036
|
async componentWillLoad() {
|
|
4892
5037
|
this._dataItems = await globalScript.jsonParserWorker(this.dataItems);
|
|
4893
5038
|
}
|
|
4894
5039
|
componentDidLoad() {
|
|
4895
|
-
let hyMainDiv = this.el.closest(
|
|
5040
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
4896
5041
|
if (hyMainDiv) {
|
|
4897
|
-
if (!hyMainDiv.classList.contains(
|
|
4898
|
-
this.headerstyle =
|
|
5042
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
5043
|
+
this.headerstyle = "large";
|
|
4899
5044
|
}
|
|
4900
5045
|
}
|
|
4901
5046
|
}
|
|
4902
5047
|
getBoxClassName(count) {
|
|
4903
|
-
let className =
|
|
5048
|
+
let className = "box";
|
|
4904
5049
|
if (count % 3 == 0) {
|
|
4905
|
-
className =
|
|
5050
|
+
className = "box-3";
|
|
4906
5051
|
}
|
|
4907
5052
|
else if (count % 4 == 0) {
|
|
4908
|
-
className =
|
|
5053
|
+
className = "box-4";
|
|
4909
5054
|
}
|
|
4910
5055
|
else if (count % 5 == 0) {
|
|
4911
|
-
className =
|
|
5056
|
+
className = "box-5";
|
|
4912
5057
|
}
|
|
4913
5058
|
return className;
|
|
4914
5059
|
}
|
|
@@ -4923,11 +5068,11 @@ const HyKeyFigureGroup = class {
|
|
|
4923
5068
|
const keyFiguresVariant = this._dataItems.length == 4 ? utils.KeyHighlightVariants.small : utils.KeyHighlightVariants.default;
|
|
4924
5069
|
const classAttributes = [
|
|
4925
5070
|
keyFiguresVariant,
|
|
4926
|
-
|
|
5071
|
+
"hy-key-figure-group-container",
|
|
4927
5072
|
`hy-key-figure-group-container__${this.headerstyle}`,
|
|
4928
|
-
].join(
|
|
4929
|
-
const classRowAttributes = [
|
|
4930
|
-
const classRowCenteredAttributes = [
|
|
5073
|
+
].join(" ");
|
|
5074
|
+
const classRowAttributes = ["hy-key-figure-group"].join(" ");
|
|
5075
|
+
const classRowCenteredAttributes = ["hy-key-figure-group", "hy-key-figure-group-centered"].join(" ");
|
|
4931
5076
|
if (this._dataItems.length % 5 == 0) {
|
|
4932
5077
|
return (index.h(index.Host, null, index.h("div", { class: classAttributes }, index.h("div", { class: classRowAttributes }, this._dataItems.map((x, index$1) => {
|
|
4933
5078
|
if (index$1 < 3) {
|
|
@@ -4959,7 +5104,7 @@ const HyKeyHighlight = class {
|
|
|
4959
5104
|
this.description = undefined;
|
|
4960
5105
|
}
|
|
4961
5106
|
render() {
|
|
4962
|
-
const classVariant = [this.variant,
|
|
5107
|
+
const classVariant = [this.variant, "hy-key-highlight"].join(" ");
|
|
4963
5108
|
return (index.h("div", { class: classVariant }, index.h("div", { class: "hy-key-highlight__title__container" }, index.h("div", { class: "hy-key-highlight__title", innerHTML: this.heading })), index.h("div", { class: "hy-key-highlight__description" }, this.description)));
|
|
4964
5109
|
}
|
|
4965
5110
|
};
|
|
@@ -4972,27 +5117,27 @@ const HyKeyHighlightGroup = class {
|
|
|
4972
5117
|
index.registerInstance(this, hostRef);
|
|
4973
5118
|
this.variant = utils.KeyHighlightVariants.default;
|
|
4974
5119
|
this.dataItems = undefined;
|
|
4975
|
-
this.headerstyle =
|
|
5120
|
+
this.headerstyle = "common";
|
|
4976
5121
|
}
|
|
4977
5122
|
async componentWillLoad() {
|
|
4978
5123
|
this._dataItems = await globalScript.jsonParserWorker(this.dataItems);
|
|
4979
5124
|
}
|
|
4980
5125
|
componentDidLoad() {
|
|
4981
|
-
let hyMainDiv = this.el.closest(
|
|
5126
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
4982
5127
|
if (hyMainDiv) {
|
|
4983
|
-
if (!hyMainDiv.classList.contains(
|
|
4984
|
-
this.headerstyle =
|
|
5128
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
5129
|
+
this.headerstyle = "large";
|
|
4985
5130
|
}
|
|
4986
5131
|
}
|
|
4987
5132
|
}
|
|
4988
5133
|
render() {
|
|
4989
5134
|
const classAttributes = [
|
|
4990
5135
|
this.variant,
|
|
4991
|
-
|
|
5136
|
+
"hy-key-highlight-group",
|
|
4992
5137
|
`hy-key-highlight-group__${this.headerstyle}`,
|
|
4993
|
-
].join(
|
|
5138
|
+
].join(" ");
|
|
4994
5139
|
const dataItemCount = this._dataItems.length;
|
|
4995
|
-
const classItem = dataItemCount % 4 == 0 ?
|
|
5140
|
+
const classItem = dataItemCount % 4 == 0 ? "box-4" : "box";
|
|
4996
5141
|
return (index.h(index.Host, null, index.h("div", { class: classAttributes }, this._dataItems.map((x) => {
|
|
4997
5142
|
return (index.h("hy-key-highlight", { class: classItem, variant: this.variant, heading: x.heading, description: x.description }));
|
|
4998
5143
|
}))));
|
|
@@ -5006,26 +5151,26 @@ const hyLargeProcessFlowCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e
|
|
|
5006
5151
|
const HyLargeProcessFlow = class {
|
|
5007
5152
|
constructor(hostRef) {
|
|
5008
5153
|
index.registerInstance(this, hostRef);
|
|
5009
|
-
this.headerstyle =
|
|
5154
|
+
this.headerstyle = "common";
|
|
5010
5155
|
this.dataItems = undefined;
|
|
5011
5156
|
}
|
|
5012
5157
|
async componentWillLoad() {
|
|
5013
5158
|
this._dataItems = await globalScript.jsonParserWorker(this.dataItems);
|
|
5014
5159
|
}
|
|
5015
5160
|
componentDidLoad() {
|
|
5016
|
-
let hyMainDiv = this.el.closest(
|
|
5161
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
5017
5162
|
if (hyMainDiv) {
|
|
5018
|
-
if (!hyMainDiv.classList.contains(
|
|
5019
|
-
this.headerstyle =
|
|
5163
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
5164
|
+
this.headerstyle = "large";
|
|
5020
5165
|
}
|
|
5021
5166
|
}
|
|
5022
5167
|
}
|
|
5023
5168
|
render() {
|
|
5024
|
-
const classAttributes = [
|
|
5169
|
+
const classAttributes = ["hy-large-process-flow", `hy-large-process-flow__${this.headerstyle}`].join(" ");
|
|
5025
5170
|
return [
|
|
5026
5171
|
index.h("div", { class: classAttributes }, this._dataItems.map((x, index$1) => {
|
|
5027
5172
|
let phases = JSON.stringify(x.boxes);
|
|
5028
|
-
const headingClasses = index$1 !== 0 ?
|
|
5173
|
+
const headingClasses = index$1 !== 0 ? "hy-large-process-flow__multi-phase-title" : "hy-large-process-flow__first-phase";
|
|
5029
5174
|
return [
|
|
5030
5175
|
index.h("hy-heading", { class: headingClasses, heading: utils.HeadingVarians.h3 }, x.phaseTitle),
|
|
5031
5176
|
index.h("hy-large-process-flow-phase", { "data-items": phases }),
|
|
@@ -5048,14 +5193,14 @@ const HyLargeProcessFlowPhase = class {
|
|
|
5048
5193
|
this._dataItems = await globalScript.jsonParserWorker(this.dataItems);
|
|
5049
5194
|
}
|
|
5050
5195
|
render() {
|
|
5051
|
-
const classAttributes = [
|
|
5196
|
+
const classAttributes = ["hy-large-process-flow__phase-container"].join(" ");
|
|
5052
5197
|
return (index.h("div", { class: classAttributes }, this._dataItems.map((x, index$1) => {
|
|
5053
5198
|
var items;
|
|
5054
5199
|
if (x.links && x.links.length > 0) {
|
|
5055
5200
|
let linkItems = x.links;
|
|
5056
5201
|
let linkItemsCount = x.links.length;
|
|
5057
5202
|
items = linkItems.map((item, index$1) => {
|
|
5058
|
-
let classLinks = index$1 == linkItemsCount - 1 ?
|
|
5203
|
+
let classLinks = index$1 == linkItemsCount - 1 ? "phase-link last" : "phase-link";
|
|
5059
5204
|
return item ? (index.h("hy-cta-link", { class: classLinks, "link-content": item.label, "sc-label": item.ariaLabel, "is-external": item.isExternal, url: item.url })) : null;
|
|
5060
5205
|
});
|
|
5061
5206
|
}
|
|
@@ -5073,15 +5218,15 @@ const Link = class {
|
|
|
5073
5218
|
constructor(hostRef) {
|
|
5074
5219
|
index.registerInstance(this, hostRef);
|
|
5075
5220
|
this.variant = utils.LinkVariants.default;
|
|
5076
|
-
this.linkContent =
|
|
5221
|
+
this.linkContent = "";
|
|
5077
5222
|
this.url = undefined;
|
|
5078
5223
|
this.scLabel = undefined;
|
|
5079
5224
|
this.isExternal = false;
|
|
5080
5225
|
}
|
|
5081
5226
|
render() {
|
|
5082
|
-
const classAttributes = [
|
|
5083
|
-
const target = this.isExternal ?
|
|
5084
|
-
return (index.h(index.Host, null, index.h("a", { "aria-label": this.scLabel, class: classAttributes.join(
|
|
5227
|
+
const classAttributes = ["hy-link", this.variant];
|
|
5228
|
+
const target = this.isExternal ? "_blank" : "_self";
|
|
5229
|
+
return (index.h(index.Host, null, index.h("a", { "aria-label": this.scLabel, class: classAttributes.join(" "), href: this.url, target: target }, this.linkContent)));
|
|
5085
5230
|
}
|
|
5086
5231
|
};
|
|
5087
5232
|
Link.style = linkCss;
|
|
@@ -5103,56 +5248,56 @@ const LinkBox = class {
|
|
|
5103
5248
|
this.isExternal = false;
|
|
5104
5249
|
this.scLabel = undefined;
|
|
5105
5250
|
this.readMoreLabel = undefined;
|
|
5106
|
-
this.headerstyle =
|
|
5251
|
+
this.headerstyle = "common";
|
|
5107
5252
|
this.sourceSet = undefined;
|
|
5108
5253
|
}
|
|
5109
5254
|
srcSetWatcher(data) {
|
|
5110
|
-
this._sourceSet = typeof data ===
|
|
5255
|
+
this._sourceSet = typeof data === "string" ? JSON.parse(data) : data;
|
|
5111
5256
|
}
|
|
5112
5257
|
componentWillLoad() {
|
|
5113
5258
|
this.srcSetWatcher(this.sourceSet);
|
|
5114
5259
|
}
|
|
5115
5260
|
componentDidLoad() {
|
|
5116
|
-
let hyMainDiv = this.el.closest(
|
|
5261
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
5117
5262
|
if (hyMainDiv) {
|
|
5118
|
-
if (!hyMainDiv.classList.contains(
|
|
5119
|
-
this.headerstyle =
|
|
5263
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
5264
|
+
this.headerstyle = "large";
|
|
5120
5265
|
}
|
|
5121
5266
|
}
|
|
5122
5267
|
}
|
|
5123
5268
|
render() {
|
|
5124
|
-
const classContainerAttributes = [
|
|
5269
|
+
const classContainerAttributes = ["hy-link-box-container"].join(" ");
|
|
5125
5270
|
const classAttributes = [
|
|
5126
|
-
|
|
5271
|
+
"hy-link-box",
|
|
5127
5272
|
this.variant,
|
|
5128
5273
|
`hy-link-box__${this.variant}`,
|
|
5129
5274
|
this.headerstyle,
|
|
5130
5275
|
`hy-link-box__${this.headerstyle}`,
|
|
5131
|
-
this.imageUrl ?
|
|
5132
|
-
].join(
|
|
5133
|
-
const classTextContainer = [
|
|
5276
|
+
this.imageUrl ? "hy-link-box--with-image" : null,
|
|
5277
|
+
].join(" ");
|
|
5278
|
+
const classTextContainer = ["hy-link-box__text-container", this.imageUrl ? "hy-link-box--with-image" : null].join(" ");
|
|
5134
5279
|
const classTitle = [
|
|
5135
|
-
|
|
5280
|
+
"hy-link-box__text-container__title",
|
|
5136
5281
|
`hy-link-box__text-container__title__${this.variant}`,
|
|
5137
5282
|
`hy-link-box__text-container__title__${this.headerstyle}`,
|
|
5138
|
-
this.imageUrl ?
|
|
5139
|
-
this.imageUrl ?
|
|
5140
|
-
].join(
|
|
5283
|
+
this.imageUrl ? "hy-link-box__text-container__title__image" : "",
|
|
5284
|
+
this.imageUrl ? "image" : "",
|
|
5285
|
+
].join(" ");
|
|
5141
5286
|
const classDescription = [
|
|
5142
|
-
|
|
5287
|
+
"hy-link-box__text-container__description",
|
|
5143
5288
|
`hy-link-box__text-container__description__${this.variant}`,
|
|
5144
5289
|
`hy-link-box__text-container__description__${this.headerstyle}`,
|
|
5145
|
-
].join(
|
|
5146
|
-
const target = this.isExternal ?
|
|
5290
|
+
].join(" ");
|
|
5291
|
+
const target = this.isExternal ? "_blank" : "_self";
|
|
5147
5292
|
const aspectRatioWidth = 16;
|
|
5148
5293
|
const aspectRatioHeight = 10;
|
|
5149
5294
|
const aspect = (aspectRatioHeight / aspectRatioWidth) * 100;
|
|
5150
5295
|
const aspectRatio = {
|
|
5151
|
-
|
|
5296
|
+
"--aspectRatio": `${aspect}%`,
|
|
5152
5297
|
};
|
|
5153
5298
|
return [
|
|
5154
5299
|
index.h("article", { class: classContainerAttributes }, index.h("div", { class: classAttributes }, this.imageUrl &&
|
|
5155
|
-
(this._sourceSet ? (index.h("figure", { class: "hy-link-box__image-container", style: aspectRatio }, index.h("picture", null, this._sourceSet.map((item) => (index.h("source", { srcSet: item.src, media: item.media, type: item.type, sizes: item.sizes ? item.sizes :
|
|
5300
|
+
(this._sourceSet ? (index.h("figure", { class: "hy-link-box__image-container", style: aspectRatio }, index.h("picture", null, this._sourceSet.map((item) => (index.h("source", { srcSet: item.src, media: item.media, type: item.type, sizes: item.sizes ? item.sizes : "" }))), index.h("img", { loading: this.disableLazy ? "eager" : "lazy", "aria-hidden": "true", src: this.imageUrl, alt: this.imageAlt })))) : (index.h("figure", { class: "hy-link-box__image-container", style: aspectRatio }, index.h("img", { loading: this.disableLazy ? "eager" : "lazy", "aria-hidden": "true", src: this.imageUrl, alt: this.imageAlt })))), !this.imageUrl && this.showLogo && (index.h("div", { "aria-hidden": "true", class: "hy-link-box__image-container is-image-missing" }, index.h("hy-icon", { class: { "hy-site-logo__icon": true }, icon: "hy-icon-hy-logo" }))), index.h("div", { class: classTextContainer }, index.h("h3", { class: classTitle }, this.textTitle), this.textDescription && (index.h("p", { class: classDescription }, this.textDescription.length >= 141 ? this.textDescription.slice(0, 140) + "..." : this.textDescription)))), index.h("a", { "aria-label": this.scLabel || `${this.readMoreLabel} - ${this.textTitle}`, title: this.scLabel || `${this.readMoreLabel} - ${this.textTitle}`, href: this.url, target: target, class: `hy-cta-link hy-cta-link--default` }, index.h("span", { "aria-hidden": "true" }), index.h("span", null, this.readMoreLabel), index.h("span", { class: `hy-cta-link__icon ${this.isExternal ? "hy-cta-link__icon--external" : ""}` }, index.h("hy-icon", { icon: "hy-icon-arrow-to-right", size: 24 })))),
|
|
5156
5301
|
];
|
|
5157
5302
|
}
|
|
5158
5303
|
get el() { return index.getElement(this); }
|
|
@@ -5167,7 +5312,7 @@ const linkBoxListCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--b
|
|
|
5167
5312
|
const LinkBoxList = class {
|
|
5168
5313
|
constructor(hostRef) {
|
|
5169
5314
|
index.registerInstance(this, hostRef);
|
|
5170
|
-
this.headerstyle =
|
|
5315
|
+
this.headerstyle = "common";
|
|
5171
5316
|
this.variant = utils.LinkBoxVariants.default;
|
|
5172
5317
|
this.readMoreLabel = undefined;
|
|
5173
5318
|
this.dataItems = undefined;
|
|
@@ -5176,20 +5321,20 @@ const LinkBoxList = class {
|
|
|
5176
5321
|
this._dataItems = await globalScript.jsonParserWorker(this.dataItems);
|
|
5177
5322
|
}
|
|
5178
5323
|
componentDidLoad() {
|
|
5179
|
-
let hyMainDiv = this.el.closest(
|
|
5324
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
5180
5325
|
if (hyMainDiv) {
|
|
5181
|
-
if (!hyMainDiv.classList.contains(
|
|
5182
|
-
this.headerstyle =
|
|
5326
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
5327
|
+
this.headerstyle = "large";
|
|
5183
5328
|
}
|
|
5184
5329
|
}
|
|
5185
5330
|
}
|
|
5186
5331
|
render() {
|
|
5187
5332
|
const classAttributes = [
|
|
5188
|
-
|
|
5333
|
+
"hy-link-box-list",
|
|
5189
5334
|
this.variant,
|
|
5190
5335
|
`hy-link-box-list__${this.variant}`,
|
|
5191
5336
|
`hy-link-box-list__${this.headerstyle}`,
|
|
5192
|
-
].join(
|
|
5337
|
+
].join(" ");
|
|
5193
5338
|
/*
|
|
5194
5339
|
- Logic:
|
|
5195
5340
|
- 3 items: big
|
|
@@ -5200,7 +5345,7 @@ const LinkBoxList = class {
|
|
|
5200
5345
|
- 8 items: small
|
|
5201
5346
|
- 9 items: big
|
|
5202
5347
|
* */
|
|
5203
|
-
const classItemAttributes = [this.variant, `hy-link-box__${this.variant}`].join(
|
|
5348
|
+
const classItemAttributes = [this.variant, `hy-link-box__${this.variant}`].join(" ");
|
|
5204
5349
|
return (index.h(index.Host, null, index.h("ul", { class: classAttributes }, this._dataItems.map((x) => {
|
|
5205
5350
|
return (index.h("li", null, index.h("hy-link-box", { class: classItemAttributes, variant: this.variant, "source-set": x.imageSets, "image-url": x.imageUrl, "image-alt": x.imageAlt, "text-title": x.heading, "text-description": x.description, "show-logo": x.showLogo, url: x.boxUrl, "is-external": x.isExternal, "sc-label": x.ariaLabel, "read-more-label": this.readMoreLabel })));
|
|
5206
5351
|
})), index.h("hy-box", { mb: "1.75, 1.75, 2, 2.5" })));
|
|
@@ -5214,32 +5359,32 @@ const hyLinkListCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--br
|
|
|
5214
5359
|
const HyLinkList = class {
|
|
5215
5360
|
constructor(hostRef) {
|
|
5216
5361
|
index.registerInstance(this, hostRef);
|
|
5217
|
-
this.headerstyle =
|
|
5362
|
+
this.headerstyle = "default";
|
|
5218
5363
|
this.dataItems = undefined;
|
|
5219
|
-
this.listHeading =
|
|
5364
|
+
this.listHeading = "";
|
|
5220
5365
|
this.variation = undefined;
|
|
5221
|
-
this.headingVariant =
|
|
5366
|
+
this.headingVariant = "h2";
|
|
5222
5367
|
}
|
|
5223
5368
|
async componentWillLoad() {
|
|
5224
5369
|
this._dataItems = await globalScript.jsonParserWorker(this.dataItems);
|
|
5225
5370
|
}
|
|
5226
5371
|
componentDidLoad() {
|
|
5227
|
-
let hyMainDiv = this.el.closest(
|
|
5372
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
5228
5373
|
if (hyMainDiv) {
|
|
5229
|
-
if (!hyMainDiv.classList.contains(
|
|
5230
|
-
this.headerstyle =
|
|
5374
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
5375
|
+
this.headerstyle = "large";
|
|
5231
5376
|
}
|
|
5232
5377
|
}
|
|
5233
5378
|
}
|
|
5234
5379
|
render() {
|
|
5235
5380
|
const linkVariant = utils.CtaLinkVariants.linkList;
|
|
5236
5381
|
const HeadingVariant = this.headingVariant.toLowerCase();
|
|
5237
|
-
let columnType =
|
|
5382
|
+
let columnType = "col-3";
|
|
5238
5383
|
if (this._dataItems.length === 7 || this._dataItems.length % 4 === 0) {
|
|
5239
|
-
columnType =
|
|
5384
|
+
columnType = "col-4";
|
|
5240
5385
|
}
|
|
5241
5386
|
return [
|
|
5242
|
-
index.h("section", { class: `hy-link-list hy-link-list__${this.headerstyle}` }, this.listHeading.length > 0 && (index.h(HeadingVariant, { class:
|
|
5387
|
+
index.h("section", { class: `hy-link-list hy-link-list__${this.headerstyle}` }, this.listHeading.length > 0 && (index.h(HeadingVariant, { class: "hy-link-list__title" }, this.listHeading)), index.h("ul", { class: `hy-link-list__links hy-link-list__links--${this.variation} ${this.variation === "grid" ? columnType : ""}` }, this._dataItems.map(({ heading, ariaLabel, url, isExternal }) => (index.h("li", { class: "hy-link-list__links-item" }, index.h("hy-cta-link", { variant: linkVariant, "link-content": heading, "sc-label": ariaLabel, url: url, "is-external": isExternal })))))),
|
|
5243
5388
|
];
|
|
5244
5389
|
}
|
|
5245
5390
|
get el() { return index.getElement(this); }
|
|
@@ -5249,8 +5394,8 @@ HyLinkList.style = hyLinkListCss;
|
|
|
5249
5394
|
const hyListItemCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host{display:block}.hy-list-item{display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--main-font-family);text-decoration:none}.hy-list-item__default{margin-bottom:28px}@media (min-width: 60rem){.hy-list-item__default{margin-bottom:32px}}.hy-list-item__default__info-container__header{font-size:0.75rem;line-height:14px;color:var(--grayscale-dark);letter-spacing:0;margin-bottom:4px}@media (min-width: 30rem){.hy-list-item__default__info-container__header{font-size:0.875rem;line-height:18px;margin-bottom:2px}}.hy-list-item__default__info-container__title{font-size:1.125rem;line-height:22px;font-weight:700;color:var(--brand-main-light);letter-spacing:-0.56px;margin-bottom:6px}@media (min-width: 30rem){.hy-list-item__default__info-container__title{font-size:1.375rem;line-height:28px;letter-spacing:-0.69px;margin-bottom:10px}}@media (min-width: 1601px){.hy-list-item__default__info-container__title{font-size:1.625rem;line-height:32px;letter-spacing:-0.8px;margin-bottom:8px}}@media (min-width: 75.0625rem){.hy-list-item__default__info-container__title__large{font-size:1.625rem;line-height:32px;letter-spacing:-0.8px;margin-bottom:8px}}.hy-list-item__default__info-container__link-container{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:6px}@media (min-width: 30rem){.hy-list-item__default__info-container__link-container{margin-bottom:8px}}.hy-list-item__default__info-container__link{font-size:0.75rem;line-height:16px;color:var(--grayscale-dark);letter-spacing:-0.07px;margin-left:4px}@media (min-width: 30rem){.hy-list-item__default__info-container__link{margin-left:5px}}.hy-list-item__default__info-container__link__icon svg{fill:var(--grayscale-dark)}.hy-list-item__default__info-container__description{font-size:0.875rem;line-height:20px;color:var(--grayscale-black);letter-spacing:0}@media (min-width: 30rem){.hy-list-item__default__info-container__description{font-size:1rem;line-height:24px}}.hy-list-item__position{background:radial-gradient(circle, var(--grayscale-light) 0%, var(--grayscale-background-box) 100%);-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}@media (min-width: 30rem){.hy-list-item__position{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.hy-list-item__position__info-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:0;padding:12px;position:relative}@media (min-width: 60rem){.hy-list-item__position__info-container{padding:12px 16px}}@media (min-width: 1601px){.hy-list-item__position__info-container{padding:20px 24px}}.hy-list-item__position__info-container__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;color:var(--brand-main);font-family:var(--main-font-family);font-size:14px;font-weight:600;letter-spacing:-0.2px;line-height:14px;margin-bottom:14px}.hy-list-item__position__info-container__header .icon{margin-right:0.75rem}.hy-list-item__position__info-container__header .icon svg{fill:var(--brand-main)}@media (min-width: 75.0625rem){.hy-list-item__position__info-container__large{padding:20px 24px}}.hy-list-item__position__info-container__data{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hy-list-item__position__info-container__title{font-size:1.125rem;line-height:20px;font-weight:700;font-family:var(--main-font-family);color:var(--grayscale-black);margin-bottom:12px;letter-spacing:-0.45px;line-height:22px}@media (min-width: 30rem){.hy-list-item__position__info-container__title{letter-spacing:-0.5px}}.hy-list-item__position__info-container__description{font-size:0.875rem;color:var(--grayscale-dark-text);display:none;font-family:var(--main-font-family);letter-spacing:0.8px;margin-bottom:14px;line-height:20px}@media (min-width: 30rem){.hy-list-item__position__info-container__description{display:block}}.hy-list-item__position__info-container__outgoing-link{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;position:relative;padding:0 24px 24px 12px}@media (min-width: 30rem){.hy-list-item__position__info-container__outgoing-link{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:0 24px 24px 0}}.hy-list-item__position__info-container__outgoing-link .label{color:var(--link-blue);font-family:var(--main-font-family);font-size:16px;font-weight:600;letter-spacing:-0.3px;line-height:20px}.hy-list-item__position__info-container__outgoing-link .icon{margin-right:4px;margin-bottom:2px}.hy-list-item__position__info-container__outgoing-link .icon svg{fill:var(--link-blue)}.hy-list-item__degree{background:radial-gradient(circle, var(--grayscale-light) 0%, var(--grayscale-background-box) 100%);-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}@media (min-width: 30rem){.hy-list-item__degree{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.hy-list-item__degree__image-container{display:block;position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1}@media (min-width: 30rem){.hy-list-item__degree__image-container{-webkit-box-flex:0;-ms-flex:0 0 24%;flex:0 0 24%}}.hy-list-item__degree__image-container__image{vertical-align:bottom;max-width:100%;height:100%}.hy-list-item__degree__image-container__image img{-o-object-fit:cover;object-fit:cover;width:100%;height:100%}.hy-list-item__degree__image-container span{font-weight:600;font-size:0.75rem;line-height:14px;background-color:var(--additional-yellow);-webkit-box-shadow:0 2px 8px 0 rgba(0, 0, 0, 0.05);box-shadow:0 2px 8px 0 rgba(0, 0, 0, 0.05);color:var(--grayscale-black);left:-4px;letter-spacing:-0.07px;padding:5px 8px;position:absolute;top:16px;text-transform:uppercase}@media (min-width: 30rem){.hy-list-item__degree__image-container span{left:-8px}}@media (min-width: 60rem){.hy-list-item__degree__image-container span{top:22px}}.hy-list-item__degree__info-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:0;padding:12px;position:relative}@media (min-width: 60rem){.hy-list-item__degree__info-container{padding:12px 16px}}@media (min-width: 1601px){.hy-list-item__degree__info-container{padding:20px 24px}}@media (min-width: 75.0625rem){.hy-list-item__degree__info-container__large{padding:20px 24px}}.hy-list-item__degree__info-container__data{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hy-list-item__degree__info-container__title{font-size:1.125rem;line-height:22px;font-weight:700;color:var(--link-blue);letter-spacing:-0.54px;margin-bottom:8px}@media (min-width: 60rem){.hy-list-item__degree__info-container__title{font-size:1.125rem;line-height:24px;letter-spacing:-0.5px}}@media (min-width: 1601px){.hy-list-item__degree__info-container__title{font-size:1.25rem;line-height:26px;letter-spacing:-0.6px}}@media (min-width: 75.0625rem){.hy-list-item__degree__info-container__title__large{font-size:1.25rem;line-height:26px;letter-spacing:-0.6px}}.hy-list-item__degree__info-container__description{font-size:0.875rem;line-height:18px;color:var(--grayscale-dark);letter-spacing:0;margin-bottom:16px}@media (min-width: 60rem){.hy-list-item__degree__info-container__description{letter-spacing:-0.2}}@media (min-width: 1601px){.hy-list-item__degree__info-container__description{font-size:1rem;line-height:20px;letter-spacing:-0.25px}}@media (min-width: 75.0625rem){.hy-list-item__degree__info-container__description__large{font-size:1rem;line-height:20px;letter-spacing:-0.25px}}.hy-list-item__degree__info-container__metadata-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin-top:16px;width:100%}@media (min-width: 30rem){.hy-list-item__degree__info-container__metadata-wrapper{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}}.hy-list-item__degree__info-container__metadata-wrapper.link-only{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.hy-list-item__degree__info-container__additional-info{width:100%}.hy-list-item__degree__info-container__additional-info__item{font-size:0.75rem;line-height:16px;font-weight:300;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--grayscale-black);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;letter-spacing:-0.2px}@media (min-width: 1601px){.hy-list-item__degree__info-container__additional-info__item{font-size:0.875rem;line-height:16px}}@media (min-width: 75.0625rem){.hy-list-item__degree__info-container__additional-info__item__large{font-size:0.875rem;line-height:16px}}.hy-list-item__degree__info-container__additional-info__item.active::before{content:\" \";-webkit-box-sizing:border-box;box-sizing:border-box;height:14px;width:14px;border:3px solid #ffffff;border-radius:50%;background-color:#f9a21a;left:-7px;position:absolute}@media (min-width: 30rem){.hy-list-item__degree__info-container__additional-info__item.active::before{border:none;height:8px;margin-right:6px;width:8px;left:0;position:relative}}.hy-list-item__degree__info-container__outgoing-link{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;position:relative;width:100%}.hy-list-item__degree__info-container__outgoing-link a{-webkit-box-align:center;-ms-flex-align:center;align-items:center;bottom:0;top:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;position:relative;right:-18px;text-decoration:none}@media (min-width: 60rem){.hy-list-item__degree__info-container__outgoing-link a{right:-22px}}@media (min-width: 1601px){.hy-list-item__degree__info-container__outgoing-link a{right:-30px}}.hy-list-item__degree__info-container__outgoing-link a .label{font-size:0.875rem;line-height:16px;font-weight:700;color:var(--link-blue);letter-spacing:-0.5px;margin-right:8px;text-align:right}.hy-list-item__degree__info-container__outgoing-link a .icon-wrapper{background-color:var(--brand-main-light);z-index:10}.hy-list-item__degree__info-container__outgoing-link a .icon-wrapper .icon{position:relative;overflow:hidden}.hy-list-item__degree__info-container__outgoing-link a .icon-wrapper .icon svg{background-color:transparent;-webkit-box-shadow:0 2px 8px 0 rgba(0, 0, 0, 0.1);box-shadow:0 2px 8px 0 rgba(0, 0, 0, 0.1);fill:var(--grayscale-white);padding:6.4px}@media (min-width: 1601px){.hy-list-item__degree__info-container__outgoing-link a .icon-wrapper .icon svg{height:36px;width:36px;padding:7.2px}}@media (min-width: 75.0625rem){.hy-list-item__degree__info-container__outgoing-link__large svg{height:36px;width:36px;padding:7.2px}}.hy-list-item-wrapper{font-family:var(--main-font-family)}.hy-list-item-wrapper__degree{margin-bottom:16px}@media (min-width: 30rem){.hy-list-item-wrapper__degree{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-bottom:24px}}@media (min-width: 60rem){.hy-list-item-wrapper__degree{margin-bottom:28px}}@media (min-width: 1601px){.hy-list-item-wrapper__degree{margin-bottom:32px}}@media (min-width: 75.0625rem){.hy-list-item-wrapper__degree__large{margin-bottom:32px}}.hy-list-item-wrapper__degree__related-info{background:radial-gradient(circle, #f8f8f8 0%, #f5f5f5 100%);margin-top:4px;padding:0 12px 0 16px}@media (min-width: 30rem){.hy-list-item-wrapper__degree__related-info{padding:0 24px 0 16px}}@media (min-width: 60rem){.hy-list-item-wrapper__degree__related-info{margin-top:6px;padding:0 24px 0 24px}}@media (min-width: 1601px){.hy-list-item-wrapper__degree__related-info{margin-top:8px}}@media (min-width: 75.0625rem){.hy-list-item-wrapper__degree__related-info__large{margin-top:8px}}.hy-list-item-wrapper__degree__related-info__heading__link{text-decoration:none}.hy-list-item-wrapper__degree__related-info__heading__button{font-size:0.75rem;line-height:16px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:radial-gradient(circle, #f8f8f8 0%, #f5f5f5 100%);border:none;color:var(--grayscale-black);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;font-family:var(--main-font-family);letter-spacing:-0.2px;height:100%;padding:8px 0;text-align:left;width:100%}@media (min-width: 30rem){.hy-list-item-wrapper__degree__related-info__heading__button{font-size:0.75rem;line-height:20px;padding:14px 0}}@media (min-width: 60rem){.hy-list-item-wrapper__degree__related-info__heading__button{font-size:0.875rem;line-height:20px;letter-spacing:-0.4px;padding:18px 0}}.hy-list-item-wrapper__degree__related-info__heading__button:hover{cursor:pointer}.hy-list-item-wrapper__degree__related-info__heading__button__is-open svg{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.hy-list-item-wrapper__degree__related-info__heading__icon{margin-right:0.5rem;z-index:0}@media (min-width: 60rem){.hy-list-item-wrapper__degree__related-info__heading__icon{margin-right:12px}}.hy-list-item-wrapper__degree__related-info__heading__icon svg{fill:var(--brand-main);height:14px;width:14px}@media (min-width: 60rem){.hy-list-item-wrapper__degree__related-info__heading__icon svg{height:18px;width:18px}}.hy-list-item-wrapper__degree__related-info__content{display:none}.hy-list-item-wrapper__degree__related-info__content__is-open{border-top:1px solid #d2d2d2;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:20px 8px 5px 8px}@media (min-width: 60rem){.hy-list-item-wrapper__degree__related-info__content__is-open{padding:20px 0 14px 0}}.hy-list-item-wrapper__degree__related-info__link{font-size:0.875rem;line-height:16px;font-weight:700;color:var(--link-blue);letter-spacing:-0.4px;margin-bottom:16px;text-decoration:none}";
|
|
5250
5395
|
|
|
5251
5396
|
let keys$2 = {
|
|
5252
|
-
enter:
|
|
5253
|
-
space:
|
|
5397
|
+
enter: "Enter",
|
|
5398
|
+
space: "Space",
|
|
5254
5399
|
};
|
|
5255
5400
|
const HyListItem = class {
|
|
5256
5401
|
constructor(hostRef) {
|
|
@@ -5269,9 +5414,9 @@ const HyListItem = class {
|
|
|
5269
5414
|
this.relatedLinksBlockTitle = undefined;
|
|
5270
5415
|
this.relatedLinks = undefined;
|
|
5271
5416
|
this.imageLabel = undefined;
|
|
5272
|
-
this.outGoingUrlLabel =
|
|
5417
|
+
this.outGoingUrlLabel = "Go to programme page";
|
|
5273
5418
|
this.additionalInfo = undefined;
|
|
5274
|
-
this.headerstyle =
|
|
5419
|
+
this.headerstyle = "common";
|
|
5275
5420
|
this.sourceSet = undefined;
|
|
5276
5421
|
this.truncateDescription = false;
|
|
5277
5422
|
this.truncateLimit = 140;
|
|
@@ -5279,7 +5424,7 @@ const HyListItem = class {
|
|
|
5279
5424
|
this._imageMinWidth = 0;
|
|
5280
5425
|
}
|
|
5281
5426
|
relatedLinksWatcher(newValue) {
|
|
5282
|
-
if (typeof newValue ===
|
|
5427
|
+
if (typeof newValue === "string") {
|
|
5283
5428
|
this._relatedLinks = JSON.parse(newValue);
|
|
5284
5429
|
}
|
|
5285
5430
|
else {
|
|
@@ -5287,7 +5432,7 @@ const HyListItem = class {
|
|
|
5287
5432
|
}
|
|
5288
5433
|
}
|
|
5289
5434
|
additionalInfoWatcher(newValue) {
|
|
5290
|
-
if (typeof newValue ===
|
|
5435
|
+
if (typeof newValue === "string") {
|
|
5291
5436
|
this._additionalInfo = JSON.parse(newValue);
|
|
5292
5437
|
}
|
|
5293
5438
|
else {
|
|
@@ -5295,11 +5440,11 @@ const HyListItem = class {
|
|
|
5295
5440
|
}
|
|
5296
5441
|
}
|
|
5297
5442
|
srcSetWatcher(data) {
|
|
5298
|
-
this._sourceSet = typeof data ===
|
|
5443
|
+
this._sourceSet = typeof data === "string" ? JSON.parse(data) : data;
|
|
5299
5444
|
}
|
|
5300
5445
|
expandRelatedInfoPanel(target) {
|
|
5301
5446
|
let contentSelector = `hy-list-item-wrapper__${this.variant}__related-info__content`;
|
|
5302
|
-
let targetButtonClass =
|
|
5447
|
+
let targetButtonClass = "hy-list-item-wrapper__degree__related-info__heading__button";
|
|
5303
5448
|
let contentSection = document.querySelectorAll(`[aria-labelledBy="${target.id}"]`)[0];
|
|
5304
5449
|
if (contentSection) {
|
|
5305
5450
|
if (!this.isExpandedRelatedContent) {
|
|
@@ -5317,12 +5462,12 @@ const HyListItem = class {
|
|
|
5317
5462
|
const key = event.code;
|
|
5318
5463
|
let target = event.target;
|
|
5319
5464
|
const targetElement = target.tagName.toLowerCase();
|
|
5320
|
-
const possibleTags = [targetElement].some((r) => [
|
|
5465
|
+
const possibleTags = [targetElement].some((r) => ["svg", "path", "button", "a"].indexOf(r) >= 0);
|
|
5321
5466
|
if (target &&
|
|
5322
5467
|
possibleTags &&
|
|
5323
|
-
!target.classList.contains(
|
|
5468
|
+
!target.classList.contains("hy-list-item-wrapper__degree__related-info__link") &&
|
|
5324
5469
|
[keys$2.enter, keys$2.space].includes(key)) {
|
|
5325
|
-
if (targetElement !==
|
|
5470
|
+
if (targetElement !== "button") {
|
|
5326
5471
|
target = target.closest(`.hy-list-item-wrapper__${this.variant}__related-info__heading__button`);
|
|
5327
5472
|
}
|
|
5328
5473
|
this.expandRelatedInfoPanel(target);
|
|
@@ -5332,9 +5477,9 @@ const HyListItem = class {
|
|
|
5332
5477
|
handleClick(event) {
|
|
5333
5478
|
let target = event.target;
|
|
5334
5479
|
const targetElement = target.tagName.toLowerCase();
|
|
5335
|
-
const possibleTags = [targetElement].some((r) => [
|
|
5336
|
-
if (target && possibleTags && !target.classList.contains(
|
|
5337
|
-
if (targetElement !==
|
|
5480
|
+
const possibleTags = [targetElement].some((r) => ["svg", "path", "button", "a"].indexOf(r) >= 0);
|
|
5481
|
+
if (target && possibleTags && !target.classList.contains("hy-list-item-wrapper__degree__related-info__link")) {
|
|
5482
|
+
if (targetElement !== "button") {
|
|
5338
5483
|
target = target.closest(`.hy-list-item-wrapper__${this.variant}__related-info__heading__button`);
|
|
5339
5484
|
}
|
|
5340
5485
|
this.expandRelatedInfoPanel(target);
|
|
@@ -5348,16 +5493,16 @@ const HyListItem = class {
|
|
|
5348
5493
|
this.srcSetWatcher(this.sourceSet);
|
|
5349
5494
|
}
|
|
5350
5495
|
componentDidLoad() {
|
|
5351
|
-
let hyMainDiv = this.el.closest(
|
|
5496
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
5352
5497
|
if (hyMainDiv) {
|
|
5353
|
-
if (!hyMainDiv.classList.contains(
|
|
5354
|
-
this.headerstyle =
|
|
5498
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
5499
|
+
this.headerstyle = "large";
|
|
5355
5500
|
}
|
|
5356
5501
|
}
|
|
5357
5502
|
if (this.variant == utils.ListItemVariants.degreeProgramme) {
|
|
5358
|
-
const image = document.querySelector(
|
|
5503
|
+
const image = document.querySelector(".hy-list-item__degree__image-container__image img");
|
|
5359
5504
|
if (image) {
|
|
5360
|
-
image.addEventListener(
|
|
5505
|
+
image.addEventListener("load", function () {
|
|
5361
5506
|
const outputImageAspectRatio = 1;
|
|
5362
5507
|
const imageHeight = image.naturalHeight;
|
|
5363
5508
|
const imageWidth = image.naturalWidth;
|
|
@@ -5376,15 +5521,15 @@ const HyListItem = class {
|
|
|
5376
5521
|
}
|
|
5377
5522
|
render() {
|
|
5378
5523
|
const classWrapperAttributes = [
|
|
5379
|
-
|
|
5524
|
+
"hy-list-item-wrapper",
|
|
5380
5525
|
`hy-list-item-wrapper__${this.variant}`,
|
|
5381
5526
|
`hy-list-item-wrapper__${this.variant}__${this.headerstyle}`,
|
|
5382
|
-
].join(
|
|
5383
|
-
const classAttributes = [
|
|
5527
|
+
].join(" ");
|
|
5528
|
+
const classAttributes = ["hy-list-item", `hy-list-item__${this.variant}`].join(" ");
|
|
5384
5529
|
const classInfoContainerAttributes = [
|
|
5385
5530
|
`hy-list-item__${this.variant}__info-container`,
|
|
5386
5531
|
`hy-list-item__${this.variant}__info-container__${this.headerstyle}`,
|
|
5387
|
-
].join(
|
|
5532
|
+
].join(" ");
|
|
5388
5533
|
/*const classInfoContainerDataAttributes = [
|
|
5389
5534
|
`hy-list-item__${this.variant}__info-container__data`,
|
|
5390
5535
|
`hy-list-item__${this.variant}__info-container__data__${this.headerstyle}`,
|
|
@@ -5392,91 +5537,91 @@ const HyListItem = class {
|
|
|
5392
5537
|
const classInfoContainerHeader = [
|
|
5393
5538
|
`hy-list-item__${this.variant}__info-container__header`,
|
|
5394
5539
|
`hy-list-item__${this.variant}__info-container__header__${this.headerstyle}`,
|
|
5395
|
-
].join(
|
|
5540
|
+
].join(" ");
|
|
5396
5541
|
const classInfoContainerTitle = [
|
|
5397
5542
|
`hy-list-item__${this.variant}__info-container__title`,
|
|
5398
5543
|
`hy-list-item__${this.variant}__info-container__title__${this.headerstyle}`,
|
|
5399
|
-
].join(
|
|
5544
|
+
].join(" ");
|
|
5400
5545
|
const classInfoContainerDescription = [
|
|
5401
5546
|
`hy-list-item__${this.variant}__info-container__description`,
|
|
5402
5547
|
`hy-list-item__${this.variant}__info-container__description__${this.headerstyle}`,
|
|
5403
|
-
].join(
|
|
5404
|
-
const classInfoContainerLinkContainer = [`hy-list-item__${this.variant}__info-container__link-container`].join(
|
|
5405
|
-
const classInfoContainerLinkIcon = [`hy-list-item__${this.variant}__info-container__link__icon`].join(
|
|
5406
|
-
const classInfoContainerLink = [`hy-list-item__${this.variant}__info-container__link`].join(
|
|
5407
|
-
const target = this.isExternal ?
|
|
5548
|
+
].join(" ");
|
|
5549
|
+
const classInfoContainerLinkContainer = [`hy-list-item__${this.variant}__info-container__link-container`].join(" ");
|
|
5550
|
+
const classInfoContainerLinkIcon = [`hy-list-item__${this.variant}__info-container__link__icon`].join(" ");
|
|
5551
|
+
const classInfoContainerLink = [`hy-list-item__${this.variant}__info-container__link`].join(" ");
|
|
5552
|
+
const target = this.isExternal ? "_blank" : "_self";
|
|
5408
5553
|
function truncate(str, n) {
|
|
5409
|
-
return str.length > n ? str.substr(0, n - 1) +
|
|
5554
|
+
return str.length > n ? str.substr(0, n - 1) + "..." : str;
|
|
5410
5555
|
}
|
|
5411
5556
|
switch (this.variant) {
|
|
5412
5557
|
case utils.ListItemVariants.position: {
|
|
5413
5558
|
const classInfoContainerOutgoingLink = [
|
|
5414
5559
|
`hy-list-item__${this.variant}__info-container__outgoing-link`,
|
|
5415
5560
|
`hy-list-item__${this.variant}__info-container__outgoing-link__${this.headerstyle}`,
|
|
5416
|
-
].join(
|
|
5417
|
-
return (index.h("article", null, index.h("a", { class: classAttributes, href: this.url, target: target, "aria-label": this.scLabel }, index.h("div", { class: classInfoContainerAttributes }, index.h("div", { class: classInfoContainerHeader }, index.h("div", { class: "icon" }, index.h("hy-icon", { icon:
|
|
5561
|
+
].join(" ");
|
|
5562
|
+
return (index.h("article", null, index.h("a", { class: classAttributes, href: this.url, target: target, "aria-label": this.scLabel }, index.h("div", { class: classInfoContainerAttributes }, index.h("div", { class: classInfoContainerHeader }, index.h("div", { class: "icon" }, index.h("hy-icon", { icon: "hy-icon-units-and-faculties", size: 18 })), this.itemType), index.h("div", { class: classInfoContainerTitle }, this.itemTitle), this.itemDescription && (index.h("div", { class: classInfoContainerDescription, innerHTML: this.truncateDescription
|
|
5418
5563
|
? truncate(this.itemDescription, this.truncateLimit)
|
|
5419
|
-
: this.itemDescription }))), index.h("div", { class: classInfoContainerOutgoingLink }, index.h("span", { class: "icon" }, index.h("hy-icon", { icon:
|
|
5564
|
+
: this.itemDescription }))), index.h("div", { class: classInfoContainerOutgoingLink }, index.h("span", { class: "icon" }, index.h("hy-icon", { icon: "hy-icon-done", size: 14 })), index.h("span", { class: "label" }, this.outGoingUrlLabel)))));
|
|
5420
5565
|
}
|
|
5421
5566
|
case utils.ListItemVariants.degreeProgramme: {
|
|
5422
|
-
const classImageContainerAttributes = [`hy-list-item__${this.variant}__image-container`].join(
|
|
5423
|
-
const classImageContainerImage = [`hy-list-item__${this.variant}__image-container__image`].join(
|
|
5567
|
+
const classImageContainerAttributes = [`hy-list-item__${this.variant}__image-container`].join(" ");
|
|
5568
|
+
const classImageContainerImage = [`hy-list-item__${this.variant}__image-container__image`].join(" ");
|
|
5424
5569
|
const classInfoContainerAdditionalInfoAttributes = [
|
|
5425
5570
|
`hy-list-item__${this.variant}__info-container__additional-info`,
|
|
5426
5571
|
`hy-list-item__${this.variant}__info-container__additional-info__${this.headerstyle}`,
|
|
5427
|
-
].join(
|
|
5428
|
-
const withAdditionalInfo = this._additionalInfo && this._additionalInfo.length > 0 ?
|
|
5572
|
+
].join(" ");
|
|
5573
|
+
const withAdditionalInfo = this._additionalInfo && this._additionalInfo.length > 0 ? "" : "link-only";
|
|
5429
5574
|
const classMetadataWrapper = [
|
|
5430
5575
|
`hy-list-item__${this.variant}__info-container__metadata-wrapper`,
|
|
5431
5576
|
withAdditionalInfo,
|
|
5432
|
-
].join(
|
|
5433
|
-
const classContentWrapper = [`hy-list-item__${this.variant}__info-container__content-wrapper`].join(
|
|
5577
|
+
].join(" ");
|
|
5578
|
+
const classContentWrapper = [`hy-list-item__${this.variant}__info-container__content-wrapper`].join(" ");
|
|
5434
5579
|
const classInfoContainerOutgoingLink = [
|
|
5435
5580
|
`hy-list-item__${this.variant}__info-container__outgoing-link`,
|
|
5436
5581
|
`hy-list-item__${this.variant}__info-container__outgoing-link__${this.headerstyle}`,
|
|
5437
|
-
].join(
|
|
5582
|
+
].join(" ");
|
|
5438
5583
|
const classInfoContainerOutgoingLinkUrl = [
|
|
5439
5584
|
`hy-list-item__${this.variant}__info-container__outgoing-link__link`,
|
|
5440
|
-
].join(
|
|
5585
|
+
].join(" ");
|
|
5441
5586
|
const classRelatedInfoContainer = [
|
|
5442
5587
|
`hy-list-item-wrapper__${this.variant}__related-info`,
|
|
5443
5588
|
`hy-list-item-wrapper__${this.variant}__related-info__${this.headerstyle}`,
|
|
5444
|
-
].join(
|
|
5445
|
-
const classRelatedInfoHeading = [`hy-list-item-wrapper__${this.variant}__related-info__heading`].join(
|
|
5446
|
-
const classRelatedInfoHeadingLink = [`hy-list-item-wrapper__${this.variant}__related-info__heading__link`].join(
|
|
5589
|
+
].join(" ");
|
|
5590
|
+
const classRelatedInfoHeading = [`hy-list-item-wrapper__${this.variant}__related-info__heading`].join(" ");
|
|
5591
|
+
const classRelatedInfoHeadingLink = [`hy-list-item-wrapper__${this.variant}__related-info__heading__link`].join(" ");
|
|
5447
5592
|
const classRelatedInfoHeadingButton = [
|
|
5448
5593
|
`hy-list-item-wrapper__${this.variant}__related-info__heading__button`,
|
|
5449
|
-
].join(
|
|
5450
|
-
const classRelatedInfoHeadingIcon = [`hy-list-item-wrapper__${this.variant}__related-info__heading__icon`].join(
|
|
5451
|
-
const classRelatedInfoContent = [`hy-list-item-wrapper__${this.variant}__related-info__content`].join(
|
|
5452
|
-
const classRelatedInfoLink = [`hy-list-item-wrapper__${this.variant}__related-info__link`].join(
|
|
5594
|
+
].join(" ");
|
|
5595
|
+
const classRelatedInfoHeadingIcon = [`hy-list-item-wrapper__${this.variant}__related-info__heading__icon`].join(" ");
|
|
5596
|
+
const classRelatedInfoContent = [`hy-list-item-wrapper__${this.variant}__related-info__content`].join(" ");
|
|
5597
|
+
const classRelatedInfoLink = [`hy-list-item-wrapper__${this.variant}__related-info__link`].join(" ");
|
|
5453
5598
|
const titleAsId = this.relatedLinksBlockTitle && this.relatedLinksBlockTitle.length > 0
|
|
5454
|
-
? `${this.itemTitle}-${this.relatedLinksBlockTitle}`.toLowerCase().replace(/\W/g,
|
|
5455
|
-
:
|
|
5456
|
-
const accordionItemHref =
|
|
5457
|
-
const relatedLinksCount = this.relatedLinksBlockTitle && this.relatedLinksBlockTitle.length > 0 ? this._relatedLinks.length :
|
|
5599
|
+
? `${this.itemTitle}-${this.relatedLinksBlockTitle}`.toLowerCase().replace(/\W/g, "-")
|
|
5600
|
+
: "";
|
|
5601
|
+
const accordionItemHref = "#" + titleAsId + "--title";
|
|
5602
|
+
const relatedLinksCount = this.relatedLinksBlockTitle && this.relatedLinksBlockTitle.length > 0 ? this._relatedLinks.length : "";
|
|
5458
5603
|
return [
|
|
5459
|
-
index.h("article", { class: classWrapperAttributes }, index.h("a", { class: classAttributes, href: this.url, target: target, "aria-label": this.scLabel }, index.h("div", { class: classImageContainerAttributes }, index.h("div", { class: classImageContainerImage }, this._sourceSet ? (index.h("picture", null, this._sourceSet.map((item) => (index.h("source", { srcSet: item.src, media: item.media, type: item.type, sizes: item.sizes ? item.sizes :
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
} }))) : (index.h("img", { loading: this.disableLazy ?
|
|
5463
|
-
|
|
5464
|
-
|
|
5604
|
+
index.h("article", { class: classWrapperAttributes }, index.h("a", { class: classAttributes, href: this.url, target: target, "aria-label": this.scLabel }, index.h("div", { class: classImageContainerAttributes }, index.h("div", { class: classImageContainerImage }, this._sourceSet ? (index.h("picture", null, this._sourceSet.map((item) => (index.h("source", { srcSet: item.src, media: item.media, type: item.type, sizes: item.sizes ? item.sizes : "" }))), index.h("img", { loading: this.disableLazy ? "eager" : "lazy", "aria-hidden": "true", src: this.itemImageUrl, alt: this.itemImageAlt, style: {
|
|
5605
|
+
"--minheight": `${this._imageMinHeight}px`,
|
|
5606
|
+
"--minwidth": `${this._imageMinWidth}px`,
|
|
5607
|
+
} }))) : (index.h("img", { loading: this.disableLazy ? "eager" : "lazy", "aria-hidden": "true", src: this.itemImageUrl, alt: this.itemImageAlt, style: {
|
|
5608
|
+
"--minheight": `${this._imageMinHeight}px`,
|
|
5609
|
+
"--minwidth": `${this._imageMinWidth}px`,
|
|
5465
5610
|
} }))), this.imageLabel && index.h("span", null, this.imageLabel)), index.h("div", { class: classInfoContainerAttributes }, index.h("div", { class: classContentWrapper }, index.h("div", { class: classInfoContainerTitle }, this.itemTitle), this.itemDescription && (index.h("div", { class: classInfoContainerDescription, innerHTML: this.itemDescription }))), index.h("div", { class: classMetadataWrapper }, this._additionalInfo && (index.h("div", { class: classInfoContainerAdditionalInfoAttributes }, this._additionalInfo.map((x) => {
|
|
5466
5611
|
let classInfoContainerAdditionalInfoItem = [
|
|
5467
5612
|
`hy-list-item__${this.variant}__info-container__additional-info__item`,
|
|
5468
5613
|
`hy-list-item__${this.variant}__info-container__additional-info__item__${this.headerstyle}`,
|
|
5469
|
-
`${x.isActive.toString() ==
|
|
5470
|
-
].join(
|
|
5614
|
+
`${x.isActive.toString() == "true" ? "active" : ""}`,
|
|
5615
|
+
].join(" ");
|
|
5471
5616
|
return index.h("div", { class: classInfoContainerAdditionalInfoItem }, x.text);
|
|
5472
|
-
}))), index.h("div", { class: classInfoContainerOutgoingLink }, index.h("a", { href: this.url, target: target, "aria-label": this.scLabel, class: classInfoContainerOutgoingLinkUrl, tabindex: "-1" }, index.h("span", { class: "label" }, this.outGoingUrlLabel), index.h("span", { class: "icon-wrapper" }, index.h("div", { class: "icon" }, index.h("hy-icon", { icon:
|
|
5473
|
-
let relatedLinkTarget = x.isExternal ?
|
|
5617
|
+
}))), index.h("div", { class: classInfoContainerOutgoingLink }, index.h("a", { href: this.url, target: target, "aria-label": this.scLabel, class: classInfoContainerOutgoingLinkUrl, tabindex: "-1" }, index.h("span", { class: "label" }, this.outGoingUrlLabel), index.h("span", { class: "icon-wrapper" }, index.h("div", { class: "icon" }, index.h("hy-icon", { icon: "hy-icon-arrow-to-right", size: 32 })))))))), this.relatedLinksBlockTitle && (index.h("div", { class: classRelatedInfoContainer }, index.h("div", { class: classRelatedInfoHeading }, index.h("a", { href: accordionItemHref, class: classRelatedInfoHeadingLink, tabindex: "-1" }, index.h("button", { "aria-expanded": "false", "aria-controls": `${titleAsId}--content`, class: classRelatedInfoHeadingButton, id: `${titleAsId}--title` }, index.h("span", { class: classRelatedInfoHeadingIcon }, index.h("hy-icon", { icon: "hy-icon-caret-down", size: 14 })), this.relatedLinksBlockTitle, " (", relatedLinksCount, ")"))), index.h("div", { class: classRelatedInfoContent, "aria-labelledBy": `${titleAsId}--title`, id: `${titleAsId}--content`, role: "region", "aria-hidden": "true" }, this._relatedLinks.map((x) => {
|
|
5618
|
+
let relatedLinkTarget = x.isExternal ? "_blank" : "_self";
|
|
5474
5619
|
return (index.h("a", { class: classRelatedInfoLink, href: x.url, target: target, "aria-label": relatedLinkTarget }, x.label));
|
|
5475
5620
|
}))))),
|
|
5476
5621
|
];
|
|
5477
5622
|
}
|
|
5478
5623
|
default: {
|
|
5479
|
-
return (index.h("article", null, index.h("a", { class: classAttributes, href: this.url, target: target, "aria-label": this.scLabel }, index.h("div", { class: classInfoContainerAttributes }, index.h("div", { class: classInfoContainerHeader }, this.itemType), index.h("div", { class: classInfoContainerTitle }, this.itemTitle), index.h("div", { class: classInfoContainerLinkContainer }, index.h("span", { class: classInfoContainerLinkIcon }, index.h("hy-icon", { icon:
|
|
5624
|
+
return (index.h("article", null, index.h("a", { class: classAttributes, href: this.url, target: target, "aria-label": this.scLabel }, index.h("div", { class: classInfoContainerAttributes }, index.h("div", { class: classInfoContainerHeader }, this.itemType), index.h("div", { class: classInfoContainerTitle }, this.itemTitle), index.h("div", { class: classInfoContainerLinkContainer }, index.h("span", { class: classInfoContainerLinkIcon }, index.h("hy-icon", { icon: "hy-icon-link", size: 15 })), index.h("div", { class: classInfoContainerLink }, this.url)), this.itemDescription && (index.h("div", { class: classInfoContainerDescription, innerHTML: this.itemDescription }))))));
|
|
5480
5625
|
}
|
|
5481
5626
|
}
|
|
5482
5627
|
}
|
|
@@ -5517,10 +5662,10 @@ const HyLogoGridItem = class {
|
|
|
5517
5662
|
const parsedLink = this.link ? JSON.parse(this.link) : null;
|
|
5518
5663
|
return parsedImage.map(({ image_sources: sources, image_url: fallback_url, image_alt: alt }) => {
|
|
5519
5664
|
const parsedSources = JSON.parse(sources);
|
|
5520
|
-
const elementContent = (index.h("figure", { class: "hy-logo-grid__figure" }, parsedSources && (index.h("picture", null, parsedSources.map(({ src, media, type, sizes }) => (index.h("source", { srcSet: src, media: media, type: type, sizes: sizes ? sizes :
|
|
5665
|
+
const elementContent = (index.h("figure", { class: "hy-logo-grid__figure" }, parsedSources && (index.h("picture", null, parsedSources.map(({ src, media, type, sizes }) => (index.h("source", { srcSet: src, media: media, type: type, sizes: sizes ? sizes : "" }))), index.h("img", { alt: alt, src: fallback_url }))), !parsedSources && index.h("img", { alt: alt, src: fallback_url })));
|
|
5521
5666
|
if (parsedLink) {
|
|
5522
5667
|
const { url, target } = parsedLink;
|
|
5523
|
-
const targetValue = target ===
|
|
5668
|
+
const targetValue = target === "_blank" ? target : "_self";
|
|
5524
5669
|
return (index.h("a", { href: url, target: targetValue, class: "hy-logo-grid__link" }, elementContent));
|
|
5525
5670
|
}
|
|
5526
5671
|
return elementContent;
|
|
@@ -5538,10 +5683,10 @@ const HyMain = class {
|
|
|
5538
5683
|
}
|
|
5539
5684
|
render() {
|
|
5540
5685
|
const classAttributes = [
|
|
5541
|
-
|
|
5542
|
-
this.hasSidebar ?
|
|
5543
|
-
this.hasSidebar ?
|
|
5544
|
-
].join(
|
|
5686
|
+
"hy-main",
|
|
5687
|
+
this.hasSidebar ? "with-sidebar" : "without-sidebar",
|
|
5688
|
+
this.hasSidebar ? "hy-main__common" : "hy-main__large",
|
|
5689
|
+
].join(" ");
|
|
5545
5690
|
return (index.h("div", { class: classAttributes }, index.h("slot", null)));
|
|
5546
5691
|
}
|
|
5547
5692
|
};
|
|
@@ -5554,7 +5699,7 @@ const HyMainContentWrapper = class {
|
|
|
5554
5699
|
index.registerInstance(this, hostRef);
|
|
5555
5700
|
}
|
|
5556
5701
|
render() {
|
|
5557
|
-
const classAttributes = [
|
|
5702
|
+
const classAttributes = ["hy-main-content-wrapper"].join(" ");
|
|
5558
5703
|
return (index.h(index.Host, null, index.h("div", { class: classAttributes }, index.h("slot", null))));
|
|
5559
5704
|
}
|
|
5560
5705
|
};
|
|
@@ -5605,10 +5750,10 @@ const MenuLanguage = class {
|
|
|
5605
5750
|
}
|
|
5606
5751
|
adjustPosition(languageMenuSelector, target) {
|
|
5607
5752
|
const languagePanel = languageMenuSelector.shadowRoot.querySelectorAll(`.menu-language__dropdown`)[0];
|
|
5608
|
-
let headerHeight =
|
|
5753
|
+
let headerHeight = "0";
|
|
5609
5754
|
let hyHeader = this.isGroup
|
|
5610
|
-
? target.closest(
|
|
5611
|
-
: target.closest(
|
|
5755
|
+
? target.closest(".hy-site-header__content-top")
|
|
5756
|
+
: target.closest(".hy-site-header");
|
|
5612
5757
|
if (hyHeader) {
|
|
5613
5758
|
let rectHeader = hyHeader.getBoundingClientRect();
|
|
5614
5759
|
let rectLangMenu = languageMenuSelector.getBoundingClientRect();
|
|
@@ -5621,22 +5766,22 @@ const MenuLanguage = class {
|
|
|
5621
5766
|
this._labels = await globalScript.jsonParserWorker(this.labels);
|
|
5622
5767
|
}
|
|
5623
5768
|
render() {
|
|
5624
|
-
const black =
|
|
5625
|
-
const white =
|
|
5769
|
+
const black = "var(--brand-main-nearly-black)";
|
|
5770
|
+
const white = "var(--grayscale-white)";
|
|
5626
5771
|
const svgColor = this.isGroup ? white : black;
|
|
5627
5772
|
const globeIconSize = this.isGroup ? 16 : 14;
|
|
5628
5773
|
return (index.h("div", { class: {
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5774
|
+
"menu-language": true,
|
|
5775
|
+
"is-open": this.isMenuOpen,
|
|
5776
|
+
"is-group": this.isGroup,
|
|
5632
5777
|
} }, index.h("button", { class: {
|
|
5633
|
-
|
|
5634
|
-
}, "aria-label": this.isMenuOpen ? this._labels[
|
|
5778
|
+
"menu-language__toggle": true,
|
|
5779
|
+
}, "aria-label": this.isMenuOpen ? this._labels["close"] : this._labels["open"] }, index.h("hy-icon", { icon: "hy-icon-globe", size: globeIconSize, fill: svgColor }), index.h("span", null, this._dataMenuLanguage.map(({ isActive, langCode }) => {
|
|
5635
5780
|
if (isActive) {
|
|
5636
5781
|
return langCode;
|
|
5637
5782
|
}
|
|
5638
|
-
})), index.h("hy-icon", { icon:
|
|
5639
|
-
|
|
5783
|
+
})), index.h("hy-icon", { icon: "hy-icon-caret-down", size: 8, fill: svgColor })), index.h("div", { class: {
|
|
5784
|
+
"menu-language__dropdown": true,
|
|
5640
5785
|
}, "aria-hidden": `${!this.isMenuOpen}` }, index.h("ul", { class: "menu-language__links" }, this._dataMenuLanguage.map((item) => {
|
|
5641
5786
|
return (index.h("hy-menu-language-item", { "lang-code": item.langCode, url: item.url, label: item.label, abbr: item.abbr, "is-active": item.isActive, "is-disabled": item.isDisabled }));
|
|
5642
5787
|
})))));
|
|
@@ -5659,9 +5804,9 @@ const SiteLanguage = class {
|
|
|
5659
5804
|
}
|
|
5660
5805
|
render() {
|
|
5661
5806
|
return (index.h("li", { class: `menu-language__links-item` }, index.h("a", { href: this.url, lang: this.langCode, class: {
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5807
|
+
"is-active": this.isActive,
|
|
5808
|
+
"is-disabled": this.isDisabled,
|
|
5809
|
+
"menu-language__link": true,
|
|
5665
5810
|
} }, this.label)));
|
|
5666
5811
|
}
|
|
5667
5812
|
};
|
|
@@ -5670,15 +5815,15 @@ SiteLanguage.style = menuLanguageItemCss;
|
|
|
5670
5815
|
const hyMenuMainGroupCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host{display:block}:host(.menu--main-group){-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row;flex-flow:row;margin-left:28px}@media (min-width: 75.0625rem){:host(.menu--main-group){margin-right:auto}}.menu--main-group__toggle{font-size:0.875rem;line-height:16px;font-weight:600;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:var(--grayscale-black);border:0 none;color:var(--grayscale-white);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row;flex-flow:row;font-family:var(--main-font-family);letter-spacing:-0.44px;margin:0 -4px;padding:0;position:relative}.menu--main-group__toggle:focus{outline:none}.menu--main-group__toggle:hover{cursor:pointer}.menu--main-group__toggle:hover span{color:var(--grayscale-medium)}.menu--main-group__toggle:hover svg{fill:var(--grayscale-medium)}@media (min-width: 60rem){.menu--main-group__toggle .toggle__caret svg{height:15.27px;width:3px}}@media (min-width: 75.0625rem){.menu--main-group__toggle .toggle__caret svg{height:14px;width:3px}}@media (min-width: 60rem){.menu--main-group__toggle span{margin-left:17px}}.menu--main-group__toggle.is-open:after{border-bottom:3px solid white;bottom:-10px;content:\" \";position:absolute;width:100%}@media (min-width: 60rem){.menu--main-group__toggle.is-open .toggle__close{height:15px;width:15px}.menu--main-group__toggle.is-open .toggle__close svg{height:15px;width:15px}}@media (min-width: 60rem){.menu--main-group__toggle.is-open span{margin-left:10px}}.menu--main-group__dropdown{display:none;visibility:hidden}.menu--main-group__dropdown.is-open{background-color:var(--grayscale-black);border-radius:0 0 5px 5px;-webkit-box-shadow:0 10px 10px rgba(0, 0, 0, 0.2);box-shadow:0 10px 10px rgba(0, 0, 0, 0.2);color:var(--grayscale-white);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--main-font-family);left:0;margin:0;padding:6px 0 20px;position:absolute;top:0;visibility:visible;width:100%;z-index:511}.menu--main-group__dropdown.is-open .list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column;flex-flow:column;justify-items:center;padding-top:14px;position:relative}.menu--main-group__dropdown.is-open .panel-toggle{background-color:transparent;border:none;position:absolute;right:0;top:0}@media (min-width: 60rem){.menu--main-group__dropdown.is-open .panel-toggle{padding:26px 32px}}.menu--main-group__dropdown.is-open .panel-toggle__label{font-size:1rem;line-height:20px;font-weight:700;color:var(--grayscale-white);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--main-font-family);letter-spacing:-0.5px;text-transform:uppercase}.menu--main-group__dropdown.is-open .panel-toggle__label__title{padding-right:12px}.menu--main-group__dropdown.is-open .panel-toggle__label:hover{cursor:pointer}.menu--main-group__dropdown.is-open .panel-toggle__label:hover span{color:var(--grayscale-medium)}.menu--main-group__dropdown.is-open .panel-toggle__label:hover svg{fill:var(--grayscale-medium)}.menu--main-group__dropdown.is-open .menu-main-link{font-size:1rem;line-height:20px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--main-font-family);-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-bottom:20px;text-decoration:none}@media (min-width: 75.0625rem){.menu--main-group__dropdown.is-open .menu-main-link{font-size:0.875rem;line-height:18px}}.menu--main-group__dropdown.is-open .menu-main-link:hover span{color:var(--grayscale-medium)}.menu--main-group__dropdown.is-open .menu-main-link:hover svg{fill:var(--grayscale-medium)}.menu--main-group__dropdown.is-open .menu--main-group__label{color:var(--grayscale-white);margin-left:12px}:host(.menu--main-group--mobile){-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row;flex-flow:row;position:relative}.menu--main-group__mobile-toggle{border:none;background:transparent;padding:15px 12px}.menu--main-group__mobile-toggle:hover{cursor:pointer}.menu--main-group__dropdown__top{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:23px}.menu--main-group__dropdown__close{border:none;background-color:transparent;padding:0;margin:0}.menu--main-group__dropdown__close:hover{cursor:pointer}.menu--main-group__logo-container .hy-site-logo__label.group{max-width:250px}.menu--main-group__dropdown__items{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.menu--main-group__dropdown__items .menu-main-link{font-size:0.9375rem;line-height:20px;background-color:var(--grayscale-dark-text);color:var(--grayscale-white);font-family:var(--main-font-family);letter-spacing:-0.5px;margin-bottom:8px;padding:14px 20px;text-decoration:none;width:100%}.menu--main-group__dropdown__items .menu-main-link:hover{text-decoration:underline}.menu--main-group__dropdown__donate{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background-color:var(--grayscale-dark-text);position:fixed;bottom:0;margin-left:-20px;width:100%}.menu--main-group__dropdown__donate .hy-link__donate.group{font-size:1rem;line-height:16px;font-weight:600;display:-webkit-box;display:-ms-flexbox;display:flex;color:var(--grayscale-white);font-family:var(--main-font-family);margin:20px auto 16px auto;text-decoration:none}.menu--main-group__dropdown__donate .hy-link__donate.group .hy-link__donate__label{margin-left:6px}.menu--main-group__dropdown--mobile{-webkit-box-direction:normal;-webkit-box-orient:vertical;background-color:var(--grayscale-black);bottom:0px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;justify-items:space-between;max-width:400px;overflow:hidden;padding:0px;place-items:stretch;position:fixed;right:0px;top:0px;-webkit-transform:translateX(100%);transform:translateX(100%);-webkit-transition:all 0.3s ease 0s;transition:all 0.3s ease 0s;visibility:hidden;width:0px}.menu--main-group__dropdown--mobile.is-open{padding:50px 20px 20px;-webkit-transform:translateX(0px);transform:translateX(0px);-webkit-transition:-webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1);transition:-webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1);transition:transform 0.3s cubic-bezier(0, 0, 0.3, 1);transition:transform 0.3s cubic-bezier(0, 0, 0.3, 1), -webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1);visibility:visible;width:90%;z-index:101}.menu--main-group__dropdown--mobile.is-open::after{opacity:1;visibility:visible}";
|
|
5671
5816
|
|
|
5672
5817
|
let keys$1 = {
|
|
5673
|
-
enter:
|
|
5818
|
+
enter: "Enter",
|
|
5674
5819
|
};
|
|
5675
5820
|
const HyMenuMainGroup = class {
|
|
5676
5821
|
constructor(hostRef) {
|
|
5677
5822
|
index.registerInstance(this, hostRef);
|
|
5678
5823
|
this.universityMainMenuToggled = index.createEvent(this, "universityMainMenuToggled", 7);
|
|
5679
5824
|
this.mobileMenuTopToggle = index.createEvent(this, "mobileMenuTopToggle", 7);
|
|
5680
|
-
this.menuLabel =
|
|
5681
|
-
this.menuLabelClose =
|
|
5825
|
+
this.menuLabel = "University main menu";
|
|
5826
|
+
this.menuLabelClose = "Close";
|
|
5682
5827
|
this.dataMainMenu = undefined;
|
|
5683
5828
|
this.isMobile = false;
|
|
5684
5829
|
this.logoUrl = undefined;
|
|
@@ -5700,7 +5845,7 @@ const HyMenuMainGroup = class {
|
|
|
5700
5845
|
event.stopPropagation();
|
|
5701
5846
|
const key = event.code;
|
|
5702
5847
|
let target = event.target;
|
|
5703
|
-
if (key ===
|
|
5848
|
+
if (key === "Escape" && this.isMenuOpen) {
|
|
5704
5849
|
this.isMenuOpen = false;
|
|
5705
5850
|
this.emitEvent();
|
|
5706
5851
|
}
|
|
@@ -5718,11 +5863,11 @@ const HyMenuMainGroup = class {
|
|
|
5718
5863
|
this.mobileMenuTopToggle.emit();
|
|
5719
5864
|
}
|
|
5720
5865
|
adjustMainMenuPosition(target) {
|
|
5721
|
-
let hyTopHeader = this.el.closest(
|
|
5722
|
-
if (hyTopHeader && !hyTopHeader.hasAttribute(
|
|
5723
|
-
let mainMenuToggle = target.shadowRoot.querySelector(
|
|
5724
|
-
let mainMenuDropdown = target.shadowRoot.querySelector(
|
|
5725
|
-
let mainMenuList = target.shadowRoot.querySelector(
|
|
5866
|
+
let hyTopHeader = this.el.closest(".hy-site-header__content-top");
|
|
5867
|
+
if (hyTopHeader && !hyTopHeader.hasAttribute("is-mobile")) {
|
|
5868
|
+
let mainMenuToggle = target.shadowRoot.querySelector(".menu--main-group__toggle");
|
|
5869
|
+
let mainMenuDropdown = target.shadowRoot.querySelector(".menu--main-group__dropdown");
|
|
5870
|
+
let mainMenuList = target.shadowRoot.querySelector(".list");
|
|
5726
5871
|
if (mainMenuDropdown && mainMenuList && mainMenuToggle) {
|
|
5727
5872
|
let rectHeader = hyTopHeader.getBoundingClientRect();
|
|
5728
5873
|
let rectMenuToggle = mainMenuToggle.getBoundingClientRect();
|
|
@@ -5730,23 +5875,23 @@ const HyMenuMainGroup = class {
|
|
|
5730
5875
|
mainMenuList.style.left = `${rectMenuToggle.left}px`;
|
|
5731
5876
|
}
|
|
5732
5877
|
let headerHeight = hyTopHeader.offsetHeight + 270;
|
|
5733
|
-
this.showBackdropShadow(
|
|
5878
|
+
this.showBackdropShadow("open", headerHeight);
|
|
5734
5879
|
}
|
|
5735
5880
|
}
|
|
5736
|
-
showBackdropShadow(state =
|
|
5737
|
-
let hyHeader = this.el.closest(
|
|
5881
|
+
showBackdropShadow(state = "close", top = 0) {
|
|
5882
|
+
let hyHeader = this.el.closest(".hy-site-header");
|
|
5738
5883
|
let hyBackdropDiv = hyHeader.children[0];
|
|
5739
5884
|
if (hyBackdropDiv) {
|
|
5740
|
-
if (state ===
|
|
5885
|
+
if (state === "open") {
|
|
5741
5886
|
let me = window.outerHeight - top;
|
|
5742
5887
|
hyBackdropDiv.style.height = `${me}px`;
|
|
5743
5888
|
hyBackdropDiv.style.top = `${top}px`;
|
|
5744
|
-
hyBackdropDiv.style.position =
|
|
5745
|
-
hyBackdropDiv.classList.add(
|
|
5889
|
+
hyBackdropDiv.style.position = "absolute";
|
|
5890
|
+
hyBackdropDiv.classList.add("is-active");
|
|
5746
5891
|
}
|
|
5747
5892
|
else {
|
|
5748
|
-
hyBackdropDiv.removeAttribute(
|
|
5749
|
-
hyBackdropDiv.classList.remove(
|
|
5893
|
+
hyBackdropDiv.removeAttribute("style");
|
|
5894
|
+
hyBackdropDiv.classList.remove("is-active");
|
|
5750
5895
|
}
|
|
5751
5896
|
}
|
|
5752
5897
|
}
|
|
@@ -5780,37 +5925,37 @@ const HyMenuMainGroup = class {
|
|
|
5780
5925
|
this.isMenuOpen = false;
|
|
5781
5926
|
}
|
|
5782
5927
|
render() {
|
|
5783
|
-
const white =
|
|
5928
|
+
const white = "var(--grayscale-white)";
|
|
5784
5929
|
const logoSizeGroup = this.isMobile ? utils.SiteLogoSize.small : utils.SiteLogoSize.small;
|
|
5785
5930
|
const logoColorGroup = utils.ColorVariant.white;
|
|
5786
5931
|
return this.isMobile ? (index.h(index.Host, { class: {
|
|
5787
|
-
|
|
5788
|
-
|
|
5932
|
+
"menu--main-group--mobile": true,
|
|
5933
|
+
"menu--main-group--mobile__is-open": this.isMenuOpen,
|
|
5789
5934
|
} }, index.h("button", { "aria-label": this.menuLabel, class: {
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
} }, index.h("hy-icon", { icon:
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
} }, index.h("div", { class: "menu--main-group__dropdown__top" }, index.h("div", { class:
|
|
5796
|
-
return (index.h("a", { href: item.url, class: {
|
|
5935
|
+
"menu--main-group__mobile-toggle": true,
|
|
5936
|
+
"is-open": this.isMenuOpen,
|
|
5937
|
+
} }, index.h("hy-icon", { icon: "hy-icon-slim-hamburger-menu", size: 20, fill: white })), index.h("nav", { role: "navigation", "aria-hidden": this.isMenuOpen ? "false" : "true", class: {
|
|
5938
|
+
"menu--main-group__dropdown--mobile": true,
|
|
5939
|
+
"is-open": this.isMenuOpen,
|
|
5940
|
+
} }, index.h("div", { class: "menu--main-group__dropdown__top" }, index.h("div", { class: "menu--main-group__logo-container", id: "menu-logo" }, index.h("hy-site-logo", { "is-group": true, size: logoSizeGroup, color: logoColorGroup, url: this.siteUrl, label: this.siteLabel })), index.h("button", { "aria-label": `Close ${this.menuLabel}`, class: "menu--main-group__dropdown__close", onClick: (e) => this.handleTopMenuClose(e) }, index.h("hy-icon", { icon: "hy-icon-remove", size: 20, fill: white }))), index.h("div", { class: "menu--main-group__dropdown__items" }, this._dataMainMenu.map((item) => {
|
|
5941
|
+
return (index.h("a", { href: item.url, class: { "menu-main-link": true } }, index.h("span", { class: "menu--main-group__label" }, item.label)));
|
|
5797
5942
|
})), index.h("div", { class: "menu--main-group__dropdown__donate" }, this.donate &&
|
|
5798
5943
|
this.donate.map((i) => {
|
|
5799
|
-
return (index.h("a", { class:
|
|
5944
|
+
return (index.h("a", { class: "menu--secondary__item hy-link__donate group", href: i.url }, index.h("hy-icon", { icon: "hy-icon-heart-support", size: 14, fill: logoColorGroup }), index.h("span", { class: "hy-link__donate__label group" }, i.label)));
|
|
5800
5945
|
}))))) : (index.h(index.Host, { class: {
|
|
5801
|
-
|
|
5802
|
-
|
|
5946
|
+
"menu--main-group": true,
|
|
5947
|
+
"menu--main-group__is-open": this.isMenuOpen,
|
|
5803
5948
|
} }, index.h("button", { class: {
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
}, "aria-expanded": this.isMenuOpen ?
|
|
5807
|
-
|
|
5808
|
-
|
|
5949
|
+
"menu--main-group__toggle": true,
|
|
5950
|
+
"is-open": this.isMenuOpen,
|
|
5951
|
+
}, "aria-expanded": this.isMenuOpen ? "true" : "false", "aria-haspopup": "menu" }, this.isMenuOpen ? (index.h("hy-icon", { class: "toggle__close", icon: "hy-icon-remove", size: 8, fill: white })) : (index.h("hy-icon", { class: "toggle__caret", icon: "hy-icon-slim-hamburger-menu", size: 8, fill: white })), index.h("span", null, this.menuLabel)), index.h("div", { class: {
|
|
5952
|
+
"menu--main-group__dropdown": true,
|
|
5953
|
+
"is-open": this.isMenuOpen,
|
|
5809
5954
|
} }, index.h("div", { class: "list" }, this._dataMainMenu.map((item) => {
|
|
5810
|
-
return (index.h("a", { href: item.url, class: {
|
|
5955
|
+
return (index.h("a", { href: item.url, class: { "menu-main-link": true } }, index.h("span", { class: "heading-icon" }, index.h("hy-icon", { icon: "hy-icon-caret-right", size: 10, fill: white })), index.h("span", { class: "menu--main-group__label" }, item.label)));
|
|
5811
5956
|
})), index.h("button", { onClick: (e) => this.handleComponentClick(e), class: {
|
|
5812
|
-
|
|
5813
|
-
}, "aria-label": "Close menu" }, index.h("span", { class: "panel-toggle__label" }, index.h("span", { class: "panel-toggle__label__title" }, this.menuLabelClose), index.h("hy-icon", { icon:
|
|
5957
|
+
"panel-toggle": true,
|
|
5958
|
+
}, "aria-label": "Close menu" }, index.h("span", { class: "panel-toggle__label" }, index.h("span", { class: "panel-toggle__label__title" }, this.menuLabelClose), index.h("hy-icon", { icon: "hy-icon-remove", size: 20, fill: utils.ColorVariant.white }))))));
|
|
5814
5959
|
}
|
|
5815
5960
|
get el() { return index.getElement(this); }
|
|
5816
5961
|
};
|
|
@@ -5823,7 +5968,7 @@ const HyOpeningHours = class {
|
|
|
5823
5968
|
index.registerInstance(this, hostRef);
|
|
5824
5969
|
this.blockTitle = null;
|
|
5825
5970
|
this.language = undefined;
|
|
5826
|
-
this.venueType =
|
|
5971
|
+
this.venueType = "libraries";
|
|
5827
5972
|
this.blockId = undefined;
|
|
5828
5973
|
this.nextLabel = undefined;
|
|
5829
5974
|
this.prevLabel = undefined;
|
|
@@ -5832,7 +5977,7 @@ const HyOpeningHours = class {
|
|
|
5832
5977
|
this.customerServiceLabel = undefined;
|
|
5833
5978
|
this.date = null;
|
|
5834
5979
|
this.dateTitle = null;
|
|
5835
|
-
this.dateType =
|
|
5980
|
+
this.dateType = "day";
|
|
5836
5981
|
this.multiple = false;
|
|
5837
5982
|
this.customLinkTitle = null;
|
|
5838
5983
|
this.customLink = null;
|
|
@@ -5840,12 +5985,12 @@ const HyOpeningHours = class {
|
|
|
5840
5985
|
}
|
|
5841
5986
|
render() {
|
|
5842
5987
|
const containerClasses = [
|
|
5843
|
-
|
|
5844
|
-
this.exceptional ?
|
|
5845
|
-
].join(
|
|
5846
|
-
const listClasses = [
|
|
5847
|
-
const buildingClasses = [
|
|
5848
|
-
return (index.h(index.Host, null, index.h("div", { class: containerClasses, "data-lang": this.language, "data-id": this.blockId, "data-date": this.date, "data-type": this.dateType, "data-multiple": this.multiple }, this.blockTitle && index.h("h3", { class: "open-hours__title" }, this.blockTitle), !this.exceptional && (index.h("div", { class: "open-hours__date-change" }, index.h("button", { "aria-label": this.prevLabel, class: "icon--arrow-left open-hours__prev-date" }, index.h("hy-icon", { icon:
|
|
5988
|
+
"hy-open-hours--container",
|
|
5989
|
+
this.exceptional ? "hy-open-hours--container--exceptional" : "",
|
|
5990
|
+
].join(" ");
|
|
5991
|
+
const listClasses = ["open-hours__content__top-label", this.venueType].join(" ");
|
|
5992
|
+
const buildingClasses = ["open-hours__content__top-label building", this.venueType].join(" ");
|
|
5993
|
+
return (index.h(index.Host, null, index.h("div", { class: containerClasses, "data-lang": this.language, "data-id": this.blockId, "data-date": this.date, "data-type": this.dateType, "data-multiple": this.multiple }, this.blockTitle && index.h("h3", { class: "open-hours__title" }, this.blockTitle), !this.exceptional && (index.h("div", { class: "open-hours__date-change" }, index.h("button", { "aria-label": this.prevLabel, class: "icon--arrow-left open-hours__prev-date" }, index.h("hy-icon", { icon: "hy-icon-caret-left", size: 18 })), index.h("span", { class: "open-hours__date-change--title" }, this.dateTitle), index.h("button", { "aria-label": this.nextLabel, class: "icon--arrow-right open-hours__next-date" }, index.h("hy-icon", { icon: "hy-icon-caret-right", size: 18 })))), index.h("div", { class: "open-hours__content__top" }, index.h("span", { class: listClasses }, this.listLabel), index.h("span", { class: buildingClasses }, this.buildingLabel), this.customerServiceLabel && index.h("span", { class: listClasses }, this.customerServiceLabel)), index.h("div", { class: "open-hours__content" }, index.h("slot", null)), this.customLink && (index.h("div", { class: "open-hours__links" }, index.h("hy-cta-link", { "full-width": true, "link-content": this.customLinkTitle, "sc-label": this.customLinkTitle, url: this.customLink, variant: utils.CtaLinkVariants.linkList }, this.customLinkTitle)))), index.h("hy-box", { mb: "1.75, 1.75, 2, 2.5" })));
|
|
5849
5994
|
}
|
|
5850
5995
|
};
|
|
5851
5996
|
HyOpeningHours.style = hyOpeningHoursCss;
|
|
@@ -5857,11 +6002,11 @@ const HyOpeningHoursContent = class {
|
|
|
5857
6002
|
index.registerInstance(this, hostRef);
|
|
5858
6003
|
this.multiple = false;
|
|
5859
6004
|
this.selfServiceLabel = null;
|
|
5860
|
-
this.venueType =
|
|
6005
|
+
this.venueType = "libraries";
|
|
5861
6006
|
this.dataItems = undefined;
|
|
5862
6007
|
}
|
|
5863
6008
|
dataItemsWatcher(data) {
|
|
5864
|
-
this._dataItems = typeof data ===
|
|
6009
|
+
this._dataItems = typeof data === "string" ? JSON.parse(data) : data;
|
|
5865
6010
|
}
|
|
5866
6011
|
componentWillLoad() {
|
|
5867
6012
|
this.dataItemsWatcher(this.dataItems);
|
|
@@ -5870,15 +6015,15 @@ const HyOpeningHoursContent = class {
|
|
|
5870
6015
|
return (index.h(index.Host, null, this._dataItems.map((item) => {
|
|
5871
6016
|
if (!item.service)
|
|
5872
6017
|
return;
|
|
5873
|
-
const itemClasses = [
|
|
6018
|
+
const itemClasses = ["open-hours__list-item", item.today ? "open-hours__list-item--today" : ""].join(" ");
|
|
5874
6019
|
return (index.h("div", { class: itemClasses }, index.h("span", { class: "open-hours__list-item--office" }, item.today ? item.today : item.dateLibrary), index.h("span", { class: "open-hours__list-item--hours" }, item.building), index.h("span", { class: "open-hours__list-item--service" }, item.service)));
|
|
5875
6020
|
}), this.selfServiceLabel && (index.h("div", { class: "open-hours__content__top" }, index.h("span", { class: "open-hours__content__top-label" }, this.selfServiceLabel))), this._dataItems.map((item) => {
|
|
5876
6021
|
if (item.service)
|
|
5877
6022
|
return;
|
|
5878
|
-
const itemClasses = [
|
|
5879
|
-
const hoursClasses = [
|
|
5880
|
-
const officeClasses = [
|
|
5881
|
-
return (index.h("div", { class: itemClasses }, index.h("span", { class: officeClasses }, item.today ? item.today : item.dateLibrary), index.h("span", { class: hoursClasses }, item.building), this.venueType !==
|
|
6023
|
+
const itemClasses = ["open-hours__list-item", item.today ? "open-hours__list-item--today" : ""].join(" ");
|
|
6024
|
+
const hoursClasses = ["open-hours__list-item--hours", this.venueType].join(" ");
|
|
6025
|
+
const officeClasses = ["open-hours__list-item--office", this.venueType].join(" ");
|
|
6026
|
+
return (index.h("div", { class: itemClasses }, index.h("span", { class: officeClasses }, item.today ? item.today : item.dateLibrary), index.h("span", { class: hoursClasses }, item.building), this.venueType !== "luomus" && index.h("span", { class: "open-hours__list-item--service" }, "-")));
|
|
5882
6027
|
})));
|
|
5883
6028
|
}
|
|
5884
6029
|
static get watchers() { return {
|
|
@@ -5894,7 +6039,7 @@ const HyPager = class {
|
|
|
5894
6039
|
index.registerInstance(this, hostRef);
|
|
5895
6040
|
}
|
|
5896
6041
|
render() {
|
|
5897
|
-
const classAttributes = [
|
|
6042
|
+
const classAttributes = ["hy-pager"].join(" ");
|
|
5898
6043
|
return (index.h("ul", { class: classAttributes }, index.h("slot", null)));
|
|
5899
6044
|
}
|
|
5900
6045
|
};
|
|
@@ -5911,28 +6056,28 @@ const HyPagerItem = class {
|
|
|
5911
6056
|
this.scAriaLabel = undefined;
|
|
5912
6057
|
}
|
|
5913
6058
|
render() {
|
|
5914
|
-
let classAttributes = [
|
|
6059
|
+
let classAttributes = ["hy-pager__item"].join(" ");
|
|
5915
6060
|
switch (this.variant) {
|
|
5916
6061
|
case utils.PaginationItemVariants.current: {
|
|
5917
|
-
classAttributes = [
|
|
6062
|
+
classAttributes = ["hy-pager__item", "hy-pager__item__current"].join(" ");
|
|
5918
6063
|
return (index.h("li", { class: classAttributes }, index.h("a", { href: this.itemUrl, "aria-current": "true" }, this.itemLabel)));
|
|
5919
6064
|
}
|
|
5920
6065
|
case utils.PaginationItemVariants.next: {
|
|
5921
|
-
classAttributes = [
|
|
5922
|
-
const iconClassAttributes = [
|
|
5923
|
-
return (index.h("li", { class: classAttributes }, index.h("a", { href: this.itemUrl, "aria-label": this.scAriaLabel }, this.itemLabel, index.h("span", { class:
|
|
6066
|
+
classAttributes = ["hy-pager__item", "hy-pager__item__next"].join(" ");
|
|
6067
|
+
const iconClassAttributes = ["link-icon"].join(" ");
|
|
6068
|
+
return (index.h("li", { class: classAttributes }, index.h("a", { href: this.itemUrl, "aria-label": this.scAriaLabel }, this.itemLabel, index.h("span", { class: "hy-icon-wrapper" }, index.h("div", { class: iconClassAttributes }, index.h("hy-icon", { icon: "hy-icon-arrow-to-right", size: 12 }))))));
|
|
5924
6069
|
}
|
|
5925
6070
|
case utils.PaginationItemVariants.previous: {
|
|
5926
|
-
classAttributes = [
|
|
5927
|
-
const iconClassAttributes = [
|
|
5928
|
-
return (index.h("li", { class: classAttributes }, index.h("a", { href: this.itemUrl, "aria-label": this.scAriaLabel }, index.h("span", { class:
|
|
6071
|
+
classAttributes = ["hy-pager__item", "hy-pager__item__previous"].join(" ");
|
|
6072
|
+
const iconClassAttributes = ["link-icon"].join(" ");
|
|
6073
|
+
return (index.h("li", { class: classAttributes }, index.h("a", { href: this.itemUrl, "aria-label": this.scAriaLabel }, index.h("span", { class: "hy-icon-wrapper" }, index.h("div", { class: iconClassAttributes }, index.h("hy-icon", { icon: "hy-icon-arrow-left", size: 12 }))), this.itemLabel)));
|
|
5929
6074
|
}
|
|
5930
6075
|
case utils.PaginationItemVariants.ellipsis: {
|
|
5931
|
-
classAttributes = [
|
|
6076
|
+
classAttributes = ["hy-pager__item", "hy-pager__item__ellipsis"].join(" ");
|
|
5932
6077
|
return index.h("li", { class: classAttributes }, "...");
|
|
5933
6078
|
}
|
|
5934
6079
|
default: {
|
|
5935
|
-
classAttributes = [
|
|
6080
|
+
classAttributes = ["hy-pager__item"].join(" ");
|
|
5936
6081
|
return (index.h("li", { class: classAttributes }, index.h("a", { href: this.itemUrl, "aria-label": this.scAriaLabel }, this.itemLabel)));
|
|
5937
6082
|
}
|
|
5938
6083
|
}
|
|
@@ -5950,25 +6095,25 @@ const ParagraphText = class {
|
|
|
5950
6095
|
constructor(hostRef) {
|
|
5951
6096
|
index.registerInstance(this, hostRef);
|
|
5952
6097
|
this.variant = undefined;
|
|
5953
|
-
this.placement =
|
|
5954
|
-
this.headerstyle =
|
|
6098
|
+
this.placement = "internal";
|
|
6099
|
+
this.headerstyle = "default";
|
|
5955
6100
|
}
|
|
5956
6101
|
componentDidLoad() {
|
|
5957
|
-
let hyMainDiv = this.el.closest(
|
|
6102
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
5958
6103
|
if (hyMainDiv) {
|
|
5959
|
-
if (!hyMainDiv.classList.contains(
|
|
5960
|
-
this.headerstyle =
|
|
6104
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
6105
|
+
this.headerstyle = "large";
|
|
5961
6106
|
}
|
|
5962
6107
|
}
|
|
5963
6108
|
}
|
|
5964
6109
|
render() {
|
|
5965
6110
|
const classAttributes = [
|
|
5966
|
-
|
|
6111
|
+
"hy-paragraph-text",
|
|
5967
6112
|
`hy-paragraph-text__${this.headerstyle}`,
|
|
5968
6113
|
`${this.variant}`,
|
|
5969
6114
|
`${this.placement}`,
|
|
5970
6115
|
`${this.headerstyle}`,
|
|
5971
|
-
].join(
|
|
6116
|
+
].join(" ");
|
|
5972
6117
|
return (index.h(index.Host, null, index.h("div", { class: classAttributes }, index.h("slot", null))));
|
|
5973
6118
|
}
|
|
5974
6119
|
get el() { return index.getElement(this); }
|
|
@@ -6022,44 +6167,44 @@ const HyPersonCard = class {
|
|
|
6022
6167
|
this.isMobile = size <= 479 ? true : false;
|
|
6023
6168
|
}
|
|
6024
6169
|
componentWillRender() {
|
|
6025
|
-
this._fullName = this.firstName && this.lastName ? `${this.firstName} ${this.lastName}` :
|
|
6170
|
+
this._fullName = this.firstName && this.lastName ? `${this.firstName} ${this.lastName}` : "";
|
|
6026
6171
|
this._initials =
|
|
6027
|
-
this.imageUrl && this.firstName && this.lastName ?
|
|
6172
|
+
this.imageUrl && this.firstName && this.lastName ? "" : `${this.firstName.charAt(0)}${this.lastName.charAt(0)}`;
|
|
6028
6173
|
if (!this.imageAlt) {
|
|
6029
6174
|
this.imageAlt = this._fullName;
|
|
6030
6175
|
}
|
|
6031
6176
|
if (!this.scLabel) {
|
|
6032
|
-
this.scLabel =
|
|
6177
|
+
this.scLabel = "Link to the person profile";
|
|
6033
6178
|
}
|
|
6034
6179
|
}
|
|
6035
6180
|
render() {
|
|
6036
|
-
let classLinkAttributes = [
|
|
6037
|
-
let classIsActive = this.url && this.url.length > 0 ?
|
|
6181
|
+
let classLinkAttributes = ["hy-person-card-container__link", this.variant].join(" ");
|
|
6182
|
+
let classIsActive = this.url && this.url.length > 0 ? "" : " inactive";
|
|
6038
6183
|
classLinkAttributes = classLinkAttributes.concat(classIsActive);
|
|
6039
|
-
const classAttributes = [
|
|
6184
|
+
const classAttributes = ["hy-person-card", this.variant].join(" ");
|
|
6040
6185
|
const classPositionTitle = [
|
|
6041
|
-
|
|
6186
|
+
"hy-person-card__info-container__position-title",
|
|
6042
6187
|
`hy-person-card__info-container__position-title__${this.variant}`,
|
|
6043
|
-
].join(
|
|
6044
|
-
const target = this.isExternal ?
|
|
6045
|
-
return (index.h("article", { class: "hy-person-card-container" }, index.h("div", { class: classLinkAttributes }, this.categoryTitle && this.variant == utils.PersonCardVariants.default && (index.h("div", { class: "hy-person-card-container__category-title" }, this.categoryTitle)), index.h("div", { class: classAttributes }, index.h("div", { class: "hy-person-card__image-container" }, this.imageUrl ? (index.h("a", { class: "hy-person-card__image-container__image", href: this.url, target: target }, index.h("img", { loading: this.disableLazy ?
|
|
6188
|
+
].join(" ");
|
|
6189
|
+
const target = this.isExternal ? "_blank" : "_self";
|
|
6190
|
+
return (index.h("article", { class: "hy-person-card-container" }, index.h("div", { class: classLinkAttributes }, this.categoryTitle && this.variant == utils.PersonCardVariants.default && (index.h("div", { class: "hy-person-card-container__category-title" }, this.categoryTitle)), index.h("div", { class: classAttributes }, index.h("div", { class: "hy-person-card__image-container" }, this.imageUrl ? (index.h("a", { class: "hy-person-card__image-container__image", href: this.url, target: target }, index.h("img", { loading: this.disableLazy ? "eager" : "lazy", "aria-hidden": "true", src: this.imageUrl, alt: this.imageAlt }))) : (index.h("div", { class: "hy-person-card__image-container__no-image" }, index.h("div", { class: "hy-person-card__image-container__no-image__initials", "aria-hidden": "true" }, this._initials)))), index.h("div", { class: "hy-person-card__info-container" }, index.h("a", { class: "hy-person-card__info-container__full-name", href: this.url, target: target }, this._fullName), this.positionTitle && index.h("div", { class: classPositionTitle }, this.positionTitle), this.department &&
|
|
6046
6191
|
(this.variant == utils.PersonCardVariants.default ||
|
|
6047
6192
|
(this.variant == utils.PersonCardVariants.extended && !this.isMobile)) && (index.h("div", { class: "hy-person-card__info-container__department" }, this.department)), this.field &&
|
|
6048
6193
|
(this.variant == utils.PersonCardVariants.default ||
|
|
6049
6194
|
(this.variant == utils.PersonCardVariants.extended && !this.isMobile)) && (index.h("div", { class: "hy-person-card__info-container__field" }, this.field)), this.email &&
|
|
6050
6195
|
(this.variant == utils.PersonCardVariants.default ||
|
|
6051
6196
|
(this.variant == utils.PersonCardVariants.extended && !this.isMobile)) && [
|
|
6052
|
-
index.h("div", { class: "hy-person-card__info-container__email-container" }, index.h("span", { class: "hy-person-card__info-container__email__icon" }, index.h("hy-icon", { icon:
|
|
6197
|
+
index.h("div", { class: "hy-person-card__info-container__email-container" }, index.h("span", { class: "hy-person-card__info-container__email__icon" }, index.h("hy-icon", { icon: "hy-icon-email", size: 16 })), index.h("span", { class: "hy-person-card__info-container__email" }, this.email)),
|
|
6053
6198
|
], this.phone &&
|
|
6054
6199
|
(this.variant == utils.PersonCardVariants.default ||
|
|
6055
6200
|
(this.variant == utils.PersonCardVariants.extended && !this.isMobile)) && [
|
|
6056
|
-
index.h("div", { class: "hy-person-card__info-container__phone-container" }, index.h("span", { class: "hy-person-card__info-container__phone__icon" }, index.h("hy-icon", { icon:
|
|
6201
|
+
index.h("div", { class: "hy-person-card__info-container__phone-container" }, index.h("span", { class: "hy-person-card__info-container__phone__icon" }, index.h("hy-icon", { icon: "hy-icon-phone", size: 14 })), index.h("span", { class: "hy-person-card__info-container__phone" }, this.phone)),
|
|
6057
6202
|
])), this.variant == utils.PersonCardVariants.extended && (index.h("div", { class: "hy-person-card hy-person-card__extended-info-container" }, this.department && this.isMobile && (index.h("div", { class: "hy-person-card__info-container__department" }, this.department)), this.field && this.isMobile && index.h("div", { class: "hy-person-card__info-container__field" }, this.field), this.email &&
|
|
6058
6203
|
this.isMobile && [
|
|
6059
|
-
index.h("div", { class: "hy-person-card__info-container__email-container" }, index.h("span", { class: "hy-person-card__info-container__email__icon" }, index.h("hy-icon", { icon:
|
|
6204
|
+
index.h("div", { class: "hy-person-card__info-container__email-container" }, index.h("span", { class: "hy-person-card__info-container__email__icon" }, index.h("hy-icon", { icon: "hy-icon-email", size: 16 })), index.h("span", { class: "hy-person-card__info-container__email" }, this.email)),
|
|
6060
6205
|
], this.phone &&
|
|
6061
6206
|
this.isMobile && [
|
|
6062
|
-
index.h("div", { class: "hy-person-card__info-container__phone-container" }, index.h("span", { class: "hy-person-card__info-container__phone__icon" }, index.h("hy-icon", { icon:
|
|
6207
|
+
index.h("div", { class: "hy-person-card__info-container__phone-container" }, index.h("span", { class: "hy-person-card__info-container__phone__icon" }, index.h("hy-icon", { icon: "hy-icon-phone", size: 14 })), index.h("span", { class: "hy-person-card__info-container__phone" }, this.phone)),
|
|
6063
6208
|
], this.aboutInfo && (index.h("div", { class: "hy-person-card__extended-info-container__about" }, index.h("span", { class: "label" }, this.aboutInfoLabel, ":"), index.h("span", null, this.aboutInfo))))))));
|
|
6064
6209
|
}
|
|
6065
6210
|
};
|
|
@@ -6094,37 +6239,37 @@ const PersonProfile$1 = class {
|
|
|
6094
6239
|
const { organizations, research_organizations } = organization_units.items;
|
|
6095
6240
|
const aboutDescriptionTextDestructured = about.description;
|
|
6096
6241
|
const aboutDescriptionLength = aboutDescriptionTextDestructured.length;
|
|
6097
|
-
let trimmedAboutDescription =
|
|
6242
|
+
let trimmedAboutDescription = "";
|
|
6098
6243
|
if (aboutDescriptionLength > 650) {
|
|
6099
6244
|
if (this.isFullAboutTextHidden) {
|
|
6100
|
-
const ellipsisTextArray = aboutDescriptionTextDestructured +
|
|
6245
|
+
const ellipsisTextArray = aboutDescriptionTextDestructured + "...";
|
|
6101
6246
|
trimmedAboutDescription = ellipsisTextArray;
|
|
6102
6247
|
}
|
|
6103
6248
|
else {
|
|
6104
|
-
const ellipsisTextArray = aboutDescriptionTextDestructured.substring(0, 650) +
|
|
6249
|
+
const ellipsisTextArray = aboutDescriptionTextDestructured.substring(0, 650) + "...";
|
|
6105
6250
|
trimmedAboutDescription = ellipsisTextArray;
|
|
6106
6251
|
}
|
|
6107
6252
|
}
|
|
6108
|
-
window.addEventListener(
|
|
6253
|
+
window.addEventListener("resize", () => {
|
|
6109
6254
|
clearTimeout(timer);
|
|
6110
6255
|
timer = setTimeout(() => {
|
|
6111
6256
|
this.viewportSize = window.innerWidth;
|
|
6112
6257
|
}, 250);
|
|
6113
6258
|
});
|
|
6114
6259
|
const research_portal_title = `${research.research_portal_label}: ${name}`;
|
|
6115
|
-
return (index.h(index.Host, null, index.h("section", { class: "hy-profile-page" }, index.h("a", { href: this.peopleFinderReturnLink, class: "hy-profile-page__back-button" }, index.h("hy-icon", { icon:
|
|
6116
|
-
return (index.h("span", null, index$1 > 1 && index.h("hy-icon", { icon:
|
|
6117
|
-
|
|
6118
|
-
item.id, target:
|
|
6260
|
+
return (index.h(index.Host, null, index.h("section", { class: "hy-profile-page" }, index.h("a", { href: this.peopleFinderReturnLink, class: "hy-profile-page__back-button" }, index.h("hy-icon", { icon: "hy-icon-arrow-left", size: 24 }), index.h("span", null, this.peopleFinderReturnLabel)), index.h("section", { class: "hy-profile-page__section" }, index.h("div", { class: "hy-profile-page__person-information" }, index.h("div", null, index.h("h1", { class: "hy-profile-page__name" }, name), job_title && index.h("p", { class: "hy-profile-page__job-title" }, job_title), additional_information && (index.h("p", { class: "hy-profile-page__additional-information" }, additional_information))), image_url ? (index.h("img", { src: image_url, alt: "", class: "hy-profile-page__image" })) : (index.h("div", { class: "hy-profile-page__image", "aria-hidden": "true" }))), contact_information && (index.h("div", { class: "hy-profile-page__contact-information" }, contact_information.label && index.h("h2", null, contact_information.label), contact_information.items && (index.h("hy-person-profile-listing", { items: contact_information.items, col: "col-4", withoutIcons: true, textSpacingTight: true }))))), (organizations.items.length > 0 || Object.keys(research_organizations.items).length > 0) && (index.h("section", { class: "hy-profile-page__section" }, organization_units.label && index.h("h2", null, organization_units.label), organizations.items.length > 0 && (index.h("section", { class: "hy-profile-page__organization-units-section" }, index.h("h3", null, organizations.label), index.h("ul", { class: "hy-profile-page__organizations" }, index.h("li", null, organizations.items.map((item, index$1) => {
|
|
6261
|
+
return (index.h("span", null, index$1 > 1 && index.h("hy-icon", { icon: "hy-icon-caret-right", size: 10 }), index$1 !== 0 && (index.h("span", null, index.h("a", { href: organization_units.people_finder_path[organization_units.lang] +
|
|
6262
|
+
"?researchOrganizations.id[]=" +
|
|
6263
|
+
item.id, target: "_blank" }, item.name[organization_units.lang])))));
|
|
6119
6264
|
}))))), Object.keys(research_organizations.items).length > 0 && (index.h("section", { class: "hy-profile-page__organization-units-section" }, index.h("h3", null, research_organizations.label), index.h("ul", { class: "hy-profile-page__research-organizations" }, Object.values(research_organizations.items).map(([...item]) => (index.h("li", null, item.map((item, index$1) => {
|
|
6120
|
-
return (index.h(index.Fragment, null, index$1 > 1 && (index.h("ul", null, index.h("li", null, index.h("span", null, index.h("hy-icon", { icon:
|
|
6121
|
-
|
|
6122
|
-
item.id, target:
|
|
6123
|
-
|
|
6124
|
-
item.id, target:
|
|
6265
|
+
return (index.h(index.Fragment, null, index$1 > 1 && (index.h("ul", null, index.h("li", null, index.h("span", null, index.h("hy-icon", { icon: "hy-icon-caret-right", size: 10 }), index.h("span", null, index.h("a", { href: organization_units.people_finder_path[organization_units.lang] +
|
|
6266
|
+
"?researchOrganizations.id[]=" +
|
|
6267
|
+
item.id, target: "_blank" }, item.name[organization_units.lang])))))), index$1 == 1 && (index.h("span", null, index.h("a", { href: organization_units.people_finder_path[organization_units.lang] +
|
|
6268
|
+
"?researchOrganizations.id[]=" +
|
|
6269
|
+
item.id, target: "_blank" }, item.name[organization_units.lang])))));
|
|
6125
6270
|
}))))))))), about && aboutDescriptionLength !== 0 && (index.h("section", { class: "hy-profile-page__section" }, about.description && (index.h(index.Fragment, null, index.h("h2", null, about.label), index.h("div", { class: "hy-profile-page__person-about-text", innerHTML: !this.isFullAboutTextHidden && aboutDescriptionLength > 650
|
|
6126
6271
|
? trimmedAboutDescription
|
|
6127
|
-
: about.description }))), aboutDescriptionLength > 650 && (index.h("button", { class: "hy-profile-page__person-about-text-toggle", onClick: () => this.toggleShowFullAboutText(), "aria-expanded": `${this.isFullAboutTextHidden ?
|
|
6272
|
+
: about.description }))), aboutDescriptionLength > 650 && (index.h("button", { class: "hy-profile-page__person-about-text-toggle", onClick: () => this.toggleShowFullAboutText(), "aria-expanded": `${this.isFullAboutTextHidden ? "true" : "false"}` }, this.isFullAboutTextHidden ? this.hideFullAboutText : this.showFullAboutText)))), ((research && research.items.length > 0) || (person_content && person_content.research_url.length > 0)) && (index.h("section", { class: "hy-profile-page__section" }, index.h("div", { class: "hy-profile-page__section__research_title" }, research.label && index.h("h2", null, research.label), research.label && person_content.research_url.length > 0 && (index.h("hy-cta-button", { "link-content": research_portal_title, "sc-label": research_portal_title, url: person_content.research_url, "is-external": "true", variant: utils.CtaLinkButtonVariants.onWhiteBkgd }))), research.items && (index.h("hy-person-profile-listing", { items: research.items, col: "col-1", textSpacingTight: true, "is-research": true, inline: true })), person_content.research_url.length > 0 && (index.h("div", { class: "hy-profile-page__loader", role: "presentation" }, index.h("div", null), index.h("div", null), index.h("div", null), index.h("div", null))), person_content.research_url.length > 0 && this.viewportSize < 768 && (index.h("div", { class: "hy-profile-page__person-content-container" }, index.h("hy-accordion-container", { accordionid: "accordion-container-person-content" }, person_content.publications && (index.h("hy-accordion-item", { "data-accordion-id": "publications", accordiontitle: person_content.publications.label })), person_content.projects && (index.h("hy-accordion-item", { "data-accordion-id": "projects", accordiontitle: person_content.projects.label })), person_content.activities && (index.h("hy-accordion-item", { "data-accordion-id": "activities", accordiontitle: person_content.activities.label }))))), person_content.research_url.length > 0 && this.viewportSize >= 768 && (index.h("div", { class: "hy-profile-page__person-content-container" }, index.h("hy-tabs", { "tab-id": "tabs-container-person-content" }, person_content.publications && (index.h("hy-tabs-item", { "data-tab-id": "publications", "tab-title": person_content.publications.label })), person_content.projects && (index.h("hy-tabs-item", { "data-tab-id": "projects", "tab-title": person_content.projects.label })), person_content.activities && (index.h("hy-tabs-item", { "data-tab-id": "activities", "tab-title": person_content.activities.label }))))))))));
|
|
6128
6273
|
}
|
|
6129
6274
|
};
|
|
6130
6275
|
PersonProfile$1.style = personProfileCss;
|
|
@@ -6135,20 +6280,20 @@ const PersonProfile = class {
|
|
|
6135
6280
|
constructor(hostRef) {
|
|
6136
6281
|
index.registerInstance(this, hostRef);
|
|
6137
6282
|
this.items = undefined;
|
|
6138
|
-
this.col =
|
|
6283
|
+
this.col = "col-2";
|
|
6139
6284
|
this.inline = undefined;
|
|
6140
6285
|
this.withoutIcons = undefined;
|
|
6141
6286
|
this.textSpacingTight = undefined;
|
|
6142
6287
|
this.isResearch = false;
|
|
6143
6288
|
}
|
|
6144
6289
|
render() {
|
|
6145
|
-
return (index.h(index.Host, null, index.h("ul", { class: `hy-person-profile-listing ${this.col} ${this.inline ?
|
|
6146
|
-
if (items.filter(({ label }) => label !==
|
|
6290
|
+
return (index.h(index.Host, null, index.h("ul", { class: `hy-person-profile-listing ${this.col} ${this.inline ? "is-inline" : ""} ${this.withoutIcons ? "without-icons" : ""} ${this.textSpacingTight ? "text-tight" : ""}` }, this.isResearch && index.h("h3", { class: "hy-person-profile-listing__label" }, this.items[0].label), this.items.map(({ label, items }) => {
|
|
6291
|
+
if (items.filter(({ label }) => label !== "").length > 0) {
|
|
6147
6292
|
return (index.h("li", null, !this.isResearch && index.h("h3", { class: "hy-person-profile-listing__label" }, label), index.h("ul", { class: "hy-person-profile-listing__items" }, items.map(({ label, url }, index$1) => {
|
|
6148
6293
|
if (url) {
|
|
6149
|
-
return (index.h("li", { class: "hy-person-profile-listing__item" }, index.h("a", { href: url }, index$1 !== 0 && index.h("hy-icon", { icon:
|
|
6294
|
+
return (index.h("li", { class: "hy-person-profile-listing__item" }, index.h("a", { href: url }, index$1 !== 0 && index.h("hy-icon", { icon: "hy-icon-caret-right", size: 10 }), index.h("span", null, label))));
|
|
6150
6295
|
}
|
|
6151
|
-
return (index.h("li", { class: "hy-person-profile-listing__item" }, index$1 !== 0 && index.h("hy-icon", { icon:
|
|
6296
|
+
return (index.h("li", { class: "hy-person-profile-listing__item" }, index$1 !== 0 && index.h("hy-icon", { icon: "hy-icon-caret-right", size: 10 }), index.h("span", null, label)));
|
|
6152
6297
|
}))));
|
|
6153
6298
|
}
|
|
6154
6299
|
}))));
|
|
@@ -6161,7 +6306,7 @@ const processCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand
|
|
|
6161
6306
|
const Process = class {
|
|
6162
6307
|
constructor(hostRef) {
|
|
6163
6308
|
index.registerInstance(this, hostRef);
|
|
6164
|
-
this.headerstyle =
|
|
6309
|
+
this.headerstyle = "common";
|
|
6165
6310
|
this.numberTerm = undefined;
|
|
6166
6311
|
this.dataItems = undefined;
|
|
6167
6312
|
}
|
|
@@ -6169,10 +6314,10 @@ const Process = class {
|
|
|
6169
6314
|
this._dataItems = await globalScript.jsonParserWorker(this.dataItems);
|
|
6170
6315
|
}
|
|
6171
6316
|
componentDidLoad() {
|
|
6172
|
-
let hyMainDiv = this.el.closest(
|
|
6317
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
6173
6318
|
if (hyMainDiv) {
|
|
6174
|
-
if (!hyMainDiv.classList.contains(
|
|
6175
|
-
this.headerstyle =
|
|
6319
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
6320
|
+
this.headerstyle = "large";
|
|
6176
6321
|
}
|
|
6177
6322
|
}
|
|
6178
6323
|
}
|
|
@@ -6192,12 +6337,12 @@ const Process = class {
|
|
|
6192
6337
|
? utils.ProcessFlowBoxVariants.default
|
|
6193
6338
|
: utils.ProcessFlowBoxVariants.small;
|
|
6194
6339
|
const itemsPerRow = processVariant == utils.ProcessFlowBoxVariants.small ? 4 : 3;
|
|
6195
|
-
const classAttributes = [processVariant,
|
|
6196
|
-
const classItem =
|
|
6340
|
+
const classAttributes = [processVariant, "hy-process", `hy-process__${this.headerstyle}`].join(" ");
|
|
6341
|
+
const classItem = "box";
|
|
6197
6342
|
var stepState;
|
|
6198
6343
|
return [
|
|
6199
6344
|
index.h("div", { class: classAttributes }, this._dataItems.map((x, index$1) => {
|
|
6200
|
-
index$1 % itemsPerRow == 0 ? (stepState =
|
|
6345
|
+
index$1 % itemsPerRow == 0 ? (stepState = "first") : (stepState = "default");
|
|
6201
6346
|
return (index.h("hy-process-flow-box", { class: classItem, variant: processVariant, "box-number": index$1 + 1, "box-title": x.heading, "box-description": x.description, "intermediate-step-title": x.step, "step-state": stepState, "number-term": this.numberTerm }));
|
|
6202
6347
|
})),
|
|
6203
6348
|
];
|
|
@@ -6215,16 +6360,16 @@ const ProcessFlowBox = class {
|
|
|
6215
6360
|
this.boxNumber = undefined;
|
|
6216
6361
|
this.boxTitle = undefined;
|
|
6217
6362
|
this.boxDescription = undefined;
|
|
6218
|
-
this.intermediateStepTitle =
|
|
6219
|
-
this.stepState =
|
|
6363
|
+
this.intermediateStepTitle = "";
|
|
6364
|
+
this.stepState = "default";
|
|
6220
6365
|
this.numberTerm = undefined;
|
|
6221
6366
|
}
|
|
6222
6367
|
render() {
|
|
6223
|
-
const classVariant = [this.variant,
|
|
6224
|
-
const classContentVariant = [this.variant,
|
|
6225
|
-
const classIsEven = parseInt(this.boxNumber) % 2 == 0 ?
|
|
6226
|
-
const classNumberVariant = [this.variant,
|
|
6227
|
-
const classStepVariant = [this.variant, this.stepState, classIsEven,
|
|
6368
|
+
const classVariant = [this.variant, "hy-process-flow-box"].join(" ");
|
|
6369
|
+
const classContentVariant = [this.variant, "hy-process-flow-box__content"].join(" ");
|
|
6370
|
+
const classIsEven = parseInt(this.boxNumber) % 2 == 0 ? "even" : "odd";
|
|
6371
|
+
const classNumberVariant = [this.variant, "hy-process-flow-box__number__container"].join(" ");
|
|
6372
|
+
const classStepVariant = [this.variant, this.stepState, classIsEven, "hy-process-flow-box__step__container"].join(" ");
|
|
6228
6373
|
return (index.h(index.Host, null, index.h("div", { class: classVariant }, this.intermediateStepTitle && (index.h("div", { class: classStepVariant }, index.h("svg", { class: "desktop", width: "210", height: "60" }, index.h("polygon", { points: "0 0, 0 60, 190 60, 210 30, 190 0, 0 0" })), index.h("svg", { class: "mobile", width: "138", height: "82" }, index.h("polygon", { points: "0 0, 69 15, 138 0, 138 50, 69 82, 0 50" })), index.h("h2", { class: "hy-process-flow-box__step" }, this.intermediateStepTitle))), index.h("div", { class: classNumberVariant }, index.h("h2", { class: "hy-process-flow-box__number", "aria-label": `${this.numberTerm && this.numberTerm} ${this.boxNumber}` }, index.h("div", { class: "hy-process-flow-box__number-title" }, this.boxNumber))), index.h("div", { class: classContentVariant }, index.h("h3", { class: "hy-process-flow-box__title", innerHTML: this.boxTitle }), index.h("div", { class: "hy-process-flow-box__description", innerHTML: this.boxDescription }))), index.h("hy-box", { mb: "1.75, 1.75, 2, 2.5" })));
|
|
6229
6374
|
}
|
|
6230
6375
|
};
|
|
@@ -6237,25 +6382,25 @@ const HyProminentImage = class {
|
|
|
6237
6382
|
index.registerInstance(this, hostRef);
|
|
6238
6383
|
this.textTitle = undefined;
|
|
6239
6384
|
this.imageUrl = undefined;
|
|
6240
|
-
this.imageAlt =
|
|
6241
|
-
this.headerstyle =
|
|
6385
|
+
this.imageAlt = "";
|
|
6386
|
+
this.headerstyle = "common";
|
|
6242
6387
|
this.sourceSet = undefined;
|
|
6243
6388
|
}
|
|
6244
6389
|
componentDidLoad() {
|
|
6245
|
-
let hyMainDiv = this.el.closest(
|
|
6390
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
6246
6391
|
if (hyMainDiv) {
|
|
6247
|
-
if (!hyMainDiv.classList.contains(
|
|
6248
|
-
this.headerstyle =
|
|
6392
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
6393
|
+
this.headerstyle = "large";
|
|
6249
6394
|
}
|
|
6250
6395
|
}
|
|
6251
6396
|
}
|
|
6252
6397
|
render() {
|
|
6253
6398
|
const prominentImageClass = [
|
|
6254
|
-
|
|
6399
|
+
"hy-prominent-image",
|
|
6255
6400
|
this.headerstyle,
|
|
6256
6401
|
`hy-prominent-image__${this.headerstyle}`,
|
|
6257
|
-
].join(
|
|
6258
|
-
const prominentImageText = [
|
|
6402
|
+
].join(" ");
|
|
6403
|
+
const prominentImageText = ["hy-prominent-image__text", `hy-prominent-image__text__${this.headerstyle}`].join(" ");
|
|
6259
6404
|
return (index.h(index.Host, null, index.h("div", { class: prominentImageClass }, index.h("div", { class: "hy-prominent-image__image" }, index.h("hy-image", { "source-set": this.sourceSet, "image-url": this.imageUrl, "image-alt": this.imageAlt, aspectRatioWidth: 2, aspectRatioHeight: 1 })), this.textTitle && index.h("div", { class: prominentImageText }, this.textTitle))));
|
|
6260
6405
|
}
|
|
6261
6406
|
get el() { return index.getElement(this); }
|
|
@@ -6268,19 +6413,19 @@ const HyQuote = class {
|
|
|
6268
6413
|
constructor(hostRef) {
|
|
6269
6414
|
index.registerInstance(this, hostRef);
|
|
6270
6415
|
this.quoteSignature = undefined;
|
|
6271
|
-
this.headerstyle =
|
|
6416
|
+
this.headerstyle = "common";
|
|
6272
6417
|
}
|
|
6273
6418
|
componentDidLoad() {
|
|
6274
|
-
let hyMainDiv = this.el.closest(
|
|
6419
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
6275
6420
|
if (hyMainDiv) {
|
|
6276
|
-
if (!hyMainDiv.classList.contains(
|
|
6277
|
-
this.headerstyle =
|
|
6421
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
6422
|
+
this.headerstyle = "large";
|
|
6278
6423
|
}
|
|
6279
6424
|
}
|
|
6280
6425
|
}
|
|
6281
6426
|
render() {
|
|
6282
|
-
const quoteClass = [
|
|
6283
|
-
return (index.h("div", { class: quoteClass }, index.h("span", { class: "hy-quote__icon-wrapper" }, index.h("div", { class: "hy-quote__icon" }, index.h("hy-icon", { icon:
|
|
6427
|
+
const quoteClass = ["hy-quote", this.headerstyle, `hy-quote__${this.headerstyle}`].join(" ");
|
|
6428
|
+
return (index.h("div", { class: quoteClass }, index.h("span", { class: "hy-quote__icon-wrapper" }, index.h("div", { class: "hy-quote__icon" }, index.h("hy-icon", { icon: "hy-icon-quote", size: 48 }))), index.h("div", { class: "hy-quote-text-wrapper" }, index.h("div", { class: "hy-quote__text" }, index.h("slot", null)), this.quoteSignature && index.h("div", { class: "hy-quote__signature" }, this.quoteSignature))));
|
|
6284
6429
|
}
|
|
6285
6430
|
get el() { return index.getElement(this); }
|
|
6286
6431
|
};
|
|
@@ -6301,8 +6446,8 @@ const createCss = (justify, align, margin) => {
|
|
|
6301
6446
|
const Row = class {
|
|
6302
6447
|
constructor(hostRef) {
|
|
6303
6448
|
index.registerInstance(this, hostRef);
|
|
6304
|
-
this.justify =
|
|
6305
|
-
this.align =
|
|
6449
|
+
this.justify = "stretch";
|
|
6450
|
+
this.align = "center";
|
|
6306
6451
|
this.margin = 1;
|
|
6307
6452
|
}
|
|
6308
6453
|
render() {
|
|
@@ -6320,15 +6465,15 @@ const HySearchField = class {
|
|
|
6320
6465
|
this.isLabelBold = false;
|
|
6321
6466
|
this.labelLarge = false;
|
|
6322
6467
|
this.isLuomusSearch = false;
|
|
6323
|
-
this.placeholder =
|
|
6468
|
+
this.placeholder = "Type here...";
|
|
6324
6469
|
this.isLabelHidden = false;
|
|
6325
6470
|
this.inputId = undefined;
|
|
6326
|
-
this.prefillParameter =
|
|
6471
|
+
this.prefillParameter = "";
|
|
6327
6472
|
this.isInputValueEmpty = true;
|
|
6328
6473
|
}
|
|
6329
6474
|
componentDidLoad() {
|
|
6330
|
-
const searchInput = this.el.querySelector(
|
|
6331
|
-
searchInput.addEventListener(
|
|
6475
|
+
const searchInput = this.el.querySelector(".search-field__input");
|
|
6476
|
+
searchInput.addEventListener("keyup", (event) => {
|
|
6332
6477
|
const { value } = event.target;
|
|
6333
6478
|
this.isInputValueEmpty = value.length > 0 ? false : true;
|
|
6334
6479
|
});
|
|
@@ -6337,38 +6482,50 @@ const HySearchField = class {
|
|
|
6337
6482
|
return;
|
|
6338
6483
|
const urlParams = new URLSearchParams(window.location.search);
|
|
6339
6484
|
const searchValue = urlParams.get(`${this.prefillParameter}`);
|
|
6340
|
-
const searchInput = this.el.querySelector(
|
|
6341
|
-
searchInput.value = searchValue && searchValue.length > 0 ? searchValue :
|
|
6485
|
+
const searchInput = this.el.querySelector(".search-field__input");
|
|
6486
|
+
searchInput.value = searchValue && searchValue.length > 0 ? searchValue : "";
|
|
6342
6487
|
this.isInputValueEmpty = false;
|
|
6343
6488
|
}
|
|
6344
6489
|
}
|
|
6345
6490
|
handleInputReset() {
|
|
6346
6491
|
this.isInputValueEmpty = true;
|
|
6347
|
-
const searchInput = this.el.querySelector(
|
|
6348
|
-
searchInput.value =
|
|
6492
|
+
const searchInput = this.el.querySelector(".search-field__input");
|
|
6493
|
+
searchInput.value = "";
|
|
6349
6494
|
searchInput.focus();
|
|
6350
6495
|
}
|
|
6351
6496
|
render() {
|
|
6352
6497
|
return (index.h(index.Host, { class: "search-field" }, !this.isLuomusSearch && (index.h("label", { htmlFor: this.inputId, class: `search-field__label
|
|
6353
|
-
${this.isLabelHidden ?
|
|
6354
|
-
${this.labelLarge ?
|
|
6355
|
-
${this.isLabelBold ?
|
|
6498
|
+
${this.isLabelHidden ? "visually-hidden" : ""}
|
|
6499
|
+
${this.labelLarge ? "label-large" : ""}
|
|
6500
|
+
${this.isLabelBold ? "bold" : ""}` }, this.label)), index.h("div", { class: "search-field__actions" }, index.h("div", { class: "search-field__wrapper" }, this.isLuomusSearch && (index.h("input", { id: this.inputId, name: "search", "data-drupal-selector": "edit-search", value: "", type: "text", placeholder: this.placeholder, class: "search-field__input" })), !this.isLuomusSearch && (index.h("input", { id: this.inputId, type: "text", placeholder: this.placeholder, class: "search-field__input" })), !this.isInputValueEmpty && (index.h("button", { type: "button", class: "search-field__reset", "aria-label": "Reset", onClick: () => this.handleInputReset() }, index.h("hy-icon", { icon: "hy-icon-remove", size: 14, "aria-hidden": "true" })))), this.isLuomusSearch && (index.h("button", { type: "submit", class: "search-field__submit", "aria-label": "Search", "data-drupal-selector": "edit-submit-luomus-search", id: "edit-submit-luomus-search", value: "Apply" }, index.h("hy-icon", { icon: "hy-icon-search", size: 18, fill: utils.ColorVariant.white, "aria-hidden": "true" }))), !this.isLuomusSearch && (index.h("button", { type: "submit", class: "search-field__submit", "aria-label": "Search" }, index.h("hy-icon", { icon: "hy-icon-search", size: 18, fill: utils.ColorVariant.white, "aria-hidden": "true" }))))));
|
|
6356
6501
|
}
|
|
6357
6502
|
get el() { return index.getElement(this); }
|
|
6358
6503
|
};
|
|
6359
6504
|
HySearchField.style = hySearchFieldCss;
|
|
6360
6505
|
|
|
6506
|
+
const sectionContainerCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host{display:block}.hy-section--container{display:block;width:100%;margin-left:auto;margin-right:auto}@media only screen and (min-width: 30rem){.hy-section--container{width:100%}}@media only screen and (min-width: 60rem){.hy-section--container{width:100%;max-width:60rem}}@media only screen and (min-width: 75.0625rem){.hy-section--container{width:100%;max-width:75rem}}";
|
|
6507
|
+
|
|
6508
|
+
const SectionContainer = class {
|
|
6509
|
+
constructor(hostRef) {
|
|
6510
|
+
index.registerInstance(this, hostRef);
|
|
6511
|
+
}
|
|
6512
|
+
render() {
|
|
6513
|
+
return (index.h("div", { class: "hy-section--container" }, index.h("slot", null)));
|
|
6514
|
+
}
|
|
6515
|
+
};
|
|
6516
|
+
SectionContainer.style = sectionContainerCss;
|
|
6517
|
+
|
|
6361
6518
|
const hyShortcutsCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host{display:block}.hy-shortcuts{overflow:hidden}.hy-shortcuts .shortcut-link-container{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 calc(var(--gutter-mobile)* -1)}@media (min-width: 30rem){.hy-shortcuts .shortcut-link-container{margin:0 calc(var(--gutter-narrow)* -1)}}@media (min-width: 60rem){.hy-shortcuts .shortcut-link-container{margin:0 calc(var(--gutter-wide)* -1)}}.hy-shortcuts .shortcut-link-container .shortcut-link-wrapper{min-height:62px;padding:0 var(--gutter-mobile)}@media (min-width: 30rem){.hy-shortcuts .shortcut-link-container .shortcut-link-wrapper{min-height:70px;padding:0 var(--gutter-narrow)}}@media (min-width: 60rem){.hy-shortcuts .shortcut-link-container .shortcut-link-wrapper{min-height:82px;padding:0 var(--gutter-wide)}}.hy-shortcuts .shortcut-link-container .shortcut-link-wrapper.box-3{width:100%}@media (min-width: 30rem){.hy-shortcuts .shortcut-link-container .shortcut-link-wrapper.box-3{width:33.33%}}.hy-shortcuts .shortcut-link-container .shortcut-link-wrapper.box-4{width:50%}@media (min-width: 30rem){.hy-shortcuts .shortcut-link-container .shortcut-link-wrapper.box-4{width:25%}}.hy-shortcuts .shortcut-link-container .shortcut-link-wrapper.box-3.first a.shortcut-link,.hy-shortcuts .shortcut-link-container .shortcut-link-wrapper.box-4.first a.shortcut-link{border-top:2.5px solid var(--brand-main-nearly-black)}@media (min-width: 30rem){.hy-shortcuts .shortcut-link-container .shortcut-link-wrapper.box-3.first a.shortcut-link,.hy-shortcuts .shortcut-link-container .shortcut-link-wrapper.box-4.first a.shortcut-link{border-top:3px solid var(--brand-main-nearly-black)}}.hy-shortcuts .shortcut-link-container a.shortcut-link{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:transparent;border-bottom:2.5px solid var(--brand-main-nearly-black);color:var(--brand-main-nearly-black);cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--main-font-family);font-size:14px;font-weight:600;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;height:100%;letter-spacing:-0.44px;line-height:18px;min-height:70px;position:relative;text-decoration:none;word-break:break-word}@media (min-width: 30rem){.hy-shortcuts .shortcut-link-container a.shortcut-link{border-bottom:3px solid var(--brand-main-nearly-black);border-top:3px solid var(--brand-main-nearly-black);font-size:16px;letter-spacing:-0.5px;line-height:18px;min-height:70px}}@media (min-width: 60rem){.hy-shortcuts .shortcut-link-container a.shortcut-link{font-size:16px;letter-spacing:-0.5px;line-height:22px;min-height:82px}}.hy-shortcuts .shortcut-link-container a.shortcut-link .link-icon{padding:0 0 0 8px}@media (min-width: 30rem){.hy-shortcuts .shortcut-link-container a.shortcut-link .link-icon{padding:0 0 0 12px}}@media (min-width: 60rem){.hy-shortcuts .shortcut-link-container a.shortcut-link .link-icon{padding:0 4px 0 22px}}.hy-shortcuts .shortcut-link-container a.shortcut-link .link-icon svg{height:20px;fill:var(--brand-main-light);width:20px}@media (min-width: 30rem){.hy-shortcuts .shortcut-link-container a.shortcut-link .link-icon svg{height:24px;width:24px}}@media (min-width: 60rem){.hy-shortcuts .shortcut-link-container a.shortcut-link .link-icon svg{height:28px;width:28px}}.hy-shortcuts .shortcut-link-container a.shortcut-link:hover{color:var(--brand-main)}.hy-shortcuts .shortcut-link-container a.shortcut-link:hover svg{fill:var(--brand-main)}";
|
|
6362
6519
|
|
|
6363
6520
|
const HyShortcuts = class {
|
|
6364
6521
|
constructor(hostRef) {
|
|
6365
6522
|
index.registerInstance(this, hostRef);
|
|
6366
6523
|
this.dataItems = undefined;
|
|
6367
|
-
this.listHeading =
|
|
6368
|
-
this.headerstyle =
|
|
6524
|
+
this.listHeading = "";
|
|
6525
|
+
this.headerstyle = "default";
|
|
6369
6526
|
}
|
|
6370
6527
|
arrayDataWatcher(newValue) {
|
|
6371
|
-
if (typeof newValue ===
|
|
6528
|
+
if (typeof newValue === "string") {
|
|
6372
6529
|
this._dataItems = JSON.parse(newValue);
|
|
6373
6530
|
}
|
|
6374
6531
|
else {
|
|
@@ -6379,29 +6536,29 @@ const HyShortcuts = class {
|
|
|
6379
6536
|
this.arrayDataWatcher(this.dataItems);
|
|
6380
6537
|
}
|
|
6381
6538
|
componentDidLoad() {
|
|
6382
|
-
let hyMainDiv = this.el.closest(
|
|
6539
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
6383
6540
|
if (hyMainDiv) {
|
|
6384
|
-
if (!hyMainDiv.classList.contains(
|
|
6385
|
-
this.headerstyle =
|
|
6541
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
6542
|
+
this.headerstyle = "large";
|
|
6386
6543
|
}
|
|
6387
6544
|
}
|
|
6388
6545
|
}
|
|
6389
6546
|
render() {
|
|
6390
|
-
const classAttributes = [
|
|
6391
|
-
const textClassAttributes = [
|
|
6392
|
-
const iconClassAttributes = [
|
|
6393
|
-
let classItem = [
|
|
6547
|
+
const classAttributes = ["hy-shortcuts", `hy-shortcuts__${this.headerstyle}`].join(" ");
|
|
6548
|
+
const textClassAttributes = ["text"].join(" ");
|
|
6549
|
+
const iconClassAttributes = ["link-icon"].join(" ");
|
|
6550
|
+
let classItem = ["shortcut-link-wrapper", this._dataItems.length % 4 == 0 ? "box-4" : "box-3"].join(" ");
|
|
6394
6551
|
return (index.h(index.Host, null, index.h("div", { class: classAttributes }, this.listHeading.length > 0 && (index.h("hy-heading", { class: "list-title", heading: utils.HeadingVarians.h2 }, this.listHeading)), index.h("div", { class: "shortcut-link-container" }, this._dataItems.map((x, index$1) => {
|
|
6395
|
-
let isFirstLine =
|
|
6552
|
+
let isFirstLine = "";
|
|
6396
6553
|
if (this._dataItems.length % 4 == 0) {
|
|
6397
|
-
isFirstLine = index$1 == 0 || index$1 == 1 ?
|
|
6554
|
+
isFirstLine = index$1 == 0 || index$1 == 1 ? "first" : "";
|
|
6398
6555
|
}
|
|
6399
6556
|
else {
|
|
6400
|
-
isFirstLine = index$1 == 0 ?
|
|
6557
|
+
isFirstLine = index$1 == 0 ? "first" : "";
|
|
6401
6558
|
}
|
|
6402
|
-
let classLinkWrapper = classItem.concat(
|
|
6403
|
-
let target = x.isExternal ?
|
|
6404
|
-
return (index.h("div", { class: classLinkWrapper }, index.h("a", { "aria-label": x.ariaLabel, class: "shortcut-link", href: x.url, target: target }, index.h("span", { class: textClassAttributes }, x.heading), index.h("span", { class: iconClassAttributes }, index.h("hy-icon", { icon:
|
|
6559
|
+
let classLinkWrapper = classItem.concat(" ", isFirstLine);
|
|
6560
|
+
let target = x.isExternal ? "_blank" : "_self";
|
|
6561
|
+
return (index.h("div", { class: classLinkWrapper }, index.h("a", { "aria-label": x.ariaLabel, class: "shortcut-link", href: x.url, target: target }, index.h("span", { class: textClassAttributes }, x.heading), index.h("span", { class: iconClassAttributes }, index.h("hy-icon", { icon: "hy-icon-arrow-right", size: 28 })))));
|
|
6405
6562
|
}))), index.h("hy-box", { mb: "1.75, 1.75, 2, 2.5" })));
|
|
6406
6563
|
}
|
|
6407
6564
|
get el() { return index.getElement(this); }
|
|
@@ -6425,9 +6582,9 @@ const SiteHeader = class {
|
|
|
6425
6582
|
this.isGroup = false;
|
|
6426
6583
|
this.isLuomusGroup = false;
|
|
6427
6584
|
this.isBetaGroup = false;
|
|
6428
|
-
this.researchGroupLabel =
|
|
6429
|
-
this.groupType =
|
|
6430
|
-
this.groupLogoUrl =
|
|
6585
|
+
this.researchGroupLabel = "";
|
|
6586
|
+
this.groupType = "";
|
|
6587
|
+
this.groupLogoUrl = "";
|
|
6431
6588
|
this.dataMenuLanguage = undefined;
|
|
6432
6589
|
this.dataMenuDonate = undefined;
|
|
6433
6590
|
this.dataSiteHeaderLabels = undefined;
|
|
@@ -6438,7 +6595,7 @@ const SiteHeader = class {
|
|
|
6438
6595
|
this.siteUrl = undefined;
|
|
6439
6596
|
this.showSearchLabel = true;
|
|
6440
6597
|
this.noSearch = false;
|
|
6441
|
-
this.menuLabel =
|
|
6598
|
+
this.menuLabel = "Menu";
|
|
6442
6599
|
this.menuLabelOpen = undefined;
|
|
6443
6600
|
this.menuLabelClose = undefined;
|
|
6444
6601
|
this.menuType = null;
|
|
@@ -6459,12 +6616,12 @@ const SiteHeader = class {
|
|
|
6459
6616
|
mobileMenuToggle() {
|
|
6460
6617
|
this.isMenuOpen = !this.isMenuOpen;
|
|
6461
6618
|
this.menuMobileToggled.emit();
|
|
6462
|
-
let bodyElement = document.getElementsByTagName(
|
|
6619
|
+
let bodyElement = document.getElementsByTagName("body")[0];
|
|
6463
6620
|
if (this.isMenuOpen) {
|
|
6464
|
-
bodyElement.style.overflow =
|
|
6621
|
+
bodyElement.style.overflow = "hidden";
|
|
6465
6622
|
}
|
|
6466
6623
|
else {
|
|
6467
|
-
bodyElement.style.overflow =
|
|
6624
|
+
bodyElement.style.overflow = "initial";
|
|
6468
6625
|
}
|
|
6469
6626
|
}
|
|
6470
6627
|
// Listener for toggling mobile menu top panel on or off.
|
|
@@ -6499,25 +6656,25 @@ const SiteHeader = class {
|
|
|
6499
6656
|
this.lastScrollTop = topOffset;
|
|
6500
6657
|
}
|
|
6501
6658
|
toggleStickyness(toggleOn = true) {
|
|
6502
|
-
const bodyElementClasses = document.querySelector(
|
|
6503
|
-
let hySiteHeader = this.el.querySelector(
|
|
6659
|
+
const bodyElementClasses = document.querySelector("body").classList;
|
|
6660
|
+
let hySiteHeader = this.el.querySelector(".hy-site-header");
|
|
6504
6661
|
if (!hySiteHeader)
|
|
6505
6662
|
return;
|
|
6506
|
-
this.isTopVisible ? hySiteHeader.classList.add(
|
|
6663
|
+
this.isTopVisible ? hySiteHeader.classList.add("is-at-top") : hySiteHeader.classList.remove("is-at-top");
|
|
6507
6664
|
if (toggleOn) {
|
|
6508
|
-
hySiteHeader.classList.add(
|
|
6509
|
-
hySiteHeader.classList.remove(
|
|
6510
|
-
!this.isBottomVisible && !this.isTopVisible && bodyElementClasses.add(
|
|
6511
|
-
if (bodyElementClasses.contains(
|
|
6512
|
-
hySiteHeader.classList.add(
|
|
6513
|
-
if (bodyElementClasses.contains(
|
|
6514
|
-
hySiteHeader.classList.add(
|
|
6665
|
+
hySiteHeader.classList.add("hy-site-header--sticky-active", "hy-site-header--sticky-visible");
|
|
6666
|
+
hySiteHeader.classList.remove("hy-site-header--sticky-hidden");
|
|
6667
|
+
!this.isBottomVisible && !this.isTopVisible && bodyElementClasses.add("sticky-active");
|
|
6668
|
+
if (bodyElementClasses.contains("toolbar-horizontal")) {
|
|
6669
|
+
hySiteHeader.classList.add("has-toolbar");
|
|
6670
|
+
if (bodyElementClasses.contains("toolbar-tray-open")) {
|
|
6671
|
+
hySiteHeader.classList.add("has-toolbar--large");
|
|
6515
6672
|
}
|
|
6516
6673
|
}
|
|
6517
6674
|
}
|
|
6518
6675
|
if (!toggleOn) {
|
|
6519
|
-
hySiteHeader.classList.remove(
|
|
6520
|
-
bodyElementClasses.remove(
|
|
6676
|
+
hySiteHeader.classList.remove("hy-site-header--sticky-active", "hy-site-header--sticky-visible", "hy-site-header--sticky-hidden", "has-toolbar", "has-toolbar--large");
|
|
6677
|
+
bodyElementClasses.remove("sticky-active");
|
|
6521
6678
|
}
|
|
6522
6679
|
}
|
|
6523
6680
|
componentDidLoad() {
|
|
@@ -6530,41 +6687,41 @@ const SiteHeader = class {
|
|
|
6530
6687
|
this.ro.observe(document.body);
|
|
6531
6688
|
const topOptions = {
|
|
6532
6689
|
root: null,
|
|
6533
|
-
rootMargin:
|
|
6690
|
+
rootMargin: "250px",
|
|
6534
6691
|
threshold: [0.0, 1.0],
|
|
6535
6692
|
};
|
|
6536
6693
|
this.topObserver = new IntersectionObserver((entries) => {
|
|
6537
6694
|
entries.forEach((entry) => {
|
|
6538
|
-
if (entry.target.nodeName ===
|
|
6695
|
+
if (entry.target.nodeName === "HEADER") {
|
|
6539
6696
|
this.isTopVisible = entry.isIntersecting;
|
|
6540
6697
|
}
|
|
6541
6698
|
});
|
|
6542
6699
|
}, topOptions);
|
|
6543
|
-
const header = document.querySelector(
|
|
6700
|
+
const header = document.querySelector("header");
|
|
6544
6701
|
if (header) {
|
|
6545
6702
|
this.topObserver.observe(header);
|
|
6546
6703
|
}
|
|
6547
6704
|
const bottomOptions = {
|
|
6548
6705
|
root: null,
|
|
6549
|
-
rootMargin:
|
|
6706
|
+
rootMargin: "0px",
|
|
6550
6707
|
threshold: [0.0, 1.0],
|
|
6551
6708
|
};
|
|
6552
6709
|
this.bottomObserver = new IntersectionObserver((entries) => {
|
|
6553
6710
|
entries.forEach((entry) => {
|
|
6554
|
-
if (entry.target.nodeName ===
|
|
6711
|
+
if (entry.target.nodeName === "HEADER") {
|
|
6555
6712
|
this.isTopVisible = entry.isIntersecting;
|
|
6556
6713
|
}
|
|
6557
6714
|
});
|
|
6558
6715
|
}, bottomOptions);
|
|
6559
|
-
const footer = document.querySelector(
|
|
6716
|
+
const footer = document.querySelector("hy-footer");
|
|
6560
6717
|
if (footer) {
|
|
6561
6718
|
this.bottomObserver.observe(footer);
|
|
6562
6719
|
}
|
|
6563
6720
|
// Pass the dataMenuLanguage prop to menu component.
|
|
6564
|
-
this.el.children[0].setAttribute(
|
|
6721
|
+
this.el.children[0].setAttribute("data-menu-language", this.dataMenuLanguage);
|
|
6565
6722
|
this.navbarHeight = 120;
|
|
6566
|
-
const body = document.querySelector(
|
|
6567
|
-
body.style.setProperty(
|
|
6723
|
+
const body = document.querySelector("body");
|
|
6724
|
+
body.style.setProperty("--nav-height", `${this.navbarHeight * 2}px`);
|
|
6568
6725
|
}
|
|
6569
6726
|
async componentWillLoad() {
|
|
6570
6727
|
// Check for site header labels and set them to variables accordingly.
|
|
@@ -6574,26 +6731,26 @@ const SiteHeader = class {
|
|
|
6574
6731
|
this.languageLabels = labels.language_labels;
|
|
6575
6732
|
this.searchLabels = labels.search_labels;
|
|
6576
6733
|
this.groupPages = labels.group_pages;
|
|
6577
|
-
this.el.children[0].setAttribute(
|
|
6734
|
+
this.el.children[0].setAttribute("menu-button-breadcrumb-logourl", this.logoUrl);
|
|
6578
6735
|
}
|
|
6579
6736
|
// Check for the donation link information and set it to variables accordingly.
|
|
6580
6737
|
// Also pass the donation link data to menu-component.
|
|
6581
6738
|
if (this.dataMenuDonate) {
|
|
6582
6739
|
this.donateLink = await globalScript.jsonParserWorker(this.dataMenuDonate);
|
|
6583
|
-
this.el.children[0].setAttribute(
|
|
6740
|
+
this.el.children[0].setAttribute("data-menu-donate", this.dataMenuDonate);
|
|
6584
6741
|
}
|
|
6585
6742
|
// Pass the necessary information to menu component. These props will be
|
|
6586
6743
|
// used in mobile menu.
|
|
6587
|
-
this.el.children[0].setAttribute(
|
|
6588
|
-
this.el.children[0].setAttribute(
|
|
6589
|
-
this.el.children[0].setAttribute(
|
|
6590
|
-
this.el.children[0].setAttribute(
|
|
6591
|
-
this.el.children[0].setAttribute(
|
|
6592
|
-
this.el.children[0].setAttribute(
|
|
6593
|
-
this.el.children[0].setAttribute(
|
|
6594
|
-
this.el.children[0].setAttribute(
|
|
6595
|
-
this.el.children[0].setAttribute(
|
|
6596
|
-
if (this.groupType !==
|
|
6744
|
+
this.el.children[0].setAttribute("open", this.isMenuOpen.toString());
|
|
6745
|
+
this.el.children[0].setAttribute("logo-label", this.logoLabel);
|
|
6746
|
+
this.el.children[0].setAttribute("logo-url", this.logoUrl);
|
|
6747
|
+
this.el.children[0].setAttribute("site-label", this.siteLabel);
|
|
6748
|
+
this.el.children[0].setAttribute("site-url", this.siteUrl);
|
|
6749
|
+
this.el.children[0].setAttribute("menu-button-breadcrumb-logourl", this.logoUrl);
|
|
6750
|
+
this.el.children[0].setAttribute("menu-language-label-open", this.languageLabels["open"]);
|
|
6751
|
+
this.el.children[0].setAttribute("menu-language-label-close", this.languageLabels["close"]);
|
|
6752
|
+
this.el.children[0].setAttribute("label-front-page", this.menuLabels["front_page"]);
|
|
6753
|
+
if (this.groupType !== "") {
|
|
6597
6754
|
this.isDesktopMenuDropdown = true;
|
|
6598
6755
|
}
|
|
6599
6756
|
}
|
|
@@ -6610,7 +6767,7 @@ const SiteHeader = class {
|
|
|
6610
6767
|
// Pass the menu type to menu component.
|
|
6611
6768
|
this.isMobile = this.menuType === (utils.MenuType.mobile || utils.MenuType.tablet);
|
|
6612
6769
|
const menuAttribute = this.menuType;
|
|
6613
|
-
this.el.children[0].setAttribute(
|
|
6770
|
+
this.el.children[0].setAttribute("menu-type", menuAttribute);
|
|
6614
6771
|
}
|
|
6615
6772
|
render() {
|
|
6616
6773
|
var _a;
|
|
@@ -6621,29 +6778,29 @@ const SiteHeader = class {
|
|
|
6621
6778
|
const logoColor = utils.ColorVariant.black;
|
|
6622
6779
|
const logoColorGroup = utils.ColorVariant.white;
|
|
6623
6780
|
let classAttributes = [
|
|
6624
|
-
|
|
6781
|
+
"hy-site-header",
|
|
6625
6782
|
`hy-site-header--${this.menuType}`,
|
|
6626
|
-
this.isGroup ?
|
|
6627
|
-
|
|
6783
|
+
this.isGroup ? "is-group" : "",
|
|
6784
|
+
"is-at-top",
|
|
6628
6785
|
];
|
|
6629
6786
|
const toggleMenuMobileAndRemoveListener = () => {
|
|
6630
|
-
window.removeEventListener(
|
|
6787
|
+
window.removeEventListener("click", handleClickOutside);
|
|
6631
6788
|
this.mobileMenuToggle();
|
|
6632
6789
|
};
|
|
6633
6790
|
const handleClickOutside = (event) => {
|
|
6634
6791
|
const [targetElement] = event.composedPath();
|
|
6635
|
-
if (targetElement.classList.contains(
|
|
6792
|
+
if (targetElement.classList.contains("hy-backdrop")) {
|
|
6636
6793
|
toggleMenuMobileAndRemoveListener();
|
|
6637
6794
|
}
|
|
6638
6795
|
};
|
|
6639
6796
|
if (this.isMenuOpen) {
|
|
6640
|
-
window.addEventListener(
|
|
6797
|
+
window.addEventListener("click", () => {
|
|
6641
6798
|
clearTimeout(clickTimeout);
|
|
6642
6799
|
clickTimeout = setTimeout(() => {
|
|
6643
6800
|
}, 250);
|
|
6644
6801
|
});
|
|
6645
6802
|
}
|
|
6646
|
-
let activeLang =
|
|
6803
|
+
let activeLang = "en";
|
|
6647
6804
|
let dataMenuLanguageArray = JSON.parse(this.dataMenuLanguage);
|
|
6648
6805
|
dataMenuLanguageArray.forEach((lang) => {
|
|
6649
6806
|
if (lang.isActive) {
|
|
@@ -6654,22 +6811,22 @@ const SiteHeader = class {
|
|
|
6654
6811
|
case utils.MenuType.desktop:
|
|
6655
6812
|
// Larger than 1200px screens
|
|
6656
6813
|
return [
|
|
6657
|
-
index.h("header", { class: `${classAttributes.join(
|
|
6658
|
-
|
|
6659
|
-
|
|
6814
|
+
index.h("header", { class: `${classAttributes.join(" ")}` }, index.h("div", { class: {
|
|
6815
|
+
"hy-backdrop": true,
|
|
6816
|
+
"is-active": (this.isMenuOpen && !this.isDesktopMenuDropdown) ||
|
|
6660
6817
|
(this.isTopMenuOpen && !this.isDesktopMenuDropdown),
|
|
6661
|
-
} }), this.isGroup && (index.h("section", { class: `hy-site-header__content-top ${this.isTopMenuOpen ?
|
|
6662
|
-
return (index.h("a", { class:
|
|
6663
|
-
}))))), index.h("section", { class: `hy-site-header__container ${this.isGroup ?
|
|
6664
|
-
return (index.h("a", { class:
|
|
6818
|
+
} }), this.isGroup && (index.h("section", { class: `hy-site-header__content-top ${this.isTopMenuOpen ? "is-open" : ""}` }, index.h("div", { class: "hy-site-header__container" }, index.h("div", { class: "hy-site-header__branding" }, index.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 && (index.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 })), index.h("div", { class: "hy-site-header__actions" }, index.h("hy-menu-language", { "data-menu-language": this.dataMenuLanguage, labels: this.languageLabels, isGroup: true }), !this.noSearch && (index.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 }) => {
|
|
6819
|
+
return (index.h("a", { class: "hy-site-header__donate-link", href: url }, index.h("hy-icon", { icon: "hy-icon-heart-support", size: 14, fill: utils.ColorVariant.black }), index.h("span", null, label)));
|
|
6820
|
+
}))))), index.h("section", { class: `hy-site-header__container ${this.isGroup ? "is-group" : ""} ${this.groupType === "research_group_menu" ? "is-research-group" : ""}` }, index.h("div", { class: "hy-site-header__branding" }, this.isGroup && this.groupType == "research_group_menu" && index.h("p", null, this.researchGroupLabel), this.isGroup ? (index.h("a", { href: this.logoUrl }, this.groupType == "generic_site_group_menu" && this.groupLogoUrl ? (index.h("img", { src: this.groupLogoUrl, alt: `${this.logoLabel} logo` })) : (this.logoLabel))) : (index.h("hy-site-logo", { size: logoSize, color: logoColor, url: this.logoUrl, label: this.logoLabel }))), this.groupType != "research_group_menu" && index.h("slot", { name: "menu" }), !this.isGroup && (index.h("div", { class: "hy-site-header__actions" }, index.h("hy-menu-language", { "data-menu-language": this.dataMenuLanguage, labels: this.languageLabels }), !this.noSearch && (index.h("hy-site-search", { size: 14, "is-luomus-group": this.isLuomusGroup, "is-beta-group": this.isBetaGroup, "search-language": activeLang, color: utils.ColorVariant.black, "show-label": this.showSearchLabel, labels: this.searchLabels, "search-labels": this.dataSiteSearchLabels, "search-tools": this.dataSearchTools })), this.donateLink.map(({ label, url }) => {
|
|
6821
|
+
return (index.h("a", { class: "hy-site-header__donate-link", href: url }, index.h("hy-icon", { icon: "hy-icon-heart-support", size: 14, fill: utils.ColorVariant.black }), index.h("span", null, label)));
|
|
6665
6822
|
}))))),
|
|
6666
6823
|
];
|
|
6667
6824
|
case utils.MenuType.mobile:
|
|
6668
6825
|
// Smaller than 960px screens
|
|
6669
|
-
return (index.h("header", { class: classAttributes.join(
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
}, "aria-hidden": `${!this.isMenuOpen}` }, index.h("slot", { name:
|
|
6826
|
+
return (index.h("header", { class: classAttributes.join(" "), "data-menu-active": this.isMenuOpen }, index.h("div", { class: { "hy-backdrop": true, "is-active": this.isMenuOpen } }), index.h("div", { class: { "hy-backdrop": true, "is-active-top": this.isTopMenuOpen } }), this.isGroup && (index.h("section", { class: `hy-site-header__content-top ${this.isTopMenuOpen ? "is-open" : ""}` }, index.h("div", { class: "hy-site-header__container" }, index.h("div", { class: "hy-site-header__branding" }, index.h("hy-site-logo", { "is-group": true, "is-luomus-group": this.isLuomusGroup, size: logoSizeGroup, color: logoColorGroup, url: this.siteUrl, label: this.siteLabel })), index.h("div", { class: "hy-site-header__actions" }, index.h("hy-menu-language", { "data-menu-language": this.dataMenuLanguage, labels: this.languageLabels, isGroup: true }), !this.noSearch && (index.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 && (index.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 })))))), index.h("section", { class: "hy-site-header__container" }, index.h("div", { class: "hy-site-header__branding" }, this.groupType == "research_group_menu" && index.h("p", null, this.researchGroupLabel), this.isGroup ? (index.h("a", { href: this.logoUrl }, this.groupType == "generic_site_group_menu" && this.groupLogoUrl ? (index.h("img", { src: this.groupLogoUrl, alt: `${this.logoLabel} logo` })) : (this.logoLabel))) : (index.h("hy-site-logo", { size: logoSize, color: logoColor, url: this.logoUrl, label: this.logoLabel }))), index.h("div", { class: "hy-site-header__actions" }, !this.isGroup && (index.h("hy-menu-language", { "data-menu-language": this.dataMenuLanguage, labels: this.languageLabels })), !this.isGroup && !this.noSearch && (index.h("hy-site-search", { size: 24, color: utils.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 })), index.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 && index.h("hy-icon", { icon: "hy-icon-hamburger", size: 24, fill: utils.ColorVariant.black }), this.isMenuOpen && (index.h(index.Fragment, null, index.h("span", null, this.menuLabelClose), index.h("hy-icon", { icon: "hy-icon-remove", size: 16 }))))), index.h("div", { class: {
|
|
6827
|
+
"is-open": this.isMenuOpen,
|
|
6828
|
+
"hy-site-header__panel": true,
|
|
6829
|
+
}, "aria-hidden": `${!this.isMenuOpen}` }, index.h("slot", { name: "menu_mobile" })))));
|
|
6673
6830
|
}
|
|
6674
6831
|
}
|
|
6675
6832
|
get el() { return index.getElement(this); }
|
|
@@ -6690,15 +6847,15 @@ const SiteLogo = class {
|
|
|
6690
6847
|
this.url = undefined;
|
|
6691
6848
|
}
|
|
6692
6849
|
render() {
|
|
6693
|
-
const isGroupClass = this.isGroup ?
|
|
6850
|
+
const isGroupClass = this.isGroup ? "group" : "page";
|
|
6694
6851
|
// const isLuomusGroupClass = this.isLuomusGroup ? 'luomus' : 'regular';
|
|
6695
6852
|
const classAttributes = [
|
|
6696
|
-
|
|
6853
|
+
"hy-site-logo",
|
|
6697
6854
|
`hy-site-logo__${this.type}__${isGroupClass}`,
|
|
6698
6855
|
`hy-site-logo__${this.type}`,
|
|
6699
|
-
|
|
6700
|
-
].join(
|
|
6701
|
-
return this.url ? (index.h(index.Host, { class: classAttributes }, !this.isLuomusGroup && (index.h("a", { href: this.url }, index.h("hy-icon", { class: {
|
|
6856
|
+
"luomus",
|
|
6857
|
+
].join(" ");
|
|
6858
|
+
return this.url ? (index.h(index.Host, { class: classAttributes }, !this.isLuomusGroup && (index.h("a", { href: this.url }, index.h("hy-icon", { class: { "hy-site-logo__icon": true, group: this.isGroup }, icon: "hy-icon-hy-logo", size: this.size, fill: this.color }), index.h("span", { class: { "hy-site-logo__label": true, group: this.isGroup }, style: { color: this.color } }, this.label))), this.isLuomusGroup && (index.h("div", { class: "luomus-group" }, index.h("hy-icon", { class: { "hy-site-logo__icon": true, group: this.isGroup }, icon: "hy-icon-hy-logo", size: this.size, fill: this.color }), index.h("span", { class: { "hy-site-logo__label": true, group: this.isGroup }, style: { color: this.color } }, this.label))))) : this.label ? (index.h(index.Host, { class: classAttributes }, index.h("hy-icon", { class: { "hy-site-logo__icon": true, group: this.isGroup }, icon: "hy-icon-hy-logo", size: this.size, fill: this.color }), index.h("span", { class: { "hy-site-logo__label": true, group: this.isGroup }, style: { color: this.color } }, this.label))) : ("");
|
|
6702
6859
|
}
|
|
6703
6860
|
};
|
|
6704
6861
|
SiteLogo.style = siteLogoCss;
|
|
@@ -6731,10 +6888,10 @@ const SiteSearch = class {
|
|
|
6731
6888
|
}
|
|
6732
6889
|
if (this.searchLabels) {
|
|
6733
6890
|
this._searchLabels = await globalScript.jsonParserWorker(this.searchLabels);
|
|
6734
|
-
this.searchTitleLabel = this._searchLabels[
|
|
6735
|
-
this.searchCloseLabel = this._searchLabels[
|
|
6736
|
-
this.searchToolsLabel = this._searchLabels[
|
|
6737
|
-
this.searchDescriptionLabel = this._searchLabels[
|
|
6891
|
+
this.searchTitleLabel = this._searchLabels["search_label"];
|
|
6892
|
+
this.searchCloseLabel = this._searchLabels["search_close_label"];
|
|
6893
|
+
this.searchToolsLabel = this._searchLabels["search_tools_label"];
|
|
6894
|
+
this.searchDescriptionLabel = this._searchLabels["search_description"];
|
|
6738
6895
|
}
|
|
6739
6896
|
}
|
|
6740
6897
|
// CLose the search panel if user opens the desktop menu panel.
|
|
@@ -6759,7 +6916,7 @@ const SiteSearch = class {
|
|
|
6759
6916
|
return;
|
|
6760
6917
|
if (this.isSearchPanelOpen) {
|
|
6761
6918
|
const path = event.path || (event.composedPath && event.composedPath());
|
|
6762
|
-
if (path[0].classList.contains(
|
|
6919
|
+
if (path[0].classList.contains("hy-backdrop")) {
|
|
6763
6920
|
this.closeSearchPanel();
|
|
6764
6921
|
event.stopPropagation();
|
|
6765
6922
|
}
|
|
@@ -6772,10 +6929,10 @@ const SiteSearch = class {
|
|
|
6772
6929
|
// }
|
|
6773
6930
|
closeSearchPanel() {
|
|
6774
6931
|
this.isSearchPanelOpen = false;
|
|
6775
|
-
let cludoSayt = document.querySelectorAll(
|
|
6932
|
+
let cludoSayt = document.querySelectorAll("stencil-cludo-sayt")[0];
|
|
6776
6933
|
if (cludoSayt) {
|
|
6777
6934
|
let CludoSayt = window.CludoSayt;
|
|
6778
|
-
if (typeof CludoSayt !==
|
|
6935
|
+
if (typeof CludoSayt !== "undefined") {
|
|
6779
6936
|
CludoSayt.hide();
|
|
6780
6937
|
}
|
|
6781
6938
|
}
|
|
@@ -6783,16 +6940,16 @@ const SiteSearch = class {
|
|
|
6783
6940
|
}
|
|
6784
6941
|
handleSearchPanelToggle(event) {
|
|
6785
6942
|
if (this.isLuomusGroup) {
|
|
6786
|
-
let beta = this.isBetaGroup ?
|
|
6787
|
-
let luomus_search_url =
|
|
6788
|
-
if (this.searchLanguage ==
|
|
6789
|
-
luomus_search_url =
|
|
6943
|
+
let beta = this.isBetaGroup ? "/beta" : "";
|
|
6944
|
+
let luomus_search_url = "/" + this.searchLanguage + beta + "/luomus/search-results";
|
|
6945
|
+
if (this.searchLanguage == "fi") {
|
|
6946
|
+
luomus_search_url = "/" + this.searchLanguage + beta + "/luomus/hakutulokset";
|
|
6790
6947
|
}
|
|
6791
|
-
else if (this.searchLanguage ==
|
|
6792
|
-
luomus_search_url =
|
|
6948
|
+
else if (this.searchLanguage == "sv") {
|
|
6949
|
+
luomus_search_url = "/" + this.searchLanguage + beta + "/luomus/sokresultat";
|
|
6793
6950
|
}
|
|
6794
|
-
else if (this.searchLanguage ==
|
|
6795
|
-
luomus_search_url =
|
|
6951
|
+
else if (this.searchLanguage == "ru") {
|
|
6952
|
+
luomus_search_url = "/" + this.searchLanguage + beta + "/luomus/rezultaty-poiska";
|
|
6796
6953
|
}
|
|
6797
6954
|
location.href = luomus_search_url;
|
|
6798
6955
|
}
|
|
@@ -6803,18 +6960,18 @@ const SiteSearch = class {
|
|
|
6803
6960
|
this.searchPanelToggled.emit();
|
|
6804
6961
|
this.adjustPosition(this.el);
|
|
6805
6962
|
// Remove hidden class from cludo suggestions
|
|
6806
|
-
let cludoSayt = document.querySelectorAll(
|
|
6963
|
+
let cludoSayt = document.querySelectorAll("stencil-cludo-sayt")[0];
|
|
6807
6964
|
if (cludoSayt) {
|
|
6808
|
-
const cludoSearchContentFormElement = this.el.shadowRoot.querySelector(
|
|
6809
|
-
cludoSayt.classList.remove(
|
|
6965
|
+
const cludoSearchContentFormElement = this.el.shadowRoot.querySelector("#cludo-search-content-form");
|
|
6966
|
+
cludoSayt.classList.remove("hidden");
|
|
6810
6967
|
cludoSearchContentFormElement.append(cludoSayt);
|
|
6811
|
-
cludoSayt.shadowRoot.querySelector(
|
|
6812
|
-
cludoSayt.shadowRoot.querySelector(
|
|
6813
|
-
cludoSayt.shadowRoot.querySelector(
|
|
6968
|
+
cludoSayt.shadowRoot.querySelector("#cludo-reli-flexi-wrapper").style.position = "relative";
|
|
6969
|
+
cludoSayt.shadowRoot.querySelector("#cludo-reli-flexi").style.position = "relative";
|
|
6970
|
+
cludoSayt.shadowRoot.querySelector("#cludo-reli-flexi").style.maxWidth = "none";
|
|
6814
6971
|
}
|
|
6815
6972
|
// Without setTimeout it will not focus the input because it hasn't rendered yet.
|
|
6816
6973
|
setTimeout(() => {
|
|
6817
|
-
const searchInput = this.el.shadowRoot.querySelector(
|
|
6974
|
+
const searchInput = this.el.shadowRoot.querySelector("input#search");
|
|
6818
6975
|
searchInput.focus();
|
|
6819
6976
|
});
|
|
6820
6977
|
}
|
|
@@ -6825,76 +6982,76 @@ const SiteSearch = class {
|
|
|
6825
6982
|
event.stopPropagation();
|
|
6826
6983
|
}
|
|
6827
6984
|
adjustPosition(target) {
|
|
6828
|
-
let headerHeight =
|
|
6985
|
+
let headerHeight = "0";
|
|
6829
6986
|
let shadowTop = 0;
|
|
6830
6987
|
const searchPanel = target.shadowRoot.querySelectorAll(`.site-search__panel`)[0];
|
|
6831
6988
|
let initialDisplayStyle = searchPanel.style.display;
|
|
6832
6989
|
if (this.isGroup) {
|
|
6833
|
-
let hyHeader = target.closest(
|
|
6990
|
+
let hyHeader = target.closest(".hy-site-header__content-top");
|
|
6834
6991
|
if (hyHeader) {
|
|
6835
6992
|
let headerHeightValue = hyHeader.offsetHeight;
|
|
6836
6993
|
headerHeight = `${headerHeightValue}px`;
|
|
6837
6994
|
let headerTop = hyHeader.offsetTop;
|
|
6838
6995
|
// Add shadow backdrop
|
|
6839
|
-
searchPanel.style.display =
|
|
6996
|
+
searchPanel.style.display = "flex";
|
|
6840
6997
|
shadowTop = headerHeightValue + headerTop + searchPanel.offsetHeight;
|
|
6841
6998
|
}
|
|
6842
6999
|
}
|
|
6843
7000
|
else {
|
|
6844
|
-
let hyHeader = target.closest(
|
|
7001
|
+
let hyHeader = target.closest(".hy-site-header");
|
|
6845
7002
|
if (hyHeader) {
|
|
6846
|
-
let headerHeightValue = hyHeader.classList.contains(
|
|
7003
|
+
let headerHeightValue = hyHeader.classList.contains("hy-site-header--sticky-active")
|
|
6847
7004
|
? hyHeader.offsetHeight
|
|
6848
7005
|
: hyHeader.offsetTop + hyHeader.offsetHeight;
|
|
6849
7006
|
headerHeight = `${headerHeightValue}px`;
|
|
6850
7007
|
// Add shadow backdrop
|
|
6851
|
-
searchPanel.style.display =
|
|
7008
|
+
searchPanel.style.display = "flex";
|
|
6852
7009
|
let searchPanelHeight = searchPanel.offsetHeight;
|
|
6853
7010
|
shadowTop = searchPanelHeight + headerHeightValue;
|
|
6854
7011
|
}
|
|
6855
7012
|
}
|
|
6856
7013
|
searchPanel.style.display = initialDisplayStyle;
|
|
6857
7014
|
searchPanel.style.top = headerHeight;
|
|
6858
|
-
this.showBackdropShadow(
|
|
7015
|
+
this.showBackdropShadow("open", shadowTop);
|
|
6859
7016
|
}
|
|
6860
|
-
showBackdropShadow(state =
|
|
6861
|
-
let hyHeader = this.el.closest(
|
|
7017
|
+
showBackdropShadow(state = "close", top = 0) {
|
|
7018
|
+
let hyHeader = this.el.closest(".hy-site-header");
|
|
6862
7019
|
let hyBackdropDiv = hyHeader.children[0];
|
|
6863
7020
|
if (hyBackdropDiv) {
|
|
6864
|
-
if (state ===
|
|
7021
|
+
if (state === "open") {
|
|
6865
7022
|
let me = window.outerHeight - top;
|
|
6866
7023
|
hyBackdropDiv.style.height = `${me}px`;
|
|
6867
7024
|
hyBackdropDiv.style.top = `${top}px`;
|
|
6868
|
-
hyBackdropDiv.style.position =
|
|
6869
|
-
hyBackdropDiv.classList.add(
|
|
7025
|
+
hyBackdropDiv.style.position = "absolute";
|
|
7026
|
+
hyBackdropDiv.classList.add("is-active");
|
|
6870
7027
|
}
|
|
6871
7028
|
else {
|
|
6872
|
-
hyBackdropDiv.removeAttribute(
|
|
6873
|
-
hyBackdropDiv.classList.remove(
|
|
7029
|
+
hyBackdropDiv.removeAttribute("style");
|
|
7030
|
+
hyBackdropDiv.classList.remove("is-active");
|
|
6874
7031
|
}
|
|
6875
7032
|
}
|
|
6876
7033
|
}
|
|
6877
7034
|
render() {
|
|
6878
7035
|
const currentPageUrlPathName = window.location.pathname;
|
|
6879
|
-
const searchPagePathNames = [
|
|
7036
|
+
const searchPagePathNames = ["/fi/haku", "/en/search", "/sv/sök"];
|
|
6880
7037
|
return (index.h("div", { class: {
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
} }, index.h("button", { "aria-label": this.showLabel ? this._labels[
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
}, onClick: (e) => this.handleSearchPanelToggle(e), disabled: searchPagePathNames.some((item) => item === currentPageUrlPathName) ? true : false }, this.showLabel ? (index.h("span", { class: {
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
}, "aria-hidden": `${!this.isSearchPanelOpen}` }, index.h("div", { class: "site-search__panel__wrapper" }, index.h("div", { class: "site-search__panel__title" }, index.h("div", { class: "site-search__panel__title__group" }, index.h("span", { class: "panel-title" }, this.searchTitleLabel), index.h("div", { class: "description" }, this.searchDescriptionLabel))), index.h("div", { id: "cludo-search-results", class: "container_12" }, index.h("div", { class: "search-banner" }), index.h("div", { class: "search-filters search-filters-mobile" }), index.h("div", { class: "col-md-12" }, index.h("div", { style: { margin:
|
|
6893
|
-
let searchToolTarget = i.isExternal ?
|
|
6894
|
-
return (index.h("a", { class: "search-special-tool", href: i.url, target: searchToolTarget }, index.h("hy-icon", { icon:
|
|
7038
|
+
"site-search": true,
|
|
7039
|
+
"site-search__is-open": this.isSearchPanelOpen,
|
|
7040
|
+
"is-group": this.isGroup,
|
|
7041
|
+
} }, index.h("button", { "aria-label": this.showLabel ? this._labels["open"] : "", "aria-expanded": `${this.isSearchPanelOpen}`, class: {
|
|
7042
|
+
"button--search": true,
|
|
7043
|
+
"is-open--menu": this.isAlternative,
|
|
7044
|
+
"is-open": this.isSearchPanelOpen,
|
|
7045
|
+
"is-active": searchPagePathNames.some((item) => item === currentPageUrlPathName),
|
|
7046
|
+
}, onClick: (e) => this.handleSearchPanelToggle(e), disabled: searchPagePathNames.some((item) => item === currentPageUrlPathName) ? true : false }, this.showLabel ? (index.h("span", { class: { "button--search__label": true, "button--search__label__group": this.isGroup } }, this._labels["label"])) : (""), index.h("hy-icon", { icon: "hy-icon-search", size: this.size, fill: this.color })), !this.isLuomusGroup && (index.h("div", { class: {
|
|
7047
|
+
"site-search__panel": true,
|
|
7048
|
+
"site-search__panel__is-open": this.isSearchPanelOpen,
|
|
7049
|
+
}, "aria-hidden": `${!this.isSearchPanelOpen}` }, index.h("div", { class: "site-search__panel__wrapper" }, index.h("div", { class: "site-search__panel__title" }, index.h("div", { class: "site-search__panel__title__group" }, index.h("span", { class: "panel-title" }, this.searchTitleLabel), index.h("div", { class: "description" }, this.searchDescriptionLabel))), index.h("div", { id: "cludo-search-results", class: "container_12" }, index.h("div", { class: "search-banner" }), index.h("div", { class: "search-filters search-filters-mobile" }), index.h("div", { class: "col-md-12" }, index.h("div", { style: { margin: "20px 0 32px" }, id: "cludo-search-content-form" }, index.h("hy-search-field", { "input-id": "search", label: "" }))), index.h("div", { class: "col-md-3" }, index.h("div", { class: "search-filters", "aria-controls": "search-results" })), index.h("div", { class: "col-md-9" }, index.h("div", { class: "search-results-container" }, index.h("hy-paragraph-text", null, index.h("div", { class: "search-result-count" })), index.h("div", { class: "search-did-you-mean", role: "Complementary" }), index.h("div", { class: "search-results", role: "region", id: "search-results", "aria-live": "polite" })))), this._searchTools && this._searchTools.length > 0 && (index.h("div", { class: "site-search__panel__tools" }, index.h("div", { class: "title" }, this.searchToolsLabel), index.h("div", { class: "list" }, this._searchTools.map((i) => {
|
|
7050
|
+
let searchToolTarget = i.isExternal ? "_blank" : "_self";
|
|
7051
|
+
return (index.h("a", { class: "search-special-tool", href: i.url, target: searchToolTarget }, index.h("hy-icon", { icon: "hy-icon-arrow-to-right", size: 14, fill: utils.ColorVariant.black }), index.h("span", { class: "label" }, i.label), index.h("span", { class: "description" }, i.description)));
|
|
6895
7052
|
})))), index.h("button", { onClick: () => this.closeSearchPanel(), class: {
|
|
6896
|
-
|
|
6897
|
-
}, "aria-label": this.searchCloseLabel, "aria-expanded": `${this.isSearchPanelOpen}` }, index.h("span", { class: "site-search__panel__panel-toggle__label" }, index.h("span", { class: "site-search__panel__panel-toggle__label__title", tabindex: "0" }, this.searchCloseLabel), index.h("hy-icon", { icon:
|
|
7053
|
+
"site-search__panel__panel-toggle": true,
|
|
7054
|
+
}, "aria-label": this.searchCloseLabel, "aria-expanded": `${this.isSearchPanelOpen}` }, index.h("span", { class: "site-search__panel__panel-toggle__label" }, index.h("span", { class: "site-search__panel__panel-toggle__label__title", tabindex: "0" }, this.searchCloseLabel), index.h("hy-icon", { icon: "hy-icon-remove", size: 16, fill: utils.ColorVariant.black }))))))));
|
|
6898
7055
|
}
|
|
6899
7056
|
get el() { return index.getElement(this); }
|
|
6900
7057
|
};
|
|
@@ -6907,7 +7064,7 @@ const HyTableContainer = class {
|
|
|
6907
7064
|
index.registerInstance(this, hostRef);
|
|
6908
7065
|
}
|
|
6909
7066
|
render() {
|
|
6910
|
-
const classAttributes = [
|
|
7067
|
+
const classAttributes = ["hy-table-container"].join(" ");
|
|
6911
7068
|
return (index.h(index.Host, { class: classAttributes }, index.h("slot", null), index.h("hy-box", { mb: "1.75, 1.75, 2, 2.5" })));
|
|
6912
7069
|
}
|
|
6913
7070
|
};
|
|
@@ -6939,76 +7096,76 @@ const HyTabs = class {
|
|
|
6939
7096
|
constructor(hostRef) {
|
|
6940
7097
|
index.registerInstance(this, hostRef);
|
|
6941
7098
|
this.tabId = undefined;
|
|
6942
|
-
this.tabListLabel =
|
|
7099
|
+
this.tabListLabel = "";
|
|
6943
7100
|
this.focusTimeoutCleared = true;
|
|
6944
7101
|
this.tabButtonTitles = undefined;
|
|
6945
7102
|
this.tabPanelsState = undefined;
|
|
6946
7103
|
this.tabButtons = undefined;
|
|
6947
7104
|
this.tabList = undefined;
|
|
6948
|
-
this.headerstyle =
|
|
7105
|
+
this.headerstyle = "common";
|
|
6949
7106
|
}
|
|
6950
7107
|
componentWillLoad() {
|
|
6951
|
-
const tabItems = this.el.querySelectorAll(
|
|
7108
|
+
const tabItems = this.el.querySelectorAll("hy-tabs-item");
|
|
6952
7109
|
if (tabItems) {
|
|
6953
7110
|
this.tabButtonTitles = Array.from(tabItems).map((panel) => {
|
|
6954
7111
|
return {
|
|
6955
|
-
title: panel.getAttribute(
|
|
6956
|
-
id: panel.getAttribute(
|
|
7112
|
+
title: panel.getAttribute("tab-title"),
|
|
7113
|
+
id: panel.getAttribute("tab-title").toLowerCase().replace(/\W/g, "-"),
|
|
6957
7114
|
};
|
|
6958
7115
|
});
|
|
6959
7116
|
}
|
|
6960
7117
|
}
|
|
6961
7118
|
componentDidLoad() {
|
|
6962
|
-
let hyMainDiv = this.el.closest(
|
|
7119
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
6963
7120
|
if (hyMainDiv) {
|
|
6964
|
-
if (!hyMainDiv.classList.contains(
|
|
6965
|
-
this.headerstyle =
|
|
7121
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
7122
|
+
this.headerstyle = "large";
|
|
6966
7123
|
}
|
|
6967
7124
|
}
|
|
6968
|
-
const tabContainer = this.el.querySelector(
|
|
7125
|
+
const tabContainer = this.el.querySelector(".hy-tabs__container");
|
|
6969
7126
|
if (tabContainer) {
|
|
6970
7127
|
this.generateArrays(tabContainer);
|
|
6971
|
-
const leftButton = this.el.querySelectorAll(
|
|
6972
|
-
const rightButton = this.el.querySelectorAll(
|
|
7128
|
+
const leftButton = this.el.querySelectorAll(".hy-tab-scroll__left")[0];
|
|
7129
|
+
const rightButton = this.el.querySelectorAll(".hy-tab-scroll__right")[0];
|
|
6973
7130
|
const tabList = this.tabList;
|
|
6974
7131
|
this.checkScrollHidden(tabList, leftButton, rightButton);
|
|
6975
|
-
tabList.addEventListener(
|
|
7132
|
+
tabList.addEventListener("scroll", () => {
|
|
6976
7133
|
scrollTimeout = setTimeout(() => {
|
|
6977
7134
|
window.clearTimeout(scrollTimeout);
|
|
6978
7135
|
this.checkScrollHidden(tabList, leftButton, rightButton);
|
|
6979
7136
|
}, 250);
|
|
6980
7137
|
}, false);
|
|
6981
7138
|
if (tabList.offSetWidth <= document.body.scrollWidth) {
|
|
6982
|
-
leftButton.classList.add(
|
|
6983
|
-
rightButton.classList.add(
|
|
7139
|
+
leftButton.classList.add("is-hidden");
|
|
7140
|
+
rightButton.classList.add("is-hidden");
|
|
6984
7141
|
}
|
|
6985
7142
|
const oneTabWidth = 250;
|
|
6986
|
-
rightButton.addEventListener(
|
|
7143
|
+
rightButton.addEventListener("click", (e) => {
|
|
6987
7144
|
e.preventDefault();
|
|
6988
|
-
rightButton.classList.add(
|
|
7145
|
+
rightButton.classList.add("is-disabled");
|
|
6989
7146
|
tabList.scrollBy({
|
|
6990
7147
|
top: 0,
|
|
6991
7148
|
left: +oneTabWidth,
|
|
6992
|
-
behavior:
|
|
7149
|
+
behavior: "smooth",
|
|
6993
7150
|
});
|
|
6994
7151
|
checkTimeout = window.setTimeout(() => {
|
|
6995
7152
|
window.clearTimeout(checkTimeout);
|
|
6996
7153
|
this.checkScrollHidden(tabList, leftButton, rightButton);
|
|
6997
|
-
rightButton.classList.remove(
|
|
7154
|
+
rightButton.classList.remove("is-disabled");
|
|
6998
7155
|
}, 250);
|
|
6999
7156
|
});
|
|
7000
|
-
leftButton.addEventListener(
|
|
7157
|
+
leftButton.addEventListener("click", (e) => {
|
|
7001
7158
|
e.preventDefault();
|
|
7002
|
-
leftButton.classList.add(
|
|
7159
|
+
leftButton.classList.add("is-disabled");
|
|
7003
7160
|
tabList.scrollBy({
|
|
7004
7161
|
top: 0,
|
|
7005
7162
|
left: -oneTabWidth,
|
|
7006
|
-
behavior:
|
|
7163
|
+
behavior: "smooth",
|
|
7007
7164
|
});
|
|
7008
7165
|
checkTimeout = window.setTimeout(() => {
|
|
7009
7166
|
window.clearTimeout(checkTimeout);
|
|
7010
7167
|
this.checkScrollHidden(tabList, leftButton, rightButton);
|
|
7011
|
-
leftButton.classList.remove(
|
|
7168
|
+
leftButton.classList.remove("is-disabled");
|
|
7012
7169
|
}, 250);
|
|
7013
7170
|
});
|
|
7014
7171
|
}
|
|
@@ -7025,8 +7182,8 @@ const HyTabs = class {
|
|
|
7025
7182
|
addListeners(tabs, index) {
|
|
7026
7183
|
if (tabs.length > 1) {
|
|
7027
7184
|
for (let i = 0; i < tabs.length; ++i) {
|
|
7028
|
-
tabs[index].addEventListener(
|
|
7029
|
-
tabs[index].addEventListener(
|
|
7185
|
+
tabs[index].addEventListener("click", this.clickEventListener);
|
|
7186
|
+
tabs[index].addEventListener("keydown", this.keydownEventListener);
|
|
7030
7187
|
//tabs[index].addEventListener('keyup', this.keyupEventListener);
|
|
7031
7188
|
tabs[index].index = index;
|
|
7032
7189
|
}
|
|
@@ -7034,16 +7191,16 @@ const HyTabs = class {
|
|
|
7034
7191
|
}
|
|
7035
7192
|
checkScrollHidden(tablist, leftButton, rightButton) {
|
|
7036
7193
|
if (tablist.scrollLeft === 0) {
|
|
7037
|
-
leftButton.classList.add(
|
|
7194
|
+
leftButton.classList.add("is-hidden");
|
|
7038
7195
|
}
|
|
7039
7196
|
else {
|
|
7040
|
-
leftButton.classList.remove(
|
|
7197
|
+
leftButton.classList.remove("is-hidden");
|
|
7041
7198
|
}
|
|
7042
7199
|
if (tablist.scrollLeft + tablist.clientWidth >= tablist.scrollWidth - 1) {
|
|
7043
|
-
rightButton.classList.add(
|
|
7200
|
+
rightButton.classList.add("is-hidden");
|
|
7044
7201
|
}
|
|
7045
7202
|
else {
|
|
7046
|
-
rightButton.classList.remove(
|
|
7203
|
+
rightButton.classList.remove("is-hidden");
|
|
7047
7204
|
}
|
|
7048
7205
|
}
|
|
7049
7206
|
// When a tab is clicked, activateTab is fired to activate it
|
|
@@ -7092,7 +7249,7 @@ const HyTabs = class {
|
|
|
7092
7249
|
switch (key) {
|
|
7093
7250
|
case keys.left:
|
|
7094
7251
|
case keys.right:
|
|
7095
|
-
if (event.target.role ===
|
|
7252
|
+
if (event.target.role === "tab") {
|
|
7096
7253
|
event.preventDefault();
|
|
7097
7254
|
if (this.focusTimeoutCleared) {
|
|
7098
7255
|
this.determineOrientation(event);
|
|
@@ -7104,12 +7261,12 @@ const HyTabs = class {
|
|
|
7104
7261
|
event.stopImmediatePropagation();
|
|
7105
7262
|
}
|
|
7106
7263
|
determineOrientation(event) {
|
|
7107
|
-
const leftButton = this.el.querySelectorAll(
|
|
7108
|
-
const rightButton = this.el.querySelectorAll(
|
|
7264
|
+
const leftButton = this.el.querySelectorAll(".hy-tab-scroll__left")[0];
|
|
7265
|
+
const rightButton = this.el.querySelectorAll(".hy-tab-scroll__right")[0];
|
|
7109
7266
|
const tabList = this.tabList;
|
|
7110
7267
|
this.checkScrollHidden(tabList, leftButton, rightButton);
|
|
7111
7268
|
const key = event.keyCode;
|
|
7112
|
-
const vertical = tabList.getAttribute(
|
|
7269
|
+
const vertical = tabList.getAttribute("aria-orientation") == "vertical";
|
|
7113
7270
|
let proceed = false;
|
|
7114
7271
|
if (vertical) {
|
|
7115
7272
|
if (key === keys.up || key === keys.down) {
|
|
@@ -7157,10 +7314,10 @@ const HyTabs = class {
|
|
|
7157
7314
|
// Deactivate all other tabs
|
|
7158
7315
|
this.deactivateTabs(this.tabButtons);
|
|
7159
7316
|
// Remove tabindex attribute
|
|
7160
|
-
tab.removeAttribute(
|
|
7161
|
-
tab.setAttribute(
|
|
7162
|
-
const controls = tab.getAttribute(
|
|
7163
|
-
this.el.querySelector(`#${controls}`).removeAttribute(
|
|
7317
|
+
tab.removeAttribute("tabindex");
|
|
7318
|
+
tab.setAttribute("aria-selected", "true");
|
|
7319
|
+
const controls = tab.getAttribute("aria-controls");
|
|
7320
|
+
this.el.querySelector(`#${controls}`).removeAttribute("hidden");
|
|
7164
7321
|
if (setFocus) {
|
|
7165
7322
|
tab.focus();
|
|
7166
7323
|
}
|
|
@@ -7168,13 +7325,13 @@ const HyTabs = class {
|
|
|
7168
7325
|
// Deactivate all tabs and tab panels
|
|
7169
7326
|
deactivateTabs(tabs) {
|
|
7170
7327
|
for (let t = 0; t < tabs.length; t++) {
|
|
7171
|
-
tabs[t].setAttribute(
|
|
7172
|
-
tabs[t].setAttribute(
|
|
7173
|
-
tabs[t].removeEventListener(
|
|
7328
|
+
tabs[t].setAttribute("tabindex", "-1");
|
|
7329
|
+
tabs[t].setAttribute("aria-selected", "false");
|
|
7330
|
+
tabs[t].removeEventListener("focus", this.focusEventHandler);
|
|
7174
7331
|
}
|
|
7175
7332
|
const panels = this.tabPanelsState[0];
|
|
7176
7333
|
for (let p = 0; p < panels.length; p++) {
|
|
7177
|
-
panels[p].setAttribute(
|
|
7334
|
+
panels[p].setAttribute("hidden", "hidden");
|
|
7178
7335
|
}
|
|
7179
7336
|
}
|
|
7180
7337
|
focusEventHandler(tab) {
|
|
@@ -7190,30 +7347,30 @@ const HyTabs = class {
|
|
|
7190
7347
|
}, 250);
|
|
7191
7348
|
}
|
|
7192
7349
|
render() {
|
|
7193
|
-
const classComponentAttributes = [
|
|
7194
|
-
const id = this.tabId.toLowerCase().replace(/\W/g,
|
|
7350
|
+
const classComponentAttributes = ["hy-tabs__container", `hy-tabs__container__${this.headerstyle}`].join(" ");
|
|
7351
|
+
const id = this.tabId.toLowerCase().replace(/\W/g, "-");
|
|
7195
7352
|
if (window.location.hash) {
|
|
7196
7353
|
const tabHash = window.location.hash.substring(1);
|
|
7197
|
-
const isUrlHashed = this.tabButtonTitles.some((tab) => tab[
|
|
7354
|
+
const isUrlHashed = this.tabButtonTitles.some((tab) => tab["id"] === tabHash);
|
|
7198
7355
|
if (isUrlHashed) {
|
|
7199
7356
|
const hashElement = document.getElementById(tabHash);
|
|
7200
7357
|
if (hashElement) {
|
|
7201
7358
|
this.activateTab(hashElement, true);
|
|
7202
7359
|
const hashElementRect = hashElement.getBoundingClientRect();
|
|
7203
|
-
window.scrollTo({ top: window.scrollY + hashElementRect.top - 200, behavior:
|
|
7360
|
+
window.scrollTo({ top: window.scrollY + hashElementRect.top - 200, behavior: "smooth" });
|
|
7204
7361
|
}
|
|
7205
7362
|
}
|
|
7206
7363
|
}
|
|
7207
7364
|
return [
|
|
7208
7365
|
index.h("hy-box", { pt: "1.25, 1.25, 1.5, 2.5" }),
|
|
7209
|
-
index.h("div", { id: id, class: classComponentAttributes }, index.h("div", { class: "hy-tablist-container" }, index.h("button", { tabindex: "-1", class: "hy-tab-scroll hy-tab-scroll__left is-hidden", "aria-hidden": "true" }, index.h("span", null, index.h("hy-icon", { icon:
|
|
7366
|
+
index.h("div", { id: id, class: classComponentAttributes }, index.h("div", { class: "hy-tablist-container" }, index.h("button", { tabindex: "-1", class: "hy-tab-scroll hy-tab-scroll__left is-hidden", "aria-hidden": "true" }, index.h("span", null, index.h("hy-icon", { icon: "hy-icon-caret-left", size: 16 }))), index.h("div", { role: "tablist", "aria-label": this.tabListLabel }, this.tabButtonTitles &&
|
|
7210
7367
|
this.tabButtonTitles.map((item) => {
|
|
7211
7368
|
const title = Object.values(item)[0];
|
|
7212
|
-
const id = title.toLowerCase().replace(/\W/g,
|
|
7213
|
-
const titleAsId = title.toLowerCase().replace(/\W/g,
|
|
7214
|
-
const tabItemHref =
|
|
7369
|
+
const id = title.toLowerCase().replace(/\W/g, "-");
|
|
7370
|
+
const titleAsId = title.toLowerCase().replace(/\W/g, "-");
|
|
7371
|
+
const tabItemHref = "#" + titleAsId;
|
|
7215
7372
|
return (index.h("a", { href: tabItemHref, tabindex: "-1" }, index.h("button", { "aria-selected": "false", "aria-controls": `${id}-tab`, class: this.headerstyle, role: "tab", id: id }, index.h("span", null, title))));
|
|
7216
|
-
})), index.h("button", { tabindex: "-1", class: "hy-tab-scroll hy-tab-scroll__right", "aria-hidden": "true" }, index.h("span", null, index.h("hy-icon", { icon:
|
|
7373
|
+
})), index.h("button", { tabindex: "-1", class: "hy-tab-scroll hy-tab-scroll__right", "aria-hidden": "true" }, index.h("span", null, index.h("hy-icon", { icon: "hy-icon-caret-right", size: 16 })))), index.h("slot", null)),
|
|
7217
7374
|
index.h("hy-box", { mb: "1.75, 1.75, 2, 2.5" }),
|
|
7218
7375
|
];
|
|
7219
7376
|
}
|
|
@@ -7229,7 +7386,7 @@ const HyTabsItem = class {
|
|
|
7229
7386
|
this.tabTitle = undefined;
|
|
7230
7387
|
}
|
|
7231
7388
|
render() {
|
|
7232
|
-
const id = this.tabTitle.toLowerCase().replace(/\W/g,
|
|
7389
|
+
const id = this.tabTitle.toLowerCase().replace(/\W/g, "-");
|
|
7233
7390
|
return (index.h("div", { tabindex: "0", role: "tabpanel", id: `${id}-tab`, "aria-labelledby": id, hidden: true }, index.h("slot", null)));
|
|
7234
7391
|
}
|
|
7235
7392
|
};
|
|
@@ -7242,12 +7399,25 @@ const HyTag = class {
|
|
|
7242
7399
|
index.registerInstance(this, hostRef);
|
|
7243
7400
|
}
|
|
7244
7401
|
render() {
|
|
7245
|
-
const classAttributes = [
|
|
7402
|
+
const classAttributes = ["hy-tag"].join(" ");
|
|
7246
7403
|
return (index.h(index.Host, null, index.h("div", { class: classAttributes }, index.h("span", null, index.h("slot", null)))));
|
|
7247
7404
|
}
|
|
7248
7405
|
};
|
|
7249
7406
|
HyTag.style = hyTagCss;
|
|
7250
7407
|
|
|
7408
|
+
const tinyTextCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host{display:block}.hy-tiny-text{color:var(--grayscale-dark);font-family:var(--main-font-family);font-size:12px;letter-spacing:-0.07px;line-height:16px}";
|
|
7409
|
+
|
|
7410
|
+
const TinyText = class {
|
|
7411
|
+
constructor(hostRef) {
|
|
7412
|
+
index.registerInstance(this, hostRef);
|
|
7413
|
+
}
|
|
7414
|
+
render() {
|
|
7415
|
+
const classAttributes = ["hy-tiny-text"];
|
|
7416
|
+
return (index.h("div", { class: classAttributes.join(" ") }, index.h("slot", null)));
|
|
7417
|
+
}
|
|
7418
|
+
};
|
|
7419
|
+
TinyText.style = tinyTextCss;
|
|
7420
|
+
|
|
7251
7421
|
const hyTwitterFeedCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow-light:#f9a21a;--additional-yellow:#c47f1b;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}.hy-twitter-feed{margin:40px 0}.hy-twitter-feed__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-bottom:24px}@media (min-width: 30rem){.hy-twitter-feed__header{margin-bottom:32px}}@media (min-width: 75.0625rem){.without-sidebar .hy-twitter-feed__header{margin-bottom:41px}}@media (min-width: 1601px){.with-sidebar .hy-twitter-feed__header{margin-bottom:41px}}.hy-twitter-feed__title{font-weight:700;font-family:var(--main-font-family);margin-top:0;margin-bottom:0;margin-right:8px}@media (min-width: 30rem){.hy-twitter-feed__title{margin-right:12px}}@media (min-width: 75.0625rem){.without-sidebar .hy-twitter-feed__title{margin-right:16px}}@media (min-width: 1601px){.with-sidebar .hy-twitter-feed__title{margin-right:16px}}h2.hy-twitter-feed__title{font-size:1.625rem;line-height:32px;letter-spacing:-0.82px}@media (min-width: 30rem){h2.hy-twitter-feed__title{font-size:1.875rem;line-height:36px;letter-spacing:-0.6px}}@media (min-width: 75.0625rem){.without-sidebar h2.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}@media (min-width: 1601px){.with-sidebar h2.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}.is-front-page h2.hy-twitter-feed__title,.is-landing-page h2.hy-twitter-feed__title{font-size:1.75rem;line-height:32px;letter-spacing:-0.7px;text-transform:uppercase}@media (min-width: 30rem){.is-front-page h2.hy-twitter-feed__title,.is-landing-page h2.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.85px}}@media (min-width: 60rem){.without-sidebar .is-front-page h2.hy-twitter-feed__title,.without-sidebar .is-landing-page h2.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}@media (min-width: 75.0625rem){.without-sidebar .is-front-page h2.hy-twitter-feed__title,.without-sidebar .is-landing-page h2.hy-twitter-feed__title{font-size:2.625rem;line-height:48px;letter-spacing:-1.05px}}@media (min-width: 75.0625rem){.with-sidebar .is-front-page h2.hy-twitter-feed__title,.with-sidebar .is-landing-page h2.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}@media (min-width: 1601px){.with-sidebar .is-front-page h2.hy-twitter-feed__title,.with-sidebar .is-landing-page h2.hy-twitter-feed__title{font-size:2.625rem;line-height:48px;letter-spacing:-1.05px}}h3.hy-twitter-feed__title{font-size:1.3125rem;line-height:28px;letter-spacing:-0.42px}@media (min-width: 30rem){h3.hy-twitter-feed__title{font-size:1.5625rem;line-height:32px;letter-spacing:-0.5px}}.is-front-page h3.hy-twitter-feed__title,.is-landing-page h3.hy-twitter-feed__title{font-size:1.625rem;line-height:32px;letter-spacing:-0.52px}@media (min-width: 30rem){.is-front-page h3.hy-twitter-feed__title,.is-landing-page h3.hy-twitter-feed__title{font-size:1.875rem;line-height:36px;letter-spacing:-0.6px}}@media (min-width: 60rem){.without-sidebar .is-front-page h3.hy-twitter-feed__title,.without-sidebar .is-landing-page h3.hy-twitter-feed__title{font-size:1.875rem;line-height:36px;letter-spacing:-0.6px}}@media (min-width: 75.0625rem){.without-sidebar .is-front-page h3.hy-twitter-feed__title,.without-sidebar .is-landing-page h3.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}@media (min-width: 75.0625rem){.with-sidebar .is-front-page h3.hy-twitter-feed__title,.with-sidebar .is-landing-page h3.hy-twitter-feed__title{font-size:1.875rem;line-height:36px;letter-spacing:-0.6px}}@media (min-width: 1601px){.with-sidebar .is-front-page h3.hy-twitter-feed__title,.with-sidebar .is-landing-page h3.hy-twitter-feed__title{font-size:2.125rem;line-height:40px;letter-spacing:-0.68px}}.hy-twitter-feed__keyword{font-size:0.9375rem;line-height:22px;margin:0;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-dark-text);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.hy-twitter-feed__keyword hy-icon{margin-right:4px}@media (min-width: 30rem){.hy-twitter-feed__keyword hy-icon{margin-right:6px}}@media (min-width: 30rem){.hy-twitter-feed__keyword hy-icon svg{width:24px;height:24px}}@media (min-width: 30rem){.hy-twitter-feed__keyword{font-size:1rem;line-height:24px}}@media (min-width: 75.0625rem){.without-sidebar .hy-twitter-feed__keyword{font-size:1.0625rem;line-height:24px}}@media (min-width: 75.0625rem){.without-sidebar .hy-twitter-feed__keyword hy-icon svg{width:32px;height:32px}}@media (min-width: 1601px){.with-sidebar .hy-twitter-feed__keyword{font-size:1.0625rem;line-height:24px}}@media (min-width: 1601px){.with-sidebar .hy-twitter-feed__keyword hy-icon svg{width:32px;height:32px}}.hy-twitter-feed__keyword+a{font-size:0.9375rem;line-height:18px;margin:0 0 0 8px;font-weight:600;font-family:var(--main-font-family);color:var(--link-blue);letter-spacing:-0.28px;text-decoration:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.hy-twitter-feed__keyword+a:hover{text-decoration:underline}.hy-twitter-feed__keyword+a hy-icon{margin-right:6px}.hy-twitter-feed__keyword+a hy-icon svg{fill:var(--link-blue)}@media (min-width: 30rem){.hy-twitter-feed__keyword+a{font-size:0.875rem;line-height:18px;letter-spacing:-0.26px;margin:0 0 0 12px}}@media (min-width: 75.0625rem){.without-sidebar .hy-twitter-feed__keyword+a{font-size:1rem;line-height:20px;letter-spacing:-0.3px;margin:0 0 0 16px}}@media (min-width: 1601px){.with-sidebar .hy-twitter-feed__keyword+a{font-size:1rem;line-height:20px;letter-spacing:-0.3px;margin:0 0 0 16px}}.hy-twitter-feed__tweets{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr;gap:16px}@media (min-width: 30rem){.hy-twitter-feed__tweets{grid-template-columns:repeat(2, 1fr);gap:24px}}@media (min-width: 60rem){.without-sidebar .hy-twitter-feed__tweets{grid-template-columns:repeat(3, 1fr)}}@media (min-width: 75.0625rem){.with-sidebar .hy-twitter-feed__tweets{grid-template-columns:repeat(3, 1fr)}}.hy-twitter-tweet{background-color:var(--grayscale-background-box);height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}.hy-twitter-tweet__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:-8px;padding-top:12px;margin-bottom:8px}@media (min-width: 30rem){.hy-twitter-tweet__header{padding-top:16px}}.hy-twitter-tweet__profile-image img{height:70px;width:70px}@media (min-width: 75.0625rem){.without-sidebar .hy-twitter-tweet__profile-image img{height:80px;width:80px}}@media (min-width: 1601px){.with-sidebar .hy-twitter-tweet__profile-image img{height:80px;width:80px}}.hy-twitter-tweet__header-content{margin-left:8px}.hy-twitter-tweet__header-content time{font-size:0.75rem;line-height:14px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-black);letter-spacing:-0.1px}.hy-twitter-tweet__header-content p{font-size:0.9375rem;line-height:18px;font-weight:700;font-family:var(--main-font-family);color:var(--brand-main-nearly-black);letter-spacing:-0.3px;margin:4px 0 2px}@media (min-width: 30rem){.hy-twitter-tweet__header-content p{font-size:1rem;line-height:20px;letter-spacing:-0.32px}}.hy-twitter-tweet__header-content a{font-size:0.75rem;line-height:16px;font-weight:600;font-family:var(--main-font-family);color:var(--link-blue);letter-spacing:-0.1px;text-decoration:none;position:relative;z-index:10}.hy-twitter-tweet__header-content a:hover{text-decoration:underline}.hy-twitter-tweet__content-wrapper{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.hy-twitter-tweet__content{padding:0 16px}.hy-twitter-tweet__content p{font-size:0.9375rem;line-height:20px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-dark-text);letter-spacing:-0.03px;margin:0 0 8px}@media (min-width: 30rem){.hy-twitter-tweet__content p{font-size:0.875rem;line-height:18px;letter-spacing:-0.08px}}.hy-twitter-tweet__tweet-link{font-size:0.75rem;line-height:16px;font-weight:600;font-family:var(--main-font-family);color:var(--link-blue);letter-spacing:-0.1px;text-decoration:none}.hy-twitter-tweet__tweet-link span{position:absolute;inset:0}.hy-twitter-tweet__tweet-link:hover{text-decoration:underline}.hy-twitter-tweet__statistics{margin-top:16px;padding:0 16px 16px}.hy-twitter-tweet__statistics .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.hy-twitter-tweet__statistics p{font-size:0.75rem;line-height:14px;font-weight:400;font-family:var(--main-font-family);color:var(--grayscale-dark);letter-spacing:-0.1px;margin:0;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.hy-twitter-tweet__statistics p:not(:first-of-type){margin-left:16px}.hy-twitter-tweet__statistics p hy-icon{margin-right:4px}.hy-twitter-tweet__statistics p hy-icon svg{fill:var(--grayscale-dark)}";
|
|
7252
7422
|
|
|
7253
7423
|
const HyTwitterFeed = class {
|
|
@@ -7262,11 +7432,11 @@ const HyTwitterFeed = class {
|
|
|
7262
7432
|
render() {
|
|
7263
7433
|
const parsedTweets = JSON.parse(this.tweets);
|
|
7264
7434
|
const HeadingVariant = this.headingVariant.toLowerCase();
|
|
7265
|
-
if (this.tweetType ===
|
|
7435
|
+
if (this.tweetType === "Hashtag" && this.twitterFeedKeyword.charAt(0) === "#") {
|
|
7266
7436
|
this.twitterFeedKeyword = this.twitterFeedKeyword.substring(1);
|
|
7267
7437
|
}
|
|
7268
|
-
return (index.h("section", { class: "hy-twitter-feed" }, index.h("div", { class: "hy-twitter-feed__header" }, index.h(HeadingVariant, { class: "hy-twitter-feed__title" }, this.paragraphTitle ||
|
|
7269
|
-
const dateFormatted = new Intl.DateTimeFormat(
|
|
7438
|
+
return (index.h("section", { class: "hy-twitter-feed" }, index.h("div", { class: "hy-twitter-feed__header" }, index.h(HeadingVariant, { class: "hy-twitter-feed__title" }, this.paragraphTitle || "Twitter"), index.h("p", { class: "hy-twitter-feed__keyword" }, index.h("hy-icon", { icon: `hy-icon-some-twitter`, size: 20 }), this.tweetType === "Hashtag" ? `#${this.twitterFeedKeyword}` : `@${this.twitterFeedKeyword}`), this.tweetType === "Username" && (index.h("a", { href: `https://twitter.com/${this.twitterFeedKeyword}`, target: "_blank" }, index.h("hy-icon", { icon: `hy-icon-plus`, size: 12 }), "Follow"))), index.h("ul", { class: "hy-twitter-feed__tweets" }, parsedTweets.map(({ tweet_text, tweet_created, tweet_absolute_url, tweet_like_count, tweet_retweet_count, user_name, user_username, user_profile_image_url, }) => {
|
|
7439
|
+
const dateFormatted = new Intl.DateTimeFormat("fi-FI").format(new Date(tweet_created));
|
|
7270
7440
|
return (index.h("li", { class: "hy-twitter-feed__item" }, index.h("article", { class: "hy-twitter-tweet" }, index.h("header", { class: "hy-twitter-tweet__header" }, index.h("figure", { class: "hy-twitter-tweet__profile-image", role: "complementary" }, index.h("img", { src: user_profile_image_url, alt: "" })), index.h("div", { class: "hy-twitter-tweet__header-content" }, index.h("time", { dateTime: tweet_created }, dateFormatted), index.h("p", null, user_name), index.h("a", { class: "hy-twitter-tweet__user-link", href: `https://twitter.com/${user_username}`, target: "_blank" }, "@", user_username))), index.h("div", { class: "hy-twitter-tweet__content-wrapper" }, index.h("div", { class: "hy-twitter-tweet__content" }, index.h("p", null, tweet_text.length > 113 ? `${tweet_text.substr(0, 113)}...` : tweet_text), index.h("a", { class: "hy-twitter-tweet__tweet-link", href: tweet_absolute_url, target: "_blank" }, index.h("span", { "aria-hidden": "true" }), `${tweet_absolute_url.substr(0, 24)}...`)), index.h("div", { class: "hy-twitter-tweet__statistics", role: "complementary" }, index.h("p", null, index.h("span", { class: "visually-hidden" }, "Tweet like count: "), index.h("hy-icon", { icon: `hy-icon-some-twitter-like`, size: 16 }), tweet_like_count), index.h("p", null, index.h("span", { class: "visually-hidden" }, "Tweet retweet count: "), index.h("hy-icon", { icon: `hy-icon-some-twitter-retweet`, size: 16 }), tweet_retweet_count))))));
|
|
7271
7441
|
}))));
|
|
7272
7442
|
}
|
|
@@ -7281,7 +7451,7 @@ const HyTwoColumns = class {
|
|
|
7281
7451
|
this.reversed = false;
|
|
7282
7452
|
}
|
|
7283
7453
|
render() {
|
|
7284
|
-
const classAttributes = [
|
|
7454
|
+
const classAttributes = ["hy-two-columns", this.reversed ? "hy-two-columns--reversed" : ""].join(" ");
|
|
7285
7455
|
return (index.h(index.Host, null, index.h("div", { class: classAttributes }, index.h("div", { class: "hy-two-columns__item hy-two-columns__item--main" }, index.h("slot", { name: "main" })), index.h("div", { class: "hy-two-columns__item hy-two-columns__item--side" }, index.h("slot", { name: "side" })))));
|
|
7286
7456
|
}
|
|
7287
7457
|
};
|
|
@@ -7296,10 +7466,10 @@ const HyUserLoginForm = class {
|
|
|
7296
7466
|
this.logoLabel = undefined;
|
|
7297
7467
|
}
|
|
7298
7468
|
render() {
|
|
7299
|
-
const classAttributes =
|
|
7469
|
+
const classAttributes = "hy-user-login-form";
|
|
7300
7470
|
const logoSize = utils.SiteLogoSize.large;
|
|
7301
7471
|
const logoColor = utils.ColorVariant.black;
|
|
7302
|
-
return (index.h("div", { class: classAttributes }, index.h("div", { class:
|
|
7472
|
+
return (index.h("div", { class: classAttributes }, index.h("div", { class: "hy-site-header__logo-container" }, index.h("hy-site-logo", { size: logoSize, color: logoColor, url: this.logoUrl, label: this.logoLabel })), index.h("slot", null)));
|
|
7303
7473
|
}
|
|
7304
7474
|
};
|
|
7305
7475
|
HyUserLoginForm.style = hyUserLoginFormCss;
|
|
@@ -7310,18 +7480,18 @@ const HyVideo = class {
|
|
|
7310
7480
|
constructor(hostRef) {
|
|
7311
7481
|
index.registerInstance(this, hostRef);
|
|
7312
7482
|
this.renderPreviewWithLink = () => {
|
|
7313
|
-
return this.linkToVideo ? (index.h("a", { title: this.videoTitle, href: this.linkToVideo, class: "hy-video__link-to-video" }, index.h("img", { loading: this.disableLazy ?
|
|
7483
|
+
return this.linkToVideo ? (index.h("a", { title: this.videoTitle, href: this.linkToVideo, class: "hy-video__link-to-video" }, index.h("img", { loading: this.disableLazy ? "eager" : "lazy", class: "hy-video__preview-image", src: this.previewImageUrl, alt: this.videoTitle }))) : (index.h("img", { loading: this.disableLazy ? "eager" : "lazy", class: "hy-video__preview-image", src: this.previewImageUrl, alt: this.videoTitle }));
|
|
7314
7484
|
};
|
|
7315
7485
|
this.renderPlayButton = () => {
|
|
7316
7486
|
if (this.simplePlayButton) {
|
|
7317
|
-
return (index.h("span", { class: "hy-video__play__simple" }, index.h("button", { type: "button" }, index.h("hy-icon", { icon:
|
|
7487
|
+
return (index.h("span", { class: "hy-video__play__simple" }, index.h("button", { type: "button" }, index.h("hy-icon", { icon: "hy-icon-video", class: "hy-video__play-icon", size: 20 }))));
|
|
7318
7488
|
}
|
|
7319
7489
|
else {
|
|
7320
|
-
return (index.h("span", { class: "hy-video__play" }, index.h("button", { type: "button" }, index.h("hy-icon", { icon:
|
|
7490
|
+
return (index.h("span", { class: "hy-video__play" }, index.h("button", { type: "button" }, index.h("hy-icon", { icon: "hy-icon-video", class: "hy-video__play-icon", size: 20 }), index.h("span", { class: "hy-video__button-label" }, this.playButtonLabel))));
|
|
7321
7491
|
}
|
|
7322
7492
|
};
|
|
7323
7493
|
this.truncate = (str, n) => {
|
|
7324
|
-
return str.length > n ? str.substr(0, n - 1) +
|
|
7494
|
+
return str.length > n ? str.substr(0, n - 1) + "..." : str;
|
|
7325
7495
|
};
|
|
7326
7496
|
this.videoTitle = undefined;
|
|
7327
7497
|
this.videoDescription = undefined;
|
|
@@ -7331,7 +7501,7 @@ const HyVideo = class {
|
|
|
7331
7501
|
this.linkToVideo = undefined;
|
|
7332
7502
|
this.playButtonLabel = undefined;
|
|
7333
7503
|
this.playButtonVisible = false;
|
|
7334
|
-
this.seriesLabel =
|
|
7504
|
+
this.seriesLabel = "In this series";
|
|
7335
7505
|
this.seriesCount = null;
|
|
7336
7506
|
this.views = undefined;
|
|
7337
7507
|
this.viewsLabel = undefined;
|
|
@@ -7341,18 +7511,18 @@ const HyVideo = class {
|
|
|
7341
7511
|
this.dateAddedLabel = undefined;
|
|
7342
7512
|
this.horizontal = false;
|
|
7343
7513
|
this.disableLazy = false;
|
|
7344
|
-
this.headerstyle =
|
|
7345
|
-
this.showMoreLabel =
|
|
7346
|
-
this.showLessLabel =
|
|
7514
|
+
this.headerstyle = "default";
|
|
7515
|
+
this.showMoreLabel = "Show more";
|
|
7516
|
+
this.showLessLabel = "Show less";
|
|
7347
7517
|
this.simplePlayButton = false;
|
|
7348
7518
|
this.styleList = false;
|
|
7349
7519
|
this.descCollapsed = false;
|
|
7350
7520
|
}
|
|
7351
7521
|
componentDidLoad() {
|
|
7352
|
-
let hyMainDiv = this.el.closest(
|
|
7522
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
7353
7523
|
if (hyMainDiv) {
|
|
7354
|
-
if (!hyMainDiv.classList.contains(
|
|
7355
|
-
this.headerstyle =
|
|
7524
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
7525
|
+
this.headerstyle = "large";
|
|
7356
7526
|
}
|
|
7357
7527
|
}
|
|
7358
7528
|
if (this.videoDescription && this.videoDescription.match(/\S/g).length > 255) {
|
|
@@ -7361,18 +7531,18 @@ const HyVideo = class {
|
|
|
7361
7531
|
}
|
|
7362
7532
|
render() {
|
|
7363
7533
|
const classAttributes = [
|
|
7364
|
-
|
|
7365
|
-
this.horizontal ?
|
|
7366
|
-
!this.styleList ? `hy-video__${this.headerstyle}` :
|
|
7367
|
-
this.styleList ?
|
|
7368
|
-
].join(
|
|
7534
|
+
"hy-video",
|
|
7535
|
+
this.horizontal ? "hy-video--horizontal" : "",
|
|
7536
|
+
!this.styleList ? `hy-video__${this.headerstyle}` : "",
|
|
7537
|
+
this.styleList ? "hy-video--list" : "",
|
|
7538
|
+
].join(" ");
|
|
7369
7539
|
const maxChars = 255;
|
|
7370
7540
|
const charCount = this.videoDescription ? this.videoDescription.match(/\S/g).length : 0;
|
|
7371
7541
|
if (this.linkToVideo && this.styleList) {
|
|
7372
7542
|
return [
|
|
7373
7543
|
index.h("a", { href: this.linkToVideo, class: classAttributes }, this.videoTitle && !this.horizontal && !this.styleList && (index.h("hy-heading", { class: "hy-video__meta__title", heading: utils.HeadingVarians.h2 }, this.videoTitle)), index.h("div", { class: "hy-video__video-container" }, this.previewImageUrl ? (index.h("div", null, this.renderPreviewWithLink(), index.h("slot", { name: "video" }))) : (index.h("slot", { name: "video" })), this.playButtonVisible && this.renderPlayButton()), index.h("div", { class: "hy-video__meta" }, (this.videoTitle && this.horizontal) ||
|
|
7374
|
-
(this.styleList && (index.h("hy-heading", { class: "hy-video__meta__title", heading: utils.HeadingVarians.h3 }, this.videoTitle))), this.contextLabelVisible && index.h("span", { class: "hy-video__label" }, this.contextLabel), (this.duration || this.views || this.dateAdded || this.seriesCount) && (index.h("div", { class: "hy-video__meta__details" }, this.duration && (index.h("div", { class: "hy-video__meta__details--item" }, index.h("span", { class: "hy-video__meta__label" }, this.durationLabel), index.h("span", { class: "hy-video__meta__content" }, this.duration))), this.views && (index.h("div", { class: "hy-video__meta__details--item" }, index.h("span", { class: "hy-video__meta__label" }, this.viewsLabel), index.h("span", { class: "hy-video__meta__content" }, this.views))), this.dateAdded && (index.h("div", { class: "hy-video__meta__details--item" }, index.h("span", { class: "hy-video__meta__label" }, this.dateAddedLabel), index.h("span", { class: "hy-video__meta__content" }, this.dateAdded))), !this.views && this.seriesCount && (index.h("div", { class: "hy-video__meta__details--item" }, index.h("span", { class: "hy-video__meta__label" }, this.seriesLabel), index.h("span", { class: "hy-video__meta__content" }, this.seriesCount))))), this.videoDescription && (index.h("div", { class: "hy-video__meta__description", "aria-expanded": this.descCollapsed ?
|
|
7375
|
-
if (e.key !=
|
|
7544
|
+
(this.styleList && (index.h("hy-heading", { class: "hy-video__meta__title", heading: utils.HeadingVarians.h3 }, this.videoTitle))), this.contextLabelVisible && index.h("span", { class: "hy-video__label" }, this.contextLabel), (this.duration || this.views || this.dateAdded || this.seriesCount) && (index.h("div", { class: "hy-video__meta__details" }, this.duration && (index.h("div", { class: "hy-video__meta__details--item" }, index.h("span", { class: "hy-video__meta__label" }, this.durationLabel), index.h("span", { class: "hy-video__meta__content" }, this.duration))), this.views && (index.h("div", { class: "hy-video__meta__details--item" }, index.h("span", { class: "hy-video__meta__label" }, this.viewsLabel), index.h("span", { class: "hy-video__meta__content" }, this.views))), this.dateAdded && (index.h("div", { class: "hy-video__meta__details--item" }, index.h("span", { class: "hy-video__meta__label" }, this.dateAddedLabel), index.h("span", { class: "hy-video__meta__content" }, this.dateAdded))), !this.views && this.seriesCount && (index.h("div", { class: "hy-video__meta__details--item" }, index.h("span", { class: "hy-video__meta__label" }, this.seriesLabel), index.h("span", { class: "hy-video__meta__content" }, this.seriesCount))))), this.videoDescription && (index.h("div", { class: "hy-video__meta__description", "aria-expanded": this.descCollapsed ? "false" : "true" }, index.h("div", { class: "hy-video__meta__description__content" }, this.descCollapsed ? this.truncate(this.videoDescription, 255) : this.videoDescription), charCount > maxChars && (index.h("span", { class: "hy-video__meta__description__more-button", role: "button", tabindex: "0", "aria-expanded": this.descCollapsed ? "false" : "true", onClick: () => (this.descCollapsed = !this.descCollapsed), onKeyDown: (e) => {
|
|
7545
|
+
if (e.key != " ")
|
|
7376
7546
|
return;
|
|
7377
7547
|
e.preventDefault();
|
|
7378
7548
|
this.descCollapsed = !this.descCollapsed;
|
|
@@ -7382,8 +7552,8 @@ const HyVideo = class {
|
|
|
7382
7552
|
else {
|
|
7383
7553
|
return [
|
|
7384
7554
|
index.h("div", { class: classAttributes }, this.videoTitle && !this.horizontal && !this.styleList && (index.h("hy-heading", { class: "hy-video__meta__title", heading: utils.HeadingVarians.h2 }, this.videoTitle)), index.h("div", { class: "hy-video__video-container" }, this.previewImageUrl ? (index.h("div", null, this.renderPreviewWithLink(), index.h("slot", { name: "video" }))) : (index.h("slot", { name: "video" })), this.playButtonVisible && this.renderPlayButton()), index.h("div", { class: "hy-video__meta" }, (this.videoTitle && this.horizontal) ||
|
|
7385
|
-
(this.styleList && (index.h("hy-heading", { class: "hy-video__meta__title", heading: utils.HeadingVarians.h2 }, this.videoTitle))), this.contextLabelVisible && index.h("span", { class: "hy-video__label" }, this.contextLabel), (this.duration || this.views || this.dateAdded) && (index.h("div", { class: "hy-video__meta__details" }, this.duration && (index.h("div", { class: "hy-video__meta__details--item" }, index.h("span", { class: "hy-video__meta__label" }, this.durationLabel), index.h("span", { class: "hy-video__meta__content" }, this.duration))), this.views && (index.h("div", { class: "hy-video__meta__details--item" }, index.h("span", { class: "hy-video__meta__label" }, this.viewsLabel), index.h("span", { class: "hy-video__meta__content" }, this.views))), this.dateAdded && (index.h("div", { class: "hy-video__meta__details--item" }, index.h("span", { class: "hy-video__meta__label" }, this.dateAddedLabel), index.h("span", { class: "hy-video__meta__content" }, this.dateAdded))))), this.videoDescription && (index.h("div", { class: "hy-video__meta__description", "aria-expanded": this.descCollapsed ?
|
|
7386
|
-
if (e.key !=
|
|
7555
|
+
(this.styleList && (index.h("hy-heading", { class: "hy-video__meta__title", heading: utils.HeadingVarians.h2 }, this.videoTitle))), this.contextLabelVisible && index.h("span", { class: "hy-video__label" }, this.contextLabel), (this.duration || this.views || this.dateAdded) && (index.h("div", { class: "hy-video__meta__details" }, this.duration && (index.h("div", { class: "hy-video__meta__details--item" }, index.h("span", { class: "hy-video__meta__label" }, this.durationLabel), index.h("span", { class: "hy-video__meta__content" }, this.duration))), this.views && (index.h("div", { class: "hy-video__meta__details--item" }, index.h("span", { class: "hy-video__meta__label" }, this.viewsLabel), index.h("span", { class: "hy-video__meta__content" }, this.views))), this.dateAdded && (index.h("div", { class: "hy-video__meta__details--item" }, index.h("span", { class: "hy-video__meta__label" }, this.dateAddedLabel), index.h("span", { class: "hy-video__meta__content" }, this.dateAdded))))), this.videoDescription && (index.h("div", { class: "hy-video__meta__description", "aria-expanded": this.descCollapsed ? "false" : "true" }, index.h("div", { class: "hy-video__meta__description__content" }, this.descCollapsed ? this.truncate(this.videoDescription, 255) : this.videoDescription), charCount > maxChars && (index.h("span", { class: "hy-video__meta__description__more-button", role: "button", tabindex: "0", "aria-expanded": this.descCollapsed ? "false" : "true", onClick: () => (this.descCollapsed = !this.descCollapsed), onKeyDown: (e) => {
|
|
7556
|
+
if (e.key != " ")
|
|
7387
7557
|
return;
|
|
7388
7558
|
e.preventDefault();
|
|
7389
7559
|
this.descCollapsed = !this.descCollapsed;
|
|
@@ -7396,6 +7566,7 @@ const HyVideo = class {
|
|
|
7396
7566
|
};
|
|
7397
7567
|
HyVideo.style = hyVideoCss;
|
|
7398
7568
|
|
|
7569
|
+
exports.color_box = ColorBox;
|
|
7399
7570
|
exports.hy_accordion_container = AccordionContainer;
|
|
7400
7571
|
exports.hy_accordion_item = AccordionItem;
|
|
7401
7572
|
exports.hy_adjacent_image_text = AdjacentImageText;
|
|
@@ -7406,6 +7577,7 @@ exports.hy_baseline = Baseline;
|
|
|
7406
7577
|
exports.hy_box = HyBox;
|
|
7407
7578
|
exports.hy_box_container = HyBoxContainer;
|
|
7408
7579
|
exports.hy_breadcrumbs = HyBreadcrumbs;
|
|
7580
|
+
exports.hy_button = Button;
|
|
7409
7581
|
exports.hy_checkbox = HyCheckbox;
|
|
7410
7582
|
exports.hy_collaboration = HyCollaboration;
|
|
7411
7583
|
exports.hy_content_list = HyContentList;
|
|
@@ -7413,6 +7585,7 @@ exports.hy_content_list_item = HyContentLstItem;
|
|
|
7413
7585
|
exports.hy_crisis_banner = HyCrisisBanner;
|
|
7414
7586
|
exports.hy_cta_button = CtaButton;
|
|
7415
7587
|
exports.hy_cta_link = CtaLink;
|
|
7588
|
+
exports.hy_docs_container = DocsContainer;
|
|
7416
7589
|
exports.hy_dropdown = HyDropdown;
|
|
7417
7590
|
exports.hy_dropdown_panel = HyDropdownPanel;
|
|
7418
7591
|
exports.hy_dropdown_panel_item = HyDropdownPanelItem;
|
|
@@ -7429,6 +7602,9 @@ exports.hy_footer_info = HyFooterInfo;
|
|
|
7429
7602
|
exports.hy_footer_link_item = HyFooterLinkItem;
|
|
7430
7603
|
exports.hy_general_list = HyGeneralList;
|
|
7431
7604
|
exports.hy_general_list_item = HyGeneralListItem;
|
|
7605
|
+
exports.hy_grid_container = GridContainer;
|
|
7606
|
+
exports.hy_grid_item = GridItem;
|
|
7607
|
+
exports.hy_grid_row = GridRow;
|
|
7432
7608
|
exports.hy_heading = Heading;
|
|
7433
7609
|
exports.hy_hero = HyHero;
|
|
7434
7610
|
exports.hy_icon = Icon;
|
|
@@ -7467,6 +7643,7 @@ exports.hy_prominent_image = HyProminentImage;
|
|
|
7467
7643
|
exports.hy_quote = HyQuote;
|
|
7468
7644
|
exports.hy_row = Row;
|
|
7469
7645
|
exports.hy_search_field = HySearchField;
|
|
7646
|
+
exports.hy_section_container = SectionContainer;
|
|
7470
7647
|
exports.hy_shortcuts = HyShortcuts;
|
|
7471
7648
|
exports.hy_site_header = SiteHeader;
|
|
7472
7649
|
exports.hy_site_logo = SiteLogo;
|
|
@@ -7475,6 +7652,7 @@ exports.hy_table_container = HyTableContainer;
|
|
|
7475
7652
|
exports.hy_tabs = HyTabs;
|
|
7476
7653
|
exports.hy_tabs_item = HyTabsItem;
|
|
7477
7654
|
exports.hy_tag = HyTag;
|
|
7655
|
+
exports.hy_tiny_text = TinyText;
|
|
7478
7656
|
exports.hy_twitter_feed = HyTwitterFeed;
|
|
7479
7657
|
exports.hy_two_columns = HyTwoColumns;
|
|
7480
7658
|
exports.hy_user_login_form = HyUserLoginForm;
|