@itcenteratunihelsinki/huds-lib 0.5.45 → 0.5.46
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 +210 -0
- package/dist/cjs/{globalScript-0c66cb96.js → globalScript-6b592153.js} +1 -1
- package/dist/cjs/huds-lib.cjs.js +4 -4
- package/dist/cjs/hy-accordion-container_91.cjs.entry.js +8147 -0
- package/dist/cjs/{index-dd5e5023.js → index-dfc917d9.js} +80 -64
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/collection/collection-manifest.json +97 -12
- package/dist/collection/components/button/button.js +7 -2
- package/dist/collection/components/heading/heading.js +4 -4
- package/dist/collection/components/navigation/menu/menu.js +46 -34
- package/dist/collection/components/navigation/menu-sidebar/menu-sidebar.js +14 -6
- package/dist/collection/components/person-profile/person-profile.js +8 -1
- package/dist/collection/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.js +27 -19
- package/dist/collection/components/site-header/site-header.js +14 -2
- package/dist/esm/color-box_8.entry.js +199 -0
- package/dist/esm/{globalScript-92c6b812.js → globalScript-9d045b36.js} +1 -1
- package/dist/esm/huds-lib.js +4 -4
- package/dist/esm/hy-accordion-container_91.entry.js +8053 -0
- package/dist/esm/{index-083c8c8a.js → index-daaf0985.js} +80 -64
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{utils-708bbefe.js → utils-966ffdb5.js} +1 -1
- package/dist/huds-lib/huds-lib.esm.js +1 -1
- package/dist/huds-lib/{p-fd1edbd5.js → p-04dcccdc.js} +1 -1
- package/dist/huds-lib/p-77f7df4b.entry.js +86 -0
- package/dist/huds-lib/{p-8ab550d6.js → p-cd2316f0.js} +1 -1
- package/dist/huds-lib/p-d3ced29c.entry.js +1 -0
- package/dist/huds-lib/{p-bb24c6b5.js → p-f8697bf9.js} +1 -1
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/navigation/menu/menu.d.ts +1 -0
- package/dist/types/components/person-profile/person-profile.d.ts +1 -0
- package/dist/types/components.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +7 -4
- package/loader/index.d.ts +13 -4
- package/loader/{index.es2017.mjs → index.es2017.js} +1 -2
- package/loader/index.js +13 -0
- package/loader/package.json +5 -7
- package/package.json +2 -2
- package/dist/cjs/color-box.cjs.entry.js +0 -19
- package/dist/cjs/emotion.esm-563b6504.js +0 -1397
- package/dist/cjs/hy-accordion-container_5.cjs.entry.js +0 -578
- package/dist/cjs/hy-adjacent-image-text.cjs.entry.js +0 -51
- package/dist/cjs/hy-anchor-link-list.cjs.entry.js +0 -45
- package/dist/cjs/hy-badge.cjs.entry.js +0 -21
- package/dist/cjs/hy-banner.cjs.entry.js +0 -45
- package/dist/cjs/hy-baseline.cjs.entry.js +0 -32
- package/dist/cjs/hy-box-container.cjs.entry.js +0 -33
- package/dist/cjs/hy-box.cjs.entry.js +0 -165
- package/dist/cjs/hy-breadcrumbs.cjs.entry.js +0 -231
- package/dist/cjs/hy-button.cjs.entry.js +0 -100
- package/dist/cjs/hy-checkbox.cjs.entry.js +0 -33
- package/dist/cjs/hy-collaboration.cjs.entry.js +0 -19
- package/dist/cjs/hy-content-list-item.cjs.entry.js +0 -70
- package/dist/cjs/hy-content-list.cjs.entry.js +0 -112
- package/dist/cjs/hy-crisis-banner.cjs.entry.js +0 -19
- package/dist/cjs/hy-cta-button.cjs.entry.js +0 -30
- package/dist/cjs/hy-cta-link.cjs.entry.js +0 -26
- package/dist/cjs/hy-desktop-menu-links.cjs.entry.js +0 -328
- package/dist/cjs/hy-docs-container.cjs.entry.js +0 -19
- package/dist/cjs/hy-dropdown-panel_2.cjs.entry.js +0 -27
- package/dist/cjs/hy-dropdown.cjs.entry.js +0 -113
- package/dist/cjs/hy-filter-group-item.cjs.entry.js +0 -17
- package/dist/cjs/hy-filter-group.cjs.entry.js +0 -37
- package/dist/cjs/hy-filter-list-type.cjs.entry.js +0 -28
- package/dist/cjs/hy-filter-visibility-tool-reset_2.cjs.entry.js +0 -26
- package/dist/cjs/hy-filter-visibility-tool.cjs.entry.js +0 -24
- package/dist/cjs/hy-footer_5.cjs.entry.js +0 -201
- package/dist/cjs/hy-general-list_2.cjs.entry.js +0 -94
- package/dist/cjs/hy-grid-container.cjs.entry.js +0 -20
- package/dist/cjs/hy-grid-item.cjs.entry.js +0 -31
- package/dist/cjs/hy-grid-row.cjs.entry.js +0 -20
- package/dist/cjs/hy-heading.cjs.entry.js +0 -67
- package/dist/cjs/hy-hero.cjs.entry.js +0 -101
- package/dist/cjs/hy-icon.cjs.entry.js +0 -364
- package/dist/cjs/hy-image.cjs.entry.js +0 -50
- package/dist/cjs/hy-ingress.cjs.entry.js +0 -30
- package/dist/cjs/hy-introduction.cjs.entry.js +0 -55
- package/dist/cjs/hy-key-figure-group.cjs.entry.js +0 -77
- package/dist/cjs/hy-key-figure.cjs.entry.js +0 -22
- package/dist/cjs/hy-key-highlight-group.cjs.entry.js +0 -44
- package/dist/cjs/hy-key-highlight.cjs.entry.js +0 -22
- package/dist/cjs/hy-large-process-flow-phase.cjs.entry.js +0 -37
- package/dist/cjs/hy-large-process-flow.cjs.entry.js +0 -44
- package/dist/cjs/hy-link-box-list.cjs.entry.js +0 -54
- package/dist/cjs/hy-link-box.cjs.entry.js +0 -79
- package/dist/cjs/hy-link-list.cjs.entry.js +0 -44
- package/dist/cjs/hy-link.cjs.entry.js +0 -25
- package/dist/cjs/hy-list-item.cjs.entry.js +0 -239
- package/dist/cjs/hy-logo-grid-item.cjs.entry.js +0 -30
- package/dist/cjs/hy-logo-grid.cjs.entry.js +0 -20
- package/dist/cjs/hy-main-content-wrapper.cjs.entry.js +0 -20
- package/dist/cjs/hy-main.cjs.entry.js +0 -25
- package/dist/cjs/hy-menu-item-sidebar.cjs.entry.js +0 -159
- package/dist/cjs/hy-menu-item.cjs.entry.js +0 -147
- package/dist/cjs/hy-menu-language-item.cjs.entry.js +0 -25
- package/dist/cjs/hy-menu-language.cjs.entry.js +0 -91
- package/dist/cjs/hy-menu-level-container.cjs.entry.js +0 -137
- package/dist/cjs/hy-menu-main-group.cjs.entry.js +0 -151
- package/dist/cjs/hy-menu-mobile-breadcrumb.cjs.entry.js +0 -25
- package/dist/cjs/hy-menu-sidebar.cjs.entry.js +0 -290
- package/dist/cjs/hy-menu.cjs.entry.js +0 -111
- package/dist/cjs/hy-mobile-menu-shortcuts.cjs.entry.js +0 -26
- package/dist/cjs/hy-opening-hours-content.cjs.entry.js +0 -43
- package/dist/cjs/hy-opening-hours.cjs.entry.js +0 -35
- package/dist/cjs/hy-pager-item.cjs.entry.js +0 -45
- package/dist/cjs/hy-pager.cjs.entry.js +0 -20
- package/dist/cjs/hy-paragraph-text.cjs.entry.js +0 -45
- package/dist/cjs/hy-person-card.cjs.entry.js +0 -84
- package/dist/cjs/hy-person-profile.cjs.entry.js +0 -61
- package/dist/cjs/hy-process-flow-box.cjs.entry.js +0 -28
- package/dist/cjs/hy-process.cjs.entry.js +0 -57
- package/dist/cjs/hy-prominent-image.cjs.entry.js +0 -36
- package/dist/cjs/hy-quote.cjs.entry.js +0 -30
- package/dist/cjs/hy-row.cjs.entry.js +0 -42
- package/dist/cjs/hy-search-field.cjs.entry.js +0 -51
- package/dist/cjs/hy-section-container.cjs.entry.js +0 -19
- package/dist/cjs/hy-shortcuts.cjs.entry.js +0 -60
- package/dist/cjs/hy-site-header_3.cjs.entry.js +0 -444
- package/dist/cjs/hy-table-container.cjs.entry.js +0 -20
- package/dist/cjs/hy-tag.cjs.entry.js +0 -20
- package/dist/cjs/hy-tiny-text.cjs.entry.js +0 -20
- package/dist/cjs/hy-twitter-feed.cjs.entry.js +0 -27
- package/dist/cjs/hy-two-columns.cjs.entry.js +0 -21
- package/dist/cjs/hy-user-login-form.cjs.entry.js +0 -23
- package/dist/cjs/hy-video.cjs.entry.js +0 -67
- package/dist/cjs/index-314ad166.js +0 -967
- package/dist/esm/color-box.entry.js +0 -15
- package/dist/esm/emotion.esm-87895ee1.js +0 -1395
- package/dist/esm/hy-accordion-container_5.entry.js +0 -570
- package/dist/esm/hy-adjacent-image-text.entry.js +0 -47
- package/dist/esm/hy-anchor-link-list.entry.js +0 -41
- package/dist/esm/hy-badge.entry.js +0 -17
- package/dist/esm/hy-banner.entry.js +0 -41
- package/dist/esm/hy-baseline.entry.js +0 -28
- package/dist/esm/hy-box-container.entry.js +0 -29
- package/dist/esm/hy-box.entry.js +0 -161
- package/dist/esm/hy-breadcrumbs.entry.js +0 -227
- package/dist/esm/hy-button.entry.js +0 -96
- package/dist/esm/hy-checkbox.entry.js +0 -29
- package/dist/esm/hy-collaboration.entry.js +0 -15
- package/dist/esm/hy-content-list-item.entry.js +0 -66
- package/dist/esm/hy-content-list.entry.js +0 -108
- package/dist/esm/hy-crisis-banner.entry.js +0 -15
- package/dist/esm/hy-cta-button.entry.js +0 -26
- package/dist/esm/hy-cta-link.entry.js +0 -22
- package/dist/esm/hy-desktop-menu-links.entry.js +0 -324
- package/dist/esm/hy-docs-container.entry.js +0 -15
- package/dist/esm/hy-dropdown-panel_2.entry.js +0 -22
- package/dist/esm/hy-dropdown.entry.js +0 -109
- package/dist/esm/hy-filter-group-item.entry.js +0 -13
- package/dist/esm/hy-filter-group.entry.js +0 -33
- package/dist/esm/hy-filter-list-type.entry.js +0 -24
- package/dist/esm/hy-filter-visibility-tool-reset_2.entry.js +0 -21
- package/dist/esm/hy-filter-visibility-tool.entry.js +0 -20
- package/dist/esm/hy-footer_5.entry.js +0 -193
- package/dist/esm/hy-general-list_2.entry.js +0 -89
- package/dist/esm/hy-grid-container.entry.js +0 -16
- package/dist/esm/hy-grid-item.entry.js +0 -27
- package/dist/esm/hy-grid-row.entry.js +0 -16
- package/dist/esm/hy-heading.entry.js +0 -63
- package/dist/esm/hy-hero.entry.js +0 -97
- package/dist/esm/hy-icon.entry.js +0 -360
- package/dist/esm/hy-image.entry.js +0 -46
- package/dist/esm/hy-ingress.entry.js +0 -26
- package/dist/esm/hy-introduction.entry.js +0 -51
- package/dist/esm/hy-key-figure-group.entry.js +0 -73
- package/dist/esm/hy-key-figure.entry.js +0 -18
- package/dist/esm/hy-key-highlight-group.entry.js +0 -40
- package/dist/esm/hy-key-highlight.entry.js +0 -18
- package/dist/esm/hy-large-process-flow-phase.entry.js +0 -33
- package/dist/esm/hy-large-process-flow.entry.js +0 -40
- package/dist/esm/hy-link-box-list.entry.js +0 -50
- package/dist/esm/hy-link-box.entry.js +0 -75
- package/dist/esm/hy-link-list.entry.js +0 -40
- package/dist/esm/hy-link.entry.js +0 -21
- package/dist/esm/hy-list-item.entry.js +0 -235
- package/dist/esm/hy-logo-grid-item.entry.js +0 -26
- package/dist/esm/hy-logo-grid.entry.js +0 -16
- package/dist/esm/hy-main-content-wrapper.entry.js +0 -16
- package/dist/esm/hy-main.entry.js +0 -21
- package/dist/esm/hy-menu-item-sidebar.entry.js +0 -155
- package/dist/esm/hy-menu-item.entry.js +0 -143
- package/dist/esm/hy-menu-language-item.entry.js +0 -21
- package/dist/esm/hy-menu-language.entry.js +0 -87
- package/dist/esm/hy-menu-level-container.entry.js +0 -133
- package/dist/esm/hy-menu-main-group.entry.js +0 -147
- package/dist/esm/hy-menu-mobile-breadcrumb.entry.js +0 -21
- package/dist/esm/hy-menu-sidebar.entry.js +0 -286
- package/dist/esm/hy-menu.entry.js +0 -107
- package/dist/esm/hy-mobile-menu-shortcuts.entry.js +0 -22
- package/dist/esm/hy-opening-hours-content.entry.js +0 -39
- package/dist/esm/hy-opening-hours.entry.js +0 -31
- package/dist/esm/hy-pager-item.entry.js +0 -41
- package/dist/esm/hy-pager.entry.js +0 -16
- package/dist/esm/hy-paragraph-text.entry.js +0 -41
- package/dist/esm/hy-person-card.entry.js +0 -80
- package/dist/esm/hy-person-profile.entry.js +0 -57
- package/dist/esm/hy-process-flow-box.entry.js +0 -24
- package/dist/esm/hy-process.entry.js +0 -53
- package/dist/esm/hy-prominent-image.entry.js +0 -32
- package/dist/esm/hy-quote.entry.js +0 -26
- package/dist/esm/hy-row.entry.js +0 -38
- package/dist/esm/hy-search-field.entry.js +0 -47
- package/dist/esm/hy-section-container.entry.js +0 -15
- package/dist/esm/hy-shortcuts.entry.js +0 -56
- package/dist/esm/hy-site-header_3.entry.js +0 -438
- package/dist/esm/hy-table-container.entry.js +0 -16
- package/dist/esm/hy-tag.entry.js +0 -16
- package/dist/esm/hy-tiny-text.entry.js +0 -16
- package/dist/esm/hy-twitter-feed.entry.js +0 -23
- package/dist/esm/hy-two-columns.entry.js +0 -17
- package/dist/esm/hy-user-login-form.entry.js +0 -19
- package/dist/esm/hy-video.entry.js +0 -63
- package/dist/esm/index-41a1e449.js +0 -965
- package/dist/huds-lib/p-003597de.entry.js +0 -1
- package/dist/huds-lib/p-00a1f0c4.entry.js +0 -1
- package/dist/huds-lib/p-045ec3b7.entry.js +0 -6
- package/dist/huds-lib/p-065ae4a9.entry.js +0 -1
- package/dist/huds-lib/p-095afc4e.entry.js +0 -1
- package/dist/huds-lib/p-0a37696c.entry.js +0 -1
- package/dist/huds-lib/p-0b2e3057.entry.js +0 -1
- package/dist/huds-lib/p-0ba24d1d.entry.js +0 -1
- package/dist/huds-lib/p-0d751fcd.entry.js +0 -1
- package/dist/huds-lib/p-0def2cda.entry.js +0 -1
- package/dist/huds-lib/p-0f9c4661.entry.js +0 -8
- package/dist/huds-lib/p-114f1281.entry.js +0 -1
- package/dist/huds-lib/p-14a7e308.entry.js +0 -1
- package/dist/huds-lib/p-179221b4.entry.js +0 -1
- package/dist/huds-lib/p-1ed13a8e.entry.js +0 -1
- package/dist/huds-lib/p-1f5cb6ed.entry.js +0 -1
- package/dist/huds-lib/p-238bf6f7.entry.js +0 -1
- package/dist/huds-lib/p-24c25896.entry.js +0 -1
- package/dist/huds-lib/p-27a613af.entry.js +0 -1
- package/dist/huds-lib/p-29a5f847.entry.js +0 -1
- package/dist/huds-lib/p-2c83cfcf.entry.js +0 -1
- package/dist/huds-lib/p-309dde97.entry.js +0 -1
- package/dist/huds-lib/p-31d9c326.entry.js +0 -1
- package/dist/huds-lib/p-349817f6.entry.js +0 -1
- package/dist/huds-lib/p-3641da70.entry.js +0 -1
- package/dist/huds-lib/p-3bf480d9.entry.js +0 -1
- package/dist/huds-lib/p-3d35d226.entry.js +0 -1
- package/dist/huds-lib/p-3e4344d2.entry.js +0 -1
- package/dist/huds-lib/p-3f050660.entry.js +0 -1
- package/dist/huds-lib/p-40ab2704.entry.js +0 -6
- package/dist/huds-lib/p-4252e76e.entry.js +0 -1
- package/dist/huds-lib/p-47d919f5.entry.js +0 -1
- package/dist/huds-lib/p-488053bf.entry.js +0 -1
- package/dist/huds-lib/p-497703c3.entry.js +0 -1
- package/dist/huds-lib/p-4d4869f9.entry.js +0 -1
- package/dist/huds-lib/p-518b6042.entry.js +0 -1
- package/dist/huds-lib/p-51dd0bf2.entry.js +0 -1
- package/dist/huds-lib/p-521557a1.entry.js +0 -1
- package/dist/huds-lib/p-570b0c50.entry.js +0 -1
- package/dist/huds-lib/p-604e4a62.entry.js +0 -1
- package/dist/huds-lib/p-608090da.entry.js +0 -1
- package/dist/huds-lib/p-67b6fddc.entry.js +0 -1
- package/dist/huds-lib/p-69559eff.entry.js +0 -1
- package/dist/huds-lib/p-69849560.entry.js +0 -1
- package/dist/huds-lib/p-6c54b7bc.entry.js +0 -1
- package/dist/huds-lib/p-6c56dcbb.entry.js +0 -1
- package/dist/huds-lib/p-7225fde6.entry.js +0 -1
- package/dist/huds-lib/p-734da8db.entry.js +0 -1
- package/dist/huds-lib/p-75f84185.entry.js +0 -1
- package/dist/huds-lib/p-795c4838.entry.js +0 -1
- package/dist/huds-lib/p-7ca87180.entry.js +0 -1
- package/dist/huds-lib/p-7dd26e2a.entry.js +0 -1
- package/dist/huds-lib/p-830cfabf.entry.js +0 -69
- package/dist/huds-lib/p-8a7b55ed.entry.js +0 -1
- package/dist/huds-lib/p-8f314f7f.entry.js +0 -1
- package/dist/huds-lib/p-90a2d5bd.entry.js +0 -1
- package/dist/huds-lib/p-98487b2c.entry.js +0 -1
- package/dist/huds-lib/p-9a45dd9a.entry.js +0 -1
- package/dist/huds-lib/p-9b5113e0.entry.js +0 -1
- package/dist/huds-lib/p-a0a1ead3.entry.js +0 -1
- package/dist/huds-lib/p-a4745be5.entry.js +0 -1
- package/dist/huds-lib/p-a54ddb3e.entry.js +0 -1
- package/dist/huds-lib/p-a7922d26.entry.js +0 -1
- package/dist/huds-lib/p-a82d4779.js +0 -1
- package/dist/huds-lib/p-aca0eb7d.entry.js +0 -1
- package/dist/huds-lib/p-afe191fd.entry.js +0 -1
- package/dist/huds-lib/p-b7268181.entry.js +0 -1
- package/dist/huds-lib/p-baada6d9.entry.js +0 -1
- package/dist/huds-lib/p-bd31e4b5.entry.js +0 -1
- package/dist/huds-lib/p-bd56a257.entry.js +0 -1
- package/dist/huds-lib/p-c2b771ef.entry.js +0 -1
- package/dist/huds-lib/p-c87b7917.entry.js +0 -1
- package/dist/huds-lib/p-ca66cf04.js +0 -1
- package/dist/huds-lib/p-d56f5a7a.entry.js +0 -1
- package/dist/huds-lib/p-d5a6bba6.entry.js +0 -1
- package/dist/huds-lib/p-db4dc333.entry.js +0 -1
- package/dist/huds-lib/p-dc6a653f.entry.js +0 -1
- package/dist/huds-lib/p-dd2d9165.entry.js +0 -1
- package/dist/huds-lib/p-e24fb999.entry.js +0 -1
- package/dist/huds-lib/p-e430c2a0.entry.js +0 -1
- package/dist/huds-lib/p-e7abd29a.entry.js +0 -1
- package/dist/huds-lib/p-e7c21f51.entry.js +0 -1
- package/dist/huds-lib/p-e834c239.entry.js +0 -1
- package/dist/huds-lib/p-efc359e3.entry.js +0 -1
- package/dist/huds-lib/p-f0d518a5.entry.js +0 -1
- package/dist/huds-lib/p-fbf11f85.entry.js +0 -1
- package/dist/huds-lib/p-fcf2d27d.entry.js +0 -1
- package/dist/huds-lib/p-ff62346a.entry.js +0 -1
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -13
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -10
- package/loader/index.mjs +0 -22
- package/loader/node-main.js +0 -3
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-dd5e5023.js');
|
|
6
|
-
const utils = require('./utils-eeb7b089.js');
|
|
7
|
-
|
|
8
|
-
const menuItemCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow:#f9a21a;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host(.hy-menu-item--mobile){--menu-item-display:flex;display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:4px}:host(.hy-menu-item--mobile.hy-menu-item--alternative){border-bottom:0 none;border-top:1px solid black}:host(.hy-menu-item--mobile:last-of-type){border-bottom:0 none}:host(.hy-menu-item--mobile.is-hidden){visibility:hidden !important}:host(.hy-menu-item--mobile.is-hidden):focus{outline:none}:host(.hy-menu-item--sidenav){display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column;flex-flow:column;--hy-menu-item-sidenav-display:block}:host(.hy-menu-item--sidenav.is-active){display:block;visibility:visible}:host(.hy-menu-item--sidenav.is-active--child){display:block;visibility:visible}:host(.hy-menu-item--sidenav.in-active-trail){display:block;visibility:visible}:host(.hy-menu-item) a{font-size:1rem;line-height:20px;font-weight:600;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--brand-main);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--main-font-family);letter-spacing:-0.5px;text-decoration:none;width:100%;padding:12px 16px}:host(.hy-menu-item) a:focus{outline:solid 2px var(--additional-yellow);outline-offset:-2px}:host(.hy-menu-item) a .hy-menu-item__label hy-icon{display:-webkit-inline-box !important;display:-ms-inline-flexbox !important;display:inline-flex !important;margin-left:6px;margin-right:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}:host(.hy-menu-item) a .hy-menu-item__label hy-icon svg{fill:var(--brand-main)}:host(.hy-menu-item) a.hy-menu-item--mobile.first{font-size:1.3125rem;line-height:28px;font-weight:700;color:var(--brand-main-light);letter-spacing:-0.42px;padding:16px 0 16px 16px}:host(.hy-menu-item) a.hy-menu-item--mobile.is-active{color:var(--grayscale-black);position:relative}:host(.hy-menu-item) a.hy-menu-item--mobile.is-active:before{border-left:3px solid var(--grayscale-black);content:\"\";height:75%;left:10px;position:absolute;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host(.hy-menu-item) a.hy-menu-item--mobile.in-active-trail{font-weight:700;color:var(--grayscale-black)}:host(.hy-menu-item) a.hy-menu-item--mobile.in-active-trail:before{border-left-width:3px;height:55%}:host(.hy-menu-item) a.hy-menu-item--mobile.is-heading{font-size:1.3125rem;line-height:28px;font-weight:700;color:var(--brand-main-light);letter-spacing:-0.42px;padding:16px}:host(.hy-menu-item) a.hy-menu-item--mobile.is-heading.is-active,:host(.hy-menu-item) a.hy-menu-item--mobile.is-heading.in-active-trail{font-weight:700;background:transparent;border-bottom:0;color:var(--grayscale-black)}:host(.hy-menu-item) a.hy-menu-item--mobile.is-heading.is-active:before,:host(.hy-menu-item) a.hy-menu-item--mobile.is-heading.in-active-trail:before{border-left-width:3px;height:55%}:host(.hy-menu-item) a.hy-menu-item--mobile>hy-icon{-ms-flex-item-align:start;align-self:flex-start;margin-top:10px;-webkit-transform:translateY(-50%);transform:translateY(-50%)}:host(.hy-menu-item) a.hy-menu-item--mobile hy-icon+.hy-menu-item__label{margin-left:10px}:host(.hy-menu-item) a.is-heading{display:inherit}@media (min-width: 75.0625rem){:host(.hy-menu-item) a.is-heading{display:none}}:host(.hy-menu-item) a.hy-menu-item--sidenav{font-size:1.125rem;line-height:24px;font-weight:700;color:var(--brand-main-light);display:var(--hy-menu-item-sidenav-display);font-family:var(--main-font-family);margin:10px 0;padding:8px 0}:host(.hy-menu-item) a.hy-menu-item--sidenav:focus{outline-offset:4px}:host(.hy-menu-item) a.hy-menu-item--sidenav:hover{color:var(--brand-main-nearly-black)}:host(.hy-menu-item) a.hy-menu-item--sidenav.is-active{color:var(--brand-main-nearly-black);text-decoration:none}:host(.hy-menu-item) a.hy-menu-item--sidenav.is-active .hy-menu-item__label{padding-bottom:0}:host(.hy-menu-item) a.hy-menu-item--sidenav.is-active--heading{font-size:1.625rem;line-height:40px;color:var(--brand-main-nearly-black);text-transform:uppercase}:host(.hy-menu-item) a.hy-menu-item--sidenav.is-active--heading .hy-menu-item__label{border-bottom:4px solid var(--brand-main-nearly-black);padding:0}:host(.hy-menu-item) a.hy-menu-item--sidenav.is-active--heading .hy-menu-item__label__icon{display:none}:host(.hy-menu-item) a.hy-menu-item--sidenav.is-active--child{color:var(--brand-main-light);text-decoration:none}:host(.hy-menu-item) a.hy-menu-item--sidenav .hy-menu-item__label__icon{color:var(--brand-main-light);display:inline-block;padding-left:5px}.is-active :host(.hy-menu-item) a.hy-menu-item--sidenav .hy-menu-item__label__icon{display:none}:host(.hy-menu-item) a.hy-menu-item--sidenav.is-parent{font-size:1rem;line-height:22px;font-weight:600;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--brand-main-light);display:-webkit-box;display:-ms-flexbox;display:flex;text-decoration:none}:host(.hy-menu-item) a.hy-menu-item--sidenav.is-parent:hover{color:var(--brand-main-nearly-black)}:host(.hy-menu-item) a.hy-menu-item--sidenav.is-parent:hover .hy-menu-item__label__icon{color:var(--brand-main-nearly-black)}:host(.hy-menu-item) a.hy-menu-item--sidenav.is-parent .hy-menu-item__label__icon{margin-right:8px}.hy-menu-item__button{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:transparent;border:0;border-bottom:0;border-right:0;border-top:0;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:0;width:44px;position:relative;-ms-flex-negative:0;flex-shrink:0}.hy-menu-item__button:before{background-color:var(--grayscale-medium);width:1px;height:32px;content:\"\";display:inline-block;-webkit-transform:translateY(-50%);transform:translateY(-50%);top:50%;left:0;position:absolute}.hy-menu-item__button svg{fill:var(--grayscale-black)}";
|
|
9
|
-
|
|
10
|
-
const MenuItem = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
index.registerInstance(this, hostRef);
|
|
13
|
-
this.addBreadcrumb = index.createEvent(this, "addBreadcrumb", 7);
|
|
14
|
-
this.menuContainerActiveTrail = index.createEvent(this, "menuContainerActiveTrail", 7);
|
|
15
|
-
this.menuContainerToggled = index.createEvent(this, "menuContainerToggled", 7);
|
|
16
|
-
this.routeClicked = index.createEvent(this, "routeClicked", 7);
|
|
17
|
-
this.inActiveTrail = false;
|
|
18
|
-
this.isActive = false;
|
|
19
|
-
this.isActiveChild = false;
|
|
20
|
-
this.isHeading = false;
|
|
21
|
-
this.isParent = false;
|
|
22
|
-
this.isDemo = false;
|
|
23
|
-
this.isExternal = false;
|
|
24
|
-
//@Prop() depth: number = 0;
|
|
25
|
-
this.menuItemAlternative = false;
|
|
26
|
-
this.menuLinkId = '';
|
|
27
|
-
this.menuType = utils.MenuType.desktop;
|
|
28
|
-
this.menuButtonSubmenuExpand = '';
|
|
29
|
-
this.ariaExpanded = false;
|
|
30
|
-
this.depth = 0;
|
|
31
|
-
this.hasChildren = null;
|
|
32
|
-
this.label = '';
|
|
33
|
-
this.parentAsHeading = '';
|
|
34
|
-
this.parentExpanded = false;
|
|
35
|
-
this.url = '';
|
|
36
|
-
}
|
|
37
|
-
// Listener for submenu expand button. Listener will toggle menu level
|
|
38
|
-
// container and add its parent to breadcrumbs.
|
|
39
|
-
handleClick() {
|
|
40
|
-
this.menuContainerToggled.emit({
|
|
41
|
-
triggerItem: this.menuLinkId,
|
|
42
|
-
triggerType: 'add',
|
|
43
|
-
});
|
|
44
|
-
const currentParent = this.el.parentNode;
|
|
45
|
-
let parentLabel = currentParent.parentElement.getAttribute('label')
|
|
46
|
-
? currentParent.parentElement.getAttribute('label')
|
|
47
|
-
: this.menuButtonBreadcrumbMain;
|
|
48
|
-
let isMainMenu = parentLabel == this.menuButtonBreadcrumbMain;
|
|
49
|
-
this.addBreadcrumb.emit({
|
|
50
|
-
url: this.url,
|
|
51
|
-
label: parentLabel,
|
|
52
|
-
bid: this.menuLinkId,
|
|
53
|
-
isMainMenu: isMainMenu,
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
componentWillLoad() {
|
|
57
|
-
// If is-active class is added by system, add it to menu component as well.
|
|
58
|
-
if (this.el.classList.contains('is-active')) {
|
|
59
|
-
this.isActive = true;
|
|
60
|
-
}
|
|
61
|
-
// Notify breadcrumbs if item is in active trail.
|
|
62
|
-
if (this.inActiveTrail && !this.isActive) {
|
|
63
|
-
const currentParent = this.el.parentNode;
|
|
64
|
-
let parentLabel = currentParent.parentElement.getAttribute('label')
|
|
65
|
-
? currentParent.parentElement.getAttribute('label')
|
|
66
|
-
: this.menuButtonBreadcrumbMain;
|
|
67
|
-
this.addBreadcrumb.emit({
|
|
68
|
-
url: this.url,
|
|
69
|
-
label: parentLabel,
|
|
70
|
-
bid: this.menuLinkId,
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
// If current menu item is active, trigger all parent menuLevelContainer
|
|
74
|
-
// elements in the same active-trail to open the menu.
|
|
75
|
-
if (this.isActive) {
|
|
76
|
-
const getParents = (elem) => {
|
|
77
|
-
let parents = [];
|
|
78
|
-
while (elem.parentNode && elem.parentNode.nodeName.toLowerCase() != 'hy-menu') {
|
|
79
|
-
elem = elem.parentNode;
|
|
80
|
-
parents.push(elem);
|
|
81
|
-
}
|
|
82
|
-
return parents;
|
|
83
|
-
};
|
|
84
|
-
const parents = getParents(this.el);
|
|
85
|
-
parents.forEach((element) => {
|
|
86
|
-
if (element.tagName.toLowerCase() === 'hy-menu-item') {
|
|
87
|
-
this.menuContainerActiveTrail.emit({
|
|
88
|
-
triggerItem: element.getAttribute('menu-link-id'),
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
this.hasChildren = this.el.getElementsByTagName('hy-menu-level-container').length >= 1;
|
|
94
|
-
}
|
|
95
|
-
render() {
|
|
96
|
-
switch (this.menuType) {
|
|
97
|
-
case utils.MenuType.desktop:
|
|
98
|
-
return (index.h(index.Host, { class: {
|
|
99
|
-
'is-active': this.isActive,
|
|
100
|
-
'hy-menu-item': true,
|
|
101
|
-
'hy-menu-item--alternative': this.menuItemAlternative,
|
|
102
|
-
'hy-menu-item--desktop': true,
|
|
103
|
-
'is-demo': this.isDemo,
|
|
104
|
-
} }, index.h("a", { "aria-current": this.isHeading.toString(), href: this.url, class: {
|
|
105
|
-
'is-active': this.isActive,
|
|
106
|
-
'in-active-trail': this.inActiveTrail,
|
|
107
|
-
'is-heading': this.isHeading,
|
|
108
|
-
'hy-menu-item--desktop': true,
|
|
109
|
-
'is-demo': this.isDemo,
|
|
110
|
-
} }, this.depth == 1 && (index.h("span", { class: "hy-menu-item__heading__icon" }, index.h("hy-icon", { icon: 'hy-icon-arrow-right', size: 40 }))), this.depth == 2 && (index.h("span", { class: "hy-menu-item__heading__icon" }, index.h("hy-icon", { icon: 'hy-icon-caret-right', size: 12 }))), index.h("span", { class: 'hy-menu-item__label' }, this.label)), this.hasChildren && index.h("slot", null)));
|
|
111
|
-
case utils.MenuType.mobile:
|
|
112
|
-
return (index.h(index.Host, { class: {
|
|
113
|
-
'is-active': this.isActive,
|
|
114
|
-
'hy-menu-item': true,
|
|
115
|
-
'hy-menu-item--alternative': this.menuItemAlternative,
|
|
116
|
-
'hy-menu-item--mobile': true,
|
|
117
|
-
'is-demo': this.isDemo,
|
|
118
|
-
} }, index.h("a", { "aria-current": this.isHeading.toString(), href: this.url, class: {
|
|
119
|
-
'is-active': this.isActive,
|
|
120
|
-
'in-active-trail': this.inActiveTrail,
|
|
121
|
-
'is-heading': this.isHeading,
|
|
122
|
-
'hy-menu-item--mobile': true,
|
|
123
|
-
'is-demo': this.isDemo,
|
|
124
|
-
'is-external': this.isExternal,
|
|
125
|
-
first: this.depth == 1,
|
|
126
|
-
} }, this.depth !== 1 && !this.isHeading && index.h("hy-icon", { icon: 'hy-icon-caret-right', size: 10 }), index.h("span", { class: 'hy-menu-item__label' }, this.label, this.isExternal && index.h("hy-icon", { icon: 'hy-icon-arrow-right', size: 12 }))), this.hasChildren && (index.h("button", { "aria-haspopup": 'true', "aria-label": `Open submenu for ${this.label}`, onClick: () => this.handleClick(), class: 'hy-menu-item__button' }, index.h("hy-icon", { icon: 'hy-icon-caret-right', size: 16 }))), this.hasChildren && index.h("slot", null)));
|
|
127
|
-
case utils.MenuType.sidenav:
|
|
128
|
-
let classAttributes = [
|
|
129
|
-
'hy-menu-item--sidenav',
|
|
130
|
-
this.isDemo ? 'is-demo' : '',
|
|
131
|
-
this.isActive ? 'is-active' : '',
|
|
132
|
-
this.isParent ? 'is-parent' : '',
|
|
133
|
-
this.isActiveChild ? 'is-active--child' : '',
|
|
134
|
-
this.inActiveTrail ? 'in-active-trail' : '',
|
|
135
|
-
this.depth != null ? 'hy-menu-item--level-' + this.depth : '',
|
|
136
|
-
this.isActive && this.hasChildren ? 'is-active--heading' : '',
|
|
137
|
-
];
|
|
138
|
-
let anchorClassAttributes = [...classAttributes, this.isHeading ? 'is-heading' : ''];
|
|
139
|
-
classAttributes = [...classAttributes, 'hy-menu-item'];
|
|
140
|
-
return (index.h("li", { class: classAttributes.join(' ') }, index.h("a", { class: anchorClassAttributes.join(' '), href: this.url }, this.label), this.hasChildren && index.h("slot", null)));
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
get el() { return index.getElement(this); }
|
|
144
|
-
};
|
|
145
|
-
MenuItem.style = menuItemCss;
|
|
146
|
-
|
|
147
|
-
exports.hy_menu_item = MenuItem;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-dd5e5023.js');
|
|
6
|
-
|
|
7
|
-
const menuLanguageItemCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow:#f9a21a;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}.menu-language__link{font-size:1rem;line-height:24px;font-weight:600;color:var(--brand-main-light);font-family:var(--main-font-family);letter-spacing:-0.5px;overflow:hidden;text-decoration:none;padding:12px 12px;display:block}.menu-language__link:hover{background-color:var(--grayscale-background-box);color:var(--brand-main)}.menu-language__link.is-active{color:var(--grayscale-black);border:2px solid var(--grayscale-black)}.menu-language__link.is-disabled{color:var(--link-disabled)}.menu-language__link.is-disabled:hover{background-color:transparent;color:var(--link-disabled)}";
|
|
8
|
-
|
|
9
|
-
const SiteLanguage = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.isActive = false;
|
|
13
|
-
this.isDisabled = false;
|
|
14
|
-
}
|
|
15
|
-
render() {
|
|
16
|
-
return (index.h("li", { class: `menu-language__links-item` }, index.h("a", { href: this.url, class: {
|
|
17
|
-
'is-active': this.isActive,
|
|
18
|
-
'is-disabled': this.isDisabled,
|
|
19
|
-
'menu-language__link': true,
|
|
20
|
-
} }, this.label)));
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
SiteLanguage.style = menuLanguageItemCss;
|
|
24
|
-
|
|
25
|
-
exports.hy_menu_language_item = SiteLanguage;
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-dd5e5023.js');
|
|
6
|
-
const globalScript = require('./globalScript-0c66cb96.js');
|
|
7
|
-
|
|
8
|
-
const menuLanguageCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow:#f9a21a;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}.menu-language{position:relative;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%}.menu-language__toggle{font-size:1rem;line-height:16px;font-weight:700;color:var(--grayscale-black);-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:transparent;border:0;display:inline-grid;font-family:var(--main-font-family);gap:4px;grid-template-columns:repeat(2, auto);letter-spacing:-0.7px;margin:0;padding:14px 10px;text-transform:uppercase;height:100%}@media (min-width: 75.0625rem){.menu-language__toggle{font-size:0.75rem;line-height:24px;font-weight:400;color:var(--brand-main-nearly-black);letter-spacing:-0.5px;grid-template-columns:repeat(3, auto);padding:0}}@media (min-width: 1601px){.menu-language__toggle{font-size:0.875rem;line-height:24px}}.menu-language__toggle:hover{color:var(--brand-main);cursor:pointer}.menu-language__toggle:hover svg{fill:var(--brand-main)}.menu-language__toggle:focus{outline:solid 2px var(--additional-yellow);outline-offset:2px}.menu-language__toggle hy-icon:first-of-type{display:none !important}@media (min-width: 75.0625rem){.menu-language__toggle hy-icon:first-of-type{display:-webkit-inline-box !important;display:-ms-inline-flexbox !important;display:inline-flex !important}}.menu-language__toggle[aria-expanded=true]{position:relative}.menu-language__toggle[aria-expanded=true]:after{content:\"\";position:absolute;height:4px;right:0;bottom:-1px;left:0;background-color:var(--grayscale-black)}.menu-language__toggle[aria-expanded=true] span+hy-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.is-group .menu-language__toggle{color:var(--grayscale-white)}.is-group .menu-language__toggle:hover{color:var(--grayscale-medium);cursor:pointer}.is-group .menu-language__toggle:hover svg{fill:var(--grayscale-medium)}.menu-language__dropdown{background-color:var(--grayscale-white);border-radius:0 0 5px 5px;-webkit-box-shadow:0 10px 10px rgba(0, 0, 0, 0.2);box-shadow:0 10px 10px rgba(0, 0, 0, 0.2);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column;flex-flow:column;justify-items:center;right:-15px;margin:0;padding:8px;position:absolute;text-transform:uppercase;visibility:visible;width:-webkit-max-content;width:-moz-max-content;width:max-content;z-index:100;min-width:160px}.menu-language__dropdown[aria-hidden=true]{display:none}@media (min-width: 75.0625rem){.menu-language__dropdown{left:-15px;right:0}}.menu-language__links{margin:0;padding:0;list-style:none;display:grid;gap:4px}";
|
|
9
|
-
|
|
10
|
-
const MenuLanguage = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
index.registerInstance(this, hostRef);
|
|
13
|
-
this.menuLanguageToggled = index.createEvent(this, "menuLanguageToggled", 7);
|
|
14
|
-
this.isGroup = false;
|
|
15
|
-
this.isMenuOpen = false;
|
|
16
|
-
}
|
|
17
|
-
// Close the language menu if user clicks anywhere outside the Menu language component.
|
|
18
|
-
handleOutsideMenuClick(event) {
|
|
19
|
-
this.isMenuOpen = false;
|
|
20
|
-
event.stopPropagation();
|
|
21
|
-
}
|
|
22
|
-
// CLose the language menu if user opens the desktop menu panel.
|
|
23
|
-
desktopMenuToggled() {
|
|
24
|
-
this.isMenuOpen = false;
|
|
25
|
-
}
|
|
26
|
-
// CLose the language menu if user opens the search panel
|
|
27
|
-
searchPanelToggled() {
|
|
28
|
-
this.isMenuOpen = false;
|
|
29
|
-
}
|
|
30
|
-
// Close the language menu if user opens University main menu
|
|
31
|
-
universityMainMenuPanelToggled() {
|
|
32
|
-
this.isMenuOpen = false;
|
|
33
|
-
}
|
|
34
|
-
handleComponentFocus(event) {
|
|
35
|
-
// Close desktop menu panel if it's open.
|
|
36
|
-
this.menuLanguageToggled.emit();
|
|
37
|
-
event.stopPropagation();
|
|
38
|
-
}
|
|
39
|
-
handleComponentClick(event) {
|
|
40
|
-
this.isMenuOpen = !this.isMenuOpen;
|
|
41
|
-
if (this.isMenuOpen) {
|
|
42
|
-
// Close desktop menu panel if it's open.
|
|
43
|
-
this.menuLanguageToggled.emit();
|
|
44
|
-
const languageMenuSelector = event.target;
|
|
45
|
-
this.adjustPosition(languageMenuSelector, this.el);
|
|
46
|
-
}
|
|
47
|
-
event.stopPropagation();
|
|
48
|
-
}
|
|
49
|
-
adjustPosition(languageMenuSelector, target) {
|
|
50
|
-
const languagePanel = languageMenuSelector.shadowRoot.querySelectorAll(`.menu-language__dropdown`)[0];
|
|
51
|
-
let headerHeight = '0';
|
|
52
|
-
let hyHeader = this.isGroup
|
|
53
|
-
? target.closest('.hy-site-header__content-top')
|
|
54
|
-
: target.closest('.hy-site-header');
|
|
55
|
-
if (hyHeader) {
|
|
56
|
-
let rectHeader = hyHeader.getBoundingClientRect();
|
|
57
|
-
let rectLangMenu = languageMenuSelector.getBoundingClientRect();
|
|
58
|
-
headerHeight = `${languageMenuSelector.offsetHeight + rectHeader.bottom + 8 - rectLangMenu.bottom}px`;
|
|
59
|
-
}
|
|
60
|
-
languagePanel.style.top = headerHeight;
|
|
61
|
-
}
|
|
62
|
-
async componentWillLoad() {
|
|
63
|
-
this._dataMenuLanguage = await globalScript.jsonParserWorker(this.dataMenuLanguage);
|
|
64
|
-
this._labels = await globalScript.jsonParserWorker(this.labels);
|
|
65
|
-
}
|
|
66
|
-
render() {
|
|
67
|
-
const black = 'var(--brand-main-nearly-black)';
|
|
68
|
-
const white = 'var(--grayscale-white)';
|
|
69
|
-
const svgColor = this.isGroup ? white : black;
|
|
70
|
-
const globeIconSize = this.isGroup ? 16 : 14;
|
|
71
|
-
return (index.h("div", { class: {
|
|
72
|
-
'menu-language': true,
|
|
73
|
-
'is-open': this.isMenuOpen,
|
|
74
|
-
'is-group': this.isGroup,
|
|
75
|
-
} }, index.h("button", { class: {
|
|
76
|
-
'menu-language__toggle': true,
|
|
77
|
-
}, "aria-label": this.isMenuOpen ? this._labels['close'] : this._labels['open'], "aria-expanded": `${this.isMenuOpen}` }, index.h("hy-icon", { icon: 'hy-icon-globe', size: globeIconSize, fill: svgColor }), index.h("span", null, this._dataMenuLanguage.map(({ isActive, langCode }) => {
|
|
78
|
-
if (isActive) {
|
|
79
|
-
return langCode;
|
|
80
|
-
}
|
|
81
|
-
})), index.h("hy-icon", { icon: 'hy-icon-caret-down', size: 8, fill: svgColor })), index.h("div", { class: {
|
|
82
|
-
'menu-language__dropdown': true,
|
|
83
|
-
}, "aria-hidden": `${!this.isMenuOpen}` }, index.h("ul", { class: "menu-language__links" }, this._dataMenuLanguage.map((item) => {
|
|
84
|
-
return (index.h("hy-menu-language-item", { "lang-code": item.langCode, url: item.url, label: item.label, abbr: item.abbr, "is-active": item.isActive, "is-disabled": item.isDisabled }));
|
|
85
|
-
})))));
|
|
86
|
-
}
|
|
87
|
-
get el() { return index.getElement(this); }
|
|
88
|
-
};
|
|
89
|
-
MenuLanguage.style = menuLanguageCss;
|
|
90
|
-
|
|
91
|
-
exports.hy_menu_language = MenuLanguage;
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-dd5e5023.js');
|
|
6
|
-
const utils = require('./utils-eeb7b089.js');
|
|
7
|
-
|
|
8
|
-
const menuLevelContainerCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow:#f9a21a;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}.hy-menu-level-container--mobile{background-color:var(--grayscale-white);display:block;height:0;left:0;position:absolute;top:0;-webkit-transform:translateX(100%);transform:translateX(100%);-webkit-transition:visibility 0.3s ease-in-out, opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:visibility 0.3s ease-in-out, opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out, visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;transition:transform 0.3s ease-in-out, visibility 0.3s ease-in-out, opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;visibility:hidden !important;width:100%}.hy-menu-level-container--mobile.is-open{height:auto;-webkit-transform:translateX(0);transform:translateX(0);visibility:visible !important;padding-bottom:96px}.hy-menu-level-container--mobile.hy-menu-level-container--level-0{padding-top:8px;position:relative}.hy-menu-level-container--mobile.hy-menu-level-container--level-0:before{background-color:var(--brand-main-light);content:\"\";display:block;height:3px;left:0;position:absolute;right:0;top:0}.hy-menu-level-container--mobile:focus{outline:0}.hy-menu-level-container--desktop{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column;flex-flow:column;width:100%}.hy-menu-level-container--desktop.is-open{display:block;visibility:visible}.hy-menu-level-container--desktop:not(.hy-menu-level-container--level-0):not(.hy-menu-level-container--level-2){display:none}.hy-menu-level-container--desktop.hy-menu-level-container--level-2{background-color:var(--grayscale-background-box)}.hy-menu-level-container--sidepanel{background-color:var(--grayscale-white);border-left:1px solid rgba(0, 0, 0, 0.2);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100vh;left:0;margin:0;max-width:320px;padding-left:13px;padding-right:13px;padding-top:240px;position:absolute;top:0;visibility:visible;width:20%;z-index:123}.hy-menu-level-container--sidepanel:not(.hy-menu-level-container--level-0){display:none;min-height:var(--minHeight);-webkit-transform:translateX(calc(100% - 1px));transform:translateX(calc(100% - 1px))}.hy-menu-level-container--sidepanel:not(.hy-menu-level-container--level-0).active-trail-panel,.hy-menu-level-container--sidepanel:not(.hy-menu-level-container--level-0).is-open{display:-webkit-box;display:-ms-flexbox;display:flex;max-width:320px;width:20vw}.hy-menu-level-container--sidepanel.is-open,.hy-menu-level-container--sidepanel.active-trail-panel{height:100%;min-height:var(--minHeight)}.hy-menu-level-container--sidenav{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column;flex-flow:column;margin:0;padding:0;position:relative}.hy-menu-level-container--sidenav:not(.hy-menu-level-container--level-0){opacity:0;visibility:hidden}.hy-menu-level-container--sidenav:not(.hy-menu-level-container--level-0).is-closed{-webkit-animation-direction:normal;animation-direction:normal;-webkit-animation-duration:0.25s;animation-duration:0.25s;-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards;-webkit-animation-name:slide-panel-in;animation-name:slide-panel-in}.hy-menu-level-container--sidenav:not(.hy-menu-level-container--level-0).is-open{-webkit-animation-direction:normal;animation-direction:normal;-webkit-animation-duration:0.25s;animation-duration:0.25s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-name:slide-panel-in;animation-name:slide-panel-in;display:-webkit-box;display:-ms-flexbox;display:flex;max-width:320px;opacity:1;visibility:visible;width:20vw}.hy-menu-level-container--sidenav.is-open.is-open-on-top{display:none;-webkit-transform:none !important;transform:none !important}.hy-menu-level-container--sidenav:not(.hy-menu-level-container--level-0).hy-menu-level-container.is-open{max-width:320px;width:20vw}.hy-menu-level-container--sidenav .hy-menu-level-container--level-0{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.hy-menu-level-container--sidenav:not(.hy-menu-level-container--level-0){background-color:var(--grayscale-white);border-left:1px solid rgba(0, 0, 0, 0.2);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100vh;left:0;margin:-100vh 0;max-width:320px;min-height:var(--minHeight);padding-left:13px;padding-right:13px;position:absolute;-webkit-transform:translateX(calc(100% - 1px));transform:translateX(calc(100% - 1px));width:20vw;z-index:123}.hy-menu-level-container--sidenav:not(.hy-menu-level-container--level-0).hy-menu-level-container--level-1{-webkit-transform:translateX(100%) !important;transform:translateX(100%) !important}.hy-menu-level-container--sidenav .hy-menu-level-container--level-1{margin:-100vh 0;padding:100vh 13px;top:0}.hy-menu-level-container--sidenav .hy-menu-level-container--level-2,.hy-menu-level-container--sidenav .hy-menu-level-container--level-3,.hy-menu-level-container--sidenav .hy-menu-level-container--level-4,.hy-menu-level-container--sidenav .hy-menu-level-container--level-5,.hy-menu-level-container--sidenav .hy-menu-level-container--level-6,.hy-menu-level-container--sidenav .hy-menu-level-container--level-7{padding:100vh 13px;top:100vh}@-webkit-keyframes slide-panel-in{from{display:none;opacity:0;-webkit-transform:translateX(0);transform:translateX(0);z-index:1}25%{display:-webkit-box;display:flex}35%{-webkit-transform:translateX(calc(100% - 1px));transform:translateX(calc(100% - 1px))}to{opacity:1;z-index:123}}@keyframes slide-panel-in{from{display:none;opacity:0;-webkit-transform:translateX(0);transform:translateX(0);z-index:1}25%{display:-webkit-box;display:-ms-flexbox;display:flex}35%{-webkit-transform:translateX(calc(100% - 1px));transform:translateX(calc(100% - 1px))}to{opacity:1;z-index:123}}@-webkit-keyframes slide-panel-out{from{-webkit-transform:translateX(100%);transform:translateX(100%);opacity:1;z-index:123}25%{-webkit-transform:translateX(0);transform:translateX(0)}95%{opacity:0;z-index:1}to{display:none}}@keyframes slide-panel-out{from{-webkit-transform:translateX(100%);transform:translateX(100%);opacity:1;z-index:123}25%{-webkit-transform:translateX(0);transform:translateX(0)}95%{opacity:0;z-index:1}to{display:none}}";
|
|
9
|
-
|
|
10
|
-
const MenuLevelContainer = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
index.registerInstance(this, hostRef);
|
|
13
|
-
this.menuType = utils.MenuType.mobile;
|
|
14
|
-
this.activeTrailTriggered = false;
|
|
15
|
-
this.depth = 0;
|
|
16
|
-
this.menuIsOpen = false;
|
|
17
|
-
}
|
|
18
|
-
// Add/Remove is-hidden class from each upper level menu-items
|
|
19
|
-
// to make browsing more accessible.
|
|
20
|
-
assignMenuItemClass(parentMenu, type) {
|
|
21
|
-
if (!parentMenu)
|
|
22
|
-
return;
|
|
23
|
-
const items = Array.from(parentMenu.children);
|
|
24
|
-
items.forEach((item) => {
|
|
25
|
-
if (type === 'remove') {
|
|
26
|
-
item.classList.remove('is-hidden');
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
item.classList.add('is-hidden');
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
// Listener for assigning active-trail for parent menu level container.
|
|
34
|
-
menuContainerActiveTrail(data) {
|
|
35
|
-
const currentMenuContainer = this.el.getAttribute('trigger-item');
|
|
36
|
-
if (currentMenuContainer === data.detail.triggerItem) {
|
|
37
|
-
this.activeTrailTriggered = true;
|
|
38
|
-
this.menuIsOpen = true;
|
|
39
|
-
this.assignMenuItemClass(this.el.parentElement.closest('hy-menu-level-container'), 'add');
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
// Listener for opening and closing menu level container.
|
|
43
|
-
menuContainerToggled(data) {
|
|
44
|
-
// Toggle submenu.
|
|
45
|
-
if (this.triggerItem == data.detail.triggerItem) {
|
|
46
|
-
this.activeTrailTriggered = false;
|
|
47
|
-
this.menuIsOpen = data.detail.triggerType != 'remove';
|
|
48
|
-
this.assignMenuItemClass(this.el.parentElement.closest('hy-menu-level-container'), data.detail.triggerType);
|
|
49
|
-
// Scroll to .hy-menu top.
|
|
50
|
-
let hyMenu = this.el.parentElement.closest('hy-menu');
|
|
51
|
-
hyMenu.shadowRoot.querySelector('.hy-menu').scrollTop = 0;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
componentWillUpdate() {
|
|
55
|
-
// Pass the menu type and menu-button-submenu-expand attributes to
|
|
56
|
-
// the child menu item component.
|
|
57
|
-
if (this.menuType) {
|
|
58
|
-
const items = Array.from(this.el.children);
|
|
59
|
-
items.forEach((item) => {
|
|
60
|
-
item.setAttribute('menu-type', this.menuType);
|
|
61
|
-
item.setAttribute('menu-button-submenu-expand', this.menuButtonSubmenuExpand);
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
componentWillLoad() {
|
|
66
|
-
// Set trigger item for each mobile menu level container and handle only submenus.
|
|
67
|
-
// Add a heading element foreach level.
|
|
68
|
-
if (this.menuType === utils.MenuType.mobile) {
|
|
69
|
-
if (this.menuLevel > 1) {
|
|
70
|
-
const parentMenuItem = this.el.closest('hy-menu-item');
|
|
71
|
-
this.triggerItem = parentMenuItem.getAttribute('menu-link-id');
|
|
72
|
-
this.headingItem = Object.assign(Object.assign({}, this.headingItem), { url: parentMenuItem.getAttribute('url') });
|
|
73
|
-
this.headingItem = Object.assign(Object.assign({}, this.headingItem), { label: parentMenuItem.getAttribute('label') });
|
|
74
|
-
this.headingItem = Object.assign(Object.assign({}, this.headingItem), { isActive: window.location.pathname === this.headingItem.url });
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
this.triggerItem = 'home';
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
// Set is-active-child and menu-level attributes to all sibling menu-items.
|
|
81
|
-
if (this.menuType === utils.MenuType.sidenav) {
|
|
82
|
-
const parentMenuItem = this.el.closest('hy-menu-item-sidebar');
|
|
83
|
-
if (parentMenuItem && parentMenuItem.classList.contains('is-active')) {
|
|
84
|
-
this.menuIsOpen = true;
|
|
85
|
-
const items = Array.from(this.el.children);
|
|
86
|
-
items.forEach((item) => {
|
|
87
|
-
item.setAttribute('is-active-child', 'true');
|
|
88
|
-
item.setAttribute('menu-level', this.menuLevel.toString());
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
render() {
|
|
94
|
-
let classAttributes = ['hy-menu-level-container', 'hy-menu-level-container--level-' + this.depth];
|
|
95
|
-
switch (this.menuType) {
|
|
96
|
-
case utils.MenuType.desktop:
|
|
97
|
-
classAttributes = [...classAttributes, 'hy-menu-level-container--desktop'];
|
|
98
|
-
return (index.h(index.Host, { class: classAttributes.join(' ') }, index.h("slot", null)));
|
|
99
|
-
case utils.MenuType.mobile:
|
|
100
|
-
classAttributes = [...classAttributes, 'hy-menu-level-container--mobile'];
|
|
101
|
-
if (this.depth === 1) {
|
|
102
|
-
classAttributes = [...classAttributes, 'is-open'];
|
|
103
|
-
return (index.h(index.Host, { "aria-expanded": this.menuIsOpen.toString(), class: classAttributes.join(' '), tabindex: '-1' }, index.h("slot", null)));
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
classAttributes = [...classAttributes, this.menuIsOpen ? 'is-open' : null];
|
|
107
|
-
return (index.h(index.Host, { "aria-expanded": this.menuIsOpen.toString(), class: classAttributes.join(' '), tabindex: '-1' }, index.h("hy-menu-item", { label: this.headingItem.label, url: this.headingItem.url, isHeading: true, isActive: this.headingItem.isActive, "menu-type": 'mobile', depth: this.menuLevel }), index.h("slot", null), index.h("slot", { name: "shortcuts" })));
|
|
108
|
-
}
|
|
109
|
-
case utils.MenuType.sidenav:
|
|
110
|
-
if (this.depth === 0) {
|
|
111
|
-
const shouldBeHidden = this.depth != null && this.depth === 0 ? 'is-open' : '';
|
|
112
|
-
classAttributes = [...classAttributes, 'hy-menu-level-container--sidenav', shouldBeHidden];
|
|
113
|
-
return (index.h("ul", { "data-menu-level": this.menuLevel, "data-depth": this.menuLevel, class: classAttributes.join(' ') }, index.h("slot", null)));
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
const isMenuOpen = this.menuIsOpen ? 'is-open_is-open__sub-level' : null;
|
|
117
|
-
const shouldBeHidden = this.depth != null && this.depth === 0 ? 'is-open' : '';
|
|
118
|
-
const parentMenuItem = this.el.closest('hy-menu-item-sidebar');
|
|
119
|
-
const parentClone = parentMenuItem !== null ? parentMenuItem.cloneNode(true) : null;
|
|
120
|
-
const parentLink = parentClone ? parentClone.querySelector('.hy-menu-item-sidebar__label') : null;
|
|
121
|
-
classAttributes = [...classAttributes, 'hy-menu-level-container--sidenav', shouldBeHidden, isMenuOpen];
|
|
122
|
-
return (index.h("ul", { "data-menu-level": this.menuLevel, "data-depth": this.menuLevel, class: classAttributes.join(' ') }, parentLink && (index.h("li", { class: "hy-menu-item-sidebar is-parent is-parent--sub-level" }, index.h("hy-icon", { class: 'hy-menu-item-parent__icon', icon: 'hy-icon-dot-arrow-right', fill: 'currentColor', size: 20 }), index.h("span", { "aria-level": this.depth, role: "heading", class: "hy-menu-item-sidebar--label-container", innerHTML: parentLink.outerHTML }))), index.h("slot", null)));
|
|
123
|
-
}
|
|
124
|
-
case utils.MenuType.sidepanel:
|
|
125
|
-
//const shouldBeHidden = (this.depth != null && this.depth === 1) ? 'is-open' : '';
|
|
126
|
-
classAttributes = [...classAttributes, 'hy-menu-level-container--sidepanel'];
|
|
127
|
-
const parentMenuItem = this.el.closest('hy-menu-item-sidebar');
|
|
128
|
-
const parentClone = parentMenuItem ? parentMenuItem.cloneNode(true) : null;
|
|
129
|
-
const parentLink = parentClone ? parentClone.querySelector('.hy-menu-item-sidebar__label') : null;
|
|
130
|
-
return (index.h("ul", { "data-menu-level": this.depth, "data-depth": this.menuLevel, class: classAttributes.join(' ') }, parentLink ? (index.h("li", { class: "hy-menu-item-sidebar is-parent is-parent--sub-level" }, index.h("hy-icon", { class: 'hy-menu-item-parent__icon', icon: 'hy-icon-dot-arrow-right', fill: 'currentColor', size: 20 }), index.h("span", { "aria-level": this.depth, role: "heading", class: "hy-menu-item-sidebar--label-container", innerHTML: parentLink.outerHTML }))) : (index.h("li", { class: "hy-menu-item-sidebar is-parent is-parent--sub-level is-parent--frontpage" }, index.h("span", { class: 'hy-menu-item__parent__icon' }, index.h("hy-icon", { class: 'hy-menu-item__parent__icon__svg', icon: 'hy-icon-caret-left', fill: 'currentColor', size: 10 })), index.h("div", { class: "hy-menu-item-sidebar--label-container" }, index.h("a", { class: "hy-menu-item-sidebar__label", href: this.frontUrl }, this.frontLabel)))), index.h("slot", null)));
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
get el() { return index.getElement(this); }
|
|
134
|
-
};
|
|
135
|
-
MenuLevelContainer.style = menuLevelContainerCss;
|
|
136
|
-
|
|
137
|
-
exports.hy_menu_level_container = MenuLevelContainer;
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-dd5e5023.js');
|
|
6
|
-
const utils = require('./utils-eeb7b089.js');
|
|
7
|
-
const globalScript = require('./globalScript-0c66cb96.js');
|
|
8
|
-
|
|
9
|
-
const hyMenuMainGroupCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow:#f9a21a;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}:host{display:block}:host(.menu--main-group){-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row;flex-flow:row;margin-left:28px}@media (min-width: 75.0625rem){:host(.menu--main-group){margin-right:auto}}.menu--main-group__toggle{font-size:0.875rem;line-height:16px;font-weight:600;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:var(--grayscale-black);border:0 none;color:var(--grayscale-white);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row;flex-flow:row;font-family:var(--main-font-family);letter-spacing:-0.44px;margin:0 -4px;padding:0;position:relative}.menu--main-group__toggle:focus{outline:none}.menu--main-group__toggle:hover{cursor:pointer}.menu--main-group__toggle:hover span{color:var(--grayscale-medium)}.menu--main-group__toggle:hover svg{fill:var(--grayscale-medium)}@media (min-width: 60rem){.menu--main-group__toggle .toggle__caret svg{height:15.27px;width:3px}}@media (min-width: 75.0625rem){.menu--main-group__toggle .toggle__caret svg{height:14px;width:3px}}@media (min-width: 60rem){.menu--main-group__toggle span{margin-left:17px}}.menu--main-group__toggle.is-open:after{border-bottom:3px solid white;bottom:-10px;content:\" \";position:absolute;width:100%}@media (min-width: 60rem){.menu--main-group__toggle.is-open .toggle__close{height:15px;width:15px}.menu--main-group__toggle.is-open .toggle__close svg{height:15px;width:15px}}@media (min-width: 60rem){.menu--main-group__toggle.is-open span{margin-left:10px}}.menu--main-group__dropdown{display:none;visibility:hidden}.menu--main-group__dropdown.is-open{background-color:var(--grayscale-black);border-radius:0 0 5px 5px;-webkit-box-shadow:0 10px 10px rgba(0, 0, 0, 0.2);box-shadow:0 10px 10px rgba(0, 0, 0, 0.2);color:var(--grayscale-white);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--main-font-family);left:0;margin:0;padding:6px 0 20px;position:absolute;top:0;visibility:visible;width:100%;z-index:511}.menu--main-group__dropdown.is-open .list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column;flex-flow:column;justify-items:center;padding-top:14px;position:relative}.menu--main-group__dropdown.is-open .panel-toggle{background-color:transparent;border:none;position:absolute;right:0;top:0}@media (min-width: 60rem){.menu--main-group__dropdown.is-open .panel-toggle{padding:26px 32px}}.menu--main-group__dropdown.is-open .panel-toggle__label{font-size:1rem;line-height:20px;font-weight:700;color:var(--grayscale-white);display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--main-font-family);letter-spacing:-0.5px;text-transform:uppercase}.menu--main-group__dropdown.is-open .panel-toggle__label__title{padding-right:12px}.menu--main-group__dropdown.is-open .panel-toggle__label:hover{cursor:pointer}.menu--main-group__dropdown.is-open .panel-toggle__label:hover span{color:var(--grayscale-medium)}.menu--main-group__dropdown.is-open .panel-toggle__label:hover svg{fill:var(--grayscale-medium)}.menu--main-group__dropdown.is-open .menu-main-link{font-size:1rem;line-height:20px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--main-font-family);-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-bottom:20px;text-decoration:none}@media (min-width: 75.0625rem){.menu--main-group__dropdown.is-open .menu-main-link{font-size:0.875rem;line-height:18px}}.menu--main-group__dropdown.is-open .menu-main-link:hover span{color:var(--grayscale-medium)}.menu--main-group__dropdown.is-open .menu-main-link:hover svg{fill:var(--grayscale-medium)}.menu--main-group__dropdown.is-open .menu--main-group__label{color:var(--grayscale-white);margin-left:12px}:host(.menu--main-group--mobile){-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row;flex-flow:row;position:relative}.menu--main-group__mobile-toggle{border:none;background:transparent;padding:15px 12px}.menu--main-group__mobile-toggle:hover{cursor:pointer}.menu--main-group__dropdown__top{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:23px}.menu--main-group__dropdown__close{border:none;background-color:transparent;padding:0;margin:0}.menu--main-group__dropdown__close:hover{cursor:pointer}.menu--main-group__logo-container .hy-site-logo__label.group{max-width:250px}.menu--main-group__dropdown__items{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.menu--main-group__dropdown__items .menu-main-link{font-size:0.9375rem;line-height:20px;background-color:var(--grayscale-dark-text);color:var(--grayscale-white);font-family:var(--main-font-family);letter-spacing:-0.5px;margin-bottom:8px;padding:14px 20px;text-decoration:none;width:100%}.menu--main-group__dropdown__items .menu-main-link:hover{text-decoration:underline}.menu--main-group__dropdown__donate{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background-color:var(--grayscale-dark-text);position:fixed;bottom:0;margin-left:-20px;width:100%}.menu--main-group__dropdown__donate .hy-link__donate.group{font-size:1rem;line-height:16px;font-weight:600;display:-webkit-box;display:-ms-flexbox;display:flex;color:var(--grayscale-white);font-family:var(--main-font-family);margin:20px auto 16px auto;text-decoration:none}.menu--main-group__dropdown__donate .hy-link__donate.group .hy-link__donate__label{margin-left:6px}.menu--main-group__dropdown--mobile{-webkit-box-direction:normal;-webkit-box-orient:vertical;background-color:var(--grayscale-black);bottom:0px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;justify-items:space-between;max-width:400px;overflow:hidden;padding:0px;place-items:stretch;position:fixed;right:0px;top:0px;-webkit-transform:translateX(100%);transform:translateX(100%);-webkit-transition:all 0.3s ease 0s;transition:all 0.3s ease 0s;visibility:hidden;width:0px}.menu--main-group__dropdown--mobile.is-open{padding:50px 20px 20px;-webkit-transform:translateX(0px);transform:translateX(0px);-webkit-transition:-webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1);transition:-webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1);transition:transform 0.3s cubic-bezier(0, 0, 0.3, 1);transition:transform 0.3s cubic-bezier(0, 0, 0.3, 1), -webkit-transform 0.3s cubic-bezier(0, 0, 0.3, 1);visibility:visible;width:90%;z-index:101}.menu--main-group__dropdown--mobile.is-open::after{opacity:1;visibility:visible}";
|
|
10
|
-
|
|
11
|
-
let keys = {
|
|
12
|
-
enter: 'Enter',
|
|
13
|
-
};
|
|
14
|
-
const HyMenuMainGroup = class {
|
|
15
|
-
constructor(hostRef) {
|
|
16
|
-
index.registerInstance(this, hostRef);
|
|
17
|
-
this.universityMainMenuToggled = index.createEvent(this, "universityMainMenuToggled", 7);
|
|
18
|
-
this.mobileMenuTopToggle = index.createEvent(this, "mobileMenuTopToggle", 7);
|
|
19
|
-
this.menuLabel = 'University main menu';
|
|
20
|
-
this.isMobile = false;
|
|
21
|
-
this.isMenuOpen = false;
|
|
22
|
-
}
|
|
23
|
-
handleComponentClick(event) {
|
|
24
|
-
event.stopPropagation();
|
|
25
|
-
this.emitEvent();
|
|
26
|
-
this.isMenuOpen = !this.isMenuOpen;
|
|
27
|
-
if (this.isMenuOpen) {
|
|
28
|
-
this.adjustMainMenuPosition(event.target);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
handleComponentKeyDown(event) {
|
|
32
|
-
event.stopPropagation();
|
|
33
|
-
const key = event.code;
|
|
34
|
-
let target = event.target;
|
|
35
|
-
if (key === 'Escape' && this.isMenuOpen) {
|
|
36
|
-
this.isMenuOpen = false;
|
|
37
|
-
this.emitEvent();
|
|
38
|
-
}
|
|
39
|
-
if (target && [keys.enter].includes(key)) {
|
|
40
|
-
this.isMenuOpen = !this.isMenuOpen;
|
|
41
|
-
if (this.isMenuOpen) {
|
|
42
|
-
this.emitEvent();
|
|
43
|
-
this.adjustMainMenuPosition(target);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
emitEvent() {
|
|
48
|
-
// Close other panels if they are open (lang menu, search, main menu, ..).
|
|
49
|
-
this.universityMainMenuToggled.emit();
|
|
50
|
-
this.mobileMenuTopToggle.emit();
|
|
51
|
-
}
|
|
52
|
-
adjustMainMenuPosition(target) {
|
|
53
|
-
let hyTopHeader = this.el.closest('.hy-site-header__content-top');
|
|
54
|
-
if (hyTopHeader && !hyTopHeader.hasAttribute('is-mobile')) {
|
|
55
|
-
let mainMenuToggle = target.shadowRoot.querySelector('.menu--main-group__toggle');
|
|
56
|
-
let mainMenuDropdown = target.shadowRoot.querySelector('.menu--main-group__dropdown');
|
|
57
|
-
let mainMenuList = target.shadowRoot.querySelector('.list');
|
|
58
|
-
if (mainMenuDropdown && mainMenuList && mainMenuToggle) {
|
|
59
|
-
let rectHeader = hyTopHeader.getBoundingClientRect();
|
|
60
|
-
let rectMenuToggle = mainMenuToggle.getBoundingClientRect();
|
|
61
|
-
mainMenuDropdown.style.top = `${rectHeader.height}px`;
|
|
62
|
-
mainMenuList.style.left = `${rectMenuToggle.left}px`;
|
|
63
|
-
}
|
|
64
|
-
let headerHeight = hyTopHeader.offsetHeight + 270;
|
|
65
|
-
this.showBackdropShadow('open', headerHeight);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
showBackdropShadow(state = 'close', top = 0) {
|
|
69
|
-
let hyHeader = this.el.closest('.hy-site-header');
|
|
70
|
-
let hyBackdropDiv = hyHeader.children[0];
|
|
71
|
-
if (hyBackdropDiv) {
|
|
72
|
-
if (state === 'open') {
|
|
73
|
-
let me = window.outerHeight - top;
|
|
74
|
-
hyBackdropDiv.style.height = `${me}px`;
|
|
75
|
-
hyBackdropDiv.style.top = `${top}px`;
|
|
76
|
-
hyBackdropDiv.style.position = 'absolute';
|
|
77
|
-
hyBackdropDiv.classList.add('is-active');
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
hyBackdropDiv.removeAttribute('style');
|
|
81
|
-
hyBackdropDiv.classList.remove('is-active');
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
async componentWillLoad() {
|
|
86
|
-
this._dataMainMenu = await globalScript.jsonParserWorker(this.dataMainMenu);
|
|
87
|
-
}
|
|
88
|
-
handleTopMenuClose(event) {
|
|
89
|
-
this.isMenuOpen = false;
|
|
90
|
-
this.mobileMenuTopToggle.emit();
|
|
91
|
-
this.showBackdropShadow();
|
|
92
|
-
event.stopPropagation();
|
|
93
|
-
}
|
|
94
|
-
// Close the University main menu if user clicks anywhere outside the component.
|
|
95
|
-
handleOutsideMenuClick(event) {
|
|
96
|
-
if (this.isMenuOpen) {
|
|
97
|
-
this.isMenuOpen = false;
|
|
98
|
-
this.handleTopMenuClose(event);
|
|
99
|
-
}
|
|
100
|
-
event.stopPropagation();
|
|
101
|
-
}
|
|
102
|
-
// CLose the University main menu if user opens the desktop menu panel.
|
|
103
|
-
desktopMenuToggled() {
|
|
104
|
-
this.isMenuOpen = false;
|
|
105
|
-
}
|
|
106
|
-
// CLose the University main menu if user opens the search panel
|
|
107
|
-
searchPanelToggled() {
|
|
108
|
-
this.isMenuOpen = false;
|
|
109
|
-
}
|
|
110
|
-
// CLose the University main menu if user opens the language menu panel.
|
|
111
|
-
languageMenuToggled() {
|
|
112
|
-
this.isMenuOpen = false;
|
|
113
|
-
}
|
|
114
|
-
render() {
|
|
115
|
-
const white = 'var(--grayscale-white)';
|
|
116
|
-
const logoSizeGroup = this.isMobile ? utils.SiteLogoSize.small : utils.SiteLogoSize.small;
|
|
117
|
-
const logoColorGroup = utils.ColorVariant.white;
|
|
118
|
-
return this.isMobile ? (index.h(index.Host, { class: {
|
|
119
|
-
'menu--main-group--mobile': true,
|
|
120
|
-
'menu--main-group--mobile__is-open': this.isMenuOpen,
|
|
121
|
-
} }, index.h("button", { "aria-label": this.menuLabel, class: {
|
|
122
|
-
'menu--main-group__mobile-toggle': true,
|
|
123
|
-
'is-open': this.isMenuOpen,
|
|
124
|
-
} }, index.h("hy-icon", { icon: 'hy-icon-slim-hamburger-menu', size: 20, fill: white })), index.h("nav", { role: "navigation", "aria-hidden": this.isMenuOpen ? 'false' : 'true', class: {
|
|
125
|
-
'menu--main-group__dropdown--mobile': true,
|
|
126
|
-
'is-open': this.isMenuOpen,
|
|
127
|
-
} }, index.h("div", { class: "menu--main-group__dropdown__top" }, index.h("div", { class: 'menu--main-group__logo-container', id: 'menu-logo' }, index.h("hy-site-logo", { "is-group": true, size: logoSizeGroup, color: logoColorGroup, url: this.siteUrl, label: this.siteLabel })), index.h("button", { "aria-label": `Close ${this.menuLabel}`, class: "menu--main-group__dropdown__close", onClick: (e) => this.handleTopMenuClose(e) }, index.h("hy-icon", { icon: 'hy-icon-remove', size: 20, fill: white }))), index.h("div", { class: "menu--main-group__dropdown__items" }, this._dataMainMenu.map((item) => {
|
|
128
|
-
return (index.h("a", { href: item.url, class: { 'menu-main-link': true } }, index.h("span", { class: 'menu--main-group__label' }, item.label)));
|
|
129
|
-
})), index.h("div", { class: "menu--main-group__dropdown__donate" }, this.donate &&
|
|
130
|
-
this.donate.map((i) => {
|
|
131
|
-
return (index.h("a", { class: 'menu--secondary__item hy-link__donate group', href: i.url }, index.h("hy-icon", { icon: 'hy-icon-heart-support', size: 14, fill: logoColorGroup }), index.h("span", { class: 'hy-link__donate__label group' }, i.label)));
|
|
132
|
-
}))))) : (index.h(index.Host, { class: {
|
|
133
|
-
'menu--main-group': true,
|
|
134
|
-
'menu--main-group__is-open': this.isMenuOpen,
|
|
135
|
-
} }, index.h("button", { class: {
|
|
136
|
-
'menu--main-group__toggle': true,
|
|
137
|
-
'is-open': this.isMenuOpen,
|
|
138
|
-
} }, this.isMenuOpen ? (index.h("hy-icon", { class: 'toggle__close', icon: 'hy-icon-remove', size: 8, fill: white })) : (index.h("hy-icon", { class: 'toggle__caret', icon: 'hy-icon-slim-hamburger-menu', size: 8, fill: white })), index.h("span", null, this.menuLabel)), index.h("div", { class: {
|
|
139
|
-
'menu--main-group__dropdown': true,
|
|
140
|
-
'is-open': this.isMenuOpen,
|
|
141
|
-
} }, index.h("div", { class: "list" }, this._dataMainMenu.map((item) => {
|
|
142
|
-
return (index.h("a", { href: item.url, class: { 'menu-main-link': true } }, index.h("span", { class: "heading-icon" }, index.h("hy-icon", { icon: 'hy-icon-caret-right', size: 10, fill: white })), index.h("span", { class: 'menu--main-group__label' }, item.label)));
|
|
143
|
-
})), index.h("button", { onClick: (e) => this.handleComponentClick(e), class: {
|
|
144
|
-
'panel-toggle': true,
|
|
145
|
-
}, "aria-label": "Close menu" }, index.h("span", { class: "panel-toggle__label" }, index.h("span", { class: "panel-toggle__label__title" }, "Close"), index.h("hy-icon", { icon: 'hy-icon-remove', size: 20, fill: utils.ColorVariant.white }))))));
|
|
146
|
-
}
|
|
147
|
-
get el() { return index.getElement(this); }
|
|
148
|
-
};
|
|
149
|
-
HyMenuMainGroup.style = hyMenuMainGroupCss;
|
|
150
|
-
|
|
151
|
-
exports.hy_menu_main_group = HyMenuMainGroup;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-dd5e5023.js');
|
|
6
|
-
|
|
7
|
-
const menuMobileBreadcrumbCss = ":root{--brand-main:#0e688b;--brand-main-soft:#b1e7ff;--brand-main-bright:#48c5f8;--brand-main-light:#107eab;--brand-main-active:#005379;--brand-main-dark:#003146;--brand-main-nearly-black:#000222;--link-blue:#0479a4;--link-disabled:#767676;--grayscale-white:#fff;--grayscale-slightly-gray:#fefefe;--grayscale-light:#f8f8f8;--grayscale-medium:#d2d2d2;--grayscale-background-box:#f5f5f5;--grayscale-tabs-border:#e6e6e6;--grayscale-background-arrow:#dfdfdf;--grayscale-medium-dark:#979797;--grayscale-dark:#555555;--grayscale-dark-text:#222222;--grayscale-black:#000000;--additional-red-light:#e5053a;--additional-red-dark:#a31621;--additional-purple-light:#420039;--additional-yellow:#f9a21a;--additional-skyblue:#48c5f8;--additional-orange:#d14600;--additional-green-light:#96ba3c;--additional-green-dark:#006400;--hover-gray:#eaeaea}*{-webkit-box-sizing:border-box;box-sizing:border-box}:root{--gutter-mobile:16px;--gutter-narrow:24px;--gutter-medium:24px;--gutter-wide:24px;--gutter-extrawide:32px}:root{--breakpoint-extrawide:75.0625rem;--breakpoint-max-width:75.0625rem;--breakpoint-medium:48rem;--breakpoint-narrow:30rem;--breakpoint-wide:60rem}.hy-menu-mobile-breadcrumb{font-size:0.9375rem;line-height:22px;font-weight:400;color:var(--brand-main-light);-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:transparent;border:0 none;cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:var(--main-font-family);text-decoration:none;padding:11px 0;text-align:left}.hy-menu-mobile-breadcrumb:focus{outline:solid 2px var(--additional-yellow);outline-offset:2px}.hy-menu-mobile-breadcrumb hy-icon{margin-right:8px}.hy-menu-mobile-breadcrumb hy-icon svg{fill:var(--grayscale-black)}";
|
|
8
|
-
|
|
9
|
-
const MenuMobileBreadcrumb = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.removeBreadcrumb = index.createEvent(this, "removeBreadcrumb", 7);
|
|
13
|
-
this.isFirst = false;
|
|
14
|
-
}
|
|
15
|
-
// Listener for a click. The current breadcrumb will be remove from the list.
|
|
16
|
-
handleClick() {
|
|
17
|
-
this.removeBreadcrumb.emit({ bid: this.bid });
|
|
18
|
-
}
|
|
19
|
-
render() {
|
|
20
|
-
return this.isFirst ? (index.h("a", { "aria-label": `${this.labelBack}: ${this.labelFrontPage}`, class: 'hy-menu-mobile-breadcrumb', href: this.logoUrl }, index.h("span", { class: 'hy-menu-mobile-breadcrumb__label' }, this.label))) : (index.h("button", { "aria-label": `${this.labelBack}: ${this.label}`, class: 'hy-menu-mobile-breadcrumb', onClick: () => this.handleClick() }, index.h("hy-icon", { icon: 'hy-icon-caret-left', size: 10 }), index.h("span", { class: 'hy-menu-mobile-breadcrumb__label' }, this.label)));
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
MenuMobileBreadcrumb.style = menuMobileBreadcrumbCss;
|
|
24
|
-
|
|
25
|
-
exports.hy_menu_mobile_breadcrumb = MenuMobileBreadcrumb;
|