@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
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { CourseStateVariants, CourseVariants } from
|
|
2
|
-
import { h, Host } from
|
|
1
|
+
import { CourseStateVariants, CourseVariants } from "../../../utils/utils";
|
|
2
|
+
import { h, Host } from "@stencil/core";
|
|
3
3
|
export class HyContentList {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.variant = CourseVariants.default;
|
|
6
|
-
this.linkLabel =
|
|
7
|
-
this.noResultLabel =
|
|
8
|
-
this.creditsLabel =
|
|
9
|
-
this.cancelledLabel =
|
|
6
|
+
this.linkLabel = "Go to course page";
|
|
7
|
+
this.noResultLabel = "No courses scheduled at the moment";
|
|
8
|
+
this.creditsLabel = "cr";
|
|
9
|
+
this.cancelledLabel = "Cancelled";
|
|
10
10
|
this.dataItems = undefined;
|
|
11
|
-
this.headerstyle =
|
|
11
|
+
this.headerstyle = "common";
|
|
12
12
|
this.courseStateVariant = CourseStateVariants.default;
|
|
13
13
|
this.courseRealisations = [];
|
|
14
14
|
}
|
|
@@ -16,7 +16,7 @@ export class HyContentList {
|
|
|
16
16
|
* Data for links to be displayed.
|
|
17
17
|
*/
|
|
18
18
|
dataWatcher(data) {
|
|
19
|
-
this._dataItems = typeof data ===
|
|
19
|
+
this._dataItems = typeof data === "string" ? JSON.parse(data) : data;
|
|
20
20
|
}
|
|
21
21
|
componentWillLoad() {
|
|
22
22
|
this.dataWatcher(this.dataItems);
|
|
@@ -25,14 +25,14 @@ export class HyContentList {
|
|
|
25
25
|
e.preventDefault();
|
|
26
26
|
let card = this.el.querySelector(`#${id}`);
|
|
27
27
|
if (card) {
|
|
28
|
-
window.open(card.dataset.location,
|
|
28
|
+
window.open(card.dataset.location, "_blank");
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
async componentDidLoad() {
|
|
32
|
-
let hyMainDiv = this.el.closest(
|
|
32
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
33
33
|
if (hyMainDiv) {
|
|
34
|
-
if (!hyMainDiv.classList.contains(
|
|
35
|
-
this.headerstyle =
|
|
34
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
35
|
+
this.headerstyle = "large";
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -41,39 +41,39 @@ export class HyContentList {
|
|
|
41
41
|
if (this._dataItems && this._dataItems.length > 0) {
|
|
42
42
|
this._dataItems.forEach((item) => {
|
|
43
43
|
const courseObject = JSON.parse(JSON.stringify(item));
|
|
44
|
-
const courseListType = courseObject[
|
|
45
|
-
this.variant = courseListType ==
|
|
44
|
+
const courseListType = courseObject["courseListType"];
|
|
45
|
+
this.variant = courseListType == "list" ? CourseVariants.row : CourseVariants.grid;
|
|
46
46
|
for (const courseProperty in courseObject) {
|
|
47
|
-
if (courseProperty ==
|
|
47
|
+
if (courseProperty == "courseListType")
|
|
48
48
|
continue;
|
|
49
49
|
const courseItem = courseObject[courseProperty];
|
|
50
|
-
const courseCode = courseItem[
|
|
51
|
-
const courseCredits = courseItem[
|
|
50
|
+
const courseCode = courseItem["code"];
|
|
51
|
+
const courseCredits = courseItem["credits"];
|
|
52
52
|
// Course realisations.
|
|
53
|
-
if (courseItem[
|
|
54
|
-
const realisations = JSON.parse(JSON.stringify(courseItem[
|
|
53
|
+
if (courseItem["realisations"]) {
|
|
54
|
+
const realisations = JSON.parse(JSON.stringify(courseItem["realisations"]));
|
|
55
55
|
for (const realisationProperty in realisations) {
|
|
56
56
|
const realizationItem = realisations[realisationProperty];
|
|
57
|
-
const courseRealisationName = realizationItem[
|
|
58
|
-
const courseRealisationFullName = courseRealisationName +
|
|
59
|
-
const courseStudyFormat = realizationItem[
|
|
60
|
-
const courseCancelled = realizationItem[
|
|
61
|
-
const courseStartDate = realizationItem[
|
|
62
|
-
const courseEndDate = realizationItem[
|
|
63
|
-
const formattedTimeRange = realizationItem[
|
|
64
|
-
const courseEnrollmentLink = realizationItem[
|
|
65
|
-
const courseTeachingLanguage = realizationItem[
|
|
66
|
-
const courseOrganisation = realizationItem[
|
|
57
|
+
const courseRealisationName = realizationItem["name"];
|
|
58
|
+
const courseRealisationFullName = courseRealisationName + ", " + courseCredits + " " + this.creditsLabel;
|
|
59
|
+
const courseStudyFormat = realizationItem["studyFormat"];
|
|
60
|
+
const courseCancelled = realizationItem["cancelled"];
|
|
61
|
+
const courseStartDate = realizationItem["startDate"];
|
|
62
|
+
const courseEndDate = realizationItem["endDate"];
|
|
63
|
+
const formattedTimeRange = realizationItem["formattedTimeRange"];
|
|
64
|
+
const courseEnrollmentLink = realizationItem["enrolmentLink"];
|
|
65
|
+
const courseTeachingLanguage = realizationItem["teachingLanguage"];
|
|
66
|
+
const courseOrganisation = realizationItem["organisation"];
|
|
67
67
|
let courseTags = [];
|
|
68
|
-
if (realizationItem[
|
|
69
|
-
let tags = JSON.parse(JSON.stringify(realizationItem[
|
|
68
|
+
if (realizationItem["tags"]) {
|
|
69
|
+
let tags = JSON.parse(JSON.stringify(realizationItem["tags"]));
|
|
70
70
|
for (let z in tags) {
|
|
71
71
|
let tagItem = { name: tags[z] };
|
|
72
72
|
courseTags.push(tagItem);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
const courseTagsJSON = JSON.stringify(courseTags);
|
|
76
|
-
const contentListItemClassAttributes = [
|
|
76
|
+
const contentListItemClassAttributes = ["item", this.variant].join(" ");
|
|
77
77
|
courseRealisations.push(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) }));
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -83,18 +83,18 @@ export class HyContentList {
|
|
|
83
83
|
return courseRealisations;
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
|
-
const classAttributes = [this.variant,
|
|
87
|
-
const classAlertAttributes = [
|
|
86
|
+
const classAttributes = [this.variant, "hy-content-list"].join(" ");
|
|
87
|
+
const classAlertAttributes = ["hy-content-list--alert", `hy-content-list--alert--${this.headerstyle}`].join(" ");
|
|
88
88
|
const classAlertLabelAttributes = [
|
|
89
|
-
|
|
89
|
+
"hy-content-list--alert-label",
|
|
90
90
|
`hy-content-list--alert-label--${this.headerstyle}`,
|
|
91
|
-
].join(
|
|
91
|
+
].join(" ");
|
|
92
92
|
this.courseRealisations = this.renderItems();
|
|
93
93
|
if (this.courseRealisations && this.courseRealisations.length > 0) {
|
|
94
94
|
return (h(Host, null, h("div", { class: classAttributes }, this.courseRealisations)));
|
|
95
95
|
}
|
|
96
96
|
else {
|
|
97
|
-
return (h(Host, null, h("div", { class: classAttributes }, h("div", { class: "hy-content-list--no-result" }, h("span", { class: classAlertAttributes }, h("hy-icon", { icon:
|
|
97
|
+
return (h(Host, null, h("div", { class: classAttributes }, h("div", { class: "hy-content-list--no-result" }, h("span", { class: classAlertAttributes }, h("hy-icon", { icon: "hy-icon-info", size: 16 })), h("span", { class: classAlertLabelAttributes }, this.noResultLabel)))));
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
static get is() { return "hy-content-list"; }
|
|
@@ -126,7 +126,7 @@ export class HyContentList {
|
|
|
126
126
|
},
|
|
127
127
|
"attribute": "link-label",
|
|
128
128
|
"reflect": false,
|
|
129
|
-
"defaultValue": "
|
|
129
|
+
"defaultValue": "\"Go to course page\""
|
|
130
130
|
},
|
|
131
131
|
"noResultLabel": {
|
|
132
132
|
"type": "string",
|
|
@@ -144,7 +144,7 @@ export class HyContentList {
|
|
|
144
144
|
},
|
|
145
145
|
"attribute": "no-result-label",
|
|
146
146
|
"reflect": false,
|
|
147
|
-
"defaultValue": "
|
|
147
|
+
"defaultValue": "\"No courses scheduled at the moment\""
|
|
148
148
|
},
|
|
149
149
|
"creditsLabel": {
|
|
150
150
|
"type": "string",
|
|
@@ -162,7 +162,7 @@ export class HyContentList {
|
|
|
162
162
|
},
|
|
163
163
|
"attribute": "credits-label",
|
|
164
164
|
"reflect": false,
|
|
165
|
-
"defaultValue": "
|
|
165
|
+
"defaultValue": "\"cr\""
|
|
166
166
|
},
|
|
167
167
|
"cancelledLabel": {
|
|
168
168
|
"type": "string",
|
|
@@ -180,7 +180,7 @@ export class HyContentList {
|
|
|
180
180
|
},
|
|
181
181
|
"attribute": "cancelled-label",
|
|
182
182
|
"reflect": false,
|
|
183
|
-
"defaultValue": "
|
|
183
|
+
"defaultValue": "\"Cancelled\""
|
|
184
184
|
},
|
|
185
185
|
"dataItems": {
|
|
186
186
|
"type": "string",
|
|
@@ -215,7 +215,7 @@ export class HyContentList {
|
|
|
215
215
|
},
|
|
216
216
|
"attribute": "headerstyle",
|
|
217
217
|
"reflect": false,
|
|
218
|
-
"defaultValue": "
|
|
218
|
+
"defaultValue": "\"common\""
|
|
219
219
|
},
|
|
220
220
|
"courseStateVariant": {
|
|
221
221
|
"type": "string",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { h } from
|
|
2
|
-
import { CourseStateVariants, CourseVariants } from
|
|
3
|
-
import { jsonParserWorker } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { CourseStateVariants, CourseVariants } from "../../../utils/utils";
|
|
3
|
+
import { jsonParserWorker } from "../../../global/globalScript";
|
|
4
4
|
let keys = {
|
|
5
|
-
enter:
|
|
5
|
+
enter: "Enter",
|
|
6
6
|
};
|
|
7
7
|
export class HyContentLstItem {
|
|
8
8
|
constructor() {
|
|
@@ -11,7 +11,7 @@ export class HyContentLstItem {
|
|
|
11
11
|
this.courseCode = undefined;
|
|
12
12
|
this.courseName = undefined;
|
|
13
13
|
this.isCancelled = undefined;
|
|
14
|
-
this.cancelledLabel =
|
|
14
|
+
this.cancelledLabel = "Cancelled";
|
|
15
15
|
this.courseCredits = undefined;
|
|
16
16
|
this.courseTags = undefined;
|
|
17
17
|
this.courseStartDate = undefined;
|
|
@@ -30,18 +30,18 @@ export class HyContentLstItem {
|
|
|
30
30
|
const key = event.code;
|
|
31
31
|
if (key == keys.enter) {
|
|
32
32
|
let card = this.el;
|
|
33
|
-
window.open(card.dataset.location,
|
|
33
|
+
window.open(card.dataset.location, "_blank", "noopener");
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
const classAttributes = [this.variant,
|
|
38
|
-
const target =
|
|
39
|
-
const ariaLabel =
|
|
37
|
+
const classAttributes = [this.variant, "hy-content-list-item"].join(" ");
|
|
38
|
+
const target = "_blank";
|
|
39
|
+
const ariaLabel = "Link points outside the current website.";
|
|
40
40
|
const classItemName = [
|
|
41
|
-
|
|
41
|
+
"hy-content-list-item--item-name",
|
|
42
42
|
`hy-content-list-item--item-name--${this.stateVariant}`,
|
|
43
|
-
].join(
|
|
44
|
-
const classItemCancelled = [
|
|
43
|
+
].join(" ");
|
|
44
|
+
const classItemCancelled = ["cancelled", `cancelled--${this.stateVariant}`].join(" ");
|
|
45
45
|
return [
|
|
46
46
|
h("div", { class: classAttributes, tabindex: "0" }, h("div", { class: classItemName }, this.courseName), h("div", { class: "hy-content-list-item--metadata" }, this.isCancelled && (h("div", { class: classItemCancelled }, h("span", null, this.cancelledLabel))), h("div", { class: "hy-content-list-item--metadata--item hy-content-list-item--metadata--item--first" }, h("span", null, this.formattedTimeRange)), this.courseOrganisation
|
|
47
47
|
? [
|
|
@@ -52,7 +52,7 @@ export class HyContentLstItem {
|
|
|
52
52
|
h("div", { class: "hy-content-list-item--metadata--item hy-content-list-item--metadata--item--last" }, h("span", null, this.courseStudyFormat)),
|
|
53
53
|
]), this._courseTags && this._courseTags.length > 0 && (h("div", { class: "hy-content-list-item--tags" }, this._courseTags.map((x) => {
|
|
54
54
|
return h("hy-tag", null, x.name);
|
|
55
|
-
}))), this.isCancelled && (h("div", { class: "cancelled mobile" }, h("span", null, this.cancelledLabel))), h("div", { class: "hy-content-list-item--link" }, h("a", { href: this.courseEnrollmentLink, target: target, "aria-label": ariaLabel, class: "hy-content-list-item--link--link", tabindex: "-1" }, h("span", { class: "label" }, this.courseLinkLabel), h("span", { class: "icon-wrapper" }, h("div", { class: "icon" }, h("hy-icon", { icon:
|
|
55
|
+
}))), this.isCancelled && (h("div", { class: "cancelled mobile" }, h("span", null, this.cancelledLabel))), h("div", { class: "hy-content-list-item--link" }, h("a", { href: this.courseEnrollmentLink, target: target, "aria-label": ariaLabel, class: "hy-content-list-item--link--link", tabindex: "-1" }, h("span", { class: "label" }, this.courseLinkLabel), h("span", { class: "icon-wrapper" }, h("div", { class: "icon" }, h("hy-icon", { icon: "hy-icon-arrow-to-right", size: 40 })))))),
|
|
56
56
|
];
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "hy-content-list-item"; }
|
|
@@ -181,7 +181,7 @@ export class HyContentLstItem {
|
|
|
181
181
|
},
|
|
182
182
|
"attribute": "cancelled-label",
|
|
183
183
|
"reflect": false,
|
|
184
|
-
"defaultValue": "
|
|
184
|
+
"defaultValue": "\"Cancelled\""
|
|
185
185
|
},
|
|
186
186
|
"courseCredits": {
|
|
187
187
|
"type": "string",
|
|
@@ -209,7 +209,7 @@ export class HyContentLstItem {
|
|
|
209
209
|
"references": {
|
|
210
210
|
"TagValue": {
|
|
211
211
|
"location": "local",
|
|
212
|
-
"path": "/
|
|
212
|
+
"path": "/Users/tuukkaturu/hy/hy-ds/design-system-lib/core/src/components/courses/hy-content-list-item/hy-content-list-item.tsx"
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
},
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { h } from
|
|
2
|
-
import { CtaLinkButtonVariants } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { CtaLinkButtonVariants } from "../../utils/utils";
|
|
3
3
|
export class CtaButton {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.variant = CtaLinkButtonVariants.onBlueBkgd;
|
|
6
|
-
this.linkContent =
|
|
6
|
+
this.linkContent = "";
|
|
7
7
|
this.typeButton = false;
|
|
8
8
|
this.url = undefined;
|
|
9
9
|
this.scLabel = undefined;
|
|
10
10
|
this.isExternal = false;
|
|
11
|
-
this.headerstyle =
|
|
11
|
+
this.headerstyle = "common";
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
const classAttributes = [
|
|
15
|
-
const containerClassAttributes = [
|
|
16
|
-
const textClassAttributes = [
|
|
17
|
-
const iconClassAttributes = [
|
|
18
|
-
const target = this.isExternal ?
|
|
19
|
-
return (h("span", { class: containerClassAttributes }, !this.typeButton ? (h("a", { "aria-label": this.scLabel, class: classAttributes, href: this.url, target: target }, h("span", { class: textClassAttributes }, this.linkContent.length === 0 ? h("slot", null) : this.linkContent), h("span", { class: iconClassAttributes }, h("hy-icon", { icon:
|
|
14
|
+
const classAttributes = ["hy-cta-button", this.variant, this.headerstyle].join(" ");
|
|
15
|
+
const containerClassAttributes = ["hy-cta-button-container"].join(" ");
|
|
16
|
+
const textClassAttributes = ["text"].join(" ");
|
|
17
|
+
const iconClassAttributes = ["link-icon"].join(" ");
|
|
18
|
+
const target = this.isExternal ? "_blank" : "_self";
|
|
19
|
+
return (h("span", { class: containerClassAttributes }, !this.typeButton ? (h("a", { "aria-label": this.scLabel, class: classAttributes, href: this.url, target: target }, h("span", { class: textClassAttributes }, this.linkContent.length === 0 ? h("slot", null) : this.linkContent), h("span", { class: iconClassAttributes }, h("hy-icon", { icon: "hy-icon-arrow-right", size: 48 })))) : (h("button", { "aria-label": this.scLabel, class: classAttributes }, h("span", { class: textClassAttributes }, this.linkContent.length === 0 ? h("slot", null) : this.linkContent), h("span", { class: iconClassAttributes }, h("hy-icon", { icon: "hy-icon-arrow-right", size: 48 }))))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "hy-cta-button"; }
|
|
22
22
|
static get originalStyleUrls() {
|
|
@@ -70,7 +70,7 @@ export class CtaButton {
|
|
|
70
70
|
},
|
|
71
71
|
"attribute": "link-content",
|
|
72
72
|
"reflect": false,
|
|
73
|
-
"defaultValue": "
|
|
73
|
+
"defaultValue": "\"\""
|
|
74
74
|
},
|
|
75
75
|
"typeButton": {
|
|
76
76
|
"type": "boolean",
|
|
@@ -158,7 +158,7 @@ export class CtaButton {
|
|
|
158
158
|
},
|
|
159
159
|
"attribute": "headerstyle",
|
|
160
160
|
"reflect": false,
|
|
161
|
-
"defaultValue": "
|
|
161
|
+
"defaultValue": "\"common\""
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { h } from
|
|
2
|
-
import { CtaLinkVariants } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { CtaLinkVariants } from "../../utils/utils";
|
|
3
3
|
export class CtaLink {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.variant = CtaLinkVariants.default;
|
|
6
|
-
this.linkContent =
|
|
6
|
+
this.linkContent = "";
|
|
7
7
|
this.url = undefined;
|
|
8
8
|
this.scLabel = undefined;
|
|
9
9
|
this.isExternal = false;
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
const iconClassAttributes = [
|
|
13
|
-
const target = this.isExternal ?
|
|
14
|
-
return (h("a", { "aria-label": this.scLabel, href: this.url, target: target, class: `hy-cta-link hy-cta-link--${this.variant}` }, this.variant == CtaLinkVariants.linkList && (h("span", { class: iconClassAttributes }, h("hy-icon", { icon:
|
|
12
|
+
const iconClassAttributes = ["hy-cta-link__icon", this.isExternal && "hy-cta-link__icon--external"].join(" ");
|
|
13
|
+
const target = this.isExternal ? "_blank" : "_self";
|
|
14
|
+
return (h("a", { "aria-label": this.scLabel, href: this.url, target: target, class: `hy-cta-link hy-cta-link--${this.variant}` }, this.variant == CtaLinkVariants.linkList && (h("span", { class: iconClassAttributes }, h("hy-icon", { icon: "hy-icon-arrow-to-right", size: 24 }))), h("span", null, this.linkContent), this.variant == CtaLinkVariants.default && (h("span", { class: iconClassAttributes }, h("hy-icon", { icon: "hy-icon-arrow-to-right", size: 24 })))));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "hy-cta-link"; }
|
|
17
17
|
static get originalStyleUrls() {
|
|
@@ -65,7 +65,7 @@ export class CtaLink {
|
|
|
65
65
|
},
|
|
66
66
|
"attribute": "link-content",
|
|
67
67
|
"reflect": false,
|
|
68
|
-
"defaultValue": "
|
|
68
|
+
"defaultValue": "\"\""
|
|
69
69
|
},
|
|
70
70
|
"url": {
|
|
71
71
|
"type": "string",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { h } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
export class HyFooter {
|
|
3
3
|
render() {
|
|
4
|
-
const classAttributes = [
|
|
5
|
-
return (h("footer", { class: classAttributes.join(
|
|
4
|
+
const classAttributes = ["hy-footer"];
|
|
5
|
+
return (h("footer", { class: classAttributes.join(" ") }, h("slot", null)));
|
|
6
6
|
}
|
|
7
7
|
static get is() { return "hy-footer"; }
|
|
8
8
|
static get originalStyleUrls() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Host, h } from
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
2
|
let scrollTimeout = null;
|
|
3
3
|
export class HyFooterAction {
|
|
4
4
|
constructor() {
|
|
@@ -9,15 +9,15 @@ export class HyFooterAction {
|
|
|
9
9
|
clearTimeout(scrollTimeout);
|
|
10
10
|
}
|
|
11
11
|
scrollTop() {
|
|
12
|
-
const hyLogo = document.querySelector(
|
|
13
|
-
window.scrollTo({ top: 0, behavior:
|
|
12
|
+
const hyLogo = document.querySelector(".hy-site-logo a");
|
|
13
|
+
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
14
14
|
scrollTimeout = window.setTimeout(() => {
|
|
15
15
|
hyLogo.focus();
|
|
16
16
|
}, 500);
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
const classAttributes = [
|
|
20
|
-
return (h(Host, { class: classAttributes }, h("span", { class:
|
|
19
|
+
const classAttributes = ["hy-footer-action"].join(" ");
|
|
20
|
+
return (h(Host, { class: classAttributes }, h("span", { class: "hy-footer-action__updated-text" }, this.updatedText), this.upButtonLabel && (h("span", { class: "hy-footer-action__scroll-up" }, h("label", { id: "up-label", htmlFor: "scroll-up" }, this.upButtonLabel), h("button", { name: "scroll-up", "aria-labelledby": "up-label", onClick: () => this.scrollTop(), class: "hy-footer-action__up-button", type: "button" }, h("hy-icon", { class: "hy-footer-action__up-icon", icon: "hy-icon-arrow-up", size: 26 }))))));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "hy-footer-action"; }
|
|
23
23
|
static get originalStyleUrls() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Host, h } from
|
|
2
|
-
import { FooterLinkItemColor, SiteLogoSize, ColorVariant, FooterVariant } from
|
|
3
|
-
import { jsonParserWorker } from
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { FooterLinkItemColor, SiteLogoSize, ColorVariant, FooterVariant } from "../../../utils/utils";
|
|
3
|
+
import { jsonParserWorker } from "../../../global/globalScript";
|
|
4
4
|
export class HyFooterBase {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.color = FooterLinkItemColor.white;
|
|
@@ -18,7 +18,7 @@ export class HyFooterBase {
|
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
20
|
const logoColor = ColorVariant.white;
|
|
21
|
-
const classAttributes = [
|
|
21
|
+
const classAttributes = ["hy-footer-base--content-container"].join(" ");
|
|
22
22
|
const links = this._dataFooterBaseLinks;
|
|
23
23
|
const some = this._dataFooterBaseSome;
|
|
24
24
|
return (h(Host, { class: classAttributes }, h("div", { class: "hy-footer-base" }, h("div", { class: "hy-footer-base__left" }, h("div", { class: "hy-footer-base__logo" }, h("hy-site-logo", { type: FooterVariant.footer, size: 56, color: logoColor, url: this.logoUrl, label: this.logoLabel })), h("div", { class: "hy-footer-base__content" }, h("slot", { name: "content" })), h("div", { class: "hy-footer-base__some" }, h("span", { class: "hy-footer-base__some__label" }, this.someLabel), h("div", { class: "hy-footer-base__some__items" }, some &&
|
|
@@ -165,7 +165,7 @@ export class HyFooterBase {
|
|
|
165
165
|
"references": {
|
|
166
166
|
"FooterBaseLinks": {
|
|
167
167
|
"location": "local",
|
|
168
|
-
"path": "/
|
|
168
|
+
"path": "/Users/tuukkaturu/hy/hy-ds/design-system-lib/core/src/components/footer/hy-footer-base/hy-footer-base.tsx"
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
},
|
|
@@ -187,7 +187,7 @@ export class HyFooterBase {
|
|
|
187
187
|
"references": {
|
|
188
188
|
"FooterBaseSome": {
|
|
189
189
|
"location": "local",
|
|
190
|
-
"path": "/
|
|
190
|
+
"path": "/Users/tuukkaturu/hy/hy-ds/design-system-lib/core/src/components/footer/hy-footer-base/hy-footer-base.tsx"
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h, Host } from
|
|
2
|
-
import ResizeObserver from
|
|
3
|
-
import { ColorVariant, CtaLinkButtonVariants, FooterLinkItemColor, FooterLinkVariants, FooterVariant, HeadingSectionVariants, HeadingVarians, } from
|
|
4
|
-
import { jsonParserWorker } from
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import ResizeObserver from "resize-observer-polyfill";
|
|
3
|
+
import { ColorVariant, CtaLinkButtonVariants, FooterLinkItemColor, FooterLinkVariants, FooterVariant, HeadingSectionVariants, HeadingVarians, } from "../../../utils/utils";
|
|
4
|
+
import { jsonParserWorker } from "../../../global/globalScript";
|
|
5
5
|
export class HyFooterInfo {
|
|
6
6
|
constructor() {
|
|
7
7
|
this.textTitle = undefined;
|
|
@@ -42,37 +42,37 @@ export class HyFooterInfo {
|
|
|
42
42
|
const luomusFooterContentItems = this._dataLuomusFooterContent;
|
|
43
43
|
const variant = this.isGroup ? FooterLinkVariants.group : FooterLinkVariants.campus;
|
|
44
44
|
const section = this.isGroup ? HeadingSectionVariants.groupFooterInfo : HeadingSectionVariants.defaultFooterInfo;
|
|
45
|
-
const footerLinkItemClass = this.isGroup ?
|
|
45
|
+
const footerLinkItemClass = this.isGroup ? "group" : "campus";
|
|
46
46
|
const scLabel = this.linkScLabel && this.linkScLabel.length > 0 ? this.linkScLabel : this.linkText;
|
|
47
47
|
const logoColor = ColorVariant.white;
|
|
48
48
|
const linksColor = this.isLuomusGroup ? FooterLinkItemColor.white : FooterLinkItemColor.black;
|
|
49
49
|
return (h(Host, { class: {
|
|
50
|
-
|
|
50
|
+
"hy-footer-info": true,
|
|
51
51
|
luomus: this.isLuomusGroup,
|
|
52
52
|
} }, h("div", { class: {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
} }, !this.isLuomusGroup && (h("hy-heading", { heading: HeadingVarians.h2, section: section }, this.textTitle)), this.isLuomusGroup && (h("div", { class: "hy-footer-info__logo" }, h("hy-site-logo", { type: FooterVariant.footer, isGroup: this.isGroup, size: 56, color: logoColor, url: this.logoUrl, label: this.logoLabel }))), this.isLuomusGroup && (h("div", { class:
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
"hy-footer-info__content": true,
|
|
54
|
+
"is-group": this.isGroup,
|
|
55
|
+
} }, !this.isLuomusGroup && (h("hy-heading", { heading: HeadingVarians.h2, section: section }, this.textTitle)), this.isLuomusGroup && (h("div", { class: "hy-footer-info__logo" }, h("hy-site-logo", { type: FooterVariant.footer, isGroup: this.isGroup, size: 56, color: logoColor, url: this.logoUrl, label: this.logoLabel }))), this.isLuomusGroup && (h("div", { class: "hy-footer-info__branding" }, h("a", { href: this.groupLogoUrl }, h("img", { src: this.groupLogoUrl, alt: "Luomus logo" })))), !this.isLuomusGroup && (h("div", { class: {
|
|
56
|
+
"hy-footer-info__ingress": true,
|
|
57
|
+
"is-group": this.isGroup,
|
|
58
58
|
}, innerHTML: this.textDescription })), !this.isLuomusGroup && this.linkUrl && (h("hy-cta-button", { "link-content": this.linkText, "sc-label": scLabel, "is-external": this.linkIsExternal, url: this.linkUrl, variant: CtaLinkButtonVariants.onWhiteBkgd })), this.isLuomusGroup &&
|
|
59
59
|
luomusFooterContentItems &&
|
|
60
60
|
luomusFooterContentItems.map((item) => {
|
|
61
61
|
return (h("div", { class: "luomus-footer-content" }, h("a", { href: item.url, class: "luomus-footer-content__link" }, item.heading), item.content && h("div", { class: "luomus-footer-content__description", innerHTML: item.content })));
|
|
62
62
|
})), this.isMobile && this.isGroup === false ? (h("div", { class: {
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
"hy-footer-info__links": true,
|
|
64
|
+
"is-group": this.isGroup,
|
|
65
65
|
luomus: this.isLuomusGroup,
|
|
66
|
-
} }, h("hy-accordion-container", { accordionid:
|
|
66
|
+
} }, h("hy-accordion-container", { accordionid: "test" }, links &&
|
|
67
67
|
links.map((link) => {
|
|
68
68
|
return (h("hy-accordion-item", { accordiontitle: link.label }, 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 })));
|
|
69
69
|
})))) : (h("div", { class: {
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
"hy-footer-info__links": true,
|
|
71
|
+
"is-group": this.isGroup,
|
|
72
72
|
luomus: this.isLuomusGroup,
|
|
73
73
|
} }, links &&
|
|
74
74
|
links.map((link) => {
|
|
75
|
-
const external_link = link.isExternal ===
|
|
75
|
+
const external_link = link.isExternal === "external";
|
|
76
76
|
return (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 }));
|
|
77
77
|
})))));
|
|
78
78
|
}
|
|
@@ -287,7 +287,7 @@ export class HyFooterInfo {
|
|
|
287
287
|
"references": {
|
|
288
288
|
"FooterInfoLinks": {
|
|
289
289
|
"location": "local",
|
|
290
|
-
"path": "/
|
|
290
|
+
"path": "/Users/tuukkaturu/hy/hy-ds/design-system-lib/core/src/components/footer/hy-footer-info/hy-footer-info.tsx"
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
},
|
|
@@ -309,7 +309,7 @@ export class HyFooterInfo {
|
|
|
309
309
|
"references": {
|
|
310
310
|
"LuomusFooterContent": {
|
|
311
311
|
"location": "local",
|
|
312
|
-
"path": "/
|
|
312
|
+
"path": "/Users/tuukkaturu/hy/hy-ds/design-system-lib/core/src/components/footer/hy-footer-info/hy-footer-info.tsx"
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h } from
|
|
2
|
-
import { FooterLinkItemColor, FooterLinkVariants, HeadingVarians } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { FooterLinkItemColor, FooterLinkVariants, HeadingVarians } from "../../../utils/utils";
|
|
3
3
|
export class HyFooterLinkItem {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.label = undefined;
|
|
@@ -14,43 +14,43 @@ export class HyFooterLinkItem {
|
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
16
|
const containerClassAttributes = [
|
|
17
|
-
|
|
17
|
+
"hy-footer-link-item--container",
|
|
18
18
|
`hy-footer-link-item__${this.variant}`,
|
|
19
|
-
this.items &&
|
|
20
|
-
].join(
|
|
19
|
+
this.items && "hy-footer-link-item__has-children",
|
|
20
|
+
].join(" ");
|
|
21
21
|
const classAttributes = [
|
|
22
|
-
|
|
23
|
-
this.mainLink &&
|
|
22
|
+
"hy-footer-link-item",
|
|
23
|
+
this.mainLink && "hy-footer-link-item__main",
|
|
24
24
|
`hy-footer-link-item__color-${this.color}`,
|
|
25
|
-
].join(
|
|
25
|
+
].join(" ");
|
|
26
26
|
const headingClassAttributes = [
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
this.mainLink &&
|
|
27
|
+
"hy-footer-link-item",
|
|
28
|
+
"hy-footer-link-item__heading",
|
|
29
|
+
this.mainLink && "hy-footer-link-item__main",
|
|
30
30
|
`hy-footer-link-item__heading__color-${this.color}`,
|
|
31
|
-
].join(
|
|
31
|
+
].join(" ");
|
|
32
32
|
const linkClassAttributes = [
|
|
33
|
-
|
|
33
|
+
"hy-footer-link-item",
|
|
34
34
|
`hy-footer-link-item__color-${this.color}`,
|
|
35
|
-
this.isLuomusGroup ? `luomus` :
|
|
36
|
-
].join(
|
|
35
|
+
this.isLuomusGroup ? `luomus` : "",
|
|
36
|
+
].join(" ");
|
|
37
37
|
if (this.items) {
|
|
38
38
|
if (this.isMobile && this.variant !== FooterLinkVariants.group) {
|
|
39
39
|
return (h("div", { class: containerClassAttributes }, this.items.map((item) => {
|
|
40
|
-
const target = item.isExternal ===
|
|
41
|
-
return (h("a", { class: linkClassAttributes, href: item.url, target: target, style: { color: this.color } }, item.label, h("hy-icon", { class:
|
|
40
|
+
const target = item.isExternal === "external" ? "_blank" : "_self";
|
|
41
|
+
return (h("a", { class: linkClassAttributes, href: item.url, target: target, style: { color: this.color } }, item.label, h("hy-icon", { class: "hy-footer-link-item__icon", icon: "hy-icon-arrow-right", size: 16 })));
|
|
42
42
|
})));
|
|
43
43
|
}
|
|
44
44
|
else {
|
|
45
|
-
return (h("div", { class: containerClassAttributes }, h("hy-heading", { class: headingClassAttributes, heading: HeadingVarians.h3 }, this.url.length > 0 && (h("a", { class:
|
|
46
|
-
const target = item.isExternal ===
|
|
47
|
-
return (h("a", { class: linkClassAttributes, href: item.url, target: target, style: { color: this.color } }, item.label, h("hy-icon", { class:
|
|
45
|
+
return (h("div", { class: containerClassAttributes }, h("hy-heading", { class: headingClassAttributes, heading: HeadingVarians.h3 }, this.url.length > 0 && (h("a", { class: "hy-footer-link-item__link", href: this.url, style: { color: this.color } }, this.label)), this.url.length == 0 && h("div", { class: "hy-footer-link-item__link" }, this.label)), this.items.map((item) => {
|
|
46
|
+
const target = item.isExternal === "external" ? "_blank" : "_self";
|
|
47
|
+
return (h("a", { class: linkClassAttributes, href: item.url, target: target, style: { color: this.color } }, item.label, h("hy-icon", { class: "hy-footer-link-item__icon", icon: "hy-icon-arrow-right", size: 16 })));
|
|
48
48
|
})));
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
else {
|
|
52
|
-
const target = this.isExternal ?
|
|
53
|
-
return (h("a", { class: classAttributes, href: this.url, style: { color: this.color }, target: target }, this.label, h("hy-icon", { class:
|
|
52
|
+
const target = this.isExternal ? "_blank" : "_self";
|
|
53
|
+
return (h("a", { class: classAttributes, href: this.url, style: { color: this.color }, target: target }, this.label, h("hy-icon", { class: "hy-footer-link-item__icon", icon: "hy-icon-arrow-right", size: 16 })));
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "hy-footer-link-item"; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Host, h } from
|
|
2
|
-
import { GridColumns, GridColumnsSm, GridColumnsLg, GridAlignVariants } from
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { GridColumns, GridColumnsSm, GridColumnsLg, GridAlignVariants } from "../../utils/utils";
|
|
3
3
|
export class GridItem {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.columns = GridColumns.default;
|
|
@@ -9,13 +9,13 @@ export class GridItem {
|
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
11
|
const classAttributes = [
|
|
12
|
-
|
|
12
|
+
"hy-grid-item",
|
|
13
13
|
`hy-grid__col-${this.columnssm}-sm`,
|
|
14
14
|
`hy-grid__col-${this.columns}`,
|
|
15
15
|
`hy-grid__col-${this.columnslg}-lg`,
|
|
16
|
-
`hy-grid-align__${this.contentalign}
|
|
16
|
+
`hy-grid-align__${this.contentalign}`,
|
|
17
17
|
];
|
|
18
|
-
return (h(Host, { class: classAttributes.join(
|
|
18
|
+
return (h(Host, { class: classAttributes.join(" ") }, h("slot", null)));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "hy-grid-item"; }
|
|
21
21
|
static get originalStyleUrls() {
|