@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 { ListItemVariants } from '../../utils/utils';
|
|
3
3
|
let keys = {
|
|
4
4
|
enter: 'Enter',
|
|
@@ -8,10 +8,22 @@ export class HyListItem {
|
|
|
8
8
|
constructor() {
|
|
9
9
|
this.isExpandedRelatedContent = false;
|
|
10
10
|
this.variant = ListItemVariants.default;
|
|
11
|
+
this.itemType = undefined;
|
|
12
|
+
this.itemTitle = undefined;
|
|
13
|
+
this.itemDescription = undefined;
|
|
14
|
+
this.url = undefined;
|
|
11
15
|
this.isExternal = false;
|
|
16
|
+
this.scLabel = undefined;
|
|
17
|
+
this.itemImageUrl = undefined;
|
|
18
|
+
this.itemImageAlt = undefined;
|
|
12
19
|
this.disableLazy = false;
|
|
20
|
+
this.relatedLinksBlockTitle = undefined;
|
|
21
|
+
this.relatedLinks = undefined;
|
|
22
|
+
this.imageLabel = undefined;
|
|
13
23
|
this.outGoingUrlLabel = 'Go to programme page';
|
|
24
|
+
this.additionalInfo = undefined;
|
|
14
25
|
this.headerstyle = 'common';
|
|
26
|
+
this.sourceSet = undefined;
|
|
15
27
|
this.truncateDescription = false;
|
|
16
28
|
this.truncateLimit = 140;
|
|
17
29
|
this._imageMinHeight = 0;
|
|
@@ -153,21 +165,9 @@ export class HyListItem {
|
|
|
153
165
|
`hy-list-item__${this.variant}__info-container__outgoing-link`,
|
|
154
166
|
`hy-list-item__${this.variant}__info-container__outgoing-link__${this.headerstyle}`,
|
|
155
167
|
].join(' ');
|
|
156
|
-
return (h("article", null,
|
|
157
|
-
|
|
158
|
-
h("div", { class:
|
|
159
|
-
h("div", { class: classInfoContainerHeader },
|
|
160
|
-
h("div", { class: "icon" },
|
|
161
|
-
h("hy-icon", { icon: 'hy-icon-units-and-faculties', size: 18 })),
|
|
162
|
-
this.itemType),
|
|
163
|
-
h("div", { class: classInfoContainerTitle }, this.itemTitle),
|
|
164
|
-
this.itemDescription && (h("div", { class: classInfoContainerDescription, innerHTML: this.truncateDescription
|
|
165
|
-
? truncate(this.itemDescription, this.truncateLimit)
|
|
166
|
-
: this.itemDescription }))),
|
|
167
|
-
h("div", { class: classInfoContainerOutgoingLink },
|
|
168
|
-
h("span", { class: "icon" },
|
|
169
|
-
h("hy-icon", { icon: 'hy-icon-done', size: 14 })),
|
|
170
|
-
h("span", { class: "label" }, this.outGoingUrlLabel)))));
|
|
168
|
+
return (h("article", null, h("a", { class: classAttributes, href: this.url, target: target, "aria-label": this.scLabel }, h("div", { class: classInfoContainerAttributes }, h("div", { class: classInfoContainerHeader }, h("div", { class: "icon" }, h("hy-icon", { icon: 'hy-icon-units-and-faculties', size: 18 })), this.itemType), h("div", { class: classInfoContainerTitle }, this.itemTitle), this.itemDescription && (h("div", { class: classInfoContainerDescription, innerHTML: this.truncateDescription
|
|
169
|
+
? truncate(this.itemDescription, this.truncateLimit)
|
|
170
|
+
: this.itemDescription }))), h("div", { class: classInfoContainerOutgoingLink }, h("span", { class: "icon" }, h("hy-icon", { icon: 'hy-icon-done', size: 14 })), h("span", { class: "label" }, this.outGoingUrlLabel)))));
|
|
171
171
|
}
|
|
172
172
|
case ListItemVariants.degreeProgramme: {
|
|
173
173
|
const classImageContainerAttributes = [`hy-list-item__${this.variant}__image-container`].join(' ');
|
|
@@ -207,451 +207,428 @@ export class HyListItem {
|
|
|
207
207
|
const accordionItemHref = '#' + titleAsId + '--title';
|
|
208
208
|
const relatedLinksCount = this.relatedLinksBlockTitle && this.relatedLinksBlockTitle.length > 0 ? this._relatedLinks.length : '';
|
|
209
209
|
return [
|
|
210
|
-
h("article", { class: classWrapperAttributes },
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
h("div", { class: classMetadataWrapper },
|
|
228
|
-
this._additionalInfo && (h("div", { class: classInfoContainerAdditionalInfoAttributes }, this._additionalInfo.map((x) => {
|
|
229
|
-
let classInfoContainerAdditionalInfoItem = [
|
|
230
|
-
`hy-list-item__${this.variant}__info-container__additional-info__item`,
|
|
231
|
-
`hy-list-item__${this.variant}__info-container__additional-info__item__${this.headerstyle}`,
|
|
232
|
-
`${x.isActive.toString() == 'true' ? 'active' : ''}`,
|
|
233
|
-
].join(' ');
|
|
234
|
-
return h("div", { class: classInfoContainerAdditionalInfoItem }, x.text);
|
|
235
|
-
}))),
|
|
236
|
-
h("div", { class: classInfoContainerOutgoingLink },
|
|
237
|
-
h("a", { href: this.url, target: target, "aria-label": this.scLabel, class: classInfoContainerOutgoingLinkUrl, tabindex: "-1" },
|
|
238
|
-
h("span", { class: "label" }, this.outGoingUrlLabel),
|
|
239
|
-
h("span", { class: "icon-wrapper" },
|
|
240
|
-
h("div", { class: "icon" },
|
|
241
|
-
h("hy-icon", { icon: 'hy-icon-arrow-to-right', size: 32 })))))))),
|
|
242
|
-
this.relatedLinksBlockTitle && (h("div", { class: classRelatedInfoContainer },
|
|
243
|
-
h("div", { class: classRelatedInfoHeading },
|
|
244
|
-
h("a", { href: accordionItemHref, class: classRelatedInfoHeadingLink, tabindex: "-1" },
|
|
245
|
-
h("button", { "aria-expanded": "false", "aria-controls": `${titleAsId}--content`, class: classRelatedInfoHeadingButton, id: `${titleAsId}--title` },
|
|
246
|
-
h("span", { class: classRelatedInfoHeadingIcon },
|
|
247
|
-
h("hy-icon", { icon: 'hy-icon-caret-down', size: 14 })),
|
|
248
|
-
this.relatedLinksBlockTitle,
|
|
249
|
-
" (",
|
|
250
|
-
relatedLinksCount,
|
|
251
|
-
")"))),
|
|
252
|
-
h("div", { class: classRelatedInfoContent, "aria-labelledBy": `${titleAsId}--title`, id: `${titleAsId}--content`, role: "region", "aria-hidden": "true" }, this._relatedLinks.map((x) => {
|
|
253
|
-
let relatedLinkTarget = x.isExternal ? '_blank' : '_self';
|
|
254
|
-
return (h("a", { class: classRelatedInfoLink, href: x.url, target: target, "aria-label": relatedLinkTarget }, x.label));
|
|
255
|
-
}))))),
|
|
210
|
+
h("article", { class: classWrapperAttributes }, h("a", { class: classAttributes, href: this.url, target: target, "aria-label": this.scLabel }, h("div", { class: classImageContainerAttributes }, h("div", { class: classImageContainerImage }, this._sourceSet ? (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.itemImageUrl, alt: this.itemImageAlt, style: {
|
|
211
|
+
'--minheight': `${this._imageMinHeight}px`,
|
|
212
|
+
'--minwidth': `${this._imageMinWidth}px`,
|
|
213
|
+
} }))) : (h("img", { loading: this.disableLazy ? 'eager' : 'lazy', "aria-hidden": "true", src: this.itemImageUrl, alt: this.itemImageAlt, style: {
|
|
214
|
+
'--minheight': `${this._imageMinHeight}px`,
|
|
215
|
+
'--minwidth': `${this._imageMinWidth}px`,
|
|
216
|
+
} }))), this.imageLabel && h("span", null, this.imageLabel)), h("div", { class: classInfoContainerAttributes }, h("div", { class: classContentWrapper }, h("div", { class: classInfoContainerTitle }, this.itemTitle), this.itemDescription && (h("div", { class: classInfoContainerDescription, innerHTML: this.itemDescription }))), h("div", { class: classMetadataWrapper }, this._additionalInfo && (h("div", { class: classInfoContainerAdditionalInfoAttributes }, this._additionalInfo.map((x) => {
|
|
217
|
+
let classInfoContainerAdditionalInfoItem = [
|
|
218
|
+
`hy-list-item__${this.variant}__info-container__additional-info__item`,
|
|
219
|
+
`hy-list-item__${this.variant}__info-container__additional-info__item__${this.headerstyle}`,
|
|
220
|
+
`${x.isActive.toString() == 'true' ? 'active' : ''}`,
|
|
221
|
+
].join(' ');
|
|
222
|
+
return h("div", { class: classInfoContainerAdditionalInfoItem }, x.text);
|
|
223
|
+
}))), h("div", { class: classInfoContainerOutgoingLink }, h("a", { href: this.url, target: target, "aria-label": this.scLabel, class: classInfoContainerOutgoingLinkUrl, tabindex: "-1" }, h("span", { class: "label" }, this.outGoingUrlLabel), h("span", { class: "icon-wrapper" }, h("div", { class: "icon" }, h("hy-icon", { icon: 'hy-icon-arrow-to-right', size: 32 })))))))), this.relatedLinksBlockTitle && (h("div", { class: classRelatedInfoContainer }, h("div", { class: classRelatedInfoHeading }, h("a", { href: accordionItemHref, class: classRelatedInfoHeadingLink, tabindex: "-1" }, h("button", { "aria-expanded": "false", "aria-controls": `${titleAsId}--content`, class: classRelatedInfoHeadingButton, id: `${titleAsId}--title` }, h("span", { class: classRelatedInfoHeadingIcon }, h("hy-icon", { icon: 'hy-icon-caret-down', size: 14 })), this.relatedLinksBlockTitle, " (", relatedLinksCount, ")"))), h("div", { class: classRelatedInfoContent, "aria-labelledBy": `${titleAsId}--title`, id: `${titleAsId}--content`, role: "region", "aria-hidden": "true" }, this._relatedLinks.map((x) => {
|
|
224
|
+
let relatedLinkTarget = x.isExternal ? '_blank' : '_self';
|
|
225
|
+
return (h("a", { class: classRelatedInfoLink, href: x.url, target: target, "aria-label": relatedLinkTarget }, x.label));
|
|
226
|
+
}))))),
|
|
256
227
|
];
|
|
257
228
|
}
|
|
258
229
|
default: {
|
|
259
|
-
return (h("article", null,
|
|
260
|
-
h("a", { class: classAttributes, href: this.url, target: target, "aria-label": this.scLabel },
|
|
261
|
-
h("div", { class: classInfoContainerAttributes },
|
|
262
|
-
h("div", { class: classInfoContainerHeader }, this.itemType),
|
|
263
|
-
h("div", { class: classInfoContainerTitle }, this.itemTitle),
|
|
264
|
-
h("div", { class: classInfoContainerLinkContainer },
|
|
265
|
-
h("span", { class: classInfoContainerLinkIcon },
|
|
266
|
-
h("hy-icon", { icon: 'hy-icon-link', size: 15 })),
|
|
267
|
-
h("div", { class: classInfoContainerLink }, this.url)),
|
|
268
|
-
this.itemDescription && (h("div", { class: classInfoContainerDescription, innerHTML: this.itemDescription }))))));
|
|
230
|
+
return (h("article", null, h("a", { class: classAttributes, href: this.url, target: target, "aria-label": this.scLabel }, h("div", { class: classInfoContainerAttributes }, h("div", { class: classInfoContainerHeader }, this.itemType), h("div", { class: classInfoContainerTitle }, this.itemTitle), h("div", { class: classInfoContainerLinkContainer }, h("span", { class: classInfoContainerLinkIcon }, h("hy-icon", { icon: 'hy-icon-link', size: 15 })), h("div", { class: classInfoContainerLink }, this.url)), this.itemDescription && (h("div", { class: classInfoContainerDescription, innerHTML: this.itemDescription }))))));
|
|
269
231
|
}
|
|
270
232
|
}
|
|
271
233
|
}
|
|
272
234
|
static get is() { return "hy-list-item"; }
|
|
273
|
-
static get originalStyleUrls() {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
"
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
235
|
+
static get originalStyleUrls() {
|
|
236
|
+
return {
|
|
237
|
+
"$": ["hy-list-item.scss"]
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
static get styleUrls() {
|
|
241
|
+
return {
|
|
242
|
+
"$": ["hy-list-item.css"]
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
static get properties() {
|
|
246
|
+
return {
|
|
247
|
+
"variant": {
|
|
248
|
+
"type": "string",
|
|
249
|
+
"mutable": false,
|
|
250
|
+
"complexType": {
|
|
251
|
+
"original": "ListItemVariants",
|
|
252
|
+
"resolved": "ListItemVariants.default | ListItemVariants.degreeProgramme | ListItemVariants.position",
|
|
253
|
+
"references": {
|
|
254
|
+
"ListItemVariants": {
|
|
255
|
+
"location": "import",
|
|
256
|
+
"path": "../../utils/utils"
|
|
257
|
+
}
|
|
290
258
|
}
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
259
|
+
},
|
|
260
|
+
"required": false,
|
|
261
|
+
"optional": false,
|
|
262
|
+
"docs": {
|
|
263
|
+
"tags": [],
|
|
264
|
+
"text": ""
|
|
265
|
+
},
|
|
266
|
+
"attribute": "variant",
|
|
267
|
+
"reflect": false,
|
|
268
|
+
"defaultValue": "ListItemVariants.default"
|
|
269
|
+
},
|
|
270
|
+
"itemType": {
|
|
271
|
+
"type": "string",
|
|
272
|
+
"mutable": false,
|
|
273
|
+
"complexType": {
|
|
274
|
+
"original": "string",
|
|
275
|
+
"resolved": "string",
|
|
276
|
+
"references": {}
|
|
277
|
+
},
|
|
278
|
+
"required": false,
|
|
279
|
+
"optional": true,
|
|
280
|
+
"docs": {
|
|
281
|
+
"tags": [],
|
|
282
|
+
"text": ""
|
|
283
|
+
},
|
|
284
|
+
"attribute": "item-type",
|
|
285
|
+
"reflect": false
|
|
286
|
+
},
|
|
287
|
+
"itemTitle": {
|
|
288
|
+
"type": "string",
|
|
289
|
+
"mutable": false,
|
|
290
|
+
"complexType": {
|
|
291
|
+
"original": "string",
|
|
292
|
+
"resolved": "string",
|
|
293
|
+
"references": {}
|
|
294
|
+
},
|
|
295
|
+
"required": false,
|
|
296
|
+
"optional": true,
|
|
297
|
+
"docs": {
|
|
298
|
+
"tags": [],
|
|
299
|
+
"text": ""
|
|
300
|
+
},
|
|
301
|
+
"attribute": "item-title",
|
|
302
|
+
"reflect": false
|
|
303
|
+
},
|
|
304
|
+
"itemDescription": {
|
|
305
|
+
"type": "any",
|
|
306
|
+
"mutable": false,
|
|
307
|
+
"complexType": {
|
|
308
|
+
"original": "any",
|
|
309
|
+
"resolved": "any",
|
|
310
|
+
"references": {}
|
|
311
|
+
},
|
|
312
|
+
"required": false,
|
|
313
|
+
"optional": true,
|
|
314
|
+
"docs": {
|
|
315
|
+
"tags": [],
|
|
316
|
+
"text": ""
|
|
317
|
+
},
|
|
318
|
+
"attribute": "item-description",
|
|
319
|
+
"reflect": false
|
|
320
|
+
},
|
|
321
|
+
"url": {
|
|
322
|
+
"type": "string",
|
|
323
|
+
"mutable": false,
|
|
324
|
+
"complexType": {
|
|
325
|
+
"original": "string",
|
|
326
|
+
"resolved": "string",
|
|
327
|
+
"references": {}
|
|
328
|
+
},
|
|
329
|
+
"required": false,
|
|
330
|
+
"optional": true,
|
|
331
|
+
"docs": {
|
|
332
|
+
"tags": [],
|
|
333
|
+
"text": ""
|
|
334
|
+
},
|
|
335
|
+
"attribute": "url",
|
|
336
|
+
"reflect": false
|
|
337
|
+
},
|
|
338
|
+
"isExternal": {
|
|
339
|
+
"type": "boolean",
|
|
340
|
+
"mutable": false,
|
|
341
|
+
"complexType": {
|
|
342
|
+
"original": "boolean",
|
|
343
|
+
"resolved": "boolean",
|
|
344
|
+
"references": {}
|
|
345
|
+
},
|
|
346
|
+
"required": false,
|
|
347
|
+
"optional": false,
|
|
348
|
+
"docs": {
|
|
349
|
+
"tags": [],
|
|
350
|
+
"text": ""
|
|
351
|
+
},
|
|
352
|
+
"attribute": "is-external",
|
|
353
|
+
"reflect": false,
|
|
354
|
+
"defaultValue": "false"
|
|
355
|
+
},
|
|
356
|
+
"scLabel": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"mutable": false,
|
|
359
|
+
"complexType": {
|
|
360
|
+
"original": "string",
|
|
361
|
+
"resolved": "string",
|
|
362
|
+
"references": {}
|
|
363
|
+
},
|
|
364
|
+
"required": false,
|
|
365
|
+
"optional": true,
|
|
366
|
+
"docs": {
|
|
367
|
+
"tags": [],
|
|
368
|
+
"text": ""
|
|
369
|
+
},
|
|
370
|
+
"attribute": "sc-label",
|
|
371
|
+
"reflect": false
|
|
372
|
+
},
|
|
373
|
+
"itemImageUrl": {
|
|
374
|
+
"type": "string",
|
|
375
|
+
"mutable": false,
|
|
376
|
+
"complexType": {
|
|
377
|
+
"original": "string",
|
|
378
|
+
"resolved": "string",
|
|
379
|
+
"references": {}
|
|
380
|
+
},
|
|
381
|
+
"required": false,
|
|
382
|
+
"optional": true,
|
|
383
|
+
"docs": {
|
|
384
|
+
"tags": [],
|
|
385
|
+
"text": ""
|
|
386
|
+
},
|
|
387
|
+
"attribute": "item-image-url",
|
|
388
|
+
"reflect": false
|
|
389
|
+
},
|
|
390
|
+
"itemImageAlt": {
|
|
391
|
+
"type": "string",
|
|
392
|
+
"mutable": false,
|
|
393
|
+
"complexType": {
|
|
394
|
+
"original": "string",
|
|
395
|
+
"resolved": "string",
|
|
396
|
+
"references": {}
|
|
397
|
+
},
|
|
398
|
+
"required": false,
|
|
399
|
+
"optional": true,
|
|
400
|
+
"docs": {
|
|
401
|
+
"tags": [],
|
|
402
|
+
"text": ""
|
|
403
|
+
},
|
|
404
|
+
"attribute": "item-image-alt",
|
|
405
|
+
"reflect": false
|
|
406
|
+
},
|
|
407
|
+
"disableLazy": {
|
|
408
|
+
"type": "boolean",
|
|
409
|
+
"mutable": false,
|
|
410
|
+
"complexType": {
|
|
411
|
+
"original": "boolean",
|
|
412
|
+
"resolved": "boolean",
|
|
413
|
+
"references": {}
|
|
414
|
+
},
|
|
415
|
+
"required": false,
|
|
416
|
+
"optional": false,
|
|
417
|
+
"docs": {
|
|
418
|
+
"tags": [],
|
|
419
|
+
"text": ""
|
|
420
|
+
},
|
|
421
|
+
"attribute": "disable-lazy",
|
|
422
|
+
"reflect": false,
|
|
423
|
+
"defaultValue": "false"
|
|
424
|
+
},
|
|
425
|
+
"relatedLinksBlockTitle": {
|
|
426
|
+
"type": "string",
|
|
427
|
+
"mutable": false,
|
|
428
|
+
"complexType": {
|
|
429
|
+
"original": "string",
|
|
430
|
+
"resolved": "string",
|
|
431
|
+
"references": {}
|
|
432
|
+
},
|
|
433
|
+
"required": false,
|
|
434
|
+
"optional": true,
|
|
435
|
+
"docs": {
|
|
436
|
+
"tags": [],
|
|
437
|
+
"text": ""
|
|
438
|
+
},
|
|
439
|
+
"attribute": "related-links-block-title",
|
|
440
|
+
"reflect": false
|
|
441
|
+
},
|
|
442
|
+
"relatedLinks": {
|
|
443
|
+
"type": "string",
|
|
444
|
+
"mutable": false,
|
|
445
|
+
"complexType": {
|
|
446
|
+
"original": "RelatedLink[] | string",
|
|
447
|
+
"resolved": "RelatedLink[] | string",
|
|
448
|
+
"references": {
|
|
449
|
+
"RelatedLink": {
|
|
450
|
+
"location": "local",
|
|
451
|
+
"path": "/builds/julkiset-sivut/design-system-lib/src/components/hy-list-item/hy-list-item.tsx"
|
|
452
|
+
}
|
|
484
453
|
}
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
454
|
+
},
|
|
455
|
+
"required": false,
|
|
456
|
+
"optional": true,
|
|
457
|
+
"docs": {
|
|
458
|
+
"tags": [],
|
|
459
|
+
"text": ""
|
|
460
|
+
},
|
|
461
|
+
"attribute": "related-links",
|
|
462
|
+
"reflect": false
|
|
463
|
+
},
|
|
464
|
+
"imageLabel": {
|
|
465
|
+
"type": "string",
|
|
466
|
+
"mutable": false,
|
|
467
|
+
"complexType": {
|
|
468
|
+
"original": "string",
|
|
469
|
+
"resolved": "string",
|
|
470
|
+
"references": {}
|
|
471
|
+
},
|
|
472
|
+
"required": false,
|
|
473
|
+
"optional": true,
|
|
474
|
+
"docs": {
|
|
475
|
+
"tags": [],
|
|
476
|
+
"text": ""
|
|
477
|
+
},
|
|
478
|
+
"attribute": "image-label",
|
|
479
|
+
"reflect": false
|
|
480
|
+
},
|
|
481
|
+
"outGoingUrlLabel": {
|
|
482
|
+
"type": "string",
|
|
483
|
+
"mutable": false,
|
|
484
|
+
"complexType": {
|
|
485
|
+
"original": "string",
|
|
486
|
+
"resolved": "string",
|
|
487
|
+
"references": {}
|
|
488
|
+
},
|
|
489
|
+
"required": false,
|
|
490
|
+
"optional": true,
|
|
491
|
+
"docs": {
|
|
492
|
+
"tags": [],
|
|
493
|
+
"text": ""
|
|
494
|
+
},
|
|
495
|
+
"attribute": "out-going-url-label",
|
|
496
|
+
"reflect": false,
|
|
497
|
+
"defaultValue": "'Go to programme page'"
|
|
498
|
+
},
|
|
499
|
+
"additionalInfo": {
|
|
500
|
+
"type": "string",
|
|
501
|
+
"mutable": false,
|
|
502
|
+
"complexType": {
|
|
503
|
+
"original": "AdditionalInfo[] | string",
|
|
504
|
+
"resolved": "AdditionalInfo[] | string",
|
|
505
|
+
"references": {
|
|
506
|
+
"AdditionalInfo": {
|
|
507
|
+
"location": "local",
|
|
508
|
+
"path": "/builds/julkiset-sivut/design-system-lib/src/components/hy-list-item/hy-list-item.tsx"
|
|
509
|
+
}
|
|
540
510
|
}
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
511
|
+
},
|
|
512
|
+
"required": false,
|
|
513
|
+
"optional": true,
|
|
514
|
+
"docs": {
|
|
515
|
+
"tags": [],
|
|
516
|
+
"text": ""
|
|
517
|
+
},
|
|
518
|
+
"attribute": "additional-info",
|
|
519
|
+
"reflect": false
|
|
520
|
+
},
|
|
521
|
+
"headerstyle": {
|
|
522
|
+
"type": "string",
|
|
523
|
+
"mutable": false,
|
|
524
|
+
"complexType": {
|
|
525
|
+
"original": "string",
|
|
526
|
+
"resolved": "string",
|
|
527
|
+
"references": {}
|
|
528
|
+
},
|
|
529
|
+
"required": false,
|
|
530
|
+
"optional": false,
|
|
531
|
+
"docs": {
|
|
532
|
+
"tags": [],
|
|
533
|
+
"text": ""
|
|
534
|
+
},
|
|
535
|
+
"attribute": "headerstyle",
|
|
536
|
+
"reflect": false,
|
|
537
|
+
"defaultValue": "'common'"
|
|
538
|
+
},
|
|
539
|
+
"sourceSet": {
|
|
540
|
+
"type": "string",
|
|
541
|
+
"mutable": false,
|
|
542
|
+
"complexType": {
|
|
543
|
+
"original": "ImageSrcSet[] | string",
|
|
544
|
+
"resolved": "ImageSrcSet[] | string",
|
|
545
|
+
"references": {
|
|
546
|
+
"ImageSrcSet": {
|
|
547
|
+
"location": "local",
|
|
548
|
+
"path": "/builds/julkiset-sivut/design-system-lib/src/components/hy-list-item/hy-list-item.tsx"
|
|
549
|
+
}
|
|
579
550
|
}
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
static get states() {
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
551
|
+
},
|
|
552
|
+
"required": false,
|
|
553
|
+
"optional": false,
|
|
554
|
+
"docs": {
|
|
555
|
+
"tags": [],
|
|
556
|
+
"text": ""
|
|
557
|
+
},
|
|
558
|
+
"attribute": "source-set",
|
|
559
|
+
"reflect": false
|
|
560
|
+
},
|
|
561
|
+
"truncateDescription": {
|
|
562
|
+
"type": "boolean",
|
|
563
|
+
"mutable": false,
|
|
564
|
+
"complexType": {
|
|
565
|
+
"original": "boolean",
|
|
566
|
+
"resolved": "boolean",
|
|
567
|
+
"references": {}
|
|
568
|
+
},
|
|
569
|
+
"required": false,
|
|
570
|
+
"optional": false,
|
|
571
|
+
"docs": {
|
|
572
|
+
"tags": [],
|
|
573
|
+
"text": ""
|
|
574
|
+
},
|
|
575
|
+
"attribute": "truncate-description",
|
|
576
|
+
"reflect": false,
|
|
577
|
+
"defaultValue": "false"
|
|
578
|
+
},
|
|
579
|
+
"truncateLimit": {
|
|
580
|
+
"type": "number",
|
|
581
|
+
"mutable": false,
|
|
582
|
+
"complexType": {
|
|
583
|
+
"original": "number",
|
|
584
|
+
"resolved": "number",
|
|
585
|
+
"references": {}
|
|
586
|
+
},
|
|
587
|
+
"required": false,
|
|
588
|
+
"optional": false,
|
|
589
|
+
"docs": {
|
|
590
|
+
"tags": [],
|
|
591
|
+
"text": ""
|
|
592
|
+
},
|
|
593
|
+
"attribute": "truncate-limit",
|
|
594
|
+
"reflect": false,
|
|
595
|
+
"defaultValue": "140"
|
|
596
|
+
}
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
static get states() {
|
|
600
|
+
return {
|
|
601
|
+
"isExpandedRelatedContent": {},
|
|
602
|
+
"_imageMinHeight": {},
|
|
603
|
+
"_imageMinWidth": {}
|
|
604
|
+
};
|
|
605
|
+
}
|
|
633
606
|
static get elementRef() { return "el"; }
|
|
634
|
-
static get watchers() {
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
607
|
+
static get watchers() {
|
|
608
|
+
return [{
|
|
609
|
+
"propName": "relatedLinks",
|
|
610
|
+
"methodName": "relatedLinksWatcher"
|
|
611
|
+
}, {
|
|
612
|
+
"propName": "additionalInfo",
|
|
613
|
+
"methodName": "additionalInfoWatcher"
|
|
614
|
+
}, {
|
|
615
|
+
"propName": "sourceSet",
|
|
616
|
+
"methodName": "srcSetWatcher"
|
|
617
|
+
}];
|
|
618
|
+
}
|
|
619
|
+
static get listeners() {
|
|
620
|
+
return [{
|
|
621
|
+
"name": "keydown",
|
|
622
|
+
"method": "handleKeyDown",
|
|
623
|
+
"target": undefined,
|
|
624
|
+
"capture": false,
|
|
625
|
+
"passive": false
|
|
626
|
+
}, {
|
|
627
|
+
"name": "click",
|
|
628
|
+
"method": "handleClick",
|
|
629
|
+
"target": undefined,
|
|
630
|
+
"capture": false,
|
|
631
|
+
"passive": false
|
|
632
|
+
}];
|
|
633
|
+
}
|
|
657
634
|
}
|