@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
|
@@ -19,6 +19,8 @@ export class SpwSearchField {
|
|
|
19
19
|
this.viewAllResults = 'Voir plus de résultats';
|
|
20
20
|
/** Soumet le formulaire parent au clic sur le lien "voir tous les résultats" */
|
|
21
21
|
this.viewAllResultsSubmit = false;
|
|
22
|
+
/** Indique s'il existe des résultats supplémentaires non affichés (contrôle l'affichage du lien "voir plus de résultats"). Peut être overridée dynamiquement via showViewAllResults() / hideViewAllResults() */
|
|
23
|
+
this.hasMoreResults = true;
|
|
22
24
|
/** Texte à afficher si pas de résultats */
|
|
23
25
|
this.noResults = 'Pas de résultats.';
|
|
24
26
|
/** Texte à afficher pendant le chargement */
|
|
@@ -41,6 +43,7 @@ export class SpwSearchField {
|
|
|
41
43
|
this.isOpen = false;
|
|
42
44
|
this.focusedItemIndex = null;
|
|
43
45
|
this.dropdownDirection = 'down';
|
|
46
|
+
this.showViewAll = true;
|
|
44
47
|
this.isSelectingItem = false;
|
|
45
48
|
this.handleClickOutside = (event) => {
|
|
46
49
|
if (this.isOpen) {
|
|
@@ -88,6 +91,10 @@ export class SpwSearchField {
|
|
|
88
91
|
this.parseItems(this.items);
|
|
89
92
|
this.defaultValue = this.value;
|
|
90
93
|
this.initializeFromValue(this.value);
|
|
94
|
+
this.showViewAll = this.hasMoreResults;
|
|
95
|
+
}
|
|
96
|
+
handleHasMoreResultsChange(newValue) {
|
|
97
|
+
this.showViewAll = newValue;
|
|
91
98
|
}
|
|
92
99
|
componentDidLoad() {
|
|
93
100
|
document.addEventListener('click', this.handleClickOutside);
|
|
@@ -146,6 +153,14 @@ export class SpwSearchField {
|
|
|
146
153
|
async getValue() {
|
|
147
154
|
return this.value;
|
|
148
155
|
}
|
|
156
|
+
/** Affiche le lien "voir plus de résultats" (override programmatique de la prop hasMoreResults) */
|
|
157
|
+
async showViewAllResults() {
|
|
158
|
+
this.showViewAll = true;
|
|
159
|
+
}
|
|
160
|
+
/** Masque le lien "voir plus de résultats" (override programmatique de la prop hasMoreResults) */
|
|
161
|
+
async hideViewAllResults() {
|
|
162
|
+
this.showViewAll = false;
|
|
163
|
+
}
|
|
149
164
|
handleValueChange(newValue) {
|
|
150
165
|
this.initializeFromValue(newValue !== null && newValue !== void 0 ? newValue : '');
|
|
151
166
|
this.filterItems();
|
|
@@ -314,10 +329,10 @@ export class SpwSearchField {
|
|
|
314
329
|
};
|
|
315
330
|
}
|
|
316
331
|
render() {
|
|
317
|
-
return (h("div", { key: '
|
|
332
|
+
return (h("div", { key: '060401db34655bb5b3bec93f5b818e6aa7b47102', ref: el => (this.hostElement = el), class: this.elementClass }, this.label && (h("spw-field-label", { key: 'a1800f04b056f0f79d3974c52a8c6d017ae4655a', label: this.label, name: this.name, required: this.required, tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, tooltipMaxWidth: this.tooltipMaxWidth, tooltipDirection: this.tooltipDirection, tooltipCursor: this.tooltipCursor, onClick: () => { var _a; return (_a = this.textFieldElement) === null || _a === void 0 ? void 0 : _a.setFocus(); } })), h("div", { key: 'd9e2825baf141cb17c840a00a4affd92a23ae0f5', class: "spw-search-field__container" }, h("spw-text-field", { key: 'c8065e8f6f40a36ffa7787c1f885a2f668f4de4c', ref: el => (this.textFieldElement = el), placeholder: this.placeholder, name: this.name, size: this.size, "is-search": true, "is-clear": true, required: this.required, disabled: this.disabled, assistiveText: this.assistiveText, value: this.searchText, onValueChanged: this.handleValueChanged, onKeyDown: event => this.handleKeyDown(event) }), this.hasSubmitButton && h("button", { key: '44758a902c4dd685990e9fb91761b2f7cee021f4', type: "button", class: "spw-search-field__submit", onClick: this.handleSubmit, "aria-label": "Rechercher" })), this.showDropdown && this.isOpen && !!this.items && (h("div", { key: '1bda0dd7c9d5f8d7a42f58eb94682a6c8365ac1d', class: `spw-search-field__options spw-search-field__options--${this.dropdownDirection}` }, !!this.filteredItems.length && (h("ul", { key: '65d7585bbebc194c70b04abdb0c37fb8f158c3f6' }, this.filteredItems.map((item, index) => (h("li", { class: {
|
|
318
333
|
'spw-search-field__option': true,
|
|
319
334
|
'spw-search-field__option--focused': index === this.focusedItemIndex,
|
|
320
|
-
}, onClick: () => this.selectItem(item) }, this.highlightMatch(item.label), " ", item.category && h("span", { class: "spw-search-field__category" }, " - ", item.category)))))), this.isLoading && (h("p", { key: '
|
|
335
|
+
}, onClick: () => this.selectItem(item) }, this.highlightMatch(item.label), " ", item.category && h("span", { class: "spw-search-field__category" }, " - ", item.category)))))), this.isLoading && (h("p", { key: '6487b6e9d9bb2c69038c600d9fc6cb3fbe4e5239', class: "spw-search-field__loading" }, h("spw-loading", { key: '0be7c015388bc6ea462021e2bed47edf2ffd1a40', text: this.loadingText }))), !this.isLoading && !this.filteredItems.length && h("p", { key: '1c39bb50878da6904512663d95333cade5cb3f46', class: "spw-search-field__no-results" }, this.noResults), !!this.filteredItems.length && this.viewAllResults && this.showViewAll && (h("p", { key: '0cba9739d0e6e208f8bc40b2719ade5d71d864b3', class: "spw-search-field__view-all" }, h("a", { key: '61886707d6e20501fc5d90ee2b1053b9a17b8571', href: this.viewAllResultsLink, onClick: this.viewAllResultsSubmit ? this.handleSubmit : undefined }, this.viewAllResults, " ", h("spw-icon", { key: 'a3f3bd3d26c593511c045f5976a18e055205c494', icon: "fa-arrow-right" }))))))));
|
|
321
336
|
}
|
|
322
337
|
static get is() { return "spw-search-field"; }
|
|
323
338
|
static get encapsulation() { return "shadow"; }
|
|
@@ -593,6 +608,26 @@ export class SpwSearchField {
|
|
|
593
608
|
"attribute": "view-all-results-submit",
|
|
594
609
|
"defaultValue": "false"
|
|
595
610
|
},
|
|
611
|
+
"hasMoreResults": {
|
|
612
|
+
"type": "boolean",
|
|
613
|
+
"mutable": false,
|
|
614
|
+
"complexType": {
|
|
615
|
+
"original": "boolean",
|
|
616
|
+
"resolved": "boolean",
|
|
617
|
+
"references": {}
|
|
618
|
+
},
|
|
619
|
+
"required": false,
|
|
620
|
+
"optional": true,
|
|
621
|
+
"docs": {
|
|
622
|
+
"tags": [],
|
|
623
|
+
"text": "Indique s'il existe des r\u00E9sultats suppl\u00E9mentaires non affich\u00E9s (contr\u00F4le l'affichage du lien \"voir plus de r\u00E9sultats\"). Peut \u00EAtre overrid\u00E9e dynamiquement via showViewAllResults() / hideViewAllResults()"
|
|
624
|
+
},
|
|
625
|
+
"getter": false,
|
|
626
|
+
"setter": false,
|
|
627
|
+
"reflect": false,
|
|
628
|
+
"attribute": "has-more-results",
|
|
629
|
+
"defaultValue": "true"
|
|
630
|
+
},
|
|
596
631
|
"noResults": {
|
|
597
632
|
"type": "string",
|
|
598
633
|
"mutable": false,
|
|
@@ -819,7 +854,8 @@ export class SpwSearchField {
|
|
|
819
854
|
"searchText": {},
|
|
820
855
|
"isOpen": {},
|
|
821
856
|
"focusedItemIndex": {},
|
|
822
|
-
"dropdownDirection": {}
|
|
857
|
+
"dropdownDirection": {},
|
|
858
|
+
"showViewAll": {}
|
|
823
859
|
};
|
|
824
860
|
}
|
|
825
861
|
static get events() {
|
|
@@ -917,12 +953,49 @@ export class SpwSearchField {
|
|
|
917
953
|
"text": "R\u00E9cup\u00E8re la valeur actuelle du champ de recherche",
|
|
918
954
|
"tags": []
|
|
919
955
|
}
|
|
956
|
+
},
|
|
957
|
+
"showViewAllResults": {
|
|
958
|
+
"complexType": {
|
|
959
|
+
"signature": "() => Promise<void>",
|
|
960
|
+
"parameters": [],
|
|
961
|
+
"references": {
|
|
962
|
+
"Promise": {
|
|
963
|
+
"location": "global",
|
|
964
|
+
"id": "global::Promise"
|
|
965
|
+
}
|
|
966
|
+
},
|
|
967
|
+
"return": "Promise<void>"
|
|
968
|
+
},
|
|
969
|
+
"docs": {
|
|
970
|
+
"text": "Affiche le lien \"voir plus de r\u00E9sultats\" (override programmatique de la prop hasMoreResults)",
|
|
971
|
+
"tags": []
|
|
972
|
+
}
|
|
973
|
+
},
|
|
974
|
+
"hideViewAllResults": {
|
|
975
|
+
"complexType": {
|
|
976
|
+
"signature": "() => Promise<void>",
|
|
977
|
+
"parameters": [],
|
|
978
|
+
"references": {
|
|
979
|
+
"Promise": {
|
|
980
|
+
"location": "global",
|
|
981
|
+
"id": "global::Promise"
|
|
982
|
+
}
|
|
983
|
+
},
|
|
984
|
+
"return": "Promise<void>"
|
|
985
|
+
},
|
|
986
|
+
"docs": {
|
|
987
|
+
"text": "Masque le lien \"voir plus de r\u00E9sultats\" (override programmatique de la prop hasMoreResults)",
|
|
988
|
+
"tags": []
|
|
989
|
+
}
|
|
920
990
|
}
|
|
921
991
|
};
|
|
922
992
|
}
|
|
923
993
|
static get elementRef() { return "el"; }
|
|
924
994
|
static get watchers() {
|
|
925
995
|
return [{
|
|
996
|
+
"propName": "hasMoreResults",
|
|
997
|
+
"methodName": "handleHasMoreResultsChange"
|
|
998
|
+
}, {
|
|
926
999
|
"propName": "value",
|
|
927
1000
|
"methodName": "handleValueChange"
|
|
928
1001
|
}, {
|
|
@@ -27,7 +27,7 @@ export class SpwSeparator {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return h("div", { key: '
|
|
30
|
+
return h("div", { key: 'c89c022f4c74cbe8ab873786af0ec6632a2bfc42', class: this.elementClass, style: this.style });
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "spw-separator"; }
|
|
33
33
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,7 +11,7 @@ export class SpwSidebarNavigationDropdown {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '17213ac97eb7f8de6f6e56ca16b4dce8d51c862e', class: this.classes }, h("div", { key: '52dc0851c33be7d5a81e5c1016f898f8da1a9fbc', class: "spw-sidebar-navigation-dropdown__content", style: { display: this.open ? 'block' : 'none' } }, h("slot", { key: 'a50f99ae538b019a4e97c263167c4c23f481d50d' }))));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "spw-sidebar-navigation-dropdown"; }
|
|
17
17
|
static get originalStyleUrls() {
|
|
@@ -169,14 +169,14 @@ export class SpwSidebarNavigationItem {
|
|
|
169
169
|
}
|
|
170
170
|
render() {
|
|
171
171
|
const Tag = this.href && !this.disabled && !this.openOnClick ? 'a' : 'div';
|
|
172
|
-
const iconContent = h("spw-icon", { key: '
|
|
173
|
-
const iconDiv = (h("div", { key: '
|
|
172
|
+
const iconContent = h("spw-icon", { key: '2eba0c0a19fefb5964f2a12235fabde51cca9e82', variant: this.iconVariant, icon: this.icon });
|
|
173
|
+
const iconDiv = (h("div", { key: '0cd37d396db882bf94702bd20a62250612dc8007', class: "spw-sidebar-navigation-item__icon" }, this.bubble && h("span", { key: '538ab1cd4b6a51cbca6ee8a470f1bd40ec4f147b', class: "spw-sidebar-navigation-item__bubble" }, this.bubble), iconContent));
|
|
174
174
|
const iconWithBubble = this.tooltipTitle ? (h("spw-tooltip", { cursor: this.disabled ? 'disabled' : 'pointer', "tooltip-title": this.tooltipTitle, direction: "right", visible: !this.navExpanded }, iconDiv)) : (iconDiv);
|
|
175
175
|
const toggleClasses = {
|
|
176
176
|
'spw-sidebar-navigation-item__dropdown-toggle': true,
|
|
177
177
|
'spw-sidebar-navigation-item__dropdown-toggle--open': this.dropdownOpen,
|
|
178
178
|
};
|
|
179
|
-
return (h(Tag, { key: '
|
|
179
|
+
return (h(Tag, { key: 'cd9c5dc0c5dac32780f68fa54cda409a1e4d9ba8', class: this.classes, href: this.openOnClick ? undefined : this.href, "aria-disabled": this.disabled ? 'true' : undefined, tabIndex: this.disabled ? -1 : 0, onClick: this.openOnClick ? this.handleItemClick : undefined }, this.icon && iconWithBubble, h("div", { key: 'c495d0a0e5470e43b223d975cc8cb46c43f72235', class: "spw-sidebar-navigation-item__content" }, h("div", { key: '7c7c6a2d59bf70afbf0abaf1b16f391c55bb128d', class: "spw-sidebar-navigation-item__content-label" }, h("slot", { key: '5f34f711fa56d2add95c05f1126d3e227e9f77e8' })), this.hasDropdown && (h("div", { key: '08ca7dbfef085d133b97b3376f3b8d622aae1deb', class: toggleClasses, onClick: this.handleDropdownToggle, tabIndex: this.disabled ? -1 : 0 }, h("spw-icon", { key: '0032d6664112027bf303379228ec539dbd444cbe', icon: "fa-chevron-down" }))), h("slot", { key: 'b61de18ea00457b2d2fe896c37775659087e2a21', name: "dropdown" }))));
|
|
180
180
|
}
|
|
181
181
|
static get is() { return "spw-sidebar-navigation-item"; }
|
|
182
182
|
static get originalStyleUrls() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class SpwSidebarNavigationSeparator {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: 'e1aed731f873cf513dfce8d6bd28b089df5b450f' }, h("spw-separator", { key: '5c388369e73c287608bb4943c829d703c151205c', class: "spw-sidebar-navigation-separator" })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "spw-sidebar-navigation-separator"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -76,7 +76,7 @@ export class SpwSidebar {
|
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: 'cb8d1e3793095973cde051072afe5421bff054b1', class: this.hostClass }, h("div", { key: 'd7cbd9a06164ad84fcc97866d06dc2d70287335b', class: this.elementClass }, h("span", { key: 'ea0ef636b3efa72cc8980b50acb76da7921ab37b', class: "spw-sidebar__toggle", onClick: this.toggleSidebar, "aria-expanded": this.expanded.toString() }, h("spw-icon", { key: 'f0015e0e3f40980091c9b0700fa310b7d4105ac1', icon: "fa-chevron-right" })), h("div", { key: '8cd950b4b8b43ef90b734d7289c950a4bb01c4ac', class: "spw-sidebar__content" }, h("slot", { key: 'de1b68fe723c3eaf753d92aa667e0f65e3ea1304', name: "navigation-top" }), h("slot", { key: '37e5f31b9b9bdbaf83f2fc16906070df07688041', name: "navigation-bottom" })), h("div", { key: 'c6cabeb2911c82e806f5d70853bb8dd006687a8b', class: "spw-sidebar__resize-border", onClick: this.toggleSidebar }))));
|
|
80
80
|
}
|
|
81
81
|
static get is() { return "spw-sidebar"; }
|
|
82
82
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,10 +5,10 @@ export class SpwSidenavGroup {
|
|
|
5
5
|
this.open = false;
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '0721fbc9f3f143285330107077b775d7ed378ab5', class: {
|
|
9
9
|
'spw-sidenav-group': true,
|
|
10
10
|
'spw-sidenav-group--open': this.open,
|
|
11
|
-
} }, h("div", { key: '
|
|
11
|
+
} }, h("div", { key: 'd33eb8c527cbe2456f244ce5fd7d01ca6ac98812', class: "spw-sidenav-group__content", style: { display: this.open ? 'block' : 'none' } }, h("slot", { key: '4f0399b8f2455a444893b8876afb0f88329330d7' }))));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "spw-sidenav-group"; }
|
|
14
14
|
static get originalStyleUrls() {
|
|
@@ -143,17 +143,17 @@ export class SpwSidenavItem {
|
|
|
143
143
|
}
|
|
144
144
|
render() {
|
|
145
145
|
const LabelTag = this.isLink ? 'a' : 'button';
|
|
146
|
-
return (h(Host, { key: '
|
|
146
|
+
return (h(Host, { key: '58d1dc5b15723621ce013b0aad683df42265149c' }, h("div", { key: 'd13f74b66e464e6b90d18787739ed7dfaa73951c', class: {
|
|
147
147
|
'spw-sidenav-item': true,
|
|
148
148
|
'spw-sidenav-item--active': this.active || this.hasActiveChild,
|
|
149
149
|
'spw-sidenav-item--disabled': this.disabled,
|
|
150
150
|
'spw-sidenav-item--has-children': this.hasChildren,
|
|
151
151
|
'spw-sidenav-item--children-open': this.childrenOpen,
|
|
152
152
|
'spw-sidenav-item--mobile-focused': this.mobileFocused,
|
|
153
|
-
} }, h("div", { key: '
|
|
153
|
+
} }, h("div", { key: '2537aac7236e1d3b0cb8a517cbdfd19c4ba14365', class: "spw-sidenav-item__row" }, h(LabelTag, { key: '5f1191f9f3ce41fc824ba06424d0e7a002f4f80d', class: "spw-sidenav-item__label", href: this.isLink ? this.href : undefined, disabled: LabelTag === 'button' && this.disabled ? true : undefined, "aria-disabled": this.disabled ? 'true' : undefined, "aria-expanded": this.hasChildren ? this.childrenOpen.toString() : undefined, "aria-current": this.active ? 'page' : undefined, onClick: this.handleLabelClick }, this.icon && (h("span", { key: 'e8efc1d352865a8d50bb837cdd60e7535cbeeb7d', class: "spw-sidenav-item__icon" }, h("spw-icon", { key: '46cffaea53e4ca4f1fc18e4dfc68144f960f2163', variant: this.iconVariant, icon: this.icon }))), h("span", { key: '7161638adba5a69574b79b6cb1fe3977a9d1f173', class: "spw-sidenav-item__text" }, h("slot", { key: '88d7eb416a2a1af6a9248be3f5d76e885d44db7f' }))), this.hasChildren && (h("button", { key: 'db9f2d493ca8bfbc0a72a05237d6b2e461152cc8', type: "button", class: {
|
|
154
154
|
'spw-sidenav-item__chevron': true,
|
|
155
155
|
'spw-sidenav-item__chevron--open': this.childrenOpen,
|
|
156
|
-
}, "aria-label": this.childrenOpen ? 'Réduire' : 'Développer', disabled: this.disabled, onClick: this.handleChevronClick }, h("spw-icon", { key: '
|
|
156
|
+
}, "aria-label": this.childrenOpen ? 'Réduire' : 'Développer', disabled: this.disabled, onClick: this.handleChevronClick }, h("spw-icon", { key: '5fe1a35b09008a2d07d3c95aa3bb9b966478a748', icon: "fa-chevron-down" })))), h("slot", { key: '8b5faa694ee26e8b1558668a87d4288087185292', name: "children" }))));
|
|
157
157
|
}
|
|
158
158
|
static get is() { return "spw-sidenav-item"; }
|
|
159
159
|
static get originalStyleUrls() {
|
|
@@ -114,10 +114,10 @@ export class SpwSidenav {
|
|
|
114
114
|
showBack = !!target;
|
|
115
115
|
title = this.sectionTitle;
|
|
116
116
|
}
|
|
117
|
-
return (h(Host, { key: '
|
|
117
|
+
return (h(Host, { key: '80179702fc9f29cd2d726088dddad70c69d2b3f4', "data-show-root": this.showRoot ? 'true' : null }, h("nav", { key: 'deeac3068ee9778b42089251ab9afcc8089b0d3e', class: {
|
|
118
118
|
'spw-sidenav': true,
|
|
119
119
|
'spw-sidenav--show-root': this.showRoot,
|
|
120
|
-
} }, showBack && (h("button", { key: '
|
|
120
|
+
} }, showBack && (h("button", { key: '973111df63183b6ce527c01e1faeca6d850f87ad', class: "spw-sidenav__back", type: "button", onClick: this.handleBack }, h("spw-icon", { key: '619044487e610cc2811d9b2ebe5cb4b6219f0c5f', icon: "fa-arrow-left" }), h("span", { key: '755b42e03bbb43567825ab0ab8da57051ebf8600' }, this.backLabel))), title && h("div", { key: '8e7365578ac94e27a448e4eaea3b6086864da726', class: "spw-sidenav__section-title" }, title), h("slot", { key: 'a9a048e2367bc1f49f39206d8ada5e030a4f8796' }))));
|
|
121
121
|
}
|
|
122
122
|
static get is() { return "spw-sidenav"; }
|
|
123
123
|
static get encapsulation() { return "shadow"; }
|
|
@@ -44,7 +44,7 @@ export class SpwSkeleton {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: 'c0081c6335e2b8f7c58da3fbc28a1e8166dc065d' }, h("div", { key: '59093cd70fce923494968ff580398d58e69baf96', class: "spw-skeleton" }, this.renderVariant(), h("slot", { key: '3d26afa7ccbac19fcdb0314530b245ca0a91ff95' }))));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "spw-skeleton"; }
|
|
50
50
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class SpwSliderItem {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: 'bb9fabad09dbef4637b0b6e975df5ff82fc120eb' }, h("div", { key: '274a2c2b319f586439a8262f459d630ecf75338e', class: "spw-slider-item" }, h("slot", { key: 'b8aa7ff95b65a51ca1a89cad7e52a2589e3286e9' }))));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "spw-slider-item"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -394,7 +394,7 @@ export class SpwSlider {
|
|
|
394
394
|
}, onClick: () => this.handleDotClick(i), "aria-label": `Slide ${i + 1}`, "aria-current": i === this.activeIndex ? 'true' : 'false' })))));
|
|
395
395
|
}
|
|
396
396
|
render() {
|
|
397
|
-
return (h(Host, { key: '
|
|
397
|
+
return (h(Host, { key: '810d6ced5403729fe79bf67b4d15c5d96c4820a1' }, h("div", { key: '310490c3eea1c9d0dfad08d27c388a09146f0a93', class: this.elementClass, style: { height: `${this.currentHeight}px` }, tabindex: "0", role: "region", "aria-label": this.accAriaLabel }, h("div", { key: 'bfbbfca201769cf621344f8ff4e2a0ea3edbd5e7', class: "spw-slider__track" }, h("slot", { key: 'e949abbe0597a7cc0558289cc589d5b1194e9884' })), this.showArrows && (h("div", { key: '306025c5d2390d822d75ae8d9403e265c0e66e0c', class: "spw-slider__navigation" }, h("button", { key: 'ca0fe952b5b0f260388fe26296b51a13d640d359', class: "spw-slider__arrow spw-slider__arrow--prev", onClick: this.handlePrevious, disabled: this.activeIndex === 0, "aria-label": this.previousSlideText }, h("spw-icon", { key: 'c5ea592b78fcf804b66b13100fc0156765e26c04', icon: "fa-chevron-left" })), h("button", { key: '7785a31662e2b50be80e875f69f0c31b67a01042', class: "spw-slider__arrow spw-slider__arrow--next", onClick: this.handleNext, disabled: this.activeIndex === this.totalSlides - 1, "aria-label": this.nextSlideText }, h("spw-icon", { key: '5247463977a24a0222cb6a60748a347ffd67b18e', icon: "fa-chevron-right" })))), this.dotsPosition === 'inside' && this.renderDots()), this.dotsPosition === 'outside' && (h("div", { key: '2f588f7082732c04c335827baae6e56bd3db8225', class: "spw-slider__dots-container" }, this.renderDots())), this.showAutoplayToggle && (h("div", { key: '44460cd1672181221038ef4bfc593f8beb49c851', class: "spw-slider__autoplay-toggle" }, h("spw-checkbox", { key: '0b10eaa228500b753b7608bf2bab8d263721d772', variant: "toggle", checked: this.isAutoplayActive, onSpwChange: this.handleAutoplayToggle }, this.autoplayText)))));
|
|
398
398
|
}
|
|
399
399
|
static get is() { return "spw-slider"; }
|
|
400
400
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ export class SpwSocials {
|
|
|
5
5
|
this.mainTitle = 'Restez connecté';
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '9232f1bb0c4ac41dd7c227a05935466d25f023cf' }, h("div", { key: '853e59cccd49fecd77058906001e4c3480553531', class: "spw-socials" }, h("div", { key: '397e29d74fbba61b9b993ad4bd698cefd5cdbc38', class: "spw-ds-container" }, h("h2", { key: '8cd8ad03c82ab02450e24c9a93ad5c68ebe15b05', class: "spw-socials__title" }, this.mainTitle), h("div", { key: '87c8eb820205eda3437e624686fb7d87d6043594', class: "spw-socials__content" }, h("slot", { key: 'a091898deac463dabcf02852343edeecb653be20' }))))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "spw-socials"; }
|
|
11
11
|
static get originalStyleUrls() {
|
|
@@ -3,6 +3,8 @@ export class SpwTableBody {
|
|
|
3
3
|
constructor() {
|
|
4
4
|
/** Si `true`, applique un style zébré aux lignes du tableau (à appliquer sur spw-table-body) */
|
|
5
5
|
this.isZebra = false;
|
|
6
|
+
/** Fréquence du zébrage : une ligne teintée toutes les N lignes (par défaut 2) */
|
|
7
|
+
this.zebraRange = 2;
|
|
6
8
|
}
|
|
7
9
|
componentDidLoad() {
|
|
8
10
|
this.updateZebraStyles();
|
|
@@ -18,22 +20,27 @@ export class SpwTableBody {
|
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
22
|
async updateZebraStyles() {
|
|
21
|
-
|
|
22
|
-
return;
|
|
23
|
+
var _a;
|
|
23
24
|
const slot = this.el.shadowRoot.querySelector('slot');
|
|
24
25
|
if (!slot)
|
|
25
26
|
return;
|
|
26
27
|
const slottedNodes = slot.assignedElements({ flatten: true });
|
|
28
|
+
const range = Math.max(2, (_a = this.zebraRange) !== null && _a !== void 0 ? _a : 2);
|
|
27
29
|
let rowIndex = 0;
|
|
28
30
|
slottedNodes.forEach(el => {
|
|
29
31
|
if (el.tagName.toLowerCase() === 'spw-table-row') {
|
|
30
|
-
|
|
32
|
+
if (!this.isZebra) {
|
|
33
|
+
el.removeAttribute('data-row-style');
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
el.setAttribute('data-row-style', rowIndex % range === range - 1 ? 'odd' : 'even');
|
|
37
|
+
}
|
|
31
38
|
rowIndex++;
|
|
32
39
|
}
|
|
33
40
|
});
|
|
34
41
|
}
|
|
35
42
|
render() {
|
|
36
|
-
return (h("tbody", { key: '
|
|
43
|
+
return (h("tbody", { key: '57860772f3d82ecb09d5f34dbff8feb7dfd753aa', part: "tbody" }, h("slot", { key: '70d459a644d1a885442757e3ba5f93ce8d1c7330' })));
|
|
37
44
|
}
|
|
38
45
|
static get is() { return "spw-table-body"; }
|
|
39
46
|
static get encapsulation() { return "shadow"; }
|
|
@@ -68,6 +75,26 @@ export class SpwTableBody {
|
|
|
68
75
|
"reflect": true,
|
|
69
76
|
"attribute": "is-zebra",
|
|
70
77
|
"defaultValue": "false"
|
|
78
|
+
},
|
|
79
|
+
"zebraRange": {
|
|
80
|
+
"type": "number",
|
|
81
|
+
"mutable": false,
|
|
82
|
+
"complexType": {
|
|
83
|
+
"original": "number",
|
|
84
|
+
"resolved": "number",
|
|
85
|
+
"references": {}
|
|
86
|
+
},
|
|
87
|
+
"required": false,
|
|
88
|
+
"optional": true,
|
|
89
|
+
"docs": {
|
|
90
|
+
"tags": [],
|
|
91
|
+
"text": "Fr\u00E9quence du z\u00E9brage : une ligne teint\u00E9e toutes les N lignes (par d\u00E9faut 2)"
|
|
92
|
+
},
|
|
93
|
+
"getter": false,
|
|
94
|
+
"setter": false,
|
|
95
|
+
"reflect": true,
|
|
96
|
+
"attribute": "zebra-range",
|
|
97
|
+
"defaultValue": "2"
|
|
71
98
|
}
|
|
72
99
|
};
|
|
73
100
|
}
|
|
@@ -87,7 +87,7 @@ export class SpwTableCell {
|
|
|
87
87
|
}
|
|
88
88
|
attrs.style = stickyStyles;
|
|
89
89
|
}
|
|
90
|
-
return (h("td", Object.assign({ key: '
|
|
90
|
+
return (h("td", Object.assign({ key: 'ad31c3a4d7ba2f2312bd3c90e37fba456ceec9e0' }, attrs), h("slot", { key: '6df8c9362a46980e6c7c1616db35a7c387c82eb4' })));
|
|
91
91
|
}
|
|
92
92
|
static get is() { return "spw-table-cell"; }
|
|
93
93
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class SpwTableContainer {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: '7dbd1ad143075eebfeb4f5f79de8209587d97bda' }, h("div", { key: 'b3fe851f5350acf7c63c1125762cc22cd0f68516', class: "spw-table-container" }, h("slot", { key: '7f17896678141cac3d9e454c4aa49c842fc3fdcd' }))));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "spw-table-container"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class SpwTableFooter {
|
|
3
3
|
render() {
|
|
4
|
-
return (h("div", { key: '
|
|
4
|
+
return (h("div", { key: 'e6c18565c097105656ab7c853441b12fe5c850bc', class: "spw-table-footer" }, h("slot", { key: 'd423fd366aee7d1d56b5194fcf13485edec97eae', name: "left" }), h("slot", { key: 'a187d0077f0b58259ad3dc456c68ec13d92211c8', name: "center" }), h("slot", { key: 'b54461a15008f994b471e1e5df5dc0620c283d28', name: "right" })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "spw-table-footer"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class SpwTableHead {
|
|
3
3
|
render() {
|
|
4
|
-
return (h("thead", { key: '
|
|
4
|
+
return (h("thead", { key: 'ecbb1e80938c86b94ec294349e10d627f465fda4', part: "thead" }, h("slot", { key: '681208c60068c67e584a8d731973e23419517059' })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "spw-table-head"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -65,10 +65,10 @@ export class SpwTableHeader {
|
|
|
65
65
|
}
|
|
66
66
|
attrs.style = stickyStyles;
|
|
67
67
|
}
|
|
68
|
-
return (h("th", Object.assign({ key: '
|
|
68
|
+
return (h("th", Object.assign({ key: '7e68726c07921d70ba9f0fa922e4372eb3e6dde9' }, attrs), h("div", { key: 'cd6ac42c6ce4dce455c9940d0074cc7fb627a841', class: {
|
|
69
69
|
'spw-table-header__content': true,
|
|
70
70
|
'spw-table-header__content--is-sorted': this.isSorted,
|
|
71
|
-
} }, h("slot", { key: '
|
|
71
|
+
} }, h("slot", { key: '9c1412d2300be8304e03d29cdc171d7e6481b958' }), h("div", { key: '1e51cb0b7c586d66a453ba244989e553b83a8c72', class: "spw-table-header__icons" }, h("slot", { key: '28903d1feb862ee661c588bc4259a7f188b259dd', name: "filters" }), (this.tooltipTitle || this.tooltipText) && (h("spw-tooltip", { key: 'c2d855b8c0eb6e5aed239d65b50a24f78f21ff5d', "tooltip-title": this.tooltipTitle, "tooltip-text": this.tooltipText }, h("spw-icon", { key: '9b0a49086dd675e4a9ba413cf7ed1dc533482077', variant: "fa-regular", icon: "fa-circle-question" }))), this.sortable && (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' }))))));
|
|
72
72
|
}
|
|
73
73
|
static get is() { return "spw-table-header"; }
|
|
74
74
|
static get encapsulation() { return "shadow"; }
|
|
@@ -49,7 +49,7 @@ export class SpwTableRow {
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: '8d69dfe04b76585e8d0bc94e25e79ac62d65b765', part: "row" }, h("tr", { key: 'be436e9588e55464d9ed3778721542a1e160d904', class: this.elementClass, part: "row" }, h("slot", { key: '4bdbfd73d1dd01ac4a0e51f8908cde39ada7c573' }))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "spw-table-row"; }
|
|
55
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -123,7 +123,7 @@ export class SpwTableSidebar {
|
|
|
123
123
|
}
|
|
124
124
|
render() {
|
|
125
125
|
const style = Object.assign(Object.assign({}, (this.observedHeight !== undefined && { height: `${this.observedHeight}px` })), { '--spw-table-sidebar-width': `${this.sidebarWidth}px` });
|
|
126
|
-
return (h(Host, { key: '
|
|
126
|
+
return (h(Host, { key: 'bf46e0ac1a574e7cde87c5180757de5a8aa35d20', style: style, class: this.hostClass }, h("nav", { key: '3ac9b2b53a0a3691beb22a51450da8ba63ba7d78', class: this.elementClass }, h("span", { key: '7df68f6f5d3d786405f6d32f99bcb65f429715bd', class: "spw-table-sidebar__toggle", onClick: this.toggleSidebar, "aria-expanded": this.expanded.toString() }, h("spw-icon", { key: '90b7363ea7d6c4392bf3016ddaa13afeb0739fc5', icon: "fa-chevron-left" })), h("div", { key: '371794226c3e41bcd0bb95ec8e0d4b99df422647', class: "spw-table-sidebar__mini", onClick: this.toggleSidebar }, h("spw-icon", { key: '4d7a7e875f9d7f24993f9d83a9f72c64af901ef0', icon: this.sidebarIcon, variant: "fa-regular" })), h("div", { key: '871795a1e854e0287f8ab302eb01144b27a96cc7', class: "spw-table-sidebar__content" }, h("div", { key: '0d2863e30efc30dcbfbca6d254265ba8fe6f11bc', class: "spw-table-sidebar__header" }, h("span", { key: '2b2838b91d6ef047c92da8574dc15c9e05f97ef3', class: "spw-table-sidebar__header-title" }, h("spw-icon", { key: 'dedbbd5cda9b16f9773a606021f4ae8adfecb9d1', icon: this.sidebarIcon, variant: "fa-regular" }), " ", this.sidebarTitle), this.hasReset && (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 }))), h("div", { key: '2149257798fc16bc0317e7b00ca9054f749f3b00', class: "spw-table-sidebar__scrollable-content" }, h("slot", { key: 'e48fc661a93d82945c39a31e240d36db422e54ac' })), h("div", { key: '9583206959f55bafc57fc245c68cf4d09536fb97', class: "spw-table-sidebar__footer" }, h("slot", { key: '141342f7a9ee0e9ec1f56b442e87ef7874ae157e', name: "sidebar-footer" }))))));
|
|
127
127
|
}
|
|
128
128
|
static get is() { return "spw-table-sidebar"; }
|
|
129
129
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,8 +7,10 @@ export class SpwTable {
|
|
|
7
7
|
this.minWidth = '600';
|
|
8
8
|
/** Permet de définir le table-layout (auto ou fixed) */
|
|
9
9
|
this.tableLayout = 'auto';
|
|
10
|
-
/** Définit un background de couleur différent une ligne sur
|
|
10
|
+
/** Définit un background de couleur différent une ligne sur N (via zebraRange) */
|
|
11
11
|
this.isZebra = false;
|
|
12
|
+
/** Fréquence du zébrage : une ligne teintée toutes les N lignes (par défaut 2) */
|
|
13
|
+
this.zebraRange = 2;
|
|
12
14
|
/** Désactive le tri natif pour permettre l'utilisation d'une fonction de tri personnalisée */
|
|
13
15
|
this.disableSort = false;
|
|
14
16
|
/** Active le redimensionnement manuel de la hauteur du tableau avec un handle */
|
|
@@ -59,6 +61,9 @@ export class SpwTable {
|
|
|
59
61
|
onIsStickyChange() {
|
|
60
62
|
this.applyStickyToChildren();
|
|
61
63
|
}
|
|
64
|
+
onZebraChange() {
|
|
65
|
+
this.updateZebra();
|
|
66
|
+
}
|
|
62
67
|
componentDidLoad() {
|
|
63
68
|
var _a;
|
|
64
69
|
this.updateZebra();
|
|
@@ -269,6 +274,7 @@ export class SpwTable {
|
|
|
269
274
|
this.updateZebra();
|
|
270
275
|
}
|
|
271
276
|
updateZebra() {
|
|
277
|
+
var _a;
|
|
272
278
|
const slot = this.el.shadowRoot.querySelector('slot:not([name])');
|
|
273
279
|
if (!slot)
|
|
274
280
|
return;
|
|
@@ -277,9 +283,11 @@ export class SpwTable {
|
|
|
277
283
|
if (body) {
|
|
278
284
|
if (this.isZebra) {
|
|
279
285
|
body.setAttribute('is-zebra', 'true');
|
|
286
|
+
body.setAttribute('zebra-range', String((_a = this.zebraRange) !== null && _a !== void 0 ? _a : 2));
|
|
280
287
|
}
|
|
281
288
|
else {
|
|
282
289
|
body.removeAttribute('is-zebra');
|
|
290
|
+
body.removeAttribute('zebra-range');
|
|
283
291
|
}
|
|
284
292
|
if (typeof body.updateZebraStyles === 'function') {
|
|
285
293
|
body.updateZebraStyles();
|
|
@@ -366,10 +374,10 @@ export class SpwTable {
|
|
|
366
374
|
return this.formatSize(this.maxHeight);
|
|
367
375
|
}
|
|
368
376
|
render() {
|
|
369
|
-
return (h(Host, { key: '
|
|
377
|
+
return (h(Host, { key: 'dabbc707f80267376120ba9d863fd1cd2b8bd7cc', style: {
|
|
370
378
|
'--spw-table-max-height': this.getMaxHeight(),
|
|
371
379
|
'--spw-table-min-width': this.formatSize(this.minWidth),
|
|
372
|
-
} }, h("div", { key: '
|
|
380
|
+
} }, h("div", { key: '1f906cfd810477870696afccba757493f74f5869', class: this.containerClass }, h("slot", { key: '685aa7323c83cfd5a6ea6b2b6889873b8c26fd80', name: "table-sidebar" }, " "), h("div", { key: '98797e8924da9322c84eeff86922686efeba97fe', class: "spw-table-wrapper" }, h("table", { key: '336ccc54b04e9b320c4ece0783eae9bb6e1a93f5', part: "table", class: this.elementClass, role: "table", "aria-label": this.accAriaLabel }, h("slot", { key: 'cee7064cd1ff45b80c70cf5f5a4259fd277bb3d2' })))), this.resizable && (h("div", { key: 'ed79ba8e555d2dbe1abbdf4ef1863102dfccb221', class: "spw-table-resize-handle", onMouseDown: this.handleResizeStart, role: "separator", "aria-orientation": "horizontal", "aria-label": "Redimensionner le tableau" }, h("div", { key: '47c677fa9d9e337d9c7d442975d9f537d7fd3c8e', class: "spw-table-resize-handle__bar" }))), h("slot", { key: '3a8e64500c5844d9a3c438248f8afb5c6d0636d7', name: "table-footer" })));
|
|
373
381
|
}
|
|
374
382
|
static get is() { return "spw-table"; }
|
|
375
383
|
static get encapsulation() { return "shadow"; }
|
|
@@ -495,7 +503,7 @@ export class SpwTable {
|
|
|
495
503
|
"optional": true,
|
|
496
504
|
"docs": {
|
|
497
505
|
"tags": [],
|
|
498
|
-
"text": "D\u00E9finit un background de couleur diff\u00E9rent une ligne sur
|
|
506
|
+
"text": "D\u00E9finit un background de couleur diff\u00E9rent une ligne sur N (via zebraRange)"
|
|
499
507
|
},
|
|
500
508
|
"getter": false,
|
|
501
509
|
"setter": false,
|
|
@@ -503,6 +511,26 @@ export class SpwTable {
|
|
|
503
511
|
"attribute": "is-zebra",
|
|
504
512
|
"defaultValue": "false"
|
|
505
513
|
},
|
|
514
|
+
"zebraRange": {
|
|
515
|
+
"type": "number",
|
|
516
|
+
"mutable": false,
|
|
517
|
+
"complexType": {
|
|
518
|
+
"original": "number",
|
|
519
|
+
"resolved": "number",
|
|
520
|
+
"references": {}
|
|
521
|
+
},
|
|
522
|
+
"required": false,
|
|
523
|
+
"optional": true,
|
|
524
|
+
"docs": {
|
|
525
|
+
"tags": [],
|
|
526
|
+
"text": "Fr\u00E9quence du z\u00E9brage : une ligne teint\u00E9e toutes les N lignes (par d\u00E9faut 2)"
|
|
527
|
+
},
|
|
528
|
+
"getter": false,
|
|
529
|
+
"setter": false,
|
|
530
|
+
"reflect": false,
|
|
531
|
+
"attribute": "zebra-range",
|
|
532
|
+
"defaultValue": "2"
|
|
533
|
+
},
|
|
506
534
|
"disableSort": {
|
|
507
535
|
"type": "boolean",
|
|
508
536
|
"mutable": false,
|
|
@@ -640,6 +668,12 @@ export class SpwTable {
|
|
|
640
668
|
}, {
|
|
641
669
|
"propName": "isSticky",
|
|
642
670
|
"methodName": "onIsStickyChange"
|
|
671
|
+
}, {
|
|
672
|
+
"propName": "isZebra",
|
|
673
|
+
"methodName": "onZebraChange"
|
|
674
|
+
}, {
|
|
675
|
+
"propName": "zebraRange",
|
|
676
|
+
"methodName": "onZebraChange"
|
|
643
677
|
}];
|
|
644
678
|
}
|
|
645
679
|
static get listeners() {
|
|
@@ -102,7 +102,7 @@ export class SpwTabsNavigation {
|
|
|
102
102
|
'spw-tabs-navigation__list--vertical-on-mobile': this.isVerticalOnMobile,
|
|
103
103
|
'spw-tabs-navigation__list--centered': this.isCentered && !this.hasOverflow,
|
|
104
104
|
};
|
|
105
|
-
return (h("div", { key: '
|
|
105
|
+
return (h("div", { key: 'c29f607409df10b9a6f40b46ba278a974883bb92', class: containerClass }, this.showLeftArrow && (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" }, h("spw-icon", { key: '7d3fdd5c6bf7c209127a9f3c009285c9f54b52c3', icon: "fa-chevron-left" }))), h("nav", { key: '9dd0d283d2a204ea5ae6155e9d07ae8c9c1d2ce2', class: navClass, "aria-label": this.accAriaLabel || 'Navigation' }, h("ul", { key: '77e2b21525de20ed2c20660666f6719b3cf70924', class: listClass, role: "tablist", ref: el => (this.ulElement = el), onScroll: this.handleScroll }, h("slot", { key: 'f4b347ebd803ebf92a61edb24fa9a5d048e6fbc9' }))), this.showRightArrow && (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" }, h("spw-icon", { key: 'cf6c77da1da6963660d8e9b0c7b6c1b61bd9a6fe', icon: "fa-chevron-right" })))));
|
|
106
106
|
}
|
|
107
107
|
static get is() { return "spw-tabs-navigation"; }
|
|
108
108
|
static get encapsulation() { return "shadow"; }
|