@spw-ds/spw-stencil-library 1.7.0 → 1.8.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/cjs/index-CGg8f9_X.js +12 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/spw-accordion_4.cjs.entry.js +4 -4
- package/dist/cjs/spw-avatar.cjs.entry.js +41 -0
- package/dist/cjs/spw-block-content.cjs.entry.js +37 -0
- package/dist/cjs/spw-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/spw-button_2.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-excerpt.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-image.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-subtag-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-subtags.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-title.cjs.entry.js +1 -1
- package/dist/cjs/spw-card.cjs.entry.js +1 -1
- package/dist/cjs/spw-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/spw-custom-select.cjs.entry.js +25 -7
- package/dist/cjs/spw-date-picker.cjs.entry.js +37 -4
- 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 +5 -1
- package/dist/cjs/spw-field-label_7.cjs.entry.js +7 -7
- package/dist/cjs/spw-field-message.cjs.entry.js +1 -1
- package/dist/cjs/spw-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/spw-footer-bottom.cjs.entry.js +2 -2
- package/dist/cjs/spw-footer-content-col.cjs.entry.js +2 -2
- package/dist/cjs/spw-footer-content.cjs.entry.js +2 -2
- 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 +21 -2
- package/dist/cjs/spw-header-navigation-item.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/spw-hero.cjs.entry.js +6 -2
- package/dist/cjs/spw-input-slider.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 +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 +14 -3
- package/dist/cjs/spw-modal.cjs.entry.js +1 -1
- package/dist/cjs/spw-mosaic-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-mosaic.cjs.entry.js +1 -1
- package/dist/cjs/spw-pagination.cjs.entry.js +6 -6
- package/dist/cjs/spw-radio.cjs.entry.js +1 -1
- package/dist/cjs/spw-scrolltop.cjs.entry.js +88 -0
- package/dist/cjs/spw-search-field.cjs.entry.js +2 -2
- package/dist/cjs/spw-select.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/spw-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/spw-slider-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-slider.cjs.entry.js +15 -2
- 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-table.cjs.entry.js +2 -2
- package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-navigation.cjs.entry.js +9 -5
- package/dist/cjs/spw-tabs.cjs.entry.js +1 -1
- package/dist/cjs/spw-tag.cjs.entry.js +2 -2
- package/dist/cjs/spw-text-field.cjs.entry.js +8 -5
- package/dist/cjs/spw-textarea.cjs.entry.js +1 -1
- 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-container.cjs.entry.js +1 -1
- 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/collection-manifest.json +3 -0
- package/dist/collection/components/spw-accordion/spw-accordion-content/spw-accordion-content.js +1 -1
- package/dist/collection/components/spw-accordion/spw-accordion-item/spw-accordion-item.js +1 -1
- package/dist/collection/components/spw-accordion/spw-accordion-title/spw-accordion-title.js +1 -1
- package/dist/collection/components/spw-accordion/spw-accordion.js +1 -1
- package/dist/collection/components/spw-avatar/spw-avatar.css +468 -0
- package/dist/collection/components/spw-avatar/spw-avatar.js +164 -0
- package/dist/collection/components/spw-block-content/spw-block-content.css +492 -0
- package/dist/collection/components/spw-block-content/spw-block-content.js +141 -0
- package/dist/collection/components/spw-breadcrumb/spw-breadcrumb-item/spw-breadcrumb-item.js +1 -1
- package/dist/collection/components/spw-breadcrumb/spw-breadcrumb.css +7 -7
- package/dist/collection/components/spw-breadcrumb/spw-breadcrumb.js +1 -1
- package/dist/collection/components/spw-button/spw-button.js +1 -1
- package/dist/collection/components/spw-card/spw-card-content/spw-card-content.js +1 -1
- package/dist/collection/components/spw-card/spw-card-excerpt/spw-card-excerpt.js +1 -1
- package/dist/collection/components/spw-card/spw-card-image/spw-card-image.js +1 -1
- package/dist/collection/components/spw-card/spw-card-subtag-item/spw-card-subtag-item.js +1 -1
- package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.js +1 -1
- package/dist/collection/components/spw-card/spw-card-title/spw-card-title.js +1 -1
- package/dist/collection/components/spw-card/spw-card.js +1 -1
- package/dist/collection/components/spw-checkbox/spw-checkbox.js +1 -1
- package/dist/collection/components/spw-custom-select/spw-custom-select.css +49 -8
- package/dist/collection/components/spw-custom-select/spw-custom-select.js +64 -6
- package/dist/collection/components/spw-date-picker/spw-date-picker.css +1 -1
- package/dist/collection/components/spw-date-picker/spw-date-picker.js +42 -7
- 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 +36 -1
- package/dist/collection/components/spw-field-label/spw-field-label.js +1 -1
- package/dist/collection/components/spw-field-message/spw-field-message.js +1 -1
- package/dist/collection/components/spw-file-upload/spw-file-upload.js +2 -2
- package/dist/collection/components/spw-footer/spw-footer-bottom/spw-footer-bottom.css +3 -3
- 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.css +6 -6
- 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.css +3 -3
- package/dist/collection/components/spw-footer/spw-footer-content-col/spw-footer-content-col.js +1 -1
- package/dist/collection/components/spw-footer/spw-footer-link/spw-footer-link.js +1 -1
- package/dist/collection/components/spw-footer/spw-footer.js +1 -1
- package/dist/collection/components/spw-grid/spw-grid-item/spw-grid-item.js +2 -2
- package/dist/collection/components/spw-grid/spw-grid.js +2 -2
- package/dist/collection/components/spw-group/spw-group.js +1 -1
- package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.js +1 -1
- package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.js +1 -1
- package/dist/collection/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.css +1 -1
- package/dist/collection/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.js +22 -2
- package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.css +17 -17
- package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.js +1 -1
- package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.js +1 -1
- package/dist/collection/components/spw-header/spw-header-persona-item/spw-header-persona-item.js +1 -1
- package/dist/collection/components/spw-header/spw-header.js +1 -1
- package/dist/collection/components/spw-hero/spw-hero.js +45 -2
- package/dist/collection/components/spw-icon/spw-icon.js +1 -1
- package/dist/collection/components/spw-input-slider/spw-input-slider.js +1 -1
- package/dist/collection/components/spw-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 +29 -2
- package/dist/collection/components/spw-message/spw-message.js +33 -2
- package/dist/collection/components/spw-message/utils.js +2 -1
- package/dist/collection/components/spw-modal/spw-modal.js +1 -1
- package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.js +1 -1
- package/dist/collection/components/spw-mosaic/spw-mosaic.js +1 -1
- package/dist/collection/components/spw-pagination/spw-pagination.js +6 -6
- package/dist/collection/components/spw-radio/spw-radio.js +1 -1
- package/dist/collection/components/spw-scrolltop/spw-scrolltop.css +401 -0
- package/dist/collection/components/spw-scrolltop/spw-scrolltop.js +180 -0
- package/dist/collection/components/spw-search-field/spw-search-field.js +2 -2
- package/dist/collection/components/spw-select/spw-select.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.css +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar.js +1 -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 +15 -2
- 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-table/spw-table.js +2 -2
- package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.css +5 -0
- package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.js +30 -5
- 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.css +1 -1
- package/dist/collection/components/spw-tag/spw-tag.js +1 -1
- package/dist/collection/components/spw-text-field/spw-text-field.css +2 -2
- package/dist/collection/components/spw-text-field/spw-text-field.js +27 -4
- 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.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-container/spw-toc-container.js +1 -1
- 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 +156 -0
- package/dist/collection/stories/components/spw-scrolltop/spw-scrolltop.stories.js +123 -0
- package/dist/collection/stories/organisms/spw-block-content/spw-block-content.stories.js +192 -0
- package/dist/collection/stories/organisms/spw-message/spw-message.stories.js +56 -0
- package/dist/collection/stories/organisms/spw-tabs/spw-tabs.stories.js +63 -0
- package/dist/components/{p-B35CPhPA.js → p-7oLmQmmE.js} +1 -1
- package/dist/components/{p-Dho6BaN9.js → p-B1SCChor.js} +1 -1
- package/dist/components/{p-D7UzluXV.js → p-BqvDpR82.js} +1 -1
- package/dist/components/{p-Xvp0cPQF.js → p-C2um7CKN.js} +1 -1
- package/dist/components/{p-B4MjZRXh.js → p-C45GoR7l.js} +1 -1
- package/dist/components/{p-DUP3RzKn.js → p-CCYCLemd.js} +1 -1
- package/dist/components/{p-DU5JMjD4.js → p-CEq9lOD1.js} +1 -1
- package/dist/components/{p-CHBnJ4fw.js → p-CYC9FMY4.js} +1 -1
- package/dist/components/{p-BjsZMdr8.js → p-Cy-dX0dz.js} +1 -1
- package/dist/components/{p-Ctu7oZKH.js → p-D63saAXj.js} +1 -1
- package/dist/components/{p-OryNj86N.js → p-DVDmp5m3.js} +1 -1
- package/dist/components/{p-D6eYkgFG.js → p-DccxymX8.js} +1 -1
- package/dist/components/p-Df0o7KPW.js +1 -0
- package/dist/components/{p-DyYwiqCq.js → p-hlgutkqg.js} +1 -1
- package/dist/components/{p-Ce2AHwGh.js → p-xo2kVNYT.js} +1 -1
- package/dist/components/spw-accordion-content.js +1 -1
- package/dist/components/spw-accordion-item.js +1 -1
- package/dist/components/spw-accordion-title.js +1 -1
- package/dist/components/spw-accordion.js +1 -1
- package/dist/components/spw-avatar.d.ts +11 -0
- package/dist/components/spw-avatar.js +1 -0
- package/dist/components/spw-block-content.d.ts +11 -0
- package/dist/components/spw-block-content.js +1 -0
- package/dist/components/spw-breadcrumb-item.js +1 -1
- package/dist/components/spw-breadcrumb.js +1 -1
- package/dist/components/spw-button.js +1 -1
- package/dist/components/spw-card-content.js +1 -1
- package/dist/components/spw-card-excerpt.js +1 -1
- package/dist/components/spw-card-image.js +1 -1
- package/dist/components/spw-card-subtag-item.js +1 -1
- package/dist/components/spw-card-subtags.js +1 -1
- package/dist/components/spw-card-title.js +1 -1
- package/dist/components/spw-card.js +1 -1
- package/dist/components/spw-checkbox.js +1 -1
- package/dist/components/spw-cookies.js +1 -1
- package/dist/components/spw-custom-select.js +1 -1
- package/dist/components/spw-date-picker.js +1 -1
- package/dist/components/spw-dropdown-container.js +1 -1
- package/dist/components/spw-dropdown-item.js +1 -1
- package/dist/components/spw-dropdown.js +1 -1
- package/dist/components/spw-field-label.js +1 -1
- package/dist/components/spw-field-message.js +1 -1
- package/dist/components/spw-file-upload.js +1 -1
- package/dist/components/spw-footer-bottom.js +1 -1
- package/dist/components/spw-footer-content-col.js +1 -1
- package/dist/components/spw-footer-content.js +1 -1
- package/dist/components/spw-footer-link.js +1 -1
- package/dist/components/spw-footer.js +1 -1
- package/dist/components/spw-grid-item.js +1 -1
- package/dist/components/spw-grid.js +1 -1
- package/dist/components/spw-group.js +1 -1
- package/dist/components/spw-header-lang.js +1 -1
- package/dist/components/spw-header-navigation-dropdown.js +1 -1
- package/dist/components/spw-header-navigation-item.js +1 -1
- package/dist/components/spw-header-navigation.js +1 -1
- package/dist/components/spw-header-persona-item.js +1 -1
- package/dist/components/spw-header-persona.js +1 -1
- package/dist/components/spw-header.js +1 -1
- package/dist/components/spw-hero.js +1 -1
- package/dist/components/spw-icon.js +1 -1
- package/dist/components/spw-input-slider.js +1 -1
- package/dist/components/spw-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 +4 -4
- package/dist/components/spw-pagination.js +1 -1
- package/dist/components/spw-radio.js +1 -1
- package/dist/components/spw-scrolltop.d.ts +11 -0
- package/dist/components/spw-scrolltop.js +1 -0
- 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-skeleton.js +1 -1
- package/dist/components/spw-slider-item.js +1 -1
- package/dist/components/spw-slider.js +1 -1
- package/dist/components/spw-socials.js +1 -1
- package/dist/components/spw-table-body.js +1 -1
- package/dist/components/spw-table-cell.js +1 -1
- package/dist/components/spw-table-container.js +1 -1
- package/dist/components/spw-table-footer.js +1 -1
- package/dist/components/spw-table-head.js +1 -1
- package/dist/components/spw-table-header.js +1 -1
- package/dist/components/spw-table-row.js +1 -1
- package/dist/components/spw-table-sidebar.js +1 -1
- package/dist/components/spw-table.js +1 -1
- package/dist/components/spw-tabs-navigation-item.js +1 -1
- package/dist/components/spw-tabs-navigation.js +1 -1
- package/dist/components/spw-tabs.js +1 -1
- package/dist/components/spw-tag.js +1 -1
- package/dist/components/spw-text-field.js +1 -1
- package/dist/components/spw-textarea.js +1 -1
- package/dist/components/spw-theme-provider.js +1 -1
- package/dist/components/spw-tile-description.js +1 -1
- package/dist/components/spw-tile-title.js +1 -1
- package/dist/components/spw-tile.js +1 -1
- package/dist/components/spw-timeline-item.js +1 -1
- package/dist/components/spw-timeline.js +1 -1
- package/dist/components/spw-toc-container.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 +751 -19
- package/dist/esm/index-DNZ0HWFd.js +12 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/spw-accordion_4.entry.js +4 -4
- package/dist/esm/spw-avatar.entry.js +39 -0
- package/dist/esm/spw-block-content.entry.js +35 -0
- package/dist/esm/spw-breadcrumb-item.entry.js +1 -1
- package/dist/esm/spw-breadcrumb.entry.js +2 -2
- package/dist/esm/spw-button_2.entry.js +2 -2
- package/dist/esm/spw-card-content.entry.js +1 -1
- package/dist/esm/spw-card-excerpt.entry.js +1 -1
- package/dist/esm/spw-card-image.entry.js +1 -1
- package/dist/esm/spw-card-subtag-item.entry.js +1 -1
- package/dist/esm/spw-card-subtags.entry.js +1 -1
- package/dist/esm/spw-card-title.entry.js +1 -1
- package/dist/esm/spw-card.entry.js +1 -1
- package/dist/esm/spw-checkbox.entry.js +1 -1
- package/dist/esm/spw-custom-select.entry.js +25 -7
- package/dist/esm/spw-date-picker.entry.js +37 -4
- 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 +6 -2
- package/dist/esm/spw-field-label_7.entry.js +7 -7
- package/dist/esm/spw-field-message.entry.js +1 -1
- package/dist/esm/spw-file-upload.entry.js +2 -2
- package/dist/esm/spw-footer-bottom.entry.js +2 -2
- package/dist/esm/spw-footer-content-col.entry.js +2 -2
- package/dist/esm/spw-footer-content.entry.js +2 -2
- 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 +21 -2
- package/dist/esm/spw-header-navigation-item.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/spw-hero.entry.js +6 -2
- package/dist/esm/spw-input-slider.entry.js +1 -1
- 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 +14 -3
- package/dist/esm/spw-modal.entry.js +1 -1
- package/dist/esm/spw-mosaic-item.entry.js +1 -1
- package/dist/esm/spw-mosaic.entry.js +1 -1
- package/dist/esm/spw-pagination.entry.js +6 -6
- package/dist/esm/spw-radio.entry.js +1 -1
- package/dist/esm/spw-scrolltop.entry.js +86 -0
- package/dist/esm/spw-search-field.entry.js +2 -2
- package/dist/esm/spw-select.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/spw-skeleton.entry.js +1 -1
- package/dist/esm/spw-slider-item.entry.js +1 -1
- package/dist/esm/spw-slider.entry.js +15 -2
- 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-table.entry.js +2 -2
- package/dist/esm/spw-tabs-navigation-item.entry.js +1 -1
- package/dist/esm/spw-tabs-navigation.entry.js +9 -5
- package/dist/esm/spw-tabs.entry.js +1 -1
- package/dist/esm/spw-tag.entry.js +2 -2
- package/dist/esm/spw-text-field.entry.js +8 -5
- package/dist/esm/spw-textarea.entry.js +1 -1
- 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-container.entry.js +1 -1
- 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-145dfedc.entry.js → p-00829e69.entry.js} +1 -1
- package/dist/spw-stencil-library/p-08d179af.entry.js +1 -0
- package/dist/spw-stencil-library/{p-a3926a91.entry.js → p-0fe88118.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-237b0e5d.entry.js → p-14a660ac.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-8a1a24b5.entry.js → p-14d14ae2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-45e60a7a.entry.js → p-1a43879a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-41a373fc.entry.js → p-1ae9d66b.entry.js} +1 -1
- package/dist/spw-stencil-library/p-1c059cfd.entry.js +1 -0
- package/dist/spw-stencil-library/{p-9a43513e.entry.js → p-1ca7aecb.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-08c93dce.entry.js → p-1fad50b0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f54465cb.entry.js → p-22b043dd.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-af3e6cb1.entry.js → p-29cc06e9.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b9b0b419.entry.js → p-31fc0d76.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4afb6e38.entry.js → p-327fa3e5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f91ee5f4.entry.js → p-36e62f2f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-35d26ee3.entry.js → p-375f88d3.entry.js} +1 -1
- package/dist/spw-stencil-library/p-37ef1e77.entry.js +1 -0
- package/dist/spw-stencil-library/{p-0fd968e6.entry.js → p-3ba55fa6.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3fd7e236.entry.js → p-3dc88b13.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-acf9c014.entry.js → p-3df6280e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-69a55f2d.entry.js → p-456c24b0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-43cf9b0f.entry.js → p-4618e516.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-69a776aa.entry.js → p-461dbb77.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e9d97ee2.entry.js → p-4764e6e0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f1fe388c.entry.js → p-4aa8f4bf.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-7a58d649.entry.js → p-4d8d46e6.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ec0beb1d.entry.js → p-5e79839f.entry.js} +1 -1
- package/dist/spw-stencil-library/p-620519ea.entry.js +1 -0
- package/dist/spw-stencil-library/{p-72ce7302.entry.js → p-6510e984.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ce29d4c7.entry.js → p-69e1e8e1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f8ea7419.entry.js → p-6b113e71.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4f8facb1.entry.js → p-724eee10.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5119feac.entry.js → p-73b2e94c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-209bbd33.entry.js → p-74014ca0.entry.js} +1 -1
- package/dist/spw-stencil-library/p-772f56c1.entry.js +1 -0
- package/dist/spw-stencil-library/{p-7be76eb7.entry.js → p-77e3a560.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3d27b754.entry.js → p-7ee48374.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b4d31c51.entry.js → p-87efcf90.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-0c03d6ae.entry.js → p-8956e7de.entry.js} +1 -1
- package/dist/spw-stencil-library/p-89cefdcf.entry.js +1 -0
- package/dist/spw-stencil-library/{p-f5c6952a.entry.js → p-8a95adc5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b162f257.entry.js → p-8ea775f1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-91c801d2.entry.js → p-8fea1c7b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-cb7cd2ea.entry.js → p-9156e2cc.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3c36b7e8.entry.js → p-9c35e7cb.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e8919632.entry.js → p-9c97f183.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5a32e95e.entry.js → p-a16a6ee3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ab2b0b73.entry.js → p-a457bd16.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5feeb463.entry.js → p-a62e75d7.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f2a7d244.entry.js → p-a74b8c56.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-eb873278.entry.js → p-aaa5636b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-2d9b278f.entry.js → p-ab9bd917.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-81978a6f.entry.js → p-ac73da88.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-43f249c5.entry.js → p-ae198f34.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1a34cb29.entry.js → p-b0028796.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-02403cb6.entry.js → p-b0582aa7.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-64611da7.entry.js → p-b1c1be45.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a447d67b.entry.js → p-bb4a0f1c.entry.js} +1 -1
- package/dist/spw-stencil-library/p-be0c6609.entry.js +1 -0
- package/dist/spw-stencil-library/p-bf656c7e.entry.js +1 -0
- package/dist/spw-stencil-library/{p-dfd101ac.entry.js → p-bf8f52ef.entry.js} +1 -1
- package/dist/spw-stencil-library/p-c1209aa5.entry.js +1 -0
- package/dist/spw-stencil-library/{p-1ee82890.entry.js → p-c7dcf793.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-18cd905c.entry.js → p-cc679461.entry.js} +1 -1
- package/dist/spw-stencil-library/p-d5825b95.entry.js +1 -0
- package/dist/spw-stencil-library/{p-e8c8f285.entry.js → p-d5d2f9f8.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-21952d13.entry.js → p-d7b03752.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-bc22d1b9.entry.js → p-d94bc511.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e3d6c9c1.entry.js → p-dc886ffd.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-7c0aad07.entry.js → p-dd4bd13d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-72e6a077.entry.js → p-dfa82fb0.entry.js} +1 -1
- package/dist/spw-stencil-library/p-e4ef4e0a.entry.js +1 -0
- package/dist/spw-stencil-library/{p-4f54c3cd.entry.js → p-e572bd8b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4988c023.entry.js → p-e83f4dd9.entry.js} +1 -1
- package/dist/spw-stencil-library/p-ecfd8d0a.entry.js +1 -0
- package/dist/spw-stencil-library/{p-c627a4fc.entry.js → p-ed4c861f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4c6ccf99.entry.js → p-edb98ec3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-edcd4cde.entry.js → p-ef0e431d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-44a867dd.entry.js → p-f36ac36b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-47b7bcd0.entry.js → p-f4c9fe35.entry.js} +1 -1
- package/dist/spw-stencil-library/p-f5f93df5.entry.js +1 -0
- package/dist/spw-stencil-library/{p-5602de22.entry.js → p-f958aabf.entry.js} +1 -1
- package/dist/spw-stencil-library/p-fa39b517.entry.js +1 -0
- package/dist/spw-stencil-library/{p-cdfb5724.entry.js → p-fba1aea3.entry.js} +1 -1
- package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
- package/dist/stats.json +2392 -575
- package/dist/types/components/spw-avatar/spw-avatar.d.ts +18 -0
- package/dist/types/components/spw-block-content/spw-block-content.d.ts +16 -0
- package/dist/types/components/spw-custom-select/spw-custom-select.d.ts +5 -0
- package/dist/types/components/spw-date-picker/spw-date-picker.d.ts +4 -2
- package/dist/types/components/spw-dropdown/spw-dropdown.d.ts +5 -0
- package/dist/types/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.d.ts +2 -0
- package/dist/types/components/spw-hero/spw-hero.d.ts +4 -0
- package/dist/types/components/spw-message/spw-message.d.ts +5 -0
- package/dist/types/components/spw-scrolltop/spw-scrolltop.d.ts +22 -0
- package/dist/types/components/spw-slider/spw-slider.d.ts +1 -0
- package/dist/types/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.d.ts +3 -0
- package/dist/types/components/spw-text-field/spw-text-field.d.ts +2 -0
- package/dist/types/components.d.ts +300 -4
- package/dist/types/stories/components/spw-avatar/spw-avatar.stories.d.ts +9 -0
- package/dist/types/stories/components/spw-scrolltop/spw-scrolltop.stories.d.ts +6 -0
- package/dist/types/stories/organisms/spw-block-content/spw-block-content.stories.d.ts +8 -0
- package/dist/types/stories/organisms/spw-message/spw-message.stories.d.ts +2 -0
- package/dist/types/stories/organisms/spw-tabs/spw-tabs.stories.d.ts +1 -0
- package/hydrate/index.js +455 -139
- package/hydrate/index.mjs +455 -139
- package/package.json +1 -1
- package/dist/components/p-CictYFdo.js +0 -1
- package/dist/spw-stencil-library/p-0498fe6a.entry.js +0 -1
- package/dist/spw-stencil-library/p-18b34dde.entry.js +0 -1
- package/dist/spw-stencil-library/p-1d54bbe5.entry.js +0 -1
- package/dist/spw-stencil-library/p-8d71666a.entry.js +0 -1
- package/dist/spw-stencil-library/p-a2d18047.entry.js +0 -1
- package/dist/spw-stencil-library/p-bb1a5089.entry.js +0 -1
- package/dist/spw-stencil-library/p-c2a97189.entry.js +0 -1
- package/dist/spw-stencil-library/p-c4e2378d.entry.js +0 -1
- package/dist/spw-stencil-library/p-e0b746ed.entry.js +0 -1
- package/dist/spw-stencil-library/p-e739c5c9.entry.js +0 -1
- package/dist/spw-stencil-library/p-fe446522.entry.js +0 -1
|
@@ -159,7 +159,7 @@ export class SpwModal {
|
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
161
|
render() {
|
|
162
|
-
return (h(Host, { key: '
|
|
162
|
+
return (h(Host, { key: '2c6c12d99f2c2c4000c586ebc4a1b20b1eb9c885' }, h("div", { key: 'f468b9ac24e2546c79a841e42c4c0cc47f9691c5', ref: el => (this.modalContainer = el), class: this.elementClass }, h("div", { key: '1b29e7abe144ada0f898792ca39f9b9804ebfb09', class: "spw-modal__overlay", onClick: () => this.handleOverlayClick() }), h("div", { key: 'b23d411215ab12bb449777813b490c3233663d79', "data-focus-trap-edge": true, onFocus: this.handleTopFocus, tabindex: "0" }), h("div", { key: '6b7a15bcfe06b7eb38dbaa0822353f725e0f4e06', class: `spw-modal__content-container spw-modal__content-container--${this.size}`, role: "dialog", "aria-modal": "true", "aria-label": this.caption }, h("div", { key: '2b4f9350f98a92f6572f97614d4e1c29b5802d5d', class: "spw-modal__content" }, h("div", { key: 'ac35e915f853c9113bb945e02af8247820894d27', class: "spw-modal__header" }, h("h2", { key: '5e9aa7baab910b7c36b5d4f0d339886f0813381b', class: "spw-modal__caption" }, this.caption), this.showCloseButton && (h("spw-icon", { key: '2e1881f6543a7612aa553d0d2c0bac8d1d03f29e', class: "spw-modal__close-button", ref: el => (this.closeButton = el), icon: "fa-xmark", onClick: () => this.doBeforeClose('CLOSE_BUTTON') }))), h("div", { key: '999c28f50a9ca637501c38c490db529c11ec70e3', class: "spw-modal__body" }, h("slot", { key: '6224c4348234805a523b57500731dbf35d377b17', name: "content" })), h("div", { key: 'cdb74f052deb2bc3d4465f77490991518147bbe4', class: "spw-modal__buttons" }, h("slot", { key: 'dbf9d8019adae61dbf173ac6657986f1e27e6e03', name: "buttons" })))), h("div", { key: 'e8c49c8989e4fcd308a4a4ec4143997a23a8053b', "data-focus-trap-edge": true, onFocus: this.handleBottomFocus, tabindex: "0" }))));
|
|
163
163
|
}
|
|
164
164
|
static get is() { return "spw-modal"; }
|
|
165
165
|
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: '1401539d9e4eac13410e48f9bf980defeedc4946' }, h("slot", { key: 'c2b4727ec4e2e6576fa4e8b7e871e1302960c551' })));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "spw-mosaic-item"; }
|
|
51
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -134,7 +134,7 @@ export class SpwMosaic {
|
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
|
-
return (h(Host, { key: '
|
|
137
|
+
return (h(Host, { key: '2c40859c4f868569eacfc0ec03ed813667234cdc' }, h("div", { key: '98bb2e0f9559c6e13ab91f1c2c4152a1a1e879d6', class: this.elementClass }, h("slot", { key: 'fb1640741e4b0cf0726919155c2c8f0121e32121' }))));
|
|
138
138
|
}
|
|
139
139
|
static get is() { return "spw-mosaic"; }
|
|
140
140
|
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: 'add27c9046e335bcddde182165c157aa79cf7858', class: "spw-pagination__item spw-pagination__item--desktop spw-pagination__item--arrow" }, h("button", { key: '914b5561a9aecaee86fee7f0ede461426804ce05', onClick: () => this.goToPage(this.currentPage - 1) }, h("spw-icon", { key: '26bc6f7c1ab57aa3eb40c4584a50144b4e8e4986', icon: "fa-chevron-left" }), " ", h("span", { key: 'c64e65f73ac5c301e9cc9ac7869bd5274920f4d2', class: "spw-pagination__item-arrow-text" }, this.previousButtonText))));
|
|
171
|
+
const nextArrow = showNextArrow && (h("li", { key: '948ee7badfc7284fa8b508ea1e1812a05c4f0af2', class: "spw-pagination__item spw-pagination__item--desktop spw-pagination__item--arrow" }, h("button", { key: 'fc86a790c539185bc5760a35e8a638476c6ea029', onClick: () => this.goToPage(this.currentPage + 1) }, h("span", { key: '4c9a1778953d7611237fb5636c331c3e52299b7f', class: "spw-pagination__item-arrow-text" }, this.nextButtonText), " ", h("spw-icon", { key: '987987e52c16aa65550b510425d9402007ed883f', icon: "fa-chevron-right" }))));
|
|
172
|
+
const prevArrowMobile = this.currentPage > 1 && (h("li", { key: 'a0d740fff9d64d565cc33172a07d803b16101ca0', class: "spw-pagination__item spw-pagination__item--arrow" }, h("button", { key: '32e4600db449473164eee865d0e2b374465a35c7', onClick: () => this.goToPage(this.currentPage - 1) }, h("spw-icon", { key: '53f4561c35169e41b4354e07480d55daba8c6428', icon: "fa-chevron-left" }), " ", h("span", { key: 'd0db92e3648051ea9f4ff6c3c2a54048ded90643' }, this.previousButtonText))));
|
|
173
|
+
const nextArrowMobile = this.currentPage < this.totalPages && (h("li", { key: '6a08d6a92defcaca4cd7755440834a884a9a01dd', class: "spw-pagination__item spw-pagination__item--arrow" }, h("button", { key: '168f57ba49e62e1a68f6004709c487b1c15f9ed6', onClick: () => this.goToPage(this.currentPage + 1), disabled: this.currentPage >= this.totalPages }, h("span", { key: 'af8f13ec3654baac84fd5641561e138f224a313e' }, this.nextButtonText), " ", h("spw-icon", { key: '21c20dc7fcb6854c1d2c024bca13195556282425', icon: "fa-chevron-right" }))));
|
|
174
|
+
const mobileArrows = (h("ul", { key: '48636f74b8846c84f121254c1d95e6a539f691f2', class: "spw-pagination__mobile-arrows" }, prevArrowMobile, nextArrowMobile));
|
|
175
|
+
return (h(Host, { key: '9e14c0071f6bd6fc5c59816920ba1bcf0dbc9e11' }, h("div", { key: 'c32f6351a6e29648063aa7bdbb79a5e3576a0610', class: this.getPaginationClass() }, this.variant === 'input' && (h(Fragment, { key: '095e4cc06086f1adc5e934d2921e0d9ab01ab8ca' }, h("ul", { key: 'ccd5d38f59eecb2ec2a4640a91d88030e12cf1cc' }, prevArrow, h("li", { key: '75d24d337c5a5bd633ccbe3fcdf921fac759270c', class: "spw-pagination__input" }, h("spw-text-field", { key: '89634a550acf9cdeeee0584d17c53313a03096fb', value: this.inputPageValue, type: "text", name: "pagination-input", onInput: event => this.handleInputChange(event), onKeyDown: event => this.handleKeyDown(event), disabled: this.isDisabled })), h("li", { key: '03479858843e848ba7e1e1114551a2331e0d7fd2', class: "spw-pagination__total-pages" }, "sur ", this.totalPages, " ", this.totalPages === 1 ? 'page' : 'pages'), nextArrow), mobileArrows)), this.variant === 'numbers' && (h(Fragment, { key: 'f5c594e980ceddc1ed0c7745502ca6a41c7c2f5b' }, h("ul", { key: 'b539a4e139229896e89c6a0c2ee2d5c2a5e90cc6' }, 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
|
}
|
|
@@ -92,7 +92,7 @@ export class SpwRadio {
|
|
|
92
92
|
render() {
|
|
93
93
|
const slot = this.el.innerHTML;
|
|
94
94
|
const hasSlot = Boolean(slot);
|
|
95
|
-
return (h("div", { key: '
|
|
95
|
+
return (h("div", { key: '26cf12c17a31cb4c1ed96c0ca0671f6681714677', class: "spw-radio" }, h("input", { key: 'c2b5efafcc2b8ff49fe0496eeda221ca25d05793', type: "radio", ref: el => (this.inputElement = el), checked: this.internalChecked, "aria-checked": this.internalChecked ? 'true' : 'false', onChange: this.handleRadio.bind(this), name: this.name, value: this.value, disabled: this.disabled, style: { display: 'none' } }), hasSlot && (h("label", { key: 'd2b00504a711e2a8262517407909632979a2463a', class: `spw-radio__label ${this.disabled ? 'spw-radio__label--disabled' : ''}`, onClick: e => this.handleRadio(e) }, h("slot", { key: 'c9677010511579850460cf7430089ac2490b9d15' }))), h("div", { key: 'f2d0ceca7d3c696f288314f8feb92e4b425dc5e0', tabIndex: this.disabled ? -1 : 0, onClick: e => this.handleRadio(e), onKeyDown: this.handleKeydown.bind(this), role: "radio", "aria-checked": this.internalChecked ? 'true' : 'false', "aria-disabled": this.disabled, "aria-label": this.accAriaLabel || this.name, class: this.elementClass }, this.internalChecked && h("span", { key: '6853a3c56870c0f04508e829dd5ccbdfda146dde', class: "spw-radio__circle" }))));
|
|
96
96
|
}
|
|
97
97
|
static get is() { return "spw-radio"; }
|
|
98
98
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
|
+
/* Document
|
|
3
|
+
========================================================================== */
|
|
4
|
+
/**
|
|
5
|
+
* 1. Correct the line height in all browsers.
|
|
6
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
7
|
+
*/
|
|
8
|
+
html {
|
|
9
|
+
line-height: 1.3; /* 1 */
|
|
10
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
h1,
|
|
14
|
+
h2,
|
|
15
|
+
h3,
|
|
16
|
+
h4,
|
|
17
|
+
h5,
|
|
18
|
+
h6,
|
|
19
|
+
p,
|
|
20
|
+
ul,
|
|
21
|
+
li {
|
|
22
|
+
padding: 0;
|
|
23
|
+
margin: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
ul {
|
|
27
|
+
list-style: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:host {
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
line-height: 1.3;
|
|
33
|
+
-webkit-text-size-adjust: 100%;
|
|
34
|
+
font-size: 100%;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:host *,
|
|
38
|
+
:host *::before,
|
|
39
|
+
:host *::after {
|
|
40
|
+
box-sizing: inherit;
|
|
41
|
+
font-family: "Nunito Sans";
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Sections
|
|
45
|
+
========================================================================== */
|
|
46
|
+
/**
|
|
47
|
+
* Remove the margin in all browsers.
|
|
48
|
+
*/
|
|
49
|
+
body {
|
|
50
|
+
margin: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Render the `main` element consistently in IE.
|
|
55
|
+
*/
|
|
56
|
+
main {
|
|
57
|
+
display: block;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
|
62
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
|
63
|
+
*/
|
|
64
|
+
h1 {
|
|
65
|
+
font-size: 2em;
|
|
66
|
+
margin: 0.67em 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Grouping content
|
|
70
|
+
========================================================================== */
|
|
71
|
+
/**
|
|
72
|
+
* 1. Add the correct box sizing in Firefox.
|
|
73
|
+
* 2. Show the overflow in Edge and IE.
|
|
74
|
+
*/
|
|
75
|
+
hr {
|
|
76
|
+
box-sizing: content-box; /* 1 */
|
|
77
|
+
height: 0; /* 1 */
|
|
78
|
+
overflow: visible; /* 2 */
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
83
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
84
|
+
*/
|
|
85
|
+
pre {
|
|
86
|
+
font-family: monospace, monospace; /* 1 */
|
|
87
|
+
font-size: 1em; /* 2 */
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Text-level semantics
|
|
91
|
+
========================================================================== */
|
|
92
|
+
/**
|
|
93
|
+
* Remove the gray background on active links in IE 10.
|
|
94
|
+
*/
|
|
95
|
+
a {
|
|
96
|
+
background-color: transparent;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* 1. Remove the bottom border in Chrome 57-
|
|
101
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
102
|
+
*/
|
|
103
|
+
abbr[title] {
|
|
104
|
+
border-bottom: none; /* 1 */
|
|
105
|
+
text-decoration: underline; /* 2 */
|
|
106
|
+
text-decoration: underline dotted; /* 2 */
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
111
|
+
*/
|
|
112
|
+
b,
|
|
113
|
+
strong {
|
|
114
|
+
font-weight: bolder;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
119
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
120
|
+
*/
|
|
121
|
+
code,
|
|
122
|
+
kbd,
|
|
123
|
+
samp {
|
|
124
|
+
font-family: monospace, monospace; /* 1 */
|
|
125
|
+
font-size: 1em; /* 2 */
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Add the correct font size in all browsers.
|
|
130
|
+
*/
|
|
131
|
+
small {
|
|
132
|
+
font-size: 80%;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
137
|
+
* all browsers.
|
|
138
|
+
*/
|
|
139
|
+
sub,
|
|
140
|
+
sup {
|
|
141
|
+
font-size: 75%;
|
|
142
|
+
line-height: 0;
|
|
143
|
+
position: relative;
|
|
144
|
+
vertical-align: baseline;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
sub {
|
|
148
|
+
bottom: -0.25em;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
sup {
|
|
152
|
+
top: -0.5em;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* Embedded content
|
|
156
|
+
========================================================================== */
|
|
157
|
+
/**
|
|
158
|
+
* Remove the border on images inside links in IE 10.
|
|
159
|
+
*/
|
|
160
|
+
img {
|
|
161
|
+
border-style: none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* Forms
|
|
165
|
+
========================================================================== */
|
|
166
|
+
/**
|
|
167
|
+
* 1. Change the font styles in all browsers.
|
|
168
|
+
* 2. Remove the margin in Firefox and Safari.
|
|
169
|
+
*/
|
|
170
|
+
button,
|
|
171
|
+
input,
|
|
172
|
+
optgroup,
|
|
173
|
+
select,
|
|
174
|
+
textarea {
|
|
175
|
+
font-family: inherit; /* 1 */
|
|
176
|
+
font-size: 100%; /* 1 */
|
|
177
|
+
line-height: 1.15; /* 1 */
|
|
178
|
+
margin: 0; /* 2 */
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Show the overflow in IE.
|
|
183
|
+
* 1. Show the overflow in Edge.
|
|
184
|
+
*/
|
|
185
|
+
button,
|
|
186
|
+
input {
|
|
187
|
+
/* 1 */
|
|
188
|
+
overflow: visible;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
193
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
|
194
|
+
*/
|
|
195
|
+
button,
|
|
196
|
+
select {
|
|
197
|
+
/* 1 */
|
|
198
|
+
text-transform: none;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
|
203
|
+
*/
|
|
204
|
+
button,
|
|
205
|
+
[type=button],
|
|
206
|
+
[type=reset],
|
|
207
|
+
[type=submit] {
|
|
208
|
+
-webkit-appearance: button;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Remove the inner border and padding in Firefox.
|
|
213
|
+
*/
|
|
214
|
+
button::-moz-focus-inner,
|
|
215
|
+
[type=button]::-moz-focus-inner,
|
|
216
|
+
[type=reset]::-moz-focus-inner,
|
|
217
|
+
[type=submit]::-moz-focus-inner {
|
|
218
|
+
border-style: none;
|
|
219
|
+
padding: 0;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Restore the focus styles unset by the previous rule.
|
|
224
|
+
*/
|
|
225
|
+
button:-moz-focusring,
|
|
226
|
+
[type=button]:-moz-focusring,
|
|
227
|
+
[type=reset]:-moz-focusring,
|
|
228
|
+
[type=submit]:-moz-focusring {
|
|
229
|
+
outline: 1px dotted ButtonText;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Correct the padding in Firefox.
|
|
234
|
+
*/
|
|
235
|
+
fieldset {
|
|
236
|
+
padding: 0.35em 0.75em 0.625em;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* 1. Correct the text wrapping in Edge and IE.
|
|
241
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
242
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
|
243
|
+
* `fieldset` elements in all browsers.
|
|
244
|
+
*/
|
|
245
|
+
legend {
|
|
246
|
+
box-sizing: border-box; /* 1 */
|
|
247
|
+
color: inherit; /* 2 */
|
|
248
|
+
display: table; /* 1 */
|
|
249
|
+
max-width: 100%; /* 1 */
|
|
250
|
+
padding: 0; /* 3 */
|
|
251
|
+
white-space: normal; /* 1 */
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
256
|
+
*/
|
|
257
|
+
progress {
|
|
258
|
+
vertical-align: baseline;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Remove the default vertical scrollbar in IE 10+.
|
|
263
|
+
*/
|
|
264
|
+
textarea {
|
|
265
|
+
overflow: auto;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* 1. Add the correct box sizing in IE 10.
|
|
270
|
+
* 2. Remove the padding in IE 10.
|
|
271
|
+
*/
|
|
272
|
+
[type=checkbox],
|
|
273
|
+
[type=radio] {
|
|
274
|
+
box-sizing: border-box; /* 1 */
|
|
275
|
+
padding: 0; /* 2 */
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
280
|
+
*/
|
|
281
|
+
[type=number]::-webkit-inner-spin-button,
|
|
282
|
+
[type=number]::-webkit-outer-spin-button {
|
|
283
|
+
height: auto;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
|
288
|
+
* 2. Correct the outline style in Safari.
|
|
289
|
+
*/
|
|
290
|
+
[type=search] {
|
|
291
|
+
-webkit-appearance: textfield; /* 1 */
|
|
292
|
+
outline-offset: -2px; /* 2 */
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
|
297
|
+
*/
|
|
298
|
+
[type=search]::-webkit-search-decoration {
|
|
299
|
+
-webkit-appearance: none;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
304
|
+
* 2. Change font properties to `inherit` in Safari.
|
|
305
|
+
*/
|
|
306
|
+
::-webkit-file-upload-button {
|
|
307
|
+
-webkit-appearance: button; /* 1 */
|
|
308
|
+
font: inherit; /* 2 */
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/* Interactive
|
|
312
|
+
========================================================================== */
|
|
313
|
+
/*
|
|
314
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
|
315
|
+
*/
|
|
316
|
+
details {
|
|
317
|
+
display: block;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/*
|
|
321
|
+
* Add the correct display in all browsers.
|
|
322
|
+
*/
|
|
323
|
+
summary {
|
|
324
|
+
display: list-item;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/* Misc
|
|
328
|
+
========================================================================== */
|
|
329
|
+
/**
|
|
330
|
+
* Add the correct display in IE 10+.
|
|
331
|
+
*/
|
|
332
|
+
template {
|
|
333
|
+
display: none;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Add the correct display in IE 10.
|
|
338
|
+
*/
|
|
339
|
+
[hidden] {
|
|
340
|
+
display: none;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
:root {
|
|
344
|
+
--spw-ds-container-xl: 1232px;
|
|
345
|
+
--spw-ds-container-lg: 1024px;
|
|
346
|
+
--spw-ds-container-md: 768px;
|
|
347
|
+
--spw-ds-container-sm: 640px;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.spw-ds-container {
|
|
351
|
+
width: 100%;
|
|
352
|
+
padding-left: 16px;
|
|
353
|
+
padding-right: 16px;
|
|
354
|
+
margin-left: auto;
|
|
355
|
+
margin-right: auto;
|
|
356
|
+
}
|
|
357
|
+
@media (min-width: 460px) {
|
|
358
|
+
.spw-ds-container {
|
|
359
|
+
max-width: var(--spw-ds-container-sm);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
@media (min-width: 768px) {
|
|
363
|
+
.spw-ds-container {
|
|
364
|
+
max-width: var(--spw-ds-container-md);
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
@media (min-width: 1024px) {
|
|
368
|
+
.spw-ds-container {
|
|
369
|
+
max-width: var(--spw-ds-container-lg);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
@media (min-width: 1350px) {
|
|
373
|
+
.spw-ds-container {
|
|
374
|
+
max-width: var(--spw-ds-container-xl);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
:host {
|
|
379
|
+
position: fixed;
|
|
380
|
+
bottom: 24px;
|
|
381
|
+
right: 24px;
|
|
382
|
+
z-index: 1000;
|
|
383
|
+
opacity: 0;
|
|
384
|
+
visibility: hidden;
|
|
385
|
+
transform: translateY(16px);
|
|
386
|
+
transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, transform 0.2s ease-in-out;
|
|
387
|
+
pointer-events: none;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
:host(.spw-scrolltop--visible) {
|
|
391
|
+
opacity: 1;
|
|
392
|
+
visibility: visible;
|
|
393
|
+
transform: translateY(0);
|
|
394
|
+
pointer-events: auto;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
@media (max-width: 767px) {
|
|
398
|
+
:host(.spw-scrolltop--hide-mobile) {
|
|
399
|
+
display: none;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
export class SpwScrolltop {
|
|
3
|
+
constructor() {
|
|
4
|
+
/** Seuil de scroll en px avant d'afficher le bouton */
|
|
5
|
+
this.threshold = 300;
|
|
6
|
+
/** Si true, masque le bouton en mobile */
|
|
7
|
+
this.hideOnMobile = false;
|
|
8
|
+
/** Remplit l'attribut aria-label, utilisé à des fins d'accessibilité */
|
|
9
|
+
this.accAriaLabel = 'Retour en haut de page';
|
|
10
|
+
/** Si true, utilise window comme contexte de scroll (sinon détecte le parent scrollable) */
|
|
11
|
+
this.useWindow = true;
|
|
12
|
+
/** État interne pour suivre la visibilité du bouton */
|
|
13
|
+
this.isVisible = false;
|
|
14
|
+
this.scrollContainer = null;
|
|
15
|
+
this.handleScroll = () => {
|
|
16
|
+
this.isVisible = this.getScrollTop() > this.threshold;
|
|
17
|
+
};
|
|
18
|
+
this.scrollToTop = () => {
|
|
19
|
+
if (this.scrollContainer === window) {
|
|
20
|
+
window.scrollTo({
|
|
21
|
+
top: 0,
|
|
22
|
+
behavior: 'smooth',
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
this.scrollContainer.scrollTo({
|
|
27
|
+
top: 0,
|
|
28
|
+
behavior: 'smooth',
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
getScrollableParent(element) {
|
|
34
|
+
let parent = element.parentElement;
|
|
35
|
+
while (parent) {
|
|
36
|
+
const style = getComputedStyle(parent);
|
|
37
|
+
const overflowY = style.overflowY;
|
|
38
|
+
const isScrollable = overflowY === 'auto' || overflowY === 'scroll';
|
|
39
|
+
if (isScrollable && parent.scrollHeight > parent.clientHeight) {
|
|
40
|
+
return parent;
|
|
41
|
+
}
|
|
42
|
+
parent = parent.parentElement;
|
|
43
|
+
}
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
getScrollTop() {
|
|
47
|
+
if (this.scrollContainer === window) {
|
|
48
|
+
return window.scrollY;
|
|
49
|
+
}
|
|
50
|
+
return this.scrollContainer.scrollTop;
|
|
51
|
+
}
|
|
52
|
+
connectedCallback() {
|
|
53
|
+
requestAnimationFrame(() => {
|
|
54
|
+
if (this.useWindow) {
|
|
55
|
+
this.scrollContainer = window;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
this.scrollContainer = this.getScrollableParent(this.el) || window;
|
|
59
|
+
}
|
|
60
|
+
this.scrollContainer.addEventListener('scroll', this.handleScroll, { passive: true });
|
|
61
|
+
this.handleScroll();
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
disconnectedCallback() {
|
|
65
|
+
if (this.scrollContainer) {
|
|
66
|
+
this.scrollContainer.removeEventListener('scroll', this.handleScroll);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
get hostClass() {
|
|
70
|
+
return {
|
|
71
|
+
'spw-scrolltop--visible': this.isVisible,
|
|
72
|
+
'spw-scrolltop--hide-mobile': this.hideOnMobile,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
render() {
|
|
76
|
+
return (h(Host, { key: '0890efb2f22b828e04735c2776eab6c6c3bfbb18', class: this.hostClass }, h("spw-button", { key: '8fd066e1af2b8d4ebb0fb7a3f094c9b040a1e79e', "is-icon-only": true, icon: "fa-chevron-up", variant: "primary", size: "medium", "acc-aria-label": this.accAriaLabel, onClick: this.scrollToTop })));
|
|
77
|
+
}
|
|
78
|
+
static get is() { return "spw-scrolltop"; }
|
|
79
|
+
static get encapsulation() { return "shadow"; }
|
|
80
|
+
static get originalStyleUrls() {
|
|
81
|
+
return {
|
|
82
|
+
"$": ["spw-scrolltop.scss"]
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
static get styleUrls() {
|
|
86
|
+
return {
|
|
87
|
+
"$": ["spw-scrolltop.css"]
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
static get properties() {
|
|
91
|
+
return {
|
|
92
|
+
"threshold": {
|
|
93
|
+
"type": "number",
|
|
94
|
+
"mutable": false,
|
|
95
|
+
"complexType": {
|
|
96
|
+
"original": "number",
|
|
97
|
+
"resolved": "number",
|
|
98
|
+
"references": {}
|
|
99
|
+
},
|
|
100
|
+
"required": false,
|
|
101
|
+
"optional": true,
|
|
102
|
+
"docs": {
|
|
103
|
+
"tags": [],
|
|
104
|
+
"text": "Seuil de scroll en px avant d'afficher le bouton"
|
|
105
|
+
},
|
|
106
|
+
"getter": false,
|
|
107
|
+
"setter": false,
|
|
108
|
+
"reflect": false,
|
|
109
|
+
"attribute": "threshold",
|
|
110
|
+
"defaultValue": "300"
|
|
111
|
+
},
|
|
112
|
+
"hideOnMobile": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"mutable": false,
|
|
115
|
+
"complexType": {
|
|
116
|
+
"original": "boolean",
|
|
117
|
+
"resolved": "boolean",
|
|
118
|
+
"references": {}
|
|
119
|
+
},
|
|
120
|
+
"required": false,
|
|
121
|
+
"optional": true,
|
|
122
|
+
"docs": {
|
|
123
|
+
"tags": [],
|
|
124
|
+
"text": "Si true, masque le bouton en mobile"
|
|
125
|
+
},
|
|
126
|
+
"getter": false,
|
|
127
|
+
"setter": false,
|
|
128
|
+
"reflect": false,
|
|
129
|
+
"attribute": "hide-on-mobile",
|
|
130
|
+
"defaultValue": "false"
|
|
131
|
+
},
|
|
132
|
+
"accAriaLabel": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"mutable": false,
|
|
135
|
+
"complexType": {
|
|
136
|
+
"original": "string",
|
|
137
|
+
"resolved": "string",
|
|
138
|
+
"references": {}
|
|
139
|
+
},
|
|
140
|
+
"required": false,
|
|
141
|
+
"optional": true,
|
|
142
|
+
"docs": {
|
|
143
|
+
"tags": [],
|
|
144
|
+
"text": "Remplit l'attribut aria-label, utilis\u00E9 \u00E0 des fins d'accessibilit\u00E9"
|
|
145
|
+
},
|
|
146
|
+
"getter": false,
|
|
147
|
+
"setter": false,
|
|
148
|
+
"reflect": false,
|
|
149
|
+
"attribute": "acc-aria-label",
|
|
150
|
+
"defaultValue": "'Retour en haut de page'"
|
|
151
|
+
},
|
|
152
|
+
"useWindow": {
|
|
153
|
+
"type": "boolean",
|
|
154
|
+
"mutable": false,
|
|
155
|
+
"complexType": {
|
|
156
|
+
"original": "boolean",
|
|
157
|
+
"resolved": "boolean",
|
|
158
|
+
"references": {}
|
|
159
|
+
},
|
|
160
|
+
"required": false,
|
|
161
|
+
"optional": true,
|
|
162
|
+
"docs": {
|
|
163
|
+
"tags": [],
|
|
164
|
+
"text": "Si true, utilise window comme contexte de scroll (sinon d\u00E9tecte le parent scrollable)"
|
|
165
|
+
},
|
|
166
|
+
"getter": false,
|
|
167
|
+
"setter": false,
|
|
168
|
+
"reflect": false,
|
|
169
|
+
"attribute": "use-window",
|
|
170
|
+
"defaultValue": "true"
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
static get states() {
|
|
175
|
+
return {
|
|
176
|
+
"isVisible": {}
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
static get elementRef() { return "el"; }
|
|
180
|
+
}
|
|
@@ -230,10 +230,10 @@ export class SpwSearchField {
|
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
232
|
render() {
|
|
233
|
-
return (h("div", { key: '
|
|
233
|
+
return (h("div", { key: 'a10f3fe0be859e0f5c07a3cb996c1c2130dcb35a', ref: el => (this.hostElement = el), class: this.elementClass }, h("spw-text-field", { key: '02fdbd99bc9793d47881c28629e42957ac7cb3a1', placeholder: this.placeholder, name: this.name, label: this.label, size: this.size, "is-search": true, "is-clear": true, required: this.required, disabled: this.disabled, assistiveText: this.assistiveText, value: this.searchText, tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, tooltipMaxWidth: this.tooltipMaxWidth, tooltipDirection: this.tooltipDirection, tooltipCursor: this.tooltipCursor, onValueChanged: this.handleValueChanged, onKeyDown: event => this.handleKeyDown(event) }), this.hasSubmitButton && h("button", { key: '36ad3fa5fe544aea001b340587f6b728eb264eac', type: "button", class: "spw-search-field__submit", onClick: this.handleSubmit, "aria-label": "Rechercher" }), this.isOpen && !!this.items && (h("div", { key: '5f934ff945be432ce0b6998bb5f5371ff765361c', class: `spw-search-field__options spw-search-field__options--${this.dropdownDirection}` }, !!this.filteredItems.length && (h("ul", { key: '60b99c03a3b0a3aa75821022450c9367e8c5bfd2' }, this.filteredItems.map((item, index) => (h("li", { class: {
|
|
234
234
|
'spw-search-field__option': true,
|
|
235
235
|
'spw-search-field__option--focused': index === this.focusedItemIndex,
|
|
236
|
-
}, onClick: () => this.selectItem(item) }, this.highlightMatch(item.label), " ", item.category && h("span", { class: "spw-search-field__category" }, " - ", item.category)))))), this.isLoading && (h("p", { key: '
|
|
236
|
+
}, onClick: () => this.selectItem(item) }, this.highlightMatch(item.label), " ", item.category && h("span", { class: "spw-search-field__category" }, " - ", item.category)))))), this.isLoading && (h("p", { key: '51591023d434633e7b03ba774d0ca5883cdbf4b6', class: "spw-search-field__loading" }, h("spw-loading", { key: 'ef7505c54096507e6b6e674af546aa45782e25c7', text: this.loadingText }))), !this.isLoading && !this.filteredItems.length && h("p", { key: '0beb82680290a81da662c1ec25677df6cff53315', class: "spw-search-field__no-results" }, this.noResults), !!this.filteredItems.length && this.viewAllResults && this.viewAllResultsLink && (h("p", { key: '6c0183814b9e9b3f6668d717d24d92daf92a2b26', class: "spw-search-field__view-all" }, h("a", { key: '20f24ee9c16e617878bab8e58aecede69c89b6d9', href: this.viewAllResultsLink }, this.viewAllResults, " ", h("spw-icon", { key: '4282cc27ea9ee5aebffe47f1597202cacc2d9ce1', icon: "fa-arrow-right" }))))))));
|
|
237
237
|
}
|
|
238
238
|
static get is() { return "spw-search-field"; }
|
|
239
239
|
static get encapsulation() { return "shadow"; }
|