@itcenteratunihelsinki/huds-lib 0.8.41 → 0.8.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/color-box_8.cjs.entry.js +11 -36
- package/dist/cjs/{globalScript-6b592153.js → globalScript-45ad6d41.js} +1 -1
- package/dist/cjs/huds-lib.cjs.js +11 -4
- package/dist/cjs/hy-accordion-container_83.cjs.entry.js +363 -157
- package/dist/cjs/hy-event-item.cjs.entry.js +5 -2
- package/dist/cjs/hy-events.cjs.entry.js +4 -2
- package/dist/cjs/hy-hero-carousel.cjs.entry.js +4902 -0
- package/dist/cjs/{index-dfc917d9.js → index-25bd964b.js} +690 -287
- package/dist/cjs/loader.cjs.js +5 -4
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/accordion-container/accordion-container.js +36 -30
- package/dist/collection/components/accordion-item/accordion-item.js +115 -114
- package/dist/collection/components/adjacent-image-text/adjacent-image-text.js +276 -275
- package/dist/collection/components/baseline/baseline.js +34 -32
- package/dist/collection/components/button/button.js +225 -257
- package/dist/collection/components/color-box/color-box.js +12 -9
- package/dist/collection/components/courses/hy-content-list/hy-content-list.js +153 -148
- package/dist/collection/components/courses/hy-content-list-item/hy-content-list-item.css +2 -2
- package/dist/collection/components/courses/hy-content-list-item/hy-content-list-item.js +334 -331
- package/dist/collection/components/cta-button/cta-button.js +140 -138
- package/dist/collection/components/cta-link/cta-link.js +106 -103
- package/dist/collection/components/docs-container/docs-container.js +12 -9
- package/dist/collection/components/footer/hy-footer/hy-footer.js +12 -9
- package/dist/collection/components/footer/hy-footer-action/hy-footer-action.js +62 -55
- package/dist/collection/components/footer/hy-footer-base/hy-footer-base.js +182 -187
- package/dist/collection/components/footer/hy-footer-info/hy-footer-info.js +277 -270
- package/dist/collection/components/footer/hy-footer-link-item/hy-footer-link-item.js +190 -190
- package/dist/collection/components/grid-container/grid-container.js +12 -9
- package/dist/collection/components/grid-item/grid-item.css +0 -23
- package/dist/collection/components/grid-item/grid-item.js +101 -96
- package/dist/collection/components/grid-row/grid-row.js +12 -9
- package/dist/collection/components/heading/heading-fw.css +17 -17
- package/dist/collection/components/heading/heading.css +17 -17
- package/dist/collection/components/heading/heading.js +141 -146
- package/dist/collection/components/hy-anchor-link-list/hy-anchor-link-list.js +104 -99
- package/dist/collection/components/hy-badge/hy-badge.js +34 -30
- package/dist/collection/components/hy-banner/hy-banner.js +136 -135
- package/dist/collection/components/hy-box/hy-box.js +322 -318
- package/dist/collection/components/hy-box-container/hy-box-container.js +52 -54
- package/dist/collection/components/hy-breadcrumbs/hy-breadcrumbs.js +88 -82
- package/dist/collection/components/hy-checkbox/hy-checkbox.js +107 -114
- package/dist/collection/components/hy-collaboration/hy-collaboration.js +104 -99
- package/dist/collection/components/hy-crisis-banner/hy-crisis-banner.js +87 -85
- package/dist/collection/components/hy-dropdown/hy-dropdown.js +152 -147
- package/dist/collection/components/hy-dropdown/hy-dropdown.panel.item.js +75 -74
- package/dist/collection/components/hy-dropdown/hy-dropdown.panel.js +26 -22
- package/dist/collection/components/hy-event-item/hy-event-item.js +183 -192
- package/dist/collection/components/hy-events/hy-events.js +130 -127
- package/dist/collection/components/hy-filter-group/hy-filter-group.item.js +43 -41
- package/dist/collection/components/hy-filter-group/hy-filter-group.js +63 -54
- package/dist/collection/components/hy-filter-list-type/hy-filter-list-type.js +61 -56
- package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.js +37 -30
- package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.reset.js +2 -4
- package/dist/collection/components/hy-filter-visibility-tool/hy-filter-visibility-tool.reset.toggle.js +2 -8
- package/dist/collection/components/hy-general-list/hy-general-list.js +122 -113
- package/dist/collection/components/hy-general-list-item/hy-general-list-item.js +255 -258
- package/dist/collection/components/hy-hero/hy-hero.css +2 -2
- package/dist/collection/components/hy-hero/hy-hero.js +295 -308
- package/dist/collection/components/hy-hero-carousel/hy-hero-carousel.css +1306 -0
- package/dist/collection/components/hy-hero-carousel/hy-hero-carousel.js +211 -0
- package/dist/collection/components/hy-introduction/hy-introduction.js +247 -250
- package/dist/collection/components/hy-key-figure/hy-key-figure.js +72 -66
- package/dist/collection/components/hy-key-figure-group/hy-key-figure-group.css +1 -1
- package/dist/collection/components/hy-key-figure-group/hy-key-figure-group.js +66 -65
- package/dist/collection/components/hy-key-highlight/hy-key-highlight.js +72 -67
- package/dist/collection/components/hy-key-highlight-group/hy-key-highlight-group.css +2 -2
- package/dist/collection/components/hy-key-highlight-group/hy-key-highlight-group.js +78 -71
- package/dist/collection/components/hy-large-process-flow/hy-large-process-flow.css +6 -6
- package/dist/collection/components/hy-large-process-flow/hy-large-process-flow.js +54 -46
- package/dist/collection/components/hy-large-process-flow-phase/hy-large-process-flow-phase.css +3 -3
- package/dist/collection/components/hy-large-process-flow-phase/hy-large-process-flow-phase.js +40 -37
- package/dist/collection/components/hy-link-list/hy-link-list.js +106 -100
- package/dist/collection/components/hy-list-item/hy-list-item.js +428 -451
- package/dist/collection/components/hy-logo-grid/hy-logo-grid.item.js +53 -47
- package/dist/collection/components/hy-logo-grid/hy-logo-grid.js +53 -46
- package/dist/collection/components/hy-main/hy-main.js +34 -29
- package/dist/collection/components/hy-main-content-wrapper/hy-main-content-wrapper.js +12 -10
- package/dist/collection/components/hy-opening-hours/hy-opening-hours.css +2 -2
- package/dist/collection/components/hy-opening-hours/hy-opening-hours.js +304 -308
- package/dist/collection/components/hy-opening-hours-content/hy-opening-hours-content.css +2 -2
- package/dist/collection/components/hy-opening-hours-content/hy-opening-hours-content.js +107 -107
- package/dist/collection/components/hy-person-card/hy-person-card.js +422 -438
- package/dist/collection/components/hy-prominent-image/hy-prominent-image.js +106 -100
- package/dist/collection/components/hy-quote/hy-quote.js +51 -51
- package/dist/collection/components/hy-search-field/hy-search-field.js +166 -167
- package/dist/collection/components/hy-shortcuts/hy-shortcuts.css +1 -1
- package/dist/collection/components/hy-shortcuts/hy-shortcuts.js +89 -87
- package/dist/collection/components/hy-table-container/hy-table-container.css +6 -6
- package/dist/collection/components/hy-table-container/hy-table-container.js +12 -10
- package/dist/collection/components/hy-tabs/hy-tabs.js +115 -111
- package/dist/collection/components/hy-tabs-item/hy-tabs-item.js +36 -28
- package/dist/collection/components/hy-tag/hy-tag.js +12 -11
- package/dist/collection/components/hy-twitter-feed/hy-twitter-feed.js +107 -128
- package/dist/collection/components/hy-two-columns/hy-two-columns.js +34 -33
- package/dist/collection/components/hy-user-login-form/hy-user-login-form.js +53 -46
- package/dist/collection/components/hy-video/hy-video.css +1 -1
- package/dist/collection/components/hy-video/hy-video.js +462 -500
- package/dist/collection/components/icon/AddToTodoList.js +1 -2
- package/dist/collection/components/icon/Alert.js +1 -3
- package/dist/collection/components/icon/Archive.js +1 -5
- package/dist/collection/components/icon/Arrow.js +1 -2
- package/dist/collection/components/icon/ArrowDown.js +1 -2
- package/dist/collection/components/icon/ArrowRight.js +1 -7
- package/dist/collection/components/icon/ArrowUp.js +1 -2
- package/dist/collection/components/icon/Avatar.js +1 -2
- package/dist/collection/components/icon/AvatarGroup.js +1 -2
- package/dist/collection/components/icon/Bachelor.js +1 -2
- package/dist/collection/components/icon/BulletList.js +1 -2
- package/dist/collection/components/icon/Camera.js +1 -2
- package/dist/collection/components/icon/CaretDown.js +1 -2
- package/dist/collection/components/icon/CaretLeft.js +1 -2
- package/dist/collection/components/icon/CaretRight.js +1 -2
- package/dist/collection/components/icon/CaretUp.js +1 -2
- package/dist/collection/components/icon/Chat.js +1 -2
- package/dist/collection/components/icon/CodeFork.js +1 -2
- package/dist/collection/components/icon/Cogs.js +1 -2
- package/dist/collection/components/icon/Contentlink.js +1 -2
- package/dist/collection/components/icon/Customlink.js +1 -2
- package/dist/collection/components/icon/Date.js +1 -2
- package/dist/collection/components/icon/Discover.js +1 -2
- package/dist/collection/components/icon/Done.js +1 -2
- package/dist/collection/components/icon/Dot.js +1 -2
- package/dist/collection/components/icon/DotArrowRight.js +1 -6
- package/dist/collection/components/icon/Download.js +1 -2
- package/dist/collection/components/icon/Drag.js +1 -2
- package/dist/collection/components/icon/Dragbutton.js +1 -2
- package/dist/collection/components/icon/DropDown.js +1 -2
- package/dist/collection/components/icon/Edit.js +1 -2
- package/dist/collection/components/icon/EditEvent.js +1 -2
- package/dist/collection/components/icon/Embed.js +1 -2
- package/dist/collection/components/icon/Euro.js +1 -2
- package/dist/collection/components/icon/Events.js +1 -2
- package/dist/collection/components/icon/ExternalLink.js +1 -2
- package/dist/collection/components/icon/EyeSlash.js +1 -2
- package/dist/collection/components/icon/Facebook.js +1 -2
- package/dist/collection/components/icon/Favorites.js +1 -2
- package/dist/collection/components/icon/Feed.js +1 -2
- package/dist/collection/components/icon/FileText.js +1 -2
- package/dist/collection/components/icon/FullScreen.js +1 -2
- package/dist/collection/components/icon/Globe.js +1 -2
- package/dist/collection/components/icon/GooglePlus.js +1 -2
- package/dist/collection/components/icon/Grid.js +1 -2
- package/dist/collection/components/icon/Hamburger.js +1 -2
- package/dist/collection/components/icon/Heart.js +1 -2
- package/dist/collection/components/icon/HeartSupport.js +1 -2
- package/dist/collection/components/icon/Helsinginyliopisto.js +1 -2
- package/dist/collection/components/icon/Home.js +1 -2
- package/dist/collection/components/icon/HorizontalResize.js +1 -2
- package/dist/collection/components/icon/HyLogo.js +1 -2
- package/dist/collection/components/icon/IdNumber.js +1 -2
- package/dist/collection/components/icon/Image.js +1 -2
- package/dist/collection/components/icon/ImageGallery.js +1 -2
- package/dist/collection/components/icon/Images.js +1 -2
- package/dist/collection/components/icon/Info.js +1 -2
- package/dist/collection/components/icon/InfoStroke.js +1 -2
- package/dist/collection/components/icon/Instagram.js +1 -2
- package/dist/collection/components/icon/LeikiList.js +1 -2
- package/dist/collection/components/icon/LinkArrow.js +1 -2
- package/dist/collection/components/icon/LinkArrow1.js +1 -2
- package/dist/collection/components/icon/LinkArrowDown.js +1 -2
- package/dist/collection/components/icon/LinkArrowLeft.js +1 -2
- package/dist/collection/components/icon/LinkArrowOffsite.js +1 -2
- package/dist/collection/components/icon/LinkArrowUp.js +1 -2
- package/dist/collection/components/icon/Linkedin.js +1 -2
- package/dist/collection/components/icon/List.js +1 -2
- package/dist/collection/components/icon/ListAsBlocks.js +1 -2
- package/dist/collection/components/icon/ListStyleGrid.js +1 -10
- package/dist/collection/components/icon/ListStyleList.js +1 -5
- package/dist/collection/components/icon/Listoflinks.js +1 -2
- package/dist/collection/components/icon/Location.js +1 -2
- package/dist/collection/components/icon/Log.js +1 -2
- package/dist/collection/components/icon/Login.js +1 -2
- package/dist/collection/components/icon/Logout.js +1 -2
- package/dist/collection/components/icon/MagnifyMinus.js +1 -2
- package/dist/collection/components/icon/MagnifyPlus.js +1 -2
- package/dist/collection/components/icon/Mail.js +1 -2
- package/dist/collection/components/icon/Master.js +1 -2
- package/dist/collection/components/icon/Minus.js +1 -2
- package/dist/collection/components/icon/Mobile.js +1 -2
- package/dist/collection/components/icon/Modify.js +1 -2
- package/dist/collection/components/icon/NaviTriangle.js +1 -2
- package/dist/collection/components/icon/NewGroup.js +1 -2
- package/dist/collection/components/icon/NewPerson.js +1 -2
- package/dist/collection/components/icon/Notification.js +1 -2
- package/dist/collection/components/icon/OpinderLogo.js +1 -2
- package/dist/collection/components/icon/OpinderLogoNew.js +1 -2
- package/dist/collection/components/icon/Pdf.js +1 -2
- package/dist/collection/components/icon/People.js +1 -2
- package/dist/collection/components/icon/PermissionAll.js +1 -2
- package/dist/collection/components/icon/PermissionGroup.js +1 -2
- package/dist/collection/components/icon/PermissionPrivate.js +1 -2
- package/dist/collection/components/icon/Person.js +1 -2
- package/dist/collection/components/icon/PersonOutline.js +1 -2
- package/dist/collection/components/icon/Phone.js +1 -2
- package/dist/collection/components/icon/Play.js +1 -2
- package/dist/collection/components/icon/Plus.js +1 -2
- package/dist/collection/components/icon/Preview.js +1 -2
- package/dist/collection/components/icon/Profile.js +1 -2
- package/dist/collection/components/icon/Question.js +1 -2
- package/dist/collection/components/icon/Remove.js +1 -2
- package/dist/collection/components/icon/Retweet.js +1 -2
- package/dist/collection/components/icon/RotateLeft.js +1 -2
- package/dist/collection/components/icon/RotateRight.js +1 -2
- package/dist/collection/components/icon/Search.js +1 -2
- package/dist/collection/components/icon/Share.js +1 -2
- package/dist/collection/components/icon/SlimHamburgerMenu.js +1 -2
- package/dist/collection/components/icon/SocialMedia.js +1 -2
- package/dist/collection/components/icon/SomeFacebook.js +1 -2
- package/dist/collection/components/icon/SomeInstagram.js +1 -4
- package/dist/collection/components/icon/SomeLinkedin.js +1 -2
- package/dist/collection/components/icon/SomeTwitter.js +1 -2
- package/dist/collection/components/icon/SomeYoutube.js +1 -2
- package/dist/collection/components/icon/Spinner.js +1 -2
- package/dist/collection/components/icon/Square.js +1 -2
- package/dist/collection/components/icon/SquareChecked.js +1 -2
- package/dist/collection/components/icon/Time.js +1 -2
- package/dist/collection/components/icon/TodoList.js +1 -2
- package/dist/collection/components/icon/Tour.js +1 -2
- package/dist/collection/components/icon/Twitter.js +1 -2
- package/dist/collection/components/icon/TwitterLike.js +1 -2
- package/dist/collection/components/icon/UnitsAndFaculties.js +1 -2
- package/dist/collection/components/icon/Url.js +1 -2
- package/dist/collection/components/icon/Video.js +1 -2
- package/dist/collection/components/icon/Warning.js +1 -2
- package/dist/collection/components/icon/Wrench.js +1 -2
- package/dist/collection/components/icon/Youtube.js +1 -2
- package/dist/collection/components/icon/icon.js +67 -60
- package/dist/collection/components/icon/icons.js +4 -8
- package/dist/collection/components/image/image.js +147 -141
- package/dist/collection/components/ingress/ingress.js +34 -30
- package/dist/collection/components/link/link.js +106 -99
- package/dist/collection/components/link-box/link-box.css +0 -1
- package/dist/collection/components/link-box/link-box.js +270 -272
- package/dist/collection/components/link-box-list/link-box-list.js +95 -89
- package/dist/collection/components/navigation/hy-menu-main-group/hy-menu-main-group.js +285 -290
- package/dist/collection/components/navigation/menu-language/menu-language.js +147 -138
- package/dist/collection/components/navigation/menu-language-item/menu-language-item.js +123 -114
- package/dist/collection/components/pagination/hy-pager/hy-pager.js +12 -9
- package/dist/collection/components/pagination/hy-pager-item/hy-pager-item.js +92 -95
- package/dist/collection/components/paragraph-text/paragraph-text-content.css +14 -14
- package/dist/collection/components/paragraph-text/paragraph-text-landing.css +8 -8
- package/dist/collection/components/paragraph-text/paragraph-text.css +22 -22
- package/dist/collection/components/paragraph-text/paragraph-text.js +72 -67
- package/dist/collection/components/person-profile/person-profile-listing/person-profile-listing.css +1 -1
- package/dist/collection/components/person-profile/person-profile-listing/person-profile.listing.js +127 -126
- package/dist/collection/components/person-profile/person-profile.css +4 -4
- package/dist/collection/components/person-profile/person-profile.js +138 -182
- package/dist/collection/components/process/process.js +71 -62
- package/dist/collection/components/process-flow-box/process-flow-box.js +144 -148
- package/dist/collection/components/row/row.js +68 -72
- package/dist/collection/components/section-container/section-container.js +12 -9
- package/dist/collection/components/site-header/site-header.css +1 -1
- package/dist/collection/components/site-header/site-header.js +540 -560
- package/dist/collection/components/site-header/site-logo/site-logo.js +148 -148
- package/dist/collection/components/site-header/site-search/site-search.js +297 -312
- package/dist/collection/components/tiny-text/tiny-text.js +12 -9
- package/dist/esm/color-box_8.entry.js +12 -37
- package/dist/esm/{globalScript-9d045b36.js → globalScript-4ad40215.js} +1 -1
- package/dist/esm/huds-lib.js +8 -4
- package/dist/esm/hy-accordion-container_83.entry.js +364 -158
- package/dist/esm/hy-event-item.entry.js +5 -2
- package/dist/esm/hy-events.entry.js +5 -3
- package/dist/esm/hy-hero-carousel.entry.js +4898 -0
- package/dist/esm/{index-daaf0985.js → index-3a66d87e.js} +690 -288
- package/dist/esm/loader.js +5 -4
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{utils-7731bbdf.js → utils-43c56d92.js} +1 -1
- package/dist/huds-lib/huds-lib.esm.js +1 -1
- package/dist/huds-lib/{p-0ea3ec9a.js → p-63584350.js} +1 -1
- package/dist/huds-lib/p-7c7ea6b3.entry.js +1 -0
- package/dist/huds-lib/p-8d5c2e5b.entry.js +1 -0
- package/dist/huds-lib/p-91f6109f.entry.js +1 -0
- package/dist/huds-lib/p-9a15a75b.entry.js +1 -0
- package/dist/huds-lib/{p-04dcccdc.js → p-b02e49ad.js} +1 -1
- package/dist/huds-lib/p-ff975a68.js +2 -0
- package/dist/huds-lib/p-ffd1d29a.entry.js +87 -0
- package/dist/types/components/hy-hero-carousel/hy-hero-carousel.d.ts +30 -0
- package/dist/types/components/person-profile/person-profile-listing/person-profile.listing.d.ts +1 -1
- package/dist/types/components.d.ts +95 -20
- package/dist/types/stencil-public-runtime.d.ts +92 -19
- package/dist/types/utils/utils.d.ts +4 -4
- package/loader/index.d.ts +11 -12
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -11
- package/loader/package.json +2 -1
- package/package.json +13 -11
- package/dist/huds-lib/p-0370da7d.entry.js +0 -87
- package/dist/huds-lib/p-2244fcda.entry.js +0 -1
- package/dist/huds-lib/p-aba9f82a.entry.js +0 -1
- package/dist/huds-lib/p-c68c36c3.entry.js +0 -1
- package/dist/huds-lib/p-f8697bf9.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
2
|
import { ColorVariant, SiteLogoSize } from '../../../utils/utils';
|
|
3
3
|
import { jsonParserWorker } from '../../../global/globalScript';
|
|
4
4
|
let keys = {
|
|
@@ -8,7 +8,13 @@ export class HyMenuMainGroup {
|
|
|
8
8
|
constructor() {
|
|
9
9
|
this.menuLabel = 'University main menu';
|
|
10
10
|
this.menuLabelClose = 'Close';
|
|
11
|
+
this.dataMainMenu = undefined;
|
|
11
12
|
this.isMobile = false;
|
|
13
|
+
this.logoUrl = undefined;
|
|
14
|
+
this.logoLabel = undefined;
|
|
15
|
+
this.siteLabel = undefined;
|
|
16
|
+
this.siteUrl = undefined;
|
|
17
|
+
this.donate = undefined;
|
|
12
18
|
this.isMenuOpen = false;
|
|
13
19
|
}
|
|
14
20
|
handleComponentClick(event) {
|
|
@@ -109,311 +115,300 @@ export class HyMenuMainGroup {
|
|
|
109
115
|
return this.isMobile ? (h(Host, { class: {
|
|
110
116
|
'menu--main-group--mobile': true,
|
|
111
117
|
'menu--main-group--mobile__is-open': this.isMenuOpen,
|
|
112
|
-
} },
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
h("
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
h("
|
|
123
|
-
|
|
124
|
-
h("hy-site-logo", { "is-group": true, size: logoSizeGroup, color: logoColorGroup, url: this.siteUrl, label: this.siteLabel })),
|
|
125
|
-
h("button", { "aria-label": `Close ${this.menuLabel}`, class: "menu--main-group__dropdown__close", onClick: (e) => this.handleTopMenuClose(e) },
|
|
126
|
-
h("hy-icon", { icon: 'hy-icon-remove', size: 20, fill: white }))),
|
|
127
|
-
h("div", { class: "menu--main-group__dropdown__items" }, this._dataMainMenu.map((item) => {
|
|
128
|
-
return (h("a", { href: item.url, class: { 'menu-main-link': true } },
|
|
129
|
-
h("span", { class: 'menu--main-group__label' }, item.label)));
|
|
130
|
-
})),
|
|
131
|
-
h("div", { class: "menu--main-group__dropdown__donate" }, this.donate &&
|
|
132
|
-
this.donate.map((i) => {
|
|
133
|
-
return (h("a", { class: 'menu--secondary__item hy-link__donate group', href: i.url },
|
|
134
|
-
h("hy-icon", { icon: 'hy-icon-heart-support', size: 14, fill: logoColorGroup }),
|
|
135
|
-
h("span", { class: 'hy-link__donate__label group' }, i.label)));
|
|
136
|
-
}))))) : (h(Host, { class: {
|
|
118
|
+
} }, h("button", { "aria-label": this.menuLabel, class: {
|
|
119
|
+
'menu--main-group__mobile-toggle': true,
|
|
120
|
+
'is-open': this.isMenuOpen,
|
|
121
|
+
} }, h("hy-icon", { icon: 'hy-icon-slim-hamburger-menu', size: 20, fill: white })), h("nav", { role: "navigation", "aria-hidden": this.isMenuOpen ? 'false' : 'true', class: {
|
|
122
|
+
'menu--main-group__dropdown--mobile': true,
|
|
123
|
+
'is-open': this.isMenuOpen,
|
|
124
|
+
} }, h("div", { class: "menu--main-group__dropdown__top" }, h("div", { class: 'menu--main-group__logo-container', id: 'menu-logo' }, h("hy-site-logo", { "is-group": true, size: logoSizeGroup, color: logoColorGroup, url: this.siteUrl, label: this.siteLabel })), h("button", { "aria-label": `Close ${this.menuLabel}`, class: "menu--main-group__dropdown__close", onClick: (e) => this.handleTopMenuClose(e) }, h("hy-icon", { icon: 'hy-icon-remove', size: 20, fill: white }))), h("div", { class: "menu--main-group__dropdown__items" }, this._dataMainMenu.map((item) => {
|
|
125
|
+
return (h("a", { href: item.url, class: { 'menu-main-link': true } }, h("span", { class: 'menu--main-group__label' }, item.label)));
|
|
126
|
+
})), h("div", { class: "menu--main-group__dropdown__donate" }, this.donate &&
|
|
127
|
+
this.donate.map((i) => {
|
|
128
|
+
return (h("a", { class: 'menu--secondary__item hy-link__donate group', href: i.url }, h("hy-icon", { icon: 'hy-icon-heart-support', size: 14, fill: logoColorGroup }), h("span", { class: 'hy-link__donate__label group' }, i.label)));
|
|
129
|
+
}))))) : (h(Host, { class: {
|
|
137
130
|
'menu--main-group': true,
|
|
138
131
|
'menu--main-group__is-open': this.isMenuOpen,
|
|
139
|
-
} },
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
h("
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
h("div", { class: "list" }, this._dataMainMenu.map((item) => {
|
|
151
|
-
return (h("a", { href: item.url, class: { 'menu-main-link': true } },
|
|
152
|
-
h("span", { class: "heading-icon" },
|
|
153
|
-
h("hy-icon", { icon: 'hy-icon-caret-right', size: 10, fill: white })),
|
|
154
|
-
h("span", { class: 'menu--main-group__label' }, item.label)));
|
|
155
|
-
})),
|
|
156
|
-
h("button", { onClick: (e) => this.handleComponentClick(e), class: {
|
|
157
|
-
'panel-toggle': true,
|
|
158
|
-
}, "aria-label": "Close menu" },
|
|
159
|
-
h("span", { class: "panel-toggle__label" },
|
|
160
|
-
h("span", { class: "panel-toggle__label__title" }, this.menuLabelClose),
|
|
161
|
-
h("hy-icon", { icon: 'hy-icon-remove', size: 20, fill: ColorVariant.white }))))));
|
|
132
|
+
} }, h("button", { class: {
|
|
133
|
+
'menu--main-group__toggle': true,
|
|
134
|
+
'is-open': this.isMenuOpen,
|
|
135
|
+
}, "aria-expanded": this.isMenuOpen ? 'true' : 'false', "aria-haspopup": "menu" }, this.isMenuOpen ? (h("hy-icon", { class: 'toggle__close', icon: 'hy-icon-remove', size: 8, fill: white })) : (h("hy-icon", { class: 'toggle__caret', icon: 'hy-icon-slim-hamburger-menu', size: 8, fill: white })), h("span", null, this.menuLabel)), h("div", { class: {
|
|
136
|
+
'menu--main-group__dropdown': true,
|
|
137
|
+
'is-open': this.isMenuOpen,
|
|
138
|
+
} }, h("div", { class: "list" }, this._dataMainMenu.map((item) => {
|
|
139
|
+
return (h("a", { href: item.url, class: { 'menu-main-link': true } }, h("span", { class: "heading-icon" }, h("hy-icon", { icon: 'hy-icon-caret-right', size: 10, fill: white })), h("span", { class: 'menu--main-group__label' }, item.label)));
|
|
140
|
+
})), h("button", { onClick: (e) => this.handleComponentClick(e), class: {
|
|
141
|
+
'panel-toggle': true,
|
|
142
|
+
}, "aria-label": "Close menu" }, h("span", { class: "panel-toggle__label" }, h("span", { class: "panel-toggle__label__title" }, this.menuLabelClose), h("hy-icon", { icon: 'hy-icon-remove', size: 20, fill: ColorVariant.white }))))));
|
|
162
143
|
}
|
|
163
144
|
static get is() { return "hy-menu-main-group"; }
|
|
164
145
|
static get encapsulation() { return "shadow"; }
|
|
165
|
-
static get originalStyleUrls() {
|
|
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
|
-
"original": "string",
|
|
195
|
-
"resolved": "string",
|
|
196
|
-
"references": {}
|
|
146
|
+
static get originalStyleUrls() {
|
|
147
|
+
return {
|
|
148
|
+
"$": ["hy-menu-main-group.scss"]
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
static get styleUrls() {
|
|
152
|
+
return {
|
|
153
|
+
"$": ["hy-menu-main-group.css"]
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
static get properties() {
|
|
157
|
+
return {
|
|
158
|
+
"menuLabel": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"mutable": false,
|
|
161
|
+
"complexType": {
|
|
162
|
+
"original": "string",
|
|
163
|
+
"resolved": "string",
|
|
164
|
+
"references": {}
|
|
165
|
+
},
|
|
166
|
+
"required": false,
|
|
167
|
+
"optional": false,
|
|
168
|
+
"docs": {
|
|
169
|
+
"tags": [],
|
|
170
|
+
"text": ""
|
|
171
|
+
},
|
|
172
|
+
"attribute": "menu-label",
|
|
173
|
+
"reflect": false,
|
|
174
|
+
"defaultValue": "'University main menu'"
|
|
197
175
|
},
|
|
198
|
-
"
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
"
|
|
202
|
-
|
|
176
|
+
"menuLabelClose": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"mutable": false,
|
|
179
|
+
"complexType": {
|
|
180
|
+
"original": "string",
|
|
181
|
+
"resolved": "string",
|
|
182
|
+
"references": {}
|
|
183
|
+
},
|
|
184
|
+
"required": false,
|
|
185
|
+
"optional": false,
|
|
186
|
+
"docs": {
|
|
187
|
+
"tags": [],
|
|
188
|
+
"text": ""
|
|
189
|
+
},
|
|
190
|
+
"attribute": "menu-label-close",
|
|
191
|
+
"reflect": false,
|
|
192
|
+
"defaultValue": "'Close'"
|
|
203
193
|
},
|
|
204
|
-
"
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
"MainMenu": {
|
|
216
|
-
"location": "local"
|
|
194
|
+
"dataMainMenu": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"mutable": false,
|
|
197
|
+
"complexType": {
|
|
198
|
+
"original": "MainMenu[] | string",
|
|
199
|
+
"resolved": "MainMenu[] | string",
|
|
200
|
+
"references": {
|
|
201
|
+
"MainMenu": {
|
|
202
|
+
"location": "local",
|
|
203
|
+
"path": "/builds/julkiset-sivut/design-system-lib/src/components/navigation/hy-menu-main-group/hy-menu-main-group.tsx"
|
|
204
|
+
}
|
|
217
205
|
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
206
|
+
},
|
|
207
|
+
"required": false,
|
|
208
|
+
"optional": false,
|
|
209
|
+
"docs": {
|
|
210
|
+
"tags": [],
|
|
211
|
+
"text": ""
|
|
212
|
+
},
|
|
213
|
+
"attribute": "data-main-menu",
|
|
214
|
+
"reflect": false
|
|
225
215
|
},
|
|
226
|
-
"
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
"
|
|
235
|
-
"
|
|
216
|
+
"isMobile": {
|
|
217
|
+
"type": "boolean",
|
|
218
|
+
"mutable": false,
|
|
219
|
+
"complexType": {
|
|
220
|
+
"original": "boolean",
|
|
221
|
+
"resolved": "boolean",
|
|
222
|
+
"references": {}
|
|
223
|
+
},
|
|
224
|
+
"required": false,
|
|
225
|
+
"optional": false,
|
|
226
|
+
"docs": {
|
|
227
|
+
"tags": [],
|
|
228
|
+
"text": ""
|
|
229
|
+
},
|
|
230
|
+
"attribute": "is-mobile",
|
|
231
|
+
"reflect": false,
|
|
232
|
+
"defaultValue": "false"
|
|
236
233
|
},
|
|
237
|
-
"
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
"
|
|
241
|
-
|
|
234
|
+
"logoUrl": {
|
|
235
|
+
"type": "string",
|
|
236
|
+
"mutable": false,
|
|
237
|
+
"complexType": {
|
|
238
|
+
"original": "string",
|
|
239
|
+
"resolved": "string",
|
|
240
|
+
"references": {}
|
|
241
|
+
},
|
|
242
|
+
"required": false,
|
|
243
|
+
"optional": true,
|
|
244
|
+
"docs": {
|
|
245
|
+
"tags": [],
|
|
246
|
+
"text": ""
|
|
247
|
+
},
|
|
248
|
+
"attribute": "logo-url",
|
|
249
|
+
"reflect": false
|
|
242
250
|
},
|
|
243
|
-
"
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
"
|
|
252
|
-
"
|
|
253
|
-
"
|
|
251
|
+
"logoLabel": {
|
|
252
|
+
"type": "string",
|
|
253
|
+
"mutable": false,
|
|
254
|
+
"complexType": {
|
|
255
|
+
"original": "string",
|
|
256
|
+
"resolved": "string",
|
|
257
|
+
"references": {}
|
|
258
|
+
},
|
|
259
|
+
"required": false,
|
|
260
|
+
"optional": true,
|
|
261
|
+
"docs": {
|
|
262
|
+
"tags": [],
|
|
263
|
+
"text": ""
|
|
264
|
+
},
|
|
265
|
+
"attribute": "logo-label",
|
|
266
|
+
"reflect": false
|
|
254
267
|
},
|
|
255
|
-
"
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
"
|
|
259
|
-
|
|
268
|
+
"siteLabel": {
|
|
269
|
+
"type": "string",
|
|
270
|
+
"mutable": false,
|
|
271
|
+
"complexType": {
|
|
272
|
+
"original": "string",
|
|
273
|
+
"resolved": "string",
|
|
274
|
+
"references": {}
|
|
275
|
+
},
|
|
276
|
+
"required": false,
|
|
277
|
+
"optional": true,
|
|
278
|
+
"docs": {
|
|
279
|
+
"tags": [],
|
|
280
|
+
"text": ""
|
|
281
|
+
},
|
|
282
|
+
"attribute": "site-label",
|
|
283
|
+
"reflect": false
|
|
260
284
|
},
|
|
261
|
-
"
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
"
|
|
270
|
-
"
|
|
285
|
+
"siteUrl": {
|
|
286
|
+
"type": "string",
|
|
287
|
+
"mutable": false,
|
|
288
|
+
"complexType": {
|
|
289
|
+
"original": "string",
|
|
290
|
+
"resolved": "string",
|
|
291
|
+
"references": {}
|
|
292
|
+
},
|
|
293
|
+
"required": false,
|
|
294
|
+
"optional": true,
|
|
295
|
+
"docs": {
|
|
296
|
+
"tags": [],
|
|
297
|
+
"text": ""
|
|
298
|
+
},
|
|
299
|
+
"attribute": "site-url",
|
|
300
|
+
"reflect": false
|
|
271
301
|
},
|
|
272
|
-
"
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
"
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
"mutable": false,
|
|
284
|
-
"complexType": {
|
|
285
|
-
"original": "string",
|
|
286
|
-
"resolved": "string",
|
|
287
|
-
"references": {}
|
|
288
|
-
},
|
|
289
|
-
"required": false,
|
|
290
|
-
"optional": true,
|
|
291
|
-
"docs": {
|
|
292
|
-
"tags": [],
|
|
293
|
-
"text": ""
|
|
294
|
-
},
|
|
295
|
-
"attribute": "site-label",
|
|
296
|
-
"reflect": false
|
|
297
|
-
},
|
|
298
|
-
"siteUrl": {
|
|
299
|
-
"type": "string",
|
|
300
|
-
"mutable": false,
|
|
301
|
-
"complexType": {
|
|
302
|
-
"original": "string",
|
|
303
|
-
"resolved": "string",
|
|
304
|
-
"references": {}
|
|
305
|
-
},
|
|
306
|
-
"required": false,
|
|
307
|
-
"optional": true,
|
|
308
|
-
"docs": {
|
|
309
|
-
"tags": [],
|
|
310
|
-
"text": ""
|
|
311
|
-
},
|
|
312
|
-
"attribute": "site-url",
|
|
313
|
-
"reflect": false
|
|
314
|
-
},
|
|
315
|
-
"donate": {
|
|
316
|
-
"type": "unknown",
|
|
317
|
-
"mutable": false,
|
|
318
|
-
"complexType": {
|
|
319
|
-
"original": "DonateLink[]",
|
|
320
|
-
"resolved": "DonateLink[]",
|
|
321
|
-
"references": {
|
|
322
|
-
"DonateLink": {
|
|
323
|
-
"location": "local"
|
|
302
|
+
"donate": {
|
|
303
|
+
"type": "unknown",
|
|
304
|
+
"mutable": false,
|
|
305
|
+
"complexType": {
|
|
306
|
+
"original": "DonateLink[]",
|
|
307
|
+
"resolved": "DonateLink[]",
|
|
308
|
+
"references": {
|
|
309
|
+
"DonateLink": {
|
|
310
|
+
"location": "local",
|
|
311
|
+
"path": "/builds/julkiset-sivut/design-system-lib/src/components/navigation/hy-menu-main-group/hy-menu-main-group.tsx"
|
|
312
|
+
}
|
|
324
313
|
}
|
|
314
|
+
},
|
|
315
|
+
"required": false,
|
|
316
|
+
"optional": false,
|
|
317
|
+
"docs": {
|
|
318
|
+
"tags": [],
|
|
319
|
+
"text": ""
|
|
325
320
|
}
|
|
326
|
-
},
|
|
327
|
-
"required": false,
|
|
328
|
-
"optional": false,
|
|
329
|
-
"docs": {
|
|
330
|
-
"tags": [],
|
|
331
|
-
"text": ""
|
|
332
321
|
}
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
static get states() {
|
|
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
|
-
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
static get states() {
|
|
325
|
+
return {
|
|
326
|
+
"isMenuOpen": {}
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
static get events() {
|
|
330
|
+
return [{
|
|
331
|
+
"method": "universityMainMenuToggled",
|
|
332
|
+
"name": "universityMainMenuToggled",
|
|
333
|
+
"bubbles": true,
|
|
334
|
+
"cancelable": true,
|
|
335
|
+
"composed": true,
|
|
336
|
+
"docs": {
|
|
337
|
+
"tags": [],
|
|
338
|
+
"text": ""
|
|
339
|
+
},
|
|
340
|
+
"complexType": {
|
|
341
|
+
"original": "any",
|
|
342
|
+
"resolved": "any",
|
|
343
|
+
"references": {}
|
|
344
|
+
}
|
|
345
|
+
}, {
|
|
346
|
+
"method": "mobileMenuTopToggle",
|
|
347
|
+
"name": "mobileMenuTopToggle",
|
|
348
|
+
"bubbles": true,
|
|
349
|
+
"cancelable": true,
|
|
350
|
+
"composed": true,
|
|
351
|
+
"docs": {
|
|
352
|
+
"tags": [],
|
|
353
|
+
"text": ""
|
|
354
|
+
},
|
|
355
|
+
"complexType": {
|
|
356
|
+
"original": "any",
|
|
357
|
+
"resolved": "any",
|
|
358
|
+
"references": {}
|
|
359
|
+
}
|
|
360
|
+
}];
|
|
361
|
+
}
|
|
369
362
|
static get elementRef() { return "el"; }
|
|
370
|
-
static get listeners() {
|
|
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
|
-
|
|
363
|
+
static get listeners() {
|
|
364
|
+
return [{
|
|
365
|
+
"name": "click",
|
|
366
|
+
"method": "handleComponentClick",
|
|
367
|
+
"target": undefined,
|
|
368
|
+
"capture": true,
|
|
369
|
+
"passive": false
|
|
370
|
+
}, {
|
|
371
|
+
"name": "keydown",
|
|
372
|
+
"method": "handleComponentKeyDown",
|
|
373
|
+
"target": undefined,
|
|
374
|
+
"capture": false,
|
|
375
|
+
"passive": false
|
|
376
|
+
}, {
|
|
377
|
+
"name": "click",
|
|
378
|
+
"method": "handleOutsideMenuClick",
|
|
379
|
+
"target": "window",
|
|
380
|
+
"capture": false,
|
|
381
|
+
"passive": false
|
|
382
|
+
}, {
|
|
383
|
+
"name": "headerScrollDown",
|
|
384
|
+
"method": "handleOutsideMenuClick",
|
|
385
|
+
"target": "window",
|
|
386
|
+
"capture": false,
|
|
387
|
+
"passive": false
|
|
388
|
+
}, {
|
|
389
|
+
"name": "headerScrollUp",
|
|
390
|
+
"method": "handleOutsideMenuClick",
|
|
391
|
+
"target": "window",
|
|
392
|
+
"capture": false,
|
|
393
|
+
"passive": false
|
|
394
|
+
}, {
|
|
395
|
+
"name": "menuDesktopToggled",
|
|
396
|
+
"method": "desktopMenuToggled",
|
|
397
|
+
"target": "document",
|
|
398
|
+
"capture": false,
|
|
399
|
+
"passive": false
|
|
400
|
+
}, {
|
|
401
|
+
"name": "searchPanelToggled",
|
|
402
|
+
"method": "searchPanelToggled",
|
|
403
|
+
"target": "document",
|
|
404
|
+
"capture": false,
|
|
405
|
+
"passive": false
|
|
406
|
+
}, {
|
|
407
|
+
"name": "menuLanguageToggled",
|
|
408
|
+
"method": "languageMenuToggled",
|
|
409
|
+
"target": "document",
|
|
410
|
+
"capture": false,
|
|
411
|
+
"passive": false
|
|
412
|
+
}];
|
|
413
|
+
}
|
|
419
414
|
}
|