@spw-ds/spw-stencil-library 1.17.0 → 1.17.2
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 +199 -11
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/spw-accordion_4.cjs.entry.js +13 -5
- package/dist/cjs/spw-avatar.cjs.entry.js +2 -2
- 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 +9 -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 +2 -2
- package/dist/cjs/spw-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/spw-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/spw-drawer.cjs.entry.js +3 -3
- 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 +8 -8
- package/dist/cjs/spw-file-upload.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/spw-grid.cjs.entry.js +2 -2
- package/dist/cjs/spw-header-lang.cjs.entry.js +1 -1
- package/dist/cjs/spw-header-navigation-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/spw-header-navigation-item.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/spw-header.cjs.entry.js +2 -2
- package/dist/cjs/spw-hero.cjs.entry.js +3 -3
- 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 +2 -2
- 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-modal.cjs.entry.js +3 -3
- 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 +6 -6
- 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 +20 -2
- package/dist/cjs/spw-sidebar-navigation-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidebar-navigation-item.cjs.entry.js +3 -3
- 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 +2 -2
- package/dist/cjs/spw-sidenav-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-sidenav.cjs.entry.js +2 -2
- 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 +11 -4
- 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 +2 -2
- 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 +17 -3
- 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 +2 -2
- package/dist/cjs/spw-tile-title.cjs.entry.js +2 -2
- package/dist/cjs/spw-tile.cjs.entry.js +17 -4
- package/dist/cjs/spw-timeline-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-timeline.cjs.entry.js +2 -2
- package/dist/cjs/spw-toc-container.cjs.entry.js +2 -2
- package/dist/cjs/spw-toc-navigation.cjs.entry.js +20 -0
- package/dist/cjs/spw-toc.cjs.entry.js +1 -1
- package/dist/cjs/spw-topbar.cjs.entry.js +4 -2
- package/dist/cjs/spw-wizard-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-wizard.cjs.entry.js +1 -1
- package/dist/collection/components/spw-accordion/spw-accordion-item/spw-accordion-item.css +9 -0
- package/dist/collection/components/spw-accordion/spw-accordion-item/spw-accordion-item.js +4 -3
- package/dist/collection/components/spw-accordion/spw-accordion-title/spw-accordion-title.js +1 -1
- package/dist/collection/components/spw-accordion/spw-accordion.css +5 -0
- package/dist/collection/components/spw-accordion/spw-accordion.js +10 -3
- package/dist/collection/components/spw-avatar/spw-avatar.css +10 -11
- package/dist/collection/components/spw-avatar/spw-avatar.js +1 -1
- package/dist/collection/components/spw-block-content/spw-block-content.js +1 -1
- package/dist/collection/components/spw-box/spw-box.js +1 -1
- package/dist/collection/components/spw-breadcrumb/spw-breadcrumb-item/spw-breadcrumb-item.js +9 -1
- package/dist/collection/components/spw-breadcrumb/spw-breadcrumb.js +1 -1
- package/dist/collection/components/spw-button/spw-button.js +1 -1
- package/dist/collection/components/spw-card/spw-card-content/spw-card-content.js +1 -1
- package/dist/collection/components/spw-card/spw-card-excerpt/spw-card-excerpt.js +1 -1
- package/dist/collection/components/spw-card/spw-card-image/spw-card-image.js +1 -1
- package/dist/collection/components/spw-card/spw-card-subtag-item/spw-card-subtag-item.js +1 -1
- package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.js +1 -1
- package/dist/collection/components/spw-card/spw-card-title/spw-card-title.js +1 -1
- package/dist/collection/components/spw-card/spw-card.css +7 -0
- package/dist/collection/components/spw-card/spw-card.js +1 -1
- package/dist/collection/components/spw-checkbox/spw-checkbox.js +1 -1
- package/dist/collection/components/spw-date-picker/spw-date-picker.js +1 -1
- package/dist/collection/components/spw-drawer/spw-drawer.js +3 -3
- package/dist/collection/components/spw-dropdown/spw-dropdown-container/spw-dropdown-container.js +1 -1
- package/dist/collection/components/spw-dropdown/spw-dropdown-item/spw-dropdown-item.js +1 -1
- package/dist/collection/components/spw-dropdown/spw-dropdown.js +1 -1
- package/dist/collection/components/spw-field-label/spw-field-label.js +1 -1
- package/dist/collection/components/spw-field-message/spw-field-message.js +1 -1
- package/dist/collection/components/spw-file-upload/spw-file-upload.js +2 -2
- package/dist/collection/components/spw-footer/spw-footer-bottom/spw-footer-bottom.js +1 -1
- package/dist/collection/components/spw-footer/spw-footer-content/spw-footer-content.js +1 -1
- package/dist/collection/components/spw-footer/spw-footer-content-col/spw-footer-content-col.js +1 -1
- package/dist/collection/components/spw-footer/spw-footer-link/spw-footer-link.js +1 -1
- package/dist/collection/components/spw-footer/spw-footer.js +1 -1
- package/dist/collection/components/spw-grid/spw-grid-item/spw-grid-item.js +2 -2
- package/dist/collection/components/spw-grid/spw-grid.js +2 -2
- package/dist/collection/components/spw-group/spw-group.js +1 -1
- package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.js +1 -1
- package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.js +1 -1
- package/dist/collection/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.js +1 -1
- package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.js +1 -1
- package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.js +1 -1
- package/dist/collection/components/spw-header/spw-header-persona-item/spw-header-persona-item.js +1 -1
- package/dist/collection/components/spw-header/spw-header.js +2 -2
- package/dist/collection/components/spw-hero/spw-hero.js +22 -3
- package/dist/collection/components/spw-icon/spw-icon.js +1 -1
- package/dist/collection/components/spw-input-slider/spw-input-slider.js +1 -1
- package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.js +1 -1
- package/dist/collection/components/spw-lightbox/spw-lightbox.js +2 -2
- package/dist/collection/components/spw-link/spw-link.js +1 -1
- package/dist/collection/components/spw-list/spw-list-description/spw-list-description.js +1 -1
- package/dist/collection/components/spw-list/spw-list-item/spw-list-item.js +1 -1
- package/dist/collection/components/spw-list/spw-list-title/spw-list-title.js +1 -1
- package/dist/collection/components/spw-list/spw-list.js +1 -1
- package/dist/collection/components/spw-loading/spw-loading.js +1 -1
- package/dist/collection/components/spw-modal/spw-modal.js +3 -3
- package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.js +1 -1
- package/dist/collection/components/spw-mosaic/spw-mosaic.js +1 -1
- package/dist/collection/components/spw-pagination/spw-pagination.js +6 -6
- package/dist/collection/components/spw-radio/spw-radio.js +1 -1
- package/dist/collection/components/spw-scrolltop/spw-scrolltop.js +1 -1
- package/dist/collection/components/spw-search-field/spw-search-field.js +76 -3
- package/dist/collection/components/spw-separator/spw-separator.js +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-dropdown/spw-sidebar-navigation-dropdown.js +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-item/spw-sidebar-navigation-item.js +3 -3
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-separator/spw-sidebar-navigation-separator.js +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar.js +1 -1
- package/dist/collection/components/spw-sidenav/spw-sidenav-group/spw-sidenav-group.js +2 -2
- package/dist/collection/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.js +3 -3
- package/dist/collection/components/spw-sidenav/spw-sidenav.js +2 -2
- package/dist/collection/components/spw-skeleton/spw-skeleton.js +1 -1
- package/dist/collection/components/spw-slider/spw-slider-item/spw-slider-item.js +1 -1
- package/dist/collection/components/spw-slider/spw-slider.js +1 -1
- package/dist/collection/components/spw-socials/spw-socials.js +1 -1
- package/dist/collection/components/spw-table/spw-table-body/spw-table-body.js +31 -4
- package/dist/collection/components/spw-table/spw-table-cell/spw-table-cell.js +1 -1
- package/dist/collection/components/spw-table/spw-table-container/spw-table-container.js +1 -1
- package/dist/collection/components/spw-table/spw-table-footer/spw-table-footer.js +1 -1
- package/dist/collection/components/spw-table/spw-table-head/spw-table-head.js +1 -1
- package/dist/collection/components/spw-table/spw-table-header/spw-table-header.js +2 -2
- package/dist/collection/components/spw-table/spw-table-row/spw-table-row.js +1 -1
- package/dist/collection/components/spw-table/spw-table-sidebar/spw-table-sidebar.js +1 -1
- package/dist/collection/components/spw-table/spw-table.js +38 -4
- package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.js +1 -1
- package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.js +1 -1
- package/dist/collection/components/spw-tabs/spw-tabs.js +1 -1
- package/dist/collection/components/spw-tag/spw-tag.js +1 -1
- package/dist/collection/components/spw-text-field/spw-text-field.js +1 -1
- package/dist/collection/components/spw-textarea/spw-textarea.js +1 -1
- package/dist/collection/components/spw-theme-provider/spw-theme-provider.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.css +3 -0
- package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.css +14 -2
- package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile.css +23 -1
- package/dist/collection/components/spw-tile/spw-tile.js +57 -4
- package/dist/collection/components/spw-timeline/spw-timeline-item/spw-timeline-item.js +2 -2
- package/dist/collection/components/spw-timeline/spw-timeline.js +2 -2
- package/dist/collection/components/spw-toc/spw-toc-container/spw-toc-container.js +4 -4
- package/dist/collection/components/spw-toc/spw-toc-navigation/spw-toc-navigation.js +40 -0
- package/dist/collection/components/spw-toc/spw-toc.js +1 -1
- package/dist/collection/components/spw-tooltip/spw-tooltip.js +1 -1
- package/dist/collection/components/spw-topbar/spw-topbar.css +61 -2
- package/dist/collection/components/spw-topbar/spw-topbar.js +23 -1
- package/dist/collection/components/spw-wizard/spw-wizard-item/spw-wizard-item.js +1 -1
- package/dist/collection/components/spw-wizard/spw-wizard.js +1 -1
- package/dist/collection/stories/organisms/spw-accordion/spw-accordion.stories.js +101 -3
- package/dist/collection/stories/organisms/spw-tile/spw-tile.stories.js +117 -0
- package/dist/collection/stories/organisms/spw-topbar/spw-topbar.stories.js +48 -1
- package/dist/components/{p-BrCHGcGN.js → p-BG8eSnGj.js} +1 -1
- package/dist/components/{p-Fqknc29G.js → p-Bd6Pj1em.js} +1 -1
- package/dist/components/p-Bi15ObnP.js +1 -0
- package/dist/components/p-BmDBeXas.js +1 -0
- package/dist/components/p-C0ziLgAI.js +1 -0
- package/dist/components/{p-nC0sTTf4.js → p-C1V6TSMJ.js} +1 -1
- package/dist/components/{p-DZoh_5b5.js → p-DLlEwOHN.js} +1 -1
- package/dist/components/{p-m97KOJBa.js → p-DPIrlkN8.js} +1 -1
- package/dist/components/{p-yEYYjoyI.js → p-DUN_1kk8.js} +1 -1
- package/dist/components/{p-xTIxnTQQ.js → p-DhbrY43Y.js} +1 -1
- package/dist/components/p-DyP6vchn.js +1 -0
- package/dist/components/{p-CLldNY-_.js → p-GqBctcHU.js} +1 -1
- package/dist/components/{p-CdTWu15K.js → p-XOK-JXlE.js} +1 -1
- package/dist/components/{p-2AbKLqDf.js → p-YvGDRmTV.js} +1 -1
- package/dist/components/{p-BBsDk5QJ.js → p-_Np7i1O2.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-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-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-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-theme-provider.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 +305 -11
- package/dist/components_vscode.json +5523 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/spw-accordion_4.entry.js +13 -5
- package/dist/esm/spw-avatar.entry.js +2 -2
- 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 +9 -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 +2 -2
- package/dist/esm/spw-checkbox.entry.js +1 -1
- package/dist/esm/spw-date-picker.entry.js +1 -1
- package/dist/esm/spw-drawer.entry.js +3 -3
- 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 +8 -8
- package/dist/esm/spw-file-upload.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/spw-grid.entry.js +2 -2
- package/dist/esm/spw-header-lang.entry.js +1 -1
- package/dist/esm/spw-header-navigation-dropdown.entry.js +1 -1
- package/dist/esm/spw-header-navigation-item.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/spw-header.entry.js +2 -2
- package/dist/esm/spw-hero.entry.js +3 -3
- 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 +2 -2
- 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-modal.entry.js +3 -3
- 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 +6 -6
- 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 +20 -2
- package/dist/esm/spw-sidebar-navigation-dropdown.entry.js +1 -1
- package/dist/esm/spw-sidebar-navigation-item.entry.js +3 -3
- 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 +2 -2
- package/dist/esm/spw-sidenav-item.entry.js +3 -3
- package/dist/esm/spw-sidenav.entry.js +2 -2
- 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 +11 -4
- 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 +2 -2
- 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 +17 -3
- 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 +2 -2
- package/dist/esm/spw-tile-title.entry.js +2 -2
- package/dist/esm/spw-tile.entry.js +17 -4
- package/dist/esm/spw-timeline-item.entry.js +2 -2
- package/dist/esm/spw-timeline.entry.js +2 -2
- package/dist/esm/spw-toc-container.entry.js +2 -2
- package/dist/esm/spw-toc-navigation.entry.js +20 -0
- package/dist/esm/spw-toc.entry.js +1 -1
- package/dist/esm/spw-topbar.entry.js +4 -2
- 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-6f244a33.entry.js → p-0043c2f4.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a2f8133e.entry.js → p-03c6b8d1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6b0338cb.entry.js → p-0726f68f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a418baf5.entry.js → p-0bced661.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ab100252.entry.js → p-0c7de0dc.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-7ed866cf.entry.js → p-0e1e2cae.entry.js} +1 -1
- package/dist/spw-stencil-library/p-1034937d.entry.js +1 -0
- package/dist/spw-stencil-library/p-10caa54a.entry.js +1 -0
- package/dist/spw-stencil-library/{p-4da69501.entry.js → p-114d6e1e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c62049fc.entry.js → p-11e3ba7c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b966fc21.entry.js → p-17616d66.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-85cd97f4.entry.js → p-17c96d6e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4c16d701.entry.js → p-19c15bfc.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-44a07af3.entry.js → p-1dcb81d3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-aeb28e9a.entry.js → p-1fca6b4f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f91a179d.entry.js → p-24e1371c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e849e965.entry.js → p-2d2711ca.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-cb5dbe40.entry.js → p-2e819c63.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-244c42e1.entry.js → p-382a5109.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b5ba7206.entry.js → p-3a6c6557.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1603d35d.entry.js → p-3c08dd3a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-8d4885ff.entry.js → p-3dab5cac.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-51238b72.entry.js → p-3e21d004.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b9cf4fcb.entry.js → p-3f4aef0b.entry.js} +1 -1
- package/dist/spw-stencil-library/p-42b0e820.entry.js +1 -0
- package/dist/spw-stencil-library/{p-a775d477.entry.js → p-42f14e44.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6500046a.entry.js → p-4305fe28.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-7e884c21.entry.js → p-43add8a1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-06356658.entry.js → p-4e5ac719.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f38709c1.entry.js → p-4f57bff5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-59cb1719.entry.js → p-50a45386.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-76b03045.entry.js → p-588d1ab8.entry.js} +1 -1
- package/dist/spw-stencil-library/p-5a34e9a1.entry.js +1 -0
- package/dist/spw-stencil-library/{p-568f2002.entry.js → p-5c754331.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f35c966d.entry.js → p-5fba88ab.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9987b6a0.entry.js → p-60274467.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6b53d52d.entry.js → p-604af44e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f0f0bd9d.entry.js → p-66253e1e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-94581684.entry.js → p-66a5ccc3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a6c5c836.entry.js → p-6c8fdc24.entry.js} +1 -1
- package/dist/spw-stencil-library/p-6cfcab87.entry.js +1 -0
- package/dist/spw-stencil-library/{p-fade4100.entry.js → p-6df3645e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a86fc0a7.entry.js → p-71b07920.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5a0c0b53.entry.js → p-756050b1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9193e70b.entry.js → p-7e2bf8ad.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-11f9450a.entry.js → p-7e49020e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b494a271.entry.js → p-80a3d802.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-176c735c.entry.js → p-80c90bfb.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6e57e12a.entry.js → p-8341ae45.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-529e0d0d.entry.js → p-841ed3e2.entry.js} +1 -1
- package/dist/spw-stencil-library/p-8597c4d2.entry.js +1 -0
- package/dist/spw-stencil-library/{p-36d80c8f.entry.js → p-86da34a4.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9d93af2b.entry.js → p-87c52460.entry.js} +1 -1
- package/dist/spw-stencil-library/p-887d35a3.entry.js +1 -0
- package/dist/spw-stencil-library/{p-d5157e05.entry.js → p-88e84f99.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-82c5e2e2.entry.js → p-8a8faafd.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-962ec86a.entry.js → p-8c9d3e7e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ddd9acdc.entry.js → p-910d0c1b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-36484429.entry.js → p-9707cb79.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-0edf6e69.entry.js → p-9ad927ac.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-43af0902.entry.js → p-9c94a953.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-0cd5c984.entry.js → p-a2c5fa8a.entry.js} +1 -1
- package/dist/spw-stencil-library/p-a2e3cc07.entry.js +1 -0
- package/dist/spw-stencil-library/{p-fbc3d842.entry.js → p-a6a1956b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-93788d96.entry.js → p-aab25099.entry.js} +1 -1
- package/dist/spw-stencil-library/p-adaa48d1.entry.js +1 -0
- package/dist/spw-stencil-library/{p-b17a13d5.entry.js → p-afa2f53d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6d105331.entry.js → p-b0da8df5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-08de3542.entry.js → p-b4c51969.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-39990b60.entry.js → p-ba0206b4.entry.js} +1 -1
- package/dist/spw-stencil-library/p-c4ec0044.entry.js +1 -0
- package/dist/spw-stencil-library/{p-94f78e4c.entry.js → p-c76e8e18.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-13426e40.entry.js → p-c94fb0ec.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-2c430e60.entry.js → p-cade9057.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f5420f60.entry.js → p-cfc510f9.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-7e7cd509.entry.js → p-d2005b6a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e4f1665f.entry.js → p-d38ec8b1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f932224f.entry.js → p-d9556465.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-21db201c.entry.js → p-e56f73bd.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d6e88176.entry.js → p-e81a123f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e7c69e88.entry.js → p-eb01ac29.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d92bd82f.entry.js → p-eca88327.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5a08eb26.entry.js → p-ef90d734.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9bb373cf.entry.js → p-f2e65640.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ecbdf71f.entry.js → p-f44b0932.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-758ab426.entry.js → p-f940ab99.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-48078447.entry.js → p-feca6945.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-375581fd.entry.js → p-ff626bc0.entry.js} +1 -1
- package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
- package/dist/stats.json +941 -433
- package/dist/types/components/spw-accordion/spw-accordion-item/spw-accordion-item.d.ts +1 -1
- package/dist/types/components/spw-accordion/spw-accordion.d.ts +2 -1
- package/dist/types/components/spw-breadcrumb/spw-breadcrumb-item/spw-breadcrumb-item.d.ts +2 -0
- package/dist/types/components/spw-hero/spw-hero.d.ts +2 -0
- package/dist/types/components/spw-search-field/spw-search-field.d.ts +8 -0
- package/dist/types/components/spw-table/spw-table-body/spw-table-body.d.ts +2 -0
- package/dist/types/components/spw-table/spw-table.d.ts +4 -1
- package/dist/types/components/spw-tile/spw-tile.d.ts +5 -1
- package/dist/types/components/spw-toc/spw-toc-container/spw-toc-container.d.ts +1 -1
- package/dist/types/components/spw-toc/spw-toc-navigation/spw-toc-navigation.d.ts +4 -0
- package/dist/types/components/spw-topbar/spw-topbar.d.ts +2 -0
- package/dist/types/components.d.ts +104 -12
- package/dist/types/stories/organisms/spw-accordion/spw-accordion.stories.d.ts +2 -0
- package/dist/types/stories/organisms/spw-tile/spw-tile.stories.d.ts +4 -1
- package/dist/types/stories/organisms/spw-topbar/spw-topbar.stories.d.ts +1 -0
- package/hydrate/index.js +243 -142
- package/hydrate/index.mjs +243 -142
- package/package.json +1 -1
- package/dist/components/p-B3x0iMeq.js +0 -1
- package/dist/components/p-C3B7H2-k.js +0 -1
- package/dist/components/p-C5-yiily.js +0 -1
- package/dist/components/p-R4SpR2mV.js +0 -1
- package/dist/spw-stencil-library/p-014cceee.entry.js +0 -1
- package/dist/spw-stencil-library/p-2b6b85a3.entry.js +0 -1
- package/dist/spw-stencil-library/p-2f45d1f5.entry.js +0 -1
- package/dist/spw-stencil-library/p-3d6fe416.entry.js +0 -1
- package/dist/spw-stencil-library/p-4c636296.entry.js +0 -1
- package/dist/spw-stencil-library/p-898f2ca7.entry.js +0 -1
- package/dist/spw-stencil-library/p-bec8374e.entry.js +0 -1
- package/dist/spw-stencil-library/p-f0590340.entry.js +0 -1
- package/dist/spw-stencil-library/p-f7a94fe7.entry.js +0 -1
- package/dist/spw-stencil-library/p-fc9acdf2.entry.js +0 -1
package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.js
CHANGED
|
@@ -63,7 +63,7 @@ export class SpwTabsNavigationItem {
|
|
|
63
63
|
const iconClass = `spw-icon--${iconPosition}`;
|
|
64
64
|
const iconElement = this.icon ? h("spw-icon", { class: iconClass, icon: this.icon }) : null;
|
|
65
65
|
const tagElement = this.tagText ? (h("spw-tag", { size: "small", "has-icon": this.tagIcon ? 'true' : 'false', variant: this.tagVariant }, this.tagText)) : null;
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: 'f83f39238b2ad36331a0019957bfc0172ec90475', class: this.active ? '--active' : '' }, h("li", { key: '2de2a4724fd10bae36d139b1bb4a2330f18060cc', id: `tab-${this.tabId}`, role: "tab", "aria-selected": this.active ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.accAriaLabel || this.slotText, onKeyDown: this.handleKeyDown, tabIndex: this.disabled ? -1 : 0, class: this.elementClass, onClick: this.handleClick }, this.hasEllipsis && (h("spw-tooltip", { key: '52e992105d2502cded9b91a83714a770d589b78a', cursor: this.disabled ? 'disabled' : 'pointer', class: "spw-tooltip--has-ellipsis", tooltipText: this.slotText }, iconPosition === 'left' && iconElement, h("slot", { key: '4a163c036f45408acf51357c810f60ecf2e41294' }), iconPosition === 'right' && iconElement, tagElement)), !this.hasEllipsis && (h(Fragment, { key: '627449d1b46f0f9581d3c2828f7ae98456d7aed6' }, iconPosition === 'left' && iconElement, h("slot", { key: '71d866ff84174b6e87412c1b79cb3c047d94ca0b' }), iconPosition === 'right' && iconElement, tagElement)), ' ', this.bubble && h("span", { key: '7656375f6cf5aa2e9a73c2eed44dbf9afbe574fd', class: "bubble" }))));
|
|
67
67
|
}
|
|
68
68
|
static get is() { return "spw-tabs-navigation-item"; }
|
|
69
69
|
static get encapsulation() { return "shadow"; }
|
|
@@ -167,7 +167,7 @@ export class SpwTabs {
|
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
169
|
render() {
|
|
170
|
-
return (h("div", { key: '
|
|
170
|
+
return (h("div", { key: '72bda4d19873af2ceaf93baeda3e8684c7184bb1', class: this.elementClass }, h("slot", { key: '05d03dbb82e3bc6e0f48858151b066a901c6652e', name: "navigation" }), h("slot", { key: 'fb770842e27ad9139e41028a6208ddbcd45f1931', name: "content" })));
|
|
171
171
|
}
|
|
172
172
|
static get is() { return "spw-tabs"; }
|
|
173
173
|
static get encapsulation() { return "shadow"; }
|
|
@@ -49,7 +49,7 @@ export class SpwTag {
|
|
|
49
49
|
};
|
|
50
50
|
const iconToDisplay = this.icon || this.getIcon(this.variant);
|
|
51
51
|
const iconElement = this.hasIcon ? h("spw-icon", { variant: this.iconVariant, icon: iconToDisplay }) : null;
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: '39f2a6eea9400bdc824f6e12a8b2330dcf2ccb9f' }, h(TagType, Object.assign({ key: 'ace340074afabfe996d3a5dfa30d4ce9b12cc273' }, attrs, { class: this.elementClass }), this.iconPosition === 'left' && iconElement, h("slot", { key: '35f77c798de2ee564e5b5775da553df6a85c7ccd' }), this.iconPosition === 'right' && iconElement)));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "spw-tag"; }
|
|
55
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -279,7 +279,7 @@ export class SpwTextField {
|
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
281
|
render() {
|
|
282
|
-
return (h("div", { key: '
|
|
282
|
+
return (h("div", { key: 'afca3353207d81e47a21291187df13468989a60a', class: this.elementClass }, this.label && (h("spw-field-label", { key: 'f2701073be4dfcc5e56c1b7d37b3e8f806a0173a', label: this.label, name: this.name, required: this.required, tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, tooltipMaxWidth: this.tooltipMaxWidth, tooltipDirection: this.tooltipDirection, tooltipCursor: this.tooltipCursor })), this.assistiveText && (h("spw-field-message", { key: '644c89dc69f8b828746ac318afae651b2960734d', class: "spw-text-field__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: '328cb3b873da4ba85d7e3f5e9be40124679bba7c', class: "spw-text-field__container" }, this.type === 'number' && this.hasControls && (h("button", { key: '6b298771de532e702e859f686d0781f3d357b439', type: "button", class: "spw-text-field__number-btn spw-text-field__number-btn--decrement", onClick: () => this.decrement(), disabled: this.disabled || (this.min != null && Number(this.value) <= this.min), "aria-label": this.accAriaLabelDecrement }, h("spw-icon", { key: '00a085f26a7a7738e63a639ad1d04640d81c76bb', icon: "fa-minus" }))), h("div", { key: '7f246a4f8ab564fcfef9e4d8348b4450954f9df5', class: "spw-text-field__input-container" }, h("input", { key: '72614d45db2e7742592101f2fed68096591410bf', class: "spw-text-field__input", ref: el => (this.inputElement = el), type: this.type === 'number' && (this.decimalPrecision != null || this.mask != null) ? 'text' : this.type, inputMode: this.type === 'number' && (this.decimalPrecision != null || this.mask != null) ? 'decimal' : undefined, min: this.type === 'number' && this.decimalPrecision == null && this.mask == null ? this.min : undefined, max: this.type === 'number' && this.decimalPrecision == null && this.mask == null ? this.max : undefined, step: this.type === 'number' && this.decimalPrecision == null && this.mask == null ? this.step : undefined, placeholder: this.placeholder, "aria-label": this.accAriaLabel || this.name, disabled: this.disabled, name: this.name, id: this.name, minLength: this.minLength, maxLength: this.maxLength, required: this.required, onInput: event => this.handleInput(event), onKeyDown: event => this.handleKeyDown(event) }), (this.isSearch || this.isClearIconVisible) && (h("div", { key: 'b4599118ed64ed03ab30f1f32d34594a38d31b9c', class: "spw-text-field__icons" }, this.isClearIconVisible && (h("span", { key: '716ac4763ebb3d9ada72ddaf32a24a7fc9340aa2', class: "spw-text-field__clear", onClick: () => this.handleClear() }, h("spw-icon", { key: 'd01ae0ed2a694e658a487125b46f5c68dbf0ebed', class: "spw-text-field__icon spw-text-field__icon--clear", icon: "fa-xmark" }))), this.isSearch && !this.hasSubmitButton && h("spw-icon", { key: 'e65660d784f6dd2c22ca90efd02fa0ae03998318', class: "spw-text-field__icon spw-text-field__icon--search", icon: "fa-magnifying-glass" }), this.hasSubmitButton && (h("button", { key: '6ced3c19c90a732a525baffe84f08f32c47817c3', type: "button", class: "spw-text-field__submit", onClick: () => this.handleSubmit(), "aria-label": "Rechercher" }, h("spw-icon", { key: 'f2a12ce4102682754a805255d053a60dd81e6fd2', icon: "fa-magnifying-glass" })))))), this.type === 'number' && this.hasControls && (h("button", { key: 'f332b9ec99d56ca33958d8398fbc6a9da3e6bc28', type: "button", class: "spw-text-field__number-btn spw-text-field__number-btn--increment", onClick: () => this.increment(), disabled: this.disabled || (this.max != null && Number(this.value) >= this.max), "aria-label": this.accAriaLabelIncrement }, h("spw-icon", { key: 'd773d990d26ff2bb26fc043b79bee8eb13e383d4', icon: "fa-plus" }))), this.indicator && h("div", { key: '904645cd71f226e1fbf2896b7a5c2e885ae5e8bf', class: "spw-text-field__indicator" }, this.indicator)), this.renderMessages()));
|
|
283
283
|
}
|
|
284
284
|
static get is() { return "spw-text-field"; }
|
|
285
285
|
static get encapsulation() { return "shadow"; }
|
|
@@ -93,7 +93,7 @@ export class SpwTextarea {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
render() {
|
|
96
|
-
return (h("div", { key: '
|
|
96
|
+
return (h("div", { key: '27ee0c6ee4aea3be687bf6d8427e65eaa45d3bd9', class: this.elementClass }, this.label && (h("spw-field-label", { key: 'b424fdfd248041d80589ccbf148cce1dc797ddd1', label: this.label, name: this.name, required: this.required, tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, tooltipMaxWidth: this.tooltipMaxWidth, tooltipDirection: this.tooltipDirection, tooltipCursor: this.tooltipCursor })), this.assistiveText && (h("spw-field-message", { key: '81cff87942a9454b94c8cc3d85b25d9a123c0c37', class: "spw-textarea__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: '9b2a6044e23cf1477210ab4892347e55db7e0861', class: "spw-textarea__container" }, h("textarea", { key: '97590b56f534a0e4a685465b5704a30fab889d58', class: "spw-textarea__input", ref: el => (this.textareaElement = el), value: this.internalValue, placeholder: this.placeholder, disabled: this.disabled, name: this.name, id: this.name, rows: this.rows, minLength: this.minLength, maxLength: this.maxLength, required: this.required, onInput: event => this.handleChange(event) })), this.renderMessages()));
|
|
97
97
|
}
|
|
98
98
|
static get is() { return "spw-textarea"; }
|
|
99
99
|
static get encapsulation() { return "shadow"; }
|
|
@@ -24,7 +24,7 @@ export class SpwThemeProvider {
|
|
|
24
24
|
document.documentElement.setAttribute('data-theme', theme);
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (h("main", { key: '
|
|
27
|
+
return (h("main", { key: 'ad2ddcefb69b42f0b396da71e8c73441cdb1cdfa', class: `spw-theme-${this.theme}` }, h("slot", { key: 'f897d41f798f68cf9eb13b161c85b9b0265f0f39' })));
|
|
28
28
|
}
|
|
29
29
|
static get is() { return "spw-theme-provider"; }
|
|
30
30
|
static get properties() {
|
|
@@ -403,6 +403,9 @@ template {
|
|
|
403
403
|
line-height: 1.5;
|
|
404
404
|
font-size: 18px;
|
|
405
405
|
}
|
|
406
|
+
:host(.--icon.--surface-dark) .spw-tile-description {
|
|
407
|
+
color: white;
|
|
408
|
+
}
|
|
406
409
|
:host(.--big) .spw-tile-description, :host(.--light) .spw-tile-description {
|
|
407
410
|
color: white;
|
|
408
411
|
line-height: 1.3;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class SpwTileDescription {
|
|
3
3
|
render() {
|
|
4
|
-
return (h("div", { key: '
|
|
4
|
+
return (h("div", { key: 'd6fd73af2040dd4ba3674e262f5c60aaab042450', class: "spw-tile-description" }, h("slot", { key: '9746d264470bca17b502f618130b9a928cdf6ef6' })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "spw-tile-description"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -363,20 +363,32 @@ template {
|
|
|
363
363
|
:host {
|
|
364
364
|
display: block;
|
|
365
365
|
--spw-tile-title-icon: 20px;
|
|
366
|
+
--spw-tile-title-icon-mobile: 16px;
|
|
366
367
|
--spw-tile-title-underline: none;
|
|
367
368
|
}
|
|
368
369
|
|
|
369
370
|
:host(.--icon) .spw-tile-title {
|
|
370
371
|
color: var(--spw-color-themes-grey-grey-900);
|
|
371
|
-
line-height: 1.
|
|
372
|
-
font-size: var(--spw-tile-title-icon);
|
|
372
|
+
line-height: 1.3;
|
|
373
|
+
font-size: var(--spw-tile-title-icon-mobile);
|
|
373
374
|
font-weight: 700;
|
|
374
375
|
text-decoration: var(--spw-tile-title-underline);
|
|
375
376
|
transition: all 0.2s linear;
|
|
376
377
|
}
|
|
378
|
+
@media (min-width: 1024px) {
|
|
379
|
+
:host(.--icon) .spw-tile-title {
|
|
380
|
+
font-size: var(--spw-tile-title-icon);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
377
383
|
:host(.--icon.--hovered) .spw-tile-title {
|
|
378
384
|
color: var(--spw-ds-primary);
|
|
379
385
|
}
|
|
386
|
+
:host(.--icon.--surface-dark) .spw-tile-title {
|
|
387
|
+
color: white;
|
|
388
|
+
}
|
|
389
|
+
:host(.--icon.--surface-dark.--hovered) .spw-tile-title {
|
|
390
|
+
opacity: 0.8;
|
|
391
|
+
}
|
|
380
392
|
:host(.--light) .spw-tile-title {
|
|
381
393
|
color: white;
|
|
382
394
|
line-height: 1.3;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class SpwTileTitle {
|
|
3
3
|
render() {
|
|
4
|
-
return (h("h3", { key: '
|
|
4
|
+
return (h("h3", { key: '63415998ffbf54368523b4af68856112f0f1fba6', class: "spw-tile-title" }, h("slot", { key: '62147810811928236134857edea4e8753d74927a' })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "spw-tile-title"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -369,6 +369,7 @@ template {
|
|
|
369
369
|
text-decoration: none;
|
|
370
370
|
position: relative;
|
|
371
371
|
transition: all 0.3s ease-in-out;
|
|
372
|
+
border-radius: 6px;
|
|
372
373
|
}
|
|
373
374
|
.spw-tile--hoverable:hover {
|
|
374
375
|
transform: translateY(-5px);
|
|
@@ -382,10 +383,20 @@ template {
|
|
|
382
383
|
.spw-tile--icon {
|
|
383
384
|
padding: 16px 0;
|
|
384
385
|
}
|
|
386
|
+
.spw-tile--icon.spw-tile--height-square, .spw-tile--icon.spw-tile--height-portrait {
|
|
387
|
+
padding: 0;
|
|
388
|
+
position: relative;
|
|
389
|
+
overflow: hidden;
|
|
390
|
+
}
|
|
391
|
+
.spw-tile--icon.spw-tile--height-square {
|
|
392
|
+
padding-top: 100%;
|
|
393
|
+
}
|
|
394
|
+
.spw-tile--icon.spw-tile--height-portrait {
|
|
395
|
+
padding-top: 150%;
|
|
396
|
+
}
|
|
385
397
|
.spw-tile--big, .spw-tile--light {
|
|
386
398
|
position: relative;
|
|
387
399
|
padding-top: calc(70% - 12px);
|
|
388
|
-
border-radius: 6px;
|
|
389
400
|
overflow: hidden;
|
|
390
401
|
}
|
|
391
402
|
@media (min-width: 1024px) {
|
|
@@ -466,6 +477,14 @@ template {
|
|
|
466
477
|
left: 0;
|
|
467
478
|
width: 100%;
|
|
468
479
|
}
|
|
480
|
+
.spw-tile--icon.spw-tile--height-square .spw-tile__content, .spw-tile--icon.spw-tile--height-portrait .spw-tile__content {
|
|
481
|
+
position: absolute;
|
|
482
|
+
inset: 0;
|
|
483
|
+
display: flex;
|
|
484
|
+
align-items: center;
|
|
485
|
+
justify-content: center;
|
|
486
|
+
padding: 24px;
|
|
487
|
+
}
|
|
469
488
|
.spw-tile--big.spw-tile--hoverable .spw-tile__content {
|
|
470
489
|
padding-right: 84px;
|
|
471
490
|
}
|
|
@@ -488,4 +507,7 @@ template {
|
|
|
488
507
|
.spw-tile--icon .spw-tile__content-inner ::slotted(spw-icon) {
|
|
489
508
|
font-size: 32px;
|
|
490
509
|
color: var(--spw-ds-primary);
|
|
510
|
+
}
|
|
511
|
+
.spw-tile--icon.spw-tile--surface-dark .spw-tile__content-inner ::slotted(spw-icon) {
|
|
512
|
+
color: white;
|
|
491
513
|
}
|
|
@@ -3,7 +3,11 @@ export class SpwTile {
|
|
|
3
3
|
constructor() {
|
|
4
4
|
/** Type de variante de tuile */
|
|
5
5
|
this.variant = 'light';
|
|
6
|
-
/**
|
|
6
|
+
/** Surface sur laquelle la tuile est posée (uniquement valable pour le variant "icon" — adapte les couleurs du titre, de la description et de l'icône slottée). */
|
|
7
|
+
this.surface = 'light';
|
|
8
|
+
/** Couleur de fond de la tuile. Accepte toute valeur CSS valide (variable CSS, hexadécimal, rgba, etc.). Transparent par défaut. */
|
|
9
|
+
this.background = 'transparent';
|
|
10
|
+
/** Variante de hauteur de la tuile. Pour le variant "icon", "landscape" garde le comportement compact par défaut ; "square" et "portrait" appliquent un ratio fixe. */
|
|
7
11
|
this.height = 'landscape';
|
|
8
12
|
/** Attribut target, s'applique uniquement si href est rempli */
|
|
9
13
|
this.target = '_self';
|
|
@@ -20,12 +24,20 @@ export class SpwTile {
|
|
|
20
24
|
}
|
|
21
25
|
applyVariantToChildren() {
|
|
22
26
|
const variantClass = `--${this.variant}`;
|
|
27
|
+
const surfaceLightClass = '--surface-light';
|
|
28
|
+
const surfaceDarkClass = '--surface-dark';
|
|
23
29
|
const titleElement = this.el.querySelector('spw-tile-title');
|
|
24
30
|
const descriptionElement = this.el.querySelector('spw-tile-description');
|
|
25
|
-
|
|
31
|
+
if (titleElement) {
|
|
32
|
+
titleElement.classList.add(variantClass);
|
|
33
|
+
titleElement.classList.toggle(surfaceDarkClass, this.surface === 'dark');
|
|
34
|
+
titleElement.classList.toggle(surfaceLightClass, this.surface !== 'dark');
|
|
35
|
+
}
|
|
26
36
|
if (descriptionElement) {
|
|
27
37
|
descriptionElement.classList.add(variantClass);
|
|
28
38
|
descriptionElement.classList.toggle('--reveal-on-hover', this.revealDescription && (this.variant === 'light' || this.variant === 'big'));
|
|
39
|
+
descriptionElement.classList.toggle(surfaceDarkClass, this.surface === 'dark');
|
|
40
|
+
descriptionElement.classList.toggle(surfaceLightClass, this.surface !== 'dark');
|
|
29
41
|
}
|
|
30
42
|
}
|
|
31
43
|
get elementClass() {
|
|
@@ -33,6 +45,7 @@ export class SpwTile {
|
|
|
33
45
|
'spw-tile': true,
|
|
34
46
|
'spw-tile--hoverable': !!this.href,
|
|
35
47
|
[`spw-tile--${this.variant}`]: true,
|
|
48
|
+
[`spw-tile--surface-${this.surface}`]: true,
|
|
36
49
|
[`spw-tile--height-${this.height}`]: true,
|
|
37
50
|
'spw-tile--reveal-description': this.revealDescription && (this.variant === 'light' || this.variant === 'big'),
|
|
38
51
|
};
|
|
@@ -62,7 +75,7 @@ export class SpwTile {
|
|
|
62
75
|
href,
|
|
63
76
|
target,
|
|
64
77
|
};
|
|
65
|
-
return (h(Host, { key: '
|
|
78
|
+
return (h(Host, { key: 'bd1e76f5a2acf49880d9bbb53cd29af5ecc50cb9' }, h(TagType, Object.assign({ key: '41f0b7fbb7f019078ea321784cbe0848340e9121' }, attrs, { class: this.elementClass, style: { background: this.background } }), this.imageSrc && (this.variant === 'big' || this.variant === 'light') && (h(Fragment, { key: '023a197929feecedc60eefafc9275172c3557498' }, h("img", { key: 'bccbad9aac78d7bf2f3bf0d2a17b785e2740a6b2', src: this.imageSrc, alt: this.imageAlt, class: "spw-tile__image" }))), h("div", { key: 'a474283180524feaf0a15475bc052ff6f6ef868c', class: "spw-tile__content" }, (this.variant === 'big' || this.variant === 'light') && h("div", { key: '17ef604c396fc7abda7ca799a12795582300f18c', class: "spw-tile__overlay" }), h("div", { key: '02f8df8d6a15d3534ef34f740487755da769e522', class: "spw-tile__content-inner" }, h("slot", { key: '67e6ce4392fea4feb750a11b91708c7fa06417d0' })), this.href && this.variant === 'big' && (h("span", { key: 'cf8dbe080442d54c4675c849569dbb8f698a8a16', class: "spw-tile__button" }, h("spw-icon", { key: '1dc7d9df0562747d315ea38ebf1dda67b10bb305', icon: "fa-chevron-right" })))))));
|
|
66
79
|
}
|
|
67
80
|
static get is() { return "spw-tile"; }
|
|
68
81
|
static get encapsulation() { return "shadow"; }
|
|
@@ -98,6 +111,46 @@ export class SpwTile {
|
|
|
98
111
|
"attribute": "variant",
|
|
99
112
|
"defaultValue": "'light'"
|
|
100
113
|
},
|
|
114
|
+
"surface": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"mutable": false,
|
|
117
|
+
"complexType": {
|
|
118
|
+
"original": "'light' | 'dark'",
|
|
119
|
+
"resolved": "\"dark\" | \"light\"",
|
|
120
|
+
"references": {}
|
|
121
|
+
},
|
|
122
|
+
"required": false,
|
|
123
|
+
"optional": true,
|
|
124
|
+
"docs": {
|
|
125
|
+
"tags": [],
|
|
126
|
+
"text": "Surface sur laquelle la tuile est pos\u00E9e (uniquement valable pour le variant \"icon\" \u2014 adapte les couleurs du titre, de la description et de l'ic\u00F4ne slott\u00E9e)."
|
|
127
|
+
},
|
|
128
|
+
"getter": false,
|
|
129
|
+
"setter": false,
|
|
130
|
+
"reflect": false,
|
|
131
|
+
"attribute": "surface",
|
|
132
|
+
"defaultValue": "'light'"
|
|
133
|
+
},
|
|
134
|
+
"background": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"mutable": false,
|
|
137
|
+
"complexType": {
|
|
138
|
+
"original": "string",
|
|
139
|
+
"resolved": "string",
|
|
140
|
+
"references": {}
|
|
141
|
+
},
|
|
142
|
+
"required": false,
|
|
143
|
+
"optional": true,
|
|
144
|
+
"docs": {
|
|
145
|
+
"tags": [],
|
|
146
|
+
"text": "Couleur de fond de la tuile. Accepte toute valeur CSS valide (variable CSS, hexad\u00E9cimal, rgba, etc.). Transparent par d\u00E9faut."
|
|
147
|
+
},
|
|
148
|
+
"getter": false,
|
|
149
|
+
"setter": false,
|
|
150
|
+
"reflect": false,
|
|
151
|
+
"attribute": "background",
|
|
152
|
+
"defaultValue": "'transparent'"
|
|
153
|
+
},
|
|
101
154
|
"height": {
|
|
102
155
|
"type": "string",
|
|
103
156
|
"mutable": false,
|
|
@@ -110,7 +163,7 @@ export class SpwTile {
|
|
|
110
163
|
"optional": true,
|
|
111
164
|
"docs": {
|
|
112
165
|
"tags": [],
|
|
113
|
-
"text": "Variante de hauteur de la tuile
|
|
166
|
+
"text": "Variante de hauteur de la tuile. Pour le variant \"icon\", \"landscape\" garde le comportement compact par d\u00E9faut ; \"square\" et \"portrait\" appliquent un ratio fixe."
|
|
114
167
|
},
|
|
115
168
|
"getter": false,
|
|
116
169
|
"setter": false,
|
|
@@ -55,10 +55,10 @@ export class SpwTimelineItem {
|
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
57
|
const showConnector = this.isLast === 'false';
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: '737a24262928334e3bd1526ff587338c34e9b6bd' }, h("div", { key: 'dbe63ddb5fb790dcc43a2f94676628aebb157938', class: this.elementClass }, h("div", { key: '201ac977905400a113598cf9b971685e32ec32bb', class: "spw-timeline-item__step" }, h("div", { key: 'cf39040cd68333cc8ff2a72dafdd2144153c1fc9', class: "spw-timeline-item__icon" }), showConnector && h("div", { key: '9b56dacee259745afe52f26fe89f67ca5c38b616', class: "spw-timeline-item__connector" })), h("div", { key: 'def3ee1bc6b59399d00dc293b0692d193fe230c6', class: "spw-timeline-item__content" }, this.renderLabel(), this.description && (h("div", { key: '95913bfa34d745a4acb416934ca7771eadd48ddb', class: "spw-timeline-item__description-wrapper" }, h("div", { key: 'fdc5a1d044699295a6f370ac180e9d8801cd858c', ref: el => (this.descriptionRef = el), class: {
|
|
59
59
|
'spw-timeline-item__description': true,
|
|
60
60
|
'spw-timeline-item__description--collapsed': !this.isDescriptionExpanded,
|
|
61
|
-
} }, this.description))), h("slot", { key: '
|
|
61
|
+
} }, this.description))), h("slot", { key: '4e3f197266cfd9041203edf200cd445de803f5e3' })))));
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "spw-timeline-item"; }
|
|
64
64
|
static get encapsulation() { return "shadow"; }
|
|
@@ -53,11 +53,11 @@ export class SpwTimeline {
|
|
|
53
53
|
return this.visibleItems > 0 && items.length > this.visibleItems;
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: '921d63d8bc3b4c9e41ee9b46c78d795b1bff08f2' }, h("div", { key: 'eb6d664719e44737afc7f803761a0ecd9da8756c', class: this.elementClass }, h("slot", { key: 'bd2448579f5016325845a7246fd47d0dc3514a07' })), this.shouldShowToggleButton() && (h("div", { key: '817550bc2da3fe900b378f97e1cf1934afdebfdb', class: {
|
|
57
57
|
'spw-timeline__toggle': true,
|
|
58
58
|
'spw-timeline__toggle--more': !this.showAll,
|
|
59
59
|
'spw-timeline__toggle--less': this.showAll,
|
|
60
|
-
} }, h("span", { key: '
|
|
60
|
+
} }, h("span", { key: '532372cedeb8e46db021e368b7b17b0cf36e24d2', class: "spw-timeline__toggle-btn", onClick: this.handleToggle }, this.showAll ? this.showLessText : this.showMoreText)))));
|
|
61
61
|
}
|
|
62
62
|
static get is() { return "spw-timeline"; }
|
|
63
63
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class SpwTocContainer {
|
|
3
3
|
constructor() {
|
|
4
|
-
/** Profondeur maximale des headings à scanner. Ex: "h3" scanne h2 et h3, "h4" scanne h2, h3 et h4. Par défaut tous les niveaux jusqu'à h6. */
|
|
4
|
+
/** Profondeur maximale des headings à scanner. Ex: "h3" scanne h2 et h3, "h4" scanne h2, h3 et h4. Par défaut tous les niveaux jusqu'à h6. Peut également être définie sur spw-toc-navigation (dans ce cas, la valeur est propagée automatiquement à ce container). */
|
|
5
5
|
this.depth = 'h6';
|
|
6
6
|
}
|
|
7
7
|
async componentDidLoad() {
|
|
@@ -121,7 +121,7 @@ export class SpwTocContainer {
|
|
|
121
121
|
return tocItems;
|
|
122
122
|
}
|
|
123
123
|
render() {
|
|
124
|
-
return (h(Host, { key: '
|
|
124
|
+
return (h(Host, { key: '9dabdebfec120849a633d4e2645503053d3b6b50' }, h("slot", { key: 'bfd6165ac2c5f5ddbfda7873dd010c050ee40ecf' })));
|
|
125
125
|
}
|
|
126
126
|
static get is() { return "spw-toc-container"; }
|
|
127
127
|
static get originalStyleUrls() {
|
|
@@ -138,7 +138,7 @@ export class SpwTocContainer {
|
|
|
138
138
|
return {
|
|
139
139
|
"depth": {
|
|
140
140
|
"type": "string",
|
|
141
|
-
"mutable":
|
|
141
|
+
"mutable": true,
|
|
142
142
|
"complexType": {
|
|
143
143
|
"original": "'h2' | 'h3' | 'h4' | 'h5' | 'h6'",
|
|
144
144
|
"resolved": "\"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"",
|
|
@@ -148,7 +148,7 @@ export class SpwTocContainer {
|
|
|
148
148
|
"optional": true,
|
|
149
149
|
"docs": {
|
|
150
150
|
"tags": [],
|
|
151
|
-
"text": "Profondeur maximale des headings \u00E0 scanner. Ex: \"h3\" scanne h2 et h3, \"h4\" scanne h2, h3 et h4. Par d\u00E9faut tous les niveaux jusqu'\u00E0 h6."
|
|
151
|
+
"text": "Profondeur maximale des headings \u00E0 scanner. Ex: \"h3\" scanne h2 et h3, \"h4\" scanne h2, h3 et h4. Par d\u00E9faut tous les niveaux jusqu'\u00E0 h6. Peut \u00E9galement \u00EAtre d\u00E9finie sur spw-toc-navigation (dans ce cas, la valeur est propag\u00E9e automatiquement \u00E0 ce container)."
|
|
152
152
|
},
|
|
153
153
|
"getter": false,
|
|
154
154
|
"setter": false,
|
|
@@ -11,10 +11,25 @@ export class SpwTocNavigation {
|
|
|
11
11
|
this.h2Distances = new Map();
|
|
12
12
|
}
|
|
13
13
|
async componentDidLoad() {
|
|
14
|
+
this.propagateDepthToContainer();
|
|
14
15
|
await this.loadItems();
|
|
15
16
|
this.setupIntersectionObserver();
|
|
16
17
|
this.setupScrollHandler();
|
|
17
18
|
}
|
|
19
|
+
depthChanged() {
|
|
20
|
+
this.propagateDepthToContainer();
|
|
21
|
+
}
|
|
22
|
+
propagateDepthToContainer() {
|
|
23
|
+
if (!this.depth)
|
|
24
|
+
return;
|
|
25
|
+
const tocWrapper = this.el.closest('spw-toc');
|
|
26
|
+
if (!tocWrapper)
|
|
27
|
+
return;
|
|
28
|
+
const container = tocWrapper.querySelector('spw-toc-container');
|
|
29
|
+
if (container) {
|
|
30
|
+
container.depth = this.depth;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
18
33
|
componentDidRender() {
|
|
19
34
|
this.recalculateH2Distances();
|
|
20
35
|
}
|
|
@@ -361,6 +376,25 @@ export class SpwTocNavigation {
|
|
|
361
376
|
"reflect": false,
|
|
362
377
|
"attribute": "variant",
|
|
363
378
|
"defaultValue": "'progress'"
|
|
379
|
+
},
|
|
380
|
+
"depth": {
|
|
381
|
+
"type": "string",
|
|
382
|
+
"mutable": false,
|
|
383
|
+
"complexType": {
|
|
384
|
+
"original": "'h2' | 'h3' | 'h4' | 'h5' | 'h6'",
|
|
385
|
+
"resolved": "\"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"",
|
|
386
|
+
"references": {}
|
|
387
|
+
},
|
|
388
|
+
"required": false,
|
|
389
|
+
"optional": true,
|
|
390
|
+
"docs": {
|
|
391
|
+
"tags": [],
|
|
392
|
+
"text": "Profondeur maximale des headings \u00E0 scanner. Propage la valeur au spw-toc-container parent (si uniquement spw-toc-navigation configurable). Si non d\u00E9finie, la valeur du spw-toc-container est utilis\u00E9e."
|
|
393
|
+
},
|
|
394
|
+
"getter": false,
|
|
395
|
+
"setter": false,
|
|
396
|
+
"reflect": false,
|
|
397
|
+
"attribute": "depth"
|
|
364
398
|
}
|
|
365
399
|
};
|
|
366
400
|
}
|
|
@@ -375,6 +409,12 @@ export class SpwTocNavigation {
|
|
|
375
409
|
};
|
|
376
410
|
}
|
|
377
411
|
static get elementRef() { return "el"; }
|
|
412
|
+
static get watchers() {
|
|
413
|
+
return [{
|
|
414
|
+
"propName": "depth",
|
|
415
|
+
"methodName": "depthChanged"
|
|
416
|
+
}];
|
|
417
|
+
}
|
|
378
418
|
static get listeners() {
|
|
379
419
|
return [{
|
|
380
420
|
"name": "tocItemsChanged",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class SpwToc {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: 'f24802010a6a360504b7dbae94f5b12433480bbc' }, h("slot", { key: 'b16130289fb42ba41fad8547dfa87d77ac28c264' })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "spw-toc"; }
|
|
7
7
|
static get originalStyleUrls() {
|
|
@@ -127,7 +127,7 @@ export class SpwTooltip {
|
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
render() {
|
|
130
|
-
return (h("div", { key: '
|
|
130
|
+
return (h("div", { key: 'ea0de57189d5698db4302c830465b4200d58f89f', class: this.classes, onMouseEnter: this.showTooltip, onMouseLeave: this.hideTooltip }, h("slot", { key: '536d5e150e10ac2fa42840aec72395f68ad4beba' })));
|
|
131
131
|
}
|
|
132
132
|
static get is() { return "spw-tooltip"; }
|
|
133
133
|
static get encapsulation() { return "shadow"; }
|
|
@@ -382,10 +382,9 @@ template {
|
|
|
382
382
|
.spw-topbar__logo {
|
|
383
383
|
display: flex;
|
|
384
384
|
align-items: center;
|
|
385
|
-
font-size: 26px;
|
|
386
|
-
font-weight: bold;
|
|
387
385
|
gap: 12px;
|
|
388
386
|
color: var(--spw-colors-support-grey-grey-900);
|
|
387
|
+
align-self: stretch;
|
|
389
388
|
}
|
|
390
389
|
.spw-topbar__logo-link {
|
|
391
390
|
display: flex;
|
|
@@ -393,15 +392,75 @@ template {
|
|
|
393
392
|
gap: 8px;
|
|
394
393
|
color: inherit;
|
|
395
394
|
text-decoration: none;
|
|
395
|
+
position: relative;
|
|
396
|
+
align-self: stretch;
|
|
397
|
+
transition: all 0.2s linear;
|
|
398
|
+
}
|
|
399
|
+
.spw-topbar__logo-link:hover {
|
|
400
|
+
opacity: 0.8;
|
|
401
|
+
}
|
|
402
|
+
.spw-topbar__logo-link:active {
|
|
403
|
+
opacity: 0.9;
|
|
404
|
+
}
|
|
405
|
+
.spw-topbar__logo-link:focus-visible {
|
|
406
|
+
outline: 3px solid white;
|
|
407
|
+
outline-offset: 3px;
|
|
408
|
+
box-shadow: 0 0 0 5px black;
|
|
396
409
|
}
|
|
397
410
|
.spw-topbar__logo-icon {
|
|
398
411
|
width: 37px;
|
|
399
412
|
height: 41px;
|
|
413
|
+
min-width: 37px;
|
|
414
|
+
}
|
|
415
|
+
.spw-topbar ::slotted([slot=right]) {
|
|
416
|
+
display: none;
|
|
417
|
+
}
|
|
418
|
+
@media (min-width: 1024px) {
|
|
419
|
+
.spw-topbar ::slotted([slot=right]) {
|
|
420
|
+
display: block;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
.spw-topbar ::slotted([slot=right-mobile]) {
|
|
424
|
+
display: block;
|
|
425
|
+
}
|
|
426
|
+
@media (min-width: 1024px) {
|
|
427
|
+
.spw-topbar ::slotted([slot=right-mobile]) {
|
|
428
|
+
display: none;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
.spw-topbar .spw-topbar__site-title,
|
|
432
|
+
.spw-topbar ::slotted([slot=logo]) {
|
|
433
|
+
font-family: "Arial";
|
|
434
|
+
font-weight: bold;
|
|
435
|
+
letter-spacing: -1px;
|
|
436
|
+
color: var(--spw-colors-support-grey-grey-900);
|
|
437
|
+
line-height: 1.1;
|
|
438
|
+
font-size: 22px;
|
|
439
|
+
}
|
|
440
|
+
@media (min-width: 1024px) {
|
|
441
|
+
.spw-topbar .spw-topbar__site-title,
|
|
442
|
+
.spw-topbar ::slotted([slot=logo]) {
|
|
443
|
+
font-size: 30px;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
.spw-topbar__title-border {
|
|
447
|
+
position: absolute;
|
|
448
|
+
height: 4px;
|
|
449
|
+
width: 100%;
|
|
450
|
+
display: block;
|
|
451
|
+
bottom: -16px;
|
|
452
|
+
left: 0;
|
|
400
453
|
}
|
|
401
454
|
.spw-topbar__title {
|
|
455
|
+
display: none;
|
|
402
456
|
max-width: 160px;
|
|
403
457
|
font-weight: normal;
|
|
404
458
|
color: var(--spw-colors-support-grey-grey-600);
|
|
405
459
|
font-size: 12px;
|
|
406
460
|
line-height: 1.1;
|
|
461
|
+
}
|
|
462
|
+
@media (min-width: 1024px) {
|
|
463
|
+
.spw-topbar__title {
|
|
464
|
+
display: block;
|
|
465
|
+
}
|
|
407
466
|
}
|