@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
|
@@ -2,7 +2,7 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { formatDate } from "../../../utils/utils";
|
|
3
3
|
export class SpwCardContent {
|
|
4
4
|
render() {
|
|
5
|
-
return (h("div", { key: '
|
|
5
|
+
return (h("div", { key: '2c2fcc3b2e3d78df09ea2d116ba7aa27572ff73e', class: "spw-card-content" }, this.tag && h("span", { key: '1d12fbb8b97c86ec445a129cfc011150e35b8da1', class: "spw-card-content__tag" }, this.tag), this.date && (h("time", { key: 'd6dc084becca10d787823b57db1bac4776524603', "date-time": this.date, class: "spw-card-content__date" }, formatDate(this.date))), h("slot", { key: 'd2e5d24d49ad9e51e443792ebfe876f7c56a2731' })));
|
|
6
6
|
}
|
|
7
7
|
static get is() { return "spw-card-content"; }
|
|
8
8
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,7 +13,7 @@ export class SpwCardExcerpt {
|
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '6c429d9b3db9b3e04b84742f950d4b9885a014c7' }, h("div", { key: 'adbceaf382d03493c1aae9362607d08a2ef2062c', class: this.elementClass }, h("slot", { key: '686487cd3cbbef5883fe8d5fc3b0b3846cd155d2' }))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "spw-card-excerpt"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -44,7 +44,7 @@ export class SpwCardImage {
|
|
|
44
44
|
if (this.ratioDesktop) {
|
|
45
45
|
style['--spw-card-image-ratio-desktop'] = this.ratioDesktop;
|
|
46
46
|
}
|
|
47
|
-
return (h("div", { key: '
|
|
47
|
+
return (h("div", { key: '99a420e6d6504a680e042962bef1515fd69e3478', class: this.elementClass, style: style }, this.label && h("span", { key: '987cf7aa45cca97688e1ab1875f6ad2f18cca83c', class: "spw-card-image__label" }, this.label), h("slot", { key: '9fa9212f1177b61ea60b2fbadb3bafdc044a97b5' }), h("div", { key: '9e2c8cc0e80f22fd0691c6ab651a2b56cedacde9', class: "spw-card-image__icon" }, h("spw-icon", { key: 'a33dc1ba20503731a718f652097a056f9059f07c', icon: "fa-plus" }))));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "spw-card-image"; }
|
|
50
50
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,7 +12,7 @@ export class SpwCardSubtagItem {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '9af637b294bc0fa88b1114846e378be0052e8710' }, h("span", { key: 'aca8582fe5aa57a98c377a9d72842dcd025b4e05', class: this.elementClass, onClick: () => this.handleClick() }, h("slot", { key: '1de78f781b517956870720a4e414a07c414ac6db' }))));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "spw-card-subtag-item"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -26,7 +26,7 @@ export class SpwCardSubtags {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '6acdf44537f3fe253a660c42bcd49747c174b259' }, h("div", { key: 'cbd71216edf3195d757859cc4b8813aca0fb4634', class: this.elementClass }, h("slot", { key: '7ab3d0c3bd911f659eaab8577a9ef27a5263be7e' }))));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "spw-card-subtags"; }
|
|
32
32
|
static get originalStyleUrls() {
|
|
@@ -5,7 +5,7 @@ export class SpwCardTitle {
|
|
|
5
5
|
this.borderColor = '';
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: 'ed14489eda79f574bb4464af65eaaa1504eb8ccd', style: { '--spw-card-title-border-color': this.borderColor } }, h("h3", { key: '47e51dddf149cbd95512495f5813148fa9f53cba', class: "spw-card-title" }, h("span", { key: '4d47a9766c2a209a4095fb7d472b40f1c1eae80f', class: "spw-card-title__text" }, h("slot", { key: 'a35dfd22138be0fbd403ee908e20e7c542659f98' })))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "spw-card-title"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -120,7 +120,7 @@ export class SpwCard {
|
|
|
120
120
|
'aria-label': this === null || this === void 0 ? void 0 : this.accAriaLabel,
|
|
121
121
|
'aria-disabled': this.disabled ? 'true' : null,
|
|
122
122
|
};
|
|
123
|
-
return (h(Host, { key: '
|
|
123
|
+
return (h(Host, { key: 'a40ca4684fd0b73eabdba58b4d59dbd18b2676a3', class: { '--is-full-height': this.fullHeight } }, h("article", { key: '3b9b6460c69201c27e416c1dbadd5686e3a01bfc', class: this.elementClass }, variant === 'event' && (h(TagType, Object.assign({ key: 'fc00c807b2500988de46bc84b9f74b8b0e4d49a4' }, attrs, { class: "spw-card__dates" }), dateStart && h("div", { key: '6fca1dbdc58b345ca8683fc9bdfed31a82241cee', class: "spw-card__date-item" }, this.formatDate(dateStart)), dateEnd && h("div", { key: '07c73a061e0cd2f223e67b36de0dd66d2c39e4d2', class: "spw-card__date-item" }, this.formatDate(dateEnd)))), h(TagType, Object.assign({ key: '67b8338341be65711bc605f3db233a954708666e' }, attrs, ariaAttributes, { class: "spw-card__link" }), h("slot", { key: 'ce06b59ae1a8c729c9831081e1a7b7adc5c5dc61' })))));
|
|
124
124
|
}
|
|
125
125
|
static get is() { return "spw-card"; }
|
|
126
126
|
static get encapsulation() { return "shadow"; }
|
|
@@ -81,7 +81,7 @@ export class SpwCheckbox {
|
|
|
81
81
|
render() {
|
|
82
82
|
const slot = this.el.innerHTML;
|
|
83
83
|
const hasSlot = Boolean(slot);
|
|
84
|
-
return (h("div", { key: '
|
|
84
|
+
return (h("div", { key: '99bf5a7027aaa9f09bc6a0e55bb60a7469848fc5', class: "spw-checkbox" }, h("input", { key: '712c81629b8a498d48befbb1571ce10dd52de89b', type: "checkbox", ref: el => (this.inputElement = el), checked: this.internalChecked, onChange: this.handleCheckbox.bind(this), name: this.name, disabled: this.disabled, style: { display: 'none' } }), hasSlot && (h("label", { key: '4b849e52cee771bd0c242842fb92a15f441ac1ec', htmlFor: this.name, class: `spw-checkbox__label ${this.disabled ? 'spw-checkbox__label--disabled' : ''}`, onClick: e => this.handleCheckbox(e) }, h("slot", { key: 'd766bae2995612c4b09aedf6337d6dd67447aba9' }))), h("div", { key: '0620b906667f2c7b40551129bcb63a48d88d552c', tabindex: this.disabled ? -1 : 0, onClick: e => this.handleCheckbox(e), onKeyDown: this.handleKeydown.bind(this), role: "checkbox", "aria-checked": this.internalChecked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.accAriaLabel || this.name || 'Label', class: this.elementClass }, this.internalChecked && h("spw-icon", { key: '1a4fb292ee263daa07bd7bf09599ca5ecae16840', icon: this.icon }))));
|
|
85
85
|
}
|
|
86
86
|
static get is() { return "spw-checkbox"; }
|
|
87
87
|
static get encapsulation() { return "shadow"; }
|
|
@@ -446,6 +446,14 @@ template {
|
|
|
446
446
|
flex: 1;
|
|
447
447
|
padding-right: 30px;
|
|
448
448
|
max-width: 100%;
|
|
449
|
+
overflow: hidden;
|
|
450
|
+
text-overflow: ellipsis;
|
|
451
|
+
}
|
|
452
|
+
.spw-custom-select__selected span {
|
|
453
|
+
white-space: nowrap;
|
|
454
|
+
}
|
|
455
|
+
.spw-custom-select--is-clear .spw-custom-select__selected {
|
|
456
|
+
padding-right: 58px;
|
|
449
457
|
}
|
|
450
458
|
.spw-custom-select__selected-item {
|
|
451
459
|
display: inline-flex;
|
|
@@ -475,10 +483,34 @@ template {
|
|
|
475
483
|
text-overflow: initial;
|
|
476
484
|
text-wrap: initial;
|
|
477
485
|
}
|
|
478
|
-
.spw-custom-
|
|
486
|
+
.spw-custom-select__icons {
|
|
487
|
+
display: flex;
|
|
488
|
+
align-items: center;
|
|
479
489
|
position: absolute;
|
|
490
|
+
top: 50%;
|
|
480
491
|
right: 12px;
|
|
481
|
-
|
|
492
|
+
gap: 8px;
|
|
493
|
+
pointer-events: none;
|
|
494
|
+
transform: translateY(-50%);
|
|
495
|
+
z-index: 12;
|
|
496
|
+
}
|
|
497
|
+
.spw-custom-select--large .spw-custom-select__icons {
|
|
498
|
+
right: 24px;
|
|
499
|
+
}
|
|
500
|
+
.spw-custom-select__clear {
|
|
501
|
+
display: inline-flex;
|
|
502
|
+
align-items: center;
|
|
503
|
+
justify-content: center;
|
|
504
|
+
width: 20px;
|
|
505
|
+
height: 20px;
|
|
506
|
+
pointer-events: auto;
|
|
507
|
+
cursor: pointer;
|
|
508
|
+
padding: 2px;
|
|
509
|
+
border: 2px var(--spw-color-themes-grey-grey-900) solid;
|
|
510
|
+
border-radius: 50%;
|
|
511
|
+
font-size: 12px;
|
|
512
|
+
}
|
|
513
|
+
.spw-custom-select__arrow {
|
|
482
514
|
font-size: 16px;
|
|
483
515
|
color: var(--spw-color-themes-grey-grey-600);
|
|
484
516
|
pointer-events: none;
|
|
@@ -497,10 +529,13 @@ template {
|
|
|
497
529
|
.spw-custom-select--has-value.spw-custom-select--is-opened .spw-custom-select__search {
|
|
498
530
|
top: 100%;
|
|
499
531
|
margin-top: -3px;
|
|
532
|
+
padding: 4px;
|
|
533
|
+
border: 1px solid var(--spw-color-themes-grey-grey-800);
|
|
534
|
+
background: white;
|
|
500
535
|
}
|
|
501
536
|
.spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened .spw-custom-select__search {
|
|
502
537
|
top: -100%;
|
|
503
|
-
margin-top:
|
|
538
|
+
margin-top: -7px;
|
|
504
539
|
}
|
|
505
540
|
.spw-custom-select__search-input {
|
|
506
541
|
padding: 0;
|
|
@@ -509,6 +544,11 @@ template {
|
|
|
509
544
|
border: none;
|
|
510
545
|
margin: 0;
|
|
511
546
|
width: calc(100% - 30px);
|
|
547
|
+
}
|
|
548
|
+
.spw-custom-select--is-clear .spw-custom-select__search-input {
|
|
549
|
+
width: calc(100% - 58px);
|
|
550
|
+
}
|
|
551
|
+
.spw-custom-select__search-input {
|
|
512
552
|
text-overflow: ellipsis;
|
|
513
553
|
}
|
|
514
554
|
.spw-custom-select__search-input:focus {
|
|
@@ -519,8 +559,9 @@ template {
|
|
|
519
559
|
padding: 0 12px;
|
|
520
560
|
}
|
|
521
561
|
.spw-custom-select--is-opened.spw-custom-select--has-value .spw-custom-select__search-input {
|
|
522
|
-
border
|
|
562
|
+
border: 1px solid var(--spw-color-themes-grey-grey-800);
|
|
523
563
|
width: 100%;
|
|
564
|
+
border-radius: 3px;
|
|
524
565
|
}
|
|
525
566
|
.spw-custom-select__options {
|
|
526
567
|
background-color: #fff;
|
|
@@ -553,16 +594,16 @@ template {
|
|
|
553
594
|
margin-top: -40px;
|
|
554
595
|
}
|
|
555
596
|
.spw-custom-select--down.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options--fixed {
|
|
556
|
-
margin-top:
|
|
597
|
+
margin-top: 44px;
|
|
557
598
|
}
|
|
558
599
|
.spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options--fixed {
|
|
559
|
-
margin-top: -
|
|
600
|
+
margin-top: -86px;
|
|
560
601
|
}
|
|
561
602
|
.spw-custom-select--down.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options:not(.spw-custom-select__options--fixed) {
|
|
562
|
-
margin-top:
|
|
603
|
+
margin-top: 44px;
|
|
563
604
|
}
|
|
564
605
|
.spw-custom-select--up.spw-custom-select--has-value.spw-custom-select--is-opened:not(.spw-custom-select--not-searchable) .spw-custom-select__options:not(.spw-custom-select__options--fixed) {
|
|
565
|
-
margin-top: -
|
|
606
|
+
margin-top: -46px;
|
|
566
607
|
}
|
|
567
608
|
.spw-custom-select__no-results {
|
|
568
609
|
padding: 12px;
|
|
@@ -48,6 +48,10 @@ export class SpwCustomSelect {
|
|
|
48
48
|
this.tooltipCursor = 'help';
|
|
49
49
|
/** Utilise un positionnement fixed pour le dropdown si nécessité de sortir du contexte (utile dans une modal avec overflow hidden) */
|
|
50
50
|
this.fixedDropdown = false;
|
|
51
|
+
/** Indique si le champ peut être effacé avec un bouton */
|
|
52
|
+
this.isClear = false;
|
|
53
|
+
/** Direction d'ouverture du dropdown */
|
|
54
|
+
this.direction = 'auto';
|
|
51
55
|
this.handleOtherSelectOpened = (event) => {
|
|
52
56
|
if (event.detail.instance !== this.host && this.isOpen) {
|
|
53
57
|
this.closeDropdown();
|
|
@@ -76,12 +80,21 @@ export class SpwCustomSelect {
|
|
|
76
80
|
return;
|
|
77
81
|
const rect = this.selectContainer.getBoundingClientRect();
|
|
78
82
|
const viewportHeight = window.innerHeight;
|
|
79
|
-
if (
|
|
83
|
+
if (this.direction === 'top') {
|
|
80
84
|
this.dropdownDirection = 'up';
|
|
81
85
|
}
|
|
82
|
-
else {
|
|
86
|
+
else if (this.direction === 'bottom') {
|
|
83
87
|
this.dropdownDirection = 'down';
|
|
84
88
|
}
|
|
89
|
+
else {
|
|
90
|
+
// auto
|
|
91
|
+
if (rect.bottom + 200 > viewportHeight && rect.top > 200) {
|
|
92
|
+
this.dropdownDirection = 'up';
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
this.dropdownDirection = 'down';
|
|
96
|
+
}
|
|
97
|
+
}
|
|
85
98
|
this.dropdownPosition = {
|
|
86
99
|
top: rect.bottom,
|
|
87
100
|
left: rect.left,
|
|
@@ -270,6 +283,10 @@ export class SpwCustomSelect {
|
|
|
270
283
|
this.focusedOptionIndex = null;
|
|
271
284
|
this.searchText = '';
|
|
272
285
|
}
|
|
286
|
+
handleClear(event) {
|
|
287
|
+
event.stopPropagation();
|
|
288
|
+
this.resetSelect();
|
|
289
|
+
}
|
|
273
290
|
selectOption(optionValue, event) {
|
|
274
291
|
if (event) {
|
|
275
292
|
event.stopPropagation();
|
|
@@ -383,6 +400,7 @@ export class SpwCustomSelect {
|
|
|
383
400
|
'spw-custom-select--no-value': !this.hasSelectedValue,
|
|
384
401
|
'spw-custom-select--is-searchable': this.isSearch,
|
|
385
402
|
'spw-custom-select--not-searchable': !this.isSearch,
|
|
403
|
+
'spw-custom-select--is-clear': this.isClear && (this.hasSelectedValue || !!this.searchText),
|
|
386
404
|
};
|
|
387
405
|
}
|
|
388
406
|
normalizeString(str) {
|
|
@@ -437,11 +455,11 @@ export class SpwCustomSelect {
|
|
|
437
455
|
render() {
|
|
438
456
|
const filteredOptions = this.getFilteredOptions();
|
|
439
457
|
const showPlaceholder = this.showPlaceholder();
|
|
440
|
-
return (h("div", { key: '
|
|
458
|
+
return (h("div", { key: '064c59c91692cc15ba93199a724553477bac7697', class: this.elementClass, ref: el => (this.host = el) }, this.label && (h("spw-field-label", { key: 'c326970b9d3da20f7ca2236500e98bddd9bf1ce4', label: this.label, name: this.name, required: this.required, tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, tooltipMaxWidth: this.tooltipMaxWidth, tooltipDirection: this.tooltipDirection, tooltipCursor: this.tooltipCursor })), this.assistiveText && (h("spw-field-message", { key: '85103620cd282232f01fdbd467886490fd888991', class: "spw-custom-select__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: '337d9a34f40c13f8fb491c73a137711d7cbcee6d', class: "spw-custom-select__wrapper" }, h("div", { key: '50566c5d50437a9d351ee44198d479f32a603158', class: "spw-custom-select__container", id: this.name, ref: el => (this.selectContainer = el), onClick: event => this.toggleDropdown(event), onKeyDown: event => this.handleKeyDown(event), tabindex: this.disabled ? -1 : 0 }, h("div", { key: '4f847641c06968e5d7be950bcdae69c988245755', class: "spw-custom-select__selected" }, this.isSearchVisible() && (h("div", { key: '5001191ddaed6c57f2f3242a374288ba1998e874', class: "spw-custom-select__search" }, h("input", { key: '5ab68945bdc9fd54365dcac92d27c20dad0f8061', class: "spw-custom-select__search-input", placeholder: this.searchPlaceholder, onInput: event => this.handleSearchInput(event), value: this.searchText }))), showPlaceholder && h("span", { key: '6edafe01385ba6d334532cc72029255a11cc83a5' }, this.placeholder), this.multiple && this.internalValue.length > 0 && (h("div", { key: '7c344bbc9beff7011fe4b25acd4d267ac7c37caa', class: "spw-custom-select__selected-items" }, this.internalValue.map(val => {
|
|
441
459
|
var _a;
|
|
442
460
|
return (h("span", { class: "spw-custom-select__selected-item" }, (_a = this.parsedOptions.find(option => String(option.value) === String(val))) === null || _a === void 0 ? void 0 :
|
|
443
461
|
_a.label, h("spw-icon", { icon: "fa-times", class: "spw-custom-select__deselect-icon", onClick: event => this.selectOption(val, event) })));
|
|
444
|
-
}))), !this.multiple && h("span", { key: '
|
|
462
|
+
}))), !this.multiple && h("span", { key: 'ac06a9718592fde37f42c90d84700d74d0d50416' }, this.getSelectedLabels()))), h("div", { key: '4a083004a149ab7388a982fb5eff4e128bbb4913', class: "spw-custom-select__icons" }, this.isClear && (this.hasSelectedValue || !!this.searchText) && (h("span", { key: 'de239bf60b076f4e01a82c454f285c7bdf65c5df', class: "spw-custom-select__clear", onClick: (event) => this.handleClear(event) }, h("spw-icon", { key: '1dce3eb6f67567b559992645681d9796a1152ed3', icon: "fa-xmark" }))), h("div", { key: 'f4473657553e03512f3c3468ee4303e83fb4183e', class: "spw-custom-select__arrow" }, h("spw-icon", { key: 'f4ccf66ee935c4e169eca3fc4beebaa35c3adc1c', icon: this.isOpen ? 'fa-chevron-up' : 'fa-chevron-down' }))), this.isOpen && (h("div", { key: '4c5fc4853b083c4a1128fadb6f35e33a67b07428', class: {
|
|
445
463
|
'spw-custom-select__options': true,
|
|
446
464
|
[`spw-custom-select__options--${this.dropdownDirection}`]: true,
|
|
447
465
|
'spw-custom-select__options--fixed': this.fixedDropdown,
|
|
@@ -452,14 +470,14 @@ export class SpwCustomSelect {
|
|
|
452
470
|
left: `${this.dropdownPosition.left}px`,
|
|
453
471
|
width: `${this.dropdownPosition.width}px`,
|
|
454
472
|
}
|
|
455
|
-
: {} }, !!filteredOptions.length && (h("ul", { key: '
|
|
473
|
+
: {} }, !!filteredOptions.length && (h("ul", { key: 'a652e4fd6b5741337eceb5dc6c5efbe0deb7d995' }, filteredOptions.map((option, index) => (h("li", { class: {
|
|
456
474
|
'spw-custom-select__option': true,
|
|
457
475
|
'spw-custom-select__option--selected': this.multiple
|
|
458
476
|
? this.internalValue.some(val => String(val) === String(option.value))
|
|
459
477
|
: option.value === this.internalValue,
|
|
460
478
|
'spw-custom-select__option--focused': index === this.focusedOptionIndex,
|
|
461
479
|
'spw-custom-select__option--disabled': option.disabled,
|
|
462
|
-
}, onClick: () => this.selectOption(option.value) }, this.multiple && (h("spw-checkbox", { onKeyDown: event => this.handleOptionKeyDown(event, option.value), class: "spw-custom-select__checkbox", checked: this.internalValue.some(val => String(val) === String(option.value)), disabled: option.disabled })), option.label))))), !filteredOptions.length && h("p", { key: '
|
|
480
|
+
}, onClick: () => this.selectOption(option.value) }, this.multiple && (h("spw-checkbox", { onKeyDown: event => this.handleOptionKeyDown(event, option.value), class: "spw-custom-select__checkbox", checked: this.internalValue.some(val => String(val) === String(option.value)), disabled: option.disabled })), option.label))))), !filteredOptions.length && h("p", { key: '0d786046f4f8b3c6a9a43f5c2199758feb63a305', class: "spw-custom-select__no-results" }, this.noResultsText)))), this.renderErrorMessage(), this.renderHintMessage(), this.renderSuccessMessage(), this.renderWarningMessage()));
|
|
463
481
|
}
|
|
464
482
|
static get is() { return "spw-custom-select"; }
|
|
465
483
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1012,6 +1030,46 @@ export class SpwCustomSelect {
|
|
|
1012
1030
|
"reflect": false,
|
|
1013
1031
|
"attribute": "fixed-dropdown",
|
|
1014
1032
|
"defaultValue": "false"
|
|
1033
|
+
},
|
|
1034
|
+
"isClear": {
|
|
1035
|
+
"type": "boolean",
|
|
1036
|
+
"mutable": false,
|
|
1037
|
+
"complexType": {
|
|
1038
|
+
"original": "boolean",
|
|
1039
|
+
"resolved": "boolean",
|
|
1040
|
+
"references": {}
|
|
1041
|
+
},
|
|
1042
|
+
"required": false,
|
|
1043
|
+
"optional": true,
|
|
1044
|
+
"docs": {
|
|
1045
|
+
"tags": [],
|
|
1046
|
+
"text": "Indique si le champ peut \u00EAtre effac\u00E9 avec un bouton"
|
|
1047
|
+
},
|
|
1048
|
+
"getter": false,
|
|
1049
|
+
"setter": false,
|
|
1050
|
+
"reflect": false,
|
|
1051
|
+
"attribute": "is-clear",
|
|
1052
|
+
"defaultValue": "false"
|
|
1053
|
+
},
|
|
1054
|
+
"direction": {
|
|
1055
|
+
"type": "string",
|
|
1056
|
+
"mutable": false,
|
|
1057
|
+
"complexType": {
|
|
1058
|
+
"original": "'top' | 'bottom' | 'auto'",
|
|
1059
|
+
"resolved": "\"auto\" | \"bottom\" | \"top\"",
|
|
1060
|
+
"references": {}
|
|
1061
|
+
},
|
|
1062
|
+
"required": false,
|
|
1063
|
+
"optional": true,
|
|
1064
|
+
"docs": {
|
|
1065
|
+
"tags": [],
|
|
1066
|
+
"text": "Direction d'ouverture du dropdown"
|
|
1067
|
+
},
|
|
1068
|
+
"getter": false,
|
|
1069
|
+
"setter": false,
|
|
1070
|
+
"reflect": false,
|
|
1071
|
+
"attribute": "direction",
|
|
1072
|
+
"defaultValue": "'auto'"
|
|
1015
1073
|
}
|
|
1016
1074
|
};
|
|
1017
1075
|
}
|
|
@@ -493,8 +493,8 @@ template {
|
|
|
493
493
|
color: var(--spw-color-themes-grey-grey-500);
|
|
494
494
|
}
|
|
495
495
|
.spw-date-picker__icon--calendar {
|
|
496
|
-
pointer-events: none;
|
|
497
496
|
font-size: 16px;
|
|
497
|
+
cursor: pointer;
|
|
498
498
|
color: var(--spw-color-text-secondary, #6b7280);
|
|
499
499
|
}
|
|
500
500
|
.spw-date-picker__icon--clear {
|
|
@@ -12,7 +12,7 @@ export class SpwDatePicker {
|
|
|
12
12
|
this.dateFormat = 'dd/MM/yyyy';
|
|
13
13
|
/** Jours de la semaine désactivés (0=dimanche, 1=lundi, etc.) */
|
|
14
14
|
this.disabledDays = [];
|
|
15
|
-
/** Dates spécifiques désactivées (format ISO) */
|
|
15
|
+
/** Dates spécifiques désactivées (format ISO, ex: ["2026-01-01", "2026-12-25"]) */
|
|
16
16
|
this.disabledDates = [];
|
|
17
17
|
/** Position du datepicker */
|
|
18
18
|
this.position = 'bl';
|
|
@@ -134,6 +134,24 @@ export class SpwDatePicker {
|
|
|
134
134
|
this.handleClear = () => {
|
|
135
135
|
this.resetInput();
|
|
136
136
|
};
|
|
137
|
+
this.handleCalendarIconClick = (ev) => {
|
|
138
|
+
var _a, _b;
|
|
139
|
+
ev.stopPropagation();
|
|
140
|
+
if (this.disabled)
|
|
141
|
+
return;
|
|
142
|
+
if (this.isOpen) {
|
|
143
|
+
(_a = this.datepickerInstance) === null || _a === void 0 ? void 0 : _a.hide();
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
if (!this.datepickerInstance) {
|
|
147
|
+
this.initializeDatepicker();
|
|
148
|
+
}
|
|
149
|
+
(_b = this.datepickerInstance) === null || _b === void 0 ? void 0 : _b.show();
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
this.handleCalendarIconMouseDown = (ev) => {
|
|
153
|
+
ev.preventDefault();
|
|
154
|
+
};
|
|
137
155
|
this.handleKeyDown = (ev) => {
|
|
138
156
|
const target = ev.target;
|
|
139
157
|
const isInputFocused = target === this.inputElement;
|
|
@@ -209,6 +227,20 @@ export class SpwDatePicker {
|
|
|
209
227
|
this.disabledDays = [];
|
|
210
228
|
}
|
|
211
229
|
}
|
|
230
|
+
if (typeof this.disabledDates === 'string') {
|
|
231
|
+
try {
|
|
232
|
+
const parsed = JSON.parse(this.disabledDates);
|
|
233
|
+
if (Array.isArray(parsed) && parsed.every(val => typeof val === 'string')) {
|
|
234
|
+
this.disabledDates = parsed;
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
this.disabledDates = [];
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
catch (_b) {
|
|
241
|
+
this.disabledDates = [];
|
|
242
|
+
}
|
|
243
|
+
}
|
|
212
244
|
const start = this.value ? this.formatDate(new Date(this.value)) : '';
|
|
213
245
|
this.internalValue = start;
|
|
214
246
|
this.lastInputValue = this.internalValue;
|
|
@@ -615,7 +647,8 @@ export class SpwDatePicker {
|
|
|
615
647
|
if (disabledDays.includes(date.getDay()))
|
|
616
648
|
return true;
|
|
617
649
|
const dateStr = date.toISOString().split('T')[0];
|
|
618
|
-
|
|
650
|
+
const disabledDates = this.disabledDates;
|
|
651
|
+
return disabledDates.includes(dateStr);
|
|
619
652
|
},
|
|
620
653
|
onSelect: (selectedDateOrInstance) => {
|
|
621
654
|
const selectedDate = selectedDateOrInstance instanceof Date ? selectedDateOrInstance : selectedDateOrInstance === null || selectedDateOrInstance === void 0 ? void 0 : selectedDateOrInstance.dateSelected;
|
|
@@ -757,7 +790,7 @@ export class SpwDatePicker {
|
|
|
757
790
|
'spw-date-picker--is-clear': this.isClearIconVisible,
|
|
758
791
|
};
|
|
759
792
|
const errorMessage = this.error || this.internalError;
|
|
760
|
-
return (h(Host, { key: '
|
|
793
|
+
return (h(Host, { key: '70bc9908337a34fce7a364e15343231c7cddfb3e' }, h("div", { key: '22eebe0dd218243c5b64e07039816788c5fe4366', class: containerClass }, this.label && (h("spw-field-label", { key: 'b05bbd092cc3e170f5d4111b9cb9fc5791066109', label: this.label, required: this.required, tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, tooltipMaxWidth: this.tooltipMaxWidth, tooltipDirection: this.tooltipDirection, tooltipCursor: this.tooltipCursor })), this.assistiveText && (h("spw-field-message", { key: 'a3a9cb74cb09f307472a7a41beb8937d095a3477', class: "spw-date-picker__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: 'b31e2486767d521c3a9b6d1b7462af85fdbd2e60', class: "spw-date-picker__input-container" }, h("input", { key: '7f5c7a4168768a6828f198973d180e1f6600532a', ref: el => (this.inputElement = el), id: this.uniqueId, type: "text", class: inputClass, value: this.internalValue, placeholder: this.placeholder, disabled: this.disabled, required: this.required, onFocus: this.handleInputFocus, onInput: this.handleInputChange, onKeyDown: this.handleKeyDown, "aria-label": this.accAriaLabel || this.label || this.name, "aria-describedby": this.assistiveText || errorMessage ? `${this.uniqueId}-help ${this.uniqueId}-error` : undefined, "aria-invalid": this.hasError }), h("div", { key: '863780d4d9a6b3f07e17977125237809166d835f', class: "spw-date-picker__icons" }, this.isClearIconVisible && (h("span", { key: 'c25cd0e5a75ef062ef50b2db3dfa33e40c075f9b', class: "spw-date-picker__clear", onClick: this.handleClear }, h("spw-icon", { key: '4761fbc6c02cc8200c90882a8dd556dae77d9313', class: "spw-date-picker__icon spw-date-picker__icon--clear", icon: "fa-xmark" }))), h("span", { key: 'b35d76a9ca1b914b0bec648692e7939dc1ab4cb9', class: "spw-date-picker__calendar-trigger", onMouseDown: this.handleCalendarIconMouseDown, onClick: this.handleCalendarIconClick }, h("spw-icon", { key: 'b28190ea0b55dcf994fd023f6c7c6c003710dea9', icon: "fa-calendar", class: "spw-date-picker__icon spw-date-picker__icon--calendar" })))), this.error && (h("spw-field-message", { key: '2fb10c2981460f879c7d66fd6fb0439c38d7929c', variant: "error", showIcon: this.showErrorIcon }, this.error)), this.hint && (h("spw-field-message", { key: '8d1d51c87b3fc336de054c8bfe5780b0fefb31e8', variant: "hint", showIcon: this.showHintIcon }, this.hint)), this.success && (h("spw-field-message", { key: '2f73dff0acc8048983c6e55ce239e575e91a9440', variant: "success", showIcon: this.showSuccessIcon }, this.success)), this.warning && (h("spw-field-message", { key: 'f4a9746012910672908fcb188fd0fe4ed69ef352', variant: "warning", showIcon: this.showWarningIcon }, this.warning)))));
|
|
761
794
|
}
|
|
762
795
|
static get is() { return "spw-date-picker"; }
|
|
763
796
|
static get encapsulation() { return "shadow"; }
|
|
@@ -989,21 +1022,23 @@ export class SpwDatePicker {
|
|
|
989
1022
|
"defaultValue": "[]"
|
|
990
1023
|
},
|
|
991
1024
|
"disabledDates": {
|
|
992
|
-
"type": "
|
|
1025
|
+
"type": "string",
|
|
993
1026
|
"mutable": false,
|
|
994
1027
|
"complexType": {
|
|
995
|
-
"original": "string[]",
|
|
996
|
-
"resolved": "string[]",
|
|
1028
|
+
"original": "string | string[]",
|
|
1029
|
+
"resolved": "string | string[]",
|
|
997
1030
|
"references": {}
|
|
998
1031
|
},
|
|
999
1032
|
"required": false,
|
|
1000
1033
|
"optional": false,
|
|
1001
1034
|
"docs": {
|
|
1002
1035
|
"tags": [],
|
|
1003
|
-
"text": "Dates sp\u00E9cifiques d\u00E9sactiv\u00E9es (format ISO)"
|
|
1036
|
+
"text": "Dates sp\u00E9cifiques d\u00E9sactiv\u00E9es (format ISO, ex: [\"2026-01-01\", \"2026-12-25\"])"
|
|
1004
1037
|
},
|
|
1005
1038
|
"getter": false,
|
|
1006
1039
|
"setter": false,
|
|
1040
|
+
"reflect": false,
|
|
1041
|
+
"attribute": "disabled-dates",
|
|
1007
1042
|
"defaultValue": "[]"
|
|
1008
1043
|
},
|
|
1009
1044
|
"position": {
|
package/dist/collection/components/spw-dropdown/spw-dropdown-container/spw-dropdown-container.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class SpwDropdownContainer {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: 'f32b9cfb6175c45e09c54aaf0d84b1584f5922de' }, h("div", { key: 'aeed248057b80b9fe32268bfe626f60528f9eda5', class: "spw-dropdown-container" }, h("slot", { key: 'b8b91107d4d1de0f882256b4a2578766c5017e5a' }))));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "spw-dropdown-container"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -69,7 +69,7 @@ export class SpwDropdownItem {
|
|
|
69
69
|
'spw-dropdown-item__toggle': true,
|
|
70
70
|
'spw-dropdown-item__toggle--open': this.subItemsOpen,
|
|
71
71
|
};
|
|
72
|
-
return (h(Host, { key: '
|
|
72
|
+
return (h(Host, { key: '1596a4172e1e8eefbfa765546719c55e2c98f3d5' }, h(Tag, { key: '24ae4e7ba274e59218030e38153d7c4c0493a835', class: this.classes, href: this.href, "aria-disabled": this.disabled ? 'true' : undefined, onClick: this.handleItemClick }, this.icon && (h("div", { key: '4b8b5d3739afbabc92d67182a4a9a978f9af6a6b', class: "spw-dropdown-item__icon" }, h("spw-icon", { key: 'fed0d8d7561105acca93330014763cb1fe812b71', variant: this.iconVariant, icon: this.icon }))), h("div", { key: '6e9f0758fa21309ebf4a26143987510e2c610cf3', class: "spw-dropdown-item__content" }, h("div", { key: 'a0d0da494fc950e1fd06214143b7aa87af92bfec', class: "spw-dropdown-item__label" }, h("slot", { key: '6d8c7a857150d96359abd2a1c856905a7c170ae9' })), this.hasSubItems && (h("div", { key: '19cd50f2dde61fadb6e121b831c1518abf0e54e9', class: toggleClasses, onClick: this.handleToggleSubItems }, h("spw-icon", { key: 'f04c856a18d549c40b68d702f2d27a2b930bd881', icon: "fa-chevron-down" }))))), this.hasSubItems && (h("div", { key: '11b2e9dac24ea9232cb03d8e6332f056408f657d', class: "spw-dropdown-item__sub-items", style: { display: this.subItemsOpen ? 'block' : 'none' } }, h("slot", { key: 'fa0fa7f551ef87ab9ad0a8fe16e5fb5f21244fbc', name: "sub-items" })))));
|
|
73
73
|
}
|
|
74
74
|
static get is() { return "spw-dropdown-item"; }
|
|
75
75
|
static get originalStyleUrls() {
|
|
@@ -19,6 +19,7 @@ export class SpwDropdown {
|
|
|
19
19
|
if (!slotContent)
|
|
20
20
|
return;
|
|
21
21
|
this.isVisible = true;
|
|
22
|
+
this.spwDropdownOpen.emit();
|
|
22
23
|
this.dropdownEl = document.createElement('div');
|
|
23
24
|
this.dropdownEl.className = `spw-dropdown-fixed spw-dropdown-fixed--${this.direction}`;
|
|
24
25
|
if (this.hasPadding)
|
|
@@ -39,6 +40,7 @@ export class SpwDropdown {
|
|
|
39
40
|
return;
|
|
40
41
|
this.isVisible = false;
|
|
41
42
|
this.open = false;
|
|
43
|
+
this.spwDropdownClose.emit();
|
|
42
44
|
if (this.dropdownEl && this.movedContentEl) {
|
|
43
45
|
this.host.appendChild(this.movedContentEl);
|
|
44
46
|
}
|
|
@@ -130,7 +132,7 @@ export class SpwDropdown {
|
|
|
130
132
|
dropdown.style.visibility = 'visible';
|
|
131
133
|
}
|
|
132
134
|
render() {
|
|
133
|
-
return (h("div", { key: '
|
|
135
|
+
return (h("div", { key: '69f5c85c85f197d1e2627f51f38026a124c8adc9', class: "spw-dropdown__trigger", onClick: () => (this.open = !this.open) }, h("slot", { key: '4738589550833682aa02288bde77dbfc248caf51' })));
|
|
134
136
|
}
|
|
135
137
|
static get is() { return "spw-dropdown"; }
|
|
136
138
|
static get encapsulation() { return "shadow"; }
|
|
@@ -233,6 +235,39 @@ export class SpwDropdown {
|
|
|
233
235
|
"isVisible": {}
|
|
234
236
|
};
|
|
235
237
|
}
|
|
238
|
+
static get events() {
|
|
239
|
+
return [{
|
|
240
|
+
"method": "spwDropdownOpen",
|
|
241
|
+
"name": "spwDropdownOpen",
|
|
242
|
+
"bubbles": true,
|
|
243
|
+
"cancelable": true,
|
|
244
|
+
"composed": true,
|
|
245
|
+
"docs": {
|
|
246
|
+
"tags": [],
|
|
247
|
+
"text": "\u00C9v\u00E9nement \u00E9mis quand le dropdown s'ouvre"
|
|
248
|
+
},
|
|
249
|
+
"complexType": {
|
|
250
|
+
"original": "void",
|
|
251
|
+
"resolved": "void",
|
|
252
|
+
"references": {}
|
|
253
|
+
}
|
|
254
|
+
}, {
|
|
255
|
+
"method": "spwDropdownClose",
|
|
256
|
+
"name": "spwDropdownClose",
|
|
257
|
+
"bubbles": true,
|
|
258
|
+
"cancelable": true,
|
|
259
|
+
"composed": true,
|
|
260
|
+
"docs": {
|
|
261
|
+
"tags": [],
|
|
262
|
+
"text": "\u00C9v\u00E9nement \u00E9mis quand le dropdown se ferme"
|
|
263
|
+
},
|
|
264
|
+
"complexType": {
|
|
265
|
+
"original": "void",
|
|
266
|
+
"resolved": "void",
|
|
267
|
+
"references": {}
|
|
268
|
+
}
|
|
269
|
+
}];
|
|
270
|
+
}
|
|
236
271
|
static get methods() {
|
|
237
272
|
return {
|
|
238
273
|
"close": {
|
|
@@ -21,7 +21,7 @@ export class SpwFieldLabel {
|
|
|
21
21
|
return !!(this.tooltipText || this.tooltipTitle);
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: '2b8692efd1b89269954369f9b5a7c3ca93bdb373' }, h("label", { key: 'ea0528fd37014887aa69ec5daa0b5bd27fa0c587', class: "spw-field-label", htmlFor: this.name, onClick: this.handleClick }, h("span", { key: 'f6b5d82cb06a872eafa95e59d583d5fe5d9f10a7', class: "spw-field-label__text" }, this.label), this.hasTooltip && (h("spw-tooltip", { key: '52ae36c3a49b219378f161b9d3836cc2eddfbe77', tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, maxWidth: this.tooltipMaxWidth, direction: this.tooltipDirection, cursor: this.tooltipCursor }, h("spw-icon", { key: 'ad8cc7d2edf098f79776fa96c93d249cd593a048', variant: "fa-regular", icon: "fa-circle-info", class: "spw-field-label__icon" }))), this.required && h("span", { key: 'f512051ad319f4e0b1c985cbb931076662140505', class: "spw-field-label__required" }, "*"))));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "spw-field-label"; }
|
|
27
27
|
static get encapsulation() { return "shadow"; }
|
|
@@ -25,7 +25,7 @@ export class SpwFieldMessage {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: '910e4185ba899bff2dd459a6511858312e1a48c8' }, h("div", { key: '8bfc190c38b5c0670416697d10949fc579c3567d', class: this.elementClass }, this.showIcon && (h("div", { key: 'e9c7cb9ac764d1149b741b2e8c9b6d10324e9c87', class: "spw-field-message__icon" }, h("spw-icon", { key: 'c68c05e5250f151ddddaa9aaa735040fb095849c', icon: this.variantIcon }))), h("span", { key: '7c6d9ced9d81496e65f4f02a111a731458e7d3b4', class: "spw-field-message__text" }, h("slot", { key: 'ec50fc1f5c1d082f293601dcb94ab412177053ec' })))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "spw-field-message"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -221,10 +221,10 @@ export class SpwFileUpload {
|
|
|
221
221
|
render() {
|
|
222
222
|
const inputTextNoDrop = this.multiple ? 'Choisir vos fichiers...' : 'Choisir votre fichier...';
|
|
223
223
|
const inputTextDrop = this.multiple ? 'Déposez vos fichiers ici' : 'Déposez votre fichier ici';
|
|
224
|
-
return (h("div", { key: '
|
|
224
|
+
return (h("div", { key: '71112781ef43b1aa8f4949a0e077852d1c2dfbdf', class: this.elementClass, onDragOver: this.handleDragOver.bind(this), onDragLeave: this.handleDragLeave.bind(this), onDrop: this.handleDrop.bind(this) }, h("input", { key: '784c5cdd9cd48c9e2752b631b5f565daa0f03e19', type: "file", ref: el => (this.inputElement = el), onChange: this.handleFileChange.bind(this), name: this.name, multiple: this.multiple, accept: this.accept, style: { display: 'none' }, disabled: this.isMaxFilesReached }), this.enableDropZone ? (h("div", { tabindex: this.disabled || this.isMaxFilesReached ? -1 : 0, onKeyDown: this.handleKeydown.bind(this), onClick: () => !this.disabled && !this.isMaxFilesReached && this.inputElement.click(), class: "spw-file-upload__dropzone" }, inputTextDrop, " ou ", h("span", { class: "spw-file-upload__dropzone-link" }, "choisissez sur votre ordinateur..."))) : (h("spw-button", { variant: "secondary", onClick: () => !this.disabled && !this.isMaxFilesReached && this.inputElement.click(), disabled: this.disabled || this.isMaxFilesReached }, inputTextNoDrop)), h("div", { key: '7397f66a134a686290fc0ef68e688c723c6c939c', class: "spw-file-upload__hints" }, this.hintsMessages.length > 0 && (h("ul", { key: 'b1145fefb6c007e21c40154d2044c2e8ac8d031d' }, this.hintsMessages.map((message, index) => (h("li", { key: index }, message)))))), h("div", { key: 'a9453e3eb05187f1b52d14199f2d67336fdc9d88', class: "spw-file-upload__info" }, this.selectedFiles.length > 0 ? (h("ul", { class: "spw-file-upload__info-list" }, this.selectedFiles.map((file, index) => (h("li", { key: index }, h("span", { class: "spw-file-upload__info-list-name" }, file.name), h("div", { class: "spw-file-upload__info-list-actions" }, h("span", { class: "spw-file-upload__spacing" }, formatFileSize(file.size)), h("a", { class: "spw-file-upload__info-list-delete", href: "#", onClick: e => {
|
|
225
225
|
e.preventDefault();
|
|
226
226
|
this.removeFile(index);
|
|
227
|
-
} }, "Supprimer"))))))) : (''), this.fileLimitErrors.length > 0 && (h("ul", { key: '
|
|
227
|
+
} }, "Supprimer"))))))) : (''), this.fileLimitErrors.length > 0 && (h("ul", { key: 'dc302035aae13502d1069ead4d9bbcc6b009a7c9', class: `spw-file-upload__errors ${this.isMaxFilesReachedExact ? 'spw-file-upload__errors--warning' : ''}` }, this.fileLimitErrors.map((message, index) => (h("li", { key: index }, h("spw-icon", { class: "spw-file-upload__spacing", icon: this.isMaxFilesReachedExact ? 'fa-circle-exclamation' : 'fa-warning' }), message))))), this.fileTypeErrors.length > 0 && (h("ul", { key: 'cdd8241ad727032162872d1bb8df5f82a4ec4e57', class: "spw-file-upload__errors" }, this.fileTypeErrors.map((message, index) => (h("li", { key: index }, h("spw-icon", { class: "spw-file-upload__spacing", icon: "fa-warning" }), message))))))));
|
|
228
228
|
}
|
|
229
229
|
static get is() { return "spw-file-upload"; }
|
|
230
230
|
static get encapsulation() { return "shadow"; }
|