@spw-ds/spw-stencil-library 1.17.2 → 1.17.3
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/cem.json +167 -0
- package/dist/cjs/index-D3lyhQSW.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/spw-accordion_4.cjs.entry.js +4 -4
- package/dist/cjs/spw-alert.cjs.entry.js +55 -0
- package/dist/cjs/spw-avatar.cjs.entry.js +1 -1
- package/dist/cjs/spw-block-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-box.cjs.entry.js +1 -1
- package/dist/cjs/spw-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/spw-button_2.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-excerpt.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-image.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-subtag-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-subtags.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-title.cjs.entry.js +1 -1
- package/dist/cjs/spw-card.cjs.entry.js +1 -1
- package/dist/cjs/spw-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/spw-cookies.cjs.entry.js +1 -1
- package/dist/cjs/spw-custom-select.cjs.entry.js +1 -1
- package/dist/cjs/spw-date-picker.cjs.entry.js +6 -3
- package/dist/cjs/spw-drawer.cjs.entry.js +1 -1
- package/dist/cjs/spw-dropdown-container.cjs.entry.js +1 -1
- package/dist/cjs/spw-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/spw-field-label_8.cjs.entry.js +15 -20
- package/dist/cjs/spw-file-upload.cjs.entry.js +1 -1
- package/dist/cjs/spw-footer-bottom.cjs.entry.js +1 -1
- package/dist/cjs/spw-footer-content-col.cjs.entry.js +1 -1
- package/dist/cjs/spw-footer-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-footer-link.cjs.entry.js +1 -1
- package/dist/cjs/spw-footer.cjs.entry.js +1 -1
- package/dist/cjs/spw-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-grid.cjs.entry.js +1 -1
- package/dist/cjs/spw-header-lang.cjs.entry.js +15 -6
- package/dist/cjs/spw-header-navigation-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/spw-header-navigation-item.cjs.entry.js +127 -2
- package/dist/cjs/spw-header-navigation.cjs.entry.js +1 -1
- package/dist/cjs/spw-header-persona-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-header-persona.cjs.entry.js +16 -7
- package/dist/cjs/spw-header.cjs.entry.js +1 -1
- package/dist/cjs/spw-hero.cjs.entry.js +1 -1
- package/dist/cjs/spw-illustration.cjs.entry.js +1 -1
- package/dist/cjs/spw-input-slider.cjs.entry.js +1 -1
- package/dist/cjs/spw-lightbox-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-lightbox.cjs.entry.js +1 -1
- package/dist/cjs/spw-list-description.cjs.entry.js +1 -1
- package/dist/cjs/spw-list-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-list-title.cjs.entry.js +1 -1
- package/dist/cjs/spw-list.cjs.entry.js +1 -1
- package/dist/cjs/spw-message.cjs.entry.js +1 -1
- package/dist/cjs/spw-modal.cjs.entry.js +1 -1
- package/dist/cjs/spw-mosaic-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-mosaic.cjs.entry.js +1 -1
- package/dist/cjs/spw-pagination.cjs.entry.js +1 -1
- package/dist/cjs/spw-radio.cjs.entry.js +1 -1
- package/dist/cjs/spw-scrolltop.cjs.entry.js +1 -1
- package/dist/cjs/spw-search-field.cjs.entry.js +1 -1
- package/dist/cjs/spw-select.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidebar-navigation-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidebar-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidebar-navigation-separator.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidenav-group.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidenav-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidenav.cjs.entry.js +1 -1
- package/dist/cjs/spw-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/spw-slider-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-slider.cjs.entry.js +1 -1
- package/dist/cjs/spw-socials.cjs.entry.js +1 -1
- package/dist/cjs/spw-stencil-library.cjs.js +1 -1
- package/dist/cjs/spw-table-body.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-container.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-head.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-header.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-row.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/spw-table.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-navigation.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs.cjs.entry.js +1 -1
- package/dist/cjs/spw-tag.cjs.entry.js +1 -1
- package/dist/cjs/spw-text-field.cjs.entry.js +1 -1
- package/dist/cjs/spw-textarea.cjs.entry.js +1 -1
- package/dist/cjs/spw-tile-description.cjs.entry.js +1 -1
- package/dist/cjs/spw-tile-title.cjs.entry.js +1 -1
- package/dist/cjs/spw-tile.cjs.entry.js +1 -1
- package/dist/cjs/spw-timeline-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-timeline.cjs.entry.js +1 -1
- package/dist/cjs/spw-toast-controller.cjs.entry.js +1 -1
- package/dist/cjs/spw-toast.cjs.entry.js +1 -1
- package/dist/cjs/spw-toc-container.cjs.entry.js +1 -1
- package/dist/cjs/spw-toc-navigation.cjs.entry.js +1 -1
- package/dist/cjs/spw-toc.cjs.entry.js +1 -1
- package/dist/cjs/spw-topbar.cjs.entry.js +1 -1
- package/dist/cjs/spw-wizard-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-wizard.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/spw-accordion/spw-accordion-content/spw-accordion-content.css +35 -35
- package/dist/collection/components/spw-accordion/spw-accordion-item/spw-accordion-item.css +35 -35
- package/dist/collection/components/spw-accordion/spw-accordion-title/spw-accordion-title.css +35 -35
- package/dist/collection/components/spw-accordion/spw-accordion.css +35 -35
- package/dist/collection/components/spw-alert/spw-alert.css +446 -0
- package/dist/collection/components/spw-alert/spw-alert.js +202 -0
- package/dist/collection/components/spw-avatar/spw-avatar.css +35 -35
- package/dist/collection/components/spw-block-content/spw-block-content.css +35 -35
- package/dist/collection/components/spw-box/spw-box.css +35 -35
- package/dist/collection/components/spw-breadcrumb/spw-breadcrumb-item/spw-breadcrumb-item.css +35 -35
- package/dist/collection/components/spw-breadcrumb/spw-breadcrumb.css +35 -35
- package/dist/collection/components/spw-button/spw-button.css +35 -35
- package/dist/collection/components/spw-card/spw-card-content/spw-card-content.css +35 -35
- package/dist/collection/components/spw-card/spw-card-excerpt/spw-card-excerpt.css +35 -35
- package/dist/collection/components/spw-card/spw-card-image/spw-card-image.css +35 -35
- package/dist/collection/components/spw-card/spw-card-subtag-item/spw-card-subtag-item.css +35 -35
- package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.css +258 -256
- package/dist/collection/components/spw-card/spw-card-title/spw-card-title.css +35 -35
- package/dist/collection/components/spw-card/spw-card.css +35 -35
- package/dist/collection/components/spw-checkbox/spw-checkbox.css +35 -35
- package/dist/collection/components/spw-cookies/spw-cookies.css +35 -35
- package/dist/collection/components/spw-custom-select/spw-custom-select.css +35 -35
- package/dist/collection/components/spw-date-picker/spw-date-picker.css +37 -37
- package/dist/collection/components/spw-date-picker/spw-date-picker.js +5 -2
- package/dist/collection/components/spw-drawer/spw-drawer.css +35 -35
- package/dist/collection/components/spw-dropdown/spw-dropdown-container/spw-dropdown-container.css +35 -35
- package/dist/collection/components/spw-dropdown/spw-dropdown-item/spw-dropdown-item.css +258 -256
- package/dist/collection/components/spw-dropdown/spw-dropdown.css +35 -35
- package/dist/collection/components/spw-field-label/spw-field-label.css +35 -35
- package/dist/collection/components/spw-field-message/spw-field-message.css +258 -256
- package/dist/collection/components/spw-file-upload/spw-file-upload.css +35 -35
- package/dist/collection/components/spw-footer/spw-footer-bottom/spw-footer-bottom.css +35 -35
- package/dist/collection/components/spw-footer/spw-footer-content/spw-footer-content.css +35 -35
- package/dist/collection/components/spw-footer/spw-footer-content-col/spw-footer-content-col.css +35 -35
- package/dist/collection/components/spw-footer/spw-footer-link/spw-footer-link.css +35 -35
- package/dist/collection/components/spw-footer/spw-footer.css +35 -35
- package/dist/collection/components/spw-grid/spw-grid-item/spw-grid-item.css +35 -35
- package/dist/collection/components/spw-grid/spw-grid.css +35 -35
- package/dist/collection/components/spw-group/spw-group.css +258 -256
- package/dist/collection/components/spw-group/spw-group.js +8 -13
- package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.css +35 -35
- package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.js +14 -5
- package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.css +35 -35
- package/dist/collection/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.css +35 -35
- package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.css +43 -43
- package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.js +128 -2
- package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.css +44 -40
- package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.js +15 -6
- package/dist/collection/components/spw-header/spw-header-persona-item/spw-header-persona-item.css +35 -35
- package/dist/collection/components/spw-header/spw-header.css +35 -35
- package/dist/collection/components/spw-hero/spw-hero.css +35 -35
- package/dist/collection/components/spw-icon/spw-icon.css +35 -35
- package/dist/collection/components/spw-illustration/spw-illustration.css +35 -35
- package/dist/collection/components/spw-input-slider/spw-input-slider.css +35 -35
- package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.css +35 -35
- package/dist/collection/components/spw-lightbox/spw-lightbox.css +35 -35
- package/dist/collection/components/spw-link/spw-link.css +35 -35
- package/dist/collection/components/spw-list/spw-list-description/spw-list-description.css +35 -35
- package/dist/collection/components/spw-list/spw-list-item/spw-list-item.css +35 -35
- package/dist/collection/components/spw-list/spw-list-title/spw-list-title.css +35 -35
- package/dist/collection/components/spw-list/spw-list.css +35 -35
- package/dist/collection/components/spw-loading/spw-loading.css +35 -35
- package/dist/collection/components/spw-message/spw-message.css +35 -35
- package/dist/collection/components/spw-modal/spw-modal.css +35 -35
- package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.css +35 -35
- package/dist/collection/components/spw-mosaic/spw-mosaic.css +35 -35
- package/dist/collection/components/spw-pagination/spw-pagination.css +35 -35
- package/dist/collection/components/spw-radio/spw-radio.css +35 -35
- package/dist/collection/components/spw-scrolltop/spw-scrolltop.css +35 -35
- package/dist/collection/components/spw-search-field/spw-search-field.css +38 -36
- package/dist/collection/components/spw-select/spw-select.css +35 -35
- package/dist/collection/components/spw-separator/spw-separator.css +35 -35
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-dropdown/spw-sidebar-navigation-dropdown.css +258 -256
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-item/spw-sidebar-navigation-item.css +258 -256
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-separator/spw-sidebar-navigation-separator.css +35 -35
- package/dist/collection/components/spw-sidebar/spw-sidebar.css +35 -35
- package/dist/collection/components/spw-sidenav/spw-sidenav-group/spw-sidenav-group.css +258 -256
- package/dist/collection/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.css +258 -256
- package/dist/collection/components/spw-sidenav/spw-sidenav.css +35 -35
- package/dist/collection/components/spw-skeleton/spw-skeleton.css +35 -35
- package/dist/collection/components/spw-slider/spw-slider-item/spw-slider-item.css +35 -35
- package/dist/collection/components/spw-slider/spw-slider.css +35 -35
- package/dist/collection/components/spw-socials/spw-socials.css +258 -256
- package/dist/collection/components/spw-table/spw-table-body/spw-table-body.css +35 -35
- package/dist/collection/components/spw-table/spw-table-cell/spw-table-cell.css +35 -35
- package/dist/collection/components/spw-table/spw-table-container/spw-table-container.css +35 -35
- package/dist/collection/components/spw-table/spw-table-footer/spw-table-footer.css +35 -35
- package/dist/collection/components/spw-table/spw-table-head/spw-table-head.css +35 -35
- package/dist/collection/components/spw-table/spw-table-header/spw-table-header.css +35 -35
- package/dist/collection/components/spw-table/spw-table-row/spw-table-row.css +35 -35
- package/dist/collection/components/spw-table/spw-table-sidebar/spw-table-sidebar.css +35 -35
- package/dist/collection/components/spw-table/spw-table.css +35 -35
- package/dist/collection/components/spw-tabs/spw-tabs-content/spw-tabs-content.css +35 -35
- package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.css +35 -35
- package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.css +35 -35
- package/dist/collection/components/spw-tabs/spw-tabs.css +35 -35
- package/dist/collection/components/spw-tag/spw-tag.css +35 -35
- package/dist/collection/components/spw-text-field/spw-text-field.css +35 -35
- package/dist/collection/components/spw-textarea/spw-textarea.css +35 -35
- package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.css +35 -35
- package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.css +35 -35
- package/dist/collection/components/spw-tile/spw-tile.css +35 -35
- package/dist/collection/components/spw-timeline/spw-timeline-item/spw-timeline-item.css +35 -35
- package/dist/collection/components/spw-timeline/spw-timeline.css +35 -35
- package/dist/collection/components/spw-toast/spw-toast-controller/spw-toast-controller.css +35 -35
- package/dist/collection/components/spw-toast/spw-toast.css +35 -35
- package/dist/collection/components/spw-toc/spw-toc-container/spw-toc-container.css +258 -256
- package/dist/collection/components/spw-toc/spw-toc-navigation/spw-toc-navigation.css +258 -256
- package/dist/collection/components/spw-toc/spw-toc.css +258 -256
- package/dist/collection/components/spw-tooltip/spw-tooltip.css +35 -35
- package/dist/collection/components/spw-topbar/spw-topbar.css +35 -35
- package/dist/collection/components/spw-wizard/spw-wizard-item/spw-wizard-item.css +35 -35
- package/dist/collection/components/spw-wizard/spw-wizard.css +35 -35
- package/dist/collection/stories/organisms/spw-alert/spw-alert.stories.js +187 -0
- package/dist/components/{p-DhbrY43Y.js → p-10usqMv_.js} +1 -1
- package/dist/components/{p-Bd6Pj1em.js → p-4jNBpzmg.js} +1 -1
- package/dist/components/p-BD9dpai3.js +1 -0
- package/dist/components/{p-Bi15ObnP.js → p-BpHhLSNA.js} +1 -1
- package/dist/components/{p-C1V6TSMJ.js → p-BvJ60OkW.js} +1 -1
- package/dist/components/p-C-XK7DW-.js +1 -0
- package/dist/components/{p-C0ziLgAI.js → p-C2YutT5r.js} +1 -1
- package/dist/components/p-C5H3D_hy.js +1 -0
- package/dist/components/p-Ci0r8I9g.js +1 -0
- package/dist/components/{p-DPIrlkN8.js → p-D9JMaCxL.js} +1 -1
- package/dist/components/p-DVxJ3wRZ.js +1 -0
- package/dist/components/{p-BG8eSnGj.js → p-DaITe5yi.js} +1 -1
- package/dist/components/p-DfbLlF27.js +1 -0
- package/dist/components/{p-XOK-JXlE.js → p-hfJhpq7W.js} +1 -1
- package/dist/components/{p-DUN_1kk8.js → p-jLNjkOd-.js} +1 -1
- package/dist/components/p-m6pRrrVB.js +1 -0
- package/dist/components/spw-accordion-content.js +1 -1
- package/dist/components/spw-accordion-item.js +1 -1
- package/dist/components/spw-accordion-title.js +1 -1
- package/dist/components/spw-accordion.js +1 -1
- package/dist/components/spw-alert.d.ts +11 -0
- package/dist/components/spw-alert.js +1 -0
- package/dist/components/spw-avatar.js +1 -1
- package/dist/components/spw-block-content.js +1 -1
- package/dist/components/spw-box.js +1 -1
- package/dist/components/spw-breadcrumb-item.js +1 -1
- package/dist/components/spw-breadcrumb.js +1 -1
- package/dist/components/spw-button.js +1 -1
- package/dist/components/spw-card-content.js +1 -1
- package/dist/components/spw-card-excerpt.js +1 -1
- package/dist/components/spw-card-image.js +1 -1
- package/dist/components/spw-card-subtag-item.js +1 -1
- package/dist/components/spw-card-subtags.js +1 -1
- package/dist/components/spw-card-title.js +1 -1
- package/dist/components/spw-card.js +1 -1
- package/dist/components/spw-checkbox.js +1 -1
- package/dist/components/spw-cookies.js +1 -1
- package/dist/components/spw-custom-select.js +1 -1
- package/dist/components/spw-date-picker.js +1 -1
- package/dist/components/spw-drawer.js +1 -1
- package/dist/components/spw-dropdown-container.js +1 -1
- package/dist/components/spw-dropdown-item.js +1 -1
- package/dist/components/spw-dropdown.js +1 -1
- package/dist/components/spw-field-label.js +1 -1
- package/dist/components/spw-field-message.js +1 -1
- package/dist/components/spw-file-upload.js +1 -1
- package/dist/components/spw-footer-bottom.js +1 -1
- package/dist/components/spw-footer-content-col.js +1 -1
- package/dist/components/spw-footer-content.js +1 -1
- package/dist/components/spw-footer-link.js +1 -1
- package/dist/components/spw-footer.js +1 -1
- package/dist/components/spw-grid-item.js +1 -1
- package/dist/components/spw-grid.js +1 -1
- package/dist/components/spw-group.js +1 -1
- package/dist/components/spw-header-lang.js +1 -1
- package/dist/components/spw-header-navigation-dropdown.js +1 -1
- package/dist/components/spw-header-navigation-item.js +1 -1
- package/dist/components/spw-header-navigation.js +1 -1
- package/dist/components/spw-header-persona-item.js +1 -1
- package/dist/components/spw-header-persona.js +1 -1
- package/dist/components/spw-header.js +1 -1
- package/dist/components/spw-hero.js +1 -1
- package/dist/components/spw-icon.js +1 -1
- package/dist/components/spw-illustration.js +1 -1
- package/dist/components/spw-input-slider.js +1 -1
- package/dist/components/spw-lightbox-item.js +1 -1
- package/dist/components/spw-lightbox.js +1 -1
- package/dist/components/spw-link.js +1 -1
- package/dist/components/spw-list-description.js +1 -1
- package/dist/components/spw-list-item.js +1 -1
- package/dist/components/spw-list-title.js +1 -1
- package/dist/components/spw-list.js +1 -1
- package/dist/components/spw-loading.js +1 -1
- package/dist/components/spw-message.js +1 -1
- package/dist/components/spw-modal.js +1 -1
- package/dist/components/spw-mosaic-item.js +1 -1
- package/dist/components/spw-mosaic.js +1 -1
- package/dist/components/spw-pagination.js +1 -1
- package/dist/components/spw-radio.js +1 -1
- package/dist/components/spw-scrolltop.js +1 -1
- package/dist/components/spw-search-field.js +1 -1
- package/dist/components/spw-select.js +1 -1
- package/dist/components/spw-separator.js +1 -1
- package/dist/components/spw-sidebar-navigation-dropdown.js +1 -1
- package/dist/components/spw-sidebar-navigation-item.js +1 -1
- package/dist/components/spw-sidebar-navigation-separator.js +1 -1
- package/dist/components/spw-sidebar.js +1 -1
- package/dist/components/spw-sidenav-group.js +1 -1
- package/dist/components/spw-sidenav-item.js +1 -1
- package/dist/components/spw-sidenav.js +1 -1
- package/dist/components/spw-skeleton.js +1 -1
- package/dist/components/spw-slider-item.js +1 -1
- package/dist/components/spw-slider.js +1 -1
- package/dist/components/spw-socials.js +1 -1
- package/dist/components/spw-table-body.js +1 -1
- package/dist/components/spw-table-cell.js +1 -1
- package/dist/components/spw-table-container.js +1 -1
- package/dist/components/spw-table-footer.js +1 -1
- package/dist/components/spw-table-head.js +1 -1
- package/dist/components/spw-table-header.js +1 -1
- package/dist/components/spw-table-row.js +1 -1
- package/dist/components/spw-table-sidebar.js +1 -1
- package/dist/components/spw-table.js +1 -1
- package/dist/components/spw-tabs-content.js +1 -1
- package/dist/components/spw-tabs-navigation-item.js +1 -1
- package/dist/components/spw-tabs-navigation.js +1 -1
- package/dist/components/spw-tabs.js +1 -1
- package/dist/components/spw-tag.js +1 -1
- package/dist/components/spw-text-field.js +1 -1
- package/dist/components/spw-textarea.js +1 -1
- package/dist/components/spw-tile-description.js +1 -1
- package/dist/components/spw-tile-title.js +1 -1
- package/dist/components/spw-tile.js +1 -1
- package/dist/components/spw-timeline-item.js +1 -1
- package/dist/components/spw-timeline.js +1 -1
- package/dist/components/spw-toast-controller.js +1 -1
- package/dist/components/spw-toast.js +1 -1
- package/dist/components/spw-toc-container.js +1 -1
- package/dist/components/spw-toc-navigation.js +1 -1
- package/dist/components/spw-toc.js +1 -1
- package/dist/components/spw-tooltip.js +1 -1
- package/dist/components/spw-topbar.js +1 -1
- package/dist/components/spw-wizard-item.js +1 -1
- package/dist/components/spw-wizard.js +1 -1
- package/dist/components_json.json +223 -2
- package/dist/components_vscode.json +25 -0
- package/dist/esm/index-DkNryMko.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/spw-accordion_4.entry.js +4 -4
- package/dist/esm/spw-alert.entry.js +53 -0
- package/dist/esm/spw-avatar.entry.js +1 -1
- package/dist/esm/spw-block-content.entry.js +1 -1
- package/dist/esm/spw-box.entry.js +1 -1
- package/dist/esm/spw-breadcrumb-item.entry.js +1 -1
- package/dist/esm/spw-breadcrumb.entry.js +1 -1
- package/dist/esm/spw-button_2.entry.js +2 -2
- package/dist/esm/spw-card-content.entry.js +1 -1
- package/dist/esm/spw-card-excerpt.entry.js +1 -1
- package/dist/esm/spw-card-image.entry.js +1 -1
- package/dist/esm/spw-card-subtag-item.entry.js +1 -1
- package/dist/esm/spw-card-subtags.entry.js +1 -1
- package/dist/esm/spw-card-title.entry.js +1 -1
- package/dist/esm/spw-card.entry.js +1 -1
- package/dist/esm/spw-checkbox.entry.js +1 -1
- package/dist/esm/spw-cookies.entry.js +1 -1
- package/dist/esm/spw-custom-select.entry.js +1 -1
- package/dist/esm/spw-date-picker.entry.js +6 -3
- package/dist/esm/spw-drawer.entry.js +1 -1
- package/dist/esm/spw-dropdown-container.entry.js +1 -1
- package/dist/esm/spw-dropdown-item.entry.js +1 -1
- package/dist/esm/spw-dropdown.entry.js +1 -1
- package/dist/esm/spw-field-label_8.entry.js +15 -20
- package/dist/esm/spw-file-upload.entry.js +1 -1
- package/dist/esm/spw-footer-bottom.entry.js +1 -1
- package/dist/esm/spw-footer-content-col.entry.js +1 -1
- package/dist/esm/spw-footer-content.entry.js +1 -1
- package/dist/esm/spw-footer-link.entry.js +1 -1
- package/dist/esm/spw-footer.entry.js +1 -1
- package/dist/esm/spw-grid-item.entry.js +1 -1
- package/dist/esm/spw-grid.entry.js +1 -1
- package/dist/esm/spw-header-lang.entry.js +15 -6
- package/dist/esm/spw-header-navigation-dropdown.entry.js +1 -1
- package/dist/esm/spw-header-navigation-item.entry.js +127 -2
- package/dist/esm/spw-header-navigation.entry.js +1 -1
- package/dist/esm/spw-header-persona-item.entry.js +1 -1
- package/dist/esm/spw-header-persona.entry.js +16 -7
- package/dist/esm/spw-header.entry.js +1 -1
- package/dist/esm/spw-hero.entry.js +1 -1
- package/dist/esm/spw-illustration.entry.js +1 -1
- package/dist/esm/spw-input-slider.entry.js +1 -1
- package/dist/esm/spw-lightbox-item.entry.js +1 -1
- package/dist/esm/spw-lightbox.entry.js +1 -1
- package/dist/esm/spw-list-description.entry.js +1 -1
- package/dist/esm/spw-list-item.entry.js +1 -1
- package/dist/esm/spw-list-title.entry.js +1 -1
- package/dist/esm/spw-list.entry.js +1 -1
- package/dist/esm/spw-message.entry.js +1 -1
- package/dist/esm/spw-modal.entry.js +1 -1
- package/dist/esm/spw-mosaic-item.entry.js +1 -1
- package/dist/esm/spw-mosaic.entry.js +1 -1
- package/dist/esm/spw-pagination.entry.js +1 -1
- package/dist/esm/spw-radio.entry.js +1 -1
- package/dist/esm/spw-scrolltop.entry.js +1 -1
- package/dist/esm/spw-search-field.entry.js +1 -1
- package/dist/esm/spw-select.entry.js +1 -1
- package/dist/esm/spw-sidebar-navigation-dropdown.entry.js +1 -1
- package/dist/esm/spw-sidebar-navigation-item.entry.js +1 -1
- package/dist/esm/spw-sidebar-navigation-separator.entry.js +1 -1
- package/dist/esm/spw-sidebar.entry.js +1 -1
- package/dist/esm/spw-sidenav-group.entry.js +1 -1
- package/dist/esm/spw-sidenav-item.entry.js +1 -1
- package/dist/esm/spw-sidenav.entry.js +1 -1
- package/dist/esm/spw-skeleton.entry.js +1 -1
- package/dist/esm/spw-slider-item.entry.js +1 -1
- package/dist/esm/spw-slider.entry.js +1 -1
- package/dist/esm/spw-socials.entry.js +1 -1
- package/dist/esm/spw-stencil-library.js +1 -1
- package/dist/esm/spw-table-body.entry.js +1 -1
- package/dist/esm/spw-table-cell.entry.js +1 -1
- package/dist/esm/spw-table-container.entry.js +1 -1
- package/dist/esm/spw-table-footer.entry.js +1 -1
- package/dist/esm/spw-table-head.entry.js +1 -1
- package/dist/esm/spw-table-header.entry.js +1 -1
- package/dist/esm/spw-table-row.entry.js +1 -1
- package/dist/esm/spw-table-sidebar.entry.js +1 -1
- package/dist/esm/spw-table.entry.js +1 -1
- package/dist/esm/spw-tabs-content.entry.js +1 -1
- package/dist/esm/spw-tabs-navigation-item.entry.js +1 -1
- package/dist/esm/spw-tabs-navigation.entry.js +1 -1
- package/dist/esm/spw-tabs.entry.js +1 -1
- package/dist/esm/spw-tag.entry.js +1 -1
- package/dist/esm/spw-text-field.entry.js +1 -1
- package/dist/esm/spw-textarea.entry.js +1 -1
- package/dist/esm/spw-tile-description.entry.js +1 -1
- package/dist/esm/spw-tile-title.entry.js +1 -1
- package/dist/esm/spw-tile.entry.js +1 -1
- package/dist/esm/spw-timeline-item.entry.js +1 -1
- package/dist/esm/spw-timeline.entry.js +1 -1
- package/dist/esm/spw-toast-controller.entry.js +1 -1
- package/dist/esm/spw-toast.entry.js +1 -1
- package/dist/esm/spw-toc-container.entry.js +1 -1
- package/dist/esm/spw-toc-navigation.entry.js +1 -1
- package/dist/esm/spw-toc.entry.js +1 -1
- package/dist/esm/spw-topbar.entry.js +1 -1
- package/dist/esm/spw-wizard-item.entry.js +1 -1
- package/dist/esm/spw-wizard.entry.js +1 -1
- package/dist/spw-stencil-library/{p-60274467.entry.js → p-00e913ab.entry.js} +1 -1
- package/dist/spw-stencil-library/p-021fc983.entry.js +1 -0
- package/dist/spw-stencil-library/{p-24e1371c.entry.js → p-03c76e20.entry.js} +1 -1
- package/dist/spw-stencil-library/p-07c59244.entry.js +1 -0
- package/dist/spw-stencil-library/{p-88e84f99.entry.js → p-1156e45c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4e5ac719.entry.js → p-15714574.entry.js} +1 -1
- package/dist/spw-stencil-library/p-15fcedc4.entry.js +1 -0
- package/dist/spw-stencil-library/p-18563d7b.entry.js +1 -0
- package/dist/spw-stencil-library/{p-10caa54a.entry.js → p-1b2219c5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1dcb81d3.entry.js → p-1d57cc99.entry.js} +1 -1
- package/dist/spw-stencil-library/p-226bf7b7.entry.js +1 -0
- package/dist/spw-stencil-library/{p-4f57bff5.entry.js → p-264d68af.entry.js} +1 -1
- package/dist/spw-stencil-library/p-29f4d921.entry.js +1 -0
- package/dist/spw-stencil-library/p-2a6388d4.entry.js +1 -0
- package/dist/spw-stencil-library/p-2b2908f6.entry.js +1 -0
- package/dist/spw-stencil-library/p-30f7cb1e.entry.js +1 -0
- package/dist/spw-stencil-library/{p-d38ec8b1.entry.js → p-32f90343.entry.js} +1 -1
- package/dist/spw-stencil-library/p-33a767a3.entry.js +1 -0
- package/dist/spw-stencil-library/{p-d2005b6a.entry.js → p-35c26140.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-66253e1e.entry.js → p-3bcafcbf.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ff626bc0.entry.js → p-3ef82674.entry.js} +1 -1
- package/dist/spw-stencil-library/p-42c5ae2b.entry.js +1 -0
- package/dist/spw-stencil-library/p-435c6572.entry.js +1 -0
- package/dist/spw-stencil-library/p-43ac8164.entry.js +1 -0
- package/dist/spw-stencil-library/p-4898b89b.entry.js +1 -0
- package/dist/spw-stencil-library/{p-86f8bae3.entry.js → p-4b49ce46.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-8341ae45.entry.js → p-4e15e0c1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3a6c6557.entry.js → p-53d34813.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-eb01ac29.entry.js → p-54d3bb05.entry.js} +1 -1
- package/dist/spw-stencil-library/p-58eddc91.entry.js +1 -0
- package/dist/spw-stencil-library/p-5a55e5c5.entry.js +1 -0
- package/dist/spw-stencil-library/{p-588d1ab8.entry.js → p-5c50027b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-0726f68f.entry.js → p-5e7ca2e4.entry.js} +1 -1
- package/dist/spw-stencil-library/p-609873b3.entry.js +1 -0
- package/dist/spw-stencil-library/{p-6c8fdc24.entry.js → p-62442334.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-71b07920.entry.js → p-6278d28f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-382a5109.entry.js → p-646c04fa.entry.js} +1 -1
- package/dist/spw-stencil-library/p-6a6b2237.entry.js +1 -0
- package/dist/spw-stencil-library/p-6aef58f4.entry.js +1 -0
- package/dist/spw-stencil-library/p-70b7b977.entry.js +1 -0
- package/dist/spw-stencil-library/p-70d3f435.entry.js +1 -0
- package/dist/spw-stencil-library/{p-8c9d3e7e.entry.js → p-71ef7b30.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-09818d2e.entry.js → p-77802474.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-114d6e1e.entry.js → p-77a95d12.entry.js} +1 -1
- package/dist/spw-stencil-library/p-7a47432f.entry.js +1 -0
- package/dist/spw-stencil-library/p-82ccac76.entry.js +1 -0
- package/dist/spw-stencil-library/p-83017509.entry.js +1 -0
- package/dist/spw-stencil-library/p-836800d9.entry.js +1 -0
- package/dist/spw-stencil-library/{p-9707cb79.entry.js → p-837ac8f1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-17616d66.entry.js → p-8488c882.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-887d35a3.entry.js → p-85fd474d.entry.js} +1 -1
- package/dist/spw-stencil-library/p-8a0cf2d4.entry.js +1 -0
- package/dist/spw-stencil-library/{p-f44b0932.entry.js → p-8b631b5d.entry.js} +1 -1
- package/dist/spw-stencil-library/p-8ee5de40.entry.js +1 -0
- package/dist/spw-stencil-library/p-958dadb3.entry.js +1 -0
- package/dist/spw-stencil-library/{p-604af44e.entry.js → p-98f14c76.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-21e998ba.entry.js → p-9a839525.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-19c15bfc.entry.js → p-9ac3913a.entry.js} +1 -1
- package/dist/spw-stencil-library/p-9baceb97.entry.js +1 -0
- package/dist/spw-stencil-library/{p-1fca6b4f.entry.js → p-9c747e12.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-005e895a.entry.js → p-a13fadc5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d9556465.entry.js → p-a19386d3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-11e3ba7c.entry.js → p-a36010c0.entry.js} +1 -1
- package/dist/spw-stencil-library/p-a4532a5f.entry.js +1 -0
- package/dist/spw-stencil-library/{p-2d2711ca.entry.js → p-a4a4c3b3.entry.js} +1 -1
- package/dist/spw-stencil-library/p-a8aef45b.entry.js +1 -0
- package/dist/spw-stencil-library/{p-80a3d802.entry.js → p-a9c3f05b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6cfcab87.entry.js → p-aecc5c7b.entry.js} +1 -1
- package/dist/spw-stencil-library/p-b2be5886.entry.js +1 -0
- package/dist/spw-stencil-library/{p-5a34e9a1.entry.js → p-b6b496d2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-17c96d6e.entry.js → p-b98b556b.entry.js} +1 -1
- package/dist/spw-stencil-library/p-bbd74c62.entry.js +1 -0
- package/dist/spw-stencil-library/{p-0e1e2cae.entry.js → p-bdce1731.entry.js} +1 -1
- package/dist/spw-stencil-library/p-bdea1755.entry.js +1 -0
- package/dist/spw-stencil-library/{p-d29e6f62.entry.js → p-c02151d3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5c754331.entry.js → p-c20c15d5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-910d0c1b.entry.js → p-c6298162.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-adaa48d1.entry.js → p-c8185d55.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-80c90bfb.entry.js → p-c9cca975.entry.js} +1 -1
- package/dist/spw-stencil-library/p-cab00494.entry.js +1 -0
- package/dist/spw-stencil-library/p-ccbe0d67.entry.js +1 -0
- package/dist/spw-stencil-library/{p-9ad927ac.entry.js → p-d302a2b5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3dab5cac.entry.js → p-db281173.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a2e3cc07.entry.js → p-e2592a5e.entry.js} +1 -1
- package/dist/spw-stencil-library/p-e27e96a2.entry.js +1 -0
- package/dist/spw-stencil-library/{p-8597c4d2.entry.js → p-e2f667f7.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-cfc510f9.entry.js → p-e6546573.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-2e819c63.entry.js → p-e67a2ab2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-2e0e0459.entry.js → p-e684eb0a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-756050b1.entry.js → p-e68ac654.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-50a45386.entry.js → p-e76535ee.entry.js} +1 -1
- package/dist/spw-stencil-library/p-e9262506.entry.js +1 -0
- package/dist/spw-stencil-library/{p-f2e65640.entry.js → p-ec9b89b8.entry.js} +1 -1
- package/dist/spw-stencil-library/p-ee69af5f.entry.js +1 -0
- package/dist/spw-stencil-library/{p-eca88327.entry.js → p-efab43e2.entry.js} +1 -1
- package/dist/{components/p-YvGDRmTV.js → spw-stencil-library/p-faa20925.entry.js} +1 -1
- package/dist/spw-stencil-library/p-fb4b6547.entry.js +1 -0
- package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
- package/dist/stats.json +1047 -461
- package/dist/types/components/spw-alert/spw-alert.d.ts +31 -0
- package/dist/types/components/spw-group/spw-group.d.ts +2 -0
- package/dist/types/components/spw-header/spw-header-lang/spw-header-lang.d.ts +1 -0
- package/dist/types/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.d.ts +14 -0
- package/dist/types/components/spw-header/spw-header-persona/spw-header-persona.d.ts +1 -0
- package/dist/types/components.d.ts +84 -0
- package/dist/types/stories/organisms/spw-alert/spw-alert.stories.d.ts +7 -0
- package/hydrate/index.js +344 -134
- package/hydrate/index.mjs +344 -134
- package/package.json +1 -1
- package/dist/components/p-BdLq2Z-z.js +0 -1
- package/dist/components/p-BmDBeXas.js +0 -1
- package/dist/components/p-DLlEwOHN.js +0 -1
- package/dist/components/p-DyP6vchn.js +0 -1
- package/dist/components/p-GqBctcHU.js +0 -1
- package/dist/components/p-_Np7i1O2.js +0 -1
- package/dist/spw-stencil-library/p-0043c2f4.entry.js +0 -1
- package/dist/spw-stencil-library/p-03c6b8d1.entry.js +0 -1
- package/dist/spw-stencil-library/p-0bced661.entry.js +0 -1
- package/dist/spw-stencil-library/p-0c7de0dc.entry.js +0 -1
- package/dist/spw-stencil-library/p-1034937d.entry.js +0 -1
- package/dist/spw-stencil-library/p-3c08dd3a.entry.js +0 -1
- package/dist/spw-stencil-library/p-3e21d004.entry.js +0 -1
- package/dist/spw-stencil-library/p-3f4aef0b.entry.js +0 -1
- package/dist/spw-stencil-library/p-42b0e820.entry.js +0 -1
- package/dist/spw-stencil-library/p-42f14e44.entry.js +0 -1
- package/dist/spw-stencil-library/p-4305fe28.entry.js +0 -1
- package/dist/spw-stencil-library/p-43add8a1.entry.js +0 -1
- package/dist/spw-stencil-library/p-5fba88ab.entry.js +0 -1
- package/dist/spw-stencil-library/p-66a5ccc3.entry.js +0 -1
- package/dist/spw-stencil-library/p-6df3645e.entry.js +0 -1
- package/dist/spw-stencil-library/p-7e2bf8ad.entry.js +0 -1
- package/dist/spw-stencil-library/p-7e49020e.entry.js +0 -1
- package/dist/spw-stencil-library/p-841ed3e2.entry.js +0 -1
- package/dist/spw-stencil-library/p-86da34a4.entry.js +0 -1
- package/dist/spw-stencil-library/p-87c52460.entry.js +0 -1
- package/dist/spw-stencil-library/p-8a8faafd.entry.js +0 -1
- package/dist/spw-stencil-library/p-9c94a953.entry.js +0 -1
- package/dist/spw-stencil-library/p-a2c5fa8a.entry.js +0 -1
- package/dist/spw-stencil-library/p-a6a1956b.entry.js +0 -1
- package/dist/spw-stencil-library/p-aab25099.entry.js +0 -1
- package/dist/spw-stencil-library/p-afa2f53d.entry.js +0 -1
- package/dist/spw-stencil-library/p-b0da8df5.entry.js +0 -1
- package/dist/spw-stencil-library/p-b4c51969.entry.js +0 -1
- package/dist/spw-stencil-library/p-ba0206b4.entry.js +0 -1
- package/dist/spw-stencil-library/p-c4ec0044.entry.js +0 -1
- package/dist/spw-stencil-library/p-c76e8e18.entry.js +0 -1
- package/dist/spw-stencil-library/p-c94fb0ec.entry.js +0 -1
- package/dist/spw-stencil-library/p-caba8c80.entry.js +0 -1
- package/dist/spw-stencil-library/p-cade9057.entry.js +0 -1
- package/dist/spw-stencil-library/p-da1e18c0.entry.js +0 -1
- package/dist/spw-stencil-library/p-e56f73bd.entry.js +0 -1
- package/dist/spw-stencil-library/p-e81a123f.entry.js +0 -1
- package/dist/spw-stencil-library/p-ef90d734.entry.js +0 -1
- package/dist/spw-stencil-library/p-f940ab99.entry.js +0 -1
- package/dist/spw-stencil-library/p-feca6945.entry.js +0 -1
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--spw-ds-container-xl: 1200px;
|
|
3
|
+
--spw-ds-container-lg: 1024px;
|
|
4
|
+
--spw-ds-container-md: 768px;
|
|
5
|
+
--spw-ds-container-sm: 640px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.spw-ds-container {
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding-left: 16px;
|
|
11
|
+
padding-right: 16px;
|
|
12
|
+
margin-left: auto;
|
|
13
|
+
margin-right: auto;
|
|
14
|
+
}
|
|
15
|
+
@media (min-width: 360px) {
|
|
16
|
+
.spw-ds-container {
|
|
17
|
+
max-width: var(--spw-ds-container-sm);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
@media (min-width: 768px) {
|
|
21
|
+
.spw-ds-container {
|
|
22
|
+
max-width: var(--spw-ds-container-md);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
@media (min-width: 1024px) {
|
|
26
|
+
.spw-ds-container {
|
|
27
|
+
max-width: var(--spw-ds-container-lg);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
@media (min-width: 1200px) {
|
|
31
|
+
.spw-ds-container {
|
|
32
|
+
max-width: var(--spw-ds-container-xl);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
1
36
|
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
37
|
/* Document
|
|
3
38
|
========================================================================== */
|
|
@@ -325,41 +360,6 @@ template {
|
|
|
325
360
|
display: none;
|
|
326
361
|
}
|
|
327
362
|
|
|
328
|
-
:root {
|
|
329
|
-
--spw-ds-container-xl: 1200px;
|
|
330
|
-
--spw-ds-container-lg: 1024px;
|
|
331
|
-
--spw-ds-container-md: 768px;
|
|
332
|
-
--spw-ds-container-sm: 640px;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
.spw-ds-container {
|
|
336
|
-
width: 100%;
|
|
337
|
-
padding-left: 16px;
|
|
338
|
-
padding-right: 16px;
|
|
339
|
-
margin-left: auto;
|
|
340
|
-
margin-right: auto;
|
|
341
|
-
}
|
|
342
|
-
@media (min-width: 360px) {
|
|
343
|
-
.spw-ds-container {
|
|
344
|
-
max-width: var(--spw-ds-container-sm);
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
@media (min-width: 768px) {
|
|
348
|
-
.spw-ds-container {
|
|
349
|
-
max-width: var(--spw-ds-container-md);
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
@media (min-width: 1024px) {
|
|
353
|
-
.spw-ds-container {
|
|
354
|
-
max-width: var(--spw-ds-container-lg);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
@media (min-width: 1200px) {
|
|
358
|
-
.spw-ds-container {
|
|
359
|
-
max-width: var(--spw-ds-container-xl);
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
|
|
363
363
|
:host {
|
|
364
364
|
display: block;
|
|
365
365
|
}
|
|
@@ -4,15 +4,13 @@ export class SpwHeaderLang {
|
|
|
4
4
|
this.activeLang = '';
|
|
5
5
|
this.options = [];
|
|
6
6
|
this.handleButtonKeyDown = (event) => {
|
|
7
|
-
var _a;
|
|
8
7
|
if (event.key === ' ' || event.key === 'Enter') {
|
|
9
8
|
event.preventDefault();
|
|
10
|
-
|
|
9
|
+
this.openSelect();
|
|
11
10
|
}
|
|
12
11
|
};
|
|
13
12
|
this.handleButtonClick = () => {
|
|
14
|
-
|
|
15
|
-
(_a = this.selectEl) === null || _a === void 0 ? void 0 : _a.click();
|
|
13
|
+
this.openSelect();
|
|
16
14
|
};
|
|
17
15
|
this.handleOptionClick = (option) => {
|
|
18
16
|
this.setActiveLangAndRedirect(option);
|
|
@@ -48,8 +46,19 @@ export class SpwHeaderLang {
|
|
|
48
46
|
window.location.href = link;
|
|
49
47
|
}
|
|
50
48
|
}
|
|
49
|
+
openSelect() {
|
|
50
|
+
if (!this.selectEl) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (typeof this.selectEl.showPicker === 'function') {
|
|
54
|
+
this.selectEl.showPicker();
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this.selectEl.click();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
51
60
|
render() {
|
|
52
|
-
return (h(Host, { key: '
|
|
61
|
+
return (h(Host, { key: '813de586237af395bdf05ae734618b6b61d176f9' }, h("div", { key: 'd40f0c056143cddd6b6246ef9e31759a29b8051e', class: "spw-header-lang" }, h("spw-button", { key: '9325ee9bac02011a3964022bd8084735b4f989e4', variant: "tertiary", surface: "light", icon: "fa-chevron-down", class: "spw-header-lang__active-lang", onKeyDown: this.handleButtonKeyDown, onClick: this.handleButtonClick }, this.activeLang), h("select", { key: '0d1b35a3a2767b7150cf8892b2b5f13e7722c880', "aria-label": this.accAriaLabel || 'Lang', class: "spw-header-lang__select", onChange: e => this.handleChange(e), ref: el => (this.selectEl = el), tabIndex: -1 }), h("ul", { key: '4c4450370618798e7cebff0cd8cac158f95bb029', class: "spw-header-lang__options" }, this.options.map(option => {
|
|
53
62
|
var _a;
|
|
54
63
|
const label = ((_a = option.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || '';
|
|
55
64
|
const value = option.getAttribute('value') || '';
|
package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.css
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--spw-ds-container-xl: 1200px;
|
|
3
|
+
--spw-ds-container-lg: 1024px;
|
|
4
|
+
--spw-ds-container-md: 768px;
|
|
5
|
+
--spw-ds-container-sm: 640px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.spw-ds-container {
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding-left: 16px;
|
|
11
|
+
padding-right: 16px;
|
|
12
|
+
margin-left: auto;
|
|
13
|
+
margin-right: auto;
|
|
14
|
+
}
|
|
15
|
+
@media (min-width: 360px) {
|
|
16
|
+
.spw-ds-container {
|
|
17
|
+
max-width: var(--spw-ds-container-sm);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
@media (min-width: 768px) {
|
|
21
|
+
.spw-ds-container {
|
|
22
|
+
max-width: var(--spw-ds-container-md);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
@media (min-width: 1024px) {
|
|
26
|
+
.spw-ds-container {
|
|
27
|
+
max-width: var(--spw-ds-container-lg);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
@media (min-width: 1200px) {
|
|
31
|
+
.spw-ds-container {
|
|
32
|
+
max-width: var(--spw-ds-container-xl);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
1
36
|
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
37
|
/* Document
|
|
3
38
|
========================================================================== */
|
|
@@ -325,41 +360,6 @@ template {
|
|
|
325
360
|
display: none;
|
|
326
361
|
}
|
|
327
362
|
|
|
328
|
-
:root {
|
|
329
|
-
--spw-ds-container-xl: 1200px;
|
|
330
|
-
--spw-ds-container-lg: 1024px;
|
|
331
|
-
--spw-ds-container-md: 768px;
|
|
332
|
-
--spw-ds-container-sm: 640px;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
.spw-ds-container {
|
|
336
|
-
width: 100%;
|
|
337
|
-
padding-left: 16px;
|
|
338
|
-
padding-right: 16px;
|
|
339
|
-
margin-left: auto;
|
|
340
|
-
margin-right: auto;
|
|
341
|
-
}
|
|
342
|
-
@media (min-width: 360px) {
|
|
343
|
-
.spw-ds-container {
|
|
344
|
-
max-width: var(--spw-ds-container-sm);
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
@media (min-width: 768px) {
|
|
348
|
-
.spw-ds-container {
|
|
349
|
-
max-width: var(--spw-ds-container-md);
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
@media (min-width: 1024px) {
|
|
353
|
-
.spw-ds-container {
|
|
354
|
-
max-width: var(--spw-ds-container-lg);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
@media (min-width: 1200px) {
|
|
358
|
-
.spw-ds-container {
|
|
359
|
-
max-width: var(--spw-ds-container-xl);
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
|
|
363
363
|
:host {
|
|
364
364
|
display: contents;
|
|
365
365
|
}
|
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--spw-ds-container-xl: 1200px;
|
|
3
|
+
--spw-ds-container-lg: 1024px;
|
|
4
|
+
--spw-ds-container-md: 768px;
|
|
5
|
+
--spw-ds-container-sm: 640px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.spw-ds-container {
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding-left: 16px;
|
|
11
|
+
padding-right: 16px;
|
|
12
|
+
margin-left: auto;
|
|
13
|
+
margin-right: auto;
|
|
14
|
+
}
|
|
15
|
+
@media (min-width: 360px) {
|
|
16
|
+
.spw-ds-container {
|
|
17
|
+
max-width: var(--spw-ds-container-sm);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
@media (min-width: 768px) {
|
|
21
|
+
.spw-ds-container {
|
|
22
|
+
max-width: var(--spw-ds-container-md);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
@media (min-width: 1024px) {
|
|
26
|
+
.spw-ds-container {
|
|
27
|
+
max-width: var(--spw-ds-container-lg);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
@media (min-width: 1200px) {
|
|
31
|
+
.spw-ds-container {
|
|
32
|
+
max-width: var(--spw-ds-container-xl);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
1
36
|
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
37
|
/* Document
|
|
3
38
|
========================================================================== */
|
|
@@ -325,41 +360,6 @@ template {
|
|
|
325
360
|
display: none;
|
|
326
361
|
}
|
|
327
362
|
|
|
328
|
-
:root {
|
|
329
|
-
--spw-ds-container-xl: 1200px;
|
|
330
|
-
--spw-ds-container-lg: 1024px;
|
|
331
|
-
--spw-ds-container-md: 768px;
|
|
332
|
-
--spw-ds-container-sm: 640px;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
.spw-ds-container {
|
|
336
|
-
width: 100%;
|
|
337
|
-
padding-left: 16px;
|
|
338
|
-
padding-right: 16px;
|
|
339
|
-
margin-left: auto;
|
|
340
|
-
margin-right: auto;
|
|
341
|
-
}
|
|
342
|
-
@media (min-width: 360px) {
|
|
343
|
-
.spw-ds-container {
|
|
344
|
-
max-width: var(--spw-ds-container-sm);
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
@media (min-width: 768px) {
|
|
348
|
-
.spw-ds-container {
|
|
349
|
-
max-width: var(--spw-ds-container-md);
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
@media (min-width: 1024px) {
|
|
353
|
-
.spw-ds-container {
|
|
354
|
-
max-width: var(--spw-ds-container-lg);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
@media (min-width: 1200px) {
|
|
358
|
-
.spw-ds-container {
|
|
359
|
-
max-width: var(--spw-ds-container-xl);
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
|
|
363
363
|
:host {
|
|
364
364
|
display: contents;
|
|
365
365
|
}
|
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--spw-ds-container-xl: 1200px;
|
|
3
|
+
--spw-ds-container-lg: 1024px;
|
|
4
|
+
--spw-ds-container-md: 768px;
|
|
5
|
+
--spw-ds-container-sm: 640px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.spw-ds-container {
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding-left: 16px;
|
|
11
|
+
padding-right: 16px;
|
|
12
|
+
margin-left: auto;
|
|
13
|
+
margin-right: auto;
|
|
14
|
+
}
|
|
15
|
+
@media (min-width: 360px) {
|
|
16
|
+
.spw-ds-container {
|
|
17
|
+
max-width: var(--spw-ds-container-sm);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
@media (min-width: 768px) {
|
|
21
|
+
.spw-ds-container {
|
|
22
|
+
max-width: var(--spw-ds-container-md);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
@media (min-width: 1024px) {
|
|
26
|
+
.spw-ds-container {
|
|
27
|
+
max-width: var(--spw-ds-container-lg);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
@media (min-width: 1200px) {
|
|
31
|
+
.spw-ds-container {
|
|
32
|
+
max-width: var(--spw-ds-container-xl);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
1
36
|
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
37
|
/* Document
|
|
3
38
|
========================================================================== */
|
|
@@ -325,41 +360,6 @@ template {
|
|
|
325
360
|
display: none;
|
|
326
361
|
}
|
|
327
362
|
|
|
328
|
-
:root {
|
|
329
|
-
--spw-ds-container-xl: 1200px;
|
|
330
|
-
--spw-ds-container-lg: 1024px;
|
|
331
|
-
--spw-ds-container-md: 768px;
|
|
332
|
-
--spw-ds-container-sm: 640px;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
.spw-ds-container {
|
|
336
|
-
width: 100%;
|
|
337
|
-
padding-left: 16px;
|
|
338
|
-
padding-right: 16px;
|
|
339
|
-
margin-left: auto;
|
|
340
|
-
margin-right: auto;
|
|
341
|
-
}
|
|
342
|
-
@media (min-width: 360px) {
|
|
343
|
-
.spw-ds-container {
|
|
344
|
-
max-width: var(--spw-ds-container-sm);
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
@media (min-width: 768px) {
|
|
348
|
-
.spw-ds-container {
|
|
349
|
-
max-width: var(--spw-ds-container-md);
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
@media (min-width: 1024px) {
|
|
353
|
-
.spw-ds-container {
|
|
354
|
-
max-width: var(--spw-ds-container-lg);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
@media (min-width: 1200px) {
|
|
358
|
-
.spw-ds-container {
|
|
359
|
-
max-width: var(--spw-ds-container-xl);
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
|
|
363
363
|
:host {
|
|
364
364
|
display: block;
|
|
365
365
|
width: 100%;
|
|
@@ -414,17 +414,17 @@ template {
|
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
@media (min-width: 1024px) {
|
|
417
|
-
:host([data-level="1"]) .spw-header-navigation-item:hover ::slotted(spw-header-navigation-dropdown), :host([data-level="1"]) .spw-header-navigation-item
|
|
417
|
+
:host([data-level="1"]) .spw-header-navigation-item:hover ::slotted(spw-header-navigation-dropdown), :host([data-level="1"]) .spw-header-navigation-item.spw-header-navigation-item--is-desktop-open ::slotted(spw-header-navigation-dropdown) {
|
|
418
418
|
pointer-events: auto;
|
|
419
419
|
opacity: 1;
|
|
420
420
|
top: 100%;
|
|
421
421
|
margin-left: 16px !important;
|
|
422
422
|
transition: opacity 0.1s ease-in;
|
|
423
423
|
}
|
|
424
|
-
:host([data-level="1"]) .spw-header-navigation-item:hover ::slotted(a), :host([data-level="1"]) .spw-header-navigation-item
|
|
424
|
+
:host([data-level="1"]) .spw-header-navigation-item:hover ::slotted(a), :host([data-level="1"]) .spw-header-navigation-item.spw-header-navigation-item--is-desktop-open ::slotted(a) {
|
|
425
425
|
color: var(--spw-ds-primary) !important;
|
|
426
426
|
}
|
|
427
|
-
:host([data-level="1"]) .spw-header-navigation-item:hover ::slotted(a):before, :host([data-level="1"]) .spw-header-navigation-item
|
|
427
|
+
:host([data-level="1"]) .spw-header-navigation-item:hover ::slotted(a):before, :host([data-level="1"]) .spw-header-navigation-item.spw-header-navigation-item--is-desktop-open ::slotted(a):before {
|
|
428
428
|
width: calc(100% - 32px);
|
|
429
429
|
height: 3px;
|
|
430
430
|
}
|
|
@@ -469,7 +469,7 @@ template {
|
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
@media (min-width: 1024px) {
|
|
472
|
-
:host([data-level="2"]) .spw-header-navigation-item:hover ::slotted(spw-header-navigation-dropdown), :host([data-level="2"]) .spw-header-navigation-item
|
|
472
|
+
:host([data-level="2"]) .spw-header-navigation-item:hover ::slotted(spw-header-navigation-dropdown), :host([data-level="2"]) .spw-header-navigation-item.spw-header-navigation-item--is-desktop-open ::slotted(spw-header-navigation-dropdown) {
|
|
473
473
|
pointer-events: auto;
|
|
474
474
|
opacity: 1;
|
|
475
475
|
left: 100%;
|
|
@@ -477,11 +477,11 @@ template {
|
|
|
477
477
|
transition: opacity 0.1s ease-in;
|
|
478
478
|
z-index: 38;
|
|
479
479
|
}
|
|
480
|
-
:host([data-level="2"]) .spw-header-navigation-item:hover ::slotted(a), :host([data-level="2"]) .spw-header-navigation-item
|
|
480
|
+
:host([data-level="2"]) .spw-header-navigation-item:hover ::slotted(a), :host([data-level="2"]) .spw-header-navigation-item.spw-header-navigation-item--is-desktop-open ::slotted(a) {
|
|
481
481
|
color: var(--spw-ds-primary) !important;
|
|
482
482
|
background: var(--spw-colors-support-grey-grey-100);
|
|
483
483
|
}
|
|
484
|
-
:host([data-level="2"]) .spw-header-navigation-item:hover ::slotted(a):before, :host([data-level="2"]) .spw-header-navigation-item
|
|
484
|
+
:host([data-level="2"]) .spw-header-navigation-item:hover ::slotted(a):before, :host([data-level="2"]) .spw-header-navigation-item.spw-header-navigation-item--is-desktop-open ::slotted(a):before {
|
|
485
485
|
display: none;
|
|
486
486
|
}
|
|
487
487
|
}
|
|
@@ -698,7 +698,7 @@ template {
|
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
700
|
@media (min-width: 1024px) {
|
|
701
|
-
:host([data-level="1"]) .spw-header-navigation-item--is-megamenu:hover ::slotted(spw-header-navigation-dropdown), :host([data-level="1"]) .spw-header-navigation-item--is-megamenu
|
|
701
|
+
:host([data-level="1"]) .spw-header-navigation-item--is-megamenu:hover ::slotted(spw-header-navigation-dropdown), :host([data-level="1"]) .spw-header-navigation-item--is-megamenu.spw-header-navigation-item--is-desktop-open ::slotted(spw-header-navigation-dropdown) {
|
|
702
702
|
margin-left: 0 !important;
|
|
703
703
|
pointer-events: auto;
|
|
704
704
|
}
|
|
@@ -732,7 +732,7 @@ template {
|
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
734
|
@media (min-width: 1024px) {
|
|
735
|
-
:host([data-level="2"]) .spw-header-navigation-item--is-megamenu:hover ::slotted(spw-header-navigation-dropdown), :host([data-level="2"]) .spw-header-navigation-item--is-megamenu
|
|
735
|
+
:host([data-level="2"]) .spw-header-navigation-item--is-megamenu:hover ::slotted(spw-header-navigation-dropdown), :host([data-level="2"]) .spw-header-navigation-item--is-megamenu.spw-header-navigation-item--is-desktop-open ::slotted(spw-header-navigation-dropdown) {
|
|
736
736
|
position: relative;
|
|
737
737
|
left: 0;
|
|
738
738
|
}
|
|
@@ -11,6 +11,45 @@ export class SpwHeaderNavigationItem {
|
|
|
11
11
|
this.isSubnavVisible = false;
|
|
12
12
|
this.lastClickedLevel1Item = null;
|
|
13
13
|
this.isMobile = window.innerWidth < 1024;
|
|
14
|
+
this.isDesktopOpen = false;
|
|
15
|
+
this.handleDesktopKeyDown = (event) => {
|
|
16
|
+
if (this.isMobile || !this.hasSubnav || this.isInsideMegamenu())
|
|
17
|
+
return;
|
|
18
|
+
const ownLink = this.getOwnLink();
|
|
19
|
+
if (event.key === 'Enter' && !this.isDesktopOpen && event.target === ownLink) {
|
|
20
|
+
event.preventDefault();
|
|
21
|
+
this.openDesktop();
|
|
22
|
+
}
|
|
23
|
+
else if (event.key === 'Escape' && this.isDesktopOpen) {
|
|
24
|
+
const target = event.target;
|
|
25
|
+
const isOwnLinkOrDirectChildLink = target === ownLink || this.getManagedLinks().includes(target);
|
|
26
|
+
if (isOwnLinkOrDirectChildLink) {
|
|
27
|
+
event.preventDefault();
|
|
28
|
+
event.stopPropagation();
|
|
29
|
+
this.closeDesktop(true);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
this.handleFocusOut = (event) => {
|
|
34
|
+
if (this.isMobile || !this.hasSubnav || this.isInsideMegamenu())
|
|
35
|
+
return;
|
|
36
|
+
const relatedTarget = event.relatedTarget;
|
|
37
|
+
if (!relatedTarget || !this.el.contains(relatedTarget)) {
|
|
38
|
+
this.closeDesktop(false);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
this.handleMouseEnter = () => {
|
|
42
|
+
if (this.isMobile || !this.hasSubnav || this.isInsideMegamenu())
|
|
43
|
+
return;
|
|
44
|
+
this.openDesktop();
|
|
45
|
+
};
|
|
46
|
+
this.handleMouseLeave = () => {
|
|
47
|
+
if (this.isMobile || !this.hasSubnav || this.isInsideMegamenu())
|
|
48
|
+
return;
|
|
49
|
+
if (this.el.matches(':focus-within'))
|
|
50
|
+
return;
|
|
51
|
+
this.closeDesktop(false);
|
|
52
|
+
};
|
|
14
53
|
}
|
|
15
54
|
componentWillLoad() {
|
|
16
55
|
this.internalIsActive = this.isActive;
|
|
@@ -36,6 +75,87 @@ export class SpwHeaderNavigationItem {
|
|
|
36
75
|
this.hasSubnav = hasSubnav;
|
|
37
76
|
}
|
|
38
77
|
}
|
|
78
|
+
this.syncFocusability();
|
|
79
|
+
}
|
|
80
|
+
isMegamenu() {
|
|
81
|
+
return this.variant === 'megamenu' && this.level === 1;
|
|
82
|
+
}
|
|
83
|
+
isInsideMegamenu() {
|
|
84
|
+
if (this.level === 1)
|
|
85
|
+
return false;
|
|
86
|
+
let parent = this.el.parentElement;
|
|
87
|
+
while (parent) {
|
|
88
|
+
if (parent.tagName === 'SPW-HEADER-NAVIGATION-ITEM' && parent.getAttribute('data-level') === '1') {
|
|
89
|
+
return parent.getAttribute('variant') === 'megamenu';
|
|
90
|
+
}
|
|
91
|
+
parent = parent.parentElement;
|
|
92
|
+
}
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
getOwnLink() {
|
|
96
|
+
return this.el.querySelector(':scope > a');
|
|
97
|
+
}
|
|
98
|
+
getViewMoreLink(dropdown) {
|
|
99
|
+
var _a;
|
|
100
|
+
const shadowRoot = dropdown.shadowRoot;
|
|
101
|
+
return (_a = shadowRoot === null || shadowRoot === void 0 ? void 0 : shadowRoot.querySelector('spw-link')) !== null && _a !== void 0 ? _a : null;
|
|
102
|
+
}
|
|
103
|
+
getManagedLinks() {
|
|
104
|
+
if (!this.el.querySelector('spw-header-navigation-dropdown'))
|
|
105
|
+
return [];
|
|
106
|
+
if (this.isMegamenu()) {
|
|
107
|
+
const links = Array.from(this.el.querySelectorAll('spw-header-navigation-dropdown a'));
|
|
108
|
+
const dropdowns = Array.from(this.el.querySelectorAll('spw-header-navigation-dropdown'));
|
|
109
|
+
dropdowns.forEach(dropdown => {
|
|
110
|
+
const viewMore = this.getViewMoreLink(dropdown);
|
|
111
|
+
if (viewMore)
|
|
112
|
+
links.push(viewMore);
|
|
113
|
+
});
|
|
114
|
+
return links;
|
|
115
|
+
}
|
|
116
|
+
const dropdown = this.el.querySelector(':scope > spw-header-navigation-dropdown');
|
|
117
|
+
if (!dropdown)
|
|
118
|
+
return [];
|
|
119
|
+
const links = [];
|
|
120
|
+
Array.from(dropdown.children).forEach(child => {
|
|
121
|
+
if (child.tagName === 'SPW-HEADER-NAVIGATION-ITEM') {
|
|
122
|
+
const link = child.querySelector(':scope > a');
|
|
123
|
+
if (link)
|
|
124
|
+
links.push(link);
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
const viewMore = this.getViewMoreLink(dropdown);
|
|
128
|
+
if (viewMore)
|
|
129
|
+
links.push(viewMore);
|
|
130
|
+
return links;
|
|
131
|
+
}
|
|
132
|
+
syncFocusability() {
|
|
133
|
+
if (this.isMobile)
|
|
134
|
+
return;
|
|
135
|
+
this.getManagedLinks().forEach(link => {
|
|
136
|
+
if (this.isDesktopOpen) {
|
|
137
|
+
link.removeAttribute('tabindex');
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
link.setAttribute('tabindex', '-1');
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
openDesktop() {
|
|
145
|
+
if (this.isMobile || !this.el.querySelector('spw-header-navigation-dropdown'))
|
|
146
|
+
return;
|
|
147
|
+
this.isDesktopOpen = true;
|
|
148
|
+
this.syncFocusability();
|
|
149
|
+
}
|
|
150
|
+
closeDesktop(refocusOwnLink) {
|
|
151
|
+
var _a;
|
|
152
|
+
if (!this.isDesktopOpen)
|
|
153
|
+
return;
|
|
154
|
+
this.isDesktopOpen = false;
|
|
155
|
+
this.syncFocusability();
|
|
156
|
+
if (refocusOwnLink) {
|
|
157
|
+
(_a = this.getOwnLink()) === null || _a === void 0 ? void 0 : _a.focus();
|
|
158
|
+
}
|
|
39
159
|
}
|
|
40
160
|
calculateLevel() {
|
|
41
161
|
let level = 1;
|
|
@@ -151,6 +271,10 @@ export class SpwHeaderNavigationItem {
|
|
|
151
271
|
});
|
|
152
272
|
mutationObserver.observe(slot, { childList: true, subtree: true });
|
|
153
273
|
}
|
|
274
|
+
this.el.addEventListener('focusout', this.handleFocusOut);
|
|
275
|
+
}
|
|
276
|
+
disconnectedCallback() {
|
|
277
|
+
this.el.removeEventListener('focusout', this.handleFocusOut);
|
|
154
278
|
}
|
|
155
279
|
render() {
|
|
156
280
|
const pageTitle = this.getPageTitle();
|
|
@@ -161,8 +285,9 @@ export class SpwHeaderNavigationItem {
|
|
|
161
285
|
'spw-header-navigation-item--is-active': this.internalIsActive,
|
|
162
286
|
'spw-header-navigation-item--is-subnav-visible': this.isSubnavVisible,
|
|
163
287
|
'spw-header-navigation-item--is-megamenu': this.variant === 'megamenu',
|
|
288
|
+
'spw-header-navigation-item--is-desktop-open': this.isDesktopOpen,
|
|
164
289
|
};
|
|
165
|
-
return (h(Host, { key: '
|
|
290
|
+
return (h(Host, { key: '7a47eaa623fbb4ffaaf0f710a92e245c95aa53c6', "data-level": this.level }, h("div", { key: 'bd8106c8ba69ccc15742d16868c15bd7caedd0a2', class: elementClass, onKeyDown: this.handleDesktopKeyDown, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, h("div", { key: 'ae7bda0d0ed78280a0a0ae9f21441605c45a56b9', class: "spw-header-navigation-item__content", onClick: event => this.toggleSubnavVisibility(event) }, this.isSubnavVisible && (h("div", { key: '0b6fa3115a8ade17c361d46c1ef3e745984c9865', class: `spw-header-navigation-item__top spw-header-navigation-item__top--${this.level}` }, h("div", { key: '70b76cae3997545f4836d5e9e3fb9ad2e09287dc', class: "spw-header-navigation-item__top-back", onClick: event => this.handleBackClick(event) }, h("spw-icon", { key: '2ebe9be3d4ae84d13221cfbd4abaa6470ebb32bf', icon: "fa-chevron-left" }), " ", h("span", { key: 'f69f17bf47233a7983d6fac66127936f51ada7df' }, this.level === 1 ? '' : this.level === 2 ? 'Menu principal' : storedTitle)), h("div", { key: '4064a6ebdb694ecf10900efba3efcb178dabb2bf', class: "spw-header-navigation-item__top-title" }, h("a", { key: '633ebe15619f8b1749c2c35525e1f51c0ff676fc', href: (pageTitle === null || pageTitle === void 0 ? void 0 : pageTitle.link) || '#', target: (pageTitle === null || pageTitle === void 0 ? void 0 : pageTitle.target) || '_self' }, (pageTitle === null || pageTitle === void 0 ? void 0 : pageTitle.title) || '')))), h("slot", { key: '302c088b314bd52cd98979af67dce472cdc98a86' })))));
|
|
166
291
|
}
|
|
167
292
|
static get is() { return "spw-header-navigation-item"; }
|
|
168
293
|
static get encapsulation() { return "shadow"; }
|
|
@@ -227,7 +352,8 @@ export class SpwHeaderNavigationItem {
|
|
|
227
352
|
"level": {},
|
|
228
353
|
"isSubnavVisible": {},
|
|
229
354
|
"lastClickedLevel1Item": {},
|
|
230
|
-
"isMobile": {}
|
|
355
|
+
"isMobile": {},
|
|
356
|
+
"isDesktopOpen": {}
|
|
231
357
|
};
|
|
232
358
|
}
|
|
233
359
|
static get events() {
|
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--spw-ds-container-xl: 1200px;
|
|
3
|
+
--spw-ds-container-lg: 1024px;
|
|
4
|
+
--spw-ds-container-md: 768px;
|
|
5
|
+
--spw-ds-container-sm: 640px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.spw-ds-container {
|
|
9
|
+
width: 100%;
|
|
10
|
+
padding-left: 16px;
|
|
11
|
+
padding-right: 16px;
|
|
12
|
+
margin-left: auto;
|
|
13
|
+
margin-right: auto;
|
|
14
|
+
}
|
|
15
|
+
@media (min-width: 360px) {
|
|
16
|
+
.spw-ds-container {
|
|
17
|
+
max-width: var(--spw-ds-container-sm);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
@media (min-width: 768px) {
|
|
21
|
+
.spw-ds-container {
|
|
22
|
+
max-width: var(--spw-ds-container-md);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
@media (min-width: 1024px) {
|
|
26
|
+
.spw-ds-container {
|
|
27
|
+
max-width: var(--spw-ds-container-lg);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
@media (min-width: 1200px) {
|
|
31
|
+
.spw-ds-container {
|
|
32
|
+
max-width: var(--spw-ds-container-xl);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
1
36
|
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
37
|
/* Document
|
|
3
38
|
========================================================================== */
|
|
@@ -325,41 +360,6 @@ template {
|
|
|
325
360
|
display: none;
|
|
326
361
|
}
|
|
327
362
|
|
|
328
|
-
:root {
|
|
329
|
-
--spw-ds-container-xl: 1200px;
|
|
330
|
-
--spw-ds-container-lg: 1024px;
|
|
331
|
-
--spw-ds-container-md: 768px;
|
|
332
|
-
--spw-ds-container-sm: 640px;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
.spw-ds-container {
|
|
336
|
-
width: 100%;
|
|
337
|
-
padding-left: 16px;
|
|
338
|
-
padding-right: 16px;
|
|
339
|
-
margin-left: auto;
|
|
340
|
-
margin-right: auto;
|
|
341
|
-
}
|
|
342
|
-
@media (min-width: 360px) {
|
|
343
|
-
.spw-ds-container {
|
|
344
|
-
max-width: var(--spw-ds-container-sm);
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
@media (min-width: 768px) {
|
|
348
|
-
.spw-ds-container {
|
|
349
|
-
max-width: var(--spw-ds-container-md);
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
@media (min-width: 1024px) {
|
|
353
|
-
.spw-ds-container {
|
|
354
|
-
max-width: var(--spw-ds-container-lg);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
@media (min-width: 1200px) {
|
|
358
|
-
.spw-ds-container {
|
|
359
|
-
max-width: var(--spw-ds-container-xl);
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
|
|
363
363
|
:host {
|
|
364
364
|
display: block;
|
|
365
365
|
}
|
|
@@ -386,6 +386,15 @@ template {
|
|
|
386
386
|
border-left: 1px solid var(--spw-colors-support-grey-grey-300);
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
+
.spw-header-persona:focus-visible {
|
|
390
|
+
outline: none;
|
|
391
|
+
}
|
|
392
|
+
.spw-header-persona:focus-visible .spw-header-persona__active-persona {
|
|
393
|
+
outline: 3px solid white;
|
|
394
|
+
outline-offset: -1px;
|
|
395
|
+
box-shadow: 0 0 0 5px black;
|
|
396
|
+
border-radius: var(--spw-ds-border-radius-full);
|
|
397
|
+
}
|
|
389
398
|
.spw-header-persona__label {
|
|
390
399
|
font-size: 14px;
|
|
391
400
|
display: block;
|
|
@@ -420,11 +429,6 @@ template {
|
|
|
420
429
|
background: var(--spw-colors-support-grey-grey-300);
|
|
421
430
|
}
|
|
422
431
|
}
|
|
423
|
-
.spw-header-persona__active-persona:focus-visible {
|
|
424
|
-
outline: 2px solid var(--spw-ds-focus);
|
|
425
|
-
outline-offset: 2px;
|
|
426
|
-
border-radius: var(--spw-ds-border-radius-full);
|
|
427
|
-
}
|
|
428
432
|
.spw-header-persona__trigger {
|
|
429
433
|
display: block;
|
|
430
434
|
}
|