@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,16 +1,37 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
2
|
import { HeadingVarians } from '../../utils/utils';
|
|
3
3
|
export class HyVideo {
|
|
4
4
|
constructor() {
|
|
5
|
-
|
|
5
|
+
this.renderPreviewWithLink = () => {
|
|
6
|
+
return this.linkToVideo ? (h("a", { title: this.videoTitle, href: this.linkToVideo, class: "hy-video__link-to-video" }, h("img", { loading: this.disableLazy ? 'eager' : 'lazy', class: "hy-video__preview-image", src: this.previewImageUrl, alt: this.videoTitle }))) : (h("img", { loading: this.disableLazy ? 'eager' : 'lazy', class: "hy-video__preview-image", src: this.previewImageUrl, alt: this.videoTitle }));
|
|
7
|
+
};
|
|
8
|
+
this.renderPlayButton = () => {
|
|
9
|
+
if (this.simplePlayButton) {
|
|
10
|
+
return (h("span", { class: "hy-video__play__simple" }, h("button", { type: "button" }, h("hy-icon", { icon: 'hy-icon-video', class: 'hy-video__play-icon', size: 20 }))));
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
return (h("span", { class: "hy-video__play" }, h("button", { type: "button" }, h("hy-icon", { icon: 'hy-icon-video', class: 'hy-video__play-icon', size: 20 }), h("span", { class: "hy-video__button-label" }, this.playButtonLabel))));
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
this.truncate = (str, n) => {
|
|
17
|
+
return str.length > n ? str.substr(0, n - 1) + '...' : str;
|
|
18
|
+
};
|
|
19
|
+
this.videoTitle = undefined;
|
|
20
|
+
this.videoDescription = undefined;
|
|
21
|
+
this.contextLabel = undefined;
|
|
6
22
|
this.contextLabelVisible = false;
|
|
7
|
-
|
|
23
|
+
this.previewImageUrl = undefined;
|
|
24
|
+
this.linkToVideo = undefined;
|
|
25
|
+
this.playButtonLabel = undefined;
|
|
8
26
|
this.playButtonVisible = false;
|
|
9
|
-
/** Series label */
|
|
10
27
|
this.seriesLabel = 'In this series';
|
|
11
|
-
/** Series count */
|
|
12
28
|
this.seriesCount = null;
|
|
13
|
-
|
|
29
|
+
this.views = undefined;
|
|
30
|
+
this.viewsLabel = undefined;
|
|
31
|
+
this.duration = undefined;
|
|
32
|
+
this.durationLabel = undefined;
|
|
33
|
+
this.dateAdded = undefined;
|
|
34
|
+
this.dateAddedLabel = undefined;
|
|
14
35
|
this.horizontal = false;
|
|
15
36
|
this.disableLazy = false;
|
|
16
37
|
this.headerstyle = 'default';
|
|
@@ -19,26 +40,6 @@ export class HyVideo {
|
|
|
19
40
|
this.simplePlayButton = false;
|
|
20
41
|
this.styleList = false;
|
|
21
42
|
this.descCollapsed = false;
|
|
22
|
-
this.renderPreviewWithLink = () => {
|
|
23
|
-
return this.linkToVideo ? (h("a", { title: this.videoTitle, href: this.linkToVideo, class: "hy-video__link-to-video" },
|
|
24
|
-
h("img", { loading: this.disableLazy ? 'eager' : 'lazy', class: "hy-video__preview-image", src: this.previewImageUrl, alt: this.videoTitle }))) : (h("img", { loading: this.disableLazy ? 'eager' : 'lazy', class: "hy-video__preview-image", src: this.previewImageUrl, alt: this.videoTitle }));
|
|
25
|
-
};
|
|
26
|
-
this.renderPlayButton = () => {
|
|
27
|
-
if (this.simplePlayButton) {
|
|
28
|
-
return (h("span", { class: "hy-video__play__simple" },
|
|
29
|
-
h("button", { type: "button" },
|
|
30
|
-
h("hy-icon", { icon: 'hy-icon-video', class: 'hy-video__play-icon', size: 20 }))));
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
return (h("span", { class: "hy-video__play" },
|
|
34
|
-
h("button", { type: "button" },
|
|
35
|
-
h("hy-icon", { icon: 'hy-icon-video', class: 'hy-video__play-icon', size: 20 }),
|
|
36
|
-
h("span", { class: "hy-video__button-label" }, this.playButtonLabel))));
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
this.truncate = (str, n) => {
|
|
40
|
-
return str.length > n ? str.substr(0, n - 1) + '...' : str;
|
|
41
|
-
};
|
|
42
43
|
}
|
|
43
44
|
componentDidLoad() {
|
|
44
45
|
let hyMainDiv = this.el.closest('.hy-main');
|
|
@@ -62,488 +63,449 @@ export class HyVideo {
|
|
|
62
63
|
const charCount = this.videoDescription ? this.videoDescription.match(/\S/g).length : 0;
|
|
63
64
|
if (this.linkToVideo && this.styleList) {
|
|
64
65
|
return [
|
|
65
|
-
h("a", { href: this.linkToVideo, class: classAttributes },
|
|
66
|
-
this.videoTitle &&
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
h("div", { class: "hy-video__meta" },
|
|
73
|
-
(this.videoTitle && this.horizontal) ||
|
|
74
|
-
(this.styleList && (h("hy-heading", { class: "hy-video__meta__title", heading: HeadingVarians.h3 }, this.videoTitle))),
|
|
75
|
-
this.contextLabelVisible && h("span", { class: "hy-video__label" }, this.contextLabel),
|
|
76
|
-
(this.duration || this.views || this.dateAdded || this.seriesCount) && (h("div", { class: "hy-video__meta__details" },
|
|
77
|
-
this.duration && (h("div", { class: "hy-video__meta__details--item" },
|
|
78
|
-
h("span", { class: "hy-video__meta__label" }, this.durationLabel),
|
|
79
|
-
h("span", { class: "hy-video__meta__content" }, this.duration))),
|
|
80
|
-
this.views && (h("div", { class: "hy-video__meta__details--item" },
|
|
81
|
-
h("span", { class: "hy-video__meta__label" }, this.viewsLabel),
|
|
82
|
-
h("span", { class: "hy-video__meta__content" }, this.views))),
|
|
83
|
-
this.dateAdded && (h("div", { class: "hy-video__meta__details--item" },
|
|
84
|
-
h("span", { class: "hy-video__meta__label" }, this.dateAddedLabel),
|
|
85
|
-
h("span", { class: "hy-video__meta__content" }, this.dateAdded))),
|
|
86
|
-
!this.views && this.seriesCount && (h("div", { class: "hy-video__meta__details--item" },
|
|
87
|
-
h("span", { class: "hy-video__meta__label" }, this.seriesLabel),
|
|
88
|
-
h("span", { class: "hy-video__meta__content" }, this.seriesCount))))),
|
|
89
|
-
this.videoDescription && (h("div", { class: "hy-video__meta__description", "aria-expanded": this.descCollapsed ? 'false' : 'true' },
|
|
90
|
-
h("div", { class: "hy-video__meta__description__content" }, this.descCollapsed ? this.truncate(this.videoDescription, 255) : this.videoDescription),
|
|
91
|
-
charCount > maxChars && (h("span", { class: "hy-video__meta__description__more-button", role: "button", tabindex: "0", "aria-expanded": this.descCollapsed ? 'false' : 'true', onClick: () => (this.descCollapsed = !this.descCollapsed), onKeyDown: (e) => {
|
|
92
|
-
if (e.key != ' ')
|
|
93
|
-
return;
|
|
94
|
-
e.preventDefault();
|
|
95
|
-
this.descCollapsed = !this.descCollapsed;
|
|
96
|
-
} }, this.descCollapsed ? this.showMoreLabel : this.showLessLabel)))))),
|
|
66
|
+
h("a", { href: this.linkToVideo, class: classAttributes }, this.videoTitle && !this.horizontal && !this.styleList && (h("hy-heading", { class: "hy-video__meta__title", heading: HeadingVarians.h2 }, this.videoTitle)), h("div", { class: "hy-video__video-container" }, this.previewImageUrl ? (h("div", null, this.renderPreviewWithLink(), h("slot", { name: "video" }))) : (h("slot", { name: "video" })), this.playButtonVisible && this.renderPlayButton()), h("div", { class: "hy-video__meta" }, (this.videoTitle && this.horizontal) ||
|
|
67
|
+
(this.styleList && (h("hy-heading", { class: "hy-video__meta__title", heading: HeadingVarians.h3 }, this.videoTitle))), this.contextLabelVisible && h("span", { class: "hy-video__label" }, this.contextLabel), (this.duration || this.views || this.dateAdded || this.seriesCount) && (h("div", { class: "hy-video__meta__details" }, this.duration && (h("div", { class: "hy-video__meta__details--item" }, h("span", { class: "hy-video__meta__label" }, this.durationLabel), h("span", { class: "hy-video__meta__content" }, this.duration))), this.views && (h("div", { class: "hy-video__meta__details--item" }, h("span", { class: "hy-video__meta__label" }, this.viewsLabel), h("span", { class: "hy-video__meta__content" }, this.views))), this.dateAdded && (h("div", { class: "hy-video__meta__details--item" }, h("span", { class: "hy-video__meta__label" }, this.dateAddedLabel), h("span", { class: "hy-video__meta__content" }, this.dateAdded))), !this.views && this.seriesCount && (h("div", { class: "hy-video__meta__details--item" }, h("span", { class: "hy-video__meta__label" }, this.seriesLabel), h("span", { class: "hy-video__meta__content" }, this.seriesCount))))), this.videoDescription && (h("div", { class: "hy-video__meta__description", "aria-expanded": this.descCollapsed ? 'false' : 'true' }, h("div", { class: "hy-video__meta__description__content" }, this.descCollapsed ? this.truncate(this.videoDescription, 255) : this.videoDescription), charCount > maxChars && (h("span", { class: "hy-video__meta__description__more-button", role: "button", tabindex: "0", "aria-expanded": this.descCollapsed ? 'false' : 'true', onClick: () => (this.descCollapsed = !this.descCollapsed), onKeyDown: (e) => {
|
|
68
|
+
if (e.key != ' ')
|
|
69
|
+
return;
|
|
70
|
+
e.preventDefault();
|
|
71
|
+
this.descCollapsed = !this.descCollapsed;
|
|
72
|
+
} }, this.descCollapsed ? this.showMoreLabel : this.showLessLabel)))))),
|
|
97
73
|
];
|
|
98
74
|
}
|
|
99
75
|
else {
|
|
100
76
|
return [
|
|
101
|
-
h("div", { class: classAttributes },
|
|
102
|
-
this.videoTitle &&
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
h("div", { class: "hy-video__meta" },
|
|
109
|
-
(this.videoTitle && this.horizontal) ||
|
|
110
|
-
(this.styleList && (h("hy-heading", { class: "hy-video__meta__title", heading: HeadingVarians.h2 }, this.videoTitle))),
|
|
111
|
-
this.contextLabelVisible && h("span", { class: "hy-video__label" }, this.contextLabel),
|
|
112
|
-
(this.duration || this.views || this.dateAdded) && (h("div", { class: "hy-video__meta__details" },
|
|
113
|
-
this.duration && (h("div", { class: "hy-video__meta__details--item" },
|
|
114
|
-
h("span", { class: "hy-video__meta__label" }, this.durationLabel),
|
|
115
|
-
h("span", { class: "hy-video__meta__content" }, this.duration))),
|
|
116
|
-
this.views && (h("div", { class: "hy-video__meta__details--item" },
|
|
117
|
-
h("span", { class: "hy-video__meta__label" }, this.viewsLabel),
|
|
118
|
-
h("span", { class: "hy-video__meta__content" }, this.views))),
|
|
119
|
-
this.dateAdded && (h("div", { class: "hy-video__meta__details--item" },
|
|
120
|
-
h("span", { class: "hy-video__meta__label" }, this.dateAddedLabel),
|
|
121
|
-
h("span", { class: "hy-video__meta__content" }, this.dateAdded))))),
|
|
122
|
-
this.videoDescription && (h("div", { class: "hy-video__meta__description", "aria-expanded": this.descCollapsed ? 'false' : 'true' },
|
|
123
|
-
h("div", { class: "hy-video__meta__description__content" }, this.descCollapsed ? this.truncate(this.videoDescription, 255) : this.videoDescription),
|
|
124
|
-
charCount > maxChars && (h("span", { class: "hy-video__meta__description__more-button", role: "button", tabindex: "0", "aria-expanded": this.descCollapsed ? 'false' : 'true', onClick: () => (this.descCollapsed = !this.descCollapsed), onKeyDown: (e) => {
|
|
125
|
-
if (e.key != ' ')
|
|
126
|
-
return;
|
|
127
|
-
e.preventDefault();
|
|
128
|
-
this.descCollapsed = !this.descCollapsed;
|
|
129
|
-
} }, this.descCollapsed ? this.showMoreLabel : this.showLessLabel)))))),
|
|
77
|
+
h("div", { class: classAttributes }, this.videoTitle && !this.horizontal && !this.styleList && (h("hy-heading", { class: "hy-video__meta__title", heading: HeadingVarians.h2 }, this.videoTitle)), h("div", { class: "hy-video__video-container" }, this.previewImageUrl ? (h("div", null, this.renderPreviewWithLink(), h("slot", { name: "video" }))) : (h("slot", { name: "video" })), this.playButtonVisible && this.renderPlayButton()), h("div", { class: "hy-video__meta" }, (this.videoTitle && this.horizontal) ||
|
|
78
|
+
(this.styleList && (h("hy-heading", { class: "hy-video__meta__title", heading: HeadingVarians.h2 }, this.videoTitle))), this.contextLabelVisible && h("span", { class: "hy-video__label" }, this.contextLabel), (this.duration || this.views || this.dateAdded) && (h("div", { class: "hy-video__meta__details" }, this.duration && (h("div", { class: "hy-video__meta__details--item" }, h("span", { class: "hy-video__meta__label" }, this.durationLabel), h("span", { class: "hy-video__meta__content" }, this.duration))), this.views && (h("div", { class: "hy-video__meta__details--item" }, h("span", { class: "hy-video__meta__label" }, this.viewsLabel), h("span", { class: "hy-video__meta__content" }, this.views))), this.dateAdded && (h("div", { class: "hy-video__meta__details--item" }, h("span", { class: "hy-video__meta__label" }, this.dateAddedLabel), h("span", { class: "hy-video__meta__content" }, this.dateAdded))))), this.videoDescription && (h("div", { class: "hy-video__meta__description", "aria-expanded": this.descCollapsed ? 'false' : 'true' }, h("div", { class: "hy-video__meta__description__content" }, this.descCollapsed ? this.truncate(this.videoDescription, 255) : this.videoDescription), charCount > maxChars && (h("span", { class: "hy-video__meta__description__more-button", role: "button", tabindex: "0", "aria-expanded": this.descCollapsed ? 'false' : 'true', onClick: () => (this.descCollapsed = !this.descCollapsed), onKeyDown: (e) => {
|
|
79
|
+
if (e.key != ' ')
|
|
80
|
+
return;
|
|
81
|
+
e.preventDefault();
|
|
82
|
+
this.descCollapsed = !this.descCollapsed;
|
|
83
|
+
} }, this.descCollapsed ? this.showMoreLabel : this.showLessLabel)))))),
|
|
130
84
|
h("hy-box", { mb: "1.75, 1.75, 2, 2.5" }),
|
|
131
85
|
];
|
|
132
86
|
}
|
|
133
87
|
}
|
|
134
88
|
static get is() { return "hy-video"; }
|
|
135
|
-
static get originalStyleUrls() {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
"
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
"
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
"
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
"
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
"
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
"
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
"
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
"
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
"
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
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
|
-
|
|
484
|
-
|
|
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
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
89
|
+
static get originalStyleUrls() {
|
|
90
|
+
return {
|
|
91
|
+
"$": ["hy-video.scss"]
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
static get styleUrls() {
|
|
95
|
+
return {
|
|
96
|
+
"$": ["hy-video.css"]
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
static get properties() {
|
|
100
|
+
return {
|
|
101
|
+
"videoTitle": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"mutable": false,
|
|
104
|
+
"complexType": {
|
|
105
|
+
"original": "string",
|
|
106
|
+
"resolved": "string",
|
|
107
|
+
"references": {}
|
|
108
|
+
},
|
|
109
|
+
"required": false,
|
|
110
|
+
"optional": false,
|
|
111
|
+
"docs": {
|
|
112
|
+
"tags": [],
|
|
113
|
+
"text": "Video title"
|
|
114
|
+
},
|
|
115
|
+
"attribute": "video-title",
|
|
116
|
+
"reflect": false
|
|
117
|
+
},
|
|
118
|
+
"videoDescription": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"mutable": false,
|
|
121
|
+
"complexType": {
|
|
122
|
+
"original": "string",
|
|
123
|
+
"resolved": "string",
|
|
124
|
+
"references": {}
|
|
125
|
+
},
|
|
126
|
+
"required": false,
|
|
127
|
+
"optional": false,
|
|
128
|
+
"docs": {
|
|
129
|
+
"tags": [],
|
|
130
|
+
"text": "Video description"
|
|
131
|
+
},
|
|
132
|
+
"attribute": "video-description",
|
|
133
|
+
"reflect": false
|
|
134
|
+
},
|
|
135
|
+
"contextLabel": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"mutable": false,
|
|
138
|
+
"complexType": {
|
|
139
|
+
"original": "string",
|
|
140
|
+
"resolved": "string",
|
|
141
|
+
"references": {}
|
|
142
|
+
},
|
|
143
|
+
"required": false,
|
|
144
|
+
"optional": false,
|
|
145
|
+
"docs": {
|
|
146
|
+
"tags": [],
|
|
147
|
+
"text": "Context label"
|
|
148
|
+
},
|
|
149
|
+
"attribute": "context-label",
|
|
150
|
+
"reflect": false
|
|
151
|
+
},
|
|
152
|
+
"contextLabelVisible": {
|
|
153
|
+
"type": "boolean",
|
|
154
|
+
"mutable": false,
|
|
155
|
+
"complexType": {
|
|
156
|
+
"original": "boolean",
|
|
157
|
+
"resolved": "boolean",
|
|
158
|
+
"references": {}
|
|
159
|
+
},
|
|
160
|
+
"required": false,
|
|
161
|
+
"optional": false,
|
|
162
|
+
"docs": {
|
|
163
|
+
"tags": [],
|
|
164
|
+
"text": "Should context label be visible"
|
|
165
|
+
},
|
|
166
|
+
"attribute": "context-label-visible",
|
|
167
|
+
"reflect": false,
|
|
168
|
+
"defaultValue": "false"
|
|
169
|
+
},
|
|
170
|
+
"previewImageUrl": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"mutable": false,
|
|
173
|
+
"complexType": {
|
|
174
|
+
"original": "string",
|
|
175
|
+
"resolved": "string",
|
|
176
|
+
"references": {}
|
|
177
|
+
},
|
|
178
|
+
"required": false,
|
|
179
|
+
"optional": false,
|
|
180
|
+
"docs": {
|
|
181
|
+
"tags": [],
|
|
182
|
+
"text": "Preview image url"
|
|
183
|
+
},
|
|
184
|
+
"attribute": "preview-image-url",
|
|
185
|
+
"reflect": false
|
|
186
|
+
},
|
|
187
|
+
"linkToVideo": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"mutable": false,
|
|
190
|
+
"complexType": {
|
|
191
|
+
"original": "string",
|
|
192
|
+
"resolved": "string",
|
|
193
|
+
"references": {}
|
|
194
|
+
},
|
|
195
|
+
"required": false,
|
|
196
|
+
"optional": false,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [],
|
|
199
|
+
"text": "Url to video, used with preview image"
|
|
200
|
+
},
|
|
201
|
+
"attribute": "link-to-video",
|
|
202
|
+
"reflect": false
|
|
203
|
+
},
|
|
204
|
+
"playButtonLabel": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"mutable": false,
|
|
207
|
+
"complexType": {
|
|
208
|
+
"original": "string",
|
|
209
|
+
"resolved": "string",
|
|
210
|
+
"references": {}
|
|
211
|
+
},
|
|
212
|
+
"required": false,
|
|
213
|
+
"optional": false,
|
|
214
|
+
"docs": {
|
|
215
|
+
"tags": [],
|
|
216
|
+
"text": "Label for play button if preview image is provided"
|
|
217
|
+
},
|
|
218
|
+
"attribute": "play-button-label",
|
|
219
|
+
"reflect": false
|
|
220
|
+
},
|
|
221
|
+
"playButtonVisible": {
|
|
222
|
+
"type": "boolean",
|
|
223
|
+
"mutable": false,
|
|
224
|
+
"complexType": {
|
|
225
|
+
"original": "boolean",
|
|
226
|
+
"resolved": "boolean",
|
|
227
|
+
"references": {}
|
|
228
|
+
},
|
|
229
|
+
"required": false,
|
|
230
|
+
"optional": false,
|
|
231
|
+
"docs": {
|
|
232
|
+
"tags": [],
|
|
233
|
+
"text": "Should play button be visible"
|
|
234
|
+
},
|
|
235
|
+
"attribute": "play-button-visible",
|
|
236
|
+
"reflect": false,
|
|
237
|
+
"defaultValue": "false"
|
|
238
|
+
},
|
|
239
|
+
"seriesLabel": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"mutable": false,
|
|
242
|
+
"complexType": {
|
|
243
|
+
"original": "string",
|
|
244
|
+
"resolved": "string",
|
|
245
|
+
"references": {}
|
|
246
|
+
},
|
|
247
|
+
"required": false,
|
|
248
|
+
"optional": false,
|
|
249
|
+
"docs": {
|
|
250
|
+
"tags": [],
|
|
251
|
+
"text": "Series label"
|
|
252
|
+
},
|
|
253
|
+
"attribute": "series-label",
|
|
254
|
+
"reflect": false,
|
|
255
|
+
"defaultValue": "'In this series'"
|
|
256
|
+
},
|
|
257
|
+
"seriesCount": {
|
|
258
|
+
"type": "string",
|
|
259
|
+
"mutable": false,
|
|
260
|
+
"complexType": {
|
|
261
|
+
"original": "string",
|
|
262
|
+
"resolved": "string",
|
|
263
|
+
"references": {}
|
|
264
|
+
},
|
|
265
|
+
"required": false,
|
|
266
|
+
"optional": false,
|
|
267
|
+
"docs": {
|
|
268
|
+
"tags": [],
|
|
269
|
+
"text": "Series count"
|
|
270
|
+
},
|
|
271
|
+
"attribute": "series-count",
|
|
272
|
+
"reflect": false,
|
|
273
|
+
"defaultValue": "null"
|
|
274
|
+
},
|
|
275
|
+
"views": {
|
|
276
|
+
"type": "string",
|
|
277
|
+
"mutable": false,
|
|
278
|
+
"complexType": {
|
|
279
|
+
"original": "string",
|
|
280
|
+
"resolved": "string",
|
|
281
|
+
"references": {}
|
|
282
|
+
},
|
|
283
|
+
"required": false,
|
|
284
|
+
"optional": false,
|
|
285
|
+
"docs": {
|
|
286
|
+
"tags": [],
|
|
287
|
+
"text": "Views count number"
|
|
288
|
+
},
|
|
289
|
+
"attribute": "views",
|
|
290
|
+
"reflect": false
|
|
291
|
+
},
|
|
292
|
+
"viewsLabel": {
|
|
293
|
+
"type": "string",
|
|
294
|
+
"mutable": false,
|
|
295
|
+
"complexType": {
|
|
296
|
+
"original": "string",
|
|
297
|
+
"resolved": "string",
|
|
298
|
+
"references": {}
|
|
299
|
+
},
|
|
300
|
+
"required": false,
|
|
301
|
+
"optional": false,
|
|
302
|
+
"docs": {
|
|
303
|
+
"tags": [],
|
|
304
|
+
"text": "Label for views number"
|
|
305
|
+
},
|
|
306
|
+
"attribute": "views-label",
|
|
307
|
+
"reflect": false
|
|
308
|
+
},
|
|
309
|
+
"duration": {
|
|
310
|
+
"type": "string",
|
|
311
|
+
"mutable": false,
|
|
312
|
+
"complexType": {
|
|
313
|
+
"original": "string",
|
|
314
|
+
"resolved": "string",
|
|
315
|
+
"references": {}
|
|
316
|
+
},
|
|
317
|
+
"required": false,
|
|
318
|
+
"optional": false,
|
|
319
|
+
"docs": {
|
|
320
|
+
"tags": [],
|
|
321
|
+
"text": "Duration number"
|
|
322
|
+
},
|
|
323
|
+
"attribute": "duration",
|
|
324
|
+
"reflect": false
|
|
325
|
+
},
|
|
326
|
+
"durationLabel": {
|
|
327
|
+
"type": "string",
|
|
328
|
+
"mutable": false,
|
|
329
|
+
"complexType": {
|
|
330
|
+
"original": "string",
|
|
331
|
+
"resolved": "string",
|
|
332
|
+
"references": {}
|
|
333
|
+
},
|
|
334
|
+
"required": false,
|
|
335
|
+
"optional": false,
|
|
336
|
+
"docs": {
|
|
337
|
+
"tags": [],
|
|
338
|
+
"text": "Label for duration number"
|
|
339
|
+
},
|
|
340
|
+
"attribute": "duration-label",
|
|
341
|
+
"reflect": false
|
|
342
|
+
},
|
|
343
|
+
"dateAdded": {
|
|
344
|
+
"type": "string",
|
|
345
|
+
"mutable": false,
|
|
346
|
+
"complexType": {
|
|
347
|
+
"original": "string",
|
|
348
|
+
"resolved": "string",
|
|
349
|
+
"references": {}
|
|
350
|
+
},
|
|
351
|
+
"required": false,
|
|
352
|
+
"optional": false,
|
|
353
|
+
"docs": {
|
|
354
|
+
"tags": [],
|
|
355
|
+
"text": "Date added date as string"
|
|
356
|
+
},
|
|
357
|
+
"attribute": "date-added",
|
|
358
|
+
"reflect": false
|
|
359
|
+
},
|
|
360
|
+
"dateAddedLabel": {
|
|
361
|
+
"type": "string",
|
|
362
|
+
"mutable": false,
|
|
363
|
+
"complexType": {
|
|
364
|
+
"original": "string",
|
|
365
|
+
"resolved": "string",
|
|
366
|
+
"references": {}
|
|
367
|
+
},
|
|
368
|
+
"required": false,
|
|
369
|
+
"optional": false,
|
|
370
|
+
"docs": {
|
|
371
|
+
"tags": [],
|
|
372
|
+
"text": "Label for date added"
|
|
373
|
+
},
|
|
374
|
+
"attribute": "date-added-label",
|
|
375
|
+
"reflect": false
|
|
376
|
+
},
|
|
377
|
+
"horizontal": {
|
|
378
|
+
"type": "boolean",
|
|
379
|
+
"mutable": false,
|
|
380
|
+
"complexType": {
|
|
381
|
+
"original": "boolean",
|
|
382
|
+
"resolved": "boolean",
|
|
383
|
+
"references": {}
|
|
384
|
+
},
|
|
385
|
+
"required": false,
|
|
386
|
+
"optional": false,
|
|
387
|
+
"docs": {
|
|
388
|
+
"tags": [],
|
|
389
|
+
"text": "Use horizontal layout where metadata is on side"
|
|
390
|
+
},
|
|
391
|
+
"attribute": "horizontal",
|
|
392
|
+
"reflect": false,
|
|
393
|
+
"defaultValue": "false"
|
|
394
|
+
},
|
|
395
|
+
"disableLazy": {
|
|
396
|
+
"type": "boolean",
|
|
397
|
+
"mutable": false,
|
|
398
|
+
"complexType": {
|
|
399
|
+
"original": "boolean",
|
|
400
|
+
"resolved": "boolean",
|
|
401
|
+
"references": {}
|
|
402
|
+
},
|
|
403
|
+
"required": false,
|
|
404
|
+
"optional": false,
|
|
405
|
+
"docs": {
|
|
406
|
+
"tags": [],
|
|
407
|
+
"text": ""
|
|
408
|
+
},
|
|
409
|
+
"attribute": "disable-lazy",
|
|
410
|
+
"reflect": false,
|
|
411
|
+
"defaultValue": "false"
|
|
412
|
+
},
|
|
413
|
+
"headerstyle": {
|
|
414
|
+
"type": "string",
|
|
415
|
+
"mutable": false,
|
|
416
|
+
"complexType": {
|
|
417
|
+
"original": "string",
|
|
418
|
+
"resolved": "string",
|
|
419
|
+
"references": {}
|
|
420
|
+
},
|
|
421
|
+
"required": false,
|
|
422
|
+
"optional": false,
|
|
423
|
+
"docs": {
|
|
424
|
+
"tags": [],
|
|
425
|
+
"text": ""
|
|
426
|
+
},
|
|
427
|
+
"attribute": "headerstyle",
|
|
428
|
+
"reflect": false,
|
|
429
|
+
"defaultValue": "'default'"
|
|
430
|
+
},
|
|
431
|
+
"showMoreLabel": {
|
|
432
|
+
"type": "string",
|
|
433
|
+
"mutable": false,
|
|
434
|
+
"complexType": {
|
|
435
|
+
"original": "string",
|
|
436
|
+
"resolved": "string",
|
|
437
|
+
"references": {}
|
|
438
|
+
},
|
|
439
|
+
"required": false,
|
|
440
|
+
"optional": false,
|
|
441
|
+
"docs": {
|
|
442
|
+
"tags": [],
|
|
443
|
+
"text": ""
|
|
444
|
+
},
|
|
445
|
+
"attribute": "show-more-label",
|
|
446
|
+
"reflect": false,
|
|
447
|
+
"defaultValue": "'Show more'"
|
|
448
|
+
},
|
|
449
|
+
"showLessLabel": {
|
|
450
|
+
"type": "string",
|
|
451
|
+
"mutable": false,
|
|
452
|
+
"complexType": {
|
|
453
|
+
"original": "string",
|
|
454
|
+
"resolved": "string",
|
|
455
|
+
"references": {}
|
|
456
|
+
},
|
|
457
|
+
"required": false,
|
|
458
|
+
"optional": false,
|
|
459
|
+
"docs": {
|
|
460
|
+
"tags": [],
|
|
461
|
+
"text": ""
|
|
462
|
+
},
|
|
463
|
+
"attribute": "show-less-label",
|
|
464
|
+
"reflect": false,
|
|
465
|
+
"defaultValue": "'Show less'"
|
|
466
|
+
},
|
|
467
|
+
"simplePlayButton": {
|
|
468
|
+
"type": "boolean",
|
|
469
|
+
"mutable": false,
|
|
470
|
+
"complexType": {
|
|
471
|
+
"original": "boolean",
|
|
472
|
+
"resolved": "boolean",
|
|
473
|
+
"references": {}
|
|
474
|
+
},
|
|
475
|
+
"required": false,
|
|
476
|
+
"optional": false,
|
|
477
|
+
"docs": {
|
|
478
|
+
"tags": [],
|
|
479
|
+
"text": ""
|
|
480
|
+
},
|
|
481
|
+
"attribute": "simple-play-button",
|
|
482
|
+
"reflect": false,
|
|
483
|
+
"defaultValue": "false"
|
|
484
|
+
},
|
|
485
|
+
"styleList": {
|
|
486
|
+
"type": "boolean",
|
|
487
|
+
"mutable": false,
|
|
488
|
+
"complexType": {
|
|
489
|
+
"original": "boolean",
|
|
490
|
+
"resolved": "boolean",
|
|
491
|
+
"references": {}
|
|
492
|
+
},
|
|
493
|
+
"required": false,
|
|
494
|
+
"optional": false,
|
|
495
|
+
"docs": {
|
|
496
|
+
"tags": [],
|
|
497
|
+
"text": ""
|
|
498
|
+
},
|
|
499
|
+
"attribute": "style-list",
|
|
500
|
+
"reflect": false,
|
|
501
|
+
"defaultValue": "false"
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
static get states() {
|
|
506
|
+
return {
|
|
507
|
+
"descCollapsed": {}
|
|
508
|
+
};
|
|
509
|
+
}
|
|
548
510
|
static get elementRef() { return "el"; }
|
|
549
511
|
}
|