@spw-ds/spw-stencil-library 1.16.0 → 1.17.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 +52 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/spw-button_2.cjs.entry.js +2 -2
- package/dist/cjs/spw-custom-select.cjs.entry.js +22 -26
- package/dist/cjs/spw-date-picker.cjs.entry.js +17 -1
- package/dist/cjs/spw-drawer.cjs.entry.js +3 -3
- 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_8.cjs.entry.js +22 -14
- package/dist/cjs/spw-file-upload.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/spw-grid.cjs.entry.js +2 -2
- package/dist/cjs/spw-header-lang.cjs.entry.js +1 -1
- package/dist/cjs/spw-header-navigation-dropdown.cjs.entry.js +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 +3 -3
- package/dist/cjs/spw-hero.cjs.entry.js +3 -3
- package/dist/cjs/spw-input-slider.cjs.entry.js +17 -21
- package/dist/cjs/spw-lightbox-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-lightbox.cjs.entry.js +2 -2
- 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 +10 -2
- package/dist/cjs/spw-modal.cjs.entry.js +3 -3
- package/dist/cjs/spw-mosaic-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-mosaic.cjs.entry.js +8 -2
- package/dist/cjs/spw-pagination.cjs.entry.js +6 -6
- package/dist/cjs/spw-radio.cjs.entry.js +1 -1
- package/dist/cjs/spw-scrolltop.cjs.entry.js +1 -1
- package/dist/cjs/spw-search-field.cjs.entry.js +62 -10
- package/dist/cjs/spw-select.cjs.entry.js +16 -20
- package/dist/cjs/spw-sidebar-navigation-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidebar-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/spw-sidebar-navigation-separator.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/spw-sidenav-group.cjs.entry.js +2 -2
- package/dist/cjs/spw-sidenav-item.cjs.entry.js +18 -4
- package/dist/cjs/spw-sidenav.cjs.entry.js +111 -2
- package/dist/cjs/spw-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/spw-slider-item.cjs.entry.js +1 -1
- package/dist/cjs/spw-slider.cjs.entry.js +1 -1
- package/dist/cjs/spw-socials.cjs.entry.js +1 -1
- package/dist/cjs/spw-stencil-library.cjs.js +1 -1
- package/dist/cjs/spw-table-body.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-container.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-head.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-header.cjs.entry.js +2 -2
- package/dist/cjs/spw-table-row.cjs.entry.js +1 -1
- package/dist/cjs/spw-table-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/spw-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 +17 -20
- package/dist/cjs/spw-textarea.cjs.entry.js +16 -20
- package/dist/cjs/spw-tile-description.cjs.entry.js +1 -1
- package/dist/cjs/spw-tile-title.cjs.entry.js +1 -1
- package/dist/cjs/spw-tile.cjs.entry.js +1 -1
- package/dist/cjs/spw-timeline-item.cjs.entry.js +2 -2
- package/dist/cjs/spw-timeline.cjs.entry.js +2 -2
- package/dist/cjs/spw-toc.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/components/spw-button/spw-button.css +47 -65
- package/dist/collection/components/spw-custom-select/spw-custom-select.css +1 -1
- package/dist/collection/components/spw-custom-select/spw-custom-select.js +21 -25
- package/dist/collection/components/spw-date-picker/spw-date-picker.js +17 -1
- package/dist/collection/components/spw-drawer/spw-drawer.js +3 -3
- 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.css +2 -14
- 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.js +2 -2
- package/dist/collection/components/spw-group/spw-group.js +15 -7
- 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.css +13 -6
- package/dist/collection/components/spw-header/spw-header.js +2 -2
- package/dist/collection/components/spw-hero/spw-hero.js +3 -3
- package/dist/collection/components/spw-input-slider/spw-input-slider.js +17 -21
- package/dist/collection/components/spw-lightbox/spw-lightbox-item/spw-lightbox-item.js +1 -1
- package/dist/collection/components/spw-lightbox/spw-lightbox.js +2 -2
- package/dist/collection/components/spw-link/spw-link.js +1 -1
- package/dist/collection/components/spw-list/spw-list-description/spw-list-description.js +1 -1
- package/dist/collection/components/spw-list/spw-list-item/spw-list-item.js +1 -1
- package/dist/collection/components/spw-list/spw-list-title/spw-list-title.js +1 -1
- package/dist/collection/components/spw-list/spw-list.js +1 -1
- package/dist/collection/components/spw-loading/spw-loading.js +1 -1
- package/dist/collection/components/spw-message/spw-message.css +59 -2
- package/dist/collection/components/spw-message/spw-message.js +11 -2
- 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 +8 -2
- package/dist/collection/components/spw-pagination/spw-pagination.js +6 -6
- package/dist/collection/components/spw-radio/spw-radio.js +1 -1
- package/dist/collection/components/spw-scrolltop/spw-scrolltop.js +1 -1
- package/dist/collection/components/spw-search-field/spw-search-field.js +62 -10
- package/dist/collection/components/spw-select/spw-select.js +16 -20
- 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-sidenav/spw-sidenav-group/spw-sidenav-group.js +2 -2
- package/dist/collection/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.css +55 -0
- package/dist/collection/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.js +40 -4
- package/dist/collection/components/spw-sidenav/spw-sidenav.css +33 -0
- package/dist/collection/components/spw-sidenav/spw-sidenav.js +152 -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 +1 -1
- package/dist/collection/components/spw-socials/spw-socials.js +1 -1
- package/dist/collection/components/spw-table/spw-table-body/spw-table-body.js +1 -1
- package/dist/collection/components/spw-table/spw-table-cell/spw-table-cell.js +1 -1
- package/dist/collection/components/spw-table/spw-table-container/spw-table-container.js +1 -1
- package/dist/collection/components/spw-table/spw-table-footer/spw-table-footer.js +1 -1
- package/dist/collection/components/spw-table/spw-table-head/spw-table-head.js +1 -1
- package/dist/collection/components/spw-table/spw-table-header/spw-table-header.js +2 -2
- package/dist/collection/components/spw-table/spw-table-row/spw-table-row.js +1 -1
- package/dist/collection/components/spw-table/spw-table-sidebar/spw-table-sidebar.js +1 -1
- package/dist/collection/components/spw-tabs/spw-tabs-navigation/spw-tabs-navigation.js +1 -1
- package/dist/collection/components/spw-tabs/spw-tabs-navigation-item/spw-tabs-navigation-item.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 +17 -20
- package/dist/collection/components/spw-textarea/spw-textarea.js +16 -20
- package/dist/collection/components/spw-theme-provider/spw-theme-provider.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile-description/spw-tile-description.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile-title/spw-tile-title.js +1 -1
- package/dist/collection/components/spw-tile/spw-tile.js +1 -1
- package/dist/collection/components/spw-timeline/spw-timeline-item/spw-timeline-item.js +2 -2
- package/dist/collection/components/spw-timeline/spw-timeline.js +2 -2
- package/dist/collection/components/spw-toc/spw-toc.js +1 -1
- package/dist/collection/components/spw-tooltip/spw-tooltip.js +1 -1
- package/dist/collection/components/spw-topbar/spw-topbar.js +1 -1
- package/dist/collection/components/spw-wizard/spw-wizard-item/spw-wizard-item.js +1 -1
- package/dist/collection/components/spw-wizard/spw-wizard.js +1 -1
- package/dist/collection/stories/components/spw-avatar/spw-avatar.stories.js +2 -0
- package/dist/collection/stories/components/spw-block-content/spw-block-content.stories.js +3 -1
- package/dist/collection/stories/components/spw-box/spw-box.stories.js +3 -1
- package/dist/collection/stories/components/spw-breadcrumb/spw-breadcrumb.stories.js +39 -1
- package/dist/collection/stories/components/spw-button/spw-button.stories.js +38 -1
- package/dist/collection/stories/components/spw-checkbox/spw-checkbox.stories.js +3 -1
- package/dist/collection/stories/components/spw-custom-select/spw-custom-select.stories.js +46 -1
- package/dist/collection/stories/components/spw-date-picker/spw-date-picker.stories.js +3 -1
- package/dist/collection/stories/components/spw-dropdown/spw-dropdown.stories.js +46 -1
- package/dist/collection/stories/components/spw-field-message/spw-field-message.stories.js +3 -1
- package/dist/collection/stories/components/spw-file-upload/spw-file-upload.stories.js +40 -1
- package/dist/collection/stories/components/spw-icon/spw-icon.stories.js +2 -0
- package/dist/collection/stories/components/spw-input-slider/spw-input-slider.stories.js +2 -0
- package/dist/collection/stories/components/spw-link/spw-link.stories.js +3 -1
- package/dist/collection/stories/components/spw-loading/spw-loading.stories.js +3 -1
- package/dist/collection/stories/components/spw-pagination/spw-pagination.stories.js +3 -1
- package/dist/collection/stories/components/spw-radio/spw-radio.stories.js +3 -1
- package/dist/collection/stories/components/spw-scrolltop/spw-scrolltop.stories.js +2 -0
- package/dist/collection/stories/components/spw-search-field/spw-search-field.stories.js +47 -2
- package/dist/collection/stories/components/spw-select/spw-select.stories.js +46 -1
- package/dist/collection/stories/components/spw-separator/spw-separator.stories.js +3 -1
- package/dist/collection/stories/components/spw-skeleton/spw-skeleton.stories.js +3 -1
- package/dist/collection/stories/components/spw-tag/spw-tag.stories.js +3 -1
- package/dist/collection/stories/components/spw-text-field/spw-text-field.stories.js +3 -1
- package/dist/collection/stories/components/spw-textarea/spw-textarea.stories.js +3 -1
- package/dist/collection/stories/components/spw-toast/spw-toast.stories.js +3 -1
- package/dist/collection/stories/components/spw-tooltip/spw-tooltip.stories.js +3 -1
- package/dist/collection/stories/organisms/spw-accordion/spw-accordion.stories.js +39 -1
- package/dist/collection/stories/organisms/spw-card/spw-card.stories.js +39 -1
- package/dist/collection/stories/organisms/spw-drawer/spw-drawer.stories.js +2 -0
- package/dist/collection/stories/organisms/spw-footer/spw-footer.stories.js +39 -1
- package/dist/collection/stories/organisms/spw-grid/spw-grid.stories.js +38 -0
- package/dist/collection/stories/organisms/spw-group/spw-group.stories.js +3 -1
- package/dist/collection/stories/organisms/spw-header/spw-header.stories.js +39 -1
- package/dist/collection/stories/organisms/spw-hero/spw-hero.stories.js +39 -1
- package/dist/collection/stories/organisms/spw-lightbox/spw-lightbox.stories.js +2 -0
- package/dist/collection/stories/organisms/spw-list/spw-list.stories.js +3 -1
- package/dist/collection/stories/organisms/spw-message/spw-message.stories.js +78 -1
- package/dist/collection/stories/organisms/spw-modal/spw-modal.stories.js +33 -1
- package/dist/collection/stories/organisms/spw-mosaic/spw-mosaic.stories.js +39 -1
- package/dist/collection/stories/organisms/spw-sidebar/spw-sidebar.stories.js +39 -1
- package/dist/collection/stories/organisms/spw-sidenav/spw-sidenav.stories.js +215 -0
- package/dist/collection/stories/organisms/spw-slider/spw-slider.stories.js +73 -1
- package/dist/collection/stories/organisms/spw-table/spw-table.stories.js +3 -1
- package/dist/collection/stories/organisms/spw-tabs/spw-tabs.stories.js +39 -1
- package/dist/collection/stories/organisms/spw-tile/spw-tile.stories.js +105 -1
- package/dist/collection/stories/organisms/spw-timeline/spw-timeline.stories.js +2 -0
- package/dist/collection/stories/organisms/spw-toc/spw-toc.stories.js +38 -0
- package/dist/collection/stories/organisms/spw-topbar/spw-topbar.stories.js +2 -0
- package/dist/collection/stories/organisms/spw-wizard/spw-wizard.stories.js +123 -1
- package/dist/components/p-BBsDk5QJ.js +1 -0
- package/dist/components/{p-CnzSr9Im.js → p-BrCHGcGN.js} +1 -1
- package/dist/components/{p-DlhwYK4n.js → p-CLldNY-_.js} +1 -1
- package/dist/components/{p-aWQ1v8BH.js → p-CdTWu15K.js} +1 -1
- package/dist/components/{p-C82UsmH4.js → p-DZoh_5b5.js} +1 -1
- package/dist/components/{p-DAfHVLjA.js → p-Fqknc29G.js} +1 -1
- package/dist/components/p-R4SpR2mV.js +1 -0
- package/dist/components/{p-DXd3uPkn.js → p-nC0sTTf4.js} +1 -1
- package/dist/components/{p-BY3XOPGU.js → p-xTIxnTQQ.js} +1 -1
- package/dist/components/spw-breadcrumb-item.js +1 -1
- package/dist/components/spw-button.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-drawer.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-input-slider.js +1 -1
- package/dist/components/spw-lightbox-item.js +1 -1
- package/dist/components/spw-lightbox.js +1 -1
- package/dist/components/spw-link.js +1 -1
- package/dist/components/spw-list-description.js +1 -1
- package/dist/components/spw-list-item.js +1 -1
- package/dist/components/spw-list-title.js +1 -1
- package/dist/components/spw-list.js +1 -1
- package/dist/components/spw-loading.js +1 -1
- package/dist/components/spw-message.js +1 -1
- package/dist/components/spw-modal.js +1 -1
- package/dist/components/spw-mosaic-item.js +1 -1
- package/dist/components/spw-mosaic.js +3 -3
- 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-sidenav-group.js +1 -1
- package/dist/components/spw-sidenav-item.js +1 -1
- package/dist/components/spw-sidenav.js +1 -1
- package/dist/components/spw-skeleton.js +1 -1
- package/dist/components/spw-slider-item.js +1 -1
- package/dist/components/spw-slider.js +1 -1
- package/dist/components/spw-socials.js +1 -1
- package/dist/components/spw-table-body.js +1 -1
- package/dist/components/spw-table-cell.js +1 -1
- package/dist/components/spw-table-container.js +1 -1
- package/dist/components/spw-table-footer.js +1 -1
- package/dist/components/spw-table-head.js +1 -1
- package/dist/components/spw-table-header.js +1 -1
- package/dist/components/spw-table-row.js +1 -1
- package/dist/components/spw-table-sidebar.js +1 -1
- package/dist/components/spw-tabs-navigation-item.js +1 -1
- package/dist/components/spw-tabs-navigation.js +1 -1
- package/dist/components/spw-tabs.js +1 -1
- package/dist/components/spw-tag.js +1 -1
- package/dist/components/spw-text-field.js +1 -1
- package/dist/components/spw-textarea.js +1 -1
- package/dist/components/spw-theme-provider.js +1 -1
- package/dist/components/spw-tile-description.js +1 -1
- package/dist/components/spw-tile-title.js +1 -1
- package/dist/components/spw-tile.js +1 -1
- package/dist/components/spw-timeline-item.js +1 -1
- package/dist/components/spw-timeline.js +1 -1
- package/dist/components/spw-toc.js +1 -1
- package/dist/components/spw-tooltip.js +1 -1
- package/dist/components/spw-topbar.js +1 -1
- package/dist/components/spw-wizard-item.js +1 -1
- package/dist/components/spw-wizard.js +1 -1
- package/dist/components_json.json +92 -12
- package/dist/esm/loader.js +1 -1
- package/dist/esm/spw-button_2.entry.js +2 -2
- package/dist/esm/spw-custom-select.entry.js +22 -26
- package/dist/esm/spw-date-picker.entry.js +17 -1
- package/dist/esm/spw-drawer.entry.js +3 -3
- 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_8.entry.js +22 -14
- package/dist/esm/spw-file-upload.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/spw-grid.entry.js +2 -2
- package/dist/esm/spw-header-lang.entry.js +1 -1
- package/dist/esm/spw-header-navigation-dropdown.entry.js +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 +3 -3
- package/dist/esm/spw-hero.entry.js +3 -3
- package/dist/esm/spw-input-slider.entry.js +17 -21
- package/dist/esm/spw-lightbox-item.entry.js +1 -1
- package/dist/esm/spw-lightbox.entry.js +2 -2
- 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 +10 -2
- package/dist/esm/spw-modal.entry.js +3 -3
- package/dist/esm/spw-mosaic-item.entry.js +1 -1
- package/dist/esm/spw-mosaic.entry.js +8 -2
- package/dist/esm/spw-pagination.entry.js +6 -6
- package/dist/esm/spw-radio.entry.js +1 -1
- package/dist/esm/spw-scrolltop.entry.js +1 -1
- package/dist/esm/spw-search-field.entry.js +62 -10
- package/dist/esm/spw-select.entry.js +16 -20
- package/dist/esm/spw-sidebar-navigation-dropdown.entry.js +1 -1
- package/dist/esm/spw-sidebar-navigation-item.entry.js +3 -3
- package/dist/esm/spw-sidebar-navigation-separator.entry.js +1 -1
- package/dist/esm/spw-sidebar.entry.js +1 -1
- package/dist/esm/spw-sidenav-group.entry.js +2 -2
- package/dist/esm/spw-sidenav-item.entry.js +18 -4
- package/dist/esm/spw-sidenav.entry.js +111 -2
- package/dist/esm/spw-skeleton.entry.js +1 -1
- package/dist/esm/spw-slider-item.entry.js +1 -1
- package/dist/esm/spw-slider.entry.js +1 -1
- package/dist/esm/spw-socials.entry.js +1 -1
- package/dist/esm/spw-stencil-library.js +1 -1
- package/dist/esm/spw-table-body.entry.js +1 -1
- package/dist/esm/spw-table-cell.entry.js +1 -1
- package/dist/esm/spw-table-container.entry.js +1 -1
- package/dist/esm/spw-table-footer.entry.js +1 -1
- package/dist/esm/spw-table-head.entry.js +1 -1
- package/dist/esm/spw-table-header.entry.js +2 -2
- package/dist/esm/spw-table-row.entry.js +1 -1
- package/dist/esm/spw-table-sidebar.entry.js +1 -1
- package/dist/esm/spw-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 +17 -20
- package/dist/esm/spw-textarea.entry.js +16 -20
- package/dist/esm/spw-tile-description.entry.js +1 -1
- package/dist/esm/spw-tile-title.entry.js +1 -1
- package/dist/esm/spw-tile.entry.js +1 -1
- package/dist/esm/spw-timeline-item.entry.js +2 -2
- package/dist/esm/spw-timeline.entry.js +2 -2
- package/dist/esm/spw-toc.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-005e895a.entry.js +1 -0
- package/dist/spw-stencil-library/{p-57d57d31.entry.js → p-06356658.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-8010145c.entry.js → p-08de3542.entry.js} +1 -1
- package/dist/spw-stencil-library/p-09818d2e.entry.js +1 -0
- package/dist/spw-stencil-library/{p-bcc0bc5b.entry.js → p-0cd5c984.entry.js} +1 -1
- package/dist/spw-stencil-library/p-0edf6e69.entry.js +1 -0
- package/dist/spw-stencil-library/{p-e82e97da.entry.js → p-11f9450a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3a44068e.entry.js → p-13426e40.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e172632c.entry.js → p-1603d35d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-6be62066.entry.js → p-176c735c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-082f93eb.entry.js → p-244c42e1.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e2fbc5ff.entry.js → p-2b6b85a3.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ae18c590.entry.js → p-2c430e60.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-995bf47d.entry.js → p-2f45d1f5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-10bf5c42.entry.js → p-36484429.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ca3263fb.entry.js → p-36d80c8f.entry.js} +1 -1
- package/dist/spw-stencil-library/p-375581fd.entry.js +1 -0
- package/dist/spw-stencil-library/{p-b08eb675.entry.js → p-3d6fe416.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1e940c23.entry.js → p-44a07af3.entry.js} +1 -1
- package/dist/spw-stencil-library/p-48078447.entry.js +1 -0
- package/dist/spw-stencil-library/{p-fbc26e62.entry.js → p-4c16d701.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1ba59470.entry.js → p-4c636296.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-723229e0.entry.js → p-4da69501.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-5ca2790b.entry.js → p-529e0d0d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-426be39b.entry.js → p-568f2002.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-24cc1b85.entry.js → p-59cb1719.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1001e077.entry.js → p-5a08eb26.entry.js} +1 -1
- package/dist/spw-stencil-library/p-5a0c0b53.entry.js +1 -0
- package/dist/spw-stencil-library/{p-41568f68.entry.js → p-6500046a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e6beeeae.entry.js → p-6b0338cb.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-fd339689.entry.js → p-6b53d52d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f0e49272.entry.js → p-6d105331.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-571107dc.entry.js → p-6e57e12a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-f8c9e28a.entry.js → p-6f244a33.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-af8ccb80.entry.js → p-758ab426.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-42dce53f.entry.js → p-7e7cd509.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-3e8e6a41.entry.js → p-7e884c21.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a20d2a78.entry.js → p-7ed866cf.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-11ee7e7a.entry.js → p-82c5e2e2.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-bd0b3958.entry.js → p-85cd97f4.entry.js} +1 -1
- package/dist/spw-stencil-library/p-86f8bae3.entry.js +1 -0
- package/dist/spw-stencil-library/{p-4f65655d.entry.js → p-8d4885ff.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-69f36918.entry.js → p-9193e70b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-fdd83154.entry.js → p-93788d96.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-cb4b31a7.entry.js → p-94f78e4c.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-a94801a1.entry.js → p-962ec86a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-45be9fce.entry.js → p-9987b6a0.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-fe5f81cc.entry.js → p-9bb373cf.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e592738a.entry.js → p-9d93af2b.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-0f5debdb.entry.js → p-a2f8133e.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-53dfe461.entry.js → p-a418baf5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-49e53cd8.entry.js → p-a86fc0a7.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-7996c7c8.entry.js → p-ab100252.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-1fca6b4f.entry.js → p-aeb28e9a.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-afa2f53d.entry.js → p-b17a13d5.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c2d6da7e.entry.js → p-b494a271.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ec7f05ae.entry.js → p-b5ba7206.entry.js} +1 -1
- package/dist/spw-stencil-library/p-b966fc21.entry.js +1 -0
- package/dist/spw-stencil-library/{p-79081772.entry.js → p-b9cf4fcb.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-ca25cbef.entry.js → p-d5157e05.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-e6f4a095.entry.js → p-d6e88176.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-95f41c17.entry.js → p-d92bd82f.entry.js} +4 -4
- package/dist/spw-stencil-library/{p-fdcc3c5d.entry.js → p-ddd9acdc.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-7233f2b1.entry.js → p-e4f1665f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-51d1b03f.entry.js → p-e7c69e88.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-4d45c143.entry.js → p-e849e965.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-c06529c8.entry.js → p-ecbdf71f.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-b868a3da.entry.js → p-f0f0bd9d.entry.js} +1 -1
- package/dist/spw-stencil-library/{p-d6587b45.entry.js → p-f35c966d.entry.js} +1 -1
- package/dist/spw-stencil-library/p-f38709c1.entry.js +1 -0
- package/dist/spw-stencil-library/{p-723b695b.entry.js → p-f932224f.entry.js} +1 -1
- package/dist/spw-stencil-library/p-fade4100.entry.js +1 -0
- package/dist/spw-stencil-library/{p-915cbfd3.entry.js → p-fbc3d842.entry.js} +1 -1
- package/dist/spw-stencil-library/p-fc9acdf2.entry.js +1 -0
- package/dist/spw-stencil-library/spw-stencil-library.esm.js +1 -1
- package/dist/stats.json +573 -393
- package/dist/types/components/spw-custom-select/spw-custom-select.d.ts +1 -4
- package/dist/types/components/spw-date-picker/spw-date-picker.d.ts +1 -0
- package/dist/types/components/spw-input-slider/spw-input-slider.d.ts +1 -4
- package/dist/types/components/spw-message/spw-message.d.ts +3 -0
- package/dist/types/components/spw-search-field/spw-search-field.d.ts +1 -0
- package/dist/types/components/spw-select/spw-select.d.ts +1 -4
- package/dist/types/components/spw-sidenav/spw-sidenav-item/spw-sidenav-item.d.ts +3 -0
- package/dist/types/components/spw-sidenav/spw-sidenav.d.ts +22 -0
- package/dist/types/components/spw-text-field/spw-text-field.d.ts +1 -4
- package/dist/types/components/spw-textarea/spw-textarea.d.ts +1 -4
- package/dist/types/components.d.ts +18 -1
- package/dist/types/stories/organisms/spw-message/spw-message.stories.d.ts +2 -1
- package/dist/types/stories/organisms/spw-sidenav/spw-sidenav.stories.d.ts +4 -0
- package/dist/types/stories/organisms/spw-tile/spw-tile.stories.d.ts +2 -0
- package/hydrate/index.js +431 -230
- package/hydrate/index.mjs +431 -230
- package/package.json +1 -1
- package/dist/components/p-B2P8l7B3.js +0 -1
- package/dist/components/p-B43Zutdz.js +0 -1
- package/dist/components_vscode.json +0 -5455
- package/dist/spw-stencil-library/p-1d319daa.entry.js +0 -1
- package/dist/spw-stencil-library/p-20ed6c87.entry.js +0 -1
- package/dist/spw-stencil-library/p-56511a1a.entry.js +0 -1
- package/dist/spw-stencil-library/p-68787bbe.entry.js +0 -1
- package/dist/spw-stencil-library/p-83e6a17b.entry.js +0 -1
- package/dist/spw-stencil-library/p-8aa81b70.entry.js +0 -1
- package/dist/spw-stencil-library/p-936fc4c0.entry.js +0 -1
- package/dist/spw-stencil-library/p-d321091b.entry.js +0 -1
- package/dist/spw-stencil-library/p-de10edb8.entry.js +0 -1
- package/dist/spw-stencil-library/p-de47fd8e.entry.js +0 -1
- package/dist/spw-stencil-library/p-f420e077.entry.js +0 -1
|
@@ -19,7 +19,7 @@ export class SpwLoading {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '76cf34de4fcf09b6fb52453822e34a6e26d6d070' }, h("div", { key: '2ce941734d29fc333e15b1a4fee1bf535a3aed4a', class: this.loadingClasses }, h("div", { key: '6fa9fef281da025e26864903e4867f96e507fe0b', class: "spw-loading__spinner" }), this.text && h("p", { key: '4cee47a4936be359ffbe432d1addcb953ae1c5b4', class: "spw-loading__text" }, this.text))));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "spw-loading"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -454,12 +454,69 @@ template {
|
|
|
454
454
|
.spw-message--compact {
|
|
455
455
|
padding: 16px;
|
|
456
456
|
}
|
|
457
|
+
.spw-message--compact .spw-message__title-container {
|
|
458
|
+
display: grid;
|
|
459
|
+
grid-template-columns: auto 1fr;
|
|
460
|
+
grid-template-areas: "close close" "icon title" "right right";
|
|
461
|
+
gap: 0;
|
|
462
|
+
align-items: center;
|
|
463
|
+
}
|
|
464
|
+
@media (min-width: 1024px) {
|
|
465
|
+
.spw-message--compact .spw-message__title-container {
|
|
466
|
+
display: flex;
|
|
467
|
+
flex-direction: row;
|
|
468
|
+
flex-wrap: nowrap;
|
|
469
|
+
align-items: center;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
.spw-message--compact .spw-message__icon {
|
|
473
|
+
grid-area: icon;
|
|
474
|
+
display: inline-flex;
|
|
475
|
+
align-items: center;
|
|
476
|
+
justify-content: center;
|
|
477
|
+
flex-shrink: 0;
|
|
478
|
+
font-size: 18px;
|
|
479
|
+
margin-right: 8px;
|
|
480
|
+
}
|
|
457
481
|
.spw-message--compact .spw-message__title {
|
|
482
|
+
grid-area: title;
|
|
458
483
|
font-size: 16px;
|
|
459
484
|
display: inline;
|
|
485
|
+
min-width: 0;
|
|
486
|
+
}
|
|
487
|
+
@media (min-width: 1024px) {
|
|
488
|
+
.spw-message--compact .spw-message__title {
|
|
489
|
+
flex: 1;
|
|
490
|
+
}
|
|
460
491
|
}
|
|
461
|
-
.spw-message--compact .spw-
|
|
462
|
-
|
|
492
|
+
.spw-message--compact .spw-message__right {
|
|
493
|
+
grid-area: right;
|
|
494
|
+
display: inline-flex;
|
|
495
|
+
align-items: center;
|
|
496
|
+
flex-shrink: 0;
|
|
497
|
+
margin-top: 12px;
|
|
498
|
+
}
|
|
499
|
+
@media (min-width: 1024px) {
|
|
500
|
+
.spw-message--compact .spw-message__right {
|
|
501
|
+
margin-top: 0;
|
|
502
|
+
margin-left: auto;
|
|
503
|
+
padding-left: 24px;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
.spw-message--compact .spw-message__right--empty {
|
|
507
|
+
display: none;
|
|
508
|
+
}
|
|
509
|
+
.spw-message--compact .spw-message__close {
|
|
510
|
+
grid-area: close;
|
|
511
|
+
justify-self: start;
|
|
512
|
+
margin-bottom: 12px;
|
|
513
|
+
}
|
|
514
|
+
@media (min-width: 1024px) {
|
|
515
|
+
.spw-message--compact .spw-message__close {
|
|
516
|
+
justify-self: auto;
|
|
517
|
+
margin-bottom: 0;
|
|
518
|
+
margin-left: 24px;
|
|
519
|
+
}
|
|
463
520
|
}
|
|
464
521
|
.spw-message--default {
|
|
465
522
|
background: var(--spw-message-default-background-color);
|
|
@@ -14,6 +14,7 @@ export class SpwMessage {
|
|
|
14
14
|
this.size = 'default';
|
|
15
15
|
this.isVisible = true;
|
|
16
16
|
this.hasSlotContent = false;
|
|
17
|
+
this.hasRightSlotContent = false;
|
|
17
18
|
this.handleKeyDown = (ev) => {
|
|
18
19
|
if (ev.key === 'Enter') {
|
|
19
20
|
ev.preventDefault();
|
|
@@ -30,6 +31,12 @@ export class SpwMessage {
|
|
|
30
31
|
this.hasSlotContent = assignedNodes.some(node => { var _a; return node.nodeType === Node.ELEMENT_NODE || (node.nodeType === Node.TEXT_NODE && ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim()) !== ''); });
|
|
31
32
|
}
|
|
32
33
|
};
|
|
34
|
+
this.handleRightSlotChange = () => {
|
|
35
|
+
if (this.rightSlotElement) {
|
|
36
|
+
const assignedNodes = this.rightSlotElement.assignedNodes({ flatten: true });
|
|
37
|
+
this.hasRightSlotContent = assignedNodes.some(node => { var _a; return node.nodeType === Node.ELEMENT_NODE || (node.nodeType === Node.TEXT_NODE && ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim()) !== ''); });
|
|
38
|
+
}
|
|
39
|
+
};
|
|
33
40
|
}
|
|
34
41
|
/**
|
|
35
42
|
* Affiche le message
|
|
@@ -46,7 +53,8 @@ export class SpwMessage {
|
|
|
46
53
|
render() {
|
|
47
54
|
const iconToDisplay = this.icon || getIcon(this.variant);
|
|
48
55
|
const isCompact = this.size === 'compact';
|
|
49
|
-
|
|
56
|
+
const showRightSlot = isCompact && !this.isDismissable;
|
|
57
|
+
return this.isVisible ? (h(Host, null, h("div", { class: getElementClass(this.variant, this.size), role: "alert", "aria-live": "polite", "aria-label": this.messageTitle }, h("div", { class: "spw-message__title-container" }, isCompact && (h("span", { class: "spw-message__icon", "aria-hidden": "true" }, h("spw-icon", { icon: iconToDisplay }))), h("strong", { class: "spw-message__title" }, !isCompact && h("spw-icon", { icon: iconToDisplay }), !isCompact && ' ', this.messageTitle, isCompact && this.hasSlotContent && h("span", { class: "spw-message__separator" }, "\u00A0:\u00A0"), isCompact && (h("span", { class: "spw-message__inline-content" }, h("slot", { ref: el => (this.slotElement = el), onSlotchange: this.handleSlotChange })))), showRightSlot && (h("span", { class: { 'spw-message__right': true, 'spw-message__right--empty': !this.hasRightSlotContent } }, h("slot", { name: "right", ref: el => (this.rightSlotElement = el), onSlotchange: this.handleRightSlotChange }))), this.isDismissable && (h("spw-link", { tabindex: "0", icon: "fa-close", class: "spw-message__close", "aria-label": this.dismissableText, onClick: this.handleDismiss, onKeyDown: this.handleKeyDown }, this.dismissableText))), !isCompact && (h("div", { class: "spw-message__text" }, h("slot", { ref: el => (this.slotElement = el), onSlotchange: this.handleSlotChange })))))) : null;
|
|
50
58
|
}
|
|
51
59
|
static get is() { return "spw-message"; }
|
|
52
60
|
static get encapsulation() { return "shadow"; }
|
|
@@ -205,7 +213,8 @@ export class SpwMessage {
|
|
|
205
213
|
static get states() {
|
|
206
214
|
return {
|
|
207
215
|
"isVisible": {},
|
|
208
|
-
"hasSlotContent": {}
|
|
216
|
+
"hasSlotContent": {},
|
|
217
|
+
"hasRightSlotContent": {}
|
|
209
218
|
};
|
|
210
219
|
}
|
|
211
220
|
static get events() {
|
|
@@ -172,13 +172,13 @@ export class SpwModal {
|
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
174
|
render() {
|
|
175
|
-
return (h(Host, { key: '
|
|
175
|
+
return (h(Host, { key: 'bd4e9c04cab8653097ef97673d8f49ab140dc5b3' }, h("div", { key: '8b1ba84f62fdd79b612469ce78fd0e906b90c176', ref: el => (this.modalContainer = el), class: this.elementClass }, h("div", { key: 'c6dccc2e6570d0f90d37c4600dedd472d5f1b562', class: "spw-modal__overlay", onClick: () => this.handleOverlayClick() }), h("div", { key: 'f34b4c137ac80b0f38c2098b73b9654776e1a4b8', class: `spw-modal__content-container spw-modal__content-container--${this.size}`, role: "dialog", "aria-modal": "true", "aria-label": this.caption }, h("div", { key: '1659d22b2619a68b3e9d7dad8c7095def8daf19e', class: "spw-modal__content", ref: el => (this.modalContent = el), onScroll: this.handleContentScroll }, h("div", { key: 'e09893f9b8f44d0f68c18fbd8be0e18119d3eee1', class: "spw-modal__header" }, h("div", { key: '8981dbdb894c101e203bc22c2a416e5a48282f86', class: "spw-modal__title-container" }, this.alertIcon && h("spw-icon", { key: 'e5cff7df714f3f869eb1015ea36aab3fefe47156', class: "spw-modal__alert-icon", icon: this.alertIcon }), h("h2", { key: '06268e7c2fce950b1931254a5ed91347f75b6631', class: "spw-modal__caption" }, this.caption)), this.showCloseButton && (h("div", { key: '6cfdb4469167b6935efd7485aec8f2b233feb9d9', class: {
|
|
176
176
|
'spw-modal__close-button': true,
|
|
177
177
|
'spw-modal__close-button--sticky': this.isCloseButtonSticky,
|
|
178
|
-
}, ref: el => (this.closeButton = el), onClick: () => this.doBeforeClose('CLOSE_BUTTON') }, h("spw-link", { key: '
|
|
178
|
+
}, ref: el => (this.closeButton = el), onClick: () => this.doBeforeClose('CLOSE_BUTTON') }, h("spw-link", { key: '6bfe34c67838503f5a71b442df52a559ee44ca47', "icon-position": "right", icon: "fa-xmark" }, this.closeButtonText)))), h("div", { key: '328c29868ebf538b1a6a58c051337f931ef2d29a', class: "spw-modal__body" }, h("slot", { key: '129a87bf3cc1382a5b8f53861dee4f8027486dfd', name: "content" })), h("div", { key: '523facf0e734e25d5db4c13e9bc1b31721ddfe4b', class: { 'spw-modal__buttons': true, 'spw-modal__footer--buttons-present': this.slotButtonsPresent } }, h("slot", { key: '28eacf80be5cbdc6da0de18e6b55b10e368c57a3', name: "buttons", onSlotchange: (e) => {
|
|
179
179
|
const slot = e.target;
|
|
180
180
|
this.slotButtonsPresent = slot.assignedNodes({ flatten: true }).length > 0;
|
|
181
|
-
} })))), h("div", { key: '
|
|
181
|
+
} })))), h("div", { key: 'bd56f5598bcfa3c3995ebdf7dec6a2426cf6e4ed', "data-focus-trap-edge": true, onFocus: this.handleBottomFocus, tabindex: "0" }))));
|
|
182
182
|
}
|
|
183
183
|
static get is() { return "spw-modal"; }
|
|
184
184
|
static get encapsulation() { return "shadow"; }
|
|
@@ -45,7 +45,7 @@ export class SpwMosaicItem {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: 'f70536eb02cd74dc63e6fd57c8514c421eb24e54' }, h("slot", { key: '3ad328b69e8d2080e31af75600e533cc25da19c8' })));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "spw-mosaic-item"; }
|
|
51
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -85,7 +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
|
-
const baseItem = Array.from(masonryItems).find(item =>
|
|
88
|
+
const baseItem = Array.from(masonryItems).find(item => {
|
|
89
|
+
const hasNoSpan = !item.hasAttribute('col-span-desktop') && !item.hasAttribute('col-span-tablet') && !item.hasAttribute('col-span-mobile');
|
|
90
|
+
const hasSpanOne = (!item.hasAttribute('col-span-desktop') || item.getAttribute('col-span-desktop') === '1') &&
|
|
91
|
+
(!item.hasAttribute('col-span-tablet') || item.getAttribute('col-span-tablet') === '1') &&
|
|
92
|
+
(!item.hasAttribute('col-span-mobile') || item.getAttribute('col-span-mobile') === '1');
|
|
93
|
+
return hasNoSpan || hasSpanOne;
|
|
94
|
+
});
|
|
89
95
|
let columnWidth;
|
|
90
96
|
if (baseItem) {
|
|
91
97
|
columnWidth = baseItem;
|
|
@@ -156,7 +162,7 @@ export class SpwMosaic {
|
|
|
156
162
|
};
|
|
157
163
|
}
|
|
158
164
|
render() {
|
|
159
|
-
return (h(Host, { key: '
|
|
165
|
+
return (h(Host, { key: '2f089897601479ee6a6de26c457460a08d0ba884' }, h("div", { key: '32c337b7772c450732445c47dc37331ba7ef697d', class: this.elementClass }, h("slot", { key: '8cc1dc94be28dd59ee942676800e827754d5c0dc' }))));
|
|
160
166
|
}
|
|
161
167
|
static get is() { return "spw-mosaic"; }
|
|
162
168
|
static get encapsulation() { return "shadow"; }
|
|
@@ -167,12 +167,12 @@ export class SpwPagination {
|
|
|
167
167
|
const pages = this.calculatePageRange();
|
|
168
168
|
const showPrevArrow = this.currentPage > 1;
|
|
169
169
|
const showNextArrow = this.currentPage < this.totalPages;
|
|
170
|
-
const prevArrow = showPrevArrow && (h("li", { key: '
|
|
171
|
-
const nextArrow = showNextArrow && (h("li", { key: '
|
|
172
|
-
const prevArrowMobile = this.currentPage > 1 && (h("li", { key: '
|
|
173
|
-
const nextArrowMobile = this.currentPage < this.totalPages && (h("li", { key: '
|
|
174
|
-
const mobileArrows = (h("ul", { key: '
|
|
175
|
-
return (h(Host, { key: '
|
|
170
|
+
const prevArrow = showPrevArrow && (h("li", { key: 'b84213529792e41d6fdc14af67801d8c709f0f69', class: "spw-pagination__item spw-pagination__item--desktop spw-pagination__item--arrow" }, h("button", { key: 'fdda9c8eed1553ad552b40158d03081d9401069b', onClick: () => this.goToPage(this.currentPage - 1) }, h("spw-icon", { key: '1012c813c379d97f91c859cfd950fa30ea346af2', icon: "fa-chevron-left" }), " ", h("span", { key: '05cc676da38ee9f4cbc9cd97a4ed120af552b342', class: "spw-pagination__item-arrow-text" }, this.previousButtonText))));
|
|
171
|
+
const nextArrow = showNextArrow && (h("li", { key: 'cc16631f997ed1eab3d2beefbde88fd49204f195', class: "spw-pagination__item spw-pagination__item--desktop spw-pagination__item--arrow" }, h("button", { key: '5a6a4e13922c00e9d91eeb08c9ad2b317e1825ca', onClick: () => this.goToPage(this.currentPage + 1) }, h("span", { key: '7e8329d128eed2fe03412701f8179295f1b2aebb', class: "spw-pagination__item-arrow-text" }, this.nextButtonText), " ", h("spw-icon", { key: '8cd4037965d980da28c0577d65fee206072a627b', icon: "fa-chevron-right" }))));
|
|
172
|
+
const prevArrowMobile = this.currentPage > 1 && (h("li", { key: 'dc0832c032680e0a1419b1499dff06c63b92dd60', class: "spw-pagination__item spw-pagination__item--arrow" }, h("button", { key: '3e2917ccc49bc161c4a5d8096832a6a0d0c1bd9a', onClick: () => this.goToPage(this.currentPage - 1) }, h("spw-icon", { key: '49245cf34526ac9706b3f731ffc737adc3643a91', icon: "fa-chevron-left" }), " ", h("span", { key: '769a740d3e05213996f76e09ac74a41e4fd0ef69' }, this.previousButtonText))));
|
|
173
|
+
const nextArrowMobile = this.currentPage < this.totalPages && (h("li", { key: '6e236299858eca24a1074831f5c73aa5ca7321d1', class: "spw-pagination__item spw-pagination__item--arrow" }, h("button", { key: 'e577fb3c98e80f45e92a83f2bf20c9fb7798f648', onClick: () => this.goToPage(this.currentPage + 1), disabled: this.currentPage >= this.totalPages }, h("span", { key: 'a9a0ef10e81024d08cf894d38978ae8048ffeb1e' }, this.nextButtonText), " ", h("spw-icon", { key: '3674d79412476f03ce1745a278dc7e3f0b03578e', icon: "fa-chevron-right" }))));
|
|
174
|
+
const mobileArrows = (h("ul", { key: '1920cff0102f87b927ebd315fb374c716a635e9e', class: "spw-pagination__mobile-arrows" }, prevArrowMobile, nextArrowMobile));
|
|
175
|
+
return (h(Host, { key: 'a362b963708afb6a7d1b3d91d6fcffb55edec974' }, h("div", { key: 'e05338ca78a938d525f7a1a6d3e6a98153cd94fa', class: this.getPaginationClass() }, this.variant === 'input' && (h(Fragment, { key: 'ea815e6de3d12793411b05ce5938c733c1b84136' }, h("ul", { key: '8b7d63d5bbec21cabb12f3ccb8cbe3046409abf2' }, prevArrow, h("li", { key: '55367459a8be4819278530cc31d36cc3eb0d1107', class: "spw-pagination__input" }, h("spw-text-field", { key: '26926e63f93958af0d692bfc2962d66983790683', value: this.inputPageValue, type: "text", name: "pagination-input", onInput: event => this.handleInputChange(event), onKeyDown: event => this.handleKeyDown(event), disabled: this.isDisabled })), h("li", { key: '3f84bcc43732a2d39505b038f6762eed0d9ccfae', class: "spw-pagination__total-pages" }, "sur ", this.totalPages, " ", this.totalPages === 1 ? 'page' : 'pages'), nextArrow), mobileArrows)), this.variant === 'numbers' && (h(Fragment, { key: '2961252972f7f08fc437b4ec8fb797a21e2e936a' }, h("ul", { key: 'ad621520e14899fbff346bd421a20a99aefa0396' }, prevArrow, pages.map(({ page, class: pageClass }) => {
|
|
176
176
|
if (page === '...') {
|
|
177
177
|
return (h("li", { class: `spw-pagination__item spw-pagination__item--dots ${pageClass}` }, h("spw-icon", { icon: "fa-ellipsis" })));
|
|
178
178
|
}
|
|
@@ -91,7 +91,7 @@ export class SpwRadio {
|
|
|
91
91
|
render() {
|
|
92
92
|
const slot = this.el.innerHTML;
|
|
93
93
|
const hasSlot = Boolean(slot);
|
|
94
|
-
return (h("div", { key: '
|
|
94
|
+
return (h("div", { key: '5f29d5ced1f854e54239f9d8c366131cd7a1c723', class: "spw-radio" }, h("input", { key: '4b77a9af19e015c2a02b0e03d46e23eada74498a', type: "radio", ref: el => (this.inputElement = el), checked: this.internalChecked, "aria-checked": this.internalChecked ? 'true' : 'false', onChange: this.handleRadio.bind(this), name: this.name, value: this.value, disabled: this.disabled, style: { display: 'none' } }), hasSlot && (h("label", { key: 'bf61c93c451ab565d9f2105dd975ad6f1ce5a374', class: `spw-radio__label ${this.disabled ? 'spw-radio__label--disabled' : ''}`, onClick: e => this.handleRadio(e) }, h("slot", { key: '181355d4689daafd08f6f2ad9f27cfa57fd25057' }))), h("div", { key: 'd8f1081f2d9daef138c55d086bc80ea4dc52d0af', tabIndex: this.disabled ? -1 : 0, onClick: e => this.handleRadio(e), onKeyDown: this.handleKeydown.bind(this), role: "radio", "aria-checked": this.internalChecked ? 'true' : 'false', "aria-disabled": this.disabled, "aria-label": this.accAriaLabel || this.name, class: this.elementClass }, this.internalChecked && h("span", { key: '15c6c418fb430b17fb467c3068e78c41d6473d93', class: "spw-radio__circle" }))));
|
|
95
95
|
}
|
|
96
96
|
static get is() { return "spw-radio"; }
|
|
97
97
|
static get encapsulation() { return "shadow"; }
|
|
@@ -73,7 +73,7 @@ export class SpwScrolltop {
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: 'cdfe1bec596845b67c1b9c686ad0bcc70e2a032b', class: this.hostClass }, h("spw-button", { key: 'c732207179a6482d6852456d8f5fa0a6b7e7787d', "is-icon-only": true, icon: "fa-chevron-up", variant: "primary", size: "medium", "acc-aria-label": this.accAriaLabel, onClick: this.scrollToTop })));
|
|
77
77
|
}
|
|
78
78
|
static get is() { return "spw-scrolltop"; }
|
|
79
79
|
static get encapsulation() { return "shadow"; }
|
|
@@ -175,8 +175,18 @@ export class SpwSearchField {
|
|
|
175
175
|
this.filteredItems = [];
|
|
176
176
|
return;
|
|
177
177
|
}
|
|
178
|
-
const
|
|
179
|
-
|
|
178
|
+
const terms = this.normalizeString(this.searchText).split(/\s+/).filter(Boolean);
|
|
179
|
+
if (!terms.length) {
|
|
180
|
+
this.filteredItems = this.parsedItems.filter(item => !item.disabled);
|
|
181
|
+
return;
|
|
182
|
+
}
|
|
183
|
+
this.filteredItems = this.parsedItems.filter(item => {
|
|
184
|
+
var _a, _b;
|
|
185
|
+
if (item.disabled)
|
|
186
|
+
return false;
|
|
187
|
+
const haystack = this.normalizeString(`${item.label} ${(_a = item.searchableText) !== null && _a !== void 0 ? _a : ''} ${(_b = item.category) !== null && _b !== void 0 ? _b : ''}`);
|
|
188
|
+
return terms.every(term => haystack.includes(term));
|
|
189
|
+
});
|
|
180
190
|
}
|
|
181
191
|
normalizeString(str) {
|
|
182
192
|
return str
|
|
@@ -243,14 +253,56 @@ export class SpwSearchField {
|
|
|
243
253
|
}
|
|
244
254
|
}
|
|
245
255
|
highlightMatch(item) {
|
|
246
|
-
|
|
247
|
-
const
|
|
248
|
-
|
|
249
|
-
|
|
256
|
+
var _a;
|
|
257
|
+
const terms = this.normalizeString(this.searchText).split(/\s+/).filter(Boolean);
|
|
258
|
+
if (!terms.length)
|
|
259
|
+
return item;
|
|
260
|
+
const normalizedChars = Array.from(item).map(ch => this.normalizeString(ch));
|
|
261
|
+
const normalizedItem = normalizedChars.join('');
|
|
262
|
+
const normalizedToOriginal = [];
|
|
263
|
+
normalizedChars.forEach((n, i) => {
|
|
264
|
+
for (let j = 0; j < n.length; j++)
|
|
265
|
+
normalizedToOriginal.push(i);
|
|
266
|
+
});
|
|
267
|
+
const ranges = [];
|
|
268
|
+
for (const term of terms) {
|
|
269
|
+
if (!term)
|
|
270
|
+
continue;
|
|
271
|
+
let from = 0;
|
|
272
|
+
while (from <= normalizedItem.length - term.length) {
|
|
273
|
+
const idx = normalizedItem.indexOf(term, from);
|
|
274
|
+
if (idx === -1)
|
|
275
|
+
break;
|
|
276
|
+
const startOrig = normalizedToOriginal[idx];
|
|
277
|
+
const endOrig = ((_a = normalizedToOriginal[idx + term.length - 1]) !== null && _a !== void 0 ? _a : item.length - 1) + 1;
|
|
278
|
+
ranges.push([startOrig, endOrig]);
|
|
279
|
+
from = idx + term.length;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
if (!ranges.length)
|
|
250
283
|
return item;
|
|
284
|
+
ranges.sort((a, b) => a[0] - b[0]);
|
|
285
|
+
const merged = [ranges[0]];
|
|
286
|
+
for (let i = 1; i < ranges.length; i++) {
|
|
287
|
+
const last = merged[merged.length - 1];
|
|
288
|
+
if (ranges[i][0] <= last[1]) {
|
|
289
|
+
last[1] = Math.max(last[1], ranges[i][1]);
|
|
290
|
+
}
|
|
291
|
+
else {
|
|
292
|
+
merged.push(ranges[i]);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
const parts = [];
|
|
296
|
+
let cursor = 0;
|
|
297
|
+
for (const [start, end] of merged) {
|
|
298
|
+
if (start > cursor)
|
|
299
|
+
parts.push(item.slice(cursor, start));
|
|
300
|
+
parts.push(h("strong", null, item.slice(start, end)));
|
|
301
|
+
cursor = end;
|
|
251
302
|
}
|
|
252
|
-
|
|
253
|
-
|
|
303
|
+
if (cursor < item.length)
|
|
304
|
+
parts.push(item.slice(cursor));
|
|
305
|
+
return h("span", null, parts);
|
|
254
306
|
}
|
|
255
307
|
get elementClass() {
|
|
256
308
|
return {
|
|
@@ -262,10 +314,10 @@ export class SpwSearchField {
|
|
|
262
314
|
};
|
|
263
315
|
}
|
|
264
316
|
render() {
|
|
265
|
-
return (h("div", { key: '
|
|
317
|
+
return (h("div", { key: 'f116af8760acd3e30009afc64ee7a4ae50b6a484', ref: el => (this.hostElement = el), class: this.elementClass }, this.label && (h("spw-field-label", { key: '9f03ed16fd4cc4b37da0397d717be45a967ab1f5', label: this.label, name: this.name, required: this.required, tooltipTitle: this.tooltipTitle, tooltipText: this.tooltipText, tooltipMaxWidth: this.tooltipMaxWidth, tooltipDirection: this.tooltipDirection, tooltipCursor: this.tooltipCursor, onClick: () => { var _a; return (_a = this.textFieldElement) === null || _a === void 0 ? void 0 : _a.setFocus(); } })), h("div", { key: 'a719b41f82dd87ce011c5b089341b22f81e3e2d0', class: "spw-search-field__container" }, h("spw-text-field", { key: '104bf733e3aa472625ef0f33ba98e55bf8cea02c', ref: el => (this.textFieldElement = el), placeholder: this.placeholder, name: this.name, size: this.size, "is-search": true, "is-clear": true, required: this.required, disabled: this.disabled, assistiveText: this.assistiveText, value: this.searchText, onValueChanged: this.handleValueChanged, onKeyDown: event => this.handleKeyDown(event) }), this.hasSubmitButton && h("button", { key: '0e75f4d042f435b6f551fff620cce28018fd456f', type: "button", class: "spw-search-field__submit", onClick: this.handleSubmit, "aria-label": "Rechercher" })), this.showDropdown && this.isOpen && !!this.items && (h("div", { key: '9c3e059418f401d05ff2bdd91b15e4345e9eb8f2', class: `spw-search-field__options spw-search-field__options--${this.dropdownDirection}` }, !!this.filteredItems.length && (h("ul", { key: '3b1d0269339792aecc8279a460635d3d96a13c8b' }, this.filteredItems.map((item, index) => (h("li", { class: {
|
|
266
318
|
'spw-search-field__option': true,
|
|
267
319
|
'spw-search-field__option--focused': index === this.focusedItemIndex,
|
|
268
|
-
}, onClick: () => this.selectItem(item) }, this.highlightMatch(item.label), " ", item.category && h("span", { class: "spw-search-field__category" }, " - ", item.category)))))), this.isLoading && (h("p", { key: '
|
|
320
|
+
}, onClick: () => this.selectItem(item) }, this.highlightMatch(item.label), " ", item.category && h("span", { class: "spw-search-field__category" }, " - ", item.category)))))), this.isLoading && (h("p", { key: 'c2d1ea927a5f0d5f3dd32ea1f70ea059e3262c6d', class: "spw-search-field__loading" }, h("spw-loading", { key: '8c305c9dabbb1ac73518e12daebde3c3dd7e0829', text: this.loadingText }))), !this.isLoading && !this.filteredItems.length && h("p", { key: '6de0fc35708f70dcd42a2b5921fe9ccc0a2b7fee', class: "spw-search-field__no-results" }, this.noResults), !!this.filteredItems.length && this.viewAllResults && (h("p", { key: '5c27c78406f6920d722bdb8e5ac56e39bf0a92f7', class: "spw-search-field__view-all" }, h("a", { key: '78c853800f4661534f4fedf89ed5be8806d8d320', href: this.viewAllResultsLink, onClick: this.viewAllResultsSubmit ? this.handleSubmit : undefined }, this.viewAllResults, " ", h("spw-icon", { key: '6bc150d034af662ead76f9273f097dd6ee1a5506', icon: "fa-arrow-right" }))))))));
|
|
269
321
|
}
|
|
270
322
|
static get is() { return "spw-search-field"; }
|
|
271
323
|
static get encapsulation() { return "shadow"; }
|
|
@@ -144,25 +144,21 @@ export class SpwSelect {
|
|
|
144
144
|
this.selectElement.value = String(this.internalValue || '');
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
renderWarningMessage() {
|
|
163
|
-
if (this.warning) {
|
|
164
|
-
return (h("spw-field-message", { variant: "warning", showIcon: this.showWarningIcon, isExpandable: this.isExpandable, expandLabel: this.expandLabel, collapseLabel: this.collapseLabel }, this.warning, h("slot", { name: "details", slot: "details" })));
|
|
165
|
-
}
|
|
147
|
+
// isExpandable (details slot) uniquement sur le dernier message affiché
|
|
148
|
+
renderMessages() {
|
|
149
|
+
const messages = [];
|
|
150
|
+
if (this.error)
|
|
151
|
+
messages.push({ variant: 'error', text: this.error, showIcon: this.showErrorIcon });
|
|
152
|
+
if (this.hint)
|
|
153
|
+
messages.push({ variant: 'hint', text: this.hint, showIcon: this.showHintIcon });
|
|
154
|
+
if (this.success)
|
|
155
|
+
messages.push({ variant: 'success', text: this.success, showIcon: this.showSuccessIcon });
|
|
156
|
+
if (this.warning)
|
|
157
|
+
messages.push({ variant: 'warning', text: this.warning, showIcon: this.showWarningIcon });
|
|
158
|
+
return messages.map((m, i) => {
|
|
159
|
+
const isLast = i === messages.length - 1;
|
|
160
|
+
return (h("spw-field-message", { variant: m.variant, showIcon: m.showIcon, isExpandable: isLast && this.isExpandable, expandLabel: this.expandLabel, collapseLabel: this.collapseLabel }, m.text, isLast && h("slot", { name: "details", slot: "details" })));
|
|
161
|
+
});
|
|
166
162
|
}
|
|
167
163
|
handleClear(event) {
|
|
168
164
|
event.stopPropagation();
|
|
@@ -178,7 +174,7 @@ export class SpwSelect {
|
|
|
178
174
|
};
|
|
179
175
|
}
|
|
180
176
|
render() {
|
|
181
|
-
return (h(Host, { key: '
|
|
177
|
+
return (h(Host, { key: '40c21707209a4bf00dbcf6c13a0a6d91930beab7' }, h("div", { key: '3bb2935727a321b562dd97797b86339745edae36', class: this.elementClass }, this.label && (h("spw-field-label", { key: 'a68f1ef45bf5781535f936f86380e04abd6f5854', 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: '279da1ef9160b9a2df3cd52816ae1a38abdaf6a4', class: "spw-select__field-message", variant: "hint", showIcon: false }, this.assistiveText)), h("div", { key: 'da7cb4b526c4478efb82d54fb7cd408964af751f', class: "spw-select__container" }, h("select", { key: 'fc9f07515547219d2a790487cb9e7a576c258dcf', 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: '2ebb2a1e2170ffc03ffa8f82d8acb854555e01ad', value: "", disabled: true, selected: !this.internalValue }, this.placeholder)), h("div", { key: '8dd1b8ad114e727c2fe9391bf2aa3b6a4b0c0727', class: "spw-select__icons" }, this.isClear && !!this.internalValue && (h("span", { key: '80413ad6551378337d34b4de2b9bfff712c22978', class: "spw-select__clear", onClick: event => this.handleClear(event) }, h("spw-icon", { key: 'd3db5433b65d76b5b72c24f5c3177de484f8b151', icon: "fa-xmark" }))), h("spw-icon", { key: '80fe66a40b2d665acfd96b4a4babe5cc50b4b172', class: "spw-select__arrow", icon: "fa-chevron-down" }))), !this.items && h("slot", { key: 'eb98caf68ad419bb2ca1f487fc98f2011de7126e' })), this.renderMessages()));
|
|
182
178
|
}
|
|
183
179
|
static get is() { return "spw-select"; }
|
|
184
180
|
static get encapsulation() { return "shadow"; }
|
|
@@ -27,7 +27,7 @@ export class SpwSeparator {
|
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return h("div", { key: '
|
|
30
|
+
return h("div", { key: 'aac786b768e926f4ed6ece23b4f188c72fc9d627', class: this.elementClass, style: this.style });
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "spw-separator"; }
|
|
33
33
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,7 +11,7 @@ export class SpwSidebarNavigationDropdown {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: 'cfa469e972997f70f8c7dae4051f84521bca8582', class: this.classes }, h("div", { key: '95bc1bbc829a58707c329d2799a9edbea3f57de3', class: "spw-sidebar-navigation-dropdown__content", style: { display: this.open ? 'block' : 'none' } }, h("slot", { key: 'fb7123db2d5d5e61308fd4eb30c03872fea8313c' }))));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "spw-sidebar-navigation-dropdown"; }
|
|
17
17
|
static get originalStyleUrls() {
|
|
@@ -169,14 +169,14 @@ export class SpwSidebarNavigationItem {
|
|
|
169
169
|
}
|
|
170
170
|
render() {
|
|
171
171
|
const Tag = this.href && !this.disabled && !this.openOnClick ? 'a' : 'div';
|
|
172
|
-
const iconContent = h("spw-icon", { key: '
|
|
173
|
-
const iconDiv = (h("div", { key: '
|
|
172
|
+
const iconContent = h("spw-icon", { key: '718a0870923b11abf6e3469ef320c11e3d9096a8', variant: this.iconVariant, icon: this.icon });
|
|
173
|
+
const iconDiv = (h("div", { key: 'aad3ef7f6b183a41a431bd7e7561a15d8c14804c', class: "spw-sidebar-navigation-item__icon" }, this.bubble && h("span", { key: '831ba4f25c13f158b6a9e488c040888e62ec06df', class: "spw-sidebar-navigation-item__bubble" }, this.bubble), iconContent));
|
|
174
174
|
const iconWithBubble = this.tooltipTitle ? (h("spw-tooltip", { cursor: this.disabled ? 'disabled' : 'pointer', "tooltip-title": this.tooltipTitle, direction: "right", visible: !this.navExpanded }, iconDiv)) : (iconDiv);
|
|
175
175
|
const toggleClasses = {
|
|
176
176
|
'spw-sidebar-navigation-item__dropdown-toggle': true,
|
|
177
177
|
'spw-sidebar-navigation-item__dropdown-toggle--open': this.dropdownOpen,
|
|
178
178
|
};
|
|
179
|
-
return (h(Tag, { key: '
|
|
179
|
+
return (h(Tag, { key: '8b8b08a838783c54a7e9945decf90b2811f58927', class: this.classes, href: this.openOnClick ? undefined : this.href, "aria-disabled": this.disabled ? 'true' : undefined, tabIndex: this.disabled ? -1 : 0, onClick: this.openOnClick ? this.handleItemClick : undefined }, this.icon && iconWithBubble, h("div", { key: '856201c2af6bb45dcfc725f7cb5500c2c7a45742', class: "spw-sidebar-navigation-item__content" }, h("div", { key: '08617171900b7aaf541861f2aa8046aee9640cc4', class: "spw-sidebar-navigation-item__content-label" }, h("slot", { key: '911af3daddfbf5829d0a24626b1c5aef6add1067' })), this.hasDropdown && (h("div", { key: 'c7fb65f768428afd9159839e6ac00c7be7ab758a', class: toggleClasses, onClick: this.handleDropdownToggle, tabIndex: this.disabled ? -1 : 0 }, h("spw-icon", { key: '0c010bd669bf238cb0ecbcb5b0332e971e3e3079', icon: "fa-chevron-down" }))), h("slot", { key: 'b81efa2c2af1aeba5dc0e7dc9fcca2c258dcb822', name: "dropdown" }))));
|
|
180
180
|
}
|
|
181
181
|
static get is() { return "spw-sidebar-navigation-item"; }
|
|
182
182
|
static get originalStyleUrls() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class SpwSidebarNavigationSeparator {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: 'c4da27eb51b730aaa325423662b8f22867743039' }, h("spw-separator", { key: 'b2bac3105b3b54dd613886df2b25e798790d3fb9', class: "spw-sidebar-navigation-separator" })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "spw-sidebar-navigation-separator"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -76,7 +76,7 @@ export class SpwSidebar {
|
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: '20426b0c81fa6c37edcab71f954cb51c8c7db302', class: this.hostClass }, h("div", { key: '0382a04d7943f744173474b7b7702c16174c0f63', class: this.elementClass }, h("span", { key: '0f9dc5293bbcffa05132afe1aa3189f022f5b67b', class: "spw-sidebar__toggle", onClick: this.toggleSidebar, "aria-expanded": this.expanded.toString() }, h("spw-icon", { key: '68d6a7684f8a9f027e76803ae714b26bf5e85034', icon: "fa-chevron-right" })), h("div", { key: '21972b383f94f93753d281477ecc67b3ee10603a', class: "spw-sidebar__content" }, h("slot", { key: '3b0b8406d9cbcfdcab6813217d2ac2f5502922bc', name: "navigation-top" }), h("slot", { key: '9ee99f3a7c3a0287eb9a3c95e09391bf557e21e9', name: "navigation-bottom" })), h("div", { key: '738669f5a431726670f2199510067d7ba03a726a', class: "spw-sidebar__resize-border", onClick: this.toggleSidebar }))));
|
|
80
80
|
}
|
|
81
81
|
static get is() { return "spw-sidebar"; }
|
|
82
82
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,10 +5,10 @@ export class SpwSidenavGroup {
|
|
|
5
5
|
this.open = false;
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '53c81df6b37aecb9094322b6ec8232cbad3dff60', class: {
|
|
9
9
|
'spw-sidenav-group': true,
|
|
10
10
|
'spw-sidenav-group--open': this.open,
|
|
11
|
-
} }, h("div", { key: '
|
|
11
|
+
} }, h("div", { key: '8e50ebeec2c1ac59e18618c14aac87ba28923bf1', class: "spw-sidenav-group__content", style: { display: this.open ? 'block' : 'none' } }, h("slot", { key: '67d50cc3b7ec09ef2ca07c0563178e72b424c37a' }))));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "spw-sidenav-group"; }
|
|
14
14
|
static get originalStyleUrls() {
|
|
@@ -465,4 +465,59 @@ spw-sidenav-group .spw-sidenav-item__label {
|
|
|
465
465
|
opacity: 0.4;
|
|
466
466
|
cursor: not-allowed;
|
|
467
467
|
pointer-events: none;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
@media (max-width: 767px) {
|
|
471
|
+
.spw-sidenav-item__chevron spw-icon {
|
|
472
|
+
transform: rotate(-90deg) !important;
|
|
473
|
+
transition: none !important;
|
|
474
|
+
}
|
|
475
|
+
spw-sidenav[data-show-root=true] spw-sidenav-item spw-sidenav-item {
|
|
476
|
+
display: none;
|
|
477
|
+
}
|
|
478
|
+
spw-sidenav[data-show-root=true] spw-sidenav-group .spw-sidenav-group__content {
|
|
479
|
+
display: none !important;
|
|
480
|
+
}
|
|
481
|
+
spw-sidenav:not([data-show-root=true]):not(:has(.spw-sidenav-item--mobile-focused)) spw-sidenav-item:has(> .spw-sidenav-item--active):has(spw-sidenav-item > .spw-sidenav-item--active) > .spw-sidenav-item > .spw-sidenav-item__row {
|
|
482
|
+
display: none;
|
|
483
|
+
}
|
|
484
|
+
spw-sidenav:not([data-show-root=true]):not(:has(.spw-sidenav-item--mobile-focused)):has(.spw-sidenav-item--active) > spw-sidenav-item:not(:has(> .spw-sidenav-item--active)) {
|
|
485
|
+
display: none;
|
|
486
|
+
}
|
|
487
|
+
spw-sidenav:not([data-show-root=true]):not(:has(.spw-sidenav-item--mobile-focused)) spw-sidenav-group:has(> spw-sidenav-item > .spw-sidenav-item--active):has(> spw-sidenav-item spw-sidenav-item > .spw-sidenav-item--active) > spw-sidenav-item:not(:has(> .spw-sidenav-item--active)) {
|
|
488
|
+
display: none;
|
|
489
|
+
}
|
|
490
|
+
spw-sidenav:not([data-show-root=true]):not(:has(.spw-sidenav-item--mobile-focused)) spw-sidenav-item:has(> .spw-sidenav-item--active) > spw-sidenav-group > .spw-sidenav-group__content {
|
|
491
|
+
display: block !important;
|
|
492
|
+
}
|
|
493
|
+
spw-sidenav:not([data-show-root=true]):not(:has(.spw-sidenav-item--mobile-focused)) spw-sidenav-item:has(> .spw-sidenav-item--active):has(spw-sidenav-item > .spw-sidenav-item--active) > .spw-sidenav-item > spw-sidenav-group > .spw-sidenav-group__content {
|
|
494
|
+
padding-left: 0;
|
|
495
|
+
}
|
|
496
|
+
spw-sidenav:not([data-show-root=true]):not(:has(.spw-sidenav-item--mobile-focused)) spw-sidenav-item:has(> .spw-sidenav-item--active):has(spw-sidenav-item > .spw-sidenav-item--active) > .spw-sidenav-item > spw-sidenav-group > .spw-sidenav-group__content::before {
|
|
497
|
+
display: none;
|
|
498
|
+
}
|
|
499
|
+
spw-sidenav:not([data-show-root=true]):has(.spw-sidenav-item--mobile-focused) spw-sidenav-item:not(:has(.spw-sidenav-item--mobile-focused)) {
|
|
500
|
+
display: none;
|
|
501
|
+
}
|
|
502
|
+
spw-sidenav:not([data-show-root=true]):has(.spw-sidenav-item--mobile-focused) spw-sidenav-item:has(> .spw-sidenav-item--mobile-focused) > .spw-sidenav-item > spw-sidenav-group > .spw-sidenav-group__content > spw-sidenav-item,
|
|
503
|
+
spw-sidenav:not([data-show-root=true]):has(.spw-sidenav-item--mobile-focused) spw-sidenav-item:has(> .spw-sidenav-item--mobile-focused) > spw-sidenav-group > .spw-sidenav-group__content > spw-sidenav-item,
|
|
504
|
+
spw-sidenav:not([data-show-root=true]):has(.spw-sidenav-item--mobile-focused) spw-sidenav-item:has(> .spw-sidenav-item--mobile-focused) > .spw-sidenav-item > spw-sidenav-group > spw-sidenav-item,
|
|
505
|
+
spw-sidenav:not([data-show-root=true]):has(.spw-sidenav-item--mobile-focused) spw-sidenav-item:has(> .spw-sidenav-item--mobile-focused) > spw-sidenav-group > spw-sidenav-item {
|
|
506
|
+
display: block;
|
|
507
|
+
}
|
|
508
|
+
spw-sidenav:not([data-show-root=true]):has(.spw-sidenav-item--mobile-focused) spw-sidenav-item:has(.spw-sidenav-item--mobile-focused) > .spw-sidenav-item > .spw-sidenav-item__row {
|
|
509
|
+
display: none;
|
|
510
|
+
}
|
|
511
|
+
spw-sidenav:not([data-show-root=true]):has(.spw-sidenav-item--mobile-focused) spw-sidenav-item:has(.spw-sidenav-item--mobile-focused) > .spw-sidenav-item > spw-sidenav-group > .spw-sidenav-group__content,
|
|
512
|
+
spw-sidenav:not([data-show-root=true]):has(.spw-sidenav-item--mobile-focused) spw-sidenav-item:has(.spw-sidenav-item--mobile-focused) > spw-sidenav-group > .spw-sidenav-group__content {
|
|
513
|
+
display: block !important;
|
|
514
|
+
}
|
|
515
|
+
spw-sidenav:not([data-show-root=true]):has(.spw-sidenav-item--mobile-focused) spw-sidenav-item:has(.spw-sidenav-item--mobile-focused) > .spw-sidenav-item > spw-sidenav-group > .spw-sidenav-group__content,
|
|
516
|
+
spw-sidenav:not([data-show-root=true]):has(.spw-sidenav-item--mobile-focused) spw-sidenav-item:has(.spw-sidenav-item--mobile-focused) > spw-sidenav-group > .spw-sidenav-group__content {
|
|
517
|
+
padding-left: 0;
|
|
518
|
+
}
|
|
519
|
+
spw-sidenav:not([data-show-root=true]):has(.spw-sidenav-item--mobile-focused) spw-sidenav-item:has(.spw-sidenav-item--mobile-focused) > .spw-sidenav-item > spw-sidenav-group > .spw-sidenav-group__content::before,
|
|
520
|
+
spw-sidenav:not([data-show-root=true]):has(.spw-sidenav-item--mobile-focused) spw-sidenav-item:has(.spw-sidenav-item--mobile-focused) > spw-sidenav-group > .spw-sidenav-group__content::before {
|
|
521
|
+
display: none;
|
|
522
|
+
}
|
|
468
523
|
}
|