@spw-ds/spw-stencil-library 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cem.json +16833 -0
- package/dist/cjs/{index-CGg8f9_X.js → index-DvyqwgdS.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/spw-accordion_4.cjs.entry.js +1 -1
- package/dist/cjs/spw-avatar.cjs.entry.js +2 -2
- package/dist/cjs/spw-block-content.cjs.entry.js +26 -4
- package/dist/cjs/spw-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/spw-button_2.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-excerpt.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-image.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-subtag-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-subtags.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-title.cjs.entry.js +1 -1
- package/dist/cjs/spw-card.cjs.entry.js +2 -2
- package/dist/cjs/spw-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/spw-cookies.cjs.entry.js +1 -1
- package/dist/cjs/spw-custom-select.cjs.entry.js +80 -6
- package/dist/cjs/spw-date-picker.cjs.entry.js +128 -10
- package/dist/cjs/spw-dropdown-container.cjs.entry.js +1 -1
- package/dist/cjs/spw-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/spw-field-label_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 +49 -18
- package/dist/cjs/spw-footer-bottom.cjs.entry.js +1 -1
- package/dist/cjs/spw-footer-content-col.cjs.entry.js +1 -1
- package/dist/cjs/spw-footer-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-footer-link.cjs.entry.js +1 -1
- package/dist/cjs/spw-footer.cjs.entry.js +1 -1
- package/dist/cjs/spw-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-grid.cjs.entry.js +1 -1
- package/dist/cjs/spw-header-lang.cjs.entry.js +1 -1
- package/dist/cjs/spw-header-navigation-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/spw-header-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-header-navigation.cjs.entry.js +1 -1
- package/dist/cjs/spw-header-persona-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-header-persona.cjs.entry.js +1 -1
- package/dist/cjs/spw-header.cjs.entry.js +1 -1
- package/dist/cjs/spw-hero.cjs.entry.js +6 -5
- package/dist/cjs/spw-illustration.cjs.entry.js +1 -1
- package/dist/cjs/spw-input-slider.cjs.entry.js +1 -1
- package/dist/cjs/spw-list-description.cjs.entry.js +1 -1
- package/dist/cjs/spw-list-item.cjs.entry.js +8 -4
- 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 +2 -2
- package/dist/cjs/spw-modal.cjs.entry.js +23 -13
- package/dist/cjs/spw-mosaic-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-mosaic.cjs.entry.js +6 -4
- package/dist/cjs/spw-pagination.cjs.entry.js +7 -7
- package/dist/cjs/spw-radio.cjs.entry.js +2 -2
- package/dist/cjs/spw-scrolltop.cjs.entry.js +2 -2
- package/dist/cjs/spw-search-field.cjs.entry.js +33 -11
- package/dist/cjs/spw-select.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidebar-navigation-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/spw-sidebar-navigation-item.cjs.entry.js +4 -4
- package/dist/cjs/spw-sidebar-navigation-separator.cjs.entry.js +2 -2
- package/dist/cjs/spw-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/spw-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/spw-slider-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-slider.cjs.entry.js +3 -3
- package/dist/cjs/spw-socials.cjs.entry.js +2 -2
- package/dist/cjs/spw-stencil-library.cjs.js +2 -2
- package/dist/cjs/spw-table-body.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-container.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-footer.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-head.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-header.cjs.entry.js +3 -3
- package/dist/cjs/spw-table-row.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/spw-table.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-tabs-navigation.cjs.entry.js +2 -2
- package/dist/cjs/spw-tabs.cjs.entry.js +2 -2
- package/dist/cjs/spw-tag.cjs.entry.js +2 -2
- package/dist/cjs/spw-text-field.cjs.entry.js +21 -3
- package/dist/cjs/spw-textarea.cjs.entry.js +2 -2
- package/dist/cjs/spw-tile-description.cjs.entry.js +2 -2
- package/dist/cjs/spw-tile-title.cjs.entry.js +2 -2
- package/dist/cjs/spw-tile.cjs.entry.js +2 -2
- package/dist/cjs/spw-timeline-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-timeline.cjs.entry.js +3 -3
- package/dist/cjs/spw-toc-container.cjs.entry.js +1 -1
- package/dist/cjs/spw-toc-navigation.cjs.entry.js +1 -1
- package/dist/cjs/spw-toc.cjs.entry.js +2 -2
- package/dist/cjs/spw-topbar.cjs.entry.js +2 -2
- package/dist/cjs/spw-wizard-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-wizard.cjs.entry.js +2 -2
- package/dist/collection/components/spw-avatar/spw-avatar.css +1 -1
- package/dist/collection/components/spw-block-content/spw-block-content.css +130 -10
- package/dist/collection/components/spw-block-content/spw-block-content.js +124 -6
- package/dist/collection/components/spw-button/spw-button.css +12 -0
- package/dist/collection/components/spw-card/spw-card-image/spw-card-image.css +1 -0
- package/dist/collection/components/spw-card/spw-card.css +4 -0
- package/dist/collection/components/spw-checkbox/spw-checkbox.css +7 -0
- package/dist/collection/components/spw-custom-select/spw-custom-select.css +18 -0
- package/dist/collection/components/spw-custom-select/spw-custom-select.js +97 -4
- package/dist/collection/components/spw-date-picker/spw-date-picker.css +8 -0
- package/dist/collection/components/spw-date-picker/spw-date-picker.js +165 -8
- package/dist/collection/components/spw-file-upload/spw-file-upload.js +368 -17
- package/dist/collection/components/spw-group/spw-group.css +7 -0
- package/dist/collection/components/spw-hero/spw-hero.css +12 -3
- package/dist/collection/components/spw-hero/spw-hero.js +23 -3
- package/dist/collection/components/spw-illustration/spw-illustration.css +4 -0
- package/dist/collection/components/spw-link/spw-link.css +9 -2
- package/dist/collection/components/spw-list/spw-list-item/spw-list-item.js +7 -3
- package/dist/collection/components/spw-loading/spw-loading.css +2 -0
- package/dist/collection/components/spw-message/spw-message.css +20 -0
- package/dist/collection/components/spw-modal/spw-modal.css +84 -7
- package/dist/collection/components/spw-modal/spw-modal.js +44 -13
- package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.css +6 -2
- package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.js +1 -1
- package/dist/collection/components/spw-mosaic/spw-mosaic.css +3 -0
- package/dist/collection/components/spw-mosaic/spw-mosaic.js +4 -2
- package/dist/collection/components/spw-pagination/spw-pagination.js +6 -6
- package/dist/collection/components/spw-radio/spw-radio.js +1 -1
- package/dist/collection/components/spw-scrolltop/spw-scrolltop.js +1 -1
- package/dist/collection/components/spw-search-field/spw-search-field.css +23 -0
- package/dist/collection/components/spw-search-field/spw-search-field.js +35 -9
- package/dist/collection/components/spw-separator/spw-separator.js +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-dropdown/spw-sidebar-navigation-dropdown.js +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-item/spw-sidebar-navigation-item.js +3 -3
- package/dist/collection/components/spw-sidebar/spw-sidebar-navigation-separator/spw-sidebar-navigation-separator.js +1 -1
- package/dist/collection/components/spw-sidebar/spw-sidebar.js +1 -1
- package/dist/collection/components/spw-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 +2 -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-tabs/spw-tabs-navigation/spw-tabs-navigation.js +1 -1
- package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.css +5 -0
- package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.js +22 -3
- package/dist/collection/components/spw-tabs/spw-tabs.js +1 -1
- package/dist/collection/components/spw-tag/spw-tag.js +1 -1
- package/dist/collection/components/spw-text-field/spw-text-field.css +37 -0
- package/dist/collection/components/spw-text-field/spw-text-field.js +39 -1
- package/dist/collection/components/spw-textarea/spw-textarea.js +1 -1
- package/dist/collection/components/spw-theme-provider/spw-theme-provider.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile.js +1 -1
- package/dist/collection/components/spw-timeline/spw-timeline-item/spw-timeline-item.js +2 -2
- package/dist/collection/components/spw-timeline/spw-timeline.js +2 -2
- package/dist/collection/components/spw-toc/spw-toc.js +1 -1
- package/dist/collection/components/spw-tooltip/spw-tooltip.js +1 -1
- package/dist/collection/components/spw-topbar/spw-topbar.js +1 -1
- package/dist/collection/components/spw-wizard/spw-wizard-item/spw-wizard-item.js +1 -1
- package/dist/collection/components/spw-wizard/spw-wizard.js +1 -1
- package/dist/collection/stories/components/spw-search-field/spw-search-field.stories.js +143 -0
- package/dist/collection/stories/components/spw-textarea/spw-textarea.stories.js +6 -6
- package/dist/collection/stories/organisms/spw-block-content/spw-block-content.stories.js +15 -0
- package/dist/collection/utils/utils.js +25 -16
- package/dist/components/index.js +1 -1
- package/dist/components/p--N4W3bqs.js +1 -0
- package/dist/components/{p-C2um7CKN.js → p-BcS3VsZ9.js} +1 -1
- package/dist/components/p-CN8ujUL2.js +1 -0
- package/dist/components/p-CwkSs-Bb.js +1 -0
- package/dist/components/{p-7oLmQmmE.js → p-D_3btjGy.js} +1 -1
- package/dist/components/p-bAkyQE_m.js +1 -0
- package/dist/components/{p-Cy-dX0dz.js → p-p1L06Ar7.js} +1 -1
- package/dist/components/{p-BqvDpR82.js → p-pZQnbZwX.js} +1 -1
- package/dist/components/spw-avatar.js +1 -1
- package/dist/components/spw-block-content.js +1 -1
- package/dist/components/spw-breadcrumb-item.js +1 -1
- package/dist/components/spw-button.js +1 -1
- package/dist/components/spw-card.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-field-label.js +1 -1
- package/dist/components/spw-file-upload.js +1 -1
- package/dist/components/spw-group.js +1 -1
- package/dist/components/spw-header-lang.js +1 -1
- package/dist/components/spw-header-navigation-dropdown.js +1 -1
- package/dist/components/spw-header-navigation.js +1 -1
- package/dist/components/spw-header.js +1 -1
- package/dist/components/spw-hero.js +1 -1
- package/dist/components/spw-input-slider.js +1 -1
- package/dist/components/spw-link.js +1 -1
- package/dist/components/spw-list-item.js +1 -1
- package/dist/components/spw-message.js +1 -1
- package/dist/components/spw-modal.js +1 -1
- package/dist/components/spw-mosaic-item.js +1 -1
- package/dist/components/spw-mosaic.js +1 -1
- package/dist/components/spw-pagination.js +1 -1
- package/dist/components/spw-radio.js +1 -1
- package/dist/components/spw-scrolltop.js +1 -1
- package/dist/components/spw-search-field.js +1 -1
- package/dist/components/spw-select.js +1 -1
- package/dist/components/spw-separator.js +1 -1
- package/dist/components/spw-sidebar-navigation-dropdown.js +1 -1
- package/dist/components/spw-sidebar-navigation-item.js +1 -1
- package/dist/components/spw-sidebar-navigation-separator.js +1 -1
- package/dist/components/spw-sidebar.js +1 -1
- package/dist/components/spw-skeleton.js +1 -1
- package/dist/components/spw-slider-item.js +1 -1
- package/dist/components/spw-slider.js +1 -1
- package/dist/components/spw-socials.js +1 -1
- package/dist/components/spw-table-body.js +1 -1
- package/dist/components/spw-table-cell.js +1 -1
- package/dist/components/spw-table-container.js +1 -1
- package/dist/components/spw-table-footer.js +1 -1
- package/dist/components/spw-table-head.js +1 -1
- package/dist/components/spw-table-header.js +1 -1
- package/dist/components/spw-table-row.js +1 -1
- package/dist/components/spw-table-sidebar.js +1 -1
- package/dist/components/spw-tabs-navigation-item.js +1 -1
- package/dist/components/spw-tabs-navigation.js +1 -1
- package/dist/components/spw-tabs.js +1 -1
- package/dist/components/spw-tag.js +1 -1
- package/dist/components/spw-text-field.js +1 -1
- package/dist/components/spw-textarea.js +1 -1
- package/dist/components/spw-theme-provider.js +1 -1
- package/dist/components/spw-tile-description.js +1 -1
- package/dist/components/spw-tile-title.js +1 -1
- package/dist/components/spw-tile.js +1 -1
- package/dist/components/spw-timeline-item.js +1 -1
- package/dist/components/spw-timeline.js +1 -1
- package/dist/components/spw-toc.js +1 -1
- package/dist/components/spw-tooltip.js +1 -1
- package/dist/components/spw-topbar.js +1 -1
- package/dist/components/spw-wizard-item.js +1 -1
- package/dist/components/spw-wizard.js +1 -1
- package/dist/components_json.json +1224 -44
- package/dist/esm/{index-DNZ0HWFd.js → index-i_vaVhzg.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/spw-accordion_4.entry.js +1 -1
- package/dist/esm/spw-avatar.entry.js +2 -2
- package/dist/esm/spw-block-content.entry.js +26 -4
- package/dist/esm/spw-breadcrumb-item.entry.js +1 -1
- package/dist/esm/spw-breadcrumb.entry.js +1 -1
- package/dist/esm/spw-button_2.entry.js +2 -2
- package/dist/esm/spw-card-content.entry.js +1 -1
- package/dist/esm/spw-card-excerpt.entry.js +1 -1
- package/dist/esm/spw-card-image.entry.js +1 -1
- package/dist/esm/spw-card-subtag-item.entry.js +1 -1
- package/dist/esm/spw-card-subtags.entry.js +1 -1
- package/dist/esm/spw-card-title.entry.js +1 -1
- package/dist/esm/spw-card.entry.js +2 -2
- package/dist/esm/spw-checkbox.entry.js +2 -2
- package/dist/esm/spw-cookies.entry.js +1 -1
- package/dist/esm/spw-custom-select.entry.js +80 -6
- package/dist/esm/spw-date-picker.entry.js +128 -10
- package/dist/esm/spw-dropdown-container.entry.js +1 -1
- package/dist/esm/spw-dropdown-item.entry.js +1 -1
- package/dist/esm/spw-dropdown.entry.js +1 -1
- package/dist/esm/spw-field-label_7.entry.js +7 -7
- package/dist/esm/spw-field-message.entry.js +1 -1
- package/dist/esm/spw-file-upload.entry.js +49 -18
- package/dist/esm/spw-footer-bottom.entry.js +1 -1
- package/dist/esm/spw-footer-content-col.entry.js +1 -1
- package/dist/esm/spw-footer-content.entry.js +1 -1
- package/dist/esm/spw-footer-link.entry.js +1 -1
- package/dist/esm/spw-footer.entry.js +1 -1
- package/dist/esm/spw-grid-item.entry.js +1 -1
- package/dist/esm/spw-grid.entry.js +1 -1
- package/dist/esm/spw-header-lang.entry.js +1 -1
- package/dist/esm/spw-header-navigation-dropdown.entry.js +1 -1
- package/dist/esm/spw-header-navigation-item.entry.js +1 -1
- package/dist/esm/spw-header-navigation.entry.js +1 -1
- package/dist/esm/spw-header-persona-item.entry.js +1 -1
- package/dist/esm/spw-header-persona.entry.js +1 -1
- package/dist/esm/spw-header.entry.js +1 -1
- package/dist/esm/spw-hero.entry.js +6 -5
- package/dist/esm/spw-illustration.entry.js +1 -1
- 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 +8 -4
- 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 +2 -2
- package/dist/esm/spw-modal.entry.js +23 -13
- package/dist/esm/spw-mosaic-item.entry.js +3 -3
- package/dist/esm/spw-mosaic.entry.js +6 -4
- package/dist/esm/spw-pagination.entry.js +7 -7
- package/dist/esm/spw-radio.entry.js +2 -2
- package/dist/esm/spw-scrolltop.entry.js +2 -2
- package/dist/esm/spw-search-field.entry.js +33 -11
- package/dist/esm/spw-select.entry.js +1 -1
- package/dist/esm/spw-sidebar-navigation-dropdown.entry.js +2 -2
- package/dist/esm/spw-sidebar-navigation-item.entry.js +4 -4
- package/dist/esm/spw-sidebar-navigation-separator.entry.js +2 -2
- package/dist/esm/spw-sidebar.entry.js +2 -2
- package/dist/esm/spw-skeleton.entry.js +2 -2
- package/dist/esm/spw-slider-item.entry.js +2 -2
- package/dist/esm/spw-slider.entry.js +3 -3
- package/dist/esm/spw-socials.entry.js +2 -2
- package/dist/esm/spw-stencil-library.js +3 -3
- package/dist/esm/spw-table-body.entry.js +2 -2
- package/dist/esm/spw-table-cell.entry.js +2 -2
- package/dist/esm/spw-table-container.entry.js +2 -2
- package/dist/esm/spw-table-footer.entry.js +2 -2
- package/dist/esm/spw-table-head.entry.js +2 -2
- package/dist/esm/spw-table-header.entry.js +3 -3
- package/dist/esm/spw-table-row.entry.js +2 -2
- package/dist/esm/spw-table-sidebar.entry.js +2 -2
- package/dist/esm/spw-table.entry.js +1 -1
- package/dist/esm/spw-tabs-content.entry.js +1 -1
- package/dist/esm/spw-tabs-navigation-item.entry.js +3 -3
- package/dist/esm/spw-tabs-navigation.entry.js +2 -2
- package/dist/esm/spw-tabs.entry.js +2 -2
- package/dist/esm/spw-tag.entry.js +2 -2
- package/dist/esm/spw-text-field.entry.js +21 -3
- package/dist/esm/spw-textarea.entry.js +2 -2
- package/dist/esm/spw-tile-description.entry.js +2 -2
- package/dist/esm/spw-tile-title.entry.js +2 -2
- package/dist/esm/spw-tile.entry.js +2 -2
- package/dist/esm/spw-timeline-item.entry.js +3 -3
- package/dist/esm/spw-timeline.entry.js +3 -3
- package/dist/esm/spw-toc-container.entry.js +1 -1
- package/dist/esm/spw-toc-navigation.entry.js +1 -1
- package/dist/esm/spw-toc.entry.js +2 -2
- package/dist/esm/spw-topbar.entry.js +2 -2
- package/dist/esm/spw-wizard-item.entry.js +2 -2
- package/dist/esm/spw-wizard.entry.js +2 -2
- package/dist/spw-stencil-library/{p-1ae9d66b.entry.js → p-0478a2c9.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-aaa5636b.entry.js → p-04d17fe5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6510e984.entry.js → p-05e0c3eb.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-724eee10.entry.js → p-08a38490.entry.js} +1 -1
- package/dist/spw-stencil-library/p-13b4f9bc.entry.js +1 -0
- package/dist/spw-stencil-library/{p-4764e6e0.entry.js → p-15c7bf4f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a457bd16.entry.js → p-18164671.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d5d2f9f8.entry.js → p-19c1284b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-375f88d3.entry.js → p-1a501761.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5e79839f.entry.js → p-1cf66055.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-77e3a560.entry.js → p-240d8e13.entry.js} +1 -1
- package/dist/spw-stencil-library/p-28e8aa65.entry.js +1 -0
- package/dist/spw-stencil-library/{p-37347400.entry.js → p-2a49896f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a16a6ee3.entry.js → p-2caaa9c2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5ad98e86.entry.js → p-2db4b489.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-dd4bd13d.entry.js → p-2f31ef25.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e572bd8b.entry.js → p-3249593b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-be0c6609.entry.js → p-37abba34.entry.js} +1 -1
- package/dist/spw-stencil-library/p-38f35b43.entry.js +1 -0
- package/dist/spw-stencil-library/{p-9156e2cc.entry.js → p-3c563ca2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f958aabf.entry.js → p-3d636e2c.entry.js} +1 -1
- package/dist/spw-stencil-library/p-4148a98f.entry.js +1 -0
- package/dist/spw-stencil-library/p-42368b16.entry.js +1 -0
- package/dist/spw-stencil-library/p-43091001.entry.js +1 -0
- package/dist/spw-stencil-library/{p-31fc0d76.entry.js → p-4360ea7b.entry.js} +1 -1
- package/dist/spw-stencil-library/p-44f52ede.entry.js +1 -0
- package/dist/spw-stencil-library/{p-0fe88118.entry.js → p-481585cd.entry.js} +1 -1
- package/dist/spw-stencil-library/p-48828a6a.entry.js +1 -0
- package/dist/spw-stencil-library/{p-fa39b517.entry.js → p-49dce57b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a74b8c56.entry.js → p-501c3985.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a62e75d7.entry.js → p-575e048f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-327fa3e5.entry.js → p-5a8c56d8.entry.js} +2 -2
- package/dist/spw-stencil-library/{p-1fad50b0.entry.js → p-5bc4b3ad.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-edb98ec3.entry.js → p-65b0a975.entry.js} +1 -1
- package/dist/spw-stencil-library/p-6e02c03b.entry.js +1 -0
- package/dist/spw-stencil-library/{p-f4c9fe35.entry.js → p-71713147.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ab9bd917.entry.js → p-750d30e1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-87efcf90.entry.js → p-7b4d2c1e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d7b03752.entry.js → p-7e9eaaf4.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-00829e69.entry.js → p-7fbc61e4.entry.js} +1 -1
- package/dist/spw-stencil-library/p-8029def2.entry.js +1 -0
- package/dist/spw-stencil-library/p-8ab1c03e.entry.js +1 -0
- package/dist/spw-stencil-library/{p-1a43879a.entry.js → p-8bf5a952.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e83f4dd9.entry.js → p-8c20296d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-dfa82fb0.entry.js → p-8c289268.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4aa8f4bf.entry.js → p-8e1fbd85.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-89cefdcf.entry.js → p-923b7ed8.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ae198f34.entry.js → p-92e317a4.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ed4c861f.entry.js → p-943588f2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-22b043dd.entry.js → p-99d36a68.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4d8d46e6.entry.js → p-9ed189ab.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c7dcf793.entry.js → p-9f0c7849.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-14a660ac.entry.js → p-a1b76676.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-29cc06e9.entry.js → p-a2b65704.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-14d14ae2.entry.js → p-a952a97d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ecfd8d0a.entry.js → p-a9c7422d.entry.js} +1 -1
- package/dist/spw-stencil-library/p-a9cf9e71.entry.js +1 -0
- package/dist/spw-stencil-library/{p-59724176.entry.js → p-abb2edc6.entry.js} +1 -1
- package/dist/spw-stencil-library/p-ad4f780f.entry.js +1 -0
- package/dist/spw-stencil-library/{p-f36ac36b.entry.js → p-af068b38.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-461dbb77.entry.js → p-b226ca7b.entry.js} +1 -1
- package/dist/spw-stencil-library/p-b3287d31.entry.js +1 -0
- package/dist/spw-stencil-library/{p-7ee48374.entry.js → p-b841d377.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-bb4a0f1c.entry.js → p-ba64633d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4618e516.entry.js → p-c1aaf055.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-dc886ffd.entry.js → p-c262f348.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-8fea1c7b.entry.js → p-c60f4d0d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1ca7aecb.entry.js → p-c7e173fb.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3ba55fa6.entry.js → p-c8be5dba.entry.js} +1 -1
- package/dist/spw-stencil-library/p-cbcae74f.entry.js +1 -0
- package/dist/spw-stencil-library/{p-fba1aea3.entry.js → p-d09983aa.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3df6280e.entry.js → p-d2624de2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9c97f183.entry.js → p-d28ba38e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-bf656c7e.entry.js → p-d5a0101b.entry.js} +1 -1
- package/dist/spw-stencil-library/p-d6e75066.entry.js +1 -0
- package/dist/spw-stencil-library/{p-c1209aa5.entry.js → p-d8861b95.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1c059cfd.entry.js → p-da1faeb1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b746a5b1.entry.js → p-df634f09.entry.js} +1 -1
- package/dist/spw-stencil-library/p-e111968c.entry.js +1 -0
- package/dist/spw-stencil-library/{p-cc679461.entry.js → p-e7d4987e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6b113e71.entry.js → p-ea1bfddb.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-73b2e94c.entry.js → p-ef20914c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-69e1e8e1.entry.js → p-f09fee4e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b0028796.entry.js → p-f4761dc5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d5825b95.entry.js → p-f674626b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3dc88b13.entry.js → p-f6e80332.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-8956e7de.entry.js → p-fbdaa431.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b0582aa7.entry.js → p-fe036751.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-DNZ0HWFd.js → p-i_vaVhzg.js} +1 -1
- package/dist/spw-stencil-library/spw-stencil-library.css +1 -1
- package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
- package/dist/stats.json +3414 -1501
- package/dist/types/components/spw-block-content/spw-block-content.d.ts +14 -3
- package/dist/types/components/spw-custom-select/spw-custom-select.d.ts +8 -0
- package/dist/types/components/spw-date-picker/spw-date-picker.d.ts +11 -1
- package/dist/types/components/spw-file-upload/spw-file-upload.d.ts +32 -0
- package/dist/types/components/spw-hero/spw-hero.d.ts +2 -0
- package/dist/types/components/spw-modal/spw-modal.d.ts +6 -3
- package/dist/types/components/spw-search-field/spw-search-field.d.ts +4 -1
- package/dist/types/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.d.ts +3 -1
- package/dist/types/components/spw-text-field/spw-text-field.d.ts +4 -0
- package/dist/types/components.d.ts +303 -11
- package/dist/types/stories/organisms/spw-block-content/spw-block-content.stories.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -6
- package/hydrate/index.js +464 -129
- package/hydrate/index.mjs +464 -129
- package/package.json +1 -1
- package/dist/components/p-D63saAXj.js +0 -1
- package/dist/components/p-DVDmp5m3.js +0 -1
- package/dist/components/p-Df0o7KPW.js +0 -1
- package/dist/components/p-xo2kVNYT.js +0 -1
- package/dist/spw-stencil-library/p-08d179af.entry.js +0 -1
- package/dist/spw-stencil-library/p-36e62f2f.entry.js +0 -1
- package/dist/spw-stencil-library/p-37ef1e77.entry.js +0 -1
- package/dist/spw-stencil-library/p-456c24b0.entry.js +0 -1
- package/dist/spw-stencil-library/p-620519ea.entry.js +0 -1
- package/dist/spw-stencil-library/p-74014ca0.entry.js +0 -1
- package/dist/spw-stencil-library/p-772f56c1.entry.js +0 -1
- package/dist/spw-stencil-library/p-8a95adc5.entry.js +0 -1
- package/dist/spw-stencil-library/p-8ea775f1.entry.js +0 -1
- package/dist/spw-stencil-library/p-9c35e7cb.entry.js +0 -1
- package/dist/spw-stencil-library/p-ac73da88.entry.js +0 -1
- package/dist/spw-stencil-library/p-b1c1be45.entry.js +0 -1
- package/dist/spw-stencil-library/p-bf8f52ef.entry.js +0 -1
- package/dist/spw-stencil-library/p-d94bc511.entry.js +0 -1
- package/dist/spw-stencil-library/p-e4ef4e0a.entry.js +0 -1
- package/dist/spw-stencil-library/p-ef0e431d.entry.js +0 -1
- package/dist/spw-stencil-library/p-f5f93df5.entry.js +0 -1
|
@@ -378,21 +378,39 @@ template {
|
|
|
378
378
|
|
|
379
379
|
:host {
|
|
380
380
|
display: block;
|
|
381
|
-
--spw-block-content-blockquote-bg: var(--spw-colors-multi-branding-red-red-50);
|
|
382
|
-
--spw-block-content-blockquote-accent: var(--spw-colors-multi-branding-red-red-accent-3);
|
|
383
|
-
--spw-block-content-blockquote-text: var(--spw-colors-support-grey-grey-900);
|
|
384
381
|
}
|
|
385
382
|
|
|
383
|
+
:host(.spw-block-content--blockquote) .spw-block-content__blockquote-container {
|
|
384
|
+
margin: 0 !important;
|
|
385
|
+
padding: 0 !important;
|
|
386
|
+
padding-left: 20px !important;
|
|
387
|
+
}
|
|
388
|
+
@media (min-width: 768px) {
|
|
389
|
+
:host(.spw-block-content--blockquote) .spw-block-content__blockquote-container {
|
|
390
|
+
padding-left: 40px !important;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
386
393
|
:host(.spw-block-content--blockquote) .spw-block-content__blockquote {
|
|
387
394
|
margin: 0;
|
|
388
|
-
padding:
|
|
389
|
-
|
|
395
|
+
padding: 24px;
|
|
396
|
+
padding-left: 44px;
|
|
397
|
+
background-color: var(--spw-colors-multi-branding-red-red-50);
|
|
390
398
|
border-radius: 16px;
|
|
391
|
-
color: var(--spw-
|
|
399
|
+
color: var(--spw-colors-support-grey-grey-900);
|
|
392
400
|
display: flex;
|
|
393
401
|
flex-direction: column;
|
|
394
402
|
gap: 24px;
|
|
395
403
|
}
|
|
404
|
+
@media (min-width: 768px) {
|
|
405
|
+
:host(.spw-block-content--blockquote) .spw-block-content__blockquote {
|
|
406
|
+
padding: 32px;
|
|
407
|
+
padding-left: 72px;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
:host(.spw-block-content--blockquote):host(.spw-block-content--bg-neutral) .spw-block-content__blockquote {
|
|
411
|
+
background: var(--spw-colors-support-grey-grey-100);
|
|
412
|
+
color: var(--spw-colors-support-grey-grey-900);
|
|
413
|
+
}
|
|
396
414
|
:host(.spw-block-content--blockquote) .spw-block-content__quote {
|
|
397
415
|
display: flex;
|
|
398
416
|
gap: 16px;
|
|
@@ -401,21 +419,46 @@ template {
|
|
|
401
419
|
:host(.spw-block-content--blockquote) .spw-block-content__quote::before {
|
|
402
420
|
content: "“";
|
|
403
421
|
position: absolute;
|
|
404
|
-
left: -
|
|
405
|
-
font-size:
|
|
406
|
-
line-height: 1;
|
|
422
|
+
left: -44px;
|
|
423
|
+
font-size: 50px;
|
|
407
424
|
font-weight: 700;
|
|
408
425
|
color: var(--spw-colors-support-grey-grey-900);
|
|
409
426
|
flex-shrink: 0;
|
|
427
|
+
width: 40px;
|
|
428
|
+
height: 40px;
|
|
429
|
+
padding-top: 22px;
|
|
430
|
+
padding-right: 5px;
|
|
431
|
+
font-style: italic;
|
|
432
|
+
background: white;
|
|
433
|
+
border-radius: 50%;
|
|
434
|
+
display: inline-flex;
|
|
435
|
+
align-items: center;
|
|
436
|
+
justify-content: center;
|
|
437
|
+
transform: translateX(-50%);
|
|
438
|
+
}
|
|
439
|
+
@media (min-width: 768px) {
|
|
440
|
+
:host(.spw-block-content--blockquote) .spw-block-content__quote::before {
|
|
441
|
+
left: -72px;
|
|
442
|
+
font-size: 100px;
|
|
443
|
+
width: 80px;
|
|
444
|
+
height: 80px;
|
|
445
|
+
padding-top: 45px;
|
|
446
|
+
padding-right: 10px;
|
|
447
|
+
}
|
|
410
448
|
}
|
|
411
449
|
:host(.spw-block-content--blockquote) .spw-block-content__quote ::slotted(*) {
|
|
412
450
|
margin: 0;
|
|
413
451
|
padding-left: 16px;
|
|
414
|
-
font-size:
|
|
452
|
+
font-size: 21px;
|
|
415
453
|
font-style: italic;
|
|
416
454
|
font-weight: 700;
|
|
417
455
|
line-height: 1.4;
|
|
418
456
|
}
|
|
457
|
+
@media (min-width: 768px) {
|
|
458
|
+
:host(.spw-block-content--blockquote) .spw-block-content__quote ::slotted(*) {
|
|
459
|
+
font-size: 24px;
|
|
460
|
+
}
|
|
461
|
+
}
|
|
419
462
|
|
|
420
463
|
:host(.spw-block-content--banner-landscape),
|
|
421
464
|
:host(.spw-block-content--banner-portrait) {
|
|
@@ -425,14 +468,29 @@ template {
|
|
|
425
468
|
overflow: hidden;
|
|
426
469
|
position: relative;
|
|
427
470
|
}
|
|
471
|
+
:host(.spw-block-content--banner-landscape):host(.spw-block-content--bg-primary),
|
|
472
|
+
:host(.spw-block-content--banner-portrait):host(.spw-block-content--bg-primary) {
|
|
473
|
+
background: var(--spw-ds-primary);
|
|
474
|
+
color: white;
|
|
475
|
+
}
|
|
476
|
+
:host(.spw-block-content--banner-landscape):host(.spw-block-content--bg-neutral),
|
|
477
|
+
:host(.spw-block-content--banner-portrait):host(.spw-block-content--bg-neutral) {
|
|
478
|
+
background: var(--spw-colors-support-grey-grey-100);
|
|
479
|
+
color: var(--spw-colors-support-grey-grey-900);
|
|
480
|
+
}
|
|
428
481
|
:host(.spw-block-content--banner-landscape) .spw-block-content__link,
|
|
429
482
|
:host(.spw-block-content--banner-portrait) .spw-block-content__link {
|
|
430
483
|
display: block;
|
|
431
484
|
text-decoration: none;
|
|
432
485
|
color: inherit;
|
|
433
486
|
}
|
|
487
|
+
:host(.spw-block-content--banner-landscape) .spw-block-content__link:hover .spw-block-content__image img,
|
|
488
|
+
:host(.spw-block-content--banner-portrait) .spw-block-content__link:hover .spw-block-content__image img {
|
|
489
|
+
transform: scale(1.05);
|
|
490
|
+
}
|
|
434
491
|
:host(.spw-block-content--banner-landscape) .spw-block-content__image img,
|
|
435
492
|
:host(.spw-block-content--banner-portrait) .spw-block-content__image img {
|
|
493
|
+
transition: linear 0.2s transform;
|
|
436
494
|
display: block;
|
|
437
495
|
width: 100%;
|
|
438
496
|
height: 100%;
|
|
@@ -489,4 +547,66 @@ template {
|
|
|
489
547
|
:host(.spw-block-content--banner-portrait) .spw-block-content__content {
|
|
490
548
|
display: flex;
|
|
491
549
|
flex-direction: column;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
:host(.spw-block-content--callout) {
|
|
553
|
+
background: var(--spw-ds-primary);
|
|
554
|
+
color: white;
|
|
555
|
+
border-radius: 16px;
|
|
556
|
+
overflow: hidden;
|
|
557
|
+
}
|
|
558
|
+
:host(.spw-block-content--callout):host(.spw-block-content--bg-primary) {
|
|
559
|
+
background: var(--spw-ds-primary);
|
|
560
|
+
color: white;
|
|
561
|
+
}
|
|
562
|
+
:host(.spw-block-content--callout):host(.spw-block-content--bg-neutral) {
|
|
563
|
+
background: var(--spw-colors-support-grey-grey-100);
|
|
564
|
+
color: var(--spw-colors-support-grey-grey-900);
|
|
565
|
+
}
|
|
566
|
+
:host(.spw-block-content--callout) .spw-block-content__callout {
|
|
567
|
+
display: flex;
|
|
568
|
+
flex-direction: column;
|
|
569
|
+
padding: 16px;
|
|
570
|
+
gap: 8px;
|
|
571
|
+
}
|
|
572
|
+
@media (min-width: 1024px) {
|
|
573
|
+
:host(.spw-block-content--callout) .spw-block-content__callout {
|
|
574
|
+
flex-direction: row;
|
|
575
|
+
gap: 24px;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
:host(.spw-block-content--callout) .spw-block-content__image {
|
|
579
|
+
flex-shrink: 0;
|
|
580
|
+
border-radius: 8px;
|
|
581
|
+
overflow: hidden;
|
|
582
|
+
aspect-ratio: var(--spw-block-content-callout-ratio-mobile, 16/9);
|
|
583
|
+
}
|
|
584
|
+
@media (min-width: 768px) {
|
|
585
|
+
:host(.spw-block-content--callout) .spw-block-content__image {
|
|
586
|
+
aspect-ratio: var(--spw-block-content-callout-ratio-tablet, 16/9);
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
@media (min-width: 1024px) {
|
|
590
|
+
:host(.spw-block-content--callout) .spw-block-content__image {
|
|
591
|
+
width: 40%;
|
|
592
|
+
aspect-ratio: var(--spw-block-content-callout-ratio-desktop, auto);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
:host(.spw-block-content--callout) .spw-block-content__image img {
|
|
596
|
+
display: block;
|
|
597
|
+
width: 100%;
|
|
598
|
+
height: 100%;
|
|
599
|
+
object-fit: cover;
|
|
600
|
+
}
|
|
601
|
+
:host(.spw-block-content--callout) .spw-block-content__content {
|
|
602
|
+
display: flex;
|
|
603
|
+
flex-direction: column;
|
|
604
|
+
justify-content: center;
|
|
605
|
+
flex: 1;
|
|
606
|
+
padding: 8px;
|
|
607
|
+
}
|
|
608
|
+
@media (min-width: 1024px) {
|
|
609
|
+
:host(.spw-block-content--callout) .spw-block-content__content {
|
|
610
|
+
padding: 24px;
|
|
611
|
+
}
|
|
492
612
|
}
|
|
@@ -5,15 +5,18 @@ export class SpwBlockContent {
|
|
|
5
5
|
this.variant = 'blockquote';
|
|
6
6
|
/** Target du lien (pour banner-landscape et banner-portrait) */
|
|
7
7
|
this.target = '_self';
|
|
8
|
+
/** Couleur de fond du bloc */
|
|
9
|
+
this.background = 'primary';
|
|
8
10
|
}
|
|
9
11
|
get elementClass() {
|
|
10
12
|
return {
|
|
11
13
|
'spw-block-content': true,
|
|
12
14
|
[`spw-block-content--${this.variant}`]: true,
|
|
15
|
+
[`spw-block-content--bg-${this.background}`]: !!this.background,
|
|
13
16
|
};
|
|
14
17
|
}
|
|
15
18
|
renderBlockquote() {
|
|
16
|
-
return (h("blockquote", { class: "spw-block-content__blockquote" }, h("div", { class: "spw-block-content__top" }, h("slot", { name: "top" })), h("div", { class: "spw-block-content__quote" }, h("slot", { name: "quote" })), h("div", { class: "spw-block-content__bottom" }, h("slot", { name: "bottom" }))));
|
|
19
|
+
return (h("blockquote", { class: "spw-block-content__blockquote-container" }, h("div", { class: "spw-block-content__blockquote" }, h("div", { class: "spw-block-content__top" }, h("slot", { name: "top" })), h("div", { class: "spw-block-content__quote" }, h("slot", { name: "quote" })), h("div", { class: "spw-block-content__bottom" }, h("slot", { name: "bottom" })))));
|
|
17
20
|
}
|
|
18
21
|
renderBanner() {
|
|
19
22
|
const content = (h("div", { class: "spw-block-content__banner" }, h("div", { class: "spw-block-content__content" }, h("div", { class: "spw-block-content__text" }, h("slot", null))), this.imageSrc && (h("div", { class: "spw-block-content__image" }, h("img", { src: this.imageSrc, alt: this.imageAlt || '' }))), h("div", { class: "spw-block-content__button" }, h("slot", { name: "button" }))));
|
|
@@ -22,8 +25,27 @@ export class SpwBlockContent {
|
|
|
22
25
|
}
|
|
23
26
|
return content;
|
|
24
27
|
}
|
|
28
|
+
renderCallout() {
|
|
29
|
+
const style = {};
|
|
30
|
+
if (this.ratio) {
|
|
31
|
+
style['--spw-block-content-callout-ratio'] = this.ratio;
|
|
32
|
+
style['--spw-block-content-callout-ratio-mobile'] = this.ratio;
|
|
33
|
+
style['--spw-block-content-callout-ratio-tablet'] = this.ratio;
|
|
34
|
+
style['--spw-block-content-callout-ratio-desktop'] = this.ratio;
|
|
35
|
+
}
|
|
36
|
+
if (this.ratioMobile) {
|
|
37
|
+
style['--spw-block-content-callout-ratio-mobile'] = this.ratioMobile;
|
|
38
|
+
}
|
|
39
|
+
if (this.ratioTablet) {
|
|
40
|
+
style['--spw-block-content-callout-ratio-tablet'] = this.ratioTablet;
|
|
41
|
+
}
|
|
42
|
+
if (this.ratioDesktop) {
|
|
43
|
+
style['--spw-block-content-callout-ratio-desktop'] = this.ratioDesktop;
|
|
44
|
+
}
|
|
45
|
+
return (h("div", { class: "spw-block-content__callout", style: style }, this.imageSrc && (h("div", { class: "spw-block-content__image" }, h("img", { src: this.imageSrc, alt: this.imageAlt || '' }))), h("div", { class: "spw-block-content__content" }, h("slot", null))));
|
|
46
|
+
}
|
|
25
47
|
render() {
|
|
26
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '5aa87956a441ab3c5b6bda6b1e53da013f053a4b', class: this.elementClass }, this.variant === 'blockquote' && this.renderBlockquote(), (this.variant === 'banner-landscape' || this.variant === 'banner-portrait') && this.renderBanner(), this.variant === 'callout' && this.renderCallout()));
|
|
27
49
|
}
|
|
28
50
|
static get is() { return "spw-block-content"; }
|
|
29
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -43,8 +65,8 @@ export class SpwBlockContent {
|
|
|
43
65
|
"type": "string",
|
|
44
66
|
"mutable": false,
|
|
45
67
|
"complexType": {
|
|
46
|
-
"original": "'blockquote' | 'banner-landscape' | 'banner-portrait'",
|
|
47
|
-
"resolved": "\"banner-landscape\" | \"banner-portrait\" | \"blockquote\"",
|
|
68
|
+
"original": "'blockquote' | 'banner-landscape' | 'banner-portrait' | 'callout'",
|
|
69
|
+
"resolved": "\"banner-landscape\" | \"banner-portrait\" | \"blockquote\" | \"callout\"",
|
|
48
70
|
"references": {}
|
|
49
71
|
},
|
|
50
72
|
"required": false,
|
|
@@ -71,7 +93,7 @@ export class SpwBlockContent {
|
|
|
71
93
|
"optional": true,
|
|
72
94
|
"docs": {
|
|
73
95
|
"tags": [],
|
|
74
|
-
"text": "URL de l'image (pour banner-landscape et banner-portrait)"
|
|
96
|
+
"text": "URL de l'image (pour callout, banner-landscape et banner-portrait)"
|
|
75
97
|
},
|
|
76
98
|
"getter": false,
|
|
77
99
|
"setter": false,
|
|
@@ -90,7 +112,7 @@ export class SpwBlockContent {
|
|
|
90
112
|
"optional": true,
|
|
91
113
|
"docs": {
|
|
92
114
|
"tags": [],
|
|
93
|
-
"text": "Texte alternatif de l'image (pour banner-landscape et banner-portrait)"
|
|
115
|
+
"text": "Texte alternatif de l'image (pour callout, banner-landscape et banner-portrait)"
|
|
94
116
|
},
|
|
95
117
|
"getter": false,
|
|
96
118
|
"setter": false,
|
|
@@ -135,6 +157,102 @@ export class SpwBlockContent {
|
|
|
135
157
|
"reflect": false,
|
|
136
158
|
"attribute": "target",
|
|
137
159
|
"defaultValue": "'_self'"
|
|
160
|
+
},
|
|
161
|
+
"background": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"mutable": false,
|
|
164
|
+
"complexType": {
|
|
165
|
+
"original": "'primary' | 'neutral'",
|
|
166
|
+
"resolved": "\"neutral\" | \"primary\"",
|
|
167
|
+
"references": {}
|
|
168
|
+
},
|
|
169
|
+
"required": false,
|
|
170
|
+
"optional": true,
|
|
171
|
+
"docs": {
|
|
172
|
+
"tags": [],
|
|
173
|
+
"text": "Couleur de fond du bloc"
|
|
174
|
+
},
|
|
175
|
+
"getter": false,
|
|
176
|
+
"setter": false,
|
|
177
|
+
"reflect": false,
|
|
178
|
+
"attribute": "background",
|
|
179
|
+
"defaultValue": "'primary'"
|
|
180
|
+
},
|
|
181
|
+
"ratio": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"mutable": false,
|
|
184
|
+
"complexType": {
|
|
185
|
+
"original": "string",
|
|
186
|
+
"resolved": "string",
|
|
187
|
+
"references": {}
|
|
188
|
+
},
|
|
189
|
+
"required": false,
|
|
190
|
+
"optional": true,
|
|
191
|
+
"docs": {
|
|
192
|
+
"tags": [],
|
|
193
|
+
"text": "Ratio d'aspect de l'image pour tous les breakpoints - callout uniquement (ex: \"16/9\", \"4/3\", \"1/1\")"
|
|
194
|
+
},
|
|
195
|
+
"getter": false,
|
|
196
|
+
"setter": false,
|
|
197
|
+
"reflect": false,
|
|
198
|
+
"attribute": "ratio"
|
|
199
|
+
},
|
|
200
|
+
"ratioMobile": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"mutable": false,
|
|
203
|
+
"complexType": {
|
|
204
|
+
"original": "string",
|
|
205
|
+
"resolved": "string",
|
|
206
|
+
"references": {}
|
|
207
|
+
},
|
|
208
|
+
"required": false,
|
|
209
|
+
"optional": true,
|
|
210
|
+
"docs": {
|
|
211
|
+
"tags": [],
|
|
212
|
+
"text": "Ratio d'aspect de l'image en vue mobile - callout uniquement"
|
|
213
|
+
},
|
|
214
|
+
"getter": false,
|
|
215
|
+
"setter": false,
|
|
216
|
+
"reflect": false,
|
|
217
|
+
"attribute": "ratio-mobile"
|
|
218
|
+
},
|
|
219
|
+
"ratioTablet": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"mutable": false,
|
|
222
|
+
"complexType": {
|
|
223
|
+
"original": "string",
|
|
224
|
+
"resolved": "string",
|
|
225
|
+
"references": {}
|
|
226
|
+
},
|
|
227
|
+
"required": false,
|
|
228
|
+
"optional": true,
|
|
229
|
+
"docs": {
|
|
230
|
+
"tags": [],
|
|
231
|
+
"text": "Ratio d'aspect de l'image en vue tablette - callout uniquement"
|
|
232
|
+
},
|
|
233
|
+
"getter": false,
|
|
234
|
+
"setter": false,
|
|
235
|
+
"reflect": false,
|
|
236
|
+
"attribute": "ratio-tablet"
|
|
237
|
+
},
|
|
238
|
+
"ratioDesktop": {
|
|
239
|
+
"type": "string",
|
|
240
|
+
"mutable": false,
|
|
241
|
+
"complexType": {
|
|
242
|
+
"original": "string",
|
|
243
|
+
"resolved": "string",
|
|
244
|
+
"references": {}
|
|
245
|
+
},
|
|
246
|
+
"required": false,
|
|
247
|
+
"optional": true,
|
|
248
|
+
"docs": {
|
|
249
|
+
"tags": [],
|
|
250
|
+
"text": "Ratio d'aspect de l'image en vue desktop - callout uniquement"
|
|
251
|
+
},
|
|
252
|
+
"getter": false,
|
|
253
|
+
"setter": false,
|
|
254
|
+
"reflect": false,
|
|
255
|
+
"attribute": "ratio-desktop"
|
|
138
256
|
}
|
|
139
257
|
};
|
|
140
258
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
3
|
/* Document
|
|
3
4
|
========================================================================== */
|
|
@@ -378,15 +379,25 @@ template {
|
|
|
378
379
|
:host {
|
|
379
380
|
display: inline-block;
|
|
380
381
|
vertical-align: top;
|
|
382
|
+
/** @prop --spw-button-font-size-small: Taille de police pour le bouton small */
|
|
381
383
|
--spw-button-font-size-small: 14px;
|
|
384
|
+
/** @prop --spw-button-font-size-medium: Taille de police pour le bouton medium */
|
|
382
385
|
--spw-button-font-size-medium: 16px;
|
|
386
|
+
/** @prop --spw-button-font-size-large: Taille de police pour le bouton large */
|
|
383
387
|
--spw-button-font-size-large: 18px;
|
|
388
|
+
/** @prop --spw-button-px-small: Padding horizontal pour le bouton small */
|
|
384
389
|
--spw-button-px-small: 16px;
|
|
390
|
+
/** @prop --spw-button-px-medium: Padding horizontal pour le bouton medium */
|
|
385
391
|
--spw-button-px-medium: 20px;
|
|
392
|
+
/** @prop --spw-button-px-large: Padding horizontal pour le bouton large */
|
|
386
393
|
--spw-button-px-large: 24px;
|
|
394
|
+
/** @prop --spw-button-py-small: Padding vertical pour le bouton small */
|
|
387
395
|
--spw-button-py-small: 8px;
|
|
396
|
+
/** @prop --spw-button-py-medium: Padding vertical pour le bouton medium */
|
|
388
397
|
--spw-button-py-medium: 12px;
|
|
398
|
+
/** @prop --spw-button-py-large: Padding vertical pour le bouton large */
|
|
389
399
|
--spw-button-py-large: 16px;
|
|
400
|
+
/** @prop --spw-button-text-decoration: Décoration du texte du bouton */
|
|
390
401
|
--spw-button-text-decoration: none;
|
|
391
402
|
}
|
|
392
403
|
|
|
@@ -400,6 +411,7 @@ template {
|
|
|
400
411
|
border: 2px solid transparent;
|
|
401
412
|
display: block;
|
|
402
413
|
width: 100%;
|
|
414
|
+
white-space: nowrap;
|
|
403
415
|
border-radius: 9999px;
|
|
404
416
|
letter-spacing: 0.18px;
|
|
405
417
|
cursor: pointer;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
3
|
/* Document
|
|
3
4
|
========================================================================== */
|
|
@@ -379,8 +380,11 @@ template {
|
|
|
379
380
|
display: block;
|
|
380
381
|
position: relative;
|
|
381
382
|
width: 100%;
|
|
383
|
+
/** @prop --spw-card-background: Couleur de fond de la carte */
|
|
382
384
|
--spw-card-background: var(--spw-ds-white);
|
|
385
|
+
/** @prop --spw-card-box-shadow: Ombre portée de la carte */
|
|
383
386
|
--spw-card-box-shadow: var(--spw-effect-elevation-6);
|
|
387
|
+
/** @prop --spw-card-border: Bordure de la carte */
|
|
384
388
|
--spw-card-border: none;
|
|
385
389
|
}
|
|
386
390
|
:host[data-modal-trigger] {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
2
3
|
/* Document
|
|
3
4
|
========================================================================== */
|
|
@@ -378,11 +379,17 @@ template {
|
|
|
378
379
|
:host {
|
|
379
380
|
display: inline-flex;
|
|
380
381
|
vertical-align: top;
|
|
382
|
+
/** @prop --spw-ds-checkbox-checked-color: Couleur de la checkbox cochée */
|
|
381
383
|
--spw-ds-checkbox-checked-color: var(--spw-ds-primary);
|
|
384
|
+
/** @prop --spw-ds-checkbox-checked-active-color: Couleur de la checkbox cochée à l'état actif */
|
|
382
385
|
--spw-ds-checkbox-checked-active-color: var(--spw-ds-active);
|
|
386
|
+
/** @prop --spw-ds-checkbox-checked-hover-color: Couleur de la checkbox cochée au survol */
|
|
383
387
|
--spw-ds-checkbox-checked-hover-color: var(--spw-ds-variant);
|
|
388
|
+
/** @prop --spw-ds-toggle-checked-color: Couleur du toggle coché */
|
|
384
389
|
--spw-ds-toggle-checked-color: var(--spw-color-themes-green-green-600);
|
|
390
|
+
/** @prop --spw-ds-toggle-checked-active-color: Couleur du toggle coché à l'état actif */
|
|
385
391
|
--spw-ds-toggle-checked-active-color: var(--spw-color-themes-green-green-700);
|
|
392
|
+
/** @prop --spw-ds-toggle-checked-hover-color: Couleur du toggle coché au survol */
|
|
386
393
|
--spw-ds-toggle-checked-hover-color: var(--spw-color-themes-green-green-800);
|
|
387
394
|
}
|
|
388
395
|
|
|
@@ -569,6 +569,24 @@ template {
|
|
|
569
569
|
border-radius: 0 0 4px 4px;
|
|
570
570
|
max-height: 200px;
|
|
571
571
|
overflow-y: auto;
|
|
572
|
+
}
|
|
573
|
+
.spw-custom-select__options::-webkit-scrollbar {
|
|
574
|
+
width: 14px;
|
|
575
|
+
height: 14px;
|
|
576
|
+
}
|
|
577
|
+
.spw-custom-select__options::-webkit-scrollbar-thumb {
|
|
578
|
+
background: var(--spw-color-themes-grey-grey-400);
|
|
579
|
+
border-radius: 20px;
|
|
580
|
+
border: 4px solid var(--spw-ds-white);
|
|
581
|
+
}
|
|
582
|
+
.spw-custom-select__options::-webkit-scrollbar-track {
|
|
583
|
+
background: var(--spw-ds-white);
|
|
584
|
+
}
|
|
585
|
+
.spw-custom-select__options {
|
|
586
|
+
scrollbar-face-color: var(--spw-color-themes-grey-grey-400);
|
|
587
|
+
scrollbar-track-color: var(--spw-ds-white);
|
|
588
|
+
}
|
|
589
|
+
.spw-custom-select__options {
|
|
572
590
|
z-index: 9999;
|
|
573
591
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
574
592
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class SpwCustomSelect {
|
|
3
3
|
constructor() {
|
|
4
|
+
this.parentScrollContainer = null;
|
|
4
5
|
this.isOpen = false;
|
|
5
6
|
this.parsedOptions = [];
|
|
6
7
|
this.focusedOptionIndex = null;
|
|
@@ -190,8 +191,77 @@ export class SpwCustomSelect {
|
|
|
190
191
|
document.removeEventListener('spw-custom-select-opened', this.handleOtherSelectOpened);
|
|
191
192
|
window.removeEventListener('scroll', this.updateDropdownPosition, true);
|
|
192
193
|
window.removeEventListener('resize', this.updateDropdownPosition);
|
|
194
|
+
this.cleanupParentScrollListener();
|
|
193
195
|
this.isOpen = false;
|
|
194
196
|
}
|
|
197
|
+
findParentComponent() {
|
|
198
|
+
if (!this.fixedDropdownParent)
|
|
199
|
+
return null;
|
|
200
|
+
let current = this.hostElement;
|
|
201
|
+
while (current) {
|
|
202
|
+
if (current instanceof HTMLElement && current.tagName.toLowerCase() === this.fixedDropdownParent.toLowerCase()) {
|
|
203
|
+
return current;
|
|
204
|
+
}
|
|
205
|
+
if (current.parentElement) {
|
|
206
|
+
current = current.parentElement;
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
const rootNode = current.getRootNode();
|
|
210
|
+
if (rootNode instanceof ShadowRoot) {
|
|
211
|
+
current = rootNode.host;
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
return null;
|
|
219
|
+
}
|
|
220
|
+
findScrollContainerInShadowRoot(parent) {
|
|
221
|
+
const shadowRoot = parent.shadowRoot;
|
|
222
|
+
if (!shadowRoot)
|
|
223
|
+
return null;
|
|
224
|
+
const elements = shadowRoot.querySelectorAll('*');
|
|
225
|
+
let deepestScrollContainer = null;
|
|
226
|
+
let maxDepth = -1;
|
|
227
|
+
for (const el of Array.from(elements)) {
|
|
228
|
+
const htmlEl = el;
|
|
229
|
+
const style = window.getComputedStyle(htmlEl);
|
|
230
|
+
const hasOverflow = style.overflow === 'auto' || style.overflow === 'scroll' || style.overflowY === 'auto' || style.overflowY === 'scroll';
|
|
231
|
+
if (hasOverflow) {
|
|
232
|
+
let depth = 0;
|
|
233
|
+
let node = el;
|
|
234
|
+
while (node && node !== shadowRoot) {
|
|
235
|
+
depth++;
|
|
236
|
+
node = node.parentNode;
|
|
237
|
+
}
|
|
238
|
+
if (depth > maxDepth) {
|
|
239
|
+
maxDepth = depth;
|
|
240
|
+
deepestScrollContainer = htmlEl;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
return deepestScrollContainer;
|
|
245
|
+
}
|
|
246
|
+
ensureParentScrollListener() {
|
|
247
|
+
if (!this.fixedDropdownParent || !this.fixedDropdown)
|
|
248
|
+
return;
|
|
249
|
+
if (this.parentScrollContainer)
|
|
250
|
+
return;
|
|
251
|
+
const parentComponent = this.findParentComponent();
|
|
252
|
+
if (parentComponent) {
|
|
253
|
+
this.parentScrollContainer = this.findScrollContainerInShadowRoot(parentComponent);
|
|
254
|
+
if (this.parentScrollContainer) {
|
|
255
|
+
this.parentScrollContainer.addEventListener('scroll', this.updateDropdownPosition);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
cleanupParentScrollListener() {
|
|
260
|
+
if (this.parentScrollContainer) {
|
|
261
|
+
this.parentScrollContainer.removeEventListener('scroll', this.updateDropdownPosition);
|
|
262
|
+
this.parentScrollContainer = null;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
195
265
|
parseOptions(newValue) {
|
|
196
266
|
try {
|
|
197
267
|
if (Array.isArray(newValue)) {
|
|
@@ -254,6 +324,7 @@ export class SpwCustomSelect {
|
|
|
254
324
|
const wasOpen = this.isOpen;
|
|
255
325
|
this.isOpen = !this.isOpen;
|
|
256
326
|
if (this.isOpen && !wasOpen) {
|
|
327
|
+
this.ensureParentScrollListener();
|
|
257
328
|
this.notifyOtherSelects();
|
|
258
329
|
}
|
|
259
330
|
if (!this.isOpen) {
|
|
@@ -276,6 +347,7 @@ export class SpwCustomSelect {
|
|
|
276
347
|
this.determineDropdownDirection();
|
|
277
348
|
this.isOpen = true;
|
|
278
349
|
this.focusedOptionIndex = 0;
|
|
350
|
+
this.ensureParentScrollListener();
|
|
279
351
|
this.notifyOtherSelects();
|
|
280
352
|
}
|
|
281
353
|
closeDropdown() {
|
|
@@ -433,6 +505,7 @@ export class SpwCustomSelect {
|
|
|
433
505
|
this.focusedOptionIndex = 0;
|
|
434
506
|
if (!this.isOpen) {
|
|
435
507
|
this.isOpen = true;
|
|
508
|
+
this.ensureParentScrollListener();
|
|
436
509
|
this.notifyOtherSelects();
|
|
437
510
|
}
|
|
438
511
|
}
|
|
@@ -455,11 +528,11 @@ export class SpwCustomSelect {
|
|
|
455
528
|
render() {
|
|
456
529
|
const filteredOptions = this.getFilteredOptions();
|
|
457
530
|
const showPlaceholder = this.showPlaceholder();
|
|
458
|
-
return (h("div", { key: '
|
|
531
|
+
return (h("div", { key: '43447038a22e3ceffa27d676bc2192e4aca5f287', class: this.elementClass, ref: el => (this.host = el) }, this.label && (h("spw-field-label", { key: '5baa3c868c7365ae95cb3e0b643c52abe7b13c55', 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: '6c7178d419fde80e0394dcc80754ad2313bf0833', class: "spw-custom-select__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: '78b5cc99a3f9b86ba0f3e9e0f5473a60c198eec6', class: "spw-custom-select__wrapper" }, h("div", { key: '4a964452b1e693b3693c7db8f87a98a0262bab50', 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: 'a6474cfe11ab5987cc4103e0dcf92875960622a7', class: "spw-custom-select__selected" }, this.isSearchVisible() && (h("div", { key: 'dfa397daa49fb324eee56c384dd29e661ca7fd1c', class: "spw-custom-select__search" }, h("input", { key: '59229eb7c26407745f9a2d4d049027f5fbec3950', class: "spw-custom-select__search-input", placeholder: this.searchPlaceholder, onInput: event => this.handleSearchInput(event), value: this.searchText }))), showPlaceholder && h("span", { key: '2adfc41cb5589e7c599b87c31a27f5669a2e778e' }, this.placeholder), this.multiple && this.internalValue.length > 0 && (h("div", { key: '638b74dc9f89c466a99b03b38a319eef3a773788', class: "spw-custom-select__selected-items" }, this.internalValue.map(val => {
|
|
459
532
|
var _a;
|
|
460
533
|
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 :
|
|
461
534
|
_a.label, h("spw-icon", { icon: "fa-times", class: "spw-custom-select__deselect-icon", onClick: event => this.selectOption(val, event) })));
|
|
462
|
-
}))), !this.multiple && h("span", { key: '
|
|
535
|
+
}))), !this.multiple && h("span", { key: '8182a2e87d00b2d27b626a92b62f680fa4dde490' }, this.getSelectedLabels()))), h("div", { key: '6a96891304f69e05b58b32f9c388a1d7a9dec540', class: "spw-custom-select__icons" }, this.isClear && (this.hasSelectedValue || !!this.searchText) && (h("span", { key: '1d1016892a92598037fe4726fb401b85c9ebbd11', class: "spw-custom-select__clear", onClick: event => this.handleClear(event) }, h("spw-icon", { key: '2d8b4105962fe31534135ace34720031727e356e', icon: "fa-xmark" }))), h("div", { key: '44a3b248918027860ef576bd98661b3af5893651', class: "spw-custom-select__arrow" }, h("spw-icon", { key: 'd1778da95cb69a2bdf8786d351993bfd84b8d1fa', icon: this.isOpen ? 'fa-chevron-up' : 'fa-chevron-down' }))), this.isOpen && (h("div", { key: 'ef3f8ba6da6295d7bd9e15f653b33b5426b731ce', class: {
|
|
463
536
|
'spw-custom-select__options': true,
|
|
464
537
|
[`spw-custom-select__options--${this.dropdownDirection}`]: true,
|
|
465
538
|
'spw-custom-select__options--fixed': this.fixedDropdown,
|
|
@@ -470,14 +543,14 @@ export class SpwCustomSelect {
|
|
|
470
543
|
left: `${this.dropdownPosition.left}px`,
|
|
471
544
|
width: `${this.dropdownPosition.width}px`,
|
|
472
545
|
}
|
|
473
|
-
: {} }, !!filteredOptions.length && (h("ul", { key: '
|
|
546
|
+
: {} }, !!filteredOptions.length && (h("ul", { key: 'f39f93c198df038c933ac5610c829e86365805c6' }, filteredOptions.map((option, index) => (h("li", { class: {
|
|
474
547
|
'spw-custom-select__option': true,
|
|
475
548
|
'spw-custom-select__option--selected': this.multiple
|
|
476
549
|
? this.internalValue.some(val => String(val) === String(option.value))
|
|
477
550
|
: option.value === this.internalValue,
|
|
478
551
|
'spw-custom-select__option--focused': index === this.focusedOptionIndex,
|
|
479
552
|
'spw-custom-select__option--disabled': option.disabled,
|
|
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: '
|
|
553
|
+
}, 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: 'ec93e913732816d37fe58731d4edfe8e5cd78718', class: "spw-custom-select__no-results" }, this.noResultsText)))), this.renderErrorMessage(), this.renderHintMessage(), this.renderSuccessMessage(), this.renderWarningMessage()));
|
|
481
554
|
}
|
|
482
555
|
static get is() { return "spw-custom-select"; }
|
|
483
556
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1031,6 +1104,25 @@ export class SpwCustomSelect {
|
|
|
1031
1104
|
"attribute": "fixed-dropdown",
|
|
1032
1105
|
"defaultValue": "false"
|
|
1033
1106
|
},
|
|
1107
|
+
"fixedDropdownParent": {
|
|
1108
|
+
"type": "string",
|
|
1109
|
+
"mutable": false,
|
|
1110
|
+
"complexType": {
|
|
1111
|
+
"original": "string",
|
|
1112
|
+
"resolved": "string",
|
|
1113
|
+
"references": {}
|
|
1114
|
+
},
|
|
1115
|
+
"required": false,
|
|
1116
|
+
"optional": true,
|
|
1117
|
+
"docs": {
|
|
1118
|
+
"tags": [],
|
|
1119
|
+
"text": "Tag name du composant parent contenant le scroll (ex: 'spw-modal'). Le composant remontera les parents pour trouver ce composant et \u00E9couter son scroll interne."
|
|
1120
|
+
},
|
|
1121
|
+
"getter": false,
|
|
1122
|
+
"setter": false,
|
|
1123
|
+
"reflect": false,
|
|
1124
|
+
"attribute": "fixed-dropdown-parent"
|
|
1125
|
+
},
|
|
1034
1126
|
"isClear": {
|
|
1035
1127
|
"type": "boolean",
|
|
1036
1128
|
"mutable": false,
|
|
@@ -1183,6 +1275,7 @@ export class SpwCustomSelect {
|
|
|
1183
1275
|
}
|
|
1184
1276
|
};
|
|
1185
1277
|
}
|
|
1278
|
+
static get elementRef() { return "hostElement"; }
|
|
1186
1279
|
static get watchers() {
|
|
1187
1280
|
return [{
|
|
1188
1281
|
"propName": "items",
|