@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
|
@@ -72,10 +72,10 @@ const SpwTableHeader = class {
|
|
|
72
72
|
}
|
|
73
73
|
attrs.style = stickyStyles;
|
|
74
74
|
}
|
|
75
|
-
return (index.h("th", Object.assign({ key: '
|
|
75
|
+
return (index.h("th", Object.assign({ key: '7e68726c07921d70ba9f0fa922e4372eb3e6dde9' }, attrs), index.h("div", { key: 'cd6ac42c6ce4dce455c9940d0074cc7fb627a841', class: {
|
|
76
76
|
'spw-table-header__content': true,
|
|
77
77
|
'spw-table-header__content--is-sorted': this.isSorted,
|
|
78
|
-
} }, index.h("slot", { key: '
|
|
78
|
+
} }, index.h("slot", { key: '9c1412d2300be8304e03d29cdc171d7e6481b958' }), index.h("div", { key: '1e51cb0b7c586d66a453ba244989e553b83a8c72', class: "spw-table-header__icons" }, index.h("slot", { key: '28903d1feb862ee661c588bc4259a7f188b259dd', name: "filters" }), (this.tooltipTitle || this.tooltipText) && (index.h("spw-tooltip", { key: 'c2d855b8c0eb6e5aed239d65b50a24f78f21ff5d', "tooltip-title": this.tooltipTitle, "tooltip-text": this.tooltipText }, index.h("spw-icon", { key: '9b0a49086dd675e4a9ba413cf7ed1dc533482077', variant: "fa-regular", icon: "fa-circle-question" }))), this.sortable && (index.h("spw-icon", { key: '326659f7c951d4bbb3fc70f247f18da7dd51b6b5', class: "spw-table-header__sort-icon", icon: this.isSorted ? (this.sortDirection === 'asc' ? 'fa-arrow-up-short-wide' : 'fa-arrow-down-wide-short') : 'fa-arrow-up-arrow-down' }))))));
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
SpwTableHeader.style = spwTableHeaderCss();
|
|
@@ -55,7 +55,7 @@ const SpwTableRow = class {
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
return (index.h(index.Host, { key: '
|
|
58
|
+
return (index.h(index.Host, { key: '8d69dfe04b76585e8d0bc94e25e79ac62d65b765', part: "row" }, index.h("tr", { key: 'be436e9588e55464d9ed3778721542a1e160d904', class: this.elementClass, part: "row" }, index.h("slot", { key: '4bdbfd73d1dd01ac4a0e51f8908cde39ada7c573' }))));
|
|
59
59
|
}
|
|
60
60
|
get el() { return index.getElement(this); }
|
|
61
61
|
static get watchers() { return {
|
|
@@ -130,7 +130,7 @@ const SpwTableSidebar = class {
|
|
|
130
130
|
}
|
|
131
131
|
render() {
|
|
132
132
|
const style = Object.assign(Object.assign({}, (this.observedHeight !== undefined && { height: `${this.observedHeight}px` })), { '--spw-table-sidebar-width': `${this.sidebarWidth}px` });
|
|
133
|
-
return (index.h(index.Host, { key: '
|
|
133
|
+
return (index.h(index.Host, { key: 'bf46e0ac1a574e7cde87c5180757de5a8aa35d20', style: style, class: this.hostClass }, index.h("nav", { key: '3ac9b2b53a0a3691beb22a51450da8ba63ba7d78', class: this.elementClass }, index.h("span", { key: '7df68f6f5d3d786405f6d32f99bcb65f429715bd', class: "spw-table-sidebar__toggle", onClick: this.toggleSidebar, "aria-expanded": this.expanded.toString() }, index.h("spw-icon", { key: '90b7363ea7d6c4392bf3016ddaa13afeb0739fc5', icon: "fa-chevron-left" })), index.h("div", { key: '371794226c3e41bcd0bb95ec8e0d4b99df422647', class: "spw-table-sidebar__mini", onClick: this.toggleSidebar }, index.h("spw-icon", { key: '4d7a7e875f9d7f24993f9d83a9f72c64af901ef0', icon: this.sidebarIcon, variant: "fa-regular" })), index.h("div", { key: '871795a1e854e0287f8ab302eb01144b27a96cc7', class: "spw-table-sidebar__content" }, index.h("div", { key: '0d2863e30efc30dcbfbca6d254265ba8fe6f11bc', class: "spw-table-sidebar__header" }, index.h("span", { key: '2b2838b91d6ef047c92da8574dc15c9e05f97ef3', class: "spw-table-sidebar__header-title" }, index.h("spw-icon", { key: 'dedbbd5cda9b16f9773a606021f4ae8adfecb9d1', icon: this.sidebarIcon, variant: "fa-regular" }), " ", this.sidebarTitle), this.hasReset && (index.h("spw-button", { key: '703faf02f488d355628d1b2fc8b9a9622291910b', class: "spw-table-sidebar__header-reset", onClick: this.handleReset, type: "button", variant: "secondary", size: "small", isIconOnly: true, icon: this.resetIcon }))), index.h("div", { key: '2149257798fc16bc0317e7b00ca9054f749f3b00', class: "spw-table-sidebar__scrollable-content" }, index.h("slot", { key: 'e48fc661a93d82945c39a31e240d36db422e54ac' })), index.h("div", { key: '9583206959f55bafc57fc245c68cf4d09536fb97', class: "spw-table-sidebar__footer" }, index.h("slot", { key: '141342f7a9ee0e9ec1f56b442e87ef7874ae157e', name: "sidebar-footer" }))))));
|
|
134
134
|
}
|
|
135
135
|
get el() { return index.getElement(this); }
|
|
136
136
|
};
|
|
@@ -15,8 +15,10 @@ const SpwTable = class {
|
|
|
15
15
|
this.minWidth = '600';
|
|
16
16
|
/** Permet de définir le table-layout (auto ou fixed) */
|
|
17
17
|
this.tableLayout = 'auto';
|
|
18
|
-
/** Définit un background de couleur différent une ligne sur
|
|
18
|
+
/** Définit un background de couleur différent une ligne sur N (via zebraRange) */
|
|
19
19
|
this.isZebra = false;
|
|
20
|
+
/** Fréquence du zébrage : une ligne teintée toutes les N lignes (par défaut 2) */
|
|
21
|
+
this.zebraRange = 2;
|
|
20
22
|
/** Désactive le tri natif pour permettre l'utilisation d'une fonction de tri personnalisée */
|
|
21
23
|
this.disableSort = false;
|
|
22
24
|
/** Active le redimensionnement manuel de la hauteur du tableau avec un handle */
|
|
@@ -67,6 +69,9 @@ const SpwTable = class {
|
|
|
67
69
|
onIsStickyChange() {
|
|
68
70
|
this.applyStickyToChildren();
|
|
69
71
|
}
|
|
72
|
+
onZebraChange() {
|
|
73
|
+
this.updateZebra();
|
|
74
|
+
}
|
|
70
75
|
componentDidLoad() {
|
|
71
76
|
var _a;
|
|
72
77
|
this.updateZebra();
|
|
@@ -277,6 +282,7 @@ const SpwTable = class {
|
|
|
277
282
|
this.updateZebra();
|
|
278
283
|
}
|
|
279
284
|
updateZebra() {
|
|
285
|
+
var _a;
|
|
280
286
|
const slot = this.el.shadowRoot.querySelector('slot:not([name])');
|
|
281
287
|
if (!slot)
|
|
282
288
|
return;
|
|
@@ -285,9 +291,11 @@ const SpwTable = class {
|
|
|
285
291
|
if (body) {
|
|
286
292
|
if (this.isZebra) {
|
|
287
293
|
body.setAttribute('is-zebra', 'true');
|
|
294
|
+
body.setAttribute('zebra-range', String((_a = this.zebraRange) !== null && _a !== void 0 ? _a : 2));
|
|
288
295
|
}
|
|
289
296
|
else {
|
|
290
297
|
body.removeAttribute('is-zebra');
|
|
298
|
+
body.removeAttribute('zebra-range');
|
|
291
299
|
}
|
|
292
300
|
if (typeof body.updateZebraStyles === 'function') {
|
|
293
301
|
body.updateZebraStyles();
|
|
@@ -374,10 +382,10 @@ const SpwTable = class {
|
|
|
374
382
|
return this.formatSize(this.maxHeight);
|
|
375
383
|
}
|
|
376
384
|
render() {
|
|
377
|
-
return (index.h(index.Host, { key: '
|
|
385
|
+
return (index.h(index.Host, { key: 'dabbc707f80267376120ba9d863fd1cd2b8bd7cc', style: {
|
|
378
386
|
'--spw-table-max-height': this.getMaxHeight(),
|
|
379
387
|
'--spw-table-min-width': this.formatSize(this.minWidth),
|
|
380
|
-
} }, index.h("div", { key: '
|
|
388
|
+
} }, index.h("div", { key: '1f906cfd810477870696afccba757493f74f5869', class: this.containerClass }, index.h("slot", { key: '685aa7323c83cfd5a6ea6b2b6889873b8c26fd80', name: "table-sidebar" }, " "), index.h("div", { key: '98797e8924da9322c84eeff86922686efeba97fe', class: "spw-table-wrapper" }, index.h("table", { key: '336ccc54b04e9b320c4ece0783eae9bb6e1a93f5', part: "table", class: this.elementClass, role: "table", "aria-label": this.accAriaLabel }, index.h("slot", { key: 'cee7064cd1ff45b80c70cf5f5a4259fd277bb3d2' })))), this.resizable && (index.h("div", { key: 'ed79ba8e555d2dbe1abbdf4ef1863102dfccb221', class: "spw-table-resize-handle", onMouseDown: this.handleResizeStart, role: "separator", "aria-orientation": "horizontal", "aria-label": "Redimensionner le tableau" }, index.h("div", { key: '47c677fa9d9e337d9c7d442975d9f537d7fd3c8e', class: "spw-table-resize-handle__bar" }))), index.h("slot", { key: '3a8e64500c5844d9a3c438248f8afb5c6d0636d7', name: "table-footer" })));
|
|
381
389
|
}
|
|
382
390
|
get el() { return index.getElement(this); }
|
|
383
391
|
static get watchers() { return {
|
|
@@ -386,6 +394,12 @@ const SpwTable = class {
|
|
|
386
394
|
}],
|
|
387
395
|
"isSticky": [{
|
|
388
396
|
"onIsStickyChange": 0
|
|
397
|
+
}],
|
|
398
|
+
"isZebra": [{
|
|
399
|
+
"onZebraChange": 0
|
|
400
|
+
}],
|
|
401
|
+
"zebraRange": [{
|
|
402
|
+
"onZebraChange": 0
|
|
389
403
|
}]
|
|
390
404
|
}; }
|
|
391
405
|
};
|
|
@@ -70,7 +70,7 @@ const SpwTabsNavigationItem = class {
|
|
|
70
70
|
const iconClass = `spw-icon--${iconPosition}`;
|
|
71
71
|
const iconElement = this.icon ? index.h("spw-icon", { class: iconClass, icon: this.icon }) : null;
|
|
72
72
|
const tagElement = this.tagText ? (index.h("spw-tag", { size: "small", "has-icon": this.tagIcon ? 'true' : 'false', variant: this.tagVariant }, this.tagText)) : null;
|
|
73
|
-
return (index.h(index.Host, { key: '
|
|
73
|
+
return (index.h(index.Host, { key: 'f83f39238b2ad36331a0019957bfc0172ec90475', class: this.active ? '--active' : '' }, index.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 && (index.h("spw-tooltip", { key: '52e992105d2502cded9b91a83714a770d589b78a', cursor: this.disabled ? 'disabled' : 'pointer', class: "spw-tooltip--has-ellipsis", tooltipText: this.slotText }, iconPosition === 'left' && iconElement, index.h("slot", { key: '4a163c036f45408acf51357c810f60ecf2e41294' }), iconPosition === 'right' && iconElement, tagElement)), !this.hasEllipsis && (index.h(index.Fragment, { key: '627449d1b46f0f9581d3c2828f7ae98456d7aed6' }, iconPosition === 'left' && iconElement, index.h("slot", { key: '71d866ff84174b6e87412c1b79cb3c047d94ca0b' }), iconPosition === 'right' && iconElement, tagElement)), ' ', this.bubble && index.h("span", { key: '7656375f6cf5aa2e9a73c2eed44dbf9afbe574fd', class: "bubble" }))));
|
|
74
74
|
}
|
|
75
75
|
get el() { return index.getElement(this); }
|
|
76
76
|
};
|
|
@@ -108,7 +108,7 @@ const SpwTabsNavigation = class {
|
|
|
108
108
|
'spw-tabs-navigation__list--vertical-on-mobile': this.isVerticalOnMobile,
|
|
109
109
|
'spw-tabs-navigation__list--centered': this.isCentered && !this.hasOverflow,
|
|
110
110
|
};
|
|
111
|
-
return (index.h("div", { key: '
|
|
111
|
+
return (index.h("div", { key: 'c29f607409df10b9a6f40b46ba278a974883bb92', class: containerClass }, this.showLeftArrow && (index.h("button", { key: '80d5b8d5e7c75ae271dfc8196a5992275a3f596e', class: "spw-tabs-navigation__arrow spw-tabs-navigation__arrow--left", onClick: this.scrollLeft, "aria-label": "Faire d\u00E9filer vers la gauche" }, index.h("spw-icon", { key: '7d3fdd5c6bf7c209127a9f3c009285c9f54b52c3', icon: "fa-chevron-left" }))), index.h("nav", { key: '9dd0d283d2a204ea5ae6155e9d07ae8c9c1d2ce2', class: navClass, "aria-label": this.accAriaLabel || 'Navigation' }, index.h("ul", { key: '77e2b21525de20ed2c20660666f6719b3cf70924', class: listClass, role: "tablist", ref: el => (this.ulElement = el), onScroll: this.handleScroll }, index.h("slot", { key: 'f4b347ebd803ebf92a61edb24fa9a5d048e6fbc9' }))), this.showRightArrow && (index.h("button", { key: '74777dea9c944899d68547defa91edc6cbf47785', class: "spw-tabs-navigation__arrow spw-tabs-navigation__arrow--right", onClick: this.scrollRight, "aria-label": "Faire d\u00E9filer vers la droite" }, index.h("spw-icon", { key: 'cf6c77da1da6963660d8e9b0c7b6c1b61bd9a6fe', icon: "fa-chevron-right" })))));
|
|
112
112
|
}
|
|
113
113
|
get hostElement() { return index.getElement(this); }
|
|
114
114
|
};
|
|
@@ -174,7 +174,7 @@ const SpwTabs = class {
|
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
176
|
render() {
|
|
177
|
-
return (index.h("div", { key: '
|
|
177
|
+
return (index.h("div", { key: '72bda4d19873af2ceaf93baeda3e8684c7184bb1', class: this.elementClass }, index.h("slot", { key: '05d03dbb82e3bc6e0f48858151b066a901c6652e', name: "navigation" }), index.h("slot", { key: 'fb770842e27ad9139e41028a6208ddbcd45f1931', name: "content" })));
|
|
178
178
|
}
|
|
179
179
|
get el() { return index.getElement(this); }
|
|
180
180
|
static get watchers() { return {
|
|
@@ -55,7 +55,7 @@ const SpwTag = class {
|
|
|
55
55
|
};
|
|
56
56
|
const iconToDisplay = this.icon || this.getIcon(this.variant);
|
|
57
57
|
const iconElement = this.hasIcon ? index.h("spw-icon", { variant: this.iconVariant, icon: iconToDisplay }) : null;
|
|
58
|
-
return (index.h(index.Host, { key: '
|
|
58
|
+
return (index.h(index.Host, { key: '39f2a6eea9400bdc824f6e12a8b2330dcf2ccb9f' }, index.h(TagType, Object.assign({ key: 'ace340074afabfe996d3a5dfa30d4ce9b12cc273' }, attrs, { class: this.elementClass }), this.iconPosition === 'left' && iconElement, index.h("slot", { key: '35f77c798de2ee564e5b5775da553df6a85c7ccd' }), this.iconPosition === 'right' && iconElement)));
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
SpwTag.style = spwTagCss();
|
|
@@ -293,7 +293,7 @@ const SpwTextField = class {
|
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
295
|
render() {
|
|
296
|
-
return (index.h("div", { key: '
|
|
296
|
+
return (index.h("div", { key: 'afca3353207d81e47a21291187df13468989a60a', class: this.elementClass }, this.label && (index.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 && (index.h("spw-field-message", { key: '644c89dc69f8b828746ac318afae651b2960734d', class: "spw-text-field__field-message", variant: "hint", showIcon: false }, this.assistiveText)), index.h("div", { key: '328cb3b873da4ba85d7e3f5e9be40124679bba7c', class: "spw-text-field__container" }, this.type === 'number' && this.hasControls && (index.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 }, index.h("spw-icon", { key: '00a085f26a7a7738e63a639ad1d04640d81c76bb', icon: "fa-minus" }))), index.h("div", { key: '7f246a4f8ab564fcfef9e4d8348b4450954f9df5', class: "spw-text-field__input-container" }, index.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) && (index.h("div", { key: 'b4599118ed64ed03ab30f1f32d34594a38d31b9c', class: "spw-text-field__icons" }, this.isClearIconVisible && (index.h("span", { key: '716ac4763ebb3d9ada72ddaf32a24a7fc9340aa2', class: "spw-text-field__clear", onClick: () => this.handleClear() }, index.h("spw-icon", { key: 'd01ae0ed2a694e658a487125b46f5c68dbf0ebed', class: "spw-text-field__icon spw-text-field__icon--clear", icon: "fa-xmark" }))), this.isSearch && !this.hasSubmitButton && index.h("spw-icon", { key: 'e65660d784f6dd2c22ca90efd02fa0ae03998318', class: "spw-text-field__icon spw-text-field__icon--search", icon: "fa-magnifying-glass" }), this.hasSubmitButton && (index.h("button", { key: '6ced3c19c90a732a525baffe84f08f32c47817c3', type: "button", class: "spw-text-field__submit", onClick: () => this.handleSubmit(), "aria-label": "Rechercher" }, index.h("spw-icon", { key: 'f2a12ce4102682754a805255d053a60dd81e6fd2', icon: "fa-magnifying-glass" })))))), this.type === 'number' && this.hasControls && (index.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 }, index.h("spw-icon", { key: 'd773d990d26ff2bb26fc043b79bee8eb13e383d4', icon: "fa-plus" }))), this.indicator && index.h("div", { key: '904645cd71f226e1fbf2896b7a5c2e885ae5e8bf', class: "spw-text-field__indicator" }, this.indicator)), this.renderMessages()));
|
|
297
297
|
}
|
|
298
298
|
static get formAssociated() { return true; }
|
|
299
299
|
get el() { return index.getElement(this); }
|
|
@@ -107,7 +107,7 @@ const SpwTextarea = class {
|
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
109
|
render() {
|
|
110
|
-
return (index.h("div", { key: '
|
|
110
|
+
return (index.h("div", { key: '27ee0c6ee4aea3be687bf6d8427e65eaa45d3bd9', class: this.elementClass }, this.label && (index.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 && (index.h("spw-field-message", { key: '81cff87942a9454b94c8cc3d85b25d9a123c0c37', class: "spw-textarea__field-message", variant: "hint", showIcon: false }, this.assistiveText)), index.h("div", { key: '9b2a6044e23cf1477210ab4892347e55db7e0861', class: "spw-textarea__container" }, index.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()));
|
|
111
111
|
}
|
|
112
112
|
static get formAssociated() { return true; }
|
|
113
113
|
static get watchers() { return {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-D3lyhQSW.js');
|
|
4
4
|
|
|
5
|
-
const spwTileDescriptionCss = () => `html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main);letter-spacing:-0.18px}body{margin:0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 360px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width: 768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width: 1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block;overflow:hidden}:host(.--light),:host(.--big){margin-top:6px}@media (max-width: 1023px){:host(.--reveal-on-hover){display:none}}@media (min-width: 1024px){:host(.--reveal-on-hover){display:grid;grid-template-rows:0fr;margin-top:0;opacity:0;transition:grid-template-rows 0.25s ease-in, margin-top 0.25s ease-in, opacity 0.35s 0.05s ease-in}}@media (min-width: 1024px){:host(.--reveal-on-hover.--revealed){grid-template-rows:1fr;margin-top:6px;opacity:1}}:host(.--reveal-on-hover) .spw-tile-description{min-height:0;overflow:hidden}:host(.--icon) .spw-tile-description{color:var(--spw-color-themes-grey-grey-700);line-height:1.5;font-size:18px}:host(.--big) .spw-tile-description,:host(.--light) .spw-tile-description{color:white;line-height:1.3;font-size:18px}`;
|
|
5
|
+
const spwTileDescriptionCss = () => `html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main);letter-spacing:-0.18px}body{margin:0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 360px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width: 768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width: 1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block;overflow:hidden}:host(.--light),:host(.--big){margin-top:6px}@media (max-width: 1023px){:host(.--reveal-on-hover){display:none}}@media (min-width: 1024px){:host(.--reveal-on-hover){display:grid;grid-template-rows:0fr;margin-top:0;opacity:0;transition:grid-template-rows 0.25s ease-in, margin-top 0.25s ease-in, opacity 0.35s 0.05s ease-in}}@media (min-width: 1024px){:host(.--reveal-on-hover.--revealed){grid-template-rows:1fr;margin-top:6px;opacity:1}}:host(.--reveal-on-hover) .spw-tile-description{min-height:0;overflow:hidden}:host(.--icon) .spw-tile-description{color:var(--spw-color-themes-grey-grey-700);line-height:1.5;font-size:18px}:host(.--icon.--surface-dark) .spw-tile-description{color:white}:host(.--big) .spw-tile-description,:host(.--light) .spw-tile-description{color:white;line-height:1.3;font-size:18px}`;
|
|
6
6
|
|
|
7
7
|
const SpwTileDescription = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (index.h("div", { key: '
|
|
12
|
+
return (index.h("div", { key: 'd6fd73af2040dd4ba3674e262f5c60aaab042450', class: "spw-tile-description" }, index.h("slot", { key: '9746d264470bca17b502f618130b9a928cdf6ef6' })));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
SpwTileDescription.style = spwTileDescriptionCss();
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-D3lyhQSW.js');
|
|
4
4
|
|
|
5
|
-
const spwTileTitleCss = () => `html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main);letter-spacing:-0.18px}body{margin:0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 360px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width: 768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width: 1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block;--spw-tile-title-icon:20px;--spw-tile-title-underline:none}:host(.--icon) .spw-tile-title{color:var(--spw-color-themes-grey-grey-900);line-height:1.
|
|
5
|
+
const spwTileTitleCss = () => `html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main);letter-spacing:-0.18px}body{margin:0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 360px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width: 768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width: 1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block;--spw-tile-title-icon:20px;--spw-tile-title-icon-mobile:16px;--spw-tile-title-underline:none}:host(.--icon) .spw-tile-title{color:var(--spw-color-themes-grey-grey-900);line-height:1.3;font-size:var(--spw-tile-title-icon-mobile);font-weight:700;text-decoration:var(--spw-tile-title-underline);transition:all 0.2s linear}@media (min-width: 1024px){:host(.--icon) .spw-tile-title{font-size:var(--spw-tile-title-icon)}}:host(.--icon.--hovered) .spw-tile-title{color:var(--spw-ds-primary)}:host(.--icon.--surface-dark) .spw-tile-title{color:white}:host(.--icon.--surface-dark.--hovered) .spw-tile-title{opacity:0.8}:host(.--light) .spw-tile-title{color:white;line-height:1.3;font-size:20px;font-weight:700}:host(.--big) .spw-tile-title{color:white;line-height:1.3;font-size:20px;font-weight:700}`;
|
|
6
6
|
|
|
7
7
|
const SpwTileTitle = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (index.h("h3", { key: '
|
|
12
|
+
return (index.h("h3", { key: '63415998ffbf54368523b4af68856112f0f1fba6', class: "spw-tile-title" }, index.h("slot", { key: '62147810811928236134857edea4e8753d74927a' })));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
SpwTileTitle.style = spwTileTitleCss();
|
|
@@ -2,14 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-D3lyhQSW.js');
|
|
4
4
|
|
|
5
|
-
const spwTileCss = () => `html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main);letter-spacing:-0.18px}body{margin:0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 360px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width: 768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width: 1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block}.spw-tile{display:block;text-decoration:none;position:relative;transition:all 0.3s ease-in-out}.spw-tile--hoverable:hover{transform:translateY(-5px)}.spw-tile:focus-visible{outline:3px solid white;outline-offset:-1px;box-shadow:0 0 0 5px black;border-radius:5px}.spw-tile--icon{padding:16px 0}.spw-tile--big,.spw-tile--light{position:relative;padding-top:calc(70% - 12px);
|
|
5
|
+
const spwTileCss = () => `html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main);letter-spacing:-0.18px}body{margin:0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1200px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 360px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width: 768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width: 1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width: 1200px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block}.spw-tile{display:block;text-decoration:none;position:relative;transition:all 0.3s ease-in-out;border-radius:6px}.spw-tile--hoverable:hover{transform:translateY(-5px)}.spw-tile:focus-visible{outline:3px solid white;outline-offset:-1px;box-shadow:0 0 0 5px black;border-radius:5px}.spw-tile--icon{padding:16px 0}.spw-tile--icon.spw-tile--height-square,.spw-tile--icon.spw-tile--height-portrait{padding:0;position:relative;overflow:hidden}.spw-tile--icon.spw-tile--height-square{padding-top:100%}.spw-tile--icon.spw-tile--height-portrait{padding-top:150%}.spw-tile--big,.spw-tile--light{position:relative;padding-top:calc(70% - 12px);overflow:hidden}@media (min-width: 1024px){.spw-tile--big,.spw-tile--light{padding-top:calc(60% - 12px)}.spw-tile--big.spw-tile--height-landscape,.spw-tile--light.spw-tile--height-landscape{padding-top:calc(60% - 12px)}.spw-tile--big.spw-tile--height-square,.spw-tile--light.spw-tile--height-square{padding-top:100%}.spw-tile--big.spw-tile--height-portrait,.spw-tile--light.spw-tile--height-portrait{padding-top:150%}}.spw-tile--big:before,.spw-tile--light:before{content:"";background:black;opacity:0;transition:all linear 0.2s;border-radius:5px;position:absolute;top:0;left:0;width:100%;height:100%;z-index:2}.spw-tile__overlay,.spw-tile__image{position:absolute;width:100%;height:100%;left:0;top:0}.spw-tile__overlay{z-index:2;height:calc(100% + 48px);bottom:0;top:auto;background:linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--shades-alpha-dark-alpha-dark-alpha-900, rgba(0, 0, 0, 0.87)) 100%)}.spw-tile__image{z-index:1;object-fit:cover}.spw-tile__button{position:absolute;bottom:24px;right:24px;background:transparent;width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;color:white;border-radius:50%;transition:all 0.2s ease-in;border:3px solid white;font-size:20px;margin-top:12px;z-index:2}.spw-tile:hover .spw-tile__button{background:rgba(0, 0, 0, 0.5)}.spw-tile--light .spw-tile__content,.spw-tile--big .spw-tile__content{position:absolute;z-index:3;display:flex;flex-direction:column;gap:0;padding:24px;bottom:0;left:0;width:100%}.spw-tile--icon.spw-tile--height-square .spw-tile__content,.spw-tile--icon.spw-tile--height-portrait .spw-tile__content{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:24px}.spw-tile--big.spw-tile--hoverable .spw-tile__content{padding-right:84px}.spw-tile--light .spw-tile__content{text-align:center;padding-bottom:24px}.spw-tile__content-inner{position:relative;z-index:3;flex:1}.spw-tile--icon .spw-tile__content-inner{display:flex;flex-direction:column;gap:12px;padding:0 12px;text-align:center}.spw-tile--icon .spw-tile__content-inner ::slotted(spw-icon){font-size:32px;color:var(--spw-ds-primary)}.spw-tile--icon.spw-tile--surface-dark .spw-tile__content-inner ::slotted(spw-icon){color:white}`;
|
|
6
6
|
|
|
7
7
|
const SpwTile = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
10
|
/** Type de variante de tuile */
|
|
11
11
|
this.variant = 'light';
|
|
12
|
-
/**
|
|
12
|
+
/** 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). */
|
|
13
|
+
this.surface = 'light';
|
|
14
|
+
/** Couleur de fond de la tuile. Accepte toute valeur CSS valide (variable CSS, hexadécimal, rgba, etc.). Transparent par défaut. */
|
|
15
|
+
this.background = 'transparent';
|
|
16
|
+
/** 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. */
|
|
13
17
|
this.height = 'landscape';
|
|
14
18
|
/** Attribut target, s'applique uniquement si href est rempli */
|
|
15
19
|
this.target = '_self';
|
|
@@ -26,12 +30,20 @@ const SpwTile = class {
|
|
|
26
30
|
}
|
|
27
31
|
applyVariantToChildren() {
|
|
28
32
|
const variantClass = `--${this.variant}`;
|
|
33
|
+
const surfaceLightClass = '--surface-light';
|
|
34
|
+
const surfaceDarkClass = '--surface-dark';
|
|
29
35
|
const titleElement = this.el.querySelector('spw-tile-title');
|
|
30
36
|
const descriptionElement = this.el.querySelector('spw-tile-description');
|
|
31
|
-
|
|
37
|
+
if (titleElement) {
|
|
38
|
+
titleElement.classList.add(variantClass);
|
|
39
|
+
titleElement.classList.toggle(surfaceDarkClass, this.surface === 'dark');
|
|
40
|
+
titleElement.classList.toggle(surfaceLightClass, this.surface !== 'dark');
|
|
41
|
+
}
|
|
32
42
|
if (descriptionElement) {
|
|
33
43
|
descriptionElement.classList.add(variantClass);
|
|
34
44
|
descriptionElement.classList.toggle('--reveal-on-hover', this.revealDescription && (this.variant === 'light' || this.variant === 'big'));
|
|
45
|
+
descriptionElement.classList.toggle(surfaceDarkClass, this.surface === 'dark');
|
|
46
|
+
descriptionElement.classList.toggle(surfaceLightClass, this.surface !== 'dark');
|
|
35
47
|
}
|
|
36
48
|
}
|
|
37
49
|
get elementClass() {
|
|
@@ -39,6 +51,7 @@ const SpwTile = class {
|
|
|
39
51
|
'spw-tile': true,
|
|
40
52
|
'spw-tile--hoverable': !!this.href,
|
|
41
53
|
[`spw-tile--${this.variant}`]: true,
|
|
54
|
+
[`spw-tile--surface-${this.surface}`]: true,
|
|
42
55
|
[`spw-tile--height-${this.height}`]: true,
|
|
43
56
|
'spw-tile--reveal-description': this.revealDescription && (this.variant === 'light' || this.variant === 'big'),
|
|
44
57
|
};
|
|
@@ -68,7 +81,7 @@ const SpwTile = class {
|
|
|
68
81
|
href,
|
|
69
82
|
target,
|
|
70
83
|
};
|
|
71
|
-
return (index.h(index.Host, { key: '
|
|
84
|
+
return (index.h(index.Host, { key: 'bd1e76f5a2acf49880d9bbb53cd29af5ecc50cb9' }, index.h(TagType, Object.assign({ key: '41f0b7fbb7f019078ea321784cbe0848340e9121' }, attrs, { class: this.elementClass, style: { background: this.background } }), this.imageSrc && (this.variant === 'big' || this.variant === 'light') && (index.h(index.Fragment, { key: '023a197929feecedc60eefafc9275172c3557498' }, index.h("img", { key: 'bccbad9aac78d7bf2f3bf0d2a17b785e2740a6b2', src: this.imageSrc, alt: this.imageAlt, class: "spw-tile__image" }))), index.h("div", { key: 'a474283180524feaf0a15475bc052ff6f6ef868c', class: "spw-tile__content" }, (this.variant === 'big' || this.variant === 'light') && index.h("div", { key: '17ef604c396fc7abda7ca799a12795582300f18c', class: "spw-tile__overlay" }), index.h("div", { key: '02f8df8d6a15d3534ef34f740487755da769e522', class: "spw-tile__content-inner" }, index.h("slot", { key: '67e6ce4392fea4feb750a11b91708c7fa06417d0' })), this.href && this.variant === 'big' && (index.h("span", { key: 'cf8dbe080442d54c4675c849569dbb8f698a8a16', class: "spw-tile__button" }, index.h("spw-icon", { key: '1dc7d9df0562747d315ea38ebf1dda67b10bb305', icon: "fa-chevron-right" })))))));
|
|
72
85
|
}
|
|
73
86
|
get el() { return index.getElement(this); }
|
|
74
87
|
};
|
|
@@ -61,10 +61,10 @@ const SpwTimelineItem = class {
|
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
63
|
const showConnector = this.isLast === 'false';
|
|
64
|
-
return (index.h(index.Host, { key: '
|
|
64
|
+
return (index.h(index.Host, { key: '737a24262928334e3bd1526ff587338c34e9b6bd' }, index.h("div", { key: 'dbe63ddb5fb790dcc43a2f94676628aebb157938', class: this.elementClass }, index.h("div", { key: '201ac977905400a113598cf9b971685e32ec32bb', class: "spw-timeline-item__step" }, index.h("div", { key: 'cf39040cd68333cc8ff2a72dafdd2144153c1fc9', class: "spw-timeline-item__icon" }), showConnector && index.h("div", { key: '9b56dacee259745afe52f26fe89f67ca5c38b616', class: "spw-timeline-item__connector" })), index.h("div", { key: 'def3ee1bc6b59399d00dc293b0692d193fe230c6', class: "spw-timeline-item__content" }, this.renderLabel(), this.description && (index.h("div", { key: '95913bfa34d745a4acb416934ca7771eadd48ddb', class: "spw-timeline-item__description-wrapper" }, index.h("div", { key: 'fdc5a1d044699295a6f370ac180e9d8801cd858c', ref: el => (this.descriptionRef = el), class: {
|
|
65
65
|
'spw-timeline-item__description': true,
|
|
66
66
|
'spw-timeline-item__description--collapsed': !this.isDescriptionExpanded,
|
|
67
|
-
} }, this.description))), index.h("slot", { key: '
|
|
67
|
+
} }, this.description))), index.h("slot", { key: '4e3f197266cfd9041203edf200cd445de803f5e3' })))));
|
|
68
68
|
}
|
|
69
69
|
get el() { return index.getElement(this); }
|
|
70
70
|
};
|
|
@@ -59,11 +59,11 @@ const SpwTimeline = class {
|
|
|
59
59
|
return this.visibleItems > 0 && items.length > this.visibleItems;
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
|
-
return (index.h(index.Host, { key: '
|
|
62
|
+
return (index.h(index.Host, { key: '921d63d8bc3b4c9e41ee9b46c78d795b1bff08f2' }, index.h("div", { key: 'eb6d664719e44737afc7f803761a0ecd9da8756c', class: this.elementClass }, index.h("slot", { key: 'bd2448579f5016325845a7246fd47d0dc3514a07' })), this.shouldShowToggleButton() && (index.h("div", { key: '817550bc2da3fe900b378f97e1cf1934afdebfdb', class: {
|
|
63
63
|
'spw-timeline__toggle': true,
|
|
64
64
|
'spw-timeline__toggle--more': !this.showAll,
|
|
65
65
|
'spw-timeline__toggle--less': this.showAll,
|
|
66
|
-
} }, index.h("span", { key: '
|
|
66
|
+
} }, index.h("span", { key: '532372cedeb8e46db021e368b7b17b0cf36e24d2', class: "spw-timeline__toggle-btn", onClick: this.handleToggle }, this.showAll ? this.showLessText : this.showMoreText)))));
|
|
67
67
|
}
|
|
68
68
|
get el() { return index.getElement(this); }
|
|
69
69
|
};
|
|
@@ -8,7 +8,7 @@ const SpwTocContainer = class {
|
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
10
|
this.tocItemsChanged = index.createEvent(this, "tocItemsChanged", 7);
|
|
11
|
-
/** 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. */
|
|
11
|
+
/** 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). */
|
|
12
12
|
this.depth = 'h6';
|
|
13
13
|
}
|
|
14
14
|
async componentDidLoad() {
|
|
@@ -128,7 +128,7 @@ const SpwTocContainer = class {
|
|
|
128
128
|
return tocItems;
|
|
129
129
|
}
|
|
130
130
|
render() {
|
|
131
|
-
return (index.h(index.Host, { key: '
|
|
131
|
+
return (index.h(index.Host, { key: '9dabdebfec120849a633d4e2645503053d3b6b50' }, index.h("slot", { key: 'bfd6165ac2c5f5ddbfda7873dd010c050ee40ecf' })));
|
|
132
132
|
}
|
|
133
133
|
get el() { return index.getElement(this); }
|
|
134
134
|
static get watchers() { return {
|
|
@@ -17,10 +17,25 @@ const SpwTocNavigation = class {
|
|
|
17
17
|
this.h2Distances = new Map();
|
|
18
18
|
}
|
|
19
19
|
async componentDidLoad() {
|
|
20
|
+
this.propagateDepthToContainer();
|
|
20
21
|
await this.loadItems();
|
|
21
22
|
this.setupIntersectionObserver();
|
|
22
23
|
this.setupScrollHandler();
|
|
23
24
|
}
|
|
25
|
+
depthChanged() {
|
|
26
|
+
this.propagateDepthToContainer();
|
|
27
|
+
}
|
|
28
|
+
propagateDepthToContainer() {
|
|
29
|
+
if (!this.depth)
|
|
30
|
+
return;
|
|
31
|
+
const tocWrapper = this.el.closest('spw-toc');
|
|
32
|
+
if (!tocWrapper)
|
|
33
|
+
return;
|
|
34
|
+
const container = tocWrapper.querySelector('spw-toc-container');
|
|
35
|
+
if (container) {
|
|
36
|
+
container.depth = this.depth;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
24
39
|
componentDidRender() {
|
|
25
40
|
this.recalculateH2Distances();
|
|
26
41
|
}
|
|
@@ -336,6 +351,11 @@ const SpwTocNavigation = class {
|
|
|
336
351
|
})))));
|
|
337
352
|
}
|
|
338
353
|
get el() { return index.getElement(this); }
|
|
354
|
+
static get watchers() { return {
|
|
355
|
+
"depth": [{
|
|
356
|
+
"depthChanged": 0
|
|
357
|
+
}]
|
|
358
|
+
}; }
|
|
339
359
|
};
|
|
340
360
|
SpwTocNavigation.style = spwTocNavigationCss();
|
|
341
361
|
|
|
@@ -9,7 +9,7 @@ const SpwToc = class {
|
|
|
9
9
|
index.registerInstance(this, hostRef);
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (index.h(index.Host, { key: '
|
|
12
|
+
return (index.h(index.Host, { key: 'f24802010a6a360504b7dbae94f5b12433480bbc' }, index.h("slot", { key: 'b16130289fb42ba41fad8547dfa87d77ac28c264' })));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
SpwToc.style = spwTocCss();
|