@spw-ds/spw-stencil-library 1.10.2 → 1.11.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 +1124 -157
- package/dist/cjs/{animation-DMuoVGnA.js → animation-tH5DQHbp.js} +7 -2
- package/dist/cjs/index-B9VTdKwF.js +3187 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/spw-accordion_4.cjs.entry.js +5 -5
- package/dist/cjs/spw-avatar.cjs.entry.js +2 -2
- package/dist/cjs/spw-block-content.cjs.entry.js +2 -2
- package/dist/cjs/spw-box.cjs.entry.js +62 -0
- package/dist/cjs/spw-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/spw-button_2.cjs.entry.js +4 -4
- 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 +2 -2
- package/dist/cjs/spw-card-subtag-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-subtags.cjs.entry.js +2 -2
- package/dist/cjs/spw-card-title.cjs.entry.js +2 -2
- 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 +65 -6
- package/dist/cjs/spw-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/spw-dropdown-container.cjs.entry.js +2 -2
- package/dist/cjs/spw-dropdown-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/spw-field-label_7.cjs.entry.js +8 -8
- package/dist/cjs/spw-field-message.cjs.entry.js +2 -2
- package/dist/cjs/spw-file-upload.cjs.entry.js +3 -3
- package/dist/cjs/spw-footer-bottom.cjs.entry.js +2 -2
- package/dist/cjs/spw-footer-content-col.cjs.entry.js +2 -2
- package/dist/cjs/spw-footer-content.cjs.entry.js +2 -2
- package/dist/cjs/spw-footer-link.cjs.entry.js +2 -2
- package/dist/cjs/spw-footer.cjs.entry.js +2 -2
- package/dist/cjs/spw-grid-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-grid.cjs.entry.js +6 -4
- package/dist/cjs/spw-header-lang.cjs.entry.js +2 -2
- package/dist/cjs/spw-header-navigation-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/spw-header-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-header-navigation.cjs.entry.js +2 -2
- package/dist/cjs/spw-header-persona-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-header-persona.cjs.entry.js +2 -2
- package/dist/cjs/spw-header.cjs.entry.js +13 -2
- package/dist/cjs/spw-hero.cjs.entry.js +21 -5
- package/dist/cjs/spw-illustration.cjs.entry.js +1 -1
- package/dist/cjs/spw-input-slider.cjs.entry.js +2 -2
- package/dist/cjs/spw-lightbox-item.cjs.entry.js +53 -0
- package/dist/cjs/spw-lightbox.cjs.entry.js +235 -0
- package/dist/cjs/spw-list-description.cjs.entry.js +2 -2
- package/dist/cjs/spw-list-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-list-title.cjs.entry.js +2 -2
- package/dist/cjs/spw-list.cjs.entry.js +2 -2
- package/dist/cjs/spw-message.cjs.entry.js +1 -1
- package/dist/cjs/spw-modal.cjs.entry.js +5 -5
- package/dist/cjs/spw-mosaic-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-mosaic.cjs.entry.js +2 -2
- 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 +12 -6
- package/dist/cjs/spw-select.cjs.entry.js +2 -2
- 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 +16 -7
- 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 +3 -3
- package/dist/cjs/spw-tabs-content.cjs.entry.js +1 -1
- package/dist/cjs/spw-tabs-navigation-item.cjs.entry.js +2 -2
- 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 +69 -10
- 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-toast-controller.cjs.entry.js +2 -2
- package/dist/cjs/spw-toast.cjs.entry.js +2 -2
- package/dist/cjs/spw-toc-container.cjs.entry.js +2 -2
- 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/collection-manifest.json +3 -0
- package/dist/collection/components/spw-accordion/spw-accordion-content/spw-accordion-content.js +1 -1
- package/dist/collection/components/spw-accordion/spw-accordion-item/spw-accordion-item.js +1 -1
- package/dist/collection/components/spw-accordion/spw-accordion-title/spw-accordion-title.js +1 -1
- package/dist/collection/components/spw-accordion/spw-accordion.js +1 -1
- package/dist/collection/components/spw-avatar/spw-avatar.js +1 -1
- package/dist/collection/components/spw-block-content/spw-block-content.js +1 -1
- package/dist/collection/components/spw-box/spw-box.css +507 -0
- package/dist/collection/components/spw-box/spw-box.js +213 -0
- package/dist/collection/components/spw-breadcrumb/spw-breadcrumb-item/spw-breadcrumb-item.js +1 -1
- package/dist/collection/components/spw-breadcrumb/spw-breadcrumb.js +1 -1
- package/dist/collection/components/spw-button/spw-button.css +2 -2
- package/dist/collection/components/spw-button/spw-button.js +2 -2
- package/dist/collection/components/spw-card/spw-card-content/spw-card-content.js +1 -1
- package/dist/collection/components/spw-card/spw-card-excerpt/spw-card-excerpt.js +1 -1
- package/dist/collection/components/spw-card/spw-card-image/spw-card-image.js +1 -1
- package/dist/collection/components/spw-card/spw-card-subtag-item/spw-card-subtag-item.js +1 -1
- package/dist/collection/components/spw-card/spw-card-subtags/spw-card-subtags.js +1 -1
- package/dist/collection/components/spw-card/spw-card-title/spw-card-title.js +1 -1
- package/dist/collection/components/spw-card/spw-card.js +1 -1
- package/dist/collection/components/spw-checkbox/spw-checkbox.js +1 -1
- package/dist/collection/components/spw-custom-select/spw-custom-select.css +61 -3
- package/dist/collection/components/spw-custom-select/spw-custom-select.js +124 -5
- package/dist/collection/components/spw-date-picker/spw-date-picker.js +2 -2
- package/dist/collection/components/spw-dropdown/spw-dropdown-container/spw-dropdown-container.js +1 -1
- package/dist/collection/components/spw-dropdown/spw-dropdown-item/spw-dropdown-item.js +1 -1
- package/dist/collection/components/spw-dropdown/spw-dropdown.js +1 -1
- package/dist/collection/components/spw-field-label/spw-field-label.js +1 -1
- package/dist/collection/components/spw-field-message/spw-field-message.js +1 -1
- package/dist/collection/components/spw-file-upload/spw-file-upload.js +2 -2
- package/dist/collection/components/spw-footer/spw-footer-bottom/spw-footer-bottom.js +1 -1
- package/dist/collection/components/spw-footer/spw-footer-content/spw-footer-content.js +1 -1
- package/dist/collection/components/spw-footer/spw-footer-content-col/spw-footer-content-col.js +1 -1
- package/dist/collection/components/spw-footer/spw-footer-link/spw-footer-link.js +1 -1
- package/dist/collection/components/spw-footer/spw-footer.js +1 -1
- package/dist/collection/components/spw-grid/spw-grid-item/spw-grid-item.js +2 -2
- package/dist/collection/components/spw-grid/spw-grid.css +18 -1
- package/dist/collection/components/spw-grid/spw-grid.js +24 -2
- package/dist/collection/components/spw-group/spw-group.js +1 -1
- package/dist/collection/components/spw-header/spw-header-lang/spw-header-lang.js +1 -1
- package/dist/collection/components/spw-header/spw-header-navigation/spw-header-navigation.js +1 -1
- package/dist/collection/components/spw-header/spw-header-navigation-dropdown/spw-header-navigation-dropdown.js +1 -1
- package/dist/collection/components/spw-header/spw-header-navigation-item/spw-header-navigation-item.js +1 -1
- package/dist/collection/components/spw-header/spw-header-persona/spw-header-persona.js +1 -1
- package/dist/collection/components/spw-header/spw-header-persona-item/spw-header-persona-item.js +1 -1
- package/dist/collection/components/spw-header/spw-header.js +12 -1
- package/dist/collection/components/spw-hero/spw-hero.css +37 -0
- package/dist/collection/components/spw-hero/spw-hero.js +97 -5
- package/dist/collection/components/spw-icon/spw-icon.js +1 -1
- package/dist/collection/components/spw-input-slider/spw-input-slider.js +1 -1
- package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.css +436 -0
- package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.js +292 -0
- package/dist/collection/components/spw-lightbox/spw-lightbox.css +614 -0
- package/dist/collection/components/spw-lightbox/spw-lightbox.js +511 -0
- package/dist/collection/components/spw-link/spw-link.js +1 -1
- package/dist/collection/components/spw-list/spw-list-description/spw-list-description.js +1 -1
- package/dist/collection/components/spw-list/spw-list-item/spw-list-item.js +1 -1
- package/dist/collection/components/spw-list/spw-list-title/spw-list-title.js +1 -1
- package/dist/collection/components/spw-list/spw-list.js +1 -1
- package/dist/collection/components/spw-loading/spw-loading.js +1 -1
- package/dist/collection/components/spw-modal/spw-modal.js +3 -3
- package/dist/collection/components/spw-mosaic/spw-mosaic-item/spw-mosaic-item.js +1 -1
- package/dist/collection/components/spw-mosaic/spw-mosaic.js +1 -1
- package/dist/collection/components/spw-pagination/spw-pagination.js +6 -6
- package/dist/collection/components/spw-radio/spw-radio.js +1 -1
- package/dist/collection/components/spw-scrolltop/spw-scrolltop.js +1 -1
- package/dist/collection/components/spw-search-field/spw-search-field.css +6 -3
- package/dist/collection/components/spw-search-field/spw-search-field.js +51 -5
- package/dist/collection/components/spw-select/spw-select.js +2 -2
- 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 +60 -6
- package/dist/collection/components/spw-socials/spw-socials.js +1 -1
- package/dist/collection/components/spw-table/spw-table-body/spw-table-body.js +1 -1
- package/dist/collection/components/spw-table/spw-table-cell/spw-table-cell.js +1 -1
- package/dist/collection/components/spw-table/spw-table-container/spw-table-container.js +1 -1
- package/dist/collection/components/spw-table/spw-table-footer/spw-table-footer.js +1 -1
- package/dist/collection/components/spw-table/spw-table-head/spw-table-head.js +1 -1
- package/dist/collection/components/spw-table/spw-table-header/spw-table-header.js +2 -2
- package/dist/collection/components/spw-table/spw-table-row/spw-table-row.js +1 -1
- package/dist/collection/components/spw-table/spw-table-sidebar/spw-table-sidebar.js +1 -1
- package/dist/collection/components/spw-table/spw-table.js +2 -2
- package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.js +1 -1
- package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.js +1 -1
- package/dist/collection/components/spw-tabs/spw-tabs.js +1 -1
- package/dist/collection/components/spw-tag/spw-tag.js +1 -1
- package/dist/collection/components/spw-text-field/spw-text-field.js +88 -10
- package/dist/collection/components/spw-textarea/spw-textarea.js +2 -2
- 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-toast/spw-toast-controller/spw-toast-controller.js +1 -1
- package/dist/collection/components/spw-toc/spw-toc-container/spw-toc-container.js +1 -1
- package/dist/collection/components/spw-toc/spw-toc.js +1 -1
- package/dist/collection/components/spw-tooltip/spw-tooltip.js +1 -1
- package/dist/collection/components/spw-topbar/spw-topbar.js +1 -1
- package/dist/collection/components/spw-wizard/spw-wizard-item/spw-wizard-item.js +1 -1
- package/dist/collection/components/spw-wizard/spw-wizard.js +1 -1
- package/dist/collection/stories/components/spw-box/spw-box.stories.js +312 -0
- package/dist/collection/stories/components/spw-custom-select/spw-custom-select.stories.js +23 -2
- package/dist/collection/stories/organisms/spw-hero/spw-hero.stories.js +61 -0
- package/dist/collection/stories/organisms/spw-toc/spw-toc.stories.js +40 -34
- package/dist/collection/utils/animation.js +7 -2
- package/dist/components/index.js +1 -1
- package/dist/components/{p-CMLl0RMI.js → p-BNVh4npd.js} +1 -1
- package/dist/components/{p-LSa_rZXb.js → p-BNsbxGcj.js} +1 -1
- package/dist/components/p-BRFNx2DL.js +1 -0
- package/dist/components/{p-BhdoYDTm.js → p-BRlLi9Ar.js} +1 -1
- package/dist/components/{p-D6LWZKvR.js → p-BqEbo61A.js} +1 -1
- package/dist/components/{p-BjLZzV7o.js → p-C8Vf9QlU.js} +1 -1
- package/dist/components/{p-CDlTW4jP.js → p-CLCgZYzK.js} +1 -1
- package/dist/components/{p-BxRsJDtg.js → p-CNmnvMAU.js} +1 -1
- package/dist/components/{p-DbSA5Qg5.js → p-CyuzNTuL.js} +1 -1
- package/dist/components/{p-DJvzArBD.js → p-D0jLTe4Y.js} +1 -1
- package/dist/components/{p-DwCnnHgn.js → p-D2bR89OY.js} +1 -1
- package/dist/components/p-D3lAXshq.js +1 -0
- package/dist/components/{p-JuqrTYPp.js → p-DdZeGXq7.js} +1 -1
- package/dist/components/{p-BlIs4luv.js → p-HzgF73Oa.js} +1 -1
- package/dist/components/p-lA7JXY3H.js +1 -0
- package/dist/components/{p-DiO72wMf.js → p-oVOlDrOp.js} +1 -1
- package/dist/components/{p-D8N138f1.js → p-w411zfAm.js} +1 -1
- package/dist/components/spw-accordion-content.js +1 -1
- package/dist/components/spw-accordion-item.js +1 -1
- package/dist/components/spw-accordion-title.js +1 -1
- package/dist/components/spw-accordion.js +1 -1
- package/dist/components/spw-avatar.js +1 -1
- package/dist/components/spw-block-content.js +1 -1
- package/dist/components/spw-box.d.ts +11 -0
- package/dist/components/spw-box.js +1 -0
- package/dist/components/spw-breadcrumb-item.js +1 -1
- package/dist/components/spw-breadcrumb.js +1 -1
- package/dist/components/spw-button.js +1 -1
- package/dist/components/spw-card-content.js +1 -1
- package/dist/components/spw-card-excerpt.js +1 -1
- package/dist/components/spw-card-image.js +1 -1
- package/dist/components/spw-card-subtag-item.js +1 -1
- package/dist/components/spw-card-subtags.js +1 -1
- package/dist/components/spw-card-title.js +1 -1
- package/dist/components/spw-card.js +1 -1
- package/dist/components/spw-checkbox.js +1 -1
- package/dist/components/spw-cookies.js +1 -1
- package/dist/components/spw-custom-select.js +1 -1
- package/dist/components/spw-date-picker.js +1 -1
- package/dist/components/spw-dropdown-container.js +1 -1
- package/dist/components/spw-dropdown-item.js +1 -1
- package/dist/components/spw-dropdown.js +1 -1
- package/dist/components/spw-field-label.js +1 -1
- package/dist/components/spw-field-message.js +1 -1
- package/dist/components/spw-file-upload.js +1 -1
- package/dist/components/spw-footer-bottom.js +1 -1
- package/dist/components/spw-footer-content-col.js +1 -1
- package/dist/components/spw-footer-content.js +1 -1
- package/dist/components/spw-footer-link.js +1 -1
- package/dist/components/spw-footer.js +1 -1
- package/dist/components/spw-grid-item.js +1 -1
- package/dist/components/spw-grid.js +1 -1
- package/dist/components/spw-group.js +1 -1
- package/dist/components/spw-header-lang.js +1 -1
- package/dist/components/spw-header-navigation-dropdown.js +1 -1
- package/dist/components/spw-header-navigation-item.js +1 -1
- package/dist/components/spw-header-navigation.js +1 -1
- package/dist/components/spw-header-persona-item.js +1 -1
- package/dist/components/spw-header-persona.js +1 -1
- package/dist/components/spw-header.js +1 -1
- package/dist/components/spw-hero.js +1 -1
- package/dist/components/spw-icon.js +1 -1
- package/dist/components/spw-input-slider.js +1 -1
- package/dist/components/spw-lightbox-item.d.ts +11 -0
- package/dist/components/spw-lightbox-item.js +1 -0
- package/dist/components/spw-lightbox.d.ts +11 -0
- package/dist/components/spw-lightbox.js +1 -0
- package/dist/components/spw-link.js +1 -1
- package/dist/components/spw-list-description.js +1 -1
- package/dist/components/spw-list-item.js +1 -1
- package/dist/components/spw-list-title.js +1 -1
- package/dist/components/spw-list.js +1 -1
- package/dist/components/spw-loading.js +1 -1
- package/dist/components/spw-message.js +1 -1
- package/dist/components/spw-modal.js +1 -1
- package/dist/components/spw-mosaic-item.js +1 -1
- package/dist/components/spw-mosaic.js +4 -4
- package/dist/components/spw-pagination.js +1 -1
- package/dist/components/spw-radio.js +1 -1
- package/dist/components/spw-scrolltop.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-table.js +1 -1
- package/dist/components/spw-tabs-navigation-item.js +1 -1
- package/dist/components/spw-tabs-navigation.js +1 -1
- package/dist/components/spw-tabs.js +1 -1
- package/dist/components/spw-tag.js +1 -1
- package/dist/components/spw-text-field.js +1 -1
- package/dist/components/spw-textarea.js +1 -1
- package/dist/components/spw-theme-provider.js +1 -1
- package/dist/components/spw-tile-description.js +1 -1
- package/dist/components/spw-tile-title.js +1 -1
- package/dist/components/spw-tile.js +1 -1
- package/dist/components/spw-timeline-item.js +1 -1
- package/dist/components/spw-timeline.js +1 -1
- package/dist/components/spw-toast-controller.js +1 -1
- package/dist/components/spw-toast.js +1 -1
- package/dist/components/spw-toc-container.js +1 -1
- package/dist/components/spw-toc.js +1 -1
- package/dist/components/spw-tooltip.js +1 -1
- package/dist/components/spw-topbar.js +1 -1
- package/dist/components/spw-wizard-item.js +1 -1
- package/dist/components/spw-wizard.js +1 -1
- package/dist/components_json.json +1545 -122
- package/dist/esm/{animation-BO7xVlWo.js → animation-BRFNx2DL.js} +7 -2
- package/dist/esm/index-BU-5xOtc.js +3158 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/spw-accordion_4.entry.js +5 -5
- package/dist/esm/spw-avatar.entry.js +2 -2
- package/dist/esm/spw-block-content.entry.js +2 -2
- package/dist/esm/spw-box.entry.js +60 -0
- package/dist/esm/spw-breadcrumb-item.entry.js +2 -2
- package/dist/esm/spw-breadcrumb.entry.js +2 -2
- package/dist/esm/spw-button_2.entry.js +4 -4
- 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 +2 -2
- package/dist/esm/spw-card-subtag-item.entry.js +2 -2
- package/dist/esm/spw-card-subtags.entry.js +2 -2
- package/dist/esm/spw-card-title.entry.js +2 -2
- 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 +65 -6
- package/dist/esm/spw-date-picker.entry.js +2 -2
- package/dist/esm/spw-dropdown-container.entry.js +2 -2
- package/dist/esm/spw-dropdown-item.entry.js +2 -2
- package/dist/esm/spw-dropdown.entry.js +2 -2
- package/dist/esm/spw-field-label_7.entry.js +8 -8
- package/dist/esm/spw-field-message.entry.js +2 -2
- package/dist/esm/spw-file-upload.entry.js +3 -3
- package/dist/esm/spw-footer-bottom.entry.js +2 -2
- package/dist/esm/spw-footer-content-col.entry.js +2 -2
- package/dist/esm/spw-footer-content.entry.js +2 -2
- package/dist/esm/spw-footer-link.entry.js +2 -2
- package/dist/esm/spw-footer.entry.js +2 -2
- package/dist/esm/spw-grid-item.entry.js +3 -3
- package/dist/esm/spw-grid.entry.js +6 -4
- package/dist/esm/spw-header-lang.entry.js +2 -2
- package/dist/esm/spw-header-navigation-dropdown.entry.js +2 -2
- package/dist/esm/spw-header-navigation-item.entry.js +2 -2
- package/dist/esm/spw-header-navigation.entry.js +2 -2
- package/dist/esm/spw-header-persona-item.entry.js +2 -2
- package/dist/esm/spw-header-persona.entry.js +2 -2
- package/dist/esm/spw-header.entry.js +13 -2
- package/dist/esm/spw-hero.entry.js +21 -5
- package/dist/esm/spw-illustration.entry.js +1 -1
- package/dist/esm/spw-input-slider.entry.js +2 -2
- package/dist/esm/spw-lightbox-item.entry.js +51 -0
- package/dist/esm/spw-lightbox.entry.js +233 -0
- package/dist/esm/spw-list-description.entry.js +2 -2
- package/dist/esm/spw-list-item.entry.js +2 -2
- package/dist/esm/spw-list-title.entry.js +2 -2
- package/dist/esm/spw-list.entry.js +2 -2
- package/dist/esm/spw-message.entry.js +1 -1
- package/dist/esm/spw-modal.entry.js +5 -5
- package/dist/esm/spw-mosaic-item.entry.js +2 -2
- package/dist/esm/spw-mosaic.entry.js +2 -2
- 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 +12 -6
- package/dist/esm/spw-select.entry.js +2 -2
- 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 +16 -7
- 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 +3 -3
- package/dist/esm/spw-tabs-content.entry.js +1 -1
- package/dist/esm/spw-tabs-navigation-item.entry.js +2 -2
- 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 +69 -10
- 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-toast-controller.entry.js +2 -2
- package/dist/esm/spw-toast.entry.js +2 -2
- package/dist/esm/spw-toc-container.entry.js +2 -2
- 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-bc6051f9.entry.js → p-024a26e8.entry.js} +1 -1
- package/dist/spw-stencil-library/p-03addc15.entry.js +1 -0
- package/dist/spw-stencil-library/{p-fd8ae317.entry.js → p-05378ed8.entry.js} +1 -1
- package/dist/spw-stencil-library/p-0583eb9e.entry.js +1 -0
- package/dist/spw-stencil-library/{p-e88d700b.entry.js → p-074758e0.entry.js} +1 -1
- package/dist/spw-stencil-library/p-0fbae5ce.entry.js +1 -0
- package/dist/spw-stencil-library/{p-d9b44e31.entry.js → p-123bfbc0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f5b3255d.entry.js → p-1337adf5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e1b7565b.entry.js → p-170c4262.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-231fbcc9.entry.js → p-1bdcb44c.entry.js} +1 -1
- package/dist/spw-stencil-library/p-1cd657f6.entry.js +1 -0
- package/dist/spw-stencil-library/p-1cd68465.entry.js +1 -0
- package/dist/spw-stencil-library/{p-68c8ab55.entry.js → p-1eb101b8.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ce6499ac.entry.js → p-2fb76b1e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-21ac7e70.entry.js → p-31035d04.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c84743b7.entry.js → p-311be1c9.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-536082bb.entry.js → p-32340c8d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-bb50f1c6.entry.js → p-3374ac92.entry.js} +1 -1
- package/dist/spw-stencil-library/p-3703f96f.entry.js +1 -0
- package/dist/spw-stencil-library/{p-9bcade02.entry.js → p-38f286b7.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5b6d907b.entry.js → p-3cee0356.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-fc3463d2.entry.js → p-404a11b2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-77c9e985.entry.js → p-4265f6e5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a4336c0c.entry.js → p-4504a51e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d8967e7d.entry.js → p-47ee3609.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-bef41011.entry.js → p-49be0d9e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-017e66d3.entry.js → p-4a8766cc.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-12e209dc.entry.js → p-4f163e66.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-7d0fb1fc.entry.js → p-50bf3984.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-33b37c7f.entry.js → p-543d3e89.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-899045e0.entry.js → p-5631f2de.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1e21eb78.entry.js → p-56b73f04.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-53b60fa8.entry.js → p-5ac48320.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ed5c4229.entry.js → p-66b30373.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-428c33de.entry.js → p-699e435e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-8cfe9a5c.entry.js → p-6dabae01.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c195597b.entry.js → p-6ea95517.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-937eeeeb.entry.js → p-79c6f599.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c7f64bb6.entry.js → p-79f8babf.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-04208e52.entry.js → p-7a3131fa.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-461f9d48.entry.js → p-7ae08cea.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3049cc60.entry.js → p-7fe2e659.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ce6317dd.entry.js → p-7ffe8116.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-72d6b4cb.entry.js → p-82b5e1a1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9911694d.entry.js → p-8901c312.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-989fa86f.entry.js → p-8e8f253e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-eb71cf55.entry.js → p-910755a9.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1c25df2f.entry.js → p-94158325.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-335b9ec2.entry.js → p-98f51dbc.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6c67f42e.entry.js → p-9b28f86c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9f3abef5.entry.js → p-9ddfa4ef.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-584f8ba5.entry.js → p-9ee8fd30.entry.js} +1 -1
- package/dist/spw-stencil-library/p-BRFNx2DL.js +1 -0
- package/dist/spw-stencil-library/p-BU-5xOtc.js +2 -0
- package/dist/spw-stencil-library/{p-4aa5759c.entry.js → p-a09e3914.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-dd9a9e15.entry.js → p-a7b665db.entry.js} +2 -2
- package/dist/spw-stencil-library/{p-326f87ff.entry.js → p-a8d2e217.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ef377fc3.entry.js → p-ac6f9351.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-862ebaf0.entry.js → p-afb26e73.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a77de6f3.entry.js → p-b15db228.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-11039299.entry.js → p-b1b6f3cb.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-2ef62013.entry.js → p-b218aeda.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-12878c95.entry.js → p-b3152418.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6ac1cfdb.entry.js → p-b53d9fdb.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-935f19f8.entry.js → p-bd26c928.entry.js} +1 -1
- package/dist/spw-stencil-library/p-be220196.entry.js +1 -0
- package/dist/spw-stencil-library/{p-b82b3af6.entry.js → p-bebfe3cd.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-39cae775.entry.js → p-bfd908c9.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3694301c.entry.js → p-c41fe381.entry.js} +1 -1
- package/dist/spw-stencil-library/p-c5824697.entry.js +1 -0
- package/dist/spw-stencil-library/{p-92b69e67.entry.js → p-cdff9c53.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a574c1f7.entry.js → p-ce6af096.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d21b0833.entry.js → p-d2cabbe3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5c58ca89.entry.js → p-da0a8272.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-72e7b957.entry.js → p-daf0d53e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-eba031ea.entry.js → p-dc802ca2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9eeeb874.entry.js → p-dcd5fa8d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-06e9e52e.entry.js → p-deca1884.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-862856bf.entry.js → p-dee97ef5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e53ff9dd.entry.js → p-df311267.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-9397da21.entry.js → p-e0b50329.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-acd69768.entry.js → p-e1c2b8f8.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1a85816b.entry.js → p-e4710721.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-46256b79.entry.js → p-e5579295.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6b8ad6ec.entry.js → p-e7115b5c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5779ce33.entry.js → p-e7dbe743.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-8fc73ffb.entry.js → p-e86c4192.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f413fe3a.entry.js → p-e96bccc1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c9cb2441.entry.js → p-eda2cbd9.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b460afdc.entry.js → p-f2aaa06a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-218ae66c.entry.js → p-f43e54c9.entry.js} +1 -1
- package/dist/spw-stencil-library/p-f7b152f7.entry.js +1 -0
- package/dist/spw-stencil-library/{p-3ad3b8d1.entry.js → p-f880da57.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-fb0820ba.entry.js → p-fbbacf1e.entry.js} +1 -1
- package/dist/spw-stencil-library/p-ff26da9e.entry.js +1 -0
- package/dist/spw-stencil-library/spw-stencil-library.css +3 -3
- package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
- package/dist/stats.json +13077 -10025
- package/dist/types/components/spw-box/spw-box.d.ts +25 -0
- package/dist/types/components/spw-custom-select/spw-custom-select.d.ts +12 -1
- package/dist/types/components/spw-date-picker/spw-date-picker.d.ts +1 -1
- package/dist/types/components/spw-grid/spw-grid.d.ts +2 -0
- package/dist/types/components/spw-hero/spw-hero.d.ts +9 -1
- package/dist/types/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.d.ts +37 -0
- package/dist/types/components/spw-lightbox/spw-lightbox.d.ts +69 -0
- package/dist/types/components/spw-search-field/spw-search-field.d.ts +7 -1
- package/dist/types/components/spw-select/spw-select.d.ts +1 -1
- package/dist/types/components/spw-slider/spw-slider.d.ts +14 -0
- package/dist/types/components/spw-text-field/spw-text-field.d.ts +6 -1
- package/dist/types/components/spw-textarea/spw-textarea.d.ts +1 -1
- package/dist/types/components.d.ts +507 -15
- package/dist/types/stories/components/spw-box/spw-box.stories.d.ts +10 -0
- package/dist/types/stories/components/spw-custom-select/spw-custom-select.stories.d.ts +1 -0
- package/dist/types/stories/organisms/spw-hero/spw-hero.stories.d.ts +3 -0
- package/hydrate/index.js +737 -164
- package/hydrate/index.mjs +737 -164
- package/package.json +1 -1
- package/dist/cjs/index-CX9is0m-.js +0 -3175
- package/dist/components/p-BO7xVlWo.js +0 -1
- package/dist/components/p-CANbQKSH.js +0 -1
- package/dist/components/p-D4YZDvw0.js +0 -1
- package/dist/components_vscode.json +0 -4824
- package/dist/esm/index-Dk6w7kAO.js +0 -3146
- package/dist/spw-stencil-library/p-17891524.entry.js +0 -1
- package/dist/spw-stencil-library/p-438fedef.entry.js +0 -1
- package/dist/spw-stencil-library/p-9e73b259.entry.js +0 -1
- package/dist/spw-stencil-library/p-BO7xVlWo.js +0 -1
- package/dist/spw-stencil-library/p-Dk6w7kAO.js +0 -2
- package/dist/spw-stencil-library/p-b4391972.entry.js +0 -1
- package/dist/spw-stencil-library/p-c452d5b0.entry.js +0 -1
- package/dist/spw-stencil-library/p-c8800fc9.entry.js +0 -1
- package/dist/spw-stencil-library/p-dd4fe0fb.entry.js +0 -1
package/dist/collection/components/spw-breadcrumb/spw-breadcrumb-item/spw-breadcrumb-item.js
CHANGED
|
@@ -35,7 +35,7 @@ export class SpwBreadcrumbItem {
|
|
|
35
35
|
this.el.classList.add(`spw-breadcrumb-item--${this.surface}`);
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '68661d36076f8e2ded2e0d3d438157e4bf5eeba7' }, h("div", { key: '9bbabf1f3d7a3d5655b08670e4f021adc48c50c3', role: "listitem", class: `spw-breadcrumb-item spw-breadcrumb-item--${this.surface}` }, this.href ? (h("spw-link", { href: this.href, surface: this.surface }, h("slot", null))) : (h("span", { class: "spw-breadcrumb-item__text", "aria-current": "page" }, h("slot", null))))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "spw-breadcrumb-item"; }
|
|
41
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -43,7 +43,7 @@ export class SpwBreadcrumb {
|
|
|
43
43
|
[`spw-breadcrumb--font-size-${this.fontSize}`]: true,
|
|
44
44
|
[`spw-breadcrumb--${this.variant}`]: true,
|
|
45
45
|
};
|
|
46
|
-
return (h(Host, { key: '
|
|
46
|
+
return (h(Host, { key: '72cd3232357b54b5fa081df2c605ea039b791fd7' }, h("nav", { key: '214606d2a4d13a2d629d9d88aa8a5182be5006c3', "aria-label": this.accAriaLabel, class: elementClass }, h("div", { key: '4ea1cedcd9fcd650e8198c1d613959bbee9f155e', role: "list", class: "spw-breadcrumb__list" }, h("slot", { key: '8cc4da01764ace42c2de886f453e3c322c2f0483' })))));
|
|
47
47
|
}
|
|
48
48
|
static get is() { return "spw-breadcrumb"; }
|
|
49
49
|
static get encapsulation() { return "shadow"; }
|
|
@@ -401,13 +401,13 @@ template {
|
|
|
401
401
|
--spw-button-text-decoration: none;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
-
:host([is-full-width]) {
|
|
404
|
+
:host([is-full-width]:not([is-full-width=false])) {
|
|
405
405
|
display: block;
|
|
406
406
|
width: 100%;
|
|
407
407
|
}
|
|
408
408
|
|
|
409
409
|
@media (max-width: 767px) {
|
|
410
|
-
:host([is-full-width-mobile]) {
|
|
410
|
+
:host([is-full-width-mobile]:not([is-full-width-mobile=false])) {
|
|
411
411
|
display: block;
|
|
412
412
|
width: 100%;
|
|
413
413
|
}
|
|
@@ -109,7 +109,7 @@ export class SpwButton {
|
|
|
109
109
|
'aria-label': this.accAriaLabel || this.name || slotText || 'Label',
|
|
110
110
|
'aria-disabled': isDisabled ? 'true' : null,
|
|
111
111
|
};
|
|
112
|
-
return (h(TagType, Object.assign({ key: '
|
|
112
|
+
return (h(TagType, Object.assign({ key: 'af8ac1a8762a7da373014f322ee004297a8295f5' }, attrs, { ref: (el) => (this.nativeEl = el), class: this.elementClass, disabled: isDisabled, onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick }, ariaAttributes), h("div", { key: 'dc40b975fc312377bcbdc89ee1e0da4707893b13', class: "spw-button__inner" }, h("div", { key: 'c5a397c631fd9984fca6f711b1cc890cf1516f79', class: "spw-button__inner-text" }, iconPosition === 'left' && iconElement, !this.isIconOnly && h("slot", { key: '92e532897aa0f62a2c1927026b15a7e81307256c' }), iconPosition === 'right' && iconElement)), h("spw-loading", { key: 'f7ae144bc041a0fa7d189a532a069cf7ed3e3aa5', text: "" })));
|
|
113
113
|
}
|
|
114
114
|
static get is() { return "spw-button"; }
|
|
115
115
|
static get encapsulation() { return "shadow"; }
|
|
@@ -474,7 +474,7 @@ export class SpwButton {
|
|
|
474
474
|
},
|
|
475
475
|
"getter": false,
|
|
476
476
|
"setter": false,
|
|
477
|
-
"reflect":
|
|
477
|
+
"reflect": true,
|
|
478
478
|
"attribute": "is-full-width",
|
|
479
479
|
"defaultValue": "false"
|
|
480
480
|
},
|
|
@@ -2,7 +2,7 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { formatDate } from "../../../utils/utils";
|
|
3
3
|
export class SpwCardContent {
|
|
4
4
|
render() {
|
|
5
|
-
return (h("div", { key: '
|
|
5
|
+
return (h("div", { key: '66ceb610e7cb0b66d4aa8287f75f698840a50819', class: "spw-card-content" }, this.tag && h("span", { key: '51e3aa55120ee1ae99fc37843a8cd1d118418b63', class: "spw-card-content__tag" }, this.tag), this.date && (h("time", { key: 'e507fba4526c323f520378e711da8418c3c4b929', "date-time": this.date, class: "spw-card-content__date" }, formatDate(this.date))), h("slot", { key: '104ffaf30fd8c9a3b1d274141971a7c747894fad' })));
|
|
6
6
|
}
|
|
7
7
|
static get is() { return "spw-card-content"; }
|
|
8
8
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,7 +13,7 @@ export class SpwCardExcerpt {
|
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '94f53e8e2d7a9c333ab2320ca3f37d13657fece3' }, h("div", { key: '84c391bea45ccec30809e488c8ff12d2e921edbb', class: this.elementClass }, h("slot", { key: 'd9b85510693fe08e8b9951ab7395dca3ebfaa0d9' }))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "spw-card-excerpt"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -50,7 +50,7 @@ export class SpwCardImage {
|
|
|
50
50
|
if (this.imageFit) {
|
|
51
51
|
style['--spw-card-image-object-fit'] = this.imageFit;
|
|
52
52
|
}
|
|
53
|
-
return (h("div", { key: '
|
|
53
|
+
return (h("div", { key: '4068c0b001f0e42e24f1310fbc1eac023e544b91', class: this.elementClass, style: style }, this.label && h("span", { key: '7413245a62cae16674a7dd0f5bd201b3011c9356', class: "spw-card-image__label" }, this.label), h("slot", { key: '39c2c73eaa4323575d525fe664203200f90dd8c1' }), h("div", { key: '0bd09043e8f6ed6fecbd3ebe3d8ba9b1bf683a59', class: "spw-card-image__icon" }, h("spw-icon", { key: '15c00a9fc5ece402f8a81297fadf83475dd027cf', icon: "fa-plus" }))));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "spw-card-image"; }
|
|
56
56
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,7 +12,7 @@ export class SpwCardSubtagItem {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: 'b9cc69c396246f2312c714f9a92064051a2a7593' }, h("span", { key: '18ceda99d47d27ff2a465fde67d426590445d3d8', class: this.elementClass, onClick: () => this.handleClick() }, h("slot", { key: '332ea40deefbe4b854c4dbeb07eabbf0c964d61b' }))));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "spw-card-subtag-item"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -26,7 +26,7 @@ export class SpwCardSubtags {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '932526d39865c60a98dc2c5b3a725d08116a8435' }, h("div", { key: '5127d371be9c14528be9afa1badbd1278b1ae40c', class: this.elementClass }, h("slot", { key: '06cb3b41922d0f2a4bcc1dee186a01b515581144' }))));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "spw-card-subtags"; }
|
|
32
32
|
static get originalStyleUrls() {
|
|
@@ -5,7 +5,7 @@ export class SpwCardTitle {
|
|
|
5
5
|
this.borderColor = '';
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '334d6835dd28e414809f7de8b2f6ad82708d88e6', style: { '--spw-card-title-border-color': this.borderColor } }, h("h3", { key: 'ff00413ca35178fc4cbf60a605fe350e1239e7b7', class: "spw-card-title" }, h("span", { key: '629c669018ecb697c63c9d938b46010c8706b6ba', class: "spw-card-title__text" }, h("slot", { key: 'dac76a2afd228e94dd389122d060304f165743ed' })))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "spw-card-title"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -120,7 +120,7 @@ export class SpwCard {
|
|
|
120
120
|
'aria-label': this === null || this === void 0 ? void 0 : this.accAriaLabel,
|
|
121
121
|
'aria-disabled': this.disabled ? 'true' : null,
|
|
122
122
|
};
|
|
123
|
-
return (h(Host, { key: '
|
|
123
|
+
return (h(Host, { key: 'a82c4310865f2cc2ce5b446da38c81bfd2bb9678', class: { '--is-full-height': this.fullHeight } }, h("article", { key: 'fe460202702412232d7879197914999fafbbee50', class: this.elementClass }, variant === 'event' && (h(TagType, Object.assign({ key: '9b462c7cfb15fcbef342e40e707d53125ca0ac34' }, attrs, { class: "spw-card__dates" }), dateStart && h("div", { key: '596cb0847afb8da0b8211715ff5141b11a481ab4', class: "spw-card__date-item" }, this.formatDate(dateStart)), dateEnd && h("div", { key: '72b61e7173a55795a0139c4d73260b8c97af9213', class: "spw-card__date-item" }, this.formatDate(dateEnd)))), h(TagType, Object.assign({ key: '4e86eb1a2540512b44964d01cb53e3bc4aeebdde' }, attrs, ariaAttributes, { class: "spw-card__link" }), h("slot", { key: '4b81b7820f5c4ec19c507976c94c49aa74a53db2' })))));
|
|
124
124
|
}
|
|
125
125
|
static get is() { return "spw-card"; }
|
|
126
126
|
static get encapsulation() { return "shadow"; }
|
|
@@ -75,7 +75,7 @@ export class SpwCheckbox {
|
|
|
75
75
|
render() {
|
|
76
76
|
const slot = this.el.innerHTML;
|
|
77
77
|
const hasSlot = Boolean(slot);
|
|
78
|
-
return (h("div", { key: '
|
|
78
|
+
return (h("div", { key: 'c38a01b2898e391335b55297929b50109d892434', class: "spw-checkbox" }, h("input", { key: '2e696c49a36c92eed15f06e64b4a52722fab8062', type: "checkbox", ref: el => (this.inputElement = el), checked: this.internalChecked, onChange: this.handleCheckbox.bind(this), name: this.name, disabled: this.disabled, style: { display: 'none' } }), hasSlot && (h("label", { key: 'aaa5422e96bd40d32972996be19f389cdb276e70', htmlFor: this.name, class: `spw-checkbox__label ${this.disabled ? 'spw-checkbox__label--disabled' : ''}`, onClick: e => this.handleCheckbox(e) }, h("slot", { key: 'baa3fbdb4b6a17b91dba5c6077bd50a1f8207b61' }))), h("div", { key: '36a552efdb1a0afe004d8e518978175cfb788ccb', tabindex: this.disabled ? -1 : 0, onClick: e => this.handleCheckbox(e), onKeyDown: this.handleKeydown.bind(this), role: "checkbox", "aria-checked": this.internalChecked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', "aria-label": this.accAriaLabel || this.name || 'Label', class: this.elementClass }, this.internalChecked && h("spw-icon", { key: '95cdfbb6513f76bb570e3707cf34cb8ccf8e1107', icon: this.icon }))));
|
|
79
79
|
}
|
|
80
80
|
static get is() { return "spw-checkbox"; }
|
|
81
81
|
static get encapsulation() { return "shadow"; }
|
|
@@ -527,6 +527,8 @@ template {
|
|
|
527
527
|
z-index: 11;
|
|
528
528
|
width: 100%;
|
|
529
529
|
margin-top: 1px;
|
|
530
|
+
display: flex;
|
|
531
|
+
align-items: center;
|
|
530
532
|
}
|
|
531
533
|
.spw-custom-select--has-value.spw-custom-select--is-opened .spw-custom-select__search {
|
|
532
534
|
top: 100%;
|
|
@@ -546,12 +548,17 @@ template {
|
|
|
546
548
|
border: none;
|
|
547
549
|
margin: 0;
|
|
548
550
|
width: calc(100% - 30px);
|
|
551
|
+
background: transparent;
|
|
552
|
+
text-overflow: ellipsis;
|
|
549
553
|
}
|
|
550
554
|
.spw-custom-select--is-clear .spw-custom-select__search-input {
|
|
551
555
|
width: calc(100% - 58px);
|
|
552
556
|
}
|
|
553
|
-
.spw-custom-select__search-input {
|
|
554
|
-
|
|
557
|
+
.spw-custom-select--show-create .spw-custom-select__search-input {
|
|
558
|
+
width: calc(100% - 66px);
|
|
559
|
+
}
|
|
560
|
+
.spw-custom-select--is-clear.spw-custom-select--show-create .spw-custom-select__search-input {
|
|
561
|
+
width: calc(100% - 94px);
|
|
555
562
|
}
|
|
556
563
|
.spw-custom-select__search-input:focus {
|
|
557
564
|
outline: none;
|
|
@@ -562,9 +569,44 @@ template {
|
|
|
562
569
|
}
|
|
563
570
|
.spw-custom-select--is-opened.spw-custom-select--has-value .spw-custom-select__search-input {
|
|
564
571
|
border: 1px solid var(--spw-color-themes-grey-grey-800);
|
|
565
|
-
|
|
572
|
+
flex: 1;
|
|
573
|
+
width: auto;
|
|
566
574
|
border-radius: 3px;
|
|
567
575
|
}
|
|
576
|
+
.spw-custom-select__create-btn {
|
|
577
|
+
flex-shrink: 0;
|
|
578
|
+
display: inline-flex;
|
|
579
|
+
align-items: center;
|
|
580
|
+
justify-content: center;
|
|
581
|
+
height: 28px;
|
|
582
|
+
padding: 0;
|
|
583
|
+
padding-top: 2px;
|
|
584
|
+
width: 28px;
|
|
585
|
+
line-height: 28px;
|
|
586
|
+
border: 1px solid var(--spw-color-themes-grey-grey-800);
|
|
587
|
+
border-radius: 100px;
|
|
588
|
+
background: #fff;
|
|
589
|
+
cursor: pointer;
|
|
590
|
+
color: var(--spw-color-themes-grey-grey-900);
|
|
591
|
+
font-size: 14px;
|
|
592
|
+
pointer-events: auto;
|
|
593
|
+
transition: background 0.15s ease, border-color 0.15s ease;
|
|
594
|
+
}
|
|
595
|
+
.spw-custom-select__create-btn:hover {
|
|
596
|
+
background: var(--spw-color-themes-grey-grey-200);
|
|
597
|
+
border-color: var(--spw-color-themes-grey-grey-900);
|
|
598
|
+
}
|
|
599
|
+
.spw-custom-select__create-btn:focus-visible {
|
|
600
|
+
outline: 3px solid white;
|
|
601
|
+
box-shadow: 0 0 0 6px black;
|
|
602
|
+
}
|
|
603
|
+
.spw-custom-select__create-btn--big {
|
|
604
|
+
width: 38px;
|
|
605
|
+
height: 38px;
|
|
606
|
+
border-radius: 4px;
|
|
607
|
+
margin-left: 4px;
|
|
608
|
+
padding-top: 0;
|
|
609
|
+
}
|
|
568
610
|
.spw-custom-select__options {
|
|
569
611
|
background-color: #fff;
|
|
570
612
|
border: 1px solid var(--spw-color-themes-grey-grey-800);
|
|
@@ -637,6 +679,8 @@ template {
|
|
|
637
679
|
color: var(--spw-color-themes-grey-grey-600);
|
|
638
680
|
}
|
|
639
681
|
.spw-custom-select__option {
|
|
682
|
+
display: flex;
|
|
683
|
+
align-items: center;
|
|
640
684
|
border-bottom: 1px solid var(--spw-color-themes-grey-grey-900);
|
|
641
685
|
padding: 12px;
|
|
642
686
|
cursor: pointer;
|
|
@@ -658,6 +702,20 @@ template {
|
|
|
658
702
|
.spw-custom-select__option--disabled:hover {
|
|
659
703
|
background-color: transparent;
|
|
660
704
|
}
|
|
705
|
+
.spw-custom-select__option--created {
|
|
706
|
+
justify-content: space-between;
|
|
707
|
+
}
|
|
708
|
+
.spw-custom-select__option-remove {
|
|
709
|
+
padding-left: 4px;
|
|
710
|
+
margin-left: auto;
|
|
711
|
+
flex-shrink: 0;
|
|
712
|
+
font-size: 14px;
|
|
713
|
+
color: var(--spw-color-themes-grey-grey-600);
|
|
714
|
+
transition: color 0.15s ease;
|
|
715
|
+
}
|
|
716
|
+
.spw-custom-select__option-remove:hover {
|
|
717
|
+
color: var(--spw-color-themes-grey-grey-900);
|
|
718
|
+
}
|
|
661
719
|
.spw-custom-select__error {
|
|
662
720
|
display: block;
|
|
663
721
|
font-size: 12px;
|
|
@@ -54,6 +54,8 @@ export class SpwCustomSelect {
|
|
|
54
54
|
this.isClear = false;
|
|
55
55
|
/** Direction d'ouverture du dropdown */
|
|
56
56
|
this.direction = 'auto';
|
|
57
|
+
/** Permet à l'utilisateur d'ajouter une option si elle n'existe pas dans la liste (nécessite isSearch) */
|
|
58
|
+
this.allowCreate = false;
|
|
57
59
|
this.handleOtherSelectOpened = (event) => {
|
|
58
60
|
if (event.detail.instance !== this.host && this.isOpen) {
|
|
59
61
|
this.closeDropdown();
|
|
@@ -362,6 +364,43 @@ export class SpwCustomSelect {
|
|
|
362
364
|
this.focusedOptionIndex = null;
|
|
363
365
|
this.searchText = '';
|
|
364
366
|
}
|
|
367
|
+
slugify(str) {
|
|
368
|
+
return this.normalizeString(str)
|
|
369
|
+
.replace(/\s+/g, '-')
|
|
370
|
+
.replace(/[^a-z0-9-]/g, '');
|
|
371
|
+
}
|
|
372
|
+
addCreatedOption(label) {
|
|
373
|
+
const trimmed = label.trim();
|
|
374
|
+
if (!trimmed)
|
|
375
|
+
return;
|
|
376
|
+
const value = this.slugify(trimmed);
|
|
377
|
+
const newOption = { label: trimmed, value, created: true };
|
|
378
|
+
this.parsedOptions = [...this.parsedOptions, newOption];
|
|
379
|
+
this.optionCreated.emit(newOption);
|
|
380
|
+
this.selectOption(value);
|
|
381
|
+
this.searchText = '';
|
|
382
|
+
}
|
|
383
|
+
removeCreatedOption(option, event) {
|
|
384
|
+
event.stopPropagation();
|
|
385
|
+
// Désélectionne si l'option était sélectionnée
|
|
386
|
+
if (this.multiple) {
|
|
387
|
+
const idx = this.internalValue.findIndex(val => String(val) === String(option.value));
|
|
388
|
+
if (idx > -1) {
|
|
389
|
+
this.internalValue = [...this.internalValue.slice(0, idx), ...this.internalValue.slice(idx + 1)];
|
|
390
|
+
this.value = this.internalValue;
|
|
391
|
+
this.internals.setFormValue(this.getFormValue());
|
|
392
|
+
this.valueChanged.emit(this.internalValue);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
else if (String(this.internalValue) === String(option.value)) {
|
|
396
|
+
this.internalValue = '';
|
|
397
|
+
this.value = '';
|
|
398
|
+
this.internals.setFormValue(this.getFormValue());
|
|
399
|
+
this.valueChanged.emit(this.internalValue);
|
|
400
|
+
}
|
|
401
|
+
this.parsedOptions = this.parsedOptions.filter(o => String(o.value) !== String(option.value));
|
|
402
|
+
this.optionRemoved.emit(option);
|
|
403
|
+
}
|
|
365
404
|
handleClear(event) {
|
|
366
405
|
event.stopPropagation();
|
|
367
406
|
this.resetSelect();
|
|
@@ -468,6 +507,7 @@ export class SpwCustomSelect {
|
|
|
468
507
|
}
|
|
469
508
|
}
|
|
470
509
|
get elementClass() {
|
|
510
|
+
const showCreate = this.showCreateButton();
|
|
471
511
|
return {
|
|
472
512
|
'spw-custom-select': true,
|
|
473
513
|
[`spw-custom-select--${this.size}`]: true,
|
|
@@ -480,6 +520,7 @@ export class SpwCustomSelect {
|
|
|
480
520
|
'spw-custom-select--is-searchable': this.isSearch,
|
|
481
521
|
'spw-custom-select--not-searchable': !this.isSearch,
|
|
482
522
|
'spw-custom-select--is-clear': this.isClear && (this.hasSelectedValue || !!this.searchText),
|
|
523
|
+
'spw-custom-select--show-create': showCreate,
|
|
483
524
|
};
|
|
484
525
|
}
|
|
485
526
|
normalizeString(str) {
|
|
@@ -532,14 +573,29 @@ export class SpwCustomSelect {
|
|
|
532
573
|
return false;
|
|
533
574
|
return true;
|
|
534
575
|
}
|
|
576
|
+
showCreateButton() {
|
|
577
|
+
if (!this.allowCreate || !this.isSearch || !this.searchText.trim())
|
|
578
|
+
return false;
|
|
579
|
+
const normalized = this.normalizeString(this.searchText.trim());
|
|
580
|
+
return !this.parsedOptions.some(o => this.normalizeString(o.label) === normalized);
|
|
581
|
+
}
|
|
535
582
|
render() {
|
|
536
583
|
const filteredOptions = this.getFilteredOptions();
|
|
537
584
|
const showPlaceholder = this.showPlaceholder();
|
|
538
|
-
|
|
585
|
+
const showCreate = this.showCreateButton();
|
|
586
|
+
return (h("div", { key: '4bb22979651b6946dd66fc9844f205e59d0a5411', class: this.elementClass, ref: el => (this.host = el) }, this.label && (h("spw-field-label", { key: '4d9c26597da16ec05bc8aee0c2a03413ea17ff50', label: this.label, name: this.name, required: this.required, tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, tooltipMaxWidth: this.tooltipMaxWidth, tooltipDirection: this.tooltipDirection, tooltipCursor: this.tooltipCursor })), this.assistiveText && (h("spw-field-message", { key: '85594d2693007a09d2d1b70b9f5bc61056548ee2', class: "spw-custom-select__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: '53fe8200e2e8ec025c9148bb76a4bd7418068513', class: "spw-custom-select__wrapper" }, h("div", { key: '79b757cffef9f53eb738d2e11aee592e63211841', class: "spw-custom-select__container", id: this.name, ref: el => (this.selectContainer = el), onClick: event => this.toggleDropdown(event), onKeyDown: event => this.handleKeyDown(event), tabindex: this.disabled ? -1 : 0 }, h("div", { key: 'c502d3c270203b548990cfab7d45394557314334', class: "spw-custom-select__selected" }, this.isSearchVisible() && (h("div", { key: '9134c7f87988d3f0efb6c8095646bb6a1ca8ebd0', class: "spw-custom-select__search" }, h("input", { key: '0a5b873ac75d71f480e1209184fa0e63552632b9', class: "spw-custom-select__search-input", placeholder: this.searchPlaceholder, onInput: event => this.handleSearchInput(event), value: this.searchText }), showCreate && this.isOpen && this.hasSelectedValue && (h("button", { key: '7ecf48c56ddb8a7918a38b37b0dbfb47994fc0af', class: "spw-custom-select__create-btn spw-custom-select__create-btn--big", type: "button", onMouseDown: (event) => {
|
|
587
|
+
event.preventDefault();
|
|
588
|
+
event.stopPropagation();
|
|
589
|
+
this.addCreatedOption(this.searchText);
|
|
590
|
+
} }, h("spw-icon", { key: '078c09832bcce6f476a83be55bc54e4cd19223bc', icon: "fa-plus" }))))), showPlaceholder && h("span", { key: '29e59d519f39c3dcafe60a169b2a01adee8904f7' }, this.placeholder), this.multiple && this.internalValue.length > 0 && (h("div", { key: '205e9ebc3bf531b76fc0abdbb760c214a08b6623', class: "spw-custom-select__selected-items" }, this.internalValue.map(val => {
|
|
539
591
|
var _a;
|
|
540
592
|
return (h("span", { class: "spw-custom-select__selected-item" }, (_a = this.parsedOptions.find(option => String(option.value) === String(val))) === null || _a === void 0 ? void 0 :
|
|
541
593
|
_a.label, h("spw-icon", { icon: "fa-times", class: "spw-custom-select__deselect-icon", onClick: event => this.selectOption(val, event) })));
|
|
542
|
-
}))), !this.multiple && h("span", { key: '
|
|
594
|
+
}))), !this.multiple && h("span", { key: '67eb1e59a69443c63cfe030421a45dd9ed98d626' }, this.getSelectedLabels()))), h("div", { key: 'd36ae8e7dbcbdf5d3895482bf94ce352ccb2deb2', class: "spw-custom-select__icons" }, showCreate && !(this.isOpen && this.hasSelectedValue) && (h("button", { key: 'd5ab27383e5915b3a6a23e2a4c233e37b56bdcda', class: "spw-custom-select__create-btn", type: "button", onMouseDown: (event) => {
|
|
595
|
+
event.preventDefault();
|
|
596
|
+
event.stopPropagation();
|
|
597
|
+
this.addCreatedOption(this.searchText);
|
|
598
|
+
} }, h("spw-icon", { key: '00e486f257d3576fe5a481320685c0f73ac76b43', icon: "fa-plus" }))), this.isClear && (this.hasSelectedValue || !!this.searchText) && (h("span", { key: '522cc58133eebfc86d8f64ab549905f4d7dc85ea', class: "spw-custom-select__clear", onClick: event => this.handleClear(event) }, h("spw-icon", { key: '4afc256de08bae62efde4d0903a2fa2de4438d89', icon: "fa-xmark" }))), h("div", { key: 'ae0fb99288bad447c52288df66afdcf042c139d8', class: "spw-custom-select__arrow" }, h("spw-icon", { key: '2166910463c05b09b845eab799fbb13b63bcc06f', icon: this.isOpen ? 'fa-chevron-up' : 'fa-chevron-down' }))), this.isOpen && (h("div", { key: '2331976d5867174852a1394987bf6bdf8545a3f2', class: {
|
|
543
599
|
'spw-custom-select__options': true,
|
|
544
600
|
[`spw-custom-select__options--${this.dropdownDirection}`]: true,
|
|
545
601
|
'spw-custom-select__options--fixed': this.fixedDropdown,
|
|
@@ -550,14 +606,15 @@ export class SpwCustomSelect {
|
|
|
550
606
|
left: `${this.dropdownPosition.left}px`,
|
|
551
607
|
width: `${this.dropdownPosition.width}px`,
|
|
552
608
|
}
|
|
553
|
-
: {} }, h("div", { key: '
|
|
609
|
+
: {} }, h("div", { key: '43dd9a1b026ff6aac3a4d309e4f4e950156566ef', class: "spw-custom-select__options-list" }, !!filteredOptions.length && (h("ul", { key: 'dc42399871b8b4286a440a9c5da7c618301ca330' }, filteredOptions.map((option, index) => (h("li", { class: {
|
|
554
610
|
'spw-custom-select__option': true,
|
|
555
611
|
'spw-custom-select__option--selected': this.multiple
|
|
556
612
|
? this.internalValue.some(val => String(val) === String(option.value))
|
|
557
613
|
: option.value === this.internalValue,
|
|
558
614
|
'spw-custom-select__option--focused': index === this.focusedOptionIndex,
|
|
559
615
|
'spw-custom-select__option--disabled': option.disabled,
|
|
560
|
-
|
|
616
|
+
'spw-custom-select__option--created': !!option.created,
|
|
617
|
+
}, onClick: () => this.selectOption(option.value) }, this.multiple && (h("spw-checkbox", { onKeyDown: event => this.handleOptionKeyDown(event, option.value), class: "spw-custom-select__checkbox", checked: this.internalValue.some(val => String(val) === String(option.value)), disabled: option.disabled })), option.label, option.created && (h("spw-icon", { class: "spw-custom-select__option-remove", icon: "fa-trash", onClick: (event) => this.removeCreatedOption(option, event) }))))))), !filteredOptions.length && h("p", { key: '16b8fc9d36f71937588d8f57ddf593380766a5a8', class: "spw-custom-select__no-results" }, this.noResultsText)), this.hasSlottedFooter && (h("div", { key: 'c273c08ab20c4d80b26045fba0bc8abca5564851', class: "spw-custom-select__options-footer" }, h("slot", { key: 'f54f6b94a36cc064f8820a6892cfb02b05e039b1', name: "footer" })))))), this.renderErrorMessage(), this.renderHintMessage(), this.renderSuccessMessage(), this.renderWarningMessage()));
|
|
561
618
|
}
|
|
562
619
|
static get is() { return "spw-custom-select"; }
|
|
563
620
|
static get encapsulation() { return "shadow"; }
|
|
@@ -827,7 +884,7 @@ export class SpwCustomSelect {
|
|
|
827
884
|
"optional": true,
|
|
828
885
|
"docs": {
|
|
829
886
|
"tags": [],
|
|
830
|
-
"text": "Texte d'assistance \u00E0 afficher sous le
|
|
887
|
+
"text": "Texte d'assistance \u00E0 afficher sous le label"
|
|
831
888
|
},
|
|
832
889
|
"getter": false,
|
|
833
890
|
"setter": false,
|
|
@@ -1169,6 +1226,26 @@ export class SpwCustomSelect {
|
|
|
1169
1226
|
"reflect": false,
|
|
1170
1227
|
"attribute": "direction",
|
|
1171
1228
|
"defaultValue": "'auto'"
|
|
1229
|
+
},
|
|
1230
|
+
"allowCreate": {
|
|
1231
|
+
"type": "boolean",
|
|
1232
|
+
"mutable": false,
|
|
1233
|
+
"complexType": {
|
|
1234
|
+
"original": "boolean",
|
|
1235
|
+
"resolved": "boolean",
|
|
1236
|
+
"references": {}
|
|
1237
|
+
},
|
|
1238
|
+
"required": false,
|
|
1239
|
+
"optional": true,
|
|
1240
|
+
"docs": {
|
|
1241
|
+
"tags": [],
|
|
1242
|
+
"text": "Permet \u00E0 l'utilisateur d'ajouter une option si elle n'existe pas dans la liste (n\u00E9cessite isSearch)"
|
|
1243
|
+
},
|
|
1244
|
+
"getter": false,
|
|
1245
|
+
"setter": false,
|
|
1246
|
+
"reflect": false,
|
|
1247
|
+
"attribute": "allow-create",
|
|
1248
|
+
"defaultValue": "false"
|
|
1172
1249
|
}
|
|
1173
1250
|
};
|
|
1174
1251
|
}
|
|
@@ -1201,6 +1278,48 @@ export class SpwCustomSelect {
|
|
|
1201
1278
|
"resolved": "(string | number)[] | number | string",
|
|
1202
1279
|
"references": {}
|
|
1203
1280
|
}
|
|
1281
|
+
}, {
|
|
1282
|
+
"method": "optionCreated",
|
|
1283
|
+
"name": "optionCreated",
|
|
1284
|
+
"bubbles": true,
|
|
1285
|
+
"cancelable": true,
|
|
1286
|
+
"composed": true,
|
|
1287
|
+
"docs": {
|
|
1288
|
+
"tags": [],
|
|
1289
|
+
"text": "\u00C9v\u00E9nement \u00E9mis lorsqu'une nouvelle option est cr\u00E9\u00E9e via le champ de recherche"
|
|
1290
|
+
},
|
|
1291
|
+
"complexType": {
|
|
1292
|
+
"original": "SelectItem",
|
|
1293
|
+
"resolved": "SelectItem",
|
|
1294
|
+
"references": {
|
|
1295
|
+
"SelectItem": {
|
|
1296
|
+
"location": "local",
|
|
1297
|
+
"path": "/Users/pectonite/Desktop/SPW/spw-design-system/packages/spw-stencil-library/src/components/spw-custom-select/spw-custom-select.tsx",
|
|
1298
|
+
"id": "src/components/spw-custom-select/spw-custom-select.tsx::SelectItem"
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
}, {
|
|
1303
|
+
"method": "optionRemoved",
|
|
1304
|
+
"name": "optionRemoved",
|
|
1305
|
+
"bubbles": true,
|
|
1306
|
+
"cancelable": true,
|
|
1307
|
+
"composed": true,
|
|
1308
|
+
"docs": {
|
|
1309
|
+
"tags": [],
|
|
1310
|
+
"text": "\u00C9v\u00E9nement \u00E9mis lorsqu'une option cr\u00E9\u00E9e est supprim\u00E9e"
|
|
1311
|
+
},
|
|
1312
|
+
"complexType": {
|
|
1313
|
+
"original": "SelectItem",
|
|
1314
|
+
"resolved": "SelectItem",
|
|
1315
|
+
"references": {
|
|
1316
|
+
"SelectItem": {
|
|
1317
|
+
"location": "local",
|
|
1318
|
+
"path": "/Users/pectonite/Desktop/SPW/spw-design-system/packages/spw-stencil-library/src/components/spw-custom-select/spw-custom-select.tsx",
|
|
1319
|
+
"id": "src/components/spw-custom-select/spw-custom-select.tsx::SelectItem"
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1204
1323
|
}];
|
|
1205
1324
|
}
|
|
1206
1325
|
static get methods() {
|
|
@@ -908,7 +908,7 @@ export class SpwDatePicker {
|
|
|
908
908
|
'spw-date-picker--is-clear': this.isClearIconVisible,
|
|
909
909
|
};
|
|
910
910
|
const errorMessage = this.error || this.internalError;
|
|
911
|
-
return (h(Host, { key: '
|
|
911
|
+
return (h(Host, { key: '532d487da5196336bc86cfa98eb2b0cf4812fdfa' }, h("div", { key: 'bd0182c0dc06cf9a5ea846513bee1960c4a6b567', class: containerClass }, this.label && (h("spw-field-label", { key: 'aa8311ff9e5d1214a8b83613b01dd0fe75981542', label: this.label, required: this.required, tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, tooltipMaxWidth: this.tooltipMaxWidth, tooltipDirection: this.tooltipDirection, tooltipCursor: this.tooltipCursor })), this.assistiveText && (h("spw-field-message", { key: 'ddf1fee6b4ac1e18c8bc6ddf433dcb58d07bfb87', class: "spw-date-picker__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: '8445c6f924ce87b0a630b55d15bcf439f7ae208b', class: "spw-date-picker__input-container" }, h("input", { key: '2dccede48303f05eba9fa4f37cb179f6dd8eda65', ref: el => (this.inputElement = el), id: this.uniqueId, type: "text", class: inputClass, value: this.internalValue, placeholder: this.placeholder, disabled: this.disabled, required: this.required, onFocus: this.handleInputFocus, onInput: this.handleInputChange, onKeyDown: this.handleKeyDown, "aria-label": this.accAriaLabel || this.label || this.name, "aria-describedby": this.assistiveText || errorMessage ? `${this.uniqueId}-help ${this.uniqueId}-error` : undefined, "aria-invalid": this.hasError }), h("div", { key: '0d2a94739a90dce420005bab0639cadb29444939', class: "spw-date-picker__icons" }, this.isClearIconVisible && (h("span", { key: '37b50fb2c43d2ca1be2a39b7ce9dc65e84b1b69c', class: "spw-date-picker__clear", onClick: this.handleClear }, h("spw-icon", { key: '4668571785391971ff209c46bf74f71306487f28', class: "spw-date-picker__icon spw-date-picker__icon--clear", icon: "fa-xmark" }))), h("span", { key: '14714c220f11d9b223a69354725bddbe36eed30a', class: "spw-date-picker__calendar-trigger", onMouseDown: this.handleCalendarIconMouseDown, onClick: this.handleCalendarIconClick }, h("spw-icon", { key: '67ccce624a7aed6324d48be9d3ed7c0adbf2cedf', icon: "fa-calendar", variant: "fa-regular", class: "spw-date-picker__icon spw-date-picker__icon--calendar" })))), this.error && (h("spw-field-message", { key: '7d138427f2e0a4c9863a3f041006cb0113caf038', variant: "error", showIcon: this.showErrorIcon }, this.error)), this.hint && (h("spw-field-message", { key: 'fd3265202be2901f1ad32e8343cfd2193366d201', variant: "hint", showIcon: this.showHintIcon }, this.hint)), this.success && (h("spw-field-message", { key: '085721c834bf6adfbd45ff15d3bdaaf1b4af72fb', variant: "success", showIcon: this.showSuccessIcon }, this.success)), this.warning && (h("spw-field-message", { key: '4222fb895d724619a4be4faad50d884ef571e1c9', variant: "warning", showIcon: this.showWarningIcon }, this.warning)))));
|
|
912
912
|
}
|
|
913
913
|
static get is() { return "spw-date-picker"; }
|
|
914
914
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1351,7 +1351,7 @@ export class SpwDatePicker {
|
|
|
1351
1351
|
"optional": true,
|
|
1352
1352
|
"docs": {
|
|
1353
1353
|
"tags": [],
|
|
1354
|
-
"text": "Texte d'assistance \u00E0 afficher sous le
|
|
1354
|
+
"text": "Texte d'assistance \u00E0 afficher sous le label"
|
|
1355
1355
|
},
|
|
1356
1356
|
"getter": false,
|
|
1357
1357
|
"setter": false,
|
package/dist/collection/components/spw-dropdown/spw-dropdown-container/spw-dropdown-container.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class SpwDropdownContainer {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: '79dc2cc099719ae4705b6b17fa914f137145bbf4' }, h("div", { key: 'e91b67898f25f782a67681a03c5a7ab6c2ed58a1', class: "spw-dropdown-container" }, h("slot", { key: 'c3ddaa4ae9f44d5e90cd1e26d93297935910be85' }))));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "spw-dropdown-container"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -69,7 +69,7 @@ export class SpwDropdownItem {
|
|
|
69
69
|
'spw-dropdown-item__toggle': true,
|
|
70
70
|
'spw-dropdown-item__toggle--open': this.subItemsOpen,
|
|
71
71
|
};
|
|
72
|
-
return (h(Host, { key: '
|
|
72
|
+
return (h(Host, { key: '64d51205ea8e220d8d3d22c6163ffae1def82892' }, h(Tag, { key: '5cfb7b0bd5d57228f49efb175bfa01c2b1678c8c', class: this.classes, href: this.href, "aria-disabled": this.disabled ? 'true' : undefined, onClick: this.handleItemClick }, this.icon && (h("div", { key: 'b397503e12d41f4b3f339d73aa014942ee94b70e', class: "spw-dropdown-item__icon" }, h("spw-icon", { key: '0545ea4d6f163007279e315bbb0fd80c6f5e22a2', variant: this.iconVariant, icon: this.icon }))), h("div", { key: 'eff42c92481ce24a1807f7eb97ce0df4092b3310', class: "spw-dropdown-item__content" }, h("div", { key: '8735e69e60341295fdb844af88704ce040aa0cd8', class: "spw-dropdown-item__label" }, h("slot", { key: '8f186c331628491298a61ca203e1ef1d9f80825e' })), this.hasSubItems && (h("div", { key: '91c60f4dd34200d5e575a7cec98e6f690c6195ef', class: toggleClasses, onClick: this.handleToggleSubItems }, h("spw-icon", { key: 'c563396ee0b6e27f81be1466f2d9c7b8f03b9c70', icon: "fa-chevron-down" }))))), this.hasSubItems && (h("div", { key: '41325cd7b9755084a80ed15ebb7e505a1d5ca0a0', class: "spw-dropdown-item__sub-items", style: { display: this.subItemsOpen ? 'block' : 'none' } }, h("slot", { key: '927d7b7b3b9206ea64a4b930d3f91d76d49128e1', name: "sub-items" })))));
|
|
73
73
|
}
|
|
74
74
|
static get is() { return "spw-dropdown-item"; }
|
|
75
75
|
static get originalStyleUrls() {
|
|
@@ -154,7 +154,7 @@ export class SpwDropdown {
|
|
|
154
154
|
dropdown.style.visibility = 'visible';
|
|
155
155
|
}
|
|
156
156
|
render() {
|
|
157
|
-
return (h("div", { key: '
|
|
157
|
+
return (h("div", { key: 'f14c3090969b4a5a84e343f6aacfeb0616afd36a', class: "spw-dropdown__trigger", onClick: () => (this.open = !this.open) }, h("slot", { key: '0cfd75ddf8a40ebc2090ca1c5959d27851352d00' })));
|
|
158
158
|
}
|
|
159
159
|
static get is() { return "spw-dropdown"; }
|
|
160
160
|
static get encapsulation() { return "shadow"; }
|
|
@@ -21,7 +21,7 @@ export class SpwFieldLabel {
|
|
|
21
21
|
return !!(this.tooltipText || this.tooltipTitle);
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: 'cb454d092cd78fb71bf1167a4e387ad9fd416d69' }, h("label", { key: '641218aa7a026e9dd5805d51926b88ae94692926', class: "spw-field-label", htmlFor: this.name, onClick: this.handleClick }, h("span", { key: '53de42be7abcc40b2418489bc13bcd449dcb342f', class: "spw-field-label__text" }, this.label), this.hasTooltip && (h("spw-tooltip", { key: 'c1f0fdbb0e3742a3f303846b89078a727d69bc04', tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, maxWidth: this.tooltipMaxWidth, direction: this.tooltipDirection, cursor: this.tooltipCursor }, h("spw-icon", { key: '01b65ea5af7cbf012902ee0b9d50bede9451d0aa', variant: "fa-regular", icon: "fa-circle-info", class: "spw-field-label__icon" }))), this.required && h("span", { key: '5eb8fd2d808a54133da51de5eaa7f7277d08c393', class: "spw-field-label__required" }, "*"))));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "spw-field-label"; }
|
|
27
27
|
static get encapsulation() { return "shadow"; }
|
|
@@ -25,7 +25,7 @@ export class SpwFieldMessage {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: 'c37e4fcd1a62f74a582ea34b5ad35405d1fdfe15' }, h("div", { key: 'dec558441b64aaaba6fd7ce8501be8c674ade97d', class: this.elementClass }, this.showIcon && (h("div", { key: '867ccb3a82414bc19f8f0e59857b879d615f2d69', class: "spw-field-message__icon" }, h("spw-icon", { key: '2fde1c1acdcbe924bf3448355a17433540ff6a59', icon: this.variantIcon }))), h("span", { key: '0c9b68f44ec54d00aa6ee52b007a3c34e721ebdc', class: "spw-field-message__text" }, h("slot", { key: 'f2fb8c461e7b9b81d5b8a96a2fbcdf3373e66aea' })))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "spw-field-message"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -252,10 +252,10 @@ export class SpwFileUpload {
|
|
|
252
252
|
render() {
|
|
253
253
|
const inputTextNoDrop = this.multiple ? this.textChooseFiles : this.textChooseFile;
|
|
254
254
|
const inputTextDrop = this.multiple ? this.textDropFiles : this.textDropFile;
|
|
255
|
-
return (h("div", { key: '
|
|
255
|
+
return (h("div", { key: '095815bbee9c872183a2341238301ac432ce869d', class: this.elementClass, onDragOver: this.handleDragOver.bind(this), onDragLeave: this.handleDragLeave.bind(this), onDrop: this.handleDrop.bind(this) }, h("input", { key: '726cfe005146924eaf46928a526d82e82ddab1c3', 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: 'a6a12a7dc2df2f202897002c1f1feab51557700f', class: "spw-file-upload__hints" }, this.hintsMessages.length > 0 && (h("ul", { key: '1d9643b6214b0d4b312a16f4a91ee063b96de380' }, this.hintsMessages.map((message, index) => (h("li", { key: index }, message)))))), h("div", { key: 'e98776cde22505ae8d1ffe0016ed205544031c9b', 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 => {
|
|
256
256
|
e.preventDefault();
|
|
257
257
|
this.removeFile(index);
|
|
258
|
-
} }, this.textDelete))))))) : (''), this.fileLimitErrors.length > 0 && (h("ul", { key: '
|
|
258
|
+
} }, this.textDelete))))))) : (''), this.fileLimitErrors.length > 0 && (h("ul", { key: '87d3841b82f412458d986ec97a6d6636a1f038d1', 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: '5878e2f09ff3249386fe3d3d68a4ac79b2f05868', 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))))))));
|
|
259
259
|
}
|
|
260
260
|
static get is() { return "spw-file-upload"; }
|
|
261
261
|
static get encapsulation() { return "shadow"; }
|