@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
|
@@ -22,6 +22,39 @@ export class SpwFileUpload {
|
|
|
22
22
|
this.maxFileSizeUnit = 'mo';
|
|
23
23
|
/** Nombre maximal de fichiers pouvant être téléversés */
|
|
24
24
|
this.maxFiles = Infinity;
|
|
25
|
+
// Textes customisables
|
|
26
|
+
/** Texte du bouton pour sélectionner un fichier (mode simple) */
|
|
27
|
+
this.textChooseFile = 'Choisir votre fichier...';
|
|
28
|
+
/** Texte du bouton pour sélectionner plusieurs fichiers (mode multiple) */
|
|
29
|
+
this.textChooseFiles = 'Choisir vos fichiers...';
|
|
30
|
+
/** Texte de la zone de dépôt pour un fichier */
|
|
31
|
+
this.textDropFile = 'Déposez votre fichier ici ou';
|
|
32
|
+
/** Texte de la zone de dépôt pour plusieurs fichiers */
|
|
33
|
+
this.textDropFiles = 'Déposez vos fichiers ici ou';
|
|
34
|
+
/** Texte du lien pour choisir depuis l'ordinateur */
|
|
35
|
+
this.textChooseFromComputer = 'choisissez sur votre ordinateur...';
|
|
36
|
+
/** Texte du lien de suppression */
|
|
37
|
+
this.textDelete = 'Supprimer';
|
|
38
|
+
/** Texte pour la taille maximale par fichier (utiliser {size} et {unit} comme placeholders) */
|
|
39
|
+
this.textMaxFileSize = 'Taille maximale par fichier : {size} {unit}';
|
|
40
|
+
/** Texte pour le nombre maximum de fichiers (utiliser {count} comme placeholder) */
|
|
41
|
+
this.textMaxFiles = '{count} fichier(s) maximum';
|
|
42
|
+
/** Texte pour les formats autorisés (utiliser {formats} comme placeholder) */
|
|
43
|
+
this.textAcceptedFormats = 'Formats autorisés : {formats}.';
|
|
44
|
+
/** Texte pour les formats refusés (utiliser {formats} comme placeholder) */
|
|
45
|
+
this.textRefusedFormats = 'Formats refusés : {formats}.';
|
|
46
|
+
/** Texte quand tous les formats sont autorisés */
|
|
47
|
+
this.textAllFormats = 'Formats autorisés : tous les formats.';
|
|
48
|
+
/** Message d'erreur quand le format n'est pas autorisé (utiliser {filename} comme placeholder) */
|
|
49
|
+
this.textErrorFormat = "{filename} n'a pas été pris en compte car le format n'est pas autorisé.";
|
|
50
|
+
/** Message d'erreur quand la taille est dépassée (utiliser {filename} comme placeholder) */
|
|
51
|
+
this.textErrorSize = "{filename} n'a pas été pris en compte car il dépasse la taille maximale autorisée.";
|
|
52
|
+
/** Message d'erreur quand le format et la taille sont invalides (utiliser {filename} comme placeholder) */
|
|
53
|
+
this.textErrorFormatAndSize = "{filename} n'a pas été pris en compte car le format n'est pas autorisé et la limite de poids est dépassée.";
|
|
54
|
+
/** Message quand la limite de fichiers est atteinte */
|
|
55
|
+
this.textLimitReached = 'Vous avez atteint la limite autorisée de fichiers.';
|
|
56
|
+
/** Message quand on dépasse la limite de fichiers (utiliser {count} comme placeholder) */
|
|
57
|
+
this.textLimitExceeded = 'Vous ne pouvez pas télécharger plus de {count} fichier(s).';
|
|
25
58
|
this.selectedFiles = [];
|
|
26
59
|
this.fileTypeErrors = [];
|
|
27
60
|
this.fileLimitErrors = [];
|
|
@@ -71,15 +104,15 @@ export class SpwFileUpload {
|
|
|
71
104
|
const isFileAccepted = this.isFileAccepted(file);
|
|
72
105
|
const isFileSizeValid = this.isFileSizeValid(file);
|
|
73
106
|
if (!isFileAccepted && !isFileSizeValid) {
|
|
74
|
-
this.fileTypeErrors.push(
|
|
107
|
+
this.fileTypeErrors.push(this.textErrorFormatAndSize.replace('{filename}', file.name));
|
|
75
108
|
return false;
|
|
76
109
|
}
|
|
77
110
|
else if (!isFileAccepted) {
|
|
78
|
-
this.fileTypeErrors.push(
|
|
111
|
+
this.fileTypeErrors.push(this.textErrorFormat.replace('{filename}', file.name));
|
|
79
112
|
return false;
|
|
80
113
|
}
|
|
81
114
|
else if (!isFileSizeValid) {
|
|
82
|
-
this.fileTypeErrors.push(
|
|
115
|
+
this.fileTypeErrors.push(this.textErrorSize.replace('{filename}', file.name));
|
|
83
116
|
return false;
|
|
84
117
|
}
|
|
85
118
|
return true;
|
|
@@ -88,12 +121,11 @@ export class SpwFileUpload {
|
|
|
88
121
|
const allowedFiles = this.maxFiles - this.selectedFiles.length;
|
|
89
122
|
if (this.selectedFiles.length + validFiles.length === this.maxFiles) {
|
|
90
123
|
this.isMaxFilesReachedExact = true;
|
|
91
|
-
this.fileLimitErrors.push(
|
|
124
|
+
this.fileLimitErrors.push(this.textLimitReached);
|
|
92
125
|
}
|
|
93
126
|
else {
|
|
94
127
|
validFiles.splice(allowedFiles);
|
|
95
|
-
|
|
96
|
-
this.fileLimitErrors.push(`Vous ne pouvez pas télécharger plus de ${this.maxFiles} ${maxFilesText}.`);
|
|
128
|
+
this.fileLimitErrors.push(this.textLimitExceeded.replace('{count}', String(this.maxFiles)));
|
|
97
129
|
}
|
|
98
130
|
}
|
|
99
131
|
this.selectedFiles = [...this.selectedFiles, ...validFiles];
|
|
@@ -195,36 +227,35 @@ export class SpwFileUpload {
|
|
|
195
227
|
unitDisplay = 'Mo';
|
|
196
228
|
}
|
|
197
229
|
const messages = [];
|
|
198
|
-
let message =
|
|
230
|
+
let message = this.textMaxFileSize.replace('{size}', String(maxSizeDisplay)).replace('{unit}', unitDisplay);
|
|
199
231
|
if (this.multiple && this.maxFiles !== Infinity) {
|
|
200
|
-
|
|
201
|
-
message += ` - ${this.maxFiles} ${maxFilesText} maximum.`;
|
|
232
|
+
message += ` - ${this.textMaxFiles.replace('{count}', String(this.maxFiles))}`;
|
|
202
233
|
}
|
|
203
234
|
else {
|
|
204
235
|
message += '.';
|
|
205
236
|
}
|
|
206
237
|
messages.push(message);
|
|
207
238
|
if (this.accept && this.refuse) {
|
|
208
|
-
messages.push(
|
|
239
|
+
messages.push(this.textAcceptedFormats.replace('{formats}', this.accept));
|
|
209
240
|
}
|
|
210
241
|
else if (this.accept) {
|
|
211
|
-
messages.push(
|
|
242
|
+
messages.push(this.textAcceptedFormats.replace('{formats}', this.accept));
|
|
212
243
|
}
|
|
213
244
|
else if (this.refuse) {
|
|
214
|
-
messages.push(
|
|
245
|
+
messages.push(this.textRefusedFormats.replace('{formats}', this.refuse));
|
|
215
246
|
}
|
|
216
247
|
else {
|
|
217
|
-
messages.push(
|
|
248
|
+
messages.push(this.textAllFormats);
|
|
218
249
|
}
|
|
219
250
|
return messages;
|
|
220
251
|
}
|
|
221
252
|
render() {
|
|
222
|
-
const inputTextNoDrop = this.multiple ?
|
|
223
|
-
const inputTextDrop = this.multiple ?
|
|
224
|
-
return (h("div", { key: '
|
|
253
|
+
const inputTextNoDrop = this.multiple ? this.textChooseFiles : this.textChooseFile;
|
|
254
|
+
const inputTextDrop = this.multiple ? this.textDropFiles : this.textDropFile;
|
|
255
|
+
return (h("div", { key: '505f4f2d6aa2d442a45b5ec2d2e729a2313de04c', class: this.elementClass, onDragOver: this.handleDragOver.bind(this), onDragLeave: this.handleDragLeave.bind(this), onDrop: this.handleDrop.bind(this) }, h("input", { key: '24055c9bb0f2c869419e95a817234e65eedeb46b', 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, " ", h("span", { class: "spw-file-upload__dropzone-link" }, this.textChooseFromComputer))) : (h("spw-button", { variant: "secondary", onClick: () => !this.disabled && !this.isMaxFilesReached && this.inputElement.click(), disabled: this.disabled || this.isMaxFilesReached }, inputTextNoDrop)), h("div", { key: '9569626601644db17667cea3574258f4fd13837d', class: "spw-file-upload__hints" }, this.hintsMessages.length > 0 && (h("ul", { key: '1476d60ef9abe415082cbb15ac4c0a22daebe5ac' }, this.hintsMessages.map((message, index) => (h("li", { key: index }, message)))))), h("div", { key: '22541db49e6bc2d632d692e4ee3a6c5ae358165b', 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
256
|
e.preventDefault();
|
|
226
257
|
this.removeFile(index);
|
|
227
|
-
} },
|
|
258
|
+
} }, this.textDelete))))))) : (''), this.fileLimitErrors.length > 0 && (h("ul", { key: '0385dc3a5d5364c34b13fa1755cef60672771572', 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: '21940862b6d7bf95a631aa9bf2a750aecf64e934', 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
259
|
}
|
|
229
260
|
static get is() { return "spw-file-upload"; }
|
|
230
261
|
static get encapsulation() { return "shadow"; }
|
|
@@ -462,6 +493,326 @@ export class SpwFileUpload {
|
|
|
462
493
|
"reflect": false,
|
|
463
494
|
"attribute": "max-files",
|
|
464
495
|
"defaultValue": "Infinity"
|
|
496
|
+
},
|
|
497
|
+
"textChooseFile": {
|
|
498
|
+
"type": "string",
|
|
499
|
+
"mutable": false,
|
|
500
|
+
"complexType": {
|
|
501
|
+
"original": "string",
|
|
502
|
+
"resolved": "string",
|
|
503
|
+
"references": {}
|
|
504
|
+
},
|
|
505
|
+
"required": false,
|
|
506
|
+
"optional": false,
|
|
507
|
+
"docs": {
|
|
508
|
+
"tags": [],
|
|
509
|
+
"text": "Texte du bouton pour s\u00E9lectionner un fichier (mode simple)"
|
|
510
|
+
},
|
|
511
|
+
"getter": false,
|
|
512
|
+
"setter": false,
|
|
513
|
+
"reflect": false,
|
|
514
|
+
"attribute": "text-choose-file",
|
|
515
|
+
"defaultValue": "'Choisir votre fichier...'"
|
|
516
|
+
},
|
|
517
|
+
"textChooseFiles": {
|
|
518
|
+
"type": "string",
|
|
519
|
+
"mutable": false,
|
|
520
|
+
"complexType": {
|
|
521
|
+
"original": "string",
|
|
522
|
+
"resolved": "string",
|
|
523
|
+
"references": {}
|
|
524
|
+
},
|
|
525
|
+
"required": false,
|
|
526
|
+
"optional": false,
|
|
527
|
+
"docs": {
|
|
528
|
+
"tags": [],
|
|
529
|
+
"text": "Texte du bouton pour s\u00E9lectionner plusieurs fichiers (mode multiple)"
|
|
530
|
+
},
|
|
531
|
+
"getter": false,
|
|
532
|
+
"setter": false,
|
|
533
|
+
"reflect": false,
|
|
534
|
+
"attribute": "text-choose-files",
|
|
535
|
+
"defaultValue": "'Choisir vos fichiers...'"
|
|
536
|
+
},
|
|
537
|
+
"textDropFile": {
|
|
538
|
+
"type": "string",
|
|
539
|
+
"mutable": false,
|
|
540
|
+
"complexType": {
|
|
541
|
+
"original": "string",
|
|
542
|
+
"resolved": "string",
|
|
543
|
+
"references": {}
|
|
544
|
+
},
|
|
545
|
+
"required": false,
|
|
546
|
+
"optional": false,
|
|
547
|
+
"docs": {
|
|
548
|
+
"tags": [],
|
|
549
|
+
"text": "Texte de la zone de d\u00E9p\u00F4t pour un fichier"
|
|
550
|
+
},
|
|
551
|
+
"getter": false,
|
|
552
|
+
"setter": false,
|
|
553
|
+
"reflect": false,
|
|
554
|
+
"attribute": "text-drop-file",
|
|
555
|
+
"defaultValue": "'D\u00E9posez votre fichier ici ou'"
|
|
556
|
+
},
|
|
557
|
+
"textDropFiles": {
|
|
558
|
+
"type": "string",
|
|
559
|
+
"mutable": false,
|
|
560
|
+
"complexType": {
|
|
561
|
+
"original": "string",
|
|
562
|
+
"resolved": "string",
|
|
563
|
+
"references": {}
|
|
564
|
+
},
|
|
565
|
+
"required": false,
|
|
566
|
+
"optional": false,
|
|
567
|
+
"docs": {
|
|
568
|
+
"tags": [],
|
|
569
|
+
"text": "Texte de la zone de d\u00E9p\u00F4t pour plusieurs fichiers"
|
|
570
|
+
},
|
|
571
|
+
"getter": false,
|
|
572
|
+
"setter": false,
|
|
573
|
+
"reflect": false,
|
|
574
|
+
"attribute": "text-drop-files",
|
|
575
|
+
"defaultValue": "'D\u00E9posez vos fichiers ici ou'"
|
|
576
|
+
},
|
|
577
|
+
"textChooseFromComputer": {
|
|
578
|
+
"type": "string",
|
|
579
|
+
"mutable": false,
|
|
580
|
+
"complexType": {
|
|
581
|
+
"original": "string",
|
|
582
|
+
"resolved": "string",
|
|
583
|
+
"references": {}
|
|
584
|
+
},
|
|
585
|
+
"required": false,
|
|
586
|
+
"optional": false,
|
|
587
|
+
"docs": {
|
|
588
|
+
"tags": [],
|
|
589
|
+
"text": "Texte du lien pour choisir depuis l'ordinateur"
|
|
590
|
+
},
|
|
591
|
+
"getter": false,
|
|
592
|
+
"setter": false,
|
|
593
|
+
"reflect": false,
|
|
594
|
+
"attribute": "text-choose-from-computer",
|
|
595
|
+
"defaultValue": "'choisissez sur votre ordinateur...'"
|
|
596
|
+
},
|
|
597
|
+
"textDelete": {
|
|
598
|
+
"type": "string",
|
|
599
|
+
"mutable": false,
|
|
600
|
+
"complexType": {
|
|
601
|
+
"original": "string",
|
|
602
|
+
"resolved": "string",
|
|
603
|
+
"references": {}
|
|
604
|
+
},
|
|
605
|
+
"required": false,
|
|
606
|
+
"optional": false,
|
|
607
|
+
"docs": {
|
|
608
|
+
"tags": [],
|
|
609
|
+
"text": "Texte du lien de suppression"
|
|
610
|
+
},
|
|
611
|
+
"getter": false,
|
|
612
|
+
"setter": false,
|
|
613
|
+
"reflect": false,
|
|
614
|
+
"attribute": "text-delete",
|
|
615
|
+
"defaultValue": "'Supprimer'"
|
|
616
|
+
},
|
|
617
|
+
"textMaxFileSize": {
|
|
618
|
+
"type": "string",
|
|
619
|
+
"mutable": false,
|
|
620
|
+
"complexType": {
|
|
621
|
+
"original": "string",
|
|
622
|
+
"resolved": "string",
|
|
623
|
+
"references": {}
|
|
624
|
+
},
|
|
625
|
+
"required": false,
|
|
626
|
+
"optional": false,
|
|
627
|
+
"docs": {
|
|
628
|
+
"tags": [],
|
|
629
|
+
"text": "Texte pour la taille maximale par fichier (utiliser {size} et {unit} comme placeholders)"
|
|
630
|
+
},
|
|
631
|
+
"getter": false,
|
|
632
|
+
"setter": false,
|
|
633
|
+
"reflect": false,
|
|
634
|
+
"attribute": "text-max-file-size",
|
|
635
|
+
"defaultValue": "'Taille maximale par fichier : {size} {unit}'"
|
|
636
|
+
},
|
|
637
|
+
"textMaxFiles": {
|
|
638
|
+
"type": "string",
|
|
639
|
+
"mutable": false,
|
|
640
|
+
"complexType": {
|
|
641
|
+
"original": "string",
|
|
642
|
+
"resolved": "string",
|
|
643
|
+
"references": {}
|
|
644
|
+
},
|
|
645
|
+
"required": false,
|
|
646
|
+
"optional": false,
|
|
647
|
+
"docs": {
|
|
648
|
+
"tags": [],
|
|
649
|
+
"text": "Texte pour le nombre maximum de fichiers (utiliser {count} comme placeholder)"
|
|
650
|
+
},
|
|
651
|
+
"getter": false,
|
|
652
|
+
"setter": false,
|
|
653
|
+
"reflect": false,
|
|
654
|
+
"attribute": "text-max-files",
|
|
655
|
+
"defaultValue": "'{count} fichier(s) maximum'"
|
|
656
|
+
},
|
|
657
|
+
"textAcceptedFormats": {
|
|
658
|
+
"type": "string",
|
|
659
|
+
"mutable": false,
|
|
660
|
+
"complexType": {
|
|
661
|
+
"original": "string",
|
|
662
|
+
"resolved": "string",
|
|
663
|
+
"references": {}
|
|
664
|
+
},
|
|
665
|
+
"required": false,
|
|
666
|
+
"optional": false,
|
|
667
|
+
"docs": {
|
|
668
|
+
"tags": [],
|
|
669
|
+
"text": "Texte pour les formats autoris\u00E9s (utiliser {formats} comme placeholder)"
|
|
670
|
+
},
|
|
671
|
+
"getter": false,
|
|
672
|
+
"setter": false,
|
|
673
|
+
"reflect": false,
|
|
674
|
+
"attribute": "text-accepted-formats",
|
|
675
|
+
"defaultValue": "'Formats autoris\u00E9s : {formats}.'"
|
|
676
|
+
},
|
|
677
|
+
"textRefusedFormats": {
|
|
678
|
+
"type": "string",
|
|
679
|
+
"mutable": false,
|
|
680
|
+
"complexType": {
|
|
681
|
+
"original": "string",
|
|
682
|
+
"resolved": "string",
|
|
683
|
+
"references": {}
|
|
684
|
+
},
|
|
685
|
+
"required": false,
|
|
686
|
+
"optional": false,
|
|
687
|
+
"docs": {
|
|
688
|
+
"tags": [],
|
|
689
|
+
"text": "Texte pour les formats refus\u00E9s (utiliser {formats} comme placeholder)"
|
|
690
|
+
},
|
|
691
|
+
"getter": false,
|
|
692
|
+
"setter": false,
|
|
693
|
+
"reflect": false,
|
|
694
|
+
"attribute": "text-refused-formats",
|
|
695
|
+
"defaultValue": "'Formats refus\u00E9s : {formats}.'"
|
|
696
|
+
},
|
|
697
|
+
"textAllFormats": {
|
|
698
|
+
"type": "string",
|
|
699
|
+
"mutable": false,
|
|
700
|
+
"complexType": {
|
|
701
|
+
"original": "string",
|
|
702
|
+
"resolved": "string",
|
|
703
|
+
"references": {}
|
|
704
|
+
},
|
|
705
|
+
"required": false,
|
|
706
|
+
"optional": false,
|
|
707
|
+
"docs": {
|
|
708
|
+
"tags": [],
|
|
709
|
+
"text": "Texte quand tous les formats sont autoris\u00E9s"
|
|
710
|
+
},
|
|
711
|
+
"getter": false,
|
|
712
|
+
"setter": false,
|
|
713
|
+
"reflect": false,
|
|
714
|
+
"attribute": "text-all-formats",
|
|
715
|
+
"defaultValue": "'Formats autoris\u00E9s : tous les formats.'"
|
|
716
|
+
},
|
|
717
|
+
"textErrorFormat": {
|
|
718
|
+
"type": "string",
|
|
719
|
+
"mutable": false,
|
|
720
|
+
"complexType": {
|
|
721
|
+
"original": "string",
|
|
722
|
+
"resolved": "string",
|
|
723
|
+
"references": {}
|
|
724
|
+
},
|
|
725
|
+
"required": false,
|
|
726
|
+
"optional": false,
|
|
727
|
+
"docs": {
|
|
728
|
+
"tags": [],
|
|
729
|
+
"text": "Message d'erreur quand le format n'est pas autoris\u00E9 (utiliser {filename} comme placeholder)"
|
|
730
|
+
},
|
|
731
|
+
"getter": false,
|
|
732
|
+
"setter": false,
|
|
733
|
+
"reflect": false,
|
|
734
|
+
"attribute": "text-error-format",
|
|
735
|
+
"defaultValue": "\"{filename} n'a pas \u00E9t\u00E9 pris en compte car le format n'est pas autoris\u00E9.\""
|
|
736
|
+
},
|
|
737
|
+
"textErrorSize": {
|
|
738
|
+
"type": "string",
|
|
739
|
+
"mutable": false,
|
|
740
|
+
"complexType": {
|
|
741
|
+
"original": "string",
|
|
742
|
+
"resolved": "string",
|
|
743
|
+
"references": {}
|
|
744
|
+
},
|
|
745
|
+
"required": false,
|
|
746
|
+
"optional": false,
|
|
747
|
+
"docs": {
|
|
748
|
+
"tags": [],
|
|
749
|
+
"text": "Message d'erreur quand la taille est d\u00E9pass\u00E9e (utiliser {filename} comme placeholder)"
|
|
750
|
+
},
|
|
751
|
+
"getter": false,
|
|
752
|
+
"setter": false,
|
|
753
|
+
"reflect": false,
|
|
754
|
+
"attribute": "text-error-size",
|
|
755
|
+
"defaultValue": "\"{filename} n'a pas \u00E9t\u00E9 pris en compte car il d\u00E9passe la taille maximale autoris\u00E9e.\""
|
|
756
|
+
},
|
|
757
|
+
"textErrorFormatAndSize": {
|
|
758
|
+
"type": "string",
|
|
759
|
+
"mutable": false,
|
|
760
|
+
"complexType": {
|
|
761
|
+
"original": "string",
|
|
762
|
+
"resolved": "string",
|
|
763
|
+
"references": {}
|
|
764
|
+
},
|
|
765
|
+
"required": false,
|
|
766
|
+
"optional": false,
|
|
767
|
+
"docs": {
|
|
768
|
+
"tags": [],
|
|
769
|
+
"text": "Message d'erreur quand le format et la taille sont invalides (utiliser {filename} comme placeholder)"
|
|
770
|
+
},
|
|
771
|
+
"getter": false,
|
|
772
|
+
"setter": false,
|
|
773
|
+
"reflect": false,
|
|
774
|
+
"attribute": "text-error-format-and-size",
|
|
775
|
+
"defaultValue": "\"{filename} n'a pas \u00E9t\u00E9 pris en compte car le format n'est pas autoris\u00E9 et la limite de poids est d\u00E9pass\u00E9e.\""
|
|
776
|
+
},
|
|
777
|
+
"textLimitReached": {
|
|
778
|
+
"type": "string",
|
|
779
|
+
"mutable": false,
|
|
780
|
+
"complexType": {
|
|
781
|
+
"original": "string",
|
|
782
|
+
"resolved": "string",
|
|
783
|
+
"references": {}
|
|
784
|
+
},
|
|
785
|
+
"required": false,
|
|
786
|
+
"optional": false,
|
|
787
|
+
"docs": {
|
|
788
|
+
"tags": [],
|
|
789
|
+
"text": "Message quand la limite de fichiers est atteinte"
|
|
790
|
+
},
|
|
791
|
+
"getter": false,
|
|
792
|
+
"setter": false,
|
|
793
|
+
"reflect": false,
|
|
794
|
+
"attribute": "text-limit-reached",
|
|
795
|
+
"defaultValue": "'Vous avez atteint la limite autoris\u00E9e de fichiers.'"
|
|
796
|
+
},
|
|
797
|
+
"textLimitExceeded": {
|
|
798
|
+
"type": "string",
|
|
799
|
+
"mutable": false,
|
|
800
|
+
"complexType": {
|
|
801
|
+
"original": "string",
|
|
802
|
+
"resolved": "string",
|
|
803
|
+
"references": {}
|
|
804
|
+
},
|
|
805
|
+
"required": false,
|
|
806
|
+
"optional": false,
|
|
807
|
+
"docs": {
|
|
808
|
+
"tags": [],
|
|
809
|
+
"text": "Message quand on d\u00E9passe la limite de fichiers (utiliser {count} comme placeholder)"
|
|
810
|
+
},
|
|
811
|
+
"getter": false,
|
|
812
|
+
"setter": false,
|
|
813
|
+
"reflect": false,
|
|
814
|
+
"attribute": "text-limit-exceeded",
|
|
815
|
+
"defaultValue": "'Vous ne pouvez pas t\u00E9l\u00E9charger plus de {count} fichier(s).'"
|
|
465
816
|
}
|
|
466
817
|
};
|
|
467
818
|
}
|
|
@@ -400,6 +400,12 @@ template {
|
|
|
400
400
|
.spw-group--is-full-width .spw-group__container {
|
|
401
401
|
width: 100% !important;
|
|
402
402
|
}
|
|
403
|
+
@media (min-width: 768px) {
|
|
404
|
+
.spw-group--buttons.spw-group--align-center .spw-group__container {
|
|
405
|
+
justify-content: center;
|
|
406
|
+
align-items: center;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
403
409
|
@media (min-width: 768px) {
|
|
404
410
|
.spw-group__container {
|
|
405
411
|
align-items: center;
|
|
@@ -407,6 +413,7 @@ template {
|
|
|
407
413
|
}
|
|
408
414
|
.spw-group--buttons .spw-group__container {
|
|
409
415
|
gap: 12px;
|
|
416
|
+
flex-wrap: wrap;
|
|
410
417
|
width: 100%;
|
|
411
418
|
}
|
|
412
419
|
@media (min-width: 768px) {
|
|
@@ -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
|
========================================================================== */
|
|
@@ -377,9 +378,13 @@ template {
|
|
|
377
378
|
|
|
378
379
|
:host {
|
|
379
380
|
display: block;
|
|
381
|
+
/** @prop --spw-hero-content-max-width: Largeur maximale du contenu du hero */
|
|
380
382
|
--spw-hero-content-max-width: 578px;
|
|
383
|
+
/** @prop --spw-hero-ratio-picture: Ratio de l'image du hero */
|
|
381
384
|
--spw-hero-ratio-picture: initial;
|
|
385
|
+
/** @prop --spw-hero-shadow: Ombre portée du hero */
|
|
382
386
|
--spw-hero-shadow: var(--spw-effect-elevation-5);
|
|
387
|
+
/** @prop --spw-hero-radius: Rayon de bordure du hero */
|
|
383
388
|
--spw-hero-radius: 12px;
|
|
384
389
|
}
|
|
385
390
|
|
|
@@ -457,12 +462,12 @@ template {
|
|
|
457
462
|
}
|
|
458
463
|
@media (min-width: 1024px) {
|
|
459
464
|
.spw-hero--has-picture-full.spw-hero--left .spw-hero__container {
|
|
460
|
-
padding-left: calc(
|
|
465
|
+
padding-left: calc(50% + 48px);
|
|
461
466
|
}
|
|
462
467
|
}
|
|
463
468
|
@media (min-width: 1024px) {
|
|
464
469
|
.spw-hero--has-picture-full.spw-hero--right .spw-hero__container {
|
|
465
|
-
padding-right: calc(
|
|
470
|
+
padding-right: calc(50% + 48px);
|
|
466
471
|
}
|
|
467
472
|
}
|
|
468
473
|
.spw-hero--maxi .spw-hero__container {
|
|
@@ -556,7 +561,7 @@ template {
|
|
|
556
561
|
@media (min-width: 1024px) {
|
|
557
562
|
.spw-hero--has-picture-full .spw-hero__image {
|
|
558
563
|
position: absolute;
|
|
559
|
-
max-width:
|
|
564
|
+
max-width: 50%;
|
|
560
565
|
}
|
|
561
566
|
}
|
|
562
567
|
.spw-hero--has-picture-full.spw-hero--right .spw-hero__image {
|
|
@@ -653,4 +658,8 @@ template {
|
|
|
653
658
|
padding-top: 64px;
|
|
654
659
|
width: 400px;
|
|
655
660
|
}
|
|
661
|
+
}
|
|
662
|
+
.spw-hero--mini.spw-hero--no-picture .spw-hero__content {
|
|
663
|
+
width: 100%;
|
|
664
|
+
max-width: 100%;
|
|
656
665
|
}
|
|
@@ -46,6 +46,7 @@ export class SpwHero {
|
|
|
46
46
|
'spw-hero': true,
|
|
47
47
|
[`spw-hero--surface-${this.surface}`]: true,
|
|
48
48
|
[`spw-hero--has-picture-full`]: this.hasPictureFull,
|
|
49
|
+
[`spw-hero--no-picture`]: !this.imageSrc,
|
|
49
50
|
[`spw-hero--has-video`]: this.hasVideo,
|
|
50
51
|
[`spw-hero--has-shadow`]: this.hasShadow,
|
|
51
52
|
[`spw-hero--has-radius`]: this.hasRadius,
|
|
@@ -60,10 +61,10 @@ export class SpwHero {
|
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
63
|
render() {
|
|
63
|
-
const contentSlot = (h("div", { key: '
|
|
64
|
-
const copyrightTag = this.copyrightText && (h("spw-tag", { key: '
|
|
64
|
+
const contentSlot = (h("div", { key: '1ef59bba9c27af229180eb7a0ef16615670c9333', class: "spw-hero__content" }, h("slot", { key: '6e7a127b1c44a579b7b01d4843a77d3f1dc3e42d' })));
|
|
65
|
+
const copyrightTag = this.copyrightText && (h("spw-tag", { key: '4abf3416a4b590be8a6c547dca5f23117a7baa6f', size: "small", "icon-variant": this.copyrightIconVariant, class: "spw-hero__copyright", icon: this.copyrightIcon, href: this.copyrightHref || undefined, target: this.copyrightHref ? this.copyrightTarget : undefined }, this.copyrightText));
|
|
65
66
|
const isImageVariant = this.variant === 'grey' || this.variant === 'white';
|
|
66
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: 'd554ccbfe45abfd12afcee69a58149c0303af7ae' }, h("div", { key: 'e30a08f985824cc31b8e71e4f66446d14903a85e', class: this.elementClass }, this.imageSrc && (h("div", { key: 'ed0e6bd2355fe2e80ea396f9917a2862b35cc21e', class: "spw-hero__image" }, this.hasVideo && this.variant !== 'maxi' && this.variant !== 'photo' && (h("div", { key: '1df3416086c2bbeaee445c7e689e2eb3b1cbdc70', class: "spw-hero__image-play", onClick: this.triggerModal, onKeyDown: this.handleKeyDown, tabIndex: 0, role: "button", "aria-label": this.accPlayButtonAriaLabel }, h("spw-icon", { key: '51de08b74473fbf2c5a2165493c49baff423f2ca', icon: "fa-play" }))), h("div", { key: 'd6a568dfde8a27a88812610924a37bae4b787da6', class: "spw-hero__overlay", style: this.overlayStyle }), h("img", { key: 'cb3745cbfdb19a48ba94d94a65e47d8ae658008b', src: this.imageSrc, alt: this.imageAlt, style: this.imagePosition ? { objectPosition: this.imagePosition } : undefined }), isImageVariant && copyrightTag)), this.variant === 'mini' ? contentSlot : h("div", { class: "spw-ds-container spw-hero__container" }, contentSlot), !isImageVariant && copyrightTag)));
|
|
67
68
|
}
|
|
68
69
|
static get is() { return "spw-hero"; }
|
|
69
70
|
static get encapsulation() { return "shadow"; }
|
|
@@ -434,6 +435,25 @@ export class SpwHero {
|
|
|
434
435
|
"reflect": false,
|
|
435
436
|
"attribute": "copyright-target",
|
|
436
437
|
"defaultValue": "'_blank'"
|
|
438
|
+
},
|
|
439
|
+
"imagePosition": {
|
|
440
|
+
"type": "string",
|
|
441
|
+
"mutable": false,
|
|
442
|
+
"complexType": {
|
|
443
|
+
"original": "string",
|
|
444
|
+
"resolved": "string",
|
|
445
|
+
"references": {}
|
|
446
|
+
},
|
|
447
|
+
"required": false,
|
|
448
|
+
"optional": true,
|
|
449
|
+
"docs": {
|
|
450
|
+
"tags": [],
|
|
451
|
+
"text": "Position de l'image (object-position), ex: 'top left', 'center center', 'bottom right'"
|
|
452
|
+
},
|
|
453
|
+
"getter": false,
|
|
454
|
+
"setter": false,
|
|
455
|
+
"reflect": false,
|
|
456
|
+
"attribute": "image-position"
|
|
437
457
|
}
|
|
438
458
|
};
|
|
439
459
|
}
|
|
@@ -377,9 +377,13 @@ template {
|
|
|
377
377
|
|
|
378
378
|
:host {
|
|
379
379
|
display: block;
|
|
380
|
+
/** @prop --spw-ds-illustration-max-width: Largeur maximale de l'illustration */
|
|
380
381
|
--spw-ds-illustration-max-width: 400px;
|
|
382
|
+
/** @prop --spw-ds-illustration-max-height: Hauteur maximale de l'illustration */
|
|
381
383
|
--spw-ds-illustration-max-height: 100%;
|
|
384
|
+
/** @prop --spw-ds-illustration-width: Largeur de l'illustration */
|
|
382
385
|
--spw-ds-illustration-width: 100%;
|
|
386
|
+
/** @prop --spw-ds-illustration-height: Hauteur de l'illustration */
|
|
383
387
|
--spw-ds-illustration-height: 100%;
|
|
384
388
|
}
|
|
385
389
|
|
|
@@ -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
|
========================================================================== */
|
|
@@ -376,16 +377,22 @@ template {
|
|
|
376
377
|
}
|
|
377
378
|
|
|
378
379
|
:host {
|
|
379
|
-
display:
|
|
380
|
+
/** @prop --spw-link-display: Mode d'affichage du lien */
|
|
381
|
+
--spw-link-display: inline;
|
|
382
|
+
/** @prop --spw-link-color: Couleur du lien */
|
|
380
383
|
--spw-link-color: var(--spw-ds-primary);
|
|
384
|
+
/** @prop --spw-link-hover-color: Couleur du lien au survol */
|
|
381
385
|
--spw-link-hover-color: var(--spw-ds-variant);
|
|
386
|
+
/** @prop --spw-link-active-color: Couleur du lien à l'état actif */
|
|
382
387
|
--spw-link-active-color: var(--spw-ds-active);
|
|
388
|
+
/** @prop --spw-link-font-weight: Graisse de la police du lien */
|
|
383
389
|
--spw-link-font-weight: 700;
|
|
390
|
+
/** @prop --spw-link-padding: Espacement autour de l'icône */
|
|
384
391
|
--spw-link-padding: 6px;
|
|
385
392
|
}
|
|
386
393
|
|
|
387
394
|
.spw-link {
|
|
388
|
-
display:
|
|
395
|
+
display: var(--spw-link-display);
|
|
389
396
|
text-decoration: none;
|
|
390
397
|
cursor: pointer;
|
|
391
398
|
color: var(--spw-link-color);
|
|
@@ -30,10 +30,14 @@ export class SpwListItem {
|
|
|
30
30
|
titleElement && titleElement.classList.add(variantClass);
|
|
31
31
|
titleElement && titleElement.classList.add(surfaceClass);
|
|
32
32
|
titleElement && this.icon && titleElement.setAttribute('icon', this.icon);
|
|
33
|
-
titleElement && titleElement.
|
|
33
|
+
if (titleElement && !titleElement.hasAttribute('line-clamp')) {
|
|
34
|
+
titleElement.setAttribute('line-clamp', this.lineClamp);
|
|
35
|
+
}
|
|
34
36
|
descriptionElement && descriptionElement.classList.add(variantClass);
|
|
35
37
|
descriptionElement && this.icon && descriptionElement.classList.add(iconClass);
|
|
36
|
-
descriptionElement && descriptionElement.
|
|
38
|
+
if (descriptionElement && !descriptionElement.hasAttribute('line-clamp')) {
|
|
39
|
+
descriptionElement.setAttribute('line-clamp', this.lineClamp);
|
|
40
|
+
}
|
|
37
41
|
});
|
|
38
42
|
}
|
|
39
43
|
onMouseEnter() {
|
|
@@ -102,7 +106,7 @@ export class SpwListItem {
|
|
|
102
106
|
href,
|
|
103
107
|
target,
|
|
104
108
|
};
|
|
105
|
-
return (h(Host, { key: '
|
|
109
|
+
return (h(Host, { key: '1127ccb2fbe7b6089d4d204954dd62fc732ad35b' }, h("li", { key: 'e27994831fd4d9e822f3965a5b717447f1111594', role: "listitem", class: this.elementClass }, this.category && (h("span", { key: '24b24b9b7473ee44a9087a263b2aaac68d4588fe', class: this.elementCatClass, onClick: () => this.handleClick() }, this.categoryIcon && h("spw-icon", { key: '28cb8fbb60f5477f2d3987bc1dd8a3a2ec8fc4b3', icon: this.categoryIcon }), " ", this.category)), h(TagType, Object.assign({ key: 'b179fd8a6a20642f45794827e60175b794eae5cd' }, attrs), h("slot", { key: '0736948a1637037e5ef414bd2e9e2c5671715bfe' })))));
|
|
106
110
|
}
|
|
107
111
|
static get is() { return "spw-list-item"; }
|
|
108
112
|
static get encapsulation() { return "shadow"; }
|