@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
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface ImageSrcSet {
|
|
2
|
+
src: any;
|
|
3
|
+
media: string;
|
|
4
|
+
type: string;
|
|
5
|
+
sizes: string | null;
|
|
6
|
+
}
|
|
7
|
+
export interface CarouselItem {
|
|
8
|
+
title: string;
|
|
9
|
+
desc: string;
|
|
10
|
+
theme_text: string;
|
|
11
|
+
image_alt: string;
|
|
12
|
+
image_fallback: string;
|
|
13
|
+
image_sources: ImageSrcSet[] | string;
|
|
14
|
+
uri?: string;
|
|
15
|
+
uri_title: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class HyHeroCarousel {
|
|
18
|
+
itemCount: number;
|
|
19
|
+
ariaLabelNext: string;
|
|
20
|
+
ariaLabelPrev: string;
|
|
21
|
+
ariaLabelFirstSlide: string;
|
|
22
|
+
ariaLabelLastSlide: string;
|
|
23
|
+
ariaLabelBulletMessage: string;
|
|
24
|
+
data: CarouselItem[] | string;
|
|
25
|
+
private _data;
|
|
26
|
+
componentWillLoad(): Promise<void>;
|
|
27
|
+
componentDidLoad(): void;
|
|
28
|
+
handleSlideChangeFromButtons(index: any): void;
|
|
29
|
+
render(): any;
|
|
30
|
+
}
|
|
@@ -16,6 +16,7 @@ import { FooterBaseLinks, FooterBaseSome } from "./components/footer/hy-footer-b
|
|
|
16
16
|
import { FooterInfoLinks, LuomusFooterContent } from "./components/footer/hy-footer-info/hy-footer-info";
|
|
17
17
|
import { ListItemValue } from "./components/hy-general-list/hy-general-list";
|
|
18
18
|
import { ImageSrcSet as ImageSrcSet1 } from "./components/hy-hero/hy-hero";
|
|
19
|
+
import { CarouselItem } from "./components/hy-hero-carousel/hy-hero-carousel";
|
|
19
20
|
import { ImageSrcSet as ImageSrcSet2 } from "./components/image/image";
|
|
20
21
|
import { ImageSrcSet as ImageSrcSet3 } from "./components/hy-introduction/hy-introduction";
|
|
21
22
|
import { KeyFigureValue } from "./components/hy-key-figure-group/hy-key-figure-group";
|
|
@@ -35,6 +36,37 @@ import { ProcessFlowBoxValue } from "./components/process/process";
|
|
|
35
36
|
import { ImageSrcSet as ImageSrcSet6 } from "./components/hy-prominent-image/hy-prominent-image";
|
|
36
37
|
import { ShortcutLinkValue } from "./components/hy-shortcuts/hy-shortcuts";
|
|
37
38
|
import { DesktopLinks } from "./components/site-header/site-header";
|
|
39
|
+
export { AccordionVariants, BreadcrumbVariants, ButtonVariants, CheckboxVariants, ColorVariant, CourseStateVariants, CourseVariants, CtaLinkButtonVariants, CtaLinkVariants, FooterLinkItemColor, FooterLinkVariants, FooterVariant, GeneralListTypes, GridAlignVariants, GridColumns, GridColumnsLg, GridColumnsSm, HeadingSectionVariants, HeadingVarians, HeroColorVariant, HeroGroupTypeVariant, HeroSizeVariant, HeroTypeVariant, IntroductionBgColors, KeyHighlightVariants, LinkBoxVariants, LinkVariants, ListItemVariants, MenuType, PaginationItemVariants, PersonCardVariants, ProcessFlowBoxStepStates, ProcessFlowBoxVariants, SiteLogoSize } from "./utils/utils";
|
|
40
|
+
export { ImageSrcSet } from "./components/adjacent-image-text/adjacent-image-text";
|
|
41
|
+
export { AnchorItem } from "./components/hy-anchor-link-list/hy-anchor-link-list";
|
|
42
|
+
export { Breadcrumb } from "./components/hy-breadcrumbs/hy-breadcrumbs";
|
|
43
|
+
export { TagValue } from "./components/courses/hy-content-list-item/hy-content-list-item";
|
|
44
|
+
export { IDropdownItem } from "./components/hy-dropdown/hy-dropdown";
|
|
45
|
+
export { IFilterGroupFilter } from "./components/hy-filter-group/hy-filter-group";
|
|
46
|
+
export { FooterBaseLinks, FooterBaseSome } from "./components/footer/hy-footer-base/hy-footer-base";
|
|
47
|
+
export { FooterInfoLinks, LuomusFooterContent } from "./components/footer/hy-footer-info/hy-footer-info";
|
|
48
|
+
export { ListItemValue } from "./components/hy-general-list/hy-general-list";
|
|
49
|
+
export { ImageSrcSet as ImageSrcSet1 } from "./components/hy-hero/hy-hero";
|
|
50
|
+
export { CarouselItem } from "./components/hy-hero-carousel/hy-hero-carousel";
|
|
51
|
+
export { ImageSrcSet as ImageSrcSet2 } from "./components/image/image";
|
|
52
|
+
export { ImageSrcSet as ImageSrcSet3 } from "./components/hy-introduction/hy-introduction";
|
|
53
|
+
export { KeyFigureValue } from "./components/hy-key-figure-group/hy-key-figure-group";
|
|
54
|
+
export { KeyHighlightValue } from "./components/hy-key-highlight-group/hy-key-highlight-group";
|
|
55
|
+
export { ProcessFlowValue } from "./components/hy-large-process-flow/hy-large-process-flow";
|
|
56
|
+
export { PhaseValue } from "./components/hy-large-process-flow-phase/hy-large-process-flow-phase";
|
|
57
|
+
export { ImageSrcSet as ImageSrcSet4 } from "./components/link-box/link-box";
|
|
58
|
+
export { LinkBox } from "./components/link-box-list/link-box-list";
|
|
59
|
+
export { CtaLinkValue } from "./components/hy-link-list/hy-link-list";
|
|
60
|
+
export { AdditionalInfo, ImageSrcSet as ImageSrcSet5, RelatedLink } from "./components/hy-list-item/hy-list-item";
|
|
61
|
+
export { MenuLanguage } from "./components/navigation/menu-language/menu-language";
|
|
62
|
+
export { ComponentLabels } from "./components/site-header/site-header";
|
|
63
|
+
export { DonateLink, MainMenu } from "./components/navigation/hy-menu-main-group/hy-menu-main-group";
|
|
64
|
+
export { items } from "./components/hy-opening-hours-content/hy-opening-hours-content";
|
|
65
|
+
export { personProfileListingItems } from "./components/person-profile/person-profile-listing/person-profile.listing";
|
|
66
|
+
export { ProcessFlowBoxValue } from "./components/process/process";
|
|
67
|
+
export { ImageSrcSet as ImageSrcSet6 } from "./components/hy-prominent-image/hy-prominent-image";
|
|
68
|
+
export { ShortcutLinkValue } from "./components/hy-shortcuts/hy-shortcuts";
|
|
69
|
+
export { DesktopLinks } from "./components/site-header/site-header";
|
|
38
70
|
export namespace Components {
|
|
39
71
|
interface ColorBox {
|
|
40
72
|
}
|
|
@@ -517,10 +549,19 @@ export namespace Components {
|
|
|
517
549
|
"isExternal": boolean;
|
|
518
550
|
"scLabel"?: string;
|
|
519
551
|
"sizeVariant": HeroSizeVariant;
|
|
520
|
-
"sourceSet":
|
|
552
|
+
"sourceSet": ImageSrcSet1[] | string;
|
|
521
553
|
"url": string;
|
|
522
554
|
"urlTitle": string;
|
|
523
555
|
}
|
|
556
|
+
interface HyHeroCarousel {
|
|
557
|
+
"ariaLabelBulletMessage": string;
|
|
558
|
+
"ariaLabelFirstSlide": string;
|
|
559
|
+
"ariaLabelLastSlide": string;
|
|
560
|
+
"ariaLabelNext": string;
|
|
561
|
+
"ariaLabelPrev": string;
|
|
562
|
+
"data": CarouselItem[] | string;
|
|
563
|
+
"itemCount": number;
|
|
564
|
+
}
|
|
524
565
|
interface HyIcon {
|
|
525
566
|
"fill": string;
|
|
526
567
|
"icon": string;
|
|
@@ -533,7 +574,7 @@ export namespace Components {
|
|
|
533
574
|
"disableLazy": boolean;
|
|
534
575
|
"imageAlt": string;
|
|
535
576
|
"imageUrl": string;
|
|
536
|
-
"sourceSet":
|
|
577
|
+
"sourceSet": ImageSrcSet2[] | string;
|
|
537
578
|
}
|
|
538
579
|
interface HyIngress {
|
|
539
580
|
"headerstyle": string;
|
|
@@ -546,7 +587,7 @@ export namespace Components {
|
|
|
546
587
|
"limitContentWidth": boolean;
|
|
547
588
|
"reversed": boolean;
|
|
548
589
|
"scLabel"?: string;
|
|
549
|
-
"sourceSet":
|
|
590
|
+
"sourceSet": ImageSrcSet3[] | string;
|
|
550
591
|
"textDescription": string;
|
|
551
592
|
"textTitle"?: string;
|
|
552
593
|
"url"?: string;
|
|
@@ -595,7 +636,7 @@ export namespace Components {
|
|
|
595
636
|
"readMoreLabel": string;
|
|
596
637
|
"scLabel"?: string;
|
|
597
638
|
"showLogo": boolean;
|
|
598
|
-
"sourceSet":
|
|
639
|
+
"sourceSet": ImageSrcSet4[] | string;
|
|
599
640
|
"textDescription": string;
|
|
600
641
|
"textTitle"?: string;
|
|
601
642
|
"url"?: string;
|
|
@@ -630,7 +671,7 @@ export namespace Components {
|
|
|
630
671
|
"relatedLinks"?: RelatedLink[] | string;
|
|
631
672
|
"relatedLinksBlockTitle"?: string;
|
|
632
673
|
"scLabel"?: string;
|
|
633
|
-
"sourceSet":
|
|
674
|
+
"sourceSet": ImageSrcSet5[] | string;
|
|
634
675
|
"truncateDescription": boolean;
|
|
635
676
|
"truncateLimit": number;
|
|
636
677
|
"url"?: string;
|
|
@@ -767,7 +808,7 @@ export namespace Components {
|
|
|
767
808
|
"headerstyle": string;
|
|
768
809
|
"imageAlt": string;
|
|
769
810
|
"imageUrl"?: string;
|
|
770
|
-
"sourceSet":
|
|
811
|
+
"sourceSet": ImageSrcSet6[] | string;
|
|
771
812
|
"textTitle"?: string;
|
|
772
813
|
}
|
|
773
814
|
interface HyQuote {
|
|
@@ -957,6 +998,22 @@ export namespace Components {
|
|
|
957
998
|
"viewsLabel": string;
|
|
958
999
|
}
|
|
959
1000
|
}
|
|
1001
|
+
export interface HyMenuLanguageCustomEvent<T> extends CustomEvent<T> {
|
|
1002
|
+
detail: T;
|
|
1003
|
+
target: HTMLHyMenuLanguageElement;
|
|
1004
|
+
}
|
|
1005
|
+
export interface HyMenuMainGroupCustomEvent<T> extends CustomEvent<T> {
|
|
1006
|
+
detail: T;
|
|
1007
|
+
target: HTMLHyMenuMainGroupElement;
|
|
1008
|
+
}
|
|
1009
|
+
export interface HySiteHeaderCustomEvent<T> extends CustomEvent<T> {
|
|
1010
|
+
detail: T;
|
|
1011
|
+
target: HTMLHySiteHeaderElement;
|
|
1012
|
+
}
|
|
1013
|
+
export interface HySiteSearchCustomEvent<T> extends CustomEvent<T> {
|
|
1014
|
+
detail: T;
|
|
1015
|
+
target: HTMLHySiteSearchElement;
|
|
1016
|
+
}
|
|
960
1017
|
declare global {
|
|
961
1018
|
interface HTMLColorBoxElement extends Components.ColorBox, HTMLStencilElement {
|
|
962
1019
|
}
|
|
@@ -1216,6 +1273,12 @@ declare global {
|
|
|
1216
1273
|
prototype: HTMLHyHeroElement;
|
|
1217
1274
|
new (): HTMLHyHeroElement;
|
|
1218
1275
|
};
|
|
1276
|
+
interface HTMLHyHeroCarouselElement extends Components.HyHeroCarousel, HTMLStencilElement {
|
|
1277
|
+
}
|
|
1278
|
+
var HTMLHyHeroCarouselElement: {
|
|
1279
|
+
prototype: HTMLHyHeroCarouselElement;
|
|
1280
|
+
new (): HTMLHyHeroCarouselElement;
|
|
1281
|
+
};
|
|
1219
1282
|
interface HTMLHyIconElement extends Components.HyIcon, HTMLStencilElement {
|
|
1220
1283
|
}
|
|
1221
1284
|
var HTMLHyIconElement: {
|
|
@@ -1560,6 +1623,7 @@ declare global {
|
|
|
1560
1623
|
"hy-grid-row": HTMLHyGridRowElement;
|
|
1561
1624
|
"hy-heading": HTMLHyHeadingElement;
|
|
1562
1625
|
"hy-hero": HTMLHyHeroElement;
|
|
1626
|
+
"hy-hero-carousel": HTMLHyHeroCarouselElement;
|
|
1563
1627
|
"hy-icon": HTMLHyIconElement;
|
|
1564
1628
|
"hy-image": HTMLHyImageElement;
|
|
1565
1629
|
"hy-ingress": HTMLHyIngressElement;
|
|
@@ -2094,10 +2158,19 @@ declare namespace LocalJSX {
|
|
|
2094
2158
|
"isExternal"?: boolean;
|
|
2095
2159
|
"scLabel"?: string;
|
|
2096
2160
|
"sizeVariant"?: HeroSizeVariant;
|
|
2097
|
-
"sourceSet"?:
|
|
2161
|
+
"sourceSet"?: ImageSrcSet1[] | string;
|
|
2098
2162
|
"url"?: string;
|
|
2099
2163
|
"urlTitle"?: string;
|
|
2100
2164
|
}
|
|
2165
|
+
interface HyHeroCarousel {
|
|
2166
|
+
"ariaLabelBulletMessage"?: string;
|
|
2167
|
+
"ariaLabelFirstSlide"?: string;
|
|
2168
|
+
"ariaLabelLastSlide"?: string;
|
|
2169
|
+
"ariaLabelNext"?: string;
|
|
2170
|
+
"ariaLabelPrev"?: string;
|
|
2171
|
+
"data"?: CarouselItem[] | string;
|
|
2172
|
+
"itemCount"?: number;
|
|
2173
|
+
}
|
|
2101
2174
|
interface HyIcon {
|
|
2102
2175
|
"fill"?: string;
|
|
2103
2176
|
"icon"?: string;
|
|
@@ -2110,7 +2183,7 @@ declare namespace LocalJSX {
|
|
|
2110
2183
|
"disableLazy"?: boolean;
|
|
2111
2184
|
"imageAlt"?: string;
|
|
2112
2185
|
"imageUrl"?: string;
|
|
2113
|
-
"sourceSet"?:
|
|
2186
|
+
"sourceSet"?: ImageSrcSet2[] | string;
|
|
2114
2187
|
}
|
|
2115
2188
|
interface HyIngress {
|
|
2116
2189
|
"headerstyle"?: string;
|
|
@@ -2123,7 +2196,7 @@ declare namespace LocalJSX {
|
|
|
2123
2196
|
"limitContentWidth"?: boolean;
|
|
2124
2197
|
"reversed"?: boolean;
|
|
2125
2198
|
"scLabel"?: string;
|
|
2126
|
-
"sourceSet"?:
|
|
2199
|
+
"sourceSet"?: ImageSrcSet3[] | string;
|
|
2127
2200
|
"textDescription"?: string;
|
|
2128
2201
|
"textTitle"?: string;
|
|
2129
2202
|
"url"?: string;
|
|
@@ -2172,7 +2245,7 @@ declare namespace LocalJSX {
|
|
|
2172
2245
|
"readMoreLabel"?: string;
|
|
2173
2246
|
"scLabel"?: string;
|
|
2174
2247
|
"showLogo"?: boolean;
|
|
2175
|
-
"sourceSet"?:
|
|
2248
|
+
"sourceSet"?: ImageSrcSet4[] | string;
|
|
2176
2249
|
"textDescription"?: string;
|
|
2177
2250
|
"textTitle"?: string;
|
|
2178
2251
|
"url"?: string;
|
|
@@ -2207,7 +2280,7 @@ declare namespace LocalJSX {
|
|
|
2207
2280
|
"relatedLinks"?: RelatedLink[] | string;
|
|
2208
2281
|
"relatedLinksBlockTitle"?: string;
|
|
2209
2282
|
"scLabel"?: string;
|
|
2210
|
-
"sourceSet"?:
|
|
2283
|
+
"sourceSet"?: ImageSrcSet5[] | string;
|
|
2211
2284
|
"truncateDescription"?: boolean;
|
|
2212
2285
|
"truncateLimit"?: number;
|
|
2213
2286
|
"url"?: string;
|
|
@@ -2230,7 +2303,7 @@ declare namespace LocalJSX {
|
|
|
2230
2303
|
"dataMenuLanguage"?: MenuLanguage[] | string;
|
|
2231
2304
|
"isGroup"?: boolean;
|
|
2232
2305
|
"labels"?: ComponentLabels[] | string;
|
|
2233
|
-
"onMenuLanguageToggled"?: (event:
|
|
2306
|
+
"onMenuLanguageToggled"?: (event: HyMenuLanguageCustomEvent<any>) => void;
|
|
2234
2307
|
}
|
|
2235
2308
|
interface HyMenuLanguageItem {
|
|
2236
2309
|
"abbr"?: string;
|
|
@@ -2248,8 +2321,8 @@ declare namespace LocalJSX {
|
|
|
2248
2321
|
"logoUrl"?: string;
|
|
2249
2322
|
"menuLabel"?: string;
|
|
2250
2323
|
"menuLabelClose"?: string;
|
|
2251
|
-
"onMobileMenuTopToggle"?: (event:
|
|
2252
|
-
"onUniversityMainMenuToggled"?: (event:
|
|
2324
|
+
"onMobileMenuTopToggle"?: (event: HyMenuMainGroupCustomEvent<any>) => void;
|
|
2325
|
+
"onUniversityMainMenuToggled"?: (event: HyMenuMainGroupCustomEvent<any>) => void;
|
|
2253
2326
|
"siteLabel"?: string;
|
|
2254
2327
|
"siteUrl"?: string;
|
|
2255
2328
|
}
|
|
@@ -2347,7 +2420,7 @@ declare namespace LocalJSX {
|
|
|
2347
2420
|
"headerstyle"?: string;
|
|
2348
2421
|
"imageAlt"?: string;
|
|
2349
2422
|
"imageUrl"?: string;
|
|
2350
|
-
"sourceSet"?:
|
|
2423
|
+
"sourceSet"?: ImageSrcSet6[] | string;
|
|
2351
2424
|
"textTitle"?: string;
|
|
2352
2425
|
}
|
|
2353
2426
|
interface HyQuote {
|
|
@@ -2404,10 +2477,10 @@ declare namespace LocalJSX {
|
|
|
2404
2477
|
"menuLabelOpen"?: string;
|
|
2405
2478
|
"menuType"?: MenuType;
|
|
2406
2479
|
"noSearch"?: boolean;
|
|
2407
|
-
"onHeaderScrollDown"?: (event:
|
|
2408
|
-
"onHeaderScrollUp"?: (event:
|
|
2409
|
-
"onMenuMobileToggled"?: (event:
|
|
2410
|
-
"onMenuMobileTopToggled"?: (event:
|
|
2480
|
+
"onHeaderScrollDown"?: (event: HySiteHeaderCustomEvent<any>) => void;
|
|
2481
|
+
"onHeaderScrollUp"?: (event: HySiteHeaderCustomEvent<any>) => void;
|
|
2482
|
+
"onMenuMobileToggled"?: (event: HySiteHeaderCustomEvent<any>) => void;
|
|
2483
|
+
"onMenuMobileTopToggled"?: (event: HySiteHeaderCustomEvent<any>) => void;
|
|
2411
2484
|
"researchGroupLabel"?: string;
|
|
2412
2485
|
"showSearchLabel"?: boolean;
|
|
2413
2486
|
"siteLabel"?: string;
|
|
@@ -2430,7 +2503,7 @@ declare namespace LocalJSX {
|
|
|
2430
2503
|
"isGroup"?: boolean;
|
|
2431
2504
|
"isLuomusGroup"?: boolean;
|
|
2432
2505
|
"labels"?: ComponentLabels[] | string;
|
|
2433
|
-
"onSearchPanelToggled"?: (event:
|
|
2506
|
+
"onSearchPanelToggled"?: (event: HySiteSearchCustomEvent<any>) => void;
|
|
2434
2507
|
"searchLabels"?: string;
|
|
2435
2508
|
"searchLanguage"?: string;
|
|
2436
2509
|
"searchTools"?: string;
|
|
@@ -2585,6 +2658,7 @@ declare namespace LocalJSX {
|
|
|
2585
2658
|
"hy-grid-row": HyGridRow;
|
|
2586
2659
|
"hy-heading": HyHeading;
|
|
2587
2660
|
"hy-hero": HyHero;
|
|
2661
|
+
"hy-hero-carousel": HyHeroCarousel;
|
|
2588
2662
|
"hy-icon": HyIcon;
|
|
2589
2663
|
"hy-image": HyImage;
|
|
2590
2664
|
"hy-ingress": HyIngress;
|
|
@@ -2684,6 +2758,7 @@ declare module "@stencil/core" {
|
|
|
2684
2758
|
"hy-grid-row": LocalJSX.HyGridRow & JSXBase.HTMLAttributes<HTMLHyGridRowElement>;
|
|
2685
2759
|
"hy-heading": LocalJSX.HyHeading & JSXBase.HTMLAttributes<HTMLHyHeadingElement>;
|
|
2686
2760
|
"hy-hero": LocalJSX.HyHero & JSXBase.HTMLAttributes<HTMLHyHeroElement>;
|
|
2761
|
+
"hy-hero-carousel": LocalJSX.HyHeroCarousel & JSXBase.HTMLAttributes<HTMLHyHeroCarouselElement>;
|
|
2687
2762
|
"hy-icon": LocalJSX.HyIcon & JSXBase.HTMLAttributes<HTMLHyIconElement>;
|
|
2688
2763
|
"hy-image": LocalJSX.HyImage & JSXBase.HTMLAttributes<HTMLHyImageElement>;
|
|
2689
2764
|
"hy-ingress": LocalJSX.HyIngress & JSXBase.HTMLAttributes<HTMLHyIngressElement>;
|
|
@@ -133,7 +133,7 @@ export interface ListenOptions {
|
|
|
133
133
|
*/
|
|
134
134
|
passive?: boolean;
|
|
135
135
|
}
|
|
136
|
-
export
|
|
136
|
+
export type ListenTargetOptions = 'body' | 'document' | 'window';
|
|
137
137
|
export interface StateDecorator {
|
|
138
138
|
(): PropertyDecorator;
|
|
139
139
|
}
|
|
@@ -214,14 +214,16 @@ export declare const State: StateDecorator;
|
|
|
214
214
|
* https://stenciljs.com/docs/reactive-data#watch-decorator
|
|
215
215
|
*/
|
|
216
216
|
export declare const Watch: WatchDecorator;
|
|
217
|
-
export
|
|
218
|
-
export
|
|
217
|
+
export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
|
|
218
|
+
export type ErrorHandler = (err: any, element?: HTMLElement) => void;
|
|
219
219
|
/**
|
|
220
220
|
* `setMode()` is used for libraries which provide multiple "modes" for styles.
|
|
221
221
|
*/
|
|
222
222
|
export declare const setMode: (handler: ResolutionHandler) => void;
|
|
223
223
|
/**
|
|
224
|
-
* getMode
|
|
224
|
+
* `getMode()` is used for libraries which provide multiple "modes" for styles.
|
|
225
|
+
* @param ref a reference to the node to get styles for
|
|
226
|
+
* @returns the current mode or undefined, if not found
|
|
225
227
|
*/
|
|
226
228
|
export declare function getMode<T = string | undefined>(ref: any): T;
|
|
227
229
|
export declare function setPlatformHelpers(helpers: {
|
|
@@ -234,6 +236,9 @@ export declare function setPlatformHelpers(helpers: {
|
|
|
234
236
|
/**
|
|
235
237
|
* Get the base path to where the assets can be found. Use `setAssetPath(path)`
|
|
236
238
|
* if the path needs to be customized.
|
|
239
|
+
* @param path the path to use in calculating the asset path. this value will be
|
|
240
|
+
* used in conjunction with the base asset path
|
|
241
|
+
* @returns the base path
|
|
237
242
|
*/
|
|
238
243
|
export declare function getAssetPath(path: string): string;
|
|
239
244
|
/**
|
|
@@ -246,22 +251,38 @@ export declare function getAssetPath(path: string): string;
|
|
|
246
251
|
* `setAssetPath(document.currentScript.src)`, or using a bundler's replace plugin to
|
|
247
252
|
* dynamically set the path at build time, such as `setAssetPath(process.env.ASSET_PATH)`.
|
|
248
253
|
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
249
|
-
*
|
|
254
|
+
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
250
255
|
* will have to ensure the static assets are copied to its build directory.
|
|
256
|
+
* @param path the asset path to set
|
|
257
|
+
* @returns the set path
|
|
251
258
|
*/
|
|
252
259
|
export declare function setAssetPath(path: string): string;
|
|
253
260
|
/**
|
|
254
|
-
*
|
|
261
|
+
* Used to specify a nonce value that corresponds with an application's
|
|
262
|
+
* [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP).
|
|
263
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
264
|
+
* Alternatively, the nonce value can be set on a `meta` tag in the DOM head
|
|
265
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) and will result in the same behavior.
|
|
266
|
+
* @param nonce The value to be used for the nonce attribute.
|
|
267
|
+
*/
|
|
268
|
+
export declare function setNonce(nonce: string): void;
|
|
269
|
+
/**
|
|
270
|
+
* Retrieve a Stencil element for a given reference
|
|
271
|
+
* @param ref the ref to get the Stencil element for
|
|
272
|
+
* @returns a reference to the element
|
|
255
273
|
*/
|
|
256
274
|
export declare function getElement(ref: any): HTMLStencilElement;
|
|
257
275
|
/**
|
|
258
276
|
* Schedules a new render of the given instance or element even if no state changed.
|
|
259
277
|
*
|
|
260
|
-
* Notice `forceUpdate()` is not
|
|
278
|
+
* Notice `forceUpdate()` is not synchronous and might perform the DOM render in the next frame.
|
|
279
|
+
*
|
|
280
|
+
* @param ref the node/element to force the re-render of
|
|
261
281
|
*/
|
|
262
282
|
export declare function forceUpdate(ref: any): void;
|
|
263
283
|
/**
|
|
264
284
|
* getRenderingRef
|
|
285
|
+
* @returns the rendering ref
|
|
265
286
|
*/
|
|
266
287
|
export declare function getRenderingRef(): any;
|
|
267
288
|
export interface HTMLStencilElement extends HTMLElement {
|
|
@@ -272,6 +293,8 @@ export interface HTMLStencilElement extends HTMLElement {
|
|
|
272
293
|
* in the best moment to perform DOM mutation without causing layout thrashing.
|
|
273
294
|
*
|
|
274
295
|
* For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
|
|
296
|
+
*
|
|
297
|
+
* @param task the DOM-write to schedule
|
|
275
298
|
*/
|
|
276
299
|
export declare function writeTask(task: RafCallback): void;
|
|
277
300
|
/**
|
|
@@ -279,6 +302,8 @@ export declare function writeTask(task: RafCallback): void;
|
|
|
279
302
|
* in the best moment to perform DOM reads without causing layout thrashing.
|
|
280
303
|
*
|
|
281
304
|
* For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
|
|
305
|
+
*
|
|
306
|
+
* @param task the DOM-read to schedule
|
|
282
307
|
*/
|
|
283
308
|
export declare function readTask(task: RafCallback): void;
|
|
284
309
|
/**
|
|
@@ -417,13 +442,57 @@ interface HostAttributes {
|
|
|
417
442
|
ref?: (el: HTMLElement | null) => void;
|
|
418
443
|
[prop: string]: any;
|
|
419
444
|
}
|
|
445
|
+
/**
|
|
446
|
+
* Utilities for working with functional Stencil components. An object
|
|
447
|
+
* conforming to this interface is passed by the Stencil runtime as the third
|
|
448
|
+
* argument to a functional component, allowing component authors to work with
|
|
449
|
+
* features like children.
|
|
450
|
+
*
|
|
451
|
+
* The children of a functional component will be passed as the second
|
|
452
|
+
* argument, so a functional component which uses these utils to transform its
|
|
453
|
+
* children might look like the following:
|
|
454
|
+
*
|
|
455
|
+
* ```ts
|
|
456
|
+
* export const AddClass: FunctionalComponent = (_, children, utils) => (
|
|
457
|
+
* utils.map(children, child => ({
|
|
458
|
+
* ...child,
|
|
459
|
+
* vattrs: {
|
|
460
|
+
* ...child.vattrs,
|
|
461
|
+
* class: `${child.vattrs.class} add-class`
|
|
462
|
+
* }
|
|
463
|
+
* }))
|
|
464
|
+
* );
|
|
465
|
+
* ```
|
|
466
|
+
*
|
|
467
|
+
* For more see the Stencil documentation, here:
|
|
468
|
+
* https://stenciljs.com/docs/functional-components
|
|
469
|
+
*/
|
|
420
470
|
export interface FunctionalUtilities {
|
|
471
|
+
/**
|
|
472
|
+
* Utility for reading the children of a functional component at runtime.
|
|
473
|
+
* Since the Stencil runtime uses a different interface for children it is
|
|
474
|
+
* not recommendeded to read the children directly, and is preferable to use
|
|
475
|
+
* this utility to, for instance, perform a side effect for each child.
|
|
476
|
+
*/
|
|
421
477
|
forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void;
|
|
478
|
+
/**
|
|
479
|
+
* Utility for transforming the children of a functional component. Given an
|
|
480
|
+
* array of children and a callback this will return a list of the results of
|
|
481
|
+
* passing each child to the supplied callback.
|
|
482
|
+
*/
|
|
422
483
|
map: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => ChildNode) => VNode[];
|
|
423
484
|
}
|
|
424
485
|
export interface FunctionalComponent<T = {}> {
|
|
425
486
|
(props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[];
|
|
426
487
|
}
|
|
488
|
+
/**
|
|
489
|
+
* A Child VDOM node
|
|
490
|
+
*
|
|
491
|
+
* This has most of the same properties as {@link VNode} but friendlier names
|
|
492
|
+
* (i.e. `vtag` instead of `$tag$`, `vchildren` instead of `$children$`) in
|
|
493
|
+
* order to provide a friendlier public interface for users of the
|
|
494
|
+
* {@link FunctionalUtilities}).
|
|
495
|
+
*/
|
|
427
496
|
export interface ChildNode {
|
|
428
497
|
vtag?: string | number | Function;
|
|
429
498
|
vkey?: string | number;
|
|
@@ -470,6 +539,9 @@ export declare function h(sel: any, children: Array<VNode | undefined | null>):
|
|
|
470
539
|
export declare function h(sel: any, data: VNodeData | null, text: string): VNode;
|
|
471
540
|
export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
|
|
472
541
|
export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
|
|
542
|
+
/**
|
|
543
|
+
* A virtual DOM node
|
|
544
|
+
*/
|
|
473
545
|
export interface VNode {
|
|
474
546
|
$flags$: number;
|
|
475
547
|
$tag$: string | number | Function;
|
|
@@ -740,6 +812,7 @@ export declare namespace JSXBase {
|
|
|
740
812
|
datetime?: string;
|
|
741
813
|
}
|
|
742
814
|
interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
815
|
+
onCancel?: (event: Event) => void;
|
|
743
816
|
onClose?: (event: Event) => void;
|
|
744
817
|
open?: boolean;
|
|
745
818
|
returnValue?: string;
|
|
@@ -820,8 +893,8 @@ export declare namespace JSXBase {
|
|
|
820
893
|
accept?: string;
|
|
821
894
|
allowdirs?: boolean;
|
|
822
895
|
alt?: string;
|
|
823
|
-
autoCapitalize?:
|
|
824
|
-
autocapitalize?:
|
|
896
|
+
autoCapitalize?: string;
|
|
897
|
+
autocapitalize?: string;
|
|
825
898
|
autoComplete?: string;
|
|
826
899
|
autocomplete?: string;
|
|
827
900
|
autoFocus?: boolean;
|
|
@@ -1145,8 +1218,8 @@ export declare namespace JSXBase {
|
|
|
1145
1218
|
resource?: string;
|
|
1146
1219
|
typeof?: string;
|
|
1147
1220
|
vocab?: string;
|
|
1148
|
-
autoCapitalize?:
|
|
1149
|
-
autocapitalize?:
|
|
1221
|
+
autoCapitalize?: string;
|
|
1222
|
+
autocapitalize?: string;
|
|
1150
1223
|
autoCorrect?: string;
|
|
1151
1224
|
autocorrect?: string;
|
|
1152
1225
|
autoSave?: string;
|
|
@@ -1437,12 +1510,12 @@ export declare namespace JSXBase {
|
|
|
1437
1510
|
onCutCapture?: (event: ClipboardEvent) => void;
|
|
1438
1511
|
onPaste?: (event: ClipboardEvent) => void;
|
|
1439
1512
|
onPasteCapture?: (event: ClipboardEvent) => void;
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1513
|
+
onCompositionend?: (event: CompositionEvent) => void;
|
|
1514
|
+
onCompositionendCapture?: (event: CompositionEvent) => void;
|
|
1515
|
+
onCompositionstart?: (event: CompositionEvent) => void;
|
|
1516
|
+
onCompositionstartCapture?: (event: CompositionEvent) => void;
|
|
1517
|
+
onCompositionupdate?: (event: CompositionEvent) => void;
|
|
1518
|
+
onCompositionupdateCapture?: (event: CompositionEvent) => void;
|
|
1446
1519
|
onFocus?: (event: FocusEvent) => void;
|
|
1447
1520
|
onFocusCapture?: (event: FocusEvent) => void;
|
|
1448
1521
|
onFocusin?: (event: FocusEvent) => void;
|
|
@@ -1453,8 +1526,8 @@ export declare namespace JSXBase {
|
|
|
1453
1526
|
onBlurCapture?: (event: FocusEvent) => void;
|
|
1454
1527
|
onChange?: (event: Event) => void;
|
|
1455
1528
|
onChangeCapture?: (event: Event) => void;
|
|
1456
|
-
onInput?: (event:
|
|
1457
|
-
onInputCapture?: (event:
|
|
1529
|
+
onInput?: (event: InputEvent) => void;
|
|
1530
|
+
onInputCapture?: (event: InputEvent) => void;
|
|
1458
1531
|
onReset?: (event: Event) => void;
|
|
1459
1532
|
onResetCapture?: (event: Event) => void;
|
|
1460
1533
|
onSubmit?: (event: Event) => void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FunctionalComponent } from '../stencil-public-runtime';
|
|
2
|
-
export
|
|
2
|
+
export type ButtonVariants = 'primary' | 'secondary';
|
|
3
3
|
export declare enum ButtonStates {
|
|
4
4
|
enabled = "enabled",
|
|
5
5
|
disabled = "disabled"
|
|
6
6
|
}
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type ProcessFlowBoxStepStates = 'first' | 'default';
|
|
8
|
+
export type IconName = {
|
|
9
9
|
[key: string]: (props: any) => FunctionalComponent;
|
|
10
10
|
};
|
|
11
11
|
export declare enum FooterLinkVariants {
|
|
@@ -176,7 +176,7 @@ export declare enum ColorVariant {
|
|
|
176
176
|
white = "var(--grayscale-white)",
|
|
177
177
|
grey_dark = "var(--grayscale-dark)"
|
|
178
178
|
}
|
|
179
|
-
export
|
|
179
|
+
export type IntroductionBgColors = 'white';
|
|
180
180
|
export declare enum HeroColorVariant {
|
|
181
181
|
blue = "blue",
|
|
182
182
|
black = "black",
|
package/loader/index.d.ts
CHANGED
|
@@ -5,18 +5,17 @@ export interface CustomElementsDefineOptions {
|
|
|
5
5
|
syncQueue?: boolean;
|
|
6
6
|
jmp?: (c: Function) => any;
|
|
7
7
|
raf?: (c: FrameRequestCallback) => number;
|
|
8
|
-
ael?: (
|
|
9
|
-
|
|
10
|
-
eventName: string,
|
|
11
|
-
listener: EventListenerOrEventListenerObject,
|
|
12
|
-
options: boolean | AddEventListenerOptions
|
|
13
|
-
) => void;
|
|
14
|
-
rel?: (
|
|
15
|
-
el: EventTarget,
|
|
16
|
-
eventName: string,
|
|
17
|
-
listener: EventListenerOrEventListenerObject,
|
|
18
|
-
options: boolean | AddEventListenerOptions
|
|
19
|
-
) => void;
|
|
8
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
20
10
|
}
|
|
21
11
|
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
|
|
22
12
|
export declare function applyPolyfills(): Promise<void>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
16
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
17
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
18
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
19
|
+
* will result in the same behavior.
|
|
20
|
+
*/
|
|
21
|
+
export declare function setNonce(nonce: string): void;
|
package/loader/index.es2017.js
CHANGED
package/loader/index.js
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var a = HTMLElement;
|
|
4
|
-
window.HTMLElement = function () {
|
|
5
|
-
return Reflect.construct(a, [], this.constructor);
|
|
6
|
-
};
|
|
7
|
-
HTMLElement.prototype = a.prototype;
|
|
8
|
-
HTMLElement.prototype.constructor = HTMLElement;
|
|
9
|
-
Object.setPrototypeOf(HTMLElement, a);
|
|
10
|
-
}
|
|
11
|
-
})();
|
|
1
|
+
|
|
2
|
+
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
12
3
|
export * from '../dist/esm/polyfills/index.js';
|
|
13
4
|
export * from '../dist/esm/loader.js';
|
package/loader/package.json
CHANGED