@itcenteratunihelsinki/huds-lib 0.8.41 → 0.8.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/color-box_8.cjs.entry.js +11 -36
- package/dist/cjs/{globalScript-6b592153.js → globalScript-45ad6d41.js} +1 -1
- package/dist/cjs/huds-lib.cjs.js +11 -4
- package/dist/cjs/hy-accordion-container_83.cjs.entry.js +363 -157
- package/dist/cjs/hy-event-item.cjs.entry.js +5 -2
- package/dist/cjs/hy-events.cjs.entry.js +4 -2
- package/dist/cjs/hy-hero-carousel.cjs.entry.js +4902 -0
- package/dist/cjs/{index-dfc917d9.js → index-25bd964b.js} +690 -287
- package/dist/cjs/loader.cjs.js +5 -4
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/accordion-container/accordion-container.js +36 -30
- package/dist/collection/components/accordion-item/accordion-item.js +115 -114
- package/dist/collection/components/adjacent-image-text/adjacent-image-text.js +276 -275
- package/dist/collection/components/baseline/baseline.js +34 -32
- package/dist/collection/components/button/button.js +225 -257
- package/dist/collection/components/color-box/color-box.js +12 -9
- package/dist/collection/components/courses/hy-content-list/hy-content-list.js +153 -148
- package/dist/collection/components/courses/hy-content-list-item/hy-content-list-item.css +2 -2
- package/dist/collection/components/courses/hy-content-list-item/hy-content-list-item.js +334 -331
- package/dist/collection/components/cta-button/cta-button.js +140 -138
- package/dist/collection/components/cta-link/cta-link.js +106 -103
- package/dist/collection/components/docs-container/docs-container.js +12 -9
- package/dist/collection/components/footer/hy-footer/hy-footer.js +12 -9
- package/dist/collection/components/footer/hy-footer-action/hy-footer-action.js +62 -55
- package/dist/collection/components/footer/hy-footer-base/hy-footer-base.js +182 -187
- package/dist/collection/components/footer/hy-footer-info/hy-footer-info.js +277 -270
- package/dist/collection/components/footer/hy-footer-link-item/hy-footer-link-item.js +190 -190
- package/dist/collection/components/grid-container/grid-container.js +12 -9
- package/dist/collection/components/grid-item/grid-item.css +0 -23
- package/dist/collection/components/grid-item/grid-item.js +101 -96
- package/dist/collection/components/grid-row/grid-row.js +12 -9
- package/dist/collection/components/heading/heading-fw.css +17 -17
- package/dist/collection/components/heading/heading.css +17 -17
- package/dist/collection/components/heading/heading.js +141 -146
- package/dist/collection/components/hy-anchor-link-list/hy-anchor-link-list.js +104 -99
- package/dist/collection/components/hy-badge/hy-badge.js +34 -30
- package/dist/collection/components/hy-banner/hy-banner.js +136 -135
- package/dist/collection/components/hy-box/hy-box.js +322 -318
- package/dist/collection/components/hy-box-container/hy-box-container.js +52 -54
- package/dist/collection/components/hy-breadcrumbs/hy-breadcrumbs.js +88 -82
- package/dist/collection/components/hy-checkbox/hy-checkbox.js +107 -114
- package/dist/collection/components/hy-collaboration/hy-collaboration.js +104 -99
- package/dist/collection/components/hy-crisis-banner/hy-crisis-banner.js +87 -85
- package/dist/collection/components/hy-dropdown/hy-dropdown.js +152 -147
- package/dist/collection/components/hy-dropdown/hy-dropdown.panel.item.js +75 -74
- package/dist/collection/components/hy-dropdown/hy-dropdown.panel.js +26 -22
- package/dist/collection/components/hy-event-item/hy-event-item.js +183 -192
- package/dist/collection/components/hy-events/hy-events.js +130 -127
- package/dist/collection/components/hy-filter-group/hy-filter-group.item.js +43 -41
- package/dist/collection/components/hy-filter-group/hy-filter-group.js +63 -54
- package/dist/collection/components/hy-filter-list-type/hy-filter-list-type.js +61 -56
- package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.js +37 -30
- package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.reset.js +2 -4
- package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.reset.toggle.js +2 -8
- package/dist/collection/components/hy-general-list/hy-general-list.js +122 -113
- package/dist/collection/components/hy-general-list-item/hy-general-list-item.js +255 -258
- package/dist/collection/components/hy-hero/hy-hero.css +2 -2
- package/dist/collection/components/hy-hero/hy-hero.js +295 -308
- package/dist/collection/components/hy-hero-carousel/hy-hero-carousel.css +1306 -0
- package/dist/collection/components/hy-hero-carousel/hy-hero-carousel.js +211 -0
- package/dist/collection/components/hy-introduction/hy-introduction.js +247 -250
- package/dist/collection/components/hy-key-figure/hy-key-figure.js +72 -66
- package/dist/collection/components/hy-key-figure-group/hy-key-figure-group.css +1 -1
- package/dist/collection/components/hy-key-figure-group/hy-key-figure-group.js +66 -65
- package/dist/collection/components/hy-key-highlight/hy-key-highlight.js +72 -67
- package/dist/collection/components/hy-key-highlight-group/hy-key-highlight-group.css +2 -2
- package/dist/collection/components/hy-key-highlight-group/hy-key-highlight-group.js +78 -71
- package/dist/collection/components/hy-large-process-flow/hy-large-process-flow.css +6 -6
- package/dist/collection/components/hy-large-process-flow/hy-large-process-flow.js +54 -46
- package/dist/collection/components/hy-large-process-flow-phase/hy-large-process-flow-phase.css +3 -3
- package/dist/collection/components/hy-large-process-flow-phase/hy-large-process-flow-phase.js +40 -37
- package/dist/collection/components/hy-link-list/hy-link-list.js +106 -100
- package/dist/collection/components/hy-list-item/hy-list-item.js +428 -451
- package/dist/collection/components/hy-logo-grid/hy-logo-grid.item.js +53 -47
- package/dist/collection/components/hy-logo-grid/hy-logo-grid.js +53 -46
- package/dist/collection/components/hy-main/hy-main.js +34 -29
- package/dist/collection/components/hy-main-content-wrapper/hy-main-content-wrapper.js +12 -10
- package/dist/collection/components/hy-opening-hours/hy-opening-hours.css +2 -2
- package/dist/collection/components/hy-opening-hours/hy-opening-hours.js +304 -308
- package/dist/collection/components/hy-opening-hours-content/hy-opening-hours-content.css +2 -2
- package/dist/collection/components/hy-opening-hours-content/hy-opening-hours-content.js +107 -107
- package/dist/collection/components/hy-person-card/hy-person-card.js +422 -438
- package/dist/collection/components/hy-prominent-image/hy-prominent-image.js +106 -100
- package/dist/collection/components/hy-quote/hy-quote.js +51 -51
- package/dist/collection/components/hy-search-field/hy-search-field.js +166 -167
- package/dist/collection/components/hy-shortcuts/hy-shortcuts.css +1 -1
- package/dist/collection/components/hy-shortcuts/hy-shortcuts.js +89 -87
- package/dist/collection/components/hy-table-container/hy-table-container.css +6 -6
- package/dist/collection/components/hy-table-container/hy-table-container.js +12 -10
- package/dist/collection/components/hy-tabs/hy-tabs.js +115 -111
- package/dist/collection/components/hy-tabs-item/hy-tabs-item.js +36 -28
- package/dist/collection/components/hy-tag/hy-tag.js +12 -11
- package/dist/collection/components/hy-twitter-feed/hy-twitter-feed.js +107 -128
- package/dist/collection/components/hy-two-columns/hy-two-columns.js +34 -33
- package/dist/collection/components/hy-user-login-form/hy-user-login-form.js +53 -46
- package/dist/collection/components/hy-video/hy-video.css +1 -1
- package/dist/collection/components/hy-video/hy-video.js +462 -500
- package/dist/collection/components/icon/AddToTodoList.js +1 -2
- package/dist/collection/components/icon/Alert.js +1 -3
- package/dist/collection/components/icon/Archive.js +1 -5
- package/dist/collection/components/icon/Arrow.js +1 -2
- package/dist/collection/components/icon/ArrowDown.js +1 -2
- package/dist/collection/components/icon/ArrowRight.js +1 -7
- package/dist/collection/components/icon/ArrowUp.js +1 -2
- package/dist/collection/components/icon/Avatar.js +1 -2
- package/dist/collection/components/icon/AvatarGroup.js +1 -2
- package/dist/collection/components/icon/Bachelor.js +1 -2
- package/dist/collection/components/icon/BulletList.js +1 -2
- package/dist/collection/components/icon/Camera.js +1 -2
- package/dist/collection/components/icon/CaretDown.js +1 -2
- package/dist/collection/components/icon/CaretLeft.js +1 -2
- package/dist/collection/components/icon/CaretRight.js +1 -2
- package/dist/collection/components/icon/CaretUp.js +1 -2
- package/dist/collection/components/icon/Chat.js +1 -2
- package/dist/collection/components/icon/CodeFork.js +1 -2
- package/dist/collection/components/icon/Cogs.js +1 -2
- package/dist/collection/components/icon/Contentlink.js +1 -2
- package/dist/collection/components/icon/Customlink.js +1 -2
- package/dist/collection/components/icon/Date.js +1 -2
- package/dist/collection/components/icon/Discover.js +1 -2
- package/dist/collection/components/icon/Done.js +1 -2
- package/dist/collection/components/icon/Dot.js +1 -2
- package/dist/collection/components/icon/DotArrowRight.js +1 -6
- package/dist/collection/components/icon/Download.js +1 -2
- package/dist/collection/components/icon/Drag.js +1 -2
- package/dist/collection/components/icon/Dragbutton.js +1 -2
- package/dist/collection/components/icon/DropDown.js +1 -2
- package/dist/collection/components/icon/Edit.js +1 -2
- package/dist/collection/components/icon/EditEvent.js +1 -2
- package/dist/collection/components/icon/Embed.js +1 -2
- package/dist/collection/components/icon/Euro.js +1 -2
- package/dist/collection/components/icon/Events.js +1 -2
- package/dist/collection/components/icon/ExternalLink.js +1 -2
- package/dist/collection/components/icon/EyeSlash.js +1 -2
- package/dist/collection/components/icon/Facebook.js +1 -2
- package/dist/collection/components/icon/Favorites.js +1 -2
- package/dist/collection/components/icon/Feed.js +1 -2
- package/dist/collection/components/icon/FileText.js +1 -2
- package/dist/collection/components/icon/FullScreen.js +1 -2
- package/dist/collection/components/icon/Globe.js +1 -2
- package/dist/collection/components/icon/GooglePlus.js +1 -2
- package/dist/collection/components/icon/Grid.js +1 -2
- package/dist/collection/components/icon/Hamburger.js +1 -2
- package/dist/collection/components/icon/Heart.js +1 -2
- package/dist/collection/components/icon/HeartSupport.js +1 -2
- package/dist/collection/components/icon/Helsinginyliopisto.js +1 -2
- package/dist/collection/components/icon/Home.js +1 -2
- package/dist/collection/components/icon/HorizontalResize.js +1 -2
- package/dist/collection/components/icon/HyLogo.js +1 -2
- package/dist/collection/components/icon/IdNumber.js +1 -2
- package/dist/collection/components/icon/Image.js +1 -2
- package/dist/collection/components/icon/ImageGallery.js +1 -2
- package/dist/collection/components/icon/Images.js +1 -2
- package/dist/collection/components/icon/Info.js +1 -2
- package/dist/collection/components/icon/InfoStroke.js +1 -2
- package/dist/collection/components/icon/Instagram.js +1 -2
- package/dist/collection/components/icon/LeikiList.js +1 -2
- package/dist/collection/components/icon/LinkArrow.js +1 -2
- package/dist/collection/components/icon/LinkArrow1.js +1 -2
- package/dist/collection/components/icon/LinkArrowDown.js +1 -2
- package/dist/collection/components/icon/LinkArrowLeft.js +1 -2
- package/dist/collection/components/icon/LinkArrowOffsite.js +1 -2
- package/dist/collection/components/icon/LinkArrowUp.js +1 -2
- package/dist/collection/components/icon/Linkedin.js +1 -2
- package/dist/collection/components/icon/List.js +1 -2
- package/dist/collection/components/icon/ListAsBlocks.js +1 -2
- package/dist/collection/components/icon/ListStyleGrid.js +1 -10
- package/dist/collection/components/icon/ListStyleList.js +1 -5
- package/dist/collection/components/icon/Listoflinks.js +1 -2
- package/dist/collection/components/icon/Location.js +1 -2
- package/dist/collection/components/icon/Log.js +1 -2
- package/dist/collection/components/icon/Login.js +1 -2
- package/dist/collection/components/icon/Logout.js +1 -2
- package/dist/collection/components/icon/MagnifyMinus.js +1 -2
- package/dist/collection/components/icon/MagnifyPlus.js +1 -2
- package/dist/collection/components/icon/Mail.js +1 -2
- package/dist/collection/components/icon/Master.js +1 -2
- package/dist/collection/components/icon/Minus.js +1 -2
- package/dist/collection/components/icon/Mobile.js +1 -2
- package/dist/collection/components/icon/Modify.js +1 -2
- package/dist/collection/components/icon/NaviTriangle.js +1 -2
- package/dist/collection/components/icon/NewGroup.js +1 -2
- package/dist/collection/components/icon/NewPerson.js +1 -2
- package/dist/collection/components/icon/Notification.js +1 -2
- package/dist/collection/components/icon/OpinderLogo.js +1 -2
- package/dist/collection/components/icon/OpinderLogoNew.js +1 -2
- package/dist/collection/components/icon/Pdf.js +1 -2
- package/dist/collection/components/icon/People.js +1 -2
- package/dist/collection/components/icon/PermissionAll.js +1 -2
- package/dist/collection/components/icon/PermissionGroup.js +1 -2
- package/dist/collection/components/icon/PermissionPrivate.js +1 -2
- package/dist/collection/components/icon/Person.js +1 -2
- package/dist/collection/components/icon/PersonOutline.js +1 -2
- package/dist/collection/components/icon/Phone.js +1 -2
- package/dist/collection/components/icon/Play.js +1 -2
- package/dist/collection/components/icon/Plus.js +1 -2
- package/dist/collection/components/icon/Preview.js +1 -2
- package/dist/collection/components/icon/Profile.js +1 -2
- package/dist/collection/components/icon/Question.js +1 -2
- package/dist/collection/components/icon/Remove.js +1 -2
- package/dist/collection/components/icon/Retweet.js +1 -2
- package/dist/collection/components/icon/RotateLeft.js +1 -2
- package/dist/collection/components/icon/RotateRight.js +1 -2
- package/dist/collection/components/icon/Search.js +1 -2
- package/dist/collection/components/icon/Share.js +1 -2
- package/dist/collection/components/icon/SlimHamburgerMenu.js +1 -2
- package/dist/collection/components/icon/SocialMedia.js +1 -2
- package/dist/collection/components/icon/SomeFacebook.js +1 -2
- package/dist/collection/components/icon/SomeInstagram.js +1 -4
- package/dist/collection/components/icon/SomeLinkedin.js +1 -2
- package/dist/collection/components/icon/SomeTwitter.js +1 -2
- package/dist/collection/components/icon/SomeYoutube.js +1 -2
- package/dist/collection/components/icon/Spinner.js +1 -2
- package/dist/collection/components/icon/Square.js +1 -2
- package/dist/collection/components/icon/SquareChecked.js +1 -2
- package/dist/collection/components/icon/Time.js +1 -2
- package/dist/collection/components/icon/TodoList.js +1 -2
- package/dist/collection/components/icon/Tour.js +1 -2
- package/dist/collection/components/icon/Twitter.js +1 -2
- package/dist/collection/components/icon/TwitterLike.js +1 -2
- package/dist/collection/components/icon/UnitsAndFaculties.js +1 -2
- package/dist/collection/components/icon/Url.js +1 -2
- package/dist/collection/components/icon/Video.js +1 -2
- package/dist/collection/components/icon/Warning.js +1 -2
- package/dist/collection/components/icon/Wrench.js +1 -2
- package/dist/collection/components/icon/Youtube.js +1 -2
- package/dist/collection/components/icon/icon.js +67 -60
- package/dist/collection/components/icon/icons.js +4 -8
- package/dist/collection/components/image/image.js +147 -141
- package/dist/collection/components/ingress/ingress.js +34 -30
- package/dist/collection/components/link/link.js +106 -99
- package/dist/collection/components/link-box/link-box.css +0 -1
- package/dist/collection/components/link-box/link-box.js +270 -272
- package/dist/collection/components/link-box-list/link-box-list.js +95 -89
- package/dist/collection/components/navigation/hy-menu-main-group/hy-menu-main-group.js +285 -290
- package/dist/collection/components/navigation/menu-language/menu-language.js +147 -138
- package/dist/collection/components/navigation/menu-language-item/menu-language-item.js +123 -114
- package/dist/collection/components/pagination/hy-pager/hy-pager.js +12 -9
- package/dist/collection/components/pagination/hy-pager-item/hy-pager-item.js +92 -95
- package/dist/collection/components/paragraph-text/paragraph-text-content.css +14 -14
- package/dist/collection/components/paragraph-text/paragraph-text-landing.css +8 -8
- package/dist/collection/components/paragraph-text/paragraph-text.css +22 -22
- package/dist/collection/components/paragraph-text/paragraph-text.js +72 -67
- package/dist/collection/components/person-profile/person-profile-listing/person-profile-listing.css +1 -1
- package/dist/collection/components/person-profile/person-profile-listing/person-profile.listing.js +127 -126
- package/dist/collection/components/person-profile/person-profile.css +4 -4
- package/dist/collection/components/person-profile/person-profile.js +138 -182
- package/dist/collection/components/process/process.js +71 -62
- package/dist/collection/components/process-flow-box/process-flow-box.js +144 -148
- package/dist/collection/components/row/row.js +68 -72
- package/dist/collection/components/section-container/section-container.js +12 -9
- package/dist/collection/components/site-header/site-header.css +1 -1
- package/dist/collection/components/site-header/site-header.js +540 -560
- package/dist/collection/components/site-header/site-logo/site-logo.js +148 -148
- package/dist/collection/components/site-header/site-search/site-search.js +297 -312
- package/dist/collection/components/tiny-text/tiny-text.js +12 -9
- package/dist/esm/color-box_8.entry.js +12 -37
- package/dist/esm/{globalScript-9d045b36.js → globalScript-4ad40215.js} +1 -1
- package/dist/esm/huds-lib.js +8 -4
- package/dist/esm/hy-accordion-container_83.entry.js +364 -158
- package/dist/esm/hy-event-item.entry.js +5 -2
- package/dist/esm/hy-events.entry.js +5 -3
- package/dist/esm/hy-hero-carousel.entry.js +4898 -0
- package/dist/esm/{index-daaf0985.js → index-3a66d87e.js} +690 -288
- package/dist/esm/loader.js +5 -4
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{utils-7731bbdf.js → utils-43c56d92.js} +1 -1
- package/dist/huds-lib/huds-lib.esm.js +1 -1
- package/dist/huds-lib/{p-0ea3ec9a.js → p-63584350.js} +1 -1
- package/dist/huds-lib/p-7c7ea6b3.entry.js +1 -0
- package/dist/huds-lib/p-8d5c2e5b.entry.js +1 -0
- package/dist/huds-lib/p-91f6109f.entry.js +1 -0
- package/dist/huds-lib/p-9a15a75b.entry.js +1 -0
- package/dist/huds-lib/{p-04dcccdc.js → p-b02e49ad.js} +1 -1
- package/dist/huds-lib/p-ff975a68.js +2 -0
- package/dist/huds-lib/p-ffd1d29a.entry.js +87 -0
- package/dist/types/components/hy-hero-carousel/hy-hero-carousel.d.ts +30 -0
- package/dist/types/components/person-profile/person-profile-listing/person-profile.listing.d.ts +1 -1
- package/dist/types/components.d.ts +95 -20
- package/dist/types/stencil-public-runtime.d.ts +92 -19
- package/dist/types/utils/utils.d.ts +4 -4
- package/loader/index.d.ts +11 -12
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -11
- package/loader/package.json +2 -1
- package/package.json +13 -11
- package/dist/huds-lib/p-0370da7d.entry.js +0 -87
- package/dist/huds-lib/p-2244fcda.entry.js +0 -1
- package/dist/huds-lib/p-aba9f82a.entry.js +0 -1
- package/dist/huds-lib/p-c68c36c3.entry.js +0 -1
- package/dist/huds-lib/p-f8697bf9.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
2
|
import { LinkBoxVariants } from '../../utils/utils';
|
|
3
3
|
export class LinkBox {
|
|
4
4
|
constructor() {
|
|
@@ -8,9 +8,14 @@ export class LinkBox {
|
|
|
8
8
|
this.disableLazy = false;
|
|
9
9
|
this.useSlot = false;
|
|
10
10
|
this.showLogo = false;
|
|
11
|
+
this.textTitle = undefined;
|
|
11
12
|
this.textDescription = null;
|
|
13
|
+
this.url = undefined;
|
|
12
14
|
this.isExternal = false;
|
|
15
|
+
this.scLabel = undefined;
|
|
16
|
+
this.readMoreLabel = undefined;
|
|
13
17
|
this.headerstyle = 'common';
|
|
18
|
+
this.sourceSet = undefined;
|
|
14
19
|
}
|
|
15
20
|
srcSetWatcher(data) {
|
|
16
21
|
this._sourceSet = typeof data === 'string' ? JSON.parse(data) : data;
|
|
@@ -57,295 +62,288 @@ export class LinkBox {
|
|
|
57
62
|
'--aspectRatio': `${aspect}%`,
|
|
58
63
|
};
|
|
59
64
|
return [
|
|
60
|
-
h("article", { class: classContainerAttributes },
|
|
61
|
-
h("div", { class:
|
|
62
|
-
this.imageUrl &&
|
|
63
|
-
(this._sourceSet ? (h("figure", { class: "hy-link-box__image-container", style: aspectRatio },
|
|
64
|
-
h("picture", null,
|
|
65
|
-
this._sourceSet.map((item) => (h("source", { srcSet: item.src, media: item.media, type: item.type, sizes: item.sizes ? item.sizes : '' }))),
|
|
66
|
-
h("img", { loading: this.disableLazy ? 'eager' : 'lazy', "aria-hidden": "true", src: this.imageUrl, alt: this.imageAlt })))) : (h("figure", { class: "hy-link-box__image-container", style: aspectRatio },
|
|
67
|
-
h("img", { loading: this.disableLazy ? 'eager' : 'lazy', "aria-hidden": "true", src: this.imageUrl, alt: this.imageAlt })))),
|
|
68
|
-
!this.imageUrl && this.showLogo && (h("div", { "aria-hidden": "true", class: "hy-link-box__image-container is-image-missing" },
|
|
69
|
-
h("hy-icon", { class: { 'hy-site-logo__icon': true }, icon: 'hy-icon-hy-logo' }))),
|
|
70
|
-
h("div", { class: classTextContainer },
|
|
71
|
-
h("h3", { class: classTitle }, this.textTitle),
|
|
72
|
-
this.textDescription && (h("p", { class: classDescription }, this.textDescription.length >= 141 ? this.textDescription.slice(0, 140) + '...' : this.textDescription)))),
|
|
73
|
-
h("a", { "aria-label": this.scLabel || `${this.readMoreLabel} - ${this.textTitle}`, title: this.scLabel || `${this.readMoreLabel} - ${this.textTitle}`, href: this.url, target: target, class: `hy-cta-link hy-cta-link--default` },
|
|
74
|
-
h("span", { "aria-hidden": "true" }),
|
|
75
|
-
h("span", null, this.readMoreLabel),
|
|
76
|
-
h("span", { class: `hy-cta-link__icon ${this.isExternal ? 'hy-cta-link__icon--external' : ''}` },
|
|
77
|
-
h("hy-icon", { icon: 'hy-icon-arrow-to-right', size: 24 })))),
|
|
65
|
+
h("article", { class: classContainerAttributes }, h("div", { class: classAttributes }, this.imageUrl &&
|
|
66
|
+
(this._sourceSet ? (h("figure", { class: "hy-link-box__image-container", style: aspectRatio }, h("picture", null, this._sourceSet.map((item) => (h("source", { srcSet: item.src, media: item.media, type: item.type, sizes: item.sizes ? item.sizes : '' }))), h("img", { loading: this.disableLazy ? 'eager' : 'lazy', "aria-hidden": "true", src: this.imageUrl, alt: this.imageAlt })))) : (h("figure", { class: "hy-link-box__image-container", style: aspectRatio }, h("img", { loading: this.disableLazy ? 'eager' : 'lazy', "aria-hidden": "true", src: this.imageUrl, alt: this.imageAlt })))), !this.imageUrl && this.showLogo && (h("div", { "aria-hidden": "true", class: "hy-link-box__image-container is-image-missing" }, h("hy-icon", { class: { 'hy-site-logo__icon': true }, icon: 'hy-icon-hy-logo' }))), h("div", { class: classTextContainer }, h("h3", { class: classTitle }, this.textTitle), this.textDescription && (h("p", { class: classDescription }, this.textDescription.length >= 141 ? this.textDescription.slice(0, 140) + '...' : this.textDescription)))), h("a", { "aria-label": this.scLabel || `${this.readMoreLabel} - ${this.textTitle}`, title: this.scLabel || `${this.readMoreLabel} - ${this.textTitle}`, href: this.url, target: target, class: `hy-cta-link hy-cta-link--default` }, h("span", { "aria-hidden": "true" }), h("span", null, this.readMoreLabel), h("span", { class: `hy-cta-link__icon ${this.isExternal ? 'hy-cta-link__icon--external' : ''}` }, h("hy-icon", { icon: 'hy-icon-arrow-to-right', size: 24 })))),
|
|
78
67
|
];
|
|
79
68
|
}
|
|
80
69
|
static get is() { return "hy-link-box"; }
|
|
81
70
|
static get encapsulation() { return "shadow"; }
|
|
82
|
-
static get originalStyleUrls() {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
"
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
71
|
+
static get originalStyleUrls() {
|
|
72
|
+
return {
|
|
73
|
+
"$": ["link-box.scss"]
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
static get styleUrls() {
|
|
77
|
+
return {
|
|
78
|
+
"$": ["link-box.css"]
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
static get properties() {
|
|
82
|
+
return {
|
|
83
|
+
"variant": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"mutable": false,
|
|
86
|
+
"complexType": {
|
|
87
|
+
"original": "LinkBoxVariants",
|
|
88
|
+
"resolved": "LinkBoxVariants.default | LinkBoxVariants.landingPage",
|
|
89
|
+
"references": {
|
|
90
|
+
"LinkBoxVariants": {
|
|
91
|
+
"location": "import",
|
|
92
|
+
"path": "../../utils/utils"
|
|
93
|
+
}
|
|
99
94
|
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
"defaultValue": "LinkBoxVariants.default"
|
|
111
|
-
},
|
|
112
|
-
"imageUrl": {
|
|
113
|
-
"type": "string",
|
|
114
|
-
"mutable": false,
|
|
115
|
-
"complexType": {
|
|
116
|
-
"original": "string",
|
|
117
|
-
"resolved": "string",
|
|
118
|
-
"references": {}
|
|
119
|
-
},
|
|
120
|
-
"required": false,
|
|
121
|
-
"optional": false,
|
|
122
|
-
"docs": {
|
|
123
|
-
"tags": [],
|
|
124
|
-
"text": ""
|
|
125
|
-
},
|
|
126
|
-
"attribute": "image-url",
|
|
127
|
-
"reflect": false,
|
|
128
|
-
"defaultValue": "null"
|
|
129
|
-
},
|
|
130
|
-
"imageAlt": {
|
|
131
|
-
"type": "string",
|
|
132
|
-
"mutable": false,
|
|
133
|
-
"complexType": {
|
|
134
|
-
"original": "string",
|
|
135
|
-
"resolved": "string",
|
|
136
|
-
"references": {}
|
|
137
|
-
},
|
|
138
|
-
"required": false,
|
|
139
|
-
"optional": false,
|
|
140
|
-
"docs": {
|
|
141
|
-
"tags": [],
|
|
142
|
-
"text": ""
|
|
143
|
-
},
|
|
144
|
-
"attribute": "image-alt",
|
|
145
|
-
"reflect": false,
|
|
146
|
-
"defaultValue": "null"
|
|
147
|
-
},
|
|
148
|
-
"disableLazy": {
|
|
149
|
-
"type": "boolean",
|
|
150
|
-
"mutable": false,
|
|
151
|
-
"complexType": {
|
|
152
|
-
"original": "boolean",
|
|
153
|
-
"resolved": "boolean",
|
|
154
|
-
"references": {}
|
|
155
|
-
},
|
|
156
|
-
"required": false,
|
|
157
|
-
"optional": false,
|
|
158
|
-
"docs": {
|
|
159
|
-
"tags": [],
|
|
160
|
-
"text": ""
|
|
161
|
-
},
|
|
162
|
-
"attribute": "disable-lazy",
|
|
163
|
-
"reflect": false,
|
|
164
|
-
"defaultValue": "false"
|
|
165
|
-
},
|
|
166
|
-
"useSlot": {
|
|
167
|
-
"type": "boolean",
|
|
168
|
-
"mutable": false,
|
|
169
|
-
"complexType": {
|
|
170
|
-
"original": "boolean",
|
|
171
|
-
"resolved": "boolean",
|
|
172
|
-
"references": {}
|
|
95
|
+
},
|
|
96
|
+
"required": false,
|
|
97
|
+
"optional": false,
|
|
98
|
+
"docs": {
|
|
99
|
+
"tags": [],
|
|
100
|
+
"text": ""
|
|
101
|
+
},
|
|
102
|
+
"attribute": "variant",
|
|
103
|
+
"reflect": false,
|
|
104
|
+
"defaultValue": "LinkBoxVariants.default"
|
|
173
105
|
},
|
|
174
|
-
"
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
"
|
|
178
|
-
|
|
106
|
+
"imageUrl": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"mutable": false,
|
|
109
|
+
"complexType": {
|
|
110
|
+
"original": "string",
|
|
111
|
+
"resolved": "string",
|
|
112
|
+
"references": {}
|
|
113
|
+
},
|
|
114
|
+
"required": false,
|
|
115
|
+
"optional": false,
|
|
116
|
+
"docs": {
|
|
117
|
+
"tags": [],
|
|
118
|
+
"text": ""
|
|
119
|
+
},
|
|
120
|
+
"attribute": "image-url",
|
|
121
|
+
"reflect": false,
|
|
122
|
+
"defaultValue": "null"
|
|
179
123
|
},
|
|
180
|
-
"
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"
|
|
124
|
+
"imageAlt": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"mutable": false,
|
|
127
|
+
"complexType": {
|
|
128
|
+
"original": "string",
|
|
129
|
+
"resolved": "string",
|
|
130
|
+
"references": {}
|
|
131
|
+
},
|
|
132
|
+
"required": false,
|
|
133
|
+
"optional": false,
|
|
134
|
+
"docs": {
|
|
135
|
+
"tags": [],
|
|
136
|
+
"text": ""
|
|
137
|
+
},
|
|
138
|
+
"attribute": "image-alt",
|
|
139
|
+
"reflect": false,
|
|
140
|
+
"defaultValue": "null"
|
|
191
141
|
},
|
|
192
|
-
"
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
"
|
|
196
|
-
|
|
142
|
+
"disableLazy": {
|
|
143
|
+
"type": "boolean",
|
|
144
|
+
"mutable": false,
|
|
145
|
+
"complexType": {
|
|
146
|
+
"original": "boolean",
|
|
147
|
+
"resolved": "boolean",
|
|
148
|
+
"references": {}
|
|
149
|
+
},
|
|
150
|
+
"required": false,
|
|
151
|
+
"optional": false,
|
|
152
|
+
"docs": {
|
|
153
|
+
"tags": [],
|
|
154
|
+
"text": ""
|
|
155
|
+
},
|
|
156
|
+
"attribute": "disable-lazy",
|
|
157
|
+
"reflect": false,
|
|
158
|
+
"defaultValue": "false"
|
|
197
159
|
},
|
|
198
|
-
"
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
"
|
|
160
|
+
"useSlot": {
|
|
161
|
+
"type": "boolean",
|
|
162
|
+
"mutable": false,
|
|
163
|
+
"complexType": {
|
|
164
|
+
"original": "boolean",
|
|
165
|
+
"resolved": "boolean",
|
|
166
|
+
"references": {}
|
|
167
|
+
},
|
|
168
|
+
"required": false,
|
|
169
|
+
"optional": false,
|
|
170
|
+
"docs": {
|
|
171
|
+
"tags": [],
|
|
172
|
+
"text": ""
|
|
173
|
+
},
|
|
174
|
+
"attribute": "use-slot",
|
|
175
|
+
"reflect": false,
|
|
176
|
+
"defaultValue": "false"
|
|
209
177
|
},
|
|
210
|
-
"
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
"
|
|
214
|
-
|
|
178
|
+
"showLogo": {
|
|
179
|
+
"type": "boolean",
|
|
180
|
+
"mutable": false,
|
|
181
|
+
"complexType": {
|
|
182
|
+
"original": "boolean",
|
|
183
|
+
"resolved": "boolean",
|
|
184
|
+
"references": {}
|
|
185
|
+
},
|
|
186
|
+
"required": false,
|
|
187
|
+
"optional": false,
|
|
188
|
+
"docs": {
|
|
189
|
+
"tags": [],
|
|
190
|
+
"text": ""
|
|
191
|
+
},
|
|
192
|
+
"attribute": "show-logo",
|
|
193
|
+
"reflect": false,
|
|
194
|
+
"defaultValue": "false"
|
|
215
195
|
},
|
|
216
|
-
"
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
"
|
|
225
|
-
"
|
|
196
|
+
"textTitle": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"mutable": false,
|
|
199
|
+
"complexType": {
|
|
200
|
+
"original": "string",
|
|
201
|
+
"resolved": "string",
|
|
202
|
+
"references": {}
|
|
203
|
+
},
|
|
204
|
+
"required": false,
|
|
205
|
+
"optional": true,
|
|
206
|
+
"docs": {
|
|
207
|
+
"tags": [],
|
|
208
|
+
"text": ""
|
|
209
|
+
},
|
|
210
|
+
"attribute": "text-title",
|
|
211
|
+
"reflect": false
|
|
226
212
|
},
|
|
227
|
-
"
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
"
|
|
231
|
-
|
|
213
|
+
"textDescription": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"mutable": false,
|
|
216
|
+
"complexType": {
|
|
217
|
+
"original": "string",
|
|
218
|
+
"resolved": "string",
|
|
219
|
+
"references": {}
|
|
220
|
+
},
|
|
221
|
+
"required": false,
|
|
222
|
+
"optional": false,
|
|
223
|
+
"docs": {
|
|
224
|
+
"tags": [],
|
|
225
|
+
"text": ""
|
|
226
|
+
},
|
|
227
|
+
"attribute": "text-description",
|
|
228
|
+
"reflect": false,
|
|
229
|
+
"defaultValue": "null"
|
|
232
230
|
},
|
|
233
|
-
"
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
"
|
|
242
|
-
"
|
|
243
|
-
"
|
|
231
|
+
"url": {
|
|
232
|
+
"type": "string",
|
|
233
|
+
"mutable": false,
|
|
234
|
+
"complexType": {
|
|
235
|
+
"original": "string",
|
|
236
|
+
"resolved": "string",
|
|
237
|
+
"references": {}
|
|
238
|
+
},
|
|
239
|
+
"required": false,
|
|
240
|
+
"optional": true,
|
|
241
|
+
"docs": {
|
|
242
|
+
"tags": [],
|
|
243
|
+
"text": ""
|
|
244
|
+
},
|
|
245
|
+
"attribute": "url",
|
|
246
|
+
"reflect": false
|
|
244
247
|
},
|
|
245
|
-
"
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
"
|
|
249
|
-
|
|
248
|
+
"isExternal": {
|
|
249
|
+
"type": "boolean",
|
|
250
|
+
"mutable": false,
|
|
251
|
+
"complexType": {
|
|
252
|
+
"original": "boolean",
|
|
253
|
+
"resolved": "boolean",
|
|
254
|
+
"references": {}
|
|
255
|
+
},
|
|
256
|
+
"required": false,
|
|
257
|
+
"optional": false,
|
|
258
|
+
"docs": {
|
|
259
|
+
"tags": [],
|
|
260
|
+
"text": ""
|
|
261
|
+
},
|
|
262
|
+
"attribute": "is-external",
|
|
263
|
+
"reflect": false,
|
|
264
|
+
"defaultValue": "false"
|
|
250
265
|
},
|
|
251
|
-
"
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
"
|
|
260
|
-
"
|
|
266
|
+
"scLabel": {
|
|
267
|
+
"type": "string",
|
|
268
|
+
"mutable": false,
|
|
269
|
+
"complexType": {
|
|
270
|
+
"original": "string",
|
|
271
|
+
"resolved": "string",
|
|
272
|
+
"references": {}
|
|
273
|
+
},
|
|
274
|
+
"required": false,
|
|
275
|
+
"optional": true,
|
|
276
|
+
"docs": {
|
|
277
|
+
"tags": [],
|
|
278
|
+
"text": ""
|
|
279
|
+
},
|
|
280
|
+
"attribute": "sc-label",
|
|
281
|
+
"reflect": false
|
|
261
282
|
},
|
|
262
|
-
"
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
"
|
|
266
|
-
|
|
283
|
+
"readMoreLabel": {
|
|
284
|
+
"type": "string",
|
|
285
|
+
"mutable": false,
|
|
286
|
+
"complexType": {
|
|
287
|
+
"original": "string",
|
|
288
|
+
"resolved": "string",
|
|
289
|
+
"references": {}
|
|
290
|
+
},
|
|
291
|
+
"required": false,
|
|
292
|
+
"optional": false,
|
|
293
|
+
"docs": {
|
|
294
|
+
"tags": [],
|
|
295
|
+
"text": ""
|
|
296
|
+
},
|
|
297
|
+
"attribute": "read-more-label",
|
|
298
|
+
"reflect": false
|
|
267
299
|
},
|
|
268
|
-
"
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
"
|
|
277
|
-
"
|
|
278
|
-
"
|
|
300
|
+
"headerstyle": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"mutable": false,
|
|
303
|
+
"complexType": {
|
|
304
|
+
"original": "string",
|
|
305
|
+
"resolved": "string",
|
|
306
|
+
"references": {}
|
|
307
|
+
},
|
|
308
|
+
"required": false,
|
|
309
|
+
"optional": false,
|
|
310
|
+
"docs": {
|
|
311
|
+
"tags": [],
|
|
312
|
+
"text": ""
|
|
313
|
+
},
|
|
314
|
+
"attribute": "headerstyle",
|
|
315
|
+
"reflect": false,
|
|
316
|
+
"defaultValue": "'common'"
|
|
279
317
|
},
|
|
280
|
-
"
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
"
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
"mutable": false,
|
|
292
|
-
"complexType": {
|
|
293
|
-
"original": "string",
|
|
294
|
-
"resolved": "string",
|
|
295
|
-
"references": {}
|
|
296
|
-
},
|
|
297
|
-
"required": false,
|
|
298
|
-
"optional": false,
|
|
299
|
-
"docs": {
|
|
300
|
-
"tags": [],
|
|
301
|
-
"text": ""
|
|
302
|
-
},
|
|
303
|
-
"attribute": "read-more-label",
|
|
304
|
-
"reflect": false
|
|
305
|
-
},
|
|
306
|
-
"headerstyle": {
|
|
307
|
-
"type": "string",
|
|
308
|
-
"mutable": false,
|
|
309
|
-
"complexType": {
|
|
310
|
-
"original": "string",
|
|
311
|
-
"resolved": "string",
|
|
312
|
-
"references": {}
|
|
313
|
-
},
|
|
314
|
-
"required": false,
|
|
315
|
-
"optional": false,
|
|
316
|
-
"docs": {
|
|
317
|
-
"tags": [],
|
|
318
|
-
"text": ""
|
|
319
|
-
},
|
|
320
|
-
"attribute": "headerstyle",
|
|
321
|
-
"reflect": false,
|
|
322
|
-
"defaultValue": "'common'"
|
|
323
|
-
},
|
|
324
|
-
"sourceSet": {
|
|
325
|
-
"type": "string",
|
|
326
|
-
"mutable": false,
|
|
327
|
-
"complexType": {
|
|
328
|
-
"original": "ImageSrcSet[] | string",
|
|
329
|
-
"resolved": "ImageSrcSet[] | string",
|
|
330
|
-
"references": {
|
|
331
|
-
"ImageSrcSet": {
|
|
332
|
-
"location": "local"
|
|
318
|
+
"sourceSet": {
|
|
319
|
+
"type": "string",
|
|
320
|
+
"mutable": false,
|
|
321
|
+
"complexType": {
|
|
322
|
+
"original": "ImageSrcSet[] | string",
|
|
323
|
+
"resolved": "ImageSrcSet[] | string",
|
|
324
|
+
"references": {
|
|
325
|
+
"ImageSrcSet": {
|
|
326
|
+
"location": "local",
|
|
327
|
+
"path": "/builds/julkiset-sivut/design-system-lib/src/components/link-box/link-box.tsx"
|
|
328
|
+
}
|
|
333
329
|
}
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
}
|
|
345
|
-
}
|
|
330
|
+
},
|
|
331
|
+
"required": false,
|
|
332
|
+
"optional": false,
|
|
333
|
+
"docs": {
|
|
334
|
+
"tags": [],
|
|
335
|
+
"text": ""
|
|
336
|
+
},
|
|
337
|
+
"attribute": "source-set",
|
|
338
|
+
"reflect": false
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
}
|
|
346
342
|
static get elementRef() { return "el"; }
|
|
347
|
-
static get watchers() {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
343
|
+
static get watchers() {
|
|
344
|
+
return [{
|
|
345
|
+
"propName": "sourceSet",
|
|
346
|
+
"methodName": "srcSetWatcher"
|
|
347
|
+
}];
|
|
348
|
+
}
|
|
351
349
|
}
|