@itcenteratunihelsinki/huds-lib 0.8.43 → 0.8.45
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 +10 -3
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h } from
|
|
2
|
-
import { ColorVariant } from
|
|
3
|
-
import { jsonParserWorker } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { ColorVariant } from "../../../utils/utils";
|
|
3
|
+
import { jsonParserWorker } from "../../../global/globalScript";
|
|
4
4
|
export class SiteSearch {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.color = ColorVariant.black;
|
|
@@ -25,10 +25,10 @@ export class SiteSearch {
|
|
|
25
25
|
}
|
|
26
26
|
if (this.searchLabels) {
|
|
27
27
|
this._searchLabels = await jsonParserWorker(this.searchLabels);
|
|
28
|
-
this.searchTitleLabel = this._searchLabels[
|
|
29
|
-
this.searchCloseLabel = this._searchLabels[
|
|
30
|
-
this.searchToolsLabel = this._searchLabels[
|
|
31
|
-
this.searchDescriptionLabel = this._searchLabels[
|
|
28
|
+
this.searchTitleLabel = this._searchLabels["search_label"];
|
|
29
|
+
this.searchCloseLabel = this._searchLabels["search_close_label"];
|
|
30
|
+
this.searchToolsLabel = this._searchLabels["search_tools_label"];
|
|
31
|
+
this.searchDescriptionLabel = this._searchLabels["search_description"];
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
// CLose the search panel if user opens the desktop menu panel.
|
|
@@ -53,7 +53,7 @@ export class SiteSearch {
|
|
|
53
53
|
return;
|
|
54
54
|
if (this.isSearchPanelOpen) {
|
|
55
55
|
const path = event.path || (event.composedPath && event.composedPath());
|
|
56
|
-
if (path[0].classList.contains(
|
|
56
|
+
if (path[0].classList.contains("hy-backdrop")) {
|
|
57
57
|
this.closeSearchPanel();
|
|
58
58
|
event.stopPropagation();
|
|
59
59
|
}
|
|
@@ -66,10 +66,10 @@ export class SiteSearch {
|
|
|
66
66
|
// }
|
|
67
67
|
closeSearchPanel() {
|
|
68
68
|
this.isSearchPanelOpen = false;
|
|
69
|
-
let cludoSayt = document.querySelectorAll(
|
|
69
|
+
let cludoSayt = document.querySelectorAll("stencil-cludo-sayt")[0];
|
|
70
70
|
if (cludoSayt) {
|
|
71
71
|
let CludoSayt = window.CludoSayt;
|
|
72
|
-
if (typeof CludoSayt !==
|
|
72
|
+
if (typeof CludoSayt !== "undefined") {
|
|
73
73
|
CludoSayt.hide();
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -77,16 +77,16 @@ export class SiteSearch {
|
|
|
77
77
|
}
|
|
78
78
|
handleSearchPanelToggle(event) {
|
|
79
79
|
if (this.isLuomusGroup) {
|
|
80
|
-
let beta = this.isBetaGroup ?
|
|
81
|
-
let luomus_search_url =
|
|
82
|
-
if (this.searchLanguage ==
|
|
83
|
-
luomus_search_url =
|
|
80
|
+
let beta = this.isBetaGroup ? "/beta" : "";
|
|
81
|
+
let luomus_search_url = "/" + this.searchLanguage + beta + "/luomus/search-results";
|
|
82
|
+
if (this.searchLanguage == "fi") {
|
|
83
|
+
luomus_search_url = "/" + this.searchLanguage + beta + "/luomus/hakutulokset";
|
|
84
84
|
}
|
|
85
|
-
else if (this.searchLanguage ==
|
|
86
|
-
luomus_search_url =
|
|
85
|
+
else if (this.searchLanguage == "sv") {
|
|
86
|
+
luomus_search_url = "/" + this.searchLanguage + beta + "/luomus/sokresultat";
|
|
87
87
|
}
|
|
88
|
-
else if (this.searchLanguage ==
|
|
89
|
-
luomus_search_url =
|
|
88
|
+
else if (this.searchLanguage == "ru") {
|
|
89
|
+
luomus_search_url = "/" + this.searchLanguage + beta + "/luomus/rezultaty-poiska";
|
|
90
90
|
}
|
|
91
91
|
location.href = luomus_search_url;
|
|
92
92
|
}
|
|
@@ -97,18 +97,18 @@ export class SiteSearch {
|
|
|
97
97
|
this.searchPanelToggled.emit();
|
|
98
98
|
this.adjustPosition(this.el);
|
|
99
99
|
// Remove hidden class from cludo suggestions
|
|
100
|
-
let cludoSayt = document.querySelectorAll(
|
|
100
|
+
let cludoSayt = document.querySelectorAll("stencil-cludo-sayt")[0];
|
|
101
101
|
if (cludoSayt) {
|
|
102
|
-
const cludoSearchContentFormElement = this.el.shadowRoot.querySelector(
|
|
103
|
-
cludoSayt.classList.remove(
|
|
102
|
+
const cludoSearchContentFormElement = this.el.shadowRoot.querySelector("#cludo-search-content-form");
|
|
103
|
+
cludoSayt.classList.remove("hidden");
|
|
104
104
|
cludoSearchContentFormElement.append(cludoSayt);
|
|
105
|
-
cludoSayt.shadowRoot.querySelector(
|
|
106
|
-
cludoSayt.shadowRoot.querySelector(
|
|
107
|
-
cludoSayt.shadowRoot.querySelector(
|
|
105
|
+
cludoSayt.shadowRoot.querySelector("#cludo-reli-flexi-wrapper").style.position = "relative";
|
|
106
|
+
cludoSayt.shadowRoot.querySelector("#cludo-reli-flexi").style.position = "relative";
|
|
107
|
+
cludoSayt.shadowRoot.querySelector("#cludo-reli-flexi").style.maxWidth = "none";
|
|
108
108
|
}
|
|
109
109
|
// Without setTimeout it will not focus the input because it hasn't rendered yet.
|
|
110
110
|
setTimeout(() => {
|
|
111
|
-
const searchInput = this.el.shadowRoot.querySelector(
|
|
111
|
+
const searchInput = this.el.shadowRoot.querySelector("input#search");
|
|
112
112
|
searchInput.focus();
|
|
113
113
|
});
|
|
114
114
|
}
|
|
@@ -119,76 +119,76 @@ export class SiteSearch {
|
|
|
119
119
|
event.stopPropagation();
|
|
120
120
|
}
|
|
121
121
|
adjustPosition(target) {
|
|
122
|
-
let headerHeight =
|
|
122
|
+
let headerHeight = "0";
|
|
123
123
|
let shadowTop = 0;
|
|
124
124
|
const searchPanel = target.shadowRoot.querySelectorAll(`.site-search__panel`)[0];
|
|
125
125
|
let initialDisplayStyle = searchPanel.style.display;
|
|
126
126
|
if (this.isGroup) {
|
|
127
|
-
let hyHeader = target.closest(
|
|
127
|
+
let hyHeader = target.closest(".hy-site-header__content-top");
|
|
128
128
|
if (hyHeader) {
|
|
129
129
|
let headerHeightValue = hyHeader.offsetHeight;
|
|
130
130
|
headerHeight = `${headerHeightValue}px`;
|
|
131
131
|
let headerTop = hyHeader.offsetTop;
|
|
132
132
|
// Add shadow backdrop
|
|
133
|
-
searchPanel.style.display =
|
|
133
|
+
searchPanel.style.display = "flex";
|
|
134
134
|
shadowTop = headerHeightValue + headerTop + searchPanel.offsetHeight;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
else {
|
|
138
|
-
let hyHeader = target.closest(
|
|
138
|
+
let hyHeader = target.closest(".hy-site-header");
|
|
139
139
|
if (hyHeader) {
|
|
140
|
-
let headerHeightValue = hyHeader.classList.contains(
|
|
140
|
+
let headerHeightValue = hyHeader.classList.contains("hy-site-header--sticky-active")
|
|
141
141
|
? hyHeader.offsetHeight
|
|
142
142
|
: hyHeader.offsetTop + hyHeader.offsetHeight;
|
|
143
143
|
headerHeight = `${headerHeightValue}px`;
|
|
144
144
|
// Add shadow backdrop
|
|
145
|
-
searchPanel.style.display =
|
|
145
|
+
searchPanel.style.display = "flex";
|
|
146
146
|
let searchPanelHeight = searchPanel.offsetHeight;
|
|
147
147
|
shadowTop = searchPanelHeight + headerHeightValue;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
searchPanel.style.display = initialDisplayStyle;
|
|
151
151
|
searchPanel.style.top = headerHeight;
|
|
152
|
-
this.showBackdropShadow(
|
|
152
|
+
this.showBackdropShadow("open", shadowTop);
|
|
153
153
|
}
|
|
154
|
-
showBackdropShadow(state =
|
|
155
|
-
let hyHeader = this.el.closest(
|
|
154
|
+
showBackdropShadow(state = "close", top = 0) {
|
|
155
|
+
let hyHeader = this.el.closest(".hy-site-header");
|
|
156
156
|
let hyBackdropDiv = hyHeader.children[0];
|
|
157
157
|
if (hyBackdropDiv) {
|
|
158
|
-
if (state ===
|
|
158
|
+
if (state === "open") {
|
|
159
159
|
let me = window.outerHeight - top;
|
|
160
160
|
hyBackdropDiv.style.height = `${me}px`;
|
|
161
161
|
hyBackdropDiv.style.top = `${top}px`;
|
|
162
|
-
hyBackdropDiv.style.position =
|
|
163
|
-
hyBackdropDiv.classList.add(
|
|
162
|
+
hyBackdropDiv.style.position = "absolute";
|
|
163
|
+
hyBackdropDiv.classList.add("is-active");
|
|
164
164
|
}
|
|
165
165
|
else {
|
|
166
|
-
hyBackdropDiv.removeAttribute(
|
|
167
|
-
hyBackdropDiv.classList.remove(
|
|
166
|
+
hyBackdropDiv.removeAttribute("style");
|
|
167
|
+
hyBackdropDiv.classList.remove("is-active");
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
render() {
|
|
172
172
|
const currentPageUrlPathName = window.location.pathname;
|
|
173
|
-
const searchPagePathNames = [
|
|
173
|
+
const searchPagePathNames = ["/fi/haku", "/en/search", "/sv/sök"];
|
|
174
174
|
return (h("div", { class: {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
} }, h("button", { "aria-label": this.showLabel ? this._labels[
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}, onClick: (e) => this.handleSearchPanelToggle(e), disabled: searchPagePathNames.some((item) => item === currentPageUrlPathName) ? true : false }, this.showLabel ? (h("span", { class: {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}, "aria-hidden": `${!this.isSearchPanelOpen}` }, h("div", { class: "site-search__panel__wrapper" }, h("div", { class: "site-search__panel__title" }, h("div", { class: "site-search__panel__title__group" }, h("span", { class: "panel-title" }, this.searchTitleLabel), h("div", { class: "description" }, this.searchDescriptionLabel))), h("div", { id: "cludo-search-results", class: "container_12" }, h("div", { class: "search-banner" }), h("div", { class: "search-filters search-filters-mobile" }), h("div", { class: "col-md-12" }, h("div", { style: { margin:
|
|
187
|
-
let searchToolTarget = i.isExternal ?
|
|
188
|
-
return (h("a", { class: "search-special-tool", href: i.url, target: searchToolTarget }, h("hy-icon", { icon:
|
|
175
|
+
"site-search": true,
|
|
176
|
+
"site-search__is-open": this.isSearchPanelOpen,
|
|
177
|
+
"is-group": this.isGroup,
|
|
178
|
+
} }, h("button", { "aria-label": this.showLabel ? this._labels["open"] : "", "aria-expanded": `${this.isSearchPanelOpen}`, class: {
|
|
179
|
+
"button--search": true,
|
|
180
|
+
"is-open--menu": this.isAlternative,
|
|
181
|
+
"is-open": this.isSearchPanelOpen,
|
|
182
|
+
"is-active": searchPagePathNames.some((item) => item === currentPageUrlPathName),
|
|
183
|
+
}, onClick: (e) => this.handleSearchPanelToggle(e), disabled: searchPagePathNames.some((item) => item === currentPageUrlPathName) ? true : false }, this.showLabel ? (h("span", { class: { "button--search__label": true, "button--search__label__group": this.isGroup } }, this._labels["label"])) : (""), h("hy-icon", { icon: "hy-icon-search", size: this.size, fill: this.color })), !this.isLuomusGroup && (h("div", { class: {
|
|
184
|
+
"site-search__panel": true,
|
|
185
|
+
"site-search__panel__is-open": this.isSearchPanelOpen,
|
|
186
|
+
}, "aria-hidden": `${!this.isSearchPanelOpen}` }, h("div", { class: "site-search__panel__wrapper" }, h("div", { class: "site-search__panel__title" }, h("div", { class: "site-search__panel__title__group" }, h("span", { class: "panel-title" }, this.searchTitleLabel), h("div", { class: "description" }, this.searchDescriptionLabel))), h("div", { id: "cludo-search-results", class: "container_12" }, h("div", { class: "search-banner" }), h("div", { class: "search-filters search-filters-mobile" }), h("div", { class: "col-md-12" }, h("div", { style: { margin: "20px 0 32px" }, id: "cludo-search-content-form" }, h("hy-search-field", { "input-id": "search", label: "" }))), h("div", { class: "col-md-3" }, h("div", { class: "search-filters", "aria-controls": "search-results" })), h("div", { class: "col-md-9" }, h("div", { class: "search-results-container" }, h("hy-paragraph-text", null, h("div", { class: "search-result-count" })), h("div", { class: "search-did-you-mean", role: "Complementary" }), h("div", { class: "search-results", role: "region", id: "search-results", "aria-live": "polite" })))), this._searchTools && this._searchTools.length > 0 && (h("div", { class: "site-search__panel__tools" }, h("div", { class: "title" }, this.searchToolsLabel), h("div", { class: "list" }, this._searchTools.map((i) => {
|
|
187
|
+
let searchToolTarget = i.isExternal ? "_blank" : "_self";
|
|
188
|
+
return (h("a", { class: "search-special-tool", href: i.url, target: searchToolTarget }, h("hy-icon", { icon: "hy-icon-arrow-to-right", size: 14, fill: ColorVariant.black }), h("span", { class: "label" }, i.label), h("span", { class: "description" }, i.description)));
|
|
189
189
|
})))), h("button", { onClick: () => this.closeSearchPanel(), class: {
|
|
190
|
-
|
|
191
|
-
}, "aria-label": this.searchCloseLabel, "aria-expanded": `${this.isSearchPanelOpen}` }, h("span", { class: "site-search__panel__panel-toggle__label" }, h("span", { class: "site-search__panel__panel-toggle__label__title", tabindex: "0" }, this.searchCloseLabel), h("hy-icon", { icon:
|
|
190
|
+
"site-search__panel__panel-toggle": true,
|
|
191
|
+
}, "aria-label": this.searchCloseLabel, "aria-expanded": `${this.isSearchPanelOpen}` }, h("span", { class: "site-search__panel__panel-toggle__label" }, h("span", { class: "site-search__panel__panel-toggle__label__title", tabindex: "0" }, this.searchCloseLabel), h("hy-icon", { icon: "hy-icon-remove", size: 16, fill: ColorVariant.black }))))))));
|
|
192
192
|
}
|
|
193
193
|
static get is() { return "hy-site-search"; }
|
|
194
194
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
brandMain:
|
|
3
|
-
brandMainLight:
|
|
4
|
-
brandMainActive:
|
|
5
|
-
brandMainDark:
|
|
6
|
-
brandMainNearlyBlack:
|
|
7
|
-
grayscaleWhite:
|
|
8
|
-
grayscaleLight:
|
|
9
|
-
grayscaleMedium:
|
|
10
|
-
grayscaleBackgroundBox:
|
|
11
|
-
grayscaleBackgroundArrow:
|
|
12
|
-
grayscaleMediumDark:
|
|
13
|
-
grayscaleDark:
|
|
14
|
-
grayscaleBlack:
|
|
15
|
-
additionalRedLight:
|
|
16
|
-
additionalRedDark:
|
|
17
|
-
additionalPurpleLight:
|
|
18
|
-
additionalYellow:
|
|
19
|
-
additionalSkyblue:
|
|
20
|
-
additionalOrange:
|
|
21
|
-
additionalGreenLight:
|
|
22
|
-
additionalGreenDark:
|
|
2
|
+
brandMain: "#0e688b",
|
|
3
|
+
brandMainLight: "#107eab",
|
|
4
|
+
brandMainActive: "#005379",
|
|
5
|
+
brandMainDark: "#003146",
|
|
6
|
+
brandMainNearlyBlack: "#000222",
|
|
7
|
+
grayscaleWhite: "#fff",
|
|
8
|
+
grayscaleLight: "#f8f8f8",
|
|
9
|
+
grayscaleMedium: "#d2d2d2",
|
|
10
|
+
grayscaleBackgroundBox: "#f5f5f5",
|
|
11
|
+
grayscaleBackgroundArrow: "#dfdfdf",
|
|
12
|
+
grayscaleMediumDark: "#979797",
|
|
13
|
+
grayscaleDark: "#555555",
|
|
14
|
+
grayscaleBlack: "#000000",
|
|
15
|
+
additionalRedLight: "#E5053A",
|
|
16
|
+
additionalRedDark: "#A31621",
|
|
17
|
+
additionalPurpleLight: "#420039",
|
|
18
|
+
additionalYellow: "#F9A21A",
|
|
19
|
+
additionalSkyblue: "#48C5F8",
|
|
20
|
+
additionalOrange: "#D14600",
|
|
21
|
+
additionalGreenLight: "#96BA3C",
|
|
22
|
+
additionalGreenDark: "#006400",
|
|
23
23
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { setMode } from
|
|
1
|
+
import { setMode } from "@stencil/core";
|
|
2
2
|
/**
|
|
3
3
|
* This is a demo on how to initialize different themes with a class name from body element.
|
|
4
4
|
* You can basically get it how you want, this is not necessarily the best way!
|
|
5
5
|
*/
|
|
6
6
|
setMode((elm) => {
|
|
7
|
-
const el = document.querySelector(
|
|
8
|
-
const bodyclasses = el.className.split(
|
|
7
|
+
const el = document.querySelector("body");
|
|
8
|
+
const bodyclasses = el.className.split(" ");
|
|
9
9
|
if (elm.mode)
|
|
10
10
|
return elm.mode;
|
|
11
|
-
else if (elm.getAttribute(
|
|
12
|
-
return elm.getAttribute(
|
|
11
|
+
else if (elm.getAttribute("mode"))
|
|
12
|
+
return elm.getAttribute("mode");
|
|
13
13
|
else
|
|
14
|
-
return bodyclasses.includes(
|
|
14
|
+
return bodyclasses.includes("full-width") ? "wide" : "default";
|
|
15
15
|
});
|
|
16
16
|
/**
|
|
17
17
|
* Moved jsonParserWorker function to global scripts until stenciljs issue is resolved.
|
|
@@ -19,5 +19,5 @@ setMode((elm) => {
|
|
|
19
19
|
* Prevented web worker from working with webpack. Do not use web worker for now.
|
|
20
20
|
*/
|
|
21
21
|
export const jsonParserWorker = async (data) => {
|
|
22
|
-
return typeof data ===
|
|
22
|
+
return typeof data === "string" && data.length > 0 ? JSON.parse(data) : data;
|
|
23
23
|
};
|
package/dist/collection/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./components";
|