@itcenteratunihelsinki/huds-lib 0.5.19 → 0.5.23
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.cjs.entry.js +1 -1
- package/dist/cjs/{globalScript-92a1392d.js → globalScript-0c66cb96.js} +1 -1
- package/dist/cjs/huds-lib.cjs.js +3 -3
- package/dist/cjs/hy-accordion-container_5.cjs.entry.js +578 -0
- package/dist/cjs/hy-adjacent-image-text.cjs.entry.js +2 -2
- package/dist/cjs/hy-anchor-link-list.cjs.entry.js +2 -2
- package/dist/cjs/hy-badge.cjs.entry.js +1 -1
- package/dist/cjs/hy-banner.cjs.entry.js +1 -1
- package/dist/cjs/hy-baseline.cjs.entry.js +1 -1
- package/dist/cjs/hy-box-container.cjs.entry.js +1 -1
- package/dist/cjs/hy-box.cjs.entry.js +1 -1
- package/dist/cjs/hy-breadcrumbs.cjs.entry.js +2 -2
- package/dist/cjs/hy-button.cjs.entry.js +1 -1
- package/dist/cjs/hy-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/hy-collaboration.cjs.entry.js +1 -1
- package/dist/cjs/hy-content-list-item.cjs.entry.js +2 -2
- package/dist/cjs/hy-content-list.cjs.entry.js +1 -1
- package/dist/cjs/hy-crisis-banner.cjs.entry.js +1 -1
- package/dist/cjs/hy-cta-button.cjs.entry.js +1 -1
- package/dist/cjs/hy-cta-link.cjs.entry.js +1 -1
- package/dist/cjs/hy-desktop-menu-links.cjs.entry.js +2 -2
- package/dist/cjs/hy-docs-container.cjs.entry.js +1 -1
- package/dist/cjs/hy-dropdown-panel_2.cjs.entry.js +1 -1
- package/dist/cjs/hy-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/hy-filter-group-item.cjs.entry.js +1 -1
- package/dist/cjs/hy-filter-group.cjs.entry.js +1 -1
- package/dist/cjs/hy-filter-list-type.cjs.entry.js +1 -1
- package/dist/cjs/hy-filter-visibility-tool-reset_2.cjs.entry.js +1 -1
- package/dist/cjs/hy-filter-visibility-tool.cjs.entry.js +1 -1
- package/dist/cjs/hy-footer_5.cjs.entry.js +2 -2
- package/dist/cjs/hy-general-list_2.cjs.entry.js +2 -2
- package/dist/cjs/hy-grid-container.cjs.entry.js +1 -1
- package/dist/cjs/hy-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/hy-grid-row.cjs.entry.js +1 -1
- package/dist/cjs/hy-heading.cjs.entry.js +6 -8
- package/dist/cjs/hy-hero.cjs.entry.js +7 -7
- package/dist/cjs/hy-icon.cjs.entry.js +1 -1
- package/dist/cjs/hy-image.cjs.entry.js +1 -1
- package/dist/cjs/hy-ingress.cjs.entry.js +1 -1
- package/dist/cjs/hy-introduction.cjs.entry.js +1 -1
- package/dist/cjs/hy-key-figure-group.cjs.entry.js +2 -2
- package/dist/cjs/hy-key-figure.cjs.entry.js +1 -1
- package/dist/cjs/hy-key-highlight-group.cjs.entry.js +2 -2
- package/dist/cjs/hy-key-highlight.cjs.entry.js +1 -1
- package/dist/cjs/hy-large-process-flow-phase.cjs.entry.js +2 -2
- package/dist/cjs/hy-large-process-flow.cjs.entry.js +2 -2
- package/dist/cjs/hy-link-box-list.cjs.entry.js +2 -2
- package/dist/cjs/hy-link-box.cjs.entry.js +1 -1
- package/dist/cjs/hy-link-list.cjs.entry.js +2 -2
- package/dist/cjs/hy-link.cjs.entry.js +1 -1
- package/dist/cjs/hy-list-item.cjs.entry.js +2 -2
- package/dist/cjs/hy-logo-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/hy-logo-grid.cjs.entry.js +1 -1
- package/dist/cjs/hy-main-content-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/hy-main.cjs.entry.js +1 -1
- package/dist/cjs/hy-menu-item-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/hy-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/hy-menu-language-item.cjs.entry.js +1 -1
- package/dist/cjs/{hy-menu-language_2.cjs.entry.js → hy-menu-language.cjs.entry.js} +2 -21
- package/dist/cjs/hy-menu-level-container.cjs.entry.js +1 -1
- package/dist/cjs/hy-menu-main-group.cjs.entry.js +2 -2
- package/dist/cjs/hy-menu-mobile-breadcrumb.cjs.entry.js +25 -0
- package/dist/cjs/hy-menu-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/hy-menu.cjs.entry.js +4 -4
- package/dist/cjs/hy-mobile-menu-shortcuts.cjs.entry.js +2 -2
- package/dist/cjs/hy-opening-hours-content.cjs.entry.js +1 -1
- package/dist/cjs/hy-opening-hours.cjs.entry.js +1 -1
- package/dist/cjs/hy-pager-item.cjs.entry.js +1 -1
- package/dist/cjs/hy-pager.cjs.entry.js +1 -1
- package/dist/cjs/hy-paragraph-text.cjs.entry.js +2 -2
- package/dist/cjs/hy-person-card.cjs.entry.js +1 -1
- package/dist/cjs/hy-person-profile.cjs.entry.js +61 -0
- package/dist/cjs/hy-process-flow-box.cjs.entry.js +1 -1
- package/dist/cjs/hy-process.cjs.entry.js +2 -2
- package/dist/cjs/hy-prominent-image.cjs.entry.js +1 -1
- package/dist/cjs/hy-quote.cjs.entry.js +1 -1
- package/dist/cjs/hy-row.cjs.entry.js +1 -1
- package/dist/cjs/hy-search-field.cjs.entry.js +1 -1
- package/dist/cjs/hy-section-container.cjs.entry.js +1 -1
- package/dist/cjs/hy-shortcuts.cjs.entry.js +1 -1
- package/dist/cjs/hy-site-header_3.cjs.entry.js +6 -5
- package/dist/cjs/hy-table-container.cjs.entry.js +1 -1
- package/dist/cjs/hy-tag.cjs.entry.js +1 -1
- package/dist/cjs/hy-tiny-text.cjs.entry.js +1 -1
- package/dist/cjs/hy-twitter-feed.cjs.entry.js +1 -1
- package/dist/cjs/hy-two-columns.cjs.entry.js +1 -1
- package/dist/cjs/hy-user-login-form.cjs.entry.js +1 -1
- package/dist/cjs/hy-video.cjs.entry.js +1 -1
- package/dist/cjs/{index-1b0fdf83.js → index-dd5e5023.js} +0 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/accordion-item/accordion-item.css +5 -4
- package/dist/collection/components/accordion-item/accordion-item.js +20 -20
- package/dist/collection/components/heading/heading.js +4 -7
- package/dist/collection/components/hy-hero/hy-hero.css +42 -6
- package/dist/collection/components/hy-hero/hy-hero.js +5 -5
- package/dist/collection/components/hy-list-item/hy-list-item.css +9 -4
- package/dist/collection/components/navigation/menu/menu.js +23 -8
- package/dist/collection/components/paragraph-text/paragraph-text.css +9 -7
- package/dist/collection/components/person-profile/person-profile-listing/person-profile-listing.css +188 -0
- package/dist/collection/components/person-profile/person-profile-listing/person-profile.listing.js +124 -0
- package/dist/collection/components/person-profile/person-profile.css +506 -0
- package/dist/collection/components/person-profile/person-profile.js +199 -0
- package/dist/collection/components/site-header/site-header.css +12 -0
- package/dist/collection/components/site-header/site-header.js +21 -2
- package/dist/esm/color-box.entry.js +1 -1
- package/dist/esm/{globalScript-968b96dd.js → globalScript-92c6b812.js} +1 -1
- package/dist/esm/huds-lib.js +3 -3
- package/dist/esm/hy-accordion-container_5.entry.js +570 -0
- package/dist/esm/hy-adjacent-image-text.entry.js +2 -2
- package/dist/esm/hy-anchor-link-list.entry.js +2 -2
- package/dist/esm/hy-badge.entry.js +1 -1
- package/dist/esm/hy-banner.entry.js +1 -1
- package/dist/esm/hy-baseline.entry.js +1 -1
- package/dist/esm/hy-box-container.entry.js +1 -1
- package/dist/esm/hy-box.entry.js +1 -1
- package/dist/esm/hy-breadcrumbs.entry.js +2 -2
- package/dist/esm/hy-button.entry.js +1 -1
- package/dist/esm/hy-checkbox.entry.js +1 -1
- package/dist/esm/hy-collaboration.entry.js +1 -1
- package/dist/esm/hy-content-list-item.entry.js +2 -2
- package/dist/esm/hy-content-list.entry.js +1 -1
- package/dist/esm/hy-crisis-banner.entry.js +1 -1
- package/dist/esm/hy-cta-button.entry.js +1 -1
- package/dist/esm/hy-cta-link.entry.js +1 -1
- package/dist/esm/hy-desktop-menu-links.entry.js +2 -2
- package/dist/esm/hy-docs-container.entry.js +1 -1
- package/dist/esm/hy-dropdown-panel_2.entry.js +1 -1
- package/dist/esm/hy-dropdown.entry.js +2 -2
- package/dist/esm/hy-filter-group-item.entry.js +1 -1
- package/dist/esm/hy-filter-group.entry.js +1 -1
- package/dist/esm/hy-filter-list-type.entry.js +1 -1
- package/dist/esm/hy-filter-visibility-tool-reset_2.entry.js +1 -1
- package/dist/esm/hy-filter-visibility-tool.entry.js +1 -1
- package/dist/esm/hy-footer_5.entry.js +2 -2
- package/dist/esm/hy-general-list_2.entry.js +2 -2
- package/dist/esm/hy-grid-container.entry.js +1 -1
- package/dist/esm/hy-grid-item.entry.js +1 -1
- package/dist/esm/hy-grid-row.entry.js +1 -1
- package/dist/esm/hy-heading.entry.js +6 -8
- package/dist/esm/hy-hero.entry.js +8 -8
- package/dist/esm/hy-icon.entry.js +1 -1
- package/dist/esm/hy-image.entry.js +1 -1
- package/dist/esm/hy-ingress.entry.js +1 -1
- package/dist/esm/hy-introduction.entry.js +1 -1
- package/dist/esm/hy-key-figure-group.entry.js +2 -2
- package/dist/esm/hy-key-figure.entry.js +1 -1
- package/dist/esm/hy-key-highlight-group.entry.js +2 -2
- package/dist/esm/hy-key-highlight.entry.js +1 -1
- package/dist/esm/hy-large-process-flow-phase.entry.js +2 -2
- package/dist/esm/hy-large-process-flow.entry.js +2 -2
- package/dist/esm/hy-link-box-list.entry.js +2 -2
- package/dist/esm/hy-link-box.entry.js +1 -1
- package/dist/esm/hy-link-list.entry.js +2 -2
- package/dist/esm/hy-link.entry.js +1 -1
- package/dist/esm/hy-list-item.entry.js +2 -2
- package/dist/esm/hy-logo-grid-item.entry.js +1 -1
- package/dist/esm/hy-logo-grid.entry.js +1 -1
- package/dist/esm/hy-main-content-wrapper.entry.js +1 -1
- package/dist/esm/hy-main.entry.js +1 -1
- package/dist/esm/hy-menu-item-sidebar.entry.js +1 -1
- package/dist/esm/hy-menu-item.entry.js +1 -1
- package/dist/esm/hy-menu-language-item.entry.js +1 -1
- package/dist/esm/{hy-menu-language_2.entry.js → hy-menu-language.entry.js} +3 -21
- package/dist/esm/hy-menu-level-container.entry.js +1 -1
- package/dist/esm/hy-menu-main-group.entry.js +2 -2
- package/dist/esm/hy-menu-mobile-breadcrumb.entry.js +21 -0
- package/dist/esm/hy-menu-sidebar.entry.js +1 -1
- package/dist/esm/hy-menu.entry.js +4 -4
- package/dist/esm/hy-mobile-menu-shortcuts.entry.js +2 -2
- package/dist/esm/hy-opening-hours-content.entry.js +1 -1
- package/dist/esm/hy-opening-hours.entry.js +1 -1
- package/dist/esm/hy-pager-item.entry.js +1 -1
- package/dist/esm/hy-pager.entry.js +1 -1
- package/dist/esm/hy-paragraph-text.entry.js +2 -2
- package/dist/esm/hy-person-card.entry.js +1 -1
- package/dist/esm/hy-person-profile.entry.js +57 -0
- package/dist/esm/hy-process-flow-box.entry.js +1 -1
- package/dist/esm/hy-process.entry.js +2 -2
- package/dist/esm/hy-prominent-image.entry.js +1 -1
- package/dist/esm/hy-quote.entry.js +1 -1
- package/dist/esm/hy-row.entry.js +1 -1
- package/dist/esm/hy-search-field.entry.js +1 -1
- package/dist/esm/hy-section-container.entry.js +1 -1
- package/dist/esm/hy-shortcuts.entry.js +1 -1
- package/dist/esm/hy-site-header_3.entry.js +6 -5
- package/dist/esm/hy-table-container.entry.js +1 -1
- package/dist/esm/hy-tag.entry.js +1 -1
- package/dist/esm/hy-tiny-text.entry.js +1 -1
- package/dist/esm/hy-twitter-feed.entry.js +1 -1
- package/dist/esm/hy-two-columns.entry.js +1 -1
- package/dist/esm/hy-user-login-form.entry.js +1 -1
- package/dist/esm/hy-video.entry.js +1 -1
- package/dist/esm/{index-a38b87db.js → index-083c8c8a.js} +0 -3
- package/dist/esm/loader.js +3 -3
- package/dist/huds-lib/huds-lib.esm.js +1 -1
- package/dist/huds-lib/{p-5b3a4a8b.entry.js → p-045ec3b7.entry.js} +1 -1
- package/dist/huds-lib/{p-c4960510.entry.js → p-064b4cbf.entry.js} +1 -1
- package/dist/huds-lib/p-0b2e3057.entry.js +1 -0
- package/dist/huds-lib/p-0f9c4661.entry.js +8 -0
- package/dist/huds-lib/{p-b1a3cbcc.entry.js → p-114f1281.entry.js} +1 -1
- package/dist/huds-lib/{p-81800bd1.entry.js → p-14f40b8c.entry.js} +1 -1
- package/dist/huds-lib/{p-15a21c20.entry.js → p-179221b4.entry.js} +1 -1
- package/dist/huds-lib/{p-b5ca8a38.entry.js → p-2517134c.entry.js} +1 -1
- package/dist/huds-lib/{p-e6a97c32.entry.js → p-27a613af.entry.js} +1 -1
- package/dist/huds-lib/{p-15db4fae.entry.js → p-29a5f847.entry.js} +1 -1
- package/dist/huds-lib/{p-3a0cbfbc.entry.js → p-309dde97.entry.js} +1 -1
- package/dist/huds-lib/{p-c3e38183.entry.js → p-33ffdffe.entry.js} +1 -1
- package/dist/huds-lib/{p-e475714a.entry.js → p-349817f6.entry.js} +1 -1
- package/dist/huds-lib/p-34f51e1d.entry.js +1 -0
- package/dist/huds-lib/{p-8b20a127.entry.js → p-3641da70.entry.js} +1 -1
- package/dist/huds-lib/{p-0116a0a5.entry.js → p-3bf480d9.entry.js} +1 -1
- package/dist/huds-lib/p-3d35d226.entry.js +1 -0
- package/dist/huds-lib/{p-891108e9.entry.js → p-40ab2704.entry.js} +1 -1
- package/dist/huds-lib/{p-9ab9c615.entry.js → p-4252e76e.entry.js} +1 -1
- package/dist/huds-lib/p-45c60364.entry.js +1 -0
- package/dist/huds-lib/{p-9482c6bf.entry.js → p-47192e43.entry.js} +1 -1
- package/dist/huds-lib/{p-a90b0293.entry.js → p-47d919f5.entry.js} +1 -1
- package/dist/huds-lib/{p-0ecafe0e.entry.js → p-488053bf.entry.js} +1 -1
- package/dist/huds-lib/{p-8cbbedb1.entry.js → p-48fbe621.entry.js} +1 -1
- package/dist/huds-lib/p-4c56d8d7.entry.js +1 -0
- package/dist/huds-lib/p-4d4869f9.entry.js +1 -0
- package/dist/huds-lib/{p-0977618c.entry.js → p-4d6f4bd3.entry.js} +1 -1
- package/dist/huds-lib/{p-2716775c.entry.js → p-518b6042.entry.js} +1 -1
- package/dist/huds-lib/{p-4404fbde.entry.js → p-51b159ea.entry.js} +1 -1
- package/dist/huds-lib/{p-caf7a56b.entry.js → p-5214f8e4.entry.js} +1 -1
- package/dist/huds-lib/{p-3ca46ddb.entry.js → p-521557a1.entry.js} +1 -1
- package/dist/huds-lib/{p-0260d2ca.entry.js → p-557d5e62.entry.js} +1 -1
- package/dist/huds-lib/{p-229d3332.entry.js → p-5e60356e.entry.js} +1 -1
- package/dist/huds-lib/{p-d60b07c4.entry.js → p-5ed9781b.entry.js} +1 -1
- package/dist/huds-lib/{p-6fd29d10.entry.js → p-604e4a62.entry.js} +1 -1
- package/dist/huds-lib/{p-64023b5d.entry.js → p-608090da.entry.js} +1 -1
- package/dist/huds-lib/{p-add4a25d.entry.js → p-67b6fddc.entry.js} +1 -1
- package/dist/huds-lib/{p-7f005622.entry.js → p-6c56dcbb.entry.js} +1 -1
- package/dist/huds-lib/{p-9caa985a.entry.js → p-6cc92340.entry.js} +1 -1
- package/dist/huds-lib/{p-26104af0.entry.js → p-70d43477.entry.js} +1 -1
- package/dist/huds-lib/{p-e6fa0f75.entry.js → p-734da8db.entry.js} +1 -1
- package/dist/huds-lib/{p-b8735152.entry.js → p-78060d4c.entry.js} +1 -1
- package/dist/huds-lib/{p-e1346358.entry.js → p-78ceaf5c.entry.js} +1 -1
- package/dist/huds-lib/{p-3862113f.entry.js → p-795c4838.entry.js} +1 -1
- package/dist/huds-lib/{p-7e9f2a43.entry.js → p-7d8c86f1.entry.js} +1 -1
- package/dist/huds-lib/{p-11e56f3a.entry.js → p-830cfabf.entry.js} +8 -8
- package/dist/huds-lib/{p-beeb1416.entry.js → p-85cad30d.entry.js} +1 -1
- package/dist/huds-lib/{p-d9de2cad.entry.js → p-8a62a954.entry.js} +1 -1
- package/dist/huds-lib/{p-efeeca30.entry.js → p-8a7b55ed.entry.js} +1 -1
- package/dist/huds-lib/{p-445be0e8.entry.js → p-8ddab2fa.entry.js} +1 -1
- package/dist/huds-lib/{p-ea7dde9b.entry.js → p-8f314f7f.entry.js} +1 -1
- package/dist/huds-lib/{p-1d255319.entry.js → p-9080f8a1.entry.js} +1 -1
- package/dist/huds-lib/{p-3f15571f.entry.js → p-938a2d69.entry.js} +1 -1
- package/dist/huds-lib/{p-dd2ab3e6.entry.js → p-99cdca42.entry.js} +1 -1
- package/dist/huds-lib/{p-2ed13bb3.entry.js → p-9a45dd9a.entry.js} +1 -1
- package/dist/huds-lib/{p-f7d11cd4.entry.js → p-9e1e7a50.entry.js} +1 -1
- package/dist/huds-lib/{p-b71d0912.entry.js → p-9f0357c6.entry.js} +1 -1
- package/dist/huds-lib/{p-2884f04c.entry.js → p-a099ede9.entry.js} +1 -1
- package/dist/huds-lib/{p-c143d160.entry.js → p-a54ddb3e.entry.js} +1 -1
- package/dist/huds-lib/{p-8fe61cc4.entry.js → p-a7922d26.entry.js} +1 -1
- package/dist/huds-lib/{p-d6588da7.entry.js → p-a86d576b.entry.js} +1 -1
- package/dist/huds-lib/{p-01712ca5.entry.js → p-aa135221.entry.js} +1 -1
- package/dist/huds-lib/{p-17c1f514.entry.js → p-aa3255bd.entry.js} +1 -1
- package/dist/huds-lib/p-ac362729.entry.js +1 -0
- package/dist/huds-lib/{p-535b56d4.entry.js → p-b1f5686d.entry.js} +1 -1
- package/dist/huds-lib/{p-3ef36a18.entry.js → p-b5d1ec3a.entry.js} +1 -1
- package/dist/huds-lib/{p-83a380fc.entry.js → p-b5fc027f.entry.js} +1 -1
- package/dist/huds-lib/{p-f4a9ea9c.entry.js → p-b950d89c.entry.js} +1 -1
- package/dist/huds-lib/{p-943998ee.entry.js → p-ba49a9c2.entry.js} +1 -1
- package/dist/huds-lib/{p-91e7dbdb.entry.js → p-baada6d9.entry.js} +1 -1
- package/dist/huds-lib/{p-d5584db1.js → p-bb24c6b5.js} +1 -1
- package/dist/huds-lib/{p-9eb39b28.entry.js → p-bd31e4b5.entry.js} +1 -1
- package/dist/huds-lib/{p-b86b5336.entry.js → p-c12bd151.entry.js} +1 -1
- package/dist/huds-lib/{p-1b85cd45.entry.js → p-c2b771ef.entry.js} +1 -1
- package/dist/huds-lib/{p-db142402.entry.js → p-cf1565c7.entry.js} +1 -1
- package/dist/huds-lib/{p-241216a3.entry.js → p-d5a6bba6.entry.js} +1 -1
- package/dist/huds-lib/{p-fb8f253d.entry.js → p-ddeb65de.entry.js} +1 -1
- package/dist/huds-lib/{p-9739d43b.entry.js → p-e7abd29a.entry.js} +1 -1
- package/dist/huds-lib/p-e933c51d.entry.js +1 -0
- package/dist/huds-lib/{p-c21d1933.entry.js → p-e93ed0a4.entry.js} +1 -1
- package/dist/huds-lib/{p-bffe53e9.entry.js → p-ed83fcf6.entry.js} +1 -1
- package/dist/huds-lib/{p-164c361b.entry.js → p-ede56435.entry.js} +1 -1
- package/dist/huds-lib/{p-3a2fd06e.entry.js → p-f110b94a.entry.js} +1 -1
- package/dist/huds-lib/{p-c8c24282.entry.js → p-f2fe08a4.entry.js} +1 -1
- package/dist/huds-lib/{p-ac7fbdbf.entry.js → p-fb3bcd59.entry.js} +1 -1
- package/dist/huds-lib/{p-5617bc3e.js → p-fd1edbd5.js} +1 -1
- package/dist/huds-lib/{p-d1249b2e.entry.js → p-ff62346a.entry.js} +1 -1
- package/dist/huds-lib/{p-a295071c.entry.js → p-ffa7f1fb.entry.js} +1 -1
- package/dist/types/components/heading/heading.d.ts +0 -1
- package/dist/types/components/navigation/menu/menu.d.ts +2 -1
- package/dist/types/components/person-profile/person-profile-listing/person-profile.listing.d.ts +14 -0
- package/dist/types/components/person-profile/person-profile.d.ts +12 -0
- package/dist/types/components/site-header/site-header.d.ts +1 -0
- package/dist/types/components.d.ts +51 -0
- package/package.json +1 -1
- package/dist/cjs/hy-accordion-container.cjs.entry.js +0 -29
- package/dist/cjs/hy-accordion-item.cjs.entry.js +0 -216
- package/dist/cjs/hy-tabs-item.cjs.entry.js +0 -20
- package/dist/cjs/hy-tabs.cjs.entry.js +0 -308
- package/dist/esm/hy-accordion-container.entry.js +0 -25
- package/dist/esm/hy-accordion-item.entry.js +0 -212
- package/dist/esm/hy-tabs-item.entry.js +0 -16
- package/dist/esm/hy-tabs.entry.js +0 -304
- package/dist/huds-lib/p-258c3b0e.entry.js +0 -1
- package/dist/huds-lib/p-31e8b291.entry.js +0 -1
- package/dist/huds-lib/p-54229a0d.entry.js +0 -1
- package/dist/huds-lib/p-5e1dc555.entry.js +0 -1
- package/dist/huds-lib/p-6b8b4259.entry.js +0 -1
- package/dist/huds-lib/p-97727091.entry.js +0 -8
- package/dist/huds-lib/p-a099a649.entry.js +0 -1
- package/dist/huds-lib/p-ce9d4716.entry.js +0 -1
- package/dist/huds-lib/p-d7e2d5d5.entry.js +0 -1
- package/dist/huds-lib/p-f5e78e68.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as i,H as t,g as a}from"./p-d5584db1.js";import{G as r}from"./p-e20f6203.js";import{j as l}from"./p-5617bc3e.js";const n=class{constructor(i){e(this,i),this.type=r.list,this.blank=!0,this.truncateDescription=!0,this.truncateLimit=140,this.hasSidebar=!1}async componentWillLoad(){this._dataItems=await l(this.dataItems);const e=this.el.closest(".hy-main");e&&e.classList.contains("with-sidebar")&&(this.hasSidebar=!0)}async watchPropHandler(e,i){e!==i&&(this._dataItems=await l(this.dataItems))}render(){const e=["hy-general-list",this.hasSidebar?"hy-general-list--with-sidebar":"",`hy-general-list--style-${this.type}`].join(" ");let a=this._dataItems;return"object"==typeof this._dataItems&&(a=Object.values(this._dataItems)),i(t,null,i("ul",{class:e},a&&a.map((e=>{return i("li",null,i("hy-general-list-item",{"has-sidebar":this.hasSidebar,target:this.blank,"data-location":e.url,description:this.truncateDescription?(t=e.description,a=this.truncateLimit,t.length>a?t.substr(0,a-1)+"...":t):e.description,id:e.id,imageAlt:e.imageAlt,imageUrl:e.imageUrl,"item-title":e.title,label:e.label,"sub-label":e.subLabel,tag:e.tag,date:e.date,type:e.type,url:e.url,"list-style":this.type}));var t,a}))),i("hy-box",{mb:"1.75, 1.75, 2, 2.5"}))}get el(){return a(this)}static get watchers(){return{dataItems:["watchPropHandler"]}}};n.style=":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}.hy-general-list{list-style:none;margin:0;padding:0}.hy-general-list--style-grid{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;gap:22px}@media (min-width: 30rem){.hy-general-list--style-grid{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}@media (min-width: 60rem){.hy-general-list--style-grid{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.hy-general-list--style-grid li{background-color:var(--grayscale-background-box);width:100%;height:auto}@media (min-width: 30rem){.hy-general-list--style-grid li{width:calc(100% / 2 - 22px)}}@media (min-width: 60rem){.hy-general-list--style-grid li{width:calc(100% / 3 - 22px)}}.hy-general-list--with-sidebar.hy-general-list--style-grid{gap:22px}@media (min-width: 30rem){.hy-general-list--with-sidebar.hy-general-list--style-grid{gap:24px}}@media (min-width: 30rem){.hy-general-list--with-sidebar.hy-general-list--style-grid li{width:calc(100% / 2 - 24px)}}@media (min-width: 60rem){.hy-general-list--with-sidebar.hy-general-list--style-grid li{width:calc(100% / 3 - 24px)}}";const s=class{constructor(i){e(this,i),this.hasSidebar=!0,this.imageAlt="",this.imageUrl=null,this.disableLazy=!1,this.subLabel="",this.date="",this.tag="",this.target=!0}render(){const e=["hy-general-list-item",`hy-general-list-item--style-${this.listStyle}`].join(" "),t=["hy-general-list-item__text-container"].join(" "),a=["hy-general-list-item__image-container"].join(" "),r=this.hasSidebar?"common":"large",l=["hy-general-list-item__title",`hy-general-list-item__title__${r}`].join(" "),n=["hy-general-list-item__description",`hy-general-list-item__description__${r}`].join(" ");return i("article",{class:e},i("a",{class:"hy-general-list-item__link",href:this.url,target:this.target?"_blank":"_self"},this.type&&i("div",{class:"hy-general-list-item__type"},i("span",{class:"hy-general-list-item__type__major"},this.label),i("span",{class:"hy-general-list-item__type__sub"},this.subLabel)),this.imageUrl&&i("figure",{class:a,style:{"--aspectRatio":"62.5%"}},i("img",{loading:this.disableLazy?"eager":"lazy",alt:this.imageAlt,class:"hy-general-list-item__image",src:this.imageUrl})),i("div",{class:t},(this.tag||this.date)&&i("span",{class:"hy-genenral-list-item__meta"},this.tag,i("span",{class:"hy-genenral-list-item__meta__date"},this.tag&&"|"," ",this.date)),i("h3",{class:l},this.itemTitle),i("p",{class:n},this.description))))}get el(){return a(this)}};s.style=':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;height:100%}.hy-general-list-item{font-family:var(--main-font-family);margin-bottom:1rem;height:100%}.hy-general-list-item--style-grid .hy-general-list-item__link{height:100%}@media (min-width: 30rem){.hy-general-list-item--style-grid .hy-general-list-item__link{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}.hy-general-list-item--style-grid .hy-general-list-item__image-container{border:1px solid var(--grayscale-light);max-width:100%}@media (max-width: 479px){.hy-general-list-item--style-grid .hy-general-list-item__image-container{display:-webkit-box;display:-ms-flexbox;display:flex}}@media (min-width: 60rem){.hy-general-list-item--style-grid .hy-general-list-item__text-container{padding:12px 12px 32px 12px}}@media (min-width: 75.0625rem){.hy-general-list-item--style-grid .hy-general-list-item__text-container{padding:12px 12px 32px 12px}}.hy-genenral-list-item__meta{font-size:0.75rem;line-height:14px;font-weight:600;color:var(--grayscale-dark);font-family:var(--main-font-family);letter-spacing:-0.1px;text-transform:uppercase;margin:9px 0}.hy-genenral-list-item__meta__date{font-weight:400;margin-left:4px}.hy-general-list-item__link{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative;text-decoration:none}@media (min-width: 30rem){.hy-general-list-item__link{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.hy-general-list-item__link:hover{cursor:pointer}.hy-general-list-item__link:hover .hy-general-list-item__type span,.hy-general-list-item__link:focus .hy-general-list-item__type span{background-color:var(--brand-main)}.hy-general-list-item__link:hover .hy-general-list-item__title,.hy-general-list-item__link:focus .hy-general-list-item__title{color:var(--brand-main);text-decoration:underline}.hy-general-list-item__image-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;margin:0;position:relative;width:100%}@media (max-width: 479px){.hy-general-list-item__image-container{display:none}}@media (min-width: 30rem){.hy-general-list-item__image-container{max-width:35.7%}}@media (min-width: 60rem){.hy-general-list-item__image-container{max-width:23.13%}}@media (min-width: 75.0625rem){.hy-general-list-item__image-container{max-width:23.03%}}.hy-general-list-item__image-container:before{content:"";display:block;padding-top:var(--aspectRatio)}.hy-general-list-item__image-container img{bottom:0;height:100%;left:0;-o-object-fit:cover;object-fit:cover;position:absolute;right:0;top:0;width:100%}.hy-general-list-item__image{background-color:#ececec;width:100%;height:100%}.hy-general-list-item__type{background-color:var(--grayscale-background-box);padding-top:16px;z-index:10}@media (min-width: 30rem){.hy-general-list-item__type{background-color:transparent;left:-8px;padding-top:0;position:absolute;top:16px}}.hy-general-list-item__type__major{font-size:0.75rem;line-height:14px;font-weight:700;background-color:var(--grayscale-black);color:var(--grayscale-white);letter-spacing:-0.1px;padding:5px 8px;text-transform:uppercase;-ms-flex-item-align:baseline;align-self:baseline;margin-left:-8px}@media (min-width: 30rem){.hy-general-list-item__type__major{margin-left:0}}.hy-general-list-item__type__sub{font-size:0.75rem;line-height:14px;background-color:var(--grayscale-black);color:var(--grayscale-white);font-family:var(--main-font-family);letter-spacing:-0.1px;padding:5px 8px;margin-left:-8px}.hy-general-list-item__text-container{background-color:var(--grayscale-background-box);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;padding:16px 12px}@media (min-width: 60rem){.hy-general-list-item__text-container{padding:14px 32px 24px 24px}}@media (min-width: 75.0625rem){.hy-general-list-item__text-container{padding:20px 104px 32px 32px}}.hy-general-list-item__title{font-size:1.125rem;line-height:22px;font-weight:700;color:var(--brand-main-nearly-black);letter-spacing:-0.45px;margin-bottom:8px;margin-top:0}@media (min-width: 1601px){.hy-general-list-item__title{font-size:1.25rem;line-height:24px;letter-spacing:-0.5px}}@media (min-width: 75.0625rem){.hy-general-list-item__title__large{font-size:1.25rem;line-height:24px;letter-spacing:-0.5px}}.hy-general-list-item__description{font-size:0.9375rem;line-height:20px;color:var(--grayscale-dark);display:none;letter-spacing:-0.09px;margin:0}@media (min-width: 30rem){.hy-general-list-item__description{font-size:0.875rem;line-height:18px;display:block;letter-spacing:-0.08px}}@media (min-width: 1601px){.hy-general-list-item__description{font-size:0.875rem;line-height:20px}}@media (min-width: 75.0625rem){.hy-general-list-item__description__large{font-size:0.875rem;line-height:20px}}';export{n as hy_general_list,s as hy_general_list_item}
|
|
1
|
+
import{r as e,h as i,H as t,g as a}from"./p-bb24c6b5.js";import{G as r}from"./p-e20f6203.js";import{j as l}from"./p-fd1edbd5.js";const n=class{constructor(i){e(this,i),this.type=r.list,this.blank=!0,this.truncateDescription=!0,this.truncateLimit=140,this.hasSidebar=!1}async componentWillLoad(){this._dataItems=await l(this.dataItems);const e=this.el.closest(".hy-main");e&&e.classList.contains("with-sidebar")&&(this.hasSidebar=!0)}async watchPropHandler(e,i){e!==i&&(this._dataItems=await l(this.dataItems))}render(){const e=["hy-general-list",this.hasSidebar?"hy-general-list--with-sidebar":"",`hy-general-list--style-${this.type}`].join(" ");let a=this._dataItems;return"object"==typeof this._dataItems&&(a=Object.values(this._dataItems)),i(t,null,i("ul",{class:e},a&&a.map((e=>{return i("li",null,i("hy-general-list-item",{"has-sidebar":this.hasSidebar,target:this.blank,"data-location":e.url,description:this.truncateDescription?(t=e.description,a=this.truncateLimit,t.length>a?t.substr(0,a-1)+"...":t):e.description,id:e.id,imageAlt:e.imageAlt,imageUrl:e.imageUrl,"item-title":e.title,label:e.label,"sub-label":e.subLabel,tag:e.tag,date:e.date,type:e.type,url:e.url,"list-style":this.type}));var t,a}))),i("hy-box",{mb:"1.75, 1.75, 2, 2.5"}))}get el(){return a(this)}static get watchers(){return{dataItems:["watchPropHandler"]}}};n.style=":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}.hy-general-list{list-style:none;margin:0;padding:0}.hy-general-list--style-grid{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;gap:22px}@media (min-width: 30rem){.hy-general-list--style-grid{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}@media (min-width: 60rem){.hy-general-list--style-grid{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.hy-general-list--style-grid li{background-color:var(--grayscale-background-box);width:100%;height:auto}@media (min-width: 30rem){.hy-general-list--style-grid li{width:calc(100% / 2 - 22px)}}@media (min-width: 60rem){.hy-general-list--style-grid li{width:calc(100% / 3 - 22px)}}.hy-general-list--with-sidebar.hy-general-list--style-grid{gap:22px}@media (min-width: 30rem){.hy-general-list--with-sidebar.hy-general-list--style-grid{gap:24px}}@media (min-width: 30rem){.hy-general-list--with-sidebar.hy-general-list--style-grid li{width:calc(100% / 2 - 24px)}}@media (min-width: 60rem){.hy-general-list--with-sidebar.hy-general-list--style-grid li{width:calc(100% / 3 - 24px)}}";const s=class{constructor(i){e(this,i),this.hasSidebar=!0,this.imageAlt="",this.imageUrl=null,this.disableLazy=!1,this.subLabel="",this.date="",this.tag="",this.target=!0}render(){const e=["hy-general-list-item",`hy-general-list-item--style-${this.listStyle}`].join(" "),t=["hy-general-list-item__text-container"].join(" "),a=["hy-general-list-item__image-container"].join(" "),r=this.hasSidebar?"common":"large",l=["hy-general-list-item__title",`hy-general-list-item__title__${r}`].join(" "),n=["hy-general-list-item__description",`hy-general-list-item__description__${r}`].join(" ");return i("article",{class:e},i("a",{class:"hy-general-list-item__link",href:this.url,target:this.target?"_blank":"_self"},this.type&&i("div",{class:"hy-general-list-item__type"},i("span",{class:"hy-general-list-item__type__major"},this.label),i("span",{class:"hy-general-list-item__type__sub"},this.subLabel)),this.imageUrl&&i("figure",{class:a,style:{"--aspectRatio":"62.5%"}},i("img",{loading:this.disableLazy?"eager":"lazy",alt:this.imageAlt,class:"hy-general-list-item__image",src:this.imageUrl})),i("div",{class:t},(this.tag||this.date)&&i("span",{class:"hy-genenral-list-item__meta"},this.tag,i("span",{class:"hy-genenral-list-item__meta__date"},this.tag&&"|"," ",this.date)),i("h3",{class:l},this.itemTitle),i("p",{class:n},this.description))))}get el(){return a(this)}};s.style=':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;height:100%}.hy-general-list-item{font-family:var(--main-font-family);margin-bottom:1rem;height:100%}.hy-general-list-item--style-grid .hy-general-list-item__link{height:100%}@media (min-width: 30rem){.hy-general-list-item--style-grid .hy-general-list-item__link{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}.hy-general-list-item--style-grid .hy-general-list-item__image-container{border:1px solid var(--grayscale-light);max-width:100%}@media (max-width: 479px){.hy-general-list-item--style-grid .hy-general-list-item__image-container{display:-webkit-box;display:-ms-flexbox;display:flex}}@media (min-width: 60rem){.hy-general-list-item--style-grid .hy-general-list-item__text-container{padding:12px 12px 32px 12px}}@media (min-width: 75.0625rem){.hy-general-list-item--style-grid .hy-general-list-item__text-container{padding:12px 12px 32px 12px}}.hy-genenral-list-item__meta{font-size:0.75rem;line-height:14px;font-weight:600;color:var(--grayscale-dark);font-family:var(--main-font-family);letter-spacing:-0.1px;text-transform:uppercase;margin:9px 0}.hy-genenral-list-item__meta__date{font-weight:400;margin-left:4px}.hy-general-list-item__link{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative;text-decoration:none}@media (min-width: 30rem){.hy-general-list-item__link{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.hy-general-list-item__link:hover{cursor:pointer}.hy-general-list-item__link:hover .hy-general-list-item__type span,.hy-general-list-item__link:focus .hy-general-list-item__type span{background-color:var(--brand-main)}.hy-general-list-item__link:hover .hy-general-list-item__title,.hy-general-list-item__link:focus .hy-general-list-item__title{color:var(--brand-main);text-decoration:underline}.hy-general-list-item__image-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;margin:0;position:relative;width:100%}@media (max-width: 479px){.hy-general-list-item__image-container{display:none}}@media (min-width: 30rem){.hy-general-list-item__image-container{max-width:35.7%}}@media (min-width: 60rem){.hy-general-list-item__image-container{max-width:23.13%}}@media (min-width: 75.0625rem){.hy-general-list-item__image-container{max-width:23.03%}}.hy-general-list-item__image-container:before{content:"";display:block;padding-top:var(--aspectRatio)}.hy-general-list-item__image-container img{bottom:0;height:100%;left:0;-o-object-fit:cover;object-fit:cover;position:absolute;right:0;top:0;width:100%}.hy-general-list-item__image{background-color:#ececec;width:100%;height:100%}.hy-general-list-item__type{background-color:var(--grayscale-background-box);padding-top:16px;z-index:10}@media (min-width: 30rem){.hy-general-list-item__type{background-color:transparent;left:-8px;padding-top:0;position:absolute;top:16px}}.hy-general-list-item__type__major{font-size:0.75rem;line-height:14px;font-weight:700;background-color:var(--grayscale-black);color:var(--grayscale-white);letter-spacing:-0.1px;padding:5px 8px;text-transform:uppercase;-ms-flex-item-align:baseline;align-self:baseline;margin-left:-8px}@media (min-width: 30rem){.hy-general-list-item__type__major{margin-left:0}}.hy-general-list-item__type__sub{font-size:0.75rem;line-height:14px;background-color:var(--grayscale-black);color:var(--grayscale-white);font-family:var(--main-font-family);letter-spacing:-0.1px;padding:5px 8px;margin-left:-8px}.hy-general-list-item__text-container{background-color:var(--grayscale-background-box);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;padding:16px 12px}@media (min-width: 60rem){.hy-general-list-item__text-container{padding:14px 32px 24px 24px}}@media (min-width: 75.0625rem){.hy-general-list-item__text-container{padding:20px 104px 32px 32px}}.hy-general-list-item__title{font-size:1.125rem;line-height:22px;font-weight:700;color:var(--brand-main-nearly-black);letter-spacing:-0.45px;margin-bottom:8px;margin-top:0}@media (min-width: 1601px){.hy-general-list-item__title{font-size:1.25rem;line-height:24px;letter-spacing:-0.5px}}@media (min-width: 75.0625rem){.hy-general-list-item__title__large{font-size:1.25rem;line-height:24px;letter-spacing:-0.5px}}.hy-general-list-item__description{font-size:0.9375rem;line-height:20px;color:var(--grayscale-dark);display:none;letter-spacing:-0.09px;margin:0}@media (min-width: 30rem){.hy-general-list-item__description{font-size:0.875rem;line-height:18px;display:block;letter-spacing:-0.08px}}@media (min-width: 1601px){.hy-general-list-item__description{font-size:0.875rem;line-height:20px}}@media (min-width: 75.0625rem){.hy-general-list-item__description__large{font-size:0.875rem;line-height:20px}}';export{n as hy_general_list,s as hy_general_list_item}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,h as i}from"./p-
|
|
1
|
+
import{r as a,h as i}from"./p-bb24c6b5.js";const e=class{constructor(i){a(this,i),this.imageUrl=null,this.imageAlt=null,this.disableLazy=!1,this.caption=null,this.aspectRatioWidth=16,this.aspectRatioHeight=9}srcSetWatcher(a){this._sourceSet="string"==typeof a?JSON.parse(a):a}componentWillLoad(){this.srcSetWatcher(this.sourceSet)}render(){const a=["hy-image",this.caption?"hy-image--with-caption":null].join(" ");return[i("div",{class:a},i("div",{class:"hy-image__image-container",style:{"--aspectRatio":this.aspectRatioHeight/this.aspectRatioWidth*100+"%"}},this.imageUrl&&(this._sourceSet?i("picture",null,this._sourceSet.map((({src:a,media:e,type:t,sizes:r})=>i("source",{srcSet:a,media:e,type:t,sizes:r||""}))),i("img",{loading:this.disableLazy?"eager":"lazy",alt:this.imageAlt,class:"hy-image__image",src:this.imageUrl})):i("img",{loading:this.disableLazy?"eager":"lazy",alt:this.imageAlt,class:"hy-image__image",src:this.imageUrl}))),this.caption&&i("div",{class:"hy-image__caption"},this.caption)),i("hy-box",{mb:"1.75, 1.75, 2, 2.5"})]}static get watchers(){return{sourceSet:["srcSetWatcher"]}}};e.style=':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-image{width:100%}.hy-image__image-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;margin-bottom:0;min-height:10rem;position:relative}.hy-image__image-container:before{content:"";display:block;padding-top:var(--aspectRatio)}.hy-image__image-container img{bottom:0;height:100%;left:0;-o-object-fit:cover;object-fit:cover;position:absolute;right:0;top:0;width:100%}.hy-two-columns .hy-image__image-container img{-o-object-fit:contain;object-fit:contain;-o-object-position:top;object-position:top}.hy-image__caption{color:var(--grayscale-dark);font-family:var(--main-font-family);font-size:12px;letter-spacing:-0.07px;line-height:16px;padding:19px 0}';export{e as hy_image}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as o}from"./p-
|
|
1
|
+
import{s as o}from"./p-bb24c6b5.js";o((o=>{const t=document.querySelector("body").className.split(" ");return o.mode?o.mode:o.getAttribute("mode")?o.getAttribute("mode"):t.includes("full-width")?"wide":"default"}));const t=async o=>"string"==typeof o&&o.length>0?JSON.parse(o):o;export{t as j}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,h as t,H as a}from"./p-
|
|
1
|
+
import{r as i,h as t,H as a}from"./p-bb24c6b5.js";import{j as n}from"./p-fd1edbd5.js";const e=class{constructor(t){i(this,t),this.isOpen=!1}async componentWillLoad(){this._anchorItems=await n(this.anchorItems)}handleLinkClick(i){const t=i.target.getAttribute("href");if(t){const i=document.getElementById(t.substring(1)).getBoundingClientRect();window.scrollTo({top:window.scrollY+i.top-100,behavior:"smooth"})}i.preventDefault(),i.stopPropagation()}render(){const i=["hy-anchor-link-list"].join(" "),n={"hy-anchor-link-list__container":!0,"is-open":this.isOpen},e=this._anchorItems;return t(a,{class:i},t("button",{"aria-label":this.listTitle,onClick:()=>this.isOpen=!this.isOpen,class:{"hy-anchor-link-list__button":!0,"is-open":this.isOpen}},t("span",{class:"hy-anchor-link-list__button--title"},t("hy-icon",{icon:"hy-icon-bullet-list",size:18,fill:"var(--brand-main)"}),this.listTitle),t("span",{class:"hy-anchor-link-list__button--label"},this.isOpen?this.closeLabel:this.openLabel,t("hy-icon",{class:"label-close-icon",icon:"hy-icon-caret-down",size:16,fill:"var(--brand-main)"}))),t("div",{"aria-hidden":this.isOpen?"false":"true",class:n},e&&e.map((i=>t("a",{class:"hy-anchor-link-list__item",href:i.url,onClick:this.handleLinkClick},t("hy-icon",{icon:"hy-icon-arrow-down",size:12,fill:"var(--brand-main)"}),i.title)))))}};e.style=":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(.hy-anchor-link-list){border:1px solid var(--brand-main);width:100%}@media (min-width: 30rem){:host(.hy-anchor-link-list){margin-bottom:1.75rem}}@media (min-width: 48rem){:host(.hy-anchor-link-list){margin-bottom:1.75rem}}@media (min-width: 60rem){:host(.hy-anchor-link-list){margin-bottom:2rem}}@media (min-width: 1601px){:host(.hy-anchor-link-list){margin-bottom:2.5rem}}:host(.hy-anchor-link-list).is-open{border:1px solid var(--grayscale-dark)}.hy-anchor-link-list__button{border:none;background:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:15px 20px;width:100%}@media (min-width: 48rem){.hy-anchor-link-list__button{padding:18px 20px}}.hy-anchor-link-list__button:hover{cursor:pointer}.hy-anchor-link-list__button.is-open .label-close-icon svg{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.hy-anchor-link-list__button--title{font-size:1.0625rem;line-height:20px;font-weight:700;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--brand-main);font-family:var(--main-font-family);letter-spacing:-0.32px}.hy-anchor-link-list__button--title svg{margin-right:12px}.hy-anchor-link-list__button--label{font-size:1rem;line-height:20px;font-weight:600;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--link-blue);font-family:var(--main-font-family);letter-spacing:-0.3px;text-align:right}.hy-anchor-link-list__button--label svg{margin-left:7px}.hy-anchor-link-list__container{display:none;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:18px 0;margin:0 20px}.hy-anchor-link-list__container.is-open{display:-webkit-box;display:-ms-flexbox;display:flex;border-top:1px solid var(--grayscale-dark)}.hy-anchor-link-list__item{font-size:1rem;line-height:20px;font-weight:600;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--link-blue);font-family:var(--main-font-family);font-size:16px;font-weight:600;letter-spacing:-0.5px;line-height:20px;margin-bottom:16px;text-decoration:none}.hy-anchor-link-list__item:hover{cursor:pointer;text-decoration:underline}.hy-anchor-link-list__item svg{margin-right:12px}";export{e as hy_anchor_link_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,h as i,H as e,g as t}from"./p-
|
|
1
|
+
import{r as a,h as i,H as e,g as t}from"./p-bb24c6b5.js";import{q as r}from"./p-e20f6203.js";import{j as l}from"./p-fd1edbd5.js";const o=class{constructor(i){a(this,i),this.headerstyle="common",this.variant=r.default}async componentWillLoad(){this._dataItems=await l(this.dataItems)}componentDidLoad(){let a=this.el.closest(".hy-main");a&&(a.classList.contains("with-sidebar")||(this.headerstyle="large"))}getBoxClassName(a){let i="small";return a%3==0||5==a?i="big":a%4!=0&&7!=a||(i="small"),i}render(){const a=["hy-link-box-list",this.variant,`hy-link-box-list__${this.variant}`,`hy-link-box-list__${this.headerstyle}`].join(" "),t=this.getBoxClassName(this._dataItems.length),r=[this.variant,`hy-link-box__${this.variant}`,t].join(" ");return i(e,null,i("div",{class:a},this._dataItems.map((a=>i("hy-link-box",{class:r,variant:this.variant,"source-set":a.imageSets,"image-url":a.imageUrl,"image-alt":a.imageAlt,"text-title":a.heading,"text-description":a.description,url:a.boxUrl,"is-external":a.isExternal,"sc-label":a.ariaLabel})))),i("hy-box",{mb:"1.75, 1.75, 2, 2.5"}))}get el(){return t(this)}};o.style=":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}.hy-link-box-list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;max-width:30rem;width:100%}@media (min-width: 30rem){.hy-link-box-list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:left;-ms-flex-pack:left;justify-content:left;max-width:100%}}@media (min-width: 60rem){.hy-link-box-list{margin:0 auto}}";export{o as hy_link_box_list}
|
|
@@ -17,11 +17,12 @@ export declare class Menu {
|
|
|
17
17
|
menuButtonBreadcrumbHome: string;
|
|
18
18
|
menuButtonBreadcrumbMain: string;
|
|
19
19
|
menuButtonBreadcrumbLogourl: string;
|
|
20
|
+
dataSiteHeaderLabels: string;
|
|
20
21
|
breadcrumbs: any;
|
|
21
22
|
private donateLink;
|
|
22
23
|
removeBreadcrumb(data: any): Promise<void>;
|
|
23
24
|
addBreadcrumb(event: any): void;
|
|
24
|
-
componentWillLoad(): void
|
|
25
|
+
componentWillLoad(): Promise<void>;
|
|
25
26
|
componentWillUpdate(): void;
|
|
26
27
|
componentWillRender(): void;
|
|
27
28
|
render(): any;
|
package/dist/types/components/person-profile/person-profile-listing/person-profile.listing.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare type personProfileListingItems = [
|
|
2
|
+
{
|
|
3
|
+
label: string;
|
|
4
|
+
items: string[];
|
|
5
|
+
}
|
|
6
|
+
];
|
|
7
|
+
export declare class PersonProfile {
|
|
8
|
+
items: personProfileListingItems;
|
|
9
|
+
col?: 'col-1' | 'col-2' | 'col-4';
|
|
10
|
+
inline?: boolean;
|
|
11
|
+
withoutIcons?: boolean;
|
|
12
|
+
textSpacingTight?: boolean;
|
|
13
|
+
render(): any;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class PersonProfile {
|
|
2
|
+
personDataJson: string;
|
|
3
|
+
showFullAboutText: string;
|
|
4
|
+
hideFullAboutText: string;
|
|
5
|
+
organizationItemsLabelText: string;
|
|
6
|
+
peopleFinderReturnLink: string;
|
|
7
|
+
isFullAboutTextHidden: boolean;
|
|
8
|
+
viewportSize: number;
|
|
9
|
+
componentWillLoad(): void;
|
|
10
|
+
toggleShowFullAboutText(): void;
|
|
11
|
+
render(): any;
|
|
12
|
+
}
|
|
@@ -32,6 +32,7 @@ import { ComponentLabels } from "./components/site-header/site-header";
|
|
|
32
32
|
import { DonateLink, MainMenu } from "./components/navigation/hy-menu-main-group/hy-menu-main-group";
|
|
33
33
|
import { ShortcutLinks } from "./components/navigation/mobile-menu-shortcuts/mobile-menu-shortcuts";
|
|
34
34
|
import { items } from "./components/hy-opening-hours-content/hy-opening-hours-content";
|
|
35
|
+
import { personProfileListingItems } from "./components/person-profile/person-profile-listing/person-profile.listing";
|
|
35
36
|
import { ProcessFlowBoxValue } from "./components/process/process";
|
|
36
37
|
import { ImageSrcSet as ImageSrcSet6 } from "./components/hy-prominent-image/hy-prominent-image";
|
|
37
38
|
import { ShortcutLinkValue } from "./components/hy-shortcuts/hy-shortcuts";
|
|
@@ -613,6 +614,7 @@ export namespace Components {
|
|
|
613
614
|
interface HyMenu {
|
|
614
615
|
"dataMenuDonate": string;
|
|
615
616
|
"dataMenuLanguage": string;
|
|
617
|
+
"dataSiteHeaderLabels": string;
|
|
616
618
|
"isDemo": boolean;
|
|
617
619
|
"isGroup": boolean;
|
|
618
620
|
"labelFrontPage": string;
|
|
@@ -847,6 +849,20 @@ export namespace Components {
|
|
|
847
849
|
"url": string;
|
|
848
850
|
"variant": PersonCardVariants;
|
|
849
851
|
}
|
|
852
|
+
interface HyPersonProfile {
|
|
853
|
+
"hideFullAboutText": string;
|
|
854
|
+
"organizationItemsLabelText": string;
|
|
855
|
+
"peopleFinderReturnLink": string;
|
|
856
|
+
"personDataJson": string;
|
|
857
|
+
"showFullAboutText": string;
|
|
858
|
+
}
|
|
859
|
+
interface HyPersonProfileListing {
|
|
860
|
+
"col"?: 'col-1' | 'col-2' | 'col-4';
|
|
861
|
+
"inline"?: boolean;
|
|
862
|
+
"items": personProfileListingItems;
|
|
863
|
+
"textSpacingTight"?: boolean;
|
|
864
|
+
"withoutIcons"?: boolean;
|
|
865
|
+
}
|
|
850
866
|
interface HyProcess {
|
|
851
867
|
"dataItems": ProcessFlowBoxValue[] | string;
|
|
852
868
|
"headerstyle": string;
|
|
@@ -907,6 +923,7 @@ export namespace Components {
|
|
|
907
923
|
"dataSearchTools": DesktopLinks[] | string;
|
|
908
924
|
"dataSiteHeaderLabels": string;
|
|
909
925
|
"dataSiteSearchLabels": string;
|
|
926
|
+
"groupLogoUrl": string;
|
|
910
927
|
"groupType": string;
|
|
911
928
|
"isGroup": boolean;
|
|
912
929
|
"logoLabel"?: string;
|
|
@@ -1498,6 +1515,18 @@ declare global {
|
|
|
1498
1515
|
prototype: HTMLHyPersonCardElement;
|
|
1499
1516
|
new (): HTMLHyPersonCardElement;
|
|
1500
1517
|
};
|
|
1518
|
+
interface HTMLHyPersonProfileElement extends Components.HyPersonProfile, HTMLStencilElement {
|
|
1519
|
+
}
|
|
1520
|
+
var HTMLHyPersonProfileElement: {
|
|
1521
|
+
prototype: HTMLHyPersonProfileElement;
|
|
1522
|
+
new (): HTMLHyPersonProfileElement;
|
|
1523
|
+
};
|
|
1524
|
+
interface HTMLHyPersonProfileListingElement extends Components.HyPersonProfileListing, HTMLStencilElement {
|
|
1525
|
+
}
|
|
1526
|
+
var HTMLHyPersonProfileListingElement: {
|
|
1527
|
+
prototype: HTMLHyPersonProfileListingElement;
|
|
1528
|
+
new (): HTMLHyPersonProfileListingElement;
|
|
1529
|
+
};
|
|
1501
1530
|
interface HTMLHyProcessElement extends Components.HyProcess, HTMLStencilElement {
|
|
1502
1531
|
}
|
|
1503
1532
|
var HTMLHyProcessElement: {
|
|
@@ -1696,6 +1725,8 @@ declare global {
|
|
|
1696
1725
|
"hy-pager-item": HTMLHyPagerItemElement;
|
|
1697
1726
|
"hy-paragraph-text": HTMLHyParagraphTextElement;
|
|
1698
1727
|
"hy-person-card": HTMLHyPersonCardElement;
|
|
1728
|
+
"hy-person-profile": HTMLHyPersonProfileElement;
|
|
1729
|
+
"hy-person-profile-listing": HTMLHyPersonProfileListingElement;
|
|
1699
1730
|
"hy-process": HTMLHyProcessElement;
|
|
1700
1731
|
"hy-process-flow-box": HTMLHyProcessFlowBoxElement;
|
|
1701
1732
|
"hy-prominent-image": HTMLHyProminentImageElement;
|
|
@@ -2296,6 +2327,7 @@ declare namespace LocalJSX {
|
|
|
2296
2327
|
interface HyMenu {
|
|
2297
2328
|
"dataMenuDonate"?: string;
|
|
2298
2329
|
"dataMenuLanguage"?: string;
|
|
2330
|
+
"dataSiteHeaderLabels"?: string;
|
|
2299
2331
|
"isDemo"?: boolean;
|
|
2300
2332
|
"isGroup"?: boolean;
|
|
2301
2333
|
"labelFrontPage"?: string;
|
|
@@ -2543,6 +2575,20 @@ declare namespace LocalJSX {
|
|
|
2543
2575
|
"url"?: string;
|
|
2544
2576
|
"variant"?: PersonCardVariants;
|
|
2545
2577
|
}
|
|
2578
|
+
interface HyPersonProfile {
|
|
2579
|
+
"hideFullAboutText"?: string;
|
|
2580
|
+
"organizationItemsLabelText"?: string;
|
|
2581
|
+
"peopleFinderReturnLink"?: string;
|
|
2582
|
+
"personDataJson"?: string;
|
|
2583
|
+
"showFullAboutText"?: string;
|
|
2584
|
+
}
|
|
2585
|
+
interface HyPersonProfileListing {
|
|
2586
|
+
"col"?: 'col-1' | 'col-2' | 'col-4';
|
|
2587
|
+
"inline"?: boolean;
|
|
2588
|
+
"items"?: personProfileListingItems;
|
|
2589
|
+
"textSpacingTight"?: boolean;
|
|
2590
|
+
"withoutIcons"?: boolean;
|
|
2591
|
+
}
|
|
2546
2592
|
interface HyProcess {
|
|
2547
2593
|
"dataItems"?: ProcessFlowBoxValue[] | string;
|
|
2548
2594
|
"headerstyle"?: string;
|
|
@@ -2603,6 +2649,7 @@ declare namespace LocalJSX {
|
|
|
2603
2649
|
"dataSearchTools"?: DesktopLinks[] | string;
|
|
2604
2650
|
"dataSiteHeaderLabels"?: string;
|
|
2605
2651
|
"dataSiteSearchLabels"?: string;
|
|
2652
|
+
"groupLogoUrl"?: string;
|
|
2606
2653
|
"groupType"?: string;
|
|
2607
2654
|
"isGroup"?: boolean;
|
|
2608
2655
|
"logoLabel"?: string;
|
|
@@ -2813,6 +2860,8 @@ declare namespace LocalJSX {
|
|
|
2813
2860
|
"hy-pager-item": HyPagerItem;
|
|
2814
2861
|
"hy-paragraph-text": HyParagraphText;
|
|
2815
2862
|
"hy-person-card": HyPersonCard;
|
|
2863
|
+
"hy-person-profile": HyPersonProfile;
|
|
2864
|
+
"hy-person-profile-listing": HyPersonProfileListing;
|
|
2816
2865
|
"hy-process": HyProcess;
|
|
2817
2866
|
"hy-process-flow-box": HyProcessFlowBox;
|
|
2818
2867
|
"hy-prominent-image": HyProminentImage;
|
|
@@ -2916,6 +2965,8 @@ declare module "@stencil/core" {
|
|
|
2916
2965
|
"hy-pager-item": LocalJSX.HyPagerItem & JSXBase.HTMLAttributes<HTMLHyPagerItemElement>;
|
|
2917
2966
|
"hy-paragraph-text": LocalJSX.HyParagraphText & JSXBase.HTMLAttributes<HTMLHyParagraphTextElement>;
|
|
2918
2967
|
"hy-person-card": LocalJSX.HyPersonCard & JSXBase.HTMLAttributes<HTMLHyPersonCardElement>;
|
|
2968
|
+
"hy-person-profile": LocalJSX.HyPersonProfile & JSXBase.HTMLAttributes<HTMLHyPersonProfileElement>;
|
|
2969
|
+
"hy-person-profile-listing": LocalJSX.HyPersonProfileListing & JSXBase.HTMLAttributes<HTMLHyPersonProfileListingElement>;
|
|
2919
2970
|
"hy-process": LocalJSX.HyProcess & JSXBase.HTMLAttributes<HTMLHyProcessElement>;
|
|
2920
2971
|
"hy-process-flow-box": LocalJSX.HyProcessFlowBox & JSXBase.HTMLAttributes<HTMLHyProcessFlowBoxElement>;
|
|
2921
2972
|
"hy-prominent-image": LocalJSX.HyProminentImage & JSXBase.HTMLAttributes<HTMLHyProminentImageElement>;
|
package/package.json
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-1b0fdf83.js');
|
|
6
|
-
|
|
7
|
-
const accordionContainerCss = ":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}.hy-accordion-container{width:100%}";
|
|
8
|
-
|
|
9
|
-
const AccordionContainer = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
}
|
|
13
|
-
/*
|
|
14
|
-
* data-allow-toggle
|
|
15
|
-
Allow for each toggle to both open and close individually
|
|
16
|
-
|
|
17
|
-
data-allow-multiple
|
|
18
|
-
Allow for multiple accordion sections to be expanded at the same time.
|
|
19
|
-
Assumes data-allow-toggle otherwise you would not be able to close any of the accordions
|
|
20
|
-
*/
|
|
21
|
-
render() {
|
|
22
|
-
const classAttributes = ['hy-accordion-container', 'js-hy-accordion'];
|
|
23
|
-
const id = this.accordionid.toLowerCase().replace(/\W/g, '-');
|
|
24
|
-
return (index.h(index.Host, null, index.h("div", { id: id, class: classAttributes.join(' '), "data-allow-multiple": "true", "data-allow-toggle": "true" }, index.h("slot", null)), index.h("hy-box", { mb: "1.75, 1.75, 2, 2.5" })));
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
AccordionContainer.style = accordionContainerCss;
|
|
28
|
-
|
|
29
|
-
exports.hy_accordion_container = AccordionContainer;
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-1b0fdf83.js');
|
|
6
|
-
const utils = require('./utils-3692dcdb.js');
|
|
7
|
-
|
|
8
|
-
const accordionItemCss = ":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}.hy-accordion__item{margin-bottom:12px}.hy-accordion__item__is-open{border:1px solid var(--grayscale-dark)}.hy-accordion__item__is-open .hy-accordion--heading{margin:0 auto}.hy-accordion__item__is-open .hy-accordion--heading .hy-accordion--heading__icon{-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.hy-accordion__item.mini{margin-bottom:1rem;margin-top:1rem}.hy-accordion__item__is-open.mini{margin-bottom:0;margin-top:0}.hy-accordion__item__is-open.mini .hy-accordion__item--container{border-bottom:1px solid var(--grayscale-medium-dark);border-top:1px solid var(--grayscale-medium-dark);padding-top:16px;padding-bottom:32px;margin-top:-1px;-webkit-transition:padding 0.5s ease-in-out;transition:padding 0.5s ease-in-out}@media (min-width: 30rem){.hy-accordion__item__is-open.mini .hy-accordion__item--container{padding-top:28px;padding-bottom:30px}}@media (min-width: 60rem){.hy-accordion__item__is-open.mini .hy-accordion__item--container{padding-top:32px;padding-bottom:40px}}.hy-accordion__item.hy-accordion__item__is-open.mini{background-color:var(--grayscale-white);border:none;-webkit-box-shadow:0 -10px 10px -10px rgba(0, 49, 70, 0.05);box-shadow:0 -10px 10px -10px rgba(0, 49, 70, 0.05)}.hy-accordion--heading{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;letter-spacing:-0.69px;line-height:28px;margin:0 auto;-webkit-transition:all 0.25s ease-in-out;transition:all 0.25s ease-in-out;width:100%}.hy-accordion--heading .hy-accordion__link{text-decoration:none}.hy-accordion--heading .hy-accordion__link:hover{text-decoration:none}.hy-accordion--heading .hy-accordion__button{font-size:1.125rem;line-height:22px;font-weight:700;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;background-color:var(--grayscale-background-box);border:none;color:var(--brand-main-nearly-black);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;font-family:var(--main-font-family);height:100%;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;letter-spacing:-0.45px;padding:13px 20px 13px 16px;-webkit-transition:all 0.35s ease-in;transition:all 0.35s ease-in;width:100%}.hy-accordion--heading .hy-accordion__button:hover{cursor:pointer}@media (min-width: 30rem){.hy-accordion--heading .hy-accordion__button{padding:1rem 2rem 1rem 1.25rem}}@media (min-width: 1601px){.hy-accordion--heading .hy-accordion__button{font-size:1.25rem;line-height:24px;letter-spacing:-0.5px}}@media (min-width: 75.0625rem){.hy-accordion--heading .hy-accordion__button--large{font-size:1.25rem;line-height:24px;letter-spacing:-0.5px}}@media (min-width: 75.0625rem){.hy-accordion--heading .hy-accordion__button--large .hy-accordion--heading__icon svg{height:20px;width:20px}}.hy-accordion--heading .hy-accordion__button[aria-expanded=true]{background:none}.hy-accordion--heading .hy-accordion__button span{text-align:left}.hy-accordion--heading .hy-accordion__button[aria-expanded=true]{position:relative}.hy-accordion--heading .hy-accordion__button[aria-expanded=true]:after{background-color:var(--grayscale-medium-dark);bottom:0;content:\"\";height:1px;left:16px;position:absolute;right:20px}.hy-accordion--heading .hy-accordion--heading__icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:22px;margin-right:8px;z-index:0}.hy-accordion--heading .hy-accordion--heading__icon svg{fill:var(--brand-main)}@media (min-width: 30rem){.hy-accordion--heading .hy-accordion--heading__icon svg{height:18px;width:18px}}@media (min-width: 1601px){.hy-accordion--heading .hy-accordion--heading__icon svg{height:20px;width:20px}}.hy-accordion--heading.mini .hy-accordion__button{font-size:1.125rem;line-height:22px;background-color:var(--grayscale-white);color:var(--link-blue);letter-spacing:-0.56px;padding:0}@media (min-width: 30rem){.hy-accordion--heading.mini .hy-accordion__button{font-size:1.375rem;line-height:28px;letter-spacing:-0.69px;padding:0}}.hy-accordion--heading.mini .hy-accordion__button[aria-expanded=true]{color:var(--grayscale-black);margin-bottom:20px}@media (min-width: 30rem){.hy-accordion--heading.mini .hy-accordion__button[aria-expanded=true]{margin-bottom:28px}}@media (min-width: 60rem){.hy-accordion--heading.mini .hy-accordion__button[aria-expanded=true]{margin-bottom:32px}}.hy-accordion--heading.mini .hy-accordion--heading__icon{margin-right:0.5rem;z-index:0}@media (min-width: 30rem){.hy-accordion--heading.mini .hy-accordion--heading__icon{margin-right:10px}}.hy-accordion--heading.mini .hy-accordion--heading__icon svg{fill:var(--brand-main-light);height:14px;width:14px}@media (min-width: 30rem){.hy-accordion--heading.mini .hy-accordion--heading__icon svg{height:16px;width:16px}}.hy-accordion__content{display:block;height:0;padding:0;overflow:hidden;-webkit-transition:all 0.25s ease-in-out;transition:all 0.25s ease-in-out}.hy-accordion__content--inner-wrapper{display:block;padding:16px 12px}@media (min-width: 30rem){.hy-accordion__content--inner-wrapper{padding:15px 16px}}@media (min-width: 60rem){.hy-accordion__content--inner-wrapper{padding:16px}}@media (min-width: 75.0625rem){.hy-accordion__content--inner-wrapper--large{padding:24px 20px}}@media (min-width: 1601px){.hy-accordion__content--inner-wrapper{padding:24px 20px}}.hy-accordion__content--inner-wrapper--mini{padding:0}.hy-accordion__content--inner-wrapper--mini .course-heading h4{padding-top:0 !important}";
|
|
9
|
-
|
|
10
|
-
let keys = {
|
|
11
|
-
enter: 'Enter',
|
|
12
|
-
tab: 'Tab',
|
|
13
|
-
pageUp: 'PageUp',
|
|
14
|
-
pageDown: 'PageDown',
|
|
15
|
-
arrowUp: 'ArrowUp',
|
|
16
|
-
arrowDown: 'ArrowDown',
|
|
17
|
-
home: 'Home',
|
|
18
|
-
end: 'End', //35
|
|
19
|
-
};
|
|
20
|
-
const AccordionItem = class {
|
|
21
|
-
constructor(hostRef) {
|
|
22
|
-
index.registerInstance(this, hostRef);
|
|
23
|
-
this.variant = utils.AccordionVariants.default;
|
|
24
|
-
this.headerstyle = 'common';
|
|
25
|
-
this.showOpen = false;
|
|
26
|
-
this.ready = false;
|
|
27
|
-
}
|
|
28
|
-
componentDidLoad() {
|
|
29
|
-
this.ready = true;
|
|
30
|
-
let hyMainDiv = this.el.closest('.hy-main');
|
|
31
|
-
if (hyMainDiv) {
|
|
32
|
-
if (!hyMainDiv.classList.contains('with-sidebar')) {
|
|
33
|
-
this.headerstyle = 'large';
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
componentDidRender() {
|
|
38
|
-
if (window.location.hash) {
|
|
39
|
-
this.expandPanelByAnchor(window.location.hash);
|
|
40
|
-
}
|
|
41
|
-
document.querySelectorAll('.hy-accordion__content').forEach(function (accordion) {
|
|
42
|
-
let showOpen = accordion.classList.contains('open');
|
|
43
|
-
let element = accordion;
|
|
44
|
-
if (showOpen) {
|
|
45
|
-
element.style.display = 'block';
|
|
46
|
-
element.style.height = element.scrollHeight + 'px';
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
element.style.height = 0 + 'px';
|
|
50
|
-
element.style.display = 'none';
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
onHashChange() {
|
|
55
|
-
if (window.location.hash) {
|
|
56
|
-
this.expandPanelByAnchor(window.location.hash);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
handleKeyDown(event) {
|
|
60
|
-
const containerId = this.el.parentElement.id;
|
|
61
|
-
let accordion = document.querySelectorAll(`#${containerId}`)[0];
|
|
62
|
-
const triggers = Array.prototype.slice.call(accordion.querySelectorAll('.hy-accordion__button'));
|
|
63
|
-
let target = event.target;
|
|
64
|
-
const key = event.code;
|
|
65
|
-
const ctrlModifier = event.ctrlKey && [keys.pageDown, keys.pageUp].includes(key); //key.match(/33|34/);
|
|
66
|
-
if (target.classList.contains('hy-accordion__button')) {
|
|
67
|
-
// Up/ Down arrow and Control + Page Up/ Page Down keyboard operations
|
|
68
|
-
if ([keys.arrowDown, keys.arrowUp].includes(key) || ctrlModifier) {
|
|
69
|
-
const index = triggers.indexOf(target);
|
|
70
|
-
const direction = [keys.arrowDown, keys.pageDown].includes(key) ? 1 : -1;
|
|
71
|
-
const length = triggers.length;
|
|
72
|
-
const newIndex = (index + length + direction) % length;
|
|
73
|
-
triggers[newIndex].focus();
|
|
74
|
-
event.preventDefault();
|
|
75
|
-
}
|
|
76
|
-
else if ([keys.home, keys.end].includes(key)) {
|
|
77
|
-
switch (key) {
|
|
78
|
-
// Go to first accordion
|
|
79
|
-
case keys.home:
|
|
80
|
-
triggers[0].focus();
|
|
81
|
-
break;
|
|
82
|
-
// Go to last accordion
|
|
83
|
-
case keys.end:
|
|
84
|
-
triggers[triggers.length - 1].focus();
|
|
85
|
-
break;
|
|
86
|
-
}
|
|
87
|
-
event.preventDefault();
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
handleClick(event) {
|
|
92
|
-
const containerId = this.el.parentElement.id;
|
|
93
|
-
let target = event.target;
|
|
94
|
-
const targetElement = target.tagName.toLowerCase();
|
|
95
|
-
const possibleTags = [targetElement].some((r) => ['svg', 'span', 'path', 'button', 'a'].indexOf(r) >= 0);
|
|
96
|
-
let accordion = document.querySelectorAll(`#${containerId}`)[0];
|
|
97
|
-
const allowMultiple = accordion.hasAttribute('data-allow-multiple');
|
|
98
|
-
const allowToggle = allowMultiple ? allowMultiple : accordion.hasAttribute('data-allow-toggle');
|
|
99
|
-
if (target && possibleTags) {
|
|
100
|
-
if (targetElement !== 'button') {
|
|
101
|
-
target = target.closest('.hy-accordion__button');
|
|
102
|
-
}
|
|
103
|
-
let targetParent = target.closest('.hy-accordion__item');
|
|
104
|
-
let targetContent = targetParent.querySelectorAll('.hy-accordion__content')[0];
|
|
105
|
-
const isExpanded = target.getAttribute('aria-expanded') == 'true';
|
|
106
|
-
const active = accordion.querySelector('[aria-expanded="true"]');
|
|
107
|
-
if (!allowMultiple && active && active !== target) {
|
|
108
|
-
active.setAttribute('aria-expanded', 'false');
|
|
109
|
-
this.collapseSection(targetContent);
|
|
110
|
-
if (targetParent.classList.contains('hy-accordion__item__is-open')) {
|
|
111
|
-
targetParent.classList.remove('hy-accordion__item__is-open');
|
|
112
|
-
}
|
|
113
|
-
accordion.querySelector(`#${active.getAttribute('aria-controls')}`).setAttribute('aria-hidden', 'true');
|
|
114
|
-
if (!allowToggle) {
|
|
115
|
-
active.removeAttribute('aria-disabled');
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
if (!isExpanded) {
|
|
119
|
-
this.expandSection(targetContent);
|
|
120
|
-
target.setAttribute('aria-expanded', 'true');
|
|
121
|
-
targetParent.classList.add('hy-accordion__item__is-open');
|
|
122
|
-
accordion.querySelector(`#${target.getAttribute('aria-controls')}`).setAttribute('aria-hidden', 'false');
|
|
123
|
-
if (!allowToggle) {
|
|
124
|
-
target.setAttribute('aria-disabled', 'true');
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
else if (allowToggle && isExpanded) {
|
|
128
|
-
target.setAttribute('aria-expanded', 'false');
|
|
129
|
-
this.collapseSection(targetContent);
|
|
130
|
-
if (targetParent.classList.contains('hy-accordion__item__is-open')) {
|
|
131
|
-
targetParent.classList.remove('hy-accordion__item__is-open');
|
|
132
|
-
}
|
|
133
|
-
accordion.querySelector(`#${target.getAttribute('aria-controls')}`).setAttribute('aria-hidden', 'true');
|
|
134
|
-
}
|
|
135
|
-
event.preventDefault();
|
|
136
|
-
event.stopImmediatePropagation();
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
expandPanelByAnchor(anchor) {
|
|
140
|
-
setTimeout(() => {
|
|
141
|
-
if (anchor.length > 0) {
|
|
142
|
-
anchor = anchor.substr(1);
|
|
143
|
-
let target = document.querySelectorAll(`[id=${anchor}]`)[0];
|
|
144
|
-
if (target && target.classList.contains('hy-accordion__button')) {
|
|
145
|
-
let targetParent = target.closest('.hy-accordion__item');
|
|
146
|
-
let targetContent = targetParent.querySelectorAll('.hy-accordion__content')[0];
|
|
147
|
-
this.expandSection(targetContent);
|
|
148
|
-
target.setAttribute('aria-expanded', 'true');
|
|
149
|
-
targetParent.classList.add('hy-accordion__item__is-open');
|
|
150
|
-
const targetElementRect = target.getBoundingClientRect();
|
|
151
|
-
window.scrollTo({ top: window.scrollY + targetElementRect.top - 200, behavior: 'smooth' });
|
|
152
|
-
const containerId = targetParent.parentElement.parentElement.id;
|
|
153
|
-
if (containerId.length > 0) {
|
|
154
|
-
let accordion = document.querySelectorAll(`#${containerId}`)[0];
|
|
155
|
-
accordion.querySelector(`#${target.getAttribute('aria-controls')}`).setAttribute('aria-hidden', 'false');
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}, 200);
|
|
160
|
-
}
|
|
161
|
-
collapseSection(element) {
|
|
162
|
-
element.style.height = 0 + 'px';
|
|
163
|
-
element.setAttribute('data-collapsed', 'true');
|
|
164
|
-
setTimeout(() => {
|
|
165
|
-
element.style.display = 'none';
|
|
166
|
-
}, 250);
|
|
167
|
-
}
|
|
168
|
-
expandSection(element) {
|
|
169
|
-
element.style.display = 'block';
|
|
170
|
-
element.style.height = element.scrollHeight + 'px';
|
|
171
|
-
element.setAttribute('data-collapsed', 'false');
|
|
172
|
-
}
|
|
173
|
-
render() {
|
|
174
|
-
const containerId = this.el.parentElement.id;
|
|
175
|
-
if (this.ready && containerId.length > 0) {
|
|
176
|
-
document.querySelectorAll(`#${containerId}`).forEach(function (accordion) {
|
|
177
|
-
if (accordion) {
|
|
178
|
-
accordion.querySelectorAll('.hy-accordion__button').forEach(function (trigger) {
|
|
179
|
-
trigger.addEventListener('focus', function () {
|
|
180
|
-
trigger.classList.add('focus');
|
|
181
|
-
});
|
|
182
|
-
trigger.addEventListener('blur', function () {
|
|
183
|
-
trigger.classList.remove('focus');
|
|
184
|
-
});
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
const classIsOpen = this.showOpen ? 'hy-accordion__item__is-open' : '';
|
|
190
|
-
const classContentIsOpen = this.showOpen ? 'open' : '';
|
|
191
|
-
const classAttributes = ['hy-accordion__item', this.variant, classIsOpen].join(' ');
|
|
192
|
-
const classInnerWrapper = ['hy-accordion__item--container', this.variant].join(' ');
|
|
193
|
-
const classHeadingAttributes = ['hy-accordion--heading', this.variant].join(' ');
|
|
194
|
-
const classContentAttributes = [
|
|
195
|
-
'hy-accordion__content',
|
|
196
|
-
`hy-accordion__content--${this.variant}`,
|
|
197
|
-
this.variant,
|
|
198
|
-
classContentIsOpen,
|
|
199
|
-
].join(' ');
|
|
200
|
-
const classContentInnerWrapper = [
|
|
201
|
-
'hy-accordion__content--inner-wrapper',
|
|
202
|
-
`hy-accordion__content--inner-wrapper--${this.headerstyle}`,
|
|
203
|
-
`hy-accordion__content--inner-wrapper--${this.variant}`,
|
|
204
|
-
].join(' ');
|
|
205
|
-
const titleAsId = this.accordiontitle.toLowerCase().replace(/\W/g, '-');
|
|
206
|
-
const accordionItemHref = '#' + titleAsId + '--title';
|
|
207
|
-
const ariaExpanded = this.showOpen ? 'true' : 'false';
|
|
208
|
-
const ariaHidden = this.showOpen ? 'false' : 'true';
|
|
209
|
-
const dataCollapsed = this.showOpen ? 'false' : 'true';
|
|
210
|
-
return (index.h("div", { class: classAttributes }, index.h("div", { class: classInnerWrapper }, index.h("div", { class: classHeadingAttributes }, index.h("a", { href: accordionItemHref, class: "hy-accordion__link", tabindex: "-1" }, index.h("button", { "aria-expanded": ariaExpanded, "aria-controls": `${titleAsId}--content`, class: `hy-accordion__button hy-accordion__button--${this.headerstyle}`, id: `${titleAsId}--title` }, index.h("span", { class: "hy-accordion--heading__icon" }, index.h("hy-icon", { icon: 'hy-icon-caret-down', size: 16 })), index.h("span", null, this.accordiontitle)))), index.h("div", { "aria-labelledBy": `${titleAsId}--title`, class: classContentAttributes, id: `${titleAsId}--content`, role: "region", "aria-hidden": ariaHidden, "data-collapsed": dataCollapsed, style: { display: 'none' } }, index.h("div", { class: classContentInnerWrapper }, index.h("slot", null))))));
|
|
211
|
-
}
|
|
212
|
-
get el() { return index.getElement(this); }
|
|
213
|
-
};
|
|
214
|
-
AccordionItem.style = accordionItemCss;
|
|
215
|
-
|
|
216
|
-
exports.hy_accordion_item = AccordionItem;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-1b0fdf83.js');
|
|
6
|
-
|
|
7
|
-
const hyTabsItemCss = ":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}";
|
|
8
|
-
|
|
9
|
-
const HyTabsItem = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
const id = this.tabTitle.toLowerCase().replace(/\W/g, '-');
|
|
15
|
-
return (index.h("div", { tabindex: "0", role: "tabpanel", id: `${id}-tab`, "aria-labelledby": id, hidden: true }, index.h("slot", null)));
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
HyTabsItem.style = hyTabsItemCss;
|
|
19
|
-
|
|
20
|
-
exports.hy_tabs_item = HyTabsItem;
|