@spw-ds/spw-stencil-library 1.3.3 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-DFv_X5OO.js → index-BDhk9IqL.js} +25 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/spw-accordion_4.cjs.entry.js +1 -1
- package/dist/cjs/spw-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/spw-button_2.cjs.entry.js +1 -1
- package/dist/cjs/spw-card-content.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-excerpt.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-image.cjs.entry.js +23 -5
- package/dist/cjs/spw-card-subtag-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-subtags.cjs.entry.js +6 -3
- package/dist/cjs/spw-card-title.cjs.entry.js +2 -2
- package/dist/cjs/spw-card.cjs.entry.js +3 -3
- package/dist/cjs/spw-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/spw-cookies.cjs.entry.js +1 -1
- package/dist/cjs/spw-custom-select.cjs.entry.js +23 -4
- package/dist/cjs/spw-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/spw-dropdown-container.cjs.entry.js +1 -1
- package/dist/cjs/spw-dropdown-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/spw-field-label_6.cjs.entry.js +3 -3
- package/dist/cjs/spw-field-message.cjs.entry.js +1 -1
- package/dist/cjs/spw-file-upload.cjs.entry.js +35 -10
- 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-item.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 +1 -1
- package/dist/cjs/spw-illustration.cjs.entry.js +1 -1
- package/dist/cjs/spw-list-description.cjs.entry.js +1 -1
- package/dist/cjs/spw-list-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-list-title.cjs.entry.js +1 -1
- package/dist/cjs/spw-list.cjs.entry.js +1 -1
- package/dist/cjs/spw-message.cjs.entry.js +1 -1
- package/dist/cjs/spw-modal.cjs.entry.js +1 -1
- package/dist/cjs/spw-mosaic-item.cjs.entry.js +48 -7
- package/dist/cjs/spw-mosaic.cjs.entry.js +6 -3
- package/dist/cjs/spw-pagination.cjs.entry.js +1 -1
- package/dist/cjs/spw-radio.cjs.entry.js +1 -1
- package/dist/cjs/spw-search-field.cjs.entry.js +1 -1
- package/dist/cjs/spw-select.cjs.entry.js +17 -11
- package/dist/cjs/spw-sidebar-navigation-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidebar-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidebar-navigation-separator.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/spw-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/spw-slider-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-slider.cjs.entry.js +1 -1
- package/dist/cjs/spw-socials.cjs.entry.js +1 -1
- package/dist/cjs/spw-stencil-library.cjs.js +3 -3
- package/dist/cjs/spw-table-body.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-container.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-head.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-header.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-row.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/spw-table.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-navigation.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs.cjs.entry.js +1 -1
- package/dist/cjs/spw-tag.cjs.entry.js +1 -1
- package/dist/cjs/spw-text-field.cjs.entry.js +1 -1
- package/dist/cjs/spw-textarea.cjs.entry.js +1 -1
- package/dist/cjs/spw-tile-description.cjs.entry.js +1 -1
- package/dist/cjs/spw-tile-title.cjs.entry.js +1 -1
- package/dist/cjs/spw-tile.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/spw-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/spw-topbar.cjs.entry.js +1 -1
- package/dist/cjs/spw-wizard-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-wizard.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/spw-card/spw-card-content/spw-card-content.css +36 -2
- package/dist/collection/components/spw-card/spw-card-excerpt/spw-card-excerpt.css +3 -0
- package/dist/collection/components/spw-card/spw-card-image/spw-card-image.css +35 -14
- package/dist/collection/components/spw-card/spw-card-image/spw-card-image.js +79 -4
- package/dist/collection/components/spw-card/spw-card-subtag-item/spw-card-subtag-item.css +3 -0
- package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.css +3 -0
- package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.js +4 -1
- package/dist/collection/components/spw-card/spw-card-title/spw-card-title.css +10 -2
- package/dist/collection/components/spw-card/spw-card.js +4 -4
- package/dist/collection/components/spw-custom-select/spw-custom-select.js +61 -4
- package/dist/collection/components/spw-file-upload/spw-file-upload.js +55 -10
- package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.js +111 -6
- package/dist/collection/components/spw-mosaic/spw-mosaic.js +9 -2
- package/dist/collection/components/spw-select/spw-select.js +55 -11
- package/dist/collection/components/spw-theme-provider/spw-theme-provider.js +2 -2
- package/dist/collection/components/spw-tile/spw-tile.css +17 -0
- package/dist/collection/stories/organisms/spw-card/spw-card.stories.js +22 -0
- package/dist/collection/stories/organisms/spw-grid/spw-grid.stories.js +14 -14
- package/dist/collection/stories/organisms/spw-mosaic/spw-mosaic.stories.js +131 -0
- package/dist/components/index.js +1 -1
- package/dist/components/spw-card-content.js +1 -1
- package/dist/components/spw-card-excerpt.js +1 -1
- package/dist/components/spw-card-image.js +1 -1
- package/dist/components/spw-card-subtag-item.js +1 -1
- package/dist/components/spw-card-subtags.js +1 -1
- package/dist/components/spw-card-title.js +1 -1
- package/dist/components/spw-card.js +1 -1
- package/dist/components/spw-custom-select.js +1 -1
- package/dist/components/spw-file-upload.js +1 -1
- package/dist/components/spw-mosaic-item.js +1 -1
- package/dist/components/spw-mosaic.js +4 -4
- package/dist/components/spw-select.js +1 -1
- package/dist/components/spw-theme-provider.js +1 -1
- package/dist/components/spw-tile.js +1 -1
- package/dist/components_json.d.ts +26 -0
- package/dist/components_json.json +391 -10
- package/dist/esm/{index-BhcwOlgO.js → index-zvPT2o70.js} +25 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/spw-accordion_4.entry.js +1 -1
- package/dist/esm/spw-breadcrumb-item.entry.js +1 -1
- package/dist/esm/spw-breadcrumb.entry.js +1 -1
- package/dist/esm/spw-button_2.entry.js +1 -1
- package/dist/esm/spw-card-content.entry.js +2 -2
- package/dist/esm/spw-card-excerpt.entry.js +2 -2
- package/dist/esm/spw-card-image.entry.js +23 -5
- package/dist/esm/spw-card-subtag-item.entry.js +2 -2
- package/dist/esm/spw-card-subtags.entry.js +6 -3
- package/dist/esm/spw-card-title.entry.js +2 -2
- package/dist/esm/spw-card.entry.js +3 -3
- package/dist/esm/spw-checkbox.entry.js +1 -1
- package/dist/esm/spw-cookies.entry.js +1 -1
- package/dist/esm/spw-custom-select.entry.js +23 -4
- package/dist/esm/spw-date-picker.entry.js +1 -1
- package/dist/esm/spw-dropdown-container.entry.js +1 -1
- package/dist/esm/spw-dropdown-item.entry.js +1 -1
- package/dist/esm/spw-dropdown.entry.js +1 -1
- package/dist/esm/spw-field-label_6.entry.js +3 -3
- package/dist/esm/spw-field-message.entry.js +1 -1
- package/dist/esm/spw-file-upload.entry.js +35 -10
- 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-item.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 +1 -1
- package/dist/esm/spw-illustration.entry.js +1 -1
- package/dist/esm/spw-list-description.entry.js +1 -1
- package/dist/esm/spw-list-item.entry.js +1 -1
- package/dist/esm/spw-list-title.entry.js +1 -1
- package/dist/esm/spw-list.entry.js +1 -1
- package/dist/esm/spw-message.entry.js +1 -1
- package/dist/esm/spw-modal.entry.js +1 -1
- package/dist/esm/spw-mosaic-item.entry.js +48 -7
- package/dist/esm/spw-mosaic.entry.js +6 -3
- package/dist/esm/spw-pagination.entry.js +1 -1
- package/dist/esm/spw-radio.entry.js +1 -1
- package/dist/esm/spw-search-field.entry.js +1 -1
- package/dist/esm/spw-select.entry.js +17 -11
- package/dist/esm/spw-sidebar-navigation-dropdown.entry.js +1 -1
- package/dist/esm/spw-sidebar-navigation-item.entry.js +1 -1
- package/dist/esm/spw-sidebar-navigation-separator.entry.js +1 -1
- package/dist/esm/spw-sidebar.entry.js +1 -1
- package/dist/esm/spw-skeleton.entry.js +1 -1
- package/dist/esm/spw-slider-item.entry.js +1 -1
- package/dist/esm/spw-slider.entry.js +1 -1
- package/dist/esm/spw-socials.entry.js +1 -1
- package/dist/esm/spw-stencil-library.js +4 -4
- package/dist/esm/spw-table-body.entry.js +1 -1
- package/dist/esm/spw-table-cell.entry.js +1 -1
- package/dist/esm/spw-table-container.entry.js +1 -1
- package/dist/esm/spw-table-footer.entry.js +1 -1
- package/dist/esm/spw-table-head.entry.js +1 -1
- package/dist/esm/spw-table-header.entry.js +1 -1
- package/dist/esm/spw-table-row.entry.js +1 -1
- package/dist/esm/spw-table-sidebar.entry.js +1 -1
- package/dist/esm/spw-table.entry.js +1 -1
- package/dist/esm/spw-tabs-content.entry.js +1 -1
- package/dist/esm/spw-tabs-navigation-item.entry.js +1 -1
- package/dist/esm/spw-tabs-navigation.entry.js +1 -1
- package/dist/esm/spw-tabs.entry.js +1 -1
- package/dist/esm/spw-tag.entry.js +1 -1
- package/dist/esm/spw-text-field.entry.js +1 -1
- package/dist/esm/spw-textarea.entry.js +1 -1
- package/dist/esm/spw-tile-description.entry.js +1 -1
- package/dist/esm/spw-tile-title.entry.js +1 -1
- package/dist/esm/spw-tile.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/spw-tooltip.entry.js +1 -1
- package/dist/esm/spw-topbar.entry.js +1 -1
- package/dist/esm/spw-wizard-item.entry.js +1 -1
- package/dist/esm/spw-wizard.entry.js +1 -1
- package/dist/spw-stencil-library/{p-7889e1ae.entry.js → p-00981af1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3733b5aa.entry.js → p-02dd5517.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-572fbe20.entry.js → p-078261da.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6ccec3e1.entry.js → p-0c886bce.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d8e93516.entry.js → p-0cdb1c7a.entry.js} +3 -3
- package/dist/spw-stencil-library/{p-335213ab.entry.js → p-0fa3c5a8.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ebeaaedd.entry.js → p-119dc76e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e6150dda.entry.js → p-12268f18.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f9eaa983.entry.js → p-154dc79f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-de798509.entry.js → p-158d27f1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-363a2f26.entry.js → p-1b336fd5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-fdbda346.entry.js → p-202af17f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-48d208ee.entry.js → p-20c986a5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-efb0ac80.entry.js → p-210521e8.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-76939fb5.entry.js → p-24a568d2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4a2c3f75.entry.js → p-2a9226ea.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ee3be870.entry.js → p-2d1821a8.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c9b33019.entry.js → p-3026743f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-80eab1b0.entry.js → p-3438de68.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-665fd904.entry.js → p-3ebc4d17.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-545a148a.entry.js → p-3fd4179c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-14ae8c47.entry.js → p-413de383.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-db33ceff.entry.js → p-421bb748.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-78c4b828.entry.js → p-438607a5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f0c7973a.entry.js → p-45896432.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d126356c.entry.js → p-4c785aa5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-601d8677.entry.js → p-5441ea4a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b29a5f6d.entry.js → p-56888fba.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-28914c6c.entry.js → p-57bfd284.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6c5fed80.entry.js → p-59c92982.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e77926c1.entry.js → p-5ac0db5e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-24b404bc.entry.js → p-5b96a70b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-82bdad54.entry.js → p-5df7fe5b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e8294025.entry.js → p-5f07ebe3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-45bd7e3f.entry.js → p-66c3353a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f22e24d7.entry.js → p-699d3025.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9e96cfab.entry.js → p-6af7ff85.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4bfb9fe7.entry.js → p-6cdfc785.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-153a8379.entry.js → p-72381f94.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-079623b3.entry.js → p-7345cc3e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-51dee6d1.entry.js → p-7376d212.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-245ec14d.entry.js → p-75cea309.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b14ddb08.entry.js → p-781308b8.entry.js} +1 -1
- package/dist/spw-stencil-library/p-795fd046.entry.js +1 -0
- package/dist/spw-stencil-library/{p-63777231.entry.js → p-7bd99f06.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-0f0e0865.entry.js → p-7ececad8.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-af000e35.entry.js → p-7f6da999.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-70424f67.entry.js → p-815e4725.entry.js} +1 -1
- package/dist/spw-stencil-library/p-82b998aa.entry.js +1 -0
- package/dist/spw-stencil-library/{p-ecbd9504.entry.js → p-83e39435.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-0b1cd208.entry.js → p-8b968054.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-09e6a285.entry.js → p-8ca86d23.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-16005257.entry.js → p-91f5df27.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-88fc6448.entry.js → p-9a7d7f9d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-907bb470.entry.js → p-a2cb284e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3e8d5ced.entry.js → p-ab8108e4.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-051d07e3.entry.js → p-abe1c922.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-0208e5fc.entry.js → p-b2c69e43.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c2f883a7.entry.js → p-bbd5d426.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d4b91d0b.entry.js → p-c0e4684c.entry.js} +1 -1
- package/dist/spw-stencil-library/p-c2185607.entry.js +1 -0
- package/dist/spw-stencil-library/{p-c3f43f82.entry.js → p-c6ab3133.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ecbb2e9a.entry.js → p-c78fc24d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-40a288b5.entry.js → p-cd302edb.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-7eeac846.entry.js → p-d3c32e7f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-abd0df84.entry.js → p-d56223ba.entry.js} +1 -1
- package/dist/spw-stencil-library/p-d96571dc.entry.js +1 -0
- package/dist/spw-stencil-library/{p-95ad5b00.entry.js → p-df14a8e2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c833a6fb.entry.js → p-df65ed86.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e03d5d7c.entry.js → p-e1a7ae7c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-adb783f5.entry.js → p-eb3b408f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-db2f9ef2.entry.js → p-ebf9a498.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-520fdc55.entry.js → p-ec2a7993.entry.js} +1 -1
- package/dist/spw-stencil-library/p-ec558a0d.entry.js +1 -0
- package/dist/spw-stencil-library/{p-6b8b8146.entry.js → p-ec74c5a2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5b5e643f.entry.js → p-ecf92393.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c8870b5a.entry.js → p-ed458c7a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e1f204c9.entry.js → p-ed55740f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-fc294645.entry.js → p-ed705534.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-551ec5c3.entry.js → p-ef42809d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-06faf7dd.entry.js → p-f10354a7.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3e951a12.entry.js → p-f18a97f4.entry.js} +1 -1
- package/dist/spw-stencil-library/p-f2a11ced.entry.js +1 -0
- package/dist/spw-stencil-library/{p-2770164c.entry.js → p-fec510e9.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-BhcwOlgO.js → p-zvPT2o70.js} +1 -1
- package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
- package/dist/stats.json +1347 -749
- package/dist/types/components/spw-card/spw-card-image/spw-card-image.d.ts +8 -1
- package/dist/types/components/spw-card/spw-card.d.ts +1 -1
- package/dist/types/components/spw-custom-select/spw-custom-select.d.ts +5 -0
- package/dist/types/components/spw-file-upload/spw-file-upload.d.ts +3 -1
- package/dist/types/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.d.ts +11 -0
- package/dist/types/components/spw-select/spw-select.d.ts +5 -1
- package/dist/types/components.d.ts +878 -177
- package/dist/types/stencil-public-runtime.d.ts +24 -1
- package/dist/types/stories/organisms/spw-card/spw-card.stories.d.ts +1 -0
- package/dist/types/stories/organisms/spw-mosaic/spw-mosaic.stories.d.ts +1 -0
- package/dist/types/themes/themes.d.ts +10 -10
- package/hydrate/index.js +196 -52
- package/hydrate/index.mjs +196 -52
- package/package.json +1 -1
- package/dist/spw-stencil-library/p-38bd2b93.entry.js +0 -1
- package/dist/spw-stencil-library/p-a5e811f0.entry.js +0 -1
- package/dist/spw-stencil-library/p-a92189cd.entry.js +0 -1
- package/dist/spw-stencil-library/p-aad1a377.entry.js +0 -1
- package/dist/spw-stencil-library/p-d7ed084c.entry.js +0 -1
- package/dist/spw-stencil-library/p-fb0c6681.entry.js +0 -1
|
@@ -10,8 +10,10 @@ export class SpwFileUpload {
|
|
|
10
10
|
this.enableDropZone = false;
|
|
11
11
|
/** Permet de téléverser plusieurs fichiers si vrai */
|
|
12
12
|
this.multiple = false;
|
|
13
|
-
/** Types de fichiers acceptés, spécifiés sous forme de chaîne de types MIME */
|
|
13
|
+
/** Types de fichiers acceptés, spécifiés sous forme de chaîne de types MIME ou extensions (whitelist) */
|
|
14
14
|
this.accept = '';
|
|
15
|
+
/** Types de fichiers refusés, spécifiés sous forme de chaîne de types MIME ou extensions (blacklist) */
|
|
16
|
+
this.refuse = '';
|
|
15
17
|
/** Taille maximale autorisée pour chaque fichier, en Mo */
|
|
16
18
|
this.maxFileSize = 100;
|
|
17
19
|
/** Nombre maximal de fichiers pouvant être téléversés */
|
|
@@ -25,6 +27,9 @@ export class SpwFileUpload {
|
|
|
25
27
|
componentWillLoad() {
|
|
26
28
|
this.internalValue = this.value;
|
|
27
29
|
this.maxFileSize = this.maxFileSize * 1024 * 1024;
|
|
30
|
+
if (this.accept && this.refuse) {
|
|
31
|
+
console.warn('spw-file-upload: Vous ne pouvez pas utiliser "accept" et "refuse" en même temps. Seul "accept" sera pris en compte.');
|
|
32
|
+
}
|
|
28
33
|
}
|
|
29
34
|
componentWillUpdate() {
|
|
30
35
|
if (this.value !== this.internalValue) {
|
|
@@ -82,10 +87,20 @@ export class SpwFileUpload {
|
|
|
82
87
|
this.updateFormValue();
|
|
83
88
|
}
|
|
84
89
|
isFileAccepted(file) {
|
|
85
|
-
if (
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
90
|
+
if (this.accept && this.refuse) {
|
|
91
|
+
const acceptedTypes = this.accept.split(',').map(type => type.trim());
|
|
92
|
+
return acceptedTypes.includes(file.type) || acceptedTypes.some(type => file.name.endsWith(type));
|
|
93
|
+
}
|
|
94
|
+
if (this.accept) {
|
|
95
|
+
const acceptedTypes = this.accept.split(',').map(type => type.trim());
|
|
96
|
+
return acceptedTypes.includes(file.type) || acceptedTypes.some(type => file.name.endsWith(type));
|
|
97
|
+
}
|
|
98
|
+
if (this.refuse) {
|
|
99
|
+
const refusedTypes = this.refuse.split(',').map(type => type.trim());
|
|
100
|
+
const isRefused = refusedTypes.includes(file.type) || refusedTypes.some(type => file.name.endsWith(type));
|
|
101
|
+
return !isRefused;
|
|
102
|
+
}
|
|
103
|
+
return true;
|
|
89
104
|
}
|
|
90
105
|
isFileSizeValid(file) {
|
|
91
106
|
return file.size <= this.maxFileSize;
|
|
@@ -158,7 +173,6 @@ export class SpwFileUpload {
|
|
|
158
173
|
}
|
|
159
174
|
get hintsMessages() {
|
|
160
175
|
const maxSizeInMB = this.maxFileSize / (1024 * 1024);
|
|
161
|
-
const acceptedFormats = this.accept ? this.accept : 'tous les formats';
|
|
162
176
|
const messages = [];
|
|
163
177
|
let message = `Taille maximale par fichier : ${maxSizeInMB} Mo`;
|
|
164
178
|
if (this.multiple && this.maxFiles !== Infinity) {
|
|
@@ -169,16 +183,27 @@ export class SpwFileUpload {
|
|
|
169
183
|
message += '.';
|
|
170
184
|
}
|
|
171
185
|
messages.push(message);
|
|
172
|
-
|
|
186
|
+
if (this.accept && this.refuse) {
|
|
187
|
+
messages.push(`Formats autorisés : ${this.accept}.`);
|
|
188
|
+
}
|
|
189
|
+
else if (this.accept) {
|
|
190
|
+
messages.push(`Formats autorisés : ${this.accept}.`);
|
|
191
|
+
}
|
|
192
|
+
else if (this.refuse) {
|
|
193
|
+
messages.push(`Formats refusés : ${this.refuse}.`);
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
messages.push(`Formats autorisés : tous les formats.`);
|
|
197
|
+
}
|
|
173
198
|
return messages;
|
|
174
199
|
}
|
|
175
200
|
render() {
|
|
176
201
|
const inputTextNoDrop = this.multiple ? 'Choisir vos fichiers...' : 'Choisir votre fichier...';
|
|
177
202
|
const inputTextDrop = this.multiple ? 'Déposez vos fichiers ici' : 'Déposez votre fichier ici';
|
|
178
|
-
return (h("div", { key: '
|
|
203
|
+
return (h("div", { key: '501bc95288cc670462c4545d44db80758195ddda', class: this.elementClass, onDragOver: this.handleDragOver.bind(this), onDragLeave: this.handleDragLeave.bind(this), onDrop: this.handleDrop.bind(this) }, h("input", { key: '6bf6586de3919a1f913ad7b371d83d322f6385a3', type: "file", ref: el => (this.inputElement = el), onChange: this.handleFileChange.bind(this), name: this.name, multiple: this.multiple, accept: this.accept, style: { display: 'none' }, disabled: this.isMaxFilesReached }), this.enableDropZone ? (h("div", { tabindex: this.disabled || this.isMaxFilesReached ? -1 : 0, onKeyDown: this.handleKeydown.bind(this), onClick: () => !this.disabled && !this.isMaxFilesReached && this.inputElement.click(), class: "spw-file-upload__dropzone" }, inputTextDrop, " ou ", h("span", { class: "spw-file-upload__dropzone-link" }, "choisissez sur votre ordinateur..."))) : (h("spw-button", { variant: "secondary", onClick: () => !this.disabled && !this.isMaxFilesReached && this.inputElement.click(), disabled: this.disabled || this.isMaxFilesReached }, inputTextNoDrop)), h("div", { key: '082e5f3f10f27b6435dcf47b5688d03b42d034f5', class: "spw-file-upload__hints" }, this.hintsMessages.length > 0 && (h("ul", { key: '62495fffa5ee797c7787535af7c349e18a3076b5' }, this.hintsMessages.map((message, index) => (h("li", { key: index }, message)))))), h("div", { key: 'd21de5e0f796829746ae8d3dc981e3150219f72e', 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 => {
|
|
179
204
|
e.preventDefault();
|
|
180
205
|
this.removeFile(index);
|
|
181
|
-
} }, "Supprimer"))))))) : (''), this.fileLimitErrors.length > 0 && (h("ul", { key: '
|
|
206
|
+
} }, "Supprimer"))))))) : (''), this.fileLimitErrors.length > 0 && (h("ul", { key: '7b4415ba4316aec17e08d91a6057505877686c2e', 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: '0372034644a7a3158dc32933f8e431e487543d9a', 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))))))));
|
|
182
207
|
}
|
|
183
208
|
static get is() { return "spw-file-upload"; }
|
|
184
209
|
static get encapsulation() { return "shadow"; }
|
|
@@ -325,7 +350,7 @@ export class SpwFileUpload {
|
|
|
325
350
|
"optional": false,
|
|
326
351
|
"docs": {
|
|
327
352
|
"tags": [],
|
|
328
|
-
"text": "Types de fichiers accept\u00E9s, sp\u00E9cifi\u00E9s sous forme de cha\u00EEne de types MIME"
|
|
353
|
+
"text": "Types de fichiers accept\u00E9s, sp\u00E9cifi\u00E9s sous forme de cha\u00EEne de types MIME ou extensions (whitelist)"
|
|
329
354
|
},
|
|
330
355
|
"getter": false,
|
|
331
356
|
"setter": false,
|
|
@@ -333,6 +358,26 @@ export class SpwFileUpload {
|
|
|
333
358
|
"attribute": "accept",
|
|
334
359
|
"defaultValue": "''"
|
|
335
360
|
},
|
|
361
|
+
"refuse": {
|
|
362
|
+
"type": "string",
|
|
363
|
+
"mutable": false,
|
|
364
|
+
"complexType": {
|
|
365
|
+
"original": "string",
|
|
366
|
+
"resolved": "string",
|
|
367
|
+
"references": {}
|
|
368
|
+
},
|
|
369
|
+
"required": false,
|
|
370
|
+
"optional": false,
|
|
371
|
+
"docs": {
|
|
372
|
+
"tags": [],
|
|
373
|
+
"text": "Types de fichiers refus\u00E9s, sp\u00E9cifi\u00E9s sous forme de cha\u00EEne de types MIME ou extensions (blacklist)"
|
|
374
|
+
},
|
|
375
|
+
"getter": false,
|
|
376
|
+
"setter": false,
|
|
377
|
+
"reflect": false,
|
|
378
|
+
"attribute": "refuse",
|
|
379
|
+
"defaultValue": "''"
|
|
380
|
+
},
|
|
336
381
|
"maxFileSize": {
|
|
337
382
|
"type": "number",
|
|
338
383
|
"mutable": false,
|
|
@@ -1,19 +1,51 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class SpwMosaicItem {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.parentColsMobile = 1;
|
|
5
|
+
this.parentColsTablet = 2;
|
|
6
|
+
this.parentColsDesktop = 3;
|
|
7
|
+
}
|
|
3
8
|
componentDidLoad() {
|
|
4
|
-
|
|
9
|
+
var _a;
|
|
10
|
+
(_a = this.el.closest('spw-mosaic')) === null || _a === void 0 ? void 0 : _a.addEventListener('mosaicConfigurationChanged', this.handleConfigurationChange.bind(this));
|
|
11
|
+
this.applyColSpans();
|
|
5
12
|
}
|
|
6
13
|
disconnectedCallback() {
|
|
7
|
-
|
|
14
|
+
var _a;
|
|
15
|
+
(_a = this.el.closest('spw-mosaic')) === null || _a === void 0 ? void 0 : _a.removeEventListener('mosaicConfigurationChanged', this.handleConfigurationChange.bind(this));
|
|
16
|
+
}
|
|
17
|
+
colSpanChanged() {
|
|
18
|
+
this.applyColSpans();
|
|
8
19
|
}
|
|
9
20
|
handleConfigurationChange(event) {
|
|
10
21
|
const { colsMobile, colsTablet, colsDesktop } = event.detail;
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
22
|
+
this.parentColsMobile = colsMobile;
|
|
23
|
+
this.parentColsTablet = colsTablet;
|
|
24
|
+
this.parentColsDesktop = colsDesktop;
|
|
25
|
+
this.applyColSpans();
|
|
26
|
+
}
|
|
27
|
+
applyColSpans() {
|
|
28
|
+
if (this.colSpanMobile) {
|
|
29
|
+
this.el.style.setProperty('--spw-mosaic-item-width-mobile', `calc(100% / ${this.parentColsMobile} * ${this.colSpanMobile})`);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
this.el.style.setProperty('--spw-mosaic-item-width-mobile', `calc(100% / ${this.parentColsMobile})`);
|
|
33
|
+
}
|
|
34
|
+
if (this.colSpanTablet) {
|
|
35
|
+
this.el.style.setProperty('--spw-mosaic-item-width-tablet', `calc(100% / ${this.parentColsTablet} * ${this.colSpanTablet})`);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
this.el.style.setProperty('--spw-mosaic-item-width-tablet', `calc(100% / ${this.parentColsTablet})`);
|
|
39
|
+
}
|
|
40
|
+
if (this.colSpanDesktop) {
|
|
41
|
+
this.el.style.setProperty('--spw-mosaic-item-width-desktop', `calc(100% / ${this.parentColsDesktop} * ${this.colSpanDesktop})`);
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
this.el.style.setProperty('--spw-mosaic-item-width-desktop', `calc(100% / ${this.parentColsDesktop})`);
|
|
45
|
+
}
|
|
14
46
|
}
|
|
15
47
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: 'c63e3ce803e887c548341162f7a890bfd1a315c4' }, h("slot", { key: 'b57cee581ed137ca253db8790b40a8e2ba28a201' })));
|
|
17
49
|
}
|
|
18
50
|
static get is() { return "spw-mosaic-item"; }
|
|
19
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -27,5 +59,78 @@ export class SpwMosaicItem {
|
|
|
27
59
|
"$": ["spw-mosaic-item.css"]
|
|
28
60
|
};
|
|
29
61
|
}
|
|
62
|
+
static get properties() {
|
|
63
|
+
return {
|
|
64
|
+
"colSpanMobile": {
|
|
65
|
+
"type": "number",
|
|
66
|
+
"mutable": false,
|
|
67
|
+
"complexType": {
|
|
68
|
+
"original": "number",
|
|
69
|
+
"resolved": "number",
|
|
70
|
+
"references": {}
|
|
71
|
+
},
|
|
72
|
+
"required": false,
|
|
73
|
+
"optional": true,
|
|
74
|
+
"docs": {
|
|
75
|
+
"tags": [],
|
|
76
|
+
"text": "Nombre de colonnes que l'item doit occuper en vue mobile (override la valeur h\u00E9rit\u00E9e du parent)"
|
|
77
|
+
},
|
|
78
|
+
"getter": false,
|
|
79
|
+
"setter": false,
|
|
80
|
+
"reflect": false,
|
|
81
|
+
"attribute": "col-span-mobile"
|
|
82
|
+
},
|
|
83
|
+
"colSpanTablet": {
|
|
84
|
+
"type": "number",
|
|
85
|
+
"mutable": false,
|
|
86
|
+
"complexType": {
|
|
87
|
+
"original": "number",
|
|
88
|
+
"resolved": "number",
|
|
89
|
+
"references": {}
|
|
90
|
+
},
|
|
91
|
+
"required": false,
|
|
92
|
+
"optional": true,
|
|
93
|
+
"docs": {
|
|
94
|
+
"tags": [],
|
|
95
|
+
"text": "Nombre de colonnes que l'item doit occuper en vue tablette (override la valeur h\u00E9rit\u00E9e du parent)"
|
|
96
|
+
},
|
|
97
|
+
"getter": false,
|
|
98
|
+
"setter": false,
|
|
99
|
+
"reflect": false,
|
|
100
|
+
"attribute": "col-span-tablet"
|
|
101
|
+
},
|
|
102
|
+
"colSpanDesktop": {
|
|
103
|
+
"type": "number",
|
|
104
|
+
"mutable": false,
|
|
105
|
+
"complexType": {
|
|
106
|
+
"original": "number",
|
|
107
|
+
"resolved": "number",
|
|
108
|
+
"references": {}
|
|
109
|
+
},
|
|
110
|
+
"required": false,
|
|
111
|
+
"optional": true,
|
|
112
|
+
"docs": {
|
|
113
|
+
"tags": [],
|
|
114
|
+
"text": "Nombre de colonnes que l'item doit occuper en vue desktop (override la valeur h\u00E9rit\u00E9e du parent)"
|
|
115
|
+
},
|
|
116
|
+
"getter": false,
|
|
117
|
+
"setter": false,
|
|
118
|
+
"reflect": false,
|
|
119
|
+
"attribute": "col-span-desktop"
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
}
|
|
30
123
|
static get elementRef() { return "el"; }
|
|
124
|
+
static get watchers() {
|
|
125
|
+
return [{
|
|
126
|
+
"propName": "colSpanMobile",
|
|
127
|
+
"methodName": "colSpanChanged"
|
|
128
|
+
}, {
|
|
129
|
+
"propName": "colSpanTablet",
|
|
130
|
+
"methodName": "colSpanChanged"
|
|
131
|
+
}, {
|
|
132
|
+
"propName": "colSpanDesktop",
|
|
133
|
+
"methodName": "colSpanChanged"
|
|
134
|
+
}];
|
|
135
|
+
}
|
|
31
136
|
}
|
|
@@ -85,10 +85,13 @@ export class SpwMosaic {
|
|
|
85
85
|
const slot = this.el.shadowRoot.querySelector('slot');
|
|
86
86
|
const masonryItems = slot.assignedElements({ flatten: true });
|
|
87
87
|
if (masonryItems.length > 0) {
|
|
88
|
+
// Trouver un item sans colSpan pour calculer la largeur de base d'une colonne
|
|
89
|
+
const baseItem = Array.from(masonryItems).find(item => !item.hasAttribute('col-span-desktop') && !item.hasAttribute('col-span-tablet') && !item.hasAttribute('col-span-mobile')) || masonryItems[0];
|
|
88
90
|
this.masonry = new Masonry(this.el, {
|
|
89
91
|
itemSelector: 'spw-mosaic-item',
|
|
90
|
-
columnWidth:
|
|
92
|
+
columnWidth: baseItem,
|
|
91
93
|
percentPosition: true,
|
|
94
|
+
gutter: 0,
|
|
92
95
|
});
|
|
93
96
|
this.initialized = true;
|
|
94
97
|
masonryItems.forEach(item => {
|
|
@@ -131,7 +134,7 @@ export class SpwMosaic {
|
|
|
131
134
|
};
|
|
132
135
|
}
|
|
133
136
|
render() {
|
|
134
|
-
return (h(Host, { key: '
|
|
137
|
+
return (h(Host, { key: 'f61eb75efa6cc8fe663e50f45568c5cb7dd8f2f3' }, h("div", { key: '1094aebb0e127ce6fa37c9884216cf0fa20ad781', class: this.elementClass }, h("slot", { key: '0788e769762d7d137fe4df586b6add1da6e723f8' }))));
|
|
135
138
|
}
|
|
136
139
|
static get is() { return "spw-mosaic"; }
|
|
137
140
|
static get encapsulation() { return "shadow"; }
|
|
@@ -280,6 +283,10 @@ export class SpwMosaic {
|
|
|
280
283
|
"Promise": {
|
|
281
284
|
"location": "global",
|
|
282
285
|
"id": "global::Promise"
|
|
286
|
+
},
|
|
287
|
+
"HTMLElement": {
|
|
288
|
+
"location": "global",
|
|
289
|
+
"id": "global::HTMLElement"
|
|
283
290
|
}
|
|
284
291
|
},
|
|
285
292
|
"return": "Promise<void>"
|
|
@@ -32,6 +32,7 @@ export class SpwSelect {
|
|
|
32
32
|
this.syncDynamicOptions();
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
+
/** Réinitialise le champ de sélection */
|
|
35
36
|
async resetSelect() {
|
|
36
37
|
this.internalValue = '';
|
|
37
38
|
this.value = '';
|
|
@@ -41,6 +42,20 @@ export class SpwSelect {
|
|
|
41
42
|
this.internals.setFormValue('');
|
|
42
43
|
this.valueChanged.emit('');
|
|
43
44
|
}
|
|
45
|
+
/** Définit la valeur du champ de sélection */
|
|
46
|
+
async setValue(val) {
|
|
47
|
+
this.internalValue = val;
|
|
48
|
+
this.value = val;
|
|
49
|
+
if (this.selectElement) {
|
|
50
|
+
this.selectElement.value = String(val);
|
|
51
|
+
}
|
|
52
|
+
this.internals.setFormValue(this.getFormValue());
|
|
53
|
+
this.valueChanged.emit(this.internalValue);
|
|
54
|
+
}
|
|
55
|
+
/** Récupère la valeur actuelle du champ de sélection */
|
|
56
|
+
async getValue() {
|
|
57
|
+
return this.internalValue;
|
|
58
|
+
}
|
|
44
59
|
componentWillLoad() {
|
|
45
60
|
var _a;
|
|
46
61
|
this.defaultValue = (_a = this.value) !== null && _a !== void 0 ? _a : this.getInitialSelectedValue();
|
|
@@ -60,15 +75,6 @@ export class SpwSelect {
|
|
|
60
75
|
this.setValue((_a = this.defaultValue) !== null && _a !== void 0 ? _a : '');
|
|
61
76
|
this.resetSelect();
|
|
62
77
|
}
|
|
63
|
-
setValue(val) {
|
|
64
|
-
this.internalValue = val;
|
|
65
|
-
this.value = val;
|
|
66
|
-
if (this.selectElement) {
|
|
67
|
-
this.selectElement.value = String(val);
|
|
68
|
-
}
|
|
69
|
-
this.internals.setFormValue(this.getFormValue());
|
|
70
|
-
this.valueChanged.emit(this.internalValue);
|
|
71
|
-
}
|
|
72
78
|
getFormValue() {
|
|
73
79
|
return this.internalValue ? String(this.internalValue) : null;
|
|
74
80
|
}
|
|
@@ -151,7 +157,7 @@ export class SpwSelect {
|
|
|
151
157
|
};
|
|
152
158
|
}
|
|
153
159
|
render() {
|
|
154
|
-
return (h(Host, { key: '
|
|
160
|
+
return (h(Host, { key: 'c623e21b2b6e04d3a1f8b85dfc702cf3a2fb4c1e' }, h("div", { key: 'cc80bd65c5a6bd0612dc79c7a47fa8b15860211e', class: this.elementClass }, this.label && h("spw-field-label", { key: '98724278781185bc0060948baa65d79d9a263455', label: this.label, name: this.name, required: this.required }), this.assistiveText && (h("spw-field-message", { key: '9361a3d523b9ad611cb25ec10d3cab9664ce16f3', class: "spw-select__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: 'b62735322558094dde5e4ee8efa8f6a2cd8f075e', class: "spw-select__container" }, h("select", { key: 'df5714c4a8ad2e469605f9ed000a8df325846304', id: this.name, name: this.name, "aria-label": this.accAriaLabel || this.label || this.name, class: "spw-select__trigger", onChange: event => this.handleSelectChange(event), disabled: this.disabled, ref: el => (this.selectElement = el), tabindex: this.disabled ? -1 : 0 }, h("option", { key: 'd74dbffc296ed6c9c5861fe7de2a7e4d4704461e', value: "", disabled: true, selected: !this.internalValue }, this.placeholder)), h("spw-icon", { key: '95147be8fa99af30865d61b65b2e5814482281b7', class: "spw-select__arrow", icon: "fa-chevron-down" })), !this.items && h("slot", { key: '68c022ef52e5df4b2fa5c5b9d443ac2005b25e4c' })), this.renderErrorMessage(), this.renderHintMessage(), this.renderSuccessMessage(), this.renderWarningMessage()));
|
|
155
161
|
}
|
|
156
162
|
static get is() { return "spw-select"; }
|
|
157
163
|
static get encapsulation() { return "shadow"; }
|
|
@@ -604,7 +610,45 @@ export class SpwSelect {
|
|
|
604
610
|
"return": "Promise<void>"
|
|
605
611
|
},
|
|
606
612
|
"docs": {
|
|
607
|
-
"text": "",
|
|
613
|
+
"text": "R\u00E9initialise le champ de s\u00E9lection",
|
|
614
|
+
"tags": []
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
"setValue": {
|
|
618
|
+
"complexType": {
|
|
619
|
+
"signature": "(val: string | number) => Promise<void>",
|
|
620
|
+
"parameters": [{
|
|
621
|
+
"name": "val",
|
|
622
|
+
"type": "string | number",
|
|
623
|
+
"docs": ""
|
|
624
|
+
}],
|
|
625
|
+
"references": {
|
|
626
|
+
"Promise": {
|
|
627
|
+
"location": "global",
|
|
628
|
+
"id": "global::Promise"
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
"return": "Promise<void>"
|
|
632
|
+
},
|
|
633
|
+
"docs": {
|
|
634
|
+
"text": "D\u00E9finit la valeur du champ de s\u00E9lection",
|
|
635
|
+
"tags": []
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
"getValue": {
|
|
639
|
+
"complexType": {
|
|
640
|
+
"signature": "() => Promise<string | number>",
|
|
641
|
+
"parameters": [],
|
|
642
|
+
"references": {
|
|
643
|
+
"Promise": {
|
|
644
|
+
"location": "global",
|
|
645
|
+
"id": "global::Promise"
|
|
646
|
+
}
|
|
647
|
+
},
|
|
648
|
+
"return": "Promise<string | number>"
|
|
649
|
+
},
|
|
650
|
+
"docs": {
|
|
651
|
+
"text": "R\u00E9cup\u00E8re la valeur actuelle du champ de s\u00E9lection",
|
|
608
652
|
"tags": []
|
|
609
653
|
}
|
|
610
654
|
}
|
|
@@ -20,11 +20,11 @@ export class SpwThemeProvider {
|
|
|
20
20
|
document.head.appendChild(styleElement);
|
|
21
21
|
}
|
|
22
22
|
const css = themes[theme];
|
|
23
|
-
styleElement.innerHTML = css;
|
|
23
|
+
styleElement.innerHTML = typeof css === 'function' ? css() : css;
|
|
24
24
|
document.documentElement.setAttribute('data-theme', theme);
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (h("main", { key: '
|
|
27
|
+
return (h("main", { key: 'b7afe2152b67a083c80e11c6f997783843d82b6f', class: `spw-theme-${this.theme}` }, h("slot", { key: 'cd0f17e823c5b506e5b46635eac8536c321812bd' })));
|
|
28
28
|
}
|
|
29
29
|
static get is() { return "spw-theme-provider"; }
|
|
30
30
|
static get properties() {
|
|
@@ -398,6 +398,7 @@ template {
|
|
|
398
398
|
padding: 16px 0;
|
|
399
399
|
}
|
|
400
400
|
.spw-tile--big, .spw-tile--light {
|
|
401
|
+
position: relative;
|
|
401
402
|
padding-top: calc(70% - 12px);
|
|
402
403
|
border-radius: 6px;
|
|
403
404
|
overflow: hidden;
|
|
@@ -416,6 +417,22 @@ template {
|
|
|
416
417
|
padding-top: 150%;
|
|
417
418
|
}
|
|
418
419
|
}
|
|
420
|
+
.spw-tile--big:before, .spw-tile--light:before {
|
|
421
|
+
content: "";
|
|
422
|
+
background: black;
|
|
423
|
+
opacity: 0;
|
|
424
|
+
transition: all linear 0.2s;
|
|
425
|
+
border-radius: 5px;
|
|
426
|
+
position: absolute;
|
|
427
|
+
top: 0;
|
|
428
|
+
left: 0;
|
|
429
|
+
width: 100%;
|
|
430
|
+
height: 100%;
|
|
431
|
+
z-index: 2;
|
|
432
|
+
}
|
|
433
|
+
.spw-tile--big:hover:before, .spw-tile--light:hover:before {
|
|
434
|
+
opacity: 0.3;
|
|
435
|
+
}
|
|
419
436
|
.spw-tile__overlay, .spw-tile__image {
|
|
420
437
|
position: absolute;
|
|
421
438
|
width: 100%;
|
|
@@ -36,6 +36,7 @@ Le composant Carte est un conteneur cliquable qui affiche un aperçu visuel de c
|
|
|
36
36
|
- **Mini** : Version compacte pour sidebars
|
|
37
37
|
- **People** : Carte profil avec avatar rond
|
|
38
38
|
- **Sidebar** : Version pour barre latérale
|
|
39
|
+
- **Highlighted** : Carte mise en avant avec style visuel distinctif
|
|
39
40
|
|
|
40
41
|
## Structure
|
|
41
42
|
|
|
@@ -312,6 +313,20 @@ PeopleWithAffiliates.args = {
|
|
|
312
313
|
imgAlt: 'Image',
|
|
313
314
|
imgSrc: 'https://images.unsplash.com/photo-1518020382113-a7e8fc38eac9?q=80&w=717&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D',
|
|
314
315
|
};
|
|
316
|
+
export const Highlighted = Template.bind({});
|
|
317
|
+
Highlighted.args = {
|
|
318
|
+
variant: 'highlighted',
|
|
319
|
+
fullHeight: true,
|
|
320
|
+
href: 'http://google.com',
|
|
321
|
+
label: 'Label',
|
|
322
|
+
target: '_blank',
|
|
323
|
+
imgAlt: 'Image',
|
|
324
|
+
imgSrc: 'https://images.unsplash.com/photo-1465056836041-7f43ac27dcb5',
|
|
325
|
+
contentTag: 'Actualités',
|
|
326
|
+
contentDate: '2024-02-09',
|
|
327
|
+
title: 'Comment soutenir nos agricultrices et agriculteurs ?',
|
|
328
|
+
excerpt: "L'actualité nous invite à nous engager, à devenir chaque jour un peu plus \"consom'acteur\". Comment ? L'Agence wallonne pour la Promotion d'une Agriculture de Qualité (APAQ-W) nous propose quelques pistes pour privilégier le local.",
|
|
329
|
+
};
|
|
315
330
|
Default.parameters = {
|
|
316
331
|
docs: {
|
|
317
332
|
description: {
|
|
@@ -375,3 +390,10 @@ PeopleWithAffiliates.parameters = {
|
|
|
375
390
|
},
|
|
376
391
|
},
|
|
377
392
|
};
|
|
393
|
+
Highlighted.parameters = {
|
|
394
|
+
docs: {
|
|
395
|
+
description: {
|
|
396
|
+
story: `Carte mise en avant avec style visuel distinctif. Utilise un fond coloré et une typographie adaptée pour attirer l'attention sur un contenu prioritaire. Idéale pour mettre en évidence un article principal, une actualité importante ou un événement majeur dans une liste ou grille de cartes.`,
|
|
397
|
+
},
|
|
398
|
+
},
|
|
399
|
+
};
|
|
@@ -82,43 +82,43 @@ function htmlContentBasicGrid() {
|
|
|
82
82
|
function htmlContentWithSpans() {
|
|
83
83
|
return /* HTML */ `
|
|
84
84
|
<spw-grid-item col-span-desktop="2" row-span-desktop="2" col-span-tablet="2" row-span-tablet="2">
|
|
85
|
-
<spw-tile height="landscape" image-src="https://images.unsplash.com/photo-1506905925346-21bda4d32df4" image-alt="
|
|
86
|
-
<spw-tile-title>
|
|
85
|
+
<spw-tile height="landscape" image-src="https://images.unsplash.com/photo-1506905925346-21bda4d32df4" image-alt="Titre principal" variant="big" href="#">
|
|
86
|
+
<spw-tile-title>Titre principal - Grande tuile 2x2</spw-tile-title>
|
|
87
87
|
<spw-tile-description>Cette tuile occupe 2 colonnes et 2 lignes sur desktop et tablette pour mettre en avant un contenu important</spw-tile-description>
|
|
88
88
|
</spw-tile>
|
|
89
89
|
</spw-grid-item>
|
|
90
90
|
|
|
91
91
|
<spw-grid-item>
|
|
92
92
|
<spw-tile height="landscape" image-src="https://images.unsplash.com/photo-1465056836041-7f43ac27dcb5" image-alt="Actualité 2" variant="light" href="#">
|
|
93
|
-
<spw-tile-title>
|
|
93
|
+
<spw-tile-title>Titre secondaire</spw-tile-title>
|
|
94
94
|
<spw-tile-description>Tuile de taille normale</spw-tile-description>
|
|
95
95
|
</spw-tile>
|
|
96
96
|
</spw-grid-item>
|
|
97
97
|
|
|
98
98
|
<spw-grid-item>
|
|
99
99
|
<spw-tile height="landscape" image-src="https://images.unsplash.com/photo-1486406146926-c627a92ad1ab" image-alt="Actualité 3" variant="light" href="#">
|
|
100
|
-
<spw-tile-title>
|
|
100
|
+
<spw-tile-title>Titre secondaire</spw-tile-title>
|
|
101
101
|
<spw-tile-description>Tuile de taille normale</spw-tile-description>
|
|
102
102
|
</spw-tile>
|
|
103
103
|
</spw-grid-item>
|
|
104
104
|
|
|
105
105
|
<spw-grid-item>
|
|
106
106
|
<spw-tile height="landscape" image-src="https://images.unsplash.com/photo-1542744173-8e7e53415bb0" image-alt="Actualité 4" variant="light" href="#">
|
|
107
|
-
<spw-tile-title>
|
|
107
|
+
<spw-tile-title>Titre secondaire</spw-tile-title>
|
|
108
108
|
<spw-tile-description>Tuile de taille normale</spw-tile-description>
|
|
109
109
|
</spw-tile>
|
|
110
110
|
</spw-grid-item>
|
|
111
111
|
|
|
112
112
|
<spw-grid-item>
|
|
113
113
|
<spw-tile height="landscape" image-src="https://images.unsplash.com/photo-1497366216548-37526070297c" image-alt="Actualité 5" variant="light" href="#">
|
|
114
|
-
<spw-tile-title>
|
|
114
|
+
<spw-tile-title>Titre secondaire</spw-tile-title>
|
|
115
115
|
<spw-tile-description>Tuile de taille normale</spw-tile-description>
|
|
116
116
|
</spw-tile>
|
|
117
117
|
</spw-grid-item>
|
|
118
118
|
|
|
119
119
|
<spw-grid-item>
|
|
120
120
|
<spw-tile height="landscape" image-src="https://images.unsplash.com/photo-1454165804606-c3d57bc86b40" image-alt="Actualité 6" variant="light" href="#">
|
|
121
|
-
<spw-tile-title>
|
|
121
|
+
<spw-tile-title>Titre secondaire</spw-tile-title>
|
|
122
122
|
<spw-tile-description>Tuile de taille normale</spw-tile-description>
|
|
123
123
|
</spw-tile>
|
|
124
124
|
</spw-grid-item>
|
|
@@ -238,8 +238,8 @@ function htmlContentMixedSpans() {
|
|
|
238
238
|
function htmlContentCardsWithSpan() {
|
|
239
239
|
return /* HTML */ `
|
|
240
240
|
<spw-grid-item col-span-desktop="2" col-span-tablet="2">
|
|
241
|
-
<spw-card
|
|
242
|
-
<spw-card-image ratio="16/
|
|
241
|
+
<spw-card variant="highlighted" href="#">
|
|
242
|
+
<spw-card-image ratio="16/11">
|
|
243
243
|
<img
|
|
244
244
|
alt="Image"
|
|
245
245
|
src="https://images.unsplash.com/photo-1465056836041-7f43ac27dcb5?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTV8fGxhbmRzY2FwZXxlbnwwfHwwfHx8MA%3D%3D"
|
|
@@ -264,7 +264,7 @@ function htmlContentCardsWithSpan() {
|
|
|
264
264
|
/>
|
|
265
265
|
</spw-card-image>
|
|
266
266
|
<spw-card-content tag="Actualités" date="2024-02-09">
|
|
267
|
-
<spw-card-title>
|
|
267
|
+
<spw-card-title>Titre secondaire</spw-card-title>
|
|
268
268
|
<spw-card-excerpt>
|
|
269
269
|
L'actualité nous invite à nous engager, à devenir chaque jour un peu plus "consom'acteur". Comment ? L'Agence wallonne pour la Promotion d'une Agriculture de Qualité
|
|
270
270
|
(APAQ-W) nous propose quelques pistes pour privilégier le local.
|
|
@@ -282,7 +282,7 @@ function htmlContentCardsWithSpan() {
|
|
|
282
282
|
/>
|
|
283
283
|
</spw-card-image>
|
|
284
284
|
<spw-card-content tag="Actualités" date="2024-02-09">
|
|
285
|
-
<spw-card-title>
|
|
285
|
+
<spw-card-title>Titre secondaire</spw-card-title>
|
|
286
286
|
<spw-card-excerpt>
|
|
287
287
|
L'actualité nous invite à nous engager, à devenir chaque jour un peu plus "consom'acteur". Comment ? L'Agence wallonne pour la Promotion d'une Agriculture de Qualité
|
|
288
288
|
(APAQ-W) nous propose quelques pistes pour privilégier le local.
|
|
@@ -300,7 +300,7 @@ function htmlContentCardsWithSpan() {
|
|
|
300
300
|
/>
|
|
301
301
|
</spw-card-image>
|
|
302
302
|
<spw-card-content tag="Actualités" date="2024-02-09">
|
|
303
|
-
<spw-card-title>
|
|
303
|
+
<spw-card-title>Titre secondaire</spw-card-title>
|
|
304
304
|
<spw-card-excerpt>
|
|
305
305
|
L'actualité nous invite à nous engager, à devenir chaque jour un peu plus "consom'acteur". Comment ? L'Agence wallonne pour la Promotion d'une Agriculture de Qualité
|
|
306
306
|
(APAQ-W) nous propose quelques pistes pour privilégier le local.
|
|
@@ -318,7 +318,7 @@ function htmlContentCardsWithSpan() {
|
|
|
318
318
|
/>
|
|
319
319
|
</spw-card-image>
|
|
320
320
|
<spw-card-content tag="Actualités" date="2024-02-09">
|
|
321
|
-
<spw-card-title>
|
|
321
|
+
<spw-card-title>Titre secondaire</spw-card-title>
|
|
322
322
|
<spw-card-excerpt>
|
|
323
323
|
L'actualité nous invite à nous engager, à devenir chaque jour un peu plus "consom'acteur". Comment ? L'Agence wallonne pour la Promotion d'une Agriculture de Qualité
|
|
324
324
|
(APAQ-W) nous propose quelques pistes pour privilégier le local.
|
|
@@ -472,7 +472,7 @@ GrilleCartes.storyName = 'Grille avec cartes (3 colonnes)';
|
|
|
472
472
|
GrilleCartes.parameters = {
|
|
473
473
|
docs: {
|
|
474
474
|
description: {
|
|
475
|
-
story:
|
|
475
|
+
story: "Grille de 3 colonnes avec des cartes. La première carte occupe 2 colonnes sur desktop et tablette pour mettre en avant une actualité principale. Idéal pour les pages d'actualités ou de contenu éditorial.",
|
|
476
476
|
},
|
|
477
477
|
},
|
|
478
478
|
};
|