@spw-ds/spw-stencil-library 1.20.0 → 1.21.1
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 +573 -25
- package/dist/cjs/{index-CfCTfMKB.js → index-C_UxJk3Q.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/spw-accordion_4.cjs.entry.js +1 -1
- package/dist/cjs/spw-alert.cjs.entry.js +2 -2
- package/dist/cjs/spw-avatar.cjs.entry.js +1 -1
- package/dist/cjs/spw-block-content.cjs.entry.js +10 -4
- package/dist/cjs/spw-box.cjs.entry.js +1 -1
- package/dist/cjs/spw-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/spw-button_2.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-content.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-excerpt.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-image.cjs.entry.js +2 -2
- 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 +17 -6
- package/dist/cjs/spw-checkbox.cjs.entry.js +47 -3
- package/dist/cjs/spw-cookies.cjs.entry.js +1 -1
- package/dist/cjs/spw-custom-select.cjs.entry.js +1 -1
- package/dist/cjs/spw-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/spw-drawer.cjs.entry.js +1 -1
- package/dist/cjs/spw-dropdown-container.cjs.entry.js +1 -1
- package/dist/cjs/spw-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/spw-field-label_8.cjs.entry.js +26 -14
- package/dist/cjs/spw-file-upload.cjs.entry.js +1 -1
- package/dist/cjs/spw-footer-bottom.cjs.entry.js +1 -1
- package/dist/cjs/spw-footer-content-col.cjs.entry.js +1 -1
- package/dist/cjs/spw-footer-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-footer-link.cjs.entry.js +1 -1
- package/dist/cjs/spw-footer.cjs.entry.js +1 -1
- package/dist/cjs/spw-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-grid.cjs.entry.js +4 -4
- 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 +6 -3
- 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 +1 -1
- package/dist/cjs/spw-hero.cjs.entry.js +1 -1
- package/dist/cjs/spw-illustration.cjs.entry.js +1 -1
- package/dist/cjs/spw-input-slider.cjs.entry.js +1 -1
- package/dist/cjs/spw-lightbox-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-lightbox.cjs.entry.js +1 -1
- package/dist/cjs/spw-list-description.cjs.entry.js +1 -1
- package/dist/cjs/spw-list-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-list-title.cjs.entry.js +2 -2
- package/dist/cjs/spw-list.cjs.entry.js +1 -1
- package/dist/cjs/spw-message.cjs.entry.js +1 -1
- package/dist/cjs/spw-modal.cjs.entry.js +4 -4
- package/dist/cjs/spw-mosaic-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-mosaic.cjs.entry.js +2 -2
- package/dist/cjs/spw-pagination.cjs.entry.js +7 -7
- package/dist/cjs/spw-radio.cjs.entry.js +39 -3
- package/dist/cjs/spw-scrolltop.cjs.entry.js +2 -2
- package/dist/cjs/spw-search-field.cjs.entry.js +1 -1
- package/dist/cjs/spw-select.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidebar-navigation-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/spw-sidebar-navigation-item.cjs.entry.js +4 -4
- package/dist/cjs/spw-sidebar-navigation-separator.cjs.entry.js +2 -2
- package/dist/cjs/spw-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/spw-sidenav-group.cjs.entry.js +3 -3
- package/dist/cjs/spw-sidenav-item.cjs.entry.js +5 -5
- package/dist/cjs/spw-sidenav.cjs.entry.js +10 -12
- package/dist/cjs/spw-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/spw-slider-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-slider.cjs.entry.js +125 -20
- package/dist/cjs/spw-socials.cjs.entry.js +2 -2
- package/dist/cjs/spw-stencil-library.cjs.js +2 -2
- package/dist/cjs/spw-table-body.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-container.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-footer.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-head.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-header.cjs.entry.js +3 -3
- package/dist/cjs/spw-table-row.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/spw-table.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-tabs-navigation.cjs.entry.js +2 -2
- package/dist/cjs/spw-tabs.cjs.entry.js +2 -2
- package/dist/cjs/spw-tag.cjs.entry.js +2 -2
- package/dist/cjs/spw-text-field.cjs.entry.js +2 -2
- package/dist/cjs/spw-textarea.cjs.entry.js +2 -2
- package/dist/cjs/spw-tile-description.cjs.entry.js +3 -3
- package/dist/cjs/spw-tile-title.cjs.entry.js +5 -3
- package/dist/cjs/spw-tile.cjs.entry.js +23 -4
- package/dist/cjs/spw-timeline-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-timeline.cjs.entry.js +3 -3
- package/dist/cjs/spw-toast-controller.cjs.entry.js +1 -1
- package/dist/cjs/spw-toast.cjs.entry.js +1 -1
- package/dist/cjs/spw-toc-container.cjs.entry.js +1 -1
- package/dist/cjs/spw-toc-navigation.cjs.entry.js +1 -1
- package/dist/cjs/spw-toc.cjs.entry.js +2 -2
- package/dist/cjs/spw-topbar.cjs.entry.js +2 -2
- package/dist/cjs/spw-wizard-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-wizard.cjs.entry.js +2 -2
- package/dist/collection/components/spw-alert/spw-alert.css +7 -0
- package/dist/collection/components/spw-block-content/spw-block-content.css +72 -12
- package/dist/collection/components/spw-block-content/spw-block-content.js +33 -8
- package/dist/collection/components/spw-card/spw-card-content/spw-card-content.css +6 -1
- package/dist/collection/components/spw-card/spw-card-image/spw-card-image.css +1 -0
- package/dist/collection/components/spw-card/spw-card.css +27 -2
- package/dist/collection/components/spw-card/spw-card.js +75 -4
- package/dist/collection/components/spw-checkbox/spw-checkbox.css +129 -0
- package/dist/collection/components/spw-checkbox/spw-checkbox.js +87 -3
- package/dist/collection/components/spw-grid/spw-grid.css +5 -0
- package/dist/collection/components/spw-grid/spw-grid.js +4 -4
- package/dist/collection/components/spw-group/spw-group.css +8 -6
- package/dist/collection/components/spw-group/spw-group.js +21 -8
- package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.css +3 -0
- package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.js +24 -1
- package/dist/collection/components/spw-link/spw-link.css +13 -0
- package/dist/collection/components/spw-link/spw-link.js +5 -5
- package/dist/collection/components/spw-list/spw-list-item/spw-list-item.css +11 -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-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.css +128 -0
- package/dist/collection/components/spw-radio/spw-radio.js +79 -3
- package/dist/collection/components/spw-scrolltop/spw-scrolltop.js +1 -1
- 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 +1 -1
- package/dist/collection/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.js +3 -3
- package/dist/collection/components/spw-sidenav/spw-sidenav.js +9 -11
- package/dist/collection/components/spw-skeleton/spw-skeleton.js +1 -1
- package/dist/collection/components/spw-slider/spw-slider-item/spw-slider-item.css +11 -0
- package/dist/collection/components/spw-slider/spw-slider-item/spw-slider-item.js +1 -1
- package/dist/collection/components/spw-slider/spw-slider.css +90 -0
- package/dist/collection/components/spw-slider/spw-slider.js +325 -19
- 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 +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 +6 -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 +31 -0
- package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.js +29 -1
- package/dist/collection/components/spw-tile/spw-tile.css +101 -0
- package/dist/collection/components/spw-tile/spw-tile.js +29 -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.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-block-content/spw-block-content.stories.js +61 -16
- package/dist/collection/stories/components/spw-box/spw-box.stories.js +44 -0
- package/dist/collection/stories/components/spw-checkbox/spw-checkbox.stories.js +187 -0
- package/dist/collection/stories/components/spw-link/spw-link.stories.js +40 -0
- package/dist/collection/stories/components/spw-radio/spw-radio.stories.js +131 -0
- package/dist/collection/stories/organisms/spw-alert/spw-alert.stories.js +9 -0
- package/dist/collection/stories/organisms/spw-header/spw-header.stories.js +46 -0
- package/dist/collection/stories/organisms/spw-list/spw-list.stories.js +31 -0
- package/dist/collection/stories/organisms/spw-slider/spw-slider.stories.js +146 -1
- package/dist/collection/stories/organisms/spw-tile/spw-tile.stories.js +109 -3
- package/dist/components/index.js +1 -1
- package/dist/components/p-B7VfgMNy.js +1 -0
- package/dist/components/{p-EnUTqnRk.js → p-B9J7xbpQ.js} +1 -1
- package/dist/components/{p-rooGoPru.js → p-BK5d5dXN.js} +1 -1
- package/dist/components/{p-ijn7X7l6.js → p-BSQRkvuQ.js} +1 -1
- package/dist/components/p-BhpddpYy.js +1 -0
- package/dist/components/{p-DNh7jzbV.js → p-BqbBUZit.js} +1 -1
- package/dist/components/p-C0Kjwc3C.js +1 -0
- package/dist/components/{p-CZ233jUc.js → p-CP7K0gLt.js} +1 -1
- package/dist/components/{p-_nYzjIHU.js → p-DPbnqynk.js} +1 -1
- package/dist/components/{p-BTTY1Aoh.js → p-ngXzYfRV.js} +1 -1
- package/dist/components/spw-alert.js +1 -1
- package/dist/components/spw-block-content.js +1 -1
- package/dist/components/spw-breadcrumb-item.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-image.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-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-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.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.js +1 -1
- package/dist/components/spw-link.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-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 +4 -4
- 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 +902 -33
- package/dist/components_vscode.json +201 -6
- package/dist/esm/{index-mthi2pFj.js → index-DkYGNpnN.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/spw-accordion_4.entry.js +1 -1
- package/dist/esm/spw-alert.entry.js +2 -2
- package/dist/esm/spw-avatar.entry.js +1 -1
- package/dist/esm/spw-block-content.entry.js +10 -4
- package/dist/esm/spw-box.entry.js +1 -1
- package/dist/esm/spw-breadcrumb-item.entry.js +1 -1
- package/dist/esm/spw-breadcrumb.entry.js +1 -1
- package/dist/esm/spw-button_2.entry.js +2 -2
- package/dist/esm/spw-card-content.entry.js +2 -2
- package/dist/esm/spw-card-excerpt.entry.js +1 -1
- package/dist/esm/spw-card-image.entry.js +2 -2
- 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 +17 -6
- package/dist/esm/spw-checkbox.entry.js +47 -3
- package/dist/esm/spw-cookies.entry.js +1 -1
- package/dist/esm/spw-custom-select.entry.js +1 -1
- package/dist/esm/spw-date-picker.entry.js +1 -1
- package/dist/esm/spw-drawer.entry.js +1 -1
- package/dist/esm/spw-dropdown-container.entry.js +1 -1
- package/dist/esm/spw-dropdown-item.entry.js +1 -1
- package/dist/esm/spw-dropdown.entry.js +1 -1
- package/dist/esm/spw-field-label_8.entry.js +26 -14
- package/dist/esm/spw-file-upload.entry.js +1 -1
- package/dist/esm/spw-footer-bottom.entry.js +1 -1
- package/dist/esm/spw-footer-content-col.entry.js +1 -1
- package/dist/esm/spw-footer-content.entry.js +1 -1
- package/dist/esm/spw-footer-link.entry.js +1 -1
- package/dist/esm/spw-footer.entry.js +1 -1
- package/dist/esm/spw-grid-item.entry.js +1 -1
- package/dist/esm/spw-grid.entry.js +4 -4
- 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 +6 -3
- 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 +1 -1
- package/dist/esm/spw-hero.entry.js +1 -1
- package/dist/esm/spw-illustration.entry.js +1 -1
- package/dist/esm/spw-input-slider.entry.js +1 -1
- package/dist/esm/spw-lightbox-item.entry.js +1 -1
- package/dist/esm/spw-lightbox.entry.js +1 -1
- package/dist/esm/spw-list-description.entry.js +1 -1
- package/dist/esm/spw-list-item.entry.js +3 -3
- package/dist/esm/spw-list-title.entry.js +2 -2
- package/dist/esm/spw-list.entry.js +1 -1
- package/dist/esm/spw-message.entry.js +1 -1
- package/dist/esm/spw-modal.entry.js +4 -4
- package/dist/esm/spw-mosaic-item.entry.js +2 -2
- package/dist/esm/spw-mosaic.entry.js +2 -2
- package/dist/esm/spw-pagination.entry.js +7 -7
- package/dist/esm/spw-radio.entry.js +39 -3
- package/dist/esm/spw-scrolltop.entry.js +2 -2
- package/dist/esm/spw-search-field.entry.js +1 -1
- package/dist/esm/spw-select.entry.js +1 -1
- package/dist/esm/spw-sidebar-navigation-dropdown.entry.js +2 -2
- package/dist/esm/spw-sidebar-navigation-item.entry.js +4 -4
- package/dist/esm/spw-sidebar-navigation-separator.entry.js +2 -2
- package/dist/esm/spw-sidebar.entry.js +2 -2
- package/dist/esm/spw-sidenav-group.entry.js +3 -3
- package/dist/esm/spw-sidenav-item.entry.js +5 -5
- package/dist/esm/spw-sidenav.entry.js +10 -12
- package/dist/esm/spw-skeleton.entry.js +2 -2
- package/dist/esm/spw-slider-item.entry.js +3 -3
- package/dist/esm/spw-slider.entry.js +125 -20
- package/dist/esm/spw-socials.entry.js +2 -2
- package/dist/esm/spw-stencil-library.js +3 -3
- package/dist/esm/spw-table-body.entry.js +2 -2
- package/dist/esm/spw-table-cell.entry.js +2 -2
- package/dist/esm/spw-table-container.entry.js +2 -2
- package/dist/esm/spw-table-footer.entry.js +2 -2
- package/dist/esm/spw-table-head.entry.js +2 -2
- package/dist/esm/spw-table-header.entry.js +3 -3
- package/dist/esm/spw-table-row.entry.js +2 -2
- package/dist/esm/spw-table-sidebar.entry.js +2 -2
- package/dist/esm/spw-table.entry.js +1 -1
- package/dist/esm/spw-tabs-content.entry.js +1 -1
- package/dist/esm/spw-tabs-navigation-item.entry.js +2 -2
- package/dist/esm/spw-tabs-navigation.entry.js +2 -2
- package/dist/esm/spw-tabs.entry.js +2 -2
- package/dist/esm/spw-tag.entry.js +2 -2
- package/dist/esm/spw-text-field.entry.js +2 -2
- package/dist/esm/spw-textarea.entry.js +2 -2
- package/dist/esm/spw-tile-description.entry.js +3 -3
- package/dist/esm/spw-tile-title.entry.js +5 -3
- package/dist/esm/spw-tile.entry.js +23 -4
- package/dist/esm/spw-timeline-item.entry.js +3 -3
- package/dist/esm/spw-timeline.entry.js +3 -3
- package/dist/esm/spw-toast-controller.entry.js +1 -1
- package/dist/esm/spw-toast.entry.js +1 -1
- package/dist/esm/spw-toc-container.entry.js +1 -1
- package/dist/esm/spw-toc-navigation.entry.js +1 -1
- package/dist/esm/spw-toc.entry.js +2 -2
- package/dist/esm/spw-topbar.entry.js +2 -2
- package/dist/esm/spw-wizard-item.entry.js +2 -2
- package/dist/esm/spw-wizard.entry.js +2 -2
- package/dist/spw-stencil-library/assets/images/mockup.png +0 -0
- package/dist/spw-stencil-library/{p-f9e5eaf8.entry.js → p-0225eae6.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-68674b0f.entry.js → p-0552fb3c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b32a76cf.entry.js → p-05ed7f8c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-37894ae0.entry.js → p-07421627.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ea11c40b.entry.js → p-0a8d9ea5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b5716911.entry.js → p-0dbd1777.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c5dbb538.entry.js → p-17d6836c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-105b9fc6.entry.js → p-19d6f92f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-0db31b24.entry.js → p-1e9e9847.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c369f61b.entry.js → p-21022935.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5f4a8aaf.entry.js → p-22b01bfa.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f11412df.entry.js → p-250704ca.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ffa41886.entry.js → p-2779253d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9ac75aa3.entry.js → p-2aeb538a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-cd7eef16.entry.js → p-2bf9275b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-40f40ab3.entry.js → p-30028ea4.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1fe079d1.entry.js → p-30f77b9c.entry.js} +1 -1
- package/dist/spw-stencil-library/p-335b2f57.entry.js +1 -0
- package/dist/spw-stencil-library/{p-15cc6506.entry.js → p-34d01701.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ca38f08f.entry.js → p-36225351.entry.js} +1 -1
- package/dist/spw-stencil-library/p-3b9a184f.entry.js +1 -0
- package/dist/spw-stencil-library/{p-ed4747f2.entry.js → p-3d48b3ef.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d3e4ff9e.entry.js → p-3d616279.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-348f1398.entry.js → p-4444edf0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-61f2278c.entry.js → p-50dc5fb5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-32587b59.entry.js → p-524b1240.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-faf4a80a.entry.js → p-53723414.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-7a927b3d.entry.js → p-53e6a62e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-12052c7f.entry.js → p-542dc71f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-154a2f90.entry.js → p-563225aa.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-514d03e9.entry.js → p-5ca0e318.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d87aaef9.entry.js → p-5e448c5e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9900c3e8.entry.js → p-66695277.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-27769aed.entry.js → p-698fdd22.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-2b9ffd95.entry.js → p-6a837847.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a527d245.entry.js → p-6f84b402.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-899f21ca.entry.js → p-7875efb1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a292c806.entry.js → p-79dd218a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-0dba5faf.entry.js → p-7a71d533.entry.js} +1 -1
- package/dist/spw-stencil-library/p-7b495c09.entry.js +1 -0
- package/dist/spw-stencil-library/{p-9a0ccce8.entry.js → p-7bdca1ab.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f9f9c695.entry.js → p-7c1eff67.entry.js} +1 -1
- package/dist/spw-stencil-library/p-7d205679.entry.js +1 -0
- package/dist/spw-stencil-library/{p-31830ac7.entry.js → p-8300baab.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-fe41767f.entry.js → p-89e3b606.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f29ddbe8.entry.js → p-8ca8cc0a.entry.js} +1 -1
- package/dist/spw-stencil-library/p-8ecbede1.entry.js +1 -0
- package/dist/spw-stencil-library/{p-fc1ccbf0.entry.js → p-90aa1e04.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ca439c3b.entry.js → p-91e66c74.entry.js} +1 -1
- package/dist/spw-stencil-library/p-932c106b.entry.js +1 -0
- package/dist/spw-stencil-library/{p-1f91c68f.entry.js → p-945ae18e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1c021756.entry.js → p-9472747a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-36ef809d.entry.js → p-999c3fbf.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-fc10235a.entry.js → p-9ad91e29.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6db83ee1.entry.js → p-9ce65071.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-8ce39569.entry.js → p-9d0eaa1c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f214f8e4.entry.js → p-9e350e36.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-mthi2pFj.js → p-DkYGNpnN.js} +2 -2
- package/dist/spw-stencil-library/p-a9a5c1d2.entry.js +1 -0
- package/dist/spw-stencil-library/{p-ee625904.entry.js → p-ae43ace2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-cb506a6f.entry.js → p-aef5a5ca.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-cadcb419.entry.js → p-b1f68930.entry.js} +1 -1
- package/dist/spw-stencil-library/p-b2990f3e.entry.js +1 -0
- package/dist/spw-stencil-library/{p-17d35cee.entry.js → p-b2fd6355.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e1b3f417.entry.js → p-b5aab148.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-030f69b3.entry.js → p-b83ba191.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ce583729.entry.js → p-bbf86fbe.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-91f21a93.entry.js → p-bc40d93c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-074c9eb4.entry.js → p-bc6a2c42.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ae8a6054.entry.js → p-c4945a0a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-df0a11b9.entry.js → p-cc1d8a4f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ab310621.entry.js → p-cd1294b1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6c85ba9a.entry.js → p-cdf8b303.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c0fb3674.entry.js → p-d139d77f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a28732e3.entry.js → p-d7d88d71.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-13d1d1a1.entry.js → p-d88b1a1f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-7fb7c421.entry.js → p-d9e96fbe.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-605e3722.entry.js → p-da502510.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4fa02be3.entry.js → p-da915195.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-00eb3fc6.entry.js → p-dcc02bab.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c93bf39b.entry.js → p-ddf93cc8.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-816980dc.entry.js → p-de76b09f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-68883d0b.entry.js → p-df0a919c.entry.js} +1 -1
- package/dist/spw-stencil-library/p-e0cb4c68.entry.js +1 -0
- package/dist/spw-stencil-library/{p-f4046756.entry.js → p-e35e6628.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b73d8a54.entry.js → p-e39126c0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-89e7e9ed.entry.js → p-e937613e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-29e1b7ba.entry.js → p-ea88e604.entry.js} +1 -1
- package/dist/spw-stencil-library/p-ee06a1d2.entry.js +1 -0
- package/dist/spw-stencil-library/{p-13b5e2e9.entry.js → p-f27d6669.entry.js} +1 -1
- package/dist/spw-stencil-library/p-f4e9c5f8.entry.js +1 -0
- package/dist/spw-stencil-library/{p-b45175b2.entry.js → p-f548104b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a0027de0.entry.js → p-f5ef6c0a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b0b2f9ce.entry.js → p-f75c25d4.entry.js} +1 -1
- package/dist/spw-stencil-library/p-f9a0ac9b.entry.js +1 -0
- package/dist/spw-stencil-library/{p-b969ceba.entry.js → p-f9d970fb.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-911379c9.entry.js → p-facbc77c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3e0a3cbd.entry.js → p-fe51cf75.entry.js} +4 -4
- package/dist/spw-stencil-library/spw-stencil-library.css +1 -1
- package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
- package/dist/stats.json +2365 -1042
- package/dist/types/components/spw-block-content/spw-block-content.d.ts +8 -5
- package/dist/types/components/spw-card/spw-card.d.ts +7 -0
- package/dist/types/components/spw-checkbox/spw-checkbox.d.ts +8 -1
- package/dist/types/components/spw-grid/spw-grid.d.ts +1 -1
- package/dist/types/components/spw-group/spw-group.d.ts +4 -1
- package/dist/types/components/spw-header/spw-header-navigation/spw-header-navigation.d.ts +2 -0
- package/dist/types/components/spw-link/spw-link.d.ts +1 -1
- package/dist/types/components/spw-radio/spw-radio.d.ts +8 -1
- package/dist/types/components/spw-sidenav/spw-sidenav.d.ts +1 -0
- package/dist/types/components/spw-slider/spw-slider.d.ts +36 -0
- package/dist/types/components/spw-tile/spw-tile-title/spw-tile-title.d.ts +2 -0
- package/dist/types/components/spw-tile/spw-tile.d.ts +7 -1
- package/dist/types/components.d.ts +245 -31
- package/dist/types/stories/components/spw-block-content/spw-block-content.stories.d.ts +3 -0
- package/dist/types/stories/components/spw-box/spw-box.stories.d.ts +1 -0
- package/dist/types/stories/components/spw-checkbox/spw-checkbox.stories.d.ts +7 -0
- package/dist/types/stories/components/spw-link/spw-link.stories.d.ts +2 -1
- package/dist/types/stories/components/spw-radio/spw-radio.stories.d.ts +4 -0
- package/dist/types/stories/organisms/spw-header/spw-header.stories.d.ts +1 -0
- package/dist/types/stories/organisms/spw-list/spw-list.stories.d.ts +1 -0
- package/dist/types/stories/organisms/spw-slider/spw-slider.stories.d.ts +2 -0
- package/dist/types/stories/organisms/spw-tile/spw-tile.stories.d.ts +3 -0
- package/hydrate/index.js +394 -130
- package/hydrate/index.mjs +394 -130
- package/package.json +1 -1
- package/dist/components/p-DFkINEAb.js +0 -1
- package/dist/components/p-DxQ74GK8.js +0 -1
- package/dist/components/p-qWBjG9IQ.js +0 -1
- package/dist/spw-stencil-library/p-020b4537.entry.js +0 -1
- package/dist/spw-stencil-library/p-1428b28a.entry.js +0 -1
- package/dist/spw-stencil-library/p-16a60b1b.entry.js +0 -1
- package/dist/spw-stencil-library/p-4667f645.entry.js +0 -1
- package/dist/spw-stencil-library/p-4fbeb3f5.entry.js +0 -1
- package/dist/spw-stencil-library/p-54a965f4.entry.js +0 -1
- package/dist/spw-stencil-library/p-7168b693.entry.js +0 -1
- package/dist/spw-stencil-library/p-85660075.entry.js +0 -1
- package/dist/spw-stencil-library/p-ab7d74f0.entry.js +0 -1
- package/dist/spw-stencil-library/p-e6beadc2.entry.js +0 -1
- package/dist/spw-stencil-library/p-ecc49c2e.entry.js +0 -1
- package/dist/spw-stencil-library/p-ed53f129.entry.js +0 -1
|
@@ -434,6 +434,19 @@ template {
|
|
|
434
434
|
color: var(--spw-ds-white);
|
|
435
435
|
opacity: 0.5;
|
|
436
436
|
}
|
|
437
|
+
.spw-link--surface-light {
|
|
438
|
+
color: var(--spw-color-themes-grey-grey-900);
|
|
439
|
+
}
|
|
440
|
+
.spw-link--surface-light:hover {
|
|
441
|
+
color: var(--spw-color-themes-grey-grey-900);
|
|
442
|
+
}
|
|
443
|
+
.spw-link--surface-light:active {
|
|
444
|
+
color: var(--spw-color-themes-grey-grey-900);
|
|
445
|
+
}
|
|
446
|
+
.spw-link--surface-light[aria-disabled=true] {
|
|
447
|
+
color: var(--spw-color-themes-grey-grey-900);
|
|
448
|
+
opacity: 0.5;
|
|
449
|
+
}
|
|
437
450
|
.spw-link--has-icon-right spw-icon {
|
|
438
451
|
margin-left: var(--spw-link-padding);
|
|
439
452
|
margin-right: var(--spw-link-margin);
|
|
@@ -8,7 +8,7 @@ export class SpwLink {
|
|
|
8
8
|
/** Si désactivé, le lien n'est pas cliquable */
|
|
9
9
|
this.disabled = false;
|
|
10
10
|
/** Permet de choisir la surface d'arrière-plan du lien */
|
|
11
|
-
this.surface = '
|
|
11
|
+
this.surface = 'default';
|
|
12
12
|
this.onClick = (ev) => {
|
|
13
13
|
if (this.disabled) {
|
|
14
14
|
ev.preventDefault();
|
|
@@ -34,7 +34,7 @@ export class SpwLink {
|
|
|
34
34
|
};
|
|
35
35
|
const iconClass = `spw-icon--${iconPosition}`;
|
|
36
36
|
const iconElement = icon ? h("spw-icon", { class: iconClass, icon: icon }) : null;
|
|
37
|
-
return (h("a", Object.assign({ key: '
|
|
37
|
+
return (h("a", Object.assign({ key: 'f92ef49479e2afbfed7b98937a5f19d08746015a', href: disabled ? undefined : href, rel: rel, download: download, target: target, class: this.elementClass, onClick: this.onClick }, ariaAttributes), iconPosition === 'left' && iconElement, h("div", { key: '7f08833f185f348e2402ecf362bcdcfe6ec7ef25', class: "spw-link__inner" }, h("slot", { key: '515176325cfc6aa223f7037231d76a90c5d11fda' })), iconPosition === 'right' && iconElement));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "spw-link"; }
|
|
40
40
|
static get encapsulation() { return "shadow"; }
|
|
@@ -209,8 +209,8 @@ export class SpwLink {
|
|
|
209
209
|
"type": "string",
|
|
210
210
|
"mutable": false,
|
|
211
211
|
"complexType": {
|
|
212
|
-
"original": "'light' | 'dark'",
|
|
213
|
-
"resolved": "\"dark\" | \"light\"",
|
|
212
|
+
"original": "'default' | 'light' | 'dark'",
|
|
213
|
+
"resolved": "\"dark\" | \"default\" | \"light\"",
|
|
214
214
|
"references": {}
|
|
215
215
|
},
|
|
216
216
|
"required": false,
|
|
@@ -223,7 +223,7 @@ export class SpwLink {
|
|
|
223
223
|
"setter": false,
|
|
224
224
|
"reflect": false,
|
|
225
225
|
"attribute": "surface",
|
|
226
|
-
"defaultValue": "'
|
|
226
|
+
"defaultValue": "'default'"
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}
|
|
@@ -362,11 +362,12 @@ template {
|
|
|
362
362
|
|
|
363
363
|
:host {
|
|
364
364
|
display: contents;
|
|
365
|
+
color: var(--spw-color-themes-grey-grey-900);
|
|
365
366
|
}
|
|
366
367
|
|
|
367
368
|
.spw-list-item {
|
|
368
369
|
position: relative;
|
|
369
|
-
color:
|
|
370
|
+
color: inherit;
|
|
370
371
|
transition: all 0.3s ease-in-out;
|
|
371
372
|
text-decoration: none;
|
|
372
373
|
}
|
|
@@ -379,6 +380,15 @@ template {
|
|
|
379
380
|
.spw-list-item--icon {
|
|
380
381
|
padding-left: 28px;
|
|
381
382
|
}
|
|
383
|
+
.spw-list-item__icon {
|
|
384
|
+
position: absolute;
|
|
385
|
+
top: 0;
|
|
386
|
+
left: 0;
|
|
387
|
+
display: flex;
|
|
388
|
+
align-items: center;
|
|
389
|
+
height: 1lh;
|
|
390
|
+
color: inherit;
|
|
391
|
+
}
|
|
382
392
|
.spw-list-item__category {
|
|
383
393
|
display: inline-block;
|
|
384
394
|
position: relative;
|
|
@@ -106,7 +106,7 @@ export class SpwListItem {
|
|
|
106
106
|
href,
|
|
107
107
|
target,
|
|
108
108
|
};
|
|
109
|
-
return (h(Host, { key: '385f931f7fd23a8f352c8c32c444a8610afc2b38' }, h("li", { key: '303c1084ffbc19a8e60180a2eac56401432ed93a', role: "listitem", class: this.elementClass }, this.category && (h("span", { key: '
|
|
109
|
+
return (h(Host, { key: '385f931f7fd23a8f352c8c32c444a8610afc2b38' }, h("li", { key: '303c1084ffbc19a8e60180a2eac56401432ed93a', role: "listitem", class: this.elementClass }, this.icon && this.el.hasAttribute('icon') && !this.el.querySelector('spw-list-title') && h("spw-icon", { key: 'cb7848a123ac199fec2437c0fe9f5a5ee3873fad', class: "spw-list-item__icon", icon: this.icon }), this.category && (h("span", { key: '46175b36a80a1cd31e313ce64d8c8f27720cb6d1', class: this.elementCatClass, onClick: () => this.handleClick() }, this.categoryIcon && h("spw-icon", { key: '0c2c9df3d90225df5a02d959351d97c44f7ab849', icon: this.categoryIcon }), " ", this.category)), h(TagType, Object.assign({ key: '73820043fd22800f411857bd938a31204ac7aced' }, attrs), h("slot", { key: '4fb7776f8cde72ee26c4e844621e976ad8a34177' })), h("slot", { key: 'cdd1536696cd5bec6dfd2623d9a411b5a36da837', name: "buttons" }))));
|
|
110
110
|
}
|
|
111
111
|
static get is() { return "spw-list-item"; }
|
|
112
112
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,7 +10,7 @@ export class SpwListTitle {
|
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: 'f3ef765bf957b79183c387598b8454d42908eb36' }, h("div", { key: '3ee64eea38a3cbea6a243c78609abe8f32812dfe', class: this.elementClass }, this.icon && h("spw-icon", { key: '67bd0d6167017006d5db5e543b186db87b840bbe', icon: this.icon }), h("div", { key: 'd1bdb899df43933bf86824adeb0a7af5a08938ba', class: "spw-list-title__content" }, h("div", { key: '2c13acd0bb5a75ec7e706efc0fc0a47265d91e10', class: "spw-list-title__content-text" }, h("slot", { key: 'c6f6907eea19c41887912b950450a95be29e128e' }))))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "spw-list-title"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,7 +19,7 @@ export class SpwLoading {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '76cf34de4fcf09b6fb52453822e34a6e26d6d070' }, h("div", { key: '2ce941734d29fc333e15b1a4fee1bf535a3aed4a', class: this.loadingClasses }, h("div", { key: '6fa9fef281da025e26864903e4867f96e507fe0b', class: "spw-loading__spinner" }), this.text && h("p", { key: '4cee47a4936be359ffbe432d1addcb953ae1c5b4', class: "spw-loading__text" }, this.text))));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "spw-loading"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -172,13 +172,13 @@ export class SpwModal {
|
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
174
|
render() {
|
|
175
|
-
return (h(Host, { key: '
|
|
175
|
+
return (h(Host, { key: 'bd4e9c04cab8653097ef97673d8f49ab140dc5b3' }, h("div", { key: '8b1ba84f62fdd79b612469ce78fd0e906b90c176', ref: el => (this.modalContainer = el), class: this.elementClass }, h("div", { key: 'c6dccc2e6570d0f90d37c4600dedd472d5f1b562', class: "spw-modal__overlay", onClick: () => this.handleOverlayClick() }), h("div", { key: 'f34b4c137ac80b0f38c2098b73b9654776e1a4b8', class: `spw-modal__content-container spw-modal__content-container--${this.size}`, role: "dialog", "aria-modal": "true", "aria-label": this.caption }, h("div", { key: '1659d22b2619a68b3e9d7dad8c7095def8daf19e', class: "spw-modal__content", ref: el => (this.modalContent = el), onScroll: this.handleContentScroll }, h("div", { key: 'e09893f9b8f44d0f68c18fbd8be0e18119d3eee1', class: "spw-modal__header" }, h("div", { key: '8981dbdb894c101e203bc22c2a416e5a48282f86', class: "spw-modal__title-container" }, this.alertIcon && h("spw-icon", { key: 'e5cff7df714f3f869eb1015ea36aab3fefe47156', class: "spw-modal__alert-icon", icon: this.alertIcon }), h("h2", { key: '06268e7c2fce950b1931254a5ed91347f75b6631', class: "spw-modal__caption" }, this.caption)), this.showCloseButton && (h("div", { key: '6cfdb4469167b6935efd7485aec8f2b233feb9d9', class: {
|
|
176
176
|
'spw-modal__close-button': true,
|
|
177
177
|
'spw-modal__close-button--sticky': this.isCloseButtonSticky,
|
|
178
|
-
}, ref: el => (this.closeButton = el), onClick: () => this.doBeforeClose('CLOSE_BUTTON') }, h("spw-link", { key: '
|
|
178
|
+
}, ref: el => (this.closeButton = el), onClick: () => this.doBeforeClose('CLOSE_BUTTON') }, h("spw-link", { key: '6bfe34c67838503f5a71b442df52a559ee44ca47', "icon-position": "right", icon: "fa-xmark" }, this.closeButtonText)))), h("div", { key: '328c29868ebf538b1a6a58c051337f931ef2d29a', class: "spw-modal__body" }, h("slot", { key: '129a87bf3cc1382a5b8f53861dee4f8027486dfd', name: "content" })), h("div", { key: '523facf0e734e25d5db4c13e9bc1b31721ddfe4b', class: { 'spw-modal__buttons': true, 'spw-modal__footer--buttons-present': this.slotButtonsPresent } }, h("slot", { key: '28eacf80be5cbdc6da0de18e6b55b10e368c57a3', name: "buttons", onSlotchange: (e) => {
|
|
179
179
|
const slot = e.target;
|
|
180
180
|
this.slotButtonsPresent = slot.assignedNodes({ flatten: true }).length > 0;
|
|
181
|
-
} })))), h("div", { key: '
|
|
181
|
+
} })))), h("div", { key: 'bd56f5598bcfa3c3995ebdf7dec6a2426cf6e4ed', "data-focus-trap-edge": true, onFocus: this.handleBottomFocus, tabindex: "0" }))));
|
|
182
182
|
}
|
|
183
183
|
static get is() { return "spw-modal"; }
|
|
184
184
|
static get encapsulation() { return "shadow"; }
|
|
@@ -45,7 +45,7 @@ export class SpwMosaicItem {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: 'f70536eb02cd74dc63e6fd57c8514c421eb24e54' }, h("slot", { key: '3ad328b69e8d2080e31af75600e533cc25da19c8' })));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "spw-mosaic-item"; }
|
|
51
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -162,7 +162,7 @@ export class SpwMosaic {
|
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
164
|
render() {
|
|
165
|
-
return (h(Host, { key: '
|
|
165
|
+
return (h(Host, { key: '2f089897601479ee6a6de26c457460a08d0ba884' }, h("div", { key: '32c337b7772c450732445c47dc37331ba7ef697d', class: this.elementClass }, h("slot", { key: '8cc1dc94be28dd59ee942676800e827754d5c0dc' }))));
|
|
166
166
|
}
|
|
167
167
|
static get is() { return "spw-mosaic"; }
|
|
168
168
|
static get encapsulation() { return "shadow"; }
|
|
@@ -167,12 +167,12 @@ export class SpwPagination {
|
|
|
167
167
|
const pages = this.calculatePageRange();
|
|
168
168
|
const showPrevArrow = this.currentPage > 1;
|
|
169
169
|
const showNextArrow = this.currentPage < this.totalPages;
|
|
170
|
-
const prevArrow = showPrevArrow && (h("li", { key: '
|
|
171
|
-
const nextArrow = showNextArrow && (h("li", { key: '
|
|
172
|
-
const prevArrowMobile = this.currentPage > 1 && (h("li", { key: '
|
|
173
|
-
const nextArrowMobile = this.currentPage < this.totalPages && (h("li", { key: '
|
|
174
|
-
const mobileArrows = (h("ul", { key: '
|
|
175
|
-
return (h(Host, { key: '
|
|
170
|
+
const prevArrow = showPrevArrow && (h("li", { key: 'b84213529792e41d6fdc14af67801d8c709f0f69', class: "spw-pagination__item spw-pagination__item--desktop spw-pagination__item--arrow" }, h("button", { key: 'fdda9c8eed1553ad552b40158d03081d9401069b', onClick: () => this.goToPage(this.currentPage - 1) }, h("spw-icon", { key: '1012c813c379d97f91c859cfd950fa30ea346af2', icon: "fa-chevron-left" }), " ", h("span", { key: '05cc676da38ee9f4cbc9cd97a4ed120af552b342', class: "spw-pagination__item-arrow-text" }, this.previousButtonText))));
|
|
171
|
+
const nextArrow = showNextArrow && (h("li", { key: 'cc16631f997ed1eab3d2beefbde88fd49204f195', class: "spw-pagination__item spw-pagination__item--desktop spw-pagination__item--arrow" }, h("button", { key: '5a6a4e13922c00e9d91eeb08c9ad2b317e1825ca', onClick: () => this.goToPage(this.currentPage + 1) }, h("span", { key: '7e8329d128eed2fe03412701f8179295f1b2aebb', class: "spw-pagination__item-arrow-text" }, this.nextButtonText), " ", h("spw-icon", { key: '8cd4037965d980da28c0577d65fee206072a627b', icon: "fa-chevron-right" }))));
|
|
172
|
+
const prevArrowMobile = this.currentPage > 1 && (h("li", { key: 'dc0832c032680e0a1419b1499dff06c63b92dd60', class: "spw-pagination__item spw-pagination__item--arrow" }, h("button", { key: '3e2917ccc49bc161c4a5d8096832a6a0d0c1bd9a', onClick: () => this.goToPage(this.currentPage - 1) }, h("spw-icon", { key: '49245cf34526ac9706b3f731ffc737adc3643a91', icon: "fa-chevron-left" }), " ", h("span", { key: '769a740d3e05213996f76e09ac74a41e4fd0ef69' }, this.previousButtonText))));
|
|
173
|
+
const nextArrowMobile = this.currentPage < this.totalPages && (h("li", { key: '6e236299858eca24a1074831f5c73aa5ca7321d1', class: "spw-pagination__item spw-pagination__item--arrow" }, h("button", { key: 'e577fb3c98e80f45e92a83f2bf20c9fb7798f648', onClick: () => this.goToPage(this.currentPage + 1), disabled: this.currentPage >= this.totalPages }, h("span", { key: 'a9a0ef10e81024d08cf894d38978ae8048ffeb1e' }, this.nextButtonText), " ", h("spw-icon", { key: '3674d79412476f03ce1745a278dc7e3f0b03578e', icon: "fa-chevron-right" }))));
|
|
174
|
+
const mobileArrows = (h("ul", { key: '1920cff0102f87b927ebd315fb374c716a635e9e', class: "spw-pagination__mobile-arrows" }, prevArrowMobile, nextArrowMobile));
|
|
175
|
+
return (h(Host, { key: 'a362b963708afb6a7d1b3d91d6fcffb55edec974' }, h("div", { key: 'e05338ca78a938d525f7a1a6d3e6a98153cd94fa', class: this.getPaginationClass() }, this.variant === 'input' && (h(Fragment, { key: 'ea815e6de3d12793411b05ce5938c733c1b84136' }, h("ul", { key: '8b7d63d5bbec21cabb12f3ccb8cbe3046409abf2' }, prevArrow, h("li", { key: '55367459a8be4819278530cc31d36cc3eb0d1107', class: "spw-pagination__input" }, h("spw-text-field", { key: '26926e63f93958af0d692bfc2962d66983790683', value: this.inputPageValue, type: "text", name: "pagination-input", onInput: event => this.handleInputChange(event), onKeyDown: event => this.handleKeyDown(event), disabled: this.isDisabled })), h("li", { key: '3f84bcc43732a2d39505b038f6762eed0d9ccfae', class: "spw-pagination__total-pages" }, "sur ", this.totalPages, " ", this.totalPages === 1 ? 'page' : 'pages'), nextArrow), mobileArrows)), this.variant === 'numbers' && (h(Fragment, { key: '2961252972f7f08fc437b4ec8fb797a21e2e936a' }, h("ul", { key: 'ad621520e14899fbff346bd421a20a99aefa0396' }, prevArrow, pages.map(({ page, class: pageClass }) => {
|
|
176
176
|
if (page === '...') {
|
|
177
177
|
return (h("li", { class: `spw-pagination__item spw-pagination__item--dots ${pageClass}` }, h("spw-icon", { icon: "fa-ellipsis" })));
|
|
178
178
|
}
|
|
@@ -380,6 +380,38 @@ template {
|
|
|
380
380
|
--spw-ds-radio-tag-radius: 999px;
|
|
381
381
|
/** @prop --spw-ds-radio-tag-padding: Padding du variant tag */
|
|
382
382
|
--spw-ds-radio-tag-padding: 6px 10px;
|
|
383
|
+
/** @prop --spw-ds-radio-tag-checked-box-shadow: Ombre du variant tag coché (ex. option active du segmented control) */
|
|
384
|
+
--spw-ds-radio-tag-checked-box-shadow: none;
|
|
385
|
+
/** @prop --spw-ds-radio-tile-background: Couleur de fond du variant radio-tile */
|
|
386
|
+
--spw-ds-radio-tile-background: var(--spw-ds-white);
|
|
387
|
+
/** @prop --spw-ds-radio-tile-checked-background: Couleur de fond du variant radio-tile coché */
|
|
388
|
+
--spw-ds-radio-tile-checked-background: var(--spw-ds-white);
|
|
389
|
+
/** @prop --spw-ds-radio-tile-border-color: Couleur de bordure du variant radio-tile */
|
|
390
|
+
--spw-ds-radio-tile-border-color: var(--spw-colors-support-grey-grey-300);
|
|
391
|
+
/** @prop --spw-ds-radio-tile-hover-background: Couleur de fond du variant radio-tile au survol */
|
|
392
|
+
--spw-ds-radio-tile-hover-background: white;
|
|
393
|
+
/** @prop --spw-ds-radio-tile-hover-border-color: Couleur de bordure du variant radio-tile au survol */
|
|
394
|
+
--spw-ds-radio-tile-hover-border-color: black;
|
|
395
|
+
/** @prop --spw-ds-radio-tile-checked-border-color: Couleur de bordure du variant radio-tile coché */
|
|
396
|
+
--spw-ds-radio-tile-checked-border-color: black;
|
|
397
|
+
/** @prop --spw-ds-radio-tile-radius: Rayon de bordure du variant radio-tile */
|
|
398
|
+
--spw-ds-radio-tile-radius: 8px;
|
|
399
|
+
/** @prop --spw-ds-radio-tile-padding: Padding du variant radio-tile */
|
|
400
|
+
--spw-ds-radio-tile-padding: 16px;
|
|
401
|
+
/** @prop --spw-ds-radio-tile-gap: Espace entre le bouton radio et le contenu du variant radio-tile */
|
|
402
|
+
--spw-ds-radio-tile-gap: 16px;
|
|
403
|
+
/** @prop --spw-ds-radio-tile-separator-color: Couleur du séparateur vertical du variant radio-tile (bouton à gauche ou à droite) */
|
|
404
|
+
--spw-ds-radio-tile-separator-color: var(--spw-color-themes-grey-grey-300);
|
|
405
|
+
/** @prop --spw-ds-radio-tile-icon-size: Taille d'un spw-icon placé directement dans le variant radio-tile */
|
|
406
|
+
--spw-ds-radio-tile-icon-size: 32px;
|
|
407
|
+
/** @prop --spw-ds-radio-tile-icon-color: Couleur d'un spw-icon placé directement dans le variant radio-tile */
|
|
408
|
+
--spw-ds-radio-tile-icon-color: var(--spw-color-themes-grey-grey-900);
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
:host([variant=radio-tile]) {
|
|
412
|
+
display: flex;
|
|
413
|
+
align-self: stretch;
|
|
414
|
+
height: 100%;
|
|
383
415
|
}
|
|
384
416
|
|
|
385
417
|
.spw-radio {
|
|
@@ -468,6 +500,7 @@ template {
|
|
|
468
500
|
background: var(--spw-ds-radio-tag-checked-background);
|
|
469
501
|
border-color: var(--spw-ds-radio-tag-checked-border-color);
|
|
470
502
|
color: var(--spw-ds-radio-tag-checked-color);
|
|
503
|
+
box-shadow: var(--spw-ds-radio-tag-checked-box-shadow);
|
|
471
504
|
}
|
|
472
505
|
.spw-radio__tag--disabled {
|
|
473
506
|
opacity: 0.5;
|
|
@@ -476,6 +509,101 @@ template {
|
|
|
476
509
|
.spw-radio__tag:not(.spw-radio__tag--disabled) {
|
|
477
510
|
cursor: pointer;
|
|
478
511
|
}
|
|
512
|
+
.spw-radio--tile {
|
|
513
|
+
display: flex;
|
|
514
|
+
align-items: stretch;
|
|
515
|
+
width: 100%;
|
|
516
|
+
height: 100%;
|
|
517
|
+
}
|
|
518
|
+
.spw-radio__tile {
|
|
519
|
+
display: flex;
|
|
520
|
+
flex: 1;
|
|
521
|
+
gap: var(--spw-ds-radio-tile-gap);
|
|
522
|
+
padding: var(--spw-ds-radio-tile-padding);
|
|
523
|
+
border: 1px solid var(--spw-ds-radio-tile-border-color);
|
|
524
|
+
border-radius: var(--spw-ds-radio-tile-radius);
|
|
525
|
+
background: var(--spw-ds-radio-tile-background);
|
|
526
|
+
color: var(--spw-color-themes-grey-grey-900);
|
|
527
|
+
user-select: none;
|
|
528
|
+
transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
|
|
529
|
+
}
|
|
530
|
+
.spw-radio__tile--check-left, .spw-radio__tile--check-right {
|
|
531
|
+
flex-direction: row;
|
|
532
|
+
align-items: stretch;
|
|
533
|
+
}
|
|
534
|
+
.spw-radio__tile--check-left .spw-radio__wrapper--tile, .spw-radio__tile--check-right .spw-radio__wrapper--tile {
|
|
535
|
+
align-self: center;
|
|
536
|
+
}
|
|
537
|
+
.spw-radio__tile--check-right {
|
|
538
|
+
flex-direction: row-reverse;
|
|
539
|
+
}
|
|
540
|
+
.spw-radio__tile--check-top, .spw-radio__tile--check-bottom {
|
|
541
|
+
flex-direction: column;
|
|
542
|
+
align-items: flex-start;
|
|
543
|
+
}
|
|
544
|
+
.spw-radio__tile--check-align-center .spw-radio__wrapper--tile {
|
|
545
|
+
align-self: center;
|
|
546
|
+
}
|
|
547
|
+
.spw-radio__tile--check-align-right .spw-radio__wrapper--tile {
|
|
548
|
+
align-self: flex-end;
|
|
549
|
+
}
|
|
550
|
+
.spw-radio__tile:not(.spw-radio__tile--disabled) {
|
|
551
|
+
cursor: pointer;
|
|
552
|
+
}
|
|
553
|
+
.spw-radio__tile:not(.spw-radio__tile--disabled):hover {
|
|
554
|
+
background: var(--spw-ds-radio-tile-hover-background);
|
|
555
|
+
border-color: var(--spw-ds-radio-tile-hover-border-color);
|
|
556
|
+
outline: 4px solid var(--spw-color-themes-grey-grey-300);
|
|
557
|
+
}
|
|
558
|
+
.spw-radio__tile:not(.spw-radio__tile--disabled):focus-visible, .spw-radio__tile:not(.spw-radio__tile--disabled):active {
|
|
559
|
+
outline: 2px solid white;
|
|
560
|
+
outline-offset: 0;
|
|
561
|
+
box-shadow: 0 0 0 4px black;
|
|
562
|
+
}
|
|
563
|
+
.spw-radio__tile--checked {
|
|
564
|
+
background: var(--spw-ds-radio-tile-checked-background);
|
|
565
|
+
border-color: var(--spw-ds-radio-tile-checked-border-color);
|
|
566
|
+
box-shadow: inset 0 0 0 1px var(--spw-ds-radio-tile-checked-border-color);
|
|
567
|
+
}
|
|
568
|
+
.spw-radio__tile--checked:not(.spw-radio__tile--disabled):hover {
|
|
569
|
+
border-color: var(--spw-ds-radio-tile-checked-border-color);
|
|
570
|
+
}
|
|
571
|
+
.spw-radio__tile--checked:not(.spw-radio__tile--disabled):focus-visible, .spw-radio__tile--checked:not(.spw-radio__tile--disabled):active {
|
|
572
|
+
box-shadow: inset 0 0 0 1px var(--spw-ds-radio-tile-checked-border-color), 0 0 0 4px black;
|
|
573
|
+
}
|
|
574
|
+
.spw-radio__tile--error {
|
|
575
|
+
border-color: var(--spw-color-states-error-error-300);
|
|
576
|
+
}
|
|
577
|
+
.spw-radio__tile--disabled {
|
|
578
|
+
opacity: 0.5;
|
|
579
|
+
cursor: not-allowed;
|
|
580
|
+
}
|
|
581
|
+
.spw-radio__wrapper--tile {
|
|
582
|
+
pointer-events: none;
|
|
583
|
+
}
|
|
584
|
+
.spw-radio__tile-separator {
|
|
585
|
+
flex: none;
|
|
586
|
+
width: 1px;
|
|
587
|
+
align-self: stretch;
|
|
588
|
+
background: var(--spw-ds-radio-tile-separator-color);
|
|
589
|
+
}
|
|
590
|
+
.spw-radio__tile-content {
|
|
591
|
+
flex: 1;
|
|
592
|
+
min-width: 0;
|
|
593
|
+
line-height: 1.5;
|
|
594
|
+
}
|
|
595
|
+
.spw-radio__tile--check-top .spw-radio__tile-content, .spw-radio__tile--check-bottom .spw-radio__tile-content {
|
|
596
|
+
align-self: stretch;
|
|
597
|
+
}
|
|
598
|
+
.spw-radio__tile--content-center .spw-radio__tile-content {
|
|
599
|
+
text-align: center;
|
|
600
|
+
}
|
|
601
|
+
.spw-radio__tile-content ::slotted(spw-icon) {
|
|
602
|
+
display: block;
|
|
603
|
+
margin-bottom: 8px;
|
|
604
|
+
font-size: var(--spw-ds-radio-tile-icon-size);
|
|
605
|
+
color: var(--spw-ds-radio-tile-icon-color);
|
|
606
|
+
}
|
|
479
607
|
.spw-radio__label {
|
|
480
608
|
color: var(--spw-color-themes-grey-grey-900);
|
|
481
609
|
word-wrap: break-word;
|
|
@@ -9,6 +9,10 @@ export class SpwRadio {
|
|
|
9
9
|
this.error = false;
|
|
10
10
|
/** Type de variant pour le bouton radio */
|
|
11
11
|
this.variant = 'default';
|
|
12
|
+
/** Position du bouton radio par rapport au contenu (uniquement pour le variant radio-tile). En bottom-*, le bouton est placé après le contenu. */
|
|
13
|
+
this.checkPosition = 'left';
|
|
14
|
+
/** Alignement horizontal du contenu (uniquement pour le variant radio-tile) */
|
|
15
|
+
this.contentAlignment = 'left';
|
|
12
16
|
}
|
|
13
17
|
handleRadio(event) {
|
|
14
18
|
if (this.disabled) {
|
|
@@ -60,7 +64,20 @@ export class SpwRadio {
|
|
|
60
64
|
this.internals.setFormValue(null);
|
|
61
65
|
}
|
|
62
66
|
}
|
|
67
|
+
/** Vrai si l'événement provient d'un élément interactif placé dans le contenu (ex. lien d'un spw-field-message dans une tuile) */
|
|
68
|
+
isFromNestedInteractive(event) {
|
|
69
|
+
const container = event.currentTarget;
|
|
70
|
+
for (const node of event.composedPath()) {
|
|
71
|
+
if (node === container)
|
|
72
|
+
return false;
|
|
73
|
+
if (node instanceof HTMLElement && node.matches(SpwRadio.NESTED_INTERACTIVE_SELECTOR))
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
63
78
|
handleKeydown(event) {
|
|
79
|
+
if (this.isFromNestedInteractive(event))
|
|
80
|
+
return;
|
|
64
81
|
if (event.key === ' ' || event.key === 'Enter') {
|
|
65
82
|
this.handleRadio();
|
|
66
83
|
event.preventDefault();
|
|
@@ -96,7 +113,11 @@ export class SpwRadio {
|
|
|
96
113
|
get a11yAttrs() {
|
|
97
114
|
return {
|
|
98
115
|
tabIndex: this.disabled ? -1 : 0,
|
|
99
|
-
onClick: (e) =>
|
|
116
|
+
onClick: (e) => {
|
|
117
|
+
if (this.isFromNestedInteractive(e))
|
|
118
|
+
return;
|
|
119
|
+
this.handleRadio(e);
|
|
120
|
+
},
|
|
100
121
|
onKeyDown: this.handleKeydown.bind(this),
|
|
101
122
|
role: 'radio',
|
|
102
123
|
'aria-checked': this.internalChecked ? 'true' : 'false',
|
|
@@ -115,6 +136,20 @@ export class SpwRadio {
|
|
|
115
136
|
'spw-radio__tag--error': this.error,
|
|
116
137
|
} }), h("slot", null))));
|
|
117
138
|
}
|
|
139
|
+
if (this.variant === 'radio-tile') {
|
|
140
|
+
const [side, align] = this.checkPosition.split('-');
|
|
141
|
+
const isVertical = side === 'top' || side === 'bottom';
|
|
142
|
+
const check = (h("div", { "aria-hidden": "true", class: Object.assign(Object.assign({}, this.elementClass), { 'spw-radio__wrapper--tile': true }) }, this.internalChecked && h("span", { class: "spw-radio__circle" })));
|
|
143
|
+
return (h("div", { class: "spw-radio spw-radio--tile" }, this.renderHiddenInput(), h("div", Object.assign({}, this.a11yAttrs, { class: {
|
|
144
|
+
'spw-radio__tile': true,
|
|
145
|
+
[`spw-radio__tile--check-${side}`]: true,
|
|
146
|
+
[`spw-radio__tile--check-align-${align}`]: isVertical,
|
|
147
|
+
[`spw-radio__tile--content-${this.contentAlignment}`]: true,
|
|
148
|
+
'spw-radio__tile--checked': this.internalChecked,
|
|
149
|
+
'spw-radio__tile--disabled': this.disabled,
|
|
150
|
+
'spw-radio__tile--error': this.error,
|
|
151
|
+
} }), side !== 'bottom' && check, !isVertical && h("div", { class: "spw-radio__tile-separator", "aria-hidden": "true" }), h("div", { class: "spw-radio__tile-content" }, h("slot", null)), side === 'bottom' && check)));
|
|
152
|
+
}
|
|
118
153
|
return (h("div", { class: "spw-radio" }, this.renderHiddenInput(), hasSlot && (h("label", { class: `spw-radio__label ${this.disabled ? 'spw-radio__label--disabled' : ''}`, onClick: e => this.handleRadio(e) }, h("slot", null))), h("div", Object.assign({}, this.a11yAttrs, { class: this.elementClass }), this.internalChecked && h("span", { class: "spw-radio__circle" }))));
|
|
119
154
|
}
|
|
120
155
|
static get is() { return "spw-radio"; }
|
|
@@ -253,8 +288,8 @@ export class SpwRadio {
|
|
|
253
288
|
"type": "string",
|
|
254
289
|
"mutable": false,
|
|
255
290
|
"complexType": {
|
|
256
|
-
"original": "'default' | 'tag'",
|
|
257
|
-
"resolved": "\"default\" | \"tag\"",
|
|
291
|
+
"original": "'default' | 'tag' | 'radio-tile'",
|
|
292
|
+
"resolved": "\"default\" | \"radio-tile\" | \"tag\"",
|
|
258
293
|
"references": {}
|
|
259
294
|
},
|
|
260
295
|
"required": false,
|
|
@@ -268,6 +303,46 @@ export class SpwRadio {
|
|
|
268
303
|
"reflect": false,
|
|
269
304
|
"attribute": "variant",
|
|
270
305
|
"defaultValue": "'default'"
|
|
306
|
+
},
|
|
307
|
+
"checkPosition": {
|
|
308
|
+
"type": "string",
|
|
309
|
+
"mutable": false,
|
|
310
|
+
"complexType": {
|
|
311
|
+
"original": "'left' | 'right' | 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right'",
|
|
312
|
+
"resolved": "\"bottom-center\" | \"bottom-left\" | \"bottom-right\" | \"left\" | \"right\" | \"top-center\" | \"top-left\" | \"top-right\"",
|
|
313
|
+
"references": {}
|
|
314
|
+
},
|
|
315
|
+
"required": false,
|
|
316
|
+
"optional": true,
|
|
317
|
+
"docs": {
|
|
318
|
+
"tags": [],
|
|
319
|
+
"text": "Position du bouton radio par rapport au contenu (uniquement pour le variant radio-tile). En bottom-*, le bouton est plac\u00E9 apr\u00E8s le contenu."
|
|
320
|
+
},
|
|
321
|
+
"getter": false,
|
|
322
|
+
"setter": false,
|
|
323
|
+
"reflect": false,
|
|
324
|
+
"attribute": "check-position",
|
|
325
|
+
"defaultValue": "'left'"
|
|
326
|
+
},
|
|
327
|
+
"contentAlignment": {
|
|
328
|
+
"type": "string",
|
|
329
|
+
"mutable": false,
|
|
330
|
+
"complexType": {
|
|
331
|
+
"original": "'left' | 'center'",
|
|
332
|
+
"resolved": "\"center\" | \"left\"",
|
|
333
|
+
"references": {}
|
|
334
|
+
},
|
|
335
|
+
"required": false,
|
|
336
|
+
"optional": true,
|
|
337
|
+
"docs": {
|
|
338
|
+
"tags": [],
|
|
339
|
+
"text": "Alignement horizontal du contenu (uniquement pour le variant radio-tile)"
|
|
340
|
+
},
|
|
341
|
+
"getter": false,
|
|
342
|
+
"setter": false,
|
|
343
|
+
"reflect": false,
|
|
344
|
+
"attribute": "content-alignment",
|
|
345
|
+
"defaultValue": "'left'"
|
|
271
346
|
}
|
|
272
347
|
};
|
|
273
348
|
}
|
|
@@ -328,3 +403,4 @@ export class SpwRadio {
|
|
|
328
403
|
}
|
|
329
404
|
static get attachInternalsMemberName() { return "internals"; }
|
|
330
405
|
}
|
|
406
|
+
SpwRadio.NESTED_INTERACTIVE_SELECTOR = 'a, button, input, select, textarea, [role="button"], spw-link, spw-button';
|
|
@@ -73,7 +73,7 @@ export class SpwScrolltop {
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: '7545b5f77381195ec9a65ddfb444aa066917f315', class: this.hostClass }, h("spw-button", { key: '849a961c0da6739cce0d9a09de80effc5106028b', "is-icon-only": true, icon: "fa-chevron-up", variant: "primary", size: "medium", "acc-aria-label": this.accAriaLabel, onClick: this.scrollToTop })));
|
|
77
77
|
}
|
|
78
78
|
static get is() { return "spw-scrolltop"; }
|
|
79
79
|
static get encapsulation() { return "shadow"; }
|
|
@@ -27,7 +27,7 @@ export class SpwSeparator {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return h("div", { key: '
|
|
30
|
+
return h("div", { key: '46518f3d82e397d143a201972175f3a3539004d7', 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: '4ec075f890c710286a9bbbdc2d87ae8d09067b91', class: this.classes }, h("div", { key: '8ea009a1edcb95fce03dd546ade80baf18646bfe', class: "spw-sidebar-navigation-dropdown__content", style: { display: this.open ? 'block' : 'none' } }, h("slot", { key: 'bda254a05f9514af3570782cf709c6386634b176' }))));
|
|
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: '70bf185d5e732e2f1a9ad09d227ad3fb3b1704b5', variant: this.iconVariant, icon: this.icon });
|
|
173
|
+
const iconDiv = (h("div", { key: 'caddbcd585f9972950ce21450c2574e6746591fb', class: "spw-sidebar-navigation-item__icon" }, this.bubble && h("span", { key: 'd20d3cc70a292556e2b37917f7f7c115c4232cce', 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: 'e299e0f75fd128e35c4b9f7e6a9b9975584ae7b6', 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: '5798226371446ba550e687db4e055abbfeb6dfbe', class: "spw-sidebar-navigation-item__content" }, h("div", { key: 'cc1b247c528b47ee680eb9be948529db1342e7ec', class: "spw-sidebar-navigation-item__content-label" }, h("slot", { key: 'da0e66a78f00df28b4027ad9ed86af96ddddcd8d' })), this.hasDropdown && (h("div", { key: 'd04789bd56992d7926b41423da2cfe11dd7a5011', class: toggleClasses, onClick: this.handleDropdownToggle, tabIndex: this.disabled ? -1 : 0 }, h("spw-icon", { key: '278285b0abe42bd492a28246b4fbcf055ac03b44', icon: "fa-chevron-down" }))), h("slot", { key: '395255d9e3f708b47da9fa003a14b828a002f35f', 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: 'b34b70d4c837f54731205734c0b1ece68f566f49' }, h("spw-separator", { key: 'd86611d5c3f265a355646602795c6061d89931ac', 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: '09ecf3b079c411a185aa04cc7e081b2ff988f143', class: this.hostClass }, h("div", { key: 'e63220eb06d2a89c4506f6fd7ad319018e2c05eb', class: this.elementClass }, h("span", { key: 'd8e5818417ade57dc8dc267f4366475e2bf6cd81', class: "spw-sidebar__toggle", onClick: this.toggleSidebar, "aria-expanded": this.expanded.toString() }, h("spw-icon", { key: '245d7aa4d22b41f1932843aa3d028632c333961c', icon: "fa-chevron-right" })), h("div", { key: '5a27272312d05faa12cab5e4c0aee41878578061', class: "spw-sidebar__content" }, h("slot", { key: '6ae9b2c4948da499655021bfecd3dcd9292a7f2f', name: "navigation-top" }), h("slot", { key: 'a16f578052156b547ffaae2888f044459eeaa2bf', name: "navigation-bottom" })), h("div", { key: 'fb877654b1cc2f3fd88a897aa31e6a2ad7eb75e4', 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: 'b1358f2237ce4e6b841a9b250ff905abb31ba4dc', class: {
|
|
9
9
|
'spw-sidenav-group': true,
|
|
10
10
|
'spw-sidenav-group--open': this.open,
|
|
11
|
-
} }, h("div", { key: '
|
|
11
|
+
} }, h("div", { key: '898e1afdbe68b4e1302c808fc0c61e2207290625', class: "spw-sidenav-group__content", style: { display: this.open ? 'block' : 'none' } }, h("slot", { key: 'e8b61350cc55c9ac935c05d134223de015b490e8' }))));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "spw-sidenav-group"; }
|
|
14
14
|
static get originalStyleUrls() {
|
|
@@ -483,7 +483,7 @@ spw-sidenav-group .spw-sidenav-item__label {
|
|
|
483
483
|
spw-sidenav:not([data-show-root=true]):not(:has(.spw-sidenav-item--mobile-focused)) spw-sidenav-item:has(> .spw-sidenav-item--active):has(spw-sidenav-item > .spw-sidenav-item--active) > .spw-sidenav-item > .spw-sidenav-item__row {
|
|
484
484
|
display: none;
|
|
485
485
|
}
|
|
486
|
-
spw-sidenav:not([data-show-root=true]):not(:has(.spw-sidenav-item--mobile-focused)):has(.spw-sidenav-item--active) > spw-sidenav-item:not(:has(> .spw-sidenav-item--active)) {
|
|
486
|
+
spw-sidenav:not([data-show-root=true]):not(:has(.spw-sidenav-item--mobile-focused)):has(spw-sidenav-item spw-sidenav-item > .spw-sidenav-item--active) > spw-sidenav-item:not(:has(> .spw-sidenav-item--active)) {
|
|
487
487
|
display: none;
|
|
488
488
|
}
|
|
489
489
|
spw-sidenav:not([data-show-root=true]):not(:has(.spw-sidenav-item--mobile-focused)) spw-sidenav-group:has(> spw-sidenav-item > .spw-sidenav-item--active):has(> spw-sidenav-item spw-sidenav-item > .spw-sidenav-item--active) > spw-sidenav-item:not(:has(> .spw-sidenav-item--active)),
|
|
@@ -146,17 +146,17 @@ export class SpwSidenavItem {
|
|
|
146
146
|
}
|
|
147
147
|
render() {
|
|
148
148
|
const LabelTag = this.isLink ? 'a' : 'button';
|
|
149
|
-
return (h(Host, { key: '
|
|
149
|
+
return (h(Host, { key: 'd2dcc41f59b5e9e4966dfa46a78bc4736917e6e6' }, h("div", { key: 'fe891295d5419ab809461d89186db0bcf0ea813f', class: {
|
|
150
150
|
'spw-sidenav-item': true,
|
|
151
151
|
'spw-sidenav-item--active': this.active || this.hasActiveChild,
|
|
152
152
|
'spw-sidenav-item--disabled': this.disabled,
|
|
153
153
|
'spw-sidenav-item--has-children': this.hasChildren,
|
|
154
154
|
'spw-sidenav-item--children-open': this.childrenOpen,
|
|
155
155
|
'spw-sidenav-item--mobile-focused': this.mobileFocused,
|
|
156
|
-
} }, h("div", { key: '
|
|
156
|
+
} }, h("div", { key: 'a0d2a263c31e0a77e186f5b1496a7ddbb6b17d20', class: "spw-sidenav-item__row" }, h(LabelTag, { key: 'e5cf99a24e7bac268ac2516f01ef311b67d9b7d1', class: "spw-sidenav-item__label", href: this.isLink ? this.href : undefined, target: this.isLink ? this.target : undefined, rel: this.isLink ? this.rel : undefined, download: this.isLink ? this.download : 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, "aria-label": this.accAriaLabel, onClick: this.handleLabelClick }, this.icon && (h("span", { key: '5513e5b3056351ed077ab4bfb2a9bb723ff1170b', class: "spw-sidenav-item__icon" }, h("spw-icon", { key: 'fed63d147bec44eef6de8ca8451ea25ee7927ce3', variant: this.iconVariant, icon: this.icon }))), h("span", { key: '567729044d817cbe3c4590239454e30513f615a2', class: "spw-sidenav-item__text" }, h("slot", { key: 'c699b39b0e6a6b238f42634db7571d27b9459c62' }))), this.hasChildren && (h("button", { key: '083fee1ce17e6e409c02898bd97ee9e5d983cd76', type: "button", class: {
|
|
157
157
|
'spw-sidenav-item__chevron': true,
|
|
158
158
|
'spw-sidenav-item__chevron--open': this.childrenOpen,
|
|
159
|
-
}, "aria-label": this.childrenOpen ? 'Réduire' : 'Développer', disabled: this.disabled, onClick: this.handleChevronClick }, h("spw-icon", { key: '
|
|
159
|
+
}, "aria-label": this.childrenOpen ? 'Réduire' : 'Développer', disabled: this.disabled, onClick: this.handleChevronClick }, h("spw-icon", { key: '08ea5e5dd138f55fb40f06c9de0a166cc5b2b296', icon: "fa-chevron-down" })))), h("slot", { key: '0eaf52dcd296deeb2d4d75677aa9ef36f360ff6c', name: "children" }))));
|
|
160
160
|
}
|
|
161
161
|
static get is() { return "spw-sidenav-item"; }
|
|
162
162
|
static get originalStyleUrls() {
|