@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,13 +1,13 @@
|
|
|
1
|
-
import { Host, h } from
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class HyOpeningHoursContent {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.multiple = false;
|
|
5
5
|
this.selfServiceLabel = null;
|
|
6
|
-
this.venueType =
|
|
6
|
+
this.venueType = "libraries";
|
|
7
7
|
this.dataItems = undefined;
|
|
8
8
|
}
|
|
9
9
|
dataItemsWatcher(data) {
|
|
10
|
-
this._dataItems = typeof data ===
|
|
10
|
+
this._dataItems = typeof data === "string" ? JSON.parse(data) : data;
|
|
11
11
|
}
|
|
12
12
|
componentWillLoad() {
|
|
13
13
|
this.dataItemsWatcher(this.dataItems);
|
|
@@ -16,15 +16,15 @@ export class HyOpeningHoursContent {
|
|
|
16
16
|
return (h(Host, null, this._dataItems.map((item) => {
|
|
17
17
|
if (!item.service)
|
|
18
18
|
return;
|
|
19
|
-
const itemClasses = [
|
|
19
|
+
const itemClasses = ["open-hours__list-item", item.today ? "open-hours__list-item--today" : ""].join(" ");
|
|
20
20
|
return (h("div", { class: itemClasses }, h("span", { class: "open-hours__list-item--office" }, item.today ? item.today : item.dateLibrary), h("span", { class: "open-hours__list-item--hours" }, item.building), h("span", { class: "open-hours__list-item--service" }, item.service)));
|
|
21
21
|
}), this.selfServiceLabel && (h("div", { class: "open-hours__content__top" }, h("span", { class: "open-hours__content__top-label" }, this.selfServiceLabel))), this._dataItems.map((item) => {
|
|
22
22
|
if (item.service)
|
|
23
23
|
return;
|
|
24
|
-
const itemClasses = [
|
|
25
|
-
const hoursClasses = [
|
|
26
|
-
const officeClasses = [
|
|
27
|
-
return (h("div", { class: itemClasses }, h("span", { class: officeClasses }, item.today ? item.today : item.dateLibrary), h("span", { class: hoursClasses }, item.building), this.venueType !==
|
|
24
|
+
const itemClasses = ["open-hours__list-item", item.today ? "open-hours__list-item--today" : ""].join(" ");
|
|
25
|
+
const hoursClasses = ["open-hours__list-item--hours", this.venueType].join(" ");
|
|
26
|
+
const officeClasses = ["open-hours__list-item--office", this.venueType].join(" ");
|
|
27
|
+
return (h("div", { class: itemClasses }, h("span", { class: officeClasses }, item.today ? item.today : item.dateLibrary), h("span", { class: hoursClasses }, item.building), this.venueType !== "luomus" && h("span", { class: "open-hours__list-item--service" }, "-")));
|
|
28
28
|
})));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "hy-opening-hours-content"; }
|
|
@@ -92,7 +92,7 @@ export class HyOpeningHoursContent {
|
|
|
92
92
|
},
|
|
93
93
|
"attribute": "venue-type",
|
|
94
94
|
"reflect": false,
|
|
95
|
-
"defaultValue": "
|
|
95
|
+
"defaultValue": "\"libraries\""
|
|
96
96
|
},
|
|
97
97
|
"dataItems": {
|
|
98
98
|
"type": "string",
|
|
@@ -103,7 +103,7 @@ export class HyOpeningHoursContent {
|
|
|
103
103
|
"references": {
|
|
104
104
|
"items": {
|
|
105
105
|
"location": "local",
|
|
106
|
-
"path": "/
|
|
106
|
+
"path": "/Users/tuukkaturu/hy/hy-ds/design-system-lib/core/src/components/hy-opening-hours-content/hy-opening-hours-content.tsx"
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h } from
|
|
2
|
-
import { PersonCardVariants } from
|
|
3
|
-
import ResizeObserver from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { PersonCardVariants } from "../../utils/utils";
|
|
3
|
+
import ResizeObserver from "resize-observer-polyfill";
|
|
4
4
|
export class HyPersonCard {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.variant = PersonCardVariants.default;
|
|
@@ -41,44 +41,44 @@ export class HyPersonCard {
|
|
|
41
41
|
this.isMobile = size <= 479 ? true : false;
|
|
42
42
|
}
|
|
43
43
|
componentWillRender() {
|
|
44
|
-
this._fullName = this.firstName && this.lastName ? `${this.firstName} ${this.lastName}` :
|
|
44
|
+
this._fullName = this.firstName && this.lastName ? `${this.firstName} ${this.lastName}` : "";
|
|
45
45
|
this._initials =
|
|
46
|
-
this.imageUrl && this.firstName && this.lastName ?
|
|
46
|
+
this.imageUrl && this.firstName && this.lastName ? "" : `${this.firstName.charAt(0)}${this.lastName.charAt(0)}`;
|
|
47
47
|
if (!this.imageAlt) {
|
|
48
48
|
this.imageAlt = this._fullName;
|
|
49
49
|
}
|
|
50
50
|
if (!this.scLabel) {
|
|
51
|
-
this.scLabel =
|
|
51
|
+
this.scLabel = "Link to the person profile";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
render() {
|
|
55
|
-
let classLinkAttributes = [
|
|
56
|
-
let classIsActive = this.url && this.url.length > 0 ?
|
|
55
|
+
let classLinkAttributes = ["hy-person-card-container__link", this.variant].join(" ");
|
|
56
|
+
let classIsActive = this.url && this.url.length > 0 ? "" : " inactive";
|
|
57
57
|
classLinkAttributes = classLinkAttributes.concat(classIsActive);
|
|
58
|
-
const classAttributes = [
|
|
58
|
+
const classAttributes = ["hy-person-card", this.variant].join(" ");
|
|
59
59
|
const classPositionTitle = [
|
|
60
|
-
|
|
60
|
+
"hy-person-card__info-container__position-title",
|
|
61
61
|
`hy-person-card__info-container__position-title__${this.variant}`,
|
|
62
|
-
].join(
|
|
63
|
-
const target = this.isExternal ?
|
|
64
|
-
return (h("article", { class: "hy-person-card-container" }, h("div", { class: classLinkAttributes }, this.categoryTitle && this.variant == PersonCardVariants.default && (h("div", { class: "hy-person-card-container__category-title" }, this.categoryTitle)), h("div", { class: classAttributes }, h("div", { class: "hy-person-card__image-container" }, this.imageUrl ? (h("a", { class: "hy-person-card__image-container__image", href: this.url, target: target }, h("img", { loading: this.disableLazy ?
|
|
62
|
+
].join(" ");
|
|
63
|
+
const target = this.isExternal ? "_blank" : "_self";
|
|
64
|
+
return (h("article", { class: "hy-person-card-container" }, h("div", { class: classLinkAttributes }, this.categoryTitle && this.variant == PersonCardVariants.default && (h("div", { class: "hy-person-card-container__category-title" }, this.categoryTitle)), h("div", { class: classAttributes }, h("div", { class: "hy-person-card__image-container" }, this.imageUrl ? (h("a", { class: "hy-person-card__image-container__image", href: this.url, target: target }, h("img", { loading: this.disableLazy ? "eager" : "lazy", "aria-hidden": "true", src: this.imageUrl, alt: this.imageAlt }))) : (h("div", { class: "hy-person-card__image-container__no-image" }, h("div", { class: "hy-person-card__image-container__no-image__initials", "aria-hidden": "true" }, this._initials)))), h("div", { class: "hy-person-card__info-container" }, h("a", { class: "hy-person-card__info-container__full-name", href: this.url, target: target }, this._fullName), this.positionTitle && h("div", { class: classPositionTitle }, this.positionTitle), this.department &&
|
|
65
65
|
(this.variant == PersonCardVariants.default ||
|
|
66
66
|
(this.variant == PersonCardVariants.extended && !this.isMobile)) && (h("div", { class: "hy-person-card__info-container__department" }, this.department)), this.field &&
|
|
67
67
|
(this.variant == PersonCardVariants.default ||
|
|
68
68
|
(this.variant == PersonCardVariants.extended && !this.isMobile)) && (h("div", { class: "hy-person-card__info-container__field" }, this.field)), this.email &&
|
|
69
69
|
(this.variant == PersonCardVariants.default ||
|
|
70
70
|
(this.variant == PersonCardVariants.extended && !this.isMobile)) && [
|
|
71
|
-
h("div", { class: "hy-person-card__info-container__email-container" }, h("span", { class: "hy-person-card__info-container__email__icon" }, h("hy-icon", { icon:
|
|
71
|
+
h("div", { class: "hy-person-card__info-container__email-container" }, h("span", { class: "hy-person-card__info-container__email__icon" }, h("hy-icon", { icon: "hy-icon-email", size: 16 })), h("span", { class: "hy-person-card__info-container__email" }, this.email)),
|
|
72
72
|
], this.phone &&
|
|
73
73
|
(this.variant == PersonCardVariants.default ||
|
|
74
74
|
(this.variant == PersonCardVariants.extended && !this.isMobile)) && [
|
|
75
|
-
h("div", { class: "hy-person-card__info-container__phone-container" }, h("span", { class: "hy-person-card__info-container__phone__icon" }, h("hy-icon", { icon:
|
|
75
|
+
h("div", { class: "hy-person-card__info-container__phone-container" }, h("span", { class: "hy-person-card__info-container__phone__icon" }, h("hy-icon", { icon: "hy-icon-phone", size: 14 })), h("span", { class: "hy-person-card__info-container__phone" }, this.phone)),
|
|
76
76
|
])), this.variant == PersonCardVariants.extended && (h("div", { class: "hy-person-card hy-person-card__extended-info-container" }, this.department && this.isMobile && (h("div", { class: "hy-person-card__info-container__department" }, this.department)), this.field && this.isMobile && h("div", { class: "hy-person-card__info-container__field" }, this.field), this.email &&
|
|
77
77
|
this.isMobile && [
|
|
78
|
-
h("div", { class: "hy-person-card__info-container__email-container" }, h("span", { class: "hy-person-card__info-container__email__icon" }, h("hy-icon", { icon:
|
|
78
|
+
h("div", { class: "hy-person-card__info-container__email-container" }, h("span", { class: "hy-person-card__info-container__email__icon" }, h("hy-icon", { icon: "hy-icon-email", size: 16 })), h("span", { class: "hy-person-card__info-container__email" }, this.email)),
|
|
79
79
|
], this.phone &&
|
|
80
80
|
this.isMobile && [
|
|
81
|
-
h("div", { class: "hy-person-card__info-container__phone-container" }, h("span", { class: "hy-person-card__info-container__phone__icon" }, h("hy-icon", { icon:
|
|
81
|
+
h("div", { class: "hy-person-card__info-container__phone-container" }, h("span", { class: "hy-person-card__info-container__phone__icon" }, h("hy-icon", { icon: "hy-icon-phone", size: 14 })), h("span", { class: "hy-person-card__info-container__phone" }, this.phone)),
|
|
82
82
|
], this.aboutInfo && (h("div", { class: "hy-person-card__extended-info-container__about" }, h("span", { class: "label" }, this.aboutInfoLabel, ":"), h("span", null, this.aboutInfo))))))));
|
|
83
83
|
}
|
|
84
84
|
static get is() { return "hy-person-card"; }
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { Host, h } from
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class HyProminentImage {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.textTitle = undefined;
|
|
5
5
|
this.imageUrl = undefined;
|
|
6
|
-
this.imageAlt =
|
|
7
|
-
this.headerstyle =
|
|
6
|
+
this.imageAlt = "";
|
|
7
|
+
this.headerstyle = "common";
|
|
8
8
|
this.sourceSet = undefined;
|
|
9
9
|
}
|
|
10
10
|
componentDidLoad() {
|
|
11
|
-
let hyMainDiv = this.el.closest(
|
|
11
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
12
12
|
if (hyMainDiv) {
|
|
13
|
-
if (!hyMainDiv.classList.contains(
|
|
14
|
-
this.headerstyle =
|
|
13
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
14
|
+
this.headerstyle = "large";
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
19
|
const prominentImageClass = [
|
|
20
|
-
|
|
20
|
+
"hy-prominent-image",
|
|
21
21
|
this.headerstyle,
|
|
22
22
|
`hy-prominent-image__${this.headerstyle}`,
|
|
23
|
-
].join(
|
|
24
|
-
const prominentImageText = [
|
|
23
|
+
].join(" ");
|
|
24
|
+
const prominentImageText = ["hy-prominent-image__text", `hy-prominent-image__text__${this.headerstyle}`].join(" ");
|
|
25
25
|
return (h(Host, null, h("div", { class: prominentImageClass }, h("div", { class: "hy-prominent-image__image" }, h("hy-image", { "source-set": this.sourceSet, "image-url": this.imageUrl, "image-alt": this.imageAlt, aspectRatioWidth: 2, aspectRatioHeight: 1 })), this.textTitle && h("div", { class: prominentImageText }, this.textTitle))));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "hy-prominent-image"; }
|
|
@@ -88,7 +88,7 @@ export class HyProminentImage {
|
|
|
88
88
|
},
|
|
89
89
|
"attribute": "image-alt",
|
|
90
90
|
"reflect": false,
|
|
91
|
-
"defaultValue": "
|
|
91
|
+
"defaultValue": "\"\""
|
|
92
92
|
},
|
|
93
93
|
"headerstyle": {
|
|
94
94
|
"type": "string",
|
|
@@ -106,7 +106,7 @@ export class HyProminentImage {
|
|
|
106
106
|
},
|
|
107
107
|
"attribute": "headerstyle",
|
|
108
108
|
"reflect": false,
|
|
109
|
-
"defaultValue": "
|
|
109
|
+
"defaultValue": "\"common\""
|
|
110
110
|
},
|
|
111
111
|
"sourceSet": {
|
|
112
112
|
"type": "string",
|
|
@@ -117,7 +117,7 @@ export class HyProminentImage {
|
|
|
117
117
|
"references": {
|
|
118
118
|
"ImageSrcSet": {
|
|
119
119
|
"location": "local",
|
|
120
|
-
"path": "/
|
|
120
|
+
"path": "/Users/tuukkaturu/hy/hy-ds/design-system-lib/core/src/components/hy-prominent-image/hy-prominent-image.tsx"
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
},
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { h } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
export class HyQuote {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.quoteSignature = undefined;
|
|
5
|
-
this.headerstyle =
|
|
5
|
+
this.headerstyle = "common";
|
|
6
6
|
}
|
|
7
7
|
componentDidLoad() {
|
|
8
|
-
let hyMainDiv = this.el.closest(
|
|
8
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
9
9
|
if (hyMainDiv) {
|
|
10
|
-
if (!hyMainDiv.classList.contains(
|
|
11
|
-
this.headerstyle =
|
|
10
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
11
|
+
this.headerstyle = "large";
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
const quoteClass = [
|
|
17
|
-
return (h("div", { class: quoteClass }, h("span", { class: "hy-quote__icon-wrapper" }, h("div", { class: "hy-quote__icon" }, h("hy-icon", { icon:
|
|
16
|
+
const quoteClass = ["hy-quote", this.headerstyle, `hy-quote__${this.headerstyle}`].join(" ");
|
|
17
|
+
return (h("div", { class: quoteClass }, h("span", { class: "hy-quote__icon-wrapper" }, h("div", { class: "hy-quote__icon" }, h("hy-icon", { icon: "hy-icon-quote", size: 48 }))), h("div", { class: "hy-quote-text-wrapper" }, h("div", { class: "hy-quote__text" }, h("slot", null)), this.quoteSignature && h("div", { class: "hy-quote__signature" }, this.quoteSignature))));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "hy-quote"; }
|
|
20
20
|
static get encapsulation() { return "shadow"; }
|
|
@@ -63,7 +63,7 @@ export class HyQuote {
|
|
|
63
63
|
},
|
|
64
64
|
"attribute": "headerstyle",
|
|
65
65
|
"reflect": false,
|
|
66
|
-
"defaultValue": "
|
|
66
|
+
"defaultValue": "\"common\""
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { h, Host } from
|
|
2
|
-
import { ColorVariant } from
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { ColorVariant } from "../../utils/utils";
|
|
3
3
|
export class HySearchField {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.label = undefined;
|
|
6
6
|
this.isLabelBold = false;
|
|
7
7
|
this.labelLarge = false;
|
|
8
8
|
this.isLuomusSearch = false;
|
|
9
|
-
this.placeholder =
|
|
9
|
+
this.placeholder = "Type here...";
|
|
10
10
|
this.isLabelHidden = false;
|
|
11
11
|
this.inputId = undefined;
|
|
12
|
-
this.prefillParameter =
|
|
12
|
+
this.prefillParameter = "";
|
|
13
13
|
this.isInputValueEmpty = true;
|
|
14
14
|
}
|
|
15
15
|
componentDidLoad() {
|
|
16
|
-
const searchInput = this.el.querySelector(
|
|
17
|
-
searchInput.addEventListener(
|
|
16
|
+
const searchInput = this.el.querySelector(".search-field__input");
|
|
17
|
+
searchInput.addEventListener("keyup", (event) => {
|
|
18
18
|
const { value } = event.target;
|
|
19
19
|
this.isInputValueEmpty = value.length > 0 ? false : true;
|
|
20
20
|
});
|
|
@@ -23,22 +23,22 @@ export class HySearchField {
|
|
|
23
23
|
return;
|
|
24
24
|
const urlParams = new URLSearchParams(window.location.search);
|
|
25
25
|
const searchValue = urlParams.get(`${this.prefillParameter}`);
|
|
26
|
-
const searchInput = this.el.querySelector(
|
|
27
|
-
searchInput.value = searchValue && searchValue.length > 0 ? searchValue :
|
|
26
|
+
const searchInput = this.el.querySelector(".search-field__input");
|
|
27
|
+
searchInput.value = searchValue && searchValue.length > 0 ? searchValue : "";
|
|
28
28
|
this.isInputValueEmpty = false;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
handleInputReset() {
|
|
32
32
|
this.isInputValueEmpty = true;
|
|
33
|
-
const searchInput = this.el.querySelector(
|
|
34
|
-
searchInput.value =
|
|
33
|
+
const searchInput = this.el.querySelector(".search-field__input");
|
|
34
|
+
searchInput.value = "";
|
|
35
35
|
searchInput.focus();
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
38
|
return (h(Host, { class: "search-field" }, !this.isLuomusSearch && (h("label", { htmlFor: this.inputId, class: `search-field__label
|
|
39
|
-
${this.isLabelHidden ?
|
|
40
|
-
${this.labelLarge ?
|
|
41
|
-
${this.isLabelBold ?
|
|
39
|
+
${this.isLabelHidden ? "visually-hidden" : ""}
|
|
40
|
+
${this.labelLarge ? "label-large" : ""}
|
|
41
|
+
${this.isLabelBold ? "bold" : ""}` }, this.label)), h("div", { class: "search-field__actions" }, h("div", { class: "search-field__wrapper" }, this.isLuomusSearch && (h("input", { id: this.inputId, name: "search", "data-drupal-selector": "edit-search", value: "", type: "text", placeholder: this.placeholder, class: "search-field__input" })), !this.isLuomusSearch && (h("input", { id: this.inputId, type: "text", placeholder: this.placeholder, class: "search-field__input" })), !this.isInputValueEmpty && (h("button", { type: "button", class: "search-field__reset", "aria-label": "Reset", onClick: () => this.handleInputReset() }, h("hy-icon", { icon: "hy-icon-remove", size: 14, "aria-hidden": "true" })))), this.isLuomusSearch && (h("button", { type: "submit", class: "search-field__submit", "aria-label": "Search", "data-drupal-selector": "edit-submit-luomus-search", id: "edit-submit-luomus-search", value: "Apply" }, h("hy-icon", { icon: "hy-icon-search", size: 18, fill: ColorVariant.white, "aria-hidden": "true" }))), !this.isLuomusSearch && (h("button", { type: "submit", class: "search-field__submit", "aria-label": "Search" }, h("hy-icon", { icon: "hy-icon-search", size: 18, fill: ColorVariant.white, "aria-hidden": "true" }))))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "hy-search-field"; }
|
|
44
44
|
static get originalStyleUrls() {
|
|
@@ -140,7 +140,7 @@ export class HySearchField {
|
|
|
140
140
|
},
|
|
141
141
|
"attribute": "placeholder",
|
|
142
142
|
"reflect": false,
|
|
143
|
-
"defaultValue": "
|
|
143
|
+
"defaultValue": "\"Type here...\""
|
|
144
144
|
},
|
|
145
145
|
"isLabelHidden": {
|
|
146
146
|
"type": "boolean",
|
|
@@ -193,7 +193,7 @@ export class HySearchField {
|
|
|
193
193
|
},
|
|
194
194
|
"attribute": "prefill-parameter",
|
|
195
195
|
"reflect": false,
|
|
196
|
-
"defaultValue": "
|
|
196
|
+
"defaultValue": "\"\""
|
|
197
197
|
}
|
|
198
198
|
};
|
|
199
199
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { h, Host } from
|
|
2
|
-
import { HeadingVarians } from
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { HeadingVarians } from "../../utils/utils";
|
|
3
3
|
export class HyShortcuts {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.dataItems = undefined;
|
|
6
|
-
this.listHeading =
|
|
7
|
-
this.headerstyle =
|
|
6
|
+
this.listHeading = "";
|
|
7
|
+
this.headerstyle = "default";
|
|
8
8
|
}
|
|
9
9
|
arrayDataWatcher(newValue) {
|
|
10
|
-
if (typeof newValue ===
|
|
10
|
+
if (typeof newValue === "string") {
|
|
11
11
|
this._dataItems = JSON.parse(newValue);
|
|
12
12
|
}
|
|
13
13
|
else {
|
|
@@ -18,29 +18,29 @@ export class HyShortcuts {
|
|
|
18
18
|
this.arrayDataWatcher(this.dataItems);
|
|
19
19
|
}
|
|
20
20
|
componentDidLoad() {
|
|
21
|
-
let hyMainDiv = this.el.closest(
|
|
21
|
+
let hyMainDiv = this.el.closest(".hy-main");
|
|
22
22
|
if (hyMainDiv) {
|
|
23
|
-
if (!hyMainDiv.classList.contains(
|
|
24
|
-
this.headerstyle =
|
|
23
|
+
if (!hyMainDiv.classList.contains("with-sidebar")) {
|
|
24
|
+
this.headerstyle = "large";
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
const classAttributes = [
|
|
30
|
-
const textClassAttributes = [
|
|
31
|
-
const iconClassAttributes = [
|
|
32
|
-
let classItem = [
|
|
29
|
+
const classAttributes = ["hy-shortcuts", `hy-shortcuts__${this.headerstyle}`].join(" ");
|
|
30
|
+
const textClassAttributes = ["text"].join(" ");
|
|
31
|
+
const iconClassAttributes = ["link-icon"].join(" ");
|
|
32
|
+
let classItem = ["shortcut-link-wrapper", this._dataItems.length % 4 == 0 ? "box-4" : "box-3"].join(" ");
|
|
33
33
|
return (h(Host, null, h("div", { class: classAttributes }, this.listHeading.length > 0 && (h("hy-heading", { class: "list-title", heading: HeadingVarians.h2 }, this.listHeading)), h("div", { class: "shortcut-link-container" }, this._dataItems.map((x, index) => {
|
|
34
|
-
let isFirstLine =
|
|
34
|
+
let isFirstLine = "";
|
|
35
35
|
if (this._dataItems.length % 4 == 0) {
|
|
36
|
-
isFirstLine = index == 0 || index == 1 ?
|
|
36
|
+
isFirstLine = index == 0 || index == 1 ? "first" : "";
|
|
37
37
|
}
|
|
38
38
|
else {
|
|
39
|
-
isFirstLine = index == 0 ?
|
|
39
|
+
isFirstLine = index == 0 ? "first" : "";
|
|
40
40
|
}
|
|
41
|
-
let classLinkWrapper = classItem.concat(
|
|
42
|
-
let target = x.isExternal ?
|
|
43
|
-
return (h("div", { class: classLinkWrapper }, h("a", { "aria-label": x.ariaLabel, class: "shortcut-link", href: x.url, target: target }, h("span", { class: textClassAttributes }, x.heading), h("span", { class: iconClassAttributes }, h("hy-icon", { icon:
|
|
41
|
+
let classLinkWrapper = classItem.concat(" ", isFirstLine);
|
|
42
|
+
let target = x.isExternal ? "_blank" : "_self";
|
|
43
|
+
return (h("div", { class: classLinkWrapper }, h("a", { "aria-label": x.ariaLabel, class: "shortcut-link", href: x.url, target: target }, h("span", { class: textClassAttributes }, x.heading), h("span", { class: iconClassAttributes }, h("hy-icon", { icon: "hy-icon-arrow-right", size: 28 })))));
|
|
44
44
|
}))), h("hy-box", { mb: "1.75, 1.75, 2, 2.5" })));
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "hy-shortcuts"; }
|
|
@@ -65,7 +65,7 @@ export class HyShortcuts {
|
|
|
65
65
|
"references": {
|
|
66
66
|
"ShortcutLinkValue": {
|
|
67
67
|
"location": "local",
|
|
68
|
-
"path": "/
|
|
68
|
+
"path": "/Users/tuukkaturu/hy/hy-ds/design-system-lib/core/src/components/hy-shortcuts/hy-shortcuts.tsx"
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
},
|
|
@@ -94,7 +94,7 @@ export class HyShortcuts {
|
|
|
94
94
|
},
|
|
95
95
|
"attribute": "list-heading",
|
|
96
96
|
"reflect": false,
|
|
97
|
-
"defaultValue": "
|
|
97
|
+
"defaultValue": "\"\""
|
|
98
98
|
},
|
|
99
99
|
"headerstyle": {
|
|
100
100
|
"type": "string",
|
|
@@ -112,7 +112,7 @@ export class HyShortcuts {
|
|
|
112
112
|
},
|
|
113
113
|
"attribute": "headerstyle",
|
|
114
114
|
"reflect": false,
|
|
115
|
-
"defaultValue": "
|
|
115
|
+
"defaultValue": "\"default\""
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
118
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Host, h } from
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class HyTableContainer {
|
|
3
3
|
render() {
|
|
4
|
-
const classAttributes = [
|
|
4
|
+
const classAttributes = ["hy-table-container"].join(" ");
|
|
5
5
|
return (h(Host, { class: classAttributes }, h("slot", null), h("hy-box", { mb: "1.75, 1.75, 2, 2.5" })));
|
|
6
6
|
}
|
|
7
7
|
static get is() { return "hy-table-container"; }
|