@spw-ds/spw-stencil-library 1.16.0 → 1.17.0
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 +52 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/spw-button_2.cjs.entry.js +2 -2
- package/dist/cjs/spw-custom-select.cjs.entry.js +22 -26
- package/dist/cjs/spw-date-picker.cjs.entry.js +17 -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 +22 -14
- 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 +3 -3
- package/dist/cjs/spw-hero.cjs.entry.js +3 -3
- package/dist/cjs/spw-input-slider.cjs.entry.js +17 -21
- 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-message.cjs.entry.js +10 -2
- 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 +8 -2
- 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 +62 -10
- package/dist/cjs/spw-select.cjs.entry.js +16 -20
- 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 +18 -4
- package/dist/cjs/spw-sidenav.cjs.entry.js +111 -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 +1 -1
- package/dist/cjs/spw-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-container.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-head.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-header.cjs.entry.js +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-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 +17 -20
- package/dist/cjs/spw-textarea.cjs.entry.js +16 -20
- package/dist/cjs/spw-tile-description.cjs.entry.js +1 -1
- package/dist/cjs/spw-tile-title.cjs.entry.js +1 -1
- package/dist/cjs/spw-tile.cjs.entry.js +1 -1
- package/dist/cjs/spw-timeline-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-timeline.cjs.entry.js +2 -2
- package/dist/cjs/spw-toc.cjs.entry.js +1 -1
- package/dist/cjs/spw-topbar.cjs.entry.js +1 -1
- package/dist/cjs/spw-wizard-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-wizard.cjs.entry.js +1 -1
- package/dist/collection/components/spw-button/spw-button.css +47 -65
- package/dist/collection/components/spw-custom-select/spw-custom-select.css +1 -1
- package/dist/collection/components/spw-custom-select/spw-custom-select.js +21 -25
- package/dist/collection/components/spw-date-picker/spw-date-picker.js +17 -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.css +2 -14
- 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 +15 -7
- 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.css +13 -6
- package/dist/collection/components/spw-header/spw-header.js +2 -2
- package/dist/collection/components/spw-hero/spw-hero.js +3 -3
- package/dist/collection/components/spw-input-slider/spw-input-slider.js +17 -21
- 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-message/spw-message.css +59 -2
- package/dist/collection/components/spw-message/spw-message.js +11 -2
- 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 +8 -2
- 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 +62 -10
- package/dist/collection/components/spw-select/spw-select.js +16 -20
- 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.css +55 -0
- package/dist/collection/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.js +40 -4
- package/dist/collection/components/spw-sidenav/spw-sidenav.css +33 -0
- package/dist/collection/components/spw-sidenav/spw-sidenav.js +152 -1
- 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 +1 -1
- 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-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 +17 -20
- package/dist/collection/components/spw-textarea/spw-textarea.js +16 -20
- 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.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/spw-tooltip/spw-tooltip.js +1 -1
- package/dist/collection/components/spw-topbar/spw-topbar.js +1 -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/components/spw-avatar/spw-avatar.stories.js +2 -0
- package/dist/collection/stories/components/spw-block-content/spw-block-content.stories.js +3 -1
- package/dist/collection/stories/components/spw-box/spw-box.stories.js +3 -1
- package/dist/collection/stories/components/spw-breadcrumb/spw-breadcrumb.stories.js +39 -1
- package/dist/collection/stories/components/spw-button/spw-button.stories.js +38 -1
- package/dist/collection/stories/components/spw-checkbox/spw-checkbox.stories.js +3 -1
- package/dist/collection/stories/components/spw-custom-select/spw-custom-select.stories.js +46 -1
- package/dist/collection/stories/components/spw-date-picker/spw-date-picker.stories.js +3 -1
- package/dist/collection/stories/components/spw-dropdown/spw-dropdown.stories.js +46 -1
- package/dist/collection/stories/components/spw-field-message/spw-field-message.stories.js +3 -1
- package/dist/collection/stories/components/spw-file-upload/spw-file-upload.stories.js +40 -1
- package/dist/collection/stories/components/spw-icon/spw-icon.stories.js +2 -0
- package/dist/collection/stories/components/spw-input-slider/spw-input-slider.stories.js +2 -0
- package/dist/collection/stories/components/spw-link/spw-link.stories.js +3 -1
- package/dist/collection/stories/components/spw-loading/spw-loading.stories.js +3 -1
- package/dist/collection/stories/components/spw-pagination/spw-pagination.stories.js +3 -1
- package/dist/collection/stories/components/spw-radio/spw-radio.stories.js +3 -1
- package/dist/collection/stories/components/spw-scrolltop/spw-scrolltop.stories.js +2 -0
- package/dist/collection/stories/components/spw-search-field/spw-search-field.stories.js +47 -2
- package/dist/collection/stories/components/spw-select/spw-select.stories.js +46 -1
- package/dist/collection/stories/components/spw-separator/spw-separator.stories.js +3 -1
- package/dist/collection/stories/components/spw-skeleton/spw-skeleton.stories.js +3 -1
- package/dist/collection/stories/components/spw-tag/spw-tag.stories.js +3 -1
- package/dist/collection/stories/components/spw-text-field/spw-text-field.stories.js +3 -1
- package/dist/collection/stories/components/spw-textarea/spw-textarea.stories.js +3 -1
- package/dist/collection/stories/components/spw-toast/spw-toast.stories.js +3 -1
- package/dist/collection/stories/components/spw-tooltip/spw-tooltip.stories.js +3 -1
- package/dist/collection/stories/organisms/spw-accordion/spw-accordion.stories.js +39 -1
- package/dist/collection/stories/organisms/spw-card/spw-card.stories.js +39 -1
- package/dist/collection/stories/organisms/spw-drawer/spw-drawer.stories.js +2 -0
- package/dist/collection/stories/organisms/spw-footer/spw-footer.stories.js +39 -1
- package/dist/collection/stories/organisms/spw-grid/spw-grid.stories.js +38 -0
- package/dist/collection/stories/organisms/spw-group/spw-group.stories.js +3 -1
- package/dist/collection/stories/organisms/spw-header/spw-header.stories.js +39 -1
- package/dist/collection/stories/organisms/spw-hero/spw-hero.stories.js +39 -1
- package/dist/collection/stories/organisms/spw-lightbox/spw-lightbox.stories.js +2 -0
- package/dist/collection/stories/organisms/spw-list/spw-list.stories.js +3 -1
- package/dist/collection/stories/organisms/spw-message/spw-message.stories.js +78 -1
- package/dist/collection/stories/organisms/spw-modal/spw-modal.stories.js +33 -1
- package/dist/collection/stories/organisms/spw-mosaic/spw-mosaic.stories.js +39 -1
- package/dist/collection/stories/organisms/spw-sidebar/spw-sidebar.stories.js +39 -1
- package/dist/collection/stories/organisms/spw-sidenav/spw-sidenav.stories.js +215 -0
- package/dist/collection/stories/organisms/spw-slider/spw-slider.stories.js +73 -1
- package/dist/collection/stories/organisms/spw-table/spw-table.stories.js +3 -1
- package/dist/collection/stories/organisms/spw-tabs/spw-tabs.stories.js +39 -1
- package/dist/collection/stories/organisms/spw-tile/spw-tile.stories.js +105 -1
- package/dist/collection/stories/organisms/spw-timeline/spw-timeline.stories.js +2 -0
- package/dist/collection/stories/organisms/spw-toc/spw-toc.stories.js +38 -0
- package/dist/collection/stories/organisms/spw-topbar/spw-topbar.stories.js +2 -0
- package/dist/collection/stories/organisms/spw-wizard/spw-wizard.stories.js +123 -1
- package/dist/components/p-BBsDk5QJ.js +1 -0
- package/dist/components/{p-CnzSr9Im.js → p-BrCHGcGN.js} +1 -1
- package/dist/components/{p-DlhwYK4n.js → p-CLldNY-_.js} +1 -1
- package/dist/components/{p-aWQ1v8BH.js → p-CdTWu15K.js} +1 -1
- package/dist/components/{p-C82UsmH4.js → p-DZoh_5b5.js} +1 -1
- package/dist/components/{p-DAfHVLjA.js → p-Fqknc29G.js} +1 -1
- package/dist/components/p-R4SpR2mV.js +1 -0
- package/dist/components/{p-DXd3uPkn.js → p-nC0sTTf4.js} +1 -1
- package/dist/components/{p-BY3XOPGU.js → p-xTIxnTQQ.js} +1 -1
- package/dist/components/spw-breadcrumb-item.js +1 -1
- package/dist/components/spw-button.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-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 +3 -3
- 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-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-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 +92 -12
- package/dist/esm/loader.js +1 -1
- package/dist/esm/spw-button_2.entry.js +2 -2
- package/dist/esm/spw-custom-select.entry.js +22 -26
- package/dist/esm/spw-date-picker.entry.js +17 -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 +22 -14
- 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 +3 -3
- package/dist/esm/spw-hero.entry.js +3 -3
- package/dist/esm/spw-input-slider.entry.js +17 -21
- 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-message.entry.js +10 -2
- 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 +8 -2
- 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 +62 -10
- package/dist/esm/spw-select.entry.js +16 -20
- 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 +18 -4
- package/dist/esm/spw-sidenav.entry.js +111 -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 +1 -1
- package/dist/esm/spw-table-cell.entry.js +1 -1
- package/dist/esm/spw-table-container.entry.js +1 -1
- package/dist/esm/spw-table-footer.entry.js +1 -1
- package/dist/esm/spw-table-head.entry.js +1 -1
- package/dist/esm/spw-table-header.entry.js +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-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 +17 -20
- package/dist/esm/spw-textarea.entry.js +16 -20
- package/dist/esm/spw-tile-description.entry.js +1 -1
- package/dist/esm/spw-tile-title.entry.js +1 -1
- package/dist/esm/spw-tile.entry.js +1 -1
- package/dist/esm/spw-timeline-item.entry.js +2 -2
- package/dist/esm/spw-timeline.entry.js +2 -2
- package/dist/esm/spw-toc.entry.js +1 -1
- package/dist/esm/spw-topbar.entry.js +1 -1
- package/dist/esm/spw-wizard-item.entry.js +1 -1
- package/dist/esm/spw-wizard.entry.js +1 -1
- package/dist/spw-stencil-library/p-005e895a.entry.js +1 -0
- package/dist/spw-stencil-library/{p-57d57d31.entry.js → p-06356658.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-8010145c.entry.js → p-08de3542.entry.js} +1 -1
- package/dist/spw-stencil-library/p-09818d2e.entry.js +1 -0
- package/dist/spw-stencil-library/{p-bcc0bc5b.entry.js → p-0cd5c984.entry.js} +1 -1
- package/dist/spw-stencil-library/p-0edf6e69.entry.js +1 -0
- package/dist/spw-stencil-library/{p-e82e97da.entry.js → p-11f9450a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3a44068e.entry.js → p-13426e40.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e172632c.entry.js → p-1603d35d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6be62066.entry.js → p-176c735c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-082f93eb.entry.js → p-244c42e1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e2fbc5ff.entry.js → p-2b6b85a3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ae18c590.entry.js → p-2c430e60.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-995bf47d.entry.js → p-2f45d1f5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-10bf5c42.entry.js → p-36484429.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ca3263fb.entry.js → p-36d80c8f.entry.js} +1 -1
- package/dist/spw-stencil-library/p-375581fd.entry.js +1 -0
- package/dist/spw-stencil-library/{p-b08eb675.entry.js → p-3d6fe416.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1e940c23.entry.js → p-44a07af3.entry.js} +1 -1
- package/dist/spw-stencil-library/p-48078447.entry.js +1 -0
- package/dist/spw-stencil-library/{p-fbc26e62.entry.js → p-4c16d701.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1ba59470.entry.js → p-4c636296.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-723229e0.entry.js → p-4da69501.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5ca2790b.entry.js → p-529e0d0d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-426be39b.entry.js → p-568f2002.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-24cc1b85.entry.js → p-59cb1719.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1001e077.entry.js → p-5a08eb26.entry.js} +1 -1
- package/dist/spw-stencil-library/p-5a0c0b53.entry.js +1 -0
- package/dist/spw-stencil-library/{p-41568f68.entry.js → p-6500046a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e6beeeae.entry.js → p-6b0338cb.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-fd339689.entry.js → p-6b53d52d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f0e49272.entry.js → p-6d105331.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-571107dc.entry.js → p-6e57e12a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f8c9e28a.entry.js → p-6f244a33.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-af8ccb80.entry.js → p-758ab426.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-42dce53f.entry.js → p-7e7cd509.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3e8e6a41.entry.js → p-7e884c21.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a20d2a78.entry.js → p-7ed866cf.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-11ee7e7a.entry.js → p-82c5e2e2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-bd0b3958.entry.js → p-85cd97f4.entry.js} +1 -1
- package/dist/spw-stencil-library/p-86f8bae3.entry.js +1 -0
- package/dist/spw-stencil-library/{p-4f65655d.entry.js → p-8d4885ff.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-69f36918.entry.js → p-9193e70b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-fdd83154.entry.js → p-93788d96.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-cb4b31a7.entry.js → p-94f78e4c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a94801a1.entry.js → p-962ec86a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-45be9fce.entry.js → p-9987b6a0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-fe5f81cc.entry.js → p-9bb373cf.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e592738a.entry.js → p-9d93af2b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-0f5debdb.entry.js → p-a2f8133e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-53dfe461.entry.js → p-a418baf5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-49e53cd8.entry.js → p-a86fc0a7.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-7996c7c8.entry.js → p-ab100252.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1fca6b4f.entry.js → p-aeb28e9a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-afa2f53d.entry.js → p-b17a13d5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c2d6da7e.entry.js → p-b494a271.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ec7f05ae.entry.js → p-b5ba7206.entry.js} +1 -1
- package/dist/spw-stencil-library/p-b966fc21.entry.js +1 -0
- package/dist/spw-stencil-library/{p-79081772.entry.js → p-b9cf4fcb.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ca25cbef.entry.js → p-d5157e05.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e6f4a095.entry.js → p-d6e88176.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-95f41c17.entry.js → p-d92bd82f.entry.js} +4 -4
- package/dist/spw-stencil-library/{p-fdcc3c5d.entry.js → p-ddd9acdc.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-7233f2b1.entry.js → p-e4f1665f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-51d1b03f.entry.js → p-e7c69e88.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4d45c143.entry.js → p-e849e965.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c06529c8.entry.js → p-ecbdf71f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b868a3da.entry.js → p-f0f0bd9d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d6587b45.entry.js → p-f35c966d.entry.js} +1 -1
- package/dist/spw-stencil-library/p-f38709c1.entry.js +1 -0
- package/dist/spw-stencil-library/{p-723b695b.entry.js → p-f932224f.entry.js} +1 -1
- package/dist/spw-stencil-library/p-fade4100.entry.js +1 -0
- package/dist/spw-stencil-library/{p-915cbfd3.entry.js → p-fbc3d842.entry.js} +1 -1
- package/dist/spw-stencil-library/p-fc9acdf2.entry.js +1 -0
- package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
- package/dist/stats.json +573 -393
- package/dist/types/components/spw-custom-select/spw-custom-select.d.ts +1 -4
- package/dist/types/components/spw-date-picker/spw-date-picker.d.ts +1 -0
- package/dist/types/components/spw-input-slider/spw-input-slider.d.ts +1 -4
- package/dist/types/components/spw-message/spw-message.d.ts +3 -0
- package/dist/types/components/spw-search-field/spw-search-field.d.ts +1 -0
- package/dist/types/components/spw-select/spw-select.d.ts +1 -4
- package/dist/types/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.d.ts +3 -0
- package/dist/types/components/spw-sidenav/spw-sidenav.d.ts +22 -0
- package/dist/types/components/spw-text-field/spw-text-field.d.ts +1 -4
- package/dist/types/components/spw-textarea/spw-textarea.d.ts +1 -4
- package/dist/types/components.d.ts +18 -1
- package/dist/types/stories/organisms/spw-message/spw-message.stories.d.ts +2 -1
- package/dist/types/stories/organisms/spw-sidenav/spw-sidenav.stories.d.ts +4 -0
- package/dist/types/stories/organisms/spw-tile/spw-tile.stories.d.ts +2 -0
- package/hydrate/index.js +431 -230
- package/hydrate/index.mjs +431 -230
- package/package.json +1 -1
- package/dist/components/p-B2P8l7B3.js +0 -1
- package/dist/components/p-B43Zutdz.js +0 -1
- package/dist/components_vscode.json +0 -5455
- package/dist/spw-stencil-library/p-1d319daa.entry.js +0 -1
- package/dist/spw-stencil-library/p-20ed6c87.entry.js +0 -1
- package/dist/spw-stencil-library/p-56511a1a.entry.js +0 -1
- package/dist/spw-stencil-library/p-68787bbe.entry.js +0 -1
- package/dist/spw-stencil-library/p-83e6a17b.entry.js +0 -1
- package/dist/spw-stencil-library/p-8aa81b70.entry.js +0 -1
- package/dist/spw-stencil-library/p-936fc4c0.entry.js +0 -1
- package/dist/spw-stencil-library/p-d321091b.entry.js +0 -1
- package/dist/spw-stencil-library/p-de10edb8.entry.js +0 -1
- package/dist/spw-stencil-library/p-de47fd8e.entry.js +0 -1
- package/dist/spw-stencil-library/p-f420e077.entry.js +0 -1
|
@@ -12,11 +12,20 @@ export class SpwSidenavItem {
|
|
|
12
12
|
this.hasChildren = false;
|
|
13
13
|
this.childrenOpen = false;
|
|
14
14
|
this.hasActiveChild = false;
|
|
15
|
+
this.mobileFocused = false;
|
|
15
16
|
this.handleChevronClick = (e) => {
|
|
16
17
|
e.preventDefault();
|
|
17
18
|
e.stopPropagation();
|
|
18
19
|
if (this.disabled)
|
|
19
20
|
return;
|
|
21
|
+
if (window.matchMedia('(max-width: 767px)').matches) {
|
|
22
|
+
this.el.dispatchEvent(new CustomEvent('spwMobileFocusRequest', {
|
|
23
|
+
detail: { item: this.el },
|
|
24
|
+
bubbles: true,
|
|
25
|
+
composed: true,
|
|
26
|
+
}));
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
20
29
|
this.toggleGroup();
|
|
21
30
|
};
|
|
22
31
|
this.handleLabelClick = (e) => {
|
|
@@ -125,21 +134,26 @@ export class SpwSidenavItem {
|
|
|
125
134
|
this.childrenOpen = false;
|
|
126
135
|
}
|
|
127
136
|
}
|
|
137
|
+
/** Utilisé par spw-sidenav pour focaliser cet item en mobile */
|
|
138
|
+
async setMobileFocus(value) {
|
|
139
|
+
this.mobileFocused = value;
|
|
140
|
+
}
|
|
128
141
|
get isLink() {
|
|
129
142
|
return !!this.href && !this.disabled && !this.openOnClick;
|
|
130
143
|
}
|
|
131
144
|
render() {
|
|
132
145
|
const LabelTag = this.isLink ? 'a' : 'button';
|
|
133
|
-
return (h(Host, { key: '
|
|
146
|
+
return (h(Host, { key: '17607fea24545b9b75737d89a04f23bfd770c470' }, h("div", { key: 'b35c32d3848704761a361422d53d6c7f541c1c98', class: {
|
|
134
147
|
'spw-sidenav-item': true,
|
|
135
148
|
'spw-sidenav-item--active': this.active || this.hasActiveChild,
|
|
136
149
|
'spw-sidenav-item--disabled': this.disabled,
|
|
137
150
|
'spw-sidenav-item--has-children': this.hasChildren,
|
|
138
151
|
'spw-sidenav-item--children-open': this.childrenOpen,
|
|
139
|
-
|
|
152
|
+
'spw-sidenav-item--mobile-focused': this.mobileFocused,
|
|
153
|
+
} }, h("div", { key: 'fb937b1690063919eb303816ddf66ea6fefa5cd1', class: "spw-sidenav-item__row" }, h(LabelTag, { key: '6288f1a598107aa27a7fee5fcec30cf521792933', 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: 'd4e427cb15f5b019a0ad4fe5373ec61faf415949', class: "spw-sidenav-item__icon" }, h("spw-icon", { key: '065d165607922c9d33f5300a72eaaa2c38e75d7e', variant: this.iconVariant, icon: this.icon }))), h("span", { key: 'f89a8915244e9346c0edef997c1277bd10c8c18c', class: "spw-sidenav-item__text" }, h("slot", { key: '97152c49d15ef22ba48b3d0a6d98d02a62f7a7fc' }))), this.hasChildren && (h("button", { key: '5ef0937493a17b9f09741fd15a2ade6d6ce0f0da', type: "button", class: {
|
|
140
154
|
'spw-sidenav-item__chevron': true,
|
|
141
155
|
'spw-sidenav-item__chevron--open': this.childrenOpen,
|
|
142
|
-
}, "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: '42a4b347a3354c51af6f2b7fecd95d262721d2a7', icon: "fa-chevron-down" })))), h("slot", { key: 'e0627c82022966740d540a35854a74ddba926ad6', name: "children" }))));
|
|
143
157
|
}
|
|
144
158
|
static get is() { return "spw-sidenav-item"; }
|
|
145
159
|
static get originalStyleUrls() {
|
|
@@ -278,7 +292,8 @@ export class SpwSidenavItem {
|
|
|
278
292
|
return {
|
|
279
293
|
"hasChildren": {},
|
|
280
294
|
"childrenOpen": {},
|
|
281
|
-
"hasActiveChild": {}
|
|
295
|
+
"hasActiveChild": {},
|
|
296
|
+
"mobileFocused": {}
|
|
282
297
|
};
|
|
283
298
|
}
|
|
284
299
|
static get methods() {
|
|
@@ -316,6 +331,27 @@ export class SpwSidenavItem {
|
|
|
316
331
|
"text": "Ferme les enfants",
|
|
317
332
|
"tags": []
|
|
318
333
|
}
|
|
334
|
+
},
|
|
335
|
+
"setMobileFocus": {
|
|
336
|
+
"complexType": {
|
|
337
|
+
"signature": "(value: boolean) => Promise<void>",
|
|
338
|
+
"parameters": [{
|
|
339
|
+
"name": "value",
|
|
340
|
+
"type": "boolean",
|
|
341
|
+
"docs": ""
|
|
342
|
+
}],
|
|
343
|
+
"references": {
|
|
344
|
+
"Promise": {
|
|
345
|
+
"location": "global",
|
|
346
|
+
"id": "global::Promise"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"return": "Promise<void>"
|
|
350
|
+
},
|
|
351
|
+
"docs": {
|
|
352
|
+
"text": "Utilis\u00E9 par spw-sidenav pour focaliser cet item en mobile",
|
|
353
|
+
"tags": []
|
|
354
|
+
}
|
|
319
355
|
}
|
|
320
356
|
};
|
|
321
357
|
}
|
|
@@ -367,4 +367,37 @@ template {
|
|
|
367
367
|
.spw-sidenav {
|
|
368
368
|
display: flex;
|
|
369
369
|
flex-direction: column;
|
|
370
|
+
}
|
|
371
|
+
.spw-sidenav__back {
|
|
372
|
+
display: inline-flex;
|
|
373
|
+
align-items: center;
|
|
374
|
+
gap: 8px;
|
|
375
|
+
align-self: flex-start;
|
|
376
|
+
padding: 8px 0;
|
|
377
|
+
margin-bottom: 4px;
|
|
378
|
+
border: none;
|
|
379
|
+
background: none;
|
|
380
|
+
cursor: pointer;
|
|
381
|
+
font-size: 14px;
|
|
382
|
+
font-family: inherit;
|
|
383
|
+
color: var(--spw-colors-support-grey-grey-600);
|
|
384
|
+
transition: color 0.15s ease;
|
|
385
|
+
}
|
|
386
|
+
.spw-sidenav__back:hover {
|
|
387
|
+
color: var(--spw-ds-primary);
|
|
388
|
+
}
|
|
389
|
+
.spw-sidenav__back:focus-visible {
|
|
390
|
+
outline: 3px solid black;
|
|
391
|
+
outline-offset: 2px;
|
|
392
|
+
border-radius: 4px;
|
|
393
|
+
}
|
|
394
|
+
.spw-sidenav__back spw-icon {
|
|
395
|
+
font-size: 12px;
|
|
396
|
+
}
|
|
397
|
+
.spw-sidenav__section-title {
|
|
398
|
+
font-size: 18px;
|
|
399
|
+
font-weight: 700;
|
|
400
|
+
color: var(--spw-colors-support-grey-grey-900);
|
|
401
|
+
padding: 8px 0;
|
|
402
|
+
margin-bottom: 4px;
|
|
370
403
|
}
|
|
@@ -1,12 +1,123 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class SpwSidenav {
|
|
3
|
+
constructor() {
|
|
4
|
+
/** Texte du bouton retour affiché en mobile lors de la navigation dans l'arborescence (fallback quand aucun parent n'a de label) */
|
|
5
|
+
this.mobileBackLabel = 'Retour';
|
|
6
|
+
this.focusedItem = null;
|
|
7
|
+
this.isMobile = false;
|
|
8
|
+
this.showRoot = false;
|
|
9
|
+
this.mediaListener = () => this.updateBreakpoint();
|
|
10
|
+
this.handleBack = () => {
|
|
11
|
+
const target = this.getCurrentTarget();
|
|
12
|
+
if (!target)
|
|
13
|
+
return;
|
|
14
|
+
const parent = this.getParentItem(target);
|
|
15
|
+
this.clearFocus();
|
|
16
|
+
if (parent) {
|
|
17
|
+
this.setFocus(parent);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
this.showRoot = true;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
componentDidLoad() {
|
|
25
|
+
this.mediaQuery = window.matchMedia('(max-width: 767px)');
|
|
26
|
+
this.mediaQuery.addEventListener('change', this.mediaListener);
|
|
27
|
+
this.updateBreakpoint();
|
|
28
|
+
}
|
|
29
|
+
disconnectedCallback() {
|
|
30
|
+
var _a;
|
|
31
|
+
(_a = this.mediaQuery) === null || _a === void 0 ? void 0 : _a.removeEventListener('change', this.mediaListener);
|
|
32
|
+
}
|
|
33
|
+
updateBreakpoint() {
|
|
34
|
+
this.isMobile = this.mediaQuery.matches;
|
|
35
|
+
if (!this.isMobile) {
|
|
36
|
+
this.clearFocus();
|
|
37
|
+
this.showRoot = false;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
handleFocusRequest(e) {
|
|
41
|
+
this.showRoot = false;
|
|
42
|
+
this.setFocus(e.detail.item);
|
|
43
|
+
}
|
|
44
|
+
clearFocus() {
|
|
45
|
+
var _a, _b;
|
|
46
|
+
if (this.focusedItem) {
|
|
47
|
+
(_b = (_a = this.focusedItem).setMobileFocus) === null || _b === void 0 ? void 0 : _b.call(_a, false);
|
|
48
|
+
this.focusedItem = null;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
setFocus(item) {
|
|
52
|
+
var _a, _b;
|
|
53
|
+
this.clearFocus();
|
|
54
|
+
(_b = (_a = item).setMobileFocus) === null || _b === void 0 ? void 0 : _b.call(_a, true);
|
|
55
|
+
this.focusedItem = item;
|
|
56
|
+
}
|
|
57
|
+
getParentItem(item) {
|
|
58
|
+
var _a;
|
|
59
|
+
return (_a = item.parentElement) === null || _a === void 0 ? void 0 : _a.closest('spw-sidenav-item');
|
|
60
|
+
}
|
|
61
|
+
getItemLabel(item) {
|
|
62
|
+
var _a, _b;
|
|
63
|
+
const textEl = item.querySelector(':scope > .spw-sidenav-item .spw-sidenav-item__text');
|
|
64
|
+
return (_b = (_a = textEl === null || textEl === void 0 ? void 0 : textEl.textContent) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : '';
|
|
65
|
+
}
|
|
66
|
+
findLeafActive() {
|
|
67
|
+
const items = Array.from(this.el.querySelectorAll('spw-sidenav-item'));
|
|
68
|
+
for (const item of items) {
|
|
69
|
+
const val = item.getAttribute('active');
|
|
70
|
+
if (val === '' || val === 'true')
|
|
71
|
+
return item;
|
|
72
|
+
}
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
getCurrentTarget() {
|
|
76
|
+
if (this.focusedItem)
|
|
77
|
+
return this.focusedItem;
|
|
78
|
+
const leaf = this.findLeafActive();
|
|
79
|
+
if (!leaf)
|
|
80
|
+
return null;
|
|
81
|
+
return this.getParentItem(leaf);
|
|
82
|
+
}
|
|
3
83
|
/** Ferme tous les items ouverts */
|
|
4
84
|
async closeAll() {
|
|
5
85
|
const items = this.el.querySelectorAll('spw-sidenav-item');
|
|
6
86
|
items.forEach(item => { var _a; return (_a = item.close) === null || _a === void 0 ? void 0 : _a.call(item); });
|
|
7
87
|
}
|
|
88
|
+
get backLabel() {
|
|
89
|
+
if (this.showRoot)
|
|
90
|
+
return null;
|
|
91
|
+
const target = this.getCurrentTarget();
|
|
92
|
+
if (!target)
|
|
93
|
+
return null;
|
|
94
|
+
const parent = this.getParentItem(target);
|
|
95
|
+
if (parent)
|
|
96
|
+
return this.getItemLabel(parent) || this.mobileBackLabel;
|
|
97
|
+
return this.mobileBackLabel;
|
|
98
|
+
}
|
|
99
|
+
// Titre de la section courante en mobile — c'est le label du target
|
|
100
|
+
// (l'item dont on affiche les enfants).
|
|
101
|
+
get sectionTitle() {
|
|
102
|
+
if (this.showRoot)
|
|
103
|
+
return null;
|
|
104
|
+
const target = this.getCurrentTarget();
|
|
105
|
+
if (!target)
|
|
106
|
+
return null;
|
|
107
|
+
return this.getItemLabel(target) || null;
|
|
108
|
+
}
|
|
8
109
|
render() {
|
|
9
|
-
|
|
110
|
+
let showBack = false;
|
|
111
|
+
let title = null;
|
|
112
|
+
if (this.isMobile && !this.showRoot) {
|
|
113
|
+
const target = this.getCurrentTarget();
|
|
114
|
+
showBack = !!target;
|
|
115
|
+
title = this.sectionTitle;
|
|
116
|
+
}
|
|
117
|
+
return (h(Host, { key: '5162ae79d8fbc5754bed694e6dc9a49197f1decd', "data-show-root": this.showRoot ? 'true' : null }, h("nav", { key: '15a13f2b45e705d2f451d66c3483d7d4c4b0a9d4', class: {
|
|
118
|
+
'spw-sidenav': true,
|
|
119
|
+
'spw-sidenav--show-root': this.showRoot,
|
|
120
|
+
} }, showBack && (h("button", { key: 'b1e9252722cf292e851a24a91dbfb6063e30d592', class: "spw-sidenav__back", type: "button", onClick: this.handleBack }, h("spw-icon", { key: 'd4539634e276aaf5cedffce58a653a1069fbfbfe', icon: "fa-arrow-left" }), h("span", { key: '90f52019e15f5991aa41aa273595ebaa03ff3fb8' }, this.backLabel))), title && h("div", { key: '3b92611317c70878bd4cf4447351881176b7611e', class: "spw-sidenav__section-title" }, title), h("slot", { key: '2d4291c015bf5c4322689868244d449f0dbdf42a' }))));
|
|
10
121
|
}
|
|
11
122
|
static get is() { return "spw-sidenav"; }
|
|
12
123
|
static get encapsulation() { return "shadow"; }
|
|
@@ -20,6 +131,37 @@ export class SpwSidenav {
|
|
|
20
131
|
"$": ["spw-sidenav.css"]
|
|
21
132
|
};
|
|
22
133
|
}
|
|
134
|
+
static get properties() {
|
|
135
|
+
return {
|
|
136
|
+
"mobileBackLabel": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"mutable": false,
|
|
139
|
+
"complexType": {
|
|
140
|
+
"original": "string",
|
|
141
|
+
"resolved": "string",
|
|
142
|
+
"references": {}
|
|
143
|
+
},
|
|
144
|
+
"required": false,
|
|
145
|
+
"optional": false,
|
|
146
|
+
"docs": {
|
|
147
|
+
"tags": [],
|
|
148
|
+
"text": "Texte du bouton retour affich\u00E9 en mobile lors de la navigation dans l'arborescence (fallback quand aucun parent n'a de label)"
|
|
149
|
+
},
|
|
150
|
+
"getter": false,
|
|
151
|
+
"setter": false,
|
|
152
|
+
"reflect": false,
|
|
153
|
+
"attribute": "mobile-back-label",
|
|
154
|
+
"defaultValue": "'Retour'"
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
static get states() {
|
|
159
|
+
return {
|
|
160
|
+
"focusedItem": {},
|
|
161
|
+
"isMobile": {},
|
|
162
|
+
"showRoot": {}
|
|
163
|
+
};
|
|
164
|
+
}
|
|
23
165
|
static get methods() {
|
|
24
166
|
return {
|
|
25
167
|
"closeAll": {
|
|
@@ -46,4 +188,13 @@ export class SpwSidenav {
|
|
|
46
188
|
};
|
|
47
189
|
}
|
|
48
190
|
static get elementRef() { return "el"; }
|
|
191
|
+
static get listeners() {
|
|
192
|
+
return [{
|
|
193
|
+
"name": "spwMobileFocusRequest",
|
|
194
|
+
"method": "handleFocusRequest",
|
|
195
|
+
"target": undefined,
|
|
196
|
+
"capture": false,
|
|
197
|
+
"passive": false
|
|
198
|
+
}];
|
|
199
|
+
}
|
|
49
200
|
}
|
|
@@ -44,7 +44,7 @@ export class SpwSkeleton {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: '122cd42914b44494633bd055c531072c713e8e91' }, h("div", { key: '2f7e32675363854e4c595059f598154ed1e535a4', class: "spw-skeleton" }, this.renderVariant(), h("slot", { key: '8529d418a3de0d953d519d6cc6308be5c17b9d3f' }))));
|
|
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: 'c7a9c50b508ee6623a2699b6800608e1ada2fd39' }, h("div", { key: '30703082a21bda0f84027b749944b3551e04e78c', class: "spw-slider-item" }, h("slot", { key: 'c60a133e08883f8d413375c343162e0b95b0ff84' }))));
|
|
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: 'ae5082afcb30a7aee9b544558d8a519df2fe47a9' }, h("div", { key: '49378e5933cd866c97239485253607b163a4bae0', class: this.elementClass, style: { height: `${this.currentHeight}px` }, tabindex: "0", role: "region", "aria-label": this.accAriaLabel }, h("div", { key: 'aec193435d2f33d4e68fc60117fdf3ce7db84bfd', class: "spw-slider__track" }, h("slot", { key: '45c4c1de3286e6968066a67dfebfd44820a91ef3' })), this.showArrows && (h("div", { key: 'bcef73784f11d15273724e5001500773a18366f8', class: "spw-slider__navigation" }, h("button", { key: '37f94507bdec42684656fd1352f86b3c5f8df76e', class: "spw-slider__arrow spw-slider__arrow--prev", onClick: this.handlePrevious, disabled: this.activeIndex === 0, "aria-label": this.previousSlideText }, h("spw-icon", { key: 'c31df89017385a179b2bbfccce4c889618c7210e', icon: "fa-chevron-left" })), h("button", { key: '0eb8743d02555ebea7abb194832ab0062e16c2b9', 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: '1873dccaca3fbdfc3dfb8c75b738ce54574e5d0a', icon: "fa-chevron-right" })))), this.dotsPosition === 'inside' && this.renderDots()), this.dotsPosition === 'outside' && (h("div", { key: '471ebb62250e4fbf73d106b78e2604e669ac1279', class: "spw-slider__dots-container" }, this.renderDots())), this.showAutoplayToggle && (h("div", { key: '51e8a4461b6d2234cddbd1c3751b6ffc63f810f7', class: "spw-slider__autoplay-toggle" }, h("spw-checkbox", { key: '1ec3848e90e851fb5e7272c431c28dbe41bfa256', 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: '5863e3f5b584dddbb2e511830309ef0b3a09eef7' }, h("div", { key: '3e56be147344c6a4abe62eb3a6fb0d6f7d3cd7c4', class: "spw-socials" }, h("div", { key: 'd8dcb1313023f6716c3dd551eefe3776afdb3b53', class: "spw-ds-container" }, h("h2", { key: '3407864823f84a277aae4bb7b58462bcf26c0d6f', class: "spw-socials__title" }, this.mainTitle), h("div", { key: '589963b8aea59d72bc0d41ceee67bb90b24e174b', class: "spw-socials__content" }, h("slot", { key: 'bc9969f1672095f66d841716839f1e82fb0df51d' }))))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "spw-socials"; }
|
|
11
11
|
static get originalStyleUrls() {
|
|
@@ -33,7 +33,7 @@ export class SpwTableBody {
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h("tbody", { key: '
|
|
36
|
+
return (h("tbody", { key: 'd7409dde824328c605547e841dcf6184e84cd3c2', part: "tbody" }, h("slot", { key: '079ac932992a705e09c1b6b0475d66d8e75aaf31' })));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "spw-table-body"; }
|
|
39
39
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: '54d4b03148e699696ed46b3487254df0df7a0f33' }, attrs), h("slot", { key: 'ab32cba26290fac5796df0d9d8fb34f057212def' })));
|
|
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: '5edd5889a7ce84f37ff2a98d00a17e4285753e16' }, h("div", { key: '8f098d27881912ccf26e622de578f5e8ca35a199', class: "spw-table-container" }, h("slot", { key: 'd1d754c6a175029aa701a0f3ffb74f99ee2fa58b' }))));
|
|
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: '3274802fb02297ad3766a25a0849bfc52dc46a5c', class: "spw-table-footer" }, h("slot", { key: '7a3ba8f4a8ee2af04dd76f7c7a2dc70d44f2df09', name: "left" }), h("slot", { key: '1cb9ef1b1a7e2a254ebd554a99a46a4bde2b56cc', name: "center" }), h("slot", { key: '6324073526a1541828b573390969b37a8c8cd453', 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: '9ec8ad801e891674cb91fa2115daa6313a7050f1', part: "thead" }, h("slot", { key: 'ef1ff2951d7988c3d77ac804fd6f079f0795067d' })));
|
|
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: 'c96b8e0732bbe18ba3eedfa06bfb4ae3a73de540' }, attrs), h("div", { key: '34ae0d5a2fbd7e93aa305b332fcb58c40f20e716', 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: 'f844a5f239ed5255492dffd6e064dea78d466a78' }), h("div", { key: '711f86026809f0d858b17ac138d0d69cb05584e5', class: "spw-table-header__icons" }, h("slot", { key: 'd6402e00b5c8ba5053af927215682a13e636cea7', name: "filters" }), (this.tooltipTitle || this.tooltipText) && (h("spw-tooltip", { key: '3080be068c69098c9682dc6d1ad34b936c32517d', "tooltip-title": this.tooltipTitle, "tooltip-text": this.tooltipText }, h("spw-icon", { key: 'b73522b0f1ae52b1f55e8ac90aa4f256860e3ca3', variant: "fa-regular", icon: "fa-circle-question" }))), this.sortable && (h("spw-icon", { key: '92f6b44fceffa12cdec3f692283700c710975e2a', 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: 'ef85e30b6faee845cbf6db79117c53e098e99a5a', part: "row" }, h("tr", { key: '0e76eada2017642d143d438c86f29a9e604c8afe', class: this.elementClass, part: "row" }, h("slot", { key: 'b93e4e25e54448fb460719423ba2f4d0e607aea6' }))));
|
|
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: '0e0e7237879e061033c214e6ba44ec20ce0cfaa0', style: style, class: this.hostClass }, h("nav", { key: 'd8bce9a96e6e7dd985879c259b5d16f290d3de7e', class: this.elementClass }, h("span", { key: '4f07b91f8c5d93d9eef7c7c68bba09ddfad4417d', class: "spw-table-sidebar__toggle", onClick: this.toggleSidebar, "aria-expanded": this.expanded.toString() }, h("spw-icon", { key: 'b3a0feebb78062a2d185ea55c2a1ae986bfe665d', icon: "fa-chevron-left" })), h("div", { key: 'd14f2ebd001188ef6edc200ad2817e1ec55a0e4e', class: "spw-table-sidebar__mini", onClick: this.toggleSidebar }, h("spw-icon", { key: '718aa5704a6a7e5bcd85492abe40f31f1ce00842', icon: this.sidebarIcon, variant: "fa-regular" })), h("div", { key: '138a2aabbe55682ae3b411242591a40d1c2fc162', class: "spw-table-sidebar__content" }, h("div", { key: 'c84392125d283e0d330875c4fa1026597336d28d', class: "spw-table-sidebar__header" }, h("span", { key: '820d3b63f481bebbccb6a611b48dc3be3fcb7be0', class: "spw-table-sidebar__header-title" }, h("spw-icon", { key: 'ed32ded914de3d9199909e8d85d4184c7af87923', icon: this.sidebarIcon, variant: "fa-regular" }), " ", this.sidebarTitle), this.hasReset && (h("spw-button", { key: '5b7fa07306c572ded7a28cd5ead4d27245516847', class: "spw-table-sidebar__header-reset", onClick: this.handleReset, type: "button", variant: "secondary", size: "small", isIconOnly: true, icon: this.resetIcon }))), h("div", { key: 'dc6b37b9a1a6921ddb3462cfe055851f1a25e9ae', class: "spw-table-sidebar__scrollable-content" }, h("slot", { key: 'fec62db7642e1a7998feef12917f6f6fa40c81e2' })), h("div", { key: 'f012224dd279b2c5f92227abf0cfb70ba98ac2b0', class: "spw-table-sidebar__footer" }, h("slot", { key: '8ef26eec47a4bbe7739d7bf75c3aa54358b1be32', name: "sidebar-footer" }))))));
|
|
127
127
|
}
|
|
128
128
|
static get is() { return "spw-table-sidebar"; }
|
|
129
129
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: '0adb38f7e049a4193dd9ccf9339c264182e35102', class: containerClass }, this.showLeftArrow && (h("button", { key: '3216c361c65b16d20b1e802f088d6682c430f5f7', 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: '10ad5f02999ae842182a00d577f82e3ea07ef846', icon: "fa-chevron-left" }))), h("nav", { key: '6b9c5b61686efcb08d3bdb7c00948f829bbb8e11', class: navClass, "aria-label": this.accAriaLabel || 'Navigation' }, h("ul", { key: '9b12145c2c1e83ef30f410355d6e63df48b5dce8', class: listClass, role: "tablist", ref: el => (this.ulElement = el), onScroll: this.handleScroll }, h("slot", { key: '5b1b3c24cbb788037f59b43822b9e9d526667c28' }))), this.showRightArrow && (h("button", { key: '61715a66a54fa8d7d9b92ab98b618336ac9fd385', 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: '33c810bf8e4fad017313973f3833cc7fb4dc5d52', icon: "fa-chevron-right" })))));
|
|
106
106
|
}
|
|
107
107
|
static get is() { return "spw-tabs-navigation"; }
|
|
108
108
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.js
CHANGED
|
@@ -63,7 +63,7 @@ export class SpwTabsNavigationItem {
|
|
|
63
63
|
const iconClass = `spw-icon--${iconPosition}`;
|
|
64
64
|
const iconElement = this.icon ? h("spw-icon", { class: iconClass, icon: this.icon }) : null;
|
|
65
65
|
const tagElement = this.tagText ? (h("spw-tag", { size: "small", "has-icon": this.tagIcon ? 'true' : 'false', variant: this.tagVariant }, this.tagText)) : null;
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: '4b62700a4d2e49968423ab063c0c0aeb7c244d48', class: this.active ? '--active' : '' }, h("li", { key: '0f536a2f72074420a65ef5bd8e0557590d784527', id: `tab-${this.tabId}`, role: "tab", "aria-selected": this.active ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.accAriaLabel || this.slotText, onKeyDown: this.handleKeyDown, tabIndex: this.disabled ? -1 : 0, class: this.elementClass, onClick: this.handleClick }, this.hasEllipsis && (h("spw-tooltip", { key: '2cb56424e3de368f48ba4730e380f2d920ccd79a', cursor: this.disabled ? 'disabled' : 'pointer', class: "spw-tooltip--has-ellipsis", tooltipText: this.slotText }, iconPosition === 'left' && iconElement, h("slot", { key: '59b23a03f00ecc47e49e03977c9c39f8aa39fea4' }), iconPosition === 'right' && iconElement, tagElement)), !this.hasEllipsis && (h(Fragment, { key: '6c5905313497084503d4b206c49debccad662868' }, iconPosition === 'left' && iconElement, h("slot", { key: '75ee1db82675348e3710c68ba2f279833db6f954' }), iconPosition === 'right' && iconElement, tagElement)), ' ', this.bubble && h("span", { key: '39cf06bdd61e7f10e7b6c2a06ece9dc778c17f89', class: "bubble" }))));
|
|
67
67
|
}
|
|
68
68
|
static get is() { return "spw-tabs-navigation-item"; }
|
|
69
69
|
static get encapsulation() { return "shadow"; }
|
|
@@ -167,7 +167,7 @@ export class SpwTabs {
|
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
169
|
render() {
|
|
170
|
-
return (h("div", { key: '
|
|
170
|
+
return (h("div", { key: 'b6310eb87661de2bf83768ff6cc7d3fc9d6a9669', class: this.elementClass }, h("slot", { key: '57a152f6a6cb53cacd6ef72b374c3428fdd1a69b', name: "navigation" }), h("slot", { key: 'dab20dbc1ba59308580a499bd562890d06315a60', name: "content" })));
|
|
171
171
|
}
|
|
172
172
|
static get is() { return "spw-tabs"; }
|
|
173
173
|
static get encapsulation() { return "shadow"; }
|
|
@@ -49,7 +49,7 @@ export class SpwTag {
|
|
|
49
49
|
};
|
|
50
50
|
const iconToDisplay = this.icon || this.getIcon(this.variant);
|
|
51
51
|
const iconElement = this.hasIcon ? h("spw-icon", { variant: this.iconVariant, icon: iconToDisplay }) : null;
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: '5bbea711fe7b238e190819b7fc90c4751ca21a13' }, h(TagType, Object.assign({ key: '1122317d82979d80fd995ac4861869f685ec93ce' }, attrs, { class: this.elementClass }), this.iconPosition === 'left' && iconElement, h("slot", { key: '3617ec897e76d86a58e970711b0861329124c36f' }), this.iconPosition === 'right' && iconElement)));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "spw-tag"; }
|
|
55
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -247,25 +247,22 @@ export class SpwTextField {
|
|
|
247
247
|
}
|
|
248
248
|
return result;
|
|
249
249
|
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
if (this.hint)
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
if (this.warning) {
|
|
267
|
-
return (h("spw-field-message", { variant: "warning", showIcon: this.showWarningIcon, isExpandable: this.isExpandable, expandLabel: this.expandLabel, collapseLabel: this.collapseLabel }, this.warning, h("slot", { name: "details", slot: "details" })));
|
|
268
|
-
}
|
|
250
|
+
// isExpandable (details slot) est rendu uniquement sur le dernier message
|
|
251
|
+
// affiché — sinon on aurait un bouton "Plus d'informations" par message.
|
|
252
|
+
renderMessages() {
|
|
253
|
+
const messages = [];
|
|
254
|
+
if (this.error)
|
|
255
|
+
messages.push({ variant: 'error', text: this.error, showIcon: this.showErrorIcon });
|
|
256
|
+
if (this.hint)
|
|
257
|
+
messages.push({ variant: 'hint', text: this.hint, showIcon: this.showHintIcon });
|
|
258
|
+
if (this.success)
|
|
259
|
+
messages.push({ variant: 'success', text: this.success, showIcon: this.showSuccessIcon });
|
|
260
|
+
if (this.warning)
|
|
261
|
+
messages.push({ variant: 'warning', text: this.warning, showIcon: this.showWarningIcon });
|
|
262
|
+
return messages.map((m, i) => {
|
|
263
|
+
const isLast = i === messages.length - 1;
|
|
264
|
+
return (h("spw-field-message", { variant: m.variant, showIcon: m.showIcon, isExpandable: isLast && this.isExpandable, expandLabel: this.expandLabel, collapseLabel: this.collapseLabel }, m.text, isLast && h("slot", { name: "details", slot: "details" })));
|
|
265
|
+
});
|
|
269
266
|
}
|
|
270
267
|
get elementClass() {
|
|
271
268
|
const isNumber = this.type === 'number';
|
|
@@ -282,7 +279,7 @@ export class SpwTextField {
|
|
|
282
279
|
};
|
|
283
280
|
}
|
|
284
281
|
render() {
|
|
285
|
-
return (h("div", { key: '
|
|
282
|
+
return (h("div", { key: 'eac95d9044c5233a1eb4db8f93c85593521160df', class: this.elementClass }, this.label && (h("spw-field-label", { key: '605e3ca1d5e46ef44e36e4386905e8aefd02bb9f', label: this.label, name: this.name, required: this.required, tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, tooltipMaxWidth: this.tooltipMaxWidth, tooltipDirection: this.tooltipDirection, tooltipCursor: this.tooltipCursor })), this.assistiveText && (h("spw-field-message", { key: 'd0226be53d3efb860c7270af3f175e472b853831', class: "spw-text-field__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: 'deb7a861a993fa17ce7414f6f8ff4e45599fcbfa', class: "spw-text-field__container" }, this.type === 'number' && this.hasControls && (h("button", { key: 'a086085956f44ee9f947b09f0fdc741d214941be', type: "button", class: "spw-text-field__number-btn spw-text-field__number-btn--decrement", onClick: () => this.decrement(), disabled: this.disabled || (this.min != null && Number(this.value) <= this.min), "aria-label": this.accAriaLabelDecrement }, h("spw-icon", { key: '25bf35e3b7163e1a026788a78bd61378800c7315', icon: "fa-minus" }))), h("div", { key: 'b44136077e9857835fd6c77f232af93fd94c7755', class: "spw-text-field__input-container" }, h("input", { key: '37310e16d288b6e5557d4d0b0c6003764371527f', class: "spw-text-field__input", ref: el => (this.inputElement = el), type: this.type === 'number' && (this.decimalPrecision != null || this.mask != null) ? 'text' : this.type, inputMode: this.type === 'number' && (this.decimalPrecision != null || this.mask != null) ? 'decimal' : undefined, min: this.type === 'number' && this.decimalPrecision == null && this.mask == null ? this.min : undefined, max: this.type === 'number' && this.decimalPrecision == null && this.mask == null ? this.max : undefined, step: this.type === 'number' && this.decimalPrecision == null && this.mask == null ? this.step : undefined, placeholder: this.placeholder, "aria-label": this.accAriaLabel || this.name, disabled: this.disabled, name: this.name, id: this.name, minLength: this.minLength, maxLength: this.maxLength, required: this.required, onInput: event => this.handleInput(event), onKeyDown: event => this.handleKeyDown(event) }), (this.isSearch || this.isClearIconVisible) && (h("div", { key: 'c79b5880f91b6f0c1e56fe892e4a050608d44882', class: "spw-text-field__icons" }, this.isClearIconVisible && (h("span", { key: '669dc7c54ff811af1d967b078d20feedb0c5bd5a', class: "spw-text-field__clear", onClick: () => this.handleClear() }, h("spw-icon", { key: '16bfdfb005fcae12024c69d4104b1b7ed8416fcd', class: "spw-text-field__icon spw-text-field__icon--clear", icon: "fa-xmark" }))), this.isSearch && !this.hasSubmitButton && h("spw-icon", { key: '68491038bc146623f90aebc29dd1435d9684d7b2', class: "spw-text-field__icon spw-text-field__icon--search", icon: "fa-magnifying-glass" }), this.hasSubmitButton && (h("button", { key: 'cbd2ea1a3df8cceab6e214ef961eddbfa216fa55', type: "button", class: "spw-text-field__submit", onClick: () => this.handleSubmit(), "aria-label": "Rechercher" }, h("spw-icon", { key: '90b903d8a4a620d0b45270a4730facc602e63c94', icon: "fa-magnifying-glass" })))))), this.type === 'number' && this.hasControls && (h("button", { key: '71cc50996b225e21090e510a466bc5a7accdcd61', type: "button", class: "spw-text-field__number-btn spw-text-field__number-btn--increment", onClick: () => this.increment(), disabled: this.disabled || (this.max != null && Number(this.value) >= this.max), "aria-label": this.accAriaLabelIncrement }, h("spw-icon", { key: 'c34cb66bdac07bf3517a9413d077bb46831e303d', icon: "fa-plus" }))), this.indicator && h("div", { key: 'c666a77985ef4b825e50c65db3c4e2fff55ee942', class: "spw-text-field__indicator" }, this.indicator)), this.renderMessages()));
|
|
286
283
|
}
|
|
287
284
|
static get is() { return "spw-text-field"; }
|
|
288
285
|
static get encapsulation() { return "shadow"; }
|